@topol.io/editor-react 0.1.0 → 0.2.1
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/README.md +1 -23
- package/dist/topol-editor-react.es.js +488 -656
- package/dist/topol-editor-react.umd.js +21 -17
- package/package.json +9 -9
|
@@ -1,680 +1,512 @@
|
|
|
1
|
-
import Oe, { useEffect as
|
|
2
|
-
var
|
|
1
|
+
import Oe, { useEffect as je } from "react";
|
|
2
|
+
var A = { exports: {} }, P = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var ve;
|
|
13
|
+
function pe() {
|
|
14
|
+
if (ve) return P;
|
|
15
|
+
ve = 1;
|
|
16
|
+
var o = Symbol.for("react.transitional.element"), l = Symbol.for("react.fragment");
|
|
17
|
+
function c(r, i, f) {
|
|
18
|
+
var g = null;
|
|
19
|
+
if (f !== void 0 && (g = "" + f), i.key !== void 0 && (g = "" + i.key), "key" in i) {
|
|
20
|
+
f = {};
|
|
21
|
+
for (var y in i)
|
|
22
|
+
y !== "key" && (f[y] = i[y]);
|
|
23
|
+
} else f = i;
|
|
24
|
+
return i = f.ref, {
|
|
25
|
+
$$typeof: o,
|
|
26
|
+
type: r,
|
|
27
|
+
key: g,
|
|
28
|
+
ref: i !== void 0 ? i : null,
|
|
29
|
+
props: f
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return P.Fragment = l, P.jsx = c, P.jsxs = c, P;
|
|
33
|
+
}
|
|
34
|
+
var R = {};
|
|
3
35
|
/**
|
|
4
36
|
* @license React
|
|
5
37
|
* react-jsx-runtime.development.js
|
|
6
38
|
*
|
|
7
|
-
* Copyright (c)
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
40
|
*
|
|
9
41
|
* This source code is licensed under the MIT license found in the
|
|
10
42
|
* LICENSE file in the root directory of this source tree.
|
|
11
43
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (
|
|
18
|
-
return null;
|
|
19
|
-
|
|
20
|
-
return typeof r == "function" ? r : null;
|
|
21
|
-
}
|
|
22
|
-
var O = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
23
|
-
function m(e) {
|
|
24
|
-
{
|
|
25
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
|
26
|
-
t[o - 1] = arguments[o];
|
|
27
|
-
je("error", e, t);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function je(e, r, t) {
|
|
31
|
-
{
|
|
32
|
-
var o = O.ReactDebugCurrentFrame, s = o.getStackAddendum();
|
|
33
|
-
s !== "" && (r += "%s", t = t.concat([s]));
|
|
34
|
-
var c = t.map(function(l) {
|
|
35
|
-
return String(l);
|
|
36
|
-
});
|
|
37
|
-
c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
var Ae = !1, De = !1, Fe = !1, Ie = !1, Be = !1, ee;
|
|
41
|
-
ee = Symbol.for("react.module.reference");
|
|
42
|
-
function Me(e) {
|
|
43
|
-
return !!(typeof e == "string" || typeof e == "function" || e === a || e === b || Be || e === f || e === C || e === E || Ie || e === B || Ae || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === w || e.$$typeof === j || e.$$typeof === _ || e.$$typeof === h || // This needs to include all possible module reference object
|
|
44
|
-
// types supported by any Flight configuration anywhere since
|
|
45
|
-
// we don't know which Flight build this will end up being used
|
|
46
|
-
// with.
|
|
47
|
-
e.$$typeof === ee || e.getModuleId !== void 0));
|
|
48
|
-
}
|
|
49
|
-
function We(e, r, t) {
|
|
50
|
-
var o = e.displayName;
|
|
51
|
-
if (o)
|
|
52
|
-
return o;
|
|
53
|
-
var s = r.displayName || r.name || "";
|
|
54
|
-
return s !== "" ? t + "(" + s + ")" : t;
|
|
55
|
-
}
|
|
56
|
-
function re(e) {
|
|
57
|
-
return e.displayName || "Context";
|
|
58
|
-
}
|
|
59
|
-
function T(e) {
|
|
60
|
-
if (e == null)
|
|
61
|
-
return null;
|
|
62
|
-
if (typeof e.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
63
|
-
return e.displayName || e.name || null;
|
|
64
|
-
if (typeof e == "string")
|
|
65
|
-
return e;
|
|
44
|
+
var ge;
|
|
45
|
+
function Ne() {
|
|
46
|
+
return ge || (ge = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
function o(e) {
|
|
48
|
+
if (e == null) return null;
|
|
49
|
+
if (typeof e == "function")
|
|
50
|
+
return e.$$typeof === _e ? null : e.displayName || e.name || null;
|
|
51
|
+
if (typeof e == "string") return e;
|
|
66
52
|
switch (e) {
|
|
67
|
-
case
|
|
53
|
+
case N:
|
|
68
54
|
return "Fragment";
|
|
69
|
-
case
|
|
55
|
+
case Pe:
|
|
70
56
|
return "Portal";
|
|
71
|
-
case
|
|
57
|
+
case Z:
|
|
72
58
|
return "Profiler";
|
|
73
|
-
case
|
|
59
|
+
case X:
|
|
74
60
|
return "StrictMode";
|
|
75
|
-
case
|
|
61
|
+
case B:
|
|
76
62
|
return "Suspense";
|
|
77
|
-
case
|
|
63
|
+
case Y:
|
|
78
64
|
return "SuspenseList";
|
|
79
65
|
}
|
|
80
66
|
if (typeof e == "object")
|
|
81
|
-
switch (
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return
|
|
88
|
-
case
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
return
|
|
93
|
-
case
|
|
94
|
-
|
|
67
|
+
switch (typeof e.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), e.$$typeof) {
|
|
70
|
+
case K:
|
|
71
|
+
return (e.displayName || "Context") + ".Provider";
|
|
72
|
+
case Q:
|
|
73
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
74
|
+
case M:
|
|
75
|
+
var t = e.render;
|
|
76
|
+
return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
77
|
+
case W:
|
|
78
|
+
return t = e.displayName || null, t !== null ? t : o(e.type) || "Memo";
|
|
79
|
+
case $:
|
|
80
|
+
t = e._payload, e = e._init;
|
|
95
81
|
try {
|
|
96
|
-
return
|
|
82
|
+
return o(e(t));
|
|
97
83
|
} catch {
|
|
98
|
-
return null;
|
|
99
84
|
}
|
|
100
|
-
}
|
|
101
85
|
}
|
|
102
86
|
return null;
|
|
103
87
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
se.__reactDisabledLog = !0;
|
|
108
|
-
function Le() {
|
|
109
|
-
{
|
|
110
|
-
if (A === 0) {
|
|
111
|
-
ne = console.log, te = console.info, oe = console.warn, ae = console.error, ie = console.group, le = console.groupCollapsed, ue = console.groupEnd;
|
|
112
|
-
var e = {
|
|
113
|
-
configurable: !0,
|
|
114
|
-
enumerable: !0,
|
|
115
|
-
value: se,
|
|
116
|
-
writable: !0
|
|
117
|
-
};
|
|
118
|
-
Object.defineProperties(console, {
|
|
119
|
-
info: e,
|
|
120
|
-
log: e,
|
|
121
|
-
warn: e,
|
|
122
|
-
error: e,
|
|
123
|
-
group: e,
|
|
124
|
-
groupCollapsed: e,
|
|
125
|
-
groupEnd: e
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
A++;
|
|
129
|
-
}
|
|
88
|
+
function l(e) {
|
|
89
|
+
return "" + e;
|
|
130
90
|
}
|
|
131
|
-
function
|
|
132
|
-
{
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
writable: !0
|
|
138
|
-
};
|
|
139
|
-
Object.defineProperties(console, {
|
|
140
|
-
log: S({}, e, {
|
|
141
|
-
value: ne
|
|
142
|
-
}),
|
|
143
|
-
info: S({}, e, {
|
|
144
|
-
value: te
|
|
145
|
-
}),
|
|
146
|
-
warn: S({}, e, {
|
|
147
|
-
value: oe
|
|
148
|
-
}),
|
|
149
|
-
error: S({}, e, {
|
|
150
|
-
value: ae
|
|
151
|
-
}),
|
|
152
|
-
group: S({}, e, {
|
|
153
|
-
value: ie
|
|
154
|
-
}),
|
|
155
|
-
groupCollapsed: S({}, e, {
|
|
156
|
-
value: le
|
|
157
|
-
}),
|
|
158
|
-
groupEnd: S({}, e, {
|
|
159
|
-
value: ue
|
|
160
|
-
})
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
A < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
91
|
+
function c(e) {
|
|
92
|
+
try {
|
|
93
|
+
l(e);
|
|
94
|
+
var t = !1;
|
|
95
|
+
} catch {
|
|
96
|
+
t = !0;
|
|
164
97
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
var o = s.stack.trim().match(/\n( *(at )?)/);
|
|
174
|
-
U = o && o[1] || "";
|
|
175
|
-
}
|
|
176
|
-
return `
|
|
177
|
-
` + U + e;
|
|
98
|
+
if (t) {
|
|
99
|
+
t = console;
|
|
100
|
+
var n = t.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
101
|
+
return n.call(
|
|
102
|
+
t,
|
|
103
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
104
|
+
u
|
|
105
|
+
), l(e);
|
|
178
106
|
}
|
|
179
107
|
}
|
|
180
|
-
|
|
181
|
-
{
|
|
182
|
-
var Ne = typeof WeakMap == "function" ? WeakMap : Map;
|
|
183
|
-
W = new Ne();
|
|
108
|
+
function r() {
|
|
184
109
|
}
|
|
185
|
-
function
|
|
186
|
-
if (
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
110
|
+
function i() {
|
|
111
|
+
if (S === 0) {
|
|
112
|
+
oe = console.log, te = console.info, ne = console.warn, re = console.error, ae = console.group, ie = console.groupCollapsed, le = console.groupEnd;
|
|
113
|
+
var e = {
|
|
114
|
+
configurable: !0,
|
|
115
|
+
enumerable: !0,
|
|
116
|
+
value: r,
|
|
117
|
+
writable: !0
|
|
118
|
+
};
|
|
119
|
+
Object.defineProperties(console, {
|
|
120
|
+
info: e,
|
|
121
|
+
log: e,
|
|
122
|
+
warn: e,
|
|
123
|
+
error: e,
|
|
124
|
+
group: e,
|
|
125
|
+
groupCollapsed: e,
|
|
126
|
+
groupEnd: e
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
S++;
|
|
130
|
+
}
|
|
131
|
+
function f() {
|
|
132
|
+
if (S--, S === 0) {
|
|
133
|
+
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
134
|
+
Object.defineProperties(console, {
|
|
135
|
+
log: T({}, e, { value: oe }),
|
|
136
|
+
info: T({}, e, { value: te }),
|
|
137
|
+
warn: T({}, e, { value: ne }),
|
|
138
|
+
error: T({}, e, { value: re }),
|
|
139
|
+
group: T({}, e, { value: ae }),
|
|
140
|
+
groupCollapsed: T({}, e, { value: ie }),
|
|
141
|
+
groupEnd: T({}, e, { value: le })
|
|
142
|
+
});
|
|
192
143
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
144
|
+
0 > S && console.error(
|
|
145
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
function g(e) {
|
|
149
|
+
if (z === void 0)
|
|
150
|
+
try {
|
|
151
|
+
throw Error();
|
|
152
|
+
} catch (n) {
|
|
153
|
+
var t = n.stack.trim().match(/\n( *(at )?)/);
|
|
154
|
+
z = t && t[1] || "", ue = -1 < n.stack.indexOf(`
|
|
155
|
+
at`) ? " (<anonymous>)" : -1 < n.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
156
|
+
}
|
|
157
|
+
return `
|
|
158
|
+
` + z + e + ue;
|
|
159
|
+
}
|
|
160
|
+
function y(e, t) {
|
|
161
|
+
if (!e || H) return "";
|
|
162
|
+
var n = V.get(e);
|
|
163
|
+
if (n !== void 0) return n;
|
|
164
|
+
H = !0, n = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
165
|
+
var u = null;
|
|
166
|
+
u = b.H, b.H = null, i();
|
|
199
167
|
try {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
throw Error();
|
|
203
|
-
};
|
|
204
|
-
if (Object.defineProperty(l.prototype, "props", {
|
|
205
|
-
set: function() {
|
|
206
|
-
throw Error();
|
|
207
|
-
}
|
|
208
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
168
|
+
var d = {
|
|
169
|
+
DetermineComponentFrameRoot: function() {
|
|
209
170
|
try {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
171
|
+
if (t) {
|
|
172
|
+
var w = function() {
|
|
173
|
+
throw Error();
|
|
174
|
+
};
|
|
175
|
+
if (Object.defineProperty(w.prototype, "props", {
|
|
176
|
+
set: function() {
|
|
177
|
+
throw Error();
|
|
178
|
+
}
|
|
179
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
180
|
+
try {
|
|
181
|
+
Reflect.construct(w, []);
|
|
182
|
+
} catch (m) {
|
|
183
|
+
var _ = m;
|
|
184
|
+
}
|
|
185
|
+
Reflect.construct(e, [], w);
|
|
186
|
+
} else {
|
|
187
|
+
try {
|
|
188
|
+
w.call();
|
|
189
|
+
} catch (m) {
|
|
190
|
+
_ = m;
|
|
191
|
+
}
|
|
192
|
+
e.call(w.prototype);
|
|
193
|
+
}
|
|
194
|
+
} else {
|
|
195
|
+
try {
|
|
196
|
+
throw Error();
|
|
197
|
+
} catch (m) {
|
|
198
|
+
_ = m;
|
|
199
|
+
}
|
|
200
|
+
(w = e()) && typeof w.catch == "function" && w.catch(function() {
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
} catch (m) {
|
|
204
|
+
if (m && _ && typeof m.stack == "string")
|
|
205
|
+
return [m.stack, _.stack];
|
|
220
206
|
}
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
} else {
|
|
224
|
-
try {
|
|
225
|
-
throw Error();
|
|
226
|
-
} catch (R) {
|
|
227
|
-
o = R;
|
|
207
|
+
return [null, null];
|
|
228
208
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
209
|
+
};
|
|
210
|
+
d.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
211
|
+
var s = Object.getOwnPropertyDescriptor(
|
|
212
|
+
d.DetermineComponentFrameRoot,
|
|
213
|
+
"name"
|
|
214
|
+
);
|
|
215
|
+
s && s.configurable && Object.defineProperty(
|
|
216
|
+
d.DetermineComponentFrameRoot,
|
|
217
|
+
"name",
|
|
218
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
219
|
+
);
|
|
220
|
+
var a = d.DetermineComponentFrameRoot(), E = a[0], C = a[1];
|
|
221
|
+
if (E && C) {
|
|
222
|
+
var v = E.split(`
|
|
223
|
+
`), h = C.split(`
|
|
224
|
+
`);
|
|
225
|
+
for (a = s = 0; s < v.length && !v[s].includes(
|
|
226
|
+
"DetermineComponentFrameRoot"
|
|
227
|
+
); )
|
|
228
|
+
s++;
|
|
229
|
+
for (; a < h.length && !h[a].includes(
|
|
230
|
+
"DetermineComponentFrameRoot"
|
|
231
|
+
); )
|
|
232
|
+
a++;
|
|
233
|
+
if (s === v.length || a === h.length)
|
|
234
|
+
for (s = v.length - 1, a = h.length - 1; 1 <= s && 0 <= a && v[s] !== h[a]; )
|
|
235
|
+
a--;
|
|
236
|
+
for (; 1 <= s && 0 <= a; s--, a--)
|
|
237
|
+
if (v[s] !== h[a]) {
|
|
238
|
+
if (s !== 1 || a !== 1)
|
|
240
239
|
do
|
|
241
|
-
if (
|
|
242
|
-
var
|
|
243
|
-
` +
|
|
244
|
-
|
|
240
|
+
if (s--, a--, 0 > a || v[s] !== h[a]) {
|
|
241
|
+
var k = `
|
|
242
|
+
` + v[s].replace(
|
|
243
|
+
" at new ",
|
|
244
|
+
" at "
|
|
245
|
+
);
|
|
246
|
+
return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, k), k;
|
|
245
247
|
}
|
|
246
|
-
while (
|
|
248
|
+
while (1 <= s && 0 <= a);
|
|
247
249
|
break;
|
|
248
250
|
}
|
|
249
251
|
}
|
|
250
252
|
} finally {
|
|
251
|
-
|
|
253
|
+
H = !1, b.H = u, f(), Error.prepareStackTrace = n;
|
|
252
254
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
if (e ==
|
|
265
|
-
return "";
|
|
266
|
-
if (typeof e == "function")
|
|
267
|
-
return ce(e, Ue(e));
|
|
268
|
-
if (typeof e == "string")
|
|
269
|
-
return M(e);
|
|
255
|
+
return v = (v = e ? e.displayName || e.name : "") ? g(v) : "", typeof e == "function" && V.set(e, v), v;
|
|
256
|
+
}
|
|
257
|
+
function x(e) {
|
|
258
|
+
if (e == null) return "";
|
|
259
|
+
if (typeof e == "function") {
|
|
260
|
+
var t = e.prototype;
|
|
261
|
+
return y(
|
|
262
|
+
e,
|
|
263
|
+
!(!t || !t.isReactComponent)
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
if (typeof e == "string") return g(e);
|
|
270
267
|
switch (e) {
|
|
271
|
-
case
|
|
272
|
-
return
|
|
273
|
-
case
|
|
274
|
-
return
|
|
268
|
+
case B:
|
|
269
|
+
return g("Suspense");
|
|
270
|
+
case Y:
|
|
271
|
+
return g("SuspenseList");
|
|
275
272
|
}
|
|
276
273
|
if (typeof e == "object")
|
|
277
274
|
switch (e.$$typeof) {
|
|
278
|
-
case
|
|
279
|
-
return
|
|
280
|
-
case
|
|
281
|
-
return
|
|
282
|
-
case
|
|
283
|
-
|
|
275
|
+
case M:
|
|
276
|
+
return e = y(e.render, !1), e;
|
|
277
|
+
case W:
|
|
278
|
+
return x(e.type);
|
|
279
|
+
case $:
|
|
280
|
+
t = e._payload, e = e._init;
|
|
284
281
|
try {
|
|
285
|
-
return
|
|
282
|
+
return x(e(t));
|
|
286
283
|
} catch {
|
|
287
284
|
}
|
|
288
|
-
}
|
|
289
285
|
}
|
|
290
286
|
return "";
|
|
291
287
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
296
|
-
de.setExtraStackFrame(t);
|
|
297
|
-
} else
|
|
298
|
-
de.setExtraStackFrame(null);
|
|
299
|
-
}
|
|
300
|
-
function Ve(e, r, t, o, s) {
|
|
301
|
-
{
|
|
302
|
-
var c = Function.call.bind($);
|
|
303
|
-
for (var l in e)
|
|
304
|
-
if (c(e, l)) {
|
|
305
|
-
var i = void 0;
|
|
306
|
-
try {
|
|
307
|
-
if (typeof e[l] != "function") {
|
|
308
|
-
var p = Error((o || "React class") + ": " + t + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
309
|
-
throw p.name = "Invariant Violation", p;
|
|
310
|
-
}
|
|
311
|
-
i = e[l](r, l, o, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
312
|
-
} catch (d) {
|
|
313
|
-
i = d;
|
|
314
|
-
}
|
|
315
|
-
i && !(i instanceof Error) && (N(s), m("%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).", o || "React class", t, l, typeof i), N(null)), i instanceof Error && !(i.message in fe) && (fe[i.message] = !0, N(s), m("Failed %s type: %s", t, i.message), N(null));
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
var ze = Array.isArray;
|
|
320
|
-
function z(e) {
|
|
321
|
-
return ze(e);
|
|
322
|
-
}
|
|
323
|
-
function qe(e) {
|
|
324
|
-
{
|
|
325
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
326
|
-
return t;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
function He(e) {
|
|
330
|
-
try {
|
|
331
|
-
return ve(e), !1;
|
|
332
|
-
} catch {
|
|
333
|
-
return !0;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
function ve(e) {
|
|
337
|
-
return "" + e;
|
|
288
|
+
function O() {
|
|
289
|
+
var e = b.A;
|
|
290
|
+
return e === null ? null : e.getOwner();
|
|
338
291
|
}
|
|
339
|
-
function
|
|
340
|
-
if (
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
var D = O.ReactCurrentOwner, Je = {
|
|
344
|
-
key: !0,
|
|
345
|
-
ref: !0,
|
|
346
|
-
__self: !0,
|
|
347
|
-
__source: !0
|
|
348
|
-
}, he, me, q;
|
|
349
|
-
q = {};
|
|
350
|
-
function Ge(e) {
|
|
351
|
-
if ($.call(e, "ref")) {
|
|
352
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
353
|
-
if (r && r.isReactWarning)
|
|
354
|
-
return !1;
|
|
355
|
-
}
|
|
356
|
-
return e.ref !== void 0;
|
|
357
|
-
}
|
|
358
|
-
function Ke(e) {
|
|
359
|
-
if ($.call(e, "key")) {
|
|
360
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
361
|
-
if (r && r.isReactWarning)
|
|
362
|
-
return !1;
|
|
292
|
+
function Te(e) {
|
|
293
|
+
if (ee.call(e, "key")) {
|
|
294
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
295
|
+
if (t && t.isReactWarning) return !1;
|
|
363
296
|
}
|
|
364
297
|
return e.key !== void 0;
|
|
365
298
|
}
|
|
366
|
-
function
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
299
|
+
function he(e, t) {
|
|
300
|
+
function n() {
|
|
301
|
+
se || (se = !0, console.error(
|
|
302
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
303
|
+
t
|
|
304
|
+
));
|
|
370
305
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
var t = function() {
|
|
386
|
-
me || (me = !0, m("%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)", r));
|
|
387
|
-
};
|
|
388
|
-
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
389
|
-
get: t,
|
|
390
|
-
configurable: !0
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
var er = function(e, r, t, o, s, c, l) {
|
|
395
|
-
var i = {
|
|
396
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
397
|
-
$$typeof: u,
|
|
398
|
-
// Built-in properties that belong on the element
|
|
306
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
307
|
+
get: n,
|
|
308
|
+
configurable: !0
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
function ye() {
|
|
312
|
+
var e = o(this.type);
|
|
313
|
+
return ce[e] || (ce[e] = !0, console.error(
|
|
314
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
315
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
316
|
+
}
|
|
317
|
+
function Ce(e, t, n, u, d, s) {
|
|
318
|
+
return n = s.ref, e = {
|
|
319
|
+
$$typeof: p,
|
|
399
320
|
type: e,
|
|
400
|
-
key:
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
_owner: c
|
|
405
|
-
};
|
|
406
|
-
return i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
407
|
-
configurable: !1,
|
|
321
|
+
key: t,
|
|
322
|
+
props: s,
|
|
323
|
+
_owner: d
|
|
324
|
+
}, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
|
|
408
325
|
enumerable: !1,
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
}), Object.defineProperty(i, "_self", {
|
|
326
|
+
get: ye
|
|
327
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
412
328
|
configurable: !1,
|
|
413
329
|
enumerable: !1,
|
|
414
|
-
writable: !
|
|
415
|
-
value:
|
|
416
|
-
}), Object.defineProperty(
|
|
330
|
+
writable: !0,
|
|
331
|
+
value: 0
|
|
332
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
417
333
|
configurable: !1,
|
|
418
334
|
enumerable: !1,
|
|
419
|
-
writable: !
|
|
420
|
-
value:
|
|
421
|
-
}), Object.freeze && (Object.freeze(
|
|
422
|
-
}
|
|
423
|
-
function
|
|
424
|
-
{
|
|
425
|
-
var
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
}
|
|
438
|
-
return er(e, i, p, s, o, D.current, l);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
var H = O.ReactCurrentOwner, pe = O.ReactDebugCurrentFrame;
|
|
442
|
-
function k(e) {
|
|
443
|
-
if (e) {
|
|
444
|
-
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
445
|
-
pe.setExtraStackFrame(t);
|
|
335
|
+
writable: !0,
|
|
336
|
+
value: null
|
|
337
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
338
|
+
}
|
|
339
|
+
function L(e, t, n, u, d, s) {
|
|
340
|
+
if (typeof e == "string" || typeof e == "function" || e === N || e === Z || e === X || e === B || e === Y || e === Re || typeof e == "object" && e !== null && (e.$$typeof === $ || e.$$typeof === W || e.$$typeof === K || e.$$typeof === Q || e.$$typeof === M || e.$$typeof === Ae || e.getModuleId !== void 0)) {
|
|
341
|
+
var a = t.children;
|
|
342
|
+
if (a !== void 0)
|
|
343
|
+
if (u)
|
|
344
|
+
if (U(a)) {
|
|
345
|
+
for (u = 0; u < a.length; u++)
|
|
346
|
+
G(a[u], e);
|
|
347
|
+
Object.freeze && Object.freeze(a);
|
|
348
|
+
} else
|
|
349
|
+
console.error(
|
|
350
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
351
|
+
);
|
|
352
|
+
else G(a, e);
|
|
446
353
|
} else
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
470
|
-
return `
|
|
471
|
-
|
|
472
|
-
Check your code at ` + r + ":" + t + ".";
|
|
473
|
-
}
|
|
474
|
-
return "";
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
var ye = {};
|
|
478
|
-
function tr(e) {
|
|
479
|
-
{
|
|
480
|
-
var r = Ee();
|
|
481
|
-
if (!r) {
|
|
482
|
-
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
483
|
-
t && (r = `
|
|
484
|
-
|
|
485
|
-
Check the top-level render call using <` + t + ">.");
|
|
486
|
-
}
|
|
487
|
-
return r;
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
function be(e, r) {
|
|
491
|
-
{
|
|
492
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
493
|
-
return;
|
|
494
|
-
e._store.validated = !0;
|
|
495
|
-
var t = tr(r);
|
|
496
|
-
if (ye[t])
|
|
497
|
-
return;
|
|
498
|
-
ye[t] = !0;
|
|
499
|
-
var o = "";
|
|
500
|
-
e && e._owner && e._owner !== H.current && (o = " It was passed a child from " + T(e._owner.type) + "."), k(e), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, o), k(null);
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
function we(e, r) {
|
|
504
|
-
{
|
|
505
|
-
if (typeof e != "object")
|
|
506
|
-
return;
|
|
507
|
-
if (z(e))
|
|
508
|
-
for (var t = 0; t < e.length; t++) {
|
|
509
|
-
var o = e[t];
|
|
510
|
-
G(o) && be(o, r);
|
|
511
|
-
}
|
|
512
|
-
else if (G(e))
|
|
513
|
-
e._store && (e._store.validated = !0);
|
|
514
|
-
else if (e) {
|
|
515
|
-
var s = xe(e);
|
|
516
|
-
if (typeof s == "function" && s !== e.entries)
|
|
517
|
-
for (var c = s.call(e), l; !(l = c.next()).done; )
|
|
518
|
-
G(l.value) && be(l.value, r);
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
function or(e) {
|
|
523
|
-
{
|
|
524
|
-
var r = e.type;
|
|
525
|
-
if (r == null || typeof r == "string")
|
|
526
|
-
return;
|
|
527
|
-
var t;
|
|
528
|
-
if (typeof r == "function")
|
|
529
|
-
t = r.propTypes;
|
|
530
|
-
else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
|
|
531
|
-
// Inner props are checked in the reconciler.
|
|
532
|
-
r.$$typeof === w))
|
|
533
|
-
t = r.propTypes;
|
|
534
|
-
else
|
|
535
|
-
return;
|
|
536
|
-
if (t) {
|
|
537
|
-
var o = T(r);
|
|
538
|
-
Ve(t, e.props, "prop", o, e);
|
|
539
|
-
} else if (r.PropTypes !== void 0 && !J) {
|
|
540
|
-
J = !0;
|
|
541
|
-
var s = T(r);
|
|
542
|
-
m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
|
|
543
|
-
}
|
|
544
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
354
|
+
a = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? u = "null" : U(e) ? u = "array" : e !== void 0 && e.$$typeof === p ? (u = "<" + (o(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, console.error(
|
|
355
|
+
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
356
|
+
u,
|
|
357
|
+
a
|
|
358
|
+
);
|
|
359
|
+
if (ee.call(t, "key")) {
|
|
360
|
+
a = o(e);
|
|
361
|
+
var E = Object.keys(t).filter(function(v) {
|
|
362
|
+
return v !== "key";
|
|
363
|
+
});
|
|
364
|
+
u = 0 < E.length ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}", fe[a + u] || (E = 0 < E.length ? "{" + E.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
365
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
366
|
+
let props = %s;
|
|
367
|
+
<%s {...props} />
|
|
368
|
+
React keys must be passed directly to JSX without using spread:
|
|
369
|
+
let props = %s;
|
|
370
|
+
<%s key={someKey} {...props} />`,
|
|
371
|
+
u,
|
|
372
|
+
a,
|
|
373
|
+
E,
|
|
374
|
+
a
|
|
375
|
+
), fe[a + u] = !0);
|
|
545
376
|
}
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
377
|
+
if (a = null, n !== void 0 && (c(n), a = "" + n), Te(t) && (c(t.key), a = "" + t.key), "key" in t) {
|
|
378
|
+
n = {};
|
|
379
|
+
for (var C in t)
|
|
380
|
+
C !== "key" && (n[C] = t[C]);
|
|
381
|
+
} else n = t;
|
|
382
|
+
return a && he(
|
|
383
|
+
n,
|
|
384
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
385
|
+
), Ce(e, a, s, d, O(), n);
|
|
386
|
+
}
|
|
387
|
+
function G(e, t) {
|
|
388
|
+
if (typeof e == "object" && e && e.$$typeof !== xe) {
|
|
389
|
+
if (U(e))
|
|
390
|
+
for (var n = 0; n < e.length; n++) {
|
|
391
|
+
var u = e[n];
|
|
392
|
+
j(u) && I(u, t);
|
|
554
393
|
}
|
|
555
|
-
|
|
556
|
-
|
|
394
|
+
else if (j(e))
|
|
395
|
+
e._store && (e._store.validated = 1);
|
|
396
|
+
else if (e === null || typeof e != "object" ? n = null : (n = D && e[D] || e["@@iterator"], n = typeof n == "function" ? n : null), typeof n == "function" && n !== e.entries && (n = n.call(e), n !== e))
|
|
397
|
+
for (; !(e = n.next()).done; )
|
|
398
|
+
j(e.value) && I(e.value, t);
|
|
557
399
|
}
|
|
558
400
|
}
|
|
559
|
-
function
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
if (o)
|
|
577
|
-
if (z(y)) {
|
|
578
|
-
for (var x = 0; x < y.length; x++)
|
|
579
|
-
we(y[x], e);
|
|
580
|
-
Object.freeze && Object.freeze(y);
|
|
581
|
-
} else
|
|
582
|
-
m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
583
|
-
else
|
|
584
|
-
we(y, e);
|
|
585
|
-
}
|
|
586
|
-
return e === a ? ar(v) : or(v), v;
|
|
401
|
+
function j(e) {
|
|
402
|
+
return typeof e == "object" && e !== null && e.$$typeof === p;
|
|
403
|
+
}
|
|
404
|
+
function I(e, t) {
|
|
405
|
+
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, t = Se(t), !de[t])) {
|
|
406
|
+
de[t] = !0;
|
|
407
|
+
var n = "";
|
|
408
|
+
e && e._owner != null && e._owner !== O() && (n = null, typeof e._owner.tag == "number" ? n = o(e._owner.type) : typeof e._owner.name == "string" && (n = e._owner.name), n = " It was passed a child from " + n + ".");
|
|
409
|
+
var u = b.getCurrentStack;
|
|
410
|
+
b.getCurrentStack = function() {
|
|
411
|
+
var d = x(e.type);
|
|
412
|
+
return u && (d += u() || ""), d;
|
|
413
|
+
}, console.error(
|
|
414
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
415
|
+
t,
|
|
416
|
+
n
|
|
417
|
+
), b.getCurrentStack = u;
|
|
587
418
|
}
|
|
588
419
|
}
|
|
589
|
-
function
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
420
|
+
function Se(e) {
|
|
421
|
+
var t = "", n = O();
|
|
422
|
+
return n && (n = o(n.type)) && (t = `
|
|
423
|
+
|
|
424
|
+
Check the render method of \`` + n + "`."), t || (e = o(e)) && (t = `
|
|
425
|
+
|
|
426
|
+
Check the top-level render call using <` + e + ">."), t;
|
|
427
|
+
}
|
|
428
|
+
var ke = Oe, p = Symbol.for("react.transitional.element"), Pe = Symbol.for("react.portal"), N = Symbol.for("react.fragment"), X = Symbol.for("react.strict_mode"), Z = Symbol.for("react.profiler"), Q = Symbol.for("react.consumer"), K = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), Y = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), Re = Symbol.for("react.offscreen"), D = Symbol.iterator, _e = Symbol.for("react.client.reference"), b = ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, T = Object.assign, Ae = Symbol.for("react.client.reference"), U = Array.isArray, S = 0, oe, te, ne, re, ae, ie, le;
|
|
429
|
+
r.__reactDisabledLog = !0;
|
|
430
|
+
var z, ue, H = !1, V = new (typeof WeakMap == "function" ? WeakMap : Map)(), xe = Symbol.for("react.client.reference"), se, ce = {}, fe = {}, de = {};
|
|
431
|
+
R.Fragment = N, R.jsx = function(e, t, n, u, d) {
|
|
432
|
+
return L(e, t, n, !1, u, d);
|
|
433
|
+
}, R.jsxs = function(e, t, n, u, d) {
|
|
434
|
+
return L(e, t, n, !0, u, d);
|
|
435
|
+
};
|
|
436
|
+
}()), R;
|
|
598
437
|
}
|
|
599
|
-
var
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
* react-jsx-runtime.production.min.js
|
|
603
|
-
*
|
|
604
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
605
|
-
*
|
|
606
|
-
* This source code is licensed under the MIT license found in the
|
|
607
|
-
* LICENSE file in the root directory of this source tree.
|
|
608
|
-
*/
|
|
609
|
-
var Pe;
|
|
610
|
-
function dr() {
|
|
611
|
-
if (Pe)
|
|
612
|
-
return I;
|
|
613
|
-
Pe = 1;
|
|
614
|
-
var n = Oe, u = Symbol.for("react.element"), g = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, f = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, b = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
615
|
-
function j(_, h, C) {
|
|
616
|
-
var E, w = {}, P = null, B = null;
|
|
617
|
-
C !== void 0 && (P = "" + C), h.key !== void 0 && (P = "" + h.key), h.ref !== void 0 && (B = h.ref);
|
|
618
|
-
for (E in h)
|
|
619
|
-
a.call(h, E) && !b.hasOwnProperty(E) && (w[E] = h[E]);
|
|
620
|
-
if (_ && _.defaultProps)
|
|
621
|
-
for (E in h = _.defaultProps, h)
|
|
622
|
-
w[E] === void 0 && (w[E] = h[E]);
|
|
623
|
-
return { $$typeof: u, type: _, key: P, ref: B, props: w, _owner: f.current };
|
|
624
|
-
}
|
|
625
|
-
return I.Fragment = g, I.jsx = j, I.jsxs = j, I;
|
|
438
|
+
var Ee;
|
|
439
|
+
function Me() {
|
|
440
|
+
return Ee || (Ee = 1, process.env.NODE_ENV === "production" ? A.exports = pe() : A.exports = Ne()), A.exports;
|
|
626
441
|
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
442
|
+
var Be = Me();
|
|
443
|
+
function Ye(o) {
|
|
444
|
+
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
631
445
|
}
|
|
632
|
-
var
|
|
633
|
-
var
|
|
634
|
-
typeof
|
|
635
|
-
},
|
|
636
|
-
var
|
|
637
|
-
|
|
446
|
+
var We = function(o, l, c) {
|
|
447
|
+
var r = document.head || document.getElementsByTagName("head")[0], i = document.createElement("script");
|
|
448
|
+
typeof l == "function" && (c = l, l = {}), l = l || {}, c = c || function() {
|
|
449
|
+
}, i.type = l.type || "text/javascript", i.charset = l.charset || "utf8", i.async = "async" in l ? !!l.async : !0, i.src = o, l.attrs && $e(i, l.attrs), l.text && (i.text = "" + l.text);
|
|
450
|
+
var f = "onload" in i ? me : Ue;
|
|
451
|
+
f(i, c), i.onload || me(i, c), r.appendChild(i);
|
|
638
452
|
};
|
|
639
|
-
function
|
|
640
|
-
for (var
|
|
641
|
-
|
|
453
|
+
function $e(o, l) {
|
|
454
|
+
for (var c in l)
|
|
455
|
+
o.setAttribute(c, l[c]);
|
|
642
456
|
}
|
|
643
|
-
function
|
|
644
|
-
|
|
645
|
-
this.onerror = this.onload = null,
|
|
646
|
-
},
|
|
647
|
-
this.onerror = this.onload = null,
|
|
457
|
+
function me(o, l) {
|
|
458
|
+
o.onload = function() {
|
|
459
|
+
this.onerror = this.onload = null, l(null, o);
|
|
460
|
+
}, o.onerror = function() {
|
|
461
|
+
this.onerror = this.onload = null, l(new Error("Failed to load " + this.src), o);
|
|
648
462
|
};
|
|
649
463
|
}
|
|
650
|
-
function
|
|
651
|
-
|
|
652
|
-
this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null,
|
|
464
|
+
function Ue(o, l) {
|
|
465
|
+
o.onreadystatechange = function() {
|
|
466
|
+
this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, l(null, o));
|
|
653
467
|
};
|
|
654
468
|
}
|
|
655
|
-
const
|
|
656
|
-
function
|
|
657
|
-
switch (
|
|
469
|
+
const be = /* @__PURE__ */ Ye(We), J = "https://d5aoblv5p04cg.cloudfront.net/editor-3/loader/build.js", ze = "https://d5aoblv5p04cg.cloudfront.net/develop/loader/build.js", He = "https://d5aoblv5p04cg.cloudfront.net/staging/loader/build.js";
|
|
470
|
+
function Ve(o = "production") {
|
|
471
|
+
switch (o) {
|
|
658
472
|
case "dev":
|
|
659
|
-
return
|
|
473
|
+
return ze;
|
|
660
474
|
case "staging":
|
|
661
|
-
return
|
|
475
|
+
return He;
|
|
476
|
+
case "production":
|
|
477
|
+
return J;
|
|
662
478
|
default:
|
|
663
|
-
return
|
|
479
|
+
return `https://d10h8ga60f7b91.cloudfront.net/preview-app-${o}/loader/build.js`;
|
|
664
480
|
}
|
|
665
481
|
}
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
482
|
+
async function qe(o) {
|
|
483
|
+
return new Promise((l, c) => {
|
|
484
|
+
be(J, (r) => {
|
|
485
|
+
r !== null && c(r), window.TopolPlugin.init(o), l(!0);
|
|
486
|
+
});
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
const we = {
|
|
490
|
+
init: (o, l) => new Promise((c, r) => {
|
|
491
|
+
const i = Ve(l == null ? void 0 : l.stage);
|
|
492
|
+
be(i, async (f) => {
|
|
493
|
+
if (f !== null) {
|
|
494
|
+
if (i !== J)
|
|
495
|
+
try {
|
|
496
|
+
return await qe(o), c(!0);
|
|
497
|
+
} catch (g) {
|
|
498
|
+
r(g);
|
|
499
|
+
}
|
|
500
|
+
r(f);
|
|
501
|
+
}
|
|
502
|
+
window.TopolPlugin.init(o), c(!0);
|
|
671
503
|
});
|
|
672
504
|
}),
|
|
673
505
|
save: () => {
|
|
674
506
|
window.TopolPlugin.save();
|
|
675
507
|
},
|
|
676
|
-
load: (
|
|
677
|
-
window.TopolPlugin.load(
|
|
508
|
+
load: (o) => {
|
|
509
|
+
window.TopolPlugin.load(o);
|
|
678
510
|
},
|
|
679
511
|
togglePreview: () => {
|
|
680
512
|
window.TopolPlugin.togglePreview();
|
|
@@ -682,8 +514,8 @@ const Ce = {
|
|
|
682
514
|
togglePreviewSize: () => {
|
|
683
515
|
window.TopolPlugin.togglePreviewSize();
|
|
684
516
|
},
|
|
685
|
-
chooseFile: (
|
|
686
|
-
window.TopolPlugin.chooseFile(
|
|
517
|
+
chooseFile: (o) => {
|
|
518
|
+
window.TopolPlugin.chooseFile(o);
|
|
687
519
|
},
|
|
688
520
|
undo: () => {
|
|
689
521
|
window.TopolPlugin.undo();
|
|
@@ -694,17 +526,17 @@ const Ce = {
|
|
|
694
526
|
destroy: () => {
|
|
695
527
|
window.TopolPlugin.destroy();
|
|
696
528
|
},
|
|
697
|
-
setSavedBlocks: (
|
|
698
|
-
window.TopolPlugin.setSavedBlocks(
|
|
529
|
+
setSavedBlocks: (o) => {
|
|
530
|
+
window.TopolPlugin.setSavedBlocks(o);
|
|
699
531
|
},
|
|
700
|
-
setPreviewHTML: (
|
|
701
|
-
window.TopolPlugin.setPreviewHTML(
|
|
532
|
+
setPreviewHTML: (o) => {
|
|
533
|
+
window.TopolPlugin.setPreviewHTML(o);
|
|
702
534
|
},
|
|
703
|
-
createNotification: (
|
|
704
|
-
window.TopolPlugin.createNotification(
|
|
535
|
+
createNotification: (o) => {
|
|
536
|
+
window.TopolPlugin.createNotification(o);
|
|
705
537
|
},
|
|
706
|
-
setActiveMembers: (
|
|
707
|
-
window.TopolPlugin.setActiveMembers(
|
|
538
|
+
setActiveMembers: (o) => {
|
|
539
|
+
window.TopolPlugin.setActiveMembers(o);
|
|
708
540
|
},
|
|
709
541
|
changeEmailToMobile: () => {
|
|
710
542
|
window.TopolPlugin.changeEmailToMobile();
|
|
@@ -715,11 +547,11 @@ const Ce = {
|
|
|
715
547
|
toggleBlocksAndStructuresVisibility: () => {
|
|
716
548
|
window.TopolPlugin.toggleBlocksAndStructuresVisibility();
|
|
717
549
|
},
|
|
718
|
-
updateCustomBlockContent: (
|
|
719
|
-
window.TopolPlugin.updateCustomBlockContent(
|
|
550
|
+
updateCustomBlockContent: (o) => {
|
|
551
|
+
window.TopolPlugin.updateCustomBlockContent(o);
|
|
720
552
|
},
|
|
721
|
-
refreshComments: (
|
|
722
|
-
window.TopolPlugin.refreshComments(
|
|
553
|
+
refreshComments: (o) => {
|
|
554
|
+
window.TopolPlugin.refreshComments(o);
|
|
723
555
|
},
|
|
724
556
|
refreshSyncedRows: () => {
|
|
725
557
|
window.TopolPlugin.refreshSyncedRows();
|
|
@@ -727,84 +559,84 @@ const Ce = {
|
|
|
727
559
|
openPremadeTemplatesSelection: () => {
|
|
728
560
|
window.TopolPlugin.openPremadeTemplatesSelection();
|
|
729
561
|
},
|
|
730
|
-
updateApiAuthorizationHeader: (
|
|
731
|
-
window.TopolPlugin.updateApiAuthorizationHeader(
|
|
562
|
+
updateApiAuthorizationHeader: (o) => {
|
|
563
|
+
window.TopolPlugin.updateApiAuthorizationHeader(o);
|
|
732
564
|
},
|
|
733
|
-
setTemplateName: (
|
|
734
|
-
window.TopolPlugin.setTemplateName(
|
|
565
|
+
setTemplateName: (o) => {
|
|
566
|
+
window.TopolPlugin.setTemplateName(o);
|
|
735
567
|
}
|
|
736
|
-
},
|
|
737
|
-
let
|
|
738
|
-
function
|
|
739
|
-
const
|
|
740
|
-
const
|
|
741
|
-
onSave(
|
|
742
|
-
|
|
568
|
+
}, Fe = "editor";
|
|
569
|
+
let q = !1, F = !1;
|
|
570
|
+
function Le(o) {
|
|
571
|
+
const l = () => {
|
|
572
|
+
const c = {
|
|
573
|
+
onSave(r, i) {
|
|
574
|
+
o.onSave !== void 0 && o.onSave(r, i);
|
|
743
575
|
},
|
|
744
|
-
onSaveAndClose(
|
|
745
|
-
|
|
576
|
+
onSaveAndClose(r, i) {
|
|
577
|
+
o.onSaveAndClose !== void 0 && o.onSaveAndClose(r, i);
|
|
746
578
|
},
|
|
747
|
-
onTestSend(
|
|
748
|
-
|
|
579
|
+
onTestSend(r, i, f) {
|
|
580
|
+
o.onTestSend !== void 0 && o.onTestSend(r, i, f);
|
|
749
581
|
},
|
|
750
582
|
onOpenFileManager() {
|
|
751
|
-
|
|
583
|
+
o.onOpenFileManager !== void 0 && o.onOpenFileManager();
|
|
752
584
|
},
|
|
753
585
|
onLoaded() {
|
|
754
|
-
|
|
586
|
+
o.onLoaded !== void 0 && o.onLoaded();
|
|
755
587
|
},
|
|
756
|
-
onBlockSave(
|
|
757
|
-
|
|
588
|
+
onBlockSave(r) {
|
|
589
|
+
o.onBlockSave !== void 0 && o.onBlockSave(r);
|
|
758
590
|
},
|
|
759
|
-
onBlockRemove(
|
|
760
|
-
|
|
591
|
+
onBlockRemove(r) {
|
|
592
|
+
o.onBlockRemove !== void 0 && o.onBlockRemove(r);
|
|
761
593
|
},
|
|
762
|
-
onBlockEdit(
|
|
763
|
-
|
|
594
|
+
onBlockEdit(r) {
|
|
595
|
+
o.onBlockEdit !== void 0 && o.onBlockEdit(r);
|
|
764
596
|
},
|
|
765
597
|
onInit() {
|
|
766
|
-
|
|
598
|
+
o.onInit !== void 0 && o.onInit(), q = !1, F = !0;
|
|
767
599
|
},
|
|
768
|
-
onUndoChange(
|
|
769
|
-
|
|
600
|
+
onUndoChange(r) {
|
|
601
|
+
o.onUndoChange !== void 0 && o.onUndoChange(r);
|
|
770
602
|
},
|
|
771
|
-
onRedoChange(
|
|
772
|
-
|
|
603
|
+
onRedoChange(r) {
|
|
604
|
+
o.onRedoChange !== void 0 && o.onRedoChange(r);
|
|
773
605
|
},
|
|
774
|
-
onPreview(
|
|
775
|
-
|
|
606
|
+
onPreview(r) {
|
|
607
|
+
o.onPreview !== void 0 && o.onPreview(r);
|
|
776
608
|
},
|
|
777
|
-
onAlert(
|
|
778
|
-
|
|
609
|
+
onAlert(r) {
|
|
610
|
+
o.onAlert !== void 0 && o.onAlert(r);
|
|
779
611
|
},
|
|
780
612
|
onClose() {
|
|
781
|
-
|
|
613
|
+
o.onClose !== void 0 && o.onClose();
|
|
782
614
|
},
|
|
783
|
-
onEdittedWithoutSaveChanged(
|
|
784
|
-
|
|
615
|
+
onEdittedWithoutSaveChanged(r) {
|
|
616
|
+
o.onEdittedWithoutSaveChanged !== void 0 && o.onEdittedWithoutSaveChanged(r);
|
|
785
617
|
},
|
|
786
|
-
onOpenCustomBlockDialog(
|
|
787
|
-
|
|
618
|
+
onOpenCustomBlockDialog(r) {
|
|
619
|
+
o.onOpenCustomBlockDialog !== void 0 && o.onOpenCustomBlockDialog(r);
|
|
788
620
|
},
|
|
789
|
-
onTemplateRename(
|
|
790
|
-
|
|
621
|
+
onTemplateRename(r) {
|
|
622
|
+
o.onTemplateRename !== void 0 && o.onTemplateRename(r);
|
|
791
623
|
},
|
|
792
|
-
updateTestingEmailAddresses(
|
|
793
|
-
|
|
624
|
+
updateTestingEmailAddresses(r) {
|
|
625
|
+
o.updateTestingEmailAddresses !== void 0 && o.updateTestingEmailAddresses(r);
|
|
794
626
|
},
|
|
795
|
-
onError(
|
|
796
|
-
|
|
627
|
+
onError(r, i) {
|
|
628
|
+
o.onError !== void 0 && o.onError(r, i);
|
|
797
629
|
}
|
|
798
630
|
};
|
|
799
|
-
return { id: "#" +
|
|
631
|
+
return { id: "#" + Fe, ...o.options, callbacks: { ...c } };
|
|
800
632
|
};
|
|
801
|
-
return
|
|
802
|
-
|
|
803
|
-
const
|
|
804
|
-
await
|
|
633
|
+
return je(() => (q || (async () => {
|
|
634
|
+
q = !0;
|
|
635
|
+
const r = l();
|
|
636
|
+
await we.init(r, { stage: o.stage || "production" });
|
|
805
637
|
})(), () => {
|
|
806
|
-
|
|
807
|
-
}), []), /* @__PURE__ */
|
|
638
|
+
F && (we.destroy(), F = !1);
|
|
639
|
+
}), []), /* @__PURE__ */ Be.jsx(
|
|
808
640
|
"div",
|
|
809
641
|
{
|
|
810
642
|
id: "editor",
|
|
@@ -813,6 +645,6 @@ function Pr(n) {
|
|
|
813
645
|
);
|
|
814
646
|
}
|
|
815
647
|
export {
|
|
816
|
-
|
|
817
|
-
|
|
648
|
+
we as TopolPlugin,
|
|
649
|
+
Le as default
|
|
818
650
|
};
|