netlify-identity-widget
Version:
Netlify Identity widget for easy integration
16 lines (14 loc) • 184 kB
JavaScript
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=9)}([function(e,t,n){"use strict";n.r(t),n.d(t,"h",(function(){return u})),n.d(t,"createElement",(function(){return u})),n.d(t,"cloneElement",(function(){return M})),n.d(t,"createRef",(function(){return Y})),n.d(t,"Component",(function(){return C})),n.d(t,"render",(function(){return Q})),n.d(t,"rerender",(function(){return d})),n.d(t,"options",(function(){return o}));var r=function(){},o={},i=[],a=[];function u(e,t){var n,u,s,c,l=a;for(c=arguments.length;c-- >2;)i.push(arguments[c]);for(t&&null!=t.children&&(i.length||i.push(t.children),delete t.children);i.length;)if((u=i.pop())&&void 0!==u.pop)for(c=u.length;c--;)i.push(u[c]);else"boolean"==typeof u&&(u=null),(s="function"!=typeof e)&&(null==u?u="":"number"==typeof u?u=String(u):"string"!=typeof u&&(s=!1)),s&&n?l[l.length-1]+=u:l===a?l=[u]:l.push(u),n=s;var M=new r;return M.nodeName=e,M.children=l,M.attributes=null==t?void 0:t,M.key=null==t?void 0:t.key,void 0!==o.vnode&&o.vnode(M),M}function s(e,t){for(var n in t)e[n]=t[n];return e}function c(e,t){e&&("function"==typeof e?e(t):e.current=t)}var l="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function M(e,t){return u(e.nodeName,s(s({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}var f=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,p=[];function y(e){!e._dirty&&(e._dirty=!0)&&1==p.push(e)&&(o.debounceRendering||l)(d)}function d(){for(var e;e=p.pop();)e._dirty&&_(e)}function g(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&N(e,t.nodeName):n||e._componentConstructor===t.nodeName}function N(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function D(e){var t=s({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function j(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)c(n,null),c(r,e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===f.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,b,a):e.removeEventListener(t,b,a),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var u=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?u?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(u?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function b(e){return this._listeners[e.type](o.event&&o.event(e)||e)}var T=[],v=0,z=!1,m=!1;function w(){for(var e;e=T.shift();)o.afterMount&&o.afterMount(e),e.componentDidMount&&e.componentDidMount()}function O(e,t,n,r,o,i){v++||(z=null!=o&&void 0!==o.ownerSVGElement,m=null!=e&&!("__preactattr_"in e));var a=x(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--v||(m=!1,i||w()),a}function x(e,t,n,r,o){var i=e,a=z;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),I(e,!0))),i.__preactattr_=!0,i;var u,s,c=t.nodeName;if("function"==typeof c)return function(e,t,n,r){var o=e&&e._component,i=o,a=e,u=o&&e._componentConstructor===t.nodeName,s=u,c=D(t);for(;o&&!s&&(o=o._parentComponent);)s=o.constructor===t.nodeName;o&&s&&(!r||o._component)?(A(o,c,3,n,r),e=o.base):(i&&!u&&(U(i),e=a=null),o=k(t.nodeName,c,n),e&&!o.nextBase&&(o.nextBase=e,a=null),A(o,c,1,n,r),e=o.base,a&&e!==a&&(a._component=null,I(a,!1)));return e}(e,t,n,r);if(z="svg"===c||"foreignObject"!==c&&z,c=String(c),(!e||!N(e,c))&&(u=c,(s=z?document.createElementNS("http://www.w3.org/2000/svg",u):document.createElement(u)).normalizedNodeName=u,i=s,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),I(e,!0)}var l=i.firstChild,M=i.__preactattr_,f=t.children;if(null==M){M=i.__preactattr_={};for(var p=i.attributes,y=p.length;y--;)M[p[y].name]=p[y].value}return!m&&f&&1===f.length&&"string"==typeof f[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=f[0]&&(l.nodeValue=f[0]):(f&&f.length||null!=l)&&function(e,t,n,r,o){var i,a,u,s,c,l=e.childNodes,M=[],f={},p=0,y=0,d=l.length,N=0,D=t?t.length:0;if(0!==d)for(var j=0;j<d;j++){var b=l[j],T=b.__preactattr_;null!=(v=D&&T?b._component?b._component.__key:T.key:null)?(p++,f[v]=b):(T||(void 0!==b.splitText?!o||b.nodeValue.trim():o))&&(M[N++]=b)}if(0!==D)for(j=0;j<D;j++){var v;if(s=t[j],c=null,null!=(v=s.key))p&&void 0!==f[v]&&(c=f[v],f[v]=void 0,p--);else if(y<N)for(i=y;i<N;i++)if(void 0!==M[i]&&g(a=M[i],s,o)){c=a,M[i]=void 0,i===N-1&&N--,i===y&&y++;break}c=x(c,s,n,r),u=l[j],c&&c!==e&&c!==u&&(null==u?e.appendChild(c):c===u.nextSibling?h(u):e.insertBefore(c,u))}if(p)for(var j in f)void 0!==f[j]&&I(f[j],!1);for(;y<=N;)void 0!==(c=M[N--])&&I(c,!1)}(i,f,n,r,m||null!=M.dangerouslySetInnerHTML),function(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||j(e,r,n[r],n[r]=void 0,z);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||j(e,r,n[r],n[r]=t[r],z)}(i,t.attributes,M),z=a,i}function I(e,t){var n=e._component;n?U(n):(null!=e.__preactattr_&&c(e.__preactattr_.ref,null),!1!==t&&null!=e.__preactattr_||h(e),E(e))}function E(e){for(e=e.lastChild;e;){var t=e.previousSibling;I(e,!0),e=t}}var L=[];function k(e,t,n){var r,o=L.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),C.call(r,t,n)):((r=new C(t,n)).constructor=e,r.render=S);o--;)if(L[o].constructor===e)return r.nextBase=L[o].nextBase,L.splice(o,1),r;return r}function S(e,t,n){return this.constructor(e,n)}function A(e,t,n,r,i){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===o.syncComponentUpdates&&e.base?y(e):_(e,1,i)),c(e.__ref,e))}function _(e,t,n,r){if(!e._disable){var i,a,u,c=e.props,l=e.state,M=e.context,f=e.prevProps||c,p=e.prevState||l,y=e.prevContext||M,d=e.base,g=e.nextBase,N=d||g,h=e._component,j=!1,b=y;if(e.constructor.getDerivedStateFromProps&&(l=s(s({},l),e.constructor.getDerivedStateFromProps(c,l)),e.state=l),d&&(e.props=f,e.state=p,e.context=y,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,l,M)?j=!0:e.componentWillUpdate&&e.componentWillUpdate(c,l,M),e.props=c,e.state=l,e.context=M),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!j){i=e.render(c,l,M),e.getChildContext&&(M=s(s({},M),e.getChildContext())),d&&e.getSnapshotBeforeUpdate&&(b=e.getSnapshotBeforeUpdate(f,p));var z,m,x=i&&i.nodeName;if("function"==typeof x){var E=D(i);(a=h)&&a.constructor===x&&E.key==a.__key?A(a,E,1,M,!1):(z=a,e._component=a=k(x,E,M),a.nextBase=a.nextBase||g,a._parentComponent=e,A(a,E,0,M,!1),_(a,1,n,!0)),m=a.base}else u=N,(z=h)&&(u=e._component=null),(N||1===t)&&(u&&(u._component=null),m=O(u,i,M,n||!d,N&&N.parentNode,!0));if(N&&m!==N&&a!==h){var L=N.parentNode;L&&m!==L&&(L.replaceChild(m,N),z||(N._component=null,I(N,!1)))}if(z&&U(z),e.base=m,m&&!r){for(var S=e,C=e;C=C._parentComponent;)(S=C).base=m;m._component=S,m._componentConstructor=S.constructor}}for(!d||n?T.push(e):j||(e.componentDidUpdate&&e.componentDidUpdate(f,p,b),o.afterUpdate&&o.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);v||r||w()}}function U(e){o.beforeUnmount&&o.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?U(n):t&&(null!=t.__preactattr_&&c(t.__preactattr_.ref,null),e.nextBase=t,h(t),L.push(e),E(t)),c(e.__ref,null)}function C(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function Q(e,t,n){return O(n,e,{},!1,t,!1)}function Y(){return{}}s(C.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=s(s({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),y(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),_(this,2)},render:function(){}});var P={h:u,createElement:u,cloneElement:M,createRef:Y,Component:C,render:Q,rerender:d,options:o};t.default=P},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"extras",(function(){return xn})),n.d(t,"Reaction",(function(){return sn})),n.d(t,"untracked",(function(){return Kt})),n.d(t,"IDerivationState",(function(){return vt})),n.d(t,"Atom",(function(){return a})),n.d(t,"BaseAtom",(function(){return i})),n.d(t,"useStrict",(function(){return B})),n.d(t,"isStrictModeEnabled",(function(){return G})),n.d(t,"spy",(function(){return h})),n.d(t,"comparer",(function(){return ce})),n.d(t,"asReference",(function(){return yn})),n.d(t,"asFlat",(function(){return gn})),n.d(t,"asStructure",(function(){return dn})),n.d(t,"asMap",(function(){return Nn})),n.d(t,"isModifierDescriptor",(function(){return Pe})),n.d(t,"isObservableObject",(function(){return we})),n.d(t,"isBoxedObservable",(function(){return C})),n.d(t,"isObservableArray",(function(){return A})),n.d(t,"ObservableMap",(function(){return Fe})),n.d(t,"isObservableMap",(function(){return $e})),n.d(t,"map",(function(){return qe})),n.d(t,"transaction",(function(){return We})),n.d(t,"observable",(function(){return Qe})),n.d(t,"computed",(function(){return bn})),n.d(t,"isObservable",(function(){return Oe})),n.d(t,"isComputed",(function(){return Tn})),n.d(t,"extendObservable",(function(){return Ie})),n.d(t,"extendShallowObservable",(function(){return Ee})),n.d(t,"observe",(function(){return vn})),n.d(t,"intercept",(function(){return zn})),n.d(t,"autorun",(function(){return le})),n.d(t,"autorunAsync",(function(){return fe})),n.d(t,"when",(function(){return Me})),n.d(t,"reaction",(function(){return pe})),n.d(t,"action",(function(){return X})),n.d(t,"isAction",(function(){return te})),n.d(t,"runInAction",(function(){return ee})),n.d(t,"expr",(function(){return mn})),n.d(t,"toJS",(function(){return wn})),n.d(t,"createTransformer",(function(){return On})),n.d(t,"whyRun",(function(){return on})),n.d(t,"trace",(function(){return an})),n.d(t,"isArrayLike",(function(){return ht}));
/*! *****************************************************************************
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 r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){function e(e){void 0===e&&(e="Atom@"+et()),this.name=e,this.isPendingUnobservation=!0,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=vt.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.reportObserved=function(){Ht(this)},e.prototype.reportChanged=function(){Bt(),function(e){if(e.lowestObserverState===vt.STALE)return;e.lowestObserverState=vt.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===vt.UP_TO_DATE&&(r.isTracing!==zt.NONE&&Zt(r,e),r.onBecomeStale()),r.dependenciesState=vt.STALE}}(this),Gt()},e.prototype.toString=function(){return this.name},e}(),a=function(e){function t(t,n,r){void 0===t&&(t="Atom@"+et()),void 0===n&&(n=at),void 0===r&&(r=at);var o=e.call(this,t)||this;return o.name=t,o.onBecomeObservedHandler=n,o.onBecomeUnobservedHandler=r,o.isPendingUnobservation=!1,o.isBeingTracked=!1,o}return o(t,e),t.prototype.reportObserved=function(){return Bt(),e.prototype.reportObserved.call(this),this.isBeingTracked||(this.isBeingTracked=!0,this.onBecomeObservedHandler()),Gt(),!!Ot.trackingDerivation},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(i),u=Dt("Atom",i);function s(e){return e.interceptors&&e.interceptors.length>0}function c(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),it((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function l(e,t){var n=en();try{var r=e.interceptors;if(r)for(var o=0,i=r.length;o<i&&(nt(!(t=r[o](t))||t.type,"Intercept handlers should return nothing or a change object"),t);o++);return t}finally{tn(n)}}function M(e){return e.changeListeners&&e.changeListeners.length>0}function f(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),it((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function p(e,t){var n=en(),r=e.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);tn(n)}}function y(){return!!Ot.spyListeners.length}function d(e){if(Ot.spyListeners.length)for(var t=Ot.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function g(e){d(Mt({},e,{spyReportStart:!0}))}var N={spyReportEnd:!0};function D(e){d(e?Mt({},e,N):N)}function h(e){return Ot.spyListeners.push(e),it((function(){var t=Ot.spyListeners.indexOf(e);-1!==t&&Ot.spyListeners.splice(t,1)}))}function j(e){nt(!0!==e.__$$iterating,"Illegal state: cannot recycle array as iterator"),dt(e,"__$$iterating",!0);var t=-1;return dt(e,"next",(function(){return{done:++t>=this.length,value:t<this.length?this[t]:void 0}})),e}function b(e,t){dt(e,"function"==typeof Symbol&&Symbol.iterator||"@@iterator",t)}var T,v,z=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),m=0,w=function(){};T=w,v=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(T.prototype,v):void 0!==T.prototype.__proto__?T.prototype.__proto__=v:T.prototype=v,Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach((function(e){Object.defineProperty(w.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})}));var O=function(){function e(e,t,n,r){this.array=n,this.owned=r,this.values=[],this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new i(e||"ObservableArray@"+et()),this.enhancer=function(n,r){return t(n,r,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.map(this.dehancer):e},e.prototype.intercept=function(e){return c(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}),f(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 n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray(t,0,n)}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>m&&k(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var r=this;qt(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===n&&(n=[]),s(this)){var i=l(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!i)return Xe;t=i.removedCount,n=i.added}var a=(n=n.map((function(e){return r.enhancer(e,void 0)}))).length-t;this.updateArrayLength(o,a);var u=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,u),this.dehanceValues(u)},e.prototype.spliceItemsIntoValues=function(e,t,n){if(n.length<1e4)return(r=this.values).splice.apply(r,[e,t].concat(n));var r,o=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),o},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&y(),o=M(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&g(i),this.atom.reportChanged(),o&&p(this,i),r&&D()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&y(),o=M(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&g(i),this.atom.reportChanged(),o&&p(this,i),r&&D()},e}(),x=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableArray@"+et()),void 0===o&&(o=!1);var i=e.call(this)||this,a=new O(r,n,i,o);return dt(i,"$mobx",a),t&&t.length&&i.spliceWithArray(0,0,t),z&&Object.defineProperty(a.array,"0",I),i}return o(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 A(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,n){void 0===n&&(n=0);var r=this.findIndex.apply(this,arguments);return-1===r?void 0:this.get(r)},t.prototype.findIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.peek(),o=r.length,i=n;i<o;i++)if(e.call(t,r[i],i,this))return i;return-1},t.prototype.splice=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];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,n)},t.prototype.spliceWithArray=function(e,t,n){return this.$mobx.spliceWithArray(e,t,n)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,e),n.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 n=this.$mobx;return n.spliceWithArray(0,0,e),n.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 n(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(n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=e<t?o.slice(0,e).concat(o.slice(e+1,t+1),[o[e]],o.slice(t+1)):o.slice(0,t).concat([o[e]],o.slice(t,e),o.slice(e+1)),this.replace(r)}},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 n=this.$mobx,r=n.values;if(e<r.length){qt(n.atom);var o=r[e];if(s(n)){var i=l(n,{type:"update",object:this,index:e,newValue:t});if(!i)return;t=i.newValue}(t=n.enhancer(t,o))!==o&&(r[e]=t,n.notifyArrayChildUpdate(e,t,o))}else{if(e!==r.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+r.length);n.spliceWithArray(e,0,[t])}},t}(w);b(x.prototype,(function(){return j(this.slice())})),Object.defineProperty(x.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),["every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some","toString","toLocaleString"].forEach((function(e){var t=Array.prototype[e];nt("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),yt(x.prototype,e,(function(){return t.apply(this.peek(),arguments)}))})),function(e,t){for(var n=0;n<t.length;n++)yt(e,t[n],e[t[n]])}(x.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 I=E(0);function E(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function L(e){Object.defineProperty(x.prototype,""+e,E(e))}function k(e){for(var t=m;t<e;t++)L(t);m=e}k(1e3);var S=Dt("ObservableArrayAdministration",O);function A(e){return ct(e)&&S(e.$mobx)}var _={},U=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableValue@"+et()),void 0===o&&(o=!0);var i=e.call(this,r)||this;return i.enhancer=n,i.hasUnreportedChange=!1,i.dehancer=void 0,i.value=n(t,void 0,r),o&&y()&&d({type:"create",object:i,newValue:i.value}),i}return o(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))!==_){var n=y();n&&g({type:"update",object:this,newValue:e,oldValue:t}),this.setNewValue(e),n&&D()}},t.prototype.prepareNewValue=function(e){if(qt(this),s(this)){var t=l(this,{object:this,type:"update",newValue:e});if(!t)return _;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.value!==e?e:_},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),M(this)&&p(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 c(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),f(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return Tt(this.get())},t}(i);U.prototype[bt()]=U.prototype.valueOf;var C=Dt("ObservableValue",U),Q={m001:"It is not allowed to assign new values to @action fields",m002:"`runInAction` expects a function",m003:"`runInAction` expects a function without arguments",m004:"autorun expects a function",m005:"Warning: attempted to pass an action to autorun. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.",m006:"Warning: attempted to pass an action to autorunAsync. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.",m007:"reaction only accepts 2 or 3 arguments. If migrating from MobX 2, please provide an options object",m008:"wrapping reaction expression in `asReference` is no longer supported, use options object instead",m009:"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'. It looks like it was used on a property.",m010:"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'",m011:"First argument to `computed` should be an expression. If using computed as decorator, don't pass it arguments",m012:"computed takes one or two arguments if used as function",m013:"[mobx.expr] 'expr' should only be used inside other reactive functions.",m014:"extendObservable expected 2 or more arguments",m015:"extendObservable expects an object as first argument",m016:"extendObservable should not be used on maps, use map.merge instead",m017:"all arguments of extendObservable should be objects",m018:"extending an object with another observable (object) is not supported. Please construct an explicit propertymap, using `toJS` if need. See issue #540",m019:"[mobx.isObservable] isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.",m020:"modifiers can only be used for individual object properties",m021:"observable expects zero or one arguments",m022:"@observable can not be used on getters, use @computed instead",m024:"whyRun() can only be used if a derivation is active, or by passing an computed value / reaction explicitly. If you invoked whyRun from inside a computation; the computation is currently suspended but re-evaluating because somebody requested its value.",m025:"whyRun can only be used on reactions and computed values",m026:"`action` can only be invoked on functions",m028:"It is not allowed to set `useStrict` when a derivation is running",m029:"INTERNAL ERROR only onBecomeUnobserved shouldn't be called twice in a row",m030a:"Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an `action` if this change is intended. Tried to modify: ",m030b:"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, the render function of a React component? Tried to modify: ",m031:"Computed values are not allowed to cause side effects by changing observables that are already being observed. Tried to modify: ",m032:"* This computation is suspended (not in use by any reaction) and won't run automatically.\n\tDidn't expect this computation to be suspended at this point?\n\t 1. Make sure this computation is used by a reaction (reaction, autorun, observer).\n\t 2. Check whether you are using this computation synchronously (in the same stack as they reaction that needs it).",m033:"`observe` doesn't support the fire immediately property for observable maps.",m034:"`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead",m035:"Cannot make the designated object observable; it is not extensible",m036:"It is not possible to get index atoms from arrays",m037:'Hi there! I\'m sorry you have just run into an exception.\nIf your debugger ends up here, know that some reaction (like the render() of an observer component, autorun or reaction)\nthrew an exception and that mobx caught it, to avoid that it brings the rest of your application down.\nThe original cause of the exception (the code that caused this reaction to run (again)), is still in the stack.\n\nHowever, more interesting is the actual stack trace of the error itself.\nHopefully the error is an instanceof Error, because in that case you can inspect the original stack of the error from where it was thrown.\nSee `error.stack` property, or press the very subtle "(...)" link you see near the console.error message that probably brought you here.\nThat stack is more interesting than the stack of this console.error itself.\n\nIf the exception you see is an exception you created yourself, make sure to use `throw new Error("Oops")` instead of `throw "Oops"`,\nbecause the javascript environment will only preserve the original stack trace in the first form.\n\nYou can also make sure the debugger pauses the next time this very same exception is thrown by enabling "Pause on caught exception".\n(Note that it might pause on many other, unrelated exception as well).\n\nIf that all doesn\'t help you out, feel free to open an issue https://github.com/mobxjs/mobx/issues!\n',m038:"Missing items in this list?\n 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n"};function Y(e){return Q[e]}function P(e,t){nt("function"==typeof t,Y("m026")),nt("string"==typeof e&&e.length>0,"actions should have valid names, got: '"+e+"'");var n=function(){return R(e,t,this,arguments)};return n.originalFn=t,n.isMobxAction=!0,n}function R(e,t,n,r){var o=function(e,t,n,r){var o=y()&&!!e,i=0;if(o){i=Date.now();var a=r&&r.length||0,u=new Array(a);if(a>0)for(var s=0;s<a;s++)u[s]=r[s];g({type:"action",name:e,fn:t,object:n,arguments:u})}var c=en();Bt();var l=H(!0);return{prevDerivation:c,prevAllowStateChanges:l,notifySpy:o,startTime:i}}(e,t,n,r);try{return t.apply(n,r)}finally{!function(e){Z(e.prevAllowStateChanges),Gt(),tn(e.prevDerivation),e.notifySpy&&D({time:Date.now()-e.startTime})}(o)}}function B(e){nt(null===Ot.trackingDerivation,Y("m028")),Ot.strictMode=e,Ot.allowStateChanges=!e}function G(){return Ot.strictMode}function H(e){var t=Ot.allowStateChanges;return Ot.allowStateChanges=e,t}function Z(e){Ot.allowStateChanges=e}function V(e,t,n,r,o){function i(i,a,u,s,c){if(void 0===c&&(c=0),nt(o||F(arguments),"This function is a decorator, but it wasn't invoked like a decorator"),u){pt(i,"__mobxLazyInitializers")||yt(i,"__mobxLazyInitializers",i.__mobxLazyInitializers&&i.__mobxLazyInitializers.slice()||[]);var l=u.value,M=u.initializer;return i.__mobxLazyInitializers.push((function(t){e(t,a,M?M.call(t):l,s,u)})),{enumerable:r,configurable:!0,get:function(){return!0!==this.__mobxDidRunLazyInitializers&&J(this),t.call(this,a)},set:function(e){!0!==this.__mobxDidRunLazyInitializers&&J(this),n.call(this,a,e)}}}var f={enumerable:r,configurable:!0,get:function(){return this.__mobxInitializedProps&&!0===this.__mobxInitializedProps[a]||W(this,a,void 0,e,s,u),t.call(this,a)},set:function(t){this.__mobxInitializedProps&&!0===this.__mobxInitializedProps[a]?n.call(this,a,t):W(this,a,t,e,s,u)}};return(arguments.length<3||5===arguments.length&&c<3)&&Object.defineProperty(i,a,f),f}return o?function(){if(F(arguments))return i.apply(null,arguments);var e=arguments,t=arguments.length;return function(n,r,o){return i(n,r,o,e,t)}}:i}function W(e,t,n,r,o,i){pt(e,"__mobxInitializedProps")||yt(e,"__mobxInitializedProps",{}),e.__mobxInitializedProps[t]=!0,r(e,t,n,o,i)}function J(e){!0!==e.__mobxDidRunLazyInitializers&&e.__mobxLazyInitializers&&(yt(e,"__mobxDidRunLazyInitializers",!0),e.__mobxDidRunLazyInitializers&&e.__mobxLazyInitializers.forEach((function(t){return t(e)})))}function F(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]}var q=V((function(e,t,n,r,o){var i=r&&1===r.length?r[0]:n.name||t||"<unnamed action>";yt(e,t,X(i,n))}),(function(e){return this[e]}),(function(){nt(!1,Y("m001"))}),!1,!0),$=V((function(e,t,n){ne(e,t,n)}),(function(e){return this[e]}),(function(){nt(!1,Y("m001"))}),!1,!1),X=function(e,t,n,r){return 1===arguments.length&&"function"==typeof e?P(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?P(e,t):1===arguments.length&&"string"==typeof e?K(e):K(t).apply(null,arguments)};function K(e){return function(t,n,r){if(r&&"function"==typeof r.value)return r.value=P(e,r.value),r.enumerable=!1,r.configurable=!0,r;if(void 0!==r&&void 0!==r.get)throw new Error("[mobx] action is not expected to be used with getters");return q(e).apply(this,arguments)}}function ee(e,t,n){var r="string"==typeof e?e:e.name||"<unnamed action>",o="function"==typeof e?e:t,i="function"==typeof e?t:n;return nt("function"==typeof o,Y("m002")),nt(0===o.length,Y("m003")),nt("string"==typeof r&&r.length>0,"actions should have valid names, got: '"+r+"'"),R(r,o,i,void 0)}function te(e){return"function"==typeof e&&!0===e.isMobxAction}function ne(e,t,n){var r=function(){return R(t,n,e,arguments)};r.isMobxAction=!0,yt(e,t,r)}X.bound=function(e,t,n){if("function"==typeof e){var r=P("<not yet bound action>",e);return r.autoBind=!0,r}return $.apply(null,arguments)};var re=Object.prototype.toString;function oe(e,t){return ie(e,t)}function ie(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&function(e,t,n,r){e=ae(e),t=ae(t);var o=re.call(e);if(o!==re.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}var i="[object Array]"===o;if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,u=t.constructor;if(a!==u&&!("function"==typeof a&&a instanceof a&&"function"==typeof u&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];var s=(n=n||[]).length;for(;s--;)if(n[s]===e)return r[s]===t;if(n.push(e),r.push(t),i){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ie(e[s],t[s],n,r))return!1}else{var c,l=Object.keys(e);if(s=l.length,Object.keys(t).length!==s)return!1;for(;s--;)if(c=l[s],!ue(t,c)||!ie(e[c],t[c],n,r))return!1}return n.pop(),r.pop(),!0}(e,t,n,r)}function ae(e){return A(e)?e.peek():$e(e)?e.entries():jt(e)?function(e){var t=[];for(;;){var n=e.next();if(n.done)break;t.push(n.value)}return t}(e.entries()):e}function ue(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function se(e,t){return e===t}var ce={identity:se,structural:function(e,t){return oe(e,t)},default:function(e,t){return function(e,t){return"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(e,t)||se(e,t)}};function le(e,t,n){var r,o,i;"string"==typeof e?(r=e,o=t,i=n):(r=e.name||"Autorun@"+et(),o=e,i=t),nt("function"==typeof o,Y("m004")),nt(!1===te(o),Y("m005")),i&&(o=o.bind(i));var a=new sn(r,(function(){this.track(u)}));function u(){o(a)}return a.schedule(),a.getDisposer()}function Me(e,t,n,r){var o,i,a,u;return"string"==typeof e?(o=e,i=t,a=n,u=r):(o="When@"+et(),i=e,a=t,u=n),le(o,(function(e){if(i.call(u)){e.dispose();var t=en();a.call(u),tn(t)}}))}function fe(e,t,n,r){var o,i,a,u;"string"==typeof e?(o=e,i=t,a=n,u=r):(o=e.name||"AutorunAsync@"+et(),i=e,a=t,u=n),nt(!1===te(i),Y("m006")),void 0===a&&(a=1),u&&(i=i.bind(u));var s=!1,c=new sn(o,(function(){s||(s=!0,setTimeout((function(){s=!1,c.isDisposed||c.track(l)}),a))}));function l(){i(c)}return c.schedule(),c.getDisposer()}function pe(e,t,n){var r;arguments.length>3&&tt(Y("m007")),Pe(e)&&tt(Y("m008")),(r="object"==typeof n?n:{}).name=r.name||e.name||t.name||"Reaction@"+et(),r.fireImmediately=!0===n||!0===r.fireImmediately,r.delay=r.delay||0,r.compareStructural=r.compareStructural||r.struct||!1,t=X(r.name,r.context?t.bind(r.context):t),r.context&&(e=e.bind(r.context));var o,i=!0,a=!1,u=r.equals?r.equals:r.compareStructural||r.struct?ce.structural:ce.default,s=new sn(r.name,(function(){i||r.delay<1?c():a||(a=!0,setTimeout((function(){a=!1,c()}),r.delay))}));function c(){if(!s.isDisposed){var n=!1;s.track((function(){var t=e(s);n=i||!u(o,t),o=t})),i&&r.fireImmediately&&t(o,s),i||!0!==n||t(o,s),i&&(i=!1)}}return s.schedule(),s.getDisposer()}var ye=function(){function e(e,t,n,r,o){this.derivation=e,this.scope=t,this.equals=n,this.dependenciesState=vt.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=vt.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+et(),this.value=new Vt(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=zt.NONE,this.name=r||"ComputedValue@"+et(),o&&(this.setter=P(r+"-setter",o))}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==vt.UP_TO_DATE)return;e.lowestObserverState=vt.POSSIBLY_STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===vt.UP_TO_DATE&&(r.dependenciesState=vt.POSSIBLY_STALE,r.isTracing!==zt.NONE&&Zt(r,e),r.onBecomeStale())}}(this)},e.prototype.onBecomeUnobserved=function(){Xt(this),this.value=void 0},e.prototype.get=function(){nt(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),0===Ot.inBatch?(Bt(),Jt(this)&&(this.isTracing!==zt.NONE&&console.log("[mobx.trace] '"+this.name+"' is being read outside a reactive context and doing a full recompute"),this.value=this.computeValue(!1)),Gt()):(Ht(this),Jt(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===vt.STALE)return;e.lowestObserverState=vt.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===vt.POSSIBLY_STALE?r.dependenciesState=vt.STALE:r.dependenciesState===vt.UP_TO_DATE&&(e.lowestObserverState=vt.UP_TO_DATE)}}(this));var e=this.value;if(Wt(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(Wt(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){nt(!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 nt(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){y()&&d({object:this.scope,type:"compute",fn:this.derivation});var e=this.value,t=this.dependenciesState===vt.NOT_TRACKING,n=this.value=this.computeValue(!0);return t||Wt(e)||Wt(n)||!this.equals(e,n)},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Ot.computationDepth++,e)t=$t(this,this.derivation,this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new Vt(e)}return Ot.computationDepth--,this.isComputing=!1,t},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return le((function(){var i=n.get();if(!r||t){var a=en();e({type:"update",object:n,newValue:i,oldValue:o}),tn(a)}r=!1,o=i}))},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return Tt(this.get())},e.prototype.whyRun=function(){var e=Boolean(Ot.trackingDerivation),t=ut(this.isComputing?this.newObserving:this.observing).map((function(e){return e.name})),n=ut(Qt(this).map((function(e){return e.name})));return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+(e?"[active] the value of this computation is needed by a reaction":this.isComputing?"[get] The value of this computed was requested outside a reaction":"[idle] not running at the moment")+"\n"+(this.dependenciesState===vt.NOT_TRACKING?Y("m032"):" * This computation will re-run if any of the following observables changes:\n "+st(t)+"\n "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n "+Y("m038")+"\n\n * If the outcome of this computation changes, the following observers will be re-run:\n "+st(n)+"\n")},e}();ye.prototype[bt()]=ye.prototype.valueOf;var de=Dt("ComputedValue",ye),ge=function(){function e(e,t){this.target=e,this.name=t,this.values={},this.changeListeners=null,this.interceptors=null}return e.prototype.observe=function(e,t){return nt(!0!==t,"`observe` doesn't support the fire immediately property for observable objects."),f(this,e)},e.prototype.intercept=function(e){return c(this,e)},e}();function Ne(e,t){if(we(e)&&e.hasOwnProperty("$mobx"))return e.$mobx;nt(Object.isExtensible(e),Y("m035")),lt(e)||(t=(e.constructor.name||"ObservableObject")+"@"+et()),t||(t="ObservableObject@"+et());var n=new ge(e,t);return dt(e,"$mobx",n),n}function De(e,t,n,r){if(e.values[t]&&!de(e.values[t]))return nt("value"in n,"The property "+t+" in "+e.name+" is already observable, cannot redefine it as computed property"),void(e.target[t]=n.value);if("value"in n)if(Pe(n.value)){var o=n.value;he(e,t,o.initialValue,o.enhancer)}else te(n.value)&&!0===n.value.autoBind?ne(e.target,t,n.value.originalFn):de(n.value)?function(e,t,n){var r=e.name+"."+t;n.name=r,n.scope||(n.scope=e.target);e.values[t]=n,Object.defineProperty(e.target,t,ve(t))}(e,t,n.value):he(e,t,n.value,r);else je(e,t,n.get,n.set,ce.default,!0)}function he(e,t,n,r){if(Nt(e.target,t),s(e)){var o=l(e,{object:e.target,name:t,type:"add",newValue:n});if(!o)return;n=o.newValue}n=(e.values[t]=new U(n,r,e.name+"."+t,!1)).value,Object.defineProperty(e.target,t,function(e){return be[e]||(be[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[e].get()},set:function(t){ze(this,e,t)}})}(t)),function(e,t,n,r){var o=M(e),i=y(),a=o||i?{type:"add",object:t,name:n,newValue:r}:null;i&&g(a);o&&p(e,a);i&&D()}(e,e.target,t,n)}function je(e,t,n,r,o,i){i&&Nt(e.target,t),e.values[t]=new ye(n,e.target,o,e.name+"."+t,r),i&&Object.defineProperty(e.target,t,ve(t))}var be={},Te={};function ve(e){return Te[e]||(Te[e]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[e].get()},set:function(t){return this.$mobx.values[e].set(t)}})}function ze(e,t,n){var r=e.$mobx,o=r.values[t];if(s(r)){if(!(u=l(r,{type:"update",object:e,name:t,newValue:n})))return;n=u.newValue}if((n=o.prepareNewValue(n))!==_){var i=M(r),a=y(),u=i||a?{type:"update",object:e,oldValue:o.value,name:t,newValue:n}:null;a&&g(u),o.setNewValue(n),i&&p(r,u),a&&D()}}var me=Dt("ObservableObjectAdministration",ge);function we(e){return!!ct(e)&&(J(e),me(e.$mobx))}function Oe(e,t){if(null==e)return!1;if(void 0!==t){if(A(e)||$e(e))throw new Error(Y("m019"));if(we(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return we(e)||!!e.$mobx||u(e)||pn(e)||de(e)}function xe(e){return nt(!!e,":("),V((function(t,n,r,o,i){Nt(t,n),nt(!i||!i.get,Y("m022")),he(Ne(t,void 0),n,r,e)}),(function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()}),(function(e,t){ze(this,e,t)}),!0,!1)}function Ie(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Le(e,Be,t)}function Ee(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Le(e,He,t)}function Le(e,t,n){nt(arguments.length>=2,Y("m014")),nt("object"==typeof e,Y("m015")),nt(!$e(e),Y("m016")),n.forEach((function(e){nt("object"==typeof e,Y("m017")),nt(!Oe(e),Y("m018"))}));for(var r=Ne(e),o={},i=n.length-1;i>=0;i--){var a=n[i];for(var u in a)if(!0!==o[u]&&pt(a,u)){if(o[u]=!0,e===a&&!gt(e,u))continue;var s=Object.getOwnPropertyDescriptor(a,u);De(r,u,s,t)}}return e}var ke=xe(Be),Se=xe(Ge),Ae=xe(He),_e=xe(Ze),Ue=xe(Ve);var Ce={box:function(e,t){return arguments.length>2&&Ye("box"),new U(e,Be,t)},shallowBox:function(e,t){return arguments.length>2&&Ye("shallowBox"),new U(e,He,t)},array:function(e,t){return arguments.length>2&&Ye("array"),new x(e,Be,t)},shallowArray:function(e,t){return arguments.length>2&&Ye("shallowArray"),new x(e,He,t)},map:function(e,t){return arguments.length>2&&Ye("map"),new Fe(e,Be,t)},shallowMap:function(e,t){return arguments.length>2&&Ye("shallowMap"),new Fe(e,He,t)},object:function(e,t){arguments.length>2&&Ye("object");var n={};return Ne(n,t),Ie(n,e),n},shallowObject:function(e,t){arguments.length>2&&Ye("shallowObject");var n={};return Ne(n,t),Ee(n,e),n},ref:function(){return arguments.length<2?Re(He,arguments[0]):Ae.apply(null,arguments)},shallow:function(){return arguments.length<2?Re(Ge,arguments[0]):Se.apply(null,arguments)},deep:function(){return arguments.length<2?Re(Be,arguments[0]):ke.apply(null,arguments)},struct:function(){return arguments.length<2?Re(Ze,arguments[0]):_e.apply(null,arguments)}},Qe=function(e){if(void 0===e&&(e=void 0),"string"==typeof arguments[1])return ke.apply(null,arguments);if(nt(arguments.length<=1,Y("m021")),nt(!Pe(e),Y("m020")),Oe(e))return e;var t=Be(e,void 0,void 0);return t!==e?t:Qe.box(e)};function Ye(e){tt("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}function Pe(e){return"object"==typeof e&&null!==e&&!0===e.isMobxModifierDescriptor}function Re(e,t){return nt(!Pe(t),"Modifiers cannot be nested"),{isMobxModifierDescriptor:!0,initialValue:t,enhancer:e}}function Be(e,t,n){return Pe(e)&&tt("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),Oe(e)?e:Array.isArray(e)?Qe.array(e,n):lt(e)?Qe.object(e,n):jt(e)?Qe.map(e,n):e}function Ge(e,t,n){return Pe(e)&&tt("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),null==e||we(e)||A(e)||$e(e)?e:Array.isArray(e)?Qe.shallowArray(e,n):lt(e)?Qe.shallowObject(e,n):jt(e)?Qe.shallowMap(e,n):tt("The shallow modifier / decorator can only used in combination with arrays, objects and maps")}function He(e){return e}function Ze(e,t,n){if(oe(e,t))return t;if(Oe(e))return e;if(Array.isArray(e))return new x(e,Ze,n);if(jt(e))return new Fe(e,Ze,n);if(lt(e)){var r={};return Ne(r,n),Le(r,Ze,[e]),r}return e}function Ve(e,t,n){return oe(e,t)?t:e}function We(e,t){void 0===t&&(t=void 0),Bt();try{return e.apply(t)}finally{Gt()}}Object.keys(Ce).forEach((function(e){return Qe[e]=Ce[e]})),Qe.deep.struct=Qe.struct,Qe.ref.struct=function(){return arguments.length<2?Re(Ve,arguments[0]):Ue.apply(null,arguments)};var Je={},Fe=function(){function e(e,t,n){void 0===t&&(t=Be),void 0===n&&(n="ObservableMap@"+et()),this.enhancer=t,this.name=n,this.$mobx=Je,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new x(void 0,He,this.name+".keys()",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(e)}return e.prototype._has=function(e){return void 0!==this._data[e]},e.prototype.has=function(e){return!!this.isValidKey(e)&&(e=""+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},e.prototype.set=function(e,t){this.assertValidKey(e),e=""+e;var n=this._has(e);if(s(this)){var r=l(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if((this.assertValidKey(e),e=""+e,s(this))&&!(o=l(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=y(),r=M(this),o=r||n?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;return n&&g(o),We((function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data[e].setNewValue(void 0),t._data[e]=void 0})),r&&p(this,o),n&&D(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap[e];return n?n.setNewValue(t):n=this._hasMap[e]=new U(t,He,this.name+"."+e+"?",!1),n},e.prototype._updateValue=function(e,t){var n=this._data[e];if((t=n.prepareNewValue(t))!==_){var r=y(),o=M(this),i=o||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&g(i),n.setNewValue(t),o&&p(this,i),r&&D()}},e.prototype._addValue=function(e,t){var n=this;We((function(){var r=n._data[e]=new U(t,n.enhancer,n.name+"."+e,!1);t=r.value,n._updateHasMapEntry(e,!0),n._keys.push(e)}));var r=y(),o=M(this),i=o||r?{type:"add",object:this,name:e,newValue:t}:null;r&&g(i),o&&p(this,i),r&&D()},e.prototype.get=function(e){return e=""+e,this.has(e)?this.dehanceValue(this._data[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 j(this._keys.slice())},e.prototype.values=function(){return j(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return j(this._keys.map((function(t){return[t,e.get(t)]})))},e.prototype.forEach=function(e,t){var n=this;this.keys().forEach((function(r){return e.call(t,n.get(r),r,n)}))},e.prototype.merge=function(e){var t=this;return $e(e)&&(e=e.toJS()),We((function(){lt(e)?Object.keys(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((functio