erl-mathtextx-editor 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45439,9 +45439,9 @@ function vl(e) {
45439
45439
  end: /\//,
45440
45440
  contains: Y
45441
45441
  }, ae = (x) => {
45442
- const P = ce(x, /\//), D = ce(/\//, x);
45442
+ const L = ce(x, /\//), D = ce(/\//, x);
45443
45443
  return {
45444
- begin: P,
45444
+ begin: L,
45445
45445
  end: D,
45446
45446
  contains: [
45447
45447
  ...Y,
@@ -45715,8 +45715,8 @@ function vl(e) {
45715
45715
  ]
45716
45716
  };
45717
45717
  for (const x of V.variants) {
45718
- const P = x.contains.find((re) => re.label === "interpol");
45719
- P.keywords = _;
45718
+ const L = x.contains.find((ie) => ie.label === "interpol");
45719
+ L.keywords = _;
45720
45720
  const D = [
45721
45721
  ...d,
45722
45722
  ...u,
@@ -45725,7 +45725,7 @@ function vl(e) {
45725
45725
  V,
45726
45726
  ...M
45727
45727
  ];
45728
- P.contains = [
45728
+ L.contains = [
45729
45729
  ...D,
45730
45730
  {
45731
45731
  begin: /\(/,
@@ -47340,11 +47340,11 @@ const wl = {
47340
47340
  xquery: ds,
47341
47341
  zephir: ms
47342
47342
  };
47343
- var Em = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
47343
+ var gm = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
47344
47344
  function Pl(e) {
47345
47345
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
47346
47346
  }
47347
- function gm(e) {
47347
+ function Sm(e) {
47348
47348
  if (e.__esModule) return e;
47349
47349
  var t = e.default;
47350
47350
  if (typeof t == "function") {
@@ -48050,23 +48050,23 @@ https://github.com/highlightjs/highlight.js/issues/2277`), w = f, B = M), A ===
48050
48050
  }
48051
48051
  function E(f, M, A, B) {
48052
48052
  const w = /* @__PURE__ */ Object.create(null);
48053
- function v(L, z) {
48054
- return L.keywords[z];
48053
+ function v(P, z) {
48054
+ return P.keywords[z];
48055
48055
  }
48056
48056
  function R() {
48057
48057
  if (!D.keywords) {
48058
- ie.addText(oe);
48058
+ re.addText(oe);
48059
48059
  return;
48060
48060
  }
48061
- let L = 0;
48061
+ let P = 0;
48062
48062
  D.keywordPatternRe.lastIndex = 0;
48063
48063
  let z = D.keywordPatternRe.exec(oe), J = "";
48064
48064
  for (; z; ) {
48065
- J += oe.substring(L, z.index);
48065
+ J += oe.substring(P, z.index);
48066
48066
  const F = ge.case_insensitive ? z[0].toLowerCase() : z[0], q = v(D, F);
48067
48067
  if (q) {
48068
48068
  const [se, de] = q;
48069
- if (ie.addText(J), J = "", w[F] = (w[F] || 0) + 1, w[F] <= Ac && (Me += de), se.startsWith("_"))
48069
+ if (re.addText(J), J = "", w[F] = (w[F] || 0) + 1, w[F] <= Ac && (Me += de), se.startsWith("_"))
48070
48070
  J += z[0];
48071
48071
  else {
48072
48072
  const Re = ge.classNameAliases[se] || se;
@@ -48074,92 +48074,92 @@ https://github.com/highlightjs/highlight.js/issues/2277`), w = f, B = M), A ===
48074
48074
  }
48075
48075
  } else
48076
48076
  J += z[0];
48077
- L = D.keywordPatternRe.lastIndex, z = D.keywordPatternRe.exec(oe);
48077
+ P = D.keywordPatternRe.lastIndex, z = D.keywordPatternRe.exec(oe);
48078
48078
  }
48079
- J += oe.substring(L), ie.addText(J);
48079
+ J += oe.substring(P), re.addText(J);
48080
48080
  }
48081
48081
  function W() {
48082
48082
  if (oe === "") return;
48083
- let L = null;
48083
+ let P = null;
48084
48084
  if (typeof D.subLanguage == "string") {
48085
48085
  if (!t[D.subLanguage]) {
48086
- ie.addText(oe);
48086
+ re.addText(oe);
48087
48087
  return;
48088
48088
  }
48089
- L = E(D.subLanguage, oe, !0, re[D.subLanguage]), re[D.subLanguage] = /** @type {CompiledMode} */
48090
- L._top;
48089
+ P = E(D.subLanguage, oe, !0, ie[D.subLanguage]), ie[D.subLanguage] = /** @type {CompiledMode} */
48090
+ P._top;
48091
48091
  } else
48092
- L = u(oe, D.subLanguage.length ? D.subLanguage : null);
48093
- D.relevance > 0 && (Me += L.relevance), ie.__addSublanguage(L._emitter, L.language);
48092
+ P = u(oe, D.subLanguage.length ? D.subLanguage : null);
48093
+ D.relevance > 0 && (Me += P.relevance), re.__addSublanguage(P._emitter, P.language);
48094
48094
  }
48095
48095
  function $() {
48096
48096
  D.subLanguage != null ? W() : R(), oe = "";
48097
48097
  }
48098
- function K(L, z) {
48099
- L !== "" && (ie.startScope(z), ie.addText(L), ie.endScope());
48098
+ function K(P, z) {
48099
+ P !== "" && (re.startScope(z), re.addText(P), re.endScope());
48100
48100
  }
48101
- function ee(L, z) {
48101
+ function ee(P, z) {
48102
48102
  let J = 1;
48103
48103
  const F = z.length - 1;
48104
48104
  for (; J <= F; ) {
48105
- if (!L._emit[J]) {
48105
+ if (!P._emit[J]) {
48106
48106
  J++;
48107
48107
  continue;
48108
48108
  }
48109
- const q = ge.classNameAliases[L[J]] || L[J], se = z[J];
48109
+ const q = ge.classNameAliases[P[J]] || P[J], se = z[J];
48110
48110
  q ? K(se, q) : (oe = se, R(), oe = ""), J++;
48111
48111
  }
48112
48112
  }
48113
- function Ee(L, z) {
48114
- return L.scope && typeof L.scope == "string" && ie.openNode(ge.classNameAliases[L.scope] || L.scope), L.beginScope && (L.beginScope._wrap ? (K(oe, ge.classNameAliases[L.beginScope._wrap] || L.beginScope._wrap), oe = "") : L.beginScope._multi && (ee(L.beginScope, z), oe = "")), D = Object.create(L, { parent: { value: D } }), D;
48113
+ function Ee(P, z) {
48114
+ return P.scope && typeof P.scope == "string" && re.openNode(ge.classNameAliases[P.scope] || P.scope), P.beginScope && (P.beginScope._wrap ? (K(oe, ge.classNameAliases[P.beginScope._wrap] || P.beginScope._wrap), oe = "") : P.beginScope._multi && (ee(P.beginScope, z), oe = "")), D = Object.create(P, { parent: { value: D } }), D;
48115
48115
  }
48116
- function me(L, z, J) {
48117
- let F = Vl(L.endRe, J);
48116
+ function me(P, z, J) {
48117
+ let F = Vl(P.endRe, J);
48118
48118
  if (F) {
48119
- if (L["on:end"]) {
48120
- const q = new ea(L);
48121
- L["on:end"](z, q), q.isMatchIgnored && (F = !1);
48119
+ if (P["on:end"]) {
48120
+ const q = new ea(P);
48121
+ P["on:end"](z, q), q.isMatchIgnored && (F = !1);
48122
48122
  }
48123
48123
  if (F) {
48124
- for (; L.endsParent && L.parent; )
48125
- L = L.parent;
48126
- return L;
48124
+ for (; P.endsParent && P.parent; )
48125
+ P = P.parent;
48126
+ return P;
48127
48127
  }
48128
48128
  }
48129
- if (L.endsWithParent)
48130
- return me(L.parent, z, J);
48129
+ if (P.endsWithParent)
48130
+ return me(P.parent, z, J);
48131
48131
  }
48132
- function Se(L) {
48133
- return D.matcher.regexIndex === 0 ? (oe += L[0], 1) : (we = !0, 0);
48132
+ function Se(P) {
48133
+ return D.matcher.regexIndex === 0 ? (oe += P[0], 1) : (we = !0, 0);
48134
48134
  }
48135
- function be(L) {
48136
- const z = L[0], J = L.rule, F = new ea(J), q = [J.__beforeBegin, J["on:begin"]];
48135
+ function be(P) {
48136
+ const z = P[0], J = P.rule, F = new ea(J), q = [J.__beforeBegin, J["on:begin"]];
48137
48137
  for (const se of q)
48138
- if (se && (se(L, F), F.isMatchIgnored))
48138
+ if (se && (se(P, F), F.isMatchIgnored))
48139
48139
  return Se(z);
48140
- return J.skip ? oe += z : (J.excludeBegin && (oe += z), $(), !J.returnBegin && !J.excludeBegin && (oe = z)), Ee(J, L), J.returnBegin ? 0 : z.length;
48140
+ return J.skip ? oe += z : (J.excludeBegin && (oe += z), $(), !J.returnBegin && !J.excludeBegin && (oe = z)), Ee(J, P), J.returnBegin ? 0 : z.length;
48141
48141
  }
48142
- function pe(L) {
48143
- const z = L[0], J = M.substring(L.index), F = me(D, L, J);
48142
+ function pe(P) {
48143
+ const z = P[0], J = M.substring(P.index), F = me(D, P, J);
48144
48144
  if (!F)
48145
48145
  return oa;
48146
48146
  const q = D;
48147
- D.endScope && D.endScope._wrap ? ($(), K(z, D.endScope._wrap)) : D.endScope && D.endScope._multi ? ($(), ee(D.endScope, L)) : q.skip ? oe += z : (q.returnEnd || q.excludeEnd || (oe += z), $(), q.excludeEnd && (oe = z));
48147
+ D.endScope && D.endScope._wrap ? ($(), K(z, D.endScope._wrap)) : D.endScope && D.endScope._multi ? ($(), ee(D.endScope, P)) : q.skip ? oe += z : (q.returnEnd || q.excludeEnd || (oe += z), $(), q.excludeEnd && (oe = z));
48148
48148
  do
48149
- D.scope && ie.closeNode(), !D.skip && !D.subLanguage && (Me += D.relevance), D = D.parent;
48149
+ D.scope && re.closeNode(), !D.skip && !D.subLanguage && (Me += D.relevance), D = D.parent;
48150
48150
  while (D !== F.parent);
48151
- return F.starts && Ee(F.starts, L), q.returnEnd ? 0 : z.length;
48151
+ return F.starts && Ee(F.starts, P), q.returnEnd ? 0 : z.length;
48152
48152
  }
48153
48153
  function ke() {
48154
- const L = [];
48154
+ const P = [];
48155
48155
  for (let z = D; z !== ge; z = z.parent)
48156
- z.scope && L.unshift(z.scope);
48157
- L.forEach((z) => ie.openNode(z));
48156
+ z.scope && P.unshift(z.scope);
48157
+ P.forEach((z) => re.openNode(z));
48158
48158
  }
48159
48159
  let Ae = {};
48160
- function De(L, z) {
48160
+ function De(P, z) {
48161
48161
  const J = z && z[0];
48162
- if (oe += L, J == null)
48162
+ if (oe += P, J == null)
48163
48163
  return $(), 0;
48164
48164
  if (Ae.type === "begin" && z.type === "end" && Ae.index === z.index && J === "") {
48165
48165
  if (oe += M.slice(z.index, z.index + 1), !r) {
@@ -48189,46 +48189,46 @@ https://github.com/highlightjs/highlight.js/issues/2277`), w = f, B = M), A ===
48189
48189
  if (!ge)
48190
48190
  throw Ye(c.replace("{}", f)), new Error('Unknown language: "' + f + '"');
48191
48191
  const x = Rc(ge);
48192
- let P = "", D = B || x;
48193
- const re = {}, ie = new l.__emitter(l);
48192
+ let L = "", D = B || x;
48193
+ const ie = {}, re = new l.__emitter(l);
48194
48194
  ke();
48195
48195
  let oe = "", Me = 0, Ne = 0, he = 0, we = !1;
48196
48196
  try {
48197
48197
  if (ge.__emitTokens)
48198
- ge.__emitTokens(M, ie);
48198
+ ge.__emitTokens(M, re);
48199
48199
  else {
48200
48200
  for (D.matcher.considerAll(); ; ) {
48201
48201
  he++, we ? we = !1 : D.matcher.considerAll(), D.matcher.lastIndex = Ne;
48202
- const L = D.matcher.exec(M);
48203
- if (!L) break;
48204
- const z = M.substring(Ne, L.index), J = De(z, L);
48205
- Ne = L.index + J;
48202
+ const P = D.matcher.exec(M);
48203
+ if (!P) break;
48204
+ const z = M.substring(Ne, P.index), J = De(z, P);
48205
+ Ne = P.index + J;
48206
48206
  }
48207
48207
  De(M.substring(Ne));
48208
48208
  }
48209
- return ie.finalize(), P = ie.toHTML(), {
48209
+ return re.finalize(), L = re.toHTML(), {
48210
48210
  language: f,
48211
- value: P,
48211
+ value: L,
48212
48212
  relevance: Me,
48213
48213
  illegal: !1,
48214
- _emitter: ie,
48214
+ _emitter: re,
48215
48215
  _top: D
48216
48216
  };
48217
- } catch (L) {
48218
- if (L.message && L.message.includes("Illegal"))
48217
+ } catch (P) {
48218
+ if (P.message && P.message.includes("Illegal"))
48219
48219
  return {
48220
48220
  language: f,
48221
48221
  value: ft(M),
48222
48222
  illegal: !0,
48223
48223
  relevance: 0,
48224
48224
  _illegalBy: {
48225
- message: L.message,
48225
+ message: P.message,
48226
48226
  index: Ne,
48227
48227
  context: M.slice(Ne - 100, Ne + 100),
48228
- mode: L.mode,
48229
- resultSoFar: P
48228
+ mode: P.mode,
48229
+ resultSoFar: L
48230
48230
  },
48231
- _emitter: ie
48231
+ _emitter: re
48232
48232
  };
48233
48233
  if (r)
48234
48234
  return {
@@ -48236,11 +48236,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), w = f, B = M), A ===
48236
48236
  value: ft(M),
48237
48237
  illegal: !1,
48238
48238
  relevance: 0,
48239
- errorRaised: L,
48240
- _emitter: ie,
48239
+ errorRaised: P,
48240
+ _emitter: re,
48241
48241
  _top: D
48242
48242
  };
48243
- throw L;
48243
+ throw P;
48244
48244
  }
48245
48245
  }
48246
48246
  function p(f) {
@@ -48635,7 +48635,7 @@ const st = wc(), Pe = {
48635
48635
  const n = le(null), [i, r] = X(e.attrs.formula || "sin(x)"), [c, s] = X(e.attrs.xDomain || [-10, 10]), [l, o] = X(e.attrs.yDomain || [-5, 5]);
48636
48636
  ue(() => {
48637
48637
  let E = !0;
48638
- return n.current && import("./index-DLjIKZ3J.js").then((p) => p.i).then((p) => {
48638
+ return n.current && import("./index-CI4oNSUc.js").then((p) => p.i).then((p) => {
48639
48639
  if (!E) return;
48640
48640
  const u = p.default;
48641
48641
  try {
@@ -50862,7 +50862,9 @@ function sn(e) {
50862
50862
  Y.insert(V + 1, ae);
50863
50863
  }
50864
50864
  Y.setSelection(Oa.near(Y.doc.resolve(V + 1))), H.view.dispatch(Y), H.view.focus();
50865
- }, T.addEventListener("input", N.input), T.addEventListener("focus", N.focus), T.addEventListener("blur", N.blur), T.addEventListener("keydown", N.keydown), !b && (g.innerHTML = "", g.appendChild(T), n.current = T, !e.node.attrs.latex))) {
50865
+ }, N.paste = (O) => {
50866
+ O.stopPropagation();
50867
+ }, T.addEventListener("input", N.input), T.addEventListener("focus", N.focus), T.addEventListener("blur", N.blur), T.addEventListener("keydown", N.keydown), T.addEventListener("paste", N.paste), !b && (g.innerHTML = "", g.appendChild(T), n.current = T, !e.node.attrs.latex))) {
50866
50868
  const O = setTimeout(() => {
50867
50869
  T.focus();
50868
50870
  }, 50);
@@ -50871,7 +50873,7 @@ function sn(e) {
50871
50873
  }
50872
50874
  }
50873
50875
  return h().catch((C) => Pe.error("Failed to initialize math field", C)), () => {
50874
- b = !0, S.forEach((C) => clearTimeout(C)), T && N && (N.input && T.removeEventListener("input", N.input), N.focus && T.removeEventListener("focus", N.focus), N.blur && T.removeEventListener("blur", N.blur), N.keydown && T.removeEventListener("keydown", N.keydown)), n.current = null, g.innerHTML = "";
50876
+ b = !0, S.forEach((C) => clearTimeout(C)), T && N && (N.input && T.removeEventListener("input", N.input), N.focus && T.removeEventListener("focus", N.focus), N.blur && T.removeEventListener("blur", N.blur), N.keydown && T.removeEventListener("keydown", N.keydown), N.paste && T.removeEventListener("paste", N.paste)), n.current = null, g.innerHTML = "";
50875
50877
  };
50876
50878
  }, []), ue(() => {
50877
50879
  const g = n.current;
@@ -51515,7 +51517,7 @@ const e_ = fe.memo(function({
51515
51517
  ] })
51516
51518
  ] }) })
51517
51519
  ] });
51518
- }), t_ = ve(() => import("./LinkDialogImpl-Cs1v0Vgd.js").then((e) => ({ default: e.LinkDialogImpl }))), a_ = ve(() => import("./InsertTableDialogImpl-U7g8UMBM.js").then((e) => ({ default: e.InsertTableDialogImpl }))), n_ = ve(() => import("./CellPropertiesDialogImpl-DroCD-qw.js").then((e) => ({ default: e.CellPropertiesDialogImpl }))), i_ = ve(() => import("./TablePropertiesDialogImpl-BmdThHz3.js").then((e) => ({ default: e.TablePropertiesDialogImpl }))), r_ = ve(() => import("./TableTemplatesDialogImpl-CglXYCPV.js").then((e) => ({ default: e.TableTemplatesDialogImpl }))), o_ = ve(() => import("./ImageInsertDialog-BprAxxIR.js").then((e) => ({ default: e.ImageInsertDialog }))), Ot = fe.memo(function({ icon: t, label: n, onClick: i, isActive: r, isDisabled: c, className: s }) {
51520
+ }), t_ = ve(() => import("./LinkDialogImpl-CPjj0CkY.js").then((e) => ({ default: e.LinkDialogImpl }))), a_ = ve(() => import("./InsertTableDialogImpl-B2GUzYNY.js").then((e) => ({ default: e.InsertTableDialogImpl }))), n_ = ve(() => import("./CellPropertiesDialogImpl-5bzEkaTt.js").then((e) => ({ default: e.CellPropertiesDialogImpl }))), i_ = ve(() => import("./TablePropertiesDialogImpl-BLbhyfA0.js").then((e) => ({ default: e.TablePropertiesDialogImpl }))), r_ = ve(() => import("./TableTemplatesDialogImpl-BQZTGw_Y.js").then((e) => ({ default: e.TableTemplatesDialogImpl }))), o_ = ve(() => import("./ImageInsertDialog-Dcg6kdLb.js").then((e) => ({ default: e.ImageInsertDialog }))), Ot = fe.memo(function({ icon: t, label: n, onClick: i, isActive: r, isDisabled: c, className: s }) {
51519
51521
  return /* @__PURE__ */ a(
51520
51522
  "button",
51521
51523
  {
@@ -51705,13 +51707,13 @@ const c_ = fe.memo(function({
51705
51707
  t && (t.chain().focus().updateAttributes("table", { align: F.align }).run(), S.closeDialog("tableProperties"));
51706
51708
  }, [t, S]), x = k(() => {
51707
51709
  t?.chain().focus().toggleHeaderRow().run();
51708
- }, [t]), P = k(() => {
51710
+ }, [t]), L = k(() => {
51709
51711
  t?.chain().focus().toggleHeaderColumn().run();
51710
51712
  }, [t]), D = k(() => {
51711
51713
  t?.chain().focus().toggleHeaderCell().run();
51712
- }, [t]), re = k(() => {
51714
+ }, [t]), ie = k(() => {
51713
51715
  t?.chain().focus().fixTables().run();
51714
- }, [t]), ie = k((F) => {
51716
+ }, [t]), re = k((F) => {
51715
51717
  !t || !t.isActive("table") || t.chain().focus().updateAttributes("table", { theme: F.id }).run();
51716
51718
  }, [t]), oe = k((F) => {
51717
51719
  E(F), t?.chain().focus().setColor(F).run();
@@ -51719,7 +51721,7 @@ const c_ = fe.memo(function({
51719
51721
  u(F), t?.chain().focus().toggleHighlight({ color: F }).run();
51720
51722
  }, [t]), Ne = k(() => {
51721
51723
  t && t.chain().focus().unsetBold().unsetItalic().unsetUnderline().unsetStrike().unsetSubscript().unsetSuperscript().unsetLink().unsetColor().unsetFontFamily().unsetHighlight().run();
51722
- }, [t]), he = !!t && t.isActive("table"), we = l_(t), L = we?.align || "center", z = we ? Number(we.offsetX || 0) !== 0 || Number(we.offsetY || 0) !== 0 : !1;
51724
+ }, [t]), he = !!t && t.isActive("table"), we = l_(t), P = we?.align || "center", z = we ? Number(we.offsetX || 0) !== 0 || Number(we.offsetY || 0) !== 0 : !1;
51723
51725
  if (ue(() => {
51724
51726
  !he && N && T(!1);
51725
51727
  }, [he, N]), !t) return null;
@@ -51859,7 +51861,7 @@ const c_ = fe.memo(function({
51859
51861
  }
51860
51862
  }
51861
51863
  ) }),
51862
- S.open.tableTemplates && /* @__PURE__ */ a(Oe, { fallback: null, children: /* @__PURE__ */ a(r_, { isOpen: S.open.tableTemplates, onSelect: ie, onClose: () => S.closeDialog("tableTemplates") }) }),
51864
+ S.open.tableTemplates && /* @__PURE__ */ a(Oe, { fallback: null, children: /* @__PURE__ */ a(r_, { isOpen: S.open.tableTemplates, onSelect: re, onClose: () => S.closeDialog("tableTemplates") }) }),
51863
51865
  S.open.image && /* @__PURE__ */ a(Oe, { fallback: null, children: /* @__PURE__ */ a(o_, { isOpen: S.open.image, onClose: () => S.closeDialog("image"), onInsert: A }) }),
51864
51866
  /* @__PURE__ */ a(
51865
51867
  ln,
@@ -51878,9 +51880,9 @@ const c_ = fe.memo(function({
51878
51880
  onTableProperties: De,
51879
51881
  onMergeOrSplit: Ae,
51880
51882
  onToggleHeaderRow: x,
51881
- onToggleHeaderColumn: P,
51883
+ onToggleHeaderColumn: L,
51882
51884
  onToggleHeaderCell: D,
51883
- onFixTables: re
51885
+ onFixTables: ie
51884
51886
  }
51885
51887
  ),
51886
51888
  /* @__PURE__ */ a(
@@ -51888,7 +51890,7 @@ const c_ = fe.memo(function({
51888
51890
  {
51889
51891
  isOpen: O,
51890
51892
  position: Q || { x: 200, y: 300 },
51891
- currentAlign: L,
51893
+ currentAlign: P,
51892
51894
  hasCustomPosition: z,
51893
51895
  onClose: () => I(!1),
51894
51896
  onSetAlign: Ee,
@@ -52326,7 +52328,7 @@ function Ta(e) {
52326
52328
  }).replace(/<style\b[\s\S]*?<\/style>/gi, "").replace(/<link\b[^>]*\/?>/gi, "");
52327
52329
  return Ut(n);
52328
52330
  }
52329
- function bm(e) {
52331
+ function Tm(e) {
52330
52332
  return e.getJSON();
52331
52333
  }
52332
52334
  function b_(e) {
@@ -52453,7 +52455,7 @@ function b_(e) {
52453
52455
  ALLOW_DATA_ATTR: !0
52454
52456
  }), Ut(t);
52455
52457
  }
52456
- function Tm(e) {
52458
+ function fm(e) {
52457
52459
  if (!e) return "";
52458
52460
  let t = e;
52459
52461
  return t = t.replace(
@@ -52662,7 +52664,7 @@ function I_(e) {
52662
52664
  return t = t.replace(/<td>\s*<\/td>/gi, "<td><p><br></p></td>"), t = t.replace(/<th>\s*<\/th>/gi, "<th><p><br></p></th>"), t = t.replace(/<td><p>\s*<\/p><\/td>/gi, "<td><p><br></p></td>"), t = t.replace(/<th><p>\s*<\/p><\/th>/gi, "<th><p><br></p></th>"), t = t.replace(/(<p>\s*<\/p>\s*){2,}/gi, "<p><br></p>"), t = t.replace(/<a\s[^>]*>(<[^>]+><\/[^>]+>)<\/a>/gi, "$1"), t;
52663
52665
  }
52664
52666
  async function x_(e, t) {
52665
- const n = await e.arrayBuffer(), i = /* @__PURE__ */ new Map(), r = await import("./index-Cv7EVaSA.js").then((o) => o.i), c = r.default ?? r, s = await c.convertToHtml(
52667
+ const n = await e.arrayBuffer(), i = /* @__PURE__ */ new Map(), r = await import("./index-elIws1oE.js").then((o) => o.i), c = r.default ?? r, s = await c.convertToHtml(
52666
52668
  { arrayBuffer: n },
52667
52669
  {
52668
52670
  convertImage: c.images.imgElement((o) => o.readAsArrayBuffer().then((_) => {
@@ -53765,7 +53767,7 @@ function B_({ onInsert: e, onClose: t }) {
53765
53767
  ] })
53766
53768
  ] });
53767
53769
  }
53768
- const G_ = ve(() => import("./ImageInsertDialog-BprAxxIR.js").then((e) => ({ default: e.ImageInsertDialog })));
53770
+ const G_ = ve(() => import("./ImageInsertDialog-Dcg6kdLb.js").then((e) => ({ default: e.ImageInsertDialog })));
53769
53771
  async function yt(e) {
53770
53772
  return new Promise((t, n) => {
53771
53773
  const i = new window.Image();
@@ -53816,7 +53818,11 @@ function Ca(e, t = 380, n = 460) {
53816
53818
  right: `${Math.round(l)}px`
53817
53819
  };
53818
53820
  }
53819
- function fm({
53821
+ function H_(e) {
53822
+ const t = e.trim();
53823
+ return t ? !!(/^\\\(/.test(t) || /^\\\[/.test(t) || /^\$\$/.test(t) || /^\$/.test(t) || /^\\(?:frac|sqrt|sum|int|lim|prod|sin|cos|tan|log|ln|alpha|beta|gamma|delta|epsilon|theta|pi|infty|rightarrow|leftarrow|partial|nabla|times|div|pm|cdot|circ|neq|leq|geq|approx|equiv|subset|supset|cup|cap|emptyset|forall|exists|in|notin|wedge|vee|therefore|because|angle|perp|parallel|cong|sim|triangle|odot|oplus|otimes|mathbb|mathrm|mathbf|mathit|mathcal|mathscr|mathfrak|text|boxed|begin|end|matrix|pmatrix|bmatrix|vmatrix|cases|aligned|gathered|split|ce|overbrace|underbrace|overrightarrow|overline|underline)/.test(t) || /\\\\\(/.test(t) || /\$\$/.test(t) || /\\\\\[/.test(t)) : !1;
53824
+ }
53825
+ function Nm({
53820
53826
  content: e = "",
53821
53827
  onChange: t,
53822
53828
  onSave: n,
@@ -53851,37 +53857,44 @@ function fm({
53851
53857
  // Debounced onChange — avoids getHTML() serialization on every keystroke
53852
53858
  onUpdate: ({ editor: x }) => {
53853
53859
  B.current && clearTimeout(B.current), B.current = setTimeout(() => {
53854
- const P = Ta(x);
53855
- t?.(P);
53860
+ const L = Ta(x);
53861
+ t?.(L);
53856
53862
  }, Y_);
53857
53863
  },
53858
53864
  onDestroy: () => {
53859
53865
  B.current && clearTimeout(B.current);
53860
53866
  },
53861
53867
  editorProps: {
53862
- handleKeyDown: (x, P) => (P.ctrlKey || P.metaKey) && P.key === "s" ? (P.preventDefault(), R && n?.(Ta(R)), !0) : (P.ctrlKey || P.metaKey) && P.key === "k" ? (P.preventDefault(), A.current?.querySelector('[aria-label="Link"]')?.click(), !0) : (P.ctrlKey || P.metaKey) && P.shiftKey && P.key === "T" ? (P.preventDefault(), A.current?.querySelector('[aria-label="Table"]')?.click(), !0) : (P.ctrlKey || P.metaKey) && P.key === "m" ? (P.preventDefault(), W(), !0) : !1,
53863
- handleDrop: (x, P) => {
53864
- const D = P.dataTransfer?.files;
53868
+ handleKeyDown: (x, L) => (L.ctrlKey || L.metaKey) && L.key === "s" ? (L.preventDefault(), R && n?.(Ta(R)), !0) : (L.ctrlKey || L.metaKey) && L.key === "k" ? (L.preventDefault(), A.current?.querySelector('[aria-label="Link"]')?.click(), !0) : (L.ctrlKey || L.metaKey) && L.shiftKey && L.key === "T" ? (L.preventDefault(), A.current?.querySelector('[aria-label="Table"]')?.click(), !0) : (L.ctrlKey || L.metaKey) && L.key === "m" ? (L.preventDefault(), W(), !0) : !1,
53869
+ handleDrop: (x, L) => {
53870
+ const D = L.dataTransfer?.files;
53865
53871
  if (D && D.length > 0) {
53866
- const re = D[0];
53867
- if (re.type.startsWith("image/"))
53868
- return P.preventDefault(), pe(re), !0;
53869
- if (re.name.endsWith(".docx"))
53870
- return P.preventDefault(), be(re), !0;
53872
+ const ie = D[0];
53873
+ if (ie.type.startsWith("image/"))
53874
+ return L.preventDefault(), pe(ie), !0;
53875
+ if (ie.name.endsWith(".docx"))
53876
+ return L.preventDefault(), be(ie), !0;
53871
53877
  }
53872
53878
  return !1;
53873
53879
  },
53874
- handlePaste: (x, P) => {
53875
- const D = P.clipboardData?.items;
53880
+ handlePaste: (x, L) => {
53881
+ const D = L.clipboardData?.items;
53876
53882
  if (D) {
53877
- for (const re of D)
53878
- if (re.type.startsWith("image/")) {
53879
- P.preventDefault();
53880
- const ie = re.getAsFile();
53881
- return ie && pe(ie), !0;
53883
+ for (const ie of D)
53884
+ if (ie.type.startsWith("image/")) {
53885
+ L.preventDefault();
53886
+ const re = ie.getAsFile();
53887
+ return re && pe(re), !0;
53882
53888
  }
53883
53889
  }
53884
- return !!(R && y_(R, P) || R && A_(R, P, b));
53890
+ if (R && (R.isActive("mathInline") || R.isActive("mathBlock")))
53891
+ return !1;
53892
+ if (R && L.clipboardData) {
53893
+ const ie = L.clipboardData.getData("text/plain"), oe = L.clipboardData.getData("text/latex") || ie;
53894
+ if (oe && H_(oe))
53895
+ return L.preventDefault(), W(oe.trim()), !0;
53896
+ }
53897
+ return !!(R && y_(R, L) || R && A_(R, L, b));
53885
53898
  }
53886
53899
  }
53887
53900
  }), W = k(
@@ -53916,16 +53929,16 @@ function fm({
53916
53929
  },
53917
53930
  [W, $]
53918
53931
  ), me = k(
53919
- async (x, P) => {
53932
+ async (x, L) => {
53920
53933
  if (!R) return;
53921
53934
  let D;
53922
53935
  try {
53923
- const re = await yt(x);
53924
- D = Xe(A.current?.clientWidth, re.width);
53936
+ const ie = await yt(x);
53937
+ D = Xe(A.current?.clientWidth, ie.width);
53925
53938
  } catch {
53926
53939
  D = Xe(A.current?.clientWidth, 720);
53927
53940
  }
53928
- R.chain().focus().insertContent({ type: "image", attrs: lt(x, P || "", D) }).run();
53941
+ R.chain().focus().insertContent({ type: "image", attrs: lt(x, L || "", D) }).run();
53929
53942
  },
53930
53943
  [R]
53931
53944
  ), Se = k(() => {
@@ -53935,20 +53948,20 @@ function fm({
53935
53948
  if (R) {
53936
53949
  y(null), ae(!0);
53937
53950
  try {
53938
- const P = await D_(x, R, async (D, re, ie) => {
53951
+ const L = await D_(x, R, async (D, ie, re) => {
53939
53952
  if (g) {
53940
- const Ne = new File([ie], `${D}.${re.split("/")[1] || "png"}`, {
53941
- type: re
53953
+ const Ne = new File([re], `${D}.${ie.split("/")[1] || "png"}`, {
53954
+ type: ie
53942
53955
  });
53943
53956
  return g(Ne);
53944
53957
  }
53945
- const Me = new Uint8Array(ie).reduce((Ne, he) => Ne + String.fromCharCode(he), "");
53946
- return `data:${re};base64,${btoa(Me)}`;
53958
+ const Me = new Uint8Array(re).reduce((Ne, he) => Ne + String.fromCharCode(he), "");
53959
+ return `data:${ie};base64,${btoa(Me)}`;
53947
53960
  });
53948
- P.length > 0 && Pe.warn("DOCX import warnings:", P);
53949
- } catch (P) {
53950
- const D = P instanceof Error ? P.message : "Unknown error";
53951
- Pe.error("DOCX import failed:", P), y(`Gagal mengimpor .docx: ${D}`);
53961
+ L.length > 0 && Pe.warn("DOCX import warnings:", L);
53962
+ } catch (L) {
53963
+ const D = L instanceof Error ? L.message : "Unknown error";
53964
+ Pe.error("DOCX import failed:", L), y(`Gagal mengimpor .docx: ${D}`);
53952
53965
  } finally {
53953
53966
  ae(!1);
53954
53967
  }
@@ -53960,23 +53973,23 @@ function fm({
53960
53973
  if (R)
53961
53974
  if (g)
53962
53975
  try {
53963
- const P = await g(x), D = await yt(P), re = Xe(A.current?.clientWidth, D.width);
53964
- R.chain().focus().insertContent({ type: "image", attrs: lt(P, "", re) }).run();
53976
+ const L = await g(x), D = await yt(L), ie = Xe(A.current?.clientWidth, D.width);
53977
+ R.chain().focus().insertContent({ type: "image", attrs: lt(L, "", ie) }).run();
53965
53978
  } catch {
53966
53979
  Pe.error("Image upload failed");
53967
53980
  }
53968
53981
  else {
53969
- const P = new FileReader();
53970
- P.onload = () => {
53971
- const D = P.result;
53972
- yt(D).then((re) => {
53973
- const ie = Xe(A.current?.clientWidth, re.width);
53974
- R.chain().focus().insertContent({ type: "image", attrs: lt(D, "", ie) }).run();
53975
- }).catch(() => {
53976
- const re = Xe(A.current?.clientWidth, 720);
53982
+ const L = new FileReader();
53983
+ L.onload = () => {
53984
+ const D = L.result;
53985
+ yt(D).then((ie) => {
53986
+ const re = Xe(A.current?.clientWidth, ie.width);
53977
53987
  R.chain().focus().insertContent({ type: "image", attrs: lt(D, "", re) }).run();
53988
+ }).catch(() => {
53989
+ const ie = Xe(A.current?.clientWidth, 720);
53990
+ R.chain().focus().insertContent({ type: "image", attrs: lt(D, "", ie) }).run();
53978
53991
  });
53979
- }, P.readAsDataURL(x);
53992
+ }, L.readAsDataURL(x);
53980
53993
  }
53981
53994
  },
53982
53995
  [R, g]
@@ -53984,31 +53997,31 @@ function fm({
53984
53997
  if (!R) return;
53985
53998
  const x = ct(R);
53986
53999
  if (!x) return;
53987
- let P, D;
54000
+ let L, D;
53988
54001
  try {
53989
- const ie = R.view.dom.querySelector(`img[src="${x.node.attrs.src}"]`);
53990
- ie && ie.naturalWidth > 0 && (P = ie.naturalWidth, D = ie.naturalHeight);
54002
+ const re = R.view.dom.querySelector(`img[src="${x.node.attrs.src}"]`);
54003
+ re && re.naturalWidth > 0 && (L = re.naturalWidth, D = re.naturalHeight);
53991
54004
  } catch {
53992
54005
  }
53993
- const re = {
53994
- width: x.node.attrs.width || P || 720,
54006
+ const ie = {
54007
+ width: x.node.attrs.width || L || 720,
53995
54008
  height: x.node.attrs.height || D || "auto",
53996
54009
  align: x.node.attrs.align || "center",
53997
54010
  alt: String(x.node.attrs.alt || ""),
53998
54011
  title: String(x.node.attrs.title || ""),
53999
54012
  maintainAspectRatio: !0,
54000
- naturalWidth: P,
54013
+ naturalWidth: L,
54001
54014
  naturalHeight: D
54002
54015
  };
54003
- Y(re), H(!0);
54016
+ Y(ie), H(!0);
54004
54017
  }, [R]), Ae = k(
54005
54018
  (x) => {
54006
54019
  if (!R) return;
54007
- const P = ct(R);
54008
- if (!P) return;
54020
+ const L = ct(R);
54021
+ if (!L) return;
54009
54022
  const D = R.state.tr;
54010
- D.setNodeMarkup(P.pos, void 0, {
54011
- ...P.node.attrs,
54023
+ D.setNodeMarkup(L.pos, void 0, {
54024
+ ...L.node.attrs,
54012
54025
  width: x.width,
54013
54026
  height: x.height,
54014
54027
  align: x.align,
@@ -54020,11 +54033,11 @@ function fm({
54020
54033
  ), De = k(
54021
54034
  (x) => {
54022
54035
  if (!R) return;
54023
- const P = ct(R);
54024
- if (!P) return;
54036
+ const L = ct(R);
54037
+ if (!L) return;
54025
54038
  const D = R.state.tr;
54026
- D.setNodeMarkup(P.pos, void 0, {
54027
- ...P.node.attrs,
54039
+ D.setNodeMarkup(L.pos, void 0, {
54040
+ ...L.node.attrs,
54028
54041
  align: x,
54029
54042
  offsetX: 0,
54030
54043
  offsetY: 0
@@ -54035,12 +54048,12 @@ function fm({
54035
54048
  if (!R) return;
54036
54049
  const x = ct(R);
54037
54050
  if (!x) return;
54038
- const P = R.state.tr;
54039
- P.setNodeMarkup(x.pos, void 0, {
54051
+ const L = R.state.tr;
54052
+ L.setNodeMarkup(x.pos, void 0, {
54040
54053
  ...x.node.attrs,
54041
54054
  offsetX: 0,
54042
54055
  offsetY: 0
54043
- }), R.view.dispatch(P);
54056
+ }), R.view.dispatch(L);
54044
54057
  }, [R]);
54045
54058
  return /* @__PURE__ */ a(L_, { children: /* @__PURE__ */ m(
54046
54059
  "div",
@@ -54165,8 +54178,8 @@ function fm({
54165
54178
  accept: ".docx",
54166
54179
  style: { display: "none" },
54167
54180
  onChange: (x) => {
54168
- const P = x.target.files?.[0];
54169
- P && (be(P), x.target.value = "");
54181
+ const L = x.target.files?.[0];
54182
+ L && (be(L), x.target.value = "");
54170
54183
  }
54171
54184
  }
54172
54185
  )
@@ -54174,31 +54187,31 @@ function fm({
54174
54187
  }
54175
54188
  ) });
54176
54189
  }
54177
- const H_ = ve(() => import("./LinkDialogImpl-Cs1v0Vgd.js").then((e) => ({ default: e.LinkDialogImpl }))), V_ = fe.memo(function(t) {
54178
- return /* @__PURE__ */ a(Oe, { fallback: null, children: /* @__PURE__ */ a(H_, { ...t }) });
54190
+ const V_ = ve(() => import("./LinkDialogImpl-CPjj0CkY.js").then((e) => ({ default: e.LinkDialogImpl }))), z_ = fe.memo(function(t) {
54191
+ return /* @__PURE__ */ a(Oe, { fallback: null, children: /* @__PURE__ */ a(V_, { ...t }) });
54179
54192
  });
54180
- V_.displayName = "LinkDialog";
54181
- const z_ = ve(() => import("./InsertTableDialogImpl-U7g8UMBM.js").then((e) => ({ default: e.InsertTableDialogImpl }))), q_ = fe.memo(function(t) {
54182
- return /* @__PURE__ */ a(Oe, { fallback: null, children: /* @__PURE__ */ a(z_, { ...t }) });
54193
+ z_.displayName = "LinkDialog";
54194
+ const q_ = ve(() => import("./InsertTableDialogImpl-B2GUzYNY.js").then((e) => ({ default: e.InsertTableDialogImpl }))), W_ = fe.memo(function(t) {
54195
+ return /* @__PURE__ */ a(Oe, { fallback: null, children: /* @__PURE__ */ a(q_, { ...t }) });
54183
54196
  });
54184
- q_.displayName = "InsertTableDialog";
54185
- const W_ = ve(() => import("./CellPropertiesDialogImpl-DroCD-qw.js").then((e) => ({ default: e.CellPropertiesDialogImpl }))), K_ = fe.memo(function(t) {
54186
- return /* @__PURE__ */ a(Oe, { fallback: null, children: /* @__PURE__ */ a(W_, { ...t }) });
54197
+ W_.displayName = "InsertTableDialog";
54198
+ const K_ = ve(() => import("./CellPropertiesDialogImpl-5bzEkaTt.js").then((e) => ({ default: e.CellPropertiesDialogImpl }))), $_ = fe.memo(function(t) {
54199
+ return /* @__PURE__ */ a(Oe, { fallback: null, children: /* @__PURE__ */ a(K_, { ...t }) });
54187
54200
  });
54188
- K_.displayName = "CellPropertiesDialog";
54189
- const $_ = ve(() => import("./TablePropertiesDialogImpl-BmdThHz3.js").then((e) => ({ default: e.TablePropertiesDialogImpl }))), Q_ = fe.memo(function(t) {
54190
- return /* @__PURE__ */ a(Oe, { fallback: null, children: /* @__PURE__ */ a($_, { ...t }) });
54201
+ $_.displayName = "CellPropertiesDialog";
54202
+ const Q_ = ve(() => import("./TablePropertiesDialogImpl-BLbhyfA0.js").then((e) => ({ default: e.TablePropertiesDialogImpl }))), X_ = fe.memo(function(t) {
54203
+ return /* @__PURE__ */ a(Oe, { fallback: null, children: /* @__PURE__ */ a(Q_, { ...t }) });
54191
54204
  });
54192
- Q_.displayName = "TablePropertiesDialog";
54193
- const X_ = ve(() => import("./TableTemplatesDialogImpl-CglXYCPV.js").then((e) => ({ default: e.TableTemplatesDialogImpl }))), Z_ = fe.memo(function(t) {
54194
- return /* @__PURE__ */ a(Oe, { fallback: null, children: /* @__PURE__ */ a(X_, { ...t }) });
54205
+ X_.displayName = "TablePropertiesDialog";
54206
+ const Z_ = ve(() => import("./TableTemplatesDialogImpl-BQZTGw_Y.js").then((e) => ({ default: e.TableTemplatesDialogImpl }))), J_ = fe.memo(function(t) {
54207
+ return /* @__PURE__ */ a(Oe, { fallback: null, children: /* @__PURE__ */ a(Z_, { ...t }) });
54195
54208
  });
54196
- Z_.displayName = "TableTemplatesDialog";
54197
- function Nm(e) {
54209
+ J_.displayName = "TableTemplatesDialog";
54210
+ function hm(e) {
54198
54211
  const t = {};
54199
54212
  return e.headerStyle === "light" ? t.th = "background-color: #f1f5f9; font-weight: 600;" : e.headerStyle === "dark" ? t.th = "background-color: #1e293b; color: white; font-weight: 600;" : e.headerStyle === "blue" && (t.th = "background-color: #3b82f6; color: white; font-weight: 600;"), e.borderStyle === "all" ? t["td, th"] = "border: 1px solid #cbd5e1;" : e.borderStyle === "horizontal" ? t["td, th"] = "border-top: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1;" : e.borderStyle === "vertical" && (t["td, th"] = "border-left: 1px solid #cbd5e1; border-right: 1px solid #cbd5e1;"), t;
54200
54213
  }
54201
- const J_ = [
54214
+ const j_ = [
54202
54215
  { id: "quad-formula", label: "Rumus ABC (Kuadrat)", latex: "x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}", category: "Algebra", level: "smp" },
54203
54216
  { id: "quad-eq", label: "Persamaan Kuadrat", latex: "ax^2 + bx + c = 0", category: "Algebra", level: "smp" },
54204
54217
  { id: "linear-eq", label: "Persamaan Linear", latex: "y = mx + c", category: "Algebra", level: "smp" },
@@ -54207,7 +54220,7 @@ const J_ = [
54207
54220
  { id: "abs-value", label: "Nilai Mutlak", latex: "|x - a| = b", category: "Algebra", level: "sma" },
54208
54221
  { id: "log-def", label: "Logaritma", latex: "\\log_a b = c \\iff a^c = b", category: "Algebra", level: "sma" },
54209
54222
  { id: "exponent-rule", label: "Aturan Eksponen", latex: "a^m \\cdot a^n = a^{m+n}", category: "Algebra", level: "smp" }
54210
- ], j_ = [
54223
+ ], ed = [
54211
54224
  { id: "pythagoras", label: "Teorema Pythagoras", latex: "a^2 + b^2 = c^2", category: "Geometri", level: "smp" },
54212
54225
  { id: "circle-area", label: "Luas Lingkaran", latex: "L = \\pi r^2", category: "Geometri", level: "sd" },
54213
54226
  { id: "circle-circumference", label: "Keliling Lingkaran", latex: "K = 2\\pi r", category: "Geometri", level: "sd" },
@@ -54217,7 +54230,7 @@ const J_ = [
54217
54230
  { id: "cylinder-volume", label: "Volume Tabung", latex: "V = \\pi r^2 t", category: "Geometri", level: "smp" },
54218
54231
  { id: "cone-volume", label: "Volume Kerucut", latex: "V = \\frac{1}{3} \\pi r^2 t", category: "Geometri", level: "smp" },
54219
54232
  { id: "distance-2d", label: "Jarak Dua Titik", latex: "d = \\sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}", category: "Geometri", level: "sma" }
54220
- ], ed = [
54233
+ ], td = [
54221
54234
  { id: "sin-def", label: "Sinus", latex: "\\sin \\theta = \\frac{\\text{depan}}{\\text{miring}}", category: "Trigonometri", level: "sma" },
54222
54235
  { id: "cos-def", label: "Cosinus", latex: "\\cos \\theta = \\frac{\\text{samping}}{\\text{miring}}", category: "Trigonometri", level: "sma" },
54223
54236
  { id: "tan-def", label: "Tangen", latex: "\\tan \\theta = \\frac{\\sin \\theta}{\\cos \\theta}", category: "Trigonometri", level: "sma" },
@@ -54225,14 +54238,14 @@ const J_ = [
54225
54238
  { id: "sin-rule", label: "Aturan Sinus", latex: "\\frac{a}{\\sin A} = \\frac{b}{\\sin B} = \\frac{c}{\\sin C}", category: "Trigonometri", level: "sma" },
54226
54239
  { id: "cos-rule", label: "Aturan Cosinus", latex: "c^2 = a^2 + b^2 - 2ab\\cos C", category: "Trigonometri", level: "sma" },
54227
54240
  { id: "double-angle-sin", label: "Sudut Ganda (Sin)", latex: "\\sin 2\\theta = 2\\sin \\theta \\cos \\theta", category: "Trigonometri", level: "sma" }
54228
- ], td = [
54241
+ ], ad = [
54229
54242
  { id: "derivative-def", label: "Definisi Turunan", latex: "f'(x) = \\lim_{h \\to 0} \\frac{f(x+h) - f(x)}{h}", category: "Kalkulus", level: "sma" },
54230
54243
  { id: "power-rule", label: "Aturan Pangkat", latex: "\\frac{d}{dx} x^n = nx^{n-1}", category: "Kalkulus", level: "sma" },
54231
54244
  { id: "chain-rule", label: "Aturan Rantai", latex: "\\frac{dy}{dx} = \\frac{dy}{du} \\cdot \\frac{du}{dx}", category: "Kalkulus", level: "sma" },
54232
54245
  { id: "definite-integral", label: "Integral Tentu", latex: "\\int_a^b f(x)\\, dx = F(b) - F(a)", category: "Kalkulus", level: "sma" },
54233
54246
  { id: "indef-integral", label: "Integral Tak Tentu", latex: "\\int x^n\\, dx = \\frac{x^{n+1}}{n+1} + C", category: "Kalkulus", level: "sma" },
54234
54247
  { id: "limit-def", label: "Limit", latex: "\\lim_{x \\to a} f(x) = L", category: "Kalkulus", level: "sma" }
54235
- ], ad = [
54248
+ ], nd = [
54236
54249
  { id: "mean", label: "Rata-rata (Mean)", latex: "\\bar{x} = \\frac{\\sum_{i=1}^{n} x_i}{n}", category: "Statistik", level: "smp" },
54237
54250
  { id: "median", label: "Median", latex: "Me = x_{\\frac{n+1}{2}}", category: "Statistik", level: "smp" },
54238
54251
  { id: "std-dev", label: "Simpangan Baku", latex: "s = \\sqrt{\\frac{\\sum_{i=1}^{n}(x_i - \\bar{x})^2}{n-1}}", category: "Statistik", level: "sma" },
@@ -54240,7 +54253,7 @@ const J_ = [
54240
54253
  { id: "combination", label: "Kombinasi", latex: "C(n, r) = \\binom{n}{r} = \\frac{n!}{r!(n-r)!}", category: "Statistik", level: "sma" },
54241
54254
  { id: "permutation", label: "Permutasi", latex: "P(n, r) = \\frac{n!}{(n-r)!}", category: "Statistik", level: "sma" },
54242
54255
  { id: "probability", label: "Peluang", latex: "P(A) = \\frac{n(A)}{n(S)}", category: "Statistik", level: "smp" }
54243
- ], nd = [
54256
+ ], id = [
54244
54257
  { id: "velocity", label: "Kecepatan", latex: "v = \\frac{s}{t}", category: "Fisika", level: "smp" },
54245
54258
  { id: "acceleration", label: "Percepatan", latex: "a = \\frac{\\Delta v}{\\Delta t}", category: "Fisika", level: "smp" },
54246
54259
  { id: "newton-2", label: "Hukum Newton II", latex: "F = m \\cdot a", category: "Fisika", level: "smp" },
@@ -54250,22 +54263,22 @@ const J_ = [
54250
54263
  { id: "ohm-law", label: "Hukum Ohm", latex: "V = I \\cdot R", category: "Fisika", level: "sma" },
54251
54264
  { id: "power-physics", label: "Daya", latex: "P = \\frac{W}{t}", category: "Fisika", level: "sma" },
54252
54265
  { id: "gravity", label: "Gravitasi Newton", latex: "F = G \\frac{m_1 m_2}{r^2}", category: "Fisika", level: "sma" }
54253
- ], id = [
54266
+ ], rd = [
54254
54267
  { id: "mol", label: "Jumlah Mol", latex: "n = \\frac{m}{M_r}", category: "Kimia", level: "sma" },
54255
54268
  { id: "molar-conc", label: "Molaritas", latex: "M = \\frac{n}{V}", category: "Kimia", level: "sma" },
54256
54269
  { id: "ideal-gas", label: "Gas Ideal", latex: "PV = nRT", category: "Kimia", level: "sma" },
54257
54270
  { id: "ph", label: "pH", latex: "pH = -\\log [H^+]", category: "Kimia", level: "sma" },
54258
54271
  { id: "dilution", label: "Pengenceran", latex: "M_1 V_1 = M_2 V_2", category: "Kimia", level: "sma" }
54259
54272
  ], pt = [
54260
- ...J_,
54261
54273
  ...j_,
54262
54274
  ...ed,
54263
54275
  ...td,
54264
54276
  ...ad,
54265
54277
  ...nd,
54266
- ...id
54278
+ ...id,
54279
+ ...rd
54267
54280
  ];
54268
- function hm(e) {
54281
+ function Rm(e) {
54269
54282
  if (e === "all") return pt;
54270
54283
  const n = {
54271
54284
  sd: ["sd"],
@@ -54274,43 +54287,43 @@ function hm(e) {
54274
54287
  }[e] || ["sd", "smp", "sma"];
54275
54288
  return pt.filter((i) => n.includes(i.level));
54276
54289
  }
54277
- function Rm(e) {
54290
+ function Cm(e) {
54278
54291
  return pt.filter((t) => t.category === e);
54279
54292
  }
54280
- function Cm() {
54293
+ function Om() {
54281
54294
  return [...new Set(pt.map((e) => e.category))];
54282
54295
  }
54283
54296
  export {
54284
- K_ as C,
54297
+ $_ as C,
54285
54298
  U_ as I,
54286
- V_ as L,
54299
+ z_ as L,
54287
54300
  c_ as M,
54288
54301
  g_ as S,
54289
54302
  ln as T,
54290
54303
  w_ as W,
54291
54304
  Pl as a,
54292
- q_ as b,
54293
- Em as c,
54305
+ W_ as b,
54306
+ gm as c,
54294
54307
  Qc as d,
54295
54308
  $c as e,
54296
- fm as f,
54297
- gm as g,
54309
+ Nm as f,
54310
+ Sm as g,
54298
54311
  E_ as h,
54299
54312
  Wc as i,
54300
- Q_ as j,
54301
- Z_ as k,
54313
+ X_ as j,
54314
+ J_ as k,
54302
54315
  B_ as l,
54303
54316
  Na as m,
54304
54317
  fa as n,
54305
54318
  zc as o,
54306
54319
  Ta as p,
54307
- bm as q,
54308
- Cm as r,
54309
- Nm as s,
54310
- Rm as t,
54320
+ Tm as q,
54321
+ Om as r,
54322
+ hm as s,
54323
+ Cm as t,
54311
54324
  k_ as u,
54312
- hm as v,
54325
+ Rm as v,
54313
54326
  pt as w,
54314
54327
  b_ as x,
54315
- Tm as y
54328
+ fm as y
54316
54329
  };