superdoc 0.34.4 → 0.34.6-RC1

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 (48) hide show
  1. package/dist/chunks/{PdfViewer-CcDvbfeP.cjs → PdfViewer-Cdq6hWaP.cjs} +2 -2
  2. package/dist/chunks/{PdfViewer-CL_-YyBC.es.js → PdfViewer-Yy390Dyv.es.js} +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-oLU8CBCH.es.js → index-M9d0bJ9k.es.js} +12 -7
  6. package/dist/chunks/{index-Cp_Yy4vP.cjs → index-QkGtTLUE.cjs} +12 -7
  7. package/dist/chunks/{index-DPjn4rpi-Bs9-iTbY.cjs → index-_8cQcYzu-CB4RkW2W.cjs} +1 -1
  8. package/dist/chunks/{index-DPjn4rpi-BwmVppCt.es.js → index-_8cQcYzu-Dj8Emsl2.es.js} +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-C2FJLfJa.cjs → super-editor.es-C-hpEM8j.cjs} +794 -636
  12. package/dist/chunks/{super-editor.es-C350__qM.es.js → super-editor.es-kNY6AOSu.es.js} +747 -589
  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/packages/superdoc/src/components/CommentsLayer/use-comment.d.ts.map +1 -1
  18. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  19. package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
  20. package/dist/packages/superdoc/src/stores/comments-store.d.ts.map +1 -1
  21. package/dist/super-editor/ai-writer.es.js +2 -2
  22. package/dist/super-editor/chunks/{converter-KW3z-Mzc.js → converter-Ddl2ZmKy.js} +416 -301
  23. package/dist/super-editor/chunks/{docx-zipper-CYtxqNuc.js → docx-zipper-D1BgiAWm.js} +1 -1
  24. package/dist/super-editor/chunks/{editor-CTHJwQNA.js → editor-B2T2u3JG.js} +65 -22
  25. package/dist/super-editor/chunks/{index-DPjn4rpi.js → index-_8cQcYzu.js} +1 -1
  26. package/dist/super-editor/chunks/{toolbar-BUz0UuKQ.js → toolbar-hyRTdNjv.js} +2 -2
  27. package/dist/super-editor/converter.es.js +1 -1
  28. package/dist/super-editor/docx-zipper.es.js +2 -2
  29. package/dist/super-editor/editor.es.js +3 -3
  30. package/dist/super-editor/file-zipper.es.js +1 -1
  31. package/dist/super-editor/super-editor/src/core/super-converter/helpers.d.ts.map +1 -1
  32. package/dist/super-editor/super-editor/src/core/super-converter/v2/exporter/commentsExporter.d.ts.map +1 -1
  33. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/del/del-translator.d.ts.map +1 -1
  34. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/ins/ins-translator.d.ts.map +1 -1
  35. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts +5 -0
  36. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-commands.d.ts.map +1 -1
  37. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
  38. package/dist/super-editor/super-editor.es.js +6 -6
  39. package/dist/super-editor/toolbar.es.js +2 -2
  40. package/dist/super-editor.cjs +2 -2
  41. package/dist/super-editor.es.js +2 -2
  42. package/dist/superdoc.cjs +2 -2
  43. package/dist/superdoc.es.js +2 -2
  44. package/dist/superdoc.umd.js +1141 -938
  45. package/dist/superdoc.umd.js.map +1 -1
  46. package/package.json +1 -1
  47. package/dist/chunks/xml-js-BSDu25I7.cjs +0 -3
  48. package/dist/chunks/xml-js-CBrRls0f.es.js +0 -2
@@ -434,17 +434,17 @@
434
434
  );
435
435
  }
436
436
  if (a2 === b2) return 0;
437
- let x = a2.length;
437
+ let x2 = a2.length;
438
438
  let y2 = b2.length;
439
- for (let i2 = 0, len2 = Math.min(x, y2); i2 < len2; ++i2) {
439
+ for (let i2 = 0, len2 = Math.min(x2, y2); i2 < len2; ++i2) {
440
440
  if (a2[i2] !== b2[i2]) {
441
- x = a2[i2];
441
+ x2 = a2[i2];
442
442
  y2 = b2[i2];
443
443
  break;
444
444
  }
445
445
  }
446
- if (x < y2) return -1;
447
- if (y2 < x) return 1;
446
+ if (x2 < y2) return -1;
447
+ if (y2 < x2) return 1;
448
448
  return 0;
449
449
  };
450
450
  Buffer3.isEncoding = function isEncoding(encoding) {
@@ -693,20 +693,20 @@
693
693
  thisStart >>>= 0;
694
694
  thisEnd >>>= 0;
695
695
  if (this === target) return 0;
696
- let x = thisEnd - thisStart;
696
+ let x2 = thisEnd - thisStart;
697
697
  let y2 = end2 - start2;
698
- const len2 = Math.min(x, y2);
698
+ const len2 = Math.min(x2, y2);
699
699
  const thisCopy = this.slice(thisStart, thisEnd);
700
700
  const targetCopy = target.slice(start2, end2);
701
701
  for (let i2 = 0; i2 < len2; ++i2) {
702
702
  if (thisCopy[i2] !== targetCopy[i2]) {
703
- x = thisCopy[i2];
703
+ x2 = thisCopy[i2];
704
704
  y2 = targetCopy[i2];
705
705
  break;
706
706
  }
707
707
  }
708
- if (x < y2) return -1;
709
- if (y2 < x) return 1;
708
+ if (x2 < y2) return -1;
709
+ if (y2 < x2) return 1;
710
710
  return 0;
711
711
  };
712
712
  function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
@@ -1796,8 +1796,8 @@
1796
1796
  })(buffer);
1797
1797
  const Buffer2 = buffer.Buffer;
