@nizza/core 0.3.0-alpha.10 → 0.3.0-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +1134 -1112
- package/dist/lib/stores/NizzaStore.d.ts +3 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Yn = Object.defineProperty, Qn = Object.defineProperties;
|
|
2
|
+
var Zn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ee = Object.getOwnPropertySymbols;
|
|
4
|
+
var At = Object.prototype.hasOwnProperty, wt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var et = (e, t, i) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, le = (e, t) => {
|
|
6
6
|
for (var i in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var i of
|
|
10
|
-
|
|
7
|
+
At.call(t, i) && et(e, i, t[i]);
|
|
8
|
+
if (Ee)
|
|
9
|
+
for (var i of Ee(t))
|
|
10
|
+
wt.call(t, i) && et(e, i, t[i]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, Ft = (e, t) => Qn(e, Zn(t));
|
|
13
|
+
var Et = (e, t) => {
|
|
14
14
|
var i = {};
|
|
15
15
|
for (var n in e)
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var n of
|
|
19
|
-
t.indexOf(n) < 0 &&
|
|
16
|
+
At.call(e, n) && t.indexOf(n) < 0 && (i[n] = e[n]);
|
|
17
|
+
if (e != null && Ee)
|
|
18
|
+
for (var n of Ee(e))
|
|
19
|
+
t.indexOf(n) < 0 && wt.call(e, n) && (i[n] = e[n]);
|
|
20
20
|
return i;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
import { jsx as
|
|
24
|
-
import { createContext as
|
|
25
|
-
import
|
|
26
|
-
var
|
|
27
|
-
class
|
|
22
|
+
var g = (e, t, i) => (et(e, typeof t != "symbol" ? t + "" : t, i), i);
|
|
23
|
+
import { jsx as ot } from "react/jsx-runtime";
|
|
24
|
+
import { createContext as ei, useContext as Xt, useMemo as ti, lazy as ni, Suspense as ii } from "react";
|
|
25
|
+
import Ct from "js-cookie";
|
|
26
|
+
var ai = /* @__PURE__ */ ((e) => (e.COMBO = "Combo", e))(ai || {});
|
|
27
|
+
class ri {
|
|
28
28
|
constructor(t) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
g(this, "aggregate");
|
|
30
|
+
g(this, "_numSetPropsApplied", 0);
|
|
31
31
|
this.aggregate = t;
|
|
32
32
|
}
|
|
33
33
|
setProps(t) {
|
|
@@ -39,32 +39,32 @@ class ii {
|
|
|
39
39
|
return this._numSetPropsApplied === 1;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return new
|
|
42
|
+
function mr(e) {
|
|
43
|
+
return new ri(e);
|
|
44
44
|
}
|
|
45
|
-
class
|
|
45
|
+
class hr {
|
|
46
46
|
}
|
|
47
|
-
class
|
|
47
|
+
class _r {
|
|
48
48
|
constructor(t) {
|
|
49
|
-
|
|
49
|
+
g(this, "_value");
|
|
50
50
|
t !== void 0 && (this._value = t);
|
|
51
51
|
}
|
|
52
52
|
get value() {
|
|
53
53
|
return this._value;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
class
|
|
56
|
+
class Ge extends Error {
|
|
57
57
|
constructor(t, i, n) {
|
|
58
58
|
super(i), this.value = n, this.name = t;
|
|
59
59
|
}
|
|
60
60
|
toDTO() {
|
|
61
|
-
return
|
|
61
|
+
return le({
|
|
62
62
|
name: this.name,
|
|
63
63
|
message: this.message
|
|
64
64
|
}, this.value && { value: this.value });
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
class
|
|
67
|
+
class pr extends Ge {
|
|
68
68
|
constructor(t) {
|
|
69
69
|
super(
|
|
70
70
|
"RESOURCE_NOT_FOUND_ERROR",
|
|
@@ -73,7 +73,7 @@ class _a extends Ue {
|
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
class
|
|
76
|
+
class kr extends Ge {
|
|
77
77
|
constructor(t) {
|
|
78
78
|
var i;
|
|
79
79
|
super(
|
|
@@ -83,12 +83,12 @@ class pa extends Ue {
|
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
class
|
|
86
|
+
class br extends Ge {
|
|
87
87
|
constructor() {
|
|
88
88
|
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
class
|
|
91
|
+
class oi extends Ge {
|
|
92
92
|
constructor(t) {
|
|
93
93
|
super(
|
|
94
94
|
"INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
|
|
@@ -116,50 +116,50 @@ class ri extends Ue {
|
|
|
116
116
|
);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
let
|
|
120
|
-
const
|
|
121
|
-
const i =
|
|
122
|
-
const
|
|
123
|
-
return t.forEach((
|
|
119
|
+
let ht = /* @__PURE__ */ new Map();
|
|
120
|
+
const st = ei(ht), gr = ({ children: e, stores: t }) => {
|
|
121
|
+
const i = Xt(st), n = ti(() => {
|
|
122
|
+
const a = /* @__PURE__ */ new Map();
|
|
123
|
+
return t.forEach((r) => a.set(r.class, r.value)), ht = new Map([...i, ...a]);
|
|
124
124
|
}, []);
|
|
125
|
-
return /* @__PURE__ */
|
|
125
|
+
return /* @__PURE__ */ ot(st.Provider, { value: n, children: e });
|
|
126
126
|
};
|
|
127
|
-
function
|
|
128
|
-
return
|
|
127
|
+
function yr(e) {
|
|
128
|
+
return Xt(st).get(e);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return
|
|
130
|
+
function Sr(e) {
|
|
131
|
+
return ht.get(e);
|
|
132
132
|
}
|
|
133
133
|
function m(e) {
|
|
134
134
|
for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
135
135
|
i[n - 1] = arguments[n];
|
|
136
136
|
throw new Error(typeof e == "number" ? "[MobX] minified error nr: " + e + (i.length ? " " + i.map(String).join(",") : "") + ". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts" : "[MobX] " + e);
|
|
137
137
|
}
|
|
138
|
-
var
|
|
139
|
-
function Ht() {
|
|
140
|
-
return typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : ai;
|
|
141
|
-
}
|
|
142
|
-
var oi = Object.assign, je = Object.getOwnPropertyDescriptor, V = Object.defineProperty, Ge = Object.prototype, ot = [];
|
|
143
|
-
Object.freeze(ot);
|
|
144
|
-
var Xt = {};
|
|
145
|
-
Object.freeze(Xt);
|
|
146
|
-
var si = typeof Proxy != "undefined", ui = /* @__PURE__ */ Object.toString();
|
|
138
|
+
var si = {};
|
|
147
139
|
function Jt() {
|
|
148
|
-
|
|
140
|
+
return typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : si;
|
|
141
|
+
}
|
|
142
|
+
var ui = Object.assign, Ve = Object.getOwnPropertyDescriptor, R = Object.defineProperty, $e = Object.prototype, ut = [];
|
|
143
|
+
Object.freeze(ut);
|
|
144
|
+
var Yt = {};
|
|
145
|
+
Object.freeze(Yt);
|
|
146
|
+
var li = typeof Proxy != "undefined", di = /* @__PURE__ */ Object.toString();
|
|
147
|
+
function Qt() {
|
|
148
|
+
li || m("Proxy not available");
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Zt(e) {
|
|
151
151
|
var t = !1;
|
|
152
152
|
return function() {
|
|
153
153
|
if (!t)
|
|
154
154
|
return t = !0, e.apply(this, arguments);
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
|
-
var
|
|
157
|
+
var Q = function() {
|
|
158
158
|
};
|
|
159
|
-
function
|
|
159
|
+
function C(e) {
|
|
160
160
|
return typeof e == "function";
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function q(e) {
|
|
163
163
|
var t = typeof e;
|
|
164
164
|
switch (t) {
|
|
165
165
|
case "string":
|
|
@@ -169,134 +169,134 @@ function K(e) {
|
|
|
169
169
|
}
|
|
170
170
|
return !1;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Ke(e) {
|
|
173
173
|
return e !== null && typeof e == "object";
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
if (
|
|
175
|
+
function I(e) {
|
|
176
|
+
if (!Ke(e))
|
|
177
177
|
return !1;
|
|
178
178
|
var t = Object.getPrototypeOf(e);
|
|
179
179
|
if (t == null)
|
|
180
180
|
return !0;
|
|
181
181
|
var i = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
182
|
-
return typeof i == "function" && i.toString() ===
|
|
182
|
+
return typeof i == "function" && i.toString() === di;
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function en(e) {
|
|
185
185
|
var t = e == null ? void 0 : e.constructor;
|
|
186
186
|
return t ? t.name === "GeneratorFunction" || t.displayName === "GeneratorFunction" : !1;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
|
|
188
|
+
function qe(e, t, i) {
|
|
189
|
+
R(e, t, {
|
|
190
190
|
enumerable: !1,
|
|
191
191
|
writable: !0,
|
|
192
192
|
configurable: !0,
|
|
193
193
|
value: i
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
|
|
196
|
+
function tn(e, t, i) {
|
|
197
|
+
R(e, t, {
|
|
198
198
|
enumerable: !1,
|
|
199
199
|
writable: !1,
|
|
200
200
|
configurable: !0,
|
|
201
201
|
value: i
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function H(e, t) {
|
|
205
205
|
var i = "isMobX" + e;
|
|
206
206
|
return t.prototype[i] = !0, function(n) {
|
|
207
|
-
return
|
|
207
|
+
return Ke(n) && n[i] === !0;
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
210
|
function re(e) {
|
|
211
211
|
return e instanceof Map;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function be(e) {
|
|
214
214
|
return e instanceof Set;
|
|
215
215
|
}
|
|
216
|
-
var
|
|
217
|
-
function
|
|
216
|
+
var nn = typeof Object.getOwnPropertySymbols != "undefined";
|
|
217
|
+
function ci(e) {
|
|
218
218
|
var t = Object.keys(e);
|
|
219
|
-
if (!
|
|
219
|
+
if (!nn)
|
|
220
220
|
return t;
|
|
221
221
|
var i = Object.getOwnPropertySymbols(e);
|
|
222
222
|
return i.length ? [].concat(t, i.filter(function(n) {
|
|
223
|
-
return
|
|
223
|
+
return $e.propertyIsEnumerable.call(e, n);
|
|
224
224
|
})) : t;
|
|
225
225
|
}
|
|
226
|
-
var
|
|
226
|
+
var fe = typeof Reflect != "undefined" && Reflect.ownKeys ? Reflect.ownKeys : nn ? function(e) {
|
|
227
227
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
228
228
|
} : (
|
|
229
229
|
/* istanbul ignore next */
|
|
230
230
|
Object.getOwnPropertyNames
|
|
231
231
|
);
|
|
232
|
-
function
|
|
232
|
+
function an(e) {
|
|
233
233
|
return e === null ? null : typeof e == "object" ? "" + e : e;
|
|
234
234
|
}
|
|
235
235
|
function M(e, t) {
|
|
236
|
-
return
|
|
236
|
+
return $e.hasOwnProperty.call(e, t);
|
|
237
237
|
}
|
|
238
|
-
var
|
|
238
|
+
var fi = Object.getOwnPropertyDescriptors || function(t) {
|
|
239
239
|
var i = {};
|
|
240
|
-
return
|
|
241
|
-
i[n] =
|
|
240
|
+
return fe(t).forEach(function(n) {
|
|
241
|
+
i[n] = Ve(t, n);
|
|
242
242
|
}), i;
|
|
243
243
|
};
|
|
244
|
-
function
|
|
244
|
+
function Tt(e, t) {
|
|
245
245
|
for (var i = 0; i < t.length; i++) {
|
|
246
246
|
var n = t[i];
|
|
247
247
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
return t &&
|
|
250
|
+
function _t(e, t, i) {
|
|
251
|
+
return t && Tt(e.prototype, t), i && Tt(e, i), Object.defineProperty(e, "prototype", {
|
|
252
252
|
writable: !1
|
|
253
253
|
}), e;
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
return
|
|
255
|
+
function ve() {
|
|
256
|
+
return ve = Object.assign || function(e) {
|
|
257
257
|
for (var t = 1; t < arguments.length; t++) {
|
|
258
258
|
var i = arguments[t];
|
|
259
259
|
for (var n in i)
|
|
260
260
|
Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
|
|
261
261
|
}
|
|
262
262
|
return e;
|
|
263
|
-
},
|
|
263
|
+
}, ve.apply(this, arguments);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e,
|
|
265
|
+
function rn(e, t) {
|
|
266
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, lt(e, t);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
return
|
|
270
|
-
return n.__proto__ =
|
|
271
|
-
},
|
|
268
|
+
function lt(e, t) {
|
|
269
|
+
return lt = Object.setPrototypeOf || function(n, a) {
|
|
270
|
+
return n.__proto__ = a, n;
|
|
271
|
+
}, lt(e, t);
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function Pt(e) {
|
|
274
274
|
if (e === void 0)
|
|
275
275
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
276
276
|
return e;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function vi(e, t) {
|
|
279
279
|
if (e) {
|
|
280
280
|
if (typeof e == "string")
|
|
281
|
-
return
|
|
281
|
+
return Dt(e, t);
|
|
282
282
|
var i = Object.prototype.toString.call(e).slice(8, -1);
|
|
283
283
|
if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set")
|
|
284
284
|
return Array.from(e);
|
|
285
285
|
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))
|
|
286
|
-
return
|
|
286
|
+
return Dt(e, t);
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function Dt(e, t) {
|
|
290
290
|
(t == null || t > e.length) && (t = e.length);
|
|
291
291
|
for (var i = 0, n = new Array(t); i < t; i++)
|
|
292
292
|
n[i] = e[i];
|
|
293
293
|
return n;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Z(e, t) {
|
|
296
296
|
var i = typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
297
297
|
if (i)
|
|
298
298
|
return (i = i.call(e)).next.bind(i);
|
|
299
|
-
if (Array.isArray(e) || (i =
|
|
299
|
+
if (Array.isArray(e) || (i = vi(e)) || t && e && typeof e.length == "number") {
|
|
300
300
|
i && (e = i);
|
|
301
301
|
var n = 0;
|
|
302
302
|
return function() {
|
|
@@ -311,17 +311,17 @@ function Q(e, t) {
|
|
|
311
311
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
312
312
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
313
313
|
}
|
|
314
|
-
var
|
|
315
|
-
function
|
|
314
|
+
var ee = /* @__PURE__ */ Symbol("mobx-stored-annotations");
|
|
315
|
+
function D(e) {
|
|
316
316
|
function t(i, n) {
|
|
317
|
-
|
|
317
|
+
ge(i, n, e);
|
|
318
318
|
}
|
|
319
319
|
return Object.assign(t, e);
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
M(e,
|
|
321
|
+
function ge(e, t, i) {
|
|
322
|
+
M(e, ee) || qe(e, ee, ve({}, e[ee])), yi(i) || (e[ee][t] = i);
|
|
323
323
|
}
|
|
324
|
-
var f = /* @__PURE__ */ Symbol("mobx administration"),
|
|
324
|
+
var f = /* @__PURE__ */ Symbol("mobx administration"), ye = /* @__PURE__ */ function() {
|
|
325
325
|
function e(i) {
|
|
326
326
|
i === void 0 && (i = "Atom"), this.name_ = void 0, this.isPendingUnobservation_ = !1, this.isBeingObserved_ = !1, this.observers_ = /* @__PURE__ */ new Set(), this.diffValue_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = v.NOT_TRACKING_, this.onBOL = void 0, this.onBUOL = void 0, this.name_ = i;
|
|
327
327
|
}
|
|
@@ -335,56 +335,56 @@ var f = /* @__PURE__ */ Symbol("mobx administration"), ge = /* @__PURE__ */ func
|
|
|
335
335
|
return n();
|
|
336
336
|
});
|
|
337
337
|
}, t.reportObserved = function() {
|
|
338
|
-
return
|
|
338
|
+
return On(this);
|
|
339
339
|
}, t.reportChanged = function() {
|
|
340
|
-
S(),
|
|
340
|
+
S(), An(this), N();
|
|
341
341
|
}, t.toString = function() {
|
|
342
342
|
return this.name_;
|
|
343
343
|
}, e;
|
|
344
|
-
}(),
|
|
345
|
-
function
|
|
346
|
-
t === void 0 && (t =
|
|
347
|
-
var n = new
|
|
348
|
-
return t !==
|
|
344
|
+
}(), pt = /* @__PURE__ */ H("Atom", ye);
|
|
345
|
+
function on(e, t, i) {
|
|
346
|
+
t === void 0 && (t = Q), i === void 0 && (i = Q);
|
|
347
|
+
var n = new ye(e);
|
|
348
|
+
return t !== Q && ga(n, t), i !== Q && Dn(n, i), n;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function mi(e, t) {
|
|
351
351
|
return e === t;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
return
|
|
353
|
+
function hi(e, t) {
|
|
354
|
+
return Nt(e, t);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
return
|
|
356
|
+
function _i(e, t) {
|
|
357
|
+
return Nt(e, t, 1);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function pi(e, t) {
|
|
360
360
|
return Object.is ? Object.is(e, t) : e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
361
361
|
}
|
|
362
|
-
var
|
|
363
|
-
identity:
|
|
364
|
-
structural:
|
|
365
|
-
default:
|
|
366
|
-
shallow:
|
|
362
|
+
var Re = {
|
|
363
|
+
identity: mi,
|
|
364
|
+
structural: hi,
|
|
365
|
+
default: pi,
|
|
366
|
+
shallow: _i
|
|
367
367
|
};
|
|
368
|
-
function
|
|
369
|
-
return
|
|
368
|
+
function ie(e, t, i) {
|
|
369
|
+
return Rn(e) ? e : Array.isArray(e) ? b.array(e, {
|
|
370
370
|
name: i
|
|
371
|
-
}) :
|
|
371
|
+
}) : I(e) ? b.object(e, void 0, {
|
|
372
372
|
name: i
|
|
373
373
|
}) : re(e) ? b.map(e, {
|
|
374
374
|
name: i
|
|
375
|
-
}) :
|
|
375
|
+
}) : be(e) ? b.set(e, {
|
|
376
376
|
name: i
|
|
377
|
-
}) : typeof e == "function" && !
|
|
377
|
+
}) : typeof e == "function" && !gt(e) && !ze(e) ? en(e) ? _e(e) : he(i, e) : e;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
if (e == null ||
|
|
379
|
+
function ki(e, t, i) {
|
|
380
|
+
if (e == null || pe(e) || Ye(e) || X(e) || se(e))
|
|
381
381
|
return e;
|
|
382
382
|
if (Array.isArray(e))
|
|
383
383
|
return b.array(e, {
|
|
384
384
|
name: i,
|
|
385
385
|
deep: !1
|
|
386
386
|
});
|
|
387
|
-
if (
|
|
387
|
+
if (I(e))
|
|
388
388
|
return b.object(e, void 0, {
|
|
389
389
|
name: i,
|
|
390
390
|
deep: !1
|
|
@@ -394,58 +394,58 @@ function _i(e, t, i) {
|
|
|
394
394
|
name: i,
|
|
395
395
|
deep: !1
|
|
396
396
|
});
|
|
397
|
-
if (
|
|
397
|
+
if (be(e))
|
|
398
398
|
return b.set(e, {
|
|
399
399
|
name: i,
|
|
400
400
|
deep: !1
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function We(e) {
|
|
404
404
|
return e;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
return
|
|
406
|
+
function bi(e, t) {
|
|
407
|
+
return Nt(e, t) ? t : e;
|
|
408
408
|
}
|
|
409
|
-
var
|
|
410
|
-
function
|
|
411
|
-
return e.annotationType_ ===
|
|
409
|
+
var gi = "override";
|
|
410
|
+
function yi(e) {
|
|
411
|
+
return e.annotationType_ === gi;
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Se(e, t) {
|
|
414
414
|
return {
|
|
415
415
|
annotationType_: e,
|
|
416
416
|
options_: t,
|
|
417
|
-
make_:
|
|
418
|
-
extend_:
|
|
417
|
+
make_: Si,
|
|
418
|
+
extend_: Ni
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
var
|
|
423
|
-
if ((
|
|
421
|
+
function Si(e, t, i, n) {
|
|
422
|
+
var a;
|
|
423
|
+
if ((a = this.options_) != null && a.bound)
|
|
424
424
|
return this.extend_(e, t, i, !1) === null ? 0 : 1;
|
|
425
425
|
if (n === e.target_)
|
|
426
426
|
return this.extend_(e, t, i, !1) === null ? 0 : 2;
|
|
427
|
-
if (
|
|
427
|
+
if (gt(i.value))
|
|
428
428
|
return 1;
|
|
429
|
-
var
|
|
430
|
-
return
|
|
429
|
+
var r = sn(e, this, t, i, !1);
|
|
430
|
+
return R(n, t, r), 2;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
433
|
-
var
|
|
434
|
-
return e.defineProperty_(t,
|
|
432
|
+
function Ni(e, t, i, n) {
|
|
433
|
+
var a = sn(e, this, t, i);
|
|
434
|
+
return e.defineProperty_(t, a, n);
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function Oi(e, t, i, n) {
|
|
437
437
|
t.annotationType_, n.value;
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
var
|
|
441
|
-
|
|
439
|
+
function sn(e, t, i, n, a) {
|
|
440
|
+
var r, o, s, u, l, c, h;
|
|
441
|
+
a === void 0 && (a = d.safeDescriptors), Oi(e, t, i, n);
|
|
442
442
|
var _ = n.value;
|
|
443
|
-
if ((
|
|
444
|
-
var
|
|
445
|
-
_ = _.bind((
|
|
443
|
+
if ((r = t.options_) != null && r.bound) {
|
|
444
|
+
var x;
|
|
445
|
+
_ = _.bind((x = e.proxy_) != null ? x : e.target_);
|
|
446
446
|
}
|
|
447
447
|
return {
|
|
448
|
-
value:
|
|
448
|
+
value: ae(
|
|
449
449
|
(o = (s = t.options_) == null ? void 0 : s.name) != null ? o : i.toString(),
|
|
450
450
|
_,
|
|
451
451
|
(u = (l = t.options_) == null ? void 0 : l.autoAction) != null ? u : !1,
|
|
@@ -454,44 +454,44 @@ function an(e, t, i, n, r) {
|
|
|
454
454
|
),
|
|
455
455
|
// Non-configurable for classes
|
|
456
456
|
// prevents accidental field redefinition in subclass
|
|
457
|
-
configurable:
|
|
457
|
+
configurable: a ? e.isPlainObject_ : !0,
|
|
458
458
|
// https://github.com/mobxjs/mobx/pull/2641#issuecomment-737292058
|
|
459
459
|
enumerable: !1,
|
|
460
460
|
// Non-obsevable, therefore non-writable
|
|
461
461
|
// Also prevents rewriting in subclass constructor
|
|
462
|
-
writable: !
|
|
462
|
+
writable: !a
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function un(e, t) {
|
|
466
466
|
return {
|
|
467
467
|
annotationType_: e,
|
|
468
468
|
options_: t,
|
|
469
|
-
make_:
|
|
470
|
-
extend_:
|
|
469
|
+
make_: Ai,
|
|
470
|
+
extend_: wi
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
|
-
function
|
|
474
|
-
var
|
|
473
|
+
function Ai(e, t, i, n) {
|
|
474
|
+
var a;
|
|
475
475
|
if (n === e.target_)
|
|
476
476
|
return this.extend_(e, t, i, !1) === null ? 0 : 2;
|
|
477
|
-
if ((
|
|
477
|
+
if ((a = this.options_) != null && a.bound && (!M(e.target_, t) || !ze(e.target_[t])) && this.extend_(e, t, i, !1) === null)
|
|
478
478
|
return 0;
|
|
479
|
-
if (
|
|
479
|
+
if (ze(i.value))
|
|
480
480
|
return 1;
|
|
481
|
-
var
|
|
482
|
-
return
|
|
481
|
+
var r = ln(e, this, t, i, !1, !1);
|
|
482
|
+
return R(n, t, r), 2;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
var
|
|
486
|
-
return e.defineProperty_(t,
|
|
484
|
+
function wi(e, t, i, n) {
|
|
485
|
+
var a, r = ln(e, this, t, i, (a = this.options_) == null ? void 0 : a.bound);
|
|
486
|
+
return e.defineProperty_(t, r, n);
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Fi(e, t, i, n) {
|
|
489
489
|
t.annotationType_, n.value;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
492
|
-
|
|
491
|
+
function ln(e, t, i, n, a, r) {
|
|
492
|
+
r === void 0 && (r = d.safeDescriptors), Fi(e, t, i, n);
|
|
493
493
|
var o = n.value;
|
|
494
|
-
if (
|
|
494
|
+
if (ze(o) || (o = _e(o)), a) {
|
|
495
495
|
var s;
|
|
496
496
|
o = o.bind((s = e.proxy_) != null ? s : e.target_), o.isMobXFlow = !0;
|
|
497
497
|
}
|
|
@@ -499,284 +499,284 @@ function sn(e, t, i, n, r, a) {
|
|
|
499
499
|
value: o,
|
|
500
500
|
// Non-configurable for classes
|
|
501
501
|
// prevents accidental field redefinition in subclass
|
|
502
|
-
configurable:
|
|
502
|
+
configurable: r ? e.isPlainObject_ : !0,
|
|
503
503
|
// https://github.com/mobxjs/mobx/pull/2641#issuecomment-737292058
|
|
504
504
|
enumerable: !1,
|
|
505
505
|
// Non-obsevable, therefore non-writable
|
|
506
506
|
// Also prevents rewriting in subclass constructor
|
|
507
|
-
writable: !
|
|
507
|
+
writable: !r
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function kt(e, t) {
|
|
511
511
|
return {
|
|
512
512
|
annotationType_: e,
|
|
513
513
|
options_: t,
|
|
514
|
-
make_:
|
|
515
|
-
extend_:
|
|
514
|
+
make_: Ei,
|
|
515
|
+
extend_: Ci
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function Ei(e, t, i) {
|
|
519
519
|
return this.extend_(e, t, i, !1) === null ? 0 : 1;
|
|
520
520
|
}
|
|
521
|
-
function
|
|
522
|
-
return
|
|
521
|
+
function Ci(e, t, i, n) {
|
|
522
|
+
return Ti(e, this, t, i), e.defineComputedProperty_(t, ve({}, this.options_, {
|
|
523
523
|
get: i.get,
|
|
524
524
|
set: i.set
|
|
525
525
|
}), n);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function Ti(e, t, i, n) {
|
|
528
528
|
t.annotationType_, n.get;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function He(e, t) {
|
|
531
531
|
return {
|
|
532
532
|
annotationType_: e,
|
|
533
533
|
options_: t,
|
|
534
|
-
make_:
|
|
535
|
-
extend_:
|
|
534
|
+
make_: Pi,
|
|
535
|
+
extend_: Di
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Pi(e, t, i) {
|
|
539
539
|
return this.extend_(e, t, i, !1) === null ? 0 : 1;
|
|
540
540
|
}
|
|
541
|
-
function
|
|
542
|
-
var
|
|
543
|
-
return
|
|
541
|
+
function Di(e, t, i, n) {
|
|
542
|
+
var a, r;
|
|
543
|
+
return ji(e, this), e.defineObservableProperty_(t, i.value, (a = (r = this.options_) == null ? void 0 : r.enhancer) != null ? a : ie, n);
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function ji(e, t, i, n) {
|
|
546
546
|
t.annotationType_;
|
|
547
547
|
}
|
|
548
|
-
var
|
|
549
|
-
function
|
|
548
|
+
var xi = "true", Vi = /* @__PURE__ */ dn();
|
|
549
|
+
function dn(e) {
|
|
550
550
|
return {
|
|
551
|
-
annotationType_:
|
|
551
|
+
annotationType_: xi,
|
|
552
552
|
options_: e,
|
|
553
|
-
make_:
|
|
554
|
-
extend_:
|
|
553
|
+
make_: Ri,
|
|
554
|
+
extend_: Ii
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
function
|
|
558
|
-
var
|
|
557
|
+
function Ri(e, t, i, n) {
|
|
558
|
+
var a, r;
|
|
559
559
|
if (i.get)
|
|
560
|
-
return
|
|
560
|
+
return Xe.make_(e, t, i, n);
|
|
561
561
|
if (i.set) {
|
|
562
|
-
var o =
|
|
562
|
+
var o = ae(t.toString(), i.set);
|
|
563
563
|
return n === e.target_ ? e.defineProperty_(t, {
|
|
564
564
|
configurable: d.safeDescriptors ? e.isPlainObject_ : !0,
|
|
565
565
|
set: o
|
|
566
|
-
}) === null ? 0 : 2 : (
|
|
566
|
+
}) === null ? 0 : 2 : (R(n, t, {
|
|
567
567
|
configurable: !0,
|
|
568
568
|
set: o
|
|
569
569
|
}), 2);
|
|
570
570
|
}
|
|
571
571
|
if (n !== e.target_ && typeof i.value == "function") {
|
|
572
572
|
var s;
|
|
573
|
-
if (
|
|
574
|
-
var u, l = (u = this.options_) != null && u.autoBind ?
|
|
573
|
+
if (en(i.value)) {
|
|
574
|
+
var u, l = (u = this.options_) != null && u.autoBind ? _e.bound : _e;
|
|
575
575
|
return l.make_(e, t, i, n);
|
|
576
576
|
}
|
|
577
|
-
var c = (s = this.options_) != null && s.autoBind ?
|
|
577
|
+
var c = (s = this.options_) != null && s.autoBind ? he.bound : he;
|
|
578
578
|
return c.make_(e, t, i, n);
|
|
579
579
|
}
|
|
580
|
-
var h = ((
|
|
581
|
-
if (typeof i.value == "function" && (
|
|
580
|
+
var h = ((a = this.options_) == null ? void 0 : a.deep) === !1 ? b.ref : b;
|
|
581
|
+
if (typeof i.value == "function" && (r = this.options_) != null && r.autoBind) {
|
|
582
582
|
var _;
|
|
583
583
|
i.value = i.value.bind((_ = e.proxy_) != null ? _ : e.target_);
|
|
584
584
|
}
|
|
585
585
|
return h.make_(e, t, i, n);
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
var
|
|
587
|
+
function Ii(e, t, i, n) {
|
|
588
|
+
var a, r;
|
|
589
589
|
if (i.get)
|
|
590
|
-
return
|
|
590
|
+
return Xe.extend_(e, t, i, n);
|
|
591
591
|
if (i.set)
|
|
592
592
|
return e.defineProperty_(t, {
|
|
593
593
|
configurable: d.safeDescriptors ? e.isPlainObject_ : !0,
|
|
594
|
-
set:
|
|
594
|
+
set: ae(t.toString(), i.set)
|
|
595
595
|
}, n);
|
|
596
|
-
if (typeof i.value == "function" && (
|
|
596
|
+
if (typeof i.value == "function" && (a = this.options_) != null && a.autoBind) {
|
|
597
597
|
var o;
|
|
598
598
|
i.value = i.value.bind((o = e.proxy_) != null ? o : e.target_);
|
|
599
599
|
}
|
|
600
|
-
var s = ((
|
|
600
|
+
var s = ((r = this.options_) == null ? void 0 : r.deep) === !1 ? b.ref : b;
|
|
601
601
|
return s.extend_(e, t, i, n);
|
|
602
602
|
}
|
|
603
|
-
var
|
|
603
|
+
var Bi = "observable", Li = "observable.ref", zi = "observable.shallow", Mi = "observable.struct", cn = {
|
|
604
604
|
deep: !0,
|
|
605
605
|
name: void 0,
|
|
606
606
|
defaultDecorator: void 0,
|
|
607
607
|
proxy: !0
|
|
608
608
|
};
|
|
609
|
-
Object.freeze(
|
|
610
|
-
function Ee(e) {
|
|
611
|
-
return e || ln;
|
|
612
|
-
}
|
|
613
|
-
var dn = /* @__PURE__ */ qe(Ri), Mi = /* @__PURE__ */ qe(Ii, {
|
|
614
|
-
enhancer: Ke
|
|
615
|
-
}), Ui = /* @__PURE__ */ qe(Bi, {
|
|
616
|
-
enhancer: _i
|
|
617
|
-
}), Gi = /* @__PURE__ */ qe(Li, {
|
|
618
|
-
enhancer: pi
|
|
619
|
-
}), cn = /* @__PURE__ */ P(dn);
|
|
609
|
+
Object.freeze(cn);
|
|
620
610
|
function Ce(e) {
|
|
621
|
-
return e
|
|
622
|
-
}
|
|
623
|
-
|
|
611
|
+
return e || cn;
|
|
612
|
+
}
|
|
613
|
+
var fn = /* @__PURE__ */ He(Bi), Ui = /* @__PURE__ */ He(Li, {
|
|
614
|
+
enhancer: We
|
|
615
|
+
}), Gi = /* @__PURE__ */ He(zi, {
|
|
616
|
+
enhancer: ki
|
|
617
|
+
}), $i = /* @__PURE__ */ He(Mi, {
|
|
618
|
+
enhancer: bi
|
|
619
|
+
}), vn = /* @__PURE__ */ D(fn);
|
|
620
|
+
function Te(e) {
|
|
621
|
+
return e.deep === !0 ? ie : e.deep === !1 ? We : qi(e.defaultDecorator);
|
|
622
|
+
}
|
|
623
|
+
function Ki(e) {
|
|
624
624
|
var t;
|
|
625
|
-
return e ? (t = e.defaultDecorator) != null ? t :
|
|
625
|
+
return e ? (t = e.defaultDecorator) != null ? t : dn(e) : void 0;
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function qi(e) {
|
|
628
628
|
var t, i;
|
|
629
|
-
return e && (t = (i = e.options_) == null ? void 0 : i.enhancer) != null ? t :
|
|
629
|
+
return e && (t = (i = e.options_) == null ? void 0 : i.enhancer) != null ? t : ie;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
if (
|
|
633
|
-
|
|
631
|
+
function mn(e, t, i) {
|
|
632
|
+
if (q(t)) {
|
|
633
|
+
ge(e, t, fn);
|
|
634
634
|
return;
|
|
635
635
|
}
|
|
636
|
-
return
|
|
636
|
+
return Rn(e) ? e : I(e) ? b.object(e, t, i) : Array.isArray(e) ? b.array(e, t) : re(e) ? b.map(e, t) : be(e) ? b.set(e, t) : typeof e == "object" && e !== null ? e : b.box(e, t);
|
|
637
637
|
}
|
|
638
|
-
Object.assign(
|
|
639
|
-
var
|
|
638
|
+
Object.assign(mn, vn);
|
|
639
|
+
var Wi = {
|
|
640
640
|
box: function(t, i) {
|
|
641
|
-
var n =
|
|
642
|
-
return new
|
|
641
|
+
var n = Ce(i);
|
|
642
|
+
return new ne(t, Te(n), n.name, !0, n.equals);
|
|
643
643
|
},
|
|
644
644
|
array: function(t, i) {
|
|
645
|
-
var n =
|
|
646
|
-
return (d.useProxies === !1 || n.proxy === !1 ?
|
|
645
|
+
var n = Ce(i);
|
|
646
|
+
return (d.useProxies === !1 || n.proxy === !1 ? za : Pa)(t, Te(n), n.name);
|
|
647
647
|
},
|
|
648
648
|
map: function(t, i) {
|
|
649
|
-
var n =
|
|
650
|
-
return new
|
|
649
|
+
var n = Ce(i);
|
|
650
|
+
return new zn(t, Te(n), n.name);
|
|
651
651
|
},
|
|
652
652
|
set: function(t, i) {
|
|
653
|
-
var n =
|
|
654
|
-
return new
|
|
653
|
+
var n = Ce(i);
|
|
654
|
+
return new Gn(t, Te(n), n.name);
|
|
655
655
|
},
|
|
656
656
|
object: function(t, i, n) {
|
|
657
|
-
return
|
|
657
|
+
return xn(d.useProxies === !1 || (n == null ? void 0 : n.proxy) === !1 ? Qe({}, n) : Fa({}, n), t, i);
|
|
658
658
|
},
|
|
659
|
-
ref: /* @__PURE__ */
|
|
660
|
-
shallow: /* @__PURE__ */
|
|
661
|
-
deep:
|
|
662
|
-
struct: /* @__PURE__ */
|
|
663
|
-
}, b = /* @__PURE__ */
|
|
664
|
-
equals:
|
|
665
|
-
}),
|
|
666
|
-
if (
|
|
667
|
-
return
|
|
668
|
-
if (
|
|
669
|
-
return
|
|
670
|
-
var n =
|
|
671
|
-
return n.get = t, n.name || (n.name = t.name || ""), new
|
|
659
|
+
ref: /* @__PURE__ */ D(Ui),
|
|
660
|
+
shallow: /* @__PURE__ */ D(Gi),
|
|
661
|
+
deep: vn,
|
|
662
|
+
struct: /* @__PURE__ */ D($i)
|
|
663
|
+
}, b = /* @__PURE__ */ ui(mn, Wi), hn = "computed", Hi = "computed.struct", _n = /* @__PURE__ */ kt(hn), Xi = /* @__PURE__ */ kt(Hi, {
|
|
664
|
+
equals: Re.structural
|
|
665
|
+
}), Xe = function(t, i) {
|
|
666
|
+
if (q(i))
|
|
667
|
+
return ge(t, i, _n);
|
|
668
|
+
if (I(t))
|
|
669
|
+
return D(kt(hn, t));
|
|
670
|
+
var n = I(i) ? i : {};
|
|
671
|
+
return n.get = t, n.name || (n.name = t.name || ""), new me(n);
|
|
672
672
|
};
|
|
673
|
-
Object.assign(
|
|
674
|
-
|
|
675
|
-
var
|
|
676
|
-
}, "name")) == null ? void 0 :
|
|
673
|
+
Object.assign(Xe, _n);
|
|
674
|
+
Xe.struct = /* @__PURE__ */ D(Xi);
|
|
675
|
+
var jt, xt, Ie = 0, Ji = 1, Yi = (jt = (xt = /* @__PURE__ */ Ve(function() {
|
|
676
|
+
}, "name")) == null ? void 0 : xt.configurable) != null ? jt : !1, Vt = {
|
|
677
677
|
value: "action",
|
|
678
678
|
configurable: !0,
|
|
679
679
|
writable: !1,
|
|
680
680
|
enumerable: !1
|
|
681
681
|
};
|
|
682
|
-
function
|
|
682
|
+
function ae(e, t, i, n) {
|
|
683
683
|
i === void 0 && (i = !1);
|
|
684
|
-
function
|
|
685
|
-
return
|
|
684
|
+
function a() {
|
|
685
|
+
return Qi(e, i, t, n || this, arguments);
|
|
686
686
|
}
|
|
687
|
-
return
|
|
687
|
+
return a.isMobxAction = !0, Yi && (Vt.value = e, Object.defineProperty(a, "name", Vt)), a;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
690
|
-
var
|
|
689
|
+
function Qi(e, t, i, n, a) {
|
|
690
|
+
var r = Zi(e, t);
|
|
691
691
|
try {
|
|
692
|
-
return i.apply(n,
|
|
692
|
+
return i.apply(n, a);
|
|
693
693
|
} catch (o) {
|
|
694
|
-
throw
|
|
694
|
+
throw r.error_ = o, o;
|
|
695
695
|
} finally {
|
|
696
|
-
|
|
696
|
+
ea(r);
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
|
-
function
|
|
700
|
-
var
|
|
699
|
+
function Zi(e, t, i, n) {
|
|
700
|
+
var a = !1, r = 0, o = d.trackingDerivation, s = !t || !o;
|
|
701
701
|
S();
|
|
702
702
|
var u = d.allowStateChanges;
|
|
703
|
-
s && (
|
|
704
|
-
var l =
|
|
703
|
+
s && (oe(), u = Ne(!0));
|
|
704
|
+
var l = bt(!0), c = {
|
|
705
705
|
runAsAction_: s,
|
|
706
706
|
prevDerivation_: o,
|
|
707
707
|
prevAllowStateChanges_: u,
|
|
708
708
|
prevAllowStateReads_: l,
|
|
709
|
-
notifySpy_:
|
|
710
|
-
startTime_:
|
|
711
|
-
actionId_:
|
|
712
|
-
parentActionId_:
|
|
709
|
+
notifySpy_: a,
|
|
710
|
+
startTime_: r,
|
|
711
|
+
actionId_: Ji++,
|
|
712
|
+
parentActionId_: Ie
|
|
713
713
|
};
|
|
714
|
-
return
|
|
714
|
+
return Ie = c.actionId_, c;
|
|
715
715
|
}
|
|
716
|
-
function
|
|
717
|
-
|
|
716
|
+
function ea(e) {
|
|
717
|
+
Ie !== e.actionId_ && m(30), Ie = e.parentActionId_, e.error_ !== void 0 && (d.suppressReactionErrors = !0), Oe(e.prevAllowStateChanges_), de(e.prevAllowStateReads_), N(), e.runAsAction_ && U(e.prevDerivation_), d.suppressReactionErrors = !1;
|
|
718
718
|
}
|
|
719
|
-
function
|
|
720
|
-
var i =
|
|
719
|
+
function ta(e, t) {
|
|
720
|
+
var i = Ne(e);
|
|
721
721
|
try {
|
|
722
722
|
return t();
|
|
723
723
|
} finally {
|
|
724
|
-
|
|
724
|
+
Oe(i);
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Ne(e) {
|
|
728
728
|
var t = d.allowStateChanges;
|
|
729
729
|
return d.allowStateChanges = e, t;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function Oe(e) {
|
|
732
732
|
d.allowStateChanges = e;
|
|
733
733
|
}
|
|
734
|
-
var
|
|
735
|
-
|
|
736
|
-
var
|
|
737
|
-
|
|
738
|
-
function t(n,
|
|
734
|
+
var pn;
|
|
735
|
+
pn = Symbol.toPrimitive;
|
|
736
|
+
var ne = /* @__PURE__ */ function(e) {
|
|
737
|
+
rn(t, e);
|
|
738
|
+
function t(n, a, r, o, s) {
|
|
739
739
|
var u;
|
|
740
|
-
return
|
|
740
|
+
return r === void 0 && (r = "ObservableValue"), s === void 0 && (s = Re.default), u = e.call(this, r) || this, u.enhancer = void 0, u.name_ = void 0, u.equals = void 0, u.hasUnreportedChange_ = !1, u.interceptors_ = void 0, u.changeListeners_ = void 0, u.value_ = void 0, u.dehancer = void 0, u.enhancer = a, u.name_ = r, u.equals = s, u.value_ = a(n, void 0, r), u;
|
|
741
741
|
}
|
|
742
742
|
var i = t.prototype;
|
|
743
|
-
return i.dehanceValue = function(
|
|
744
|
-
return this.dehancer !== void 0 ? this.dehancer(
|
|
745
|
-
}, i.set = function(
|
|
746
|
-
this.value_,
|
|
747
|
-
}, i.prepareNewValue_ = function(
|
|
748
|
-
if (
|
|
749
|
-
var
|
|
743
|
+
return i.dehanceValue = function(a) {
|
|
744
|
+
return this.dehancer !== void 0 ? this.dehancer(a) : a;
|
|
745
|
+
}, i.set = function(a) {
|
|
746
|
+
this.value_, a = this.prepareNewValue_(a), a !== d.UNCHANGED && this.setNewValue_(a);
|
|
747
|
+
}, i.prepareNewValue_ = function(a) {
|
|
748
|
+
if (A(this)) {
|
|
749
|
+
var r = w(this, {
|
|
750
750
|
object: this,
|
|
751
|
-
type:
|
|
752
|
-
newValue:
|
|
751
|
+
type: j,
|
|
752
|
+
newValue: a
|
|
753
753
|
});
|
|
754
|
-
if (!
|
|
754
|
+
if (!r)
|
|
755
755
|
return d.UNCHANGED;
|
|
756
|
-
|
|
756
|
+
a = r.newValue;
|
|
757
757
|
}
|
|
758
|
-
return
|
|
759
|
-
}, i.setNewValue_ = function(
|
|
760
|
-
var
|
|
761
|
-
this.value_ =
|
|
762
|
-
type:
|
|
758
|
+
return a = this.enhancer(a, this.value_, this.name_), this.equals(this.value_, a) ? d.UNCHANGED : a;
|
|
759
|
+
}, i.setNewValue_ = function(a) {
|
|
760
|
+
var r = this.value_;
|
|
761
|
+
this.value_ = a, this.reportChanged(), F(this) && E(this, {
|
|
762
|
+
type: j,
|
|
763
763
|
object: this,
|
|
764
|
-
newValue:
|
|
765
|
-
oldValue:
|
|
764
|
+
newValue: a,
|
|
765
|
+
oldValue: r
|
|
766
766
|
});
|
|
767
767
|
}, i.get = function() {
|
|
768
768
|
return this.reportObserved(), this.dehanceValue(this.value_);
|
|
769
|
-
}, i.intercept_ = function(
|
|
770
|
-
return
|
|
771
|
-
}, i.observe_ = function(
|
|
772
|
-
return
|
|
769
|
+
}, i.intercept_ = function(a) {
|
|
770
|
+
return Ae(this, a);
|
|
771
|
+
}, i.observe_ = function(a, r) {
|
|
772
|
+
return r && a({
|
|
773
773
|
observableKind: "value",
|
|
774
774
|
debugObjectName: this.name_,
|
|
775
775
|
object: this,
|
|
776
|
-
type:
|
|
776
|
+
type: j,
|
|
777
777
|
newValue: this.value_,
|
|
778
778
|
oldValue: void 0
|
|
779
|
-
}),
|
|
779
|
+
}), we(this, a);
|
|
780
780
|
}, i.raw = function() {
|
|
781
781
|
return this.value_;
|
|
782
782
|
}, i.toJSON = function() {
|
|
@@ -784,19 +784,19 @@ var te = /* @__PURE__ */ function(e) {
|
|
|
784
784
|
}, i.toString = function() {
|
|
785
785
|
return this.name_ + "[" + this.value_ + "]";
|
|
786
786
|
}, i.valueOf = function() {
|
|
787
|
-
return
|
|
788
|
-
}, i[
|
|
787
|
+
return an(this.get());
|
|
788
|
+
}, i[pn] = function() {
|
|
789
789
|
return this.valueOf();
|
|
790
790
|
}, t;
|
|
791
|
-
}(
|
|
792
|
-
|
|
793
|
-
var
|
|
791
|
+
}(ye), kn;
|
|
792
|
+
kn = Symbol.toPrimitive;
|
|
793
|
+
var me = /* @__PURE__ */ function() {
|
|
794
794
|
function e(i) {
|
|
795
|
-
this.dependenciesState_ = v.NOT_TRACKING_, this.observing_ = [], this.newObserving_ = null, this.isBeingObserved_ = !1, this.isPendingUnobservation_ = !1, this.observers_ = /* @__PURE__ */ new Set(), this.diffValue_ = 0, this.runId_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = v.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new
|
|
795
|
+
this.dependenciesState_ = v.NOT_TRACKING_, this.observing_ = [], this.newObserving_ = null, this.isBeingObserved_ = !1, this.isPendingUnobservation_ = !1, this.observers_ = /* @__PURE__ */ new Set(), this.diffValue_ = 0, this.runId_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = v.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new Be(null), this.name_ = void 0, this.triggeredBy_ = void 0, this.isComputing_ = !1, this.isRunningSetter_ = !1, this.derivation = void 0, this.setter_ = void 0, this.isTracing_ = K.NONE, this.scope_ = void 0, this.equals_ = void 0, this.requiresReaction_ = void 0, this.keepAlive_ = void 0, this.onBOL = void 0, this.onBUOL = void 0, i.get || m(31), this.derivation = i.get, this.name_ = i.name || "ComputedValue", i.set && (this.setter_ = ae("ComputedValue-setter", i.set)), this.equals_ = i.equals || (i.compareStructural || i.struct ? Re.structural : Re.default), this.scope_ = i.context, this.requiresReaction_ = i.requiresReaction, this.keepAlive_ = !!i.keepAlive;
|
|
796
796
|
}
|
|
797
797
|
var t = e.prototype;
|
|
798
798
|
return t.onBecomeStale_ = function() {
|
|
799
|
-
|
|
799
|
+
ra(this);
|
|
800
800
|
}, t.onBO = function() {
|
|
801
801
|
this.onBOL && this.onBOL.forEach(function(n) {
|
|
802
802
|
return n();
|
|
@@ -808,15 +808,15 @@ var ve = /* @__PURE__ */ function() {
|
|
|
808
808
|
}, t.get = function() {
|
|
809
809
|
if (this.isComputing_ && m(32, this.name_, this.derivation), d.inBatch === 0 && // !globalState.trackingDerivatpion &&
|
|
810
810
|
this.observers_.size === 0 && !this.keepAlive_)
|
|
811
|
-
|
|
812
|
-
else if (
|
|
811
|
+
dt(this) && (this.warnAboutUntrackedRead_(), S(), this.value_ = this.computeValue_(!1), N());
|
|
812
|
+
else if (On(this), dt(this)) {
|
|
813
813
|
var n = d.trackingContext;
|
|
814
|
-
this.keepAlive_ && !n && (d.trackingContext = this), this.trackAndCompute() &&
|
|
814
|
+
this.keepAlive_ && !n && (d.trackingContext = this), this.trackAndCompute() && aa(this), d.trackingContext = n;
|
|
815
815
|
}
|
|
816
|
-
var
|
|
817
|
-
if (
|
|
818
|
-
throw
|
|
819
|
-
return
|
|
816
|
+
var a = this.value_;
|
|
817
|
+
if (De(a))
|
|
818
|
+
throw a.cause;
|
|
819
|
+
return a;
|
|
820
820
|
}, t.set = function(n) {
|
|
821
821
|
if (this.setter_) {
|
|
822
822
|
this.isRunningSetter_ && m(33, this.name_), this.isRunningSetter_ = !0;
|
|
@@ -828,38 +828,38 @@ var ve = /* @__PURE__ */ function() {
|
|
|
828
828
|
} else
|
|
829
829
|
m(34, this.name_);
|
|
830
830
|
}, t.trackAndCompute = function() {
|
|
831
|
-
var n = this.value_,
|
|
831
|
+
var n = this.value_, a = (
|
|
832
832
|
/* see #1208 */
|
|
833
833
|
this.dependenciesState_ === v.NOT_TRACKING_
|
|
834
|
-
),
|
|
835
|
-
return o && (this.value_ =
|
|
834
|
+
), r = this.computeValue_(!0), o = a || De(n) || De(r) || !this.equals_(n, r);
|
|
835
|
+
return o && (this.value_ = r), o;
|
|
836
836
|
}, t.computeValue_ = function(n) {
|
|
837
837
|
this.isComputing_ = !0;
|
|
838
|
-
var
|
|
838
|
+
var a = Ne(!1), r;
|
|
839
839
|
if (n)
|
|
840
|
-
|
|
840
|
+
r = bn(this, this.derivation, this.scope_);
|
|
841
841
|
else if (d.disableErrorBoundaries === !0)
|
|
842
|
-
|
|
842
|
+
r = this.derivation.call(this.scope_);
|
|
843
843
|
else
|
|
844
844
|
try {
|
|
845
|
-
|
|
845
|
+
r = this.derivation.call(this.scope_);
|
|
846
846
|
} catch (o) {
|
|
847
|
-
|
|
847
|
+
r = new Be(o);
|
|
848
848
|
}
|
|
849
|
-
return
|
|
849
|
+
return Oe(a), this.isComputing_ = !1, r;
|
|
850
850
|
}, t.suspend_ = function() {
|
|
851
|
-
this.keepAlive_ || (
|
|
852
|
-
}, t.observe_ = function(n,
|
|
853
|
-
var
|
|
854
|
-
return
|
|
855
|
-
var u =
|
|
856
|
-
if (!o ||
|
|
857
|
-
var l =
|
|
851
|
+
this.keepAlive_ || (ct(this), this.value_ = void 0);
|
|
852
|
+
}, t.observe_ = function(n, a) {
|
|
853
|
+
var r = this, o = !0, s = void 0;
|
|
854
|
+
return ha(function() {
|
|
855
|
+
var u = r.get();
|
|
856
|
+
if (!o || a) {
|
|
857
|
+
var l = oe();
|
|
858
858
|
n({
|
|
859
859
|
observableKind: "computed",
|
|
860
|
-
debugObjectName:
|
|
861
|
-
type:
|
|
862
|
-
object:
|
|
860
|
+
debugObjectName: r.name_,
|
|
861
|
+
type: j,
|
|
862
|
+
object: r,
|
|
863
863
|
newValue: u,
|
|
864
864
|
oldValue: s
|
|
865
865
|
}), U(l);
|
|
@@ -870,25 +870,25 @@ var ve = /* @__PURE__ */ function() {
|
|
|
870
870
|
}, t.toString = function() {
|
|
871
871
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
872
872
|
}, t.valueOf = function() {
|
|
873
|
-
return
|
|
874
|
-
}, t[
|
|
873
|
+
return an(this.get());
|
|
874
|
+
}, t[kn] = function() {
|
|
875
875
|
return this.valueOf();
|
|
876
876
|
}, e;
|
|
877
|
-
}(),
|
|
877
|
+
}(), Je = /* @__PURE__ */ H("ComputedValue", me), v;
|
|
878
878
|
(function(e) {
|
|
879
879
|
e[e.NOT_TRACKING_ = -1] = "NOT_TRACKING_", e[e.UP_TO_DATE_ = 0] = "UP_TO_DATE_", e[e.POSSIBLY_STALE_ = 1] = "POSSIBLY_STALE_", e[e.STALE_ = 2] = "STALE_";
|
|
880
880
|
})(v || (v = {}));
|
|
881
|
-
var
|
|
881
|
+
var K;
|
|
882
882
|
(function(e) {
|
|
883
883
|
e[e.NONE = 0] = "NONE", e[e.LOG = 1] = "LOG", e[e.BREAK = 2] = "BREAK";
|
|
884
|
-
})(
|
|
885
|
-
var
|
|
884
|
+
})(K || (K = {}));
|
|
885
|
+
var Be = function(t) {
|
|
886
886
|
this.cause = void 0, this.cause = t;
|
|
887
887
|
};
|
|
888
|
-
function
|
|
889
|
-
return e instanceof
|
|
888
|
+
function De(e) {
|
|
889
|
+
return e instanceof Be;
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function dt(e) {
|
|
892
892
|
switch (e.dependenciesState_) {
|
|
893
893
|
case v.UP_TO_DATE_:
|
|
894
894
|
return !1;
|
|
@@ -896,107 +896,107 @@ function ut(e) {
|
|
|
896
896
|
case v.STALE_:
|
|
897
897
|
return !0;
|
|
898
898
|
case v.POSSIBLY_STALE_: {
|
|
899
|
-
for (var t =
|
|
900
|
-
var o = n[
|
|
901
|
-
if (
|
|
899
|
+
for (var t = bt(!0), i = oe(), n = e.observing_, a = n.length, r = 0; r < a; r++) {
|
|
900
|
+
var o = n[r];
|
|
901
|
+
if (Je(o)) {
|
|
902
902
|
if (d.disableErrorBoundaries)
|
|
903
903
|
o.get();
|
|
904
904
|
else
|
|
905
905
|
try {
|
|
906
906
|
o.get();
|
|
907
907
|
} catch (s) {
|
|
908
|
-
return U(i),
|
|
908
|
+
return U(i), de(t), !0;
|
|
909
909
|
}
|
|
910
910
|
if (e.dependenciesState_ === v.STALE_)
|
|
911
|
-
return U(i),
|
|
911
|
+
return U(i), de(t), !0;
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
|
-
return
|
|
914
|
+
return yn(e), U(i), de(t), !1;
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
|
-
function
|
|
919
|
-
var n =
|
|
920
|
-
|
|
921
|
-
var
|
|
918
|
+
function bn(e, t, i) {
|
|
919
|
+
var n = bt(!0);
|
|
920
|
+
yn(e), e.newObserving_ = new Array(e.observing_.length + 100), e.unboundDepsCount_ = 0, e.runId_ = ++d.runId;
|
|
921
|
+
var a = d.trackingDerivation;
|
|
922
922
|
d.trackingDerivation = e, d.inBatch++;
|
|
923
|
-
var
|
|
923
|
+
var r;
|
|
924
924
|
if (d.disableErrorBoundaries === !0)
|
|
925
|
-
|
|
925
|
+
r = t.call(i);
|
|
926
926
|
else
|
|
927
927
|
try {
|
|
928
|
-
|
|
928
|
+
r = t.call(i);
|
|
929
929
|
} catch (o) {
|
|
930
|
-
|
|
930
|
+
r = new Be(o);
|
|
931
931
|
}
|
|
932
|
-
return d.inBatch--, d.trackingDerivation =
|
|
932
|
+
return d.inBatch--, d.trackingDerivation = a, na(e), de(n), r;
|
|
933
933
|
}
|
|
934
|
-
function
|
|
935
|
-
for (var t = e.observing_, i = e.observing_ = e.newObserving_, n = v.UP_TO_DATE_,
|
|
934
|
+
function na(e) {
|
|
935
|
+
for (var t = e.observing_, i = e.observing_ = e.newObserving_, n = v.UP_TO_DATE_, a = 0, r = e.unboundDepsCount_, o = 0; o < r; o++) {
|
|
936
936
|
var s = i[o];
|
|
937
|
-
s.diffValue_ === 0 && (s.diffValue_ = 1,
|
|
937
|
+
s.diffValue_ === 0 && (s.diffValue_ = 1, a !== o && (i[a] = s), a++), s.dependenciesState_ > n && (n = s.dependenciesState_);
|
|
938
938
|
}
|
|
939
|
-
for (i.length =
|
|
940
|
-
var u = t[
|
|
941
|
-
u.diffValue_ === 0 &&
|
|
939
|
+
for (i.length = a, e.newObserving_ = null, r = t.length; r--; ) {
|
|
940
|
+
var u = t[r];
|
|
941
|
+
u.diffValue_ === 0 && Sn(u, e), u.diffValue_ = 0;
|
|
942
942
|
}
|
|
943
|
-
for (;
|
|
944
|
-
var l = i[
|
|
945
|
-
l.diffValue_ === 1 && (l.diffValue_ = 0,
|
|
943
|
+
for (; a--; ) {
|
|
944
|
+
var l = i[a];
|
|
945
|
+
l.diffValue_ === 1 && (l.diffValue_ = 0, ia(l, e));
|
|
946
946
|
}
|
|
947
947
|
n !== v.UP_TO_DATE_ && (e.dependenciesState_ = n, e.onBecomeStale_());
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function ct(e) {
|
|
950
950
|
var t = e.observing_;
|
|
951
951
|
e.observing_ = [];
|
|
952
952
|
for (var i = t.length; i--; )
|
|
953
|
-
|
|
953
|
+
Sn(t[i], e);
|
|
954
954
|
e.dependenciesState_ = v.NOT_TRACKING_;
|
|
955
955
|
}
|
|
956
|
-
function
|
|
957
|
-
var t =
|
|
956
|
+
function gn(e) {
|
|
957
|
+
var t = oe();
|
|
958
958
|
try {
|
|
959
959
|
return e();
|
|
960
960
|
} finally {
|
|
961
961
|
U(t);
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function oe() {
|
|
965
965
|
var e = d.trackingDerivation;
|
|
966
966
|
return d.trackingDerivation = null, e;
|
|
967
967
|
}
|
|
968
968
|
function U(e) {
|
|
969
969
|
d.trackingDerivation = e;
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function bt(e) {
|
|
972
972
|
var t = d.allowStateReads;
|
|
973
973
|
return d.allowStateReads = e, t;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function de(e) {
|
|
976
976
|
d.allowStateReads = e;
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function yn(e) {
|
|
979
979
|
if (e.dependenciesState_ !== v.UP_TO_DATE_) {
|
|
980
980
|
e.dependenciesState_ = v.UP_TO_DATE_;
|
|
981
981
|
for (var t = e.observing_, i = t.length; i--; )
|
|
982
982
|
t[i].lowestObserverState_ = v.UP_TO_DATE_;
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
|
-
var
|
|
985
|
+
var tt = function() {
|
|
986
986
|
this.version = 6, this.UNCHANGED = {}, this.trackingDerivation = null, this.trackingContext = null, this.runId = 0, this.mobxGuid = 0, this.inBatch = 0, this.pendingUnobservations = [], this.pendingReactions = [], this.isRunningReactions = !1, this.allowStateChanges = !1, this.allowStateReads = !0, this.enforceActions = !0, this.spyListeners = [], this.globalReactionErrorHandlers = [], this.computedRequiresReaction = !1, this.reactionRequiresObservable = !1, this.observableRequiresReaction = !1, this.disableErrorBoundaries = !1, this.suppressReactionErrors = !1, this.useProxies = !0, this.verifyProxies = !1, this.safeDescriptors = !0;
|
|
987
|
-
},
|
|
988
|
-
var e = /* @__PURE__ */
|
|
989
|
-
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (
|
|
987
|
+
}, nt = !0, d = /* @__PURE__ */ function() {
|
|
988
|
+
var e = /* @__PURE__ */ Jt();
|
|
989
|
+
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (nt = !1), e.__mobxGlobals && e.__mobxGlobals.version !== new tt().version && (nt = !1), nt ? e.__mobxGlobals ? (e.__mobxInstanceCount += 1, e.__mobxGlobals.UNCHANGED || (e.__mobxGlobals.UNCHANGED = {}), e.__mobxGlobals) : (e.__mobxInstanceCount = 1, e.__mobxGlobals = /* @__PURE__ */ new tt()) : (setTimeout(function() {
|
|
990
990
|
m(35);
|
|
991
|
-
}, 1), new
|
|
991
|
+
}, 1), new tt());
|
|
992
992
|
}();
|
|
993
|
-
function
|
|
993
|
+
function ia(e, t) {
|
|
994
994
|
e.observers_.add(t), e.lowestObserverState_ > t.dependenciesState_ && (e.lowestObserverState_ = t.dependenciesState_);
|
|
995
995
|
}
|
|
996
|
-
function
|
|
997
|
-
e.observers_.delete(t), e.observers_.size === 0 &&
|
|
996
|
+
function Sn(e, t) {
|
|
997
|
+
e.observers_.delete(t), e.observers_.size === 0 && Nn(e);
|
|
998
998
|
}
|
|
999
|
-
function
|
|
999
|
+
function Nn(e) {
|
|
1000
1000
|
e.isPendingUnobservation_ === !1 && (e.isPendingUnobservation_ = !0, d.pendingUnobservations.push(e));
|
|
1001
1001
|
}
|
|
1002
1002
|
function S() {
|
|
@@ -1004,54 +1004,54 @@ function S() {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
function N() {
|
|
1006
1006
|
if (--d.inBatch === 0) {
|
|
1007
|
-
|
|
1007
|
+
wn();
|
|
1008
1008
|
for (var e = d.pendingUnobservations, t = 0; t < e.length; t++) {
|
|
1009
1009
|
var i = e[t];
|
|
1010
|
-
i.isPendingUnobservation_ = !1, i.observers_.size === 0 && (i.isBeingObserved_ && (i.isBeingObserved_ = !1, i.onBUO()), i instanceof
|
|
1010
|
+
i.isPendingUnobservation_ = !1, i.observers_.size === 0 && (i.isBeingObserved_ && (i.isBeingObserved_ = !1, i.onBUO()), i instanceof me && i.suspend_());
|
|
1011
1011
|
}
|
|
1012
1012
|
d.pendingUnobservations = [];
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function On(e) {
|
|
1016
1016
|
var t = d.trackingDerivation;
|
|
1017
|
-
return t !== null ? (t.runId_ !== e.lastAccessedBy_ && (e.lastAccessedBy_ = t.runId_, t.newObserving_[t.unboundDepsCount_++] = e, !e.isBeingObserved_ && d.trackingContext && (e.isBeingObserved_ = !0, e.onBO())), !0) : (e.observers_.size === 0 && d.inBatch > 0 &&
|
|
1017
|
+
return t !== null ? (t.runId_ !== e.lastAccessedBy_ && (e.lastAccessedBy_ = t.runId_, t.newObserving_[t.unboundDepsCount_++] = e, !e.isBeingObserved_ && d.trackingContext && (e.isBeingObserved_ = !0, e.onBO())), !0) : (e.observers_.size === 0 && d.inBatch > 0 && Nn(e), !1);
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1019
|
+
function An(e) {
|
|
1020
1020
|
e.lowestObserverState_ !== v.STALE_ && (e.lowestObserverState_ = v.STALE_, e.observers_.forEach(function(t) {
|
|
1021
1021
|
t.dependenciesState_ === v.UP_TO_DATE_ && t.onBecomeStale_(), t.dependenciesState_ = v.STALE_;
|
|
1022
1022
|
}));
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function aa(e) {
|
|
1025
1025
|
e.lowestObserverState_ !== v.STALE_ && (e.lowestObserverState_ = v.STALE_, e.observers_.forEach(function(t) {
|
|
1026
1026
|
t.dependenciesState_ === v.POSSIBLY_STALE_ ? t.dependenciesState_ = v.STALE_ : t.dependenciesState_ === v.UP_TO_DATE_ && (e.lowestObserverState_ = v.UP_TO_DATE_);
|
|
1027
1027
|
}));
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function ra(e) {
|
|
1030
1030
|
e.lowestObserverState_ === v.UP_TO_DATE_ && (e.lowestObserverState_ = v.POSSIBLY_STALE_, e.observers_.forEach(function(t) {
|
|
1031
1031
|
t.dependenciesState_ === v.UP_TO_DATE_ && (t.dependenciesState_ = v.POSSIBLY_STALE_, t.onBecomeStale_());
|
|
1032
1032
|
}));
|
|
1033
1033
|
}
|
|
1034
|
-
var
|
|
1035
|
-
function e(i, n,
|
|
1036
|
-
i === void 0 && (i = "Reaction"), this.name_ = void 0, this.onInvalidate_ = void 0, this.errorHandler_ = void 0, this.requiresObservable_ = void 0, this.observing_ = [], this.newObserving_ = [], this.dependenciesState_ = v.NOT_TRACKING_, this.diffValue_ = 0, this.runId_ = 0, this.unboundDepsCount_ = 0, this.isDisposed_ = !1, this.isScheduled_ = !1, this.isTrackPending_ = !1, this.isRunning_ = !1, this.isTracing_ =
|
|
1034
|
+
var ft = /* @__PURE__ */ function() {
|
|
1035
|
+
function e(i, n, a, r) {
|
|
1036
|
+
i === void 0 && (i = "Reaction"), this.name_ = void 0, this.onInvalidate_ = void 0, this.errorHandler_ = void 0, this.requiresObservable_ = void 0, this.observing_ = [], this.newObserving_ = [], this.dependenciesState_ = v.NOT_TRACKING_, this.diffValue_ = 0, this.runId_ = 0, this.unboundDepsCount_ = 0, this.isDisposed_ = !1, this.isScheduled_ = !1, this.isTrackPending_ = !1, this.isRunning_ = !1, this.isTracing_ = K.NONE, this.name_ = i, this.onInvalidate_ = n, this.errorHandler_ = a, this.requiresObservable_ = r;
|
|
1037
1037
|
}
|
|
1038
1038
|
var t = e.prototype;
|
|
1039
1039
|
return t.onBecomeStale_ = function() {
|
|
1040
1040
|
this.schedule_();
|
|
1041
1041
|
}, t.schedule_ = function() {
|
|
1042
|
-
this.isScheduled_ || (this.isScheduled_ = !0, d.pendingReactions.push(this),
|
|
1042
|
+
this.isScheduled_ || (this.isScheduled_ = !0, d.pendingReactions.push(this), wn());
|
|
1043
1043
|
}, t.isScheduled = function() {
|
|
1044
1044
|
return this.isScheduled_;
|
|
1045
1045
|
}, t.runReaction_ = function() {
|
|
1046
1046
|
if (!this.isDisposed_) {
|
|
1047
1047
|
S(), this.isScheduled_ = !1;
|
|
1048
1048
|
var n = d.trackingContext;
|
|
1049
|
-
if (d.trackingContext = this,
|
|
1049
|
+
if (d.trackingContext = this, dt(this)) {
|
|
1050
1050
|
this.isTrackPending_ = !0;
|
|
1051
1051
|
try {
|
|
1052
1052
|
this.onInvalidate_();
|
|
1053
|
-
} catch (
|
|
1054
|
-
this.reportExceptionInDerivation_(
|
|
1053
|
+
} catch (a) {
|
|
1054
|
+
this.reportExceptionInDerivation_(a);
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
1057
|
d.trackingContext = n, N();
|
|
@@ -1059,100 +1059,100 @@ var dt = /* @__PURE__ */ function() {
|
|
|
1059
1059
|
}, t.track = function(n) {
|
|
1060
1060
|
if (!this.isDisposed_) {
|
|
1061
1061
|
S(), this.isRunning_ = !0;
|
|
1062
|
-
var
|
|
1062
|
+
var a = d.trackingContext;
|
|
1063
1063
|
d.trackingContext = this;
|
|
1064
|
-
var
|
|
1065
|
-
d.trackingContext =
|
|
1064
|
+
var r = bn(this, n, void 0);
|
|
1065
|
+
d.trackingContext = a, this.isRunning_ = !1, this.isTrackPending_ = !1, this.isDisposed_ && ct(this), De(r) && this.reportExceptionInDerivation_(r.cause), N();
|
|
1066
1066
|
}
|
|
1067
1067
|
}, t.reportExceptionInDerivation_ = function(n) {
|
|
1068
|
-
var
|
|
1068
|
+
var a = this;
|
|
1069
1069
|
if (this.errorHandler_) {
|
|
1070
1070
|
this.errorHandler_(n, this);
|
|
1071
1071
|
return;
|
|
1072
1072
|
}
|
|
1073
1073
|
if (d.disableErrorBoundaries)
|
|
1074
1074
|
throw n;
|
|
1075
|
-
var
|
|
1076
|
-
d.suppressReactionErrors || console.error(
|
|
1077
|
-
return o(n,
|
|
1075
|
+
var r = "[mobx] uncaught error in '" + this + "'";
|
|
1076
|
+
d.suppressReactionErrors || console.error(r, n), d.globalReactionErrorHandlers.forEach(function(o) {
|
|
1077
|
+
return o(n, a);
|
|
1078
1078
|
});
|
|
1079
1079
|
}, t.dispose = function() {
|
|
1080
|
-
this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (S(),
|
|
1080
|
+
this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (S(), ct(this), N()));
|
|
1081
1081
|
}, t.getDisposer_ = function() {
|
|
1082
1082
|
var n = this.dispose.bind(this);
|
|
1083
1083
|
return n[f] = this, n;
|
|
1084
1084
|
}, t.toString = function() {
|
|
1085
1085
|
return "Reaction[" + this.name_ + "]";
|
|
1086
1086
|
}, t.trace = function(n) {
|
|
1087
|
-
n === void 0 && (n = !1),
|
|
1087
|
+
n === void 0 && (n = !1), Oa(this, n);
|
|
1088
1088
|
}, e;
|
|
1089
|
-
}(),
|
|
1089
|
+
}(), oa = 100, sa = function(t) {
|
|
1090
1090
|
return t();
|
|
1091
1091
|
};
|
|
1092
|
-
function
|
|
1093
|
-
d.inBatch > 0 || d.isRunningReactions ||
|
|
1092
|
+
function wn() {
|
|
1093
|
+
d.inBatch > 0 || d.isRunningReactions || sa(ua);
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function ua() {
|
|
1096
1096
|
d.isRunningReactions = !0;
|
|
1097
1097
|
for (var e = d.pendingReactions, t = 0; e.length > 0; ) {
|
|
1098
|
-
++t ===
|
|
1099
|
-
for (var i = e.splice(0), n = 0,
|
|
1098
|
+
++t === oa && (console.error("[mobx] cycle in reaction: " + e[0]), e.splice(0));
|
|
1099
|
+
for (var i = e.splice(0), n = 0, a = i.length; n < a; n++)
|
|
1100
1100
|
i[n].runReaction_();
|
|
1101
1101
|
}
|
|
1102
1102
|
d.isRunningReactions = !1;
|
|
1103
1103
|
}
|
|
1104
|
-
var
|
|
1105
|
-
function
|
|
1104
|
+
var Le = /* @__PURE__ */ H("Reaction", ft);
|
|
1105
|
+
function ce() {
|
|
1106
1106
|
return !1;
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function la(e) {
|
|
1109
1109
|
return console.warn("[mobx.spy] Is a no-op in production builds"), function() {
|
|
1110
1110
|
};
|
|
1111
1111
|
}
|
|
1112
|
-
var
|
|
1112
|
+
var Fn = "action", da = "action.bound", En = "autoAction", ca = "autoAction.bound", fa = "<unnamed action>", Cn = /* @__PURE__ */ Se(Fn), va = /* @__PURE__ */ Se(da, {
|
|
1113
1113
|
bound: !0
|
|
1114
|
-
}),
|
|
1114
|
+
}), Tn = /* @__PURE__ */ Se(En, {
|
|
1115
1115
|
autoAction: !0
|
|
1116
|
-
}),
|
|
1116
|
+
}), ma = /* @__PURE__ */ Se(ca, {
|
|
1117
1117
|
autoAction: !0,
|
|
1118
1118
|
bound: !0
|
|
1119
1119
|
});
|
|
1120
|
-
function
|
|
1121
|
-
var t = function(n,
|
|
1122
|
-
if (
|
|
1123
|
-
return
|
|
1124
|
-
if (
|
|
1125
|
-
return
|
|
1126
|
-
if (
|
|
1127
|
-
return
|
|
1128
|
-
if (
|
|
1129
|
-
return
|
|
1120
|
+
function Pn(e) {
|
|
1121
|
+
var t = function(n, a) {
|
|
1122
|
+
if (C(n))
|
|
1123
|
+
return ae(n.name || fa, n, e);
|
|
1124
|
+
if (C(a))
|
|
1125
|
+
return ae(n, a, e);
|
|
1126
|
+
if (q(a))
|
|
1127
|
+
return ge(n, a, e ? Tn : Cn);
|
|
1128
|
+
if (q(n))
|
|
1129
|
+
return D(Se(e ? En : Fn, {
|
|
1130
1130
|
name: n,
|
|
1131
1131
|
autoAction: e
|
|
1132
1132
|
}));
|
|
1133
1133
|
};
|
|
1134
1134
|
return t;
|
|
1135
1135
|
}
|
|
1136
|
-
var
|
|
1137
|
-
Object.assign(
|
|
1138
|
-
var
|
|
1139
|
-
Object.assign(
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
function
|
|
1143
|
-
return
|
|
1136
|
+
var te = /* @__PURE__ */ Pn(!1);
|
|
1137
|
+
Object.assign(te, Cn);
|
|
1138
|
+
var he = /* @__PURE__ */ Pn(!0);
|
|
1139
|
+
Object.assign(he, Tn);
|
|
1140
|
+
te.bound = /* @__PURE__ */ D(va);
|
|
1141
|
+
he.bound = /* @__PURE__ */ D(ma);
|
|
1142
|
+
function gt(e) {
|
|
1143
|
+
return C(e) && e.isMobxAction === !0;
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function ha(e, t) {
|
|
1146
1146
|
var i, n;
|
|
1147
|
-
t === void 0 && (t =
|
|
1148
|
-
var
|
|
1149
|
-
if (
|
|
1150
|
-
o = new
|
|
1147
|
+
t === void 0 && (t = Yt);
|
|
1148
|
+
var a = (i = (n = t) == null ? void 0 : n.name) != null ? i : "Autorun", r = !t.scheduler && !t.delay, o;
|
|
1149
|
+
if (r)
|
|
1150
|
+
o = new ft(a, function() {
|
|
1151
1151
|
this.track(l);
|
|
1152
1152
|
}, t.onError, t.requiresObservable);
|
|
1153
1153
|
else {
|
|
1154
|
-
var s =
|
|
1155
|
-
o = new
|
|
1154
|
+
var s = pa(t), u = !1;
|
|
1155
|
+
o = new ft(a, function() {
|
|
1156
1156
|
u || (u = !0, s(function() {
|
|
1157
1157
|
u = !1, o.isDisposed_ || o.track(l);
|
|
1158
1158
|
}));
|
|
@@ -1163,36 +1163,36 @@ function vr(e, t) {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
return o.schedule_(), o.getDisposer_();
|
|
1165
1165
|
}
|
|
1166
|
-
var
|
|
1166
|
+
var _a = function(t) {
|
|
1167
1167
|
return t();
|
|
1168
1168
|
};
|
|
1169
|
-
function
|
|
1169
|
+
function pa(e) {
|
|
1170
1170
|
return e.scheduler ? e.scheduler : e.delay ? function(t) {
|
|
1171
1171
|
return setTimeout(t, e.delay);
|
|
1172
|
-
} :
|
|
1172
|
+
} : _a;
|
|
1173
1173
|
}
|
|
1174
|
-
var
|
|
1175
|
-
function
|
|
1176
|
-
return
|
|
1174
|
+
var ka = "onBO", ba = "onBUO";
|
|
1175
|
+
function ga(e, t, i) {
|
|
1176
|
+
return jn(ka, e, t, i);
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1179
|
-
return
|
|
1178
|
+
function Dn(e, t, i) {
|
|
1179
|
+
return jn(ba, e, t, i);
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1182
|
-
var
|
|
1183
|
-
return
|
|
1184
|
-
var s =
|
|
1185
|
-
s && (s.delete(
|
|
1181
|
+
function jn(e, t, i, n) {
|
|
1182
|
+
var a = typeof n == "function" ? W(t, i) : W(t), r = C(n) ? n : i, o = e + "L";
|
|
1183
|
+
return a[o] ? a[o].add(r) : a[o] = /* @__PURE__ */ new Set([r]), function() {
|
|
1184
|
+
var s = a[o];
|
|
1185
|
+
s && (s.delete(r), s.size === 0 && delete a[o]);
|
|
1186
1186
|
};
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1189
|
-
var
|
|
1188
|
+
function xn(e, t, i, n) {
|
|
1189
|
+
var a = fi(t), r = Qe(e, n)[f];
|
|
1190
1190
|
S();
|
|
1191
1191
|
try {
|
|
1192
|
-
|
|
1193
|
-
|
|
1192
|
+
fe(a).forEach(function(o) {
|
|
1193
|
+
r.extend_(
|
|
1194
1194
|
o,
|
|
1195
|
-
|
|
1195
|
+
a[o],
|
|
1196
1196
|
// must pass "undefined" for { key: undefined }
|
|
1197
1197
|
i && o in i ? i[o] : !0
|
|
1198
1198
|
);
|
|
@@ -1202,95 +1202,95 @@ function Dn(e, t, i, n) {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
return e;
|
|
1204
1204
|
}
|
|
1205
|
-
var
|
|
1206
|
-
function
|
|
1205
|
+
var ya = 0;
|
|
1206
|
+
function Vn() {
|
|
1207
1207
|
this.message = "FLOW_CANCELLED";
|
|
1208
1208
|
}
|
|
1209
|
-
|
|
1210
|
-
var
|
|
1209
|
+
Vn.prototype = /* @__PURE__ */ Object.create(Error.prototype);
|
|
1210
|
+
var Rt = /* @__PURE__ */ un("flow"), Sa = /* @__PURE__ */ un("flow.bound", {
|
|
1211
1211
|
bound: !0
|
|
1212
|
-
}),
|
|
1213
|
-
if (
|
|
1214
|
-
return
|
|
1215
|
-
var n = t,
|
|
1216
|
-
var s = this, u = arguments, l = ++
|
|
1217
|
-
var
|
|
1218
|
-
h =
|
|
1219
|
-
function
|
|
1212
|
+
}), _e = /* @__PURE__ */ Object.assign(function(t, i) {
|
|
1213
|
+
if (q(i))
|
|
1214
|
+
return ge(t, i, Rt);
|
|
1215
|
+
var n = t, a = n.name || "<unnamed flow>", r = function() {
|
|
1216
|
+
var s = this, u = arguments, l = ++ya, c = te(a + " - runid: " + l + " - init", n).apply(s, u), h, _ = void 0, x = new Promise(function(J, T) {
|
|
1217
|
+
var P = 0;
|
|
1218
|
+
h = T;
|
|
1219
|
+
function Fe(y) {
|
|
1220
1220
|
_ = void 0;
|
|
1221
|
-
var
|
|
1221
|
+
var L;
|
|
1222
1222
|
try {
|
|
1223
|
-
|
|
1223
|
+
L = te(a + " - runid: " + l + " - yield " + P++, c.next).call(c, y);
|
|
1224
1224
|
} catch ($) {
|
|
1225
|
-
return
|
|
1225
|
+
return T($);
|
|
1226
1226
|
}
|
|
1227
|
-
|
|
1227
|
+
ue(L);
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function Ze(y) {
|
|
1230
1230
|
_ = void 0;
|
|
1231
|
-
var
|
|
1231
|
+
var L;
|
|
1232
1232
|
try {
|
|
1233
|
-
|
|
1233
|
+
L = te(a + " - runid: " + l + " - yield " + P++, c.throw).call(c, y);
|
|
1234
1234
|
} catch ($) {
|
|
1235
|
-
return
|
|
1235
|
+
return T($);
|
|
1236
1236
|
}
|
|
1237
|
-
|
|
1237
|
+
ue(L);
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1240
|
-
if (
|
|
1241
|
-
|
|
1239
|
+
function ue(y) {
|
|
1240
|
+
if (C(y == null ? void 0 : y.then)) {
|
|
1241
|
+
y.then(ue, T);
|
|
1242
1242
|
return;
|
|
1243
1243
|
}
|
|
1244
|
-
return
|
|
1244
|
+
return y.done ? J(y.value) : (_ = Promise.resolve(y.value), _.then(Fe, Ze));
|
|
1245
1245
|
}
|
|
1246
|
-
|
|
1246
|
+
Fe(void 0);
|
|
1247
1247
|
});
|
|
1248
|
-
return
|
|
1248
|
+
return x.cancel = te(a + " - runid: " + l + " - cancel", function() {
|
|
1249
1249
|
try {
|
|
1250
|
-
_ &&
|
|
1251
|
-
var
|
|
1252
|
-
|
|
1253
|
-
} catch (
|
|
1254
|
-
h(
|
|
1250
|
+
_ && It(_);
|
|
1251
|
+
var J = c.return(void 0), T = Promise.resolve(J.value);
|
|
1252
|
+
T.then(Q, Q), It(T), h(new Vn());
|
|
1253
|
+
} catch (P) {
|
|
1254
|
+
h(P);
|
|
1255
1255
|
}
|
|
1256
|
-
}),
|
|
1256
|
+
}), x;
|
|
1257
1257
|
};
|
|
1258
|
-
return
|
|
1259
|
-
},
|
|
1260
|
-
|
|
1261
|
-
function
|
|
1262
|
-
|
|
1258
|
+
return r.isMobXFlow = !0, r;
|
|
1259
|
+
}, Rt);
|
|
1260
|
+
_e.bound = /* @__PURE__ */ D(Sa);
|
|
1261
|
+
function It(e) {
|
|
1262
|
+
C(e.cancel) && e.cancel();
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function ze(e) {
|
|
1265
1265
|
return (e == null ? void 0 : e.isMobXFlow) === !0;
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1268
|
-
return e ? t !== void 0 ?
|
|
1267
|
+
function Na(e, t) {
|
|
1268
|
+
return e ? t !== void 0 ? pe(e) ? e[f].values_.has(t) : !1 : pe(e) || !!e[f] || pt(e) || Le(e) || Je(e) : !1;
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1271
|
-
return
|
|
1270
|
+
function Rn(e) {
|
|
1271
|
+
return Na(e);
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function Oa() {
|
|
1274
1274
|
m("trace() is not available in production builds");
|
|
1275
1275
|
for (var e = !1, t = arguments.length, i = new Array(t), n = 0; n < t; n++)
|
|
1276
1276
|
i[n] = arguments[n];
|
|
1277
1277
|
typeof i[i.length - 1] == "boolean" && (e = i.pop());
|
|
1278
|
-
var
|
|
1279
|
-
if (!
|
|
1278
|
+
var a = Aa(i);
|
|
1279
|
+
if (!a)
|
|
1280
1280
|
return m("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");
|
|
1281
|
-
|
|
1281
|
+
a.isTracing_ === K.NONE && console.log("[mobx.trace] '" + a.name_ + "' tracing enabled"), a.isTracing_ = e ? K.BREAK : K.LOG;
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function Aa(e) {
|
|
1284
1284
|
switch (e.length) {
|
|
1285
1285
|
case 0:
|
|
1286
1286
|
return d.trackingDerivation;
|
|
1287
1287
|
case 1:
|
|
1288
|
-
return
|
|
1288
|
+
return W(e[0]);
|
|
1289
1289
|
case 2:
|
|
1290
|
-
return
|
|
1290
|
+
return W(e[0], e[1]);
|
|
1291
1291
|
}
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function V(e, t) {
|
|
1294
1294
|
t === void 0 && (t = void 0), S();
|
|
1295
1295
|
try {
|
|
1296
1296
|
return e.apply(t);
|
|
@@ -1298,90 +1298,90 @@ function x(e, t) {
|
|
|
1298
1298
|
N();
|
|
1299
1299
|
}
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function Y(e) {
|
|
1302
1302
|
return e[f];
|
|
1303
1303
|
}
|
|
1304
|
-
var
|
|
1304
|
+
var wa = {
|
|
1305
1305
|
has: function(t, i) {
|
|
1306
|
-
return
|
|
1306
|
+
return Y(t).has_(i);
|
|
1307
1307
|
},
|
|
1308
1308
|
get: function(t, i) {
|
|
1309
|
-
return
|
|
1309
|
+
return Y(t).get_(i);
|
|
1310
1310
|
},
|
|
1311
1311
|
set: function(t, i, n) {
|
|
1312
|
-
var
|
|
1313
|
-
return
|
|
1312
|
+
var a;
|
|
1313
|
+
return q(i) ? (a = Y(t).set_(i, n, !0)) != null ? a : !0 : !1;
|
|
1314
1314
|
},
|
|
1315
1315
|
deleteProperty: function(t, i) {
|
|
1316
1316
|
var n;
|
|
1317
|
-
return
|
|
1317
|
+
return q(i) ? (n = Y(t).delete_(i, !0)) != null ? n : !0 : !1;
|
|
1318
1318
|
},
|
|
1319
1319
|
defineProperty: function(t, i, n) {
|
|
1320
|
-
var
|
|
1321
|
-
return (
|
|
1320
|
+
var a;
|
|
1321
|
+
return (a = Y(t).defineProperty_(i, n)) != null ? a : !0;
|
|
1322
1322
|
},
|
|
1323
1323
|
ownKeys: function(t) {
|
|
1324
|
-
return
|
|
1324
|
+
return Y(t).ownKeys_();
|
|
1325
1325
|
},
|
|
1326
1326
|
preventExtensions: function(t) {
|
|
1327
1327
|
m(13);
|
|
1328
1328
|
}
|
|
1329
1329
|
};
|
|
1330
|
-
function
|
|
1330
|
+
function Fa(e, t) {
|
|
1331
1331
|
var i, n;
|
|
1332
|
-
return
|
|
1332
|
+
return Qt(), e = Qe(e, t), (n = (i = e[f]).proxy_) != null ? n : i.proxy_ = new Proxy(e, wa);
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function A(e) {
|
|
1335
1335
|
return e.interceptors_ !== void 0 && e.interceptors_.length > 0;
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function Ae(e, t) {
|
|
1338
1338
|
var i = e.interceptors_ || (e.interceptors_ = []);
|
|
1339
|
-
return i.push(t),
|
|
1339
|
+
return i.push(t), Zt(function() {
|
|
1340
1340
|
var n = i.indexOf(t);
|
|
1341
1341
|
n !== -1 && i.splice(n, 1);
|
|
1342
1342
|
});
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1345
|
-
var i =
|
|
1344
|
+
function w(e, t) {
|
|
1345
|
+
var i = oe();
|
|
1346
1346
|
try {
|
|
1347
|
-
for (var n = [].concat(e.interceptors_ || []),
|
|
1347
|
+
for (var n = [].concat(e.interceptors_ || []), a = 0, r = n.length; a < r && (t = n[a](t), t && !t.type && m(14), !!t); a++)
|
|
1348
1348
|
;
|
|
1349
1349
|
return t;
|
|
1350
1350
|
} finally {
|
|
1351
1351
|
U(i);
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function F(e) {
|
|
1355
1355
|
return e.changeListeners_ !== void 0 && e.changeListeners_.length > 0;
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function we(e, t) {
|
|
1358
1358
|
var i = e.changeListeners_ || (e.changeListeners_ = []);
|
|
1359
|
-
return i.push(t),
|
|
1359
|
+
return i.push(t), Zt(function() {
|
|
1360
1360
|
var n = i.indexOf(t);
|
|
1361
1361
|
n !== -1 && i.splice(n, 1);
|
|
1362
1362
|
});
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1365
|
-
var i =
|
|
1364
|
+
function E(e, t) {
|
|
1365
|
+
var i = oe(), n = e.changeListeners_;
|
|
1366
1366
|
if (n) {
|
|
1367
1367
|
n = n.slice();
|
|
1368
|
-
for (var
|
|
1369
|
-
n[
|
|
1368
|
+
for (var a = 0, r = n.length; a < r; a++)
|
|
1369
|
+
n[a](t);
|
|
1370
1370
|
U(i);
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
1373
|
-
var
|
|
1374
|
-
function
|
|
1375
|
-
if (
|
|
1376
|
-
return
|
|
1377
|
-
var n =
|
|
1378
|
-
if (!e[
|
|
1379
|
-
var
|
|
1380
|
-
|
|
1373
|
+
var it = /* @__PURE__ */ Symbol("mobx-keys");
|
|
1374
|
+
function Ea(e, t, i) {
|
|
1375
|
+
if (I(e))
|
|
1376
|
+
return xn(e, e, t, i);
|
|
1377
|
+
var n = Qe(e, i)[f];
|
|
1378
|
+
if (!e[it]) {
|
|
1379
|
+
var a = Object.getPrototypeOf(e), r = new Set([].concat(fe(e), fe(a)));
|
|
1380
|
+
r.delete("constructor"), r.delete(f), qe(a, it, r);
|
|
1381
1381
|
}
|
|
1382
1382
|
S();
|
|
1383
1383
|
try {
|
|
1384
|
-
e[
|
|
1384
|
+
e[it].forEach(function(o) {
|
|
1385
1385
|
return n.make_(
|
|
1386
1386
|
o,
|
|
1387
1387
|
// must pass "undefined" for { key: undefined }
|
|
@@ -1393,21 +1393,21 @@ function wr(e, t, i) {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
return e;
|
|
1395
1395
|
}
|
|
1396
|
-
var
|
|
1396
|
+
var Bt = "splice", j = "update", Ca = 1e4, Ta = {
|
|
1397
1397
|
get: function(t, i) {
|
|
1398
1398
|
var n = t[f];
|
|
1399
|
-
return i === f ? n : i === "length" ? n.getArrayLength_() : typeof i == "string" && !isNaN(i) ? n.get_(parseInt(i)) : M(
|
|
1399
|
+
return i === f ? n : i === "length" ? n.getArrayLength_() : typeof i == "string" && !isNaN(i) ? n.get_(parseInt(i)) : M(Me, i) ? Me[i] : t[i];
|
|
1400
1400
|
},
|
|
1401
1401
|
set: function(t, i, n) {
|
|
1402
|
-
var
|
|
1403
|
-
return i === "length" &&
|
|
1402
|
+
var a = t[f];
|
|
1403
|
+
return i === "length" && a.setArrayLength_(n), typeof i == "symbol" || isNaN(i) ? t[i] = n : a.set_(parseInt(i), n), !0;
|
|
1404
1404
|
},
|
|
1405
1405
|
preventExtensions: function() {
|
|
1406
1406
|
m(15);
|
|
1407
1407
|
}
|
|
1408
|
-
},
|
|
1409
|
-
function e(i, n,
|
|
1410
|
-
i === void 0 && (i = "ObservableArray"), this.owned_ = void 0, this.legacyMode_ = void 0, this.atom_ = void 0, this.values_ = [], this.interceptors_ = void 0, this.changeListeners_ = void 0, this.enhancer_ = void 0, this.dehancer = void 0, this.proxy_ = void 0, this.lastKnownLength_ = 0, this.owned_ =
|
|
1408
|
+
}, yt = /* @__PURE__ */ function() {
|
|
1409
|
+
function e(i, n, a, r) {
|
|
1410
|
+
i === void 0 && (i = "ObservableArray"), this.owned_ = void 0, this.legacyMode_ = void 0, this.atom_ = void 0, this.values_ = [], this.interceptors_ = void 0, this.changeListeners_ = void 0, this.enhancer_ = void 0, this.dehancer = void 0, this.proxy_ = void 0, this.lastKnownLength_ = 0, this.owned_ = a, this.legacyMode_ = r, this.atom_ = new ye(i), this.enhancer_ = function(o, s) {
|
|
1411
1411
|
return n(o, s, "ObservableArray[..]");
|
|
1412
1412
|
};
|
|
1413
1413
|
}
|
|
@@ -1417,9 +1417,9 @@ var Rt = "splice", D = "update", Fr = 1e4, Er = {
|
|
|
1417
1417
|
}, t.dehanceValues_ = function(n) {
|
|
1418
1418
|
return this.dehancer !== void 0 && n.length > 0 ? n.map(this.dehancer) : n;
|
|
1419
1419
|
}, t.intercept_ = function(n) {
|
|
1420
|
-
return
|
|
1421
|
-
}, t.observe_ = function(n,
|
|
1422
|
-
return
|
|
1420
|
+
return Ae(this, n);
|
|
1421
|
+
}, t.observe_ = function(n, a) {
|
|
1422
|
+
return a === void 0 && (a = !1), a && n({
|
|
1423
1423
|
observableKind: "array",
|
|
1424
1424
|
object: this.proxy_,
|
|
1425
1425
|
debugObjectName: this.atom_.name_,
|
|
@@ -1429,121 +1429,121 @@ var Rt = "splice", D = "update", Fr = 1e4, Er = {
|
|
|
1429
1429
|
addedCount: this.values_.length,
|
|
1430
1430
|
removed: [],
|
|
1431
1431
|
removedCount: 0
|
|
1432
|
-
}),
|
|
1432
|
+
}), we(this, n);
|
|
1433
1433
|
}, t.getArrayLength_ = function() {
|
|
1434
1434
|
return this.atom_.reportObserved(), this.values_.length;
|
|
1435
1435
|
}, t.setArrayLength_ = function(n) {
|
|
1436
1436
|
(typeof n != "number" || isNaN(n) || n < 0) && m("Out of range: " + n);
|
|
1437
|
-
var
|
|
1438
|
-
if (n !==
|
|
1439
|
-
if (n >
|
|
1440
|
-
for (var
|
|
1441
|
-
|
|
1442
|
-
this.spliceWithArray_(
|
|
1437
|
+
var a = this.values_.length;
|
|
1438
|
+
if (n !== a)
|
|
1439
|
+
if (n > a) {
|
|
1440
|
+
for (var r = new Array(n - a), o = 0; o < n - a; o++)
|
|
1441
|
+
r[o] = void 0;
|
|
1442
|
+
this.spliceWithArray_(a, 0, r);
|
|
1443
1443
|
} else
|
|
1444
|
-
this.spliceWithArray_(n,
|
|
1445
|
-
}, t.updateArrayLength_ = function(n,
|
|
1446
|
-
n !== this.lastKnownLength_ && m(16), this.lastKnownLength_ +=
|
|
1447
|
-
}, t.spliceWithArray_ = function(n,
|
|
1444
|
+
this.spliceWithArray_(n, a - n);
|
|
1445
|
+
}, t.updateArrayLength_ = function(n, a) {
|
|
1446
|
+
n !== this.lastKnownLength_ && m(16), this.lastKnownLength_ += a, this.legacyMode_ && a > 0 && qn(n + a + 1);
|
|
1447
|
+
}, t.spliceWithArray_ = function(n, a, r) {
|
|
1448
1448
|
var o = this;
|
|
1449
1449
|
this.atom_;
|
|
1450
1450
|
var s = this.values_.length;
|
|
1451
|
-
if (n === void 0 ? n = 0 : n > s ? n = s : n < 0 && (n = Math.max(0, s + n)), arguments.length === 1 ?
|
|
1452
|
-
var u =
|
|
1451
|
+
if (n === void 0 ? n = 0 : n > s ? n = s : n < 0 && (n = Math.max(0, s + n)), arguments.length === 1 ? a = s - n : a == null ? a = 0 : a = Math.max(0, Math.min(a, s - n)), r === void 0 && (r = ut), A(this)) {
|
|
1452
|
+
var u = w(this, {
|
|
1453
1453
|
object: this.proxy_,
|
|
1454
|
-
type:
|
|
1454
|
+
type: Bt,
|
|
1455
1455
|
index: n,
|
|
1456
|
-
removedCount:
|
|
1457
|
-
added:
|
|
1456
|
+
removedCount: a,
|
|
1457
|
+
added: r
|
|
1458
1458
|
});
|
|
1459
1459
|
if (!u)
|
|
1460
|
-
return
|
|
1461
|
-
|
|
1460
|
+
return ut;
|
|
1461
|
+
a = u.removedCount, r = u.added;
|
|
1462
1462
|
}
|
|
1463
|
-
if (
|
|
1463
|
+
if (r = r.length === 0 ? r : r.map(function(h) {
|
|
1464
1464
|
return o.enhancer_(h, void 0);
|
|
1465
1465
|
}), this.legacyMode_) {
|
|
1466
|
-
var l =
|
|
1466
|
+
var l = r.length - a;
|
|
1467
1467
|
this.updateArrayLength_(s, l);
|
|
1468
1468
|
}
|
|
1469
|
-
var c = this.spliceItemsIntoValues_(n,
|
|
1470
|
-
return (
|
|
1471
|
-
}, t.spliceItemsIntoValues_ = function(n,
|
|
1472
|
-
if (
|
|
1469
|
+
var c = this.spliceItemsIntoValues_(n, a, r);
|
|
1470
|
+
return (a !== 0 || r.length !== 0) && this.notifyArraySplice_(n, r, c), this.dehanceValues_(c);
|
|
1471
|
+
}, t.spliceItemsIntoValues_ = function(n, a, r) {
|
|
1472
|
+
if (r.length < Ca) {
|
|
1473
1473
|
var o;
|
|
1474
|
-
return (o = this.values_).splice.apply(o, [n,
|
|
1474
|
+
return (o = this.values_).splice.apply(o, [n, a].concat(r));
|
|
1475
1475
|
} else {
|
|
1476
|
-
var s = this.values_.slice(n, n +
|
|
1477
|
-
this.values_.length +=
|
|
1478
|
-
for (var l = 0; l <
|
|
1479
|
-
this.values_[n + l] =
|
|
1476
|
+
var s = this.values_.slice(n, n + a), u = this.values_.slice(n + a);
|
|
1477
|
+
this.values_.length += r.length - a;
|
|
1478
|
+
for (var l = 0; l < r.length; l++)
|
|
1479
|
+
this.values_[n + l] = r[l];
|
|
1480
1480
|
for (var c = 0; c < u.length; c++)
|
|
1481
|
-
this.values_[n +
|
|
1481
|
+
this.values_[n + r.length + c] = u[c];
|
|
1482
1482
|
return s;
|
|
1483
1483
|
}
|
|
1484
|
-
}, t.notifyArrayChildUpdate_ = function(n,
|
|
1485
|
-
var o = !this.owned_ &&
|
|
1484
|
+
}, t.notifyArrayChildUpdate_ = function(n, a, r) {
|
|
1485
|
+
var o = !this.owned_ && ce(), s = F(this), u = s || o ? {
|
|
1486
1486
|
observableKind: "array",
|
|
1487
1487
|
object: this.proxy_,
|
|
1488
|
-
type:
|
|
1488
|
+
type: j,
|
|
1489
1489
|
debugObjectName: this.atom_.name_,
|
|
1490
1490
|
index: n,
|
|
1491
|
-
newValue:
|
|
1492
|
-
oldValue:
|
|
1491
|
+
newValue: a,
|
|
1492
|
+
oldValue: r
|
|
1493
1493
|
} : null;
|
|
1494
|
-
this.atom_.reportChanged(), s &&
|
|
1495
|
-
}, t.notifyArraySplice_ = function(n,
|
|
1496
|
-
var o = !this.owned_ &&
|
|
1494
|
+
this.atom_.reportChanged(), s && E(this, u);
|
|
1495
|
+
}, t.notifyArraySplice_ = function(n, a, r) {
|
|
1496
|
+
var o = !this.owned_ && ce(), s = F(this), u = s || o ? {
|
|
1497
1497
|
observableKind: "array",
|
|
1498
1498
|
object: this.proxy_,
|
|
1499
1499
|
debugObjectName: this.atom_.name_,
|
|
1500
|
-
type:
|
|
1500
|
+
type: Bt,
|
|
1501
1501
|
index: n,
|
|
1502
|
-
removed:
|
|
1503
|
-
added:
|
|
1504
|
-
removedCount:
|
|
1505
|
-
addedCount:
|
|
1502
|
+
removed: r,
|
|
1503
|
+
added: a,
|
|
1504
|
+
removedCount: r.length,
|
|
1505
|
+
addedCount: a.length
|
|
1506
1506
|
} : null;
|
|
1507
|
-
this.atom_.reportChanged(), s &&
|
|
1507
|
+
this.atom_.reportChanged(), s && E(this, u);
|
|
1508
1508
|
}, t.get_ = function(n) {
|
|
1509
1509
|
if (n < this.values_.length)
|
|
1510
1510
|
return this.atom_.reportObserved(), this.dehanceValue_(this.values_[n]);
|
|
1511
1511
|
console.warn("[mobx.array] Attempt to read an array index (" + n + ") that is out of bounds (" + this.values_.length + "). Please check length first. Out of bound indices will not be tracked by MobX");
|
|
1512
|
-
}, t.set_ = function(n,
|
|
1513
|
-
var
|
|
1514
|
-
if (n <
|
|
1512
|
+
}, t.set_ = function(n, a) {
|
|
1513
|
+
var r = this.values_;
|
|
1514
|
+
if (n < r.length) {
|
|
1515
1515
|
this.atom_;
|
|
1516
|
-
var o =
|
|
1517
|
-
if (
|
|
1518
|
-
var s =
|
|
1519
|
-
type:
|
|
1516
|
+
var o = r[n];
|
|
1517
|
+
if (A(this)) {
|
|
1518
|
+
var s = w(this, {
|
|
1519
|
+
type: j,
|
|
1520
1520
|
object: this.proxy_,
|
|
1521
1521
|
index: n,
|
|
1522
|
-
newValue:
|
|
1522
|
+
newValue: a
|
|
1523
1523
|
});
|
|
1524
1524
|
if (!s)
|
|
1525
1525
|
return;
|
|
1526
|
-
|
|
1526
|
+
a = s.newValue;
|
|
1527
1527
|
}
|
|
1528
|
-
|
|
1529
|
-
var u =
|
|
1530
|
-
u && (
|
|
1528
|
+
a = this.enhancer_(a, o);
|
|
1529
|
+
var u = a !== o;
|
|
1530
|
+
u && (r[n] = a, this.notifyArrayChildUpdate_(n, a, o));
|
|
1531
1531
|
} else
|
|
1532
|
-
n ===
|
|
1532
|
+
n === r.length ? this.spliceWithArray_(n, 0, [a]) : m(17, n, r.length);
|
|
1533
1533
|
}, e;
|
|
1534
1534
|
}();
|
|
1535
|
-
function
|
|
1536
|
-
i === void 0 && (i = "ObservableArray"), n === void 0 && (n = !1),
|
|
1537
|
-
var
|
|
1538
|
-
|
|
1539
|
-
var
|
|
1540
|
-
if (
|
|
1541
|
-
var o =
|
|
1542
|
-
|
|
1543
|
-
}
|
|
1544
|
-
return
|
|
1545
|
-
}
|
|
1546
|
-
var
|
|
1535
|
+
function Pa(e, t, i, n) {
|
|
1536
|
+
i === void 0 && (i = "ObservableArray"), n === void 0 && (n = !1), Qt();
|
|
1537
|
+
var a = new yt(i, t, n, !1);
|
|
1538
|
+
tn(a.values_, f, a);
|
|
1539
|
+
var r = new Proxy(a.values_, Ta);
|
|
1540
|
+
if (a.proxy_ = r, e && e.length) {
|
|
1541
|
+
var o = Ne(!0);
|
|
1542
|
+
a.spliceWithArray_(0, 0, e), Oe(o);
|
|
1543
|
+
}
|
|
1544
|
+
return r;
|
|
1545
|
+
}
|
|
1546
|
+
var Me = {
|
|
1547
1547
|
clear: function() {
|
|
1548
1548
|
return this.splice(0);
|
|
1549
1549
|
},
|
|
@@ -1562,8 +1562,8 @@ var Le = {
|
|
|
1562
1562
|
* and for that reason the do not call dependencyState.notifyObserved
|
|
1563
1563
|
*/
|
|
1564
1564
|
splice: function(t, i) {
|
|
1565
|
-
for (var n = arguments.length,
|
|
1566
|
-
r
|
|
1565
|
+
for (var n = arguments.length, a = new Array(n > 2 ? n - 2 : 0), r = 2; r < n; r++)
|
|
1566
|
+
a[r - 2] = arguments[r];
|
|
1567
1567
|
var o = this[f];
|
|
1568
1568
|
switch (arguments.length) {
|
|
1569
1569
|
case 0:
|
|
@@ -1573,14 +1573,14 @@ var Le = {
|
|
|
1573
1573
|
case 2:
|
|
1574
1574
|
return o.spliceWithArray_(t, i);
|
|
1575
1575
|
}
|
|
1576
|
-
return o.spliceWithArray_(t, i,
|
|
1576
|
+
return o.spliceWithArray_(t, i, a);
|
|
1577
1577
|
},
|
|
1578
1578
|
spliceWithArray: function(t, i, n) {
|
|
1579
1579
|
return this[f].spliceWithArray_(t, i, n);
|
|
1580
1580
|
},
|
|
1581
1581
|
push: function() {
|
|
1582
|
-
for (var t = this[f], i = arguments.length, n = new Array(i),
|
|
1583
|
-
n[
|
|
1582
|
+
for (var t = this[f], i = arguments.length, n = new Array(i), a = 0; a < i; a++)
|
|
1583
|
+
n[a] = arguments[a];
|
|
1584
1584
|
return t.spliceWithArray_(t.values_.length, 0, n), t.values_.length;
|
|
1585
1585
|
},
|
|
1586
1586
|
pop: function() {
|
|
@@ -1590,8 +1590,8 @@ var Le = {
|
|
|
1590
1590
|
return this.splice(0, 1)[0];
|
|
1591
1591
|
},
|
|
1592
1592
|
unshift: function() {
|
|
1593
|
-
for (var t = this[f], i = arguments.length, n = new Array(i),
|
|
1594
|
-
n[
|
|
1593
|
+
for (var t = this[f], i = arguments.length, n = new Array(i), a = 0; a < i; a++)
|
|
1594
|
+
n[a] = arguments[a];
|
|
1595
1595
|
return t.spliceWithArray_(0, 0, n), t.values_.length;
|
|
1596
1596
|
},
|
|
1597
1597
|
reverse: function() {
|
|
@@ -1607,15 +1607,15 @@ var Le = {
|
|
|
1607
1607
|
return n > -1 ? (this.splice(n, 1), !0) : !1;
|
|
1608
1608
|
}
|
|
1609
1609
|
};
|
|
1610
|
-
p("concat",
|
|
1611
|
-
p("flat",
|
|
1612
|
-
p("includes",
|
|
1613
|
-
p("indexOf",
|
|
1614
|
-
p("join",
|
|
1615
|
-
p("lastIndexOf",
|
|
1616
|
-
p("slice",
|
|
1617
|
-
p("toString",
|
|
1618
|
-
p("toLocaleString",
|
|
1610
|
+
p("concat", B);
|
|
1611
|
+
p("flat", B);
|
|
1612
|
+
p("includes", B);
|
|
1613
|
+
p("indexOf", B);
|
|
1614
|
+
p("join", B);
|
|
1615
|
+
p("lastIndexOf", B);
|
|
1616
|
+
p("slice", B);
|
|
1617
|
+
p("toString", B);
|
|
1618
|
+
p("toLocaleString", B);
|
|
1619
1619
|
p("every", G);
|
|
1620
1620
|
p("filter", G);
|
|
1621
1621
|
p("find", G);
|
|
@@ -1624,12 +1624,12 @@ p("flatMap", G);
|
|
|
1624
1624
|
p("forEach", G);
|
|
1625
1625
|
p("map", G);
|
|
1626
1626
|
p("some", G);
|
|
1627
|
-
p("reduce",
|
|
1628
|
-
p("reduceRight",
|
|
1627
|
+
p("reduce", In);
|
|
1628
|
+
p("reduceRight", In);
|
|
1629
1629
|
function p(e, t) {
|
|
1630
|
-
typeof Array.prototype[e] == "function" && (
|
|
1630
|
+
typeof Array.prototype[e] == "function" && (Me[e] = t(e));
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1632
|
+
function B(e) {
|
|
1633
1633
|
return function() {
|
|
1634
1634
|
var t = this[f];
|
|
1635
1635
|
t.atom_.reportObserved();
|
|
@@ -1639,124 +1639,124 @@ function I(e) {
|
|
|
1639
1639
|
}
|
|
1640
1640
|
function G(e) {
|
|
1641
1641
|
return function(t, i) {
|
|
1642
|
-
var n = this,
|
|
1643
|
-
|
|
1644
|
-
var
|
|
1645
|
-
return
|
|
1642
|
+
var n = this, a = this[f];
|
|
1643
|
+
a.atom_.reportObserved();
|
|
1644
|
+
var r = a.dehanceValues_(a.values_);
|
|
1645
|
+
return r[e](function(o, s) {
|
|
1646
1646
|
return t.call(i, o, s, n);
|
|
1647
1647
|
});
|
|
1648
1648
|
};
|
|
1649
1649
|
}
|
|
1650
|
-
function
|
|
1650
|
+
function In(e) {
|
|
1651
1651
|
return function() {
|
|
1652
1652
|
var t = this, i = this[f];
|
|
1653
1653
|
i.atom_.reportObserved();
|
|
1654
|
-
var n = i.dehanceValues_(i.values_),
|
|
1655
|
-
return arguments[0] = function(
|
|
1656
|
-
return r
|
|
1654
|
+
var n = i.dehanceValues_(i.values_), a = arguments[0];
|
|
1655
|
+
return arguments[0] = function(r, o, s) {
|
|
1656
|
+
return a(r, o, s, t);
|
|
1657
1657
|
}, n[e].apply(n, arguments);
|
|
1658
1658
|
};
|
|
1659
1659
|
}
|
|
1660
|
-
var
|
|
1661
|
-
function
|
|
1662
|
-
return
|
|
1660
|
+
var Da = /* @__PURE__ */ H("ObservableArrayAdministration", yt);
|
|
1661
|
+
function Ye(e) {
|
|
1662
|
+
return Ke(e) && Da(e[f]);
|
|
1663
1663
|
}
|
|
1664
|
-
var
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
var
|
|
1668
|
-
function e(i, n,
|
|
1669
|
-
var
|
|
1670
|
-
n === void 0 && (n =
|
|
1671
|
-
|
|
1664
|
+
var Bn, Ln, ja = {}, z = "add", Ue = "delete";
|
|
1665
|
+
Bn = Symbol.iterator;
|
|
1666
|
+
Ln = Symbol.toStringTag;
|
|
1667
|
+
var zn = /* @__PURE__ */ function() {
|
|
1668
|
+
function e(i, n, a) {
|
|
1669
|
+
var r = this;
|
|
1670
|
+
n === void 0 && (n = ie), a === void 0 && (a = "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[f] = ja, this.data_ = void 0, this.hasMap_ = void 0, this.keysAtom_ = void 0, this.interceptors_ = void 0, this.changeListeners_ = void 0, this.dehancer = void 0, this.enhancer_ = n, this.name_ = a, C(Map) || m(18), this.keysAtom_ = on("ObservableMap.keys()"), this.data_ = /* @__PURE__ */ new Map(), this.hasMap_ = /* @__PURE__ */ new Map(), ta(!0, function() {
|
|
1671
|
+
r.merge(i);
|
|
1672
1672
|
});
|
|
1673
1673
|
}
|
|
1674
1674
|
var t = e.prototype;
|
|
1675
1675
|
return t.has_ = function(n) {
|
|
1676
1676
|
return this.data_.has(n);
|
|
1677
1677
|
}, t.has = function(n) {
|
|
1678
|
-
var
|
|
1678
|
+
var a = this;
|
|
1679
1679
|
if (!d.trackingDerivation)
|
|
1680
1680
|
return this.has_(n);
|
|
1681
|
-
var
|
|
1682
|
-
if (!
|
|
1683
|
-
var o =
|
|
1684
|
-
this.hasMap_.set(n, o),
|
|
1685
|
-
return
|
|
1681
|
+
var r = this.hasMap_.get(n);
|
|
1682
|
+
if (!r) {
|
|
1683
|
+
var o = r = new ne(this.has_(n), We, "ObservableMap.key?", !1);
|
|
1684
|
+
this.hasMap_.set(n, o), Dn(o, function() {
|
|
1685
|
+
return a.hasMap_.delete(n);
|
|
1686
1686
|
});
|
|
1687
1687
|
}
|
|
1688
|
-
return
|
|
1689
|
-
}, t.set = function(n,
|
|
1690
|
-
var
|
|
1691
|
-
if (
|
|
1692
|
-
var o =
|
|
1693
|
-
type:
|
|
1688
|
+
return r.get();
|
|
1689
|
+
}, t.set = function(n, a) {
|
|
1690
|
+
var r = this.has_(n);
|
|
1691
|
+
if (A(this)) {
|
|
1692
|
+
var o = w(this, {
|
|
1693
|
+
type: r ? j : z,
|
|
1694
1694
|
object: this,
|
|
1695
|
-
newValue:
|
|
1695
|
+
newValue: a,
|
|
1696
1696
|
name: n
|
|
1697
1697
|
});
|
|
1698
1698
|
if (!o)
|
|
1699
1699
|
return this;
|
|
1700
|
-
|
|
1700
|
+
a = o.newValue;
|
|
1701
1701
|
}
|
|
1702
|
-
return
|
|
1702
|
+
return r ? this.updateValue_(n, a) : this.addValue_(n, a), this;
|
|
1703
1703
|
}, t.delete = function(n) {
|
|
1704
|
-
var
|
|
1705
|
-
if (this.keysAtom_,
|
|
1706
|
-
var
|
|
1707
|
-
type:
|
|
1704
|
+
var a = this;
|
|
1705
|
+
if (this.keysAtom_, A(this)) {
|
|
1706
|
+
var r = w(this, {
|
|
1707
|
+
type: Ue,
|
|
1708
1708
|
object: this,
|
|
1709
1709
|
name: n
|
|
1710
1710
|
});
|
|
1711
|
-
if (!
|
|
1711
|
+
if (!r)
|
|
1712
1712
|
return !1;
|
|
1713
1713
|
}
|
|
1714
1714
|
if (this.has_(n)) {
|
|
1715
|
-
var o =
|
|
1715
|
+
var o = ce(), s = F(this), u = s || o ? {
|
|
1716
1716
|
observableKind: "map",
|
|
1717
1717
|
debugObjectName: this.name_,
|
|
1718
|
-
type:
|
|
1718
|
+
type: Ue,
|
|
1719
1719
|
object: this,
|
|
1720
1720
|
oldValue: this.data_.get(n).value_,
|
|
1721
1721
|
name: n
|
|
1722
1722
|
} : null;
|
|
1723
|
-
return
|
|
1723
|
+
return V(function() {
|
|
1724
1724
|
var l;
|
|
1725
|
-
|
|
1726
|
-
var c =
|
|
1727
|
-
c.setNewValue_(void 0),
|
|
1728
|
-
}), s &&
|
|
1725
|
+
a.keysAtom_.reportChanged(), (l = a.hasMap_.get(n)) == null || l.setNewValue_(!1);
|
|
1726
|
+
var c = a.data_.get(n);
|
|
1727
|
+
c.setNewValue_(void 0), a.data_.delete(n);
|
|
1728
|
+
}), s && E(this, u), !0;
|
|
1729
1729
|
}
|
|
1730
1730
|
return !1;
|
|
1731
|
-
}, t.updateValue_ = function(n,
|
|
1732
|
-
var
|
|
1733
|
-
if (
|
|
1734
|
-
var o =
|
|
1731
|
+
}, t.updateValue_ = function(n, a) {
|
|
1732
|
+
var r = this.data_.get(n);
|
|
1733
|
+
if (a = r.prepareNewValue_(a), a !== d.UNCHANGED) {
|
|
1734
|
+
var o = ce(), s = F(this), u = s || o ? {
|
|
1735
1735
|
observableKind: "map",
|
|
1736
1736
|
debugObjectName: this.name_,
|
|
1737
|
-
type:
|
|
1737
|
+
type: j,
|
|
1738
1738
|
object: this,
|
|
1739
|
-
oldValue:
|
|
1739
|
+
oldValue: r.value_,
|
|
1740
1740
|
name: n,
|
|
1741
|
-
newValue:
|
|
1741
|
+
newValue: a
|
|
1742
1742
|
} : null;
|
|
1743
|
-
|
|
1743
|
+
r.setNewValue_(a), s && E(this, u);
|
|
1744
1744
|
}
|
|
1745
|
-
}, t.addValue_ = function(n,
|
|
1746
|
-
var
|
|
1747
|
-
this.keysAtom_,
|
|
1748
|
-
var l, c = new
|
|
1749
|
-
|
|
1745
|
+
}, t.addValue_ = function(n, a) {
|
|
1746
|
+
var r = this;
|
|
1747
|
+
this.keysAtom_, V(function() {
|
|
1748
|
+
var l, c = new ne(a, r.enhancer_, "ObservableMap.key", !1);
|
|
1749
|
+
r.data_.set(n, c), a = c.value_, (l = r.hasMap_.get(n)) == null || l.setNewValue_(!0), r.keysAtom_.reportChanged();
|
|
1750
1750
|
});
|
|
1751
|
-
var o =
|
|
1751
|
+
var o = ce(), s = F(this), u = s || o ? {
|
|
1752
1752
|
observableKind: "map",
|
|
1753
1753
|
debugObjectName: this.name_,
|
|
1754
|
-
type:
|
|
1754
|
+
type: z,
|
|
1755
1755
|
object: this,
|
|
1756
1756
|
name: n,
|
|
1757
|
-
newValue:
|
|
1757
|
+
newValue: a
|
|
1758
1758
|
} : null;
|
|
1759
|
-
s &&
|
|
1759
|
+
s && E(this, u);
|
|
1760
1760
|
}, t.get = function(n) {
|
|
1761
1761
|
return this.has(n) ? this.dehanceValue_(this.data_.get(n).get()) : this.dehanceValue_(void 0);
|
|
1762
1762
|
}, t.dehanceValue_ = function(n) {
|
|
@@ -1764,10 +1764,10 @@ var Bn = /* @__PURE__ */ function() {
|
|
|
1764
1764
|
}, t.keys = function() {
|
|
1765
1765
|
return this.keysAtom_.reportObserved(), this.data_.keys();
|
|
1766
1766
|
}, t.values = function() {
|
|
1767
|
-
var n = this,
|
|
1768
|
-
return
|
|
1767
|
+
var n = this, a = this.keys();
|
|
1768
|
+
return ke({
|
|
1769
1769
|
next: function() {
|
|
1770
|
-
var o =
|
|
1770
|
+
var o = a.next(), s = o.done, u = o.value;
|
|
1771
1771
|
return {
|
|
1772
1772
|
done: s,
|
|
1773
1773
|
value: s ? void 0 : n.get(u)
|
|
@@ -1775,106 +1775,106 @@ var Bn = /* @__PURE__ */ function() {
|
|
|
1775
1775
|
}
|
|
1776
1776
|
});
|
|
1777
1777
|
}, t.entries = function() {
|
|
1778
|
-
var n = this,
|
|
1779
|
-
return
|
|
1778
|
+
var n = this, a = this.keys();
|
|
1779
|
+
return ke({
|
|
1780
1780
|
next: function() {
|
|
1781
|
-
var o =
|
|
1781
|
+
var o = a.next(), s = o.done, u = o.value;
|
|
1782
1782
|
return {
|
|
1783
1783
|
done: s,
|
|
1784
1784
|
value: s ? void 0 : [u, n.get(u)]
|
|
1785
1785
|
};
|
|
1786
1786
|
}
|
|
1787
1787
|
});
|
|
1788
|
-
}, t[
|
|
1788
|
+
}, t[Bn] = function() {
|
|
1789
1789
|
return this.entries();
|
|
1790
|
-
}, t.forEach = function(n,
|
|
1791
|
-
for (var
|
|
1790
|
+
}, t.forEach = function(n, a) {
|
|
1791
|
+
for (var r = Z(this), o; !(o = r()).done; ) {
|
|
1792
1792
|
var s = o.value, u = s[0], l = s[1];
|
|
1793
|
-
n.call(
|
|
1793
|
+
n.call(a, l, u, this);
|
|
1794
1794
|
}
|
|
1795
1795
|
}, t.merge = function(n) {
|
|
1796
|
-
var
|
|
1797
|
-
return
|
|
1798
|
-
|
|
1799
|
-
return
|
|
1800
|
-
}) : Array.isArray(n) ? n.forEach(function(
|
|
1801
|
-
var o =
|
|
1802
|
-
return
|
|
1803
|
-
}) : re(n) ? (n.constructor !== Map && m(19, n), n.forEach(function(
|
|
1804
|
-
return
|
|
1796
|
+
var a = this;
|
|
1797
|
+
return X(n) && (n = new Map(n)), V(function() {
|
|
1798
|
+
I(n) ? ci(n).forEach(function(r) {
|
|
1799
|
+
return a.set(r, n[r]);
|
|
1800
|
+
}) : Array.isArray(n) ? n.forEach(function(r) {
|
|
1801
|
+
var o = r[0], s = r[1];
|
|
1802
|
+
return a.set(o, s);
|
|
1803
|
+
}) : re(n) ? (n.constructor !== Map && m(19, n), n.forEach(function(r, o) {
|
|
1804
|
+
return a.set(o, r);
|
|
1805
1805
|
})) : n != null && m(20, n);
|
|
1806
1806
|
}), this;
|
|
1807
1807
|
}, t.clear = function() {
|
|
1808
1808
|
var n = this;
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
for (var
|
|
1812
|
-
var o =
|
|
1809
|
+
V(function() {
|
|
1810
|
+
gn(function() {
|
|
1811
|
+
for (var a = Z(n.keys()), r; !(r = a()).done; ) {
|
|
1812
|
+
var o = r.value;
|
|
1813
1813
|
n.delete(o);
|
|
1814
1814
|
}
|
|
1815
1815
|
});
|
|
1816
1816
|
});
|
|
1817
1817
|
}, t.replace = function(n) {
|
|
1818
|
-
var
|
|
1819
|
-
return
|
|
1820
|
-
for (var
|
|
1818
|
+
var a = this;
|
|
1819
|
+
return V(function() {
|
|
1820
|
+
for (var r = xa(n), o = /* @__PURE__ */ new Map(), s = !1, u = Z(a.data_.keys()), l; !(l = u()).done; ) {
|
|
1821
1821
|
var c = l.value;
|
|
1822
|
-
if (!
|
|
1823
|
-
var h =
|
|
1822
|
+
if (!r.has(c)) {
|
|
1823
|
+
var h = a.delete(c);
|
|
1824
1824
|
if (h)
|
|
1825
1825
|
s = !0;
|
|
1826
1826
|
else {
|
|
1827
|
-
var _ =
|
|
1827
|
+
var _ = a.data_.get(c);
|
|
1828
1828
|
o.set(c, _);
|
|
1829
1829
|
}
|
|
1830
1830
|
}
|
|
1831
1831
|
}
|
|
1832
|
-
for (var
|
|
1833
|
-
var
|
|
1834
|
-
if (
|
|
1835
|
-
var
|
|
1836
|
-
o.set(
|
|
1832
|
+
for (var x = Z(r.entries()), J; !(J = x()).done; ) {
|
|
1833
|
+
var T = J.value, P = T[0], Fe = T[1], Ze = a.data_.has(P);
|
|
1834
|
+
if (a.set(P, Fe), a.data_.has(P)) {
|
|
1835
|
+
var ue = a.data_.get(P);
|
|
1836
|
+
o.set(P, ue), Ze || (s = !0);
|
|
1837
1837
|
}
|
|
1838
1838
|
}
|
|
1839
1839
|
if (!s)
|
|
1840
|
-
if (
|
|
1841
|
-
|
|
1840
|
+
if (a.data_.size !== o.size)
|
|
1841
|
+
a.keysAtom_.reportChanged();
|
|
1842
1842
|
else
|
|
1843
|
-
for (var
|
|
1844
|
-
if ($.value !==
|
|
1845
|
-
|
|
1843
|
+
for (var y = a.data_.keys(), L = o.keys(), $ = y.next(), Ot = L.next(); !$.done; ) {
|
|
1844
|
+
if ($.value !== Ot.value) {
|
|
1845
|
+
a.keysAtom_.reportChanged();
|
|
1846
1846
|
break;
|
|
1847
1847
|
}
|
|
1848
|
-
$ =
|
|
1848
|
+
$ = y.next(), Ot = L.next();
|
|
1849
1849
|
}
|
|
1850
|
-
|
|
1850
|
+
a.data_ = o;
|
|
1851
1851
|
}), this;
|
|
1852
1852
|
}, t.toString = function() {
|
|
1853
1853
|
return "[object ObservableMap]";
|
|
1854
1854
|
}, t.toJSON = function() {
|
|
1855
1855
|
return Array.from(this);
|
|
1856
|
-
}, t.observe_ = function(n,
|
|
1857
|
-
return
|
|
1856
|
+
}, t.observe_ = function(n, a) {
|
|
1857
|
+
return we(this, n);
|
|
1858
1858
|
}, t.intercept_ = function(n) {
|
|
1859
|
-
return
|
|
1860
|
-
},
|
|
1859
|
+
return Ae(this, n);
|
|
1860
|
+
}, _t(e, [{
|
|
1861
1861
|
key: "size",
|
|
1862
1862
|
get: function() {
|
|
1863
1863
|
return this.keysAtom_.reportObserved(), this.data_.size;
|
|
1864
1864
|
}
|
|
1865
1865
|
}, {
|
|
1866
|
-
key:
|
|
1866
|
+
key: Ln,
|
|
1867
1867
|
get: function() {
|
|
1868
1868
|
return "Map";
|
|
1869
1869
|
}
|
|
1870
1870
|
}]), e;
|
|
1871
|
-
}(),
|
|
1872
|
-
function
|
|
1873
|
-
if (re(e) ||
|
|
1871
|
+
}(), X = /* @__PURE__ */ H("ObservableMap", zn);
|
|
1872
|
+
function xa(e) {
|
|
1873
|
+
if (re(e) || X(e))
|
|
1874
1874
|
return e;
|
|
1875
1875
|
if (Array.isArray(e))
|
|
1876
1876
|
return new Map(e);
|
|
1877
|
-
if (
|
|
1877
|
+
if (I(e)) {
|
|
1878
1878
|
var t = /* @__PURE__ */ new Map();
|
|
1879
1879
|
for (var i in e)
|
|
1880
1880
|
t.set(i, e[i]);
|
|
@@ -1882,13 +1882,13 @@ function Dr(e) {
|
|
|
1882
1882
|
} else
|
|
1883
1883
|
return m(21, e);
|
|
1884
1884
|
}
|
|
1885
|
-
var
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
var
|
|
1889
|
-
function e(i, n,
|
|
1890
|
-
n === void 0 && (n =
|
|
1891
|
-
return n(
|
|
1885
|
+
var Mn, Un, Va = {};
|
|
1886
|
+
Mn = Symbol.iterator;
|
|
1887
|
+
Un = Symbol.toStringTag;
|
|
1888
|
+
var Gn = /* @__PURE__ */ function() {
|
|
1889
|
+
function e(i, n, a) {
|
|
1890
|
+
n === void 0 && (n = ie), a === void 0 && (a = "ObservableSet"), this.name_ = void 0, this[f] = Va, this.data_ = /* @__PURE__ */ new Set(), this.atom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.dehancer = void 0, this.enhancer_ = void 0, this.name_ = a, C(Set) || m(22), this.atom_ = on(this.name_), this.enhancer_ = function(r, o) {
|
|
1891
|
+
return n(r, o, a);
|
|
1892
1892
|
}, i && this.replace(i);
|
|
1893
1893
|
}
|
|
1894
1894
|
var t = e.prototype;
|
|
@@ -1896,77 +1896,77 @@ var Un = /* @__PURE__ */ function() {
|
|
|
1896
1896
|
return this.dehancer !== void 0 ? this.dehancer(n) : n;
|
|
1897
1897
|
}, t.clear = function() {
|
|
1898
1898
|
var n = this;
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
for (var
|
|
1902
|
-
var o =
|
|
1899
|
+
V(function() {
|
|
1900
|
+
gn(function() {
|
|
1901
|
+
for (var a = Z(n.data_.values()), r; !(r = a()).done; ) {
|
|
1902
|
+
var o = r.value;
|
|
1903
1903
|
n.delete(o);
|
|
1904
1904
|
}
|
|
1905
1905
|
});
|
|
1906
1906
|
});
|
|
1907
|
-
}, t.forEach = function(n,
|
|
1908
|
-
for (var
|
|
1907
|
+
}, t.forEach = function(n, a) {
|
|
1908
|
+
for (var r = Z(this), o; !(o = r()).done; ) {
|
|
1909
1909
|
var s = o.value;
|
|
1910
|
-
n.call(
|
|
1910
|
+
n.call(a, s, s, this);
|
|
1911
1911
|
}
|
|
1912
1912
|
}, t.add = function(n) {
|
|
1913
|
-
var
|
|
1914
|
-
if (this.atom_,
|
|
1915
|
-
var
|
|
1916
|
-
type:
|
|
1913
|
+
var a = this;
|
|
1914
|
+
if (this.atom_, A(this)) {
|
|
1915
|
+
var r = w(this, {
|
|
1916
|
+
type: z,
|
|
1917
1917
|
object: this,
|
|
1918
1918
|
newValue: n
|
|
1919
1919
|
});
|
|
1920
|
-
if (!
|
|
1920
|
+
if (!r)
|
|
1921
1921
|
return this;
|
|
1922
1922
|
}
|
|
1923
1923
|
if (!this.has(n)) {
|
|
1924
|
-
|
|
1925
|
-
|
|
1924
|
+
V(function() {
|
|
1925
|
+
a.data_.add(a.enhancer_(n, void 0)), a.atom_.reportChanged();
|
|
1926
1926
|
});
|
|
1927
|
-
var o = !1, s =
|
|
1927
|
+
var o = !1, s = F(this), u = s || o ? {
|
|
1928
1928
|
observableKind: "set",
|
|
1929
1929
|
debugObjectName: this.name_,
|
|
1930
|
-
type:
|
|
1930
|
+
type: z,
|
|
1931
1931
|
object: this,
|
|
1932
1932
|
newValue: n
|
|
1933
1933
|
} : null;
|
|
1934
|
-
s &&
|
|
1934
|
+
s && E(this, u);
|
|
1935
1935
|
}
|
|
1936
1936
|
return this;
|
|
1937
1937
|
}, t.delete = function(n) {
|
|
1938
|
-
var
|
|
1939
|
-
if (
|
|
1940
|
-
var
|
|
1941
|
-
type:
|
|
1938
|
+
var a = this;
|
|
1939
|
+
if (A(this)) {
|
|
1940
|
+
var r = w(this, {
|
|
1941
|
+
type: Ue,
|
|
1942
1942
|
object: this,
|
|
1943
1943
|
oldValue: n
|
|
1944
1944
|
});
|
|
1945
|
-
if (!
|
|
1945
|
+
if (!r)
|
|
1946
1946
|
return !1;
|
|
1947
1947
|
}
|
|
1948
1948
|
if (this.has(n)) {
|
|
1949
|
-
var o = !1, s =
|
|
1949
|
+
var o = !1, s = F(this), u = s || o ? {
|
|
1950
1950
|
observableKind: "set",
|
|
1951
1951
|
debugObjectName: this.name_,
|
|
1952
|
-
type:
|
|
1952
|
+
type: Ue,
|
|
1953
1953
|
object: this,
|
|
1954
1954
|
oldValue: n
|
|
1955
1955
|
} : null;
|
|
1956
|
-
return
|
|
1957
|
-
|
|
1958
|
-
}), s &&
|
|
1956
|
+
return V(function() {
|
|
1957
|
+
a.atom_.reportChanged(), a.data_.delete(n);
|
|
1958
|
+
}), s && E(this, u), !0;
|
|
1959
1959
|
}
|
|
1960
1960
|
return !1;
|
|
1961
1961
|
}, t.has = function(n) {
|
|
1962
1962
|
return this.atom_.reportObserved(), this.data_.has(this.dehanceValue_(n));
|
|
1963
1963
|
}, t.entries = function() {
|
|
1964
|
-
var n = 0,
|
|
1965
|
-
return
|
|
1964
|
+
var n = 0, a = Array.from(this.keys()), r = Array.from(this.values());
|
|
1965
|
+
return ke({
|
|
1966
1966
|
next: function() {
|
|
1967
1967
|
var s = n;
|
|
1968
|
-
return n += 1, s <
|
|
1969
|
-
value: [
|
|
1968
|
+
return n += 1, s < r.length ? {
|
|
1969
|
+
value: [a[s], r[s]],
|
|
1970
1970
|
done: !1
|
|
1971
1971
|
} : {
|
|
1972
1972
|
done: !0
|
|
@@ -1977,11 +1977,11 @@ var Un = /* @__PURE__ */ function() {
|
|
|
1977
1977
|
return this.values();
|
|
1978
1978
|
}, t.values = function() {
|
|
1979
1979
|
this.atom_.reportObserved();
|
|
1980
|
-
var n = this,
|
|
1981
|
-
return
|
|
1980
|
+
var n = this, a = 0, r = Array.from(this.data_.values());
|
|
1981
|
+
return ke({
|
|
1982
1982
|
next: function() {
|
|
1983
|
-
return
|
|
1984
|
-
value: n.dehanceValue_(a
|
|
1983
|
+
return a < r.length ? {
|
|
1984
|
+
value: n.dehanceValue_(r[a++]),
|
|
1985
1985
|
done: !1
|
|
1986
1986
|
} : {
|
|
1987
1987
|
done: !0
|
|
@@ -1989,97 +1989,97 @@ var Un = /* @__PURE__ */ function() {
|
|
|
1989
1989
|
}
|
|
1990
1990
|
});
|
|
1991
1991
|
}, t.replace = function(n) {
|
|
1992
|
-
var
|
|
1993
|
-
return
|
|
1994
|
-
Array.isArray(n) ? (
|
|
1995
|
-
return
|
|
1996
|
-
})) :
|
|
1997
|
-
return
|
|
1992
|
+
var a = this;
|
|
1993
|
+
return se(n) && (n = new Set(n)), V(function() {
|
|
1994
|
+
Array.isArray(n) ? (a.clear(), n.forEach(function(r) {
|
|
1995
|
+
return a.add(r);
|
|
1996
|
+
})) : be(n) ? (a.clear(), n.forEach(function(r) {
|
|
1997
|
+
return a.add(r);
|
|
1998
1998
|
})) : n != null && m("Cannot initialize set from " + n);
|
|
1999
1999
|
}), this;
|
|
2000
|
-
}, t.observe_ = function(n,
|
|
2001
|
-
return
|
|
2000
|
+
}, t.observe_ = function(n, a) {
|
|
2001
|
+
return we(this, n);
|
|
2002
2002
|
}, t.intercept_ = function(n) {
|
|
2003
|
-
return
|
|
2003
|
+
return Ae(this, n);
|
|
2004
2004
|
}, t.toJSON = function() {
|
|
2005
2005
|
return Array.from(this);
|
|
2006
2006
|
}, t.toString = function() {
|
|
2007
2007
|
return "[object ObservableSet]";
|
|
2008
|
-
}, t[
|
|
2008
|
+
}, t[Mn] = function() {
|
|
2009
2009
|
return this.values();
|
|
2010
|
-
},
|
|
2010
|
+
}, _t(e, [{
|
|
2011
2011
|
key: "size",
|
|
2012
2012
|
get: function() {
|
|
2013
2013
|
return this.atom_.reportObserved(), this.data_.size;
|
|
2014
2014
|
}
|
|
2015
2015
|
}, {
|
|
2016
|
-
key:
|
|
2016
|
+
key: Un,
|
|
2017
2017
|
get: function() {
|
|
2018
2018
|
return "Set";
|
|
2019
2019
|
}
|
|
2020
2020
|
}]), e;
|
|
2021
|
-
}(),
|
|
2022
|
-
function e(i, n,
|
|
2023
|
-
n === void 0 && (n = /* @__PURE__ */ new Map()),
|
|
2021
|
+
}(), se = /* @__PURE__ */ H("ObservableSet", Gn), Lt = /* @__PURE__ */ Object.create(null), zt = "remove", $n = /* @__PURE__ */ function() {
|
|
2022
|
+
function e(i, n, a, r) {
|
|
2023
|
+
n === void 0 && (n = /* @__PURE__ */ new Map()), r === void 0 && (r = Vi), this.target_ = void 0, this.values_ = void 0, this.name_ = void 0, this.defaultAnnotation_ = void 0, this.keysAtom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.proxy_ = void 0, this.isPlainObject_ = void 0, this.appliedAnnotations_ = void 0, this.pendingKeys_ = void 0, this.target_ = i, this.values_ = n, this.name_ = a, this.defaultAnnotation_ = r, this.keysAtom_ = new ye("ObservableObject.keys"), this.isPlainObject_ = I(this.target_);
|
|
2024
2024
|
}
|
|
2025
2025
|
var t = e.prototype;
|
|
2026
2026
|
return t.getObservablePropValue_ = function(n) {
|
|
2027
2027
|
return this.values_.get(n).get();
|
|
2028
|
-
}, t.setObservablePropValue_ = function(n,
|
|
2029
|
-
var
|
|
2030
|
-
if (
|
|
2031
|
-
return
|
|
2032
|
-
if (
|
|
2033
|
-
var o =
|
|
2034
|
-
type:
|
|
2028
|
+
}, t.setObservablePropValue_ = function(n, a) {
|
|
2029
|
+
var r = this.values_.get(n);
|
|
2030
|
+
if (r instanceof me)
|
|
2031
|
+
return r.set(a), !0;
|
|
2032
|
+
if (A(this)) {
|
|
2033
|
+
var o = w(this, {
|
|
2034
|
+
type: j,
|
|
2035
2035
|
object: this.proxy_ || this.target_,
|
|
2036
2036
|
name: n,
|
|
2037
|
-
newValue:
|
|
2037
|
+
newValue: a
|
|
2038
2038
|
});
|
|
2039
2039
|
if (!o)
|
|
2040
2040
|
return null;
|
|
2041
|
-
|
|
2041
|
+
a = o.newValue;
|
|
2042
2042
|
}
|
|
2043
|
-
if (
|
|
2044
|
-
var s =
|
|
2045
|
-
type:
|
|
2043
|
+
if (a = r.prepareNewValue_(a), a !== d.UNCHANGED) {
|
|
2044
|
+
var s = F(this), u = !1, l = s || u ? {
|
|
2045
|
+
type: j,
|
|
2046
2046
|
observableKind: "object",
|
|
2047
2047
|
debugObjectName: this.name_,
|
|
2048
2048
|
object: this.proxy_ || this.target_,
|
|
2049
|
-
oldValue:
|
|
2049
|
+
oldValue: r.value_,
|
|
2050
2050
|
name: n,
|
|
2051
|
-
newValue:
|
|
2051
|
+
newValue: a
|
|
2052
2052
|
} : null;
|
|
2053
|
-
|
|
2053
|
+
r.setNewValue_(a), s && E(this, l);
|
|
2054
2054
|
}
|
|
2055
2055
|
return !0;
|
|
2056
2056
|
}, t.get_ = function(n) {
|
|
2057
2057
|
return d.trackingDerivation && !M(this.target_, n) && this.has_(n), this.target_[n];
|
|
2058
|
-
}, t.set_ = function(n,
|
|
2059
|
-
return
|
|
2060
|
-
value:
|
|
2058
|
+
}, t.set_ = function(n, a, r) {
|
|
2059
|
+
return r === void 0 && (r = !1), M(this.target_, n) ? this.values_.has(n) ? this.setObservablePropValue_(n, a) : r ? Reflect.set(this.target_, n, a) : (this.target_[n] = a, !0) : this.extend_(n, {
|
|
2060
|
+
value: a,
|
|
2061
2061
|
enumerable: !0,
|
|
2062
2062
|
writable: !0,
|
|
2063
2063
|
configurable: !0
|
|
2064
|
-
}, this.defaultAnnotation_,
|
|
2064
|
+
}, this.defaultAnnotation_, r);
|
|
2065
2065
|
}, t.has_ = function(n) {
|
|
2066
2066
|
if (!d.trackingDerivation)
|
|
2067
2067
|
return n in this.target_;
|
|
2068
2068
|
this.pendingKeys_ || (this.pendingKeys_ = /* @__PURE__ */ new Map());
|
|
2069
|
-
var
|
|
2070
|
-
return
|
|
2071
|
-
}, t.make_ = function(n,
|
|
2072
|
-
if (
|
|
2069
|
+
var a = this.pendingKeys_.get(n);
|
|
2070
|
+
return a || (a = new ne(n in this.target_, We, "ObservableObject.key?", !1), this.pendingKeys_.set(n, a)), a.get();
|
|
2071
|
+
}, t.make_ = function(n, a) {
|
|
2072
|
+
if (a === !0 && (a = this.defaultAnnotation_), a !== !1) {
|
|
2073
2073
|
if (!(n in this.target_)) {
|
|
2074
|
-
var
|
|
2075
|
-
if ((
|
|
2074
|
+
var r;
|
|
2075
|
+
if ((r = this.target_[ee]) != null && r[n])
|
|
2076
2076
|
return;
|
|
2077
|
-
m(1,
|
|
2077
|
+
m(1, a.annotationType_, this.name_ + "." + n.toString());
|
|
2078
2078
|
}
|
|
2079
|
-
for (var o = this.target_; o && o !==
|
|
2080
|
-
var s =
|
|
2079
|
+
for (var o = this.target_; o && o !== $e; ) {
|
|
2080
|
+
var s = Ve(o, n);
|
|
2081
2081
|
if (s) {
|
|
2082
|
-
var u =
|
|
2082
|
+
var u = a.make_(this, n, s, o);
|
|
2083
2083
|
if (u === 0)
|
|
2084
2084
|
return;
|
|
2085
2085
|
if (u === 1)
|
|
@@ -2087,63 +2087,63 @@ var Un = /* @__PURE__ */ function() {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
o = Object.getPrototypeOf(o);
|
|
2089
2089
|
}
|
|
2090
|
-
|
|
2090
|
+
Ut(this, a, n);
|
|
2091
2091
|
}
|
|
2092
|
-
}, t.extend_ = function(n,
|
|
2093
|
-
if (o === void 0 && (o = !1),
|
|
2094
|
-
return this.defineProperty_(n,
|
|
2095
|
-
var s =
|
|
2096
|
-
return s &&
|
|
2097
|
-
}, t.defineProperty_ = function(n,
|
|
2098
|
-
|
|
2092
|
+
}, t.extend_ = function(n, a, r, o) {
|
|
2093
|
+
if (o === void 0 && (o = !1), r === !0 && (r = this.defaultAnnotation_), r === !1)
|
|
2094
|
+
return this.defineProperty_(n, a, o);
|
|
2095
|
+
var s = r.extend_(this, n, a, o);
|
|
2096
|
+
return s && Ut(this, r, n), s;
|
|
2097
|
+
}, t.defineProperty_ = function(n, a, r) {
|
|
2098
|
+
r === void 0 && (r = !1);
|
|
2099
2099
|
try {
|
|
2100
2100
|
S();
|
|
2101
2101
|
var o = this.delete_(n);
|
|
2102
2102
|
if (!o)
|
|
2103
2103
|
return o;
|
|
2104
|
-
if (
|
|
2105
|
-
var s =
|
|
2104
|
+
if (A(this)) {
|
|
2105
|
+
var s = w(this, {
|
|
2106
2106
|
object: this.proxy_ || this.target_,
|
|
2107
2107
|
name: n,
|
|
2108
|
-
type:
|
|
2109
|
-
newValue:
|
|
2108
|
+
type: z,
|
|
2109
|
+
newValue: a.value
|
|
2110
2110
|
});
|
|
2111
2111
|
if (!s)
|
|
2112
2112
|
return null;
|
|
2113
2113
|
var u = s.newValue;
|
|
2114
|
-
|
|
2114
|
+
a.value !== u && (a = ve({}, a, {
|
|
2115
2115
|
value: u
|
|
2116
2116
|
}));
|
|
2117
2117
|
}
|
|
2118
|
-
if (
|
|
2119
|
-
if (!Reflect.defineProperty(this.target_, n,
|
|
2118
|
+
if (r) {
|
|
2119
|
+
if (!Reflect.defineProperty(this.target_, n, a))
|
|
2120
2120
|
return !1;
|
|
2121
2121
|
} else
|
|
2122
|
-
|
|
2123
|
-
this.notifyPropertyAddition_(n,
|
|
2122
|
+
R(this.target_, n, a);
|
|
2123
|
+
this.notifyPropertyAddition_(n, a.value);
|
|
2124
2124
|
} finally {
|
|
2125
2125
|
N();
|
|
2126
2126
|
}
|
|
2127
2127
|
return !0;
|
|
2128
|
-
}, t.defineObservableProperty_ = function(n,
|
|
2128
|
+
}, t.defineObservableProperty_ = function(n, a, r, o) {
|
|
2129
2129
|
o === void 0 && (o = !1);
|
|
2130
2130
|
try {
|
|
2131
2131
|
S();
|
|
2132
2132
|
var s = this.delete_(n);
|
|
2133
2133
|
if (!s)
|
|
2134
2134
|
return s;
|
|
2135
|
-
if (
|
|
2136
|
-
var u =
|
|
2135
|
+
if (A(this)) {
|
|
2136
|
+
var u = w(this, {
|
|
2137
2137
|
object: this.proxy_ || this.target_,
|
|
2138
2138
|
name: n,
|
|
2139
|
-
type:
|
|
2140
|
-
newValue:
|
|
2139
|
+
type: z,
|
|
2140
|
+
newValue: a
|
|
2141
2141
|
});
|
|
2142
2142
|
if (!u)
|
|
2143
2143
|
return null;
|
|
2144
|
-
|
|
2144
|
+
a = u.newValue;
|
|
2145
2145
|
}
|
|
2146
|
-
var l =
|
|
2146
|
+
var l = Mt(n), c = {
|
|
2147
2147
|
configurable: d.safeDescriptors ? this.isPlainObject_ : !0,
|
|
2148
2148
|
enumerable: !0,
|
|
2149
2149
|
get: l.get,
|
|
@@ -2153,121 +2153,121 @@ var Un = /* @__PURE__ */ function() {
|
|
|
2153
2153
|
if (!Reflect.defineProperty(this.target_, n, c))
|
|
2154
2154
|
return !1;
|
|
2155
2155
|
} else
|
|
2156
|
-
|
|
2157
|
-
var h = new
|
|
2156
|
+
R(this.target_, n, c);
|
|
2157
|
+
var h = new ne(a, r, "ObservableObject.key", !1);
|
|
2158
2158
|
this.values_.set(n, h), this.notifyPropertyAddition_(n, h.value_);
|
|
2159
2159
|
} finally {
|
|
2160
2160
|
N();
|
|
2161
2161
|
}
|
|
2162
2162
|
return !0;
|
|
2163
|
-
}, t.defineComputedProperty_ = function(n,
|
|
2164
|
-
|
|
2163
|
+
}, t.defineComputedProperty_ = function(n, a, r) {
|
|
2164
|
+
r === void 0 && (r = !1);
|
|
2165
2165
|
try {
|
|
2166
2166
|
S();
|
|
2167
2167
|
var o = this.delete_(n);
|
|
2168
2168
|
if (!o)
|
|
2169
2169
|
return o;
|
|
2170
|
-
if (
|
|
2171
|
-
var s =
|
|
2170
|
+
if (A(this)) {
|
|
2171
|
+
var s = w(this, {
|
|
2172
2172
|
object: this.proxy_ || this.target_,
|
|
2173
2173
|
name: n,
|
|
2174
|
-
type:
|
|
2174
|
+
type: z,
|
|
2175
2175
|
newValue: void 0
|
|
2176
2176
|
});
|
|
2177
2177
|
if (!s)
|
|
2178
2178
|
return null;
|
|
2179
2179
|
}
|
|
2180
|
-
|
|
2181
|
-
var u =
|
|
2180
|
+
a.name || (a.name = "ObservableObject.key"), a.context = this.proxy_ || this.target_;
|
|
2181
|
+
var u = Mt(n), l = {
|
|
2182
2182
|
configurable: d.safeDescriptors ? this.isPlainObject_ : !0,
|
|
2183
2183
|
enumerable: !1,
|
|
2184
2184
|
get: u.get,
|
|
2185
2185
|
set: u.set
|
|
2186
2186
|
};
|
|
2187
|
-
if (
|
|
2187
|
+
if (r) {
|
|
2188
2188
|
if (!Reflect.defineProperty(this.target_, n, l))
|
|
2189
2189
|
return !1;
|
|
2190
2190
|
} else
|
|
2191
|
-
|
|
2192
|
-
this.values_.set(n, new
|
|
2191
|
+
R(this.target_, n, l);
|
|
2192
|
+
this.values_.set(n, new me(a)), this.notifyPropertyAddition_(n, void 0);
|
|
2193
2193
|
} finally {
|
|
2194
2194
|
N();
|
|
2195
2195
|
}
|
|
2196
2196
|
return !0;
|
|
2197
|
-
}, t.delete_ = function(n,
|
|
2198
|
-
if (
|
|
2197
|
+
}, t.delete_ = function(n, a) {
|
|
2198
|
+
if (a === void 0 && (a = !1), !M(this.target_, n))
|
|
2199
2199
|
return !0;
|
|
2200
|
-
if (
|
|
2201
|
-
var
|
|
2200
|
+
if (A(this)) {
|
|
2201
|
+
var r = w(this, {
|
|
2202
2202
|
object: this.proxy_ || this.target_,
|
|
2203
2203
|
name: n,
|
|
2204
|
-
type:
|
|
2204
|
+
type: zt
|
|
2205
2205
|
});
|
|
2206
|
-
if (!
|
|
2206
|
+
if (!r)
|
|
2207
2207
|
return null;
|
|
2208
2208
|
}
|
|
2209
2209
|
try {
|
|
2210
2210
|
var o, s;
|
|
2211
2211
|
S();
|
|
2212
|
-
var u =
|
|
2212
|
+
var u = F(this), l = !1, c = this.values_.get(n), h = void 0;
|
|
2213
2213
|
if (!c && (u || l)) {
|
|
2214
2214
|
var _;
|
|
2215
|
-
h = (_ =
|
|
2215
|
+
h = (_ = Ve(this.target_, n)) == null ? void 0 : _.value;
|
|
2216
2216
|
}
|
|
2217
|
-
if (
|
|
2217
|
+
if (a) {
|
|
2218
2218
|
if (!Reflect.deleteProperty(this.target_, n))
|
|
2219
2219
|
return !1;
|
|
2220
2220
|
} else
|
|
2221
2221
|
delete this.target_[n];
|
|
2222
|
-
if (c && (this.values_.delete(n), c instanceof
|
|
2223
|
-
var
|
|
2224
|
-
type:
|
|
2222
|
+
if (c && (this.values_.delete(n), c instanceof ne && (h = c.value_), An(c)), this.keysAtom_.reportChanged(), (o = this.pendingKeys_) == null || (s = o.get(n)) == null || s.set(n in this.target_), u || l) {
|
|
2223
|
+
var x = {
|
|
2224
|
+
type: zt,
|
|
2225
2225
|
observableKind: "object",
|
|
2226
2226
|
object: this.proxy_ || this.target_,
|
|
2227
2227
|
debugObjectName: this.name_,
|
|
2228
2228
|
oldValue: h,
|
|
2229
2229
|
name: n
|
|
2230
2230
|
};
|
|
2231
|
-
u &&
|
|
2231
|
+
u && E(this, x);
|
|
2232
2232
|
}
|
|
2233
2233
|
} finally {
|
|
2234
2234
|
N();
|
|
2235
2235
|
}
|
|
2236
2236
|
return !0;
|
|
2237
|
-
}, t.observe_ = function(n,
|
|
2238
|
-
return
|
|
2237
|
+
}, t.observe_ = function(n, a) {
|
|
2238
|
+
return we(this, n);
|
|
2239
2239
|
}, t.intercept_ = function(n) {
|
|
2240
|
-
return
|
|
2241
|
-
}, t.notifyPropertyAddition_ = function(n,
|
|
2242
|
-
var
|
|
2240
|
+
return Ae(this, n);
|
|
2241
|
+
}, t.notifyPropertyAddition_ = function(n, a) {
|
|
2242
|
+
var r, o, s = F(this), u = !1;
|
|
2243
2243
|
if (s || u) {
|
|
2244
2244
|
var l = s || u ? {
|
|
2245
|
-
type:
|
|
2245
|
+
type: z,
|
|
2246
2246
|
observableKind: "object",
|
|
2247
2247
|
debugObjectName: this.name_,
|
|
2248
2248
|
object: this.proxy_ || this.target_,
|
|
2249
2249
|
name: n,
|
|
2250
|
-
newValue:
|
|
2250
|
+
newValue: a
|
|
2251
2251
|
} : null;
|
|
2252
|
-
s &&
|
|
2252
|
+
s && E(this, l);
|
|
2253
2253
|
}
|
|
2254
|
-
(
|
|
2254
|
+
(r = this.pendingKeys_) == null || (o = r.get(n)) == null || o.set(!0), this.keysAtom_.reportChanged();
|
|
2255
2255
|
}, t.ownKeys_ = function() {
|
|
2256
|
-
return this.keysAtom_.reportObserved(),
|
|
2256
|
+
return this.keysAtom_.reportObserved(), fe(this.target_);
|
|
2257
2257
|
}, t.keys_ = function() {
|
|
2258
2258
|
return this.keysAtom_.reportObserved(), Object.keys(this.target_);
|
|
2259
2259
|
}, e;
|
|
2260
2260
|
}();
|
|
2261
|
-
function
|
|
2261
|
+
function Qe(e, t) {
|
|
2262
2262
|
var i;
|
|
2263
2263
|
if (M(e, f))
|
|
2264
2264
|
return e;
|
|
2265
|
-
var n = (i = t == null ? void 0 : t.name) != null ? i : "ObservableObject",
|
|
2266
|
-
return
|
|
2265
|
+
var n = (i = t == null ? void 0 : t.name) != null ? i : "ObservableObject", a = new $n(e, /* @__PURE__ */ new Map(), String(n), Ki(t));
|
|
2266
|
+
return qe(e, f, a), e;
|
|
2267
2267
|
}
|
|
2268
|
-
var
|
|
2269
|
-
function
|
|
2270
|
-
return
|
|
2268
|
+
var Ra = /* @__PURE__ */ H("ObservableObjectAdministration", $n);
|
|
2269
|
+
function Mt(e) {
|
|
2270
|
+
return Lt[e] || (Lt[e] = {
|
|
2271
2271
|
get: function() {
|
|
2272
2272
|
return this[f].getObservablePropValue_(e);
|
|
2273
2273
|
},
|
|
@@ -2276,33 +2276,33 @@ function Lt(e) {
|
|
|
2276
2276
|
}
|
|
2277
2277
|
});
|
|
2278
2278
|
}
|
|
2279
|
-
function
|
|
2280
|
-
return
|
|
2279
|
+
function pe(e) {
|
|
2280
|
+
return Ke(e) ? Ra(e[f]) : !1;
|
|
2281
2281
|
}
|
|
2282
|
-
function
|
|
2282
|
+
function Ut(e, t, i) {
|
|
2283
2283
|
var n;
|
|
2284
|
-
(n = e.target_[
|
|
2284
|
+
(n = e.target_[ee]) == null || delete n[i];
|
|
2285
2285
|
}
|
|
2286
|
-
var
|
|
2286
|
+
var at = 0, Kn = function() {
|
|
2287
2287
|
};
|
|
2288
|
-
function
|
|
2288
|
+
function Ia(e, t) {
|
|
2289
2289
|
Object.setPrototypeOf ? Object.setPrototypeOf(e.prototype, t) : e.prototype.__proto__ !== void 0 ? e.prototype.__proto__ = t : e.prototype = t;
|
|
2290
2290
|
}
|
|
2291
|
-
|
|
2292
|
-
var
|
|
2293
|
-
|
|
2294
|
-
function n(
|
|
2291
|
+
Ia(Kn, Array.prototype);
|
|
2292
|
+
var St = /* @__PURE__ */ function(e, t, i) {
|
|
2293
|
+
rn(n, e);
|
|
2294
|
+
function n(r, o, s, u) {
|
|
2295
2295
|
var l;
|
|
2296
2296
|
s === void 0 && (s = "ObservableArray"), u === void 0 && (u = !1), l = e.call(this) || this;
|
|
2297
|
-
var c = new
|
|
2298
|
-
if (c.proxy_ =
|
|
2299
|
-
var h =
|
|
2300
|
-
l.spliceWithArray(0, 0,
|
|
2297
|
+
var c = new yt(s, o, u, !0);
|
|
2298
|
+
if (c.proxy_ = Pt(l), tn(Pt(l), f, c), r && r.length) {
|
|
2299
|
+
var h = Ne(!0);
|
|
2300
|
+
l.spliceWithArray(0, 0, r), Oe(h);
|
|
2301
2301
|
}
|
|
2302
2302
|
return l;
|
|
2303
2303
|
}
|
|
2304
|
-
var
|
|
2305
|
-
return
|
|
2304
|
+
var a = n.prototype;
|
|
2305
|
+
return a.concat = function() {
|
|
2306
2306
|
this[f].atom_.reportObserved();
|
|
2307
2307
|
for (var o = arguments.length, s = new Array(o), u = 0; u < o; u++)
|
|
2308
2308
|
s[u] = arguments[u];
|
|
@@ -2310,15 +2310,15 @@ var gt = /* @__PURE__ */ function(e, t, i) {
|
|
|
2310
2310
|
this.slice(),
|
|
2311
2311
|
//@ts-ignore
|
|
2312
2312
|
s.map(function(l) {
|
|
2313
|
-
return
|
|
2313
|
+
return Ye(l) ? l.slice() : l;
|
|
2314
2314
|
})
|
|
2315
2315
|
);
|
|
2316
|
-
},
|
|
2317
|
-
var
|
|
2318
|
-
return
|
|
2316
|
+
}, a[i] = function() {
|
|
2317
|
+
var r = this, o = 0;
|
|
2318
|
+
return ke({
|
|
2319
2319
|
next: function() {
|
|
2320
|
-
return o <
|
|
2321
|
-
value:
|
|
2320
|
+
return o < r.length ? {
|
|
2321
|
+
value: r[o++],
|
|
2322
2322
|
done: !1
|
|
2323
2323
|
} : {
|
|
2324
2324
|
done: !0,
|
|
@@ -2326,7 +2326,7 @@ var gt = /* @__PURE__ */ function(e, t, i) {
|
|
|
2326
2326
|
};
|
|
2327
2327
|
}
|
|
2328
2328
|
});
|
|
2329
|
-
},
|
|
2329
|
+
}, _t(n, [{
|
|
2330
2330
|
key: "length",
|
|
2331
2331
|
get: function() {
|
|
2332
2332
|
return this[f].getArrayLength_();
|
|
@@ -2340,12 +2340,12 @@ var gt = /* @__PURE__ */ function(e, t, i) {
|
|
|
2340
2340
|
return "Array";
|
|
2341
2341
|
}
|
|
2342
2342
|
}]), n;
|
|
2343
|
-
}(
|
|
2344
|
-
Object.entries(
|
|
2343
|
+
}(Kn, Symbol.toStringTag, Symbol.iterator);
|
|
2344
|
+
Object.entries(Me).forEach(function(e) {
|
|
2345
2345
|
var t = e[0], i = e[1];
|
|
2346
|
-
t !== "concat" &&
|
|
2346
|
+
t !== "concat" && qe(St.prototype, t, i);
|
|
2347
2347
|
});
|
|
2348
|
-
function
|
|
2348
|
+
function Ba(e) {
|
|
2349
2349
|
return {
|
|
2350
2350
|
enumerable: !1,
|
|
2351
2351
|
configurable: !0,
|
|
@@ -2357,80 +2357,80 @@ function Rr(e) {
|
|
|
2357
2357
|
}
|
|
2358
2358
|
};
|
|
2359
2359
|
}
|
|
2360
|
-
function
|
|
2361
|
-
|
|
2360
|
+
function La(e) {
|
|
2361
|
+
R(St.prototype, "" + e, Ba(e));
|
|
2362
2362
|
}
|
|
2363
|
-
function
|
|
2364
|
-
if (e >
|
|
2365
|
-
for (var t =
|
|
2366
|
-
|
|
2367
|
-
|
|
2363
|
+
function qn(e) {
|
|
2364
|
+
if (e > at) {
|
|
2365
|
+
for (var t = at; t < e + 100; t++)
|
|
2366
|
+
La(t);
|
|
2367
|
+
at = e;
|
|
2368
2368
|
}
|
|
2369
2369
|
}
|
|
2370
|
-
|
|
2371
|
-
function
|
|
2372
|
-
return new
|
|
2370
|
+
qn(1e3);
|
|
2371
|
+
function za(e, t, i) {
|
|
2372
|
+
return new St(e, t, i);
|
|
2373
2373
|
}
|
|
2374
|
-
function
|
|
2374
|
+
function W(e, t) {
|
|
2375
2375
|
if (typeof e == "object" && e !== null) {
|
|
2376
|
-
if (
|
|
2376
|
+
if (Ye(e))
|
|
2377
2377
|
return t !== void 0 && m(23), e[f].atom_;
|
|
2378
|
-
if (
|
|
2378
|
+
if (se(e))
|
|
2379
2379
|
return e[f];
|
|
2380
|
-
if (
|
|
2380
|
+
if (X(e)) {
|
|
2381
2381
|
if (t === void 0)
|
|
2382
2382
|
return e.keysAtom_;
|
|
2383
2383
|
var i = e.data_.get(t) || e.hasMap_.get(t);
|
|
2384
|
-
return i || m(25, t,
|
|
2384
|
+
return i || m(25, t, vt(e)), i;
|
|
2385
2385
|
}
|
|
2386
|
-
if (
|
|
2386
|
+
if (pe(e)) {
|
|
2387
2387
|
if (!t)
|
|
2388
2388
|
return m(26);
|
|
2389
2389
|
var n = e[f].values_.get(t);
|
|
2390
|
-
return n || m(27, t,
|
|
2390
|
+
return n || m(27, t, vt(e)), n;
|
|
2391
2391
|
}
|
|
2392
|
-
if (
|
|
2392
|
+
if (pt(e) || Je(e) || Le(e))
|
|
2393
2393
|
return e;
|
|
2394
|
-
} else if (
|
|
2394
|
+
} else if (C(e) && Le(e[f]))
|
|
2395
2395
|
return e[f];
|
|
2396
2396
|
m(28);
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2398
|
+
function Wn(e, t) {
|
|
2399
2399
|
if (e || m(29), t !== void 0)
|
|
2400
|
-
return
|
|
2401
|
-
if (
|
|
2400
|
+
return Wn(W(e, t));
|
|
2401
|
+
if (pt(e) || Je(e) || Le(e) || X(e) || se(e))
|
|
2402
2402
|
return e;
|
|
2403
2403
|
if (e[f])
|
|
2404
2404
|
return e[f];
|
|
2405
2405
|
m(24, e);
|
|
2406
2406
|
}
|
|
2407
|
-
function
|
|
2407
|
+
function vt(e, t) {
|
|
2408
2408
|
var i;
|
|
2409
2409
|
if (t !== void 0)
|
|
2410
|
-
i =
|
|
2410
|
+
i = W(e, t);
|
|
2411
2411
|
else {
|
|
2412
|
-
if (
|
|
2412
|
+
if (gt(e))
|
|
2413
2413
|
return e.name;
|
|
2414
|
-
|
|
2414
|
+
pe(e) || X(e) || se(e) ? i = Wn(e) : i = W(e);
|
|
2415
2415
|
}
|
|
2416
2416
|
return i.name_;
|
|
2417
2417
|
}
|
|
2418
|
-
var
|
|
2419
|
-
function
|
|
2420
|
-
return i === void 0 && (i = -1),
|
|
2418
|
+
var Gt = $e.toString;
|
|
2419
|
+
function Nt(e, t, i) {
|
|
2420
|
+
return i === void 0 && (i = -1), mt(e, t, i);
|
|
2421
2421
|
}
|
|
2422
|
-
function
|
|
2422
|
+
function mt(e, t, i, n, a) {
|
|
2423
2423
|
if (e === t)
|
|
2424
2424
|
return e !== 0 || 1 / e === 1 / t;
|
|
2425
2425
|
if (e == null || t == null)
|
|
2426
2426
|
return !1;
|
|
2427
2427
|
if (e !== e)
|
|
2428
2428
|
return t !== t;
|
|
2429
|
-
var
|
|
2430
|
-
if (
|
|
2429
|
+
var r = typeof e;
|
|
2430
|
+
if (r !== "function" && r !== "object" && typeof t != "object")
|
|
2431
2431
|
return !1;
|
|
2432
|
-
var o =
|
|
2433
|
-
if (o !==
|
|
2432
|
+
var o = Gt.call(e);
|
|
2433
|
+
if (o !== Gt.call(t))
|
|
2434
2434
|
return !1;
|
|
2435
2435
|
switch (o) {
|
|
2436
2436
|
case "[object RegExp]":
|
|
@@ -2448,71 +2448,71 @@ function ft(e, t, i, n, r) {
|
|
|
2448
2448
|
i >= 0 && i++;
|
|
2449
2449
|
break;
|
|
2450
2450
|
}
|
|
2451
|
-
e =
|
|
2451
|
+
e = $t(e), t = $t(t);
|
|
2452
2452
|
var s = o === "[object Array]";
|
|
2453
2453
|
if (!s) {
|
|
2454
2454
|
if (typeof e != "object" || typeof t != "object")
|
|
2455
2455
|
return !1;
|
|
2456
2456
|
var u = e.constructor, l = t.constructor;
|
|
2457
|
-
if (u !== l && !(
|
|
2457
|
+
if (u !== l && !(C(u) && u instanceof u && C(l) && l instanceof l) && "constructor" in e && "constructor" in t)
|
|
2458
2458
|
return !1;
|
|
2459
2459
|
}
|
|
2460
2460
|
if (i === 0)
|
|
2461
2461
|
return !1;
|
|
2462
|
-
i < 0 && (i = -1), n = n || [],
|
|
2462
|
+
i < 0 && (i = -1), n = n || [], a = a || [];
|
|
2463
2463
|
for (var c = n.length; c--; )
|
|
2464
2464
|
if (n[c] === e)
|
|
2465
|
-
return
|
|
2466
|
-
if (n.push(e),
|
|
2465
|
+
return a[c] === t;
|
|
2466
|
+
if (n.push(e), a.push(t), s) {
|
|
2467
2467
|
if (c = e.length, c !== t.length)
|
|
2468
2468
|
return !1;
|
|
2469
2469
|
for (; c--; )
|
|
2470
|
-
if (!
|
|
2470
|
+
if (!mt(e[c], t[c], i - 1, n, a))
|
|
2471
2471
|
return !1;
|
|
2472
2472
|
} else {
|
|
2473
2473
|
var h = Object.keys(e), _;
|
|
2474
2474
|
if (c = h.length, Object.keys(t).length !== c)
|
|
2475
2475
|
return !1;
|
|
2476
2476
|
for (; c--; )
|
|
2477
|
-
if (_ = h[c], !(M(t, _) &&
|
|
2477
|
+
if (_ = h[c], !(M(t, _) && mt(e[_], t[_], i - 1, n, a)))
|
|
2478
2478
|
return !1;
|
|
2479
2479
|
}
|
|
2480
|
-
return n.pop(),
|
|
2480
|
+
return n.pop(), a.pop(), !0;
|
|
2481
2481
|
}
|
|
2482
|
-
function
|
|
2483
|
-
return
|
|
2482
|
+
function $t(e) {
|
|
2483
|
+
return Ye(e) ? e.slice() : re(e) || X(e) || be(e) || se(e) ? Array.from(e.entries()) : e;
|
|
2484
2484
|
}
|
|
2485
|
-
function
|
|
2486
|
-
return e[Symbol.iterator] =
|
|
2485
|
+
function ke(e) {
|
|
2486
|
+
return e[Symbol.iterator] = Ma, e;
|
|
2487
2487
|
}
|
|
2488
|
-
function
|
|
2488
|
+
function Ma() {
|
|
2489
2489
|
return this;
|
|
2490
2490
|
}
|
|
2491
2491
|
["Symbol", "Map", "Set"].forEach(function(e) {
|
|
2492
|
-
var t =
|
|
2492
|
+
var t = Jt();
|
|
2493
2493
|
typeof t[e] == "undefined" && m("MobX requires global '" + e + "' to be available or polyfilled");
|
|
2494
2494
|
});
|
|
2495
2495
|
typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
|
|
2496
|
-
spy:
|
|
2496
|
+
spy: la,
|
|
2497
2497
|
extras: {
|
|
2498
|
-
getDebugName:
|
|
2498
|
+
getDebugName: vt
|
|
2499
2499
|
},
|
|
2500
2500
|
$mobx: f
|
|
2501
2501
|
});
|
|
2502
|
-
async function
|
|
2503
|
-
var
|
|
2502
|
+
async function Nr(a) {
|
|
2503
|
+
var r = a, {
|
|
2504
2504
|
url: e,
|
|
2505
2505
|
method: t = "GET",
|
|
2506
2506
|
raw: i = !1
|
|
2507
|
-
} =
|
|
2507
|
+
} = r, n = Et(r, [
|
|
2508
2508
|
"url",
|
|
2509
2509
|
"method",
|
|
2510
2510
|
"raw"
|
|
2511
2511
|
]);
|
|
2512
2512
|
var l;
|
|
2513
|
-
const o =
|
|
2513
|
+
const o = le({
|
|
2514
2514
|
"Content-Type": "application/json"
|
|
2515
|
-
}, n.headers), s = await fetch(e,
|
|
2515
|
+
}, n.headers), s = await fetch(e, Ft(le({ method: t }, n), { headers: o }));
|
|
2516
2516
|
if (i)
|
|
2517
2517
|
return s;
|
|
2518
2518
|
const u = await s.json();
|
|
@@ -2522,9 +2522,9 @@ async function Sa(r) {
|
|
|
2522
2522
|
}
|
|
2523
2523
|
return u;
|
|
2524
2524
|
}
|
|
2525
|
-
class
|
|
2525
|
+
class Kt {
|
|
2526
2526
|
constructor() {
|
|
2527
|
-
|
|
2527
|
+
g(this, "store");
|
|
2528
2528
|
this.store = this.getStoreFromWindow();
|
|
2529
2529
|
}
|
|
2530
2530
|
getStoreFromWindow() {
|
|
@@ -2561,7 +2561,7 @@ class $t {
|
|
|
2561
2561
|
return Object.keys(this.store).length;
|
|
2562
2562
|
}
|
|
2563
2563
|
}
|
|
2564
|
-
function
|
|
2564
|
+
function qt(e) {
|
|
2565
2565
|
try {
|
|
2566
2566
|
const t = window[e], i = "__custom-storage__";
|
|
2567
2567
|
return t.setItem(i, i), t.removeItem(i), !0;
|
|
@@ -2569,7 +2569,7 @@ function zt(e) {
|
|
|
2569
2569
|
return !1;
|
|
2570
2570
|
}
|
|
2571
2571
|
}
|
|
2572
|
-
function
|
|
2572
|
+
function Wt(e, t, i) {
|
|
2573
2573
|
const n = {
|
|
2574
2574
|
configurable: !1,
|
|
2575
2575
|
enumerable: !1,
|
|
@@ -2577,84 +2577,84 @@ function Kt(e, t, i) {
|
|
|
2577
2577
|
};
|
|
2578
2578
|
typeof i != "undefined" && (n.value = i), Object.defineProperty(e, t, n);
|
|
2579
2579
|
}
|
|
2580
|
-
class
|
|
2580
|
+
class Hn {
|
|
2581
2581
|
static init() {
|
|
2582
|
-
return new
|
|
2582
|
+
return new Hn();
|
|
2583
2583
|
}
|
|
2584
2584
|
constructor() {
|
|
2585
2585
|
window.top === window.self ? console.log("[CustomStorage] This is the main window") : console.log("[CustomStorage] This is NOT the main window"), this.replaceStorages();
|
|
2586
2586
|
}
|
|
2587
2587
|
replaceStorages() {
|
|
2588
2588
|
if (!this.isAvailable.localStorage) {
|
|
2589
|
-
const t = new
|
|
2590
|
-
|
|
2589
|
+
const t = new Kt();
|
|
2590
|
+
Wt(window, "localStorage", t), console.log(
|
|
2591
2591
|
"[CustomStorage] LocalStorage is not available, custom implementation is defined"
|
|
2592
2592
|
);
|
|
2593
2593
|
}
|
|
2594
2594
|
if (!this.isAvailable.sessionStorage) {
|
|
2595
|
-
const t = new
|
|
2596
|
-
|
|
2595
|
+
const t = new Kt();
|
|
2596
|
+
Wt(window, "sessionStorage", t), console.log(
|
|
2597
2597
|
"[CustomStorage] SessionStorage is not available, custom implementation is defined"
|
|
2598
2598
|
);
|
|
2599
2599
|
}
|
|
2600
2600
|
}
|
|
2601
2601
|
get isAvailable() {
|
|
2602
2602
|
return {
|
|
2603
|
-
localStorage:
|
|
2604
|
-
sessionStorage:
|
|
2603
|
+
localStorage: qt("localStorage"),
|
|
2604
|
+
sessionStorage: qt("sessionStorage")
|
|
2605
2605
|
};
|
|
2606
2606
|
}
|
|
2607
2607
|
}
|
|
2608
|
-
var
|
|
2609
|
-
function
|
|
2610
|
-
if (!
|
|
2608
|
+
var Pe, Ua = new Uint8Array(16);
|
|
2609
|
+
function Ga() {
|
|
2610
|
+
if (!Pe && (Pe = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !Pe))
|
|
2611
2611
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
2612
|
-
return
|
|
2612
|
+
return Pe(Ua);
|
|
2613
2613
|
}
|
|
2614
|
-
const
|
|
2615
|
-
function
|
|
2616
|
-
return typeof e == "string" &&
|
|
2614
|
+
const $a = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
2615
|
+
function Ka(e) {
|
|
2616
|
+
return typeof e == "string" && $a.test(e);
|
|
2617
2617
|
}
|
|
2618
2618
|
var k = [];
|
|
2619
|
-
for (var
|
|
2620
|
-
k.push((
|
|
2621
|
-
function
|
|
2619
|
+
for (var rt = 0; rt < 256; ++rt)
|
|
2620
|
+
k.push((rt + 256).toString(16).substr(1));
|
|
2621
|
+
function qa(e) {
|
|
2622
2622
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, i = (k[e[t + 0]] + k[e[t + 1]] + k[e[t + 2]] + k[e[t + 3]] + "-" + k[e[t + 4]] + k[e[t + 5]] + "-" + k[e[t + 6]] + k[e[t + 7]] + "-" + k[e[t + 8]] + k[e[t + 9]] + "-" + k[e[t + 10]] + k[e[t + 11]] + k[e[t + 12]] + k[e[t + 13]] + k[e[t + 14]] + k[e[t + 15]]).toLowerCase();
|
|
2623
|
-
if (
|
|
2623
|
+
if (!Ka(i))
|
|
2624
2624
|
throw TypeError("Stringified UUID is invalid");
|
|
2625
2625
|
return i;
|
|
2626
2626
|
}
|
|
2627
|
-
function
|
|
2627
|
+
function Wa(e, t, i) {
|
|
2628
2628
|
e = e || {};
|
|
2629
|
-
var n = e.random || (e.rng ||
|
|
2629
|
+
var n = e.random || (e.rng || Ga)();
|
|
2630
2630
|
if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, t) {
|
|
2631
2631
|
i = i || 0;
|
|
2632
|
-
for (var
|
|
2633
|
-
t[i +
|
|
2632
|
+
for (var a = 0; a < 16; ++a)
|
|
2633
|
+
t[i + a] = n[a];
|
|
2634
2634
|
return t;
|
|
2635
2635
|
}
|
|
2636
|
-
return
|
|
2636
|
+
return qa(n);
|
|
2637
2637
|
}
|
|
2638
|
-
const
|
|
2639
|
-
let e =
|
|
2640
|
-
return e || (e =
|
|
2638
|
+
const Ht = "FINGERPRINT_LIVE_SHOPPING", Or = () => {
|
|
2639
|
+
let e = Ct.get(Ht);
|
|
2640
|
+
return e || (e = Wa(), Ct.set(Ht, e, { expires: 1 }), e);
|
|
2641
2641
|
};
|
|
2642
|
-
let
|
|
2643
|
-
const
|
|
2642
|
+
let Ha = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, i) => (i &= 63, i < 36 ? t += i.toString(36) : i < 62 ? t += (i - 26).toString(36).toUpperCase() : i > 62 ? t += "-" : t += "_", t), "");
|
|
2643
|
+
const Xa = (e = 8) => Ha(e), Ar = (e) => {
|
|
2644
2644
|
const t = Object.entries(e).map(([i, n]) => `${i}=${n}`).join("&");
|
|
2645
2645
|
return t ? `?${t}` : "";
|
|
2646
|
-
},
|
|
2646
|
+
}, wr = (e, t, i = { fallback: null }) => {
|
|
2647
2647
|
let n = e;
|
|
2648
|
-
t && (n = () => e().then((
|
|
2649
|
-
const
|
|
2650
|
-
return (
|
|
2648
|
+
t && (n = () => e().then((r) => ({ default: t(r) })));
|
|
2649
|
+
const a = ni(n);
|
|
2650
|
+
return (r) => /* @__PURE__ */ ot(ii, { fallback: i.fallback, children: /* @__PURE__ */ ot(a, le({}, r)) });
|
|
2651
2651
|
};
|
|
2652
|
-
class
|
|
2652
|
+
class je {
|
|
2653
2653
|
constructor(t, i, n) {
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2654
|
+
g(this, "isOk");
|
|
2655
|
+
g(this, "isErr");
|
|
2656
|
+
g(this, "error");
|
|
2657
|
+
g(this, "_value");
|
|
2658
2658
|
if (t && i)
|
|
2659
2659
|
throw new Error(
|
|
2660
2660
|
"InvalidOperation: A result cannot be successful and contain an error"
|
|
@@ -2673,21 +2673,21 @@ class De {
|
|
|
2673
2673
|
return this._value;
|
|
2674
2674
|
}
|
|
2675
2675
|
static ok(t) {
|
|
2676
|
-
return new
|
|
2676
|
+
return new je(!0, void 0, t);
|
|
2677
2677
|
}
|
|
2678
2678
|
static fail(t) {
|
|
2679
|
-
return new
|
|
2679
|
+
return new je(!1, t);
|
|
2680
2680
|
}
|
|
2681
2681
|
static combine(t) {
|
|
2682
2682
|
for (const i of t)
|
|
2683
2683
|
if (i.isErr)
|
|
2684
2684
|
return i;
|
|
2685
|
-
return
|
|
2685
|
+
return je.ok();
|
|
2686
2686
|
}
|
|
2687
2687
|
}
|
|
2688
|
-
class
|
|
2688
|
+
class Ja {
|
|
2689
2689
|
constructor(t) {
|
|
2690
|
-
|
|
2690
|
+
g(this, "value");
|
|
2691
2691
|
this.value = t;
|
|
2692
2692
|
}
|
|
2693
2693
|
isErr() {
|
|
@@ -2697,9 +2697,9 @@ class Hr {
|
|
|
2697
2697
|
return !1;
|
|
2698
2698
|
}
|
|
2699
2699
|
}
|
|
2700
|
-
class
|
|
2700
|
+
class Ya {
|
|
2701
2701
|
constructor(t) {
|
|
2702
|
-
|
|
2702
|
+
g(this, "value");
|
|
2703
2703
|
this.value = t;
|
|
2704
2704
|
}
|
|
2705
2705
|
isErr() {
|
|
@@ -2709,12 +2709,32 @@ class Xr {
|
|
|
2709
2709
|
return !0;
|
|
2710
2710
|
}
|
|
2711
2711
|
}
|
|
2712
|
-
const
|
|
2713
|
-
class Yr {
|
|
2712
|
+
const Fr = (e) => new Ja(e), Er = (e) => new Ya(e), Qa = ["account"], O = class {
|
|
2714
2713
|
constructor() {
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2714
|
+
g(this, "_id", Xa());
|
|
2715
|
+
g(this, "_config");
|
|
2716
|
+
Ea(this, {}, { name: "NizzaStore", autoBind: !0 });
|
|
2717
|
+
}
|
|
2718
|
+
static instance() {
|
|
2719
|
+
return O._instance || (O._instance = new O(), console.log(
|
|
2720
|
+
"🚀 ~ file: NizzaStore.ts:20 ~ NizzaStore:",
|
|
2721
|
+
"No exist, created.",
|
|
2722
|
+
O._instance._id
|
|
2723
|
+
)), console.log(
|
|
2724
|
+
"🚀 ~ file: NizzaStore.ts:28 ~ NizzaStore ~ instance ~ (window as any)?.nizza:",
|
|
2725
|
+
window == null ? void 0 : window.nizza
|
|
2726
|
+
), console.log(
|
|
2727
|
+
"🚀 ~ file: NizzaStore.ts:29 ~ NizzaStore ~ instance ~ (window as any).nizza instanceof NizzaStore:",
|
|
2728
|
+
window.nizza instanceof O
|
|
2729
|
+
), window != null && window.nizza && window.nizza instanceof O ? (O._instance = window.nizza, console.log(
|
|
2730
|
+
"🚀 ~ file: NizzaStore.ts:25 ~ NizzaStore:",
|
|
2731
|
+
"Previos instance in window, reusing.",
|
|
2732
|
+
window.nizza._id
|
|
2733
|
+
)) : (O._instance.createGlobalObject(), console.log(
|
|
2734
|
+
"🚀 ~ file: NizzaStore.ts:34 ~ NizzaStore:",
|
|
2735
|
+
"No exist instance in window, created.",
|
|
2736
|
+
O._instance._id
|
|
2737
|
+
)), O._instance;
|
|
2718
2738
|
}
|
|
2719
2739
|
configure(t) {
|
|
2720
2740
|
this._config = t;
|
|
@@ -2726,31 +2746,33 @@ class Yr {
|
|
|
2726
2746
|
return this.validateRequiredProps(), this._config;
|
|
2727
2747
|
}
|
|
2728
2748
|
validateRequiredProps() {
|
|
2729
|
-
|
|
2749
|
+
Qa.forEach((t) => {
|
|
2730
2750
|
if (t === void 0)
|
|
2731
|
-
throw new
|
|
2751
|
+
throw new oi(t);
|
|
2732
2752
|
});
|
|
2733
2753
|
}
|
|
2734
|
-
}
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
const Qr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "deleteAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInputAccount" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Zr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ea = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "updateCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ta = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, na = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ia = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ra = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, aa = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ManageCollectionProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ManageCollectionProductInInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "manageCollectionProduct" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, oa = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, sa = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ua = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }, { kind: "Field", name: { kind: "Name", value: "modified" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2754
|
+
};
|
|
2755
|
+
let xe = O;
|
|
2756
|
+
g(xe, "_instance");
|
|
2757
|
+
const Cr = xe.instance();
|
|
2758
|
+
var Xn = /* @__PURE__ */ ((e) => (e.Add = "add", e.Remove = "remove", e))(Xn || {}), Jn = /* @__PURE__ */ ((e) => (e.Active = "active", e.Inactive = "inactive", e))(Jn || {});
|
|
2759
|
+
const Za = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "deleteAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInputAccount" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, er = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, tr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "updateCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, nr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ir = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ar = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, rr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, or = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ManageCollectionProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ManageCollectionProductInInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "manageCollectionProduct" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, sr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ur = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, lr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }, { kind: "Field", name: { kind: "Name", value: "modified" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2738
2760
|
__proto__: null,
|
|
2739
|
-
AddCollectionDocument:
|
|
2740
|
-
DeleteAllCustomizationDocument:
|
|
2741
|
-
DeleteCollectionDocument:
|
|
2742
|
-
FindCollectionDocument:
|
|
2743
|
-
GetAllCollectionsDocument:
|
|
2744
|
-
GetAllCustomizationDocument:
|
|
2745
|
-
GetAllSnackVideosDocument:
|
|
2746
|
-
ManageCollectionProductDocument:
|
|
2747
|
-
Methods:
|
|
2748
|
-
SearchCollectionsDocument:
|
|
2749
|
-
Status:
|
|
2750
|
-
UpdateCollectionDocument:
|
|
2751
|
-
UpdateCustomizationDocument:
|
|
2761
|
+
AddCollectionDocument: nr,
|
|
2762
|
+
DeleteAllCustomizationDocument: Za,
|
|
2763
|
+
DeleteCollectionDocument: ir,
|
|
2764
|
+
FindCollectionDocument: ar,
|
|
2765
|
+
GetAllCollectionsDocument: rr,
|
|
2766
|
+
GetAllCustomizationDocument: er,
|
|
2767
|
+
GetAllSnackVideosDocument: lr,
|
|
2768
|
+
ManageCollectionProductDocument: or,
|
|
2769
|
+
Methods: Xn,
|
|
2770
|
+
SearchCollectionsDocument: sr,
|
|
2771
|
+
Status: Jn,
|
|
2772
|
+
UpdateCollectionDocument: ur,
|
|
2773
|
+
UpdateCustomizationDocument: tr
|
|
2752
2774
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2753
|
-
function
|
|
2775
|
+
function Pr(e) {
|
|
2754
2776
|
return {
|
|
2755
2777
|
class: e,
|
|
2756
2778
|
_value: null,
|
|
@@ -2760,32 +2782,32 @@ function Ta(e) {
|
|
|
2760
2782
|
};
|
|
2761
2783
|
}
|
|
2762
2784
|
export {
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2785
|
+
br as AccountInvalidError,
|
|
2786
|
+
ri as AggregateRoot,
|
|
2787
|
+
Tr as ApiGraphqlTypes,
|
|
2788
|
+
hr as BaseMobxStore,
|
|
2789
|
+
Hn as CustomStorage,
|
|
2790
|
+
Ge as DomainError,
|
|
2791
|
+
Ja as Err,
|
|
2792
|
+
oi as InvalidNizzaGlobalObjectError,
|
|
2793
|
+
xe as NizzaStore,
|
|
2794
|
+
ai as NizzaVariationTypes,
|
|
2795
|
+
Ya as Ok,
|
|
2796
|
+
pr as ResourceNotFoundError,
|
|
2797
|
+
je as Result,
|
|
2798
|
+
gr as StoreProvider,
|
|
2799
|
+
kr as UnexpectedError,
|
|
2800
|
+
_r as ValueObject,
|
|
2801
|
+
Nr as apiCall,
|
|
2802
|
+
mr as createAggregateRoot,
|
|
2803
|
+
Pr as createStore,
|
|
2804
|
+
Er as err,
|
|
2805
|
+
Or as getFingerprint,
|
|
2806
|
+
Sr as getStore,
|
|
2807
|
+
wr as lazyLoad,
|
|
2808
|
+
Cr as nizza,
|
|
2809
|
+
Fr as ok,
|
|
2810
|
+
Ar as searchParams,
|
|
2811
|
+
Xa as shortId,
|
|
2812
|
+
yr as useStore
|
|
2791
2813
|
};
|