@hep-code-runner/vue3 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.
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
- import { defineComponent as oe, useCssVars as be, ref as L, computed as G, onMounted as ge, watch as le, openBlock as F, createElementBlock as R, normalizeClass as W, createElementVNode as E, withDirectives as Ee, createCommentVNode as U, Fragment as ve, renderList as ye, toDisplayString as H, vModelSelect as Ae, createTextVNode as Se, normalizeStyle as se, createVNode as ie, createBlock as we, Teleport as Te, Transition as ke, withCtx as Ie, normalizeProps as _e, guardReactiveProps as Fe, renderSlot as Re } from "vue";
2
- var xe = Object.defineProperty, Oe = (o, c, a) => c in o ? xe(o, c, { enumerable: !0, configurable: !0, writable: !0, value: a }) : o[c] = a, ce = (o, c, a) => Oe(o, typeof c != "symbol" ? c + "" : c, a);
1
+ import { defineComponent as oe, useCssVars as be, ref as L, computed as G, onMounted as pe, watch as le, openBlock as _, createElementBlock as R, normalizeClass as W, createElementVNode as E, withDirectives as Ee, createCommentVNode as U, Fragment as ve, renderList as ye, toDisplayString as H, vModelSelect as Ae, createTextVNode as Se, normalizeStyle as se, createVNode as ie, createBlock as we, Teleport as Te, Transition as ke, withCtx as Ie, normalizeProps as Fe, guardReactiveProps as _e, renderSlot as Re } from "vue";
2
+ var xe = Object.defineProperty, Oe = (o, d, a) => d in o ? xe(o, d, { enumerable: !0, configurable: !0, writable: !0, value: a }) : o[d] = a, ce = (o, d, a) => Oe(o, typeof d != "symbol" ? d + "" : d, a);
3
3
  let ae = null;
