superdoc 0.31.0-next.7 → 0.31.0-next.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/chunks/{PdfViewer-HhmcCtfd.es.js → PdfViewer-ChLbIG8u.es.js} +2 -2
  2. package/dist/chunks/{PdfViewer-C_gVEaJa.cjs → PdfViewer-DGBrTPth.cjs} +2 -2
  3. package/dist/chunks/{eventemitter3-hYlnBzSA.es.js → eventemitter3-BZXKb7j7.es.js} +1 -1
  4. package/dist/chunks/{eventemitter3-DmHNHvFX.cjs → eventemitter3-CFCpOk3d.cjs} +1 -1
  5. package/dist/chunks/{index-Cz10rZ5n.es.js → index-AnYOPAqD.es.js} +6 -6
  6. package/dist/chunks/{index-wLtubQ87.cjs → index-Cypk5knN.cjs} +6 -6
  7. package/dist/chunks/{index-BJ6cOegF-C-oX4LAe.es.js → index-mvOjU9rn-CQ6Y6D-C.es.js} +1 -1
  8. package/dist/chunks/{index-BJ6cOegF-BuvRSNoV.cjs → index-mvOjU9rn-HqKSYwVo.cjs} +1 -1
  9. package/dist/chunks/{jszip-BP2FTbpi.cjs → jszip-B99MTu59.cjs} +1 -1
  10. package/dist/chunks/{jszip-jKrsZoMS.es.js → jszip-Duxs2YMV.es.js} +1 -1
  11. package/dist/chunks/{super-editor.es-Bz-s1Pw4.cjs → super-editor.es-D55QKmsp.cjs} +779 -641
  12. package/dist/chunks/{super-editor.es-C20nShDu.es.js → super-editor.es-_tc99cB9.es.js} +732 -594
  13. package/dist/chunks/{vue-Cwv-wUpm.cjs → vue-ARQSyfaw.cjs} +2401 -2360
  14. package/dist/chunks/{vue-CKmzTNVs.es.js → vue-B5QAf5pA.es.js} +2401 -2360
  15. package/dist/chunks/xml-js-CVyfrKaV.es.js +2 -0
  16. package/dist/chunks/xml-js-DQa4Ye5C.cjs +3 -0
  17. package/dist/images/altText_add.svg +3 -0
  18. package/dist/images/altText_disclaimer.svg +3 -0
  19. package/dist/images/altText_done.svg +3 -0
  20. package/dist/images/altText_spinner.svg +30 -0
  21. package/dist/images/altText_warning.svg +3 -0
  22. package/dist/images/annotation-check.svg +11 -0
  23. package/dist/images/annotation-comment.svg +16 -0
  24. package/dist/images/annotation-help.svg +26 -0
  25. package/dist/images/annotation-insert.svg +10 -0
  26. package/dist/images/annotation-key.svg +11 -0
  27. package/dist/images/annotation-newparagraph.svg +11 -0
  28. package/dist/images/annotation-noicon.svg +7 -0
  29. package/dist/images/annotation-note.svg +42 -0
  30. package/dist/images/annotation-paperclip.svg +6 -0
  31. package/dist/images/annotation-paragraph.svg +16 -0
  32. package/dist/images/annotation-pushpin.svg +7 -0
  33. package/dist/images/cursor-editorFreeHighlight.svg +6 -0
  34. package/dist/images/cursor-editorFreeText.svg +3 -0
  35. package/dist/images/cursor-editorInk.svg +4 -0
  36. package/dist/images/cursor-editorTextHighlight.svg +8 -0
  37. package/dist/images/editor-toolbar-delete.svg +5 -0
  38. package/dist/images/loading-icon.gif +0 -0
  39. package/dist/images/messageBar_closingButton.svg +3 -0
  40. package/dist/images/messageBar_warning.svg +3 -0
  41. package/dist/images/toolbarButton-editorHighlight.svg +6 -0
  42. package/dist/images/toolbarButton-menuArrow.svg +3 -0
  43. package/dist/packages/superdoc/src/core/SuperDoc.d.ts +8 -0
  44. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  45. package/dist/packages/superdoc/src/core/types/index.d.ts +8 -0
  46. package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
  47. package/dist/style.css +2 -0
  48. package/dist/super-editor/ai-writer.es.js +2 -2
  49. package/dist/super-editor/chunks/{converter-DVDL6NWz.js → converter-DkFlFcso.js} +313 -294
  50. package/dist/super-editor/chunks/{docx-zipper-4ipmBNSH.js → docx-zipper-BSQJw-fX.js} +1 -1
  51. package/dist/super-editor/chunks/{editor-B8v33PJq.js → editor-bUoNJi-W.js} +155 -36
  52. package/dist/super-editor/chunks/{index-BJ6cOegF.js → index-mvOjU9rn.js} +1 -1
  53. package/dist/super-editor/chunks/{toolbar-CfUofx7k.js → toolbar-CkPV7I8i.js} +2 -2
  54. package/dist/super-editor/converter.es.js +1 -1
  55. package/dist/super-editor/docx-zipper.es.js +2 -2
  56. package/dist/super-editor/editor.es.js +3 -3
  57. package/dist/super-editor/file-zipper.es.js +1 -1
  58. package/dist/super-editor/style.css +2 -0
  59. package/dist/super-editor/super-editor/src/core/Editor.d.ts +9 -0
  60. package/dist/super-editor/super-editor/src/core/Editor.d.ts.map +1 -1
  61. package/dist/super-editor/super-editor/src/core/Node.d.ts +1 -1
  62. package/dist/super-editor/super-editor/src/core/Node.d.ts.map +1 -1
  63. package/dist/super-editor/super-editor/src/core/Schema.d.ts.map +1 -1
  64. package/dist/super-editor/super-editor/src/core/schema-summary.d.ts +4 -0
  65. package/dist/super-editor/super-editor/src/core/schema-summary.d.ts.map +1 -0
  66. package/dist/super-editor/super-editor/src/core/types/EditorSchema.d.ts +35 -0
  67. package/dist/super-editor/super-editor/src/core/types/EditorSchema.d.ts.map +1 -0
  68. package/dist/super-editor/super-editor/src/extensions/ai/ai-marks.d.ts.map +1 -1
  69. package/dist/super-editor/super-editor/src/extensions/ai/ai-nodes.d.ts.map +1 -1
  70. package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration-helpers.d.ts.map +1 -1
  71. package/dist/super-editor/super-editor/src/extensions/mention/mention.d.ts.map +1 -1
  72. package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts.map +1 -1
  73. package/dist/super-editor/super-editor/src/extensions/structured-content/document-part-object.d.ts.map +1 -1
  74. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts +8 -0
  75. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
  76. package/dist/super-editor/super-editor.es.js +6 -6
  77. package/dist/super-editor/toolbar.es.js +2 -2
  78. package/dist/super-editor.cjs +2 -2
  79. package/dist/super-editor.es.js +2 -2
  80. package/dist/superdoc.cjs +2 -2
  81. package/dist/superdoc.es.js +2 -2
  82. package/dist/superdoc.umd.js +1120 -942
  83. package/dist/superdoc.umd.js.map +1 -1
  84. package/package.json +1 -1
  85. package/dist/chunks/xml-js-BSDu25I7.cjs +0 -3
  86. package/dist/chunks/xml-js-CBrRls0f.es.js +0 -2
@@ -1,4 +1,4 @@
1
- import { g as global$2, r as ref$1, c as createApp, a as computed, b as createElementBlock, o as openBlock, F as Fragment$1, d as renderList, n as normalizeClass, w as withModifiers, e as createCommentVNode, t as toDisplayString, f as createBaseVNode, i as inject, h as onBeforeMount, j as onMounted, k as onBeforeUnmount, l as watch, m as defineComponent, p as getCurrentInstance, q as onDeactivated, s as nextTick, u as createBlock, v as createVNode, x as unref, y as h$1, z as mergeProps, A as shallowRef, B as withCtx, C as createTextVNode, D as normalizeStyle, E as toRef, G as provide, H as cloneVNode, T as Text$2, I as withDirectives, J as watchEffect, K as vModelText, L as withKeys, M as reactive, N as readonly, O as Transition, P as vShow, Q as Comment, R as renderSlot, S as onActivated, U as Teleport, V as isVNode, W as onUnmounted, X as resolveDynamicComponent, Y as normalizeProps, Z as guardReactiveProps, _ as markRaw } from "./vue-CKmzTNVs.es.js";
1
+ import { g as global$2, r as ref$1, c as createApp, a as computed, b as createElementBlock, o as openBlock, F as Fragment$1, d as renderList, n as normalizeClass, w as withModifiers, e as createCommentVNode, t as toDisplayString, f as createBaseVNode, i as inject, h as onBeforeMount, j as onMounted, k as onBeforeUnmount, l as watch, m as defineComponent, p as getCurrentInstance, q as onDeactivated, s as nextTick, u as createBlock, v as createVNode, x as unref, y as h, z as mergeProps, A as shallowRef, B as withCtx, C as createTextVNode, D as normalizeStyle, E as toRef, G as provide, H as cloneVNode, T as Text$2, I as withDirectives, J as watchEffect, K as vModelText, L as withKeys, M as reactive, N as readonly, O as Transition, P as vShow, Q as Comment, R as renderSlot, S as onActivated, U as Teleport, V as isVNode, W as onUnmounted, X as resolveDynamicComponent, Y as normalizeProps, Z as guardReactiveProps, _ as markRaw } from "./vue-B5QAf5pA.es.js";
2
2
  import * as Y from "yjs";
3
3
  import { UndoManager, Item as Item$2, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
4
4
  var __defProp$2 = Object.defineProperty;
@@ -416,17 +416,17 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
416
416
  );
417
417
  }
418
418
  if (a === b2) return 0;
419
- let x = a.length;
419
+ let x2 = a.length;
420
420
  let y2 = b2.length;
421
- for (let i = 0, len = Math.min(x, y2); i < len; ++i) {
421
+ for (let i = 0, len = Math.min(x2, y2); i < len; ++i) {
422
422
  if (a[i] !== b2[i]) {
423
- x = a[i];
423
+ x2 = a[i];
424
424
  y2 = b2[i];
425
425
  break;
426
426
  }
427
427
  }
428
- if (x < y2) return -1;
429
- if (y2 < x) return 1;
428
+ if (x2 < y2) return -1;
429
+ if (y2 < x2) return 1;
430
430
  return 0;
431
431
  };
432
432
  Buffer3.isEncoding = function isEncoding(encoding) {
@@ -675,20 +675,20 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
675
675
  thisStart >>>= 0;
676
676
  thisEnd >>>= 0;
677
677
  if (this === target) return 0;
678
- let x = thisEnd - thisStart;
678
+ let x2 = thisEnd - thisStart;
679
679
  let y2 = end2 - start2;
680
- const len = Math.min(x, y2);
680
+ const len = Math.min(x2, y2);
681
681
  const thisCopy = this.slice(thisStart, thisEnd);
682
682
  const targetCopy = target.slice(start2, end2);
683
683
  for (let i = 0; i < len; ++i) {
684
684
  if (thisCopy[i] !== targetCopy[i]) {
685
- x = thisCopy[i];
685
+ x2 = thisCopy[i];
686
686
  y2 = targetCopy[i];
687
687
  break;
688
688
  }
689
689
  }
690
- if (x < y2) return -1;
691
- if (y2 < x) return 1;
690
+ if (x2 < y2) return -1;
691
+ if (y2 < x2) return 1;
692
692
  return 0;
693
693
  };
694
694
  function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
@@ -1778,8 +1778,8 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
1778
1778
  })(buffer);
1779
1779
  const Buffer2 = buffer.Buffer;
