react-state-custom 1.0.1 → 1.0.2
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.es.js +388 -377
- package/dist/index.umd.js +4 -4
- package/dist/state-utils/createRootCtx.d.ts +1 -0
- package/package.json +1 -1
- package/src/state-utils/createRootCtx.tsx +17 -1
package/dist/index.es.js
CHANGED
|
@@ -1,242 +1,242 @@
|
|
|
1
1
|
var Pe = Object.defineProperty;
|
|
2
2
|
var Ne = (e, t, r) => t in e ? Pe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var K = (e, t, r) => Ne(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import Ae, { useMemo as
|
|
5
|
-
function
|
|
4
|
+
import Ae, { useMemo as W, useEffect as L, useState as J } from "react";
|
|
5
|
+
function ke(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
|
-
var B = { exports: {} },
|
|
9
|
-
function
|
|
10
|
-
if (
|
|
11
|
-
|
|
12
|
-
var e = typeof Reflect == "object" ? Reflect : null, t = e && typeof e.apply == "function" ? e.apply : function(
|
|
13
|
-
return Function.prototype.apply.call(
|
|
8
|
+
var B = { exports: {} }, me;
|
|
9
|
+
function Ie() {
|
|
10
|
+
if (me) return B.exports;
|
|
11
|
+
me = 1;
|
|
12
|
+
var e = typeof Reflect == "object" ? Reflect : null, t = e && typeof e.apply == "function" ? e.apply : function(i, o, c) {
|
|
13
|
+
return Function.prototype.apply.call(i, o, c);
|
|
14
14
|
}, r;
|
|
15
|
-
e && typeof e.ownKeys == "function" ? r = e.ownKeys : Object.getOwnPropertySymbols ? r = function(
|
|
16
|
-
return Object.getOwnPropertyNames(
|
|
17
|
-
} : r = function(
|
|
18
|
-
return Object.getOwnPropertyNames(
|
|
15
|
+
e && typeof e.ownKeys == "function" ? r = e.ownKeys : Object.getOwnPropertySymbols ? r = function(i) {
|
|
16
|
+
return Object.getOwnPropertyNames(i).concat(Object.getOwnPropertySymbols(i));
|
|
17
|
+
} : r = function(i) {
|
|
18
|
+
return Object.getOwnPropertyNames(i);
|
|
19
19
|
};
|
|
20
20
|
function u(s) {
|
|
21
21
|
console && console.warn && console.warn(s);
|
|
22
22
|
}
|
|
23
|
-
var
|
|
24
|
-
return
|
|
23
|
+
var f = Number.isNaN || function(i) {
|
|
24
|
+
return i !== i;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
|
|
26
|
+
function n() {
|
|
27
|
+
n.init.call(this);
|
|
28
28
|
}
|
|
29
|
-
B.exports =
|
|
29
|
+
B.exports = n, B.exports.once = N, n.EventEmitter = n, n.prototype._events = void 0, n.prototype._eventsCount = 0, n.prototype._maxListeners = void 0;
|
|
30
30
|
var d = 10;
|
|
31
31
|
function h(s) {
|
|
32
32
|
if (typeof s != "function")
|
|
33
33
|
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof s);
|
|
34
34
|
}
|
|
35
|
-
Object.defineProperty(
|
|
35
|
+
Object.defineProperty(n, "defaultMaxListeners", {
|
|
36
36
|
enumerable: !0,
|
|
37
37
|
get: function() {
|
|
38
38
|
return d;
|
|
39
39
|
},
|
|
40
40
|
set: function(s) {
|
|
41
|
-
if (typeof s != "number" || s < 0 ||
|
|
41
|
+
if (typeof s != "number" || s < 0 || f(s))
|
|
42
42
|
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + s + ".");
|
|
43
43
|
d = s;
|
|
44
44
|
}
|
|
45
|
-
}),
|
|
45
|
+
}), n.init = function() {
|
|
46
46
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
47
|
-
},
|
|
48
|
-
if (typeof
|
|
49
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' +
|
|
50
|
-
return this._maxListeners =
|
|
47
|
+
}, n.prototype.setMaxListeners = function(i) {
|
|
48
|
+
if (typeof i != "number" || i < 0 || f(i))
|
|
49
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + i + ".");
|
|
50
|
+
return this._maxListeners = i, this;
|
|
51
51
|
};
|
|
52
52
|
function m(s) {
|
|
53
|
-
return s._maxListeners === void 0 ?
|
|
53
|
+
return s._maxListeners === void 0 ? n.defaultMaxListeners : s._maxListeners;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
n.prototype.getMaxListeners = function() {
|
|
56
56
|
return m(this);
|
|
57
|
-
},
|
|
58
|
-
for (var
|
|
59
|
-
var l =
|
|
57
|
+
}, n.prototype.emit = function(i) {
|
|
58
|
+
for (var o = [], c = 1; c < arguments.length; c++) o.push(arguments[c]);
|
|
59
|
+
var l = i === "error", b = this._events;
|
|
60
60
|
if (b !== void 0)
|
|
61
61
|
l = l && b.error === void 0;
|
|
62
62
|
else if (!l)
|
|
63
63
|
return !1;
|
|
64
64
|
if (l) {
|
|
65
65
|
var v;
|
|
66
|
-
if (
|
|
66
|
+
if (o.length > 0 && (v = o[0]), v instanceof Error)
|
|
67
67
|
throw v;
|
|
68
68
|
var S = new Error("Unhandled error." + (v ? " (" + v.message + ")" : ""));
|
|
69
69
|
throw S.context = v, S;
|
|
70
70
|
}
|
|
71
|
-
var A = b[
|
|
71
|
+
var A = b[i];
|
|
72
72
|
if (A === void 0)
|
|
73
73
|
return !1;
|
|
74
74
|
if (typeof A == "function")
|
|
75
|
-
t(A, this,
|
|
75
|
+
t(A, this, o);
|
|
76
76
|
else
|
|
77
|
-
for (var X = A.length,
|
|
78
|
-
t(
|
|
77
|
+
for (var X = A.length, G = I(A, X), c = 0; c < X; ++c)
|
|
78
|
+
t(G[c], this, o);
|
|
79
79
|
return !0;
|
|
80
80
|
};
|
|
81
|
-
function _(s,
|
|
81
|
+
function _(s, i, o, c) {
|
|
82
82
|
var l, b, v;
|
|
83
|
-
if (h(
|
|
83
|
+
if (h(o), b = s._events, b === void 0 ? (b = s._events = /* @__PURE__ */ Object.create(null), s._eventsCount = 0) : (b.newListener !== void 0 && (s.emit(
|
|
84
84
|
"newListener",
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
), b = s._events), v = b[
|
|
88
|
-
v = b[
|
|
89
|
-
else if (typeof v == "function" ? v = b[
|
|
85
|
+
i,
|
|
86
|
+
o.listener ? o.listener : o
|
|
87
|
+
), b = s._events), v = b[i]), v === void 0)
|
|
88
|
+
v = b[i] = o, ++s._eventsCount;
|
|
89
|
+
else if (typeof v == "function" ? v = b[i] = c ? [o, v] : [v, o] : c ? v.unshift(o) : v.push(o), l = m(s), l > 0 && v.length > l && !v.warned) {
|
|
90
90
|
v.warned = !0;
|
|
91
|
-
var S = new Error("Possible EventEmitter memory leak detected. " + v.length + " " + String(
|
|
92
|
-
S.name = "MaxListenersExceededWarning", S.emitter = s, S.type =
|
|
91
|
+
var S = new Error("Possible EventEmitter memory leak detected. " + v.length + " " + String(i) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
92
|
+
S.name = "MaxListenersExceededWarning", S.emitter = s, S.type = i, S.count = v.length, u(S);
|
|
93
93
|
}
|
|
94
94
|
return s;
|
|
95
95
|
}
|
|
96
|
-
|
|
97
|
-
return _(this,
|
|
98
|
-
},
|
|
99
|
-
return _(this,
|
|
96
|
+
n.prototype.addListener = function(i, o) {
|
|
97
|
+
return _(this, i, o, !1);
|
|
98
|
+
}, n.prototype.on = n.prototype.addListener, n.prototype.prependListener = function(i, o) {
|
|
99
|
+
return _(this, i, o, !0);
|
|
100
100
|
};
|
|
101
101
|
function y() {
|
|
102
102
|
if (!this.fired)
|
|
103
103
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
104
104
|
}
|
|
105
|
-
function T(s,
|
|
106
|
-
var
|
|
107
|
-
return l.listener =
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return h(
|
|
111
|
-
},
|
|
112
|
-
return h(
|
|
113
|
-
},
|
|
114
|
-
var
|
|
115
|
-
if (h(
|
|
105
|
+
function T(s, i, o) {
|
|
106
|
+
var c = { fired: !1, wrapFn: void 0, target: s, type: i, listener: o }, l = y.bind(c);
|
|
107
|
+
return l.listener = o, c.wrapFn = l, l;
|
|
108
|
+
}
|
|
109
|
+
n.prototype.once = function(i, o) {
|
|
110
|
+
return h(o), this.on(i, T(this, i, o)), this;
|
|
111
|
+
}, n.prototype.prependOnceListener = function(i, o) {
|
|
112
|
+
return h(o), this.prependListener(i, T(this, i, o)), this;
|
|
113
|
+
}, n.prototype.removeListener = function(i, o) {
|
|
114
|
+
var c, l, b, v, S;
|
|
115
|
+
if (h(o), l = this._events, l === void 0)
|
|
116
116
|
return this;
|
|
117
|
-
if (
|
|
117
|
+
if (c = l[i], c === void 0)
|
|
118
118
|
return this;
|
|
119
|
-
if (
|
|
120
|
-
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete l[
|
|
121
|
-
else if (typeof
|
|
122
|
-
for (b = -1, v =
|
|
123
|
-
if (
|
|
124
|
-
S =
|
|
119
|
+
if (c === o || c.listener === o)
|
|
120
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete l[i], l.removeListener && this.emit("removeListener", i, c.listener || o));
|
|
121
|
+
else if (typeof c != "function") {
|
|
122
|
+
for (b = -1, v = c.length - 1; v >= 0; v--)
|
|
123
|
+
if (c[v] === o || c[v].listener === o) {
|
|
124
|
+
S = c[v].listener, b = v;
|
|
125
125
|
break;
|
|
126
126
|
}
|
|
127
127
|
if (b < 0)
|
|
128
128
|
return this;
|
|
129
|
-
b === 0 ?
|
|
129
|
+
b === 0 ? c.shift() : g(c, b), c.length === 1 && (l[i] = c[0]), l.removeListener !== void 0 && this.emit("removeListener", i, S || o);
|
|
130
130
|
}
|
|
131
131
|
return this;
|
|
132
|
-
},
|
|
133
|
-
var
|
|
134
|
-
if (
|
|
132
|
+
}, n.prototype.off = n.prototype.removeListener, n.prototype.removeAllListeners = function(i) {
|
|
133
|
+
var o, c, l;
|
|
134
|
+
if (c = this._events, c === void 0)
|
|
135
135
|
return this;
|
|
136
|
-
if (
|
|
137
|
-
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) :
|
|
136
|
+
if (c.removeListener === void 0)
|
|
137
|
+
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : c[i] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete c[i]), this;
|
|
138
138
|
if (arguments.length === 0) {
|
|
139
|
-
var b = Object.keys(
|
|
139
|
+
var b = Object.keys(c), v;
|
|
140
140
|
for (l = 0; l < b.length; ++l)
|
|
141
141
|
v = b[l], v !== "removeListener" && this.removeAllListeners(v);
|
|
142
142
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
143
143
|
}
|
|
144
|
-
if (
|
|
145
|
-
this.removeListener(
|
|
146
|
-
else if (
|
|
147
|
-
for (l =
|
|
148
|
-
this.removeListener(
|
|
144
|
+
if (o = c[i], typeof o == "function")
|
|
145
|
+
this.removeListener(i, o);
|
|
146
|
+
else if (o !== void 0)
|
|
147
|
+
for (l = o.length - 1; l >= 0; l--)
|
|
148
|
+
this.removeListener(i, o[l]);
|
|
149
149
|
return this;
|
|
150
150
|
};
|
|
151
|
-
function
|
|
152
|
-
var
|
|
153
|
-
if (
|
|
151
|
+
function C(s, i, o) {
|
|
152
|
+
var c = s._events;
|
|
153
|
+
if (c === void 0)
|
|
154
154
|
return [];
|
|
155
|
-
var l =
|
|
156
|
-
return l === void 0 ? [] : typeof l == "function" ?
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
return
|
|
160
|
-
},
|
|
161
|
-
return
|
|
162
|
-
},
|
|
163
|
-
return typeof s.listenerCount == "function" ? s.listenerCount(
|
|
164
|
-
},
|
|
165
|
-
function
|
|
166
|
-
var
|
|
167
|
-
if (
|
|
168
|
-
var
|
|
169
|
-
if (typeof
|
|
155
|
+
var l = c[i];
|
|
156
|
+
return l === void 0 ? [] : typeof l == "function" ? o ? [l.listener || l] : [l] : o ? w(l) : I(l, l.length);
|
|
157
|
+
}
|
|
158
|
+
n.prototype.listeners = function(i) {
|
|
159
|
+
return C(this, i, !0);
|
|
160
|
+
}, n.prototype.rawListeners = function(i) {
|
|
161
|
+
return C(this, i, !1);
|
|
162
|
+
}, n.listenerCount = function(s, i) {
|
|
163
|
+
return typeof s.listenerCount == "function" ? s.listenerCount(i) : j.call(s, i);
|
|
164
|
+
}, n.prototype.listenerCount = j;
|
|
165
|
+
function j(s) {
|
|
166
|
+
var i = this._events;
|
|
167
|
+
if (i !== void 0) {
|
|
168
|
+
var o = i[s];
|
|
169
|
+
if (typeof o == "function")
|
|
170
170
|
return 1;
|
|
171
|
-
if (
|
|
172
|
-
return
|
|
171
|
+
if (o !== void 0)
|
|
172
|
+
return o.length;
|
|
173
173
|
}
|
|
174
174
|
return 0;
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
n.prototype.eventNames = function() {
|
|
177
177
|
return this._eventsCount > 0 ? r(this._events) : [];
|
|
178
178
|
};
|
|
179
|
-
function
|
|
180
|
-
for (var
|
|
181
|
-
|
|
182
|
-
return
|
|
183
|
-
}
|
|
184
|
-
function g(s,
|
|
185
|
-
for (;
|
|
186
|
-
s[
|
|
179
|
+
function I(s, i) {
|
|
180
|
+
for (var o = new Array(i), c = 0; c < i; ++c)
|
|
181
|
+
o[c] = s[c];
|
|
182
|
+
return o;
|
|
183
|
+
}
|
|
184
|
+
function g(s, i) {
|
|
185
|
+
for (; i + 1 < s.length; i++)
|
|
186
|
+
s[i] = s[i + 1];
|
|
187
187
|
s.pop();
|
|
188
188
|
}
|
|
189
189
|
function w(s) {
|
|
190
|
-
for (var
|
|
191
|
-
o
|
|
192
|
-
return
|
|
190
|
+
for (var i = new Array(s.length), o = 0; o < i.length; ++o)
|
|
191
|
+
i[o] = s[o].listener || s[o];
|
|
192
|
+
return i;
|
|
193
193
|
}
|
|
194
|
-
function N(s,
|
|
195
|
-
return new Promise(function(
|
|
194
|
+
function N(s, i) {
|
|
195
|
+
return new Promise(function(o, c) {
|
|
196
196
|
function l(v) {
|
|
197
|
-
s.removeListener(
|
|
197
|
+
s.removeListener(i, b), c(v);
|
|
198
198
|
}
|
|
199
199
|
function b() {
|
|
200
|
-
typeof s.removeListener == "function" && s.removeListener("error", l),
|
|
200
|
+
typeof s.removeListener == "function" && s.removeListener("error", l), o([].slice.call(arguments));
|
|
201
201
|
}
|
|
202
|
-
D(s,
|
|
202
|
+
D(s, i, b, { once: !0 }), i !== "error" && F(s, l, { once: !0 });
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
function F(s,
|
|
206
|
-
typeof s.on == "function" && D(s, "error",
|
|
205
|
+
function F(s, i, o) {
|
|
206
|
+
typeof s.on == "function" && D(s, "error", i, o);
|
|
207
207
|
}
|
|
208
|
-
function D(s,
|
|
208
|
+
function D(s, i, o, c) {
|
|
209
209
|
if (typeof s.on == "function")
|
|
210
|
-
|
|
210
|
+
c.once ? s.once(i, o) : s.on(i, o);
|
|
211
211
|
else if (typeof s.addEventListener == "function")
|
|
212
|
-
s.addEventListener(
|
|
213
|
-
|
|
212
|
+
s.addEventListener(i, function l(b) {
|
|
213
|
+
c.once && s.removeEventListener(i, l), o(b);
|
|
214
214
|
});
|
|
215
215
|
else
|
|
216
216
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof s);
|
|
217
217
|
}
|
|
218
218
|
return B.exports;
|
|
219
219
|
}
|
|
220
|
-
var
|
|
221
|
-
const
|
|
222
|
-
var Fe = typeof global == "object" && global && global.Object === Object && global, De = typeof self == "object" && self && self.Object === Object && self, ee = Fe || De || Function("return this")(), Z = ee.Symbol, Re = Object.prototype,
|
|
220
|
+
var $e = Ie();
|
|
221
|
+
const Me = /* @__PURE__ */ ke($e);
|
|
222
|
+
var Fe = typeof global == "object" && global && global.Object === Object && global, De = typeof self == "object" && self && self.Object === Object && self, ee = Fe || De || Function("return this")(), Z = ee.Symbol, Re = Object.prototype, xe = Re.hasOwnProperty, We = Re.toString, U = Z ? Z.toStringTag : void 0;
|
|
223
223
|
function ze(e) {
|
|
224
|
-
var t =
|
|
224
|
+
var t = xe.call(e, U), r = e[U];
|
|
225
225
|
try {
|
|
226
|
-
e[
|
|
226
|
+
e[U] = void 0;
|
|
227
227
|
var u = !0;
|
|
228
228
|
} catch {
|
|
229
229
|
}
|
|
230
|
-
var
|
|
231
|
-
return u && (t ? e[
|
|
230
|
+
var f = We.call(e);
|
|
231
|
+
return u && (t ? e[U] = r : delete e[U]), f;
|
|
232
232
|
}
|
|
233
233
|
var Ye = Object.prototype, Ge = Ye.toString;
|
|
234
234
|
function Ue(e) {
|
|
235
235
|
return Ge.call(e);
|
|
236
236
|
}
|
|
237
|
-
var Ve = "[object Null]", He = "[object Undefined]",
|
|
237
|
+
var Ve = "[object Null]", He = "[object Undefined]", be = Z ? Z.toStringTag : void 0;
|
|
238
238
|
function Se(e) {
|
|
239
|
-
return e == null ? e === void 0 ? He : Ve :
|
|
239
|
+
return e == null ? e === void 0 ? He : Ve : be && be in Object(e) ? ze(e) : Ue(e);
|
|
240
240
|
}
|
|
241
241
|
function qe(e) {
|
|
242
242
|
return e != null && typeof e == "object";
|
|
@@ -255,41 +255,41 @@ var Qe = /^\s+/;
|
|
|
255
255
|
function Ze(e) {
|
|
256
256
|
return e && e.slice(0, Be(e) + 1).replace(Qe, "");
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function z(e) {
|
|
259
259
|
var t = typeof e;
|
|
260
260
|
return e != null && (t == "object" || t == "function");
|
|
261
261
|
}
|
|
262
|
-
var
|
|
263
|
-
function
|
|
262
|
+
var _e = NaN, et = /^[-+]0x[0-9a-f]+$/i, tt = /^0b[01]+$/i, rt = /^0o[0-7]+$/i, nt = parseInt;
|
|
263
|
+
function ge(e) {
|
|
264
264
|
if (typeof e == "number")
|
|
265
265
|
return e;
|
|
266
266
|
if (Xe(e))
|
|
267
|
-
return
|
|
268
|
-
if (
|
|
267
|
+
return _e;
|
|
268
|
+
if (z(e)) {
|
|
269
269
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
270
|
-
e =
|
|
270
|
+
e = z(t) ? t + "" : t;
|
|
271
271
|
}
|
|
272
272
|
if (typeof e != "string")
|
|
273
273
|
return e === 0 ? e : +e;
|
|
274
274
|
e = Ze(e);
|
|
275
275
|
var r = tt.test(e);
|
|
276
|
-
return r || rt.test(e) ? nt(e.slice(2), r ? 2 : 8) : et.test(e) ?
|
|
276
|
+
return r || rt.test(e) ? nt(e.slice(2), r ? 2 : 8) : et.test(e) ? _e : +e;
|
|
277
277
|
}
|
|
278
278
|
var ot = "[object AsyncFunction]", it = "[object Function]", at = "[object GeneratorFunction]", st = "[object Proxy]";
|
|
279
279
|
function ut(e) {
|
|
280
|
-
if (!
|
|
280
|
+
if (!z(e))
|
|
281
281
|
return !1;
|
|
282
282
|
var t = Se(e);
|
|
283
283
|
return t == it || t == at || t == ot || t == st;
|
|
284
284
|
}
|
|
285
|
-
var se = ee["__core-js_shared__"],
|
|
285
|
+
var se = ee["__core-js_shared__"], Ee = function() {
|
|
286
286
|
var e = /[^.]+$/.exec(se && se.keys && se.keys.IE_PROTO || "");
|
|
287
287
|
return e ? "Symbol(src)_1." + e : "";
|
|
288
288
|
}();
|
|
289
|
-
function
|
|
290
|
-
return !!
|
|
289
|
+
function ct(e) {
|
|
290
|
+
return !!Ee && Ee in e;
|
|
291
291
|
}
|
|
292
|
-
var
|
|
292
|
+
var ft = Function.prototype, lt = ft.toString;
|
|
293
293
|
function dt(e) {
|
|
294
294
|
if (e != null) {
|
|
295
295
|
try {
|
|
@@ -307,7 +307,7 @@ var ht = /[\\^$.*+?()[\]{}|]/g, pt = /^\[object .+?Constructor\]$/, vt = Functio
|
|
|
307
307
|
"^" + bt.call(_t).replace(ht, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
308
308
|
);
|
|
309
309
|
function Et(e) {
|
|
310
|
-
if (!
|
|
310
|
+
if (!z(e) || ct(e))
|
|
311
311
|
return !1;
|
|
312
312
|
var t = ut(e) ? gt : pt;
|
|
313
313
|
return t.test(dt(e));
|
|
@@ -315,14 +315,14 @@ function Et(e) {
|
|
|
315
315
|
function yt(e, t) {
|
|
316
316
|
return e == null ? void 0 : e[t];
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function Ce(e, t) {
|
|
319
319
|
var r = yt(e, t);
|
|
320
320
|
return Et(r) ? r : void 0;
|
|
321
321
|
}
|
|
322
322
|
function Tt(e, t) {
|
|
323
323
|
return e === t || e !== e && t !== t;
|
|
324
324
|
}
|
|
325
|
-
var q =
|
|
325
|
+
var q = Ce(Object, "create");
|
|
326
326
|
function wt() {
|
|
327
327
|
this.__data__ = q ? q(null) : {}, this.size = 0;
|
|
328
328
|
}
|
|
@@ -330,14 +330,14 @@ function Ot(e) {
|
|
|
330
330
|
var t = this.has(e) && delete this.__data__[e];
|
|
331
331
|
return this.size -= t ? 1 : 0, t;
|
|
332
332
|
}
|
|
333
|
-
var Rt = "__lodash_hash_undefined__", St = Object.prototype,
|
|
334
|
-
function
|
|
333
|
+
var Rt = "__lodash_hash_undefined__", St = Object.prototype, Ct = St.hasOwnProperty;
|
|
334
|
+
function jt(e) {
|
|
335
335
|
var t = this.__data__;
|
|
336
336
|
if (q) {
|
|
337
337
|
var r = t[e];
|
|
338
338
|
return r === Rt ? void 0 : r;
|
|
339
339
|
}
|
|
340
|
-
return
|
|
340
|
+
return Ct.call(t, e) ? t[e] : void 0;
|
|
341
341
|
}
|
|
342
342
|
var Lt = Object.prototype, Pt = Lt.hasOwnProperty;
|
|
343
343
|
function Nt(e) {
|
|
@@ -345,23 +345,23 @@ function Nt(e) {
|
|
|
345
345
|
return q ? t[e] !== void 0 : Pt.call(t, e);
|
|
346
346
|
}
|
|
347
347
|
var At = "__lodash_hash_undefined__";
|
|
348
|
-
function
|
|
348
|
+
function kt(e, t) {
|
|
349
349
|
var r = this.__data__;
|
|
350
350
|
return this.size += this.has(e) ? 0 : 1, r[e] = q && t === void 0 ? At : t, this;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function $(e) {
|
|
353
353
|
var t = -1, r = e == null ? 0 : e.length;
|
|
354
354
|
for (this.clear(); ++t < r; ) {
|
|
355
355
|
var u = e[t];
|
|
356
356
|
this.set(u[0], u[1]);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
function
|
|
359
|
+
$.prototype.clear = wt;
|
|
360
|
+
$.prototype.delete = Ot;
|
|
361
|
+
$.prototype.get = jt;
|
|
362
|
+
$.prototype.has = Nt;
|
|
363
|
+
$.prototype.set = kt;
|
|
364
|
+
function It() {
|
|
365
365
|
this.__data__ = [], this.size = 0;
|
|
366
366
|
}
|
|
367
367
|
function te(e, t) {
|
|
@@ -370,43 +370,43 @@ function te(e, t) {
|
|
|
370
370
|
return r;
|
|
371
371
|
return -1;
|
|
372
372
|
}
|
|
373
|
-
var
|
|
373
|
+
var $t = Array.prototype, Mt = $t.splice;
|
|
374
374
|
function Ft(e) {
|
|
375
375
|
var t = this.__data__, r = te(t, e);
|
|
376
376
|
if (r < 0)
|
|
377
377
|
return !1;
|
|
378
378
|
var u = t.length - 1;
|
|
379
|
-
return r == u ? t.pop() :
|
|
379
|
+
return r == u ? t.pop() : Mt.call(t, r, 1), --this.size, !0;
|
|
380
380
|
}
|
|
381
381
|
function Dt(e) {
|
|
382
382
|
var t = this.__data__, r = te(t, e);
|
|
383
383
|
return r < 0 ? void 0 : t[r][1];
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function xt(e) {
|
|
386
386
|
return te(this.__data__, e) > -1;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Wt(e, t) {
|
|
389
389
|
var r = this.__data__, u = te(r, e);
|
|
390
390
|
return u < 0 ? (++this.size, r.push([e, t])) : r[u][1] = t, this;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Y(e) {
|
|
393
393
|
var t = -1, r = e == null ? 0 : e.length;
|
|
394
394
|
for (this.clear(); ++t < r; ) {
|
|
395
395
|
var u = e[t];
|
|
396
396
|
this.set(u[0], u[1]);
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
var zt =
|
|
399
|
+
Y.prototype.clear = It;
|
|
400
|
+
Y.prototype.delete = Ft;
|
|
401
|
+
Y.prototype.get = Dt;
|
|
402
|
+
Y.prototype.has = xt;
|
|
403
|
+
Y.prototype.set = Wt;
|
|
404
|
+
var zt = Ce(ee, "Map");
|
|
405
405
|
function Yt() {
|
|
406
406
|
this.size = 0, this.__data__ = {
|
|
407
|
-
hash: new
|
|
408
|
-
map: new (zt ||
|
|
409
|
-
string: new
|
|
407
|
+
hash: new $(),
|
|
408
|
+
map: new (zt || Y)(),
|
|
409
|
+
string: new $()
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
412
|
function Gt(e) {
|
|
@@ -431,91 +431,91 @@ function qt(e, t) {
|
|
|
431
431
|
var r = re(this, e), u = r.size;
|
|
432
432
|
return r.set(e, t), this.size += r.size == u ? 0 : 1, this;
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function M(e) {
|
|
435
435
|
var t = -1, r = e == null ? 0 : e.length;
|
|
436
436
|
for (this.clear(); ++t < r; ) {
|
|
437
437
|
var u = e[t];
|
|
438
438
|
this.set(u[0], u[1]);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
441
|
+
M.prototype.clear = Yt;
|
|
442
|
+
M.prototype.delete = Ut;
|
|
443
|
+
M.prototype.get = Vt;
|
|
444
|
+
M.prototype.has = Ht;
|
|
445
|
+
M.prototype.set = qt;
|
|
446
446
|
var Jt = "Expected a function";
|
|
447
447
|
function fe(e, t) {
|
|
448
448
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
449
449
|
throw new TypeError(Jt);
|
|
450
450
|
var r = function() {
|
|
451
|
-
var u = arguments,
|
|
452
|
-
if (
|
|
453
|
-
return
|
|
451
|
+
var u = arguments, f = t ? t.apply(this, u) : u[0], n = r.cache;
|
|
452
|
+
if (n.has(f))
|
|
453
|
+
return n.get(f);
|
|
454
454
|
var d = e.apply(this, u);
|
|
455
|
-
return r.cache =
|
|
455
|
+
return r.cache = n.set(f, d) || n, d;
|
|
456
456
|
};
|
|
457
|
-
return r.cache = new (fe.Cache ||
|
|
457
|
+
return r.cache = new (fe.Cache || M)(), r;
|
|
458
458
|
}
|
|
459
|
-
fe.Cache =
|
|
459
|
+
fe.Cache = M;
|
|
460
460
|
var ue = function() {
|
|
461
461
|
return ee.Date.now();
|
|
462
462
|
}, Xt = "Expected a function", Kt = Math.max, Bt = Math.min;
|
|
463
463
|
function ne(e, t, r) {
|
|
464
|
-
var u,
|
|
464
|
+
var u, f, n, d, h, m, _ = 0, y = !1, T = !1, C = !0;
|
|
465
465
|
if (typeof e != "function")
|
|
466
466
|
throw new TypeError(Xt);
|
|
467
|
-
t =
|
|
468
|
-
function
|
|
469
|
-
var
|
|
470
|
-
return u =
|
|
467
|
+
t = ge(t) || 0, z(r) && (y = !!r.leading, T = "maxWait" in r, n = T ? Kt(ge(r.maxWait) || 0, t) : n, C = "trailing" in r ? !!r.trailing : C);
|
|
468
|
+
function j(o) {
|
|
469
|
+
var c = u, l = f;
|
|
470
|
+
return u = f = void 0, _ = o, d = e.apply(l, c), d;
|
|
471
471
|
}
|
|
472
|
-
function
|
|
473
|
-
return _ =
|
|
472
|
+
function I(o) {
|
|
473
|
+
return _ = o, h = setTimeout(N, t), y ? j(o) : d;
|
|
474
474
|
}
|
|
475
|
-
function g(
|
|
476
|
-
var
|
|
477
|
-
return T ? Bt(b,
|
|
475
|
+
function g(o) {
|
|
476
|
+
var c = o - m, l = o - _, b = t - c;
|
|
477
|
+
return T ? Bt(b, n - l) : b;
|
|
478
478
|
}
|
|
479
|
-
function w(
|
|
480
|
-
var
|
|
481
|
-
return m === void 0 ||
|
|
479
|
+
function w(o) {
|
|
480
|
+
var c = o - m, l = o - _;
|
|
481
|
+
return m === void 0 || c >= t || c < 0 || T && l >= n;
|
|
482
482
|
}
|
|
483
483
|
function N() {
|
|
484
|
-
var
|
|
485
|
-
if (w(
|
|
486
|
-
return F(
|
|
487
|
-
h = setTimeout(N, g(
|
|
484
|
+
var o = ue();
|
|
485
|
+
if (w(o))
|
|
486
|
+
return F(o);
|
|
487
|
+
h = setTimeout(N, g(o));
|
|
488
488
|
}
|
|
489
|
-
function F(
|
|
490
|
-
return h = void 0,
|
|
489
|
+
function F(o) {
|
|
490
|
+
return h = void 0, C && u ? j(o) : (u = f = void 0, d);
|
|
491
491
|
}
|
|
492
492
|
function D() {
|
|
493
|
-
h !== void 0 && clearTimeout(h), _ = 0, u = m =
|
|
493
|
+
h !== void 0 && clearTimeout(h), _ = 0, u = m = f = h = void 0;
|
|
494
494
|
}
|
|
495
495
|
function s() {
|
|
496
496
|
return h === void 0 ? d : F(ue());
|
|
497
497
|
}
|
|
498
|
-
function
|
|
499
|
-
var
|
|
500
|
-
if (u = arguments,
|
|
498
|
+
function i() {
|
|
499
|
+
var o = ue(), c = w(o);
|
|
500
|
+
if (u = arguments, f = this, m = o, c) {
|
|
501
501
|
if (h === void 0)
|
|
502
|
-
return
|
|
502
|
+
return I(m);
|
|
503
503
|
if (T)
|
|
504
|
-
return clearTimeout(h), h = setTimeout(N, t),
|
|
504
|
+
return clearTimeout(h), h = setTimeout(N, t), j(m);
|
|
505
505
|
}
|
|
506
506
|
return h === void 0 && (h = setTimeout(N, t)), d;
|
|
507
507
|
}
|
|
508
|
-
return
|
|
508
|
+
return i.cancel = D, i.flush = s, i;
|
|
509
509
|
}
|
|
510
510
|
var Qt = "Expected a function";
|
|
511
511
|
function Zt(e, t, r) {
|
|
512
|
-
var u = !0,
|
|
512
|
+
var u = !0, f = !0;
|
|
513
513
|
if (typeof e != "function")
|
|
514
514
|
throw new TypeError(Qt);
|
|
515
|
-
return
|
|
515
|
+
return z(r) && (u = "leading" in r ? !!r.leading : u, f = "trailing" in r ? !!r.trailing : f), ne(e, t, {
|
|
516
516
|
leading: u,
|
|
517
517
|
maxWait: t,
|
|
518
|
-
trailing:
|
|
518
|
+
trailing: f
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
521
|
class er {
|
|
@@ -524,7 +524,7 @@ class er {
|
|
|
524
524
|
* @param name - The name of the context (for debugging).
|
|
525
525
|
*/
|
|
526
526
|
constructor(t) {
|
|
527
|
-
K(this, "event", new
|
|
527
|
+
K(this, "event", new Me.EventEmitter());
|
|
528
528
|
/**
|
|
529
529
|
* The current data held by the context.
|
|
530
530
|
*/
|
|
@@ -550,15 +550,15 @@ class er {
|
|
|
550
550
|
* @returns Unsubscribe function.
|
|
551
551
|
*/
|
|
552
552
|
subscribe(t, r) {
|
|
553
|
-
const u = ({ value:
|
|
554
|
-
r(
|
|
553
|
+
const u = ({ value: f }) => {
|
|
554
|
+
r(f);
|
|
555
555
|
};
|
|
556
556
|
return this.event.addListener(String(t), u), console.log("listenerCount:", String(t), this.event.listenerCount(String(t))), t in this.data && r(this.data[t]), () => (this.event.removeListener(String(t), u), void 0);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
const tr = fe((e) => new er(e)),
|
|
559
|
+
const tr = fe((e) => new er(e)), ce = (e = "noname") => W(() => tr(e), [e]), je = (e, ...t) => {
|
|
560
560
|
const r = new Error("[ctx] useRegistryChecker failed " + JSON.stringify({ names: t, ctx: (e == null ? void 0 : e.name) ?? "undefined" }));
|
|
561
|
-
|
|
561
|
+
L(
|
|
562
562
|
() => {
|
|
563
563
|
if (e)
|
|
564
564
|
return t.some((u) => e.registry.has(u)) && console.error(r), t.forEach((u) => e.registry.add(u)), () => {
|
|
@@ -568,86 +568,86 @@ const tr = fe((e) => new er(e)), Ee = (e = "noname") => H(() => tr(e), [e]), Ce
|
|
|
568
568
|
[e, t.length]
|
|
569
569
|
);
|
|
570
570
|
}, ur = (e, t, r) => {
|
|
571
|
-
|
|
571
|
+
L(() => {
|
|
572
572
|
e && e.data[t] != r && e.publish(t, r);
|
|
573
|
-
}, [t, r, e]),
|
|
574
|
-
},
|
|
575
|
-
const [{ value: u },
|
|
576
|
-
var
|
|
577
|
-
return { value: (
|
|
573
|
+
}, [t, r, e]), je(e, t);
|
|
574
|
+
}, cr = (e, t, r = 0) => {
|
|
575
|
+
const [{ value: u }, f] = J(() => {
|
|
576
|
+
var n;
|
|
577
|
+
return { value: (n = e == null ? void 0 : e.data) == null ? void 0 : n[t] };
|
|
578
578
|
});
|
|
579
|
-
return
|
|
579
|
+
return L(() => {
|
|
580
580
|
if (e) {
|
|
581
|
-
let
|
|
582
|
-
return u != e.data[t] &&
|
|
581
|
+
let n = r == 0 ? (h) => f({ value: h }) : ne((h) => f({ value: h }), r), d = e.subscribe(t, n);
|
|
582
|
+
return u != e.data[t] && f({ value: e.data[t] }), () => {
|
|
583
583
|
d();
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
586
|
}, [t, e]), e == null ? void 0 : e.data[t];
|
|
587
|
-
},
|
|
588
|
-
const [, u] = J(0),
|
|
587
|
+
}, fr = (e, t, r) => {
|
|
588
|
+
const [, u] = J(0), f = W(
|
|
589
589
|
() => r(e == null ? void 0 : e.data[t]),
|
|
590
590
|
[r, e == null ? void 0 : e.data[t]]
|
|
591
591
|
);
|
|
592
|
-
return
|
|
592
|
+
return L(() => {
|
|
593
593
|
if (e) {
|
|
594
|
-
let
|
|
594
|
+
let n = f, d = () => {
|
|
595
595
|
let m = r(e.data[t]);
|
|
596
|
-
m !=
|
|
596
|
+
m != n && (n = m, u((_) => _ + 1));
|
|
597
597
|
}, h = e.subscribe(t, d);
|
|
598
598
|
return d(), () => h();
|
|
599
599
|
}
|
|
600
|
-
}, [t, e]),
|
|
600
|
+
}, [t, e]), f;
|
|
601
601
|
}, rr = (e, ...t) => {
|
|
602
|
-
|
|
602
|
+
L(() => {
|
|
603
603
|
if (e)
|
|
604
604
|
for (let [r, u] of t)
|
|
605
605
|
e.data[r] != u && e.publish(r, u);
|
|
606
|
-
}, [e, ...t.flat()]),
|
|
606
|
+
}, [e, ...t.flat()]), je(e, ...t.map((r) => r[0]));
|
|
607
607
|
}, lr = (e, ...t) => {
|
|
608
|
-
const [, r] = J(0), u = t.map((
|
|
609
|
-
var
|
|
610
|
-
return (
|
|
608
|
+
const [, r] = J(0), u = t.map((f) => {
|
|
609
|
+
var n;
|
|
610
|
+
return (n = e == null ? void 0 : e.data) == null ? void 0 : n[f];
|
|
611
611
|
});
|
|
612
|
-
return
|
|
612
|
+
return L(() => {
|
|
613
613
|
if (e) {
|
|
614
|
-
let
|
|
615
|
-
const
|
|
614
|
+
let f = u;
|
|
615
|
+
const n = ne(() => {
|
|
616
616
|
let m = t.map((_) => {
|
|
617
617
|
var y;
|
|
618
618
|
return (y = e == null ? void 0 : e.data) == null ? void 0 : y[_];
|
|
619
619
|
});
|
|
620
|
-
t.some((_, y) =>
|
|
620
|
+
t.some((_, y) => f[y] != m[y]) && (f = m, r((_) => _ + 1));
|
|
621
621
|
}, 1);
|
|
622
|
-
let d = t.map((m) => e.subscribe(m,
|
|
622
|
+
let d = t.map((m) => e.subscribe(m, n)), h = setTimeout(n, 1);
|
|
623
623
|
return () => {
|
|
624
|
-
clearTimeout(h),
|
|
624
|
+
clearTimeout(h), n.cancel(), d.forEach((m) => m());
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
|
-
}, [e, ...t]), Object.fromEntries(t.map((
|
|
627
|
+
}, [e, ...t]), Object.fromEntries(t.map((f, n) => [f, u[n]]));
|
|
628
628
|
}, dr = (e, t = 100, ...r) => {
|
|
629
|
-
const [, u] = J(0),
|
|
629
|
+
const [, u] = J(0), f = r.map((n) => {
|
|
630
630
|
var d;
|
|
631
|
-
return (d = e == null ? void 0 : e.data) == null ? void 0 : d[
|
|
631
|
+
return (d = e == null ? void 0 : e.data) == null ? void 0 : d[n];
|
|
632
632
|
});
|
|
633
|
-
return
|
|
633
|
+
return L(() => {
|
|
634
634
|
if (e) {
|
|
635
|
-
let
|
|
635
|
+
let n = f;
|
|
636
636
|
const d = Zt(() => {
|
|
637
637
|
let _ = r.map((y) => {
|
|
638
638
|
var T;
|
|
639
639
|
return (T = e == null ? void 0 : e.data) == null ? void 0 : T[y];
|
|
640
640
|
});
|
|
641
|
-
r.some((y, T) =>
|
|
641
|
+
r.some((y, T) => n[T] != _[T]) && (n = _, u((y) => y + 1));
|
|
642
642
|
}, t);
|
|
643
643
|
let h = r.map((_) => e.subscribe(_, d)), m = setTimeout(d, 1);
|
|
644
644
|
return () => {
|
|
645
645
|
clearTimeout(m), d.cancel(), h.forEach((_) => _());
|
|
646
646
|
};
|
|
647
647
|
}
|
|
648
|
-
}, [e, ...r]),
|
|
648
|
+
}, [e, ...r]), f;
|
|
649
649
|
};
|
|
650
|
-
var Q = { exports: {} },
|
|
650
|
+
var Q = { exports: {} }, V = {};
|
|
651
651
|
/**
|
|
652
652
|
* @license React
|
|
653
653
|
* react-jsx-runtime.production.js
|
|
@@ -659,27 +659,27 @@ var Q = { exports: {} }, U = {};
|
|
|
659
659
|
*/
|
|
660
660
|
var ye;
|
|
661
661
|
function nr() {
|
|
662
|
-
if (ye) return
|
|
662
|
+
if (ye) return V;
|
|
663
663
|
ye = 1;
|
|
664
664
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
665
|
-
function r(u,
|
|
665
|
+
function r(u, f, n) {
|
|
666
666
|
var d = null;
|
|
667
|
-
if (
|
|
668
|
-
|
|
669
|
-
for (var h in
|
|
670
|
-
h !== "key" && (
|
|
671
|
-
} else
|
|
672
|
-
return
|
|
667
|
+
if (n !== void 0 && (d = "" + n), f.key !== void 0 && (d = "" + f.key), "key" in f) {
|
|
668
|
+
n = {};
|
|
669
|
+
for (var h in f)
|
|
670
|
+
h !== "key" && (n[h] = f[h]);
|
|
671
|
+
} else n = f;
|
|
672
|
+
return f = n.ref, {
|
|
673
673
|
$$typeof: e,
|
|
674
674
|
type: u,
|
|
675
675
|
key: d,
|
|
676
|
-
ref:
|
|
677
|
-
props:
|
|
676
|
+
ref: f !== void 0 ? f : null,
|
|
677
|
+
props: n
|
|
678
678
|
};
|
|
679
679
|
}
|
|
680
|
-
return
|
|
680
|
+
return V.Fragment = t, V.jsx = r, V.jsxs = r, V;
|
|
681
681
|
}
|
|
682
|
-
var
|
|
682
|
+
var H = {};
|
|
683
683
|
/**
|
|
684
684
|
* @license React
|
|
685
685
|
* react-jsx-runtime.development.js
|
|
@@ -692,145 +692,145 @@ var V = {};
|
|
|
692
692
|
var Te;
|
|
693
693
|
function or() {
|
|
694
694
|
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
695
|
-
function e(
|
|
696
|
-
if (
|
|
697
|
-
if (typeof
|
|
698
|
-
return
|
|
699
|
-
if (typeof
|
|
700
|
-
switch (
|
|
695
|
+
function e(a) {
|
|
696
|
+
if (a == null) return null;
|
|
697
|
+
if (typeof a == "function")
|
|
698
|
+
return a.$$typeof === v ? null : a.displayName || a.name || null;
|
|
699
|
+
if (typeof a == "string") return a;
|
|
700
|
+
switch (a) {
|
|
701
701
|
case g:
|
|
702
702
|
return "Fragment";
|
|
703
703
|
case N:
|
|
704
704
|
return "Profiler";
|
|
705
705
|
case w:
|
|
706
706
|
return "StrictMode";
|
|
707
|
-
case
|
|
707
|
+
case i:
|
|
708
708
|
return "Suspense";
|
|
709
|
-
case
|
|
709
|
+
case o:
|
|
710
710
|
return "SuspenseList";
|
|
711
711
|
case b:
|
|
712
712
|
return "Activity";
|
|
713
713
|
}
|
|
714
|
-
if (typeof
|
|
715
|
-
switch (typeof
|
|
714
|
+
if (typeof a == "object")
|
|
715
|
+
switch (typeof a.tag == "number" && console.error(
|
|
716
716
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
717
|
-
),
|
|
718
|
-
case
|
|
717
|
+
), a.$$typeof) {
|
|
718
|
+
case I:
|
|
719
719
|
return "Portal";
|
|
720
720
|
case D:
|
|
721
|
-
return (
|
|
721
|
+
return (a.displayName || "Context") + ".Provider";
|
|
722
722
|
case F:
|
|
723
|
-
return (
|
|
723
|
+
return (a._context.displayName || "Context") + ".Consumer";
|
|
724
724
|
case s:
|
|
725
|
-
var p =
|
|
726
|
-
return
|
|
727
|
-
case
|
|
728
|
-
return p =
|
|
725
|
+
var p = a.render;
|
|
726
|
+
return a = a.displayName, a || (a = p.displayName || p.name || "", a = a !== "" ? "ForwardRef(" + a + ")" : "ForwardRef"), a;
|
|
727
|
+
case c:
|
|
728
|
+
return p = a.displayName || null, p !== null ? p : e(a.type) || "Memo";
|
|
729
729
|
case l:
|
|
730
|
-
p =
|
|
730
|
+
p = a._payload, a = a._init;
|
|
731
731
|
try {
|
|
732
|
-
return e(
|
|
732
|
+
return e(a(p));
|
|
733
733
|
} catch {
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
736
|
return null;
|
|
737
737
|
}
|
|
738
|
-
function t(
|
|
739
|
-
return "" +
|
|
738
|
+
function t(a) {
|
|
739
|
+
return "" + a;
|
|
740
740
|
}
|
|
741
|
-
function r(
|
|
741
|
+
function r(a) {
|
|
742
742
|
try {
|
|
743
|
-
t(
|
|
743
|
+
t(a);
|
|
744
744
|
var p = !1;
|
|
745
745
|
} catch {
|
|
746
746
|
p = !0;
|
|
747
747
|
}
|
|
748
748
|
if (p) {
|
|
749
749
|
p = console;
|
|
750
|
-
var E = p.error, O = typeof Symbol == "function" && Symbol.toStringTag &&
|
|
750
|
+
var E = p.error, O = typeof Symbol == "function" && Symbol.toStringTag && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
751
751
|
return E.call(
|
|
752
752
|
p,
|
|
753
753
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
754
754
|
O
|
|
755
|
-
), t(
|
|
755
|
+
), t(a);
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
|
-
function u(
|
|
759
|
-
if (
|
|
760
|
-
if (typeof
|
|
758
|
+
function u(a) {
|
|
759
|
+
if (a === g) return "<>";
|
|
760
|
+
if (typeof a == "object" && a !== null && a.$$typeof === l)
|
|
761
761
|
return "<...>";
|
|
762
762
|
try {
|
|
763
|
-
var p = e(
|
|
763
|
+
var p = e(a);
|
|
764
764
|
return p ? "<" + p + ">" : "<...>";
|
|
765
765
|
} catch {
|
|
766
766
|
return "<...>";
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
|
-
function
|
|
770
|
-
var
|
|
771
|
-
return
|
|
769
|
+
function f() {
|
|
770
|
+
var a = S.A;
|
|
771
|
+
return a === null ? null : a.getOwner();
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function n() {
|
|
774
774
|
return Error("react-stack-top-frame");
|
|
775
775
|
}
|
|
776
|
-
function d(
|
|
777
|
-
if (A.call(
|
|
778
|
-
var p = Object.getOwnPropertyDescriptor(
|
|
776
|
+
function d(a) {
|
|
777
|
+
if (A.call(a, "key")) {
|
|
778
|
+
var p = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
779
779
|
if (p && p.isReactWarning) return !1;
|
|
780
780
|
}
|
|
781
|
-
return
|
|
781
|
+
return a.key !== void 0;
|
|
782
782
|
}
|
|
783
|
-
function h(
|
|
783
|
+
function h(a, p) {
|
|
784
784
|
function E() {
|
|
785
|
-
|
|
785
|
+
le || (le = !0, console.error(
|
|
786
786
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
787
787
|
p
|
|
788
788
|
));
|
|
789
789
|
}
|
|
790
|
-
E.isReactWarning = !0, Object.defineProperty(
|
|
790
|
+
E.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
791
791
|
get: E,
|
|
792
792
|
configurable: !0
|
|
793
793
|
});
|
|
794
794
|
}
|
|
795
795
|
function m() {
|
|
796
|
-
var
|
|
797
|
-
return
|
|
796
|
+
var a = e(this.type);
|
|
797
|
+
return de[a] || (de[a] = !0, console.error(
|
|
798
798
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
799
|
-
)),
|
|
799
|
+
)), a = this.props.ref, a !== void 0 ? a : null;
|
|
800
800
|
}
|
|
801
|
-
function _(
|
|
802
|
-
return E =
|
|
803
|
-
$$typeof:
|
|
804
|
-
type:
|
|
801
|
+
function _(a, p, E, O, k, P, oe, ie) {
|
|
802
|
+
return E = P.ref, a = {
|
|
803
|
+
$$typeof: j,
|
|
804
|
+
type: a,
|
|
805
805
|
key: p,
|
|
806
|
-
props:
|
|
807
|
-
_owner:
|
|
808
|
-
}, (E !== void 0 ? E : null) !== null ? Object.defineProperty(
|
|
806
|
+
props: P,
|
|
807
|
+
_owner: k
|
|
808
|
+
}, (E !== void 0 ? E : null) !== null ? Object.defineProperty(a, "ref", {
|
|
809
809
|
enumerable: !1,
|
|
810
810
|
get: m
|
|
811
|
-
}) : Object.defineProperty(
|
|
811
|
+
}) : Object.defineProperty(a, "ref", { enumerable: !1, value: null }), a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
812
812
|
configurable: !1,
|
|
813
813
|
enumerable: !1,
|
|
814
814
|
writable: !0,
|
|
815
815
|
value: 0
|
|
816
|
-
}), Object.defineProperty(
|
|
816
|
+
}), Object.defineProperty(a, "_debugInfo", {
|
|
817
817
|
configurable: !1,
|
|
818
818
|
enumerable: !1,
|
|
819
819
|
writable: !0,
|
|
820
820
|
value: null
|
|
821
|
-
}), Object.defineProperty(
|
|
821
|
+
}), Object.defineProperty(a, "_debugStack", {
|
|
822
822
|
configurable: !1,
|
|
823
823
|
enumerable: !1,
|
|
824
824
|
writable: !0,
|
|
825
825
|
value: oe
|
|
826
|
-
}), Object.defineProperty(
|
|
826
|
+
}), Object.defineProperty(a, "_debugTask", {
|
|
827
827
|
configurable: !1,
|
|
828
828
|
enumerable: !1,
|
|
829
829
|
writable: !0,
|
|
830
830
|
value: ie
|
|
831
|
-
}), Object.freeze && (Object.freeze(
|
|
831
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
832
832
|
}
|
|
833
|
-
function y(
|
|
833
|
+
function y(a, p, E, O, k, P, oe, ie) {
|
|
834
834
|
var R = p.children;
|
|
835
835
|
if (R !== void 0)
|
|
836
836
|
if (O)
|
|
@@ -844,11 +844,11 @@ function or() {
|
|
|
844
844
|
);
|
|
845
845
|
else T(R);
|
|
846
846
|
if (A.call(p, "key")) {
|
|
847
|
-
R = e(
|
|
848
|
-
var
|
|
847
|
+
R = e(a);
|
|
848
|
+
var x = Object.keys(p).filter(function(Le) {
|
|
849
849
|
return Le !== "key";
|
|
850
850
|
});
|
|
851
|
-
O = 0 <
|
|
851
|
+
O = 0 < x.length ? "{key: someKey, " + x.join(": ..., ") + ": ...}" : "{key: someKey}", ve[R + O] || (x = 0 < x.length ? "{" + x.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
852
852
|
`A props object containing a "key" prop is being spread into JSX:
|
|
853
853
|
let props = %s;
|
|
854
854
|
<%s {...props} />
|
|
@@ -857,9 +857,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
857
857
|
<%s key={someKey} {...props} />`,
|
|
858
858
|
O,
|
|
859
859
|
R,
|
|
860
|
-
|
|
860
|
+
x,
|
|
861
861
|
R
|
|
862
|
-
),
|
|
862
|
+
), ve[R + O] = !0);
|
|
863
863
|
}
|
|
864
864
|
if (R = null, E !== void 0 && (r(E), R = "" + E), d(p) && (r(p.key), R = "" + p.key), "key" in p) {
|
|
865
865
|
E = {};
|
|
@@ -868,59 +868,59 @@ React keys must be passed directly to JSX without using spread:
|
|
|
868
868
|
} else E = p;
|
|
869
869
|
return R && h(
|
|
870
870
|
E,
|
|
871
|
-
typeof
|
|
871
|
+
typeof a == "function" ? a.displayName || a.name || "Unknown" : a
|
|
872
872
|
), _(
|
|
873
|
-
|
|
873
|
+
a,
|
|
874
874
|
R,
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
875
|
+
P,
|
|
876
|
+
k,
|
|
877
|
+
f(),
|
|
878
878
|
E,
|
|
879
879
|
oe,
|
|
880
880
|
ie
|
|
881
881
|
);
|
|
882
882
|
}
|
|
883
|
-
function T(
|
|
884
|
-
typeof
|
|
883
|
+
function T(a) {
|
|
884
|
+
typeof a == "object" && a !== null && a.$$typeof === j && a._store && (a._store.validated = 1);
|
|
885
885
|
}
|
|
886
|
-
var
|
|
886
|
+
var C = Ae, j = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), F = Symbol.for("react.consumer"), D = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), i = Symbol.for("react.suspense"), o = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), l = Symbol.for("react.lazy"), b = Symbol.for("react.activity"), v = Symbol.for("react.client.reference"), S = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, X = Array.isArray, G = console.createTask ? console.createTask : function() {
|
|
887
887
|
return null;
|
|
888
888
|
};
|
|
889
|
-
|
|
890
|
-
"react-stack-bottom-frame": function(
|
|
891
|
-
return
|
|
889
|
+
C = {
|
|
890
|
+
"react-stack-bottom-frame": function(a) {
|
|
891
|
+
return a();
|
|
892
892
|
}
|
|
893
893
|
};
|
|
894
|
-
var
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
)(),
|
|
898
|
-
|
|
899
|
-
var
|
|
894
|
+
var le, de = {}, he = C["react-stack-bottom-frame"].bind(
|
|
895
|
+
C,
|
|
896
|
+
n
|
|
897
|
+
)(), pe = G(u(n)), ve = {};
|
|
898
|
+
H.Fragment = g, H.jsx = function(a, p, E, O, k) {
|
|
899
|
+
var P = 1e4 > S.recentlyCreatedOwnerStacks++;
|
|
900
900
|
return y(
|
|
901
|
-
|
|
901
|
+
a,
|
|
902
902
|
p,
|
|
903
903
|
E,
|
|
904
904
|
!1,
|
|
905
905
|
O,
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
906
|
+
k,
|
|
907
|
+
P ? Error("react-stack-top-frame") : he,
|
|
908
|
+
P ? G(u(a)) : pe
|
|
909
909
|
);
|
|
910
|
-
},
|
|
911
|
-
var
|
|
910
|
+
}, H.jsxs = function(a, p, E, O, k) {
|
|
911
|
+
var P = 1e4 > S.recentlyCreatedOwnerStacks++;
|
|
912
912
|
return y(
|
|
913
|
-
|
|
913
|
+
a,
|
|
914
914
|
p,
|
|
915
915
|
E,
|
|
916
916
|
!0,
|
|
917
917
|
O,
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
918
|
+
k,
|
|
919
|
+
P ? Error("react-stack-top-frame") : he,
|
|
920
|
+
P ? G(u(a)) : pe
|
|
921
921
|
);
|
|
922
922
|
};
|
|
923
|
-
}()),
|
|
923
|
+
}()), H;
|
|
924
924
|
}
|
|
925
925
|
var we;
|
|
926
926
|
function ir() {
|
|
@@ -928,39 +928,50 @@ function ir() {
|
|
|
928
928
|
}
|
|
929
929
|
var Oe = ir();
|
|
930
930
|
const hr = (e, t) => {
|
|
931
|
-
const r = (
|
|
931
|
+
const r = (f) => [
|
|
932
932
|
e,
|
|
933
|
-
...Object.entries(
|
|
933
|
+
...Object.entries(f ?? {}).sort((n, d) => n[0].localeCompare(d[0])).flat()
|
|
934
934
|
].join("-");
|
|
935
935
|
let u = /* @__PURE__ */ new Set();
|
|
936
936
|
return {
|
|
937
|
-
Root: (
|
|
938
|
-
const
|
|
937
|
+
Root: (f) => {
|
|
938
|
+
const n = r(f), d = ce(n), h = t(f), m = W(() => new Error().stack, []);
|
|
939
939
|
return rr(
|
|
940
940
|
d,
|
|
941
941
|
...Object.entries(h)
|
|
942
|
-
),
|
|
943
|
-
if (u.has(
|
|
944
|
-
const _ = new Error("RootContext " +
|
|
942
|
+
), L(() => {
|
|
943
|
+
if (u.has(n)) {
|
|
944
|
+
const _ = new Error("RootContext " + n + " are mounted more than once");
|
|
945
945
|
throw _.stack = m, _;
|
|
946
946
|
}
|
|
947
|
-
return u.add(
|
|
948
|
-
u.delete(
|
|
947
|
+
return u.add(n), () => {
|
|
948
|
+
u.delete(n);
|
|
949
949
|
};
|
|
950
950
|
}), /* @__PURE__ */ Oe.jsx(Oe.Fragment, {});
|
|
951
951
|
},
|
|
952
|
-
|
|
953
|
-
const
|
|
954
|
-
return
|
|
955
|
-
if (!u.has(
|
|
956
|
-
const h = new Error("RootContext [" +
|
|
952
|
+
useCtxStateStrict: (f) => {
|
|
953
|
+
const n = r(f), d = W(() => new Error().stack, []);
|
|
954
|
+
return L(() => {
|
|
955
|
+
if (!u.has(n)) {
|
|
956
|
+
const h = new Error("RootContext [" + n + "] is not mounted");
|
|
957
957
|
throw h.stack = d, h;
|
|
958
958
|
}
|
|
959
|
-
}, [
|
|
959
|
+
}, [n]), ce(n);
|
|
960
|
+
},
|
|
961
|
+
useCtxState: (f) => {
|
|
962
|
+
const n = r(f), d = W(() => new Error().stack, []);
|
|
963
|
+
return L(() => {
|
|
964
|
+
if (!u.has(n)) {
|
|
965
|
+
const h = new Error("RootContext [" + n + "] is not mounted");
|
|
966
|
+
h.stack = d;
|
|
967
|
+
let m = setTimeout(() => console.error(h), 1e3);
|
|
968
|
+
return () => clearTimeout(m);
|
|
969
|
+
}
|
|
970
|
+
}, [u.has(n)]), ce(n);
|
|
960
971
|
}
|
|
961
972
|
};
|
|
962
973
|
}, pr = (e) => {
|
|
963
|
-
const [, t] = J(0), { proxy: r, finalGetter: u, openGetter:
|
|
974
|
+
const [, t] = J(0), { proxy: r, finalGetter: u, openGetter: f, clean: n } = W(
|
|
964
975
|
() => {
|
|
965
976
|
const d = /* @__PURE__ */ new Set(), h = {}, m = /* @__PURE__ */ new Map(), _ = new Proxy(
|
|
966
977
|
e == null ? void 0 : e.data,
|
|
@@ -977,9 +988,9 @@ const hr = (e, t) => {
|
|
|
977
988
|
var w;
|
|
978
989
|
return h[g] != ((w = e == null ? void 0 : e.data) == null ? void 0 : w[g]);
|
|
979
990
|
}) && t((g) => g + 1);
|
|
980
|
-
}, 0),
|
|
991
|
+
}, 0), C = () => {
|
|
981
992
|
y = !0, d.clear();
|
|
982
|
-
},
|
|
993
|
+
}, j = () => {
|
|
983
994
|
y = !1, [...d.values()].filter((g) => !m.has(g)).forEach((g) => {
|
|
984
995
|
m.set(g, e == null ? void 0 : e.subscribe(g, T));
|
|
985
996
|
}), [...m.keys()].filter((g) => !d.has(g)).forEach((g) => {
|
|
@@ -987,27 +998,27 @@ const hr = (e, t) => {
|
|
|
987
998
|
w == null || w(), m.delete(g);
|
|
988
999
|
});
|
|
989
1000
|
};
|
|
990
|
-
return { proxy: _, finalGetter:
|
|
991
|
-
|
|
1001
|
+
return { proxy: _, finalGetter: j, openGetter: C, clean: () => {
|
|
1002
|
+
C(), j(), t((g) => g + 1);
|
|
992
1003
|
} };
|
|
993
1004
|
},
|
|
994
1005
|
[]
|
|
995
1006
|
);
|
|
996
|
-
return
|
|
997
|
-
() => () =>
|
|
998
|
-
[
|
|
1007
|
+
return f(), setTimeout(u, 0), L(
|
|
1008
|
+
() => () => n(),
|
|
1009
|
+
[n]
|
|
999
1010
|
), r;
|
|
1000
1011
|
};
|
|
1001
1012
|
export {
|
|
1002
1013
|
er as Context,
|
|
1003
1014
|
hr as createRootCtx,
|
|
1004
1015
|
tr as getContext,
|
|
1005
|
-
|
|
1016
|
+
ce as useDataContext,
|
|
1006
1017
|
ur as useDataSource,
|
|
1007
1018
|
rr as useDataSourceMultiple,
|
|
1008
|
-
|
|
1019
|
+
cr as useDataSubscribe,
|
|
1009
1020
|
lr as useDataSubscribeMultiple,
|
|
1010
1021
|
dr as useDataSubscribeMultipleWithDebounce,
|
|
1011
|
-
|
|
1022
|
+
fr as useDataSubscribeWithTransform,
|
|
1012
1023
|
pr as useQuickSubscribe
|
|
1013
1024
|
};
|