4
4
  class Ne {
5
- constructor(c = {}) {
6
- ce(this, "baseUrl"), ce(this, "timeout"), this.baseUrl = c.pistonUrl || "/api/piston", this.timeout = c.timeout || 3e3;
5
+ constructor(d = {}) {
6
+ ce(this, "baseUrl"), ce(this, "timeout"), this.baseUrl = d.pistonUrl || "/api/piston", this.timeout = d.timeout || 3e3;
7
7
  }
8
- async getRuntimes(c = !1) {
9
- if (ae && !c)
8
+ async getRuntimes(d = !1) {
9
+ if (ae && !d)
10
10
  return ae;
11
11
  try {
12
12
  const a = await fetch(`${this.baseUrl}/runtimes`, {
@@ -23,18 +23,18 @@ class Ne {
23
23
  throw console.error("Failed to fetch runtimes:", a), a;
24
24
  }
25
25
  }
26
- async execute(c, a, l = {}) {
27
- const m = (await this.getRuntimes()).find(
26
+ async execute(d, a, l = {}) {
27
+ const h = (await this.getRuntimes()).find(
28
28
  (f) => {
29
- var h;
30
- return f.language.toLowerCase() === c.toLowerCase() || ((h = f.aliases) == null ? void 0 : h.some((k) => k.toLowerCase() === c.toLowerCase()));
29
+ var m;
30
+ return f.language.toLowerCase() === d.toLowerCase() || ((m = f.aliases) == null ? void 0 : m.some((k) => k.toLowerCase() === d.toLowerCase()));
31
31
  }
32
32
  );
33
- if (!m)
34
- throw new Error(`Language '${c}' is not supported`);
35
- const y = this.getFileName(c), A = {
36
- language: m.language,
37
- version: l.version || m.version,
33
+ if (!h)
34
+ throw new Error(`Language '${d}' is not supported`);
35
+ const y = this.getFileName(d), A = {
36
+ language: h.language,
37
+ version: l.version || h.version,
38
38
  files: [
39
39
  {
40
40
  name: y,
@@ -56,17 +56,17 @@ class Ne {
56
56
  });
57
57
  if (!f.ok)
58
58
  throw new Error(`Execute failed: ${f.statusText}`);
59
- const h = await f.json(), k = Date.now() - s, N = h.run.stdout || "", I = h.run.stderr || "";
59
+ const m = await f.json(), k = Date.now() - s, N = m.run.stdout || "", I = m.run.stderr || "";
60
60
  return {
61
- success: h.run.code === 0,
61
+ success: m.run.code === 0,
62
62
  output: N,
63
63
  stderr: I,
64
- code: h.run.code,
64
+ code: m.run.code,
65
65
  executionTime: k,
66
- compile: h.compile ? {
67
- stdout: h.compile.stdout || "",
68
- stderr: h.compile.stderr || "",
69
- code: h.compile.code
66
+ compile: m.compile ? {
67
+ stdout: m.compile.stdout || "",
68
+ stderr: m.compile.stderr || "",
69
+ code: m.compile.code
70
70
  } : void 0
71
71
  };
72
72
  } catch (f) {
@@ -79,7 +79,7 @@ class Ne {
79
79
  };
80
80
  }
81
81
  }
82
- getFileName(c) {
82
+ getFileName(d) {
83
83
  return {
84
84
  javascript: "main.js",
85
85
  typescript: "main.ts",
@@ -106,7 +106,7 @@ class Ne {
106
106
  css: "style.css",
107
107
  sql: "query.sql",
108
108
  markdown: "readme.md"
109
- }[c.toLowerCase()] || `main.${c}`;
109
+ }[d.toLowerCase()] || `main.${d}`;
110
110
  }
111
111
  }
112
112
  const Le = {
@@ -208,17 +208,17 @@ h1 {
208
208
  This is a sample markdown document.`
209
209
  };
210
210
  function ne(o) {
211
- const c = o.toLowerCase();
212
- return Le[c] || `// ${o}
211
+ const d = o.toLowerCase();
212
+ return Le[d] || `// ${o}
213
213
  // Write your code here`;
214
214
  }
215
- var pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
215
+ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
216
216
  function Ce(o) {
217
217
  return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
218
218
  }
219
- var me = { exports: {} };
219
+ var ge = { exports: {} };
220
220
  (function(o) {
221
- var c = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
221
+ var d = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
222
222
  /**
223
223
  * Prism: Lightweight, robust, elegant syntax highlighting
224
224
  *
@@ -228,7 +228,7 @@ var me = { exports: {} };
228
228
  * @public
229
229
  */
230
230
  var a = function(l) {
231
- var m = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, y = 0, A = {}, s = {
231
+ var h = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, y = 0, A = {}, s = {
232
232
  /**
233
233
  * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
234
234
  * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
@@ -333,8 +333,8 @@ var me = { exports: {} };
333
333
  return n[i];
334
334
  r = /** @type {Record<string, any>} */
335
335
  {}, n[i] = r;
336
- for (var d in e)
337
- e.hasOwnProperty(d) && (r[d] = t(e[d], n));
336
+ for (var c in e)
337
+ e.hasOwnProperty(c) && (r[c] = t(e[c], n));
338
338
  return (
339
339
  /** @type {any} */
340
340
  r
@@ -360,7 +360,7 @@ var me = { exports: {} };
360
360
  */
361
361
  getLanguage: function(t) {
362
362
  for (; t; ) {
363
- var e = m.exec(t.className);
363
+ var e = h.exec(t.className);
364
364
  if (e)
365
365
  return e[1].toLowerCase();
366
366
  t = t.parentElement;
@@ -375,7 +375,7 @@ var me = { exports: {} };
375
375
  * @returns {void}
376
376
  */
377
377
  setLanguage: function(t, e) {
378
- t.className = t.className.replace(RegExp(m, "gi"), ""), t.classList.add("language-" + e);
378
+ t.className = t.className.replace(RegExp(h, "gi"), ""), t.classList.add("language-" + e);
379
379
  },
380
380
  /**
381
381
  * Returns the script element that is currently executing.
@@ -563,28 +563,28 @@ var me = { exports: {} };
563
563
  insertBefore: function(t, e, n, r) {
564
564
  r = r || /** @type {any} */
565
565
  s.languages;
566
- var i = r[t], d = {};
566
+ var i = r[t], c = {};
567
567
  for (var b in i)
568
568
  if (i.hasOwnProperty(b)) {
569
569
  if (b == e)
570
570
  for (var u in n)
571
- n.hasOwnProperty(u) && (d[u] = n[u]);
572
- n.hasOwnProperty(b) || (d[b] = i[b]);
571
+ n.hasOwnProperty(u) && (c[u] = n[u]);
572
+ n.hasOwnProperty(b) || (c[b] = i[b]);
573
573
  }
574
574
  var w = r[t];
575
- return r[t] = d, s.languages.DFS(s.languages, function(_, P) {
576
- P === w && _ != t && (this[_] = d);
577
- }), d;
575
+ return r[t] = c, s.languages.DFS(s.languages, function(F, P) {
576
+ P === w && F != t && (this[F] = c);
577
+ }), c;
578
578
  },
579
579
  // Traverse a language definition with Depth First Search
580
580
  DFS: function t(e, n, r, i) {
581
581
  i = i || {};
582
- var d = s.util.objId;
582
+ var c = s.util.objId;
583
583
  for (var b in e)
584
584
  if (e.hasOwnProperty(b)) {
585
585
  n.call(e, b, e[b], r || b);
586
586
  var u = e[b], w = s.util.type(u);
587
- w === "Object" && !i[d(u)] ? (i[d(u)] = !0, t(u, n, null, i)) : w === "Array" && !i[d(u)] && (i[d(u)] = !0, t(u, n, b, i));
587
+ w === "Object" && !i[c(u)] ? (i[c(u)] = !0, t(u, n, null, i)) : w === "Array" && !i[c(u)] && (i[c(u)] = !0, t(u, n, b, i));
588
588
  }
589
589
  }
590
590
  },
@@ -626,8 +626,8 @@ var me = { exports: {} };
626
626
  selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
627
627
  };
628
628
  s.hooks.run("before-highlightall", r), r.elements = Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)), s.hooks.run("before-all-elements-highlight", r);
629
- for (var i = 0, d; d = r.elements[i++]; )
630
- s.highlightElement(d, e === !0, r.callback);
629
+ for (var i = 0, c; c = r.elements[i++]; )
630
+ s.highlightElement(c, e === !0, r.callback);
631
631
  },
632
632
  /**
633
633
  * Highlights the code inside a single element.
@@ -660,8 +660,8 @@ var me = { exports: {} };
660
660
  highlightElement: function(t, e, n) {
661
661
  var r = s.util.getLanguage(t), i = s.languages[r];
662
662
  s.util.setLanguage(t, r);
663
- var d = t.parentElement;
664
- d && d.nodeName.toLowerCase() === "pre" && s.util.setLanguage(d, r);
663
+ var c = t.parentElement;
664
+ c && c.nodeName.toLowerCase() === "pre" && s.util.setLanguage(c, r);
665
665
  var b = t.textContent, u = {
666
666
  element: t,
667
667
  language: r,
@@ -671,7 +671,7 @@ var me = { exports: {} };
671
671
  function w(P) {
672
672
  u.highlightedCode = P, s.hooks.run("before-insert", u), u.element.innerHTML = u.highlightedCode, s.hooks.run("after-highlight", u), s.hooks.run("complete", u), n && n.call(u.element);
673
673
  }
674
- if (s.hooks.run("before-sanity-check", u), d = u.element.parentElement, d && d.nodeName.toLowerCase() === "pre" && !d.hasAttribute("tabindex") && d.setAttribute("tabindex", "0"), !u.code) {
674
+ if (s.hooks.run("before-sanity-check", u), c = u.element.parentElement, c && c.nodeName.toLowerCase() === "pre" && !c.hasAttribute("tabindex") && c.setAttribute("tabindex", "0"), !u.code) {
675
675
  s.hooks.run("complete", u), n && n.call(u.element);
676
676
  return;
677
677
  }
@@ -680,10 +680,10 @@ var me = { exports: {} };
680
680
  return;
681
681
  }
682
682
  if (e && l.Worker) {
683
- var _ = new Worker(s.filename);
684
- _.onmessage = function(P) {
683
+ var F = new Worker(s.filename);
684
+ F.onmessage = function(P) {
685
685
  w(P.data);
686
- }, _.postMessage(JSON.stringify({
686
+ }, F.postMessage(JSON.stringify({
687
687
  language: u.language,
688
688
  code: u.code,
689
689
  immediateClose: !0
@@ -816,43 +816,43 @@ var me = { exports: {} };
816
816
  classes: ["token", e.type],
817
817
  attributes: {},
818
818
  language: n
819
- }, d = e.alias;
820
- d && (Array.isArray(d) ? Array.prototype.push.apply(i.classes, d) : i.classes.push(d)), s.hooks.run("wrap", i);
819
+ }, c = e.alias;
820
+ c && (Array.isArray(c) ? Array.prototype.push.apply(i.classes, c) : i.classes.push(c)), s.hooks.run("wrap", i);
821
821
  var b = "";
822
822
  for (var u in i.attributes)
823
823
  b += " " + u + '="' + (i.attributes[u] || "").replace(/"/g, "&quot;") + '"';
824
824
  return "<" + i.tag + ' class="' + i.classes.join(" ") + '"' + b + ">" + i.content + "</" + i.tag + ">";
825
825
  };
826
- function h(t, e, n, r) {
826
+ function m(t, e, n, r) {
827
827
  t.lastIndex = e;
828
828
  var i = t.exec(n);
829
829
  if (i && r && i[1]) {
830
- var d = i[1].length;
831
- i.index += d, i[0] = i[0].slice(d);
830
+ var c = i[1].length;
831
+ i.index += c, i[0] = i[0].slice(c);
832
832
  }
833
833
  return i;
834
834
  }
835
- function k(t, e, n, r, i, d) {
835
+ function k(t, e, n, r, i, c) {
836
836
  for (var b in n)
837
837
  if (!(!n.hasOwnProperty(b) || !n[b])) {
838
838
  var u = n[b];
839
839
  u = Array.isArray(u) ? u : [u];
840
840
  for (var w = 0; w < u.length; ++w) {
841
- if (d && d.cause == b + "," + w)
841
+ if (c && c.cause == b + "," + w)
842
842
  return;
843
- var _ = u[w], P = _.inside, V = !!_.lookbehind, v = !!_.greedy, T = _.alias;
844
- if (v && !_.pattern.global) {
845
- var x = _.pattern.toString().match(/[imsuy]*$/)[0];
846
- _.pattern = RegExp(_.pattern.source, x + "g");
843
+ var F = u[w], P = F.inside, V = !!F.lookbehind, v = !!F.greedy, T = F.alias;
844
+ if (v && !F.pattern.global) {
845
+ var x = F.pattern.toString().match(/[imsuy]*$/)[0];
846
+ F.pattern = RegExp(F.pattern.source, x + "g");
847
847
  }
848
- for (var Y = _.pattern || _, O = r.next, M = i; O !== e.tail && !(d && M >= d.reach); M += O.value.length, O = O.next) {
848
+ for (var Y = F.pattern || F, O = r.next, M = i; O !== e.tail && !(c && M >= c.reach); M += O.value.length, O = O.next) {
849
849
  var z = O.value;
850
850
  if (e.length > t.length)
851
851
  return;
852
852
  if (!(z instanceof f)) {
853
853
  var X = 1, $;
854
854
  if (v) {
855
- if ($ = h(Y, M, t, V), !$ || $.index >= t.length)
855
+ if ($ = m(Y, M, t, V), !$ || $.index >= t.length)
856
856
  break;
857
857
  var Z = $.index, fe = $.index + $[0].length, B = M;
858
858
  for (B += O.value.length; Z >= B; )
@@ -862,19 +862,19 @@ var me = { exports: {} };
862
862
  for (var j = O; j !== e.tail && (B < fe || typeof j.value == "string"); j = j.next)
863
863
  X++, B += j.value.length;
864
864
  X--, z = t.slice(M, B), $.index -= M;
865
- } else if ($ = h(Y, 0, z, V), !$)
865
+ } else if ($ = m(Y, 0, z, V), !$)
866
866
  continue;
867
- var Z = $.index, K = $[0], Q = z.slice(0, Z), de = z.slice(Z + K.length), ee = M + z.length;
868
- d && ee > d.reach && (d.reach = ee);
867
+ var Z = $.index, K = $[0], Q = z.slice(0, Z), ue = z.slice(Z + K.length), ee = M + z.length;
868
+ c && ee > c.reach && (c.reach = ee);
869
869
  var q = O.prev;
870
870
  Q && (q = I(e, q, Q), M += Q.length), C(e, q, X);
871
- var he = new f(b, P ? s.tokenize(K, P) : K, T, K);
872
- if (O = I(e, q, he), de && I(e, O, de), X > 1) {
871
+ var me = new f(b, P ? s.tokenize(K, P) : K, T, K);
872
+ if (O = I(e, q, me), ue && I(e, O, ue), X > 1) {
873
873
  var te = {
874
874
  cause: b + "," + w,
875
875
  reach: ee
876
876
  };
877
- k(t, e, n, O.prev, M, te), d && te.reach > d.reach && (d.reach = te.reach);
877
+ k(t, e, n, O.prev, M, te), c && te.reach > c.reach && (c.reach = te.reach);
878
878
  }
879
879
  }
880
880
  }
@@ -914,8 +914,8 @@ var me = { exports: {} };
914
914
  S === "loading" || S === "interactive" && g && g.defer ? document.addEventListener("DOMContentLoaded", p) : window.requestAnimationFrame ? window.requestAnimationFrame(p) : window.setTimeout(p, 16);
915
915
  }
916
916
  return s;
917
- }(c);
918
- o.exports && (o.exports = a), typeof pe < "u" && (pe.Prism = a), a.languages.markup = {
917
+ }(d);
918
+ o.exports && (o.exports = a), typeof de < "u" && (de.Prism = a), a.languages.markup = {
919
919
  comment: {
920
920
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
921
921
  greedy: !0
@@ -1006,7 +1006,7 @@ var me = { exports: {} };
1006
1006
  * @example
1007
1007
  * addInlined('style', 'css');
1008
1008
  */
1009
- value: function(m, y) {
1009
+ value: function(h, y) {
1010
1010
  var A = {};
1011
1011
  A["language-" + y] = {
1012
1012
  pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
@@ -1024,9 +1024,9 @@ var me = { exports: {} };
1024
1024
  inside: a.languages[y]
1025
1025
  };
1026
1026
  var f = {};
1027
- f[m] = {
1027
+ f[h] = {
1028
1028
  pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
1029
- return m;
1029
+ return h;
1030
1030
  }), "i"),
1031
1031
  lookbehind: !0,
1032
1032
  greedy: !0,
@@ -1045,7 +1045,7 @@ var me = { exports: {} };
1045
1045
  * @example
1046
1046
  * addAttribute('style', 'css');
1047
1047
  */
1048
- value: function(l, m) {
1048
+ value: function(l, h) {
1049
1049
  a.languages.markup.tag.inside["special-attr"].push({
1050
1050
  pattern: RegExp(
1051
1051
  /(^|["'\s])/.source + "(?:" + l + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
@@ -1060,8 +1060,8 @@ var me = { exports: {} };
1060
1060
  value: {
1061
1061
  pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
1062
1062
  lookbehind: !0,
1063
- alias: [m, "language-" + m],
1064
- inside: a.languages[m]
1063
+ alias: [h, "language-" + h],
1064
+ inside: a.languages[h]
1065
1065
  },
1066
1066
  punctuation: [
1067
1067
  {
@@ -1076,11 +1076,11 @@ var me = { exports: {} };
1076
1076
  });
1077
1077
  }
1078
1078
  }), a.languages.html = a.languages.markup, a.languages.mathml = a.languages.markup, a.languages.svg = a.languages.markup, a.languages.xml = a.languages.extend("markup", {}), a.languages.ssml = a.languages.xml, a.languages.atom = a.languages.xml, a.languages.rss = a.languages.xml, function(l) {
1079
- var m = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
1079
+ var h = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
1080
1080
  l.languages.css = {
1081
1081
  comment: /\/\*[\s\S]*?\*\//,
1082
1082
  atrule: {
1083
- pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + m.source + ")*?" + /(?:;|(?=\s*\{))/.source),
1083
+ pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + h.source + ")*?" + /(?:;|(?=\s*\{))/.source),
1084
1084
  inside: {
1085
1085
  rule: /^@[\w-]+/,
1086
1086
  "selector-function-argument": {
@@ -1097,23 +1097,23 @@ var me = { exports: {} };
1097
1097
  },
1098
1098
  url: {
1099
1099
  // https://drafts.csswg.org/css-values-3/#urls
1100
- pattern: RegExp("\\burl\\((?:" + m.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
1100
+ pattern: RegExp("\\burl\\((?:" + h.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
1101
1101
  greedy: !0,
1102
1102
  inside: {
1103
1103
  function: /^url/i,
1104
1104
  punctuation: /^\(|\)$/,
1105
1105
  string: {
1106
- pattern: RegExp("^" + m.source + "$"),
1106
+ pattern: RegExp("^" + h.source + "$"),
1107
1107
  alias: "url"
1108
1108
  }
1109
1109
  }
1110
1110
  },
1111
1111
  selector: {
1112
- pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + m.source + ")*(?=\\s*\\{)"),
1112
+ pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + h.source + ")*(?=\\s*\\{)"),
1113
1113
  lookbehind: !0
1114
1114
  },
1115
1115
  string: {
1116
- pattern: m,
1116
+ pattern: h,
1117
1117
  greedy: !0
1118
1118
  },
1119
1119
  property: {
@@ -1293,7 +1293,7 @@ var me = { exports: {} };
1293
1293
  if (typeof a > "u" || typeof document > "u")
1294
1294
  return;
1295
1295
  Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
1296
- var l = "Loading…", m = function(g, p) {
1296
+ var l = "Loading…", h = function(g, p) {
1297
1297
  return "✖ Error " + g + " while fetching file: " + p;
1298
1298
  }, y = "✖ Error: File does not exist or is empty", A = {
1299
1299
  js: "javascript",
@@ -1305,11 +1305,11 @@ var me = { exports: {} };
1305
1305
  bat: "batch",
1306
1306
  h: "c",
1307
1307
  tex: "latex"
1308
- }, s = "data-src-status", f = "loading", h = "loaded", k = "failed", N = "pre[data-src]:not([" + s + '="' + h + '"]):not([' + s + '="' + f + '"])';
1308
+ }, s = "data-src-status", f = "loading", m = "loaded", k = "failed", N = "pre[data-src]:not([" + s + '="' + m + '"]):not([' + s + '="' + f + '"])';
1309
1309
  function I(g, p, S) {
1310
1310
  var t = new XMLHttpRequest();
1311
1311
  t.open("GET", g, !0), t.onreadystatechange = function() {
1312
- t.readyState == 4 && (t.status < 400 && t.responseText ? p(t.responseText) : t.status >= 400 ? S(m(t.status, t.statusText)) : S(y));
1312
+ t.readyState == 4 && (t.status < 400 && t.responseText ? p(t.responseText) : t.status >= 400 ? S(h(t.status, t.statusText)) : S(y));
1313
1313
  }, t.send(null);
1314
1314
  }
1315
1315
  function C(g) {
@@ -1340,10 +1340,10 @@ var me = { exports: {} };
1340
1340
  r && r.loadLanguages(e), I(
1341
1341
  t,
1342
1342
  function(i) {
1343
- p.setAttribute(s, h);
1344
- var d = C(p.getAttribute("data-range"));
1345
- if (d) {
1346
- var b = i.split(/\r\n?|\n/g), u = d[0], w = d[1] == null ? b.length : d[1];
1343
+ p.setAttribute(s, m);
1344
+ var c = C(p.getAttribute("data-range"));
1345
+ if (c) {
1346
+ var b = i.split(/\r\n?|\n/g), u = c[0], w = c[1] == null ? b.length : c[1];
1347
1347
  u < 0 && (u += b.length), u = Math.max(0, Math.min(u - 1, b.length)), w < 0 && (w += b.length), w = Math.max(0, Math.min(w, b.length)), i = b.slice(u, w).join(`
1348
1348
  `), p.hasAttribute("data-start") || p.setAttribute("data-start", String(u + 1));
1349
1349
  }
@@ -1372,8 +1372,8 @@ var me = { exports: {} };
1372
1372
  D || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), D = !0), a.plugins.fileHighlight.highlight.apply(this, arguments);
1373
1373
  };
1374
1374
  }();
1375
- })(me);
1376
- var De = me.exports;
1375
+ })(ge);
1376
+ var De = ge.exports;
1377
1377
  const re = /* @__PURE__ */ Ce(De);
1378
1378
  Prism.languages.clike = {
1379
1379
  comment: [
@@ -1633,7 +1633,7 @@ Prism.languages.insertBefore("go", "string", {
1633
1633
  });
1634
1634
  delete Prism.languages.go["class-name"];
1635
1635
  (function(o) {
1636
- var c = /\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/, a = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, l = {
1636
+ var d = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, a = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, l = {
1637
1637
  pattern: RegExp(/(^|[^\w.])/.source + a + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),
1638
1638
  lookbehind: !0,
1639
1639
  inside: {
@@ -1669,7 +1669,7 @@ delete Prism.languages.go["class-name"];
1669
1669
  inside: l.inside
1670
1670
  }
1671
1671
  ],
1672
- keyword: c,
1672
+ keyword: d,
1673
1673
  function: [
1674
1674
  o.languages.clike.function,
1675
1675
  {
@@ -1704,7 +1704,7 @@ delete Prism.languages.go["class-name"];
1704
1704
  pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
1705
1705
  inside: {
1706
1706
  "class-name": l,
1707
- keyword: c,
1707
+ keyword: d,
1708
1708
  punctuation: /[<>(),.:]/,
1709
1709
  operator: /[?&|]/
1710
1710
  }
@@ -1736,7 +1736,7 @@ delete Prism.languages.go["class-name"];
1736
1736
  namespace: {
1737
1737
  pattern: RegExp(
1738
1738
  /(\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() {
1739
- return c.source;
1739
+ return d.source;
1740
1740
  })
1741
1741
  ),
1742
1742
  lookbehind: !0,
@@ -1823,16 +1823,16 @@ Prism.languages.insertBefore("c", "function", {
1823
1823
  });
1824
1824
  delete Prism.languages.c.boolean;
1825
1825
  (function(o) {
1826
- for (var c = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, a = 0; a < 2; a++)
1827
- c = c.replace(/<self>/g, function() {
1828
- return c;
1826
+ for (var d = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, a = 0; a < 2; a++)
1827
+ d = d.replace(/<self>/g, function() {
1828
+ return d;
1829
1829
  });
1830
- c = c.replace(/<self>/g, function() {
1830
+ d = d.replace(/<self>/g, function() {
1831
1831
  return /[^\s\S]/.source;
1832
1832
  }), o.languages.rust = {
1833
1833
  comment: [
1834
1834
  {
1835
- pattern: RegExp(/(^|[^\\])/.source + c),
1835
+ pattern: RegExp(/(^|[^\\])/.source + d),
1836
1836
  lookbehind: !0,
1837
1837
  greedy: !0
1838
1838
  },
@@ -1972,7 +1972,7 @@ Prism.languages.sql = {
1972
1972
  punctuation: /[;[\]()`,.]/
1973
1973
  };
1974
1974
  (function(o) {
1975
- var c = "\\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", a = {
1975
+ var d = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", a = {
1976
1976
  pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
1977
1977
  lookbehind: !0,
1978
1978
  alias: "punctuation",
@@ -1982,7 +1982,7 @@ Prism.languages.sql = {
1982
1982
  }, l = {
1983
1983
  bash: a,
1984
1984
  environment: {
1985
- pattern: RegExp("\\$" + c),
1985
+ pattern: RegExp("\\$" + d),
1986
1986
  alias: "constant"
1987
1987
  },
1988
1988
  variable: [
@@ -2022,7 +2022,7 @@ Prism.languages.sql = {
2022
2022
  operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
2023
2023
  punctuation: /[\[\]]/,
2024
2024
  environment: {
2025
- pattern: RegExp("(\\{)" + c),
2025
+ pattern: RegExp("(\\{)" + d),
2026
2026
  lookbehind: !0,
2027
2027
  alias: "constant"
2028
2028
  }
@@ -2071,7 +2071,7 @@ Prism.languages.sql = {
2071
2071
  pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
2072
2072
  inside: {
2073
2073
  environment: {
2074
- pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + c),
2074
+ pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + d),
2075
2075
  lookbehind: !0,
2076
2076
  alias: "constant"
2077
2077
  }
@@ -2127,7 +2127,7 @@ Prism.languages.sql = {
2127
2127
  }
2128
2128
  ],
2129
2129
  environment: {
2130
- pattern: RegExp("\\$?" + c),
2130
+ pattern: RegExp("\\$?" + d),
2131
2131
  alias: "constant"
2132
2132
  },
2133
2133
  variable: l.variable,
@@ -2170,7 +2170,7 @@ Prism.languages.sql = {
2170
2170
  lookbehind: !0
2171
2171
  }
2172
2172
  }, a.inside = o.languages.bash;
2173
- for (var m = [
2173
+ for (var h = [
2174
2174
  "comment",
2175
2175
  "function-name",
2176
2176
  "for-or-select",
@@ -2186,8 +2186,8 @@ Prism.languages.sql = {
2186
2186
  "operator",
2187
2187
  "punctuation",
2188
2188
  "number"
2189
- ], y = l.variable[1].inside, A = 0; A < m.length; A++)
2190
- y[m[A]] = o.languages.bash[m[A]];
2189
+ ], y = l.variable[1].inside, A = 0; A < h.length; A++)
2190
+ y[h[A]] = o.languages.bash[h[A]];
2191
2191
  o.languages.sh = o.languages.bash, o.languages.shell = o.languages.bash;
2192
2192
  })(Prism);
2193
2193
  Prism.languages.json = {
@@ -2224,22 +2224,22 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2224
2224
  disabled: { type: Boolean, default: !1 }
2225
2225
  },
2226
2226
  emits: ["update:modelValue"],
2227
- setup(o, { emit: c }) {
2227
+ setup(o, { emit: d }) {
2228
2228
  be((g) => ({
2229
- v4a58b198: h.value
2229
+ v27028a20: m.value
2230
2230
  }));
2231
2231
  function a(g) {
2232
2232
  if (typeof document > "u") return;
2233
- const p = g === "dark" ? "prism-okaidia" : "prism", S = document.getElementById("prism-theme-style"), t = `https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/${p}.min.css`;
2234
- if (S)
2235
- S.setAttribute("href", t);
2233
+ const p = g === "dark" ? "prism-okaidia" : "prism", S = "hep-cr-prism-theme", t = document.getElementById(S);
2234
+ if (t)
2235
+ t.setAttribute("href", `https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/${p}.min.css`);
2236
2236
  else {
2237
2237
  const e = document.createElement("link");
2238
- e.id = "prism-theme-style", e.rel = "stylesheet", e.href = t, document.head.appendChild(e);
2238
+ e.id = S, e.rel = "stylesheet", e.href = `https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/${p}.min.css`, document.head.appendChild(e);
2239
2239
  }
2240
2240
  }
2241
2241
  typeof window < "u" && (window.Prism = re);
2242
- const l = o, m = c, y = L(null), A = L(null), s = {
2242
+ const l = o, h = d, y = L(null), A = L(null), s = {
2243
2243
  javascript: "javascript",
2244
2244
  js: "javascript",
2245
2245
  typescript: "typescript",
@@ -2270,7 +2270,7 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2270
2270
  yml: "yaml",
2271
2271
  markdown: "markdown",
2272
2272
  md: "markdown"
2273
- }, f = G(() => s[l.language.toLowerCase()] || "javascript"), h = G(() => l.theme === "dark" ? "#1e1e1e" : "#fafafa"), k = G(() => {
2273
+ }, f = G(() => s[l.language.toLowerCase()] || "javascript"), m = G(() => l.theme === "dark" ? "#1e1e1e" : "#fafafa"), k = G(() => {
2274
2274
  try {
2275
2275
  const g = re.languages[f.value];
2276
2276
  if (g)
@@ -2285,7 +2285,7 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2285
2285
  }
2286
2286
  function I(g) {
2287
2287
  const p = g.target;
2288
- m("update:modelValue", p.value);
2288
+ h("update:modelValue", p.value);
2289
2289
  }
2290
2290
  function C() {
2291
2291
  y.value && A.value && (A.value.scrollTop = y.value.scrollTop, A.value.scrollLeft = y.value.scrollLeft);
@@ -2294,20 +2294,20 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2294
2294
  if (g.key === "Tab") {
2295
2295
  g.preventDefault();
2296
2296
  const p = g.target, S = p.selectionStart, t = p.selectionEnd, e = p.value;
2297
- p.value = e.substring(0, S) + " " + e.substring(t), p.selectionStart = p.selectionEnd = S + 2, m("update:modelValue", p.value);
2297
+ p.value = e.substring(0, S) + " " + e.substring(t), p.selectionStart = p.selectionEnd = S + 2, h("update:modelValue", p.value);
2298
2298
  }
2299
2299
  }
2300
- return ge(() => {
2300
+ return pe(() => {
2301
2301
  a(l.theme);
2302
2302
  }), le(() => l.theme, (g) => {
2303
2303
  a(g);
2304
- }), (g, p) => (F(), R("div", {
2305
- class: W(["code-editor", `theme-${o.theme}`])
2304
+ }), (g, p) => (_(), R("div", {
2305
+ class: W(["hep-cr-editor", `hep-cr-theme-${o.theme}`])
2306
2306
  }, [
2307
2307
  E("pre", {
2308
2308
  ref_key: "highlightRef",
2309
2309
  ref: A,
2310
- class: W(["code-highlight", [`language-${f.value}`, `prism-theme-${o.theme}`]]),
2310
+ class: W(["hep-cr-highlight", [`language-${f.value}`, `hep-cr-prism-${o.theme}`]]),
2311
2311
  "aria-hidden": "true"
2312
2312
  }, [
2313
2313
  E("code", { innerHTML: k.value }, null, 8, Pe)
@@ -2315,7 +2315,7 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2315
2315
  E("textarea", {
2316
2316
  ref_key: "codeRef",
2317
2317
  ref: y,
2318
- class: "code-input",
2318
+ class: "hep-cr-input",
2319
2319
  value: o.modelValue,
2320
2320
  disabled: o.disabled,
2321
2321
  onInput: I,
@@ -2326,29 +2326,29 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2326
2326
  }, null, 40, $e)
2327
2327
  ], 2));
2328
2328
  }
2329
- }), ue = (o, c) => {
2329
+ }), he = (o, d) => {
2330
2330
  const a = o.__vccOpts || o;
2331
- for (const [l, m] of c)
2332
- a[l] = m;
2331
+ for (const [l, h] of d)
2332
+ a[l] = h;
2333
2333
  return a;
2334
- }, Ue = /* @__PURE__ */ ue(Me, [["__scopeId", "data-v-0ec35612"]]), He = { class: "code-runner-header" }, Be = { class: "code-runner-controls" }, Ge = ["disabled"], ze = {
2334
+ }, Ue = /* @__PURE__ */ he(Me, [["__scopeId", "data-v-1d5e2c50"]]), He = { class: "hep-cr-header" }, Be = { class: "hep-cr-controls" }, Ge = ["disabled"], ze = {
2335
2335
  key: 0,
2336
2336
  value: ""
2337
- }, je = ["value"], We = { class: "code-runner-actions" }, Ve = ["disabled"], Ye = {
2337
+ }, je = ["value"], We = { class: "hep-cr-actions" }, Ve = ["disabled"], Ye = {
2338
2338
  key: 0,
2339
- class: "spinner"
2339
+ class: "hep-cr-spinner"
2340
2340
  }, Xe = {
2341
2341
  key: 1,
2342
- class: "run-icon"
2342
+ class: "hep-cr-run-icon"
2343
2343
  }, Ze = ["title"], Ke = {
2344
2344
  key: 0,
2345
- class: "error-message"
2346
- }, qe = { class: "code-runner-main" }, Je = { class: "panel-header" }, Qe = { class: "language-badge" }, et = { class: "panel-header" }, tt = { class: "output-tabs" }, at = { class: "output-actions" }, nt = {
2345
+ class: "hep-cr-error"
2346
+ }, qe = { class: "hep-cr-main" }, Je = { class: "hep-cr-panel-header" }, Qe = { class: "hep-cr-language-badge" }, et = { class: "hep-cr-panel-header" }, tt = { class: "hep-cr-output-tabs" }, at = { class: "hep-cr-output-actions" }, nt = {
2347
2347
  key: 0,
2348
- class: "execution-time"
2349
- }, rt = { class: "output-content" }, st = { key: 0 }, it = {
2348
+ class: "hep-cr-execution-time"
2349
+ }, rt = { class: "hep-cr-output-content" }, st = { key: 0 }, it = {
2350
2350
  key: 1,
2351
- class: "stderr"
2351
+ class: "hep-cr-stderr"
2352
2352
  }, ot = /* @__PURE__ */ oe({
2353
2353
  __name: "CodeRunner",
2354
2354
  props: {
@@ -2362,14 +2362,14 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2362
2362
  executorLabel: { default: "运行" }
2363
2363
  },
2364
2364
  emits: ["execute-start", "execute-end", "language-change"],
2365
- setup(o, { emit: c }) {
2366
- const a = o, l = c, m = L([]), y = L(a.language), A = L(a.theme), s = L(""), f = L(""), h = L(""), k = L(!1), N = L(null), I = L("stdout"), C = L(null), D = L(!1), g = L(60);
2365
+ setup(o, { emit: d }) {
2366
+ const a = o, l = d, h = L([]), y = L(a.language), A = L(a.theme), s = L(""), f = L(""), m = L(""), k = L(!1), N = L(null), I = L("stdout"), C = L(null), D = L(!1), g = L(60);
2367
2367
  function p() {
2368
2368
  A.value = A.value === "light" ? "dark" : "light";
2369
2369
  }
2370
2370
  const S = G(
2371
2371
  () => new Ne({ pistonUrl: a.pistonUrl })
2372
- ), t = G(() => m.value.map((v) => ({
2372
+ ), t = G(() => h.value.map((v) => ({
2373
2373
  value: `${v.language}:${v.version}`,
2374
2374
  label: `${v.language.charAt(0).toUpperCase() + v.language.slice(1)} ${v.version}`
2375
2375
  }))), e = G(() => {
@@ -2379,7 +2379,7 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2379
2379
  async function n() {
2380
2380
  D.value = !0, C.value = null;
2381
2381
  try {
2382
- m.value = await S.value.getRuntimes();
2382
+ h.value = await S.value.getRuntimes();
2383
2383
  } catch (v) {
2384
2384
  C.value = v instanceof Error ? v.message : "Failed to load runtimes";
2385
2385
  } finally {
@@ -2392,10 +2392,10 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2392
2392
  });
2393
2393
  async function r() {
2394
2394
  if (!k.value) {
2395
- k.value = !0, f.value = "", h.value = "", N.value = null, C.value = null, I.value = "stdout", l("execute-start");
2395
+ k.value = !0, f.value = "", m.value = "", N.value = null, C.value = null, I.value = "stdout", l("execute-start");
2396
2396
  try {
2397
2397
  const v = await S.value.execute(e.value, s.value);
2398
- f.value = v.output, h.value = v.stderr, N.value = v.executionTime || null, I.value = v.stderr ? "stderr" : "stdout", l("execute-end", v);
2398
+ f.value = v.output, m.value = v.stderr, N.value = v.executionTime || null, I.value = v.stderr ? "stderr" : "stdout", l("execute-end", v);
2399
2399
  } catch (v) {
2400
2400
  C.value = v instanceof Error ? v.message : "Execution failed", l("execute-end", {
2401
2401
  success: !1,
@@ -2409,10 +2409,10 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2409
2409
  }
2410
2410
  }
2411
2411
  function i() {
2412
- f.value = "", h.value = "", N.value = null, C.value = null;
2412
+ f.value = "", m.value = "", N.value = null, C.value = null;
2413
2413
  }
2414
- async function d() {
2415
- const v = I.value === "stdout" ? f.value : h.value;
2414
+ async function c() {
2415
+ const v = I.value === "stdout" ? f.value : m.value;
2416
2416
  await navigator.clipboard.writeText(v);
2417
2417
  }
2418
2418
  function b() {
@@ -2420,37 +2420,37 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2420
2420
  }
2421
2421
  let u = !1;
2422
2422
  function w(v) {
2423
- u = !0, document.addEventListener("mousemove", _), document.addEventListener("mouseup", P), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
2423
+ u = !0, document.addEventListener("mousemove", F), document.addEventListener("mouseup", P), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
2424
2424
  }
2425
- function _(v) {
2425
+ function F(v) {
2426
2426
  if (!u) return;
2427
2427
  const T = document.querySelector(
2428
- ".code-runner-main"
2428
+ ".hep-cr-main"
2429
2429
  );
2430
2430
  if (!T) return;
2431
2431
  const x = T.getBoundingClientRect(), Y = (v.clientX - x.left) / x.width * 100;
2432
2432
  g.value = Math.max(20, Math.min(80, Y));
2433
2433
  }
2434
2434
  function P() {
2435
- u = !1, document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", P), document.body.style.cursor = "", document.body.style.userSelect = "";
2435
+ u = !1, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", P), document.body.style.cursor = "", document.body.style.userSelect = "";
2436
2436
  }
2437
- ge(async () => {
2437
+ pe(async () => {
2438
2438
  await n(), s.value || (s.value = a.defaultCode || ne(y.value));
2439
2439
  });
2440
- const V = G(() => `code-runner-${A.value}`);
2441
- return (v, T) => (F(), R("div", {
2442
- class: W(["code-runner", V.value])
2440
+ const V = G(() => `hep-cr-runner-${A.value}`);
2441
+ return (v, T) => (_(), R("div", {
2442
+ class: W(["hep-cr-runner", V.value])
2443
2443
  }, [
2444
2444
  E("div", He, [
2445
2445
  E("div", Be, [
2446
- o.showLanguageSelector ? Ee((F(), R("select", {
2446
+ o.showLanguageSelector ? Ee((_(), R("select", {
2447
2447
  key: 0,
2448
2448
  "onUpdate:modelValue": T[0] || (T[0] = (x) => y.value = x),
2449
- class: "language-select",
2449
+ class: "hep-cr-language-select",
2450
2450
  disabled: k.value
2451
2451
  }, [
2452
- D.value ? (F(), R("option", ze, "加载中...")) : U("", !0),
2453
- (F(!0), R(ve, null, ye(t.value, (x) => (F(), R("option", {
2452
+ D.value ? (_(), R("option", ze, "加载中...")) : U("", !0),
2453
+ (_(!0), R(ve, null, ye(t.value, (x) => (_(), R("option", {
2454
2454
  key: x.value,
2455
2455
  value: x.value
2456
2456
  }, H(x.label), 9, je))), 128))
@@ -2460,34 +2460,34 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2460
2460
  ]),
2461
2461
  E("div", We, [
2462
2462
  E("button", {
2463
- class: "btn btn-run",
2463
+ class: "hep-cr-btn hep-cr-btn-run",
2464
2464
  disabled: k.value || D.value,
2465
2465
  onClick: r
2466
2466
  }, [
2467
- k.value ? (F(), R("span", Ye)) : (F(), R("span", Xe, "▶")),
2467
+ k.value ? (_(), R("span", Ye)) : (_(), R("span", Xe, "▶")),
2468
2468
  Se(" " + H(k.value ? "运行中..." : o.executorLabel), 1)
2469
2469
  ], 8, Ve),
2470
- o.showEditor && o.editable ? (F(), R("button", {
2470
+ o.showEditor && o.editable ? (_(), R("button", {
2471
2471
  key: 0,
2472
- class: "btn btn-reset",
2472
+ class: "hep-cr-btn hep-cr-btn-reset",
2473
2473
  onClick: b
2474
2474
  }, " 重置 ")) : U("", !0),
2475
2475
  E("button", {
2476
- class: "btn btn-theme",
2476
+ class: "hep-cr-btn hep-cr-btn-theme",
2477
2477
  onClick: p,
2478
2478
  title: A.value === "light" ? "Switch to dark mode" : "Switch to light mode"
2479
2479
  }, H(A.value === "light" ? "🌙" : "☀️"), 9, Ze)
2480
2480
  ])
2481
2481
  ]),
2482
- C.value ? (F(), R("div", Ke, H(C.value), 1)) : U("", !0),
2482
+ C.value ? (_(), R("div", Ke, H(C.value), 1)) : U("", !0),
2483
2483
  E("div", qe, [
2484
- o.showEditor ? (F(), R("div", {
2484
+ o.showEditor ? (_(), R("div", {
2485
2485
  key: 0,
2486
- class: "editor-panel",
2486
+ class: "hep-cr-editor-panel",
2487
2487
  style: se({ width: g.value + "%" })
2488
2488
  }, [
2489
2489
  E("div", Je, [
2490
- T[4] || (T[4] = E("span", { class: "panel-title" }, "编辑器", -1)),
2490
+ T[4] || (T[4] = E("span", { class: "hep-cr-panel-title" }, "编辑器", -1)),
2491
2491
  E("span", Qe, H(e.value), 1)
2492
2492
  ]),
2493
2493
  ie(Ue, {
@@ -2498,34 +2498,34 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2498
2498
  disabled: !o.editable || k.value
2499
2499
  }, null, 8, ["modelValue", "language", "theme", "disabled"])
2500
2500
  ], 4)) : U("", !0),
2501
- o.showEditor ? (F(), R("div", {
2501
+ o.showEditor ? (_(), R("div", {
2502
2502
  key: 1,
2503
- class: "resize-handle",
2503
+ class: "hep-cr-resize-handle",
2504
2504
  onMousedown: w
2505
2505
  }, [...T[5] || (T[5] = [
2506
- E("div", { class: "resize-line" }, null, -1)
2506
+ E("div", { class: "hep-cr-resize-line" }, null, -1)
2507
2507
  ])], 32)) : U("", !0),
2508
2508
  E("div", {
2509
- class: "output-panel",
2509
+ class: "hep-cr-output-panel",
2510
2510
  style: se({ width: o.showEditor ? 100 - g.value + "%" : "100%" })
2511
2511
  }, [
2512
2512
  E("div", et, [
2513
2513
  E("div", tt, [
2514
2514
  E("button", {
2515
- class: W(["tab", { active: I.value === "stdout" }]),
2515
+ class: W(["hep-cr-tab", { active: I.value === "stdout" }]),
2516
2516
  onClick: T[2] || (T[2] = (x) => I.value = "stdout")
2517
2517
  }, " 输出 ", 2),
2518
- h.value ? (F(), R("button", {
2518
+ m.value ? (_(), R("button", {
2519
2519
  key: 0,
2520
- class: W(["tab", { active: I.value === "stderr" }]),
2520
+ class: W(["hep-cr-tab", { active: I.value === "stderr" }]),
2521
2521
  onClick: T[3] || (T[3] = (x) => I.value = "stderr")
2522
2522
  }, " 错误 ", 2)) : U("", !0)
2523
2523
  ]),
2524
2524
  E("div", at, [
2525
- N.value !== null ? (F(), R("span", nt, H(N.value) + "ms ", 1)) : U("", !0),
2525
+ N.value !== null ? (_(), R("span", nt, H(N.value) + "ms ", 1)) : U("", !0),
2526
2526
  E("button", {
2527
- class: "btn-icon",
2528
- onClick: d,
2527
+ class: "hep-cr-btn-icon",
2528
+ onClick: c,
2529
2529
  title: "复制"
2530
2530
  }, [...T[6] || (T[6] = [
2531
2531
  E("svg", {
@@ -2548,7 +2548,7 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2548
2548
  ], -1)
2549
2549
  ])]),
2550
2550
  E("button", {
2551
- class: "btn-icon",
2551
+ class: "hep-cr-btn-icon",
2552
2552
  onClick: i,
2553
2553
  title: "清除"
2554
2554
  }, [...T[7] || (T[7] = [
@@ -2567,16 +2567,16 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2567
2567
  ])
2568
2568
  ]),
2569
2569
  E("div", rt, [
2570
- I.value === "stdout" ? (F(), R("pre", st, H(f.value || '点击"运行"执行代码'), 1)) : (F(), R("pre", it, H(h.value), 1))
2570
+ I.value === "stdout" ? (_(), R("pre", st, H(f.value || '点击"运行"执行代码'), 1)) : (_(), R("pre", it, H(m.value), 1))
2571
2571
  ])
2572
2572
  ], 4)
2573
2573
  ])
2574
2574
  ], 2));
2575
2575
  }
2576
- }), J = /* @__PURE__ */ ue(ot, [["__scopeId", "data-v-6e14ca02"]]), lt = { class: "dialog-header" }, ut = { class: "dialog-title" }, dt = { class: "dialog-body" }, ct = {
2576
+ }), J = /* @__PURE__ */ he(ot, [["__scopeId", "data-v-f4bf7f21"]]), lt = { class: "hep-cr-dialog-header" }, ut = { class: "hep-cr-dialog-title" }, ct = { class: "hep-cr-dialog-body" }, dt = {
2577
2577
  key: 0,
2578
- class: "dialog-footer"
2579
- }, pt = /* @__PURE__ */ oe({
2578
+ class: "hep-cr-dialog-footer"
2579
+ }, gt = /* @__PURE__ */ oe({
2580
2580
  __name: "CodeRunnerDialog",
2581
2581
  props: {
2582
2582
  modelValue: { type: Boolean, default: !1 },
@@ -2592,38 +2592,38 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2592
2592
  executorLabel: { default: "运行" }
2593
2593
  },
2594
2594
  emits: ["update:modelValue", "close"],
2595
- setup(o, { expose: c, emit: a }) {
2596
- const l = o, m = a, y = L(l.modelValue), A = G(() => l.modelValue !== void 0 ? l.modelValue : y.value);
2595
+ setup(o, { expose: d, emit: a }) {
2596
+ const l = o, h = a, y = L(l.modelValue), A = G(() => l.modelValue !== void 0 ? l.modelValue : y.value);
2597
2597
  le(
2598
2598
  () => l.modelValue,
2599
- (h) => {
2600
- h !== void 0 && (y.value = h);
2599
+ (m) => {
2600
+ m !== void 0 && (y.value = m);
2601
2601
  }
2602
2602
  );
2603
2603
  function s() {
2604
- y.value = !1, m("update:modelValue", !1), m("close");
2604
+ y.value = !1, h("update:modelValue", !1), h("close");
2605
2605
  }
2606
- function f(h) {
2607
- h.target === h.currentTarget && s();
2606
+ function f(m) {
2607
+ m.target === m.currentTarget && s();
2608
2608
  }
2609
- return c({
2609
+ return d({
2610
2610
  close: s
2611
- }), (h, k) => (F(), we(Te, { to: "body" }, [
2612
- ie(ke, { name: "dialog-fade" }, {
2611
+ }), (m, k) => (_(), we(Te, { to: "body" }, [
2612
+ ie(ke, { name: "hep-cr-dialog-fade" }, {
2613
2613
  default: Ie(() => [
2614
- A.value ? (F(), R("div", {
2614
+ A.value ? (_(), R("div", {
2615
2615
  key: 0,
2616
- class: "dialog-overlay",
2616
+ class: "hep-cr-dialog-overlay",
2617
2617
  onClick: f
2618
2618
  }, [
2619
2619
  E("div", {
2620
- class: "dialog-container",
2620
+ class: "hep-cr-dialog-container",
2621
2621
  style: se({ width: typeof o.width == "number" ? o.width + "px" : o.width })
2622
2622
  }, [
2623
2623
  E("div", lt, [
2624
2624
  E("h3", ut, H(o.title), 1),
2625
2625
  E("button", {
2626
- class: "dialog-close",
2626
+ class: "hep-cr-dialog-close",
2627
2627
  onClick: s
2628
2628
  }, [...k[0] || (k[0] = [
2629
2629
  E("svg", {
@@ -2649,11 +2649,11 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2649
2649
  ], -1)
2650
2650
  ])])
2651
2651
  ]),
2652
- E("div", dt, [
2653
- ie(J, _e(Fe(h.$attrs)), null, 16)
2652
+ E("div", ct, [
2653
+ ie(J, Fe(_e(m.$attrs)), null, 16)
2654
2654
  ]),
2655
- h.$slots.footer ? (F(), R("div", ct, [
2656
- Re(h.$slots, "footer", { close: s }, void 0, !0)
2655
+ m.$slots.footer ? (_(), R("div", dt, [
2656
+ Re(m.$slots, "footer", { close: s })
2657
2657
  ])) : U("", !0)
2658
2658
  ], 4)
2659
2659
  ])) : U("", !0)
@@ -2662,17 +2662,17 @@ const Pe = ["innerHTML"], $e = ["value", "disabled"], Me = /* @__PURE__ */ oe({
2662
2662
  })
2663
2663
  ]));
2664
2664
  }
2665
- }), mt = /* @__PURE__ */ ue(pt, [["__scopeId", "data-v-8a12e3c8"]]);
2665
+ });
2666
2666
  J.install = (o) => {
2667
2667
  o.component("CodeRunner", J);
2668
2668
  };
2669
- const ft = {
2669
+ const ht = {
2670
2670
  install(o) {
2671
2671
  o.component("CodeRunner", J);
2672
2672
  }
2673
2673
  };
2674
2674
  export {
2675
2675
  J as CodeRunner,
2676
- mt as CodeRunnerDialog,
2677
- ft as default
2676
+ gt as CodeRunnerDialog,
2677
+ ht as default
2678
2678
  };