@hep-code-runner/react 3.2.3 → 3.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,73 +1,73 @@
1
- import ze, { useRef as Fe, useMemo as Se, useCallback as pe, useEffect as xe, useState as q, forwardRef as Ze, useImperativeHandle as Ke } from "react";
2
- var He = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
- function Ve(h) {
1
+ import Me, { useRef as Le, useMemo as we, useCallback as le, useEffect as Se, useState as V, forwardRef as Xe, useImperativeHandle as Ze } from "react";
2
+ var Ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
+ function Ke(h) {
4
4
  return h && h.__esModule && Object.prototype.hasOwnProperty.call(h, "default") ? h.default : h;
5
5
  }
6
- var Be, Me = { exports: {} }, Oe = {}, Ge, Ce = {};
7
- process.env.NODE_ENV === "production" ? Me.exports = function() {
8
- if (Be) return Oe;
9
- Be = 1;
10
- var h = ze, t = Symbol.for("react.element"), c = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, m = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
11
- function i(N, y, b) {
12
- var x, k = {}, F = null, v = null;
13
- for (x in b !== void 0 && (F = "" + b), y.key !== void 0 && (F = "" + y.key), y.ref !== void 0 && (v = y.ref), y) u.call(y, x) && !_.hasOwnProperty(x) && (k[x] = y[x]);
14
- if (N && N.defaultProps) for (x in y = N.defaultProps) k[x] === void 0 && (k[x] = y[x]);
15
- return { $$typeof: t, type: N, key: F, ref: v, props: k, _owner: m.current };
6
+ var ze, De = { exports: {} }, Ne = {}, Be, Ie = {};
7
+ process.env.NODE_ENV === "production" ? De.exports = function() {
8
+ if (ze) return Ne;
9
+ ze = 1;
10
+ var h = Me, t = Symbol.for("react.element"), l = Symbol.for("react.fragment"), p = Object.prototype.hasOwnProperty, m = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, N = { key: !0, ref: !0, __self: !0, __source: !0 };
11
+ function i(_, y, b) {
12
+ var v, A = {}, L = null, x = null;
13
+ for (v in b !== void 0 && (L = "" + b), y.key !== void 0 && (L = "" + y.key), y.ref !== void 0 && (x = y.ref), y) p.call(y, v) && !N.hasOwnProperty(v) && (A[v] = y[v]);
14
+ if (_ && _.defaultProps) for (v in y = _.defaultProps) A[v] === void 0 && (A[v] = y[v]);
15
+ return { $$typeof: t, type: _, key: L, ref: x, props: A, _owner: m.current };
16
16
  }
17
- return Oe.Fragment = c, Oe.jsx = i, Oe.jsxs = i, Oe;
18
- }() : Me.exports = (Ge || (Ge = 1, process.env.NODE_ENV !== "production" && function() {
19
- var h, t = ze, c = Symbol.for("react.element"), u = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), N = Symbol.for("react.provider"), y = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), L = Symbol.iterator, r = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
17
+ return Ne.Fragment = l, Ne.jsx = i, Ne.jsxs = i, Ne;
18
+ }() : De.exports = (Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
19
+ var h, t = Me, l = Symbol.for("react.element"), p = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), N = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), y = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), M = Symbol.iterator, r = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
20
20
  function e(n) {
21
21
  for (var g = arguments.length, f = new Array(g > 1 ? g - 1 : 0), P = 1; P < g; P++) f[P - 1] = arguments[P];
22
- (function(I, R, A) {
22
+ (function(I, R, S) {
23
23
  var T = r.ReactDebugCurrentFrame.getStackAddendum();
24
- T !== "" && (R += "%s", A = A.concat([T]));
25
- var D = A.map(function($) {
26
- return String($);
24
+ T !== "" && (R += "%s", S = S.concat([T]));
25
+ var j = S.map(function(D) {
26
+ return String(D);
27
27
  });
28
- D.unshift("Warning: " + R), Function.prototype.apply.call(console[I], console, D);
28
+ j.unshift("Warning: " + R), Function.prototype.apply.call(console[I], console, j);
29
29
  })("error", n, f);
30
30
  }
31
- function a(n) {
31
+ function o(n) {
32
32
  return n.displayName || "Context";
33
33
  }
34
- function o(n) {
34
+ function a(n) {
35
35
  if (n == null) return null;
36
36
  if (typeof n.tag == "number" && e("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function") return n.displayName || n.name || null;
37
37
  if (typeof n == "string") return n;
38
38
  switch (n) {
39
39
  case m:
40
40
  return "Fragment";
41
- case u:
41
+ case p:
42
42
  return "Portal";
43
43
  case i:
44
44
  return "Profiler";
45
- case _:
45
+ case N:
46
46
  return "StrictMode";
47
- case x:
47
+ case v:
48
48
  return "Suspense";
49
- case k:
49
+ case A:
50
50
  return "SuspenseList";
51
51
  }
52
52
  if (typeof n == "object") switch (n.$$typeof) {
53
53
  case y:
54
- return a(n) + ".Consumer";
55
- case N:
56
- return a(n._context) + ".Provider";
54
+ return o(n) + ".Consumer";
55
+ case _:
56
+ return o(n._context) + ".Provider";
57
57
  case b:
58
- return function(R, A, T) {
59
- var D = R.displayName;
60
- if (D) return D;
61
- var $ = A.displayName || A.name || "";
62
- return $ !== "" ? T + "(" + $ + ")" : T;
58
+ return function(R, S, T) {
59
+ var j = R.displayName;
60
+ if (j) return j;
61
+ var D = S.displayName || S.name || "";
62
+ return D !== "" ? T + "(" + D + ")" : T;
63
63
  }(n, n.render, "ForwardRef");
64
- case F:
64
+ case L:
65
65
  var g = n.displayName || null;
66
- return g !== null ? g : o(n.type) || "Memo";
67
- case v:
66
+ return g !== null ? g : a(n.type) || "Memo";
67
+ case x:
68
68
  var f = n, P = f._payload, I = f._init;
69
69
  try {
70
- return o(I(P));
70
+ return a(I(P));
71
71
  } catch {
72
72
  return null;
73
73
  }
@@ -75,199 +75,199 @@ process.env.NODE_ENV === "production" ? Me.exports = function() {
75
75
  return null;
76
76
  }
77
77
  h = Symbol.for("react.module.reference");
78
- var s, p, d, E, H, U, re, G = Object.assign, ae = 0;
79
- function Ee() {
78
+ var s, u, d, E, B, U, ae, H = Object.assign, oe = 0;
79
+ function me() {
80
80
  }
81
- Ee.__reactDisabledLog = !0;
82
- var ge, Q = r.ReactCurrentDispatcher;
81
+ me.__reactDisabledLog = !0;
82
+ var ue, Q = r.ReactCurrentDispatcher;
83
83
  function z(n, g, f) {
84
- if (ge === void 0) try {
84
+ if (ue === void 0) try {
85
85
  throw Error();
86
86
  } catch (I) {
87
87
  var P = I.stack.trim().match(/\n( *(at )?)/);
88
- ge = P && P[1] || "";
88
+ ue = P && P[1] || "";
89
89
  }
90
90
  return `
91
- ` + ge + n;
91
+ ` + ue + n;
92
92
  }
93
- var W, K = !1, X = typeof WeakMap == "function" ? WeakMap : Map;
94
- function oe(n, g) {
95
- if (!n || K) return "";
93
+ var W, Z = !1, q = typeof WeakMap == "function" ? WeakMap : Map;
94
+ function ie(n, g) {
95
+ if (!n || Z) return "";
96
96
  var f, P = W.get(n);
97
97
  if (P !== void 0) return P;
98
- K = !0;
98
+ Z = !0;
99
99
  var I, R = Error.prepareStackTrace;
100
100
  Error.prepareStackTrace = void 0, I = Q.current, Q.current = null, function() {
101
- if (ae === 0) {
102
- s = console.log, p = console.info, d = console.warn, E = console.error, H = console.group, U = console.groupCollapsed, re = console.groupEnd;
103
- var O = { configurable: !0, enumerable: !0, value: Ee, writable: !0 };
104
- Object.defineProperties(console, { info: O, log: O, warn: O, error: O, group: O, groupCollapsed: O, groupEnd: O });
101
+ if (oe === 0) {
102
+ s = console.log, u = console.info, d = console.warn, E = console.error, B = console.group, U = console.groupCollapsed, ae = console.groupEnd;
103
+ var F = { configurable: !0, enumerable: !0, value: me, writable: !0 };
104
+ Object.defineProperties(console, { info: F, log: F, warn: F, error: F, group: F, groupCollapsed: F, groupEnd: F });
105
105
  }
106
- ae++;
106
+ oe++;
107
107
  }();
108
108
  try {
109
109
  if (g) {
110
- var A = function() {
110
+ var S = function() {
111
111
  throw Error();
112
112
  };
113
- if (Object.defineProperty(A.prototype, "props", { set: function() {
113
+ if (Object.defineProperty(S.prototype, "props", { set: function() {
114
114
  throw Error();
115
115
  } }), typeof Reflect == "object" && Reflect.construct) {
116
116
  try {
117
- Reflect.construct(A, []);
118
- } catch (O) {
119
- f = O;
117
+ Reflect.construct(S, []);
118
+ } catch (F) {
119
+ f = F;
120
120
  }
121
- Reflect.construct(n, [], A);
121
+ Reflect.construct(n, [], S);
122
122
  } else {
123
123
  try {
124
- A.call();
125
- } catch (O) {
126
- f = O;
124
+ S.call();
125
+ } catch (F) {
126
+ f = F;
127
127
  }
128
- n.call(A.prototype);
128
+ n.call(S.prototype);
129
129
  }
130
130
  } else {
131
131
  try {
132
132
  throw Error();
133
- } catch (O) {
134
- f = O;
133
+ } catch (F) {
134
+ f = F;
135
135
  }
136
136
  n();
137
137
  }
138
- } catch (O) {
139
- if (O && f && typeof O.stack == "string") {
140
- for (var T = O.stack.split(`
141
- `), D = f.stack.split(`
142
- `), $ = T.length - 1, C = D.length - 1; $ >= 1 && C >= 0 && T[$] !== D[C]; ) C--;
143
- for (; $ >= 1 && C >= 0; $--, C--) if (T[$] !== D[C]) {
144
- if ($ !== 1 || C !== 1) do
145
- if ($--, --C < 0 || T[$] !== D[C]) {
146
- var S = `
147
- ` + T[$].replace(" at new ", " at ");
148
- return n.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", n.displayName)), typeof n == "function" && W.set(n, S), S;
138
+ } catch (F) {
139
+ if (F && f && typeof F.stack == "string") {
140
+ for (var T = F.stack.split(`
141
+ `), j = f.stack.split(`
142
+ `), D = T.length - 1, C = j.length - 1; D >= 1 && C >= 0 && T[D] !== j[C]; ) C--;
143
+ for (; D >= 1 && C >= 0; D--, C--) if (T[D] !== j[C]) {
144
+ if (D !== 1 || C !== 1) do
145
+ if (D--, --C < 0 || T[D] !== j[C]) {
146
+ var w = `
147
+ ` + T[D].replace(" at new ", " at ");
148
+ return n.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", n.displayName)), typeof n == "function" && W.set(n, w), w;
149
149
  }
150
- while ($ >= 1 && C >= 0);
150
+ while (D >= 1 && C >= 0);
151
151
  break;
152
152
  }
153
153
  }
154
154
  } finally {
155
- K = !1, Q.current = I, function() {
156
- if (--ae === 0) {
157
- var O = { configurable: !0, enumerable: !0, writable: !0 };
158
- Object.defineProperties(console, { log: G({}, O, { value: s }), info: G({}, O, { value: p }), warn: G({}, O, { value: d }), error: G({}, O, { value: E }), group: G({}, O, { value: H }), groupCollapsed: G({}, O, { value: U }), groupEnd: G({}, O, { value: re }) });
155
+ Z = !1, Q.current = I, function() {
156
+ if (--oe === 0) {
157
+ var F = { configurable: !0, enumerable: !0, writable: !0 };
158
+ Object.defineProperties(console, { log: H({}, F, { value: s }), info: H({}, F, { value: u }), warn: H({}, F, { value: d }), error: H({}, F, { value: E }), group: H({}, F, { value: B }), groupCollapsed: H({}, F, { value: U }), groupEnd: H({}, F, { value: ae }) });
159
159
  }
160
- ae < 0 && e("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
160
+ oe < 0 && e("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
161
161
  }(), Error.prepareStackTrace = R;
162
162
  }
163
- var B = n ? n.displayName || n.name : "", Y = B ? z(B) : "";
163
+ var G = n ? n.displayName || n.name : "", Y = G ? z(G) : "";
164
164
  return typeof n == "function" && W.set(n, Y), Y;
165
165
  }
166
166
  function ee(n, g, f) {
167
167
  if (n == null) return "";
168
- if (typeof n == "function") return oe(n, !(!(P = n.prototype) || !P.isReactComponent));
168
+ if (typeof n == "function") return ie(n, !(!(P = n.prototype) || !P.isReactComponent));
169
169
  var P;
170
170
  if (typeof n == "string") return z(n);
171
171
  switch (n) {
172
- case x:
172
+ case v:
173
173
  return z("Suspense");
174
- case k:
174
+ case A:
175
175
  return z("SuspenseList");
176
176
  }
177
177
  if (typeof n == "object") switch (n.$$typeof) {
178
178
  case b:
179
- return oe(n.render, !1);
180
- case F:
179
+ return ie(n.render, !1);
180
+ case L:
181
181
  return ee(n.type, g, f);
182
- case v:
183
- var I = n, R = I._payload, A = I._init;
182
+ case x:
183
+ var I = n, R = I._payload, S = I._init;
184
184
  try {
185
- return ee(A(R), g, f);
185
+ return ee(S(R), g, f);
186
186
  } catch {
187
187
  }
188
188
  }
189
189
  return "";
190
190
  }
191
- W = new X();
192
- var ue = Object.prototype.hasOwnProperty, V = {}, ne = r.ReactDebugCurrentFrame;
191
+ W = new q();
192
+ var pe = Object.prototype.hasOwnProperty, K = {}, te = r.ReactDebugCurrentFrame;
193
193
  function J(n) {
194
194
  if (n) {
195
195
  var g = n._owner, f = ee(n.type, n._source, g ? g.type : null);
196
- ne.setExtraStackFrame(f);
197
- } else ne.setExtraStackFrame(null);
196
+ te.setExtraStackFrame(f);
197
+ } else te.setExtraStackFrame(null);
198
198
  }
199
- var fe = Array.isArray;
200
- function de(n) {
201
- return fe(n);
199
+ var de = Array.isArray;
200
+ function re(n) {
201
+ return de(n);
202
202
  }
203
- function te(n) {
203
+ function he(n) {
204
204
  return "" + n;
205
205
  }
206
- function he(n) {
206
+ function ne(n) {
207
207
  if (function(g) {
208
208
  try {
209
- return te(g), !1;
209
+ return he(g), !1;
210
210
  } catch {
211
211
  return !0;
212
212
  }
213
213
  }(n)) return e("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", function(g) {
214
214
  return typeof Symbol == "function" && Symbol.toStringTag && g[Symbol.toStringTag] || g.constructor.name || "Object";
215
- }(n)), te(n);
215
+ }(n)), he(n);
216
216
  }
217
- var me, ie, Ie = r.ReactCurrentOwner, je = { key: !0, ref: !0, __self: !0, __source: !0 };
217
+ var ge, _e, Re = r.ReactCurrentOwner, Ce = { key: !0, ref: !0, __self: !0, __source: !0 };
218
218
  function Pe(n, g, f, P, I) {
219
- var R, A = {}, T = null, D = null;
220
- for (R in f !== void 0 && (he(f), T = "" + f), function(S) {
221
- if (ue.call(S, "key")) {
222
- var B = Object.getOwnPropertyDescriptor(S, "key").get;
223
- if (B && B.isReactWarning) return !1;
219
+ var R, S = {}, T = null, j = null;
220
+ for (R in f !== void 0 && (ne(f), T = "" + f), function(w) {
221
+ if (pe.call(w, "key")) {
222
+ var G = Object.getOwnPropertyDescriptor(w, "key").get;
223
+ if (G && G.isReactWarning) return !1;
224
224
  }
225
- return S.key !== void 0;
226
- }(g) && (he(g.key), T = "" + g.key), function(S) {
227
- if (ue.call(S, "ref")) {
228
- var B = Object.getOwnPropertyDescriptor(S, "ref").get;
229
- if (B && B.isReactWarning) return !1;
225
+ return w.key !== void 0;
226
+ }(g) && (ne(g.key), T = "" + g.key), function(w) {
227
+ if (pe.call(w, "ref")) {
228
+ var G = Object.getOwnPropertyDescriptor(w, "ref").get;
229
+ if (G && G.isReactWarning) return !1;
230
230
  }
231
- return S.ref !== void 0;
232
- }(g) && (D = g.ref, function(S) {
233
- typeof S.ref == "string" && Ie.current;
234
- }(g)), g) ue.call(g, R) && !je.hasOwnProperty(R) && (A[R] = g[R]);
231
+ return w.ref !== void 0;
232
+ }(g) && (j = g.ref, function(w) {
233
+ typeof w.ref == "string" && Re.current;
234
+ }(g)), g) pe.call(g, R) && !Ce.hasOwnProperty(R) && (S[R] = g[R]);
235
235
  if (n && n.defaultProps) {
236
- var $ = n.defaultProps;
237
- for (R in $) A[R] === void 0 && (A[R] = $[R]);
236
+ var D = n.defaultProps;
237
+ for (R in D) S[R] === void 0 && (S[R] = D[R]);
238
238
  }
239
- if (T || D) {
239
+ if (T || j) {
240
240
  var C = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
241
- T && function(S, B) {
241
+ T && function(w, G) {
242
242
  var Y = function() {
243
- me || (me = !0, e("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", B));
243
+ ge || (ge = !0, e("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", G));
244
244
  };
245
- Y.isReactWarning = !0, Object.defineProperty(S, "key", { get: Y, configurable: !0 });
246
- }(A, C), D && function(S, B) {
245
+ Y.isReactWarning = !0, Object.defineProperty(w, "key", { get: Y, configurable: !0 });
246
+ }(S, C), j && function(w, G) {
247
247
  var Y = function() {
248
- ie || (ie = !0, e("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", B));
248
+ _e || (_e = !0, e("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", G));
249
249
  };
250
- Y.isReactWarning = !0, Object.defineProperty(S, "ref", { get: Y, configurable: !0 });
251
- }(A, C);
250
+ Y.isReactWarning = !0, Object.defineProperty(w, "ref", { get: Y, configurable: !0 });
251
+ }(S, C);
252
252
  }
253
- return function(S, B, Y, O, M, Le, Re) {
254
- var ce = { $$typeof: c, type: S, key: B, ref: Y, props: Re, _owner: Le, _store: {} };
255
- return Object.defineProperty(ce._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(ce, "_self", { configurable: !1, enumerable: !1, writable: !1, value: O }), Object.defineProperty(ce, "_source", { configurable: !1, enumerable: !1, writable: !1, value: M }), Object.freeze && (Object.freeze(ce.props), Object.freeze(ce)), ce;
256
- }(n, T, D, I, P, Ie.current, A);
253
+ return function(w, G, Y, F, $, Oe, Te) {
254
+ var ce = { $$typeof: l, type: w, key: G, ref: Y, props: Te, _owner: Oe, _store: {} };
255
+ return Object.defineProperty(ce._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(ce, "_self", { configurable: !1, enumerable: !1, writable: !1, value: F }), Object.defineProperty(ce, "_source", { configurable: !1, enumerable: !1, writable: !1, value: $ }), Object.freeze && (Object.freeze(ce.props), Object.freeze(ce)), ce;
256
+ }(n, T, j, I, P, Re.current, S);
257
257
  }
258
- var Ae, Te = r.ReactCurrentOwner, ke = r.ReactDebugCurrentFrame;
259
- function be(n) {
258
+ var Ae, be = r.ReactCurrentOwner, Fe = r.ReactDebugCurrentFrame;
259
+ function se(n) {
260
260
  if (n) {
261
261
  var g = n._owner, f = ee(n.type, n._source, g ? g.type : null);
262
- ke.setExtraStackFrame(f);
263
- } else ke.setExtraStackFrame(null);
262
+ Fe.setExtraStackFrame(f);
263
+ } else Fe.setExtraStackFrame(null);
264
264
  }
265
265
  function ve(n) {
266
- return typeof n == "object" && n !== null && n.$$typeof === c;
266
+ return typeof n == "object" && n !== null && n.$$typeof === l;
267
267
  }
268
- function _e() {
269
- if (Te.current) {
270
- var n = o(Te.current.type);
268
+ function k() {
269
+ if (be.current) {
270
+ var n = a(be.current.type);
271
271
  if (n) return `
272
272
 
273
273
  Check the render method of \`` + n + "`.";
@@ -275,443 +275,443 @@ Check the render method of \`` + n + "`.";
275
275
  return "";
276
276
  }
277
277
  Ae = !1;
278
- var w = {};
279
- function Z(n, g) {
278
+ var X = {};
279
+ function ye(n, g) {
280
280
  if (n._store && !n._store.validated && n.key == null) {
281
281
  n._store.validated = !0;
282
282
  var f = function(I) {
283
- var R = _e();
283
+ var R = k();
284
284
  if (!R) {
285
- var A = typeof I == "string" ? I : I.displayName || I.name;
286
- A && (R = `
285
+ var S = typeof I == "string" ? I : I.displayName || I.name;
286
+ S && (R = `
287
287
 
288
- Check the top-level render call using <` + A + ">.");
288
+ Check the top-level render call using <` + S + ">.");
289
289
  }
290
290
  return R;
291
291
  }(g);
292
- if (!w[f]) {
293
- w[f] = !0;
292
+ if (!X[f]) {
293
+ X[f] = !0;
294
294
  var P = "";
295
- n && n._owner && n._owner !== Te.current && (P = " It was passed a child from " + o(n._owner.type) + "."), be(n), e('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, P), be(null);
295
+ n && n._owner && n._owner !== be.current && (P = " It was passed a child from " + a(n._owner.type) + "."), se(n), e('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, P), se(null);
296
296
  }
297
297
  }
298
298
  }
299
- function se(n, g) {
299
+ function fe(n, g) {
300
300
  if (typeof n == "object") {
301
- if (de(n)) for (var f = 0; f < n.length; f++) {
301
+ if (re(n)) for (var f = 0; f < n.length; f++) {
302
302
  var P = n[f];
303
- ve(P) && Z(P, g);
303
+ ve(P) && ye(P, g);
304
304
  }
305
305
  else if (ve(n)) n._store && (n._store.validated = !0);
306
306
  else if (n) {
307
307
  var I = function(T) {
308
308
  if (T === null || typeof T != "object") return null;
309
- var D = L && T[L] || T["@@iterator"];
310
- return typeof D == "function" ? D : null;
309
+ var j = M && T[M] || T["@@iterator"];
310
+ return typeof j == "function" ? j : null;
311
311
  }(n);
312
- if (typeof I == "function" && I !== n.entries) for (var R, A = I.call(n); !(R = A.next()).done; ) ve(R.value) && Z(R.value, g);
312
+ if (typeof I == "function" && I !== n.entries) for (var R, S = I.call(n); !(R = S.next()).done; ) ve(R.value) && ye(R.value, g);
313
313
  }
314
314
  }
315
315
  }
316
- function le(n) {
316
+ function Ee(n) {
317
317
  var g, f = n.type;
318
318
  if (f != null && typeof f != "string") {
319
319
  if (typeof f == "function") g = f.propTypes;
320
320
  else {
321
- if (typeof f != "object" || f.$$typeof !== b && f.$$typeof !== F) return;
321
+ if (typeof f != "object" || f.$$typeof !== b && f.$$typeof !== L) return;
322
322
  g = f.propTypes;
323
323
  }
324
324
  if (g) {
325
- var P = o(f);
326
- (function(I, R, A, T, D) {
327
- var $ = Function.call.bind(ue);
328
- for (var C in I) if ($(I, C)) {
329
- var S = void 0;
325
+ var P = a(f);
326
+ (function(I, R, S, T, j) {
327
+ var D = Function.call.bind(pe);
328
+ for (var C in I) if (D(I, C)) {
329
+ var w = void 0;
330
330
  try {
331
331
  if (typeof I[C] != "function") {
332
- var B = Error((T || "React class") + ": " + A + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof I[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
- throw B.name = "Invariant Violation", B;
332
+ var G = Error((T || "React class") + ": " + S + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof I[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
+ throw G.name = "Invariant Violation", G;
334
334
  }
335
- S = I[C](R, C, T, A, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
335
+ w = I[C](R, C, T, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
336
  } catch (Y) {
337
- S = Y;
337
+ w = Y;
338
338
  }
339
- !S || S instanceof Error || (J(D), e("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", A, C, typeof S), J(null)), S instanceof Error && !(S.message in V) && (V[S.message] = !0, J(D), e("Failed %s type: %s", A, S.message), J(null));
339
+ !w || w instanceof Error || (J(j), e("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", S, C, typeof w), J(null)), w instanceof Error && !(w.message in K) && (K[w.message] = !0, J(j), e("Failed %s type: %s", S, w.message), J(null));
340
340
  }
341
341
  })(g, n.props, "prop", P, n);
342
- } else f.PropTypes === void 0 || Ae || (Ae = !0, e("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o(f) || "Unknown"));
342
+ } else f.PropTypes === void 0 || Ae || (Ae = !0, e("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", a(f) || "Unknown"));
343
343
  typeof f.getDefaultProps != "function" || f.getDefaultProps.isReactClassApproved || e("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
344
344
  }
345
345
  }
346
- var ye = {};
347
- function we(n, g, f, P, I, R) {
348
- var A = function(M) {
349
- return typeof M == "string" || typeof M == "function" || M === m || M === i || M === _ || M === x || M === k || M === j || typeof M == "object" && M !== null && (M.$$typeof === v || M.$$typeof === F || M.$$typeof === N || M.$$typeof === y || M.$$typeof === b || M.$$typeof === h || M.getModuleId !== void 0);
346
+ var xe = {};
347
+ function ke(n, g, f, P, I, R) {
348
+ var S = function($) {
349
+ return typeof $ == "string" || typeof $ == "function" || $ === m || $ === i || $ === N || $ === v || $ === A || $ === O || typeof $ == "object" && $ !== null && ($.$$typeof === x || $.$$typeof === L || $.$$typeof === _ || $.$$typeof === y || $.$$typeof === b || $.$$typeof === h || $.getModuleId !== void 0);
350
350
  }(n);
351
- if (!A) {
352
- var T, D = "";
353
- (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (D += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), D += _e(), n === null ? T = "null" : de(n) ? T = "array" : n !== void 0 && n.$$typeof === c ? (T = "<" + (o(n.type) || "Unknown") + " />", D = " Did you accidentally export a JSX literal instead of a component?") : T = typeof n, e("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, D);
351
+ if (!S) {
352
+ var T, j = "";
353
+ (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (j += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), j += k(), n === null ? T = "null" : re(n) ? T = "array" : n !== void 0 && n.$$typeof === l ? (T = "<" + (a(n.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : T = typeof n, e("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, j);
354
354
  }
355
- var $ = Pe(n, g, f, I, R);
356
- if ($ == null) return $;
357
- if (A) {
355
+ var D = Pe(n, g, f, I, R);
356
+ if (D == null) return D;
357
+ if (S) {
358
358
  var C = g.children;
359
- if (C !== void 0) if (P) if (de(C)) {
360
- for (var S = 0; S < C.length; S++) se(C[S], n);
359
+ if (C !== void 0) if (P) if (re(C)) {
360
+ for (var w = 0; w < C.length; w++) fe(C[w], n);
361
361
  Object.freeze && Object.freeze(C);
362
362
  } else e("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
363
- else se(C, n);
363
+ else fe(C, n);
364
364
  }
365
- if (ue.call(g, "key")) {
366
- var B = o(n), Y = Object.keys(g).filter(function(M) {
367
- return M !== "key";
368
- }), O = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
369
- ye[B + O] || (e(`A props object containing a "key" prop is being spread into JSX:
365
+ if (pe.call(g, "key")) {
366
+ var G = a(n), Y = Object.keys(g).filter(function($) {
367
+ return $ !== "key";
368
+ }), F = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
369
+ xe[G + F] || (e(`A props object containing a "key" prop is being spread into JSX:
370
370
  let props = %s;
371
371
  <%s {...props} />
372
372
  React keys must be passed directly to JSX without using spread:
373
373
  let props = %s;
374
- <%s key={someKey} {...props} />`, O, B, Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}", B), ye[B + O] = !0);
374
+ <%s key={someKey} {...props} />`, F, G, Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}", G), xe[G + F] = !0);
375
375
  }
376
- return n === m ? function(M) {
377
- for (var Le = Object.keys(M.props), Re = 0; Re < Le.length; Re++) {
378
- var ce = Le[Re];
376
+ return n === m ? function($) {
377
+ for (var Oe = Object.keys($.props), Te = 0; Te < Oe.length; Te++) {
378
+ var ce = Oe[Te];
379
379
  if (ce !== "children" && ce !== "key") {
380
- be(M), e("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ce), be(null);
380
+ se($), e("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ce), se(null);
381
381
  break;
382
382
  }
383
383
  }
384
- M.ref !== null && (be(M), e("Invalid attribute `ref` supplied to `React.Fragment`."), be(null));
385
- }($) : le($), $;
384
+ $.ref !== null && (se($), e("Invalid attribute `ref` supplied to `React.Fragment`."), se(null));
385
+ }(D) : Ee(D), D;
386
386
  }
387
- var Ne = function(n, g, f) {
388
- return we(n, g, f, !1);
389
- }, Xe = function(n, g, f) {
390
- return we(n, g, f, !0);
387
+ var We = function(n, g, f) {
388
+ return ke(n, g, f, !1);
389
+ }, Ye = function(n, g, f) {
390
+ return ke(n, g, f, !0);
391
391
  };
392
- Ce.Fragment = m, Ce.jsx = Ne, Ce.jsxs = Xe;
393
- }()), Ce);
394
- var l = Me.exports, Ye = { exports: {} };
392
+ Ie.Fragment = m, Ie.jsx = We, Ie.jsxs = Ye;
393
+ }()), Ie);
394
+ var c = De.exports, He = { exports: {} };
395
395
  (function(h) {
396
- var t = function(c) {
397
- var u = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, m = 0, _ = {}, i = { manual: c.Prism && c.Prism.manual, disableWorkerMessageHandler: c.Prism && c.Prism.disableWorkerMessageHandler, util: { encode: function r(e) {
398
- return e instanceof N ? new N(e.type, r(e.content), e.alias) : Array.isArray(e) ? e.map(r) : e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
396
+ var t = function(l) {
397
+ var p = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, m = 0, N = {}, i = { manual: l.Prism && l.Prism.manual, disableWorkerMessageHandler: l.Prism && l.Prism.disableWorkerMessageHandler, util: { encode: function r(e) {
398
+ return e instanceof _ ? new _(e.type, r(e.content), e.alias) : Array.isArray(e) ? e.map(r) : e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
399
399
  }, type: function(r) {
400
400
  return Object.prototype.toString.call(r).slice(8, -1);
401
401
  }, objId: function(r) {
402
402
  return r.__id || Object.defineProperty(r, "__id", { value: ++m }), r.__id;
403
- }, clone: function r(e, a) {
404
- var o, s;
405
- switch (a = a || {}, i.util.type(e)) {
403
+ }, clone: function r(e, o) {
404
+ var a, s;
405
+ switch (o = o || {}, i.util.type(e)) {
406
406
  case "Object":
407
- if (s = i.util.objId(e), a[s]) return a[s];
408
- for (var p in o = {}, a[s] = o, e) e.hasOwnProperty(p) && (o[p] = r(e[p], a));
409
- return o;
407
+ if (s = i.util.objId(e), o[s]) return o[s];
408
+ for (var u in a = {}, o[s] = a, e) e.hasOwnProperty(u) && (a[u] = r(e[u], o));
409
+ return a;
410
410
  case "Array":
411
- return s = i.util.objId(e), a[s] ? a[s] : (o = [], a[s] = o, e.forEach(function(d, E) {
412
- o[E] = r(d, a);
413
- }), o);
411
+ return s = i.util.objId(e), o[s] ? o[s] : (a = [], o[s] = a, e.forEach(function(d, E) {
412
+ a[E] = r(d, o);
413
+ }), a);
414
414
  default:
415
415
  return e;
416
416
  }
417
417
  }, getLanguage: function(r) {
418
418
  for (; r; ) {
419
- var e = u.exec(r.className);
419
+ var e = p.exec(r.className);
420
420
  if (e) return e[1].toLowerCase();
421
421
  r = r.parentElement;
422
422
  }
423
423
  return "none";
424
424
  }, setLanguage: function(r, e) {
425
- r.className = r.className.replace(RegExp(u, "gi"), ""), r.classList.add("language-" + e);
425
+ r.className = r.className.replace(RegExp(p, "gi"), ""), r.classList.add("language-" + e);
426
426
  }, currentScript: function() {
427
427
  if (typeof document > "u") return null;
428
428
  if (document.currentScript && document.currentScript.tagName === "SCRIPT") return document.currentScript;
429
429
  try {
430
430
  throw new Error();
431
- } catch (o) {
432
- var r = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(o.stack) || [])[1];
431
+ } catch (a) {
432
+ var r = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(a.stack) || [])[1];
433
433
  if (r) {
434
434
  var e = document.getElementsByTagName("script");
435
- for (var a in e) if (e[a].src == r) return e[a];
435
+ for (var o in e) if (e[o].src == r) return e[o];
436
436
  }
437
437
  return null;
438
438
  }
439
- }, isActive: function(r, e, a) {
440
- for (var o = "no-" + e; r; ) {
439
+ }, isActive: function(r, e, o) {
440
+ for (var a = "no-" + e; r; ) {
441
441
  var s = r.classList;
442
442
  if (s.contains(e)) return !0;
443
- if (s.contains(o)) return !1;
443
+ if (s.contains(a)) return !1;
444
444
  r = r.parentElement;
445
445
  }
446
- return !!a;
447
- } }, languages: { plain: _, plaintext: _, text: _, txt: _, extend: function(r, e) {
448
- var a = i.util.clone(i.languages[r]);
449
- for (var o in e) a[o] = e[o];
450
- return a;
451
- }, insertBefore: function(r, e, a, o) {
452
- var s = (o = o || i.languages)[r], p = {};
446
+ return !!o;
447
+ } }, languages: { plain: N, plaintext: N, text: N, txt: N, extend: function(r, e) {
448
+ var o = i.util.clone(i.languages[r]);
449
+ for (var a in e) o[a] = e[a];
450
+ return o;
451
+ }, insertBefore: function(r, e, o, a) {
452
+ var s = (a = a || i.languages)[r], u = {};
453
453
  for (var d in s) if (s.hasOwnProperty(d)) {
454
- if (d == e) for (var E in a) a.hasOwnProperty(E) && (p[E] = a[E]);
455
- a.hasOwnProperty(d) || (p[d] = s[d]);
454
+ if (d == e) for (var E in o) o.hasOwnProperty(E) && (u[E] = o[E]);
455
+ o.hasOwnProperty(d) || (u[d] = s[d]);
456
456
  }
457
- var H = o[r];
458
- return o[r] = p, i.languages.DFS(i.languages, function(U, re) {
459
- re === H && U != r && (this[U] = p);
460
- }), p;
461
- }, DFS: function r(e, a, o, s) {
457
+ var B = a[r];
458
+ return a[r] = u, i.languages.DFS(i.languages, function(U, ae) {
459
+ ae === B && U != r && (this[U] = u);
460
+ }), u;
461
+ }, DFS: function r(e, o, a, s) {
462
462
  s = s || {};
463
- var p = i.util.objId;
463
+ var u = i.util.objId;
464
464
  for (var d in e) if (e.hasOwnProperty(d)) {
465
- a.call(e, d, e[d], o || d);
466
- var E = e[d], H = i.util.type(E);
467
- H !== "Object" || s[p(E)] ? H !== "Array" || s[p(E)] || (s[p(E)] = !0, r(E, a, d, s)) : (s[p(E)] = !0, r(E, a, null, s));
465
+ o.call(e, d, e[d], a || d);
466
+ var E = e[d], B = i.util.type(E);
467
+ B !== "Object" || s[u(E)] ? B !== "Array" || s[u(E)] || (s[u(E)] = !0, r(E, o, d, s)) : (s[u(E)] = !0, r(E, o, null, s));
468
468
  }
469
469
  } }, plugins: {}, highlightAll: function(r, e) {
470
470
  i.highlightAllUnder(document, r, e);
471
- }, highlightAllUnder: function(r, e, a) {
472
- var o = { callback: a, container: r, selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code' };
473
- i.hooks.run("before-highlightall", o), o.elements = Array.prototype.slice.apply(o.container.querySelectorAll(o.selector)), i.hooks.run("before-all-elements-highlight", o);
474
- for (var s, p = 0; s = o.elements[p++]; ) i.highlightElement(s, e === !0, o.callback);
475
- }, highlightElement: function(r, e, a) {
476
- var o = i.util.getLanguage(r), s = i.languages[o];
477
- i.util.setLanguage(r, o);
478
- var p = r.parentElement;
479
- p && p.nodeName.toLowerCase() === "pre" && i.util.setLanguage(p, o);
480
- var d = { element: r, language: o, grammar: s, code: r.textContent };
471
+ }, highlightAllUnder: function(r, e, o) {
472
+ var a = { callback: o, container: r, selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code' };
473
+ i.hooks.run("before-highlightall", a), a.elements = Array.prototype.slice.apply(a.container.querySelectorAll(a.selector)), i.hooks.run("before-all-elements-highlight", a);
474
+ for (var s, u = 0; s = a.elements[u++]; ) i.highlightElement(s, e === !0, a.callback);
475
+ }, highlightElement: function(r, e, o) {
476
+ var a = i.util.getLanguage(r), s = i.languages[a];
477
+ i.util.setLanguage(r, a);
478
+ var u = r.parentElement;
479
+ u && u.nodeName.toLowerCase() === "pre" && i.util.setLanguage(u, a);
480
+ var d = { element: r, language: a, grammar: s, code: r.textContent };
481
481
  function E(U) {
482
- d.highlightedCode = U, i.hooks.run("before-insert", d), d.element.innerHTML = d.highlightedCode, i.hooks.run("after-highlight", d), i.hooks.run("complete", d), a && a.call(d.element);
482
+ d.highlightedCode = U, i.hooks.run("before-insert", d), d.element.innerHTML = d.highlightedCode, i.hooks.run("after-highlight", d), i.hooks.run("complete", d), o && o.call(d.element);
483
483
  }
484
- if (i.hooks.run("before-sanity-check", d), (p = d.element.parentElement) && p.nodeName.toLowerCase() === "pre" && !p.hasAttribute("tabindex") && p.setAttribute("tabindex", "0"), !d.code) return i.hooks.run("complete", d), void (a && a.call(d.element));
485
- if (i.hooks.run("before-highlight", d), d.grammar) if (e && c.Worker) {
486
- var H = new Worker(i.filename);
487
- H.onmessage = function(U) {
484
+ if (i.hooks.run("before-sanity-check", d), (u = d.element.parentElement) && u.nodeName.toLowerCase() === "pre" && !u.hasAttribute("tabindex") && u.setAttribute("tabindex", "0"), !d.code) return i.hooks.run("complete", d), void (o && o.call(d.element));
485
+ if (i.hooks.run("before-highlight", d), d.grammar) if (e && l.Worker) {
486
+ var B = new Worker(i.filename);
487
+ B.onmessage = function(U) {
488
488
  E(U.data);
489
- }, H.postMessage(JSON.stringify({ language: d.language, code: d.code, immediateClose: !0 }));
489
+ }, B.postMessage(JSON.stringify({ language: d.language, code: d.code, immediateClose: !0 }));
490
490
  } else E(i.highlight(d.code, d.grammar, d.language));
491
491
  else E(i.util.encode(d.code));
492
- }, highlight: function(r, e, a) {
493
- var o = { code: r, grammar: e, language: a };
494
- if (i.hooks.run("before-tokenize", o), !o.grammar) throw new Error('The language "' + o.language + '" has no grammar.');
495
- return o.tokens = i.tokenize(o.code, o.grammar), i.hooks.run("after-tokenize", o), N.stringify(i.util.encode(o.tokens), o.language);
492
+ }, highlight: function(r, e, o) {
493
+ var a = { code: r, grammar: e, language: o };
494
+ if (i.hooks.run("before-tokenize", a), !a.grammar) throw new Error('The language "' + a.language + '" has no grammar.');
495
+ return a.tokens = i.tokenize(a.code, a.grammar), i.hooks.run("after-tokenize", a), _.stringify(i.util.encode(a.tokens), a.language);
496
496
  }, tokenize: function(r, e) {
497
- var a = e.rest;
498
- if (a) {
499
- for (var o in a) e[o] = a[o];
497
+ var o = e.rest;
498
+ if (o) {
499
+ for (var a in o) e[a] = o[a];
500
500
  delete e.rest;
501
501
  }
502
- var s = new x();
503
- return k(s, s.head, r), b(r, s, e, s.head, 0), function(p) {
504
- for (var d = [], E = p.head.next; E !== p.tail; ) d.push(E.value), E = E.next;
502
+ var s = new v();
503
+ return A(s, s.head, r), b(r, s, e, s.head, 0), function(u) {
504
+ for (var d = [], E = u.head.next; E !== u.tail; ) d.push(E.value), E = E.next;
505
505
  return d;
506
506
  }(s);
507
507
  }, hooks: { all: {}, add: function(r, e) {
508
- var a = i.hooks.all;
509
- a[r] = a[r] || [], a[r].push(e);
508
+ var o = i.hooks.all;
509
+ o[r] = o[r] || [], o[r].push(e);
510
510
  }, run: function(r, e) {
511
- var a = i.hooks.all[r];
512
- if (a && a.length) for (var o, s = 0; o = a[s++]; ) o(e);
513
- } }, Token: N };
514
- function N(r, e, a, o) {
515
- this.type = r, this.content = e, this.alias = a, this.length = 0 | (o || "").length;
511
+ var o = i.hooks.all[r];
512
+ if (o && o.length) for (var a, s = 0; a = o[s++]; ) a(e);
513
+ } }, Token: _ };
514
+ function _(r, e, o, a) {
515
+ this.type = r, this.content = e, this.alias = o, this.length = 0 | (a || "").length;
516
516
  }
517
- function y(r, e, a, o) {
517
+ function y(r, e, o, a) {
518
518
  r.lastIndex = e;
519
- var s = r.exec(a);
520
- if (s && o && s[1]) {
521
- var p = s[1].length;
522
- s.index += p, s[0] = s[0].slice(p);
519
+ var s = r.exec(o);
520
+ if (s && a && s[1]) {
521
+ var u = s[1].length;
522
+ s.index += u, s[0] = s[0].slice(u);
523
523
  }
524
524
  return s;
525
525
  }
526
- function b(r, e, a, o, s, p) {
527
- for (var d in a) if (a.hasOwnProperty(d) && a[d]) {
528
- var E = a[d];
526
+ function b(r, e, o, a, s, u) {
527
+ for (var d in o) if (o.hasOwnProperty(d) && o[d]) {
528
+ var E = o[d];
529
529
  E = Array.isArray(E) ? E : [E];
530
- for (var H = 0; H < E.length; ++H) {
531
- if (p && p.cause == d + "," + H) return;
532
- var U = E[H], re = U.inside, G = !!U.lookbehind, ae = !!U.greedy, Ee = U.alias;
533
- if (ae && !U.pattern.global) {
534
- var ge = U.pattern.toString().match(/[imsuy]*$/)[0];
535
- U.pattern = RegExp(U.pattern.source, ge + "g");
530
+ for (var B = 0; B < E.length; ++B) {
531
+ if (u && u.cause == d + "," + B) return;
532
+ var U = E[B], ae = U.inside, H = !!U.lookbehind, oe = !!U.greedy, me = U.alias;
533
+ if (oe && !U.pattern.global) {
534
+ var ue = U.pattern.toString().match(/[imsuy]*$/)[0];
535
+ U.pattern = RegExp(U.pattern.source, ue + "g");
536
536
  }
537
- for (var Q = U.pattern || U, z = o.next, W = s; z !== e.tail && !(p && W >= p.reach); W += z.value.length, z = z.next) {
538
- var K = z.value;
537
+ for (var Q = U.pattern || U, z = a.next, W = s; z !== e.tail && !(u && W >= u.reach); W += z.value.length, z = z.next) {
538
+ var Z = z.value;
539
539
  if (e.length > r.length) return;
540
- if (!(K instanceof N)) {
541
- var X, oe = 1;
542
- if (ae) {
543
- if (!(X = y(Q, W, r, G)) || X.index >= r.length) break;
544
- var ee = X.index, ue = X.index + X[0].length, V = W;
545
- for (V += z.value.length; ee >= V; ) V += (z = z.next).value.length;
546
- if (W = V -= z.value.length, z.value instanceof N) continue;
547
- for (var ne = z; ne !== e.tail && (V < ue || typeof ne.value == "string"); ne = ne.next) oe++, V += ne.value.length;
548
- oe--, K = r.slice(W, V), X.index -= W;
549
- } else if (!(X = y(Q, 0, K, G))) continue;
550
- ee = X.index;
551
- var J = X[0], fe = K.slice(0, ee), de = K.slice(ee + J.length), te = W + K.length;
552
- p && te > p.reach && (p.reach = te);
553
- var he = z.prev;
554
- if (fe && (he = k(e, he, fe), W += fe.length), F(e, he, oe), z = k(e, he, new N(d, re ? i.tokenize(J, re) : J, Ee, J)), de && k(e, z, de), oe > 1) {
555
- var me = { cause: d + "," + H, reach: te };
556
- b(r, e, a, z.prev, W, me), p && me.reach > p.reach && (p.reach = me.reach);
540
+ if (!(Z instanceof _)) {
541
+ var q, ie = 1;
542
+ if (oe) {
543
+ if (!(q = y(Q, W, r, H)) || q.index >= r.length) break;
544
+ var ee = q.index, pe = q.index + q[0].length, K = W;
545
+ for (K += z.value.length; ee >= K; ) K += (z = z.next).value.length;
546
+ if (W = K -= z.value.length, z.value instanceof _) continue;
547
+ for (var te = z; te !== e.tail && (K < pe || typeof te.value == "string"); te = te.next) ie++, K += te.value.length;
548
+ ie--, Z = r.slice(W, K), q.index -= W;
549
+ } else if (!(q = y(Q, 0, Z, H))) continue;
550
+ ee = q.index;
551
+ var J = q[0], de = Z.slice(0, ee), re = Z.slice(ee + J.length), he = W + Z.length;
552
+ u && he > u.reach && (u.reach = he);
553
+ var ne = z.prev;
554
+ if (de && (ne = A(e, ne, de), W += de.length), L(e, ne, ie), z = A(e, ne, new _(d, ae ? i.tokenize(J, ae) : J, me, J)), re && A(e, z, re), ie > 1) {
555
+ var ge = { cause: d + "," + B, reach: he };
556
+ b(r, e, o, z.prev, W, ge), u && ge.reach > u.reach && (u.reach = ge.reach);
557
557
  }
558
558
  }
559
559
  }
560
560
  }
561
561
  }
562
562
  }
563
- function x() {
563
+ function v() {
564
564
  var r = { value: null, prev: null, next: null }, e = { value: null, prev: r, next: null };
565
565
  r.next = e, this.head = r, this.tail = e, this.length = 0;
566
566
  }
567
- function k(r, e, a) {
568
- var o = e.next, s = { value: a, prev: e, next: o };
569
- return e.next = s, o.prev = s, r.length++, s;
567
+ function A(r, e, o) {
568
+ var a = e.next, s = { value: o, prev: e, next: a };
569
+ return e.next = s, a.prev = s, r.length++, s;
570
570
  }
571
- function F(r, e, a) {
572
- for (var o = e.next, s = 0; s < a && o !== r.tail; s++) o = o.next;
573
- e.next = o, o.prev = e, r.length -= s;
571
+ function L(r, e, o) {
572
+ for (var a = e.next, s = 0; s < o && a !== r.tail; s++) a = a.next;
573
+ e.next = a, a.prev = e, r.length -= s;
574
574
  }
575
- if (c.Prism = i, N.stringify = function r(e, a) {
575
+ if (l.Prism = i, _.stringify = function r(e, o) {
576
576
  if (typeof e == "string") return e;
577
577
  if (Array.isArray(e)) {
578
- var o = "";
579
- return e.forEach(function(H) {
580
- o += r(H, a);
581
- }), o;
578
+ var a = "";
579
+ return e.forEach(function(B) {
580
+ a += r(B, o);
581
+ }), a;
582
582
  }
583
- var s = { type: e.type, content: r(e.content, a), tag: "span", classes: ["token", e.type], attributes: {}, language: a }, p = e.alias;
584
- p && (Array.isArray(p) ? Array.prototype.push.apply(s.classes, p) : s.classes.push(p)), i.hooks.run("wrap", s);
583
+ var s = { type: e.type, content: r(e.content, o), tag: "span", classes: ["token", e.type], attributes: {}, language: o }, u = e.alias;
584
+ u && (Array.isArray(u) ? Array.prototype.push.apply(s.classes, u) : s.classes.push(u)), i.hooks.run("wrap", s);
585
585
  var d = "";
586
586
  for (var E in s.attributes) d += " " + E + '="' + (s.attributes[E] || "").replace(/"/g, "&quot;") + '"';
587
587
  return "<" + s.tag + ' class="' + s.classes.join(" ") + '"' + d + ">" + s.content + "</" + s.tag + ">";
588
- }, !c.document) return c.addEventListener && (i.disableWorkerMessageHandler || c.addEventListener("message", function(r) {
589
- var e = JSON.parse(r.data), a = e.language, o = e.code, s = e.immediateClose;
590
- c.postMessage(i.highlight(o, i.languages[a], a)), s && c.close();
588
+ }, !l.document) return l.addEventListener && (i.disableWorkerMessageHandler || l.addEventListener("message", function(r) {
589
+ var e = JSON.parse(r.data), o = e.language, a = e.code, s = e.immediateClose;
590
+ l.postMessage(i.highlight(a, i.languages[o], o)), s && l.close();
591
591
  }, !1)), i;
592
- var v = i.util.currentScript();
593
- function j() {
592
+ var x = i.util.currentScript();
593
+ function O() {
594
594
  i.manual || i.highlightAll();
595
595
  }
596
- if (v && (i.filename = v.src, v.hasAttribute("data-manual") && (i.manual = !0)), !i.manual) {
597
- var L = document.readyState;
598
- L === "loading" || L === "interactive" && v && v.defer ? document.addEventListener("DOMContentLoaded", j) : window.requestAnimationFrame ? window.requestAnimationFrame(j) : window.setTimeout(j, 16);
596
+ if (x && (i.filename = x.src, x.hasAttribute("data-manual") && (i.manual = !0)), !i.manual) {
597
+ var M = document.readyState;
598
+ M === "loading" || M === "interactive" && x && x.defer ? document.addEventListener("DOMContentLoaded", O) : window.requestAnimationFrame ? window.requestAnimationFrame(O) : window.setTimeout(O, 16);
599
599
  }
600
600
  return i;
601
601
  }(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
602
- h.exports && (h.exports = t), He !== void 0 && (He.Prism = t), t.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, { pattern: /^(\s*)["']|["']$/, lookbehind: !0 }] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, t.languages.markup.tag.inside["attr-value"].inside.entity = t.languages.markup.entity, t.languages.markup.doctype.inside["internal-subset"].inside = t.languages.markup, t.hooks.add("wrap", function(c) {
603
- c.type === "entity" && (c.attributes.title = c.content.replace(/&amp;/, "&"));
604
- }), Object.defineProperty(t.languages.markup.tag, "addInlined", { value: function(c, u) {
602
+ h.exports && (h.exports = t), Ue !== void 0 && (Ue.Prism = t), t.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, { pattern: /^(\s*)["']|["']$/, lookbehind: !0 }] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, t.languages.markup.tag.inside["attr-value"].inside.entity = t.languages.markup.entity, t.languages.markup.doctype.inside["internal-subset"].inside = t.languages.markup, t.hooks.add("wrap", function(l) {
603
+ l.type === "entity" && (l.attributes.title = l.content.replace(/&amp;/, "&"));
604
+ }), Object.defineProperty(t.languages.markup.tag, "addInlined", { value: function(l, p) {
605
605
  var m = {};
606
- m["language-" + u] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: t.languages[u] }, m.cdata = /^<!\[CDATA\[|\]\]>$/i;
607
- var _ = { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: m } };
608
- _["language-" + u] = { pattern: /[\s\S]+/, inside: t.languages[u] };
606
+ m["language-" + p] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: t.languages[p] }, m.cdata = /^<!\[CDATA\[|\]\]>$/i;
607
+ var N = { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: m } };
608
+ N["language-" + p] = { pattern: /[\s\S]+/, inside: t.languages[p] };
609
609
  var i = {};
610
- i[c] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
611
- return c;
612
- }), "i"), lookbehind: !0, greedy: !0, inside: _ }, t.languages.insertBefore("markup", "cdata", i);
613
- } }), Object.defineProperty(t.languages.markup.tag, "addAttribute", { value: function(c, u) {
614
- t.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + c + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i"), lookbehind: !0, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: !0, alias: [u, "language-" + u], inside: t.languages[u] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
615
- } }), t.languages.html = t.languages.markup, t.languages.mathml = t.languages.markup, t.languages.svg = t.languages.markup, t.languages.xml = t.languages.extend("markup", {}), t.languages.ssml = t.languages.xml, t.languages.atom = t.languages.xml, t.languages.rss = t.languages.xml, function(c) {
616
- var u = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
617
- c.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + u.source + ")*?" + /(?:;|(?=\s*\{))/.source), inside: { rule: /^@[\w-]+/, "selector-function-argument": { pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, lookbehind: !0, alias: "selector" }, keyword: { pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, lookbehind: !0 } } }, url: { pattern: RegExp("\\burl\\((?:" + u.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"), greedy: !0, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + u.source + "$"), alias: "url" } } }, selector: { pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + u.source + ")*(?=\\s*\\{)"), lookbehind: !0 }, string: { pattern: u, greedy: !0 }, property: { pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, lookbehind: !0 }, important: /!important\b/i, function: { pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: !0 }, punctuation: /[(){};:,]/ }, c.languages.css.atrule.inside.rest = c.languages.css;
618
- var m = c.languages.markup;
610
+ i[l] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
611
+ return l;
612
+ }), "i"), lookbehind: !0, greedy: !0, inside: N }, t.languages.insertBefore("markup", "cdata", i);
613
+ } }), Object.defineProperty(t.languages.markup.tag, "addAttribute", { value: function(l, p) {
614
+ t.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + l + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i"), lookbehind: !0, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: !0, alias: [p, "language-" + p], inside: t.languages[p] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
615
+ } }), t.languages.html = t.languages.markup, t.languages.mathml = t.languages.markup, t.languages.svg = t.languages.markup, t.languages.xml = t.languages.extend("markup", {}), t.languages.ssml = t.languages.xml, t.languages.atom = t.languages.xml, t.languages.rss = t.languages.xml, function(l) {
616
+ var p = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
617
+ l.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + p.source + ")*?" + /(?:;|(?=\s*\{))/.source), inside: { rule: /^@[\w-]+/, "selector-function-argument": { pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, lookbehind: !0, alias: "selector" }, keyword: { pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, lookbehind: !0 } } }, url: { pattern: RegExp("\\burl\\((?:" + p.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"), greedy: !0, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + p.source + "$"), alias: "url" } } }, selector: { pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + p.source + ")*(?=\\s*\\{)"), lookbehind: !0 }, string: { pattern: p, greedy: !0 }, property: { pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, lookbehind: !0 }, important: /!important\b/i, function: { pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: !0 }, punctuation: /[(){};:,]/ }, l.languages.css.atrule.inside.rest = l.languages.css;
618
+ var m = l.languages.markup;
619
619
  m && (m.tag.addInlined("style", "css"), m.tag.addAttribute("style", "css"));
620
620
  }(t), t.languages.clike = { comment: [{ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: !0 }, "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: !0, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, boolean: /\b(?:false|true)\b/, function: /\b\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, punctuation: /[{}[\];(),.:]/ }, t.languages.javascript = t.languages.extend("clike", { "class-name": [t.languages.clike["class-name"], { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, lookbehind: !0 }], keyword: [{ pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 }, { pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, lookbehind: !0 }], function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, number: { pattern: RegExp(/(^|[^\w$])/.source + "(?:" + /NaN|Infinity/.source + "|" + /0[bB][01]+(?:_[01]+)*n?/.source + "|" + /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + /\d+(?:_\d+)*n/.source + "|" + /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source + ")" + /(?![\w$])/.source), lookbehind: !0 }, operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ }), t.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, t.languages.insertBefore("javascript", "keyword", { regex: { pattern: RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source), lookbehind: !0, greedy: !0, inside: { "regex-source": { pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, lookbehind: !0, alias: "language-regex", inside: t.languages.regex }, "regex-delimiter": /^\/|\/$/, "regex-flags": /^[a-z]+$/ } }, "function-variable": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/, alias: "function" }, parameter: [{ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, lookbehind: !0, inside: t.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: t.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: t.languages.javascript }, { pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/, lookbehind: !0, inside: t.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), t.languages.insertBefore("javascript", "string", { hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" }, "template-string": { pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, lookbehind: !0, inside: { "interpolation-punctuation": { pattern: /^\$\{|\}$/, alias: "punctuation" }, rest: t.languages.javascript } }, string: /[\s\S]+/ } }, "string-property": { pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, lookbehind: !0, greedy: !0, alias: "property" } }), t.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), t.languages.markup && (t.languages.markup.tag.addInlined("script", "javascript"), t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source, "javascript")), t.languages.js = t.languages.javascript, function() {
621
621
  if (t !== void 0 && typeof document < "u") {
622
622
  Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
623
- var c = { js: "javascript", py: "python", rb: "ruby", ps1: "powershell", psm1: "powershell", sh: "bash", bat: "batch", h: "c", tex: "latex" }, u = "data-src-status", m = "loading", _ = "loaded", i = "pre[data-src]:not([" + u + '="' + _ + '"]):not([' + u + '="' + m + '"])';
623
+ var l = { js: "javascript", py: "python", rb: "ruby", ps1: "powershell", psm1: "powershell", sh: "bash", bat: "batch", h: "c", tex: "latex" }, p = "data-src-status", m = "loading", N = "loaded", i = "pre[data-src]:not([" + p + '="' + N + '"]):not([' + p + '="' + m + '"])';
624
624
  t.hooks.add("before-highlightall", function(y) {
625
625
  y.selector += ", " + i;
626
626
  }), t.hooks.add("before-sanity-check", function(y) {
627
627
  var b = y.element;
628
628
  if (b.matches(i)) {
629
- y.code = "", b.setAttribute(u, m);
630
- var x = b.appendChild(document.createElement("CODE"));
631
- x.textContent = "Loading…";
632
- var k = b.getAttribute("data-src"), F = y.language;
633
- if (F === "none") {
634
- var v = (/\.(\w+)$/.exec(k) || [, "none"])[1];
635
- F = c[v] || v;
629
+ y.code = "", b.setAttribute(p, m);
630
+ var v = b.appendChild(document.createElement("CODE"));
631
+ v.textContent = "Loading…";
632
+ var A = b.getAttribute("data-src"), L = y.language;
633
+ if (L === "none") {
634
+ var x = (/\.(\w+)$/.exec(A) || [, "none"])[1];
635
+ L = l[x] || x;
636
636
  }
637
- t.util.setLanguage(x, F), t.util.setLanguage(b, F);
638
- var j = t.plugins.autoloader;
639
- j && j.loadLanguages(F), function(L, r, e) {
640
- var a = new XMLHttpRequest();
641
- a.open("GET", L, !0), a.onreadystatechange = function() {
642
- a.readyState == 4 && (a.status < 400 && a.responseText ? r(a.responseText) : a.status >= 400 ? e("✖ Error " + a.status + " while fetching file: " + a.statusText) : e("✖ Error: File does not exist or is empty"));
643
- }, a.send(null);
644
- }(k, function(L) {
645
- b.setAttribute(u, _);
637
+ t.util.setLanguage(v, L), t.util.setLanguage(b, L);
638
+ var O = t.plugins.autoloader;
639
+ O && O.loadLanguages(L), function(M, r, e) {
640
+ var o = new XMLHttpRequest();
641
+ o.open("GET", M, !0), o.onreadystatechange = function() {
642
+ o.readyState == 4 && (o.status < 400 && o.responseText ? r(o.responseText) : o.status >= 400 ? e("✖ Error " + o.status + " while fetching file: " + o.statusText) : e("✖ Error: File does not exist or is empty"));
643
+ }, o.send(null);
644
+ }(A, function(M) {
645
+ b.setAttribute(p, N);
646
646
  var r = function(s) {
647
- var p = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(s || "");
648
- if (p) {
649
- var d = Number(p[1]), E = p[2], H = p[3];
650
- return E ? H ? [d, Number(H)] : [d, void 0] : [d, d];
647
+ var u = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(s || "");
648
+ if (u) {
649
+ var d = Number(u[1]), E = u[2], B = u[3];
650
+ return E ? B ? [d, Number(B)] : [d, void 0] : [d, d];
651
651
  }
652
652
  }(b.getAttribute("data-range"));
653
653
  if (r) {
654
- var e = L.split(/\r\n?|\n/g), a = r[0], o = r[1] == null ? e.length : r[1];
655
- a < 0 && (a += e.length), a = Math.max(0, Math.min(a - 1, e.length)), o < 0 && (o += e.length), o = Math.max(0, Math.min(o, e.length)), L = e.slice(a, o).join(`
656
- `), b.hasAttribute("data-start") || b.setAttribute("data-start", String(a + 1));
654
+ var e = M.split(/\r\n?|\n/g), o = r[0], a = r[1] == null ? e.length : r[1];
655
+ o < 0 && (o += e.length), o = Math.max(0, Math.min(o - 1, e.length)), a < 0 && (a += e.length), a = Math.max(0, Math.min(a, e.length)), M = e.slice(o, a).join(`
656
+ `), b.hasAttribute("data-start") || b.setAttribute("data-start", String(o + 1));
657
657
  }
658
- x.textContent = L, t.highlightElement(x);
659
- }, function(L) {
660
- b.setAttribute(u, "failed"), x.textContent = L;
658
+ v.textContent = M, t.highlightElement(v);
659
+ }, function(M) {
660
+ b.setAttribute(p, "failed"), v.textContent = M;
661
661
  });
662
662
  }
663
663
  }), t.plugins.fileHighlight = { highlight: function(y) {
664
- for (var b, x = (y || document).querySelectorAll(i), k = 0; b = x[k++]; ) t.highlightElement(b);
664
+ for (var b, v = (y || document).querySelectorAll(i), A = 0; b = v[A++]; ) t.highlightElement(b);
665
665
  } };
666
- var N = !1;
666
+ var _ = !1;
667
667
  t.fileHighlight = function() {
668
- N || (N = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
668
+ _ || (_ = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
669
669
  };
670
670
  }
671
671
  }();
672
- })(Ye);
673
- const Ue = Ve(Ye.exports);
672
+ })(He);
673
+ const $e = Ke(He.exports);
674
674
  Prism.languages.clike = { comment: [{ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: !0 }, "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: !0, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, boolean: /\b(?:false|true)\b/, function: /\b\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, punctuation: /[{}[\];(),.:]/ }, Prism.languages.javascript = Prism.languages.extend("clike", { "class-name": [Prism.languages.clike["class-name"], { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, lookbehind: !0 }], keyword: [{ pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 }, { pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, lookbehind: !0 }], function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, number: { pattern: RegExp(/(^|[^\w$])/.source + "(?:" + /NaN|Infinity/.source + "|" + /0[bB][01]+(?:_[01]+)*n?/.source + "|" + /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + /\d+(?:_\d+)*n/.source + "|" + /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source + ")" + /(?![\w$])/.source), lookbehind: !0 }, operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ }), Prism.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, Prism.languages.insertBefore("javascript", "keyword", { regex: { pattern: RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source), lookbehind: !0, greedy: !0, inside: { "regex-source": { pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, lookbehind: !0, alias: "language-regex", inside: Prism.languages.regex }, "regex-delimiter": /^\/|\/$/, "regex-flags": /^[a-z]+$/ } }, "function-variable": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/, alias: "function" }, parameter: [{ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, lookbehind: !0, inside: Prism.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: Prism.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: Prism.languages.javascript }, { pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/, lookbehind: !0, inside: Prism.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), Prism.languages.insertBefore("javascript", "string", { hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" }, "template-string": { pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, lookbehind: !0, inside: { "interpolation-punctuation": { pattern: /^\$\{|\}$/, alias: "punctuation" }, rest: Prism.languages.javascript } }, string: /[\s\S]+/ } }, "string-property": { pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, lookbehind: !0, greedy: !0, alias: "property" } }), Prism.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), Prism.languages.markup && (Prism.languages.markup.tag.addInlined("script", "javascript"), Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source, "javascript")), Prism.languages.js = Prism.languages.javascript, Prism.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: /![sra](?=[:}]$)/, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python, Prism.languages.py = Prism.languages.python, Prism.languages.go = Prism.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/, lookbehind: !0, greedy: !0 }, keyword: /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/, boolean: /\b(?:_|false|iota|nil|true)\b/, number: [/\b0(?:b[01_]+|o[0-7_]+)i?\b/i, /\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i, /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i], operator: /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./, builtin: /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/ }), Prism.languages.insertBefore("go", "string", { char: { pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/, greedy: !0 } }), delete Prism.languages.go["class-name"], function(h) {
675
- var t = /\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/, c = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, u = { pattern: RegExp(/(^|[^\w.])/.source + c + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source), lookbehind: !0, inside: { namespace: { pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/, inside: { punctuation: /\./ } }, punctuation: /\./ } };
676
- h.languages.java = h.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"/, lookbehind: !0, greedy: !0 }, "class-name": [u, { pattern: RegExp(/(^|[^\w.])/.source + c + /[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source), lookbehind: !0, inside: u.inside }, { pattern: RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source + c + /[A-Z]\w*\b/.source), lookbehind: !0, inside: u.inside }], keyword: t, function: [h.languages.clike.function, { pattern: /(::\s*)[a-z_]\w*/, lookbehind: !0 }], number: /\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i, operator: { pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m, lookbehind: !0 }, constant: /\b[A-Z][A-Z_\d]+\b/ }), h.languages.insertBefore("java", "string", { "triple-quoted-string": { pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/, greedy: !0, alias: "string" }, char: { pattern: /'(?:\\.|[^'\\\r\n]){1,6}'/, greedy: !0 } }), h.languages.insertBefore("java", "class-name", { annotation: { pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/, lookbehind: !0, alias: "punctuation" }, generics: { pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/, inside: { "class-name": u, keyword: t, punctuation: /[<>(),.:]/, operator: /[?&|]/ } }, import: [{ pattern: RegExp(/(\bimport\s+)/.source + c + /(?:[A-Z]\w*|\*)(?=\s*;)/.source), lookbehind: !0, inside: { namespace: u.inside.namespace, punctuation: /\./, operator: /\*/, "class-name": /\w+/ } }, { pattern: RegExp(/(\bimport\s+static\s+)/.source + c + /(?:\w+|\*)(?=\s*;)/.source), lookbehind: !0, alias: "static", inside: { namespace: u.inside.namespace, static: /\b\w+$/, punctuation: /\./, operator: /\*/, "class-name": /\w+/ } }], namespace: { pattern: RegExp(/(\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() {
675
+ var t = /\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/, l = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, p = { pattern: RegExp(/(^|[^\w.])/.source + l + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source), lookbehind: !0, inside: { namespace: { pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/, inside: { punctuation: /\./ } }, punctuation: /\./ } };
676
+ h.languages.java = h.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"/, lookbehind: !0, greedy: !0 }, "class-name": [p, { pattern: RegExp(/(^|[^\w.])/.source + l + /[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source), lookbehind: !0, inside: p.inside }, { pattern: RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source + l + /[A-Z]\w*\b/.source), lookbehind: !0, inside: p.inside }], keyword: t, function: [h.languages.clike.function, { pattern: /(::\s*)[a-z_]\w*/, lookbehind: !0 }], number: /\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i, operator: { pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m, lookbehind: !0 }, constant: /\b[A-Z][A-Z_\d]+\b/ }), h.languages.insertBefore("java", "string", { "triple-quoted-string": { pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/, greedy: !0, alias: "string" }, char: { pattern: /'(?:\\.|[^'\\\r\n]){1,6}'/, greedy: !0 } }), h.languages.insertBefore("java", "class-name", { annotation: { pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/, lookbehind: !0, alias: "punctuation" }, generics: { pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/, inside: { "class-name": p, keyword: t, punctuation: /[<>(),.:]/, operator: /[?&|]/ } }, import: [{ pattern: RegExp(/(\bimport\s+)/.source + l + /(?:[A-Z]\w*|\*)(?=\s*;)/.source), lookbehind: !0, inside: { namespace: p.inside.namespace, punctuation: /\./, operator: /\*/, "class-name": /\w+/ } }, { pattern: RegExp(/(\bimport\s+static\s+)/.source + l + /(?:\w+|\*)(?=\s*;)/.source), lookbehind: !0, alias: "static", inside: { namespace: p.inside.namespace, static: /\b\w+$/, punctuation: /\./, operator: /\*/, "class-name": /\w+/ } }], namespace: { pattern: RegExp(/(\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() {
677
677
  return t.source;
678
678
  })), lookbehind: !0, inside: { punctuation: /\./ } } });
679
679
  }(Prism), Prism.languages.c = Prism.languages.extend("clike", { comment: { pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, "class-name": { pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/, lookbehind: !0 }, keyword: /\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/, function: /\b[a-z_]\w*(?=\s*\()/i, number: /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i, operator: />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/ }), Prism.languages.insertBefore("c", "string", { char: { pattern: /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/, greedy: !0 } }), Prism.languages.insertBefore("c", "string", { macro: { pattern: /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im, lookbehind: !0, greedy: !0, alias: "property", inside: { string: [{ pattern: /^(#\s*include\s*)<[^>]+>/, lookbehind: !0 }, Prism.languages.c.string], char: Prism.languages.c.char, comment: Prism.languages.c.comment, "macro-name": [{ pattern: /(^#\s*define\s+)\w+\b(?!\()/i, lookbehind: !0 }, { pattern: /(^#\s*define\s+)\w+\b(?=\()/i, lookbehind: !0, alias: "function" }], directive: { pattern: /^(#\s*)[a-z]+/, lookbehind: !0, alias: "keyword" }, "directive-hash": /^#/, punctuation: /##|\\(?=[\r\n])/, expression: { pattern: /\S[\s\S]*/, inside: Prism.languages.c } } } }), Prism.languages.insertBefore("c", "function", { constant: /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/ }), delete Prism.languages.c.boolean, function(h) {
680
- for (var t = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, c = 0; c < 2; c++) t = t.replace(/<self>/g, function() {
680
+ for (var t = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, l = 0; l < 2; l++) t = t.replace(/<self>/g, function() {
681
681
  return t;
682
682
  });
683
683
  t = t.replace(/<self>/g, function() {
684
684
  return /[^\s\S]/.source;
685
685
  }), h.languages.rust = { comment: [{ pattern: RegExp(/(^|[^\\])/.source + t), lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/, greedy: !0 }, char: { pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/, greedy: !0 }, attribute: { pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/, greedy: !0, alias: "attr-name", inside: { string: null } }, "closure-params": { pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/, lookbehind: !0, greedy: !0, inside: { "closure-punctuation": { pattern: /^\||\|$/, alias: "punctuation" }, rest: null } }, "lifetime-annotation": { pattern: /'\w+/, alias: "symbol" }, "fragment-specifier": { pattern: /(\$\w+:)[a-z]+/, lookbehind: !0, alias: "punctuation" }, variable: /\$\w+/, "function-definition": { pattern: /(\bfn\s+)\w+/, lookbehind: !0, alias: "function" }, "type-definition": { pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/, lookbehind: !0, alias: "class-name" }, "module-declaration": [{ pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/, lookbehind: !0, alias: "namespace" }, { pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/, lookbehind: !0, alias: "namespace", inside: { punctuation: /::/ } }], keyword: [/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/, /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/], function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/, macro: { pattern: /\b\w+!/, alias: "property" }, constant: /\b[A-Z_][A-Z_\d]+\b/, "class-name": /\b[A-Z]\w*\b/, namespace: { pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/, inside: { punctuation: /::/ } }, number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/, boolean: /\b(?:false|true)\b/, punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/, operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/ }, h.languages.rust["closure-params"].inside.rest = h.languages.rust, h.languages.rust.attribute.inside.string = h.languages.rust.string;
686
686
  }(Prism), Prism.languages.sql = { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/, lookbehind: !0 }, variable: [{ pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: !0 }, /@[\w.$]+/], string: { pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/, greedy: !0, lookbehind: !0 }, identifier: { pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/, greedy: !0, lookbehind: !0, inside: { punctuation: /^`|`$/ } }, function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i, keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i, boolean: /\b(?:FALSE|NULL|TRUE)\b/i, number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i, operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i, punctuation: /[;[\]()`,.]/ }, function(h) {
687
- var t = "\\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", c = { pattern: /(^(["']?)\w+\2)[ \t]+\S.*/, lookbehind: !0, alias: "punctuation", inside: null }, u = { bash: c, environment: { pattern: RegExp("\\$" + t), alias: "constant" }, variable: [{ pattern: /\$?\(\([\s\S]+?\)\)/, greedy: !0, inside: { variable: [{ pattern: /(^\$\(\([\s\S]+)\)\)/, lookbehind: !0 }, /^\$\(\(/], number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/, operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/, punctuation: /\(\(?|\)\)?|,|;/ } }, { pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/, greedy: !0, inside: { variable: /^\$\(|^`|\)$|`$/ } }, { pattern: /\$\{[^}]+\}/, greedy: !0, inside: { operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/, punctuation: /[\[\]]/, environment: { pattern: RegExp("(\\{)" + t), lookbehind: !0, alias: "constant" } } }, /\$(?:\w+|[#?*!@$])/], 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})/ };
688
- h.languages.bash = { shebang: { pattern: /^#!\s*\/.*/, alias: "important" }, comment: { pattern: /(^|[^"{\\$])#.*/, lookbehind: !0 }, "function-name": [{ pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/, lookbehind: !0, alias: "function" }, { pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/, alias: "function" }], "for-or-select": { pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/, alias: "variable", lookbehind: !0 }, "assign-left": { pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/, inside: { environment: { pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + t), lookbehind: !0, alias: "constant" } }, alias: "variable", lookbehind: !0 }, parameter: { pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/, alias: "variable", lookbehind: !0 }, string: [{ pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/, lookbehind: !0, greedy: !0, inside: u }, { pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/, lookbehind: !0, greedy: !0, inside: { bash: c } }, { pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/, lookbehind: !0, greedy: !0, inside: u }, { pattern: /(^|[^$\\])'[^']*'/, lookbehind: !0, greedy: !0 }, { pattern: /\$'(?:[^'\\]|\\[\s\S])*'/, greedy: !0, inside: { entity: u.entity } }], environment: { pattern: RegExp("\\$?" + t), alias: "constant" }, variable: u.variable, function: { 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;|&])/, lookbehind: !0 }, keyword: { pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/, lookbehind: !0 }, builtin: { pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/, lookbehind: !0, alias: "class-name" }, boolean: { pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/, lookbehind: !0 }, "file-descriptor": { pattern: /\B&\d\b/, alias: "important" }, operator: { pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/, inside: { "file-descriptor": { pattern: /^\d/, alias: "important" } } }, punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/, number: { pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/, lookbehind: !0 } }, c.inside = h.languages.bash;
689
- for (var m = ["comment", "function-name", "for-or-select", "assign-left", "parameter", "string", "environment", "function", "keyword", "builtin", "boolean", "file-descriptor", "operator", "punctuation", "number"], _ = u.variable[1].inside, i = 0; i < m.length; i++) _[m[i]] = h.languages.bash[m[i]];
687
+ var t = "\\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", l = { pattern: /(^(["']?)\w+\2)[ \t]+\S.*/, lookbehind: !0, alias: "punctuation", inside: null }, p = { bash: l, environment: { pattern: RegExp("\\$" + t), alias: "constant" }, variable: [{ pattern: /\$?\(\([\s\S]+?\)\)/, greedy: !0, inside: { variable: [{ pattern: /(^\$\(\([\s\S]+)\)\)/, lookbehind: !0 }, /^\$\(\(/], number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/, operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/, punctuation: /\(\(?|\)\)?|,|;/ } }, { pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/, greedy: !0, inside: { variable: /^\$\(|^`|\)$|`$/ } }, { pattern: /\$\{[^}]+\}/, greedy: !0, inside: { operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/, punctuation: /[\[\]]/, environment: { pattern: RegExp("(\\{)" + t), lookbehind: !0, alias: "constant" } } }, /\$(?:\w+|[#?*!@$])/], 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})/ };
688
+ h.languages.bash = { shebang: { pattern: /^#!\s*\/.*/, alias: "important" }, comment: { pattern: /(^|[^"{\\$])#.*/, lookbehind: !0 }, "function-name": [{ pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/, lookbehind: !0, alias: "function" }, { pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/, alias: "function" }], "for-or-select": { pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/, alias: "variable", lookbehind: !0 }, "assign-left": { pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/, inside: { environment: { pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + t), lookbehind: !0, alias: "constant" } }, alias: "variable", lookbehind: !0 }, parameter: { pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/, alias: "variable", lookbehind: !0 }, string: [{ pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/, lookbehind: !0, greedy: !0, inside: p }, { pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/, lookbehind: !0, greedy: !0, inside: { bash: l } }, { pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/, lookbehind: !0, greedy: !0, inside: p }, { pattern: /(^|[^$\\])'[^']*'/, lookbehind: !0, greedy: !0 }, { pattern: /\$'(?:[^'\\]|\\[\s\S])*'/, greedy: !0, inside: { entity: p.entity } }], environment: { pattern: RegExp("\\$?" + t), alias: "constant" }, variable: p.variable, function: { 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;|&])/, lookbehind: !0 }, keyword: { pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/, lookbehind: !0 }, builtin: { pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/, lookbehind: !0, alias: "class-name" }, boolean: { pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/, lookbehind: !0 }, "file-descriptor": { pattern: /\B&\d\b/, alias: "important" }, operator: { pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/, inside: { "file-descriptor": { pattern: /^\d/, alias: "important" } } }, punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/, number: { pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/, lookbehind: !0 } }, l.inside = h.languages.bash;
689
+ for (var m = ["comment", "function-name", "for-or-select", "assign-left", "parameter", "string", "environment", "function", "keyword", "builtin", "boolean", "file-descriptor", "operator", "punctuation", "number"], N = p.variable[1].inside, i = 0; i < m.length; i++) N[m[i]] = h.languages.bash[m[i]];
690
690
  h.languages.sh = h.languages.bash, h.languages.shell = h.languages.bash;
691
691
  }(Prism), Prism.languages.json = { property: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, lookbehind: !0, greedy: !0 }, string: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, lookbehind: !0, greedy: !0 }, comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, punctuation: /[{}[\],]/, operator: /:/, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" } }, Prism.languages.webmanifest = Prism.languages.json;
692
- window.Prism = Ue;
693
- const qe = { javascript: "javascript", js: "javascript", typescript: "typescript", ts: "typescript", python: "python", py: "python", java: "java", c: "c", cpp: "cpp", "c++": "cpp", csharp: "csharp", "c#": "csharp", go: "go", golang: "go", rust: "rust", ruby: "ruby", rb: "ruby", php: "php", swift: "swift", kotlin: "kotlin", kt: "kotlin", sql: "sql", bash: "bash", sh: "bash", shell: "bash", json: "json", yaml: "yaml", yml: "yaml", markdown: "markdown", md: "markdown" }, Je = ({ value: h, language: t, theme: c = "dark", disabled: u = !1, onChange: m, onCodeChange: _ }) => {
694
- const i = Fe(null), N = Fe(null), y = Fe(null), b = Se(() => qe[t.toLowerCase()] || "javascript", [t]), x = c === "dark" ? "#1e1e1e" : "#fafafa", k = Se(() => {
692
+ window.Prism = $e;
693
+ const Ve = { javascript: "javascript", js: "javascript", typescript: "typescript", ts: "typescript", python: "python", py: "python", java: "java", c: "c", cpp: "cpp", "c++": "cpp", csharp: "csharp", "c#": "csharp", go: "go", golang: "go", rust: "rust", ruby: "ruby", rb: "ruby", php: "php", swift: "swift", kotlin: "kotlin", kt: "kotlin", sql: "sql", bash: "bash", sh: "bash", shell: "bash", json: "json", yaml: "yaml", yml: "yaml", markdown: "markdown", md: "markdown" }, qe = ({ value: h, language: t, theme: l = "dark", disabled: p = !1, onChange: m, onCodeChange: N }) => {
694
+ const i = Le(null), _ = Le(null), y = Le(null), b = we(() => Ve[t.toLowerCase()] || "javascript", [t]), v = l === "dark" ? "#1e1e1e" : "#fafafa", A = we(() => {
695
695
  try {
696
- const v = Ue.languages[b];
697
- if (v) return Ue.highlight(h || "", v, b);
696
+ const x = $e.languages[b];
697
+ if (x) return $e.highlight(h || "", x, b);
698
698
  } catch {
699
699
  }
700
- return function(v) {
701
- const j = document.createElement("div");
702
- return j.textContent = v, j.innerHTML;
700
+ return function(x) {
701
+ const O = document.createElement("div");
702
+ return O.textContent = x, O.innerHTML;
703
703
  }(h || "");
704
- }, [h, b]), F = pe((v) => {
704
+ }, [h, b]), L = le((x) => {
705
705
  y.current && clearTimeout(y.current), y.current = setTimeout(() => {
706
- _ == null || _(v);
706
+ N == null || N(x);
707
707
  }, 500);
708
- }, [_]);
709
- return xe(() => () => {
708
+ }, [N]);
709
+ return Se(() => () => {
710
710
  y.current && clearTimeout(y.current);
711
- }, []), xe(() => {
712
- (function(v) {
711
+ }, []), Se(() => {
712
+ (function(x) {
713
713
  if (typeof document > "u") return;
714
- const j = "hep-cr-prism-styles", L = document.getElementById(j), r = v === "dark" ? `
714
+ const O = "hep-cr-prism-styles", M = document.getElementById(O), r = x === "dark" ? `
715
715
  /* 默认代码颜色 */
716
716
  .hep-cr-editor .hep-cr-highlight code,
717
717
  .hep-cr-editor .hep-cr-highlight pre {
@@ -873,21 +873,21 @@ const qe = { javascript: "javascript", js: "javascript", typescript: "typescript
873
873
  color: #333 !important;
874
874
  }
875
875
  `;
876
- L && L.remove();
876
+ M && M.remove();
877
877
  const e = document.createElement("style");
878
- e.id = j, e.textContent = r, document.head.appendChild(e);
879
- })(c);
880
- }, [c]), l.jsxs("div", { className: `hep-cr-editor theme-${c}`, style: { background: x }, children: [l.jsx("pre", { ref: N, className: `hep-cr-highlight language-${b}`, "aria-hidden": "true", children: l.jsx("code", { dangerouslySetInnerHTML: { __html: k } }) }), l.jsx("textarea", { ref: i, className: "hep-cr-input", value: h, disabled: u, onChange: (v) => {
881
- const j = v.target.value;
882
- m == null || m(j), F(j);
878
+ e.id = O, e.textContent = r, document.head.appendChild(e);
879
+ })(l);
880
+ }, [l]), c.jsxs("div", { className: `hep-cr-editor theme-${l}`, style: { background: v }, children: [c.jsx("pre", { ref: _, className: `hep-cr-highlight language-${b}`, "aria-hidden": "true", children: c.jsx("code", { dangerouslySetInnerHTML: { __html: A } }) }), c.jsx("textarea", { ref: i, className: "hep-cr-input", value: h, disabled: p, onChange: (x) => {
881
+ const O = x.target.value;
882
+ m == null || m(O), L(O);
883
883
  }, onScroll: () => {
884
- i.current && N.current && (N.current.scrollTop = i.current.scrollTop, N.current.scrollLeft = i.current.scrollLeft);
885
- }, onKeyDown: (v) => {
886
- if (v.key === "Tab") {
887
- v.preventDefault();
888
- const j = v.target, L = j.selectionStart, r = j.selectionEnd, e = h.substring(0, L) + " " + h.substring(r);
889
- m == null || m(e), F(e), requestAnimationFrame(() => {
890
- j.selectionStart = j.selectionEnd = L + 2;
884
+ i.current && _.current && (_.current.scrollTop = i.current.scrollTop, _.current.scrollLeft = i.current.scrollLeft);
885
+ }, onKeyDown: (x) => {
886
+ if (x.key === "Tab") {
887
+ x.preventDefault();
888
+ const O = x.target, M = O.selectionStart, r = O.selectionEnd, e = h.substring(0, M) + " " + h.substring(r);
889
+ m == null || m(e), L(e), requestAnimationFrame(() => {
890
+ O.selectionStart = O.selectionEnd = M + 2;
891
891
  });
892
892
  }
893
893
  }, spellCheck: !1, placeholder: "Write your code here..." })] });
@@ -956,186 +956,113 @@ if (typeof document < "u") {
956
956
  `, document.head.appendChild(t);
957
957
  }
958
958
  }
959
- var Qe = Object.defineProperty, We = (h, t, c) => ((u, m, _) => m in u ? Qe(u, m, { enumerable: !0, configurable: !0, writable: !0, value: _ }) : u[m] = _)(h, typeof t != "symbol" ? t + "" : t, c);
960
- let De = null;
961
- class en {
959
+ var Je = Object.defineProperty, Ge = (h, t, l) => ((p, m, N) => m in p ? Je(p, m, { enumerable: !0, configurable: !0, writable: !0, value: N }) : p[m] = N)(h, typeof t != "symbol" ? t + "" : t, l);
960
+ let je = null;
961
+ class Qe {
962
962
  constructor(t = {}) {
963
- We(this, "baseUrl"), We(this, "timeout"), this.baseUrl = t.pistonUrl || "/api/piston", this.timeout = t.timeout || 3e3;
963
+ Ge(this, "baseUrl"), Ge(this, "timeout"), this.baseUrl = t.pistonUrl || "/api/piston", this.timeout = t.timeout || 3e3;
964
964
  }
965
965
  async getRuntimes(t = !1) {
966
- if (De && !t) return De;
966
+ if (je && !t) return je;
967
967
  try {
968
- const c = await fetch(`${this.baseUrl}/runtimes`, { method: "GET", headers: { "Content-Type": "application/json" } });
969
- if (!c.ok) throw new Error(`Failed to fetch runtimes: ${c.statusText}`);
970
- const u = await c.json();
971
- return De = u, u;
972
- } catch (c) {
973
- throw c;
968
+ const l = await fetch(`${this.baseUrl}/runtimes`, { method: "GET", headers: { "Content-Type": "application/json" } });
969
+ if (!l.ok) throw new Error(`Failed to fetch runtimes: ${l.statusText}`);
970
+ const p = await l.json();
971
+ return je = p, p;
972
+ } catch (l) {
973
+ throw l;
974
974
  }
975
975
  }
976
- async execute(t, c, u = {}) {
976
+ async execute(t, l, p = {}) {
977
977
  const m = (await this.getRuntimes()).find((y) => {
978
978
  var b;
979
- return y.language.toLowerCase() === t.toLowerCase() || ((b = y.aliases) == null ? void 0 : b.some((x) => x.toLowerCase() === t.toLowerCase()));
979
+ return y.language.toLowerCase() === t.toLowerCase() || ((b = y.aliases) == null ? void 0 : b.some((v) => v.toLowerCase() === t.toLowerCase()));
980
980
  });
981
981
  if (!m) throw new Error(`Language '${t}' is not supported`);
982
- const _ = this.getFileName(t), i = { language: m.language, version: u.version || m.version, files: [{ name: _, content: c }], stdin: u.stdin || "", args: u.args || [], run_timeout: u.runTimeout || this.timeout, compile_timeout: this.timeout }, N = Date.now();
982
+ const N = this.getFileName(t), i = { language: m.language, version: p.version || m.version, files: [{ name: N, content: l }], stdin: p.stdin || "", args: p.args || [], run_timeout: p.runTimeout || this.timeout, compile_timeout: this.timeout }, _ = Date.now();
983
983
  try {
984
984
  const y = await fetch(`${this.baseUrl}/execute`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(i) });
985
985
  if (!y.ok) throw new Error(`Execute failed: ${y.statusText}`);
986
- const b = await y.json(), x = Date.now() - N, k = b.run.stdout || "", F = b.run.stderr || "";
987
- return { success: b.run.code === 0, output: k, stderr: F, code: b.run.code, executionTime: x, compile: b.compile ? { stdout: b.compile.stdout || "", stderr: b.compile.stderr || "", code: b.compile.code } : void 0 };
986
+ const b = await y.json(), v = Date.now() - _, A = b.run.stdout || "", L = b.run.stderr || "";
987
+ return { success: b.run.code === 0, output: A, stderr: L, code: b.run.code, executionTime: v, compile: b.compile ? { stdout: b.compile.stdout || "", stderr: b.compile.stderr || "", code: b.compile.code } : void 0 };
988
988
  } catch (y) {
989
- return { success: !1, output: "", stderr: y instanceof Error ? y.message : "Unknown error", code: -1, executionTime: Date.now() - N };
989
+ return { success: !1, output: "", stderr: y instanceof Error ? y.message : "Unknown error", code: -1, executionTime: Date.now() - _ };
990
990
  }
991
991
  }
992
992
  getFileName(t) {
993
993
  return { javascript: "main.js", typescript: "main.ts", python: "main.py", python3: "main.py", go: "main.go", rust: "main.rs", java: "Main.java", c: "main.c", cpp: "main.cpp", csharp: "Main.cs", ruby: "main.rb", php: "main.php", bash: "main.sh", shell: "main.sh", perl: "main.pl", lua: "main.lua", swift: "main.swift", kotlin: "Main.kt", scala: "Main.scala", haskell: "main.hs", dart: "main.dart", html: "index.html", css: "style.css", sql: "query.sql", markdown: "readme.md" }[t.toLowerCase()] || `main.${t}`;
994
994
  }
995
995
  }
996
- const nn = { javascript: 'console.log("Hello, World!");', typescript: 'console.log("Hello, World!");', python: 'print("Hello, World!")', python3: 'print("Hello, World!")', go: `package main
997
-
998
- import "fmt"
999
-
1000
- func main() {
1001
- fmt.Println("Hello, World!")
1002
- }`, rust: `fn main() {
1003
- println!("Hello, World!");
1004
- }`, java: `public class Main {
1005
- public static void main(String[] args) {
1006
- System.out.println("Hello, World!");
1007
- }
1008
- }`, c: `#include <stdio.h>
1009
-
1010
- int main() {
1011
- printf("Hello, World!\\n");
1012
- return 0;
1013
- }`, cpp: `#include <iostream>
1014
-
1015
- int main() {
1016
- std::cout << "Hello, World!" << std::endl;
1017
- return 0;
1018
- }`, csharp: `using System;
1019
-
1020
- class Main {
1021
- static void Main() {
1022
- Console.WriteLine("Hello, World!");
1023
- }
1024
- }`, ruby: 'puts "Hello, World!"', php: `<?php
1025
- echo "Hello, World!";
1026
- ?>`, bash: 'echo "Hello, World!"', shell: 'echo "Hello, World!"', perl: 'print "Hello, World!\\n";', lua: 'print("Hello, World!")', r: 'print("Hello, World!")', swift: 'print("Hello, World!")', kotlin: `fun main() {
1027
- println("Hello, World!")
1028
- }`, scala: `object Main extends App {
1029
- println("Hello, World!")
1030
- }`, haskell: 'main = putStrLn "Hello, World!"', elixir: 'IO.puts "Hello, World!"', erlang: 'main() -> io:fwrite("Hello, World!~n").', clojure: '(println "Hello, World!")', fsharp: 'printfn "Hello, World!"', dart: `void main() {
1031
- print("Hello, World!");
1032
- }`, assembly: `section .data
1033
- msg db 'Hello, World!', 0
1034
- section .text
1035
- global _start
1036
- _start:
1037
- mov rax, 1
1038
- mov rdi, 1
1039
- mov rsi, msg
1040
- mov rdx, 13
1041
- syscall
1042
- mov rax, 60
1043
- xor rdi, rdi
1044
- syscall`, html: `<!DOCTYPE html>
1045
- <html>
1046
- <head>
1047
- <title>Hello</title>
1048
- </head>
1049
- <body>
1050
- <h1>Hello, World!</h1>
1051
- </body>
1052
- </html>`, css: `body {
1053
- background-color: #f0f0f0;
1054
- font-family: Arial, sans-serif;
1055
- }
1056
-
1057
- h1 {
1058
- color: #333;
1059
- }`, sql: "SELECT 'Hello, World!' AS message;", markdown: `# Hello, World!
1060
-
1061
- This is a sample markdown document.` };
1062
- function $e(h) {
1063
- const t = h.toLowerCase();
1064
- return nn[t] || `// ${h}
1065
- // Write your code here`;
1066
- }
1067
- const tn = ({ pistonUrl: h = "/api/piston", language: t = "javascript", defaultLanguage: c = "", theme: u = "light", themeColor: m = "", showLanguageSelector: _ = !0, showEditor: i = !0, editable: N = !0, defaultCode: y = "", executorLabel: b = "运行", onExecuteStart: x, onExecuteEnd: k, onLanguageChange: F, onChange: v }) => {
1068
- const j = "hep-cr-default-language", [L, r] = q([]), [e, a] = q(c || (typeof window > "u" ? t : localStorage.getItem(j) || t)), [o, s] = q(u), [p, d] = q(y), [E, H] = q(""), [U, re] = q(""), [G, ae] = q(!1), [Ee, ge] = q(null), [Q, z] = q("stdout"), [W, K] = q(null), [X, oe] = q(!0), [ee, ue] = q(60), [V, ne] = q(!1), [J, fe] = q(!1), de = Fe(!1), te = Se(() => new en({ pistonUrl: h }), [h]), he = Se(() => L.map((w) => ({ value: `${w.language}:${w.version}`, label: `${w.language.charAt(0).toUpperCase() + w.language.slice(1)} ${w.version}` })), [L]), me = Se(() => {
996
+ const en = ({ pistonUrl: h = "/api/piston", language: t = "javascript", code: l = "", theme: p = "light", themeColor: m = "", showLanguageSelector: N = !0, showEditor: i = !0, editable: _ = !0, executorLabel: y = "运行", onExecuteStart: b, onExecuteEnd: v, onLanguageChange: A, onLanguageUpdate: L, onCodeUpdate: x, onChange: O }) => {
997
+ const [M, r] = V([]), [e, o] = V(t || "javascript"), [a, s] = V(l), [u, d] = V(p), [E, B] = V(""), [U, ae] = V(""), [H, oe] = V(!1), [me, ue] = V(null), [Q, z] = V("stdout"), [W, Z] = V(null), [q, ie] = V(!0), [ee, pe] = V(60), [K, te] = V(!1), [J, de] = V(!1);
998
+ Se(() => {
999
+ t && t !== e && o(t);
1000
+ }, [t]), Se(() => {
1001
+ l !== void 0 && l !== a && s(l);
1002
+ }, [l]);
1003
+ const re = we(() => new Qe({ pistonUrl: h }), [h]), he = we(() => M.map((k) => ({ value: `${k.language}:${k.version}`, label: `${k.language.charAt(0).toUpperCase() + k.language.slice(1)} ${k.version}` })), [M]), ne = we(() => e.includes(":") ? e.split(":")[0] : e, [e]), ge = we(() => {
1069
1004
  if (!m) return {};
1070
- const w = u === "dark", Z = (le, ye) => {
1071
- const we = parseInt(le.replace("#", ""), 16), Ne = Math.round(2.55 * ye);
1072
- return "#" + (16777216 + 65536 * Math.min(255, Math.max(0, (we >> 16) + Ne)) + 256 * Math.min(255, Math.max(0, (we >> 8 & 255) + Ne)) + Math.min(255, Math.max(0, (255 & we) + Ne))).toString(16).slice(1);
1073
- }, se = ((le) => {
1074
- const ye = parseInt(le.replace("#", ""), 16);
1075
- return (0.299 * (ye >> 16 & 255) + 0.587 * (ye >> 8 & 255) + 0.114 * (255 & ye)) / 255 > 0.5;
1005
+ const k = p === "dark", X = (fe, Ee) => {
1006
+ const xe = parseInt(fe.replace("#", ""), 16), ke = Math.round(2.55 * Ee);
1007
+ return "#" + (16777216 + 65536 * Math.min(255, Math.max(0, (xe >> 16) + ke)) + 256 * Math.min(255, Math.max(0, (xe >> 8 & 255) + ke)) + Math.min(255, Math.max(0, (255 & xe) + ke))).toString(16).slice(1);
1008
+ }, ye = ((fe) => {
1009
+ const Ee = parseInt(fe.replace("#", ""), 16);
1010
+ return (0.299 * (Ee >> 16 & 255) + 0.587 * (Ee >> 8 & 255) + 0.114 * (255 & Ee)) / 255 > 0.5;
1076
1011
  })(m) ? "#000" : "#fff";
1077
- return { "--hep-cr-theme-color": m, "--hep-cr-theme-color-hover": Z(m, w ? 20 : -20), "--hep-cr-tab-active-color": se };
1078
- }, [m, u]), ie = Se(() => e.includes(":") ? e.split(":")[0] : e, [e]);
1079
- xe(() => {
1012
+ return { "--hep-cr-theme-color": m, "--hep-cr-theme-color-hover": X(m, k ? 20 : -20), "--hep-cr-tab-active-color": ye };
1013
+ }, [m, p]);
1014
+ Se(() => {
1080
1015
  (async function() {
1081
- oe(!0), K(null);
1016
+ ie(!0), Z(null);
1082
1017
  try {
1083
- const w = await te.getRuntimes();
1084
- r(w);
1085
- } catch (w) {
1086
- K(w instanceof Error ? w.message : "Failed to load runtimes");
1018
+ const k = await re.getRuntimes();
1019
+ r(k);
1020
+ } catch (k) {
1021
+ Z(k instanceof Error ? k.message : "Failed to load runtimes");
1087
1022
  } finally {
1088
- oe(!1);
1023
+ ie(!1);
1089
1024
  }
1090
1025
  })();
1091
- }, [te]), xe(() => {
1092
- !p && L.length > 0 && d(y || $e(ie));
1093
- }, [L, p, y, ie]), xe(() => {
1094
- v == null || v(p);
1095
- }, []), xe(() => {
1096
- !X && L.length > 0 && F && !de.current && (de.current = !0, F(ie, p));
1097
- }, [X, L.length]);
1098
- const Ie = pe((w) => {
1099
- const Z = w.target.value, se = Z.includes(":") ? Z.split(":")[0] : Z;
1100
- a(Z);
1101
- const le = $e(se);
1102
- d(le), F == null || F(se, le), c || typeof window > "u" || localStorage.setItem(j, Z);
1103
- }, [F, c]), je = pe(async () => {
1104
- if (!G) {
1105
- ae(!0), H(""), re(""), ge(null), K(null), z("stdout"), x == null || x();
1026
+ }, [re]);
1027
+ const _e = le((k) => {
1028
+ const X = k.target.value;
1029
+ o(X), L == null || L(X), A == null || A(X.includes(":") ? X.split(":")[0] : X, a);
1030
+ }, [a, L, A]), Re = le((k) => {
1031
+ s(k), x == null || x(k), O == null || O(k);
1032
+ }, [x, O]), Ce = le(async () => {
1033
+ if (!H) {
1034
+ oe(!0), B(""), ae(""), ue(null), Z(null), z("stdout"), b == null || b();
1106
1035
  try {
1107
- const w = await te.execute(ie, p);
1108
- H(w.output), re(w.stderr), ge(w.executionTime || null), z(w.stderr ? "stderr" : "stdout"), k == null || k(w);
1109
- } catch (w) {
1110
- const Z = w instanceof Error ? w.message : "Execution failed";
1111
- K(Z), k == null || k({ success: !1, output: "", stderr: Z, code: -1 });
1036
+ const k = await re.execute(ne, a);
1037
+ B(k.output), ae(k.stderr), ue(k.executionTime || null), z(k.stderr ? "stderr" : "stdout"), v == null || v(k);
1038
+ } catch (k) {
1039
+ const X = k instanceof Error ? k.message : "Execution failed";
1040
+ Z(X), v == null || v({ success: !1, output: "", stderr: X, code: -1 });
1112
1041
  } finally {
1113
- ae(!1);
1042
+ oe(!1);
1114
1043
  }
1115
1044
  }
1116
- }, [G, e, p, te, x, k]), Pe = pe(async () => {
1117
- await navigator.clipboard.writeText(p), ne(!0), setTimeout(() => {
1118
- ne(!1);
1045
+ }, [H, ne, a, re, b, v]), Pe = le(async () => {
1046
+ await navigator.clipboard.writeText(a), te(!0), setTimeout(() => {
1047
+ te(!1);
1119
1048
  }, 2e3);
1120
- }, [p]), Ae = pe(async () => {
1121
- const w = Q === "stdout" ? E : U;
1122
- await navigator.clipboard.writeText(w), fe(!0), setTimeout(() => {
1123
- fe(!1);
1049
+ }, [a]), Ae = le(async () => {
1050
+ const k = Q === "stdout" ? E : U;
1051
+ await navigator.clipboard.writeText(k), de(!0), setTimeout(() => {
1052
+ de(!1);
1124
1053
  }, 2e3);
1125
- }, [Q, E, U]), Te = pe(() => {
1126
- d($e(ie));
1127
- }, [e]), ke = Fe(!1), be = pe((w) => {
1128
- ke.current = !0, document.addEventListener("mousemove", ve), document.addEventListener("mouseup", _e), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
1129
- }, []), ve = pe((w) => {
1130
- if (!ke.current) return;
1131
- const Z = document.querySelector(".hep-cr-main");
1132
- if (!Z) return;
1133
- const se = Z.getBoundingClientRect(), le = (w.clientX - se.left) / se.width * 100;
1134
- ue(Math.max(20, Math.min(80, le)));
1135
- }, []), _e = pe(() => {
1136
- ke.current = !1, document.removeEventListener("mousemove", ve), document.removeEventListener("mouseup", _e), document.body.style.cursor = "", document.body.style.userSelect = "";
1137
- }, [ve]);
1138
- return l.jsxs("div", { className: `hep-cr-runner hep-cr-runner-${o}`, style: me, children: [l.jsxs("div", { className: "hep-cr-header", children: [l.jsx("div", { className: "hep-cr-controls", children: _ && l.jsx(l.Fragment, { children: l.jsxs("select", { value: e, onChange: Ie, className: "hep-cr-language-select", disabled: G, children: [X && l.jsx("option", { value: "", children: "加载中..." }), he.map((w) => l.jsx("option", { value: w.value, children: w.label }, w.value))] }) }) }), l.jsxs("div", { className: "hep-cr-actions", children: [l.jsxs("button", { className: "hep-cr-btn hep-cr-btn-run", disabled: G || X, onClick: je, children: [G ? l.jsx("span", { className: "hep-cr-spinner" }) : l.jsx("span", { className: "hep-cr-run-icon", children: "▶" }), G ? "运行中..." : b] }), i && N && l.jsx("button", { className: "hep-cr-btn hep-cr-btn-reset", onClick: Te, children: "重置" }), l.jsx("button", { className: "hep-cr-btn hep-cr-btn-theme", onClick: () => s(o === "light" ? "dark" : "light"), title: o === "light" ? "Switch to dark mode" : "Switch to light mode", children: o === "light" ? l.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: l.jsx("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) }) : l.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [l.jsx("circle", { cx: "12", cy: "12", r: "5" }), l.jsx("line", { x1: "12", y1: "1", x2: "12", y2: "3" }), l.jsx("line", { x1: "12", y1: "21", x2: "12", y2: "23" }), l.jsx("line", { x1: "4.22", y1: "4.22", x2: "5.64", y2: "5.64" }), l.jsx("line", { x1: "18.36", y1: "18.36", x2: "19.78", y2: "19.78" }), l.jsx("line", { x1: "1", y1: "12", x2: "3", y2: "12" }), l.jsx("line", { x1: "21", y1: "12", x2: "23", y2: "12" }), l.jsx("line", { x1: "4.22", y1: "19.78", x2: "5.64", y2: "18.36" }), l.jsx("line", { x1: "18.36", y1: "5.64", x2: "19.78", y2: "4.22" })] }) })] })] }), W && l.jsx("div", { className: "hep-cr-error-message", children: W }), l.jsxs("div", { className: "hep-cr-main", children: [i && l.jsxs("div", { className: "hep-cr-editor-panel", style: { width: `${ee}%` }, children: [l.jsxs("div", { className: "hep-cr-panel-header", children: [l.jsx("span", { className: "hep-cr-panel-title", children: "编辑器" }), l.jsxs("div", { className: "hep-cr-output-actions", children: [l.jsx("span", { className: "hep-cr-language-badge", children: ie }), l.jsx("button", { className: "hep-cr-btn-icon " + (V ? "hep-cr-btn-copied" : ""), disabled: V, onClick: Pe, title: V ? "已复制" : "复制", children: V ? l.jsx("span", { className: "hep-cr-copied-text", children: "已复制" }) : l.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [l.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }), l.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })] }) })] })] }), l.jsx(Je, { value: p, language: ie, theme: o, disabled: !N || G, onChange: d, onCodeChange: v })] }), i && l.jsx("div", { className: "hep-cr-resize-handle", onMouseDown: be, children: l.jsx("div", { className: "hep-cr-resize-line" }) }), l.jsxs("div", { className: "hep-cr-output-panel", style: { width: i ? 100 - ee + "%" : "100%" }, children: [l.jsxs("div", { className: "hep-cr-panel-header", children: [l.jsxs("div", { className: "hep-cr-output-tabs", children: [l.jsx("button", { className: "hep-cr-tab " + (Q === "stdout" ? "active" : ""), onClick: () => z("stdout"), children: "输出" }), U && l.jsx("button", { className: "hep-cr-tab hep-cr-tab-error " + (Q === "stderr" ? "active" : ""), onClick: () => z("stderr"), children: "错误" })] }), l.jsxs("div", { className: "hep-cr-output-actions", children: [Ee !== null && l.jsxs("span", { className: "hep-cr-execution-time", children: [Ee, "ms"] }), l.jsx("button", { className: "hep-cr-btn-icon " + (J ? "hep-cr-btn-copied" : ""), disabled: J, onClick: Ae, title: J ? "已复制" : "复制", children: J ? l.jsx("span", { className: "hep-cr-copied-text", children: "已复制" }) : l.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [l.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }), l.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })] }) })] })] }), l.jsx("div", { className: "hep-cr-output-content", children: l.jsx("pre", { children: Q === "stdout" ? G ? "代码执行中..." : E || '点击"运行"执行代码' : U }) })] })] }), l.jsx("style", { children: `
1054
+ }, [Q, E, U]), be = Le(!1), Fe = le((k) => {
1055
+ be.current = !0, document.addEventListener("mousemove", se), document.addEventListener("mouseup", ve), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
1056
+ }, []), se = le((k) => {
1057
+ if (!be.current) return;
1058
+ const X = document.querySelector(".hep-cr-main");
1059
+ if (!X) return;
1060
+ const ye = X.getBoundingClientRect(), fe = (k.clientX - ye.left) / ye.width * 100;
1061
+ pe(Math.max(20, Math.min(80, fe)));
1062
+ }, []), ve = le(() => {
1063
+ be.current = !1, document.removeEventListener("mousemove", se), document.removeEventListener("mouseup", ve), document.body.style.cursor = "", document.body.style.userSelect = "";
1064
+ }, [se]);
1065
+ return c.jsxs("div", { className: `hep-cr-runner hep-cr-runner-${u}`, style: ge, children: [c.jsxs("div", { className: "hep-cr-header", children: [c.jsx("div", { className: "hep-cr-controls", children: N && c.jsx(c.Fragment, { children: c.jsxs("select", { value: e, onChange: _e, className: "hep-cr-language-select", disabled: H, children: [q && c.jsx("option", { value: "", children: "加载中..." }), he.map((k) => c.jsx("option", { value: k.value, children: k.label }, k.value))] }) }) }), c.jsxs("div", { className: "hep-cr-actions", children: [c.jsxs("button", { className: "hep-cr-btn hep-cr-btn-run", disabled: H || q, onClick: Ce, children: [H ? c.jsx("span", { className: "hep-cr-spinner" }) : c.jsx("span", { className: "hep-cr-run-icon", children: "▶" }), H ? "运行中..." : y] }), c.jsx("button", { className: "hep-cr-btn hep-cr-btn-theme", onClick: () => d(u === "light" ? "dark" : "light"), title: u === "light" ? "Switch to dark mode" : "Switch to light mode", children: u === "light" ? c.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: c.jsx("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) }) : c.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [c.jsx("circle", { cx: "12", cy: "12", r: "5" }), c.jsx("line", { x1: "12", y1: "1", x2: "12", y2: "3" }), c.jsx("line", { x1: "12", y1: "21", x2: "12", y2: "23" }), c.jsx("line", { x1: "4.22", y1: "4.22", x2: "5.64", y2: "5.64" }), c.jsx("line", { x1: "18.36", y1: "18.36", x2: "19.78", y2: "19.78" }), c.jsx("line", { x1: "1", y1: "12", x2: "3", y2: "12" }), c.jsx("line", { x1: "21", y1: "12", x2: "23", y2: "12" }), c.jsx("line", { x1: "4.22", y1: "19.78", x2: "5.64", y2: "18.36" }), c.jsx("line", { x1: "18.36", y1: "5.64", x2: "19.78", y2: "4.22" })] }) })] })] }), W && c.jsx("div", { className: "hep-cr-error-message", children: W }), c.jsxs("div", { className: "hep-cr-main", children: [i && c.jsxs("div", { className: "hep-cr-editor-panel", style: { width: `${ee}%` }, children: [c.jsxs("div", { className: "hep-cr-panel-header", children: [c.jsx("span", { className: "hep-cr-panel-title", children: "编辑器" }), c.jsxs("div", { className: "hep-cr-output-actions", children: [c.jsx("span", { className: "hep-cr-language-badge", children: ne }), c.jsx("button", { className: "hep-cr-btn-icon " + (K ? "hep-cr-btn-copied" : ""), disabled: K, onClick: Pe, title: K ? "已复制" : "复制", children: K ? c.jsx("span", { className: "hep-cr-copied-text", children: "已复制" }) : c.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [c.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }), c.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })] }) })] })] }), c.jsx(qe, { value: a, language: ne, theme: u, disabled: !_ || H, onChange: Re, onCodeChange: O })] }), i && c.jsx("div", { className: "hep-cr-resize-handle", onMouseDown: Fe, children: c.jsx("div", { className: "hep-cr-resize-line" }) }), c.jsxs("div", { className: "hep-cr-output-panel", style: { width: i ? 100 - ee + "%" : "100%" }, children: [c.jsxs("div", { className: "hep-cr-panel-header", children: [c.jsxs("div", { className: "hep-cr-output-tabs", children: [c.jsx("button", { className: "hep-cr-tab " + (Q === "stdout" ? "active" : ""), onClick: () => z("stdout"), children: "输出" }), U && c.jsx("button", { className: "hep-cr-tab hep-cr-tab-error " + (Q === "stderr" ? "active" : ""), onClick: () => z("stderr"), children: "错误" })] }), c.jsxs("div", { className: "hep-cr-output-actions", children: [me !== null && c.jsxs("span", { className: "hep-cr-execution-time", children: [me, "ms"] }), c.jsx("button", { className: "hep-cr-btn-icon " + (J ? "hep-cr-btn-copied" : ""), disabled: J, onClick: Ae, title: J ? "已复制" : "复制", children: J ? c.jsx("span", { className: "hep-cr-copied-text", children: "已复制" }) : c.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [c.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }), c.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })] }) })] })] }), c.jsx("div", { className: "hep-cr-output-content", children: c.jsx("pre", { children: Q === "stdout" ? H ? "代码执行中..." : E || '点击"运行"执行代码' : U }) })] })] }), c.jsx("style", { children: `
1139
1066
  .hep-cr-runner {
1140
1067
  display: flex;
1141
1068
  flex-direction: column;
@@ -1188,8 +1115,6 @@ const tn = ({ pistonUrl: h = "/api/piston", language: t = "javascript", defaultL
1188
1115
  font-weight: 600;
1189
1116
  }
1190
1117
  .hep-cr-btn-run:hover:not(:disabled) { background: var(--hep-cr-theme-color-hover, #43a047); }
1191
- .hep-cr-btn-reset { background: #3d3d3d; color: #aaa; }
1192
- .hep-cr-runner-light .hep-cr-btn-reset { background: #e0e0e0; color: #666; }
1193
1118
  .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; }
1194
1119
  .hep-cr-btn-theme svg { display: block; width: 18px; height: 18px; }
1195
1120
  .hep-cr-runner-light .hep-cr-btn-theme { color: #f57c00; }
@@ -1364,19 +1289,19 @@ const tn = ({ pistonUrl: h = "/api/piston", language: t = "javascript", defaultL
1364
1289
  }
1365
1290
  @keyframes spin { to { transform: rotate(360deg); } }
1366
1291
  ` })] });
1367
- }, rn = Ze(({ open: h, defaultOpen: t = !1, title: c = "代码执行器", width: u = 800, onClose: m, footer: _, theme: i = "light", ...N }, y) => {
1368
- const [b, x] = q(t), k = h !== void 0, F = k ? h : b;
1369
- xe(() => {
1370
- k && h !== b && x(h);
1371
- }, [h, k]);
1372
- const v = pe(() => {
1373
- k || x(!1), m == null || m();
1374
- }, [k, m]);
1375
- Ke(y, () => ({ close: v }));
1376
- const j = typeof u == "number" ? `${u}px` : u;
1377
- return F ? l.jsxs("div", { className: "hep-cr-dialog-overlay", onClick: (L) => {
1378
- L.target === L.currentTarget && v();
1379
- }, children: [l.jsxs("div", { className: "hep-cr-dialog-container", style: { width: j }, children: [l.jsxs("div", { className: "hep-cr-dialog-header", children: [l.jsx("h3", { className: "hep-cr-dialog-title", children: c }), l.jsx("button", { className: "hep-cr-dialog-close", onClick: v, children: l.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [l.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), l.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })] }) })] }), l.jsx("div", { className: "hep-cr-dialog-body", children: l.jsx(tn, { theme: i, ...N }) }), _ && l.jsx("div", { className: "hep-cr-dialog-footer", children: _ })] }), l.jsx("style", { children: `
1292
+ }, nn = Xe(({ open: h, defaultOpen: t = !1, title: l = "代码执行器", width: p = 800, onClose: m, footer: N, theme: i = "light", ..._ }, y) => {
1293
+ const [b, v] = V(t), A = h !== void 0, L = A ? h : b;
1294
+ Se(() => {
1295
+ A && h !== b && v(h);
1296
+ }, [h, A]);
1297
+ const x = le(() => {
1298
+ A || v(!1), m == null || m();
1299
+ }, [A, m]);
1300
+ Ze(y, () => ({ close: x }));
1301
+ const O = typeof p == "number" ? `${p}px` : p;
1302
+ return L ? c.jsxs("div", { className: "hep-cr-dialog-overlay", onClick: (M) => {
1303
+ M.target === M.currentTarget && x();
1304
+ }, children: [c.jsxs("div", { className: "hep-cr-dialog-container", style: { width: O }, children: [c.jsxs("div", { className: "hep-cr-dialog-header", children: [c.jsx("h3", { className: "hep-cr-dialog-title", children: l }), c.jsx("button", { className: "hep-cr-dialog-close", onClick: x, children: c.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [c.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), c.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })] }) })] }), c.jsx("div", { className: "hep-cr-dialog-body", children: c.jsx(en, { theme: i, ..._ }) }), N && c.jsx("div", { className: "hep-cr-dialog-footer", children: N })] }), c.jsx("style", { children: `
1380
1305
  .hep-cr-dialog-overlay {
1381
1306
  position: fixed;
1382
1307
  top: 0;
@@ -1466,9 +1391,9 @@ const tn = ({ pistonUrl: h = "/api/piston", language: t = "javascript", defaultL
1466
1391
  }
1467
1392
  ` })] }) : null;
1468
1393
  });
1469
- rn.displayName = "CodeRunnerDialog";
1394
+ nn.displayName = "CodeRunnerDialog";
1470
1395
  export {
1471
- tn as CodeRunner,
1472
- rn as CodeRunnerDialog,
1473
- tn as default
1396
+ en as CodeRunner,
1397
+ nn as CodeRunnerDialog,
1398
+ en as default
1474
1399
  };