agora-edu-core-lb
Version:
For publishing npm package agora-edu-core (Web & Electron). Get more information from https://docs.agora.io
16 lines (14 loc) • 4.06 MB
JavaScript
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("white-web-sdk"),require("react"),require("dayjs"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["white-web-sdk","react","dayjs","react-dom"],t);else{var r="object"==typeof exports?t(require("white-web-sdk"),require("react"),require("dayjs"),require("react-dom")):t(e["white-web-sdk"],e.react,e.dayjs,e["react-dom"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,(function(__WEBPACK_EXTERNAL_MODULE__8__,__WEBPACK_EXTERNAL_MODULE__13__,__WEBPACK_EXTERNAL_MODULE__46__,__WEBPACK_EXTERNAL_MODULE__69__){return 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}return 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=136)}([function(e,t,r){e.exports=r(137)},function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return He})),r.d(t,"b",(function(){return Ye})),r.d(t,"c",(function(){return te})),r.d(t,"d",(function(){return Y})),r.d(t,"e",(function(){return Ze})),r.d(t,"f",(function(){return ze})),r.d(t,"g",(function(){return dt}));
/*! *****************************************************************************
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.
***************************************************************************** */
var i=function(e,t){return(i=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)};var o=function(){return(o=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 a(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function s(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 c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}var u=[];Object.freeze(u);var l={};function d(){return++xe.mobxGuid}function h(e){throw p(!1,e),"X"}function p(e,t){if(!e)throw new Error("[mobx] "+(t||"An invariant failed, however the error is obfuscated because this is a production build."))}Object.freeze(l);function f(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var m=function(){};function g(e){return null!==e&&"object"==typeof e}function y(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function v(e,t,r){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function b(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(e){return g(e)&&!0===e[r]}}function A(e){return e instanceof Map}function _(e){return e instanceof Set}function w(e){var t=new Set;for(var r in e)t.add(r);return Object.getOwnPropertySymbols(e).forEach((function(r){Object.getOwnPropertyDescriptor(e,r).enumerable&&t.add(r)})),Array.from(t)}function E(e){return e&&e.toString?e.toString():new String(e).toString()}function S(e){return null===e?null:"object"==typeof e?""+e:e}var T=Symbol("mobx administration"),I=function(){function e(e){void 0===e&&(e="Atom@"+d()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=J.NOT_TRACKING}return e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(e){return e()}))},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(e){return e()}))},e.prototype.reportObserved=function(){return Pe(this)},e.prototype.reportChanged=function(){je(),function(e){if(e.lowestObserverState===J.STALE)return;e.lowestObserverState=J.STALE,e.observers.forEach((function(t){t.dependenciesState===J.UP_TO_DATE&&(t.isTracing!==Z.NONE&&Me(t,e),t.onBecomeStale()),t.dependenciesState=J.STALE}))}(this),Le()},e.prototype.toString=function(){return this.name},e}(),C=b("Atom",I);function k(e,t,r){void 0===t&&(t=m),void 0===r&&(r=m);var n,i=new I(e);return t!==m&&et("onBecomeObserved",i,t,n),r!==m&&$e(i,r),i}var O={identity:function(e,t){return e===t},structural:function(e,t){return Kt(e,t)},default:function(e,t){return Object.is(e,t)},shallow:function(e,t){return Kt(e,t,1)}},x=Symbol("mobx did run lazy initializers"),R=Symbol("mobx pending decorators"),N={},D={};function j(e,t){var r=t?N:D;return r[e]||(r[e]={configurable:!0,enumerable:t,get:function(){return L(this),this[e]},set:function(t){L(this),this[e]=t}})}function L(e){var t,r;if(!0!==e[x]){var n=e[R];if(n){v(e,x,!0);var i=c(Object.getOwnPropertySymbols(n),Object.keys(n));try{for(var o=a(i),s=o.next();!s.done;s=o.next()){var u=n[s.value];u.propertyCreator(e,u.prop,u.descriptor,u.decoratorTarget,u.decoratorArguments)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}}}function P(e,t){return function(){var r,n=function(n,i,a,s){if(!0===s)return t(n,i,a,n,r),null;if(!Object.prototype.hasOwnProperty.call(n,R)){var c=n[R];v(n,R,o({},c))}return n[R][i]={prop:i,propertyCreator:t,descriptor:a,decoratorTarget:n,decoratorArguments:r},j(i,e)};return M(arguments)?(r=u,n.apply(null,arguments)):(r=Array.prototype.slice.call(arguments),n)}}function M(e){return(2===e.length||3===e.length)&&("string"==typeof e[1]||"symbol"==typeof e[1])||4===e.length&&!0===e[3]}function U(e,t,r){return st(e)?e:Array.isArray(e)?Y.array(e,{name:r}):y(e)?Y.object(e,void 0,{name:r}):A(e)?Y.map(e,{name:r}):_(e)?Y.set(e,{name:r}):e}function B(e){return e}function F(t){p(t);var r=P(!0,(function(e,r,n,i,o){var a=n?n.initializer?n.initializer.call(e):n.value:void 0;Bt(e).addObservableProp(r,a,t)})),n=(void 0!==e&&e.env,r);return n.enhancer=t,n}var q={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function V(e){return null==e?q:"string"==typeof e?{name:e,deep:!0,proxy:!0}:e}Object.freeze(q);var G=F(U),Q=F((function(e,t,r){return null==e||Qt(e)||xt(e)||jt(e)||Mt(e)?e:Array.isArray(e)?Y.array(e,{name:r,deep:!1}):y(e)?Y.object(e,void 0,{name:r,deep:!1}):A(e)?Y.map(e,{name:r,deep:!1}):_(e)?Y.set(e,{name:r,deep:!1}):h(!1)})),W=F(B),H=F((function(e,t,r){return Kt(e,t)?t:e}));function z(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?B:U}var K={box:function(e,t){arguments.length>2&&X("box");var r=V(t);return new _e(e,z(r),r.name,!0,r.equals)},array:function(e,t){arguments.length>2&&X("array");var r=V(t);return Tt(e,z(r),r.name)},map:function(e,t){arguments.length>2&&X("map");var r=V(t);return new Dt(e,z(r),r.name)},set:function(e,t){arguments.length>2&&X("set");var r=V(t);return new Pt(e,z(r),r.name)},object:function(e,t,r){"string"==typeof arguments[1]&&X("object");var n=V(r);if(!1===n.proxy)return tt({},e,t,n);var i=rt(n),o=tt({},void 0,void 0,n),a=yt(o);return nt(a,e,t,i),a},ref:W,shallow:Q,deep:G,struct:H},Y=function(e,t,r){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return G.apply(null,arguments);if(st(e))return e;var n=y(e)?Y.object(e,t,r):Array.isArray(e)?Y.array(e,t):A(e)?Y.map(e,t):_(e)?Y.set(e,t):e;if(n!==e)return n;h(!1)};function X(e){h("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(K).forEach((function(e){return Y[e]=K[e]}));var J,Z,$=P(!1,(function(e,t,r,n,i){var a=r.get,s=r.set,c=i[0]||{};Bt(e).addComputedProp(e,t,o({get:a,set:s,context:e},c))})),ee=$({equals:O.structural}),te=function(e,t,r){if("string"==typeof t)return $.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return $.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 Ee(n)};te.struct=ee,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"}(J||(J={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Z||(Z={}));var re=function(e){this.cause=e};function ne(e){return e instanceof re}function ie(e){switch(e.dependenciesState){case J.UP_TO_DATE:return!1;case J.NOT_TRACKING:case J.STALE:return!0;case J.POSSIBLY_STALE:for(var t=de(!0),r=ue(),n=e.observing,i=n.length,o=0;o<i;o++){var a=n[o];if(Se(a)){if(xe.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return le(r),he(t),!0}if(e.dependenciesState===J.STALE)return le(r),he(t),!0}}return pe(e),le(r),he(t),!1}}function oe(e){var t=e.observers.size>0;xe.computationDepth>0&&t&&h(!1),xe.allowStateChanges||!t&&"strict"!==xe.enforceActions||h(!1)}function ae(e,t,r){var n=de(!0);pe(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++xe.runId;var i,o=xe.trackingDerivation;if(xe.trackingDerivation=e,!0===xe.disableErrorBoundaries)i=t.call(r);else try{i=t.call(r)}catch(e){i=new re(e)}return xe.trackingDerivation=o,function(e){for(var t=e.observing,r=e.observing=e.newObserving,n=J.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&&Ne(s,e),s.diffValue=0}for(;i--;){var s;1===(s=r[i]).diffValue&&(s.diffValue=0,Re(s,e))}n!==J.UP_TO_DATE&&(e.dependenciesState=n,e.onBecomeStale())}(e),he(n),i}function se(e){var t=e.observing;e.observing=[];for(var r=t.length;r--;)Ne(t[r],e);e.dependenciesState=J.NOT_TRACKING}function ce(e){var t=ue();try{return e()}finally{le(t)}}function ue(){var e=xe.trackingDerivation;return xe.trackingDerivation=null,e}function le(e){xe.trackingDerivation=e}function de(e){var t=xe.allowStateReads;return xe.allowStateReads=e,t}function he(e){xe.allowStateReads=e}function pe(e){if(e.dependenciesState!==J.UP_TO_DATE){e.dependenciesState=J.UP_TO_DATE;for(var t=e.observing,r=t.length;r--;)t[r].lowestObserverState=J.UP_TO_DATE}}var fe=0,me=1,ge=Object.getOwnPropertyDescriptor((function(){}),"name");ge&&ge.configurable;function ye(e,t,r){var n=function(){return ve(e,t,r||this,arguments)};return n.isMobxAction=!0,n}function ve(e,t,r,n){var i=function(e,t,r){var n=0;var i=ue();je();var o=be(!0),a=de(!0),s={prevDerivation:i,prevAllowStateChanges:o,prevAllowStateReads:a,notifySpy:!1,startTime:n,actionId:me++,parentActionId:fe};return fe=s.actionId,s}();try{return t.apply(r,n)}catch(e){throw i.error=e,e}finally{!function(e){fe!==e.actionId&&h("invalid action stack. did you forget to finish an action?");fe=e.parentActionId,void 0!==e.error&&(xe.suppressReactionErrors=!0);Ae(e.prevAllowStateChanges),he(e.prevAllowStateReads),Le(),le(e.prevDerivation),e.notifySpy&&!1;xe.suppressReactionErrors=!1}(i)}}function be(e){var t=xe.allowStateChanges;return xe.allowStateChanges=e,t}function Ae(e){xe.allowStateChanges=e}var _e=function(e){function t(t,r,n,i,o){void 0===n&&(n="ObservableValue@"+d()),void 0===i&&(i=!0),void 0===o&&(o=O.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),a}return function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){this.value;if((e=this.prepareNewValue(e))!==xe.UNCHANGED){0,this.setNewValue(e)}},t.prototype.prepareNewValue=function(e){if(oe(this),vt(this)){var t=At(this,{object:this,type:"update",newValue:e});if(!t)return xe.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?xe.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),_t(this)&&Et(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}),wt(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return S(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(I),we=b("ObservableValue",_e),Ee=function(){function e(e){this.dependenciesState=J.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=J.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+d(),this.value=new re(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Z.NONE,p(e.get,"missing option for computed: get"),this.derivation=e.get,this.name=e.name||"ComputedValue@"+d(),e.set&&(this.setter=ye(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?O.structural:O.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==J.UP_TO_DATE)return;e.lowestObserverState=J.POSSIBLY_STALE,e.observers.forEach((function(t){t.dependenciesState===J.UP_TO_DATE&&(t.dependenciesState=J.POSSIBLY_STALE,t.isTracing!==Z.NONE&&Me(t,e),t.onBecomeStale())}))}(this)},e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(e){return e()}))},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(e){return e()}))},e.prototype.get=function(){this.isComputing&&h("Cycle detected in computation "+this.name+": "+this.derivation),0!==xe.inBatch||0!==this.observers.size||this.keepAlive?(Pe(this),ie(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===J.STALE)return;e.lowestObserverState=J.STALE,e.observers.forEach((function(t){t.dependenciesState===J.POSSIBLY_STALE?t.dependenciesState=J.STALE:t.dependenciesState===J.UP_TO_DATE&&(e.lowestObserverState=J.UP_TO_DATE)}))}(this)):ie(this)&&(this.warnAboutUntrackedRead(),je(),this.value=this.computeValue(!1),Le());var e=this.value;if(ne(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(ne(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){p(!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 p(!1,!1)},e.prototype.trackAndCompute=function(){var e=this.value,t=this.dependenciesState===J.NOT_TRACKING,r=this.computeValue(!0),n=t||ne(e)||ne(r)||!this.equals(e,r);return n&&(this.value=r),n},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,xe.computationDepth++,e)t=ae(this,this.derivation,this.scope);else if(!0===xe.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new re(e)}return xe.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(se(this),this.value=void 0)},e.prototype.observe=function(e,t){var r=this,n=!0,i=void 0;return Ye((function(){var o=r.get();if(!n||t){var a=ue();e({type:"update",object:r,newValue:o,oldValue:i}),le(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 S(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(),Se=b("ComputedValue",Ee),Te=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={};function Ce(){return"undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:Ie}var ke=!0,Oe=!1,xe=function(){var e=Ce();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ke=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Te).version&&(ke=!1),ke?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Te):(setTimeout((function(){Oe||h("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Te)}();function Re(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Ne(e,t){e.observers.delete(t),0===e.observers.size&&De(e)}function De(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,xe.pendingUnobservations.push(e))}function je(){xe.inBatch++}function Le(){if(0==--xe.inBatch){Fe();for(var e=xe.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,0===r.observers.size&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBecomeUnobserved()),r instanceof Ee&&r.suspend())}xe.pendingUnobservations=[]}}function Pe(e){var t=xe.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.size&&xe.inBatch>0&&De(e),!1)}function Me(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===Z.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)}))}((n=e,it(Wt(n,i))),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 Ee?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+r.join("\n")+"\n*/\n ")()}var n,i}var Ue=function(){function e(e,t,r,n){void 0===e&&(e="Reaction@"+d()),void 0===n&&(n=!1),this.name=e,this.onInvalidate=t,this.errorHandler=r,this.requiresObservable=n,this.observing=[],this.newObserving=[],this.dependenciesState=J.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+d(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Z.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,xe.pendingReactions.push(this),Fe())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(je(),this._isScheduled=!1,ie(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(e){this.reportExceptionInDerivation(e)}}Le()}},e.prototype.track=function(e){if(!this.isDisposed){je();0,this._isRunning=!0;var t=ae(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&se(this),ne(t)&&this.reportExceptionInDerivation(t.cause),Le()}},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(xe.disableErrorBoundaries)throw e;var r="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";xe.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(r,e),xe.globalReactionErrorHandlers.forEach((function(r){return r(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(je(),se(this),Le()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e[T]=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=ht(e);if(!n)return h(!1);n.isTracing===Z.NONE&&console.log("[mobx.trace] '"+n.name+"' tracing enabled");n.isTracing=r?Z.BREAK:Z.LOG}(this,e)},e}();var Be=function(e){return e()};function Fe(){xe.inBatch>0||xe.isRunningReactions||Be(qe)}function qe(){xe.isRunningReactions=!0;for(var e=xe.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()}xe.isRunningReactions=!1}var Ve=b("Reaction",Ue);function Ge(){h(!1)}function Qe(e){return function(t,r,n){if(n){if(n.value)return{value:ye(e,n.value),enumerable:!1,configurable:!0,writable:!0};var i=n.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return ye(e,i.call(this))}}}return We(e).apply(this,arguments)}}function We(e){return function(t,r,n){Object.defineProperty(t,r,{configurable:!0,enumerable:!1,get:function(){},set:function(t){v(this,r,He(e,t))}})}}var He=function(e,t,r,n){return 1===arguments.length&&"function"==typeof e?ye(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?ye(e,t):1===arguments.length&&"string"==typeof e?Qe(e):!0!==n?Qe(t).apply(null,arguments):void v(e,t,ye(e.name||t,r.value,this))};function ze(e,t){"string"==typeof e||e.name;return ve(0,"function"==typeof e?e:t,this,void 0)}function Ke(e,t,r){v(e,t,ye(t,r.bind(e)))}function Ye(e,t){void 0===t&&(t=l);var r,n=t&&t.name||e.name||"Autorun@"+d();if(!t.scheduler&&!t.delay)r=new Ue(n,(function(){this.track(a)}),t.onError,t.requiresObservable);else{var i=Je(t),o=!1;r=new Ue(n,(function(){o||(o=!0,i((function(){o=!1,r.isDisposed||r.track(a)})))}),t.onError,t.requiresObservable)}function a(){e(r)}return r.schedule(),r.getDisposer()}He.bound=function(e,t,r,n){return!0===n?(Ke(e,t,r.value),null):r?{configurable:!0,enumerable:!1,get:function(){return Ke(this,t,r.value||r.initializer.call(this)),this[t]},set:Ge}:{enumerable:!1,configurable:!0,set:function(e){Ke(this,t,e)},get:function(){}}};var Xe=function(e){return e()};function Je(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Xe}function Ze(e,t,r){void 0===r&&(r=l);var n,i,o,a=r.name||"Reaction@"+d(),s=He(a,r.onError?(n=r.onError,i=t,function(){try{return i.apply(this,arguments)}catch(e){n.call(this,e)}}):t),c=!r.scheduler&&!r.delay,u=Je(r),h=!0,p=!1,f=r.compareStructural?O.structural:r.equals||O.default,m=new Ue(a,(function(){h||c?g():p||(p=!0,u(g))}),r.onError,r.requiresObservable);function g(){if(p=!1,!m.isDisposed){var t=!1;m.track((function(){var r=e(m);t=h||!f(o,r),o=r})),h&&r.fireImmediately&&s(o,m),h||!0!==t||s(o,m),h&&(h=!1)}}return m.schedule(),m.getDisposer()}function $e(e,t,r){return et("onBecomeUnobserved",e,t,r)}function et(e,t,r,n){var i="function"==typeof n?Wt(t,r):Wt(t),o="function"==typeof n?n:r,a=e+"Listeners";return i[a]?i[a].add(o):i[a]=new Set([o]),"function"!=typeof i[e]?h(!1):function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}function tt(e,t,r,n){var i=rt(n=V(n));return L(e),Bt(e,n.name,i.enhancer),t&&nt(e,t,r,i),e}function rt(e){return e.defaultDecorator||(!1===e.deep?W:G)}function nt(e,t,r,n){var i,o;je();try{var s=w(t);try{for(var c=a(s),u=c.next();!u.done;u=c.next()){var l=u.value,d=Object.getOwnPropertyDescriptor(t,l);0;var h=(r&&l in r?r[l]:d.get?$:n)(e,l,d,!0);h&&Object.defineProperty(e,l,h)}}catch(e){i={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}}finally{Le()}}function it(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(it)),n}function ot(){this.message="FLOW_CANCELLED"}function at(e,t){return null!=e&&(void 0!==t?!!Qt(e)&&e[T].values.has(t):Qt(e)||!!e[T]||C(e)||Ve(e)||Se(e))}function st(e){return 1!==arguments.length&&h(!1),at(e)}function ct(e){return Qt(e)?e[T].getKeys():jt(e)||Mt(e)?Array.from(e.keys()):xt(e)?e.map((function(e,t){return t})):h(!1)}ot.prototype=Object.create(Error.prototype);var ut={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function lt(e,t,r,n){return n.detectCycles&&e.set(t,r),r}function dt(e,t){var r;return"boolean"==typeof t&&(t={detectCycles:t}),t||(t=ut),t.detectCycles=void 0===t.detectCycles?!0===t.recurseEverything:!0===t.detectCycles,t.detectCycles&&(r=new Map),function e(t,r,n){if(!r.recurseEverything&&!st(t))return t;if("object"!=typeof t)return t;if(null===t)return null;if(t instanceof Date)return t;if(we(t))return e(t.get(),r,n);if(st(t)&&ct(t),!0===r.detectCycles&&null!==t&&n.has(t))return n.get(t);if(xt(t)||Array.isArray(t)){var i=lt(n,t,[],r),o=t.map((function(t){return e(t,r,n)}));i.length=o.length;for(var a=0,s=o.length;a<s;a++)i[a]=o[a];return i}if(Mt(t)||Object.getPrototypeOf(t)===Set.prototype){if(!1===r.exportMapsAsObjects){var c=lt(n,t,new Set,r);return t.forEach((function(t){c.add(e(t,r,n))})),c}var u=lt(n,t,[],r);return t.forEach((function(t){u.push(e(t,r,n))})),u}if(jt(t)||Object.getPrototypeOf(t)===Map.prototype){if(!1===r.exportMapsAsObjects){var l=lt(n,t,new Map,r);return t.forEach((function(t,i){l.set(i,e(t,r,n))})),l}var d=lt(n,t,{},r);return t.forEach((function(t,i){d[i]=e(t,r,n)})),d}var h=lt(n,t,{},r);return w(t).forEach((function(i){h[i]=e(t[i],r,n)})),h}(e,t,r)}function ht(e){switch(e.length){case 0:return xe.trackingDerivation;case 1:return Wt(e[0]);case 2:return Wt(e[0],e[1])}}function pt(e,t){void 0===t&&(t=void 0),je();try{return e.apply(t)}finally{Le()}}function ft(e){return e[T]}function mt(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e}var gt={has:function(e,t){if(t===T||"constructor"===t||t===x)return!0;var r=ft(e);return mt(t)?r.has(t):t in e},get:function(e,t){if(t===T||"constructor"===t||t===x)return e[t];var r=ft(e),n=r.values.get(t);if(n instanceof I){var i=n.get();return void 0===i&&r.has(t),i}return mt(t)&&r.has(t),e[t]},set:function(e,t,r){return!!mt(t)&&(function e(t,r,n){if(2!==arguments.length||Mt(t))if(Qt(t)){var i=t[T],o=i.values.get(r);o?i.write(r,n):i.addObservableProp(r,n,i.defaultEnhancer)}else if(jt(t))t.set(r,n);else if(Mt(t))t.add(r);else{if(!xt(t))return h(!1);"number"!=typeof r&&(r=parseInt(r,10)),p(r>=0,"Not a valid index: '"+r+"'"),je(),r>=t.length&&(t.length=r+1),t[r]=n,Le()}else{je();var a=r;try{for(var s in a)e(t,s,a[s])}finally{Le()}}}(e,t,r),!0)},deleteProperty:function(e,t){return!!mt(t)&&(ft(e).remove(t),!0)},ownKeys:function(e){return ft(e).keysAtom.reportObserved(),Reflect.ownKeys(e)},preventExtensions:function(e){return h("Dynamic observable objects cannot be frozen"),!1}};function yt(e){var t=new Proxy(e,gt);return e[T].proxy=t,t}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 At(e,t){var r=ue();try{for(var n=c(e.interceptors||[]),i=0,o=n.length;i<o&&(p(!(t=n[i](t))||t.type,"Intercept handlers should return nothing or a change object"),t);i++);return t}finally{le(r)}}function _t(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function wt(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 Et(e,t){var r=ue(),n=e.changeListeners;if(n){for(var i=0,o=(n=n.slice()).length;i<o;i++)n[i](t);le(r)}}var St={get:function(e,t){return t===T?e[T]:"length"===t?e[T].getArrayLength():"number"==typeof t?Ct.get.call(e,t):"string"!=typeof t||isNaN(t)?Ct.hasOwnProperty(t)?Ct[t]:e[t]:Ct.get.call(e,parseInt(t))},set:function(e,t,r){return"length"===t&&e[T].setArrayLength(r),"number"==typeof t&&Ct.set.call(e,t,r),"symbol"==typeof t||isNaN(t)?e[t]=r:Ct.set.call(e,parseInt(t),r),!0},preventExtensions:function(e){return h("Observable arrays cannot be frozen"),!1}};function Tt(e,t,r,n){void 0===r&&(r="ObservableArray@"+d()),void 0===n&&(n=!1);var i=new It(r,t,n);!function(e,t,r){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}(i.values,T,i);var o=new Proxy(i.values,St);if(i.proxy=o,e&&e.length){var a=be(!0);i.spliceWithArray(0,0,e),Ae(a)}return o}var It=function(){function e(e,t,r){this.owned=r,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new I(e||"ObservableArray@"+d()),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.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),wt(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.");this.lastKnownLength+=t},e.prototype.spliceWithArray=function(e,t,r){var n=this;oe(this.atom);var i=this.values.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===r&&(r=u),vt(this)){var o=At(this,{object:this.proxy,type:"splice",index:e,removedCount:t,added:r});if(!o)return u;t=o.removedCount,r=o.added}r=0===r.length?r:r.map((function(e){return n.enhancer(e,void 0)}));var a=this.spliceItemsIntoValues(e,t,r);return 0===t&&0===r.length||this.notifyArraySplice(e,r,a),this.dehanceValues(a)},e.prototype.spliceItemsIntoValues=function(e,t,r){var n;if(r.length<1e4)return(n=this.values).splice.apply(n,c([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&&!1,i=_t(this),o=i||n?{object:this.proxy,type:"update",index:e,newValue:t,oldValue:r}:null;this.atom.reportChanged(),i&&Et(this,o)},e.prototype.notifyArraySplice=function(e,t,r){var n=!this.owned&&!1,i=_t(this),o=i||n?{object:this.proxy,type:"splice",index:e,removed:r,added:t,removedCount:r.length,addedCount:t.length}:null;this.atom.reportChanged(),i&&Et(this,o)},e}(),Ct={intercept:function(e){return this[T].intercept(e)},observe:function(e,t){return void 0===t&&(t=!1),this[T].observe(e,t)},clear:function(){return this.splice(0)},replace:function(e){var t=this[T];return t.spliceWithArray(0,t.values.length,e)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=this[T];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray(e);case 2:return i.spliceWithArray(e,t)}return i.spliceWithArray(e,t,r)},spliceWithArray:function(e,t,r){return this[T].spliceWithArray(e,t,r)},push:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this[T];return r.spliceWithArray(r.values.length,0,e),r.values.length},pop:function(){return this.splice(Math.max(this[T].values.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this[T];return r.spliceWithArray(0,0,e),r.values.length},reverse:function(){var e=this.slice();return e.reverse.apply(e,arguments)},sort:function(e){var t=this.slice();return t.sort.apply(t,arguments)},remove:function(e){var t=this[T],r=t.dehanceValues(t.values).indexOf(e);return r>-1&&(this.splice(r,1),!0)},get:function(e){var t=this[T];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")}},set:function(e,t){var r=this[T],n=r.values;if(e<n.length){oe(r.atom);var i=n[e];if(vt(r)){var o=At(r,{type:"update",object:r.proxy,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])}}};["concat","every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some","toString","toLocaleString"].forEach((function(e){Ct[e]=function(){var t=this[T];t.atom.reportObserved();var r=t.dehanceValues(t.values);return r[e].apply(r,arguments)}}));var kt,Ot=b("ObservableArrayAdministration",It);function xt(e){return g(e)&&Ot(e[T])}var Rt,Nt={},Dt=function(){function e(e,t,r){if(void 0===t&&(t=U),void 0===r&&(r="ObservableMap@"+d()),this.enhancer=t,this.name=r,this[kt]=Nt,this._keysAtom=k(this.name+".keys()"),this[Symbol.toStringTag]="Map","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(!xe.trackingDerivation)return this._has(e);var r=this._hasMap.get(e);if(!r){var n=r=new _e(this._has(e),B,this.name+"."+E(e)+"?",!1);this._hasMap.set(e,n),$e(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=At(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(vt(this)&&!(n=At(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var r=_t(this),n=r?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return pt((function(){t._keysAtom.reportChanged(),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),r&&Et(this,n),!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))!==xe.UNCHANGED){var n=_t(this),i=n?{type:"update",object:this,oldValue:r.value,name:e,newValue:t}:null;0,r.setNewValue(t),n&&Et(this,i)}},e.prototype._addValue=function(e,t){var r=this;oe(this._keysAtom),pt((function(){var n=new _e(t,r.enhancer,r.name+"."+E(e),!1);r._data.set(e,n),t=n.value,r._updateHasMapEntry(e,!0),r._keysAtom.reportChanged()}));var n=_t(this),i=n?{type:"add",object:this,name:e,newValue:t}:null;n&&Et(this,i)},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=0,r=Array.from(this.keys());return Jt({next:function(){return t<r.length?{value:e.get(r[t++]),done:!1}:{done:!0}}})},e.prototype.entries=function(){var e=this,t=0,r=Array.from(this.keys());return Jt({next:function(){if(t<r.length){var n=r[t++];return{value:[n,e.get(n)],done:!1}}return{done:!0}}})},e.prototype[(kt=T,Symbol.iterator)]=function(){return this.entries()},e.prototype.forEach=function(e,t){var r,n;try{for(var i=a(this),o=i.next();!o.done;o=i.next()){var c=s(o.value,2),u=c[0],l=c[1];e.call(t,l,u,this)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.merge=function(e){var t=this;return jt(e)&&(e=e.toJS()),pt((function(){y(e)?w(e).forEach((function(r){return t.set(r,e[r])})):Array.isArray(e)?e.forEach((function(e){var r=s(e,2),n=r[0],i=r[1];return t.set(n,i)})):A(e)?(e.constructor!==Map&&h("Cannot initialize from classes that inherit from Map: "+e.constructor.name),e.forEach((function(e,r){return t.set(r,e)}))):null!=e&&h("Cannot initialize map from "+e)})),this},e.prototype.clear=function(){var e=this;pt((function(){ce((function(){var t,r;try{for(var n=a(e.keys()),i=n.next();!i.done;i=n.next()){var o=i.value;e.delete(o)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}))}))},e.prototype.replace=function(e){var t=this;return pt((function(){var r,n=y(r=e)?Object.keys(r):Array.isArray(r)?r.map((function(e){return s(e,1)[0]})):A(r)||jt(r)?Array.from(r.keys()):h("Cannot get keys from '"+r+"'");Array.from(t.keys()).filter((function(e){return-1===n.indexOf(e)})).forEach((function(e){return t.delete(e)})),t.merge(e)})),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,t,r={};try{for(var n=a(this),i=n.next();!i.done;i=n.next()){var o=s(i.value,2),c=o[0],u=o[1];r["symbol"==typeof c?c:E(c)]=u}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},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+"[{ "+Array.from(this.keys()).map((function(t){return E(t)+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return wt(this,e)},e.prototype.intercept=function(e){return bt(this,e)},e}(),jt=b("ObservableMap",Dt),Lt={},Pt=function(){function e(e,t,r){if(void 0===t&&(t=U),void 0===r&&(r="ObservableSet@"+d()),this.name=r,this[Rt]=Lt,this._data=new Set,this._atom=k(this.name),this[Symbol.toStringTag]="Set","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;pt((function(){ce((function(){var t,r;try{for(var n=a(e._data.values()),i=n.next();!i.done;i=n.next()){var o=i.value;e.delete(o)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}))}))},e.prototype.forEach=function(e,t){var r,n;try{for(var i=a(this),o=i.next();!o.done;o=i.next()){var s=o.value;e.call(t,s,s,this)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},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((oe(this._atom),vt(this))&&!(n=At(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){pt((function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()}));var r=_t(this),n=r?{type:"add",object:this,newValue:e}:null;0,r&&Et(this,n)}return this},e.prototype.delete=function(e){var t=this;if(vt(this)&&!(n=At(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var r=_t(this),n=r?{type:"delete",object:this,oldValue:e}:null;return pt((function(){t._atom.reportChanged(),t._data.delete(e)})),r&&Et(this,n),!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=Array.from(this.keys()),r=Array.from(this.values());return Jt({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=this,t=0,r=Array.from(this._data.values());return Jt({next:function(){return t<r.length?{value:e.dehanceValue(r[t++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return Mt(e)&&(e=e.toJS()),pt((function(){Array.isArray(e)||_(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&h("Cannot initialize set from "+e)})),this},e.prototype.observe=function(e,t){return wt(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+"[ "+Array.from(this).join(", ")+" ]"},e.prototype[(Rt=T,Symbol.iterator)]=function(){return this.values()},e}(),Mt=b("ObservableSet",Pt),Ut=function(){function e(e,t,r,n){void 0===t&&(t=new Map),this.target=e,this.values=t,this.name=r,this.defaultEnhancer=n,this.keysAtom=new I(r+".keys")}return e.prototype.read=function(e){return this.values.get(e).get()},e.prototype.write=function(e,t){var r=this.target,n=this.values.get(e);if(n instanceof Ee)n.set(t);else{if(vt(this)){if(!(o=At(this,{type:"update",object:this.proxy||r,name:e,newValue:t})))return;t=o.newValue}if((t=n.prepareNewValue(t))!==xe.UNCHANGED){var i=_t(this),o=i?{type:"update",object:this.proxy||r,oldValue:n.value,name:e,newValue:t}:null;0,n.setNewValue(t),i&&Et(this,o)}}},e.prototype.has=function(e){var t=this.pendingKeys||(this.pendingKeys=new Map),r=t.get(e);if(r)return r.get();var n=!!this.values.get(e);return r=new _e(n,B,this.name+"."+E(e)+"?",!1),t.set(e,r),r.get()},e.prototype.addObservableProp=function(e,t,r){void 0===r&&(r=this.defaultEnhancer);var n=this.target;if(vt(this)){var i=At(this,{object:this.proxy||n,name:e,type:"add",newValue:t});if(!i)return;t=i.newValue}var o=new _e(t,r,this.name+"."+E(e),!1);this.values.set(e,o),t=o.value,Object.defineProperty(n,e,function(e){return Ft[e]||(Ft[e]={configurable:!0,enumerable:!0,get:function(){return this[T].read(e)},set:function(t){this[T].write(e,t)}})}(e)),this.notifyPropertyAddition(e,t)},e.prototype.addComputedProp=function(e,t,r){var n,i,o,a=this.target;r.name=r.name||this.name+"."+E(t),this.values.set(t,new Ee(r)),(e===a||(n=e,i=t,!(o=Object.getOwnPropertyDescriptor(n,i))||!1!==o.configurable&&!1!==o.writable))&&Object.defineProperty(e,t,function(e){return qt[e]||(qt[e]={configurable:xe.computedConfigurable,enumerable:!1,get:function(){return Vt(this).read(e)},set:function(t){Vt(this).write(e,t)}})}(t))},e.prototype.remove=function(e){if(this.values.has(e)){var t=this.target;if(vt(this))if(!(a=At(this,{object:this.proxy||t,name:e,type:"remove"})))return;try{je();var r=_t(this),n=this.values.get(e),i=n&&n.get();if(n&&n.set(void 0),this.keysAtom.reportChanged(),this.values.delete(e),this.pendingKeys){var o=this.pendingKeys.get(e);o&&o.set(!1)}delete this.target[e];var a=r?{type:"remove",object:this.proxy||t,oldValue:i,name:e}:null;0,r&&Et(this,a)}finally{Le()}}},e.prototype.illegalAccess=function(e,t){console.warn("Property '"+t+"' of '"+e+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},e.prototype.observe=function(e,t){return wt(this,e)},e.prototype.intercept=function(e){return bt(this,e)},e.prototype.notifyPropertyAddition=function(e,t){var r=_t(this),n=r?{type:"add",object:this.proxy||this.target,name:e,newValue:t}:null;if(r&&Et(this,n),this.pendingKeys){var i=this.pendingKeys.get(e);i&&i.set(!0)}this.keysAtom.reportChanged()},e.prototype.getKeys=function(){var e,t;this.keysAtom.reportObserved();var r=[];try{for(var n=a(this.values),i=n.next();!i.done;i=n.next()){var o=s(i.value,2),c=o[0];o[1]instanceof _e&&r.push(c)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},e}();function Bt(e,t,r){if(void 0===t&&(t=""),void 0===r&&(r=U),Object.prototype.hasOwnProperty.call(e,T))return e[T];y(e)||(t=(e.constructor.name||"ObservableObject")+"@"+d()),t||(t="ObservableObject@"+d());var n=new Ut(e,new Map,E(t),r);return v(e,T,n),n}var Ft=Object.create(null),qt=Object.create(null);function Vt(e){var t=e[T];return t||(L(e),e[T])}var Gt=b("ObservableObjectAdministration",Ut);function Qt(e){return!!g(e)&&(L(e),Gt(e[T]))}function Wt(e,t){if("object"==typeof e&&null!==e){if(xt(e))return void 0!==t&&h(!1),e[T].atom;if(Mt(e))return e[T];if(jt(e)){var r=e;return void 0===t?r._keysAtom:((n=r._data.get(t)||r._hasMap.get(t))||h(!1),n)}var n;if(L(e),t&&!e[T]&&e[t],Qt(e))return t?((n=e[T].values.get(t))||h(!1),n):h(!1);if(C(e)||Se(e)||Ve(e))return e}else if("function"==typeof e&&Ve(e[T]))return e[T];return h(!1)}function Ht(e,t){return e||h("Expecting some object"),void 0!==t?Ht(Wt(e,t)):C(e)||Se(e)||Ve(e)||jt(e)||Mt(e)?e:(L(e),e[T]?e[T]:void h(!1))}var zt=Object.prototype.toString;function Kt(e,t,r){return void 0===r&&(r=-1),function e(t,r,n,i,o){if(t===r)return 0!==t||1/t==1/r;if(null==t||null==r)return!1;if(t!=t)return r!=r;var a=typeof t;if("function"!==a&&"object"!==a&&"object"!=typeof r)return!1;var s=zt.call(t);if(s!==zt.call(r))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+t==""+r;case"[object Number]":return+t!=+t?+r!=+r:0==+t?1/+t==1/r:+t==+r;case"[object Date]":case"[object Boolean]":return+t==+r;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(t)===Symbol.valueOf.call(r);case"[object Map]":case"[object Set]":n>=0&&n++}t=Yt(t),r=Yt(r);var c="[object Array]"===s;if(!c){if("object"!=typeof t||"object"!=typeof r)return!1;var u=t.constructor,l=r.constructor;if(u!==l&&!("function"==typeof u&&u instanceof u&&"function"==typeof l&&l instanceof l)&&"constructor"in t&&"constructor"in r)return!1}if(0===n)return!1;n<0&&(n=-1);o=o||[];var d=(i=i||[]).length;for(;d--;)if(i[d]===t)return o[d]===r;if(i.push(t),o.push(r),c){if((d=t.length)!==r.length)return!1;for(;d--;)if(!e(t[d],r[d],n-1,i,o))return!1}else{var h=Object.keys(t),p=void 0;if(d=h.length,Object.keys(r).length!==d)return!1;for(;d--;)if(p=h[d],!Xt(r,p)||!e(t[p],r[p],n-1,i,o))return!1}return i.pop(),o.pop(),!0}(e,t,r)}function Yt(e){return xt(e)?e.slice():A(e)||jt(e)||_(e)||Mt(e)?Array.from(e.entries()):e}function Xt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Jt(e){return e[Symbol.iterator]=Zt,e}function Zt(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:function(e,t){return(void 0!==t?Wt(e,t):Qt(e)||jt(e)||Mt(e)?Ht(e):Wt(e)).name}},$mobx:T})}).call(this,r(47),r(29))},function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,c,"next",e)}function c(e){n(a,i,o,s,c,"throw",e)}s(void 0)}))}}r.d(t,"a",(function(){return i}))},function(e,t,r){"use strict";r.d(t,"B",(function(){return Ln})),r.d(t,"k",(function(){return bn})),r.d(t,"d",(function(){return mn})),r.d(t,"g",(function(){return hn})),r.d(t,"e",(function(){return pn})),r.d(t,"c",(function(){return An})),r.d(t,"t",(function(){return _n})),r.d(t,"p",(function(){return fn})),r.d(t,"j",(function(){return gn})),r.d(t,"l",(function