@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
16 lines (12 loc) • 151 kB
JavaScript
import{a as m1}from"./chunk-ZFKCGL6X.js";import{c as d1}from"./chunk-JXZCNFW7.js";import{a as r1}from"./chunk-LB7B5RIV.js";import{a as n1,b as o1,c as a1,d as s1,e as l1,f as Qt,i as c1}from"./chunk-BW5PQAKK.js";import{b as u1,c as Jt,d as h1,e as Zt}from"./chunk-4TEHM3AS.js";import{a as f1,d as Et,g as ct}from"./chunk-ZTXJC5IC.js";import{f as Xt}from"./chunk-4KESSWTF.js";import{Aa as Yn,Ba as Xn,Gb as Yt,Hb as W,Ib as st,Ja as nt,La as rt,Ma as Qn,O as Ve,Za as Ii,f as Rn,ib as Jn,kb as ot,lb as at,mb as Z,nb as Me,pb as Zn,wb as U,xb as e1,za as Kn,zb as t1}from"./chunk-WL65GYD5.js";import{c as Ne,d as p1,h as He,m as lt}from"./chunk-ZZ3LHYOY.js";import{d as An}from"./chunk-XE5YHU5J.js";import{$ as gn,$b as St,$c as Dn,Ab as xn,Ac as Ee,C as mn,Cb as b,Db as En,Dc as ke,Eb as u,Ed as In,Fb as Mn,Fd as ae,Ga as kt,Gb as Nn,Gf as Gn,Hb as yt,Hc as Ln,Ib as Vt,If as $n,Jb as _e,Jd as Pn,Je as Hn,Kb as xe,L as Ke,La as Mi,Lb as Ai,Ma as l,Mb as Pe,Mc as Ti,Na as Ni,Nb as q,Ob as Qe,Oc as jt,Pb as p,Qa as Xe,Qb as k,Rb as J,Re as Bn,Rf as qn,Sa as wi,Tb as Je,Ub as Ze,Vb as et,Wf as Wn,X as vn,Xa as D,Xb as tt,Xc as On,Ya as Cn,Za as Te,Zb as Di,Zc as oe,_a as yn,_b as Fe,_e as jn,ab as z,ad as Ut,bb as j,bc as wn,bf as Kt,ca as ye,cb as zi,cc as Ht,cg as i1,da as bn,dc as fe,ec as Bt,ed as Gt,f as pn,fc as _t,ha as h,hc as xt,jb as L,jd as $t,kb as O,ke as Fn,kf as Un,ma as _,na as x,nb as Sn,ob as _n,pb as f,pe as kn,qb as c,rb as d,sb as g,se as Vn,tb as Li,td as qt,u as hn,ub as Oi,v as Ei,va as Ft,wb as Ie,wd as Wt,xb as Re,xd as Tn,ya as Ye,yb as Se,yd as it,zb as F,zc as zn}from"./chunk-RSNLYAN6.js";import{a as Q,b as De}from"./chunk-RTRJ3KFH.js";var C0={prefix:"far",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-13.3 0-24 10.7-24 24l0 9.7C118.6 45.3 56 115.4 56 200l0 14.5c0 37.7-10 74.7-29 107.3L5.1 359.2C1.8 365 0 371.5 0 378.2 0 399.1 16.9 416 37.8 416l372.4 0c20.9 0 37.8-16.9 37.8-37.8 0-6.7-1.8-13.3-5.1-19L421 321.7c-19-32.6-29-69.6-29-107.3l0-14.5c0-84.6-62.6-154.7-144-166.3l0-9.7c0-13.3-10.7-24-24-24zM392.4 368l-336.9 0 12.9-22.1C91.7 306 104 260.6 104 214.5l0-14.5c0-66.3 53.7-120 120-120s120 53.7 120 120l0 14.5c0 46.2 12.3 91.5 35.5 131.4L392.4 368zM156.1 464c9.9 28 36.6 48 67.9 48s58-20 67.9-48l-135.8 0z"]};var Ar={prefix:"far",iconName:"file-zipper",icon:[384,512,["file-archive"],"f1c6","M64 48l112 0 0 88c0 39.8 32.2 72 72 72l88 0 0 240c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16zM224 67.9l92.1 92.1-68.1 0c-13.3 0-24-10.7-24-24l0-68.1zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-261.5c0-17-6.7-33.3-18.7-45.3L242.7 18.7C230.7 6.7 214.5 0 197.5 0L64 0zM80 104c0 13.3 10.7 24 24 24l16 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0c-13.3 0-24 10.7-24 24zm0 80c0 13.3 10.7 24 24 24l32 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-32 0c-13.3 0-24 10.7-24 24zm64 56l-32 0c-17.7 0-32 14.3-32 32l0 48c0 26.5 21.5 48 48 48s48-21.5 48-48l0-48c0-17.7-14.3-32-32-32zm-16 64a16 16 0 1 1 0 32 16 16 0 1 1 0-32z"]},y0=Ar;var S0={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256a208 208 0 1 1 -416 0 208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};var ei={prefix:"far",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M176 48L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-240-88 0c-39.8 0-72-32.2-72-72l0-88zM316.1 160L224 67.9 224 136c0 13.3 10.7 24 24 24l68.1 0zM0 64C0 28.7 28.7 0 64 0L197.5 0c17 0 33.3 6.7 45.3 18.7L365.3 141.3c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]};var _0={prefix:"far",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M166.2-16c-13.3 0-25.3 8.3-30 20.8L120 48 24 48C10.7 48 0 58.7 0 72S10.7 96 24 96l400 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-96 0-16.2-43.2C307.1-7.7 295.2-16 281.8-16L166.2-16zM32 144l0 304c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-304-48 0 0 304c0 8.8-7.2 16-16 16L96 464c-8.8 0-16-7.2-16-16l0-304-48 0zm160 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 176c0 13.3 10.7 24 24 24s24-10.7 24-24l0-176zm112 0c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 176c0 13.3 10.7 24 24 24s24-10.7 24-24l0-176z"]};var x0={prefix:"far",iconName:"user",icon:[448,512,[128100,62144,62470,"user-alt","user-large"],"f007","M144 128a80 80 0 1 1 160 0 80 80 0 1 1 -160 0zm208 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0zM48 480c0-70.7 57.3-128 128-128l96 0c70.7 0 128 57.3 128 128l0 8c0 13.3 10.7 24 24 24s24-10.7 24-24l0-8c0-97.2-78.8-176-176-176l-96 0C78.8 304 0 382.8 0 480l0 8c0 13.3 10.7 24 24 24s24-10.7 24-24l0-8z"]};var E0={prefix:"far",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 48l112 0 0 88c0 39.8 32.2 72 72 72l88 0 0 240c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16zM224 67.9l92.1 92.1-68.1 0c-13.3 0-24-10.7-24-24l0-68.1zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-261.5c0-17-6.7-33.3-18.7-45.3L242.7 18.7C230.7 6.7 214.5 0 197.5 0L64 0zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z"]};var M0={prefix:"far",iconName:"comment-dots",icon:[512,512,[128172,62075,"commenting"],"f4ad","M0 240c0 54.4 19.3 104.6 51.9 144.9L3.1 474.3c-2 3.7-3.1 7.9-3.1 12.2 0 14.1 11.4 25.5 25.5 25.5 4 0 7.8-.6 11.5-2.1L153.4 460c31.4 12.9 66.1 20 102.6 20 141.4 0 256-107.5 256-240S397.4 0 256 0 0 107.5 0 240zM94 407.9c9.3-17.1 7.4-38.1-4.8-53.2-26.1-32.3-41.2-71.9-41.2-114.7 0-103.2 90.2-192 208-192s208 88.8 208 192-90.2 192-208 192c-30.2 0-58.7-5.9-84.3-16.4-11.9-4.9-25.3-4.8-37.1 .3L76 440.9 94 407.9zM144 272a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm144-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm80 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]};var N0={prefix:"far",iconName:"flag",icon:[448,512,[127988,61725],"f024","M48 24C48 10.7 37.3 0 24 0S0 10.7 0 24L0 488c0 13.3 10.7 24 24 24s24-10.7 24-24l0-100 80.3-20.1c41.1-10.3 84.6-5.5 122.5 13.4 44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30l0-279.7c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0-35.1-17.6-75.4-22-113.5-12.5L48 52 48 24zm0 77.5l96.6-24.2c27-6.7 55.5-3.6 80.4 8.8 54.9 27.4 118.7 29.7 175 6.8l0 241.8-24.4 9.1c-33.7 12.6-71.2 10.7-103.4-5.4-48.2-24.1-103.3-30.1-155.6-17.1l-68.6 17.2 0-237z"]};var w0={prefix:"far",iconName:"window-restore",icon:[576,512,[],"f2d2","M512 80L224 80c-8.8 0-16 7.2-16 16l0 16-48 0 0-16c0-35.3 28.7-64 64-64l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64l-48 0 0-48 48 0c8.8 0 16-7.2 16-16l0-192c0-8.8-7.2-16-16-16zM368 288l-320 0 0 128c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16l0-128zM64 160l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]};var v1={prefix:"far",iconName:"folder-closed",icon:[512,512,[],"e185","M448 400L64 400c-8.8 0-16-7.2-16-16l0-144 416 0 0 144c0 8.8-7.2 16-16 16zm16-208l-416 0 0-96c0-8.8 7.2-16 16-16l138.7 0c3.5 0 6.8 1.1 9.6 3.2L250.7 112c13.8 10.4 30.7 16 48 16L448 128c8.8 0 16 7.2 16 16l0 48zM64 448l384 0c35.3 0 64-28.7 64-64l0-240c0-35.3-28.7-64-64-64L298.7 80c-6.9 0-13.7-2.2-19.2-6.4L241.1 44.8C230 36.5 216.5 32 202.7 32L64 32C28.7 32 0 60.7 0 96L0 384c0 35.3 28.7 64 64 64z"]};var g1=(()=>{let e=class e{transform(i,r=0,o=void 0){return rt(i,r,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=yn({name:"pathSlice",type:e,pure:!0});let t=e;return t})();var ki=function(t,e){return ki=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])},ki(t,e)};function z1(t,e){ki(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var K=function(){return K=Object.assign||function(e){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},K.apply(this,arguments)};function L1(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),r,o=[],a;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function Vi(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(L1(arguments[e]));return t}var Dr="An invariant failed, however the error is obfuscated because this is an production build.",ni=[];Object.freeze(ni);var $i={};Object.freeze($i);var Tr={};function Hi(){return typeof window<"u"?window:typeof global<"u"?global:Tr}function Y(){return++v.mobxGuid}function T(t){throw Nt(!1,t),"X"}function Nt(t,e){if(!t)throw new Error("[mobx] "+(e||Dr))}var b1=[];function he(t,e){return!1}function qi(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}var C1=function(){};function Ir(t){var e=[];return t.forEach(function(n){e.indexOf(n)===-1&&e.push(n)}),e}function Wi(t){return t!==null&&typeof t=="object"}function pt(t){if(t===null||typeof t!="object")return!1;var e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function Rr(t){return ht(t)||qe(t)?t:Array.isArray(t)?new Map(t):pt(t)?new Map(Object.entries(t)):T("Cannot convert to map from '"+t+"'")}function Pr(t,e){for(var n=0;n<e.length;n++)Ge(t,e[n],t[e[n]])}function Ge(t,e,n){Object.defineProperty(t,e,{enumerable:!1,writable:!0,configurable:!0,value:n})}function Ot(t,e,n){Object.defineProperty(t,e,{enumerable:!1,writable:!1,configurable:!0,value:n})}function Oe(t,e){var n="isMobX"+t;return e.prototype[n]=!0,function(i){return Wi(i)&&i[n]===!0}}function Fr(t,e){return typeof t=="number"&&typeof e=="number"&&isNaN(t)&&isNaN(e)}function ht(t){return Hi().Map!==void 0&&t instanceof Hi().Map}function At(t){return t instanceof Set}function ft(t){for(var e=[];;){var n=t.next();if(n.done)break;e.push(n.value)}return e}function O1(){return typeof Symbol=="function"&&Symbol.toPrimitive||"@@toPrimitive"}function A1(t){return t===null?null:typeof t=="object"?""+t:t}function Ki(){return typeof Symbol=="function"&&Symbol.iterator||"@@iterator"}function Yi(t,e){Ot(t,Ki(),e)}function wt(t){return t[Ki()]=kr,t}function Xi(){return typeof Symbol=="function"&&Symbol.toStringTag||"@@toStringTag"}function kr(){return this}var ci=(function(){function t(e){e===void 0&&(e="Atom@"+Y()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=w.NOT_TRACKING}return t.prototype.onBecomeUnobserved=function(){},t.prototype.onBecomeObserved=function(){},t.prototype.reportObserved=function(){return $1(this)},t.prototype.reportChanged=function(){me(),s2(this),ve()},t.prototype.toString=function(){return this.name},t})(),Qi=Oe("Atom",ci);function Vr(t,e,n){e===void 0&&(e=C1),n===void 0&&(n=C1);var i=new ci(t);return C2(i,e),X1(i,n),i}function D1(t,e){return t===e}function Hr(t,e){return tn(t,e)}function Br(t,e){return tn(t,e,1)}function jr(t,e){return Fr(t,e)||D1(t,e)}var ut={identity:D1,structural:Hr,default:jr,shallow:Br},Ur={},Gr={};function $r(t,e){var n=e?Ur:Gr;return n[t]||(n[t]={configurable:!0,enumerable:e,get:function(){return je(this),this[t]},set:function(i){je(this),this[t]=i}})}function je(t){if(t.__mobxDidRunLazyInitializers!==!0){var e=t.__mobxDecorators;if(e){Ge(t,"__mobxDidRunLazyInitializers",!0);for(var n in e){var i=e[n];i.propertyCreator(t,i.prop,i.descriptor,i.decoratorTarget,i.decoratorArguments)}}}}function T1(t,e){return function(){var i,r=function(a,s,m,C){if(C===!0)return e(a,s,m,a,i),null;if(!Object.prototype.hasOwnProperty.call(a,"__mobxDecorators")){var A=a.__mobxDecorators;Ge(a,"__mobxDecorators",K({},A))}return a.__mobxDecorators[s]={prop:s,propertyCreator:e,descriptor:m,decoratorTarget:a,decoratorArguments:i},$r(s,t)};return qr(arguments)?(i=ni,r.apply(null,arguments)):(i=Array.prototype.slice.call(arguments),r)}}function qr(t){return(t.length===2||t.length===3)&&typeof t[1]=="string"||t.length===4&&t[3]===!0}function Dt(t,e,n){return Z1(t)?t:Array.isArray(t)?E.array(t,{name:n}):pt(t)?E.object(t,void 0,{name:n}):ht(t)?E.map(t,{name:n}):At(t)?E.set(t,{name:n}):t}function Wr(t,e,n){return t==null||Lt(t)||pi(t)||qe(t)||vt(t)?t:Array.isArray(t)?E.array(t,{name:n,deep:!1}):pt(t)?E.object(t,void 0,{name:n,deep:!1}):ht(t)?E.map(t,{name:n,deep:!1}):At(t)?E.set(t,{name:n,deep:!1}):T(!1)}function zt(t){return t}function Kr(t,e,n){return tn(t,e)?e:t}function di(t){var e=T1(!0,function(i,r,o,a,s){var m=o?o.initializer?o.initializer.call(i):o.value:void 0;T2(i,r,m,t)}),n=(typeof process<"u"&&process.env,e);return n.enhancer=t,n}var I1={deep:!0,name:void 0,defaultDecorator:void 0},Yr={deep:!1,name:void 0,defaultDecorator:void 0};Object.freeze(I1);Object.freeze(Yr);function dt(t){return t==null?I1:typeof t=="string"?{name:t,deep:!0}:t}function ti(t){return t.defaultDecorator?t.defaultDecorator.enhancer:t.deep===!1?zt:Dt}var Ji=di(Dt),Xr=di(Wr),R1=di(zt),Qr=di(Kr);function Jr(t,e,n){if(typeof arguments[1]=="string")return Ji.apply(null,arguments);if(Z1(t))return t;var i=pt(t)?E.object(t,e,n):Array.isArray(t)?E.array(t,e):ht(t)?E.map(t,e):At(t)?E.set(t,e):t;if(i!==t)return i;T(!1)}var y1={box:function(t,e){arguments.length>2&&ue("box");var n=dt(e);return new ze(t,ti(n),n.name,!0,n.equals)},shallowBox:function(t,e){return arguments.length>2&&ue("shallowBox"),he("observable.shallowBox","observable.box(value, { deep: false })"),E.box(t,{name:e,deep:!1})},array:function(t,e){arguments.length>2&&ue("array");var n=dt(e);return new be(t,ti(n),n.name)},shallowArray:function(t,e){return arguments.length>2&&ue("shallowArray"),he("observable.shallowArray","observable.array(values, { deep: false })"),E.array(t,{name:e,deep:!1})},map:function(t,e){arguments.length>2&&ue("map");var n=dt(e);return new hi(t,ti(n),n.name)},shallowMap:function(t,e){return arguments.length>2&&ue("shallowMap"),he("observable.shallowMap","observable.map(values, { deep: false })"),E.map(t,{name:e,deep:!1})},set:function(t,e){arguments.length>2&&ue("set");var n=dt(e);return new mi(t,ti(n),n.name)},object:function(t,e,n){typeof arguments[1]=="string"&&ue("object");var i=dt(n);return y2({},t,e,i)},shallowObject:function(t,e){return typeof arguments[1]=="string"&&ue("shallowObject"),he("observable.shallowObject","observable.object(values, {}, { deep: false })"),E.object(t,{},{name:e,deep:!1})},ref:R1,shallow:Xr,deep:Ji,struct:Qr},E=Jr;Object.keys(y1).forEach(function(t){return E[t]=y1[t]});function ue(t){T("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}var ri=T1(!1,function(t,e,n,i,r){var o=n.get,a=n.set,s=r[0]||{};I2(t,e,K({get:o,set:a},s))}),Zr=ri({equals:ut.structural}),R=function(e,n,i){if(typeof n=="string"||e!==null&&typeof e=="object"&&arguments.length===1)return ri.apply(null,arguments);var r=typeof n=="object"?n:{};return r.get=e,r.set=typeof n=="function"?n:r.set,r.name=r.name||e.name||"",new Le(r)};R.struct=Zr;var w=(function(t){return t[t.NOT_TRACKING=-1]="NOT_TRACKING",t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.POSSIBLY_STALE=1]="POSSIBLY_STALE",t[t.STALE=2]="STALE",t})(w||{}),le=(function(t){return t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK",t})(le||{}),oi=(function(){function t(e){this.cause=e}return t})();function Mt(t){return t instanceof oi}function Bi(t){switch(t.dependenciesState){case w.UP_TO_DATE:return!1;case w.NOT_TRACKING:case w.STALE:return!0;case w.POSSIBLY_STALE:{for(var e=mt(),n=t.observing,i=n.length,r=0;r<i;r++){var o=n[r];if(ui(o)){if(v.disableErrorBoundaries)o.get();else try{o.get()}catch{return we(e),!0}if(t.dependenciesState===w.STALE)return we(e),!0}}return H1(t),we(e),!1}}}function fi(t){var e=t.observers.length>0;v.computationDepth>0&&e&&T(!1),!v.allowStateChanges&&(e||v.enforceActions==="strict")&&T(!1)}function P1(t,e,n){var i=k1(!0);H1(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++v.runId;var r=v.trackingDerivation;v.trackingDerivation=t;var o;if(v.disableErrorBoundaries===!0)o=e.call(n);else try{o=e.call(n)}catch(a){o=new oi(a)}return v.trackingDerivation=r,e2(t),t.observing.length===0&&void 0,V1(i),o}function e2(t){for(var e=t.observing,n=t.observing=t.newObserving,i=w.UP_TO_DATE,r=0,o=t.unboundDepsCount,a=0;a<o;a++){var s=n[a];s.diffValue===0&&(s.diffValue=1,r!==a&&(n[r]=s),r++),s.dependenciesState>i&&(i=s.dependenciesState)}for(n.length=r,t.newObserving=null,o=e.length;o--;){var s=e[o];s.diffValue===0&&U1(s,t),s.diffValue=0}for(;r--;){var s=n[r];s.diffValue===1&&(s.diffValue=0,a2(s,t))}i!==w.UP_TO_DATE&&(t.dependenciesState=i,t.onBecomeStale())}function ji(t){var e=t.observing;t.observing=[];for(var n=e.length;n--;)U1(e[n],t);t.dependenciesState=w.NOT_TRACKING}function F1(t){var e=mt(),n=t();return we(e),n}function mt(){var t=v.trackingDerivation;return v.trackingDerivation=null,t}function we(t){v.trackingDerivation=t}function k1(t){var e=v.allowStateReads;return v.allowStateReads=t,e}function V1(t){v.allowStateReads=t}function H1(t){if(t.dependenciesState!==w.UP_TO_DATE){t.dependenciesState=w.UP_TO_DATE;for(var e=t.observing,n=e.length;n--;)e[n].lowestObserverState=w.UP_TO_DATE}}var ai=0,t2=1;function Be(t,e){var n=function(){return i2(t,e,this,arguments)};return n.isMobxAction=!0,n}function i2(t,e,n,i){var r=n2(t,n,i);try{return e.apply(n,i)}catch(o){throw r.error=o,o}finally{r2(r)}}function n2(t,e,n){var i=B()&&!!t,r=0;if(i){r=Date.now();var o=n&&n.length||0,a=new Array(o);if(o>0)for(var s=0;s<o;s++)a[s]=n[s];ee({type:"action",name:t,object:e,arguments:a})}var m=mt();me();var C=B1(!0),A=k1(!0),X={prevDerivation:m,prevAllowStateChanges:C,prevAllowStateReads:A,notifySpy:i,startTime:r,actionId:t2++,parentActionId:ai};return ai=X.actionId,X}function r2(t){ai!==t.actionId&&T("invalid action stack. did you forget to finish an action?"),ai=t.parentActionId,t.error!==void 0&&(v.suppressReactionErrors=!0),j1(t.prevAllowStateChanges),V1(t.prevAllowStateReads),ve(),we(t.prevDerivation),t.notifySpy&&te({time:Date.now()-t.startTime}),v.suppressReactionErrors=!1}function B1(t){var e=v.allowStateChanges;return v.allowStateChanges=t,e}function j1(t){v.allowStateChanges=t}var ze=(function(t){z1(e,t);function e(n,i,r,o,a){r===void 0&&(r="ObservableValue@"+Y()),o===void 0&&(o=!0),a===void 0&&(a=ut.default);var s=t.call(this,r)||this;return s.enhancer=i,s.name=r,s.equals=a,s.hasUnreportedChange=!1,s.value=i(n,void 0,r),o&&B()&&Ue({type:"create",name:s.name,newValue:""+s.value}),s}return e.prototype.dehanceValue=function(n){return this.dehancer!==void 0?this.dehancer(n):n},e.prototype.set=function(n){var i=this.value;if(n=this.prepareNewValue(n),n!==v.UNCHANGED){var r=B();r&&ee({type:"update",name:this.name,newValue:n,oldValue:i}),this.setNewValue(n),r&&te()}},e.prototype.prepareNewValue=function(n){if(fi(this),ce(this)){var i=de(this,{object:this,type:"update",newValue:n});if(!i)return v.UNCHANGED;n=i.newValue}return n=this.enhancer(n,this.value,this.name),this.equals(this.value,n)?v.UNCHANGED:n},e.prototype.setNewValue=function(n){var i=this.value;this.value=n,this.reportChanged(),ie(this)&&ne(this,{type:"update",object:this,newValue:n,oldValue:i})},e.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},e.prototype.intercept=function(n){return It(this,n)},e.prototype.observe=function(n,i){return i&&n({object:this,type:"update",newValue:this.value,oldValue:void 0}),Rt(this,n)},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.value+"]"},e.prototype.valueOf=function(){return A1(this.get())},e})(ci);ze.prototype[O1()]=ze.prototype.valueOf;var A0=Oe("ObservableValue",ze),Le=(function(){function t(e){this.dependenciesState=w.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=w.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+Y(),this.value=new oi(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=le.NONE,this.derivation=e.get,this.name=e.name||"ComputedValue@"+Y(),e.set&&(this.setter=Be(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?ut.structural:ut.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return t.prototype.onBecomeStale=function(){c2(this)},t.prototype.onBecomeUnobserved=function(){},t.prototype.onBecomeObserved=function(){},t.prototype.get=function(){this.isComputing&&T("Cycle detected in computation "+this.name+": "+this.derivation),v.inBatch===0&&this.observers.length===0&&!this.keepAlive?Bi(this)&&(this.warnAboutUntrackedRead(),me(),this.value=this.computeValue(!1),ve()):($1(this),Bi(this)&&this.trackAndCompute()&&l2(this));var e=this.value;if(Mt(e))throw e.cause;return e},t.prototype.peek=function(){var e=this.computeValue(!1);if(Mt(e))throw e.cause;return e},t.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,!1)},t.prototype.trackAndCompute=function(){B()&&Ue({object:this.scope,type:"compute",name:this.name});var e=this.value,n=this.dependenciesState===w.NOT_TRACKING,i=this.computeValue(!0),r=n||Mt(e)||Mt(i)||!this.equals(e,i);return r&&(this.value=i),r},t.prototype.computeValue=function(e){this.isComputing=!0,v.computationDepth++;var n;if(e)n=P1(this,this.derivation,this.scope);else if(v.disableErrorBoundaries===!0)n=this.derivation.call(this.scope);else try{n=this.derivation.call(this.scope)}catch(i){n=new oi(i)}return v.computationDepth--,this.isComputing=!1,n},t.prototype.suspend=function(){this.keepAlive||(ji(this),this.value=void 0)},t.prototype.observe=function(e,n){var i=this,r=!0,o=void 0;return Tt(function(){var a=i.get();if(!r||n){var s=mt();e({type:"update",object:i,newValue:a,oldValue:o}),we(s)}r=!1,o=a})},t.prototype.warnAboutUntrackedRead=function(){},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return A1(this.get())},t})();Le.prototype[O1()]=Le.prototype.valueOf;var ui=Oe("ComputedValue",Le);var Ri=(function(){function t(){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}return t})(),Pi=!0,o2=!1,v=(function(){var t=Hi();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Pi=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==new Ri().version&&(Pi=!1),Pi?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new Ri):(setTimeout(function(){o2||T("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Ri)})();function a2(t,e){var n=t.observers.length;n&&(t.observersIndexes[e.__mapid]=n),t.observers[n]=e,t.lowestObserverState>e.dependenciesState&&(t.lowestObserverState=e.dependenciesState)}function U1(t,e){if(t.observers.length===1)t.observers.length=0,G1(t);else{var n=t.observers,i=t.observersIndexes,r=n.pop();if(r!==e){var o=i[e.__mapid]||0;o?i[r.__mapid]=o:delete i[r.__mapid],n[o]=r}delete i[e.__mapid]}}function G1(t){t.isPendingUnobservation===!1&&(t.isPendingUnobservation=!0,v.pendingUnobservations.push(t))}function me(){v.inBatch++}function ve(){if(--v.inBatch===0){K1();for(var t=v.pendingUnobservations,e=0;e<t.length;e++){var n=t[e];n.isPendingUnobservation=!1,n.observers.length===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof Le&&n.suspend())}v.pendingUnobservations=[]}}function $1(t){var e=v.trackingDerivation;return e!==null?(e.runId!==t.lastAccessedBy&&(t.lastAccessedBy=e.runId,e.newObserving[e.unboundDepsCount++]=t,t.isBeingObserved||(t.isBeingObserved=!0,t.onBecomeObserved())),!0):(t.observers.length===0&&v.inBatch>0&&G1(t),!1)}function s2(t){if(t.lowestObserverState!==w.STALE){t.lowestObserverState=w.STALE;for(var e=t.observers,n=e.length;n--;){var i=e[n];i.dependenciesState===w.UP_TO_DATE&&(i.isTracing!==le.NONE&&q1(i,t),i.onBecomeStale()),i.dependenciesState=w.STALE}}}function l2(t){if(t.lowestObserverState!==w.STALE){t.lowestObserverState=w.STALE;for(var e=t.observers,n=e.length;n--;){var i=e[n];i.dependenciesState===w.POSSIBLY_STALE?i.dependenciesState=w.STALE:i.dependenciesState===w.UP_TO_DATE&&(t.lowestObserverState=w.UP_TO_DATE)}}}function c2(t){if(t.lowestObserverState===w.UP_TO_DATE){t.lowestObserverState=w.POSSIBLY_STALE;for(var e=t.observers,n=e.length;n--;){var i=e[n];i.dependenciesState===w.UP_TO_DATE&&(i.dependenciesState=w.POSSIBLY_STALE,i.isTracing!==le.NONE&&q1(i,t),i.onBecomeStale())}}}function q1(t,e){if(console.log("[mobx.trace] '"+t.name+"' is invalidated due to a change in: '"+e.name+"'"),t.isTracing===le.BREAK){var n=[];W1(S2(t),n,1),new Function(`debugger;
/*
Tracing '`+t.name+`'
You are entering this break point because derivation '`+t.name+"' is being traced and '"+e.name+`' is now forcing it to update.
Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
The stackframe you are looking for is at least ~6-8 stack-frames up.
`+(t instanceof Le?t.derivation.toString().replace(/[*]\//g,"/"):"")+`
The dependencies for this derivation are:
`+n.join(`
`)+`
*/
`)()}}function W1(t,e,n){if(e.length>=1e3){e.push("(and many more)");return}e.push(""+new Array(n).join(" ")+t.name),t.dependencies&&t.dependencies.forEach(function(i){return W1(i,e,n+1)})}var si=(function(){function t(e,n,i,r){e===void 0&&(e="Reaction@"+Y()),r===void 0&&(r=!1),this.name=e,this.onInvalidate=n,this.errorHandler=i,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=w.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+Y(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=le.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,v.pendingReactions.push(this),K1())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){if(!this.isDisposed){if(me(),this._isScheduled=!1,Bi(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&B()&&Ue({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}ve()}},t.prototype.track=function(e){me();var n=B(),i;n&&(i=Date.now(),ee({name:this.name,type:"reaction"})),this._isRunning=!0;var r=P1(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&ji(this),Mt(r)&&this.reportExceptionInDerivation(r.cause),n&&te({time:Date.now()-i}),ve()},t.prototype.reportExceptionInDerivation=function(e){var n=this;if(this.errorHandler){this.errorHandler(e,this);return}if(v.disableErrorBoundaries)throw e;var i="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";v.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(i,e),B()&&Ue({type:"error",name:this.name,message:i,error:""+e}),v.globalReactionErrorHandlers.forEach(function(r){return r(e,n)})},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(me(),ji(this),ve()))},t.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},t.prototype.toString=function(){return"Reaction["+this.name+"]"},t.prototype.trace=function(e){e===void 0&&(e=!1),x2(this,e)},t})();var S1=100,d2=function(t){return t()};function K1(){v.inBatch>0||v.isRunningReactions||d2(f2)}function f2(){v.isRunningReactions=!0;for(var t=v.pendingReactions,e=0;t.length>0;){++e===S1&&(console.error("Reaction doesn't converge to a stable state after "+S1+" iterations."+(" Probably there is a cycle in the reactive function: "+t[0])),t.splice(0));for(var n=t.splice(0),i=0,r=n.length;i<r;i++)n[i].runReaction()}v.isRunningReactions=!1}var li=Oe("Reaction",si);function B(){return!!v.spyListeners.length}function Ue(t){if(v.spyListeners.length)for(var e=v.spyListeners,n=0,i=e.length;n<i;n++)e[n](t)}function ee(t){var e=K({},t,{spyReportStart:!0});Ue(e)}var u2={spyReportEnd:!0};function te(t){Ue(t?K({},t,{spyReportEnd:!0}):u2)}function p2(t){return v.spyListeners.push(t),qi(function(){v.spyListeners=v.spyListeners.filter(function(e){return e!==t})})}function h2(){T(!1)}function _1(t){return function(e,n,i){if(i){if(i.value)return{value:Be(t,i.value),enumerable:!1,configurable:!0,writable:!0};var r=i.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Be(t,r.call(this))}}}return m2(t).apply(this,arguments)}}function m2(t){return function(e,n,i){Object.defineProperty(e,n,{configurable:!0,enumerable:!1,get:function(){},set:function(r){Ge(this,n,M(t,r))}})}}function v2(t,e,n,i){return i===!0?(Fi(t,e,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return Fi(this,e,n.value||n.initializer.call(this)),this[e]},set:h2}:{enumerable:!1,configurable:!0,set:function(r){Fi(this,e,r)},get:function(){}}}var M=function(e,n,i,r){if(arguments.length===1&&typeof e=="function")return Be(e.name||"<unnamed action>",e);if(arguments.length===2&&typeof n=="function")return Be(e,n);if(arguments.length===1&&typeof e=="string")return _1(e);if(r===!0)e[n]=Be(e.name||n,i.value);else return _1(n).apply(null,arguments)};M.bound=v2;function Fi(t,e,n){Ge(t,e,Be(e,n.bind(t)))}function Tt(t,e){e===void 0&&(e=$i);var n=e&&e.name||t.name||"Autorun@"+Y(),i=!e.scheduler&&!e.delay,r;if(i)r=new si(n,function(){this.track(s)},e.onError,e.requiresObservable);else{var o=Y1(e),a=!1;r=new si(n,function(){a||(a=!0,o(function(){a=!1,r.isDisposed||r.track(s)}))},e.onError,e.requiresObservable)}function s(){t(r)}return r.schedule(),r.getDisposer()}var g2=function(t){return t()};function Y1(t){return t.scheduler?t.scheduler:t.delay?function(e){return setTimeout(e,t.delay)}:g2}function $e(t,e,n){n===void 0&&(n=$i),typeof n=="boolean"&&(n={fireImmediately:n},he("Using fireImmediately as argument is deprecated. Use '{ fireImmediately: true }' instead"));var i=n.name||"Reaction@"+Y(),r=M(i,n.onError?b2(n.onError,e):e),o=!n.scheduler&&!n.delay,a=Y1(n),s=!0,m=!1,C,A=n.compareStructural?ut.structural:n.equals||ut.default,X=new si(i,function(){s||o?Ae():m||(m=!0,a(Ae))},n.onError,n.requiresObservable);function Ae(){if(m=!1,!X.isDisposed){var fn=!1;X.track(function(){var un=t(X);fn=s||!A(C,un),C=un}),s&&n.fireImmediately&&r(C,X),!s&&fn===!0&&r(C,X),s&&(s=!1)}}return X.schedule(),X.getDisposer()}function b2(t,e){return function(){try{return e.apply(this,arguments)}catch(n){t.call(this,n)}}}function C2(t,e,n){return Q1("onBecomeObserved",t,e,n)}function X1(t,e,n){return Q1("onBecomeUnobserved",t,e,n)}function Q1(t,e,n,i){var r=typeof i=="function"?ge(e,n):ge(e),o=typeof i=="function"?i:n,a=r[t];return typeof a!="function"?T(!1):(r[t]=function(){a.call(this),o.call(this)},function(){r[t]=a})}function y2(t,e,n,i){if(0&&n)for(var r in n);i=dt(i);var o=i.defaultDecorator||(i.deep===!1?R1:Ji);je(t),en(t,i.name,o.enhancer),me();try{for(var r in e){var a=Object.getOwnPropertyDescriptor(e,r),s=n&&r in n?n[r]:a.get?ri:o,m=s(t,r,a,!0);m&&Object.defineProperty(t,r,m)}}finally{ve()}return t}function S2(t,e){return J1(ge(t,e))}function J1(t){var e={name:t.name};return t.observing&&t.observing.length>0&&(e.dependencies=Ir(t.observing).map(J1)),e}function _2(t,e){if(t==null)return!1;if(e!==void 0){if(Lt(t)){var n=t.$mobx;return n.values&&!!n.values[e]}return!1}return Lt(t)||!!t.$mobx||Qi(t)||li(t)||ui(t)}function Z1(t){return arguments.length!==1&&T(!1),_2(t)}function x2(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=!1;typeof t[t.length-1]=="boolean"&&(n=t.pop());var i=E2(t);if(!i)return T(!1);i.isTracing===le.NONE&&console.log("[mobx.trace] '"+i.name+"' tracing enabled"),i.isTracing=n?le.BREAK:le.LOG}function E2(t){switch(t.length){case 0:return v.trackingDerivation;case 1:return ge(t[0]);case 2:return ge(t[0],t[1])}}function pe(t,e){e===void 0&&(e=void 0),me();try{return t.apply(e)}finally{ve()}}function ce(t){return t.interceptors!==void 0&&t.interceptors.length>0}function It(t,e){var n=t.interceptors||(t.interceptors=[]);return n.push(e),qi(function(){var i=n.indexOf(e);i!==-1&&n.splice(i,1)})}function de(t,e){var n=mt();try{var i=t.interceptors;if(i)for(var r=0,o=i.length;r<o&&(e=i[r](e),Nt(!e||e.type,"Intercept handlers should return nothing or a change object"),!!e);r++);return e}finally{we(n)}}function ie(t){return t.changeListeners!==void 0&&t.changeListeners.length>0}function Rt(t,e){var n=t.changeListeners||(t.changeListeners=[]);return n.push(e),qi(function(){var i=n.indexOf(e);i!==-1&&n.splice(i,1)})}function ne(t,e){var n=mt(),i=t.changeListeners;if(i){i=i.slice();for(var r=0,o=i.length;r<o;r++)i[r](e);we(n)}}var M2=1e4,N2=(function(){var t=!1,e={};return Object.defineProperty(e,"0",{set:function(){t=!0}}),Object.create(e)[0]=1,t===!1})(),Ui=0,Zi=(function(){function t(){}return t})();function w2(t,e){typeof Object.setPrototypeOf<"u"?Object.setPrototypeOf(t.prototype,e):typeof t.prototype.__proto__<"u"?t.prototype.__proto__=e:t.prototype=e}w2(Zi,Array.prototype);Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach(function(t){Object.defineProperty(Zi.prototype,t,{configurable:!0,writable:!0,value:Array.prototype[t]})});var er=(function(){function t(e,n,i,r){this.array=i,this.owned=r,this.values=[],this.lastKnownLength=0,this.atom=new ci(e||"ObservableArray@"+Y()),this.enhancer=function(o,a){return n(o,a,e+"[..]")}}return t.prototype.dehanceValue=function(e){return this.dehancer!==void 0?this.dehancer(e):e},t.prototype.dehanceValues=function(e){return this.dehancer!==void 0&&e.length>0?e.map(this.dehancer):e},t.prototype.intercept=function(e){return It(this,e)},t.prototype.observe=function(e,n){return n===void 0&&(n=!1),n&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Rt(this,e)},t.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},t.prototype.setArrayLength=function(e){if(typeof e!="number"||e<0)throw new Error("[mobx.array] Out of range: "+e);var n=this.values.length;if(e!==n)if(e>n){for(var i=new Array(e-n),r=0;r<e-n;r++)i[r]=void 0;this.spliceWithArray(n,0,i)}else this.spliceWithArray(e,n-e)},t.prototype.updateArrayLength=function(e,n){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+=n,n>0&&e+n+1>Ui&&ir(e+n+1)},t.prototype.spliceWithArray=function(e,n,i){var r=this;fi(this.atom);var o=this.values.length;if(e===void 0?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),arguments.length===1?n=o-e:n==null?n=0:n=Math.max(0,Math.min(n,o-e)),i===void 0&&(i=ni),ce(this)){var a=de(this,{object:this.array,type:"splice",index:e,removedCount:n,added:i});if(!a)return ni;n=a.removedCount,i=a.added}i=i.length===0?i:i.map(function(C){return r.enhancer(C,void 0)});var s=i.length-n;this.updateArrayLength(o,s);var m=this.spliceItemsIntoValues(e,n,i);return(n!==0||i.length!==0)&&this.notifyArraySplice(e,i,m),this.dehanceValues(m)},t.prototype.spliceItemsIntoValues=function(e,n,i){var r;if(i.length<M2)return(r=this.values).splice.apply(r,Vi([e,n],i));var o=this.values.slice(e,e+n);return this.values=this.values.slice(0,e).concat(i,this.values.slice(e+n)),o},t.prototype.notifyArrayChildUpdate=function(e,n,i){var r=!this.owned&&B(),o=ie(this),a=o||r?{object:this.array,type:"update",index:e,newValue:n,oldValue:i}:null;r&&ee(K({},a,{name:this.atom.name})),this.atom.reportChanged(),o&&ne(this,a),r&&te()},t.prototype.notifyArraySplice=function(e,n,i){var r=!this.owned&&B(),o=ie(this),a=o||r?{object:this.array,type:"splice",index:e,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;r&&ee(K({},a,{name:this.atom.name})),this.atom.reportChanged(),o&&ne(this,a),r&&te()},t})(),be=(function(t){z1(e,t);function e(n,i,r,o){r===void 0&&(r="ObservableArray@"+Y()),o===void 0&&(o=!1);var a=t.call(this)||this,s=new er(r,i,a,o);if(Ot(a,"$mobx",s),n&&n.length){var m=B1(!0);a.spliceWithArray(0,0,n),j1(m)}return N2&&Object.defineProperty(s.array,"0",z2),a}return e.prototype.intercept=function(n){return this.$mobx.intercept(n)},e.prototype.observe=function(n,i){return i===void 0&&(i=!1),this.$mobx.observe(n,i)},e.prototype.clear=function(){return this.splice(0)},e.prototype.concat=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),n.map(function(r){return pi(r)?r.peek():r}))},e.prototype.replace=function(n){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,n)},e.prototype.toJS=function(){return this.slice()},e.prototype.toJSON=function(){return this.toJS()},e.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},e.prototype.find=function(n,i,r){r===void 0&&(r=0),arguments.length===3&&he("The array.find fromIndex argument to find will not be supported anymore in the next major");var o=this.findIndex.apply(this,arguments);return o===-1?void 0:this.get(o)},e.prototype.findIndex=function(n,i,r){r===void 0&&(r=0),arguments.length===3&&he("The array.findIndex fromIndex argument to find will not be supported anymore in the next major");for(var o=this.peek(),a=o.length,s=r;s<a;s++)if(n.call(i,o[s],s,this))return s;return-1},e.prototype.splice=function(n,i){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(n);case 2:return this.$mobx.spliceWithArray(n,i)}return this.$mobx.spliceWithArray(n,i,r)},e.prototype.spliceWithArray=function(n,i,r){return this.$mobx.spliceWithArray(n,i,r)},e.prototype.push=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=this.$mobx;return r.spliceWithArray(r.values.length,0,n),r.values.length},e.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},e.prototype.shift=function(){return this.splice(0,1)[0]},e.prototype.unshift=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=this.$mobx;return r.spliceWithArray(0,0,n),r.values.length},e.prototype.reverse=function(){var n=this.slice();return n.reverse.apply(n,arguments)},e.prototype.sort=function(n){var i=this.slice();return i.sort.apply(i,arguments)},e.prototype.remove=function(n){var i=this.$mobx.dehanceValues(this.$mobx.values).indexOf(n);return i>-1?(this.splice(i,1),!0):!1},e.prototype.move=function(n,i){he("observableArray.move is deprecated, use .slice() & .replace() instead");function r(s){if(s<0)throw new Error("[mobx.array] Index out of bounds: "+s+" is negative");var m=this.$mobx.values.length;if(s>=m)throw new Error("[mobx.array] Index out of bounds: "+s+" is not smaller than "+m)}if(r.call(this,n),r.call(this,i),n!==i){var o=this.$mobx.values,a;n<i?a=Vi(o.slice(0,n),o.slice(n+1,i+1),[o[n]],o.slice(i+1)):a=Vi(o.slice(0,i),[o[n]],o.slice(i,n),o.slice(n+1)),this.replace(a)}},e.prototype.get=function(n){var i=this.$mobx;if(i){if(n<i.values.length)return i.atom.reportObserved(),i.dehanceValue(i.values[n]);console.warn("[mobx.array] Attempt to read an array index ("+n+") that is out of bounds ("+i.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},e.prototype.set=function(n,i){var r=this.$mobx,o=r.values;if(n<o.length){fi(r.atom);var a=o[n];if(ce(r)){var s=de(r,{type:"update",object:this,index:n,newValue:i});if(!s)return;i=s.newValue}i=r.enhancer(i,a);var m=i!==a;m&&(o[n]=i,r.notifyArrayChildUpdate(n,i,a))}else if(n===o.length)r.spliceWithArray(n,0,[i]);else throw new Error("[mobx.array] Index out of bounds, "+n+" is larger than "+o.length)},e})(Zi);Yi(be.prototype,function(){this.$mobx.atom.reportObserved();var t=this,e=0;return wt({next:function(){return e<t.length?{value:t[e++],done:!1}:{done:!0,value:void 0}}})});Object.defineProperty(be.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(t){this.$mobx.setArrayLength(t)}});Ge(be.prototype,Xi(),"Array");["every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some","toString","toLocaleString"].forEach(function(t){var e=Array.prototype[t];Nt(typeof e=="function","Base function not defined on Array prototype: '"+t+"'"),Ge(be.prototype,t,function(){return e.apply(this.peek(),arguments)})});Pr(be.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 z2=tr(0);function tr(t){return{enumerable:!1,configurable:!1,get:function(){return this.get(t)},set:function(e){this.set(t,e)}}}function L2(t){Object.defineProperty(be.prototype,""+t,tr(t))}function ir(t){for(var e=Ui;e<t;e++)L2(e);Ui=t}ir(1e3);var O2=Oe("ObservableArrayAdministration",er);function pi(t){return Wi(t)&&O2(t.$mobx)}var A2={},hi=(function(){function t(e,n,i){if(n===void 0&&(n=Dt),i===void 0&&(i="ObservableMap@"+Y()),this.enhancer=n,this.name=i,this.$mobx=A2,this._keys=new be(void 0,zt,this.name+".keys()",!0),typeof Map!="function")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 t.prototype._has=function(e){return this._data.has(e)},t.prototype.has=function(e){var n=this;if(!v.trackingDerivation)return this._has(e);var i=this._hasMap.get(e);if(!i){var r=i=new ze(this._has(e),zt,this.name+"."+ii(e)+"?",!1);this._hasMap.set(e,r),X1(r,function(){return n._hasMap.delete(e)})}return i.get()},t.prototype.set=function(e,n){var i=this._has(e);if(ce(this)){var r=de(this,{type:i?"update":"add",object:this,newValue:n,name:e});if(!r)return this;n=r.newValue}return i?this._updateValue(e,n):this._addValue(e,n),this},t.prototype.delete=function(e){var n=this;if(ce(this)){var i=de(this,{type:"delete",object:this,name:e});if(!i)return!1}if(this._has(e)){var r=B(),o=ie(this),i=o||r?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return r&&ee(K({},i,{name:this.name,key:e})),pe(function(){n._keys.remove(e),n._updateHasMapEntry(e,!1);var s=n._data.get(e);s.setNewValue(void 0),n._data.delete(e)}),o&&ne(this,i),r&&te(),!0}return!1},t.prototype._updateHasMapEntry=function(e,n){var i=this._hasMap.get(e);i&&i.setNewValue(n)},t.prototype._updateValue=function(e,n){var i=this._data.get(e);if(n=i.prepareNewValue(n),n!==v.UNCHANGED){var r=B(),o=ie(this),a=o||r?{type:"update",object:this,oldValue:i.value,name:e,newValue:n}:null;r&&ee(K({},a,{name:this.name,key:e})),i.setNewValue(n),o&&ne(this,a),r&&te()}},t.prototype._addValue=function(e,n){var i=this;pe(function(){var s=new ze(n,i.enhancer,i.name+"."+ii(e),!1);i._data.set(e,s),n=s.value,i._updateHasMapEntry(e,!0),i._keys.push(e)});var r=B(),o=ie(this),a=o||r?{type:"add",object:this,name:e,newValue:n}:null;r&&ee(K({},a,{name:this.name,key:e})),o&&ne(this,a),r&&te()},t.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},t.prototype.dehanceValue=function(e){return this.dehancer!==void 0?this.dehancer(e):e},t.prototype.keys=function(){return this._keys[Ki()]()},t.prototype.values=function(){var e=this,n=0;return wt({next:function(){return n<e._keys.length?{value:e.get(e._keys[n++]),done:!1}:{value:void 0,done:!0}}})},t.prototype.entries=function(){var e=this,n=0;return wt({next:function(){if(n<e._keys.length){var i=e._keys[n++];return{value:[i,e.get(i)],done:!1}}return{done:!0}}})},t.prototype.forEach=function(e,n){var i=this;this._keys.forEach(function(r){return e.call(n,i.get(r),r,i)})},t.prototype.merge=function(e){var n=this;return qe(e)&&(e=e.toJS()),pe(function(){pt(e)?Object.keys(e).forEach(function(i){return n.set(i,e[i])}):Array.isArray(e)?e.forEach(function(i){var r=L1(i,2),o=r[0],a=r[1];return n.set(o,a)}):ht(e)?e.constructor!==Map?T("Cannot initialize from classes that inherit from Map: "+e.constructor.name):e.forEach(function(i,r){return n.set(r,i)}):e!=null&&T("Cannot initialize map from "+e)}),this},t.prototype.clear=function(){var e=this;pe(function(){F1(function(){e._keys.slice().forEach(function(n){return e.delete(n)})})})},t.prototype.replace=function(e){var n=this;return pe(function(){for(var i=Rr(e),r=n._keys,o=Array.from(i.keys()),a=!1,s=0;s<r.length;s++){var m=r[s];r.length===o.length&&m!==o[s]&&(a=!0),i.has(m)||(a=!0,n.delete(m))}i.forEach(function(C,A){n._data.has(A)||(a=!0),n.set(A,C)}),a&&n._keys.replace(o)}),this},Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.toPOJO=function(){var e=this,n={};return this._keys.forEach(function(i){return n[typeof i=="symbol"?i:ii(i)]=e.get(i)}),n},t.prototype.toJS=function(){var e=this,n=new Map;return this._keys.forEach(function(i){return n.set(i,e.get(i))}),n},t.prototype.toJSON=function(){return this.toPOJO()},t.prototype.toString=function(){var e=this;return this.name+"[{ "+this._keys.map(function(n){return ii(n)+": "+(""+e.get(n))}).join(", ")+" }]"},t.prototype.observe=function(e,n){return Rt(this,e)},t.prototype.intercept=function(e){return It(this,e)},t})();function ii(t){return t&&t.toString?t.toString():new String(t).toString()}Yi(hi.prototype,function(){return this.entries()});Ot(hi.prototype,Xi(),"Map");var qe=Oe("ObservableMap",hi),D2={},mi=(function(){function t(e,n,i){if(n===void 0&&(n=Dt),i===void 0&&(i="ObservableSet@"+Y()),this.name=i,this.$mobx=D2,this._data=new Set,this._atom=Vr(this.name),typeof Set!="function")throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(r,o){return n(r,o,i)},e&&this.replace(e)}return t.prototype.dehanceValue=function(e){return this.dehancer!==void 0?this.dehancer(e):e},t.prototype.clear=function(){var e=this;pe(function(){F1(function(){e._data.forEach(function(n){e.delete(n)})})})},t.prototype.forEach=function(e,n){var i=this;this._data.forEach(function(r){e.call(n,r,r,i)})},Object.defineProperty(t.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),t.prototype.add=function(e){var n=this;if(fi(this._atom),ce(this)){var i=de(this,{type:"add",object:this,newValue:e});if(!i)return this}if(!this.has(e)){pe(function(){n._data.add(n.enhancer(e,void 0)),n._atom.reportChanged()});var r=B(),o=ie(this),i=o||r?{type:"add",object:this,newValue:e}:null;o&&ne(this,i)}return this},t.prototype.delete=function(e){var n=this;if(ce(this)){var i=de(this,{type:"delete",object:this,oldValue:e});if(!i)return!1}if(this.has(e)){var r=B(),o=ie(this),i=o||r?{type:"delete",object:this,oldValue:e}:null;return pe(function(){n._atom.reportChanged(),n._data.delete(e)}),o&&ne(this,i),!0}return!1},t.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},t.prototype.entries=function(){var e=0,n=ft(this.keys()),i=ft(this.values());return wt({next:function(){var r=e;return e+=1,r<i.length?{value:[n[r],i[r]],done:!1}:{done:!0}}})},t.prototype.keys=function(){return this.values()},t.prototype.values=function(){this._atom.reportObserved();var e=this,n=0,i;return this._data.values!==void 0?i=ft(this._data.values()):(i=[],this._data.forEach(function(r){return i.push(r)})),wt({next:function(){return n<i.length?{value:e.dehanceValue(i[n++]),done:!1}:{done:!0}}})},t.prototype.replace=function(e){var n=this;return vt(e)&&(e=e.toJS()),pe(function(){Array.isArray(e)?(n.clear(),e.forEach(function(i){return n.add(i)})):At(e)?(n.clear(),e.forEach(function(i){return n.add(i)})):e!=null&&T("Cannot initialize set from "+e)}),this},t.prototype.observe=function(e,n){return Rt(this,e)},t.prototype.intercept=function(e){return It(this,e)},t.prototype.toJS=function(){return new Set(this)},t.prototype.toString=function(){return this.name+"[ "+ft(this.keys()).join(", ")+" ]"},t})();Yi(mi.prototype,function(){return this.values()});Ot(mi.prototype,Xi(),"Set");var vt=Oe("ObservableSet",mi),nr=(function(){function t(e,n,i){this.target=e,this.name=n,this.defaultEnhancer=i,this.values={}}return t.prototype.read=function(e,n){if(!(this.target!==e&&(this.illegalAccess(e,n),!this.values[n])))return this.values[n].get()},t.prototype.write=function(e,n,i){var r=this.target;r!==e&&this.illegalAccess(e,n);var o=this.values[n];if(o instanceof Le){o.set(i);return}if(ce(this)){var a=de(this,{type:"update",object:r,name:n,newValue:i});if(!a)re