@nizza/core 0.3.0-alpha.11 → 0.3.0-alpha.13
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 +107 -107
- package/dist/package.json +1 -1
- 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,V=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
|
|
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(),E(this)&&F(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(C(n))return ae(n.name||gr,n,e);if(C(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 C(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=C(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,T){var P=0;h=T;function Pe(y){_=void 0;var L;try{L=te(r+" - runid: "+l+" - yield "+P++,c.next).call(c,y)}catch($){return T($)}le(L)}function et(y){_=void 0;var L;try{L=te(r+" - runid: "+l+" - yield "+P++,c.throw).call(c,y)}catch($){return T($)}le(L)}function le(y){if(C(y==null?void 0:y.then)){y.then(le,T);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),T=Promise.resolve(J.value);T.then(Q,Q),Lt(T),h(new Ln)}catch(P){h(P)}}),x};return a.isMobXFlow=!0,a},Bt);be.bound=D(Tr);function Lt(e){C(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 E(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 F(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=E(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&&F(this,u)},t.notifyArraySplice_=function(n,r,a){var o=!this.owned_&&fe(),s=E(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&&F(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,C(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=E(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&&F(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=E(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&&F(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=E(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:M,object:this,name:n,newValue:r}:null;s&&F(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 T=J.value,P=T[0],Pe=T[1],et=r.data_.has(P);if(r.set(P,Pe),r.data_.has(P)){var le=r.data_.get(P);o.set(P,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,C(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=E(this),u=s||o?{observableKind:"set",debugObjectName:this.name_,type:M,object:this,newValue:n}:null;s&&F(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=E(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&&F(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=E(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&&F(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=E(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&&F(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=E(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&&F(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(C(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&&!(C(u)&&u instanceof u&&C(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"],w=class{constructor(){g(this,"_id",Qn());g(this,"_config");Vr(this,{},{name:"NizzaStore",autoBind:!0})}static instance(){return w._instance||(w._instance=new w,console.log("🚀 ~ file: NizzaStore.ts:20 ~ NizzaStore:","No exist, created.",w._instance._id)),window!=null&&window.nizza&&window.nizza instanceof w?(w._instance=window.nizza,console.log("🚀 ~ file: NizzaStore.ts:25 ~ NizzaStore:","Previos instance in window, reusing.",window.nizza._id)):(w._instance.createGlobalObject(),console.log("🚀 ~ file: NizzaStore.ts:34 ~ NizzaStore:","No exist instance in window, created.",w._instance._id)),w._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=w;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,V=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 I(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){V(e,t,{enumerable:!1,writable:!0,configurable:!0,value:i})}function on(e,t,i){V(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 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;
|
package/dist/index.mjs
CHANGED
|
@@ -53,7 +53,7 @@ class _a {
|
|
|
53
53
|
return this._value;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
class
|
|
56
|
+
class ze 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 Ge extends Error {
|
|
|
64
64
|
}, this.value && { value: this.value });
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
class pa extends
|
|
67
|
+
class pa extends ze {
|
|
68
68
|
constructor(t) {
|
|
69
69
|
super(
|
|
70
70
|
"RESOURCE_NOT_FOUND_ERROR",
|
|
@@ -73,7 +73,7 @@ class pa extends Ge {
|
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
class ka extends
|
|
76
|
+
class ka extends ze {
|
|
77
77
|
constructor(t) {
|
|
78
78
|
var i;
|
|
79
79
|
super(
|
|
@@ -83,12 +83,12 @@ class ka extends Ge {
|
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
class ba extends
|
|
86
|
+
class ba extends ze {
|
|
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 ze {
|
|
92
92
|
constructor(t) {
|
|
93
93
|
super(
|
|
94
94
|
"INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
|
|
@@ -156,7 +156,7 @@ function Zt(e) {
|
|
|
156
156
|
}
|
|
157
157
|
var Q = function() {
|
|
158
158
|
};
|
|
159
|
-
function
|
|
159
|
+
function E(e) {
|
|
160
160
|
return typeof e == "function";
|
|
161
161
|
}
|
|
162
162
|
function q(e) {
|
|
@@ -610,9 +610,9 @@ Object.freeze(cn);
|
|
|
610
610
|
function Ce(e) {
|
|
611
611
|
return e || cn;
|
|
612
612
|
}
|
|
613
|
-
var fn = /* @__PURE__ */ He(Bi),
|
|
613
|
+
var fn = /* @__PURE__ */ He(Bi), Gi = /* @__PURE__ */ He(Li, {
|
|
614
614
|
enhancer: We
|
|
615
|
-
}),
|
|
615
|
+
}), zi = /* @__PURE__ */ He(Mi, {
|
|
616
616
|
enhancer: ki
|
|
617
617
|
}), $i = /* @__PURE__ */ He(Ui, {
|
|
618
618
|
enhancer: bi
|
|
@@ -651,13 +651,13 @@ var Wi = {
|
|
|
651
651
|
},
|
|
652
652
|
set: function(t, i) {
|
|
653
653
|
var n = Ce(i);
|
|
654
|
-
return new
|
|
654
|
+
return new zn(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__ */ D(
|
|
660
|
-
shallow: /* @__PURE__ */ D(
|
|
659
|
+
ref: /* @__PURE__ */ D(Gi),
|
|
660
|
+
shallow: /* @__PURE__ */ D(zi),
|
|
661
661
|
deep: vn,
|
|
662
662
|
struct: /* @__PURE__ */ D($i)
|
|
663
663
|
}, b = /* @__PURE__ */ ui(mn, Wi), hn = "computed", Hi = "computed.struct", _n = /* @__PURE__ */ kt(hn), Xi = /* @__PURE__ */ kt(Hi, {
|
|
@@ -714,7 +714,7 @@ function Zi(e, t, i, n) {
|
|
|
714
714
|
return Ie = c.actionId_, c;
|
|
715
715
|
}
|
|
716
716
|
function er(e) {
|
|
717
|
-
Ie !== e.actionId_ && m(30), Ie = e.parentActionId_, e.error_ !== void 0 && (d.suppressReactionErrors = !0), Oe(e.prevAllowStateChanges_), de(e.prevAllowStateReads_), N(), e.runAsAction_ &&
|
|
717
|
+
Ie !== e.actionId_ && m(30), Ie = e.parentActionId_, e.error_ !== void 0 && (d.suppressReactionErrors = !0), Oe(e.prevAllowStateChanges_), de(e.prevAllowStateReads_), N(), e.runAsAction_ && G(e.prevDerivation_), d.suppressReactionErrors = !1;
|
|
718
718
|
}
|
|
719
719
|
function tr(e, t) {
|
|
720
720
|
var i = Ne(e);
|
|
@@ -758,7 +758,7 @@ var ne = /* @__PURE__ */ function(e) {
|
|
|
758
758
|
return r = this.enhancer(r, this.value_, this.name_), this.equals(this.value_, r) ? d.UNCHANGED : r;
|
|
759
759
|
}, i.setNewValue_ = function(r) {
|
|
760
760
|
var a = this.value_;
|
|
761
|
-
this.value_ = r, this.reportChanged(),
|
|
761
|
+
this.value_ = r, this.reportChanged(), w(this) && F(this, {
|
|
762
762
|
type: j,
|
|
763
763
|
object: this,
|
|
764
764
|
newValue: r,
|
|
@@ -862,7 +862,7 @@ var me = /* @__PURE__ */ function() {
|
|
|
862
862
|
object: a,
|
|
863
863
|
newValue: u,
|
|
864
864
|
oldValue: s
|
|
865
|
-
}),
|
|
865
|
+
}), G(l);
|
|
866
866
|
}
|
|
867
867
|
o = !1, s = u;
|
|
868
868
|
});
|
|
@@ -905,13 +905,13 @@ function dt(e) {
|
|
|
905
905
|
try {
|
|
906
906
|
o.get();
|
|
907
907
|
} catch (s) {
|
|
908
|
-
return
|
|
908
|
+
return G(i), de(t), !0;
|
|
909
909
|
}
|
|
910
910
|
if (e.dependenciesState_ === v.STALE_)
|
|
911
|
-
return
|
|
911
|
+
return G(i), de(t), !0;
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
|
-
return yn(e),
|
|
914
|
+
return yn(e), G(i), de(t), !1;
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
917
|
}
|
|
@@ -958,14 +958,14 @@ function gn(e) {
|
|
|
958
958
|
try {
|
|
959
959
|
return e();
|
|
960
960
|
} finally {
|
|
961
|
-
|
|
961
|
+
G(t);
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
964
|
function oe() {
|
|
965
965
|
var e = d.trackingDerivation;
|
|
966
966
|
return d.trackingDerivation = null, e;
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function G(e) {
|
|
969
969
|
d.trackingDerivation = e;
|
|
970
970
|
}
|
|
971
971
|
function bt(e) {
|
|
@@ -1119,9 +1119,9 @@ var Fn = "action", dr = "action.bound", En = "autoAction", cr = "autoAction.boun
|
|
|
1119
1119
|
});
|
|
1120
1120
|
function Pn(e) {
|
|
1121
1121
|
var t = function(n, r) {
|
|
1122
|
-
if (
|
|
1122
|
+
if (E(n))
|
|
1123
1123
|
return re(n.name || fr, n, e);
|
|
1124
|
-
if (
|
|
1124
|
+
if (E(r))
|
|
1125
1125
|
return re(n, r, e);
|
|
1126
1126
|
if (q(r))
|
|
1127
1127
|
return ge(n, r, e ? Tn : Cn);
|
|
@@ -1140,7 +1140,7 @@ Object.assign(he, Tn);
|
|
|
1140
1140
|
te.bound = /* @__PURE__ */ D(vr);
|
|
1141
1141
|
he.bound = /* @__PURE__ */ D(mr);
|
|
1142
1142
|
function gt(e) {
|
|
1143
|
-
return
|
|
1143
|
+
return E(e) && e.isMobxAction === !0;
|
|
1144
1144
|
}
|
|
1145
1145
|
function hr(e, t) {
|
|
1146
1146
|
var i, n;
|
|
@@ -1179,7 +1179,7 @@ function Dn(e, t, i) {
|
|
|
1179
1179
|
return jn(br, e, t, i);
|
|
1180
1180
|
}
|
|
1181
1181
|
function jn(e, t, i, n) {
|
|
1182
|
-
var r = typeof n == "function" ? W(t, i) : W(t), a =
|
|
1182
|
+
var r = typeof n == "function" ? W(t, i) : W(t), a = E(n) ? n : i, o = e + "L";
|
|
1183
1183
|
return r[o] ? r[o].add(a) : r[o] = /* @__PURE__ */ new Set([a]), function() {
|
|
1184
1184
|
var s = r[o];
|
|
1185
1185
|
s && (s.delete(a), s.size === 0 && delete r[o]);
|
|
@@ -1213,16 +1213,16 @@ 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, x = new Promise(function(J,
|
|
1217
|
-
var
|
|
1218
|
-
h =
|
|
1216
|
+
var s = this, u = arguments, l = ++yr, c = te(r + " - runid: " + l + " - init", n).apply(s, u), h, _ = void 0, x = new Promise(function(J, C) {
|
|
1217
|
+
var T = 0;
|
|
1218
|
+
h = C;
|
|
1219
1219
|
function Fe(y) {
|
|
1220
1220
|
_ = void 0;
|
|
1221
1221
|
var L;
|
|
1222
1222
|
try {
|
|
1223
|
-
L = te(r + " - runid: " + l + " - yield " +
|
|
1223
|
+
L = te(r + " - runid: " + l + " - yield " + T++, c.next).call(c, y);
|
|
1224
1224
|
} catch ($) {
|
|
1225
|
-
return
|
|
1225
|
+
return C($);
|
|
1226
1226
|
}
|
|
1227
1227
|
ue(L);
|
|
1228
1228
|
}
|
|
@@ -1230,15 +1230,15 @@ var Rt = /* @__PURE__ */ un("flow"), Sr = /* @__PURE__ */ un("flow.bound", {
|
|
|
1230
1230
|
_ = void 0;
|
|
1231
1231
|
var L;
|
|
1232
1232
|
try {
|
|
1233
|
-
L = te(r + " - runid: " + l + " - yield " +
|
|
1233
|
+
L = te(r + " - runid: " + l + " - yield " + T++, c.throw).call(c, y);
|
|
1234
1234
|
} catch ($) {
|
|
1235
|
-
return
|
|
1235
|
+
return C($);
|
|
1236
1236
|
}
|
|
1237
1237
|
ue(L);
|
|
1238
1238
|
}
|
|
1239
1239
|
function ue(y) {
|
|
1240
|
-
if (
|
|
1241
|
-
y.then(ue,
|
|
1240
|
+
if (E(y == null ? void 0 : y.then)) {
|
|
1241
|
+
y.then(ue, C);
|
|
1242
1242
|
return;
|
|
1243
1243
|
}
|
|
1244
1244
|
return y.done ? J(y.value) : (_ = Promise.resolve(y.value), _.then(Fe, Ze));
|
|
@@ -1248,10 +1248,10 @@ var Rt = /* @__PURE__ */ un("flow"), Sr = /* @__PURE__ */ un("flow.bound", {
|
|
|
1248
1248
|
return x.cancel = te(r + " - runid: " + l + " - cancel", function() {
|
|
1249
1249
|
try {
|
|
1250
1250
|
_ && It(_);
|
|
1251
|
-
var J = c.return(void 0),
|
|
1252
|
-
|
|
1253
|
-
} catch (
|
|
1254
|
-
h(
|
|
1251
|
+
var J = c.return(void 0), C = Promise.resolve(J.value);
|
|
1252
|
+
C.then(Q, Q), It(C), h(new Vn());
|
|
1253
|
+
} catch (T) {
|
|
1254
|
+
h(T);
|
|
1255
1255
|
}
|
|
1256
1256
|
}), x;
|
|
1257
1257
|
};
|
|
@@ -1259,7 +1259,7 @@ var Rt = /* @__PURE__ */ un("flow"), Sr = /* @__PURE__ */ un("flow.bound", {
|
|
|
1259
1259
|
}, Rt);
|
|
1260
1260
|
_e.bound = /* @__PURE__ */ D(Sr);
|
|
1261
1261
|
function It(e) {
|
|
1262
|
-
|
|
1262
|
+
E(e.cancel) && e.cancel();
|
|
1263
1263
|
}
|
|
1264
1264
|
function Me(e) {
|
|
1265
1265
|
return (e == null ? void 0 : e.isMobXFlow) === !0;
|
|
@@ -1348,10 +1348,10 @@ function A(e, t) {
|
|
|
1348
1348
|
;
|
|
1349
1349
|
return t;
|
|
1350
1350
|
} finally {
|
|
1351
|
-
|
|
1351
|
+
G(i);
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function w(e) {
|
|
1355
1355
|
return e.changeListeners_ !== void 0 && e.changeListeners_.length > 0;
|
|
1356
1356
|
}
|
|
1357
1357
|
function we(e, t) {
|
|
@@ -1361,13 +1361,13 @@ function we(e, t) {
|
|
|
1361
1361
|
n !== -1 && i.splice(n, 1);
|
|
1362
1362
|
});
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function F(e, t) {
|
|
1365
1365
|
var i = oe(), n = e.changeListeners_;
|
|
1366
1366
|
if (n) {
|
|
1367
1367
|
n = n.slice();
|
|
1368
1368
|
for (var r = 0, a = n.length; r < a; r++)
|
|
1369
1369
|
n[r](t);
|
|
1370
|
-
|
|
1370
|
+
G(i);
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
1373
1373
|
var it = /* @__PURE__ */ Symbol("mobx-keys");
|
|
@@ -1482,7 +1482,7 @@ var Bt = "splice", j = "update", Cr = 1e4, Tr = {
|
|
|
1482
1482
|
return s;
|
|
1483
1483
|
}
|
|
1484
1484
|
}, t.notifyArrayChildUpdate_ = function(n, r, a) {
|
|
1485
|
-
var o = !this.owned_ && ce(), s =
|
|
1485
|
+
var o = !this.owned_ && ce(), s = w(this), u = s || o ? {
|
|
1486
1486
|
observableKind: "array",
|
|
1487
1487
|
object: this.proxy_,
|
|
1488
1488
|
type: j,
|
|
@@ -1491,9 +1491,9 @@ var Bt = "splice", j = "update", Cr = 1e4, Tr = {
|
|
|
1491
1491
|
newValue: r,
|
|
1492
1492
|
oldValue: a
|
|
1493
1493
|
} : null;
|
|
1494
|
-
this.atom_.reportChanged(), s &&
|
|
1494
|
+
this.atom_.reportChanged(), s && F(this, u);
|
|
1495
1495
|
}, t.notifyArraySplice_ = function(n, r, a) {
|
|
1496
|
-
var o = !this.owned_ && ce(), s =
|
|
1496
|
+
var o = !this.owned_ && ce(), s = w(this), u = s || o ? {
|
|
1497
1497
|
observableKind: "array",
|
|
1498
1498
|
object: this.proxy_,
|
|
1499
1499
|
debugObjectName: this.atom_.name_,
|
|
@@ -1504,7 +1504,7 @@ var Bt = "splice", j = "update", Cr = 1e4, Tr = {
|
|
|
1504
1504
|
removedCount: a.length,
|
|
1505
1505
|
addedCount: r.length
|
|
1506
1506
|
} : null;
|
|
1507
|
-
this.atom_.reportChanged(), s &&
|
|
1507
|
+
this.atom_.reportChanged(), s && F(this, u);
|
|
1508
1508
|
}, t.get_ = function(n) {
|
|
1509
1509
|
if (n < this.values_.length)
|
|
1510
1510
|
return this.atom_.reportObserved(), this.dehanceValue_(this.values_[n]);
|
|
@@ -1616,14 +1616,14 @@ p("lastIndexOf", B);
|
|
|
1616
1616
|
p("slice", B);
|
|
1617
1617
|
p("toString", B);
|
|
1618
1618
|
p("toLocaleString", B);
|
|
1619
|
-
p("every",
|
|
1620
|
-
p("filter",
|
|
1621
|
-
p("find",
|
|
1622
|
-
p("findIndex",
|
|
1623
|
-
p("flatMap",
|
|
1624
|
-
p("forEach",
|
|
1625
|
-
p("map",
|
|
1626
|
-
p("some",
|
|
1619
|
+
p("every", z);
|
|
1620
|
+
p("filter", z);
|
|
1621
|
+
p("find", z);
|
|
1622
|
+
p("findIndex", z);
|
|
1623
|
+
p("flatMap", z);
|
|
1624
|
+
p("forEach", z);
|
|
1625
|
+
p("map", z);
|
|
1626
|
+
p("some", z);
|
|
1627
1627
|
p("reduce", In);
|
|
1628
1628
|
p("reduceRight", In);
|
|
1629
1629
|
function p(e, t) {
|
|
@@ -1637,7 +1637,7 @@ function B(e) {
|
|
|
1637
1637
|
return i[e].apply(i, arguments);
|
|
1638
1638
|
};
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1640
|
+
function z(e) {
|
|
1641
1641
|
return function(t, i) {
|
|
1642
1642
|
var n = this, r = this[f];
|
|
1643
1643
|
r.atom_.reportObserved();
|
|
@@ -1661,13 +1661,13 @@ var Dr = /* @__PURE__ */ H("ObservableArrayAdministration", yt);
|
|
|
1661
1661
|
function Ye(e) {
|
|
1662
1662
|
return Ke(e) && Dr(e[f]);
|
|
1663
1663
|
}
|
|
1664
|
-
var Bn, Ln, jr = {}, M = "add",
|
|
1664
|
+
var Bn, Ln, jr = {}, M = "add", Ge = "delete";
|
|
1665
1665
|
Bn = Symbol.iterator;
|
|
1666
1666
|
Ln = Symbol.toStringTag;
|
|
1667
1667
|
var Mn = /* @__PURE__ */ function() {
|
|
1668
1668
|
function e(i, n, r) {
|
|
1669
1669
|
var a = this;
|
|
1670
|
-
n === void 0 && (n = ie), r === void 0 && (r = "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[f] = jr, 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,
|
|
1670
|
+
n === void 0 && (n = ie), r === void 0 && (r = "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[f] = jr, 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, E(Map) || m(18), this.keysAtom_ = on("ObservableMap.keys()"), this.data_ = /* @__PURE__ */ new Map(), this.hasMap_ = /* @__PURE__ */ new Map(), tr(!0, function() {
|
|
1671
1671
|
a.merge(i);
|
|
1672
1672
|
});
|
|
1673
1673
|
}
|
|
@@ -1704,7 +1704,7 @@ var Mn = /* @__PURE__ */ function() {
|
|
|
1704
1704
|
var r = this;
|
|
1705
1705
|
if (this.keysAtom_, O(this)) {
|
|
1706
1706
|
var a = A(this, {
|
|
1707
|
-
type:
|
|
1707
|
+
type: Ge,
|
|
1708
1708
|
object: this,
|
|
1709
1709
|
name: n
|
|
1710
1710
|
});
|
|
@@ -1712,10 +1712,10 @@ var Mn = /* @__PURE__ */ function() {
|
|
|
1712
1712
|
return !1;
|
|
1713
1713
|
}
|
|
1714
1714
|
if (this.has_(n)) {
|
|
1715
|
-
var o = ce(), s =
|
|
1715
|
+
var o = ce(), s = w(this), u = s || o ? {
|
|
1716
1716
|
observableKind: "map",
|
|
1717
1717
|
debugObjectName: this.name_,
|
|
1718
|
-
type:
|
|
1718
|
+
type: Ge,
|
|
1719
1719
|
object: this,
|
|
1720
1720
|
oldValue: this.data_.get(n).value_,
|
|
1721
1721
|
name: n
|
|
@@ -1725,13 +1725,13 @@ var Mn = /* @__PURE__ */ function() {
|
|
|
1725
1725
|
r.keysAtom_.reportChanged(), (l = r.hasMap_.get(n)) == null || l.setNewValue_(!1);
|
|
1726
1726
|
var c = r.data_.get(n);
|
|
1727
1727
|
c.setNewValue_(void 0), r.data_.delete(n);
|
|
1728
|
-
}), s &&
|
|
1728
|
+
}), s && F(this, u), !0;
|
|
1729
1729
|
}
|
|
1730
1730
|
return !1;
|
|
1731
1731
|
}, t.updateValue_ = function(n, r) {
|
|
1732
1732
|
var a = this.data_.get(n);
|
|
1733
1733
|
if (r = a.prepareNewValue_(r), r !== d.UNCHANGED) {
|
|
1734
|
-
var o = ce(), s =
|
|
1734
|
+
var o = ce(), s = w(this), u = s || o ? {
|
|
1735
1735
|
observableKind: "map",
|
|
1736
1736
|
debugObjectName: this.name_,
|
|
1737
1737
|
type: j,
|
|
@@ -1740,7 +1740,7 @@ var Mn = /* @__PURE__ */ function() {
|
|
|
1740
1740
|
name: n,
|
|
1741
1741
|
newValue: r
|
|
1742
1742
|
} : null;
|
|
1743
|
-
a.setNewValue_(r), s &&
|
|
1743
|
+
a.setNewValue_(r), s && F(this, u);
|
|
1744
1744
|
}
|
|
1745
1745
|
}, t.addValue_ = function(n, r) {
|
|
1746
1746
|
var a = this;
|
|
@@ -1748,7 +1748,7 @@ var Mn = /* @__PURE__ */ 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
|
});
|
|
1751
|
-
var o = ce(), s =
|
|
1751
|
+
var o = ce(), s = w(this), u = s || o ? {
|
|
1752
1752
|
observableKind: "map",
|
|
1753
1753
|
debugObjectName: this.name_,
|
|
1754
1754
|
type: M,
|
|
@@ -1756,7 +1756,7 @@ var Mn = /* @__PURE__ */ function() {
|
|
|
1756
1756
|
name: n,
|
|
1757
1757
|
newValue: r
|
|
1758
1758
|
} : null;
|
|
1759
|
-
s &&
|
|
1759
|
+
s && F(this, u);
|
|
1760
1760
|
}, t.get = function(n) {
|
|
1761
1761
|
return this.has(n) ? this.dehanceValue_(this.data_.get(n).get()) : this.dehanceValue_(void 0);
|
|
1762
1762
|
}, t.dehanceValue_ = function(n) {
|
|
@@ -1830,10 +1830,10 @@ var Mn = /* @__PURE__ */ function() {
|
|
|
1830
1830
|
}
|
|
1831
1831
|
}
|
|
1832
1832
|
for (var x = Z(a.entries()), J; !(J = x()).done; ) {
|
|
1833
|
-
var
|
|
1834
|
-
if (r.set(
|
|
1835
|
-
var ue = r.data_.get(
|
|
1836
|
-
o.set(
|
|
1833
|
+
var C = J.value, T = C[0], Fe = C[1], Ze = r.data_.has(T);
|
|
1834
|
+
if (r.set(T, Fe), r.data_.has(T)) {
|
|
1835
|
+
var ue = r.data_.get(T);
|
|
1836
|
+
o.set(T, ue), Ze || (s = !0);
|
|
1837
1837
|
}
|
|
1838
1838
|
}
|
|
1839
1839
|
if (!s)
|
|
@@ -1882,12 +1882,12 @@ function xr(e) {
|
|
|
1882
1882
|
} else
|
|
1883
1883
|
return m(21, e);
|
|
1884
1884
|
}
|
|
1885
|
-
var Un,
|
|
1885
|
+
var Un, Gn, Vr = {};
|
|
1886
1886
|
Un = Symbol.iterator;
|
|
1887
|
-
|
|
1888
|
-
var
|
|
1887
|
+
Gn = Symbol.toStringTag;
|
|
1888
|
+
var zn = /* @__PURE__ */ function() {
|
|
1889
1889
|
function e(i, n, r) {
|
|
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,
|
|
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);
|
|
1892
1892
|
}, i && this.replace(i);
|
|
1893
1893
|
}
|
|
@@ -1924,21 +1924,21 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
1924
1924
|
V(function() {
|
|
1925
1925
|
r.data_.add(r.enhancer_(n, void 0)), r.atom_.reportChanged();
|
|
1926
1926
|
});
|
|
1927
|
-
var o = !1, s =
|
|
1927
|
+
var o = !1, s = w(this), u = s || o ? {
|
|
1928
1928
|
observableKind: "set",
|
|
1929
1929
|
debugObjectName: this.name_,
|
|
1930
1930
|
type: M,
|
|
1931
1931
|
object: this,
|
|
1932
1932
|
newValue: n
|
|
1933
1933
|
} : null;
|
|
1934
|
-
s &&
|
|
1934
|
+
s && F(this, u);
|
|
1935
1935
|
}
|
|
1936
1936
|
return this;
|
|
1937
1937
|
}, t.delete = function(n) {
|
|
1938
1938
|
var r = this;
|
|
1939
1939
|
if (O(this)) {
|
|
1940
1940
|
var a = A(this, {
|
|
1941
|
-
type:
|
|
1941
|
+
type: Ge,
|
|
1942
1942
|
object: this,
|
|
1943
1943
|
oldValue: n
|
|
1944
1944
|
});
|
|
@@ -1946,16 +1946,16 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
1946
1946
|
return !1;
|
|
1947
1947
|
}
|
|
1948
1948
|
if (this.has(n)) {
|
|
1949
|
-
var o = !1, s =
|
|
1949
|
+
var o = !1, s = w(this), u = s || o ? {
|
|
1950
1950
|
observableKind: "set",
|
|
1951
1951
|
debugObjectName: this.name_,
|
|
1952
|
-
type:
|
|
1952
|
+
type: Ge,
|
|
1953
1953
|
object: this,
|
|
1954
1954
|
oldValue: n
|
|
1955
1955
|
} : null;
|
|
1956
1956
|
return V(function() {
|
|
1957
1957
|
r.atom_.reportChanged(), r.data_.delete(n);
|
|
1958
|
-
}), s &&
|
|
1958
|
+
}), s && F(this, u), !0;
|
|
1959
1959
|
}
|
|
1960
1960
|
return !1;
|
|
1961
1961
|
}, t.has = function(n) {
|
|
@@ -2013,12 +2013,12 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2013
2013
|
return this.atom_.reportObserved(), this.data_.size;
|
|
2014
2014
|
}
|
|
2015
2015
|
}, {
|
|
2016
|
-
key:
|
|
2016
|
+
key: Gn,
|
|
2017
2017
|
get: function() {
|
|
2018
2018
|
return "Set";
|
|
2019
2019
|
}
|
|
2020
2020
|
}]), e;
|
|
2021
|
-
}(), se = /* @__PURE__ */ H("ObservableSet",
|
|
2021
|
+
}(), se = /* @__PURE__ */ H("ObservableSet", zn), Lt = /* @__PURE__ */ Object.create(null), Mt = "remove", $n = /* @__PURE__ */ function() {
|
|
2022
2022
|
function e(i, n, r, a) {
|
|
2023
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_ = I(this.target_);
|
|
2024
2024
|
}
|
|
@@ -2041,7 +2041,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2041
2041
|
r = o.newValue;
|
|
2042
2042
|
}
|
|
2043
2043
|
if (r = a.prepareNewValue_(r), r !== d.UNCHANGED) {
|
|
2044
|
-
var s =
|
|
2044
|
+
var s = w(this), u = !1, l = s || u ? {
|
|
2045
2045
|
type: j,
|
|
2046
2046
|
observableKind: "object",
|
|
2047
2047
|
debugObjectName: this.name_,
|
|
@@ -2050,7 +2050,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2050
2050
|
name: n,
|
|
2051
2051
|
newValue: r
|
|
2052
2052
|
} : null;
|
|
2053
|
-
a.setNewValue_(r), s &&
|
|
2053
|
+
a.setNewValue_(r), s && F(this, l);
|
|
2054
2054
|
}
|
|
2055
2055
|
return !0;
|
|
2056
2056
|
}, t.get_ = function(n) {
|
|
@@ -2087,13 +2087,13 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
o = Object.getPrototypeOf(o);
|
|
2089
2089
|
}
|
|
2090
|
-
|
|
2090
|
+
Gt(this, r, n);
|
|
2091
2091
|
}
|
|
2092
2092
|
}, t.extend_ = function(n, r, a, o) {
|
|
2093
2093
|
if (o === void 0 && (o = !1), a === !0 && (a = this.defaultAnnotation_), a === !1)
|
|
2094
2094
|
return this.defineProperty_(n, r, o);
|
|
2095
2095
|
var s = a.extend_(this, n, r, o);
|
|
2096
|
-
return s &&
|
|
2096
|
+
return s && Gt(this, a, n), s;
|
|
2097
2097
|
}, t.defineProperty_ = function(n, r, a) {
|
|
2098
2098
|
a === void 0 && (a = !1);
|
|
2099
2099
|
try {
|
|
@@ -2209,7 +2209,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2209
2209
|
try {
|
|
2210
2210
|
var o, s;
|
|
2211
2211
|
S();
|
|
2212
|
-
var u =
|
|
2212
|
+
var u = w(this), l = !1, c = this.values_.get(n), h = void 0;
|
|
2213
2213
|
if (!c && (u || l)) {
|
|
2214
2214
|
var _;
|
|
2215
2215
|
h = (_ = Ve(this.target_, n)) == null ? void 0 : _.value;
|
|
@@ -2228,7 +2228,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2228
2228
|
oldValue: h,
|
|
2229
2229
|
name: n
|
|
2230
2230
|
};
|
|
2231
|
-
u &&
|
|
2231
|
+
u && F(this, x);
|
|
2232
2232
|
}
|
|
2233
2233
|
} finally {
|
|
2234
2234
|
N();
|
|
@@ -2239,7 +2239,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2239
2239
|
}, t.intercept_ = function(n) {
|
|
2240
2240
|
return Ae(this, n);
|
|
2241
2241
|
}, t.notifyPropertyAddition_ = function(n, r) {
|
|
2242
|
-
var a, o, s =
|
|
2242
|
+
var a, o, s = w(this), u = !1;
|
|
2243
2243
|
if (s || u) {
|
|
2244
2244
|
var l = s || u ? {
|
|
2245
2245
|
type: M,
|
|
@@ -2249,7 +2249,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2249
2249
|
name: n,
|
|
2250
2250
|
newValue: r
|
|
2251
2251
|
} : null;
|
|
2252
|
-
s &&
|
|
2252
|
+
s && F(this, l);
|
|
2253
2253
|
}
|
|
2254
2254
|
(a = this.pendingKeys_) == null || (o = a.get(n)) == null || o.set(!0), this.keysAtom_.reportChanged();
|
|
2255
2255
|
}, t.ownKeys_ = function() {
|
|
@@ -2279,7 +2279,7 @@ function Ut(e) {
|
|
|
2279
2279
|
function pe(e) {
|
|
2280
2280
|
return Ke(e) ? Rr(e[f]) : !1;
|
|
2281
2281
|
}
|
|
2282
|
-
function
|
|
2282
|
+
function Gt(e, t, i) {
|
|
2283
2283
|
var n;
|
|
2284
2284
|
(n = e.target_[ee]) == null || delete n[i];
|
|
2285
2285
|
}
|
|
@@ -2391,7 +2391,7 @@ function W(e, t) {
|
|
|
2391
2391
|
}
|
|
2392
2392
|
if (pt(e) || Je(e) || Le(e))
|
|
2393
2393
|
return e;
|
|
2394
|
-
} else if (
|
|
2394
|
+
} else if (E(e) && Le(e[f]))
|
|
2395
2395
|
return e[f];
|
|
2396
2396
|
m(28);
|
|
2397
2397
|
}
|
|
@@ -2415,7 +2415,7 @@ function vt(e, t) {
|
|
|
2415
2415
|
}
|
|
2416
2416
|
return i.name_;
|
|
2417
2417
|
}
|
|
2418
|
-
var
|
|
2418
|
+
var zt = $e.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 = zt.call(e);
|
|
2433
|
+
if (o !== zt.call(t))
|
|
2434
2434
|
return !1;
|
|
2435
2435
|
switch (o) {
|
|
2436
2436
|
case "[object RegExp]":
|
|
@@ -2454,7 +2454,7 @@ function mt(e, t, i, n, r) {
|
|
|
2454
2454
|
if (typeof e != "object" || typeof t != "object")
|
|
2455
2455
|
return !1;
|
|
2456
2456
|
var u = e.constructor, l = t.constructor;
|
|
2457
|
-
if (u !== l && !(
|
|
2457
|
+
if (u !== l && !(E(u) && u instanceof u && E(l) && l instanceof l) && "constructor" in e && "constructor" in t)
|
|
2458
2458
|
return !1;
|
|
2459
2459
|
}
|
|
2460
2460
|
if (i === 0)
|
|
@@ -2605,11 +2605,11 @@ class Hn {
|
|
|
2605
2605
|
};
|
|
2606
2606
|
}
|
|
2607
2607
|
}
|
|
2608
|
-
var Pe,
|
|
2609
|
-
function
|
|
2608
|
+
var Pe, Gr = new Uint8Array(16);
|
|
2609
|
+
function zr() {
|
|
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
|
-
return Pe(
|
|
2612
|
+
return Pe(Gr);
|
|
2613
2613
|
}
|
|
2614
2614
|
const $r = /^(?:[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) {
|
|
@@ -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 || zr)();
|
|
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,26 +2709,26 @@ 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"], P = class {
|
|
2713
2713
|
constructor() {
|
|
2714
2714
|
g(this, "_id", Xr());
|
|
2715
2715
|
g(this, "_config");
|
|
2716
2716
|
Er(this, {}, { name: "NizzaStore", autoBind: !0 });
|
|
2717
2717
|
}
|
|
2718
2718
|
static instance() {
|
|
2719
|
-
return
|
|
2719
|
+
return P._instance || (P._instance = new P(), console.log(
|
|
2720
2720
|
"🚀 ~ file: NizzaStore.ts:20 ~ NizzaStore:",
|
|
2721
2721
|
"No exist, created.",
|
|
2722
|
-
|
|
2723
|
-
)), window != null && window.nizza
|
|
2722
|
+
P._instance._id
|
|
2723
|
+
)), window != null && window.nizza ? (P._instance = window.nizza, console.log(
|
|
2724
2724
|
"🚀 ~ file: NizzaStore.ts:25 ~ NizzaStore:",
|
|
2725
2725
|
"Previos instance in window, reusing.",
|
|
2726
2726
|
window.nizza._id
|
|
2727
|
-
)) : (
|
|
2727
|
+
)) : (P._instance.createGlobalObject(), console.log(
|
|
2728
2728
|
"🚀 ~ file: NizzaStore.ts:34 ~ NizzaStore:",
|
|
2729
2729
|
"No exist instance in window, created.",
|
|
2730
|
-
|
|
2731
|
-
)),
|
|
2730
|
+
P._instance._id
|
|
2731
|
+
)), P._instance;
|
|
2732
2732
|
}
|
|
2733
2733
|
configure(t) {
|
|
2734
2734
|
this._config = t;
|
|
@@ -2746,7 +2746,7 @@ const Fa = (e) => new Jr(e), Ea = (e) => new Yr(e), Qr = ["account"], w = class
|
|
|
2746
2746
|
});
|
|
2747
2747
|
}
|
|
2748
2748
|
};
|
|
2749
|
-
let xe =
|
|
2749
|
+
let xe = P;
|
|
2750
2750
|
g(xe, "_instance");
|
|
2751
2751
|
const Ca = xe.instance();
|
|
2752
2752
|
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 +2781,7 @@ export {
|
|
|
2781
2781
|
Ta as ApiGraphqlTypes,
|
|
2782
2782
|
ha as BaseMobxStore,
|
|
2783
2783
|
Hn as CustomStorage,
|
|
2784
|
-
|
|
2784
|
+
ze as DomainError,
|
|
2785
2785
|
Jr as Err,
|
|
2786
2786
|
oi as InvalidNizzaGlobalObjectError,
|
|
2787
2787
|
xe as NizzaStore,
|
package/dist/package.json
CHANGED