1780
1780
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global$2 !== "undefined" ? global$2 : typeof self !== "undefined" ? self : {};
1781
- function getDefaultExportFromCjs$2(x) {
1782
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1781
+ function getDefaultExportFromCjs$2(x2) {
1782
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
1783
1783
  }
1784
1784
  var sax = {};
1785
1785
  var events$1 = { exports: {} };
@@ -1787,13 +1787,13 @@ var hasRequiredEvents;
1787
1787
  function requireEvents() {
1788
1788
  if (hasRequiredEvents) return events$1.exports;
1789
1789
  hasRequiredEvents = 1;
1790
- var R2 = typeof Reflect === "object" ? Reflect : null;
1791
- var ReflectApply = R2 && typeof R2.apply === "function" ? R2.apply : function ReflectApply2(target, receiver, args) {
1790
+ var R = typeof Reflect === "object" ? Reflect : null;
1791
+ var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
1792
1792
  return Function.prototype.apply.call(target, receiver, args);
1793
1793
  };
1794
1794
  var ReflectOwnKeys;
1795
- if (R2 && typeof R2.ownKeys === "function") {
1796
- ReflectOwnKeys = R2.ownKeys;
1795
+ if (R && typeof R.ownKeys === "function") {
1796
+ ReflectOwnKeys = R.ownKeys;
1797
1797
  } else if (Object.getOwnPropertySymbols) {
1798
1798
  ReflectOwnKeys = function ReflectOwnKeys2(target) {
1799
1799
  return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
@@ -2183,8 +2183,8 @@ function requireInherits_browser() {
2183
2183
  }
2184
2184
  return inherits_browser.exports;
2185
2185
  }
2186
- function getDefaultExportFromCjs$1(x) {
2187
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
2186
+ function getDefaultExportFromCjs$1(x2) {
2187
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
2188
2188
  }
2189
2189
  var browser$1 = { exports: {} };
2190
2190
  var process$1 = browser$1.exports = {};
@@ -2765,17 +2765,17 @@ function requireDist() {
2765
2765
  );
2766
2766
  }
2767
2767
  if (a === b2) return 0;
2768
- let x = a.length;
2768
+ let x2 = a.length;
2769
2769
  let y2 = b2.length;
2770
- for (let i2 = 0, len2 = Math.min(x, y2); i2 < len2; ++i2) {
2770
+ for (let i2 = 0, len2 = Math.min(x2, y2); i2 < len2; ++i2) {
2771
2771
  if (a[i2] !== b2[i2]) {
2772
- x = a[i2];
2772
+ x2 = a[i2];
2773
2773
  y2 = b2[i2];
2774
2774
  break;
2775
2775
  }
2776
2776
  }
2777
- if (x < y2) return -1;
2778
- if (y2 < x) return 1;
2777
+ if (x2 < y2) return -1;
2778
+ if (y2 < x2) return 1;
2779
2779
  return 0;
2780
2780
  };
2781
2781
  Buffer4.isEncoding = function isEncoding(encoding) {
@@ -3024,20 +3024,20 @@ function requireDist() {
3024
3024
  thisStart >>>= 0;
3025
3025
  thisEnd >>>= 0;
3026
3026
  if (this === target) return 0;
3027
- let x = thisEnd - thisStart;
3027
+ let x2 = thisEnd - thisStart;
3028
3028
  let y2 = end2 - start2;
3029
- const len2 = Math.min(x, y2);
3029
+ const len2 = Math.min(x2, y2);
3030
3030
  const thisCopy = this.slice(thisStart, thisEnd);
3031
3031
  const targetCopy = target.slice(start2, end2);
3032
3032
  for (let i2 = 0; i2 < len2; ++i2) {
3033
3033
  if (thisCopy[i2] !== targetCopy[i2]) {
3034
- x = thisCopy[i2];
3034
+ x2 = thisCopy[i2];
3035
3035
  y2 = targetCopy[i2];
3036
3036
  break;
3037
3037
  }
3038
3038
  }
3039
- if (x < y2) return -1;
3040
- if (y2 < x) return 1;
3039
+ if (x2 < y2) return -1;
3040
+ if (y2 < x2) return 1;
3041
3041
  return 0;
3042
3042
  };
3043
3043
  function bidirectionalIndexOf(buffer3, val, byteOffset, encoding, dir) {
@@ -4609,15 +4609,15 @@ function requireGetProto() {
4609
4609
  var reflectGetProto = requireReflect_getPrototypeOf();
4610
4610
  var originalGetProto = requireObject_getPrototypeOf();
4611
4611
  var getDunderProto = /* @__PURE__ */ requireGet();
4612
- getProto = reflectGetProto ? function getProto2(O2) {
4613
- return reflectGetProto(O2);
4614
- } : originalGetProto ? function getProto2(O2) {
4615
- if (!O2 || typeof O2 !== "object" && typeof O2 !== "function") {
4612
+ getProto = reflectGetProto ? function getProto2(O) {
4613
+ return reflectGetProto(O);
4614
+ } : originalGetProto ? function getProto2(O) {
4615
+ if (!O || typeof O !== "object" && typeof O !== "function") {
4616
4616
  throw new TypeError("getProto: not an object");
4617
4617
  }
4618
- return originalGetProto(O2);
4619
- } : getDunderProto ? function getProto2(O2) {
4620
- return getDunderProto(O2);
4618
+ return originalGetProto(O);
4619
+ } : getDunderProto ? function getProto2(O) {
4620
+ return getDunderProto(O);
4621
4621
  } : null;
4622
4622
  return getProto;
4623
4623
  }
@@ -5295,8 +5295,8 @@ function requireForEach() {
5295
5295
  }
5296
5296
  }
5297
5297
  };
5298
- function isArray2(x) {
5299
- return toStr.call(x) === "[object Array]";
5298
+ function isArray2(x2) {
5299
+ return toStr.call(x2) === "[object Array]";
5300
5300
  }
5301
5301
  forEach = function forEach22(list, iterator, thisArg) {
5302
5302
  if (!isCallable2(iterator)) {
@@ -5905,10 +5905,10 @@ function requireUtil() {
5905
5905
  var i = 1;
5906
5906
  var args = arguments;
5907
5907
  var len = args.length;
5908
- var str = String(f2).replace(formatRegExp, function(x2) {
5909
- if (x2 === "%%") return "%";
5910
- if (i >= len) return x2;
5911
- switch (x2) {
5908
+ var str = String(f2).replace(formatRegExp, function(x3) {
5909
+ if (x3 === "%%") return "%";
5910
+ if (i >= len) return x3;
5911
+ switch (x3) {
5912
5912
  case "%s":
5913
5913
  return String(args[i++]);
5914
5914
  case "%d":
@@ -5920,14 +5920,14 @@ function requireUtil() {
5920
5920
  return "[Circular]";
5921
5921
  }
5922
5922
  default:
5923
- return x2;
5923
+ return x3;
5924
5924
  }
5925
5925
  });
5926
- for (var x = args[i]; i < len; x = args[++i]) {
5927
- if (isNull(x) || !isObject2(x)) {
5928
- str += " " + x;
5926
+ for (var x2 = args[i]; i < len; x2 = args[++i]) {
5927
+ if (isNull(x2) || !isObject2(x2)) {
5928
+ str += " " + x2;
5929
5929
  } else {
5930
- str += " " + inspect(x);
5930
+ str += " " + inspect(x2);
5931
5931
  }
5932
5932
  }
5933
5933
  return str;
@@ -7492,6 +7492,7 @@ function require_stream_duplex() {
7492
7492
  }
7493
7493
  var string_decoder = {};
7494
7494
  var safeBuffer = { exports: {} };
7495
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
7495
7496
  var hasRequiredSafeBuffer;
7496
7497
  function requireSafeBuffer() {
7497
7498
  if (hasRequiredSafeBuffer) return safeBuffer.exports;
@@ -7513,6 +7514,7 @@ function requireSafeBuffer() {
7513
7514
  function SafeBuffer(arg, encodingOrOffset, length2) {
7514
7515
  return Buffer3(arg, encodingOrOffset, length2);
7515
7516
  }
7517
+ SafeBuffer.prototype = Object.create(Buffer3.prototype);
7516
7518
  copyProps(Buffer3, SafeBuffer);
7517
7519
  SafeBuffer.from = function(arg, encodingOrOffset, length2) {
7518
7520
  if (typeof arg === "number") {
@@ -8790,9 +8792,9 @@ function require_stream_readable() {
8790
8792
  return from2(Readable, iterable, opts);
8791
8793
  };
8792
8794
  }
8793
- function indexOf(xs, x) {
8795
+ function indexOf(xs, x2) {
8794
8796
  for (var i = 0, l3 = xs.length; i < l3; i++) {
8795
- if (xs[i] === x) return i;
8797
+ if (xs[i] === x2) return i;
8796
8798
  }
8797
8799
  return -1;
8798
8800
  }
@@ -9250,27 +9252,27 @@ function requireSax() {
9250
9252
  this._parser = new SAXParser(strict, opt);
9251
9253
  this.writable = true;
9252
9254
  this.readable = true;
9253
- var me = this;
9255
+ var me2 = this;
9254
9256
  this._parser.onend = function() {
9255
- me.emit("end");
9257
+ me2.emit("end");
9256
9258
  };
9257
9259
  this._parser.onerror = function(er) {
9258
- me.emit("error", er);
9259
- me._parser.error = null;
9260
+ me2.emit("error", er);
9261
+ me2._parser.error = null;
9260
9262
  };
9261
9263
  this._decoder = null;
9262
9264
  streamWraps.forEach(function(ev) {
9263
- Object.defineProperty(me, "on" + ev, {
9265
+ Object.defineProperty(me2, "on" + ev, {
9264
9266
  get: function() {
9265
- return me._parser["on" + ev];
9267
+ return me2._parser["on" + ev];
9266
9268
  },
9267
9269
  set: function(h2) {
9268
9270
  if (!h2) {
9269
- me.removeAllListeners(ev);
9270
- me._parser["on" + ev] = h2;
9271
+ me2.removeAllListeners(ev);
9272
+ me2._parser["on" + ev] = h2;
9271
9273
  return h2;
9272
9274
  }
9273
- me.on(ev, h2);
9275
+ me2.on(ev, h2);
9274
9276
  },
9275
9277
  enumerable: true,
9276
9278
  configurable: false
@@ -9302,15 +9304,15 @@ function requireSax() {
9302
9304
  return true;
9303
9305
  };
9304
9306
  SAXStream.prototype.on = function(ev, handler2) {
9305
- var me = this;
9306
- if (!me._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
9307
- me._parser["on" + ev] = function() {
9307
+ var me2 = this;
9308
+ if (!me2._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
9309
+ me2._parser["on" + ev] = function() {
9308
9310
  var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
9309
9311
  args.splice(0, 0, ev);
9310
- me.emit.apply(me, args);
9312
+ me2.emit.apply(me2, args);
9311
9313
  };
9312
9314
  }
9313
- return Stream.prototype.on.call(me, ev, handler2);
9315
+ return Stream.prototype.on.call(me2, ev, handler2);
9314
9316
  };
9315
9317
  var CDATA = "[CDATA[";
9316
9318
  var DOCTYPE = "DOCTYPE";
@@ -9902,9 +9904,9 @@ function requireSax() {
9902
9904
  var tag = parser.tag = parser.tags.pop();
9903
9905
  parser.tagName = parser.tag.name;
9904
9906
  emitNode(parser, "onclosetag", parser.tagName);
9905
- var x = {};
9907
+ var x2 = {};
9906
9908
  for (var i in tag.ns) {
9907
- x[i] = tag.ns[i];
9909
+ x2[i] = tag.ns[i];
9908
9910
  }
9909
9911
  var parent = parser.tags[parser.tags.length - 1] || parser;
9910
9912
  if (parser.opt.xmlns && tag.ns !== parent.ns) {
@@ -11384,8 +11386,8 @@ function v4(options, buf, offset2) {
11384
11386
  rnds[8] = rnds[8] & 63 | 128;
11385
11387
  return unsafeStringify(rnds);
11386
11388
  }
11387
- function getDefaultExportFromCjs(x) {
11388
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
11389
+ function getDefaultExportFromCjs(x2) {
11390
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
11389
11391
  }
11390
11392
  const CRC_TABLE = new Int32Array([
11391
11393
  0,
@@ -15211,8 +15213,8 @@ function polygonToObj(polygonNode) {
15211
15213
  const points = [];
15212
15214
  polygonNode.elements.forEach((element) => {
15213
15215
  if (["wp:start", "wp:lineTo"].includes(element.name)) {
15214
- const { x, y: y2 } = element.attributes;
15215
- points.push([polygonUnitsToPixels(x), polygonUnitsToPixels(y2)]);
15216
+ const { x: x2, y: y2 } = element.attributes;
15217
+ points.push([polygonUnitsToPixels(x2), polygonUnitsToPixels(y2)]);
15216
15218
  }
15217
15219
  });
15218
15220
  if (points.length > 1) {
@@ -15235,13 +15237,13 @@ function objToPolygon(points) {
15235
15237
  elements: []
15236
15238
  };
15237
15239
  points.forEach((point, index2) => {
15238
- const [x, y2] = point;
15240
+ const [x2, y2] = point;
15239
15241
  const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
15240
15242
  const pointNode = {
15241
15243
  name: tagName,
15242
15244
  type: tagName,
15243
15245
  attributes: {
15244
- x: pixelsToPolygonUnits(x),
15246
+ x: pixelsToPolygonUnits(x2),
15245
15247
  y: pixelsToPolygonUnits(y2)
15246
15248
  }
15247
15249
  };
@@ -25013,18 +25015,18 @@ const handleShapeGroup = (params2, node, graphicData, size2, padding, marginOffs
25013
25015
  const rawY = shapeOff?.attributes?.["y"] ? parseFloat(shapeOff.attributes["y"]) : 0;
25014
25016
  const rawWidth = shapeExt?.attributes?.["cx"] ? parseFloat(shapeExt.attributes["cx"]) : 914400;
25015
25017
  const rawHeight = shapeExt?.attributes?.["cy"] ? parseFloat(shapeExt.attributes["cy"]) : 914400;
25016
- let x, y2, width, height;
25018
+ let x2, y2, width, height;
25017
25019
  if (groupTransform.childWidth && groupTransform.childHeight) {
25018
25020
  const scaleX = groupTransform.width / groupTransform.childWidth;
25019
25021
  const scaleY = groupTransform.height / groupTransform.childHeight;
25020
25022
  const childOriginX = groupTransform.childOriginXEmu || 0;
25021
25023
  const childOriginY = groupTransform.childOriginYEmu || 0;
25022
- x = groupTransform.x + emuToPixels((rawX - childOriginX) * scaleX);
25024
+ x2 = groupTransform.x + emuToPixels((rawX - childOriginX) * scaleX);
25023
25025
  y2 = groupTransform.y + emuToPixels((rawY - childOriginY) * scaleY);
25024
25026
  width = emuToPixels(rawWidth * scaleX);
25025
25027
  height = emuToPixels(rawHeight * scaleY);
25026
25028
  } else {
25027
- x = emuToPixels(rawX);
25029
+ x2 = emuToPixels(rawX);
25028
25030
  y2 = emuToPixels(rawY);
25029
25031
  width = emuToPixels(rawWidth);
25030
25032
  height = emuToPixels(rawHeight);
@@ -25043,7 +25045,7 @@ const handleShapeGroup = (params2, node, graphicData, size2, padding, marginOffs
25043
25045
  shapeType: "vectorShape",
25044
25046
  attrs: {
25045
25047
  kind: shapeKind,
25046
- x,
25048
+ x: x2,
25047
25049
  y: y2,
25048
25050
  width,
25049
25051
  height,
@@ -25666,7 +25668,7 @@ function posToDOMRect(view, from2, to) {
25666
25668
  const right2 = Math.max(start2.right, end2.right);
25667
25669
  const width = right2 - left2;
25668
25670
  const height = bottom2 - top2;
25669
- const x = left2;
25671
+ const x2 = left2;
25670
25672
  const y2 = top2;
25671
25673
  const data = {
25672
25674
  top: top2,
@@ -25675,7 +25677,7 @@ function posToDOMRect(view, from2, to) {
25675
25677
  right: right2,
25676
25678
  width,
25677
25679
  height,
25678
- x,
25680
+ x: x2,
25679
25681
  y: y2
25680
25682
  };
25681
25683
  return {
@@ -28815,25 +28817,31 @@ function createDocFromHTML(content, editor, options = {}) {
28815
28817
  function L() {
28816
28818
  return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
28817
28819
  }
28818
- var O = L();
28820
+ var T = L();
28819
28821
  function G(l3) {
28820
- O = l3;
28822
+ T = l3;
28821
28823
  }
28822
28824
  var E = { exec: () => null };
28823
- function h(l3, e = "") {
28825
+ function d$1(l3, e = "") {
28824
28826
  let t = typeof l3 == "string" ? l3 : l3.source, n = { replace: (r2, i) => {
28825
28827
  let s2 = typeof i == "string" ? i : i.source;
28826
28828
  return s2 = s2.replace(m.caret, "$1"), t = t.replace(r2, s2), n;
28827
28829
  }, getRegex: () => new RegExp(t, e) };
28828
28830
  return n;
28829
28831
  }
28830
- var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (l3) => new RegExp(`^( {0,3}${l3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}#`), htmlBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, xe = /^(?:[ \t]*(?:\n|$))+/, be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Re = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, j = /(?:[*+-]|\d{1,9}[.)])/, se = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ie$2 = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Te = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), F = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, we = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ye = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pe = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, j).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Se = h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), oe = h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), $e = h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", oe).getRegex(), K$1 = { blockquote: $e, code: be, def: ye, fences: Re, heading: Oe, hr: C, html: Se, lheading: ie$2, list: Pe, newline: xe, paragraph: oe, table: E, text: we }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), _e = { ...K$1, lheading: Te, table: re, paragraph: h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, Le = { ...K$1, html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: E, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(F).replace("hr", C).replace("heading", ` *#{1,6} *[^
28831
- ]`).replace("lheading", ie$2).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Me = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ze = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ae = /^( {2,}|\\)\n(?!\s*$)/, Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, le = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), ue = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Ie = /(?:[^\s\p{P}\p{S}]|~)/u, Be = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, qe = h(pe, "u").replace(/punct/g, D).getRegex(), ve = h(pe, "u").replace(/punct/g, ue).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", De = h(ce, "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), He = h(ce, "gu").replace(/notPunctSpace/g, Ie).replace(/punctSpace/g, Ce).replace(/punct/g, ue).getRegex(), Ze = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Ne = h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Fe = h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Qe = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), he$3 = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), de = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ue = h("reflink|nolink(?!\\()", "g").replace("reflink", he$3).replace("nolink", de).getRegex(), X = { _backpedal: E, anyPunctuation: Ge, autolink: Ne, blockSkip: Be, br: ae, code: ze, del: E, emStrongLDelim: qe, emStrongRDelimAst: De, emStrongRDelimUnd: Ze, escape: Me, link: Qe, nolink: de, punctuation: Ee, reflink: he$3, reflinkSearch: Ue, tag: Fe, text: Ae, url: E }, Ke = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: He, emStrongLDelim: ve, url: h(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, We = { ...N, br: h(ae).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, I = { normal: K$1, gfm: _e, pedantic: Le }, M$1 = { normal: X, gfm: N, breaks: We, pedantic: Ke };
28832
- var Xe = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ke = (l3) => Xe[l3];
28832
+ var be = (() => {
28833
+ try {
28834
+ return !!new RegExp("(?<=1)(?<!1)");
28835
+ } catch {
28836
+ return false;
28837
+ }
28838
+ })(), m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (l3) => new RegExp(`^( {0,3}${l3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}#`), htmlBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, Re = /^(?:[ \t]*(?:\n|$))+/, Te = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Oe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, we = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\d{1,9}[.)])/, ie$2 = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, oe = d$1(ie$2).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ye = d$1(ie$2).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Pe = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Se = d$1(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), $e = d$1(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, F).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, _e = d$1("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ae = d$1(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Le = d$1(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(), K$1 = { blockquote: Le, code: Te, def: Se, fences: Oe, heading: we, hr: I, html: _e, lheading: oe, list: $e, newline: Re, paragraph: ae, table: E, text: Pe }, re = d$1("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Me = { ...K$1, lheading: ye, table: re, paragraph: d$1(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, ze = { ...K$1, html: d$1(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: E, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: d$1(j).replace("hr", I).replace("heading", ` *#{1,6} *[^
28839
+ ]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ee = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, le = /^( {2,}|\\)\n(?!\s*$)/, Ie = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u, Ce = d$1(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Be = /(?!~)[\s\p{P}\p{S}]/u, qe = /(?:[^\s\p{P}\p{S}]|~)/u, ve = d$1(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", be ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, De = d$1(ce, "u").replace(/punct/g, D).getRegex(), He = d$1(ce, "u").replace(/punct/g, pe).getRegex(), he$3 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ze = d$1(he$3, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = d$1(he$3, "gu").replace(/notPunctSpace/g, qe).replace(/punctSpace/g, Be).replace(/punct/g, pe).getRegex(), Ne = d$1("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Fe = d$1(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), je = d$1(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Qe = d$1(U).replace("(?:-->|$)", "-->").getRegex(), Ue = d$1("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Qe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ke = d$1(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = d$1(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), ke = d$1(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), We = d$1("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: E, anyPunctuation: Fe, autolink: je, blockSkip: ve, br: le, code: Ee, del: E, emStrongLDelim: De, emStrongRDelimAst: Ze, emStrongRDelimUnd: Ne, escape: Ae, link: Ke, nolink: ke, punctuation: Ce, reflink: de, reflinkSearch: We, tag: Ue, text: Ie, url: E }, Xe = { ...X, link: d$1(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: d$1(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: Ge, emStrongLDelim: He, url: d$1(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", se).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: d$1(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", se).getRegex() }, Je = { ...N, br: d$1(le).replace("{2,}", "*").getRegex(), text: d$1(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K$1, gfm: Me, pedantic: ze }, M$1 = { normal: X, gfm: N, breaks: Je, pedantic: Xe };
28840
+ var Ve = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ge = (l3) => Ve[l3];
28833
28841
  function w(l3, e) {
28834
28842
  if (e) {
28835
- if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ke);
28836
- } else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ke);
28843
+ if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ge);
28844
+ } else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ge);
28837
28845
  return l3;
28838
28846
  }
28839
28847
  function J(l3) {
@@ -28845,10 +28853,10 @@ function J(l3) {
28845
28853
  return l3;
28846
28854
  }
28847
28855
  function V(l3, e) {
28848
- let t = l3.replace(m.findPipe, (i, s2, o) => {
28849
- let a = false, u = s2;
28850
- for (; --u >= 0 && o[u] === "\\"; ) a = !a;
28851
- return a ? "|" : " |";
28856
+ let t = l3.replace(m.findPipe, (i, s2, a) => {
28857
+ let o = false, p = s2;
28858
+ for (; --p >= 0 && a[p] === "\\"; ) o = !o;
28859
+ return o ? "|" : " |";
28852
28860
  }), n = t.split(m.splitPipe), r2 = 0;
28853
28861
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
28854
28862
  else for (; n.length < e; ) n.push("");
@@ -28866,7 +28874,7 @@ function z(l3, e, t) {
28866
28874
  }
28867
28875
  return l3.slice(0, n - r2);
28868
28876
  }
28869
- function ge(l3, e) {
28877
+ function fe(l3, e) {
28870
28878
  if (l3.indexOf(e[1]) === -1) return -1;
28871
28879
  let t = 0;
28872
28880
  for (let n = 0; n < l3.length; n++) if (l3[n] === "\\") n++;
@@ -28874,13 +28882,13 @@ function ge(l3, e) {
28874
28882
  else if (l3[n] === e[1] && (t--, t < 0)) return n;
28875
28883
  return t > 0 ? -2 : -1;
28876
28884
  }
28877
- function fe(l3, e, t, n, r2) {
28878
- let i = e.href, s2 = e.title || null, o = l3[1].replace(r2.other.outputLinkReplace, "$1");
28885
+ function me(l3, e, t, n, r2) {
28886
+ let i = e.href, s2 = e.title || null, a = l3[1].replace(r2.other.outputLinkReplace, "$1");
28879
28887
  n.state.inLink = true;
28880
- let a = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s2, text: o, tokens: n.inlineTokens(o) };
28881
- return n.state.inLink = false, a;
28888
+ let o = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s2, text: a, tokens: n.inlineTokens(a) };
28889
+ return n.state.inLink = false, o;
28882
28890
  }
28883
- function Je(l3, e, t) {
28891
+ function Ye(l3, e, t) {
28884
28892
  let n = l3.match(t.other.indentCodeCompensation);
28885
28893
  if (n === null) return e;
28886
28894
  let r2 = n[1];
@@ -28888,8 +28896,8 @@ function Je(l3, e, t) {
28888
28896
  `).map((i) => {
28889
28897
  let s2 = i.match(t.other.beginningSpace);
28890
28898
  if (s2 === null) return i;
28891
- let [o] = s2;
28892
- return o.length >= r2.length ? i.slice(r2.length) : i;
28899
+ let [a] = s2;
28900
+ return a.length >= r2.length ? i.slice(r2.length) : i;
28893
28901
  }).join(`
28894
28902
  `);
28895
28903
  }
@@ -28898,7 +28906,7 @@ var y = class {
28898
28906
  __publicField$2(this, "options");
28899
28907
  __publicField$2(this, "rules");
28900
28908
  __publicField$2(this, "lexer");
28901
- this.options = e || O;
28909
+ this.options = e || T;
28902
28910
  }
28903
28911
  space(e) {
28904
28912
  let t = this.rules.block.newline.exec(e);
@@ -28915,7 +28923,7 @@ var y = class {
28915
28923
  fences(e) {
28916
28924
  let t = this.rules.block.fences.exec(e);
28917
28925
  if (t) {
28918
- let n = t[0], r2 = Je(n, t[3] || "", this.rules);
28926
+ let n = t[0], r2 = Ye(n, t[3] || "", this.rules);
28919
28927
  return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r2 };
28920
28928
  }
28921
28929
  }
@@ -28942,32 +28950,32 @@ var y = class {
28942
28950
  `).split(`
28943
28951
  `), r2 = "", i = "", s2 = [];
28944
28952
  for (; n.length > 0; ) {
28945
- let o = false, a = [], u;
28946
- for (u = 0; u < n.length; u++) if (this.rules.other.blockquoteStart.test(n[u])) a.push(n[u]), o = true;
28947
- else if (!o) a.push(n[u]);
28953
+ let a = false, o = [], p;
28954
+ for (p = 0; p < n.length; p++) if (this.rules.other.blockquoteStart.test(n[p])) o.push(n[p]), a = true;
28955
+ else if (!a) o.push(n[p]);
28948
28956
  else break;
28949
- n = n.slice(u);
28950
- let p = a.join(`
28951
- `), c2 = p.replace(this.rules.other.blockquoteSetextReplace, `
28957
+ n = n.slice(p);
28958
+ let u = o.join(`
28959
+ `), c2 = u.replace(this.rules.other.blockquoteSetextReplace, `
28952
28960
  $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
28953
28961
  r2 = r2 ? `${r2}
28954
- ${p}` : p, i = i ? `${i}
28962
+ ${u}` : u, i = i ? `${i}
28955
28963
  ${c2}` : c2;
28956
- let f2 = this.lexer.state.top;
28957
- if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top = f2, n.length === 0) break;
28958
- let k2 = s2.at(-1);
28959
- if (k2?.type === "code") break;
28960
- if (k2?.type === "blockquote") {
28961
- let x = k2, g = x.raw + `
28964
+ let g = this.lexer.state.top;
28965
+ if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top = g, n.length === 0) break;
28966
+ let h2 = s2.at(-1);
28967
+ if (h2?.type === "code") break;
28968
+ if (h2?.type === "blockquote") {
28969
+ let R = h2, f2 = R.raw + `
28962
28970
  ` + n.join(`
28963
- `), T = this.blockquote(g);
28964
- s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - x.raw.length) + T.raw, i = i.substring(0, i.length - x.text.length) + T.text;
28971
+ `), O = this.blockquote(f2);
28972
+ s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - R.raw.length) + O.raw, i = i.substring(0, i.length - R.text.length) + O.text;
28965
28973
  break;
28966
- } else if (k2?.type === "list") {
28967
- let x = k2, g = x.raw + `
28974
+ } else if (h2?.type === "list") {
28975
+ let R = h2, f2 = R.raw + `
28968
28976
  ` + n.join(`
28969
- `), T = this.list(g);
28970
- s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - k2.raw.length) + T.raw, i = i.substring(0, i.length - x.raw.length) + T.raw, n = g.substring(s2.at(-1).raw.length).split(`
28977
+ `), O = this.list(f2);
28978
+ s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - h2.raw.length) + O.raw, i = i.substring(0, i.length - R.raw.length) + O.raw, n = f2.substring(s2.at(-1).raw.length).split(`
28971
28979
  `);
28972
28980
  continue;
28973
28981
  }
@@ -28980,45 +28988,45 @@ ${c2}` : c2;
28980
28988
  if (t) {
28981
28989
  let n = t[1].trim(), r2 = n.length > 1, i = { type: "list", raw: "", ordered: r2, start: r2 ? +n.slice(0, -1) : "", loose: false, items: [] };
28982
28990
  n = r2 ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r2 ? n : "[*+-]");
28983
- let s2 = this.rules.other.listItemRegex(n), o = false;
28991
+ let s2 = this.rules.other.listItemRegex(n), a = false;
28984
28992
  for (; e; ) {
28985
- let u = false, p = "", c2 = "";
28993
+ let p = false, u = "", c2 = "";
28986
28994
  if (!(t = s2.exec(e)) || this.rules.block.hr.test(e)) break;
28987
- p = t[0], e = e.substring(p.length);
28988
- let f2 = t[2].split(`
28989
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), k2 = e.split(`
28990
- `, 1)[0], x = !f2.trim(), g = 0;
28991
- if (this.options.pedantic ? (g = 2, c2 = f2.trimStart()) : x ? g = t[1].length + 1 : (g = t[2].search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, c2 = f2.slice(g), g += t[1].length), x && this.rules.other.blankLine.test(k2) && (p += k2 + `
28992
- `, e = e.substring(k2.length + 1), u = true), !u) {
28993
- let H = this.rules.other.nextBulletRegex(g), ee = this.rules.other.hrRegex(g), te = this.rules.other.fencesBeginRegex(g), ne = this.rules.other.headingBeginRegex(g), me = this.rules.other.htmlBeginRegex(g);
28995
+ u = t[0], e = e.substring(u.length);
28996
+ let g = t[2].split(`
28997
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), h2 = e.split(`
28998
+ `, 1)[0], R = !g.trim(), f2 = 0;
28999
+ if (this.options.pedantic ? (f2 = 2, c2 = g.trimStart()) : R ? f2 = t[1].length + 1 : (f2 = t[2].search(this.rules.other.nonSpaceChar), f2 = f2 > 4 ? 1 : f2, c2 = g.slice(f2), f2 += t[1].length), R && this.rules.other.blankLine.test(h2) && (u += h2 + `
29000
+ `, e = e.substring(h2.length + 1), p = true), !p) {
29001
+ let H = this.rules.other.nextBulletRegex(f2), ee = this.rules.other.hrRegex(f2), te = this.rules.other.fencesBeginRegex(f2), ne = this.rules.other.headingBeginRegex(f2), xe = this.rules.other.htmlBeginRegex(f2);
28994
29002
  for (; e; ) {
28995
29003
  let Z = e.split(`
28996
29004
  `, 1)[0], A2;
28997
- if (k2 = Z, this.options.pedantic ? (k2 = k2.replace(this.rules.other.listReplaceNesting, " "), A2 = k2) : A2 = k2.replace(this.rules.other.tabCharGlobal, " "), te.test(k2) || ne.test(k2) || me.test(k2) || H.test(k2) || ee.test(k2)) break;
28998
- if (A2.search(this.rules.other.nonSpaceChar) >= g || !k2.trim()) c2 += `
28999
- ` + A2.slice(g);
29005
+ if (h2 = Z, this.options.pedantic ? (h2 = h2.replace(this.rules.other.listReplaceNesting, " "), A2 = h2) : A2 = h2.replace(this.rules.other.tabCharGlobal, " "), te.test(h2) || ne.test(h2) || xe.test(h2) || H.test(h2) || ee.test(h2)) break;
29006
+ if (A2.search(this.rules.other.nonSpaceChar) >= f2 || !h2.trim()) c2 += `
29007
+ ` + A2.slice(f2);
29000
29008
  else {
29001
- if (x || f2.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(f2) || ne.test(f2) || ee.test(f2)) break;
29009
+ if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(g) || ne.test(g) || ee.test(g)) break;
29002
29010
  c2 += `
29003
- ` + k2;
29011
+ ` + h2;
29004
29012
  }
29005
- !x && !k2.trim() && (x = true), p += Z + `
29006
- `, e = e.substring(Z.length + 1), f2 = A2.slice(g);
29013
+ !R && !h2.trim() && (R = true), u += Z + `
29014
+ `, e = e.substring(Z.length + 1), g = A2.slice(f2);
29007
29015
  }
29008
29016
  }
29009
- i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (o = true));
29010
- let T = null, Y2;
29011
- this.options.gfm && (T = this.rules.other.listIsTask.exec(c2), T && (Y2 = T[0] !== "[ ] ", c2 = c2.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: p, task: !!T, checked: Y2, loose: false, text: c2, tokens: [] }), i.raw += p;
29017
+ i.loose || (a ? i.loose = true : this.rules.other.doubleBlankLine.test(u) && (a = true));
29018
+ let O = null, Y2;
29019
+ this.options.gfm && (O = this.rules.other.listIsTask.exec(c2), O && (Y2 = O[0] !== "[ ] ", c2 = c2.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: u, task: !!O, checked: Y2, loose: false, text: c2, tokens: [] }), i.raw += u;
29012
29020
  }
29013
- let a = i.items.at(-1);
29014
- if (a) a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
29021
+ let o = i.items.at(-1);
29022
+ if (o) o.raw = o.raw.trimEnd(), o.text = o.text.trimEnd();
29015
29023
  else return;
29016
29024
  i.raw = i.raw.trimEnd();
29017
- for (let u = 0; u < i.items.length; u++) if (this.lexer.state.top = false, i.items[u].tokens = this.lexer.blockTokens(i.items[u].text, []), !i.loose) {
29018
- let p = i.items[u].tokens.filter((f2) => f2.type === "space"), c2 = p.length > 0 && p.some((f2) => this.rules.other.anyLine.test(f2.raw));
29025
+ for (let p = 0; p < i.items.length; p++) if (this.lexer.state.top = false, i.items[p].tokens = this.lexer.blockTokens(i.items[p].text, []), !i.loose) {
29026
+ let u = i.items[p].tokens.filter((g) => g.type === "space"), c2 = u.length > 0 && u.some((g) => this.rules.other.anyLine.test(g.raw));
29019
29027
  i.loose = c2;
29020
29028
  }
29021
- if (i.loose) for (let u = 0; u < i.items.length; u++) i.items[u].loose = true;
29029
+ if (i.loose) for (let p = 0; p < i.items.length; p++) i.items[p].loose = true;
29022
29030
  return i;
29023
29031
  }
29024
29032
  }
@@ -29039,9 +29047,9 @@ ${c2}` : c2;
29039
29047
  let n = V(t[1]), r2 = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
29040
29048
  `) : [], s2 = { type: "table", raw: t[0], header: [], align: [], rows: [] };
29041
29049
  if (n.length === r2.length) {
29042
- for (let o of r2) this.rules.other.tableAlignRight.test(o) ? s2.align.push("right") : this.rules.other.tableAlignCenter.test(o) ? s2.align.push("center") : this.rules.other.tableAlignLeft.test(o) ? s2.align.push("left") : s2.align.push(null);
29043
- for (let o = 0; o < n.length; o++) s2.header.push({ text: n[o], tokens: this.lexer.inline(n[o]), header: true, align: s2.align[o] });
29044
- for (let o of i) s2.rows.push(V(o, s2.header.length).map((a, u) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s2.align[u] })));
29050
+ for (let a of r2) this.rules.other.tableAlignRight.test(a) ? s2.align.push("right") : this.rules.other.tableAlignCenter.test(a) ? s2.align.push("center") : this.rules.other.tableAlignLeft.test(a) ? s2.align.push("left") : s2.align.push(null);
29051
+ for (let a = 0; a < n.length; a++) s2.header.push({ text: n[a], tokens: this.lexer.inline(n[a]), header: true, align: s2.align[a] });
29052
+ for (let a of i) s2.rows.push(V(a, s2.header.length).map((o, p) => ({ text: o, tokens: this.lexer.inline(o), header: false, align: s2.align[p] })));
29045
29053
  return s2;
29046
29054
  }
29047
29055
  }
@@ -29078,11 +29086,11 @@ ${c2}` : c2;
29078
29086
  let s2 = z(n.slice(0, -1), "\\");
29079
29087
  if ((n.length - s2.length) % 2 === 0) return;
29080
29088
  } else {
29081
- let s2 = ge(t[2], "()");
29089
+ let s2 = fe(t[2], "()");
29082
29090
  if (s2 === -2) return;
29083
29091
  if (s2 > -1) {
29084
- let a = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
29085
- t[2] = t[2].substring(0, s2), t[0] = t[0].substring(0, a).trim(), t[3] = "";
29092
+ let o = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
29093
+ t[2] = t[2].substring(0, s2), t[0] = t[0].substring(0, o).trim(), t[3] = "";
29086
29094
  }
29087
29095
  }
29088
29096
  let r2 = t[2], i = "";
@@ -29090,7 +29098,7 @@ ${c2}` : c2;
29090
29098
  let s2 = this.rules.other.pedanticHrefTitle.exec(r2);
29091
29099
  s2 && (r2 = s2[1], i = s2[3]);
29092
29100
  } else i = t[3] ? t[3].slice(1, -1) : "";
29093
- return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), fe(t, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
29101
+ return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), me(t, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
29094
29102
  }
29095
29103
  }
29096
29104
  reflink(e, t) {
@@ -29101,32 +29109,32 @@ ${c2}` : c2;
29101
29109
  let s2 = n[0].charAt(0);
29102
29110
  return { type: "text", raw: s2, text: s2 };
29103
29111
  }
29104
- return fe(n, i, n[0], this.lexer, this.rules);
29112
+ return me(n, i, n[0], this.lexer, this.rules);
29105
29113
  }
29106
29114
  }
29107
29115
  emStrong(e, t, n = "") {
29108
29116
  let r2 = this.rules.inline.emStrongLDelim.exec(e);
29109
29117
  if (!r2 || r2[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
29110
29118
  if (!(r2[1] || r2[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
29111
- let s2 = [...r2[0]].length - 1, o, a, u = s2, p = 0, c2 = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
29119
+ let s2 = [...r2[0]].length - 1, a, o, p = s2, u = 0, c2 = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
29112
29120
  for (c2.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = c2.exec(t)) != null; ) {
29113
- if (o = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !o) continue;
29114
- if (a = [...o].length, r2[3] || r2[4]) {
29115
- u += a;
29121
+ if (a = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !a) continue;
29122
+ if (o = [...a].length, r2[3] || r2[4]) {
29123
+ p += o;
29116
29124
  continue;
29117
- } else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + a) % 3)) {
29118
- p += a;
29125
+ } else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + o) % 3)) {
29126
+ u += o;
29119
29127
  continue;
29120
29128
  }
29121
- if (u -= a, u > 0) continue;
29122
- a = Math.min(a, a + u + p);
29123
- let f2 = [...r2[0]][0].length, k2 = e.slice(0, s2 + r2.index + f2 + a);
29124
- if (Math.min(s2, a) % 2) {
29125
- let g = k2.slice(1, -1);
29126
- return { type: "em", raw: k2, text: g, tokens: this.lexer.inlineTokens(g) };
29129
+ if (p -= o, p > 0) continue;
29130
+ o = Math.min(o, o + p + u);
29131
+ let g = [...r2[0]][0].length, h2 = e.slice(0, s2 + r2.index + g + o);
29132
+ if (Math.min(s2, o) % 2) {
29133
+ let f2 = h2.slice(1, -1);
29134
+ return { type: "em", raw: h2, text: f2, tokens: this.lexer.inlineTokens(f2) };
29127
29135
  }
29128
- let x = k2.slice(2, -2);
29129
- return { type: "strong", raw: k2, text: x, tokens: this.lexer.inlineTokens(x) };
29136
+ let R = h2.slice(2, -2);
29137
+ return { type: "strong", raw: h2, text: R, tokens: this.lexer.inlineTokens(R) };
29130
29138
  }
29131
29139
  }
29132
29140
  }
@@ -29175,19 +29183,19 @@ ${c2}` : c2;
29175
29183
  }
29176
29184
  }
29177
29185
  };
29178
- var b = class l {
29186
+ var x = class l {
29179
29187
  constructor(e) {
29180
29188
  __publicField$2(this, "tokens");
29181
29189
  __publicField$2(this, "options");
29182
29190
  __publicField$2(this, "state");
29183
29191
  __publicField$2(this, "tokenizer");
29184
29192
  __publicField$2(this, "inlineQueue");
29185
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || O, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
29186
- let t = { other: m, block: I.normal, inline: M$1.normal };
29187
- this.options.pedantic ? (t.block = I.pedantic, t.inline = M$1.pedantic) : this.options.gfm && (t.block = I.gfm, this.options.breaks ? t.inline = M$1.breaks : t.inline = M$1.gfm), this.tokenizer.rules = t;
29193
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
29194
+ let t = { other: m, block: C.normal, inline: M$1.normal };
29195
+ this.options.pedantic ? (t.block = C.pedantic, t.inline = M$1.pedantic) : this.options.gfm && (t.block = C.gfm, this.options.breaks ? t.inline = M$1.breaks : t.inline = M$1.gfm), this.tokenizer.rules = t;
29188
29196
  }
29189
29197
  static get rules() {
29190
- return { block: I, inline: M$1 };
29198
+ return { block: C, inline: M$1 };
29191
29199
  }
29192
29200
  static lex(e, t) {
29193
29201
  return new l(t).lex(e);
@@ -29267,9 +29275,9 @@ var b = class l {
29267
29275
  }
29268
29276
  let i = e;
29269
29277
  if (this.options.extensions?.startBlock) {
29270
- let s2 = 1 / 0, o = e.slice(1), a;
29271
- this.options.extensions.startBlock.forEach((u) => {
29272
- a = u.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s2 = Math.min(s2, a));
29278
+ let s2 = 1 / 0, a = e.slice(1), o;
29279
+ this.options.extensions.startBlock.forEach((p) => {
29280
+ o = p.call({ lexer: this }, a), typeof o == "number" && o >= 0 && (s2 = Math.min(s2, o));
29273
29281
  }), s2 < 1 / 0 && s2 >= 0 && (i = e.substring(0, s2 + 1));
29274
29282
  }
29275
29283
  if (this.state.top && (r2 = this.tokenizer.paragraph(i))) {
@@ -29309,11 +29317,12 @@ var b = class l {
29309
29317
  if (o.length > 0) for (; (r2 = this.tokenizer.rules.inline.reflinkSearch.exec(n)) != null; ) o.includes(r2[0].slice(r2[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r2.index) + "[" + "a".repeat(r2[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
29310
29318
  }
29311
29319
  for (; (r2 = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null; ) n = n.slice(0, r2.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
29312
- for (; (r2 = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) n = n.slice(0, r2.index) + "[" + "a".repeat(r2[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
29320
+ let i;
29321
+ for (; (r2 = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) i = r2[2] ? r2[2].length : 0, n = n.slice(0, r2.index + i) + "[" + "a".repeat(r2[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
29313
29322
  n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
29314
- let i = false, s2 = "";
29323
+ let s2 = false, a = "";
29315
29324
  for (; e; ) {
29316
- i || (s2 = ""), i = false;
29325
+ s2 || (a = ""), s2 = false;
29317
29326
  let o;
29318
29327
  if (this.options.extensions?.inline?.some((u) => (o = u.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
29319
29328
  if (o = this.tokenizer.escape(e)) {
@@ -29334,7 +29343,7 @@ var b = class l {
29334
29343
  o.type === "text" && u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
29335
29344
  continue;
29336
29345
  }
29337
- if (o = this.tokenizer.emStrong(e, n, s2)) {
29346
+ if (o = this.tokenizer.emStrong(e, n, a)) {
29338
29347
  e = e.substring(o.raw.length), t.push(o);
29339
29348
  continue;
29340
29349
  }
@@ -29358,15 +29367,15 @@ var b = class l {
29358
29367
  e = e.substring(o.raw.length), t.push(o);
29359
29368
  continue;
29360
29369
  }
29361
- let a = e;
29370
+ let p = e;
29362
29371
  if (this.options.extensions?.startInline) {
29363
- let u = 1 / 0, p = e.slice(1), c2;
29364
- this.options.extensions.startInline.forEach((f2) => {
29365
- c2 = f2.call({ lexer: this }, p), typeof c2 == "number" && c2 >= 0 && (u = Math.min(u, c2));
29366
- }), u < 1 / 0 && u >= 0 && (a = e.substring(0, u + 1));
29372
+ let u = 1 / 0, c2 = e.slice(1), g;
29373
+ this.options.extensions.startInline.forEach((h2) => {
29374
+ g = h2.call({ lexer: this }, c2), typeof g == "number" && g >= 0 && (u = Math.min(u, g));
29375
+ }), u < 1 / 0 && u >= 0 && (p = e.substring(0, u + 1));
29367
29376
  }
29368
- if (o = this.tokenizer.inlineText(a)) {
29369
- e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s2 = o.raw.slice(-1)), i = true;
29377
+ if (o = this.tokenizer.inlineText(p)) {
29378
+ e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (a = o.raw.slice(-1)), s2 = true;
29370
29379
  let u = t.at(-1);
29371
29380
  u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
29372
29381
  continue;
@@ -29386,7 +29395,7 @@ var P = class {
29386
29395
  constructor(e) {
29387
29396
  __publicField$2(this, "options");
29388
29397
  __publicField$2(this, "parser");
29389
- this.options = e || O;
29398
+ this.options = e || T;
29390
29399
  }
29391
29400
  space(e) {
29392
29401
  return "";
@@ -29419,9 +29428,9 @@ ${this.parser.parse(e)}</blockquote>
29419
29428
  }
29420
29429
  list(e) {
29421
29430
  let t = e.ordered, n = e.start, r2 = "";
29422
- for (let o = 0; o < e.items.length; o++) {
29423
- let a = e.items[o];
29424
- r2 += this.listitem(a);
29431
+ for (let a = 0; a < e.items.length; a++) {
29432
+ let o = e.items[a];
29433
+ r2 += this.listitem(o);
29425
29434
  }
29426
29435
  let i = t ? "ol" : "ul", s2 = t && n !== 1 ? ' start="' + n + '"' : "";
29427
29436
  return "<" + i + s2 + `>
@@ -29452,7 +29461,7 @@ ${this.parser.parse(e)}</blockquote>
29452
29461
  for (let i = 0; i < e.rows.length; i++) {
29453
29462
  let s2 = e.rows[i];
29454
29463
  n = "";
29455
- for (let o = 0; o < s2.length; o++) n += this.tablecell(s2[o]);
29464
+ for (let a = 0; a < s2.length; a++) n += this.tablecell(s2[a]);
29456
29465
  r2 += this.tablerow({ text: n });
29457
29466
  }
29458
29467
  return r2 && (r2 = `<tbody>${r2}</tbody>`), `<table>
@@ -29534,12 +29543,12 @@ var $ = class {
29534
29543
  return "";
29535
29544
  }
29536
29545
  };
29537
- var R = class l2 {
29546
+ var b = class l2 {
29538
29547
  constructor(e) {
29539
29548
  __publicField$2(this, "options");
29540
29549
  __publicField$2(this, "renderer");
29541
29550
  __publicField$2(this, "textRenderer");
29542
- this.options = e || O, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
29551
+ this.options = e || T, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
29543
29552
  }
29544
29553
  static parse(e, t) {
29545
29554
  return new l2(t).parse(e);
@@ -29552,9 +29561,9 @@ var R = class l2 {
29552
29561
  for (let r2 = 0; r2 < e.length; r2++) {
29553
29562
  let i = e[r2];
29554
29563
  if (this.options.extensions?.renderers?.[i.type]) {
29555
- let o = i, a = this.options.extensions.renderers[o.type].call({ parser: this }, o);
29556
- if (a !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(o.type)) {
29557
- n += a || "";
29564
+ let a = i, o = this.options.extensions.renderers[a.type].call({ parser: this }, a);
29565
+ if (o !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(a.type)) {
29566
+ n += o || "";
29558
29567
  continue;
29559
29568
  }
29560
29569
  }
@@ -29601,16 +29610,16 @@ var R = class l2 {
29601
29610
  continue;
29602
29611
  }
29603
29612
  case "text": {
29604
- let o = s2, a = this.renderer.text(o);
29605
- for (; r2 + 1 < e.length && e[r2 + 1].type === "text"; ) o = e[++r2], a += `
29606
- ` + this.renderer.text(o);
29607
- t ? n += this.renderer.paragraph({ type: "paragraph", raw: a, text: a, tokens: [{ type: "text", raw: a, text: a, escaped: true }] }) : n += a;
29613
+ let a = s2, o = this.renderer.text(a);
29614
+ for (; r2 + 1 < e.length && e[r2 + 1].type === "text"; ) a = e[++r2], o += `
29615
+ ` + this.renderer.text(a);
29616
+ t ? n += this.renderer.paragraph({ type: "paragraph", raw: o, text: o, tokens: [{ type: "text", raw: o, text: o, escaped: true }] }) : n += o;
29608
29617
  continue;
29609
29618
  }
29610
29619
  default: {
29611
- let o = 'Token with "' + s2.type + '" type was not found.';
29612
- if (this.options.silent) return console.error(o), "";
29613
- throw new Error(o);
29620
+ let a = 'Token with "' + s2.type + '" type was not found.';
29621
+ if (this.options.silent) return console.error(a), "";
29622
+ throw new Error(a);
29614
29623
  }
29615
29624
  }
29616
29625
  }
@@ -29621,9 +29630,9 @@ var R = class l2 {
29621
29630
  for (let r2 = 0; r2 < e.length; r2++) {
29622
29631
  let i = e[r2];
29623
29632
  if (this.options.extensions?.renderers?.[i.type]) {
29624
- let o = this.options.extensions.renderers[i.type].call({ parser: this }, i);
29625
- if (o !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
29626
- n += o || "";
29633
+ let a = this.options.extensions.renderers[i.type].call({ parser: this }, i);
29634
+ if (a !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
29635
+ n += a || "";
29627
29636
  continue;
29628
29637
  }
29629
29638
  }
@@ -29670,9 +29679,9 @@ var R = class l2 {
29670
29679
  break;
29671
29680
  }
29672
29681
  default: {
29673
- let o = 'Token with "' + s2.type + '" type was not found.';
29674
- if (this.options.silent) return console.error(o), "";
29675
- throw new Error(o);
29682
+ let a = 'Token with "' + s2.type + '" type was not found.';
29683
+ if (this.options.silent) return console.error(a), "";
29684
+ throw new Error(a);
29676
29685
  }
29677
29686
  }
29678
29687
  }
@@ -29683,7 +29692,7 @@ var S = (_a = class {
29683
29692
  constructor(e) {
29684
29693
  __publicField$2(this, "options");
29685
29694
  __publicField$2(this, "block");
29686
- this.options = e || O;
29695
+ this.options = e || T;
29687
29696
  }
29688
29697
  preprocess(e) {
29689
29698
  return e;
@@ -29698,10 +29707,10 @@ var S = (_a = class {
29698
29707
  return e;
29699
29708
  }
29700
29709
  provideLexer() {
29701
- return this.block ? b.lex : b.lexInline;
29710
+ return this.block ? x.lex : x.lexInline;
29702
29711
  }
29703
29712
  provideParser() {
29704
- return this.block ? R.parse : R.parseInline;
29713
+ return this.block ? b.parse : b.parseInline;
29705
29714
  }
29706
29715
  }, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField$2(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
29707
29716
  var B = class {
@@ -29710,10 +29719,10 @@ var B = class {
29710
29719
  __publicField$2(this, "options", this.setOptions);
29711
29720
  __publicField$2(this, "parse", this.parseMarkdown(true));
29712
29721
  __publicField$2(this, "parseInline", this.parseMarkdown(false));
29713
- __publicField$2(this, "Parser", R);
29722
+ __publicField$2(this, "Parser", b);
29714
29723
  __publicField$2(this, "Renderer", P);
29715
29724
  __publicField$2(this, "TextRenderer", $);
29716
- __publicField$2(this, "Lexer", b);
29725
+ __publicField$2(this, "Lexer", x);
29717
29726
  __publicField$2(this, "Tokenizer", y);
29718
29727
  __publicField$2(this, "Hooks", S);
29719
29728
  this.use(...e);
@@ -29724,7 +29733,7 @@ var B = class {
29724
29733
  case "table": {
29725
29734
  let i = r2;
29726
29735
  for (let s2 of i.header) n = n.concat(this.walkTokens(s2.tokens, t));
29727
- for (let s2 of i.rows) for (let o of s2) n = n.concat(this.walkTokens(o.tokens, t));
29736
+ for (let s2 of i.rows) for (let a of s2) n = n.concat(this.walkTokens(a.tokens, t));
29728
29737
  break;
29729
29738
  }
29730
29739
  case "list": {
@@ -29735,8 +29744,8 @@ var B = class {
29735
29744
  default: {
29736
29745
  let i = r2;
29737
29746
  this.defaults.extensions?.childTokens?.[i.type] ? this.defaults.extensions.childTokens[i.type].forEach((s2) => {
29738
- let o = i[s2].flat(1 / 0);
29739
- n = n.concat(this.walkTokens(o, t));
29747
+ let a = i[s2].flat(1 / 0);
29748
+ n = n.concat(this.walkTokens(a, t));
29740
29749
  }) : i.tokens && (n = n.concat(this.walkTokens(i.tokens, t)));
29741
29750
  }
29742
29751
  }
@@ -29750,9 +29759,9 @@ var B = class {
29750
29759
  if (!i.name) throw new Error("extension name required");
29751
29760
  if ("renderer" in i) {
29752
29761
  let s2 = t.renderers[i.name];
29753
- s2 ? t.renderers[i.name] = function(...o) {
29754
- let a = i.renderer.apply(this, o);
29755
- return a === false && (a = s2.apply(this, o)), a;
29762
+ s2 ? t.renderers[i.name] = function(...a) {
29763
+ let o = i.renderer.apply(this, a);
29764
+ return o === false && (o = s2.apply(this, a)), o;
29756
29765
  } : t.renderers[i.name] = i.renderer;
29757
29766
  }
29758
29767
  if ("tokenizer" in i) {
@@ -29766,10 +29775,10 @@ var B = class {
29766
29775
  for (let s2 in n.renderer) {
29767
29776
  if (!(s2 in i)) throw new Error(`renderer '${s2}' does not exist`);
29768
29777
  if (["options", "parser"].includes(s2)) continue;
29769
- let o = s2, a = n.renderer[o], u = i[o];
29770
- i[o] = (...p) => {
29771
- let c2 = a.apply(i, p);
29772
- return c2 === false && (c2 = u.apply(i, p)), c2 || "";
29778
+ let a = s2, o = n.renderer[a], p = i[a];
29779
+ i[a] = (...u) => {
29780
+ let c2 = o.apply(i, u);
29781
+ return c2 === false && (c2 = p.apply(i, u)), c2 || "";
29773
29782
  };
29774
29783
  }
29775
29784
  r2.renderer = i;
@@ -29779,10 +29788,10 @@ var B = class {
29779
29788
  for (let s2 in n.tokenizer) {
29780
29789
  if (!(s2 in i)) throw new Error(`tokenizer '${s2}' does not exist`);
29781
29790
  if (["options", "rules", "lexer"].includes(s2)) continue;
29782
- let o = s2, a = n.tokenizer[o], u = i[o];
29783
- i[o] = (...p) => {
29784
- let c2 = a.apply(i, p);
29785
- return c2 === false && (c2 = u.apply(i, p)), c2;
29791
+ let a = s2, o = n.tokenizer[a], p = i[a];
29792
+ i[a] = (...u) => {
29793
+ let c2 = o.apply(i, u);
29794
+ return c2 === false && (c2 = p.apply(i, u)), c2;
29786
29795
  };
29787
29796
  }
29788
29797
  r2.tokenizer = i;
@@ -29792,23 +29801,30 @@ var B = class {
29792
29801
  for (let s2 in n.hooks) {
29793
29802
  if (!(s2 in i)) throw new Error(`hook '${s2}' does not exist`);
29794
29803
  if (["options", "block"].includes(s2)) continue;
29795
- let o = s2, a = n.hooks[o], u = i[o];
29796
- S.passThroughHooks.has(s2) ? i[o] = (p) => {
29797
- if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return Promise.resolve(a.call(i, p)).then((f2) => u.call(i, f2));
29798
- let c2 = a.call(i, p);
29799
- return u.call(i, c2);
29800
- } : i[o] = (...p) => {
29801
- let c2 = a.apply(i, p);
29802
- return c2 === false && (c2 = u.apply(i, p)), c2;
29804
+ let a = s2, o = n.hooks[a], p = i[a];
29805
+ S.passThroughHooks.has(s2) ? i[a] = (u) => {
29806
+ if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return (async () => {
29807
+ let g = await o.call(i, u);
29808
+ return p.call(i, g);
29809
+ })();
29810
+ let c2 = o.call(i, u);
29811
+ return p.call(i, c2);
29812
+ } : i[a] = (...u) => {
29813
+ if (this.defaults.async) return (async () => {
29814
+ let g = await o.apply(i, u);
29815
+ return g === false && (g = await p.apply(i, u)), g;
29816
+ })();
29817
+ let c2 = o.apply(i, u);
29818
+ return c2 === false && (c2 = p.apply(i, u)), c2;
29803
29819
  };
29804
29820
  }
29805
29821
  r2.hooks = i;
29806
29822
  }
29807
29823
  if (n.walkTokens) {
29808
29824
  let i = this.defaults.walkTokens, s2 = n.walkTokens;
29809
- r2.walkTokens = function(o) {
29810
- let a = [];
29811
- return a.push(s2.call(this, o)), i && (a = a.concat(i.call(this, o))), a;
29825
+ r2.walkTokens = function(a) {
29826
+ let o = [];
29827
+ return o.push(s2.call(this, a)), i && (o = o.concat(i.call(this, a))), o;
29812
29828
  };
29813
29829
  }
29814
29830
  this.defaults = { ...this.defaults, ...r2 };
@@ -29818,28 +29834,31 @@ var B = class {
29818
29834
  return this.defaults = { ...this.defaults, ...e }, this;
29819
29835
  }
29820
29836
  lexer(e, t) {
29821
- return b.lex(e, t ?? this.defaults);
29837
+ return x.lex(e, t ?? this.defaults);
29822
29838
  }
29823
29839
  parser(e, t) {
29824
- return R.parse(e, t ?? this.defaults);
29840
+ return b.parse(e, t ?? this.defaults);
29825
29841
  }
29826
29842
  parseMarkdown(e) {
29827
29843
  return (n, r2) => {
29828
- let i = { ...r2 }, s2 = { ...this.defaults, ...i }, o = this.onError(!!s2.silent, !!s2.async);
29829
- if (this.defaults.async === true && i.async === false) return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
29830
- if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
29831
- if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
29832
- s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e);
29833
- let a = s2.hooks ? s2.hooks.provideLexer() : e ? b.lex : b.lexInline, u = s2.hooks ? s2.hooks.provideParser() : e ? R.parse : R.parseInline;
29834
- if (s2.async) return Promise.resolve(s2.hooks ? s2.hooks.preprocess(n) : n).then((p) => a(p, s2)).then((p) => s2.hooks ? s2.hooks.processAllTokens(p) : p).then((p) => s2.walkTokens ? Promise.all(this.walkTokens(p, s2.walkTokens)).then(() => p) : p).then((p) => u(p, s2)).then((p) => s2.hooks ? s2.hooks.postprocess(p) : p).catch(o);
29844
+ let i = { ...r2 }, s2 = { ...this.defaults, ...i }, a = this.onError(!!s2.silent, !!s2.async);
29845
+ if (this.defaults.async === true && i.async === false) return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
29846
+ if (typeof n > "u" || n === null) return a(new Error("marked(): input parameter is undefined or null"));
29847
+ if (typeof n != "string") return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
29848
+ if (s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e), s2.async) return (async () => {
29849
+ let o = s2.hooks ? await s2.hooks.preprocess(n) : n, u = await (s2.hooks ? await s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(o, s2), c2 = s2.hooks ? await s2.hooks.processAllTokens(u) : u;
29850
+ s2.walkTokens && await Promise.all(this.walkTokens(c2, s2.walkTokens));
29851
+ let h2 = await (s2.hooks ? await s2.hooks.provideParser() : e ? b.parse : b.parseInline)(c2, s2);
29852
+ return s2.hooks ? await s2.hooks.postprocess(h2) : h2;
29853
+ })().catch(a);
29835
29854
  try {
29836
29855
  s2.hooks && (n = s2.hooks.preprocess(n));
29837
- let p = a(n, s2);
29856
+ let p = (s2.hooks ? s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s2);
29838
29857
  s2.hooks && (p = s2.hooks.processAllTokens(p)), s2.walkTokens && this.walkTokens(p, s2.walkTokens);
29839
- let c2 = u(p, s2);
29858
+ let c2 = (s2.hooks ? s2.hooks.provideParser() : e ? b.parse : b.parseInline)(p, s2);
29840
29859
  return s2.hooks && (c2 = s2.hooks.postprocess(c2)), c2;
29841
- } catch (p) {
29842
- return o(p);
29860
+ } catch (o) {
29861
+ return a(o);
29843
29862
  }
29844
29863
  };
29845
29864
  }
@@ -29856,38 +29875,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
29856
29875
  }
29857
29876
  };
29858
29877
  var _ = new B();
29859
- function d$1(l3, e) {
29878
+ function k$1(l3, e) {
29860
29879
  return _.parse(l3, e);
29861
29880
  }
29862
- d$1.options = d$1.setOptions = function(l3) {
29863
- return _.setOptions(l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
29881
+ k$1.options = k$1.setOptions = function(l3) {
29882
+ return _.setOptions(l3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
29864
29883
  };
29865
- d$1.getDefaults = L;
29866
- d$1.defaults = O;
29867
- d$1.use = function(...l3) {
29868
- return _.use(...l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
29884
+ k$1.getDefaults = L;
29885
+ k$1.defaults = T;
29886
+ k$1.use = function(...l3) {
29887
+ return _.use(...l3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
29869
29888
  };
29870
- d$1.walkTokens = function(l3, e) {
29889
+ k$1.walkTokens = function(l3, e) {
29871
29890
  return _.walkTokens(l3, e);
29872
29891
  };
29873
- d$1.parseInline = _.parseInline;
29874
- d$1.Parser = R;
29875
- d$1.parser = R.parse;
29876
- d$1.Renderer = P;
29877
- d$1.TextRenderer = $;
29878
- d$1.Lexer = b;
29879
- d$1.lexer = b.lex;
29880
- d$1.Tokenizer = y;
29881
- d$1.Hooks = S;
29882
- d$1.parse = d$1;
29883
- d$1.options;
29884
- d$1.setOptions;
29885
- d$1.use;
29886
- d$1.walkTokens;
29887
- d$1.parseInline;
29888
- R.parse;
29889
- b.lex;
29890
- d$1.use({
29892
+ k$1.parseInline = _.parseInline;
29893
+ k$1.Parser = b;
29894
+ k$1.parser = b.parse;
29895
+ k$1.Renderer = P;
29896
+ k$1.TextRenderer = $;
29897
+ k$1.Lexer = x;
29898
+ k$1.lexer = x.lex;
29899
+ k$1.Tokenizer = y;
29900
+ k$1.Hooks = S;
29901
+ k$1.parse = k$1;
29902
+ k$1.options;
29903
+ k$1.setOptions;
29904
+ k$1.use;
29905
+ k$1.walkTokens;
29906
+ k$1.parseInline;
29907
+ b.parse;
29908
+ x.lex;
29909
+ k$1.use({
29891
29910
  breaks: false,
29892
29911
  // Use proper paragraphs, not <br> tags
29893
29912
  gfm: true
@@ -29898,7 +29917,7 @@ function createDocFromMarkdown(markdown, editor, options = {}) {
29898
29917
  return createDocFromHTML(html, editor, options);
29899
29918
  }
29900
29919
  function convertMarkdownToHTML(markdown) {
29901
- let html = d$1.parse(markdown, { async: false });
29920
+ let html = k$1.parse(markdown, { async: false });
29902
29921
  return html.replace(/<\/p>\n<ul>/g, "</p>\n<p>&nbsp;</p>\n<ul>").replace(/<\/p>\n<ol>/g, "</p>\n<p>&nbsp;</p>\n<ol>").replace(/<\/ul>\n<h/g, "</ul>\n<p>&nbsp;</p>\n<h").replace(/<\/ol>\n<h/g, "</ol>\n<p>&nbsp;</p>\n<h");
29903
29922
  }
29904
29923
  function processContent({ content, type: type2, editor }) {
@@ -35332,7 +35351,7 @@ const _SuperConverter = class _SuperConverter2 {
35332
35351
  static getStoredSuperdocVersion(docx) {
35333
35352
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
35334
35353
  }
35335
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.31.0-next.7") {
35354
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.31.0-next.9") {
35336
35355
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
35337
35356
  }
35338
35357
  /**
@@ -35726,7 +35745,7 @@ prepareCommentsXmlFilesForExport_fn = function({ defs, exportType, commentsWithP
35726
35745
  };
35727
35746
  exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
35728
35747
  const relsData = this.convertedXml["word/_rels/document.xml.rels"];
35729
- const relationships = relsData.elements.find((x) => x.name === "Relationships");
35748
+ const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
35730
35749
  const newDocRels = [];
35731
35750
  Object.entries(this.headers).forEach(([id, header], index2) => {
35732
35751
  const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
@@ -35767,7 +35786,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
35767
35786
  }
35768
35787
  this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
35769
35788
  if (params2.relationships.length) {
35770
- const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
35789
+ const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
35771
35790
  this.convertedXml[`word/_rels/${fileName}.rels`] = {
35772
35791
  declaration: this.initialJSON?.declaration,
35773
35792
  elements: [
@@ -35821,7 +35840,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
35821
35840
  }
35822
35841
  this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
35823
35842
  if (params2.relationships.length) {
35824
- const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
35843
+ const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
35825
35844
  this.convertedXml[`word/_rels/${fileName}.rels`] = {
35826
35845
  declaration: this.initialJSON?.declaration,
35827
35846
  elements: [
@@ -35840,7 +35859,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
35840
35859
  };
35841
35860
  exportProcessNewRelationships_fn = function(rels = []) {
35842
35861
  const relsData = this.convertedXml["word/_rels/document.xml.rels"];
35843
- const relationships = relsData.elements.find((x) => x.name === "Relationships");
35862
+ const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
35844
35863
  relationships.elements = mergeRelationshipElements(relationships.elements, rels);
35845
35864
  };
35846
35865
  exportProcessMediaFiles_fn = async function(media = {}) {
@@ -36036,8 +36055,8 @@ function requireJszip_min() {
36036
36055
  return n2;
36037
36056
  }
36038
36057
  function n(e2, t2, r22, n2, i2, s22) {
36039
- var a, o, h2 = e2.file, u = e2.compression, l3 = s22 !== O2.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O2.utf8encode(h2.name)), d2 = h2.comment, p = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O2.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
36040
- t2 && !r22 || (x.crc32 = e2.crc32, x.compressedSize = e2.compressedSize, x.uncompressedSize = e2.uncompressedSize);
36058
+ var a, o, h2 = e2.file, u = e2.compression, l3 = s22 !== O.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O.utf8encode(h2.name)), d2 = h2.comment, p = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x2 = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
36059
+ t2 && !r22 || (x2.crc32 = e2.crc32, x2.compressedSize = e2.compressedSize, x2.uncompressedSize = e2.uncompressedSize);
36041
36060
  var S2 = 0;
36042
36061
  t2 && (S2 |= 8), l3 || !_2 && !g || (S2 |= 2048);
36043
36062
  var z2 = 0, C2 = 0;
@@ -36048,9 +36067,9 @@ function requireJszip_min() {
36048
36067
  return 63 & (e3 || 0);
36049
36068
  })(h2.dosPermissions)), a = k2.getUTCHours(), a <<= 6, a |= k2.getUTCMinutes(), a <<= 5, a |= k2.getUTCSeconds() / 2, o = k2.getUTCFullYear() - 1980, o <<= 4, o |= k2.getUTCMonth() + 1, o <<= 5, o |= k2.getUTCDate(), _2 && (v2 = A2(1, 1) + A2(B2(f2), 4) + c2, b2 += "up" + A2(v2.length, 2) + v2), g && (y2 = A2(1, 1) + A2(B2(p), 4) + m2, b2 += "uc" + A2(y2.length, 2) + y2);
36050
36069
  var E2 = "";
36051
- return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a, 2), E2 += A2(o, 2), E2 += A2(x.crc32, 4), E2 += A2(x.compressedSize, 4), E2 += A2(x.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R2.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R2.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p };
36070
+ return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a, 2), E2 += A2(o, 2), E2 += A2(x2.crc32, 4), E2 += A2(x2.compressedSize, 4), E2 += A2(x2.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p };
36052
36071
  }
36053
- var I2 = e("../utils"), i = e("../stream/GenericWorker"), O2 = e("../utf8"), B2 = e("../crc32"), R2 = e("../signature");
36072
+ var I2 = e("../utils"), i = e("../stream/GenericWorker"), O = e("../utf8"), B2 = e("../crc32"), R = e("../signature");
36054
36073
  function s2(e2, t2, r22, n2) {
36055
36074
  i.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = t2, this.zipPlatform = r22, this.encodeFileName = n2, this.streamFiles = e2, this.accumulate = false, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
36056
36075
  }
@@ -36068,7 +36087,7 @@ function requireJszip_min() {
36068
36087
  this.accumulate = false;
36069
36088
  var t2 = this.streamFiles && !e2.file.dir, r22 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
36070
36089
  if (this.dirRecords.push(r22.dirRecord), t2) this.push({ data: (function(e3) {
36071
- return R2.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
36090
+ return R.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
36072
36091
  })(e2), meta: { percent: 100 } });
36073
36092
  else for (this.push({ data: r22.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
36074
36093
  this.currentFile = null;
@@ -36076,7 +36095,7 @@ function requireJszip_min() {
36076
36095
  for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });
36077
36096
  var r22 = this.bytesWritten - e2, n2 = (function(e3, t3, r3, n3, i2) {
36078
36097
  var s22 = I2.transformTo("string", i2(n3));
36079
- return R2.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A2(e3, 2) + A2(e3, 2) + A2(t3, 4) + A2(r3, 4) + A2(s22.length, 2) + s22;
36098
+ return R.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A2(e3, 2) + A2(e3, 2) + A2(t3, 4) + A2(r3, 4) + A2(s22.length, 2) + s22;
36080
36099
  })(this.dirRecords.length, r22, e2, this.zipComment, this.encodeFileName);
36081
36100
  this.push({ data: n2, meta: { percent: 100 } });
36082
36101
  }, s2.prototype.prepareNextSource = function() {
@@ -37276,11 +37295,11 @@ function requireJszip_min() {
37276
37295
  return -1 ^ e2;
37277
37296
  };
37278
37297
  }, {}], 46: [function(e, t, r2) {
37279
- var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p = e("./crc32"), n = e("./messages"), l3 = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i = 2, v2 = 8, y2 = 9, s2 = 286, a = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15, x = 3, S2 = 258, z2 = S2 + x + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O2 = 3, B2 = 4;
37280
- function R2(e2, t2) {
37298
+ var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p = e("./crc32"), n = e("./messages"), l3 = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i = 2, v2 = 8, y2 = 9, s2 = 286, a = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15, x2 = 3, S2 = 258, z2 = S2 + x2 + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O = 3, B2 = 4;
37299
+ function R(e2, t2) {
37281
37300
  return e2.msg = n[t2], t2;
37282
37301
  }
37283
- function T(e2) {
37302
+ function T2(e2) {
37284
37303
  return (e2 << 1) - (4 < e2 ? 9 : 0);
37285
37304
  }
37286
37305
  function D2(e2) {
@@ -37324,7 +37343,7 @@ function requireJszip_min() {
37324
37343
  i2 += f22;
37325
37344
  }
37326
37345
  if (0 === e2.strm.avail_in) break;
37327
- if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i2, l22 = void 0, l22 = a2.avail_in, u2 < l22 && (l22 = u2), r22 = 0 === l22 ? 0 : (a2.avail_in -= l22, c2.arraySet(o2, a2.input, a2.next_in, l22, h22), 1 === a2.state.wrap ? a2.adler = d2(a2.adler, o2, l22, h22) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l22, h22)), a2.next_in += l22, a2.total_in += l22, l22), e2.lookahead += r22, e2.lookahead + e2.insert >= x) for (s22 = e2.strstart - e2.insert, e2.ins_h = e2.window[s22], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + x - 1]) & e2.hash_mask, e2.prev[s22 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s22, s22++, e2.insert--, !(e2.lookahead + e2.insert < x)); ) ;
37346
+ if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i2, l22 = void 0, l22 = a2.avail_in, u2 < l22 && (l22 = u2), r22 = 0 === l22 ? 0 : (a2.avail_in -= l22, c2.arraySet(o2, a2.input, a2.next_in, l22, h22), 1 === a2.state.wrap ? a2.adler = d2(a2.adler, o2, l22, h22) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l22, h22)), a2.next_in += l22, a2.total_in += l22, l22), e2.lookahead += r22, e2.lookahead + e2.insert >= x2) for (s22 = e2.strstart - e2.insert, e2.ins_h = e2.window[s22], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + x2 - 1]) & e2.hash_mask, e2.prev[s22 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s22, s22++, e2.insert--, !(e2.lookahead + e2.insert < x2)); ) ;
37328
37347
  } while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
37329
37348
  }
37330
37349
  function Z(e2, t2) {
@@ -37333,14 +37352,14 @@ function requireJszip_min() {
37333
37352
  if (j2(e2), e2.lookahead < z2 && t2 === l3) return A2;
37334
37353
  if (0 === e2.lookahead) break;
37335
37354
  }
37336
- if (r22 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r22 && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22)), e2.match_length >= x) if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x) {
37337
- for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; ) ;
37355
+ if (r22 = 0, e2.lookahead >= x2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r22 && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22)), e2.match_length >= x2) if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x2), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x2) {
37356
+ for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; ) ;
37338
37357
  e2.strstart++;
37339
37358
  } else e2.strstart += e2.match_length, e2.match_length = 0, e2.ins_h = e2.window[e2.strstart], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + 1]) & e2.hash_mask;
37340
37359
  else n2 = u._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
37341
37360
  if (n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37342
37361
  }
37343
- return e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
37362
+ return e2.insert = e2.strstart < x2 - 1 ? e2.strstart : x2 - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
37344
37363
  }
37345
37364
  function W2(e2, t2) {
37346
37365
  for (var r22, n2, i2; ; ) {
@@ -37348,14 +37367,14 @@ function requireJszip_min() {
37348
37367
  if (j2(e2), e2.lookahead < z2 && t2 === l3) return A2;
37349
37368
  if (0 === e2.lookahead) break;
37350
37369
  }
37351
- if (r22 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x - 1, 0 !== r22 && e2.prev_length < e2.max_lazy_match && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x - 1)), e2.prev_length >= x && e2.match_length <= e2.prev_length) {
37352
- for (i2 = e2.strstart + e2.lookahead - x, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
37353
- if (e2.match_available = 0, e2.match_length = x - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37370
+ if (r22 = 0, e2.lookahead >= x2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x2 - 1, 0 !== r22 && e2.prev_length < e2.max_lazy_match && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x2 && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x2 - 1)), e2.prev_length >= x2 && e2.match_length <= e2.prev_length) {
37371
+ for (i2 = e2.strstart + e2.lookahead - x2, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x2), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
37372
+ if (e2.match_available = 0, e2.match_length = x2 - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37354
37373
  } else if (e2.match_available) {
37355
37374
  if ((n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1])) && N2(e2, false), e2.strstart++, e2.lookahead--, 0 === e2.strm.avail_out) return A2;
37356
37375
  } else e2.match_available = 1, e2.strstart++, e2.lookahead--;
37357
37376
  }
37358
- return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
37377
+ return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x2 - 1 ? e2.strstart : x2 - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
37359
37378
  }
37360
37379
  function M2(e2, t2, r22, n2, i2) {
37361
37380
  this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i2;
@@ -37365,21 +37384,21 @@ function requireJszip_min() {
37365
37384
  }
37366
37385
  function G2(e2) {
37367
37386
  var t2;
37368
- return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l3, u._tr_init(t2), m2) : R2(e2, _2);
37387
+ return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l3, u._tr_init(t2), m2) : R(e2, _2);
37369
37388
  }
37370
37389
  function K2(e2) {
37371
37390
  var t2 = G2(e2);
37372
37391
  return t2 === m2 && (function(e3) {
37373
- e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length = x - 1, e3.match_available = 0, e3.ins_h = 0;
37392
+ e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length = x2 - 1, e3.match_available = 0, e3.ins_h = 0;
37374
37393
  })(e2.state), t2;
37375
37394
  }
37376
37395
  function Y2(e2, t2, r22, n2, i2, s22) {
37377
37396
  if (!e2) return _2;
37378
37397
  var a2 = 1;
37379
- if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R2(e2, _2);
37398
+ if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R(e2, _2);
37380
37399
  8 === n2 && (n2 = 9);
37381
37400
  var o2 = new H();
37382
- return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x - 1) / x), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c2.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s22, o2.method = r22, K2(e2);
37401
+ return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x2 - 1) / x2), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c2.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s22, o2.method = r22, K2(e2);
37383
37402
  }
37384
37403
  h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
37385
37404
  var r22 = 65535;
@@ -37393,15 +37412,15 @@ function requireJszip_min() {
37393
37412
  if ((0 === e2.strstart || e2.strstart >= n2) && (e2.lookahead = e2.strstart - n2, e2.strstart = n2, N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37394
37413
  if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37395
37414
  }
37396
- return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : (e2.strstart > e2.block_start && (N2(e2, false), e2.strm.avail_out), A2);
37415
+ return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : (e2.strstart > e2.block_start && (N2(e2, false), e2.strm.avail_out), A2);
37397
37416
  }), new M2(4, 4, 8, 4, Z), new M2(4, 5, 16, 8, Z), new M2(4, 6, 32, 32, Z), new M2(4, 4, 16, 16, W2), new M2(8, 16, 32, 32, W2), new M2(8, 16, 128, 128, W2), new M2(8, 32, 128, 256, W2), new M2(32, 128, 258, 1024, W2), new M2(32, 258, 258, 4096, W2)], r2.deflateInit = function(e2, t2) {
37398
37417
  return Y2(e2, t2, v2, 15, 8, 0);
37399
37418
  }, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
37400
37419
  return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
37401
37420
  }, r2.deflate = function(e2, t2) {
37402
37421
  var r22, n2, i2, s22;
37403
- if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R2(e2, _2) : _2;
37404
- if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return R2(e2, 0 === e2.avail_out ? -5 : _2);
37422
+ if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R(e2, _2) : _2;
37423
+ if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return R(e2, 0 === e2.avail_out ? -5 : _2);
37405
37424
  if (n2.strm = e2, r22 = n2.last_flush, n2.last_flush = t2, n2.status === C2) if (2 === n2.wrap) e2.adler = 0, U2(n2, 31), U2(n2, 139), U2(n2, 8), n2.gzhead ? (U2(n2, (n2.gzhead.text ? 1 : 0) + (n2.gzhead.hcrc ? 2 : 0) + (n2.gzhead.extra ? 4 : 0) + (n2.gzhead.name ? 8 : 0) + (n2.gzhead.comment ? 16 : 0)), U2(n2, 255 & n2.gzhead.time), U2(n2, n2.gzhead.time >> 8 & 255), U2(n2, n2.gzhead.time >> 16 & 255), U2(n2, n2.gzhead.time >> 24 & 255), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 255 & n2.gzhead.os), n2.gzhead.extra && n2.gzhead.extra.length && (U2(n2, 255 & n2.gzhead.extra.length), U2(n2, n2.gzhead.extra.length >> 8 & 255)), n2.gzhead.hcrc && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending, 0)), n2.gzindex = 0, n2.status = 69) : (U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 3), n2.status = E2);
37406
37425
  else {
37407
37426
  var a2 = v2 + (n2.w_bits - 8 << 4) << 8;
@@ -37435,8 +37454,8 @@ function requireJszip_min() {
37435
37454
  } else n2.status = 103;
37436
37455
  if (103 === n2.status && (n2.gzhead.hcrc ? (n2.pending + 2 > n2.pending_buf_size && F2(e2), n2.pending + 2 <= n2.pending_buf_size && (U2(n2, 255 & e2.adler), U2(n2, e2.adler >> 8 & 255), e2.adler = 0, n2.status = E2)) : n2.status = E2), 0 !== n2.pending) {
37437
37456
  if (F2(e2), 0 === e2.avail_out) return n2.last_flush = -1, m2;
37438
- } else if (0 === e2.avail_in && T(t2) <= T(r22) && t2 !== f2) return R2(e2, -5);
37439
- if (666 === n2.status && 0 !== e2.avail_in) return R2(e2, -5);
37457
+ } else if (0 === e2.avail_in && T2(t2) <= T2(r22) && t2 !== f2) return R(e2, -5);
37458
+ if (666 === n2.status && 0 !== e2.avail_in) return R(e2, -5);
37440
37459
  if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l3 && 666 !== n2.status) {
37441
37460
  var o2 = 2 === n2.strategy ? (function(e3, t3) {
37442
37461
  for (var r3; ; ) {
@@ -37446,39 +37465,39 @@ function requireJszip_min() {
37446
37465
  }
37447
37466
  if (e3.match_length = 0, r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++, r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
37448
37467
  }
37449
- return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O2 : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
37468
+ return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
37450
37469
  })(n2, t2) : 3 === n2.strategy ? (function(e3, t3) {
37451
37470
  for (var r3, n3, i3, s3, a3 = e3.window; ; ) {
37452
37471
  if (e3.lookahead <= S2) {
37453
37472
  if (j2(e3), e3.lookahead <= S2 && t3 === l3) return A2;
37454
37473
  if (0 === e3.lookahead) break;
37455
37474
  }
37456
- if (e3.match_length = 0, e3.lookahead >= x && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) {
37475
+ if (e3.match_length = 0, e3.lookahead >= x2 && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) {
37457
37476
  s3 = e3.strstart + S2;
37458
37477
  do {
37459
37478
  } while (n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && i3 < s3);
37460
37479
  e3.match_length = S2 - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);
37461
37480
  }
37462
- if (e3.match_length >= x ? (r3 = u._tr_tally(e3, 1, e3.match_length - x), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
37481
+ if (e3.match_length >= x2 ? (r3 = u._tr_tally(e3, 1, e3.match_length - x2), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
37463
37482
  }
37464
- return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O2 : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
37483
+ return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
37465
37484
  })(n2, t2) : h2[n2.level].func(n2, t2);
37466
- if (o2 !== O2 && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O2) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
37485
+ if (o2 !== O && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
37467
37486
  if (o2 === I2 && (1 === t2 ? u._tr_align(n2) : 5 !== t2 && (u._tr_stored_block(n2, 0, 0, false), 3 === t2 && (D2(n2.head), 0 === n2.lookahead && (n2.strstart = 0, n2.block_start = 0, n2.insert = 0))), F2(e2), 0 === e2.avail_out)) return n2.last_flush = -1, m2;
37468
37487
  }
37469
37488
  return t2 !== f2 ? m2 : n2.wrap <= 0 ? 1 : (2 === n2.wrap ? (U2(n2, 255 & e2.adler), U2(n2, e2.adler >> 8 & 255), U2(n2, e2.adler >> 16 & 255), U2(n2, e2.adler >> 24 & 255), U2(n2, 255 & e2.total_in), U2(n2, e2.total_in >> 8 & 255), U2(n2, e2.total_in >> 16 & 255), U2(n2, e2.total_in >> 24 & 255)) : (P2(n2, e2.adler >>> 16), P2(n2, 65535 & e2.adler)), F2(e2), 0 < n2.wrap && (n2.wrap = -n2.wrap), 0 !== n2.pending ? m2 : 1);
37470
37489
  }, r2.deflateEnd = function(e2) {
37471
37490
  var t2;
37472
- return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ? R2(e2, _2) : (e2.state = null, t2 === E2 ? R2(e2, -3) : m2) : _2;
37491
+ return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ? R(e2, _2) : (e2.state = null, t2 === E2 ? R(e2, -3) : m2) : _2;
37473
37492
  }, r2.deflateSetDictionary = function(e2, t2) {
37474
37493
  var r22, n2, i2, s22, a2, o2, h22, u2, l22 = t2.length;
37475
37494
  if (!e2 || !e2.state) return _2;
37476
37495
  if (2 === (s22 = (r22 = e2.state).wrap) || 1 === s22 && r22.status !== C2 || r22.lookahead) return _2;
37477
- for (1 === s22 && (e2.adler = d2(e2.adler, t2, l22, 0)), r22.wrap = 0, l22 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u2 = new c2.Buf8(r22.w_size), c2.arraySet(u2, t2, l22 - r22.w_size, r22.w_size, 0), t2 = u2, l22 = r22.w_size), a2 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l22, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x; ) {
37478
- for (n2 = r22.strstart, i2 = r22.lookahead - (x - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i2; ) ;
37479
- r22.strstart = n2, r22.lookahead = x - 1, j2(r22);
37496
+ for (1 === s22 && (e2.adler = d2(e2.adler, t2, l22, 0)), r22.wrap = 0, l22 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u2 = new c2.Buf8(r22.w_size), c2.arraySet(u2, t2, l22 - r22.w_size, r22.w_size, 0), t2 = u2, l22 = r22.w_size), a2 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l22, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x2; ) {
37497
+ for (n2 = r22.strstart, i2 = r22.lookahead - (x2 - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x2 - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i2; ) ;
37498
+ r22.strstart = n2, r22.lookahead = x2 - 1, j2(r22);
37480
37499
  }
37481
- return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a2, r22.wrap = s22, m2;
37500
+ return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x2 - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a2, r22.wrap = s22, m2;
37482
37501
  }, r2.deflateInfo = "pako deflate (from Nodeca project)";
37483
37502
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r2) {
37484
37503
  t.exports = function() {
@@ -37486,7 +37505,7 @@ function requireJszip_min() {
37486
37505
  };
37487
37506
  }, {}], 48: [function(e, t, r2) {
37488
37507
  t.exports = function(e2, t2) {
37489
- var r22, n, i, s2, a, o, h2, u, l3, f2, c2, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2;
37508
+ var r22, n, i, s2, a, o, h2, u, l3, f2, c2, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2;
37490
37509
  r22 = e2.state, n = e2.next_in, z2 = e2.input, i = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax, u = r22.wsize, l3 = r22.whave, f2 = r22.wnext, c2 = r22.window, d2 = r22.hold, p = r22.bits, m2 = r22.lencode, _2 = r22.distcode, g = (1 << r22.lenbits) - 1, b2 = (1 << r22.distbits) - 1;
37491
37510
  e: do {
37492
37511
  p < 15 && (d2 += z2[n++] << p, p += 8, d2 += z2[n++] << p, p += 8), v2 = m2[d2 & g];
@@ -37524,28 +37543,28 @@ function requireJszip_min() {
37524
37543
  e2.msg = "invalid distance too far back", r22.mode = 30;
37525
37544
  break e;
37526
37545
  }
37527
- if (S2 = c2, (x = 0) === f2) {
37528
- if (x += u - y2, y2 < w2) {
37529
- for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
37530
- x = s2 - k2, S2 = C2;
37546
+ if (S2 = c2, (x2 = 0) === f2) {
37547
+ if (x2 += u - y2, y2 < w2) {
37548
+ for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
37549
+ x2 = s2 - k2, S2 = C2;
37531
37550
  }
37532
37551
  } else if (f2 < y2) {
37533
- if (x += u + f2 - y2, (y2 -= f2) < w2) {
37534
- for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
37535
- if (x = 0, f2 < w2) {
37536
- for (w2 -= y2 = f2; C2[s2++] = c2[x++], --y2; ) ;
37537
- x = s2 - k2, S2 = C2;
37552
+ if (x2 += u + f2 - y2, (y2 -= f2) < w2) {
37553
+ for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
37554
+ if (x2 = 0, f2 < w2) {
37555
+ for (w2 -= y2 = f2; C2[s2++] = c2[x2++], --y2; ) ;
37556
+ x2 = s2 - k2, S2 = C2;
37538
37557
  }
37539
37558
  }
37540
- } else if (x += f2 - y2, y2 < w2) {
37541
- for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
37542
- x = s2 - k2, S2 = C2;
37559
+ } else if (x2 += f2 - y2, y2 < w2) {
37560
+ for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
37561
+ x2 = s2 - k2, S2 = C2;
37543
37562
  }
37544
- for (; 2 < w2; ) C2[s2++] = S2[x++], C2[s2++] = S2[x++], C2[s2++] = S2[x++], w2 -= 3;
37545
- w2 && (C2[s2++] = S2[x++], 1 < w2 && (C2[s2++] = S2[x++]));
37563
+ for (; 2 < w2; ) C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], w2 -= 3;
37564
+ w2 && (C2[s2++] = S2[x2++], 1 < w2 && (C2[s2++] = S2[x2++]));
37546
37565
  } else {
37547
- for (x = s2 - k2; C2[s2++] = C2[x++], C2[s2++] = C2[x++], C2[s2++] = C2[x++], 2 < (w2 -= 3); ) ;
37548
- w2 && (C2[s2++] = C2[x++], 1 < w2 && (C2[s2++] = C2[x++]));
37566
+ for (x2 = s2 - k2; C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], 2 < (w2 -= 3); ) ;
37567
+ w2 && (C2[s2++] = C2[x2++], 1 < w2 && (C2[s2++] = C2[x2++]));
37549
37568
  }
37550
37569
  break;
37551
37570
  }
@@ -37556,7 +37575,7 @@ function requireJszip_min() {
37556
37575
  n -= w2 = p >> 3, d2 &= (1 << (p -= w2 << 3)) - 1, e2.next_in = n, e2.next_out = s2, e2.avail_in = n < i ? i - n + 5 : 5 - (n - i), e2.avail_out = s2 < o ? o - s2 + 257 : 257 - (s2 - o), r22.hold = d2, r22.bits = p;
37557
37576
  };
37558
37577
  }, {}], 49: [function(e, t, r2) {
37559
- var I2 = e("../utils/common"), O2 = e("./adler32"), B2 = e("./crc32"), R2 = e("./inffast"), T = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i = 592;
37578
+ var I2 = e("../utils/common"), O = e("./adler32"), B2 = e("./crc32"), R = e("./inffast"), T2 = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i = 592;
37560
37579
  function L2(e2) {
37561
37580
  return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
37562
37581
  }
@@ -37587,8 +37606,8 @@ function requireJszip_min() {
37587
37606
  for (; t2 < 256; ) e2.lens[t2++] = 9;
37588
37607
  for (; t2 < 280; ) e2.lens[t2++] = 7;
37589
37608
  for (; t2 < 288; ) e2.lens[t2++] = 8;
37590
- for (T(D2, e2.lens, 0, 288, l3, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
37591
- T(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
37609
+ for (T2(D2, e2.lens, 0, 288, l3, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
37610
+ T2(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
37592
37611
  }
37593
37612
  e2.lencode = l3, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
37594
37613
  }
@@ -37599,9 +37618,9 @@ function requireJszip_min() {
37599
37618
  r2.inflateReset = o, r2.inflateReset2 = h2, r2.inflateResetKeep = a, r2.inflateInit = function(e2) {
37600
37619
  return u(e2, 15);
37601
37620
  }, r2.inflateInit2 = u, r2.inflate = function(e2, t2) {
37602
- var r22, n2, i2, s22, a2, o2, h22, u2, l22, f22, c22, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2 = 0, E2 = new I2.Buf8(4), A2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
37621
+ var r22, n2, i2, s22, a2, o2, h22, u2, l22, f22, c22, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2 = 0, E2 = new I2.Buf8(4), A2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
37603
37622
  if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U2;
37604
- 12 === (r22 = e2.state).mode && (r22.mode = 13), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, f22 = o2, c22 = h22, x = N2;
37623
+ 12 === (r22 = e2.state).mode && (r22.mode = 13), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, f22 = o2, c22 = h22, x2 = N2;
37605
37624
  e: for (; ; ) switch (r22.mode) {
37606
37625
  case P2:
37607
37626
  if (0 === r22.wrap) {
@@ -37772,7 +37791,7 @@ function requireJszip_min() {
37772
37791
  r22.lens[A2[r22.have++]] = 7 & u2, u2 >>>= 3, l22 -= 3;
37773
37792
  }
37774
37793
  for (; r22.have < 19; ) r22.lens[A2[r22.have++]] = 0;
37775
- if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits }, x = T(0, r22.lens, 0, 19, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x) {
37794
+ if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits }, x2 = T2(0, r22.lens, 0, 19, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x2) {
37776
37795
  e2.msg = "invalid code lengths set", r22.mode = 30;
37777
37796
  break;
37778
37797
  }
@@ -37820,11 +37839,11 @@ function requireJszip_min() {
37820
37839
  e2.msg = "invalid code -- missing end-of-block", r22.mode = 30;
37821
37840
  break;
37822
37841
  }
37823
- if (r22.lenbits = 9, S2 = { bits: r22.lenbits }, x = T(D2, r22.lens, 0, r22.nlen, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x) {
37842
+ if (r22.lenbits = 9, S2 = { bits: r22.lenbits }, x2 = T2(D2, r22.lens, 0, r22.nlen, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x2) {
37824
37843
  e2.msg = "invalid literal/lengths set", r22.mode = 30;
37825
37844
  break;
37826
37845
  }
37827
- if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits }, x = T(F2, r22.lens, r22.nlen, r22.ndist, r22.distcode, 0, r22.work, S2), r22.distbits = S2.bits, x) {
37846
+ if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits }, x2 = T2(F2, r22.lens, r22.nlen, r22.ndist, r22.distcode, 0, r22.work, S2), r22.distbits = S2.bits, x2) {
37828
37847
  e2.msg = "invalid distances set", r22.mode = 30;
37829
37848
  break;
37830
37849
  }
@@ -37833,7 +37852,7 @@ function requireJszip_min() {
37833
37852
  r22.mode = 21;
37834
37853
  case 21:
37835
37854
  if (6 <= o2 && 258 <= h22) {
37836
- e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, R2(e2, c22), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, 12 === r22.mode && (r22.back = -1);
37855
+ e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, R(e2, c22), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, 12 === r22.mode && (r22.back = -1);
37837
37856
  break;
37838
37857
  }
37839
37858
  for (r22.back = 0; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l22); ) {
@@ -37921,7 +37940,7 @@ function requireJszip_min() {
37921
37940
  if (0 === o2) break e;
37922
37941
  o2--, u2 |= n2[s22++] << l22, l22 += 8;
37923
37942
  }
37924
- if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) : O2(r22.check, i2, c22, a2 - c22)), c22 = h22, (r22.flags ? u2 : L2(u2)) !== r22.check) {
37943
+ if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) : O(r22.check, i2, c22, a2 - c22)), c22 = h22, (r22.flags ? u2 : L2(u2)) !== r22.check) {
37925
37944
  e2.msg = "incorrect data check", r22.mode = 30;
37926
37945
  break;
37927
37946
  }
@@ -37942,10 +37961,10 @@ function requireJszip_min() {
37942
37961
  }
37943
37962
  r22.mode = 29;
37944
37963
  case 29:
37945
- x = 1;
37964
+ x2 = 1;
37946
37965
  break e;
37947
37966
  case 30:
37948
- x = -3;
37967
+ x2 = -3;
37949
37968
  break e;
37950
37969
  case 31:
37951
37970
  return -4;
@@ -37953,7 +37972,7 @@ function requireJszip_min() {
37953
37972
  default:
37954
37973
  return U2;
37955
37974
  }
37956
- return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, e2.next_out - c22) : O2(r22.check, i2, c22, e2.next_out - c22)), e2.data_type = r22.bits + (r22.last ? 64 : 0) + (12 === r22.mode ? 128 : 0) + (20 === r22.mode || 15 === r22.mode ? 256 : 0), (0 == f22 && 0 === c22 || 4 === t2) && x === N2 && (x = -5), x);
37975
+ return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, e2.next_out - c22) : O(r22.check, i2, c22, e2.next_out - c22)), e2.data_type = r22.bits + (r22.last ? 64 : 0) + (12 === r22.mode ? 128 : 0) + (20 === r22.mode || 15 === r22.mode ? 256 : 0), (0 == f22 && 0 === c22 || 4 === t2) && x2 === N2 && (x2 = -5), x2);
37957
37976
  }, r2.inflateEnd = function(e2) {
37958
37977
  if (!e2 || !e2.state) return U2;
37959
37978
  var t2 = e2.state;
@@ -37963,33 +37982,33 @@ function requireJszip_min() {
37963
37982
  return e2 && e2.state ? 0 == (2 & (r22 = e2.state).wrap) ? U2 : ((r22.head = t2).done = false, N2) : U2;
37964
37983
  }, r2.inflateSetDictionary = function(e2, t2) {
37965
37984
  var r22, n2 = t2.length;
37966
- return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode && O2(1, t2, n2, 0) !== r22.check ? -3 : Z(e2, t2, n2, n2) ? (r22.mode = 31, -4) : (r22.havedict = 1, N2) : U2;
37985
+ return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode && O(1, t2, n2, 0) !== r22.check ? -3 : Z(e2, t2, n2, n2) ? (r22.mode = 31, -4) : (r22.havedict = 1, N2) : U2;
37967
37986
  }, r2.inflateInfo = "pako inflate (from Nodeca project)";
37968
37987
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r2) {
37969
37988
  var D2 = e("../utils/common"), F2 = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], N2 = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], U2 = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], P2 = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
37970
37989
  t.exports = function(e2, t2, r22, n, i, s2, a, o) {
37971
- var h2, u, l3, f2, c2, d2, p, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O2 = new D2.Buf16(16), B2 = new D2.Buf16(16), R2 = null, T = 0;
37972
- for (b2 = 0; b2 <= 15; b2++) O2[b2] = 0;
37973
- for (v2 = 0; v2 < n; v2++) O2[t2[r22 + v2]]++;
37974
- for (k2 = g, w2 = 15; 1 <= w2 && 0 === O2[w2]; w2--) ;
37990
+ var h2, u, l3, f2, c2, d2, p, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x2 = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O = new D2.Buf16(16), B2 = new D2.Buf16(16), R = null, T2 = 0;
37991
+ for (b2 = 0; b2 <= 15; b2++) O[b2] = 0;
37992
+ for (v2 = 0; v2 < n; v2++) O[t2[r22 + v2]]++;
37993
+ for (k2 = g, w2 = 15; 1 <= w2 && 0 === O[w2]; w2--) ;
37975
37994
  if (w2 < k2 && (k2 = w2), 0 === w2) return i[s2++] = 20971520, i[s2++] = 20971520, o.bits = 1, 0;
37976
- for (y2 = 1; y2 < w2 && 0 === O2[y2]; y2++) ;
37977
- for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O2[b2]) < 0) return -1;
37995
+ for (y2 = 1; y2 < w2 && 0 === O[y2]; y2++) ;
37996
+ for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O[b2]) < 0) return -1;
37978
37997
  if (0 < z2 && (0 === e2 || 1 !== w2)) return -1;
37979
- for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O2[b2];
37998
+ for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O[b2];
37980
37999
  for (v2 = 0; v2 < n; v2++) 0 !== t2[r22 + v2] && (a[B2[t2[r22 + v2]]++] = v2);
37981
- if (d2 = 0 === e2 ? (A2 = R2 = a, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R2 = N2, T -= 257, 256) : (A2 = U2, R2 = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l3 = -1, f2 = (C2 = 1 << (x = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38000
+ if (d2 = 0 === e2 ? (A2 = R = a, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R = N2, T2 -= 257, 256) : (A2 = U2, R = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l3 = -1, f2 = (C2 = 1 << (x2 = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
37982
38001
  for (; ; ) {
37983
- for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 = R2[T + a[v2]], A2[I2 + a[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u = 1 << x; i[c2 + (E2 >> S2) + (u -= h2)] = p << 24 | m2 << 16 | _2 | 0, 0 !== u; ) ;
38002
+ for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 = R[T2 + a[v2]], A2[I2 + a[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u = 1 << x2; i[c2 + (E2 >> S2) + (u -= h2)] = p << 24 | m2 << 16 | _2 | 0, 0 !== u; ) ;
37984
38003
  for (h2 = 1 << b2 - 1; E2 & h2; ) h2 >>= 1;
37985
- if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O2[b2]) {
38004
+ if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O[b2]) {
37986
38005
  if (b2 === w2) break;
37987
38006
  b2 = t2[r22 + a[v2]];
37988
38007
  }
37989
38008
  if (k2 < b2 && (E2 & f2) !== l3) {
37990
- for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x = b2 - S2); x + S2 < w2 && !((z2 -= O2[x + S2]) <= 0); ) x++, z2 <<= 1;
37991
- if (C2 += 1 << x, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
37992
- i[l3 = E2 & f2] = k2 << 24 | x << 16 | c2 - s2 | 0;
38009
+ for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x2 = b2 - S2); x2 + S2 < w2 && !((z2 -= O[x2 + S2]) <= 0); ) x2++, z2 <<= 1;
38010
+ if (C2 += 1 << x2, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38011
+ i[l3 = E2 & f2] = k2 << 24 | x2 << 16 | c2 - s2 | 0;
37993
38012
  }
37994
38013
  }
37995
38014
  return 0 !== E2 && (i[c2 + E2] = b2 - S2 << 24 | 64 << 16 | 0), o.bits = k2, 0;
@@ -38001,7 +38020,7 @@ function requireJszip_min() {
38001
38020
  function n(e2) {
38002
38021
  for (var t2 = e2.length; 0 <= --t2; ) e2[t2] = 0;
38003
38022
  }
38004
- var s2 = 0, a = 29, u = 256, l3 = u + 1 + a, f2 = 30, c2 = 19, _2 = 2 * l3 + 1, g = 15, d2 = 16, p = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l3 + 2));
38023
+ var s2 = 0, a = 29, u = 256, l3 = u + 1 + a, f2 = 30, c2 = 19, _2 = 2 * l3 + 1, g = 15, d2 = 16, p = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l3 + 2));
38005
38024
  n(z2);
38006
38025
  var C2 = new Array(2 * f2);
38007
38026
  n(C2);
@@ -38011,7 +38030,7 @@ function requireJszip_min() {
38011
38030
  n(A2);
38012
38031
  var I2 = new Array(a);
38013
38032
  n(I2);
38014
- var O2, B2, R2, T = new Array(f2);
38033
+ var O, B2, R, T2 = new Array(f2);
38015
38034
  function D2(e2, t2, r22, n2, i2) {
38016
38035
  this.static_tree = e2, this.extra_bits = t2, this.extra_base = r22, this.elems = n2, this.max_length = i2, this.has_stree = e2 && e2.length;
38017
38036
  }
@@ -38062,7 +38081,7 @@ function requireJszip_min() {
38062
38081
  }
38063
38082
  function K2(e2, t2, r22) {
38064
38083
  var n2, i2, s22, a2, o2 = 0;
38065
- if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i2, t2) : (L2(e2, (s22 = A2[i2]) + u + 1, t2), 0 !== (a2 = w2[s22]) && P2(e2, i2 -= I2[s22], a2), L2(e2, s22 = N2(--n2), r22), 0 !== (a2 = k2[s22]) && P2(e2, n2 -= T[s22], a2)), o2 < e2.last_lit; ) ;
38084
+ if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i2, t2) : (L2(e2, (s22 = A2[i2]) + u + 1, t2), 0 !== (a2 = w2[s22]) && P2(e2, i2 -= I2[s22], a2), L2(e2, s22 = N2(--n2), r22), 0 !== (a2 = k2[s22]) && P2(e2, n2 -= T2[s22], a2)), o2 < e2.last_lit; ) ;
38066
38085
  L2(e2, m2, t2);
38067
38086
  }
38068
38087
  function Y2(e2, t2) {
@@ -38096,7 +38115,7 @@ function requireJszip_min() {
38096
38115
  s22 = i2, u2 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4);
38097
38116
  }
38098
38117
  }
38099
- n(T);
38118
+ n(T2);
38100
38119
  var q2 = false;
38101
38120
  function J2(e2, t2, r22, n2) {
38102
38121
  P2(e2, (s2 << 1) + (n2 ? 1 : 0), 3), (function(e3, t3, r3, n3) {
@@ -38107,16 +38126,16 @@ function requireJszip_min() {
38107
38126
  q2 || ((function() {
38108
38127
  var e3, t2, r22, n2, i2, s22 = new Array(g + 1);
38109
38128
  for (n2 = r22 = 0; n2 < a - 1; n2++) for (I2[n2] = r22, e3 = 0; e3 < 1 << w2[n2]; e3++) A2[r22++] = n2;
38110
- for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (T[n2] = i2, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i2++] = n2;
38111
- for (i2 >>= 7; n2 < f2; n2++) for (T[n2] = i2 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i2++] = n2;
38129
+ for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (T2[n2] = i2, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i2++] = n2;
38130
+ for (i2 >>= 7; n2 < f2; n2++) for (T2[n2] = i2 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i2++] = n2;
38112
38131
  for (t2 = 0; t2 <= g; t2++) s22[t2] = 0;
38113
38132
  for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
38114
38133
  for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s22[9]++;
38115
38134
  for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s22[7]++;
38116
38135
  for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
38117
38136
  for (Z(z2, l3 + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
38118
- O2 = new D2(z2, w2, u + 1, l3, g), B2 = new D2(C2, k2, 0, f2, g), R2 = new D2(new Array(0), x, 0, c2, p);
38119
- })(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree, O2), e2.d_desc = new F2(e2.dyn_dtree, B2), e2.bl_desc = new F2(e2.bl_tree, R2), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
38137
+ O = new D2(z2, w2, u + 1, l3, g), B2 = new D2(C2, k2, 0, f2, g), R = new D2(new Array(0), x2, 0, c2, p);
38138
+ })(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree, O), e2.d_desc = new F2(e2.dyn_dtree, B2), e2.bl_desc = new F2(e2.bl_tree, R), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
38120
38139
  }, r2._tr_stored_block = J2, r2._tr_flush_block = function(e2, t2, r22, n2) {
38121
38140
  var i2, s22, a2 = 0;
38122
38141
  0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = (function(e3) {
@@ -39192,17 +39211,17 @@ function deepActiveElement(doc2) {
39192
39211
  elt = elt.shadowRoot.activeElement;
39193
39212
  return elt;
39194
39213
  }
39195
- function caretFromPoint(doc2, x, y2) {
39214
+ function caretFromPoint(doc2, x2, y2) {
39196
39215
  if (doc2.caretPositionFromPoint) {
39197
39216
  try {
39198
- let pos = doc2.caretPositionFromPoint(x, y2);
39217
+ let pos = doc2.caretPositionFromPoint(x2, y2);
39199
39218
  if (pos)
39200
39219
  return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
39201
39220
  } catch (_2) {
39202
39221
  }
39203
39222
  }
39204
39223
  if (doc2.caretRangeFromPoint) {
39205
- let range2 = doc2.caretRangeFromPoint(x, y2);
39224
+ let range2 = doc2.caretRangeFromPoint(x2, y2);
39206
39225
  if (range2)
39207
39226
  return { node: range2.startContainer, offset: Math.min(nodeSize(range2.startContainer), range2.startOffset) };
39208
39227
  }
@@ -39301,8 +39320,8 @@ function scrollRectIntoView(view, rect, startDOM) {
39301
39320
  function storeScrollPos(view) {
39302
39321
  let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
39303
39322
  let refDOM, refTop;
39304
- for (let x = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
39305
- let dom = view.root.elementFromPoint(x, y2);
39323
+ for (let x2 = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
39324
+ let dom = view.root.elementFromPoint(x2, y2);
39306
39325
  if (!dom || dom == view.dom || !view.dom.contains(dom))
39307
39326
  continue;
39308
39327
  let localRect = dom.getBoundingClientRect();
@@ -39598,8 +39617,8 @@ function coordsAtPos(view, pos, side) {
39598
39617
  function flattenV(rect, left2) {
39599
39618
  if (rect.width == 0)
39600
39619
  return rect;
39601
- let x = left2 ? rect.left : rect.right;
39602
- return { top: rect.top, bottom: rect.bottom, left: x, right: x };
39620
+ let x2 = left2 ? rect.left : rect.right;
39621
+ return { top: rect.top, bottom: rect.bottom, left: x2, right: x2 };
39603
39622
  }
39604
39623
  function flattenH(rect, top2) {
39605
39624
  if (rect.height == 0)
@@ -44606,10 +44625,10 @@ const createTimeoutClass = (clearFunction) => class TT {
44606
44625
  const Timeout = createTimeoutClass(clearTimeout);
44607
44626
  const timeout = (timeout2, callback) => new Timeout(setTimeout(callback, timeout2));
44608
44627
  const rotr = (w2, shift2) => w2 >>> shift2 | w2 << 32 - shift2;
44609
- const sum0to256 = (x) => rotr(x, 2) ^ rotr(x, 13) ^ rotr(x, 22);
44610
- const sum1to256 = (x) => rotr(x, 6) ^ rotr(x, 11) ^ rotr(x, 25);
44611
- const sigma0to256 = (x) => rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3;
44612
- const sigma1to256 = (x) => rotr(x, 17) ^ rotr(x, 19) ^ x >>> 10;
44628
+ const sum0to256 = (x2) => rotr(x2, 2) ^ rotr(x2, 13) ^ rotr(x2, 22);
44629
+ const sum1to256 = (x2) => rotr(x2, 6) ^ rotr(x2, 11) ^ rotr(x2, 25);
44630
+ const sigma0to256 = (x2) => rotr(x2, 7) ^ rotr(x2, 18) ^ x2 >>> 3;
44631
+ const sigma1to256 = (x2) => rotr(x2, 17) ^ rotr(x2, 19) ^ x2 >>> 10;
44613
44632
  const K = new Uint32Array([
44614
44633
  1116352408,
44615
44634
  1899447441,
@@ -46622,6 +46641,7 @@ createNodesSchema_fn = function(nodeExtensions, attributes, editor) {
46622
46641
  code: callOrGet(getExtensionConfigField(extension, "code", context)),
46623
46642
  defining: callOrGet(getExtensionConfigField(extension, "defining", context)),
46624
46643
  isolating: callOrGet(getExtensionConfigField(extension, "isolating", context)),
46644
+ summary: getExtensionConfigField(extension, "summary", context),
46625
46645
  attrs,
46626
46646
  ...additionalNodeFields
46627
46647
  });
@@ -49270,39 +49290,44 @@ const getHighlightColor = ({ activeThreadId, threadId, isInternal, editor }) =>
49270
49290
  return `${color}${alpha}`;
49271
49291
  };
49272
49292
  const updateYdocDocxData = async (editor, ydoc) => {
49273
- ydoc = ydoc || editor.options.ydoc;
49274
- if (!ydoc) return;
49275
- if (!editor || editor.isDestroyed) return;
49276
- const metaMap = ydoc.getMap("meta");
49277
- const docxValue = metaMap.get("docx");
49278
- let docx = [];
49279
- if (Array.isArray(docxValue)) {
49280
- docx = [...docxValue];
49281
- } else if (docxValue && typeof docxValue.toArray === "function") {
49282
- docx = docxValue.toArray();
49283
- } else if (docxValue && typeof docxValue[Symbol.iterator] === "function") {
49284
- docx = Array.from(docxValue);
49285
- }
49286
- if (!docx.length && Array.isArray(editor.options.content)) {
49287
- docx = [...editor.options.content];
49288
- }
49289
- const newXml = await editor.exportDocx({ getUpdatedDocs: true });
49290
- Object.keys(newXml).forEach((key2) => {
49291
- const fileIndex = docx.findIndex((item) => item.name === key2);
49292
- if (fileIndex > -1) {
49293
- docx.splice(fileIndex, 1);
49294
- }
49295
- docx.push({
49296
- name: key2,
49297
- content: newXml[key2]
49293
+ try {
49294
+ ydoc = ydoc || editor?.options?.ydoc;
49295
+ if (!ydoc) return;
49296
+ if (!editor || editor.isDestroyed) return;
49297
+ const metaMap = ydoc.getMap("meta");
49298
+ const docxValue = metaMap.get("docx");
49299
+ let docx = [];
49300
+ if (Array.isArray(docxValue)) {
49301
+ docx = [...docxValue];
49302
+ } else if (docxValue && typeof docxValue.toArray === "function") {
49303
+ docx = docxValue.toArray();
49304
+ } else if (docxValue && typeof docxValue[Symbol.iterator] === "function") {
49305
+ docx = Array.from(docxValue);
49306
+ }
49307
+ if (!docx.length && Array.isArray(editor.options.content)) {
49308
+ docx = [...editor.options.content];
49309
+ }
49310
+ const newXml = await editor.exportDocx({ getUpdatedDocs: true });
49311
+ if (!newXml || typeof newXml !== "object") return;
49312
+ Object.keys(newXml).forEach((key2) => {
49313
+ const fileIndex = docx.findIndex((item) => item.name === key2);
49314
+ if (fileIndex > -1) {
49315
+ docx.splice(fileIndex, 1);
49316
+ }
49317
+ docx.push({
49318
+ name: key2,
49319
+ content: newXml[key2]
49320
+ });
49298
49321
  });
49299
- });
49300
- ydoc.transact(
49301
- () => {
49302
- metaMap.set("docx", docx);
49303
- },
49304
- { event: "docx-update", user: editor.options.user }
49305
- );
49322
+ ydoc.transact(
49323
+ () => {
49324
+ metaMap.set("docx", docx);
49325
+ },
49326
+ { event: "docx-update", user: editor.options.user }
49327
+ );
49328
+ } catch (error) {
49329
+ console.warn("[collaboration] Failed to update Ydoc docx data", error);
49330
+ }
49306
49331
  };
49307
49332
  const STYLE_ISOLATION_CLASS = "sd-editor-scoped";
49308
49333
  const applyStyleIsolationClass = (target) => {
@@ -51982,6 +52007,66 @@ const getLevel = (node) => {
51982
52007
  const lvl = node.getAttribute("data-level");
51983
52008
  return lvl ? parseInt(lvl, 10) : 0;
51984
52009
  };
52010
+ const summaryVersion = "0.31.0-next.9";
52011
+ const nodeKeys = [
52012
+ "group",
52013
+ "content",
52014
+ "marks",
52015
+ "inline",
52016
+ "atom",
52017
+ "defining",
52018
+ "code",
52019
+ "tableRole",
52020
+ "summary"
52021
+ ];
52022
+ const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
52023
+ function mapAttributes(attrs) {
52024
+ if (!attrs) return {};
52025
+ return Object.fromEntries(
52026
+ Object.entries(attrs).map(([name, attrSpec]) => {
52027
+ const defaultValue = attrSpec?.default;
52028
+ return [
52029
+ name,
52030
+ {
52031
+ default: defaultValue ?? null,
52032
+ required: defaultValue === void 0
52033
+ }
52034
+ ];
52035
+ })
52036
+ );
52037
+ }
52038
+ function pickSpecFields(spec, keys2) {
52039
+ return Object.fromEntries(keys2.map((key2) => [key2, spec[key2]]).filter(([, value]) => value !== void 0));
52040
+ }
52041
+ function buildSchemaSummary(schema, schemaVersion) {
52042
+ if (!schema || typeof schema !== "object") {
52043
+ throw new Error("Invalid schema: schema must be a valid ProseMirror Schema object.");
52044
+ }
52045
+ const resolvedSchemaVersion = schemaVersion || "current";
52046
+ const nodes = [];
52047
+ schema.spec.nodes.forEach((name, spec) => {
52048
+ nodes.push({
52049
+ name,
52050
+ attrs: mapAttributes(spec.attrs),
52051
+ ...pickSpecFields(spec, nodeKeys)
52052
+ });
52053
+ });
52054
+ const marks = [];
52055
+ schema.spec.marks.forEach((name, spec) => {
52056
+ marks.push({
52057
+ name,
52058
+ attrs: mapAttributes(spec.attrs),
52059
+ ...pickSpecFields(spec, markKeys)
52060
+ });
52061
+ });
52062
+ return {
52063
+ version: summaryVersion,
52064
+ schemaVersion: resolvedSchemaVersion,
52065
+ topNode: schema.topNodeType?.name,
52066
+ nodes,
52067
+ marks
52068
+ };
52069
+ }
51985
52070
  const _Editor = class _Editor2 extends EventEmitter$1 {
51986
52071
  /**
51987
52072
  * Create a new Editor instance
@@ -52362,6 +52447,53 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
52362
52447
  console.warn("updateDocumentVersion is deprecated, use setDocumentVersion instead");
52363
52448
  return _Editor2.setDocumentVersion(doc2, version2);
52364
52449
  }
52450
+ /**
52451
+ * Generates a schema summary for the current runtime schema.
52452
+ */
52453
+ async getSchemaSummaryJSON() {
52454
+ if (!this.schema) {
52455
+ throw new Error("Schema is not initialized.");
52456
+ }
52457
+ const schemaVersion = this.converter?.getSuperdocVersion?.() || "current";
52458
+ const suppressedNames = new Set(
52459
+ (this.extensionService?.extensions || []).filter((ext) => {
52460
+ const config2 = ext?.config;
52461
+ const suppressFlag = config2?.excludeFromSummaryJSON;
52462
+ return Boolean(suppressFlag);
52463
+ }).map((ext) => ext.name)
52464
+ );
52465
+ const summary = buildSchemaSummary(this.schema, schemaVersion);
52466
+ if (!suppressedNames.size) {
52467
+ return summary;
52468
+ }
52469
+ return {
52470
+ ...summary,
52471
+ nodes: summary.nodes.filter((node) => !suppressedNames.has(node.name)),
52472
+ marks: summary.marks.filter((mark) => !suppressedNames.has(mark.name))
52473
+ };
52474
+ }
52475
+ /**
52476
+ * Validates a ProseMirror JSON document against the current schema.
52477
+ */
52478
+ validateJSON(doc2) {
52479
+ if (!this.schema) {
52480
+ throw new Error("Schema is not initialized.");
52481
+ }
52482
+ const topNodeName = this.schema.topNodeType?.name || "doc";
52483
+ const normalizedDoc = Array.isArray(doc2) ? { type: topNodeName, content: doc2 } : doc2 && typeof doc2 === "object" && doc2.type ? doc2.type === topNodeName || doc2.type === "doc" ? doc2 : { type: topNodeName, content: [doc2] } : (() => {
52484
+ throw new Error("Invalid document shape: expected a node object or an array of node objects.");
52485
+ })();
52486
+ try {
52487
+ return this.schema.nodeFromJSON(normalizedDoc);
52488
+ } catch (error) {
52489
+ const detail = error instanceof Error ? error.message : String(error);
52490
+ const validationError = new Error(`Invalid document for current schema: ${detail}`);
52491
+ if (error instanceof Error) {
52492
+ validationError.cause = error;
52493
+ }
52494
+ throw validationError;
52495
+ }
52496
+ }
52365
52497
  /**
52366
52498
  * Creates all node views.
52367
52499
  */
@@ -52592,7 +52724,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
52592
52724
  { default: remarkStringify },
52593
52725
  { default: remarkGfm }
52594
52726
  ] = await Promise.all([
52595
- import("./index-BJ6cOegF-C-oX4LAe.es.js"),
52727
+ import("./index-mvOjU9rn-CQ6Y6D-C.es.js"),
52596
52728
  import("./index-DRCvimau-Cw339678.es.js"),
52597
52729
  import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
52598
52730
  import("./index-D_sWOSiG-DE96TaT5.es.js"),
@@ -52793,7 +52925,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
52793
52925
  * Process collaboration migrations
52794
52926
  */
52795
52927
  processCollaborationMigrations() {
52796
- console.debug("[checkVersionMigrations] Current editor version", "0.31.0-next.7");
52928
+ console.debug("[checkVersionMigrations] Current editor version", "0.31.0-next.9");
52797
52929
  if (!this.options.ydoc) return;
52798
52930
  const metaMap = this.options.ydoc.getMap("meta");
52799
52931
  let docVersion = metaMap.get("version");
@@ -54406,6 +54538,7 @@ const AiMark = Mark2.create({
54406
54538
  name: AiMarkName,
54407
54539
  group: "ai",
54408
54540
  inclusive: false,
54541
+ excludeFromSummaryJSON: true,
54409
54542
  addOptions() {
54410
54543
  return {
54411
54544
  htmlAttributes: { class: "sd-ai-highlight" }
@@ -54432,6 +54565,7 @@ const AiAnimationMark = Mark2.create({
54432
54565
  inclusive: false,
54433
54566
  spanning: false,
54434
54567
  excludes: AiAnimationMarkName,
54568
+ excludeFromSummaryJSON: true,
54435
54569
  addOptions() {
54436
54570
  return {
54437
54571
  htmlAttributes: {}
@@ -54463,6 +54597,7 @@ const AiAnimationMark = Mark2.create({
54463
54597
  const dotsLoader = "data:image/svg+xml,%3csvg%20fill='hsla(278,%2077.40%25,%2020.80%25,%200.65)'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4'%20cy='12'%20r='0'%3e%3canimate%20begin='0;spinner_z0Or.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3canimate%20begin='spinner_OLMs.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3canimate%20begin='spinner_UHR2.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3canimate%20id='spinner_lo66'%20begin='spinner_Aguh.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_z0Or'%20begin='spinner_lo66.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3c/circle%3e%3ccircle%20cx='4'%20cy='12'%20r='3'%3e%3canimate%20begin='0;spinner_z0Or.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3canimate%20begin='spinner_OLMs.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3canimate%20id='spinner_JsnR'%20begin='spinner_UHR2.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_Aguh'%20begin='spinner_JsnR.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3canimate%20begin='spinner_Aguh.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3c/circle%3e%3ccircle%20cx='12'%20cy='12'%20r='3'%3e%3canimate%20begin='0;spinner_z0Or.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3canimate%20id='spinner_hSjk'%20begin='spinner_OLMs.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_UHR2'%20begin='spinner_hSjk.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3canimate%20begin='spinner_UHR2.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3canimate%20begin='spinner_Aguh.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3c/circle%3e%3ccircle%20cx='20'%20cy='12'%20r='3'%3e%3canimate%20id='spinner_4v5M'%20begin='0;spinner_z0Or.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_OLMs'%20begin='spinner_4v5M.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3canimate%20begin='spinner_OLMs.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3canimate%20begin='spinner_UHR2.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3canimate%20begin='spinner_Aguh.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3c/circle%3e%3c/svg%3e";
54464
54598
  const AiLoaderNode = Node$1.create({
54465
54599
  name: AiLoaderNodeName,
54600
+ excludeFromSummaryJSON: true,
54466
54601
  group: "inline",
54467
54602
  inline: true,
54468
54603
  atom: true,
@@ -54668,16 +54803,16 @@ function getCursorPositionRelativeToContainer(view, eventLocation) {
54668
54803
  const { state: state2, dom } = view;
54669
54804
  const { selection } = state2;
54670
54805
  const containerRect = dom.getBoundingClientRect();
54671
- let x, y2;
54806
+ let x2, y2;
54672
54807
  if (typeof eventLocation.clientX === "number" && typeof eventLocation.clientY === "number") {
54673
- x = eventLocation.clientX - containerRect.left;
54808
+ x2 = eventLocation.clientX - containerRect.left;
54674
54809
  y2 = eventLocation.clientY - containerRect.top;
54675
54810
  } else {
54676
54811
  const cursorCoords = view.coordsAtPos(selection.from);
54677
- x = cursorCoords.left - containerRect.left;
54812
+ x2 = cursorCoords.left - containerRect.left;
54678
54813
  y2 = cursorCoords.top - containerRect.top;
54679
54814
  }
54680
- return { left: x, top: y2 };
54815
+ return { left: x2, top: y2 };
54681
54816
  }
54682
54817
  const SlashMenuPluginKey = new PluginKey("slashMenu");
54683
54818
  const SlashMenu = Extension.create({
@@ -54956,17 +55091,17 @@ class StructuredContentViewBase {
54956
55091
  if (!this.dom || this.contentDOM?.contains(target) || !dragHandle) {
54957
55092
  return;
54958
55093
  }
54959
- let x = 0;
55094
+ let x2 = 0;
54960
55095
  let y2 = 0;
54961
55096
  if (this.dom !== dragHandle) {
54962
55097
  const domBox = this.dom.getBoundingClientRect();
54963
55098
  const handleBox = dragHandle.getBoundingClientRect();
54964
55099
  const offsetX = event.offsetX ?? event.nativeEvent?.offsetX;
54965
55100
  const offsetY = event.offsetY ?? event.nativeEvent?.offsetY;
54966
- x = handleBox.x - domBox.x + offsetX;
55101
+ x2 = handleBox.x - domBox.x + offsetX;
54967
55102
  y2 = handleBox.y - domBox.y + offsetY;
54968
55103
  }
54969
- event.dataTransfer?.setDragImage(this.dom, x, y2);
55104
+ event.dataTransfer?.setDragImage(this.dom, x2, y2);
54970
55105
  const pos = this.getPos();
54971
55106
  if (typeof pos !== "number") {
54972
55107
  return;
@@ -56050,6 +56185,7 @@ const DocumentPartObject = Node$1.create({
56050
56185
  group: "block",
56051
56186
  content: "block*",
56052
56187
  isolating: true,
56188
+ excludeFromSummaryJSON: true,
56053
56189
  addOptions() {
56054
56190
  return {
56055
56191
  htmlAttributes: {
@@ -58143,6 +58279,7 @@ const Paragraph = OxmlNode.create({
58143
58279
  group: "block",
58144
58280
  content: "inline*",
58145
58281
  inline: false,
58282
+ summary: "The paragraph node mirrors MS Word w:p paragraphs, and also represents lists in the schema.",
58146
58283
  addOptions() {
58147
58284
  return {
58148
58285
  headingLevels: [1, 2, 3, 4, 5, 6],
@@ -63002,17 +63139,17 @@ function parseToRgba(color) {
63002
63139
  const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
63003
63140
  if (reducedHexMatch) {
63004
63141
  const arr = Array.from(reducedHexMatch).slice(1);
63005
- return [...arr.slice(0, 3).map((x) => parseInt(r$1(x, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
63142
+ return [...arr.slice(0, 3).map((x2) => parseInt(r$1(x2, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
63006
63143
  }
63007
63144
  const hexMatch = hexRegex$1.exec(normalizedColor);
63008
63145
  if (hexMatch) {
63009
63146
  const arr = Array.from(hexMatch).slice(1);
63010
- return [...arr.slice(0, 3).map((x) => parseInt(x, 16)), parseInt(arr[3] || "ff", 16) / 255];
63147
+ return [...arr.slice(0, 3).map((x2) => parseInt(x2, 16)), parseInt(arr[3] || "ff", 16) / 255];
63011
63148
  }
63012
63149
  const rgbaMatch = rgbaRegex$1.exec(normalizedColor);
63013
63150
  if (rgbaMatch) {
63014
63151
  const arr = Array.from(rgbaMatch).slice(1);
63015
- return [...arr.slice(0, 3).map((x) => parseInt(x, 10)), parseFloat(arr[3] || "1")];
63152
+ return [...arr.slice(0, 3).map((x2) => parseInt(x2, 10)), parseFloat(arr[3] || "1")];
63016
63153
  }
63017
63154
  const hslaMatch = hslaRegex$1.exec(normalizedColor);
63018
63155
  if (hslaMatch) {
@@ -63031,7 +63168,7 @@ function hash$2(str) {
63031
63168
  }
63032
63169
  return (hash2 >>> 0) % 2341;
63033
63170
  }
63034
- const colorToInt = (x) => parseInt(x.replace(/_/g, ""), 36);
63171
+ const colorToInt = (x2) => parseInt(x2.replace(/_/g, ""), 36);
63035
63172
  const compressedColorMap = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((acc, next) => {
63036
63173
  const key2 = colorToInt(next.substring(0, 3));
63037
63174
  const hex2 = colorToInt(next.substring(3)).toString(16);
@@ -63095,8 +63232,8 @@ const hslToRgb = (hue, saturation, lightness) => {
63095
63232
  };
63096
63233
  function toHex(color) {
63097
63234
  const [r2, g, b2, a] = parseToRgba(color);
63098
- let hex2 = (x) => {
63099
- const h2 = guard(0, 255, x).toString(16);
63235
+ let hex2 = (x2) => {
63236
+ const h2 = guard(0, 255, x2).toString(16);
63100
63237
  return h2.length === 1 ? `0${h2}` : h2;
63101
63238
  };
63102
63239
  return `#${hex2(r2)}${hex2(g)}${hex2(b2)}${a < 1 ? hex2(Math.round(a * 255)) : ""}`;
@@ -65218,10 +65355,10 @@ const Image = Node$1.create({
65218
65355
  let minX = 0;
65219
65356
  let minY = 0;
65220
65357
  let maxY = 0;
65221
- attrs.polygon.forEach(([x, y2]) => {
65222
- if (floatRight && x < horizontalOffset) horizontalOffset = x;
65223
- if (x > maxX) maxX = x;
65224
- if (x < minX) minX = x;
65358
+ attrs.polygon.forEach(([x2, y2]) => {
65359
+ if (floatRight && x2 < horizontalOffset) horizontalOffset = x2;
65360
+ if (x2 > maxX) maxX = x2;
65361
+ if (x2 < minX) minX = x2;
65225
65362
  if (y2 > maxY) maxY = y2;
65226
65363
  if (y2 < minY) minY = y2;
65227
65364
  });
@@ -65230,7 +65367,7 @@ const Image = Node$1.create({
65230
65367
  const scaleWidth = Math.min(1, size2.width / originalWidth);
65231
65368
  const scaleHeight = Math.min(1, size2.height / originalHeight);
65232
65369
  const verticalOffset = Math.max(0, marginOffset.top);
65233
- const points = attrs.polygon.map(([x, y2]) => `${horizontalOffset + x * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
65370
+ const points = attrs.polygon.map(([x2, y2]) => `${horizontalOffset + x2 * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
65234
65371
  style2 += `shape-outside: polygon(${points});`;
65235
65372
  }
65236
65373
  break;
@@ -65656,6 +65793,7 @@ const Mention = Node$1.create({
65656
65793
  group: "inline",
65657
65794
  inline: true,
65658
65795
  selectable: false,
65796
+ excludeFromSummaryJSON: true,
65659
65797
  atom: true,
65660
65798
  addOptions() {
65661
65799
  return {
@@ -68888,13 +69026,13 @@ class ShapeGroupView {
68888
69026
  createShapeElement(shape) {
68889
69027
  const attrs = shape.attrs;
68890
69028
  if (!attrs) return null;
68891
- const x = attrs.x || 0;
69029
+ const x2 = attrs.x || 0;
68892
69030
  const y2 = attrs.y || 0;
68893
69031
  const width = attrs.width || 100;
68894
69032
  const height = attrs.height || 100;
68895
69033
  const g = document.createElementNS("http://www.w3.org/2000/svg", "g");
68896
69034
  const transforms = [];
68897
- transforms.push(`translate(${x}, ${y2})`);
69035
+ transforms.push(`translate(${x2}, ${y2})`);
68898
69036
  if (attrs.rotation !== 0) {
68899
69037
  transforms.push(`rotate(${attrs.rotation} ${width / 2} ${height / 2})`);
68900
69038
  }
@@ -70636,7 +70774,7 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
70636
70774
  }
70637
70775
  var _ref = isElement$2(element) ? getWindow$1(element) : window, visualViewport = _ref.visualViewport;
70638
70776
  var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
70639
- var x = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
70777
+ var x2 = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
70640
70778
  var y2 = (clientRect2.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
70641
70779
  var width = clientRect2.width / scaleX;
70642
70780
  var height = clientRect2.height / scaleY;
@@ -70644,10 +70782,10 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
70644
70782
  width,
70645
70783
  height,
70646
70784
  top: y2,
70647
- right: x + width,
70785
+ right: x2 + width,
70648
70786
  bottom: y2 + height,
70649
- left: x,
70650
- x,
70787
+ left: x2,
70788
+ x: x2,
70651
70789
  y: y2
70652
70790
  };
70653
70791
  }
@@ -70848,25 +70986,25 @@ var unsetSides = {
70848
70986
  left: "auto"
70849
70987
  };
70850
70988
  function roundOffsetsByDPR(_ref, win) {
70851
- var x = _ref.x, y2 = _ref.y;
70989
+ var x2 = _ref.x, y2 = _ref.y;
70852
70990
  var dpr = win.devicePixelRatio || 1;
70853
70991
  return {
70854
- x: round$1(x * dpr) / dpr || 0,
70992
+ x: round$1(x2 * dpr) / dpr || 0,
70855
70993
  y: round$1(y2 * dpr) / dpr || 0
70856
70994
  };
70857
70995
  }
70858
70996
  function mapToStyles(_ref2) {
70859
70997
  var _Object$assign2;
70860
70998
  var popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
70861
- var _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y2 = _offsets$y === void 0 ? 0 : _offsets$y;
70999
+ var _offsets$x = offsets.x, x2 = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y2 = _offsets$y === void 0 ? 0 : _offsets$y;
70862
71000
  var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
70863
- x,
71001
+ x: x2,
70864
71002
  y: y2
70865
71003
  }) : {
70866
- x,
71004
+ x: x2,
70867
71005
  y: y2
70868
71006
  };
70869
- x = _ref3.x;
71007
+ x2 = _ref3.x;
70870
71008
  y2 = _ref3.y;
70871
71009
  var hasX = offsets.hasOwnProperty("x");
70872
71010
  var hasY = offsets.hasOwnProperty("y");
@@ -70900,27 +71038,27 @@ function mapToStyles(_ref2) {
70900
71038
  // $FlowFixMe[prop-missing]
70901
71039
  offsetParent[widthProp]
70902
71040
  );
70903
- x -= offsetX - popperRect.width;
70904
- x *= gpuAcceleration ? 1 : -1;
71041
+ x2 -= offsetX - popperRect.width;
71042
+ x2 *= gpuAcceleration ? 1 : -1;
70905
71043
  }
70906
71044
  }
70907
71045
  var commonStyles = Object.assign({
70908
71046
  position
70909
71047
  }, adaptive && unsetSides);
70910
71048
  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
70911
- x,
71049
+ x: x2,
70912
71050
  y: y2
70913
71051
  }, getWindow$1(popper2)) : {
70914
- x,
71052
+ x: x2,
70915
71053
  y: y2
70916
71054
  };
70917
- x = _ref4.x;
71055
+ x2 = _ref4.x;
70918
71056
  y2 = _ref4.y;
70919
71057
  if (gpuAcceleration) {
70920
71058
  var _Object$assign;
70921
- return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y2 + "px)" : "translate3d(" + x + "px, " + y2 + "px, 0)", _Object$assign));
71059
+ return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x2 + "px, " + y2 + "px)" : "translate3d(" + x2 + "px, " + y2 + "px, 0)", _Object$assign));
70922
71060
  }
70923
- return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
71061
+ return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x2 + "px" : "", _Object$assign2.transform = "", _Object$assign2));
70924
71062
  }
70925
71063
  function computeStyles(_ref5) {
70926
71064
  var state2 = _ref5.state, options = _ref5.options;
@@ -71034,21 +71172,21 @@ function getViewportRect$1(element, strategy) {
71034
71172
  var visualViewport = win.visualViewport;
71035
71173
  var width = html.clientWidth;
71036
71174
  var height = html.clientHeight;
71037
- var x = 0;
71175
+ var x2 = 0;
71038
71176
  var y2 = 0;
71039
71177
  if (visualViewport) {
71040
71178
  width = visualViewport.width;
71041
71179
  height = visualViewport.height;
71042
71180
  var layoutViewport = isLayoutViewport();
71043
71181
  if (layoutViewport || !layoutViewport && strategy === "fixed") {
71044
- x = visualViewport.offsetLeft;
71182
+ x2 = visualViewport.offsetLeft;
71045
71183
  y2 = visualViewport.offsetTop;
71046
71184
  }
71047
71185
  }
71048
71186
  return {
71049
71187
  width,
71050
71188
  height,
71051
- x: x + getWindowScrollBarX$1(element),
71189
+ x: x2 + getWindowScrollBarX$1(element),
71052
71190
  y: y2
71053
71191
  };
71054
71192
  }
@@ -71059,15 +71197,15 @@ function getDocumentRect$1(element) {
71059
71197
  var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
71060
71198
  var width = max$1(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
71061
71199
  var height = max$1(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
71062
- var x = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
71200
+ var x2 = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
71063
71201
  var y2 = -winScroll.scrollTop;
71064
71202
  if (getComputedStyle$2(body || html).direction === "rtl") {
71065
- x += max$1(html.clientWidth, body ? body.clientWidth : 0) - width;
71203
+ x2 += max$1(html.clientWidth, body ? body.clientWidth : 0) - width;
71066
71204
  }
71067
71205
  return {
71068
71206
  width,
71069
71207
  height,
71070
- x,
71208
+ x: x2,
71071
71209
  y: y2
71072
71210
  };
71073
71211
  }
@@ -71444,9 +71582,9 @@ function offset(_ref2) {
71444
71582
  acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
71445
71583
  return acc;
71446
71584
  }, {});
71447
- var _data$state$placement = data[state2.placement], x = _data$state$placement.x, y2 = _data$state$placement.y;
71585
+ var _data$state$placement = data[state2.placement], x2 = _data$state$placement.x, y2 = _data$state$placement.y;
71448
71586
  if (state2.modifiersData.popperOffsets != null) {
71449
- state2.modifiersData.popperOffsets.x += x;
71587
+ state2.modifiersData.popperOffsets.x += x2;
71450
71588
  state2.modifiersData.popperOffsets.y += y2;
71451
71589
  }
71452
71590
  state2.modifiersData[name] = data;
@@ -73397,7 +73535,7 @@ function getPaddingObject(padding) {
73397
73535
  }
73398
73536
  function rectToClientRect(rect) {
73399
73537
  const {
73400
- x,
73538
+ x: x2,
73401
73539
  y: y2,
73402
73540
  width,
73403
73541
  height
@@ -73406,10 +73544,10 @@ function rectToClientRect(rect) {
73406
73544
  width,
73407
73545
  height,
73408
73546
  top: y2,
73409
- left: x,
73410
- right: x + width,
73547
+ left: x2,
73548
+ right: x2 + width,
73411
73549
  bottom: y2 + height,
73412
- x,
73550
+ x: x2,
73413
73551
  y: y2
73414
73552
  };
73415
73553
  }
@@ -73483,7 +73621,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
73483
73621
  strategy
73484
73622
  });
73485
73623
  let {
73486
- x,
73624
+ x: x2,
73487
73625
  y: y2
73488
73626
  } = computeCoordsFromPlacement(rects, placement, rtl);
73489
73627
  let statefulPlacement = placement;
@@ -73500,7 +73638,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
73500
73638
  data,
73501
73639
  reset
73502
73640
  } = await fn2({
73503
- x,
73641
+ x: x2,
73504
73642
  y: y2,
73505
73643
  initialPlacement: placement,
73506
73644
  placement: statefulPlacement,
@@ -73513,7 +73651,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
73513
73651
  floating
73514
73652
  }
73515
73653
  });
73516
- x = nextX != null ? nextX : x;
73654
+ x2 = nextX != null ? nextX : x2;
73517
73655
  y2 = nextY != null ? nextY : y2;
73518
73656
  middlewareData = {
73519
73657
  ...middlewareData,
@@ -73536,7 +73674,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
73536
73674
  }) : reset.rects;
73537
73675
  }
73538
73676
  ({
73539
- x,
73677
+ x: x2,
73540
73678
  y: y2
73541
73679
  } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
73542
73680
  }
@@ -73544,7 +73682,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
73544
73682
  }
73545
73683
  }
73546
73684
  return {
73547
- x,
73685
+ x: x2,
73548
73686
  y: y2,
73549
73687
  placement: statefulPlacement,
73550
73688
  strategy,
@@ -73557,7 +73695,7 @@ async function detectOverflow(state2, options) {
73557
73695
  options = {};
73558
73696
  }
73559
73697
  const {
73560
- x,
73698
+ x: x2,
73561
73699
  y: y2,
73562
73700
  platform: platform2,
73563
73701
  rects,
@@ -73581,7 +73719,7 @@ async function detectOverflow(state2, options) {
73581
73719
  strategy
73582
73720
  }));
73583
73721
  const rect = elementContext === "floating" ? {
73584
- x,
73722
+ x: x2,
73585
73723
  y: y2,
73586
73724
  width: rects.floating.width,
73587
73725
  height: rects.floating.height
@@ -73850,16 +73988,16 @@ function getScale(element) {
73850
73988
  height,
73851
73989
  $: $2
73852
73990
  } = getCssDimensions(domElement);
73853
- let x = ($2 ? round(rect.width) : rect.width) / width;
73991
+ let x2 = ($2 ? round(rect.width) : rect.width) / width;
73854
73992
  let y2 = ($2 ? round(rect.height) : rect.height) / height;
73855
- if (!x || !Number.isFinite(x)) {
73856
- x = 1;
73993
+ if (!x2 || !Number.isFinite(x2)) {
73994
+ x2 = 1;
73857
73995
  }
73858
73996
  if (!y2 || !Number.isFinite(y2)) {
73859
73997
  y2 = 1;
73860
73998
  }
73861
73999
  return {
73862
- x,
74000
+ x: x2,
73863
74001
  y: y2
73864
74002
  };
73865
74003
  }
@@ -73903,7 +74041,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
73903
74041
  }
73904
74042
  }
73905
74043
  const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
73906
- let x = (clientRect2.left + visualOffsets.x) / scale.x;
74044
+ let x2 = (clientRect2.left + visualOffsets.x) / scale.x;
73907
74045
  let y2 = (clientRect2.top + visualOffsets.y) / scale.y;
73908
74046
  let width = clientRect2.width / scale.x;
73909
74047
  let height = clientRect2.height / scale.y;
@@ -73918,11 +74056,11 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
73918
74056
  const css = getComputedStyle$1(currentIFrame);
73919
74057
  const left2 = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
73920
74058
  const top2 = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
73921
- x *= iframeScale.x;
74059
+ x2 *= iframeScale.x;
73922
74060
  y2 *= iframeScale.y;
73923
74061
  width *= iframeScale.x;
73924
74062
  height *= iframeScale.y;
73925
- x += left2;
74063
+ x2 += left2;
73926
74064
  y2 += top2;
73927
74065
  currentWin = getWindow(currentIFrame);
73928
74066
  currentIFrame = getFrameElement(currentWin);
@@ -73931,7 +74069,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
73931
74069
  return rectToClientRect({
73932
74070
  width,
73933
74071
  height,
73934
- x,
74072
+ x: x2,
73935
74073
  y: y2
73936
74074
  });
73937
74075
  }
@@ -73944,10 +74082,10 @@ function getWindowScrollBarX(element, rect) {
73944
74082
  }
73945
74083
  function getHTMLOffset(documentElement, scroll) {
73946
74084
  const htmlRect = documentElement.getBoundingClientRect();
73947
- const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
74085
+ const x2 = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
73948
74086
  const y2 = htmlRect.top + scroll.scrollTop;
73949
74087
  return {
73950
- x,
74088
+ x: x2,
73951
74089
  y: y2
73952
74090
  };
73953
74091
  }
@@ -73999,15 +74137,15 @@ function getDocumentRect(element) {
73999
74137
  const body = element.ownerDocument.body;
74000
74138
  const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
74001
74139
  const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
74002
- let x = -scroll.scrollLeft + getWindowScrollBarX(element);
74140
+ let x2 = -scroll.scrollLeft + getWindowScrollBarX(element);
74003
74141
  const y2 = -scroll.scrollTop;
74004
74142
  if (getComputedStyle$1(body).direction === "rtl") {
74005
- x += max(html.clientWidth, body.clientWidth) - width;
74143
+ x2 += max(html.clientWidth, body.clientWidth) - width;
74006
74144
  }
74007
74145
  return {
74008
74146
  width,
74009
74147
  height,
74010
- x,
74148
+ x: x2,
74011
74149
  y: y2
74012
74150
  };
74013
74151
  }
@@ -74018,14 +74156,14 @@ function getViewportRect(element, strategy) {
74018
74156
  const visualViewport = win.visualViewport;
74019
74157
  let width = html.clientWidth;
74020
74158
  let height = html.clientHeight;
74021
- let x = 0;
74159
+ let x2 = 0;
74022
74160
  let y2 = 0;
74023
74161
  if (visualViewport) {
74024
74162
  width = visualViewport.width;
74025
74163
  height = visualViewport.height;
74026
74164
  const visualViewportBased = isWebKit();
74027
74165
  if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
74028
- x = visualViewport.offsetLeft;
74166
+ x2 = visualViewport.offsetLeft;
74029
74167
  y2 = visualViewport.offsetTop;
74030
74168
  }
74031
74169
  }
@@ -74045,7 +74183,7 @@ function getViewportRect(element, strategy) {
74045
74183
  return {
74046
74184
  width,
74047
74185
  height,
74048
- x,
74186
+ x: x2,
74049
74187
  y: y2
74050
74188
  };
74051
74189
  }
@@ -74057,12 +74195,12 @@ function getInnerBoundingClientRect(element, strategy) {
74057
74195
  const scale = isHTMLElement$2(element) ? getScale(element) : createCoords(1);
74058
74196
  const width = element.clientWidth * scale.x;
74059
74197
  const height = element.clientHeight * scale.y;
74060
- const x = left2 * scale.x;
74198
+ const x2 = left2 * scale.x;
74061
74199
  const y2 = top2 * scale.y;
74062
74200
  return {
74063
74201
  width,
74064
74202
  height,
74065
- x,
74203
+ x: x2,
74066
74204
  y: y2
74067
74205
  };
74068
74206
  }
@@ -74182,10 +74320,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
74182
74320
  setLeftRTLScrollbarOffset();
74183
74321
  }
74184
74322
  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
74185
- const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
74323
+ const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
74186
74324
  const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
74187
74325
  return {
74188
- x,
74326
+ x: x2,
74189
74327
  y: y2,
74190
74328
  width: rect.width,
74191
74329
  height: rect.height
@@ -75064,22 +75202,22 @@ function createFloatingSeparator(separator, editor) {
75064
75202
  const rect = elements.reference.getBoundingClientRect();
75065
75203
  const containerRect = editorElement.getBoundingClientRect();
75066
75204
  const scaleFactor = getScaleFactor(editorElement);
75067
- const x = Math.round((rect.left - containerRect.left) / scaleFactor);
75205
+ const x2 = Math.round((rect.left - containerRect.left) / scaleFactor);
75068
75206
  const y2 = Math.round((rect.top - containerRect.top) / scaleFactor);
75069
75207
  const width = Math.round(rect.width / scaleFactor);
75070
75208
  const height = Math.round(rect.height / scaleFactor);
75071
75209
  return {
75072
- x,
75210
+ x: x2,
75073
75211
  y: y2,
75074
75212
  data: { width, height }
75075
75213
  };
75076
75214
  }
75077
75215
  }
75078
75216
  ]
75079
- }).then(({ x, y: y2, middlewareData }) => {
75217
+ }).then(({ x: x2, y: y2, middlewareData }) => {
75080
75218
  Object.assign(floatingSeparator.style, {
75081
75219
  top: `${y2}px`,
75082
- left: `${x}px`,
75220
+ left: `${x2}px`,
75083
75221
  width: `${middlewareData.copy.width}px`,
75084
75222
  height: `${middlewareData.copy.height}px`,
75085
75223
  visibility: middlewareData.hide?.referenceHidden ? "hidden" : "visible"
@@ -78093,14 +78231,14 @@ function ensureViewBoundingRect() {
78093
78231
  }
78094
78232
  return viewMeasurer.getBoundingClientRect();
78095
78233
  }
78096
- function getPointRect(x, y2) {
78234
+ function getPointRect(x2, y2) {
78097
78235
  const viewRect = ensureViewBoundingRect();
78098
78236
  return {
78099
78237
  top: y2,
78100
- left: x,
78238
+ left: x2,
78101
78239
  height: 0,
78102
78240
  width: 0,
78103
- right: viewRect.width - x,
78241
+ right: viewRect.width - x2,
78104
78242
  bottom: viewRect.height - y2
78105
78243
  };
78106
78244
  }
@@ -78506,7 +78644,7 @@ const LazyTeleport = defineComponent({
78506
78644
  };
78507
78645
  },
78508
78646
  render() {
78509
- return this.showTeleport ? this.disabled ? getSlot("lazy-teleport", this.$slots) : h$1(Teleport, {
78647
+ return this.showTeleport ? this.disabled ? getSlot("lazy-teleport", this.$slots) : h(Teleport, {
78510
78648
  disabled: this.disabled,
78511
78649
  to: this.mergedTo
78512
78650
  }, getSlot("lazy-teleport", this.$slots)) : null;
@@ -78938,8 +79076,8 @@ const VFollower = defineComponent({
78938
79076
  if (follower === null)
78939
79077
  return;
78940
79078
  const target = VBinder.targetRef;
78941
- const { x, y: y2, overlap } = props;
78942
- const targetRect = x !== void 0 && y2 !== void 0 ? getPointRect(x, y2) : getRect(target);
79079
+ const { x: x2, y: y2, overlap } = props;
79080
+ const targetRect = x2 !== void 0 && y2 !== void 0 ? getPointRect(x2, y2) : getRect(target);
78943
79081
  follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
78944
79082
  follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
78945
79083
  const { width, minWidth, placement, internalShift, flip: flip2 } = props;
@@ -79034,18 +79172,18 @@ const VFollower = defineComponent({
79034
79172
  };
79035
79173
  },
79036
79174
  render() {
79037
- return h$1(LazyTeleport, {
79175
+ return h(LazyTeleport, {
79038
79176
  show: this.show,
79039
79177
  to: this.mergedTo,
79040
79178
  disabled: this.teleportDisabled
79041
79179
  }, {
79042
79180
  default: () => {
79043
79181
  var _a2, _b;
79044
- const vNode = h$1("div", {
79182
+ const vNode = h("div", {
79045
79183
  class: ["v-binder-follower-container", this.containerClass],
79046
79184
  ref: "offsetContainerRef"
79047
79185
  }, [
79048
- h$1("div", {
79186
+ h("div", {
79049
79187
  class: "v-binder-follower-content",
79050
79188
  ref: "followerRef"
79051
79189
  }, (_b = (_a2 = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a2))
@@ -79109,8 +79247,8 @@ var ResizeObserverSize = /* @__PURE__ */ (function() {
79109
79247
  return ResizeObserverSize2;
79110
79248
  })();
79111
79249
  var DOMRectReadOnly = (function() {
79112
- function DOMRectReadOnly2(x, y2, width, height) {
79113
- this.x = x;
79250
+ function DOMRectReadOnly2(x2, y2, width, height) {
79251
+ this.x = x2;
79114
79252
  this.y = y2;
79115
79253
  this.width = width;
79116
79254
  this.height = height;
@@ -79121,8 +79259,8 @@ var DOMRectReadOnly = (function() {
79121
79259
  return freeze(this);
79122
79260
  }
79123
79261
  DOMRectReadOnly2.prototype.toJSON = function() {
79124
- var _a2 = this, x = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
79125
- return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
79262
+ var _a2 = this, x2 = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
79263
+ return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
79126
79264
  };
79127
79265
  DOMRectReadOnly2.fromRect = function(rectangle) {
79128
79266
  return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
@@ -79877,8 +80015,8 @@ const FocusTrap = defineComponent({
79877
80015
  if (this.disabled)
79878
80016
  return defaultSlot();
79879
80017
  const { active, focusableStyle } = this;
79880
- return h$1(Fragment$1, null, [
79881
- h$1("div", {
80018
+ return h(Fragment$1, null, [
80019
+ h("div", {
79882
80020
  "aria-hidden": "true",
79883
80021
  tabindex: active ? "0" : "-1",
79884
80022
  ref: "focusableStartRef",
@@ -79886,7 +80024,7 @@ const FocusTrap = defineComponent({
79886
80024
  onFocus: this.handleStartFocus
79887
80025
  }),
79888
80026
  defaultSlot(),
79889
- h$1("div", {
80027
+ h("div", {
79890
80028
  "aria-hidden": "true",
79891
80029
  style: focusableStyle,
79892
80030
  ref: "focusableEndRef",
@@ -81590,11 +81728,11 @@ useTheme.props = {
81590
81728
  const ChevronRightIcon = defineComponent({
81591
81729
  name: "ChevronRight",
81592
81730
  render() {
81593
- return h$1("svg", {
81731
+ return h("svg", {
81594
81732
  viewBox: "0 0 16 16",
81595
81733
  fill: "none",
81596
81734
  xmlns: "http://www.w3.org/2000/svg"
81597
- }, h$1("path", {
81735
+ }, h("path", {
81598
81736
  d: "M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",
81599
81737
  fill: "currentColor"
81600
81738
  }));
@@ -82567,16 +82705,16 @@ const Scrollbar = defineComponent({
82567
82705
  if (!this.scrollable) return (_a2 = $slots.default) === null || _a2 === void 0 ? void 0 : _a2.call($slots);
82568
82706
  const triggerIsNone = this.trigger === "none";
82569
82707
  const createYRail = (className, style2) => {
82570
- return h$1("div", {
82708
+ return h("div", {
82571
82709
  ref: "yRailRef",
82572
82710
  class: [`${mergedClsPrefix}-scrollbar-rail`, `${mergedClsPrefix}-scrollbar-rail--vertical`, `${mergedClsPrefix}-scrollbar-rail--vertical--${yPlacement}`, className],
82573
82711
  "data-scrollbar-rail": true,
82574
82712
  style: [style2 || "", this.verticalRailStyle],
82575
82713
  "aria-hidden": true
82576
- }, h$1(triggerIsNone ? Wrapper : Transition, triggerIsNone ? null : {
82714
+ }, h(triggerIsNone ? Wrapper : Transition, triggerIsNone ? null : {
82577
82715
  name: "fade-in-transition"
82578
82716
  }, {
82579
- default: () => this.needYBar && this.isShowYBar && !this.isIos ? h$1("div", {
82717
+ default: () => this.needYBar && this.isShowYBar && !this.isIos ? h("div", {
82580
82718
  class: `${mergedClsPrefix}-scrollbar-rail__scrollbar`,
82581
82719
  style: {
82582
82720
  height: this.yBarSizePx,
@@ -82589,24 +82727,24 @@ const Scrollbar = defineComponent({
82589
82727
  const createChildren = () => {
82590
82728
  var _a22, _b;
82591
82729
  (_a22 = this.onRender) === null || _a22 === void 0 ? void 0 : _a22.call(this);
82592
- return h$1("div", mergeProps(this.$attrs, {
82730
+ return h("div", mergeProps(this.$attrs, {
82593
82731
  role: "none",
82594
82732
  ref: "wrapperRef",
82595
82733
  class: [`${mergedClsPrefix}-scrollbar`, this.themeClass, rtlEnabled && `${mergedClsPrefix}-scrollbar--rtl`],
82596
82734
  style: this.cssVars,
82597
82735
  onMouseenter: triggerDisplayManually ? void 0 : this.handleMouseEnterWrapper,
82598
82736
  onMouseleave: triggerDisplayManually ? void 0 : this.handleMouseLeaveWrapper
82599
- }), [this.container ? (_b = $slots.default) === null || _b === void 0 ? void 0 : _b.call($slots) : h$1("div", {
82737
+ }), [this.container ? (_b = $slots.default) === null || _b === void 0 ? void 0 : _b.call($slots) : h("div", {
82600
82738
  role: "none",
82601
82739
  ref: "containerRef",
82602
82740
  class: [`${mergedClsPrefix}-scrollbar-container`, this.containerClass],
82603
82741
  style: this.containerStyle,
82604
82742
  onScroll: this.handleScroll,
82605
82743
  onWheel: this.onWheel
82606
- }, h$1(VResizeObserver, {
82744
+ }, h(VResizeObserver, {
82607
82745
  onResize: this.handleContentResize
82608
82746
  }, {
82609
- default: () => h$1("div", {
82747
+ default: () => h("div", {
82610
82748
  ref: "contentRef",
82611
82749
  role: "none",
82612
82750
  style: [{
@@ -82614,16 +82752,16 @@ const Scrollbar = defineComponent({
82614
82752
  }, this.contentStyle],
82615
82753
  class: [`${mergedClsPrefix}-scrollbar-content`, this.contentClass]
82616
82754
  }, $slots)
82617
- })), internalHoistYRail ? null : createYRail(void 0, void 0), xScrollable && h$1("div", {
82755
+ })), internalHoistYRail ? null : createYRail(void 0, void 0), xScrollable && h("div", {
82618
82756
  ref: "xRailRef",
82619
82757
  class: [`${mergedClsPrefix}-scrollbar-rail`, `${mergedClsPrefix}-scrollbar-rail--horizontal`, `${mergedClsPrefix}-scrollbar-rail--horizontal--${xPlacement}`],
82620
82758
  style: this.horizontalRailStyle,
82621
82759
  "data-scrollbar-rail": true,
82622
82760
  "aria-hidden": true
82623
- }, h$1(triggerIsNone ? Wrapper : Transition, triggerIsNone ? null : {
82761
+ }, h(triggerIsNone ? Wrapper : Transition, triggerIsNone ? null : {
82624
82762
  name: "fade-in-transition"
82625
82763
  }, {
82626
- default: () => this.needXBar && this.isShowXBar && !this.isIos ? h$1("div", {
82764
+ default: () => this.needXBar && this.isShowXBar && !this.isIos ? h("div", {
82627
82765
  class: `${mergedClsPrefix}-scrollbar-rail__scrollbar`,
82628
82766
  style: {
82629
82767
  width: this.xBarSizePx,
@@ -82634,13 +82772,13 @@ const Scrollbar = defineComponent({
82634
82772
  }) : null
82635
82773
  }))]);
82636
82774
  };
82637
- const scrollbarNode = this.container ? createChildren() : h$1(VResizeObserver, {
82775
+ const scrollbarNode = this.container ? createChildren() : h(VResizeObserver, {
82638
82776
  onResize: this.handleContainerResize
82639
82777
  }, {
82640
82778
  default: createChildren
82641
82779
  });
82642
82780
  if (internalHoistYRail) {
82643
- return h$1(Fragment$1, null, scrollbarNode, createYRail(this.themeClass, this.cssVars));
82781
+ return h(Fragment$1, null, scrollbarNode, createYRail(this.themeClass, this.cssVars));
82644
82782
  } else {
82645
82783
  return scrollbarNode;
82646
82784
  }
@@ -83530,11 +83668,11 @@ function renderArrow({
83530
83668
  arrowWrapperStyle,
83531
83669
  clsPrefix
83532
83670
  }) {
83533
- return h$1("div", {
83671
+ return h("div", {
83534
83672
  key: "__popover-arrow__",
83535
83673
  style: arrowWrapperStyle,
83536
83674
  class: [`${clsPrefix}-popover-arrow-wrapper`, arrowWrapperClass]
83537
- }, h$1("div", {
83675
+ }, h("div", {
83538
83676
  class: [`${clsPrefix}-popover-arrow`, arrowClass],
83539
83677
  style: arrowStyle
83540
83678
  }));
@@ -83732,26 +83870,26 @@ const NPopoverBody = defineComponent({
83732
83870
  const hasHeaderOrFooter = !isSlotEmpty(slots.header) || !isSlotEmpty(slots.footer);
83733
83871
  const renderContentInnerNode = () => {
83734
83872
  var _a2, _b;
83735
- const body = hasHeaderOrFooter ? h$1(Fragment$1, null, resolveWrappedSlot(slots.header, (children) => {
83736
- return children ? h$1("div", {
83873
+ const body = hasHeaderOrFooter ? h(Fragment$1, null, resolveWrappedSlot(slots.header, (children) => {
83874
+ return children ? h("div", {
83737
83875
  class: [`${mergedClsPrefix}-popover__header`, props.headerClass],
83738
83876
  style: props.headerStyle
83739
83877
  }, children) : null;
83740
83878
  }), resolveWrappedSlot(slots.default, (children) => {
83741
- return children ? h$1("div", {
83879
+ return children ? h("div", {
83742
83880
  class: [`${mergedClsPrefix}-popover__content`, props.contentClass],
83743
83881
  style: props.contentStyle
83744
83882
  }, slots) : null;
83745
83883
  }), resolveWrappedSlot(slots.footer, (children) => {
83746
- return children ? h$1("div", {
83884
+ return children ? h("div", {
83747
83885
  class: [`${mergedClsPrefix}-popover__footer`, props.footerClass],
83748
83886
  style: props.footerStyle
83749
83887
  }, children) : null;
83750
- })) : props.scrollable ? (_a2 = slots.default) === null || _a2 === void 0 ? void 0 : _a2.call(slots) : h$1("div", {
83888
+ })) : props.scrollable ? (_a2 = slots.default) === null || _a2 === void 0 ? void 0 : _a2.call(slots) : h("div", {
83751
83889
  class: [`${mergedClsPrefix}-popover__content`, props.contentClass],
83752
83890
  style: props.contentStyle
83753
83891
  }, slots);
83754
- const maybeScrollableBody = props.scrollable ? h$1(XScrollbar, {
83892
+ const maybeScrollableBody = props.scrollable ? h(XScrollbar, {
83755
83893
  themeOverrides: themeRef.value.peerOverrides.Scrollbar,
83756
83894
  theme: themeRef.value.peers.Scrollbar,
83757
83895
  contentClass: hasHeaderOrFooter ? void 0 : `${mergedClsPrefix}-popover__content ${(_b = props.contentClass) !== null && _b !== void 0 ? _b : ""}`,
@@ -83768,7 +83906,7 @@ const NPopoverBody = defineComponent({
83768
83906
  }) : null;
83769
83907
  return [maybeScrollableBody, arrow2];
83770
83908
  };
83771
- contentNode = h$1("div", mergeProps({
83909
+ contentNode = h("div", mergeProps({
83772
83910
  class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) && `${mergedClsPrefix}-popover--rtl`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v2) => `${mergedClsPrefix}-${v2}`), {
83773
83911
  [`${mergedClsPrefix}-popover--scrollable`]: props.scrollable,
83774
83912
  [`${mergedClsPrefix}-popover--show-header-or-footer`]: hasHeaderOrFooter,
@@ -83782,7 +83920,7 @@ const NPopoverBody = defineComponent({
83782
83920
  onKeydown: NPopover2.handleKeydown,
83783
83921
  onMouseenter: handleMouseEnter,
83784
83922
  onMouseleave: handleMouseLeave2
83785
- }, attrs), internalTrapFocus ? h$1(FocusTrap, {
83923
+ }, attrs), internalTrapFocus ? h(FocusTrap, {
83786
83924
  active: props.show,
83787
83925
  autoFocus: true
83788
83926
  }, {
@@ -83814,7 +83952,7 @@ const NPopoverBody = defineComponent({
83814
83952
  };
83815
83953
  },
83816
83954
  render() {
83817
- return h$1(VFollower, {
83955
+ return h(VFollower, {
83818
83956
  ref: "followerRef",
83819
83957
  zIndex: this.zIndex,
83820
83958
  show: this.show,
@@ -83830,7 +83968,7 @@ const NPopoverBody = defineComponent({
83830
83968
  teleportDisabled: this.adjustedTo === useAdjustedTo.tdkey
83831
83969
  }, {
83832
83970
  default: () => {
83833
- return this.animated ? h$1(Transition, {
83971
+ return this.animated ? h(Transition, {
83834
83972
  name: "popover-transition",
83835
83973
  appear: this.isMounted,
83836
83974
  // Don't use watch to enable follower, since the transition may
@@ -84218,7 +84356,7 @@ const NPopover = defineComponent({
84218
84356
  triggerVNode = getFirstSlotVNode(slots, "trigger");
84219
84357
  if (triggerVNode) {
84220
84358
  triggerVNode = cloneVNode(triggerVNode);
84221
- triggerVNode = triggerVNode.type === Text$2 ? h$1("span", [triggerVNode]) : triggerVNode;
84359
+ triggerVNode = triggerVNode.type === Text$2 ? h("span", [triggerVNode]) : triggerVNode;
84222
84360
  const handlers2 = {
84223
84361
  onClick: this.handleClick,
84224
84362
  onMouseenter: this.handleMouseEnter,
@@ -84276,7 +84414,7 @@ const NPopover = defineComponent({
84276
84414
  }
84277
84415
  }
84278
84416
  }
84279
- return h$1(Binder, {
84417
+ return h(Binder, {
84280
84418
  ref: "binderInstRef",
84281
84419
  syncTarget: !popoverInside,
84282
84420
  syncTargetWithParent: this.internalSyncTargetWithParent
@@ -84284,7 +84422,7 @@ const NPopover = defineComponent({
84284
84422
  default: () => {
84285
84423
  void this.mergedShowConsideringDisabledProp;
84286
84424
  const mergedShow = this.getMergedShow();
84287
- return [this.internalTrapFocus && mergedShow ? withDirectives(h$1("div", {
84425
+ return [this.internalTrapFocus && mergedShow ? withDirectives(h("div", {
84288
84426
  style: {
84289
84427
  position: "fixed",
84290
84428
  top: 0,
@@ -84295,9 +84433,9 @@ const NPopover = defineComponent({
84295
84433
  }), [[zindexable, {
84296
84434
  enabled: mergedShow,
84297
84435
  zIndex: this.zIndex
84298
- }]]) : null, positionManually ? null : h$1(VTarget, null, {
84436
+ }]]) : null, positionManually ? null : h(VTarget, null, {
84299
84437
  default: () => triggerVNode
84300
- }), h$1(NPopoverBody, keep(this.$props, bodyPropKeys, Object.assign(Object.assign({}, this.$attrs), {
84438
+ }), h(NPopoverBody, keep(this.$props, bodyPropKeys, Object.assign(Object.assign({}, this.$attrs), {
84301
84439
  showArrow: this.mergedShowArrow,
84302
84440
  show: mergedShow
84303
84441
  })), {
@@ -84465,7 +84603,7 @@ const NTooltip = defineComponent({
84465
84603
  mergedTheme,
84466
84604
  internalExtraClass
84467
84605
  } = this;
84468
- return h$1(NPopover, Object.assign(Object.assign({}, this.$props), {
84606
+ return h(NPopover, Object.assign(Object.assign({}, this.$props), {
84469
84607
  theme: mergedTheme.peers.Popover,
84470
84608
  themeOverrides: mergedTheme.peerOverrides.Popover,
84471
84609
  builtinThemeOverrides: this.popoverThemeOverrides,
@@ -84486,7 +84624,7 @@ const NDropdownDivider = defineComponent({
84486
84624
  }
84487
84625
  },
84488
84626
  render() {
84489
- return h$1("div", {
84627
+ return h("div", {
84490
84628
  class: `${this.clsPrefix}-dropdown-divider`
84491
84629
  });
84492
84630
  }
@@ -84536,17 +84674,17 @@ const NDropdownGroupHeader = defineComponent({
84536
84674
  const {
84537
84675
  rawNode
84538
84676
  } = this.tmNode;
84539
- const node = h$1("div", Object.assign({
84677
+ const node = h("div", Object.assign({
84540
84678
  class: `${clsPrefix}-dropdown-option`
84541
- }, nodeProps === null || nodeProps === void 0 ? void 0 : nodeProps(rawNode)), h$1("div", {
84679
+ }, nodeProps === null || nodeProps === void 0 ? void 0 : nodeProps(rawNode)), h("div", {
84542
84680
  class: `${clsPrefix}-dropdown-option-body ${clsPrefix}-dropdown-option-body--group`
84543
- }, h$1("div", {
84681
+ }, h("div", {
84544
84682
  "data-dropdown-option": true,
84545
84683
  class: [`${clsPrefix}-dropdown-option-body__prefix`, showIcon && `${clsPrefix}-dropdown-option-body__prefix--show-icon`]
84546
- }, render(rawNode.icon)), h$1("div", {
84684
+ }, render(rawNode.icon)), h("div", {
84547
84685
  class: `${clsPrefix}-dropdown-option-body__label`,
84548
84686
  "data-dropdown-option": true
84549
- }, renderLabel ? renderLabel(rawNode) : render((_a2 = rawNode.title) !== null && _a2 !== void 0 ? _a2 : rawNode[this.labelField])), h$1("div", {
84687
+ }, renderLabel ? renderLabel(rawNode) : render((_a2 = rawNode.title) !== null && _a2 !== void 0 ? _a2 : rawNode[this.labelField])), h("div", {
84550
84688
  class: [`${clsPrefix}-dropdown-option-body__suffix`, hasSubmenu && `${clsPrefix}-dropdown-option-body__suffix--has-submenu`],
84551
84689
  "data-dropdown-option": true
84552
84690
  })));
@@ -84676,14 +84814,14 @@ const NIcon = defineComponent({
84676
84814
  warn("icon", "don't wrap `n-icon` inside `n-icon`");
84677
84815
  }
84678
84816
  onRender === null || onRender === void 0 ? void 0 : onRender();
84679
- return h$1("i", mergeProps(this.$attrs, {
84817
+ return h("i", mergeProps(this.$attrs, {
84680
84818
  role: "img",
84681
84819
  class: [`${mergedClsPrefix}-icon`, themeClass, {
84682
84820
  [`${mergedClsPrefix}-icon--depth`]: depth,
84683
84821
  [`${mergedClsPrefix}-icon--color-transition`]: depth !== void 0
84684
84822
  }],
84685
84823
  style: [this.cssVars, this.mergedStyle]
84686
- }), component ? h$1(component) : this.$slots);
84824
+ }), component ? h(component) : this.$slots);
84687
84825
  }
84688
84826
  });
84689
84827
  function isSubmenuNode(rawNode, childrenField) {
@@ -84919,7 +85057,7 @@ const NDropdownOption = defineComponent({
84919
85057
  let submenuVNode = null;
84920
85058
  if (mergedShowSubmenu) {
84921
85059
  const submenuNodeProps = (_a2 = this.menuProps) === null || _a2 === void 0 ? void 0 : _a2.call(this, rawNode, rawNode.children);
84922
- submenuVNode = h$1(NDropdownMenu, Object.assign({}, submenuNodeProps, {
85060
+ submenuVNode = h(NDropdownMenu, Object.assign({}, submenuNodeProps, {
84923
85061
  clsPrefix,
84924
85062
  scrollable: this.scrollable,
84925
85063
  tmNodes: this.tmNode.children,
@@ -84934,33 +85072,33 @@ const NDropdownOption = defineComponent({
84934
85072
  onClick: this.handleClick
84935
85073
  };
84936
85074
  const optionNodeProps = nodeProps === null || nodeProps === void 0 ? void 0 : nodeProps(rawNode);
84937
- const node = h$1("div", Object.assign({
85075
+ const node = h("div", Object.assign({
84938
85076
  class: [`${clsPrefix}-dropdown-option`, optionNodeProps === null || optionNodeProps === void 0 ? void 0 : optionNodeProps.class],
84939
85077
  "data-dropdown-option": true
84940
- }, optionNodeProps), h$1("div", mergeProps(builtinProps, props), [h$1("div", {
85078
+ }, optionNodeProps), h("div", mergeProps(builtinProps, props), [h("div", {
84941
85079
  class: [`${clsPrefix}-dropdown-option-body__prefix`, siblingHasIcon && `${clsPrefix}-dropdown-option-body__prefix--show-icon`]
84942
- }, [renderIcon ? renderIcon(rawNode) : render(rawNode.icon)]), h$1("div", {
85080
+ }, [renderIcon ? renderIcon(rawNode) : render(rawNode.icon)]), h("div", {
84943
85081
  "data-dropdown-option": true,
84944
85082
  class: `${clsPrefix}-dropdown-option-body__label`
84945
- }, renderLabel ? renderLabel(rawNode) : render((_b = rawNode[this.labelField]) !== null && _b !== void 0 ? _b : rawNode.title)), h$1("div", {
85083
+ }, renderLabel ? renderLabel(rawNode) : render((_b = rawNode[this.labelField]) !== null && _b !== void 0 ? _b : rawNode.title)), h("div", {
84946
85084
  "data-dropdown-option": true,
84947
85085
  class: [`${clsPrefix}-dropdown-option-body__suffix`, siblingHasSubmenu && `${clsPrefix}-dropdown-option-body__suffix--has-submenu`]
84948
- }, this.hasSubmenu ? h$1(NIcon, null, {
84949
- default: () => h$1(ChevronRightIcon, null)
84950
- }) : null)]), this.hasSubmenu ? h$1(Binder, null, {
84951
- default: () => [h$1(VTarget, null, {
84952
- default: () => h$1("div", {
85086
+ }, this.hasSubmenu ? h(NIcon, null, {
85087
+ default: () => h(ChevronRightIcon, null)
85088
+ }) : null)]), this.hasSubmenu ? h(Binder, null, {
85089
+ default: () => [h(VTarget, null, {
85090
+ default: () => h("div", {
84953
85091
  class: `${clsPrefix}-dropdown-offset-container`
84954
- }, h$1(VFollower, {
85092
+ }, h(VFollower, {
84955
85093
  show: this.mergedShowSubmenu,
84956
85094
  placement: this.placement,
84957
85095
  to: scrollable ? this.popoverBody || void 0 : void 0,
84958
85096
  teleportDisabled: !scrollable
84959
85097
  }, {
84960
85098
  default: () => {
84961
- return h$1("div", {
85099
+ return h("div", {
84962
85100
  class: `${clsPrefix}-dropdown-menu-wrapper`
84963
- }, animated ? h$1(Transition, {
85101
+ }, animated ? h(Transition, {
84964
85102
  onBeforeEnter: this.handleSubmenuBeforeEnter,
84965
85103
  onAfterEnter: this.handleSubmenuAfterEnter,
84966
85104
  name: "fade-in-scale-up-transition",
@@ -85006,7 +85144,7 @@ const NDropdownGroup = defineComponent({
85006
85144
  const {
85007
85145
  children
85008
85146
  } = tmNode;
85009
- return h$1(Fragment$1, null, h$1(NDropdownGroupHeader, {
85147
+ return h(Fragment$1, null, h(NDropdownGroupHeader, {
85010
85148
  clsPrefix,
85011
85149
  tmNode,
85012
85150
  key: tmNode.key
@@ -85016,7 +85154,7 @@ const NDropdownGroup = defineComponent({
85016
85154
  } = child;
85017
85155
  if (rawNode.show === false) return null;
85018
85156
  if (isDividerNode(rawNode)) {
85019
- return h$1(NDropdownDivider, {
85157
+ return h(NDropdownDivider, {
85020
85158
  clsPrefix,
85021
85159
  key: child.key
85022
85160
  });
@@ -85025,7 +85163,7 @@ const NDropdownGroup = defineComponent({
85025
85163
  warn("dropdown", "`group` node is not allowed to be put in `group` node.");
85026
85164
  return null;
85027
85165
  }
85028
- return h$1(NDropdownOption, {
85166
+ return h(NDropdownOption, {
85029
85167
  clsPrefix,
85030
85168
  tmNode: child,
85031
85169
  parentKey,
@@ -85049,7 +85187,7 @@ const NDropdownRenderOption = defineComponent({
85049
85187
  props
85050
85188
  }
85051
85189
  } = this.tmNode;
85052
- return h$1("div", props, [render2 === null || render2 === void 0 ? void 0 : render2()]);
85190
+ return h("div", props, [render2 === null || render2 === void 0 ? void 0 : render2()]);
85053
85191
  }
85054
85192
  });
85055
85193
  const NDropdownMenu = defineComponent({
@@ -85130,26 +85268,26 @@ const NDropdownMenu = defineComponent({
85130
85268
  } = tmNode;
85131
85269
  if (rawNode.show === false) return null;
85132
85270
  if (isRenderNode(rawNode)) {
85133
- return h$1(NDropdownRenderOption, {
85271
+ return h(NDropdownRenderOption, {
85134
85272
  tmNode,
85135
85273
  key: tmNode.key
85136
85274
  });
85137
85275
  }
85138
85276
  if (isDividerNode(rawNode)) {
85139
- return h$1(NDropdownDivider, {
85277
+ return h(NDropdownDivider, {
85140
85278
  clsPrefix,
85141
85279
  key: tmNode.key
85142
85280
  });
85143
85281
  }
85144
85282
  if (isGroupNode(rawNode)) {
85145
- return h$1(NDropdownGroup, {
85283
+ return h(NDropdownGroup, {
85146
85284
  clsPrefix,
85147
85285
  tmNode,
85148
85286
  parentKey,
85149
85287
  key: tmNode.key
85150
85288
  });
85151
85289
  }
85152
- return h$1(NDropdownOption, {
85290
+ return h(NDropdownOption, {
85153
85291
  clsPrefix,
85154
85292
  tmNode,
85155
85293
  parentKey,
@@ -85158,10 +85296,10 @@ const NDropdownMenu = defineComponent({
85158
85296
  scrollable
85159
85297
  });
85160
85298
  });
85161
- return h$1("div", {
85299
+ return h("div", {
85162
85300
  class: [`${clsPrefix}-dropdown-menu`, scrollable && `${clsPrefix}-dropdown-menu--scrollable`],
85163
85301
  ref: "bodyRef"
85164
- }, scrollable ? h$1(XScrollbar, {
85302
+ }, scrollable ? h(XScrollbar, {
85165
85303
  contentClass: `${clsPrefix}-dropdown-menu__content`
85166
85304
  }, {
85167
85305
  default: () => menuOptionsNode
@@ -85629,7 +85767,7 @@ const NDropdown = defineComponent({
85629
85767
  onMouseenter,
85630
85768
  onMouseleave
85631
85769
  };
85632
- return h$1(NDropdownMenu, mergeProps(this.$attrs, dropdownProps2, menuNodeProps));
85770
+ return h(NDropdownMenu, mergeProps(this.$attrs, dropdownProps2, menuNodeProps));
85633
85771
  };
85634
85772
  const {
85635
85773
  mergedTheme
@@ -85643,7 +85781,7 @@ const NDropdown = defineComponent({
85643
85781
  onUpdateShow: this.doUpdateShow,
85644
85782
  "onUpdate:show": void 0
85645
85783
  };
85646
- return h$1(NPopover, Object.assign({}, keep(this.$props, popoverPropKeys), popoverProps2), {
85784
+ return h(NPopover, Object.assign({}, keep(this.$props, popoverPropKeys), popoverProps2), {
85647
85785
  trigger: () => {
85648
85786
  var _a2, _b;
85649
85787
  return (_b = (_a2 = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a2);
@@ -85785,12 +85923,12 @@ const NSkeleton = defineComponent({
85785
85923
  mergedClsPrefix,
85786
85924
  $attrs
85787
85925
  } = this;
85788
- const child = h$1("div", mergeProps({
85926
+ const child = h("div", mergeProps({
85789
85927
  class: `${mergedClsPrefix}-skeleton`,
85790
85928
  style: style2
85791
85929
  }, $attrs));
85792
85930
  if (repeatProp > 1) {
85793
- return h$1(Fragment$1, null, repeat(repeatProp, null).map((_2) => [child, "\n"]));
85931
+ return h(Fragment$1, null, repeat(repeatProp, null).map((_2) => [child, "\n"]));
85794
85932
  }
85795
85933
  return child;
85796
85934
  }
@@ -87705,8 +87843,8 @@ const renderColorOptions = (superToolbar, button, customIcons = [], hasNoneIcon
87705
87843
  superToolbar.emitCommand({ item: button, argument: e });
87706
87844
  closeDropdown$1(button);
87707
87845
  };
87708
- return h$1("div", {}, [
87709
- h$1(IconGrid, {
87846
+ return h("div", {}, [
87847
+ h(IconGrid, {
87710
87848
  icons,
87711
87849
  customIcons,
87712
87850
  activeColor: button.iconColor,
@@ -88179,8 +88317,8 @@ const makeDefaultItems = ({
88179
88317
  const handleClose = () => {
88180
88318
  closeDropdown(aiButton);
88181
88319
  };
88182
- return h$1("div", {}, [
88183
- h$1(AIWriter, {
88320
+ return h("div", {}, [
88321
+ h(AIWriter, {
88184
88322
  handleClose,
88185
88323
  selectedText,
88186
88324
  editor: superToolbar.activeEditor,
@@ -88356,8 +88494,8 @@ const makeDefaultItems = ({
88356
88494
  const handleSubmit = ({ value }) => {
88357
88495
  superToolbar.activeEditor.commands.search(value);
88358
88496
  };
88359
- return h$1("div", {}, [
88360
- h$1(SearchInput, {
88497
+ return h("div", {}, [
88498
+ h(SearchInput, {
88361
88499
  onSubmit: handleSubmit,
88362
88500
  searchRef
88363
88501
  })
@@ -88389,8 +88527,8 @@ const makeDefaultItems = ({
88389
88527
  }
88390
88528
  });
88391
88529
  function renderLinkDropdown(link2) {
88392
- return h$1("div", {}, [
88393
- h$1(LinkInput, {
88530
+ return h("div", {}, [
88531
+ h(LinkInput, {
88394
88532
  editor: superToolbar.activeEditor,
88395
88533
  closePopover: () => closeDropdown(link2),
88396
88534
  goToAnchor: () => {
@@ -88447,8 +88585,8 @@ const makeDefaultItems = ({
88447
88585
  superToolbar.emitCommand({ item: tableItem2, argument: e });
88448
88586
  closeDropdown(tableItem2);
88449
88587
  };
88450
- return h$1("div", {}, [
88451
- h$1(TableGrid, {
88588
+ return h("div", {}, [
88589
+ h(TableGrid, {
88452
88590
  onSelect: handleSelect
88453
88591
  })
88454
88592
  ]);
@@ -88575,7 +88713,7 @@ const makeDefaultItems = ({
88575
88713
  }
88576
88714
  ];
88577
88715
  function renderTableActions(tableActionsItem2) {
88578
- return h$1(TableActions, {
88716
+ return h(TableActions, {
88579
88717
  options: tableActionsOptions2,
88580
88718
  onSelect: (event) => {
88581
88719
  closeDropdown(tableActionsItem2);
@@ -88608,8 +88746,8 @@ const makeDefaultItems = ({
88608
88746
  superToolbar.emitCommand({ item: buttonWithCommand, argument: e });
88609
88747
  setAlignmentIcon(alignment2, e);
88610
88748
  };
88611
- return h$1("div", {}, [
88612
- h$1(AlignmentButtons, {
88749
+ return h("div", {}, [
88750
+ h(AlignmentButtons, {
88613
88751
  onSelect: handleSelect
88614
88752
  })
88615
88753
  ]);
@@ -88879,7 +89017,7 @@ const makeDefaultItems = ({
88879
89017
  ];
88880
89018
  function renderDocumentMode(renderDocumentButton) {
88881
89019
  const optionsAfterRole = getDocumentOptionsAfterRole(role, documentOptions);
88882
- return h$1(DocumentMode, {
89020
+ return h(DocumentMode, {
88883
89021
  options: optionsAfterRole,
88884
89022
  onSelect: (item) => {
88885
89023
  closeDropdown(renderDocumentButton);
@@ -88950,8 +89088,8 @@ const makeDefaultItems = ({
88950
89088
  superToolbar.emitCommand({ item: itemWithCommand, argument: style2 });
88951
89089
  selectedLinkedStyle.value = style2.id;
88952
89090
  };
88953
- return h$1("div", {}, [
88954
- h$1(LinkedStyle, {
89091
+ return h("div", {}, [
89092
+ h(LinkedStyle, {
88955
89093
  editor: superToolbar.activeEditor,
88956
89094
  onSelect: handleSelect,
88957
89095
  selectedOption: selectedLinkedStyle.value
@@ -88973,7 +89111,7 @@ const makeDefaultItems = ({
88973
89111
  });
88974
89112
  const renderIcon = (value, selectedValue) => {
88975
89113
  if (selectedValue.value.toString() !== value) return;
88976
- return h$1("div", { innerHTML: checkIconSvg, class: "dropdown-select-icon" });
89114
+ return h("div", { innerHTML: checkIconSvg, class: "dropdown-select-icon" });
88977
89115
  };
88978
89116
  const lineHeight2 = useToolbarItem({
88979
89117
  type: "dropdown",