@hep-code-runner/react 1.2.0 → 1.3.0

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.
Files changed (3) hide show
  1. package/dist/index.js +73 -73
  2. package/dist/index.mjs +335 -335
  3. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import qe, { useRef as Oe, useMemo as Ee, useEffect as Se, useState as Z, useCallback as le, forwardRef as xt, useImperativeHandle as St } from "react";
1
+ import qe, { useRef as Oe, useMemo as Ee, useEffect as Se, useState as Z, useCallback as le, forwardRef as xr, useImperativeHandle as Sr } from "react";
2
2
  var Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
- function wt(d) {
3
+ function wr(d) {
4
4
  return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
5
5
  }
6
6
  var Ie = { exports: {} }, be = {};
@@ -14,7 +14,7 @@ var Ie = { exports: {} }, be = {};
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
16
  var Xe;
17
- function At() {
17
+ function Ar() {
18
18
  if (Xe) return be;
19
19
  Xe = 1;
20
20
  var d = qe, f = Symbol.for("react.element"), n = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, m = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 };
@@ -38,7 +38,7 @@ var ve = {};
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
40
  var Ke;
41
- function Tt() {
41
+ function Tr() {
42
42
  return Ke || (Ke = 1, process.env.NODE_ENV !== "production" && function() {
43
43
  var d = qe, f = Symbol.for("react.element"), n = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), l = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), B = Symbol.iterator, F = "@@iterator";
44
44
  function w(e) {
@@ -48,14 +48,14 @@ function Tt() {
48
48
  return typeof a == "function" ? a : null;
49
49
  }
50
50
  var R = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function t(e) {
51
+ function r(e) {
52
52
  {
53
53
  for (var a = arguments.length, u = new Array(a > 1 ? a - 1 : 0), v = 1; v < a; v++)
54
54
  u[v - 1] = arguments[v];
55
- r("error", e, u);
55
+ t("error", e, u);
56
56
  }
57
57
  }
58
- function r(e, a, u) {
58
+ function t(e, a, u) {
59
59
  {
60
60
  var v = R.ReactDebugCurrentFrame, N = v.getStackAddendum();
61
61
  N !== "" && (a += "%s", u = u.concat([N]));
@@ -87,7 +87,7 @@ function Tt() {
87
87
  function V(e) {
88
88
  if (e == null)
89
89
  return null;
90
- if (typeof e.tag == "number" && t("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
90
+ if (typeof e.tag == "number" && r("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
91
  return e.displayName || e.name || null;
92
92
  if (typeof e == "string")
93
93
  return e;
@@ -188,7 +188,7 @@ function Tt() {
188
188
  })
189
189
  });
190
190
  }
191
- ne < 0 && t("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ ne < 0 && r("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
194
  var ae = R.ReactCurrentDispatcher, J;
@@ -205,16 +205,16 @@ function Tt() {
205
205
  ` + J + e;
206
206
  }
207
207
  }
208
- var se = !1, te;
208
+ var se = !1, re;
209
209
  {
210
210
  var A = typeof WeakMap == "function" ? WeakMap : Map;
211
- te = new A();
211
+ re = new A();
212
212
  }
213
213
  function M(e, a) {
214
214
  if (!e || se)
215
215
  return "";
216
216
  {
217
- var u = te.get(e);
217
+ var u = re.get(e);
218
218
  if (u !== void 0)
219
219
  return u;
220
220
  }
@@ -269,7 +269,7 @@ function Tt() {
269
269
  if ($--, U--, U < 0 || x[$] !== Y[U]) {
270
270
  var Q = `
271
271
  ` + x[$].replace(" at new ", " at ");
272
- return e.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", e.displayName)), typeof e == "function" && te.set(e, Q), Q;
272
+ return e.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", e.displayName)), typeof e == "function" && re.set(e, Q), Q;
273
273
  }
274
274
  while ($ >= 1 && U >= 0);
275
275
  break;
@@ -279,9 +279,9 @@ function Tt() {
279
279
  se = !1, ae.current = L, oe(), Error.prepareStackTrace = N;
280
280
  }
281
281
  var he = e ? e.displayName || e.name : "", de = he ? ie(he) : "";
282
- return typeof e == "function" && te.set(e, de), de;
282
+ return typeof e == "function" && re.set(e, de), de;
283
283
  }
284
- function re(e, a, u) {
284
+ function te(e, a, u) {
285
285
  return M(e, !1);
286
286
  }
287
287
  function fe(e) {
@@ -304,7 +304,7 @@ function Tt() {
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
306
  case b:
307
- return re(e.render);
307
+ return te(e.render);
308
308
  case O:
309
309
  return ye(e.type, a, u);
310
310
  case D: {
@@ -340,21 +340,21 @@ function Tt() {
340
340
  } catch ($) {
341
341
  x = $;
342
342
  }
343
- x && !(x instanceof Error) && (xe(N), t("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", u, T, typeof x), xe(null)), x instanceof Error && !(x.message in Ce) && (Ce[x.message] = !0, xe(N), t("Failed %s type: %s", u, x.message), xe(null));
343
+ x && !(x instanceof Error) && (xe(N), r("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", u, T, typeof x), xe(null)), x instanceof Error && !(x.message in Ce) && (Ce[x.message] = !0, xe(N), r("Failed %s type: %s", u, x.message), xe(null));
344
344
  }
345
345
  }
346
346
  }
347
- var et = Array.isArray;
347
+ var er = Array.isArray;
348
348
  function we(e) {
349
- return et(e);
349
+ return er(e);
350
350
  }
351
- function tt(e) {
351
+ function rr(e) {
352
352
  {
353
353
  var a = typeof Symbol == "function" && Symbol.toStringTag, u = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
354
  return u;
355
355
  }
356
356
  }
357
- function rt(e) {
357
+ function tr(e) {
358
358
  try {
359
359
  return Pe(e), !1;
360
360
  } catch {
@@ -365,16 +365,16 @@ function Tt() {
365
365
  return "" + e;
366
366
  }
367
367
  function De(e) {
368
- if (rt(e))
369
- return t("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tt(e)), Pe(e);
368
+ if (tr(e))
369
+ return r("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rr(e)), Pe(e);
370
370
  }
371
- var je = R.ReactCurrentOwner, nt = {
371
+ var je = R.ReactCurrentOwner, nr = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
376
  }, $e, Me;
377
- function at(e) {
377
+ function ar(e) {
378
378
  if (me.call(e, "ref")) {
379
379
  var a = Object.getOwnPropertyDescriptor(e, "ref").get;
380
380
  if (a && a.isReactWarning)
@@ -382,7 +382,7 @@ function Tt() {
382
382
  }
383
383
  return e.ref !== void 0;
384
384
  }
385
- function it(e) {
385
+ function ir(e) {
386
386
  if (me.call(e, "key")) {
387
387
  var a = Object.getOwnPropertyDescriptor(e, "key").get;
388
388
  if (a && a.isReactWarning)
@@ -390,13 +390,13 @@ function Tt() {
390
390
  }
391
391
  return e.key !== void 0;
392
392
  }
393
- function st(e, a) {
393
+ function sr(e, a) {
394
394
  typeof e.ref == "string" && je.current;
395
395
  }
396
- function ot(e, a) {
396
+ function or(e, a) {
397
397
  {
398
398
  var u = function() {
399
- $e || ($e = !0, t("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
399
+ $e || ($e = !0, r("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
400
400
  };
401
401
  u.isReactWarning = !0, Object.defineProperty(e, "key", {
402
402
  get: u,
@@ -404,10 +404,10 @@ function Tt() {
404
404
  });
405
405
  }
406
406
  }
407
- function lt(e, a) {
407
+ function lr(e, a) {
408
408
  {
409
409
  var u = function() {
410
- Me || (Me = !0, t("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
410
+ Me || (Me = !0, r("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
411
411
  };
412
412
  u.isReactWarning = !0, Object.defineProperty(e, "ref", {
413
413
  get: u,
@@ -415,7 +415,7 @@ function Tt() {
415
415
  });
416
416
  }
417
417
  }
418
- var ut = function(e, a, u, v, N, L, T) {
418
+ var ur = function(e, a, u, v, N, L, T) {
419
419
  var x = {
420
420
  // This tag allows us to uniquely identify this as a React Element
421
421
  $$typeof: f,
@@ -444,12 +444,12 @@ function Tt() {
444
444
  value: N
445
445
  }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
446
446
  };
447
- function ct(e, a, u, v, N) {
447
+ function cr(e, a, u, v, N) {
448
448
  {
449
449
  var L, T = {}, x = null, Y = null;
450
- u !== void 0 && (De(u), x = "" + u), it(a) && (De(a.key), x = "" + a.key), at(a) && (Y = a.ref, st(a, N));
450
+ u !== void 0 && (De(u), x = "" + u), ir(a) && (De(a.key), x = "" + a.key), ar(a) && (Y = a.ref, sr(a, N));
451
451
  for (L in a)
452
- me.call(a, L) && !nt.hasOwnProperty(L) && (T[L] = a[L]);
452
+ me.call(a, L) && !nr.hasOwnProperty(L) && (T[L] = a[L]);
453
453
  if (e && e.defaultProps) {
454
454
  var $ = e.defaultProps;
455
455
  for (L in $)
@@ -457,9 +457,9 @@ function Tt() {
457
457
  }
458
458
  if (x || Y) {
459
459
  var U = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
460
- x && ot(T, U), Y && lt(T, U);
460
+ x && or(T, U), Y && lr(T, U);
461
461
  }
462
- return ut(e, x, Y, N, v, je.current, T);
462
+ return ur(e, x, Y, N, v, je.current, T);
463
463
  }
464
464
  }
465
465
  var Ae = R.ReactCurrentOwner, Ue = R.ReactDebugCurrentFrame;
@@ -487,11 +487,11 @@ Check the render method of \`` + e + "`.";
487
487
  return "";
488
488
  }
489
489
  }
490
- function dt(e) {
490
+ function dr(e) {
491
491
  return "";
492
492
  }
493
493
  var Be = {};
494
- function pt(e) {
494
+ function pr(e) {
495
495
  {
496
496
  var a = He();
497
497
  if (!a) {
@@ -508,12 +508,12 @@ Check the top-level render call using <` + u + ">.");
508
508
  if (!e._store || e._store.validated || e.key != null)
509
509
  return;
510
510
  e._store.validated = !0;
511
- var u = pt(a);
511
+ var u = pr(a);
512
512
  if (Be[u])
513
513
  return;
514
514
  Be[u] = !0;
515
515
  var v = "";
516
- e && e._owner && e._owner !== Ae.current && (v = " It was passed a child from " + V(e._owner.type) + "."), ge(e), t('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), ge(null);
516
+ e && e._owner && e._owner !== Ae.current && (v = " It was passed a child from " + V(e._owner.type) + "."), ge(e), r('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), ge(null);
517
517
  }
518
518
  }
519
519
  function We(e, a) {
@@ -535,7 +535,7 @@ Check the top-level render call using <` + u + ">.");
535
535
  }
536
536
  }
537
537
  }
538
- function ft(e) {
538
+ function fr(e) {
539
539
  {
540
540
  var a = e.type;
541
541
  if (a == null || typeof a == "string")
@@ -555,21 +555,21 @@ Check the top-level render call using <` + u + ">.");
555
555
  } else if (a.PropTypes !== void 0 && !Te) {
556
556
  Te = !0;
557
557
  var N = V(a);
558
- t("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
558
+ r("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
559
559
  }
560
- typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && t("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
560
+ typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && r("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
561
  }
562
562
  }
563
- function gt(e) {
563
+ function gr(e) {
564
564
  {
565
565
  for (var a = Object.keys(e.props), u = 0; u < a.length; u++) {
566
566
  var v = a[u];
567
567
  if (v !== "children" && v !== "key") {
568
- ge(e), t("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), ge(null);
568
+ ge(e), r("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), ge(null);
569
569
  break;
570
570
  }
571
571
  }
572
- e.ref !== null && (ge(e), t("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
572
+ e.ref !== null && (ge(e), r("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
573
573
  }
574
574
  }
575
575
  var Ge = {};
@@ -579,12 +579,12 @@ Check the top-level render call using <` + u + ">.");
579
579
  if (!T) {
580
580
  var x = "";
581
581
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
582
- var Y = dt();
582
+ var Y = dr();
583
583
  Y ? x += Y : x += He();
584
584
  var $;
585
- e === null ? $ = "null" : we(e) ? $ = "array" : e !== void 0 && e.$$typeof === f ? ($ = "<" + (V(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof e, t("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, x);
585
+ e === null ? $ = "null" : we(e) ? $ = "array" : e !== void 0 && e.$$typeof === f ? ($ = "<" + (V(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof e, r("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, x);
586
586
  }
587
- var U = ct(e, a, u, N, L);
587
+ var U = cr(e, a, u, N, L);
588
588
  if (U == null)
589
589
  return U;
590
590
  if (T) {
@@ -596,38 +596,38 @@ Check the top-level render call using <` + u + ">.");
596
596
  We(Q[he], e);
597
597
  Object.freeze && Object.freeze(Q);
598
598
  } else
599
- t("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
599
+ r("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
600
600
  else
601
601
  We(Q, e);
602
602
  }
603
603
  if (me.call(a, "key")) {
604
- var de = V(e), K = Object.keys(a).filter(function(yt) {
605
- return yt !== "key";
604
+ var de = V(e), K = Object.keys(a).filter(function(yr) {
605
+ return yr !== "key";
606
606
  }), ke = K.length > 0 ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}";
607
607
  if (!Ge[de + ke]) {
608
- var Et = K.length > 0 ? "{" + K.join(": ..., ") + ": ...}" : "{}";
609
- t(`A props object containing a "key" prop is being spread into JSX:
608
+ var Er = K.length > 0 ? "{" + K.join(": ..., ") + ": ...}" : "{}";
609
+ r(`A props object containing a "key" prop is being spread into JSX:
610
610
  let props = %s;
611
611
  <%s {...props} />
612
612
  React keys must be passed directly to JSX without using spread:
613
613
  let props = %s;
614
- <%s key={someKey} {...props} />`, ke, de, Et, de), Ge[de + ke] = !0;
614
+ <%s key={someKey} {...props} />`, ke, de, Er, de), Ge[de + ke] = !0;
615
615
  }
616
616
  }
617
- return e === c ? gt(U) : ft(U), U;
617
+ return e === c ? gr(U) : fr(U), U;
618
618
  }
619
619
  }
620
- function ht(e, a, u) {
620
+ function hr(e, a, u) {
621
621
  return Ye(e, a, u, !0);
622
622
  }
623
- function mt(e, a, u) {
623
+ function mr(e, a, u) {
624
624
  return Ye(e, a, u, !1);
625
625
  }
626
- var bt = mt, vt = ht;
627
- ve.Fragment = c, ve.jsx = bt, ve.jsxs = vt;
626
+ var br = mr, vr = hr;
627
+ ve.Fragment = c, ve.jsx = br, ve.jsxs = vr;
628
628
  }()), ve;
629
629
  }
630
- process.env.NODE_ENV === "production" ? Ie.exports = At() : Ie.exports = Tt();
630
+ process.env.NODE_ENV === "production" ? Ie.exports = Ar() : Ie.exports = Tr();
631
631
  var h = Ie.exports, Je = { exports: {} };
632
632
  (function(d) {
633
633
  var f = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
@@ -695,8 +695,8 @@ var h = Ie.exports, Je = { exports: {} };
695
695
  * @memberof Prism
696
696
  */
697
697
  util: {
698
- encode: function t(r) {
699
- return r instanceof b ? new b(r.type, t(r.content), r.alias) : Array.isArray(r) ? r.map(t) : r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
698
+ encode: function r(t) {
699
+ return t instanceof b ? new b(t.type, r(t.content), t.alias) : Array.isArray(t) ? t.map(r) : t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
700
700
  },
701
701
  /**
702
702
  * Returns the name of the type of the given value.
@@ -714,8 +714,8 @@ var h = Ie.exports, Je = { exports: {} };
714
714
  * type(String) === 'Function'
715
715
  * type(/abc+/) === 'RegExp'
716
716
  */
717
- type: function(t) {
718
- return Object.prototype.toString.call(t).slice(8, -1);
717
+ type: function(r) {
718
+ return Object.prototype.toString.call(r).slice(8, -1);
719
719
  },
720
720
  /**
721
721
  * Returns a unique number for the given object. Later calls will still return the same number.
@@ -723,8 +723,8 @@ var h = Ie.exports, Je = { exports: {} };
723
723
  * @param {Object} obj
724
724
  * @returns {number}
725
725
  */
726
- objId: function(t) {
727
- return t.__id || Object.defineProperty(t, "__id", { value: ++k }), t.__id;
726
+ objId: function(r) {
727
+ return r.__id || Object.defineProperty(r, "__id", { value: ++k }), r.__id;
728
728
  },
729
729
  /**
730
730
  * Creates a deep clone of the given object.
@@ -736,30 +736,30 @@ var h = Ie.exports, Je = { exports: {} };
736
736
  * @returns {T}
737
737
  * @template T
738
738
  */
739
- clone: function t(r, i) {
739
+ clone: function r(t, i) {
740
740
  i = i || {};
741
741
  var s, o;
742
- switch (l.util.type(r)) {
742
+ switch (l.util.type(t)) {
743
743
  case "Object":
744
- if (o = l.util.objId(r), i[o])
744
+ if (o = l.util.objId(t), i[o])
745
745
  return i[o];
746
746
  s = /** @type {Record<string, any>} */
747
747
  {}, i[o] = s;
748
- for (var p in r)
749
- r.hasOwnProperty(p) && (s[p] = t(r[p], i));
748
+ for (var p in t)
749
+ t.hasOwnProperty(p) && (s[p] = r(t[p], i));
750
750
  return (
751
751
  /** @type {any} */
752
752
  s
753
753
  );
754
754
  case "Array":
755
- return o = l.util.objId(r), i[o] ? i[o] : (s = [], i[o] = s, /** @type {Array} */
755
+ return o = l.util.objId(t), i[o] ? i[o] : (s = [], i[o] = s, /** @type {Array} */
756
756
  /** @type {any} */
757
- r.forEach(function(E, g) {
758
- s[g] = t(E, i);
757
+ t.forEach(function(E, g) {
758
+ s[g] = r(E, i);
759
759
  }), /** @type {any} */
760
760
  s);
761
761
  default:
762
- return r;
762
+ return t;
763
763
  }
764
764
  },
765
765
  /**
@@ -770,12 +770,12 @@ var h = Ie.exports, Je = { exports: {} };
770
770
  * @param {Element} element
771
771
  * @returns {string}
772
772
  */
773
- getLanguage: function(t) {
774
- for (; t; ) {
775
- var r = m.exec(t.className);
776
- if (r)
777
- return r[1].toLowerCase();
778
- t = t.parentElement;
773
+ getLanguage: function(r) {
774
+ for (; r; ) {
775
+ var t = m.exec(r.className);
776
+ if (t)
777
+ return t[1].toLowerCase();
778
+ r = r.parentElement;
779
779
  }
780
780
  return "none";
781
781
  },
@@ -786,8 +786,8 @@ var h = Ie.exports, Je = { exports: {} };
786
786
  * @param {string} language
787
787
  * @returns {void}
788
788
  */
789
- setLanguage: function(t, r) {
790
- t.className = t.className.replace(RegExp(m, "gi"), ""), t.classList.add("language-" + r);
789
+ setLanguage: function(r, t) {
790
+ r.className = r.className.replace(RegExp(m, "gi"), ""), r.classList.add("language-" + t);
791
791
  },
792
792
  /**
793
793
  * Returns the script element that is currently executing.
@@ -807,12 +807,12 @@ var h = Ie.exports, Je = { exports: {} };
807
807
  try {
808
808
  throw new Error();
809
809
  } catch (s) {
810
- var t = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(s.stack) || [])[1];
811
- if (t) {
812
- var r = document.getElementsByTagName("script");
813
- for (var i in r)
814
- if (r[i].src == t)
815
- return r[i];
810
+ var r = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(s.stack) || [])[1];
811
+ if (r) {
812
+ var t = document.getElementsByTagName("script");
813
+ for (var i in t)
814
+ if (t[i].src == r)
815
+ return t[i];
816
816
  }
817
817
  return null;
818
818
  }
@@ -836,14 +836,14 @@ var h = Ie.exports, Je = { exports: {} };
836
836
  * @param {boolean} [defaultActivation=false]
837
837
  * @returns {boolean}
838
838
  */
839
- isActive: function(t, r, i) {
840
- for (var s = "no-" + r; t; ) {
841
- var o = t.classList;
842
- if (o.contains(r))
839
+ isActive: function(r, t, i) {
840
+ for (var s = "no-" + t; r; ) {
841
+ var o = r.classList;
842
+ if (o.contains(t))
843
843
  return !0;
844
844
  if (o.contains(s))
845
845
  return !1;
846
- t = t.parentElement;
846
+ r = r.parentElement;
847
847
  }
848
848
  return !!i;
849
849
  }
@@ -891,10 +891,10 @@ var h = Ie.exports, Je = { exports: {} };
891
891
  * 'color': /\b(?:red|green|blue)\b/
892
892
  * });
893
893
  */
894
- extend: function(t, r) {
895
- var i = l.util.clone(l.languages[t]);
896
- for (var s in r)
897
- i[s] = r[s];
894
+ extend: function(r, t) {
895
+ var i = l.util.clone(l.languages[r]);
896
+ for (var s in t)
897
+ i[s] = t[s];
898
898
  return i;
899
899
  },
900
900
  /**
@@ -972,31 +972,31 @@ var h = Ie.exports, Je = { exports: {} };
972
972
  * @returns {Grammar} The new grammar object.
973
973
  * @public
974
974
  */
975
- insertBefore: function(t, r, i, s) {
975
+ insertBefore: function(r, t, i, s) {
976
976
  s = s || /** @type {any} */
977
977
  l.languages;
978
- var o = s[t], p = {};
978
+ var o = s[r], p = {};
979
979
  for (var E in o)
980
980
  if (o.hasOwnProperty(E)) {
981
- if (E == r)
981
+ if (E == t)
982
982
  for (var g in i)
983
983
  i.hasOwnProperty(g) && (p[g] = i[g]);
984
984
  i.hasOwnProperty(E) || (p[E] = o[E]);
985
985
  }
986
- var C = s[t];
987
- return s[t] = p, l.languages.DFS(l.languages, function(P, z) {
988
- z === C && P != t && (this[P] = p);
986
+ var C = s[r];
987
+ return s[r] = p, l.languages.DFS(l.languages, function(P, z) {
988
+ z === C && P != r && (this[P] = p);
989
989
  }), p;
990
990
  },
991
991
  // Traverse a language definition with Depth First Search
992
- DFS: function t(r, i, s, o) {
992
+ DFS: function r(t, i, s, o) {
993
993
  o = o || {};
994
994
  var p = l.util.objId;
995
- for (var E in r)
996
- if (r.hasOwnProperty(E)) {
997
- i.call(r, E, r[E], s || E);
998
- var g = r[E], C = l.util.type(g);
999
- C === "Object" && !o[p(g)] ? (o[p(g)] = !0, t(g, i, null, o)) : C === "Array" && !o[p(g)] && (o[p(g)] = !0, t(g, i, E, o));
995
+ for (var E in t)
996
+ if (t.hasOwnProperty(E)) {
997
+ i.call(t, E, t[E], s || E);
998
+ var g = t[E], C = l.util.type(g);
999
+ C === "Object" && !o[p(g)] ? (o[p(g)] = !0, r(g, i, null, o)) : C === "Array" && !o[p(g)] && (o[p(g)] = !0, r(g, i, E, o));
1000
1000
  }
1001
1001
  }
1002
1002
  },
@@ -1013,8 +1013,8 @@ var h = Ie.exports, Je = { exports: {} };
1013
1013
  * @memberof Prism
1014
1014
  * @public
1015
1015
  */
1016
- highlightAll: function(t, r) {
1017
- l.highlightAllUnder(document, t, r);
1016
+ highlightAll: function(r, t) {
1017
+ l.highlightAllUnder(document, r, t);
1018
1018
  },
1019
1019
  /**
1020
1020
  * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
@@ -1031,15 +1031,15 @@ var h = Ie.exports, Je = { exports: {} };
1031
1031
  * @memberof Prism
1032
1032
  * @public
1033
1033
  */
1034
- highlightAllUnder: function(t, r, i) {
1034
+ highlightAllUnder: function(r, t, i) {
1035
1035
  var s = {
1036
1036
  callback: i,
1037
- container: t,
1037
+ container: r,
1038
1038
  selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
1039
1039
  };
1040
1040
  l.hooks.run("before-highlightall", s), s.elements = Array.prototype.slice.apply(s.container.querySelectorAll(s.selector)), l.hooks.run("before-all-elements-highlight", s);
1041
1041
  for (var o = 0, p; p = s.elements[o++]; )
1042
- l.highlightElement(p, r === !0, s.callback);
1042
+ l.highlightElement(p, t === !0, s.callback);
1043
1043
  },
1044
1044
  /**
1045
1045
  * Highlights the code inside a single element.
@@ -1069,13 +1069,13 @@ var h = Ie.exports, Je = { exports: {} };
1069
1069
  * @memberof Prism
1070
1070
  * @public
1071
1071
  */
1072
- highlightElement: function(t, r, i) {
1073
- var s = l.util.getLanguage(t), o = l.languages[s];
1074
- l.util.setLanguage(t, s);
1075
- var p = t.parentElement;
1072
+ highlightElement: function(r, t, i) {
1073
+ var s = l.util.getLanguage(r), o = l.languages[s];
1074
+ l.util.setLanguage(r, s);
1075
+ var p = r.parentElement;
1076
1076
  p && p.nodeName.toLowerCase() === "pre" && l.util.setLanguage(p, s);
1077
- var E = t.textContent, g = {
1078
- element: t,
1077
+ var E = r.textContent, g = {
1078
+ element: r,
1079
1079
  language: s,
1080
1080
  grammar: o,
1081
1081
  code: E
@@ -1091,7 +1091,7 @@ var h = Ie.exports, Je = { exports: {} };
1091
1091
  C(l.util.encode(g.code));
1092
1092
  return;
1093
1093
  }
1094
- if (r && c.Worker) {
1094
+ if (t && c.Worker) {
1095
1095
  var P = new Worker(l.filename);
1096
1096
  P.onmessage = function(z) {
1097
1097
  C(z.data);
@@ -1123,10 +1123,10 @@ var h = Ie.exports, Je = { exports: {} };
1123
1123
  * @example
1124
1124
  * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
1125
1125
  */
1126
- highlight: function(t, r, i) {
1126
+ highlight: function(r, t, i) {
1127
1127
  var s = {
1128
- code: t,
1129
- grammar: r,
1128
+ code: r,
1129
+ grammar: t,
1130
1130
  language: i
1131
1131
  };
1132
1132
  if (l.hooks.run("before-tokenize", s), !s.grammar)
@@ -1157,15 +1157,15 @@ var h = Ie.exports, Je = { exports: {} };
1157
1157
  * }
1158
1158
  * });
1159
1159
  */
1160
- tokenize: function(t, r) {
1161
- var i = r.rest;
1160
+ tokenize: function(r, t) {
1161
+ var i = t.rest;
1162
1162
  if (i) {
1163
1163
  for (var s in i)
1164
- r[s] = i[s];
1165
- delete r.rest;
1164
+ t[s] = i[s];
1165
+ delete t.rest;
1166
1166
  }
1167
1167
  var o = new O();
1168
- return D(o, o.head, t), _(t, o, r, o.head, 0), B(o);
1168
+ return D(o, o.head, r), _(r, o, t, o.head, 0), B(o);
1169
1169
  },
1170
1170
  /**
1171
1171
  * @namespace
@@ -1186,9 +1186,9 @@ var h = Ie.exports, Je = { exports: {} };
1186
1186
  * @param {HookCallback} callback The callback function which is given environment variables.
1187
1187
  * @public
1188
1188
  */
1189
- add: function(t, r) {
1189
+ add: function(r, t) {
1190
1190
  var i = l.hooks.all;
1191
- i[t] = i[t] || [], i[t].push(r);
1191
+ i[r] = i[r] || [], i[r].push(t);
1192
1192
  },
1193
1193
  /**
1194
1194
  * Runs a hook invoking all registered callbacks with the given environment variables.
@@ -1199,52 +1199,52 @@ var h = Ie.exports, Je = { exports: {} };
1199
1199
  * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
1200
1200
  * @public
1201
1201
  */
1202
- run: function(t, r) {
1203
- var i = l.hooks.all[t];
1202
+ run: function(r, t) {
1203
+ var i = l.hooks.all[r];
1204
1204
  if (!(!i || !i.length))
1205
1205
  for (var s = 0, o; o = i[s++]; )
1206
- o(r);
1206
+ o(t);
1207
1207
  }
1208
1208
  },
1209
1209
  Token: b
1210
1210
  };
1211
1211
  c.Prism = l;
1212
- function b(t, r, i, s) {
1213
- this.type = t, this.content = r, this.alias = i, this.length = (s || "").length | 0;
1212
+ function b(r, t, i, s) {
1213
+ this.type = r, this.content = t, this.alias = i, this.length = (s || "").length | 0;
1214
1214
  }
1215
- b.stringify = function t(r, i) {
1216
- if (typeof r == "string")
1217
- return r;
1218
- if (Array.isArray(r)) {
1215
+ b.stringify = function r(t, i) {
1216
+ if (typeof t == "string")
1217
+ return t;
1218
+ if (Array.isArray(t)) {
1219
1219
  var s = "";
1220
- return r.forEach(function(C) {
1221
- s += t(C, i);
1220
+ return t.forEach(function(C) {
1221
+ s += r(C, i);
1222
1222
  }), s;
1223
1223
  }
1224
1224
  var o = {
1225
- type: r.type,
1226
- content: t(r.content, i),
1225
+ type: t.type,
1226
+ content: r(t.content, i),
1227
1227
  tag: "span",
1228
- classes: ["token", r.type],
1228
+ classes: ["token", t.type],
1229
1229
  attributes: {},
1230
1230
  language: i
1231
- }, p = r.alias;
1231
+ }, p = t.alias;
1232
1232
  p && (Array.isArray(p) ? Array.prototype.push.apply(o.classes, p) : o.classes.push(p)), l.hooks.run("wrap", o);
1233
1233
  var E = "";
1234
1234
  for (var g in o.attributes)
1235
1235
  E += " " + g + '="' + (o.attributes[g] || "").replace(/"/g, "&quot;") + '"';
1236
1236
  return "<" + o.tag + ' class="' + o.classes.join(" ") + '"' + E + ">" + o.content + "</" + o.tag + ">";
1237
1237
  };
1238
- function y(t, r, i, s) {
1239
- t.lastIndex = r;
1240
- var o = t.exec(i);
1238
+ function y(r, t, i, s) {
1239
+ r.lastIndex = t;
1240
+ var o = r.exec(i);
1241
1241
  if (o && s && o[1]) {
1242
1242
  var p = o[1].length;
1243
1243
  o.index += p, o[0] = o[0].slice(p);
1244
1244
  }
1245
1245
  return o;
1246
1246
  }
1247
- function _(t, r, i, s, o, p) {
1247
+ function _(r, t, i, s, o, p) {
1248
1248
  for (var E in i)
1249
1249
  if (!(!i.hasOwnProperty(E) || !i[E])) {
1250
1250
  var g = i[E];
@@ -1257,36 +1257,36 @@ var h = Ie.exports, Je = { exports: {} };
1257
1257
  var ce = P.pattern.toString().match(/[imsuy]*$/)[0];
1258
1258
  P.pattern = RegExp(P.pattern.source, ce + "g");
1259
1259
  }
1260
- for (var ue = P.pattern || P, j = s.next, H = o; j !== r.tail && !(p && H >= p.reach); H += j.value.length, j = j.next) {
1260
+ for (var ue = P.pattern || P, j = s.next, H = o; j !== t.tail && !(p && H >= p.reach); H += j.value.length, j = j.next) {
1261
1261
  var ee = j.value;
1262
- if (r.length > t.length)
1262
+ if (t.length > r.length)
1263
1263
  return;
1264
1264
  if (!(ee instanceof b)) {
1265
1265
  var X = 1, G;
1266
1266
  if (W) {
1267
- if (G = y(ue, H, t, V), !G || G.index >= t.length)
1267
+ if (G = y(ue, H, r, V), !G || G.index >= r.length)
1268
1268
  break;
1269
1269
  var ae = G.index, pe = G.index + G[0].length, q = H;
1270
1270
  for (q += j.value.length; ae >= q; )
1271
1271
  j = j.next, q += j.value.length;
1272
1272
  if (q -= j.value.length, H = q, j.value instanceof b)
1273
1273
  continue;
1274
- for (var oe = j; oe !== r.tail && (q < pe || typeof oe.value == "string"); oe = oe.next)
1274
+ for (var oe = j; oe !== t.tail && (q < pe || typeof oe.value == "string"); oe = oe.next)
1275
1275
  X++, q += oe.value.length;
1276
- X--, ee = t.slice(H, q), G.index -= H;
1276
+ X--, ee = r.slice(H, q), G.index -= H;
1277
1277
  } else if (G = y(ue, 0, ee, V), !G)
1278
1278
  continue;
1279
- var ae = G.index, J = G[0], ie = ee.slice(0, ae), se = ee.slice(ae + J.length), te = H + ee.length;
1280
- p && te > p.reach && (p.reach = te);
1279
+ var ae = G.index, J = G[0], ie = ee.slice(0, ae), se = ee.slice(ae + J.length), re = H + ee.length;
1280
+ p && re > p.reach && (p.reach = re);
1281
1281
  var A = j.prev;
1282
- ie && (A = D(r, A, ie), H += ie.length), I(r, A, X);
1282
+ ie && (A = D(t, A, ie), H += ie.length), I(t, A, X);
1283
1283
  var M = new b(E, z ? l.tokenize(J, z) : J, ne, J);
1284
- if (j = D(r, A, M), se && D(r, j, se), X > 1) {
1285
- var re = {
1284
+ if (j = D(t, A, M), se && D(t, j, se), X > 1) {
1285
+ var te = {
1286
1286
  cause: E + "," + C,
1287
- reach: te
1287
+ reach: re
1288
1288
  };
1289
- _(t, r, i, j.prev, H, re), p && re.reach > p.reach && (p.reach = re.reach);
1289
+ _(r, t, i, j.prev, H, te), p && te.reach > p.reach && (p.reach = te.reach);
1290
1290
  }
1291
1291
  }
1292
1292
  }
@@ -1294,26 +1294,26 @@ var h = Ie.exports, Je = { exports: {} };
1294
1294
  }
1295
1295
  }
1296
1296
  function O() {
1297
- var t = { value: null, prev: null, next: null }, r = { value: null, prev: t, next: null };
1298
- t.next = r, this.head = t, this.tail = r, this.length = 0;
1297
+ var r = { value: null, prev: null, next: null }, t = { value: null, prev: r, next: null };
1298
+ r.next = t, this.head = r, this.tail = t, this.length = 0;
1299
1299
  }
1300
- function D(t, r, i) {
1301
- var s = r.next, o = { value: i, prev: r, next: s };
1302
- return r.next = o, s.prev = o, t.length++, o;
1300
+ function D(r, t, i) {
1301
+ var s = t.next, o = { value: i, prev: t, next: s };
1302
+ return t.next = o, s.prev = o, r.length++, o;
1303
1303
  }
1304
- function I(t, r, i) {
1305
- for (var s = r.next, o = 0; o < i && s !== t.tail; o++)
1304
+ function I(r, t, i) {
1305
+ for (var s = t.next, o = 0; o < i && s !== r.tail; o++)
1306
1306
  s = s.next;
1307
- r.next = s, s.prev = r, t.length -= o;
1307
+ t.next = s, s.prev = t, r.length -= o;
1308
1308
  }
1309
- function B(t) {
1310
- for (var r = [], i = t.head.next; i !== t.tail; )
1311
- r.push(i.value), i = i.next;
1312
- return r;
1309
+ function B(r) {
1310
+ for (var t = [], i = r.head.next; i !== r.tail; )
1311
+ t.push(i.value), i = i.next;
1312
+ return t;
1313
1313
  }
1314
1314
  if (!c.document)
1315
- return c.addEventListener && (l.disableWorkerMessageHandler || c.addEventListener("message", function(t) {
1316
- var r = JSON.parse(t.data), i = r.language, s = r.code, o = r.immediateClose;
1315
+ return c.addEventListener && (l.disableWorkerMessageHandler || c.addEventListener("message", function(r) {
1316
+ var t = JSON.parse(r.data), i = t.language, s = t.code, o = t.immediateClose;
1317
1317
  c.postMessage(l.highlight(s, l.languages[i], i)), o && c.close();
1318
1318
  }, !1)), l;
1319
1319
  var F = l.util.currentScript();
@@ -1719,16 +1719,16 @@ var h = Ie.exports, Je = { exports: {} };
1719
1719
  tex: "latex"
1720
1720
  }, l = "data-src-status", b = "loading", y = "loaded", _ = "failed", O = "pre[data-src]:not([" + l + '="' + y + '"]):not([' + l + '="' + b + '"])';
1721
1721
  function D(F, w, R) {
1722
- var t = new XMLHttpRequest();
1723
- t.open("GET", F, !0), t.onreadystatechange = function() {
1724
- t.readyState == 4 && (t.status < 400 && t.responseText ? w(t.responseText) : t.status >= 400 ? R(m(t.status, t.statusText)) : R(k));
1725
- }, t.send(null);
1722
+ var r = new XMLHttpRequest();
1723
+ r.open("GET", F, !0), r.onreadystatechange = function() {
1724
+ r.readyState == 4 && (r.status < 400 && r.responseText ? w(r.responseText) : r.status >= 400 ? R(m(r.status, r.statusText)) : R(k));
1725
+ }, r.send(null);
1726
1726
  }
1727
1727
  function I(F) {
1728
1728
  var w = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(F || "");
1729
1729
  if (w) {
1730
- var R = Number(w[1]), t = w[2], r = w[3];
1731
- return t ? r ? [R, Number(r)] : [R, void 0] : [R, R];
1730
+ var R = Number(w[1]), r = w[2], t = w[3];
1731
+ return r ? t ? [R, Number(t)] : [R, void 0] : [R, R];
1732
1732
  }
1733
1733
  }
1734
1734
  n.hooks.add("before-highlightall", function(F) {
@@ -1742,15 +1742,15 @@ var h = Ie.exports, Je = { exports: {} };
1742
1742
  F.code = "", w.setAttribute(l, b);
1743
1743
  var R = w.appendChild(document.createElement("CODE"));
1744
1744
  R.textContent = c;
1745
- var t = w.getAttribute("data-src"), r = F.language;
1746
- if (r === "none") {
1747
- var i = (/\.(\w+)$/.exec(t) || [, "none"])[1];
1748
- r = S[i] || i;
1745
+ var r = w.getAttribute("data-src"), t = F.language;
1746
+ if (t === "none") {
1747
+ var i = (/\.(\w+)$/.exec(r) || [, "none"])[1];
1748
+ t = S[i] || i;
1749
1749
  }
1750
- n.util.setLanguage(R, r), n.util.setLanguage(w, r);
1750
+ n.util.setLanguage(R, t), n.util.setLanguage(w, t);
1751
1751
  var s = n.plugins.autoloader;
1752
- s && s.loadLanguages(r), D(
1753
- t,
1752
+ s && s.loadLanguages(t), D(
1753
+ r,
1754
1754
  function(o) {
1755
1755
  w.setAttribute(l, y);
1756
1756
  var p = I(w.getAttribute("data-range"));
@@ -1775,8 +1775,8 @@ var h = Ie.exports, Je = { exports: {} };
1775
1775
  * @param {ParentNode} [container=document]
1776
1776
  */
1777
1777
  highlight: function(w) {
1778
- for (var R = (w || document).querySelectorAll(O), t = 0, r; r = R[t++]; )
1779
- n.highlightElement(r);
1778
+ for (var R = (w || document).querySelectorAll(O), r = 0, t; t = R[r++]; )
1779
+ n.highlightElement(t);
1780
1780
  }
1781
1781
  };
1782
1782
  var B = !1;
@@ -1785,8 +1785,8 @@ var h = Ie.exports, Je = { exports: {} };
1785
1785
  };
1786
1786
  }();
1787
1787
  })(Je);
1788
- var Rt = Je.exports;
1789
- const Ne = /* @__PURE__ */ wt(Rt);
1788
+ var Rr = Je.exports;
1789
+ const Ne = /* @__PURE__ */ wr(Rr);
1790
1790
  Prism.languages.clike = {
1791
1791
  comment: [
1792
1792
  {
@@ -2627,7 +2627,7 @@ Prism.languages.json = {
2627
2627
  }
2628
2628
  };
2629
2629
  Prism.languages.webmanifest = Prism.languages.json;
2630
- function kt(d) {
2630
+ function kr(d) {
2631
2631
  if (typeof document > "u") return;
2632
2632
  const f = d === "dark" ? "prism-okaidia" : "prism", n = document.getElementById("prism-theme-style"), c = `https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/${f}.min.css`;
2633
2633
  if (n)
@@ -2638,7 +2638,7 @@ function kt(d) {
2638
2638
  }
2639
2639
  }
2640
2640
  window.Prism = Ne;
2641
- const _t = {
2641
+ const _r = {
2642
2642
  javascript: "javascript",
2643
2643
  js: "javascript",
2644
2644
  typescript: "typescript",
@@ -2670,32 +2670,32 @@ const _t = {
2670
2670
  markdown: "markdown",
2671
2671
  md: "markdown"
2672
2672
  };
2673
- function Ft(d) {
2673
+ function Fr(d) {
2674
2674
  const f = document.createElement("div");
2675
2675
  return f.textContent = d, f.innerHTML;
2676
2676
  }
2677
- const Ot = ({
2677
+ const Or = ({
2678
2678
  value: d,
2679
2679
  language: f,
2680
2680
  theme: n = "dark",
2681
2681
  disabled: c = !1,
2682
2682
  onChange: m
2683
2683
  }) => {
2684
- const k = Oe(null), S = Oe(null), l = Ee(() => _t[f.toLowerCase()] || "javascript", [f]), b = n === "dark" ? "#1e1e1e" : "#fafafa", y = Ee(() => {
2684
+ const k = Oe(null), S = Oe(null), l = Ee(() => _r[f.toLowerCase()] || "javascript", [f]), b = n === "dark" ? "#1e1e1e" : "#fafafa", y = Ee(() => {
2685
2685
  try {
2686
2686
  const I = Ne.languages[l];
2687
2687
  if (I)
2688
2688
  return Ne.highlight(d || "", I, l);
2689
2689
  } catch {
2690
2690
  }
2691
- return Ft(d || "");
2691
+ return Fr(d || "");
2692
2692
  }, [d, l]), _ = (I) => {
2693
2693
  m == null || m(I.target.value);
2694
2694
  }, O = () => {
2695
2695
  k.current && S.current && (S.current.scrollTop = k.current.scrollTop, S.current.scrollLeft = k.current.scrollLeft);
2696
2696
  };
2697
2697
  Se(() => {
2698
- kt(n);
2698
+ kr(n);
2699
2699
  }, [n]);
2700
2700
  const D = (I) => {
2701
2701
  if (I.key === "Tab") {
@@ -2706,12 +2706,12 @@ const Ot = ({
2706
2706
  });
2707
2707
  }
2708
2708
  };
2709
- return /* @__PURE__ */ h.jsxs("div", { className: `code-editor theme-${n}`, style: { background: b }, children: [
2709
+ return /* @__PURE__ */ h.jsxs("div", { className: `hep-cr-editor theme-${n}`, style: { background: b }, children: [
2710
2710
  /* @__PURE__ */ h.jsx(
2711
2711
  "pre",
2712
2712
  {
2713
2713
  ref: S,
2714
- className: `code-highlight language-${l}`,
2714
+ className: `hep-cr-highlight language-${l}`,
2715
2715
  "aria-hidden": "true",
2716
2716
  children: /* @__PURE__ */ h.jsx("code", { dangerouslySetInnerHTML: { __html: y } })
2717
2717
  }
@@ -2720,7 +2720,7 @@ const Ot = ({
2720
2720
  "textarea",
2721
2721
  {
2722
2722
  ref: k,
2723
- className: "code-input",
2723
+ className: "hep-cr-input",
2724
2724
  value: d,
2725
2725
  disabled: c,
2726
2726
  onChange: _,
@@ -2732,9 +2732,9 @@ const Ot = ({
2732
2732
  )
2733
2733
  ] });
2734
2734
  };
2735
- var It = Object.defineProperty, Nt = (d, f, n) => f in d ? It(d, f, { enumerable: !0, configurable: !0, writable: !0, value: n }) : d[f] = n, Ze = (d, f, n) => Nt(d, typeof f != "symbol" ? f + "" : f, n);
2735
+ var Ir = Object.defineProperty, Nr = (d, f, n) => f in d ? Ir(d, f, { enumerable: !0, configurable: !0, writable: !0, value: n }) : d[f] = n, Ze = (d, f, n) => Nr(d, typeof f != "symbol" ? f + "" : f, n);
2736
2736
  let _e = null;
2737
- class Ct {
2737
+ class Cr {
2738
2738
  constructor(f = {}) {
2739
2739
  Ze(this, "baseUrl"), Ze(this, "timeout"), this.baseUrl = f.pistonUrl || "/api/piston", this.timeout = f.timeout || 3e3;
2740
2740
  }
@@ -2842,7 +2842,7 @@ class Ct {
2842
2842
  }[f.toLowerCase()] || `main.${f}`;
2843
2843
  }
2844
2844
  }
2845
- const Lt = {
2845
+ const Lr = {
2846
2846
  javascript: 'console.log("Hello, World!");',
2847
2847
  typescript: 'console.log("Hello, World!");',
2848
2848
  python: 'print("Hello, World!")',
@@ -2942,10 +2942,10 @@ This is a sample markdown document.`
2942
2942
  };
2943
2943
  function Fe(d) {
2944
2944
  const f = d.toLowerCase();
2945
- return Lt[f] || `// ${d}
2945
+ return Lr[f] || `// ${d}
2946
2946
  // Write your code here`;
2947
2947
  }
2948
- const Pt = ({
2948
+ const Pr = ({
2949
2949
  pistonUrl: d = "/api/piston",
2950
2950
  language: f = "javascript",
2951
2951
  theme: n = "light",
@@ -2958,7 +2958,7 @@ const Pt = ({
2958
2958
  onExecuteEnd: y,
2959
2959
  onLanguageChange: _
2960
2960
  }) => {
2961
- const [O, D] = Z([]), [I, B] = Z(f), [F, w] = Z(n), [R, t] = Z(S), [r, i] = Z(""), [s, o] = Z(""), [p, E] = Z(!1), [g, C] = Z(null), [P, z] = Z("stdout"), [V, W] = Z(null), [ne, ce] = Z(!0), [ue, j] = Z(60), H = Ee(() => new Ct({ pistonUrl: d }), [d]), ee = Ee(() => O.map((A) => ({
2961
+ const [O, D] = Z([]), [I, B] = Z(f), [F, w] = Z(n), [R, r] = Z(S), [t, i] = Z(""), [s, o] = Z(""), [p, E] = Z(!1), [g, C] = Z(null), [P, z] = Z("stdout"), [V, W] = Z(null), [ne, ce] = Z(!0), [ue, j] = Z(60), H = Ee(() => new Cr({ pistonUrl: d }), [d]), ee = Ee(() => O.map((A) => ({
2962
2962
  value: `${A.language}:${A.version}`,
2963
2963
  label: `${A.language.charAt(0).toUpperCase() + A.language.slice(1)} ${A.version}`
2964
2964
  })), [O]), X = Ee(() => I.includes(":") ? I.split(":")[0] : I, [I]);
@@ -2976,14 +2976,14 @@ const Pt = ({
2976
2976
  }
2977
2977
  A();
2978
2978
  }, [H]), Se(() => {
2979
- !R && O.length > 0 && t(S || Fe(X));
2979
+ !R && O.length > 0 && r(S || Fe(X));
2980
2980
  }, [O, R, S, X]);
2981
2981
  const G = le(
2982
2982
  (A) => {
2983
- const M = A.target.value, re = M.includes(":") ? M.split(":")[0] : M;
2983
+ const M = A.target.value, te = M.includes(":") ? M.split(":")[0] : M;
2984
2984
  B(M);
2985
- const fe = Fe(re);
2986
- t(fe), _ == null || _(re, fe);
2985
+ const fe = Fe(te);
2986
+ r(fe), _ == null || _(te, fe);
2987
2987
  },
2988
2988
  [_]
2989
2989
  ), pe = le(async () => {
@@ -3007,29 +3007,29 @@ const Pt = ({
3007
3007
  }, [p, I, R, H, b, y]), q = le(() => {
3008
3008
  i(""), o(""), C(null), W(null);
3009
3009
  }, []), oe = le(async () => {
3010
- const A = P === "stdout" ? r : s;
3010
+ const A = P === "stdout" ? t : s;
3011
3011
  await navigator.clipboard.writeText(A);
3012
- }, [P, r, s]), ae = le(() => {
3013
- t(Fe(X));
3012
+ }, [P, t, s]), ae = le(() => {
3013
+ r(Fe(X));
3014
3014
  }, [I]), J = Oe(!1), ie = le((A) => {
3015
- J.current = !0, document.addEventListener("mousemove", se), document.addEventListener("mouseup", te), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
3015
+ J.current = !0, document.addEventListener("mousemove", se), document.addEventListener("mouseup", re), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
3016
3016
  }, []), se = le((A) => {
3017
3017
  if (!J.current) return;
3018
- const M = document.querySelector(".code-runner-main");
3018
+ const M = document.querySelector(".hep-cr-main");
3019
3019
  if (!M) return;
3020
- const re = M.getBoundingClientRect(), fe = (A.clientX - re.left) / re.width * 100;
3020
+ const te = M.getBoundingClientRect(), fe = (A.clientX - te.left) / te.width * 100;
3021
3021
  j(Math.max(20, Math.min(80, fe)));
3022
- }, []), te = le(() => {
3023
- J.current = !1, document.removeEventListener("mousemove", se), document.removeEventListener("mouseup", te), document.body.style.cursor = "", document.body.style.userSelect = "";
3022
+ }, []), re = le(() => {
3023
+ J.current = !1, document.removeEventListener("mousemove", se), document.removeEventListener("mouseup", re), document.body.style.cursor = "", document.body.style.userSelect = "";
3024
3024
  }, [se]);
3025
- return /* @__PURE__ */ h.jsxs("div", { className: `code-runner code-runner-${F}`, children: [
3026
- /* @__PURE__ */ h.jsxs("div", { className: "code-runner-header", children: [
3027
- /* @__PURE__ */ h.jsx("div", { className: "code-runner-controls", children: c && /* @__PURE__ */ h.jsxs(
3025
+ return /* @__PURE__ */ h.jsxs("div", { className: `hep-cr-runner hep-cr-runner-${F}`, children: [
3026
+ /* @__PURE__ */ h.jsxs("div", { className: "hep-cr-header", children: [
3027
+ /* @__PURE__ */ h.jsx("div", { className: "hep-cr-controls", children: c && /* @__PURE__ */ h.jsxs(
3028
3028
  "select",
3029
3029
  {
3030
3030
  value: I,
3031
3031
  onChange: G,
3032
- className: "language-select",
3032
+ className: "hep-cr-language-select",
3033
3033
  disabled: p,
3034
3034
  children: [
3035
3035
  ne && /* @__PURE__ */ h.jsx("option", { value: "", children: "加载中..." }),
@@ -3037,24 +3037,24 @@ const Pt = ({
3037
3037
  ]
3038
3038
  }
3039
3039
  ) }),
3040
- /* @__PURE__ */ h.jsxs("div", { className: "code-runner-actions", children: [
3040
+ /* @__PURE__ */ h.jsxs("div", { className: "hep-cr-actions", children: [
3041
3041
  /* @__PURE__ */ h.jsxs(
3042
3042
  "button",
3043
3043
  {
3044
- className: "btn btn-run",
3044
+ className: "hep-cr-btn hep-cr-btn-run",
3045
3045
  disabled: p || ne,
3046
3046
  onClick: pe,
3047
3047
  children: [
3048
- p ? /* @__PURE__ */ h.jsx("span", { className: "spinner" }) : /* @__PURE__ */ h.jsx("span", { className: "run-icon", children: "▶" }),
3048
+ p ? /* @__PURE__ */ h.jsx("span", { className: "hep-cr-spinner" }) : /* @__PURE__ */ h.jsx("span", { className: "hep-cr-run-icon", children: "▶" }),
3049
3049
  p ? "运行中..." : l
3050
3050
  ]
3051
3051
  }
3052
3052
  ),
3053
- m && k && /* @__PURE__ */ h.jsx("button", { className: "btn btn-reset", onClick: ae, children: "重置" }),
3053
+ m && k && /* @__PURE__ */ h.jsx("button", { className: "hep-cr-btn hep-cr-btn-reset", onClick: ae, children: "重置" }),
3054
3054
  /* @__PURE__ */ h.jsx(
3055
3055
  "button",
3056
3056
  {
3057
- className: "btn btn-theme",
3057
+ className: "hep-cr-btn hep-cr-btn-theme",
3058
3058
  onClick: () => w(F === "light" ? "dark" : "light"),
3059
3059
  title: F === "light" ? "Switch to dark mode" : "Switch to light mode",
3060
3060
  children: F === "light" ? "🌙" : "☀️"
@@ -3062,37 +3062,37 @@ const Pt = ({
3062
3062
  )
3063
3063
  ] })
3064
3064
  ] }),
3065
- V && /* @__PURE__ */ h.jsx("div", { className: "error-message", children: V }),
3066
- /* @__PURE__ */ h.jsxs("div", { className: "code-runner-main", children: [
3067
- m && /* @__PURE__ */ h.jsxs("div", { className: "editor-panel", style: { width: `${ue}%` }, children: [
3068
- /* @__PURE__ */ h.jsxs("div", { className: "panel-header", children: [
3069
- /* @__PURE__ */ h.jsx("span", { className: "panel-title", children: "编辑器" }),
3070
- /* @__PURE__ */ h.jsx("span", { className: "language-badge", children: X })
3065
+ V && /* @__PURE__ */ h.jsx("div", { className: "hep-cr-error-message", children: V }),
3066
+ /* @__PURE__ */ h.jsxs("div", { className: "hep-cr-main", children: [
3067
+ m && /* @__PURE__ */ h.jsxs("div", { className: "hep-cr-editor-panel", style: { width: `${ue}%` }, children: [
3068
+ /* @__PURE__ */ h.jsxs("div", { className: "hep-cr-panel-header", children: [
3069
+ /* @__PURE__ */ h.jsx("span", { className: "hep-cr-panel-title", children: "编辑器" }),
3070
+ /* @__PURE__ */ h.jsx("span", { className: "hep-cr-language-badge", children: X })
3071
3071
  ] }),
3072
3072
  /* @__PURE__ */ h.jsx(
3073
- Ot,
3073
+ Or,
3074
3074
  {
3075
3075
  value: R,
3076
3076
  language: X,
3077
3077
  theme: F,
3078
3078
  disabled: !k || p,
3079
- onChange: t
3079
+ onChange: r
3080
3080
  }
3081
3081
  )
3082
3082
  ] }),
3083
- m && /* @__PURE__ */ h.jsx("div", { className: "resize-handle", onMouseDown: ie, children: /* @__PURE__ */ h.jsx("div", { className: "resize-line" }) }),
3083
+ m && /* @__PURE__ */ h.jsx("div", { className: "hep-cr-resize-handle", onMouseDown: ie, children: /* @__PURE__ */ h.jsx("div", { className: "hep-cr-resize-line" }) }),
3084
3084
  /* @__PURE__ */ h.jsxs(
3085
3085
  "div",
3086
3086
  {
3087
- className: "output-panel",
3087
+ className: "hep-cr-output-panel",
3088
3088
  style: { width: m ? `${100 - ue}%` : "100%" },
3089
3089
  children: [
3090
- /* @__PURE__ */ h.jsxs("div", { className: "panel-header", children: [
3091
- /* @__PURE__ */ h.jsxs("div", { className: "output-tabs", children: [
3090
+ /* @__PURE__ */ h.jsxs("div", { className: "hep-cr-panel-header", children: [
3091
+ /* @__PURE__ */ h.jsxs("div", { className: "hep-cr-output-tabs", children: [
3092
3092
  /* @__PURE__ */ h.jsx(
3093
3093
  "button",
3094
3094
  {
3095
- className: `tab ${P === "stdout" ? "active" : ""}`,
3095
+ className: `hep-cr-tab ${P === "stdout" ? "active" : ""}`,
3096
3096
  onClick: () => z("stdout"),
3097
3097
  children: "输出"
3098
3098
  }
@@ -3100,18 +3100,18 @@ const Pt = ({
3100
3100
  s && /* @__PURE__ */ h.jsx(
3101
3101
  "button",
3102
3102
  {
3103
- className: `tab ${P === "stderr" ? "active" : ""}`,
3103
+ className: `hep-cr-tab ${P === "stderr" ? "active" : ""}`,
3104
3104
  onClick: () => z("stderr"),
3105
3105
  children: "错误"
3106
3106
  }
3107
3107
  )
3108
3108
  ] }),
3109
- /* @__PURE__ */ h.jsxs("div", { className: "output-actions", children: [
3110
- g !== null && /* @__PURE__ */ h.jsxs("span", { className: "execution-time", children: [
3109
+ /* @__PURE__ */ h.jsxs("div", { className: "hep-cr-output-actions", children: [
3110
+ g !== null && /* @__PURE__ */ h.jsxs("span", { className: "hep-cr-execution-time", children: [
3111
3111
  g,
3112
3112
  "ms"
3113
3113
  ] }),
3114
- /* @__PURE__ */ h.jsx("button", { className: "btn-icon", onClick: oe, title: "复制", children: /* @__PURE__ */ h.jsxs(
3114
+ /* @__PURE__ */ h.jsx("button", { className: "hep-cr-btn-icon", onClick: oe, title: "复制", children: /* @__PURE__ */ h.jsxs(
3115
3115
  "svg",
3116
3116
  {
3117
3117
  width: "14",
@@ -3126,7 +3126,7 @@ const Pt = ({
3126
3126
  ]
3127
3127
  }
3128
3128
  ) }),
3129
- /* @__PURE__ */ h.jsx("button", { className: "btn-icon", onClick: q, title: "清除", children: /* @__PURE__ */ h.jsxs(
3129
+ /* @__PURE__ */ h.jsx("button", { className: "hep-cr-btn-icon", onClick: q, title: "清除", children: /* @__PURE__ */ h.jsxs(
3130
3130
  "svg",
3131
3131
  {
3132
3132
  width: "14",
@@ -3143,13 +3143,13 @@ const Pt = ({
3143
3143
  ) })
3144
3144
  ] })
3145
3145
  ] }),
3146
- /* @__PURE__ */ h.jsx("div", { className: "output-content", children: /* @__PURE__ */ h.jsx("pre", { children: P === "stdout" ? r || '点击"运行"执行代码' : s }) })
3146
+ /* @__PURE__ */ h.jsx("div", { className: "hep-cr-output-content", children: /* @__PURE__ */ h.jsx("pre", { children: P === "stdout" ? t || '点击"运行"执行代码' : s }) })
3147
3147
  ]
3148
3148
  }
3149
3149
  )
3150
3150
  ] }),
3151
3151
  /* @__PURE__ */ h.jsx("style", { children: `
3152
- .code-runner {
3152
+ .hep-cr-runner {
3153
3153
  display: flex;
3154
3154
  flex-direction: column;
3155
3155
  border: 1px solid #e0e0e0;
@@ -3157,9 +3157,9 @@ const Pt = ({
3157
3157
  overflow: hidden;
3158
3158
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
3159
3159
  }
3160
- .code-runner-dark { background: #1e1e1e; border-color: #333; }
3161
- .code-runner-light { background: #ffffff; }
3162
- .code-runner-header {
3160
+ .hep-cr-runner-dark { background: #1e1e1e; border-color: #333; }
3161
+ .hep-cr-runner-light { background: #ffffff; }
3162
+ .hep-cr-header {
3163
3163
  display: flex;
3164
3164
  justify-content: space-between;
3165
3165
  align-items: center;
@@ -3167,9 +3167,9 @@ const Pt = ({
3167
3167
  background: #252526;
3168
3168
  border-bottom: 1px solid #333;
3169
3169
  }
3170
- .code-runner-light .code-runner-header { background: #f3f3f3; border-color: #e0e0e0; }
3171
- .code-runner-controls { display: flex; gap: 8px; }
3172
- .language-select {
3170
+ .hep-cr-runner-light .hep-cr-header { background: #f3f3f3; border-color: #e0e0e0; }
3171
+ .hep-cr-controls { display: flex; gap: 8px; }
3172
+ .hep-cr-language-select {
3173
3173
  padding: 6px 12px;
3174
3174
  border: 1px solid #444;
3175
3175
  border-radius: 6px;
@@ -3179,10 +3179,10 @@ const Pt = ({
3179
3179
  cursor: pointer;
3180
3180
  outline: none;
3181
3181
  }
3182
- .code-runner-light .language-select { background: white; color: #333; border-color: #ccc; }
3183
- .language-select:focus { border-color: #4fc3f7; }
3184
- .code-runner-actions { display: flex; gap: 8px; }
3185
- .btn {
3182
+ .hep-cr-runner-light .hep-cr-language-select { background: white; color: #333; border-color: #ccc; }
3183
+ .hep-cr-language-select:focus { border-color: #4fc3f7; }
3184
+ .hep-cr-actions { display: flex; gap: 8px; }
3185
+ .hep-cr-btn {
3186
3186
  padding: 6px 16px;
3187
3187
  border: none;
3188
3188
  border-radius: 6px;
@@ -3194,31 +3194,31 @@ const Pt = ({
3194
3194
  gap: 6px;
3195
3195
  transition: all 0.2s;
3196
3196
  }
3197
- .btn:disabled { opacity: 0.5; cursor: not-allowed; }
3198
- .btn-run {
3197
+ .hep-cr-btn:disabled { opacity: 0.5; cursor: not-allowed; }
3198
+ .hep-cr-btn-run {
3199
3199
  background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
3200
3200
  color: white;
3201
3201
  }
3202
- .btn-run:hover:not(:disabled) { background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%); }
3203
- .btn-reset { background: #3d3d3d; color: #aaa; }
3204
- .code-runner-light .btn-reset { background: #e0e0e0; color: #666; }
3205
- .btn-theme { background: #3d3d3d; color: #aaa; padding: 5px 10px; font-size: 14px; line-height: 1; height: auto; min-height: 28px; }
3206
- .code-runner-light .btn-theme { background: #e0e0e0; }
3207
- .btn-theme:hover { background: #4d4d4d; color: #fff; }
3208
- .error-message {
3202
+ .hep-cr-btn-run:hover:not(:disabled) { background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%); }
3203
+ .hep-cr-btn-reset { background: #3d3d3d; color: #aaa; }
3204
+ .hep-cr-runner-light .hep-cr-btn-reset { background: #e0e0e0; color: #666; }
3205
+ .hep-cr-btn-theme { background: #3d3d3d; color: #aaa; padding: 5px 10px; font-size: 14px; line-height: 1; height: auto; min-height: 28px; }
3206
+ .hep-cr-runner-light .hep-cr-btn-theme { background: #e0e0e0; }
3207
+ .hep-cr-btn-theme:hover { background: #4d4d4d; color: #fff; }
3208
+ .hep-cr-error-message {
3209
3209
  padding: 10px 16px;
3210
3210
  background: #c62828;
3211
3211
  color: white;
3212
3212
  font-size: 13px;
3213
3213
  }
3214
- .code-runner-main { display: flex; height: 400px; overflow: hidden; }
3215
- .editor-panel {
3214
+ .hep-cr-main { display: flex; height: 400px; overflow: hidden; }
3215
+ .hep-cr-editor-panel {
3216
3216
  display: flex;
3217
3217
  flex-direction: column;
3218
3218
  min-width: 20%;
3219
3219
  max-width: 80%;
3220
3220
  }
3221
- .panel-header {
3221
+ .hep-cr-panel-header {
3222
3222
  display: flex;
3223
3223
  justify-content: space-between;
3224
3224
  align-items: center;
@@ -3226,15 +3226,15 @@ const Pt = ({
3226
3226
  background: #2d2d2d;
3227
3227
  border-bottom: 1px solid #333;
3228
3228
  }
3229
- .code-runner-light .panel-header { background: #f0f0f0; border-color: #e0e0e0; }
3230
- .panel-title {
3229
+ .hep-cr-runner-light .hep-cr-panel-header { background: #f0f0f0; border-color: #e0e0e0; }
3230
+ .hep-cr-panel-title {
3231
3231
  font-size: 12px;
3232
3232
  font-weight: 600;
3233
3233
  color: #888;
3234
3234
  text-transform: uppercase;
3235
3235
  letter-spacing: 0.5px;
3236
3236
  }
3237
- .language-badge {
3237
+ .hep-cr-language-badge {
3238
3238
  font-size: 11px;
3239
3239
  padding: 2px 8px;
3240
3240
  background: #4fc3f7;
@@ -3242,15 +3242,15 @@ const Pt = ({
3242
3242
  border-radius: 10px;
3243
3243
  font-weight: 500;
3244
3244
  }
3245
- .code-editor {
3245
+ .hep-cr-editor {
3246
3246
  flex: 1;
3247
3247
  width: 100%;
3248
3248
  background: #1e1e1e;
3249
3249
  position: relative;
3250
3250
  overflow: hidden;
3251
3251
  }
3252
- .code-editor .code-highlight,
3253
- .code-editor .code-input {
3252
+ .hep-cr-editor .hep-cr-highlight,
3253
+ .hep-cr-editor .hep-cr-input {
3254
3254
  position: absolute;
3255
3255
  top: 0;
3256
3256
  left: 0;
@@ -3265,16 +3265,16 @@ const Pt = ({
3265
3265
  white-space: pre;
3266
3266
  overflow: auto;
3267
3267
  }
3268
- .code-editor .code-highlight {
3268
+ .hep-cr-editor .hep-cr-highlight {
3269
3269
  background: transparent !important;
3270
3270
  pointer-events: none;
3271
3271
  z-index: 1;
3272
3272
  }
3273
- .code-editor .code-highlight code {
3273
+ .hep-cr-editor .hep-cr-highlight code {
3274
3274
  display: block;
3275
3275
  font-family: inherit;
3276
3276
  }
3277
- .code-editor .code-input {
3277
+ .hep-cr-editor .hep-cr-input {
3278
3278
  background: transparent !important;
3279
3279
  color: transparent !important;
3280
3280
  caret-color: #d4d4d4;
@@ -3282,14 +3282,14 @@ const Pt = ({
3282
3282
  outline: none;
3283
3283
  z-index: 2;
3284
3284
  }
3285
- .code-editor .code-input:disabled { opacity: 0.7; }
3286
- .code-runner-light .code-editor .code-highlight code {
3285
+ .hep-cr-editor .hep-cr-input:disabled { opacity: 0.7; }
3286
+ .hep-cr-runner-light .hep-cr-editor .hep-cr-highlight code {
3287
3287
  color: #333333;
3288
3288
  }
3289
- .code-runner-light .code-editor .code-input {
3289
+ .hep-cr-runner-light .hep-cr-editor .hep-cr-input {
3290
3290
  caret-color: #333333;
3291
3291
  }
3292
- .resize-handle {
3292
+ .hep-cr-resize-handle {
3293
3293
  width: 6px;
3294
3294
  background: #252526;
3295
3295
  cursor: col-resize;
@@ -3297,18 +3297,18 @@ const Pt = ({
3297
3297
  align-items: center;
3298
3298
  justify-content: center;
3299
3299
  }
3300
- .resize-handle:hover { background: #4fc3f7; }
3301
- .resize-line { width: 2px; height: 40px; background: #444; border-radius: 1px; }
3302
- .resize-handle:hover .resize-line { background: #fff; }
3303
- .output-panel {
3300
+ .hep-cr-resize-handle:hover { background: #4fc3f7; }
3301
+ .hep-cr-resize-line { width: 2px; height: 40px; background: #444; border-radius: 1px; }
3302
+ .hep-cr-resize-handle:hover .hep-cr-resize-line { background: #fff; }
3303
+ .hep-cr-output-panel {
3304
3304
  display: flex;
3305
3305
  flex-direction: column;
3306
3306
  min-width: 20%;
3307
3307
  border-left: 1px solid #333;
3308
3308
  }
3309
- .code-runner-light .output-panel { border-color: #e0e0e0; }
3310
- .output-tabs { display: flex; gap: 4px; }
3311
- .tab {
3309
+ .hep-cr-runner-light .hep-cr-output-panel { border-color: #e0e0e0; }
3310
+ .hep-cr-output-tabs { display: flex; gap: 4px; }
3311
+ .hep-cr-tab {
3312
3312
  padding: 4px 12px;
3313
3313
  border: none;
3314
3314
  background: transparent;
@@ -3318,12 +3318,12 @@ const Pt = ({
3318
3318
  color: #888;
3319
3319
  transition: all 0.2s;
3320
3320
  }
3321
- .tab:hover { color: #d4d4d4; background: #3d3d3d; }
3322
- .code-runner-light .tab:hover { color: #333; background: #e0e0e0; }
3323
- .tab.active { background: #4fc3f7; color: #000; font-weight: 500; }
3324
- .output-actions { display: flex; align-items: center; gap: 12px; }
3325
- .execution-time { font-size: 12px; color: #4caf50; font-weight: 500; }
3326
- .btn-icon {
3321
+ .hep-cr-tab:hover { color: #d4d4d4; background: #3d3d3d; }
3322
+ .hep-cr-runner-light .hep-cr-tab:hover { color: #333; background: #e0e0e0; }
3323
+ .hep-cr-tab.active { background: #4fc3f7; color: #000; font-weight: 500; }
3324
+ .hep-cr-output-actions { display: flex; align-items: center; gap: 12px; }
3325
+ .hep-cr-execution-time { font-size: 12px; color: #4caf50; font-weight: 500; }
3326
+ .hep-cr-btn-icon {
3327
3327
  background: transparent;
3328
3328
  border: none;
3329
3329
  cursor: pointer;
@@ -3335,16 +3335,16 @@ const Pt = ({
3335
3335
  justify-content: center;
3336
3336
  transition: all 0.2s;
3337
3337
  }
3338
- .btn-icon:hover { color: #fff; background: #3d3d3d; }
3339
- .code-runner-light .btn-icon:hover { color: #333; background: #e0e0e0; }
3340
- .output-content {
3338
+ .hep-cr-btn-icon:hover { color: #fff; background: #3d3d3d; }
3339
+ .hep-cr-runner-light .hep-cr-btn-icon:hover { color: #333; background: #e0e0e0; }
3340
+ .hep-cr-output-content {
3341
3341
  flex: 1;
3342
3342
  padding: 12px 16px;
3343
3343
  overflow: auto;
3344
3344
  background: #1e1e1e;
3345
3345
  }
3346
- .code-runner-light .output-content { background: #fff; }
3347
- .output-content pre {
3346
+ .hep-cr-runner-light .hep-cr-output-content { background: #fff; }
3347
+ .hep-cr-output-content pre {
3348
3348
  margin: 0;
3349
3349
  font-size: 13px;
3350
3350
  line-height: 1.6;
@@ -3352,9 +3352,9 @@ const Pt = ({
3352
3352
  word-break: break-all;
3353
3353
  color: #d4d4d4;
3354
3354
  }
3355
- .code-runner-light .output-content pre { color: #333; }
3356
- .output-content .stderr { color: #f44336; }
3357
- .spinner {
3355
+ .hep-cr-runner-light .hep-cr-output-content pre { color: #333; }
3356
+ .hep-cr-output-content .stderr { color: #f44336; }
3357
+ .hep-cr-spinner {
3358
3358
  width: 12px;
3359
3359
  height: 12px;
3360
3360
  border: 2px solid rgba(255,255,255,0.3);
@@ -3365,7 +3365,7 @@ const Pt = ({
3365
3365
  @keyframes spin { to { transform: rotate(360deg); } }
3366
3366
  ` })
3367
3367
  ] });
3368
- }, Dt = xt(
3368
+ }, Dr = xr(
3369
3369
  ({
3370
3370
  open: d,
3371
3371
  defaultOpen: f = !1,
@@ -3385,15 +3385,15 @@ const Pt = ({
3385
3385
  }, [O, m]), B = (w) => {
3386
3386
  w.target === w.currentTarget && I();
3387
3387
  };
3388
- St(b, () => ({
3388
+ Sr(b, () => ({
3389
3389
  close: I
3390
3390
  }));
3391
3391
  const F = typeof c == "number" ? `${c}px` : c;
3392
- return D ? /* @__PURE__ */ h.jsxs("div", { className: "dialog-overlay", onClick: B, children: [
3393
- /* @__PURE__ */ h.jsxs("div", { className: "dialog-container", style: { width: F }, children: [
3394
- /* @__PURE__ */ h.jsxs("div", { className: "dialog-header", children: [
3395
- /* @__PURE__ */ h.jsx("h3", { className: "dialog-title", children: n }),
3396
- /* @__PURE__ */ h.jsx("button", { className: "dialog-close", onClick: I, children: /* @__PURE__ */ h.jsxs(
3392
+ return D ? /* @__PURE__ */ h.jsxs("div", { className: "hep-cr-dialog-overlay", onClick: B, children: [
3393
+ /* @__PURE__ */ h.jsxs("div", { className: "hep-cr-dialog-container", style: { width: F }, children: [
3394
+ /* @__PURE__ */ h.jsxs("div", { className: "hep-cr-dialog-header", children: [
3395
+ /* @__PURE__ */ h.jsx("h3", { className: "hep-cr-dialog-title", children: n }),
3396
+ /* @__PURE__ */ h.jsx("button", { className: "hep-cr-dialog-close", onClick: I, children: /* @__PURE__ */ h.jsxs(
3397
3397
  "svg",
3398
3398
  {
3399
3399
  width: "16",
@@ -3409,11 +3409,11 @@ const Pt = ({
3409
3409
  }
3410
3410
  ) })
3411
3411
  ] }),
3412
- /* @__PURE__ */ h.jsx("div", { className: "dialog-body", children: /* @__PURE__ */ h.jsx(Pt, { theme: S, ...l }) }),
3413
- k && /* @__PURE__ */ h.jsx("div", { className: "dialog-footer", children: k })
3412
+ /* @__PURE__ */ h.jsx("div", { className: "hep-cr-dialog-body", children: /* @__PURE__ */ h.jsx(Pr, { theme: S, ...l }) }),
3413
+ k && /* @__PURE__ */ h.jsx("div", { className: "hep-cr-dialog-footer", children: k })
3414
3414
  ] }),
3415
3415
  /* @__PURE__ */ h.jsx("style", { children: `
3416
- .dialog-overlay {
3416
+ .hep-cr-dialog-overlay {
3417
3417
  position: fixed;
3418
3418
  top: 0;
3419
3419
  left: 0;
@@ -3424,10 +3424,10 @@ const Pt = ({
3424
3424
  align-items: center;
3425
3425
  justify-content: center;
3426
3426
  z-index: 9999;
3427
- animation: dialog-fade-in 0.2s ease;
3427
+ animation: hep-cr-dialog-fade-in 0.2s ease;
3428
3428
  }
3429
3429
 
3430
- .dialog-container {
3430
+ .hep-cr-dialog-container {
3431
3431
  background: #fff;
3432
3432
  border-radius: 12px;
3433
3433
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
@@ -3436,10 +3436,10 @@ const Pt = ({
3436
3436
  display: flex;
3437
3437
  flex-direction: column;
3438
3438
  overflow: hidden;
3439
- animation: dialog-scale-in 0.2s ease;
3439
+ animation: hep-cr-dialog-scale-in 0.2s ease;
3440
3440
  }
3441
3441
 
3442
- .dialog-header {
3442
+ .hep-cr-dialog-header {
3443
3443
  display: flex;
3444
3444
  align-items: center;
3445
3445
  justify-content: space-between;
@@ -3447,14 +3447,14 @@ const Pt = ({
3447
3447
  border-bottom: 1px solid #e0e0e0;
3448
3448
  }
3449
3449
 
3450
- .dialog-title {
3450
+ .hep-cr-dialog-title {
3451
3451
  margin: 0;
3452
3452
  font-size: 16px;
3453
3453
  font-weight: 600;
3454
3454
  color: #333;
3455
3455
  }
3456
3456
 
3457
- .dialog-close {
3457
+ .hep-cr-dialog-close {
3458
3458
  background: none;
3459
3459
  border: none;
3460
3460
  cursor: pointer;
@@ -3467,23 +3467,23 @@ const Pt = ({
3467
3467
  transition: all 0.2s;
3468
3468
  }
3469
3469
 
3470
- .dialog-close:hover {
3470
+ .hep-cr-dialog-close:hover {
3471
3471
  background: #f0f0f0;
3472
3472
  color: #333;
3473
3473
  }
3474
3474
 
3475
- .dialog-body {
3475
+ .hep-cr-dialog-body {
3476
3476
  flex: 1;
3477
3477
  overflow: auto;
3478
3478
  padding: 0;
3479
3479
  }
3480
3480
 
3481
- .dialog-body .code-runner {
3481
+ .hep-cr-dialog-body .hep-cr-runner {
3482
3482
  border: none;
3483
3483
  border-radius: 0;
3484
3484
  }
3485
3485
 
3486
- .dialog-footer {
3486
+ .hep-cr-dialog-footer {
3487
3487
  padding: 12px 20px;
3488
3488
  border-top: 1px solid #e0e0e0;
3489
3489
  display: flex;
@@ -3491,12 +3491,12 @@ const Pt = ({
3491
3491
  gap: 12px;
3492
3492
  }
3493
3493
 
3494
- @keyframes dialog-fade-in {
3494
+ @keyframes hep-cr-dialog-fade-in {
3495
3495
  from { opacity: 0; }
3496
3496
  to { opacity: 1; }
3497
3497
  }
3498
3498
 
3499
- @keyframes dialog-scale-in {
3499
+ @keyframes hep-cr-dialog-scale-in {
3500
3500
  from { transform: scale(0.95); }
3501
3501
  to { transform: scale(1); }
3502
3502
  }
@@ -3504,9 +3504,9 @@ const Pt = ({
3504
3504
  ] }) : null;
3505
3505
  }
3506
3506
  );
3507
- Dt.displayName = "CodeRunnerDialog";
3507
+ Dr.displayName = "CodeRunnerDialog";
3508
3508
  export {
3509
- Pt as CodeRunner,
3510
- Dt as CodeRunnerDialog,
3511
- Pt as default
3509
+ Pr as CodeRunner,
3510
+ Dr as CodeRunnerDialog,
3511
+ Pr as default
3512
3512
  };