@kangtae49/just-layout 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,653 @@
1
+ (function(Fe,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom"],R):(Fe=typeof globalThis<"u"?globalThis:Fe||self,R(Fe.JustLayout={},Fe.React,Fe.jsxRuntime,Fe.ReactDOM))})(this,(function(Fe,R,Q,ho){"use strict";var dn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function po(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var id={};var od;function n_(){if(od)return id;od=1;var n;return(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof dn=="object"?dn:typeof self=="object"?self:typeof this=="object"?this:d(),o=s(e);typeof r.Reflect<"u"&&(o=s(r.Reflect,o)),t(o,r),typeof r.Reflect>"u"&&(r.Reflect=e);function s(p,v){return function(b,w){Object.defineProperty(p,b,{configurable:!0,writable:!0,value:w}),v&&v(b,w)}}function c(){try{return Function("return this;")()}catch{}}function f(){try{return(0,eval)("(function() { return this; })()")}catch{}}function d(){return c()||f()}})(function(t,r){var o=Object.prototype.hasOwnProperty,s=typeof Symbol=="function",c=s&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",f=s&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",p={__proto__:[]}instanceof Array,v=!d&&!p,b={create:d?function(){return it(Object.create(null))}:p?function(){return it({__proto__:null})}:function(){return it({})},has:v?function(I,N){return o.call(I,N)}:function(I,N){return N in I},get:v?function(I,N){return o.call(I,N)?I[N]:void 0}:function(I,N){return I[N]}},w=Object.getPrototypeOf(Function),y=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Be(),O=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:nt(),S=typeof WeakMap=="function"?WeakMap:Nt(),A=s?Symbol.for("@reflect-metadata:registry"):void 0,x=W(),k=U(x);function G(I,N,C,j){if(pe(C)){if(!In(I))throw new TypeError;if(!Ke(N))throw new TypeError;return he(I,N)}else{if(!In(I))throw new TypeError;if(!Ce(N))throw new TypeError;if(!Ce(j)&&!pe(j)&&!Lt(j))throw new TypeError;return Lt(j)&&(j=void 0),C=pt(C),ct(I,N,C,j)}}t("decorate",G);function oe(I,N){function C(j,Z){if(!Ce(j))throw new TypeError;if(!pe(Z)&&!on(Z))throw new TypeError;nn(I,N,j,Z)}return C}t("metadata",oe);function q(I,N,C,j){if(!Ce(C))throw new TypeError;return pe(j)||(j=pt(j)),nn(I,N,C,j)}t("defineMetadata",q);function ye(I,N,C){if(!Ce(N))throw new TypeError;return pe(C)||(C=pt(C)),ht(I,N,C)}t("hasMetadata",ye);function L(I,N,C){if(!Ce(N))throw new TypeError;return pe(C)||(C=pt(C)),ft(I,N,C)}t("hasOwnMetadata",L);function F(I,N,C){if(!Ce(N))throw new TypeError;return pe(C)||(C=pt(C)),xt(I,N,C)}t("getMetadata",F);function ae(I,N,C){if(!Ce(N))throw new TypeError;return pe(C)||(C=pt(C)),ue(I,N,C)}t("getOwnMetadata",ae);function we(I,N){if(!Ce(I))throw new TypeError;return pe(N)||(N=pt(N)),Pt(I,N)}t("getMetadataKeys",we);function ce(I,N){if(!Ce(I))throw new TypeError;return pe(N)||(N=pt(N)),Le(I,N)}t("getOwnMetadataKeys",ce);function Se(I,N,C){if(!Ce(N))throw new TypeError;if(pe(C)||(C=pt(C)),!Ce(N))throw new TypeError;pe(C)||(C=pt(C));var j=le(N,C,!1);return pe(j)?!1:j.OrdinaryDeleteMetadata(I,N,C)}t("deleteMetadata",Se);function he(I,N){for(var C=I.length-1;C>=0;--C){var j=I[C],Z=j(N);if(!pe(Z)&&!Lt(Z)){if(!Ke(Z))throw new TypeError;N=Z}}return N}function ct(I,N,C,j){for(var Z=I.length-1;Z>=0;--Z){var _e=I[Z],Me=_e(N,C,j);if(!pe(Me)&&!Lt(Me)){if(!Ce(Me))throw new TypeError;j=Me}}return j}function ht(I,N,C){var j=ft(I,N,C);if(j)return!0;var Z=St(N);return Lt(Z)?!1:ht(I,Z,C)}function ft(I,N,C){var j=le(N,C,!1);return pe(j)?!1:Vt(j.OrdinaryHasOwnMetadata(I,N,C))}function xt(I,N,C){var j=ft(I,N,C);if(j)return ue(I,N,C);var Z=St(N);if(!Lt(Z))return xt(I,Z,C)}function ue(I,N,C){var j=le(N,C,!1);if(!pe(j))return j.OrdinaryGetOwnMetadata(I,N,C)}function nn(I,N,C,j){var Z=le(C,j,!0);Z.OrdinaryDefineOwnMetadata(I,N,C,j)}function Pt(I,N){var C=Le(I,N),j=St(I);if(j===null)return C;var Z=Pt(j,N);if(Z.length<=0)return C;if(C.length<=0)return Z;for(var _e=new O,Me=[],ne=0,Y=C;ne<Y.length;ne++){var K=Y[ne],te=_e.has(K);te||(_e.add(K),Me.push(K))}for(var X=0,Ee=Z;X<Ee.length;X++){var K=Ee[X],te=_e.has(K);te||(_e.add(K),Me.push(K))}return Me}function Le(I,N){var C=le(I,N,!1);return C?C.OrdinaryOwnMetadataKeys(I,N):[]}function wr(I){if(I===null)return 1;switch(typeof I){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return I===null?1:6;default:return 6}}function pe(I){return I===void 0}function Lt(I){return I===null}function rn(I){return typeof I=="symbol"}function Ce(I){return typeof I=="object"?I!==null:typeof I=="function"}function ir(I,N){switch(wr(I)){case 0:return I;case 1:return I;case 2:return I;case 3:return I;case 4:return I;case 5:return I}var C="string",j=at(I,c);if(j!==void 0){var Z=j.call(I,C);if(Ce(Z))throw new TypeError;return Z}return $t(I)}function $t(I,N){var C,j,Z;{var _e=I.toString;if(An(_e)){var j=_e.call(I);if(!Ce(j))return j}var C=I.valueOf;if(An(C)){var j=C.call(I);if(!Ce(j))return j}}throw new TypeError}function Vt(I){return!!I}function Sr(I){return""+I}function pt(I){var N=ir(I);return rn(N)?N:Sr(N)}function In(I){return Array.isArray?Array.isArray(I):I instanceof Object?I instanceof Array:Object.prototype.toString.call(I)==="[object Array]"}function An(I){return typeof I=="function"}function Ke(I){return typeof I=="function"}function on(I){switch(wr(I)){case 3:return!0;case 4:return!0;default:return!1}}function Tn(I,N){return I===N||I!==I&&N!==N}function at(I,N){var C=I[N];if(C!=null){if(!An(C))throw new TypeError;return C}}function vt(I){var N=at(I,f);if(!An(N))throw new TypeError;var C=N.call(I);if(!Ce(C))throw new TypeError;return C}function Gn(I){return I.value}function Qe(I){var N=I.next();return N.done?!1:N}function bt(I){var N=I.return;N&&N.call(I)}function St(I){var N=Object.getPrototypeOf(I);if(typeof I!="function"||I===w||N!==w)return N;var C=I.prototype,j=C&&Object.getPrototypeOf(C);if(j==null||j===Object.prototype)return N;var Z=j.constructor;return typeof Z!="function"||Z===I?N:Z}function P(){var I;!pe(A)&&typeof r.Reflect<"u"&&!(A in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(I=ee(r.Reflect));var N,C,j,Z=new S,_e={registerProvider:Me,getProvider:Y,setProvider:te};return _e;function Me(X){if(!Object.isExtensible(_e))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case I===X:break;case pe(N):N=X;break;case N===X:break;case pe(C):C=X;break;case C===X:break;default:j===void 0&&(j=new O),j.add(X);break}}function ne(X,Ee){if(!pe(N)){if(N.isProviderFor(X,Ee))return N;if(!pe(C)){if(C.isProviderFor(X,Ee))return N;if(!pe(j))for(var He=vt(j);;){var et=Qe(He);if(!et)return;var yt=Gn(et);if(yt.isProviderFor(X,Ee))return bt(He),yt}}}if(!pe(I)&&I.isProviderFor(X,Ee))return I}function Y(X,Ee){var He=Z.get(X),et;return pe(He)||(et=He.get(Ee)),pe(et)&&(et=ne(X,Ee),pe(et)||(pe(He)&&(He=new y,Z.set(X,He)),He.set(Ee,et))),et}function K(X){if(pe(X))throw new TypeError;return N===X||C===X||!pe(j)&&j.has(X)}function te(X,Ee,He){if(!K(He))throw new Error("Metadata provider not registered.");var et=Y(X,Ee);if(et!==He){if(!pe(et))return!1;var yt=Z.get(X);pe(yt)&&(yt=new y,Z.set(X,yt)),yt.set(Ee,He)}return!0}}function W(){var I;return!pe(A)&&Ce(r.Reflect)&&Object.isExtensible(r.Reflect)&&(I=r.Reflect[A]),pe(I)&&(I=P()),!pe(A)&&Ce(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,A,{enumerable:!1,configurable:!1,writable:!1,value:I}),I}function U(I){var N=new S,C={isProviderFor:function(K,te){var X=N.get(K);return pe(X)?!1:X.has(te)},OrdinaryDefineOwnMetadata:Me,OrdinaryHasOwnMetadata:Z,OrdinaryGetOwnMetadata:_e,OrdinaryOwnMetadataKeys:ne,OrdinaryDeleteMetadata:Y};return x.registerProvider(C),C;function j(K,te,X){var Ee=N.get(K),He=!1;if(pe(Ee)){if(!X)return;Ee=new y,N.set(K,Ee),He=!0}var et=Ee.get(te);if(pe(et)){if(!X)return;if(et=new y,Ee.set(te,et),!I.setProvider(K,te,C))throw Ee.delete(te),He&&N.delete(K),new Error("Wrong provider for target.")}return et}function Z(K,te,X){var Ee=j(te,X,!1);return pe(Ee)?!1:Vt(Ee.has(K))}function _e(K,te,X){var Ee=j(te,X,!1);if(!pe(Ee))return Ee.get(K)}function Me(K,te,X,Ee){var He=j(X,Ee,!0);He.set(K,te)}function ne(K,te){var X=[],Ee=j(K,te,!1);if(pe(Ee))return X;for(var He=Ee.keys(),et=vt(He),yt=0;;){var Ji=Qe(et);if(!Ji)return X.length=yt,X;var Xo=Gn(Ji);try{X[yt]=Xo}catch(Ki){try{bt(et)}finally{throw Ki}}yt++}}function Y(K,te,X){var Ee=j(te,X,!1);if(pe(Ee)||!Ee.delete(K))return!1;if(Ee.size===0){var He=N.get(te);pe(He)||(He.delete(X),He.size===0&&N.delete(He))}return!0}}function ee(I){var N=I.defineMetadata,C=I.hasOwnMetadata,j=I.getOwnMetadata,Z=I.getOwnMetadataKeys,_e=I.deleteMetadata,Me=new S,ne={isProviderFor:function(Y,K){var te=Me.get(Y);return!pe(te)&&te.has(K)?!0:Z(Y,K).length?(pe(te)&&(te=new O,Me.set(Y,te)),te.add(K),!0):!1},OrdinaryDefineOwnMetadata:N,OrdinaryHasOwnMetadata:C,OrdinaryGetOwnMetadata:j,OrdinaryOwnMetadataKeys:Z,OrdinaryDeleteMetadata:_e};return ne}function le(I,N,C){var j=x.getProvider(I,N);if(!pe(j))return j;if(C){if(x.setProvider(I,N,k))return k;throw new Error("Illegal state.")}}function Be(){var I={},N=[],C=(function(){function ne(Y,K,te){this._index=0,this._keys=Y,this._values=K,this._selector=te}return ne.prototype["@@iterator"]=function(){return this},ne.prototype[f]=function(){return this},ne.prototype.next=function(){var Y=this._index;if(Y>=0&&Y<this._keys.length){var K=this._selector(this._keys[Y],this._values[Y]);return Y+1>=this._keys.length?(this._index=-1,this._keys=N,this._values=N):this._index++,{value:K,done:!1}}return{value:void 0,done:!0}},ne.prototype.throw=function(Y){throw this._index>=0&&(this._index=-1,this._keys=N,this._values=N),Y},ne.prototype.return=function(Y){return this._index>=0&&(this._index=-1,this._keys=N,this._values=N),{value:Y,done:!0}},ne})(),j=(function(){function ne(){this._keys=[],this._values=[],this._cacheKey=I,this._cacheIndex=-2}return Object.defineProperty(ne.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ne.prototype.has=function(Y){return this._find(Y,!1)>=0},ne.prototype.get=function(Y){var K=this._find(Y,!1);return K>=0?this._values[K]:void 0},ne.prototype.set=function(Y,K){var te=this._find(Y,!0);return this._values[te]=K,this},ne.prototype.delete=function(Y){var K=this._find(Y,!1);if(K>=0){for(var te=this._keys.length,X=K+1;X<te;X++)this._keys[X-1]=this._keys[X],this._values[X-1]=this._values[X];return this._keys.length--,this._values.length--,Tn(Y,this._cacheKey)&&(this._cacheKey=I,this._cacheIndex=-2),!0}return!1},ne.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=I,this._cacheIndex=-2},ne.prototype.keys=function(){return new C(this._keys,this._values,Z)},ne.prototype.values=function(){return new C(this._keys,this._values,_e)},ne.prototype.entries=function(){return new C(this._keys,this._values,Me)},ne.prototype["@@iterator"]=function(){return this.entries()},ne.prototype[f]=function(){return this.entries()},ne.prototype._find=function(Y,K){if(!Tn(this._cacheKey,Y)){this._cacheIndex=-1;for(var te=0;te<this._keys.length;te++)if(Tn(this._keys[te],Y)){this._cacheIndex=te;break}}return this._cacheIndex<0&&K&&(this._cacheIndex=this._keys.length,this._keys.push(Y),this._values.push(void 0)),this._cacheIndex},ne})();return j;function Z(ne,Y){return ne}function _e(ne,Y){return Y}function Me(ne,Y){return[ne,Y]}}function nt(){var I=(function(){function N(){this._map=new y}return Object.defineProperty(N.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),N.prototype.has=function(C){return this._map.has(C)},N.prototype.add=function(C){return this._map.set(C,C),this},N.prototype.delete=function(C){return this._map.delete(C)},N.prototype.clear=function(){this._map.clear()},N.prototype.keys=function(){return this._map.keys()},N.prototype.values=function(){return this._map.keys()},N.prototype.entries=function(){return this._map.entries()},N.prototype["@@iterator"]=function(){return this.keys()},N.prototype[f]=function(){return this.keys()},N})();return I}function Nt(){var I=16,N=b.create(),C=j();return(function(){function Y(){this._key=j()}return Y.prototype.has=function(K){var te=Z(K,!1);return te!==void 0?b.has(te,this._key):!1},Y.prototype.get=function(K){var te=Z(K,!1);return te!==void 0?b.get(te,this._key):void 0},Y.prototype.set=function(K,te){var X=Z(K,!0);return X[this._key]=te,this},Y.prototype.delete=function(K){var te=Z(K,!1);return te!==void 0?delete te[this._key]:!1},Y.prototype.clear=function(){this._key=j()},Y})();function j(){var Y;do Y="@@WeakMap@@"+ne();while(b.has(N,Y));return N[Y]=!0,Y}function Z(Y,K){if(!o.call(Y,C)){if(!K)return;Object.defineProperty(Y,C,{value:b.create()})}return Y[C]}function _e(Y,K){for(var te=0;te<K;++te)Y[te]=Math.random()*255|0;return Y}function Me(Y){if(typeof Uint8Array=="function"){var K=new Uint8Array(Y);return typeof crypto<"u"?crypto.getRandomValues(K):typeof msCrypto<"u"?msCrypto.getRandomValues(K):_e(K,Y),K}return _e(new Array(Y),Y)}function ne(){var Y=Me(I);Y[6]=Y[6]&79|64,Y[8]=Y[8]&191|128;for(var K="",te=0;te<I;++te){var X=Y[te];(te===4||te===6||te===8)&&(K+="-"),X<16&&(K+="0"),K+=X.toString(16).toLowerCase()}return K}}function it(I){return I.__=void 0,delete I.__,I}})})(n||(n={})),id}n_();function ut(n){return(typeof n=="object"&&n!==null||typeof n=="function")&&typeof n.then=="function"}function Et(n){switch(typeof n){case"string":case"symbol":return n.toString();case"function":return n.name;default:throw new Error(`Unexpected ${typeof n} service id type`)}}const vu=Symbol.for("@inversifyjs/common/islazyServiceIdentifier");let ga=class{[vu];#e;constructor(e){this.#e=e,this[vu]=!0}static is(e){return typeof e=="object"&&e!==null&&e[vu]===!0}unwrap(){return this.#e()}};var ad={};var sd;function r_(){if(sd)return ad;sd=1;var n;return(function(e){(function(t){var r=typeof globalThis=="object"?globalThis:typeof dn=="object"?dn:typeof self=="object"?self:typeof this=="object"?this:c(),o=s(e);typeof r.Reflect<"u"&&(o=s(r.Reflect,o)),t(o,r),typeof r.Reflect>"u"&&(r.Reflect=e);function s(f,d){return function(p,v){Object.defineProperty(f,p,{configurable:!0,writable:!0,value:v}),d&&d(p,v)}}function c(){throw new ReferenceError("globalThis could not be found. Please polyfill globalThis before loading this module.")}})(function(t,r){var o=typeof Symbol=="function",s=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:at("Symbol.toPrimitive not found."),c=o&&typeof Symbol.iterator<"u"?Symbol.iterator:at("Symbol.iterator not found."),f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:at("A valid Map constructor could not be found."),p=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:at("A valid Set constructor could not be found."),v=typeof WeakMap=="function"?WeakMap:at("A valid WeakMap constructor could not be found."),b=o?Symbol.for("@reflect-metadata:registry"):void 0,w=Gn(),y=Qe(w);function O(P,W,U,ee){if(ue(U)){if(!ir(P))throw new TypeError;if(!Vt(W))throw new TypeError;return F(P,W)}else{if(!ir(P))throw new TypeError;if(!Le(W))throw new TypeError;if(!Le(ee)&&!ue(ee)&&!nn(ee))throw new TypeError;return nn(ee)&&(ee=void 0),U=Ce(U),ae(P,W,U,ee)}}t("decorate",O);function S(P,W){function U(ee,le){if(!Le(ee))throw new TypeError;if(!ue(le)&&!Sr(le))throw new TypeError;ct(P,W,ee,le)}return U}t("metadata",S);function A(P,W,U,ee){if(!Le(U))throw new TypeError;return ue(ee)||(ee=Ce(ee)),ct(P,W,U,ee)}t("defineMetadata",A);function x(P,W,U){if(!Le(W))throw new TypeError;return ue(U)||(U=Ce(U)),we(P,W,U)}t("hasMetadata",x);function k(P,W,U){if(!Le(W))throw new TypeError;return ue(U)||(U=Ce(U)),ce(P,W,U)}t("hasOwnMetadata",k);function G(P,W,U){if(!Le(W))throw new TypeError;return ue(U)||(U=Ce(U)),Se(P,W,U)}t("getMetadata",G);function oe(P,W,U){if(!Le(W))throw new TypeError;return ue(U)||(U=Ce(U)),he(P,W,U)}t("getOwnMetadata",oe);function q(P,W){if(!Le(P))throw new TypeError;return ue(W)||(W=Ce(W)),ht(P,W)}t("getMetadataKeys",q);function ye(P,W){if(!Le(P))throw new TypeError;return ue(W)||(W=Ce(W)),ft(P,W)}t("getOwnMetadataKeys",ye);function L(P,W,U){if(!Le(W))throw new TypeError;ue(U)||(U=Ce(U));var ee=St(W,U,!1);return ue(ee)?!1:ee.OrdinaryDeleteMetadata(P,W,U)}t("deleteMetadata",L);function F(P,W){for(var U=P.length-1;U>=0;--U){var ee=P[U],le=ee(W);if(!ue(le)&&!nn(le)){if(!Vt(le))throw new TypeError;W=le}}return W}function ae(P,W,U,ee){for(var le=P.length-1;le>=0;--le){var Be=P[le],nt=Be(W,U,ee);if(!ue(nt)&&!nn(nt)){if(!Le(nt))throw new TypeError;ee=nt}}return ee}function we(P,W,U){var ee=ce(P,W,U);if(ee)return!0;var le=Tn(W);return nn(le)?!1:we(P,le,U)}function ce(P,W,U){var ee=St(W,U,!1);return ue(ee)?!1:Lt(ee.OrdinaryHasOwnMetadata(P,W,U))}function Se(P,W,U){var ee=ce(P,W,U);if(ee)return he(P,W,U);var le=Tn(W);if(!nn(le))return Se(P,le,U)}function he(P,W,U){var ee=St(W,U,!1);if(!ue(ee))return ee.OrdinaryGetOwnMetadata(P,W,U)}function ct(P,W,U,ee){var le=St(U,ee,!0);le.OrdinaryDefineOwnMetadata(P,W,U,ee)}function ht(P,W){var U=ft(P,W),ee=Tn(P);if(ee===null)return U;var le=ht(ee,W);if(le.length<=0)return U;if(U.length<=0)return le;for(var Be=new p,nt=[],Nt=0,it=U;Nt<it.length;Nt++){var I=it[Nt],N=Be.has(I);N||(Be.add(I),nt.push(I))}for(var C=0,j=le;C<j.length;C++){var I=j[C],N=Be.has(I);N||(Be.add(I),nt.push(I))}return nt}function ft(P,W){var U=St(P,W,!1);return U?U.OrdinaryOwnMetadataKeys(P,W):[]}function xt(P){if(P===null)return 1;switch(typeof P){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return P===null?1:6;default:return 6}}function ue(P){return P===void 0}function nn(P){return P===null}function Pt(P){return typeof P=="symbol"}function Le(P){return typeof P=="object"?P!==null:typeof P=="function"}function wr(P,W){switch(xt(P)){case 0:return P;case 1:return P;case 2:return P;case 3:return P;case 4:return P;case 5:return P}var U="string",ee=pt(P,s);if(ee!==void 0){var le=ee.call(P,U);if(Le(le))throw new TypeError;return le}return pe(P)}function pe(P,W){var U,ee,le;{var Be=P.toString;if($t(Be)){var ee=Be.call(P);if(!Le(ee))return ee}var U=P.valueOf;if($t(U)){var ee=U.call(P);if(!Le(ee))return ee}}throw new TypeError}function Lt(P){return!!P}function rn(P){return""+P}function Ce(P){var W=wr(P);return Pt(W)?W:rn(W)}function ir(P){return Array.isArray?Array.isArray(P):P instanceof Object?P instanceof Array:Object.prototype.toString.call(P)==="[object Array]"}function $t(P){return typeof P=="function"}function Vt(P){return typeof P=="function"}function Sr(P){switch(xt(P)){case 3:return!0;case 4:return!0;default:return!1}}function pt(P,W){var U=P[W];if(U!=null){if(!$t(U))throw new TypeError;return U}}function In(P){var W=pt(P,c);if(!$t(W))throw new TypeError;var U=W.call(P);if(!Le(U))throw new TypeError;return U}function An(P){return P.value}function Ke(P){var W=P.next();return W.done?!1:W}function on(P){var W=P.return;W&&W.call(P)}function Tn(P){var W=Object.getPrototypeOf(P);if(typeof P!="function"||P===f||W!==f)return W;var U=P.prototype,ee=U&&Object.getPrototypeOf(U);if(ee==null||ee===Object.prototype)return W;var le=ee.constructor;return typeof le!="function"||le===P?W:le}function at(P){throw P}function vt(){var P;!ue(b)&&typeof r.Reflect<"u"&&!(b in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(P=bt(r.Reflect));var W,U,ee,le=new v,Be={registerProvider:nt,getProvider:it,setProvider:N};return Be;function nt(C){if(!Object.isExtensible(Be))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case P===C:break;case ue(W):W=C;break;case W===C:break;case ue(U):U=C;break;case U===C:break;default:ee===void 0&&(ee=new p),ee.add(C);break}}function Nt(C,j){if(!ue(W)){if(W.isProviderFor(C,j))return W;if(!ue(U)){if(U.isProviderFor(C,j))return W;if(!ue(ee))for(var Z=In(ee);;){var _e=Ke(Z);if(!_e)return;var Me=An(_e);if(Me.isProviderFor(C,j))return on(Z),Me}}}if(!ue(P)&&P.isProviderFor(C,j))return P}function it(C,j){var Z=le.get(C),_e;return ue(Z)||(_e=Z.get(j)),ue(_e)&&(_e=Nt(C,j),ue(_e)||(ue(Z)&&(Z=new d,le.set(C,Z)),Z.set(j,_e))),_e}function I(C){if(ue(C))throw new TypeError;return W===C||U===C||!ue(ee)&&ee.has(C)}function N(C,j,Z){if(!I(Z))throw new Error("Metadata provider not registered.");var _e=it(C,j);if(_e!==Z){if(!ue(_e))return!1;var Me=le.get(C);ue(Me)&&(Me=new d,le.set(C,Me)),Me.set(j,Z)}return!0}}function Gn(){var P;return!ue(b)&&Le(r.Reflect)&&Object.isExtensible(r.Reflect)&&(P=r.Reflect[b]),ue(P)&&(P=vt()),!ue(b)&&Le(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:P}),P}function Qe(P){var W=new v,U={isProviderFor:function(I,N){var C=W.get(I);return ue(C)?!1:C.has(N)},OrdinaryDefineOwnMetadata:nt,OrdinaryHasOwnMetadata:le,OrdinaryGetOwnMetadata:Be,OrdinaryOwnMetadataKeys:Nt,OrdinaryDeleteMetadata:it};return w.registerProvider(U),U;function ee(I,N,C){var j=W.get(I),Z=!1;if(ue(j)){if(!C)return;j=new d,W.set(I,j),Z=!0}var _e=j.get(N);if(ue(_e)){if(!C)return;if(_e=new d,j.set(N,_e),!P.setProvider(I,N,U))throw j.delete(N),Z&&W.delete(I),new Error("Wrong provider for target.")}return _e}function le(I,N,C){var j=ee(N,C,!1);return ue(j)?!1:Lt(j.has(I))}function Be(I,N,C){var j=ee(N,C,!1);if(!ue(j))return j.get(I)}function nt(I,N,C,j){var Z=ee(C,j,!0);Z.set(I,N)}function Nt(I,N){var C=[],j=ee(I,N,!1);if(ue(j))return C;for(var Z=j.keys(),_e=In(Z),Me=0;;){var ne=Ke(_e);if(!ne)return C.length=Me,C;var Y=An(ne);try{C[Me]=Y}catch(K){try{on(_e)}finally{throw K}}Me++}}function it(I,N,C){var j=ee(N,C,!1);if(ue(j)||!j.delete(I))return!1;if(j.size===0){var Z=W.get(N);ue(Z)||(Z.delete(C),Z.size===0&&W.delete(Z))}return!0}}function bt(P){var W=P.defineMetadata,U=P.hasOwnMetadata,ee=P.getOwnMetadata,le=P.getOwnMetadataKeys,Be=P.deleteMetadata,nt=new v,Nt={isProviderFor:function(it,I){var N=nt.get(it);return!ue(N)&&N.has(I)?!0:le(it,I).length?(ue(N)&&(N=new p,nt.set(it,N)),N.add(I),!0):!1},OrdinaryDefineOwnMetadata:W,OrdinaryHasOwnMetadata:U,OrdinaryGetOwnMetadata:ee,OrdinaryOwnMetadataKeys:le,OrdinaryDeleteMetadata:Be};return Nt}function St(P,W,U){var ee=w.getProvider(P,W);if(!ue(ee))return ee;if(U){if(w.setProvider(P,W,y))return y;throw new Error("Illegal state.")}}})})(n||(n={})),ad}r_();function Qr(n,e,t){return Reflect.getOwnMetadata(e,n,t)}function gu(n,e,t,r){Reflect.defineMetadata(e,t,n,r)}function ei(n,e,t,r,o){const s=r(Qr(n,e,o)??t());Reflect.defineMetadata(e,s,n,o)}const mu="@inversifyjs/container/bindingId";function Mr(){const n=Qr(Object,mu)??0;return n===Number.MAX_SAFE_INTEGER?gu(Object,mu,Number.MIN_SAFE_INTEGER):ei(Object,mu,()=>n,e=>e+1),n}const hn={Request:"Request",Singleton:"Singleton",Transient:"Transient"},je={ConstantValue:"ConstantValue",DynamicValue:"DynamicValue",Factory:"Factory",Instance:"Instance",Provider:"Provider",ResolvedValue:"ResolvedValue",ServiceRedirection:"ServiceRedirection"};function*ud(...n){for(const e of n)yield*e}let bu=class Qy{#e;#t;#r;constructor(e){this.#e=new Map,this.#t={};for(const t of Reflect.ownKeys(e))this.#t[t]=new Map;this.#r=e}add(e,t){this.#o(e).push(t);for(const r of Reflect.ownKeys(t))this.#a(r,t[r]).push(e)}clone(){const e=this.#n(),t=this.#i(),r=Reflect.ownKeys(this.#r),o=this._buildNewInstance(this.#r);this.#h(this.#e,o.#e,e,t);for(const s of r)this.#s(this.#t[s],o.#t[s],e);return o}get(e,t){return this.#t[e].get(t)}getAllKeys(e){return this.#t[e].keys()}removeByRelation(e,t){const r=this.get(e,t);if(r===void 0)return;const o=new Set(r);for(const s of o){const c=this.#e.get(s);if(c===void 0)throw new Error("Expecting model relation, none found");for(const f of c)f[e]===t&&this.#f(s,f);this.#e.delete(s)}}_buildNewInstance(e){return new Qy(e)}_cloneModel(e){return e}_cloneRelation(e){return e}#n(){const e=new Map;for(const t of this.#e.keys()){const r=this._cloneModel(t);e.set(t,r)}return e}#i(){const e=new Map;for(const t of this.#e.values())for(const r of t){const o=this._cloneRelation(r);e.set(r,o)}return e}#o(e){let t=this.#e.get(e);return t===void 0&&(t=[],this.#e.set(e,t)),t}#a(e,t){let r=this.#t[e].get(t);return r===void 0&&(r=[],this.#t[e].set(t,r)),r}#c(e,t){const r=t.get(e);if(r===void 0)throw new Error("Expecting model to be cloned, none found");return r}#u(e,t){const r=t.get(e);if(r===void 0)throw new Error("Expecting relation to be cloned, none found");return r}#s(e,t,r){for(const[o,s]of e){const c=new Array;for(const f of s)c.push(this.#c(f,r));t.set(o,c)}}#h(e,t,r,o){for(const[s,c]of e){const f=new Array;for(const d of c)f.push(this.#u(d,o));t.set(this.#c(s,r),f)}}#f(e,t){for(const r of Reflect.ownKeys(t))this.#l(e,r,t[r])}#l(e,t,r){const o=this.#t[t].get(r);if(o!==void 0){const s=o.indexOf(e);s!==-1&&o.splice(s,1),o.length===0&&this.#t[t].delete(r)}}};var vo;(function(n){n.moduleId="moduleId",n.serviceId="serviceId"})(vo||(vo={}));let cd=class td{#e;#t;constructor(e,t){this.#e=t??new bu({moduleId:{isOptional:!0},serviceId:{isOptional:!1}}),this.#t=e}static build(e){return new td(e)}add(e,t){this.#e.add(e,t)}clone(){return new td(this.#t,this.#e.clone())}get(e){const t=[],r=this.#e.get(vo.serviceId,e);r!==void 0&&t.push(r);const o=this.#t()?.get(e);if(o!==void 0&&t.push(o),t.length!==0)return ud(...t)}removeAllByModuleId(e){this.#e.removeByRelation(vo.moduleId,e)}removeAllByServiceId(e){this.#e.removeByRelation(vo.serviceId,e)}};const go="@inversifyjs/core/classMetadataReflectKey";function mo(){return{constructorArguments:[],lifecycle:{postConstructMethodNames:new Set,preDestroyMethodNames:new Set},properties:new Map,scope:void 0}}const fd="@inversifyjs/core/pendingClassMetadataCountReflectKey",yu=Symbol.for("@inversifyjs/core/InversifyCoreError");class qe extends Error{[yu];kind;constructor(e,t,r){super(t,r),this[yu]=!0,this.kind=e}static is(e){return typeof e=="object"&&e!==null&&e[yu]===!0}static isErrorOfKind(e,t){return qe.is(e)&&e.kind===t}}var Ge,Ti,qt,bo,Gt;function ma(n){const e=Qr(n,go)??mo();if(!(function(t){const r=Qr(t,fd);return r!==void 0&&r!==0})(n))return(function(t,r){const o=[];if(r.length<t.length)throw new qe(Ge.missingInjectionDecorator,`Found unexpected missing metadata on type "${t.name}". "${t.name}" constructor requires at least ${t.length.toString()} arguments, found ${r.length.toString()} instead.
2
+ Are you using @inject, @multiInject or @unmanaged decorators in every non optional constructor argument?
3
+
4
+ If you're using typescript and want to rely on auto injection, set "emitDecoratorMetadata" compiler option to true`);for(let s=0;s<r.length;++s)r[s]===void 0&&o.push(s);if(o.length>0)throw new qe(Ge.missingInjectionDecorator,`Found unexpected missing metadata on type "${t.name}" at constructor indexes "${o.join('", "')}".
5
+
6
+ Are you using @inject, @multiInject or @unmanaged decorators at those indexes?
7
+
8
+ If you're using typescript and want to rely on auto injection, set "emitDecoratorMetadata" compiler option to true`)})(n,e.constructorArguments),e;(function(t,r){const o=[];for(let s=0;s<r.constructorArguments.length;++s){const c=r.constructorArguments[s];c!==void 0&&c.kind!==Ti.unknown||o.push(` - Missing or incomplete metadata for type "${t.name}" at constructor argument with index ${s.toString()}.
9
+ Every constructor parameter must be decorated either with @inject, @multiInject or @unmanaged decorator.`)}for(const[s,c]of r.properties)c.kind===Ti.unknown&&o.push(` - Missing or incomplete metadata for type "${t.name}" at property "${s.toString()}".
10
+ This property must be decorated either with @inject or @multiInject decorator.`);throw o.length===0?new qe(Ge.unknown,`Unexpected class metadata for type "${t.name}" with uncompletion traces.
11
+ This might be caused by one of the following reasons:
12
+
13
+ 1. A third party library is targeting inversify reflection metadata.
14
+ 2. A bug is causing the issue. Consider submiting an issue to fix it.`):new qe(Ge.missingInjectionDecorator,`Invalid class metadata at type ${t.name}:
15
+
16
+ ${o.join(`
17
+
18
+ `)}`)})(n,e)}function ld(n,e){const t=ma(e).scope??n.scope;return{cache:{isRight:!1,value:void 0},id:Mr(),implementationType:e,isSatisfiedBy:()=>!0,moduleId:void 0,onActivation:void 0,onDeactivation:void 0,scope:t,serviceIdentifier:e,type:je.Instance}}function yo(n){return n.isRight?{isRight:!0,value:n.value}:n}function i_(n){switch(n.type){case je.ConstantValue:case je.DynamicValue:return(function(e){return{cache:yo(e.cache),id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type,value:e.value}})(n);case je.Factory:return(function(e){return{cache:yo(e.cache),factory:e.factory,id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type}})(n);case je.Instance:return(function(e){return{cache:yo(e.cache),id:e.id,implementationType:e.implementationType,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type}})(n);case je.Provider:return(function(e){return{cache:yo(e.cache),id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,provider:e.provider,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type}})(n);case je.ResolvedValue:return(function(e){return{cache:yo(e.cache),factory:e.factory,id:e.id,isSatisfiedBy:e.isSatisfiedBy,metadata:e.metadata,moduleId:e.moduleId,onActivation:e.onActivation,onDeactivation:e.onDeactivation,scope:e.scope,serviceIdentifier:e.serviceIdentifier,type:e.type}})(n);case je.ServiceRedirection:return(function(e){return{id:e.id,isSatisfiedBy:e.isSatisfiedBy,moduleId:e.moduleId,serviceIdentifier:e.serviceIdentifier,targetServiceIdentifier:e.targetServiceIdentifier,type:e.type}})(n)}}(function(n){n[n.injectionDecoratorConflict=0]="injectionDecoratorConflict",n[n.missingInjectionDecorator=1]="missingInjectionDecorator",n[n.planning=2]="planning",n[n.resolution=3]="resolution",n[n.unknown=4]="unknown"})(Ge||(Ge={})),(function(n){n[n.unknown=32]="unknown"})(Ti||(Ti={})),(function(n){n.id="id",n.moduleId="moduleId",n.serviceId="serviceId"})(qt||(qt={}));let o_=class e_ extends bu{_buildNewInstance(e){return new e_(e)}_cloneModel(e){return i_(e)}},dd=class nd{#e;#t;#r;constructor(e,t,r){this.#t=r??new o_({id:{isOptional:!1},moduleId:{isOptional:!0},serviceId:{isOptional:!1}}),this.#r=e,this.#e=t}static build(e,t){return new nd(e,t)}clone(){return new nd(this.#r,this.#e,this.#t.clone())}get(e){const t=this.getNonParentBindings(e)??this.#r()?.get(e);if(t!==void 0)return t;const r=this.#n(e);return r===void 0?r:[r]}*getChained(e){const t=this.getNonParentBindings(e);t!==void 0&&(yield*t);const r=this.#r();if(r===void 0){if(t===void 0){const o=this.#n(e);o!==void 0&&(yield o)}}else yield*r.getChained(e)}getBoundServices(){const e=new Set(this.#t.getAllKeys(qt.serviceId)),t=this.#r();if(t!==void 0)for(const r of t.getBoundServices())e.add(r);return e}getById(e){return this.#t.get(qt.id,e)??this.#r()?.getById(e)}getByModuleId(e){return this.#t.get(qt.moduleId,e)??this.#r()?.getByModuleId(e)}getNonParentBindings(e){return this.#t.get(qt.serviceId,e)}getNonParentBoundServices(){return this.#t.getAllKeys(qt.serviceId)}removeById(e){this.#t.removeByRelation(qt.id,e)}removeAllByModuleId(e){this.#t.removeByRelation(qt.moduleId,e)}removeAllByServiceId(e){this.#t.removeByRelation(qt.serviceId,e)}set(e){const t={[qt.id]:e.id,[qt.serviceId]:e.serviceIdentifier};e.moduleId!==void 0&&(t[qt.moduleId]=e.moduleId),this.#t.add(e,t)}#n(e){if(this.#e===void 0||typeof e!="function")return;const t=ld(this.#e,e);return this.set(t),t}};(function(n){n.moduleId="moduleId",n.serviceId="serviceId"})(bo||(bo={}));let hd=class rd{#e;#t;constructor(e,t){this.#e=t??new bu({moduleId:{isOptional:!0},serviceId:{isOptional:!1}}),this.#t=e}static build(e){return new rd(e)}add(e,t){this.#e.add(e,t)}clone(){return new rd(this.#t,this.#e.clone())}get(e){const t=[],r=this.#e.get(bo.serviceId,e);r!==void 0&&t.push(r);const o=this.#t()?.get(e);if(o!==void 0&&t.push(o),t.length!==0)return ud(...t)}removeAllByModuleId(e){this.#e.removeByRelation(bo.moduleId,e)}removeAllByServiceId(e){this.#e.removeByRelation(bo.serviceId,e)}};function a_(){return 0}function s_(n){return e=>{e!==void 0&&e.kind===Ti.unknown&&ei(n,fd,a_,t=>t-1)}}function u_(n,e){return(...t)=>r=>{if(r===void 0)return n(...t);if(r.kind===Gt.unmanaged)throw new qe(Ge.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found");return e(r,...t)}}function c_(n){if(n.kind!==Ti.unknown&&n.isFromTypescriptParamType!==!0)throw new qe(Ge.injectionDecoratorConflict,"Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found")}(function(n){n[n.multipleInjection=0]="multipleInjection",n[n.singleInjection=1]="singleInjection",n[n.unmanaged=2]="unmanaged"})(Gt||(Gt={}));const f_=u_(function(n,e,t){return n===Gt.multipleInjection?{chained:t?.chained??!1,kind:n,name:void 0,optional:!1,tags:new Map,value:e}:{kind:n,name:void 0,optional:!1,tags:new Map,value:e}},function(n,e,t,r){return c_(n),e===Gt.multipleInjection?{...n,chained:r?.chained??!1,kind:e,value:t}:{...n,kind:e,value:t}});function pd(n,e){return t=>{const r=t.properties.get(e);return t.properties.set(e,n(r)),t}}var Rr;function l_(n,e,t,r){if(qe.isErrorOfKind(r,Ge.injectionDecoratorConflict)){const o=(function(s,c,f){if(f===void 0){if(c===void 0)throw new qe(Ge.unknown,"Unexpected undefined property and index values");return{kind:Rr.property,property:c,targetClass:s.constructor}}return typeof f=="number"?{index:f,kind:Rr.parameter,targetClass:s}:{kind:Rr.method,method:c,targetClass:s}})(n,e,t);throw new qe(Ge.injectionDecoratorConflict,`Unexpected injection error.
19
+
20
+ Cause:
21
+
22
+ ${r.message}
23
+
24
+ Details
25
+
26
+ ${(function(s){switch(s.kind){case Rr.method:return`[class: "${s.targetClass.name}", method: "${s.method.toString()}"]`;case Rr.parameter:return`[class: "${s.targetClass.name}", index: "${s.index.toString()}"]`;case Rr.property:return`[class: "${s.targetClass.name}", property: "${s.property.toString()}"]`}})(o)}`,{cause:r})}throw r}function d_(n,e){return(t,r,o)=>{try{o===void 0?(function(s,c){const f=_u(s,c);return(d,p)=>{ei(d.constructor,go,mo,pd(f(d),p))}})(n,e)(t,r):typeof o=="number"?(function(s,c){const f=_u(s,c);return(d,p,v)=>{if(!(function(b,w){return typeof b=="function"&&w===void 0})(d,p))throw new qe(Ge.injectionDecoratorConflict,`Found an @inject decorator in a non constructor parameter.
27
+ Found @inject decorator at method "${p?.toString()??""}" at class "${d.constructor.name}"`);ei(d,go,mo,(function(b,w){return y=>{const O=y.constructorArguments[w];return y.constructorArguments[w]=b(O),y}})(f(d),v))}})(n,e)(t,r,o):(function(s,c){const f=_u(s,c);return(d,p,v)=>{if(!(function(b){return b.set!==void 0})(v))throw new qe(Ge.injectionDecoratorConflict,`Found an @inject decorator in a non setter property method.
28
+ Found @inject decorator at method "${p.toString()}" at class "${d.constructor.name}"`);ei(d.constructor,go,mo,pd(f(d),p))}})(n,e)(t,r,o)}catch(s){l_(t,r,o,s)}}}function _u(n,e){return t=>{const r=e(t);return o=>(r(o),n(o))}}function h_(n){return d_(f_(Gt.singleInjection,n),s_)}(function(n){n[n.method=0]="method",n[n.parameter=1]="parameter",n[n.property=2]="property"})(Rr||(Rr={}));const vd="@inversifyjs/core/classIsInjectableFlagReflectKey",p_=[Array,BigInt,Boolean,Function,Number,Object,String];function v_(n){const e=Qr(n,"design:paramtypes");e!==void 0&&ei(n,go,mo,(function(t){return r=>(t.forEach((o,s)=>{var c;r.constructorArguments[s]!==void 0||(c=o,p_.includes(c))||(r.constructorArguments[s]=(function(f){return{isFromTypescriptParamType:!0,kind:Gt.singleInjection,name:void 0,optional:!1,tags:new Map,value:f}})(o))}),r)})(e))}function gd(n){return e=>{(function(t){if(Qr(t,vd)!==void 0)throw new qe(Ge.injectionDecoratorConflict,`Cannot apply @injectable decorator multiple times at class "${t.name}"`);gu(t,vd,!0)})(e),v_(e)}}var ur;(function(n){n[n.multipleInjection=0]="multipleInjection",n[n.singleInjection=1]="singleInjection"})(ur||(ur={}));const g_=/stack space|call stack|too much recursion/i,m_=/too much recursion/;function wu(n){try{return n instanceof Error&&(n instanceof RangeError&&g_.test(n.message)||n.name==="InternalError"&&m_.test(n.message))}catch(e){return e instanceof SyntaxError&&e.message.includes("Stack overflow")}}function b_(n,e){if(wu(e)){const t=(function(r){const o=[...r];return o.length===0?"(No dependency trace)":o.map(Et).join(" -> ")})((function(r){const o=new Set;for(const s of r.servicesBranch){if(o.has(s))return[...o,s];o.add(s)}return[...o]})(n));throw new qe(Ge.planning,`Circular dependency found: ${t}`,{cause:e})}throw e}const Su=Symbol.for("@inversifyjs/core/LazyPlanServiceNode");class Yt{[Su];_serviceIdentifier;_serviceNode;constructor(e,t){this[Su]=!0,this._serviceNode=e,this._serviceIdentifier=t}get bindings(){return this._getNode().bindings}get isContextFree(){return this._getNode().isContextFree}get serviceIdentifier(){return this._serviceIdentifier}set bindings(e){this._getNode().bindings=e}set isContextFree(e){this._getNode().isContextFree=e}static is(e){return typeof e=="object"&&e!==null&&e[Su]===!0}invalidate(){this._serviceNode=void 0}isExpanded(){return this._serviceNode!==void 0}_getNode(){return this._serviceNode===void 0&&(this._serviceNode=this._buildPlanServiceNode()),this._serviceNode}}class Lr{#e;constructor(e){this.#e=e}get name(){return this.#e.elem.name}get serviceIdentifier(){return this.#e.elem.serviceIdentifier}get tags(){return this.#e.elem.tags}getAncestor(){if(this.#e.elem.getAncestorsCalled=!0,this.#e.previous!==void 0)return new Lr(this.#e.previous)}}function ba(n,e,t){const r=t?.customServiceIdentifier??e.serviceIdentifier,o=(t?.chained===!0?[...n.operations.getBindingsChained(r)]:[...n.operations.getBindings(r)??[]]).filter(s=>s.isSatisfiedBy(e));if(o.length===0&&n.autobindOptions!==void 0&&typeof r=="function"){const s=ld(n.autobindOptions,r);n.operations.setBinding(s),s.isSatisfiedBy(e)&&o.push(s)}return o}class Ou{last;constructor(e){this.last=e}concat(e){return new Ou({elem:e,previous:this.last})}[Symbol.iterator](){let e=this.last;return{next:()=>{if(e===void 0)return{done:!0,value:void 0};const t=e.elem;return e=e.previous,{done:!1,value:t}}}}}function Eu(n){const e=new Map;return n.rootConstraints.tag!==void 0&&e.set(n.rootConstraints.tag.key,n.rootConstraints.tag.value),new Ou({elem:{getAncestorsCalled:!1,name:n.rootConstraints.name,serviceIdentifier:n.rootConstraints.serviceIdentifier,tags:e},previous:void 0})}function ti(n){return n.redirections!==void 0}function md(n,e,t,r){const o=t.elem.serviceIdentifier,s=t.previous?.elem.serviceIdentifier;Array.isArray(n)?(function(c,f,d,p,v,b){if(c.length!==0){const w=b[b.length-1]??d,y=`Ambiguous bindings found for service: "${Et(w)}".${wd(b)}
29
+
30
+ Registered bindings:
31
+
32
+ ${c.map(O=>(function(S){switch(S.type){case je.Instance:return`[ type: "${S.type}", serviceIdentifier: "${Et(S.serviceIdentifier)}", scope: "${S.scope}", implementationType: "${S.implementationType.name}" ]`;case je.ServiceRedirection:return`[ type: "${S.type}", serviceIdentifier: "${Et(S.serviceIdentifier)}", redirection: "${Et(S.targetServiceIdentifier)}" ]`;default:return`[ type: "${S.type}", serviceIdentifier: "${Et(S.serviceIdentifier)}", scope: "${S.scope}" ]`}})(O.binding)).join(`
33
+ `)}
34
+
35
+ Trying to resolve bindings for "${yd(d,p)}".${_d(v)}`;throw new qe(Ge.planning,y)}f||bd(d,p,v,b)})(n,e,o,s,t.elem,r):(function(c,f,d,p,v,b){c!==void 0||f||bd(d,p,v,b)})(n,e,o,s,t.elem,r)}function bd(n,e,t,r){const o=r[r.length-1]??n,s=`No bindings found for service: "${Et(o)}".
36
+
37
+ Trying to resolve bindings for "${yd(n,e)}".${wd(r)}${_d(t)}`;throw new qe(Ge.planning,s)}function yd(n,e){return e===void 0?`${Et(n)} (Root service)`:Et(e)}function _d(n){const e=n.tags.size===0?"":`
38
+ - tags:
39
+ - ${[...n.tags.keys()].map(t=>t.toString()).join(`
40
+ - `)}`;return`
41
+
42
+ Binding constraints:
43
+ - service identifier: ${Et(n.serviceIdentifier)}
44
+ - name: ${n.name?.toString()??"-"}${e}`}function wd(n){return n.length===0?"":`
45
+
46
+ - service redirections:
47
+ - ${n.map(e=>Et(e)).join(`
48
+ - `)}`}function Sd(n,e,t,r){if(n.redirections.length===1){const[o]=n.redirections;return void(ti(o)&&Sd(o,e,t,[...r,o.binding.targetServiceIdentifier]))}md(n.redirections,e,t,r)}function Iu(n,e,t){if(Array.isArray(n.bindings)&&n.bindings.length===1){const[r]=n.bindings;return void(ti(r)&&Sd(r,e,t,[r.binding.targetServiceIdentifier]))}md(n.bindings,e,t,[])}function ya(n){return ga.is(n)?n.unwrap():n}function Od(n){return(e,t,r)=>{const o=ya(r.value),s=t.concat({getAncestorsCalled:!1,name:r.name,serviceIdentifier:o,tags:r.tags}),c=new Lr(s.last),f=r.kind===Gt.multipleInjection&&r.chained,d=ba(e,c,{chained:f}),p=[],v={bindings:p,isContextFree:!0,serviceIdentifier:o};if(p.push(...n(e,s,d,v,f)),v.isContextFree=!s.last.elem.getAncestorsCalled,r.kind===Gt.singleInjection){Iu(v,r.optional,s.last);const[b]=p;v.bindings=b}return v}}function Ed(n){return(e,t,r)=>{const o=ya(r.value),s=t.concat({getAncestorsCalled:!1,name:r.name,serviceIdentifier:o,tags:r.tags}),c=new Lr(s.last),f=r.kind===ur.multipleInjection&&r.chained,d=ba(e,c,{chained:f}),p=[],v={bindings:p,isContextFree:!0,serviceIdentifier:o};if(p.push(...n(e,s,d,v,f)),v.isContextFree=!s.last.elem.getAncestorsCalled,r.kind===ur.singleInjection){Iu(v,r.optional,s.last);const[b]=p;v.bindings=b}return v}}function Id(n){const e=(function(s){return(c,f,d)=>{const p={binding:f,classMetadata:c.operations.getClassMetadata(f.implementationType),constructorParams:[],propertyParams:new Map},v={autobindOptions:c.autobindOptions,node:p,operations:c.operations,servicesBranch:c.servicesBranch};return s(v,d)}})(n),t=(function(s){return(c,f,d)=>{const p={binding:f,params:[]},v={autobindOptions:c.autobindOptions,node:p,operations:c.operations,servicesBranch:c.servicesBranch};return s(v,d)}})(n),r=(s,c,f,d,p)=>{const v=ti(d)?d.binding.targetServiceIdentifier:d.serviceIdentifier;s.servicesBranch.push(v);const b=[];for(const w of f)switch(w.type){case je.Instance:b.push(e(s,w,c));break;case je.ResolvedValue:b.push(t(s,w,c));break;case je.ServiceRedirection:{const y=o(s,c,w,p);b.push(y);break}default:b.push({binding:w})}return s.servicesBranch.pop(),b},o=(function(s){return(c,f,d,p)=>{const v={binding:d,redirections:[]},b=ba(c,new Lr(f.last),{chained:p,customServiceIdentifier:d.targetServiceIdentifier});return v.redirections.push(...s(c,f,b,v,p)),v}})(r);return r}function Ad(n,e,t,r){if(n!==void 0&&(Yt.is(t)&&!t.isExpanded()||t.isContextFree)){const o={tree:{root:t}};e.setPlan(n,o)}else e.setNonCachedServiceNode(t,r)}class y_ extends Yt{#e;#t;#r;#n;constructor(e,t,r,o,s){super(s,ya(o.value)),this.#t=t,this.#e=e,this.#r=r,this.#n=o}_buildPlanServiceNode(){return this.#t(this.#e,this.#r,this.#n)}}class __ extends Yt{#e;#t;#r;#n;constructor(e,t,r,o,s){super(s,ya(o.value)),this.#e=e,this.#t=t,this.#r=r,this.#n=o}_buildPlanServiceNode(){return this.#t(this.#e,this.#r,this.#n)}}function Td(n,e,t,r){const o=(function(c,f){const d=(function(p,v){return(b,w,y)=>{if(y.kind===Gt.unmanaged)return;const O=(function(x){let k;if(x.tags.size===0)k=void 0;else{if(x.tags.size!==1)return;{const[oe,q]=x.tags.entries().next().value;k={key:oe,value:q}}}const G=ga.is(x.value)?x.value.unwrap():x.value;return x.kind===Gt.multipleInjection?{chained:x.chained,isMultiple:!0,name:x.name,optional:x.optional,serviceIdentifier:G,tag:k}:{isMultiple:!1,name:x.name,optional:x.optional,serviceIdentifier:G,tag:k}})(y);if(O!==void 0){const x=b.operations.getPlan(O);if(x!==void 0&&x.tree.root.isContextFree)return x.tree.root}const S=v(b,w,y),A=new y_(b,p,w,y,S);return Ad(O,b.operations,A,{bindingConstraintsList:w,chainedBindings:y.kind===Gt.multipleInjection&&y.chained,optionalBindings:y.optional}),A}})(c,f);return(p,v,b)=>{const w=v.classMetadata;for(const[y,O]of w.constructorArguments.entries())v.constructorParams[y]=d(p,b,O);for(const[y,O]of w.properties){const S=d(p,b,O);S!==void 0&&v.propertyParams.set(y,S)}return p.node}})(n,t),s=(function(c,f){const d=(function(p,v){return(b,w,y)=>{const O=(function(x){let k;if(x.tags.size===0)k=void 0;else{if(x.tags.size!==1)return;{const[oe,q]=x.tags.entries().next().value;k={key:oe,value:q}}}const G=ga.is(x.value)?x.value.unwrap():x.value;return x.kind===ur.multipleInjection?{chained:x.chained,isMultiple:!0,name:x.name,optional:x.optional,serviceIdentifier:G,tag:k}:{isMultiple:!1,name:x.name,optional:x.optional,serviceIdentifier:G,tag:k}})(y);if(O!==void 0){const x=b.operations.getPlan(O);if(x!==void 0&&x.tree.root.isContextFree)return x.tree.root}const S=v(b,w,y),A=new __(b,p,w,y,S);return Ad(O,b.operations,A,{bindingConstraintsList:w,chainedBindings:y.kind===ur.multipleInjection&&y.chained,optionalBindings:y.optional}),A}})(c,f);return(p,v,b)=>{const w=v.binding.metadata;for(const[y,O]of w.arguments.entries())v.params[y]=d(p,b,O);return p.node}})(e,r);return(c,f)=>c.node.binding.type===je.Instance?o(c,c.node,f):s(c,c.node,f)}class w_ extends Yt{#e;constructor(e,t){super(t,t.serviceIdentifier),this.#e=e}_buildPlanServiceNode(){return Dd(this.#e)}}const Au=Od(Nd),Tu=Ed(Nd),xd=Id(Td(Au,Tu,Au,Tu));function Nd(n,e,t,r,o){return xd(n,e,t,r,o)}const Dd=(function(n){return e=>{const t=Eu(e),r=new Lr(t.last),o=e.rootConstraints.isMultiple&&e.rootConstraints.chained,s=ba(e,r,{chained:o}),c=[],f={bindings:c,isContextFree:!0,serviceIdentifier:e.rootConstraints.serviceIdentifier};if(c.push(...n(e,t,s,f,o)),f.isContextFree=!t.last.elem.getAncestorsCalled,!e.rootConstraints.isMultiple){Iu(f,e.rootConstraints.isOptional??!1,t.last);const[d]=c;f.bindings=d}return f}})(xd);function S_(n){try{const e=(function(s){return s.rootConstraints.isMultiple?{chained:s.rootConstraints.chained,isMultiple:!0,name:s.rootConstraints.name,optional:s.rootConstraints.isOptional??!1,serviceIdentifier:s.rootConstraints.serviceIdentifier,tag:s.rootConstraints.tag}:{isMultiple:!1,name:s.rootConstraints.name,optional:s.rootConstraints.isOptional??!1,serviceIdentifier:s.rootConstraints.serviceIdentifier,tag:s.rootConstraints.tag}})(n),t=n.operations.getPlan(e);if(t!==void 0)return t;const r=Dd(n),o={tree:{root:new w_(n,r)}};return n.operations.setPlan(e,o),o}catch(e){b_(n,e)}}var kn;(function(n){n.bindingAdded="bindingAdded",n.bindingRemoved="bindingRemoved"})(kn||(kn={}));class O_{#e;#t;#r;constructor(){this.#e=[],this.#t=8,this.#r=1024}*[Symbol.iterator](){let e=0;for(const t of this.#e){const r=t.deref();r===void 0?++e:yield r}this.#e.length>=this.#t&&this.#i(e)&&this.#n(e)}push(e){const t=new WeakRef(e);if(this.#e.push(t),this.#e.length>=this.#t&&this.#e.length%this.#r===0){let r=0;for(const o of this.#e)o.deref()===void 0&&++r;this.#i(r)&&this.#n(r)}}#n(e){const t=new Array(this.#e.length-e);let r=0;for(const o of this.#e)o.deref()&&(t[r++]=o);this.#e=t}#i(e){return e>=.5*this.#e.length}}const xu=Id(Td(Au,Tu,function(n,e,t){return E_(n,e,t)},function(n,e,t){return I_(n,e,t)})),E_=(function(n){const e=Od(n);return(t,r,o)=>{try{return e(t,r,o)}catch(s){if(qe.isErrorOfKind(s,Ge.planning))return;throw s}}})(xu),I_=(function(n){const e=Ed(n);return(t,r,o)=>{try{return e(t,r,o)}catch(s){if(qe.isErrorOfKind(s,Ge.planning))return;throw s}}})(xu);function Cd(n,e,t,r,o){if(Yt.is(e)&&!e.isExpanded())return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1};const s=new Lr(r.last);return!t.isSatisfiedBy(s)||r.last.elem.getAncestorsCalled?{isContextFreeBinding:!r.last.elem.getAncestorsCalled,shouldInvalidateServiceNode:!1}:(function(c,f,d,p,v){let b;try{[b]=xu(c,p,[d],f,v)}catch(w){if(wu(w))return{isContextFreeBinding:!1,shouldInvalidateServiceNode:!0};throw w}return(function(w,y){if(Array.isArray(w.bindings))w.bindings.push(y);else{if(w.bindings!==void 0){if(!Yt.is(w))throw new qe(Ge.planning,"Unexpected non-lazy plan service node. This is likely a bug in the planning logic. Please, report this issue");return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!0}}w.bindings=y}return{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1}})(f,b)})(n,e,t,r,o)}function Pd(n,e,t,r){if(Yt.is(n)&&!n.isExpanded())return{bindingNodeRemoved:void 0,isContextFreeBinding:!0};const o=new Lr(t.last);if(!e.isSatisfiedBy(o)||t.last.elem.getAncestorsCalled)return{bindingNodeRemoved:void 0,isContextFreeBinding:!t.last.elem.getAncestorsCalled};let s;if(Array.isArray(n.bindings))n.bindings=n.bindings.filter(c=>c.binding!==e||(s=c,!1));else if(n.bindings?.binding===e)if(s=n.bindings,r)n.bindings=void 0;else{if(!Yt.is(n))throw new qe(Ge.planning,"Unexpected non-lazy plan service node. This is likely a bug in the planning logic. Please, report this issue");n.invalidate()}return{bindingNodeRemoved:s,isContextFreeBinding:!0}}class Md{#e;#t;#r;#n;#i;#o;constructor(){this.#e=new Map,this.#t=this.#a(),this.#r=this.#a(),this.#n=this.#a(),this.#i=this.#a(),this.#o=new O_}clearCache(){for(const e of this.#h())e.clear();for(const e of this.#o)e.clearCache()}get(e){return e.name===void 0?e.tag===void 0?this.#s(this.#t,e).get(e.serviceIdentifier):this.#s(this.#i,e).get(e.serviceIdentifier)?.get(e.tag.key)?.get(e.tag.value):e.tag===void 0?this.#s(this.#r,e).get(e.serviceIdentifier)?.get(e.name):this.#s(this.#n,e).get(e.serviceIdentifier)?.get(e.name)?.get(e.tag.key)?.get(e.tag.value)}invalidateServiceBinding(e){this.#y(e),this.#l(e),this.#d(e),this.#_(e),this.#b(e);for(const t of this.#o)t.invalidateServiceBinding(e)}set(e,t){e.name===void 0?e.tag===void 0?this.#s(this.#t,e).set(e.serviceIdentifier,t):this.#u(this.#u(this.#s(this.#i,e),e.serviceIdentifier),e.tag.key).set(e.tag.value,t):e.tag===void 0?this.#u(this.#s(this.#r,e),e.serviceIdentifier).set(e.name,t):this.#u(this.#u(this.#u(this.#s(this.#n,e),e.serviceIdentifier),e.name),e.tag.key).set(e.tag.value,t)}setNonCachedServiceNode(e,t){let r=this.#e.get(e.serviceIdentifier);r===void 0&&(r=new Map,this.#e.set(e.serviceIdentifier,r)),r.set(e,t)}subscribe(e){this.#o.push(e)}#a(){const e=new Array(8);for(let t=0;t<e.length;++t)e[t]=new Map;return e}#c(e,t,r,o){const s=!!(2&t);let c;return s?c={chained:!!(0&t),isMultiple:s,serviceIdentifier:e.binding.serviceIdentifier}:c={isMultiple:s,serviceIdentifier:e.binding.serviceIdentifier},1&t&&(c.isOptional=!0),r!==void 0&&(c.name=r),o!==void 0&&(c.tag=o),{autobindOptions:void 0,operations:e.operations,rootConstraints:c,servicesBranch:[]}}#u(e,t){let r=e.get(t);return r===void 0&&(r=new Map,e.set(t,r)),r}#s(e,t){return e[this.#f(t)]}#h(){return[this.#e,...this.#t,...this.#r,...this.#n,...this.#i]}#f(e){return e.isMultiple?(e.chained?4:0)|(e.optional?1:0)|2:e.optional?1:0}#l(e){for(const[t,r]of this.#r.entries()){const o=r.get(e.binding.serviceIdentifier);if(o!==void 0)for(const[s,c]of o.entries())this.#v(e,c,t,s,void 0)}}#d(e){for(const[t,r]of this.#n.entries()){const o=r.get(e.binding.serviceIdentifier);if(o!==void 0)for(const[s,c]of o.entries())for(const[f,d]of c.entries())for(const[p,v]of d.entries())this.#v(e,v,t,s,{key:f,value:p})}}#p(e){switch(e.binding.type){case je.ServiceRedirection:for(const t of e.redirections)this.#p(t);break;case je.Instance:for(const t of e.constructorParams)t!==void 0&&this.#g(t);for(const t of e.propertyParams.values())this.#g(t);break;case je.ResolvedValue:for(const t of e.params)this.#g(t)}}#g(e){const t=this.#e.get(e.serviceIdentifier);t!==void 0&&t.has(e)&&(t.delete(e),this.#m(e))}#m(e){if((!Yt.is(e)||e.isExpanded())&&e.bindings!==void 0)if(Array.isArray(e.bindings))for(const t of e.bindings)this.#p(t);else this.#p(e.bindings)}#b(e){const t=this.#e.get(e.binding.serviceIdentifier);if(t!==void 0)switch(e.kind){case kn.bindingAdded:for(const[r,o]of t){const s=Cd({autobindOptions:void 0,operations:e.operations,servicesBranch:[]},r,e.binding,o.bindingConstraintsList,o.chainedBindings);s.isContextFreeBinding?s.shouldInvalidateServiceNode&&Yt.is(r)&&(this.#m(r),r.invalidate()):this.clearCache()}break;case kn.bindingRemoved:for(const[r,o]of t){const s=Pd(r,e.binding,o.bindingConstraintsList,o.optionalBindings);s.isContextFreeBinding?s.bindingNodeRemoved!==void 0&&this.#p(s.bindingNodeRemoved):this.clearCache()}}}#y(e){for(const[t,r]of this.#t.entries()){const o=r.get(e.binding.serviceIdentifier);this.#v(e,o,t,void 0,void 0)}}#_(e){for(const[t,r]of this.#i.entries()){const o=r.get(e.binding.serviceIdentifier);if(o!==void 0)for(const[s,c]of o.entries())for(const[f,d]of c.entries())this.#v(e,d,t,void 0,{key:s,value:f})}}#v(e,t,r,o,s){if(t!==void 0&&Yt.is(t.tree.root)){const p=this.#c(e,r,o,s);switch(e.kind){case kn.bindingAdded:{const v=(c=p,f=t.tree.root,d=e.binding,Yt.is(f)&&!f.isExpanded()?{isContextFreeBinding:!0,shouldInvalidateServiceNode:!1}:Cd(c,f,d,Eu(c),c.rootConstraints.isMultiple&&c.rootConstraints.chained));v.isContextFreeBinding?v.shouldInvalidateServiceNode&&(this.#m(t.tree.root),t.tree.root.invalidate()):this.clearCache()}break;case kn.bindingRemoved:{const v=(function(b,w,y){return Yt.is(w)&&!w.isExpanded()?{bindingNodeRemoved:void 0,isContextFreeBinding:!0}:Pd(w,y,Eu(b),b.rootConstraints.isOptional??!1)})(p,t.tree.root,e.binding);v.isContextFreeBinding?v.bindingNodeRemoved!==void 0&&this.#p(v.bindingNodeRemoved):this.clearCache()}}}var c,f,d}}function A_(n,e){if(wu(e)){const t=(function(r){const o=[...r];return o.length===0?"(No dependency trace)":o.map(Et).join(" -> ")})((function(r){const o=r.planResult.tree.root,s=[];function c(f){const d=s.indexOf(f);if(d!==-1)return[...s.slice(d),f].map(p=>p.serviceIdentifier);s.push(f);try{for(const p of(function(v){const b=[],w=v.bindings;if(w===void 0)return b;const y=O=>{if(ti(O))for(const S of O.redirections)y(S);else switch(O.binding.type){case je.Instance:{const S=O;for(const A of S.constructorParams)A!==void 0&&b.push(A);for(const A of S.propertyParams.values())b.push(A);break}case je.ResolvedValue:{const S=O;for(const A of S.params)b.push(A);break}}};if(Array.isArray(w))for(const O of w)y(O);else y(w);return b})(f)){const v=c(p);if(v!==void 0)return v}}finally{s.pop()}}return c(o)??[]})(n));throw new qe(Ge.planning,`Circular dependency found: ${t}`,{cause:e})}throw e}function Rd(n,e){return ut(e)?(n.cache={isRight:!0,value:e},e.then(t=>Ld(n,t))):Ld(n,e)}function Ld(n,e){return n.cache={isRight:!0,value:e},e}function T_(n,e,t){const r=n.getActivations(e);return r===void 0?t:ut(t)?kd(n,t,r[Symbol.iterator]()):(function(o,s,c){let f=s,d=c.next();for(;d.done!==!0;){const p=d.value(o.context,f);if(ut(p))return kd(o,p,c);f=p,d=c.next()}return f})(n,t,r[Symbol.iterator]())}async function kd(n,e,t){let r=await e,o=t.next();for(;o.done!==!0;)r=await o.value(n.context,r),o=t.next();return r}function _a(n,e,t){let r=t;if(e.onActivation!==void 0){const o=e.onActivation;r=ut(r)?r.then(s=>o(n.context,s)):o(n.context,r)}return T_(n,e.serviceIdentifier,r)}function Nu(n){return(e,t)=>t.cache.isRight?t.cache.value:Rd(t,_a(e,t,n(e,t)))}const x_=Nu(function(n,e){return e.value});function N_(n){return n}function Du(n,e){return(t,r)=>{const o=n(r);switch(o.scope){case hn.Singleton:return o.cache.isRight?o.cache.value:Rd(o,_a(t,o,e(t,r)));case hn.Request:{if(t.requestScopeCache.has(o.id))return t.requestScopeCache.get(o.id);const s=_a(t,o,e(t,r));return t.requestScopeCache.set(o.id,s),s}case hn.Transient:return _a(t,o,e(t,r))}}}const D_=(n=>Du(N_,n))(function(n,e){return e.value(n.context)}),C_=Nu(function(n,e){return e.factory(n.context)});function Bd(n,e,t){const r=(function(o,s,c){if(!(c in o))throw new qe(Ge.resolution,`Expecting a "${c.toString()}" property when resolving "${s.implementationType.name}" class @postConstruct decorated method, none found.`);if(typeof o[c]!="function")throw new qe(Ge.resolution,`Expecting a "${c.toString()}" method when resolving "${s.implementationType.name}" class @postConstruct decorated method, a non function property was found instead.`);{let f;try{f=o[c]()}catch(d){throw new qe(Ge.resolution,`Unexpected error found when calling "${c.toString()}" @postConstruct decorated method on class "${s.implementationType.name}"`,{cause:d})}if(ut(f))return(async function(d,p,v){try{await v}catch(b){throw new qe(Ge.resolution,`Unexpected error found when calling "${p.toString()}" @postConstruct decorated method on class "${d.implementationType.name}"`,{cause:b})}})(s,c,f)}})(n,e,t);return ut(r)?r.then(()=>n):n}function jd(n,e,t){if(t.size===0)return n;let r=n;for(const o of t)r=ut(r)?r.then(s=>Bd(s,e,o)):Bd(r,e,o);return r}function Fd(n){return(e,t,r)=>{const o=new r.binding.implementationType(...e),s=n(t,o,r);return ut(s)?s.then(()=>jd(o,r.binding,r.classMetadata.lifecycle.postConstructMethodNames)):jd(o,r.binding,r.classMetadata.lifecycle.postConstructMethodNames)}}const P_=Nu(function(n,e){return e.provider(n.context)});function M_(n){return n.binding}function R_(n){return n.binding}const $d=(function(n){return(e,t,r)=>{const o=[];for(const[s,c]of r.propertyParams){const f=r.classMetadata.properties.get(s);if(f===void 0)throw new qe(Ge.resolution,`Expecting metadata at property "${s.toString()}", none found`);f.kind!==Gt.unmanaged&&c.bindings!==void 0&&(t[s]=n(e,c),ut(t[s])&&o.push((async()=>{t[s]=await t[s]})()))}if(o.length>0)return Promise.all(o).then(()=>{})}})(wa),Vd=(function(n){return function e(t,r){const o=[];for(const s of r.redirections)ti(s)?o.push(...e(t,s)):o.push(n(t,s));return o}})(Cu),L_=(function(n,e,t){return(r,o)=>{const s=n(r,o);return ut(s)?e(s,r,o):t(s,r,o)}})((function(n){return(e,t)=>{const r=[];for(const o of t.constructorParams)o===void 0?r.push(void 0):r.push(n(e,o));return r.some(ut)?Promise.all(r):r}})(wa),(function(n){return async(e,t,r)=>{const o=await e;return n(o,t,r)}})(Fd($d)),Fd($d)),k_=(function(n){return(e,t)=>{const r=n(e,t);return ut(r)?r.then(o=>t.binding.factory(...o)):t.binding.factory(...r)}})((function(n){return(e,t)=>{const r=[];for(const o of t.params)r.push(n(e,o));return r.some(ut)?Promise.all(r):r}})(wa)),B_=(n=>Du(M_,n))(L_),j_=(n=>Du(R_,n))(k_);function F_(n){try{return wa(n,n.planResult.tree.root)}catch(e){A_(n,e)}}function Cu(n,e){switch(e.binding.type){case je.ConstantValue:return x_(n,e.binding);case je.DynamicValue:return D_(n,e.binding);case je.Factory:return C_(n,e.binding);case je.Instance:return B_(n,e);case je.Provider:return P_(n,e.binding);case je.ResolvedValue:return j_(n,e)}}function wa(n,e){if(e.bindings!==void 0)return Array.isArray(e.bindings)?(function(t,r){const o=[];for(const s of r)ti(s)?o.push(...Vd(t,s)):o.push(Cu(t,s));return o.some(ut)?Promise.all(o):o})(n,e.bindings):(function(t,r){if(ti(r)){const o=Vd(t,r);if(o.length===1)return o[0];throw new qe(Ge.resolution,"Unexpected multiple resolved values on single injection")}return Cu(t,r)})(n,e.bindings)}function $_(n){return n.scope!==void 0}function Wd(n,e){if(typeof n[e]=="function")return n[e]()}function Ud(n,e){const t=n.lifecycle.preDestroyMethodNames;if(t.size===0)return;let r;for(const o of t)r=r===void 0?Wd(e,o):r.then(()=>Wd(e,o));return r}function zd(n,e,t){const r=n.getDeactivations(e);if(r!==void 0)return ut(t)?Hd(t,r[Symbol.iterator]()):(function(o,s){let c=s.next();for(;c.done!==!0;){const f=c.value(o);if(ut(f))return Hd(o,s);c=s.next()}})(t,r[Symbol.iterator]())}async function Hd(n,e){const t=await n;let r=e.next();for(;r.done!==!0;)await r.value(t),r=e.next()}function V_(n,e){const t=(function(r,o){if(o.type===je.Instance){const s=r.getClassMetadata(o.implementationType),c=o.cache.value;return ut(c)?c.then(f=>Ud(s,f)):Ud(s,c)}})(n,e);return t===void 0?qd(n,e):t.then(()=>qd(n,e))}function qd(n,e){const t=e.cache;return ut(t.value)?t.value.then(r=>Gd(n,e,r)):Gd(n,e,t.value)}function Gd(n,e,t){let r;return e.onDeactivation!==void 0&&(r=(0,e.onDeactivation)(t)),r===void 0?zd(n,e.serviceIdentifier,t):r.then(()=>zd(n,e.serviceIdentifier,t))}function Sa(n,e){if(e===void 0)return;const t=(function(o){const s=[];for(const c of o)$_(c)&&c.scope===hn.Singleton&&c.cache.isRight&&s.push(c);return s})(e),r=[];for(const o of t){const s=V_(n,o);s!==void 0&&r.push(s)}return r.length>0?Promise.all(r).then(()=>{}):void 0}function W_(n,e){const t=n.getBindingsFromModule(e);return Sa(n,t)}function U_(n,e){const t=n.getBindings(e);return Sa(n,t)}const z_=Symbol.for("@inversifyjs/plugin/isPlugin"),Pu="@inversifyjs/container/bindingId";let H_=class{#e;#t;constructor(e){this.#e=(function(){const t=Qr(Object,Pu)??0;return t===Number.MAX_SAFE_INTEGER?gu(Object,Pu,Number.MIN_SAFE_INTEGER):ei(Object,Pu,()=>t,r=>r+1),t})(),this.#t=e}get id(){return this.#e}load(e){return this.#t(e)}};const Yd=Symbol.for("@inversifyjs/container/bindingIdentifier");function Jd(n){return typeof n=="object"&&n!==null&&n[Yd]===!0}let ni=class{static always=e=>!0};const Mu=Symbol.for("@inversifyjs/container/InversifyContainerError");let Zn=class t_ extends Error{[Mu];kind;constructor(e,t,r){super(t,r),this[Mu]=!0,this.kind=e}static is(e){return typeof e=="object"&&e!==null&&e[Mu]===!0}static isErrorOfKind(e,t){return t_.is(e)&&e.kind===t}};var pn;function Ru(n){return{[Yd]:!0,id:n.id}}function _o(n){return e=>{for(let t=e.getAncestor();t!==void 0;t=t.getAncestor())if(n(t))return!0;return!1}}function wo(n){return e=>e.name===n}function Oa(n){return e=>e.serviceIdentifier===n}function So(n,e){return t=>t.tags.has(n)&&t.tags.get(n)===e}function q_(n){return n.name===void 0&&n.tags.size===0}function Ea(n){const e=_o(n);return t=>!e(t)}function Ia(n){return e=>{const t=e.getAncestor();return t===void 0||!n(t)}}function Aa(n){return e=>{const t=e.getAncestor();return t!==void 0&&n(t)}}(function(n){n[n.invalidOperation=0]="invalidOperation"})(pn||(pn={}));let G_=class{#e;constructor(e){this.#e=e}getIdentifier(){return Ru(this.#e)}inRequestScope(){return this.#e.scope=hn.Request,new ri(this.#e)}inSingletonScope(){return this.#e.scope=hn.Singleton,new ri(this.#e)}inTransientScope(){return this.#e.scope=hn.Transient,new ri(this.#e)}},Kd=class{#e;#t;#r;#n;constructor(e,t,r,o){this.#e=e,this.#t=t,this.#r=r,this.#n=o}to(e){const t=ma(e),r={cache:{isRight:!1,value:void 0},id:Mr(),implementationType:e,isSatisfiedBy:ni.always,moduleId:this.#t,onActivation:void 0,onDeactivation:void 0,scope:t.scope??this.#r,serviceIdentifier:this.#n,type:je.Instance};return this.#e(r),new ku(r)}toSelf(){if(typeof this.#n!="function")throw new Error('"toSelf" function can only be applied when a newable function is used as service identifier');return this.to(this.#n)}toConstantValue(e){const t={cache:{isRight:!1,value:void 0},id:Mr(),isSatisfiedBy:ni.always,moduleId:this.#t,onActivation:void 0,onDeactivation:void 0,scope:hn.Singleton,serviceIdentifier:this.#n,type:je.ConstantValue,value:e};return this.#e(t),new ri(t)}toDynamicValue(e){const t={cache:{isRight:!1,value:void 0},id:Mr(),isSatisfiedBy:ni.always,moduleId:this.#t,onActivation:void 0,onDeactivation:void 0,scope:this.#r,serviceIdentifier:this.#n,type:je.DynamicValue,value:e};return this.#e(t),new ku(t)}toResolvedValue(e,t){const r={cache:{isRight:!1,value:void 0},factory:e,id:Mr(),isSatisfiedBy:ni.always,metadata:this.#i(t),moduleId:this.#t,onActivation:void 0,onDeactivation:void 0,scope:this.#r,serviceIdentifier:this.#n,type:je.ResolvedValue};return this.#e(r),new ku(r)}toFactory(e){const t={cache:{isRight:!1,value:void 0},factory:e,id:Mr(),isSatisfiedBy:ni.always,moduleId:this.#t,onActivation:void 0,onDeactivation:void 0,scope:hn.Singleton,serviceIdentifier:this.#n,type:je.Factory};return this.#e(t),new ri(t)}toProvider(e){const t={cache:{isRight:!1,value:void 0},id:Mr(),isSatisfiedBy:ni.always,moduleId:this.#t,onActivation:void 0,onDeactivation:void 0,provider:e,scope:hn.Singleton,serviceIdentifier:this.#n,type:je.Provider};return this.#e(t),new ri(t)}toService(e){const t={id:Mr(),isSatisfiedBy:ni.always,moduleId:this.#t,serviceIdentifier:this.#n,targetServiceIdentifier:e,type:je.ServiceRedirection};this.#e(t)}#i(e){return{arguments:(e??[]).map(t=>(function(r){return typeof r=="object"&&!ga.is(r)})(t)?(function(r){return r.isMultiple===!0})(t)?{chained:t.chained??!1,kind:ur.multipleInjection,name:t.name,optional:t.optional??!1,tags:new Map((t.tags??[]).map(r=>[r.key,r.value])),value:t.serviceIdentifier}:{kind:ur.singleInjection,name:t.name,optional:t.optional??!1,tags:new Map((t.tags??[]).map(r=>[r.key,r.value])),value:t.serviceIdentifier}:{kind:ur.singleInjection,name:void 0,optional:!1,tags:new Map,value:t})}}};class Xd{#e;constructor(e){this.#e=e}getIdentifier(){return Ru(this.#e)}onActivation(e){return this.#e.onActivation=e,new Lu(this.#e)}onDeactivation(e){if(this.#e.onDeactivation=e,this.#e.scope!==hn.Singleton)throw new Zn(pn.invalidOperation,`Binding for service "${Et(this.#e.serviceIdentifier)}" has a deactivation function, but its scope is not singleton. Deactivation functions can only be used with singleton bindings.`);return new Lu(this.#e)}}let Lu=class{#e;constructor(e){this.#e=e}getIdentifier(){return Ru(this.#e)}when(e){return this.#e.isSatisfiedBy=e,new Xd(this.#e)}whenAnyAncestor(e){return this.when(_o(e))}whenAnyAncestorIs(e){return this.when(_o(Oa(e)))}whenAnyAncestorNamed(e){return this.when((function(t){return _o(wo(t))})(e))}whenAnyAncestorTagged(e,t){return this.when((function(r,o){return _o(So(r,o))})(e,t))}whenDefault(){return this.when(q_)}whenNamed(e){return this.when(wo(e))}whenNoParent(e){return this.when(Ia(e))}whenNoParentIs(e){return this.when(Ia(Oa(e)))}whenNoParentNamed(e){return this.when((function(t){return Ia(wo(t))})(e))}whenNoParentTagged(e,t){return this.when((function(r,o){return Ia(So(r,o))})(e,t))}whenParent(e){return this.when(Aa(e))}whenParentIs(e){return this.when(Aa(Oa(e)))}whenParentNamed(e){return this.when((function(t){return Aa(wo(t))})(e))}whenParentTagged(e,t){return this.when((function(r,o){return Aa(So(r,o))})(e,t))}whenTagged(e,t){return this.when(So(e,t))}whenNoAncestor(e){return this.when(Ea(e))}whenNoAncestorIs(e){return this.when(Ea(Oa(e)))}whenNoAncestorNamed(e){return this.when((function(t){return Ea(wo(t))})(e))}whenNoAncestorTagged(e,t){return this.when((function(r,o){return Ea(So(r,o))})(e,t))}};class ri extends Lu{#e;constructor(e){super(e),this.#e=new Xd(e)}onActivation(e){return this.#e.onActivation(e)}onDeactivation(e){return this.#e.onDeactivation(e)}}let ku=class extends ri{#e;constructor(e){super(e),this.#e=new G_(e)}inRequestScope(){return this.#e.inRequestScope()}inSingletonScope(){return this.#e.inSingletonScope()}inTransientScope(){return this.#e.inTransientScope()}},Y_=class{#e;#t;#r;#n;constructor(e,t,r,o){this.#e=e,this.#t=t,this.#r=r,this.#n=o}bind(e){return new Kd(t=>{this.#i(t)},void 0,this.#t,e)}isBound(e,t){const r=this.#n.bindingService.get(e);return this.#d(e,r,t)}isCurrentBound(e,t){const r=this.#n.bindingService.getNonParentBindings(e);return this.#d(e,r,t)}async rebind(e){return await this.unbind(e),this.bind(e)}rebindSync(e){return this.unbindSync(e),this.bind(e)}async unbind(e){await this.#a(e)}async unbindAll(){await this.#s()}unbindAllSync(){if(this.#s()!==void 0)throw new Zn(pn.invalidOperation,"Unexpected asynchronous deactivation when unbinding all services. Consider using Container.unbindAll() instead.")}unbindSync(e){this.#a(e)!==void 0&&this.#o(e)}#i(e){this.#n.bindingService.set(e),this.#r.invalidateService({binding:e,kind:kn.bindingAdded})}#o(e){let t;if(Jd(e)){const o=this.#n.bindingService.getById(e.id),s=(r=o,(function(c){if(c===void 0)return;const f=c.next();return f.done!==!0?f.value:void 0})(r?.[Symbol.iterator]()))?.serviceIdentifier;t=s===void 0?"Unexpected asynchronous deactivation when unbinding binding identifier. Consider using Container.unbind() instead.":`Unexpected asynchronous deactivation when unbinding "${Et(s)}" binding. Consider using Container.unbind() instead.`}else t=`Unexpected asynchronous deactivation when unbinding "${Et(e)}" service. Consider using Container.unbind() instead.`;var r;throw new Zn(pn.invalidOperation,t)}#a(e){return Jd(e)?this.#c(e):this.#f(e)}#c(e){const t=this.#n.bindingService.getById(e.id),r=t===void 0?void 0:[...t],o=Sa(this.#e,t);if(o!==void 0)return o.then(()=>{this.#u(r,e)});this.#u(r,e)}#u(e,t){if(this.#n.bindingService.removeById(t.id),e!==void 0)for(const r of e)this.#r.invalidateService({binding:r,kind:kn.bindingRemoved})}#s(){const e=[...this.#n.bindingService.getNonParentBoundServices()],t=e.map(r=>U_(this.#e,r));if(t.some(r=>ut(r)))return Promise.all(t).then(()=>{this.#h(e)});this.#h(e)}#h(e){for(const t of e)this.#n.activationService.removeAllByServiceId(t),this.#n.bindingService.removeAllByServiceId(t),this.#n.deactivationService.removeAllByServiceId(t);this.#n.planResultCacheService.clearCache()}#f(e){const t=this.#n.bindingService.get(e),r=t===void 0?void 0:[...t],o=Sa(this.#e,t);if(o!==void 0)return o.then(()=>{this.#l(e,r)});this.#l(e,r)}#l(e,t){if(this.#n.activationService.removeAllByServiceId(e),this.#n.bindingService.removeAllByServiceId(e),this.#n.deactivationService.removeAllByServiceId(e),t!==void 0)for(const r of t)this.#r.invalidateService({binding:r,kind:kn.bindingRemoved})}#d(e,t,r){if(t===void 0)return!1;const o={getAncestor:()=>{},name:r?.name,serviceIdentifier:e,tags:new Map};r?.tag!==void 0&&o.tags.set(r.tag.key,r.tag.value);for(const s of t)if(s.isSatisfiedBy(o))return!0;return!1}},J_=class{#e;#t;#r;#n;#i;constructor(e,t,r,o,s){this.#e=e,this.#t=t,this.#r=r,this.#n=o,this.#i=s}async load(...e){await Promise.all(this.#c(...e))}loadSync(...e){const t=this.#c(...e);for(const r of t)if(r!==void 0)throw new Zn(pn.invalidOperation,"Unexpected asynchronous module load. Consider using Container.load() instead.")}async unload(...e){await Promise.all(this.#s(...e)),this.#a(e)}unloadSync(...e){const t=this.#s(...e);for(const r of t)if(r!==void 0)throw new Zn(pn.invalidOperation,"Unexpected asynchronous module unload. Consider using Container.unload() instead.");this.#a(e)}#o(e){return{bind:t=>new Kd(r=>{this.#u(r)},e,this.#r,t),isBound:this.#e.isBound.bind(this.#e),onActivation:(t,r)=>{this.#i.activationService.add(r,{moduleId:e,serviceId:t})},onDeactivation:(t,r)=>{this.#i.deactivationService.add(r,{moduleId:e,serviceId:t})},rebind:this.#e.rebind.bind(this.#e),rebindSync:this.#e.rebindSync.bind(this.#e),unbind:this.#e.unbind.bind(this.#e),unbindSync:this.#e.unbindSync.bind(this.#e)}}#a(e){for(const t of e)this.#i.activationService.removeAllByModuleId(t.id),this.#i.bindingService.removeAllByModuleId(t.id),this.#i.deactivationService.removeAllByModuleId(t.id);this.#i.planResultCacheService.clearCache()}#c(...e){return e.map(t=>t.load(this.#o(t.id)))}#u(e){this.#i.bindingService.set(e),this.#n.invalidateService({binding:e,kind:kn.bindingAdded})}#s(...e){return e.map(t=>W_(this.#t,t.id))}},K_=class{deactivationParams;constructor(e){this.deactivationParams=(function(t){return{getBindings:t.bindingService.get.bind(t.bindingService),getBindingsFromModule:t.bindingService.getByModuleId.bind(t.bindingService),getClassMetadata:ma,getDeactivations:t.deactivationService.get.bind(t.deactivationService)}})(e),e.onReset(()=>{(function(t,r){r.getBindings=t.bindingService.get.bind(t.bindingService),r.getBindingsFromModule=t.bindingService.getByModuleId.bind(t.bindingService),r.getDeactivations=t.deactivationService.get.bind(t.deactivationService)})(e,this.deactivationParams)})}};class X_{planParamsOperations;#e;constructor(e){this.#e=e,this.planParamsOperations={getBindings:this.#e.bindingService.get.bind(this.#e.bindingService),getBindingsChained:this.#e.bindingService.getChained.bind(this.#e.bindingService),getClassMetadata:ma,getPlan:this.#e.planResultCacheService.get.bind(this.#e.planResultCacheService),setBinding:this.#r.bind(this),setNonCachedServiceNode:this.#e.planResultCacheService.setNonCachedServiceNode.bind(this.#e.planResultCacheService),setPlan:this.#e.planResultCacheService.set.bind(this.#e.planResultCacheService)},this.#e.onReset(()=>{this.#t()})}#t(){this.planParamsOperations.getBindings=this.#e.bindingService.get.bind(this.#e.bindingService),this.planParamsOperations.getBindingsChained=this.#e.bindingService.getChained.bind(this.#e.bindingService),this.planParamsOperations.setBinding=this.#r.bind(this)}#r(e){this.#e.bindingService.set(e),this.#e.planResultCacheService.invalidateServiceBinding({binding:e,kind:kn.bindingAdded,operations:this.planParamsOperations})}}let Z_=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}invalidateService(e){this.#t.planResultCacheService.invalidateServiceBinding({...e,operations:this.#e.planParamsOperations})}},Q_=class{#e;#t;#r;#n;constructor(e,t,r){this.#n=t,this.#r=r,this.#e=this.#i(e),this.#t=this.#o()}register(e,t){const r=new t(e,this.#t);if(r[z_]!==!0)throw new Zn(pn.invalidOperation,"Invalid plugin. The plugin must extend the Plugin class");r.load(this.#e)}#i(e){return{define:(t,r)=>{if(Object.prototype.hasOwnProperty.call(e,t))throw new Zn(pn.invalidOperation,`Container already has a method named "${String(t)}"`);e[t]=r},onPlan:this.#r.onPlan.bind(this.#r)}}#o(){const e=this.#n;return{get activationService(){return e.activationService},get bindingService(){return e.bindingService},get deactivationService(){return e.deactivationService},get planResultCacheService(){return e.planResultCacheService}}}},Zd=class{activationService;bindingService;deactivationService;planResultCacheService;#e;constructor(e,t,r,o){this.activationService=e,this.bindingService=t,this.deactivationService=r,this.planResultCacheService=o,this.#e=[]}reset(e,t,r){this.activationService=e,this.bindingService=t,this.deactivationService=r,this.planResultCacheService.clearCache();for(const o of this.#e)o()}onReset(e){this.#e.push(e)}};class e0{#e;#t;#r;#n;#i;#o;#a;constructor(e,t,r,o){this.#o=e,this.#a=t,this.#n=this.#l(),this.#e=r,this.#t=o,this.#r=s=>this.#a.activationService.get(s),this.#i=[],this.#a.onReset(()=>{this.#c()})}get(e,t){const r=this.#f(!1,e,t),o=this.#d(r);if(ut(o))throw new Zn(pn.invalidOperation,`Unexpected asynchronous service when resolving service "${Et(e)}"`);return o}getAll(e,t){const r=this.#f(!0,e,t),o=this.#d(r);if(ut(o))throw new Zn(pn.invalidOperation,`Unexpected asynchronous service when resolving service "${Et(e)}"`);return o}async getAllAsync(e,t){const r=this.#f(!0,e,t);return this.#d(r)}async getAsync(e,t){const r=this.#f(!1,e,t);return this.#d(r)}onPlan(e){this.#i.push(e)}#c(){this.#n=this.#l()}#u(e,t,r){const o=r?.name,s=r?.optional??!1,c=r?.tag;return e?{chained:r?.chained??!1,isMultiple:e,name:o,optional:s,serviceIdentifier:t,tag:c}:{isMultiple:e,name:o,optional:s,serviceIdentifier:t,tag:c}}#s(e,t,r){const o={autobindOptions:r?.autobind??this.#e?{scope:this.#t}:void 0,operations:this.#o.planParamsOperations,rootConstraints:this.#h(e,t,r),servicesBranch:[]};return this.#p(o,r),o}#h(e,t,r){return t?{chained:r?.chained??!1,isMultiple:t,serviceIdentifier:e}:{isMultiple:t,serviceIdentifier:e}}#f(e,t,r){const o=this.#u(e,t,r),s=this.#a.planResultCacheService.get(o);if(s!==void 0)return s;const c=S_(this.#s(t,e,r));for(const f of this.#i)f(o,c);return c}#l(){return{get:this.get.bind(this),getAll:this.getAll.bind(this),getAllAsync:this.getAllAsync.bind(this),getAsync:this.getAsync.bind(this)}}#d(e){return F_({context:this.#n,getActivations:this.#r,planResult:e,requestScopeCache:new Map})}#p(e,t){t!==void 0&&(t.name!==void 0&&(e.rootConstraints.name=t.name),t.optional===!0&&(e.rootConstraints.isOptional=!0),t.tag!==void 0&&(e.rootConstraints.tag={key:t.tag.key,value:t.tag.value}),e.rootConstraints.isMultiple&&(e.rootConstraints.chained=t?.chained??!1))}}class t0{#e;#t;constructor(e){this.#e=e,this.#t=[]}restore(){const e=this.#t.pop();if(e===void 0)throw new Zn(pn.invalidOperation,"No snapshot available to restore");this.#e.reset(e.activationService,e.bindingService,e.deactivationService)}snapshot(){this.#t.push({activationService:this.#e.activationService.clone(),bindingService:this.#e.bindingService.clone(),deactivationService:this.#e.deactivationService.clone()})}}const n0=hn.Transient;class r0{#e;#t;#r;#n;#i;#o;constructor(e){const t=e?.autobind??!1,r=e?.defaultScope??n0;this.#n=this.#c(e,t,r);const o=new X_(this.#n),s=new Z_(o,this.#n),c=new K_(this.#n);this.#e=new Y_(c.deactivationParams,r,s,this.#n),this.#t=new J_(this.#e,c.deactivationParams,r,s,this.#n),this.#i=new e0(o,this.#n,t,r),this.#r=new Q_(this,this.#n,this.#i),this.#o=new t0(this.#n)}bind(e){return this.#e.bind(e)}get(e,t){return this.#i.get(e,t)}getAll(e,t){return this.#i.getAll(e,t)}async getAllAsync(e,t){return this.#i.getAllAsync(e,t)}async getAsync(e,t){return this.#i.getAsync(e,t)}isBound(e,t){return this.#e.isBound(e,t)}isCurrentBound(e,t){return this.#e.isCurrentBound(e,t)}async load(...e){return this.#t.load(...e)}loadSync(...e){this.#t.loadSync(...e)}onActivation(e,t){this.#n.activationService.add(t,{serviceId:e})}onDeactivation(e,t){this.#n.deactivationService.add(t,{serviceId:e})}register(e){this.#r.register(this,e)}restore(){this.#o.restore()}async rebind(e){return this.#e.rebind(e)}rebindSync(e){return this.#e.rebindSync(e)}snapshot(){this.#o.snapshot()}async unbind(e){await this.#e.unbind(e)}async unbindAll(){await this.#e.unbindAll()}unbindAllSync(){this.#e.unbindAllSync()}unbindSync(e){this.#e.unbindSync(e)}async unload(...e){return this.#t.unload(...e)}unloadSync(...e){this.#t.unloadSync(...e)}#a(e,t){if(e)return{scope:t}}#c(e,t,r){const o=this.#a(t,r);if(e?.parent===void 0)return new Zd(cd.build(()=>{}),dd.build(()=>{},o),hd.build(()=>{}),new Md);const s=new Md,c=e.parent;return c.#n.planResultCacheService.subscribe(s),new Zd(cd.build(()=>c.#n.activationService),dd.build(()=>c.#n.bindingService,o),hd.build(()=>c.#n.deactivationService),s)}}const ii={JustLayoutService:Symbol.for("JustLayoutService"),JustLayoutStore:Symbol.for("JustLayoutStore"),JustLayoutFactory:Symbol.for("JustLayoutFactory")};var Oo={exports:{}};var i0=Oo.exports,Qd;function o0(){return Qd||(Qd=1,(function(n,e){(function(){var t,r="4.17.23",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,v="__lodash_placeholder__",b=1,w=2,y=4,O=1,S=2,A=1,x=2,k=4,G=8,oe=16,q=32,ye=64,L=128,F=256,ae=512,we=30,ce="...",Se=800,he=16,ct=1,ht=2,ft=3,xt=1/0,ue=9007199254740991,nn=17976931348623157e292,Pt=NaN,Le=4294967295,wr=Le-1,pe=Le>>>1,Lt=[["ary",L],["bind",A],["bindKey",x],["curry",G],["curryRight",oe],["flip",ae],["partial",q],["partialRight",ye],["rearg",F]],rn="[object Arguments]",Ce="[object Array]",ir="[object AsyncFunction]",$t="[object Boolean]",Vt="[object Date]",Sr="[object DOMException]",pt="[object Error]",In="[object Function]",An="[object GeneratorFunction]",Ke="[object Map]",on="[object Number]",Tn="[object Null]",at="[object Object]",vt="[object Promise]",Gn="[object Proxy]",Qe="[object RegExp]",bt="[object Set]",St="[object String]",P="[object Symbol]",W="[object Undefined]",U="[object WeakMap]",ee="[object WeakSet]",le="[object ArrayBuffer]",Be="[object DataView]",nt="[object Float32Array]",Nt="[object Float64Array]",it="[object Int8Array]",I="[object Int16Array]",N="[object Int32Array]",C="[object Uint8Array]",j="[object Uint8ClampedArray]",Z="[object Uint16Array]",_e="[object Uint32Array]",Me=/\b__p \+= '';/g,ne=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,te=/[&<>"']/g,X=RegExp(K.source),Ee=RegExp(te.source),He=/<%-([\s\S]+?)%>/g,et=/<%([\s\S]+?)%>/g,yt=/<%=([\s\S]+?)%>/g,Ji=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xo=/^\w*$/,Ki=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zo=/[\\^$.*+?()[\]{}|]/g,zf=RegExp(Zo.source),Or=/^\s+/,Qo=/\s/,ea=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xi=/\{\n\/\* \[wrapped with (.+)\] \*/,Lx=/,? & /,kx=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bx=/[()=,{}\[\]\/\s]/,jx=/\\(\\)?/g,Fx=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Tm=/\w*$/,$x=/^[-+]0x[0-9a-f]+$/i,Vx=/^0b[01]+$/i,Wx=/^\[object .+?Constructor\]$/,Ux=/^0o[0-7]+$/i,zx=/^(?:0|[1-9]\d*)$/,Hx=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ts=/($^)/,qx=/['\n\r\u2028\u2029\\]/g,xs="\\ud800-\\udfff",Gx="\\u0300-\\u036f",Yx="\\ufe20-\\ufe2f",Jx="\\u20d0-\\u20ff",xm=Gx+Yx+Jx,Nm="\\u2700-\\u27bf",Dm="a-z\\xdf-\\xf6\\xf8-\\xff",Kx="\\xac\\xb1\\xd7\\xf7",Xx="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Zx="\\u2000-\\u206f",Qx=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cm="A-Z\\xc0-\\xd6\\xd8-\\xde",Pm="\\ufe0e\\ufe0f",Mm=Kx+Xx+Zx+Qx,Hf="['’]",eN="["+xs+"]",Rm="["+Mm+"]",Ns="["+xm+"]",Lm="\\d+",tN="["+Nm+"]",km="["+Dm+"]",Bm="[^"+xs+Mm+Lm+Nm+Dm+Cm+"]",qf="\\ud83c[\\udffb-\\udfff]",nN="(?:"+Ns+"|"+qf+")",jm="[^"+xs+"]",Gf="(?:\\ud83c[\\udde6-\\uddff]){2}",Yf="[\\ud800-\\udbff][\\udc00-\\udfff]",Zi="["+Cm+"]",Fm="\\u200d",$m="(?:"+km+"|"+Bm+")",rN="(?:"+Zi+"|"+Bm+")",Vm="(?:"+Hf+"(?:d|ll|m|re|s|t|ve))?",Wm="(?:"+Hf+"(?:D|LL|M|RE|S|T|VE))?",Um=nN+"?",zm="["+Pm+"]?",iN="(?:"+Fm+"(?:"+[jm,Gf,Yf].join("|")+")"+zm+Um+")*",oN="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",aN="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hm=zm+Um+iN,sN="(?:"+[tN,Gf,Yf].join("|")+")"+Hm,uN="(?:"+[jm+Ns+"?",Ns,Gf,Yf,eN].join("|")+")",cN=RegExp(Hf,"g"),fN=RegExp(Ns,"g"),Jf=RegExp(qf+"(?="+qf+")|"+uN+Hm,"g"),lN=RegExp([Zi+"?"+km+"+"+Vm+"(?="+[Rm,Zi,"$"].join("|")+")",rN+"+"+Wm+"(?="+[Rm,Zi+$m,"$"].join("|")+")",Zi+"?"+$m+"+"+Vm,Zi+"+"+Wm,aN,oN,Lm,sN].join("|"),"g"),dN=RegExp("["+Fm+xs+xm+Pm+"]"),hN=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pN=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],vN=-1,tt={};tt[nt]=tt[Nt]=tt[it]=tt[I]=tt[N]=tt[C]=tt[j]=tt[Z]=tt[_e]=!0,tt[rn]=tt[Ce]=tt[le]=tt[$t]=tt[Be]=tt[Vt]=tt[pt]=tt[In]=tt[Ke]=tt[on]=tt[at]=tt[Qe]=tt[bt]=tt[St]=tt[U]=!1;var Xe={};Xe[rn]=Xe[Ce]=Xe[le]=Xe[Be]=Xe[$t]=Xe[Vt]=Xe[nt]=Xe[Nt]=Xe[it]=Xe[I]=Xe[N]=Xe[Ke]=Xe[on]=Xe[at]=Xe[Qe]=Xe[bt]=Xe[St]=Xe[P]=Xe[C]=Xe[j]=Xe[Z]=Xe[_e]=!0,Xe[pt]=Xe[In]=Xe[U]=!1;var gN={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},mN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bN={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},yN={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_N=parseFloat,wN=parseInt,qm=typeof dn=="object"&&dn&&dn.Object===Object&&dn,SN=typeof self=="object"&&self&&self.Object===Object&&self,Dt=qm||SN||Function("return this")(),Kf=e&&!e.nodeType&&e,bi=Kf&&!0&&n&&!n.nodeType&&n,Gm=bi&&bi.exports===Kf,Xf=Gm&&qm.process,xn=(function(){try{var T=bi&&bi.require&&bi.require("util").types;return T||Xf&&Xf.binding&&Xf.binding("util")}catch{}})(),Ym=xn&&xn.isArrayBuffer,Jm=xn&&xn.isDate,Km=xn&&xn.isMap,Xm=xn&&xn.isRegExp,Zm=xn&&xn.isSet,Qm=xn&&xn.isTypedArray;function an(T,B,M){switch(M.length){case 0:return T.call(B);case 1:return T.call(B,M[0]);case 2:return T.call(B,M[0],M[1]);case 3:return T.call(B,M[0],M[1],M[2])}return T.apply(B,M)}function ON(T,B,M,se){for(var Oe=-1,We=T==null?0:T.length;++Oe<We;){var _t=T[Oe];B(se,_t,M(_t),T)}return se}function Nn(T,B){for(var M=-1,se=T==null?0:T.length;++M<se&&B(T[M],M,T)!==!1;);return T}function EN(T,B){for(var M=T==null?0:T.length;M--&&B(T[M],M,T)!==!1;);return T}function eb(T,B){for(var M=-1,se=T==null?0:T.length;++M<se;)if(!B(T[M],M,T))return!1;return!0}function zr(T,B){for(var M=-1,se=T==null?0:T.length,Oe=0,We=[];++M<se;){var _t=T[M];B(_t,M,T)&&(We[Oe++]=_t)}return We}function Ds(T,B){var M=T==null?0:T.length;return!!M&&Qi(T,B,0)>-1}function Zf(T,B,M){for(var se=-1,Oe=T==null?0:T.length;++se<Oe;)if(M(B,T[se]))return!0;return!1}function rt(T,B){for(var M=-1,se=T==null?0:T.length,Oe=Array(se);++M<se;)Oe[M]=B(T[M],M,T);return Oe}function Hr(T,B){for(var M=-1,se=B.length,Oe=T.length;++M<se;)T[Oe+M]=B[M];return T}function Qf(T,B,M,se){var Oe=-1,We=T==null?0:T.length;for(se&&We&&(M=T[++Oe]);++Oe<We;)M=B(M,T[Oe],Oe,T);return M}function IN(T,B,M,se){var Oe=T==null?0:T.length;for(se&&Oe&&(M=T[--Oe]);Oe--;)M=B(M,T[Oe],Oe,T);return M}function el(T,B){for(var M=-1,se=T==null?0:T.length;++M<se;)if(B(T[M],M,T))return!0;return!1}var AN=tl("length");function TN(T){return T.split("")}function xN(T){return T.match(kx)||[]}function tb(T,B,M){var se;return M(T,function(Oe,We,_t){if(B(Oe,We,_t))return se=We,!1}),se}function Cs(T,B,M,se){for(var Oe=T.length,We=M+(se?1:-1);se?We--:++We<Oe;)if(B(T[We],We,T))return We;return-1}function Qi(T,B,M){return B===B?$N(T,B,M):Cs(T,nb,M)}function NN(T,B,M,se){for(var Oe=M-1,We=T.length;++Oe<We;)if(se(T[Oe],B))return Oe;return-1}function nb(T){return T!==T}function rb(T,B){var M=T==null?0:T.length;return M?rl(T,B)/M:Pt}function tl(T){return function(B){return B==null?t:B[T]}}function nl(T){return function(B){return T==null?t:T[B]}}function ib(T,B,M,se,Oe){return Oe(T,function(We,_t,Ye){M=se?(se=!1,We):B(M,We,_t,Ye)}),M}function DN(T,B){var M=T.length;for(T.sort(B);M--;)T[M]=T[M].value;return T}function rl(T,B){for(var M,se=-1,Oe=T.length;++se<Oe;){var We=B(T[se]);We!==t&&(M=M===t?We:M+We)}return M}function il(T,B){for(var M=-1,se=Array(T);++M<T;)se[M]=B(M);return se}function CN(T,B){return rt(B,function(M){return[M,T[M]]})}function ob(T){return T&&T.slice(0,cb(T)+1).replace(Or,"")}function sn(T){return function(B){return T(B)}}function ol(T,B){return rt(B,function(M){return T[M]})}function ta(T,B){return T.has(B)}function ab(T,B){for(var M=-1,se=T.length;++M<se&&Qi(B,T[M],0)>-1;);return M}function sb(T,B){for(var M=T.length;M--&&Qi(B,T[M],0)>-1;);return M}function PN(T,B){for(var M=T.length,se=0;M--;)T[M]===B&&++se;return se}var MN=nl(gN),RN=nl(mN);function LN(T){return"\\"+yN[T]}function kN(T,B){return T==null?t:T[B]}function eo(T){return dN.test(T)}function BN(T){return hN.test(T)}function jN(T){for(var B,M=[];!(B=T.next()).done;)M.push(B.value);return M}function al(T){var B=-1,M=Array(T.size);return T.forEach(function(se,Oe){M[++B]=[Oe,se]}),M}function ub(T,B){return function(M){return T(B(M))}}function qr(T,B){for(var M=-1,se=T.length,Oe=0,We=[];++M<se;){var _t=T[M];(_t===B||_t===v)&&(T[M]=v,We[Oe++]=M)}return We}function Ps(T){var B=-1,M=Array(T.size);return T.forEach(function(se){M[++B]=se}),M}function FN(T){var B=-1,M=Array(T.size);return T.forEach(function(se){M[++B]=[se,se]}),M}function $N(T,B,M){for(var se=M-1,Oe=T.length;++se<Oe;)if(T[se]===B)return se;return-1}function VN(T,B,M){for(var se=M+1;se--;)if(T[se]===B)return se;return se}function to(T){return eo(T)?UN(T):AN(T)}function Yn(T){return eo(T)?zN(T):TN(T)}function cb(T){for(var B=T.length;B--&&Qo.test(T.charAt(B)););return B}var WN=nl(bN);function UN(T){for(var B=Jf.lastIndex=0;Jf.test(T);)++B;return B}function zN(T){return T.match(Jf)||[]}function HN(T){return T.match(lN)||[]}var qN=(function T(B){B=B==null?Dt:no.defaults(Dt.Object(),B,no.pick(Dt,pN));var M=B.Array,se=B.Date,Oe=B.Error,We=B.Function,_t=B.Math,Ye=B.Object,sl=B.RegExp,GN=B.String,Dn=B.TypeError,Ms=M.prototype,YN=We.prototype,ro=Ye.prototype,Rs=B["__core-js_shared__"],Ls=YN.toString,Ue=ro.hasOwnProperty,JN=0,fb=(function(){var i=/[^.]+$/.exec(Rs&&Rs.keys&&Rs.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),ks=ro.toString,KN=Ls.call(Ye),XN=Dt._,ZN=sl("^"+Ls.call(Ue).replace(Zo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bs=Gm?B.Buffer:t,Gr=B.Symbol,js=B.Uint8Array,lb=Bs?Bs.allocUnsafe:t,Fs=ub(Ye.getPrototypeOf,Ye),db=Ye.create,hb=ro.propertyIsEnumerable,$s=Ms.splice,pb=Gr?Gr.isConcatSpreadable:t,na=Gr?Gr.iterator:t,yi=Gr?Gr.toStringTag:t,Vs=(function(){try{var i=Ei(Ye,"defineProperty");return i({},"",{}),i}catch{}})(),QN=B.clearTimeout!==Dt.clearTimeout&&B.clearTimeout,eD=se&&se.now!==Dt.Date.now&&se.now,tD=B.setTimeout!==Dt.setTimeout&&B.setTimeout,Ws=_t.ceil,Us=_t.floor,ul=Ye.getOwnPropertySymbols,nD=Bs?Bs.isBuffer:t,vb=B.isFinite,rD=Ms.join,iD=ub(Ye.keys,Ye),wt=_t.max,Mt=_t.min,oD=se.now,aD=B.parseInt,gb=_t.random,sD=Ms.reverse,cl=Ei(B,"DataView"),ra=Ei(B,"Map"),fl=Ei(B,"Promise"),io=Ei(B,"Set"),ia=Ei(B,"WeakMap"),oa=Ei(Ye,"create"),zs=ia&&new ia,oo={},uD=Ii(cl),cD=Ii(ra),fD=Ii(fl),lD=Ii(io),dD=Ii(ia),Hs=Gr?Gr.prototype:t,aa=Hs?Hs.valueOf:t,mb=Hs?Hs.toString:t;function g(i){if(st(i)&&!Ie(i)&&!(i instanceof Re)){if(i instanceof Cn)return i;if(Ue.call(i,"__wrapped__"))return by(i)}return new Cn(i)}var ao=(function(){function i(){}return function(a){if(!ot(a))return{};if(db)return db(a);i.prototype=a;var u=new i;return i.prototype=t,u}})();function qs(){}function Cn(i,a){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=t}g.templateSettings={escape:He,evaluate:et,interpolate:yt,variable:"",imports:{_:g}},g.prototype=qs.prototype,g.prototype.constructor=g,Cn.prototype=ao(qs.prototype),Cn.prototype.constructor=Cn;function Re(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Le,this.__views__=[]}function hD(){var i=new Re(this.__wrapped__);return i.__actions__=Wt(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Wt(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Wt(this.__views__),i}function pD(){if(this.__filtered__){var i=new Re(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function vD(){var i=this.__wrapped__.value(),a=this.__dir__,u=Ie(i),l=a<0,h=u?i.length:0,m=TC(0,h,this.__views__),_=m.start,E=m.end,D=E-_,$=l?E:_-1,V=this.__iteratees__,z=V.length,re=0,fe=Mt(D,this.__takeCount__);if(!u||!l&&h==D&&fe==D)return Vb(i,this.__actions__);var ge=[];e:for(;D--&&re<fe;){$+=a;for(var Ne=-1,me=i[$];++Ne<z;){var Pe=V[Ne],ke=Pe.iteratee,fn=Pe.type,jt=ke(me);if(fn==ht)me=jt;else if(!jt){if(fn==ct)continue e;break e}}ge[re++]=me}return ge}Re.prototype=ao(qs.prototype),Re.prototype.constructor=Re;function _i(i){var a=-1,u=i==null?0:i.length;for(this.clear();++a<u;){var l=i[a];this.set(l[0],l[1])}}function gD(){this.__data__=oa?oa(null):{},this.size=0}function mD(i){var a=this.has(i)&&delete this.__data__[i];return this.size-=a?1:0,a}function bD(i){var a=this.__data__;if(oa){var u=a[i];return u===d?t:u}return Ue.call(a,i)?a[i]:t}function yD(i){var a=this.__data__;return oa?a[i]!==t:Ue.call(a,i)}function _D(i,a){var u=this.__data__;return this.size+=this.has(i)?0:1,u[i]=oa&&a===t?d:a,this}_i.prototype.clear=gD,_i.prototype.delete=mD,_i.prototype.get=bD,_i.prototype.has=yD,_i.prototype.set=_D;function Er(i){var a=-1,u=i==null?0:i.length;for(this.clear();++a<u;){var l=i[a];this.set(l[0],l[1])}}function wD(){this.__data__=[],this.size=0}function SD(i){var a=this.__data__,u=Gs(a,i);if(u<0)return!1;var l=a.length-1;return u==l?a.pop():$s.call(a,u,1),--this.size,!0}function OD(i){var a=this.__data__,u=Gs(a,i);return u<0?t:a[u][1]}function ED(i){return Gs(this.__data__,i)>-1}function ID(i,a){var u=this.__data__,l=Gs(u,i);return l<0?(++this.size,u.push([i,a])):u[l][1]=a,this}Er.prototype.clear=wD,Er.prototype.delete=SD,Er.prototype.get=OD,Er.prototype.has=ED,Er.prototype.set=ID;function Ir(i){var a=-1,u=i==null?0:i.length;for(this.clear();++a<u;){var l=i[a];this.set(l[0],l[1])}}function AD(){this.size=0,this.__data__={hash:new _i,map:new(ra||Er),string:new _i}}function TD(i){var a=ou(this,i).delete(i);return this.size-=a?1:0,a}function xD(i){return ou(this,i).get(i)}function ND(i){return ou(this,i).has(i)}function DD(i,a){var u=ou(this,i),l=u.size;return u.set(i,a),this.size+=u.size==l?0:1,this}Ir.prototype.clear=AD,Ir.prototype.delete=TD,Ir.prototype.get=xD,Ir.prototype.has=ND,Ir.prototype.set=DD;function wi(i){var a=-1,u=i==null?0:i.length;for(this.__data__=new Ir;++a<u;)this.add(i[a])}function CD(i){return this.__data__.set(i,d),this}function PD(i){return this.__data__.has(i)}wi.prototype.add=wi.prototype.push=CD,wi.prototype.has=PD;function Jn(i){var a=this.__data__=new Er(i);this.size=a.size}function MD(){this.__data__=new Er,this.size=0}function RD(i){var a=this.__data__,u=a.delete(i);return this.size=a.size,u}function LD(i){return this.__data__.get(i)}function kD(i){return this.__data__.has(i)}function BD(i,a){var u=this.__data__;if(u instanceof Er){var l=u.__data__;if(!ra||l.length<o-1)return l.push([i,a]),this.size=++u.size,this;u=this.__data__=new Ir(l)}return u.set(i,a),this.size=u.size,this}Jn.prototype.clear=MD,Jn.prototype.delete=RD,Jn.prototype.get=LD,Jn.prototype.has=kD,Jn.prototype.set=BD;function bb(i,a){var u=Ie(i),l=!u&&Ai(i),h=!u&&!l&&Zr(i),m=!u&&!l&&!h&&fo(i),_=u||l||h||m,E=_?il(i.length,GN):[],D=E.length;for(var $ in i)(a||Ue.call(i,$))&&!(_&&($=="length"||h&&($=="offset"||$=="parent")||m&&($=="buffer"||$=="byteLength"||$=="byteOffset")||Nr($,D)))&&E.push($);return E}function yb(i){var a=i.length;return a?i[wl(0,a-1)]:t}function jD(i,a){return au(Wt(i),Si(a,0,i.length))}function FD(i){return au(Wt(i))}function ll(i,a,u){(u!==t&&!Kn(i[a],u)||u===t&&!(a in i))&&Ar(i,a,u)}function sa(i,a,u){var l=i[a];(!(Ue.call(i,a)&&Kn(l,u))||u===t&&!(a in i))&&Ar(i,a,u)}function Gs(i,a){for(var u=i.length;u--;)if(Kn(i[u][0],a))return u;return-1}function $D(i,a,u,l){return Yr(i,function(h,m,_){a(l,h,u(h),_)}),l}function _b(i,a){return i&&ar(a,Ot(a),i)}function VD(i,a){return i&&ar(a,zt(a),i)}function Ar(i,a,u){a=="__proto__"&&Vs?Vs(i,a,{configurable:!0,enumerable:!0,value:u,writable:!0}):i[a]=u}function dl(i,a){for(var u=-1,l=a.length,h=M(l),m=i==null;++u<l;)h[u]=m?t:ql(i,a[u]);return h}function Si(i,a,u){return i===i&&(u!==t&&(i=i<=u?i:u),a!==t&&(i=i>=a?i:a)),i}function Pn(i,a,u,l,h,m){var _,E=a&b,D=a&w,$=a&y;if(u&&(_=h?u(i,l,h,m):u(i)),_!==t)return _;if(!ot(i))return i;var V=Ie(i);if(V){if(_=NC(i),!E)return Wt(i,_)}else{var z=Rt(i),re=z==In||z==An;if(Zr(i))return zb(i,E);if(z==at||z==rn||re&&!h){if(_=D||re?{}:cy(i),!E)return D?bC(i,VD(_,i)):mC(i,_b(_,i))}else{if(!Xe[z])return h?i:{};_=DC(i,z,E)}}m||(m=new Jn);var fe=m.get(i);if(fe)return fe;m.set(i,_),jy(i)?i.forEach(function(me){_.add(Pn(me,a,u,me,i,m))}):ky(i)&&i.forEach(function(me,Pe){_.set(Pe,Pn(me,a,u,Pe,i,m))});var ge=$?D?Pl:Cl:D?zt:Ot,Ne=V?t:ge(i);return Nn(Ne||i,function(me,Pe){Ne&&(Pe=me,me=i[Pe]),sa(_,Pe,Pn(me,a,u,Pe,i,m))}),_}function WD(i){var a=Ot(i);return function(u){return wb(u,i,a)}}function wb(i,a,u){var l=u.length;if(i==null)return!l;for(i=Ye(i);l--;){var h=u[l],m=a[h],_=i[h];if(_===t&&!(h in i)||!m(_))return!1}return!0}function Sb(i,a,u){if(typeof i!="function")throw new Dn(c);return pa(function(){i.apply(t,u)},a)}function ua(i,a,u,l){var h=-1,m=Ds,_=!0,E=i.length,D=[],$=a.length;if(!E)return D;u&&(a=rt(a,sn(u))),l?(m=Zf,_=!1):a.length>=o&&(m=ta,_=!1,a=new wi(a));e:for(;++h<E;){var V=i[h],z=u==null?V:u(V);if(V=l||V!==0?V:0,_&&z===z){for(var re=$;re--;)if(a[re]===z)continue e;D.push(V)}else m(a,z,l)||D.push(V)}return D}var Yr=Jb(or),Ob=Jb(pl,!0);function UD(i,a){var u=!0;return Yr(i,function(l,h,m){return u=!!a(l,h,m),u}),u}function Ys(i,a,u){for(var l=-1,h=i.length;++l<h;){var m=i[l],_=a(m);if(_!=null&&(E===t?_===_&&!cn(_):u(_,E)))var E=_,D=m}return D}function zD(i,a,u,l){var h=i.length;for(u=xe(u),u<0&&(u=-u>h?0:h+u),l=l===t||l>h?h:xe(l),l<0&&(l+=h),l=u>l?0:$y(l);u<l;)i[u++]=a;return i}function Eb(i,a){var u=[];return Yr(i,function(l,h,m){a(l,h,m)&&u.push(l)}),u}function Ct(i,a,u,l,h){var m=-1,_=i.length;for(u||(u=PC),h||(h=[]);++m<_;){var E=i[m];a>0&&u(E)?a>1?Ct(E,a-1,u,l,h):Hr(h,E):l||(h[h.length]=E)}return h}var hl=Kb(),Ib=Kb(!0);function or(i,a){return i&&hl(i,a,Ot)}function pl(i,a){return i&&Ib(i,a,Ot)}function Js(i,a){return zr(a,function(u){return Dr(i[u])})}function Oi(i,a){a=Kr(a,i);for(var u=0,l=a.length;i!=null&&u<l;)i=i[sr(a[u++])];return u&&u==l?i:t}function Ab(i,a,u){var l=a(i);return Ie(i)?l:Hr(l,u(i))}function kt(i){return i==null?i===t?W:Tn:yi&&yi in Ye(i)?AC(i):FC(i)}function vl(i,a){return i>a}function HD(i,a){return i!=null&&Ue.call(i,a)}function qD(i,a){return i!=null&&a in Ye(i)}function GD(i,a,u){return i>=Mt(a,u)&&i<wt(a,u)}function gl(i,a,u){for(var l=u?Zf:Ds,h=i[0].length,m=i.length,_=m,E=M(m),D=1/0,$=[];_--;){var V=i[_];_&&a&&(V=rt(V,sn(a))),D=Mt(V.length,D),E[_]=!u&&(a||h>=120&&V.length>=120)?new wi(_&&V):t}V=i[0];var z=-1,re=E[0];e:for(;++z<h&&$.length<D;){var fe=V[z],ge=a?a(fe):fe;if(fe=u||fe!==0?fe:0,!(re?ta(re,ge):l($,ge,u))){for(_=m;--_;){var Ne=E[_];if(!(Ne?ta(Ne,ge):l(i[_],ge,u)))continue e}re&&re.push(ge),$.push(fe)}}return $}function YD(i,a,u,l){return or(i,function(h,m,_){a(l,u(h),m,_)}),l}function ca(i,a,u){a=Kr(a,i),i=hy(i,a);var l=i==null?i:i[sr(Rn(a))];return l==null?t:an(l,i,u)}function Tb(i){return st(i)&&kt(i)==rn}function JD(i){return st(i)&&kt(i)==le}function KD(i){return st(i)&&kt(i)==Vt}function fa(i,a,u,l,h){return i===a?!0:i==null||a==null||!st(i)&&!st(a)?i!==i&&a!==a:XD(i,a,u,l,fa,h)}function XD(i,a,u,l,h,m){var _=Ie(i),E=Ie(a),D=_?Ce:Rt(i),$=E?Ce:Rt(a);D=D==rn?at:D,$=$==rn?at:$;var V=D==at,z=$==at,re=D==$;if(re&&Zr(i)){if(!Zr(a))return!1;_=!0,V=!1}if(re&&!V)return m||(m=new Jn),_||fo(i)?ay(i,a,u,l,h,m):EC(i,a,D,u,l,h,m);if(!(u&O)){var fe=V&&Ue.call(i,"__wrapped__"),ge=z&&Ue.call(a,"__wrapped__");if(fe||ge){var Ne=fe?i.value():i,me=ge?a.value():a;return m||(m=new Jn),h(Ne,me,u,l,m)}}return re?(m||(m=new Jn),IC(i,a,u,l,h,m)):!1}function ZD(i){return st(i)&&Rt(i)==Ke}function ml(i,a,u,l){var h=u.length,m=h,_=!l;if(i==null)return!m;for(i=Ye(i);h--;){var E=u[h];if(_&&E[2]?E[1]!==i[E[0]]:!(E[0]in i))return!1}for(;++h<m;){E=u[h];var D=E[0],$=i[D],V=E[1];if(_&&E[2]){if($===t&&!(D in i))return!1}else{var z=new Jn;if(l)var re=l($,V,D,i,a,z);if(!(re===t?fa(V,$,O|S,l,z):re))return!1}}return!0}function xb(i){if(!ot(i)||RC(i))return!1;var a=Dr(i)?ZN:Wx;return a.test(Ii(i))}function QD(i){return st(i)&&kt(i)==Qe}function eC(i){return st(i)&&Rt(i)==bt}function tC(i){return st(i)&&du(i.length)&&!!tt[kt(i)]}function Nb(i){return typeof i=="function"?i:i==null?Ht:typeof i=="object"?Ie(i)?Pb(i[0],i[1]):Cb(i):Xy(i)}function bl(i){if(!ha(i))return iD(i);var a=[];for(var u in Ye(i))Ue.call(i,u)&&u!="constructor"&&a.push(u);return a}function nC(i){if(!ot(i))return jC(i);var a=ha(i),u=[];for(var l in i)l=="constructor"&&(a||!Ue.call(i,l))||u.push(l);return u}function yl(i,a){return i<a}function Db(i,a){var u=-1,l=Ut(i)?M(i.length):[];return Yr(i,function(h,m,_){l[++u]=a(h,m,_)}),l}function Cb(i){var a=Rl(i);return a.length==1&&a[0][2]?ly(a[0][0],a[0][1]):function(u){return u===i||ml(u,i,a)}}function Pb(i,a){return kl(i)&&fy(a)?ly(sr(i),a):function(u){var l=ql(u,i);return l===t&&l===a?Gl(u,i):fa(a,l,O|S)}}function Ks(i,a,u,l,h){i!==a&&hl(a,function(m,_){if(h||(h=new Jn),ot(m))rC(i,a,_,u,Ks,l,h);else{var E=l?l(jl(i,_),m,_+"",i,a,h):t;E===t&&(E=m),ll(i,_,E)}},zt)}function rC(i,a,u,l,h,m,_){var E=jl(i,u),D=jl(a,u),$=_.get(D);if($){ll(i,u,$);return}var V=m?m(E,D,u+"",i,a,_):t,z=V===t;if(z){var re=Ie(D),fe=!re&&Zr(D),ge=!re&&!fe&&fo(D);V=D,re||fe||ge?Ie(E)?V=E:lt(E)?V=Wt(E):fe?(z=!1,V=zb(D,!0)):ge?(z=!1,V=Hb(D,!0)):V=[]:va(D)||Ai(D)?(V=E,Ai(E)?V=Vy(E):(!ot(E)||Dr(E))&&(V=cy(D))):z=!1}z&&(_.set(D,V),h(V,D,l,m,_),_.delete(D)),ll(i,u,V)}function Mb(i,a){var u=i.length;if(u)return a+=a<0?u:0,Nr(a,u)?i[a]:t}function Rb(i,a,u){a.length?a=rt(a,function(m){return Ie(m)?function(_){return Oi(_,m.length===1?m[0]:m)}:m}):a=[Ht];var l=-1;a=rt(a,sn(ve()));var h=Db(i,function(m,_,E){var D=rt(a,function($){return $(m)});return{criteria:D,index:++l,value:m}});return DN(h,function(m,_){return gC(m,_,u)})}function iC(i,a){return Lb(i,a,function(u,l){return Gl(i,l)})}function Lb(i,a,u){for(var l=-1,h=a.length,m={};++l<h;){var _=a[l],E=Oi(i,_);u(E,_)&&la(m,Kr(_,i),E)}return m}function oC(i){return function(a){return Oi(a,i)}}function _l(i,a,u,l){var h=l?NN:Qi,m=-1,_=a.length,E=i;for(i===a&&(a=Wt(a)),u&&(E=rt(i,sn(u)));++m<_;)for(var D=0,$=a[m],V=u?u($):$;(D=h(E,V,D,l))>-1;)E!==i&&$s.call(E,D,1),$s.call(i,D,1);return i}function kb(i,a){for(var u=i?a.length:0,l=u-1;u--;){var h=a[u];if(u==l||h!==m){var m=h;Nr(h)?$s.call(i,h,1):El(i,h)}}return i}function wl(i,a){return i+Us(gb()*(a-i+1))}function aC(i,a,u,l){for(var h=-1,m=wt(Ws((a-i)/(u||1)),0),_=M(m);m--;)_[l?m:++h]=i,i+=u;return _}function Sl(i,a){var u="";if(!i||a<1||a>ue)return u;do a%2&&(u+=i),a=Us(a/2),a&&(i+=i);while(a);return u}function De(i,a){return Fl(dy(i,a,Ht),i+"")}function sC(i){return yb(lo(i))}function uC(i,a){var u=lo(i);return au(u,Si(a,0,u.length))}function la(i,a,u,l){if(!ot(i))return i;a=Kr(a,i);for(var h=-1,m=a.length,_=m-1,E=i;E!=null&&++h<m;){var D=sr(a[h]),$=u;if(D==="__proto__"||D==="constructor"||D==="prototype")return i;if(h!=_){var V=E[D];$=l?l(V,D,E):t,$===t&&($=ot(V)?V:Nr(a[h+1])?[]:{})}sa(E,D,$),E=E[D]}return i}var Bb=zs?function(i,a){return zs.set(i,a),i}:Ht,cC=Vs?function(i,a){return Vs(i,"toString",{configurable:!0,enumerable:!1,value:Jl(a),writable:!0})}:Ht;function fC(i){return au(lo(i))}function Mn(i,a,u){var l=-1,h=i.length;a<0&&(a=-a>h?0:h+a),u=u>h?h:u,u<0&&(u+=h),h=a>u?0:u-a>>>0,a>>>=0;for(var m=M(h);++l<h;)m[l]=i[l+a];return m}function lC(i,a){var u;return Yr(i,function(l,h,m){return u=a(l,h,m),!u}),!!u}function Xs(i,a,u){var l=0,h=i==null?l:i.length;if(typeof a=="number"&&a===a&&h<=pe){for(;l<h;){var m=l+h>>>1,_=i[m];_!==null&&!cn(_)&&(u?_<=a:_<a)?l=m+1:h=m}return h}return Ol(i,a,Ht,u)}function Ol(i,a,u,l){var h=0,m=i==null?0:i.length;if(m===0)return 0;a=u(a);for(var _=a!==a,E=a===null,D=cn(a),$=a===t;h<m;){var V=Us((h+m)/2),z=u(i[V]),re=z!==t,fe=z===null,ge=z===z,Ne=cn(z);if(_)var me=l||ge;else $?me=ge&&(l||re):E?me=ge&&re&&(l||!fe):D?me=ge&&re&&!fe&&(l||!Ne):fe||Ne?me=!1:me=l?z<=a:z<a;me?h=V+1:m=V}return Mt(m,wr)}function jb(i,a){for(var u=-1,l=i.length,h=0,m=[];++u<l;){var _=i[u],E=a?a(_):_;if(!u||!Kn(E,D)){var D=E;m[h++]=_===0?0:_}}return m}function Fb(i){return typeof i=="number"?i:cn(i)?Pt:+i}function un(i){if(typeof i=="string")return i;if(Ie(i))return rt(i,un)+"";if(cn(i))return mb?mb.call(i):"";var a=i+"";return a=="0"&&1/i==-xt?"-0":a}function Jr(i,a,u){var l=-1,h=Ds,m=i.length,_=!0,E=[],D=E;if(u)_=!1,h=Zf;else if(m>=o){var $=a?null:SC(i);if($)return Ps($);_=!1,h=ta,D=new wi}else D=a?[]:E;e:for(;++l<m;){var V=i[l],z=a?a(V):V;if(V=u||V!==0?V:0,_&&z===z){for(var re=D.length;re--;)if(D[re]===z)continue e;a&&D.push(z),E.push(V)}else h(D,z,u)||(D!==E&&D.push(z),E.push(V))}return E}function El(i,a){a=Kr(a,i);var u=-1,l=a.length;if(!l)return!0;for(var h=i==null||typeof i!="object"&&typeof i!="function";++u<l;){var m=a[u];if(typeof m=="string"){if(m==="__proto__"&&!Ue.call(i,"__proto__"))return!1;if(m==="constructor"&&u+1<l&&typeof a[u+1]=="string"&&a[u+1]==="prototype"){if(h&&u===0)continue;return!1}}}var _=hy(i,a);return _==null||delete _[sr(Rn(a))]}function $b(i,a,u,l){return la(i,a,u(Oi(i,a)),l)}function Zs(i,a,u,l){for(var h=i.length,m=l?h:-1;(l?m--:++m<h)&&a(i[m],m,i););return u?Mn(i,l?0:m,l?m+1:h):Mn(i,l?m+1:0,l?h:m)}function Vb(i,a){var u=i;return u instanceof Re&&(u=u.value()),Qf(a,function(l,h){return h.func.apply(h.thisArg,Hr([l],h.args))},u)}function Il(i,a,u){var l=i.length;if(l<2)return l?Jr(i[0]):[];for(var h=-1,m=M(l);++h<l;)for(var _=i[h],E=-1;++E<l;)E!=h&&(m[h]=ua(m[h]||_,i[E],a,u));return Jr(Ct(m,1),a,u)}function Wb(i,a,u){for(var l=-1,h=i.length,m=a.length,_={};++l<h;){var E=l<m?a[l]:t;u(_,i[l],E)}return _}function Al(i){return lt(i)?i:[]}function Tl(i){return typeof i=="function"?i:Ht}function Kr(i,a){return Ie(i)?i:kl(i,a)?[i]:my(ze(i))}var dC=De;function Xr(i,a,u){var l=i.length;return u=u===t?l:u,!a&&u>=l?i:Mn(i,a,u)}var Ub=QN||function(i){return Dt.clearTimeout(i)};function zb(i,a){if(a)return i.slice();var u=i.length,l=lb?lb(u):new i.constructor(u);return i.copy(l),l}function xl(i){var a=new i.constructor(i.byteLength);return new js(a).set(new js(i)),a}function hC(i,a){var u=a?xl(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.byteLength)}function pC(i){var a=new i.constructor(i.source,Tm.exec(i));return a.lastIndex=i.lastIndex,a}function vC(i){return aa?Ye(aa.call(i)):{}}function Hb(i,a){var u=a?xl(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.length)}function qb(i,a){if(i!==a){var u=i!==t,l=i===null,h=i===i,m=cn(i),_=a!==t,E=a===null,D=a===a,$=cn(a);if(!E&&!$&&!m&&i>a||m&&_&&D&&!E&&!$||l&&_&&D||!u&&D||!h)return 1;if(!l&&!m&&!$&&i<a||$&&u&&h&&!l&&!m||E&&u&&h||!_&&h||!D)return-1}return 0}function gC(i,a,u){for(var l=-1,h=i.criteria,m=a.criteria,_=h.length,E=u.length;++l<_;){var D=qb(h[l],m[l]);if(D){if(l>=E)return D;var $=u[l];return D*($=="desc"?-1:1)}}return i.index-a.index}function Gb(i,a,u,l){for(var h=-1,m=i.length,_=u.length,E=-1,D=a.length,$=wt(m-_,0),V=M(D+$),z=!l;++E<D;)V[E]=a[E];for(;++h<_;)(z||h<m)&&(V[u[h]]=i[h]);for(;$--;)V[E++]=i[h++];return V}function Yb(i,a,u,l){for(var h=-1,m=i.length,_=-1,E=u.length,D=-1,$=a.length,V=wt(m-E,0),z=M(V+$),re=!l;++h<V;)z[h]=i[h];for(var fe=h;++D<$;)z[fe+D]=a[D];for(;++_<E;)(re||h<m)&&(z[fe+u[_]]=i[h++]);return z}function Wt(i,a){var u=-1,l=i.length;for(a||(a=M(l));++u<l;)a[u]=i[u];return a}function ar(i,a,u,l){var h=!u;u||(u={});for(var m=-1,_=a.length;++m<_;){var E=a[m],D=l?l(u[E],i[E],E,u,i):t;D===t&&(D=i[E]),h?Ar(u,E,D):sa(u,E,D)}return u}function mC(i,a){return ar(i,Ll(i),a)}function bC(i,a){return ar(i,sy(i),a)}function Qs(i,a){return function(u,l){var h=Ie(u)?ON:$D,m=a?a():{};return h(u,i,ve(l,2),m)}}function so(i){return De(function(a,u){var l=-1,h=u.length,m=h>1?u[h-1]:t,_=h>2?u[2]:t;for(m=i.length>3&&typeof m=="function"?(h--,m):t,_&&Bt(u[0],u[1],_)&&(m=h<3?t:m,h=1),a=Ye(a);++l<h;){var E=u[l];E&&i(a,E,l,m)}return a})}function Jb(i,a){return function(u,l){if(u==null)return u;if(!Ut(u))return i(u,l);for(var h=u.length,m=a?h:-1,_=Ye(u);(a?m--:++m<h)&&l(_[m],m,_)!==!1;);return u}}function Kb(i){return function(a,u,l){for(var h=-1,m=Ye(a),_=l(a),E=_.length;E--;){var D=_[i?E:++h];if(u(m[D],D,m)===!1)break}return a}}function yC(i,a,u){var l=a&A,h=da(i);function m(){var _=this&&this!==Dt&&this instanceof m?h:i;return _.apply(l?u:this,arguments)}return m}function Xb(i){return function(a){a=ze(a);var u=eo(a)?Yn(a):t,l=u?u[0]:a.charAt(0),h=u?Xr(u,1).join(""):a.slice(1);return l[i]()+h}}function uo(i){return function(a){return Qf(Jy(Yy(a).replace(cN,"")),i,"")}}function da(i){return function(){var a=arguments;switch(a.length){case 0:return new i;case 1:return new i(a[0]);case 2:return new i(a[0],a[1]);case 3:return new i(a[0],a[1],a[2]);case 4:return new i(a[0],a[1],a[2],a[3]);case 5:return new i(a[0],a[1],a[2],a[3],a[4]);case 6:return new i(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new i(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var u=ao(i.prototype),l=i.apply(u,a);return ot(l)?l:u}}function _C(i,a,u){var l=da(i);function h(){for(var m=arguments.length,_=M(m),E=m,D=co(h);E--;)_[E]=arguments[E];var $=m<3&&_[0]!==D&&_[m-1]!==D?[]:qr(_,D);if(m-=$.length,m<u)return ny(i,a,eu,h.placeholder,t,_,$,t,t,u-m);var V=this&&this!==Dt&&this instanceof h?l:i;return an(V,this,_)}return h}function Zb(i){return function(a,u,l){var h=Ye(a);if(!Ut(a)){var m=ve(u,3);a=Ot(a),u=function(E){return m(h[E],E,h)}}var _=i(a,u,l);return _>-1?h[m?a[_]:_]:t}}function Qb(i){return xr(function(a){var u=a.length,l=u,h=Cn.prototype.thru;for(i&&a.reverse();l--;){var m=a[l];if(typeof m!="function")throw new Dn(c);if(h&&!_&&iu(m)=="wrapper")var _=new Cn([],!0)}for(l=_?l:u;++l<u;){m=a[l];var E=iu(m),D=E=="wrapper"?Ml(m):t;D&&Bl(D[0])&&D[1]==(L|G|q|F)&&!D[4].length&&D[9]==1?_=_[iu(D[0])].apply(_,D[3]):_=m.length==1&&Bl(m)?_[E]():_.thru(m)}return function(){var $=arguments,V=$[0];if(_&&$.length==1&&Ie(V))return _.plant(V).value();for(var z=0,re=u?a[z].apply(this,$):V;++z<u;)re=a[z].call(this,re);return re}})}function eu(i,a,u,l,h,m,_,E,D,$){var V=a&L,z=a&A,re=a&x,fe=a&(G|oe),ge=a&ae,Ne=re?t:da(i);function me(){for(var Pe=arguments.length,ke=M(Pe),fn=Pe;fn--;)ke[fn]=arguments[fn];if(fe)var jt=co(me),ln=PN(ke,jt);if(l&&(ke=Gb(ke,l,h,fe)),m&&(ke=Yb(ke,m,_,fe)),Pe-=ln,fe&&Pe<$){var dt=qr(ke,jt);return ny(i,a,eu,me.placeholder,u,ke,dt,E,D,$-Pe)}var Xn=z?u:this,Pr=re?Xn[i]:i;return Pe=ke.length,E?ke=$C(ke,E):ge&&Pe>1&&ke.reverse(),V&&D<Pe&&(ke.length=D),this&&this!==Dt&&this instanceof me&&(Pr=Ne||da(Pr)),Pr.apply(Xn,ke)}return me}function ey(i,a){return function(u,l){return YD(u,i,a(l),{})}}function tu(i,a){return function(u,l){var h;if(u===t&&l===t)return a;if(u!==t&&(h=u),l!==t){if(h===t)return l;typeof u=="string"||typeof l=="string"?(u=un(u),l=un(l)):(u=Fb(u),l=Fb(l)),h=i(u,l)}return h}}function Nl(i){return xr(function(a){return a=rt(a,sn(ve())),De(function(u){var l=this;return i(a,function(h){return an(h,l,u)})})})}function nu(i,a){a=a===t?" ":un(a);var u=a.length;if(u<2)return u?Sl(a,i):a;var l=Sl(a,Ws(i/to(a)));return eo(a)?Xr(Yn(l),0,i).join(""):l.slice(0,i)}function wC(i,a,u,l){var h=a&A,m=da(i);function _(){for(var E=-1,D=arguments.length,$=-1,V=l.length,z=M(V+D),re=this&&this!==Dt&&this instanceof _?m:i;++$<V;)z[$]=l[$];for(;D--;)z[$++]=arguments[++E];return an(re,h?u:this,z)}return _}function ty(i){return function(a,u,l){return l&&typeof l!="number"&&Bt(a,u,l)&&(u=l=t),a=Cr(a),u===t?(u=a,a=0):u=Cr(u),l=l===t?a<u?1:-1:Cr(l),aC(a,u,l,i)}}function ru(i){return function(a,u){return typeof a=="string"&&typeof u=="string"||(a=Ln(a),u=Ln(u)),i(a,u)}}function ny(i,a,u,l,h,m,_,E,D,$){var V=a&G,z=V?_:t,re=V?t:_,fe=V?m:t,ge=V?t:m;a|=V?q:ye,a&=~(V?ye:q),a&k||(a&=-4);var Ne=[i,a,h,fe,z,ge,re,E,D,$],me=u.apply(t,Ne);return Bl(i)&&py(me,Ne),me.placeholder=l,vy(me,i,a)}function Dl(i){var a=_t[i];return function(u,l){if(u=Ln(u),l=l==null?0:Mt(xe(l),292),l&&vb(u)){var h=(ze(u)+"e").split("e"),m=a(h[0]+"e"+(+h[1]+l));return h=(ze(m)+"e").split("e"),+(h[0]+"e"+(+h[1]-l))}return a(u)}}var SC=io&&1/Ps(new io([,-0]))[1]==xt?function(i){return new io(i)}:Zl;function ry(i){return function(a){var u=Rt(a);return u==Ke?al(a):u==bt?FN(a):CN(a,i(a))}}function Tr(i,a,u,l,h,m,_,E){var D=a&x;if(!D&&typeof i!="function")throw new Dn(c);var $=l?l.length:0;if($||(a&=-97,l=h=t),_=_===t?_:wt(xe(_),0),E=E===t?E:xe(E),$-=h?h.length:0,a&ye){var V=l,z=h;l=h=t}var re=D?t:Ml(i),fe=[i,a,u,l,h,V,z,m,_,E];if(re&&BC(fe,re),i=fe[0],a=fe[1],u=fe[2],l=fe[3],h=fe[4],E=fe[9]=fe[9]===t?D?0:i.length:wt(fe[9]-$,0),!E&&a&(G|oe)&&(a&=-25),!a||a==A)var ge=yC(i,a,u);else a==G||a==oe?ge=_C(i,a,E):(a==q||a==(A|q))&&!h.length?ge=wC(i,a,u,l):ge=eu.apply(t,fe);var Ne=re?Bb:py;return vy(Ne(ge,fe),i,a)}function iy(i,a,u,l){return i===t||Kn(i,ro[u])&&!Ue.call(l,u)?a:i}function oy(i,a,u,l,h,m){return ot(i)&&ot(a)&&(m.set(a,i),Ks(i,a,t,oy,m),m.delete(a)),i}function OC(i){return va(i)?t:i}function ay(i,a,u,l,h,m){var _=u&O,E=i.length,D=a.length;if(E!=D&&!(_&&D>E))return!1;var $=m.get(i),V=m.get(a);if($&&V)return $==a&&V==i;var z=-1,re=!0,fe=u&S?new wi:t;for(m.set(i,a),m.set(a,i);++z<E;){var ge=i[z],Ne=a[z];if(l)var me=_?l(Ne,ge,z,a,i,m):l(ge,Ne,z,i,a,m);if(me!==t){if(me)continue;re=!1;break}if(fe){if(!el(a,function(Pe,ke){if(!ta(fe,ke)&&(ge===Pe||h(ge,Pe,u,l,m)))return fe.push(ke)})){re=!1;break}}else if(!(ge===Ne||h(ge,Ne,u,l,m))){re=!1;break}}return m.delete(i),m.delete(a),re}function EC(i,a,u,l,h,m,_){switch(u){case Be:if(i.byteLength!=a.byteLength||i.byteOffset!=a.byteOffset)return!1;i=i.buffer,a=a.buffer;case le:return!(i.byteLength!=a.byteLength||!m(new js(i),new js(a)));case $t:case Vt:case on:return Kn(+i,+a);case pt:return i.name==a.name&&i.message==a.message;case Qe:case St:return i==a+"";case Ke:var E=al;case bt:var D=l&O;if(E||(E=Ps),i.size!=a.size&&!D)return!1;var $=_.get(i);if($)return $==a;l|=S,_.set(i,a);var V=ay(E(i),E(a),l,h,m,_);return _.delete(i),V;case P:if(aa)return aa.call(i)==aa.call(a)}return!1}function IC(i,a,u,l,h,m){var _=u&O,E=Cl(i),D=E.length,$=Cl(a),V=$.length;if(D!=V&&!_)return!1;for(var z=D;z--;){var re=E[z];if(!(_?re in a:Ue.call(a,re)))return!1}var fe=m.get(i),ge=m.get(a);if(fe&&ge)return fe==a&&ge==i;var Ne=!0;m.set(i,a),m.set(a,i);for(var me=_;++z<D;){re=E[z];var Pe=i[re],ke=a[re];if(l)var fn=_?l(ke,Pe,re,a,i,m):l(Pe,ke,re,i,a,m);if(!(fn===t?Pe===ke||h(Pe,ke,u,l,m):fn)){Ne=!1;break}me||(me=re=="constructor")}if(Ne&&!me){var jt=i.constructor,ln=a.constructor;jt!=ln&&"constructor"in i&&"constructor"in a&&!(typeof jt=="function"&&jt instanceof jt&&typeof ln=="function"&&ln instanceof ln)&&(Ne=!1)}return m.delete(i),m.delete(a),Ne}function xr(i){return Fl(dy(i,t,wy),i+"")}function Cl(i){return Ab(i,Ot,Ll)}function Pl(i){return Ab(i,zt,sy)}var Ml=zs?function(i){return zs.get(i)}:Zl;function iu(i){for(var a=i.name+"",u=oo[a],l=Ue.call(oo,a)?u.length:0;l--;){var h=u[l],m=h.func;if(m==null||m==i)return h.name}return a}function co(i){var a=Ue.call(g,"placeholder")?g:i;return a.placeholder}function ve(){var i=g.iteratee||Kl;return i=i===Kl?Nb:i,arguments.length?i(arguments[0],arguments[1]):i}function ou(i,a){var u=i.__data__;return MC(a)?u[typeof a=="string"?"string":"hash"]:u.map}function Rl(i){for(var a=Ot(i),u=a.length;u--;){var l=a[u],h=i[l];a[u]=[l,h,fy(h)]}return a}function Ei(i,a){var u=kN(i,a);return xb(u)?u:t}function AC(i){var a=Ue.call(i,yi),u=i[yi];try{i[yi]=t;var l=!0}catch{}var h=ks.call(i);return l&&(a?i[yi]=u:delete i[yi]),h}var Ll=ul?function(i){return i==null?[]:(i=Ye(i),zr(ul(i),function(a){return hb.call(i,a)}))}:Ql,sy=ul?function(i){for(var a=[];i;)Hr(a,Ll(i)),i=Fs(i);return a}:Ql,Rt=kt;(cl&&Rt(new cl(new ArrayBuffer(1)))!=Be||ra&&Rt(new ra)!=Ke||fl&&Rt(fl.resolve())!=vt||io&&Rt(new io)!=bt||ia&&Rt(new ia)!=U)&&(Rt=function(i){var a=kt(i),u=a==at?i.constructor:t,l=u?Ii(u):"";if(l)switch(l){case uD:return Be;case cD:return Ke;case fD:return vt;case lD:return bt;case dD:return U}return a});function TC(i,a,u){for(var l=-1,h=u.length;++l<h;){var m=u[l],_=m.size;switch(m.type){case"drop":i+=_;break;case"dropRight":a-=_;break;case"take":a=Mt(a,i+_);break;case"takeRight":i=wt(i,a-_);break}}return{start:i,end:a}}function xC(i){var a=i.match(Xi);return a?a[1].split(Lx):[]}function uy(i,a,u){a=Kr(a,i);for(var l=-1,h=a.length,m=!1;++l<h;){var _=sr(a[l]);if(!(m=i!=null&&u(i,_)))break;i=i[_]}return m||++l!=h?m:(h=i==null?0:i.length,!!h&&du(h)&&Nr(_,h)&&(Ie(i)||Ai(i)))}function NC(i){var a=i.length,u=new i.constructor(a);return a&&typeof i[0]=="string"&&Ue.call(i,"index")&&(u.index=i.index,u.input=i.input),u}function cy(i){return typeof i.constructor=="function"&&!ha(i)?ao(Fs(i)):{}}function DC(i,a,u){var l=i.constructor;switch(a){case le:return xl(i);case $t:case Vt:return new l(+i);case Be:return hC(i,u);case nt:case Nt:case it:case I:case N:case C:case j:case Z:case _e:return Hb(i,u);case Ke:return new l;case on:case St:return new l(i);case Qe:return pC(i);case bt:return new l;case P:return vC(i)}}function CC(i,a){var u=a.length;if(!u)return i;var l=u-1;return a[l]=(u>1?"& ":"")+a[l],a=a.join(u>2?", ":" "),i.replace(ea,`{
49
+ /* [wrapped with `+a+`] */
50
+ `)}function PC(i){return Ie(i)||Ai(i)||!!(pb&&i&&i[pb])}function Nr(i,a){var u=typeof i;return a=a??ue,!!a&&(u=="number"||u!="symbol"&&zx.test(i))&&i>-1&&i%1==0&&i<a}function Bt(i,a,u){if(!ot(u))return!1;var l=typeof a;return(l=="number"?Ut(u)&&Nr(a,u.length):l=="string"&&a in u)?Kn(u[a],i):!1}function kl(i,a){if(Ie(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||cn(i)?!0:Xo.test(i)||!Ji.test(i)||a!=null&&i in Ye(a)}function MC(i){var a=typeof i;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?i!=="__proto__":i===null}function Bl(i){var a=iu(i),u=g[a];if(typeof u!="function"||!(a in Re.prototype))return!1;if(i===u)return!0;var l=Ml(u);return!!l&&i===l[0]}function RC(i){return!!fb&&fb in i}var LC=Rs?Dr:ed;function ha(i){var a=i&&i.constructor,u=typeof a=="function"&&a.prototype||ro;return i===u}function fy(i){return i===i&&!ot(i)}function ly(i,a){return function(u){return u==null?!1:u[i]===a&&(a!==t||i in Ye(u))}}function kC(i){var a=fu(i,function(l){return u.size===p&&u.clear(),l}),u=a.cache;return a}function BC(i,a){var u=i[1],l=a[1],h=u|l,m=h<(A|x|L),_=l==L&&u==G||l==L&&u==F&&i[7].length<=a[8]||l==(L|F)&&a[7].length<=a[8]&&u==G;if(!(m||_))return i;l&A&&(i[2]=a[2],h|=u&A?0:k);var E=a[3];if(E){var D=i[3];i[3]=D?Gb(D,E,a[4]):E,i[4]=D?qr(i[3],v):a[4]}return E=a[5],E&&(D=i[5],i[5]=D?Yb(D,E,a[6]):E,i[6]=D?qr(i[5],v):a[6]),E=a[7],E&&(i[7]=E),l&L&&(i[8]=i[8]==null?a[8]:Mt(i[8],a[8])),i[9]==null&&(i[9]=a[9]),i[0]=a[0],i[1]=h,i}function jC(i){var a=[];if(i!=null)for(var u in Ye(i))a.push(u);return a}function FC(i){return ks.call(i)}function dy(i,a,u){return a=wt(a===t?i.length-1:a,0),function(){for(var l=arguments,h=-1,m=wt(l.length-a,0),_=M(m);++h<m;)_[h]=l[a+h];h=-1;for(var E=M(a+1);++h<a;)E[h]=l[h];return E[a]=u(_),an(i,this,E)}}function hy(i,a){return a.length<2?i:Oi(i,Mn(a,0,-1))}function $C(i,a){for(var u=i.length,l=Mt(a.length,u),h=Wt(i);l--;){var m=a[l];i[l]=Nr(m,u)?h[m]:t}return i}function jl(i,a){if(!(a==="constructor"&&typeof i[a]=="function")&&a!="__proto__")return i[a]}var py=gy(Bb),pa=tD||function(i,a){return Dt.setTimeout(i,a)},Fl=gy(cC);function vy(i,a,u){var l=a+"";return Fl(i,CC(l,VC(xC(l),u)))}function gy(i){var a=0,u=0;return function(){var l=oD(),h=he-(l-u);if(u=l,h>0){if(++a>=Se)return arguments[0]}else a=0;return i.apply(t,arguments)}}function au(i,a){var u=-1,l=i.length,h=l-1;for(a=a===t?l:a;++u<a;){var m=wl(u,h),_=i[m];i[m]=i[u],i[u]=_}return i.length=a,i}var my=kC(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(Ki,function(u,l,h,m){a.push(h?m.replace(jx,"$1"):l||u)}),a});function sr(i){if(typeof i=="string"||cn(i))return i;var a=i+"";return a=="0"&&1/i==-xt?"-0":a}function Ii(i){if(i!=null){try{return Ls.call(i)}catch{}try{return i+""}catch{}}return""}function VC(i,a){return Nn(Lt,function(u){var l="_."+u[0];a&u[1]&&!Ds(i,l)&&i.push(l)}),i.sort()}function by(i){if(i instanceof Re)return i.clone();var a=new Cn(i.__wrapped__,i.__chain__);return a.__actions__=Wt(i.__actions__),a.__index__=i.__index__,a.__values__=i.__values__,a}function WC(i,a,u){(u?Bt(i,a,u):a===t)?a=1:a=wt(xe(a),0);var l=i==null?0:i.length;if(!l||a<1)return[];for(var h=0,m=0,_=M(Ws(l/a));h<l;)_[m++]=Mn(i,h,h+=a);return _}function UC(i){for(var a=-1,u=i==null?0:i.length,l=0,h=[];++a<u;){var m=i[a];m&&(h[l++]=m)}return h}function zC(){var i=arguments.length;if(!i)return[];for(var a=M(i-1),u=arguments[0],l=i;l--;)a[l-1]=arguments[l];return Hr(Ie(u)?Wt(u):[u],Ct(a,1))}var HC=De(function(i,a){return lt(i)?ua(i,Ct(a,1,lt,!0)):[]}),qC=De(function(i,a){var u=Rn(a);return lt(u)&&(u=t),lt(i)?ua(i,Ct(a,1,lt,!0),ve(u,2)):[]}),GC=De(function(i,a){var u=Rn(a);return lt(u)&&(u=t),lt(i)?ua(i,Ct(a,1,lt,!0),t,u):[]});function YC(i,a,u){var l=i==null?0:i.length;return l?(a=u||a===t?1:xe(a),Mn(i,a<0?0:a,l)):[]}function JC(i,a,u){var l=i==null?0:i.length;return l?(a=u||a===t?1:xe(a),a=l-a,Mn(i,0,a<0?0:a)):[]}function KC(i,a){return i&&i.length?Zs(i,ve(a,3),!0,!0):[]}function XC(i,a){return i&&i.length?Zs(i,ve(a,3),!0):[]}function ZC(i,a,u,l){var h=i==null?0:i.length;return h?(u&&typeof u!="number"&&Bt(i,a,u)&&(u=0,l=h),zD(i,a,u,l)):[]}function yy(i,a,u){var l=i==null?0:i.length;if(!l)return-1;var h=u==null?0:xe(u);return h<0&&(h=wt(l+h,0)),Cs(i,ve(a,3),h)}function _y(i,a,u){var l=i==null?0:i.length;if(!l)return-1;var h=l-1;return u!==t&&(h=xe(u),h=u<0?wt(l+h,0):Mt(h,l-1)),Cs(i,ve(a,3),h,!0)}function wy(i){var a=i==null?0:i.length;return a?Ct(i,1):[]}function QC(i){var a=i==null?0:i.length;return a?Ct(i,xt):[]}function eP(i,a){var u=i==null?0:i.length;return u?(a=a===t?1:xe(a),Ct(i,a)):[]}function tP(i){for(var a=-1,u=i==null?0:i.length,l={};++a<u;){var h=i[a];l[h[0]]=h[1]}return l}function Sy(i){return i&&i.length?i[0]:t}function nP(i,a,u){var l=i==null?0:i.length;if(!l)return-1;var h=u==null?0:xe(u);return h<0&&(h=wt(l+h,0)),Qi(i,a,h)}function rP(i){var a=i==null?0:i.length;return a?Mn(i,0,-1):[]}var iP=De(function(i){var a=rt(i,Al);return a.length&&a[0]===i[0]?gl(a):[]}),oP=De(function(i){var a=Rn(i),u=rt(i,Al);return a===Rn(u)?a=t:u.pop(),u.length&&u[0]===i[0]?gl(u,ve(a,2)):[]}),aP=De(function(i){var a=Rn(i),u=rt(i,Al);return a=typeof a=="function"?a:t,a&&u.pop(),u.length&&u[0]===i[0]?gl(u,t,a):[]});function sP(i,a){return i==null?"":rD.call(i,a)}function Rn(i){var a=i==null?0:i.length;return a?i[a-1]:t}function uP(i,a,u){var l=i==null?0:i.length;if(!l)return-1;var h=l;return u!==t&&(h=xe(u),h=h<0?wt(l+h,0):Mt(h,l-1)),a===a?VN(i,a,h):Cs(i,nb,h,!0)}function cP(i,a){return i&&i.length?Mb(i,xe(a)):t}var fP=De(Oy);function Oy(i,a){return i&&i.length&&a&&a.length?_l(i,a):i}function lP(i,a,u){return i&&i.length&&a&&a.length?_l(i,a,ve(u,2)):i}function dP(i,a,u){return i&&i.length&&a&&a.length?_l(i,a,t,u):i}var hP=xr(function(i,a){var u=i==null?0:i.length,l=dl(i,a);return kb(i,rt(a,function(h){return Nr(h,u)?+h:h}).sort(qb)),l});function pP(i,a){var u=[];if(!(i&&i.length))return u;var l=-1,h=[],m=i.length;for(a=ve(a,3);++l<m;){var _=i[l];a(_,l,i)&&(u.push(_),h.push(l))}return kb(i,h),u}function $l(i){return i==null?i:sD.call(i)}function vP(i,a,u){var l=i==null?0:i.length;return l?(u&&typeof u!="number"&&Bt(i,a,u)?(a=0,u=l):(a=a==null?0:xe(a),u=u===t?l:xe(u)),Mn(i,a,u)):[]}function gP(i,a){return Xs(i,a)}function mP(i,a,u){return Ol(i,a,ve(u,2))}function bP(i,a){var u=i==null?0:i.length;if(u){var l=Xs(i,a);if(l<u&&Kn(i[l],a))return l}return-1}function yP(i,a){return Xs(i,a,!0)}function _P(i,a,u){return Ol(i,a,ve(u,2),!0)}function wP(i,a){var u=i==null?0:i.length;if(u){var l=Xs(i,a,!0)-1;if(Kn(i[l],a))return l}return-1}function SP(i){return i&&i.length?jb(i):[]}function OP(i,a){return i&&i.length?jb(i,ve(a,2)):[]}function EP(i){var a=i==null?0:i.length;return a?Mn(i,1,a):[]}function IP(i,a,u){return i&&i.length?(a=u||a===t?1:xe(a),Mn(i,0,a<0?0:a)):[]}function AP(i,a,u){var l=i==null?0:i.length;return l?(a=u||a===t?1:xe(a),a=l-a,Mn(i,a<0?0:a,l)):[]}function TP(i,a){return i&&i.length?Zs(i,ve(a,3),!1,!0):[]}function xP(i,a){return i&&i.length?Zs(i,ve(a,3)):[]}var NP=De(function(i){return Jr(Ct(i,1,lt,!0))}),DP=De(function(i){var a=Rn(i);return lt(a)&&(a=t),Jr(Ct(i,1,lt,!0),ve(a,2))}),CP=De(function(i){var a=Rn(i);return a=typeof a=="function"?a:t,Jr(Ct(i,1,lt,!0),t,a)});function PP(i){return i&&i.length?Jr(i):[]}function MP(i,a){return i&&i.length?Jr(i,ve(a,2)):[]}function RP(i,a){return a=typeof a=="function"?a:t,i&&i.length?Jr(i,t,a):[]}function Vl(i){if(!(i&&i.length))return[];var a=0;return i=zr(i,function(u){if(lt(u))return a=wt(u.length,a),!0}),il(a,function(u){return rt(i,tl(u))})}function Ey(i,a){if(!(i&&i.length))return[];var u=Vl(i);return a==null?u:rt(u,function(l){return an(a,t,l)})}var LP=De(function(i,a){return lt(i)?ua(i,a):[]}),kP=De(function(i){return Il(zr(i,lt))}),BP=De(function(i){var a=Rn(i);return lt(a)&&(a=t),Il(zr(i,lt),ve(a,2))}),jP=De(function(i){var a=Rn(i);return a=typeof a=="function"?a:t,Il(zr(i,lt),t,a)}),FP=De(Vl);function $P(i,a){return Wb(i||[],a||[],sa)}function VP(i,a){return Wb(i||[],a||[],la)}var WP=De(function(i){var a=i.length,u=a>1?i[a-1]:t;return u=typeof u=="function"?(i.pop(),u):t,Ey(i,u)});function Iy(i){var a=g(i);return a.__chain__=!0,a}function UP(i,a){return a(i),i}function su(i,a){return a(i)}var zP=xr(function(i){var a=i.length,u=a?i[0]:0,l=this.__wrapped__,h=function(m){return dl(m,i)};return a>1||this.__actions__.length||!(l instanceof Re)||!Nr(u)?this.thru(h):(l=l.slice(u,+u+(a?1:0)),l.__actions__.push({func:su,args:[h],thisArg:t}),new Cn(l,this.__chain__).thru(function(m){return a&&!m.length&&m.push(t),m}))});function HP(){return Iy(this)}function qP(){return new Cn(this.value(),this.__chain__)}function GP(){this.__values__===t&&(this.__values__=Fy(this.value()));var i=this.__index__>=this.__values__.length,a=i?t:this.__values__[this.__index__++];return{done:i,value:a}}function YP(){return this}function JP(i){for(var a,u=this;u instanceof qs;){var l=by(u);l.__index__=0,l.__values__=t,a?h.__wrapped__=l:a=l;var h=l;u=u.__wrapped__}return h.__wrapped__=i,a}function KP(){var i=this.__wrapped__;if(i instanceof Re){var a=i;return this.__actions__.length&&(a=new Re(this)),a=a.reverse(),a.__actions__.push({func:su,args:[$l],thisArg:t}),new Cn(a,this.__chain__)}return this.thru($l)}function XP(){return Vb(this.__wrapped__,this.__actions__)}var ZP=Qs(function(i,a,u){Ue.call(i,u)?++i[u]:Ar(i,u,1)});function QP(i,a,u){var l=Ie(i)?eb:UD;return u&&Bt(i,a,u)&&(a=t),l(i,ve(a,3))}function eM(i,a){var u=Ie(i)?zr:Eb;return u(i,ve(a,3))}var tM=Zb(yy),nM=Zb(_y);function rM(i,a){return Ct(uu(i,a),1)}function iM(i,a){return Ct(uu(i,a),xt)}function oM(i,a,u){return u=u===t?1:xe(u),Ct(uu(i,a),u)}function Ay(i,a){var u=Ie(i)?Nn:Yr;return u(i,ve(a,3))}function Ty(i,a){var u=Ie(i)?EN:Ob;return u(i,ve(a,3))}var aM=Qs(function(i,a,u){Ue.call(i,u)?i[u].push(a):Ar(i,u,[a])});function sM(i,a,u,l){i=Ut(i)?i:lo(i),u=u&&!l?xe(u):0;var h=i.length;return u<0&&(u=wt(h+u,0)),hu(i)?u<=h&&i.indexOf(a,u)>-1:!!h&&Qi(i,a,u)>-1}var uM=De(function(i,a,u){var l=-1,h=typeof a=="function",m=Ut(i)?M(i.length):[];return Yr(i,function(_){m[++l]=h?an(a,_,u):ca(_,a,u)}),m}),cM=Qs(function(i,a,u){Ar(i,u,a)});function uu(i,a){var u=Ie(i)?rt:Db;return u(i,ve(a,3))}function fM(i,a,u,l){return i==null?[]:(Ie(a)||(a=a==null?[]:[a]),u=l?t:u,Ie(u)||(u=u==null?[]:[u]),Rb(i,a,u))}var lM=Qs(function(i,a,u){i[u?0:1].push(a)},function(){return[[],[]]});function dM(i,a,u){var l=Ie(i)?Qf:ib,h=arguments.length<3;return l(i,ve(a,4),u,h,Yr)}function hM(i,a,u){var l=Ie(i)?IN:ib,h=arguments.length<3;return l(i,ve(a,4),u,h,Ob)}function pM(i,a){var u=Ie(i)?zr:Eb;return u(i,lu(ve(a,3)))}function vM(i){var a=Ie(i)?yb:sC;return a(i)}function gM(i,a,u){(u?Bt(i,a,u):a===t)?a=1:a=xe(a);var l=Ie(i)?jD:uC;return l(i,a)}function mM(i){var a=Ie(i)?FD:fC;return a(i)}function bM(i){if(i==null)return 0;if(Ut(i))return hu(i)?to(i):i.length;var a=Rt(i);return a==Ke||a==bt?i.size:bl(i).length}function yM(i,a,u){var l=Ie(i)?el:lC;return u&&Bt(i,a,u)&&(a=t),l(i,ve(a,3))}var _M=De(function(i,a){if(i==null)return[];var u=a.length;return u>1&&Bt(i,a[0],a[1])?a=[]:u>2&&Bt(a[0],a[1],a[2])&&(a=[a[0]]),Rb(i,Ct(a,1),[])}),cu=eD||function(){return Dt.Date.now()};function wM(i,a){if(typeof a!="function")throw new Dn(c);return i=xe(i),function(){if(--i<1)return a.apply(this,arguments)}}function xy(i,a,u){return a=u?t:a,a=i&&a==null?i.length:a,Tr(i,L,t,t,t,t,a)}function Ny(i,a){var u;if(typeof a!="function")throw new Dn(c);return i=xe(i),function(){return--i>0&&(u=a.apply(this,arguments)),i<=1&&(a=t),u}}var Wl=De(function(i,a,u){var l=A;if(u.length){var h=qr(u,co(Wl));l|=q}return Tr(i,l,a,u,h)}),Dy=De(function(i,a,u){var l=A|x;if(u.length){var h=qr(u,co(Dy));l|=q}return Tr(a,l,i,u,h)});function Cy(i,a,u){a=u?t:a;var l=Tr(i,G,t,t,t,t,t,a);return l.placeholder=Cy.placeholder,l}function Py(i,a,u){a=u?t:a;var l=Tr(i,oe,t,t,t,t,t,a);return l.placeholder=Py.placeholder,l}function My(i,a,u){var l,h,m,_,E,D,$=0,V=!1,z=!1,re=!0;if(typeof i!="function")throw new Dn(c);a=Ln(a)||0,ot(u)&&(V=!!u.leading,z="maxWait"in u,m=z?wt(Ln(u.maxWait)||0,a):m,re="trailing"in u?!!u.trailing:re);function fe(dt){var Xn=l,Pr=h;return l=h=t,$=dt,_=i.apply(Pr,Xn),_}function ge(dt){return $=dt,E=pa(Pe,a),V?fe(dt):_}function Ne(dt){var Xn=dt-D,Pr=dt-$,Zy=a-Xn;return z?Mt(Zy,m-Pr):Zy}function me(dt){var Xn=dt-D,Pr=dt-$;return D===t||Xn>=a||Xn<0||z&&Pr>=m}function Pe(){var dt=cu();if(me(dt))return ke(dt);E=pa(Pe,Ne(dt))}function ke(dt){return E=t,re&&l?fe(dt):(l=h=t,_)}function fn(){E!==t&&Ub(E),$=0,l=D=h=E=t}function jt(){return E===t?_:ke(cu())}function ln(){var dt=cu(),Xn=me(dt);if(l=arguments,h=this,D=dt,Xn){if(E===t)return ge(D);if(z)return Ub(E),E=pa(Pe,a),fe(D)}return E===t&&(E=pa(Pe,a)),_}return ln.cancel=fn,ln.flush=jt,ln}var SM=De(function(i,a){return Sb(i,1,a)}),OM=De(function(i,a,u){return Sb(i,Ln(a)||0,u)});function EM(i){return Tr(i,ae)}function fu(i,a){if(typeof i!="function"||a!=null&&typeof a!="function")throw new Dn(c);var u=function(){var l=arguments,h=a?a.apply(this,l):l[0],m=u.cache;if(m.has(h))return m.get(h);var _=i.apply(this,l);return u.cache=m.set(h,_)||m,_};return u.cache=new(fu.Cache||Ir),u}fu.Cache=Ir;function lu(i){if(typeof i!="function")throw new Dn(c);return function(){var a=arguments;switch(a.length){case 0:return!i.call(this);case 1:return!i.call(this,a[0]);case 2:return!i.call(this,a[0],a[1]);case 3:return!i.call(this,a[0],a[1],a[2])}return!i.apply(this,a)}}function IM(i){return Ny(2,i)}var AM=dC(function(i,a){a=a.length==1&&Ie(a[0])?rt(a[0],sn(ve())):rt(Ct(a,1),sn(ve()));var u=a.length;return De(function(l){for(var h=-1,m=Mt(l.length,u);++h<m;)l[h]=a[h].call(this,l[h]);return an(i,this,l)})}),Ul=De(function(i,a){var u=qr(a,co(Ul));return Tr(i,q,t,a,u)}),Ry=De(function(i,a){var u=qr(a,co(Ry));return Tr(i,ye,t,a,u)}),TM=xr(function(i,a){return Tr(i,F,t,t,t,a)});function xM(i,a){if(typeof i!="function")throw new Dn(c);return a=a===t?a:xe(a),De(i,a)}function NM(i,a){if(typeof i!="function")throw new Dn(c);return a=a==null?0:wt(xe(a),0),De(function(u){var l=u[a],h=Xr(u,0,a);return l&&Hr(h,l),an(i,this,h)})}function DM(i,a,u){var l=!0,h=!0;if(typeof i!="function")throw new Dn(c);return ot(u)&&(l="leading"in u?!!u.leading:l,h="trailing"in u?!!u.trailing:h),My(i,a,{leading:l,maxWait:a,trailing:h})}function CM(i){return xy(i,1)}function PM(i,a){return Ul(Tl(a),i)}function MM(){if(!arguments.length)return[];var i=arguments[0];return Ie(i)?i:[i]}function RM(i){return Pn(i,y)}function LM(i,a){return a=typeof a=="function"?a:t,Pn(i,y,a)}function kM(i){return Pn(i,b|y)}function BM(i,a){return a=typeof a=="function"?a:t,Pn(i,b|y,a)}function jM(i,a){return a==null||wb(i,a,Ot(a))}function Kn(i,a){return i===a||i!==i&&a!==a}var FM=ru(vl),$M=ru(function(i,a){return i>=a}),Ai=Tb((function(){return arguments})())?Tb:function(i){return st(i)&&Ue.call(i,"callee")&&!hb.call(i,"callee")},Ie=M.isArray,VM=Ym?sn(Ym):JD;function Ut(i){return i!=null&&du(i.length)&&!Dr(i)}function lt(i){return st(i)&&Ut(i)}function WM(i){return i===!0||i===!1||st(i)&&kt(i)==$t}var Zr=nD||ed,UM=Jm?sn(Jm):KD;function zM(i){return st(i)&&i.nodeType===1&&!va(i)}function HM(i){if(i==null)return!0;if(Ut(i)&&(Ie(i)||typeof i=="string"||typeof i.splice=="function"||Zr(i)||fo(i)||Ai(i)))return!i.length;var a=Rt(i);if(a==Ke||a==bt)return!i.size;if(ha(i))return!bl(i).length;for(var u in i)if(Ue.call(i,u))return!1;return!0}function qM(i,a){return fa(i,a)}function GM(i,a,u){u=typeof u=="function"?u:t;var l=u?u(i,a):t;return l===t?fa(i,a,t,u):!!l}function zl(i){if(!st(i))return!1;var a=kt(i);return a==pt||a==Sr||typeof i.message=="string"&&typeof i.name=="string"&&!va(i)}function YM(i){return typeof i=="number"&&vb(i)}function Dr(i){if(!ot(i))return!1;var a=kt(i);return a==In||a==An||a==ir||a==Gn}function Ly(i){return typeof i=="number"&&i==xe(i)}function du(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=ue}function ot(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}function st(i){return i!=null&&typeof i=="object"}var ky=Km?sn(Km):ZD;function JM(i,a){return i===a||ml(i,a,Rl(a))}function KM(i,a,u){return u=typeof u=="function"?u:t,ml(i,a,Rl(a),u)}function XM(i){return By(i)&&i!=+i}function ZM(i){if(LC(i))throw new Oe(s);return xb(i)}function QM(i){return i===null}function e2(i){return i==null}function By(i){return typeof i=="number"||st(i)&&kt(i)==on}function va(i){if(!st(i)||kt(i)!=at)return!1;var a=Fs(i);if(a===null)return!0;var u=Ue.call(a,"constructor")&&a.constructor;return typeof u=="function"&&u instanceof u&&Ls.call(u)==KN}var Hl=Xm?sn(Xm):QD;function t2(i){return Ly(i)&&i>=-ue&&i<=ue}var jy=Zm?sn(Zm):eC;function hu(i){return typeof i=="string"||!Ie(i)&&st(i)&&kt(i)==St}function cn(i){return typeof i=="symbol"||st(i)&&kt(i)==P}var fo=Qm?sn(Qm):tC;function n2(i){return i===t}function r2(i){return st(i)&&Rt(i)==U}function i2(i){return st(i)&&kt(i)==ee}var o2=ru(yl),a2=ru(function(i,a){return i<=a});function Fy(i){if(!i)return[];if(Ut(i))return hu(i)?Yn(i):Wt(i);if(na&&i[na])return jN(i[na]());var a=Rt(i),u=a==Ke?al:a==bt?Ps:lo;return u(i)}function Cr(i){if(!i)return i===0?i:0;if(i=Ln(i),i===xt||i===-xt){var a=i<0?-1:1;return a*nn}return i===i?i:0}function xe(i){var a=Cr(i),u=a%1;return a===a?u?a-u:a:0}function $y(i){return i?Si(xe(i),0,Le):0}function Ln(i){if(typeof i=="number")return i;if(cn(i))return Pt;if(ot(i)){var a=typeof i.valueOf=="function"?i.valueOf():i;i=ot(a)?a+"":a}if(typeof i!="string")return i===0?i:+i;i=ob(i);var u=Vx.test(i);return u||Ux.test(i)?wN(i.slice(2),u?2:8):$x.test(i)?Pt:+i}function Vy(i){return ar(i,zt(i))}function s2(i){return i?Si(xe(i),-ue,ue):i===0?i:0}function ze(i){return i==null?"":un(i)}var u2=so(function(i,a){if(ha(a)||Ut(a)){ar(a,Ot(a),i);return}for(var u in a)Ue.call(a,u)&&sa(i,u,a[u])}),Wy=so(function(i,a){ar(a,zt(a),i)}),pu=so(function(i,a,u,l){ar(a,zt(a),i,l)}),c2=so(function(i,a,u,l){ar(a,Ot(a),i,l)}),f2=xr(dl);function l2(i,a){var u=ao(i);return a==null?u:_b(u,a)}var d2=De(function(i,a){i=Ye(i);var u=-1,l=a.length,h=l>2?a[2]:t;for(h&&Bt(a[0],a[1],h)&&(l=1);++u<l;)for(var m=a[u],_=zt(m),E=-1,D=_.length;++E<D;){var $=_[E],V=i[$];(V===t||Kn(V,ro[$])&&!Ue.call(i,$))&&(i[$]=m[$])}return i}),h2=De(function(i){return i.push(t,oy),an(Uy,t,i)});function p2(i,a){return tb(i,ve(a,3),or)}function v2(i,a){return tb(i,ve(a,3),pl)}function g2(i,a){return i==null?i:hl(i,ve(a,3),zt)}function m2(i,a){return i==null?i:Ib(i,ve(a,3),zt)}function b2(i,a){return i&&or(i,ve(a,3))}function y2(i,a){return i&&pl(i,ve(a,3))}function _2(i){return i==null?[]:Js(i,Ot(i))}function w2(i){return i==null?[]:Js(i,zt(i))}function ql(i,a,u){var l=i==null?t:Oi(i,a);return l===t?u:l}function S2(i,a){return i!=null&&uy(i,a,HD)}function Gl(i,a){return i!=null&&uy(i,a,qD)}var O2=ey(function(i,a,u){a!=null&&typeof a.toString!="function"&&(a=ks.call(a)),i[a]=u},Jl(Ht)),E2=ey(function(i,a,u){a!=null&&typeof a.toString!="function"&&(a=ks.call(a)),Ue.call(i,a)?i[a].push(u):i[a]=[u]},ve),I2=De(ca);function Ot(i){return Ut(i)?bb(i):bl(i)}function zt(i){return Ut(i)?bb(i,!0):nC(i)}function A2(i,a){var u={};return a=ve(a,3),or(i,function(l,h,m){Ar(u,a(l,h,m),l)}),u}function T2(i,a){var u={};return a=ve(a,3),or(i,function(l,h,m){Ar(u,h,a(l,h,m))}),u}var x2=so(function(i,a,u){Ks(i,a,u)}),Uy=so(function(i,a,u,l){Ks(i,a,u,l)}),N2=xr(function(i,a){var u={};if(i==null)return u;var l=!1;a=rt(a,function(m){return m=Kr(m,i),l||(l=m.length>1),m}),ar(i,Pl(i),u),l&&(u=Pn(u,b|w|y,OC));for(var h=a.length;h--;)El(u,a[h]);return u});function D2(i,a){return zy(i,lu(ve(a)))}var C2=xr(function(i,a){return i==null?{}:iC(i,a)});function zy(i,a){if(i==null)return{};var u=rt(Pl(i),function(l){return[l]});return a=ve(a),Lb(i,u,function(l,h){return a(l,h[0])})}function P2(i,a,u){a=Kr(a,i);var l=-1,h=a.length;for(h||(h=1,i=t);++l<h;){var m=i==null?t:i[sr(a[l])];m===t&&(l=h,m=u),i=Dr(m)?m.call(i):m}return i}function M2(i,a,u){return i==null?i:la(i,a,u)}function R2(i,a,u,l){return l=typeof l=="function"?l:t,i==null?i:la(i,a,u,l)}var Hy=ry(Ot),qy=ry(zt);function L2(i,a,u){var l=Ie(i),h=l||Zr(i)||fo(i);if(a=ve(a,4),u==null){var m=i&&i.constructor;h?u=l?new m:[]:ot(i)?u=Dr(m)?ao(Fs(i)):{}:u={}}return(h?Nn:or)(i,function(_,E,D){return a(u,_,E,D)}),u}function k2(i,a){return i==null?!0:El(i,a)}function B2(i,a,u){return i==null?i:$b(i,a,Tl(u))}function j2(i,a,u,l){return l=typeof l=="function"?l:t,i==null?i:$b(i,a,Tl(u),l)}function lo(i){return i==null?[]:ol(i,Ot(i))}function F2(i){return i==null?[]:ol(i,zt(i))}function $2(i,a,u){return u===t&&(u=a,a=t),u!==t&&(u=Ln(u),u=u===u?u:0),a!==t&&(a=Ln(a),a=a===a?a:0),Si(Ln(i),a,u)}function V2(i,a,u){return a=Cr(a),u===t?(u=a,a=0):u=Cr(u),i=Ln(i),GD(i,a,u)}function W2(i,a,u){if(u&&typeof u!="boolean"&&Bt(i,a,u)&&(a=u=t),u===t&&(typeof a=="boolean"?(u=a,a=t):typeof i=="boolean"&&(u=i,i=t)),i===t&&a===t?(i=0,a=1):(i=Cr(i),a===t?(a=i,i=0):a=Cr(a)),i>a){var l=i;i=a,a=l}if(u||i%1||a%1){var h=gb();return Mt(i+h*(a-i+_N("1e-"+((h+"").length-1))),a)}return wl(i,a)}var U2=uo(function(i,a,u){return a=a.toLowerCase(),i+(u?Gy(a):a)});function Gy(i){return Yl(ze(i).toLowerCase())}function Yy(i){return i=ze(i),i&&i.replace(Hx,MN).replace(fN,"")}function z2(i,a,u){i=ze(i),a=un(a);var l=i.length;u=u===t?l:Si(xe(u),0,l);var h=u;return u-=a.length,u>=0&&i.slice(u,h)==a}function H2(i){return i=ze(i),i&&Ee.test(i)?i.replace(te,RN):i}function q2(i){return i=ze(i),i&&zf.test(i)?i.replace(Zo,"\\$&"):i}var G2=uo(function(i,a,u){return i+(u?"-":"")+a.toLowerCase()}),Y2=uo(function(i,a,u){return i+(u?" ":"")+a.toLowerCase()}),J2=Xb("toLowerCase");function K2(i,a,u){i=ze(i),a=xe(a);var l=a?to(i):0;if(!a||l>=a)return i;var h=(a-l)/2;return nu(Us(h),u)+i+nu(Ws(h),u)}function X2(i,a,u){i=ze(i),a=xe(a);var l=a?to(i):0;return a&&l<a?i+nu(a-l,u):i}function Z2(i,a,u){i=ze(i),a=xe(a);var l=a?to(i):0;return a&&l<a?nu(a-l,u)+i:i}function Q2(i,a,u){return u||a==null?a=0:a&&(a=+a),aD(ze(i).replace(Or,""),a||0)}function eR(i,a,u){return(u?Bt(i,a,u):a===t)?a=1:a=xe(a),Sl(ze(i),a)}function tR(){var i=arguments,a=ze(i[0]);return i.length<3?a:a.replace(i[1],i[2])}var nR=uo(function(i,a,u){return i+(u?"_":"")+a.toLowerCase()});function rR(i,a,u){return u&&typeof u!="number"&&Bt(i,a,u)&&(a=u=t),u=u===t?Le:u>>>0,u?(i=ze(i),i&&(typeof a=="string"||a!=null&&!Hl(a))&&(a=un(a),!a&&eo(i))?Xr(Yn(i),0,u):i.split(a,u)):[]}var iR=uo(function(i,a,u){return i+(u?" ":"")+Yl(a)});function oR(i,a,u){return i=ze(i),u=u==null?0:Si(xe(u),0,i.length),a=un(a),i.slice(u,u+a.length)==a}function aR(i,a,u){var l=g.templateSettings;u&&Bt(i,a,u)&&(a=t),i=ze(i),a=pu({},a,l,iy);var h=pu({},a.imports,l.imports,iy),m=Ot(h),_=ol(h,m),E,D,$=0,V=a.interpolate||Ts,z="__p += '",re=sl((a.escape||Ts).source+"|"+V.source+"|"+(V===yt?Fx:Ts).source+"|"+(a.evaluate||Ts).source+"|$","g"),fe="//# sourceURL="+(Ue.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++vN+"]")+`
51
+ `;i.replace(re,function(me,Pe,ke,fn,jt,ln){return ke||(ke=fn),z+=i.slice($,ln).replace(qx,LN),Pe&&(E=!0,z+=`' +
52
+ __e(`+Pe+`) +
53
+ '`),jt&&(D=!0,z+=`';
54
+ `+jt+`;
55
+ __p += '`),ke&&(z+=`' +
56
+ ((__t = (`+ke+`)) == null ? '' : __t) +
57
+ '`),$=ln+me.length,me}),z+=`';
58
+ `;var ge=Ue.call(a,"variable")&&a.variable;if(!ge)z=`with (obj) {
59
+ `+z+`
60
+ }
61
+ `;else if(Bx.test(ge))throw new Oe(f);z=(D?z.replace(Me,""):z).replace(ne,"$1").replace(Y,"$1;"),z="function("+(ge||"obj")+`) {
62
+ `+(ge?"":`obj || (obj = {});
63
+ `)+"var __t, __p = ''"+(E?", __e = _.escape":"")+(D?`, __j = Array.prototype.join;
64
+ function print() { __p += __j.call(arguments, '') }
65
+ `:`;
66
+ `)+z+`return __p
67
+ }`;var Ne=Ky(function(){return We(m,fe+"return "+z).apply(t,_)});if(Ne.source=z,zl(Ne))throw Ne;return Ne}function sR(i){return ze(i).toLowerCase()}function uR(i){return ze(i).toUpperCase()}function cR(i,a,u){if(i=ze(i),i&&(u||a===t))return ob(i);if(!i||!(a=un(a)))return i;var l=Yn(i),h=Yn(a),m=ab(l,h),_=sb(l,h)+1;return Xr(l,m,_).join("")}function fR(i,a,u){if(i=ze(i),i&&(u||a===t))return i.slice(0,cb(i)+1);if(!i||!(a=un(a)))return i;var l=Yn(i),h=sb(l,Yn(a))+1;return Xr(l,0,h).join("")}function lR(i,a,u){if(i=ze(i),i&&(u||a===t))return i.replace(Or,"");if(!i||!(a=un(a)))return i;var l=Yn(i),h=ab(l,Yn(a));return Xr(l,h).join("")}function dR(i,a){var u=we,l=ce;if(ot(a)){var h="separator"in a?a.separator:h;u="length"in a?xe(a.length):u,l="omission"in a?un(a.omission):l}i=ze(i);var m=i.length;if(eo(i)){var _=Yn(i);m=_.length}if(u>=m)return i;var E=u-to(l);if(E<1)return l;var D=_?Xr(_,0,E).join(""):i.slice(0,E);if(h===t)return D+l;if(_&&(E+=D.length-E),Hl(h)){if(i.slice(E).search(h)){var $,V=D;for(h.global||(h=sl(h.source,ze(Tm.exec(h))+"g")),h.lastIndex=0;$=h.exec(V);)var z=$.index;D=D.slice(0,z===t?E:z)}}else if(i.indexOf(un(h),E)!=E){var re=D.lastIndexOf(h);re>-1&&(D=D.slice(0,re))}return D+l}function hR(i){return i=ze(i),i&&X.test(i)?i.replace(K,WN):i}var pR=uo(function(i,a,u){return i+(u?" ":"")+a.toUpperCase()}),Yl=Xb("toUpperCase");function Jy(i,a,u){return i=ze(i),a=u?t:a,a===t?BN(i)?HN(i):xN(i):i.match(a)||[]}var Ky=De(function(i,a){try{return an(i,t,a)}catch(u){return zl(u)?u:new Oe(u)}}),vR=xr(function(i,a){return Nn(a,function(u){u=sr(u),Ar(i,u,Wl(i[u],i))}),i});function gR(i){var a=i==null?0:i.length,u=ve();return i=a?rt(i,function(l){if(typeof l[1]!="function")throw new Dn(c);return[u(l[0]),l[1]]}):[],De(function(l){for(var h=-1;++h<a;){var m=i[h];if(an(m[0],this,l))return an(m[1],this,l)}})}function mR(i){return WD(Pn(i,b))}function Jl(i){return function(){return i}}function bR(i,a){return i==null||i!==i?a:i}var yR=Qb(),_R=Qb(!0);function Ht(i){return i}function Kl(i){return Nb(typeof i=="function"?i:Pn(i,b))}function wR(i){return Cb(Pn(i,b))}function SR(i,a){return Pb(i,Pn(a,b))}var OR=De(function(i,a){return function(u){return ca(u,i,a)}}),ER=De(function(i,a){return function(u){return ca(i,u,a)}});function Xl(i,a,u){var l=Ot(a),h=Js(a,l);u==null&&!(ot(a)&&(h.length||!l.length))&&(u=a,a=i,i=this,h=Js(a,Ot(a)));var m=!(ot(u)&&"chain"in u)||!!u.chain,_=Dr(i);return Nn(h,function(E){var D=a[E];i[E]=D,_&&(i.prototype[E]=function(){var $=this.__chain__;if(m||$){var V=i(this.__wrapped__),z=V.__actions__=Wt(this.__actions__);return z.push({func:D,args:arguments,thisArg:i}),V.__chain__=$,V}return D.apply(i,Hr([this.value()],arguments))})}),i}function IR(){return Dt._===this&&(Dt._=XN),this}function Zl(){}function AR(i){return i=xe(i),De(function(a){return Mb(a,i)})}var TR=Nl(rt),xR=Nl(eb),NR=Nl(el);function Xy(i){return kl(i)?tl(sr(i)):oC(i)}function DR(i){return function(a){return i==null?t:Oi(i,a)}}var CR=ty(),PR=ty(!0);function Ql(){return[]}function ed(){return!1}function MR(){return{}}function RR(){return""}function LR(){return!0}function kR(i,a){if(i=xe(i),i<1||i>ue)return[];var u=Le,l=Mt(i,Le);a=ve(a),i-=Le;for(var h=il(l,a);++u<i;)a(u);return h}function BR(i){return Ie(i)?rt(i,sr):cn(i)?[i]:Wt(my(ze(i)))}function jR(i){var a=++JN;return ze(i)+a}var FR=tu(function(i,a){return i+a},0),$R=Dl("ceil"),VR=tu(function(i,a){return i/a},1),WR=Dl("floor");function UR(i){return i&&i.length?Ys(i,Ht,vl):t}function zR(i,a){return i&&i.length?Ys(i,ve(a,2),vl):t}function HR(i){return rb(i,Ht)}function qR(i,a){return rb(i,ve(a,2))}function GR(i){return i&&i.length?Ys(i,Ht,yl):t}function YR(i,a){return i&&i.length?Ys(i,ve(a,2),yl):t}var JR=tu(function(i,a){return i*a},1),KR=Dl("round"),XR=tu(function(i,a){return i-a},0);function ZR(i){return i&&i.length?rl(i,Ht):0}function QR(i,a){return i&&i.length?rl(i,ve(a,2)):0}return g.after=wM,g.ary=xy,g.assign=u2,g.assignIn=Wy,g.assignInWith=pu,g.assignWith=c2,g.at=f2,g.before=Ny,g.bind=Wl,g.bindAll=vR,g.bindKey=Dy,g.castArray=MM,g.chain=Iy,g.chunk=WC,g.compact=UC,g.concat=zC,g.cond=gR,g.conforms=mR,g.constant=Jl,g.countBy=ZP,g.create=l2,g.curry=Cy,g.curryRight=Py,g.debounce=My,g.defaults=d2,g.defaultsDeep=h2,g.defer=SM,g.delay=OM,g.difference=HC,g.differenceBy=qC,g.differenceWith=GC,g.drop=YC,g.dropRight=JC,g.dropRightWhile=KC,g.dropWhile=XC,g.fill=ZC,g.filter=eM,g.flatMap=rM,g.flatMapDeep=iM,g.flatMapDepth=oM,g.flatten=wy,g.flattenDeep=QC,g.flattenDepth=eP,g.flip=EM,g.flow=yR,g.flowRight=_R,g.fromPairs=tP,g.functions=_2,g.functionsIn=w2,g.groupBy=aM,g.initial=rP,g.intersection=iP,g.intersectionBy=oP,g.intersectionWith=aP,g.invert=O2,g.invertBy=E2,g.invokeMap=uM,g.iteratee=Kl,g.keyBy=cM,g.keys=Ot,g.keysIn=zt,g.map=uu,g.mapKeys=A2,g.mapValues=T2,g.matches=wR,g.matchesProperty=SR,g.memoize=fu,g.merge=x2,g.mergeWith=Uy,g.method=OR,g.methodOf=ER,g.mixin=Xl,g.negate=lu,g.nthArg=AR,g.omit=N2,g.omitBy=D2,g.once=IM,g.orderBy=fM,g.over=TR,g.overArgs=AM,g.overEvery=xR,g.overSome=NR,g.partial=Ul,g.partialRight=Ry,g.partition=lM,g.pick=C2,g.pickBy=zy,g.property=Xy,g.propertyOf=DR,g.pull=fP,g.pullAll=Oy,g.pullAllBy=lP,g.pullAllWith=dP,g.pullAt=hP,g.range=CR,g.rangeRight=PR,g.rearg=TM,g.reject=pM,g.remove=pP,g.rest=xM,g.reverse=$l,g.sampleSize=gM,g.set=M2,g.setWith=R2,g.shuffle=mM,g.slice=vP,g.sortBy=_M,g.sortedUniq=SP,g.sortedUniqBy=OP,g.split=rR,g.spread=NM,g.tail=EP,g.take=IP,g.takeRight=AP,g.takeRightWhile=TP,g.takeWhile=xP,g.tap=UP,g.throttle=DM,g.thru=su,g.toArray=Fy,g.toPairs=Hy,g.toPairsIn=qy,g.toPath=BR,g.toPlainObject=Vy,g.transform=L2,g.unary=CM,g.union=NP,g.unionBy=DP,g.unionWith=CP,g.uniq=PP,g.uniqBy=MP,g.uniqWith=RP,g.unset=k2,g.unzip=Vl,g.unzipWith=Ey,g.update=B2,g.updateWith=j2,g.values=lo,g.valuesIn=F2,g.without=LP,g.words=Jy,g.wrap=PM,g.xor=kP,g.xorBy=BP,g.xorWith=jP,g.zip=FP,g.zipObject=$P,g.zipObjectDeep=VP,g.zipWith=WP,g.entries=Hy,g.entriesIn=qy,g.extend=Wy,g.extendWith=pu,Xl(g,g),g.add=FR,g.attempt=Ky,g.camelCase=U2,g.capitalize=Gy,g.ceil=$R,g.clamp=$2,g.clone=RM,g.cloneDeep=kM,g.cloneDeepWith=BM,g.cloneWith=LM,g.conformsTo=jM,g.deburr=Yy,g.defaultTo=bR,g.divide=VR,g.endsWith=z2,g.eq=Kn,g.escape=H2,g.escapeRegExp=q2,g.every=QP,g.find=tM,g.findIndex=yy,g.findKey=p2,g.findLast=nM,g.findLastIndex=_y,g.findLastKey=v2,g.floor=WR,g.forEach=Ay,g.forEachRight=Ty,g.forIn=g2,g.forInRight=m2,g.forOwn=b2,g.forOwnRight=y2,g.get=ql,g.gt=FM,g.gte=$M,g.has=S2,g.hasIn=Gl,g.head=Sy,g.identity=Ht,g.includes=sM,g.indexOf=nP,g.inRange=V2,g.invoke=I2,g.isArguments=Ai,g.isArray=Ie,g.isArrayBuffer=VM,g.isArrayLike=Ut,g.isArrayLikeObject=lt,g.isBoolean=WM,g.isBuffer=Zr,g.isDate=UM,g.isElement=zM,g.isEmpty=HM,g.isEqual=qM,g.isEqualWith=GM,g.isError=zl,g.isFinite=YM,g.isFunction=Dr,g.isInteger=Ly,g.isLength=du,g.isMap=ky,g.isMatch=JM,g.isMatchWith=KM,g.isNaN=XM,g.isNative=ZM,g.isNil=e2,g.isNull=QM,g.isNumber=By,g.isObject=ot,g.isObjectLike=st,g.isPlainObject=va,g.isRegExp=Hl,g.isSafeInteger=t2,g.isSet=jy,g.isString=hu,g.isSymbol=cn,g.isTypedArray=fo,g.isUndefined=n2,g.isWeakMap=r2,g.isWeakSet=i2,g.join=sP,g.kebabCase=G2,g.last=Rn,g.lastIndexOf=uP,g.lowerCase=Y2,g.lowerFirst=J2,g.lt=o2,g.lte=a2,g.max=UR,g.maxBy=zR,g.mean=HR,g.meanBy=qR,g.min=GR,g.minBy=YR,g.stubArray=Ql,g.stubFalse=ed,g.stubObject=MR,g.stubString=RR,g.stubTrue=LR,g.multiply=JR,g.nth=cP,g.noConflict=IR,g.noop=Zl,g.now=cu,g.pad=K2,g.padEnd=X2,g.padStart=Z2,g.parseInt=Q2,g.random=W2,g.reduce=dM,g.reduceRight=hM,g.repeat=eR,g.replace=tR,g.result=P2,g.round=KR,g.runInContext=T,g.sample=vM,g.size=bM,g.snakeCase=nR,g.some=yM,g.sortedIndex=gP,g.sortedIndexBy=mP,g.sortedIndexOf=bP,g.sortedLastIndex=yP,g.sortedLastIndexBy=_P,g.sortedLastIndexOf=wP,g.startCase=iR,g.startsWith=oR,g.subtract=XR,g.sum=ZR,g.sumBy=QR,g.template=aR,g.times=kR,g.toFinite=Cr,g.toInteger=xe,g.toLength=$y,g.toLower=sR,g.toNumber=Ln,g.toSafeInteger=s2,g.toString=ze,g.toUpper=uR,g.trim=cR,g.trimEnd=fR,g.trimStart=lR,g.truncate=dR,g.unescape=hR,g.uniqueId=jR,g.upperCase=pR,g.upperFirst=Yl,g.each=Ay,g.eachRight=Ty,g.first=Sy,Xl(g,(function(){var i={};return or(g,function(a,u){Ue.call(g.prototype,u)||(i[u]=a)}),i})(),{chain:!1}),g.VERSION=r,Nn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){g[i].placeholder=g}),Nn(["drop","take"],function(i,a){Re.prototype[i]=function(u){u=u===t?1:wt(xe(u),0);var l=this.__filtered__&&!a?new Re(this):this.clone();return l.__filtered__?l.__takeCount__=Mt(u,l.__takeCount__):l.__views__.push({size:Mt(u,Le),type:i+(l.__dir__<0?"Right":"")}),l},Re.prototype[i+"Right"]=function(u){return this.reverse()[i](u).reverse()}}),Nn(["filter","map","takeWhile"],function(i,a){var u=a+1,l=u==ct||u==ft;Re.prototype[i]=function(h){var m=this.clone();return m.__iteratees__.push({iteratee:ve(h,3),type:u}),m.__filtered__=m.__filtered__||l,m}}),Nn(["head","last"],function(i,a){var u="take"+(a?"Right":"");Re.prototype[i]=function(){return this[u](1).value()[0]}}),Nn(["initial","tail"],function(i,a){var u="drop"+(a?"":"Right");Re.prototype[i]=function(){return this.__filtered__?new Re(this):this[u](1)}}),Re.prototype.compact=function(){return this.filter(Ht)},Re.prototype.find=function(i){return this.filter(i).head()},Re.prototype.findLast=function(i){return this.reverse().find(i)},Re.prototype.invokeMap=De(function(i,a){return typeof i=="function"?new Re(this):this.map(function(u){return ca(u,i,a)})}),Re.prototype.reject=function(i){return this.filter(lu(ve(i)))},Re.prototype.slice=function(i,a){i=xe(i);var u=this;return u.__filtered__&&(i>0||a<0)?new Re(u):(i<0?u=u.takeRight(-i):i&&(u=u.drop(i)),a!==t&&(a=xe(a),u=a<0?u.dropRight(-a):u.take(a-i)),u)},Re.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Re.prototype.toArray=function(){return this.take(Le)},or(Re.prototype,function(i,a){var u=/^(?:filter|find|map|reject)|While$/.test(a),l=/^(?:head|last)$/.test(a),h=g[l?"take"+(a=="last"?"Right":""):a],m=l||/^find/.test(a);h&&(g.prototype[a]=function(){var _=this.__wrapped__,E=l?[1]:arguments,D=_ instanceof Re,$=E[0],V=D||Ie(_),z=function(Pe){var ke=h.apply(g,Hr([Pe],E));return l&&re?ke[0]:ke};V&&u&&typeof $=="function"&&$.length!=1&&(D=V=!1);var re=this.__chain__,fe=!!this.__actions__.length,ge=m&&!re,Ne=D&&!fe;if(!m&&V){_=Ne?_:new Re(this);var me=i.apply(_,E);return me.__actions__.push({func:su,args:[z],thisArg:t}),new Cn(me,re)}return ge&&Ne?i.apply(this,E):(me=this.thru(z),ge?l?me.value()[0]:me.value():me)})}),Nn(["pop","push","shift","sort","splice","unshift"],function(i){var a=Ms[i],u=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",l=/^(?:pop|shift)$/.test(i);g.prototype[i]=function(){var h=arguments;if(l&&!this.__chain__){var m=this.value();return a.apply(Ie(m)?m:[],h)}return this[u](function(_){return a.apply(Ie(_)?_:[],h)})}}),or(Re.prototype,function(i,a){var u=g[a];if(u){var l=u.name+"";Ue.call(oo,l)||(oo[l]=[]),oo[l].push({name:a,func:u})}}),oo[eu(t,x).name]=[{name:"wrapper",func:t}],Re.prototype.clone=hD,Re.prototype.reverse=pD,Re.prototype.value=vD,g.prototype.at=zP,g.prototype.chain=HP,g.prototype.commit=qP,g.prototype.next=GP,g.prototype.plant=JP,g.prototype.reverse=KP,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=XP,g.prototype.first=g.prototype.head,na&&(g.prototype[na]=YP),g}),no=qN();bi?((bi.exports=no)._=no,Kf._=no):Dt._=no}).call(i0)})(Oo,Oo.exports)),Oo.exports}var xi=o0();function eh(n){return JSON.stringify(Bu(n))}function Bu(n){return Array.isArray(n)?n.map(Bu):n&&typeof n=="object"?Object.fromEntries(Object.entries(n).sort((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>[e,Bu(t)])):n}class $e{static toString(e){const t=eh(e);if(t==null)throw new Error("buildWinId: stringify error");return t}static getParamString(e,t){return e.params?.[t]?.toString()}static getParam(e,t){return e.params?.[t]}static isEquals(e,t){return xi.isEqual(e,t)}static indexOf(e,t){return e.map($e.toString).indexOf($e.toString(t))}static includes(e,t){return e.map($e.toString).includes($e.toString(t))}static withoutDup(e){const{params:t,viewId:r,title:o}=e;return{params:t,viewId:r,title:o}}static replaceDup(e){const{params:t,viewId:r,title:o}=e;return{params:t,viewId:r,title:o,dupId:`${new Date().getTime()}`}}}var Ta={exports:{}},th;function a0(){return th||(th=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0});function t(L){return typeof L=="object"&&!("toString"in L)?Object.prototype.toString.call(L).slice(8,-1):L}var r=typeof process=="object"&&process.env.NODE_ENV==="production";function o(L,F){if(!L)throw r?new Error("Invariant failed"):new Error(F())}e.invariant=o;var s=Object.prototype.hasOwnProperty,c=Array.prototype.splice,f=Object.prototype.toString;function d(L){return f.call(L).slice(8,-1)}var p=Object.assign||(function(L,F){return v(F).forEach(function(ae){s.call(F,ae)&&(L[ae]=F[ae])}),L}),v=typeof Object.getOwnPropertySymbols=="function"?function(L){return Object.keys(L).concat(Object.getOwnPropertySymbols(L))}:function(L){return Object.keys(L)};function b(L){return Array.isArray(L)?p(L.constructor(L.length),L):d(L)==="Map"?new Map(L):d(L)==="Set"?new Set(L):L&&typeof L=="object"?p(Object.create(Object.getPrototypeOf(L)),L):L}var w=(function(){function L(){this.commands=p({},y),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(F,ae){return F===ae},this.update.newContext=function(){return new L().update}}return Object.defineProperty(L.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(F){this.update.isEquals=F},enumerable:!0,configurable:!0}),L.prototype.extend=function(F,ae){this.commands[F]=ae},L.prototype.update=function(F,ae){var we=this,ce=typeof ae=="function"?{$apply:ae}:ae;Array.isArray(F)&&Array.isArray(ce)||o(!Array.isArray(ce),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),o(typeof ce=="object"&&ce!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(we.commands).join(", ")+".")});var Se=F;return v(ce).forEach(function(he){if(s.call(we.commands,he)){var ct=F===Se;Se=we.commands[he](ce[he],Se,ce,F),ct&&we.isEquals(Se,F)&&(Se=F)}else{var ht=d(F)==="Map"?we.update(F.get(he),ce[he]):we.update(F[he],ce[he]),ft=d(Se)==="Map"?Se.get(he):Se[he];(!we.isEquals(ht,ft)||typeof ht>"u"&&!s.call(F,he))&&(Se===F&&(Se=b(F)),d(Se)==="Map"?Se.set(he,ht):Se[he]=ht)}}),Se},L})();e.Context=w;var y={$push:function(L,F,ae){return S(F,ae,"$push"),L.length?F.concat(L):F},$unshift:function(L,F,ae){return S(F,ae,"$unshift"),L.length?L.concat(F):F},$splice:function(L,F,ae,we){return x(F,ae),L.forEach(function(ce){k(ce),F===we&&ce.length&&(F=b(we)),c.apply(F,ce)}),F},$set:function(L,F,ae){return oe(ae),L},$toggle:function(L,F){A(L,"$toggle");var ae=L.length?b(F):F;return L.forEach(function(we){ae[we]=!F[we]}),ae},$unset:function(L,F,ae,we){return A(L,"$unset"),L.forEach(function(ce){Object.hasOwnProperty.call(F,ce)&&(F===we&&(F=b(we)),delete F[ce])}),F},$add:function(L,F,ae,we){return ye(F,"$add"),A(L,"$add"),d(F)==="Map"?L.forEach(function(ce){var Se=ce[0],he=ce[1];F===we&&F.get(Se)!==he&&(F=b(we)),F.set(Se,he)}):L.forEach(function(ce){F===we&&!F.has(ce)&&(F=b(we)),F.add(ce)}),F},$remove:function(L,F,ae,we){return ye(F,"$remove"),A(L,"$remove"),L.forEach(function(ce){F===we&&F.has(ce)&&(F=b(we)),F.delete(ce)}),F},$merge:function(L,F,ae,we){return q(F,L),v(L).forEach(function(ce){L[ce]!==F[ce]&&(F===we&&(F=b(we)),F[ce]=L[ce])}),F},$apply:function(L,F){return G(L),L(F)}},O=new w;e.isEquals=O.update.isEquals,e.extend=O.extend,e.default=O.update,e.default.default=n.exports=p(e.default,e);function S(L,F,ae){o(Array.isArray(L),function(){return"update(): expected target of "+t(ae)+" to be an array; got "+t(L)+"."}),A(F[ae],ae)}function A(L,F){o(Array.isArray(L),function(){return"update(): expected spec of "+t(F)+" to be an array; got "+t(L)+". Did you forget to wrap your parameter in an array?"})}function x(L,F){o(Array.isArray(L),function(){return"Expected $splice target to be an array; got "+t(L)}),k(F.$splice)}function k(L){o(Array.isArray(L),function(){return"update(): expected spec of $splice to be an array of arrays; got "+t(L)+". Did you forget to wrap your parameters in an array?"})}function G(L){o(typeof L=="function",function(){return"update(): expected spec of $apply to be a function; got "+t(L)+"."})}function oe(L){o(Object.keys(L).length===1,function(){return"Cannot have more than one key in an object with $set"})}function q(L,F){o(F&&typeof F=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+t(F)}),o(L&&typeof L=="object",function(){return"update(): $merge expects a target of type 'object'; got "+t(L)})}function ye(L,F){var ae=d(L);o(ae==="Map"||ae==="Set",function(){return"update(): "+t(F)+" expects a target of type Set or Map; got "+t(ae)})}})(Ta,Ta.exports)),Ta.exports}var s0=a0();const u0=po(s0);var c0=Object.getOwnPropertyDescriptor,f0=(n,e,t,r)=>{for(var o=r>1?void 0:r?c0(e,t):e,s=n.length-1,c;s>=0;s--)(c=n[s])&&(o=c(o)||o);return o};Fe.JustLayoutService=class{insertWinIdToStack=(e,t)=>{if(e==null)return e;const r=this.getNodeByBranch(e,t.branch);if(r.type!=="stack")return e;const s=r.tabs,c=t.index>=0?xi.clamp(t.index,0,s.length):s.length;return this.updateNodeOfBranch(e,t.branch,{$set:{...r,type:"stack",tabs:[...s.slice(0,c),t.justId,...s.slice(c)],active:t.justId}})};insertWinIdToSplit=(e,t)=>{if(e==null)return e;const r=this.getNodeByBranch(e,t.branch),o=t.pos==="first"?"second":"first";return this.updateNodeOfBranch(e,t.branch,{$set:{type:"split-percentage",direction:t.direction,[o]:{...r,name:void 0},[t.pos]:{type:"stack",tabs:[t.justId],active:t.justId,name:void 0},size:t.size??50,dndAccept:r.dndAccept,name:r.name,hideTitle:r.hideTitle}})};removeWinId=(e,t)=>{if(e==null)return null;const r=this.getNodeByWinId(e,t);if(r?.type!=="stack")return e;const o=r.active?$e.indexOf(r.tabs,r.active):0,s=r.tabs.filter(f=>!$e.isEquals(f,t));let c;return r.active!==null&&$e.includes(s,r.active)?c=r.active:c=s.length>0&&r.active!==null?s[xi.clamp(o-1,0,s.length-1)]:null,this.updateNodeOfWinId(e,t,{$set:{...r,tabs:s,active:c}})};removeAllTabs=(e,t)=>{if(e==null)return null;const r=this.getNodeByBranch(e,t);return r==null||r.type!=="stack"?e:this.updateNodeOfBranch(e,t,{$set:{...r,tabs:[],active:null}})};activeWinId=(e,t)=>{if(e==null)return null;const r=this.getNodeByWinId(e,t);return r==null?e:this.updateNodeOfWinId(e,t,{$set:{...r,active:t}})};getActiveWinIds=e=>{const t=(r,o)=>{if(r===null)return o;if(r.type==="stack")return r.active!==null?[...o,r.active]:o;{const s=t(r.first,o);return t(r.second,s)}};return t(e,[])};removeEmpty=e=>{if(e==null)return e;const t=this.findEmptyBranch(e,null,[]);if(t===null)return e;if(t.length===0)return null;const r=t[t.length-1],o=t.slice(0,-1),s=r==="first"?"second":"first",c=this.getNodeByBranch(e,o),f=this.getNodeByBranch(e,[...o,s]);return this.updateNodeOfBranch(e,o,{$set:{...f,dndAccept:c.dndAccept,name:c.name,hideTitle:c.hideTitle}})};findEmptyBranch=(e,t,r)=>{if(e===null)return null;if(e.type==="stack"){const o=t!=null&&t.type!="stack"&&(!!t.first.name||!!t.second.name);if(e.tabs.length===0&&!o)return r}else{const o=this.findEmptyBranch(e.first,e,[...r,"first"]);if(o!=null)return o;const s=this.findEmptyBranch(e.second,e,[...r,"second"]);if(s!=null)return s}return null};moveWinIdToStack=(e,t)=>{const r=this.removeWinId(e,t.justId);return this.insertWinIdToStack(r,t)};moveWinIdToSplit=(e,t)=>{const r=this.removeWinId(e,t.justId);return this.insertWinIdToSplit(r,t)};getBranch=(e,t,r)=>{if(e===null)return null;if(e.type==="stack")return $e.includes(e.tabs,t)?r:null;{const o=this.getBranch(e.first,t,[...r,"first"]);if(o!=null)return o;const s=this.getBranch(e.second,t,[...r,"second"]);return s??null}};getBranchByWinId=(e,t)=>this.getBranch(e,t,[]);getNodeInfoByNodeName=(e,t,r)=>{if(e===null)return null;if(e.name==t)return{node:e,branch:[...r]};if(e.type!="stack"){const o=this.getNodeInfoByNodeName(e.first,t,[...r,"first"]);if(o!=null)return o;const s=this.getNodeInfoByNodeName(e.second,t,[...r,"second"]);if(s!=null)return s}return null};getTabNodeInfoByNodeName=(e,t,r)=>{if(e===null)return null;const o=this.getNodeInfoByNodeName(e,t,r);if(o==null)return null;if(o.node.type==="stack")return o;{const s=this.getTabNodeInfo(o.node,[]);if(s!=null)return{node:s.node,branch:[...o.branch,...s.branch]}}return null};getNodeByWinId=(e,t)=>{if(e===null)return null;if(e.type==="stack")return $e.includes(e.tabs,t)?e:null;{const r=this.getNodeByWinId(e.first,t);if(r!=null)return r;const o=this.getNodeByWinId(e.second,t);return o??null}};getTabBranch=(e,t)=>{if(e===null)return null;if(e.type==="stack")return t;{let r;e.type==="split-pixels"?r=e.primary==="first"?"second":"first":r=e.direction==="row"?"second":"first";const o=this.getTabBranch(e[r],[...t,r]);if(o!=null)return o}return null};getTabNodeInfo=(e,t)=>{if(e===null)return null;if(e.type==="stack")return{node:e,branch:t};{let r;e.type==="split-pixels"?r=e.primary==="first"?"second":"first":r=e.direction==="row"?"second":"first";const o=this.getTabNodeInfo(e[r],[...t,r]);if(o!=null)return o}return null};addTabWin=(e,t,r,o)=>{if(e===null)return null;const s=this.getNodeByBranch(e,t);if(s.type!=="stack")return e;const c=o<0?s.tabs.length:xi.clamp(o,0,s.tabs.length);return this.updateNodeOfBranch(e,t,{$merge:{tabs:[...s.tabs.slice(0,c),r,...s.tabs.slice(c)],active:r}})};queryWinIdsByViewId=(e,t,r)=>{if(e===null)return r;if(e.type==="stack")return[...r,...e.tabs.filter(o=>o.viewId===t)];{const o=this.queryWinIdsByViewId(e.first,t,r);return this.queryWinIdsByViewId(e.second,t,[...r,...o])}};queryDupWinIdsByWinId=(e,t,r)=>{if(e===null)return r;if(e.type==="stack"){const o=$e.withoutDup(t),s=e.tabs.filter(c=>{const f=$e.withoutDup(c);return $e.isEquals(o,f)});return[...r,...s]}else{const o=this.queryDupWinIdsByWinId(e.first,t,r);return this.queryDupWinIdsByWinId(e.second,t,[...r,...o])}};queryWinIdsByStack=(e,t)=>{if(e===null)return[];const r=this.getNodeByBranch(e,t);return r.type!=="stack"?[]:r.tabs};getNodeByBranch=(e,t)=>t.reduce((r,o)=>r?.[o],e);updateNodeOfBranch=(e,t,r)=>{const o=this.buildSpecFromUpdateSpec(t,r);return this.updateNode(e,o)};updateNodeOfWinId=(e,t,r)=>{const o=this.getBranchByWinId(e,t);if(o==null)return e;const s=this.buildSpecFromUpdateSpec(o,r);return this.updateNode(e,s)};hasWinId=(e,t)=>this.getNodeByWinId(e,t)!=null;updateNode=(e,t)=>e==null?null:u0(e,t);buildSpecFromUpdateSpec=(e,t)=>e.length>0?xi.set({},e,t):t;getNodeAtBranch=(e,t)=>t.length>0?xi.get(e,t,null):e;getBranchRightTop=e=>{if(e==null)return[];let t=e;const r=[];for(;t.type!=="stack";)t.direction==="row"?(r.push("second"),t=t.second):t.direction==="column"&&(r.push("first"),t=t.first);return r};updateSplitSize=(e,t,r)=>{const o=this.buildSpecFromUpdateSpec(t,{$merge:{size:r}});return this.updateNode(e,o)}},Fe.JustLayoutService=f0([gd()],Fe.JustLayoutService);var l0={0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(e,t){return"Cannot apply '"+e+"' to '"+t.toString()+"': Field not found."},5:"'keys()' can only be used on observable objects, arrays, sets and maps",6:"'values()' can only be used on observable objects, arrays, sets and maps",7:"'entries()' can only be used on observable objects, arrays and maps",8:"'set()' can only be used on observable objects, arrays and maps",9:"'remove()' can only be used on observable objects, arrays and maps",10:"'has()' can only be used on observable objects, arrays and maps",11:"'get()' can only be used on observable objects, arrays and maps",12:"Invalid annotation",13:"Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",14:"Intercept handlers should return nothing or a change object",15:"Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",16:"Modification exception: the internal structure of an observable array was changed.",17:function(e,t){return"[mobx.array] Index out of bounds, "+e+" is larger than "+t},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(e){return"Cannot initialize from classes that inherit from Map: "+e.constructor.name},20:function(e){return"Cannot initialize map from "+e},21:function(e){return"Cannot convert to map from '"+e+"'"},22:"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js",23:"It is not possible to get index atoms from arrays",24:function(e){return"Cannot obtain administration from "+e},25:function(e,t){return"the entry '"+e+"' does not exist in the observable map '"+t+"'"},26:"please specify a property",27:function(e,t){return"no observable property '"+e.toString()+"' found on the observable object '"+t+"'"},28:function(e){return"Cannot obtain atom from "+e},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(e,t){return"Cycle detected in computation "+e+": "+t},33:function(e){return"The setter of computed value '"+e+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(e){return"[ComputedValue '"+e+"'] It is not possible to assign a new value to a computed value."},35:"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",36:"isolateGlobalState should be called before MobX is running any reactions",37:function(e){return"[mobx] `observableArray."+e+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+e+"()` instead"},38:"'ownKeys()' can only be used on observable objects",39:"'defineProperty()' can only be used on observable objects"},d0=process.env.NODE_ENV!=="production"?l0:{};function ie(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var o=typeof n=="string"?n:d0[n];throw typeof o=="function"&&(o=o.apply(null,t)),new Error("[MobX] "+o)}throw new Error(typeof n=="number"?"[MobX] minified error nr: "+n+(t.length?" "+t.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+n)}var h0={};function xa(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:h0}var nh=Object.assign,Na=Object.getOwnPropertyDescriptor,Qn=Object.defineProperty,Eo=Object.prototype,Da=[];Object.freeze(Da);var rh={};Object.freeze(rh);var p0=typeof Proxy<"u",v0=Object.toString();function ih(){p0||ie(process.env.NODE_ENV!=="production"?"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`":"Proxy not available")}function Io(n){process.env.NODE_ENV!=="production"&&H.verifyProxies&&ie("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+n)}function Bn(){return++H.mobxGuid}function ju(n){var e=!1;return function(){if(!e)return e=!0,n.apply(this,arguments)}}var Ni=function(){};function gt(n){return typeof n=="function"}function oi(n){var e=typeof n;switch(e){case"string":case"symbol":case"number":return!0}return!1}function Ca(n){return n!==null&&typeof n=="object"}function Jt(n){if(!Ca(n))return!1;var e=Object.getPrototypeOf(n);if(e==null)return!0;var t=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t.toString()===v0}function oh(n){var e=n?.constructor;return e?e.name==="GeneratorFunction"||e.displayName==="GeneratorFunction":!1}function Ao(n,e,t){Qn(n,e,{enumerable:!1,writable:!0,configurable:!0,value:t})}function ah(n,e,t){Qn(n,e,{enumerable:!1,writable:!1,configurable:!0,value:t})}function kr(n,e){var t="isMobX"+n;return e.prototype[t]=!0,function(r){return Ca(r)&&r[t]===!0}}function Di(n){return n!=null&&Object.prototype.toString.call(n)==="[object Map]"}function g0(n){var e=Object.getPrototypeOf(n),t=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t);return r===null}function cr(n){return n!=null&&Object.prototype.toString.call(n)==="[object Set]"}var sh=typeof Object.getOwnPropertySymbols<"u";function m0(n){var e=Object.keys(n);if(!sh)return e;var t=Object.getOwnPropertySymbols(n);return t.length?[].concat(e,t.filter(function(r){return Eo.propertyIsEnumerable.call(n,r)})):e}var Ci=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:sh?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames;function Fu(n){return typeof n=="string"?n:typeof n=="symbol"?n.toString():new String(n).toString()}function uh(n){return n===null?null:typeof n=="object"?""+n:n}function vn(n,e){return Eo.hasOwnProperty.call(n,e)}var b0=Object.getOwnPropertyDescriptors||function(e){var t={};return Ci(e).forEach(function(r){t[r]=Na(e,r)}),t};function Kt(n,e){return!!(n&e)}function Xt(n,e,t){return t?n|=e:n&=~e,n}function ch(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function y0(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,w0(r.key),r)}}function Pi(n,e,t){return e&&y0(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function Mi(n,e){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=S0(n))||e){t&&(n=t);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
68
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fr(){return fr=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},fr.apply(null,arguments)}function fh(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,$u(n,e)}function $u(n,e){return $u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},$u(n,e)}function _0(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function w0(n){var e=_0(n,"string");return typeof e=="symbol"?e:e+""}function S0(n,e){if(n){if(typeof n=="string")return ch(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ch(n,e):void 0}}var Ft=Symbol("mobx-stored-annotations");function er(n){function e(t,r){if(xo(r))return n.decorate_20223_(t,r);To(t,r,n)}return Object.assign(e,n)}function To(n,e,t){if(vn(n,Ft)||Ao(n,Ft,fr({},n[Ft])),process.env.NODE_ENV!=="production"&&La(t)&&!vn(n[Ft],e)){var r=n.constructor.name+".prototype."+e.toString();ie("'"+r+"' is decorated with 'override', but no such decorated member was found on prototype.")}O0(n,t,e),La(t)||(n[Ft][e]=t)}function O0(n,e,t){if(process.env.NODE_ENV!=="production"&&!La(e)&&vn(n[Ft],t)){var r=n.constructor.name+".prototype."+t.toString(),o=n[Ft][t].annotationType_,s=e.annotationType_;ie("Cannot apply '@"+s+"' to '"+r+"':"+(`
69
+ The field is already decorated with '@`+o+"'.")+`
70
+ Re-decorating fields is not allowed.
71
+ Use '@override' decorator for methods overridden by subclass.`)}}function E0(n){return vn(n,Ft)||Ao(n,Ft,fr({},n[Ft])),n[Ft]}function xo(n){return typeof n=="object"&&typeof n.kind=="string"}function Pa(n,e){process.env.NODE_ENV!=="production"&&!e.includes(n.kind)&&ie("The decorator applied to '"+String(n.name)+"' cannot be used on a "+n.kind+" element")}var be=Symbol("mobx administration"),Br=(function(){function n(t){t===void 0&&(t=process.env.NODE_ENV!=="production"?"Atom@"+Bn():"Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=Ve.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=t}var e=n.prototype;return e.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},e.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},e.reportObserved=function(){return Nh(this)},e.reportChanged=function(){bn(),Dh(this),yn()},e.toString=function(){return this.name_},Pi(n,[{key:"isBeingObserved",get:function(){return Kt(this.flags_,n.isBeingObservedMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return Kt(this.flags_,n.isPendingUnobservationMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return Kt(this.flags_,n.diffValueMask_)?1:0},set:function(r){this.flags_=Xt(this.flags_,n.diffValueMask_,r===1)}}])})();Br.isBeingObservedMask_=1,Br.isPendingUnobservationMask_=2,Br.diffValueMask_=4;var Vu=kr("Atom",Br);function lh(n,e,t){e===void 0&&(e=Ni),t===void 0&&(t=Ni);var r=new Br(n);return e!==Ni&&Bw(r,e),t!==Ni&&Bh(r,t),r}function I0(n,e){return ap(n,e)}function A0(n,e){return Object.is?Object.is(n,e):n===e?n!==0||1/n===1/e:n!==n&&e!==e}var Ma={structural:I0,default:A0};function ai(n,e,t){return ki(n)?n:Array.isArray(n)?It.array(n,{name:t}):Jt(n)?It.object(n,void 0,{name:t}):Di(n)?It.map(n,{name:t}):cr(n)?It.set(n,{name:t}):typeof n=="function"&&!fi(n)&&!Mo(n)?oh(n)?Li(n):Po(t,n):n}function T0(n,e,t){if(n==null||hi(n)||ko(n)||pr(n)||Wn(n))return n;if(Array.isArray(n))return It.array(n,{name:t,deep:!1});if(Jt(n))return It.object(n,void 0,{name:t,deep:!1});if(Di(n))return It.map(n,{name:t,deep:!1});if(cr(n))return It.set(n,{name:t,deep:!1});process.env.NODE_ENV!=="production"&&ie("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets")}function Ra(n){return n}function x0(n,e){return process.env.NODE_ENV!=="production"&&ki(n)&&ie("observable.struct should not be used with observable values"),ap(n,e)?e:n}var N0="override";function La(n){return n.annotationType_===N0}function No(n,e){return{annotationType_:n,options_:e,make_:D0,extend_:C0,decorate_20223_:P0}}function D0(n,e,t,r){var o;if((o=this.options_)!=null&&o.bound)return this.extend_(n,e,t,!1)===null?0:1;if(r===n.target_)return this.extend_(n,e,t,!1)===null?0:2;if(fi(t.value))return 1;var s=dh(n,this,e,t,!1);return Qn(r,e,s),2}function C0(n,e,t,r){var o=dh(n,this,e,t);return n.defineProperty_(e,o,r)}function P0(n,e){process.env.NODE_ENV!=="production"&&Pa(e,["method","field"]);var t=e.kind,r=e.name,o=e.addInitializer,s=this,c=function(p){var v,b,w,y;return si((v=(b=s.options_)==null?void 0:b.name)!=null?v:r.toString(),p,(w=(y=s.options_)==null?void 0:y.autoAction)!=null?w:!1)};if(t=="field")return function(d){var p,v=d;return fi(v)||(v=c(v)),(p=s.options_)!=null&&p.bound&&(v=v.bind(this),v.isMobxAction=!0),v};if(t=="method"){var f;return fi(n)||(n=c(n)),(f=this.options_)!=null&&f.bound&&o(function(){var d=this,p=d[r].bind(d);p.isMobxAction=!0,d[r]=p}),n}ie("Cannot apply '"+s.annotationType_+"' to '"+String(r)+"' (kind: "+t+"):"+(`
72
+ '`+s.annotationType_+"' can only be used on properties with a function value."))}function M0(n,e,t,r){var o=e.annotationType_,s=r.value;process.env.NODE_ENV!=="production"&&!gt(s)&&ie("Cannot apply '"+o+"' to '"+n.name_+"."+t.toString()+"':"+(`
73
+ '`+o+"' can only be used on properties with a function value."))}function dh(n,e,t,r,o){var s,c,f,d,p,v,b;o===void 0&&(o=H.safeDescriptors),M0(n,e,t,r);var w=r.value;if((s=e.options_)!=null&&s.bound){var y;w=w.bind((y=n.proxy_)!=null?y:n.target_)}return{value:si((c=(f=e.options_)==null?void 0:f.name)!=null?c:t.toString(),w,(d=(p=e.options_)==null?void 0:p.autoAction)!=null?d:!1,(v=e.options_)!=null&&v.bound?(b=n.proxy_)!=null?b:n.target_:void 0),configurable:o?n.isPlainObject_:!0,enumerable:!1,writable:!o}}function hh(n,e){return{annotationType_:n,options_:e,make_:R0,extend_:L0,decorate_20223_:k0}}function R0(n,e,t,r){var o;if(r===n.target_)return this.extend_(n,e,t,!1)===null?0:2;if((o=this.options_)!=null&&o.bound&&(!vn(n.target_,e)||!Mo(n.target_[e]))&&this.extend_(n,e,t,!1)===null)return 0;if(Mo(t.value))return 1;var s=ph(n,this,e,t,!1,!1);return Qn(r,e,s),2}function L0(n,e,t,r){var o,s=ph(n,this,e,t,(o=this.options_)==null?void 0:o.bound);return n.defineProperty_(e,s,r)}function k0(n,e){var t;process.env.NODE_ENV!=="production"&&Pa(e,["method"]);var r=e.name,o=e.addInitializer;return Mo(n)||(n=Li(n)),(t=this.options_)!=null&&t.bound&&o(function(){var s=this,c=s[r].bind(s);c.isMobXFlow=!0,s[r]=c}),n}function B0(n,e,t,r){var o=e.annotationType_,s=r.value;process.env.NODE_ENV!=="production"&&!gt(s)&&ie("Cannot apply '"+o+"' to '"+n.name_+"."+t.toString()+"':"+(`
74
+ '`+o+"' can only be used on properties with a generator function value."))}function ph(n,e,t,r,o,s){s===void 0&&(s=H.safeDescriptors),B0(n,e,t,r);var c=r.value;if(Mo(c)||(c=Li(c)),o){var f;c=c.bind((f=n.proxy_)!=null?f:n.target_),c.isMobXFlow=!0}return{value:c,configurable:s?n.isPlainObject_:!0,enumerable:!1,writable:!s}}function Wu(n,e){return{annotationType_:n,options_:e,make_:j0,extend_:F0,decorate_20223_:$0}}function j0(n,e,t){return this.extend_(n,e,t,!1)===null?0:1}function F0(n,e,t,r){return V0(n,this,e,t),n.defineComputedProperty_(e,fr({},this.options_,{get:t.get,set:t.set}),r)}function $0(n,e){process.env.NODE_ENV!=="production"&&Pa(e,["getter"]);var t=this,r=e.name,o=e.addInitializer;return o(function(){var s=di(this)[be],c=fr({},t.options_,{get:n,context:this});c.name||(c.name=process.env.NODE_ENV!=="production"?s.name_+"."+r.toString():"ObservableObject."+r.toString()),s.values_.set(r,new gn(c))}),function(){return this[be].getObservablePropValue_(r)}}function V0(n,e,t,r){var o=e.annotationType_,s=r.get;process.env.NODE_ENV!=="production"&&!s&&ie("Cannot apply '"+o+"' to '"+n.name_+"."+t.toString()+"':"+(`
75
+ '`+o+"' can only be used on getter(+setter) properties."))}function ka(n,e){return{annotationType_:n,options_:e,make_:W0,extend_:U0,decorate_20223_:z0}}function W0(n,e,t){return this.extend_(n,e,t,!1)===null?0:1}function U0(n,e,t,r){var o,s;return H0(n,this,e,t),n.defineObservableProperty_(e,t.value,(o=(s=this.options_)==null?void 0:s.enhancer)!=null?o:ai,r)}function z0(n,e){if(process.env.NODE_ENV!=="production"){if(e.kind==="field")throw ie("Please use `@observable accessor "+String(e.name)+"` instead of `@observable "+String(e.name)+"`");Pa(e,["accessor"])}var t=this,r=e.kind,o=e.name,s=new WeakSet;function c(f,d){var p,v,b=di(f)[be],w=new jr(d,(p=(v=t.options_)==null?void 0:v.enhancer)!=null?p:ai,process.env.NODE_ENV!=="production"?b.name_+"."+o.toString():"ObservableObject."+o.toString(),!1);b.values_.set(o,w),s.add(f)}if(r=="accessor")return{get:function(){return s.has(this)||c(this,n.get.call(this)),this[be].getObservablePropValue_(o)},set:function(d){return s.has(this)||c(this,d),this[be].setObservablePropValue_(o,d)},init:function(d){return s.has(this)||c(this,d),d}}}function H0(n,e,t,r){var o=e.annotationType_;process.env.NODE_ENV!=="production"&&!("value"in r)&&ie("Cannot apply '"+o+"' to '"+n.name_+"."+t.toString()+"':"+(`
76
+ '`+o+"' cannot be used on getter/setter properties"))}var q0="true",G0=vh();function vh(n){return{annotationType_:q0,options_:n,make_:Y0,extend_:J0,decorate_20223_:K0}}function Y0(n,e,t,r){var o,s;if(t.get)return Fa.make_(n,e,t,r);if(t.set){var c=fi(t.set)?t.set:si(e.toString(),t.set);return r===n.target_?n.defineProperty_(e,{configurable:H.safeDescriptors?n.isPlainObject_:!0,set:c})===null?0:2:(Qn(r,e,{configurable:!0,set:c}),2)}if(r!==n.target_&&typeof t.value=="function"){var f;if(oh(t.value)){var d,p=(d=this.options_)!=null&&d.autoBind?Li.bound:Li;return p.make_(n,e,t,r)}var v=(f=this.options_)!=null&&f.autoBind?Po.bound:Po;return v.make_(n,e,t,r)}var b=((o=this.options_)==null?void 0:o.deep)===!1?It.ref:It;if(typeof t.value=="function"&&(s=this.options_)!=null&&s.autoBind){var w;t.value=t.value.bind((w=n.proxy_)!=null?w:n.target_)}return b.make_(n,e,t,r)}function J0(n,e,t,r){var o,s;if(t.get)return Fa.extend_(n,e,t,r);if(t.set)return n.defineProperty_(e,{configurable:H.safeDescriptors?n.isPlainObject_:!0,set:si(e.toString(),t.set)},r);if(typeof t.value=="function"&&(o=this.options_)!=null&&o.autoBind){var c;t.value=t.value.bind((c=n.proxy_)!=null?c:n.target_)}var f=((s=this.options_)==null?void 0:s.deep)===!1?It.ref:It;return f.extend_(n,e,t,r)}function K0(n,e){ie("'"+this.annotationType_+"' cannot be used as a decorator")}var X0="observable",Z0="observable.ref",Q0="observable.shallow",ew="observable.struct",gh={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(gh);function Ba(n){return n||gh}var Uu=ka(X0),tw=ka(Z0,{enhancer:Ra}),nw=ka(Q0,{enhancer:T0}),rw=ka(ew,{enhancer:x0}),mh=er(Uu);function ja(n){return n.deep===!0?ai:n.deep===!1?Ra:ow(n.defaultDecorator)}function iw(n){var e;return n?(e=n.defaultDecorator)!=null?e:vh(n):void 0}function ow(n){var e,t;return n&&(e=(t=n.options_)==null?void 0:t.enhancer)!=null?e:ai}function bh(n,e,t){if(xo(e))return Uu.decorate_20223_(n,e);if(oi(e)){To(n,e,Uu);return}return ki(n)?n:Jt(n)?It.object(n,e,t):Array.isArray(n)?It.array(n,e):Di(n)?It.map(n,e):cr(n)?It.set(n,e):typeof n=="object"&&n!==null?n:It.box(n,e)}nh(bh,mh);var aw={box:function(e,t){var r=Ba(t);return new jr(e,ja(r),r.name,!0,r.equals)},array:function(e,t){var r=Ba(t);return(H.useProxies===!1||r.proxy===!1?lS:tS)(e,ja(r),r.name)},map:function(e,t){var r=Ba(t);return new qh(e,ja(r),r.name)},set:function(e,t){var r=Ba(t);return new Yh(e,ja(r),r.name)},object:function(e,t,r){return $r(function(){return Fh(H.useProxies===!1||r?.proxy===!1?di({},r):Kw({},r),e,t)})},ref:er(tw),shallow:er(nw),deep:mh,struct:er(rw)},It=nh(bh,aw),yh="computed",sw="computed.struct",zu=Wu(yh),uw=Wu(sw,{equals:Ma.structural}),Fa=function(e,t){if(xo(t))return zu.decorate_20223_(e,t);if(oi(t))return To(e,t,zu);if(Jt(e))return er(Wu(yh,e));process.env.NODE_ENV!=="production"&&(gt(e)||ie("First argument to `computed` should be an expression."),gt(t)&&ie("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));var r=Jt(t)?t:{};return r.get=e,r.name||(r.name=e.name||""),new gn(r)};Object.assign(Fa,zu),Fa.struct=er(uw);var _h,wh,$a=0,cw=1,fw=(_h=(wh=Na(function(){},"name"))==null?void 0:wh.configurable)!=null?_h:!1,Sh={value:"action",configurable:!0,writable:!1,enumerable:!1};function si(n,e,t,r){t===void 0&&(t=!1),process.env.NODE_ENV!=="production"&&(gt(e)||ie("`action` can only be invoked on functions"),(typeof n!="string"||!n)&&ie("actions should have valid names, got: '"+n+"'"));function o(){return lw(n,t,e,r||this,arguments)}return o.isMobxAction=!0,o.toString=function(){return e.toString()},fw&&(Sh.value=n,Qn(o,"name",Sh)),o}function lw(n,e,t,r,o){var s=dw(n,e,r,o);try{return t.apply(r,o)}catch(c){throw s.error_=c,c}finally{hw(s)}}function dw(n,e,t,r){var o=process.env.NODE_ENV!=="production"&&At()&&!!n,s=0;if(process.env.NODE_ENV!=="production"&&o){s=Date.now();var c=r?Array.from(r):Da;Zt({type:Xu,name:n,object:t,arguments:c})}var f=H.trackingDerivation,d=!e||!f;bn();var p=H.allowStateChanges;d&&(ui(),p=Hu(!0));var v=Ju(!0),b={runAsAction_:d,prevDerivation_:f,prevAllowStateChanges_:p,prevAllowStateReads_:v,notifySpy_:o,startTime_:s,actionId_:cw++,parentActionId_:$a};return $a=b.actionId_,b}function hw(n){$a!==n.actionId_&&ie(30),$a=n.parentActionId_,n.error_!==void 0&&(H.suppressReactionErrors=!0),qu(n.prevAllowStateChanges_),Co(n.prevAllowStateReads_),yn(),n.runAsAction_&&lr(n.prevDerivation_),process.env.NODE_ENV!=="production"&&n.notifySpy_&&Qt({time:Date.now()-n.startTime_}),H.suppressReactionErrors=!1}function Hu(n){var e=H.allowStateChanges;return H.allowStateChanges=n,e}function qu(n){H.allowStateChanges=n}var pw="create",jr=(function(n){function e(r,o,s,c,f){var d;if(s===void 0&&(s=process.env.NODE_ENV!=="production"?"ObservableValue@"+Bn():"ObservableValue"),c===void 0&&(c=!0),f===void 0&&(f=Ma.default),d=n.call(this,s)||this,d.enhancer=void 0,d.name_=void 0,d.equals=void 0,d.hasUnreportedChange_=!1,d.interceptors_=void 0,d.changeListeners_=void 0,d.value_=void 0,d.dehancer=void 0,d.enhancer=o,d.name_=s,d.equals=f,d.value_=o(r,void 0,s),process.env.NODE_ENV!=="production"&&c&&At()){var p;ci({type:pw,object:d,observableKind:"value",debugObjectName:d.name_,newValue:""+((p=d.value_)==null?void 0:p.toString())})}return d}fh(e,n);var t=e.prototype;return t.dehanceValue=function(o){return this.dehancer!==void 0?this.dehancer(o):o},t.set=function(o){var s=this.value_;if(o=this.prepareNewValue_(o),o!==H.UNCHANGED){var c=At();process.env.NODE_ENV!=="production"&&c&&Zt({type:$n,object:this,observableKind:"value",debugObjectName:this.name_,newValue:o,oldValue:s}),this.setNewValue_(o),process.env.NODE_ENV!=="production"&&c&&Qt()}},t.prepareNewValue_=function(o){if(tr(this),_n(this)){var s=wn(this,{object:this,type:$n,newValue:o});if(!s)return H.UNCHANGED;o=s.newValue}return o=this.enhancer(o,this.value_,this.name_),this.equals(this.value_,o)?H.UNCHANGED:o},t.setNewValue_=function(o){var s=this.value_;this.value_=o,this.reportChanged(),jn(this)&&Fn(this,{type:$n,object:this,newValue:o,oldValue:s})},t.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},t.intercept_=function(o){return Ro(this,o)},t.observe_=function(o,s){return s&&o({observableKind:"value",debugObjectName:this.name_,object:this,type:$n,newValue:this.value_,oldValue:void 0}),Lo(this,o)},t.raw=function(){return this.value_},t.toJSON=function(){return this.get()},t.toString=function(){return this.name_+"["+this.value_+"]"},t.valueOf=function(){return uh(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},e})(Br),vw=kr("ObservableValue",jr),gn=(function(){function n(t){this.dependenciesState_=Ve.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ve.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Va(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=mn.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,t.get||ie(31),this.derivation=t.get,this.name_=t.name||(process.env.NODE_ENV!=="production"?"ComputedValue@"+Bn():"ComputedValue"),t.set&&(this.setter_=si(process.env.NODE_ENV!=="production"?this.name_+"-setter":"ComputedValue-setter",t.set)),this.equals_=t.equals||(t.compareStructural||t.struct?Ma.structural:Ma.default),this.scope_=t.context,this.requiresReaction_=t.requiresReaction,this.keepAlive_=!!t.keepAlive}var e=n.prototype;return e.onBecomeStale_=function(){Sw(this)},e.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},e.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},e.get=function(){if(this.isComputing&&ie(32,this.name_,this.derivation),H.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Gu(this)&&(this.warnAboutUntrackedRead_(),bn(),this.value_=this.computeValue_(!1),yn());else if(Nh(this),Gu(this)){var r=H.trackingContext;this.keepAlive_&&!r&&(H.trackingContext=this),this.trackAndCompute()&&ww(this),H.trackingContext=r}var o=this.value_;if(Wa(o))throw o.cause;return o},e.set=function(r){if(this.setter_){this.isRunningSetter&&ie(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,r)}finally{this.isRunningSetter=!1}}else ie(34,this.name_)},e.trackAndCompute=function(){var r=this.value_,o=this.dependenciesState_===Ve.NOT_TRACKING_,s=this.computeValue_(!0),c=o||Wa(r)||Wa(s)||!this.equals_(r,s);return c&&(this.value_=s,process.env.NODE_ENV!=="production"&&At()&&ci({observableKind:"computed",debugObjectName:this.name_,object:this.scope_,type:"update",oldValue:r,newValue:s})),c},e.computeValue_=function(r){this.isComputing=!0;var o=Hu(!1),s;if(r)s=Oh(this,this.derivation,this.scope_);else if(H.disableErrorBoundaries===!0)s=this.derivation.call(this.scope_);else try{s=this.derivation.call(this.scope_)}catch(c){s=new Va(c)}return qu(o),this.isComputing=!1,s},e.suspend_=function(){this.keepAlive_||(Yu(this),this.value_=void 0,process.env.NODE_ENV!=="production"&&this.isTracing_!==mn.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' was suspended and it will recompute on the next access."))},e.observe_=function(r,o){var s=this,c=!0,f=void 0;return Pw(function(){var d=s.get();if(!c||o){var p=ui();r({observableKind:"computed",debugObjectName:s.name_,type:$n,object:s,newValue:d,oldValue:f}),lr(p)}c=!1,f=d})},e.warnAboutUntrackedRead_=function(){process.env.NODE_ENV!=="production"&&(this.isTracing_!==mn.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."),(typeof this.requiresReaction_=="boolean"?this.requiresReaction_:H.computedRequiresReaction)&&console.warn("[mobx] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."))},e.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},e.valueOf=function(){return uh(this.get())},e[Symbol.toPrimitive]=function(){return this.valueOf()},Pi(n,[{key:"isComputing",get:function(){return Kt(this.flags_,n.isComputingMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isComputingMask_,r)}},{key:"isRunningSetter",get:function(){return Kt(this.flags_,n.isRunningSetterMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isRunningSetterMask_,r)}},{key:"isBeingObserved",get:function(){return Kt(this.flags_,n.isBeingObservedMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return Kt(this.flags_,n.isPendingUnobservationMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return Kt(this.flags_,n.diffValueMask_)?1:0},set:function(r){this.flags_=Xt(this.flags_,n.diffValueMask_,r===1)}}])})();gn.isComputingMask_=1,gn.isRunningSetterMask_=2,gn.isBeingObservedMask_=4,gn.isPendingUnobservationMask_=8,gn.diffValueMask_=16;var Do=kr("ComputedValue",gn),Ve;(function(n){n[n.NOT_TRACKING_=-1]="NOT_TRACKING_",n[n.UP_TO_DATE_=0]="UP_TO_DATE_",n[n.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",n[n.STALE_=2]="STALE_"})(Ve||(Ve={}));var mn;(function(n){n[n.NONE=0]="NONE",n[n.LOG=1]="LOG",n[n.BREAK=2]="BREAK"})(mn||(mn={}));var Va=function(e){this.cause=void 0,this.cause=e};function Wa(n){return n instanceof Va}function Gu(n){switch(n.dependenciesState_){case Ve.UP_TO_DATE_:return!1;case Ve.NOT_TRACKING_:case Ve.STALE_:return!0;case Ve.POSSIBLY_STALE_:{for(var e=Ju(!0),t=ui(),r=n.observing_,o=r.length,s=0;s<o;s++){var c=r[s];if(Do(c)){if(H.disableErrorBoundaries)c.get();else try{c.get()}catch{return lr(t),Co(e),!0}if(n.dependenciesState_===Ve.STALE_)return lr(t),Co(e),!0}}return Ih(n),lr(t),Co(e),!1}}}function tr(n){if(process.env.NODE_ENV!=="production"){var e=n.observers_.size>0;!H.allowStateChanges&&(e||H.enforceActions==="always")&&console.warn("[MobX] "+(H.enforceActions?"Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ":"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ")+n.name_)}}function gw(n){process.env.NODE_ENV!=="production"&&!H.allowStateReads&&H.observableRequiresReaction&&console.warn("[mobx] Observable '"+n.name_+"' being read outside a reactive context.")}function Oh(n,e,t){var r=Ju(!0);Ih(n),n.newObserving_=new Array(n.runId_===0?100:n.observing_.length),n.unboundDepsCount_=0,n.runId_=++H.runId;var o=H.trackingDerivation;H.trackingDerivation=n,H.inBatch++;var s;if(H.disableErrorBoundaries===!0)s=e.call(t);else try{s=e.call(t)}catch(c){s=new Va(c)}return H.inBatch--,H.trackingDerivation=o,bw(n),mw(n),Co(r),s}function mw(n){process.env.NODE_ENV!=="production"&&n.observing_.length===0&&(typeof n.requiresObservable_=="boolean"?n.requiresObservable_:H.reactionRequiresObservable)&&console.warn("[mobx] Derivation '"+n.name_+"' is created/updated without reading any observable value.")}function bw(n){for(var e=n.observing_,t=n.observing_=n.newObserving_,r=Ve.UP_TO_DATE_,o=0,s=n.unboundDepsCount_,c=0;c<s;c++){var f=t[c];f.diffValue===0&&(f.diffValue=1,o!==c&&(t[o]=f),o++),f.dependenciesState_>r&&(r=f.dependenciesState_)}for(t.length=o,n.newObserving_=null,s=e.length;s--;){var d=e[s];d.diffValue===0&&Th(d,n),d.diffValue=0}for(;o--;){var p=t[o];p.diffValue===1&&(p.diffValue=0,_w(p,n))}r!==Ve.UP_TO_DATE_&&(n.dependenciesState_=r,n.onBecomeStale_())}function Yu(n){var e=n.observing_;n.observing_=[];for(var t=e.length;t--;)Th(e[t],n);n.dependenciesState_=Ve.NOT_TRACKING_}function Eh(n){var e=ui();try{return n()}finally{lr(e)}}function ui(){var n=H.trackingDerivation;return H.trackingDerivation=null,n}function lr(n){H.trackingDerivation=n}function Ju(n){var e=H.allowStateReads;return H.allowStateReads=n,e}function Co(n){H.allowStateReads=n}function Ih(n){if(n.dependenciesState_!==Ve.UP_TO_DATE_){n.dependenciesState_=Ve.UP_TO_DATE_;for(var e=n.observing_,t=e.length;t--;)e[t].lowestObserverState_=Ve.UP_TO_DATE_}}var Ua=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},za=!0,Ah=!1,H=(function(){var n=xa();return n.__mobxInstanceCount>0&&!n.__mobxGlobals&&(za=!1),n.__mobxGlobals&&n.__mobxGlobals.version!==new Ua().version&&(za=!1),za?n.__mobxGlobals?(n.__mobxInstanceCount+=1,n.__mobxGlobals.UNCHANGED||(n.__mobxGlobals.UNCHANGED={}),n.__mobxGlobals):(n.__mobxInstanceCount=1,n.__mobxGlobals=new Ua):(setTimeout(function(){Ah||ie(35)},1),new Ua)})();function yw(){if((H.pendingReactions.length||H.inBatch||H.isRunningReactions)&&ie(36),Ah=!0,za){var n=xa();--n.__mobxInstanceCount===0&&(n.__mobxGlobals=void 0),H=new Ua}}function _w(n,e){n.observers_.add(e),n.lowestObserverState_>e.dependenciesState_&&(n.lowestObserverState_=e.dependenciesState_)}function Th(n,e){n.observers_.delete(e),n.observers_.size===0&&xh(n)}function xh(n){n.isPendingUnobservation===!1&&(n.isPendingUnobservation=!0,H.pendingUnobservations.push(n))}function bn(){H.inBatch++}function yn(){if(--H.inBatch===0){Rh();for(var n=H.pendingUnobservations,e=0;e<n.length;e++){var t=n[e];t.isPendingUnobservation=!1,t.observers_.size===0&&(t.isBeingObserved&&(t.isBeingObserved=!1,t.onBUO()),t instanceof gn&&t.suspend_())}H.pendingUnobservations=[]}}function Nh(n){gw(n);var e=H.trackingDerivation;return e!==null?(e.runId_!==n.lastAccessedBy_&&(n.lastAccessedBy_=e.runId_,e.newObserving_[e.unboundDepsCount_++]=n,!n.isBeingObserved&&H.trackingContext&&(n.isBeingObserved=!0,n.onBO())),n.isBeingObserved):(n.observers_.size===0&&H.inBatch>0&&xh(n),!1)}function Dh(n){n.lowestObserverState_!==Ve.STALE_&&(n.lowestObserverState_=Ve.STALE_,n.observers_.forEach(function(e){e.dependenciesState_===Ve.UP_TO_DATE_&&(process.env.NODE_ENV!=="production"&&e.isTracing_!==mn.NONE&&Ch(e,n),e.onBecomeStale_()),e.dependenciesState_=Ve.STALE_}))}function ww(n){n.lowestObserverState_!==Ve.STALE_&&(n.lowestObserverState_=Ve.STALE_,n.observers_.forEach(function(e){e.dependenciesState_===Ve.POSSIBLY_STALE_?(e.dependenciesState_=Ve.STALE_,process.env.NODE_ENV!=="production"&&e.isTracing_!==mn.NONE&&Ch(e,n)):e.dependenciesState_===Ve.UP_TO_DATE_&&(n.lowestObserverState_=Ve.UP_TO_DATE_)}))}function Sw(n){n.lowestObserverState_===Ve.UP_TO_DATE_&&(n.lowestObserverState_=Ve.POSSIBLY_STALE_,n.observers_.forEach(function(e){e.dependenciesState_===Ve.UP_TO_DATE_&&(e.dependenciesState_=Ve.POSSIBLY_STALE_,e.onBecomeStale_())}))}function Ch(n,e){if(console.log("[mobx.trace] '"+n.name_+"' is invalidated due to a change in: '"+e.name_+"'"),n.isTracing_===mn.BREAK){var t=[];Ph($h(n),t,1),new Function(`debugger;
77
+ /*
78
+ Tracing '`+n.name_+`'
79
+
80
+ You are entering this break point because derivation '`+n.name_+"' is being traced and '"+e.name_+`' is now forcing it to update.
81
+ Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
82
+ The stackframe you are looking for is at least ~6-8 stack-frames up.
83
+
84
+ `+(n instanceof gn?n.derivation.toString().replace(/[*]\//g,"/"):"")+`
85
+
86
+ The dependencies for this derivation are:
87
+
88
+ `+t.join(`
89
+ `)+`
90
+ */
91
+ `)()}}function Ph(n,e,t){if(e.length>=1e3){e.push("(and many more)");return}e.push(""+" ".repeat(t-1)+n.name),n.dependencies&&n.dependencies.forEach(function(r){return Ph(r,e,t+1)})}var dr=(function(){function n(t,r,o,s){t===void 0&&(t=process.env.NODE_ENV!=="production"?"Reaction@"+Bn():"Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Ve.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=mn.NONE,this.name_=t,this.onInvalidate_=r,this.errorHandler_=o,this.requiresObservable_=s}var e=n.prototype;return e.onBecomeStale_=function(){this.schedule_()},e.schedule_=function(){this.isScheduled||(this.isScheduled=!0,H.pendingReactions.push(this),Rh())},e.runReaction_=function(){if(!this.isDisposed){bn(),this.isScheduled=!1;var r=H.trackingContext;if(H.trackingContext=this,Gu(this)){this.isTrackPending=!0;try{this.onInvalidate_(),process.env.NODE_ENV!=="production"&&this.isTrackPending&&At()&&ci({name:this.name_,type:"scheduled-reaction"})}catch(o){this.reportExceptionInDerivation_(o)}}H.trackingContext=r,yn()}},e.track=function(r){if(!this.isDisposed){bn();var o=At(),s;process.env.NODE_ENV!=="production"&&o&&(s=Date.now(),Zt({name:this.name_,type:"reaction"})),this.isRunning=!0;var c=H.trackingContext;H.trackingContext=this;var f=Oh(this,r,void 0);H.trackingContext=c,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Yu(this),Wa(f)&&this.reportExceptionInDerivation_(f.cause),process.env.NODE_ENV!=="production"&&o&&Qt({time:Date.now()-s}),yn()}},e.reportExceptionInDerivation_=function(r){var o=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(H.disableErrorBoundaries)throw r;var s=process.env.NODE_ENV!=="production"?"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'":"[mobx] uncaught error in '"+this+"'";H.suppressReactionErrors?process.env.NODE_ENV!=="production"&&console.warn("[mobx] (error in reaction '"+this.name_+"' suppressed, fix error of causing action below)"):console.error(s,r),process.env.NODE_ENV!=="production"&&At()&&ci({type:"error",name:this.name_,message:s,error:""+r}),H.globalReactionErrorHandlers.forEach(function(c){return c(r,o)})},e.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(bn(),Yu(this),yn()))},e.getDisposer_=function(r){var o=this,s=function c(){o.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",c)};return r==null||r.addEventListener==null||r.addEventListener("abort",s),s[be]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(s[Symbol.dispose]=s),s},e.toString=function(){return"Reaction["+this.name_+"]"},e.trace=function(r){r===void 0&&(r=!1),Gw(this,r)},Pi(n,[{key:"isDisposed",get:function(){return Kt(this.flags_,n.isDisposedMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isDisposedMask_,r)}},{key:"isScheduled",get:function(){return Kt(this.flags_,n.isScheduledMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isScheduledMask_,r)}},{key:"isTrackPending",get:function(){return Kt(this.flags_,n.isTrackPendingMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isTrackPendingMask_,r)}},{key:"isRunning",get:function(){return Kt(this.flags_,n.isRunningMask_)},set:function(r){this.flags_=Xt(this.flags_,n.isRunningMask_,r)}},{key:"diffValue",get:function(){return Kt(this.flags_,n.diffValueMask_)?1:0},set:function(r){this.flags_=Xt(this.flags_,n.diffValueMask_,r===1)}}])})();dr.isDisposedMask_=1,dr.isScheduledMask_=2,dr.isTrackPendingMask_=4,dr.isRunningMask_=8,dr.diffValueMask_=16;var Mh=100,Ku=function(e){return e()};function Rh(){H.inBatch>0||H.isRunningReactions||Ku(Ow)}function Ow(){H.isRunningReactions=!0;for(var n=H.pendingReactions,e=0;n.length>0;){++e===Mh&&(console.error(process.env.NODE_ENV!=="production"?"Reaction doesn't converge to a stable state after "+Mh+" iterations."+(" Probably there is a cycle in the reactive function: "+n[0]):"[mobx] cycle in reaction: "+n[0]),n.splice(0));for(var t=n.splice(0),r=0,o=t.length;r<o;r++)t[r].runReaction_()}H.isRunningReactions=!1}var Ha=kr("Reaction",dr);function Ew(n){var e=Ku;Ku=function(r){return n(function(){return e(r)})}}function At(){return process.env.NODE_ENV!=="production"&&!!H.spyListeners.length}function ci(n){if(process.env.NODE_ENV!=="production"&&H.spyListeners.length)for(var e=H.spyListeners,t=0,r=e.length;t<r;t++)e[t](n)}function Zt(n){if(process.env.NODE_ENV!=="production"){var e=fr({},n,{spyReportStart:!0});ci(e)}}var Iw={type:"report-end",spyReportEnd:!0};function Qt(n){process.env.NODE_ENV!=="production"&&ci(n?fr({},n,{type:"report-end",spyReportEnd:!0}):Iw)}function Aw(n){return process.env.NODE_ENV==="production"?(console.warn("[mobx.spy] Is a no-op in production builds"),function(){}):(H.spyListeners.push(n),ju(function(){H.spyListeners=H.spyListeners.filter(function(e){return e!==n})}))}var Xu="action",Tw="action.bound",Lh="autoAction",xw="autoAction.bound",Nw="<unnamed action>",Zu=No(Xu),Dw=No(Tw,{bound:!0}),Qu=No(Lh,{autoAction:!0}),Cw=No(xw,{autoAction:!0,bound:!0});function kh(n){var e=function(r,o){if(gt(r))return si(r.name||Nw,r,n);if(gt(o))return si(r,o,n);if(xo(o))return(n?Qu:Zu).decorate_20223_(r,o);if(oi(o))return To(r,o,n?Qu:Zu);if(oi(r))return er(No(n?Lh:Xu,{name:r,autoAction:n}));process.env.NODE_ENV!=="production"&&ie("Invalid arguments for `action`")};return e}var Ri=kh(!1);Object.assign(Ri,Zu);var Po=kh(!0);Object.assign(Po,Qu),Ri.bound=er(Dw),Po.bound=er(Cw);function fi(n){return gt(n)&&n.isMobxAction===!0}function Pw(n,e){var t,r,o,s;e===void 0&&(e=rh),process.env.NODE_ENV!=="production"&&(gt(n)||ie("Autorun expects a function as first argument"),fi(n)&&ie("Autorun does not accept actions since actions are untrackable"));var c=(t=(r=e)==null?void 0:r.name)!=null?t:process.env.NODE_ENV!=="production"?n.name||"Autorun@"+Bn():"Autorun",f=!e.scheduler&&!e.delay,d;if(f)d=new dr(c,function(){this.track(b)},e.onError,e.requiresObservable);else{var p=Rw(e),v=!1;d=new dr(c,function(){v||(v=!0,p(function(){v=!1,d.isDisposed||d.track(b)}))},e.onError,e.requiresObservable)}function b(){n(d)}return(o=e)!=null&&(o=o.signal)!=null&&o.aborted||d.schedule_(),d.getDisposer_((s=e)==null?void 0:s.signal)}var Mw=function(e){return e()};function Rw(n){return n.scheduler?n.scheduler:n.delay?function(e){return setTimeout(e,n.delay)}:Mw}var Lw="onBO",kw="onBUO";function Bw(n,e,t){return jh(Lw,n,e,t)}function Bh(n,e,t){return jh(kw,n,e,t)}function jh(n,e,t,r){var o=ji(e),s=gt(r)?r:t,c=n+"L";return o[c]?o[c].add(s):o[c]=new Set([s]),function(){var f=o[c];f&&(f.delete(s),f.size===0&&delete o[c])}}var jw="never",qa="always",Fw="observed";function $w(n){n.isolateGlobalState===!0&&yw();var e=n.useProxies,t=n.enforceActions;if(e!==void 0&&(H.useProxies=e===qa?!0:e===jw?!1:typeof Proxy<"u"),e==="ifavailable"&&(H.verifyProxies=!0),t!==void 0){var r=t===qa?qa:t===Fw;H.enforceActions=r,H.allowStateChanges=!(r===!0||r===qa)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(o){o in n&&(H[o]=!!n[o])}),H.allowStateReads=!H.observableRequiresReaction,process.env.NODE_ENV!=="production"&&H.disableErrorBoundaries===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),n.reactionScheduler&&Ew(n.reactionScheduler)}function Fh(n,e,t,r){process.env.NODE_ENV!=="production"&&(arguments.length>4&&ie("'extendObservable' expected 2-4 arguments"),typeof n!="object"&&ie("'extendObservable' expects an object as first argument"),pr(n)&&ie("'extendObservable' should not be used on maps, use map.merge instead"),Jt(e)||ie("'extendObservable' only accepts plain objects as second argument"),(ki(e)||ki(t))&&ie("Extending an object with another observable (object) is not supported"));var o=b0(e);return $r(function(){var s=di(n,r)[be];Ci(o).forEach(function(c){s.extend_(c,o[c],t&&c in t?t[c]:!0)})}),n}function $h(n,e){return Vh(ji(n,e))}function Vh(n){var e={name:n.name_};return n.observing_&&n.observing_.length>0&&(e.dependencies=Vw(n.observing_).map(Vh)),e}function Vw(n){return Array.from(new Set(n))}var Ww=0;function Wh(){this.message="FLOW_CANCELLED"}Wh.prototype=Object.create(Error.prototype);var ec=hh("flow"),Uw=hh("flow.bound",{bound:!0}),Li=Object.assign(function(e,t){if(xo(t))return ec.decorate_20223_(e,t);if(oi(t))return To(e,t,ec);process.env.NODE_ENV!=="production"&&arguments.length!==1&&ie("Flow expects single argument with generator function");var r=e,o=r.name||"<unnamed flow>",s=function(){var f=this,d=arguments,p=++Ww,v=Ri(o+" - runid: "+p+" - init",r).apply(f,d),b,w=void 0,y=new Promise(function(O,S){var A=0;b=S;function x(oe){w=void 0;var q;try{q=Ri(o+" - runid: "+p+" - yield "+A++,v.next).call(v,oe)}catch(ye){return S(ye)}G(q)}function k(oe){w=void 0;var q;try{q=Ri(o+" - runid: "+p+" - yield "+A++,v.throw).call(v,oe)}catch(ye){return S(ye)}G(q)}function G(oe){if(gt(oe?.then)){oe.then(G,S);return}return oe.done?O(oe.value):(w=Promise.resolve(oe.value),w.then(x,k))}x(void 0)});return y.cancel=Ri(o+" - runid: "+p+" - cancel",function(){try{w&&Uh(w);var O=v.return(void 0),S=Promise.resolve(O.value);S.then(Ni,Ni),Uh(S),b(new Wh)}catch(A){b(A)}}),y};return s.isMobXFlow=!0,s},ec);Li.bound=er(Uw);function Uh(n){gt(n.cancel)&&n.cancel()}function Mo(n){return n?.isMobXFlow===!0}function zw(n,e){return n?hi(n)||!!n[be]||Vu(n)||Ha(n)||Do(n):!1}function ki(n){return process.env.NODE_ENV!=="production"&&arguments.length!==1&&ie("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),zw(n)}function Hw(n){if(hi(n))return n[be].ownKeys_();ie(38)}function Ga(n,e,t){return n.set(e,t),t}function Bi(n,e){if(n==null||typeof n!="object"||n instanceof Date||!ki(n))return n;if(vw(n)||Do(n))return Bi(n.get(),e);if(e.has(n))return e.get(n);if(ko(n)){var t=Ga(e,n,new Array(n.length));return n.forEach(function(c,f){t[f]=Bi(c,e)}),t}if(Wn(n)){var r=Ga(e,n,new Set);return n.forEach(function(c){r.add(Bi(c,e))}),r}if(pr(n)){var o=Ga(e,n,new Map);return n.forEach(function(c,f){o.set(f,Bi(c,e))}),o}else{var s=Ga(e,n,{});return Hw(n).forEach(function(c){Eo.propertyIsEnumerable.call(n,c)&&(s[c]=Bi(n[c],e))}),s}}function qw(n,e){return process.env.NODE_ENV!=="production"&&e&&ie("toJS no longer supports options"),Bi(n,new Map)}function Gw(){if(process.env.NODE_ENV!=="production"){for(var n=!1,e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[t.length-1]=="boolean"&&(n=t.pop());var o=Yw(t);if(!o)return ie("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===mn.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled"),o.isTracing_=n?mn.BREAK:mn.LOG}}function Yw(n){switch(n.length){case 0:return H.trackingDerivation;case 1:return ji(n[0]);case 2:return ji(n[0],n[1])}}function hr(n,e){e===void 0&&(e=void 0),bn();try{return n.apply(e)}finally{yn()}}function li(n){return n[be]}var Jw={has:function(e,t){return process.env.NODE_ENV!=="production"&&H.trackingDerivation&&Io("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),li(e).has_(t)},get:function(e,t){return li(e).get_(t)},set:function(e,t,r){var o;return oi(t)?(process.env.NODE_ENV!=="production"&&!li(e).values_.has(t)&&Io("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),(o=li(e).set_(t,r,!0))!=null?o:!0):!1},deleteProperty:function(e,t){var r;return process.env.NODE_ENV!=="production"&&Io("delete properties from an observable object. Use 'remove' from 'mobx' instead."),oi(t)?(r=li(e).delete_(t,!0))!=null?r:!0:!1},defineProperty:function(e,t,r){var o;return process.env.NODE_ENV!=="production"&&Io("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),(o=li(e).defineProperty_(t,r))!=null?o:!0},ownKeys:function(e){return process.env.NODE_ENV!=="production"&&H.trackingDerivation&&Io("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."),li(e).ownKeys_()},preventExtensions:function(e){ie(13)}};function Kw(n,e){var t,r;return ih(),n=di(n,e),(r=(t=n[be]).proxy_)!=null?r:t.proxy_=new Proxy(n,Jw)}function _n(n){return n.interceptors_!==void 0&&n.interceptors_.length>0}function Ro(n,e){var t=n.interceptors_||(n.interceptors_=[]);return t.push(e),ju(function(){var r=t.indexOf(e);r!==-1&&t.splice(r,1)})}function wn(n,e){var t=ui();try{for(var r=[].concat(n.interceptors_||[]),o=0,s=r.length;o<s&&(e=r[o](e),e&&!e.type&&ie(14),!!e);o++);return e}finally{lr(t)}}function jn(n){return n.changeListeners_!==void 0&&n.changeListeners_.length>0}function Lo(n,e){var t=n.changeListeners_||(n.changeListeners_=[]);return t.push(e),ju(function(){var r=t.indexOf(e);r!==-1&&t.splice(r,1)})}function Fn(n,e){var t=ui(),r=n.changeListeners_;if(r){r=r.slice();for(var o=0,s=r.length;o<s;o++)r[o](e);lr(t)}}function Xw(n,e,t){return $r(function(){var r,o=di(n,t)[be];process.env.NODE_ENV!=="production"&&e&&n[Ft]&&ie("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."),(r=e)!=null||(e=E0(n)),Ci(e).forEach(function(s){return o.make_(s,e[s])})}),n}var tc=Symbol("mobx-keys");function Zw(n,e,t){return process.env.NODE_ENV!=="production"&&(!Jt(n)&&!Jt(Object.getPrototypeOf(n))&&ie("'makeAutoObservable' can only be used for classes that don't have a superclass"),hi(n)&&ie("makeAutoObservable can only be used on objects not already made observable")),Jt(n)?Fh(n,n,e,t):($r(function(){var r=di(n,t)[be];if(!n[tc]){var o=Object.getPrototypeOf(n),s=new Set([].concat(Ci(n),Ci(o)));s.delete("constructor"),s.delete(be),Ao(o,tc,s)}n[tc].forEach(function(c){return r.make_(c,e&&c in e?e[c]:!0)})}),n)}var zh="splice",$n="update",Qw=1e4,eS={get:function(e,t){var r=e[be];return t===be?r:t==="length"?r.getArrayLength_():typeof t=="string"&&!isNaN(t)?r.get_(parseInt(t)):vn(Ya,t)?Ya[t]:e[t]},set:function(e,t,r){var o=e[be];return t==="length"&&o.setArrayLength_(r),typeof t=="symbol"||isNaN(t)?e[t]=r:o.set_(parseInt(t),r),!0},preventExtensions:function(){ie(15)}},nc=(function(){function n(t,r,o,s){t===void 0&&(t=process.env.NODE_ENV!=="production"?"ObservableArray@"+Bn():"ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=o,this.legacyMode_=s,this.atom_=new Br(t),this.enhancer_=function(c,f){return r(c,f,process.env.NODE_ENV!=="production"?t+"[..]":"ObservableArray[..]")}}var e=n.prototype;return e.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},e.dehanceValues_=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},e.intercept_=function(r){return Ro(this,r)},e.observe_=function(r,o){return o===void 0&&(o=!1),o&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Lo(this,r)},e.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},e.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&ie("Out of range: "+r);var o=this.values_.length;if(r!==o)if(r>o){for(var s=new Array(r-o),c=0;c<r-o;c++)s[c]=void 0;this.spliceWithArray_(o,0,s)}else this.spliceWithArray_(r,o-r)},e.updateArrayLength_=function(r,o){r!==this.lastKnownLength_&&ie(16),this.lastKnownLength_+=o,this.legacyMode_&&o>0&&rp(r+o+1)},e.spliceWithArray_=function(r,o,s){var c=this;tr(this.atom_);var f=this.values_.length;if(r===void 0?r=0:r>f?r=f:r<0&&(r=Math.max(0,f+r)),arguments.length===1?o=f-r:o==null?o=0:o=Math.max(0,Math.min(o,f-r)),s===void 0&&(s=Da),_n(this)){var d=wn(this,{object:this.proxy_,type:zh,index:r,removedCount:o,added:s});if(!d)return Da;o=d.removedCount,s=d.added}if(s=s.length===0?s:s.map(function(b){return c.enhancer_(b,void 0)}),this.legacyMode_||process.env.NODE_ENV!=="production"){var p=s.length-o;this.updateArrayLength_(f,p)}var v=this.spliceItemsIntoValues_(r,o,s);return(o!==0||s.length!==0)&&this.notifyArraySplice_(r,s,v),this.dehanceValues_(v)},e.spliceItemsIntoValues_=function(r,o,s){if(s.length<Qw){var c;return(c=this.values_).splice.apply(c,[r,o].concat(s))}else{var f=this.values_.slice(r,r+o),d=this.values_.slice(r+o);this.values_.length+=s.length-o;for(var p=0;p<s.length;p++)this.values_[r+p]=s[p];for(var v=0;v<d.length;v++)this.values_[r+s.length+v]=d[v];return f}},e.notifyArrayChildUpdate_=function(r,o,s){var c=!this.owned_&&At(),f=jn(this),d=f||c?{observableKind:"array",object:this.proxy_,type:$n,debugObjectName:this.atom_.name_,index:r,newValue:o,oldValue:s}:null;process.env.NODE_ENV!=="production"&&c&&Zt(d),this.atom_.reportChanged(),f&&Fn(this,d),process.env.NODE_ENV!=="production"&&c&&Qt()},e.notifyArraySplice_=function(r,o,s){var c=!this.owned_&&At(),f=jn(this),d=f||c?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:zh,index:r,removed:s,added:o,removedCount:s.length,addedCount:o.length}:null;process.env.NODE_ENV!=="production"&&c&&Zt(d),this.atom_.reportChanged(),f&&Fn(this,d),process.env.NODE_ENV!=="production"&&c&&Qt()},e.get_=function(r){if(this.legacyMode_&&r>=this.values_.length){console.warn(process.env.NODE_ENV!=="production"?"[mobx.array] Attempt to read an array index ("+r+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX":"[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},e.set_=function(r,o){var s=this.values_;if(this.legacyMode_&&r>s.length&&ie(17,r,s.length),r<s.length){tr(this.atom_);var c=s[r];if(_n(this)){var f=wn(this,{type:$n,object:this.proxy_,index:r,newValue:o});if(!f)return;o=f.newValue}o=this.enhancer_(o,c);var d=o!==c;d&&(s[r]=o,this.notifyArrayChildUpdate_(r,o,c))}else{for(var p=new Array(r+1-s.length),v=0;v<p.length-1;v++)p[v]=void 0;p[p.length-1]=o,this.spliceWithArray_(s.length,0,p)}},n})();function tS(n,e,t,r){return t===void 0&&(t=process.env.NODE_ENV!=="production"?"ObservableArray@"+Bn():"ObservableArray"),r===void 0&&(r=!1),ih(),$r(function(){var o=new nc(t,e,r,!1);ah(o.values_,be,o);var s=new Proxy(o.values_,eS);return o.proxy_=s,n&&n.length&&o.spliceWithArray_(0,0,n),s})}var Ya={clear:function(){return this.splice(0)},replace:function(e){var t=this[be];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];var c=this[be];switch(arguments.length){case 0:return[];case 1:return c.spliceWithArray_(e);case 2:return c.spliceWithArray_(e,t)}return c.spliceWithArray_(e,t,o)},spliceWithArray:function(e,t,r){return this[be].spliceWithArray_(e,t,r)},push:function(){for(var e=this[be],t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.spliceWithArray_(e.values_.length,0,r),e.values_.length},pop:function(){return this.splice(Math.max(this[be].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[be],t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.spliceWithArray_(0,0,r),e.values_.length},reverse:function(){return H.trackingDerivation&&ie(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){H.trackingDerivation&&ie(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[be],r=t.dehanceValues_(t.values_).indexOf(e);return r>-1?(this.splice(r,1),!0):!1}};Je("at",en),Je("concat",en),Je("flat",en),Je("includes",en),Je("indexOf",en),Je("join",en),Je("lastIndexOf",en),Je("slice",en),Je("toString",en),Je("toLocaleString",en),Je("toSorted",en),Je("toSpliced",en),Je("with",en),Je("every",Vn),Je("filter",Vn),Je("find",Vn),Je("findIndex",Vn),Je("findLast",Vn),Je("findLastIndex",Vn),Je("flatMap",Vn),Je("forEach",Vn),Je("map",Vn),Je("some",Vn),Je("toReversed",Vn),Je("reduce",Hh),Je("reduceRight",Hh);function Je(n,e){typeof Array.prototype[n]=="function"&&(Ya[n]=e(n))}function en(n){return function(){var e=this[be];e.atom_.reportObserved();var t=e.dehanceValues_(e.values_);return t[n].apply(t,arguments)}}function Vn(n){return function(e,t){var r=this,o=this[be];o.atom_.reportObserved();var s=o.dehanceValues_(o.values_);return s[n](function(c,f){return e.call(t,c,f,r)})}}function Hh(n){return function(){var e=this,t=this[be];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_),o=arguments[0];return arguments[0]=function(s,c,f){return o(s,c,f,e)},r[n].apply(r,arguments)}}var nS=kr("ObservableArrayAdministration",nc);function ko(n){return Ca(n)&&nS(n[be])}var rS={},Fr="add",Ja="delete",qh=(function(){function n(t,r,o){var s=this;r===void 0&&(r=ai),o===void 0&&(o=process.env.NODE_ENV!=="production"?"ObservableMap@"+Bn():"ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[be]=rS,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=o,gt(Map)||ie(18),$r(function(){s.keysAtom_=lh(process.env.NODE_ENV!=="production"?s.name_+".keys()":"ObservableMap.keys()"),s.data_=new Map,s.hasMap_=new Map,t&&s.merge(t)})}var e=n.prototype;return e.has_=function(r){return this.data_.has(r)},e.has=function(r){var o=this;if(!H.trackingDerivation)return this.has_(r);var s=this.hasMap_.get(r);if(!s){var c=s=new jr(this.has_(r),Ra,process.env.NODE_ENV!=="production"?this.name_+"."+Fu(r)+"?":"ObservableMap.key?",!1);this.hasMap_.set(r,c),Bh(c,function(){return o.hasMap_.delete(r)})}return s.get()},e.set=function(r,o){var s=this.has_(r);if(_n(this)){var c=wn(this,{type:s?$n:Fr,object:this,newValue:o,name:r});if(!c)return this;o=c.newValue}return s?this.updateValue_(r,o):this.addValue_(r,o),this},e.delete=function(r){var o=this;if(tr(this.keysAtom_),_n(this)){var s=wn(this,{type:Ja,object:this,name:r});if(!s)return!1}if(this.has_(r)){var c=At(),f=jn(this),d=f||c?{observableKind:"map",debugObjectName:this.name_,type:Ja,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return process.env.NODE_ENV!=="production"&&c&&Zt(d),hr(function(){var p;o.keysAtom_.reportChanged(),(p=o.hasMap_.get(r))==null||p.setNewValue_(!1);var v=o.data_.get(r);v.setNewValue_(void 0),o.data_.delete(r)}),f&&Fn(this,d),process.env.NODE_ENV!=="production"&&c&&Qt(),!0}return!1},e.updateValue_=function(r,o){var s=this.data_.get(r);if(o=s.prepareNewValue_(o),o!==H.UNCHANGED){var c=At(),f=jn(this),d=f||c?{observableKind:"map",debugObjectName:this.name_,type:$n,object:this,oldValue:s.value_,name:r,newValue:o}:null;process.env.NODE_ENV!=="production"&&c&&Zt(d),s.setNewValue_(o),f&&Fn(this,d),process.env.NODE_ENV!=="production"&&c&&Qt()}},e.addValue_=function(r,o){var s=this;tr(this.keysAtom_),hr(function(){var p,v=new jr(o,s.enhancer_,process.env.NODE_ENV!=="production"?s.name_+"."+Fu(r):"ObservableMap.key",!1);s.data_.set(r,v),o=v.value_,(p=s.hasMap_.get(r))==null||p.setNewValue_(!0),s.keysAtom_.reportChanged()});var c=At(),f=jn(this),d=f||c?{observableKind:"map",debugObjectName:this.name_,type:Fr,object:this,name:r,newValue:o}:null;process.env.NODE_ENV!=="production"&&c&&Zt(d),f&&Fn(this,d),process.env.NODE_ENV!=="production"&&c&&Qt()},e.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},e.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},e.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},e.values=function(){var r=this,o=this.keys();return Gh({next:function(){var c=o.next(),f=c.done,d=c.value;return{done:f,value:f?void 0:r.get(d)}}})},e.entries=function(){var r=this,o=this.keys();return Gh({next:function(){var c=o.next(),f=c.done,d=c.value;return{done:f,value:f?void 0:[d,r.get(d)]}}})},e[Symbol.iterator]=function(){return this.entries()},e.forEach=function(r,o){for(var s=Mi(this),c;!(c=s()).done;){var f=c.value,d=f[0],p=f[1];r.call(o,p,d,this)}},e.merge=function(r){var o=this;return pr(r)&&(r=new Map(r)),hr(function(){Jt(r)?m0(r).forEach(function(s){return o.set(s,r[s])}):Array.isArray(r)?r.forEach(function(s){var c=s[0],f=s[1];return o.set(c,f)}):Di(r)?(g0(r)||ie(19,r),r.forEach(function(s,c){return o.set(c,s)})):r!=null&&ie(20,r)}),this},e.clear=function(){var r=this;hr(function(){Eh(function(){for(var o=Mi(r.keys()),s;!(s=o()).done;){var c=s.value;r.delete(c)}})})},e.replace=function(r){var o=this;return hr(function(){for(var s=iS(r),c=new Map,f=!1,d=Mi(o.data_.keys()),p;!(p=d()).done;){var v=p.value;if(!s.has(v)){var b=o.delete(v);if(b)f=!0;else{var w=o.data_.get(v);c.set(v,w)}}}for(var y=Mi(s.entries()),O;!(O=y()).done;){var S=O.value,A=S[0],x=S[1],k=o.data_.has(A);if(o.set(A,x),o.data_.has(A)){var G=o.data_.get(A);c.set(A,G),k||(f=!0)}}if(!f)if(o.data_.size!==c.size)o.keysAtom_.reportChanged();else for(var oe=o.data_.keys(),q=c.keys(),ye=oe.next(),L=q.next();!ye.done;){if(ye.value!==L.value){o.keysAtom_.reportChanged();break}ye=oe.next(),L=q.next()}o.data_=c}),this},e.toString=function(){return"[object ObservableMap]"},e.toJSON=function(){return Array.from(this)},e.observe_=function(r,o){return process.env.NODE_ENV!=="production"&&o===!0&&ie("`observe` doesn't support fireImmediately=true in combination with maps."),Lo(this,r)},e.intercept_=function(r){return Ro(this,r)},Pi(n,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])})(),pr=kr("ObservableMap",qh);function Gh(n){return n[Symbol.toStringTag]="MapIterator",sc(n)}function iS(n){if(Di(n)||pr(n))return n;if(Array.isArray(n))return new Map(n);if(Jt(n)){var e=new Map;for(var t in n)e.set(t,n[t]);return e}else return ie(21,n)}var oS={},Yh=(function(){function n(t,r,o){var s=this;r===void 0&&(r=ai),o===void 0&&(o=process.env.NODE_ENV!=="production"?"ObservableSet@"+Bn():"ObservableSet"),this.name_=void 0,this[be]=oS,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=o,gt(Set)||ie(22),this.enhancer_=function(c,f){return r(c,f,o)},$r(function(){s.atom_=lh(s.name_),t&&s.replace(t)})}var e=n.prototype;return e.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},e.clear=function(){var r=this;hr(function(){Eh(function(){for(var o=Mi(r.data_.values()),s;!(s=o()).done;){var c=s.value;r.delete(c)}})})},e.forEach=function(r,o){for(var s=Mi(this),c;!(c=s()).done;){var f=c.value;r.call(o,f,f,this)}},e.add=function(r){var o=this;if(tr(this.atom_),_n(this)){var s=wn(this,{type:Fr,object:this,newValue:r});if(!s)return this;r=s.newValue}if(!this.has(r)){hr(function(){o.data_.add(o.enhancer_(r,void 0)),o.atom_.reportChanged()});var c=process.env.NODE_ENV!=="production"&&At(),f=jn(this),d=f||c?{observableKind:"set",debugObjectName:this.name_,type:Fr,object:this,newValue:r}:null;c&&process.env.NODE_ENV!=="production"&&Zt(d),f&&Fn(this,d),c&&process.env.NODE_ENV!=="production"&&Qt()}return this},e.delete=function(r){var o=this;if(_n(this)){var s=wn(this,{type:Ja,object:this,oldValue:r});if(!s)return!1}if(this.has(r)){var c=process.env.NODE_ENV!=="production"&&At(),f=jn(this),d=f||c?{observableKind:"set",debugObjectName:this.name_,type:Ja,object:this,oldValue:r}:null;return c&&process.env.NODE_ENV!=="production"&&Zt(d),hr(function(){o.atom_.reportChanged(),o.data_.delete(r)}),f&&Fn(this,d),c&&process.env.NODE_ENV!=="production"&&Qt(),!0}return!1},e.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},e.entries=function(){var r=this.values();return Jh({next:function(){var s=r.next(),c=s.value,f=s.done;return f?{value:void 0,done:f}:{value:[c,c],done:f}}})},e.keys=function(){return this.values()},e.values=function(){this.atom_.reportObserved();var r=this,o=this.data_.values();return Jh({next:function(){var c=o.next(),f=c.value,d=c.done;return d?{value:void 0,done:d}:{value:r.dehanceValue_(f),done:d}}})},e.intersection=function(r){if(cr(r)&&!Wn(r))return r.intersection(this);var o=new Set(this);return o.intersection(r)},e.union=function(r){if(cr(r)&&!Wn(r))return r.union(this);var o=new Set(this);return o.union(r)},e.difference=function(r){return new Set(this).difference(r)},e.symmetricDifference=function(r){if(cr(r)&&!Wn(r))return r.symmetricDifference(this);var o=new Set(this);return o.symmetricDifference(r)},e.isSubsetOf=function(r){return new Set(this).isSubsetOf(r)},e.isSupersetOf=function(r){return new Set(this).isSupersetOf(r)},e.isDisjointFrom=function(r){if(cr(r)&&!Wn(r))return r.isDisjointFrom(this);var o=new Set(this);return o.isDisjointFrom(r)},e.replace=function(r){var o=this;return Wn(r)&&(r=new Set(r)),hr(function(){Array.isArray(r)?(o.clear(),r.forEach(function(s){return o.add(s)})):cr(r)?(o.clear(),r.forEach(function(s){return o.add(s)})):r!=null&&ie("Cannot initialize set from "+r)}),this},e.observe_=function(r,o){return process.env.NODE_ENV!=="production"&&o===!0&&ie("`observe` doesn't support fireImmediately=true in combination with sets."),Lo(this,r)},e.intercept_=function(r){return Ro(this,r)},e.toJSON=function(){return Array.from(this)},e.toString=function(){return"[object ObservableSet]"},e[Symbol.iterator]=function(){return this.values()},Pi(n,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])})(),Wn=kr("ObservableSet",Yh);function Jh(n){return n[Symbol.toStringTag]="SetIterator",sc(n)}var Kh=Object.create(null),Xh="remove",rc=(function(){function n(t,r,o,s){r===void 0&&(r=new Map),s===void 0&&(s=G0),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=t,this.values_=r,this.name_=o,this.defaultAnnotation_=s,this.keysAtom_=new Br(process.env.NODE_ENV!=="production"?this.name_+".keys":"ObservableObject.keys"),this.isPlainObject_=Jt(this.target_),process.env.NODE_ENV!=="production"&&!cp(this.defaultAnnotation_)&&ie("defaultAnnotation must be valid annotation"),process.env.NODE_ENV!=="production"&&(this.appliedAnnotations_={})}var e=n.prototype;return e.getObservablePropValue_=function(r){return this.values_.get(r).get()},e.setObservablePropValue_=function(r,o){var s=this.values_.get(r);if(s instanceof gn)return s.set(o),!0;if(_n(this)){var c=wn(this,{type:$n,object:this.proxy_||this.target_,name:r,newValue:o});if(!c)return null;o=c.newValue}if(o=s.prepareNewValue_(o),o!==H.UNCHANGED){var f=jn(this),d=process.env.NODE_ENV!=="production"&&At(),p=f||d?{type:$n,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:s.value_,name:r,newValue:o}:null;process.env.NODE_ENV!=="production"&&d&&Zt(p),s.setNewValue_(o),f&&Fn(this,p),process.env.NODE_ENV!=="production"&&d&&Qt()}return!0},e.get_=function(r){return H.trackingDerivation&&!vn(this.target_,r)&&this.has_(r),this.target_[r]},e.set_=function(r,o,s){return s===void 0&&(s=!1),vn(this.target_,r)?this.values_.has(r)?this.setObservablePropValue_(r,o):s?Reflect.set(this.target_,r,o):(this.target_[r]=o,!0):this.extend_(r,{value:o,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,s)},e.has_=function(r){if(!H.trackingDerivation)return r in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var o=this.pendingKeys_.get(r);return o||(o=new jr(r in this.target_,Ra,process.env.NODE_ENV!=="production"?this.name_+"."+Fu(r)+"?":"ObservableObject.key?",!1),this.pendingKeys_.set(r,o)),o.get()},e.make_=function(r,o){if(o===!0&&(o=this.defaultAnnotation_),o!==!1){if(ep(this,o,r),!(r in this.target_)){var s;if((s=this.target_[Ft])!=null&&s[r])return;ie(1,o.annotationType_,this.name_+"."+r.toString())}for(var c=this.target_;c&&c!==Eo;){var f=Na(c,r);if(f){var d=o.make_(this,r,f,c);if(d===0)return;if(d===1)break}c=Object.getPrototypeOf(c)}Qh(this,o,r)}},e.extend_=function(r,o,s,c){if(c===void 0&&(c=!1),s===!0&&(s=this.defaultAnnotation_),s===!1)return this.defineProperty_(r,o,c);ep(this,s,r);var f=s.extend_(this,r,o,c);return f&&Qh(this,s,r),f},e.defineProperty_=function(r,o,s){s===void 0&&(s=!1),tr(this.keysAtom_);try{bn();var c=this.delete_(r);if(!c)return c;if(_n(this)){var f=wn(this,{object:this.proxy_||this.target_,name:r,type:Fr,newValue:o.value});if(!f)return null;var d=f.newValue;o.value!==d&&(o=fr({},o,{value:d}))}if(s){if(!Reflect.defineProperty(this.target_,r,o))return!1}else Qn(this.target_,r,o);this.notifyPropertyAddition_(r,o.value)}finally{yn()}return!0},e.defineObservableProperty_=function(r,o,s,c){c===void 0&&(c=!1),tr(this.keysAtom_);try{bn();var f=this.delete_(r);if(!f)return f;if(_n(this)){var d=wn(this,{object:this.proxy_||this.target_,name:r,type:Fr,newValue:o});if(!d)return null;o=d.newValue}var p=Zh(r),v={configurable:H.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:p.get,set:p.set};if(c){if(!Reflect.defineProperty(this.target_,r,v))return!1}else Qn(this.target_,r,v);var b=new jr(o,s,process.env.NODE_ENV!=="production"?this.name_+"."+r.toString():"ObservableObject.key",!1);this.values_.set(r,b),this.notifyPropertyAddition_(r,b.value_)}finally{yn()}return!0},e.defineComputedProperty_=function(r,o,s){s===void 0&&(s=!1),tr(this.keysAtom_);try{bn();var c=this.delete_(r);if(!c)return c;if(_n(this)){var f=wn(this,{object:this.proxy_||this.target_,name:r,type:Fr,newValue:void 0});if(!f)return null}o.name||(o.name=process.env.NODE_ENV!=="production"?this.name_+"."+r.toString():"ObservableObject.key"),o.context=this.proxy_||this.target_;var d=Zh(r),p={configurable:H.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:d.get,set:d.set};if(s){if(!Reflect.defineProperty(this.target_,r,p))return!1}else Qn(this.target_,r,p);this.values_.set(r,new gn(o)),this.notifyPropertyAddition_(r,void 0)}finally{yn()}return!0},e.delete_=function(r,o){if(o===void 0&&(o=!1),tr(this.keysAtom_),!vn(this.target_,r))return!0;if(_n(this)){var s=wn(this,{object:this.proxy_||this.target_,name:r,type:Xh});if(!s)return null}try{var c;bn();var f=jn(this),d=process.env.NODE_ENV!=="production"&&At(),p=this.values_.get(r),v=void 0;if(!p&&(f||d)){var b;v=(b=Na(this.target_,r))==null?void 0:b.value}if(o){if(!Reflect.deleteProperty(this.target_,r))return!1}else delete this.target_[r];if(process.env.NODE_ENV!=="production"&&delete this.appliedAnnotations_[r],p&&(this.values_.delete(r),p instanceof jr&&(v=p.value_),Dh(p)),this.keysAtom_.reportChanged(),(c=this.pendingKeys_)==null||(c=c.get(r))==null||c.set(r in this.target_),f||d){var w={type:Xh,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:v,name:r};process.env.NODE_ENV!=="production"&&d&&Zt(w),f&&Fn(this,w),process.env.NODE_ENV!=="production"&&d&&Qt()}}finally{yn()}return!0},e.observe_=function(r,o){return process.env.NODE_ENV!=="production"&&o===!0&&ie("`observe` doesn't support the fire immediately property for observable objects."),Lo(this,r)},e.intercept_=function(r){return Ro(this,r)},e.notifyPropertyAddition_=function(r,o){var s,c=jn(this),f=process.env.NODE_ENV!=="production"&&At();if(c||f){var d=c||f?{type:Fr,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:r,newValue:o}:null;process.env.NODE_ENV!=="production"&&f&&Zt(d),c&&Fn(this,d),process.env.NODE_ENV!=="production"&&f&&Qt()}(s=this.pendingKeys_)==null||(s=s.get(r))==null||s.set(!0),this.keysAtom_.reportChanged()},e.ownKeys_=function(){return this.keysAtom_.reportObserved(),Ci(this.target_)},e.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},n})();function di(n,e){var t;if(process.env.NODE_ENV!=="production"&&e&&hi(n)&&ie("Options can't be provided for already observable objects."),vn(n,be))return process.env.NODE_ENV!=="production"&&!(ip(n)instanceof rc)&&ie("Cannot convert '"+Ka(n)+`' into observable object:
92
+ The target is already observable of different type.
93
+ Extending builtins is not supported.`),n;process.env.NODE_ENV!=="production"&&!Object.isExtensible(n)&&ie("Cannot make the designated object observable; it is not extensible");var r=(t=e?.name)!=null?t:process.env.NODE_ENV!=="production"?(Jt(n)?"ObservableObject":n.constructor.name)+"@"+Bn():"ObservableObject",o=new rc(n,new Map,String(r),iw(e));return Ao(n,be,o),n}var aS=kr("ObservableObjectAdministration",rc);function Zh(n){return Kh[n]||(Kh[n]={get:function(){return this[be].getObservablePropValue_(n)},set:function(t){return this[be].setObservablePropValue_(n,t)}})}function hi(n){return Ca(n)?aS(n[be]):!1}function Qh(n,e,t){var r;process.env.NODE_ENV!=="production"&&(n.appliedAnnotations_[t]=e),(r=n.target_[Ft])==null||delete r[t]}function ep(n,e,t){if(process.env.NODE_ENV!=="production"&&!cp(e)&&ie("Cannot annotate '"+n.name_+"."+t.toString()+"': Invalid annotation."),process.env.NODE_ENV!=="production"&&!La(e)&&vn(n.appliedAnnotations_,t)){var r=n.name_+"."+t.toString(),o=n.appliedAnnotations_[t].annotationType_,s=e.annotationType_;ie("Cannot apply '"+s+"' to '"+r+"':"+(`
94
+ The field is already annotated with '`+o+"'.")+`
95
+ Re-annotating fields is not allowed.
96
+ Use 'override' annotation for methods overridden by subclass.`)}}var sS=np(0),uS=(function(){var n=!1,e={};return Object.defineProperty(e,"0",{set:function(){n=!0}}),Object.create(e)[0]=1,n===!1})(),ic=0,tp=function(){};function cS(n,e){Object.setPrototypeOf?Object.setPrototypeOf(n.prototype,e):n.prototype.__proto__!==void 0?n.prototype.__proto__=e:n.prototype=e}cS(tp,Array.prototype);var oc=(function(n){function e(r,o,s,c){var f;return s===void 0&&(s=process.env.NODE_ENV!=="production"?"ObservableArray@"+Bn():"ObservableArray"),c===void 0&&(c=!1),f=n.call(this)||this,$r(function(){var d=new nc(s,o,c,!0);d.proxy_=f,ah(f,be,d),r&&r.length&&f.spliceWithArray(0,0,r),uS&&Object.defineProperty(f,"0",sS)}),f}fh(e,n);var t=e.prototype;return t.concat=function(){this[be].atom_.reportObserved();for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return Array.prototype.concat.apply(this.slice(),s.map(function(f){return ko(f)?f.slice():f}))},t[Symbol.iterator]=function(){var r=this,o=0;return sc({next:function(){return o<r.length?{value:r[o++],done:!1}:{done:!0,value:void 0}}})},Pi(e,[{key:"length",get:function(){return this[be].getArrayLength_()},set:function(o){this[be].setArrayLength_(o)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(tp);Object.entries(Ya).forEach(function(n){var e=n[0],t=n[1];e!=="concat"&&Ao(oc.prototype,e,t)});function np(n){return{enumerable:!1,configurable:!0,get:function(){return this[be].get_(n)},set:function(t){this[be].set_(n,t)}}}function fS(n){Qn(oc.prototype,""+n,np(n))}function rp(n){if(n>ic){for(var e=ic;e<n+100;e++)fS(e);ic=n}}rp(1e3);function lS(n,e,t){return new oc(n,e,t)}function ji(n,e){if(typeof n=="object"&&n!==null){if(ko(n))return e!==void 0&&ie(23),n[be].atom_;if(Wn(n))return n.atom_;if(pr(n)){if(e===void 0)return n.keysAtom_;var t=n.data_.get(e)||n.hasMap_.get(e);return t||ie(25,e,Ka(n)),t}if(hi(n)){if(!e)return ie(26);var r=n[be].values_.get(e);return r||ie(27,e,Ka(n)),r}if(Vu(n)||Do(n)||Ha(n))return n}else if(gt(n)&&Ha(n[be]))return n[be];ie(28)}function ip(n,e){if(n||ie(29),Vu(n)||Do(n)||Ha(n)||pr(n)||Wn(n))return n;if(n[be])return n[be];ie(24,n)}function Ka(n,e){var t;if(e!==void 0)t=ji(n,e);else{if(fi(n))return n.name;hi(n)||pr(n)||Wn(n)?t=ip(n):t=ji(n)}return t.name_}function $r(n){var e=ui(),t=Hu(!0);bn();try{return n()}finally{yn(),qu(t),lr(e)}}var op=Eo.toString;function ap(n,e,t){return t===void 0&&(t=-1),ac(n,e,t)}function ac(n,e,t,r,o){if(n===e)return n!==0||1/n===1/e;if(n==null||e==null)return!1;if(n!==n)return e!==e;var s=typeof n;if(s!=="function"&&s!=="object"&&typeof e!="object")return!1;var c=op.call(n);if(c!==op.call(e))return!1;switch(c){case"[object RegExp]":case"[object String]":return""+n==""+e;case"[object Number]":return+n!=+n?+e!=+e:+n==0?1/+n===1/e:+n==+e;case"[object Date]":case"[object Boolean]":return+n==+e;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(n)===Symbol.valueOf.call(e);case"[object Map]":case"[object Set]":t>=0&&t++;break}n=sp(n),e=sp(e);var f=c==="[object Array]";if(!f){if(typeof n!="object"||typeof e!="object")return!1;var d=n.constructor,p=e.constructor;if(d!==p&&!(gt(d)&&d instanceof d&&gt(p)&&p instanceof p)&&"constructor"in n&&"constructor"in e)return!1}if(t===0)return!1;t<0&&(t=-1),r=r||[],o=o||[];for(var v=r.length;v--;)if(r[v]===n)return o[v]===e;if(r.push(n),o.push(e),f){if(v=n.length,v!==e.length)return!1;for(;v--;)if(!ac(n[v],e[v],t-1,r,o))return!1}else{var b=Object.keys(n),w=b.length;if(Object.keys(e).length!==w)return!1;for(var y=0;y<w;y++){var O=b[y];if(!(vn(e,O)&&ac(n[O],e[O],t-1,r,o)))return!1}}return r.pop(),o.pop(),!0}function sp(n){return ko(n)?n.slice():Di(n)||pr(n)||cr(n)||Wn(n)?Array.from(n.entries()):n}var up,dS=((up=xa().Iterator)==null?void 0:up.prototype)||{};function sc(n){return n[Symbol.iterator]=hS,Object.assign(Object.create(dS),n)}function hS(){return this}function cp(n){return n instanceof Object&&typeof n.annotationType_=="string"&&gt(n.make_)&&gt(n.extend_)}["Symbol","Map","Set"].forEach(function(n){var e=xa();typeof e[n]>"u"&&ie("MobX requires global '"+n+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Aw,extras:{getDebugName:Ka},$mobx:be});var pS=Object.getOwnPropertyDescriptor,vS=(n,e,t,r)=>{for(var o=r>1?void 0:r?pS(e,t):e,s=n.length-1,c;s>=0;s--)(c=n[s])&&(o=c(o)||o);return o},gS=(n,e)=>(t,r)=>e(t,r,n);Fe.JustLayoutStore=class{service;layout=null;lastActiveId=null;lastActiveTm=new Date().getTime();fullScreenLayout=null;fullScreenHideTitle=!1;tabTitleMap=new Map;tabTitleTooltipMap=new Map;constructor(e){this.service=e,Zw(this,{service:!1},{autoBind:!0})}setLayout=e=>{this.layout=e};setTabTitle=(e,t)=>{this.tabTitleMap.set($e.toString(e),t)};getTabTitle=e=>this.tabTitleMap.get($e.toString(e));setTabTitleTooltip=(e,t)=>{this.tabTitleTooltipMap.set($e.toString(e),t)};getTabTitleTooltip=e=>this.tabTitleTooltipMap.get($e.toString(e));setFullScreenLayoutByBranch=e=>{e===null?this.fullScreenLayout=null:this.fullScreenLayout=this.service.getNodeAtBranch(this.layout,e)};setFullScreenHideTitle=e=>{this.fullScreenHideTitle=e};addTab=e=>{const t=this.service.getTabBranch(this.layout,[]);t!=null&&(this.service.hasWinId(this.layout,e.justId)?this.layout=this.service.activeWinId(this.layout,e.justId):this.layout=this.service.addTabWin(this.layout,t,e.justId,-1),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime())};addTabByNodeName=e=>{const t=this.service.getTabNodeInfoByNodeName(this.layout,e.nodeName,[]);t!=null&&(this.service.hasWinId(this.layout,e.justId)?this.layout=this.service.activeWinId(this.layout,e.justId):this.layout=this.service.addTabWin(this.layout,t.branch,e.justId,-1),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime())};queryWinIdsByViewId=e=>this.service.queryWinIdsByViewId(this.layout??null,e,[]);cloneTab=e=>{const t=this.service.getBranchByWinId(this.layout,e.justId);if(t==null)return;const r=this.service.getNodeAtBranch(this.layout,t);let o=0;r?.type==="stack"&&r.active!=null&&(o=$e.indexOf(r.tabs,e.justId)+1),this.layout=this.service.addTabWin(this.layout,t,e.cloneJustId,o),this.lastActiveId=e.cloneJustId,this.lastActiveTm=new Date().getTime()};removeWin=e=>{this.layout=this.service.removeEmpty(this.service.removeWinId(this.layout,e.justId))};removeAllTabs=e=>{this.layout=this.service.removeEmpty(this.service.removeAllTabs(this.layout,e.branch))};activeWin=e=>{this.layout=this.service.activeWinId(this.layout,e.justId),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime()};activePrevWin=()=>{const e=this.lastActiveId;if(e==null)return;const t=this.service.getNodeByWinId(this.layout,e);if(t?.type!=="stack"||t.tabs.length===0)return;const o=($e.indexOf(t.tabs,e)-1+t.tabs.length)%t.tabs.length,s=t.tabs[o];this.activeWin({justId:s})};activeNextWin=()=>{const e=this.lastActiveId;if(e==null)return;const t=this.service.getNodeByWinId(this.layout,e);if(t?.type!=="stack"||t.tabs.length===0)return;const o=($e.indexOf(t.tabs,e)+1)%t.tabs.length,s=t.tabs[o];this.activeWin({justId:s})};updateResize=e=>{this.layout=this.service.updateSplitSize(this.layout,e.branch,e.size)};moveWin=e=>{e.pos==="stack"?this.layout=this.service.removeEmpty(this.service.moveWinIdToStack(this.layout,e)):this.layout=this.service.removeEmpty(this.service.moveWinIdToSplit(this.layout,e)),this.lastActiveId=e.justId,this.lastActiveTm=new Date().getTime()};toggleSideMenu=()=>{if(this.layout===null||this.layout.type!=="split-pixels")return;const e=this.layout.size<=0?this.layout.primaryDefaultSize:0;this.updateResize({branch:[],size:e})};toggleWin=({nodeName:e})=>{const t=this.layout,r=this.service.getNodeInfoByNodeName(t,e,[]);if(r==null||r.node.type!=="split-pixels")return;const o=r.node.primaryHide!==!0,s=!o||r.node.size<10?r.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(r.branch,{$merge:{size:s,primaryHide:o}}),f=this.service.updateNode(t,c);f!=null&&this.setLayout(f)};showWin=({nodeName:e,show:t})=>{const r=this.layout,o=this.service.getNodeInfoByNodeName(r,e,[]);if(o!=null&&o.node.type==="split-pixels"&&t===(o.node.size===0)){const s=t?o.node.primaryDefaultSize:0,c=this.service.buildSpecFromUpdateSpec(o.branch,{$merge:{size:s}}),f=this.service.updateNode(r,c);if(f==null)return;this.setLayout(f)}};getSizeByNodeName=({nodeName:e})=>{const t=this.layout,r=this.service.getNodeInfoByNodeName(t,e,[]);if(r!=null)return r.node.type==="split-pixels"||r.node.type==="split-percentage"?r.node.size:null};getBranchByJustId=({justId:e})=>{const t=this.layout;return this.service.getBranchByWinId(t,e)};isPrimaryHide=({nodeName:e})=>{const t=this.layout,r=this.service.getNodeInfoByNodeName(t,e,[]);if(r!=null)return r.node.type==="split-pixels"?r.node.primaryHide:null};openWin=({justId:e})=>{this.service.hasWinId(this.layout??null,e)?this.activeWin({justId:e}):this.addTab({justId:e})};openWinByNodeName=({justId:e,nodeName:t})=>{this.service.hasWinId(this.layout??null,e)?this.activeWin({justId:e}):this.addTabByNodeName({justId:e,nodeName:t})};getWinIds=({viewId:e})=>this.service.queryWinIdsByViewId(this.layout??null,e,[]);getDupWinIds=({justId:e})=>this.service.queryDupWinIdsByWinId(this.layout??null,e,[]);getWinIdsByBranch=({branch:e})=>this.service.queryWinIdsByStack(this.layout??null,e);getNodeAtBranch=({branch:e})=>this.service.getNodeAtBranch(this.layout??null,e);openWinMenu=({justId:e,nodeName:t})=>{const r=e.viewId,o=this.getWinIds({viewId:r});if(o.length===0)console.log("openWinMenu1",o,e),this.openWinByNodeName({justId:e,nodeName:t});else{const s=o.toSorted((c,f)=>(c.dupId??"")<=(f.dupId??"")?-1:1).at(-1);s&&(console.log("openWinMenu2",o,s),this.openWinByNodeName({justId:s,nodeName:t}))}};fullScreenWin=async(e,t,r=!1)=>{t?this.setLayout(null):(this.setFullScreenLayoutByBranch(e),this.setFullScreenHideTitle(r))}},Fe.JustLayoutStore=vS([gd(),gS(0,h_(ii.JustLayoutService))],Fe.JustLayoutStore);const fp=new H_(({bind:n})=>{n(ii.JustLayoutService).to(Fe.JustLayoutService).inSingletonScope(),n(ii.JustLayoutStore).to(Fe.JustLayoutStore).inTransientScope(),n(ii.JustLayoutFactory).toFactory(e=>t=>{if(!Bo.has(t)){const r=Xa.get(ii.JustLayoutStore);Bo.set(t,r)}return Bo.get(t)})}),Xa=new r0,mS=[fp];Xa.load(...mS);const Bo=new Map;window.storeCache=Bo,window.toJS=qw;const nr=n=>{const[e]=R.useState(()=>Xa.get(ii.JustLayoutFactory)(n));return e},lp=R.createContext({dragDropManager:void 0});function Sn(n){return"Minified Redux error #"+n+"; visit https://redux.js.org/Errors?code="+n+" for the full message or use the non-minified dev environment for full errors. "}var dp=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),hp=function(){return Math.random().toString(36).substring(7).split("").join(".")},pp={INIT:"@@redux/INIT"+hp(),REPLACE:"@@redux/REPLACE"+hp()};function bS(n){if(typeof n!="object"||n===null)return!1;for(var e=n;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(n)===e}function yS(n){if(n===void 0)return"undefined";if(n===null)return"null";var e=typeof n;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(n))return"array";if(SS(n))return"date";if(wS(n))return"error";var t=_S(n);switch(t){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return t}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function _S(n){return typeof n.constructor=="function"?n.constructor.name:null}function wS(n){return n instanceof Error||typeof n.message=="string"&&n.constructor&&typeof n.constructor.stackTraceLimit=="number"}function SS(n){return n instanceof Date?!0:typeof n.toDateString=="function"&&typeof n.getDate=="function"&&typeof n.setDate=="function"}function Fi(n){var e=typeof n;return process.env.NODE_ENV!=="production"&&(e=yS(n)),e}function vp(n,e,t){var r;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Sn(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(1):"Expected the enhancer to be a function. Instead, received: '"+Fi(t)+"'");return t(vp)(n,e)}if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(2):"Expected the root reducer to be a function. Instead, received: '"+Fi(n)+"'");var o=n,s=e,c=[],f=c,d=!1;function p(){f===c&&(f=c.slice())}function v(){if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function b(S){if(typeof S!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(4):"Expected the listener to be a function. Instead, received: '"+Fi(S)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var A=!0;return p(),f.push(S),function(){if(A){if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");A=!1,p();var k=f.indexOf(S);f.splice(k,1),c=null}}}function w(S){if(!bS(S))throw new Error(process.env.NODE_ENV==="production"?Sn(7):"Actions must be plain objects. Instead, the actual type was: '"+Fi(S)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof S.type>"u")throw new Error(process.env.NODE_ENV==="production"?Sn(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(d)throw new Error(process.env.NODE_ENV==="production"?Sn(9):"Reducers may not dispatch actions.");try{d=!0,s=o(s,S)}finally{d=!1}for(var A=c=f,x=0;x<A.length;x++){var k=A[x];k()}return S}function y(S){if(typeof S!="function")throw new Error(process.env.NODE_ENV==="production"?Sn(10):"Expected the nextReducer to be a function. Instead, received: '"+Fi(S));o=S,w({type:pp.REPLACE})}function O(){var S,A=b;return S={subscribe:function(k){if(typeof k!="object"||k===null)throw new Error(process.env.NODE_ENV==="production"?Sn(11):"Expected the observer to be an object. Instead, received: '"+Fi(k)+"'");function G(){k.next&&k.next(v())}G();var oe=A(G);return{unsubscribe:oe}}},S[dp]=function(){return this},S}return w({type:pp.INIT}),r={dispatch:w,subscribe:b,getState:v,replaceReducer:y},r[dp]=O,r}function Ae(n,e,...t){if(OS()&&e===void 0)throw new Error("invariant requires an error message argument");if(!n){let r;if(e===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let o=0;r=new Error(e.replace(/%s/g,function(){return t[o++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function OS(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function ES(n,e,t){return e.split(".").reduce((r,o)=>r&&r[o]?r[o]:t||null,n)}function IS(n,e){return n.filter(t=>t!==e)}function gp(n){return typeof n=="object"}function AS(n,e){const t=new Map,r=s=>{t.set(s,t.has(s)?t.get(s)+1:1)};n.forEach(r),e.forEach(r);const o=[];return t.forEach((s,c)=>{s===1&&o.push(c)}),o}function TS(n,e){return n.filter(t=>e.indexOf(t)>-1)}const uc="dnd-core/INIT_COORDS",Za="dnd-core/BEGIN_DRAG",cc="dnd-core/PUBLISH_DRAG_SOURCE",Qa="dnd-core/HOVER",es="dnd-core/DROP",ts="dnd-core/END_DRAG";function mp(n,e){return{type:uc,payload:{sourceClientOffset:e||null,clientOffset:n||null}}}const xS={type:uc,payload:{clientOffset:null,sourceClientOffset:null}};function NS(n){return function(t=[],r={publishSource:!0}){const{publishSource:o=!0,clientOffset:s,getSourceClientOffset:c}=r,f=n.getMonitor(),d=n.getRegistry();n.dispatch(mp(s)),DS(t,f,d);const p=MS(t,f);if(p==null){n.dispatch(xS);return}let v=null;if(s){if(!c)throw new Error("getSourceClientOffset must be defined");CS(c),v=c(p)}n.dispatch(mp(s,v));const w=d.getSource(p).beginDrag(f,p);if(w==null)return;PS(w),d.pinSource(p);const y=d.getSourceType(p);return{type:Za,payload:{itemType:y,item:w,sourceId:p,clientOffset:s||null,sourceClientOffset:v||null,isSourcePublic:!!o}}}}function DS(n,e,t){Ae(!e.isDragging(),"Cannot call beginDrag while dragging."),n.forEach(function(r){Ae(t.getSource(r),"Expected sourceIds to be registered.")})}function CS(n){Ae(typeof n=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function PS(n){Ae(gp(n),"Item must be an object.")}function MS(n,e){let t=null;for(let r=n.length-1;r>=0;r--)if(e.canDragSource(n[r])){t=n[r];break}return t}function RS(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function LS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){RS(n,o,t[o])})}return n}function kS(n){return function(t={}){const r=n.getMonitor(),o=n.getRegistry();BS(r),$S(r).forEach((c,f)=>{const d=jS(c,f,o,r),p={type:es,payload:{dropResult:LS({},t,d)}};n.dispatch(p)})}}function BS(n){Ae(n.isDragging(),"Cannot call drop while not dragging."),Ae(!n.didDrop(),"Cannot call drop twice during one drag operation.")}function jS(n,e,t,r){const o=t.getTarget(n);let s=o?o.drop(r,n):void 0;return FS(s),typeof s>"u"&&(s=e===0?{}:r.getDropResult()),s}function FS(n){Ae(typeof n>"u"||gp(n),"Drop result must either be an object or undefined.")}function $S(n){const e=n.getTargetIds().filter(n.canDropOnTarget,n);return e.reverse(),e}function VS(n){return function(){const t=n.getMonitor(),r=n.getRegistry();WS(t);const o=t.getSourceId();return o!=null&&(r.getSource(o,!0).endDrag(t,o),r.unpinSource()),{type:ts}}}function WS(n){Ae(n.isDragging(),"Cannot call endDrag while not dragging.")}function fc(n,e){return e===null?n===null:Array.isArray(n)?n.some(t=>t===e):n===e}function US(n){return function(t,{clientOffset:r}={}){zS(t);const o=t.slice(0),s=n.getMonitor(),c=n.getRegistry(),f=s.getItemType();return qS(o,c,f),HS(o,s,c),GS(o,s,c),{type:Qa,payload:{targetIds:o,clientOffset:r||null}}}}function zS(n){Ae(Array.isArray(n),"Expected targetIds to be an array.")}function HS(n,e,t){Ae(e.isDragging(),"Cannot call hover while not dragging."),Ae(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<n.length;r++){const o=n[r];Ae(n.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array.");const s=t.getTarget(o);Ae(s,"Expected targetIds to be registered.")}}function qS(n,e,t){for(let r=n.length-1;r>=0;r--){const o=n[r],s=e.getTargetType(o);fc(s,t)||n.splice(r,1)}}function GS(n,e,t){n.forEach(function(r){t.getTarget(r).hover(e,r)})}function YS(n){return function(){if(n.getMonitor().isDragging())return{type:cc}}}function JS(n){return{beginDrag:NS(n),publishDragSource:YS(n),hover:US(n),drop:kS(n),endDrag:VS(n)}}class KS{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;function r(s){return(...c)=>{const f=s.apply(e,c);typeof f<"u"&&t(f)}}const o=JS(this);return Object.keys(o).reduce((s,c)=>{const f=o[c];return s[c]=r(f),s},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function XS(n,e){return{x:n.x+e.x,y:n.y+e.y}}function bp(n,e){return{x:n.x-e.x,y:n.y-e.y}}function ZS(n){const{clientOffset:e,initialClientOffset:t,initialSourceClientOffset:r}=n;return!e||!t||!r?null:bp(XS(e,r),t)}function QS(n){const{clientOffset:e,initialClientOffset:t}=n;return!e||!t?null:bp(e,t)}const jo=[],lc=[];jo.__IS_NONE__=!0,lc.__IS_ALL__=!0;function eO(n,e){return n===jo?!1:n===lc||typeof e>"u"?!0:TS(e,n).length>0}class tO{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;Ae(typeof e=="function","listener must be a function."),Ae(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let o=this.store.getState().stateId;const s=()=>{const c=this.store.getState(),f=c.stateId;try{f===o||f===o+1&&!eO(c.dirtyHandlerIds,r)||e()}finally{o=f}};return this.store.subscribe(s)}subscribeToOffsetChange(e){Ae(typeof e=="function","listener must be a function.");let t=this.store.getState().dragOffset;const r=()=>{const o=this.store.getState().dragOffset;o!==t&&(t=o,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return Ae(t,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(Ae(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();return fc(r,o)&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(Ae(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),o=this.getItemType();return r!==o?!1:t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const o=this.registry.getTargetType(e),s=this.getItemType();if(s&&!fc(o,s))return!1;const c=this.getTargetIds();if(!c.length)return!1;const f=c.indexOf(e);return r?f===c.length-1:f>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return ZS(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return QS(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const yp=typeof global<"u"?global:self,_p=yp.MutationObserver||yp.WebKitMutationObserver;function wp(n){return function(){const t=setTimeout(o,0),r=setInterval(o,50);function o(){clearTimeout(t),clearInterval(r),n()}}}function nO(n){let e=1;const t=new _p(n),r=document.createTextNode("");return t.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const rO=typeof _p=="function"?nO:wp;class iO{enqueueTask(e){const{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let r=0,o=e.length-this.index;r<o;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=rO(this.flush),this.requestErrorThrow=wp(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class oO{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}class aO{create(e){const t=this.freeTasks,r=t.length?t.pop():new oO(this.onError,o=>t[t.length]=o);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const Sp=new iO,sO=new aO(Sp.registerPendingError);function uO(n){Sp.enqueueTask(sO.create(n))}const dc="dnd-core/ADD_SOURCE",hc="dnd-core/ADD_TARGET",pc="dnd-core/REMOVE_SOURCE",ns="dnd-core/REMOVE_TARGET";function cO(n){return{type:dc,payload:{sourceId:n}}}function fO(n){return{type:hc,payload:{targetId:n}}}function lO(n){return{type:pc,payload:{sourceId:n}}}function dO(n){return{type:ns,payload:{targetId:n}}}function hO(n){Ae(typeof n.canDrag=="function","Expected canDrag to be a function."),Ae(typeof n.beginDrag=="function","Expected beginDrag to be a function."),Ae(typeof n.endDrag=="function","Expected endDrag to be a function.")}function pO(n){Ae(typeof n.canDrop=="function","Expected canDrop to be a function."),Ae(typeof n.hover=="function","Expected hover to be a function."),Ae(typeof n.drop=="function","Expected beginDrag to be a function.")}function vc(n,e){if(e&&Array.isArray(n)){n.forEach(t=>vc(t,!1));return}Ae(typeof n=="string"||typeof n=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var On;(function(n){n.SOURCE="SOURCE",n.TARGET="TARGET"})(On||(On={}));let vO=0;function gO(){return vO++}function mO(n){const e=gO().toString();switch(n){case On.SOURCE:return`S${e}`;case On.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${n}`)}}function Op(n){switch(n[0]){case"S":return On.SOURCE;case"T":return On.TARGET;default:throw new Error(`Cannot parse handler ID: ${n}`)}}function Ep(n,e){const t=n.entries();let r=!1;do{const{done:o,value:[,s]}=t.next();if(s===e)return!0;r=!!o}while(!r);return!1}class bO{addSource(e,t){vc(e),hO(t);const r=this.addHandler(On.SOURCE,e,t);return this.store.dispatch(cO(r)),r}addTarget(e,t){vc(e,!0),pO(t);const r=this.addHandler(On.TARGET,e,t);return this.store.dispatch(fO(r)),r}containsHandler(e){return Ep(this.dragSources,e)||Ep(this.dropTargets,e)}getSource(e,t=!1){return Ae(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ae(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ae(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ae(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Op(e)===On.SOURCE}isTargetId(e){return Op(e)===On.TARGET}removeSource(e){Ae(this.getSource(e),"Expected an existing source."),this.store.dispatch(lO(e)),uO(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Ae(this.getTarget(e),"Expected an existing target."),this.store.dispatch(dO(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);Ae(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){Ae(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const o=mO(e);return this.types.set(o,t),e===On.SOURCE?this.dragSources.set(o,r):e===On.TARGET&&this.dropTargets.set(o,r),o}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const yO=(n,e)=>n===e;function _O(n,e){return!n&&!e?!0:!n||!e?!1:n.x===e.x&&n.y===e.y}function wO(n,e,t=yO){if(n.length!==e.length)return!1;for(let r=0;r<n.length;++r)if(!t(n[r],e[r]))return!1;return!0}function SO(n=jo,e){switch(e.type){case Qa:break;case dc:case hc:case ns:case pc:return jo;case Za:case cc:case ts:case es:default:return lc}const{targetIds:t=[],prevTargetIds:r=[]}=e.payload,o=AS(t,r);if(!(o.length>0||!wO(t,r)))return jo;const c=r[r.length-1],f=t[t.length-1];return c!==f&&(c&&o.push(c),f&&o.push(f)),o}function OO(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function EO(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){OO(n,o,t[o])})}return n}const Ip={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function IO(n=Ip,e){const{payload:t}=e;switch(e.type){case uc:case Za:return{initialSourceClientOffset:t.sourceClientOffset,initialClientOffset:t.clientOffset,clientOffset:t.clientOffset};case Qa:return _O(n.clientOffset,t.clientOffset)?n:EO({},n,{clientOffset:t.clientOffset});case ts:case es:return Ip;default:return n}}function AO(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function $i(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){AO(n,o,t[o])})}return n}const TO={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function xO(n=TO,e){const{payload:t}=e;switch(e.type){case Za:return $i({},n,{itemType:t.itemType,item:t.item,sourceId:t.sourceId,isSourcePublic:t.isSourcePublic,dropResult:null,didDrop:!1});case cc:return $i({},n,{isSourcePublic:!0});case Qa:return $i({},n,{targetIds:t.targetIds});case ns:return n.targetIds.indexOf(t.targetId)===-1?n:$i({},n,{targetIds:IS(n.targetIds,t.targetId)});case es:return $i({},n,{dropResult:t.dropResult,didDrop:!0,targetIds:[]});case ts:return $i({},n,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function NO(n=0,e){switch(e.type){case dc:case hc:return n+1;case pc:case ns:return n-1;default:return n}}function DO(n=0){return n+1}function CO(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function PO(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){CO(n,o,t[o])})}return n}function MO(n={},e){return{dirtyHandlerIds:SO(n.dirtyHandlerIds,{type:e.type,payload:PO({},e.payload,{prevTargetIds:ES(n,"dragOperation.targetIds",[])})}),dragOffset:IO(n.dragOffset,e),refCount:NO(n.refCount,e),dragOperation:xO(n.dragOperation,e),stateId:DO(n.stateId)}}function RO(n,e=void 0,t={},r=!1){const o=LO(r),s=new tO(o,new bO(o)),c=new KS(o,s),f=n(c,e,t);return c.receiveBackend(f),c}function LO(n){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return vp(MO,n&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function kO(n,e){if(n==null)return{};var t=BO(n,e),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(o=0;o<s.length;o++)r=s[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function BO(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}let Ap=0;const rs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var jO=R.memo(function(e){var{children:t}=e,r=kO(e,["children"]);const[o,s]=FO(r);return R.useEffect(()=>{if(s){const c=Tp();return++Ap,()=>{--Ap===0&&(c[rs]=null)}}},[]),Q.jsx(lp.Provider,{value:o,children:t})});function FO(n){if("manager"in n)return[{dragDropManager:n.manager},!1];const e=$O(n.backend,n.context,n.options,n.debugMode),t=!n.context;return[e,t]}function $O(n,e=Tp(),t,r){const o=e;return o[rs]||(o[rs]={dragDropManager:RO(n,e,t,r)}),o[rs]}function Tp(){return typeof global<"u"?global:window}var gc,xp;function VO(){return xp||(xp=1,gc=function n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,o,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(!n(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=r;o--!==0;){var c=s[o];if(!n(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}),gc}var WO=VO();const UO=po(WO),pi=typeof window<"u"?R.useLayoutEffect:R.useEffect;function zO(n,e,t){const[r,o]=R.useState(()=>e(n)),s=R.useCallback(()=>{const c=e(n);UO(r,c)||(o(c),t&&t())},[r,n,t]);return pi(s),[r,s]}function HO(n,e,t){const[r,o]=zO(n,e,t);return pi(function(){const c=n.getHandlerId();if(c!=null)return n.subscribeToStateChange(o,{handlerIds:[c]})},[n,o]),r}function Np(n,e,t){return HO(e,n||(()=>({})),()=>t.reconnect())}function Dp(n,e){const t=[...e||[]];return e==null&&typeof n!="function"&&t.push(n),R.useMemo(()=>typeof n=="function"?n():n,t)}function qO(n){return R.useMemo(()=>n.hooks.dragSource(),[n])}function GO(n){return R.useMemo(()=>n.hooks.dragPreview(),[n])}let mc=!1,bc=!1;class YO{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ae(!mc,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return mc=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{mc=!1}}isDragging(){if(!this.sourceId)return!1;Ae(!bc,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return bc=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{bc=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let yc=!1;class JO{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;Ae(!yc,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return yc=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{yc=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function KO(n,e,t){const r=t.getRegistry(),o=r.addTarget(n,e);return[o,()=>r.removeTarget(o)]}function XO(n,e,t){const r=t.getRegistry(),o=r.addSource(n,e);return[o,()=>r.removeSource(o)]}function _c(n,e,t,r){let o;if(o!==void 0)return!!o;if(n===e)return!0;if(typeof n!="object"||!n||typeof e!="object"||!e)return!1;const s=Object.keys(n),c=Object.keys(e);if(s.length!==c.length)return!1;const f=Object.prototype.hasOwnProperty.bind(e);for(let d=0;d<s.length;d++){const p=s[d];if(!f(p))return!1;const v=n[p],b=e[p];if(o=void 0,o===!1||o===void 0&&v!==b)return!1}return!0}function wc(n){return n!==null&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function ZO(n){if(typeof n.type=="string")return;const e=n.type.displayName||n.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function QO(n){return(e=null,t=null)=>{if(!R.isValidElement(e)){const s=e;return n(s,t),s}const r=e;return ZO(r),eE(r,t?s=>n(s,t):n)}}function Cp(n){const e={};return Object.keys(n).forEach(t=>{const r=n[t];if(t.endsWith("Ref"))e[t]=n[t];else{const o=QO(r);e[t]=()=>o}}),e}function Pp(n,e){typeof n=="function"?n(e):n.current=e}function eE(n,e){const t=n.ref;return Ae(typeof t!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),t?R.cloneElement(n,{ref:r=>{Pp(t,r),Pp(e,r)}}):R.cloneElement(n,{ref:e})}class tE{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!_c(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!_c(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Cp({dragSource:(t,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,wc(t)?this.dragSourceRef=t:this.dragSourceNode=t,this.reconnectDragSource()},dragPreview:(t,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,wc(t)?this.dragPreviewRef=t:this.dragPreviewNode=t,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class nE{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!_c(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Cp({dropTarget:(t,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,wc(t)?this.dropTargetRef=t:this.dropTargetNode=t,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Vi(){const{dragDropManager:n}=R.useContext(lp);return Ae(n!=null,"Expected drag drop context"),n}function rE(n,e){const t=Vi(),r=R.useMemo(()=>new tE(t.getBackend()),[t]);return pi(()=>(r.dragSourceOptions=n||null,r.reconnect(),()=>r.disconnectDragSource()),[r,n]),pi(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function iE(){const n=Vi();return R.useMemo(()=>new YO(n),[n])}class oE{beginDrag(){const e=this.spec,t=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(t):r={},r??null}canDrag(){const e=this.spec,t=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(t):!0}isDragging(e,t){const r=this.spec,o=this.monitor,{isDragging:s}=r;return s?s(o):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,r=this.connector,{end:o}=e;o&&o(t.getItem(),t),r.reconnect()}constructor(e,t,r){this.spec=e,this.monitor=t,this.connector=r}}function aE(n,e,t){const r=R.useMemo(()=>new oE(n,e,t),[e,t]);return R.useEffect(()=>{r.spec=n},[n]),r}function sE(n){return R.useMemo(()=>{const e=n.type;return Ae(e!=null,"spec.type must be defined"),e},[n])}function uE(n,e,t){const r=Vi(),o=aE(n,e,t),s=sE(n);pi(function(){if(s!=null){const[f,d]=XO(s,o,r);return e.receiveHandlerId(f),t.receiveHandlerId(f),d}},[r,e,t,o,s])}function cE(n,e){const t=Dp(n,e);Ae(!t.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=iE(),o=rE(t.options,t.previewOptions);return uE(t,r,o),[Np(t.collect,r,o),qO(o),GO(o)]}function fE(n){return R.useMemo(()=>n.hooks.dropTarget(),[n])}function lE(n){const e=Vi(),t=R.useMemo(()=>new nE(e.getBackend()),[e]);return pi(()=>(t.dropTargetOptions=n||null,t.reconnect(),()=>t.disconnectDropTarget()),[n]),t}function dE(){const n=Vi();return R.useMemo(()=>new JO(n),[n])}function hE(n){const{accept:e}=n;return R.useMemo(()=>(Ae(n.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class pE{canDrop(){const e=this.spec,t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):!0}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function vE(n,e){const t=R.useMemo(()=>new pE(n,e),[e]);return R.useEffect(()=>{t.spec=n},[n]),t}function gE(n,e,t){const r=Vi(),o=vE(n,e),s=hE(n);pi(function(){const[f,d]=KO(s,o,r);return e.receiveHandlerId(f),t.receiveHandlerId(f),d},[r,e,o,t,s.map(c=>c.toString()).join("|")])}function Sc(n,e){const t=Dp(n,e),r=dE(),o=lE(t.options);return gE(t,r,o),[Np(t.collect,r,o),fE(o)]}var Oc={exports:{}};var Mp;function mE(){return Mp||(Mp=1,(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var s="",c=0;c<arguments.length;c++){var f=arguments[c];f&&(s=o(s,r(f)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var f in s)e.call(s,f)&&s[f]&&(c=o(c,f));return c}function o(s,c){return c?s?s+" "+c:s+c:s}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(Oc)),Oc.exports}var bE=mE();const Un=po(bE),Rp=n=>!!n&&n[0]==="o",Lp=ho.unstable_batchedUpdates,Fo=(n,e)=>n===!0||!!(n&&n[e]),En=(n,e)=>typeof n=="function"?n(e):n,yE="_szhsinMenu",_E=n=>n[yE],is=(n,e)=>(e&&Object.keys(e).forEach(t=>{const r=n[t],o=e[t];typeof o=="function"&&r?n[t]=(...s)=>{o(...s),r(...s)}:n[t]=o}),n),wE=n=>{if(typeof n!="string")return{top:0,right:0,bottom:0,left:0};const e=n.trim().split(/\s+/,4).map(parseFloat),t=isNaN(e[0])?0:e[0],r=isNaN(e[1])?t:e[1];return{top:t,right:r,bottom:isNaN(e[2])?t:e[2],left:isNaN(e[3])?r:e[3]}},Ec=n=>{for(;n;){if(n=n.parentNode,!n||n===document.body||!n.parentNode)return;const{overflow:e,overflowX:t,overflowY:r}=getComputedStyle(n);if(/auto|scroll|overlay|hidden/.test(e+r+t))return n}};function kp(n,e){return{"aria-disabled":n||void 0,tabIndex:e?0:-1}}function Bp(n,e){for(let t=0;t<n.length;t++)if(n[t]===e)return t;return-1}const os=({block:n,element:e,modifiers:t,className:r})=>R.useMemo(()=>{const o=e?`${n}__${e}`:n;let s=o;t&&Object.keys(t).forEach(f=>{const d=t[f];d&&(s+=` ${o}--${d===!0?f:`${f}-${d}`}`)});let c=typeof r=="function"?r(t):r;return typeof c=="string"&&(c=c.trim(),c&&(s+=` ${c}`)),s},[n,e,t,r]),SE="szh-menu-container",as="szh-menu",OE="arrow",EE="item",jp=R.createContext(),Fp=R.createContext({}),$p=R.createContext({}),Vp=R.createContext({}),IE=R.createContext({}),Ic=R.createContext({}),zn=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),mt=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),$o=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),Vo=Object.freeze({FIRST:"first",LAST:"last"}),AE=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),Wp="absolute",TE="none",xE="menuitem",Ac={preventScroll:!0},NE=({className:n,containerRef:e,containerProps:t,children:r,isOpen:o,theming:s,transition:c,onClose:f})=>{const d=Fo(c,"item"),p=({key:b})=>{b===zn.ESC&&En(f,{key:b,reason:$o.CANCEL})},v=b=>{o&&!b.currentTarget.contains(b.relatedTarget)&&En(f,{reason:$o.BLUR})};return Q.jsx("div",{...is({onKeyDown:p,onBlur:v},t),className:os({block:SE,modifiers:R.useMemo(()=>({theme:s,itemTransition:d}),[s,d]),className:n}),style:{position:"absolute",...t?.style},ref:e,children:r})},DE=()=>{let n,e=0;return{toggle:t=>{t?e++:e--,e=Math.max(e,0)},on:(t,r,o)=>{e?n||(n=setTimeout(()=>{n=0,r()},t)):o?.()},off:()=>{n&&(clearTimeout(n),n=0)}}},CE=n=>{const[e,t]=R.useState(),o=R.useRef({items:[],hoverIndex:-1,sorted:!1}).current,s=R.useCallback((f,d)=>{const{items:p}=o;if(!f)o.items=[];else if(d)p.push(f);else{const v=p.indexOf(f);v>-1&&(p.splice(v,1),f.contains(document.activeElement)&&(n.current.focus(Ac),t()))}o.hoverIndex=-1,o.sorted=!1},[o,n]),c=R.useCallback((f,d,p)=>{const{items:v,hoverIndex:b}=o,w=()=>{if(o.sorted)return;const S=n.current.querySelectorAll(".szh-menu__item");v.sort((A,x)=>Bp(S,A)-Bp(S,x)),o.sorted=!0};let y=-1,O;switch(f){case mt.RESET:break;case mt.SET:O=d;break;case mt.UNSET:O=S=>S===d?void 0:S;break;case mt.FIRST:w(),y=0,O=v[y];break;case mt.LAST:w(),y=v.length-1,O=v[y];break;case mt.SET_INDEX:w(),y=p,O=v[y];break;case mt.INCREASE:w(),y=b,y<0&&(y=v.indexOf(d)),y++,y>=v.length&&(y=0),O=v[y];break;case mt.DECREASE:w(),y=b,y<0&&(y=v.indexOf(d)),y--,y<0&&(y=v.length-1),O=v[y];break;default:if(process.env.NODE_ENV!=="production")throw new Error(`[React-Menu] Unknown hover action type: ${f}`)}O||(y=-1),t(O),o.hoverIndex=y},[n,o]);return{hoverItem:e,dispatch:c,updateItems:s}},Up=(n,e)=>Math.round(n)===e?n:e,PE=n=>{const e=n.getBoundingClientRect();return e.width=Up(e.width,n.offsetWidth),e.height=Up(e.height,n.offsetHeight),e},ME=(n,e,t,r)=>{const o=PE(e),s=n.getBoundingClientRect(),c=t===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:t.getBoundingClientRect(),f=wE(r),d=O=>O+s.left-c.left-f.left,p=O=>O+s.left+o.width-c.right+f.right,v=O=>O+s.top-c.top-f.top,b=O=>O+s.top+o.height-c.bottom+f.bottom;return{menuRect:o,containerRect:s,getLeftOverflow:d,getRightOverflow:p,getTopOverflow:v,getBottomOverflow:b,confineHorizontally:O=>{let S=d(O);if(S<0)O-=S;else{const A=p(O);A>0&&(O-=A,S=d(O),S<0&&(O-=S))}return O},confineVertically:O=>{let S=v(O);if(S<0)O-=S;else{const A=b(O);A>0&&(O-=A,S=v(O),S<0&&(O-=S))}return O}}},RE=({arrowRef:n,menuY:e,anchorRect:t,containerRect:r,menuRect:o})=>{let s=t.top-r.top-e+t.height/2;const c=n.current.offsetHeight*1.25;return s=Math.max(c,s),s=Math.min(s,o.height-c),s},LE=({anchorRect:n,containerRect:e,menuRect:t,placeLeftorRightY:r,placeLeftX:o,placeRightX:s,getLeftOverflow:c,getRightOverflow:f,confineHorizontally:d,confineVertically:p,arrowRef:v,arrow:b,direction:w,position:y})=>{let O=w,S=r;y!=="initial"&&(S=p(S),y==="anchor"&&(S=Math.min(S,n.bottom-e.top),S=Math.max(S,n.top-e.top-t.height)));let A,x,k;return O==="left"?(A=o,y!=="initial"&&(x=c(A),x<0&&(k=f(s),(k<=0||-x>k)&&(A=s,O="right")))):(A=s,y!=="initial"&&(k=f(A),k>0&&(x=c(o),(x>=0||-x<k)&&(A=o,O="left")))),y==="auto"&&(A=d(A)),{arrowY:b?RE({menuY:S,arrowRef:v,anchorRect:n,containerRect:e,menuRect:t}):void 0,x:A,y:S,computedDirection:O}},kE=({arrowRef:n,menuX:e,anchorRect:t,containerRect:r,menuRect:o})=>{let s=t.left-r.left-e+t.width/2;const c=n.current.offsetWidth*1.25;return s=Math.max(c,s),s=Math.min(s,o.width-c),s},BE=({anchorRect:n,containerRect:e,menuRect:t,placeToporBottomX:r,placeTopY:o,placeBottomY:s,getTopOverflow:c,getBottomOverflow:f,confineHorizontally:d,confineVertically:p,arrowRef:v,arrow:b,direction:w,position:y})=>{let O=w==="top"?"top":"bottom",S=r;y!=="initial"&&(S=d(S),y==="anchor"&&(S=Math.min(S,n.right-e.left),S=Math.max(S,n.left-e.left-t.width)));let A,x,k;return O==="top"?(A=o,y!=="initial"&&(x=c(A),x<0&&(k=f(s),(k<=0||-x>k)&&(A=s,O="bottom")))):(A=s,y!=="initial"&&(k=f(A),k>0&&(x=c(o),(x>=0||-x<k)&&(A=o,O="top")))),y==="auto"&&(A=p(A)),{arrowX:b?kE({menuX:S,arrowRef:v,anchorRect:n,containerRect:e,menuRect:t}):void 0,x:S,y:A,computedDirection:O}},jE=({arrow:n,align:e,direction:t,gap:r,shift:o,position:s,anchorRect:c,arrowRef:f,positionHelpers:d})=>{const{menuRect:p,containerRect:v}=d,b=t==="left"||t==="right";let w=b?r:o,y=b?o:r;if(n){const q=f.current;b?w+=q.offsetWidth:y+=q.offsetHeight}const O=c.left-v.left-p.width-w,S=c.right-v.left+w,A=c.top-v.top-p.height-y,x=c.bottom-v.top+y;let k,G;e==="end"?(k=c.right-v.left-p.width,G=c.bottom-v.top-p.height):e==="center"?(k=c.left-v.left-(p.width-c.width)/2,G=c.top-v.top-(p.height-c.height)/2):(k=c.left-v.left,G=c.top-v.top),k+=w,G+=y;const oe={...d,anchorRect:c,placeLeftX:O,placeRightX:S,placeLeftorRightY:G,placeTopY:A,placeBottomY:x,placeToporBottomX:k,arrowRef:f,arrow:n,direction:t,position:s};switch(t){case"left":case"right":return LE(oe);default:return BE(oe)}},ss=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?R.useLayoutEffect:R.useEffect;function zp(n,e){typeof n=="function"?n(e):n.current=e}const Tc=(n,e)=>R.useMemo(()=>n?e?t=>{zp(n,t),zp(e,t)}:n:e,[n,e]),Hp=-9999,FE=({ariaLabel:n,menuClassName:e,menuStyle:t,arrow:r,arrowProps:o={},anchorPoint:s,anchorRef:c,containerRef:f,containerProps:d,externalRef:p,parentScrollingRef:v,align:b="start",direction:w="bottom",position:y="auto",overflow:O="visible",setDownOverflow:S,repositionFlag:A,captureFocus:x=!0,state:k,endTransition:G,isDisabled:oe,menuItemFocus:q,gap:ye=0,shift:L=0,children:F,onClose:ae,focusProps:we,...ce})=>{const[Se,he]=R.useState({x:Hp,y:Hp}),[ct,ht]=R.useState({}),[ft,xt]=R.useState(),[ue,nn]=R.useState(w),[Pt]=R.useState(DE),[Le,wr]=R.useReducer(ne=>ne+1,1),{transition:pe,boundingBoxRef:Lt,boundingBoxPadding:rn,rootMenuRef:Ce,rootAnchorRef:ir,scrollNodesRef:$t,reposition:Vt,viewScroll:Sr,submenuCloseDelay:pt}=R.useContext(Ic),{submenuCtx:In,reposSubmenu:An=A}=R.useContext($p),Ke=R.useRef(),on=R.useRef(),Tn=R.useRef(!1),{hoverItem:at,dispatch:vt,updateItems:Gn}=CE(Ke),Qe=Rp(k),bt=Fo(pe,"open"),St=Fo(pe,"close"),P=$t.current,W=ne=>{switch(ne.key){case zn.HOME:vt(mt.FIRST);break;case zn.END:vt(mt.LAST);break;case zn.UP:vt(mt.DECREASE,at);break;case zn.DOWN:vt(mt.INCREASE,at);break;case zn.SPACE:ne.target&&ne.target.className.indexOf(as)!==-1&&ne.preventDefault();return;default:return}ne.preventDefault(),ne.stopPropagation()},U=()=>{k==="closing"&&xt(),En(G)},ee=ne=>{ne.stopPropagation(),Pt.on(pt,()=>{vt(mt.RESET),Ke.current.focus(Ac)})},le=ne=>{ne.target===ne.currentTarget&&Pt.off()},Be=R.useCallback(ne=>{const Y=Ke.current,K=f.current;if(!Y||!K)return;const te=c?c.current?.getBoundingClientRect():s?{left:s.x,right:s.x,top:s.y,bottom:s.y,width:0,height:0}:null;if(!te){process.env.NODE_ENV!=="production"&&console.warn("[React-Menu] Menu might not be positioned properly as one of the anchorRef or anchorPoint prop should be provided. If `anchorRef` is provided, the anchor must be mounted before menu is open.");return}P.menu||(P.menu=(Lt?Lt.current:Ec(Ce.current))||window);const X=ME(K,Y,P.menu,rn);let{arrowX:Ee,arrowY:He,x:et,y:yt,computedDirection:Ji}=jE({arrow:r,align:b,direction:w,gap:ye,shift:L,position:y,anchorRect:te,arrowRef:on,positionHelpers:X});const{menuRect:Xo}=X,Ki=Xo.height;if(!ne&&O!=="visible"){const{getTopOverflow:Zo,getBottomOverflow:zf}=X;let Or,Qo;const ea=zf(yt);if(ea>0)Or=Ki-ea,Qo=ea;else{const Xi=Zo(yt);Xi<0&&(Or=Ki+Xi,Qo=0-Xi,Or>=0&&(yt-=Xi))}Or>=0&&xt({height:Or,overflowAmt:Qo})}r&&ht({x:Ee,y:He}),he({x:et,y:yt}),nn(Ji)},[r,b,rn,w,ye,L,y,O,s,c,f,Lt,Ce,P]);ss(()=>{Qe&&(Be(),Tn.current&&wr()),Tn.current=Qe},[Qe,Be,An]),ss(()=>{ft&&!S&&(Ke.current.scrollTop=0)},[ft,S]),ss(()=>Gn,[Gn]),R.useEffect(()=>{let{menu:ne}=P;if(!Qe||!ne)return;if(ne=ne.addEventListener?ne:window,!P.anchors){P.anchors=[];let X=Ec(ir&&ir.current);for(;X&&X!==ne;)P.anchors.push(X),X=Ec(X)}let Y=Sr;if(P.anchors.length&&Y==="initial"&&(Y="auto"),Y==="initial")return;const K=()=>{Y==="auto"?Lp(()=>Be(!0)):En(ae,{reason:$o.SCROLL})},te=P.anchors.concat(Sr!=="initial"?ne:[]);return te.forEach(X=>X.addEventListener("scroll",K)),()=>te.forEach(X=>X.removeEventListener("scroll",K))},[ir,P,Qe,ae,Sr,Be]);const nt=!!ft&&ft.overflowAmt>0;R.useEffect(()=>{if(nt||!Qe||!v)return;const ne=()=>Lp(Be),Y=v.current;return Y.addEventListener("scroll",ne),()=>Y.removeEventListener("scroll",ne)},[Qe,nt,v,Be]),R.useEffect(()=>{if(!Qe||typeof ResizeObserver!="function"||Vt==="initial")return;const ne=[],Y=new ResizeObserver(X=>X.forEach(({target:Ee})=>{ne.indexOf(Ee)<0?ne.push(Ee):ho.flushSync(()=>{Be(),wr()})})),K={box:"border-box"};Y.observe(Ke.current,K);const te=c?.current;return te&&Y.observe(te,K),()=>Y.disconnect()},[Qe,Vt,c,Be]),R.useEffect(()=>{if(!Qe){vt(mt.RESET),St||xt();return}const{position:ne,alwaysUpdate:Y}=q||{},K=()=>{ne===Vo.FIRST?vt(mt.FIRST):ne===Vo.LAST?vt(mt.LAST):ne>=-1&&vt(mt.SET_INDEX,void 0,ne)};if(Y)K();else if(x){const te=setTimeout(()=>{const X=Ke.current;X&&!X.contains(document.activeElement)&&(X.focus(Ac),K())},bt?170:100);return()=>clearTimeout(te)}},[Qe,bt,St,x,q,vt]);const Nt=R.useMemo(()=>({isParentOpen:Qe,submenuCtx:Pt,dispatch:vt,updateItems:Gn}),[Qe,Pt,vt,Gn]);let it,I;ft&&(S?I=ft.overflowAmt:it=ft.height);const N=R.useMemo(()=>({reposSubmenu:Le,submenuCtx:Pt,overflow:O,overflowAmt:I,parentMenuRef:Ke,parentDir:ue}),[Le,Pt,O,I,ue]),C=it>=0?{maxHeight:it,overflow:O}:void 0,j=R.useMemo(()=>({state:k,align:b,dir:ue}),[k,b,ue]),Z=R.useMemo(()=>({dir:ue}),[ue]),_e=os({block:as,element:OE,modifiers:Z,className:o.className}),Me=Q.jsxs("ul",{role:"menu","aria-label":n,...kp(oe),...is({onPointerEnter:In?.off,onPointerMove:ee,onPointerLeave:le,onKeyDown:W,onAnimationEnd:U},ce),ref:Tc(p,Ke),className:os({block:as,modifiers:j,className:e}),style:{...t,...C,margin:0,display:k==="closed"?"none":void 0,position:Wp,left:Se.x,top:Se.y},children:[r&&Q.jsx("li",{"aria-hidden":!0,...o,className:_e,style:{display:"block",position:Wp,left:ct.x,top:ct.y,...o.style},ref:on}),Q.jsx($p.Provider,{value:N,children:Q.jsx(Fp.Provider,{value:Nt,children:Q.jsx(jp.Provider,{value:at,children:En(F,j)})})})]});return d?Q.jsx(NE,{...d,isOpen:Qe,children:Me}):Me},qp=R.forwardRef(function({"aria-label":e,className:t,containerProps:r,initialMounted:o,unmountOnClose:s,transition:c,transitionTimeout:f,boundingBoxRef:d,boundingBoxPadding:p,reposition:v="auto",submenuOpenDelay:b=300,submenuCloseDelay:w=150,viewScroll:y="initial",portal:O,theming:S,onItemClick:A,...x},k){const G=R.useRef(null),oe=R.useRef({}),{anchorRef:q,state:ye,onClose:L}=x,F=R.useMemo(()=>({initialMounted:o,unmountOnClose:s,transition:c,transitionTimeout:f,boundingBoxRef:d,boundingBoxPadding:p,rootMenuRef:G,rootAnchorRef:q,scrollNodesRef:oe,reposition:v,viewScroll:y,submenuOpenDelay:b,submenuCloseDelay:w}),[o,s,c,f,q,d,p,v,y,b,w]),ae=R.useMemo(()=>({handleClick(ce,Se){ce.stopPropagation||En(A,ce);let he=ce.keepOpen;he===void 0&&(he=Se&&ce.key===zn.SPACE),he||En(L,{value:ce.value,key:ce.key,reason:$o.CLICK})},handleClose(ce){En(L,{key:ce,reason:$o.CLICK})}}),[A,L]);if(!ye)return null;const we=Q.jsx(Ic.Provider,{value:F,children:Q.jsx(Vp.Provider,{value:ae,children:Q.jsx(FE,{...x,ariaLabel:e||"Menu",externalRef:k,containerRef:G,containerProps:{className:t,containerRef:G,containerProps:r,theming:S,transition:c,onClose:L}})})});return O===!0&&typeof document<"u"?ho.createPortal(we,document.body):O?O.target?ho.createPortal(we,O.target):O.stablePosition?null:we:we}),xc=0,Nc=1,us=2,cs=3,fs=4,$E=5,Gp=6,VE=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],Yp=n=>({_s:n,status:VE[n],isEnter:n<cs,isMounted:n!==Gp,isResolved:n===us||n>fs}),Dc=n=>n?Gp:$E,WE=(n,e)=>{switch(n){case Nc:case xc:return us;case fs:case cs:return Dc(e)}},UE=n=>typeof n=="object"?[n.enter,n.exit]:[n,n],Cc=setTimeout,zE=(n,e)=>Cc(()=>{isNaN(document.body.offsetTop)||n(e+1)},0),Jp=(n,e,t,r,o)=>{clearTimeout(r.current);const s=Yp(n);e(s),t.current=s,o&&o({current:s})},HE=({enter:n=!0,exit:e=!0,preEnter:t,preExit:r,timeout:o,initialEntered:s,mountOnEnter:c,unmountOnExit:f,onStateChange:d}={})=>{const[p,v]=R.useState(()=>Yp(s?us:Dc(c))),b=R.useRef(p),w=R.useRef(0),[y,O]=UE(o),S=R.useCallback(()=>{const A=WE(b.current._s,f);A&&Jp(A,v,b,w,d)},[d,f]);return[p,R.useCallback(A=>{const x=G=>{switch(Jp(G,v,b,w,d),G){case Nc:y>=0&&(w.current=Cc(S,y));break;case fs:O>=0&&(w.current=Cc(S,O));break;case xc:case cs:w.current=zE(x,G);break}},k=b.current.isEnter;typeof A!="boolean"&&(A=!k),A?!k&&x(n?t?xc:Nc:us):k&&x(e?r?cs:fs:Dc(f))},[S,d,n,e,t,r,y,O,f]),S]},Pc=({initialOpen:n,initialMounted:e,unmountOnClose:t,transition:r,transitionTimeout:o=500,onMenuChange:s}={})=>{const c=Fo(r,"open"),f=Fo(r,"close"),[{status:d},p,v]=HE({initialEntered:n,mountOnEnter:!e,unmountOnExit:t,timeout:o,enter:c,exit:f,onStateChange:R.useCallback(({current:{isEnter:b,isResolved:w}})=>{!s||b&&c&&w||!b&&f&&w||s({open:b})},[s,c,f])});return[{state:AE[d],endTransition:v},p]},qE=n=>{const[e,t]=Pc(n),[r,o]=R.useState(),s=(c,f)=>{o({position:c,alwaysUpdate:f}),t(!0)};return[{menuItemFocus:r,...e},t,s]},GE=(n,e)=>{if(process.env.NODE_ENV!=="production"&&typeof e!="function")throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[t]=R.useState({});return{onMouseDown:()=>{t.v=n&&n!=="closed"},onClick:r=>t.v?t.v=!1:e(!0,r)}},YE=parseInt(R.version)<19,Kp=R.forwardRef(function({"aria-label":e,captureFocus:t,initialOpen:r,menuButton:o,instanceRef:s,onMenuChange:c,...f},d){const[p,v,b]=qE({...f,onMenuChange:c}),{state:w}=p,y=Rp(w),O=R.useRef(null),S=GE(w,(q,ye)=>b(ye.detail?void 0:Vo.FIRST)),A=R.useCallback(q=>{v(!1),q.key&&O.current.focus()},[v]),x=q=>{switch(q.key){case zn.UP:b(Vo.LAST);break;case zn.DOWN:b(Vo.FIRST);break;default:return}q.preventDefault()},k=En(o,{open:y});if(!k||!k.type)throw new Error("Menu requires a menuButton prop.");const G={...is({onKeyDown:x,...S},k.props),ref:Tc(YE?k.ref:k.props.ref,O)};_E(k.type)==="MenuButton"&&(G.isOpen=y);const oe=R.cloneElement(k,G);return R.useImperativeHandle(s,()=>({openMenu:b,closeMenu:()=>v(!1)})),Q.jsxs(R.Fragment,{children:[oe,Q.jsx(qp,{...f,...p,"aria-label":e||(typeof k.props.children=="string"?k.props.children:"Menu"),anchorRef:O,ref:d,onClose:A})]})}),JE=(n,e)=>{const t=R.memo(e),r=R.forwardRef((o,s)=>{const c=R.useRef(null);return Q.jsx(t,{...o,itemRef:c,externalRef:s,isHovering:R.useContext(jp)===c.current})});return r.displayName=`WithHovering(${n})`,r},KE=n=>{const[e,t]=R.useState(!1);return R.useEffect(()=>{!n&&t(!1)},[n]),[e,()=>!e&&t(!0),()=>t(!1)]},XE=(n,e,t)=>{ss(()=>{if(process.env.NODE_ENV!=="production"&&!t)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${e.current.outerHTML}`);if(n)return;const r=e.current;return t(r,!0),()=>{t(r)}},[n,e,t])},ZE=(n,e,t,r)=>{const[o,s,c]=KE(t),{submenuCloseDelay:f}=R.useContext(Ic),{isParentOpen:d,submenuCtx:p,dispatch:v,updateItems:b}=R.useContext(Fp),w=()=>{!t&&!r&&v(mt.SET,n.current)},y=()=>{!r&&v(mt.UNSET,n.current)},O=x=>{t&&!x.currentTarget.contains(x.relatedTarget)&&y()},S=x=>{r||(x.stopPropagation(),s(),p.on(f,w,w))},A=(x,k)=>{c(),p.off(),!k&&y()};return XE(r,n,b),R.useEffect(()=>{t&&d&&e.current&&e.current.focus()},[e,t,d]),{mouseOver:o,setHover:w,onBlur:O,onPointerMove:S,onPointerLeave:A}},ls=JE("MenuItem",function({className:e,value:t,href:r,type:o,checked:s,disabled:c,children:f,onClick:d,isHovering:p,itemRef:v,externalRef:b,...w}){const y=!!c,{mouseOver:O,setHover:S,...A}=ZE(v,v,p,y),x=R.useContext(Vp),k=R.useContext(IE),G=o==="radio",oe=o==="checkbox",q=!!r&&!y&&!G&&!oe,ye=G?k.value===t:oe?!!s:!1,L=Se=>{if(y){Se.stopPropagation(),Se.preventDefault();return}const he={value:t,syntheticEvent:Se};Se.key!==void 0&&(he.key=Se.key),oe&&(he.checked=!ye),G&&(he.name=k.name),En(d,he),G&&En(k.onRadioChange,he),x.handleClick(he,oe||G)},F=Se=>{if(p)switch(Se.key){case zn.ENTER:Se.preventDefault();case zn.SPACE:q?v.current.click():L(Se)}},ae=R.useMemo(()=>({type:o,disabled:y,hover:O||p,checked:ye,anchor:q}),[o,y,O,p,ye,q]),we=is({...A,onPointerDown:S,onKeyDown:F,onClick:L},w),ce={role:G?"menuitemradio":oe?"menuitemcheckbox":xE,"aria-checked":G||oe?ye:void 0,...kp(y,p),...we,ref:Tc(b,v),className:os({block:as,element:EE,modifiers:ae,className:e}),children:R.useMemo(()=>En(f,ae),[f,ae])};return q?Q.jsx("li",{role:TE,children:Q.jsx("a",{href:r,...ce})}):Q.jsx("li",{...ce})});if(!R.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Xw)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function QE(n){n()}function e1(n){n||(n=QE,process.env.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),$w({reactionScheduler:n})}function t1(n){return $h(n)}var n1=1e4,r1=1e4,i1=(function(){function n(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(r){r===void 0&&(r=n1),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var o=Date.now();t.registrations.forEach(function(s,c){o-s.registeredAt>=r&&(t.finalize(s.value),t.registrations.delete(c))}),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(n.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){this.registrations.set(r,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(n.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(n.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,r1))}}),n})(),o1=typeof FinalizationRegistry<"u"?FinalizationRegistry:i1,Mc=new o1(function(n){var e;(e=n.reaction)===null||e===void 0||e.dispose(),n.reaction=null}),ds={exports:{}},Rc={};var Xp;function a1(){if(Xp)return Rc;Xp=1;var n=R;function e(b,w){return b===w&&(b!==0||1/b===1/w)||b!==b&&w!==w}var t=typeof Object.is=="function"?Object.is:e,r=n.useState,o=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function f(b,w){var y=w(),O=r({inst:{value:y,getSnapshot:w}}),S=O[0].inst,A=O[1];return s(function(){S.value=y,S.getSnapshot=w,d(S)&&A({inst:S})},[b,y,w]),o(function(){return d(S)&&A({inst:S}),b(function(){d(S)&&A({inst:S})})},[b]),c(y),y}function d(b){var w=b.getSnapshot;b=b.value;try{var y=w();return!t(b,y)}catch{return!0}}function p(b,w){return w()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:f;return Rc.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,Rc}var Lc={};var Zp;function s1(){return Zp||(Zp=1,process.env.NODE_ENV!=="production"&&(function(){function n(y,O){return y===O&&(y!==0||1/y===1/O)||y!==y&&O!==O}function e(y,O){v||o.startTransition===void 0||(v=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var S=O();if(!b){var A=O();s(S,A)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),b=!0)}A=c({inst:{value:S,getSnapshot:O}});var x=A[0].inst,k=A[1];return d(function(){x.value=S,x.getSnapshot=O,t(x)&&k({inst:x})},[y,S,O]),f(function(){return t(x)&&k({inst:x}),y(function(){t(x)&&k({inst:x})})},[y]),p(S),S}function t(y){var O=y.getSnapshot;y=y.value;try{var S=O();return!s(y,S)}catch{return!0}}function r(y,O){return O()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=R,s=typeof Object.is=="function"?Object.is:n,c=o.useState,f=o.useEffect,d=o.useLayoutEffect,p=o.useDebugValue,v=!1,b=!1,w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Lc.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:w,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Lc}var Qp;function u1(){return Qp||(Qp=1,process.env.NODE_ENV==="production"?ds.exports=a1():ds.exports=s1()),ds.exports}var c1=u1();function ev(n){n.reaction=new dr("observer".concat(n.name),function(){var e;n.stateVersion=Symbol(),(e=n.onStoreChange)===null||e===void 0||e.call(n)})}function f1(n,e){e===void 0&&(e="observed");var t=R.useRef(null);if(!t.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:e,subscribe:function(f){return Mc.unregister(r),r.onStoreChange=f,r.reaction||(ev(r),r.stateVersion=Symbol()),function(){var d;r.onStoreChange=null,(d=r.reaction)===null||d===void 0||d.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};t.current=r}var o=t.current;o.reaction||(ev(o),Mc.register(t,o,o)),R.useDebugValue(o.reaction,t1),c1.useSyncExternalStore(o.subscribe,o.getSnapshot,o.getSnapshot);var s,c;if(o.reaction.track(function(){try{s=n()}catch(f){c=f}}),c)throw c;return s}var kc,Bc,l1=!0,tv=!0,nv=typeof Symbol=="function"&&Symbol.for,d1=(Bc=(kc=Object.getOwnPropertyDescriptor(function(){},"name"))===null||kc===void 0?void 0:kc.configurable)!==null&&Bc!==void 0?Bc:!1,rv=nv?Symbol.for("react.forward_ref"):typeof R.forwardRef=="function"&&R.forwardRef(function(n){return null}).$$typeof,iv=nv?Symbol.for("react.memo"):typeof R.memo=="function"&&R.memo(function(n){return null}).$$typeof;function vr(n,e){var t;if(process.env.NODE_ENV,iv&&n.$$typeof===iv)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var r=(t=void 0)!==null&&t!==void 0?t:!1,o=n,s=n.displayName||n.name;if(rv&&n.$$typeof===rv&&(r=!0,o=n.render,typeof o!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var c=function(f,d){return f1(function(){return o(f,d)},s)};return c.displayName=n.displayName,d1&&Object.defineProperty(c,"name",{value:n.name,writable:!0,configurable:!0}),n.contextTypes&&(c.contextTypes=n.contextTypes,process.env.NODE_ENV!=="production"&&tv&&(tv=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),r&&(c=R.forwardRef(c)),c=R.memo(c),p1(n,c),process.env.NODE_ENV!=="production"&&Object.defineProperty(c,"contextTypes",{set:function(){var f,d;throw new Error("[mobx-react-lite] `".concat(this.displayName||((f=this.type)===null||f===void 0?void 0:f.displayName)||((d=this.type)===null||d===void 0?void 0:d.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),c}var h1={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function p1(n,e){Object.keys(n).forEach(function(t){h1[t]||Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}process.env.NODE_ENV;var jc;e1(ho.unstable_batchedUpdates),jc=Mc.finalizeAllImmediately;function Fc(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function v1(n){if(Array.isArray(n))return n}function g1(n){if(Array.isArray(n))return Fc(n)}function m1(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function b1(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,av(r.key),r)}}function y1(n,e,t){return e&&b1(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function hs(n,e){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=$c(n))||e){t&&(n=t);var r=0,o=function(){};return{s:o,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
97
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,c=!0,f=!1;return{s:function(){t=t.call(n)},n:function(){var d=t.next();return c=d.done,d},e:function(d){f=!0,s=d},f:function(){try{c||t.return==null||t.return()}finally{if(f)throw s}}}}function Te(n,e,t){return(e=av(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function _1(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function w1(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,o,s,c,f=[],d=!0,p=!1;try{if(s=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;d=!1}else for(;!(d=(r=s.call(t)).done)&&(f.push(r.value),f.length!==e);d=!0);}catch(v){p=!0,o=v}finally{try{if(!d&&t.return!=null&&(c=t.return(),Object(c)!==c))return}finally{if(p)throw o}}return f}}function S1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
98
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
99
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ov(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,r)}return t}function J(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ov(Object(t),!0).forEach(function(r){Te(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ov(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function ps(n,e){return v1(n)||w1(n,e)||$c(n,e)||S1()}function Hn(n){return g1(n)||_1(n)||$c(n)||O1()}function E1(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function av(n){var e=E1(n,"string");return typeof e=="symbol"?e:e+""}function vs(n){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vs(n)}function $c(n,e){if(n){if(typeof n=="string")return Fc(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Fc(n,e):void 0}}var sv=function(){},Vc={},uv={},cv=null,fv={mark:sv,measure:sv};try{typeof window<"u"&&(Vc=window),typeof document<"u"&&(uv=document),typeof MutationObserver<"u"&&(cv=MutationObserver),typeof performance<"u"&&(fv=performance)}catch{}var I1=Vc.navigator||{},lv=I1.userAgent,dv=lv===void 0?"":lv,Vr=Vc,Ze=uv,hv=cv,gs=fv;Vr.document;var gr=!!Ze.documentElement&&!!Ze.head&&typeof Ze.addEventListener=="function"&&typeof Ze.createElement=="function",pv=~dv.indexOf("MSIE")||~dv.indexOf("Trident/"),Wc,A1=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,T1=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,vv={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},x1={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},gv=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],Tt="classic",Wo="duotone",mv="sharp",bv="sharp-duotone",yv="chisel",_v="etch",wv="jelly",Sv="jelly-duo",Ov="jelly-fill",Ev="notdog",Iv="notdog-duo",Av="slab",Tv="slab-press",xv="thumbprint",Nv="utility",Dv="utility-duo",Cv="utility-fill",Pv="whiteboard",N1="Classic",D1="Duotone",C1="Sharp",P1="Sharp Duotone",M1="Chisel",R1="Etch",L1="Jelly",k1="Jelly Duo",B1="Jelly Fill",j1="Notdog",F1="Notdog Duo",$1="Slab",V1="Slab Press",W1="Thumbprint",U1="Utility",z1="Utility Duo",H1="Utility Fill",q1="Whiteboard",Mv=[Tt,Wo,mv,bv,yv,_v,wv,Sv,Ov,Ev,Iv,Av,Tv,xv,Nv,Dv,Cv,Pv];Wc={},Te(Te(Te(Te(Te(Te(Te(Te(Te(Te(Wc,Tt,N1),Wo,D1),mv,C1),bv,P1),yv,M1),_v,R1),wv,L1),Sv,k1),Ov,B1),Ev,j1),Te(Te(Te(Te(Te(Te(Te(Te(Wc,Iv,F1),Av,$1),Tv,V1),xv,W1),Nv,U1),Dv,z1),Cv,H1),Pv,q1);var G1={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},Y1={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},J1=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),K1={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},Rv=["fak","fa-kit","fakd","fa-kit-duotone"],Lv={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},X1=["kit"],Z1="kit",Q1="kit-duotone",eI="Kit",tI="Kit Duotone";Te(Te({},Z1,eI),Q1,tI);var nI={kit:{"fa-kit":"fak"}},rI={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},iI={kit:{fak:"fa-kit"}},kv={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Uc,ms={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},oI=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],aI="classic",sI="duotone",uI="sharp",cI="sharp-duotone",fI="chisel",lI="etch",dI="jelly",hI="jelly-duo",pI="jelly-fill",vI="notdog",gI="notdog-duo",mI="slab",bI="slab-press",yI="thumbprint",_I="utility",wI="utility-duo",SI="utility-fill",OI="whiteboard",EI="Classic",II="Duotone",AI="Sharp",TI="Sharp Duotone",xI="Chisel",NI="Etch",DI="Jelly",CI="Jelly Duo",PI="Jelly Fill",MI="Notdog",RI="Notdog Duo",LI="Slab",kI="Slab Press",BI="Thumbprint",jI="Utility",FI="Utility Duo",$I="Utility Fill",VI="Whiteboard";Uc={},Te(Te(Te(Te(Te(Te(Te(Te(Te(Te(Uc,aI,EI),sI,II),uI,AI),cI,TI),fI,xI),lI,NI),dI,DI),hI,CI),pI,PI),vI,MI),Te(Te(Te(Te(Te(Te(Te(Te(Uc,gI,RI),mI,LI),bI,kI),yI,BI),_I,jI),wI,FI),SI,$I),OI,VI);var WI="kit",UI="kit-duotone",zI="Kit",HI="Kit Duotone";Te(Te({},WI,zI),UI,HI);var qI={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},GI={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},zc={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},YI=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],Bv=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(oI,YI),JI=["solid","regular","light","thin","duotone","brands","semibold"],jv=[1,2,3,4,5,6,7,8,9,10],KI=jv.concat([11,12,13,14,15,16,17,18,19,20]),XI=["aw","fw","pull-left","pull-right"],ZI=[].concat(Hn(Object.keys(GI)),JI,XI,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",ms.GROUP,ms.SWAP_OPACITY,ms.PRIMARY,ms.SECONDARY]).concat(jv.map(function(n){return"".concat(n,"x")})).concat(KI.map(function(n){return"w-".concat(n)})),QI={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},mr="___FONT_AWESOME___",Hc=16,Fv="fa",$v="svg-inline--fa",vi="data-fa-i2svg",qc="data-fa-pseudo-element",eA="data-fa-pseudo-element-pending",Gc="data-prefix",Yc="data-icon",Vv="fontawesome-i2svg",tA="async",nA=["HTML","HEAD","STYLE","SCRIPT"],Wv=["::before","::after",":before",":after"],Uv=(function(){try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Uo(n){return new Proxy(n,{get:function(t,r){return r in t?t[r]:t[Tt]}})}var zv=J({},vv);zv[Tt]=J(J(J(J({},{"fa-duotone":"duotone"}),vv[Tt]),Lv.kit),Lv["kit-duotone"]);var rA=Uo(zv),Jc=J({},K1);Jc[Tt]=J(J(J(J({},{duotone:"fad"}),Jc[Tt]),kv.kit),kv["kit-duotone"]);var Hv=Uo(Jc),Kc=J({},zc);Kc[Tt]=J(J({},Kc[Tt]),iI.kit);var Xc=Uo(Kc),Zc=J({},qI);Zc[Tt]=J(J({},Zc[Tt]),nI.kit),Uo(Zc);var iA=A1,qv="fa-layers-text",oA=T1,aA=J({},G1);Uo(aA);var sA=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Qc=x1,uA=[].concat(Hn(X1),Hn(ZI)),zo=Vr.FontAwesomeConfig||{};function cA(n){var e=Ze.querySelector("script["+n+"]");if(e)return e.getAttribute(n)}function fA(n){return n===""?!0:n==="false"?!1:n==="true"?!0:n}if(Ze&&typeof Ze.querySelector=="function"){var lA=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];lA.forEach(function(n){var e=ps(n,2),t=e[0],r=e[1],o=fA(cA(t));o!=null&&(zo[r]=o)})}var Gv={styleDefault:"solid",familyDefault:Tt,cssPrefix:Fv,replacementClass:$v,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};zo.familyPrefix&&(zo.cssPrefix=zo.familyPrefix);var Wi=J(J({},Gv),zo);Wi.autoReplaceSvg||(Wi.observeMutations=!1);var de={};Object.keys(Gv).forEach(function(n){Object.defineProperty(de,n,{enumerable:!0,set:function(t){Wi[n]=t,Ho.forEach(function(r){return r(de)})},get:function(){return Wi[n]}})}),Object.defineProperty(de,"familyPrefix",{enumerable:!0,set:function(e){Wi.cssPrefix=e,Ho.forEach(function(t){return t(de)})},get:function(){return Wi.cssPrefix}}),Vr.FontAwesomeConfig=de;var Ho=[];function dA(n){return Ho.push(n),function(){Ho.splice(Ho.indexOf(n),1)}}var Ui=Hc,rr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function hA(n){if(!(!n||!gr)){var e=Ze.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=n;for(var t=Ze.head.childNodes,r=null,o=t.length-1;o>-1;o--){var s=t[o],c=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(c)>-1&&(r=s)}return Ze.head.insertBefore(e,r),n}}var pA="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Yv(){for(var n=12,e="";n-- >0;)e+=pA[Math.random()*62|0];return e}function zi(n){for(var e=[],t=(n||[]).length>>>0;t--;)e[t]=n[t];return e}function ef(n){return n.classList?zi(n.classList):(n.getAttribute("class")||"").split(" ").filter(function(e){return e})}function Jv(n){return"".concat(n).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function vA(n){return Object.keys(n||{}).reduce(function(e,t){return e+"".concat(t,'="').concat(Jv(n[t]),'" ')},"").trim()}function bs(n){return Object.keys(n||{}).reduce(function(e,t){return e+"".concat(t,": ").concat(n[t].trim(),";")},"")}function tf(n){return n.size!==rr.size||n.x!==rr.x||n.y!==rr.y||n.rotate!==rr.rotate||n.flipX||n.flipY}function gA(n){var e=n.transform,t=n.containerWidth,r=n.iconWidth,o={transform:"translate(".concat(t/2," 256)")},s="translate(".concat(e.x*32,", ").concat(e.y*32,") "),c="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),f="rotate(".concat(e.rotate," 0 0)"),d={transform:"".concat(s," ").concat(c," ").concat(f)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:d,path:p}}function mA(n){var e=n.transform,t=n.width,r=t===void 0?Hc:t,o=n.height,s=o===void 0?Hc:o,c="";return pv?c+="translate(".concat(e.x/Ui-r/2,"em, ").concat(e.y/Ui-s/2,"em) "):c+="translate(calc(-50% + ".concat(e.x/Ui,"em), calc(-50% + ").concat(e.y/Ui,"em)) "),c+="scale(".concat(e.size/Ui*(e.flipX?-1:1),", ").concat(e.size/Ui*(e.flipY?-1:1),") "),c+="rotate(".concat(e.rotate,"deg) "),c}var bA=`:root, :host {
100
+ --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";
101
+ --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";
102
+ --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";
103
+ --fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";
104
+ --fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";
105
+ --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";
106
+ --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";
107
+ --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";
108
+ --fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";
109
+ --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";
110
+ --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";
111
+ --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";
112
+ --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";
113
+ --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";
114
+ --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";
115
+ --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";
116
+ --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";
117
+ --fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";
118
+ --fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";
119
+ --fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";
120
+ --fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";
121
+ --fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";
122
+ --fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";
123
+ --fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";
124
+ --fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";
125
+ --fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";
126
+ --fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";
127
+ --fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";
128
+ --fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";
129
+ --fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";
130
+ --fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";
131
+ }
132
+
133
+ .svg-inline--fa {
134
+ box-sizing: content-box;
135
+ display: var(--fa-display, inline-block);
136
+ height: 1em;
137
+ overflow: visible;
138
+ vertical-align: -0.125em;
139
+ width: var(--fa-width, 1.25em);
140
+ }
141
+ .svg-inline--fa.fa-2xs {
142
+ vertical-align: 0.1em;
143
+ }
144
+ .svg-inline--fa.fa-xs {
145
+ vertical-align: 0em;
146
+ }
147
+ .svg-inline--fa.fa-sm {
148
+ vertical-align: -0.0714285714em;
149
+ }
150
+ .svg-inline--fa.fa-lg {
151
+ vertical-align: -0.2em;
152
+ }
153
+ .svg-inline--fa.fa-xl {
154
+ vertical-align: -0.25em;
155
+ }
156
+ .svg-inline--fa.fa-2xl {
157
+ vertical-align: -0.3125em;
158
+ }
159
+ .svg-inline--fa.fa-pull-left,
160
+ .svg-inline--fa .fa-pull-start {
161
+ float: inline-start;
162
+ margin-inline-end: var(--fa-pull-margin, 0.3em);
163
+ }
164
+ .svg-inline--fa.fa-pull-right,
165
+ .svg-inline--fa .fa-pull-end {
166
+ float: inline-end;
167
+ margin-inline-start: var(--fa-pull-margin, 0.3em);
168
+ }
169
+ .svg-inline--fa.fa-li {
170
+ width: var(--fa-li-width, 2em);
171
+ inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
172
+ inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
173
+ }
174
+
175
+ .fa-layers-counter, .fa-layers-text {
176
+ display: inline-block;
177
+ position: absolute;
178
+ text-align: center;
179
+ }
180
+
181
+ .fa-layers {
182
+ display: inline-block;
183
+ height: 1em;
184
+ position: relative;
185
+ text-align: center;
186
+ vertical-align: -0.125em;
187
+ width: var(--fa-width, 1.25em);
188
+ }
189
+ .fa-layers .svg-inline--fa {
190
+ inset: 0;
191
+ margin: auto;
192
+ position: absolute;
193
+ transform-origin: center center;
194
+ }
195
+
196
+ .fa-layers-text {
197
+ left: 50%;
198
+ top: 50%;
199
+ transform: translate(-50%, -50%);
200
+ transform-origin: center center;
201
+ }
202
+
203
+ .fa-layers-counter {
204
+ background-color: var(--fa-counter-background-color, #ff253a);
205
+ border-radius: var(--fa-counter-border-radius, 1em);
206
+ box-sizing: border-box;
207
+ color: var(--fa-inverse, #fff);
208
+ line-height: var(--fa-counter-line-height, 1);
209
+ max-width: var(--fa-counter-max-width, 5em);
210
+ min-width: var(--fa-counter-min-width, 1.5em);
211
+ overflow: hidden;
212
+ padding: var(--fa-counter-padding, 0.25em 0.5em);
213
+ right: var(--fa-right, 0);
214
+ text-overflow: ellipsis;
215
+ top: var(--fa-top, 0);
216
+ transform: scale(var(--fa-counter-scale, 0.25));
217
+ transform-origin: top right;
218
+ }
219
+
220
+ .fa-layers-bottom-right {
221
+ bottom: var(--fa-bottom, 0);
222
+ right: var(--fa-right, 0);
223
+ top: auto;
224
+ transform: scale(var(--fa-layers-scale, 0.25));
225
+ transform-origin: bottom right;
226
+ }
227
+
228
+ .fa-layers-bottom-left {
229
+ bottom: var(--fa-bottom, 0);
230
+ left: var(--fa-left, 0);
231
+ right: auto;
232
+ top: auto;
233
+ transform: scale(var(--fa-layers-scale, 0.25));
234
+ transform-origin: bottom left;
235
+ }
236
+
237
+ .fa-layers-top-right {
238
+ top: var(--fa-top, 0);
239
+ right: var(--fa-right, 0);
240
+ transform: scale(var(--fa-layers-scale, 0.25));
241
+ transform-origin: top right;
242
+ }
243
+
244
+ .fa-layers-top-left {
245
+ left: var(--fa-left, 0);
246
+ right: auto;
247
+ top: var(--fa-top, 0);
248
+ transform: scale(var(--fa-layers-scale, 0.25));
249
+ transform-origin: top left;
250
+ }
251
+
252
+ .fa-1x {
253
+ font-size: 1em;
254
+ }
255
+
256
+ .fa-2x {
257
+ font-size: 2em;
258
+ }
259
+
260
+ .fa-3x {
261
+ font-size: 3em;
262
+ }
263
+
264
+ .fa-4x {
265
+ font-size: 4em;
266
+ }
267
+
268
+ .fa-5x {
269
+ font-size: 5em;
270
+ }
271
+
272
+ .fa-6x {
273
+ font-size: 6em;
274
+ }
275
+
276
+ .fa-7x {
277
+ font-size: 7em;
278
+ }
279
+
280
+ .fa-8x {
281
+ font-size: 8em;
282
+ }
283
+
284
+ .fa-9x {
285
+ font-size: 9em;
286
+ }
287
+
288
+ .fa-10x {
289
+ font-size: 10em;
290
+ }
291
+
292
+ .fa-2xs {
293
+ font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
294
+ line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
295
+ vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
296
+ }
297
+
298
+ .fa-xs {
299
+ font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
300
+ line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
301
+ vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
302
+ }
303
+
304
+ .fa-sm {
305
+ font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
306
+ line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
307
+ vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
308
+ }
309
+
310
+ .fa-lg {
311
+ font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
312
+ line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
313
+ vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
314
+ }
315
+
316
+ .fa-xl {
317
+ font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
318
+ line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
319
+ vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
320
+ }
321
+
322
+ .fa-2xl {
323
+ font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
324
+ line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
325
+ vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
326
+ }
327
+
328
+ .fa-width-auto {
329
+ --fa-width: auto;
330
+ }
331
+
332
+ .fa-fw,
333
+ .fa-width-fixed {
334
+ --fa-width: 1.25em;
335
+ }
336
+
337
+ .fa-ul {
338
+ list-style-type: none;
339
+ margin-inline-start: var(--fa-li-margin, 2.5em);
340
+ padding-inline-start: 0;
341
+ }
342
+ .fa-ul > li {
343
+ position: relative;
344
+ }
345
+
346
+ .fa-li {
347
+ inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
348
+ position: absolute;
349
+ text-align: center;
350
+ width: var(--fa-li-width, 2em);
351
+ line-height: inherit;
352
+ }
353
+
354
+ /* Heads Up: Bordered Icons will not be supported in the future!
355
+ - This feature will be deprecated in the next major release of Font Awesome (v8)!
356
+ - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
357
+ */
358
+ /* Notes:
359
+ * --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
360
+ * --@{v.$css-prefix}-border-padding =
361
+ ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
362
+ ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
363
+ */
364
+ .fa-border {
365
+ border-color: var(--fa-border-color, #eee);
366
+ border-radius: var(--fa-border-radius, 0.1em);
367
+ border-style: var(--fa-border-style, solid);
368
+ border-width: var(--fa-border-width, 0.0625em);
369
+ box-sizing: var(--fa-border-box-sizing, content-box);
370
+ padding: var(--fa-border-padding, 0.1875em 0.25em);
371
+ }
372
+
373
+ .fa-pull-left,
374
+ .fa-pull-start {
375
+ float: inline-start;
376
+ margin-inline-end: var(--fa-pull-margin, 0.3em);
377
+ }
378
+
379
+ .fa-pull-right,
380
+ .fa-pull-end {
381
+ float: inline-end;
382
+ margin-inline-start: var(--fa-pull-margin, 0.3em);
383
+ }
384
+
385
+ .fa-beat {
386
+ animation-name: fa-beat;
387
+ animation-delay: var(--fa-animation-delay, 0s);
388
+ animation-direction: var(--fa-animation-direction, normal);
389
+ animation-duration: var(--fa-animation-duration, 1s);
390
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
391
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
392
+ }
393
+
394
+ .fa-bounce {
395
+ animation-name: fa-bounce;
396
+ animation-delay: var(--fa-animation-delay, 0s);
397
+ animation-direction: var(--fa-animation-direction, normal);
398
+ animation-duration: var(--fa-animation-duration, 1s);
399
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
400
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
401
+ }
402
+
403
+ .fa-fade {
404
+ animation-name: fa-fade;
405
+ animation-delay: var(--fa-animation-delay, 0s);
406
+ animation-direction: var(--fa-animation-direction, normal);
407
+ animation-duration: var(--fa-animation-duration, 1s);
408
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
409
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
410
+ }
411
+
412
+ .fa-beat-fade {
413
+ animation-name: fa-beat-fade;
414
+ animation-delay: var(--fa-animation-delay, 0s);
415
+ animation-direction: var(--fa-animation-direction, normal);
416
+ animation-duration: var(--fa-animation-duration, 1s);
417
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
418
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
419
+ }
420
+
421
+ .fa-flip {
422
+ animation-name: fa-flip;
423
+ animation-delay: var(--fa-animation-delay, 0s);
424
+ animation-direction: var(--fa-animation-direction, normal);
425
+ animation-duration: var(--fa-animation-duration, 1s);
426
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
427
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
428
+ }
429
+
430
+ .fa-shake {
431
+ animation-name: fa-shake;
432
+ animation-delay: var(--fa-animation-delay, 0s);
433
+ animation-direction: var(--fa-animation-direction, normal);
434
+ animation-duration: var(--fa-animation-duration, 1s);
435
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
436
+ animation-timing-function: var(--fa-animation-timing, linear);
437
+ }
438
+
439
+ .fa-spin {
440
+ animation-name: fa-spin;
441
+ animation-delay: var(--fa-animation-delay, 0s);
442
+ animation-direction: var(--fa-animation-direction, normal);
443
+ animation-duration: var(--fa-animation-duration, 2s);
444
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
445
+ animation-timing-function: var(--fa-animation-timing, linear);
446
+ }
447
+
448
+ .fa-spin-reverse {
449
+ --fa-animation-direction: reverse;
450
+ }
451
+
452
+ .fa-pulse,
453
+ .fa-spin-pulse {
454
+ animation-name: fa-spin;
455
+ animation-direction: var(--fa-animation-direction, normal);
456
+ animation-duration: var(--fa-animation-duration, 1s);
457
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
458
+ animation-timing-function: var(--fa-animation-timing, steps(8));
459
+ }
460
+
461
+ @media (prefers-reduced-motion: reduce) {
462
+ .fa-beat,
463
+ .fa-bounce,
464
+ .fa-fade,
465
+ .fa-beat-fade,
466
+ .fa-flip,
467
+ .fa-pulse,
468
+ .fa-shake,
469
+ .fa-spin,
470
+ .fa-spin-pulse {
471
+ animation: none !important;
472
+ transition: none !important;
473
+ }
474
+ }
475
+ @keyframes fa-beat {
476
+ 0%, 90% {
477
+ transform: scale(1);
478
+ }
479
+ 45% {
480
+ transform: scale(var(--fa-beat-scale, 1.25));
481
+ }
482
+ }
483
+ @keyframes fa-bounce {
484
+ 0% {
485
+ transform: scale(1, 1) translateY(0);
486
+ }
487
+ 10% {
488
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
489
+ }
490
+ 30% {
491
+ transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
492
+ }
493
+ 50% {
494
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
495
+ }
496
+ 57% {
497
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
498
+ }
499
+ 64% {
500
+ transform: scale(1, 1) translateY(0);
501
+ }
502
+ 100% {
503
+ transform: scale(1, 1) translateY(0);
504
+ }
505
+ }
506
+ @keyframes fa-fade {
507
+ 50% {
508
+ opacity: var(--fa-fade-opacity, 0.4);
509
+ }
510
+ }
511
+ @keyframes fa-beat-fade {
512
+ 0%, 100% {
513
+ opacity: var(--fa-beat-fade-opacity, 0.4);
514
+ transform: scale(1);
515
+ }
516
+ 50% {
517
+ opacity: 1;
518
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
519
+ }
520
+ }
521
+ @keyframes fa-flip {
522
+ 50% {
523
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
524
+ }
525
+ }
526
+ @keyframes fa-shake {
527
+ 0% {
528
+ transform: rotate(-15deg);
529
+ }
530
+ 4% {
531
+ transform: rotate(15deg);
532
+ }
533
+ 8%, 24% {
534
+ transform: rotate(-18deg);
535
+ }
536
+ 12%, 28% {
537
+ transform: rotate(18deg);
538
+ }
539
+ 16% {
540
+ transform: rotate(-22deg);
541
+ }
542
+ 20% {
543
+ transform: rotate(22deg);
544
+ }
545
+ 32% {
546
+ transform: rotate(-12deg);
547
+ }
548
+ 36% {
549
+ transform: rotate(12deg);
550
+ }
551
+ 40%, 100% {
552
+ transform: rotate(0deg);
553
+ }
554
+ }
555
+ @keyframes fa-spin {
556
+ 0% {
557
+ transform: rotate(0deg);
558
+ }
559
+ 100% {
560
+ transform: rotate(360deg);
561
+ }
562
+ }
563
+ .fa-rotate-90 {
564
+ transform: rotate(90deg);
565
+ }
566
+
567
+ .fa-rotate-180 {
568
+ transform: rotate(180deg);
569
+ }
570
+
571
+ .fa-rotate-270 {
572
+ transform: rotate(270deg);
573
+ }
574
+
575
+ .fa-flip-horizontal {
576
+ transform: scale(-1, 1);
577
+ }
578
+
579
+ .fa-flip-vertical {
580
+ transform: scale(1, -1);
581
+ }
582
+
583
+ .fa-flip-both,
584
+ .fa-flip-horizontal.fa-flip-vertical {
585
+ transform: scale(-1, -1);
586
+ }
587
+
588
+ .fa-rotate-by {
589
+ transform: rotate(var(--fa-rotate-angle, 0));
590
+ }
591
+
592
+ .svg-inline--fa .fa-primary {
593
+ fill: var(--fa-primary-color, currentColor);
594
+ opacity: var(--fa-primary-opacity, 1);
595
+ }
596
+
597
+ .svg-inline--fa .fa-secondary {
598
+ fill: var(--fa-secondary-color, currentColor);
599
+ opacity: var(--fa-secondary-opacity, 0.4);
600
+ }
601
+
602
+ .svg-inline--fa.fa-swap-opacity .fa-primary {
603
+ opacity: var(--fa-secondary-opacity, 0.4);
604
+ }
605
+
606
+ .svg-inline--fa.fa-swap-opacity .fa-secondary {
607
+ opacity: var(--fa-primary-opacity, 1);
608
+ }
609
+
610
+ .svg-inline--fa mask .fa-primary,
611
+ .svg-inline--fa mask .fa-secondary {
612
+ fill: black;
613
+ }
614
+
615
+ .svg-inline--fa.fa-inverse {
616
+ fill: var(--fa-inverse, #fff);
617
+ }
618
+
619
+ .fa-stack {
620
+ display: inline-block;
621
+ height: 2em;
622
+ line-height: 2em;
623
+ position: relative;
624
+ vertical-align: middle;
625
+ width: 2.5em;
626
+ }
627
+
628
+ .fa-inverse {
629
+ color: var(--fa-inverse, #fff);
630
+ }
631
+
632
+ .svg-inline--fa.fa-stack-1x {
633
+ --fa-width: 1.25em;
634
+ height: 1em;
635
+ width: var(--fa-width);
636
+ }
637
+ .svg-inline--fa.fa-stack-2x {
638
+ --fa-width: 2.5em;
639
+ height: 2em;
640
+ width: var(--fa-width);
641
+ }
642
+
643
+ .fa-stack-1x,
644
+ .fa-stack-2x {
645
+ inset: 0;
646
+ margin: auto;
647
+ position: absolute;
648
+ z-index: var(--fa-stack-z-index, auto);
649
+ }`;function Kv(){var n=Fv,e=$v,t=de.cssPrefix,r=de.replacementClass,o=bA;if(t!==n||r!==e){var s=new RegExp("\\.".concat(n,"\\-"),"g"),c=new RegExp("\\--".concat(n,"\\-"),"g"),f=new RegExp("\\.".concat(e),"g");o=o.replace(s,".".concat(t,"-")).replace(c,"--".concat(t,"-")).replace(f,".".concat(r))}return o}var Xv=!1;function nf(){de.autoAddCss&&!Xv&&(hA(Kv()),Xv=!0)}var yA={mixout:function(){return{dom:{css:Kv,insertCss:nf}}},hooks:function(){return{beforeDOMElementCreation:function(){nf()},beforeI2svg:function(){nf()}}}},br=Vr||{};br[mr]||(br[mr]={}),br[mr].styles||(br[mr].styles={}),br[mr].hooks||(br[mr].hooks={}),br[mr].shims||(br[mr].shims=[]);var qn=br[mr],Zv=[],Qv=function(){Ze.removeEventListener("DOMContentLoaded",Qv),ys=1,Zv.map(function(e){return e()})},ys=!1;gr&&(ys=(Ze.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ze.readyState),ys||Ze.addEventListener("DOMContentLoaded",Qv));function _A(n){gr&&(ys?setTimeout(n,0):Zv.push(n))}function qo(n){var e=n.tag,t=n.attributes,r=t===void 0?{}:t,o=n.children,s=o===void 0?[]:o;return typeof n=="string"?Jv(n):"<".concat(e," ").concat(vA(r),">").concat(s.map(qo).join(""),"</").concat(e,">")}function eg(n,e,t){if(n&&n[e]&&n[e][t])return{prefix:e,iconName:t,icon:n[e][t]}}var rf=function(e,t,r,o){var s=Object.keys(e),c=s.length,f=t,d,p,v;for(r===void 0?(d=1,v=e[s[0]]):(d=0,v=r);d<c;d++)p=s[d],v=f(v,e[p],p,e);return v};function tg(n){return Hn(n).length!==1?null:n.codePointAt(0).toString(16)}function ng(n){return Object.keys(n).reduce(function(e,t){var r=n[t],o=!!r.icon;return o?e[r.iconName]=r.icon:e[t]=r,e},{})}function of(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.skipHooks,o=r===void 0?!1:r,s=ng(e);typeof qn.hooks.addPack=="function"&&!o?qn.hooks.addPack(n,ng(e)):qn.styles[n]=J(J({},qn.styles[n]||{}),s),n==="fas"&&of("fa",e)}var Go=qn.styles,wA=qn.shims,rg=Object.keys(Xc),SA=rg.reduce(function(n,e){return n[e]=Object.keys(Xc[e]),n},{}),af=null,ig={},og={},ag={},sg={},ug={};function OA(n){return~uA.indexOf(n)}function EA(n,e){var t=e.split("-"),r=t[0],o=t.slice(1).join("-");return r===n&&o!==""&&!OA(o)?o:null}var cg=function(){var e=function(s){return rf(Go,function(c,f,d){return c[d]=rf(f,s,{}),c},{})};ig=e(function(o,s,c){if(s[3]&&(o[s[3]]=c),s[2]){var f=s[2].filter(function(d){return typeof d=="number"});f.forEach(function(d){o[d.toString(16)]=c})}return o}),og=e(function(o,s,c){if(o[c]=c,s[2]){var f=s[2].filter(function(d){return typeof d=="string"});f.forEach(function(d){o[d]=c})}return o}),ug=e(function(o,s,c){var f=s[2];return o[c]=c,f.forEach(function(d){o[d]=c}),o});var t="far"in Go||de.autoFetchSvg,r=rf(wA,function(o,s){var c=s[0],f=s[1],d=s[2];return f==="far"&&!t&&(f="fas"),typeof c=="string"&&(o.names[c]={prefix:f,iconName:d}),typeof c=="number"&&(o.unicodes[c.toString(16)]={prefix:f,iconName:d}),o},{names:{},unicodes:{}});ag=r.names,sg=r.unicodes,af=_s(de.styleDefault,{family:de.familyDefault})};dA(function(n){af=_s(n.styleDefault,{family:de.familyDefault})}),cg();function sf(n,e){return(ig[n]||{})[e]}function IA(n,e){return(og[n]||{})[e]}function gi(n,e){return(ug[n]||{})[e]}function fg(n){return ag[n]||{prefix:null,iconName:null}}function AA(n){var e=sg[n],t=sf("fas",n);return e||(t?{prefix:"fas",iconName:t}:null)||{prefix:null,iconName:null}}function Wr(){return af}var lg=function(){return{prefix:null,iconName:null,rest:[]}};function TA(n){var e=Tt,t=rg.reduce(function(r,o){return r[o]="".concat(de.cssPrefix,"-").concat(o),r},{});return Mv.forEach(function(r){(n.includes(t[r])||n.some(function(o){return SA[r].includes(o)}))&&(e=r)}),e}function _s(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.family,r=t===void 0?Tt:t,o=rA[r][n];if(r===Wo&&!n)return"fad";var s=Hv[r][n]||Hv[r][o],c=n in qn.styles?n:null,f=s||c||null;return f}function xA(n){var e=[],t=null;return n.forEach(function(r){var o=EA(de.cssPrefix,r);o?t=o:r&&e.push(r)}),{iconName:t,rest:e}}function dg(n){return n.sort().filter(function(e,t,r){return r.indexOf(e)===t})}var hg=Bv.concat(Rv);function ws(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.skipLookups,r=t===void 0?!1:t,o=null,s=dg(n.filter(function(y){return hg.includes(y)})),c=dg(n.filter(function(y){return!hg.includes(y)})),f=s.filter(function(y){return o=y,!gv.includes(y)}),d=ps(f,1),p=d[0],v=p===void 0?null:p,b=TA(s),w=J(J({},xA(c)),{},{prefix:_s(v,{family:b})});return J(J(J({},w),PA({values:n,family:b,styles:Go,config:de,canonical:w,givenPrefix:o})),NA(r,o,w))}function NA(n,e,t){var r=t.prefix,o=t.iconName;if(n||!r||!o)return{prefix:r,iconName:o};var s=e==="fa"?fg(o):{},c=gi(r,o);return o=s.iconName||c||o,r=s.prefix||r,r==="far"&&!Go.far&&Go.fas&&!de.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}var DA=Mv.filter(function(n){return n!==Tt||n!==Wo}),CA=Object.keys(zc).filter(function(n){return n!==Tt}).map(function(n){return Object.keys(zc[n])}).flat();function PA(n){var e=n.values,t=n.family,r=n.canonical,o=n.givenPrefix,s=o===void 0?"":o,c=n.styles,f=c===void 0?{}:c,d=n.config,p=d===void 0?{}:d,v=t===Wo,b=e.includes("fa-duotone")||e.includes("fad"),w=p.familyDefault==="duotone",y=r.prefix==="fad"||r.prefix==="fa-duotone";if(!v&&(b||w||y)&&(r.prefix="fad"),(e.includes("fa-brands")||e.includes("fab"))&&(r.prefix="fab"),!r.prefix&&DA.includes(t)){var O=Object.keys(f).find(function(A){return CA.includes(A)});if(O||p.autoFetchSvg){var S=J1.get(t).defaultShortPrefixId;r.prefix=S,r.iconName=gi(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||s==="fa")&&(r.prefix=Wr()||"fas"),r}var MA=(function(){function n(){m1(this,n),this.definitions={}}return y1(n,[{key:"add",value:function(){for(var t=this,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var c=o.reduce(this._pullDefinitions,{});Object.keys(c).forEach(function(f){t.definitions[f]=J(J({},t.definitions[f]||{}),c[f]),of(f,c[f]);var d=Xc[Tt][f];d&&of(d,c[f]),cg()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,r){var o=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(o).map(function(s){var c=o[s],f=c.prefix,d=c.iconName,p=c.icon,v=p[2];t[f]||(t[f]={}),v.length>0&&v.forEach(function(b){typeof b=="string"&&(t[f][b]=p)}),t[f][d]=p}),t}}])})(),pg=[],Hi={},qi={},RA=Object.keys(qi);function LA(n,e){var t=e.mixoutsTo;return pg=n,Hi={},Object.keys(qi).forEach(function(r){RA.indexOf(r)===-1&&delete qi[r]}),pg.forEach(function(r){var o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(function(c){typeof o[c]=="function"&&(t[c]=o[c]),vs(o[c])==="object"&&Object.keys(o[c]).forEach(function(f){t[c]||(t[c]={}),t[c][f]=o[c][f]})}),r.hooks){var s=r.hooks();Object.keys(s).forEach(function(c){Hi[c]||(Hi[c]=[]),Hi[c].push(s[c])})}r.provides&&r.provides(qi)}),t}function uf(n,e){for(var t=arguments.length,r=new Array(t>2?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];var s=Hi[n]||[];return s.forEach(function(c){e=c.apply(null,[e].concat(r))}),e}function mi(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];var o=Hi[n]||[];o.forEach(function(s){s.apply(null,t)})}function Ur(){var n=arguments[0],e=Array.prototype.slice.call(arguments,1);return qi[n]?qi[n].apply(null,e):void 0}function cf(n){n.prefix==="fa"&&(n.prefix="fas");var e=n.iconName,t=n.prefix||Wr();if(e)return e=gi(t,e)||e,eg(vg.definitions,t,e)||eg(qn.styles,t,e)}var vg=new MA,kA=function(){de.autoReplaceSvg=!1,de.observeMutations=!1,mi("noAuto")},BA={i2svg:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return gr?(mi("beforeI2svg",e),Ur("pseudoElements2svg",e),Ur("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot;de.autoReplaceSvg===!1&&(de.autoReplaceSvg=!0),de.observeMutations=!0,_A(function(){FA({autoReplaceSvgRoot:t}),mi("watch",e)})}},jA={icon:function(e){if(e===null)return null;if(vs(e)==="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:gi(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){var t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],r=_s(e[0]);return{prefix:r,iconName:gi(r,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(de.cssPrefix,"-"))>-1||e.match(iA))){var o=ws(e.split(" "),{skipLookups:!0});return{prefix:o.prefix||Wr(),iconName:gi(o.prefix,o.iconName)||o.iconName}}if(typeof e=="string"){var s=Wr();return{prefix:s,iconName:gi(s,e)||e}}}},tn={noAuto:kA,config:de,dom:BA,parse:jA,library:vg,findIconDefinition:cf,toHtml:qo},FA=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot,r=t===void 0?Ze:t;(Object.keys(qn.styles).length>0||de.autoFetchSvg)&&gr&&de.autoReplaceSvg&&tn.dom.i2svg({node:r})};function Ss(n,e){return Object.defineProperty(n,"abstract",{get:e}),Object.defineProperty(n,"html",{get:function(){return n.abstract.map(function(r){return qo(r)})}}),Object.defineProperty(n,"node",{get:function(){if(gr){var r=Ze.createElement("div");return r.innerHTML=n.html,r.children}}}),n}function $A(n){var e=n.children,t=n.main,r=n.mask,o=n.attributes,s=n.styles,c=n.transform;if(tf(c)&&t.found&&!r.found){var f=t.width,d=t.height,p={x:f/d/2,y:.5};o.style=bs(J(J({},s),{},{"transform-origin":"".concat(p.x+c.x/16,"em ").concat(p.y+c.y/16,"em")}))}return[{tag:"svg",attributes:o,children:e}]}function VA(n){var e=n.prefix,t=n.iconName,r=n.children,o=n.attributes,s=n.symbol,c=s===!0?"".concat(e,"-").concat(de.cssPrefix,"-").concat(t):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:J(J({},o),{},{id:c}),children:r}]}]}function WA(n){var e=["aria-label","aria-labelledby","title","role"];return e.some(function(t){return t in n})}function ff(n){var e=n.icons,t=e.main,r=e.mask,o=n.prefix,s=n.iconName,c=n.transform,f=n.symbol,d=n.maskId,p=n.extra,v=n.watchable,b=v===void 0?!1:v,w=r.found?r:t,y=w.width,O=w.height,S=[de.replacementClass,s?"".concat(de.cssPrefix,"-").concat(s):""].filter(function(q){return p.classes.indexOf(q)===-1}).filter(function(q){return q!==""||!!q}).concat(p.classes).join(" "),A={children:[],attributes:J(J({},p.attributes),{},{"data-prefix":o,"data-icon":s,class:S,role:p.attributes.role||"img",viewBox:"0 0 ".concat(y," ").concat(O)})};!WA(p.attributes)&&!p.attributes["aria-hidden"]&&(A.attributes["aria-hidden"]="true"),b&&(A.attributes[vi]="");var x=J(J({},A),{},{prefix:o,iconName:s,main:t,mask:r,maskId:d,transform:c,symbol:f,styles:J({},p.styles)}),k=r.found&&t.found?Ur("generateAbstractMask",x)||{children:[],attributes:{}}:Ur("generateAbstractIcon",x)||{children:[],attributes:{}},G=k.children,oe=k.attributes;return x.children=G,x.attributes=oe,f?VA(x):$A(x)}function gg(n){var e=n.content,t=n.width,r=n.height,o=n.transform,s=n.extra,c=n.watchable,f=c===void 0?!1:c,d=J(J({},s.attributes),{},{class:s.classes.join(" ")});f&&(d[vi]="");var p=J({},s.styles);tf(o)&&(p.transform=mA({transform:o,width:t,height:r}),p["-webkit-transform"]=p.transform);var v=bs(p);v.length>0&&(d.style=v);var b=[];return b.push({tag:"span",attributes:d,children:[e]}),b}function UA(n){var e=n.content,t=n.extra,r=J(J({},t.attributes),{},{class:t.classes.join(" ")}),o=bs(t.styles);o.length>0&&(r.style=o);var s=[];return s.push({tag:"span",attributes:r,children:[e]}),s}var lf=qn.styles;function df(n){var e=n[0],t=n[1],r=n.slice(4),o=ps(r,1),s=o[0],c=null;return Array.isArray(s)?c={tag:"g",attributes:{class:"".concat(de.cssPrefix,"-").concat(Qc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(de.cssPrefix,"-").concat(Qc.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(de.cssPrefix,"-").concat(Qc.PRIMARY),fill:"currentColor",d:s[1]}}]}:c={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:e,height:t,icon:c}}var zA={found:!1,width:512,height:512};function HA(n,e){!Uv&&!de.showMissingIcons&&n&&console.error('Icon with name "'.concat(n,'" and prefix "').concat(e,'" is missing.'))}function hf(n,e){var t=e;return e==="fa"&&de.styleDefault!==null&&(e=Wr()),new Promise(function(r,o){if(t==="fa"){var s=fg(n)||{};n=s.iconName||n,e=s.prefix||e}if(n&&e&&lf[e]&&lf[e][n]){var c=lf[e][n];return r(df(c))}HA(n,e),r(J(J({},zA),{},{icon:de.showMissingIcons&&n?Ur("missingIconAbstract")||{}:{}}))})}var mg=function(){},pf=de.measurePerformance&&gs&&gs.mark&&gs.measure?gs:{mark:mg,measure:mg},Yo='FA "7.1.0"',qA=function(e){return pf.mark("".concat(Yo," ").concat(e," begins")),function(){return bg(e)}},bg=function(e){pf.mark("".concat(Yo," ").concat(e," ends")),pf.measure("".concat(Yo," ").concat(e),"".concat(Yo," ").concat(e," begins"),"".concat(Yo," ").concat(e," ends"))},vf={begin:qA,end:bg},Os=function(){};function yg(n){var e=n.getAttribute?n.getAttribute(vi):null;return typeof e=="string"}function GA(n){var e=n.getAttribute?n.getAttribute(Gc):null,t=n.getAttribute?n.getAttribute(Yc):null;return e&&t}function YA(n){return n&&n.classList&&n.classList.contains&&n.classList.contains(de.replacementClass)}function JA(){if(de.autoReplaceSvg===!0)return Es.replace;var n=Es[de.autoReplaceSvg];return n||Es.replace}function KA(n){return Ze.createElementNS("http://www.w3.org/2000/svg",n)}function XA(n){return Ze.createElement(n)}function _g(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.ceFn,r=t===void 0?n.tag==="svg"?KA:XA:t;if(typeof n=="string")return Ze.createTextNode(n);var o=r(n.tag);Object.keys(n.attributes||[]).forEach(function(c){o.setAttribute(c,n.attributes[c])});var s=n.children||[];return s.forEach(function(c){o.appendChild(_g(c,{ceFn:r}))}),o}function ZA(n){var e=" ".concat(n.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}var Es={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(o){t.parentNode.insertBefore(_g(o),t)}),t.getAttribute(vi)===null&&de.keepOriginalSource){var r=Ze.createComment(ZA(t));t.parentNode.replaceChild(r,t)}else t.remove()},nest:function(e){var t=e[0],r=e[1];if(~ef(t).indexOf(de.replacementClass))return Es.replace(e);var o=new RegExp("".concat(de.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var s=r[0].attributes.class.split(" ").reduce(function(f,d){return d===de.replacementClass||d.match(o)?f.toSvg.push(d):f.toNode.push(d),f},{toNode:[],toSvg:[]});r[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",s.toNode.join(" "))}var c=r.map(function(f){return qo(f)}).join(`
650
+ `);t.setAttribute(vi,""),t.innerHTML=c}};function wg(n){n()}function Sg(n,e){var t=typeof e=="function"?e:Os;if(n.length===0)t();else{var r=wg;de.mutateApproach===tA&&(r=Vr.requestAnimationFrame||wg),r(function(){var o=JA(),s=vf.begin("mutate");n.map(o),s(),t()})}}var gf=!1;function Og(){gf=!0}function mf(){gf=!1}var Is=null;function Eg(n){if(hv&&de.observeMutations){var e=n.treeCallback,t=e===void 0?Os:e,r=n.nodeCallback,o=r===void 0?Os:r,s=n.pseudoElementsCallback,c=s===void 0?Os:s,f=n.observeMutationsRoot,d=f===void 0?Ze:f;Is=new hv(function(p){if(!gf){var v=Wr();zi(p).forEach(function(b){if(b.type==="childList"&&b.addedNodes.length>0&&!yg(b.addedNodes[0])&&(de.searchPseudoElements&&c(b.target),t(b.target)),b.type==="attributes"&&b.target.parentNode&&de.searchPseudoElements&&c([b.target],!0),b.type==="attributes"&&yg(b.target)&&~sA.indexOf(b.attributeName))if(b.attributeName==="class"&&GA(b.target)){var w=ws(ef(b.target)),y=w.prefix,O=w.iconName;b.target.setAttribute(Gc,y||v),O&&b.target.setAttribute(Yc,O)}else YA(b.target)&&o(b.target)})}}),gr&&Is.observe(d,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function QA(){Is&&Is.disconnect()}function eT(n){var e=n.getAttribute("style"),t=[];return e&&(t=e.split(";").reduce(function(r,o){var s=o.split(":"),c=s[0],f=s.slice(1);return c&&f.length>0&&(r[c]=f.join(":").trim()),r},{})),t}function tT(n){var e=n.getAttribute("data-prefix"),t=n.getAttribute("data-icon"),r=n.innerText!==void 0?n.innerText.trim():"",o=ws(ef(n));return o.prefix||(o.prefix=Wr()),e&&t&&(o.prefix=e,o.iconName=t),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=IA(o.prefix,n.innerText)||sf(o.prefix,tg(n.innerText))),!o.iconName&&de.autoFetchSvg&&n.firstChild&&n.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=n.firstChild.data)),o}function nT(n){var e=zi(n.attributes).reduce(function(t,r){return t.name!=="class"&&t.name!=="style"&&(t[r.name]=r.value),t},{});return e}function rT(){return{iconName:null,prefix:null,transform:rr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Ig(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},t=tT(n),r=t.iconName,o=t.prefix,s=t.rest,c=nT(n),f=uf("parseNodeAttributes",{},n),d=e.styleParser?eT(n):[];return J({iconName:r,prefix:o,transform:rr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:d,attributes:c}},f)}var iT=qn.styles;function Ag(n){var e=de.autoReplaceSvg==="nest"?Ig(n,{styleParser:!1}):Ig(n);return~e.extra.classes.indexOf(qv)?Ur("generateLayersText",n,e):Ur("generateSvgReplacementMutation",n,e)}function oT(){return[].concat(Hn(Rv),Hn(Bv))}function Tg(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!gr)return Promise.resolve();var t=Ze.documentElement.classList,r=function(b){return t.add("".concat(Vv,"-").concat(b))},o=function(b){return t.remove("".concat(Vv,"-").concat(b))},s=de.autoFetchSvg?oT():gv.concat(Object.keys(iT));s.includes("fa")||s.push("fa");var c=[".".concat(qv,":not([").concat(vi,"])")].concat(s.map(function(v){return".".concat(v,":not([").concat(vi,"])")})).join(", ");if(c.length===0)return Promise.resolve();var f=[];try{f=zi(n.querySelectorAll(c))}catch{}if(f.length>0)r("pending"),o("complete");else return Promise.resolve();var d=vf.begin("onTree"),p=f.reduce(function(v,b){try{var w=Ag(b);w&&v.push(w)}catch(y){Uv||y.name==="MissingIcon"&&console.error(y)}return v},[]);return new Promise(function(v,b){Promise.all(p).then(function(w){Sg(w,function(){r("active"),r("complete"),o("pending"),typeof e=="function"&&e(),d(),v()})}).catch(function(w){d(),b(w)})})}function aT(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ag(n).then(function(t){t&&Sg([t],e)})}function sT(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(e||{}).icon?e:cf(e||{}),o=t.mask;return o&&(o=(o||{}).icon?o:cf(o||{})),n(r,J(J({},t),{},{mask:o}))}}var uT=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.transform,o=r===void 0?rr:r,s=t.symbol,c=s===void 0?!1:s,f=t.mask,d=f===void 0?null:f,p=t.maskId,v=p===void 0?null:p,b=t.classes,w=b===void 0?[]:b,y=t.attributes,O=y===void 0?{}:y,S=t.styles,A=S===void 0?{}:S;if(e){var x=e.prefix,k=e.iconName,G=e.icon;return Ss(J({type:"icon"},e),function(){return mi("beforeDOMElementCreation",{iconDefinition:e,params:t}),ff({icons:{main:df(G),mask:d?df(d.icon):{found:!1,width:null,height:null,icon:{}}},prefix:x,iconName:k,transform:J(J({},rr),o),symbol:c,maskId:v,extra:{attributes:O,styles:A,classes:w}})})}},cT={mixout:function(){return{icon:sT(uT)}},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=Tg,t.nodeCallback=aT,t}}},provides:function(e){e.i2svg=function(t){var r=t.node,o=r===void 0?Ze:r,s=t.callback,c=s===void 0?function(){}:s;return Tg(o,c)},e.generateSvgReplacementMutation=function(t,r){var o=r.iconName,s=r.prefix,c=r.transform,f=r.symbol,d=r.mask,p=r.maskId,v=r.extra;return new Promise(function(b,w){Promise.all([hf(o,s),d.iconName?hf(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(y){var O=ps(y,2),S=O[0],A=O[1];b([t,ff({icons:{main:S,mask:A},prefix:s,iconName:o,transform:c,symbol:f,maskId:p,extra:v,watchable:!0})])}).catch(w)})},e.generateAbstractIcon=function(t){var r=t.children,o=t.attributes,s=t.main,c=t.transform,f=t.styles,d=bs(f);d.length>0&&(o.style=d);var p;return tf(c)&&(p=Ur("generateAbstractTransformGrouping",{main:s,transform:c,containerWidth:s.width,iconWidth:s.width})),r.push(p||s.icon),{children:r,attributes:o}}}},fT={mixout:function(){return{layer:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.classes,s=o===void 0?[]:o;return Ss({type:"layer"},function(){mi("beforeDOMElementCreation",{assembler:t,params:r});var c=[];return t(function(f){Array.isArray(f)?f.map(function(d){c=c.concat(d.abstract)}):c=c.concat(f.abstract)}),[{tag:"span",attributes:{class:["".concat(de.cssPrefix,"-layers")].concat(Hn(s)).join(" ")},children:c}]})}}}},lT={mixout:function(){return{counter:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var o=r.classes,s=o===void 0?[]:o,c=r.attributes,f=c===void 0?{}:c,d=r.styles,p=d===void 0?{}:d;return Ss({type:"counter",content:t},function(){return mi("beforeDOMElementCreation",{content:t,params:r}),UA({content:t.toString(),extra:{attributes:f,styles:p,classes:["".concat(de.cssPrefix,"-layers-counter")].concat(Hn(s))}})})}}}},dT={mixout:function(){return{text:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.transform,s=o===void 0?rr:o,c=r.classes,f=c===void 0?[]:c,d=r.attributes,p=d===void 0?{}:d,v=r.styles,b=v===void 0?{}:v;return Ss({type:"text",content:t},function(){return mi("beforeDOMElementCreation",{content:t,params:r}),gg({content:t,transform:J(J({},rr),s),extra:{attributes:p,styles:b,classes:["".concat(de.cssPrefix,"-layers-text")].concat(Hn(f))}})})}}},provides:function(e){e.generateLayersText=function(t,r){var o=r.transform,s=r.extra,c=null,f=null;if(pv){var d=parseInt(getComputedStyle(t).fontSize,10),p=t.getBoundingClientRect();c=p.width/d,f=p.height/d}return Promise.resolve([t,gg({content:t.innerHTML,width:c,height:f,transform:o,extra:s,watchable:!0})])}}},xg=new RegExp('"',"ug"),Ng=[1105920,1112319],Dg=J(J(J(J({},{FontAwesome:{normal:"fas",400:"fas"}}),Y1),QI),rI),bf=Object.keys(Dg).reduce(function(n,e){return n[e.toLowerCase()]=Dg[e],n},{}),hT=Object.keys(bf).reduce(function(n,e){var t=bf[e];return n[e]=t[900]||Hn(Object.entries(t))[0][1],n},{});function pT(n){var e=n.replace(xg,"");return tg(Hn(e)[0]||"")}function vT(n){var e=n.getPropertyValue("font-feature-settings").includes("ss01"),t=n.getPropertyValue("content"),r=t.replace(xg,""),o=r.codePointAt(0),s=o>=Ng[0]&&o<=Ng[1],c=r.length===2?r[0]===r[1]:!1;return s||c||e}function gT(n,e){var t=n.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(e),o=isNaN(r)?"normal":r;return(bf[t]||{})[o]||hT[t]}function Cg(n,e){var t="".concat(eA).concat(e.replace(":","-"));return new Promise(function(r,o){if(n.getAttribute(t)!==null)return r();var s=zi(n.children),c=s.filter(function(ye){return ye.getAttribute(qc)===e})[0],f=Vr.getComputedStyle(n,e),d=f.getPropertyValue("font-family"),p=d.match(oA),v=f.getPropertyValue("font-weight"),b=f.getPropertyValue("content");if(c&&!p)return n.removeChild(c),r();if(p&&b!=="none"&&b!==""){var w=f.getPropertyValue("content"),y=gT(d,v),O=pT(w),S=p[0].startsWith("FontAwesome"),A=vT(f),x=sf(y,O),k=x;if(S){var G=AA(O);G.iconName&&G.prefix&&(x=G.iconName,y=G.prefix)}if(x&&!A&&(!c||c.getAttribute(Gc)!==y||c.getAttribute(Yc)!==k)){n.setAttribute(t,k),c&&n.removeChild(c);var oe=rT(),q=oe.extra;q.attributes[qc]=e,hf(x,y).then(function(ye){var L=ff(J(J({},oe),{},{icons:{main:ye,mask:lg()},prefix:y,iconName:k,extra:q,watchable:!0})),F=Ze.createElementNS("http://www.w3.org/2000/svg","svg");e==="::before"?n.insertBefore(F,n.firstChild):n.appendChild(F),F.outerHTML=L.map(function(ae){return qo(ae)}).join(`
651
+ `),n.removeAttribute(t),r()}).catch(o)}else r()}else r()})}function mT(n){return Promise.all([Cg(n,"::before"),Cg(n,"::after")])}function bT(n){return n.parentNode!==document.head&&!~nA.indexOf(n.tagName.toUpperCase())&&!n.getAttribute(qc)&&(!n.parentNode||n.parentNode.tagName!=="svg")}var yT=function(e){return!!e&&Wv.some(function(t){return e.includes(t)})},_T=function(e){if(!e)return[];var t=new Set,r=e.split(/,(?![^()]*\))/).map(function(d){return d.trim()});r=r.flatMap(function(d){return d.includes("(")?d:d.split(",").map(function(p){return p.trim()})});var o=hs(r),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;if(yT(c)){var f=Wv.reduce(function(d,p){return d.replace(p,"")},c);f!==""&&f!=="*"&&t.add(f)}}}catch(d){o.e(d)}finally{o.f()}return t};function Pg(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(gr){var t;if(e)t=n;else if(de.searchPseudoElementsFullScan)t=n.querySelectorAll("*");else{var r=new Set,o=hs(document.styleSheets),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;try{var f=hs(c.cssRules),d;try{for(f.s();!(d=f.n()).done;){var p=d.value,v=_T(p.selectorText),b=hs(v),w;try{for(b.s();!(w=b.n()).done;){var y=w.value;r.add(y)}}catch(S){b.e(S)}finally{b.f()}}}catch(S){f.e(S)}finally{f.f()}}catch(S){de.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(c.href," (").concat(S.message,`)
652
+ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(S){o.e(S)}finally{o.f()}if(!r.size)return;var O=Array.from(r).join(", ");try{t=n.querySelectorAll(O)}catch{}}return new Promise(function(S,A){var x=zi(t).filter(bT).map(mT),k=vf.begin("searchPseudoElements");Og(),Promise.all(x).then(function(){k(),mf(),S()}).catch(function(){k(),mf(),A()})})}}var wT={hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=Pg,t}}},provides:function(e){e.pseudoElements2svg=function(t){var r=t.node,o=r===void 0?Ze:r;de.searchPseudoElements&&Pg(o)}}},Mg=!1,ST={mixout:function(){return{dom:{unwatch:function(){Og(),Mg=!0}}}},hooks:function(){return{bootstrap:function(){Eg(uf("mutationObserverCallbacks",{}))},noAuto:function(){QA()},watch:function(t){var r=t.observeMutationsRoot;Mg?mf():Eg(uf("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Rg=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce(function(r,o){var s=o.toLowerCase().split("-"),c=s[0],f=s.slice(1).join("-");if(c&&f==="h")return r.flipX=!0,r;if(c&&f==="v")return r.flipY=!0,r;if(f=parseFloat(f),isNaN(f))return r;switch(c){case"grow":r.size=r.size+f;break;case"shrink":r.size=r.size-f;break;case"left":r.x=r.x-f;break;case"right":r.x=r.x+f;break;case"up":r.y=r.y-f;break;case"down":r.y=r.y+f;break;case"rotate":r.rotate=r.rotate+f;break}return r},t)},OT={mixout:function(){return{parse:{transform:function(t){return Rg(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,r){var o=r.getAttribute("data-fa-transform");return o&&(t.transform=Rg(o)),t}}},provides:function(e){e.generateAbstractTransformGrouping=function(t){var r=t.main,o=t.transform,s=t.containerWidth,c=t.iconWidth,f={transform:"translate(".concat(s/2," 256)")},d="translate(".concat(o.x*32,", ").concat(o.y*32,") "),p="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),v="rotate(".concat(o.rotate," 0 0)"),b={transform:"".concat(d," ").concat(p," ").concat(v)},w={transform:"translate(".concat(c/2*-1," -256)")},y={outer:f,inner:b,path:w};return{tag:"g",attributes:J({},y.outer),children:[{tag:"g",attributes:J({},y.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:J(J({},r.icon.attributes),y.path)}]}]}}}},yf={x:0,y:0,width:"100%",height:"100%"};function Lg(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.attributes&&(n.attributes.fill||e)&&(n.attributes.fill="black"),n}function ET(n){return n.tag==="g"?n.children:[n]}var IT={hooks:function(){return{parseNodeAttributes:function(t,r){var o=r.getAttribute("data-fa-mask"),s=o?ws(o.split(" ").map(function(c){return c.trim()})):lg();return s.prefix||(s.prefix=Wr()),t.mask=s,t.maskId=r.getAttribute("data-fa-mask-id"),t}}},provides:function(e){e.generateAbstractMask=function(t){var r=t.children,o=t.attributes,s=t.main,c=t.mask,f=t.maskId,d=t.transform,p=s.width,v=s.icon,b=c.width,w=c.icon,y=gA({transform:d,containerWidth:b,iconWidth:p}),O={tag:"rect",attributes:J(J({},yf),{},{fill:"white"})},S=v.children?{children:v.children.map(Lg)}:{},A={tag:"g",attributes:J({},y.inner),children:[Lg(J({tag:v.tag,attributes:J(J({},v.attributes),y.path)},S))]},x={tag:"g",attributes:J({},y.outer),children:[A]},k="mask-".concat(f||Yv()),G="clip-".concat(f||Yv()),oe={tag:"mask",attributes:J(J({},yf),{},{id:k,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[O,x]},q={tag:"defs",children:[{tag:"clipPath",attributes:{id:G},children:ET(w)},oe]};return r.push(q,{tag:"rect",attributes:J({fill:"currentColor","clip-path":"url(#".concat(G,")"),mask:"url(#".concat(k,")")},yf)}),{children:r,attributes:o}}}},AT={provides:function(e){var t=!1;Vr.matchMedia&&(t=Vr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var r=[],o={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:J(J({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var c=J(J({},s),{},{attributeName:"opacity"}),f={tag:"circle",attributes:J(J({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||f.children.push({tag:"animate",attributes:J(J({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:J(J({},c),{},{values:"1;0;1;1;0;1;"})}),r.push(f),r.push({tag:"path",attributes:J(J({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:J(J({},c),{},{values:"1;0;0;0;0;1;"})}]}),t||r.push({tag:"path",attributes:J(J({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:J(J({},c),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},TT={hooks:function(){return{parseNodeAttributes:function(t,r){var o=r.getAttribute("data-fa-symbol"),s=o===null?!1:o===""?!0:o;return t.symbol=s,t}}}},xT=[yA,cT,fT,lT,dT,wT,ST,OT,IT,AT,TT];LA(xT,{mixoutsTo:tn}),tn.noAuto;var Jo=tn.config;tn.library,tn.dom;var kg=tn.parse;tn.findIconDefinition,tn.toHtml;var NT=tn.icon;tn.layer,tn.text,tn.counter;function DT(n){return n=n-0,n===n}function Bg(n){return DT(n)?n:(n=n.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():""),n.charAt(0).toLowerCase()+n.slice(1))}function CT(n){return n.charAt(0).toUpperCase()+n.slice(1)}var Gi=new Map,PT=1e3;function MT(n){if(Gi.has(n))return Gi.get(n);const e={};let t=0;const r=n.length;for(;t<r;){const o=n.indexOf(";",t),s=o===-1?r:o,c=n.slice(t,s).trim();if(c){const f=c.indexOf(":");if(f>0){const d=c.slice(0,f).trim(),p=c.slice(f+1).trim();if(d&&p){const v=Bg(d);e[v.startsWith("webkit")?CT(v):v]=p}}}t=s+1}if(Gi.size===PT){const o=Gi.keys().next().value;o&&Gi.delete(o)}return Gi.set(n,e),e}function jg(n,e,t={}){if(typeof e=="string")return e;const r=(e.children||[]).map(v=>jg(n,v)),o=e.attributes||{},s={};for(const[v,b]of Object.entries(o))switch(!0){case v==="class":{s.className=b;break}case v==="style":{s.style=MT(String(b));break}case v.startsWith("aria-"):case v.startsWith("data-"):{s[v.toLowerCase()]=b;break}default:s[Bg(v)]=b}const{style:c,role:f,"aria-label":d,...p}=t;return c&&(s.style=s.style?{...s.style,...c}:c),f&&(s.role=f),d&&(s["aria-label"]=d,s["aria-hidden"]="false"),n(e.tag,{...p,...s},...r)}var RT=jg.bind(null,R.createElement),Fg=(n,e)=>{const t=R.useId();return n||(e?t:void 0)},LT=class{constructor(n="react-fontawesome"){this.enabled=!1;let e=!1;try{e=typeof process<"u"&&process.env.NODE_ENV==="development"}catch{}this.scope=n,this.enabled=e}log(...n){this.enabled&&console.log(`[${this.scope}]`,...n)}warn(...n){this.enabled&&console.warn(`[${this.scope}]`,...n)}error(...n){this.enabled&&console.error(`[${this.scope}]`,...n)}};typeof process<"u"&&process.env.FA_VERSION;var kT="searchPseudoElementsFullScan"in Jo?"7.0.0":"6.0.0",BT=Number.parseInt(kT)>=7,Ko="fa",yr={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},jT={left:"fa-pull-left",right:"fa-pull-right"},FT={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},$T={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},_r={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function VT(n){const e=Jo.cssPrefix||Jo.familyPrefix||Ko;return e===Ko?n:n.replace(new RegExp(String.raw`(?<=^|\s)${Ko}-`,"g"),`${e}-`)}function WT(n){const{beat:e,fade:t,beatFade:r,bounce:o,shake:s,spin:c,spinPulse:f,spinReverse:d,pulse:p,fixedWidth:v,inverse:b,border:w,flip:y,size:O,rotation:S,pull:A,swapOpacity:x,rotateBy:k,widthAuto:G,className:oe}=n,q=[];return oe&&q.push(...oe.split(" ")),e&&q.push(yr.beat),t&&q.push(yr.fade),r&&q.push(yr.beatFade),o&&q.push(yr.bounce),s&&q.push(yr.shake),c&&q.push(yr.spin),d&&q.push(yr.spinReverse),f&&q.push(yr.spinPulse),p&&q.push(yr.pulse),v&&q.push(_r.fixedWidth),b&&q.push(_r.inverse),w&&q.push(_r.border),y===!0&&q.push(_r.flip),(y==="horizontal"||y==="both")&&q.push(_r.flipHorizontal),(y==="vertical"||y==="both")&&q.push(_r.flipVertical),O!=null&&q.push($T[O]),S!=null&&S!==0&&q.push(FT[S]),A!=null&&q.push(jT[A]),x&&q.push(_r.swapOpacity),BT?(k&&q.push(_r.rotateBy),G&&q.push(_r.widthAuto),(Jo.cssPrefix||Jo.familyPrefix||Ko)===Ko?q:q.map(VT)):q}var UT=n=>typeof n=="object"&&"icon"in n&&!!n.icon;function $g(n){if(n)return UT(n)?n:kg.icon(n)}function zT(n){return Object.keys(n)}var Vg=new LT("FontAwesomeIcon"),Wg={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},HT=new Set(Object.keys(Wg)),Yi=R.forwardRef((n,e)=>{const t={...Wg,...n},{icon:r,mask:o,symbol:s,title:c,titleId:f,maskId:d,transform:p}=t,v=Fg(d,!!o),b=Fg(f,!!c),w=$g(r);if(!w)return Vg.error("Icon lookup is undefined",r),null;const y=WT(t),O=typeof p=="string"?kg.transform(p):p,S=$g(o),A=NT(w,{...y.length>0&&{classes:y},...O&&{transform:O},...S&&{mask:S},symbol:s,title:c,titleId:b,maskId:v});if(!A)return Vg.error("Could not find icon",w),null;const{abstract:x}=A,k={ref:e};for(const G of zT(t))HT.has(G)||(k[G]=t[G]);return RT(x[0],k)});Yi.displayName="FontAwesomeIcon";var qT={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32S0 334.3 0 352l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},GT={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z"]},Ug={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},YT={prefix:"fas",iconName:"angle-down",icon:[384,512,[8964],"f107","M169.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 306.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]};function JT({layoutId:n,justId:e,winInfo:t}){console.log("TabTitle justId",e);const[r,o]=Pc(),[s]=R.useState({x:0,y:0}),c=nr(n),f=c.getTabTitleTooltip(e),d=v=>{console.log("closeWin!!!",v)},p=(v,b)=>{c.activeWin({justId:b})};return Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{className:"just-icon",onClick:v=>p(v,e),title:f,children:t.getTabIcon(e,n)}),Q.jsx("div",{className:"just-title",onClick:v=>p(v,e),title:f,children:c.getTabTitle(e)??e.title}),Q.jsx("div",{className:"just-icon just-close",onClick:()=>d(e),children:Q.jsx(Yi,{icon:Ug})}),Q.jsx(qp,{state:r.state,endTransition:r.endTransition,anchorPoint:s,onClose:()=>o(!1),children:Q.jsxs(ls,{onClick:()=>d(e),children:[Q.jsx("div",{className:"just-icon"}),Q.jsx("div",{className:"just-title",children:"Close"}),Q.jsx("div",{className:"just-icon"})]})})]})}const zg=vr(JT);function KT(n){const{layoutId:e,isFullScreenView:t,dndAccept:r,winInfo:o,justBranch:s,justId:c,justStack:f,rect:d}=n,p=R.useRef(null),[,v]=Pc(),[,b]=R.useState({x:0,y:0}),w=nr(e),[{isDragging:y},O]=cE({type:c.viewId,item:{justBranch:s,justId:c,index:-1},collect:x=>({isDragging:x.isDragging()})}),[,S]=Sc({accept:r,collect(x){return{handlerId:x.getHandlerId()}},hover(x,k){if(!p.current||c===x.justId)return;const G=p.current.getBoundingClientRect(),oe=k.getClientOffset(),q=(G.right-G.left)/2,ye=oe.x-G.left,L=x.justId,F=c,ae=f.tabs.filter(ce=>!$e.isEquals(ce,L));let we=$e.indexOf(ae,F);ye>q&&(we+=1),x.pos="stack",x.index=we}});R.useEffect(()=>{if($e.isEquals(c,w.lastActiveId??null)){if(p.current==null||d==null)return;const x=p.current.getBoundingClientRect();(d.left>x.left||d.right<x.right)&&p.current.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}},[w.lastActiveTm]),R.useLayoutEffect(()=>{p.current&&O(S(p))},[S,O]);const A=R.useCallback(x=>{x.preventDefault(),b({x:x.clientX,y:x.clientY}),v(!0)},[v]);return Q.jsx("div",{className:Un("just-draggable-title","just-title-menus",{dragging:y,"just-active":$e.isEquals(f.active,c),"last-active":$e.isEquals(w.lastActiveId,c)}),ref:p,onContextMenu:A,children:o.getTabTitle?o.getTabTitle({justId:c,layoutId:e,justBranch:s,isFullScreenView:t,winInfo:o}):Q.jsx(zg,{justId:c,layoutId:e,justBranch:s,isFullScreenView:t,winInfo:o})})}const Hg=vr(KT);function qg(n){let e=null;return()=>(e==null&&(e=n()),e)}function XT(n,e){return n.filter(t=>t!==e)}function ZT(n,e){const t=new Set,r=s=>t.add(s);n.forEach(r),e.forEach(r);const o=[];return t.forEach(s=>o.push(s)),o}class QT{enter(e){const t=this.entered.length,r=o=>this.isNodeInDocument(o)&&(!o.contains||o.contains(e));return this.entered=ZT(this.entered.filter(r),[e]),t===0&&this.entered.length>0}leave(e){const t=this.entered.length;return this.entered=XT(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class ex{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(r=>{const o=this.config.exposeProperties[r];o!=null&&(t[r]={value:o(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const Gg="__NATIVE_FILE__",Yg="__NATIVE_URL__",Jg="__NATIVE_TEXT__",Kg="__NATIVE_HTML__",Xg=Object.freeze(Object.defineProperty({__proto__:null,FILE:Gg,HTML:Kg,TEXT:Jg,URL:Yg},Symbol.toStringTag,{value:"Module"}));function _f(n,e,t){const r=e.reduce((o,s)=>o||n.getData(s),"");return r??t}const wf={[Gg]:{exposeProperties:{files:n=>Array.prototype.slice.call(n.files),items:n=>n.items,dataTransfer:n=>n},matchesTypes:["Files"]},[Kg]:{exposeProperties:{html:(n,e)=>_f(n,e,""),dataTransfer:n=>n},matchesTypes:["Html","text/html"]},[Yg]:{exposeProperties:{urls:(n,e)=>_f(n,e,"").split(`
653
+ `),dataTransfer:n=>n},matchesTypes:["Url","text/uri-list"]},[Jg]:{exposeProperties:{text:(n,e)=>_f(n,e,""),dataTransfer:n=>n},matchesTypes:["Text","text/plain"]}};function tx(n,e){const t=wf[n];if(!t)throw new Error(`native type ${n} has no configuration`);const r=new ex(t);return r.loadDataTransfer(e),r}function Sf(n){if(!n)return null;const e=Array.prototype.slice.call(n.types||[]);return Object.keys(wf).filter(t=>{const r=wf[t];return r?.matchesTypes?r.matchesTypes.some(o=>e.indexOf(o)>-1):!1})[0]||null}const nx=qg(()=>/firefox/i.test(navigator.userAgent)),Zg=qg(()=>!!window.safari);class Qg{interpolate(e){const{xs:t,ys:r,c1s:o,c2s:s,c3s:c}=this;let f=t.length-1;if(e===t[f])return r[f];let d=0,p=c.length-1,v;for(;d<=p;){v=Math.floor(.5*(d+p));const y=t[v];if(y<e)d=v+1;else if(y>e)p=v-1;else return r[v]}f=Math.max(0,p);const b=e-t[f],w=b*b;return r[f]+o[f]*b+s[f]*w+c[f]*b*w}constructor(e,t){const{length:r}=e,o=[];for(let y=0;y<r;y++)o.push(y);o.sort((y,O)=>e[y]<e[O]?-1:1);const s=[],c=[];let f,d;for(let y=0;y<r-1;y++)f=e[y+1]-e[y],d=t[y+1]-t[y],s.push(f),c.push(d/f);const p=[c[0]];for(let y=0;y<s.length-1;y++){const O=c[y],S=c[y+1];if(O*S<=0)p.push(0);else{f=s[y];const A=s[y+1],x=f+A;p.push(3*x/((x+A)/O+(x+f)/S))}}p.push(c[c.length-1]);const v=[],b=[];let w;for(let y=0;y<p.length-1;y++){w=c[y];const O=p[y],S=1/s[y],A=O+p[y+1]-w-w;v.push((w-O-A)*S),b.push(A*S*S)}this.xs=e,this.ys=t,this.c1s=p,this.c2s=v,this.c3s=b}}const rx=1;function em(n){const e=n.nodeType===rx?n:n.parentElement;if(!e)return null;const{top:t,left:r}=e.getBoundingClientRect();return{x:r,y:t}}function As(n){return{x:n.clientX,y:n.clientY}}function ix(n){var e;return n.nodeName==="IMG"&&(nx()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(n)))}function ox(n,e,t,r){let o=n?e.width:t,s=n?e.height:r;return Zg()&&n&&(s/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:s}}function ax(n,e,t,r,o){const s=ix(e),f=em(s?n:e),d={x:t.x-f.x,y:t.y-f.y},{offsetWidth:p,offsetHeight:v}=n,{anchorX:b,anchorY:w}=r,{dragPreviewWidth:y,dragPreviewHeight:O}=ox(s,e,p,v),S=()=>{let ye=new Qg([0,.5,1],[d.y,d.y/v*O,d.y+O-v]).interpolate(w);return Zg()&&s&&(ye+=(window.devicePixelRatio-1)*O),ye},A=()=>new Qg([0,.5,1],[d.x,d.x/p*y,d.x+y-p]).interpolate(b),{offsetX:x,offsetY:k}=o,G=x===0||x,oe=k===0||k;return{x:G?x:A(),y:oe?k:S()}}class sx{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function ux(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function tm(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.forEach(function(o){ux(n,o,t[o])})}return n}class cx{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;(t=this.window)===null||t===void 0||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);const o=c=>this.handleDragStart(c,e),s=c=>this.handleSelectStart(c);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",s),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",s),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const r=c=>this.handleDragEnter(c,e),o=c=>this.handleDragOver(c,e),s=c=>this.handleDrop(c,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",s),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",s)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return tm({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions.get(e);return tm({anchorX:.5,anchorY:.5,captureDraggingState:!1},t||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Xg).some(t=>Xg[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=tx(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const t=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},t)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=o=>{const s=this.sourceNodes.get(o);return s&&em(s)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=o=>!!(o&&this.document&&this.document.body&&this.document.body.contains(o)),this.endDragIfSourceWasRemovedFromDOM=()=>{const o=this.currentDragSourceNode;o==null||this.isNodeInDocument(o)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=o=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(o||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=o=>{if(o.defaultPrevented)return;const{dragStartSourceIds:s}=this;this.dragStartSourceIds=null;const c=As(o);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(s||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:c});const{dataTransfer:f}=o,d=Sf(f);if(this.monitor.isDragging()){if(f&&typeof f.setDragImage=="function"){const v=this.monitor.getSourceId(),b=this.sourceNodes.get(v),w=this.sourcePreviewNodes.get(v)||b;if(w){const{anchorX:y,anchorY:O,offsetX:S,offsetY:A}=this.getCurrentSourcePreviewNodeOptions(),G=ax(b,w,c,{anchorX:y,anchorY:O},{offsetX:S,offsetY:A});f.setDragImage(w,G.x,G.y)}}try{f?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(o.target);const{captureDraggingState:p}=this.getCurrentSourcePreviewNodeOptions();p?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(d)this.beginDragNativeItem(d);else{if(f&&!f.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=o=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(o.dataTransfer)}if(!this.enterLeaveCounter.enter(o.target)||this.monitor.isDragging())return;const{dataTransfer:f}=o,d=Sf(f);d&&this.beginDragNativeItem(d,f)},this.handleTopDragEnter=o=>{const{dragEnterTargetIds:s}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=o.altKey,s.length>0&&this.actions.hover(s,{clientOffset:As(o)}),s.some(f=>this.monitor.canDropOnTarget(f))&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=o=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(o.dataTransfer)}},this.handleTopDragOver=o=>{const{dragOverTargetIds:s}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}this.altKeyPressed=o.altKey,this.lastClientOffset=As(o),this.scheduleHover(s),(s||[]).some(f=>this.monitor.canDropOnTarget(f))?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=o=>{this.isDraggingNativeItem()&&o.preventDefault(),this.enterLeaveCounter.leave(o.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=o=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var s;o.preventDefault(),(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(o.dataTransfer)}else Sf(o.dataTransfer)&&o.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=o=>{const{dropTargetIds:s}=this;this.dropTargetIds=[],this.actions.hover(s,{clientOffset:As(o)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=o=>{const s=o.target;typeof s.dragDrop=="function"&&(s.tagName==="INPUT"||s.tagName==="SELECT"||s.tagName==="TEXTAREA"||s.isContentEditable||(o.preventDefault(),s.dragDrop()))},this.options=new sx(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new QT(this.isNodeInDocument)}}const fx=function(e,t,r){return new cx(e,t,r)};function lx({layoutId:n,justBranch:e,isFullScreenView:t}){const r=nr(n),o=()=>{console.log("closeAllTabs justBranch",e),r.removeAllTabs({branch:e})},s=async(c=!1)=>{t?r.setLayout(null):(r.setFullScreenLayoutByBranch(e),r.setFullScreenHideTitle(c))};return Q.jsxs(Q.Fragment,{children:[Q.jsxs(ls,{className:"just-menu-item",onClick:()=>o(),children:[Q.jsx("div",{className:"just-icon"}),Q.jsx("div",{className:"just-title",children:"Close All"}),Q.jsx("div",{className:"just-icon"})]}),Q.jsxs(ls,{className:"just-menu-item",onClick:()=>s(!0),children:[Q.jsx("div",{className:"just-icon",children:Q.jsx(Yi,{icon:qT})}),Q.jsx("div",{className:"just-title",children:t?"F11":"Full"}),Q.jsx("div",{className:"just-icon"})]})]})}const nm=vr(lx);function dx({layoutId:n,isFullScreenView:e,dndAccept:t,justBranch:r,justStack:o,getWinInfo:s,getTabMenu:c}){const f=R.useRef(null),[d,p]=R.useState(null),v=nr(n),b=A=>{v.removeWin({justId:A})},w=A=>{v.activeWin({justId:A})},y=(A,x)=>{v.moveWin({pos:"stack",justId:x.justId,branch:r,index:x.index??-1})},[{isOver:O},S]=Sc(()=>({accept:t,collect:A=>({isOver:A.isOver()}),drop(A,x){y(x.getItemType(),x.getItem())},hover(A,x){f.current&&(A.index=-1)}}),[o]);return R.useLayoutEffect(()=>{f.current&&S(f)},[S]),R.useEffect(()=>{if(f.current===null)return;function A(){if(f.current===null)return;const k=f.current.getBoundingClientRect()??null;p(k)}A();const x=new ResizeObserver(A);return x.observe(f.current),window.addEventListener("scroll",A,!0),()=>{x.disconnect(),window.removeEventListener("scroll",A,!0)}},[]),Q.jsxs("div",{className:Un("just-win-title"),tabIndex:1,children:[Q.jsx("div",{className:Un("just-title-list",{"is-over":O}),ref:f,children:o.tabs.map(A=>Q.jsx(Hg,{layoutId:n,isFullScreenView:e,dndAccept:t,rect:d,justId:A,justBranch:r,justStack:o,winInfo:s(A)},[...r,$e.toString(A)].join(",")))}),Q.jsxs("div",{className:"just-title-menus",children:[Q.jsx(Kp,{menuButton:Q.jsx("div",{className:"just-title-menu",children:Q.jsx(Yi,{icon:YT})}),children:o.tabs.map(A=>Q.jsxs(ls,{className:Un("just-menu-item",{active:$e.isEquals(o.active,A)}),children:[Q.jsx("div",{className:"just-icon",onClick:()=>w(A),children:s(A).getTabIcon(A,n)}),Q.jsx("div",{className:"just-title",onClick:()=>w(A),children:v.getTabTitle(A)??A.title}),Q.jsx("div",{className:"just-icon just-close",onClick:x=>{x.stopPropagation(),b(A)},children:Q.jsx(Yi,{icon:Ug})})]},$e.toString(A)))}),Q.jsx(Kp,{menuButton:Q.jsx("div",{className:"just-title-menu",children:Q.jsx(Yi,{icon:GT})}),children:c?c(n,r,o,e):Q.jsx(nm,{layoutId:n,justBranch:r,justStack:o,isFullScreenView:e})})]})]})}const rm=vr(dx);function hx(n){const e=R.useRef(null),{layoutId:t,dndAccept:r,getWinInfo:o,justBranch:s,justStack:c}=n,[f,d]=R.useState(null),p=nr(t),v=(y,O)=>{O.pos&&(O.pos==="stack"?p.moveWin({pos:O.pos,justId:O.justId,branch:s,index:O.index??-1}):p.moveWin({pos:O.pos,justId:O.justId,branch:s,direction:O.direction??"row"}))},[{isOver:b},w]=Sc(()=>({accept:r,collect:y=>({isOver:y.isOver()}),drop(y,O){e.current&&v(O.getItemType(),O.getItem())},hover(y,O){if(!e.current)return;const S=e.current.getBoundingClientRect(),A=O.getClientOffset(),x=(S.right-S.left)/2,k=(S.bottom-S.top)/2,G=A.x-S.left,oe=A.y-S.top,q=G-x,ye=oe-k,L=Math.abs(q*100/x),F=Math.abs(ye*100/k);if(L<60&&F<60){y.pos="stack";const ae={top:S.top,left:S.left,width:S.width,height:S.height};d(ae)}else{const ae=L>F?"row":"column",ce=Math.sign(ae==="row"?q:ye)>0?"second":"first";y.direction=ae,y.pos=ce;const Se={top:ce==="second"&&ae==="column"?S.top+S.height/2:S.top,left:ce==="second"&&ae==="row"?S.left+S.width/2:S.left,width:ae==="row"?S.width/2:S.width,height:ae==="column"?S.height/2:S.height};d(Se)}}}),[c]);return R.useLayoutEffect(()=>{e.current&&w(e)},[w]),Q.jsxs("div",{className:Un("just-win-body",{isOver:b,"last-active":$e.isEquals(c.active,p.lastActiveId)}),ref:e,children:[c.tabs.map(y=>Q.jsx(R.Activity,{mode:$e.isEquals(c.active,y)?"visible":"hidden",children:o(y).getView(y,t)},$e.toString(y))),b&&f!=null&&Q.jsx("div",{className:"just-overlay",style:{top:f.top,left:f.left,width:`${f.width}px`,height:`${f.height}px`}})]})}const im=vr(hx);function px({layoutId:n,isFullScreenView:e,hideTitle:t,dndAccept:r,justBranch:o,justStack:s,getWinInfo:c,getTabMenu:f}){const d=nr(n),p=d.fullScreenHideTitle,v=t!==!0,b=()=>{s.active&&d.activeWin({justId:s.active})};return Q.jsxs("div",{className:"just-win",onFocusCapture:b,tabIndex:1,children:[v&&!p&&Q.jsx(rm,{layoutId:n,isFullScreenView:e,dndAccept:r,justBranch:o,justStack:s,getWinInfo:c,getTabMenu:f}),Q.jsx(im,{layoutId:n,dndAccept:r,justBranch:o,justStack:s,getWinInfo:c})]})}const om=vr(px);var Of,am;function Ef(){if(am)return Of;am=1;function n(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Of=n,Of}var If,sm;function vx(){if(sm)return If;sm=1;var n=typeof dn=="object"&&dn&&dn.Object===Object&&dn;return If=n,If}var Af,um;function cm(){if(um)return Af;um=1;var n=vx(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=n||e||Function("return this")();return Af=t,Af}var Tf,fm;function gx(){if(fm)return Tf;fm=1;var n=cm(),e=function(){return n.Date.now()};return Tf=e,Tf}var xf,lm;function mx(){if(lm)return xf;lm=1;var n=/\s/;function e(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}return xf=e,xf}var Nf,dm;function bx(){if(dm)return Nf;dm=1;var n=mx(),e=/^\s+/;function t(r){return r&&r.slice(0,n(r)+1).replace(e,"")}return Nf=t,Nf}var Df,hm;function pm(){if(hm)return Df;hm=1;var n=cm(),e=n.Symbol;return Df=e,Df}var Cf,vm;function yx(){if(vm)return Cf;vm=1;var n=pm(),e=Object.prototype,t=e.hasOwnProperty,r=e.toString,o=n?n.toStringTag:void 0;function s(c){var f=t.call(c,o),d=c[o];try{c[o]=void 0;var p=!0}catch{}var v=r.call(c);return p&&(f?c[o]=d:delete c[o]),v}return Cf=s,Cf}var Pf,gm;function _x(){if(gm)return Pf;gm=1;var n=Object.prototype,e=n.toString;function t(r){return e.call(r)}return Pf=t,Pf}var Mf,mm;function wx(){if(mm)return Mf;mm=1;var n=pm(),e=yx(),t=_x(),r="[object Null]",o="[object Undefined]",s=n?n.toStringTag:void 0;function c(f){return f==null?f===void 0?o:r:s&&s in Object(f)?e(f):t(f)}return Mf=c,Mf}var Rf,bm;function Sx(){if(bm)return Rf;bm=1;function n(e){return e!=null&&typeof e=="object"}return Rf=n,Rf}var Lf,ym;function Ox(){if(ym)return Lf;ym=1;var n=wx(),e=Sx(),t="[object Symbol]";function r(o){return typeof o=="symbol"||e(o)&&n(o)==t}return Lf=r,Lf}var kf,_m;function wm(){if(_m)return kf;_m=1;var n=bx(),e=Ef(),t=Ox(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;function d(p){if(typeof p=="number")return p;if(t(p))return r;if(e(p)){var v=typeof p.valueOf=="function"?p.valueOf():p;p=e(v)?v+"":v}if(typeof p!="string")return p===0?p:+p;p=n(p);var b=s.test(p);return b||c.test(p)?f(p.slice(2),b?2:8):o.test(p)?r:+p}return kf=d,kf}var Bf,Sm;function Ex(){if(Sm)return Bf;Sm=1;var n=Ef(),e=gx(),t=wm(),r="Expected a function",o=Math.max,s=Math.min;function c(f,d,p){var v,b,w,y,O,S,A=0,x=!1,k=!1,G=!0;if(typeof f!="function")throw new TypeError(r);d=t(d)||0,n(p)&&(x=!!p.leading,k="maxWait"in p,w=k?o(t(p.maxWait)||0,d):w,G="trailing"in p?!!p.trailing:G);function oe(he){var ct=v,ht=b;return v=b=void 0,A=he,y=f.apply(ht,ct),y}function q(he){return A=he,O=setTimeout(F,d),x?oe(he):y}function ye(he){var ct=he-S,ht=he-A,ft=d-ct;return k?s(ft,w-ht):ft}function L(he){var ct=he-S,ht=he-A;return S===void 0||ct>=d||ct<0||k&&ht>=w}function F(){var he=e();if(L(he))return ae(he);O=setTimeout(F,ye(he))}function ae(he){return O=void 0,G&&v?oe(he):(v=b=void 0,y)}function we(){O!==void 0&&clearTimeout(O),A=0,v=S=b=O=void 0}function ce(){return O===void 0?y:ae(e())}function Se(){var he=e(),ct=L(he);if(v=arguments,b=this,S=he,ct){if(O===void 0)return q(S);if(k)return clearTimeout(O),O=setTimeout(F,d),oe(S)}return O===void 0&&(O=setTimeout(F,d)),y}return Se.cancel=we,Se.flush=ce,Se}return Bf=c,Bf}var jf,Om;function Ix(){if(Om)return jf;Om=1;var n=Ex(),e=Ef(),t="Expected a function";function r(o,s,c){var f=!0,d=!0;if(typeof o!="function")throw new TypeError(t);return e(c)&&(f="leading"in c?!!c.leading:f,d="trailing"in c?!!c.trailing:d),n(o,s,{leading:f,maxWait:s,trailing:d})}return jf=r,jf}var Ax=Ix();const Tx=po(Ax);var Ff,Em;function xx(){if(Em)return Ff;Em=1;function n(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}return Ff=n,Ff}var $f,Im;function Nx(){if(Im)return $f;Im=1;var n=xx(),e=wm();function t(r,o,s){return s===void 0&&(s=o,o=void 0),s!==void 0&&(s=e(s),s=s===s?s:0),o!==void 0&&(o=e(o),o=o===o?o:0),n(e(r),o,s)}return $f=t,$f}var Dx=Nx();const Vf=po(Dx),Cx=1e3/30;function Px({node:n,containerRef:e,onChange:t,onRelease:r}){const o=R.useRef(null),[s,c]=R.useState(!1),f=()=>{s||(o.current.ownerDocument.addEventListener("mousemove",b,!0),o.current.ownerDocument.addEventListener("mouseup",v,!0),c(!0))},d=()=>{o.current&&(o.current.ownerDocument.removeEventListener("mousemove",b,!0),o.current.ownerDocument.removeEventListener("mouseup",v,!0),c(!1))},p=O=>{O.button===0&&(O.preventDefault(),f())},v=O=>{if(d(),e==null)return;const S=w(O,n,e);S!==null&&r(S)},b=O=>{O.preventDefault(),e!=null&&y(O,n,e)},w=(O,S,A)=>{if(A.current==null)return null;const x=A.current.getBoundingClientRect(),k=S.direction==="row"?O.clientX:O.clientY,G=S.direction==="row"?x.left:x.top,oe=S.direction==="row"?x.width:x.height,q=Vf(k-G,0,oe),ye=Vf(oe-q,0,oe),L=Vf(q*100/oe,0,100);return S.type==="split-percentage"?{type:S.type,size:L}:S.type==="split-pixels"?S.primary==="first"?{type:"split-pixels",primary:"first",size:q}:{type:"split-pixels",primary:"second",size:ye}:null},y=Tx((O,S,A)=>{if(A.current==null)return null;const x=w(O,S,A);x!==null&&t(x)},Cx);return R.useEffect(()=>{}),Q.jsx("div",{ref:o,className:Un("just-splitter"),onMouseDown:p})}const Am=vr(Px);function Wf({layoutId:n,isFullScreenView:e,hideTitle:t,dndAccept:r,node:o,justBranch:s,getWinInfo:c,getTabMenu:f}){const d=R.useRef(null),p=nr(n),v=({size:w})=>{p.updateResize({branch:s,size:w})},b=(w,y)=>w.type==="split-percentage"&&y==="first"?{flexBasis:`calc(${w.size}% - 3px)`,[w.direction==="row"?"minWidth":"minHeight"]:`${w.minSize??0}%`}:w.type==="split-pixels"&&y===w.primary?{flexBasis:`${w.size}px`,[w.direction==="row"?"minWidth":"minHeight"]:`${w.minSize??0}px`}:{};return Q.jsxs("div",{ref:d,className:Un("just-node"),children:[o?.type==="stack"&&Q.jsx(om,{hideTitle:o.hideTitle??t,layoutId:n,isFullScreenView:e,dndAccept:o.dndAccept??r,justStack:o,justBranch:s,getWinInfo:c,getTabMenu:f}),(o?.type==="split-percentage"||o?.type==="split-pixels")&&Q.jsxs("div",{className:Un(o.type,{"just-column":o.direction==="column","just-row":o.direction==="row"}),children:[Q.jsx(R.Activity,{mode:o.type==="split-pixels"&&o.primary==="first"&&o.primaryHide===!0?"hidden":"visible",children:Q.jsx("div",{className:Un("just-first",{"just-primary":o.type==="split-percentage"||o.type==="split-pixels"&&o.primary==="first","just-secondary":!(o.type==="split-percentage"||o.type==="split-pixels"&&o.primary==="first")}),style:b(o,"first"),children:Q.jsx(Wf,{layoutId:n,isFullScreenView:e,hideTitle:o.hideTitle??t,dndAccept:o.dndAccept??r,node:o.first,justBranch:[...s,"first"],getWinInfo:c,getTabMenu:f})})}),!(o.type==="split-pixels"&&(o.noSplitter===!0||o.primaryHide===!0))&&Q.jsx(Am,{layoutId:n,node:o,justBranch:s,containerRef:d,onChange:v,onRelease:v}),Q.jsx(R.Activity,{mode:o.type==="split-pixels"&&o.primary==="second"&&o.primaryHide===!0?"hidden":"visible",children:Q.jsx("div",{className:Un("just-second",{"just-primary":!(o.type==="split-percentage"||o.type==="split-pixels"&&o.primary==="first"),"just-secondary":o.type==="split-percentage"||o.type==="split-pixels"&&o.primary==="first"}),style:b(o,"second"),children:Q.jsx(Wf,{layoutId:n,isFullScreenView:e,hideTitle:o.hideTitle??t,dndAccept:o.dndAccept??r,node:o.second,justBranch:[...s,"second"],getWinInfo:c,getTabMenu:f})})})]},`JustNode-${s.join(",")}`)]})}const Uf=vr(Wf);function Mx({layoutId:n,getWinInfo:e,getTabMenu:t,initialValue:r}){const o=`${n}_FULLSCREEN`,s=nr(n),c=nr(o);return R.useEffect(()=>{c.layout===null&&(s.setFullScreenLayoutByBranch(null),s.setFullScreenHideTitle(!1))},[c.layout]),R.useEffect(()=>{s.setLayout(r),s.setFullScreenLayoutByBranch(null),c.setLayout(null)},[]),R.useEffect(()=>{const f=()=>{},d=async p=>{p.key==="Escape"?(console.log("esc"),s.setFullScreenLayoutByBranch(null)):p.key==="F11"&&(console.log("F11"),s.fullScreenLayout!==null&&s.setFullScreenLayoutByBranch(null)),p.altKey&&(p.key==="ArrowRight"?c.layout!==null?c.activeNextWin():s.activeNextWin():p.key==="ArrowLeft"&&(c.layout!==null?c.activePrevWin():s.activePrevWin()))};return window.addEventListener("keydown",d),document.addEventListener("fullscreenchange",f),()=>{window.removeEventListener("keydown",d),document.removeEventListener("fullscreenchange",f)}},[]),R.useEffect(()=>{console.log("useEffect justLayoutStore.fullScreenLayout",s.fullScreenLayout),c.setLayout(s.fullScreenLayout),s.lastActiveId&&c.activeWin({justId:s.lastActiveId})},[s.fullScreenLayout]),R.useEffect(()=>{c.setFullScreenHideTitle(s.fullScreenHideTitle)},[s.fullScreenHideTitle]),Q.jsx(jO,{backend:fx,children:Q.jsxs("div",{className:Un("just-layout"),children:[s.fullScreenLayout===null&&Q.jsx(Uf,{layoutId:n,isFullScreenView:!1,hideTitle:s.layout?.hideTitle,dndAccept:s.layout?.dndAccept??[],node:s.layout,justBranch:[],getWinInfo:e,getTabMenu:t}),s.fullScreenLayout!==null&&Q.jsx(Uf,{layoutId:o,isFullScreenView:!0,hideTitle:s.layout?.hideTitle,dndAccept:s.layout?.dndAccept??[],node:c.layout,justBranch:[],getWinInfo:e,getTabMenu:t})]})})}const Rx=vr(Mx);Fe.JUST_LAYOUT_TYPES=ii,Fe.JustDraggableTitle=Hg,Fe.JustLayoutView=Rx,Fe.JustNodeView=Uf,Fe.JustSplitter=Am,Fe.JustTabMenu=nm,Fe.JustTabTitle=zg,Fe.JustUtil=$e,Fe.JustWinBodyView=im,Fe.JustWinTitleView=rm,Fe.JustWinView=om,Fe.container=Xa,Fe.justLayoutModule=fp,Fe.stableStringify=eh,Fe.storeCache=Bo,Fe.useJustLayoutStore=nr,Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"})}));