@senyao-design-system/editor 0.0.1 → 0.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.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +14 -13
- package/dist/index.mjs +867 -843
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import et, { forwardRef as Yt, useContext as Wt, useRef as
|
|
1
|
+
import * as se from "react";
|
|
2
|
+
import et, { forwardRef as Yt, useContext as Wt, useRef as de, useEffect as ie, useMemo as vr, useState as Nr, useCallback as re } from "react";
|
|
3
3
|
import { sql as rt } from "@codemirror/lang-sql";
|
|
4
4
|
import { json as tt } from "@codemirror/lang-json";
|
|
5
|
-
import { keymap as Be, EditorView as
|
|
5
|
+
import { keymap as Be, EditorView as te, Decoration as cr, placeholder as jr } from "@codemirror/view";
|
|
6
6
|
import { indentWithTab as fr } from "@codemirror/commands";
|
|
7
7
|
import { autocompletion as Vt } from "@codemirror/autocomplete";
|
|
8
|
-
import { lintGutter as nt, linter as
|
|
9
|
-
import { StateEffect as Ut, StateField as Gt, EditorState as
|
|
8
|
+
import { lintGutter as nt, linter as ot } from "@codemirror/lint";
|
|
9
|
+
import { StateEffect as Ut, StateField as Gt, EditorState as le } from "@codemirror/state";
|
|
10
10
|
import { syntaxHighlighting as Lr, defaultHighlightStyle as Dr } from "@codemirror/language";
|
|
11
|
-
var ur = { exports: {} },
|
|
11
|
+
var ur = { exports: {} }, Oe = {};
|
|
12
12
|
/**
|
|
13
13
|
* @license React
|
|
14
14
|
* react-jsx-runtime.production.min.js
|
|
@@ -20,19 +20,19 @@ var ur = { exports: {} }, Te = {};
|
|
|
20
20
|
*/
|
|
21
21
|
var Yr;
|
|
22
22
|
function qt() {
|
|
23
|
-
if (Yr) return
|
|
23
|
+
if (Yr) return Oe;
|
|
24
24
|
Yr = 1;
|
|
25
|
-
var e = et, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"),
|
|
26
|
-
function s
|
|
27
|
-
var u,
|
|
28
|
-
p !== void 0 && (
|
|
29
|
-
for (u in d)
|
|
30
|
-
if (
|
|
31
|
-
return { $$typeof: r, type:
|
|
25
|
+
var e = et, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
26
|
+
function c(s, d, p) {
|
|
27
|
+
var u, g = {}, _ = null, S = null;
|
|
28
|
+
p !== void 0 && (_ = "" + p), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (S = d.ref);
|
|
29
|
+
for (u in d) o.call(d, u) && !i.hasOwnProperty(u) && (g[u] = d[u]);
|
|
30
|
+
if (s && s.defaultProps) for (u in d = s.defaultProps, d) g[u] === void 0 && (g[u] = d[u]);
|
|
31
|
+
return { $$typeof: r, type: s, key: _, ref: S, props: g, _owner: a.current };
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return Oe.Fragment = n, Oe.jsx = c, Oe.jsxs = c, Oe;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var Pe = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -45,65 +45,65 @@ var Oe = {};
|
|
|
45
45
|
var Wr;
|
|
46
46
|
function Bt() {
|
|
47
47
|
return Wr || (Wr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
-
var e = et, r = Symbol.for("react.element"), n = Symbol.for("react.portal"),
|
|
49
|
-
function
|
|
48
|
+
var e = et, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), s = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), b = Symbol.iterator, x = "@@iterator";
|
|
49
|
+
function D(t) {
|
|
50
50
|
if (t === null || typeof t != "object")
|
|
51
51
|
return null;
|
|
52
|
-
var f =
|
|
52
|
+
var f = b && t[b] || t[x];
|
|
53
53
|
return typeof f == "function" ? f : null;
|
|
54
54
|
}
|
|
55
55
|
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
56
|
-
function
|
|
56
|
+
function E(t) {
|
|
57
57
|
{
|
|
58
|
-
for (var f = arguments.length, h = new Array(f > 1 ? f - 1 : 0),
|
|
59
|
-
h[
|
|
58
|
+
for (var f = arguments.length, h = new Array(f > 1 ? f - 1 : 0), y = 1; y < f; y++)
|
|
59
|
+
h[y - 1] = arguments[y];
|
|
60
60
|
k("error", t, h);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
function k(t, f, h) {
|
|
64
64
|
{
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
var
|
|
65
|
+
var y = w.ReactDebugCurrentFrame, I = y.getStackAddendum();
|
|
66
|
+
I !== "" && (f += "%s", h = h.concat([I]));
|
|
67
|
+
var L = h.map(function(T) {
|
|
68
68
|
return String(T);
|
|
69
69
|
});
|
|
70
|
-
|
|
70
|
+
L.unshift("Warning: " + f), Function.prototype.apply.call(console[t], console, L);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
var
|
|
74
|
-
|
|
75
|
-
function
|
|
76
|
-
return !!(typeof t == "string" || typeof t == "function" || t ===
|
|
73
|
+
var j = !1, l = !1, U = !1, $ = !1, v = !1, R;
|
|
74
|
+
R = Symbol.for("react.module.reference");
|
|
75
|
+
function O(t) {
|
|
76
|
+
return !!(typeof t == "string" || typeof t == "function" || t === o || t === i || v || t === a || t === p || t === u || $ || t === S || j || l || U || typeof t == "object" && t !== null && (t.$$typeof === _ || t.$$typeof === g || t.$$typeof === c || t.$$typeof === s || t.$$typeof === d || // This needs to include all possible module reference object
|
|
77
77
|
// types supported by any Flight configuration anywhere since
|
|
78
78
|
// we don't know which Flight build this will end up being used
|
|
79
79
|
// with.
|
|
80
|
-
t.$$typeof ===
|
|
80
|
+
t.$$typeof === R || t.getModuleId !== void 0));
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
var
|
|
84
|
-
if (
|
|
85
|
-
return
|
|
86
|
-
var
|
|
87
|
-
return
|
|
82
|
+
function P(t, f, h) {
|
|
83
|
+
var y = t.displayName;
|
|
84
|
+
if (y)
|
|
85
|
+
return y;
|
|
86
|
+
var I = f.displayName || f.name || "";
|
|
87
|
+
return I !== "" ? h + "(" + I + ")" : h;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function W(t) {
|
|
90
90
|
return t.displayName || "Context";
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Y(t) {
|
|
93
93
|
if (t == null)
|
|
94
94
|
return null;
|
|
95
|
-
if (typeof t.tag == "number" &&
|
|
95
|
+
if (typeof t.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
96
96
|
return t.displayName || t.name || null;
|
|
97
97
|
if (typeof t == "string")
|
|
98
98
|
return t;
|
|
99
99
|
switch (t) {
|
|
100
|
-
case
|
|
100
|
+
case o:
|
|
101
101
|
return "Fragment";
|
|
102
102
|
case n:
|
|
103
103
|
return "Portal";
|
|
104
104
|
case i:
|
|
105
105
|
return "Profiler";
|
|
106
|
-
case
|
|
106
|
+
case a:
|
|
107
107
|
return "StrictMode";
|
|
108
108
|
case p:
|
|
109
109
|
return "Suspense";
|
|
@@ -112,21 +112,21 @@ function Bt() {
|
|
|
112
112
|
}
|
|
113
113
|
if (typeof t == "object")
|
|
114
114
|
switch (t.$$typeof) {
|
|
115
|
-
case c:
|
|
116
|
-
var f = t;
|
|
117
|
-
return X(f) + ".Consumer";
|
|
118
115
|
case s:
|
|
116
|
+
var f = t;
|
|
117
|
+
return W(f) + ".Consumer";
|
|
118
|
+
case c:
|
|
119
119
|
var h = t;
|
|
120
|
-
return
|
|
120
|
+
return W(h._context) + ".Provider";
|
|
121
121
|
case d:
|
|
122
|
-
return
|
|
123
|
-
case
|
|
124
|
-
var
|
|
125
|
-
return
|
|
126
|
-
case
|
|
127
|
-
var
|
|
122
|
+
return P(t, t.render, "ForwardRef");
|
|
123
|
+
case g:
|
|
124
|
+
var y = t.displayName || null;
|
|
125
|
+
return y !== null ? y : Y(t.type) || "Memo";
|
|
126
|
+
case _: {
|
|
127
|
+
var I = t, L = I._payload, T = I._init;
|
|
128
128
|
try {
|
|
129
|
-
return
|
|
129
|
+
return Y(T(L));
|
|
130
130
|
} catch {
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
@@ -134,18 +134,18 @@ function Bt() {
|
|
|
134
134
|
}
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
|
-
var
|
|
138
|
-
function
|
|
137
|
+
var B = Object.assign, Q = 0, Fe, Ne, Se, je, Re, Le, De;
|
|
138
|
+
function Ye() {
|
|
139
139
|
}
|
|
140
|
-
|
|
140
|
+
Ye.__reactDisabledLog = !0;
|
|
141
141
|
function Qe() {
|
|
142
142
|
{
|
|
143
|
-
if (
|
|
144
|
-
|
|
143
|
+
if (Q === 0) {
|
|
144
|
+
Fe = console.log, Ne = console.info, Se = console.warn, je = console.error, Re = console.group, Le = console.groupCollapsed, De = console.groupEnd;
|
|
145
145
|
var t = {
|
|
146
146
|
configurable: !0,
|
|
147
147
|
enumerable: !0,
|
|
148
|
-
value:
|
|
148
|
+
value: Ye,
|
|
149
149
|
writable: !0
|
|
150
150
|
};
|
|
151
151
|
Object.defineProperties(console, {
|
|
@@ -158,77 +158,77 @@ function Bt() {
|
|
|
158
158
|
groupEnd: t
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
Q++;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
function er() {
|
|
165
165
|
{
|
|
166
|
-
if (
|
|
166
|
+
if (Q--, Q === 0) {
|
|
167
167
|
var t = {
|
|
168
168
|
configurable: !0,
|
|
169
169
|
enumerable: !0,
|
|
170
170
|
writable: !0
|
|
171
171
|
};
|
|
172
172
|
Object.defineProperties(console, {
|
|
173
|
-
log:
|
|
174
|
-
value: Ie
|
|
175
|
-
}),
|
|
176
|
-
info: ae({}, t, {
|
|
173
|
+
log: B({}, t, {
|
|
177
174
|
value: Fe
|
|
178
175
|
}),
|
|
179
|
-
|
|
180
|
-
value: Ee
|
|
181
|
-
}),
|
|
182
|
-
error: ae({}, t, {
|
|
176
|
+
info: B({}, t, {
|
|
183
177
|
value: Ne
|
|
184
178
|
}),
|
|
185
|
-
|
|
179
|
+
warn: B({}, t, {
|
|
186
180
|
value: Se
|
|
187
181
|
}),
|
|
188
|
-
|
|
182
|
+
error: B({}, t, {
|
|
189
183
|
value: je
|
|
190
184
|
}),
|
|
191
|
-
|
|
185
|
+
group: B({}, t, {
|
|
186
|
+
value: Re
|
|
187
|
+
}),
|
|
188
|
+
groupCollapsed: B({}, t, {
|
|
192
189
|
value: Le
|
|
190
|
+
}),
|
|
191
|
+
groupEnd: B({}, t, {
|
|
192
|
+
value: De
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
|
|
196
|
+
Q < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
var
|
|
200
|
-
function
|
|
199
|
+
var Ce = w.ReactCurrentDispatcher, _e;
|
|
200
|
+
function he(t, f, h) {
|
|
201
201
|
{
|
|
202
|
-
if (
|
|
202
|
+
if (_e === void 0)
|
|
203
203
|
try {
|
|
204
204
|
throw Error();
|
|
205
|
-
} catch (
|
|
206
|
-
var
|
|
207
|
-
|
|
205
|
+
} catch (I) {
|
|
206
|
+
var y = I.stack.trim().match(/\n( *(at )?)/);
|
|
207
|
+
_e = y && y[1] || "";
|
|
208
208
|
}
|
|
209
209
|
return `
|
|
210
|
-
` +
|
|
210
|
+
` + _e + t;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
var
|
|
213
|
+
var xe = !1, pe;
|
|
214
214
|
{
|
|
215
215
|
var rr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
216
|
-
|
|
216
|
+
pe = new rr();
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
if (!t ||
|
|
218
|
+
function m(t, f) {
|
|
219
|
+
if (!t || xe)
|
|
220
220
|
return "";
|
|
221
221
|
{
|
|
222
|
-
var h =
|
|
222
|
+
var h = pe.get(t);
|
|
223
223
|
if (h !== void 0)
|
|
224
224
|
return h;
|
|
225
225
|
}
|
|
226
|
-
var
|
|
227
|
-
|
|
228
|
-
var
|
|
226
|
+
var y;
|
|
227
|
+
xe = !0;
|
|
228
|
+
var I = Error.prepareStackTrace;
|
|
229
229
|
Error.prepareStackTrace = void 0;
|
|
230
|
-
var
|
|
231
|
-
|
|
230
|
+
var L;
|
|
231
|
+
L = Ce.current, Ce.current = null, Qe();
|
|
232
232
|
try {
|
|
233
233
|
if (f) {
|
|
234
234
|
var T = function() {
|
|
@@ -241,111 +241,111 @@ function Bt() {
|
|
|
241
241
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
242
242
|
try {
|
|
243
243
|
Reflect.construct(T, []);
|
|
244
|
-
} catch (
|
|
245
|
-
|
|
244
|
+
} catch (H) {
|
|
245
|
+
y = H;
|
|
246
246
|
}
|
|
247
247
|
Reflect.construct(t, [], T);
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
250
|
T.call();
|
|
251
|
-
} catch (
|
|
252
|
-
|
|
251
|
+
} catch (H) {
|
|
252
|
+
y = H;
|
|
253
253
|
}
|
|
254
254
|
t.call(T.prototype);
|
|
255
255
|
}
|
|
256
256
|
} else {
|
|
257
257
|
try {
|
|
258
258
|
throw Error();
|
|
259
|
-
} catch (
|
|
260
|
-
|
|
259
|
+
} catch (H) {
|
|
260
|
+
y = H;
|
|
261
261
|
}
|
|
262
262
|
t();
|
|
263
263
|
}
|
|
264
|
-
} catch (
|
|
265
|
-
if (
|
|
266
|
-
for (var
|
|
267
|
-
`),
|
|
268
|
-
`),
|
|
269
|
-
|
|
270
|
-
for (;
|
|
271
|
-
if (
|
|
272
|
-
if (
|
|
264
|
+
} catch (H) {
|
|
265
|
+
if (H && y && typeof H.stack == "string") {
|
|
266
|
+
for (var C = H.stack.split(`
|
|
267
|
+
`), K = y.stack.split(`
|
|
268
|
+
`), V = C.length - 1, G = K.length - 1; V >= 1 && G >= 0 && C[V] !== K[G]; )
|
|
269
|
+
G--;
|
|
270
|
+
for (; V >= 1 && G >= 0; V--, G--)
|
|
271
|
+
if (C[V] !== K[G]) {
|
|
272
|
+
if (V !== 1 || G !== 1)
|
|
273
273
|
do
|
|
274
|
-
if (
|
|
275
|
-
var
|
|
276
|
-
` +
|
|
277
|
-
return t.displayName &&
|
|
274
|
+
if (V--, G--, G < 0 || C[V] !== K[G]) {
|
|
275
|
+
var ee = `
|
|
276
|
+
` + C[V].replace(" at new ", " at ");
|
|
277
|
+
return t.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", t.displayName)), typeof t == "function" && pe.set(t, ee), ee;
|
|
278
278
|
}
|
|
279
|
-
while (
|
|
279
|
+
while (V >= 1 && G >= 0);
|
|
280
280
|
break;
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
} finally {
|
|
284
|
-
|
|
284
|
+
xe = !1, Ce.current = L, er(), Error.prepareStackTrace = I;
|
|
285
285
|
}
|
|
286
|
-
var
|
|
287
|
-
return typeof t == "function" &&
|
|
286
|
+
var ge = t ? t.displayName || t.name : "", ue = ge ? he(ge) : "";
|
|
287
|
+
return typeof t == "function" && pe.set(t, ue), ue;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
return
|
|
289
|
+
function we(t, f, h) {
|
|
290
|
+
return m(t, !1);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function ve(t) {
|
|
293
293
|
var f = t.prototype;
|
|
294
294
|
return !!(f && f.isReactComponent);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function fe(t, f, h) {
|
|
297
297
|
if (t == null)
|
|
298
298
|
return "";
|
|
299
299
|
if (typeof t == "function")
|
|
300
|
-
return
|
|
300
|
+
return m(t, ve(t));
|
|
301
301
|
if (typeof t == "string")
|
|
302
|
-
return
|
|
302
|
+
return he(t);
|
|
303
303
|
switch (t) {
|
|
304
304
|
case p:
|
|
305
|
-
return
|
|
305
|
+
return he("Suspense");
|
|
306
306
|
case u:
|
|
307
|
-
return
|
|
307
|
+
return he("SuspenseList");
|
|
308
308
|
}
|
|
309
309
|
if (typeof t == "object")
|
|
310
310
|
switch (t.$$typeof) {
|
|
311
311
|
case d:
|
|
312
|
-
return
|
|
313
|
-
case
|
|
314
|
-
return
|
|
315
|
-
case
|
|
316
|
-
var
|
|
312
|
+
return we(t.render);
|
|
313
|
+
case g:
|
|
314
|
+
return fe(t.type, f, h);
|
|
315
|
+
case _: {
|
|
316
|
+
var y = t, I = y._payload, L = y._init;
|
|
317
317
|
try {
|
|
318
|
-
return
|
|
318
|
+
return fe(L(I), f, h);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
return "";
|
|
324
324
|
}
|
|
325
|
-
var
|
|
326
|
-
function
|
|
325
|
+
var Te = Object.prototype.hasOwnProperty, Rr = {}, Cr = w.ReactDebugCurrentFrame;
|
|
326
|
+
function We(t) {
|
|
327
327
|
if (t) {
|
|
328
|
-
var f = t._owner, h =
|
|
328
|
+
var f = t._owner, h = fe(t.type, t._source, f ? f.type : null);
|
|
329
329
|
Cr.setExtraStackFrame(h);
|
|
330
330
|
} else
|
|
331
331
|
Cr.setExtraStackFrame(null);
|
|
332
332
|
}
|
|
333
|
-
function yt(t, f, h,
|
|
333
|
+
function yt(t, f, h, y, I) {
|
|
334
334
|
{
|
|
335
|
-
var
|
|
335
|
+
var L = Function.call.bind(Te);
|
|
336
336
|
for (var T in t)
|
|
337
|
-
if (
|
|
338
|
-
var
|
|
337
|
+
if (L(t, T)) {
|
|
338
|
+
var C = void 0;
|
|
339
339
|
try {
|
|
340
340
|
if (typeof t[T] != "function") {
|
|
341
|
-
var
|
|
342
|
-
throw
|
|
341
|
+
var K = Error((y || "React class") + ": " + h + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
342
|
+
throw K.name = "Invariant Violation", K;
|
|
343
343
|
}
|
|
344
|
-
|
|
345
|
-
} catch (
|
|
346
|
-
|
|
344
|
+
C = t[T](f, T, y, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
345
|
+
} catch (V) {
|
|
346
|
+
C = V;
|
|
347
347
|
}
|
|
348
|
-
|
|
348
|
+
C && !(C instanceof Error) && (We(I), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y || "React class", h, T, typeof C), We(null)), C instanceof Error && !(C.message in Rr) && (Rr[C.message] = !0, We(I), E("Failed %s type: %s", h, C.message), We(null));
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
}
|
|
@@ -371,7 +371,7 @@ function Bt() {
|
|
|
371
371
|
}
|
|
372
372
|
function xr(t) {
|
|
373
373
|
if (St(t))
|
|
374
|
-
return
|
|
374
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Et(t)), _r(t);
|
|
375
375
|
}
|
|
376
376
|
var wr = w.ReactCurrentOwner, Rt = {
|
|
377
377
|
key: !0,
|
|
@@ -380,7 +380,7 @@ function Bt() {
|
|
|
380
380
|
__source: !0
|
|
381
381
|
}, Tr, Or;
|
|
382
382
|
function Ct(t) {
|
|
383
|
-
if (
|
|
383
|
+
if (Te.call(t, "ref")) {
|
|
384
384
|
var f = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
385
385
|
if (f && f.isReactWarning)
|
|
386
386
|
return !1;
|
|
@@ -388,7 +388,7 @@ function Bt() {
|
|
|
388
388
|
return t.ref !== void 0;
|
|
389
389
|
}
|
|
390
390
|
function _t(t) {
|
|
391
|
-
if (
|
|
391
|
+
if (Te.call(t, "key")) {
|
|
392
392
|
var f = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
393
393
|
if (f && f.isReactWarning)
|
|
394
394
|
return !1;
|
|
@@ -401,7 +401,7 @@ function Bt() {
|
|
|
401
401
|
function wt(t, f) {
|
|
402
402
|
{
|
|
403
403
|
var h = function() {
|
|
404
|
-
Tr || (Tr = !0,
|
|
404
|
+
Tr || (Tr = !0, E("%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://reactjs.org/link/special-props)", f));
|
|
405
405
|
};
|
|
406
406
|
h.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
407
407
|
get: h,
|
|
@@ -412,7 +412,7 @@ function Bt() {
|
|
|
412
412
|
function Tt(t, f) {
|
|
413
413
|
{
|
|
414
414
|
var h = function() {
|
|
415
|
-
Or || (Or = !0,
|
|
415
|
+
Or || (Or = !0, E("%s: `ref` 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://reactjs.org/link/special-props)", f));
|
|
416
416
|
};
|
|
417
417
|
h.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
418
418
|
get: h,
|
|
@@ -420,8 +420,8 @@ function Bt() {
|
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
var Ot = function(t, f, h,
|
|
424
|
-
var
|
|
423
|
+
var Ot = function(t, f, h, y, I, L, T) {
|
|
424
|
+
var C = {
|
|
425
425
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
426
|
$$typeof: r,
|
|
427
427
|
// Built-in properties that belong on the element
|
|
@@ -430,60 +430,60 @@ function Bt() {
|
|
|
430
430
|
ref: h,
|
|
431
431
|
props: T,
|
|
432
432
|
// Record the component responsible for creating this element.
|
|
433
|
-
_owner:
|
|
433
|
+
_owner: L
|
|
434
434
|
};
|
|
435
|
-
return
|
|
435
|
+
return C._store = {}, Object.defineProperty(C._store, "validated", {
|
|
436
436
|
configurable: !1,
|
|
437
437
|
enumerable: !1,
|
|
438
438
|
writable: !0,
|
|
439
439
|
value: !1
|
|
440
|
-
}), Object.defineProperty(
|
|
440
|
+
}), Object.defineProperty(C, "_self", {
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
|
-
value:
|
|
445
|
-
}), Object.defineProperty(
|
|
444
|
+
value: y
|
|
445
|
+
}), Object.defineProperty(C, "_source", {
|
|
446
446
|
configurable: !1,
|
|
447
447
|
enumerable: !1,
|
|
448
448
|
writable: !1,
|
|
449
|
-
value:
|
|
450
|
-
}), Object.freeze && (Object.freeze(
|
|
449
|
+
value: I
|
|
450
|
+
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
451
451
|
};
|
|
452
|
-
function Pt(t, f, h,
|
|
452
|
+
function Pt(t, f, h, y, I) {
|
|
453
453
|
{
|
|
454
|
-
var
|
|
455
|
-
h !== void 0 && (xr(h),
|
|
456
|
-
for (
|
|
457
|
-
|
|
454
|
+
var L, T = {}, C = null, K = null;
|
|
455
|
+
h !== void 0 && (xr(h), C = "" + h), _t(f) && (xr(f.key), C = "" + f.key), Ct(f) && (K = f.ref, xt(f, I));
|
|
456
|
+
for (L in f)
|
|
457
|
+
Te.call(f, L) && !Rt.hasOwnProperty(L) && (T[L] = f[L]);
|
|
458
458
|
if (t && t.defaultProps) {
|
|
459
|
-
var
|
|
460
|
-
for (
|
|
461
|
-
T[
|
|
459
|
+
var V = t.defaultProps;
|
|
460
|
+
for (L in V)
|
|
461
|
+
T[L] === void 0 && (T[L] = V[L]);
|
|
462
462
|
}
|
|
463
|
-
if (
|
|
464
|
-
var
|
|
465
|
-
|
|
463
|
+
if (C || K) {
|
|
464
|
+
var G = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
465
|
+
C && wt(T, G), K && Tt(T, G);
|
|
466
466
|
}
|
|
467
|
-
return Ot(t,
|
|
467
|
+
return Ot(t, C, K, I, y, wr.current, T);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
var nr = w.ReactCurrentOwner, Pr = w.ReactDebugCurrentFrame;
|
|
471
|
-
function
|
|
471
|
+
function me(t) {
|
|
472
472
|
if (t) {
|
|
473
|
-
var f = t._owner, h =
|
|
473
|
+
var f = t._owner, h = fe(t.type, t._source, f ? f.type : null);
|
|
474
474
|
Pr.setExtraStackFrame(h);
|
|
475
475
|
} else
|
|
476
476
|
Pr.setExtraStackFrame(null);
|
|
477
477
|
}
|
|
478
|
-
var
|
|
479
|
-
|
|
480
|
-
function
|
|
478
|
+
var or;
|
|
479
|
+
or = !1;
|
|
480
|
+
function ar(t) {
|
|
481
481
|
return typeof t == "object" && t !== null && t.$$typeof === r;
|
|
482
482
|
}
|
|
483
483
|
function kr() {
|
|
484
484
|
{
|
|
485
485
|
if (nr.current) {
|
|
486
|
-
var t =
|
|
486
|
+
var t = Y(nr.current.type);
|
|
487
487
|
if (t)
|
|
488
488
|
return `
|
|
489
489
|
|
|
@@ -517,8 +517,8 @@ Check the top-level render call using <` + h + ">.");
|
|
|
517
517
|
if ($r[h])
|
|
518
518
|
return;
|
|
519
519
|
$r[h] = !0;
|
|
520
|
-
var
|
|
521
|
-
t && t._owner && t._owner !== nr.current && (
|
|
520
|
+
var y = "";
|
|
521
|
+
t && t._owner && t._owner !== nr.current && (y = " It was passed a child from " + Y(t._owner.type) + "."), me(t), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, y), me(null);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
function Mr(t, f) {
|
|
@@ -527,16 +527,16 @@ Check the top-level render call using <` + h + ">.");
|
|
|
527
527
|
return;
|
|
528
528
|
if (tr(t))
|
|
529
529
|
for (var h = 0; h < t.length; h++) {
|
|
530
|
-
var
|
|
531
|
-
|
|
530
|
+
var y = t[h];
|
|
531
|
+
ar(y) && Ar(y, f);
|
|
532
532
|
}
|
|
533
|
-
else if (
|
|
533
|
+
else if (ar(t))
|
|
534
534
|
t._store && (t._store.validated = !0);
|
|
535
535
|
else if (t) {
|
|
536
|
-
var
|
|
537
|
-
if (typeof
|
|
538
|
-
for (var
|
|
539
|
-
|
|
536
|
+
var I = D(t);
|
|
537
|
+
if (typeof I == "function" && I !== t.entries)
|
|
538
|
+
for (var L = I.call(t), T; !(T = L.next()).done; )
|
|
539
|
+
ar(T.value) && Ar(T.value, f);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
}
|
|
@@ -550,76 +550,76 @@ Check the top-level render call using <` + h + ">.");
|
|
|
550
550
|
h = f.propTypes;
|
|
551
551
|
else if (typeof f == "object" && (f.$$typeof === d || // Note: Memo only checks outer props here.
|
|
552
552
|
// Inner props are checked in the reconciler.
|
|
553
|
-
f.$$typeof ===
|
|
553
|
+
f.$$typeof === g))
|
|
554
554
|
h = f.propTypes;
|
|
555
555
|
else
|
|
556
556
|
return;
|
|
557
557
|
if (h) {
|
|
558
|
-
var
|
|
559
|
-
yt(h, t.props, "prop",
|
|
560
|
-
} else if (f.PropTypes !== void 0 && !
|
|
561
|
-
|
|
562
|
-
var
|
|
563
|
-
|
|
558
|
+
var y = Y(f);
|
|
559
|
+
yt(h, t.props, "prop", y, t);
|
|
560
|
+
} else if (f.PropTypes !== void 0 && !or) {
|
|
561
|
+
or = !0;
|
|
562
|
+
var I = Y(f);
|
|
563
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
|
|
564
564
|
}
|
|
565
|
-
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved &&
|
|
565
|
+
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
function Mt(t) {
|
|
569
569
|
{
|
|
570
570
|
for (var f = Object.keys(t.props), h = 0; h < f.length; h++) {
|
|
571
|
-
var
|
|
572
|
-
if (
|
|
573
|
-
|
|
571
|
+
var y = f[h];
|
|
572
|
+
if (y !== "children" && y !== "key") {
|
|
573
|
+
me(t), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), me(null);
|
|
574
574
|
break;
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
t.ref !== null && (
|
|
577
|
+
t.ref !== null && (me(t), E("Invalid attribute `ref` supplied to `React.Fragment`."), me(null));
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
var Ir = {};
|
|
581
|
-
function Fr(t, f, h,
|
|
581
|
+
function Fr(t, f, h, y, I, L) {
|
|
582
582
|
{
|
|
583
|
-
var T =
|
|
583
|
+
var T = O(t);
|
|
584
584
|
if (!T) {
|
|
585
|
-
var
|
|
586
|
-
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (
|
|
587
|
-
var
|
|
588
|
-
|
|
589
|
-
var
|
|
590
|
-
t === null ?
|
|
585
|
+
var C = "";
|
|
586
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
587
|
+
var K = kt();
|
|
588
|
+
K ? C += K : C += kr();
|
|
589
|
+
var V;
|
|
590
|
+
t === null ? V = "null" : tr(t) ? V = "array" : t !== void 0 && t.$$typeof === r ? (V = "<" + (Y(t.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : V = typeof t, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, C);
|
|
591
591
|
}
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
return
|
|
592
|
+
var G = Pt(t, f, h, I, L);
|
|
593
|
+
if (G == null)
|
|
594
|
+
return G;
|
|
595
595
|
if (T) {
|
|
596
|
-
var
|
|
597
|
-
if (
|
|
598
|
-
if (
|
|
599
|
-
if (tr(
|
|
600
|
-
for (var
|
|
601
|
-
Mr(
|
|
602
|
-
Object.freeze && Object.freeze(
|
|
596
|
+
var ee = f.children;
|
|
597
|
+
if (ee !== void 0)
|
|
598
|
+
if (y)
|
|
599
|
+
if (tr(ee)) {
|
|
600
|
+
for (var ge = 0; ge < ee.length; ge++)
|
|
601
|
+
Mr(ee[ge], t);
|
|
602
|
+
Object.freeze && Object.freeze(ee);
|
|
603
603
|
} else
|
|
604
|
-
|
|
604
|
+
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
605
605
|
else
|
|
606
|
-
Mr(
|
|
606
|
+
Mr(ee, t);
|
|
607
607
|
}
|
|
608
|
-
if (
|
|
609
|
-
var
|
|
608
|
+
if (Te.call(f, "key")) {
|
|
609
|
+
var ue = Y(t), H = Object.keys(f).filter(function(Dt) {
|
|
610
610
|
return Dt !== "key";
|
|
611
|
-
}), ir =
|
|
612
|
-
if (!Ir[
|
|
613
|
-
var Lt =
|
|
614
|
-
|
|
611
|
+
}), ir = H.length > 0 ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
612
|
+
if (!Ir[ue + ir]) {
|
|
613
|
+
var Lt = H.length > 0 ? "{" + H.join(": ..., ") + ": ...}" : "{}";
|
|
614
|
+
E(`A props object containing a "key" prop is being spread into JSX:
|
|
615
615
|
let props = %s;
|
|
616
616
|
<%s {...props} />
|
|
617
617
|
React keys must be passed directly to JSX without using spread:
|
|
618
618
|
let props = %s;
|
|
619
|
-
<%s key={someKey} {...props} />`, ir,
|
|
619
|
+
<%s key={someKey} {...props} />`, ir, ue, Lt, ue), Ir[ue + ir] = !0;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
return t ===
|
|
622
|
+
return t === o ? Mt(G) : At(G), G;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
function It(t, f, h) {
|
|
@@ -629,8 +629,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
629
629
|
return Fr(t, f, h, !1);
|
|
630
630
|
}
|
|
631
631
|
var Nt = Ft, jt = It;
|
|
632
|
-
|
|
633
|
-
}()),
|
|
632
|
+
Pe.Fragment = o, Pe.jsx = Nt, Pe.jsxs = jt;
|
|
633
|
+
}()), Pe;
|
|
634
634
|
}
|
|
635
635
|
process.env.NODE_ENV === "production" ? ur.exports = qt() : ur.exports = Bt();
|
|
636
636
|
var Vr = ur.exports;
|
|
@@ -647,36 +647,36 @@ function zt(e) {
|
|
|
647
647
|
}
|
|
648
648
|
var Kt = /* @__PURE__ */ function() {
|
|
649
649
|
function e(n) {
|
|
650
|
-
var
|
|
651
|
-
this._insertTag = function(
|
|
650
|
+
var o = this;
|
|
651
|
+
this._insertTag = function(a) {
|
|
652
652
|
var i;
|
|
653
|
-
|
|
653
|
+
o.tags.length === 0 ? o.insertionPoint ? i = o.insertionPoint.nextSibling : o.prepend ? i = o.container.firstChild : i = o.before : i = o.tags[o.tags.length - 1].nextSibling, o.container.insertBefore(a, i), o.tags.push(a);
|
|
654
654
|
}, this.isSpeedy = n.speedy === void 0 ? !0 : n.speedy, this.tags = [], this.ctr = 0, this.nonce = n.nonce, this.key = n.key, this.container = n.container, this.prepend = n.prepend, this.insertionPoint = n.insertionPoint, this.before = null;
|
|
655
655
|
}
|
|
656
656
|
var r = e.prototype;
|
|
657
|
-
return r.hydrate = function(
|
|
658
|
-
|
|
659
|
-
}, r.insert = function(
|
|
657
|
+
return r.hydrate = function(o) {
|
|
658
|
+
o.forEach(this._insertTag);
|
|
659
|
+
}, r.insert = function(o) {
|
|
660
660
|
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(zt(this));
|
|
661
|
-
var
|
|
661
|
+
var a = this.tags[this.tags.length - 1];
|
|
662
662
|
if (this.isSpeedy) {
|
|
663
|
-
var i = Jt(
|
|
663
|
+
var i = Jt(a);
|
|
664
664
|
try {
|
|
665
|
-
i.insertRule(
|
|
665
|
+
i.insertRule(o, i.cssRules.length);
|
|
666
666
|
} catch {
|
|
667
667
|
}
|
|
668
668
|
} else
|
|
669
|
-
|
|
669
|
+
a.appendChild(document.createTextNode(o));
|
|
670
670
|
this.ctr++;
|
|
671
671
|
}, r.flush = function() {
|
|
672
|
-
this.tags.forEach(function(
|
|
673
|
-
var
|
|
674
|
-
return (
|
|
672
|
+
this.tags.forEach(function(o) {
|
|
673
|
+
var a;
|
|
674
|
+
return (a = o.parentNode) == null ? void 0 : a.removeChild(o);
|
|
675
675
|
}), this.tags = [], this.ctr = 0;
|
|
676
676
|
}, e;
|
|
677
|
-
}(),
|
|
677
|
+
}(), z = "-ms-", Je = "-moz-", A = "-webkit-", at = "comm", mr = "rule", gr = "decl", Ht = "@import", it = "@keyframes", Xt = "@layer", Zt = Math.abs, Ke = String.fromCharCode, Qt = Object.assign;
|
|
678
678
|
function en(e, r) {
|
|
679
|
-
return
|
|
679
|
+
return J(e, 0) ^ 45 ? (((r << 2 ^ J(e, 0)) << 2 ^ J(e, 1)) << 2 ^ J(e, 2)) << 2 ^ J(e, 3) : 0;
|
|
680
680
|
}
|
|
681
681
|
function st(e) {
|
|
682
682
|
return e.trim();
|
|
@@ -684,56 +684,56 @@ function st(e) {
|
|
|
684
684
|
function rn(e, r) {
|
|
685
685
|
return (e = r.exec(e)) ? e[0] : e;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function M(e, r, n) {
|
|
688
688
|
return e.replace(r, n);
|
|
689
689
|
}
|
|
690
690
|
function lr(e, r) {
|
|
691
691
|
return e.indexOf(r);
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function J(e, r) {
|
|
694
694
|
return e.charCodeAt(r) | 0;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function $e(e, r, n) {
|
|
697
697
|
return e.slice(r, n);
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function ne(e) {
|
|
700
700
|
return e.length;
|
|
701
701
|
}
|
|
702
702
|
function yr(e) {
|
|
703
703
|
return e.length;
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function Ve(e, r) {
|
|
706
706
|
return r.push(e), e;
|
|
707
707
|
}
|
|
708
708
|
function tn(e, r) {
|
|
709
709
|
return e.map(r).join("");
|
|
710
710
|
}
|
|
711
|
-
var He = 1,
|
|
712
|
-
function Xe(e, r, n,
|
|
713
|
-
return { value: e, root: r, parent: n, type:
|
|
711
|
+
var He = 1, be = 1, ct = 0, X = 0, q = 0, Ee = "";
|
|
712
|
+
function Xe(e, r, n, o, a, i, c) {
|
|
713
|
+
return { value: e, root: r, parent: n, type: o, props: a, children: i, line: He, column: be, length: c, return: "" };
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function ke(e, r) {
|
|
716
716
|
return Qt(Xe("", null, null, "", null, null, 0), e, { length: -e.length }, r);
|
|
717
717
|
}
|
|
718
718
|
function nn() {
|
|
719
|
-
return
|
|
719
|
+
return q;
|
|
720
720
|
}
|
|
721
|
-
function
|
|
722
|
-
return
|
|
721
|
+
function on() {
|
|
722
|
+
return q = X > 0 ? J(Ee, --X) : 0, be--, q === 10 && (be = 1, He--), q;
|
|
723
723
|
}
|
|
724
|
-
function
|
|
725
|
-
return
|
|
724
|
+
function Z() {
|
|
725
|
+
return q = X < ct ? J(Ee, X++) : 0, be++, q === 10 && (be = 1, He++), q;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
728
|
-
return
|
|
727
|
+
function ae() {
|
|
728
|
+
return J(Ee, X);
|
|
729
729
|
}
|
|
730
730
|
function Ue() {
|
|
731
|
-
return
|
|
731
|
+
return X;
|
|
732
732
|
}
|
|
733
|
-
function
|
|
734
|
-
return
|
|
733
|
+
function Ie(e, r) {
|
|
734
|
+
return $e(Ee, e, r);
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function Ae(e) {
|
|
737
737
|
switch (e) {
|
|
738
738
|
case 0:
|
|
739
739
|
case 9:
|
|
@@ -766,184 +766,184 @@ function $e(e) {
|
|
|
766
766
|
return 0;
|
|
767
767
|
}
|
|
768
768
|
function ft(e) {
|
|
769
|
-
return He =
|
|
769
|
+
return He = be = 1, ct = ne(Ee = e), X = 0, [];
|
|
770
770
|
}
|
|
771
771
|
function ut(e) {
|
|
772
|
-
return
|
|
772
|
+
return Ee = "", e;
|
|
773
773
|
}
|
|
774
774
|
function Ge(e) {
|
|
775
|
-
return st(
|
|
775
|
+
return st(Ie(X - 1, dr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
776
776
|
}
|
|
777
|
-
function
|
|
778
|
-
for (; (
|
|
779
|
-
|
|
780
|
-
return
|
|
777
|
+
function an(e) {
|
|
778
|
+
for (; (q = ae()) && q < 33; )
|
|
779
|
+
Z();
|
|
780
|
+
return Ae(e) > 2 || Ae(q) > 3 ? "" : " ";
|
|
781
781
|
}
|
|
782
782
|
function sn(e, r) {
|
|
783
|
-
for (; --r &&
|
|
783
|
+
for (; --r && Z() && !(q < 48 || q > 102 || q > 57 && q < 65 || q > 70 && q < 97); )
|
|
784
784
|
;
|
|
785
|
-
return
|
|
785
|
+
return Ie(e, Ue() + (r < 6 && ae() == 32 && Z() == 32));
|
|
786
786
|
}
|
|
787
787
|
function dr(e) {
|
|
788
|
-
for (;
|
|
789
|
-
switch (
|
|
788
|
+
for (; Z(); )
|
|
789
|
+
switch (q) {
|
|
790
790
|
case e:
|
|
791
|
-
return
|
|
791
|
+
return X;
|
|
792
792
|
case 34:
|
|
793
793
|
case 39:
|
|
794
|
-
e !== 34 && e !== 39 && dr(
|
|
794
|
+
e !== 34 && e !== 39 && dr(q);
|
|
795
795
|
break;
|
|
796
796
|
case 40:
|
|
797
797
|
e === 41 && dr(e);
|
|
798
798
|
break;
|
|
799
799
|
case 92:
|
|
800
|
-
|
|
800
|
+
Z();
|
|
801
801
|
break;
|
|
802
802
|
}
|
|
803
|
-
return
|
|
803
|
+
return X;
|
|
804
804
|
}
|
|
805
805
|
function cn(e, r) {
|
|
806
|
-
for (;
|
|
807
|
-
if (e +
|
|
806
|
+
for (; Z() && e + q !== 57; )
|
|
807
|
+
if (e + q === 84 && ae() === 47)
|
|
808
808
|
break;
|
|
809
|
-
return "/*" +
|
|
809
|
+
return "/*" + Ie(r, X - 1) + "*" + Ke(e === 47 ? e : Z());
|
|
810
810
|
}
|
|
811
811
|
function fn(e) {
|
|
812
|
-
for (;
|
|
813
|
-
|
|
814
|
-
return
|
|
812
|
+
for (; !Ae(ae()); )
|
|
813
|
+
Z();
|
|
814
|
+
return Ie(e, X);
|
|
815
815
|
}
|
|
816
816
|
function un(e) {
|
|
817
817
|
return ut(qe("", null, null, null, [""], e = ft(e), 0, [0], e));
|
|
818
818
|
}
|
|
819
|
-
function qe(e, r, n,
|
|
820
|
-
for (var p = 0, u = 0,
|
|
821
|
-
switch (
|
|
819
|
+
function qe(e, r, n, o, a, i, c, s, d) {
|
|
820
|
+
for (var p = 0, u = 0, g = c, _ = 0, S = 0, b = 0, x = 1, D = 1, w = 1, E = 0, k = "", j = a, l = i, U = o, $ = k; D; )
|
|
821
|
+
switch (b = E, E = Z()) {
|
|
822
822
|
case 40:
|
|
823
|
-
if (
|
|
824
|
-
lr(
|
|
823
|
+
if (b != 108 && J($, g - 1) == 58) {
|
|
824
|
+
lr($ += M(Ge(E), "&", "&\f"), "&\f") != -1 && (w = -1);
|
|
825
825
|
break;
|
|
826
826
|
}
|
|
827
827
|
case 34:
|
|
828
828
|
case 39:
|
|
829
829
|
case 91:
|
|
830
|
-
|
|
830
|
+
$ += Ge(E);
|
|
831
831
|
break;
|
|
832
832
|
case 9:
|
|
833
833
|
case 10:
|
|
834
834
|
case 13:
|
|
835
835
|
case 32:
|
|
836
|
-
|
|
836
|
+
$ += an(b);
|
|
837
837
|
break;
|
|
838
838
|
case 92:
|
|
839
|
-
|
|
839
|
+
$ += sn(Ue() - 1, 7);
|
|
840
840
|
continue;
|
|
841
841
|
case 47:
|
|
842
|
-
switch (
|
|
842
|
+
switch (ae()) {
|
|
843
843
|
case 42:
|
|
844
844
|
case 47:
|
|
845
|
-
|
|
845
|
+
Ve(ln(cn(Z(), Ue()), r, n), d);
|
|
846
846
|
break;
|
|
847
847
|
default:
|
|
848
|
-
|
|
848
|
+
$ += "/";
|
|
849
849
|
}
|
|
850
850
|
break;
|
|
851
|
-
case 123 *
|
|
852
|
-
|
|
853
|
-
case 125 *
|
|
851
|
+
case 123 * x:
|
|
852
|
+
s[p++] = ne($) * w;
|
|
853
|
+
case 125 * x:
|
|
854
854
|
case 59:
|
|
855
855
|
case 0:
|
|
856
|
-
switch (
|
|
856
|
+
switch (E) {
|
|
857
857
|
case 0:
|
|
858
858
|
case 125:
|
|
859
|
-
|
|
859
|
+
D = 0;
|
|
860
860
|
case 59 + u:
|
|
861
|
-
w == -1 && (
|
|
861
|
+
w == -1 && ($ = M($, /\f/g, "")), S > 0 && ne($) - g && Ve(S > 32 ? Gr($ + ";", o, n, g - 1) : Gr(M($, " ", "") + ";", o, n, g - 2), d);
|
|
862
862
|
break;
|
|
863
863
|
case 59:
|
|
864
|
-
|
|
864
|
+
$ += ";";
|
|
865
865
|
default:
|
|
866
|
-
if (
|
|
866
|
+
if (Ve(U = Ur($, r, n, p, u, a, s, k, j = [], l = [], g), i), E === 123)
|
|
867
867
|
if (u === 0)
|
|
868
|
-
qe(
|
|
868
|
+
qe($, r, U, U, j, i, g, s, l);
|
|
869
869
|
else
|
|
870
|
-
switch (
|
|
870
|
+
switch (_ === 99 && J($, 3) === 110 ? 100 : _) {
|
|
871
871
|
case 100:
|
|
872
872
|
case 108:
|
|
873
873
|
case 109:
|
|
874
874
|
case 115:
|
|
875
|
-
qe(e,
|
|
875
|
+
qe(e, U, U, o && Ve(Ur(e, U, U, 0, 0, a, s, k, a, j = [], g), l), a, l, g, s, o ? j : l);
|
|
876
876
|
break;
|
|
877
877
|
default:
|
|
878
|
-
qe(
|
|
878
|
+
qe($, U, U, U, [""], l, 0, s, l);
|
|
879
879
|
}
|
|
880
880
|
}
|
|
881
|
-
p = u =
|
|
881
|
+
p = u = S = 0, x = w = 1, k = $ = "", g = c;
|
|
882
882
|
break;
|
|
883
883
|
case 58:
|
|
884
|
-
|
|
884
|
+
g = 1 + ne($), S = b;
|
|
885
885
|
default:
|
|
886
|
-
if (
|
|
887
|
-
if (
|
|
888
|
-
--
|
|
889
|
-
else if (
|
|
886
|
+
if (x < 1) {
|
|
887
|
+
if (E == 123)
|
|
888
|
+
--x;
|
|
889
|
+
else if (E == 125 && x++ == 0 && on() == 125)
|
|
890
890
|
continue;
|
|
891
891
|
}
|
|
892
|
-
switch (
|
|
892
|
+
switch ($ += Ke(E), E * x) {
|
|
893
893
|
case 38:
|
|
894
|
-
w = u > 0 ? 1 : (
|
|
894
|
+
w = u > 0 ? 1 : ($ += "\f", -1);
|
|
895
895
|
break;
|
|
896
896
|
case 44:
|
|
897
|
-
|
|
897
|
+
s[p++] = (ne($) - 1) * w, w = 1;
|
|
898
898
|
break;
|
|
899
899
|
case 64:
|
|
900
|
-
|
|
900
|
+
ae() === 45 && ($ += Ge(Z())), _ = ae(), u = g = ne(k = $ += fn(Ue())), E++;
|
|
901
901
|
break;
|
|
902
902
|
case 45:
|
|
903
|
-
|
|
903
|
+
b === 45 && ne($) == 2 && (x = 0);
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
906
|
return i;
|
|
907
907
|
}
|
|
908
|
-
function Ur(e, r, n,
|
|
909
|
-
for (var
|
|
910
|
-
for (var w = 0,
|
|
911
|
-
(k = st(
|
|
912
|
-
return Xe(e, r, n,
|
|
908
|
+
function Ur(e, r, n, o, a, i, c, s, d, p, u) {
|
|
909
|
+
for (var g = a - 1, _ = a === 0 ? i : [""], S = yr(_), b = 0, x = 0, D = 0; b < o; ++b)
|
|
910
|
+
for (var w = 0, E = $e(e, g + 1, g = Zt(x = c[b])), k = e; w < S; ++w)
|
|
911
|
+
(k = st(x > 0 ? _[w] + " " + E : M(E, /&\f/g, _[w]))) && (d[D++] = k);
|
|
912
|
+
return Xe(e, r, n, a === 0 ? mr : s, d, p, u);
|
|
913
913
|
}
|
|
914
914
|
function ln(e, r, n) {
|
|
915
|
-
return Xe(e, r, n,
|
|
915
|
+
return Xe(e, r, n, at, Ke(nn()), $e(e, 2, -2), 0);
|
|
916
916
|
}
|
|
917
|
-
function Gr(e, r, n,
|
|
918
|
-
return Xe(e, r, n, gr,
|
|
917
|
+
function Gr(e, r, n, o) {
|
|
918
|
+
return Xe(e, r, n, gr, $e(e, 0, o), $e(e, o + 1, -1), o);
|
|
919
919
|
}
|
|
920
|
-
function
|
|
921
|
-
for (var n = "",
|
|
922
|
-
n += r(e[
|
|
920
|
+
function ye(e, r) {
|
|
921
|
+
for (var n = "", o = yr(e), a = 0; a < o; a++)
|
|
922
|
+
n += r(e[a], a, e, r) || "";
|
|
923
923
|
return n;
|
|
924
924
|
}
|
|
925
|
-
function dn(e, r, n,
|
|
925
|
+
function dn(e, r, n, o) {
|
|
926
926
|
switch (e.type) {
|
|
927
927
|
case Xt:
|
|
928
928
|
if (e.children.length) break;
|
|
929
929
|
case Ht:
|
|
930
930
|
case gr:
|
|
931
931
|
return e.return = e.return || e.value;
|
|
932
|
-
case
|
|
932
|
+
case at:
|
|
933
933
|
return "";
|
|
934
934
|
case it:
|
|
935
|
-
return e.return = e.value + "{" +
|
|
935
|
+
return e.return = e.value + "{" + ye(e.children, o) + "}";
|
|
936
936
|
case mr:
|
|
937
937
|
e.value = e.props.join(",");
|
|
938
938
|
}
|
|
939
|
-
return
|
|
939
|
+
return ne(n = ye(e.children, o)) ? e.return = e.value + "{" + n + "}" : "";
|
|
940
940
|
}
|
|
941
941
|
function hn(e) {
|
|
942
942
|
var r = yr(e);
|
|
943
|
-
return function(n,
|
|
944
|
-
for (var
|
|
945
|
-
|
|
946
|
-
return
|
|
943
|
+
return function(n, o, a, i) {
|
|
944
|
+
for (var c = "", s = 0; s < r; s++)
|
|
945
|
+
c += e[s](n, o, a, i) || "";
|
|
946
|
+
return c;
|
|
947
947
|
};
|
|
948
948
|
}
|
|
949
949
|
function pn(e) {
|
|
@@ -957,29 +957,29 @@ function vn(e) {
|
|
|
957
957
|
return r[n] === void 0 && (r[n] = e(n)), r[n];
|
|
958
958
|
};
|
|
959
959
|
}
|
|
960
|
-
var mn = function(r, n,
|
|
961
|
-
for (var
|
|
962
|
-
|
|
963
|
-
return
|
|
960
|
+
var mn = function(r, n, o) {
|
|
961
|
+
for (var a = 0, i = 0; a = i, i = ae(), a === 38 && i === 12 && (n[o] = 1), !Ae(i); )
|
|
962
|
+
Z();
|
|
963
|
+
return Ie(r, X);
|
|
964
964
|
}, gn = function(r, n) {
|
|
965
|
-
var
|
|
965
|
+
var o = -1, a = 44;
|
|
966
966
|
do
|
|
967
|
-
switch (
|
|
967
|
+
switch (Ae(a)) {
|
|
968
968
|
case 0:
|
|
969
|
-
|
|
969
|
+
a === 38 && ae() === 12 && (n[o] = 1), r[o] += mn(X - 1, n, o);
|
|
970
970
|
break;
|
|
971
971
|
case 2:
|
|
972
|
-
r[
|
|
972
|
+
r[o] += Ge(a);
|
|
973
973
|
break;
|
|
974
974
|
case 4:
|
|
975
|
-
if (
|
|
976
|
-
r[++
|
|
975
|
+
if (a === 44) {
|
|
976
|
+
r[++o] = ae() === 58 ? "&\f" : "", n[o] = r[o].length;
|
|
977
977
|
break;
|
|
978
978
|
}
|
|
979
979
|
default:
|
|
980
|
-
r[
|
|
980
|
+
r[o] += Ke(a);
|
|
981
981
|
}
|
|
982
|
-
while (
|
|
982
|
+
while (a = Z());
|
|
983
983
|
return r;
|
|
984
984
|
}, yn = function(r, n) {
|
|
985
985
|
return ut(gn(ft(r), n));
|
|
@@ -987,13 +987,13 @@ var mn = function(r, n, a) {
|
|
|
987
987
|
if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
|
|
988
988
|
// negative .length indicates that this rule has been already prefixed
|
|
989
989
|
r.length < 1)) {
|
|
990
|
-
for (var n = r.value,
|
|
991
|
-
if (
|
|
992
|
-
if (!(r.props.length === 1 && n.charCodeAt(0) !== 58 && !qr.get(
|
|
990
|
+
for (var n = r.value, o = r.parent, a = r.column === o.column && r.line === o.line; o.type !== "rule"; )
|
|
991
|
+
if (o = o.parent, !o) return;
|
|
992
|
+
if (!(r.props.length === 1 && n.charCodeAt(0) !== 58 && !qr.get(o)) && !a) {
|
|
993
993
|
qr.set(r, !0);
|
|
994
|
-
for (var i = [],
|
|
995
|
-
for (var u = 0; u <
|
|
996
|
-
r.props[p] = i[d] ?
|
|
994
|
+
for (var i = [], c = yn(n, i), s = o.props, d = 0, p = 0; d < c.length; d++)
|
|
995
|
+
for (var u = 0; u < s.length; u++, p++)
|
|
996
|
+
r.props[p] = i[d] ? c[d].replace(/&\f/g, s[u]) : s[u] + " " + c[d];
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
999
|
}, En = function(r) {
|
|
@@ -1007,7 +1007,7 @@ var mn = function(r, n, a) {
|
|
|
1007
1007
|
function lt(e, r) {
|
|
1008
1008
|
switch (en(e, r)) {
|
|
1009
1009
|
case 5103:
|
|
1010
|
-
return
|
|
1010
|
+
return A + "print-" + e + e;
|
|
1011
1011
|
case 5737:
|
|
1012
1012
|
case 4201:
|
|
1013
1013
|
case 3177:
|
|
@@ -1033,44 +1033,44 @@ function lt(e, r) {
|
|
|
1033
1033
|
case 5365:
|
|
1034
1034
|
case 5621:
|
|
1035
1035
|
case 3829:
|
|
1036
|
-
return
|
|
1036
|
+
return A + e + e;
|
|
1037
1037
|
case 5349:
|
|
1038
1038
|
case 4246:
|
|
1039
1039
|
case 4810:
|
|
1040
1040
|
case 6968:
|
|
1041
1041
|
case 2756:
|
|
1042
|
-
return
|
|
1042
|
+
return A + e + Je + e + z + e + e;
|
|
1043
1043
|
case 6828:
|
|
1044
1044
|
case 4268:
|
|
1045
|
-
return
|
|
1045
|
+
return A + e + z + e + e;
|
|
1046
1046
|
case 6165:
|
|
1047
|
-
return
|
|
1047
|
+
return A + e + z + "flex-" + e + e;
|
|
1048
1048
|
case 5187:
|
|
1049
|
-
return
|
|
1049
|
+
return A + e + M(e, /(\w+).+(:[^]+)/, A + "box-$1$2" + z + "flex-$1$2") + e;
|
|
1050
1050
|
case 5443:
|
|
1051
|
-
return
|
|
1051
|
+
return A + e + z + "flex-item-" + M(e, /flex-|-self/, "") + e;
|
|
1052
1052
|
case 4675:
|
|
1053
|
-
return
|
|
1053
|
+
return A + e + z + "flex-line-pack" + M(e, /align-content|flex-|-self/, "") + e;
|
|
1054
1054
|
case 5548:
|
|
1055
|
-
return
|
|
1055
|
+
return A + e + z + M(e, "shrink", "negative") + e;
|
|
1056
1056
|
case 5292:
|
|
1057
|
-
return
|
|
1057
|
+
return A + e + z + M(e, "basis", "preferred-size") + e;
|
|
1058
1058
|
case 6060:
|
|
1059
|
-
return
|
|
1059
|
+
return A + "box-" + M(e, "-grow", "") + A + e + z + M(e, "grow", "positive") + e;
|
|
1060
1060
|
case 4554:
|
|
1061
|
-
return
|
|
1061
|
+
return A + M(e, /([^-])(transform)/g, "$1" + A + "$2") + e;
|
|
1062
1062
|
case 6187:
|
|
1063
|
-
return
|
|
1063
|
+
return M(M(M(e, /(zoom-|grab)/, A + "$1"), /(image-set)/, A + "$1"), e, "") + e;
|
|
1064
1064
|
case 5495:
|
|
1065
1065
|
case 3959:
|
|
1066
|
-
return
|
|
1066
|
+
return M(e, /(image-set\([^]*)/, A + "$1$`$1");
|
|
1067
1067
|
case 4968:
|
|
1068
|
-
return
|
|
1068
|
+
return M(M(e, /(.+:)(flex-)?(.*)/, A + "box-pack:$3" + z + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + A + e + e;
|
|
1069
1069
|
case 4095:
|
|
1070
1070
|
case 3583:
|
|
1071
1071
|
case 4068:
|
|
1072
1072
|
case 2532:
|
|
1073
|
-
return
|
|
1073
|
+
return M(e, /(.+)-inline(.+)/, A + "$1$2") + e;
|
|
1074
1074
|
case 8116:
|
|
1075
1075
|
case 7059:
|
|
1076
1076
|
case 5753:
|
|
@@ -1083,63 +1083,63 @@ function lt(e, r) {
|
|
|
1083
1083
|
case 5789:
|
|
1084
1084
|
case 5021:
|
|
1085
1085
|
case 4765:
|
|
1086
|
-
if (
|
|
1086
|
+
if (ne(e) - 1 - r > 6) switch (J(e, r + 1)) {
|
|
1087
1087
|
case 109:
|
|
1088
|
-
if (
|
|
1088
|
+
if (J(e, r + 4) !== 45) break;
|
|
1089
1089
|
case 102:
|
|
1090
|
-
return
|
|
1090
|
+
return M(e, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + Je + (J(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1091
1091
|
case 115:
|
|
1092
|
-
return ~lr(e, "stretch") ? lt(
|
|
1092
|
+
return ~lr(e, "stretch") ? lt(M(e, "stretch", "fill-available"), r) + e : e;
|
|
1093
1093
|
}
|
|
1094
1094
|
break;
|
|
1095
1095
|
case 4949:
|
|
1096
|
-
if (
|
|
1096
|
+
if (J(e, r + 1) !== 115) break;
|
|
1097
1097
|
case 6444:
|
|
1098
|
-
switch (
|
|
1098
|
+
switch (J(e, ne(e) - 3 - (~lr(e, "!important") && 10))) {
|
|
1099
1099
|
case 107:
|
|
1100
|
-
return
|
|
1100
|
+
return M(e, ":", ":" + A) + e;
|
|
1101
1101
|
case 101:
|
|
1102
|
-
return
|
|
1102
|
+
return M(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + A + (J(e, 14) === 45 ? "inline-" : "") + "box$3$1" + A + "$2$3$1" + z + "$2box$3") + e;
|
|
1103
1103
|
}
|
|
1104
1104
|
break;
|
|
1105
1105
|
case 5936:
|
|
1106
|
-
switch (
|
|
1106
|
+
switch (J(e, r + 11)) {
|
|
1107
1107
|
case 114:
|
|
1108
|
-
return
|
|
1108
|
+
return A + e + z + M(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1109
1109
|
case 108:
|
|
1110
|
-
return
|
|
1110
|
+
return A + e + z + M(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1111
1111
|
case 45:
|
|
1112
|
-
return
|
|
1112
|
+
return A + e + z + M(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1113
1113
|
}
|
|
1114
|
-
return
|
|
1114
|
+
return A + e + z + e + e;
|
|
1115
1115
|
}
|
|
1116
1116
|
return e;
|
|
1117
1117
|
}
|
|
1118
|
-
var Sn = function(r, n,
|
|
1118
|
+
var Sn = function(r, n, o, a) {
|
|
1119
1119
|
if (r.length > -1 && !r.return) switch (r.type) {
|
|
1120
1120
|
case gr:
|
|
1121
1121
|
r.return = lt(r.value, r.length);
|
|
1122
1122
|
break;
|
|
1123
1123
|
case it:
|
|
1124
|
-
return
|
|
1125
|
-
value:
|
|
1126
|
-
})],
|
|
1124
|
+
return ye([ke(r, {
|
|
1125
|
+
value: M(r.value, "@", "@" + A)
|
|
1126
|
+
})], a);
|
|
1127
1127
|
case mr:
|
|
1128
1128
|
if (r.length) return tn(r.props, function(i) {
|
|
1129
1129
|
switch (rn(i, /(::plac\w+|:read-\w+)/)) {
|
|
1130
1130
|
case ":read-only":
|
|
1131
1131
|
case ":read-write":
|
|
1132
|
-
return
|
|
1133
|
-
props: [
|
|
1134
|
-
})],
|
|
1132
|
+
return ye([ke(r, {
|
|
1133
|
+
props: [M(i, /:(read-\w+)/, ":" + Je + "$1")]
|
|
1134
|
+
})], a);
|
|
1135
1135
|
case "::placeholder":
|
|
1136
|
-
return
|
|
1137
|
-
props: [
|
|
1138
|
-
}),
|
|
1139
|
-
props: [
|
|
1140
|
-
}),
|
|
1141
|
-
props: [
|
|
1142
|
-
})],
|
|
1136
|
+
return ye([ke(r, {
|
|
1137
|
+
props: [M(i, /:(plac\w+)/, ":" + A + "input-$1")]
|
|
1138
|
+
}), ke(r, {
|
|
1139
|
+
props: [M(i, /:(plac\w+)/, ":" + Je + "$1")]
|
|
1140
|
+
}), ke(r, {
|
|
1141
|
+
props: [M(i, /:(plac\w+)/, z + "input-$1")]
|
|
1142
|
+
})], a);
|
|
1143
1143
|
}
|
|
1144
1144
|
return "";
|
|
1145
1145
|
});
|
|
@@ -1147,39 +1147,39 @@ var Sn = function(r, n, a, o) {
|
|
|
1147
1147
|
}, Rn = [Sn], Cn = function(r) {
|
|
1148
1148
|
var n = r.key;
|
|
1149
1149
|
if (n === "css") {
|
|
1150
|
-
var
|
|
1151
|
-
Array.prototype.forEach.call(
|
|
1152
|
-
var
|
|
1153
|
-
|
|
1150
|
+
var o = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1151
|
+
Array.prototype.forEach.call(o, function(x) {
|
|
1152
|
+
var D = x.getAttribute("data-emotion");
|
|
1153
|
+
D.indexOf(" ") !== -1 && (document.head.appendChild(x), x.setAttribute("data-s", ""));
|
|
1154
1154
|
});
|
|
1155
1155
|
}
|
|
1156
|
-
var
|
|
1157
|
-
|
|
1156
|
+
var a = r.stylisPlugins || Rn, i = {}, c, s = [];
|
|
1157
|
+
c = r.container || document.head, Array.prototype.forEach.call(
|
|
1158
1158
|
// this means we will ignore elements which don't have a space in them which
|
|
1159
1159
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1160
1160
|
document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
|
|
1161
|
-
function(
|
|
1162
|
-
for (var
|
|
1163
|
-
i[
|
|
1164
|
-
|
|
1161
|
+
function(x) {
|
|
1162
|
+
for (var D = x.getAttribute("data-emotion").split(" "), w = 1; w < D.length; w++)
|
|
1163
|
+
i[D[w]] = !0;
|
|
1164
|
+
s.push(x);
|
|
1165
1165
|
}
|
|
1166
1166
|
);
|
|
1167
1167
|
var d, p = [bn, En];
|
|
1168
1168
|
{
|
|
1169
|
-
var u,
|
|
1170
|
-
u.insert(
|
|
1171
|
-
})],
|
|
1172
|
-
return
|
|
1169
|
+
var u, g = [dn, pn(function(x) {
|
|
1170
|
+
u.insert(x);
|
|
1171
|
+
})], _ = hn(p.concat(a, g)), S = function(D) {
|
|
1172
|
+
return ye(un(D), _);
|
|
1173
1173
|
};
|
|
1174
|
-
d = function(
|
|
1175
|
-
u =
|
|
1174
|
+
d = function(D, w, E, k) {
|
|
1175
|
+
u = E, S(D ? D + "{" + w.styles + "}" : w.styles), k && (b.inserted[w.name] = !0);
|
|
1176
1176
|
};
|
|
1177
1177
|
}
|
|
1178
|
-
var
|
|
1178
|
+
var b = {
|
|
1179
1179
|
key: n,
|
|
1180
1180
|
sheet: new Kt({
|
|
1181
1181
|
key: n,
|
|
1182
|
-
container:
|
|
1182
|
+
container: c,
|
|
1183
1183
|
nonce: r.nonce,
|
|
1184
1184
|
speedy: r.speedy,
|
|
1185
1185
|
prepend: r.prepend,
|
|
@@ -1190,8 +1190,8 @@ var Sn = function(r, n, a, o) {
|
|
|
1190
1190
|
registered: {},
|
|
1191
1191
|
insert: d
|
|
1192
1192
|
};
|
|
1193
|
-
return
|
|
1194
|
-
}, hr = { exports: {} },
|
|
1193
|
+
return b.sheet.hydrate(s), b;
|
|
1194
|
+
}, hr = { exports: {} }, F = {};
|
|
1195
1195
|
/** @license React v16.13.1
|
|
1196
1196
|
* react-is.production.min.js
|
|
1197
1197
|
*
|
|
@@ -1202,71 +1202,71 @@ var Sn = function(r, n, a, o) {
|
|
|
1202
1202
|
*/
|
|
1203
1203
|
var Br;
|
|
1204
1204
|
function _n() {
|
|
1205
|
-
if (Br) return
|
|
1205
|
+
if (Br) return F;
|
|
1206
1206
|
Br = 1;
|
|
1207
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106,
|
|
1207
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
1208
1208
|
function k(l) {
|
|
1209
1209
|
if (typeof l == "object" && l !== null) {
|
|
1210
|
-
var
|
|
1211
|
-
switch (
|
|
1210
|
+
var U = l.$$typeof;
|
|
1211
|
+
switch (U) {
|
|
1212
1212
|
case r:
|
|
1213
1213
|
switch (l = l.type, l) {
|
|
1214
1214
|
case d:
|
|
1215
1215
|
case p:
|
|
1216
|
-
case a:
|
|
1217
|
-
case i:
|
|
1218
1216
|
case o:
|
|
1219
|
-
case
|
|
1217
|
+
case i:
|
|
1218
|
+
case a:
|
|
1219
|
+
case g:
|
|
1220
1220
|
return l;
|
|
1221
1221
|
default:
|
|
1222
1222
|
switch (l = l && l.$$typeof, l) {
|
|
1223
|
-
case c:
|
|
1224
|
-
case u:
|
|
1225
|
-
case E:
|
|
1226
|
-
case R:
|
|
1227
1223
|
case s:
|
|
1224
|
+
case u:
|
|
1225
|
+
case b:
|
|
1226
|
+
case S:
|
|
1227
|
+
case c:
|
|
1228
1228
|
return l;
|
|
1229
1229
|
default:
|
|
1230
|
-
return
|
|
1230
|
+
return U;
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
1233
|
case n:
|
|
1234
|
-
return
|
|
1234
|
+
return U;
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function j(l) {
|
|
1239
1239
|
return k(l) === p;
|
|
1240
1240
|
}
|
|
1241
|
-
return
|
|
1242
|
-
return
|
|
1243
|
-
},
|
|
1244
|
-
return k(l) === c;
|
|
1245
|
-
}, I.isContextProvider = function(l) {
|
|
1241
|
+
return F.AsyncMode = d, F.ConcurrentMode = p, F.ContextConsumer = s, F.ContextProvider = c, F.Element = r, F.ForwardRef = u, F.Fragment = o, F.Lazy = b, F.Memo = S, F.Portal = n, F.Profiler = i, F.StrictMode = a, F.Suspense = g, F.isAsyncMode = function(l) {
|
|
1242
|
+
return j(l) || k(l) === d;
|
|
1243
|
+
}, F.isConcurrentMode = j, F.isContextConsumer = function(l) {
|
|
1246
1244
|
return k(l) === s;
|
|
1247
|
-
},
|
|
1245
|
+
}, F.isContextProvider = function(l) {
|
|
1246
|
+
return k(l) === c;
|
|
1247
|
+
}, F.isElement = function(l) {
|
|
1248
1248
|
return typeof l == "object" && l !== null && l.$$typeof === r;
|
|
1249
|
-
},
|
|
1249
|
+
}, F.isForwardRef = function(l) {
|
|
1250
1250
|
return k(l) === u;
|
|
1251
|
-
},
|
|
1252
|
-
return k(l) ===
|
|
1253
|
-
},
|
|
1254
|
-
return k(l) ===
|
|
1255
|
-
},
|
|
1256
|
-
return k(l) ===
|
|
1257
|
-
},
|
|
1251
|
+
}, F.isFragment = function(l) {
|
|
1252
|
+
return k(l) === o;
|
|
1253
|
+
}, F.isLazy = function(l) {
|
|
1254
|
+
return k(l) === b;
|
|
1255
|
+
}, F.isMemo = function(l) {
|
|
1256
|
+
return k(l) === S;
|
|
1257
|
+
}, F.isPortal = function(l) {
|
|
1258
1258
|
return k(l) === n;
|
|
1259
|
-
},
|
|
1259
|
+
}, F.isProfiler = function(l) {
|
|
1260
1260
|
return k(l) === i;
|
|
1261
|
-
},
|
|
1262
|
-
return k(l) ===
|
|
1263
|
-
},
|
|
1264
|
-
return k(l) ===
|
|
1265
|
-
},
|
|
1266
|
-
return typeof l == "string" || typeof l == "function" || l ===
|
|
1267
|
-
},
|
|
1261
|
+
}, F.isStrictMode = function(l) {
|
|
1262
|
+
return k(l) === a;
|
|
1263
|
+
}, F.isSuspense = function(l) {
|
|
1264
|
+
return k(l) === g;
|
|
1265
|
+
}, F.isValidElementType = function(l) {
|
|
1266
|
+
return typeof l == "string" || typeof l == "function" || l === o || l === p || l === i || l === a || l === g || l === _ || typeof l == "object" && l !== null && (l.$$typeof === b || l.$$typeof === S || l.$$typeof === c || l.$$typeof === s || l.$$typeof === u || l.$$typeof === D || l.$$typeof === w || l.$$typeof === E || l.$$typeof === x);
|
|
1267
|
+
}, F.typeOf = k, F;
|
|
1268
1268
|
}
|
|
1269
|
-
var
|
|
1269
|
+
var N = {};
|
|
1270
1270
|
/** @license React v16.13.1
|
|
1271
1271
|
* react-is.development.js
|
|
1272
1272
|
*
|
|
@@ -1278,85 +1278,85 @@ var F = {};
|
|
|
1278
1278
|
var Jr;
|
|
1279
1279
|
function xn() {
|
|
1280
1280
|
return Jr || (Jr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1281
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106,
|
|
1282
|
-
function k(
|
|
1283
|
-
return typeof
|
|
1284
|
-
|
|
1285
|
-
}
|
|
1286
|
-
function
|
|
1287
|
-
if (typeof
|
|
1288
|
-
var
|
|
1289
|
-
switch (
|
|
1281
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
|
|
1282
|
+
function k(m) {
|
|
1283
|
+
return typeof m == "string" || typeof m == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1284
|
+
m === o || m === p || m === i || m === a || m === g || m === _ || typeof m == "object" && m !== null && (m.$$typeof === b || m.$$typeof === S || m.$$typeof === c || m.$$typeof === s || m.$$typeof === u || m.$$typeof === D || m.$$typeof === w || m.$$typeof === E || m.$$typeof === x);
|
|
1285
|
+
}
|
|
1286
|
+
function j(m) {
|
|
1287
|
+
if (typeof m == "object" && m !== null) {
|
|
1288
|
+
var we = m.$$typeof;
|
|
1289
|
+
switch (we) {
|
|
1290
1290
|
case r:
|
|
1291
|
-
var
|
|
1292
|
-
switch (
|
|
1291
|
+
var ve = m.type;
|
|
1292
|
+
switch (ve) {
|
|
1293
1293
|
case d:
|
|
1294
1294
|
case p:
|
|
1295
|
-
case a:
|
|
1296
|
-
case i:
|
|
1297
1295
|
case o:
|
|
1298
|
-
case
|
|
1299
|
-
|
|
1296
|
+
case i:
|
|
1297
|
+
case a:
|
|
1298
|
+
case g:
|
|
1299
|
+
return ve;
|
|
1300
1300
|
default:
|
|
1301
|
-
var
|
|
1302
|
-
switch (
|
|
1303
|
-
case c:
|
|
1304
|
-
case u:
|
|
1305
|
-
case E:
|
|
1306
|
-
case R:
|
|
1301
|
+
var fe = ve && ve.$$typeof;
|
|
1302
|
+
switch (fe) {
|
|
1307
1303
|
case s:
|
|
1308
|
-
|
|
1304
|
+
case u:
|
|
1305
|
+
case b:
|
|
1306
|
+
case S:
|
|
1307
|
+
case c:
|
|
1308
|
+
return fe;
|
|
1309
1309
|
default:
|
|
1310
|
-
return
|
|
1310
|
+
return we;
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
1313
|
case n:
|
|
1314
|
-
return
|
|
1314
|
+
return we;
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
|
-
var l = d,
|
|
1319
|
-
function
|
|
1320
|
-
return
|
|
1318
|
+
var l = d, U = p, $ = s, v = c, R = r, O = u, P = o, W = b, Y = S, B = n, Q = i, Fe = a, Ne = g, Se = !1;
|
|
1319
|
+
function je(m) {
|
|
1320
|
+
return Se || (Se = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Re(m) || j(m) === d;
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1323
|
-
return
|
|
1322
|
+
function Re(m) {
|
|
1323
|
+
return j(m) === p;
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1326
|
-
return
|
|
1325
|
+
function Le(m) {
|
|
1326
|
+
return j(m) === s;
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1329
|
-
return
|
|
1328
|
+
function De(m) {
|
|
1329
|
+
return j(m) === c;
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1332
|
-
return typeof
|
|
1331
|
+
function Ye(m) {
|
|
1332
|
+
return typeof m == "object" && m !== null && m.$$typeof === r;
|
|
1333
1333
|
}
|
|
1334
|
-
function Qe(
|
|
1335
|
-
return
|
|
1334
|
+
function Qe(m) {
|
|
1335
|
+
return j(m) === u;
|
|
1336
1336
|
}
|
|
1337
|
-
function er(
|
|
1338
|
-
return
|
|
1337
|
+
function er(m) {
|
|
1338
|
+
return j(m) === o;
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1341
|
-
return
|
|
1340
|
+
function Ce(m) {
|
|
1341
|
+
return j(m) === b;
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1344
|
-
return
|
|
1343
|
+
function _e(m) {
|
|
1344
|
+
return j(m) === S;
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1347
|
-
return
|
|
1346
|
+
function he(m) {
|
|
1347
|
+
return j(m) === n;
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1350
|
-
return
|
|
1349
|
+
function xe(m) {
|
|
1350
|
+
return j(m) === i;
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1353
|
-
return
|
|
1352
|
+
function pe(m) {
|
|
1353
|
+
return j(m) === a;
|
|
1354
1354
|
}
|
|
1355
|
-
function rr(
|
|
1356
|
-
return
|
|
1355
|
+
function rr(m) {
|
|
1356
|
+
return j(m) === g;
|
|
1357
1357
|
}
|
|
1358
|
-
|
|
1359
|
-
}()),
|
|
1358
|
+
N.AsyncMode = l, N.ConcurrentMode = U, N.ContextConsumer = $, N.ContextProvider = v, N.Element = R, N.ForwardRef = O, N.Fragment = P, N.Lazy = W, N.Memo = Y, N.Portal = B, N.Profiler = Q, N.StrictMode = Fe, N.Suspense = Ne, N.isAsyncMode = je, N.isConcurrentMode = Re, N.isContextConsumer = Le, N.isContextProvider = De, N.isElement = Ye, N.isForwardRef = Qe, N.isFragment = er, N.isLazy = Ce, N.isMemo = _e, N.isPortal = he, N.isProfiler = xe, N.isStrictMode = pe, N.isSuspense = rr, N.isValidElementType = k, N.typeOf = j;
|
|
1359
|
+
}()), N;
|
|
1360
1360
|
}
|
|
1361
1361
|
process.env.NODE_ENV === "production" ? hr.exports = _n() : hr.exports = xn();
|
|
1362
1362
|
var wn = hr.exports, dt = wn, Tn = {
|
|
@@ -1377,47 +1377,47 @@ ht[dt.ForwardRef] = Tn;
|
|
|
1377
1377
|
ht[dt.Memo] = On;
|
|
1378
1378
|
var Pn = !0;
|
|
1379
1379
|
function kn(e, r, n) {
|
|
1380
|
-
var
|
|
1381
|
-
return n.split(" ").forEach(function(
|
|
1382
|
-
e[
|
|
1383
|
-
}),
|
|
1380
|
+
var o = "";
|
|
1381
|
+
return n.split(" ").forEach(function(a) {
|
|
1382
|
+
e[a] !== void 0 ? r.push(e[a] + ";") : a && (o += a + " ");
|
|
1383
|
+
}), o;
|
|
1384
1384
|
}
|
|
1385
|
-
var pt = function(r, n,
|
|
1386
|
-
var
|
|
1385
|
+
var pt = function(r, n, o) {
|
|
1386
|
+
var a = r.key + "-" + n.name;
|
|
1387
1387
|
// we only need to add the styles to the registered cache if the
|
|
1388
1388
|
// class name could be used further down
|
|
1389
1389
|
// the tree but if it's a string tag, we know it won't
|
|
1390
1390
|
// so we don't have to add it to registered cache.
|
|
1391
1391
|
// this improves memory usage since we can avoid storing the whole style string
|
|
1392
|
-
(
|
|
1392
|
+
(o === !1 || // we need to always store it if we're in compat mode and
|
|
1393
1393
|
// in node since emotion-server relies on whether a style is in
|
|
1394
1394
|
// the registered cache to know whether a style is global or not
|
|
1395
1395
|
// also, note that this check will be dead code eliminated in the browser
|
|
1396
|
-
Pn === !1) && r.registered[
|
|
1397
|
-
}, $n = function(r, n,
|
|
1398
|
-
pt(r, n,
|
|
1399
|
-
var
|
|
1396
|
+
Pn === !1) && r.registered[a] === void 0 && (r.registered[a] = n.styles);
|
|
1397
|
+
}, $n = function(r, n, o) {
|
|
1398
|
+
pt(r, n, o);
|
|
1399
|
+
var a = r.key + "-" + n.name;
|
|
1400
1400
|
if (r.inserted[n.name] === void 0) {
|
|
1401
1401
|
var i = n;
|
|
1402
1402
|
do
|
|
1403
|
-
r.insert(n === i ? "." +
|
|
1403
|
+
r.insert(n === i ? "." + a : "", i, r.sheet, !0), i = i.next;
|
|
1404
1404
|
while (i !== void 0);
|
|
1405
1405
|
}
|
|
1406
1406
|
};
|
|
1407
1407
|
function An(e) {
|
|
1408
|
-
for (var r = 0, n,
|
|
1409
|
-
n = e.charCodeAt(
|
|
1408
|
+
for (var r = 0, n, o = 0, a = e.length; a >= 4; ++o, a -= 4)
|
|
1409
|
+
n = e.charCodeAt(o) & 255 | (e.charCodeAt(++o) & 255) << 8 | (e.charCodeAt(++o) & 255) << 16 | (e.charCodeAt(++o) & 255) << 24, n = /* Math.imul(k, m): */
|
|
1410
1410
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
|
|
1411
1411
|
n >>> 24, r = /* Math.imul(k, m): */
|
|
1412
1412
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
1413
1413
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
|
|
1414
|
-
switch (
|
|
1414
|
+
switch (a) {
|
|
1415
1415
|
case 3:
|
|
1416
|
-
r ^= (e.charCodeAt(
|
|
1416
|
+
r ^= (e.charCodeAt(o + 2) & 255) << 16;
|
|
1417
1417
|
case 2:
|
|
1418
|
-
r ^= (e.charCodeAt(
|
|
1418
|
+
r ^= (e.charCodeAt(o + 1) & 255) << 8;
|
|
1419
1419
|
case 1:
|
|
1420
|
-
r ^= e.charCodeAt(
|
|
1420
|
+
r ^= e.charCodeAt(o) & 255, r = /* Math.imul(h, m): */
|
|
1421
1421
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
|
|
1422
1422
|
}
|
|
1423
1423
|
return r ^= r >>> 13, r = /* Math.imul(h, m): */
|
|
@@ -1483,52 +1483,52 @@ var Mn = {
|
|
|
1483
1483
|
case "animation":
|
|
1484
1484
|
case "animationName":
|
|
1485
1485
|
if (typeof n == "string")
|
|
1486
|
-
return n.replace(Fn, function(
|
|
1487
|
-
return
|
|
1488
|
-
name:
|
|
1486
|
+
return n.replace(Fn, function(o, a, i) {
|
|
1487
|
+
return oe = {
|
|
1488
|
+
name: a,
|
|
1489
1489
|
styles: i,
|
|
1490
|
-
next:
|
|
1491
|
-
},
|
|
1490
|
+
next: oe
|
|
1491
|
+
}, a;
|
|
1492
1492
|
});
|
|
1493
1493
|
}
|
|
1494
1494
|
return Mn[r] !== 1 && !vt(r) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
1495
1495
|
};
|
|
1496
|
-
function
|
|
1496
|
+
function Me(e, r, n) {
|
|
1497
1497
|
if (n == null)
|
|
1498
1498
|
return "";
|
|
1499
|
-
var
|
|
1500
|
-
if (
|
|
1501
|
-
return
|
|
1499
|
+
var o = n;
|
|
1500
|
+
if (o.__emotion_styles !== void 0)
|
|
1501
|
+
return o;
|
|
1502
1502
|
switch (typeof n) {
|
|
1503
1503
|
case "boolean":
|
|
1504
1504
|
return "";
|
|
1505
1505
|
case "object": {
|
|
1506
|
-
var
|
|
1507
|
-
if (
|
|
1508
|
-
return
|
|
1509
|
-
name:
|
|
1510
|
-
styles:
|
|
1511
|
-
next:
|
|
1512
|
-
},
|
|
1506
|
+
var a = n;
|
|
1507
|
+
if (a.anim === 1)
|
|
1508
|
+
return oe = {
|
|
1509
|
+
name: a.name,
|
|
1510
|
+
styles: a.styles,
|
|
1511
|
+
next: oe
|
|
1512
|
+
}, a.name;
|
|
1513
1513
|
var i = n;
|
|
1514
1514
|
if (i.styles !== void 0) {
|
|
1515
|
-
var
|
|
1516
|
-
if (
|
|
1517
|
-
for (;
|
|
1518
|
-
|
|
1519
|
-
name:
|
|
1520
|
-
styles:
|
|
1521
|
-
next:
|
|
1522
|
-
},
|
|
1523
|
-
var
|
|
1524
|
-
return
|
|
1515
|
+
var c = i.next;
|
|
1516
|
+
if (c !== void 0)
|
|
1517
|
+
for (; c !== void 0; )
|
|
1518
|
+
oe = {
|
|
1519
|
+
name: c.name,
|
|
1520
|
+
styles: c.styles,
|
|
1521
|
+
next: oe
|
|
1522
|
+
}, c = c.next;
|
|
1523
|
+
var s = i.styles + ";";
|
|
1524
|
+
return s;
|
|
1525
1525
|
}
|
|
1526
1526
|
return Nn(e, r, n);
|
|
1527
1527
|
}
|
|
1528
1528
|
case "function": {
|
|
1529
1529
|
if (e !== void 0) {
|
|
1530
|
-
var d =
|
|
1531
|
-
return
|
|
1530
|
+
var d = oe, p = n(e);
|
|
1531
|
+
return oe = d, Me(e, r, p);
|
|
1532
1532
|
}
|
|
1533
1533
|
break;
|
|
1534
1534
|
}
|
|
@@ -1537,65 +1537,65 @@ function Ae(e, r, n) {
|
|
|
1537
1537
|
return u;
|
|
1538
1538
|
}
|
|
1539
1539
|
function Nn(e, r, n) {
|
|
1540
|
-
var
|
|
1540
|
+
var o = "";
|
|
1541
1541
|
if (Array.isArray(n))
|
|
1542
|
-
for (var
|
|
1543
|
-
|
|
1542
|
+
for (var a = 0; a < n.length; a++)
|
|
1543
|
+
o += Me(e, r, n[a]) + ";";
|
|
1544
1544
|
else
|
|
1545
1545
|
for (var i in n) {
|
|
1546
|
-
var
|
|
1547
|
-
if (typeof
|
|
1548
|
-
var
|
|
1549
|
-
zr(
|
|
1550
|
-
} else if (Array.isArray(
|
|
1551
|
-
for (var d = 0; d <
|
|
1552
|
-
zr(
|
|
1546
|
+
var c = n[i];
|
|
1547
|
+
if (typeof c != "object") {
|
|
1548
|
+
var s = c;
|
|
1549
|
+
zr(s) && (o += sr(i) + ":" + Kr(i, s) + ";");
|
|
1550
|
+
} else if (Array.isArray(c) && typeof c[0] == "string" && r == null)
|
|
1551
|
+
for (var d = 0; d < c.length; d++)
|
|
1552
|
+
zr(c[d]) && (o += sr(i) + ":" + Kr(i, c[d]) + ";");
|
|
1553
1553
|
else {
|
|
1554
|
-
var p =
|
|
1554
|
+
var p = Me(e, r, c);
|
|
1555
1555
|
switch (i) {
|
|
1556
1556
|
case "animation":
|
|
1557
1557
|
case "animationName": {
|
|
1558
|
-
|
|
1558
|
+
o += sr(i) + ":" + p + ";";
|
|
1559
1559
|
break;
|
|
1560
1560
|
}
|
|
1561
1561
|
default:
|
|
1562
|
-
|
|
1562
|
+
o += i + "{" + p + "}";
|
|
1563
1563
|
}
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
|
-
return
|
|
1566
|
+
return o;
|
|
1567
1567
|
}
|
|
1568
|
-
var Hr = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
|
1568
|
+
var Hr = /label:\s*([^\s;{]+)\s*(;|$)/g, oe;
|
|
1569
1569
|
function jn(e, r, n) {
|
|
1570
1570
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1571
1571
|
return e[0];
|
|
1572
|
-
var
|
|
1573
|
-
|
|
1572
|
+
var o = !0, a = "";
|
|
1573
|
+
oe = void 0;
|
|
1574
1574
|
var i = e[0];
|
|
1575
1575
|
if (i == null || i.raw === void 0)
|
|
1576
|
-
|
|
1576
|
+
o = !1, a += Me(n, r, i);
|
|
1577
1577
|
else {
|
|
1578
|
-
var
|
|
1579
|
-
|
|
1578
|
+
var c = i;
|
|
1579
|
+
a += c[0];
|
|
1580
1580
|
}
|
|
1581
|
-
for (var
|
|
1582
|
-
if (
|
|
1581
|
+
for (var s = 1; s < e.length; s++)
|
|
1582
|
+
if (a += Me(n, r, e[s]), o) {
|
|
1583
1583
|
var d = i;
|
|
1584
|
-
|
|
1584
|
+
a += d[s];
|
|
1585
1585
|
}
|
|
1586
1586
|
Hr.lastIndex = 0;
|
|
1587
|
-
for (var p = "", u; (u = Hr.exec(
|
|
1587
|
+
for (var p = "", u; (u = Hr.exec(a)) !== null; )
|
|
1588
1588
|
p += "-" + u[1];
|
|
1589
|
-
var
|
|
1589
|
+
var g = An(a) + p;
|
|
1590
1590
|
return {
|
|
1591
|
-
name:
|
|
1592
|
-
styles:
|
|
1593
|
-
next:
|
|
1591
|
+
name: g,
|
|
1592
|
+
styles: a,
|
|
1593
|
+
next: oe
|
|
1594
1594
|
};
|
|
1595
1595
|
}
|
|
1596
1596
|
var Ln = function(r) {
|
|
1597
1597
|
return r();
|
|
1598
|
-
}, Dn =
|
|
1598
|
+
}, Dn = se.useInsertionEffect ? se.useInsertionEffect : !1, Yn = Dn || Ln, mt = /* @__PURE__ */ se.createContext(
|
|
1599
1599
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1600
1600
|
// because this module is primarily intended for the browser and node
|
|
1601
1601
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -1608,37 +1608,37 @@ var Ln = function(r) {
|
|
|
1608
1608
|
);
|
|
1609
1609
|
mt.Provider;
|
|
1610
1610
|
var Wn = function(r) {
|
|
1611
|
-
return /* @__PURE__ */ Yt(function(n,
|
|
1612
|
-
var
|
|
1613
|
-
return r(n,
|
|
1611
|
+
return /* @__PURE__ */ Yt(function(n, o) {
|
|
1612
|
+
var a = Wt(mt);
|
|
1613
|
+
return r(n, a, o);
|
|
1614
1614
|
});
|
|
1615
|
-
}, Vn = /* @__PURE__ */
|
|
1616
|
-
var
|
|
1617
|
-
for (var
|
|
1618
|
-
br.call(n,
|
|
1619
|
-
return
|
|
1615
|
+
}, Vn = /* @__PURE__ */ se.createContext({}), br = {}.hasOwnProperty, pr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Un = function(r, n) {
|
|
1616
|
+
var o = {};
|
|
1617
|
+
for (var a in n)
|
|
1618
|
+
br.call(n, a) && (o[a] = n[a]);
|
|
1619
|
+
return o[pr] = r, o;
|
|
1620
1620
|
}, Gn = function(r) {
|
|
1621
|
-
var n = r.cache,
|
|
1622
|
-
return pt(n,
|
|
1623
|
-
return $n(n,
|
|
1621
|
+
var n = r.cache, o = r.serialized, a = r.isStringTag;
|
|
1622
|
+
return pt(n, o, a), Yn(function() {
|
|
1623
|
+
return $n(n, o, a);
|
|
1624
1624
|
}), null;
|
|
1625
1625
|
}, qn = /* @__PURE__ */ Wn(function(e, r, n) {
|
|
1626
|
-
var
|
|
1627
|
-
typeof
|
|
1628
|
-
var
|
|
1629
|
-
typeof e.className == "string" ?
|
|
1630
|
-
var
|
|
1631
|
-
|
|
1626
|
+
var o = e.css;
|
|
1627
|
+
typeof o == "string" && r.registered[o] !== void 0 && (o = r.registered[o]);
|
|
1628
|
+
var a = e[pr], i = [o], c = "";
|
|
1629
|
+
typeof e.className == "string" ? c = kn(r.registered, i, e.className) : e.className != null && (c = e.className + " ");
|
|
1630
|
+
var s = jn(i, void 0, se.useContext(Vn));
|
|
1631
|
+
c += r.key + "-" + s.name;
|
|
1632
1632
|
var d = {};
|
|
1633
1633
|
for (var p in e)
|
|
1634
1634
|
br.call(e, p) && p !== "css" && p !== pr && (d[p] = e[p]);
|
|
1635
|
-
return d.className =
|
|
1635
|
+
return d.className = c, n && (d.ref = n), /* @__PURE__ */ se.createElement(se.Fragment, null, /* @__PURE__ */ se.createElement(Gn, {
|
|
1636
1636
|
cache: r,
|
|
1637
|
-
serialized:
|
|
1638
|
-
isStringTag: typeof
|
|
1639
|
-
}), /* @__PURE__ */
|
|
1640
|
-
}), Bn = qn, Ze = function(r, n,
|
|
1641
|
-
return br.call(n, "css") ? Vr.jsx(Bn, Un(r, n),
|
|
1637
|
+
serialized: s,
|
|
1638
|
+
isStringTag: typeof a == "string"
|
|
1639
|
+
}), /* @__PURE__ */ se.createElement(a, d));
|
|
1640
|
+
}), Bn = qn, Ze = function(r, n, o) {
|
|
1641
|
+
return br.call(n, "css") ? Vr.jsx(Bn, Un(r, n), o) : Vr.jsx(r, n, o);
|
|
1642
1642
|
};
|
|
1643
1643
|
function Jn(e) {
|
|
1644
1644
|
switch (e.toLowerCase()) {
|
|
@@ -1656,13 +1656,13 @@ function zn(e) {
|
|
|
1656
1656
|
function Kn(e = {}) {
|
|
1657
1657
|
return Vt(e);
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1660
|
-
return [nt(),
|
|
1659
|
+
function ho(e) {
|
|
1660
|
+
return [nt(), ot(e)];
|
|
1661
1661
|
}
|
|
1662
1662
|
function Hn() {
|
|
1663
1663
|
return Be.of([fr]);
|
|
1664
1664
|
}
|
|
1665
|
-
const
|
|
1665
|
+
const po = [Hn(), Kn()], Xr = te.theme({
|
|
1666
1666
|
"&": {
|
|
1667
1667
|
backgroundColor: "#ffffff",
|
|
1668
1668
|
color: "#333333"
|
|
@@ -1687,7 +1687,7 @@ const ha = [Hn(), Kn()], Xr = Q.theme({
|
|
|
1687
1687
|
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": {
|
|
1688
1688
|
backgroundColor: "rgba(0, 0, 255, 0.1)"
|
|
1689
1689
|
}
|
|
1690
|
-
}), Xn =
|
|
1690
|
+
}), Xn = te.theme({
|
|
1691
1691
|
"&": {
|
|
1692
1692
|
backgroundColor: "#1e1e1e",
|
|
1693
1693
|
color: "#d4d4d4"
|
|
@@ -1729,15 +1729,16 @@ const Zr = (e) => {
|
|
|
1729
1729
|
readOnlyRanges: []
|
|
1730
1730
|
};
|
|
1731
1731
|
let n = 0;
|
|
1732
|
-
return e.forEach((
|
|
1732
|
+
return e.forEach((o) => {
|
|
1733
1733
|
const {
|
|
1734
|
-
content:
|
|
1734
|
+
content: a,
|
|
1735
1735
|
editable: i
|
|
1736
|
-
} =
|
|
1737
|
-
|
|
1736
|
+
} = o, c = a.replace(/\r\n/g, `
|
|
1737
|
+
`), s = n, d = s + c.length;
|
|
1738
|
+
r.value += a, i || r.readOnlyRanges.push({
|
|
1738
1739
|
start: s,
|
|
1739
|
-
end:
|
|
1740
|
-
}), n =
|
|
1740
|
+
end: d
|
|
1741
|
+
}), n = d;
|
|
1741
1742
|
}), r;
|
|
1742
1743
|
}, ze = Ut.define(), Qr = Gt.define({
|
|
1743
1744
|
create() {
|
|
@@ -1751,7 +1752,7 @@ const Zr = (e) => {
|
|
|
1751
1752
|
return r.docChanged, e;
|
|
1752
1753
|
},
|
|
1753
1754
|
provide(e) {
|
|
1754
|
-
return
|
|
1755
|
+
return te.decorations.from(e);
|
|
1755
1756
|
}
|
|
1756
1757
|
});
|
|
1757
1758
|
function gt(e) {
|
|
@@ -1780,79 +1781,79 @@ function Qn(e) {
|
|
|
1780
1781
|
Be.of([{
|
|
1781
1782
|
key: "Enter",
|
|
1782
1783
|
run: (n) => {
|
|
1783
|
-
const
|
|
1784
|
-
from:
|
|
1784
|
+
const o = n.state.selection.main, {
|
|
1785
|
+
from: a,
|
|
1785
1786
|
to: i
|
|
1786
|
-
} =
|
|
1787
|
-
if (
|
|
1788
|
-
for (const
|
|
1789
|
-
if (
|
|
1787
|
+
} = o;
|
|
1788
|
+
if (a !== i) {
|
|
1789
|
+
for (const s of r)
|
|
1790
|
+
if (a < s.end && i > s.start)
|
|
1790
1791
|
return !1;
|
|
1791
1792
|
}
|
|
1792
|
-
let
|
|
1793
|
-
for (const
|
|
1794
|
-
if (
|
|
1795
|
-
|
|
1793
|
+
let c = !1;
|
|
1794
|
+
for (const s of r)
|
|
1795
|
+
if (a > s.start && a < s.end) {
|
|
1796
|
+
c = !0;
|
|
1796
1797
|
break;
|
|
1797
1798
|
}
|
|
1798
|
-
return
|
|
1799
|
+
return c ? !1 : (n.dispatch({
|
|
1799
1800
|
changes: {
|
|
1800
|
-
from:
|
|
1801
|
+
from: a,
|
|
1801
1802
|
to: i,
|
|
1802
1803
|
insert: `
|
|
1803
1804
|
`
|
|
1804
1805
|
},
|
|
1805
1806
|
selection: {
|
|
1806
|
-
anchor:
|
|
1807
|
+
anchor: a + 1
|
|
1807
1808
|
}
|
|
1808
1809
|
}), !0);
|
|
1809
1810
|
}
|
|
1810
1811
|
}]),
|
|
1811
1812
|
// 添加事务过滤器,阻止只读区域的编辑
|
|
1812
|
-
|
|
1813
|
+
le.transactionFilter.of((n) => {
|
|
1813
1814
|
if (!n.docChanged || n.isUserEvent("input.type.Enter") || n.isUserEvent("input.enter"))
|
|
1814
1815
|
return n;
|
|
1815
|
-
let
|
|
1816
|
-
return n.changes.iterChanges((
|
|
1817
|
-
if (!(n.newDoc.sliceString(
|
|
1818
|
-
` &&
|
|
1816
|
+
let o = !1;
|
|
1817
|
+
return n.changes.iterChanges((a, i, c, s) => {
|
|
1818
|
+
if (!(n.newDoc.sliceString(c, s) === `
|
|
1819
|
+
` && a === i)) {
|
|
1819
1820
|
for (const u of r)
|
|
1820
|
-
if (
|
|
1821
|
-
if (
|
|
1822
|
-
|
|
1821
|
+
if (a === i) {
|
|
1822
|
+
if (a > u.start && a < u.end) {
|
|
1823
|
+
o = !0;
|
|
1823
1824
|
break;
|
|
1824
1825
|
}
|
|
1825
1826
|
} else if (
|
|
1826
1827
|
// 删除或替换操作
|
|
1827
|
-
|
|
1828
|
-
|
|
1828
|
+
a < u.end && i > u.start || // 处理边界情况:删除操作正好落在只读区域的开始或结束位置
|
|
1829
|
+
a === u.start && i > a || i === u.end && a < i
|
|
1829
1830
|
) {
|
|
1830
|
-
|
|
1831
|
+
o = !0;
|
|
1831
1832
|
break;
|
|
1832
1833
|
}
|
|
1833
1834
|
}
|
|
1834
|
-
}),
|
|
1835
|
+
}), o ? [] : n;
|
|
1835
1836
|
}),
|
|
1836
1837
|
// 动态更新只读区域的装饰
|
|
1837
|
-
|
|
1838
|
+
te.updateListener.of((n) => {
|
|
1838
1839
|
if (n.docChanged) {
|
|
1839
|
-
const
|
|
1840
|
-
!
|
|
1841
|
-
effects: ze.of(
|
|
1840
|
+
const o = ro(r, n);
|
|
1841
|
+
!eo(r, o) ? (r = o, Er.set(n.view, o), n.view.dispatch({
|
|
1842
|
+
effects: ze.of(o)
|
|
1842
1843
|
})) : n.view.dispatch({
|
|
1843
|
-
effects: ze.of(
|
|
1844
|
+
effects: ze.of(o)
|
|
1844
1845
|
});
|
|
1845
1846
|
}
|
|
1846
1847
|
}),
|
|
1847
1848
|
// 添加一个延迟执行的额外更新,以确保在文档变化后能重新计算语法高亮
|
|
1848
|
-
|
|
1849
|
+
te.updateListener.of((n) => {
|
|
1849
1850
|
n.docChanged && setTimeout(() => {
|
|
1850
1851
|
n.view.state.field(Qr, !1) && n.view.dispatch({});
|
|
1851
1852
|
}, 10);
|
|
1852
1853
|
})
|
|
1853
1854
|
];
|
|
1854
1855
|
}
|
|
1855
|
-
function
|
|
1856
|
+
function eo(e, r) {
|
|
1856
1857
|
if (e.length !== r.length)
|
|
1857
1858
|
return !1;
|
|
1858
1859
|
for (let n = 0; n < e.length; n++)
|
|
@@ -1860,48 +1861,48 @@ function ea(e, r) {
|
|
|
1860
1861
|
return !1;
|
|
1861
1862
|
return !0;
|
|
1862
1863
|
}
|
|
1863
|
-
function
|
|
1864
|
-
var
|
|
1864
|
+
function ro(e, r) {
|
|
1865
|
+
var a;
|
|
1865
1866
|
if (!r.docChanged)
|
|
1866
1867
|
return e;
|
|
1867
1868
|
let n = !1;
|
|
1868
|
-
const
|
|
1869
|
-
const
|
|
1869
|
+
const o = e.map((i) => {
|
|
1870
|
+
const c = {
|
|
1870
1871
|
...i
|
|
1871
1872
|
};
|
|
1872
|
-
return r.changes.iterChanges((
|
|
1873
|
-
const
|
|
1874
|
-
if (
|
|
1875
|
-
|
|
1873
|
+
return r.changes.iterChanges((s, d, p, u) => {
|
|
1874
|
+
const g = u - p, _ = d - s, S = g - _;
|
|
1875
|
+
if (s === 0 && (n = !0), s === 0 && g > 0 && i.start === 0) {
|
|
1876
|
+
c.start = g, c.end += S;
|
|
1876
1877
|
return;
|
|
1877
1878
|
}
|
|
1878
1879
|
if (d <= i.start)
|
|
1879
|
-
|
|
1880
|
-
else if (
|
|
1881
|
-
|
|
1882
|
-
else if (!(
|
|
1883
|
-
if (
|
|
1884
|
-
const
|
|
1885
|
-
|
|
1880
|
+
c.start += S, c.end += S;
|
|
1881
|
+
else if (s >= i.start && s < i.end && d >= i.end)
|
|
1882
|
+
c.end = s;
|
|
1883
|
+
else if (!(s >= i.start && d <= i.end)) {
|
|
1884
|
+
if (s < i.end && d > i.end) {
|
|
1885
|
+
const b = i.end - s;
|
|
1886
|
+
c.end = s + Math.min(b, g);
|
|
1886
1887
|
}
|
|
1887
1888
|
}
|
|
1888
|
-
}),
|
|
1889
|
+
}), c;
|
|
1889
1890
|
});
|
|
1890
|
-
if (n &&
|
|
1891
|
-
const i = ((
|
|
1892
|
-
let
|
|
1893
|
-
for (let
|
|
1894
|
-
|
|
1895
|
-
|
|
1891
|
+
if (n && o.length > 0) {
|
|
1892
|
+
const i = ((a = r.changes.newDoc) == null ? void 0 : a.toString()) || "";
|
|
1893
|
+
let c = 0;
|
|
1894
|
+
for (let s = 0; s < i.length && /\s/.test(i[s]); s++)
|
|
1895
|
+
c++;
|
|
1896
|
+
o[0].start === 0 && c > 0 && (o[0].start = c);
|
|
1896
1897
|
}
|
|
1897
|
-
return
|
|
1898
|
+
return o.filter((i) => i.start < i.end);
|
|
1898
1899
|
}
|
|
1899
|
-
function
|
|
1900
|
+
function to(e) {
|
|
1900
1901
|
return Er.get(e) || [];
|
|
1901
1902
|
}
|
|
1902
|
-
function
|
|
1903
|
-
const n = r.map((
|
|
1904
|
-
...
|
|
1903
|
+
function ce(e, r) {
|
|
1904
|
+
const n = r.map((o) => ({
|
|
1905
|
+
...o
|
|
1905
1906
|
}));
|
|
1906
1907
|
Er.set(e, n), e.dispatch({
|
|
1907
1908
|
effects: ze.of(n)
|
|
@@ -1913,37 +1914,37 @@ const Sr = ({
|
|
|
1913
1914
|
value: e,
|
|
1914
1915
|
onChange: r,
|
|
1915
1916
|
extensions: n = [],
|
|
1916
|
-
height:
|
|
1917
|
-
disabled:
|
|
1917
|
+
height: o = "300px",
|
|
1918
|
+
disabled: a = !1,
|
|
1918
1919
|
className: i = "",
|
|
1919
|
-
style:
|
|
1920
|
-
placeholder:
|
|
1920
|
+
style: c = {},
|
|
1921
|
+
placeholder: s = "",
|
|
1921
1922
|
onEditorViewCreated: d
|
|
1922
1923
|
}) => {
|
|
1923
|
-
const p =
|
|
1924
|
+
const p = de(null), u = de();
|
|
1924
1925
|
return ie(() => {
|
|
1925
1926
|
if (!p.current) return;
|
|
1926
|
-
const
|
|
1927
|
-
if (
|
|
1928
|
-
const
|
|
1929
|
-
value:
|
|
1927
|
+
const g = [Be.of([fr]), te.lineWrapping, Lr(Dr), le.allowMultipleSelections.of(!0), s ? jr(s) : [], te.updateListener.of((b) => {
|
|
1928
|
+
if (b.docChanged && r) {
|
|
1929
|
+
const x = {
|
|
1930
|
+
value: b.state.doc.toString(),
|
|
1930
1931
|
readOnlyRanges: []
|
|
1931
1932
|
// 基础编辑器没有只读区域逻辑,由特定编辑器实现
|
|
1932
1933
|
};
|
|
1933
|
-
r(
|
|
1934
|
+
r(x);
|
|
1934
1935
|
}
|
|
1935
1936
|
})];
|
|
1936
|
-
|
|
1937
|
-
const
|
|
1937
|
+
a && g.push(le.readOnly.of(!0));
|
|
1938
|
+
const _ = le.create({
|
|
1938
1939
|
doc: e,
|
|
1939
|
-
extensions: [...
|
|
1940
|
-
}),
|
|
1941
|
-
state:
|
|
1940
|
+
extensions: [...g, ...n]
|
|
1941
|
+
}), S = new te({
|
|
1942
|
+
state: _,
|
|
1942
1943
|
parent: p.current
|
|
1943
1944
|
});
|
|
1944
|
-
return u.current =
|
|
1945
|
-
var
|
|
1946
|
-
(
|
|
1945
|
+
return u.current = S, d && d(S), () => {
|
|
1946
|
+
var b;
|
|
1947
|
+
(b = u.current) == null || b.destroy();
|
|
1947
1948
|
};
|
|
1948
1949
|
}, []), ie(() => {
|
|
1949
1950
|
u.current && e !== u.current.state.doc.toString() && u.current.dispatch({
|
|
@@ -1955,238 +1956,261 @@ const Sr = ({
|
|
|
1955
1956
|
});
|
|
1956
1957
|
}, [e]), ie(() => {
|
|
1957
1958
|
if (!u.current || !p.current) return;
|
|
1958
|
-
const
|
|
1959
|
+
const g = u.current.state.doc.toString();
|
|
1959
1960
|
u.current.destroy();
|
|
1960
|
-
const
|
|
1961
|
-
if (
|
|
1962
|
-
const
|
|
1963
|
-
value:
|
|
1961
|
+
const _ = [Be.of([fr]), te.lineWrapping, Lr(Dr), le.allowMultipleSelections.of(!0), s ? jr(s) : [], te.updateListener.of((x) => {
|
|
1962
|
+
if (x.docChanged && r) {
|
|
1963
|
+
const D = {
|
|
1964
|
+
value: x.state.doc.toString(),
|
|
1964
1965
|
readOnlyRanges: []
|
|
1965
1966
|
// 基础编辑器没有只读区域逻辑,由特定编辑器实现
|
|
1966
1967
|
};
|
|
1967
|
-
r(
|
|
1968
|
+
r(D);
|
|
1968
1969
|
}
|
|
1969
1970
|
})];
|
|
1970
|
-
|
|
1971
|
-
const
|
|
1972
|
-
doc:
|
|
1973
|
-
extensions: [...
|
|
1974
|
-
}),
|
|
1975
|
-
state:
|
|
1971
|
+
a && _.push(le.readOnly.of(!0));
|
|
1972
|
+
const S = le.create({
|
|
1973
|
+
doc: g,
|
|
1974
|
+
extensions: [..._, ...n]
|
|
1975
|
+
}), b = new te({
|
|
1976
|
+
state: S,
|
|
1976
1977
|
parent: p.current
|
|
1977
1978
|
});
|
|
1978
|
-
u.current =
|
|
1979
|
-
}, [
|
|
1980
|
-
height:
|
|
1981
|
-
...
|
|
1979
|
+
u.current = b, d && d(b);
|
|
1980
|
+
}, [a]), /* @__PURE__ */ Ze("div", { ref: p, className: `senyao-editor ${a ? "disabled" : ""} ${i}`, style: {
|
|
1981
|
+
height: o,
|
|
1982
|
+
...c
|
|
1982
1983
|
} });
|
|
1983
|
-
},
|
|
1984
|
+
}, vo = ({
|
|
1984
1985
|
value: e,
|
|
1985
1986
|
onChange: r,
|
|
1986
1987
|
language: n = "json",
|
|
1987
|
-
extensions:
|
|
1988
|
-
theme:
|
|
1988
|
+
extensions: o = [],
|
|
1989
|
+
theme: a = "light",
|
|
1989
1990
|
...i
|
|
1990
1991
|
}) => {
|
|
1991
|
-
const
|
|
1992
|
-
const
|
|
1993
|
-
return [
|
|
1994
|
-
}, [n,
|
|
1995
|
-
return /* @__PURE__ */ Ze(Sr, { value: e, onChange: r, extensions:
|
|
1996
|
-
},
|
|
1992
|
+
const c = vr(() => {
|
|
1993
|
+
const s = zn(n) ? Jn(n) : [], d = Zn(a);
|
|
1994
|
+
return [s, d, ...o];
|
|
1995
|
+
}, [n, o, a]);
|
|
1996
|
+
return /* @__PURE__ */ Ze(Sr, { value: e, onChange: r, extensions: c, ...i });
|
|
1997
|
+
}, mo = ({
|
|
1997
1998
|
value: e,
|
|
1998
1999
|
onChange: r,
|
|
1999
2000
|
extensions: n = [],
|
|
2000
|
-
readOnlyRanges:
|
|
2001
|
-
manageReadOnlyRanges:
|
|
2001
|
+
readOnlyRanges: o = [],
|
|
2002
|
+
manageReadOnlyRanges: a = !0,
|
|
2002
2003
|
...i
|
|
2003
2004
|
}) => {
|
|
2004
|
-
const
|
|
2005
|
+
const c = de(null), [s, d] = Nr(o), p = de(e), [u, g] = Nr(null), _ = de(!1), S = de(/* @__PURE__ */ new Map()), b = de(!1);
|
|
2005
2006
|
ie(() => {
|
|
2006
|
-
if (
|
|
2007
|
-
const
|
|
2008
|
-
let
|
|
2009
|
-
for (let
|
|
2010
|
-
const
|
|
2011
|
-
|
|
2012
|
-
content: e.substring(
|
|
2007
|
+
if (a && o.length > 0 && !u) {
|
|
2008
|
+
const v = [];
|
|
2009
|
+
let R = 0;
|
|
2010
|
+
for (let O = 0; O < o.length; O++) {
|
|
2011
|
+
const P = o[O];
|
|
2012
|
+
P.start > R && v.push({
|
|
2013
|
+
content: e.substring(R, P.start),
|
|
2013
2014
|
editable: !0
|
|
2014
|
-
}),
|
|
2015
|
-
content: e.substring(
|
|
2015
|
+
}), v.push({
|
|
2016
|
+
content: e.substring(P.start, P.end),
|
|
2016
2017
|
editable: !1
|
|
2017
|
-
}),
|
|
2018
|
+
}), R = P.end;
|
|
2018
2019
|
}
|
|
2019
|
-
|
|
2020
|
-
content: e.substring(
|
|
2020
|
+
R < e.length && v.push({
|
|
2021
|
+
content: e.substring(R),
|
|
2021
2022
|
editable: !0
|
|
2022
|
-
}),
|
|
2023
|
+
}), g(v);
|
|
2023
2024
|
}
|
|
2024
|
-
}, [
|
|
2025
|
+
}, [a, o, e, u]), ie(() => {
|
|
2025
2026
|
if (e) {
|
|
2026
|
-
const
|
|
2027
|
-
|
|
2028
|
-
const
|
|
2029
|
-
|
|
2030
|
-
}),
|
|
2027
|
+
const v = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], R = /* @__PURE__ */ new Map();
|
|
2028
|
+
v.forEach((O) => {
|
|
2029
|
+
const P = e.indexOf(O);
|
|
2030
|
+
P >= 0 && R.set(O, P);
|
|
2031
|
+
}), S.current = R;
|
|
2031
2032
|
}
|
|
2032
2033
|
}, []);
|
|
2033
|
-
const
|
|
2034
|
-
const
|
|
2035
|
-
return
|
|
2036
|
-
}, [n,
|
|
2037
|
-
const
|
|
2038
|
-
return
|
|
2039
|
-
}, []),
|
|
2040
|
-
if (!
|
|
2041
|
-
const
|
|
2042
|
-
let
|
|
2043
|
-
for (let
|
|
2044
|
-
const
|
|
2045
|
-
if (!
|
|
2046
|
-
const
|
|
2047
|
-
|
|
2048
|
-
...
|
|
2049
|
-
content:
|
|
2050
|
-
}),
|
|
2034
|
+
const x = vr(() => {
|
|
2035
|
+
const v = [rt()];
|
|
2036
|
+
return s.length > 0 && v.push(Qn(s)), [...v, ...n];
|
|
2037
|
+
}, [n, s]), D = re((v, R, O = 0) => {
|
|
2038
|
+
const P = v.indexOf(R, O);
|
|
2039
|
+
return P >= 0 ? P : null;
|
|
2040
|
+
}, []), w = re((v, R) => {
|
|
2041
|
+
if (!a || !v || v.length === 0) return v;
|
|
2042
|
+
const O = [...v];
|
|
2043
|
+
let P = 0;
|
|
2044
|
+
for (let Y = 0; Y < v.length; Y++) {
|
|
2045
|
+
const B = v[Y];
|
|
2046
|
+
if (!B.editable) {
|
|
2047
|
+
const Q = D(R, B.content, P);
|
|
2048
|
+
Q !== null && (Y > 0 && v[Y - 1].editable && Q > P && (O[Y - 1] = {
|
|
2049
|
+
...O[Y - 1],
|
|
2050
|
+
content: R.substring(P, Q)
|
|
2051
|
+
}), P = Q + B.content.length);
|
|
2051
2052
|
}
|
|
2052
2053
|
}
|
|
2053
|
-
const
|
|
2054
|
-
return
|
|
2055
|
-
...
|
|
2056
|
-
content:
|
|
2057
|
-
}),
|
|
2058
|
-
}, [
|
|
2059
|
-
let
|
|
2060
|
-
return
|
|
2061
|
-
const
|
|
2062
|
-
|
|
2063
|
-
}),
|
|
2064
|
-
}, []),
|
|
2065
|
-
if (!
|
|
2066
|
-
const
|
|
2067
|
-
let
|
|
2068
|
-
for (const
|
|
2069
|
-
const
|
|
2070
|
-
if (
|
|
2071
|
-
|
|
2054
|
+
const W = v[v.length - 1];
|
|
2055
|
+
return W.editable && P < R.length && (O[v.length - 1] = {
|
|
2056
|
+
...W,
|
|
2057
|
+
content: R.substring(P)
|
|
2058
|
+
}), O;
|
|
2059
|
+
}, [a, D]), E = re((v) => {
|
|
2060
|
+
let R = !1;
|
|
2061
|
+
return S.current.forEach((O, P) => {
|
|
2062
|
+
const W = v.indexOf(P);
|
|
2063
|
+
W >= 0 && Math.abs(W - O) > 0 && (S.current.set(P, W), W > O && (O === 0 || O < 15) && (R = !0));
|
|
2064
|
+
}), R;
|
|
2065
|
+
}, []), k = re(() => {
|
|
2066
|
+
if (!c.current) return;
|
|
2067
|
+
const v = c.current, R = v.state.doc.toString(), O = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], P = v.state.selection;
|
|
2068
|
+
let W = !1;
|
|
2069
|
+
for (const Y of O) {
|
|
2070
|
+
const B = R.indexOf(Y);
|
|
2071
|
+
if (B >= 0) {
|
|
2072
|
+
v.dispatch({
|
|
2072
2073
|
selection: {
|
|
2073
|
-
anchor:
|
|
2074
|
-
head:
|
|
2074
|
+
anchor: B,
|
|
2075
|
+
head: B + Y.length
|
|
2075
2076
|
},
|
|
2076
2077
|
scrollIntoView: !1
|
|
2077
|
-
}),
|
|
2078
|
+
}), W = !0;
|
|
2078
2079
|
break;
|
|
2079
2080
|
}
|
|
2080
2081
|
}
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
selection:
|
|
2082
|
+
W && setTimeout(() => {
|
|
2083
|
+
v.dom && document.contains(v.dom) && v.dispatch({
|
|
2084
|
+
selection: P,
|
|
2084
2085
|
scrollIntoView: !1
|
|
2085
2086
|
});
|
|
2086
2087
|
}, 10);
|
|
2087
|
-
}, []),
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2088
|
+
}, []), j = re(() => {
|
|
2089
|
+
if (!c.current) return;
|
|
2090
|
+
const v = c.current;
|
|
2091
|
+
s.length > 0 && (ce(v, []), setTimeout(() => {
|
|
2092
|
+
v.dom && document.contains(v.dom) && (ce(v, s), setTimeout(() => {
|
|
2093
|
+
v.dom && document.contains(v.dom) && v.dispatch({});
|
|
2094
|
+
}, 10));
|
|
2095
|
+
}, 10));
|
|
2096
|
+
}, [s]), l = re((v) => {
|
|
2097
|
+
const R = v.value, O = p.current;
|
|
2098
|
+
O !== R && R.length > O.length && !O.startsWith(R.substring(0, 5)) && R.includes(O.substring(0, 10)) && (_.current = !0, E(R) && setTimeout(() => {
|
|
2099
|
+
k();
|
|
2100
|
+
}, 10)), p.current = R;
|
|
2101
|
+
const P = c.current ? to(c.current) : s;
|
|
2102
|
+
if (a && u) {
|
|
2103
|
+
const W = w(u, R);
|
|
2104
|
+
g(W);
|
|
2096
2105
|
const {
|
|
2097
|
-
readOnlyRanges:
|
|
2098
|
-
} = Zr(
|
|
2099
|
-
d(
|
|
2100
|
-
value:
|
|
2101
|
-
readOnlyRanges:
|
|
2106
|
+
readOnlyRanges: Y
|
|
2107
|
+
} = Zr(W);
|
|
2108
|
+
d(Y), c.current && ce(c.current, Y), r && r({
|
|
2109
|
+
value: R,
|
|
2110
|
+
readOnlyRanges: Y
|
|
2102
2111
|
});
|
|
2103
2112
|
} else
|
|
2104
2113
|
r && r({
|
|
2105
|
-
value:
|
|
2106
|
-
readOnlyRanges:
|
|
2114
|
+
value: R,
|
|
2115
|
+
readOnlyRanges: P
|
|
2107
2116
|
});
|
|
2108
|
-
}, [r,
|
|
2117
|
+
}, [r, a, u, s, w, E, k]);
|
|
2109
2118
|
ie(() => {
|
|
2110
|
-
!
|
|
2111
|
-
}, [
|
|
2112
|
-
if (
|
|
2119
|
+
!a && JSON.stringify(o) !== JSON.stringify(s) && (d(o), c.current && ce(c.current, o));
|
|
2120
|
+
}, [o, s, a]), ie(() => {
|
|
2121
|
+
if (a && u) {
|
|
2113
2122
|
const {
|
|
2114
|
-
readOnlyRanges:
|
|
2123
|
+
readOnlyRanges: v
|
|
2115
2124
|
} = Zr(u);
|
|
2116
|
-
JSON.stringify(
|
|
2117
|
-
}
|
|
2118
|
-
}, [u, c, o]), ie(() => {
|
|
2119
|
-
s.current && x.current && (x.current = !1, s.current.dispatch({}));
|
|
2120
|
-
}, [e]);
|
|
2121
|
-
const L = ee((m) => {
|
|
2122
|
-
if (s.current = m, c.length > 0 && Ve(m, c), e) {
|
|
2123
|
-
const v = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], P = /* @__PURE__ */ new Map();
|
|
2124
|
-
v.forEach((O) => {
|
|
2125
|
-
const D = e.indexOf(O);
|
|
2126
|
-
D >= 0 && P.set(O, D);
|
|
2127
|
-
}), R.current = P;
|
|
2125
|
+
JSON.stringify(v) !== JSON.stringify(s) && (d(v), c.current && ce(c.current, v));
|
|
2128
2126
|
}
|
|
2129
|
-
}, [
|
|
2130
|
-
|
|
2131
|
-
|
|
2127
|
+
}, [u, s, a]), ie(() => {
|
|
2128
|
+
c.current && _.current && (_.current = !1, c.current.dispatch({}));
|
|
2129
|
+
}, [e]), ie(() => {
|
|
2130
|
+
c.current && s.length > 0 && !b.current && (b.current = !0, setTimeout(() => {
|
|
2131
|
+
j();
|
|
2132
|
+
}, 50), setTimeout(() => {
|
|
2133
|
+
j();
|
|
2134
|
+
}, 200));
|
|
2135
|
+
}, [j, s]);
|
|
2136
|
+
const U = re((v) => {
|
|
2137
|
+
if (c.current = v, s.length > 0 && (ce(v, s), setTimeout(() => {
|
|
2138
|
+
ce(v, []), setTimeout(() => {
|
|
2139
|
+
ce(v, s);
|
|
2140
|
+
}, 10);
|
|
2141
|
+
}, 50)), e) {
|
|
2142
|
+
const R = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], O = /* @__PURE__ */ new Map();
|
|
2143
|
+
R.forEach((P) => {
|
|
2144
|
+
const W = e.indexOf(P);
|
|
2145
|
+
W >= 0 && O.set(P, W);
|
|
2146
|
+
}), S.current = O;
|
|
2147
|
+
}
|
|
2148
|
+
}, [s, e]), $ = re((v) => {
|
|
2149
|
+
l(v), c.current && setTimeout(() => {
|
|
2150
|
+
c.current && c.current.dispatch({});
|
|
2132
2151
|
}, 0);
|
|
2133
|
-
}, [
|
|
2134
|
-
return /* @__PURE__ */ Ze(Sr, { value: e, onChange:
|
|
2135
|
-
},
|
|
2152
|
+
}, [l]);
|
|
2153
|
+
return /* @__PURE__ */ Ze(Sr, { value: e, onChange: $, extensions: x, onEditorViewCreated: U, ...i });
|
|
2154
|
+
}, go = ({
|
|
2136
2155
|
value: e,
|
|
2137
2156
|
onChange: r,
|
|
2138
2157
|
extensions: n = [],
|
|
2139
|
-
enableFormatting:
|
|
2140
|
-
...
|
|
2158
|
+
enableFormatting: o = !0,
|
|
2159
|
+
...a
|
|
2141
2160
|
}) => {
|
|
2142
|
-
const i =
|
|
2143
|
-
const u = p.state.doc.toString(),
|
|
2161
|
+
const i = re((p) => {
|
|
2162
|
+
const u = p.state.doc.toString(), g = [];
|
|
2144
2163
|
try {
|
|
2145
2164
|
JSON.parse(u);
|
|
2146
|
-
} catch (
|
|
2147
|
-
|
|
2165
|
+
} catch (_) {
|
|
2166
|
+
_ instanceof Error && g.push({
|
|
2148
2167
|
from: 0,
|
|
2149
2168
|
to: u.length,
|
|
2150
|
-
message:
|
|
2169
|
+
message: _.message,
|
|
2151
2170
|
severity: "error"
|
|
2152
2171
|
});
|
|
2153
2172
|
}
|
|
2154
|
-
return
|
|
2155
|
-
}, []),
|
|
2173
|
+
return g;
|
|
2174
|
+
}, []), c = re((p) => {
|
|
2156
2175
|
try {
|
|
2157
2176
|
const u = JSON.parse(p);
|
|
2158
2177
|
return JSON.stringify(u, null, 2);
|
|
2159
2178
|
} catch {
|
|
2160
2179
|
return p;
|
|
2161
2180
|
}
|
|
2162
|
-
}, []),
|
|
2163
|
-
if (
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2181
|
+
}, []), s = re((p) => {
|
|
2182
|
+
if (r) {
|
|
2183
|
+
if (o) {
|
|
2184
|
+
const u = c(p.value);
|
|
2185
|
+
if (u !== p.value) {
|
|
2186
|
+
r({
|
|
2187
|
+
value: u,
|
|
2188
|
+
readOnlyRanges: p.readOnlyRanges
|
|
2189
|
+
});
|
|
2190
|
+
return;
|
|
2191
|
+
}
|
|
2168
2192
|
}
|
|
2193
|
+
r(p);
|
|
2169
2194
|
}
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
return /* @__PURE__ */ Ze(Sr, { value: e, onChange: c, extensions: d, ...o });
|
|
2195
|
+
}, [o, c, r]), d = vr(() => [tt(), nt(), ot(i), ...n], [i, n]);
|
|
2196
|
+
return /* @__PURE__ */ Ze(Sr, { value: e, onChange: s, extensions: d, ...a });
|
|
2173
2197
|
};
|
|
2174
2198
|
export {
|
|
2175
|
-
|
|
2199
|
+
vo as Editor,
|
|
2176
2200
|
Sr as GenericEditor,
|
|
2177
|
-
|
|
2178
|
-
|
|
2201
|
+
go as JSONEditor,
|
|
2202
|
+
mo as SQLEditor,
|
|
2179
2203
|
Zr as blocksToEditorData,
|
|
2180
|
-
|
|
2204
|
+
po as commonExtensions,
|
|
2181
2205
|
Kn as createAutocompletionExtension,
|
|
2182
2206
|
Hn as createKeymapExtension,
|
|
2183
|
-
|
|
2207
|
+
ho as createLintExtension,
|
|
2184
2208
|
Xn as darkTheme,
|
|
2185
|
-
|
|
2209
|
+
to as getCurrentReadOnlyRanges,
|
|
2186
2210
|
Jn as getLanguageExtension,
|
|
2187
2211
|
Zn as getThemeExtension,
|
|
2188
2212
|
zn as isSupportedLanguage,
|
|
2189
2213
|
Xr as lightTheme,
|
|
2190
2214
|
Qn as readOnlyRanges,
|
|
2191
|
-
|
|
2215
|
+
ce as updateReadOnlyRanges
|
|
2192
2216
|
};
|