@hep-code-runner/react 1.5.2 → 3.0.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/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import qe, { useRef as Oe, useMemo as Ee, useEffect as ke, useState as Z, useCallback as le, forwardRef as xt, useImperativeHandle as kt } from "react";
2
- var Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
- function wt(u) {
4
- return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
1
+ import tr, { useRef as Ue, useMemo as Te, useEffect as Ie, useState as K, useCallback as oe, forwardRef as xr, useImperativeHandle as kr } from "react";
2
+ var Je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
+ function wr(p) {
4
+ return p && p.__esModule && Object.prototype.hasOwnProperty.call(p, "default") ? p.default : p;
5
5
  }
6
- var Ie = { exports: {} }, be = {};
6
+ var He = { exports: {} }, _e = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.min.js
@@ -13,21 +13,21 @@ var Ie = { exports: {} }, be = {};
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
- var Xe;
17
- function St() {
18
- if (Xe) return be;
19
- Xe = 1;
20
- var u = qe, d = Symbol.for("react.element"), n = Symbol.for("react.fragment"), p = Object.prototype.hasOwnProperty, m = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, R = { key: !0, ref: !0, __self: !0, __source: !0 };
21
- function k(l, b, y) {
22
- var _, O = {}, D = null, I = null;
23
- y !== void 0 && (D = "" + y), b.key !== void 0 && (D = "" + b.key), b.ref !== void 0 && (I = b.ref);
24
- for (_ in b) p.call(b, _) && !R.hasOwnProperty(_) && (O[_] = b[_]);
25
- if (l && l.defaultProps) for (_ in b = l.defaultProps, b) O[_] === void 0 && (O[_] = b[_]);
26
- return { $$typeof: d, type: l, key: D, ref: I, props: O, _owner: m.current };
16
+ var Qe;
17
+ function Sr() {
18
+ if (Qe) return _e;
19
+ Qe = 1;
20
+ var p = tr, h = Symbol.for("react.element"), n = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, m = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function T(l, b, S) {
22
+ var k, _ = {}, L = null, P = null;
23
+ S !== void 0 && (L = "" + S), b.key !== void 0 && (L = "" + b.key), b.ref !== void 0 && (P = b.ref);
24
+ for (k in b) u.call(b, k) && !w.hasOwnProperty(k) && (_[k] = b[k]);
25
+ if (l && l.defaultProps) for (k in b = l.defaultProps, b) _[k] === void 0 && (_[k] = b[k]);
26
+ return { $$typeof: h, type: l, key: L, ref: P, props: _, _owner: m.current };
27
27
  }
28
- return be.Fragment = n, be.jsx = k, be.jsxs = k, be;
28
+ return _e.Fragment = n, _e.jsx = T, _e.jsxs = T, _e;
29
29
  }
30
- var ve = {};
30
+ var Fe = {};
31
31
  /**
32
32
  * @license React
33
33
  * react-jsx-runtime.development.js
@@ -37,72 +37,72 @@ var ve = {};
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
- var Ke;
41
- function At() {
42
- return Ke || (Ke = 1, process.env.NODE_ENV !== "production" && function() {
43
- var u = qe, d = Symbol.for("react.element"), n = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), l = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), B = Symbol.iterator, F = "@@iterator";
44
- function w(e) {
40
+ var er;
41
+ function Ar() {
42
+ return er || (er = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var p = tr, h = Symbol.for("react.element"), n = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), l = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), D = Symbol.iterator, O = "@@iterator";
44
+ function y(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
47
- var a = B && e[B] || e[F];
47
+ var a = D && e[D] || e[O];
48
48
  return typeof a == "function" ? a : null;
49
49
  }
50
- var T = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function t(e) {
50
+ var I = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ function r(e) {
52
52
  {
53
- for (var a = arguments.length, c = new Array(a > 1 ? a - 1 : 0), v = 1; v < a; v++)
54
- c[v - 1] = arguments[v];
55
- r("error", e, c);
53
+ for (var a = arguments.length, d = new Array(a > 1 ? a - 1 : 0), v = 1; v < a; v++)
54
+ d[v - 1] = arguments[v];
55
+ t("error", e, d);
56
56
  }
57
57
  }
58
- function r(e, a, c) {
58
+ function t(e, a, d) {
59
59
  {
60
- var v = T.ReactDebugCurrentFrame, N = v.getStackAddendum();
61
- N !== "" && (a += "%s", c = c.concat([N]));
62
- var L = c.map(function(A) {
60
+ var v = I.ReactDebugCurrentFrame, F = v.getStackAddendum();
61
+ F !== "" && (a += "%s", d = d.concat([F]));
62
+ var C = d.map(function(A) {
63
63
  return String(A);
64
64
  });
65
- L.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, L);
65
+ C.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, C);
66
66
  }
67
67
  }
68
- var i = !1, o = !1, s = !1, f = !1, E = !1, h;
69
- h = Symbol.for("react.module.reference");
70
- function C(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === p || e === R || E || e === m || e === y || e === _ || f || e === I || i || o || s || typeof e == "object" && e !== null && (e.$$typeof === D || e.$$typeof === O || e.$$typeof === k || e.$$typeof === l || e.$$typeof === b || // This needs to include all possible module reference object
68
+ var i = !1, o = !1, s = !1, g = !1, E = !1, f;
69
+ f = Symbol.for("react.module.reference");
70
+ function N(e) {
71
+ return !!(typeof e == "string" || typeof e == "function" || e === u || e === w || E || e === m || e === S || e === k || g || e === P || i || o || s || typeof e == "object" && e !== null && (e.$$typeof === L || e.$$typeof === _ || e.$$typeof === T || e.$$typeof === l || e.$$typeof === b || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
75
- e.$$typeof === h || e.getModuleId !== void 0));
75
+ e.$$typeof === f || e.getModuleId !== void 0));
76
76
  }
77
- function P(e, a, c) {
77
+ function j(e, a, d) {
78
78
  var v = e.displayName;
79
79
  if (v)
80
80
  return v;
81
- var N = a.displayName || a.name || "";
82
- return N !== "" ? c + "(" + N + ")" : c;
81
+ var F = a.displayName || a.name || "";
82
+ return F !== "" ? d + "(" + F + ")" : d;
83
83
  }
84
84
  function z(e) {
85
85
  return e.displayName || "Context";
86
86
  }
87
- function V(e) {
87
+ function W(e) {
88
88
  if (e == null)
89
89
  return null;
90
- if (typeof e.tag == "number" && t("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
90
+ if (typeof e.tag == "number" && r("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
91
  return e.displayName || e.name || null;
92
92
  if (typeof e == "string")
93
93
  return e;
94
94
  switch (e) {
95
- case p:
95
+ case u:
96
96
  return "Fragment";
97
97
  case n:
98
98
  return "Portal";
99
- case R:
99
+ case w:
100
100
  return "Profiler";
101
101
  case m:
102
102
  return "StrictMode";
103
- case y:
103
+ case S:
104
104
  return "Suspense";
105
- case _:
105
+ case k:
106
106
  return "SuspenseList";
107
107
  }
108
108
  if (typeof e == "object")
@@ -110,18 +110,18 @@ function At() {
110
110
  case l:
111
111
  var a = e;
112
112
  return z(a) + ".Consumer";
113
- case k:
114
- var c = e;
115
- return z(c._context) + ".Provider";
113
+ case T:
114
+ var d = e;
115
+ return z(d._context) + ".Provider";
116
116
  case b:
117
- return P(e, e.render, "ForwardRef");
118
- case O:
117
+ return j(e, e.render, "ForwardRef");
118
+ case _:
119
119
  var v = e.displayName || null;
120
- return v !== null ? v : V(e.type) || "Memo";
121
- case D: {
122
- var N = e, L = N._payload, A = N._init;
120
+ return v !== null ? v : W(e.type) || "Memo";
121
+ case L: {
122
+ var F = e, C = F._payload, A = F._init;
123
123
  try {
124
- return V(A(L));
124
+ return W(A(C));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,18 +129,18 @@ function At() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var W = Object.assign, ne = 0, ue, ce, j, H, ee, X, G;
133
- function pe() {
132
+ var J = Object.assign, Q = 0, ge, ce, $, G, Z, te, B;
133
+ function me() {
134
134
  }
135
- pe.__reactDisabledLog = !0;
136
- function q() {
135
+ me.__reactDisabledLog = !0;
136
+ function Y() {
137
137
  {
138
- if (ne === 0) {
139
- ue = console.log, ce = console.info, j = console.warn, H = console.error, ee = console.group, X = console.groupCollapsed, G = console.groupEnd;
138
+ if (Q === 0) {
139
+ ge = console.log, ce = console.info, $ = console.warn, G = console.error, Z = console.group, te = console.groupCollapsed, B = console.groupEnd;
140
140
  var e = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
143
- value: pe,
143
+ value: me,
144
144
  writable: !0
145
145
  };
146
146
  Object.defineProperties(console, {
@@ -153,77 +153,77 @@ function At() {
153
153
  groupEnd: e
154
154
  });
155
155
  }
156
- ne++;
156
+ Q++;
157
157
  }
158
158
  }
159
159
  function se() {
160
160
  {
161
- if (ne--, ne === 0) {
161
+ if (Q--, Q === 0) {
162
162
  var e = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
165
165
  writable: !0
166
166
  };
167
167
  Object.defineProperties(console, {
168
- log: W({}, e, {
169
- value: ue
168
+ log: J({}, e, {
169
+ value: ge
170
170
  }),
171
- info: W({}, e, {
171
+ info: J({}, e, {
172
172
  value: ce
173
173
  }),
174
- warn: W({}, e, {
175
- value: j
174
+ warn: J({}, e, {
175
+ value: $
176
176
  }),
177
- error: W({}, e, {
178
- value: H
177
+ error: J({}, e, {
178
+ value: G
179
179
  }),
180
- group: W({}, e, {
181
- value: ee
180
+ group: J({}, e, {
181
+ value: Z
182
182
  }),
183
- groupCollapsed: W({}, e, {
184
- value: X
183
+ groupCollapsed: J({}, e, {
184
+ value: te
185
185
  }),
186
- groupEnd: W({}, e, {
187
- value: G
186
+ groupEnd: J({}, e, {
187
+ value: B
188
188
  })
189
189
  });
190
190
  }
191
- ne < 0 && t("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ Q < 0 && r("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var ae = T.ReactCurrentDispatcher, J;
195
- function ie(e, a, c) {
194
+ var ne = I.ReactCurrentDispatcher, V;
195
+ function ae(e, a, d) {
196
196
  {
197
- if (J === void 0)
197
+ if (V === void 0)
198
198
  try {
199
199
  throw Error();
200
- } catch (N) {
201
- var v = N.stack.trim().match(/\n( *(at )?)/);
202
- J = v && v[1] || "";
200
+ } catch (F) {
201
+ var v = F.stack.trim().match(/\n( *(at )?)/);
202
+ V = v && v[1] || "";
203
203
  }
204
204
  return `
205
- ` + J + e;
205
+ ` + V + e;
206
206
  }
207
207
  }
208
- var oe = !1, te;
208
+ var ue = !1, ie;
209
209
  {
210
- var S = typeof WeakMap == "function" ? WeakMap : Map;
211
- te = new S();
210
+ var de = typeof WeakMap == "function" ? WeakMap : Map;
211
+ ie = new de();
212
212
  }
213
- function M(e, a) {
214
- if (!e || oe)
213
+ function ke(e, a) {
214
+ if (!e || ue)
215
215
  return "";
216
216
  {
217
- var c = te.get(e);
218
- if (c !== void 0)
219
- return c;
217
+ var d = ie.get(e);
218
+ if (d !== void 0)
219
+ return d;
220
220
  }
221
221
  var v;
222
- oe = !0;
223
- var N = Error.prepareStackTrace;
222
+ ue = !0;
223
+ var F = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
- var L;
226
- L = ae.current, ae.current = null, q();
225
+ var C;
226
+ C = ne.current, ne.current = null, Y();
227
227
  try {
228
228
  if (a) {
229
229
  var A = function() {
@@ -236,196 +236,196 @@ function At() {
236
236
  }), typeof Reflect == "object" && Reflect.construct) {
237
237
  try {
238
238
  Reflect.construct(A, []);
239
- } catch (K) {
240
- v = K;
239
+ } catch (q) {
240
+ v = q;
241
241
  }
242
242
  Reflect.construct(e, [], A);
243
243
  } else {
244
244
  try {
245
245
  A.call();
246
- } catch (K) {
247
- v = K;
246
+ } catch (q) {
247
+ v = q;
248
248
  }
249
249
  e.call(A.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
253
253
  throw Error();
254
- } catch (K) {
255
- v = K;
254
+ } catch (q) {
255
+ v = q;
256
256
  }
257
257
  e();
258
258
  }
259
- } catch (K) {
260
- if (K && v && typeof K.stack == "string") {
261
- for (var x = K.stack.split(`
262
- `), Y = v.stack.split(`
263
- `), $ = x.length - 1, U = Y.length - 1; $ >= 1 && U >= 0 && x[$] !== Y[U]; )
264
- U--;
265
- for (; $ >= 1 && U >= 0; $--, U--)
266
- if (x[$] !== Y[U]) {
267
- if ($ !== 1 || U !== 1)
259
+ } catch (q) {
260
+ if (q && v && typeof q.stack == "string") {
261
+ for (var x = q.stack.split(`
262
+ `), X = v.stack.split(`
263
+ `), U = x.length - 1, H = X.length - 1; U >= 1 && H >= 0 && x[U] !== X[H]; )
264
+ H--;
265
+ for (; U >= 1 && H >= 0; U--, H--)
266
+ if (x[U] !== X[H]) {
267
+ if (U !== 1 || H !== 1)
268
268
  do
269
- if ($--, U--, U < 0 || x[$] !== Y[U]) {
270
- var Q = `
271
- ` + x[$].replace(" at new ", " at ");
272
- return e.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", e.displayName)), typeof e == "function" && te.set(e, Q), Q;
269
+ if (U--, H--, H < 0 || x[U] !== X[H]) {
270
+ var ee = `
271
+ ` + x[U].replace(" at new ", " at ");
272
+ return e.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", e.displayName)), typeof e == "function" && ie.set(e, ee), ee;
273
273
  }
274
- while ($ >= 1 && U >= 0);
274
+ while (U >= 1 && H >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- oe = !1, ae.current = L, se(), Error.prepareStackTrace = N;
279
+ ue = !1, ne.current = C, se(), Error.prepareStackTrace = F;
280
280
  }
281
- var ge = e ? e.displayName || e.name : "", de = ge ? ie(ge) : "";
282
- return typeof e == "function" && te.set(e, de), de;
281
+ var Ae = e ? e.displayName || e.name : "", xe = Ae ? ae(Ae) : "";
282
+ return typeof e == "function" && ie.set(e, xe), xe;
283
283
  }
284
- function re(e, a, c) {
285
- return M(e, !1);
284
+ function le(e, a, d) {
285
+ return ke(e, !1);
286
286
  }
287
- function fe(e) {
287
+ function Oe(e) {
288
288
  var a = e.prototype;
289
289
  return !!(a && a.isReactComponent);
290
290
  }
291
- function ye(e, a, c) {
291
+ function pe(e, a, d) {
292
292
  if (e == null)
293
293
  return "";
294
294
  if (typeof e == "function")
295
- return M(e, fe(e));
295
+ return ke(e, Oe(e));
296
296
  if (typeof e == "string")
297
- return ie(e);
297
+ return ae(e);
298
298
  switch (e) {
299
- case y:
300
- return ie("Suspense");
301
- case _:
302
- return ie("SuspenseList");
299
+ case S:
300
+ return ae("Suspense");
301
+ case k:
302
+ return ae("SuspenseList");
303
303
  }
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
306
  case b:
307
- return re(e.render);
308
- case O:
309
- return ye(e.type, a, c);
310
- case D: {
311
- var v = e, N = v._payload, L = v._init;
307
+ return le(e.render);
308
+ case _:
309
+ return pe(e.type, a, d);
310
+ case L: {
311
+ var v = e, F = v._payload, C = v._init;
312
312
  try {
313
- return ye(L(N), a, c);
313
+ return pe(C(F), a, d);
314
314
  } catch {
315
315
  }
316
316
  }
317
317
  }
318
318
  return "";
319
319
  }
320
- var me = Object.prototype.hasOwnProperty, Ce = {}, Le = T.ReactDebugCurrentFrame;
321
- function xe(e) {
320
+ var he = Object.prototype.hasOwnProperty, R = {}, M = I.ReactDebugCurrentFrame;
321
+ function re(e) {
322
322
  if (e) {
323
- var a = e._owner, c = ye(e.type, e._source, a ? a.type : null);
324
- Le.setExtraStackFrame(c);
323
+ var a = e._owner, d = pe(e.type, e._source, a ? a.type : null);
324
+ M.setExtraStackFrame(d);
325
325
  } else
326
- Le.setExtraStackFrame(null);
326
+ M.setExtraStackFrame(null);
327
327
  }
328
- function Qe(e, a, c, v, N) {
328
+ function be(e, a, d, v, F) {
329
329
  {
330
- var L = Function.call.bind(me);
330
+ var C = Function.call.bind(he);
331
331
  for (var A in e)
332
- if (L(e, A)) {
332
+ if (C(e, A)) {
333
333
  var x = void 0;
334
334
  try {
335
335
  if (typeof e[A] != "function") {
336
- var Y = Error((v || "React class") + ": " + c + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
- throw Y.name = "Invariant Violation", Y;
336
+ var X = Error((v || "React class") + ": " + d + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw X.name = "Invariant Violation", X;
338
338
  }
339
- x = e[A](a, A, v, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch ($) {
341
- x = $;
339
+ x = e[A](a, A, v, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (U) {
341
+ x = U;
342
342
  }
343
- x && !(x instanceof Error) && (xe(N), t("%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).", v || "React class", c, A, typeof x), xe(null)), x instanceof Error && !(x.message in Ce) && (Ce[x.message] = !0, xe(N), t("Failed %s type: %s", c, x.message), xe(null));
343
+ x && !(x instanceof Error) && (re(F), r("%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).", v || "React class", d, A, typeof x), re(null)), x instanceof Error && !(x.message in R) && (R[x.message] = !0, re(F), r("Failed %s type: %s", d, x.message), re(null));
344
344
  }
345
345
  }
346
346
  }
347
- var et = Array.isArray;
348
- function we(e) {
349
- return et(e);
347
+ var Ne = Array.isArray;
348
+ function ve(e) {
349
+ return Ne(e);
350
350
  }
351
- function tt(e) {
351
+ function Ee(e) {
352
352
  {
353
- var a = typeof Symbol == "function" && Symbol.toStringTag, c = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
- return c;
353
+ var a = typeof Symbol == "function" && Symbol.toStringTag, d = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
+ return d;
355
355
  }
356
356
  }
357
- function rt(e) {
357
+ function ye(e) {
358
358
  try {
359
- return Pe(e), !1;
359
+ return fe(e), !1;
360
360
  } catch {
361
361
  return !0;
362
362
  }
363
363
  }
364
- function Pe(e) {
364
+ function fe(e) {
365
365
  return "" + e;
366
366
  }
367
- function De(e) {
368
- if (rt(e))
369
- return t("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tt(e)), Pe(e);
367
+ function we(e) {
368
+ if (ye(e))
369
+ return r("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ee(e)), fe(e);
370
370
  }
371
- var je = T.ReactCurrentOwner, nt = {
371
+ var Re = I.ReactCurrentOwner, Ce = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
- }, $e, Me;
377
- function at(e) {
378
- if (me.call(e, "ref")) {
376
+ }, ze, We;
377
+ function ar(e) {
378
+ if (he.call(e, "ref")) {
379
379
  var a = Object.getOwnPropertyDescriptor(e, "ref").get;
380
380
  if (a && a.isReactWarning)
381
381
  return !1;
382
382
  }
383
383
  return e.ref !== void 0;
384
384
  }
385
- function it(e) {
386
- if (me.call(e, "key")) {
385
+ function ir(e) {
386
+ if (he.call(e, "key")) {
387
387
  var a = Object.getOwnPropertyDescriptor(e, "key").get;
388
388
  if (a && a.isReactWarning)
389
389
  return !1;
390
390
  }
391
391
  return e.key !== void 0;
392
392
  }
393
- function ot(e, a) {
394
- typeof e.ref == "string" && je.current;
393
+ function or(e, a) {
394
+ typeof e.ref == "string" && Re.current;
395
395
  }
396
- function st(e, a) {
396
+ function sr(e, a) {
397
397
  {
398
- var c = function() {
399
- $e || ($e = !0, t("%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)", a));
398
+ var d = function() {
399
+ ze || (ze = !0, r("%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)", a));
400
400
  };
401
- c.isReactWarning = !0, Object.defineProperty(e, "key", {
402
- get: c,
401
+ d.isReactWarning = !0, Object.defineProperty(e, "key", {
402
+ get: d,
403
403
  configurable: !0
404
404
  });
405
405
  }
406
406
  }
407
- function lt(e, a) {
407
+ function lr(e, a) {
408
408
  {
409
- var c = function() {
410
- Me || (Me = !0, t("%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)", a));
409
+ var d = function() {
410
+ We || (We = !0, r("%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)", a));
411
411
  };
412
- c.isReactWarning = !0, Object.defineProperty(e, "ref", {
413
- get: c,
412
+ d.isReactWarning = !0, Object.defineProperty(e, "ref", {
413
+ get: d,
414
414
  configurable: !0
415
415
  });
416
416
  }
417
417
  }
418
- var ct = function(e, a, c, v, N, L, A) {
418
+ var cr = function(e, a, d, v, F, C, A) {
419
419
  var x = {
420
420
  // This tag allows us to uniquely identify this as a React Element
421
- $$typeof: d,
421
+ $$typeof: h,
422
422
  // Built-in properties that belong on the element
423
423
  type: e,
424
424
  key: a,
425
- ref: c,
425
+ ref: d,
426
426
  props: A,
427
427
  // Record the component responsible for creating this element.
428
- _owner: L
428
+ _owner: C
429
429
  };
430
430
  return x._store = {}, Object.defineProperty(x._store, "validated", {
431
431
  configurable: !1,
@@ -441,44 +441,44 @@ function At() {
441
441
  configurable: !1,
442
442
  enumerable: !1,
443
443
  writable: !1,
444
- value: N
444
+ value: F
445
445
  }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
446
446
  };
447
- function ut(e, a, c, v, N) {
447
+ function ur(e, a, d, v, F) {
448
448
  {
449
- var L, A = {}, x = null, Y = null;
450
- c !== void 0 && (De(c), x = "" + c), it(a) && (De(a.key), x = "" + a.key), at(a) && (Y = a.ref, ot(a, N));
451
- for (L in a)
452
- me.call(a, L) && !nt.hasOwnProperty(L) && (A[L] = a[L]);
449
+ var C, A = {}, x = null, X = null;
450
+ d !== void 0 && (we(d), x = "" + d), ir(a) && (we(a.key), x = "" + a.key), ar(a) && (X = a.ref, or(a, F));
451
+ for (C in a)
452
+ he.call(a, C) && !Ce.hasOwnProperty(C) && (A[C] = a[C]);
453
453
  if (e && e.defaultProps) {
454
- var $ = e.defaultProps;
455
- for (L in $)
456
- A[L] === void 0 && (A[L] = $[L]);
454
+ var U = e.defaultProps;
455
+ for (C in U)
456
+ A[C] === void 0 && (A[C] = U[C]);
457
457
  }
458
- if (x || Y) {
459
- var U = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
460
- x && st(A, U), Y && lt(A, U);
458
+ if (x || X) {
459
+ var H = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
460
+ x && sr(A, H), X && lr(A, H);
461
461
  }
462
- return ct(e, x, Y, N, v, je.current, A);
462
+ return cr(e, x, X, F, v, Re.current, A);
463
463
  }
464
464
  }
465
- var Se = T.ReactCurrentOwner, Ue = T.ReactDebugCurrentFrame;
466
- function he(e) {
465
+ var Le = I.ReactCurrentOwner, Ge = I.ReactDebugCurrentFrame;
466
+ function Se(e) {
467
467
  if (e) {
468
- var a = e._owner, c = ye(e.type, e._source, a ? a.type : null);
469
- Ue.setExtraStackFrame(c);
468
+ var a = e._owner, d = pe(e.type, e._source, a ? a.type : null);
469
+ Ge.setExtraStackFrame(d);
470
470
  } else
471
- Ue.setExtraStackFrame(null);
471
+ Ge.setExtraStackFrame(null);
472
472
  }
473
- var Ae;
474
- Ae = !1;
475
- function Te(e) {
476
- return typeof e == "object" && e !== null && e.$$typeof === d;
473
+ var Pe;
474
+ Pe = !1;
475
+ function De(e) {
476
+ return typeof e == "object" && e !== null && e.$$typeof === h;
477
477
  }
478
- function He() {
478
+ function Ye() {
479
479
  {
480
- if (Se.current) {
481
- var e = V(Se.current.type);
480
+ if (Le.current) {
481
+ var e = W(Le.current.type);
482
482
  if (e)
483
483
  return `
484
484
 
@@ -487,150 +487,150 @@ Check the render method of \`` + e + "`.";
487
487
  return "";
488
488
  }
489
489
  }
490
- function dt(e) {
490
+ function dr(e) {
491
491
  return "";
492
492
  }
493
- var Be = {};
494
- function pt(e) {
493
+ var Ve = {};
494
+ function pr(e) {
495
495
  {
496
- var a = He();
496
+ var a = Ye();
497
497
  if (!a) {
498
- var c = typeof e == "string" ? e : e.displayName || e.name;
499
- c && (a = `
498
+ var d = typeof e == "string" ? e : e.displayName || e.name;
499
+ d && (a = `
500
500
 
501
- Check the top-level render call using <` + c + ">.");
501
+ Check the top-level render call using <` + d + ">.");
502
502
  }
503
503
  return a;
504
504
  }
505
505
  }
506
- function ze(e, a) {
506
+ function Xe(e, a) {
507
507
  {
508
508
  if (!e._store || e._store.validated || e.key != null)
509
509
  return;
510
510
  e._store.validated = !0;
511
- var c = pt(a);
512
- if (Be[c])
511
+ var d = pr(a);
512
+ if (Ve[d])
513
513
  return;
514
- Be[c] = !0;
514
+ Ve[d] = !0;
515
515
  var v = "";
516
- e && e._owner && e._owner !== Se.current && (v = " It was passed a child from " + V(e._owner.type) + "."), he(e), t('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', c, v), he(null);
516
+ e && e._owner && e._owner !== Le.current && (v = " It was passed a child from " + W(e._owner.type) + "."), Se(e), r('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, v), Se(null);
517
517
  }
518
518
  }
519
- function We(e, a) {
519
+ function Ke(e, a) {
520
520
  {
521
521
  if (typeof e != "object")
522
522
  return;
523
- if (we(e))
524
- for (var c = 0; c < e.length; c++) {
525
- var v = e[c];
526
- Te(v) && ze(v, a);
523
+ if (ve(e))
524
+ for (var d = 0; d < e.length; d++) {
525
+ var v = e[d];
526
+ De(v) && Xe(v, a);
527
527
  }
528
- else if (Te(e))
528
+ else if (De(e))
529
529
  e._store && (e._store.validated = !0);
530
530
  else if (e) {
531
- var N = w(e);
532
- if (typeof N == "function" && N !== e.entries)
533
- for (var L = N.call(e), A; !(A = L.next()).done; )
534
- Te(A.value) && ze(A.value, a);
531
+ var F = y(e);
532
+ if (typeof F == "function" && F !== e.entries)
533
+ for (var C = F.call(e), A; !(A = C.next()).done; )
534
+ De(A.value) && Xe(A.value, a);
535
535
  }
536
536
  }
537
537
  }
538
- function ft(e) {
538
+ function hr(e) {
539
539
  {
540
540
  var a = e.type;
541
541
  if (a == null || typeof a == "string")
542
542
  return;
543
- var c;
543
+ var d;
544
544
  if (typeof a == "function")
545
- c = a.propTypes;
545
+ d = a.propTypes;
546
546
  else if (typeof a == "object" && (a.$$typeof === b || // Note: Memo only checks outer props here.
547
547
  // Inner props are checked in the reconciler.
548
- a.$$typeof === O))
549
- c = a.propTypes;
548
+ a.$$typeof === _))
549
+ d = a.propTypes;
550
550
  else
551
551
  return;
552
- if (c) {
553
- var v = V(a);
554
- Qe(c, e.props, "prop", v, e);
555
- } else if (a.PropTypes !== void 0 && !Ae) {
556
- Ae = !0;
557
- var N = V(a);
558
- t("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
559
- }
560
- typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && t("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
552
+ if (d) {
553
+ var v = W(a);
554
+ be(d, e.props, "prop", v, e);
555
+ } else if (a.PropTypes !== void 0 && !Pe) {
556
+ Pe = !0;
557
+ var F = W(a);
558
+ r("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", F || "Unknown");
559
+ }
560
+ typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && r("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
561
  }
562
562
  }
563
- function ht(e) {
563
+ function fr(e) {
564
564
  {
565
- for (var a = Object.keys(e.props), c = 0; c < a.length; c++) {
566
- var v = a[c];
565
+ for (var a = Object.keys(e.props), d = 0; d < a.length; d++) {
566
+ var v = a[d];
567
567
  if (v !== "children" && v !== "key") {
568
- he(e), t("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), he(null);
568
+ Se(e), r("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), Se(null);
569
569
  break;
570
570
  }
571
571
  }
572
- e.ref !== null && (he(e), t("Invalid attribute `ref` supplied to `React.Fragment`."), he(null));
572
+ e.ref !== null && (Se(e), r("Invalid attribute `ref` supplied to `React.Fragment`."), Se(null));
573
573
  }
574
574
  }
575
- var Ge = {};
576
- function Ye(e, a, c, v, N, L) {
575
+ var Ze = {};
576
+ function qe(e, a, d, v, F, C) {
577
577
  {
578
- var A = C(e);
578
+ var A = N(e);
579
579
  if (!A) {
580
580
  var x = "";
581
581
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
582
- var Y = dt();
583
- Y ? x += Y : x += He();
584
- var $;
585
- e === null ? $ = "null" : we(e) ? $ = "array" : e !== void 0 && e.$$typeof === d ? ($ = "<" + (V(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof e, t("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, x);
586
- }
587
- var U = ut(e, a, c, N, L);
588
- if (U == null)
589
- return U;
582
+ var X = dr();
583
+ X ? x += X : x += Ye();
584
+ var U;
585
+ e === null ? U = "null" : ve(e) ? U = "array" : e !== void 0 && e.$$typeof === h ? (U = "<" + (W(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : U = typeof e, r("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", U, x);
586
+ }
587
+ var H = ur(e, a, d, F, C);
588
+ if (H == null)
589
+ return H;
590
590
  if (A) {
591
- var Q = a.children;
592
- if (Q !== void 0)
591
+ var ee = a.children;
592
+ if (ee !== void 0)
593
593
  if (v)
594
- if (we(Q)) {
595
- for (var ge = 0; ge < Q.length; ge++)
596
- We(Q[ge], e);
597
- Object.freeze && Object.freeze(Q);
594
+ if (ve(ee)) {
595
+ for (var Ae = 0; Ae < ee.length; Ae++)
596
+ Ke(ee[Ae], e);
597
+ Object.freeze && Object.freeze(ee);
598
598
  } else
599
- t("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
599
+ r("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
600
600
  else
601
- We(Q, e);
602
- }
603
- if (me.call(a, "key")) {
604
- var de = V(e), K = Object.keys(a).filter(function(yt) {
605
- return yt !== "key";
606
- }), Re = K.length > 0 ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}";
607
- if (!Ge[de + Re]) {
608
- var Et = K.length > 0 ? "{" + K.join(": ..., ") + ": ...}" : "{}";
609
- t(`A props object containing a "key" prop is being spread into JSX:
601
+ Ke(ee, e);
602
+ }
603
+ if (he.call(a, "key")) {
604
+ var xe = W(e), q = Object.keys(a).filter(function(yr) {
605
+ return yr !== "key";
606
+ }), je = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
607
+ if (!Ze[xe + je]) {
608
+ var Er = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
609
+ r(`A props object containing a "key" prop is being spread into JSX:
610
610
  let props = %s;
611
611
  <%s {...props} />
612
612
  React keys must be passed directly to JSX without using spread:
613
613
  let props = %s;
614
- <%s key={someKey} {...props} />`, Re, de, Et, de), Ge[de + Re] = !0;
614
+ <%s key={someKey} {...props} />`, je, xe, Er, xe), Ze[xe + je] = !0;
615
615
  }
616
616
  }
617
- return e === p ? ht(U) : ft(U), U;
617
+ return e === u ? fr(H) : hr(H), H;
618
618
  }
619
619
  }
620
- function gt(e, a, c) {
621
- return Ye(e, a, c, !0);
620
+ function gr(e, a, d) {
621
+ return qe(e, a, d, !0);
622
622
  }
623
- function mt(e, a, c) {
624
- return Ye(e, a, c, !1);
623
+ function mr(e, a, d) {
624
+ return qe(e, a, d, !1);
625
625
  }
626
- var bt = mt, vt = gt;
627
- ve.Fragment = p, ve.jsx = bt, ve.jsxs = vt;
628
- }()), ve;
626
+ var br = mr, vr = gr;
627
+ Fe.Fragment = u, Fe.jsx = br, Fe.jsxs = vr;
628
+ }()), Fe;
629
629
  }
630
- process.env.NODE_ENV === "production" ? Ie.exports = St() : Ie.exports = At();
631
- var g = Ie.exports, Je = { exports: {} };
632
- (function(u) {
633
- var d = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
630
+ process.env.NODE_ENV === "production" ? He.exports = Sr() : He.exports = Ar();
631
+ var c = He.exports, nr = { exports: {} };
632
+ (function(p) {
633
+ var h = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
634
634
  /**
635
635
  * Prism: Lightweight, robust, elegant syntax highlighting
636
636
  *
@@ -639,8 +639,8 @@ var g = Ie.exports, Je = { exports: {} };
639
639
  * @namespace
640
640
  * @public
641
641
  */
642
- var n = function(p) {
643
- var m = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, R = 0, k = {}, l = {
642
+ var n = function(u) {
643
+ var m = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, w = 0, T = {}, l = {
644
644
  /**
645
645
  * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
646
646
  * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
@@ -662,7 +662,7 @@ var g = Ie.exports, Je = { exports: {} };
662
662
  * @memberof Prism
663
663
  * @public
664
664
  */
665
- manual: p.Prism && p.Prism.manual,
665
+ manual: u.Prism && u.Prism.manual,
666
666
  /**
667
667
  * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
668
668
  * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
@@ -684,7 +684,7 @@ var g = Ie.exports, Je = { exports: {} };
684
684
  * @memberof Prism
685
685
  * @public
686
686
  */
687
- disableWorkerMessageHandler: p.Prism && p.Prism.disableWorkerMessageHandler,
687
+ disableWorkerMessageHandler: u.Prism && u.Prism.disableWorkerMessageHandler,
688
688
  /**
689
689
  * A namespace for utility methods.
690
690
  *
@@ -695,8 +695,8 @@ var g = Ie.exports, Je = { exports: {} };
695
695
  * @memberof Prism
696
696
  */
697
697
  util: {
698
- encode: function t(r) {
699
- return r instanceof b ? new b(r.type, t(r.content), r.alias) : Array.isArray(r) ? r.map(t) : r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
698
+ encode: function r(t) {
699
+ return t instanceof b ? new b(t.type, r(t.content), t.alias) : Array.isArray(t) ? t.map(r) : t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
700
700
  },
701
701
  /**
702
702
  * Returns the name of the type of the given value.
@@ -714,8 +714,8 @@ var g = Ie.exports, Je = { exports: {} };
714
714
  * type(String) === 'Function'
715
715
  * type(/abc+/) === 'RegExp'
716
716
  */
717
- type: function(t) {
718
- return Object.prototype.toString.call(t).slice(8, -1);
717
+ type: function(r) {
718
+ return Object.prototype.toString.call(r).slice(8, -1);
719
719
  },
720
720
  /**
721
721
  * Returns a unique number for the given object. Later calls will still return the same number.
@@ -723,8 +723,8 @@ var g = Ie.exports, Je = { exports: {} };
723
723
  * @param {Object} obj
724
724
  * @returns {number}
725
725
  */
726
- objId: function(t) {
727
- return t.__id || Object.defineProperty(t, "__id", { value: ++R }), t.__id;
726
+ objId: function(r) {
727
+ return r.__id || Object.defineProperty(r, "__id", { value: ++w }), r.__id;
728
728
  },
729
729
  /**
730
730
  * Creates a deep clone of the given object.
@@ -736,30 +736,30 @@ var g = Ie.exports, Je = { exports: {} };
736
736
  * @returns {T}
737
737
  * @template T
738
738
  */
739
- clone: function t(r, i) {
739
+ clone: function r(t, i) {
740
740
  i = i || {};
741
741
  var o, s;
742
- switch (l.util.type(r)) {
742
+ switch (l.util.type(t)) {
743
743
  case "Object":
744
- if (s = l.util.objId(r), i[s])
744
+ if (s = l.util.objId(t), i[s])
745
745
  return i[s];
746
746
  o = /** @type {Record<string, any>} */
747
747
  {}, i[s] = o;
748
- for (var f in r)
749
- r.hasOwnProperty(f) && (o[f] = t(r[f], i));
748
+ for (var g in t)
749
+ t.hasOwnProperty(g) && (o[g] = r(t[g], i));
750
750
  return (
751
751
  /** @type {any} */
752
752
  o
753
753
  );
754
754
  case "Array":
755
- return s = l.util.objId(r), i[s] ? i[s] : (o = [], i[s] = o, /** @type {Array} */
755
+ return s = l.util.objId(t), i[s] ? i[s] : (o = [], i[s] = o, /** @type {Array} */
756
756
  /** @type {any} */
757
- r.forEach(function(E, h) {
758
- o[h] = t(E, i);
757
+ t.forEach(function(E, f) {
758
+ o[f] = r(E, i);
759
759
  }), /** @type {any} */
760
760
  o);
761
761
  default:
762
- return r;
762
+ return t;
763
763
  }
764
764
  },
765
765
  /**
@@ -770,12 +770,12 @@ var g = Ie.exports, Je = { exports: {} };
770
770
  * @param {Element} element
771
771
  * @returns {string}
772
772
  */
773
- getLanguage: function(t) {
774
- for (; t; ) {
775
- var r = m.exec(t.className);
776
- if (r)
777
- return r[1].toLowerCase();
778
- t = t.parentElement;
773
+ getLanguage: function(r) {
774
+ for (; r; ) {
775
+ var t = m.exec(r.className);
776
+ if (t)
777
+ return t[1].toLowerCase();
778
+ r = r.parentElement;
779
779
  }
780
780
  return "none";
781
781
  },
@@ -786,8 +786,8 @@ var g = Ie.exports, Je = { exports: {} };
786
786
  * @param {string} language
787
787
  * @returns {void}
788
788
  */
789
- setLanguage: function(t, r) {
790
- t.className = t.className.replace(RegExp(m, "gi"), ""), t.classList.add("language-" + r);
789
+ setLanguage: function(r, t) {
790
+ r.className = r.className.replace(RegExp(m, "gi"), ""), r.classList.add("language-" + t);
791
791
  },
792
792
  /**
793
793
  * Returns the script element that is currently executing.
@@ -807,12 +807,12 @@ var g = Ie.exports, Je = { exports: {} };
807
807
  try {
808
808
  throw new Error();
809
809
  } catch (o) {
810
- var t = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(o.stack) || [])[1];
811
- if (t) {
812
- var r = document.getElementsByTagName("script");
813
- for (var i in r)
814
- if (r[i].src == t)
815
- return r[i];
810
+ var r = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(o.stack) || [])[1];
811
+ if (r) {
812
+ var t = document.getElementsByTagName("script");
813
+ for (var i in t)
814
+ if (t[i].src == r)
815
+ return t[i];
816
816
  }
817
817
  return null;
818
818
  }
@@ -836,14 +836,14 @@ var g = Ie.exports, Je = { exports: {} };
836
836
  * @param {boolean} [defaultActivation=false]
837
837
  * @returns {boolean}
838
838
  */
839
- isActive: function(t, r, i) {
840
- for (var o = "no-" + r; t; ) {
841
- var s = t.classList;
842
- if (s.contains(r))
839
+ isActive: function(r, t, i) {
840
+ for (var o = "no-" + t; r; ) {
841
+ var s = r.classList;
842
+ if (s.contains(t))
843
843
  return !0;
844
844
  if (s.contains(o))
845
845
  return !1;
846
- t = t.parentElement;
846
+ r = r.parentElement;
847
847
  }
848
848
  return !!i;
849
849
  }
@@ -859,10 +859,10 @@ var g = Ie.exports, Je = { exports: {} };
859
859
  /**
860
860
  * The grammar for plain, unformatted text.
861
861
  */
862
- plain: k,
863
- plaintext: k,
864
- text: k,
865
- txt: k,
862
+ plain: T,
863
+ plaintext: T,
864
+ text: T,
865
+ txt: T,
866
866
  /**
867
867
  * Creates a deep copy of the language with the given id and appends the given tokens.
868
868
  *
@@ -891,10 +891,10 @@ var g = Ie.exports, Je = { exports: {} };
891
891
  * 'color': /\b(?:red|green|blue)\b/
892
892
  * });
893
893
  */
894
- extend: function(t, r) {
895
- var i = l.util.clone(l.languages[t]);
896
- for (var o in r)
897
- i[o] = r[o];
894
+ extend: function(r, t) {
895
+ var i = l.util.clone(l.languages[r]);
896
+ for (var o in t)
897
+ i[o] = t[o];
898
898
  return i;
899
899
  },
900
900
  /**
@@ -972,31 +972,31 @@ var g = Ie.exports, Je = { exports: {} };
972
972
  * @returns {Grammar} The new grammar object.
973
973
  * @public
974
974
  */
975
- insertBefore: function(t, r, i, o) {
975
+ insertBefore: function(r, t, i, o) {
976
976
  o = o || /** @type {any} */
977
977
  l.languages;
978
- var s = o[t], f = {};
978
+ var s = o[r], g = {};
979
979
  for (var E in s)
980
980
  if (s.hasOwnProperty(E)) {
981
- if (E == r)
982
- for (var h in i)
983
- i.hasOwnProperty(h) && (f[h] = i[h]);
984
- i.hasOwnProperty(E) || (f[E] = s[E]);
981
+ if (E == t)
982
+ for (var f in i)
983
+ i.hasOwnProperty(f) && (g[f] = i[f]);
984
+ i.hasOwnProperty(E) || (g[E] = s[E]);
985
985
  }
986
- var C = o[t];
987
- return o[t] = f, l.languages.DFS(l.languages, function(P, z) {
988
- z === C && P != t && (this[P] = f);
989
- }), f;
986
+ var N = o[r];
987
+ return o[r] = g, l.languages.DFS(l.languages, function(j, z) {
988
+ z === N && j != r && (this[j] = g);
989
+ }), g;
990
990
  },
991
991
  // Traverse a language definition with Depth First Search
992
- DFS: function t(r, i, o, s) {
992
+ DFS: function r(t, i, o, s) {
993
993
  s = s || {};
994
- var f = l.util.objId;
995
- for (var E in r)
996
- if (r.hasOwnProperty(E)) {
997
- i.call(r, E, r[E], o || E);
998
- var h = r[E], C = l.util.type(h);
999
- C === "Object" && !s[f(h)] ? (s[f(h)] = !0, t(h, i, null, s)) : C === "Array" && !s[f(h)] && (s[f(h)] = !0, t(h, i, E, s));
994
+ var g = l.util.objId;
995
+ for (var E in t)
996
+ if (t.hasOwnProperty(E)) {
997
+ i.call(t, E, t[E], o || E);
998
+ var f = t[E], N = l.util.type(f);
999
+ N === "Object" && !s[g(f)] ? (s[g(f)] = !0, r(f, i, null, s)) : N === "Array" && !s[g(f)] && (s[g(f)] = !0, r(f, i, E, s));
1000
1000
  }
1001
1001
  }
1002
1002
  },
@@ -1013,8 +1013,8 @@ var g = Ie.exports, Je = { exports: {} };
1013
1013
  * @memberof Prism
1014
1014
  * @public
1015
1015
  */
1016
- highlightAll: function(t, r) {
1017
- l.highlightAllUnder(document, t, r);
1016
+ highlightAll: function(r, t) {
1017
+ l.highlightAllUnder(document, r, t);
1018
1018
  },
1019
1019
  /**
1020
1020
  * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
@@ -1031,15 +1031,15 @@ var g = Ie.exports, Je = { exports: {} };
1031
1031
  * @memberof Prism
1032
1032
  * @public
1033
1033
  */
1034
- highlightAllUnder: function(t, r, i) {
1034
+ highlightAllUnder: function(r, t, i) {
1035
1035
  var o = {
1036
1036
  callback: i,
1037
- container: t,
1037
+ container: r,
1038
1038
  selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
1039
1039
  };
1040
1040
  l.hooks.run("before-highlightall", o), o.elements = Array.prototype.slice.apply(o.container.querySelectorAll(o.selector)), l.hooks.run("before-all-elements-highlight", o);
1041
- for (var s = 0, f; f = o.elements[s++]; )
1042
- l.highlightElement(f, r === !0, o.callback);
1041
+ for (var s = 0, g; g = o.elements[s++]; )
1042
+ l.highlightElement(g, t === !0, o.callback);
1043
1043
  },
1044
1044
  /**
1045
1045
  * Highlights the code inside a single element.
@@ -1069,39 +1069,39 @@ var g = Ie.exports, Je = { exports: {} };
1069
1069
  * @memberof Prism
1070
1070
  * @public
1071
1071
  */
1072
- highlightElement: function(t, r, i) {
1073
- var o = l.util.getLanguage(t), s = l.languages[o];
1074
- l.util.setLanguage(t, o);
1075
- var f = t.parentElement;
1076
- f && f.nodeName.toLowerCase() === "pre" && l.util.setLanguage(f, o);
1077
- var E = t.textContent, h = {
1078
- element: t,
1072
+ highlightElement: function(r, t, i) {
1073
+ var o = l.util.getLanguage(r), s = l.languages[o];
1074
+ l.util.setLanguage(r, o);
1075
+ var g = r.parentElement;
1076
+ g && g.nodeName.toLowerCase() === "pre" && l.util.setLanguage(g, o);
1077
+ var E = r.textContent, f = {
1078
+ element: r,
1079
1079
  language: o,
1080
1080
  grammar: s,
1081
1081
  code: E
1082
1082
  };
1083
- function C(z) {
1084
- h.highlightedCode = z, l.hooks.run("before-insert", h), h.element.innerHTML = h.highlightedCode, l.hooks.run("after-highlight", h), l.hooks.run("complete", h), i && i.call(h.element);
1083
+ function N(z) {
1084
+ f.highlightedCode = z, l.hooks.run("before-insert", f), f.element.innerHTML = f.highlightedCode, l.hooks.run("after-highlight", f), l.hooks.run("complete", f), i && i.call(f.element);
1085
1085
  }
1086
- if (l.hooks.run("before-sanity-check", h), f = h.element.parentElement, f && f.nodeName.toLowerCase() === "pre" && !f.hasAttribute("tabindex") && f.setAttribute("tabindex", "0"), !h.code) {
1087
- l.hooks.run("complete", h), i && i.call(h.element);
1086
+ if (l.hooks.run("before-sanity-check", f), g = f.element.parentElement, g && g.nodeName.toLowerCase() === "pre" && !g.hasAttribute("tabindex") && g.setAttribute("tabindex", "0"), !f.code) {
1087
+ l.hooks.run("complete", f), i && i.call(f.element);
1088
1088
  return;
1089
1089
  }
1090
- if (l.hooks.run("before-highlight", h), !h.grammar) {
1091
- C(l.util.encode(h.code));
1090
+ if (l.hooks.run("before-highlight", f), !f.grammar) {
1091
+ N(l.util.encode(f.code));
1092
1092
  return;
1093
1093
  }
1094
- if (r && p.Worker) {
1095
- var P = new Worker(l.filename);
1096
- P.onmessage = function(z) {
1097
- C(z.data);
1098
- }, P.postMessage(JSON.stringify({
1099
- language: h.language,
1100
- code: h.code,
1094
+ if (t && u.Worker) {
1095
+ var j = new Worker(l.filename);
1096
+ j.onmessage = function(z) {
1097
+ N(z.data);
1098
+ }, j.postMessage(JSON.stringify({
1099
+ language: f.language,
1100
+ code: f.code,
1101
1101
  immediateClose: !0
1102
1102
  }));
1103
1103
  } else
1104
- C(l.highlight(h.code, h.grammar, h.language));
1104
+ N(l.highlight(f.code, f.grammar, f.language));
1105
1105
  },
1106
1106
  /**
1107
1107
  * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
@@ -1123,10 +1123,10 @@ var g = Ie.exports, Je = { exports: {} };
1123
1123
  * @example
1124
1124
  * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
1125
1125
  */
1126
- highlight: function(t, r, i) {
1126
+ highlight: function(r, t, i) {
1127
1127
  var o = {
1128
- code: t,
1129
- grammar: r,
1128
+ code: r,
1129
+ grammar: t,
1130
1130
  language: i
1131
1131
  };
1132
1132
  if (l.hooks.run("before-tokenize", o), !o.grammar)
@@ -1157,15 +1157,15 @@ var g = Ie.exports, Je = { exports: {} };
1157
1157
  * }
1158
1158
  * });
1159
1159
  */
1160
- tokenize: function(t, r) {
1161
- var i = r.rest;
1160
+ tokenize: function(r, t) {
1161
+ var i = t.rest;
1162
1162
  if (i) {
1163
1163
  for (var o in i)
1164
- r[o] = i[o];
1165
- delete r.rest;
1164
+ t[o] = i[o];
1165
+ delete t.rest;
1166
1166
  }
1167
- var s = new O();
1168
- return D(s, s.head, t), _(t, s, r, s.head, 0), B(s);
1167
+ var s = new _();
1168
+ return L(s, s.head, r), k(r, s, t, s.head, 0), D(s);
1169
1169
  },
1170
1170
  /**
1171
1171
  * @namespace
@@ -1186,9 +1186,9 @@ var g = Ie.exports, Je = { exports: {} };
1186
1186
  * @param {HookCallback} callback The callback function which is given environment variables.
1187
1187
  * @public
1188
1188
  */
1189
- add: function(t, r) {
1189
+ add: function(r, t) {
1190
1190
  var i = l.hooks.all;
1191
- i[t] = i[t] || [], i[t].push(r);
1191
+ i[r] = i[r] || [], i[r].push(t);
1192
1192
  },
1193
1193
  /**
1194
1194
  * Runs a hook invoking all registered callbacks with the given environment variables.
@@ -1199,135 +1199,135 @@ var g = Ie.exports, Je = { exports: {} };
1199
1199
  * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
1200
1200
  * @public
1201
1201
  */
1202
- run: function(t, r) {
1203
- var i = l.hooks.all[t];
1202
+ run: function(r, t) {
1203
+ var i = l.hooks.all[r];
1204
1204
  if (!(!i || !i.length))
1205
1205
  for (var o = 0, s; s = i[o++]; )
1206
- s(r);
1206
+ s(t);
1207
1207
  }
1208
1208
  },
1209
1209
  Token: b
1210
1210
  };
1211
- p.Prism = l;
1212
- function b(t, r, i, o) {
1213
- this.type = t, this.content = r, this.alias = i, this.length = (o || "").length | 0;
1214
- }
1215
- b.stringify = function t(r, i) {
1216
- if (typeof r == "string")
1217
- return r;
1218
- if (Array.isArray(r)) {
1211
+ u.Prism = l;
1212
+ function b(r, t, i, o) {
1213
+ this.type = r, this.content = t, this.alias = i, this.length = (o || "").length | 0;
1214
+ }
1215
+ b.stringify = function r(t, i) {
1216
+ if (typeof t == "string")
1217
+ return t;
1218
+ if (Array.isArray(t)) {
1219
1219
  var o = "";
1220
- return r.forEach(function(C) {
1221
- o += t(C, i);
1220
+ return t.forEach(function(N) {
1221
+ o += r(N, i);
1222
1222
  }), o;
1223
1223
  }
1224
1224
  var s = {
1225
- type: r.type,
1226
- content: t(r.content, i),
1225
+ type: t.type,
1226
+ content: r(t.content, i),
1227
1227
  tag: "span",
1228
- classes: ["token", r.type],
1228
+ classes: ["token", t.type],
1229
1229
  attributes: {},
1230
1230
  language: i
1231
- }, f = r.alias;
1232
- f && (Array.isArray(f) ? Array.prototype.push.apply(s.classes, f) : s.classes.push(f)), l.hooks.run("wrap", s);
1231
+ }, g = t.alias;
1232
+ g && (Array.isArray(g) ? Array.prototype.push.apply(s.classes, g) : s.classes.push(g)), l.hooks.run("wrap", s);
1233
1233
  var E = "";
1234
- for (var h in s.attributes)
1235
- E += " " + h + '="' + (s.attributes[h] || "").replace(/"/g, "&quot;") + '"';
1234
+ for (var f in s.attributes)
1235
+ E += " " + f + '="' + (s.attributes[f] || "").replace(/"/g, "&quot;") + '"';
1236
1236
  return "<" + s.tag + ' class="' + s.classes.join(" ") + '"' + E + ">" + s.content + "</" + s.tag + ">";
1237
1237
  };
1238
- function y(t, r, i, o) {
1239
- t.lastIndex = r;
1240
- var s = t.exec(i);
1238
+ function S(r, t, i, o) {
1239
+ r.lastIndex = t;
1240
+ var s = r.exec(i);
1241
1241
  if (s && o && s[1]) {
1242
- var f = s[1].length;
1243
- s.index += f, s[0] = s[0].slice(f);
1242
+ var g = s[1].length;
1243
+ s.index += g, s[0] = s[0].slice(g);
1244
1244
  }
1245
1245
  return s;
1246
1246
  }
1247
- function _(t, r, i, o, s, f) {
1247
+ function k(r, t, i, o, s, g) {
1248
1248
  for (var E in i)
1249
1249
  if (!(!i.hasOwnProperty(E) || !i[E])) {
1250
- var h = i[E];
1251
- h = Array.isArray(h) ? h : [h];
1252
- for (var C = 0; C < h.length; ++C) {
1253
- if (f && f.cause == E + "," + C)
1250
+ var f = i[E];
1251
+ f = Array.isArray(f) ? f : [f];
1252
+ for (var N = 0; N < f.length; ++N) {
1253
+ if (g && g.cause == E + "," + N)
1254
1254
  return;
1255
- var P = h[C], z = P.inside, V = !!P.lookbehind, W = !!P.greedy, ne = P.alias;
1256
- if (W && !P.pattern.global) {
1257
- var ue = P.pattern.toString().match(/[imsuy]*$/)[0];
1258
- P.pattern = RegExp(P.pattern.source, ue + "g");
1255
+ var j = f[N], z = j.inside, W = !!j.lookbehind, J = !!j.greedy, Q = j.alias;
1256
+ if (J && !j.pattern.global) {
1257
+ var ge = j.pattern.toString().match(/[imsuy]*$/)[0];
1258
+ j.pattern = RegExp(j.pattern.source, ge + "g");
1259
1259
  }
1260
- for (var ce = P.pattern || P, j = o.next, H = s; j !== r.tail && !(f && H >= f.reach); H += j.value.length, j = j.next) {
1261
- var ee = j.value;
1262
- if (r.length > t.length)
1260
+ for (var ce = j.pattern || j, $ = o.next, G = s; $ !== t.tail && !(g && G >= g.reach); G += $.value.length, $ = $.next) {
1261
+ var Z = $.value;
1262
+ if (t.length > r.length)
1263
1263
  return;
1264
- if (!(ee instanceof b)) {
1265
- var X = 1, G;
1266
- if (W) {
1267
- if (G = y(ce, H, t, V), !G || G.index >= t.length)
1264
+ if (!(Z instanceof b)) {
1265
+ var te = 1, B;
1266
+ if (J) {
1267
+ if (B = S(ce, G, r, W), !B || B.index >= r.length)
1268
1268
  break;
1269
- var ae = G.index, pe = G.index + G[0].length, q = H;
1270
- for (q += j.value.length; ae >= q; )
1271
- j = j.next, q += j.value.length;
1272
- if (q -= j.value.length, H = q, j.value instanceof b)
1269
+ var ne = B.index, me = B.index + B[0].length, Y = G;
1270
+ for (Y += $.value.length; ne >= Y; )
1271
+ $ = $.next, Y += $.value.length;
1272
+ if (Y -= $.value.length, G = Y, $.value instanceof b)
1273
1273
  continue;
1274
- for (var se = j; se !== r.tail && (q < pe || typeof se.value == "string"); se = se.next)
1275
- X++, q += se.value.length;
1276
- X--, ee = t.slice(H, q), G.index -= H;
1277
- } else if (G = y(ce, 0, ee, V), !G)
1274
+ for (var se = $; se !== t.tail && (Y < me || typeof se.value == "string"); se = se.next)
1275
+ te++, Y += se.value.length;
1276
+ te--, Z = r.slice(G, Y), B.index -= G;
1277
+ } else if (B = S(ce, 0, Z, W), !B)
1278
1278
  continue;
1279
- var ae = G.index, J = G[0], ie = ee.slice(0, ae), oe = ee.slice(ae + J.length), te = H + ee.length;
1280
- f && te > f.reach && (f.reach = te);
1281
- var S = j.prev;
1282
- ie && (S = D(r, S, ie), H += ie.length), I(r, S, X);
1283
- var M = new b(E, z ? l.tokenize(J, z) : J, ne, J);
1284
- if (j = D(r, S, M), oe && D(r, j, oe), X > 1) {
1285
- var re = {
1286
- cause: E + "," + C,
1287
- reach: te
1279
+ var ne = B.index, V = B[0], ae = Z.slice(0, ne), ue = Z.slice(ne + V.length), ie = G + Z.length;
1280
+ g && ie > g.reach && (g.reach = ie);
1281
+ var de = $.prev;
1282
+ ae && (de = L(t, de, ae), G += ae.length), P(t, de, te);
1283
+ var ke = new b(E, z ? l.tokenize(V, z) : V, Q, V);
1284
+ if ($ = L(t, de, ke), ue && L(t, $, ue), te > 1) {
1285
+ var le = {
1286
+ cause: E + "," + N,
1287
+ reach: ie
1288
1288
  };
1289
- _(t, r, i, j.prev, H, re), f && re.reach > f.reach && (f.reach = re.reach);
1289
+ k(r, t, i, $.prev, G, le), g && le.reach > g.reach && (g.reach = le.reach);
1290
1290
  }
1291
1291
  }
1292
1292
  }
1293
1293
  }
1294
1294
  }
1295
1295
  }
1296
- function O() {
1297
- var t = { value: null, prev: null, next: null }, r = { value: null, prev: t, next: null };
1298
- t.next = r, this.head = t, this.tail = r, this.length = 0;
1296
+ function _() {
1297
+ var r = { value: null, prev: null, next: null }, t = { value: null, prev: r, next: null };
1298
+ r.next = t, this.head = r, this.tail = t, this.length = 0;
1299
1299
  }
1300
- function D(t, r, i) {
1301
- var o = r.next, s = { value: i, prev: r, next: o };
1302
- return r.next = s, o.prev = s, t.length++, s;
1300
+ function L(r, t, i) {
1301
+ var o = t.next, s = { value: i, prev: t, next: o };
1302
+ return t.next = s, o.prev = s, r.length++, s;
1303
1303
  }
1304
- function I(t, r, i) {
1305
- for (var o = r.next, s = 0; s < i && o !== t.tail; s++)
1304
+ function P(r, t, i) {
1305
+ for (var o = t.next, s = 0; s < i && o !== r.tail; s++)
1306
1306
  o = o.next;
1307
- r.next = o, o.prev = r, t.length -= s;
1307
+ t.next = o, o.prev = t, r.length -= s;
1308
1308
  }
1309
- function B(t) {
1310
- for (var r = [], i = t.head.next; i !== t.tail; )
1311
- r.push(i.value), i = i.next;
1312
- return r;
1309
+ function D(r) {
1310
+ for (var t = [], i = r.head.next; i !== r.tail; )
1311
+ t.push(i.value), i = i.next;
1312
+ return t;
1313
1313
  }
1314
- if (!p.document)
1315
- return p.addEventListener && (l.disableWorkerMessageHandler || p.addEventListener("message", function(t) {
1316
- var r = JSON.parse(t.data), i = r.language, o = r.code, s = r.immediateClose;
1317
- p.postMessage(l.highlight(o, l.languages[i], i)), s && p.close();
1314
+ if (!u.document)
1315
+ return u.addEventListener && (l.disableWorkerMessageHandler || u.addEventListener("message", function(r) {
1316
+ var t = JSON.parse(r.data), i = t.language, o = t.code, s = t.immediateClose;
1317
+ u.postMessage(l.highlight(o, l.languages[i], i)), s && u.close();
1318
1318
  }, !1)), l;
1319
- var F = l.util.currentScript();
1320
- F && (l.filename = F.src, F.hasAttribute("data-manual") && (l.manual = !0));
1321
- function w() {
1319
+ var O = l.util.currentScript();
1320
+ O && (l.filename = O.src, O.hasAttribute("data-manual") && (l.manual = !0));
1321
+ function y() {
1322
1322
  l.manual || l.highlightAll();
1323
1323
  }
1324
1324
  if (!l.manual) {
1325
- var T = document.readyState;
1326
- T === "loading" || T === "interactive" && F && F.defer ? document.addEventListener("DOMContentLoaded", w) : window.requestAnimationFrame ? window.requestAnimationFrame(w) : window.setTimeout(w, 16);
1325
+ var I = document.readyState;
1326
+ I === "loading" || I === "interactive" && O && O.defer ? document.addEventListener("DOMContentLoaded", y) : window.requestAnimationFrame ? window.requestAnimationFrame(y) : window.setTimeout(y, 16);
1327
1327
  }
1328
1328
  return l;
1329
- }(d);
1330
- u.exports && (u.exports = n), typeof Ve < "u" && (Ve.Prism = n), n.languages.markup = {
1329
+ }(h);
1330
+ p.exports && (p.exports = n), typeof Je < "u" && (Je.Prism = n), n.languages.markup = {
1331
1331
  comment: {
1332
1332
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
1333
1333
  greedy: !0
@@ -1404,8 +1404,8 @@ var g = Ie.exports, Je = { exports: {} };
1404
1404
  },
1405
1405
  /&#x?[\da-f]{1,8};/i
1406
1406
  ]
1407
- }, n.languages.markup.tag.inside["attr-value"].inside.entity = n.languages.markup.entity, n.languages.markup.doctype.inside["internal-subset"].inside = n.languages.markup, n.hooks.add("wrap", function(p) {
1408
- p.type === "entity" && (p.attributes.title = p.content.replace(/&amp;/, "&"));
1407
+ }, n.languages.markup.tag.inside["attr-value"].inside.entity = n.languages.markup.entity, n.languages.markup.doctype.inside["internal-subset"].inside = n.languages.markup, n.hooks.add("wrap", function(u) {
1408
+ u.type === "entity" && (u.attributes.title = u.content.replace(/&amp;/, "&"));
1409
1409
  }), Object.defineProperty(n.languages.markup.tag, "addInlined", {
1410
1410
  /**
1411
1411
  * Adds an inlined language to markup.
@@ -1418,22 +1418,22 @@ var g = Ie.exports, Je = { exports: {} };
1418
1418
  * @example
1419
1419
  * addInlined('style', 'css');
1420
1420
  */
1421
- value: function(m, R) {
1422
- var k = {};
1423
- k["language-" + R] = {
1421
+ value: function(m, w) {
1422
+ var T = {};
1423
+ T["language-" + w] = {
1424
1424
  pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
1425
1425
  lookbehind: !0,
1426
- inside: n.languages[R]
1427
- }, k.cdata = /^<!\[CDATA\[|\]\]>$/i;
1426
+ inside: n.languages[w]
1427
+ }, T.cdata = /^<!\[CDATA\[|\]\]>$/i;
1428
1428
  var l = {
1429
1429
  "included-cdata": {
1430
1430
  pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1431
- inside: k
1431
+ inside: T
1432
1432
  }
1433
1433
  };
1434
- l["language-" + R] = {
1434
+ l["language-" + w] = {
1435
1435
  pattern: /[\s\S]+/,
1436
- inside: n.languages[R]
1436
+ inside: n.languages[w]
1437
1437
  };
1438
1438
  var b = {};
1439
1439
  b[m] = {
@@ -1457,10 +1457,10 @@ var g = Ie.exports, Je = { exports: {} };
1457
1457
  * @example
1458
1458
  * addAttribute('style', 'css');
1459
1459
  */
1460
- value: function(p, m) {
1460
+ value: function(u, m) {
1461
1461
  n.languages.markup.tag.inside["special-attr"].push({
1462
1462
  pattern: RegExp(
1463
- /(^|["'\s])/.source + "(?:" + p + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
1463
+ /(^|["'\s])/.source + "(?:" + u + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
1464
1464
  "i"
1465
1465
  ),
1466
1466
  lookbehind: !0,
@@ -1487,9 +1487,9 @@ var g = Ie.exports, Je = { exports: {} };
1487
1487
  }
1488
1488
  });
1489
1489
  }
1490
- }), n.languages.html = n.languages.markup, n.languages.mathml = n.languages.markup, n.languages.svg = n.languages.markup, n.languages.xml = n.languages.extend("markup", {}), n.languages.ssml = n.languages.xml, n.languages.atom = n.languages.xml, n.languages.rss = n.languages.xml, function(p) {
1490
+ }), n.languages.html = n.languages.markup, n.languages.mathml = n.languages.markup, n.languages.svg = n.languages.markup, n.languages.xml = n.languages.extend("markup", {}), n.languages.ssml = n.languages.xml, n.languages.atom = n.languages.xml, n.languages.rss = n.languages.xml, function(u) {
1491
1491
  var m = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
1492
- p.languages.css = {
1492
+ u.languages.css = {
1493
1493
  comment: /\/\*[\s\S]*?\*\//,
1494
1494
  atrule: {
1495
1495
  pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + m.source + ")*?" + /(?:;|(?=\s*\{))/.source),
@@ -1538,9 +1538,9 @@ var g = Ie.exports, Je = { exports: {} };
1538
1538
  lookbehind: !0
1539
1539
  },
1540
1540
  punctuation: /[(){};:,]/
1541
- }, p.languages.css.atrule.inside.rest = p.languages.css;
1542
- var R = p.languages.markup;
1543
- R && (R.tag.addInlined("style", "css"), R.tag.addAttribute("style", "css"));
1541
+ }, u.languages.css.atrule.inside.rest = u.languages.css;
1542
+ var w = u.languages.markup;
1543
+ w && (w.tag.addInlined("style", "css"), w.tag.addAttribute("style", "css"));
1544
1544
  }(n), n.languages.clike = {
1545
1545
  comment: [
1546
1546
  {
@@ -1705,9 +1705,9 @@ var g = Ie.exports, Je = { exports: {} };
1705
1705
  if (typeof n > "u" || typeof document > "u")
1706
1706
  return;
1707
1707
  Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
1708
- var p = "Loading…", m = function(F, w) {
1709
- return "✖ Error " + F + " while fetching file: " + w;
1710
- }, R = "✖ Error: File does not exist or is empty", k = {
1708
+ var u = "Loading…", m = function(O, y) {
1709
+ return "✖ Error " + O + " while fetching file: " + y;
1710
+ }, w = "✖ Error: File does not exist or is empty", T = {
1711
1711
  js: "javascript",
1712
1712
  py: "python",
1713
1713
  rb: "ruby",
@@ -1717,52 +1717,52 @@ var g = Ie.exports, Je = { exports: {} };
1717
1717
  bat: "batch",
1718
1718
  h: "c",
1719
1719
  tex: "latex"
1720
- }, l = "data-src-status", b = "loading", y = "loaded", _ = "failed", O = "pre[data-src]:not([" + l + '="' + y + '"]):not([' + l + '="' + b + '"])';
1721
- function D(F, w, T) {
1722
- var t = new XMLHttpRequest();
1723
- t.open("GET", F, !0), t.onreadystatechange = function() {
1724
- t.readyState == 4 && (t.status < 400 && t.responseText ? w(t.responseText) : t.status >= 400 ? T(m(t.status, t.statusText)) : T(R));
1725
- }, t.send(null);
1726
- }
1727
- function I(F) {
1728
- var w = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(F || "");
1729
- if (w) {
1730
- var T = Number(w[1]), t = w[2], r = w[3];
1731
- return t ? r ? [T, Number(r)] : [T, void 0] : [T, T];
1720
+ }, l = "data-src-status", b = "loading", S = "loaded", k = "failed", _ = "pre[data-src]:not([" + l + '="' + S + '"]):not([' + l + '="' + b + '"])';
1721
+ function L(O, y, I) {
1722
+ var r = new XMLHttpRequest();
1723
+ r.open("GET", O, !0), r.onreadystatechange = function() {
1724
+ r.readyState == 4 && (r.status < 400 && r.responseText ? y(r.responseText) : r.status >= 400 ? I(m(r.status, r.statusText)) : I(w));
1725
+ }, r.send(null);
1726
+ }
1727
+ function P(O) {
1728
+ var y = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(O || "");
1729
+ if (y) {
1730
+ var I = Number(y[1]), r = y[2], t = y[3];
1731
+ return r ? t ? [I, Number(t)] : [I, void 0] : [I, I];
1732
1732
  }
1733
1733
  }
1734
- n.hooks.add("before-highlightall", function(F) {
1735
- F.selector += ", " + O;
1736
- }), n.hooks.add("before-sanity-check", function(F) {
1737
- var w = (
1734
+ n.hooks.add("before-highlightall", function(O) {
1735
+ O.selector += ", " + _;
1736
+ }), n.hooks.add("before-sanity-check", function(O) {
1737
+ var y = (
1738
1738
  /** @type {HTMLPreElement} */
1739
- F.element
1739
+ O.element
1740
1740
  );
1741
- if (w.matches(O)) {
1742
- F.code = "", w.setAttribute(l, b);
1743
- var T = w.appendChild(document.createElement("CODE"));
1744
- T.textContent = p;
1745
- var t = w.getAttribute("data-src"), r = F.language;
1746
- if (r === "none") {
1747
- var i = (/\.(\w+)$/.exec(t) || [, "none"])[1];
1748
- r = k[i] || i;
1749
- }
1750
- n.util.setLanguage(T, r), n.util.setLanguage(w, r);
1741
+ if (y.matches(_)) {
1742
+ O.code = "", y.setAttribute(l, b);
1743
+ var I = y.appendChild(document.createElement("CODE"));
1744
+ I.textContent = u;
1745
+ var r = y.getAttribute("data-src"), t = O.language;
1746
+ if (t === "none") {
1747
+ var i = (/\.(\w+)$/.exec(r) || [, "none"])[1];
1748
+ t = T[i] || i;
1749
+ }
1750
+ n.util.setLanguage(I, t), n.util.setLanguage(y, t);
1751
1751
  var o = n.plugins.autoloader;
1752
- o && o.loadLanguages(r), D(
1753
- t,
1752
+ o && o.loadLanguages(t), L(
1753
+ r,
1754
1754
  function(s) {
1755
- w.setAttribute(l, y);
1756
- var f = I(w.getAttribute("data-range"));
1757
- if (f) {
1758
- var E = s.split(/\r\n?|\n/g), h = f[0], C = f[1] == null ? E.length : f[1];
1759
- h < 0 && (h += E.length), h = Math.max(0, Math.min(h - 1, E.length)), C < 0 && (C += E.length), C = Math.max(0, Math.min(C, E.length)), s = E.slice(h, C).join(`
1760
- `), w.hasAttribute("data-start") || w.setAttribute("data-start", String(h + 1));
1755
+ y.setAttribute(l, S);
1756
+ var g = P(y.getAttribute("data-range"));
1757
+ if (g) {
1758
+ var E = s.split(/\r\n?|\n/g), f = g[0], N = g[1] == null ? E.length : g[1];
1759
+ f < 0 && (f += E.length), f = Math.max(0, Math.min(f - 1, E.length)), N < 0 && (N += E.length), N = Math.max(0, Math.min(N, E.length)), s = E.slice(f, N).join(`
1760
+ `), y.hasAttribute("data-start") || y.setAttribute("data-start", String(f + 1));
1761
1761
  }
1762
- T.textContent = s, n.highlightElement(T);
1762
+ I.textContent = s, n.highlightElement(I);
1763
1763
  },
1764
1764
  function(s) {
1765
- w.setAttribute(l, _), T.textContent = s;
1765
+ y.setAttribute(l, k), I.textContent = s;
1766
1766
  }
1767
1767
  );
1768
1768
  }
@@ -1774,19 +1774,19 @@ var g = Ie.exports, Je = { exports: {} };
1774
1774
  *
1775
1775
  * @param {ParentNode} [container=document]
1776
1776
  */
1777
- highlight: function(w) {
1778
- for (var T = (w || document).querySelectorAll(O), t = 0, r; r = T[t++]; )
1779
- n.highlightElement(r);
1777
+ highlight: function(y) {
1778
+ for (var I = (y || document).querySelectorAll(_), r = 0, t; t = I[r++]; )
1779
+ n.highlightElement(t);
1780
1780
  }
1781
1781
  };
1782
- var B = !1;
1782
+ var D = !1;
1783
1783
  n.fileHighlight = function() {
1784
- B || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), B = !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
1784
+ D || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), D = !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
1785
1785
  };
1786
1786
  }();
1787
- })(Je);
1788
- var Tt = Je.exports;
1789
- const Ne = /* @__PURE__ */ wt(Tt);
1787
+ })(nr);
1788
+ var Tr = nr.exports;
1789
+ const Be = /* @__PURE__ */ wr(Tr);
1790
1790
  Prism.languages.clike = {
1791
1791
  comment: [
1792
1792
  {
@@ -2044,8 +2044,8 @@ Prism.languages.insertBefore("go", "string", {
2044
2044
  }
2045
2045
  });
2046
2046
  delete Prism.languages.go["class-name"];
2047
- (function(u) {
2048
- var d = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, n = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, p = {
2047
+ (function(p) {
2048
+ var h = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, n = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, u = {
2049
2049
  pattern: RegExp(/(^|[^\w.])/.source + n + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),
2050
2050
  lookbehind: !0,
2051
2051
  inside: {
@@ -2058,32 +2058,32 @@ delete Prism.languages.go["class-name"];
2058
2058
  punctuation: /\./
2059
2059
  }
2060
2060
  };
2061
- u.languages.java = u.languages.extend("clike", {
2061
+ p.languages.java = p.languages.extend("clike", {
2062
2062
  string: {
2063
2063
  pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,
2064
2064
  lookbehind: !0,
2065
2065
  greedy: !0
2066
2066
  },
2067
2067
  "class-name": [
2068
- p,
2068
+ u,
2069
2069
  {
2070
2070
  // variables, parameters, and constructor references
2071
2071
  // this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
2072
2072
  pattern: RegExp(/(^|[^\w.])/.source + n + /[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),
2073
2073
  lookbehind: !0,
2074
- inside: p.inside
2074
+ inside: u.inside
2075
2075
  },
2076
2076
  {
2077
2077
  // class names based on keyword
2078
2078
  // this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
2079
2079
  pattern: RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source + n + /[A-Z]\w*\b/.source),
2080
2080
  lookbehind: !0,
2081
- inside: p.inside
2081
+ inside: u.inside
2082
2082
  }
2083
2083
  ],
2084
- keyword: d,
2084
+ keyword: h,
2085
2085
  function: [
2086
- u.languages.clike.function,
2086
+ p.languages.clike.function,
2087
2087
  {
2088
2088
  pattern: /(::\s*)[a-z_]\w*/,
2089
2089
  lookbehind: !0
@@ -2095,7 +2095,7 @@ delete Prism.languages.go["class-name"];
2095
2095
  lookbehind: !0
2096
2096
  },
2097
2097
  constant: /\b[A-Z][A-Z_\d]+\b/
2098
- }), u.languages.insertBefore("java", "string", {
2098
+ }), p.languages.insertBefore("java", "string", {
2099
2099
  "triple-quoted-string": {
2100
2100
  // http://openjdk.java.net/jeps/355#Description
2101
2101
  pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,
@@ -2106,7 +2106,7 @@ delete Prism.languages.go["class-name"];
2106
2106
  pattern: /'(?:\\.|[^'\\\r\n]){1,6}'/,
2107
2107
  greedy: !0
2108
2108
  }
2109
- }), u.languages.insertBefore("java", "class-name", {
2109
+ }), p.languages.insertBefore("java", "class-name", {
2110
2110
  annotation: {
2111
2111
  pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/,
2112
2112
  lookbehind: !0,
@@ -2115,8 +2115,8 @@ delete Prism.languages.go["class-name"];
2115
2115
  generics: {
2116
2116
  pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
2117
2117
  inside: {
2118
- "class-name": p,
2119
- keyword: d,
2118
+ "class-name": u,
2119
+ keyword: h,
2120
2120
  punctuation: /[<>(),.:]/,
2121
2121
  operator: /[?&|]/
2122
2122
  }
@@ -2126,7 +2126,7 @@ delete Prism.languages.go["class-name"];
2126
2126
  pattern: RegExp(/(\bimport\s+)/.source + n + /(?:[A-Z]\w*|\*)(?=\s*;)/.source),
2127
2127
  lookbehind: !0,
2128
2128
  inside: {
2129
- namespace: p.inside.namespace,
2129
+ namespace: u.inside.namespace,
2130
2130
  punctuation: /\./,
2131
2131
  operator: /\*/,
2132
2132
  "class-name": /\w+/
@@ -2137,7 +2137,7 @@ delete Prism.languages.go["class-name"];
2137
2137
  lookbehind: !0,
2138
2138
  alias: "static",
2139
2139
  inside: {
2140
- namespace: p.inside.namespace,
2140
+ namespace: u.inside.namespace,
2141
2141
  static: /\b\w+$/,
2142
2142
  punctuation: /\./,
2143
2143
  operator: /\*/,
@@ -2148,7 +2148,7 @@ delete Prism.languages.go["class-name"];
2148
2148
  namespace: {
2149
2149
  pattern: RegExp(
2150
2150
  /(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g, function() {
2151
- return d.source;
2151
+ return h.source;
2152
2152
  })
2153
2153
  ),
2154
2154
  lookbehind: !0,
@@ -2234,17 +2234,17 @@ Prism.languages.insertBefore("c", "function", {
2234
2234
  constant: /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/
2235
2235
  });
2236
2236
  delete Prism.languages.c.boolean;
2237
- (function(u) {
2238
- for (var d = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, n = 0; n < 2; n++)
2239
- d = d.replace(/<self>/g, function() {
2240
- return d;
2237
+ (function(p) {
2238
+ for (var h = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, n = 0; n < 2; n++)
2239
+ h = h.replace(/<self>/g, function() {
2240
+ return h;
2241
2241
  });
2242
- d = d.replace(/<self>/g, function() {
2242
+ h = h.replace(/<self>/g, function() {
2243
2243
  return /[^\s\S]/.source;
2244
- }), u.languages.rust = {
2244
+ }), p.languages.rust = {
2245
2245
  comment: [
2246
2246
  {
2247
- pattern: RegExp(/(^|[^\\])/.source + d),
2247
+ pattern: RegExp(/(^|[^\\])/.source + h),
2248
2248
  lookbehind: !0,
2249
2249
  greedy: !0
2250
2250
  },
@@ -2348,7 +2348,7 @@ delete Prism.languages.c.boolean;
2348
2348
  boolean: /\b(?:false|true)\b/,
2349
2349
  punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,
2350
2350
  operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/
2351
- }, u.languages.rust["closure-params"].inside.rest = u.languages.rust, u.languages.rust.attribute.inside.string = u.languages.rust.string;
2351
+ }, p.languages.rust["closure-params"].inside.rest = p.languages.rust, p.languages.rust.attribute.inside.string = p.languages.rust.string;
2352
2352
  })(Prism);
2353
2353
  Prism.languages.sql = {
2354
2354
  comment: {
@@ -2383,18 +2383,18 @@ Prism.languages.sql = {
2383
2383
  operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,
2384
2384
  punctuation: /[;[\]()`,.]/
2385
2385
  };
2386
- (function(u) {
2387
- var d = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", n = {
2386
+ (function(p) {
2387
+ var h = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", n = {
2388
2388
  pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
2389
2389
  lookbehind: !0,
2390
2390
  alias: "punctuation",
2391
2391
  // this looks reasonably well in all themes
2392
2392
  inside: null
2393
2393
  // see below
2394
- }, p = {
2394
+ }, u = {
2395
2395
  bash: n,
2396
2396
  environment: {
2397
- pattern: RegExp("\\$" + d),
2397
+ pattern: RegExp("\\$" + h),
2398
2398
  alias: "constant"
2399
2399
  },
2400
2400
  variable: [
@@ -2434,7 +2434,7 @@ Prism.languages.sql = {
2434
2434
  operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
2435
2435
  punctuation: /[\[\]]/,
2436
2436
  environment: {
2437
- pattern: RegExp("(\\{)" + d),
2437
+ pattern: RegExp("(\\{)" + h),
2438
2438
  lookbehind: !0,
2439
2439
  alias: "constant"
2440
2440
  }
@@ -2445,7 +2445,7 @@ Prism.languages.sql = {
2445
2445
  // Escape sequences from echo and printf's manuals, and escaped quotes.
2446
2446
  entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
2447
2447
  };
2448
- u.languages.bash = {
2448
+ p.languages.bash = {
2449
2449
  shebang: {
2450
2450
  pattern: /^#!\s*\/.*/,
2451
2451
  alias: "important"
@@ -2483,7 +2483,7 @@ Prism.languages.sql = {
2483
2483
  pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
2484
2484
  inside: {
2485
2485
  environment: {
2486
- pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + d),
2486
+ pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + h),
2487
2487
  lookbehind: !0,
2488
2488
  alias: "constant"
2489
2489
  }
@@ -2503,7 +2503,7 @@ Prism.languages.sql = {
2503
2503
  pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
2504
2504
  lookbehind: !0,
2505
2505
  greedy: !0,
2506
- inside: p
2506
+ inside: u
2507
2507
  },
2508
2508
  // Here-document with quotes around the tag
2509
2509
  // → No expansion (so no “inside”).
@@ -2521,7 +2521,7 @@ Prism.languages.sql = {
2521
2521
  pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
2522
2522
  lookbehind: !0,
2523
2523
  greedy: !0,
2524
- inside: p
2524
+ inside: u
2525
2525
  },
2526
2526
  {
2527
2527
  // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
@@ -2534,15 +2534,15 @@ Prism.languages.sql = {
2534
2534
  pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
2535
2535
  greedy: !0,
2536
2536
  inside: {
2537
- entity: p.entity
2537
+ entity: u.entity
2538
2538
  }
2539
2539
  }
2540
2540
  ],
2541
2541
  environment: {
2542
- pattern: RegExp("\\$?" + d),
2542
+ pattern: RegExp("\\$?" + h),
2543
2543
  alias: "constant"
2544
2544
  },
2545
- variable: p.variable,
2545
+ variable: u.variable,
2546
2546
  function: {
2547
2547
  pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
2548
2548
  lookbehind: !0
@@ -2581,7 +2581,7 @@ Prism.languages.sql = {
2581
2581
  pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
2582
2582
  lookbehind: !0
2583
2583
  }
2584
- }, n.inside = u.languages.bash;
2584
+ }, n.inside = p.languages.bash;
2585
2585
  for (var m = [
2586
2586
  "comment",
2587
2587
  "function-name",
@@ -2598,9 +2598,9 @@ Prism.languages.sql = {
2598
2598
  "operator",
2599
2599
  "punctuation",
2600
2600
  "number"
2601
- ], R = p.variable[1].inside, k = 0; k < m.length; k++)
2602
- R[m[k]] = u.languages.bash[m[k]];
2603
- u.languages.sh = u.languages.bash, u.languages.shell = u.languages.bash;
2601
+ ], w = u.variable[1].inside, T = 0; T < m.length; T++)
2602
+ w[m[T]] = p.languages.bash[m[T]];
2603
+ p.languages.sh = p.languages.bash, p.languages.shell = p.languages.bash;
2604
2604
  })(Prism);
2605
2605
  Prism.languages.json = {
2606
2606
  property: {
@@ -2627,7 +2627,7 @@ Prism.languages.json = {
2627
2627
  }
2628
2628
  };
2629
2629
  Prism.languages.webmanifest = Prism.languages.json;
2630
- const Rt = `
2630
+ const Rr = `
2631
2631
  /* 默认代码颜色 */
2632
2632
  .hep-cr-editor .hep-cr-highlight code,
2633
2633
  .hep-cr-editor .hep-cr-highlight pre {
@@ -2711,7 +2711,7 @@ const Rt = `
2711
2711
  .hep-cr-editor .token.console {
2712
2712
  color: #f8f8f2 !important;
2713
2713
  }
2714
- `, _t = `
2714
+ `, _r = `
2715
2715
  /* 默认代码颜色 */
2716
2716
  .hep-cr-editor .hep-cr-highlight code,
2717
2717
  .hep-cr-editor .hep-cr-highlight pre {
@@ -2789,15 +2789,15 @@ const Rt = `
2789
2789
  color: #333 !important;
2790
2790
  }
2791
2791
  `;
2792
- window.Prism = Ne;
2793
- function Ft(u) {
2792
+ window.Prism = Be;
2793
+ function Fr(p) {
2794
2794
  if (typeof document > "u") return;
2795
- const d = "hep-cr-prism-styles", n = document.getElementById(d), p = u === "dark" ? Rt : _t;
2795
+ const h = "hep-cr-prism-styles", n = document.getElementById(h), u = p === "dark" ? Rr : _r;
2796
2796
  n && n.remove();
2797
2797
  const m = document.createElement("style");
2798
- m.id = d, m.textContent = p, document.head.appendChild(m);
2798
+ m.id = h, m.textContent = u, document.head.appendChild(m);
2799
2799
  }
2800
- const Ot = {
2800
+ const Ir = {
2801
2801
  javascript: "javascript",
2802
2802
  js: "javascript",
2803
2803
  typescript: "typescript",
@@ -2829,66 +2829,66 @@ const Ot = {
2829
2829
  markdown: "markdown",
2830
2830
  md: "markdown"
2831
2831
  };
2832
- function It(u) {
2833
- const d = document.createElement("div");
2834
- return d.textContent = u, d.innerHTML;
2832
+ function Or(p) {
2833
+ const h = document.createElement("div");
2834
+ return h.textContent = p, h.innerHTML;
2835
2835
  }
2836
- const Nt = ({
2837
- value: u,
2838
- language: d,
2836
+ const Nr = ({
2837
+ value: p,
2838
+ language: h,
2839
2839
  theme: n = "dark",
2840
- disabled: p = !1,
2840
+ disabled: u = !1,
2841
2841
  onChange: m
2842
2842
  }) => {
2843
- const R = Oe(null), k = Oe(null), l = Ee(() => Ot[d.toLowerCase()] || "javascript", [d]), b = n === "dark" ? "#1e1e1e" : "#fafafa", y = Ee(() => {
2843
+ const w = Ue(null), T = Ue(null), l = Te(() => Ir[h.toLowerCase()] || "javascript", [h]), b = n === "dark" ? "#1e1e1e" : "#fafafa", S = Te(() => {
2844
2844
  try {
2845
- const I = Ne.languages[l];
2846
- if (I)
2847
- return Ne.highlight(u || "", I, l);
2845
+ const P = Be.languages[l];
2846
+ if (P)
2847
+ return Be.highlight(p || "", P, l);
2848
2848
  } catch {
2849
2849
  }
2850
- return It(u || "");
2851
- }, [u, l]), _ = (I) => {
2852
- m == null || m(I.target.value);
2853
- }, O = () => {
2854
- R.current && k.current && (k.current.scrollTop = R.current.scrollTop, k.current.scrollLeft = R.current.scrollLeft);
2855
- }, D = (I) => {
2856
- if (I.key === "Tab") {
2857
- I.preventDefault();
2858
- const B = I.target, F = B.selectionStart, w = B.selectionEnd, T = u.substring(0, F) + " " + u.substring(w);
2859
- m == null || m(T), requestAnimationFrame(() => {
2860
- B.selectionStart = B.selectionEnd = F + 2;
2850
+ return Or(p || "");
2851
+ }, [p, l]), k = (P) => {
2852
+ m == null || m(P.target.value);
2853
+ }, _ = () => {
2854
+ w.current && T.current && (T.current.scrollTop = w.current.scrollTop, T.current.scrollLeft = w.current.scrollLeft);
2855
+ }, L = (P) => {
2856
+ if (P.key === "Tab") {
2857
+ P.preventDefault();
2858
+ const D = P.target, O = D.selectionStart, y = D.selectionEnd, I = p.substring(0, O) + " " + p.substring(y);
2859
+ m == null || m(I), requestAnimationFrame(() => {
2860
+ D.selectionStart = D.selectionEnd = O + 2;
2861
2861
  });
2862
2862
  }
2863
2863
  };
2864
- return ke(() => {
2865
- Ft(n);
2866
- }, [n]), /* @__PURE__ */ g.jsxs("div", { className: `hep-cr-editor theme-${n}`, style: { background: b }, children: [
2867
- /* @__PURE__ */ g.jsx(
2864
+ return Ie(() => {
2865
+ Fr(n);
2866
+ }, [n]), /* @__PURE__ */ c.jsxs("div", { className: `hep-cr-editor theme-${n}`, style: { background: b }, children: [
2867
+ /* @__PURE__ */ c.jsx(
2868
2868
  "pre",
2869
2869
  {
2870
- ref: k,
2870
+ ref: T,
2871
2871
  className: `hep-cr-highlight language-${l}`,
2872
2872
  "aria-hidden": "true",
2873
- children: /* @__PURE__ */ g.jsx("code", { dangerouslySetInnerHTML: { __html: y } })
2873
+ children: /* @__PURE__ */ c.jsx("code", { dangerouslySetInnerHTML: { __html: S } })
2874
2874
  }
2875
2875
  ),
2876
- /* @__PURE__ */ g.jsx(
2876
+ /* @__PURE__ */ c.jsx(
2877
2877
  "textarea",
2878
2878
  {
2879
- ref: R,
2879
+ ref: w,
2880
2880
  className: "hep-cr-input",
2881
- value: u,
2882
- disabled: p,
2883
- onChange: _,
2884
- onScroll: O,
2885
- onKeyDown: D,
2881
+ value: p,
2882
+ disabled: u,
2883
+ onChange: k,
2884
+ onScroll: _,
2885
+ onKeyDown: L,
2886
2886
  spellCheck: !1,
2887
2887
  placeholder: "Write your code here..."
2888
2888
  }
2889
2889
  )
2890
2890
  ] });
2891
- }, Ct = `
2891
+ }, Cr = `
2892
2892
  .hep-cr-editor {
2893
2893
  position: relative;
2894
2894
  flex: 1;
@@ -2947,21 +2947,21 @@ const Nt = ({
2947
2947
  }
2948
2948
  `;
2949
2949
  if (typeof document < "u") {
2950
- const u = "hep-cr-editor-styles";
2951
- if (!document.getElementById(u)) {
2952
- const d = document.createElement("style");
2953
- d.id = u, d.textContent = Ct, document.head.appendChild(d);
2950
+ const p = "hep-cr-editor-styles";
2951
+ if (!document.getElementById(p)) {
2952
+ const h = document.createElement("style");
2953
+ h.id = p, h.textContent = Cr, document.head.appendChild(h);
2954
2954
  }
2955
2955
  }
2956
- var Lt = Object.defineProperty, Pt = (u, d, n) => d in u ? Lt(u, d, { enumerable: !0, configurable: !0, writable: !0, value: n }) : u[d] = n, Ze = (u, d, n) => Pt(u, typeof d != "symbol" ? d + "" : d, n);
2957
- let _e = null;
2958
- class Dt {
2959
- constructor(d = {}) {
2960
- Ze(this, "baseUrl"), Ze(this, "timeout"), this.baseUrl = d.pistonUrl || "/api/piston", this.timeout = d.timeout || 3e3;
2956
+ var Lr = Object.defineProperty, Pr = (p, h, n) => h in p ? Lr(p, h, { enumerable: !0, configurable: !0, writable: !0, value: n }) : p[h] = n, rr = (p, h, n) => Pr(p, typeof h != "symbol" ? h + "" : h, n);
2957
+ let $e = null;
2958
+ class Dr {
2959
+ constructor(h = {}) {
2960
+ rr(this, "baseUrl"), rr(this, "timeout"), this.baseUrl = h.pistonUrl || "/api/piston", this.timeout = h.timeout || 3e3;
2961
2961
  }
2962
- async getRuntimes(d = !1) {
2963
- if (_e && !d)
2964
- return _e;
2962
+ async getRuntimes(h = !1) {
2963
+ if ($e && !h)
2964
+ return $e;
2965
2965
  try {
2966
2966
  const n = await fetch(`${this.baseUrl}/runtimes`, {
2967
2967
  method: "GET",
@@ -2971,33 +2971,33 @@ class Dt {
2971
2971
  });
2972
2972
  if (!n.ok)
2973
2973
  throw new Error(`Failed to fetch runtimes: ${n.statusText}`);
2974
- const p = await n.json();
2975
- return _e = p, p;
2974
+ const u = await n.json();
2975
+ return $e = u, u;
2976
2976
  } catch (n) {
2977
2977
  throw console.error("Failed to fetch runtimes:", n), n;
2978
2978
  }
2979
2979
  }
2980
- async execute(d, n, p = {}) {
2980
+ async execute(h, n, u = {}) {
2981
2981
  const m = (await this.getRuntimes()).find(
2982
2982
  (b) => {
2983
- var y;
2984
- return b.language.toLowerCase() === d.toLowerCase() || ((y = b.aliases) == null ? void 0 : y.some((_) => _.toLowerCase() === d.toLowerCase()));
2983
+ var S;
2984
+ return b.language.toLowerCase() === h.toLowerCase() || ((S = b.aliases) == null ? void 0 : S.some((k) => k.toLowerCase() === h.toLowerCase()));
2985
2985
  }
2986
2986
  );
2987
2987
  if (!m)
2988
- throw new Error(`Language '${d}' is not supported`);
2989
- const R = this.getFileName(d), k = {
2988
+ throw new Error(`Language '${h}' is not supported`);
2989
+ const w = this.getFileName(h), T = {
2990
2990
  language: m.language,
2991
- version: p.version || m.version,
2991
+ version: u.version || m.version,
2992
2992
  files: [
2993
2993
  {
2994
- name: R,
2994
+ name: w,
2995
2995
  content: n
2996
2996
  }
2997
2997
  ],
2998
- stdin: p.stdin || "",
2999
- args: p.args || [],
3000
- run_timeout: p.runTimeout || this.timeout,
2998
+ stdin: u.stdin || "",
2999
+ args: u.args || [],
3000
+ run_timeout: u.runTimeout || this.timeout,
3001
3001
  compile_timeout: this.timeout
3002
3002
  }, l = Date.now();
3003
3003
  try {
@@ -3006,21 +3006,21 @@ class Dt {
3006
3006
  headers: {
3007
3007
  "Content-Type": "application/json"
3008
3008
  },
3009
- body: JSON.stringify(k)
3009
+ body: JSON.stringify(T)
3010
3010
  });
3011
3011
  if (!b.ok)
3012
3012
  throw new Error(`Execute failed: ${b.statusText}`);
3013
- const y = await b.json(), _ = Date.now() - l, O = y.run.stdout || "", D = y.run.stderr || "";
3013
+ const S = await b.json(), k = Date.now() - l, _ = S.run.stdout || "", L = S.run.stderr || "";
3014
3014
  return {
3015
- success: y.run.code === 0,
3016
- output: O,
3017
- stderr: D,
3018
- code: y.run.code,
3019
- executionTime: _,
3020
- compile: y.compile ? {
3021
- stdout: y.compile.stdout || "",
3022
- stderr: y.compile.stderr || "",
3023
- code: y.compile.code
3015
+ success: S.run.code === 0,
3016
+ output: _,
3017
+ stderr: L,
3018
+ code: S.run.code,
3019
+ executionTime: k,
3020
+ compile: S.compile ? {
3021
+ stdout: S.compile.stdout || "",
3022
+ stderr: S.compile.stderr || "",
3023
+ code: S.compile.code
3024
3024
  } : void 0
3025
3025
  };
3026
3026
  } catch (b) {
@@ -3033,7 +3033,7 @@ class Dt {
3033
3033
  };
3034
3034
  }
3035
3035
  }
3036
- getFileName(d) {
3036
+ getFileName(h) {
3037
3037
  return {
3038
3038
  javascript: "main.js",
3039
3039
  typescript: "main.ts",
@@ -3060,10 +3060,10 @@ class Dt {
3060
3060
  css: "style.css",
3061
3061
  sql: "query.sql",
3062
3062
  markdown: "readme.md"
3063
- }[d.toLowerCase()] || `main.${d}`;
3063
+ }[h.toLowerCase()] || `main.${h}`;
3064
3064
  }
3065
3065
  }
3066
- const jt = {
3066
+ const jr = {
3067
3067
  javascript: 'console.log("Hello, World!");',
3068
3068
  typescript: 'console.log("Hello, World!");',
3069
3069
  python: 'print("Hello, World!")',
@@ -3161,215 +3161,268 @@ h1 {
3161
3161
 
3162
3162
  This is a sample markdown document.`
3163
3163
  };
3164
- function Fe(u) {
3165
- const d = u.toLowerCase();
3166
- return jt[d] || `// ${u}
3164
+ function Me(p) {
3165
+ const h = p.toLowerCase();
3166
+ return jr[h] || `// ${p}
3167
3167
  // Write your code here`;
3168
3168
  }
3169
- const $t = ({
3170
- pistonUrl: u = "/api/piston",
3171
- language: d = "javascript",
3169
+ const $r = ({
3170
+ pistonUrl: p = "/api/piston",
3171
+ language: h = "javascript",
3172
3172
  theme: n = "light",
3173
- showLanguageSelector: p = !0,
3174
- showEditor: m = !0,
3175
- editable: R = !0,
3176
- defaultCode: k = "",
3177
- executorLabel: l = "运行",
3178
- onExecuteStart: b,
3179
- onExecuteEnd: y,
3173
+ themeColor: u = "",
3174
+ showLanguageSelector: m = !0,
3175
+ showEditor: w = !0,
3176
+ editable: T = !0,
3177
+ defaultCode: l = "",
3178
+ executorLabel: b = "运行",
3179
+ onExecuteStart: S,
3180
+ onExecuteEnd: k,
3180
3181
  onLanguageChange: _
3181
3182
  }) => {
3182
- const [O, D] = Z([]), [I, B] = Z(d), [F, w] = Z(n), [T, t] = Z(k), [r, i] = Z(""), [o, s] = Z(""), [f, E] = Z(!1), [h, C] = Z(null), [P, z] = Z("stdout"), [V, W] = Z(null), [ne, ue] = Z(!0), [ce, j] = Z(60), H = Ee(() => new Dt({ pistonUrl: u }), [u]), ee = Ee(() => O.map((S) => ({
3183
- value: `${S.language}:${S.version}`,
3184
- label: `${S.language.charAt(0).toUpperCase() + S.language.slice(1)} ${S.version}`
3185
- })), [O]), X = Ee(() => I.includes(":") ? I.split(":")[0] : I, [I]);
3186
- ke(() => {
3187
- async function S() {
3188
- ue(!0), W(null);
3183
+ const [L, P] = K([]), [D, O] = K(h), [y, I] = K(n), [r, t] = K(l), [i, o] = K(""), [s, g] = K(""), [E, f] = K(!1), [N, j] = K(null), [z, W] = K("stdout"), [J, Q] = K(null), [ge, ce] = K(!0), [$, G] = K(60), [Z, te] = K(!1), [B, me] = K(!1), Y = Te(() => new Dr({ pistonUrl: p }), [p]), se = Te(() => L.map((R) => ({
3184
+ value: `${R.language}:${R.version}`,
3185
+ label: `${R.language.charAt(0).toUpperCase() + R.language.slice(1)} ${R.version}`
3186
+ })), [L]), ne = Te(() => {
3187
+ if (!u) return {};
3188
+ const R = n === "dark", M = (ve, Ee) => {
3189
+ const ye = parseInt(ve.replace("#", ""), 16), fe = Math.round(2.55 * Ee), we = Math.min(255, Math.max(0, (ye >> 16) + fe)), Re = Math.min(255, Math.max(0, (ye >> 8 & 255) + fe)), Ce = Math.min(255, Math.max(0, (ye & 255) + fe));
3190
+ return "#" + (16777216 + we * 65536 + Re * 256 + Ce).toString(16).slice(1);
3191
+ }, Ne = ((ve) => {
3192
+ const Ee = parseInt(ve.replace("#", ""), 16), ye = Ee >> 16 & 255, fe = Ee >> 8 & 255, we = Ee & 255;
3193
+ return (0.299 * ye + 0.587 * fe + 0.114 * we) / 255 > 0.5;
3194
+ })(u) ? "#000" : "#fff";
3195
+ return {
3196
+ "--hep-cr-theme-color": u,
3197
+ "--hep-cr-theme-color-hover": R ? M(u, 20) : M(u, -20),
3198
+ "--hep-cr-tab-active-color": Ne
3199
+ };
3200
+ }, [u, n]), V = Te(() => D.includes(":") ? D.split(":")[0] : D, [D]);
3201
+ Ie(() => {
3202
+ async function R() {
3203
+ ce(!0), Q(null);
3189
3204
  try {
3190
- const M = await H.getRuntimes();
3191
- D(M);
3205
+ const M = await Y.getRuntimes();
3206
+ P(M);
3192
3207
  } catch (M) {
3193
- W(M instanceof Error ? M.message : "Failed to load runtimes");
3208
+ Q(M instanceof Error ? M.message : "Failed to load runtimes");
3194
3209
  } finally {
3195
- ue(!1);
3210
+ ce(!1);
3196
3211
  }
3197
3212
  }
3198
- S();
3199
- }, [H]), ke(() => {
3200
- !T && O.length > 0 && t(k || Fe(X));
3201
- }, [O, T, k, X]);
3202
- const G = le(
3203
- (S) => {
3204
- const M = S.target.value, re = M.includes(":") ? M.split(":")[0] : M;
3205
- B(M);
3206
- const fe = Fe(re);
3207
- t(fe), _ == null || _(re, fe);
3213
+ R();
3214
+ }, [Y]), Ie(() => {
3215
+ !r && L.length > 0 && t(l || Me(V));
3216
+ }, [L, r, l, V]);
3217
+ const ae = oe(
3218
+ (R) => {
3219
+ const M = R.target.value, re = M.includes(":") ? M.split(":")[0] : M;
3220
+ O(M);
3221
+ const be = Me(re);
3222
+ t(be), _ == null || _(re, be);
3208
3223
  },
3209
3224
  [_]
3210
- ), pe = le(async () => {
3211
- if (!f) {
3212
- E(!0), i(""), s(""), C(null), W(null), z("stdout"), b == null || b();
3225
+ ), ue = oe(async () => {
3226
+ if (!E) {
3227
+ f(!0), o(""), g(""), j(null), Q(null), W("stdout"), S == null || S();
3213
3228
  try {
3214
- const S = await H.execute(X, T);
3215
- i(S.output), s(S.stderr), C(S.executionTime || null), z(S.stderr ? "stderr" : "stdout"), y == null || y(S);
3216
- } catch (S) {
3217
- const M = S instanceof Error ? S.message : "Execution failed";
3218
- W(M), y == null || y({
3229
+ const R = await Y.execute(V, r);
3230
+ o(R.output), g(R.stderr), j(R.executionTime || null), W(R.stderr ? "stderr" : "stdout"), k == null || k(R);
3231
+ } catch (R) {
3232
+ const M = R instanceof Error ? R.message : "Execution failed";
3233
+ Q(M), k == null || k({
3219
3234
  success: !1,
3220
3235
  output: "",
3221
3236
  stderr: M,
3222
3237
  code: -1
3223
3238
  });
3224
3239
  } finally {
3225
- E(!1);
3240
+ f(!1);
3226
3241
  }
3227
3242
  }
3228
- }, [f, I, T, H, b, y]), q = le(() => {
3229
- i(""), s(""), C(null), W(null);
3230
- }, []), se = le(async () => {
3231
- const S = P === "stdout" ? r : o;
3232
- await navigator.clipboard.writeText(S);
3233
- }, [P, r, o]), ae = le(() => {
3234
- t(Fe(X));
3235
- }, [I]), J = Oe(!1), ie = le((S) => {
3236
- J.current = !0, document.addEventListener("mousemove", oe), document.addEventListener("mouseup", te), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
3237
- }, []), oe = le((S) => {
3238
- if (!J.current) return;
3243
+ }, [E, D, r, Y, S, k]);
3244
+ oe(() => {
3245
+ o(""), g(""), j(null), Q(null);
3246
+ }, []);
3247
+ const ie = oe(async () => {
3248
+ await navigator.clipboard.writeText(r), te(!0), setTimeout(() => {
3249
+ te(!1);
3250
+ }, 2e3);
3251
+ }, [r]), de = oe(async () => {
3252
+ const R = z === "stdout" ? i : s;
3253
+ await navigator.clipboard.writeText(R), me(!0), setTimeout(() => {
3254
+ me(!1);
3255
+ }, 2e3);
3256
+ }, [z, i, s]), ke = oe(() => {
3257
+ t(Me(V));
3258
+ }, [D]), le = Ue(!1), Oe = oe((R) => {
3259
+ le.current = !0, document.addEventListener("mousemove", pe), document.addEventListener("mouseup", he), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
3260
+ }, []), pe = oe((R) => {
3261
+ if (!le.current) return;
3239
3262
  const M = document.querySelector(".hep-cr-main");
3240
3263
  if (!M) return;
3241
- const re = M.getBoundingClientRect(), fe = (S.clientX - re.left) / re.width * 100;
3242
- j(Math.max(20, Math.min(80, fe)));
3243
- }, []), te = le(() => {
3244
- J.current = !1, document.removeEventListener("mousemove", oe), document.removeEventListener("mouseup", te), document.body.style.cursor = "", document.body.style.userSelect = "";
3245
- }, [oe]);
3246
- return /* @__PURE__ */ g.jsxs("div", { className: `hep-cr-runner hep-cr-runner-${F}`, children: [
3247
- /* @__PURE__ */ g.jsxs("div", { className: "hep-cr-header", children: [
3248
- /* @__PURE__ */ g.jsx("div", { className: "hep-cr-controls", children: p && /* @__PURE__ */ g.jsxs(
3264
+ const re = M.getBoundingClientRect(), be = (R.clientX - re.left) / re.width * 100;
3265
+ G(Math.max(20, Math.min(80, be)));
3266
+ }, []), he = oe(() => {
3267
+ le.current = !1, document.removeEventListener("mousemove", pe), document.removeEventListener("mouseup", he), document.body.style.cursor = "", document.body.style.userSelect = "";
3268
+ }, [pe]);
3269
+ return /* @__PURE__ */ c.jsxs("div", { className: `hep-cr-runner hep-cr-runner-${y}`, style: ne, children: [
3270
+ /* @__PURE__ */ c.jsxs("div", { className: "hep-cr-header", children: [
3271
+ /* @__PURE__ */ c.jsx("div", { className: "hep-cr-controls", children: m && /* @__PURE__ */ c.jsxs(
3249
3272
  "select",
3250
3273
  {
3251
- value: I,
3252
- onChange: G,
3274
+ value: D,
3275
+ onChange: ae,
3253
3276
  className: "hep-cr-language-select",
3254
- disabled: f,
3277
+ disabled: E,
3255
3278
  children: [
3256
- ne && /* @__PURE__ */ g.jsx("option", { value: "", children: "加载中..." }),
3257
- ee.map((S) => /* @__PURE__ */ g.jsx("option", { value: S.value, children: S.label }, S.value))
3279
+ ge && /* @__PURE__ */ c.jsx("option", { value: "", children: "加载中..." }),
3280
+ se.map((R) => /* @__PURE__ */ c.jsx("option", { value: R.value, children: R.label }, R.value))
3258
3281
  ]
3259
3282
  }
3260
3283
  ) }),
3261
- /* @__PURE__ */ g.jsxs("div", { className: "hep-cr-actions", children: [
3262
- /* @__PURE__ */ g.jsxs(
3284
+ /* @__PURE__ */ c.jsxs("div", { className: "hep-cr-actions", children: [
3285
+ /* @__PURE__ */ c.jsxs(
3263
3286
  "button",
3264
3287
  {
3265
3288
  className: "hep-cr-btn hep-cr-btn-run",
3266
- disabled: f || ne,
3267
- onClick: pe,
3289
+ disabled: E || ge,
3290
+ onClick: ue,
3268
3291
  children: [
3269
- f ? /* @__PURE__ */ g.jsx("span", { className: "hep-cr-spinner" }) : /* @__PURE__ */ g.jsx("span", { className: "hep-cr-run-icon", children: "▶" }),
3270
- f ? "运行中..." : l
3292
+ E ? /* @__PURE__ */ c.jsx("span", { className: "hep-cr-spinner" }) : /* @__PURE__ */ c.jsx("span", { className: "hep-cr-run-icon", children: "▶" }),
3293
+ E ? "运行中..." : b
3271
3294
  ]
3272
3295
  }
3273
3296
  ),
3274
- m && R && /* @__PURE__ */ g.jsx("button", { className: "hep-cr-btn hep-cr-btn-reset", onClick: ae, children: "重置" }),
3275
- /* @__PURE__ */ g.jsx(
3297
+ w && T && /* @__PURE__ */ c.jsx("button", { className: "hep-cr-btn hep-cr-btn-reset", onClick: ke, children: "重置" }),
3298
+ /* @__PURE__ */ c.jsx(
3276
3299
  "button",
3277
3300
  {
3278
3301
  className: "hep-cr-btn hep-cr-btn-theme",
3279
- onClick: () => w(F === "light" ? "dark" : "light"),
3280
- title: F === "light" ? "Switch to dark mode" : "Switch to light mode",
3281
- children: F === "light" ? "🌙" : "☀️"
3302
+ onClick: () => I(y === "light" ? "dark" : "light"),
3303
+ title: y === "light" ? "Switch to dark mode" : "Switch to light mode",
3304
+ children: y === "light" ? /* @__PURE__ */ c.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ c.jsx("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) }) : /* @__PURE__ */ c.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
3305
+ /* @__PURE__ */ c.jsx("circle", { cx: "12", cy: "12", r: "5" }),
3306
+ /* @__PURE__ */ c.jsx("line", { x1: "12", y1: "1", x2: "12", y2: "3" }),
3307
+ /* @__PURE__ */ c.jsx("line", { x1: "12", y1: "21", x2: "12", y2: "23" }),
3308
+ /* @__PURE__ */ c.jsx("line", { x1: "4.22", y1: "4.22", x2: "5.64", y2: "5.64" }),
3309
+ /* @__PURE__ */ c.jsx("line", { x1: "18.36", y1: "18.36", x2: "19.78", y2: "19.78" }),
3310
+ /* @__PURE__ */ c.jsx("line", { x1: "1", y1: "12", x2: "3", y2: "12" }),
3311
+ /* @__PURE__ */ c.jsx("line", { x1: "21", y1: "12", x2: "23", y2: "12" }),
3312
+ /* @__PURE__ */ c.jsx("line", { x1: "4.22", y1: "19.78", x2: "5.64", y2: "18.36" }),
3313
+ /* @__PURE__ */ c.jsx("line", { x1: "18.36", y1: "5.64", x2: "19.78", y2: "4.22" })
3314
+ ] })
3282
3315
  }
3283
3316
  )
3284
3317
  ] })
3285
3318
  ] }),
3286
- V && /* @__PURE__ */ g.jsx("div", { className: "hep-cr-error-message", children: V }),
3287
- /* @__PURE__ */ g.jsxs("div", { className: "hep-cr-main", children: [
3288
- m && /* @__PURE__ */ g.jsxs("div", { className: "hep-cr-editor-panel", style: { width: `${ce}%` }, children: [
3289
- /* @__PURE__ */ g.jsxs("div", { className: "hep-cr-panel-header", children: [
3290
- /* @__PURE__ */ g.jsx("span", { className: "hep-cr-panel-title", children: "编辑器" }),
3291
- /* @__PURE__ */ g.jsx("span", { className: "hep-cr-language-badge", children: X })
3319
+ J && /* @__PURE__ */ c.jsx("div", { className: "hep-cr-error-message", children: J }),
3320
+ /* @__PURE__ */ c.jsxs("div", { className: "hep-cr-main", children: [
3321
+ w && /* @__PURE__ */ c.jsxs("div", { className: "hep-cr-editor-panel", style: { width: `${$}%` }, children: [
3322
+ /* @__PURE__ */ c.jsxs("div", { className: "hep-cr-panel-header", children: [
3323
+ /* @__PURE__ */ c.jsx("span", { className: "hep-cr-panel-title", children: "编辑器" }),
3324
+ /* @__PURE__ */ c.jsxs("div", { className: "hep-cr-output-actions", children: [
3325
+ /* @__PURE__ */ c.jsx("span", { className: "hep-cr-language-badge", children: V }),
3326
+ /* @__PURE__ */ c.jsx(
3327
+ "button",
3328
+ {
3329
+ className: `hep-cr-btn-icon ${Z ? "hep-cr-btn-copied" : ""}`,
3330
+ disabled: Z,
3331
+ onClick: ie,
3332
+ title: Z ? "已复制" : "复制",
3333
+ children: Z ? /* @__PURE__ */ c.jsx("span", { className: "hep-cr-copied-text", children: "已复制" }) : /* @__PURE__ */ c.jsxs(
3334
+ "svg",
3335
+ {
3336
+ width: "14",
3337
+ height: "14",
3338
+ viewBox: "0 0 24 24",
3339
+ fill: "none",
3340
+ stroke: "currentColor",
3341
+ strokeWidth: "2",
3342
+ children: [
3343
+ /* @__PURE__ */ c.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
3344
+ /* @__PURE__ */ c.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
3345
+ ]
3346
+ }
3347
+ )
3348
+ }
3349
+ )
3350
+ ] })
3292
3351
  ] }),
3293
- /* @__PURE__ */ g.jsx(
3294
- Nt,
3352
+ /* @__PURE__ */ c.jsx(
3353
+ Nr,
3295
3354
  {
3296
- value: T,
3297
- language: X,
3298
- theme: F,
3299
- disabled: !R || f,
3355
+ value: r,
3356
+ language: V,
3357
+ theme: y,
3358
+ disabled: !T || E,
3300
3359
  onChange: t
3301
3360
  }
3302
3361
  )
3303
3362
  ] }),
3304
- m && /* @__PURE__ */ g.jsx("div", { className: "hep-cr-resize-handle", onMouseDown: ie, children: /* @__PURE__ */ g.jsx("div", { className: "hep-cr-resize-line" }) }),
3305
- /* @__PURE__ */ g.jsxs(
3363
+ w && /* @__PURE__ */ c.jsx("div", { className: "hep-cr-resize-handle", onMouseDown: Oe, children: /* @__PURE__ */ c.jsx("div", { className: "hep-cr-resize-line" }) }),
3364
+ /* @__PURE__ */ c.jsxs(
3306
3365
  "div",
3307
3366
  {
3308
3367
  className: "hep-cr-output-panel",
3309
- style: { width: m ? `${100 - ce}%` : "100%" },
3368
+ style: { width: w ? `${100 - $}%` : "100%" },
3310
3369
  children: [
3311
- /* @__PURE__ */ g.jsxs("div", { className: "hep-cr-panel-header", children: [
3312
- /* @__PURE__ */ g.jsxs("div", { className: "hep-cr-output-tabs", children: [
3313
- /* @__PURE__ */ g.jsx(
3370
+ /* @__PURE__ */ c.jsxs("div", { className: "hep-cr-panel-header", children: [
3371
+ /* @__PURE__ */ c.jsxs("div", { className: "hep-cr-output-tabs", children: [
3372
+ /* @__PURE__ */ c.jsx(
3314
3373
  "button",
3315
3374
  {
3316
- className: `hep-cr-tab ${P === "stdout" ? "active" : ""}`,
3317
- onClick: () => z("stdout"),
3375
+ className: `hep-cr-tab ${z === "stdout" ? "active" : ""}`,
3376
+ onClick: () => W("stdout"),
3318
3377
  children: "输出"
3319
3378
  }
3320
3379
  ),
3321
- o && /* @__PURE__ */ g.jsx(
3380
+ s && /* @__PURE__ */ c.jsx(
3322
3381
  "button",
3323
3382
  {
3324
- className: `hep-cr-tab ${P === "stderr" ? "active" : ""}`,
3325
- onClick: () => z("stderr"),
3383
+ className: `hep-cr-tab hep-cr-tab-error ${z === "stderr" ? "active" : ""}`,
3384
+ onClick: () => W("stderr"),
3326
3385
  children: "错误"
3327
3386
  }
3328
3387
  )
3329
3388
  ] }),
3330
- /* @__PURE__ */ g.jsxs("div", { className: "hep-cr-output-actions", children: [
3331
- h !== null && /* @__PURE__ */ g.jsxs("span", { className: "hep-cr-execution-time", children: [
3332
- h,
3389
+ /* @__PURE__ */ c.jsxs("div", { className: "hep-cr-output-actions", children: [
3390
+ N !== null && /* @__PURE__ */ c.jsxs("span", { className: "hep-cr-execution-time", children: [
3391
+ N,
3333
3392
  "ms"
3334
3393
  ] }),
3335
- /* @__PURE__ */ g.jsx("button", { className: "hep-cr-btn-icon", onClick: se, title: "复制", children: /* @__PURE__ */ g.jsxs(
3336
- "svg",
3337
- {
3338
- width: "14",
3339
- height: "14",
3340
- viewBox: "0 0 24 24",
3341
- fill: "none",
3342
- stroke: "currentColor",
3343
- strokeWidth: "2",
3344
- children: [
3345
- /* @__PURE__ */ g.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
3346
- /* @__PURE__ */ g.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
3347
- ]
3348
- }
3349
- ) }),
3350
- /* @__PURE__ */ g.jsx("button", { className: "hep-cr-btn-icon", onClick: q, title: "清除", children: /* @__PURE__ */ g.jsxs(
3351
- "svg",
3394
+ /* @__PURE__ */ c.jsx(
3395
+ "button",
3352
3396
  {
3353
- width: "14",
3354
- height: "14",
3355
- viewBox: "0 0 24 24",
3356
- fill: "none",
3357
- stroke: "currentColor",
3358
- strokeWidth: "2",
3359
- children: [
3360
- /* @__PURE__ */ g.jsx("polyline", { points: "3 6 5 6 21 6" }),
3361
- /* @__PURE__ */ g.jsx("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
3362
- ]
3397
+ className: `hep-cr-btn-icon ${B ? "hep-cr-btn-copied" : ""}`,
3398
+ disabled: B,
3399
+ onClick: de,
3400
+ title: B ? "已复制" : "复制",
3401
+ children: B ? /* @__PURE__ */ c.jsx("span", { className: "hep-cr-copied-text", children: "已复制" }) : /* @__PURE__ */ c.jsxs(
3402
+ "svg",
3403
+ {
3404
+ width: "14",
3405
+ height: "14",
3406
+ viewBox: "0 0 24 24",
3407
+ fill: "none",
3408
+ stroke: "currentColor",
3409
+ strokeWidth: "2",
3410
+ children: [
3411
+ /* @__PURE__ */ c.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
3412
+ /* @__PURE__ */ c.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
3413
+ ]
3414
+ }
3415
+ )
3363
3416
  }
3364
- ) })
3417
+ )
3365
3418
  ] })
3366
3419
  ] }),
3367
- /* @__PURE__ */ g.jsx("div", { className: "hep-cr-output-content", children: /* @__PURE__ */ g.jsx("pre", { children: P === "stdout" ? r || '点击"运行"执行代码' : o }) })
3420
+ /* @__PURE__ */ c.jsx("div", { className: "hep-cr-output-content", children: /* @__PURE__ */ c.jsx("pre", { children: z === "stdout" ? E ? "代码执行中..." : i || '点击"运行"执行代码' : s }) })
3368
3421
  ]
3369
3422
  }
3370
3423
  )
3371
3424
  ] }),
3372
- /* @__PURE__ */ g.jsx("style", { children: `
3425
+ /* @__PURE__ */ c.jsx("style", { children: `
3373
3426
  .hep-cr-runner {
3374
3427
  display: flex;
3375
3428
  flex-direction: column;
@@ -3417,15 +3470,18 @@ const $t = ({
3417
3470
  }
3418
3471
  .hep-cr-btn:disabled { opacity: 0.5; cursor: not-allowed; }
3419
3472
  .hep-cr-btn-run {
3420
- background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
3421
- color: white;
3473
+ background: var(--hep-cr-theme-color, #4caf50);
3474
+ color: var(--hep-cr-tab-active-color, #fff);
3475
+ font-weight: 600;
3422
3476
  }
3423
- .hep-cr-btn-run:hover:not(:disabled) { background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%); }
3477
+ .hep-cr-btn-run:hover:not(:disabled) { background: var(--hep-cr-theme-color-hover, #43a047); }
3424
3478
  .hep-cr-btn-reset { background: #3d3d3d; color: #aaa; }
3425
3479
  .hep-cr-runner-light .hep-cr-btn-reset { background: #e0e0e0; color: #666; }
3426
- .hep-cr-btn-theme { background: #3d3d3d; color: #aaa; padding: 5px 10px; font-size: 14px; line-height: 1; height: auto; min-height: 28px; }
3427
- .hep-cr-runner-light .hep-cr-btn-theme { background: #e0e0e0; }
3428
- .hep-cr-btn-theme:hover { background: #4d4d4d; color: #fff; }
3480
+ .hep-cr-btn-theme { background: transparent; color: #fdd835; padding: 6px 10px; font-size: 14px; line-height: 1; height: auto; min-height: 28px; display: flex; align-items: center; justify-content: center; }
3481
+ .hep-cr-btn-theme svg { display: block; width: 18px; height: 18px; }
3482
+ .hep-cr-runner-light .hep-cr-btn-theme { color: #f57c00; }
3483
+ .hep-cr-btn-theme:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
3484
+ .hep-cr-runner-light .hep-cr-btn-theme:hover { background: rgba(0, 0, 0, 0.05); }
3429
3485
  .hep-cr-error-message {
3430
3486
  padding: 10px 16px;
3431
3487
  background: #c62828;
@@ -3458,10 +3514,10 @@ const $t = ({
3458
3514
  .hep-cr-language-badge {
3459
3515
  font-size: 11px;
3460
3516
  padding: 2px 8px;
3461
- background: #4fc3f7;
3462
- color: #000;
3517
+ background: var(--hep-cr-theme-color, #4fc3f7);
3518
+ color: var(--hep-cr-tab-active-color, #000);
3463
3519
  border-radius: 10px;
3464
- font-weight: 500;
3520
+ font-weight: 600;
3465
3521
  }
3466
3522
  .hep-cr-editor {
3467
3523
  flex: 1;
@@ -3511,16 +3567,22 @@ const $t = ({
3511
3567
  caret-color: #333333;
3512
3568
  }
3513
3569
  .hep-cr-resize-handle {
3514
- width: 6px;
3515
- background: #252526;
3570
+ width: 8px;
3571
+ background: #2d2d2d;
3516
3572
  cursor: col-resize;
3517
3573
  display: flex;
3518
3574
  align-items: center;
3519
3575
  justify-content: center;
3576
+ border-left: 1px solid #3d3d3d;
3577
+ border-right: 1px solid #3d3d3d;
3520
3578
  }
3521
- .hep-cr-resize-handle:hover { background: #4fc3f7; }
3522
- .hep-cr-resize-line { width: 2px; height: 40px; background: #444; border-radius: 1px; }
3579
+ .hep-cr-resize-handle:hover { background: var(--hep-cr-theme-color, #4fc3f7); }
3580
+ .hep-cr-resize-line { width: 3px; height: 40px; background: #555; border-radius: 2px; transition: background 0.2s; }
3523
3581
  .hep-cr-resize-handle:hover .hep-cr-resize-line { background: #fff; }
3582
+ .hep-cr-runner-light .hep-cr-resize-handle { background: #e0e0e0; border-color: #ccc; }
3583
+ .hep-cr-runner-light .hep-cr-resize-line { background: #bbb; }
3584
+ .hep-cr-runner-light .hep-cr-resize-handle:hover { background: var(--hep-cr-theme-color, #4fc3f7); }
3585
+ .hep-cr-runner-light .hep-cr-resize-handle:hover .hep-cr-resize-line { background: #fff; }
3524
3586
  .hep-cr-output-panel {
3525
3587
  display: flex;
3526
3588
  flex-direction: column;
@@ -3541,9 +3603,10 @@ const $t = ({
3541
3603
  }
3542
3604
  .hep-cr-tab:hover { color: #d4d4d4; background: #3d3d3d; }
3543
3605
  .hep-cr-runner-light .hep-cr-tab:hover { color: #333; background: #e0e0e0; }
3544
- .hep-cr-tab.active { background: #4fc3f7; color: #000; font-weight: 500; }
3606
+ .hep-cr-tab.active { background: var(--hep-cr-theme-color, #4fc3f7); color: var(--hep-cr-tab-active-color, #000); font-weight: 600; }
3607
+ .hep-cr-tab-error.active { background: #f44336; color: #fff; }
3545
3608
  .hep-cr-output-actions { display: flex; align-items: center; gap: 12px; }
3546
- .hep-cr-execution-time { font-size: 12px; color: #4caf50; font-weight: 500; }
3609
+ .hep-cr-execution-time { font-size: 12px; color: var(--hep-cr-theme-color, #4caf50); font-weight: 500; }
3547
3610
  .hep-cr-btn-icon {
3548
3611
  background: transparent;
3549
3612
  border: none;
@@ -3558,6 +3621,9 @@ const $t = ({
3558
3621
  }
3559
3622
  .hep-cr-btn-icon:hover { color: #fff; background: #3d3d3d; }
3560
3623
  .hep-cr-runner-light .hep-cr-btn-icon:hover { color: #333; background: #e0e0e0; }
3624
+ .hep-cr-btn-icon:disabled { cursor: not-allowed; opacity: 0.7; }
3625
+ .hep-cr-btn-copied { color: #4caf50 !important; }
3626
+ .hep-cr-copied-text { font-size: 12px; color: #4caf50; }
3561
3627
  .hep-cr-output-content {
3562
3628
  flex: 1;
3563
3629
  padding: 12px 16px;
@@ -3586,35 +3652,35 @@ const $t = ({
3586
3652
  @keyframes spin { to { transform: rotate(360deg); } }
3587
3653
  ` })
3588
3654
  ] });
3589
- }, Mt = xt(
3655
+ }, Mr = xr(
3590
3656
  ({
3591
- open: u,
3592
- defaultOpen: d = !1,
3657
+ open: p,
3658
+ defaultOpen: h = !1,
3593
3659
  title: n = "代码执行器",
3594
- width: p = 800,
3660
+ width: u = 800,
3595
3661
  onClose: m,
3596
- footer: R,
3597
- theme: k = "light",
3662
+ footer: w,
3663
+ theme: T = "light",
3598
3664
  ...l
3599
3665
  }, b) => {
3600
- const [y, _] = Z(d), O = u !== void 0, D = O ? u : y;
3601
- ke(() => {
3602
- O && u !== y && _(u);
3603
- }, [u, O]);
3604
- const I = le(() => {
3605
- O || _(!1), m == null || m();
3606
- }, [O, m]), B = (w) => {
3607
- w.target === w.currentTarget && I();
3666
+ const [S, k] = K(h), _ = p !== void 0, L = _ ? p : S;
3667
+ Ie(() => {
3668
+ _ && p !== S && k(p);
3669
+ }, [p, _]);
3670
+ const P = oe(() => {
3671
+ _ || k(!1), m == null || m();
3672
+ }, [_, m]), D = (y) => {
3673
+ y.target === y.currentTarget && P();
3608
3674
  };
3609
- kt(b, () => ({
3610
- close: I
3675
+ kr(b, () => ({
3676
+ close: P
3611
3677
  }));
3612
- const F = typeof p == "number" ? `${p}px` : p;
3613
- return D ? /* @__PURE__ */ g.jsxs("div", { className: "hep-cr-dialog-overlay", onClick: B, children: [
3614
- /* @__PURE__ */ g.jsxs("div", { className: "hep-cr-dialog-container", style: { width: F }, children: [
3615
- /* @__PURE__ */ g.jsxs("div", { className: "hep-cr-dialog-header", children: [
3616
- /* @__PURE__ */ g.jsx("h3", { className: "hep-cr-dialog-title", children: n }),
3617
- /* @__PURE__ */ g.jsx("button", { className: "hep-cr-dialog-close", onClick: I, children: /* @__PURE__ */ g.jsxs(
3678
+ const O = typeof u == "number" ? `${u}px` : u;
3679
+ return L ? /* @__PURE__ */ c.jsxs("div", { className: "hep-cr-dialog-overlay", onClick: D, children: [
3680
+ /* @__PURE__ */ c.jsxs("div", { className: "hep-cr-dialog-container", style: { width: O }, children: [
3681
+ /* @__PURE__ */ c.jsxs("div", { className: "hep-cr-dialog-header", children: [
3682
+ /* @__PURE__ */ c.jsx("h3", { className: "hep-cr-dialog-title", children: n }),
3683
+ /* @__PURE__ */ c.jsx("button", { className: "hep-cr-dialog-close", onClick: P, children: /* @__PURE__ */ c.jsxs(
3618
3684
  "svg",
3619
3685
  {
3620
3686
  width: "16",
@@ -3624,16 +3690,16 @@ const $t = ({
3624
3690
  stroke: "currentColor",
3625
3691
  strokeWidth: "2",
3626
3692
  children: [
3627
- /* @__PURE__ */ g.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
3628
- /* @__PURE__ */ g.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
3693
+ /* @__PURE__ */ c.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
3694
+ /* @__PURE__ */ c.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
3629
3695
  ]
3630
3696
  }
3631
3697
  ) })
3632
3698
  ] }),
3633
- /* @__PURE__ */ g.jsx("div", { className: "hep-cr-dialog-body", children: /* @__PURE__ */ g.jsx($t, { theme: k, ...l }) }),
3634
- R && /* @__PURE__ */ g.jsx("div", { className: "hep-cr-dialog-footer", children: R })
3699
+ /* @__PURE__ */ c.jsx("div", { className: "hep-cr-dialog-body", children: /* @__PURE__ */ c.jsx($r, { theme: T, ...l }) }),
3700
+ w && /* @__PURE__ */ c.jsx("div", { className: "hep-cr-dialog-footer", children: w })
3635
3701
  ] }),
3636
- /* @__PURE__ */ g.jsx("style", { children: `
3702
+ /* @__PURE__ */ c.jsx("style", { children: `
3637
3703
  .hep-cr-dialog-overlay {
3638
3704
  position: fixed;
3639
3705
  top: 0;
@@ -3725,9 +3791,9 @@ const $t = ({
3725
3791
  ] }) : null;
3726
3792
  }
3727
3793
  );
3728
- Mt.displayName = "CodeRunnerDialog";
3794
+ Mr.displayName = "CodeRunnerDialog";
3729
3795
  export {
3730
- $t as CodeRunner,
3731
- Mt as CodeRunnerDialog,
3732
- $t as default
3796
+ $r as CodeRunner,
3797
+ Mr as CodeRunnerDialog,
3798
+ $r as default
3733
3799
  };