UNPKG

@infect/frontend

Version:
15 lines (13 loc) 690 kB
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=178)}([function(e,t,r){"use strict";e.exports=r(427)},function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return Ar})),r.d(t,"b",(function(){return lr})),r.d(t,"c",(function(){return qe})),r.d(t,"d",(function(){return Pe})),r.d(t,"e",(function(){return xe})),r.d(t,"f",(function(){return we})),r.d(t,"g",(function(){return Te})),r.d(t,"h",(function(){return Sr})),r.d(t,"i",(function(){return de})),r.d(t,"j",(function(){return Ae})),r.d(t,"k",(function(){return lt})),r.d(t,"l",(function(){return pt})),r.d(t,"m",(function(){return ce})),r.d(t,"n",(function(){return vt})),r.d(t,"o",(function(){return j})),r.d(t,"p",(function(){return Nt})),r.d(t,"q",(function(){return bt})),r.d(t,"r",(function(){return Et})),r.d(t,"s",(function(){return _r})),r.d(t,"t",(function(){return wt})),r.d(t,"u",(function(){return ut})),r.d(t,"v",(function(){return Ot})),r.d(t,"w",(function(){return At})),r.d(t,"x",(function(){return ar})),r.d(t,"y",(function(){return ur})),r.d(t,"z",(function(){return xr})),r.d(t,"A",(function(){return jt})),r.d(t,"B",(function(){return ne})),r.d(t,"C",(function(){return zt})),r.d(t,"D",(function(){return gt})),r.d(t,"E",(function(){return mt})),r.d(t,"F",(function(){return ct})),r.d(t,"G",(function(){return it})),r.d(t,"H",(function(){return Rt})),r.d(t,"I",(function(){return ye})),r.d(t,"J",(function(){return Ft})),r.d(t,"K",(function(){return It}));var i=[];Object.freeze(i);var o={};Object.freeze(o);var a={};function s(){return"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:a}function l(){return++Le.mobxGuid}function c(e){throw u(!1,e),"X"}function u(e,t){if(!e)throw new Error("[mobx] "+(t||"An invariant failed, however the error is obfuscated because this is an production build."))}function f(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var p=function(){};function d(e){return null!==e&&"object"==typeof e}function h(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function m(e,t,r){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function g(e,t,r){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function y(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(e){return d(e)&&!0===e[r]}}function v(e){return void 0!==s().Map&&e instanceof s().Map}function b(e){return e instanceof Set}function w(e){for(var t=[];;){var r=e.next();if(r.done)break;t.push(r.value)}return t}function x(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function _(e){return null===e?null:"object"==typeof e?""+e:e}function S(e,t){for(var r=e.next();!r.done;)t(r.value),r=e.next()}function E(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function k(e,t){g(e,E(),t)}function C(e){return e[E()]=A,e}function O(){return"function"==typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function A(){return this}var T=function(){function e(e){void 0===e&&(e="Atom@"+l()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=oe.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.reportObserved=function(){return Ge(this)},e.prototype.reportChanged=function(){Ue(),function(e){if(e.lowestObserverState===oe.STALE)return;e.lowestObserverState=oe.STALE;var t=e.observers,r=t.length;for(;r--;){var n=t[r];n.dependenciesState===oe.UP_TO_DATE&&(n.isTracing!==ae.NONE&&We(n,e),n.onBecomeStale()),n.dependenciesState=oe.STALE}}(this),He()},e.prototype.toString=function(){return this.name},e}(),P=y("Atom",T);function j(e,t,r){void 0===t&&(t=p),void 0===r&&(r=p);var n,i=new T(e);return yt("onBecomeObserved",i,t,n),gt(i,r),i}function F(e,t){return e===t}var N={identity:F,structural:function(e,t){return kr(e,t)},default:function(e,t){return function(e,t){return"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(e,t)||F(e,t)},shallow:function(e,t){return kr(e,t,1)}},z=function(e,t){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */function D(e,t){function r(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var R=function(){return(R=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function I(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function M(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(I(arguments[t]));return e}var L={},V={};function B(e,t){var r=t?L:V;return r[e]||(r[e]={configurable:!0,enumerable:t,get:function(){return $(this),this[e]},set:function(t){$(this),this[e]=t}})}function $(e){if(!0!==e.__mobxDidRunLazyInitializers){var t=e.__mobxDecorators;if(t)for(var r in m(e,"__mobxDidRunLazyInitializers",!0),t){var n=t[r];n.propertyCreator(e,n.prop,n.descriptor,n.decoratorTarget,n.decoratorArguments)}}}function U(e,t){return function(){var r,n=function(n,i,o,a){if(!0===a)return t(n,i,o,n,r),null;if(!Object.prototype.hasOwnProperty.call(n,"__mobxDecorators")){var s=n.__mobxDecorators;m(n,"__mobxDecorators",R({},s))}return n.__mobxDecorators[i]={prop:i,propertyCreator:t,descriptor:o,decoratorTarget:n,decoratorArguments:r},B(i,e)};return H(arguments)?(r=i,n.apply(null,arguments)):(r=Array.prototype.slice.call(arguments),n)}}function H(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]||4===e.length&&!0===e[3]}function G(e,t,r){return Pt(e)?e:Array.isArray(e)?ne.array(e,{name:r}):h(e)?ne.object(e,void 0,{name:r}):v(e)?ne.map(e,{name:r}):b(e)?ne.set(e,{name:r}):e}function W(e){return e}function q(e){u(e);var t=U(!0,(function(t,r,n,i,o){gr(t,r,n?n.initializer?n.initializer.call(t):n.value:void 0,e)})),r=(void 0!==n&&n.env,t);return r.enhancer=e,r}var J={deep:!0,name:void 0,defaultDecorator:void 0},K={deep:!1,name:void 0,defaultDecorator:void 0};function Q(e){return null==e?J:"string"==typeof e?{name:e,deep:!0}:e}function Y(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?W:G}Object.freeze(J),Object.freeze(K);var X=q(G),Z=q((function(e,t,r){return null==e||xr(e)||ar(e)||ur(e)||dr(e)?e:Array.isArray(e)?ne.array(e,{name:r,deep:!1}):h(e)?ne.object(e,void 0,{name:r,deep:!1}):v(e)?ne.map(e,{name:r,deep:!1}):b(e)?ne.set(e,{name:r,deep:!1}):c(!1)})),ee=q(W),te=q((function(e,t,r){return kr(e,t)?t:e}));var re={box:function(e,t){arguments.length>2&&ie("box");var r=Q(t);return new Ne(e,Y(r),r.name,!0,r.equals)},shallowBox:function(e,t){return arguments.length>2&&ie("shallowBox"),ne.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&ie("array");var r=Q(t);return new er(e,Y(r),r.name)},shallowArray:function(e,t){return arguments.length>2&&ie("shallowArray"),ne.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&ie("map");var r=Q(t);return new lr(e,Y(r),r.name)},shallowMap:function(e,t){return arguments.length>2&&ie("shallowMap"),ne.map(e,{name:t,deep:!1})},set:function(e,t){arguments.length>2&&ie("set");var r=Q(t);return new pr(e,Y(r),r.name)},object:function(e,t,r){"string"==typeof arguments[1]&&ie("object");var n=Q(r);return bt({},e,t,n)},shallowObject:function(e,t){return"string"==typeof arguments[1]&&ie("shallowObject"),ne.object(e,{},{name:t,deep:!1})},ref:ee,shallow:Z,deep:X,struct:te},ne=function(e,t,r){if("string"==typeof arguments[1])return X.apply(null,arguments);if(Pt(e))return e;var n=h(e)?ne.object(e,t,r):Array.isArray(e)?ne.array(e,t):v(e)?ne.map(e,t):b(e)?ne.set(e,t):e;if(n!==e)return n;c(!1)};function ie(e){c("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(re).forEach((function(e){return ne[e]=re[e]}));var oe,ae,se=U(!1,(function(e,t,r,n,i){var o=r.get,a=r.set,s=i[0]||{};!function(e,t,r){var n=mr(e);r.name=n.name+"."+t,r.context=e,n.values[t]=new ze(r),Object.defineProperty(e,t,function(e){return vr[e]||(vr[e]={configurable:Le.computedConfigurable,enumerable:!1,get:function(){return br(this).read(this,e)},set:function(t){br(this).write(this,e,t)}})}(t))}(e,t,R({get:o,set:a},s))})),le=se({equals:N.structural}),ce=function(e,t,r){if("string"==typeof t)return se.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return se.apply(null,arguments);var n="object"==typeof t?t:{};return n.get=e,n.set="function"==typeof t?t:n.set,n.name=n.name||e.name||"",new ze(n)};ce.struct=le,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"}(oe||(oe={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(ae||(ae={}));var ue=function(e){this.cause=e};function fe(e){return e instanceof ue}function pe(e){switch(e.dependenciesState){case oe.UP_TO_DATE:return!1;case oe.NOT_TRACKING:case oe.STALE:return!0;case oe.POSSIBLY_STALE:for(var t=we(!0),r=ve(),n=e.observing,i=n.length,o=0;o<i;o++){var a=n[o];if(De(a)){if(Le.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return be(r),xe(t),!0}if(e.dependenciesState===oe.STALE)return be(r),xe(t),!0}}return _e(e),be(r),xe(t),!1}}function de(){return null!==Le.trackingDerivation}function he(e){var t=e.observers.length>0;Le.computationDepth>0&&t&&c(!1),Le.allowStateChanges||!t&&"strict"!==Le.enforceActions||c(!1)}function me(e,t,r){var n=we(!0);_e(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Le.runId;var i,o=Le.trackingDerivation;if(Le.trackingDerivation=e,!0===Le.disableErrorBoundaries)i=t.call(r);else try{i=t.call(r)}catch(e){i=new ue(e)}return Le.trackingDerivation=o,function(e){for(var t=e.observing,r=e.observing=e.newObserving,n=oe.UP_TO_DATE,i=0,o=e.unboundDepsCount,a=0;a<o;a++){0===(s=r[a]).diffValue&&(s.diffValue=1,i!==a&&(r[i]=s),i++),s.dependenciesState>n&&(n=s.dependenciesState)}r.length=i,e.newObserving=null,o=t.length;for(;o--;){0===(s=t[o]).diffValue&&Be(s,e),s.diffValue=0}for(;i--;){var s;1===(s=r[i]).diffValue&&(s.diffValue=0,Ve(s,e))}n!==oe.UP_TO_DATE&&(e.dependenciesState=n,e.onBecomeStale())}(e),e.observing.length,xe(n),i}function ge(e){var t=e.observing;e.observing=[];for(var r=t.length;r--;)Be(t[r],e);e.dependenciesState=oe.NOT_TRACKING}function ye(e){var t=ve(),r=e();return be(t),r}function ve(){var e=Le.trackingDerivation;return Le.trackingDerivation=null,e}function be(e){Le.trackingDerivation=e}function we(e){var t=Le.allowStateReads;return Le.allowStateReads=e,t}function xe(e){Le.allowStateReads=e}function _e(e){if(e.dependenciesState!==oe.UP_TO_DATE){e.dependenciesState=oe.UP_TO_DATE;for(var t=e.observing,r=t.length;r--;)t[r].lowestObserverState=oe.UP_TO_DATE}}var Se=0,Ee=1,ke=Object.getOwnPropertyDescriptor((function(){}),"name");ke&&ke.configurable;function Ce(e,t){var r=function(){return Oe(e,t,this,arguments)};return r.isMobxAction=!0,r}function Oe(e,t,r,n){var i=Ae(e,r,n);try{return t.apply(r,n)}catch(e){throw i.error=e,e}finally{Te(i)}}function Ae(e,t,r){var n=Ze()&&!!e,i=0;if(n){i=Date.now();var o=r&&r.length||0,a=new Array(o);if(o>0)for(var s=0;s<o;s++)a[s]=r[s];tt({type:"action",name:e,object:t,arguments:a})}var l=ve();Ue();var c={prevDerivation:l,prevAllowStateChanges:je(!0),prevAllowStateReads:we(!0),notifySpy:n,startTime:i,actionId:Ee++,parentActionId:Se};return Se=c.actionId,c}function Te(e){Se!==e.actionId&&c("invalid action stack. did you forget to finish an action?"),Se=e.parentActionId,void 0!==e.error&&(Le.suppressReactionErrors=!0),Fe(e.prevAllowStateChanges),xe(e.prevAllowStateReads),He(),be(e.prevDerivation),e.notifySpy&&nt({time:Date.now()-e.startTime}),Le.suppressReactionErrors=!1}function Pe(e,t){var r,n=je(e);try{r=t()}finally{Fe(n)}return r}function je(e){var t=Le.allowStateChanges;return Le.allowStateChanges=e,t}function Fe(e){Le.allowStateChanges=e}var Ne=function(e){function t(t,r,n,i,o){void 0===n&&(n="ObservableValue@"+l()),void 0===i&&(i=!0),void 0===o&&(o=N.default);var a=e.call(this,n)||this;return a.enhancer=r,a.name=n,a.equals=o,a.hasUnreportedChange=!1,a.value=r(t,void 0,n),i&&Ze()&&et({type:"create",name:a.name,newValue:""+a.value}),a}return D(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){var t=this.value;if((e=this.prepareNewValue(e))!==Le.UNCHANGED){var r=Ze();r&&tt({type:"update",name:this.name,newValue:e,oldValue:t}),this.setNewValue(e),r&&nt()}},t.prototype.prepareNewValue=function(e){if(he(this),Vt(this)){var t=$t(this,{object:this,type:"update",newValue:e});if(!t)return Le.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Le.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),Ut(this)&&Gt(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return Bt(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),Ht(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return _(this.get())},t}(T);Ne.prototype[x()]=Ne.prototype.valueOf;y("ObservableValue",Ne);var ze=function(){function e(e){this.dependenciesState=oe.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=oe.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+l(),this.value=new ue(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=ae.NONE,u(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+l(),e.set&&(this.setter=Ce(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?N.structural:N.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==oe.UP_TO_DATE)return;e.lowestObserverState=oe.POSSIBLY_STALE;var t=e.observers,r=t.length;for(;r--;){var n=t[r];n.dependenciesState===oe.UP_TO_DATE&&(n.dependenciesState=oe.POSSIBLY_STALE,n.isTracing!==ae.NONE&&We(n,e),n.onBecomeStale())}}(this)},e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.get=function(){this.isComputing&&c("Cycle detected in computation "+this.name+": "+this.derivation),0!==Le.inBatch||0!==this.observers.length||this.keepAlive?(Ge(this),pe(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===oe.STALE)return;e.lowestObserverState=oe.STALE;var t=e.observers,r=t.length;for(;r--;){var n=t[r];n.dependenciesState===oe.POSSIBLY_STALE?n.dependenciesState=oe.STALE:n.dependenciesState===oe.UP_TO_DATE&&(e.lowestObserverState=oe.UP_TO_DATE)}}(this)):pe(this)&&(this.warnAboutUntrackedRead(),Ue(),this.value=this.computeValue(!1),He());var e=this.value;if(fe(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(fe(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){u(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else u(!1,!1)},e.prototype.trackAndCompute=function(){Ze()&&et({object:this.scope,type:"compute",name:this.name});var e=this.value,t=this.dependenciesState===oe.NOT_TRACKING,r=this.computeValue(!0),n=t||fe(e)||fe(r)||!this.equals(e,r);return n&&(this.value=r),n},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Le.computationDepth++,e)t=me(this,this.derivation,this.scope);else if(!0===Le.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new ue(e)}return Le.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(ge(this),this.value=void 0)},e.prototype.observe=function(e,t){var r=this,n=!0,i=void 0;return pt((function(){var o=r.get();if(!n||t){var a=ve();e({type:"update",object:r,newValue:o,oldValue:i}),be(a)}n=!1,i=o}))},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return _(this.get())},e}();ze.prototype[x()]=ze.prototype.valueOf;var De=y("ComputedValue",ze),Re=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},Ie=!0,Me=!1,Le=function(){var e=s();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Ie=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Re).version&&(Ie=!1),Ie?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Re):(setTimeout((function(){Me||c("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Re)}();function Ve(e,t){var r=e.observers.length;r&&(e.observersIndexes[t.__mapid]=r),e.observers[r]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Be(e,t){if(1===e.observers.length)e.observers.length=0,$e(e);else{var r=e.observers,n=e.observersIndexes,i=r.pop();if(i!==t){var o=n[t.__mapid]||0;o?n[i.__mapid]=o:delete n[i.__mapid],r[o]=i}delete n[t.__mapid]}}function $e(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Le.pendingUnobservations.push(e))}function Ue(){Le.inBatch++}function He(){if(0==--Le.inBatch){Ke();for(var e=Le.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,0===r.observers.length&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBecomeUnobserved()),r instanceof ze&&r.suspend())}Le.pendingUnobservations=[]}}function Ge(e){var t=Le.trackingDerivation;return null!==t?(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0):(0===e.observers.length&&Le.inBatch>0&&$e(e),!1)}function We(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===ae.BREAK){var r=[];!function e(t,r,n){if(r.length>=1e3)return void r.push("(and many more)");r.push(""+new Array(n).join("\t")+t.name),t.dependencies&&t.dependencies.forEach((function(t){return e(t,r,n+1)}))}(wt(e),r,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof ze?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+r.join("\n")+"\n*/\n ")()}}var qe=function(){function e(e,t,r,n){void 0===e&&(e="Reaction@"+l()),void 0===n&&(n=!1),this.name=e,this.onInvalidate=t,this.errorHandler=r,this.requiresObservable=n,this.observing=[],this.newObserving=[],this.dependenciesState=oe.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+l(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=ae.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Le.pendingReactions.push(this),Ke())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(Ue(),this._isScheduled=!1,pe(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&Ze()&&et({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}He()}},e.prototype.track=function(e){Ue();var t,r=Ze();r&&(t=Date.now(),tt({name:this.name,type:"reaction"})),this._isRunning=!0;var n=me(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&ge(this),fe(n)&&this.reportExceptionInDerivation(n.cause),r&&nt({time:Date.now()-t}),He()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Le.disableErrorBoundaries)throw e;var r="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Le.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(r,e),Ze()&&et({type:"error",name:this.name,message:r,error:""+e}),Le.globalReactionErrorHandlers.forEach((function(r){return r(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Ue(),ge(this),He()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=!1;"boolean"==typeof e[e.length-1]&&(r=e.pop());var n=Dt(e);if(!n)return c(!1);n.isTracing===ae.NONE&&console.log("[mobx.trace] '"+n.name+"' tracing enabled");n.isTracing=r?ae.BREAK:ae.LOG}(this,e)},e}();var Je=function(e){return e()};function Ke(){Le.inBatch>0||Le.isRunningReactions||Je(Qe)}function Qe(){Le.isRunningReactions=!0;for(var e=Le.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,i=r.length;n<i;n++)r[n].runReaction()}Le.isRunningReactions=!1}var Ye=y("Reaction",qe);function Xe(e){var t=Je;Je=function(r){return e((function(){return t(r)}))}}function Ze(){return!!Le.spyListeners.length}function et(e){if(Le.spyListeners.length)for(var t=Le.spyListeners,r=0,n=t.length;r<n;r++)t[r](e)}function tt(e){et(R(R({},e),{spyReportStart:!0}))}var rt={spyReportEnd:!0};function nt(e){et(e?R(R({},e),{spyReportEnd:!0}):rt)}function it(e){return Le.spyListeners.push(e),f((function(){Le.spyListeners=Le.spyListeners.filter((function(t){return t!==e}))}))}function ot(){c(!1)}function at(e){return function(t,r,n){if(n){if(n.value)return{value:Ce(e,n.value),enumerable:!1,configurable:!0,writable:!0};var i=n.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Ce(e,i.call(this))}}}return st(e).apply(this,arguments)}}function st(e){return function(t,r,n){Object.defineProperty(t,r,{configurable:!0,enumerable:!1,get:function(){},set:function(t){m(this,r,lt(e,t))}})}}var lt=function(e,t,r,n){return 1===arguments.length&&"function"==typeof e?Ce(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?Ce(e,t):1===arguments.length&&"string"==typeof e?at(e):!0!==n?at(t).apply(null,arguments):void(e[t]=Ce(e.name||t,r.value))};function ct(e,t){return Oe("string"==typeof e?e:e.name||"<unnamed action>","function"==typeof e?e:t,this,void 0)}function ut(e){return"function"==typeof e&&!0===e.isMobxAction}function ft(e,t,r){m(e,t,Ce(t,r.bind(e)))}function pt(e,t){void 0===t&&(t=o);var r,n=t&&t.name||e.name||"Autorun@"+l();if(!t.scheduler&&!t.delay)r=new qe(n,(function(){this.track(s)}),t.onError,t.requiresObservable);else{var i=ht(t),a=!1;r=new qe(n,(function(){a||(a=!0,i((function(){a=!1,r.isDisposed||r.track(s)})))}),t.onError,t.requiresObservable)}function s(){e(r)}return r.schedule(),r.getDisposer()}lt.bound=function(e,t,r,n){return!0===n?(ft(e,t,r.value),null):r?{configurable:!0,enumerable:!1,get:function(){return ft(this,t,r.value||r.initializer.call(this)),this[t]},set:ot}:{enumerable:!1,configurable:!0,set:function(e){ft(this,t,e)},get:function(){}}};var dt=function(e){return e()};function ht(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:dt}function mt(e,t,r){void 0===r&&(r=o),"boolean"==typeof r&&(r={fireImmediately:r});var n,i,a,s=r.name||"Reaction@"+l(),c=lt(s,r.onError?(n=r.onError,i=t,function(){try{return i.apply(this,arguments)}catch(e){n.call(this,e)}}):t),u=!r.scheduler&&!r.delay,f=ht(r),p=!0,d=!1,h=r.compareStructural?N.structural:r.equals||N.default,m=new qe(s,(function(){p||u?g():d||(d=!0,f(g))}),r.onError,r.requiresObservable);function g(){if(d=!1,!m.isDisposed){var t=!1;m.track((function(){var r=e(m);t=p||!h(a,r),a=r})),p&&r.fireImmediately&&c(a,m),p||!0!==t||c(a,m),p&&(p=!1)}}return m.schedule(),m.getDisposer()}function gt(e,t,r){return yt("onBecomeUnobserved",e,t,r)}function yt(e,t,r,n){var i="function"==typeof n?_r(t,r):_r(t),o="function"==typeof n?n:r,a=i[e];return"function"!=typeof a?c(!1):(i[e]=function(){a.call(this),o.call(this)},function(){i[e]=a})}function vt(e){var t=e.enforceActions,r=e.computedRequiresReaction,n=e.computedConfigurable,i=e.disableErrorBoundaries,o=e.arrayBuffer,a=e.reactionScheduler,l=e.reactionRequiresObservable,u=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((Le.pendingReactions.length||Le.inBatch||Le.isRunningReactions)&&c("isolateGlobalState should be called before MobX is running any reactions"),Me=!0,Ie&&(0==--s().__mobxInstanceCount&&(s().__mobxGlobals=void 0),Le=new Re)),void 0!==t){var f=void 0;switch(t){case!0:case"observed":f=!0;break;case!1:case"never":f=!1;break;case"strict":case"always":f="strict";break;default:c("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}Le.enforceActions=f,Le.allowStateChanges=!0!==f&&"strict"!==f}void 0!==r&&(Le.computedRequiresReaction=!!r),void 0!==l&&(Le.reactionRequiresObservable=!!l),void 0!==u&&(Le.observableRequiresReaction=!!u,Le.allowStateReads=!Le.observableRequiresReaction),void 0!==n&&(Le.computedConfigurable=!!n),void 0!==i&&(!0===i&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),Le.disableErrorBoundaries=!!i),"number"==typeof o&&ir(o),a&&Xe(a)}function bt(e,t,r,n){var i=(n=Q(n)).defaultDecorator||(!1===n.deep?ee:X);$(e),mr(e,n.name,i.enhancer),Ue();try{for(var o=Object.getOwnPropertyNames(t),a=0,s=o.length;a<s;a++){var l=o[a],c=Object.getOwnPropertyDescriptor(t,l);0;var u=(r&&l in r?r[l]:c.get?se:i)(e,l,c,!0);u&&Object.defineProperty(e,l,u)}}finally{He()}return e}function wt(e,t){return xt(_r(e,t))}function xt(e){var t,r,n={name:e.name};return e.observing&&e.observing.length>0&&(n.dependencies=(t=e.observing,r=[],t.forEach((function(e){-1===r.indexOf(e)&&r.push(e)})),r).map(xt)),n}var _t=0;function St(){this.message="FLOW_CANCELLED"}function Et(e){1!==arguments.length&&c("Flow expects one 1 argument and cannot be used as decorator");var t=e.name||"<unnamed flow>";return function(){var r,n=this,i=arguments,o=++_t,a=lt(t+" - runid: "+o+" - init",e).apply(n,i),s=void 0,l=new Promise((function(e,n){var i=0;function l(e){var r;s=void 0;try{r=lt(t+" - runid: "+o+" - yield "+i++,a.next).call(a,e)}catch(e){return n(e)}u(r)}function c(e){var r;s=void 0;try{r=lt(t+" - runid: "+o+" - yield "+i++,a.throw).call(a,e)}catch(e){return n(e)}u(r)}function u(t){if(!t||"function"!=typeof t.then)return t.done?e(t.value):(s=Promise.resolve(t.value)).then(l,c);t.then(u,n)}r=n,l(void 0)}));return l.cancel=lt(t+" - runid: "+o+" - cancel",(function(){try{s&&kt(s);var e=a.return(void 0),t=Promise.resolve(e.value);t.then(p,p),kt(t),r(new St)}catch(e){r(e)}})),l}}function kt(e){"function"==typeof e.cancel&&e.cancel()}function Ct(e,t){if(null==e)return!1;if(void 0!==t){if(!1===xr(e))return!1;if(!e.$mobx.values[t])return!1;var r=_r(e,t);return De(r)}return De(e)}function Ot(e){return arguments.length>1?c(!1):Ct(e)}function At(e,t){return"string"!=typeof t?c(!1):Ct(e,t)}function Tt(e,t){if(null==e)return!1;if(void 0!==t){if(xr(e)){var r=e.$mobx;return r.values&&!!r.values[t]}return!1}return xr(e)||!!e.$mobx||P(e)||Ye(e)||De(e)}function Pt(e){return 1!==arguments.length&&c(!1),Tt(e)}function jt(e){return xr(e)?e.$mobx.getKeys():ur(e)||dr(e)?w(e.keys()):ar(e)?e.map((function(e,t){return t})):c(!1)}function Ft(e){return xr(e)?jt(e).map((function(t){return e[t]})):ur(e)?jt(e).map((function(t){return e.get(t)})):dr(e)?w(e.values()):ar(e)?e.slice():c(!1)}function Nt(e){return xr(e)?jt(e).map((function(t){return[t,e[t]]})):ur(e)?jt(e).map((function(t){return[t,e.get(t)]})):dr(e)?w(e.entries()):ar(e)?e.map((function(e,t){return[t,e]})):c(!1)}function zt(e,t,r,n){return"function"==typeof r?function(e,t,r,n){return Sr(e,t).observe(r,n)}(e,t,r,n):function(e,t,r){return Sr(e).observe(t,r)}(e,t,r)}St.prototype=Object.create(Error.prototype);function Dt(e){switch(e.length){case 0:return Le.trackingDerivation;case 1:return _r(e[0]);case 2:return _r(e[0],e[1])}}function Rt(e,t){void 0===t&&(t=void 0),Ue();try{return e.apply(t)}finally{He()}}function It(e,t,r){return 1===arguments.length||t&&"object"==typeof t?Lt(e,t):Mt(e,t,r||{})}function Mt(e,t,r){var n;"number"==typeof r.timeout&&(n=setTimeout((function(){if(!o.$mobx.isDisposed){o();var e=new Error("WHEN_TIMEOUT");if(!r.onError)throw e;r.onError(e)}}),r.timeout)),r.name=r.name||"When@"+l();var i=Ce(r.name+"-effect",t),o=pt((function(t){e()&&(t.dispose(),n&&clearTimeout(n),i())}),r);return o}function Lt(e,t){var r;var n=new Promise((function(n,i){var o=Mt(e,n,R(R({},t),{onError:i}));r=function(){o(),i("WHEN_CANCELLED")}}));return n.cancel=r,n}function Vt(e){return void 0!==e.interceptors&&e.interceptors.length>0}function Bt(e,t){var r=e.interceptors||(e.interceptors=[]);return r.push(t),f((function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}))}function $t(e,t){var r=ve();try{var n=e.interceptors;if(n)for(var i=0,o=n.length;i<o&&(u(!(t=n[i](t))||t.type,"Intercept handlers should return nothing or a change object"),t);i++);return t}finally{be(r)}}function Ut(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function Ht(e,t){var r=e.changeListeners||(e.changeListeners=[]);return r.push(t),f((function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}))}function Gt(e,t){var r=ve(),n=e.changeListeners;if(n){for(var i=0,o=(n=n.slice()).length;i<o;i++)n[i](t);be(r)}}var Wt,qt,Jt,Kt,Qt=(Wt=!1,qt={},Object.defineProperty(qt,"0",{set:function(){Wt=!0}}),Object.create(qt)[0]=1,!1===Wt),Yt=0,Xt=function(){};Jt=Xt,Kt=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(Jt.prototype,Kt):void 0!==Jt.prototype.__proto__?Jt.prototype.__proto__=Kt:Jt.prototype=Kt,Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach((function(e){Object.defineProperty(Xt.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})}));var Zt=function(){function e(e,t,r,n){this.array=r,this.owned=n,this.values=[],this.lastKnownLength=0,this.atom=new T(e||"ObservableArray@"+l()),this.enhancer=function(r,n){return t(r,n,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return Bt(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Ht(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var r=new Array(e-t),n=0;n<e-t;n++)r[n]=void 0;this.spliceWithArray(t,0,r)}else this.spliceWithArray(e,t-e)},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>Yt&&ir(e+t+1)},e.prototype.spliceWithArray=function(e,t,r){var n=this;he(this.atom);var o=this.values.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===r&&(r=i),Vt(this)){var a=$t(this,{object:this.array,type:"splice",index:e,removedCount:t,added:r});if(!a)return i;t=a.removedCount,r=a.added}var s=(r=0===r.length?r:r.map((function(e){return n.enhancer(e,void 0)}))).length-t;this.updateArrayLength(o,s);var l=this.spliceItemsIntoValues(e,t,r);return 0===t&&0===r.length||this.notifyArraySplice(e,r,l),this.dehanceValues(l)},e.prototype.spliceItemsIntoValues=function(e,t,r){var n;if(r.length<1e4)return(n=this.values).splice.apply(n,M([e,t],r));var i=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(r,this.values.slice(e+t)),i},e.prototype.notifyArrayChildUpdate=function(e,t,r){var n=!this.owned&&Ze(),i=Ut(this),o=i||n?{object:this.array,type:"update",index:e,newValue:t,oldValue:r}:null;n&&tt(R(R({},o),{name:this.atom.name})),this.atom.reportChanged(),i&&Gt(this,o),n&&nt()},e.prototype.notifyArraySplice=function(e,t,r){var n=!this.owned&&Ze(),i=Ut(this),o=i||n?{object:this.array,type:"splice",index:e,removed:r,added:t,removedCount:r.length,addedCount:t.length}:null;n&&tt(R(R({},o),{name:this.atom.name})),this.atom.reportChanged(),i&&Gt(this,o),n&&nt()},e}(),er=function(e){function t(t,r,n,i){void 0===n&&(n="ObservableArray@"+l()),void 0===i&&(i=!1);var o=e.call(this)||this,a=new Zt(n,r,o,i);if(g(o,"$mobx",a),t&&t.length){var s=je(!0);o.spliceWithArray(0,0,t),Fe(s)}return Qt&&Object.defineProperty(a.array,"0",tr),o}return D(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),e.map((function(e){return ar(e)?e.peek():e})))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},t.prototype.find=function(e,t,r){void 0===r&&(r=0);var n=this.findIndex.apply(this,arguments);return-1===n?void 0:this.get(n)},t.prototype.findIndex=function(e,t,r){void 0===r&&(r=0);for(var n=this.peek(),i=n.length,o=r;o<i;o++)if(e.call(t,n[o],o,this))return o;return-1},t.prototype.splice=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,r)},t.prototype.spliceWithArray=function(e,t,r){return this.$mobx.spliceWithArray(e,t,r)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.$mobx;return r.spliceWithArray(r.values.length,0,e),r.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.$mobx;return r.spliceWithArray(0,0,e),r.values.length},t.prototype.reverse=function(){var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.dehanceValues(this.$mobx.values).indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function r(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(r.call(this,e),r.call(this,t),e!==t){var n,i=this.$mobx.values;n=e<t?M(i.slice(0,e),i.slice(e+1,t+1),[i[e]],i.slice(t+1)):M(i.slice(0,t),[i[e]],i.slice(t,e),i.slice(e+1)),this.replace(n)}},t.prototype.get=function(e){var t=this.$mobx;if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},t.prototype.set=function(e,t){var r=this.$mobx,n=r.values;if(e<n.length){he(r.atom);var i=n[e];if(Vt(r)){var o=$t(r,{type:"update",object:this,index:e,newValue:t});if(!o)return;t=o.newValue}(t=r.enhancer(t,i))!==i&&(n[e]=t,r.notifyArrayChildUpdate(e,t,i))}else{if(e!==n.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+n.length);r.spliceWithArray(e,0,[t])}},t}(Xt);k(er.prototype,(function(){this.$mobx.atom.reportObserved();var e=this,t=0;return C({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})})),Object.defineProperty(er.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),m(er.prototype,O(),"Array"),["indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach((function(e){var t=Array.prototype[e];u("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),m(er.prototype,e,(function(){return t.apply(this.peek(),arguments)}))})),["every","filter","forEach","map","some"].forEach((function(e){u("function"==typeof Array.prototype[e],"Base function not defined on Array prototype: '"+e+"'"),m(er.prototype,e,(function(t,r){var n=this,i=this.$mobx;return i.atom.reportObserved(),i.dehanceValues(i.values)[e]((function(e,i){return t.call(r,e,i,n)}),r)}))})),["reduce","reduceRight"].forEach((function(e){m(er.prototype,e,(function(){var t=this,r=this.$mobx;r.atom.reportObserved();var n=arguments[0];return arguments[0]=function(e,i,o){return i=r.dehanceValue(i),n(e,i,o,t)},r.values[e].apply(r.values,arguments)}))})),function(e,t){for(var r=0;r<t.length;r++)m(e,t[r],e[t[r]])}(er.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var tr=rr(0);function rr(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function nr(e){Object.defineProperty(er.prototype,""+e,rr(e))}function ir(e){for(var t=Yt;t<e;t++)nr(t);Yt=e}ir(1e3);var or=y("ObservableArrayAdministration",Zt);function ar(e){return d(e)&&or(e.$mobx)}var sr={},lr=function(){function e(e,t,r){if(void 0===t&&(t=G),void 0===r&&(r="ObservableMap@"+l()),this.enhancer=t,this.name=r,this.$mobx=sr,this._keysAtom=j(this.name+".keys()"),"function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){var t=this;if(!Le.trackingDerivation)return this._has(e);var r=this._hasMap.get(e);if(!r){var n=r=new Ne(this._has(e),W,this.name+"."+cr(e)+"?",!1);this._hasMap.set(e,n),gt(n,(function(){return t._hasMap.delete(e)}))}return r.get()},e.prototype.set=function(e,t){var r=this._has(e);if(Vt(this)){var n=$t(this,{type:r?"update":"add",object:this,newValue:t,name:e});if(!n)return this;t=n.newValue}return r?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if((he(this._keysAtom),Vt(this))&&!(i=$t(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var r=Ze(),n=Ut(this),i=n||r?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return r&&tt(R(R({},i),{name:this.name,key:e})),Rt((function(){t._keysAtom.reportChanged(),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),n&&Gt(this,i),r&&nt(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var r=this._hasMap.get(e);r&&r.setNewValue(t)},e.prototype._updateValue=function(e,t){var r=this._data.get(e);if((t=r.prepareNewValue(t))!==Le.UNCHANGED){var n=Ze(),i=Ut(this),o=i||n?{type:"update",object:this,oldValue:r.value,name:e,newValue:t}:null;n&&tt(R(R({},o),{name:this.name,key:e})),r.setNewValue(t),i&&Gt(this,o),n&&nt()}},e.prototype._addValue=function(e,t){var r=this;he(this._keysAtom),Rt((function(){var n=new Ne(t,r.enhancer,r.name+"."+cr(e),!1);r._data.set(e,n),t=n.value,r._updateHasMapEntry(e,!0),r._keysAtom.reportChanged()}));var n=Ze(),i=Ut(this),o=i||n?{type:"add",object:this,name:e,newValue:t}:null;n&&tt(R(R({},o),{name:this.name,key:e})),i&&Gt(this,o),n&&nt()},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},e.prototype.values=function(){var e=this,t=this.keys();return C({next:function(){var r=t.next(),n=r.done,i=r.value;return{done:n,value:n?void 0:e.get(i)}}})},e.prototype.entries=function(){var e=this,t=this.keys();return C({next:function(){var r=t.next(),n=r.done,i=r.value;return{done:n,value:n?void 0:[i,e.get(i)]}}})},e.prototype.forEach=function(e,t){var r=this;this._keysAtom.reportObserved(),this._data.forEach((function(n,i){return e.call(t,r.get(i),i,r)}))},e.prototype.merge=function(e){var t=this;return ur(e)&&(e=e.toJS()),Rt((function(){var r=je(!0);try{h(e)?Object.keys(e).forEach((function(r){return t.set(r,e[r])})):Array.isArray(e)?e.forEach((function(e){var r=I(e,2),n=r[0],i=r[1];return t.set(n,i)})):v(e)?e.constructor!==Map?c("Cannot initialize from classes that inherit from Map: "+e.constructor.name):e.forEach((function(e,r){return t.set(r,e)})):null!=e&&c("Cannot initialize map from "+e)}finally{Fe(r)}})),this},e.prototype.clear=function(){var e=this;Rt((function(){ye((function(){e._data.forEach((function(t,r){return e.delete(r)}))}))}))},e.prototype.replace=function(e){var t=this;return Rt((function(){var r=function(e){if(v(e)||ur(e))return e;if(Array.isArray(e))return new Map(e);if(h(e)){var t=new Map;for(var r in e)t.set(r,e[r]);return t}return c("Cannot convert to map from '"+e+"'")}(e),n=new Map,i=!1;if(S(t._data.keys(),(function(e){if(!r.has(e))if(t.delete(e))i=!0;else{var o=t._data.get(e);n.set(e,o)}})),S(r.entries(),(function(e){var r=I(e,2),o=r[0],a=r[1],s=t._data.has(o);if(t.set(o,a),t._data.has(o)){var l=t._data.get(o);n.set(o,l),s||(i=!0)}})),!i)if(t._data.size!==n.size)t._keysAtom.reportChanged();else for(var o=t._data.keys(),a=n.keys(),s=o.next(),l=a.next();!s.done;){if(s.value!==l.value){t._keysAtom.reportChanged();break}s=o.next(),l=a.next()}t._data=n})),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e=this,t={};return this.forEach((function(r,n){return t["symbol"==typeof n?n:cr(n)]=e.get(n)})),t},e.prototype.toJS=function(){return new Map(this)},e.prototype.toJSON=function(){return this.toPOJO()},e.prototype.toString=function(){var e=this;return this.name+"[{ "+w(this.keys()).map((function(t){return cr(t)+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return Ht(this,e)},e.prototype.intercept=function(e){return Bt(this,e)},e}();function cr(e){return e&&e.toString?e.toString():new String(e).toString()}k(lr.prototype,(function(){return this.entries()})),g(lr.prototype,O(),"Map");var ur=y("ObservableMap",lr),fr={},pr=function(){function e(e,t,r){if(void 0===t&&(t=G),void 0===r&&(r="ObservableSet@"+l()),this.name=r,this.$mobx=fr,this._data=new Set,this._atom=j(this.name),"function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(e,n){return t(e,n,r)},e&&this.replace(e)}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.clear=function(){var e=this;Rt((function(){ye((function(){e._data.forEach((function(t){e.delete(t)}))}))}))},e.prototype.forEach=function(e,t){var r=this;this._atom.reportObserved(),this._data.forEach((function(n){e.call(t,n,n,r)}))},Object.defineProperty(e.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this;if((he(this._atom),Vt(this))&&!(i=$t(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){Rt((function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()}));var r=Ze(),n=Ut(this),i=n||r?{type:"add",object:this,newValue:e}:null;0,n&&Gt(this,i)}return this},e.prototype.delete=function(e){var t=this;if(Vt(this)&&!(i=$t(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var r=Ze(),n=Ut(this),i=n||r?{type:"delete",object:this,oldValue:e}:null;return Rt((function(){t._atom.reportChanged(),t._data.delete(e)})),n&&Gt(this,i),!0}return!1},e.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},e.prototype.entries=function(){var e=0,t=w(this.keys()),r=w(this.values());return C({next:function(){var n=e;return e+=1,n<r.length?{value:[t[n],r[n]],done:!1}:{done:!0}}})},e.prototype.keys=function(){return this.values()},e.prototype.values=function(){this._atom.reportObserved();var e,t=this,r=0;return void 0!==this._data.values?e=w(this._data.values()):(e=[],this._data.forEach((function(t){return e.push(t)}))),C({next:function(){return r<e.length?{value:t.dehanceValue(e[r++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return dr(e)&&(e=e.toJS()),Rt((function(){var r=je(!0);try{Array.isArray(e)||b(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&c("Cannot initialize set from "+e)}finally{Fe(r)}})),this},e.prototype.observe=function(e,t){return Ht(this,e)},e.prototype.intercept=function(e){return Bt(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+w(this.keys()).join(", ")+" ]"},e}();k(pr.prototype,(function(){return this.values()})),g(pr.prototype,O(),"Set");var dr=y("ObservableSet",pr),hr=function(){function e(e,t,r){this.target=e,this.name=t,this.defaultEnhancer=r,this.values={}}return e.prototype.read=function(e,t){if(this.target===e||(this.illegalAccess(e,t),this.values[t]))return this.values[t].get()},e.prototype.write=function(e,t,r){var n=this.target;n!==e&&this.illegalAccess(e,t);var i=this.values[t];if(i instanceof ze)i.set(r);else{if(Vt(this)){if(!(s=$t(this,{type:"update",object:n,name:t,newValue:r})))return;r=s.newValue}if((r=i.prepareNewValue(r))!==Le.UNCHANGED){var o=Ut(this),a=Ze(),s=o||a?{type:"update",object:n,oldValue:i.value,name:t,newValue:r}:null;a&&tt(R(R({},s),{name:this.name,key:t})),i.set