1798
1798
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
1799
- function getDefaultExportFromCjs$2(x) {
1800
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1799
+ function getDefaultExportFromCjs$2(x2) {
1800
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
1801
1801
  }
1802
1802
  var sax = {};
1803
1803
  var events$2 = { exports: {} };
@@ -1805,13 +1805,13 @@
1805
1805
  function requireEvents() {
1806
1806
  if (hasRequiredEvents) return events$2.exports;
1807
1807
  hasRequiredEvents = 1;
1808
- var R2 = typeof Reflect === "object" ? Reflect : null;
1809
- var ReflectApply = R2 && typeof R2.apply === "function" ? R2.apply : function ReflectApply2(target, receiver, args) {
1808
+ var R = typeof Reflect === "object" ? Reflect : null;
1809
+ var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
1810
1810
  return Function.prototype.apply.call(target, receiver, args);
1811
1811
  };
1812
1812
  var ReflectOwnKeys;
1813
- if (R2 && typeof R2.ownKeys === "function") {
1814
- ReflectOwnKeys = R2.ownKeys;
1813
+ if (R && typeof R.ownKeys === "function") {
1814
+ ReflectOwnKeys = R.ownKeys;
1815
1815
  } else if (Object.getOwnPropertySymbols) {
1816
1816
  ReflectOwnKeys = function ReflectOwnKeys2(target) {
1817
1817
  return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
@@ -2201,8 +2201,8 @@
2201
2201
  }
2202
2202
  return inherits_browser.exports;
2203
2203
  }
2204
- function getDefaultExportFromCjs$1(x) {
2205
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
2204
+ function getDefaultExportFromCjs$1(x2) {
2205
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
2206
2206
  }
2207
2207
  var browser$1 = { exports: {} };
2208
2208
  var process$2 = browser$1.exports = {};
@@ -2783,17 +2783,17 @@
2783
2783
  );
2784
2784
  }
2785
2785
  if (a2 === b2) return 0;
2786
- let x = a2.length;
2786
+ let x2 = a2.length;
2787
2787
  let y2 = b2.length;
2788
- for (let i22 = 0, len22 = Math.min(x, y2); i22 < len22; ++i22) {
2788
+ for (let i22 = 0, len22 = Math.min(x2, y2); i22 < len22; ++i22) {
2789
2789
  if (a2[i22] !== b2[i22]) {
2790
- x = a2[i22];
2790
+ x2 = a2[i22];
2791
2791
  y2 = b2[i22];
2792
2792
  break;
2793
2793
  }
2794
2794
  }
2795
- if (x < y2) return -1;
2796
- if (y2 < x) return 1;
2795
+ if (x2 < y2) return -1;
2796
+ if (y2 < x2) return 1;
2797
2797
  return 0;
2798
2798
  };
2799
2799
  Buffer4.isEncoding = function isEncoding(encoding) {
@@ -3042,20 +3042,20 @@
3042
3042
  thisStart >>>= 0;
3043
3043
  thisEnd >>>= 0;
3044
3044
  if (this === target) return 0;
3045
- let x = thisEnd - thisStart;
3045
+ let x2 = thisEnd - thisStart;
3046
3046
  let y2 = end2 - start2;
3047
- const len22 = Math.min(x, y2);
3047
+ const len22 = Math.min(x2, y2);
3048
3048
  const thisCopy = this.slice(thisStart, thisEnd);
3049
3049
  const targetCopy = target.slice(start2, end2);
3050
3050
  for (let i22 = 0; i22 < len22; ++i22) {
3051
3051
  if (thisCopy[i22] !== targetCopy[i22]) {
3052
- x = thisCopy[i22];
3052
+ x2 = thisCopy[i22];
3053
3053
  y2 = targetCopy[i22];
3054
3054
  break;
3055
3055
  }
3056
3056
  }
3057
- if (x < y2) return -1;
3058
- if (y2 < x) return 1;
3057
+ if (x2 < y2) return -1;
3058
+ if (y2 < x2) return 1;
3059
3059
  return 0;
3060
3060
  };
3061
3061
  function bidirectionalIndexOf(buffer3, val, byteOffset, encoding, dir) {
@@ -4627,15 +4627,15 @@
4627
4627
  var reflectGetProto = requireReflect_getPrototypeOf();
4628
4628
  var originalGetProto = requireObject_getPrototypeOf();
4629
4629
  var getDunderProto = /* @__PURE__ */ requireGet();
4630
- getProto$1 = reflectGetProto ? function getProto2(O2) {
4631
- return reflectGetProto(O2);
4632
- } : originalGetProto ? function getProto2(O2) {
4633
- if (!O2 || typeof O2 !== "object" && typeof O2 !== "function") {
4630
+ getProto$1 = reflectGetProto ? function getProto2(O) {
4631
+ return reflectGetProto(O);
4632
+ } : originalGetProto ? function getProto2(O) {
4633
+ if (!O || typeof O !== "object" && typeof O !== "function") {
4634
4634
  throw new TypeError("getProto: not an object");
4635
4635
  }
4636
- return originalGetProto(O2);
4637
- } : getDunderProto ? function getProto2(O2) {
4638
- return getDunderProto(O2);
4636
+ return originalGetProto(O);
4637
+ } : getDunderProto ? function getProto2(O) {
4638
+ return getDunderProto(O);
4639
4639
  } : null;
4640
4640
  return getProto$1;
4641
4641
  }
@@ -5313,8 +5313,8 @@
5313
5313
  }
5314
5314
  }
5315
5315
  };
5316
- function isArray2(x) {
5317
- return toStr.call(x) === "[object Array]";
5316
+ function isArray2(x2) {
5317
+ return toStr.call(x2) === "[object Array]";
5318
5318
  }
5319
5319
  forEach = function forEach2(list2, iterator2, thisArg) {
5320
5320
  if (!isCallable2(iterator2)) {
@@ -5923,10 +5923,10 @@
5923
5923
  var i2 = 1;
5924
5924
  var args = arguments;
5925
5925
  var len2 = args.length;
5926
- var str = String(f2).replace(formatRegExp, function(x2) {
5927
- if (x2 === "%%") return "%";
5928
- if (i2 >= len2) return x2;
5929
- switch (x2) {
5926
+ var str = String(f2).replace(formatRegExp, function(x3) {
5927
+ if (x3 === "%%") return "%";
5928
+ if (i2 >= len2) return x3;
5929
+ switch (x3) {
5930
5930
  case "%s":
5931
5931
  return String(args[i2++]);
5932
5932
  case "%d":
@@ -5938,14 +5938,14 @@
5938
5938
  return "[Circular]";
5939
5939
  }
5940
5940
  default:
5941
- return x2;
5941
+ return x3;
5942
5942
  }
5943
5943
  });
5944
- for (var x = args[i2]; i2 < len2; x = args[++i2]) {
5945
- if (isNull(x) || !isObject2(x)) {
5946
- str += " " + x;
5944
+ for (var x2 = args[i2]; i2 < len2; x2 = args[++i2]) {
5945
+ if (isNull(x2) || !isObject2(x2)) {
5946
+ str += " " + x2;
5947
5947
  } else {
5948
- str += " " + inspect2(x);
5948
+ str += " " + inspect2(x2);
5949
5949
  }
5950
5950
  }
5951
5951
  return str;
@@ -7510,6 +7510,7 @@
7510
7510
  }
7511
7511
  var string_decoder = {};
7512
7512
  var safeBuffer = { exports: {} };
7513
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
7513
7514
  var hasRequiredSafeBuffer;
7514
7515
  function requireSafeBuffer() {
7515
7516
  if (hasRequiredSafeBuffer) return safeBuffer.exports;
@@ -7531,6 +7532,7 @@
7531
7532
  function SafeBuffer(arg, encodingOrOffset, length2) {
7532
7533
  return Buffer3(arg, encodingOrOffset, length2);
7533
7534
  }
7535
+ SafeBuffer.prototype = Object.create(Buffer3.prototype);
7534
7536
  copyProps(Buffer3, SafeBuffer);
7535
7537
  SafeBuffer.from = function(arg, encodingOrOffset, length2) {
7536
7538
  if (typeof arg === "number") {
@@ -8808,9 +8810,9 @@
8808
8810
  return from2(Readable, iterable, opts);
8809
8811
  };
8810
8812
  }
8811
- function indexOf(xs, x) {
8813
+ function indexOf(xs, x2) {
8812
8814
  for (var i2 = 0, l3 = xs.length; i2 < l3; i2++) {
8813
- if (xs[i2] === x) return i2;
8815
+ if (xs[i2] === x2) return i2;
8814
8816
  }
8815
8817
  return -1;
8816
8818
  }
@@ -9268,27 +9270,27 @@
9268
9270
  this._parser = new SAXParser(strict, opt);
9269
9271
  this.writable = true;
9270
9272
  this.readable = true;
9271
- var me = this;
9273
+ var me2 = this;
9272
9274
  this._parser.onend = function() {
9273
- me.emit("end");
9275
+ me2.emit("end");
9274
9276
  };
9275
9277
  this._parser.onerror = function(er) {
9276
- me.emit("error", er);
9277
- me._parser.error = null;
9278
+ me2.emit("error", er);
9279
+ me2._parser.error = null;
9278
9280
  };
9279
9281
  this._decoder = null;
9280
9282
  streamWraps.forEach(function(ev) {
9281
- Object.defineProperty(me, "on" + ev, {
9283
+ Object.defineProperty(me2, "on" + ev, {
9282
9284
  get: function() {
9283
- return me._parser["on" + ev];
9285
+ return me2._parser["on" + ev];
9284
9286
  },
9285
9287
  set: function(h2) {
9286
9288
  if (!h2) {
9287
- me.removeAllListeners(ev);
9288
- me._parser["on" + ev] = h2;
9289
+ me2.removeAllListeners(ev);
9290
+ me2._parser["on" + ev] = h2;
9289
9291
  return h2;
9290
9292
  }
9291
- me.on(ev, h2);
9293
+ me2.on(ev, h2);
9292
9294
  },
9293
9295
  enumerable: true,
9294
9296
  configurable: false
@@ -9320,15 +9322,15 @@
9320
9322
  return true;
9321
9323
  };
9322
9324
  SAXStream.prototype.on = function(ev, handler2) {
9323
- var me = this;
9324
- if (!me._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
9325
- me._parser["on" + ev] = function() {
9325
+ var me2 = this;
9326
+ if (!me2._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
9327
+ me2._parser["on" + ev] = function() {
9326
9328
  var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
9327
9329
  args.splice(0, 0, ev);
9328
- me.emit.apply(me, args);
9330
+ me2.emit.apply(me2, args);
9329
9331
  };
9330
9332
  }
9331
- return Stream.prototype.on.call(me, ev, handler2);
9333
+ return Stream.prototype.on.call(me2, ev, handler2);
9332
9334
  };
9333
9335
  var CDATA = "[CDATA[";
9334
9336
  var DOCTYPE = "DOCTYPE";
@@ -9920,9 +9922,9 @@
9920
9922
  var tag = parser.tag = parser.tags.pop();
9921
9923
  parser.tagName = parser.tag.name;
9922
9924
  emitNode(parser, "onclosetag", parser.tagName);
9923
- var x = {};
9925
+ var x2 = {};
9924
9926
  for (var i2 in tag.ns) {
9925
- x[i2] = tag.ns[i2];
9927
+ x2[i2] = tag.ns[i2];
9926
9928
  }
9927
9929
  var parent = parser.tags[parser.tags.length - 1] || parser;
9928
9930
  if (parser.opt.xmlns && tag.ns !== parent.ns) {
@@ -11402,8 +11404,8 @@
11402
11404
  rnds[8] = rnds[8] & 63 | 128;
11403
11405
  return unsafeStringify$1(rnds);
11404
11406
  }
11405
- function getDefaultExportFromCjs$3(x) {
11406
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
11407
+ function getDefaultExportFromCjs$3(x2) {
11408
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
11407
11409
  }
11408
11410
  const CRC_TABLE = new Int32Array([
11409
11411
  0,
@@ -15219,8 +15221,8 @@
15219
15221
  const points = [];
15220
15222
  polygonNode.elements.forEach((element2) => {
15221
15223
  if (["wp:start", "wp:lineTo"].includes(element2.name)) {
15222
- const { x, y: y2 } = element2.attributes;
15223
- points.push([polygonUnitsToPixels(x), polygonUnitsToPixels(y2)]);
15224
+ const { x: x2, y: y2 } = element2.attributes;
15225
+ points.push([polygonUnitsToPixels(x2), polygonUnitsToPixels(y2)]);
15224
15226
  }
15225
15227
  });
15226
15228
  if (points.length > 1) {
@@ -15243,13 +15245,13 @@
15243
15245
  elements: []
15244
15246
  };
15245
15247
  points.forEach((point2, index2) => {
15246
- const [x, y2] = point2;
15248
+ const [x2, y2] = point2;
15247
15249
  const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
15248
15250
  const pointNode = {
15249
15251
  name: tagName,
15250
15252
  type: tagName,
15251
15253
  attributes: {
15252
- x: pixelsToPolygonUnits(x),
15254
+ x: pixelsToPolygonUnits(x2),
15253
15255
  y: pixelsToPolygonUnits(y2)
15254
15256
  }
15255
15257
  };
@@ -15398,6 +15400,9 @@
15398
15400
  let [value, unit] = parseSizeUnit(lineHeight2);
15399
15401
  if (Number.isNaN(value) || value === 0) return {};
15400
15402
  if (lineRule === "atLeast" && value < 1) return {};
15403
+ if (!unit && value < 1) {
15404
+ value = 1;
15405
+ }
15401
15406
  unit = unit ? unit : defaultUnit;
15402
15407
  return isObject2 ? { ["line-height"]: `${value}${unit}` } : `line-height: ${value}${unit}`;
15403
15408
  };
@@ -22911,7 +22916,7 @@
22911
22916
  const right2 = Math.max(start2.right, end2.right);
22912
22917
  const width = right2 - left2;
22913
22918
  const height = bottom2 - top2;
22914
- const x = left2;
22919
+ const x2 = left2;
22915
22920
  const y2 = top2;
22916
22921
  const data = {
22917
22922
  top: top2,
@@ -22920,7 +22925,7 @@
22920
22925
  right: right2,
22921
22926
  width,
22922
22927
  height,
22923
- x,
22928
+ x: x2,
22924
22929
  y: y2
22925
22930
  };
22926
22931
  return {
@@ -23009,25 +23014,31 @@
23009
23014
  function L() {
23010
23015
  return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
23011
23016
  }
23012
- var O = L();
23017
+ var T = L();
23013
23018
  function G(l3) {
23014
- O = l3;
23019
+ T = l3;
23015
23020
  }
23016
23021
  var E = { exec: () => null };
23017
- function h$2(l3, e = "") {
23022
+ function d$1(l3, e = "") {
23018
23023
  let t = typeof l3 == "string" ? l3 : l3.source, n = { replace: (r2, i2) => {
23019
23024
  let s2 = typeof i2 == "string" ? i2 : i2.source;
23020
23025
  return s2 = s2.replace(m.caret, "$1"), t = t.replace(r2, s2), n;
23021
23026
  }, getRegex: () => new RegExp(t, e) };
23022
23027
  return n;
23023
23028
  }
23024
- 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$2(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$2(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$2(/^ {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$2(/^( {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$2("^ {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$2(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$2(/^( {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$1 = h$2("^ *([^\\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$1, paragraph: h$2(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re$1).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$2(`^ *(?: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$2(F).replace("hr", C).replace("heading", ` *#{1,6} *[^
23025
- ]`).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$2(/^((?![*_])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$2(pe, "u").replace(/punct/g, D).getRegex(), ve = h$2(pe, "u").replace(/punct/g, ue).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", De = h$2(ce, "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), He = h$2(ce, "gu").replace(/notPunctSpace/g, Ie).replace(/punctSpace/g, Ce).replace(/punct/g, ue).getRegex(), Ze = h$2("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)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$2(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Ne = h$2(/^<(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$2(U).replace("(?:-->|$)", "-->").getRegex(), Fe = h$2("^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$1 = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Qe = h$2(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q$1).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), he$3 = h$2(/^!?\[(label)\]\[(ref)\]/).replace("label", q$1).replace("ref", Q).getRegex(), de = h$2(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ue = h$2("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$2(/^!?\[(label)\]\((.*?)\)/).replace("label", q$1).getRegex(), reflink: h$2(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q$1).getRegex() }, N = { ...X, emStrongRDelimAst: He, emStrongLDelim: ve, url: h$2(/^((?: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$2(ae).replace("{2,}", "*").getRegex(), text: h$2(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 };
23026
- var Xe = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ke = (l3) => Xe[l3];
23029
+ var be = (() => {
23030
+ try {
23031
+ return !!new RegExp("(?<=1)(?<!1)");
23032
+ } catch {
23033
+ return false;
23034
+ }
23035
+ })(), 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$1 = 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$1, paragraph: d$1(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re$1).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} *[^
23036
+ ]`).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$1 = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ke = d$1(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q$1).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = d$1(/^!?\[(label)\]\[(ref)\]/).replace("label", q$1).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$1).getRegex(), reflink: d$1(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q$1).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 };
23037
+ var Ve = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ge = (l3) => Ve[l3];
23027
23038
  function w(l3, e) {
23028
23039
  if (e) {
23029
- if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ke);
23030
- } else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ke);
23040
+ if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ge);
23041
+ } else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ge);
23031
23042
  return l3;
23032
23043
  }
23033
23044
  function J(l3) {
@@ -23039,10 +23050,10 @@
23039
23050
  return l3;
23040
23051
  }
23041
23052
  function V(l3, e) {
23042
- let t = l3.replace(m.findPipe, (i2, s2, o) => {
23043
- let a2 = false, u = s2;
23044
- for (; --u >= 0 && o[u] === "\\"; ) a2 = !a2;
23045
- return a2 ? "|" : " |";
23053
+ let t = l3.replace(m.findPipe, (i2, s2, a2) => {
23054
+ let o = false, p2 = s2;
23055
+ for (; --p2 >= 0 && a2[p2] === "\\"; ) o = !o;
23056
+ return o ? "|" : " |";
23046
23057
  }), n = t.split(m.splitPipe), r2 = 0;
23047
23058
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
23048
23059
  else for (; n.length < e; ) n.push("");
@@ -23060,7 +23071,7 @@
23060
23071
  }
23061
23072
  return l3.slice(0, n - r2);
23062
23073
  }
23063
- function ge(l3, e) {
23074
+ function fe(l3, e) {
23064
23075
  if (l3.indexOf(e[1]) === -1) return -1;
23065
23076
  let t = 0;
23066
23077
  for (let n = 0; n < l3.length; n++) if (l3[n] === "\\") n++;
@@ -23068,13 +23079,13 @@
23068
23079
  else if (l3[n] === e[1] && (t--, t < 0)) return n;
23069
23080
  return t > 0 ? -2 : -1;
23070
23081
  }
23071
- function fe(l3, e, t, n, r2) {
23072
- let i2 = e.href, s2 = e.title || null, o = l3[1].replace(r2.other.outputLinkReplace, "$1");
23082
+ function me(l3, e, t, n, r2) {
23083
+ let i2 = e.href, s2 = e.title || null, a2 = l3[1].replace(r2.other.outputLinkReplace, "$1");
23073
23084
  n.state.inLink = true;
23074
- let a2 = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i2, title: s2, text: o, tokens: n.inlineTokens(o) };
23075
- return n.state.inLink = false, a2;
23085
+ let o = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i2, title: s2, text: a2, tokens: n.inlineTokens(a2) };
23086
+ return n.state.inLink = false, o;
23076
23087
  }
23077
- function Je(l3, e, t) {
23088
+ function Ye(l3, e, t) {
23078
23089
  let n = l3.match(t.other.indentCodeCompensation);
23079
23090
  if (n === null) return e;
23080
23091
  let r2 = n[1];
@@ -23082,8 +23093,8 @@
23082
23093
  `).map((i2) => {
23083
23094
  let s2 = i2.match(t.other.beginningSpace);
23084
23095
  if (s2 === null) return i2;
23085
- let [o] = s2;
23086
- return o.length >= r2.length ? i2.slice(r2.length) : i2;
23096
+ let [a2] = s2;
23097
+ return a2.length >= r2.length ? i2.slice(r2.length) : i2;
23087
23098
  }).join(`
23088
23099
  `);
23089
23100
  }
@@ -23092,7 +23103,7 @@
23092
23103
  __publicField$2(this, "options");
23093
23104
  __publicField$2(this, "rules");
23094
23105
  __publicField$2(this, "lexer");
23095
- this.options = e || O;
23106
+ this.options = e || T;
23096
23107
  }
23097
23108
  space(e) {
23098
23109
  let t = this.rules.block.newline.exec(e);
@@ -23109,7 +23120,7 @@
23109
23120
  fences(e) {
23110
23121
  let t = this.rules.block.fences.exec(e);
23111
23122
  if (t) {
23112
- let n = t[0], r2 = Je(n, t[3] || "", this.rules);
23123
+ let n = t[0], r2 = Ye(n, t[3] || "", this.rules);
23113
23124
  return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r2 };
23114
23125
  }
23115
23126
  }
@@ -23136,32 +23147,32 @@
23136
23147
  `).split(`
23137
23148
  `), r2 = "", i2 = "", s2 = [];
23138
23149
  for (; n.length > 0; ) {
23139
- let o = false, a2 = [], u;
23140
- for (u = 0; u < n.length; u++) if (this.rules.other.blockquoteStart.test(n[u])) a2.push(n[u]), o = true;
23141
- else if (!o) a2.push(n[u]);
23150
+ let a2 = false, o = [], p2;
23151
+ for (p2 = 0; p2 < n.length; p2++) if (this.rules.other.blockquoteStart.test(n[p2])) o.push(n[p2]), a2 = true;
23152
+ else if (!a2) o.push(n[p2]);
23142
23153
  else break;
23143
- n = n.slice(u);
23144
- let p2 = a2.join(`
23145
- `), c2 = p2.replace(this.rules.other.blockquoteSetextReplace, `
23154
+ n = n.slice(p2);
23155
+ let u = o.join(`
23156
+ `), c2 = u.replace(this.rules.other.blockquoteSetextReplace, `
23146
23157
  $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
23147
23158
  r2 = r2 ? `${r2}
23148
- ${p2}` : p2, i2 = i2 ? `${i2}
23159
+ ${u}` : u, i2 = i2 ? `${i2}
23149
23160
  ${c2}` : c2;
23150
- let f2 = this.lexer.state.top;
23151
- if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top = f2, n.length === 0) break;
23152
- let k2 = s2.at(-1);
23153
- if (k2?.type === "code") break;
23154
- if (k2?.type === "blockquote") {
23155
- let x = k2, g = x.raw + `
23161
+ let g = this.lexer.state.top;
23162
+ if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top = g, n.length === 0) break;
23163
+ let h2 = s2.at(-1);
23164
+ if (h2?.type === "code") break;
23165
+ if (h2?.type === "blockquote") {
23166
+ let R = h2, f2 = R.raw + `
23156
23167
  ` + n.join(`
23157
- `), T = this.blockquote(g);
23158
- s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - x.raw.length) + T.raw, i2 = i2.substring(0, i2.length - x.text.length) + T.text;
23168
+ `), O = this.blockquote(f2);
23169
+ s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - R.raw.length) + O.raw, i2 = i2.substring(0, i2.length - R.text.length) + O.text;
23159
23170
  break;
23160
- } else if (k2?.type === "list") {
23161
- let x = k2, g = x.raw + `
23171
+ } else if (h2?.type === "list") {
23172
+ let R = h2, f2 = R.raw + `
23162
23173
  ` + n.join(`
23163
- `), T = this.list(g);
23164
- s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - k2.raw.length) + T.raw, i2 = i2.substring(0, i2.length - x.raw.length) + T.raw, n = g.substring(s2.at(-1).raw.length).split(`
23174
+ `), O = this.list(f2);
23175
+ s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - h2.raw.length) + O.raw, i2 = i2.substring(0, i2.length - R.raw.length) + O.raw, n = f2.substring(s2.at(-1).raw.length).split(`
23165
23176
  `);
23166
23177
  continue;
23167
23178
  }
@@ -23174,45 +23185,45 @@ ${c2}` : c2;
23174
23185
  if (t) {
23175
23186
  let n = t[1].trim(), r2 = n.length > 1, i2 = { type: "list", raw: "", ordered: r2, start: r2 ? +n.slice(0, -1) : "", loose: false, items: [] };
23176
23187
  n = r2 ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r2 ? n : "[*+-]");
23177
- let s2 = this.rules.other.listItemRegex(n), o = false;
23188
+ let s2 = this.rules.other.listItemRegex(n), a2 = false;
23178
23189
  for (; e; ) {
23179
- let u = false, p2 = "", c2 = "";
23190
+ let p2 = false, u = "", c2 = "";
23180
23191
  if (!(t = s2.exec(e)) || this.rules.block.hr.test(e)) break;
23181
- p2 = t[0], e = e.substring(p2.length);
23182
- let f2 = t[2].split(`
23183
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), k2 = e.split(`
23184
- `, 1)[0], x = !f2.trim(), g = 0;
23185
- 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) && (p2 += k2 + `
23186
- `, e = e.substring(k2.length + 1), u = true), !u) {
23187
- 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);
23192
+ u = t[0], e = e.substring(u.length);
23193
+ let g = t[2].split(`
23194
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), h2 = e.split(`
23195
+ `, 1)[0], R = !g.trim(), f2 = 0;
23196
+ 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 + `
23197
+ `, e = e.substring(h2.length + 1), p2 = true), !p2) {
23198
+ 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);
23188
23199
  for (; e; ) {
23189
23200
  let Z = e.split(`
23190
23201
  `, 1)[0], A2;
23191
- 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;
23192
- if (A2.search(this.rules.other.nonSpaceChar) >= g || !k2.trim()) c2 += `
23193
- ` + A2.slice(g);
23202
+ 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;
23203
+ if (A2.search(this.rules.other.nonSpaceChar) >= f2 || !h2.trim()) c2 += `
23204
+ ` + A2.slice(f2);
23194
23205
  else {
23195
- if (x || f2.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(f2) || ne.test(f2) || ee.test(f2)) break;
23206
+ if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(g) || ne.test(g) || ee.test(g)) break;
23196
23207
  c2 += `
23197
- ` + k2;
23208
+ ` + h2;
23198
23209
  }
23199
- !x && !k2.trim() && (x = true), p2 += Z + `
23200
- `, e = e.substring(Z.length + 1), f2 = A2.slice(g);
23210
+ !R && !h2.trim() && (R = true), u += Z + `
23211
+ `, e = e.substring(Z.length + 1), g = A2.slice(f2);
23201
23212
  }
23202
23213
  }
23203
- i2.loose || (o ? i2.loose = true : this.rules.other.doubleBlankLine.test(p2) && (o = true));
23204
- let T = null, Y2;
23205
- this.options.gfm && (T = this.rules.other.listIsTask.exec(c2), T && (Y2 = T[0] !== "[ ] ", c2 = c2.replace(this.rules.other.listReplaceTask, ""))), i2.items.push({ type: "list_item", raw: p2, task: !!T, checked: Y2, loose: false, text: c2, tokens: [] }), i2.raw += p2;
23214
+ i2.loose || (a2 ? i2.loose = true : this.rules.other.doubleBlankLine.test(u) && (a2 = true));
23215
+ let O = null, Y2;
23216
+ this.options.gfm && (O = this.rules.other.listIsTask.exec(c2), O && (Y2 = O[0] !== "[ ] ", c2 = c2.replace(this.rules.other.listReplaceTask, ""))), i2.items.push({ type: "list_item", raw: u, task: !!O, checked: Y2, loose: false, text: c2, tokens: [] }), i2.raw += u;
23206
23217
  }
23207
- let a2 = i2.items.at(-1);
23208
- if (a2) a2.raw = a2.raw.trimEnd(), a2.text = a2.text.trimEnd();
23218
+ let o = i2.items.at(-1);
23219
+ if (o) o.raw = o.raw.trimEnd(), o.text = o.text.trimEnd();
23209
23220
  else return;
23210
23221
  i2.raw = i2.raw.trimEnd();
23211
- for (let u = 0; u < i2.items.length; u++) if (this.lexer.state.top = false, i2.items[u].tokens = this.lexer.blockTokens(i2.items[u].text, []), !i2.loose) {
23212
- let p2 = i2.items[u].tokens.filter((f2) => f2.type === "space"), c2 = p2.length > 0 && p2.some((f2) => this.rules.other.anyLine.test(f2.raw));
23222
+ for (let p2 = 0; p2 < i2.items.length; p2++) if (this.lexer.state.top = false, i2.items[p2].tokens = this.lexer.blockTokens(i2.items[p2].text, []), !i2.loose) {
23223
+ let u = i2.items[p2].tokens.filter((g) => g.type === "space"), c2 = u.length > 0 && u.some((g) => this.rules.other.anyLine.test(g.raw));
23213
23224
  i2.loose = c2;
23214
23225
  }
23215
- if (i2.loose) for (let u = 0; u < i2.items.length; u++) i2.items[u].loose = true;
23226
+ if (i2.loose) for (let p2 = 0; p2 < i2.items.length; p2++) i2.items[p2].loose = true;
23216
23227
  return i2;
23217
23228
  }
23218
23229
  }
@@ -23233,9 +23244,9 @@ ${c2}` : c2;
23233
23244
  let n = V(t[1]), r2 = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i2 = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
23234
23245
  `) : [], s2 = { type: "table", raw: t[0], header: [], align: [], rows: [] };
23235
23246
  if (n.length === r2.length) {
23236
- 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);
23237
- 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] });
23238
- for (let o of i2) s2.rows.push(V(o, s2.header.length).map((a2, u) => ({ text: a2, tokens: this.lexer.inline(a2), header: false, align: s2.align[u] })));
23247
+ for (let a2 of r2) this.rules.other.tableAlignRight.test(a2) ? s2.align.push("right") : this.rules.other.tableAlignCenter.test(a2) ? s2.align.push("center") : this.rules.other.tableAlignLeft.test(a2) ? s2.align.push("left") : s2.align.push(null);
23248
+ for (let a2 = 0; a2 < n.length; a2++) s2.header.push({ text: n[a2], tokens: this.lexer.inline(n[a2]), header: true, align: s2.align[a2] });
23249
+ for (let a2 of i2) s2.rows.push(V(a2, s2.header.length).map((o, p2) => ({ text: o, tokens: this.lexer.inline(o), header: false, align: s2.align[p2] })));
23239
23250
  return s2;
23240
23251
  }
23241
23252
  }
@@ -23272,11 +23283,11 @@ ${c2}` : c2;
23272
23283
  let s2 = z(n.slice(0, -1), "\\");
23273
23284
  if ((n.length - s2.length) % 2 === 0) return;
23274
23285
  } else {
23275
- let s2 = ge(t[2], "()");
23286
+ let s2 = fe(t[2], "()");
23276
23287
  if (s2 === -2) return;
23277
23288
  if (s2 > -1) {
23278
- let a2 = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
23279
- t[2] = t[2].substring(0, s2), t[0] = t[0].substring(0, a2).trim(), t[3] = "";
23289
+ let o = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
23290
+ t[2] = t[2].substring(0, s2), t[0] = t[0].substring(0, o).trim(), t[3] = "";
23280
23291
  }
23281
23292
  }
23282
23293
  let r2 = t[2], i2 = "";
@@ -23284,7 +23295,7 @@ ${c2}` : c2;
23284
23295
  let s2 = this.rules.other.pedanticHrefTitle.exec(r2);
23285
23296
  s2 && (r2 = s2[1], i2 = s2[3]);
23286
23297
  } else i2 = t[3] ? t[3].slice(1, -1) : "";
23287
- 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: i2 && i2.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
23298
+ 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: i2 && i2.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
23288
23299
  }
23289
23300
  }
23290
23301
  reflink(e, t) {
@@ -23295,32 +23306,32 @@ ${c2}` : c2;
23295
23306
  let s2 = n[0].charAt(0);
23296
23307
  return { type: "text", raw: s2, text: s2 };
23297
23308
  }
23298
- return fe(n, i2, n[0], this.lexer, this.rules);
23309
+ return me(n, i2, n[0], this.lexer, this.rules);
23299
23310
  }
23300
23311
  }
23301
23312
  emStrong(e, t, n = "") {
23302
23313
  let r2 = this.rules.inline.emStrongLDelim.exec(e);
23303
23314
  if (!r2 || r2[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
23304
23315
  if (!(r2[1] || r2[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
23305
- let s2 = [...r2[0]].length - 1, o, a2, u = s2, p2 = 0, c2 = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
23316
+ let s2 = [...r2[0]].length - 1, a2, o, p2 = s2, u = 0, c2 = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
23306
23317
  for (c2.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = c2.exec(t)) != null; ) {
23307
- if (o = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !o) continue;
23308
- if (a2 = [...o].length, r2[3] || r2[4]) {
23309
- u += a2;
23318
+ if (a2 = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !a2) continue;
23319
+ if (o = [...a2].length, r2[3] || r2[4]) {
23320
+ p2 += o;
23310
23321
  continue;
23311
- } else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + a2) % 3)) {
23312
- p2 += a2;
23322
+ } else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + o) % 3)) {
23323
+ u += o;
23313
23324
  continue;
23314
23325
  }
23315
- if (u -= a2, u > 0) continue;
23316
- a2 = Math.min(a2, a2 + u + p2);
23317
- let f2 = [...r2[0]][0].length, k2 = e.slice(0, s2 + r2.index + f2 + a2);
23318
- if (Math.min(s2, a2) % 2) {
23319
- let g = k2.slice(1, -1);
23320
- return { type: "em", raw: k2, text: g, tokens: this.lexer.inlineTokens(g) };
23326
+ if (p2 -= o, p2 > 0) continue;
23327
+ o = Math.min(o, o + p2 + u);
23328
+ let g = [...r2[0]][0].length, h2 = e.slice(0, s2 + r2.index + g + o);
23329
+ if (Math.min(s2, o) % 2) {
23330
+ let f2 = h2.slice(1, -1);
23331
+ return { type: "em", raw: h2, text: f2, tokens: this.lexer.inlineTokens(f2) };
23321
23332
  }
23322
- let x = k2.slice(2, -2);
23323
- return { type: "strong", raw: k2, text: x, tokens: this.lexer.inlineTokens(x) };
23333
+ let R = h2.slice(2, -2);
23334
+ return { type: "strong", raw: h2, text: R, tokens: this.lexer.inlineTokens(R) };
23324
23335
  }
23325
23336
  }
23326
23337
  }
@@ -23369,19 +23380,19 @@ ${c2}` : c2;
23369
23380
  }
23370
23381
  }
23371
23382
  };
23372
- var b = class l {
23383
+ var x = class l {
23373
23384
  constructor(e) {
23374
23385
  __publicField$2(this, "tokens");
23375
23386
  __publicField$2(this, "options");
23376
23387
  __publicField$2(this, "state");
23377
23388
  __publicField$2(this, "tokenizer");
23378
23389
  __publicField$2(this, "inlineQueue");
23379
- 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 };
23380
- let t = { other: m, block: I.normal, inline: M$1.normal };
23381
- 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;
23390
+ 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 };
23391
+ let t = { other: m, block: C.normal, inline: M$1.normal };
23392
+ 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;
23382
23393
  }
23383
23394
  static get rules() {
23384
- return { block: I, inline: M$1 };
23395
+ return { block: C, inline: M$1 };
23385
23396
  }
23386
23397
  static lex(e, t) {
23387
23398
  return new l(t).lex(e);
@@ -23461,9 +23472,9 @@ ${c2}` : c2;
23461
23472
  }
23462
23473
  let i2 = e;
23463
23474
  if (this.options.extensions?.startBlock) {
23464
- let s2 = 1 / 0, o = e.slice(1), a2;
23465
- this.options.extensions.startBlock.forEach((u) => {
23466
- a2 = u.call({ lexer: this }, o), typeof a2 == "number" && a2 >= 0 && (s2 = Math.min(s2, a2));
23475
+ let s2 = 1 / 0, a2 = e.slice(1), o;
23476
+ this.options.extensions.startBlock.forEach((p2) => {
23477
+ o = p2.call({ lexer: this }, a2), typeof o == "number" && o >= 0 && (s2 = Math.min(s2, o));
23467
23478
  }), s2 < 1 / 0 && s2 >= 0 && (i2 = e.substring(0, s2 + 1));
23468
23479
  }
23469
23480
  if (this.state.top && (r2 = this.tokenizer.paragraph(i2))) {
@@ -23503,11 +23514,12 @@ ${c2}` : c2;
23503
23514
  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));
23504
23515
  }
23505
23516
  for (; (r2 = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null; ) n = n.slice(0, r2.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
23506
- 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);
23517
+ let i2;
23518
+ for (; (r2 = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) i2 = r2[2] ? r2[2].length : 0, n = n.slice(0, r2.index + i2) + "[" + "a".repeat(r2[0].length - i2 - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
23507
23519
  n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
23508
- let i2 = false, s2 = "";
23520
+ let s2 = false, a2 = "";
23509
23521
  for (; e; ) {
23510
- i2 || (s2 = ""), i2 = false;
23522
+ s2 || (a2 = ""), s2 = false;
23511
23523
  let o;
23512
23524
  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;
23513
23525
  if (o = this.tokenizer.escape(e)) {
@@ -23528,7 +23540,7 @@ ${c2}` : c2;
23528
23540
  o.type === "text" && u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
23529
23541
  continue;
23530
23542
  }
23531
- if (o = this.tokenizer.emStrong(e, n, s2)) {
23543
+ if (o = this.tokenizer.emStrong(e, n, a2)) {
23532
23544
  e = e.substring(o.raw.length), t.push(o);
23533
23545
  continue;
23534
23546
  }
@@ -23552,15 +23564,15 @@ ${c2}` : c2;
23552
23564
  e = e.substring(o.raw.length), t.push(o);
23553
23565
  continue;
23554
23566
  }
23555
- let a2 = e;
23567
+ let p2 = e;
23556
23568
  if (this.options.extensions?.startInline) {
23557
- let u = 1 / 0, p2 = e.slice(1), c2;
23558
- this.options.extensions.startInline.forEach((f2) => {
23559
- c2 = f2.call({ lexer: this }, p2), typeof c2 == "number" && c2 >= 0 && (u = Math.min(u, c2));
23560
- }), u < 1 / 0 && u >= 0 && (a2 = e.substring(0, u + 1));
23569
+ let u = 1 / 0, c2 = e.slice(1), g;
23570
+ this.options.extensions.startInline.forEach((h2) => {
23571
+ g = h2.call({ lexer: this }, c2), typeof g == "number" && g >= 0 && (u = Math.min(u, g));
23572
+ }), u < 1 / 0 && u >= 0 && (p2 = e.substring(0, u + 1));
23561
23573
  }
23562
- if (o = this.tokenizer.inlineText(a2)) {
23563
- e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s2 = o.raw.slice(-1)), i2 = true;
23574
+ if (o = this.tokenizer.inlineText(p2)) {
23575
+ e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (a2 = o.raw.slice(-1)), s2 = true;
23564
23576
  let u = t.at(-1);
23565
23577
  u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
23566
23578
  continue;
@@ -23580,7 +23592,7 @@ ${c2}` : c2;
23580
23592
  constructor(e) {
23581
23593
  __publicField$2(this, "options");
23582
23594
  __publicField$2(this, "parser");
23583
- this.options = e || O;
23595
+ this.options = e || T;
23584
23596
  }
23585
23597
  space(e) {
23586
23598
  return "";
@@ -23613,9 +23625,9 @@ ${this.parser.parse(e)}</blockquote>
23613
23625
  }
23614
23626
  list(e) {
23615
23627
  let t = e.ordered, n = e.start, r2 = "";
23616
- for (let o = 0; o < e.items.length; o++) {
23617
- let a2 = e.items[o];
23618
- r2 += this.listitem(a2);
23628
+ for (let a2 = 0; a2 < e.items.length; a2++) {
23629
+ let o = e.items[a2];
23630
+ r2 += this.listitem(o);
23619
23631
  }
23620
23632
  let i2 = t ? "ol" : "ul", s2 = t && n !== 1 ? ' start="' + n + '"' : "";
23621
23633
  return "<" + i2 + s2 + `>
@@ -23646,7 +23658,7 @@ ${this.parser.parse(e)}</blockquote>
23646
23658
  for (let i2 = 0; i2 < e.rows.length; i2++) {
23647
23659
  let s2 = e.rows[i2];
23648
23660
  n = "";
23649
- for (let o = 0; o < s2.length; o++) n += this.tablecell(s2[o]);
23661
+ for (let a2 = 0; a2 < s2.length; a2++) n += this.tablecell(s2[a2]);
23650
23662
  r2 += this.tablerow({ text: n });
23651
23663
  }
23652
23664
  return r2 && (r2 = `<tbody>${r2}</tbody>`), `<table>
@@ -23728,12 +23740,12 @@ ${e}</tr>
23728
23740
  return "";
23729
23741
  }
23730
23742
  };
23731
- var R = class l2 {
23743
+ var b = class l2 {
23732
23744
  constructor(e) {
23733
23745
  __publicField$2(this, "options");
23734
23746
  __publicField$2(this, "renderer");
23735
23747
  __publicField$2(this, "textRenderer");
23736
- 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 $$1();
23748
+ 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 $$1();
23737
23749
  }
23738
23750
  static parse(e, t) {
23739
23751
  return new l2(t).parse(e);
@@ -23746,9 +23758,9 @@ ${e}</tr>
23746
23758
  for (let r2 = 0; r2 < e.length; r2++) {
23747
23759
  let i2 = e[r2];
23748
23760
  if (this.options.extensions?.renderers?.[i2.type]) {
23749
- let o = i2, a2 = this.options.extensions.renderers[o.type].call({ parser: this }, o);
23750
- if (a2 !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(o.type)) {
23751
- n += a2 || "";
23761
+ let a2 = i2, o = this.options.extensions.renderers[a2.type].call({ parser: this }, a2);
23762
+ if (o !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(a2.type)) {
23763
+ n += o || "";
23752
23764
  continue;
23753
23765
  }
23754
23766
  }
@@ -23795,16 +23807,16 @@ ${e}</tr>
23795
23807
  continue;
23796
23808
  }
23797
23809
  case "text": {
23798
- let o = s2, a2 = this.renderer.text(o);
23799
- for (; r2 + 1 < e.length && e[r2 + 1].type === "text"; ) o = e[++r2], a2 += `
23800
- ` + this.renderer.text(o);
23801
- t ? n += this.renderer.paragraph({ type: "paragraph", raw: a2, text: a2, tokens: [{ type: "text", raw: a2, text: a2, escaped: true }] }) : n += a2;
23810
+ let a2 = s2, o = this.renderer.text(a2);
23811
+ for (; r2 + 1 < e.length && e[r2 + 1].type === "text"; ) a2 = e[++r2], o += `
23812
+ ` + this.renderer.text(a2);
23813
+ t ? n += this.renderer.paragraph({ type: "paragraph", raw: o, text: o, tokens: [{ type: "text", raw: o, text: o, escaped: true }] }) : n += o;
23802
23814
  continue;
23803
23815
  }
23804
23816
  default: {
23805
- let o = 'Token with "' + s2.type + '" type was not found.';
23806
- if (this.options.silent) return console.error(o), "";
23807
- throw new Error(o);
23817
+ let a2 = 'Token with "' + s2.type + '" type was not found.';
23818
+ if (this.options.silent) return console.error(a2), "";
23819
+ throw new Error(a2);
23808
23820
  }
23809
23821
  }
23810
23822
  }
@@ -23815,9 +23827,9 @@ ${e}</tr>
23815
23827
  for (let r2 = 0; r2 < e.length; r2++) {
23816
23828
  let i2 = e[r2];
23817
23829
  if (this.options.extensions?.renderers?.[i2.type]) {
23818
- let o = this.options.extensions.renderers[i2.type].call({ parser: this }, i2);
23819
- if (o !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i2.type)) {
23820
- n += o || "";
23830
+ let a2 = this.options.extensions.renderers[i2.type].call({ parser: this }, i2);
23831
+ if (a2 !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i2.type)) {
23832
+ n += a2 || "";
23821
23833
  continue;
23822
23834
  }
23823
23835
  }
@@ -23864,9 +23876,9 @@ ${e}</tr>
23864
23876
  break;
23865
23877
  }
23866
23878
  default: {
23867
- let o = 'Token with "' + s2.type + '" type was not found.';
23868
- if (this.options.silent) return console.error(o), "";
23869
- throw new Error(o);
23879
+ let a2 = 'Token with "' + s2.type + '" type was not found.';
23880
+ if (this.options.silent) return console.error(a2), "";
23881
+ throw new Error(a2);
23870
23882
  }
23871
23883
  }
23872
23884
  }
@@ -23877,7 +23889,7 @@ ${e}</tr>
23877
23889
  constructor(e) {
23878
23890
  __publicField$2(this, "options");
23879
23891
  __publicField$2(this, "block");
23880
- this.options = e || O;
23892
+ this.options = e || T;
23881
23893
  }
23882
23894
  preprocess(e) {
23883
23895
  return e;
@@ -23892,10 +23904,10 @@ ${e}</tr>
23892
23904
  return e;
23893
23905
  }
23894
23906
  provideLexer() {
23895
- return this.block ? b.lex : b.lexInline;
23907
+ return this.block ? x.lex : x.lexInline;
23896
23908
  }
23897
23909
  provideParser() {
23898
- return this.block ? R.parse : R.parseInline;
23910
+ return this.block ? b.parse : b.parseInline;
23899
23911
  }
23900
23912
  }, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField$2(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
23901
23913
  var B = class {
@@ -23904,10 +23916,10 @@ ${e}</tr>
23904
23916
  __publicField$2(this, "options", this.setOptions);
23905
23917
  __publicField$2(this, "parse", this.parseMarkdown(true));
23906
23918
  __publicField$2(this, "parseInline", this.parseMarkdown(false));
23907
- __publicField$2(this, "Parser", R);
23919
+ __publicField$2(this, "Parser", b);
23908
23920
  __publicField$2(this, "Renderer", P);
23909
23921
  __publicField$2(this, "TextRenderer", $$1);
23910
- __publicField$2(this, "Lexer", b);
23922
+ __publicField$2(this, "Lexer", x);
23911
23923
  __publicField$2(this, "Tokenizer", y);
23912
23924
  __publicField$2(this, "Hooks", S);
23913
23925
  this.use(...e);
@@ -23918,7 +23930,7 @@ ${e}</tr>
23918
23930
  case "table": {
23919
23931
  let i2 = r2;
23920
23932
  for (let s2 of i2.header) n = n.concat(this.walkTokens(s2.tokens, t));
23921
- for (let s2 of i2.rows) for (let o of s2) n = n.concat(this.walkTokens(o.tokens, t));
23933
+ for (let s2 of i2.rows) for (let a2 of s2) n = n.concat(this.walkTokens(a2.tokens, t));
23922
23934
  break;
23923
23935
  }
23924
23936
  case "list": {
@@ -23929,8 +23941,8 @@ ${e}</tr>
23929
23941
  default: {
23930
23942
  let i2 = r2;
23931
23943
  this.defaults.extensions?.childTokens?.[i2.type] ? this.defaults.extensions.childTokens[i2.type].forEach((s2) => {
23932
- let o = i2[s2].flat(1 / 0);
23933
- n = n.concat(this.walkTokens(o, t));
23944
+ let a2 = i2[s2].flat(1 / 0);
23945
+ n = n.concat(this.walkTokens(a2, t));
23934
23946
  }) : i2.tokens && (n = n.concat(this.walkTokens(i2.tokens, t)));
23935
23947
  }
23936
23948
  }
@@ -23944,9 +23956,9 @@ ${e}</tr>
23944
23956
  if (!i2.name) throw new Error("extension name required");
23945
23957
  if ("renderer" in i2) {
23946
23958
  let s2 = t.renderers[i2.name];
23947
- s2 ? t.renderers[i2.name] = function(...o) {
23948
- let a2 = i2.renderer.apply(this, o);
23949
- return a2 === false && (a2 = s2.apply(this, o)), a2;
23959
+ s2 ? t.renderers[i2.name] = function(...a2) {
23960
+ let o = i2.renderer.apply(this, a2);
23961
+ return o === false && (o = s2.apply(this, a2)), o;
23950
23962
  } : t.renderers[i2.name] = i2.renderer;
23951
23963
  }
23952
23964
  if ("tokenizer" in i2) {
@@ -23960,10 +23972,10 @@ ${e}</tr>
23960
23972
  for (let s2 in n.renderer) {
23961
23973
  if (!(s2 in i2)) throw new Error(`renderer '${s2}' does not exist`);
23962
23974
  if (["options", "parser"].includes(s2)) continue;
23963
- let o = s2, a2 = n.renderer[o], u = i2[o];
23964
- i2[o] = (...p2) => {
23965
- let c2 = a2.apply(i2, p2);
23966
- return c2 === false && (c2 = u.apply(i2, p2)), c2 || "";
23975
+ let a2 = s2, o = n.renderer[a2], p2 = i2[a2];
23976
+ i2[a2] = (...u) => {
23977
+ let c2 = o.apply(i2, u);
23978
+ return c2 === false && (c2 = p2.apply(i2, u)), c2 || "";
23967
23979
  };
23968
23980
  }
23969
23981
  r2.renderer = i2;
@@ -23973,10 +23985,10 @@ ${e}</tr>
23973
23985
  for (let s2 in n.tokenizer) {
23974
23986
  if (!(s2 in i2)) throw new Error(`tokenizer '${s2}' does not exist`);
23975
23987
  if (["options", "rules", "lexer"].includes(s2)) continue;
23976
- let o = s2, a2 = n.tokenizer[o], u = i2[o];
23977
- i2[o] = (...p2) => {
23978
- let c2 = a2.apply(i2, p2);
23979
- return c2 === false && (c2 = u.apply(i2, p2)), c2;
23988
+ let a2 = s2, o = n.tokenizer[a2], p2 = i2[a2];
23989
+ i2[a2] = (...u) => {
23990
+ let c2 = o.apply(i2, u);
23991
+ return c2 === false && (c2 = p2.apply(i2, u)), c2;
23980
23992
  };
23981
23993
  }
23982
23994
  r2.tokenizer = i2;
@@ -23986,23 +23998,30 @@ ${e}</tr>
23986
23998
  for (let s2 in n.hooks) {
23987
23999
  if (!(s2 in i2)) throw new Error(`hook '${s2}' does not exist`);
23988
24000
  if (["options", "block"].includes(s2)) continue;
23989
- let o = s2, a2 = n.hooks[o], u = i2[o];
23990
- S.passThroughHooks.has(s2) ? i2[o] = (p2) => {
23991
- if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return Promise.resolve(a2.call(i2, p2)).then((f2) => u.call(i2, f2));
23992
- let c2 = a2.call(i2, p2);
23993
- return u.call(i2, c2);
23994
- } : i2[o] = (...p2) => {
23995
- let c2 = a2.apply(i2, p2);
23996
- return c2 === false && (c2 = u.apply(i2, p2)), c2;
24001
+ let a2 = s2, o = n.hooks[a2], p2 = i2[a2];
24002
+ S.passThroughHooks.has(s2) ? i2[a2] = (u) => {
24003
+ if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return (async () => {
24004
+ let g = await o.call(i2, u);
24005
+ return p2.call(i2, g);
24006
+ })();
24007
+ let c2 = o.call(i2, u);
24008
+ return p2.call(i2, c2);
24009
+ } : i2[a2] = (...u) => {
24010
+ if (this.defaults.async) return (async () => {
24011
+ let g = await o.apply(i2, u);
24012
+ return g === false && (g = await p2.apply(i2, u)), g;
24013
+ })();
24014
+ let c2 = o.apply(i2, u);
24015
+ return c2 === false && (c2 = p2.apply(i2, u)), c2;
23997
24016
  };
23998
24017
  }
23999
24018
  r2.hooks = i2;
24000
24019
  }
24001
24020
  if (n.walkTokens) {
24002
24021
  let i2 = this.defaults.walkTokens, s2 = n.walkTokens;
24003
- r2.walkTokens = function(o) {
24004
- let a2 = [];
24005
- return a2.push(s2.call(this, o)), i2 && (a2 = a2.concat(i2.call(this, o))), a2;
24022
+ r2.walkTokens = function(a2) {
24023
+ let o = [];
24024
+ return o.push(s2.call(this, a2)), i2 && (o = o.concat(i2.call(this, a2))), o;
24006
24025
  };
24007
24026
  }
24008
24027
  this.defaults = { ...this.defaults, ...r2 };
@@ -24012,28 +24031,31 @@ ${e}</tr>
24012
24031
  return this.defaults = { ...this.defaults, ...e }, this;
24013
24032
  }
24014
24033
  lexer(e, t) {
24015
- return b.lex(e, t ?? this.defaults);
24034
+ return x.lex(e, t ?? this.defaults);
24016
24035
  }
24017
24036
  parser(e, t) {
24018
- return R.parse(e, t ?? this.defaults);
24037
+ return b.parse(e, t ?? this.defaults);
24019
24038
  }
24020
24039
  parseMarkdown(e) {
24021
24040
  return (n, r2) => {
24022
- let i2 = { ...r2 }, s2 = { ...this.defaults, ...i2 }, o = this.onError(!!s2.silent, !!s2.async);
24023
- if (this.defaults.async === true && i2.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."));
24024
- if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
24025
- if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
24026
- s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e);
24027
- let a2 = s2.hooks ? s2.hooks.provideLexer() : e ? b.lex : b.lexInline, u = s2.hooks ? s2.hooks.provideParser() : e ? R.parse : R.parseInline;
24028
- if (s2.async) return Promise.resolve(s2.hooks ? s2.hooks.preprocess(n) : n).then((p2) => a2(p2, s2)).then((p2) => s2.hooks ? s2.hooks.processAllTokens(p2) : p2).then((p2) => s2.walkTokens ? Promise.all(this.walkTokens(p2, s2.walkTokens)).then(() => p2) : p2).then((p2) => u(p2, s2)).then((p2) => s2.hooks ? s2.hooks.postprocess(p2) : p2).catch(o);
24041
+ let i2 = { ...r2 }, s2 = { ...this.defaults, ...i2 }, a2 = this.onError(!!s2.silent, !!s2.async);
24042
+ if (this.defaults.async === true && i2.async === false) return a2(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."));
24043
+ if (typeof n > "u" || n === null) return a2(new Error("marked(): input parameter is undefined or null"));
24044
+ if (typeof n != "string") return a2(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
24045
+ if (s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e), s2.async) return (async () => {
24046
+ 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;
24047
+ s2.walkTokens && await Promise.all(this.walkTokens(c2, s2.walkTokens));
24048
+ let h2 = await (s2.hooks ? await s2.hooks.provideParser() : e ? b.parse : b.parseInline)(c2, s2);
24049
+ return s2.hooks ? await s2.hooks.postprocess(h2) : h2;
24050
+ })().catch(a2);
24029
24051
  try {
24030
24052
  s2.hooks && (n = s2.hooks.preprocess(n));
24031
- let p2 = a2(n, s2);
24053
+ let p2 = (s2.hooks ? s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s2);
24032
24054
  s2.hooks && (p2 = s2.hooks.processAllTokens(p2)), s2.walkTokens && this.walkTokens(p2, s2.walkTokens);
24033
- let c2 = u(p2, s2);
24055
+ let c2 = (s2.hooks ? s2.hooks.provideParser() : e ? b.parse : b.parseInline)(p2, s2);
24034
24056
  return s2.hooks && (c2 = s2.hooks.postprocess(c2)), c2;
24035
- } catch (p2) {
24036
- return o(p2);
24057
+ } catch (o) {
24058
+ return a2(o);
24037
24059
  }
24038
24060
  };
24039
24061
  }
@@ -24050,38 +24072,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
24050
24072
  }
24051
24073
  };
24052
24074
  var _ = new B();
24053
- function d$1(l3, e) {
24075
+ function k$1(l3, e) {
24054
24076
  return _.parse(l3, e);
24055
24077
  }
24056
- d$1.options = d$1.setOptions = function(l3) {
24057
- return _.setOptions(l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
24078
+ k$1.options = k$1.setOptions = function(l3) {
24079
+ return _.setOptions(l3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
24058
24080
  };
24059
- d$1.getDefaults = L;
24060
- d$1.defaults = O;
24061
- d$1.use = function(...l3) {
24062
- return _.use(...l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
24081
+ k$1.getDefaults = L;
24082
+ k$1.defaults = T;
24083
+ k$1.use = function(...l3) {
24084
+ return _.use(...l3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
24063
24085
  };
24064
- d$1.walkTokens = function(l3, e) {
24086
+ k$1.walkTokens = function(l3, e) {
24065
24087
  return _.walkTokens(l3, e);
24066
24088
  };
24067
- d$1.parseInline = _.parseInline;
24068
- d$1.Parser = R;
24069
- d$1.parser = R.parse;
24070
- d$1.Renderer = P;
24071
- d$1.TextRenderer = $$1;
24072
- d$1.Lexer = b;
24073
- d$1.lexer = b.lex;
24074
- d$1.Tokenizer = y;
24075
- d$1.Hooks = S;
24076
- d$1.parse = d$1;
24077
- d$1.options;
24078
- d$1.setOptions;
24079
- d$1.use;
24080
- d$1.walkTokens;
24081
- d$1.parseInline;
24082
- R.parse;
24083
- b.lex;
24084
- d$1.use({
24089
+ k$1.parseInline = _.parseInline;
24090
+ k$1.Parser = b;
24091
+ k$1.parser = b.parse;
24092
+ k$1.Renderer = P;
24093
+ k$1.TextRenderer = $$1;
24094
+ k$1.Lexer = x;
24095
+ k$1.lexer = x.lex;
24096
+ k$1.Tokenizer = y;
24097
+ k$1.Hooks = S;
24098
+ k$1.parse = k$1;
24099
+ k$1.options;
24100
+ k$1.setOptions;
24101
+ k$1.use;
24102
+ k$1.walkTokens;
24103
+ k$1.parseInline;
24104
+ b.parse;
24105
+ x.lex;
24106
+ k$1.use({
24085
24107
  breaks: false,
24086
24108
  // Use proper paragraphs, not <br> tags
24087
24109
  gfm: true
@@ -24092,7 +24114,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
24092
24114
  return createDocFromHTML(html2, schema, options);
24093
24115
  }
24094
24116
  function convertMarkdownToHTML(markdown) {
24095
- let html2 = d$1.parse(markdown, { async: false });
24117
+ let html2 = k$1.parse(markdown, { async: false });
24096
24118
  return html2.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");
24097
24119
  }
24098
24120
  function processContent({ content: content2, type: type2, schema }) {
@@ -28716,18 +28738,18 @@ Please report this to https://github.com/markedjs/marked.`, e) {
28716
28738
  const rawY = shapeOff?.attributes?.["y"] ? parseFloat(shapeOff.attributes["y"]) : 0;
28717
28739
  const rawWidth = shapeExt?.attributes?.["cx"] ? parseFloat(shapeExt.attributes["cx"]) : 914400;
28718
28740
  const rawHeight = shapeExt?.attributes?.["cy"] ? parseFloat(shapeExt.attributes["cy"]) : 914400;
28719
- let x, y2, width, height;
28741
+ let x2, y2, width, height;
28720
28742
  if (groupTransform.childWidth && groupTransform.childHeight) {
28721
28743
  const scaleX = groupTransform.width / groupTransform.childWidth;
28722
28744
  const scaleY = groupTransform.height / groupTransform.childHeight;
28723
28745
  const childOriginX = groupTransform.childOriginXEmu || 0;
28724
28746
  const childOriginY = groupTransform.childOriginYEmu || 0;
28725
- x = groupTransform.x + emuToPixels((rawX - childOriginX) * scaleX);
28747
+ x2 = groupTransform.x + emuToPixels((rawX - childOriginX) * scaleX);
28726
28748
  y2 = groupTransform.y + emuToPixels((rawY - childOriginY) * scaleY);
28727
28749
  width = emuToPixels(rawWidth * scaleX);
28728
28750
  height = emuToPixels(rawHeight * scaleY);
28729
28751
  } else {
28730
- x = emuToPixels(rawX);
28752
+ x2 = emuToPixels(rawX);
28731
28753
  y2 = emuToPixels(rawY);
28732
28754
  width = emuToPixels(rawWidth);
28733
28755
  height = emuToPixels(rawHeight);
@@ -28746,7 +28768,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
28746
28768
  shapeType: "vectorShape",
28747
28769
  attrs: {
28748
28770
  kind: shapeKind,
28749
- x,
28771
+ x: x2,
28750
28772
  y: y2,
28751
28773
  width,
28752
28774
  height,
@@ -32359,8 +32381,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32359
32381
  });
32360
32382
  encodedAttrs.importedAuthor = `${encodedAttrs.author} (imported)`;
32361
32383
  subs.forEach((subElement) => {
32362
- if (subElement.marks === void 0) subElement.marks = [];
32363
- subElement.marks.push({ type: "trackDelete", attrs: encodedAttrs });
32384
+ subElement.marks = [];
32385
+ if (subElement?.content?.[0]) {
32386
+ if (subElement.content[0].marks === void 0) {
32387
+ subElement.content[0].marks = [];
32388
+ }
32389
+ if (subElement.content[0].type === "text") {
32390
+ subElement.content[0].marks.push({ type: "trackDelete", attrs: encodedAttrs });
32391
+ }
32392
+ }
32364
32393
  });
32365
32394
  return subs;
32366
32395
  };
@@ -32419,8 +32448,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32419
32448
  });
32420
32449
  encodedAttrs.importedAuthor = `${encodedAttrs.author} (imported)`;
32421
32450
  subs.forEach((subElement) => {
32422
- if (subElement.marks === void 0) subElement.marks = [];
32423
- subElement.marks.push({ type: "trackInsert", attrs: encodedAttrs });
32451
+ subElement.marks = [];
32452
+ if (subElement?.content?.[0]) {
32453
+ if (subElement.content[0].marks === void 0) {
32454
+ subElement.content[0].marks = [];
32455
+ }
32456
+ if (subElement.content[0].type === "text") {
32457
+ subElement.content[0].marks.push({ type: "trackInsert", attrs: encodedAttrs });
32458
+ }
32459
+ }
32424
32460
  });
32425
32461
  return subs;
32426
32462
  };
@@ -33150,7 +33186,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
33150
33186
  const generateCommentsWithExtendedData = ({ docx, comments }) => {
33151
33187
  if (!comments?.length) return [];
33152
33188
  const commentsExtended = docx["word/commentsExtended.xml"];
33153
- if (!commentsExtended) return comments.map((comment2) => ({ ...comment2, isDone: comment2.isDone ?? false }));
33189
+ if (!commentsExtended) {
33190
+ const commentRanges = extractCommentRangesFromDocument(docx);
33191
+ const commentsWithThreading = detectThreadingFromRanges(comments, commentRanges);
33192
+ return commentsWithThreading.map((comment2) => ({ ...comment2, isDone: comment2.isDone ?? false }));
33193
+ }
33154
33194
  const { elements: initialElements = [] } = commentsExtended;
33155
33195
  if (!initialElements?.length) return comments.map((comment2) => ({ ...comment2, isDone: comment2.isDone ?? false }));
33156
33196
  const { elements = [] } = initialElements[0] ?? {};
@@ -33176,6 +33216,79 @@ Please report this to https://github.com/markedjs/marked.`, e) {
33176
33216
  const paraIdParent = attributes["w15:paraIdParent"];
33177
33217
  return { paraId, isDone, paraIdParent };
33178
33218
  };
33219
+ const extractCommentRangesFromDocument = (docx) => {
33220
+ const documentXml = docx["word/document.xml"];
33221
+ if (!documentXml) {
33222
+ return [];
33223
+ }
33224
+ const pendingComments = [];
33225
+ const walkElements = (elements) => {
33226
+ if (!elements || !Array.isArray(elements)) return;
33227
+ elements.forEach((element2) => {
33228
+ if (element2.name === "w:commentRangeStart") {
33229
+ const commentId = element2.attributes?.["w:id"];
33230
+ if (commentId !== void 0) {
33231
+ pendingComments.push({
33232
+ type: "start",
33233
+ commentId: String(commentId)
33234
+ });
33235
+ }
33236
+ } else if (element2.name === "w:commentRangeEnd") {
33237
+ const commentId = element2.attributes?.["w:id"];
33238
+ if (commentId !== void 0) {
33239
+ pendingComments.push({
33240
+ type: "end",
33241
+ commentId: String(commentId)
33242
+ });
33243
+ }
33244
+ }
33245
+ if (element2.elements && Array.isArray(element2.elements)) {
33246
+ walkElements(element2.elements);
33247
+ }
33248
+ });
33249
+ };
33250
+ if (documentXml.elements && documentXml.elements.length > 0) {
33251
+ const body = documentXml.elements[0];
33252
+ if (body.elements) {
33253
+ walkElements(body.elements);
33254
+ }
33255
+ }
33256
+ return pendingComments;
33257
+ };
33258
+ const detectThreadingFromRanges = (comments, rangeEvents) => {
33259
+ if (!rangeEvents || rangeEvents.length === 0) {
33260
+ return comments;
33261
+ }
33262
+ const openRanges = [];
33263
+ const parentMap = /* @__PURE__ */ new Map();
33264
+ rangeEvents.forEach((event) => {
33265
+ if (event.type === "start") {
33266
+ if (openRanges.length > 0) {
33267
+ const parentCommentId = openRanges[openRanges.length - 1];
33268
+ parentMap.set(event.commentId, parentCommentId);
33269
+ }
33270
+ openRanges.push(event.commentId);
33271
+ } else if (event.type === "end") {
33272
+ const index2 = openRanges.lastIndexOf(event.commentId);
33273
+ if (index2 !== -1) {
33274
+ openRanges.splice(index2, 1);
33275
+ }
33276
+ }
33277
+ });
33278
+ return comments.map((comment2) => {
33279
+ const parentCommentId = parentMap.get(comment2.importedId);
33280
+ if (parentCommentId) {
33281
+ const parentComment = comments.find((c2) => c2.importedId === parentCommentId);
33282
+ if (parentComment) {
33283
+ return {
33284
+ ...comment2,
33285
+ parentCommentId: parentComment.commentId
33286
+ };
33287
+ }
33288
+ }
33289
+ return comment2;
33290
+ });
33291
+ };
33179
33292
  const RELATIONSHIP_TYPES = (
33180
33293
  /** @type {const} */
33181
33294
  {
@@ -35361,7 +35474,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
35361
35474
  return newComment;
35362
35475
  };
35363
35476
  const getCommentDefinition = (comment2, commentId, allComments, editor) => {
35364
- const translatedText = translateParagraphNode({ editor, node: comment2.commentJSON });
35477
+ const translatedText = translator$1p.decode({ editor, node: comment2.commentJSON });
35365
35478
  const attributes = {
35366
35479
  "w:id": String(commentId),
35367
35480
  "w:author": comment2.creatorName || comment2.importedAuthor?.name,
@@ -35400,10 +35513,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
35400
35513
  const updateCommentsXml = (commentDefs = [], commentsXml) => {
35401
35514
  const newCommentsXml = carbonCopy(commentsXml);
35402
35515
  commentDefs.forEach((commentDef) => {
35403
- const elements = commentDef.elements[0].elements;
35516
+ const paraNode = commentDef.elements[0];
35517
+ if (!paraNode.attributes) paraNode.attributes = {};
35518
+ const elements = paraNode.elements;
35404
35519
  elements.unshift(COMMENT_REF);
35405
35520
  const paraId = commentDef.attributes["w15:paraId"];
35406
- commentDef.elements[0].attributes["w14:paraId"] = paraId;
35521
+ paraNode.attributes["w14:paraId"] = paraId;
35407
35522
  commentDef.attributes = {
35408
35523
  "w:id": commentDef.attributes["w:id"],
35409
35524
  "w:author": commentDef.attributes["w:author"],
@@ -35463,7 +35578,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
35463
35578
  name: "w16cex:commentExtensible",
35464
35579
  attributes: {
35465
35580
  "w16cex:durableId": newDurableId,
35466
- "w16cex:dateUtc": toIsoNoFractional()
35581
+ "w16cex:dateUtc": toIsoNoFractional(comment2.createdTime)
35467
35582
  }
35468
35583
  };
35469
35584
  extensibleUpdated.elements[0].elements.push(newExtensible);
@@ -35776,7 +35891,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
35776
35891
  static getStoredSuperdocVersion(docx) {
35777
35892
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
35778
35893
  }
35779
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.34.4") {
35894
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.34.6-RC1") {
35780
35895
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
35781
35896
  }
35782
35897
  /**
@@ -36167,7 +36282,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
36167
36282
  };
36168
36283
  exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
36169
36284
  const relsData = this.convertedXml["word/_rels/document.xml.rels"];
36170
- const relationships = relsData.elements.find((x) => x.name === "Relationships");
36285
+ const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
36171
36286
  const newDocRels = [];
36172
36287
  Object.entries(this.headers).forEach(([id, header], index2) => {
36173
36288
  const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
@@ -36208,7 +36323,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
36208
36323
  }
36209
36324
  this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
36210
36325
  if (params2.relationships.length) {
36211
- const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
36326
+ const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
36212
36327
  this.convertedXml[`word/_rels/${fileName}.rels`] = {
36213
36328
  declaration: this.initialJSON?.declaration,
36214
36329
  elements: [
@@ -36262,7 +36377,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
36262
36377
  }
36263
36378
  this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
36264
36379
  if (params2.relationships.length) {
36265
- const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
36380
+ const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
36266
36381
  this.convertedXml[`word/_rels/${fileName}.rels`] = {
36267
36382
  declaration: this.initialJSON?.declaration,
36268
36383
  elements: [
@@ -36281,7 +36396,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
36281
36396
  };
36282
36397
  exportProcessNewRelationships_fn = function(rels = []) {
36283
36398
  const relsData = this.convertedXml["word/_rels/document.xml.rels"];
36284
- const relationships = relsData.elements.find((x) => x.name === "Relationships");
36399
+ const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
36285
36400
  relationships.elements = mergeRelationshipElements(relationships.elements, rels);
36286
36401
  };
36287
36402
  exportProcessMediaFiles_fn = async function(media2 = {}) {
@@ -36477,8 +36592,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
36477
36592
  return n2;
36478
36593
  }
36479
36594
  function n(e2, t2, r22, n2, i22, s22) {
36480
- var a2, o, h2 = e2.file, u = e2.compression, l = s22 !== O2.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O2.utf8encode(h2.name)), d2 = h2.comment, p2 = 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 };
36481
- t2 && !r22 || (x.crc32 = e2.crc32, x.compressedSize = e2.compressedSize, x.uncompressedSize = e2.uncompressedSize);
36595
+ var a2, o, h2 = e2.file, u = e2.compression, l = s22 !== O.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O.utf8encode(h2.name)), d2 = h2.comment, p2 = 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 };
36596
+ t2 && !r22 || (x2.crc32 = e2.crc32, x2.compressedSize = e2.compressedSize, x2.uncompressedSize = e2.uncompressedSize);
36482
36597
  var S2 = 0;
36483
36598
  t2 && (S2 |= 8), l || !_2 && !g || (S2 |= 2048);
36484
36599
  var z2 = 0, C2 = 0;
@@ -36489,9 +36604,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
36489
36604
  return 63 & (e3 || 0);
36490
36605
  })(h2.dosPermissions)), a2 = k2.getUTCHours(), a2 <<= 6, a2 |= k2.getUTCMinutes(), a2 <<= 5, a2 |= 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(p2), 4) + m2, b2 += "uc" + A2(y2.length, 2) + y2);
36491
36606
  var E2 = "";
36492
- return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a2, 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(p2.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p2 };
36607
+ return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a2, 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(p2.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p2 };
36493
36608
  }
36494
- var I2 = e("../utils"), i2 = e("../stream/GenericWorker"), O2 = e("../utf8"), B2 = e("../crc32"), R2 = e("../signature");
36609
+ var I2 = e("../utils"), i2 = e("../stream/GenericWorker"), O = e("../utf8"), B2 = e("../crc32"), R = e("../signature");
36495
36610
  function s2(e2, t2, r22, n2) {
36496
36611
  i2.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 = [];
36497
36612
  }
@@ -36509,7 +36624,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
36509
36624
  this.accumulate = false;
36510
36625
  var t2 = this.streamFiles && !e2.file.dir, r22 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
36511
36626
  if (this.dirRecords.push(r22.dirRecord), t2) this.push({ data: (function(e3) {
36512
- return R2.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
36627
+ return R.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
36513
36628
  })(e2), meta: { percent: 100 } });
36514
36629
  else for (this.push({ data: r22.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
36515
36630
  this.currentFile = null;
@@ -36517,7 +36632,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
36517
36632
  for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });
36518
36633
  var r22 = this.bytesWritten - e2, n2 = (function(e3, t3, r3, n3, i22) {
36519
36634
  var s22 = I2.transformTo("string", i22(n3));
36520
- 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;
36635
+ 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;
36521
36636
  })(this.dirRecords.length, r22, e2, this.zipComment, this.encodeFileName);
36522
36637
  this.push({ data: n2, meta: { percent: 100 } });
36523
36638
  }, s2.prototype.prepareNextSource = function() {
@@ -37717,11 +37832,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
37717
37832
  return -1 ^ e2;
37718
37833
  };
37719
37834
  }, {}], 46: [function(e, t, r2) {
37720
- var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p2 = e("./crc32"), n = e("./messages"), l = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i2 = 2, v2 = 8, y2 = 9, s2 = 286, a2 = 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;
37721
- function R2(e2, t2) {
37835
+ var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p2 = e("./crc32"), n = e("./messages"), l = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i2 = 2, v2 = 8, y2 = 9, s2 = 286, a2 = 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;
37836
+ function R(e2, t2) {
37722
37837
  return e2.msg = n[t2], t2;
37723
37838
  }
37724
- function T(e2) {
37839
+ function T2(e2) {
37725
37840
  return (e2 << 1) - (4 < e2 ? 9 : 0);
37726
37841
  }
37727
37842
  function D2(e2) {
@@ -37765,7 +37880,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
37765
37880
  i22 += f22;
37766
37881
  }
37767
37882
  if (0 === e2.strm.avail_in) break;
37768
- if (a22 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i22, l2 = void 0, l2 = a22.avail_in, u2 < l2 && (l2 = u2), r22 = 0 === l2 ? 0 : (a22.avail_in -= l2, c2.arraySet(o2, a22.input, a22.next_in, l2, h22), 1 === a22.state.wrap ? a22.adler = d2(a22.adler, o2, l2, h22) : 2 === a22.state.wrap && (a22.adler = p2(a22.adler, o2, l2, h22)), a22.next_in += l2, a22.total_in += l2, l2), 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)); ) ;
37883
+ if (a22 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i22, l2 = void 0, l2 = a22.avail_in, u2 < l2 && (l2 = u2), r22 = 0 === l2 ? 0 : (a22.avail_in -= l2, c2.arraySet(o2, a22.input, a22.next_in, l2, h22), 1 === a22.state.wrap ? a22.adler = d2(a22.adler, o2, l2, h22) : 2 === a22.state.wrap && (a22.adler = p2(a22.adler, o2, l2, h22)), a22.next_in += l2, a22.total_in += l2, l2), 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)); ) ;
37769
37884
  } while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
37770
37885
  }
37771
37886
  function Z(e2, t2) {
@@ -37774,14 +37889,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
37774
37889
  if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
37775
37890
  if (0 === e2.lookahead) break;
37776
37891
  }
37777
- 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) {
37778
- 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; ) ;
37892
+ 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) {
37893
+ 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; ) ;
37779
37894
  e2.strstart++;
37780
37895
  } 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;
37781
37896
  else n2 = u._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
37782
37897
  if (n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37783
37898
  }
37784
- 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;
37899
+ 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;
37785
37900
  }
37786
37901
  function W2(e2, t2) {
37787
37902
  for (var r22, n2, i22; ; ) {
@@ -37789,14 +37904,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
37789
37904
  if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
37790
37905
  if (0 === e2.lookahead) break;
37791
37906
  }
37792
- 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) {
37793
- for (i22 = 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 <= i22 && (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; ) ;
37794
- if (e2.match_available = 0, e2.match_length = x - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37907
+ 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) {
37908
+ for (i22 = 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 <= i22 && (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; ) ;
37909
+ if (e2.match_available = 0, e2.match_length = x2 - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37795
37910
  } else if (e2.match_available) {
37796
37911
  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;
37797
37912
  } else e2.match_available = 1, e2.strstart++, e2.lookahead--;
37798
37913
  }
37799
- 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;
37914
+ 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;
37800
37915
  }
37801
37916
  function M2(e2, t2, r22, n2, i22) {
37802
37917
  this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i22;
@@ -37806,21 +37921,21 @@ Please report this to https://github.com/markedjs/marked.`, e) {
37806
37921
  }
37807
37922
  function G2(e2) {
37808
37923
  var t2;
37809
- return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i2, (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 = l, u._tr_init(t2), m2) : R2(e2, _2);
37924
+ return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i2, (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 = l, u._tr_init(t2), m2) : R(e2, _2);
37810
37925
  }
37811
37926
  function K2(e2) {
37812
37927
  var t2 = G2(e2);
37813
37928
  return t2 === m2 && (function(e3) {
37814
- 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;
37929
+ 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;
37815
37930
  })(e2.state), t2;
37816
37931
  }
37817
37932
  function Y2(e2, t2, r22, n2, i22, s22) {
37818
37933
  if (!e2) return _2;
37819
37934
  var a22 = 1;
37820
- if (t2 === g && (t2 = 6), n2 < 0 ? (a22 = 0, n2 = -n2) : 15 < n2 && (a22 = 2, n2 -= 16), i22 < 1 || y2 < i22 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R2(e2, _2);
37935
+ if (t2 === g && (t2 = 6), n2 < 0 ? (a22 = 0, n2 = -n2) : 15 < n2 && (a22 = 2, n2 -= 16), i22 < 1 || y2 < i22 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R(e2, _2);
37821
37936
  8 === n2 && (n2 = 9);
37822
37937
  var o2 = new H();
37823
- return (e2.state = o2).strm = e2, o2.wrap = a22, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i22 + 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 << i22 + 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);
37938
+ return (e2.state = o2).strm = e2, o2.wrap = a22, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i22 + 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 << i22 + 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);
37824
37939
  }
37825
37940
  h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
37826
37941
  var r22 = 65535;
@@ -37834,15 +37949,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
37834
37949
  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;
37835
37950
  if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37836
37951
  }
37837
- 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);
37952
+ 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);
37838
37953
  }), 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) {
37839
37954
  return Y2(e2, t2, v2, 15, 8, 0);
37840
37955
  }, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
37841
37956
  return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
37842
37957
  }, r2.deflate = function(e2, t2) {
37843
37958
  var r22, n2, i22, s22;
37844
- if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R2(e2, _2) : _2;
37845
- 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);
37959
+ if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R(e2, _2) : _2;
37960
+ 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);
37846
37961
  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 = p2(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);
37847
37962
  else {
37848
37963
  var a22 = v2 + (n2.w_bits - 8 << 4) << 8;
@@ -37876,8 +37991,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
37876
37991
  } else n2.status = 103;
37877
37992
  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) {
37878
37993
  if (F2(e2), 0 === e2.avail_out) return n2.last_flush = -1, m2;
37879
- } else if (0 === e2.avail_in && T(t2) <= T(r22) && t2 !== f2) return R2(e2, -5);
37880
- if (666 === n2.status && 0 !== e2.avail_in) return R2(e2, -5);
37994
+ } else if (0 === e2.avail_in && T2(t2) <= T2(r22) && t2 !== f2) return R(e2, -5);
37995
+ if (666 === n2.status && 0 !== e2.avail_in) return R(e2, -5);
37881
37996
  if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l && 666 !== n2.status) {
37882
37997
  var o2 = 2 === n2.strategy ? (function(e3, t3) {
37883
37998
  for (var r3; ; ) {
@@ -37887,39 +38002,39 @@ Please report this to https://github.com/markedjs/marked.`, e) {
37887
38002
  }
37888
38003
  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;
37889
38004
  }
37890
- 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;
38005
+ 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;
37891
38006
  })(n2, t2) : 3 === n2.strategy ? (function(e3, t3) {
37892
38007
  for (var r3, n3, i3, s3, a3 = e3.window; ; ) {
37893
38008
  if (e3.lookahead <= S2) {
37894
38009
  if (j2(e3), e3.lookahead <= S2 && t3 === l) return A2;
37895
38010
  if (0 === e3.lookahead) break;
37896
38011
  }
37897
- 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]) {
38012
+ 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]) {
37898
38013
  s3 = e3.strstart + S2;
37899
38014
  do {
37900
38015
  } 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);
37901
38016
  e3.match_length = S2 - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);
37902
38017
  }
37903
- 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;
38018
+ 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;
37904
38019
  }
37905
- 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;
38020
+ 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;
37906
38021
  })(n2, t2) : h2[n2.level].func(n2, t2);
37907
- if (o2 !== O2 && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O2) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
38022
+ if (o2 !== O && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
37908
38023
  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;
37909
38024
  }
37910
38025
  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);
37911
38026
  }, r2.deflateEnd = function(e2) {
37912
38027
  var t2;
37913
- 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;
38028
+ 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;
37914
38029
  }, r2.deflateSetDictionary = function(e2, t2) {
37915
38030
  var r22, n2, i22, s22, a22, o2, h22, u2, l2 = t2.length;
37916
38031
  if (!e2 || !e2.state) return _2;
37917
38032
  if (2 === (s22 = (r22 = e2.state).wrap) || 1 === s22 && r22.status !== C2 || r22.lookahead) return _2;
37918
- for (1 === s22 && (e2.adler = d2(e2.adler, t2, l2, 0)), r22.wrap = 0, l2 >= 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, l2 - r22.w_size, r22.w_size, 0), t2 = u2, l2 = r22.w_size), a22 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l2, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x; ) {
37919
- for (n2 = r22.strstart, i22 = 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++, --i22; ) ;
37920
- r22.strstart = n2, r22.lookahead = x - 1, j2(r22);
38033
+ for (1 === s22 && (e2.adler = d2(e2.adler, t2, l2, 0)), r22.wrap = 0, l2 >= 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, l2 - r22.w_size, r22.w_size, 0), t2 = u2, l2 = r22.w_size), a22 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l2, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x2; ) {
38034
+ for (n2 = r22.strstart, i22 = 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++, --i22; ) ;
38035
+ r22.strstart = n2, r22.lookahead = x2 - 1, j2(r22);
37921
38036
  }
37922
- 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 = a22, r22.wrap = s22, m2;
38037
+ 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 = a22, r22.wrap = s22, m2;
37923
38038
  }, r2.deflateInfo = "pako deflate (from Nodeca project)";
37924
38039
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r2) {
37925
38040
  t.exports = function() {
@@ -37927,7 +38042,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
37927
38042
  };
37928
38043
  }, {}], 48: [function(e, t, r2) {
37929
38044
  t.exports = function(e2, t2) {
37930
- var r22, n, i2, s2, a2, o, h2, u, l, f2, c2, d2, p2, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2;
38045
+ var r22, n, i2, s2, a2, o, h2, u, l, f2, c2, d2, p2, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2;
37931
38046
  r22 = e2.state, n = e2.next_in, z2 = e2.input, i2 = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a2 = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax, u = r22.wsize, l = r22.whave, f2 = r22.wnext, c2 = r22.window, d2 = r22.hold, p2 = r22.bits, m2 = r22.lencode, _2 = r22.distcode, g = (1 << r22.lenbits) - 1, b2 = (1 << r22.distbits) - 1;
37932
38047
  e: do {
37933
38048
  p2 < 15 && (d2 += z2[n++] << p2, p2 += 8, d2 += z2[n++] << p2, p2 += 8), v2 = m2[d2 & g];
@@ -37965,28 +38080,28 @@ Please report this to https://github.com/markedjs/marked.`, e) {
37965
38080
  e2.msg = "invalid distance too far back", r22.mode = 30;
37966
38081
  break e;
37967
38082
  }
37968
- if (S2 = c2, (x = 0) === f2) {
37969
- if (x += u - y2, y2 < w2) {
37970
- for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
37971
- x = s2 - k2, S2 = C2;
38083
+ if (S2 = c2, (x2 = 0) === f2) {
38084
+ if (x2 += u - y2, y2 < w2) {
38085
+ for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
38086
+ x2 = s2 - k2, S2 = C2;
37972
38087
  }
37973
38088
  } else if (f2 < y2) {
37974
- if (x += u + f2 - y2, (y2 -= f2) < w2) {
37975
- for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
37976
- if (x = 0, f2 < w2) {
37977
- for (w2 -= y2 = f2; C2[s2++] = c2[x++], --y2; ) ;
37978
- x = s2 - k2, S2 = C2;
38089
+ if (x2 += u + f2 - y2, (y2 -= f2) < w2) {
38090
+ for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
38091
+ if (x2 = 0, f2 < w2) {
38092
+ for (w2 -= y2 = f2; C2[s2++] = c2[x2++], --y2; ) ;
38093
+ x2 = s2 - k2, S2 = C2;
37979
38094
  }
37980
38095
  }
37981
- } else if (x += f2 - y2, y2 < w2) {
37982
- for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
37983
- x = s2 - k2, S2 = C2;
38096
+ } else if (x2 += f2 - y2, y2 < w2) {
38097
+ for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
38098
+ x2 = s2 - k2, S2 = C2;
37984
38099
  }
37985
- for (; 2 < w2; ) C2[s2++] = S2[x++], C2[s2++] = S2[x++], C2[s2++] = S2[x++], w2 -= 3;
37986
- w2 && (C2[s2++] = S2[x++], 1 < w2 && (C2[s2++] = S2[x++]));
38100
+ for (; 2 < w2; ) C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], w2 -= 3;
38101
+ w2 && (C2[s2++] = S2[x2++], 1 < w2 && (C2[s2++] = S2[x2++]));
37987
38102
  } else {
37988
- for (x = s2 - k2; C2[s2++] = C2[x++], C2[s2++] = C2[x++], C2[s2++] = C2[x++], 2 < (w2 -= 3); ) ;
37989
- w2 && (C2[s2++] = C2[x++], 1 < w2 && (C2[s2++] = C2[x++]));
38103
+ for (x2 = s2 - k2; C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], 2 < (w2 -= 3); ) ;
38104
+ w2 && (C2[s2++] = C2[x2++], 1 < w2 && (C2[s2++] = C2[x2++]));
37990
38105
  }
37991
38106
  break;
37992
38107
  }
@@ -37997,7 +38112,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
37997
38112
  n -= w2 = p2 >> 3, d2 &= (1 << (p2 -= w2 << 3)) - 1, e2.next_in = n, e2.next_out = s2, e2.avail_in = n < i2 ? i2 - n + 5 : 5 - (n - i2), e2.avail_out = s2 < o ? o - s2 + 257 : 257 - (s2 - o), r22.hold = d2, r22.bits = p2;
37998
38113
  };
37999
38114
  }, {}], 49: [function(e, t, r2) {
38000
- 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, i2 = 592;
38115
+ 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, i2 = 592;
38001
38116
  function L2(e2) {
38002
38117
  return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
38003
38118
  }
@@ -38028,8 +38143,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
38028
38143
  for (; t2 < 256; ) e2.lens[t2++] = 9;
38029
38144
  for (; t2 < 280; ) e2.lens[t2++] = 7;
38030
38145
  for (; t2 < 288; ) e2.lens[t2++] = 8;
38031
- for (T(D2, e2.lens, 0, 288, l, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
38032
- T(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
38146
+ for (T2(D2, e2.lens, 0, 288, l, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
38147
+ T2(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
38033
38148
  }
38034
38149
  e2.lencode = l, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
38035
38150
  }
@@ -38040,9 +38155,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
38040
38155
  r2.inflateReset = o, r2.inflateReset2 = h2, r2.inflateResetKeep = a2, r2.inflateInit = function(e2) {
38041
38156
  return u(e2, 15);
38042
38157
  }, r2.inflateInit2 = u, r2.inflate = function(e2, t2) {
38043
- var r22, n2, i22, s22, a22, o2, h22, u2, l2, f22, c22, d2, p2, 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];
38158
+ var r22, n2, i22, s22, a22, o2, h22, u2, l2, f22, c22, d2, p2, 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];
38044
38159
  if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U2;
38045
- 12 === (r22 = e2.state).mode && (r22.mode = 13), a22 = e2.next_out, i22 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l2 = r22.bits, f22 = o2, c22 = h22, x = N2;
38160
+ 12 === (r22 = e2.state).mode && (r22.mode = 13), a22 = e2.next_out, i22 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l2 = r22.bits, f22 = o2, c22 = h22, x2 = N2;
38046
38161
  e: for (; ; ) switch (r22.mode) {
38047
38162
  case P2:
38048
38163
  if (0 === r22.wrap) {
@@ -38213,7 +38328,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
38213
38328
  r22.lens[A2[r22.have++]] = 7 & u2, u2 >>>= 3, l2 -= 3;
38214
38329
  }
38215
38330
  for (; r22.have < 19; ) r22.lens[A2[r22.have++]] = 0;
38216
- 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) {
38331
+ 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) {
38217
38332
  e2.msg = "invalid code lengths set", r22.mode = 30;
38218
38333
  break;
38219
38334
  }
@@ -38261,11 +38376,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
38261
38376
  e2.msg = "invalid code -- missing end-of-block", r22.mode = 30;
38262
38377
  break;
38263
38378
  }
38264
- 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) {
38379
+ 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) {
38265
38380
  e2.msg = "invalid literal/lengths set", r22.mode = 30;
38266
38381
  break;
38267
38382
  }
38268
- 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) {
38383
+ 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) {
38269
38384
  e2.msg = "invalid distances set", r22.mode = 30;
38270
38385
  break;
38271
38386
  }
@@ -38274,7 +38389,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
38274
38389
  r22.mode = 21;
38275
38390
  case 21:
38276
38391
  if (6 <= o2 && 258 <= h22) {
38277
- e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2, R2(e2, c22), a22 = e2.next_out, i22 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l2 = r22.bits, 12 === r22.mode && (r22.back = -1);
38392
+ e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2, R(e2, c22), a22 = e2.next_out, i22 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l2 = r22.bits, 12 === r22.mode && (r22.back = -1);
38278
38393
  break;
38279
38394
  }
38280
38395
  for (r22.back = 0; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
@@ -38362,7 +38477,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
38362
38477
  if (0 === o2) break e;
38363
38478
  o2--, u2 |= n2[s22++] << l2, l2 += 8;
38364
38479
  }
38365
- if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, a22 - c22) : O2(r22.check, i22, c22, a22 - c22)), c22 = h22, (r22.flags ? u2 : L2(u2)) !== r22.check) {
38480
+ if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, a22 - c22) : O(r22.check, i22, c22, a22 - c22)), c22 = h22, (r22.flags ? u2 : L2(u2)) !== r22.check) {
38366
38481
  e2.msg = "incorrect data check", r22.mode = 30;
38367
38482
  break;
38368
38483
  }
@@ -38383,10 +38498,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
38383
38498
  }
38384
38499
  r22.mode = 29;
38385
38500
  case 29:
38386
- x = 1;
38501
+ x2 = 1;
38387
38502
  break e;
38388
38503
  case 30:
38389
- x = -3;
38504
+ x2 = -3;
38390
38505
  break e;
38391
38506
  case 31:
38392
38507
  return -4;
@@ -38394,7 +38509,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
38394
38509
  default:
38395
38510
  return U2;
38396
38511
  }
38397
- return e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2, (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, i22, c22, e2.next_out - c22) : O2(r22.check, i22, 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);
38512
+ return e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2, (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, i22, c22, e2.next_out - c22) : O(r22.check, i22, 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);
38398
38513
  }, r2.inflateEnd = function(e2) {
38399
38514
  if (!e2 || !e2.state) return U2;
38400
38515
  var t2 = e2.state;
@@ -38404,33 +38519,33 @@ Please report this to https://github.com/markedjs/marked.`, e) {
38404
38519
  return e2 && e2.state ? 0 == (2 & (r22 = e2.state).wrap) ? U2 : ((r22.head = t2).done = false, N2) : U2;
38405
38520
  }, r2.inflateSetDictionary = function(e2, t2) {
38406
38521
  var r22, n2 = t2.length;
38407
- 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;
38522
+ 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;
38408
38523
  }, r2.inflateInfo = "pako inflate (from Nodeca project)";
38409
38524
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r2) {
38410
38525
  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];
38411
38526
  t.exports = function(e2, t2, r22, n, i2, s2, a2, o) {
38412
- var h2, u, l, f2, c2, d2, p2, 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;
38413
- for (b2 = 0; b2 <= 15; b2++) O2[b2] = 0;
38414
- for (v2 = 0; v2 < n; v2++) O2[t2[r22 + v2]]++;
38415
- for (k2 = g, w2 = 15; 1 <= w2 && 0 === O2[w2]; w2--) ;
38527
+ var h2, u, l, f2, c2, d2, p2, 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;
38528
+ for (b2 = 0; b2 <= 15; b2++) O[b2] = 0;
38529
+ for (v2 = 0; v2 < n; v2++) O[t2[r22 + v2]]++;
38530
+ for (k2 = g, w2 = 15; 1 <= w2 && 0 === O[w2]; w2--) ;
38416
38531
  if (w2 < k2 && (k2 = w2), 0 === w2) return i2[s2++] = 20971520, i2[s2++] = 20971520, o.bits = 1, 0;
38417
- for (y2 = 1; y2 < w2 && 0 === O2[y2]; y2++) ;
38418
- for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O2[b2]) < 0) return -1;
38532
+ for (y2 = 1; y2 < w2 && 0 === O[y2]; y2++) ;
38533
+ for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O[b2]) < 0) return -1;
38419
38534
  if (0 < z2 && (0 === e2 || 1 !== w2)) return -1;
38420
- for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O2[b2];
38535
+ for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O[b2];
38421
38536
  for (v2 = 0; v2 < n; v2++) 0 !== t2[r22 + v2] && (a2[B2[t2[r22 + v2]]++] = v2);
38422
- if (d2 = 0 === e2 ? (A2 = R2 = a2, 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, l = -1, f2 = (C2 = 1 << (x = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38537
+ if (d2 = 0 === e2 ? (A2 = R = a2, 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, l = -1, f2 = (C2 = 1 << (x2 = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38423
38538
  for (; ; ) {
38424
- for (p2 = b2 - S2, _2 = a2[v2] < d2 ? (m2 = 0, a2[v2]) : a2[v2] > d2 ? (m2 = R2[T + a2[v2]], A2[I2 + a2[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u = 1 << x; i2[c2 + (E2 >> S2) + (u -= h2)] = p2 << 24 | m2 << 16 | _2 | 0, 0 !== u; ) ;
38539
+ for (p2 = b2 - S2, _2 = a2[v2] < d2 ? (m2 = 0, a2[v2]) : a2[v2] > d2 ? (m2 = R[T2 + a2[v2]], A2[I2 + a2[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u = 1 << x2; i2[c2 + (E2 >> S2) + (u -= h2)] = p2 << 24 | m2 << 16 | _2 | 0, 0 !== u; ) ;
38425
38540
  for (h2 = 1 << b2 - 1; E2 & h2; ) h2 >>= 1;
38426
- if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O2[b2]) {
38541
+ if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O[b2]) {
38427
38542
  if (b2 === w2) break;
38428
38543
  b2 = t2[r22 + a2[v2]];
38429
38544
  }
38430
38545
  if (k2 < b2 && (E2 & f2) !== l) {
38431
- for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x = b2 - S2); x + S2 < w2 && !((z2 -= O2[x + S2]) <= 0); ) x++, z2 <<= 1;
38432
- if (C2 += 1 << x, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38433
- i2[l = E2 & f2] = k2 << 24 | x << 16 | c2 - s2 | 0;
38546
+ for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x2 = b2 - S2); x2 + S2 < w2 && !((z2 -= O[x2 + S2]) <= 0); ) x2++, z2 <<= 1;
38547
+ if (C2 += 1 << x2, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38548
+ i2[l = E2 & f2] = k2 << 24 | x2 << 16 | c2 - s2 | 0;
38434
38549
  }
38435
38550
  }
38436
38551
  return 0 !== E2 && (i2[c2 + E2] = b2 - S2 << 24 | 64 << 16 | 0), o.bits = k2, 0;
@@ -38442,7 +38557,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
38442
38557
  function n(e2) {
38443
38558
  for (var t2 = e2.length; 0 <= --t2; ) e2[t2] = 0;
38444
38559
  }
38445
- var s2 = 0, a2 = 29, u = 256, l = u + 1 + a2, f2 = 30, c2 = 19, _2 = 2 * l + 1, g = 15, d2 = 16, p2 = 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 * (l + 2));
38560
+ var s2 = 0, a2 = 29, u = 256, l = u + 1 + a2, f2 = 30, c2 = 19, _2 = 2 * l + 1, g = 15, d2 = 16, p2 = 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 * (l + 2));
38446
38561
  n(z2);
38447
38562
  var C2 = new Array(2 * f2);
38448
38563
  n(C2);
@@ -38452,7 +38567,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
38452
38567
  n(A2);
38453
38568
  var I2 = new Array(a2);
38454
38569
  n(I2);
38455
- var O2, B2, R2, T = new Array(f2);
38570
+ var O, B2, R, T2 = new Array(f2);
38456
38571
  function D2(e2, t2, r22, n2, i22) {
38457
38572
  this.static_tree = e2, this.extra_bits = t2, this.extra_base = r22, this.elems = n2, this.max_length = i22, this.has_stree = e2 && e2.length;
38458
38573
  }
@@ -38503,7 +38618,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
38503
38618
  }
38504
38619
  function K2(e2, t2, r22) {
38505
38620
  var n2, i22, s22, a22, o2 = 0;
38506
- 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], i22 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i22, t2) : (L2(e2, (s22 = A2[i22]) + u + 1, t2), 0 !== (a22 = w2[s22]) && P2(e2, i22 -= I2[s22], a22), L2(e2, s22 = N2(--n2), r22), 0 !== (a22 = k2[s22]) && P2(e2, n2 -= T[s22], a22)), o2 < e2.last_lit; ) ;
38621
+ 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], i22 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i22, t2) : (L2(e2, (s22 = A2[i22]) + u + 1, t2), 0 !== (a22 = w2[s22]) && P2(e2, i22 -= I2[s22], a22), L2(e2, s22 = N2(--n2), r22), 0 !== (a22 = k2[s22]) && P2(e2, n2 -= T2[s22], a22)), o2 < e2.last_lit; ) ;
38507
38622
  L2(e2, m2, t2);
38508
38623
  }
38509
38624
  function Y2(e2, t2) {
@@ -38537,7 +38652,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
38537
38652
  s22 = i22, u2 = (o2 = 0) === a22 ? (h22 = 138, 3) : i22 === a22 ? (h22 = 6, 3) : (h22 = 7, 4);
38538
38653
  }
38539
38654
  }
38540
- n(T);
38655
+ n(T2);
38541
38656
  var q2 = false;
38542
38657
  function J2(e2, t2, r22, n2) {
38543
38658
  P2(e2, (s2 << 1) + (n2 ? 1 : 0), 3), (function(e3, t3, r3, n3) {
@@ -38548,16 +38663,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
38548
38663
  q2 || ((function() {
38549
38664
  var e3, t2, r22, n2, i22, s22 = new Array(g + 1);
38550
38665
  for (n2 = r22 = 0; n2 < a2 - 1; n2++) for (I2[n2] = r22, e3 = 0; e3 < 1 << w2[n2]; e3++) A2[r22++] = n2;
38551
- for (A2[r22 - 1] = n2, n2 = i22 = 0; n2 < 16; n2++) for (T[n2] = i22, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i22++] = n2;
38552
- for (i22 >>= 7; n2 < f2; n2++) for (T[n2] = i22 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i22++] = n2;
38666
+ for (A2[r22 - 1] = n2, n2 = i22 = 0; n2 < 16; n2++) for (T2[n2] = i22, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i22++] = n2;
38667
+ for (i22 >>= 7; n2 < f2; n2++) for (T2[n2] = i22 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i22++] = n2;
38553
38668
  for (t2 = 0; t2 <= g; t2++) s22[t2] = 0;
38554
38669
  for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
38555
38670
  for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s22[9]++;
38556
38671
  for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s22[7]++;
38557
38672
  for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
38558
38673
  for (Z(z2, l + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
38559
- O2 = new D2(z2, w2, u + 1, l, g), B2 = new D2(C2, k2, 0, f2, g), R2 = new D2(new Array(0), x, 0, c2, p2);
38560
- })(), 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);
38674
+ O = new D2(z2, w2, u + 1, l, g), B2 = new D2(C2, k2, 0, f2, g), R = new D2(new Array(0), x2, 0, c2, p2);
38675
+ })(), 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);
38561
38676
  }, r2._tr_stored_block = J2, r2._tr_flush_block = function(e2, t2, r22, n2) {
38562
38677
  var i22, s22, a22 = 0;
38563
38678
  0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = (function(e3) {
@@ -38962,7 +39077,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
38962
39077
  }
38963
39078
  }
38964
39079
  /**
38965
- * @vue/shared v3.5.24
39080
+ * @vue/shared v3.5.25
38966
39081
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
38967
39082
  * @license MIT
38968
39083
  **/
@@ -39758,19 +39873,25 @@ Please report this to https://github.com/markedjs/marked.`, e) {
39758
39873
  track$1(arr = toRaw(arr), "iterate", ARRAY_ITERATE_KEY);
39759
39874
  return arr;
39760
39875
  }
39876
+ function toWrapped(target, item) {
39877
+ if (isReadonly(target)) {
39878
+ return isReactive(target) ? toReadonly(toReactive(item)) : toReadonly(item);
39879
+ }
39880
+ return toReactive(item);
39881
+ }
39761
39882
  const arrayInstrumentations = {
39762
39883
  __proto__: null,
39763
39884
  [Symbol.iterator]() {
39764
- return iterator(this, Symbol.iterator, toReactive);
39885
+ return iterator(this, Symbol.iterator, (item) => toWrapped(this, item));
39765
39886
  },
39766
39887
  concat(...args) {
39767
39888
  return reactiveReadArray(this).concat(
39768
- ...args.map((x) => isArray$3(x) ? reactiveReadArray(x) : x)
39889
+ ...args.map((x2) => isArray$3(x2) ? reactiveReadArray(x2) : x2)
39769
39890
  );
39770
39891
  },
39771
39892
  entries() {
39772
39893
  return iterator(this, "entries", (value) => {
39773
- value[1] = toReactive(value[1]);
39894
+ value[1] = toWrapped(this, value[1]);
39774
39895
  return value;
39775
39896
  });
39776
39897
  },
@@ -39778,16 +39899,37 @@ Please report this to https://github.com/markedjs/marked.`, e) {
39778
39899
  return apply$3(this, "every", fn, thisArg, void 0, arguments);
39779
39900
  },
39780
39901
  filter(fn, thisArg) {
39781
- return apply$3(this, "filter", fn, thisArg, (v2) => v2.map(toReactive), arguments);
39902
+ return apply$3(
39903
+ this,
39904
+ "filter",
39905
+ fn,
39906
+ thisArg,
39907
+ (v2) => v2.map((item) => toWrapped(this, item)),
39908
+ arguments
39909
+ );
39782
39910
  },
39783
39911
  find(fn, thisArg) {
39784
- return apply$3(this, "find", fn, thisArg, toReactive, arguments);
39912
+ return apply$3(
39913
+ this,
39914
+ "find",
39915
+ fn,
39916
+ thisArg,
39917
+ (item) => toWrapped(this, item),
39918
+ arguments
39919
+ );
39785
39920
  },
39786
39921
  findIndex(fn, thisArg) {
39787
39922
  return apply$3(this, "findIndex", fn, thisArg, void 0, arguments);
39788
39923
  },
39789
39924
  findLast(fn, thisArg) {
39790
- return apply$3(this, "findLast", fn, thisArg, toReactive, arguments);
39925
+ return apply$3(
39926
+ this,
39927
+ "findLast",
39928
+ fn,
39929
+ thisArg,
39930
+ (item) => toWrapped(this, item),
39931
+ arguments
39932
+ );
39791
39933
  },
39792
39934
  findLastIndex(fn, thisArg) {
39793
39935
  return apply$3(this, "findLastIndex", fn, thisArg, void 0, arguments);
@@ -39847,7 +39989,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
39847
39989
  return noTracking(this, "unshift", args);
39848
39990
  },
39849
39991
  values() {
39850
- return iterator(this, "values", toReactive);
39992
+ return iterator(this, "values", (item) => toWrapped(this, item));
39851
39993
  }
39852
39994
  };
39853
39995
  function iterator(self2, method, wrapValue) {
@@ -39878,7 +40020,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
39878
40020
  if (arr !== self2) {
39879
40021
  if (needsWrap) {
39880
40022
  wrappedFn = function(item, index2) {
39881
- return fn.call(this, toReactive(item), index2, self2);
40023
+ return fn.call(this, toWrapped(self2, item), index2, self2);
39882
40024
  };
39883
40025
  } else if (fn.length > 2) {
39884
40026
  wrappedFn = function(item, index2) {
@@ -39895,7 +40037,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
39895
40037
  if (arr !== self2) {
39896
40038
  if (!isShallow(self2)) {
39897
40039
  wrappedFn = function(acc, item, index2) {
39898
- return fn.call(this, acc, toReactive(item), index2, self2);
40040
+ return fn.call(this, acc, toWrapped(self2, item), index2, self2);
39899
40041
  };
39900
40042
  } else if (fn.length > 3) {
39901
40043
  wrappedFn = function(acc, item, index2) {
@@ -39998,13 +40140,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
39998
40140
  }
39999
40141
  set(target, key2, value, receiver) {
40000
40142
  let oldValue = target[key2];
40143
+ const isArrayWithIntegerKey = isArray$3(target) && isIntegerKey(key2);
40001
40144
  if (!this._isShallow) {
40002
40145
  const isOldValueReadonly = isReadonly(oldValue);
40003
40146
  if (!isShallow(value) && !isReadonly(value)) {
40004
40147
  oldValue = toRaw(oldValue);
40005
40148
  value = toRaw(value);
40006
40149
  }
40007
- if (!isArray$3(target) && isRef(oldValue) && !isRef(value)) {
40150
+ if (!isArrayWithIntegerKey && isRef(oldValue) && !isRef(value)) {
40008
40151
  if (isOldValueReadonly) {
40009
40152
  return true;
40010
40153
  } else {
@@ -40013,7 +40156,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
40013
40156
  }
40014
40157
  }
40015
40158
  }
40016
- const hadKey = isArray$3(target) && isIntegerKey(key2) ? Number(key2) < target.length : hasOwn(target, key2);
40159
+ const hadKey = isArrayWithIntegerKey ? Number(key2) < target.length : hasOwn(target, key2);
40017
40160
  const result = Reflect.set(
40018
40161
  target,
40019
40162
  key2,
@@ -40452,16 +40595,35 @@ Please report this to https://github.com/markedjs/marked.`, e) {
40452
40595
  this._defaultValue = _defaultValue;
40453
40596
  this["__v_isRef"] = true;
40454
40597
  this._value = void 0;
40598
+ this._raw = toRaw(_object);
40599
+ let shallow = true;
40600
+ let obj = _object;
40601
+ if (!isArray$3(_object) || !isIntegerKey(String(_key))) {
40602
+ do {
40603
+ shallow = !isProxy(obj) || isShallow(obj);
40604
+ } while (shallow && (obj = obj["__v_raw"]));
40605
+ }
40606
+ this._shallow = shallow;
40455
40607
  }
40456
40608
  get value() {
40457
- const val = this._object[this._key];
40609
+ let val = this._object[this._key];
40610
+ if (this._shallow) {
40611
+ val = unref(val);
40612
+ }
40458
40613
  return this._value = val === void 0 ? this._defaultValue : val;
40459
40614
  }
40460
40615
  set value(newVal) {
40616
+ if (this._shallow && isRef(this._raw[this._key])) {
40617
+ const nestedRef = this._object[this._key];
40618
+ if (isRef(nestedRef)) {
40619
+ nestedRef.value = newVal;
40620
+ return;
40621
+ }
40622
+ }
40461
40623
  this._object[this._key] = newVal;
40462
40624
  }
40463
40625
  get dep() {
40464
- return getDepFromReactive(toRaw(this._object), this._key);
40626
+ return getDepFromReactive(this._raw, this._key);
40465
40627
  }
40466
40628
  }
40467
40629
  class GetterRefImpl {
@@ -40487,8 +40649,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
40487
40649
  }
40488
40650
  }
40489
40651
  function propertyToRef(source, key2, defaultValue) {
40490
- const val = source[key2];
40491
- return isRef(val) ? val : new ObjectRefImpl(source, key2, defaultValue);
40652
+ return new ObjectRefImpl(source, key2, defaultValue);
40492
40653
  }
40493
40654
  class ComputedRefImpl {
40494
40655
  constructor(fn, setter, isSSR) {
@@ -42350,7 +42511,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
42350
42511
  return true;
42351
42512
  }
42352
42513
  const { ctx: ctx2, setupState, data, props, accessCache, type: type2, appContext } = instance;
42353
- let normalizedProps;
42354
42514
  if (key2[0] !== "$") {
42355
42515
  const n = accessCache[key2];
42356
42516
  if (n !== void 0) {
@@ -42370,11 +42530,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
42370
42530
  } else if (data !== EMPTY_OBJ && hasOwn(data, key2)) {
42371
42531
  accessCache[key2] = 2;
42372
42532
  return data[key2];
42373
- } else if (
42374
- // only cache other properties when instance has declared (thus stable)
42375
- // props
42376
- (normalizedProps = instance.propsOptions[0]) && hasOwn(normalizedProps, key2)
42377
- ) {
42533
+ } else if (hasOwn(props, key2)) {
42378
42534
  accessCache[key2] = 3;
42379
42535
  return props[key2];
42380
42536
  } else if (ctx2 !== EMPTY_OBJ && hasOwn(ctx2, key2)) {
@@ -42429,10 +42585,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
42429
42585
  return true;
42430
42586
  },
42431
42587
  has({
42432
- _: { data, setupState, accessCache, ctx: ctx2, appContext, propsOptions, type: type2 }
42588
+ _: { data, setupState, accessCache, ctx: ctx2, appContext, props, type: type2 }
42433
42589
  }, key2) {
42434
- let normalizedProps, cssModules;
42435
- return !!(accessCache[key2] || data !== EMPTY_OBJ && key2[0] !== "$" && hasOwn(data, key2) || hasSetupBinding(setupState, key2) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key2) || hasOwn(ctx2, key2) || hasOwn(publicPropertiesMap, key2) || hasOwn(appContext.config.globalProperties, key2) || (cssModules = type2.__cssModules) && cssModules[key2]);
42590
+ let cssModules;
42591
+ return !!(accessCache[key2] || data !== EMPTY_OBJ && key2[0] !== "$" && hasOwn(data, key2) || hasSetupBinding(setupState, key2) || hasOwn(props, key2) || hasOwn(ctx2, key2) || hasOwn(publicPropertiesMap, key2) || hasOwn(appContext.config.globalProperties, key2) || (cssModules = type2.__cssModules) && cssModules[key2]);
42436
42592
  },
42437
42593
  defineProperty(target, key2, descriptor) {
42438
42594
  if (descriptor.get != null) {
@@ -42919,8 +43075,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
42919
43075
  }
42920
43076
  let currentApp = null;
42921
43077
  function provide(key2, value) {
42922
- if (!currentInstance) ;
42923
- else {
43078
+ if (currentInstance) {
42924
43079
  let provides = currentInstance.provides;
42925
43080
  const parentProvides = currentInstance.parent && currentInstance.parent.provides;
42926
43081
  if (parentProvides === provides) {
@@ -42943,6 +43098,391 @@ Please report this to https://github.com/markedjs/marked.`, e) {
42943
43098
  function hasInjectionContext() {
42944
43099
  return !!(getCurrentInstance() || currentApp);
42945
43100
  }
43101
+ const ssrContextKey$2 = Symbol.for("v-scx");
43102
+ const useSSRContext = () => {
43103
+ {
43104
+ const ctx2 = inject(ssrContextKey$2);
43105
+ return ctx2;
43106
+ }
43107
+ };
43108
+ function watchEffect(effect2, options) {
43109
+ return doWatch(effect2, null, options);
43110
+ }
43111
+ function watch(source, cb, options) {
43112
+ return doWatch(source, cb, options);
43113
+ }
43114
+ function doWatch(source, cb, options = EMPTY_OBJ) {
43115
+ const { immediate, deep, flush, once } = options;
43116
+ const baseWatchOptions = extend$2({}, options);
43117
+ const runsImmediately = cb && immediate || !cb && flush !== "post";
43118
+ let ssrCleanup;
43119
+ if (isInSSRComponentSetup) {
43120
+ if (flush === "sync") {
43121
+ const ctx2 = useSSRContext();
43122
+ ssrCleanup = ctx2.__watcherHandles || (ctx2.__watcherHandles = []);
43123
+ } else if (!runsImmediately) {
43124
+ const watchStopHandle = () => {
43125
+ };
43126
+ watchStopHandle.stop = NOOP;
43127
+ watchStopHandle.resume = NOOP;
43128
+ watchStopHandle.pause = NOOP;
43129
+ return watchStopHandle;
43130
+ }
43131
+ }
43132
+ const instance = currentInstance;
43133
+ baseWatchOptions.call = (fn, type2, args) => callWithAsyncErrorHandling(fn, instance, type2, args);
43134
+ let isPre = false;
43135
+ if (flush === "post") {
43136
+ baseWatchOptions.scheduler = (job) => {
43137
+ queuePostRenderEffect(job, instance && instance.suspense);
43138
+ };
43139
+ } else if (flush !== "sync") {
43140
+ isPre = true;
43141
+ baseWatchOptions.scheduler = (job, isFirstRun) => {
43142
+ if (isFirstRun) {
43143
+ job();
43144
+ } else {
43145
+ queueJob(job);
43146
+ }
43147
+ };
43148
+ }
43149
+ baseWatchOptions.augmentJob = (job) => {
43150
+ if (cb) {
43151
+ job.flags |= 4;
43152
+ }
43153
+ if (isPre) {
43154
+ job.flags |= 2;
43155
+ if (instance) {
43156
+ job.id = instance.uid;
43157
+ job.i = instance;
43158
+ }
43159
+ }
43160
+ };
43161
+ const watchHandle = watch$1(source, cb, baseWatchOptions);
43162
+ if (isInSSRComponentSetup) {
43163
+ if (ssrCleanup) {
43164
+ ssrCleanup.push(watchHandle);
43165
+ } else if (runsImmediately) {
43166
+ watchHandle();
43167
+ }
43168
+ }
43169
+ return watchHandle;
43170
+ }
43171
+ function instanceWatch(source, value, options) {
43172
+ const publicThis = this.proxy;
43173
+ const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
43174
+ let cb;
43175
+ if (isFunction$2(value)) {
43176
+ cb = value;
43177
+ } else {
43178
+ cb = value.handler;
43179
+ options = value;
43180
+ }
43181
+ const reset = setCurrentInstance(this);
43182
+ const res = doWatch(getter, cb.bind(publicThis), options);
43183
+ reset();
43184
+ return res;
43185
+ }
43186
+ function createPathGetter(ctx2, path2) {
43187
+ const segments = path2.split(".");
43188
+ return () => {
43189
+ let cur = ctx2;
43190
+ for (let i2 = 0; i2 < segments.length && cur; i2++) {
43191
+ cur = cur[segments[i2]];
43192
+ }
43193
+ return cur;
43194
+ };
43195
+ }
43196
+ const getModelModifiers = (props, modelName) => {
43197
+ return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize(modelName)}Modifiers`] || props[`${hyphenate(modelName)}Modifiers`];
43198
+ };
43199
+ function emit(instance, event, ...rawArgs) {
43200
+ if (instance.isUnmounted) return;
43201
+ const props = instance.vnode.props || EMPTY_OBJ;
43202
+ let args = rawArgs;
43203
+ const isModelListener2 = event.startsWith("update:");
43204
+ const modifiers2 = isModelListener2 && getModelModifiers(props, event.slice(7));
43205
+ if (modifiers2) {
43206
+ if (modifiers2.trim) {
43207
+ args = rawArgs.map((a2) => isString(a2) ? a2.trim() : a2);
43208
+ }
43209
+ if (modifiers2.number) {
43210
+ args = rawArgs.map(looseToNumber);
43211
+ }
43212
+ }
43213
+ let handlerName;
43214
+ let handler2 = props[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249)
43215
+ props[handlerName = toHandlerKey(camelize(event))];
43216
+ if (!handler2 && isModelListener2) {
43217
+ handler2 = props[handlerName = toHandlerKey(hyphenate(event))];
43218
+ }
43219
+ if (handler2) {
43220
+ callWithAsyncErrorHandling(
43221
+ handler2,
43222
+ instance,
43223
+ 6,
43224
+ args
43225
+ );
43226
+ }
43227
+ const onceHandler = props[handlerName + `Once`];
43228
+ if (onceHandler) {
43229
+ if (!instance.emitted) {
43230
+ instance.emitted = {};
43231
+ } else if (instance.emitted[handlerName]) {
43232
+ return;
43233
+ }
43234
+ instance.emitted[handlerName] = true;
43235
+ callWithAsyncErrorHandling(
43236
+ onceHandler,
43237
+ instance,
43238
+ 6,
43239
+ args
43240
+ );
43241
+ }
43242
+ }
43243
+ const mixinEmitsCache = /* @__PURE__ */ new WeakMap();
43244
+ function normalizeEmitsOptions(comp, appContext, asMixin = false) {
43245
+ const cache2 = asMixin ? mixinEmitsCache : appContext.emitsCache;
43246
+ const cached = cache2.get(comp);
43247
+ if (cached !== void 0) {
43248
+ return cached;
43249
+ }
43250
+ const raw = comp.emits;
43251
+ let normalized = {};
43252
+ let hasExtends = false;
43253
+ if (!isFunction$2(comp)) {
43254
+ const extendEmits = (raw2) => {
43255
+ const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true);
43256
+ if (normalizedFromExtend) {
43257
+ hasExtends = true;
43258
+ extend$2(normalized, normalizedFromExtend);
43259
+ }
43260
+ };
43261
+ if (!asMixin && appContext.mixins.length) {
43262
+ appContext.mixins.forEach(extendEmits);
43263
+ }
43264
+ if (comp.extends) {
43265
+ extendEmits(comp.extends);
43266
+ }
43267
+ if (comp.mixins) {
43268
+ comp.mixins.forEach(extendEmits);
43269
+ }
43270
+ }
43271
+ if (!raw && !hasExtends) {
43272
+ if (isObject$3(comp)) {
43273
+ cache2.set(comp, null);
43274
+ }
43275
+ return null;
43276
+ }
43277
+ if (isArray$3(raw)) {
43278
+ raw.forEach((key2) => normalized[key2] = null);
43279
+ } else {
43280
+ extend$2(normalized, raw);
43281
+ }
43282
+ if (isObject$3(comp)) {
43283
+ cache2.set(comp, normalized);
43284
+ }
43285
+ return normalized;
43286
+ }
43287
+ function isEmitListener(options, key2) {
43288
+ if (!options || !isOn(key2)) {
43289
+ return false;
43290
+ }
43291
+ key2 = key2.slice(2).replace(/Once$/, "");
43292
+ return hasOwn(options, key2[0].toLowerCase() + key2.slice(1)) || hasOwn(options, hyphenate(key2)) || hasOwn(options, key2);
43293
+ }
43294
+ function markAttrsAccessed() {
43295
+ }
43296
+ function renderComponentRoot(instance) {
43297
+ const {
43298
+ type: Component,
43299
+ vnode,
43300
+ proxy,
43301
+ withProxy,
43302
+ propsOptions: [propsOptions],
43303
+ slots,
43304
+ attrs,
43305
+ emit: emit2,
43306
+ render: render2,
43307
+ renderCache,
43308
+ props,
43309
+ data,
43310
+ setupState,
43311
+ ctx: ctx2,
43312
+ inheritAttrs
43313
+ } = instance;
43314
+ const prev = setCurrentRenderingInstance(instance);
43315
+ let result;
43316
+ let fallthroughAttrs;
43317
+ try {
43318
+ if (vnode.shapeFlag & 4) {
43319
+ const proxyToUse = withProxy || proxy;
43320
+ const thisProxy = !!(define_process_default$2.env.NODE_ENV !== "production") && setupState.__isScriptSetup ? new Proxy(proxyToUse, {
43321
+ get(target, key2, receiver) {
43322
+ warn$1$2(
43323
+ `Property '${String(
43324
+ key2
43325
+ )}' was accessed via 'this'. Avoid using 'this' in templates.`
43326
+ );
43327
+ return Reflect.get(target, key2, receiver);
43328
+ }
43329
+ }) : proxyToUse;
43330
+ result = normalizeVNode(
43331
+ render2.call(
43332
+ thisProxy,
43333
+ proxyToUse,
43334
+ renderCache,
43335
+ !!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
43336
+ setupState,
43337
+ data,
43338
+ ctx2
43339
+ )
43340
+ );
43341
+ fallthroughAttrs = attrs;
43342
+ } else {
43343
+ const render22 = Component;
43344
+ if (!!(define_process_default$2.env.NODE_ENV !== "production") && attrs === props) ;
43345
+ result = normalizeVNode(
43346
+ render22.length > 1 ? render22(
43347
+ !!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
43348
+ !!(define_process_default$2.env.NODE_ENV !== "production") ? {
43349
+ get attrs() {
43350
+ markAttrsAccessed();
43351
+ return shallowReadonly(attrs);
43352
+ },
43353
+ slots,
43354
+ emit: emit2
43355
+ } : { attrs, slots, emit: emit2 }
43356
+ ) : render22(
43357
+ !!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
43358
+ null
43359
+ )
43360
+ );
43361
+ fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
43362
+ }
43363
+ } catch (err) {
43364
+ blockStack.length = 0;
43365
+ handleError(err, instance, 1);
43366
+ result = createVNode(Comment);
43367
+ }
43368
+ let root2 = result;
43369
+ if (fallthroughAttrs && inheritAttrs !== false) {
43370
+ const keys2 = Object.keys(fallthroughAttrs);
43371
+ const { shapeFlag } = root2;
43372
+ if (keys2.length) {
43373
+ if (shapeFlag & (1 | 6)) {
43374
+ if (propsOptions && keys2.some(isModelListener)) {
43375
+ fallthroughAttrs = filterModelListeners(
43376
+ fallthroughAttrs,
43377
+ propsOptions
43378
+ );
43379
+ }
43380
+ root2 = cloneVNode(root2, fallthroughAttrs, false, true);
43381
+ }
43382
+ }
43383
+ }
43384
+ if (vnode.dirs) {
43385
+ root2 = cloneVNode(root2, null, false, true);
43386
+ root2.dirs = root2.dirs ? root2.dirs.concat(vnode.dirs) : vnode.dirs;
43387
+ }
43388
+ if (vnode.transition) {
43389
+ setTransitionHooks(root2, vnode.transition);
43390
+ }
43391
+ {
43392
+ result = root2;
43393
+ }
43394
+ setCurrentRenderingInstance(prev);
43395
+ return result;
43396
+ }
43397
+ const getFunctionalFallthrough = (attrs) => {
43398
+ let res;
43399
+ for (const key2 in attrs) {
43400
+ if (key2 === "class" || key2 === "style" || isOn(key2)) {
43401
+ (res || (res = {}))[key2] = attrs[key2];
43402
+ }
43403
+ }
43404
+ return res;
43405
+ };
43406
+ const filterModelListeners = (attrs, props) => {
43407
+ const res = {};
43408
+ for (const key2 in attrs) {
43409
+ if (!isModelListener(key2) || !(key2.slice(9) in props)) {
43410
+ res[key2] = attrs[key2];
43411
+ }
43412
+ }
43413
+ return res;
43414
+ };
43415
+ function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
43416
+ const { props: prevProps, children: prevChildren, component } = prevVNode;
43417
+ const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
43418
+ const emits = component.emitsOptions;
43419
+ if (nextVNode.dirs || nextVNode.transition) {
43420
+ return true;
43421
+ }
43422
+ if (optimized && patchFlag >= 0) {
43423
+ if (patchFlag & 1024) {
43424
+ return true;
43425
+ }
43426
+ if (patchFlag & 16) {
43427
+ if (!prevProps) {
43428
+ return !!nextProps;
43429
+ }
43430
+ return hasPropsChanged(prevProps, nextProps, emits);
43431
+ } else if (patchFlag & 8) {
43432
+ const dynamicProps = nextVNode.dynamicProps;
43433
+ for (let i2 = 0; i2 < dynamicProps.length; i2++) {
43434
+ const key2 = dynamicProps[i2];
43435
+ if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emits, key2)) {
43436
+ return true;
43437
+ }
43438
+ }
43439
+ }
43440
+ } else {
43441
+ if (prevChildren || nextChildren) {
43442
+ if (!nextChildren || !nextChildren.$stable) {
43443
+ return true;
43444
+ }
43445
+ }
43446
+ if (prevProps === nextProps) {
43447
+ return false;
43448
+ }
43449
+ if (!prevProps) {
43450
+ return !!nextProps;
43451
+ }
43452
+ if (!nextProps) {
43453
+ return true;
43454
+ }
43455
+ return hasPropsChanged(prevProps, nextProps, emits);
43456
+ }
43457
+ return false;
43458
+ }
43459
+ function hasPropsChanged(prevProps, nextProps, emitsOptions) {
43460
+ const nextKeys = Object.keys(nextProps);
43461
+ if (nextKeys.length !== Object.keys(prevProps).length) {
43462
+ return true;
43463
+ }
43464
+ for (let i2 = 0; i2 < nextKeys.length; i2++) {
43465
+ const key2 = nextKeys[i2];
43466
+ if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emitsOptions, key2)) {
43467
+ return true;
43468
+ }
43469
+ }
43470
+ return false;
43471
+ }
43472
+ function updateHOCHostEl({ vnode, parent }, el) {
43473
+ while (parent) {
43474
+ const root2 = parent.subTree;
43475
+ if (root2.suspense && root2.suspense.activeBranch === vnode) {
43476
+ root2.el = vnode.el;
43477
+ }
43478
+ if (root2 === vnode) {
43479
+ (vnode = parent.vnode).el = el;
43480
+ parent = parent.parent;
43481
+ } else {
43482
+ break;
43483
+ }
43484
+ }
43485
+ }
42946
43486
  const internalObjectProto = {};
42947
43487
  const createInternalObject = () => Object.create(internalObjectProto);
42948
43488
  const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
@@ -44663,391 +45203,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
44663
45203
  hooks[i2].flags |= 8;
44664
45204
  }
44665
45205
  }
44666
- const ssrContextKey$2 = Symbol.for("v-scx");
44667
- const useSSRContext = () => {
44668
- {
44669
- const ctx2 = inject(ssrContextKey$2);
44670
- return ctx2;
44671
- }
44672
- };
44673
- function watchEffect(effect2, options) {
44674
- return doWatch(effect2, null, options);
44675
- }
44676
- function watch(source, cb, options) {
44677
- return doWatch(source, cb, options);
44678
- }
44679
- function doWatch(source, cb, options = EMPTY_OBJ) {
44680
- const { immediate, deep, flush, once } = options;
44681
- const baseWatchOptions = extend$2({}, options);
44682
- const runsImmediately = cb && immediate || !cb && flush !== "post";
44683
- let ssrCleanup;
44684
- if (isInSSRComponentSetup) {
44685
- if (flush === "sync") {
44686
- const ctx2 = useSSRContext();
44687
- ssrCleanup = ctx2.__watcherHandles || (ctx2.__watcherHandles = []);
44688
- } else if (!runsImmediately) {
44689
- const watchStopHandle = () => {
44690
- };
44691
- watchStopHandle.stop = NOOP;
44692
- watchStopHandle.resume = NOOP;
44693
- watchStopHandle.pause = NOOP;
44694
- return watchStopHandle;
44695
- }
44696
- }
44697
- const instance = currentInstance;
44698
- baseWatchOptions.call = (fn, type2, args) => callWithAsyncErrorHandling(fn, instance, type2, args);
44699
- let isPre = false;
44700
- if (flush === "post") {
44701
- baseWatchOptions.scheduler = (job) => {
44702
- queuePostRenderEffect(job, instance && instance.suspense);
44703
- };
44704
- } else if (flush !== "sync") {
44705
- isPre = true;
44706
- baseWatchOptions.scheduler = (job, isFirstRun) => {
44707
- if (isFirstRun) {
44708
- job();
44709
- } else {
44710
- queueJob(job);
44711
- }
44712
- };
44713
- }
44714
- baseWatchOptions.augmentJob = (job) => {
44715
- if (cb) {
44716
- job.flags |= 4;
44717
- }
44718
- if (isPre) {
44719
- job.flags |= 2;
44720
- if (instance) {
44721
- job.id = instance.uid;
44722
- job.i = instance;
44723
- }
44724
- }
44725
- };
44726
- const watchHandle = watch$1(source, cb, baseWatchOptions);
44727
- if (isInSSRComponentSetup) {
44728
- if (ssrCleanup) {
44729
- ssrCleanup.push(watchHandle);
44730
- } else if (runsImmediately) {
44731
- watchHandle();
44732
- }
44733
- }
44734
- return watchHandle;
44735
- }
44736
- function instanceWatch(source, value, options) {
44737
- const publicThis = this.proxy;
44738
- const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
44739
- let cb;
44740
- if (isFunction$2(value)) {
44741
- cb = value;
44742
- } else {
44743
- cb = value.handler;
44744
- options = value;
44745
- }
44746
- const reset = setCurrentInstance(this);
44747
- const res = doWatch(getter, cb.bind(publicThis), options);
44748
- reset();
44749
- return res;
44750
- }
44751
- function createPathGetter(ctx2, path2) {
44752
- const segments = path2.split(".");
44753
- return () => {
44754
- let cur = ctx2;
44755
- for (let i2 = 0; i2 < segments.length && cur; i2++) {
44756
- cur = cur[segments[i2]];
44757
- }
44758
- return cur;
44759
- };
44760
- }
44761
- const getModelModifiers = (props, modelName) => {
44762
- return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize(modelName)}Modifiers`] || props[`${hyphenate(modelName)}Modifiers`];
44763
- };
44764
- function emit(instance, event, ...rawArgs) {
44765
- if (instance.isUnmounted) return;
44766
- const props = instance.vnode.props || EMPTY_OBJ;
44767
- let args = rawArgs;
44768
- const isModelListener2 = event.startsWith("update:");
44769
- const modifiers2 = isModelListener2 && getModelModifiers(props, event.slice(7));
44770
- if (modifiers2) {
44771
- if (modifiers2.trim) {
44772
- args = rawArgs.map((a2) => isString(a2) ? a2.trim() : a2);
44773
- }
44774
- if (modifiers2.number) {
44775
- args = rawArgs.map(looseToNumber);
44776
- }
44777
- }
44778
- let handlerName;
44779
- let handler2 = props[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249)
44780
- props[handlerName = toHandlerKey(camelize(event))];
44781
- if (!handler2 && isModelListener2) {
44782
- handler2 = props[handlerName = toHandlerKey(hyphenate(event))];
44783
- }
44784
- if (handler2) {
44785
- callWithAsyncErrorHandling(
44786
- handler2,
44787
- instance,
44788
- 6,
44789
- args
44790
- );
44791
- }
44792
- const onceHandler = props[handlerName + `Once`];
44793
- if (onceHandler) {
44794
- if (!instance.emitted) {
44795
- instance.emitted = {};
44796
- } else if (instance.emitted[handlerName]) {
44797
- return;
44798
- }
44799
- instance.emitted[handlerName] = true;
44800
- callWithAsyncErrorHandling(
44801
- onceHandler,
44802
- instance,
44803
- 6,
44804
- args
44805
- );
44806
- }
44807
- }
44808
- const mixinEmitsCache = /* @__PURE__ */ new WeakMap();
44809
- function normalizeEmitsOptions(comp, appContext, asMixin = false) {
44810
- const cache2 = asMixin ? mixinEmitsCache : appContext.emitsCache;
44811
- const cached = cache2.get(comp);
44812
- if (cached !== void 0) {
44813
- return cached;
44814
- }
44815
- const raw = comp.emits;
44816
- let normalized = {};
44817
- let hasExtends = false;
44818
- if (!isFunction$2(comp)) {
44819
- const extendEmits = (raw2) => {
44820
- const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true);
44821
- if (normalizedFromExtend) {
44822
- hasExtends = true;
44823
- extend$2(normalized, normalizedFromExtend);
44824
- }
44825
- };
44826
- if (!asMixin && appContext.mixins.length) {
44827
- appContext.mixins.forEach(extendEmits);
44828
- }
44829
- if (comp.extends) {
44830
- extendEmits(comp.extends);
44831
- }
44832
- if (comp.mixins) {
44833
- comp.mixins.forEach(extendEmits);
44834
- }
44835
- }
44836
- if (!raw && !hasExtends) {
44837
- if (isObject$3(comp)) {
44838
- cache2.set(comp, null);
44839
- }
44840
- return null;
44841
- }
44842
- if (isArray$3(raw)) {
44843
- raw.forEach((key2) => normalized[key2] = null);
44844
- } else {
44845
- extend$2(normalized, raw);
44846
- }
44847
- if (isObject$3(comp)) {
44848
- cache2.set(comp, normalized);
44849
- }
44850
- return normalized;
44851
- }
44852
- function isEmitListener(options, key2) {
44853
- if (!options || !isOn(key2)) {
44854
- return false;
44855
- }
44856
- key2 = key2.slice(2).replace(/Once$/, "");
44857
- return hasOwn(options, key2[0].toLowerCase() + key2.slice(1)) || hasOwn(options, hyphenate(key2)) || hasOwn(options, key2);
44858
- }
44859
- function markAttrsAccessed() {
44860
- }
44861
- function renderComponentRoot(instance) {
44862
- const {
44863
- type: Component,
44864
- vnode,
44865
- proxy,
44866
- withProxy,
44867
- propsOptions: [propsOptions],
44868
- slots,
44869
- attrs,
44870
- emit: emit2,
44871
- render: render2,
44872
- renderCache,
44873
- props,
44874
- data,
44875
- setupState,
44876
- ctx: ctx2,
44877
- inheritAttrs
44878
- } = instance;
44879
- const prev = setCurrentRenderingInstance(instance);
44880
- let result;
44881
- let fallthroughAttrs;
44882
- try {
44883
- if (vnode.shapeFlag & 4) {
44884
- const proxyToUse = withProxy || proxy;
44885
- const thisProxy = !!(define_process_default$2.env.NODE_ENV !== "production") && setupState.__isScriptSetup ? new Proxy(proxyToUse, {
44886
- get(target, key2, receiver) {
44887
- warn$1$2(
44888
- `Property '${String(
44889
- key2
44890
- )}' was accessed via 'this'. Avoid using 'this' in templates.`
44891
- );
44892
- return Reflect.get(target, key2, receiver);
44893
- }
44894
- }) : proxyToUse;
44895
- result = normalizeVNode(
44896
- render2.call(
44897
- thisProxy,
44898
- proxyToUse,
44899
- renderCache,
44900
- !!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
44901
- setupState,
44902
- data,
44903
- ctx2
44904
- )
44905
- );
44906
- fallthroughAttrs = attrs;
44907
- } else {
44908
- const render22 = Component;
44909
- if (!!(define_process_default$2.env.NODE_ENV !== "production") && attrs === props) ;
44910
- result = normalizeVNode(
44911
- render22.length > 1 ? render22(
44912
- !!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
44913
- !!(define_process_default$2.env.NODE_ENV !== "production") ? {
44914
- get attrs() {
44915
- markAttrsAccessed();
44916
- return shallowReadonly(attrs);
44917
- },
44918
- slots,
44919
- emit: emit2
44920
- } : { attrs, slots, emit: emit2 }
44921
- ) : render22(
44922
- !!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
44923
- null
44924
- )
44925
- );
44926
- fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
44927
- }
44928
- } catch (err) {
44929
- blockStack.length = 0;
44930
- handleError(err, instance, 1);
44931
- result = createVNode(Comment);
44932
- }
44933
- let root2 = result;
44934
- if (fallthroughAttrs && inheritAttrs !== false) {
44935
- const keys2 = Object.keys(fallthroughAttrs);
44936
- const { shapeFlag } = root2;
44937
- if (keys2.length) {
44938
- if (shapeFlag & (1 | 6)) {
44939
- if (propsOptions && keys2.some(isModelListener)) {
44940
- fallthroughAttrs = filterModelListeners(
44941
- fallthroughAttrs,
44942
- propsOptions
44943
- );
44944
- }
44945
- root2 = cloneVNode(root2, fallthroughAttrs, false, true);
44946
- }
44947
- }
44948
- }
44949
- if (vnode.dirs) {
44950
- root2 = cloneVNode(root2, null, false, true);
44951
- root2.dirs = root2.dirs ? root2.dirs.concat(vnode.dirs) : vnode.dirs;
44952
- }
44953
- if (vnode.transition) {
44954
- setTransitionHooks(root2, vnode.transition);
44955
- }
44956
- {
44957
- result = root2;
44958
- }
44959
- setCurrentRenderingInstance(prev);
44960
- return result;
44961
- }
44962
- const getFunctionalFallthrough = (attrs) => {
44963
- let res;
44964
- for (const key2 in attrs) {
44965
- if (key2 === "class" || key2 === "style" || isOn(key2)) {
44966
- (res || (res = {}))[key2] = attrs[key2];
44967
- }
44968
- }
44969
- return res;
44970
- };
44971
- const filterModelListeners = (attrs, props) => {
44972
- const res = {};
44973
- for (const key2 in attrs) {
44974
- if (!isModelListener(key2) || !(key2.slice(9) in props)) {
44975
- res[key2] = attrs[key2];
44976
- }
44977
- }
44978
- return res;
44979
- };
44980
- function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
44981
- const { props: prevProps, children: prevChildren, component } = prevVNode;
44982
- const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
44983
- const emits = component.emitsOptions;
44984
- if (nextVNode.dirs || nextVNode.transition) {
44985
- return true;
44986
- }
44987
- if (optimized && patchFlag >= 0) {
44988
- if (patchFlag & 1024) {
44989
- return true;
44990
- }
44991
- if (patchFlag & 16) {
44992
- if (!prevProps) {
44993
- return !!nextProps;
44994
- }
44995
- return hasPropsChanged(prevProps, nextProps, emits);
44996
- } else if (patchFlag & 8) {
44997
- const dynamicProps = nextVNode.dynamicProps;
44998
- for (let i2 = 0; i2 < dynamicProps.length; i2++) {
44999
- const key2 = dynamicProps[i2];
45000
- if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emits, key2)) {
45001
- return true;
45002
- }
45003
- }
45004
- }
45005
- } else {
45006
- if (prevChildren || nextChildren) {
45007
- if (!nextChildren || !nextChildren.$stable) {
45008
- return true;
45009
- }
45010
- }
45011
- if (prevProps === nextProps) {
45012
- return false;
45013
- }
45014
- if (!prevProps) {
45015
- return !!nextProps;
45016
- }
45017
- if (!nextProps) {
45018
- return true;
45019
- }
45020
- return hasPropsChanged(prevProps, nextProps, emits);
45021
- }
45022
- return false;
45023
- }
45024
- function hasPropsChanged(prevProps, nextProps, emitsOptions) {
45025
- const nextKeys = Object.keys(nextProps);
45026
- if (nextKeys.length !== Object.keys(prevProps).length) {
45027
- return true;
45028
- }
45029
- for (let i2 = 0; i2 < nextKeys.length; i2++) {
45030
- const key2 = nextKeys[i2];
45031
- if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emitsOptions, key2)) {
45032
- return true;
45033
- }
45034
- }
45035
- return false;
45036
- }
45037
- function updateHOCHostEl({ vnode, parent }, el) {
45038
- while (parent) {
45039
- const root2 = parent.subTree;
45040
- if (root2.suspense && root2.suspense.activeBranch === vnode) {
45041
- root2.el = vnode.el;
45042
- }
45043
- if (root2 === vnode) {
45044
- (vnode = parent.vnode).el = el;
45045
- parent = parent.parent;
45046
- } else {
45047
- break;
45048
- }
45049
- }
45050
- }
45051
45206
  const isSuspense = (type2) => type2.__isSuspense;
45052
45207
  function queueEffectWithSuspense(fn, suspense) {
45053
45208
  if (suspense && suspense.pendingBranch) {
@@ -45655,7 +45810,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
45655
45810
  name = match[1];
45656
45811
  }
45657
45812
  }
45658
- if (!name && instance && instance.parent) {
45813
+ if (!name && instance) {
45659
45814
  const inferFromRegistry = (registry) => {
45660
45815
  for (const key2 in registry) {
45661
45816
  if (registry[key2] === Component) {
@@ -45663,8 +45818,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
45663
45818
  }
45664
45819
  }
45665
45820
  };
45666
- name = inferFromRegistry(
45667
- instance.components || instance.parent.type.components
45821
+ name = inferFromRegistry(instance.components) || instance.parent && inferFromRegistry(
45822
+ instance.parent.type.components
45668
45823
  ) || inferFromRegistry(instance.appContext.components);
45669
45824
  }
45670
45825
  return name ? classify(name) : isRoot ? `App` : `Anonymous`;
@@ -45701,7 +45856,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
45701
45856
  setBlockTracking(1);
45702
45857
  }
45703
45858
  }
45704
- const version$1 = "3.5.24";
45859
+ const version$1 = "3.5.25";
45705
45860
  let policy = void 0;
45706
45861
  const tt = typeof window !== "undefined" && window.trustedTypes;
45707
45862
  if (tt) {
@@ -47374,17 +47529,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
47374
47529
  elt = elt.shadowRoot.activeElement;
47375
47530
  return elt;
47376
47531
  }
47377
- function caretFromPoint(doc2, x, y2) {
47532
+ function caretFromPoint(doc2, x2, y2) {
47378
47533
  if (doc2.caretPositionFromPoint) {
47379
47534
  try {
47380
- let pos = doc2.caretPositionFromPoint(x, y2);
47535
+ let pos = doc2.caretPositionFromPoint(x2, y2);
47381
47536
  if (pos)
47382
47537
  return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
47383
47538
  } catch (_2) {
47384
47539
  }
47385
47540
  }
47386
47541
  if (doc2.caretRangeFromPoint) {
47387
- let range2 = doc2.caretRangeFromPoint(x, y2);
47542
+ let range2 = doc2.caretRangeFromPoint(x2, y2);
47388
47543
  if (range2)
47389
47544
  return { node: range2.startContainer, offset: Math.min(nodeSize(range2.startContainer), range2.startOffset) };
47390
47545
  }
@@ -47483,8 +47638,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
47483
47638
  function storeScrollPos(view) {
47484
47639
  let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
47485
47640
  let refDOM, refTop;
47486
- for (let x = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
47487
- let dom = view.root.elementFromPoint(x, y2);
47641
+ for (let x2 = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
47642
+ let dom = view.root.elementFromPoint(x2, y2);
47488
47643
  if (!dom || dom == view.dom || !view.dom.contains(dom))
47489
47644
  continue;
47490
47645
  let localRect = dom.getBoundingClientRect();
@@ -47586,17 +47741,20 @@ Please report this to https://github.com/markedjs/marked.`, e) {
47586
47741
  }
47587
47742
  function findOffsetInText(node2, coords) {
47588
47743
  let len2 = node2.nodeValue.length;
47589
- let range2 = document.createRange();
47744
+ let range2 = document.createRange(), result;
47590
47745
  for (let i2 = 0; i2 < len2; i2++) {
47591
47746
  range2.setEnd(node2, i2 + 1);
47592
47747
  range2.setStart(node2, i2);
47593
47748
  let rect = singleRect(range2, 1);
47594
47749
  if (rect.top == rect.bottom)
47595
47750
  continue;
47596
- if (inRect(coords, rect))
47597
- return { node: node2, offset: i2 + (coords.left >= (rect.left + rect.right) / 2 ? 1 : 0) };
47751
+ if (inRect(coords, rect)) {
47752
+ result = { node: node2, offset: i2 + (coords.left >= (rect.left + rect.right) / 2 ? 1 : 0) };
47753
+ break;
47754
+ }
47598
47755
  }
47599
- return { node: node2, offset: 0 };
47756
+ range2.detach();
47757
+ return result || { node: node2, offset: 0 };
47600
47758
  }
47601
47759
  function inRect(coords, rect) {
47602
47760
  return coords.left >= rect.left - 1 && coords.left <= rect.right + 1 && coords.top >= rect.top - 1 && coords.top <= rect.bottom + 1;
@@ -47780,8 +47938,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
47780
47938
  function flattenV(rect, left2) {
47781
47939
  if (rect.width == 0)
47782
47940
  return rect;
47783
- let x = left2 ? rect.left : rect.right;
47784
- return { top: rect.top, bottom: rect.bottom, left: x, right: x };
47941
+ let x2 = left2 ? rect.left : rect.right;
47942
+ return { top: rect.top, bottom: rect.bottom, left: x2, right: x2 };
47785
47943
  }
47786
47944
  function flattenH(rect, top2) {
47787
47945
  if (rect.height == 0)
@@ -50343,7 +50501,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
50343
50501
  if (!view.composing) {
50344
50502
  view.domObserver.flush();
50345
50503
  let { state: state2 } = view, $pos = state2.selection.$to;
50346
- if (state2.selection instanceof TextSelection$1 && (state2.storedMarks || !$pos.textOffset && $pos.parentOffset && $pos.nodeBefore.marks.some((m2) => m2.type.spec.inclusive === false))) {
50504
+ if (state2.selection instanceof TextSelection$1 && (state2.storedMarks || !$pos.textOffset && $pos.parentOffset && $pos.nodeBefore.marks.some((m2) => m2.type.spec.inclusive === false) || chrome && windows$1 && selectionBeforeUneditable(view))) {
50347
50505
  view.markCursor = view.state.storedMarks || $pos.marks();
50348
50506
  endComposition(view, true);
50349
50507
  view.markCursor = null;
@@ -50371,6 +50529,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
50371
50529
  }
50372
50530
  scheduleComposeEnd(view, timeoutComposition);
50373
50531
  };
50532
+ function selectionBeforeUneditable(view) {
50533
+ let { focusNode, focusOffset } = view.domSelectionRange();
50534
+ if (!focusNode || focusNode.nodeType != 1 || focusOffset >= focusNode.childNodes.length)
50535
+ return false;
50536
+ let next2 = focusNode.childNodes[focusOffset];
50537
+ return next2.nodeType == 1 && next2.contentEditable == "false";
50538
+ }
50374
50539
  editHandlers.compositionend = (view, event) => {
50375
50540
  if (view.composing) {
50376
50541
  view.input.composing = false;
@@ -50574,10 +50739,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
50574
50739
  }, 50);
50575
50740
  };
50576
50741
  editHandlers.dragover = editHandlers.dragenter = (_2, e) => e.preventDefault();
50577
- editHandlers.drop = (view, _event) => {
50578
- let event = _event;
50579
- let dragging = view.dragging;
50580
- view.dragging = null;
50742
+ editHandlers.drop = (view, event) => {
50743
+ try {
50744
+ handleDrop(view, event, view.dragging);
50745
+ } finally {
50746
+ view.dragging = null;
50747
+ }
50748
+ };
50749
+ function handleDrop(view, event, dragging) {
50581
50750
  if (!event.dataTransfer)
50582
50751
  return;
50583
50752
  let eventPos = view.posAtCoords(eventCoords(event));
@@ -50630,7 +50799,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
50630
50799
  }
50631
50800
  view.focus();
50632
50801
  view.dispatch(tr.setMeta("uiEvent", "drop"));
50633
- };
50802
+ }
50634
50803
  handlers$1.focus = (view) => {
50635
50804
  view.input.lastFocus = Date.now();
50636
50805
  if (!view.focused) {
@@ -51480,6 +51649,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
51480
51649
  br2.remove();
51481
51650
  }
51482
51651
  }
51652
+ } else if ((chrome || safari) && added.some((n) => n.nodeName == "BR") && (view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
51653
+ for (let node2 of added)
51654
+ if (node2.nodeName == "BR" && node2.parentNode) {
51655
+ let after = node2.nextSibling;
51656
+ if (after && after.nodeType == 1 && after.contentEditable == "false")
51657
+ node2.parentNode.removeChild(node2);
51658
+ }
51483
51659
  }
51484
51660
  let readSel = null;
51485
51661
  if (from2 < 0 && newSel && view.input.lastFocus > Date.now() - 200 && Math.max(view.input.lastTouch, view.input.lastClick.time) < Date.now() - 300 && selectionCollapsed(sel) && (readSel = selectionFromDOM(view)) && readSel.eq(Selection.near(view.state.doc.resolve(0), 1))) {
@@ -52788,10 +52964,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
52788
52964
  const Timeout = createTimeoutClass(clearTimeout);
52789
52965
  const timeout = (timeout2, callback) => new Timeout(setTimeout(callback, timeout2));
52790
52966
  const rotr = (w2, shift2) => w2 >>> shift2 | w2 << 32 - shift2;
52791
- const sum0to256 = (x) => rotr(x, 2) ^ rotr(x, 13) ^ rotr(x, 22);
52792
- const sum1to256 = (x) => rotr(x, 6) ^ rotr(x, 11) ^ rotr(x, 25);
52793
- const sigma0to256 = (x) => rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3;
52794
- const sigma1to256 = (x) => rotr(x, 17) ^ rotr(x, 19) ^ x >>> 10;
52967
+ const sum0to256 = (x2) => rotr(x2, 2) ^ rotr(x2, 13) ^ rotr(x2, 22);
52968
+ const sum1to256 = (x2) => rotr(x2, 6) ^ rotr(x2, 11) ^ rotr(x2, 25);
52969
+ const sigma0to256 = (x2) => rotr(x2, 7) ^ rotr(x2, 18) ^ x2 >>> 3;
52970
+ const sigma1to256 = (x2) => rotr(x2, 17) ^ rotr(x2, 19) ^ x2 >>> 10;
52795
52971
  const K = new Uint32Array([
52796
52972
  1116352408,
52797
52973
  1899447441,
@@ -61813,7 +61989,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
61813
61989
  { default: remarkStringify2 },
61814
61990
  { default: remarkGfm2 }
61815
61991
  ] = await Promise.all([
61816
- Promise.resolve().then(() => indexDPjn4rpi),
61992
+ Promise.resolve().then(() => index_8cQcYzu),
61817
61993
  Promise.resolve().then(() => indexDRCvimau),
61818
61994
  Promise.resolve().then(() => indexC_x_N6Uh),
61819
61995
  Promise.resolve().then(() => indexD_sWOSiG),
@@ -62031,7 +62207,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
62031
62207
  * @returns {Object | void} Migration results
62032
62208
  */
62033
62209
  processCollaborationMigrations() {
62034
- console.debug("[checkVersionMigrations] Current editor version", "0.34.4");
62210
+ console.debug("[checkVersionMigrations] Current editor version", "0.34.6-RC1");
62035
62211
  if (!this.options.ydoc) return;
62036
62212
  const metaMap = this.options.ydoc.getMap("meta");
62037
62213
  let docVersion = metaMap.get("version");
@@ -63910,16 +64086,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
63910
64086
  const { state: state2, dom } = view;
63911
64087
  const { selection } = state2;
63912
64088
  const containerRect = dom.getBoundingClientRect();
63913
- let x, y2;
64089
+ let x2, y2;
63914
64090
  if (typeof eventLocation.clientX === "number" && typeof eventLocation.clientY === "number") {
63915
- x = eventLocation.clientX - containerRect.left;
64091
+ x2 = eventLocation.clientX - containerRect.left;
63916
64092
  y2 = eventLocation.clientY - containerRect.top;
63917
64093
  } else {
63918
64094
  const cursorCoords = view.coordsAtPos(selection.from);
63919
- x = cursorCoords.left - containerRect.left;
64095
+ x2 = cursorCoords.left - containerRect.left;
63920
64096
  y2 = cursorCoords.top - containerRect.top;
63921
64097
  }
63922
- return { left: x, top: y2 };
64098
+ return { left: x2, top: y2 };
63923
64099
  }
63924
64100
  const SlashMenuPluginKey = new PluginKey("slashMenu");
63925
64101
  const SlashMenu = Extension.create({
@@ -64198,17 +64374,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64198
64374
  if (!this.dom || this.contentDOM?.contains(target) || !dragHandle) {
64199
64375
  return;
64200
64376
  }
64201
- let x = 0;
64377
+ let x2 = 0;
64202
64378
  let y2 = 0;
64203
64379
  if (this.dom !== dragHandle) {
64204
64380
  const domBox = this.dom.getBoundingClientRect();
64205
64381
  const handleBox = dragHandle.getBoundingClientRect();
64206
64382
  const offsetX = event.offsetX ?? event.nativeEvent?.offsetX;
64207
64383
  const offsetY = event.offsetY ?? event.nativeEvent?.offsetY;
64208
- x = handleBox.x - domBox.x + offsetX;
64384
+ x2 = handleBox.x - domBox.x + offsetX;
64209
64385
  y2 = handleBox.y - domBox.y + offsetY;
64210
64386
  }
64211
- event.dataTransfer?.setDragImage(this.dom, x, y2);
64387
+ event.dataTransfer?.setDragImage(this.dom, x2, y2);
64212
64388
  const pos = this.getPos();
64213
64389
  if (typeof pos !== "number") {
64214
64390
  return;
@@ -64668,7 +64844,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64668
64844
  * @param {string} id - Unique identifier of the field
64669
64845
  * @param {StructuredContentUpdate} options
64670
64846
  * @example
64671
- * editor.commands.updateStructuredContentById('123', { text: 'Jane Doe' });
64847
+ * editor.commands.updateStructuredContentById('123', { text: 'Jane Doe', keepTextNodeStyles: true });
64672
64848
  * editor.commands.updateStructuredContentById('123', {
64673
64849
  * json: { type: 'text', text: 'Jane Doe' },
64674
64850
  * });
@@ -64689,7 +64865,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64689
64865
  const posTo = pos + node2.nodeSize;
64690
64866
  let content2 = null;
64691
64867
  if (options.text) {
64692
- content2 = schema.text(options.text);
64868
+ const firstTextNode = options.keepTextNodeStyles === true ? node2.content.content.find((n) => n.type.name === "text") : null;
64869
+ const textMarks = firstTextNode ? firstTextNode.marks : [];
64870
+ content2 = schema.text(options.text, textMarks);
64693
64871
  }
64694
64872
  if (options.html) {
64695
64873
  const html2 = htmlHandler(options.html, editor);
@@ -64703,6 +64881,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64703
64881
  content2 = node2.content;
64704
64882
  }
64705
64883
  const updatedNode = node2.type.create({ ...node2.attrs, ...options.attrs }, content2, node2.marks);
64884
+ try {
64885
+ const nodeForValidation = editor.validateJSON(updatedNode.toJSON());
64886
+ nodeForValidation.check();
64887
+ } catch (error) {
64888
+ console.error("Invalid content.", "Passed value:", content2, "Error:", error);
64889
+ return false;
64890
+ }
64706
64891
  tr.replaceWith(posFrom, posTo, updatedNode);
64707
64892
  }
64708
64893
  return true;
@@ -64787,7 +64972,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64787
64972
  * @param {StructuredContentUpdate} options
64788
64973
  * @example
64789
64974
  * // Update all fields in the customer-info group
64790
- * editor.commands.updateStructuredContentByGroup('customer-info', { text: 'Jane Doe' });
64975
+ * editor.commands.updateStructuredContentByGroup('customer-info', { text: 'Jane Doe', keepTextNodeStyles: true });
64791
64976
  *
64792
64977
  * // Update block content in a group
64793
64978
  * editor.commands.updateStructuredContentByGroup('terms-section', {
@@ -64801,13 +64986,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64801
64986
  }
64802
64987
  const { schema } = editor;
64803
64988
  if (dispatch) {
64804
- structuredContentTags.forEach((structuredContent) => {
64989
+ const updates = [];
64990
+ for (const structuredContent of structuredContentTags) {
64805
64991
  const { pos, node: node2 } = structuredContent;
64806
- const posFrom = tr.mapping.map(pos);
64807
- const posTo = tr.mapping.map(pos + node2.nodeSize);
64808
64992
  let content2 = null;
64809
64993
  if (options.text) {
64810
- content2 = schema.text(options.text);
64994
+ const firstTextNode = options.keepTextNodeStyles === true ? node2.content.content.find((n) => n.type.name === "text") : null;
64995
+ const textMarks = firstTextNode ? firstTextNode.marks : [];
64996
+ content2 = schema.text(options.text, textMarks);
64811
64997
  }
64812
64998
  if (options.html) {
64813
64999
  const html2 = htmlHandler(options.html, editor);
@@ -64821,11 +65007,23 @@ Please report this to https://github.com/markedjs/marked.`, e) {
64821
65007
  content2 = node2.content;
64822
65008
  }
64823
65009
  const updatedNode = node2.type.create({ ...node2.attrs, ...options.attrs }, content2, node2.marks);
65010
+ try {
65011
+ const nodeForValidation = editor.validateJSON(updatedNode.toJSON());
65012
+ nodeForValidation.check();
65013
+ } catch (error) {
65014
+ console.error("Invalid content.", "Passed value:", content2, "Error:", error);
65015
+ return false;
65016
+ }
65017
+ updates.push({ pos, node: node2, updatedNode });
65018
+ }
65019
+ for (const { pos, node: node2, updatedNode } of updates) {
65020
+ const posFrom = tr.mapping.map(pos);
65021
+ const posTo = tr.mapping.map(pos + node2.nodeSize);
64824
65022
  const currentNode = tr.doc.nodeAt(posFrom);
64825
65023
  if (currentNode && node2.eq(currentNode)) {
64826
65024
  tr.replaceWith(posFrom, posTo, updatedNode);
64827
65025
  }
64828
- });
65026
+ }
64829
65027
  }
64830
65028
  return true;
64831
65029
  },
@@ -72444,17 +72642,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
72444
72642
  const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
72445
72643
  if (reducedHexMatch) {
72446
72644
  const arr = Array.from(reducedHexMatch).slice(1);
72447
- return [...arr.slice(0, 3).map((x) => parseInt(r$1(x, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
72645
+ return [...arr.slice(0, 3).map((x2) => parseInt(r$1(x2, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
72448
72646
  }
72449
72647
  const hexMatch = hexRegex$2.exec(normalizedColor);
72450
72648
  if (hexMatch) {
72451
72649
  const arr = Array.from(hexMatch).slice(1);
72452
- return [...arr.slice(0, 3).map((x) => parseInt(x, 16)), parseInt(arr[3] || "ff", 16) / 255];
72650
+ return [...arr.slice(0, 3).map((x2) => parseInt(x2, 16)), parseInt(arr[3] || "ff", 16) / 255];
72453
72651
  }
72454
72652
  const rgbaMatch = rgbaRegex$2.exec(normalizedColor);
72455
72653
  if (rgbaMatch) {
72456
72654
  const arr = Array.from(rgbaMatch).slice(1);
72457
- return [...arr.slice(0, 3).map((x) => parseInt(x, 10)), parseFloat(arr[3] || "1")];
72655
+ return [...arr.slice(0, 3).map((x2) => parseInt(x2, 10)), parseFloat(arr[3] || "1")];
72458
72656
  }
72459
72657
  const hslaMatch = hslaRegex$2.exec(normalizedColor);
72460
72658
  if (hslaMatch) {
@@ -72473,7 +72671,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
72473
72671
  }
72474
72672
  return (hash2 >>> 0) % 2341;
72475
72673
  }
72476
- const colorToInt = (x) => parseInt(x.replace(/_/g, ""), 36);
72674
+ const colorToInt = (x2) => parseInt(x2.replace(/_/g, ""), 36);
72477
72675
  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, next2) => {
72478
72676
  const key2 = colorToInt(next2.substring(0, 3));
72479
72677
  const hex2 = colorToInt(next2.substring(3)).toString(16);
@@ -72537,8 +72735,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
72537
72735
  };
72538
72736
  function toHex(color2) {
72539
72737
  const [r2, g, b2, a2] = parseToRgba(color2);
72540
- let hex2 = (x) => {
72541
- const h2 = guard(0, 255, x).toString(16);
72738
+ let hex2 = (x2) => {
72739
+ const h2 = guard(0, 255, x2).toString(16);
72542
72740
  return h2.length === 1 ? `0${h2}` : h2;
72543
72741
  };
72544
72742
  return `#${hex2(r2)}${hex2(g)}${hex2(b2)}${a2 < 1 ? hex2(Math.round(a2 * 255)) : ""}`;
@@ -74642,10 +74840,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
74642
74840
  let minX = 0;
74643
74841
  let minY = 0;
74644
74842
  let maxY = 0;
74645
- attrs.polygon.forEach(([x, y2]) => {
74646
- if (floatRight && x < horizontalOffset) horizontalOffset = x;
74647
- if (x > maxX) maxX = x;
74648
- if (x < minX) minX = x;
74843
+ attrs.polygon.forEach(([x2, y2]) => {
74844
+ if (floatRight && x2 < horizontalOffset) horizontalOffset = x2;
74845
+ if (x2 > maxX) maxX = x2;
74846
+ if (x2 < minX) minX = x2;
74649
74847
  if (y2 > maxY) maxY = y2;
74650
74848
  if (y2 < minY) minY = y2;
74651
74849
  });
@@ -74654,7 +74852,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
74654
74852
  const scaleWidth = Math.min(1, size2.width / originalWidth);
74655
74853
  const scaleHeight = Math.min(1, size2.height / originalHeight);
74656
74854
  const verticalOffset = Math.max(0, marginOffset.top);
74657
- const points = attrs.polygon.map(([x, y2]) => `${horizontalOffset + x * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
74855
+ const points = attrs.polygon.map(([x2, y2]) => `${horizontalOffset + x2 * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
74658
74856
  style2 += `shape-outside: polygon(${points});`;
74659
74857
  }
74660
74858
  break;
@@ -78308,13 +78506,13 @@ ${l}
78308
78506
  createShapeElement(shape) {
78309
78507
  const attrs = shape.attrs;
78310
78508
  if (!attrs) return null;
78311
- const x = attrs.x || 0;
78509
+ const x2 = attrs.x || 0;
78312
78510
  const y2 = attrs.y || 0;
78313
78511
  const width = attrs.width || 100;
78314
78512
  const height = attrs.height || 100;
78315
78513
  const g = document.createElementNS("http://www.w3.org/2000/svg", "g");
78316
78514
  const transforms = [];
78317
- transforms.push(`translate(${x}, ${y2})`);
78515
+ transforms.push(`translate(${x2}, ${y2})`);
78318
78516
  if (attrs.rotation !== 0) {
78319
78517
  transforms.push(`rotate(${attrs.rotation} ${width / 2} ${height / 2})`);
78320
78518
  }
@@ -80041,7 +80239,7 @@ ${l}
80041
80239
  }
80042
80240
  var _ref = isElement$2$1(element2) ? getWindow$1(element2) : window, visualViewport = _ref.visualViewport;
80043
80241
  var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
80044
- var x = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
80242
+ var x2 = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
80045
80243
  var y2 = (clientRect2.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
80046
80244
  var width = clientRect2.width / scaleX;
80047
80245
  var height = clientRect2.height / scaleY;
@@ -80049,10 +80247,10 @@ ${l}
80049
80247
  width,
80050
80248
  height,
80051
80249
  top: y2,
80052
- right: x + width,
80250
+ right: x2 + width,
80053
80251
  bottom: y2 + height,
80054
- left: x,
80055
- x,
80252
+ left: x2,
80253
+ x: x2,
80056
80254
  y: y2
80057
80255
  };
80058
80256
  }
@@ -80253,25 +80451,25 @@ ${l}
80253
80451
  left: "auto"
80254
80452
  };
80255
80453
  function roundOffsetsByDPR(_ref, win) {
80256
- var x = _ref.x, y2 = _ref.y;
80454
+ var x2 = _ref.x, y2 = _ref.y;
80257
80455
  var dpr = win.devicePixelRatio || 1;
80258
80456
  return {
80259
- x: round$1(x * dpr) / dpr || 0,
80457
+ x: round$1(x2 * dpr) / dpr || 0,
80260
80458
  y: round$1(y2 * dpr) / dpr || 0
80261
80459
  };
80262
80460
  }
80263
80461
  function mapToStyles(_ref2) {
80264
80462
  var _Object$assign2;
80265
80463
  var popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position2 = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
80266
- 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;
80464
+ 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;
80267
80465
  var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
80268
- x,
80466
+ x: x2,
80269
80467
  y: y2
80270
80468
  }) : {
80271
- x,
80469
+ x: x2,
80272
80470
  y: y2
80273
80471
  };
80274
- x = _ref3.x;
80472
+ x2 = _ref3.x;
80275
80473
  y2 = _ref3.y;
80276
80474
  var hasX = offsets.hasOwnProperty("x");
80277
80475
  var hasY = offsets.hasOwnProperty("y");
@@ -80305,27 +80503,27 @@ ${l}
80305
80503
  // $FlowFixMe[prop-missing]
80306
80504
  offsetParent[widthProp]
80307
80505
  );
80308
- x -= offsetX - popperRect.width;
80309
- x *= gpuAcceleration ? 1 : -1;
80506
+ x2 -= offsetX - popperRect.width;
80507
+ x2 *= gpuAcceleration ? 1 : -1;
80310
80508
  }
80311
80509
  }
80312
80510
  var commonStyles = Object.assign({
80313
80511
  position: position2
80314
80512
  }, adaptive && unsetSides);
80315
80513
  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
80316
- x,
80514
+ x: x2,
80317
80515
  y: y2
80318
80516
  }, getWindow$1(popper2)) : {
80319
- x,
80517
+ x: x2,
80320
80518
  y: y2
80321
80519
  };
80322
- x = _ref4.x;
80520
+ x2 = _ref4.x;
80323
80521
  y2 = _ref4.y;
80324
80522
  if (gpuAcceleration) {
80325
80523
  var _Object$assign;
80326
- 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));
80524
+ 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));
80327
80525
  }
80328
- return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
80526
+ return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x2 + "px" : "", _Object$assign2.transform = "", _Object$assign2));
80329
80527
  }
80330
80528
  function computeStyles(_ref5) {
80331
80529
  var state2 = _ref5.state, options = _ref5.options;
@@ -80439,21 +80637,21 @@ ${l}
80439
80637
  var visualViewport = win.visualViewport;
80440
80638
  var width = html2.clientWidth;
80441
80639
  var height = html2.clientHeight;
80442
- var x = 0;
80640
+ var x2 = 0;
80443
80641
  var y2 = 0;
80444
80642
  if (visualViewport) {
80445
80643
  width = visualViewport.width;
80446
80644
  height = visualViewport.height;
80447
80645
  var layoutViewport = isLayoutViewport();
80448
80646
  if (layoutViewport || !layoutViewport && strategy === "fixed") {
80449
- x = visualViewport.offsetLeft;
80647
+ x2 = visualViewport.offsetLeft;
80450
80648
  y2 = visualViewport.offsetTop;
80451
80649
  }
80452
80650
  }
80453
80651
  return {
80454
80652
  width,
80455
80653
  height,
80456
- x: x + getWindowScrollBarX$1(element2),
80654
+ x: x2 + getWindowScrollBarX$1(element2),
80457
80655
  y: y2
80458
80656
  };
80459
80657
  }
@@ -80464,15 +80662,15 @@ ${l}
80464
80662
  var body = (_element$ownerDocumen = element2.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
80465
80663
  var width = max$1(html2.scrollWidth, html2.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
80466
80664
  var height = max$1(html2.scrollHeight, html2.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
80467
- var x = -winScroll.scrollLeft + getWindowScrollBarX$1(element2);
80665
+ var x2 = -winScroll.scrollLeft + getWindowScrollBarX$1(element2);
80468
80666
  var y2 = -winScroll.scrollTop;
80469
80667
  if (getComputedStyle$2(body || html2).direction === "rtl") {
80470
- x += max$1(html2.clientWidth, body ? body.clientWidth : 0) - width;
80668
+ x2 += max$1(html2.clientWidth, body ? body.clientWidth : 0) - width;
80471
80669
  }
80472
80670
  return {
80473
80671
  width,
80474
80672
  height,
80475
- x,
80673
+ x: x2,
80476
80674
  y: y2
80477
80675
  };
80478
80676
  }
@@ -80849,9 +81047,9 @@ ${l}
80849
81047
  acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
80850
81048
  return acc;
80851
81049
  }, {});
80852
- var _data$state$placement = data[state2.placement], x = _data$state$placement.x, y2 = _data$state$placement.y;
81050
+ var _data$state$placement = data[state2.placement], x2 = _data$state$placement.x, y2 = _data$state$placement.y;
80853
81051
  if (state2.modifiersData.popperOffsets != null) {
80854
- state2.modifiersData.popperOffsets.x += x;
81052
+ state2.modifiersData.popperOffsets.x += x2;
80855
81053
  state2.modifiersData.popperOffsets.y += y2;
80856
81054
  }
80857
81055
  state2.modifiersData[name] = data;
@@ -82802,7 +83000,7 @@ ${l}
82802
83000
  }
82803
83001
  function rectToClientRect(rect) {
82804
83002
  const {
82805
- x,
83003
+ x: x2,
82806
83004
  y: y2,
82807
83005
  width,
82808
83006
  height
@@ -82811,10 +83009,10 @@ ${l}
82811
83009
  width,
82812
83010
  height,
82813
83011
  top: y2,
82814
- left: x,
82815
- right: x + width,
83012
+ left: x2,
83013
+ right: x2 + width,
82816
83014
  bottom: y2 + height,
82817
- x,
83015
+ x: x2,
82818
83016
  y: y2
82819
83017
  };
82820
83018
  }
@@ -82888,7 +83086,7 @@ ${l}
82888
83086
  strategy
82889
83087
  });
82890
83088
  let {
82891
- x,
83089
+ x: x2,
82892
83090
  y: y2
82893
83091
  } = computeCoordsFromPlacement(rects, placement, rtl);
82894
83092
  let statefulPlacement = placement;
@@ -82905,7 +83103,7 @@ ${l}
82905
83103
  data,
82906
83104
  reset
82907
83105
  } = await fn2({
82908
- x,
83106
+ x: x2,
82909
83107
  y: y2,
82910
83108
  initialPlacement: placement,
82911
83109
  placement: statefulPlacement,
@@ -82918,7 +83116,7 @@ ${l}
82918
83116
  floating
82919
83117
  }
82920
83118
  });
82921
- x = nextX != null ? nextX : x;
83119
+ x2 = nextX != null ? nextX : x2;
82922
83120
  y2 = nextY != null ? nextY : y2;
82923
83121
  middlewareData = {
82924
83122
  ...middlewareData,
@@ -82941,7 +83139,7 @@ ${l}
82941
83139
  }) : reset.rects;
82942
83140
  }
82943
83141
  ({
82944
- x,
83142
+ x: x2,
82945
83143
  y: y2
82946
83144
  } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
82947
83145
  }
@@ -82949,7 +83147,7 @@ ${l}
82949
83147
  }
82950
83148
  }
82951
83149
  return {
82952
- x,
83150
+ x: x2,
82953
83151
  y: y2,
82954
83152
  placement: statefulPlacement,
82955
83153
  strategy,
@@ -82962,7 +83160,7 @@ ${l}
82962
83160
  options = {};
82963
83161
  }
82964
83162
  const {
82965
- x,
83163
+ x: x2,
82966
83164
  y: y2,
82967
83165
  platform: platform2,
82968
83166
  rects,
@@ -82986,7 +83184,7 @@ ${l}
82986
83184
  strategy
82987
83185
  }));
82988
83186
  const rect = elementContext === "floating" ? {
82989
- x,
83187
+ x: x2,
82990
83188
  y: y2,
82991
83189
  width: rects.floating.width,
82992
83190
  height: rects.floating.height
@@ -83255,16 +83453,16 @@ ${l}
83255
83453
  height,
83256
83454
  $: $2
83257
83455
  } = getCssDimensions(domElement);
83258
- let x = ($2 ? round(rect.width) : rect.width) / width;
83456
+ let x2 = ($2 ? round(rect.width) : rect.width) / width;
83259
83457
  let y2 = ($2 ? round(rect.height) : rect.height) / height;
83260
- if (!x || !Number.isFinite(x)) {
83261
- x = 1;
83458
+ if (!x2 || !Number.isFinite(x2)) {
83459
+ x2 = 1;
83262
83460
  }
83263
83461
  if (!y2 || !Number.isFinite(y2)) {
83264
83462
  y2 = 1;
83265
83463
  }
83266
83464
  return {
83267
- x,
83465
+ x: x2,
83268
83466
  y: y2
83269
83467
  };
83270
83468
  }
@@ -83308,7 +83506,7 @@ ${l}
83308
83506
  }
83309
83507
  }
83310
83508
  const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
83311
- let x = (clientRect2.left + visualOffsets.x) / scale.x;
83509
+ let x2 = (clientRect2.left + visualOffsets.x) / scale.x;
83312
83510
  let y2 = (clientRect2.top + visualOffsets.y) / scale.y;
83313
83511
  let width = clientRect2.width / scale.x;
83314
83512
  let height = clientRect2.height / scale.y;
@@ -83323,11 +83521,11 @@ ${l}
83323
83521
  const css = getComputedStyle$1(currentIFrame);
83324
83522
  const left2 = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
83325
83523
  const top2 = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
83326
- x *= iframeScale.x;
83524
+ x2 *= iframeScale.x;
83327
83525
  y2 *= iframeScale.y;
83328
83526
  width *= iframeScale.x;
83329
83527
  height *= iframeScale.y;
83330
- x += left2;
83528
+ x2 += left2;
83331
83529
  y2 += top2;
83332
83530
  currentWin = getWindow(currentIFrame);
83333
83531
  currentIFrame = getFrameElement(currentWin);
@@ -83336,7 +83534,7 @@ ${l}
83336
83534
  return rectToClientRect({
83337
83535
  width,
83338
83536
  height,
83339
- x,
83537
+ x: x2,
83340
83538
  y: y2
83341
83539
  });
83342
83540
  }
@@ -83349,10 +83547,10 @@ ${l}
83349
83547
  }
83350
83548
  function getHTMLOffset(documentElement, scroll) {
83351
83549
  const htmlRect = documentElement.getBoundingClientRect();
83352
- const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
83550
+ const x2 = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
83353
83551
  const y2 = htmlRect.top + scroll.scrollTop;
83354
83552
  return {
83355
- x,
83553
+ x: x2,
83356
83554
  y: y2
83357
83555
  };
83358
83556
  }
@@ -83404,15 +83602,15 @@ ${l}
83404
83602
  const body = element2.ownerDocument.body;
83405
83603
  const width = max$3(html2.scrollWidth, html2.clientWidth, body.scrollWidth, body.clientWidth);
83406
83604
  const height = max$3(html2.scrollHeight, html2.clientHeight, body.scrollHeight, body.clientHeight);
83407
- let x = -scroll.scrollLeft + getWindowScrollBarX(element2);
83605
+ let x2 = -scroll.scrollLeft + getWindowScrollBarX(element2);
83408
83606
  const y2 = -scroll.scrollTop;
83409
83607
  if (getComputedStyle$1(body).direction === "rtl") {
83410
- x += max$3(html2.clientWidth, body.clientWidth) - width;
83608
+ x2 += max$3(html2.clientWidth, body.clientWidth) - width;
83411
83609
  }
83412
83610
  return {
83413
83611
  width,
83414
83612
  height,
83415
- x,
83613
+ x: x2,
83416
83614
  y: y2
83417
83615
  };
83418
83616
  }
@@ -83423,14 +83621,14 @@ ${l}
83423
83621
  const visualViewport = win.visualViewport;
83424
83622
  let width = html2.clientWidth;
83425
83623
  let height = html2.clientHeight;
83426
- let x = 0;
83624
+ let x2 = 0;
83427
83625
  let y2 = 0;
83428
83626
  if (visualViewport) {
83429
83627
  width = visualViewport.width;
83430
83628
  height = visualViewport.height;
83431
83629
  const visualViewportBased = isWebKit();
83432
83630
  if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
83433
- x = visualViewport.offsetLeft;
83631
+ x2 = visualViewport.offsetLeft;
83434
83632
  y2 = visualViewport.offsetTop;
83435
83633
  }
83436
83634
  }
@@ -83450,7 +83648,7 @@ ${l}
83450
83648
  return {
83451
83649
  width,
83452
83650
  height,
83453
- x,
83651
+ x: x2,
83454
83652
  y: y2
83455
83653
  };
83456
83654
  }
@@ -83462,12 +83660,12 @@ ${l}
83462
83660
  const scale = isHTMLElement$2(element2) ? getScale(element2) : createCoords(1);
83463
83661
  const width = element2.clientWidth * scale.x;
83464
83662
  const height = element2.clientHeight * scale.y;
83465
- const x = left2 * scale.x;
83663
+ const x2 = left2 * scale.x;
83466
83664
  const y2 = top2 * scale.y;
83467
83665
  return {
83468
83666
  width,
83469
83667
  height,
83470
- x,
83668
+ x: x2,
83471
83669
  y: y2
83472
83670
  };
83473
83671
  }
@@ -83587,10 +83785,10 @@ ${l}
83587
83785
  setLeftRTLScrollbarOffset();
83588
83786
  }
83589
83787
  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
83590
- const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
83788
+ const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
83591
83789
  const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
83592
83790
  return {
83593
- x,
83791
+ x: x2,
83594
83792
  y: y2,
83595
83793
  width: rect.width,
83596
83794
  height: rect.height
@@ -84469,22 +84667,22 @@ ${l}
84469
84667
  const rect = elements.reference.getBoundingClientRect();
84470
84668
  const containerRect = editorElement.getBoundingClientRect();
84471
84669
  const scaleFactor = getScaleFactor(editorElement);
84472
- const x = Math.round((rect.left - containerRect.left) / scaleFactor);
84670
+ const x2 = Math.round((rect.left - containerRect.left) / scaleFactor);
84473
84671
  const y2 = Math.round((rect.top - containerRect.top) / scaleFactor);
84474
84672
  const width = Math.round(rect.width / scaleFactor);
84475
84673
  const height = Math.round(rect.height / scaleFactor);
84476
84674
  return {
84477
- x,
84675
+ x: x2,
84478
84676
  y: y2,
84479
84677
  data: { width, height }
84480
84678
  };
84481
84679
  }
84482
84680
  }
84483
84681
  ]
84484
- }).then(({ x, y: y2, middlewareData }) => {
84682
+ }).then(({ x: x2, y: y2, middlewareData }) => {
84485
84683
  Object.assign(floatingSeparator.style, {
84486
84684
  top: `${y2}px`,
84487
- left: `${x}px`,
84685
+ left: `${x2}px`,
84488
84686
  width: `${middlewareData.copy.width}px`,
84489
84687
  height: `${middlewareData.copy.height}px`,
84490
84688
  visibility: middlewareData.hide?.referenceHidden ? "hidden" : "visible"
@@ -87543,14 +87741,14 @@ ${unwrappedProps}
87543
87741
  }
87544
87742
  return viewMeasurer$1.getBoundingClientRect();
87545
87743
  }
87546
- function getPointRect$1(x, y2) {
87744
+ function getPointRect$1(x2, y2) {
87547
87745
  const viewRect = ensureViewBoundingRect$1();
87548
87746
  return {
87549
87747
  top: y2,
87550
- left: x,
87748
+ left: x2,
87551
87749
  height: 0,
87552
87750
  width: 0,
87553
- right: viewRect.width - x,
87751
+ right: viewRect.width - x2,
87554
87752
  bottom: viewRect.height - y2
87555
87753
  };
87556
87754
  }
@@ -88388,8 +88586,8 @@ ${style2}
88388
88586
  if (follower === null)
88389
88587
  return;
88390
88588
  const target = VBinder.targetRef;
88391
- const { x, y: y2, overlap } = props;
88392
- const targetRect = x !== void 0 && y2 !== void 0 ? getPointRect$1(x, y2) : getRect$1(target);
88589
+ const { x: x2, y: y2, overlap } = props;
88590
+ const targetRect = x2 !== void 0 && y2 !== void 0 ? getPointRect$1(x2, y2) : getRect$1(target);
88393
88591
  follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
88394
88592
  follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
88395
88593
  const { width, minWidth, placement, internalShift, flip: flip2 } = props;
@@ -88559,8 +88757,8 @@ ${style2}
88559
88757
  return ResizeObserverSize2;
88560
88758
  })();
88561
88759
  var DOMRectReadOnly$1 = (function() {
88562
- function DOMRectReadOnly2(x, y2, width, height) {
88563
- this.x = x;
88760
+ function DOMRectReadOnly2(x2, y2, width, height) {
88761
+ this.x = x2;
88564
88762
  this.y = y2;
88565
88763
  this.width = width;
88566
88764
  this.height = height;
@@ -88571,8 +88769,8 @@ ${style2}
88571
88769
  return freeze$1(this);
88572
88770
  }
88573
88771
  DOMRectReadOnly2.prototype.toJSON = function() {
88574
- 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;
88575
- return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
88772
+ 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;
88773
+ return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
88576
88774
  };
88577
88775
  DOMRectReadOnly2.fromRect = function(rectangle) {
88578
88776
  return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
@@ -101666,8 +101864,8 @@ ${style2}
101666
101864
  return array;
101667
101865
  };
101668
101866
  const BlankDOCX = "data:application/octet-stream;base64,UEsDBBQAAAAIAAAAIQAykW9XXgEAAKUFAAATABwAW0NvbnRlbnRfVHlwZXNdLnhtbFVUC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OEnV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAAAIQDbhWzDfQQAAJcdAAASABgAAAAAAAEAAACkge0QAAB3b3JkL251bWJlcmluZy54bWxVVAUAAzDQzhJ1eAsAAQT1AQAABBQAAABQSwECHgMUAAAACAAAACEAvn52YlYBAADQAwAAFAAYAAAAAAABAAAApIG2FQAAd29yZC93ZWJTZXR0aW5ncy54bWxVVAUAAzDQzhJ1eAsAAQT1AQAABBQAAABQSwECHgMUAAAACAAAACEAP6/hZl8PAAANpgAADwAYAAAAAAABAAAApIFaFwAAd29yZC9zdHlsZXMueG1sVVQFAAMw0M4SdXgLAAEE9QEAAAQUAAAAUEsBAh4DCgAAAAAAk2RNWwAAAAAAAAAAAAAAAAsAGAAAAAAAAAAQAO1BAicAAHdvcmQvdGhlbWUvVVQFAAOGHO1odXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAAAAhAGeA/LSbBgAAzSAAABUAGAAAAAAAAQAAAKSBRycAAHdvcmQvdGhlbWUvdGhlbWUxLnhtbFVUBQADMNDOEnV4CwABBPUBAAAEFAAAAFBLAQIeAwoAAAAAAJNkTVsAAAAAAAAAAAAAAAALABgAAAAAAAAAEADtQTEuAAB3b3JkL19yZWxzL1VUBQADhhztaHV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAAAIQCzvosd/gAAALYDAAAcABgAAAAAAAEAAACkgXYuAAB3b3JkL19yZWxzL2RvY3VtZW50LnhtbC5yZWxzVVQFAAMw0M4SdXgLAAEE9QEAAAQUAAAAUEsFBgAAAAARABEAqQUAAMovAAAAAA==";
101669
- function getDefaultExportFromCjs(x) {
101670
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
101867
+ function getDefaultExportFromCjs(x2) {
101868
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
101671
101869
  }
101672
101870
  var eventemitter3 = { exports: {} };
101673
101871
  var hasRequiredEventemitter3;
@@ -103806,6 +104004,7 @@ ${reason}`);
103806
104004
  const creatorImage = params2.creatorImage;
103807
104005
  const createdTime = params2.createdTime || Date.now();
103808
104006
  const importedAuthor = ref(params2.importedAuthor || null);
104007
+ const docxCommentJSON = params2.docxCommentJSON || null;
103809
104008
  const commentText = ref(params2.commentText || "");
103810
104009
  const selection = params2.selection ? useSelection(params2.selection) : useSelection({
103811
104010
  documentId: fileId,
@@ -103920,6 +104119,7 @@ ${reason}`);
103920
104119
  creatorImage,
103921
104120
  createdTime,
103922
104121
  importedAuthor: importedAuthor.value,
104122
+ docxCommentJSON,
103923
104123
  isInternal: isInternal.value,
103924
104124
  commentText: commentText.value,
103925
104125
  selection: selection ? selection.getValues() : null,
@@ -103958,6 +104158,7 @@ ${reason}`);
103958
104158
  resolvedByEmail,
103959
104159
  resolvedByName,
103960
104160
  importedAuthor,
104161
+ docxCommentJSON,
103961
104162
  // Actions
103962
104163
  setText,
103963
104164
  getValues,
@@ -104534,6 +104735,8 @@ ${reason}`);
104534
104735
  const newComment = useComment({
104535
104736
  fileId: documentId,
104536
104737
  fileType: document2.type,
104738
+ // Preserve original DOCX-schema comment JSON so exporter can reuse it
104739
+ docxCommentJSON: comment2.textJson,
104537
104740
  commentId: comment2.commentId,
104538
104741
  isInternal: false,
104539
104742
  parentCommentId: comment2.parentCommentId,
@@ -104594,7 +104797,7 @@ ${reason}`);
104594
104797
  commentsList.value.forEach((comment2) => {
104595
104798
  const values = comment2.getValues();
104596
104799
  const richText = values.commentText;
104597
- const schema = convertHtmlToSchema(richText);
104800
+ const schema = values.docxCommentJSON || convertHtmlToSchema(richText);
104598
104801
  processedComments.push({
104599
104802
  ...values,
104600
104803
  commentJSON: schema
@@ -106340,14 +106543,14 @@ ${unwrappedProps}
106340
106543
  }
106341
106544
  return viewMeasurer.getBoundingClientRect();
106342
106545
  }
106343
- function getPointRect(x, y2) {
106546
+ function getPointRect(x2, y2) {
106344
106547
  const viewRect = ensureViewBoundingRect();
106345
106548
  return {
106346
106549
  top: y2,
106347
- left: x,
106550
+ left: x2,
106348
106551
  height: 0,
106349
106552
  width: 0,
106350
- right: viewRect.width - x,
106553
+ right: viewRect.width - x2,
106351
106554
  bottom: viewRect.height - y2
106352
106555
  };
106353
106556
  }
@@ -107185,8 +107388,8 @@ ${style2}
107185
107388
  if (follower === null)
107186
107389
  return;
107187
107390
  const target = VBinder.targetRef;
107188
- const { x, y: y2, overlap } = props;
107189
- const targetRect = x !== void 0 && y2 !== void 0 ? getPointRect(x, y2) : getRect(target);
107391
+ const { x: x2, y: y2, overlap } = props;
107392
+ const targetRect = x2 !== void 0 && y2 !== void 0 ? getPointRect(x2, y2) : getRect(target);
107190
107393
  follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
107191
107394
  follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
107192
107395
  const { width, minWidth, placement, internalShift, flip: flip2 } = props;
@@ -107356,8 +107559,8 @@ ${style2}
107356
107559
  return ResizeObserverSize2;
107357
107560
  })();
107358
107561
  var DOMRectReadOnly = (function() {
107359
- function DOMRectReadOnly2(x, y2, width, height) {
107360
- this.x = x;
107562
+ function DOMRectReadOnly2(x2, y2, width, height) {
107563
+ this.x = x2;
107361
107564
  this.y = y2;
107362
107565
  this.width = width;
107363
107566
  this.height = height;
@@ -107368,8 +107571,8 @@ ${style2}
107368
107571
  return freeze(this);
107369
107572
  }
107370
107573
  DOMRectReadOnly2.prototype.toJSON = function() {
107371
- 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;
107372
- return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
107574
+ 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;
107575
+ return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
107373
107576
  };
107374
107577
  DOMRectReadOnly2.fromRect = function(rectangle) {
107375
107578
  return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
@@ -118073,9 +118276,9 @@ ${style2}
118073
118276
  const resetSelection = () => {
118074
118277
  selectionPosition.value = null;
118075
118278
  };
118076
- const updateSelection2 = ({ startX, startY, x, y: y2, source }) => {
118279
+ const updateSelection2 = ({ startX, startY, x: x2, y: y2, source }) => {
118077
118280
  const hasStartCoords = startX || startY;
118078
- const hasEndCoords = x || y2;
118281
+ const hasEndCoords = x2 || y2;
118079
118282
  if (!hasStartCoords && !hasEndCoords) {
118080
118283
  return selectionPosition.value = null;
118081
118284
  }
@@ -118100,10 +118303,10 @@ ${style2}
118100
118303
  selectionPosition.value.bottom = y2;
118101
118304
  }
118102
118305
  const selectionLeft = selectionPosition.value.startX;
118103
- if (x < selectionLeft) {
118104
- selectionPosition.value.left = x;
118306
+ if (x2 < selectionLeft) {
118307
+ selectionPosition.value.left = x2;
118105
118308
  } else {
118106
- selectionPosition.value.right = x;
118309
+ selectionPosition.value.right = x2;
118107
118310
  }
118108
118311
  };
118109
118312
  const handleSelectionStart = (e) => {
@@ -118112,16 +118315,16 @@ ${style2}
118112
118315
  nextTick(() => {
118113
118316
  isDragging.value = true;
118114
118317
  const y2 = e.offsetY / (activeZoom.value / 100);
118115
- const x = e.offsetX / (activeZoom.value / 100);
118116
- updateSelection2({ startX: x, startY: y2 });
118318
+ const x2 = e.offsetX / (activeZoom.value / 100);
118319
+ updateSelection2({ startX: x2, startY: y2 });
118117
118320
  selectionLayer.value.addEventListener("mousemove", handleDragMove);
118118
118321
  });
118119
118322
  };
118120
118323
  const handleDragMove = (e) => {
118121
118324
  if (!isDragging.value) return;
118122
118325
  const y2 = e.offsetY / (activeZoom.value / 100);
118123
- const x = e.offsetX / (activeZoom.value / 100);
118124
- updateSelection2({ x, y: y2 });
118326
+ const x2 = e.offsetX / (activeZoom.value / 100);
118327
+ updateSelection2({ x: x2, y: y2 });
118125
118328
  };
118126
118329
  const handleDragEnd = (e) => {
118127
118330
  if (!isDragging.value) return;
@@ -118478,7 +118681,7 @@ ${style2}
118478
118681
  this.config.colors = shuffleArray(this.config.colors);
118479
118682
  this.userColorMap = /* @__PURE__ */ new Map();
118480
118683
  this.colorIndex = 0;
118481
- this.version = "0.34.4";
118684
+ this.version = "0.34.6-RC1";
118482
118685
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
118483
118686
  this.superdocId = config2.superdocId || v4();
118484
118687
  this.colors = this.config.colors;
@@ -120878,7 +121081,7 @@ ${style2}
120878
121081
  value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
120879
121082
  );
120880
121083
  }
120881
- const indexDPjn4rpi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
121084
+ const index_8cQcYzu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
120882
121085
  __proto__: null,
120883
121086
  unified
120884
121087
  }, Symbol.toStringTag, { value: "Module" }));
@@ -122470,8 +122673,8 @@ ${style2}
122470
122673
  properties[name] = attribute.value;
122471
122674
  }
122472
122675
  }
122473
- const x = state2.schema.space === "svg" ? s : h;
122474
- const result = x(node2.tagName, properties, all$4(state2, node2.childNodes));
122676
+ const x2 = state2.schema.space === "svg" ? s : h;
122677
+ const result = x2(node2.tagName, properties, all$4(state2, node2.childNodes));
122475
122678
  patch$1(state2, node2, result);
122476
122679
  if (result.tagName === "template") {
122477
122680
  const reference2 = (