@nizza/core 0.3.0-alpha.13 → 0.3.0-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +121 -136
- package/dist/lib/stores/NizzaStore.d.ts +1 -2
- package/dist/package.json +1 -1
- package/dist/typings/global.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
account: env.account,
|
|
19
19
|
...
|
|
20
20
|
});
|
|
21
|
-
`)}}let _t=new Map;const ut=ie.createContext(_t),fi=({children:e,stores:t})=>{const i=ie.useContext(ut),n=ie.useMemo(()=>{const r=new Map;return t.forEach(a=>r.set(a.class,a.value)),_t=new Map([...i,...r])},[]);return st.jsx(ut.Provider,{value:n,children:e})};function vi(e){return ie.useContext(ut).get(e)}function mi(e){return _t.get(e)}function m(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var hi={};function en(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:hi}var _i=Object.assign,Ie=Object.getOwnPropertyDescriptor,
|
|
22
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ee=Symbol("mobx-stored-annotations");function D(e){function t(i,n){Oe(i,n,e)}return Object.assign(t,e)}function Oe(e,t,i){U(e,ee)||We(e,ee,_e({},e[ee])),Ci(i)||(e[ee][t]=i)}var f=Symbol("mobx administration"),Ae=function(){function e(i){i===void 0&&(i="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=v.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=i}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.reportObserved=function(){return Fn(this)},t.reportChanged=function(){S(),Cn(this),N()},t.toString=function(){return this.name_},e}(),kt=H("Atom",Ae);function dn(e,t,i){t===void 0&&(t=Q),i===void 0&&(i=Q);var n=new Ae(e);return t!==Q&&Fr(n,t),i!==Q&&Vn(n,i),n}function Si(e,t){return e===t}function Ni(e,t){return Ot(e,t)}function Oi(e,t){return Ot(e,t,1)}function Ai(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Be={identity:Si,structural:Ni,default:Ai,shallow:Oi};function re(e,t,i){return Mn(e)?e:Array.isArray(e)?b.array(e,{name:i}):I(e)?b.object(e,void 0,{name:i}):oe(e)?b.map(e,{name:i}):Ne(e)?b.set(e,{name:i}):typeof e=="function"&&!yt(e)&&!ze(e)?an(e)?be(e):ke(i,e):e}function wi(e,t,i){if(e==null||ge(e)||Qe(e)||X(e)||ue(e))return e;if(Array.isArray(e))return b.array(e,{name:i,deep:!1});if(I(e))return b.object(e,void 0,{name:i,deep:!1});if(oe(e))return b.map(e,{name:i,deep:!1});if(Ne(e))return b.set(e,{name:i,deep:!1})}function He(e){return e}function Ei(e,t){return Ot(e,t)?t:e}var Fi="override";function Ci(e){return e.annotationType_===Fi}function we(e,t){return{annotationType_:e,options_:t,make_:Ti,extend_:Pi}}function Ti(e,t,i,n){var r;if((r=this.options_)!=null&&r.bound)return this.extend_(e,t,i,!1)===null?0:1;if(n===e.target_)return this.extend_(e,t,i,!1)===null?0:2;if(yt(i.value))return 1;var a=cn(e,this,t,i,!1);return V(n,t,a),2}function Pi(e,t,i,n){var r=cn(e,this,t,i);return e.defineProperty_(t,r,n)}function Di(e,t,i,n){t.annotationType_,n.value}function cn(e,t,i,n,r){var a,o,s,u,l,c,h;r===void 0&&(r=d.safeDescriptors),Di(e,t,i,n);var _=n.value;if((a=t.options_)!=null&&a.bound){var x;_=_.bind((x=e.proxy_)!=null?x:e.target_)}return{value:ae((o=(s=t.options_)==null?void 0:s.name)!=null?o:i.toString(),_,(u=(l=t.options_)==null?void 0:l.autoAction)!=null?u:!1,(c=t.options_)!=null&&c.bound?(h=e.proxy_)!=null?h:e.target_:void 0),configurable:r?e.isPlainObject_:!0,enumerable:!1,writable:!r}}function fn(e,t){return{annotationType_:e,options_:t,make_:ji,extend_:xi}}function ji(e,t,i,n){var r;if(n===e.target_)return this.extend_(e,t,i,!1)===null?0:2;if((r=this.options_)!=null&&r.bound&&(!U(e.target_,t)||!ze(e.target_[t]))&&this.extend_(e,t,i,!1)===null)return 0;if(ze(i.value))return 1;var a=vn(e,this,t,i,!1,!1);return V(n,t,a),2}function xi(e,t,i,n){var r,a=vn(e,this,t,i,(r=this.options_)==null?void 0:r.bound);return e.defineProperty_(t,a,n)}function Ri(e,t,i,n){t.annotationType_,n.value}function vn(e,t,i,n,r,a){a===void 0&&(a=d.safeDescriptors),Ri(e,t,i,n);var o=n.value;if(ze(o)||(o=be(o)),r){var s;o=o.bind((s=e.proxy_)!=null?s:e.target_),o.isMobXFlow=!0}return{value:o,configurable:a?e.isPlainObject_:!0,enumerable:!1,writable:!a}}function bt(e,t){return{annotationType_:e,options_:t,make_:Vi,extend_:Ii}}function Vi(e,t,i){return this.extend_(e,t,i,!1)===null?0:1}function Ii(e,t,i,n){return Bi(e,this,t,i),e.defineComputedProperty_(t,_e({},this.options_,{get:i.get,set:i.set}),n)}function Bi(e,t,i,n){t.annotationType_,n.get}function Xe(e,t){return{annotationType_:e,options_:t,make_:Li,extend_:Mi}}function Li(e,t,i){return this.extend_(e,t,i,!1)===null?0:1}function Mi(e,t,i,n){var r,a;return Ui(e,this),e.defineObservableProperty_(t,i.value,(r=(a=this.options_)==null?void 0:a.enhancer)!=null?r:re,n)}function Ui(e,t,i,n){t.annotationType_}var zi="true",Gi=mn();function mn(e){return{annotationType_:zi,options_:e,make_:$i,extend_:Ki}}function $i(e,t,i,n){var r,a;if(i.get)return Je.make_(e,t,i,n);if(i.set){var o=ae(t.toString(),i.set);return n===e.target_?e.defineProperty_(t,{configurable:d.safeDescriptors?e.isPlainObject_:!0,set:o})===null?0:2:(V(n,t,{configurable:!0,set:o}),2)}if(n!==e.target_&&typeof i.value=="function"){var s;if(an(i.value)){var u,l=(u=this.options_)!=null&&u.autoBind?be.bound:be;return l.make_(e,t,i,n)}var c=(s=this.options_)!=null&&s.autoBind?ke.bound:ke;return c.make_(e,t,i,n)}var h=((r=this.options_)==null?void 0:r.deep)===!1?b.ref:b;if(typeof i.value=="function"&&(a=this.options_)!=null&&a.autoBind){var _;i.value=i.value.bind((_=e.proxy_)!=null?_:e.target_)}return h.make_(e,t,i,n)}function Ki(e,t,i,n){var r,a;if(i.get)return Je.extend_(e,t,i,n);if(i.set)return e.defineProperty_(t,{configurable:d.safeDescriptors?e.isPlainObject_:!0,set:ae(t.toString(),i.set)},n);if(typeof i.value=="function"&&(r=this.options_)!=null&&r.autoBind){var o;i.value=i.value.bind((o=e.proxy_)!=null?o:e.target_)}var s=((a=this.options_)==null?void 0:a.deep)===!1?b.ref:b;return s.extend_(e,t,i,n)}var qi="observable",Wi="observable.ref",Hi="observable.shallow",Xi="observable.struct",hn={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(hn);function je(e){return e||hn}var _n=Xe(qi),Ji=Xe(Wi,{enhancer:He}),Yi=Xe(Hi,{enhancer:wi}),Qi=Xe(Xi,{enhancer:Ei}),pn=D(_n);function xe(e){return e.deep===!0?re:e.deep===!1?He:er(e.defaultDecorator)}function Zi(e){var t;return e?(t=e.defaultDecorator)!=null?t:mn(e):void 0}function er(e){var t,i;return e&&(t=(i=e.options_)==null?void 0:i.enhancer)!=null?t:re}function kn(e,t,i){if(q(t)){Oe(e,t,_n);return}return Mn(e)?e:I(e)?b.object(e,t,i):Array.isArray(e)?b.array(e,t):oe(e)?b.map(e,t):Ne(e)?b.set(e,t):typeof e=="object"&&e!==null?e:b.box(e,t)}Object.assign(kn,pn);var tr={box:function(t,i){var n=je(i);return new ne(t,xe(n),n.name,!0,n.equals)},array:function(t,i){var n=je(i);return(d.useProxies===!1||n.proxy===!1?Hr:Lr)(t,xe(n),n.name)},map:function(t,i){var n=je(i);return new $n(t,xe(n),n.name)},set:function(t,i){var n=je(i);return new Wn(t,xe(n),n.name)},object:function(t,i,n){return Bn(d.useProxies===!1||(n==null?void 0:n.proxy)===!1?Ze({},n):Rr({},n),t,i)},ref:D(Ji),shallow:D(Yi),deep:pn,struct:D(Qi)},b=_i(kn,tr),bn="computed",nr="computed.struct",gn=bt(bn),ir=bt(nr,{equals:Be.structural}),Je=function(t,i){if(q(i))return Oe(t,i,gn);if(I(t))return D(bt(bn,t));var n=I(i)?i:{};return n.get=t,n.name||(n.name=t.name||""),new pe(n)};Object.assign(Je,gn);Je.struct=D(ir);var Rt,Vt,Le=0,rr=1,ar=(Rt=(Vt=Ie(function(){},"name"))==null?void 0:Vt.configurable)!=null?Rt:!1,It={value:"action",configurable:!0,writable:!1,enumerable:!1};function ae(e,t,i,n){i===void 0&&(i=!1);function r(){return or(e,i,t,n||this,arguments)}return r.isMobxAction=!0,ar&&(It.value=e,Object.defineProperty(r,"name",It)),r}function or(e,t,i,n,r){var a=sr(e,t);try{return i.apply(n,r)}catch(o){throw a.error_=o,o}finally{ur(a)}}function sr(e,t,i,n){var r=!1,a=0,o=d.trackingDerivation,s=!t||!o;S();var u=d.allowStateChanges;s&&(se(),u=Ee(!0));var l=gt(!0),c={runAsAction_:s,prevDerivation_:o,prevAllowStateChanges_:u,prevAllowStateReads_:l,notifySpy_:r,startTime_:a,actionId_:rr++,parentActionId_:Le};return Le=c.actionId_,c}function ur(e){Le!==e.actionId_&&m(30),Le=e.parentActionId_,e.error_!==void 0&&(d.suppressReactionErrors=!0),Fe(e.prevAllowStateChanges_),ce(e.prevAllowStateReads_),N(),e.runAsAction_&&z(e.prevDerivation_),d.suppressReactionErrors=!1}function lr(e,t){var i=Ee(e);try{return t()}finally{Fe(i)}}function Ee(e){var t=d.allowStateChanges;return d.allowStateChanges=e,t}function Fe(e){d.allowStateChanges=e}var yn;yn=Symbol.toPrimitive;var ne=function(e){ln(t,e);function t(n,r,a,o,s){var u;return a===void 0&&(a="ObservableValue"),s===void 0&&(s=Be.default),u=e.call(this,a)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=r,u.name_=a,u.equals=s,u.value_=r(n,void 0,a),u}var i=t.prototype;return i.dehanceValue=function(r){return this.dehancer!==void 0?this.dehancer(r):r},i.set=function(r){this.value_,r=this.prepareNewValue_(r),r!==d.UNCHANGED&&this.setNewValue_(r)},i.prepareNewValue_=function(r){if(O(this)){var a=A(this,{object:this,type:j,newValue:r});if(!a)return d.UNCHANGED;r=a.newValue}return r=this.enhancer(r,this.value_,this.name_),this.equals(this.value_,r)?d.UNCHANGED:r},i.setNewValue_=function(r){var a=this.value_;this.value_=r,this.reportChanged(),w(this)&&E(this,{type:j,object:this,newValue:r,oldValue:a})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},i.intercept_=function(r){return Ce(this,r)},i.observe_=function(r,a){return a&&r({observableKind:"value",debugObjectName:this.name_,object:this,type:j,newValue:this.value_,oldValue:void 0}),Te(this,r)},i.raw=function(){return this.value_},i.toJSON=function(){return this.get()},i.toString=function(){return this.name_+"["+this.value_+"]"},i.valueOf=function(){return un(this.get())},i[yn]=function(){return this.valueOf()},t}(Ae),Sn;Sn=Symbol.toPrimitive;var pe=function(){function e(i){this.dependenciesState_=v.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=v.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Me(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=K.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,i.get||m(31),this.derivation=i.get,this.name_=i.name||"ComputedValue",i.set&&(this.setter_=ae("ComputedValue-setter",i.set)),this.equals_=i.equals||(i.compareStructural||i.struct?Be.structural:Be.default),this.scope_=i.context,this.requiresReaction_=i.requiresReaction,this.keepAlive_=!!i.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){vr(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.get=function(){if(this.isComputing_&&m(32,this.name_,this.derivation),d.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)ct(this)&&(this.warnAboutUntrackedRead_(),S(),this.value_=this.computeValue_(!1),N());else if(Fn(this),ct(this)){var n=d.trackingContext;this.keepAlive_&&!n&&(d.trackingContext=this),this.trackAndCompute()&&fr(this),d.trackingContext=n}var r=this.value_;if(Ve(r))throw r.cause;return r},t.set=function(n){if(this.setter_){this.isRunningSetter_&&m(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter_=!1}}else m(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,r=this.dependenciesState_===v.NOT_TRACKING_,a=this.computeValue_(!0),o=r||Ve(n)||Ve(a)||!this.equals_(n,a);return o&&(this.value_=a),o},t.computeValue_=function(n){this.isComputing_=!0;var r=Ee(!1),a;if(n)a=Nn(this,this.derivation,this.scope_);else if(d.disableErrorBoundaries===!0)a=this.derivation.call(this.scope_);else try{a=this.derivation.call(this.scope_)}catch(o){a=new Me(o)}return Fe(r),this.isComputing_=!1,a},t.suspend_=function(){this.keepAlive_||(ft(this),this.value_=void 0)},t.observe_=function(n,r){var a=this,o=!0,s=void 0;return Nr(function(){var u=a.get();if(!o||r){var l=se();n({observableKind:"computed",debugObjectName:a.name_,type:j,object:a,newValue:u,oldValue:s}),z(l)}o=!1,s=u})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return un(this.get())},t[Sn]=function(){return this.valueOf()},e}(),Ye=H("ComputedValue",pe),v;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(v||(v={}));var K;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(K||(K={}));var Me=function(t){this.cause=void 0,this.cause=t};function Ve(e){return e instanceof Me}function ct(e){switch(e.dependenciesState_){case v.UP_TO_DATE_:return!1;case v.NOT_TRACKING_:case v.STALE_:return!0;case v.POSSIBLY_STALE_:{for(var t=gt(!0),i=se(),n=e.observing_,r=n.length,a=0;a<r;a++){var o=n[a];if(Ye(o)){if(d.disableErrorBoundaries)o.get();else try{o.get()}catch(s){return z(i),ce(t),!0}if(e.dependenciesState_===v.STALE_)return z(i),ce(t),!0}}return An(e),z(i),ce(t),!1}}}function Nn(e,t,i){var n=gt(!0);An(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++d.runId;var r=d.trackingDerivation;d.trackingDerivation=e,d.inBatch++;var a;if(d.disableErrorBoundaries===!0)a=t.call(i);else try{a=t.call(i)}catch(o){a=new Me(o)}return d.inBatch--,d.trackingDerivation=r,dr(e),ce(n),a}function dr(e){for(var t=e.observing_,i=e.observing_=e.newObserving_,n=v.UP_TO_DATE_,r=0,a=e.unboundDepsCount_,o=0;o<a;o++){var s=i[o];s.diffValue_===0&&(s.diffValue_=1,r!==o&&(i[r]=s),r++),s.dependenciesState_>n&&(n=s.dependenciesState_)}for(i.length=r,e.newObserving_=null,a=t.length;a--;){var u=t[a];u.diffValue_===0&&wn(u,e),u.diffValue_=0}for(;r--;){var l=i[r];l.diffValue_===1&&(l.diffValue_=0,cr(l,e))}n!==v.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function ft(e){var t=e.observing_;e.observing_=[];for(var i=t.length;i--;)wn(t[i],e);e.dependenciesState_=v.NOT_TRACKING_}function On(e){var t=se();try{return e()}finally{z(t)}}function se(){var e=d.trackingDerivation;return d.trackingDerivation=null,e}function z(e){d.trackingDerivation=e}function gt(e){var t=d.allowStateReads;return d.allowStateReads=e,t}function ce(e){d.allowStateReads=e}function An(e){if(e.dependenciesState_!==v.UP_TO_DATE_){e.dependenciesState_=v.UP_TO_DATE_;for(var t=e.observing_,i=t.length;i--;)t[i].lowestObserverState_=v.UP_TO_DATE_}}var nt=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},it=!0,d=function(){var e=en();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(it=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new nt().version&&(it=!1),it?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new nt):(setTimeout(function(){m(35)},1),new nt)}();function cr(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function wn(e,t){e.observers_.delete(t),e.observers_.size===0&&En(e)}function En(e){e.isPendingUnobservation_===!1&&(e.isPendingUnobservation_=!0,d.pendingUnobservations.push(e))}function S(){d.inBatch++}function N(){if(--d.inBatch===0){Tn();for(var e=d.pendingUnobservations,t=0;t<e.length;t++){var i=e[t];i.isPendingUnobservation_=!1,i.observers_.size===0&&(i.isBeingObserved_&&(i.isBeingObserved_=!1,i.onBUO()),i instanceof pe&&i.suspend_())}d.pendingUnobservations=[]}}function Fn(e){var t=d.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&d.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),!0):(e.observers_.size===0&&d.inBatch>0&&En(e),!1)}function Cn(e){e.lowestObserverState_!==v.STALE_&&(e.lowestObserverState_=v.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===v.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=v.STALE_}))}function fr(e){e.lowestObserverState_!==v.STALE_&&(e.lowestObserverState_=v.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===v.POSSIBLY_STALE_?t.dependenciesState_=v.STALE_:t.dependenciesState_===v.UP_TO_DATE_&&(e.lowestObserverState_=v.UP_TO_DATE_)}))}function vr(e){e.lowestObserverState_===v.UP_TO_DATE_&&(e.lowestObserverState_=v.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===v.UP_TO_DATE_&&(t.dependenciesState_=v.POSSIBLY_STALE_,t.onBecomeStale_())}))}var vt=function(){function e(i,n,r,a){i===void 0&&(i="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=v.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=K.NONE,this.name_=i,this.onInvalidate_=n,this.errorHandler_=r,this.requiresObservable_=a}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,d.pendingReactions.push(this),Tn())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){S(),this.isScheduled_=!1;var n=d.trackingContext;if(d.trackingContext=this,ct(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(r){this.reportExceptionInDerivation_(r)}}d.trackingContext=n,N()}},t.track=function(n){if(!this.isDisposed_){S(),this.isRunning_=!0;var r=d.trackingContext;d.trackingContext=this;var a=Nn(this,n,void 0);d.trackingContext=r,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&ft(this),Ve(a)&&this.reportExceptionInDerivation_(a.cause),N()}},t.reportExceptionInDerivation_=function(n){var r=this;if(this.errorHandler_){this.errorHandler_(n,this);return}if(d.disableErrorBoundaries)throw n;var a="[mobx] uncaught error in '"+this+"'";d.suppressReactionErrors||console.error(a,n),d.globalReactionErrorHandlers.forEach(function(o){return o(n,r)})},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(S(),ft(this),N()))},t.getDisposer_=function(){var n=this.dispose.bind(this);return n[f]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(n){n===void 0&&(n=!1),Dr(this,n)},e}(),mr=100,hr=function(t){return t()};function Tn(){d.inBatch>0||d.isRunningReactions||hr(_r)}function _r(){d.isRunningReactions=!0;for(var e=d.pendingReactions,t=0;e.length>0;){++t===mr&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var i=e.splice(0),n=0,r=i.length;n<r;n++)i[n].runReaction_()}d.isRunningReactions=!1}var Ue=H("Reaction",vt);function fe(){return!1}function pr(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Pn="action",kr="action.bound",Dn="autoAction",br="autoAction.bound",gr="<unnamed action>",jn=we(Pn),yr=we(kr,{bound:!0}),xn=we(Dn,{autoAction:!0}),Sr=we(br,{autoAction:!0,bound:!0});function Rn(e){var t=function(n,r){if(F(n))return ae(n.name||gr,n,e);if(F(r))return ae(n,r,e);if(q(r))return Oe(n,r,e?xn:jn);if(q(n))return D(we(e?Dn:Pn,{name:n,autoAction:e}))};return t}var te=Rn(!1);Object.assign(te,jn);var ke=Rn(!0);Object.assign(ke,xn);te.bound=D(yr);ke.bound=D(Sr);function yt(e){return F(e)&&e.isMobxAction===!0}function Nr(e,t){var i,n;t===void 0&&(t=tn);var r=(i=(n=t)==null?void 0:n.name)!=null?i:"Autorun",a=!t.scheduler&&!t.delay,o;if(a)o=new vt(r,function(){this.track(l)},t.onError,t.requiresObservable);else{var s=Ar(t),u=!1;o=new vt(r,function(){u||(u=!0,s(function(){u=!1,o.isDisposed_||o.track(l)}))},t.onError,t.requiresObservable)}function l(){e(o)}return o.schedule_(),o.getDisposer_()}var Or=function(t){return t()};function Ar(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Or}var wr="onBO",Er="onBUO";function Fr(e,t,i){return In(wr,e,t,i)}function Vn(e,t,i){return In(Er,e,t,i)}function In(e,t,i,n){var r=typeof n=="function"?W(t,i):W(t),a=F(n)?n:i,o=e+"L";return r[o]?r[o].add(a):r[o]=new Set([a]),function(){var s=r[o];s&&(s.delete(a),s.size===0&&delete r[o])}}function Bn(e,t,i,n){var r=gi(t),a=Ze(e,n)[f];S();try{he(r).forEach(function(o){a.extend_(o,r[o],i&&o in i?i[o]:!0)})}finally{N()}return e}var Cr=0;function Ln(){this.message="FLOW_CANCELLED"}Ln.prototype=Object.create(Error.prototype);var Bt=fn("flow"),Tr=fn("flow.bound",{bound:!0}),be=Object.assign(function(t,i){if(q(i))return Oe(t,i,Bt);var n=t,r=n.name||"<unnamed flow>",a=function(){var s=this,u=arguments,l=++Cr,c=te(r+" - runid: "+l+" - init",n).apply(s,u),h,_=void 0,x=new Promise(function(J,C){var T=0;h=C;function Pe(y){_=void 0;var L;try{L=te(r+" - runid: "+l+" - yield "+T++,c.next).call(c,y)}catch($){return C($)}le(L)}function et(y){_=void 0;var L;try{L=te(r+" - runid: "+l+" - yield "+T++,c.throw).call(c,y)}catch($){return C($)}le(L)}function le(y){if(F(y==null?void 0:y.then)){y.then(le,C);return}return y.done?J(y.value):(_=Promise.resolve(y.value),_.then(Pe,et))}Pe(void 0)});return x.cancel=te(r+" - runid: "+l+" - cancel",function(){try{_&&Lt(_);var J=c.return(void 0),C=Promise.resolve(J.value);C.then(Q,Q),Lt(C),h(new Ln)}catch(T){h(T)}}),x};return a.isMobXFlow=!0,a},Bt);be.bound=D(Tr);function Lt(e){F(e.cancel)&&e.cancel()}function ze(e){return(e==null?void 0:e.isMobXFlow)===!0}function Pr(e,t){return e?t!==void 0?ge(e)?e[f].values_.has(t):!1:ge(e)||!!e[f]||kt(e)||Ue(e)||Ye(e):!1}function Mn(e){return Pr(e)}function Dr(){m("trace() is not available in production builds");for(var e=!1,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];typeof i[i.length-1]=="boolean"&&(e=i.pop());var r=jr(i);if(!r)return m("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");r.isTracing_===K.NONE&&console.log("[mobx.trace] '"+r.name_+"' tracing enabled"),r.isTracing_=e?K.BREAK:K.LOG}function jr(e){switch(e.length){case 0:return d.trackingDerivation;case 1:return W(e[0]);case 2:return W(e[0],e[1])}}function R(e,t){t===void 0&&(t=void 0),S();try{return e.apply(t)}finally{N()}}function Y(e){return e[f]}var xr={has:function(t,i){return Y(t).has_(i)},get:function(t,i){return Y(t).get_(i)},set:function(t,i,n){var r;return q(i)?(r=Y(t).set_(i,n,!0))!=null?r:!0:!1},deleteProperty:function(t,i){var n;return q(i)?(n=Y(t).delete_(i,!0))!=null?n:!0:!1},defineProperty:function(t,i,n){var r;return(r=Y(t).defineProperty_(i,n))!=null?r:!0},ownKeys:function(t){return Y(t).ownKeys_()},preventExtensions:function(t){m(13)}};function Rr(e,t){var i,n;return nn(),e=Ze(e,t),(n=(i=e[f]).proxy_)!=null?n:i.proxy_=new Proxy(e,xr)}function O(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Ce(e,t){var i=e.interceptors_||(e.interceptors_=[]);return i.push(t),rn(function(){var n=i.indexOf(t);n!==-1&&i.splice(n,1)})}function A(e,t){var i=se();try{for(var n=[].concat(e.interceptors_||[]),r=0,a=n.length;r<a&&(t=n[r](t),t&&!t.type&&m(14),!!t);r++);return t}finally{z(i)}}function w(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Te(e,t){var i=e.changeListeners_||(e.changeListeners_=[]);return i.push(t),rn(function(){var n=i.indexOf(t);n!==-1&&i.splice(n,1)})}function E(e,t){var i=se(),n=e.changeListeners_;if(n){n=n.slice();for(var r=0,a=n.length;r<a;r++)n[r](t);z(i)}}var rt=Symbol("mobx-keys");function Vr(e,t,i){if(I(e))return Bn(e,e,t,i);var n=Ze(e,i)[f];if(!e[rt]){var r=Object.getPrototypeOf(e),a=new Set([].concat(he(e),he(r)));a.delete("constructor"),a.delete(f),We(r,rt,a)}S();try{e[rt].forEach(function(o){return n.make_(o,t&&o in t?t[o]:!0)})}finally{N()}return e}var Mt="splice",j="update",Ir=1e4,Br={get:function(t,i){var n=t[f];return i===f?n:i==="length"?n.getArrayLength_():typeof i=="string"&&!isNaN(i)?n.get_(parseInt(i)):U(Ge,i)?Ge[i]:t[i]},set:function(t,i,n){var r=t[f];return i==="length"&&r.setArrayLength_(n),typeof i=="symbol"||isNaN(i)?t[i]=n:r.set_(parseInt(i),n),!0},preventExtensions:function(){m(15)}},St=function(){function e(i,n,r,a){i===void 0&&(i="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_=r,this.legacyMode_=a,this.atom_=new Ae(i),this.enhancer_=function(o,s){return n(o,s,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.dehanceValues_=function(n){return this.dehancer!==void 0&&n.length>0?n.map(this.dehancer):n},t.intercept_=function(n){return Ce(this,n)},t.observe_=function(n,r){return r===void 0&&(r=!1),r&&n({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Te(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&m("Out of range: "+n);var r=this.values_.length;if(n!==r)if(n>r){for(var a=new Array(n-r),o=0;o<n-r;o++)a[o]=void 0;this.spliceWithArray_(r,0,a)}else this.spliceWithArray_(n,r-n)},t.updateArrayLength_=function(n,r){n!==this.lastKnownLength_&&m(16),this.lastKnownLength_+=r,this.legacyMode_&&r>0&&Jn(n+r+1)},t.spliceWithArray_=function(n,r,a){var o=this;this.atom_;var s=this.values_.length;if(n===void 0?n=0:n>s?n=s:n<0&&(n=Math.max(0,s+n)),arguments.length===1?r=s-n:r==null?r=0:r=Math.max(0,Math.min(r,s-n)),a===void 0&&(a=lt),O(this)){var u=A(this,{object:this.proxy_,type:Mt,index:n,removedCount:r,added:a});if(!u)return lt;r=u.removedCount,a=u.added}if(a=a.length===0?a:a.map(function(h){return o.enhancer_(h,void 0)}),this.legacyMode_){var l=a.length-r;this.updateArrayLength_(s,l)}var c=this.spliceItemsIntoValues_(n,r,a);return(r!==0||a.length!==0)&&this.notifyArraySplice_(n,a,c),this.dehanceValues_(c)},t.spliceItemsIntoValues_=function(n,r,a){if(a.length<Ir){var o;return(o=this.values_).splice.apply(o,[n,r].concat(a))}else{var s=this.values_.slice(n,n+r),u=this.values_.slice(n+r);this.values_.length+=a.length-r;for(var l=0;l<a.length;l++)this.values_[n+l]=a[l];for(var c=0;c<u.length;c++)this.values_[n+a.length+c]=u[c];return s}},t.notifyArrayChildUpdate_=function(n,r,a){var o=!this.owned_&&fe(),s=w(this),u=s||o?{observableKind:"array",object:this.proxy_,type:j,debugObjectName:this.atom_.name_,index:n,newValue:r,oldValue:a}:null;this.atom_.reportChanged(),s&&E(this,u)},t.notifyArraySplice_=function(n,r,a){var o=!this.owned_&&fe(),s=w(this),u=s||o?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Mt,index:n,removed:a,added:r,removedCount:a.length,addedCount:r.length}:null;this.atom_.reportChanged(),s&&E(this,u)},t.get_=function(n){if(n<this.values_.length)return this.atom_.reportObserved(),this.dehanceValue_(this.values_[n]);console.warn("[mobx.array] Attempt to read an array index ("+n+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX")},t.set_=function(n,r){var a=this.values_;if(n<a.length){this.atom_;var o=a[n];if(O(this)){var s=A(this,{type:j,object:this.proxy_,index:n,newValue:r});if(!s)return;r=s.newValue}r=this.enhancer_(r,o);var u=r!==o;u&&(a[n]=r,this.notifyArrayChildUpdate_(n,r,o))}else n===a.length?this.spliceWithArray_(n,0,[r]):m(17,n,a.length)},e}();function Lr(e,t,i,n){i===void 0&&(i="ObservableArray"),n===void 0&&(n=!1),nn();var r=new St(i,t,n,!1);on(r.values_,f,r);var a=new Proxy(r.values_,Br);if(r.proxy_=a,e&&e.length){var o=Ee(!0);r.spliceWithArray_(0,0,e),Fe(o)}return a}var Ge={clear:function(){return this.splice(0)},replace:function(t){var i=this[f];return i.spliceWithArray_(0,i.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,i){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var o=this[f];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(t);case 2:return o.spliceWithArray_(t,i)}return o.spliceWithArray_(t,i,r)},spliceWithArray:function(t,i,n){return this[f].spliceWithArray_(t,i,n)},push:function(){for(var t=this[f],i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return t.spliceWithArray_(t.values_.length,0,n),t.values_.length},pop:function(){return this.splice(Math.max(this[f].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[f],i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return t.spliceWithArray_(0,0,n),t.values_.length},reverse:function(){return d.trackingDerivation&&m(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){d.trackingDerivation&&m(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var i=this[f],n=i.dehanceValues_(i.values_).indexOf(t);return n>-1?(this.splice(n,1),!0):!1}};p("concat",B);p("flat",B);p("includes",B);p("indexOf",B);p("join",B);p("lastIndexOf",B);p("slice",B);p("toString",B);p("toLocaleString",B);p("every",G);p("filter",G);p("find",G);p("findIndex",G);p("flatMap",G);p("forEach",G);p("map",G);p("some",G);p("reduce",Un);p("reduceRight",Un);function p(e,t){typeof Array.prototype[e]=="function"&&(Ge[e]=t(e))}function B(e){return function(){var t=this[f];t.atom_.reportObserved();var i=t.dehanceValues_(t.values_);return i[e].apply(i,arguments)}}function G(e){return function(t,i){var n=this,r=this[f];r.atom_.reportObserved();var a=r.dehanceValues_(r.values_);return a[e](function(o,s){return t.call(i,o,s,n)})}}function Un(e){return function(){var t=this,i=this[f];i.atom_.reportObserved();var n=i.dehanceValues_(i.values_),r=arguments[0];return arguments[0]=function(a,o,s){return r(a,o,s,t)},n[e].apply(n,arguments)}}var Mr=H("ObservableArrayAdministration",St);function Qe(e){return qe(e)&&Mr(e[f])}var zn,Gn,Ur={},M="add",$e="delete";zn=Symbol.iterator;Gn=Symbol.toStringTag;var $n=function(){function e(i,n,r){var a=this;n===void 0&&(n=re),r===void 0&&(r="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[f]=Ur,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_=n,this.name_=r,F(Map)||m(18),this.keysAtom_=dn("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,lr(!0,function(){a.merge(i)})}var t=e.prototype;return t.has_=function(n){return this.data_.has(n)},t.has=function(n){var r=this;if(!d.trackingDerivation)return this.has_(n);var a=this.hasMap_.get(n);if(!a){var o=a=new ne(this.has_(n),He,"ObservableMap.key?",!1);this.hasMap_.set(n,o),Vn(o,function(){return r.hasMap_.delete(n)})}return a.get()},t.set=function(n,r){var a=this.has_(n);if(O(this)){var o=A(this,{type:a?j:M,object:this,newValue:r,name:n});if(!o)return this;r=o.newValue}return a?this.updateValue_(n,r):this.addValue_(n,r),this},t.delete=function(n){var r=this;if(this.keysAtom_,O(this)){var a=A(this,{type:$e,object:this,name:n});if(!a)return!1}if(this.has_(n)){var o=fe(),s=w(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:$e,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return R(function(){var l;r.keysAtom_.reportChanged(),(l=r.hasMap_.get(n))==null||l.setNewValue_(!1);var c=r.data_.get(n);c.setNewValue_(void 0),r.data_.delete(n)}),s&&E(this,u),!0}return!1},t.updateValue_=function(n,r){var a=this.data_.get(n);if(r=a.prepareNewValue_(r),r!==d.UNCHANGED){var o=fe(),s=w(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:j,object:this,oldValue:a.value_,name:n,newValue:r}:null;a.setNewValue_(r),s&&E(this,u)}},t.addValue_=function(n,r){var a=this;this.keysAtom_,R(function(){var l,c=new ne(r,a.enhancer_,"ObservableMap.key",!1);a.data_.set(n,c),r=c.value_,(l=a.hasMap_.get(n))==null||l.setNewValue_(!0),a.keysAtom_.reportChanged()});var o=fe(),s=w(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:M,object:this,name:n,newValue:r}:null;s&&E(this,u)},t.get=function(n){return this.has(n)?this.dehanceValue_(this.data_.get(n).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var n=this,r=this.keys();return ye({next:function(){var o=r.next(),s=o.done,u=o.value;return{done:s,value:s?void 0:n.get(u)}}})},t.entries=function(){var n=this,r=this.keys();return ye({next:function(){var o=r.next(),s=o.done,u=o.value;return{done:s,value:s?void 0:[u,n.get(u)]}}})},t[zn]=function(){return this.entries()},t.forEach=function(n,r){for(var a=Z(this),o;!(o=a()).done;){var s=o.value,u=s[0],l=s[1];n.call(r,l,u,this)}},t.merge=function(n){var r=this;return X(n)&&(n=new Map(n)),R(function(){I(n)?bi(n).forEach(function(a){return r.set(a,n[a])}):Array.isArray(n)?n.forEach(function(a){var o=a[0],s=a[1];return r.set(o,s)}):oe(n)?(n.constructor!==Map&&m(19,n),n.forEach(function(a,o){return r.set(o,a)})):n!=null&&m(20,n)}),this},t.clear=function(){var n=this;R(function(){On(function(){for(var r=Z(n.keys()),a;!(a=r()).done;){var o=a.value;n.delete(o)}})})},t.replace=function(n){var r=this;return R(function(){for(var a=zr(n),o=new Map,s=!1,u=Z(r.data_.keys()),l;!(l=u()).done;){var c=l.value;if(!a.has(c)){var h=r.delete(c);if(h)s=!0;else{var _=r.data_.get(c);o.set(c,_)}}}for(var x=Z(a.entries()),J;!(J=x()).done;){var C=J.value,T=C[0],Pe=C[1],et=r.data_.has(T);if(r.set(T,Pe),r.data_.has(T)){var le=r.data_.get(T);o.set(T,le),et||(s=!0)}}if(!s)if(r.data_.size!==o.size)r.keysAtom_.reportChanged();else for(var y=r.data_.keys(),L=o.keys(),$=y.next(),wt=L.next();!$.done;){if($.value!==wt.value){r.keysAtom_.reportChanged();break}$=y.next(),wt=L.next()}r.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(n,r){return Te(this,n)},t.intercept_=function(n){return Ce(this,n)},pt(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Gn,get:function(){return"Map"}}]),e}(),X=H("ObservableMap",$n);function zr(e){if(oe(e)||X(e))return e;if(Array.isArray(e))return new Map(e);if(I(e)){var t=new Map;for(var i in e)t.set(i,e[i]);return t}else return m(21,e)}var Kn,qn,Gr={};Kn=Symbol.iterator;qn=Symbol.toStringTag;var Wn=function(){function e(i,n,r){n===void 0&&(n=re),r===void 0&&(r="ObservableSet"),this.name_=void 0,this[f]=Gr,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_=r,F(Set)||m(22),this.atom_=dn(this.name_),this.enhancer_=function(a,o){return n(a,o,r)},i&&this.replace(i)}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.clear=function(){var n=this;R(function(){On(function(){for(var r=Z(n.data_.values()),a;!(a=r()).done;){var o=a.value;n.delete(o)}})})},t.forEach=function(n,r){for(var a=Z(this),o;!(o=a()).done;){var s=o.value;n.call(r,s,s,this)}},t.add=function(n){var r=this;if(this.atom_,O(this)){var a=A(this,{type:M,object:this,newValue:n});if(!a)return this}if(!this.has(n)){R(function(){r.data_.add(r.enhancer_(n,void 0)),r.atom_.reportChanged()});var o=!1,s=w(this),u=s||o?{observableKind:"set",debugObjectName:this.name_,type:M,object:this,newValue:n}:null;s&&E(this,u)}return this},t.delete=function(n){var r=this;if(O(this)){var a=A(this,{type:$e,object:this,oldValue:n});if(!a)return!1}if(this.has(n)){var o=!1,s=w(this),u=s||o?{observableKind:"set",debugObjectName:this.name_,type:$e,object:this,oldValue:n}:null;return R(function(){r.atom_.reportChanged(),r.data_.delete(n)}),s&&E(this,u),!0}return!1},t.has=function(n){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(n))},t.entries=function(){var n=0,r=Array.from(this.keys()),a=Array.from(this.values());return ye({next:function(){var s=n;return n+=1,s<a.length?{value:[r[s],a[s]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var n=this,r=0,a=Array.from(this.data_.values());return ye({next:function(){return r<a.length?{value:n.dehanceValue_(a[r++]),done:!1}:{done:!0}}})},t.replace=function(n){var r=this;return ue(n)&&(n=new Set(n)),R(function(){Array.isArray(n)?(r.clear(),n.forEach(function(a){return r.add(a)})):Ne(n)?(r.clear(),n.forEach(function(a){return r.add(a)})):n!=null&&m("Cannot initialize set from "+n)}),this},t.observe_=function(n,r){return Te(this,n)},t.intercept_=function(n){return Ce(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Kn]=function(){return this.values()},pt(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:qn,get:function(){return"Set"}}]),e}(),ue=H("ObservableSet",Wn),Ut=Object.create(null),zt="remove",Hn=function(){function e(i,n,r,a){n===void 0&&(n=new Map),a===void 0&&(a=Gi),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_=i,this.values_=n,this.name_=r,this.defaultAnnotation_=a,this.keysAtom_=new Ae("ObservableObject.keys"),this.isPlainObject_=I(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(n){return this.values_.get(n).get()},t.setObservablePropValue_=function(n,r){var a=this.values_.get(n);if(a instanceof pe)return a.set(r),!0;if(O(this)){var o=A(this,{type:j,object:this.proxy_||this.target_,name:n,newValue:r});if(!o)return null;r=o.newValue}if(r=a.prepareNewValue_(r),r!==d.UNCHANGED){var s=w(this),u=!1,l=s||u?{type:j,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:a.value_,name:n,newValue:r}:null;a.setNewValue_(r),s&&E(this,l)}return!0},t.get_=function(n){return d.trackingDerivation&&!U(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,r,a){return a===void 0&&(a=!1),U(this.target_,n)?this.values_.has(n)?this.setObservablePropValue_(n,r):a?Reflect.set(this.target_,n,r):(this.target_[n]=r,!0):this.extend_(n,{value:r,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,a)},t.has_=function(n){if(!d.trackingDerivation)return n in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var r=this.pendingKeys_.get(n);return r||(r=new ne(n in this.target_,He,"ObservableObject.key?",!1),this.pendingKeys_.set(n,r)),r.get()},t.make_=function(n,r){if(r===!0&&(r=this.defaultAnnotation_),r!==!1){if(!(n in this.target_)){var a;if((a=this.target_[ee])!=null&&a[n])return;m(1,r.annotationType_,this.name_+"."+n.toString())}for(var o=this.target_;o&&o!==Ke;){var s=Ie(o,n);if(s){var u=r.make_(this,n,s,o);if(u===0)return;if(u===1)break}o=Object.getPrototypeOf(o)}$t(this,r,n)}},t.extend_=function(n,r,a,o){if(o===void 0&&(o=!1),a===!0&&(a=this.defaultAnnotation_),a===!1)return this.defineProperty_(n,r,o);var s=a.extend_(this,n,r,o);return s&&$t(this,a,n),s},t.defineProperty_=function(n,r,a){a===void 0&&(a=!1);try{S();var o=this.delete_(n);if(!o)return o;if(O(this)){var s=A(this,{object:this.proxy_||this.target_,name:n,type:M,newValue:r.value});if(!s)return null;var u=s.newValue;r.value!==u&&(r=_e({},r,{value:u}))}if(a){if(!Reflect.defineProperty(this.target_,n,r))return!1}else V(this.target_,n,r);this.notifyPropertyAddition_(n,r.value)}finally{N()}return!0},t.defineObservableProperty_=function(n,r,a,o){o===void 0&&(o=!1);try{S();var s=this.delete_(n);if(!s)return s;if(O(this)){var u=A(this,{object:this.proxy_||this.target_,name:n,type:M,newValue:r});if(!u)return null;r=u.newValue}var l=Gt(n),c={configurable:d.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:l.get,set:l.set};if(o){if(!Reflect.defineProperty(this.target_,n,c))return!1}else V(this.target_,n,c);var h=new ne(r,a,"ObservableObject.key",!1);this.values_.set(n,h),this.notifyPropertyAddition_(n,h.value_)}finally{N()}return!0},t.defineComputedProperty_=function(n,r,a){a===void 0&&(a=!1);try{S();var o=this.delete_(n);if(!o)return o;if(O(this)){var s=A(this,{object:this.proxy_||this.target_,name:n,type:M,newValue:void 0});if(!s)return null}r.name||(r.name="ObservableObject.key"),r.context=this.proxy_||this.target_;var u=Gt(n),l={configurable:d.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(a){if(!Reflect.defineProperty(this.target_,n,l))return!1}else V(this.target_,n,l);this.values_.set(n,new pe(r)),this.notifyPropertyAddition_(n,void 0)}finally{N()}return!0},t.delete_=function(n,r){if(r===void 0&&(r=!1),!U(this.target_,n))return!0;if(O(this)){var a=A(this,{object:this.proxy_||this.target_,name:n,type:zt});if(!a)return null}try{var o,s;S();var u=w(this),l=!1,c=this.values_.get(n),h=void 0;if(!c&&(u||l)){var _;h=(_=Ie(this.target_,n))==null?void 0:_.value}if(r){if(!Reflect.deleteProperty(this.target_,n))return!1}else delete this.target_[n];if(c&&(this.values_.delete(n),c instanceof ne&&(h=c.value_),Cn(c)),this.keysAtom_.reportChanged(),(o=this.pendingKeys_)==null||(s=o.get(n))==null||s.set(n in this.target_),u||l){var x={type:zt,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:h,name:n};u&&E(this,x)}}finally{N()}return!0},t.observe_=function(n,r){return Te(this,n)},t.intercept_=function(n){return Ce(this,n)},t.notifyPropertyAddition_=function(n,r){var a,o,s=w(this),u=!1;if(s||u){var l=s||u?{type:M,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:n,newValue:r}:null;s&&E(this,l)}(a=this.pendingKeys_)==null||(o=a.get(n))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),he(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Ze(e,t){var i;if(U(e,f))return e;var n=(i=t==null?void 0:t.name)!=null?i:"ObservableObject",r=new Hn(e,new Map,String(n),Zi(t));return We(e,f,r),e}var $r=H("ObservableObjectAdministration",Hn);function Gt(e){return Ut[e]||(Ut[e]={get:function(){return this[f].getObservablePropValue_(e)},set:function(i){return this[f].setObservablePropValue_(e,i)}})}function ge(e){return qe(e)?$r(e[f]):!1}function $t(e,t,i){var n;(n=e.target_[ee])==null||delete n[i]}var at=0,Xn=function(){};function Kr(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}Kr(Xn,Array.prototype);var Nt=function(e,t,i){ln(n,e);function n(a,o,s,u){var l;s===void 0&&(s="ObservableArray"),u===void 0&&(u=!1),l=e.call(this)||this;var c=new St(s,o,u,!0);if(c.proxy_=jt(l),on(jt(l),f,c),a&&a.length){var h=Ee(!0);l.spliceWithArray(0,0,a),Fe(h)}return l}var r=n.prototype;return r.concat=function(){this[f].atom_.reportObserved();for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return Array.prototype.concat.apply(this.slice(),s.map(function(l){return Qe(l)?l.slice():l}))},r[i]=function(){var a=this,o=0;return ye({next:function(){return o<a.length?{value:a[o++],done:!1}:{done:!0,value:void 0}}})},pt(n,[{key:"length",get:function(){return this[f].getArrayLength_()},set:function(o){this[f].setArrayLength_(o)}},{key:t,get:function(){return"Array"}}]),n}(Xn,Symbol.toStringTag,Symbol.iterator);Object.entries(Ge).forEach(function(e){var t=e[0],i=e[1];t!=="concat"&&We(Nt.prototype,t,i)});function qr(e){return{enumerable:!1,configurable:!0,get:function(){return this[f].get_(e)},set:function(i){this[f].set_(e,i)}}}function Wr(e){V(Nt.prototype,""+e,qr(e))}function Jn(e){if(e>at){for(var t=at;t<e+100;t++)Wr(t);at=e}}Jn(1e3);function Hr(e,t,i){return new Nt(e,t,i)}function W(e,t){if(typeof e=="object"&&e!==null){if(Qe(e))return t!==void 0&&m(23),e[f].atom_;if(ue(e))return e[f];if(X(e)){if(t===void 0)return e.keysAtom_;var i=e.data_.get(t)||e.hasMap_.get(t);return i||m(25,t,mt(e)),i}if(ge(e)){if(!t)return m(26);var n=e[f].values_.get(t);return n||m(27,t,mt(e)),n}if(kt(e)||Ye(e)||Ue(e))return e}else if(F(e)&&Ue(e[f]))return e[f];m(28)}function Yn(e,t){if(e||m(29),t!==void 0)return Yn(W(e,t));if(kt(e)||Ye(e)||Ue(e)||X(e)||ue(e))return e;if(e[f])return e[f];m(24,e)}function mt(e,t){var i;if(t!==void 0)i=W(e,t);else{if(yt(e))return e.name;ge(e)||X(e)||ue(e)?i=Yn(e):i=W(e)}return i.name_}var Kt=Ke.toString;function Ot(e,t,i){return i===void 0&&(i=-1),ht(e,t,i)}function ht(e,t,i,n,r){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var a=typeof e;if(a!=="function"&&a!=="object"&&typeof t!="object")return!1;var o=Kt.call(e);if(o!==Kt.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":i>=0&&i++;break}e=qt(e),t=qt(t);var s=o==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(F(u)&&u instanceof u&&F(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(i===0)return!1;i<0&&(i=-1),n=n||[],r=r||[];for(var c=n.length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),s){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!ht(e[c],t[c],i-1,n,r))return!1}else{var h=Object.keys(e),_;if(c=h.length,Object.keys(t).length!==c)return!1;for(;c--;)if(_=h[c],!(U(t,_)&&ht(e[_],t[_],i-1,n,r)))return!1}return n.pop(),r.pop(),!0}function qt(e){return Qe(e)?e.slice():oe(e)||X(e)||Ne(e)||ue(e)?Array.from(e.entries()):e}function ye(e){return e[Symbol.iterator]=Xr,e}function Xr(){return this}["Symbol","Map","Set"].forEach(function(e){var t=en();typeof t[e]=="undefined"&&m("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:pr,extras:{getDebugName:mt},$mobx:f});async function Jr(r){var a=r,{url:e,method:t="GET",raw:i=!1}=a,n=Tt(a,["url","method","raw"]);var l;const o=de({"Content-Type":"application/json"},n.headers),s=await fetch(e,Ct(de({method:t},n),{headers:o}));if(i)return s;const u=await s.json();if(!s.ok){const c=(l=u==null?void 0:u.message)!=null?l:s.statusText;throw new Error(c)}return u}class Wt{constructor(){g(this,"store");this.store=this.getStoreFromWindow()}getStoreFromWindow(){let t={};try{t=JSON.parse(window.self.name)}catch(i){return{}}return t&&typeof t=="object"?t:{}}setStoreToWindow(t){const i=JSON.stringify(t);window.self.name=i}setItem(t,i){this.store[t]=i,this.setStoreToWindow(this.store)}getItem(t){var i;return(i=this.store[t])!=null?i:null}removeItem(t){delete this.store[t],this.setStoreToWindow(this.store)}clear(){this.setStoreToWindow({})}key(t){var n;return(n=Object.keys(this.store)[t])!=null?n:null}get length(){return Object.keys(this.store).length}}function Ht(e){try{const t=window[e],i="__custom-storage__";return t.setItem(i,i),t.removeItem(i),!0}catch(t){return!1}}function Xt(e,t,i){const n={configurable:!1,enumerable:!1,writable:!1};typeof i!="undefined"&&(n.value=i),Object.defineProperty(e,t,n)}class At{static init(){return new At}constructor(){window.top===window.self?console.log("[CustomStorage] This is the main window"):console.log("[CustomStorage] This is NOT the main window"),this.replaceStorages()}replaceStorages(){if(!this.isAvailable.localStorage){const t=new Wt;Xt(window,"localStorage",t),console.log("[CustomStorage] LocalStorage is not available, custom implementation is defined")}if(!this.isAvailable.sessionStorage){const t=new Wt;Xt(window,"sessionStorage",t),console.log("[CustomStorage] SessionStorage is not available, custom implementation is defined")}}get isAvailable(){return{localStorage:Ht("localStorage"),sessionStorage:Ht("sessionStorage")}}}var Re,Yr=new Uint8Array(16);function Qr(){if(!Re&&(Re=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Re))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Re(Yr)}const Zr=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ea(e){return typeof e=="string"&&Zr.test(e)}var k=[];for(var ot=0;ot<256;++ot)k.push((ot+256).toString(16).substr(1));function ta(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=(k[e[t+0]]+k[e[t+1]]+k[e[t+2]]+k[e[t+3]]+"-"+k[e[t+4]]+k[e[t+5]]+"-"+k[e[t+6]]+k[e[t+7]]+"-"+k[e[t+8]]+k[e[t+9]]+"-"+k[e[t+10]]+k[e[t+11]]+k[e[t+12]]+k[e[t+13]]+k[e[t+14]]+k[e[t+15]]).toLowerCase();if(!ea(i))throw TypeError("Stringified UUID is invalid");return i}function na(e,t,i){e=e||{};var n=e.random||(e.rng||Qr)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=n[r];return t}return ta(n)}const Jt="FINGERPRINT_LIVE_SHOPPING",ia=()=>{let e=Pt.get(Jt);return e||(e=na(),Pt.set(Jt,e,{expires:1}),e)};let ra=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,i)=>(i&=63,i<36?t+=i.toString(36):i<62?t+=(i-26).toString(36).toUpperCase():i>62?t+="-":t+="_",t),"");const Qn=(e=8)=>ra(e),aa=e=>{const t=Object.entries(e).map(([i,n])=>`${i}=${n}`).join("&");return t?`?${t}`:""},oa=(e,t,i={fallback:null})=>{let n=e;t&&(n=()=>e().then(a=>({default:t(a)})));const r=ie.lazy(n);return a=>st.jsx(ie.Suspense,{fallback:i.fallback,children:st.jsx(r,de({},a))})};class ve{constructor(t,i,n){g(this,"isOk");g(this,"isErr");g(this,"error");g(this,"_value");if(t&&i)throw new Error("InvalidOperation: A result cannot be successful and contain an error");if(!t&&!i)throw new Error("InvalidOperation: A failing result needs to contain an error message");this.isOk=t,this.isErr=!t,this.error=i,this._value=n,Object.freeze(this)}get value(){if(this.isErr)throw new Error("Can't get the value of an error result. Use 'errorValue' instead.");return this._value}static ok(t){return new ve(!0,void 0,t)}static fail(t){return new ve(!1,t)}static combine(t){for(const i of t)if(i.isErr)return i;return ve.ok()}}class Zn{constructor(t){g(this,"value");this.value=t}isErr(){return!0}isOk(){return!1}}class ei{constructor(t){g(this,"value");this.value=t}isErr(){return!1}isOk(){return!0}}const sa=e=>new Zn(e),ua=e=>new ei(e),la=["account"],P=class{constructor(){g(this,"_id",Qn());g(this,"_config");Vr(this,{},{name:"NizzaStore",autoBind:!0})}static instance(){return P._instance||(P._instance=new P,console.log("🚀 ~ file: NizzaStore.ts:20 ~ NizzaStore:","No exist, created.",P._instance._id)),window!=null&&window.nizza?(P._instance=window.nizza,console.log("🚀 ~ file: NizzaStore.ts:25 ~ NizzaStore:","Previos instance in window, reusing.",window.nizza._id)):(P._instance.createGlobalObject(),console.log("🚀 ~ file: NizzaStore.ts:34 ~ NizzaStore:","No exist instance in window, created.",P._instance._id)),P._instance}configure(t){this._config=t}createGlobalObject(){window.nizza=this}get config(){return this.validateRequiredProps(),this._config}validateRequiredProps(){la.forEach(t=>{if(t===void 0)throw new Zt(t)})}};let me=P;g(me,"_instance");const da=me.instance();var ti=(e=>(e.Add="add",e.Remove="remove",e))(ti||{}),ni=(e=>(e.Active="active",e.Inactive="inactive",e))(ni||{});const ca={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deleteAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInputAccount"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},fa={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"section"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},va={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ma={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ha={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},_a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},pa={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ka={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ManageCollectionProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ManageCollectionProductInInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"manageCollectionProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ba={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ga={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ya={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllSnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoCreatedArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"snackVideos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"modified"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Sa=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:ma,DeleteAllCustomizationDocument:ca,DeleteCollectionDocument:ha,FindCollectionDocument:_a,GetAllCollectionsDocument:pa,GetAllCustomizationDocument:fa,GetAllSnackVideosDocument:ya,ManageCollectionProductDocument:ka,Methods:ti,SearchCollectionsDocument:ba,Status:ni,UpdateCollectionDocument:ga,UpdateCustomizationDocument:va},Symbol.toStringTag,{value:"Module"}));function Na(e){return{class:e,_value:null,get value(){return this._value||(this._value=new e,Object.freeze(this)),this._value}}}exports.AccountInvalidError=ci;exports.AggregateRoot=Qt;exports.ApiGraphqlTypes=Sa;exports.BaseMobxStore=si;exports.CustomStorage=At;exports.DomainError=Se;exports.Err=Zn;exports.InvalidNizzaGlobalObjectError=Zt;exports.NizzaStore=me;exports.NizzaVariationTypes=Yt;exports.Ok=ei;exports.ResourceNotFoundError=li;exports.Result=ve;exports.StoreProvider=fi;exports.UnexpectedError=di;exports.ValueObject=ui;exports.apiCall=Jr;exports.createAggregateRoot=oi;exports.createStore=Na;exports.err=ua;exports.getFingerprint=ia;exports.getStore=mi;exports.lazyLoad=oa;exports.nizza=da;exports.ok=sa;exports.searchParams=aa;exports.shortId=Qn;exports.useStore=vi;
|
|
21
|
+
`)}}let _t=new Map;const ut=ie.createContext(_t),fi=({children:e,stores:t})=>{const i=ie.useContext(ut),n=ie.useMemo(()=>{const r=new Map;return t.forEach(a=>r.set(a.class,a.value)),_t=new Map([...i,...r])},[]);return st.jsx(ut.Provider,{value:n,children:e})};function vi(e){return ie.useContext(ut).get(e)}function mi(e){return _t.get(e)}function m(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var hi={};function en(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:hi}var _i=Object.assign,Ie=Object.getOwnPropertyDescriptor,R=Object.defineProperty,Ke=Object.prototype,lt=[];Object.freeze(lt);var tn={};Object.freeze(tn);var pi=typeof Proxy!="undefined",ki=Object.toString();function nn(){pi||m("Proxy not available")}function rn(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Q=function(){};function F(e){return typeof e=="function"}function q(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function qe(e){return e!==null&&typeof e=="object"}function V(e){if(!qe(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var i=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i.toString()===ki}function an(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function We(e,t,i){R(e,t,{enumerable:!1,writable:!0,configurable:!0,value:i})}function on(e,t,i){R(e,t,{enumerable:!1,writable:!1,configurable:!0,value:i})}function H(e,t){var i="isMobX"+e;return t.prototype[i]=!0,function(n){return qe(n)&&n[i]===!0}}function oe(e){return e instanceof Map}function Ne(e){return e instanceof Set}var sn=typeof Object.getOwnPropertySymbols!="undefined";function bi(e){var t=Object.keys(e);if(!sn)return t;var i=Object.getOwnPropertySymbols(e);return i.length?[].concat(t,i.filter(function(n){return Ke.propertyIsEnumerable.call(e,n)})):t}var he=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:sn?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function un(e){return e===null?null:typeof e=="object"?""+e:e}function U(e,t){return Ke.hasOwnProperty.call(e,t)}var gi=Object.getOwnPropertyDescriptors||function(t){var i={};return he(t).forEach(function(n){i[n]=Ie(t,n)}),i};function Dt(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pt(e,t,i){return t&&Dt(e.prototype,t),i&&Dt(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function _e(){return _e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},_e.apply(this,arguments)}function ln(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dt(e,t)}function dt(e,t){return dt=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},dt(e,t)}function jt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yi(e,t){if(e){if(typeof e=="string")return xt(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return xt(e,t)}}function xt(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Z(e,t){var i=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=yi(e))||t&&e&&typeof e.length=="number"){i&&(e=i);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ee=Symbol("mobx-stored-annotations");function P(e){function t(i,n){Oe(i,n,e)}return Object.assign(t,e)}function Oe(e,t,i){U(e,ee)||We(e,ee,_e({},e[ee])),Ci(i)||(e[ee][t]=i)}var f=Symbol("mobx administration"),Ae=function(){function e(i){i===void 0&&(i="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=v.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=i}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.reportObserved=function(){return Fn(this)},t.reportChanged=function(){S(),Cn(this),N()},t.toString=function(){return this.name_},e}(),kt=H("Atom",Ae);function dn(e,t,i){t===void 0&&(t=Q),i===void 0&&(i=Q);var n=new Ae(e);return t!==Q&&Fr(n,t),i!==Q&&Vn(n,i),n}function Si(e,t){return e===t}function Ni(e,t){return Ot(e,t)}function Oi(e,t){return Ot(e,t,1)}function Ai(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Be={identity:Si,structural:Ni,default:Ai,shallow:Oi};function re(e,t,i){return Mn(e)?e:Array.isArray(e)?b.array(e,{name:i}):V(e)?b.object(e,void 0,{name:i}):oe(e)?b.map(e,{name:i}):Ne(e)?b.set(e,{name:i}):typeof e=="function"&&!yt(e)&&!Ge(e)?an(e)?be(e):ke(i,e):e}function wi(e,t,i){if(e==null||ge(e)||Qe(e)||X(e)||ue(e))return e;if(Array.isArray(e))return b.array(e,{name:i,deep:!1});if(V(e))return b.object(e,void 0,{name:i,deep:!1});if(oe(e))return b.map(e,{name:i,deep:!1});if(Ne(e))return b.set(e,{name:i,deep:!1})}function He(e){return e}function Ei(e,t){return Ot(e,t)?t:e}var Fi="override";function Ci(e){return e.annotationType_===Fi}function we(e,t){return{annotationType_:e,options_:t,make_:Ti,extend_:Pi}}function Ti(e,t,i,n){var r;if((r=this.options_)!=null&&r.bound)return this.extend_(e,t,i,!1)===null?0:1;if(n===e.target_)return this.extend_(e,t,i,!1)===null?0:2;if(yt(i.value))return 1;var a=cn(e,this,t,i,!1);return R(n,t,a),2}function Pi(e,t,i,n){var r=cn(e,this,t,i);return e.defineProperty_(t,r,n)}function Di(e,t,i,n){t.annotationType_,n.value}function cn(e,t,i,n,r){var a,o,s,u,l,c,h;r===void 0&&(r=d.safeDescriptors),Di(e,t,i,n);var _=n.value;if((a=t.options_)!=null&&a.bound){var j;_=_.bind((j=e.proxy_)!=null?j:e.target_)}return{value:ae((o=(s=t.options_)==null?void 0:s.name)!=null?o:i.toString(),_,(u=(l=t.options_)==null?void 0:l.autoAction)!=null?u:!1,(c=t.options_)!=null&&c.bound?(h=e.proxy_)!=null?h:e.target_:void 0),configurable:r?e.isPlainObject_:!0,enumerable:!1,writable:!r}}function fn(e,t){return{annotationType_:e,options_:t,make_:ji,extend_:xi}}function ji(e,t,i,n){var r;if(n===e.target_)return this.extend_(e,t,i,!1)===null?0:2;if((r=this.options_)!=null&&r.bound&&(!U(e.target_,t)||!Ge(e.target_[t]))&&this.extend_(e,t,i,!1)===null)return 0;if(Ge(i.value))return 1;var a=vn(e,this,t,i,!1,!1);return R(n,t,a),2}function xi(e,t,i,n){var r,a=vn(e,this,t,i,(r=this.options_)==null?void 0:r.bound);return e.defineProperty_(t,a,n)}function Ri(e,t,i,n){t.annotationType_,n.value}function vn(e,t,i,n,r,a){a===void 0&&(a=d.safeDescriptors),Ri(e,t,i,n);var o=n.value;if(Ge(o)||(o=be(o)),r){var s;o=o.bind((s=e.proxy_)!=null?s:e.target_),o.isMobXFlow=!0}return{value:o,configurable:a?e.isPlainObject_:!0,enumerable:!1,writable:!a}}function bt(e,t){return{annotationType_:e,options_:t,make_:Vi,extend_:Ii}}function Vi(e,t,i){return this.extend_(e,t,i,!1)===null?0:1}function Ii(e,t,i,n){return Bi(e,this,t,i),e.defineComputedProperty_(t,_e({},this.options_,{get:i.get,set:i.set}),n)}function Bi(e,t,i,n){t.annotationType_,n.get}function Xe(e,t){return{annotationType_:e,options_:t,make_:Li,extend_:Mi}}function Li(e,t,i){return this.extend_(e,t,i,!1)===null?0:1}function Mi(e,t,i,n){var r,a;return Ui(e,this),e.defineObservableProperty_(t,i.value,(r=(a=this.options_)==null?void 0:a.enhancer)!=null?r:re,n)}function Ui(e,t,i,n){t.annotationType_}var Gi="true",$i=mn();function mn(e){return{annotationType_:Gi,options_:e,make_:zi,extend_:Ki}}function zi(e,t,i,n){var r,a;if(i.get)return Je.make_(e,t,i,n);if(i.set){var o=ae(t.toString(),i.set);return n===e.target_?e.defineProperty_(t,{configurable:d.safeDescriptors?e.isPlainObject_:!0,set:o})===null?0:2:(R(n,t,{configurable:!0,set:o}),2)}if(n!==e.target_&&typeof i.value=="function"){var s;if(an(i.value)){var u,l=(u=this.options_)!=null&&u.autoBind?be.bound:be;return l.make_(e,t,i,n)}var c=(s=this.options_)!=null&&s.autoBind?ke.bound:ke;return c.make_(e,t,i,n)}var h=((r=this.options_)==null?void 0:r.deep)===!1?b.ref:b;if(typeof i.value=="function"&&(a=this.options_)!=null&&a.autoBind){var _;i.value=i.value.bind((_=e.proxy_)!=null?_:e.target_)}return h.make_(e,t,i,n)}function Ki(e,t,i,n){var r,a;if(i.get)return Je.extend_(e,t,i,n);if(i.set)return e.defineProperty_(t,{configurable:d.safeDescriptors?e.isPlainObject_:!0,set:ae(t.toString(),i.set)},n);if(typeof i.value=="function"&&(r=this.options_)!=null&&r.autoBind){var o;i.value=i.value.bind((o=e.proxy_)!=null?o:e.target_)}var s=((a=this.options_)==null?void 0:a.deep)===!1?b.ref:b;return s.extend_(e,t,i,n)}var qi="observable",Wi="observable.ref",Hi="observable.shallow",Xi="observable.struct",hn={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(hn);function je(e){return e||hn}var _n=Xe(qi),Ji=Xe(Wi,{enhancer:He}),Yi=Xe(Hi,{enhancer:wi}),Qi=Xe(Xi,{enhancer:Ei}),pn=P(_n);function xe(e){return e.deep===!0?re:e.deep===!1?He:er(e.defaultDecorator)}function Zi(e){var t;return e?(t=e.defaultDecorator)!=null?t:mn(e):void 0}function er(e){var t,i;return e&&(t=(i=e.options_)==null?void 0:i.enhancer)!=null?t:re}function kn(e,t,i){if(q(t)){Oe(e,t,_n);return}return Mn(e)?e:V(e)?b.object(e,t,i):Array.isArray(e)?b.array(e,t):oe(e)?b.map(e,t):Ne(e)?b.set(e,t):typeof e=="object"&&e!==null?e:b.box(e,t)}Object.assign(kn,pn);var tr={box:function(t,i){var n=je(i);return new ne(t,xe(n),n.name,!0,n.equals)},array:function(t,i){var n=je(i);return(d.useProxies===!1||n.proxy===!1?Hr:Lr)(t,xe(n),n.name)},map:function(t,i){var n=je(i);return new zn(t,xe(n),n.name)},set:function(t,i){var n=je(i);return new Wn(t,xe(n),n.name)},object:function(t,i,n){return Bn(d.useProxies===!1||(n==null?void 0:n.proxy)===!1?Ze({},n):Rr({},n),t,i)},ref:P(Ji),shallow:P(Yi),deep:pn,struct:P(Qi)},b=_i(kn,tr),bn="computed",nr="computed.struct",gn=bt(bn),ir=bt(nr,{equals:Be.structural}),Je=function(t,i){if(q(i))return Oe(t,i,gn);if(V(t))return P(bt(bn,t));var n=V(i)?i:{};return n.get=t,n.name||(n.name=t.name||""),new pe(n)};Object.assign(Je,gn);Je.struct=P(ir);var Rt,Vt,Le=0,rr=1,ar=(Rt=(Vt=Ie(function(){},"name"))==null?void 0:Vt.configurable)!=null?Rt:!1,It={value:"action",configurable:!0,writable:!1,enumerable:!1};function ae(e,t,i,n){i===void 0&&(i=!1);function r(){return or(e,i,t,n||this,arguments)}return r.isMobxAction=!0,ar&&(It.value=e,Object.defineProperty(r,"name",It)),r}function or(e,t,i,n,r){var a=sr(e,t);try{return i.apply(n,r)}catch(o){throw a.error_=o,o}finally{ur(a)}}function sr(e,t,i,n){var r=!1,a=0,o=d.trackingDerivation,s=!t||!o;S();var u=d.allowStateChanges;s&&(se(),u=Ee(!0));var l=gt(!0),c={runAsAction_:s,prevDerivation_:o,prevAllowStateChanges_:u,prevAllowStateReads_:l,notifySpy_:r,startTime_:a,actionId_:rr++,parentActionId_:Le};return Le=c.actionId_,c}function ur(e){Le!==e.actionId_&&m(30),Le=e.parentActionId_,e.error_!==void 0&&(d.suppressReactionErrors=!0),Fe(e.prevAllowStateChanges_),ce(e.prevAllowStateReads_),N(),e.runAsAction_&&G(e.prevDerivation_),d.suppressReactionErrors=!1}function lr(e,t){var i=Ee(e);try{return t()}finally{Fe(i)}}function Ee(e){var t=d.allowStateChanges;return d.allowStateChanges=e,t}function Fe(e){d.allowStateChanges=e}var yn;yn=Symbol.toPrimitive;var ne=function(e){ln(t,e);function t(n,r,a,o,s){var u;return a===void 0&&(a="ObservableValue"),s===void 0&&(s=Be.default),u=e.call(this,a)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=r,u.name_=a,u.equals=s,u.value_=r(n,void 0,a),u}var i=t.prototype;return i.dehanceValue=function(r){return this.dehancer!==void 0?this.dehancer(r):r},i.set=function(r){this.value_,r=this.prepareNewValue_(r),r!==d.UNCHANGED&&this.setNewValue_(r)},i.prepareNewValue_=function(r){if(O(this)){var a=A(this,{object:this,type:D,newValue:r});if(!a)return d.UNCHANGED;r=a.newValue}return r=this.enhancer(r,this.value_,this.name_),this.equals(this.value_,r)?d.UNCHANGED:r},i.setNewValue_=function(r){var a=this.value_;this.value_=r,this.reportChanged(),w(this)&&E(this,{type:D,object:this,newValue:r,oldValue:a})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},i.intercept_=function(r){return Ce(this,r)},i.observe_=function(r,a){return a&&r({observableKind:"value",debugObjectName:this.name_,object:this,type:D,newValue:this.value_,oldValue:void 0}),Te(this,r)},i.raw=function(){return this.value_},i.toJSON=function(){return this.get()},i.toString=function(){return this.name_+"["+this.value_+"]"},i.valueOf=function(){return un(this.get())},i[yn]=function(){return this.valueOf()},t}(Ae),Sn;Sn=Symbol.toPrimitive;var pe=function(){function e(i){this.dependenciesState_=v.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=v.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Me(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=K.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,i.get||m(31),this.derivation=i.get,this.name_=i.name||"ComputedValue",i.set&&(this.setter_=ae("ComputedValue-setter",i.set)),this.equals_=i.equals||(i.compareStructural||i.struct?Be.structural:Be.default),this.scope_=i.context,this.requiresReaction_=i.requiresReaction,this.keepAlive_=!!i.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){vr(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.get=function(){if(this.isComputing_&&m(32,this.name_,this.derivation),d.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)ct(this)&&(this.warnAboutUntrackedRead_(),S(),this.value_=this.computeValue_(!1),N());else if(Fn(this),ct(this)){var n=d.trackingContext;this.keepAlive_&&!n&&(d.trackingContext=this),this.trackAndCompute()&&fr(this),d.trackingContext=n}var r=this.value_;if(Ve(r))throw r.cause;return r},t.set=function(n){if(this.setter_){this.isRunningSetter_&&m(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter_=!1}}else m(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,r=this.dependenciesState_===v.NOT_TRACKING_,a=this.computeValue_(!0),o=r||Ve(n)||Ve(a)||!this.equals_(n,a);return o&&(this.value_=a),o},t.computeValue_=function(n){this.isComputing_=!0;var r=Ee(!1),a;if(n)a=Nn(this,this.derivation,this.scope_);else if(d.disableErrorBoundaries===!0)a=this.derivation.call(this.scope_);else try{a=this.derivation.call(this.scope_)}catch(o){a=new Me(o)}return Fe(r),this.isComputing_=!1,a},t.suspend_=function(){this.keepAlive_||(ft(this),this.value_=void 0)},t.observe_=function(n,r){var a=this,o=!0,s=void 0;return Nr(function(){var u=a.get();if(!o||r){var l=se();n({observableKind:"computed",debugObjectName:a.name_,type:D,object:a,newValue:u,oldValue:s}),G(l)}o=!1,s=u})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return un(this.get())},t[Sn]=function(){return this.valueOf()},e}(),Ye=H("ComputedValue",pe),v;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(v||(v={}));var K;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(K||(K={}));var Me=function(t){this.cause=void 0,this.cause=t};function Ve(e){return e instanceof Me}function ct(e){switch(e.dependenciesState_){case v.UP_TO_DATE_:return!1;case v.NOT_TRACKING_:case v.STALE_:return!0;case v.POSSIBLY_STALE_:{for(var t=gt(!0),i=se(),n=e.observing_,r=n.length,a=0;a<r;a++){var o=n[a];if(Ye(o)){if(d.disableErrorBoundaries)o.get();else try{o.get()}catch(s){return G(i),ce(t),!0}if(e.dependenciesState_===v.STALE_)return G(i),ce(t),!0}}return An(e),G(i),ce(t),!1}}}function Nn(e,t,i){var n=gt(!0);An(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++d.runId;var r=d.trackingDerivation;d.trackingDerivation=e,d.inBatch++;var a;if(d.disableErrorBoundaries===!0)a=t.call(i);else try{a=t.call(i)}catch(o){a=new Me(o)}return d.inBatch--,d.trackingDerivation=r,dr(e),ce(n),a}function dr(e){for(var t=e.observing_,i=e.observing_=e.newObserving_,n=v.UP_TO_DATE_,r=0,a=e.unboundDepsCount_,o=0;o<a;o++){var s=i[o];s.diffValue_===0&&(s.diffValue_=1,r!==o&&(i[r]=s),r++),s.dependenciesState_>n&&(n=s.dependenciesState_)}for(i.length=r,e.newObserving_=null,a=t.length;a--;){var u=t[a];u.diffValue_===0&&wn(u,e),u.diffValue_=0}for(;r--;){var l=i[r];l.diffValue_===1&&(l.diffValue_=0,cr(l,e))}n!==v.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function ft(e){var t=e.observing_;e.observing_=[];for(var i=t.length;i--;)wn(t[i],e);e.dependenciesState_=v.NOT_TRACKING_}function On(e){var t=se();try{return e()}finally{G(t)}}function se(){var e=d.trackingDerivation;return d.trackingDerivation=null,e}function G(e){d.trackingDerivation=e}function gt(e){var t=d.allowStateReads;return d.allowStateReads=e,t}function ce(e){d.allowStateReads=e}function An(e){if(e.dependenciesState_!==v.UP_TO_DATE_){e.dependenciesState_=v.UP_TO_DATE_;for(var t=e.observing_,i=t.length;i--;)t[i].lowestObserverState_=v.UP_TO_DATE_}}var nt=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},it=!0,d=function(){var e=en();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(it=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new nt().version&&(it=!1),it?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new nt):(setTimeout(function(){m(35)},1),new nt)}();function cr(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function wn(e,t){e.observers_.delete(t),e.observers_.size===0&&En(e)}function En(e){e.isPendingUnobservation_===!1&&(e.isPendingUnobservation_=!0,d.pendingUnobservations.push(e))}function S(){d.inBatch++}function N(){if(--d.inBatch===0){Tn();for(var e=d.pendingUnobservations,t=0;t<e.length;t++){var i=e[t];i.isPendingUnobservation_=!1,i.observers_.size===0&&(i.isBeingObserved_&&(i.isBeingObserved_=!1,i.onBUO()),i instanceof pe&&i.suspend_())}d.pendingUnobservations=[]}}function Fn(e){var t=d.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&d.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),!0):(e.observers_.size===0&&d.inBatch>0&&En(e),!1)}function Cn(e){e.lowestObserverState_!==v.STALE_&&(e.lowestObserverState_=v.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===v.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=v.STALE_}))}function fr(e){e.lowestObserverState_!==v.STALE_&&(e.lowestObserverState_=v.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===v.POSSIBLY_STALE_?t.dependenciesState_=v.STALE_:t.dependenciesState_===v.UP_TO_DATE_&&(e.lowestObserverState_=v.UP_TO_DATE_)}))}function vr(e){e.lowestObserverState_===v.UP_TO_DATE_&&(e.lowestObserverState_=v.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===v.UP_TO_DATE_&&(t.dependenciesState_=v.POSSIBLY_STALE_,t.onBecomeStale_())}))}var vt=function(){function e(i,n,r,a){i===void 0&&(i="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=v.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=K.NONE,this.name_=i,this.onInvalidate_=n,this.errorHandler_=r,this.requiresObservable_=a}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,d.pendingReactions.push(this),Tn())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){S(),this.isScheduled_=!1;var n=d.trackingContext;if(d.trackingContext=this,ct(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(r){this.reportExceptionInDerivation_(r)}}d.trackingContext=n,N()}},t.track=function(n){if(!this.isDisposed_){S(),this.isRunning_=!0;var r=d.trackingContext;d.trackingContext=this;var a=Nn(this,n,void 0);d.trackingContext=r,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&ft(this),Ve(a)&&this.reportExceptionInDerivation_(a.cause),N()}},t.reportExceptionInDerivation_=function(n){var r=this;if(this.errorHandler_){this.errorHandler_(n,this);return}if(d.disableErrorBoundaries)throw n;var a="[mobx] uncaught error in '"+this+"'";d.suppressReactionErrors||console.error(a,n),d.globalReactionErrorHandlers.forEach(function(o){return o(n,r)})},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(S(),ft(this),N()))},t.getDisposer_=function(){var n=this.dispose.bind(this);return n[f]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(n){n===void 0&&(n=!1),Dr(this,n)},e}(),mr=100,hr=function(t){return t()};function Tn(){d.inBatch>0||d.isRunningReactions||hr(_r)}function _r(){d.isRunningReactions=!0;for(var e=d.pendingReactions,t=0;e.length>0;){++t===mr&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var i=e.splice(0),n=0,r=i.length;n<r;n++)i[n].runReaction_()}d.isRunningReactions=!1}var Ue=H("Reaction",vt);function fe(){return!1}function pr(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Pn="action",kr="action.bound",Dn="autoAction",br="autoAction.bound",gr="<unnamed action>",jn=we(Pn),yr=we(kr,{bound:!0}),xn=we(Dn,{autoAction:!0}),Sr=we(br,{autoAction:!0,bound:!0});function Rn(e){var t=function(n,r){if(F(n))return ae(n.name||gr,n,e);if(F(r))return ae(n,r,e);if(q(r))return Oe(n,r,e?xn:jn);if(q(n))return P(we(e?Dn:Pn,{name:n,autoAction:e}))};return t}var te=Rn(!1);Object.assign(te,jn);var ke=Rn(!0);Object.assign(ke,xn);te.bound=P(yr);ke.bound=P(Sr);function yt(e){return F(e)&&e.isMobxAction===!0}function Nr(e,t){var i,n;t===void 0&&(t=tn);var r=(i=(n=t)==null?void 0:n.name)!=null?i:"Autorun",a=!t.scheduler&&!t.delay,o;if(a)o=new vt(r,function(){this.track(l)},t.onError,t.requiresObservable);else{var s=Ar(t),u=!1;o=new vt(r,function(){u||(u=!0,s(function(){u=!1,o.isDisposed_||o.track(l)}))},t.onError,t.requiresObservable)}function l(){e(o)}return o.schedule_(),o.getDisposer_()}var Or=function(t){return t()};function Ar(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Or}var wr="onBO",Er="onBUO";function Fr(e,t,i){return In(wr,e,t,i)}function Vn(e,t,i){return In(Er,e,t,i)}function In(e,t,i,n){var r=typeof n=="function"?W(t,i):W(t),a=F(n)?n:i,o=e+"L";return r[o]?r[o].add(a):r[o]=new Set([a]),function(){var s=r[o];s&&(s.delete(a),s.size===0&&delete r[o])}}function Bn(e,t,i,n){var r=gi(t),a=Ze(e,n)[f];S();try{he(r).forEach(function(o){a.extend_(o,r[o],i&&o in i?i[o]:!0)})}finally{N()}return e}var Cr=0;function Ln(){this.message="FLOW_CANCELLED"}Ln.prototype=Object.create(Error.prototype);var Bt=fn("flow"),Tr=fn("flow.bound",{bound:!0}),be=Object.assign(function(t,i){if(q(i))return Oe(t,i,Bt);var n=t,r=n.name||"<unnamed flow>",a=function(){var s=this,u=arguments,l=++Cr,c=te(r+" - runid: "+l+" - init",n).apply(s,u),h,_=void 0,j=new Promise(function(J,C){var T=0;h=C;function Pe(y){_=void 0;var B;try{B=te(r+" - runid: "+l+" - yield "+T++,c.next).call(c,y)}catch(z){return C(z)}le(B)}function et(y){_=void 0;var B;try{B=te(r+" - runid: "+l+" - yield "+T++,c.throw).call(c,y)}catch(z){return C(z)}le(B)}function le(y){if(F(y==null?void 0:y.then)){y.then(le,C);return}return y.done?J(y.value):(_=Promise.resolve(y.value),_.then(Pe,et))}Pe(void 0)});return j.cancel=te(r+" - runid: "+l+" - cancel",function(){try{_&&Lt(_);var J=c.return(void 0),C=Promise.resolve(J.value);C.then(Q,Q),Lt(C),h(new Ln)}catch(T){h(T)}}),j};return a.isMobXFlow=!0,a},Bt);be.bound=P(Tr);function Lt(e){F(e.cancel)&&e.cancel()}function Ge(e){return(e==null?void 0:e.isMobXFlow)===!0}function Pr(e,t){return e?t!==void 0?ge(e)?e[f].values_.has(t):!1:ge(e)||!!e[f]||kt(e)||Ue(e)||Ye(e):!1}function Mn(e){return Pr(e)}function Dr(){m("trace() is not available in production builds");for(var e=!1,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];typeof i[i.length-1]=="boolean"&&(e=i.pop());var r=jr(i);if(!r)return m("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");r.isTracing_===K.NONE&&console.log("[mobx.trace] '"+r.name_+"' tracing enabled"),r.isTracing_=e?K.BREAK:K.LOG}function jr(e){switch(e.length){case 0:return d.trackingDerivation;case 1:return W(e[0]);case 2:return W(e[0],e[1])}}function x(e,t){t===void 0&&(t=void 0),S();try{return e.apply(t)}finally{N()}}function Y(e){return e[f]}var xr={has:function(t,i){return Y(t).has_(i)},get:function(t,i){return Y(t).get_(i)},set:function(t,i,n){var r;return q(i)?(r=Y(t).set_(i,n,!0))!=null?r:!0:!1},deleteProperty:function(t,i){var n;return q(i)?(n=Y(t).delete_(i,!0))!=null?n:!0:!1},defineProperty:function(t,i,n){var r;return(r=Y(t).defineProperty_(i,n))!=null?r:!0},ownKeys:function(t){return Y(t).ownKeys_()},preventExtensions:function(t){m(13)}};function Rr(e,t){var i,n;return nn(),e=Ze(e,t),(n=(i=e[f]).proxy_)!=null?n:i.proxy_=new Proxy(e,xr)}function O(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Ce(e,t){var i=e.interceptors_||(e.interceptors_=[]);return i.push(t),rn(function(){var n=i.indexOf(t);n!==-1&&i.splice(n,1)})}function A(e,t){var i=se();try{for(var n=[].concat(e.interceptors_||[]),r=0,a=n.length;r<a&&(t=n[r](t),t&&!t.type&&m(14),!!t);r++);return t}finally{G(i)}}function w(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Te(e,t){var i=e.changeListeners_||(e.changeListeners_=[]);return i.push(t),rn(function(){var n=i.indexOf(t);n!==-1&&i.splice(n,1)})}function E(e,t){var i=se(),n=e.changeListeners_;if(n){n=n.slice();for(var r=0,a=n.length;r<a;r++)n[r](t);G(i)}}var rt=Symbol("mobx-keys");function Vr(e,t,i){if(V(e))return Bn(e,e,t,i);var n=Ze(e,i)[f];if(!e[rt]){var r=Object.getPrototypeOf(e),a=new Set([].concat(he(e),he(r)));a.delete("constructor"),a.delete(f),We(r,rt,a)}S();try{e[rt].forEach(function(o){return n.make_(o,t&&o in t?t[o]:!0)})}finally{N()}return e}var Mt="splice",D="update",Ir=1e4,Br={get:function(t,i){var n=t[f];return i===f?n:i==="length"?n.getArrayLength_():typeof i=="string"&&!isNaN(i)?n.get_(parseInt(i)):U($e,i)?$e[i]:t[i]},set:function(t,i,n){var r=t[f];return i==="length"&&r.setArrayLength_(n),typeof i=="symbol"||isNaN(i)?t[i]=n:r.set_(parseInt(i),n),!0},preventExtensions:function(){m(15)}},St=function(){function e(i,n,r,a){i===void 0&&(i="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_=r,this.legacyMode_=a,this.atom_=new Ae(i),this.enhancer_=function(o,s){return n(o,s,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.dehanceValues_=function(n){return this.dehancer!==void 0&&n.length>0?n.map(this.dehancer):n},t.intercept_=function(n){return Ce(this,n)},t.observe_=function(n,r){return r===void 0&&(r=!1),r&&n({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Te(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&m("Out of range: "+n);var r=this.values_.length;if(n!==r)if(n>r){for(var a=new Array(n-r),o=0;o<n-r;o++)a[o]=void 0;this.spliceWithArray_(r,0,a)}else this.spliceWithArray_(n,r-n)},t.updateArrayLength_=function(n,r){n!==this.lastKnownLength_&&m(16),this.lastKnownLength_+=r,this.legacyMode_&&r>0&&Jn(n+r+1)},t.spliceWithArray_=function(n,r,a){var o=this;this.atom_;var s=this.values_.length;if(n===void 0?n=0:n>s?n=s:n<0&&(n=Math.max(0,s+n)),arguments.length===1?r=s-n:r==null?r=0:r=Math.max(0,Math.min(r,s-n)),a===void 0&&(a=lt),O(this)){var u=A(this,{object:this.proxy_,type:Mt,index:n,removedCount:r,added:a});if(!u)return lt;r=u.removedCount,a=u.added}if(a=a.length===0?a:a.map(function(h){return o.enhancer_(h,void 0)}),this.legacyMode_){var l=a.length-r;this.updateArrayLength_(s,l)}var c=this.spliceItemsIntoValues_(n,r,a);return(r!==0||a.length!==0)&&this.notifyArraySplice_(n,a,c),this.dehanceValues_(c)},t.spliceItemsIntoValues_=function(n,r,a){if(a.length<Ir){var o;return(o=this.values_).splice.apply(o,[n,r].concat(a))}else{var s=this.values_.slice(n,n+r),u=this.values_.slice(n+r);this.values_.length+=a.length-r;for(var l=0;l<a.length;l++)this.values_[n+l]=a[l];for(var c=0;c<u.length;c++)this.values_[n+a.length+c]=u[c];return s}},t.notifyArrayChildUpdate_=function(n,r,a){var o=!this.owned_&&fe(),s=w(this),u=s||o?{observableKind:"array",object:this.proxy_,type:D,debugObjectName:this.atom_.name_,index:n,newValue:r,oldValue:a}:null;this.atom_.reportChanged(),s&&E(this,u)},t.notifyArraySplice_=function(n,r,a){var o=!this.owned_&&fe(),s=w(this),u=s||o?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Mt,index:n,removed:a,added:r,removedCount:a.length,addedCount:r.length}:null;this.atom_.reportChanged(),s&&E(this,u)},t.get_=function(n){if(n<this.values_.length)return this.atom_.reportObserved(),this.dehanceValue_(this.values_[n]);console.warn("[mobx.array] Attempt to read an array index ("+n+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX")},t.set_=function(n,r){var a=this.values_;if(n<a.length){this.atom_;var o=a[n];if(O(this)){var s=A(this,{type:D,object:this.proxy_,index:n,newValue:r});if(!s)return;r=s.newValue}r=this.enhancer_(r,o);var u=r!==o;u&&(a[n]=r,this.notifyArrayChildUpdate_(n,r,o))}else n===a.length?this.spliceWithArray_(n,0,[r]):m(17,n,a.length)},e}();function Lr(e,t,i,n){i===void 0&&(i="ObservableArray"),n===void 0&&(n=!1),nn();var r=new St(i,t,n,!1);on(r.values_,f,r);var a=new Proxy(r.values_,Br);if(r.proxy_=a,e&&e.length){var o=Ee(!0);r.spliceWithArray_(0,0,e),Fe(o)}return a}var $e={clear:function(){return this.splice(0)},replace:function(t){var i=this[f];return i.spliceWithArray_(0,i.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,i){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var o=this[f];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(t);case 2:return o.spliceWithArray_(t,i)}return o.spliceWithArray_(t,i,r)},spliceWithArray:function(t,i,n){return this[f].spliceWithArray_(t,i,n)},push:function(){for(var t=this[f],i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return t.spliceWithArray_(t.values_.length,0,n),t.values_.length},pop:function(){return this.splice(Math.max(this[f].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[f],i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return t.spliceWithArray_(0,0,n),t.values_.length},reverse:function(){return d.trackingDerivation&&m(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){d.trackingDerivation&&m(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var i=this[f],n=i.dehanceValues_(i.values_).indexOf(t);return n>-1?(this.splice(n,1),!0):!1}};p("concat",I);p("flat",I);p("includes",I);p("indexOf",I);p("join",I);p("lastIndexOf",I);p("slice",I);p("toString",I);p("toLocaleString",I);p("every",$);p("filter",$);p("find",$);p("findIndex",$);p("flatMap",$);p("forEach",$);p("map",$);p("some",$);p("reduce",Un);p("reduceRight",Un);function p(e,t){typeof Array.prototype[e]=="function"&&($e[e]=t(e))}function I(e){return function(){var t=this[f];t.atom_.reportObserved();var i=t.dehanceValues_(t.values_);return i[e].apply(i,arguments)}}function $(e){return function(t,i){var n=this,r=this[f];r.atom_.reportObserved();var a=r.dehanceValues_(r.values_);return a[e](function(o,s){return t.call(i,o,s,n)})}}function Un(e){return function(){var t=this,i=this[f];i.atom_.reportObserved();var n=i.dehanceValues_(i.values_),r=arguments[0];return arguments[0]=function(a,o,s){return r(a,o,s,t)},n[e].apply(n,arguments)}}var Mr=H("ObservableArrayAdministration",St);function Qe(e){return qe(e)&&Mr(e[f])}var Gn,$n,Ur={},M="add",ze="delete";Gn=Symbol.iterator;$n=Symbol.toStringTag;var zn=function(){function e(i,n,r){var a=this;n===void 0&&(n=re),r===void 0&&(r="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[f]=Ur,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_=n,this.name_=r,F(Map)||m(18),this.keysAtom_=dn("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,lr(!0,function(){a.merge(i)})}var t=e.prototype;return t.has_=function(n){return this.data_.has(n)},t.has=function(n){var r=this;if(!d.trackingDerivation)return this.has_(n);var a=this.hasMap_.get(n);if(!a){var o=a=new ne(this.has_(n),He,"ObservableMap.key?",!1);this.hasMap_.set(n,o),Vn(o,function(){return r.hasMap_.delete(n)})}return a.get()},t.set=function(n,r){var a=this.has_(n);if(O(this)){var o=A(this,{type:a?D:M,object:this,newValue:r,name:n});if(!o)return this;r=o.newValue}return a?this.updateValue_(n,r):this.addValue_(n,r),this},t.delete=function(n){var r=this;if(this.keysAtom_,O(this)){var a=A(this,{type:ze,object:this,name:n});if(!a)return!1}if(this.has_(n)){var o=fe(),s=w(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:ze,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return x(function(){var l;r.keysAtom_.reportChanged(),(l=r.hasMap_.get(n))==null||l.setNewValue_(!1);var c=r.data_.get(n);c.setNewValue_(void 0),r.data_.delete(n)}),s&&E(this,u),!0}return!1},t.updateValue_=function(n,r){var a=this.data_.get(n);if(r=a.prepareNewValue_(r),r!==d.UNCHANGED){var o=fe(),s=w(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:D,object:this,oldValue:a.value_,name:n,newValue:r}:null;a.setNewValue_(r),s&&E(this,u)}},t.addValue_=function(n,r){var a=this;this.keysAtom_,x(function(){var l,c=new ne(r,a.enhancer_,"ObservableMap.key",!1);a.data_.set(n,c),r=c.value_,(l=a.hasMap_.get(n))==null||l.setNewValue_(!0),a.keysAtom_.reportChanged()});var o=fe(),s=w(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:M,object:this,name:n,newValue:r}:null;s&&E(this,u)},t.get=function(n){return this.has(n)?this.dehanceValue_(this.data_.get(n).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var n=this,r=this.keys();return ye({next:function(){var o=r.next(),s=o.done,u=o.value;return{done:s,value:s?void 0:n.get(u)}}})},t.entries=function(){var n=this,r=this.keys();return ye({next:function(){var o=r.next(),s=o.done,u=o.value;return{done:s,value:s?void 0:[u,n.get(u)]}}})},t[Gn]=function(){return this.entries()},t.forEach=function(n,r){for(var a=Z(this),o;!(o=a()).done;){var s=o.value,u=s[0],l=s[1];n.call(r,l,u,this)}},t.merge=function(n){var r=this;return X(n)&&(n=new Map(n)),x(function(){V(n)?bi(n).forEach(function(a){return r.set(a,n[a])}):Array.isArray(n)?n.forEach(function(a){var o=a[0],s=a[1];return r.set(o,s)}):oe(n)?(n.constructor!==Map&&m(19,n),n.forEach(function(a,o){return r.set(o,a)})):n!=null&&m(20,n)}),this},t.clear=function(){var n=this;x(function(){On(function(){for(var r=Z(n.keys()),a;!(a=r()).done;){var o=a.value;n.delete(o)}})})},t.replace=function(n){var r=this;return x(function(){for(var a=Gr(n),o=new Map,s=!1,u=Z(r.data_.keys()),l;!(l=u()).done;){var c=l.value;if(!a.has(c)){var h=r.delete(c);if(h)s=!0;else{var _=r.data_.get(c);o.set(c,_)}}}for(var j=Z(a.entries()),J;!(J=j()).done;){var C=J.value,T=C[0],Pe=C[1],et=r.data_.has(T);if(r.set(T,Pe),r.data_.has(T)){var le=r.data_.get(T);o.set(T,le),et||(s=!0)}}if(!s)if(r.data_.size!==o.size)r.keysAtom_.reportChanged();else for(var y=r.data_.keys(),B=o.keys(),z=y.next(),wt=B.next();!z.done;){if(z.value!==wt.value){r.keysAtom_.reportChanged();break}z=y.next(),wt=B.next()}r.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(n,r){return Te(this,n)},t.intercept_=function(n){return Ce(this,n)},pt(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:$n,get:function(){return"Map"}}]),e}(),X=H("ObservableMap",zn);function Gr(e){if(oe(e)||X(e))return e;if(Array.isArray(e))return new Map(e);if(V(e)){var t=new Map;for(var i in e)t.set(i,e[i]);return t}else return m(21,e)}var Kn,qn,$r={};Kn=Symbol.iterator;qn=Symbol.toStringTag;var Wn=function(){function e(i,n,r){n===void 0&&(n=re),r===void 0&&(r="ObservableSet"),this.name_=void 0,this[f]=$r,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_=r,F(Set)||m(22),this.atom_=dn(this.name_),this.enhancer_=function(a,o){return n(a,o,r)},i&&this.replace(i)}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.clear=function(){var n=this;x(function(){On(function(){for(var r=Z(n.data_.values()),a;!(a=r()).done;){var o=a.value;n.delete(o)}})})},t.forEach=function(n,r){for(var a=Z(this),o;!(o=a()).done;){var s=o.value;n.call(r,s,s,this)}},t.add=function(n){var r=this;if(this.atom_,O(this)){var a=A(this,{type:M,object:this,newValue:n});if(!a)return this}if(!this.has(n)){x(function(){r.data_.add(r.enhancer_(n,void 0)),r.atom_.reportChanged()});var o=!1,s=w(this),u=s||o?{observableKind:"set",debugObjectName:this.name_,type:M,object:this,newValue:n}:null;s&&E(this,u)}return this},t.delete=function(n){var r=this;if(O(this)){var a=A(this,{type:ze,object:this,oldValue:n});if(!a)return!1}if(this.has(n)){var o=!1,s=w(this),u=s||o?{observableKind:"set",debugObjectName:this.name_,type:ze,object:this,oldValue:n}:null;return x(function(){r.atom_.reportChanged(),r.data_.delete(n)}),s&&E(this,u),!0}return!1},t.has=function(n){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(n))},t.entries=function(){var n=0,r=Array.from(this.keys()),a=Array.from(this.values());return ye({next:function(){var s=n;return n+=1,s<a.length?{value:[r[s],a[s]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var n=this,r=0,a=Array.from(this.data_.values());return ye({next:function(){return r<a.length?{value:n.dehanceValue_(a[r++]),done:!1}:{done:!0}}})},t.replace=function(n){var r=this;return ue(n)&&(n=new Set(n)),x(function(){Array.isArray(n)?(r.clear(),n.forEach(function(a){return r.add(a)})):Ne(n)?(r.clear(),n.forEach(function(a){return r.add(a)})):n!=null&&m("Cannot initialize set from "+n)}),this},t.observe_=function(n,r){return Te(this,n)},t.intercept_=function(n){return Ce(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Kn]=function(){return this.values()},pt(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:qn,get:function(){return"Set"}}]),e}(),ue=H("ObservableSet",Wn),Ut=Object.create(null),Gt="remove",Hn=function(){function e(i,n,r,a){n===void 0&&(n=new Map),a===void 0&&(a=$i),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_=i,this.values_=n,this.name_=r,this.defaultAnnotation_=a,this.keysAtom_=new Ae("ObservableObject.keys"),this.isPlainObject_=V(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(n){return this.values_.get(n).get()},t.setObservablePropValue_=function(n,r){var a=this.values_.get(n);if(a instanceof pe)return a.set(r),!0;if(O(this)){var o=A(this,{type:D,object:this.proxy_||this.target_,name:n,newValue:r});if(!o)return null;r=o.newValue}if(r=a.prepareNewValue_(r),r!==d.UNCHANGED){var s=w(this),u=!1,l=s||u?{type:D,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:a.value_,name:n,newValue:r}:null;a.setNewValue_(r),s&&E(this,l)}return!0},t.get_=function(n){return d.trackingDerivation&&!U(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,r,a){return a===void 0&&(a=!1),U(this.target_,n)?this.values_.has(n)?this.setObservablePropValue_(n,r):a?Reflect.set(this.target_,n,r):(this.target_[n]=r,!0):this.extend_(n,{value:r,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,a)},t.has_=function(n){if(!d.trackingDerivation)return n in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var r=this.pendingKeys_.get(n);return r||(r=new ne(n in this.target_,He,"ObservableObject.key?",!1),this.pendingKeys_.set(n,r)),r.get()},t.make_=function(n,r){if(r===!0&&(r=this.defaultAnnotation_),r!==!1){if(!(n in this.target_)){var a;if((a=this.target_[ee])!=null&&a[n])return;m(1,r.annotationType_,this.name_+"."+n.toString())}for(var o=this.target_;o&&o!==Ke;){var s=Ie(o,n);if(s){var u=r.make_(this,n,s,o);if(u===0)return;if(u===1)break}o=Object.getPrototypeOf(o)}zt(this,r,n)}},t.extend_=function(n,r,a,o){if(o===void 0&&(o=!1),a===!0&&(a=this.defaultAnnotation_),a===!1)return this.defineProperty_(n,r,o);var s=a.extend_(this,n,r,o);return s&&zt(this,a,n),s},t.defineProperty_=function(n,r,a){a===void 0&&(a=!1);try{S();var o=this.delete_(n);if(!o)return o;if(O(this)){var s=A(this,{object:this.proxy_||this.target_,name:n,type:M,newValue:r.value});if(!s)return null;var u=s.newValue;r.value!==u&&(r=_e({},r,{value:u}))}if(a){if(!Reflect.defineProperty(this.target_,n,r))return!1}else R(this.target_,n,r);this.notifyPropertyAddition_(n,r.value)}finally{N()}return!0},t.defineObservableProperty_=function(n,r,a,o){o===void 0&&(o=!1);try{S();var s=this.delete_(n);if(!s)return s;if(O(this)){var u=A(this,{object:this.proxy_||this.target_,name:n,type:M,newValue:r});if(!u)return null;r=u.newValue}var l=$t(n),c={configurable:d.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:l.get,set:l.set};if(o){if(!Reflect.defineProperty(this.target_,n,c))return!1}else R(this.target_,n,c);var h=new ne(r,a,"ObservableObject.key",!1);this.values_.set(n,h),this.notifyPropertyAddition_(n,h.value_)}finally{N()}return!0},t.defineComputedProperty_=function(n,r,a){a===void 0&&(a=!1);try{S();var o=this.delete_(n);if(!o)return o;if(O(this)){var s=A(this,{object:this.proxy_||this.target_,name:n,type:M,newValue:void 0});if(!s)return null}r.name||(r.name="ObservableObject.key"),r.context=this.proxy_||this.target_;var u=$t(n),l={configurable:d.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(a){if(!Reflect.defineProperty(this.target_,n,l))return!1}else R(this.target_,n,l);this.values_.set(n,new pe(r)),this.notifyPropertyAddition_(n,void 0)}finally{N()}return!0},t.delete_=function(n,r){if(r===void 0&&(r=!1),!U(this.target_,n))return!0;if(O(this)){var a=A(this,{object:this.proxy_||this.target_,name:n,type:Gt});if(!a)return null}try{var o,s;S();var u=w(this),l=!1,c=this.values_.get(n),h=void 0;if(!c&&(u||l)){var _;h=(_=Ie(this.target_,n))==null?void 0:_.value}if(r){if(!Reflect.deleteProperty(this.target_,n))return!1}else delete this.target_[n];if(c&&(this.values_.delete(n),c instanceof ne&&(h=c.value_),Cn(c)),this.keysAtom_.reportChanged(),(o=this.pendingKeys_)==null||(s=o.get(n))==null||s.set(n in this.target_),u||l){var j={type:Gt,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:h,name:n};u&&E(this,j)}}finally{N()}return!0},t.observe_=function(n,r){return Te(this,n)},t.intercept_=function(n){return Ce(this,n)},t.notifyPropertyAddition_=function(n,r){var a,o,s=w(this),u=!1;if(s||u){var l=s||u?{type:M,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:n,newValue:r}:null;s&&E(this,l)}(a=this.pendingKeys_)==null||(o=a.get(n))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),he(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Ze(e,t){var i;if(U(e,f))return e;var n=(i=t==null?void 0:t.name)!=null?i:"ObservableObject",r=new Hn(e,new Map,String(n),Zi(t));return We(e,f,r),e}var zr=H("ObservableObjectAdministration",Hn);function $t(e){return Ut[e]||(Ut[e]={get:function(){return this[f].getObservablePropValue_(e)},set:function(i){return this[f].setObservablePropValue_(e,i)}})}function ge(e){return qe(e)?zr(e[f]):!1}function zt(e,t,i){var n;(n=e.target_[ee])==null||delete n[i]}var at=0,Xn=function(){};function Kr(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}Kr(Xn,Array.prototype);var Nt=function(e,t,i){ln(n,e);function n(a,o,s,u){var l;s===void 0&&(s="ObservableArray"),u===void 0&&(u=!1),l=e.call(this)||this;var c=new St(s,o,u,!0);if(c.proxy_=jt(l),on(jt(l),f,c),a&&a.length){var h=Ee(!0);l.spliceWithArray(0,0,a),Fe(h)}return l}var r=n.prototype;return r.concat=function(){this[f].atom_.reportObserved();for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return Array.prototype.concat.apply(this.slice(),s.map(function(l){return Qe(l)?l.slice():l}))},r[i]=function(){var a=this,o=0;return ye({next:function(){return o<a.length?{value:a[o++],done:!1}:{done:!0,value:void 0}}})},pt(n,[{key:"length",get:function(){return this[f].getArrayLength_()},set:function(o){this[f].setArrayLength_(o)}},{key:t,get:function(){return"Array"}}]),n}(Xn,Symbol.toStringTag,Symbol.iterator);Object.entries($e).forEach(function(e){var t=e[0],i=e[1];t!=="concat"&&We(Nt.prototype,t,i)});function qr(e){return{enumerable:!1,configurable:!0,get:function(){return this[f].get_(e)},set:function(i){this[f].set_(e,i)}}}function Wr(e){R(Nt.prototype,""+e,qr(e))}function Jn(e){if(e>at){for(var t=at;t<e+100;t++)Wr(t);at=e}}Jn(1e3);function Hr(e,t,i){return new Nt(e,t,i)}function W(e,t){if(typeof e=="object"&&e!==null){if(Qe(e))return t!==void 0&&m(23),e[f].atom_;if(ue(e))return e[f];if(X(e)){if(t===void 0)return e.keysAtom_;var i=e.data_.get(t)||e.hasMap_.get(t);return i||m(25,t,mt(e)),i}if(ge(e)){if(!t)return m(26);var n=e[f].values_.get(t);return n||m(27,t,mt(e)),n}if(kt(e)||Ye(e)||Ue(e))return e}else if(F(e)&&Ue(e[f]))return e[f];m(28)}function Yn(e,t){if(e||m(29),t!==void 0)return Yn(W(e,t));if(kt(e)||Ye(e)||Ue(e)||X(e)||ue(e))return e;if(e[f])return e[f];m(24,e)}function mt(e,t){var i;if(t!==void 0)i=W(e,t);else{if(yt(e))return e.name;ge(e)||X(e)||ue(e)?i=Yn(e):i=W(e)}return i.name_}var Kt=Ke.toString;function Ot(e,t,i){return i===void 0&&(i=-1),ht(e,t,i)}function ht(e,t,i,n,r){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var a=typeof e;if(a!=="function"&&a!=="object"&&typeof t!="object")return!1;var o=Kt.call(e);if(o!==Kt.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":i>=0&&i++;break}e=qt(e),t=qt(t);var s=o==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(F(u)&&u instanceof u&&F(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(i===0)return!1;i<0&&(i=-1),n=n||[],r=r||[];for(var c=n.length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),s){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!ht(e[c],t[c],i-1,n,r))return!1}else{var h=Object.keys(e),_;if(c=h.length,Object.keys(t).length!==c)return!1;for(;c--;)if(_=h[c],!(U(t,_)&&ht(e[_],t[_],i-1,n,r)))return!1}return n.pop(),r.pop(),!0}function qt(e){return Qe(e)?e.slice():oe(e)||X(e)||Ne(e)||ue(e)?Array.from(e.entries()):e}function ye(e){return e[Symbol.iterator]=Xr,e}function Xr(){return this}["Symbol","Map","Set"].forEach(function(e){var t=en();typeof t[e]=="undefined"&&m("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:pr,extras:{getDebugName:mt},$mobx:f});async function Jr(r){var a=r,{url:e,method:t="GET",raw:i=!1}=a,n=Tt(a,["url","method","raw"]);var l;const o=de({"Content-Type":"application/json"},n.headers),s=await fetch(e,Ct(de({method:t},n),{headers:o}));if(i)return s;const u=await s.json();if(!s.ok){const c=(l=u==null?void 0:u.message)!=null?l:s.statusText;throw new Error(c)}return u}class Wt{constructor(){g(this,"store");this.store=this.getStoreFromWindow()}getStoreFromWindow(){let t={};try{t=JSON.parse(window.self.name)}catch(i){return{}}return t&&typeof t=="object"?t:{}}setStoreToWindow(t){const i=JSON.stringify(t);window.self.name=i}setItem(t,i){this.store[t]=i,this.setStoreToWindow(this.store)}getItem(t){var i;return(i=this.store[t])!=null?i:null}removeItem(t){delete this.store[t],this.setStoreToWindow(this.store)}clear(){this.setStoreToWindow({})}key(t){var n;return(n=Object.keys(this.store)[t])!=null?n:null}get length(){return Object.keys(this.store).length}}function Ht(e){try{const t=window[e],i="__custom-storage__";return t.setItem(i,i),t.removeItem(i),!0}catch(t){return!1}}function Xt(e,t,i){const n={configurable:!1,enumerable:!1,writable:!1};typeof i!="undefined"&&(n.value=i),Object.defineProperty(e,t,n)}class At{static init(){return new At}constructor(){window.top===window.self?console.log("[CustomStorage] This is the main window"):console.log("[CustomStorage] This is NOT the main window"),this.replaceStorages()}replaceStorages(){if(!this.isAvailable.localStorage){const t=new Wt;Xt(window,"localStorage",t),console.log("[CustomStorage] LocalStorage is not available, custom implementation is defined")}if(!this.isAvailable.sessionStorage){const t=new Wt;Xt(window,"sessionStorage",t),console.log("[CustomStorage] SessionStorage is not available, custom implementation is defined")}}get isAvailable(){return{localStorage:Ht("localStorage"),sessionStorage:Ht("sessionStorage")}}}var Re,Yr=new Uint8Array(16);function Qr(){if(!Re&&(Re=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Re))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Re(Yr)}const Zr=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ea(e){return typeof e=="string"&&Zr.test(e)}var k=[];for(var ot=0;ot<256;++ot)k.push((ot+256).toString(16).substr(1));function ta(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=(k[e[t+0]]+k[e[t+1]]+k[e[t+2]]+k[e[t+3]]+"-"+k[e[t+4]]+k[e[t+5]]+"-"+k[e[t+6]]+k[e[t+7]]+"-"+k[e[t+8]]+k[e[t+9]]+"-"+k[e[t+10]]+k[e[t+11]]+k[e[t+12]]+k[e[t+13]]+k[e[t+14]]+k[e[t+15]]).toLowerCase();if(!ea(i))throw TypeError("Stringified UUID is invalid");return i}function na(e,t,i){e=e||{};var n=e.random||(e.rng||Qr)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=n[r];return t}return ta(n)}const Jt="FINGERPRINT_LIVE_SHOPPING",ia=()=>{let e=Pt.get(Jt);return e||(e=na(),Pt.set(Jt,e,{expires:1}),e)};let ra=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,i)=>(i&=63,i<36?t+=i.toString(36):i<62?t+=(i-26).toString(36).toUpperCase():i>62?t+="-":t+="_",t),"");const Qn=(e=8)=>ra(e),aa=e=>{const t=Object.entries(e).map(([i,n])=>`${i}=${n}`).join("&");return t?`?${t}`:""},oa=(e,t,i={fallback:null})=>{let n=e;t&&(n=()=>e().then(a=>({default:t(a)})));const r=ie.lazy(n);return a=>st.jsx(ie.Suspense,{fallback:i.fallback,children:st.jsx(r,de({},a))})};class ve{constructor(t,i,n){g(this,"isOk");g(this,"isErr");g(this,"error");g(this,"_value");if(t&&i)throw new Error("InvalidOperation: A result cannot be successful and contain an error");if(!t&&!i)throw new Error("InvalidOperation: A failing result needs to contain an error message");this.isOk=t,this.isErr=!t,this.error=i,this._value=n,Object.freeze(this)}get value(){if(this.isErr)throw new Error("Can't get the value of an error result. Use 'errorValue' instead.");return this._value}static ok(t){return new ve(!0,void 0,t)}static fail(t){return new ve(!1,t)}static combine(t){for(const i of t)if(i.isErr)return i;return ve.ok()}}class Zn{constructor(t){g(this,"value");this.value=t}isErr(){return!0}isOk(){return!1}}class ei{constructor(t){g(this,"value");this.value=t}isErr(){return!1}isOk(){return!0}}const sa=e=>new Zn(e),ua=e=>new ei(e),la=["account"],L=class{constructor(){g(this,"_config");g(this,"instanceId",Qn());Vr(this,{},{name:"NizzaStore",autoBind:!0})}static instance(){return L._instance||(L._instance=new L),window!=null&&window.nizza?L._instance=window==null?void 0:window.nizza:window.nizza=L._instance,L._instance}configure(t){this._config=t}get config(){return this.validateRequiredProps(),this._config}validateRequiredProps(){la.forEach(t=>{if(t===void 0)throw new Zt(t)})}};let me=L;g(me,"_instance");const da=me.instance();var ti=(e=>(e.Add="add",e.Remove="remove",e))(ti||{}),ni=(e=>(e.Active="active",e.Inactive="inactive",e))(ni||{});const ca={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deleteAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInputAccount"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},fa={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"section"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},va={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ma={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ha={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},_a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},pa={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ka={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ManageCollectionProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ManageCollectionProductInInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"manageCollectionProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ba={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ga={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ya={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllSnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoCreatedArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"snackVideos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"modified"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Sa=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:ma,DeleteAllCustomizationDocument:ca,DeleteCollectionDocument:ha,FindCollectionDocument:_a,GetAllCollectionsDocument:pa,GetAllCustomizationDocument:fa,GetAllSnackVideosDocument:ya,ManageCollectionProductDocument:ka,Methods:ti,SearchCollectionsDocument:ba,Status:ni,UpdateCollectionDocument:ga,UpdateCustomizationDocument:va},Symbol.toStringTag,{value:"Module"}));function Na(e){return{class:e,_value:null,get value(){return this._value||(this._value=new e,Object.freeze(this)),this._value}}}exports.AccountInvalidError=ci;exports.AggregateRoot=Qt;exports.ApiGraphqlTypes=Sa;exports.BaseMobxStore=si;exports.CustomStorage=At;exports.DomainError=Se;exports.Err=Zn;exports.InvalidNizzaGlobalObjectError=Zt;exports.NizzaStore=me;exports.NizzaVariationTypes=Yt;exports.Ok=ei;exports.ResourceNotFoundError=li;exports.Result=ve;exports.StoreProvider=fi;exports.UnexpectedError=di;exports.ValueObject=ui;exports.apiCall=Jr;exports.createAggregateRoot=oi;exports.createStore=Na;exports.err=ua;exports.getFingerprint=ia;exports.getStore=mi;exports.lazyLoad=oa;exports.nizza=da;exports.ok=sa;exports.searchParams=aa;exports.shortId=Qn;exports.useStore=vi;
|
package/dist/index.mjs
CHANGED
|
@@ -53,7 +53,7 @@ class _a {
|
|
|
53
53
|
return this._value;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
class
|
|
56
|
+
class $e extends Error {
|
|
57
57
|
constructor(t, i, n) {
|
|
58
58
|
super(i), this.value = n, this.name = t;
|
|
59
59
|
}
|
|
@@ -64,7 +64,7 @@ class ze extends Error {
|
|
|
64
64
|
}, this.value && { value: this.value });
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
class pa extends
|
|
67
|
+
class pa extends $e {
|
|
68
68
|
constructor(t) {
|
|
69
69
|
super(
|
|
70
70
|
"RESOURCE_NOT_FOUND_ERROR",
|
|
@@ -73,7 +73,7 @@ class pa extends ze {
|
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
class ka extends
|
|
76
|
+
class ka extends $e {
|
|
77
77
|
constructor(t) {
|
|
78
78
|
var i;
|
|
79
79
|
super(
|
|
@@ -83,12 +83,12 @@ class ka extends ze {
|
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
class ba extends
|
|
86
|
+
class ba extends $e {
|
|
87
87
|
constructor() {
|
|
88
88
|
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
class oi extends
|
|
91
|
+
class oi extends $e {
|
|
92
92
|
constructor(t) {
|
|
93
93
|
super(
|
|
94
94
|
"INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
|
|
@@ -139,7 +139,7 @@ var si = {};
|
|
|
139
139
|
function Jt() {
|
|
140
140
|
return typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : si;
|
|
141
141
|
}
|
|
142
|
-
var ui = Object.assign, Ve = Object.getOwnPropertyDescriptor,
|
|
142
|
+
var ui = Object.assign, Ve = Object.getOwnPropertyDescriptor, V = Object.defineProperty, ze = Object.prototype, ut = [];
|
|
143
143
|
Object.freeze(ut);
|
|
144
144
|
var Yt = {};
|
|
145
145
|
Object.freeze(Yt);
|
|
@@ -172,7 +172,7 @@ function q(e) {
|
|
|
172
172
|
function Ke(e) {
|
|
173
173
|
return e !== null && typeof e == "object";
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function R(e) {
|
|
176
176
|
if (!Ke(e))
|
|
177
177
|
return !1;
|
|
178
178
|
var t = Object.getPrototypeOf(e);
|
|
@@ -186,7 +186,7 @@ function en(e) {
|
|
|
186
186
|
return t ? t.name === "GeneratorFunction" || t.displayName === "GeneratorFunction" : !1;
|
|
187
187
|
}
|
|
188
188
|
function qe(e, t, i) {
|
|
189
|
-
|
|
189
|
+
V(e, t, {
|
|
190
190
|
enumerable: !1,
|
|
191
191
|
writable: !0,
|
|
192
192
|
configurable: !0,
|
|
@@ -194,7 +194,7 @@ function qe(e, t, i) {
|
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
196
|
function tn(e, t, i) {
|
|
197
|
-
|
|
197
|
+
V(e, t, {
|
|
198
198
|
enumerable: !1,
|
|
199
199
|
writable: !1,
|
|
200
200
|
configurable: !0,
|
|
@@ -220,7 +220,7 @@ function ci(e) {
|
|
|
220
220
|
return t;
|
|
221
221
|
var i = Object.getOwnPropertySymbols(e);
|
|
222
222
|
return i.length ? [].concat(t, i.filter(function(n) {
|
|
223
|
-
return
|
|
223
|
+
return ze.propertyIsEnumerable.call(e, n);
|
|
224
224
|
})) : t;
|
|
225
225
|
}
|
|
226
226
|
var fe = typeof Reflect != "undefined" && Reflect.ownKeys ? Reflect.ownKeys : nn ? function(e) {
|
|
@@ -233,7 +233,7 @@ function rn(e) {
|
|
|
233
233
|
return e === null ? null : typeof e == "object" ? "" + e : e;
|
|
234
234
|
}
|
|
235
235
|
function U(e, t) {
|
|
236
|
-
return
|
|
236
|
+
return ze.hasOwnProperty.call(e, t);
|
|
237
237
|
}
|
|
238
238
|
var fi = Object.getOwnPropertyDescriptors || function(t) {
|
|
239
239
|
var i = {};
|
|
@@ -312,7 +312,7 @@ function Z(e, t) {
|
|
|
312
312
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
313
313
|
}
|
|
314
314
|
var ee = /* @__PURE__ */ Symbol("mobx-stored-annotations");
|
|
315
|
-
function
|
|
315
|
+
function P(e) {
|
|
316
316
|
function t(i, n) {
|
|
317
317
|
ge(i, n, e);
|
|
318
318
|
}
|
|
@@ -368,7 +368,7 @@ var Re = {
|
|
|
368
368
|
function ie(e, t, i) {
|
|
369
369
|
return Rn(e) ? e : Array.isArray(e) ? b.array(e, {
|
|
370
370
|
name: i
|
|
371
|
-
}) :
|
|
371
|
+
}) : R(e) ? b.object(e, void 0, {
|
|
372
372
|
name: i
|
|
373
373
|
}) : ae(e) ? b.map(e, {
|
|
374
374
|
name: i
|
|
@@ -384,7 +384,7 @@ function ki(e, t, i) {
|
|
|
384
384
|
name: i,
|
|
385
385
|
deep: !1
|
|
386
386
|
});
|
|
387
|
-
if (
|
|
387
|
+
if (R(e))
|
|
388
388
|
return b.object(e, void 0, {
|
|
389
389
|
name: i,
|
|
390
390
|
deep: !1
|
|
@@ -427,7 +427,7 @@ function Si(e, t, i, n) {
|
|
|
427
427
|
if (gt(i.value))
|
|
428
428
|
return 1;
|
|
429
429
|
var a = sn(e, this, t, i, !1);
|
|
430
|
-
return
|
|
430
|
+
return V(n, t, a), 2;
|
|
431
431
|
}
|
|
432
432
|
function Ni(e, t, i, n) {
|
|
433
433
|
var r = sn(e, this, t, i);
|
|
@@ -441,8 +441,8 @@ function sn(e, t, i, n, r) {
|
|
|
441
441
|
r === void 0 && (r = d.safeDescriptors), Oi(e, t, i, n);
|
|
442
442
|
var _ = n.value;
|
|
443
443
|
if ((a = t.options_) != null && a.bound) {
|
|
444
|
-
var
|
|
445
|
-
_ = _.bind((
|
|
444
|
+
var j;
|
|
445
|
+
_ = _.bind((j = e.proxy_) != null ? j : e.target_);
|
|
446
446
|
}
|
|
447
447
|
return {
|
|
448
448
|
value: re(
|
|
@@ -479,7 +479,7 @@ function Ai(e, t, i, n) {
|
|
|
479
479
|
if (Me(i.value))
|
|
480
480
|
return 1;
|
|
481
481
|
var a = ln(e, this, t, i, !1, !1);
|
|
482
|
-
return
|
|
482
|
+
return V(n, t, a), 2;
|
|
483
483
|
}
|
|
484
484
|
function wi(e, t, i, n) {
|
|
485
485
|
var r, a = ln(e, this, t, i, (r = this.options_) == null ? void 0 : r.bound);
|
|
@@ -563,7 +563,7 @@ function Ri(e, t, i, n) {
|
|
|
563
563
|
return n === e.target_ ? e.defineProperty_(t, {
|
|
564
564
|
configurable: d.safeDescriptors ? e.isPlainObject_ : !0,
|
|
565
565
|
set: o
|
|
566
|
-
}) === null ? 0 : 2 : (
|
|
566
|
+
}) === null ? 0 : 2 : (V(n, t, {
|
|
567
567
|
configurable: !0,
|
|
568
568
|
set: o
|
|
569
569
|
}), 2);
|
|
@@ -612,11 +612,11 @@ function Ce(e) {
|
|
|
612
612
|
}
|
|
613
613
|
var fn = /* @__PURE__ */ He(Bi), Gi = /* @__PURE__ */ He(Li, {
|
|
614
614
|
enhancer: We
|
|
615
|
-
}),
|
|
615
|
+
}), $i = /* @__PURE__ */ He(Mi, {
|
|
616
616
|
enhancer: ki
|
|
617
|
-
}),
|
|
617
|
+
}), zi = /* @__PURE__ */ He(Ui, {
|
|
618
618
|
enhancer: bi
|
|
619
|
-
}), vn = /* @__PURE__ */
|
|
619
|
+
}), vn = /* @__PURE__ */ P(fn);
|
|
620
620
|
function Te(e) {
|
|
621
621
|
return e.deep === !0 ? ie : e.deep === !1 ? We : qi(e.defaultDecorator);
|
|
622
622
|
}
|
|
@@ -633,7 +633,7 @@ function mn(e, t, i) {
|
|
|
633
633
|
ge(e, t, fn);
|
|
634
634
|
return;
|
|
635
635
|
}
|
|
636
|
-
return Rn(e) ? e :
|
|
636
|
+
return Rn(e) ? e : R(e) ? b.object(e, t, i) : Array.isArray(e) ? b.array(e, t) : ae(e) ? b.map(e, t) : be(e) ? b.set(e, t) : typeof e == "object" && e !== null ? e : b.box(e, t);
|
|
637
637
|
}
|
|
638
638
|
Object.assign(mn, vn);
|
|
639
639
|
var Wi = {
|
|
@@ -651,27 +651,27 @@ var Wi = {
|
|
|
651
651
|
},
|
|
652
652
|
set: function(t, i) {
|
|
653
653
|
var n = Ce(i);
|
|
654
|
-
return new
|
|
654
|
+
return new $n(t, Te(n), n.name);
|
|
655
655
|
},
|
|
656
656
|
object: function(t, i, n) {
|
|
657
657
|
return xn(d.useProxies === !1 || (n == null ? void 0 : n.proxy) === !1 ? Qe({}, n) : Fr({}, n), t, i);
|
|
658
658
|
},
|
|
659
|
-
ref: /* @__PURE__ */
|
|
660
|
-
shallow: /* @__PURE__ */
|
|
659
|
+
ref: /* @__PURE__ */ P(Gi),
|
|
660
|
+
shallow: /* @__PURE__ */ P($i),
|
|
661
661
|
deep: vn,
|
|
662
|
-
struct: /* @__PURE__ */
|
|
662
|
+
struct: /* @__PURE__ */ P(zi)
|
|
663
663
|
}, b = /* @__PURE__ */ ui(mn, Wi), hn = "computed", Hi = "computed.struct", _n = /* @__PURE__ */ kt(hn), Xi = /* @__PURE__ */ kt(Hi, {
|
|
664
664
|
equals: Re.structural
|
|
665
665
|
}), Xe = function(t, i) {
|
|
666
666
|
if (q(i))
|
|
667
667
|
return ge(t, i, _n);
|
|
668
|
-
if (
|
|
669
|
-
return
|
|
670
|
-
var n =
|
|
668
|
+
if (R(t))
|
|
669
|
+
return P(kt(hn, t));
|
|
670
|
+
var n = R(i) ? i : {};
|
|
671
671
|
return n.get = t, n.name || (n.name = t.name || ""), new me(n);
|
|
672
672
|
};
|
|
673
673
|
Object.assign(Xe, _n);
|
|
674
|
-
Xe.struct = /* @__PURE__ */
|
|
674
|
+
Xe.struct = /* @__PURE__ */ P(Xi);
|
|
675
675
|
var jt, xt, Ie = 0, Ji = 1, Yi = (jt = (xt = /* @__PURE__ */ Ve(function() {
|
|
676
676
|
}, "name")) == null ? void 0 : xt.configurable) != null ? jt : !1, Vt = {
|
|
677
677
|
value: "action",
|
|
@@ -748,7 +748,7 @@ var ne = /* @__PURE__ */ function(e) {
|
|
|
748
748
|
if (O(this)) {
|
|
749
749
|
var a = A(this, {
|
|
750
750
|
object: this,
|
|
751
|
-
type:
|
|
751
|
+
type: D,
|
|
752
752
|
newValue: r
|
|
753
753
|
});
|
|
754
754
|
if (!a)
|
|
@@ -759,7 +759,7 @@ var ne = /* @__PURE__ */ function(e) {
|
|
|
759
759
|
}, i.setNewValue_ = function(r) {
|
|
760
760
|
var a = this.value_;
|
|
761
761
|
this.value_ = r, this.reportChanged(), w(this) && F(this, {
|
|
762
|
-
type:
|
|
762
|
+
type: D,
|
|
763
763
|
object: this,
|
|
764
764
|
newValue: r,
|
|
765
765
|
oldValue: a
|
|
@@ -773,7 +773,7 @@ var ne = /* @__PURE__ */ function(e) {
|
|
|
773
773
|
observableKind: "value",
|
|
774
774
|
debugObjectName: this.name_,
|
|
775
775
|
object: this,
|
|
776
|
-
type:
|
|
776
|
+
type: D,
|
|
777
777
|
newValue: this.value_,
|
|
778
778
|
oldValue: void 0
|
|
779
779
|
}), we(this, r);
|
|
@@ -858,7 +858,7 @@ var me = /* @__PURE__ */ function() {
|
|
|
858
858
|
n({
|
|
859
859
|
observableKind: "computed",
|
|
860
860
|
debugObjectName: a.name_,
|
|
861
|
-
type:
|
|
861
|
+
type: D,
|
|
862
862
|
object: a,
|
|
863
863
|
newValue: u,
|
|
864
864
|
oldValue: s
|
|
@@ -1126,7 +1126,7 @@ function Pn(e) {
|
|
|
1126
1126
|
if (q(r))
|
|
1127
1127
|
return ge(n, r, e ? Tn : Cn);
|
|
1128
1128
|
if (q(n))
|
|
1129
|
-
return
|
|
1129
|
+
return P(Se(e ? En : Fn, {
|
|
1130
1130
|
name: n,
|
|
1131
1131
|
autoAction: e
|
|
1132
1132
|
}));
|
|
@@ -1137,8 +1137,8 @@ var te = /* @__PURE__ */ Pn(!1);
|
|
|
1137
1137
|
Object.assign(te, Cn);
|
|
1138
1138
|
var he = /* @__PURE__ */ Pn(!0);
|
|
1139
1139
|
Object.assign(he, Tn);
|
|
1140
|
-
te.bound = /* @__PURE__ */
|
|
1141
|
-
he.bound = /* @__PURE__ */
|
|
1140
|
+
te.bound = /* @__PURE__ */ P(vr);
|
|
1141
|
+
he.bound = /* @__PURE__ */ P(mr);
|
|
1142
1142
|
function gt(e) {
|
|
1143
1143
|
return E(e) && e.isMobxAction === !0;
|
|
1144
1144
|
}
|
|
@@ -1213,28 +1213,28 @@ var Rt = /* @__PURE__ */ un("flow"), Sr = /* @__PURE__ */ un("flow.bound", {
|
|
|
1213
1213
|
if (q(i))
|
|
1214
1214
|
return ge(t, i, Rt);
|
|
1215
1215
|
var n = t, r = n.name || "<unnamed flow>", a = function() {
|
|
1216
|
-
var s = this, u = arguments, l = ++yr, c = te(r + " - runid: " + l + " - init", n).apply(s, u), h, _ = void 0,
|
|
1216
|
+
var s = this, u = arguments, l = ++yr, c = te(r + " - runid: " + l + " - init", n).apply(s, u), h, _ = void 0, j = new Promise(function(J, C) {
|
|
1217
1217
|
var T = 0;
|
|
1218
1218
|
h = C;
|
|
1219
1219
|
function Fe(y) {
|
|
1220
1220
|
_ = void 0;
|
|
1221
|
-
var
|
|
1221
|
+
var B;
|
|
1222
1222
|
try {
|
|
1223
|
-
|
|
1224
|
-
} catch (
|
|
1225
|
-
return C(
|
|
1223
|
+
B = te(r + " - runid: " + l + " - yield " + T++, c.next).call(c, y);
|
|
1224
|
+
} catch (z) {
|
|
1225
|
+
return C(z);
|
|
1226
1226
|
}
|
|
1227
|
-
ue(
|
|
1227
|
+
ue(B);
|
|
1228
1228
|
}
|
|
1229
1229
|
function Ze(y) {
|
|
1230
1230
|
_ = void 0;
|
|
1231
|
-
var
|
|
1231
|
+
var B;
|
|
1232
1232
|
try {
|
|
1233
|
-
|
|
1234
|
-
} catch (
|
|
1235
|
-
return C(
|
|
1233
|
+
B = te(r + " - runid: " + l + " - yield " + T++, c.throw).call(c, y);
|
|
1234
|
+
} catch (z) {
|
|
1235
|
+
return C(z);
|
|
1236
1236
|
}
|
|
1237
|
-
ue(
|
|
1237
|
+
ue(B);
|
|
1238
1238
|
}
|
|
1239
1239
|
function ue(y) {
|
|
1240
1240
|
if (E(y == null ? void 0 : y.then)) {
|
|
@@ -1245,7 +1245,7 @@ var Rt = /* @__PURE__ */ un("flow"), Sr = /* @__PURE__ */ un("flow.bound", {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
Fe(void 0);
|
|
1247
1247
|
});
|
|
1248
|
-
return
|
|
1248
|
+
return j.cancel = te(r + " - runid: " + l + " - cancel", function() {
|
|
1249
1249
|
try {
|
|
1250
1250
|
_ && It(_);
|
|
1251
1251
|
var J = c.return(void 0), C = Promise.resolve(J.value);
|
|
@@ -1253,11 +1253,11 @@ var Rt = /* @__PURE__ */ un("flow"), Sr = /* @__PURE__ */ un("flow.bound", {
|
|
|
1253
1253
|
} catch (T) {
|
|
1254
1254
|
h(T);
|
|
1255
1255
|
}
|
|
1256
|
-
}),
|
|
1256
|
+
}), j;
|
|
1257
1257
|
};
|
|
1258
1258
|
return a.isMobXFlow = !0, a;
|
|
1259
1259
|
}, Rt);
|
|
1260
|
-
_e.bound = /* @__PURE__ */
|
|
1260
|
+
_e.bound = /* @__PURE__ */ P(Sr);
|
|
1261
1261
|
function It(e) {
|
|
1262
1262
|
E(e.cancel) && e.cancel();
|
|
1263
1263
|
}
|
|
@@ -1290,7 +1290,7 @@ function Ar(e) {
|
|
|
1290
1290
|
return W(e[0], e[1]);
|
|
1291
1291
|
}
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function x(e, t) {
|
|
1294
1294
|
t === void 0 && (t = void 0), S();
|
|
1295
1295
|
try {
|
|
1296
1296
|
return e.apply(t);
|
|
@@ -1372,7 +1372,7 @@ function F(e, t) {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
var it = /* @__PURE__ */ Symbol("mobx-keys");
|
|
1374
1374
|
function Er(e, t, i) {
|
|
1375
|
-
if (
|
|
1375
|
+
if (R(e))
|
|
1376
1376
|
return xn(e, e, t, i);
|
|
1377
1377
|
var n = Qe(e, i)[f];
|
|
1378
1378
|
if (!e[it]) {
|
|
@@ -1393,7 +1393,7 @@ function Er(e, t, i) {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
return e;
|
|
1395
1395
|
}
|
|
1396
|
-
var Bt = "splice",
|
|
1396
|
+
var Bt = "splice", D = "update", Cr = 1e4, Tr = {
|
|
1397
1397
|
get: function(t, i) {
|
|
1398
1398
|
var n = t[f];
|
|
1399
1399
|
return i === f ? n : i === "length" ? n.getArrayLength_() : typeof i == "string" && !isNaN(i) ? n.get_(parseInt(i)) : U(Ue, i) ? Ue[i] : t[i];
|
|
@@ -1485,7 +1485,7 @@ var Bt = "splice", j = "update", Cr = 1e4, Tr = {
|
|
|
1485
1485
|
var o = !this.owned_ && ce(), s = w(this), u = s || o ? {
|
|
1486
1486
|
observableKind: "array",
|
|
1487
1487
|
object: this.proxy_,
|
|
1488
|
-
type:
|
|
1488
|
+
type: D,
|
|
1489
1489
|
debugObjectName: this.atom_.name_,
|
|
1490
1490
|
index: n,
|
|
1491
1491
|
newValue: r,
|
|
@@ -1516,7 +1516,7 @@ var Bt = "splice", j = "update", Cr = 1e4, Tr = {
|
|
|
1516
1516
|
var o = a[n];
|
|
1517
1517
|
if (O(this)) {
|
|
1518
1518
|
var s = A(this, {
|
|
1519
|
-
type:
|
|
1519
|
+
type: D,
|
|
1520
1520
|
object: this.proxy_,
|
|
1521
1521
|
index: n,
|
|
1522
1522
|
newValue: r
|
|
@@ -1607,29 +1607,29 @@ var Ue = {
|
|
|
1607
1607
|
return n > -1 ? (this.splice(n, 1), !0) : !1;
|
|
1608
1608
|
}
|
|
1609
1609
|
};
|
|
1610
|
-
p("concat",
|
|
1611
|
-
p("flat",
|
|
1612
|
-
p("includes",
|
|
1613
|
-
p("indexOf",
|
|
1614
|
-
p("join",
|
|
1615
|
-
p("lastIndexOf",
|
|
1616
|
-
p("slice",
|
|
1617
|
-
p("toString",
|
|
1618
|
-
p("toLocaleString",
|
|
1619
|
-
p("every",
|
|
1620
|
-
p("filter",
|
|
1621
|
-
p("find",
|
|
1622
|
-
p("findIndex",
|
|
1623
|
-
p("flatMap",
|
|
1624
|
-
p("forEach",
|
|
1625
|
-
p("map",
|
|
1626
|
-
p("some",
|
|
1610
|
+
p("concat", I);
|
|
1611
|
+
p("flat", I);
|
|
1612
|
+
p("includes", I);
|
|
1613
|
+
p("indexOf", I);
|
|
1614
|
+
p("join", I);
|
|
1615
|
+
p("lastIndexOf", I);
|
|
1616
|
+
p("slice", I);
|
|
1617
|
+
p("toString", I);
|
|
1618
|
+
p("toLocaleString", I);
|
|
1619
|
+
p("every", $);
|
|
1620
|
+
p("filter", $);
|
|
1621
|
+
p("find", $);
|
|
1622
|
+
p("findIndex", $);
|
|
1623
|
+
p("flatMap", $);
|
|
1624
|
+
p("forEach", $);
|
|
1625
|
+
p("map", $);
|
|
1626
|
+
p("some", $);
|
|
1627
1627
|
p("reduce", In);
|
|
1628
1628
|
p("reduceRight", In);
|
|
1629
1629
|
function p(e, t) {
|
|
1630
1630
|
typeof Array.prototype[e] == "function" && (Ue[e] = t(e));
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1632
|
+
function I(e) {
|
|
1633
1633
|
return function() {
|
|
1634
1634
|
var t = this[f];
|
|
1635
1635
|
t.atom_.reportObserved();
|
|
@@ -1637,7 +1637,7 @@ function B(e) {
|
|
|
1637
1637
|
return i[e].apply(i, arguments);
|
|
1638
1638
|
};
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1640
|
+
function $(e) {
|
|
1641
1641
|
return function(t, i) {
|
|
1642
1642
|
var n = this, r = this[f];
|
|
1643
1643
|
r.atom_.reportObserved();
|
|
@@ -1690,7 +1690,7 @@ var Mn = /* @__PURE__ */ function() {
|
|
|
1690
1690
|
var a = this.has_(n);
|
|
1691
1691
|
if (O(this)) {
|
|
1692
1692
|
var o = A(this, {
|
|
1693
|
-
type: a ?
|
|
1693
|
+
type: a ? D : M,
|
|
1694
1694
|
object: this,
|
|
1695
1695
|
newValue: r,
|
|
1696
1696
|
name: n
|
|
@@ -1720,7 +1720,7 @@ var Mn = /* @__PURE__ */ function() {
|
|
|
1720
1720
|
oldValue: this.data_.get(n).value_,
|
|
1721
1721
|
name: n
|
|
1722
1722
|
} : null;
|
|
1723
|
-
return
|
|
1723
|
+
return x(function() {
|
|
1724
1724
|
var l;
|
|
1725
1725
|
r.keysAtom_.reportChanged(), (l = r.hasMap_.get(n)) == null || l.setNewValue_(!1);
|
|
1726
1726
|
var c = r.data_.get(n);
|
|
@@ -1734,7 +1734,7 @@ var Mn = /* @__PURE__ */ function() {
|
|
|
1734
1734
|
var o = ce(), s = w(this), u = s || o ? {
|
|
1735
1735
|
observableKind: "map",
|
|
1736
1736
|
debugObjectName: this.name_,
|
|
1737
|
-
type:
|
|
1737
|
+
type: D,
|
|
1738
1738
|
object: this,
|
|
1739
1739
|
oldValue: a.value_,
|
|
1740
1740
|
name: n,
|
|
@@ -1744,7 +1744,7 @@ var Mn = /* @__PURE__ */ function() {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
}, t.addValue_ = function(n, r) {
|
|
1746
1746
|
var a = this;
|
|
1747
|
-
this.keysAtom_,
|
|
1747
|
+
this.keysAtom_, x(function() {
|
|
1748
1748
|
var l, c = new ne(r, a.enhancer_, "ObservableMap.key", !1);
|
|
1749
1749
|
a.data_.set(n, c), r = c.value_, (l = a.hasMap_.get(n)) == null || l.setNewValue_(!0), a.keysAtom_.reportChanged();
|
|
1750
1750
|
});
|
|
@@ -1794,8 +1794,8 @@ var Mn = /* @__PURE__ */ function() {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
}, t.merge = function(n) {
|
|
1796
1796
|
var r = this;
|
|
1797
|
-
return X(n) && (n = new Map(n)),
|
|
1798
|
-
|
|
1797
|
+
return X(n) && (n = new Map(n)), x(function() {
|
|
1798
|
+
R(n) ? ci(n).forEach(function(a) {
|
|
1799
1799
|
return r.set(a, n[a]);
|
|
1800
1800
|
}) : Array.isArray(n) ? n.forEach(function(a) {
|
|
1801
1801
|
var o = a[0], s = a[1];
|
|
@@ -1806,7 +1806,7 @@ var Mn = /* @__PURE__ */ function() {
|
|
|
1806
1806
|
}), this;
|
|
1807
1807
|
}, t.clear = function() {
|
|
1808
1808
|
var n = this;
|
|
1809
|
-
|
|
1809
|
+
x(function() {
|
|
1810
1810
|
gn(function() {
|
|
1811
1811
|
for (var r = Z(n.keys()), a; !(a = r()).done; ) {
|
|
1812
1812
|
var o = a.value;
|
|
@@ -1816,7 +1816,7 @@ var Mn = /* @__PURE__ */ function() {
|
|
|
1816
1816
|
});
|
|
1817
1817
|
}, t.replace = function(n) {
|
|
1818
1818
|
var r = this;
|
|
1819
|
-
return
|
|
1819
|
+
return x(function() {
|
|
1820
1820
|
for (var a = xr(n), o = /* @__PURE__ */ new Map(), s = !1, u = Z(r.data_.keys()), l; !(l = u()).done; ) {
|
|
1821
1821
|
var c = l.value;
|
|
1822
1822
|
if (!a.has(c)) {
|
|
@@ -1829,7 +1829,7 @@ var Mn = /* @__PURE__ */ function() {
|
|
|
1829
1829
|
}
|
|
1830
1830
|
}
|
|
1831
1831
|
}
|
|
1832
|
-
for (var
|
|
1832
|
+
for (var j = Z(a.entries()), J; !(J = j()).done; ) {
|
|
1833
1833
|
var C = J.value, T = C[0], Fe = C[1], Ze = r.data_.has(T);
|
|
1834
1834
|
if (r.set(T, Fe), r.data_.has(T)) {
|
|
1835
1835
|
var ue = r.data_.get(T);
|
|
@@ -1840,12 +1840,12 @@ var Mn = /* @__PURE__ */ function() {
|
|
|
1840
1840
|
if (r.data_.size !== o.size)
|
|
1841
1841
|
r.keysAtom_.reportChanged();
|
|
1842
1842
|
else
|
|
1843
|
-
for (var y = r.data_.keys(),
|
|
1844
|
-
if (
|
|
1843
|
+
for (var y = r.data_.keys(), B = o.keys(), z = y.next(), Ot = B.next(); !z.done; ) {
|
|
1844
|
+
if (z.value !== Ot.value) {
|
|
1845
1845
|
r.keysAtom_.reportChanged();
|
|
1846
1846
|
break;
|
|
1847
1847
|
}
|
|
1848
|
-
|
|
1848
|
+
z = y.next(), Ot = B.next();
|
|
1849
1849
|
}
|
|
1850
1850
|
r.data_ = o;
|
|
1851
1851
|
}), this;
|
|
@@ -1874,7 +1874,7 @@ function xr(e) {
|
|
|
1874
1874
|
return e;
|
|
1875
1875
|
if (Array.isArray(e))
|
|
1876
1876
|
return new Map(e);
|
|
1877
|
-
if (
|
|
1877
|
+
if (R(e)) {
|
|
1878
1878
|
var t = /* @__PURE__ */ new Map();
|
|
1879
1879
|
for (var i in e)
|
|
1880
1880
|
t.set(i, e[i]);
|
|
@@ -1885,7 +1885,7 @@ function xr(e) {
|
|
|
1885
1885
|
var Un, Gn, Vr = {};
|
|
1886
1886
|
Un = Symbol.iterator;
|
|
1887
1887
|
Gn = Symbol.toStringTag;
|
|
1888
|
-
var
|
|
1888
|
+
var $n = /* @__PURE__ */ function() {
|
|
1889
1889
|
function e(i, n, r) {
|
|
1890
1890
|
n === void 0 && (n = ie), r === void 0 && (r = "ObservableSet"), this.name_ = void 0, this[f] = Vr, this.data_ = /* @__PURE__ */ new Set(), this.atom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.dehancer = void 0, this.enhancer_ = void 0, this.name_ = r, E(Set) || m(22), this.atom_ = on(this.name_), this.enhancer_ = function(a, o) {
|
|
1891
1891
|
return n(a, o, r);
|
|
@@ -1896,7 +1896,7 @@ var zn = /* @__PURE__ */ function() {
|
|
|
1896
1896
|
return this.dehancer !== void 0 ? this.dehancer(n) : n;
|
|
1897
1897
|
}, t.clear = function() {
|
|
1898
1898
|
var n = this;
|
|
1899
|
-
|
|
1899
|
+
x(function() {
|
|
1900
1900
|
gn(function() {
|
|
1901
1901
|
for (var r = Z(n.data_.values()), a; !(a = r()).done; ) {
|
|
1902
1902
|
var o = a.value;
|
|
@@ -1921,7 +1921,7 @@ var zn = /* @__PURE__ */ function() {
|
|
|
1921
1921
|
return this;
|
|
1922
1922
|
}
|
|
1923
1923
|
if (!this.has(n)) {
|
|
1924
|
-
|
|
1924
|
+
x(function() {
|
|
1925
1925
|
r.data_.add(r.enhancer_(n, void 0)), r.atom_.reportChanged();
|
|
1926
1926
|
});
|
|
1927
1927
|
var o = !1, s = w(this), u = s || o ? {
|
|
@@ -1953,7 +1953,7 @@ var zn = /* @__PURE__ */ function() {
|
|
|
1953
1953
|
object: this,
|
|
1954
1954
|
oldValue: n
|
|
1955
1955
|
} : null;
|
|
1956
|
-
return
|
|
1956
|
+
return x(function() {
|
|
1957
1957
|
r.atom_.reportChanged(), r.data_.delete(n);
|
|
1958
1958
|
}), s && F(this, u), !0;
|
|
1959
1959
|
}
|
|
@@ -1990,7 +1990,7 @@ var zn = /* @__PURE__ */ function() {
|
|
|
1990
1990
|
});
|
|
1991
1991
|
}, t.replace = function(n) {
|
|
1992
1992
|
var r = this;
|
|
1993
|
-
return se(n) && (n = new Set(n)),
|
|
1993
|
+
return se(n) && (n = new Set(n)), x(function() {
|
|
1994
1994
|
Array.isArray(n) ? (r.clear(), n.forEach(function(a) {
|
|
1995
1995
|
return r.add(a);
|
|
1996
1996
|
})) : be(n) ? (r.clear(), n.forEach(function(a) {
|
|
@@ -2018,9 +2018,9 @@ var zn = /* @__PURE__ */ function() {
|
|
|
2018
2018
|
return "Set";
|
|
2019
2019
|
}
|
|
2020
2020
|
}]), e;
|
|
2021
|
-
}(), se = /* @__PURE__ */ H("ObservableSet",
|
|
2021
|
+
}(), se = /* @__PURE__ */ H("ObservableSet", $n), Lt = /* @__PURE__ */ Object.create(null), Mt = "remove", zn = /* @__PURE__ */ function() {
|
|
2022
2022
|
function e(i, n, r, a) {
|
|
2023
|
-
n === void 0 && (n = /* @__PURE__ */ new Map()), a === void 0 && (a = Vi), 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_ = i, this.values_ = n, this.name_ = r, this.defaultAnnotation_ = a, this.keysAtom_ = new ye("ObservableObject.keys"), this.isPlainObject_ =
|
|
2023
|
+
n === void 0 && (n = /* @__PURE__ */ new Map()), a === void 0 && (a = Vi), 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_ = i, this.values_ = n, this.name_ = r, this.defaultAnnotation_ = a, this.keysAtom_ = new ye("ObservableObject.keys"), this.isPlainObject_ = R(this.target_);
|
|
2024
2024
|
}
|
|
2025
2025
|
var t = e.prototype;
|
|
2026
2026
|
return t.getObservablePropValue_ = function(n) {
|
|
@@ -2031,7 +2031,7 @@ var zn = /* @__PURE__ */ function() {
|
|
|
2031
2031
|
return a.set(r), !0;
|
|
2032
2032
|
if (O(this)) {
|
|
2033
2033
|
var o = A(this, {
|
|
2034
|
-
type:
|
|
2034
|
+
type: D,
|
|
2035
2035
|
object: this.proxy_ || this.target_,
|
|
2036
2036
|
name: n,
|
|
2037
2037
|
newValue: r
|
|
@@ -2042,7 +2042,7 @@ var zn = /* @__PURE__ */ function() {
|
|
|
2042
2042
|
}
|
|
2043
2043
|
if (r = a.prepareNewValue_(r), r !== d.UNCHANGED) {
|
|
2044
2044
|
var s = w(this), u = !1, l = s || u ? {
|
|
2045
|
-
type:
|
|
2045
|
+
type: D,
|
|
2046
2046
|
observableKind: "object",
|
|
2047
2047
|
debugObjectName: this.name_,
|
|
2048
2048
|
object: this.proxy_ || this.target_,
|
|
@@ -2076,7 +2076,7 @@ var zn = /* @__PURE__ */ function() {
|
|
|
2076
2076
|
return;
|
|
2077
2077
|
m(1, r.annotationType_, this.name_ + "." + n.toString());
|
|
2078
2078
|
}
|
|
2079
|
-
for (var o = this.target_; o && o !==
|
|
2079
|
+
for (var o = this.target_; o && o !== ze; ) {
|
|
2080
2080
|
var s = Ve(o, n);
|
|
2081
2081
|
if (s) {
|
|
2082
2082
|
var u = r.make_(this, n, s, o);
|
|
@@ -2119,7 +2119,7 @@ var zn = /* @__PURE__ */ function() {
|
|
|
2119
2119
|
if (!Reflect.defineProperty(this.target_, n, r))
|
|
2120
2120
|
return !1;
|
|
2121
2121
|
} else
|
|
2122
|
-
|
|
2122
|
+
V(this.target_, n, r);
|
|
2123
2123
|
this.notifyPropertyAddition_(n, r.value);
|
|
2124
2124
|
} finally {
|
|
2125
2125
|
N();
|
|
@@ -2153,7 +2153,7 @@ var zn = /* @__PURE__ */ function() {
|
|
|
2153
2153
|
if (!Reflect.defineProperty(this.target_, n, c))
|
|
2154
2154
|
return !1;
|
|
2155
2155
|
} else
|
|
2156
|
-
|
|
2156
|
+
V(this.target_, n, c);
|
|
2157
2157
|
var h = new ne(r, a, "ObservableObject.key", !1);
|
|
2158
2158
|
this.values_.set(n, h), this.notifyPropertyAddition_(n, h.value_);
|
|
2159
2159
|
} finally {
|
|
@@ -2188,7 +2188,7 @@ var zn = /* @__PURE__ */ function() {
|
|
|
2188
2188
|
if (!Reflect.defineProperty(this.target_, n, l))
|
|
2189
2189
|
return !1;
|
|
2190
2190
|
} else
|
|
2191
|
-
|
|
2191
|
+
V(this.target_, n, l);
|
|
2192
2192
|
this.values_.set(n, new me(r)), this.notifyPropertyAddition_(n, void 0);
|
|
2193
2193
|
} finally {
|
|
2194
2194
|
N();
|
|
@@ -2220,7 +2220,7 @@ var zn = /* @__PURE__ */ function() {
|
|
|
2220
2220
|
} else
|
|
2221
2221
|
delete this.target_[n];
|
|
2222
2222
|
if (c && (this.values_.delete(n), c instanceof ne && (h = c.value_), An(c)), this.keysAtom_.reportChanged(), (o = this.pendingKeys_) == null || (s = o.get(n)) == null || s.set(n in this.target_), u || l) {
|
|
2223
|
-
var
|
|
2223
|
+
var j = {
|
|
2224
2224
|
type: Mt,
|
|
2225
2225
|
observableKind: "object",
|
|
2226
2226
|
object: this.proxy_ || this.target_,
|
|
@@ -2228,7 +2228,7 @@ var zn = /* @__PURE__ */ function() {
|
|
|
2228
2228
|
oldValue: h,
|
|
2229
2229
|
name: n
|
|
2230
2230
|
};
|
|
2231
|
-
u && F(this,
|
|
2231
|
+
u && F(this, j);
|
|
2232
2232
|
}
|
|
2233
2233
|
} finally {
|
|
2234
2234
|
N();
|
|
@@ -2262,10 +2262,10 @@ function Qe(e, t) {
|
|
|
2262
2262
|
var i;
|
|
2263
2263
|
if (U(e, f))
|
|
2264
2264
|
return e;
|
|
2265
|
-
var n = (i = t == null ? void 0 : t.name) != null ? i : "ObservableObject", r = new
|
|
2265
|
+
var n = (i = t == null ? void 0 : t.name) != null ? i : "ObservableObject", r = new zn(e, /* @__PURE__ */ new Map(), String(n), Ki(t));
|
|
2266
2266
|
return qe(e, f, r), e;
|
|
2267
2267
|
}
|
|
2268
|
-
var Rr = /* @__PURE__ */ H("ObservableObjectAdministration",
|
|
2268
|
+
var Rr = /* @__PURE__ */ H("ObservableObjectAdministration", zn);
|
|
2269
2269
|
function Ut(e) {
|
|
2270
2270
|
return Lt[e] || (Lt[e] = {
|
|
2271
2271
|
get: function() {
|
|
@@ -2358,7 +2358,7 @@ function Br(e) {
|
|
|
2358
2358
|
};
|
|
2359
2359
|
}
|
|
2360
2360
|
function Lr(e) {
|
|
2361
|
-
|
|
2361
|
+
V(St.prototype, "" + e, Br(e));
|
|
2362
2362
|
}
|
|
2363
2363
|
function qn(e) {
|
|
2364
2364
|
if (e > rt) {
|
|
@@ -2415,7 +2415,7 @@ function vt(e, t) {
|
|
|
2415
2415
|
}
|
|
2416
2416
|
return i.name_;
|
|
2417
2417
|
}
|
|
2418
|
-
var
|
|
2418
|
+
var $t = ze.toString;
|
|
2419
2419
|
function Nt(e, t, i) {
|
|
2420
2420
|
return i === void 0 && (i = -1), mt(e, t, i);
|
|
2421
2421
|
}
|
|
@@ -2429,8 +2429,8 @@ function mt(e, t, i, n, r) {
|
|
|
2429
2429
|
var a = typeof e;
|
|
2430
2430
|
if (a !== "function" && a !== "object" && typeof t != "object")
|
|
2431
2431
|
return !1;
|
|
2432
|
-
var o =
|
|
2433
|
-
if (o !==
|
|
2432
|
+
var o = $t.call(e);
|
|
2433
|
+
if (o !== $t.call(t))
|
|
2434
2434
|
return !1;
|
|
2435
2435
|
switch (o) {
|
|
2436
2436
|
case "[object RegExp]":
|
|
@@ -2448,7 +2448,7 @@ function mt(e, t, i, n, r) {
|
|
|
2448
2448
|
i >= 0 && i++;
|
|
2449
2449
|
break;
|
|
2450
2450
|
}
|
|
2451
|
-
e =
|
|
2451
|
+
e = zt(e), t = zt(t);
|
|
2452
2452
|
var s = o === "[object Array]";
|
|
2453
2453
|
if (!s) {
|
|
2454
2454
|
if (typeof e != "object" || typeof t != "object")
|
|
@@ -2479,7 +2479,7 @@ function mt(e, t, i, n, r) {
|
|
|
2479
2479
|
}
|
|
2480
2480
|
return n.pop(), r.pop(), !0;
|
|
2481
2481
|
}
|
|
2482
|
-
function
|
|
2482
|
+
function zt(e) {
|
|
2483
2483
|
return Ye(e) ? e.slice() : ae(e) || X(e) || be(e) || se(e) ? Array.from(e.entries()) : e;
|
|
2484
2484
|
}
|
|
2485
2485
|
function ke(e) {
|
|
@@ -2606,14 +2606,14 @@ class Hn {
|
|
|
2606
2606
|
}
|
|
2607
2607
|
}
|
|
2608
2608
|
var Pe, Gr = new Uint8Array(16);
|
|
2609
|
-
function
|
|
2609
|
+
function $r() {
|
|
2610
2610
|
if (!Pe && (Pe = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !Pe))
|
|
2611
2611
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
2612
2612
|
return Pe(Gr);
|
|
2613
2613
|
}
|
|
2614
|
-
const
|
|
2614
|
+
const zr = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
2615
2615
|
function Kr(e) {
|
|
2616
|
-
return typeof e == "string" &&
|
|
2616
|
+
return typeof e == "string" && zr.test(e);
|
|
2617
2617
|
}
|
|
2618
2618
|
var k = [];
|
|
2619
2619
|
for (var at = 0; at < 256; ++at)
|
|
@@ -2626,7 +2626,7 @@ function qr(e) {
|
|
|
2626
2626
|
}
|
|
2627
2627
|
function Wr(e, t, i) {
|
|
2628
2628
|
e = e || {};
|
|
2629
|
-
var n = e.random || (e.rng ||
|
|
2629
|
+
var n = e.random || (e.rng || $r)();
|
|
2630
2630
|
if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, t) {
|
|
2631
2631
|
i = i || 0;
|
|
2632
2632
|
for (var r = 0; r < 16; ++r)
|
|
@@ -2709,33 +2709,18 @@ class Yr {
|
|
|
2709
2709
|
return !0;
|
|
2710
2710
|
}
|
|
2711
2711
|
}
|
|
2712
|
-
const Fa = (e) => new Jr(e), Ea = (e) => new Yr(e), Qr = ["account"],
|
|
2712
|
+
const Fa = (e) => new Jr(e), Ea = (e) => new Yr(e), Qr = ["account"], L = class {
|
|
2713
2713
|
constructor() {
|
|
2714
|
-
g(this, "_id", Xr());
|
|
2715
2714
|
g(this, "_config");
|
|
2715
|
+
g(this, "instanceId", Xr());
|
|
2716
2716
|
Er(this, {}, { name: "NizzaStore", autoBind: !0 });
|
|
2717
2717
|
}
|
|
2718
2718
|
static instance() {
|
|
2719
|
-
return
|
|
2720
|
-
"🚀 ~ file: NizzaStore.ts:20 ~ NizzaStore:",
|
|
2721
|
-
"No exist, created.",
|
|
2722
|
-
P._instance._id
|
|
2723
|
-
)), window != null && window.nizza ? (P._instance = window.nizza, console.log(
|
|
2724
|
-
"🚀 ~ file: NizzaStore.ts:25 ~ NizzaStore:",
|
|
2725
|
-
"Previos instance in window, reusing.",
|
|
2726
|
-
window.nizza._id
|
|
2727
|
-
)) : (P._instance.createGlobalObject(), console.log(
|
|
2728
|
-
"🚀 ~ file: NizzaStore.ts:34 ~ NizzaStore:",
|
|
2729
|
-
"No exist instance in window, created.",
|
|
2730
|
-
P._instance._id
|
|
2731
|
-
)), P._instance;
|
|
2719
|
+
return L._instance || (L._instance = new L()), window != null && window.nizza ? L._instance = window == null ? void 0 : window.nizza : window.nizza = L._instance, L._instance;
|
|
2732
2720
|
}
|
|
2733
2721
|
configure(t) {
|
|
2734
2722
|
this._config = t;
|
|
2735
2723
|
}
|
|
2736
|
-
createGlobalObject() {
|
|
2737
|
-
window.nizza = this;
|
|
2738
|
-
}
|
|
2739
2724
|
get config() {
|
|
2740
2725
|
return this.validateRequiredProps(), this._config;
|
|
2741
2726
|
}
|
|
@@ -2746,7 +2731,7 @@ const Fa = (e) => new Jr(e), Ea = (e) => new Yr(e), Qr = ["account"], P = class
|
|
|
2746
2731
|
});
|
|
2747
2732
|
}
|
|
2748
2733
|
};
|
|
2749
|
-
let xe =
|
|
2734
|
+
let xe = L;
|
|
2750
2735
|
g(xe, "_instance");
|
|
2751
2736
|
const Ca = xe.instance();
|
|
2752
2737
|
var Xn = /* @__PURE__ */ ((e) => (e.Add = "add", e.Remove = "remove", e))(Xn || {}), Jn = /* @__PURE__ */ ((e) => (e.Active = "active", e.Inactive = "inactive", e))(Jn || {});
|
|
@@ -2781,7 +2766,7 @@ export {
|
|
|
2781
2766
|
Ta as ApiGraphqlTypes,
|
|
2782
2767
|
ha as BaseMobxStore,
|
|
2783
2768
|
Hn as CustomStorage,
|
|
2784
|
-
|
|
2769
|
+
$e as DomainError,
|
|
2785
2770
|
Jr as Err,
|
|
2786
2771
|
oi as InvalidNizzaGlobalObjectError,
|
|
2787
2772
|
xe as NizzaStore,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { NizzaConfiguration, NizzaGlobalObjet } from '../types';
|
|
2
2
|
export declare class NizzaStore implements NizzaGlobalObjet {
|
|
3
3
|
private static _instance;
|
|
4
|
-
private _id;
|
|
5
4
|
private _config;
|
|
5
|
+
readonly instanceId: string;
|
|
6
6
|
private constructor();
|
|
7
7
|
static instance(): NizzaStore;
|
|
8
8
|
configure(config: NizzaConfiguration): void;
|
|
9
|
-
createGlobalObject(): void;
|
|
10
9
|
get config(): NizzaConfiguration;
|
|
11
10
|
private validateRequiredProps;
|
|
12
11
|
}
|
package/dist/package.json
CHANGED