@senyao-design-system/editor 0.0.13 → 0.0.14
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.js +17 -17
- package/dist/index.mjs +791 -785
- package/package.json +46 -47
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import Kr, { forwardRef as rt, useContext as lo, useRef as
|
|
1
|
+
import * as Ee from "react";
|
|
2
|
+
import Kr, { forwardRef as rt, useContext as lo, useRef as ue, useEffect as ge, useImperativeHandle as Gr, useMemo as ht, useState as Nt, useCallback as le } from "react";
|
|
3
3
|
import { sql as Qr } from "@codemirror/lang-sql";
|
|
4
4
|
import { json as Ht } from "@codemirror/lang-json";
|
|
5
|
-
import { keymap as
|
|
5
|
+
import { keymap as Re, EditorView as q, Decoration as Q, ViewPlugin as Xr, getPanel as dt, showPanel as Zr, runScopeHandlers as uo, placeholder as Er, lineNumbers as Sr } from "@codemirror/view";
|
|
6
6
|
import { indentWithTab as Wt, history as Cr, historyKeymap as Rr, insertNewlineAndIndent as wr } from "@codemirror/commands";
|
|
7
7
|
import { autocompletion as en, closeBrackets as fo } from "@codemirror/autocomplete";
|
|
8
|
-
import { lintGutter as ho, linter as
|
|
9
|
-
import { HighlightStyle as tn, syntaxHighlighting as
|
|
10
|
-
import { tags as
|
|
11
|
-
import { EditorState as
|
|
8
|
+
import { lintGutter as ho, linter as go } from "@codemirror/lint";
|
|
9
|
+
import { HighlightStyle as tn, syntaxHighlighting as gt, syntaxTree as Kt, defaultHighlightStyle as Tr, bracketMatching as mo, codeFolding as po, foldGutter as yo, foldKeymap as vo } from "@codemirror/language";
|
|
10
|
+
import { tags as W } from "@lezer/highlight";
|
|
11
|
+
import { EditorState as be, StateEffect as qe, StateField as St, Facet as rn, Prec as nn, EditorSelection as de, combineConfig as on, codePointAt as xo, fromCodePoint as bo, codePointSize as Eo, RangeSetBuilder as sn, CharCategory as fe, findClusterBreak as an, Compartment as So } from "@codemirror/state";
|
|
12
12
|
var jt = { exports: {} }, He = {};
|
|
13
13
|
/**
|
|
14
14
|
* @license React
|
|
@@ -25,11 +25,11 @@ function Co() {
|
|
|
25
25
|
kr = 1;
|
|
26
26
|
var e = Kr, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
27
27
|
function a(c, l, d) {
|
|
28
|
-
var f,
|
|
29
|
-
d !== void 0 && (k = "" + d), l.key !== void 0 && (k = "" + l.key), l.ref !== void 0 && (
|
|
30
|
-
for (f in l) n.call(l, f) && !i.hasOwnProperty(f) && (
|
|
31
|
-
if (c && c.defaultProps) for (f in l = c.defaultProps, l)
|
|
32
|
-
return { $$typeof: t, type: c, key: k, ref:
|
|
28
|
+
var f, g = {}, k = null, y = null;
|
|
29
|
+
d !== void 0 && (k = "" + d), l.key !== void 0 && (k = "" + l.key), l.ref !== void 0 && (y = l.ref);
|
|
30
|
+
for (f in l) n.call(l, f) && !i.hasOwnProperty(f) && (g[f] = l[f]);
|
|
31
|
+
if (c && c.defaultProps) for (f in l = c.defaultProps, l) g[f] === void 0 && (g[f] = l[f]);
|
|
32
|
+
return { $$typeof: t, type: c, key: k, ref: y, props: g, _owner: o.current };
|
|
33
33
|
}
|
|
34
34
|
return He.Fragment = r, He.jsx = a, He.jsxs = a, He;
|
|
35
35
|
}
|
|
@@ -46,8 +46,8 @@ var Ke = {};
|
|
|
46
46
|
var _r;
|
|
47
47
|
function Ro() {
|
|
48
48
|
return _r || (_r = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
-
var e = Kr, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"),
|
|
50
|
-
function
|
|
49
|
+
var e = Kr, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), C = Symbol.iterator, v = "@@iterator";
|
|
50
|
+
function x(s) {
|
|
51
51
|
if (s === null || typeof s != "object")
|
|
52
52
|
return null;
|
|
53
53
|
var u = C && s[C] || s[v];
|
|
@@ -56,41 +56,41 @@ function Ro() {
|
|
|
56
56
|
var R = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
57
57
|
function b(s) {
|
|
58
58
|
{
|
|
59
|
-
for (var u = arguments.length,
|
|
60
|
-
|
|
61
|
-
w("error", s,
|
|
59
|
+
for (var u = arguments.length, m = new Array(u > 1 ? u - 1 : 0), T = 1; T < u; T++)
|
|
60
|
+
m[T - 1] = arguments[T];
|
|
61
|
+
w("error", s, m);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function w(s, u,
|
|
64
|
+
function w(s, u, m) {
|
|
65
65
|
{
|
|
66
|
-
var T = R.ReactDebugCurrentFrame,
|
|
67
|
-
|
|
68
|
-
var
|
|
69
|
-
return String(
|
|
66
|
+
var T = R.ReactDebugCurrentFrame, L = T.getStackAddendum();
|
|
67
|
+
L !== "" && (u += "%s", m = m.concat([L]));
|
|
68
|
+
var j = m.map(function(O) {
|
|
69
|
+
return String(O);
|
|
70
70
|
});
|
|
71
|
-
|
|
71
|
+
j.unshift("Warning: " + u), Function.prototype.apply.call(console[s], console, j);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
var
|
|
75
|
-
|
|
76
|
-
function
|
|
77
|
-
return !!(typeof s == "string" || typeof s == "function" || s === n || s === i ||
|
|
74
|
+
var $ = !1, h = !1, Y = !1, p = !1, V = !1, z;
|
|
75
|
+
z = Symbol.for("react.module.reference");
|
|
76
|
+
function K(s) {
|
|
77
|
+
return !!(typeof s == "string" || typeof s == "function" || s === n || s === i || V || s === o || s === d || s === f || p || s === y || $ || h || Y || typeof s == "object" && s !== null && (s.$$typeof === k || s.$$typeof === g || s.$$typeof === a || s.$$typeof === c || s.$$typeof === l || // This needs to include all possible module reference object
|
|
78
78
|
// types supported by any Flight configuration anywhere since
|
|
79
79
|
// we don't know which Flight build this will end up being used
|
|
80
80
|
// with.
|
|
81
|
-
s.$$typeof ===
|
|
81
|
+
s.$$typeof === z || s.getModuleId !== void 0));
|
|
82
82
|
}
|
|
83
|
-
function Me(s, u,
|
|
83
|
+
function Me(s, u, m) {
|
|
84
84
|
var T = s.displayName;
|
|
85
85
|
if (T)
|
|
86
86
|
return T;
|
|
87
|
-
var
|
|
88
|
-
return
|
|
87
|
+
var L = u.displayName || u.name || "";
|
|
88
|
+
return L !== "" ? m + "(" + L + ")" : m;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function we(s) {
|
|
91
91
|
return s.displayName || "Context";
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function re(s) {
|
|
94
94
|
if (s == null)
|
|
95
95
|
return null;
|
|
96
96
|
if (typeof s.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
|
|
@@ -115,19 +115,19 @@ function Ro() {
|
|
|
115
115
|
switch (s.$$typeof) {
|
|
116
116
|
case c:
|
|
117
117
|
var u = s;
|
|
118
|
-
return
|
|
118
|
+
return we(u) + ".Consumer";
|
|
119
119
|
case a:
|
|
120
|
-
var
|
|
121
|
-
return
|
|
120
|
+
var m = s;
|
|
121
|
+
return we(m._context) + ".Provider";
|
|
122
122
|
case l:
|
|
123
123
|
return Me(s, s.render, "ForwardRef");
|
|
124
|
-
case
|
|
124
|
+
case g:
|
|
125
125
|
var T = s.displayName || null;
|
|
126
|
-
return T !== null ? T :
|
|
126
|
+
return T !== null ? T : re(s.type) || "Memo";
|
|
127
127
|
case k: {
|
|
128
|
-
var
|
|
128
|
+
var L = s, j = L._payload, O = L._init;
|
|
129
129
|
try {
|
|
130
|
-
return
|
|
130
|
+
return re(O(j));
|
|
131
131
|
} catch {
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
@@ -135,18 +135,18 @@ function Ro() {
|
|
|
135
135
|
}
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
138
|
-
var
|
|
139
|
-
function
|
|
138
|
+
var he = Object.assign, ve = 0, E, _, M, A, J, G, ae;
|
|
139
|
+
function xe() {
|
|
140
140
|
}
|
|
141
|
-
|
|
141
|
+
xe.__reactDisabledLog = !0;
|
|
142
142
|
function kt() {
|
|
143
143
|
{
|
|
144
|
-
if (
|
|
145
|
-
|
|
144
|
+
if (ve === 0) {
|
|
145
|
+
E = console.log, _ = console.info, M = console.warn, A = console.error, J = console.group, G = console.groupCollapsed, ae = console.groupEnd;
|
|
146
146
|
var s = {
|
|
147
147
|
configurable: !0,
|
|
148
148
|
enumerable: !0,
|
|
149
|
-
value:
|
|
149
|
+
value: xe,
|
|
150
150
|
writable: !0
|
|
151
151
|
};
|
|
152
152
|
Object.defineProperties(console, {
|
|
@@ -159,52 +159,52 @@ function Ro() {
|
|
|
159
159
|
groupEnd: s
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
-
|
|
162
|
+
ve++;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
function _t() {
|
|
166
166
|
{
|
|
167
|
-
if (
|
|
167
|
+
if (ve--, ve === 0) {
|
|
168
168
|
var s = {
|
|
169
169
|
configurable: !0,
|
|
170
170
|
enumerable: !0,
|
|
171
171
|
writable: !0
|
|
172
172
|
};
|
|
173
173
|
Object.defineProperties(console, {
|
|
174
|
-
log:
|
|
175
|
-
value:
|
|
174
|
+
log: he({}, s, {
|
|
175
|
+
value: E
|
|
176
176
|
}),
|
|
177
|
-
info:
|
|
178
|
-
value:
|
|
177
|
+
info: he({}, s, {
|
|
178
|
+
value: _
|
|
179
179
|
}),
|
|
180
|
-
warn:
|
|
181
|
-
value:
|
|
180
|
+
warn: he({}, s, {
|
|
181
|
+
value: M
|
|
182
182
|
}),
|
|
183
|
-
error:
|
|
184
|
-
value:
|
|
183
|
+
error: he({}, s, {
|
|
184
|
+
value: A
|
|
185
185
|
}),
|
|
186
|
-
group:
|
|
187
|
-
value:
|
|
186
|
+
group: he({}, s, {
|
|
187
|
+
value: J
|
|
188
188
|
}),
|
|
189
|
-
groupCollapsed:
|
|
190
|
-
value:
|
|
189
|
+
groupCollapsed: he({}, s, {
|
|
190
|
+
value: G
|
|
191
191
|
}),
|
|
192
|
-
groupEnd:
|
|
193
|
-
value:
|
|
192
|
+
groupEnd: he({}, s, {
|
|
193
|
+
value: ae
|
|
194
194
|
})
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
|
|
197
|
+
ve < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
var Ve = R.ReactCurrentDispatcher, ze;
|
|
201
|
-
function Pe(s, u,
|
|
201
|
+
function Pe(s, u, m) {
|
|
202
202
|
{
|
|
203
203
|
if (ze === void 0)
|
|
204
204
|
try {
|
|
205
205
|
throw Error();
|
|
206
|
-
} catch (
|
|
207
|
-
var T =
|
|
206
|
+
} catch (L) {
|
|
207
|
+
var T = L.stack.trim().match(/\n( *(at )?)/);
|
|
208
208
|
ze = T && T[1] || "";
|
|
209
209
|
}
|
|
210
210
|
return `
|
|
@@ -216,89 +216,89 @@ function Ro() {
|
|
|
216
216
|
var Mt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
217
217
|
Oe = new Mt();
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function S(s, u) {
|
|
220
220
|
if (!s || Je)
|
|
221
221
|
return "";
|
|
222
222
|
{
|
|
223
|
-
var
|
|
224
|
-
if (
|
|
225
|
-
return
|
|
223
|
+
var m = Oe.get(s);
|
|
224
|
+
if (m !== void 0)
|
|
225
|
+
return m;
|
|
226
226
|
}
|
|
227
227
|
var T;
|
|
228
228
|
Je = !0;
|
|
229
|
-
var
|
|
229
|
+
var L = Error.prepareStackTrace;
|
|
230
230
|
Error.prepareStackTrace = void 0;
|
|
231
|
-
var
|
|
232
|
-
|
|
231
|
+
var j;
|
|
232
|
+
j = Ve.current, Ve.current = null, kt();
|
|
233
233
|
try {
|
|
234
234
|
if (u) {
|
|
235
|
-
var
|
|
235
|
+
var O = function() {
|
|
236
236
|
throw Error();
|
|
237
237
|
};
|
|
238
|
-
if (Object.defineProperty(
|
|
238
|
+
if (Object.defineProperty(O.prototype, "props", {
|
|
239
239
|
set: function() {
|
|
240
240
|
throw Error();
|
|
241
241
|
}
|
|
242
242
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
243
243
|
try {
|
|
244
|
-
Reflect.construct(
|
|
245
|
-
} catch (
|
|
246
|
-
T =
|
|
244
|
+
Reflect.construct(O, []);
|
|
245
|
+
} catch (ne) {
|
|
246
|
+
T = ne;
|
|
247
247
|
}
|
|
248
|
-
Reflect.construct(s, [],
|
|
248
|
+
Reflect.construct(s, [], O);
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
251
|
-
|
|
252
|
-
} catch (
|
|
253
|
-
T =
|
|
251
|
+
O.call();
|
|
252
|
+
} catch (ne) {
|
|
253
|
+
T = ne;
|
|
254
254
|
}
|
|
255
|
-
s.call(
|
|
255
|
+
s.call(O.prototype);
|
|
256
256
|
}
|
|
257
257
|
} else {
|
|
258
258
|
try {
|
|
259
259
|
throw Error();
|
|
260
|
-
} catch (
|
|
261
|
-
T =
|
|
260
|
+
} catch (ne) {
|
|
261
|
+
T = ne;
|
|
262
262
|
}
|
|
263
263
|
s();
|
|
264
264
|
}
|
|
265
|
-
} catch (
|
|
266
|
-
if (
|
|
267
|
-
for (var
|
|
268
|
-
`),
|
|
269
|
-
`),
|
|
270
|
-
|
|
271
|
-
for (;
|
|
272
|
-
if (
|
|
273
|
-
if (
|
|
265
|
+
} catch (ne) {
|
|
266
|
+
if (ne && T && typeof ne.stack == "string") {
|
|
267
|
+
for (var P = ne.stack.split(`
|
|
268
|
+
`), te = T.stack.split(`
|
|
269
|
+
`), B = P.length - 1, U = te.length - 1; B >= 1 && U >= 0 && P[B] !== te[U]; )
|
|
270
|
+
U--;
|
|
271
|
+
for (; B >= 1 && U >= 0; B--, U--)
|
|
272
|
+
if (P[B] !== te[U]) {
|
|
273
|
+
if (B !== 1 || U !== 1)
|
|
274
274
|
do
|
|
275
|
-
if (
|
|
276
|
-
var
|
|
277
|
-
` +
|
|
278
|
-
return s.displayName &&
|
|
275
|
+
if (B--, U--, U < 0 || P[B] !== te[U]) {
|
|
276
|
+
var ce = `
|
|
277
|
+
` + P[B].replace(" at new ", " at ");
|
|
278
|
+
return s.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", s.displayName)), typeof s == "function" && Oe.set(s, ce), ce;
|
|
279
279
|
}
|
|
280
|
-
while (
|
|
280
|
+
while (B >= 1 && U >= 0);
|
|
281
281
|
break;
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
} finally {
|
|
285
|
-
Je = !1, Ve.current =
|
|
285
|
+
Je = !1, Ve.current = j, _t(), Error.prepareStackTrace = L;
|
|
286
286
|
}
|
|
287
|
-
var Fe = s ? s.displayName || s.name : "",
|
|
288
|
-
return typeof s == "function" && Oe.set(s,
|
|
287
|
+
var Fe = s ? s.displayName || s.name : "", ke = Fe ? Pe(Fe) : "";
|
|
288
|
+
return typeof s == "function" && Oe.set(s, ke), ke;
|
|
289
289
|
}
|
|
290
|
-
function Be(s, u,
|
|
291
|
-
return
|
|
290
|
+
function Be(s, u, m) {
|
|
291
|
+
return S(s, !1);
|
|
292
292
|
}
|
|
293
293
|
function $e(s) {
|
|
294
294
|
var u = s.prototype;
|
|
295
295
|
return !!(u && u.isReactComponent);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function Te(s, u, m) {
|
|
298
298
|
if (s == null)
|
|
299
299
|
return "";
|
|
300
300
|
if (typeof s == "function")
|
|
301
|
-
return
|
|
301
|
+
return S(s, $e(s));
|
|
302
302
|
if (typeof s == "string")
|
|
303
303
|
return Pe(s);
|
|
304
304
|
switch (s) {
|
|
@@ -311,12 +311,12 @@ function Ro() {
|
|
|
311
311
|
switch (s.$$typeof) {
|
|
312
312
|
case l:
|
|
313
313
|
return Be(s.render);
|
|
314
|
-
case
|
|
315
|
-
return
|
|
314
|
+
case g:
|
|
315
|
+
return Te(s.type, u, m);
|
|
316
316
|
case k: {
|
|
317
|
-
var T = s,
|
|
317
|
+
var T = s, L = T._payload, j = T._init;
|
|
318
318
|
try {
|
|
319
|
-
return
|
|
319
|
+
return Te(j(L), u, m);
|
|
320
320
|
} catch {
|
|
321
321
|
}
|
|
322
322
|
}
|
|
@@ -326,27 +326,27 @@ function Ro() {
|
|
|
326
326
|
var Ue = Object.prototype.hasOwnProperty, ar = {}, cr = R.ReactDebugCurrentFrame;
|
|
327
327
|
function it(s) {
|
|
328
328
|
if (s) {
|
|
329
|
-
var u = s._owner,
|
|
330
|
-
cr.setExtraStackFrame(
|
|
329
|
+
var u = s._owner, m = Te(s.type, s._source, u ? u.type : null);
|
|
330
|
+
cr.setExtraStackFrame(m);
|
|
331
331
|
} else
|
|
332
332
|
cr.setExtraStackFrame(null);
|
|
333
333
|
}
|
|
334
|
-
function qn(s, u,
|
|
334
|
+
function qn(s, u, m, T, L) {
|
|
335
335
|
{
|
|
336
|
-
var
|
|
337
|
-
for (var
|
|
338
|
-
if (
|
|
339
|
-
var
|
|
336
|
+
var j = Function.call.bind(Ue);
|
|
337
|
+
for (var O in s)
|
|
338
|
+
if (j(s, O)) {
|
|
339
|
+
var P = void 0;
|
|
340
340
|
try {
|
|
341
|
-
if (typeof s[
|
|
342
|
-
var
|
|
343
|
-
throw
|
|
341
|
+
if (typeof s[O] != "function") {
|
|
342
|
+
var te = Error((T || "React class") + ": " + m + " type `" + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[O] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
343
|
+
throw te.name = "Invariant Violation", te;
|
|
344
344
|
}
|
|
345
|
-
|
|
346
|
-
} catch (
|
|
347
|
-
|
|
345
|
+
P = s[O](u, O, T, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
346
|
+
} catch (B) {
|
|
347
|
+
P = B;
|
|
348
348
|
}
|
|
349
|
-
|
|
349
|
+
P && !(P instanceof Error) && (it(L), b("%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).", T || "React class", m, O, typeof P), it(null)), P instanceof Error && !(P.message in ar) && (ar[P.message] = !0, it(L), b("Failed %s type: %s", m, P.message), it(null));
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
@@ -356,8 +356,8 @@ function Ro() {
|
|
|
356
356
|
}
|
|
357
357
|
function Vn(s) {
|
|
358
358
|
{
|
|
359
|
-
var u = typeof Symbol == "function" && Symbol.toStringTag,
|
|
360
|
-
return
|
|
359
|
+
var u = typeof Symbol == "function" && Symbol.toStringTag, m = u && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
360
|
+
return m;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
function zn(s) {
|
|
@@ -401,90 +401,90 @@ function Ro() {
|
|
|
401
401
|
}
|
|
402
402
|
function Kn(s, u) {
|
|
403
403
|
{
|
|
404
|
-
var
|
|
404
|
+
var m = function() {
|
|
405
405
|
hr || (hr = !0, b("%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)", u));
|
|
406
406
|
};
|
|
407
|
-
|
|
408
|
-
get:
|
|
407
|
+
m.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
408
|
+
get: m,
|
|
409
409
|
configurable: !0
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
function Gn(s, u) {
|
|
414
414
|
{
|
|
415
|
-
var
|
|
415
|
+
var m = function() {
|
|
416
416
|
dr || (dr = !0, b("%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)", u));
|
|
417
417
|
};
|
|
418
|
-
|
|
419
|
-
get:
|
|
418
|
+
m.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
419
|
+
get: m,
|
|
420
420
|
configurable: !0
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
var Qn = function(s, u,
|
|
425
|
-
var
|
|
424
|
+
var Qn = function(s, u, m, T, L, j, O) {
|
|
425
|
+
var P = {
|
|
426
426
|
// This tag allows us to uniquely identify this as a React Element
|
|
427
427
|
$$typeof: t,
|
|
428
428
|
// Built-in properties that belong on the element
|
|
429
429
|
type: s,
|
|
430
430
|
key: u,
|
|
431
|
-
ref:
|
|
432
|
-
props:
|
|
431
|
+
ref: m,
|
|
432
|
+
props: O,
|
|
433
433
|
// Record the component responsible for creating this element.
|
|
434
|
-
_owner:
|
|
434
|
+
_owner: j
|
|
435
435
|
};
|
|
436
|
-
return
|
|
436
|
+
return P._store = {}, Object.defineProperty(P._store, "validated", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !0,
|
|
440
440
|
value: !1
|
|
441
|
-
}), Object.defineProperty(
|
|
441
|
+
}), Object.defineProperty(P, "_self", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
445
|
value: T
|
|
446
|
-
}), Object.defineProperty(
|
|
446
|
+
}), Object.defineProperty(P, "_source", {
|
|
447
447
|
configurable: !1,
|
|
448
448
|
enumerable: !1,
|
|
449
449
|
writable: !1,
|
|
450
|
-
value:
|
|
451
|
-
}), Object.freeze && (Object.freeze(
|
|
450
|
+
value: L
|
|
451
|
+
}), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
|
|
452
452
|
};
|
|
453
|
-
function Xn(s, u,
|
|
453
|
+
function Xn(s, u, m, T, L) {
|
|
454
454
|
{
|
|
455
|
-
var
|
|
456
|
-
|
|
457
|
-
for (
|
|
458
|
-
Ue.call(u,
|
|
455
|
+
var j, O = {}, P = null, te = null;
|
|
456
|
+
m !== void 0 && (ur(m), P = "" + m), Un(u) && (ur(u.key), P = "" + u.key), Bn(u) && (te = u.ref, Hn(u, L));
|
|
457
|
+
for (j in u)
|
|
458
|
+
Ue.call(u, j) && !Jn.hasOwnProperty(j) && (O[j] = u[j]);
|
|
459
459
|
if (s && s.defaultProps) {
|
|
460
|
-
var
|
|
461
|
-
for (
|
|
462
|
-
|
|
460
|
+
var B = s.defaultProps;
|
|
461
|
+
for (j in B)
|
|
462
|
+
O[j] === void 0 && (O[j] = B[j]);
|
|
463
463
|
}
|
|
464
|
-
if (
|
|
465
|
-
var
|
|
466
|
-
|
|
464
|
+
if (P || te) {
|
|
465
|
+
var U = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
466
|
+
P && Kn(O, U), te && Gn(O, U);
|
|
467
467
|
}
|
|
468
|
-
return Qn(s,
|
|
468
|
+
return Qn(s, P, te, L, T, fr.current, O);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
var Ot = R.ReactCurrentOwner,
|
|
471
|
+
var Ot = R.ReactCurrentOwner, gr = R.ReactDebugCurrentFrame;
|
|
472
472
|
function Ae(s) {
|
|
473
473
|
if (s) {
|
|
474
|
-
var u = s._owner,
|
|
475
|
-
|
|
474
|
+
var u = s._owner, m = Te(s.type, s._source, u ? u.type : null);
|
|
475
|
+
gr.setExtraStackFrame(m);
|
|
476
476
|
} else
|
|
477
|
-
|
|
477
|
+
gr.setExtraStackFrame(null);
|
|
478
478
|
}
|
|
479
479
|
var $t;
|
|
480
480
|
$t = !1;
|
|
481
481
|
function At(s) {
|
|
482
482
|
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function mr() {
|
|
485
485
|
{
|
|
486
486
|
if (Ot.current) {
|
|
487
|
-
var s =
|
|
487
|
+
var s = re(Ot.current.type);
|
|
488
488
|
if (s)
|
|
489
489
|
return `
|
|
490
490
|
|
|
@@ -499,12 +499,12 @@ Check the render method of \`` + s + "`.";
|
|
|
499
499
|
var pr = {};
|
|
500
500
|
function eo(s) {
|
|
501
501
|
{
|
|
502
|
-
var u =
|
|
502
|
+
var u = mr();
|
|
503
503
|
if (!u) {
|
|
504
|
-
var
|
|
505
|
-
|
|
504
|
+
var m = typeof s == "string" ? s : s.displayName || s.name;
|
|
505
|
+
m && (u = `
|
|
506
506
|
|
|
507
|
-
Check the top-level render call using <` +
|
|
507
|
+
Check the top-level render call using <` + m + ">.");
|
|
508
508
|
}
|
|
509
509
|
return u;
|
|
510
510
|
}
|
|
@@ -514,12 +514,12 @@ Check the top-level render call using <` + g + ">.");
|
|
|
514
514
|
if (!s._store || s._store.validated || s.key != null)
|
|
515
515
|
return;
|
|
516
516
|
s._store.validated = !0;
|
|
517
|
-
var
|
|
518
|
-
if (pr[
|
|
517
|
+
var m = eo(u);
|
|
518
|
+
if (pr[m])
|
|
519
519
|
return;
|
|
520
|
-
pr[
|
|
520
|
+
pr[m] = !0;
|
|
521
521
|
var T = "";
|
|
522
|
-
s && s._owner && s._owner !== Ot.current && (T = " It was passed a child from " +
|
|
522
|
+
s && s._owner && s._owner !== Ot.current && (T = " It was passed a child from " + re(s._owner.type) + "."), Ae(s), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, T), Ae(null);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
function vr(s, u) {
|
|
@@ -527,17 +527,17 @@ Check the top-level render call using <` + g + ">.");
|
|
|
527
527
|
if (typeof s != "object")
|
|
528
528
|
return;
|
|
529
529
|
if (Pt(s))
|
|
530
|
-
for (var
|
|
531
|
-
var T = s[
|
|
530
|
+
for (var m = 0; m < s.length; m++) {
|
|
531
|
+
var T = s[m];
|
|
532
532
|
At(T) && yr(T, u);
|
|
533
533
|
}
|
|
534
534
|
else if (At(s))
|
|
535
535
|
s._store && (s._store.validated = !0);
|
|
536
536
|
else if (s) {
|
|
537
|
-
var
|
|
538
|
-
if (typeof
|
|
539
|
-
for (var
|
|
540
|
-
At(
|
|
537
|
+
var L = x(s);
|
|
538
|
+
if (typeof L == "function" && L !== s.entries)
|
|
539
|
+
for (var j = L.call(s), O; !(O = j.next()).done; )
|
|
540
|
+
At(O.value) && yr(O.value, u);
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
}
|
|
@@ -546,30 +546,30 @@ Check the top-level render call using <` + g + ">.");
|
|
|
546
546
|
var u = s.type;
|
|
547
547
|
if (u == null || typeof u == "string")
|
|
548
548
|
return;
|
|
549
|
-
var
|
|
549
|
+
var m;
|
|
550
550
|
if (typeof u == "function")
|
|
551
|
-
|
|
551
|
+
m = u.propTypes;
|
|
552
552
|
else if (typeof u == "object" && (u.$$typeof === l || // Note: Memo only checks outer props here.
|
|
553
553
|
// Inner props are checked in the reconciler.
|
|
554
|
-
u.$$typeof ===
|
|
555
|
-
|
|
554
|
+
u.$$typeof === g))
|
|
555
|
+
m = u.propTypes;
|
|
556
556
|
else
|
|
557
557
|
return;
|
|
558
|
-
if (
|
|
559
|
-
var T =
|
|
560
|
-
qn(
|
|
558
|
+
if (m) {
|
|
559
|
+
var T = re(u);
|
|
560
|
+
qn(m, s.props, "prop", T, s);
|
|
561
561
|
} else if (u.PropTypes !== void 0 && !$t) {
|
|
562
562
|
$t = !0;
|
|
563
|
-
var
|
|
564
|
-
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
563
|
+
var L = re(u);
|
|
564
|
+
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
|
|
565
565
|
}
|
|
566
566
|
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
function ro(s) {
|
|
570
570
|
{
|
|
571
|
-
for (var u = Object.keys(s.props),
|
|
572
|
-
var T = u[
|
|
571
|
+
for (var u = Object.keys(s.props), m = 0; m < u.length; m++) {
|
|
572
|
+
var T = u[m];
|
|
573
573
|
if (T !== "children" && T !== "key") {
|
|
574
574
|
Ae(s), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), Ae(null);
|
|
575
575
|
break;
|
|
@@ -579,55 +579,55 @@ Check the top-level render call using <` + g + ">.");
|
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
var xr = {};
|
|
582
|
-
function br(s, u,
|
|
582
|
+
function br(s, u, m, T, L, j) {
|
|
583
583
|
{
|
|
584
|
-
var
|
|
585
|
-
if (
|
|
586
|
-
var
|
|
587
|
-
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (
|
|
588
|
-
var
|
|
589
|
-
|
|
590
|
-
var
|
|
591
|
-
s === null ?
|
|
584
|
+
var O = K(s);
|
|
585
|
+
if (!O) {
|
|
586
|
+
var P = "";
|
|
587
|
+
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
588
|
+
var te = Zn();
|
|
589
|
+
te ? P += te : P += mr();
|
|
590
|
+
var B;
|
|
591
|
+
s === null ? B = "null" : Pt(s) ? B = "array" : s !== void 0 && s.$$typeof === t ? (B = "<" + (re(s.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : B = typeof s, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", B, P);
|
|
592
592
|
}
|
|
593
|
-
var
|
|
594
|
-
if (
|
|
595
|
-
return
|
|
596
|
-
if (
|
|
597
|
-
var
|
|
598
|
-
if (
|
|
593
|
+
var U = Xn(s, u, m, L, j);
|
|
594
|
+
if (U == null)
|
|
595
|
+
return U;
|
|
596
|
+
if (O) {
|
|
597
|
+
var ce = u.children;
|
|
598
|
+
if (ce !== void 0)
|
|
599
599
|
if (T)
|
|
600
|
-
if (Pt(
|
|
601
|
-
for (var Fe = 0; Fe <
|
|
602
|
-
vr(
|
|
603
|
-
Object.freeze && Object.freeze(
|
|
600
|
+
if (Pt(ce)) {
|
|
601
|
+
for (var Fe = 0; Fe < ce.length; Fe++)
|
|
602
|
+
vr(ce[Fe], s);
|
|
603
|
+
Object.freeze && Object.freeze(ce);
|
|
604
604
|
} else
|
|
605
605
|
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
606
606
|
else
|
|
607
|
-
vr(
|
|
607
|
+
vr(ce, s);
|
|
608
608
|
}
|
|
609
609
|
if (Ue.call(u, "key")) {
|
|
610
|
-
var
|
|
610
|
+
var ke = re(s), ne = Object.keys(u).filter(function(co) {
|
|
611
611
|
return co !== "key";
|
|
612
|
-
}), Ft =
|
|
613
|
-
if (!xr[
|
|
614
|
-
var ao =
|
|
612
|
+
}), Ft = ne.length > 0 ? "{key: someKey, " + ne.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
613
|
+
if (!xr[ke + Ft]) {
|
|
614
|
+
var ao = ne.length > 0 ? "{" + ne.join(": ..., ") + ": ...}" : "{}";
|
|
615
615
|
b(`A props object containing a "key" prop is being spread into JSX:
|
|
616
616
|
let props = %s;
|
|
617
617
|
<%s {...props} />
|
|
618
618
|
React keys must be passed directly to JSX without using spread:
|
|
619
619
|
let props = %s;
|
|
620
|
-
<%s key={someKey} {...props} />`, Ft,
|
|
620
|
+
<%s key={someKey} {...props} />`, Ft, ke, ao, ke), xr[ke + Ft] = !0;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
return s === n ? ro(
|
|
623
|
+
return s === n ? ro(U) : to(U), U;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
function no(s, u,
|
|
627
|
-
return br(s, u,
|
|
626
|
+
function no(s, u, m) {
|
|
627
|
+
return br(s, u, m, !0);
|
|
628
628
|
}
|
|
629
|
-
function oo(s, u,
|
|
630
|
-
return br(s, u,
|
|
629
|
+
function oo(s, u, m) {
|
|
630
|
+
return br(s, u, m, !1);
|
|
631
631
|
}
|
|
632
632
|
var io = oo, so = no;
|
|
633
633
|
Ke.Fragment = n, Ke.jsx = io, Ke.jsxs = so;
|
|
@@ -675,9 +675,9 @@ var ko = /* @__PURE__ */ function() {
|
|
|
675
675
|
return (o = n.parentNode) == null ? void 0 : o.removeChild(n);
|
|
676
676
|
}), this.tags = [], this.ctr = 0;
|
|
677
677
|
}, e;
|
|
678
|
-
}(),
|
|
678
|
+
}(), ee = "-ms-", mt = "-moz-", F = "-webkit-", cn = "comm", Gt = "rule", Qt = "decl", _o = "@import", ln = "@keyframes", Mo = "@layer", Po = Math.abs, Ct = String.fromCharCode, Oo = Object.assign;
|
|
679
679
|
function $o(e, t) {
|
|
680
|
-
return
|
|
680
|
+
return Z(e, 0) ^ 45 ? (((t << 2 ^ Z(e, 0)) << 2 ^ Z(e, 1)) << 2 ^ Z(e, 2)) << 2 ^ Z(e, 3) : 0;
|
|
681
681
|
}
|
|
682
682
|
function un(e) {
|
|
683
683
|
return e.trim();
|
|
@@ -685,13 +685,13 @@ function un(e) {
|
|
|
685
685
|
function Ao(e, t) {
|
|
686
686
|
return (e = t.exec(e)) ? e[0] : e;
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function N(e, t, r) {
|
|
689
689
|
return e.replace(t, r);
|
|
690
690
|
}
|
|
691
691
|
function qt(e, t) {
|
|
692
692
|
return e.indexOf(t);
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function Z(e, t) {
|
|
695
695
|
return e.charCodeAt(t) | 0;
|
|
696
696
|
}
|
|
697
697
|
function Xe(e, t, r) {
|
|
@@ -709,7 +709,7 @@ function st(e, t) {
|
|
|
709
709
|
function Fo(e, t) {
|
|
710
710
|
return e.map(t).join("");
|
|
711
711
|
}
|
|
712
|
-
var Rt = 1, We = 1, fn = 0,
|
|
712
|
+
var Rt = 1, We = 1, fn = 0, oe = 0, H = 0, Ye = "";
|
|
713
713
|
function wt(e, t, r, n, o, i, a) {
|
|
714
714
|
return { value: e, root: t, parent: r, type: n, props: o, children: i, line: Rt, column: We, length: a, return: "" };
|
|
715
715
|
}
|
|
@@ -717,19 +717,19 @@ function Ge(e, t) {
|
|
|
717
717
|
return Oo(wt("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
718
718
|
}
|
|
719
719
|
function No() {
|
|
720
|
-
return
|
|
720
|
+
return H;
|
|
721
721
|
}
|
|
722
722
|
function Lo() {
|
|
723
|
-
return
|
|
723
|
+
return H = oe > 0 ? Z(Ye, --oe) : 0, We--, H === 10 && (We = 1, Rt--), H;
|
|
724
724
|
}
|
|
725
|
-
function
|
|
726
|
-
return
|
|
725
|
+
function se() {
|
|
726
|
+
return H = oe < fn ? Z(Ye, oe++) : 0, We++, H === 10 && (We = 1, Rt++), H;
|
|
727
727
|
}
|
|
728
|
-
function
|
|
729
|
-
return
|
|
728
|
+
function ye() {
|
|
729
|
+
return Z(Ye, oe);
|
|
730
730
|
}
|
|
731
731
|
function lt() {
|
|
732
|
-
return
|
|
732
|
+
return oe;
|
|
733
733
|
}
|
|
734
734
|
function nt(e, t) {
|
|
735
735
|
return Xe(Ye, e, t);
|
|
@@ -767,122 +767,122 @@ function Ze(e) {
|
|
|
767
767
|
return 0;
|
|
768
768
|
}
|
|
769
769
|
function hn(e) {
|
|
770
|
-
return Rt = We = 1, fn = me(Ye = e),
|
|
770
|
+
return Rt = We = 1, fn = me(Ye = e), oe = 0, [];
|
|
771
771
|
}
|
|
772
772
|
function dn(e) {
|
|
773
773
|
return Ye = "", e;
|
|
774
774
|
}
|
|
775
775
|
function ut(e) {
|
|
776
|
-
return un(nt(
|
|
776
|
+
return un(nt(oe - 1, Yt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
777
777
|
}
|
|
778
778
|
function Io(e) {
|
|
779
|
-
for (; (
|
|
780
|
-
|
|
781
|
-
return Ze(e) > 2 || Ze(
|
|
779
|
+
for (; (H = ye()) && H < 33; )
|
|
780
|
+
se();
|
|
781
|
+
return Ze(e) > 2 || Ze(H) > 3 ? "" : " ";
|
|
782
782
|
}
|
|
783
783
|
function Do(e, t) {
|
|
784
|
-
for (; --t &&
|
|
784
|
+
for (; --t && se() && !(H < 48 || H > 102 || H > 57 && H < 65 || H > 70 && H < 97); )
|
|
785
785
|
;
|
|
786
|
-
return nt(e, lt() + (t < 6 &&
|
|
786
|
+
return nt(e, lt() + (t < 6 && ye() == 32 && se() == 32));
|
|
787
787
|
}
|
|
788
788
|
function Yt(e) {
|
|
789
|
-
for (;
|
|
790
|
-
switch (
|
|
789
|
+
for (; se(); )
|
|
790
|
+
switch (H) {
|
|
791
791
|
case e:
|
|
792
|
-
return
|
|
792
|
+
return oe;
|
|
793
793
|
case 34:
|
|
794
794
|
case 39:
|
|
795
|
-
e !== 34 && e !== 39 && Yt(
|
|
795
|
+
e !== 34 && e !== 39 && Yt(H);
|
|
796
796
|
break;
|
|
797
797
|
case 40:
|
|
798
798
|
e === 41 && Yt(e);
|
|
799
799
|
break;
|
|
800
800
|
case 92:
|
|
801
|
-
|
|
801
|
+
se();
|
|
802
802
|
break;
|
|
803
803
|
}
|
|
804
|
-
return
|
|
804
|
+
return oe;
|
|
805
805
|
}
|
|
806
806
|
function Wo(e, t) {
|
|
807
|
-
for (;
|
|
808
|
-
if (e +
|
|
807
|
+
for (; se() && e + H !== 57; )
|
|
808
|
+
if (e + H === 84 && ye() === 47)
|
|
809
809
|
break;
|
|
810
|
-
return "/*" + nt(t,
|
|
810
|
+
return "/*" + nt(t, oe - 1) + "*" + Ct(e === 47 ? e : se());
|
|
811
811
|
}
|
|
812
812
|
function jo(e) {
|
|
813
|
-
for (; !Ze(
|
|
814
|
-
|
|
815
|
-
return nt(e,
|
|
813
|
+
for (; !Ze(ye()); )
|
|
814
|
+
se();
|
|
815
|
+
return nt(e, oe);
|
|
816
816
|
}
|
|
817
817
|
function qo(e) {
|
|
818
818
|
return dn(ft("", null, null, null, [""], e = hn(e), 0, [0], e));
|
|
819
819
|
}
|
|
820
820
|
function ft(e, t, r, n, o, i, a, c, l) {
|
|
821
|
-
for (var d = 0, f = 0,
|
|
822
|
-
switch (C = b, b =
|
|
821
|
+
for (var d = 0, f = 0, g = a, k = 0, y = 0, C = 0, v = 1, x = 1, R = 1, b = 0, w = "", $ = o, h = i, Y = n, p = w; x; )
|
|
822
|
+
switch (C = b, b = se()) {
|
|
823
823
|
case 40:
|
|
824
|
-
if (C != 108 &&
|
|
825
|
-
qt(
|
|
824
|
+
if (C != 108 && Z(p, g - 1) == 58) {
|
|
825
|
+
qt(p += N(ut(b), "&", "&\f"), "&\f") != -1 && (R = -1);
|
|
826
826
|
break;
|
|
827
827
|
}
|
|
828
828
|
case 34:
|
|
829
829
|
case 39:
|
|
830
830
|
case 91:
|
|
831
|
-
|
|
831
|
+
p += ut(b);
|
|
832
832
|
break;
|
|
833
833
|
case 9:
|
|
834
834
|
case 10:
|
|
835
835
|
case 13:
|
|
836
836
|
case 32:
|
|
837
|
-
|
|
837
|
+
p += Io(C);
|
|
838
838
|
break;
|
|
839
839
|
case 92:
|
|
840
|
-
|
|
840
|
+
p += Do(lt() - 1, 7);
|
|
841
841
|
continue;
|
|
842
842
|
case 47:
|
|
843
|
-
switch (
|
|
843
|
+
switch (ye()) {
|
|
844
844
|
case 42:
|
|
845
845
|
case 47:
|
|
846
|
-
st(Yo(Wo(
|
|
846
|
+
st(Yo(Wo(se(), lt()), t, r), l);
|
|
847
847
|
break;
|
|
848
848
|
default:
|
|
849
|
-
|
|
849
|
+
p += "/";
|
|
850
850
|
}
|
|
851
851
|
break;
|
|
852
852
|
case 123 * v:
|
|
853
|
-
c[d++] = me(
|
|
853
|
+
c[d++] = me(p) * R;
|
|
854
854
|
case 125 * v:
|
|
855
855
|
case 59:
|
|
856
856
|
case 0:
|
|
857
857
|
switch (b) {
|
|
858
858
|
case 0:
|
|
859
859
|
case 125:
|
|
860
|
-
|
|
860
|
+
x = 0;
|
|
861
861
|
case 59 + f:
|
|
862
|
-
R == -1 && (
|
|
862
|
+
R == -1 && (p = N(p, /\f/g, "")), y > 0 && me(p) - g && st(y > 32 ? Or(p + ";", n, r, g - 1) : Or(N(p, " ", "") + ";", n, r, g - 2), l);
|
|
863
863
|
break;
|
|
864
864
|
case 59:
|
|
865
|
-
|
|
865
|
+
p += ";";
|
|
866
866
|
default:
|
|
867
|
-
if (st(
|
|
867
|
+
if (st(Y = Pr(p, t, r, d, f, o, c, w, $ = [], h = [], g), i), b === 123)
|
|
868
868
|
if (f === 0)
|
|
869
|
-
ft(
|
|
869
|
+
ft(p, t, Y, Y, $, i, g, c, h);
|
|
870
870
|
else
|
|
871
|
-
switch (k === 99 &&
|
|
871
|
+
switch (k === 99 && Z(p, 3) === 110 ? 100 : k) {
|
|
872
872
|
case 100:
|
|
873
873
|
case 108:
|
|
874
874
|
case 109:
|
|
875
875
|
case 115:
|
|
876
|
-
ft(e,
|
|
876
|
+
ft(e, Y, Y, n && st(Pr(e, Y, Y, 0, 0, o, c, w, o, $ = [], g), h), o, h, g, c, n ? $ : h);
|
|
877
877
|
break;
|
|
878
878
|
default:
|
|
879
|
-
ft(
|
|
879
|
+
ft(p, Y, Y, Y, [""], h, 0, c, h);
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
|
-
d = f =
|
|
882
|
+
d = f = y = 0, v = R = 1, w = p = "", g = a;
|
|
883
883
|
break;
|
|
884
884
|
case 58:
|
|
885
|
-
|
|
885
|
+
g = 1 + me(p), y = C;
|
|
886
886
|
default:
|
|
887
887
|
if (v < 1) {
|
|
888
888
|
if (b == 123)
|
|
@@ -890,26 +890,26 @@ function ft(e, t, r, n, o, i, a, c, l) {
|
|
|
890
890
|
else if (b == 125 && v++ == 0 && Lo() == 125)
|
|
891
891
|
continue;
|
|
892
892
|
}
|
|
893
|
-
switch (
|
|
893
|
+
switch (p += Ct(b), b * v) {
|
|
894
894
|
case 38:
|
|
895
|
-
R = f > 0 ? 1 : (
|
|
895
|
+
R = f > 0 ? 1 : (p += "\f", -1);
|
|
896
896
|
break;
|
|
897
897
|
case 44:
|
|
898
|
-
c[d++] = (me(
|
|
898
|
+
c[d++] = (me(p) - 1) * R, R = 1;
|
|
899
899
|
break;
|
|
900
900
|
case 64:
|
|
901
|
-
|
|
901
|
+
ye() === 45 && (p += ut(se())), k = ye(), f = g = me(w = p += jo(lt())), b++;
|
|
902
902
|
break;
|
|
903
903
|
case 45:
|
|
904
|
-
C === 45 && me(
|
|
904
|
+
C === 45 && me(p) == 2 && (v = 0);
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
907
|
return i;
|
|
908
908
|
}
|
|
909
909
|
function Pr(e, t, r, n, o, i, a, c, l, d, f) {
|
|
910
|
-
for (var
|
|
911
|
-
for (var R = 0, b = Xe(e,
|
|
912
|
-
(w = un(v > 0 ? k[R] + " " + b :
|
|
910
|
+
for (var g = o - 1, k = o === 0 ? i : [""], y = Xt(k), C = 0, v = 0, x = 0; C < n; ++C)
|
|
911
|
+
for (var R = 0, b = Xe(e, g + 1, g = Po(v = a[C])), w = e; R < y; ++R)
|
|
912
|
+
(w = un(v > 0 ? k[R] + " " + b : N(b, /&\f/g, k[R]))) && (l[x++] = w);
|
|
913
913
|
return wt(e, t, r, o === 0 ? Gt : c, l, d, f);
|
|
914
914
|
}
|
|
915
915
|
function Yo(e, t, r) {
|
|
@@ -959,28 +959,28 @@ function Bo(e) {
|
|
|
959
959
|
};
|
|
960
960
|
}
|
|
961
961
|
var Uo = function(t, r, n) {
|
|
962
|
-
for (var o = 0, i = 0; o = i, i =
|
|
963
|
-
|
|
964
|
-
return nt(t,
|
|
962
|
+
for (var o = 0, i = 0; o = i, i = ye(), o === 38 && i === 12 && (r[n] = 1), !Ze(i); )
|
|
963
|
+
se();
|
|
964
|
+
return nt(t, oe);
|
|
965
965
|
}, Ho = function(t, r) {
|
|
966
966
|
var n = -1, o = 44;
|
|
967
967
|
do
|
|
968
968
|
switch (Ze(o)) {
|
|
969
969
|
case 0:
|
|
970
|
-
o === 38 &&
|
|
970
|
+
o === 38 && ye() === 12 && (r[n] = 1), t[n] += Uo(oe - 1, r, n);
|
|
971
971
|
break;
|
|
972
972
|
case 2:
|
|
973
973
|
t[n] += ut(o);
|
|
974
974
|
break;
|
|
975
975
|
case 4:
|
|
976
976
|
if (o === 44) {
|
|
977
|
-
t[++n] =
|
|
977
|
+
t[++n] = ye() === 58 ? "&\f" : "", r[n] = t[n].length;
|
|
978
978
|
break;
|
|
979
979
|
}
|
|
980
980
|
default:
|
|
981
981
|
t[n] += Ct(o);
|
|
982
982
|
}
|
|
983
|
-
while (o =
|
|
983
|
+
while (o = se());
|
|
984
984
|
return t;
|
|
985
985
|
}, Ko = function(t, r) {
|
|
986
986
|
return dn(Ho(hn(t), r));
|
|
@@ -1005,10 +1005,10 @@ var Uo = function(t, r, n) {
|
|
|
1005
1005
|
r.charCodeAt(2) === 98 && (t.return = "", t.value = "");
|
|
1006
1006
|
}
|
|
1007
1007
|
};
|
|
1008
|
-
function
|
|
1008
|
+
function gn(e, t) {
|
|
1009
1009
|
switch ($o(e, t)) {
|
|
1010
1010
|
case 5103:
|
|
1011
|
-
return
|
|
1011
|
+
return F + "print-" + e + e;
|
|
1012
1012
|
case 5737:
|
|
1013
1013
|
case 4201:
|
|
1014
1014
|
case 3177:
|
|
@@ -1034,44 +1034,44 @@ function mn(e, t) {
|
|
|
1034
1034
|
case 5365:
|
|
1035
1035
|
case 5621:
|
|
1036
1036
|
case 3829:
|
|
1037
|
-
return
|
|
1037
|
+
return F + e + e;
|
|
1038
1038
|
case 5349:
|
|
1039
1039
|
case 4246:
|
|
1040
1040
|
case 4810:
|
|
1041
1041
|
case 6968:
|
|
1042
1042
|
case 2756:
|
|
1043
|
-
return
|
|
1043
|
+
return F + e + mt + e + ee + e + e;
|
|
1044
1044
|
case 6828:
|
|
1045
1045
|
case 4268:
|
|
1046
|
-
return
|
|
1046
|
+
return F + e + ee + e + e;
|
|
1047
1047
|
case 6165:
|
|
1048
|
-
return
|
|
1048
|
+
return F + e + ee + "flex-" + e + e;
|
|
1049
1049
|
case 5187:
|
|
1050
|
-
return
|
|
1050
|
+
return F + e + N(e, /(\w+).+(:[^]+)/, F + "box-$1$2" + ee + "flex-$1$2") + e;
|
|
1051
1051
|
case 5443:
|
|
1052
|
-
return
|
|
1052
|
+
return F + e + ee + "flex-item-" + N(e, /flex-|-self/, "") + e;
|
|
1053
1053
|
case 4675:
|
|
1054
|
-
return
|
|
1054
|
+
return F + e + ee + "flex-line-pack" + N(e, /align-content|flex-|-self/, "") + e;
|
|
1055
1055
|
case 5548:
|
|
1056
|
-
return
|
|
1056
|
+
return F + e + ee + N(e, "shrink", "negative") + e;
|
|
1057
1057
|
case 5292:
|
|
1058
|
-
return
|
|
1058
|
+
return F + e + ee + N(e, "basis", "preferred-size") + e;
|
|
1059
1059
|
case 6060:
|
|
1060
|
-
return
|
|
1060
|
+
return F + "box-" + N(e, "-grow", "") + F + e + ee + N(e, "grow", "positive") + e;
|
|
1061
1061
|
case 4554:
|
|
1062
|
-
return
|
|
1062
|
+
return F + N(e, /([^-])(transform)/g, "$1" + F + "$2") + e;
|
|
1063
1063
|
case 6187:
|
|
1064
|
-
return
|
|
1064
|
+
return N(N(N(e, /(zoom-|grab)/, F + "$1"), /(image-set)/, F + "$1"), e, "") + e;
|
|
1065
1065
|
case 5495:
|
|
1066
1066
|
case 3959:
|
|
1067
|
-
return
|
|
1067
|
+
return N(e, /(image-set\([^]*)/, F + "$1$`$1");
|
|
1068
1068
|
case 4968:
|
|
1069
|
-
return
|
|
1069
|
+
return N(N(e, /(.+:)(flex-)?(.*)/, F + "box-pack:$3" + ee + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + F + e + e;
|
|
1070
1070
|
case 4095:
|
|
1071
1071
|
case 3583:
|
|
1072
1072
|
case 4068:
|
|
1073
1073
|
case 2532:
|
|
1074
|
-
return
|
|
1074
|
+
return N(e, /(.+)-inline(.+)/, F + "$1$2") + e;
|
|
1075
1075
|
case 8116:
|
|
1076
1076
|
case 7059:
|
|
1077
1077
|
case 5753:
|
|
@@ -1084,46 +1084,46 @@ function mn(e, t) {
|
|
|
1084
1084
|
case 5789:
|
|
1085
1085
|
case 5021:
|
|
1086
1086
|
case 4765:
|
|
1087
|
-
if (me(e) - 1 - t > 6) switch (
|
|
1087
|
+
if (me(e) - 1 - t > 6) switch (Z(e, t + 1)) {
|
|
1088
1088
|
case 109:
|
|
1089
|
-
if (
|
|
1089
|
+
if (Z(e, t + 4) !== 45) break;
|
|
1090
1090
|
case 102:
|
|
1091
|
-
return
|
|
1091
|
+
return N(e, /(.+:)(.+)-([^]+)/, "$1" + F + "$2-$3$1" + mt + (Z(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1092
1092
|
case 115:
|
|
1093
|
-
return ~qt(e, "stretch") ?
|
|
1093
|
+
return ~qt(e, "stretch") ? gn(N(e, "stretch", "fill-available"), t) + e : e;
|
|
1094
1094
|
}
|
|
1095
1095
|
break;
|
|
1096
1096
|
case 4949:
|
|
1097
|
-
if (
|
|
1097
|
+
if (Z(e, t + 1) !== 115) break;
|
|
1098
1098
|
case 6444:
|
|
1099
|
-
switch (
|
|
1099
|
+
switch (Z(e, me(e) - 3 - (~qt(e, "!important") && 10))) {
|
|
1100
1100
|
case 107:
|
|
1101
|
-
return
|
|
1101
|
+
return N(e, ":", ":" + F) + e;
|
|
1102
1102
|
case 101:
|
|
1103
|
-
return
|
|
1103
|
+
return N(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + F + (Z(e, 14) === 45 ? "inline-" : "") + "box$3$1" + F + "$2$3$1" + ee + "$2box$3") + e;
|
|
1104
1104
|
}
|
|
1105
1105
|
break;
|
|
1106
1106
|
case 5936:
|
|
1107
|
-
switch (
|
|
1107
|
+
switch (Z(e, t + 11)) {
|
|
1108
1108
|
case 114:
|
|
1109
|
-
return
|
|
1109
|
+
return F + e + ee + N(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1110
1110
|
case 108:
|
|
1111
|
-
return
|
|
1111
|
+
return F + e + ee + N(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1112
1112
|
case 45:
|
|
1113
|
-
return
|
|
1113
|
+
return F + e + ee + N(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1114
1114
|
}
|
|
1115
|
-
return
|
|
1115
|
+
return F + e + ee + e + e;
|
|
1116
1116
|
}
|
|
1117
1117
|
return e;
|
|
1118
1118
|
}
|
|
1119
1119
|
var Xo = function(t, r, n, o) {
|
|
1120
1120
|
if (t.length > -1 && !t.return) switch (t.type) {
|
|
1121
1121
|
case Qt:
|
|
1122
|
-
t.return =
|
|
1122
|
+
t.return = gn(t.value, t.length);
|
|
1123
1123
|
break;
|
|
1124
1124
|
case ln:
|
|
1125
1125
|
return Ie([Ge(t, {
|
|
1126
|
-
value:
|
|
1126
|
+
value: N(t.value, "@", "@" + F)
|
|
1127
1127
|
})], o);
|
|
1128
1128
|
case Gt:
|
|
1129
1129
|
if (t.length) return Fo(t.props, function(i) {
|
|
@@ -1131,15 +1131,15 @@ var Xo = function(t, r, n, o) {
|
|
|
1131
1131
|
case ":read-only":
|
|
1132
1132
|
case ":read-write":
|
|
1133
1133
|
return Ie([Ge(t, {
|
|
1134
|
-
props: [
|
|
1134
|
+
props: [N(i, /:(read-\w+)/, ":" + mt + "$1")]
|
|
1135
1135
|
})], o);
|
|
1136
1136
|
case "::placeholder":
|
|
1137
1137
|
return Ie([Ge(t, {
|
|
1138
|
-
props: [
|
|
1138
|
+
props: [N(i, /:(plac\w+)/, ":" + F + "input-$1")]
|
|
1139
1139
|
}), Ge(t, {
|
|
1140
|
-
props: [
|
|
1140
|
+
props: [N(i, /:(plac\w+)/, ":" + mt + "$1")]
|
|
1141
1141
|
}), Ge(t, {
|
|
1142
|
-
props: [
|
|
1142
|
+
props: [N(i, /:(plac\w+)/, ee + "input-$1")]
|
|
1143
1143
|
})], o);
|
|
1144
1144
|
}
|
|
1145
1145
|
return "";
|
|
@@ -1150,8 +1150,8 @@ var Xo = function(t, r, n, o) {
|
|
|
1150
1150
|
if (r === "css") {
|
|
1151
1151
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1152
1152
|
Array.prototype.forEach.call(n, function(v) {
|
|
1153
|
-
var
|
|
1154
|
-
|
|
1153
|
+
var x = v.getAttribute("data-emotion");
|
|
1154
|
+
x.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
|
|
1155
1155
|
});
|
|
1156
1156
|
}
|
|
1157
1157
|
var o = t.stylisPlugins || Zo, i = {}, a, c = [];
|
|
@@ -1160,20 +1160,20 @@ var Xo = function(t, r, n, o) {
|
|
|
1160
1160
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1161
1161
|
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
1162
1162
|
function(v) {
|
|
1163
|
-
for (var
|
|
1164
|
-
i[
|
|
1163
|
+
for (var x = v.getAttribute("data-emotion").split(" "), R = 1; R < x.length; R++)
|
|
1164
|
+
i[x[R]] = !0;
|
|
1165
1165
|
c.push(v);
|
|
1166
1166
|
}
|
|
1167
1167
|
);
|
|
1168
1168
|
var l, d = [Go, Qo];
|
|
1169
1169
|
{
|
|
1170
|
-
var f,
|
|
1170
|
+
var f, g = [Vo, Jo(function(v) {
|
|
1171
1171
|
f.insert(v);
|
|
1172
|
-
})], k = zo(d.concat(o,
|
|
1173
|
-
return Ie(qo(
|
|
1172
|
+
})], k = zo(d.concat(o, g)), y = function(x) {
|
|
1173
|
+
return Ie(qo(x), k);
|
|
1174
1174
|
};
|
|
1175
|
-
l = function(
|
|
1176
|
-
f = b,
|
|
1175
|
+
l = function(x, R, b, w) {
|
|
1176
|
+
f = b, y(x ? x + "{" + R.styles + "}" : R.styles), w && (C.inserted[R.name] = !0);
|
|
1177
1177
|
};
|
|
1178
1178
|
}
|
|
1179
1179
|
var C = {
|
|
@@ -1192,7 +1192,7 @@ var Xo = function(t, r, n, o) {
|
|
|
1192
1192
|
insert: l
|
|
1193
1193
|
};
|
|
1194
1194
|
return C.sheet.hydrate(c), C;
|
|
1195
|
-
}, Vt = { exports: {} },
|
|
1195
|
+
}, Vt = { exports: {} }, I = {};
|
|
1196
1196
|
/** @license React v16.13.1
|
|
1197
1197
|
* react-is.production.min.js
|
|
1198
1198
|
*
|
|
@@ -1203,13 +1203,13 @@ var Xo = function(t, r, n, o) {
|
|
|
1203
1203
|
*/
|
|
1204
1204
|
var Ar;
|
|
1205
1205
|
function ti() {
|
|
1206
|
-
if (Ar) return
|
|
1206
|
+
if (Ar) return I;
|
|
1207
1207
|
Ar = 1;
|
|
1208
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112,
|
|
1208
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, k = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
|
|
1209
1209
|
function w(h) {
|
|
1210
1210
|
if (typeof h == "object" && h !== null) {
|
|
1211
|
-
var
|
|
1212
|
-
switch (
|
|
1211
|
+
var Y = h.$$typeof;
|
|
1212
|
+
switch (Y) {
|
|
1213
1213
|
case t:
|
|
1214
1214
|
switch (h = h.type, h) {
|
|
1215
1215
|
case l:
|
|
@@ -1217,57 +1217,57 @@ function ti() {
|
|
|
1217
1217
|
case n:
|
|
1218
1218
|
case i:
|
|
1219
1219
|
case o:
|
|
1220
|
-
case
|
|
1220
|
+
case g:
|
|
1221
1221
|
return h;
|
|
1222
1222
|
default:
|
|
1223
1223
|
switch (h = h && h.$$typeof, h) {
|
|
1224
1224
|
case c:
|
|
1225
1225
|
case f:
|
|
1226
1226
|
case C:
|
|
1227
|
-
case
|
|
1227
|
+
case y:
|
|
1228
1228
|
case a:
|
|
1229
1229
|
return h;
|
|
1230
1230
|
default:
|
|
1231
|
-
return
|
|
1231
|
+
return Y;
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
1234
|
case r:
|
|
1235
|
-
return
|
|
1235
|
+
return Y;
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function $(h) {
|
|
1240
1240
|
return w(h) === d;
|
|
1241
1241
|
}
|
|
1242
|
-
return
|
|
1243
|
-
return
|
|
1244
|
-
},
|
|
1242
|
+
return I.AsyncMode = l, I.ConcurrentMode = d, I.ContextConsumer = c, I.ContextProvider = a, I.Element = t, I.ForwardRef = f, I.Fragment = n, I.Lazy = C, I.Memo = y, I.Portal = r, I.Profiler = i, I.StrictMode = o, I.Suspense = g, I.isAsyncMode = function(h) {
|
|
1243
|
+
return $(h) || w(h) === l;
|
|
1244
|
+
}, I.isConcurrentMode = $, I.isContextConsumer = function(h) {
|
|
1245
1245
|
return w(h) === c;
|
|
1246
|
-
},
|
|
1246
|
+
}, I.isContextProvider = function(h) {
|
|
1247
1247
|
return w(h) === a;
|
|
1248
|
-
},
|
|
1248
|
+
}, I.isElement = function(h) {
|
|
1249
1249
|
return typeof h == "object" && h !== null && h.$$typeof === t;
|
|
1250
|
-
},
|
|
1250
|
+
}, I.isForwardRef = function(h) {
|
|
1251
1251
|
return w(h) === f;
|
|
1252
|
-
},
|
|
1252
|
+
}, I.isFragment = function(h) {
|
|
1253
1253
|
return w(h) === n;
|
|
1254
|
-
},
|
|
1254
|
+
}, I.isLazy = function(h) {
|
|
1255
1255
|
return w(h) === C;
|
|
1256
|
-
},
|
|
1257
|
-
return w(h) ===
|
|
1258
|
-
},
|
|
1256
|
+
}, I.isMemo = function(h) {
|
|
1257
|
+
return w(h) === y;
|
|
1258
|
+
}, I.isPortal = function(h) {
|
|
1259
1259
|
return w(h) === r;
|
|
1260
|
-
},
|
|
1260
|
+
}, I.isProfiler = function(h) {
|
|
1261
1261
|
return w(h) === i;
|
|
1262
|
-
},
|
|
1262
|
+
}, I.isStrictMode = function(h) {
|
|
1263
1263
|
return w(h) === o;
|
|
1264
|
-
},
|
|
1265
|
-
return w(h) ===
|
|
1266
|
-
},
|
|
1267
|
-
return typeof h == "string" || typeof h == "function" || h === n || h === d || h === i || h === o || h ===
|
|
1268
|
-
},
|
|
1264
|
+
}, I.isSuspense = function(h) {
|
|
1265
|
+
return w(h) === g;
|
|
1266
|
+
}, I.isValidElementType = function(h) {
|
|
1267
|
+
return typeof h == "string" || typeof h == "function" || h === n || h === d || h === i || h === o || h === g || h === k || typeof h == "object" && h !== null && (h.$$typeof === C || h.$$typeof === y || h.$$typeof === a || h.$$typeof === c || h.$$typeof === f || h.$$typeof === x || h.$$typeof === R || h.$$typeof === b || h.$$typeof === v);
|
|
1268
|
+
}, I.typeOf = w, I;
|
|
1269
1269
|
}
|
|
1270
|
-
var
|
|
1270
|
+
var D = {};
|
|
1271
1271
|
/** @license React v16.13.1
|
|
1272
1272
|
* react-is.development.js
|
|
1273
1273
|
*
|
|
@@ -1279,34 +1279,34 @@ var W = {};
|
|
|
1279
1279
|
var Fr;
|
|
1280
1280
|
function ri() {
|
|
1281
1281
|
return Fr || (Fr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1282
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112,
|
|
1283
|
-
function w(
|
|
1284
|
-
return typeof
|
|
1285
|
-
|
|
1286
|
-
}
|
|
1287
|
-
function
|
|
1288
|
-
if (typeof
|
|
1289
|
-
var Be =
|
|
1282
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, k = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
|
|
1283
|
+
function w(S) {
|
|
1284
|
+
return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1285
|
+
S === n || S === d || S === i || S === o || S === g || S === k || typeof S == "object" && S !== null && (S.$$typeof === C || S.$$typeof === y || S.$$typeof === a || S.$$typeof === c || S.$$typeof === f || S.$$typeof === x || S.$$typeof === R || S.$$typeof === b || S.$$typeof === v);
|
|
1286
|
+
}
|
|
1287
|
+
function $(S) {
|
|
1288
|
+
if (typeof S == "object" && S !== null) {
|
|
1289
|
+
var Be = S.$$typeof;
|
|
1290
1290
|
switch (Be) {
|
|
1291
1291
|
case t:
|
|
1292
|
-
var $e =
|
|
1292
|
+
var $e = S.type;
|
|
1293
1293
|
switch ($e) {
|
|
1294
1294
|
case l:
|
|
1295
1295
|
case d:
|
|
1296
1296
|
case n:
|
|
1297
1297
|
case i:
|
|
1298
1298
|
case o:
|
|
1299
|
-
case
|
|
1299
|
+
case g:
|
|
1300
1300
|
return $e;
|
|
1301
1301
|
default:
|
|
1302
|
-
var
|
|
1303
|
-
switch (
|
|
1302
|
+
var Te = $e && $e.$$typeof;
|
|
1303
|
+
switch (Te) {
|
|
1304
1304
|
case c:
|
|
1305
1305
|
case f:
|
|
1306
1306
|
case C:
|
|
1307
|
-
case
|
|
1307
|
+
case y:
|
|
1308
1308
|
case a:
|
|
1309
|
-
return
|
|
1309
|
+
return Te;
|
|
1310
1310
|
default:
|
|
1311
1311
|
return Be;
|
|
1312
1312
|
}
|
|
@@ -1316,51 +1316,51 @@ function ri() {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
1318
|
}
|
|
1319
|
-
var h = l,
|
|
1320
|
-
function
|
|
1321
|
-
return
|
|
1319
|
+
var h = l, Y = d, p = c, V = a, z = t, K = f, Me = n, we = C, re = y, he = r, ve = i, E = o, _ = g, M = !1;
|
|
1320
|
+
function A(S) {
|
|
1321
|
+
return M || (M = !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.")), J(S) || $(S) === l;
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1324
|
-
return
|
|
1323
|
+
function J(S) {
|
|
1324
|
+
return $(S) === d;
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1327
|
-
return
|
|
1326
|
+
function G(S) {
|
|
1327
|
+
return $(S) === c;
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1330
|
-
return
|
|
1329
|
+
function ae(S) {
|
|
1330
|
+
return $(S) === a;
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1333
|
-
return typeof
|
|
1332
|
+
function xe(S) {
|
|
1333
|
+
return typeof S == "object" && S !== null && S.$$typeof === t;
|
|
1334
1334
|
}
|
|
1335
|
-
function kt(
|
|
1336
|
-
return
|
|
1335
|
+
function kt(S) {
|
|
1336
|
+
return $(S) === f;
|
|
1337
1337
|
}
|
|
1338
|
-
function _t(
|
|
1339
|
-
return
|
|
1338
|
+
function _t(S) {
|
|
1339
|
+
return $(S) === n;
|
|
1340
1340
|
}
|
|
1341
|
-
function Ve(
|
|
1342
|
-
return
|
|
1341
|
+
function Ve(S) {
|
|
1342
|
+
return $(S) === C;
|
|
1343
1343
|
}
|
|
1344
|
-
function ze(
|
|
1345
|
-
return
|
|
1344
|
+
function ze(S) {
|
|
1345
|
+
return $(S) === y;
|
|
1346
1346
|
}
|
|
1347
|
-
function Pe(
|
|
1348
|
-
return
|
|
1347
|
+
function Pe(S) {
|
|
1348
|
+
return $(S) === r;
|
|
1349
1349
|
}
|
|
1350
|
-
function Je(
|
|
1351
|
-
return
|
|
1350
|
+
function Je(S) {
|
|
1351
|
+
return $(S) === i;
|
|
1352
1352
|
}
|
|
1353
|
-
function Oe(
|
|
1354
|
-
return
|
|
1353
|
+
function Oe(S) {
|
|
1354
|
+
return $(S) === o;
|
|
1355
1355
|
}
|
|
1356
|
-
function Mt(
|
|
1357
|
-
return
|
|
1356
|
+
function Mt(S) {
|
|
1357
|
+
return $(S) === g;
|
|
1358
1358
|
}
|
|
1359
|
-
|
|
1360
|
-
}()),
|
|
1359
|
+
D.AsyncMode = h, D.ConcurrentMode = Y, D.ContextConsumer = p, D.ContextProvider = V, D.Element = z, D.ForwardRef = K, D.Fragment = Me, D.Lazy = we, D.Memo = re, D.Portal = he, D.Profiler = ve, D.StrictMode = E, D.Suspense = _, D.isAsyncMode = A, D.isConcurrentMode = J, D.isContextConsumer = G, D.isContextProvider = ae, D.isElement = xe, D.isForwardRef = kt, D.isFragment = _t, D.isLazy = Ve, D.isMemo = ze, D.isPortal = Pe, D.isProfiler = Je, D.isStrictMode = Oe, D.isSuspense = Mt, D.isValidElementType = w, D.typeOf = $;
|
|
1360
|
+
}()), D;
|
|
1361
1361
|
}
|
|
1362
1362
|
process.env.NODE_ENV === "production" ? Vt.exports = ti() : Vt.exports = ri();
|
|
1363
|
-
var ni = Vt.exports,
|
|
1363
|
+
var ni = Vt.exports, mn = ni, oi = {
|
|
1364
1364
|
$$typeof: !0,
|
|
1365
1365
|
render: !0,
|
|
1366
1366
|
defaultProps: !0,
|
|
@@ -1374,8 +1374,8 @@ var ni = Vt.exports, gn = ni, oi = {
|
|
|
1374
1374
|
propTypes: !0,
|
|
1375
1375
|
type: !0
|
|
1376
1376
|
}, pn = {};
|
|
1377
|
-
pn[
|
|
1378
|
-
pn[
|
|
1377
|
+
pn[mn.ForwardRef] = oi;
|
|
1378
|
+
pn[mn.Memo] = ii;
|
|
1379
1379
|
var si = !0;
|
|
1380
1380
|
function ai(e, t, r) {
|
|
1381
1381
|
var n = "";
|
|
@@ -1485,10 +1485,10 @@ var ui = {
|
|
|
1485
1485
|
case "animationName":
|
|
1486
1486
|
if (typeof r == "string")
|
|
1487
1487
|
return r.replace(hi, function(n, o, i) {
|
|
1488
|
-
return
|
|
1488
|
+
return pe = {
|
|
1489
1489
|
name: o,
|
|
1490
1490
|
styles: i,
|
|
1491
|
-
next:
|
|
1491
|
+
next: pe
|
|
1492
1492
|
}, o;
|
|
1493
1493
|
});
|
|
1494
1494
|
}
|
|
@@ -1506,20 +1506,20 @@ function et(e, t, r) {
|
|
|
1506
1506
|
case "object": {
|
|
1507
1507
|
var o = r;
|
|
1508
1508
|
if (o.anim === 1)
|
|
1509
|
-
return
|
|
1509
|
+
return pe = {
|
|
1510
1510
|
name: o.name,
|
|
1511
1511
|
styles: o.styles,
|
|
1512
|
-
next:
|
|
1512
|
+
next: pe
|
|
1513
1513
|
}, o.name;
|
|
1514
1514
|
var i = r;
|
|
1515
1515
|
if (i.styles !== void 0) {
|
|
1516
1516
|
var a = i.next;
|
|
1517
1517
|
if (a !== void 0)
|
|
1518
1518
|
for (; a !== void 0; )
|
|
1519
|
-
|
|
1519
|
+
pe = {
|
|
1520
1520
|
name: a.name,
|
|
1521
1521
|
styles: a.styles,
|
|
1522
|
-
next:
|
|
1522
|
+
next: pe
|
|
1523
1523
|
}, a = a.next;
|
|
1524
1524
|
var c = i.styles + ";";
|
|
1525
1525
|
return c;
|
|
@@ -1528,8 +1528,8 @@ function et(e, t, r) {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
case "function": {
|
|
1530
1530
|
if (e !== void 0) {
|
|
1531
|
-
var l =
|
|
1532
|
-
return
|
|
1531
|
+
var l = pe, d = r(e);
|
|
1532
|
+
return pe = l, et(e, t, d);
|
|
1533
1533
|
}
|
|
1534
1534
|
break;
|
|
1535
1535
|
}
|
|
@@ -1566,12 +1566,12 @@ function di(e, t, r) {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
return n;
|
|
1568
1568
|
}
|
|
1569
|
-
var Ir = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
|
1570
|
-
function
|
|
1569
|
+
var Ir = /label:\s*([^\s;{]+)\s*(;|$)/g, pe;
|
|
1570
|
+
function gi(e, t, r) {
|
|
1571
1571
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1572
1572
|
return e[0];
|
|
1573
1573
|
var n = !0, o = "";
|
|
1574
|
-
|
|
1574
|
+
pe = void 0;
|
|
1575
1575
|
var i = e[0];
|
|
1576
1576
|
if (i == null || i.raw === void 0)
|
|
1577
1577
|
n = !1, o += et(r, t, i);
|
|
@@ -1587,16 +1587,16 @@ function mi(e, t, r) {
|
|
|
1587
1587
|
Ir.lastIndex = 0;
|
|
1588
1588
|
for (var d = "", f; (f = Ir.exec(o)) !== null; )
|
|
1589
1589
|
d += "-" + f[1];
|
|
1590
|
-
var
|
|
1590
|
+
var g = li(o) + d;
|
|
1591
1591
|
return {
|
|
1592
|
-
name:
|
|
1592
|
+
name: g,
|
|
1593
1593
|
styles: o,
|
|
1594
|
-
next:
|
|
1594
|
+
next: pe
|
|
1595
1595
|
};
|
|
1596
1596
|
}
|
|
1597
|
-
var
|
|
1597
|
+
var mi = function(t) {
|
|
1598
1598
|
return t();
|
|
1599
|
-
}, pi =
|
|
1599
|
+
}, pi = Ee.useInsertionEffect ? Ee.useInsertionEffect : !1, yi = pi || mi, xn = /* @__PURE__ */ Ee.createContext(
|
|
1600
1600
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1601
1601
|
// because this module is primarily intended for the browser and node
|
|
1602
1602
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -1613,7 +1613,7 @@ var vi = function(t) {
|
|
|
1613
1613
|
var o = lo(xn);
|
|
1614
1614
|
return t(r, o, n);
|
|
1615
1615
|
});
|
|
1616
|
-
}, xi = /* @__PURE__ */
|
|
1616
|
+
}, xi = /* @__PURE__ */ Ee.createContext({}), Zt = {}.hasOwnProperty, zt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", bi = function(t, r) {
|
|
1617
1617
|
var n = {};
|
|
1618
1618
|
for (var o in r)
|
|
1619
1619
|
Zt.call(r, o) && (n[o] = r[o]);
|
|
@@ -1628,16 +1628,16 @@ var vi = function(t) {
|
|
|
1628
1628
|
typeof n == "string" && t.registered[n] !== void 0 && (n = t.registered[n]);
|
|
1629
1629
|
var o = e[zt], i = [n], a = "";
|
|
1630
1630
|
typeof e.className == "string" ? a = ai(t.registered, i, e.className) : e.className != null && (a = e.className + " ");
|
|
1631
|
-
var c =
|
|
1631
|
+
var c = gi(i, void 0, Ee.useContext(xi));
|
|
1632
1632
|
a += t.key + "-" + c.name;
|
|
1633
1633
|
var l = {};
|
|
1634
1634
|
for (var d in e)
|
|
1635
1635
|
Zt.call(e, d) && d !== "css" && d !== zt && (l[d] = e[d]);
|
|
1636
|
-
return l.className = a, r && (l.ref = r), /* @__PURE__ */
|
|
1636
|
+
return l.className = a, r && (l.ref = r), /* @__PURE__ */ Ee.createElement(Ee.Fragment, null, /* @__PURE__ */ Ee.createElement(Ei, {
|
|
1637
1637
|
cache: t,
|
|
1638
1638
|
serialized: c,
|
|
1639
1639
|
isStringTag: typeof o == "string"
|
|
1640
|
-
}), /* @__PURE__ */
|
|
1640
|
+
}), /* @__PURE__ */ Ee.createElement(o, l));
|
|
1641
1641
|
}), Ci = Si, Tt = function(t, r, n) {
|
|
1642
1642
|
return Zt.call(r, "css") ? Mr.jsx(Ci, bi(t, r), n) : Mr.jsx(t, r, n);
|
|
1643
1643
|
};
|
|
@@ -1658,54 +1658,54 @@ function Ti(e = {}) {
|
|
|
1658
1658
|
return en(e);
|
|
1659
1659
|
}
|
|
1660
1660
|
function Ps(e) {
|
|
1661
|
-
return [ho(),
|
|
1661
|
+
return [ho(), go(e)];
|
|
1662
1662
|
}
|
|
1663
1663
|
function ki() {
|
|
1664
|
-
return
|
|
1664
|
+
return Re.of([Wt]);
|
|
1665
1665
|
}
|
|
1666
1666
|
const Os = [ki(), Ti()], _i = tn.define([{
|
|
1667
|
-
tag:
|
|
1667
|
+
tag: W.keyword,
|
|
1668
1668
|
color: "#1a1aa6",
|
|
1669
1669
|
fontWeight: "bold"
|
|
1670
1670
|
}, {
|
|
1671
|
-
tag:
|
|
1671
|
+
tag: W.comment,
|
|
1672
1672
|
color: "#008000",
|
|
1673
1673
|
fontStyle: "italic"
|
|
1674
1674
|
}, {
|
|
1675
|
-
tag:
|
|
1675
|
+
tag: W.string,
|
|
1676
1676
|
color: "#a31515"
|
|
1677
1677
|
}, {
|
|
1678
|
-
tag:
|
|
1678
|
+
tag: W.number,
|
|
1679
1679
|
color: "#098658"
|
|
1680
1680
|
}, {
|
|
1681
|
-
tag:
|
|
1681
|
+
tag: W.operator,
|
|
1682
1682
|
color: "#777777"
|
|
1683
1683
|
}, {
|
|
1684
|
-
tag:
|
|
1684
|
+
tag: W.propertyName,
|
|
1685
1685
|
color: "#0451a5"
|
|
1686
1686
|
}, {
|
|
1687
|
-
tag:
|
|
1687
|
+
tag: W.variableName,
|
|
1688
1688
|
color: "#001080"
|
|
1689
1689
|
}, {
|
|
1690
|
-
tag:
|
|
1690
|
+
tag: W.definition(W.variableName),
|
|
1691
1691
|
color: "#1a1aa6"
|
|
1692
1692
|
}, {
|
|
1693
|
-
tag:
|
|
1693
|
+
tag: W.typeName,
|
|
1694
1694
|
color: "#267f99"
|
|
1695
1695
|
}, {
|
|
1696
|
-
tag:
|
|
1696
|
+
tag: W.className,
|
|
1697
1697
|
color: "#267f99"
|
|
1698
1698
|
}, {
|
|
1699
|
-
tag:
|
|
1699
|
+
tag: W.meta,
|
|
1700
1700
|
color: "#5c5c5c"
|
|
1701
1701
|
}, {
|
|
1702
|
-
tag:
|
|
1702
|
+
tag: W.regexp,
|
|
1703
1703
|
color: "#811f3f"
|
|
1704
1704
|
}, {
|
|
1705
|
-
tag:
|
|
1705
|
+
tag: W.link,
|
|
1706
1706
|
color: "#0563c1",
|
|
1707
1707
|
textDecoration: "underline"
|
|
1708
|
-
}]), Dr = [
|
|
1708
|
+
}]), Dr = [q.theme({
|
|
1709
1709
|
"&": {
|
|
1710
1710
|
backgroundColor: "#ffffff",
|
|
1711
1711
|
color: "#333333",
|
|
@@ -1749,49 +1749,49 @@ const Os = [ki(), Ti()], _i = tn.define([{
|
|
|
1749
1749
|
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": {
|
|
1750
1750
|
backgroundColor: "rgba(181, 213, 255, 0.5)"
|
|
1751
1751
|
}
|
|
1752
|
-
}),
|
|
1753
|
-
tag:
|
|
1752
|
+
}), gt(_i)], Mi = tn.define([{
|
|
1753
|
+
tag: W.keyword,
|
|
1754
1754
|
color: "#569cd6",
|
|
1755
1755
|
fontWeight: "bold"
|
|
1756
1756
|
}, {
|
|
1757
|
-
tag:
|
|
1757
|
+
tag: W.comment,
|
|
1758
1758
|
color: "#6A9955",
|
|
1759
1759
|
fontStyle: "italic"
|
|
1760
1760
|
}, {
|
|
1761
|
-
tag:
|
|
1761
|
+
tag: W.string,
|
|
1762
1762
|
color: "#ce9178"
|
|
1763
1763
|
}, {
|
|
1764
|
-
tag:
|
|
1764
|
+
tag: W.number,
|
|
1765
1765
|
color: "#b5cea8"
|
|
1766
1766
|
}, {
|
|
1767
|
-
tag:
|
|
1767
|
+
tag: W.operator,
|
|
1768
1768
|
color: "#d4d4d4"
|
|
1769
1769
|
}, {
|
|
1770
|
-
tag:
|
|
1770
|
+
tag: W.propertyName,
|
|
1771
1771
|
color: "#9cdcfe"
|
|
1772
1772
|
}, {
|
|
1773
|
-
tag:
|
|
1773
|
+
tag: W.variableName,
|
|
1774
1774
|
color: "#9cdcfe"
|
|
1775
1775
|
}, {
|
|
1776
|
-
tag:
|
|
1776
|
+
tag: W.definition(W.variableName),
|
|
1777
1777
|
color: "#4fc1ff"
|
|
1778
1778
|
}, {
|
|
1779
|
-
tag:
|
|
1779
|
+
tag: W.typeName,
|
|
1780
1780
|
color: "#4ec9b0"
|
|
1781
1781
|
}, {
|
|
1782
|
-
tag:
|
|
1782
|
+
tag: W.className,
|
|
1783
1783
|
color: "#4ec9b0"
|
|
1784
1784
|
}, {
|
|
1785
|
-
tag:
|
|
1785
|
+
tag: W.meta,
|
|
1786
1786
|
color: "#d4d4d4"
|
|
1787
1787
|
}, {
|
|
1788
|
-
tag:
|
|
1788
|
+
tag: W.regexp,
|
|
1789
1789
|
color: "#d16969"
|
|
1790
1790
|
}, {
|
|
1791
|
-
tag:
|
|
1791
|
+
tag: W.link,
|
|
1792
1792
|
color: "#4e94ce",
|
|
1793
1793
|
textDecoration: "underline"
|
|
1794
|
-
}]), Pi = [
|
|
1794
|
+
}]), Pi = [q.theme({
|
|
1795
1795
|
"&": {
|
|
1796
1796
|
backgroundColor: "#1e1e1e",
|
|
1797
1797
|
color: "#d4d4d4",
|
|
@@ -1835,7 +1835,7 @@ const Os = [ki(), Ti()], _i = tn.define([{
|
|
|
1835
1835
|
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": {
|
|
1836
1836
|
backgroundColor: "rgba(255, 255, 255, 0.1)"
|
|
1837
1837
|
}
|
|
1838
|
-
}),
|
|
1838
|
+
}), gt(Mi)];
|
|
1839
1839
|
function Oi(e) {
|
|
1840
1840
|
switch (e) {
|
|
1841
1841
|
case "light":
|
|
@@ -1865,7 +1865,7 @@ const Wr = (e) => {
|
|
|
1865
1865
|
}), t;
|
|
1866
1866
|
}, $i = '{"name":"Alice","age":25,"profile":{"city":"NY"}}';
|
|
1867
1867
|
function $s(e, t) {
|
|
1868
|
-
const r = [], n =
|
|
1868
|
+
const r = [], n = be.create({
|
|
1869
1869
|
doc: $i,
|
|
1870
1870
|
extensions: [Ht()]
|
|
1871
1871
|
});
|
|
@@ -1881,7 +1881,7 @@ function $s(e, t) {
|
|
|
1881
1881
|
}
|
|
1882
1882
|
const pt = qe.define(), jr = St.define({
|
|
1883
1883
|
create() {
|
|
1884
|
-
return
|
|
1884
|
+
return Q.none;
|
|
1885
1885
|
},
|
|
1886
1886
|
update(e, t) {
|
|
1887
1887
|
e = e.map(t.changes);
|
|
@@ -1891,13 +1891,13 @@ const pt = qe.define(), jr = St.define({
|
|
|
1891
1891
|
return t.docChanged, e;
|
|
1892
1892
|
},
|
|
1893
1893
|
provide(e) {
|
|
1894
|
-
return
|
|
1894
|
+
return q.decorations.from(e);
|
|
1895
1895
|
}
|
|
1896
1896
|
});
|
|
1897
1897
|
function bn(e) {
|
|
1898
1898
|
const t = [];
|
|
1899
1899
|
return console.log(e, 9999299), e.forEach((r) => {
|
|
1900
|
-
r.start < r.end && t.push(
|
|
1900
|
+
r.start < r.end && t.push(Q.mark({
|
|
1901
1901
|
inclusive: !0,
|
|
1902
1902
|
attributes: {
|
|
1903
1903
|
class: "cm-readOnly",
|
|
@@ -1906,7 +1906,7 @@ function bn(e) {
|
|
|
1906
1906
|
// 设置较低的优先级,确保语法高亮装饰可以覆盖
|
|
1907
1907
|
priority: -100
|
|
1908
1908
|
}).range(r.start, r.end));
|
|
1909
|
-
}),
|
|
1909
|
+
}), Q.set(t);
|
|
1910
1910
|
}
|
|
1911
1911
|
const er = /* @__PURE__ */ new WeakMap();
|
|
1912
1912
|
function Ai(e) {
|
|
@@ -1917,7 +1917,7 @@ function Ai(e) {
|
|
|
1917
1917
|
// 添加状态字段
|
|
1918
1918
|
jr.init(() => bn(t)),
|
|
1919
1919
|
// 添加按键映射,专门处理回车键
|
|
1920
|
-
|
|
1920
|
+
Re.of([{
|
|
1921
1921
|
key: "Enter",
|
|
1922
1922
|
run: (r) => {
|
|
1923
1923
|
const n = r.state.selection.main, {
|
|
@@ -1949,7 +1949,7 @@ function Ai(e) {
|
|
|
1949
1949
|
}
|
|
1950
1950
|
}]),
|
|
1951
1951
|
// 添加事务过滤器,阻止只读区域的编辑
|
|
1952
|
-
|
|
1952
|
+
be.transactionFilter.of((r) => {
|
|
1953
1953
|
if (!r.docChanged || r.isUserEvent("input.type.Enter") || r.isUserEvent("input.enter"))
|
|
1954
1954
|
return r;
|
|
1955
1955
|
let n = !1;
|
|
@@ -1974,7 +1974,7 @@ function Ai(e) {
|
|
|
1974
1974
|
}), n ? [] : r;
|
|
1975
1975
|
}),
|
|
1976
1976
|
// 动态更新只读区域的装饰
|
|
1977
|
-
|
|
1977
|
+
q.updateListener.of((r) => {
|
|
1978
1978
|
if (r.docChanged) {
|
|
1979
1979
|
const n = Ni(t, r);
|
|
1980
1980
|
!Fi(t, n) ? (t = n, er.set(r.view, n), r.view.dispatch({
|
|
@@ -1985,7 +1985,7 @@ function Ai(e) {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
}),
|
|
1987
1987
|
// 添加一个延迟执行的额外更新,以确保在文档变化后能重新计算语法高亮
|
|
1988
|
-
|
|
1988
|
+
q.updateListener.of((r) => {
|
|
1989
1989
|
r.docChanged && setTimeout(() => {
|
|
1990
1990
|
r.view.state.field(jr, !1) && r.view.dispatch({});
|
|
1991
1991
|
}, 10);
|
|
@@ -2010,19 +2010,19 @@ function Ni(e, t) {
|
|
|
2010
2010
|
...i
|
|
2011
2011
|
};
|
|
2012
2012
|
return t.changes.iterChanges((c, l, d, f) => {
|
|
2013
|
-
const
|
|
2014
|
-
if (c === 0 && (r = !0), c === 0 &&
|
|
2015
|
-
a.start =
|
|
2013
|
+
const g = f - d, k = l - c, y = g - k;
|
|
2014
|
+
if (c === 0 && (r = !0), c === 0 && g > 0 && i.start === 0) {
|
|
2015
|
+
a.start = g, a.end += y;
|
|
2016
2016
|
return;
|
|
2017
2017
|
}
|
|
2018
2018
|
if (l <= i.start)
|
|
2019
|
-
a.start +=
|
|
2019
|
+
a.start += y, a.end += y;
|
|
2020
2020
|
else if (c >= i.start && c < i.end && l >= i.end)
|
|
2021
2021
|
a.end = c;
|
|
2022
2022
|
else if (!(c >= i.start && l <= i.end)) {
|
|
2023
2023
|
if (c < i.end && l > i.end) {
|
|
2024
2024
|
const C = i.end - c;
|
|
2025
|
-
a.end = c + Math.min(C,
|
|
2025
|
+
a.end = c + Math.min(C, g);
|
|
2026
2026
|
}
|
|
2027
2027
|
}
|
|
2028
2028
|
}), a;
|
|
@@ -2039,7 +2039,7 @@ function Ni(e, t) {
|
|
|
2039
2039
|
function Li(e) {
|
|
2040
2040
|
return er.get(e) || [];
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function Se(e, t) {
|
|
2043
2043
|
const r = t.map((n) => ({
|
|
2044
2044
|
...n
|
|
2045
2045
|
}));
|
|
@@ -2049,7 +2049,7 @@ function Ee(e, t) {
|
|
|
2049
2049
|
e.dom && document.contains(e.dom) && e.dispatch({});
|
|
2050
2050
|
}, 10);
|
|
2051
2051
|
}
|
|
2052
|
-
function
|
|
2052
|
+
function X() {
|
|
2053
2053
|
var e = arguments[0];
|
|
2054
2054
|
typeof e == "string" && (e = document.createElement(e));
|
|
2055
2055
|
var t = 1, r = arguments[1];
|
|
@@ -2249,7 +2249,7 @@ function yt(e, t) {
|
|
|
2249
2249
|
return t;
|
|
2250
2250
|
}
|
|
2251
2251
|
function Jt(e) {
|
|
2252
|
-
let t = String(e.state.doc.lineAt(e.state.selection.main.head).number), r =
|
|
2252
|
+
let t = String(e.state.doc.lineAt(e.state.selection.main.head).number), r = X("input", { class: "cm-textfield", name: "line", value: t }), n = X("form", {
|
|
2253
2253
|
class: "cm-gotoLine",
|
|
2254
2254
|
onkeydown: (i) => {
|
|
2255
2255
|
i.keyCode == 27 ? (i.preventDefault(), e.dispatch({ effects: Qe.of(!1) }), e.focus()) : i.keyCode == 13 && (i.preventDefault(), o());
|
|
@@ -2257,7 +2257,7 @@ function Jt(e) {
|
|
|
2257
2257
|
onsubmit: (i) => {
|
|
2258
2258
|
i.preventDefault(), o();
|
|
2259
2259
|
}
|
|
2260
|
-
},
|
|
2260
|
+
}, X("label", e.state.phrase("Go to line"), ": ", r), " ", X("button", { class: "cm-button", type: "submit" }, e.state.phrase("go")), X("button", {
|
|
2261
2261
|
name: "close",
|
|
2262
2262
|
onclick: () => {
|
|
2263
2263
|
e.dispatch({ effects: Qe.of(!1) }), e.focus();
|
|
@@ -2269,14 +2269,14 @@ function Jt(e) {
|
|
|
2269
2269
|
let i = /^([+-])?(\d+)?(:\d+)?(%)?$/.exec(r.value);
|
|
2270
2270
|
if (!i)
|
|
2271
2271
|
return;
|
|
2272
|
-
let { state: a } = e, c = a.doc.lineAt(a.selection.main.head), [, l, d, f,
|
|
2273
|
-
if (d &&
|
|
2274
|
-
let
|
|
2275
|
-
l && (
|
|
2276
|
-
} else d && l && (
|
|
2277
|
-
let C = a.doc.line(Math.max(1, Math.min(a.doc.lines,
|
|
2272
|
+
let { state: a } = e, c = a.doc.lineAt(a.selection.main.head), [, l, d, f, g] = i, k = f ? +f.slice(1) : 0, y = d ? +d : c.number;
|
|
2273
|
+
if (d && g) {
|
|
2274
|
+
let x = y / 100;
|
|
2275
|
+
l && (x = x * (l == "-" ? -1 : 1) + c.number / a.doc.lines), y = Math.round(a.doc.lines * x);
|
|
2276
|
+
} else d && l && (y = y * (l == "-" ? -1 : 1) + c.number);
|
|
2277
|
+
let C = a.doc.line(Math.max(1, Math.min(a.doc.lines, y))), v = de.cursor(C.from + Math.max(0, Math.min(k, C.length)));
|
|
2278
2278
|
e.dispatch({
|
|
2279
|
-
effects: [Qe.of(!1),
|
|
2279
|
+
effects: [Qe.of(!1), q.scrollIntoView(v.from, { y: "center" })],
|
|
2280
2280
|
selection: v
|
|
2281
2281
|
}), e.focus();
|
|
2282
2282
|
}
|
|
@@ -2299,7 +2299,7 @@ const Qe = /* @__PURE__ */ qe.define(), Yr = /* @__PURE__ */ St.define({
|
|
|
2299
2299
|
e.state.field(Yr, !1) == null && r.push(qe.appendConfig.of([Yr, Wi])), e.dispatch({ effects: r }), t = dt(e, Jt);
|
|
2300
2300
|
}
|
|
2301
2301
|
return t && t.dom.querySelector("input").select(), !0;
|
|
2302
|
-
}, Wi = /* @__PURE__ */
|
|
2302
|
+
}, Wi = /* @__PURE__ */ q.baseTheme({
|
|
2303
2303
|
".cm-panel.cm-gotoLine": {
|
|
2304
2304
|
padding: "2px 6px 4px",
|
|
2305
2305
|
position: "relative",
|
|
@@ -2333,12 +2333,12 @@ function rr(e) {
|
|
|
2333
2333
|
let t = [Ji, zi];
|
|
2334
2334
|
return e && t.push(wn.of(e)), t;
|
|
2335
2335
|
}
|
|
2336
|
-
const qi = /* @__PURE__ */
|
|
2336
|
+
const qi = /* @__PURE__ */ Q.mark({ class: "cm-selectionMatch" }), Yi = /* @__PURE__ */ Q.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
|
|
2337
2337
|
function Vr(e, t, r, n) {
|
|
2338
|
-
return (r == 0 || e(t.sliceDoc(r - 1, r)) !=
|
|
2338
|
+
return (r == 0 || e(t.sliceDoc(r - 1, r)) != fe.Word) && (n == t.doc.length || e(t.sliceDoc(n, n + 1)) != fe.Word);
|
|
2339
2339
|
}
|
|
2340
2340
|
function Vi(e, t, r, n) {
|
|
2341
|
-
return e(t.sliceDoc(r, r + 1)) ==
|
|
2341
|
+
return e(t.sliceDoc(r, r + 1)) == fe.Word && e(t.sliceDoc(n - 1, n)) == fe.Word;
|
|
2342
2342
|
}
|
|
2343
2343
|
const zi = /* @__PURE__ */ Xr.fromClass(class {
|
|
2344
2344
|
constructor(e) {
|
|
@@ -2350,43 +2350,43 @@ const zi = /* @__PURE__ */ Xr.fromClass(class {
|
|
|
2350
2350
|
getDeco(e) {
|
|
2351
2351
|
let t = e.state.facet(wn), { state: r } = e, n = r.selection;
|
|
2352
2352
|
if (n.ranges.length > 1)
|
|
2353
|
-
return
|
|
2353
|
+
return Q.none;
|
|
2354
2354
|
let o = n.main, i, a = null;
|
|
2355
2355
|
if (o.empty) {
|
|
2356
2356
|
if (!t.highlightWordAroundCursor)
|
|
2357
|
-
return
|
|
2357
|
+
return Q.none;
|
|
2358
2358
|
let l = r.wordAt(o.head);
|
|
2359
2359
|
if (!l)
|
|
2360
|
-
return
|
|
2360
|
+
return Q.none;
|
|
2361
2361
|
a = r.charCategorizer(o.head), i = r.sliceDoc(l.from, l.to);
|
|
2362
2362
|
} else {
|
|
2363
2363
|
let l = o.to - o.from;
|
|
2364
2364
|
if (l < t.minSelectionLength || l > 200)
|
|
2365
|
-
return
|
|
2365
|
+
return Q.none;
|
|
2366
2366
|
if (t.wholeWords) {
|
|
2367
2367
|
if (i = r.sliceDoc(o.from, o.to), a = r.charCategorizer(o.head), !(Vr(a, r, o.from, o.to) && Vi(a, r, o.from, o.to)))
|
|
2368
|
-
return
|
|
2368
|
+
return Q.none;
|
|
2369
2369
|
} else if (i = r.sliceDoc(o.from, o.to), !i)
|
|
2370
|
-
return
|
|
2370
|
+
return Q.none;
|
|
2371
2371
|
}
|
|
2372
2372
|
let c = [];
|
|
2373
2373
|
for (let l of e.visibleRanges) {
|
|
2374
2374
|
let d = new je(r.doc, i, l.from, l.to);
|
|
2375
2375
|
for (; !d.next().done; ) {
|
|
2376
|
-
let { from: f, to:
|
|
2377
|
-
if ((!a || Vr(a, r, f,
|
|
2378
|
-
return
|
|
2376
|
+
let { from: f, to: g } = d.value;
|
|
2377
|
+
if ((!a || Vr(a, r, f, g)) && (o.empty && f <= o.from && g >= o.to ? c.push(Yi.range(f, g)) : (f >= o.to || g <= o.from) && c.push(qi.range(f, g)), c.length > t.maxMatches))
|
|
2378
|
+
return Q.none;
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
|
-
return
|
|
2381
|
+
return Q.set(c);
|
|
2382
2382
|
}
|
|
2383
2383
|
}, {
|
|
2384
2384
|
decorations: (e) => e.decorations
|
|
2385
|
-
}), Ji = /* @__PURE__ */
|
|
2385
|
+
}), Ji = /* @__PURE__ */ q.baseTheme({
|
|
2386
2386
|
".cm-selectionMatch": { backgroundColor: "#99ff7780" },
|
|
2387
2387
|
".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" }
|
|
2388
2388
|
}), Bi = ({ state: e, dispatch: t }) => {
|
|
2389
|
-
let { selection: r } = e, n =
|
|
2389
|
+
let { selection: r } = e, n = de.create(r.ranges.map((o) => e.wordAt(o.head) || de.cursor(o.head)), r.mainIndex);
|
|
2390
2390
|
return n.eq(r) ? !1 : (t(e.update({ selection: n })), !0);
|
|
2391
2391
|
};
|
|
2392
2392
|
function Ui(e, t) {
|
|
@@ -2416,10 +2416,10 @@ const Hi = ({ state: e, dispatch: t }) => {
|
|
|
2416
2416
|
return !1;
|
|
2417
2417
|
let o = Ui(e, n);
|
|
2418
2418
|
return o ? (t(e.update({
|
|
2419
|
-
selection: e.selection.addRange(
|
|
2420
|
-
effects:
|
|
2419
|
+
selection: e.selection.addRange(de.range(o.from, o.to), !1),
|
|
2420
|
+
effects: q.scrollIntoView(o.to)
|
|
2421
2421
|
})), !0) : !1;
|
|
2422
|
-
},
|
|
2422
|
+
}, _e = /* @__PURE__ */ rn.define({
|
|
2423
2423
|
combine(e) {
|
|
2424
2424
|
return on(e, {
|
|
2425
2425
|
top: !1,
|
|
@@ -2428,12 +2428,12 @@ const Hi = ({ state: e, dispatch: t }) => {
|
|
|
2428
2428
|
regexp: !1,
|
|
2429
2429
|
wholeWord: !1,
|
|
2430
2430
|
createPanel: (t) => new is(t),
|
|
2431
|
-
scrollToMatch: (t) =>
|
|
2431
|
+
scrollToMatch: (t) => q.scrollIntoView(t)
|
|
2432
2432
|
});
|
|
2433
2433
|
}
|
|
2434
2434
|
});
|
|
2435
2435
|
function Tn(e) {
|
|
2436
|
-
return e ? [
|
|
2436
|
+
return e ? [_e.of(e), Ut] : Ut;
|
|
2437
2437
|
}
|
|
2438
2438
|
class kn {
|
|
2439
2439
|
/**
|
|
@@ -2466,7 +2466,7 @@ class kn {
|
|
|
2466
2466
|
range in the given state.
|
|
2467
2467
|
*/
|
|
2468
2468
|
getCursor(t, r = 0, n) {
|
|
2469
|
-
let o = t.doc ? t :
|
|
2469
|
+
let o = t.doc ? t : be.create({ doc: t });
|
|
2470
2470
|
return n == null && (n = o.doc.length), this.regexp ? Le(this, o, r, n) : Ne(this, o, r, n);
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
@@ -2479,7 +2479,7 @@ function Ne(e, t, r, n) {
|
|
|
2479
2479
|
return new je(t.doc, e.unquoted, r, n, e.caseSensitive ? void 0 : (o) => o.toLowerCase(), e.wholeWord ? Ki(t.doc, t.charCategorizer(t.selection.main.head)) : void 0);
|
|
2480
2480
|
}
|
|
2481
2481
|
function Ki(e, t) {
|
|
2482
|
-
return (r, n, o, i) => ((i > r || i + o.length < n) && (i = Math.max(0, r - 2), o = e.sliceString(i, Math.min(e.length, n + 2))), (t(vt(o, r - i)) !=
|
|
2482
|
+
return (r, n, o, i) => ((i > r || i + o.length < n) && (i = Math.max(0, r - 2), o = e.sliceString(i, Math.min(e.length, n + 2))), (t(vt(o, r - i)) != fe.Word || t(xt(o, r - i)) != fe.Word) && (t(xt(o, n - i)) != fe.Word || t(vt(o, n - i)) != fe.Word));
|
|
2483
2483
|
}
|
|
2484
2484
|
class Gi extends _n {
|
|
2485
2485
|
constructor(t) {
|
|
@@ -2542,7 +2542,7 @@ function xt(e, t) {
|
|
|
2542
2542
|
return e.slice(t, an(e, t));
|
|
2543
2543
|
}
|
|
2544
2544
|
function Qi(e) {
|
|
2545
|
-
return (t, r, n) => !n[0].length || (e(vt(n.input, n.index)) !=
|
|
2545
|
+
return (t, r, n) => !n[0].length || (e(vt(n.input, n.index)) != fe.Word || e(xt(n.input, n.index)) != fe.Word) && (e(xt(n.input, n.index + n[0].length)) != fe.Word || e(vt(n.input, n.index + n[0].length)) != fe.Word);
|
|
2546
2546
|
}
|
|
2547
2547
|
class Xi extends _n {
|
|
2548
2548
|
nextMatch(t, r, n) {
|
|
@@ -2600,7 +2600,7 @@ class Xi extends _n {
|
|
|
2600
2600
|
o(i.value.from, i.value.to);
|
|
2601
2601
|
}
|
|
2602
2602
|
}
|
|
2603
|
-
const tt = /* @__PURE__ */ qe.define(), nr = /* @__PURE__ */ qe.define(),
|
|
2603
|
+
const tt = /* @__PURE__ */ qe.define(), nr = /* @__PURE__ */ qe.define(), Ce = /* @__PURE__ */ St.define({
|
|
2604
2604
|
create(e) {
|
|
2605
2605
|
return new Dt(Bt(e).create(), null);
|
|
2606
2606
|
},
|
|
@@ -2616,25 +2616,25 @@ class Dt {
|
|
|
2616
2616
|
this.query = t, this.panel = r;
|
|
2617
2617
|
}
|
|
2618
2618
|
}
|
|
2619
|
-
const Zi = /* @__PURE__ */
|
|
2619
|
+
const Zi = /* @__PURE__ */ Q.mark({ class: "cm-searchMatch" }), es = /* @__PURE__ */ Q.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), ts = /* @__PURE__ */ Xr.fromClass(class {
|
|
2620
2620
|
constructor(e) {
|
|
2621
|
-
this.view = e, this.decorations = this.highlight(e.state.field(
|
|
2621
|
+
this.view = e, this.decorations = this.highlight(e.state.field(Ce));
|
|
2622
2622
|
}
|
|
2623
2623
|
update(e) {
|
|
2624
|
-
let t = e.state.field(
|
|
2625
|
-
(t != e.startState.field(
|
|
2624
|
+
let t = e.state.field(Ce);
|
|
2625
|
+
(t != e.startState.field(Ce) || e.docChanged || e.selectionSet || e.viewportChanged) && (this.decorations = this.highlight(t));
|
|
2626
2626
|
}
|
|
2627
2627
|
highlight({ query: e, panel: t }) {
|
|
2628
2628
|
if (!t || !e.spec.valid)
|
|
2629
|
-
return
|
|
2629
|
+
return Q.none;
|
|
2630
2630
|
let { view: r } = this, n = new sn();
|
|
2631
2631
|
for (let o = 0, i = r.visibleRanges, a = i.length; o < a; o++) {
|
|
2632
2632
|
let { from: c, to: l } = i[o];
|
|
2633
2633
|
for (; o < a - 1 && l > i[o + 1].from - 2 * 250; )
|
|
2634
2634
|
l = i[++o].to;
|
|
2635
2635
|
e.highlight(r.state, c, l, (d, f) => {
|
|
2636
|
-
let
|
|
2637
|
-
n.add(d, f,
|
|
2636
|
+
let g = r.state.selection.ranges.some((k) => k.from == d && k.to == f);
|
|
2637
|
+
n.add(d, f, g ? es : Zi);
|
|
2638
2638
|
});
|
|
2639
2639
|
}
|
|
2640
2640
|
return n.finish();
|
|
@@ -2644,7 +2644,7 @@ const Zi = /* @__PURE__ */ G.mark({ class: "cm-searchMatch" }), es = /* @__PURE_
|
|
|
2644
2644
|
});
|
|
2645
2645
|
function ot(e) {
|
|
2646
2646
|
return (t) => {
|
|
2647
|
-
let r = t.state.field(
|
|
2647
|
+
let r = t.state.field(Ce, !1);
|
|
2648
2648
|
return r && r.query.spec.valid ? e(t, r) : On(t);
|
|
2649
2649
|
};
|
|
2650
2650
|
}
|
|
@@ -2652,7 +2652,7 @@ const bt = /* @__PURE__ */ ot((e, { query: t }) => {
|
|
|
2652
2652
|
let { to: r } = e.state.selection.main, n = t.nextMatch(e.state, r, r);
|
|
2653
2653
|
if (!n)
|
|
2654
2654
|
return !1;
|
|
2655
|
-
let o =
|
|
2655
|
+
let o = de.single(n.from, n.to), i = e.state.facet(_e);
|
|
2656
2656
|
return e.dispatch({
|
|
2657
2657
|
selection: o,
|
|
2658
2658
|
effects: [ir(e, n), i.scrollToMatch(o.main, e)],
|
|
@@ -2662,7 +2662,7 @@ const bt = /* @__PURE__ */ ot((e, { query: t }) => {
|
|
|
2662
2662
|
let { state: r } = e, { from: n } = r.selection.main, o = t.prevMatch(r, n, n);
|
|
2663
2663
|
if (!o)
|
|
2664
2664
|
return !1;
|
|
2665
|
-
let i =
|
|
2665
|
+
let i = de.single(o.from, o.to), a = e.state.facet(_e);
|
|
2666
2666
|
return e.dispatch({
|
|
2667
2667
|
selection: i,
|
|
2668
2668
|
effects: [ir(e, o), a.scrollToMatch(i.main, e)],
|
|
@@ -2671,7 +2671,7 @@ const bt = /* @__PURE__ */ ot((e, { query: t }) => {
|
|
|
2671
2671
|
}), rs = /* @__PURE__ */ ot((e, { query: t }) => {
|
|
2672
2672
|
let r = t.matchAll(e.state, 1e3);
|
|
2673
2673
|
return !r || !r.length ? !1 : (e.dispatch({
|
|
2674
|
-
selection:
|
|
2674
|
+
selection: de.create(r.map((n) => de.range(n.from, n.to))),
|
|
2675
2675
|
userEvent: "select.search.matches"
|
|
2676
2676
|
}), !0);
|
|
2677
2677
|
}), ns = ({ state: e, dispatch: t }) => {
|
|
@@ -2682,10 +2682,10 @@ const bt = /* @__PURE__ */ ot((e, { query: t }) => {
|
|
|
2682
2682
|
for (let c = new je(e.doc, e.sliceDoc(n, o)); !c.next().done; ) {
|
|
2683
2683
|
if (i.length > 1e3)
|
|
2684
2684
|
return !1;
|
|
2685
|
-
c.value.from == n && (a = i.length), i.push(
|
|
2685
|
+
c.value.from == n && (a = i.length), i.push(de.range(c.value.from, c.value.to));
|
|
2686
2686
|
}
|
|
2687
2687
|
return t(e.update({
|
|
2688
|
-
selection:
|
|
2688
|
+
selection: de.create(i, a),
|
|
2689
2689
|
userEvent: "select.search.matches"
|
|
2690
2690
|
})), !0;
|
|
2691
2691
|
}, zr = /* @__PURE__ */ ot((e, { query: t }) => {
|
|
@@ -2696,10 +2696,10 @@ const bt = /* @__PURE__ */ ot((e, { query: t }) => {
|
|
|
2696
2696
|
if (!i)
|
|
2697
2697
|
return !1;
|
|
2698
2698
|
let a = i, c = [], l, d, f = [];
|
|
2699
|
-
a.from == n && a.to == o && (d = r.toText(t.getReplacement(a)), c.push({ from: a.from, to: a.to, insert: d }), a = t.nextMatch(r, a.from, a.to), f.push(
|
|
2700
|
-
let
|
|
2701
|
-
return a && (l =
|
|
2702
|
-
changes:
|
|
2699
|
+
a.from == n && a.to == o && (d = r.toText(t.getReplacement(a)), c.push({ from: a.from, to: a.to, insert: d }), a = t.nextMatch(r, a.from, a.to), f.push(q.announce.of(r.phrase("replaced match on line $", r.doc.lineAt(n).number) + ".")));
|
|
2700
|
+
let g = e.state.changes(c);
|
|
2701
|
+
return a && (l = de.single(a.from, a.to).map(g), f.push(ir(e, a)), f.push(r.facet(_e).scrollToMatch(l.main, e))), e.dispatch({
|
|
2702
|
+
changes: g,
|
|
2703
2703
|
selection: l,
|
|
2704
2704
|
effects: f,
|
|
2705
2705
|
userEvent: "input.replace"
|
|
@@ -2716,19 +2716,19 @@ const bt = /* @__PURE__ */ ot((e, { query: t }) => {
|
|
|
2716
2716
|
let n = e.state.phrase("replaced $ matches", r.length) + ".";
|
|
2717
2717
|
return e.dispatch({
|
|
2718
2718
|
changes: r,
|
|
2719
|
-
effects:
|
|
2719
|
+
effects: q.announce.of(n),
|
|
2720
2720
|
userEvent: "input.replace.all"
|
|
2721
2721
|
}), !0;
|
|
2722
2722
|
});
|
|
2723
2723
|
function or(e) {
|
|
2724
|
-
return e.state.facet(
|
|
2724
|
+
return e.state.facet(_e).createPanel(e);
|
|
2725
2725
|
}
|
|
2726
2726
|
function Bt(e, t) {
|
|
2727
2727
|
var r, n, o, i, a;
|
|
2728
2728
|
let c = e.selection.main, l = c.empty || c.to > c.from + 100 ? "" : e.sliceDoc(c.from, c.to);
|
|
2729
2729
|
if (t && !l)
|
|
2730
2730
|
return t;
|
|
2731
|
-
let d = e.facet(
|
|
2731
|
+
let d = e.facet(_e);
|
|
2732
2732
|
return new kn({
|
|
2733
2733
|
search: ((r = t == null ? void 0 : t.literal) !== null && r !== void 0 ? r : d.literal) ? l : l.replace(/\n/g, "\\n"),
|
|
2734
2734
|
caseSensitive: (n = t == null ? void 0 : t.caseSensitive) !== null && n !== void 0 ? n : d.caseSensitive,
|
|
@@ -2746,7 +2746,7 @@ function Pn(e) {
|
|
|
2746
2746
|
t && t == e.root.activeElement && t.select();
|
|
2747
2747
|
}
|
|
2748
2748
|
const On = (e) => {
|
|
2749
|
-
let t = e.state.field(
|
|
2749
|
+
let t = e.state.field(Ce, !1);
|
|
2750
2750
|
if (t && t.panel) {
|
|
2751
2751
|
let r = Mn(e);
|
|
2752
2752
|
if (r && r != e.root.activeElement) {
|
|
@@ -2760,7 +2760,7 @@ const On = (e) => {
|
|
|
2760
2760
|
] });
|
|
2761
2761
|
return !0;
|
|
2762
2762
|
}, $n = (e) => {
|
|
2763
|
-
let t = e.state.field(
|
|
2763
|
+
let t = e.state.field(Ce, !1);
|
|
2764
2764
|
if (!t || !t.panel)
|
|
2765
2765
|
return !1;
|
|
2766
2766
|
let r = dt(e, or);
|
|
@@ -2777,39 +2777,39 @@ const On = (e) => {
|
|
|
2777
2777
|
class is {
|
|
2778
2778
|
constructor(t) {
|
|
2779
2779
|
this.view = t;
|
|
2780
|
-
let r = this.query = t.state.field(
|
|
2781
|
-
this.commit = this.commit.bind(this), this.searchField =
|
|
2780
|
+
let r = this.query = t.state.field(Ce).query.spec;
|
|
2781
|
+
this.commit = this.commit.bind(this), this.searchField = X("input", {
|
|
2782
2782
|
value: r.search,
|
|
2783
|
-
placeholder:
|
|
2784
|
-
"aria-label":
|
|
2783
|
+
placeholder: ie(t, "Find"),
|
|
2784
|
+
"aria-label": ie(t, "Find"),
|
|
2785
2785
|
class: "cm-textfield",
|
|
2786
2786
|
name: "search",
|
|
2787
2787
|
form: "",
|
|
2788
2788
|
"main-field": "true",
|
|
2789
2789
|
onchange: this.commit,
|
|
2790
2790
|
onkeyup: this.commit
|
|
2791
|
-
}), this.replaceField =
|
|
2791
|
+
}), this.replaceField = X("input", {
|
|
2792
2792
|
value: r.replace,
|
|
2793
|
-
placeholder:
|
|
2794
|
-
"aria-label":
|
|
2793
|
+
placeholder: ie(t, "Replace"),
|
|
2794
|
+
"aria-label": ie(t, "Replace"),
|
|
2795
2795
|
class: "cm-textfield",
|
|
2796
2796
|
name: "replace",
|
|
2797
2797
|
form: "",
|
|
2798
2798
|
onchange: this.commit,
|
|
2799
2799
|
onkeyup: this.commit
|
|
2800
|
-
}), this.caseField =
|
|
2800
|
+
}), this.caseField = X("input", {
|
|
2801
2801
|
type: "checkbox",
|
|
2802
2802
|
name: "case",
|
|
2803
2803
|
form: "",
|
|
2804
2804
|
checked: r.caseSensitive,
|
|
2805
2805
|
onchange: this.commit
|
|
2806
|
-
}), this.reField =
|
|
2806
|
+
}), this.reField = X("input", {
|
|
2807
2807
|
type: "checkbox",
|
|
2808
2808
|
name: "re",
|
|
2809
2809
|
form: "",
|
|
2810
2810
|
checked: r.regexp,
|
|
2811
2811
|
onchange: this.commit
|
|
2812
|
-
}), this.wordField =
|
|
2812
|
+
}), this.wordField = X("input", {
|
|
2813
2813
|
type: "checkbox",
|
|
2814
2814
|
name: "word",
|
|
2815
2815
|
form: "",
|
|
@@ -2817,26 +2817,26 @@ class is {
|
|
|
2817
2817
|
onchange: this.commit
|
|
2818
2818
|
});
|
|
2819
2819
|
function n(o, i, a) {
|
|
2820
|
-
return
|
|
2820
|
+
return X("button", { class: "cm-button", name: o, onclick: i, type: "button" }, a);
|
|
2821
2821
|
}
|
|
2822
|
-
this.dom =
|
|
2822
|
+
this.dom = X("div", { onkeydown: (o) => this.keydown(o), class: "cm-search" }, [
|
|
2823
2823
|
this.searchField,
|
|
2824
|
-
n("next", () => bt(t), [
|
|
2825
|
-
n("prev", () => Et(t), [
|
|
2826
|
-
n("select", () => rs(t), [
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2824
|
+
n("next", () => bt(t), [ie(t, "next")]),
|
|
2825
|
+
n("prev", () => Et(t), [ie(t, "previous")]),
|
|
2826
|
+
n("select", () => rs(t), [ie(t, "all")]),
|
|
2827
|
+
X("label", null, [this.caseField, ie(t, "match case")]),
|
|
2828
|
+
X("label", null, [this.reField, ie(t, "regexp")]),
|
|
2829
|
+
X("label", null, [this.wordField, ie(t, "by word")]),
|
|
2830
2830
|
...t.state.readOnly ? [] : [
|
|
2831
|
-
|
|
2831
|
+
X("br"),
|
|
2832
2832
|
this.replaceField,
|
|
2833
|
-
n("replace", () => zr(t), [
|
|
2834
|
-
n("replaceAll", () => os(t), [
|
|
2833
|
+
n("replace", () => zr(t), [ie(t, "replace")]),
|
|
2834
|
+
n("replaceAll", () => os(t), [ie(t, "replace all")])
|
|
2835
2835
|
],
|
|
2836
|
-
|
|
2836
|
+
X("button", {
|
|
2837
2837
|
name: "close",
|
|
2838
2838
|
onclick: () => $n(t),
|
|
2839
|
-
"aria-label":
|
|
2839
|
+
"aria-label": ie(t, "close"),
|
|
2840
2840
|
type: "button"
|
|
2841
2841
|
}, ["×"])
|
|
2842
2842
|
]);
|
|
@@ -2869,10 +2869,10 @@ class is {
|
|
|
2869
2869
|
return 80;
|
|
2870
2870
|
}
|
|
2871
2871
|
get top() {
|
|
2872
|
-
return this.view.state.facet(
|
|
2872
|
+
return this.view.state.facet(_e).top;
|
|
2873
2873
|
}
|
|
2874
2874
|
}
|
|
2875
|
-
function
|
|
2875
|
+
function ie(e, t) {
|
|
2876
2876
|
return e.state.phrase(t);
|
|
2877
2877
|
}
|
|
2878
2878
|
const at = 30, ct = /[\s\.,:;?!]/;
|
|
@@ -2892,9 +2892,9 @@ function ir(e, { from: t, to: r }) {
|
|
|
2892
2892
|
break;
|
|
2893
2893
|
}
|
|
2894
2894
|
}
|
|
2895
|
-
return
|
|
2895
|
+
return q.announce.of(`${e.state.phrase("current match")}. ${c} ${e.state.phrase("on line")} ${n.number}.`);
|
|
2896
2896
|
}
|
|
2897
|
-
const ss = /* @__PURE__ */
|
|
2897
|
+
const ss = /* @__PURE__ */ q.baseTheme({
|
|
2898
2898
|
".cm-panel.cm-search": {
|
|
2899
2899
|
padding: "2px 6px 4px",
|
|
2900
2900
|
position: "relative",
|
|
@@ -2924,7 +2924,7 @@ const ss = /* @__PURE__ */ Y.baseTheme({
|
|
|
2924
2924
|
"&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" },
|
|
2925
2925
|
"&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" }
|
|
2926
2926
|
}), Ut = [
|
|
2927
|
-
|
|
2927
|
+
Ce,
|
|
2928
2928
|
/* @__PURE__ */ nn.low(ts),
|
|
2929
2929
|
ss
|
|
2930
2930
|
], As = {
|
|
@@ -2961,7 +2961,7 @@ const ss = /* @__PURE__ */ Y.baseTheme({
|
|
|
2961
2961
|
"Search string too long": "搜索字符串过长"
|
|
2962
2962
|
};
|
|
2963
2963
|
function as() {
|
|
2964
|
-
return
|
|
2964
|
+
return q.theme({
|
|
2965
2965
|
// 搜索面板样式优化
|
|
2966
2966
|
".cm-panel.cm-search": {
|
|
2967
2967
|
fontSize: "14px",
|
|
@@ -3035,10 +3035,10 @@ function Jr() {
|
|
|
3035
3035
|
}),
|
|
3036
3036
|
rr(),
|
|
3037
3037
|
// 高亮相同的选中文本
|
|
3038
|
-
|
|
3038
|
+
Re.of(An),
|
|
3039
3039
|
// 搜索相关的键盘快捷键
|
|
3040
3040
|
// 监听 DOM 变化以应用中文翻译
|
|
3041
|
-
|
|
3041
|
+
q.updateListener.of((e) => {
|
|
3042
3042
|
e.view.dom.querySelector(".cm-panel.cm-search") && cs(e.view);
|
|
3043
3043
|
})
|
|
3044
3044
|
];
|
|
@@ -3049,7 +3049,7 @@ function Fs() {
|
|
|
3049
3049
|
function Br() {
|
|
3050
3050
|
return [Tn({
|
|
3051
3051
|
top: !0
|
|
3052
|
-
}), rr(),
|
|
3052
|
+
}), rr(), Re.of(An)];
|
|
3053
3053
|
}
|
|
3054
3054
|
const Ns = [
|
|
3055
3055
|
{
|
|
@@ -3080,25 +3080,25 @@ const Ns = [
|
|
|
3080
3080
|
placeholder: l = "",
|
|
3081
3081
|
showLineNumbers: d = !0,
|
|
3082
3082
|
onEditorViewCreated: f,
|
|
3083
|
-
locale:
|
|
3083
|
+
locale: g = "zh-CN"
|
|
3084
3084
|
}, k) => {
|
|
3085
|
-
const
|
|
3086
|
-
return
|
|
3087
|
-
if (!
|
|
3085
|
+
const y = ue(null), C = ue();
|
|
3086
|
+
return ge(() => {
|
|
3087
|
+
if (!y.current) return;
|
|
3088
3088
|
const v = [
|
|
3089
3089
|
Cr(),
|
|
3090
|
-
|
|
3090
|
+
Re.of([...Rr, Wt, {
|
|
3091
3091
|
key: "Enter",
|
|
3092
3092
|
run: wr
|
|
3093
3093
|
}]),
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3094
|
+
q.lineWrapping,
|
|
3095
|
+
gt(Tr),
|
|
3096
|
+
be.allowMultipleSelections.of(!0),
|
|
3097
|
+
g === "zh-CN" ? Jr() : Br(),
|
|
3098
3098
|
l ? Er(l) : [],
|
|
3099
3099
|
// 行号功能,根据配置决定是否启用
|
|
3100
3100
|
d ? Sr() : [],
|
|
3101
|
-
|
|
3101
|
+
q.updateListener.of((b) => {
|
|
3102
3102
|
if (b.docChanged && t) {
|
|
3103
3103
|
const w = {
|
|
3104
3104
|
value: b.state.doc.toString(),
|
|
@@ -3109,19 +3109,19 @@ const Ns = [
|
|
|
3109
3109
|
}
|
|
3110
3110
|
})
|
|
3111
3111
|
];
|
|
3112
|
-
(o || i) && v.push(
|
|
3113
|
-
const
|
|
3112
|
+
(o || i) && v.push(be.readOnly.of(!0));
|
|
3113
|
+
const x = be.create({
|
|
3114
3114
|
doc: e,
|
|
3115
3115
|
extensions: [...v, ...r]
|
|
3116
|
-
}), R = new
|
|
3117
|
-
state:
|
|
3118
|
-
parent:
|
|
3116
|
+
}), R = new q({
|
|
3117
|
+
state: x,
|
|
3118
|
+
parent: y.current
|
|
3119
3119
|
});
|
|
3120
3120
|
return C.current = R, f && f(R), () => {
|
|
3121
3121
|
var b;
|
|
3122
3122
|
(b = C.current) == null || b.destroy();
|
|
3123
3123
|
};
|
|
3124
|
-
}, []),
|
|
3124
|
+
}, []), ge(() => {
|
|
3125
3125
|
C.current && e !== C.current.state.doc.toString() && C.current.dispatch({
|
|
3126
3126
|
changes: {
|
|
3127
3127
|
from: 0,
|
|
@@ -3129,65 +3129,65 @@ const Ns = [
|
|
|
3129
3129
|
insert: e
|
|
3130
3130
|
}
|
|
3131
3131
|
});
|
|
3132
|
-
}, [e]),
|
|
3133
|
-
if (!C.current || !
|
|
3132
|
+
}, [e]), ge(() => {
|
|
3133
|
+
if (!C.current || !y.current) return;
|
|
3134
3134
|
const v = C.current.state.doc.toString();
|
|
3135
3135
|
C.current.destroy();
|
|
3136
|
-
const
|
|
3136
|
+
const x = [
|
|
3137
3137
|
Cr(),
|
|
3138
|
-
|
|
3138
|
+
Re.of([...Rr, Wt, {
|
|
3139
3139
|
key: "Enter",
|
|
3140
3140
|
run: wr
|
|
3141
3141
|
}]),
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3142
|
+
q.lineWrapping,
|
|
3143
|
+
gt(Tr),
|
|
3144
|
+
be.allowMultipleSelections.of(!0),
|
|
3145
|
+
g === "zh-CN" ? Jr() : Br(),
|
|
3146
3146
|
l ? Er(l) : [],
|
|
3147
3147
|
// 行号功能,根据配置决定是否启用
|
|
3148
3148
|
d ? Sr() : [],
|
|
3149
|
-
|
|
3149
|
+
q.updateListener.of((w) => {
|
|
3150
3150
|
if (w.docChanged && t) {
|
|
3151
|
-
const
|
|
3151
|
+
const $ = {
|
|
3152
3152
|
value: w.state.doc.toString(),
|
|
3153
3153
|
readOnlyRanges: []
|
|
3154
3154
|
// 基础编辑器没有只读区域逻辑,由特定编辑器实现
|
|
3155
3155
|
};
|
|
3156
|
-
t(
|
|
3156
|
+
t($);
|
|
3157
3157
|
}
|
|
3158
3158
|
})
|
|
3159
3159
|
];
|
|
3160
|
-
(o || i) &&
|
|
3161
|
-
const R =
|
|
3160
|
+
(o || i) && x.push(be.readOnly.of(!0));
|
|
3161
|
+
const R = be.create({
|
|
3162
3162
|
doc: v,
|
|
3163
|
-
extensions: [...
|
|
3164
|
-
}), b = new
|
|
3163
|
+
extensions: [...x, ...r]
|
|
3164
|
+
}), b = new q({
|
|
3165
3165
|
state: R,
|
|
3166
|
-
parent:
|
|
3166
|
+
parent: y.current
|
|
3167
3167
|
});
|
|
3168
3168
|
C.current = b, f && f(b);
|
|
3169
3169
|
}, [o, i, d]), Gr(k, () => ({
|
|
3170
3170
|
insertTextAtCursor: (v) => {
|
|
3171
|
-
const
|
|
3172
|
-
|
|
3171
|
+
const x = C.current;
|
|
3172
|
+
x && (x.dispatch(x.state.replaceSelection(v)), x.focus());
|
|
3173
3173
|
},
|
|
3174
3174
|
goToPosition: (v) => {
|
|
3175
|
-
const
|
|
3176
|
-
if (
|
|
3177
|
-
const R =
|
|
3178
|
-
|
|
3175
|
+
const x = C.current;
|
|
3176
|
+
if (x) {
|
|
3177
|
+
const R = x.state.doc.length, b = Math.max(0, Math.min(v, R));
|
|
3178
|
+
x.dispatch({
|
|
3179
3179
|
selection: {
|
|
3180
3180
|
anchor: b,
|
|
3181
3181
|
head: b
|
|
3182
3182
|
},
|
|
3183
3183
|
scrollIntoView: !0
|
|
3184
|
-
}),
|
|
3184
|
+
}), x.focus();
|
|
3185
3185
|
}
|
|
3186
3186
|
},
|
|
3187
|
-
goToLine: (v,
|
|
3187
|
+
goToLine: (v, x = 0) => {
|
|
3188
3188
|
const R = C.current;
|
|
3189
3189
|
if (R) {
|
|
3190
|
-
const b = R.state.doc, w = Math.max(1, Math.min(v, b.lines)),
|
|
3190
|
+
const b = R.state.doc, w = Math.max(1, Math.min(v, b.lines)), $ = b.line(w), h = Math.max(0, Math.min(x, $.length)) + $.from;
|
|
3191
3191
|
R.dispatch({
|
|
3192
3192
|
selection: {
|
|
3193
3193
|
anchor: h,
|
|
@@ -3198,7 +3198,7 @@ const Ns = [
|
|
|
3198
3198
|
}
|
|
3199
3199
|
},
|
|
3200
3200
|
getEditorView: () => C.current
|
|
3201
|
-
})), /* @__PURE__ */ Tt("div", { ref:
|
|
3201
|
+
})), /* @__PURE__ */ Tt("div", { ref: y, className: `senyao-editor ${o ? "disabled" : ""} ${i ? "readonly" : ""} ${a}`, style: {
|
|
3202
3202
|
height: n,
|
|
3203
3203
|
...c
|
|
3204
3204
|
} });
|
|
@@ -3225,151 +3225,151 @@ const Ns = [
|
|
|
3225
3225
|
showLineNumbers: i = !0,
|
|
3226
3226
|
...a
|
|
3227
3227
|
}, c) => {
|
|
3228
|
-
const l =
|
|
3229
|
-
|
|
3228
|
+
const l = ue(null), f = ((E) => E != null && typeof E == "object" && "value" in E)(e), g = f ? e.value : e, k = (f && "readOnlyRanges" in e ? e.readOnlyRanges : n) ?? [], [y, C] = Nt(g ?? ""), v = ue(null), [x, R] = Nt(k), b = ue(y), [w, $] = Nt(null), h = ue(!1), Y = ue(/* @__PURE__ */ new Map()), p = ue(!1);
|
|
3229
|
+
ge(() => {
|
|
3230
3230
|
if (o && k.length > 0 && !w) {
|
|
3231
|
-
const
|
|
3232
|
-
let
|
|
3233
|
-
for (let
|
|
3234
|
-
const
|
|
3235
|
-
|
|
3236
|
-
content:
|
|
3231
|
+
const E = [];
|
|
3232
|
+
let _ = 0;
|
|
3233
|
+
for (let M = 0; M < k.length; M++) {
|
|
3234
|
+
const A = k[M];
|
|
3235
|
+
A.start > _ && E.push({
|
|
3236
|
+
content: y.substring(_, A.start),
|
|
3237
3237
|
editable: !0
|
|
3238
|
-
}),
|
|
3239
|
-
content:
|
|
3238
|
+
}), E.push({
|
|
3239
|
+
content: y.substring(A.start, A.end),
|
|
3240
3240
|
editable: !1
|
|
3241
|
-
}),
|
|
3241
|
+
}), _ = A.end;
|
|
3242
3242
|
}
|
|
3243
|
-
|
|
3244
|
-
content:
|
|
3243
|
+
_ < y.length && E.push({
|
|
3244
|
+
content: y.substring(_),
|
|
3245
3245
|
editable: !0
|
|
3246
|
-
}),
|
|
3246
|
+
}), $(E);
|
|
3247
3247
|
}
|
|
3248
|
-
}, [o, k,
|
|
3249
|
-
if (
|
|
3250
|
-
const
|
|
3251
|
-
|
|
3252
|
-
const
|
|
3253
|
-
|
|
3254
|
-
}),
|
|
3248
|
+
}, [o, k, y, w]), ge(() => {
|
|
3249
|
+
if (y) {
|
|
3250
|
+
const E = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], _ = /* @__PURE__ */ new Map();
|
|
3251
|
+
E.forEach((M) => {
|
|
3252
|
+
const A = y.indexOf(M);
|
|
3253
|
+
A >= 0 && _.set(M, A);
|
|
3254
|
+
}), Y.current = _;
|
|
3255
3255
|
}
|
|
3256
3256
|
}, []);
|
|
3257
|
-
const
|
|
3258
|
-
const
|
|
3259
|
-
return
|
|
3260
|
-
}, [r,
|
|
3261
|
-
const
|
|
3262
|
-
return
|
|
3263
|
-
}, []),
|
|
3264
|
-
if (!o || !
|
|
3265
|
-
const
|
|
3266
|
-
let
|
|
3267
|
-
for (let
|
|
3268
|
-
const
|
|
3269
|
-
if (!
|
|
3270
|
-
const
|
|
3271
|
-
|
|
3272
|
-
...
|
|
3273
|
-
content:
|
|
3274
|
-
}),
|
|
3257
|
+
const V = ht(() => {
|
|
3258
|
+
const E = [Qr(), en()];
|
|
3259
|
+
return x.length > 0 && E.push(Ai(x)), [...E, ...r];
|
|
3260
|
+
}, [r, x]), z = le((E, _, M = 0) => {
|
|
3261
|
+
const A = E.indexOf(_, M);
|
|
3262
|
+
return A >= 0 ? A : null;
|
|
3263
|
+
}, []), K = le((E, _) => {
|
|
3264
|
+
if (!o || !E || E.length === 0) return E;
|
|
3265
|
+
const M = [...E];
|
|
3266
|
+
let A = 0;
|
|
3267
|
+
for (let G = 0; G < E.length; G++) {
|
|
3268
|
+
const ae = E[G];
|
|
3269
|
+
if (!ae.editable) {
|
|
3270
|
+
const xe = z(_, ae.content, A);
|
|
3271
|
+
xe !== null && (G > 0 && E[G - 1].editable && xe > A && (M[G - 1] = {
|
|
3272
|
+
...M[G - 1],
|
|
3273
|
+
content: _.substring(A, xe)
|
|
3274
|
+
}), A = xe + ae.content.length);
|
|
3275
3275
|
}
|
|
3276
3276
|
}
|
|
3277
|
-
const
|
|
3278
|
-
return
|
|
3279
|
-
...
|
|
3280
|
-
content:
|
|
3281
|
-
}), P;
|
|
3282
|
-
}, [o, J]), Me = ce((x) => {
|
|
3283
|
-
let M = !1;
|
|
3284
|
-
return S.current.forEach((P, F) => {
|
|
3285
|
-
const V = x.indexOf(F);
|
|
3286
|
-
V >= 0 && Math.abs(V - P) > 0 && (S.current.set(F, V), V > P && (P === 0 || P < 15) && (M = !0));
|
|
3277
|
+
const J = E[E.length - 1];
|
|
3278
|
+
return J.editable && A < _.length && (M[E.length - 1] = {
|
|
3279
|
+
...J,
|
|
3280
|
+
content: _.substring(A)
|
|
3287
3281
|
}), M;
|
|
3288
|
-
}, []),
|
|
3282
|
+
}, [o, z]), Me = le((E) => {
|
|
3283
|
+
let _ = !1;
|
|
3284
|
+
return Y.current.forEach((M, A) => {
|
|
3285
|
+
const J = E.indexOf(A);
|
|
3286
|
+
J >= 0 && Math.abs(J - M) > 0 && (Y.current.set(A, J), J > M && (M === 0 || M < 15) && (_ = !0));
|
|
3287
|
+
}), _;
|
|
3288
|
+
}, []), we = le(() => {
|
|
3289
3289
|
if (!v.current) return;
|
|
3290
|
-
const
|
|
3291
|
-
let
|
|
3292
|
-
for (const
|
|
3293
|
-
const
|
|
3294
|
-
if (
|
|
3295
|
-
|
|
3290
|
+
const E = v.current, _ = E.state.doc.toString(), M = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], A = E.state.selection;
|
|
3291
|
+
let J = !1;
|
|
3292
|
+
for (const G of M) {
|
|
3293
|
+
const ae = _.indexOf(G);
|
|
3294
|
+
if (ae >= 0) {
|
|
3295
|
+
E.dispatch({
|
|
3296
3296
|
selection: {
|
|
3297
|
-
anchor:
|
|
3298
|
-
head:
|
|
3297
|
+
anchor: ae,
|
|
3298
|
+
head: ae + G.length
|
|
3299
3299
|
},
|
|
3300
3300
|
scrollIntoView: !1
|
|
3301
|
-
}),
|
|
3301
|
+
}), J = !0;
|
|
3302
3302
|
break;
|
|
3303
3303
|
}
|
|
3304
3304
|
}
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
selection:
|
|
3305
|
+
J && setTimeout(() => {
|
|
3306
|
+
E.dom && document.contains(E.dom) && E.dispatch({
|
|
3307
|
+
selection: A,
|
|
3308
3308
|
scrollIntoView: !1
|
|
3309
3309
|
});
|
|
3310
3310
|
}, 10);
|
|
3311
|
-
}, []),
|
|
3311
|
+
}, []), re = le(() => {
|
|
3312
3312
|
if (!v.current) return;
|
|
3313
|
-
const
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3313
|
+
const E = v.current;
|
|
3314
|
+
x.length > 0 && (Se(E, []), setTimeout(() => {
|
|
3315
|
+
E.dom && document.contains(E.dom) && (Se(E, x), setTimeout(() => {
|
|
3316
|
+
E.dom && document.contains(E.dom) && E.dispatch({});
|
|
3317
3317
|
}, 10));
|
|
3318
3318
|
}, 10));
|
|
3319
|
-
}, [
|
|
3320
|
-
const
|
|
3321
|
-
C(
|
|
3322
|
-
|
|
3323
|
-
}, 10)), b.current =
|
|
3324
|
-
const
|
|
3319
|
+
}, [x]), he = le((E) => {
|
|
3320
|
+
const _ = E.value, M = b.current;
|
|
3321
|
+
C(_), M !== _ && (!M || _.length > (M == null ? void 0 : M.length) && !M.startsWith(_.substring(0, 5)) && _.includes(M.substring(0, 10))) && (h.current = !0, Me(_) && setTimeout(() => {
|
|
3322
|
+
we();
|
|
3323
|
+
}, 10)), b.current = _;
|
|
3324
|
+
const A = v.current ? Li(v.current) : x;
|
|
3325
3325
|
if (o && w) {
|
|
3326
|
-
const
|
|
3327
|
-
|
|
3326
|
+
const J = K(w, _);
|
|
3327
|
+
$(J);
|
|
3328
3328
|
const {
|
|
3329
|
-
readOnlyRanges:
|
|
3330
|
-
} = Wr(
|
|
3331
|
-
R(
|
|
3332
|
-
value:
|
|
3333
|
-
readOnlyRanges:
|
|
3329
|
+
readOnlyRanges: G
|
|
3330
|
+
} = Wr(J);
|
|
3331
|
+
R(G), v.current && Se(v.current, G), t && t({
|
|
3332
|
+
value: _,
|
|
3333
|
+
readOnlyRanges: G
|
|
3334
3334
|
});
|
|
3335
3335
|
} else
|
|
3336
3336
|
t && t({
|
|
3337
|
-
value:
|
|
3338
|
-
readOnlyRanges:
|
|
3337
|
+
value: _,
|
|
3338
|
+
readOnlyRanges: A
|
|
3339
3339
|
});
|
|
3340
|
-
}, [t, o, w,
|
|
3341
|
-
|
|
3342
|
-
!o && JSON.stringify(k) !== JSON.stringify(
|
|
3343
|
-
}, [k,
|
|
3340
|
+
}, [t, o, w, x, K, Me, we]);
|
|
3341
|
+
ge(() => {
|
|
3342
|
+
!o && JSON.stringify(k) !== JSON.stringify(x) && (R(k), v.current && Se(v.current, k));
|
|
3343
|
+
}, [k, x, o]), ge(() => {
|
|
3344
3344
|
if (o && w) {
|
|
3345
3345
|
const {
|
|
3346
|
-
readOnlyRanges:
|
|
3346
|
+
readOnlyRanges: E
|
|
3347
3347
|
} = Wr(w);
|
|
3348
|
-
JSON.stringify(
|
|
3348
|
+
JSON.stringify(E) !== JSON.stringify(x) && (R(E), v.current && Se(v.current, E));
|
|
3349
3349
|
}
|
|
3350
|
-
}, [w,
|
|
3350
|
+
}, [w, x, o]), ge(() => {
|
|
3351
3351
|
v.current && h.current && (h.current = !1, v.current.dispatch({}));
|
|
3352
|
-
}, [
|
|
3353
|
-
v.current &&
|
|
3354
|
-
|
|
3352
|
+
}, [y]), ge(() => {
|
|
3353
|
+
v.current && x.length > 0 && !p.current && (p.current = !0, setTimeout(() => {
|
|
3354
|
+
re();
|
|
3355
3355
|
}, 50), setTimeout(() => {
|
|
3356
|
-
|
|
3356
|
+
re();
|
|
3357
3357
|
}, 200));
|
|
3358
|
-
}, [
|
|
3359
|
-
const
|
|
3360
|
-
if (v.current =
|
|
3361
|
-
|
|
3362
|
-
|
|
3358
|
+
}, [re, x]);
|
|
3359
|
+
const ve = le((E) => {
|
|
3360
|
+
if (v.current = E, x.length > 0 && (Se(E, x), setTimeout(() => {
|
|
3361
|
+
Se(E, []), setTimeout(() => {
|
|
3362
|
+
Se(E, x);
|
|
3363
3363
|
}, 10);
|
|
3364
|
-
}, 50)),
|
|
3365
|
-
const
|
|
3366
|
-
|
|
3367
|
-
const
|
|
3368
|
-
|
|
3369
|
-
}),
|
|
3370
|
-
}
|
|
3371
|
-
}, [
|
|
3372
|
-
return /* @__PURE__ */ Tt(sr, { ref: l, value:
|
|
3364
|
+
}, 50)), y) {
|
|
3365
|
+
const _ = ["SELECT", "FROM", "WHERE", "GROUP", "ORDER", "HAVING", "JOIN"], M = /* @__PURE__ */ new Map();
|
|
3366
|
+
_.forEach((A) => {
|
|
3367
|
+
const J = y.indexOf(A);
|
|
3368
|
+
J >= 0 && M.set(A, J);
|
|
3369
|
+
}), Y.current = M;
|
|
3370
|
+
}
|
|
3371
|
+
}, [x, y]);
|
|
3372
|
+
return /* @__PURE__ */ Tt(sr, { ref: l, value: y, onChange: he, extensions: V, showLineNumbers: i, onEditorViewCreated: ve, ...a });
|
|
3373
3373
|
}, Is = rt(fs);
|
|
3374
3374
|
function Fn(e) {
|
|
3375
3375
|
return e.startsWith('"') && e.endsWith('"') ? e.slice(1, -1) : e;
|
|
@@ -3436,7 +3436,7 @@ function ds(e, t, r) {
|
|
|
3436
3436
|
const n = r.get(e);
|
|
3437
3437
|
return n ? n.some((o) => Nn(t, o.value)) : !1;
|
|
3438
3438
|
}
|
|
3439
|
-
function
|
|
3439
|
+
function gs(e, t, r) {
|
|
3440
3440
|
const n = r.get(e);
|
|
3441
3441
|
return n && n.find((o) => Nn(t, o.value)) || null;
|
|
3442
3442
|
}
|
|
@@ -3451,8 +3451,8 @@ function jn(e, t) {
|
|
|
3451
3451
|
if (ds(l, d, i)) {
|
|
3452
3452
|
const f = Dn(c);
|
|
3453
3453
|
if (f) {
|
|
3454
|
-
const
|
|
3455
|
-
o.has(
|
|
3454
|
+
const g = `${f.from}-${f.to}`;
|
|
3455
|
+
o.has(g) || (o.add(g), n.push({
|
|
3456
3456
|
from: f.from,
|
|
3457
3457
|
to: f.to
|
|
3458
3458
|
}));
|
|
@@ -3461,21 +3461,21 @@ function jn(e, t) {
|
|
|
3461
3461
|
}
|
|
3462
3462
|
}), n;
|
|
3463
3463
|
}
|
|
3464
|
-
function
|
|
3464
|
+
function ms(e, t) {
|
|
3465
3465
|
if (!t || t.length === 0) return [];
|
|
3466
3466
|
const r = Kt(e), n = [], o = /* @__PURE__ */ new Set(), i = Wn(t);
|
|
3467
3467
|
return r.iterate({
|
|
3468
3468
|
enter(a) {
|
|
3469
3469
|
const c = a.node;
|
|
3470
3470
|
if (a.type.name !== "Property") return;
|
|
3471
|
-
const l = Ln(c, e), d = In(c, e), f =
|
|
3471
|
+
const l = Ln(c, e), d = In(c, e), f = gs(l, d, i);
|
|
3472
3472
|
if (f) {
|
|
3473
|
-
const
|
|
3474
|
-
if (
|
|
3475
|
-
const k = `${
|
|
3473
|
+
const g = Dn(c);
|
|
3474
|
+
if (g) {
|
|
3475
|
+
const k = `${g.from}-${g.to}`;
|
|
3476
3476
|
o.has(k) || (o.add(k), n.push({
|
|
3477
|
-
from:
|
|
3478
|
-
to:
|
|
3477
|
+
from: g.from,
|
|
3478
|
+
to: g.to,
|
|
3479
3479
|
match: f
|
|
3480
3480
|
}));
|
|
3481
3481
|
}
|
|
@@ -3485,7 +3485,7 @@ function gs(e, t) {
|
|
|
3485
3485
|
}
|
|
3486
3486
|
function ps(e, t) {
|
|
3487
3487
|
if (e)
|
|
3488
|
-
return
|
|
3488
|
+
return q.baseTheme({
|
|
3489
3489
|
".cm-scroller": {
|
|
3490
3490
|
scrollBehavior: "smooth"
|
|
3491
3491
|
// 平滑滚动
|
|
@@ -3502,7 +3502,7 @@ function ps(e, t) {
|
|
|
3502
3502
|
return t && (n = {
|
|
3503
3503
|
...r,
|
|
3504
3504
|
...t
|
|
3505
|
-
}),
|
|
3505
|
+
}), q.baseTheme({
|
|
3506
3506
|
".cm-json-highlight": n,
|
|
3507
3507
|
".cm-scroller": {
|
|
3508
3508
|
scrollBehavior: "smooth"
|
|
@@ -3521,15 +3521,15 @@ function ys(e, t = "cm-json-highlight") {
|
|
|
3521
3521
|
return o.docChanged ? Ur(o.state, e, t) : n.map(o.changes);
|
|
3522
3522
|
},
|
|
3523
3523
|
// 提供 decorations 给编辑器
|
|
3524
|
-
provide: (n) =>
|
|
3524
|
+
provide: (n) => q.decorations.from(n)
|
|
3525
3525
|
});
|
|
3526
3526
|
}
|
|
3527
3527
|
function Ur(e, t, r) {
|
|
3528
3528
|
if (!t || t.length === 0)
|
|
3529
|
-
return
|
|
3529
|
+
return Q.none;
|
|
3530
3530
|
const n = new sn(), o = jn(e, t);
|
|
3531
3531
|
for (const i of o)
|
|
3532
|
-
n.add(i.from, i.to,
|
|
3532
|
+
n.add(i.from, i.to, Q.mark({
|
|
3533
3533
|
class: r
|
|
3534
3534
|
}));
|
|
3535
3535
|
return n.finish();
|
|
@@ -3557,48 +3557,48 @@ const xs = (e, t) => {
|
|
|
3557
3557
|
highlightMatches: l,
|
|
3558
3558
|
highlightClassName: d,
|
|
3559
3559
|
highlightStyle: f,
|
|
3560
|
-
...
|
|
3561
|
-
} = e, k =
|
|
3560
|
+
...g
|
|
3561
|
+
} = e, k = ue(!0), y = ue(null), C = ue(null), v = ue(new So()).current, x = le((p) => {
|
|
3562
3562
|
try {
|
|
3563
|
-
return
|
|
3563
|
+
return p === "" || JSON.parse(p), !0;
|
|
3564
3564
|
} catch {
|
|
3565
3565
|
return !1;
|
|
3566
3566
|
}
|
|
3567
|
-
}, []),
|
|
3567
|
+
}, []), R = le((p) => {
|
|
3568
3568
|
try {
|
|
3569
|
-
if (!
|
|
3570
|
-
const
|
|
3571
|
-
return JSON.stringify(
|
|
3569
|
+
if (!p.trim()) return "";
|
|
3570
|
+
const V = JSON.parse(p);
|
|
3571
|
+
return JSON.stringify(V, null, 2);
|
|
3572
3572
|
} catch {
|
|
3573
|
-
return
|
|
3573
|
+
return p;
|
|
3574
3574
|
}
|
|
3575
|
-
}, []),
|
|
3576
|
-
if (!
|
|
3577
|
-
const
|
|
3578
|
-
if (
|
|
3579
|
-
const
|
|
3575
|
+
}, []), b = le(() => {
|
|
3576
|
+
if (!y.current) return !1;
|
|
3577
|
+
const p = y.current, V = p.state.doc.toString(), z = R(V);
|
|
3578
|
+
if (z === V) return !1;
|
|
3579
|
+
const K = p.state.update({
|
|
3580
3580
|
changes: {
|
|
3581
3581
|
from: 0,
|
|
3582
|
-
to:
|
|
3583
|
-
insert:
|
|
3582
|
+
to: p.state.doc.length,
|
|
3583
|
+
insert: z
|
|
3584
3584
|
}
|
|
3585
3585
|
});
|
|
3586
|
-
return
|
|
3587
|
-
}, [
|
|
3586
|
+
return p.dispatch(K), !0;
|
|
3587
|
+
}, [R]), w = ht(() => Re.of([{
|
|
3588
3588
|
key: "Alt-f",
|
|
3589
3589
|
mac: "Mod-Alt-f",
|
|
3590
|
-
run: () =>
|
|
3591
|
-
}]), [
|
|
3590
|
+
run: () => b()
|
|
3591
|
+
}]), [b]), $ = le((p) => {
|
|
3592
3592
|
if (n) {
|
|
3593
|
-
const
|
|
3594
|
-
k.current =
|
|
3595
|
-
}
|
|
3596
|
-
}, [n,
|
|
3597
|
-
const
|
|
3598
|
-
return
|
|
3599
|
-
markerDOM: (
|
|
3600
|
-
const
|
|
3601
|
-
return
|
|
3593
|
+
const V = x(p.value);
|
|
3594
|
+
k.current = V, n(p);
|
|
3595
|
+
}
|
|
3596
|
+
}, [n, x]), h = ht(() => {
|
|
3597
|
+
const p = [Ht(), mo(), fo(), nn.highest(w), ...o], V = l && l.length > 0 ? Hr(l, d, f) : [];
|
|
3598
|
+
return p.push(v.of(V)), c && p.push(po(), yo({
|
|
3599
|
+
markerDOM: (z) => {
|
|
3600
|
+
const K = document.createElement("span");
|
|
3601
|
+
return K.style.cssText = `
|
|
3602
3602
|
display: inline-flex;
|
|
3603
3603
|
align-items: center;
|
|
3604
3604
|
justify-content: center;
|
|
@@ -3610,27 +3610,27 @@ const xs = (e, t) => {
|
|
|
3610
3610
|
transition: all 0.2s ease;
|
|
3611
3611
|
user-select: none;
|
|
3612
3612
|
border-radius: 2px;
|
|
3613
|
-
`,
|
|
3614
|
-
|
|
3615
|
-
},
|
|
3616
|
-
|
|
3617
|
-
},
|
|
3613
|
+
`, K.textContent = z ? "▾" : "▸", K.onmouseenter = () => {
|
|
3614
|
+
K.style.backgroundColor = "rgba(24, 144, 255, 0.08)";
|
|
3615
|
+
}, K.onmouseleave = () => {
|
|
3616
|
+
K.style.backgroundColor = "transparent";
|
|
3617
|
+
}, K;
|
|
3618
3618
|
}
|
|
3619
|
-
}),
|
|
3620
|
-
}, [
|
|
3621
|
-
|
|
3622
|
-
if (!
|
|
3623
|
-
const
|
|
3624
|
-
|
|
3625
|
-
effects:
|
|
3619
|
+
}), Re.of(vo)), p;
|
|
3620
|
+
}, [w, o, c, v]);
|
|
3621
|
+
ge(() => {
|
|
3622
|
+
if (!y.current) return;
|
|
3623
|
+
const p = y.current, V = l && l.length > 0 ? Hr(l, d, f) : [];
|
|
3624
|
+
p.dispatch({
|
|
3625
|
+
effects: v.reconfigure(V)
|
|
3626
3626
|
}), l && l.length > 0 && setTimeout(() => {
|
|
3627
|
-
if (!
|
|
3628
|
-
const
|
|
3629
|
-
|
|
3627
|
+
if (!y.current) return;
|
|
3628
|
+
const z = jn(p.state, l);
|
|
3629
|
+
z.length > 0 && p.dispatch({
|
|
3630
3630
|
selection: {
|
|
3631
|
-
anchor:
|
|
3631
|
+
anchor: z[0].from
|
|
3632
3632
|
},
|
|
3633
|
-
effects:
|
|
3633
|
+
effects: q.scrollIntoView(z[0].from, {
|
|
3634
3634
|
y: "start",
|
|
3635
3635
|
// 垂直居中
|
|
3636
3636
|
yMargin: 30
|
|
@@ -3638,38 +3638,44 @@ const xs = (e, t) => {
|
|
|
3638
3638
|
})
|
|
3639
3639
|
});
|
|
3640
3640
|
}, 0);
|
|
3641
|
-
}, [l, d, f,
|
|
3642
|
-
insertTextAtCursor: (
|
|
3641
|
+
}, [l, d, f, v]), Gr(t, () => ({
|
|
3642
|
+
insertTextAtCursor: (p) => {
|
|
3643
|
+
var V;
|
|
3644
|
+
return (V = C.current) == null ? void 0 : V.insertTextAtCursor(p);
|
|
3643
3645
|
},
|
|
3644
|
-
goToPosition: (
|
|
3646
|
+
goToPosition: (p) => {
|
|
3647
|
+
var V;
|
|
3648
|
+
return (V = C.current) == null ? void 0 : V.goToPosition(p);
|
|
3645
3649
|
},
|
|
3646
|
-
goToLine: (
|
|
3650
|
+
goToLine: (p, V) => {
|
|
3651
|
+
var z;
|
|
3652
|
+
return (z = C.current) == null ? void 0 : z.goToLine(p, V);
|
|
3647
3653
|
},
|
|
3648
|
-
getEditorView: () =>
|
|
3654
|
+
getEditorView: () => y.current,
|
|
3649
3655
|
/**
|
|
3650
3656
|
* 滚动到指定匹配的第一个位置
|
|
3651
3657
|
*/
|
|
3652
|
-
scrollToMatch: (
|
|
3653
|
-
if (!
|
|
3654
|
-
const
|
|
3655
|
-
|
|
3658
|
+
scrollToMatch: (p) => {
|
|
3659
|
+
if (!y.current || !(l != null && l.length)) return;
|
|
3660
|
+
const z = ms(y.current.state, l).find((K) => K.match.key === p.key && vs(K.match.value, p.value));
|
|
3661
|
+
z && y.current.dispatch({
|
|
3656
3662
|
selection: {
|
|
3657
|
-
anchor:
|
|
3663
|
+
anchor: z.from
|
|
3658
3664
|
},
|
|
3659
|
-
effects:
|
|
3665
|
+
effects: q.scrollIntoView(z.from, {
|
|
3660
3666
|
y: "start",
|
|
3661
3667
|
yMargin: 30
|
|
3662
3668
|
})
|
|
3663
3669
|
});
|
|
3664
3670
|
},
|
|
3665
|
-
handleFormat:
|
|
3666
|
-
}), [l]);
|
|
3667
|
-
const
|
|
3668
|
-
|
|
3669
|
-
|
|
3671
|
+
handleFormat: b
|
|
3672
|
+
}), [b, l]);
|
|
3673
|
+
const Y = le((p) => {
|
|
3674
|
+
y.current = p, a && r && setTimeout(() => {
|
|
3675
|
+
b();
|
|
3670
3676
|
}, 0);
|
|
3671
|
-
}, [a, r,
|
|
3672
|
-
return /* @__PURE__ */ Tt(sr, { ref:
|
|
3677
|
+
}, [a, r, b]);
|
|
3678
|
+
return /* @__PURE__ */ Tt(sr, { ref: C, value: r, showLineNumbers: i, onChange: $, extensions: h, onEditorViewCreated: Y, ...g });
|
|
3673
3679
|
}, Ds = rt(xs);
|
|
3674
3680
|
export {
|
|
3675
3681
|
Ls as Editor,
|
|
@@ -3701,5 +3707,5 @@ export {
|
|
|
3701
3707
|
Tn as search,
|
|
3702
3708
|
An as searchKeymap,
|
|
3703
3709
|
As as searchTranslationsZhCN,
|
|
3704
|
-
|
|
3710
|
+
Se as updateReadOnlyRanges
|
|
3705
3711
|
};
|