@harbour-enterprises/superdoc 0.29.0-next.9 → 0.30.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/chunks/{PdfViewer-BV-ij_Jn.es.js → PdfViewer-DNnHwEf_.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-DpviVXfb.cjs → PdfViewer-Mru9qU0u.cjs} +1 -1
  3. package/dist/chunks/{index-sJFE-5Sw-Chv1r9bA.cjs → index-C3nnrhrj-D6qn1DZi.cjs} +1 -1
  4. package/dist/chunks/{index-sJFE-5Sw-r5deiWbP.es.js → index-C3nnrhrj-D8emuLzt.es.js} +1 -1
  5. package/dist/chunks/{index-UVpS_47e.es.js → index-DcqOqWRC.es.js} +3 -3
  6. package/dist/chunks/{index-B5hIswvq.cjs → index-s9auAjqk.cjs} +3 -3
  7. package/dist/chunks/{super-editor.es-C9OTu_pS.es.js → super-editor.es-D1glcoJr.es.js} +1251 -778
  8. package/dist/chunks/{super-editor.es-Cw1FmXd7.cjs → super-editor.es-DPd8_luo.cjs} +1251 -778
  9. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  10. package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
  11. package/dist/style.css +57 -15
  12. package/dist/super-editor/ai-writer.es.js +2 -2
  13. package/dist/super-editor/chunks/{converter-D6qfGG_6.js → converter-Z2aFlUnt.js} +540 -374
  14. package/dist/super-editor/chunks/{docx-zipper-BqmHhBsY.js → docx-zipper-DIZfYOpO.js} +1 -1
  15. package/dist/super-editor/chunks/{editor-5q11lIMq.js → editor-DCiWw1F7.js} +359 -58
  16. package/dist/super-editor/chunks/{index-sJFE-5Sw.js → index-C3nnrhrj.js} +1 -1
  17. package/dist/super-editor/chunks/{toolbar-BV-1nlen.js → toolbar-B5-PSkGu.js} +2 -2
  18. package/dist/super-editor/converter.es.js +1 -1
  19. package/dist/super-editor/docx-zipper.es.js +2 -2
  20. package/dist/super-editor/editor.es.js +3 -3
  21. package/dist/super-editor/file-zipper.es.js +1 -1
  22. package/dist/super-editor/style.css +57 -15
  23. package/dist/super-editor/super-editor/src/components/pagination-helpers.d.ts.map +1 -1
  24. package/dist/super-editor/super-editor/src/components/toolbar/defaultItems.d.ts.map +1 -1
  25. package/dist/super-editor/super-editor/src/components/toolbar/super-toolbar.d.ts.map +1 -1
  26. package/dist/super-editor/super-editor/src/core/Editor.d.ts.map +1 -1
  27. package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts.map +1 -1
  28. package/dist/super-editor/super-editor/src/core/super-converter/relationship-helpers.d.ts.map +1 -1
  29. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/mc/altermateContent/alternate-content-translator.d.ts.map +1 -1
  30. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +6 -0
  31. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts.map +1 -1
  32. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts.map +1 -1
  33. package/dist/super-editor/super-editor/src/extensions/field-annotation/field-annotation.d.ts.map +1 -1
  34. package/dist/super-editor/super-editor/src/extensions/index.d.ts +2 -1
  35. package/dist/super-editor/super-editor/src/extensions/index.d.ts.map +1 -1
  36. package/dist/super-editor/super-editor/src/extensions/page-number/page-number.d.ts.map +1 -1
  37. package/dist/super-editor/super-editor/src/extensions/pagination/pagination-helpers.d.ts.map +1 -1
  38. package/dist/super-editor/super-editor/src/extensions/pagination/pagination.d.ts.map +1 -1
  39. package/dist/super-editor/super-editor/src/extensions/search/prosemirror-search-patched.d.ts.map +1 -1
  40. package/dist/super-editor/super-editor/src/extensions/shape-group/ShapeGroupView.d.ts +22 -0
  41. package/dist/super-editor/super-editor/src/extensions/shape-group/ShapeGroupView.d.ts.map +1 -0
  42. package/dist/super-editor/super-editor/src/extensions/shape-group/index.d.ts +3 -0
  43. package/dist/super-editor/super-editor/src/extensions/shape-group/index.d.ts.map +1 -0
  44. package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts +3 -0
  45. package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts.map +1 -0
  46. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
  47. package/dist/super-editor/super-editor/src/utils/headless-helpers.d.ts +1 -0
  48. package/dist/super-editor/super-editor/src/utils/headless-helpers.d.ts.map +1 -1
  49. package/dist/super-editor/super-editor.es.js +25 -18
  50. package/dist/super-editor/toolbar.es.js +2 -2
  51. package/dist/super-editor.cjs +1 -1
  52. package/dist/super-editor.es.js +1 -1
  53. package/dist/superdoc.cjs +2 -2
  54. package/dist/superdoc.es.js +2 -2
  55. package/dist/superdoc.umd.js +1015 -542
  56. package/dist/superdoc.umd.js.map +1 -1
  57. package/package.json +1 -1
@@ -416,17 +416,17 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
416
416
  );
417
417
  }
418
418
  if (a === b2) return 0;
419
- let x = a.length;
419
+ let x2 = a.length;
420
420
  let y2 = b2.length;
421
- for (let i = 0, len = Math.min(x, y2); i < len; ++i) {
421
+ for (let i = 0, len = Math.min(x2, y2); i < len; ++i) {
422
422
  if (a[i] !== b2[i]) {
423
- x = a[i];
423
+ x2 = a[i];
424
424
  y2 = b2[i];
425
425
  break;
426
426
  }
427
427
  }
428
- if (x < y2) return -1;
429
- if (y2 < x) return 1;
428
+ if (x2 < y2) return -1;
429
+ if (y2 < x2) return 1;
430
430
  return 0;
431
431
  };
432
432
  Buffer3.isEncoding = function isEncoding(encoding) {
@@ -675,20 +675,20 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
675
675
  thisStart >>>= 0;
676
676
  thisEnd >>>= 0;
677
677
  if (this === target) return 0;
678
- let x = thisEnd - thisStart;
678
+ let x2 = thisEnd - thisStart;
679
679
  let y2 = end2 - start2;
680
- const len = Math.min(x, y2);
680
+ const len = Math.min(x2, y2);
681
681
  const thisCopy = this.slice(thisStart, thisEnd);
682
682
  const targetCopy = target.slice(start2, end2);
683
683
  for (let i = 0; i < len; ++i) {
684
684
  if (thisCopy[i] !== targetCopy[i]) {
685
- x = thisCopy[i];
685
+ x2 = thisCopy[i];
686
686
  y2 = targetCopy[i];
687
687
  break;
688
688
  }
689
689
  }
690
- if (x < y2) return -1;
691
- if (y2 < x) return 1;
690
+ if (x2 < y2) return -1;
691
+ if (y2 < x2) return 1;
692
692
  return 0;
693
693
  };
694
694
  function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
@@ -1778,8 +1778,8 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
1778
1778
  })(buffer);
1779
1779
  const Buffer2 = buffer.Buffer;
1780
1780
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global$2 !== "undefined" ? global$2 : typeof self !== "undefined" ? self : {};
1781
- function getDefaultExportFromCjs$2(x) {
1782
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1781
+ function getDefaultExportFromCjs$2(x2) {
1782
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
1783
1783
  }
1784
1784
  var sax = {};
1785
1785
  var events$1 = { exports: {} };
@@ -1787,13 +1787,13 @@ var hasRequiredEvents;
1787
1787
  function requireEvents() {
1788
1788
  if (hasRequiredEvents) return events$1.exports;
1789
1789
  hasRequiredEvents = 1;
1790
- var R2 = typeof Reflect === "object" ? Reflect : null;
1791
- var ReflectApply = R2 && typeof R2.apply === "function" ? R2.apply : function ReflectApply2(target, receiver, args) {
1790
+ var R = typeof Reflect === "object" ? Reflect : null;
1791
+ var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
1792
1792
  return Function.prototype.apply.call(target, receiver, args);
1793
1793
  };
1794
1794
  var ReflectOwnKeys;
1795
- if (R2 && typeof R2.ownKeys === "function") {
1796
- ReflectOwnKeys = R2.ownKeys;
1795
+ if (R && typeof R.ownKeys === "function") {
1796
+ ReflectOwnKeys = R.ownKeys;
1797
1797
  } else if (Object.getOwnPropertySymbols) {
1798
1798
  ReflectOwnKeys = function ReflectOwnKeys2(target) {
1799
1799
  return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
@@ -2183,8 +2183,8 @@ function requireInherits_browser() {
2183
2183
  }
2184
2184
  return inherits_browser.exports;
2185
2185
  }
2186
- function getDefaultExportFromCjs$1(x) {
2187
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
2186
+ function getDefaultExportFromCjs$1(x2) {
2187
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
2188
2188
  }
2189
2189
  var browser$1 = { exports: {} };
2190
2190
  var process$1 = browser$1.exports = {};
@@ -2765,17 +2765,17 @@ function requireDist() {
2765
2765
  );
2766
2766
  }
2767
2767
  if (a === b2) return 0;
2768
- let x = a.length;
2768
+ let x2 = a.length;
2769
2769
  let y2 = b2.length;
2770
- for (let i2 = 0, len2 = Math.min(x, y2); i2 < len2; ++i2) {
2770
+ for (let i2 = 0, len2 = Math.min(x2, y2); i2 < len2; ++i2) {
2771
2771
  if (a[i2] !== b2[i2]) {
2772
- x = a[i2];
2772
+ x2 = a[i2];
2773
2773
  y2 = b2[i2];
2774
2774
  break;
2775
2775
  }
2776
2776
  }
2777
- if (x < y2) return -1;
2778
- if (y2 < x) return 1;
2777
+ if (x2 < y2) return -1;
2778
+ if (y2 < x2) return 1;
2779
2779
  return 0;
2780
2780
  };
2781
2781
  Buffer4.isEncoding = function isEncoding(encoding) {
@@ -3024,20 +3024,20 @@ function requireDist() {
3024
3024
  thisStart >>>= 0;
3025
3025
  thisEnd >>>= 0;
3026
3026
  if (this === target) return 0;
3027
- let x = thisEnd - thisStart;
3027
+ let x2 = thisEnd - thisStart;
3028
3028
  let y2 = end2 - start2;
3029
- const len2 = Math.min(x, y2);
3029
+ const len2 = Math.min(x2, y2);
3030
3030
  const thisCopy = this.slice(thisStart, thisEnd);
3031
3031
  const targetCopy = target.slice(start2, end2);
3032
3032
  for (let i2 = 0; i2 < len2; ++i2) {
3033
3033
  if (thisCopy[i2] !== targetCopy[i2]) {
3034
- x = thisCopy[i2];
3034
+ x2 = thisCopy[i2];
3035
3035
  y2 = targetCopy[i2];
3036
3036
  break;
3037
3037
  }
3038
3038
  }
3039
- if (x < y2) return -1;
3040
- if (y2 < x) return 1;
3039
+ if (x2 < y2) return -1;
3040
+ if (y2 < x2) return 1;
3041
3041
  return 0;
3042
3042
  };
3043
3043
  function bidirectionalIndexOf(buffer3, val, byteOffset, encoding, dir) {
@@ -4609,15 +4609,15 @@ function requireGetProto() {
4609
4609
  var reflectGetProto = requireReflect_getPrototypeOf();
4610
4610
  var originalGetProto = requireObject_getPrototypeOf();
4611
4611
  var getDunderProto = /* @__PURE__ */ requireGet();
4612
- getProto = reflectGetProto ? function getProto2(O2) {
4613
- return reflectGetProto(O2);
4614
- } : originalGetProto ? function getProto2(O2) {
4615
- if (!O2 || typeof O2 !== "object" && typeof O2 !== "function") {
4612
+ getProto = reflectGetProto ? function getProto2(O) {
4613
+ return reflectGetProto(O);
4614
+ } : originalGetProto ? function getProto2(O) {
4615
+ if (!O || typeof O !== "object" && typeof O !== "function") {
4616
4616
  throw new TypeError("getProto: not an object");
4617
4617
  }
4618
- return originalGetProto(O2);
4619
- } : getDunderProto ? function getProto2(O2) {
4620
- return getDunderProto(O2);
4618
+ return originalGetProto(O);
4619
+ } : getDunderProto ? function getProto2(O) {
4620
+ return getDunderProto(O);
4621
4621
  } : null;
4622
4622
  return getProto;
4623
4623
  }
@@ -5295,8 +5295,8 @@ function requireForEach() {
5295
5295
  }
5296
5296
  }
5297
5297
  };
5298
- function isArray2(x) {
5299
- return toStr.call(x) === "[object Array]";
5298
+ function isArray2(x2) {
5299
+ return toStr.call(x2) === "[object Array]";
5300
5300
  }
5301
5301
  forEach = function forEach22(list, iterator, thisArg) {
5302
5302
  if (!isCallable2(iterator)) {
@@ -5905,10 +5905,10 @@ function requireUtil() {
5905
5905
  var i = 1;
5906
5906
  var args = arguments;
5907
5907
  var len = args.length;
5908
- var str = String(f2).replace(formatRegExp, function(x2) {
5909
- if (x2 === "%%") return "%";
5910
- if (i >= len) return x2;
5911
- switch (x2) {
5908
+ var str = String(f2).replace(formatRegExp, function(x3) {
5909
+ if (x3 === "%%") return "%";
5910
+ if (i >= len) return x3;
5911
+ switch (x3) {
5912
5912
  case "%s":
5913
5913
  return String(args[i++]);
5914
5914
  case "%d":
@@ -5920,14 +5920,14 @@ function requireUtil() {
5920
5920
  return "[Circular]";
5921
5921
  }
5922
5922
  default:
5923
- return x2;
5923
+ return x3;
5924
5924
  }
5925
5925
  });
5926
- for (var x = args[i]; i < len; x = args[++i]) {
5927
- if (isNull(x) || !isObject2(x)) {
5928
- str += " " + x;
5926
+ for (var x2 = args[i]; i < len; x2 = args[++i]) {
5927
+ if (isNull(x2) || !isObject2(x2)) {
5928
+ str += " " + x2;
5929
5929
  } else {
5930
- str += " " + inspect(x);
5930
+ str += " " + inspect(x2);
5931
5931
  }
5932
5932
  }
5933
5933
  return str;
@@ -6140,7 +6140,7 @@ function requireUtil() {
6140
6140
  }
6141
6141
  function formatArray(ctx2, value, recurseTimes, visibleKeys, keys2) {
6142
6142
  var output = [];
6143
- for (var i = 0, l3 = value.length; i < l3; ++i) {
6143
+ for (var i = 0, l = value.length; i < l; ++i) {
6144
6144
  if (hasOwnProperty2(value, String(i))) {
6145
6145
  output.push(formatProperty(
6146
6146
  ctx2,
@@ -7239,8 +7239,8 @@ function require_stream_writable() {
7239
7239
  state2.bufferProcessing = true;
7240
7240
  var entry = state2.bufferedRequest;
7241
7241
  if (stream._writev && entry && entry.next) {
7242
- var l3 = state2.bufferedRequestCount;
7243
- var buffer2 = new Array(l3);
7242
+ var l = state2.bufferedRequestCount;
7243
+ var buffer2 = new Array(l);
7244
7244
  var holder = state2.corkedRequestsFree;
7245
7245
  holder.entry = entry;
7246
7246
  var count = 0;
@@ -8790,9 +8790,9 @@ function require_stream_readable() {
8790
8790
  return from2(Readable, iterable, opts);
8791
8791
  };
8792
8792
  }
8793
- function indexOf(xs, x) {
8794
- for (var i = 0, l3 = xs.length; i < l3; i++) {
8795
- if (xs[i] === x) return i;
8793
+ function indexOf(xs, x2) {
8794
+ for (var i = 0, l = xs.length; i < l; i++) {
8795
+ if (xs[i] === x2) return i;
8796
8796
  }
8797
8797
  return -1;
8798
8798
  }
@@ -9171,7 +9171,7 @@ function requireSax() {
9171
9171
  function checkBufferLength(parser) {
9172
9172
  var maxAllowed = Math.max(sax2.MAX_BUFFER_LENGTH, 10);
9173
9173
  var maxActual = 0;
9174
- for (var i = 0, l3 = buffers.length; i < l3; i++) {
9174
+ for (var i = 0, l = buffers.length; i < l; i++) {
9175
9175
  var len = parser[buffers[i]].length;
9176
9176
  if (len > maxAllowed) {
9177
9177
  switch (buffers[i]) {
@@ -9196,7 +9196,7 @@ function requireSax() {
9196
9196
  parser.bufferCheckPosition = m2 + parser.position;
9197
9197
  }
9198
9198
  function clearBuffers(parser) {
9199
- for (var i = 0, l3 = buffers.length; i < l3; i++) {
9199
+ for (var i = 0, l = buffers.length; i < l; i++) {
9200
9200
  parser[buffers[i]] = "";
9201
9201
  }
9202
9202
  }
@@ -9250,27 +9250,27 @@ function requireSax() {
9250
9250
  this._parser = new SAXParser(strict, opt);
9251
9251
  this.writable = true;
9252
9252
  this.readable = true;
9253
- var me = this;
9253
+ var me2 = this;
9254
9254
  this._parser.onend = function() {
9255
- me.emit("end");
9255
+ me2.emit("end");
9256
9256
  };
9257
9257
  this._parser.onerror = function(er) {
9258
- me.emit("error", er);
9259
- me._parser.error = null;
9258
+ me2.emit("error", er);
9259
+ me2._parser.error = null;
9260
9260
  };
9261
9261
  this._decoder = null;
9262
9262
  streamWraps.forEach(function(ev) {
9263
- Object.defineProperty(me, "on" + ev, {
9263
+ Object.defineProperty(me2, "on" + ev, {
9264
9264
  get: function() {
9265
- return me._parser["on" + ev];
9265
+ return me2._parser["on" + ev];
9266
9266
  },
9267
9267
  set: function(h2) {
9268
9268
  if (!h2) {
9269
- me.removeAllListeners(ev);
9270
- me._parser["on" + ev] = h2;
9269
+ me2.removeAllListeners(ev);
9270
+ me2._parser["on" + ev] = h2;
9271
9271
  return h2;
9272
9272
  }
9273
- me.on(ev, h2);
9273
+ me2.on(ev, h2);
9274
9274
  },
9275
9275
  enumerable: true,
9276
9276
  configurable: false
@@ -9302,15 +9302,15 @@ function requireSax() {
9302
9302
  return true;
9303
9303
  };
9304
9304
  SAXStream.prototype.on = function(ev, handler2) {
9305
- var me = this;
9306
- if (!me._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
9307
- me._parser["on" + ev] = function() {
9305
+ var me2 = this;
9306
+ if (!me2._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
9307
+ me2._parser["on" + ev] = function() {
9308
9308
  var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
9309
9309
  args.splice(0, 0, ev);
9310
- me.emit.apply(me, args);
9310
+ me2.emit.apply(me2, args);
9311
9311
  };
9312
9312
  }
9313
- return Stream.prototype.on.call(me, ev, handler2);
9313
+ return Stream.prototype.on.call(me2, ev, handler2);
9314
9314
  };
9315
9315
  var CDATA = "[CDATA[";
9316
9316
  var DOCTYPE = "DOCTYPE";
@@ -9816,7 +9816,7 @@ function requireSax() {
9816
9816
  });
9817
9817
  });
9818
9818
  }
9819
- for (var i = 0, l3 = parser.attribList.length; i < l3; i++) {
9819
+ for (var i = 0, l = parser.attribList.length; i < l; i++) {
9820
9820
  var nv = parser.attribList[i];
9821
9821
  var name = nv[0];
9822
9822
  var value = nv[1];
@@ -9902,9 +9902,9 @@ function requireSax() {
9902
9902
  var tag = parser.tag = parser.tags.pop();
9903
9903
  parser.tagName = parser.tag.name;
9904
9904
  emitNode(parser, "onclosetag", parser.tagName);
9905
- var x = {};
9905
+ var x2 = {};
9906
9906
  for (var i in tag.ns) {
9907
- x[i] = tag.ns[i];
9907
+ x2[i] = tag.ns[i];
9908
9908
  }
9909
9909
  var parent = parser.tags[parser.tags.length - 1] || parser;
9910
9910
  if (parser.opt.xmlns && tag.ns !== parent.ns) {
@@ -11384,8 +11384,8 @@ function v4(options, buf, offset2) {
11384
11384
  rnds[8] = rnds[8] & 63 | 128;
11385
11385
  return unsafeStringify(rnds);
11386
11386
  }
11387
- function getDefaultExportFromCjs(x) {
11388
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
11387
+ function getDefaultExportFromCjs(x2) {
11388
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
11389
11389
  }
11390
11390
  const CRC_TABLE = new Int32Array([
11391
11391
  0,
@@ -15201,8 +15201,8 @@ function polygonToObj(polygonNode) {
15201
15201
  const points = [];
15202
15202
  polygonNode.elements.forEach((element) => {
15203
15203
  if (["wp:start", "wp:lineTo"].includes(element.name)) {
15204
- const { x, y: y2 } = element.attributes;
15205
- points.push([polygonUnitsToPixels(x), polygonUnitsToPixels(y2)]);
15204
+ const { x: x2, y: y2 } = element.attributes;
15205
+ points.push([polygonUnitsToPixels(x2), polygonUnitsToPixels(y2)]);
15206
15206
  }
15207
15207
  });
15208
15208
  if (points.length > 1) {
@@ -15225,13 +15225,13 @@ function objToPolygon(points) {
15225
15225
  elements: []
15226
15226
  };
15227
15227
  points.forEach((point, index2) => {
15228
- const [x, y2] = point;
15228
+ const [x2, y2] = point;
15229
15229
  const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
15230
15230
  const pointNode = {
15231
15231
  name: tagName,
15232
15232
  type: tagName,
15233
15233
  attributes: {
15234
- x: pixelsToPolygonUnits(x),
15234
+ x: pixelsToPolygonUnits(x2),
15235
15235
  y: pixelsToPolygonUnits(y2)
15236
15236
  }
15237
15237
  };
@@ -22889,7 +22889,7 @@ function posToDOMRect(view, from2, to) {
22889
22889
  const right2 = Math.max(start2.right, end2.right);
22890
22890
  const width = right2 - left2;
22891
22891
  const height = bottom2 - top2;
22892
- const x = left2;
22892
+ const x2 = left2;
22893
22893
  const y2 = top2;
22894
22894
  const data = {
22895
22895
  top: top2,
@@ -22898,7 +22898,7 @@ function posToDOMRect(view, from2, to) {
22898
22898
  right: right2,
22899
22899
  width,
22900
22900
  height,
22901
- x,
22901
+ x: x2,
22902
22902
  y: y2
22903
22903
  };
22904
22904
  return {
@@ -22987,39 +22987,39 @@ function createDocFromHTML(content, schema, options = {}) {
22987
22987
  function L() {
22988
22988
  return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
22989
22989
  }
22990
- var O = L();
22991
- function G(l3) {
22992
- O = l3;
22990
+ var T = L();
22991
+ function G(u3) {
22992
+ T = u3;
22993
22993
  }
22994
- var E = { exec: () => null };
22995
- function h(l3, e = "") {
22996
- let t = typeof l3 == "string" ? l3 : l3.source, n = { replace: (r2, i) => {
22994
+ var I = { exec: () => null };
22995
+ function h(u3, e = "") {
22996
+ let t = typeof u3 == "string" ? u3 : u3.source, n = { replace: (r2, i) => {
22997
22997
  let s2 = typeof i == "string" ? i : i.source;
22998
22998
  return s2 = s2.replace(m.caret, "$1"), t = t.replace(r2, s2), n;
22999
22999
  }, getRegex: () => new RegExp(t, e) };
23000
23000
  return n;
23001
23001
  }
23002
- var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (l3) => new RegExp(`^( {0,3}${l3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}#`), htmlBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, xe = /^(?:[ \t]*(?:\n|$))+/, be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Re = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, j = /(?:[*+-]|\d{1,9}[.)])/, se = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ie$2 = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Te = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), F = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, we = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ye = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pe = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, j).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Se = h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), oe = h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), $e = h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", oe).getRegex(), K$1 = { blockquote: $e, code: be, def: ye, fences: Re, heading: Oe, hr: C, html: Se, lheading: ie$2, list: Pe, newline: xe, paragraph: oe, table: E, text: we }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), _e = { ...K$1, lheading: Te, table: re, paragraph: h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, Le = { ...K$1, html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: E, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(F).replace("hr", C).replace("heading", ` *#{1,6} *[^
23003
- ]`).replace("lheading", ie$2).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Me = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ze = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ae = /^( {2,}|\\)\n(?!\s*$)/, Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, le = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), ue = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Ie = /(?:[^\s\p{P}\p{S}]|~)/u, Be = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, qe = h(pe, "u").replace(/punct/g, D).getRegex(), ve = h(pe, "u").replace(/punct/g, ue).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", De = h(ce, "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), He = h(ce, "gu").replace(/notPunctSpace/g, Ie).replace(/punctSpace/g, Ce).replace(/punct/g, ue).getRegex(), Ze = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Ne = h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Fe = h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Qe = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), he$3 = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), de = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ue = h("reflink|nolink(?!\\()", "g").replace("reflink", he$3).replace("nolink", de).getRegex(), X = { _backpedal: E, anyPunctuation: Ge, autolink: Ne, blockSkip: Be, br: ae, code: ze, del: E, emStrongLDelim: qe, emStrongRDelimAst: De, emStrongRDelimUnd: Ze, escape: Me, link: Qe, nolink: de, punctuation: Ee, reflink: he$3, reflinkSearch: Ue, tag: Fe, text: Ae, url: E }, Ke = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: He, emStrongLDelim: ve, url: h(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, We = { ...N, br: h(ae).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, I = { normal: K$1, gfm: _e, pedantic: Le }, M$1 = { normal: X, gfm: N, breaks: We, pedantic: Ke };
23004
- var Xe = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ke = (l3) => Xe[l3];
23005
- function w(l3, e) {
23002
+ 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: (u3) => new RegExp(`^( {0,3}${u3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}#`), htmlBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, be = /^(?:[ \t]*(?:\n|$))+/, Re = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Te = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, E = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {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 = h(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(), we = h(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]+)*)/, ye = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Pe = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Se = h(/^( {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 = h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ae = h(j).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), _e = h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(), K$1 = { blockquote: _e, code: Re, def: Pe, fences: Te, heading: Oe, hr: E, html: $e, lheading: oe, list: Se, newline: be, paragraph: ae, table: I, text: ye }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", E).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(), Le = { ...K$1, lheading: we, table: re, paragraph: h(j).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, Me = { ...K$1, html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: I, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(j).replace("hr", E).replace("heading", ` *#{1,6} *[^
23003
+ ]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ze = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ae = /^(`+)([^`]|[^`][\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, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Be = /(?:[^\s\p{P}\p{S}]|~)/u, qe = h(/link|code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<!`)(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("code", /(?<!`)(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ve = h(ce, "u").replace(/punct/g, D).getRegex(), De = h(ce, "u").replace(/punct/g, pe).getRegex(), he$3 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", He = h(he$3, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ze = h(he$3, "gu").replace(/notPunctSpace/g, Be).replace(/punctSpace/g, Ce).replace(/punct/g, pe).getRegex(), Ge = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ne = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Fe = h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Qe = h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ue = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), ke = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ke = h("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: I, anyPunctuation: Ne, autolink: Fe, blockSkip: qe, br: le, code: Ae, del: I, emStrongLDelim: ve, emStrongRDelimAst: He, emStrongRDelimUnd: Ge, escape: ze, link: Ue, nolink: ke, punctuation: Ee, reflink: de, reflinkSearch: Ke, tag: Qe, text: Ie, url: I }, We = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: Ze, emStrongLDelim: De, url: h(/^((?: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: h(/^([`~]+|[^`~])(?:(?= {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() }, Xe = { ...N, br: h(le).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K$1, gfm: Le, pedantic: Me }, M$1 = { normal: X, gfm: N, breaks: Xe, pedantic: We };
23004
+ var Je = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ge = (u3) => Je[u3];
23005
+ function w(u3, e) {
23006
23006
  if (e) {
23007
- if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ke);
23008
- } else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ke);
23009
- return l3;
23007
+ if (m.escapeTest.test(u3)) return u3.replace(m.escapeReplace, ge);
23008
+ } else if (m.escapeTestNoEncode.test(u3)) return u3.replace(m.escapeReplaceNoEncode, ge);
23009
+ return u3;
23010
23010
  }
23011
- function J(l3) {
23011
+ function J(u3) {
23012
23012
  try {
23013
- l3 = encodeURI(l3).replace(m.percentDecode, "%");
23013
+ u3 = encodeURI(u3).replace(m.percentDecode, "%");
23014
23014
  } catch {
23015
23015
  return null;
23016
23016
  }
23017
- return l3;
23017
+ return u3;
23018
23018
  }
23019
- function V(l3, e) {
23020
- let t = l3.replace(m.findPipe, (i, s2, o) => {
23021
- let a = false, u = s2;
23022
- for (; --u >= 0 && o[u] === "\\"; ) a = !a;
23019
+ function V(u3, e) {
23020
+ let t = u3.replace(m.findPipe, (i, s2, o) => {
23021
+ let a = false, l = s2;
23022
+ for (; --l >= 0 && o[l] === "\\"; ) a = !a;
23023
23023
  return a ? "|" : " |";
23024
23024
  }), n = t.split(m.splitPipe), r2 = 0;
23025
23025
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
@@ -23027,33 +23027,33 @@ function V(l3, e) {
23027
23027
  for (; r2 < n.length; r2++) n[r2] = n[r2].trim().replace(m.slashPipe, "|");
23028
23028
  return n;
23029
23029
  }
23030
- function z(l3, e, t) {
23031
- let n = l3.length;
23030
+ function z(u3, e, t) {
23031
+ let n = u3.length;
23032
23032
  if (n === 0) return "";
23033
23033
  let r2 = 0;
23034
23034
  for (; r2 < n; ) {
23035
- let i = l3.charAt(n - r2 - 1);
23035
+ let i = u3.charAt(n - r2 - 1);
23036
23036
  if (i === e && true) r2++;
23037
23037
  else break;
23038
23038
  }
23039
- return l3.slice(0, n - r2);
23039
+ return u3.slice(0, n - r2);
23040
23040
  }
23041
- function ge(l3, e) {
23042
- if (l3.indexOf(e[1]) === -1) return -1;
23041
+ function fe(u3, e) {
23042
+ if (u3.indexOf(e[1]) === -1) return -1;
23043
23043
  let t = 0;
23044
- for (let n = 0; n < l3.length; n++) if (l3[n] === "\\") n++;
23045
- else if (l3[n] === e[0]) t++;
23046
- else if (l3[n] === e[1] && (t--, t < 0)) return n;
23044
+ for (let n = 0; n < u3.length; n++) if (u3[n] === "\\") n++;
23045
+ else if (u3[n] === e[0]) t++;
23046
+ else if (u3[n] === e[1] && (t--, t < 0)) return n;
23047
23047
  return t > 0 ? -2 : -1;
23048
23048
  }
23049
- function fe(l3, e, t, n, r2) {
23050
- let i = e.href, s2 = e.title || null, o = l3[1].replace(r2.other.outputLinkReplace, "$1");
23049
+ function me(u3, e, t, n, r2) {
23050
+ let i = e.href, s2 = e.title || null, o = u3[1].replace(r2.other.outputLinkReplace, "$1");
23051
23051
  n.state.inLink = true;
23052
- let a = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s2, text: o, tokens: n.inlineTokens(o) };
23052
+ let a = { type: u3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s2, text: o, tokens: n.inlineTokens(o) };
23053
23053
  return n.state.inLink = false, a;
23054
23054
  }
23055
- function Je(l3, e, t) {
23056
- let n = l3.match(t.other.indentCodeCompensation);
23055
+ function Ve(u3, e, t) {
23056
+ let n = u3.match(t.other.indentCodeCompensation);
23057
23057
  if (n === null) return e;
23058
23058
  let r2 = n[1];
23059
23059
  return e.split(`
@@ -23070,7 +23070,7 @@ var y = class {
23070
23070
  __publicField$2(this, "options");
23071
23071
  __publicField$2(this, "rules");
23072
23072
  __publicField$2(this, "lexer");
23073
- this.options = e || O;
23073
+ this.options = e || T;
23074
23074
  }
23075
23075
  space(e) {
23076
23076
  let t = this.rules.block.newline.exec(e);
@@ -23087,7 +23087,7 @@ var y = class {
23087
23087
  fences(e) {
23088
23088
  let t = this.rules.block.fences.exec(e);
23089
23089
  if (t) {
23090
- let n = t[0], r2 = Je(n, t[3] || "", this.rules);
23090
+ let n = t[0], r2 = Ve(n, t[3] || "", this.rules);
23091
23091
  return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r2 };
23092
23092
  }
23093
23093
  }
@@ -23114,32 +23114,32 @@ var y = class {
23114
23114
  `).split(`
23115
23115
  `), r2 = "", i = "", s2 = [];
23116
23116
  for (; n.length > 0; ) {
23117
- let o = false, a = [], u;
23118
- for (u = 0; u < n.length; u++) if (this.rules.other.blockquoteStart.test(n[u])) a.push(n[u]), o = true;
23119
- else if (!o) a.push(n[u]);
23117
+ let o = false, a = [], l;
23118
+ for (l = 0; l < n.length; l++) if (this.rules.other.blockquoteStart.test(n[l])) a.push(n[l]), o = true;
23119
+ else if (!o) a.push(n[l]);
23120
23120
  else break;
23121
- n = n.slice(u);
23122
- let p = a.join(`
23123
- `), c2 = p.replace(this.rules.other.blockquoteSetextReplace, `
23121
+ n = n.slice(l);
23122
+ let c2 = a.join(`
23123
+ `), p = c2.replace(this.rules.other.blockquoteSetextReplace, `
23124
23124
  $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
23125
23125
  r2 = r2 ? `${r2}
23126
- ${p}` : p, i = i ? `${i}
23127
- ${c2}` : c2;
23128
- let f2 = this.lexer.state.top;
23129
- if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top = f2, n.length === 0) break;
23130
- let k2 = s2.at(-1);
23131
- if (k2?.type === "code") break;
23132
- if (k2?.type === "blockquote") {
23133
- let x = k2, g = x.raw + `
23126
+ ${c2}` : c2, i = i ? `${i}
23127
+ ${p}` : p;
23128
+ let g = this.lexer.state.top;
23129
+ if (this.lexer.state.top = true, this.lexer.blockTokens(p, s2, true), this.lexer.state.top = g, n.length === 0) break;
23130
+ let d2 = s2.at(-1);
23131
+ if (d2?.type === "code") break;
23132
+ if (d2?.type === "blockquote") {
23133
+ let R = d2, f2 = R.raw + `
23134
23134
  ` + n.join(`
23135
- `), T = this.blockquote(g);
23136
- s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - x.raw.length) + T.raw, i = i.substring(0, i.length - x.text.length) + T.text;
23135
+ `), O = this.blockquote(f2);
23136
+ s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - R.raw.length) + O.raw, i = i.substring(0, i.length - R.text.length) + O.text;
23137
23137
  break;
23138
- } else if (k2?.type === "list") {
23139
- let x = k2, g = x.raw + `
23138
+ } else if (d2?.type === "list") {
23139
+ let R = d2, f2 = R.raw + `
23140
23140
  ` + n.join(`
23141
- `), T = this.list(g);
23142
- s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - k2.raw.length) + T.raw, i = i.substring(0, i.length - x.raw.length) + T.raw, n = g.substring(s2.at(-1).raw.length).split(`
23141
+ `), O = this.list(f2);
23142
+ s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - d2.raw.length) + O.raw, i = i.substring(0, i.length - R.raw.length) + O.raw, n = f2.substring(s2.at(-1).raw.length).split(`
23143
23143
  `);
23144
23144
  continue;
23145
23145
  }
@@ -23154,43 +23154,43 @@ ${c2}` : c2;
23154
23154
  n = r2 ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r2 ? n : "[*+-]");
23155
23155
  let s2 = this.rules.other.listItemRegex(n), o = false;
23156
23156
  for (; e; ) {
23157
- let u = false, p = "", c2 = "";
23157
+ let l = false, c2 = "", p = "";
23158
23158
  if (!(t = s2.exec(e)) || this.rules.block.hr.test(e)) break;
23159
- p = t[0], e = e.substring(p.length);
23160
- let f2 = t[2].split(`
23161
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), k2 = e.split(`
23162
- `, 1)[0], x = !f2.trim(), g = 0;
23163
- if (this.options.pedantic ? (g = 2, c2 = f2.trimStart()) : x ? g = t[1].length + 1 : (g = t[2].search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, c2 = f2.slice(g), g += t[1].length), x && this.rules.other.blankLine.test(k2) && (p += k2 + `
23164
- `, e = e.substring(k2.length + 1), u = true), !u) {
23165
- 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);
23159
+ c2 = t[0], e = e.substring(c2.length);
23160
+ let g = t[2].split(`
23161
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), d2 = e.split(`
23162
+ `, 1)[0], R = !g.trim(), f2 = 0;
23163
+ if (this.options.pedantic ? (f2 = 2, p = g.trimStart()) : R ? f2 = t[1].length + 1 : (f2 = t[2].search(this.rules.other.nonSpaceChar), f2 = f2 > 4 ? 1 : f2, p = g.slice(f2), f2 += t[1].length), R && this.rules.other.blankLine.test(d2) && (c2 += d2 + `
23164
+ `, e = e.substring(d2.length + 1), l = true), !l) {
23165
+ 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);
23166
23166
  for (; e; ) {
23167
23167
  let Z = e.split(`
23168
23168
  `, 1)[0], A2;
23169
- 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;
23170
- if (A2.search(this.rules.other.nonSpaceChar) >= g || !k2.trim()) c2 += `
23171
- ` + A2.slice(g);
23169
+ if (d2 = Z, this.options.pedantic ? (d2 = d2.replace(this.rules.other.listReplaceNesting, " "), A2 = d2) : A2 = d2.replace(this.rules.other.tabCharGlobal, " "), te.test(d2) || ne.test(d2) || xe.test(d2) || H.test(d2) || ee.test(d2)) break;
23170
+ if (A2.search(this.rules.other.nonSpaceChar) >= f2 || !d2.trim()) p += `
23171
+ ` + A2.slice(f2);
23172
23172
  else {
23173
- if (x || f2.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(f2) || ne.test(f2) || ee.test(f2)) break;
23174
- c2 += `
23175
- ` + k2;
23173
+ if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(g) || ne.test(g) || ee.test(g)) break;
23174
+ p += `
23175
+ ` + d2;
23176
23176
  }
23177
- !x && !k2.trim() && (x = true), p += Z + `
23178
- `, e = e.substring(Z.length + 1), f2 = A2.slice(g);
23177
+ !R && !d2.trim() && (R = true), c2 += Z + `
23178
+ `, e = e.substring(Z.length + 1), g = A2.slice(f2);
23179
23179
  }
23180
23180
  }
23181
- i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (o = true));
23182
- let T = null, Y2;
23183
- this.options.gfm && (T = this.rules.other.listIsTask.exec(c2), T && (Y2 = T[0] !== "[ ] ", c2 = c2.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: p, task: !!T, checked: Y2, loose: false, text: c2, tokens: [] }), i.raw += p;
23181
+ i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(c2) && (o = true));
23182
+ let O = null, Y2;
23183
+ this.options.gfm && (O = this.rules.other.listIsTask.exec(p), O && (Y2 = O[0] !== "[ ] ", p = p.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: c2, task: !!O, checked: Y2, loose: false, text: p, tokens: [] }), i.raw += c2;
23184
23184
  }
23185
23185
  let a = i.items.at(-1);
23186
23186
  if (a) a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
23187
23187
  else return;
23188
23188
  i.raw = i.raw.trimEnd();
23189
- for (let u = 0; u < i.items.length; u++) if (this.lexer.state.top = false, i.items[u].tokens = this.lexer.blockTokens(i.items[u].text, []), !i.loose) {
23190
- let p = i.items[u].tokens.filter((f2) => f2.type === "space"), c2 = p.length > 0 && p.some((f2) => this.rules.other.anyLine.test(f2.raw));
23191
- i.loose = c2;
23189
+ for (let l = 0; l < i.items.length; l++) if (this.lexer.state.top = false, i.items[l].tokens = this.lexer.blockTokens(i.items[l].text, []), !i.loose) {
23190
+ let c2 = i.items[l].tokens.filter((g) => g.type === "space"), p = c2.length > 0 && c2.some((g) => this.rules.other.anyLine.test(g.raw));
23191
+ i.loose = p;
23192
23192
  }
23193
- if (i.loose) for (let u = 0; u < i.items.length; u++) i.items[u].loose = true;
23193
+ if (i.loose) for (let l = 0; l < i.items.length; l++) i.items[l].loose = true;
23194
23194
  return i;
23195
23195
  }
23196
23196
  }
@@ -23213,7 +23213,7 @@ ${c2}` : c2;
23213
23213
  if (n.length === r2.length) {
23214
23214
  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);
23215
23215
  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] });
23216
- for (let o of i) s2.rows.push(V(o, s2.header.length).map((a, u) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s2.align[u] })));
23216
+ for (let o of i) s2.rows.push(V(o, s2.header.length).map((a, l) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s2.align[l] })));
23217
23217
  return s2;
23218
23218
  }
23219
23219
  }
@@ -23250,7 +23250,7 @@ ${c2}` : c2;
23250
23250
  let s2 = z(n.slice(0, -1), "\\");
23251
23251
  if ((n.length - s2.length) % 2 === 0) return;
23252
23252
  } else {
23253
- let s2 = ge(t[2], "()");
23253
+ let s2 = fe(t[2], "()");
23254
23254
  if (s2 === -2) return;
23255
23255
  if (s2 > -1) {
23256
23256
  let a = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
@@ -23262,7 +23262,7 @@ ${c2}` : c2;
23262
23262
  let s2 = this.rules.other.pedanticHrefTitle.exec(r2);
23263
23263
  s2 && (r2 = s2[1], i = s2[3]);
23264
23264
  } else i = t[3] ? t[3].slice(1, -1) : "";
23265
- return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), fe(t, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
23265
+ return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), me(t, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
23266
23266
  }
23267
23267
  }
23268
23268
  reflink(e, t) {
@@ -23273,32 +23273,32 @@ ${c2}` : c2;
23273
23273
  let s2 = n[0].charAt(0);
23274
23274
  return { type: "text", raw: s2, text: s2 };
23275
23275
  }
23276
- return fe(n, i, n[0], this.lexer, this.rules);
23276
+ return me(n, i, n[0], this.lexer, this.rules);
23277
23277
  }
23278
23278
  }
23279
23279
  emStrong(e, t, n = "") {
23280
23280
  let r2 = this.rules.inline.emStrongLDelim.exec(e);
23281
23281
  if (!r2 || r2[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
23282
23282
  if (!(r2[1] || r2[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
23283
- let s2 = [...r2[0]].length - 1, o, a, u = s2, p = 0, c2 = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
23284
- for (c2.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = c2.exec(t)) != null; ) {
23283
+ let s2 = [...r2[0]].length - 1, o, a, l = s2, c2 = 0, p = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
23284
+ for (p.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = p.exec(t)) != null; ) {
23285
23285
  if (o = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !o) continue;
23286
23286
  if (a = [...o].length, r2[3] || r2[4]) {
23287
- u += a;
23287
+ l += a;
23288
23288
  continue;
23289
23289
  } else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + a) % 3)) {
23290
- p += a;
23290
+ c2 += a;
23291
23291
  continue;
23292
23292
  }
23293
- if (u -= a, u > 0) continue;
23294
- a = Math.min(a, a + u + p);
23295
- let f2 = [...r2[0]][0].length, k2 = e.slice(0, s2 + r2.index + f2 + a);
23293
+ if (l -= a, l > 0) continue;
23294
+ a = Math.min(a, a + l + c2);
23295
+ let g = [...r2[0]][0].length, d2 = e.slice(0, s2 + r2.index + g + a);
23296
23296
  if (Math.min(s2, a) % 2) {
23297
- let g = k2.slice(1, -1);
23298
- return { type: "em", raw: k2, text: g, tokens: this.lexer.inlineTokens(g) };
23297
+ let f2 = d2.slice(1, -1);
23298
+ return { type: "em", raw: d2, text: f2, tokens: this.lexer.inlineTokens(f2) };
23299
23299
  }
23300
- let x = k2.slice(2, -2);
23301
- return { type: "strong", raw: k2, text: x, tokens: this.lexer.inlineTokens(x) };
23300
+ let R = d2.slice(2, -2);
23301
+ return { type: "strong", raw: d2, text: R, tokens: this.lexer.inlineTokens(R) };
23302
23302
  }
23303
23303
  }
23304
23304
  }
@@ -23347,25 +23347,25 @@ ${c2}` : c2;
23347
23347
  }
23348
23348
  }
23349
23349
  };
23350
- var b = class l {
23350
+ var x = class u {
23351
23351
  constructor(e) {
23352
23352
  __publicField$2(this, "tokens");
23353
23353
  __publicField$2(this, "options");
23354
23354
  __publicField$2(this, "state");
23355
23355
  __publicField$2(this, "tokenizer");
23356
23356
  __publicField$2(this, "inlineQueue");
23357
- 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 };
23358
- let t = { other: m, block: I.normal, inline: M$1.normal };
23359
- 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;
23357
+ 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 };
23358
+ let t = { other: m, block: C.normal, inline: M$1.normal };
23359
+ 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;
23360
23360
  }
23361
23361
  static get rules() {
23362
- return { block: I, inline: M$1 };
23362
+ return { block: C, inline: M$1 };
23363
23363
  }
23364
23364
  static lex(e, t) {
23365
- return new l(t).lex(e);
23365
+ return new u(t).lex(e);
23366
23366
  }
23367
23367
  static lexInline(e, t) {
23368
- return new l(t).inlineTokens(e);
23368
+ return new u(t).inlineTokens(e);
23369
23369
  }
23370
23370
  lex(e) {
23371
23371
  e = e.replace(m.carriageReturn, `
@@ -23440,8 +23440,8 @@ var b = class l {
23440
23440
  let i = e;
23441
23441
  if (this.options.extensions?.startBlock) {
23442
23442
  let s2 = 1 / 0, o = e.slice(1), a;
23443
- this.options.extensions.startBlock.forEach((u) => {
23444
- a = u.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s2 = Math.min(s2, a));
23443
+ this.options.extensions.startBlock.forEach((l) => {
23444
+ a = l.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s2 = Math.min(s2, a));
23445
23445
  }), s2 < 1 / 0 && s2 >= 0 && (i = e.substring(0, s2 + 1));
23446
23446
  }
23447
23447
  if (this.state.top && (r2 = this.tokenizer.paragraph(i))) {
@@ -23487,7 +23487,7 @@ var b = class l {
23487
23487
  for (; e; ) {
23488
23488
  i || (s2 = ""), i = false;
23489
23489
  let o;
23490
- 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;
23490
+ if (this.options.extensions?.inline?.some((l) => (o = l.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
23491
23491
  if (o = this.tokenizer.escape(e)) {
23492
23492
  e = e.substring(o.raw.length), t.push(o);
23493
23493
  continue;
@@ -23502,8 +23502,8 @@ var b = class l {
23502
23502
  }
23503
23503
  if (o = this.tokenizer.reflink(e, this.tokens.links)) {
23504
23504
  e = e.substring(o.raw.length);
23505
- let u = t.at(-1);
23506
- o.type === "text" && u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
23505
+ let l = t.at(-1);
23506
+ o.type === "text" && l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
23507
23507
  continue;
23508
23508
  }
23509
23509
  if (o = this.tokenizer.emStrong(e, n, s2)) {
@@ -23532,23 +23532,23 @@ var b = class l {
23532
23532
  }
23533
23533
  let a = e;
23534
23534
  if (this.options.extensions?.startInline) {
23535
- let u = 1 / 0, p = e.slice(1), c2;
23536
- this.options.extensions.startInline.forEach((f2) => {
23537
- c2 = f2.call({ lexer: this }, p), typeof c2 == "number" && c2 >= 0 && (u = Math.min(u, c2));
23538
- }), u < 1 / 0 && u >= 0 && (a = e.substring(0, u + 1));
23535
+ let l = 1 / 0, c2 = e.slice(1), p;
23536
+ this.options.extensions.startInline.forEach((g) => {
23537
+ p = g.call({ lexer: this }, c2), typeof p == "number" && p >= 0 && (l = Math.min(l, p));
23538
+ }), l < 1 / 0 && l >= 0 && (a = e.substring(0, l + 1));
23539
23539
  }
23540
23540
  if (o = this.tokenizer.inlineText(a)) {
23541
23541
  e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s2 = o.raw.slice(-1)), i = true;
23542
- let u = t.at(-1);
23543
- u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
23542
+ let l = t.at(-1);
23543
+ l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
23544
23544
  continue;
23545
23545
  }
23546
23546
  if (e) {
23547
- let u = "Infinite loop on byte: " + e.charCodeAt(0);
23547
+ let l = "Infinite loop on byte: " + e.charCodeAt(0);
23548
23548
  if (this.options.silent) {
23549
- console.error(u);
23549
+ console.error(l);
23550
23550
  break;
23551
- } else throw new Error(u);
23551
+ } else throw new Error(l);
23552
23552
  }
23553
23553
  }
23554
23554
  return t;
@@ -23558,7 +23558,7 @@ var P = class {
23558
23558
  constructor(e) {
23559
23559
  __publicField$2(this, "options");
23560
23560
  __publicField$2(this, "parser");
23561
- this.options = e || O;
23561
+ this.options = e || T;
23562
23562
  }
23563
23563
  space(e) {
23564
23564
  return "";
@@ -23706,18 +23706,18 @@ var $ = class {
23706
23706
  return "";
23707
23707
  }
23708
23708
  };
23709
- var R = class l2 {
23709
+ var b = class u2 {
23710
23710
  constructor(e) {
23711
23711
  __publicField$2(this, "options");
23712
23712
  __publicField$2(this, "renderer");
23713
23713
  __publicField$2(this, "textRenderer");
23714
- 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 $();
23714
+ 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 $();
23715
23715
  }
23716
23716
  static parse(e, t) {
23717
- return new l2(t).parse(e);
23717
+ return new u2(t).parse(e);
23718
23718
  }
23719
23719
  static parseInline(e, t) {
23720
- return new l2(t).parseInline(e);
23720
+ return new u2(t).parseInline(e);
23721
23721
  }
23722
23722
  parse(e, t = true) {
23723
23723
  let n = "";
@@ -23855,7 +23855,7 @@ var S = (_a = class {
23855
23855
  constructor(e) {
23856
23856
  __publicField$2(this, "options");
23857
23857
  __publicField$2(this, "block");
23858
- this.options = e || O;
23858
+ this.options = e || T;
23859
23859
  }
23860
23860
  preprocess(e) {
23861
23861
  return e;
@@ -23870,10 +23870,10 @@ var S = (_a = class {
23870
23870
  return e;
23871
23871
  }
23872
23872
  provideLexer() {
23873
- return this.block ? b.lex : b.lexInline;
23873
+ return this.block ? x.lex : x.lexInline;
23874
23874
  }
23875
23875
  provideParser() {
23876
- return this.block ? R.parse : R.parseInline;
23876
+ return this.block ? b.parse : b.parseInline;
23877
23877
  }
23878
23878
  }, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField$2(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
23879
23879
  var B = class {
@@ -23882,10 +23882,10 @@ var B = class {
23882
23882
  __publicField$2(this, "options", this.setOptions);
23883
23883
  __publicField$2(this, "parse", this.parseMarkdown(true));
23884
23884
  __publicField$2(this, "parseInline", this.parseMarkdown(false));
23885
- __publicField$2(this, "Parser", R);
23885
+ __publicField$2(this, "Parser", b);
23886
23886
  __publicField$2(this, "Renderer", P);
23887
23887
  __publicField$2(this, "TextRenderer", $);
23888
- __publicField$2(this, "Lexer", b);
23888
+ __publicField$2(this, "Lexer", x);
23889
23889
  __publicField$2(this, "Tokenizer", y);
23890
23890
  __publicField$2(this, "Hooks", S);
23891
23891
  this.use(...e);
@@ -23938,10 +23938,10 @@ var B = class {
23938
23938
  for (let s2 in n.renderer) {
23939
23939
  if (!(s2 in i)) throw new Error(`renderer '${s2}' does not exist`);
23940
23940
  if (["options", "parser"].includes(s2)) continue;
23941
- let o = s2, a = n.renderer[o], u = i[o];
23942
- i[o] = (...p) => {
23943
- let c2 = a.apply(i, p);
23944
- return c2 === false && (c2 = u.apply(i, p)), c2 || "";
23941
+ let o = s2, a = n.renderer[o], l = i[o];
23942
+ i[o] = (...c2) => {
23943
+ let p = a.apply(i, c2);
23944
+ return p === false && (p = l.apply(i, c2)), p || "";
23945
23945
  };
23946
23946
  }
23947
23947
  r2.renderer = i;
@@ -23951,10 +23951,10 @@ var B = class {
23951
23951
  for (let s2 in n.tokenizer) {
23952
23952
  if (!(s2 in i)) throw new Error(`tokenizer '${s2}' does not exist`);
23953
23953
  if (["options", "rules", "lexer"].includes(s2)) continue;
23954
- let o = s2, a = n.tokenizer[o], u = i[o];
23955
- i[o] = (...p) => {
23956
- let c2 = a.apply(i, p);
23957
- return c2 === false && (c2 = u.apply(i, p)), c2;
23954
+ let o = s2, a = n.tokenizer[o], l = i[o];
23955
+ i[o] = (...c2) => {
23956
+ let p = a.apply(i, c2);
23957
+ return p === false && (p = l.apply(i, c2)), p;
23958
23958
  };
23959
23959
  }
23960
23960
  r2.tokenizer = i;
@@ -23964,14 +23964,21 @@ var B = class {
23964
23964
  for (let s2 in n.hooks) {
23965
23965
  if (!(s2 in i)) throw new Error(`hook '${s2}' does not exist`);
23966
23966
  if (["options", "block"].includes(s2)) continue;
23967
- let o = s2, a = n.hooks[o], u = i[o];
23968
- S.passThroughHooks.has(s2) ? i[o] = (p) => {
23969
- if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return Promise.resolve(a.call(i, p)).then((f2) => u.call(i, f2));
23970
- let c2 = a.call(i, p);
23971
- return u.call(i, c2);
23972
- } : i[o] = (...p) => {
23973
- let c2 = a.apply(i, p);
23974
- return c2 === false && (c2 = u.apply(i, p)), c2;
23967
+ let o = s2, a = n.hooks[o], l = i[o];
23968
+ S.passThroughHooks.has(s2) ? i[o] = (c2) => {
23969
+ if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return (async () => {
23970
+ let g = await a.call(i, c2);
23971
+ return l.call(i, g);
23972
+ })();
23973
+ let p = a.call(i, c2);
23974
+ return l.call(i, p);
23975
+ } : i[o] = (...c2) => {
23976
+ if (this.defaults.async) return (async () => {
23977
+ let g = await a.apply(i, c2);
23978
+ return g === false && (g = await l.apply(i, c2)), g;
23979
+ })();
23980
+ let p = a.apply(i, c2);
23981
+ return p === false && (p = l.apply(i, c2)), p;
23975
23982
  };
23976
23983
  }
23977
23984
  r2.hooks = i;
@@ -23990,10 +23997,10 @@ var B = class {
23990
23997
  return this.defaults = { ...this.defaults, ...e }, this;
23991
23998
  }
23992
23999
  lexer(e, t) {
23993
- return b.lex(e, t ?? this.defaults);
24000
+ return x.lex(e, t ?? this.defaults);
23994
24001
  }
23995
24002
  parser(e, t) {
23996
- return R.parse(e, t ?? this.defaults);
24003
+ return b.parse(e, t ?? this.defaults);
23997
24004
  }
23998
24005
  parseMarkdown(e) {
23999
24006
  return (n, r2) => {
@@ -24001,17 +24008,20 @@ var B = class {
24001
24008
  if (this.defaults.async === true && i.async === false) return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
24002
24009
  if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
24003
24010
  if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
24004
- s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e);
24005
- let a = s2.hooks ? s2.hooks.provideLexer() : e ? b.lex : b.lexInline, u = s2.hooks ? s2.hooks.provideParser() : e ? R.parse : R.parseInline;
24006
- if (s2.async) return Promise.resolve(s2.hooks ? s2.hooks.preprocess(n) : n).then((p) => a(p, s2)).then((p) => s2.hooks ? s2.hooks.processAllTokens(p) : p).then((p) => s2.walkTokens ? Promise.all(this.walkTokens(p, s2.walkTokens)).then(() => p) : p).then((p) => u(p, s2)).then((p) => s2.hooks ? s2.hooks.postprocess(p) : p).catch(o);
24011
+ if (s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e), s2.async) return (async () => {
24012
+ let a = s2.hooks ? await s2.hooks.preprocess(n) : n, c2 = await (s2.hooks ? await s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(a, s2), p = s2.hooks ? await s2.hooks.processAllTokens(c2) : c2;
24013
+ s2.walkTokens && await Promise.all(this.walkTokens(p, s2.walkTokens));
24014
+ let d2 = await (s2.hooks ? await s2.hooks.provideParser() : e ? b.parse : b.parseInline)(p, s2);
24015
+ return s2.hooks ? await s2.hooks.postprocess(d2) : d2;
24016
+ })().catch(o);
24007
24017
  try {
24008
24018
  s2.hooks && (n = s2.hooks.preprocess(n));
24009
- let p = a(n, s2);
24010
- s2.hooks && (p = s2.hooks.processAllTokens(p)), s2.walkTokens && this.walkTokens(p, s2.walkTokens);
24011
- let c2 = u(p, s2);
24012
- return s2.hooks && (c2 = s2.hooks.postprocess(c2)), c2;
24013
- } catch (p) {
24014
- return o(p);
24019
+ let l = (s2.hooks ? s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s2);
24020
+ s2.hooks && (l = s2.hooks.processAllTokens(l)), s2.walkTokens && this.walkTokens(l, s2.walkTokens);
24021
+ let p = (s2.hooks ? s2.hooks.provideParser() : e ? b.parse : b.parseInline)(l, s2);
24022
+ return s2.hooks && (p = s2.hooks.postprocess(p)), p;
24023
+ } catch (a) {
24024
+ return o(a);
24015
24025
  }
24016
24026
  };
24017
24027
  }
@@ -24028,38 +24038,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
24028
24038
  }
24029
24039
  };
24030
24040
  var _ = new B();
24031
- function d$1(l3, e) {
24032
- return _.parse(l3, e);
24033
- }
24034
- d$1.options = d$1.setOptions = function(l3) {
24035
- return _.setOptions(l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
24036
- };
24037
- d$1.getDefaults = L;
24038
- d$1.defaults = O;
24039
- d$1.use = function(...l3) {
24040
- return _.use(...l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
24041
- };
24042
- d$1.walkTokens = function(l3, e) {
24043
- return _.walkTokens(l3, e);
24044
- };
24045
- d$1.parseInline = _.parseInline;
24046
- d$1.Parser = R;
24047
- d$1.parser = R.parse;
24048
- d$1.Renderer = P;
24049
- d$1.TextRenderer = $;
24050
- d$1.Lexer = b;
24051
- d$1.lexer = b.lex;
24052
- d$1.Tokenizer = y;
24053
- d$1.Hooks = S;
24054
- d$1.parse = d$1;
24055
- d$1.options;
24056
- d$1.setOptions;
24057
- d$1.use;
24058
- d$1.walkTokens;
24059
- d$1.parseInline;
24060
- R.parse;
24061
- b.lex;
24062
- d$1.use({
24041
+ function k$1(u3, e) {
24042
+ return _.parse(u3, e);
24043
+ }
24044
+ k$1.options = k$1.setOptions = function(u3) {
24045
+ return _.setOptions(u3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
24046
+ };
24047
+ k$1.getDefaults = L;
24048
+ k$1.defaults = T;
24049
+ k$1.use = function(...u3) {
24050
+ return _.use(...u3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
24051
+ };
24052
+ k$1.walkTokens = function(u3, e) {
24053
+ return _.walkTokens(u3, e);
24054
+ };
24055
+ k$1.parseInline = _.parseInline;
24056
+ k$1.Parser = b;
24057
+ k$1.parser = b.parse;
24058
+ k$1.Renderer = P;
24059
+ k$1.TextRenderer = $;
24060
+ k$1.Lexer = x;
24061
+ k$1.lexer = x.lex;
24062
+ k$1.Tokenizer = y;
24063
+ k$1.Hooks = S;
24064
+ k$1.parse = k$1;
24065
+ k$1.options;
24066
+ k$1.setOptions;
24067
+ k$1.use;
24068
+ k$1.walkTokens;
24069
+ k$1.parseInline;
24070
+ b.parse;
24071
+ x.lex;
24072
+ k$1.use({
24063
24073
  breaks: false,
24064
24074
  // Use proper paragraphs, not <br> tags
24065
24075
  gfm: true
@@ -24070,7 +24080,7 @@ function createDocFromMarkdown(markdown, schema, options = {}) {
24070
24080
  return createDocFromHTML(html, schema, options);
24071
24081
  }
24072
24082
  function convertMarkdownToHTML(markdown) {
24073
- let html = d$1.parse(markdown, { async: false });
24083
+ let html = k$1.parse(markdown, { async: false });
24074
24084
  return html.replace(/<\/p>\n<ul>/g, "</p>\n<p>&nbsp;</p>\n<ul>").replace(/<\/p>\n<ol>/g, "</p>\n<p>&nbsp;</p>\n<ol>").replace(/<\/ul>\n<h/g, "</ul>\n<p>&nbsp;</p>\n<h").replace(/<\/ol>\n<h/g, "</ol>\n<p>&nbsp;</p>\n<h");
24075
24085
  }
24076
24086
  function processContent({ content, type: type2, schema }) {
@@ -28426,6 +28436,7 @@ function extractFillColor(spPr, style2) {
28426
28436
  }
28427
28437
  const DRAWING_XML_TAG = "w:drawing";
28428
28438
  const SHAPE_URI = "http://schemas.microsoft.com/office/word/2010/wordprocessingShape";
28439
+ const GROUP_URI = "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup";
28429
28440
  function handleImageNode(node, params2, isAnchor) {
28430
28441
  const { docx, filename } = params2;
28431
28442
  const { attributes } = node;
@@ -28543,7 +28554,7 @@ function handleImageNode(node, params2, isAnchor) {
28543
28554
  const graphic = node.elements.find((el) => el.name === "a:graphic");
28544
28555
  const graphicData = graphic?.elements.find((el) => el.name === "a:graphicData");
28545
28556
  const { uri: uri2 } = graphicData?.attributes || {};
28546
- if (!!uri2 && uri2 === SHAPE_URI) {
28557
+ if (uri2 === SHAPE_URI) {
28547
28558
  const shapeMarginOffset = {
28548
28559
  left: positionHValue,
28549
28560
  horizontal: positionHValue,
@@ -28551,6 +28562,14 @@ function handleImageNode(node, params2, isAnchor) {
28551
28562
  };
28552
28563
  return handleShapeDrawing(params2, node, graphicData, size2, padding, shapeMarginOffset);
28553
28564
  }
28565
+ if (uri2 === GROUP_URI) {
28566
+ const shapeMarginOffset = {
28567
+ left: positionHValue,
28568
+ horizontal: positionHValue,
28569
+ top: positionVValue
28570
+ };
28571
+ return handleShapeGroup(params2, node, graphicData, size2, padding, shapeMarginOffset);
28572
+ }
28554
28573
  const picture = graphicData?.elements.find((el) => el.name === "pic:pic");
28555
28574
  if (!picture || !picture.elements) return null;
28556
28575
  const blipFill = picture.elements.find((el) => el.name === "pic:blipFill");
@@ -28640,6 +28659,114 @@ const handleShapeDrawing = (params2, node, graphicData, size2, padding, marginOf
28640
28659
  }
28641
28660
  return buildShapePlaceholder(node, size2, padding, marginOffset, "textbox");
28642
28661
  };
28662
+ const handleShapeGroup = (params2, node, graphicData, size2, padding, marginOffset) => {
28663
+ const wgp = graphicData.elements.find((el) => el.name === "wpg:wgp");
28664
+ if (!wgp) {
28665
+ return buildShapePlaceholder(node, size2, padding, marginOffset, "group");
28666
+ }
28667
+ const grpSpPr = wgp.elements.find((el) => el.name === "wpg:grpSpPr");
28668
+ const xfrm = grpSpPr?.elements?.find((el) => el.name === "a:xfrm");
28669
+ const groupTransform = {};
28670
+ if (xfrm) {
28671
+ const off2 = xfrm.elements?.find((el) => el.name === "a:off");
28672
+ const ext = xfrm.elements?.find((el) => el.name === "a:ext");
28673
+ const chOff = xfrm.elements?.find((el) => el.name === "a:chOff");
28674
+ const chExt = xfrm.elements?.find((el) => el.name === "a:chExt");
28675
+ if (off2) {
28676
+ groupTransform.x = emuToPixels(off2.attributes?.["x"] || 0);
28677
+ groupTransform.y = emuToPixels(off2.attributes?.["y"] || 0);
28678
+ }
28679
+ if (ext) {
28680
+ groupTransform.width = emuToPixels(ext.attributes?.["cx"] || 0);
28681
+ groupTransform.height = emuToPixels(ext.attributes?.["cy"] || 0);
28682
+ }
28683
+ if (chOff) {
28684
+ groupTransform.childX = emuToPixels(chOff.attributes?.["x"] || 0);
28685
+ groupTransform.childY = emuToPixels(chOff.attributes?.["y"] || 0);
28686
+ groupTransform.childOriginXEmu = parseFloat(chOff.attributes?.["x"] || 0);
28687
+ groupTransform.childOriginYEmu = parseFloat(chOff.attributes?.["y"] || 0);
28688
+ }
28689
+ if (chExt) {
28690
+ groupTransform.childWidth = emuToPixels(chExt.attributes?.["cx"] || 0);
28691
+ groupTransform.childHeight = emuToPixels(chExt.attributes?.["cy"] || 0);
28692
+ }
28693
+ }
28694
+ const childShapes = wgp.elements.filter((el) => el.name === "wps:wsp");
28695
+ const shapes = childShapes.map((wsp) => {
28696
+ const spPr = wsp.elements?.find((el) => el.name === "wps:spPr");
28697
+ if (!spPr) return null;
28698
+ const prstGeom = spPr.elements?.find((el) => el.name === "a:prstGeom");
28699
+ const shapeKind = prstGeom?.attributes?.["prst"];
28700
+ const shapeXfrm = spPr.elements?.find((el) => el.name === "a:xfrm");
28701
+ const shapeOff = shapeXfrm?.elements?.find((el) => el.name === "a:off");
28702
+ const shapeExt = shapeXfrm?.elements?.find((el) => el.name === "a:ext");
28703
+ const rawX = shapeOff?.attributes?.["x"] ? parseFloat(shapeOff.attributes["x"]) : 0;
28704
+ const rawY = shapeOff?.attributes?.["y"] ? parseFloat(shapeOff.attributes["y"]) : 0;
28705
+ const rawWidth = shapeExt?.attributes?.["cx"] ? parseFloat(shapeExt.attributes["cx"]) : 914400;
28706
+ const rawHeight = shapeExt?.attributes?.["cy"] ? parseFloat(shapeExt.attributes["cy"]) : 914400;
28707
+ let x2, y2, width, height;
28708
+ if (groupTransform.childWidth && groupTransform.childHeight) {
28709
+ const scaleX = groupTransform.width / groupTransform.childWidth;
28710
+ const scaleY = groupTransform.height / groupTransform.childHeight;
28711
+ const childOriginX = groupTransform.childOriginXEmu || 0;
28712
+ const childOriginY = groupTransform.childOriginYEmu || 0;
28713
+ x2 = groupTransform.x + emuToPixels((rawX - childOriginX) * scaleX);
28714
+ y2 = groupTransform.y + emuToPixels((rawY - childOriginY) * scaleY);
28715
+ width = emuToPixels(rawWidth * scaleX);
28716
+ height = emuToPixels(rawHeight * scaleY);
28717
+ } else {
28718
+ x2 = emuToPixels(rawX);
28719
+ y2 = emuToPixels(rawY);
28720
+ width = emuToPixels(rawWidth);
28721
+ height = emuToPixels(rawHeight);
28722
+ }
28723
+ const rotation = shapeXfrm?.attributes?.["rot"] ? rotToDegrees(shapeXfrm.attributes["rot"]) : 0;
28724
+ const flipH = shapeXfrm?.attributes?.["flipH"] === "1";
28725
+ const flipV = shapeXfrm?.attributes?.["flipV"] === "1";
28726
+ const style2 = wsp.elements?.find((el) => el.name === "wps:style");
28727
+ const fillColor = extractFillColor(spPr, style2);
28728
+ const strokeColor = extractStrokeColor(spPr, style2);
28729
+ const strokeWidth = extractStrokeWidth(spPr);
28730
+ const cNvPr = wsp.elements?.find((el) => el.name === "wps:cNvPr");
28731
+ const shapeId = cNvPr?.attributes?.["id"];
28732
+ const shapeName = cNvPr?.attributes?.["name"];
28733
+ return {
28734
+ shapeType: "vectorShape",
28735
+ attrs: {
28736
+ kind: shapeKind,
28737
+ x: x2,
28738
+ y: y2,
28739
+ width,
28740
+ height,
28741
+ rotation,
28742
+ flipH,
28743
+ flipV,
28744
+ fillColor,
28745
+ strokeColor,
28746
+ strokeWidth,
28747
+ shapeId,
28748
+ shapeName
28749
+ }
28750
+ };
28751
+ }).filter(Boolean);
28752
+ const schemaAttrs = {};
28753
+ const drawingNode = params2.nodes?.[0];
28754
+ if (drawingNode?.name === DRAWING_XML_TAG) {
28755
+ schemaAttrs.drawingContent = drawingNode;
28756
+ }
28757
+ const result = {
28758
+ type: "shapeGroup",
28759
+ attrs: {
28760
+ ...schemaAttrs,
28761
+ groupTransform,
28762
+ shapes,
28763
+ size: size2,
28764
+ padding,
28765
+ marginOffset
28766
+ }
28767
+ };
28768
+ return result;
28769
+ };
28643
28770
  const getRectangleShape = (params2, node) => {
28644
28771
  const schemaAttrs = {};
28645
28772
  const [drawingNode] = params2.nodes;
@@ -29082,6 +29209,30 @@ function translateVectorShape(params2) {
29082
29209
  };
29083
29210
  return wrapTextInRun(alternateContent);
29084
29211
  }
29212
+ function translateShapeGroup(params2) {
29213
+ const { node } = params2;
29214
+ const { drawingContent } = node.attrs;
29215
+ if (drawingContent) {
29216
+ const drawing = {
29217
+ name: "w:drawing",
29218
+ elements: [...drawingContent.elements || []]
29219
+ };
29220
+ const choice = {
29221
+ name: "mc:Choice",
29222
+ attributes: { Requires: "wpg" },
29223
+ elements: [drawing]
29224
+ };
29225
+ const alternateContent = {
29226
+ name: "mc:AlternateContent",
29227
+ elements: [choice]
29228
+ };
29229
+ return wrapTextInRun(alternateContent);
29230
+ }
29231
+ return wrapTextInRun({
29232
+ name: "w:drawing",
29233
+ elements: []
29234
+ });
29235
+ }
29085
29236
  function translateAnchorNode(params2) {
29086
29237
  const { attrs } = params2.node;
29087
29238
  const anchorElements = [];
@@ -29245,11 +29396,11 @@ function translateAnchorNode(params2) {
29245
29396
  };
29246
29397
  }
29247
29398
  const XML_NODE_NAME$f = "wp:anchor";
29248
- const SD_NODE_NAME$c = ["image"];
29399
+ const SD_NODE_NAME$c = ["image", "shapeGroup", "vectorShape", "contentBlock"];
29249
29400
  const validXmlAttributes$a = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
29250
29401
  function encode$l(params2) {
29251
29402
  const { node } = params2.extraParams;
29252
- if (!node || !node.type) {
29403
+ if (!node || !node.name) {
29253
29404
  return null;
29254
29405
  }
29255
29406
  return handleAnchorNode(params2);
@@ -29286,11 +29437,11 @@ function translateInlineNode(params2) {
29286
29437
  };
29287
29438
  }
29288
29439
  const XML_NODE_NAME$e = "wp:inline";
29289
- const SD_NODE_NAME$b = ["image"];
29440
+ const SD_NODE_NAME$b = ["image", "shapeGroup", "vectorShape", "contentBlock"];
29290
29441
  const validXmlAttributes$9 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
29291
29442
  function encode$k(params2) {
29292
29443
  const { node } = params2.extraParams;
29293
- if (!node || !node.type) {
29444
+ if (!node || !node.name) {
29294
29445
  return null;
29295
29446
  }
29296
29447
  return handleInlineNode(params2);
@@ -32711,6 +32862,7 @@ const bookmarkEndNodeHandlerEntity = {
32711
32862
  };
32712
32863
  const SUPPORTED_ALTERNATE_CONTENT_REQUIRES = /* @__PURE__ */ new Set([
32713
32864
  "wps",
32865
+ "wpg",
32714
32866
  "wp14",
32715
32867
  "w14",
32716
32868
  "w15",
@@ -34371,6 +34523,7 @@ function exportSchemaToJson(params2) {
34371
34523
  shapeTextbox: translator,
34372
34524
  contentBlock: translator,
34373
34525
  vectorShape: translateVectorShape,
34526
+ shapeGroup: translateShapeGroup,
34374
34527
  structuredContent: translator$r,
34375
34528
  structuredContentBlock: translator$r,
34376
34529
  documentPartObject: translator$r,
@@ -35370,6 +35523,12 @@ const mergeRelationshipElements = (existingRelationships = [], newRelationships
35370
35523
  if (!newRelationships?.length) return existingRelationships;
35371
35524
  let largestId = getLargestRelationshipId(existingRelationships);
35372
35525
  const seenIds = new Set(existingRelationships.map((rel) => rel?.attributes?.Id).filter(Boolean));
35526
+ for (const rel of newRelationships) {
35527
+ const id = rel?.attributes?.Id;
35528
+ if (!id || seenIds.has(id)) continue;
35529
+ const numeric = Number(String(id).replace(REL_ID_NUMERIC_PATTERN, ""));
35530
+ if (Number.isFinite(numeric) && numeric > largestId) largestId = numeric;
35531
+ }
35373
35532
  const additions = [];
35374
35533
  newRelationships.forEach((rel) => {
35375
35534
  if (!rel?.attributes) return;
@@ -35377,13 +35536,20 @@ const mergeRelationshipElements = (existingRelationships = [], newRelationships
35377
35536
  const currentId = attributes.Id || "";
35378
35537
  attributes.Target = attributes?.Target?.replace(/&/g, "&amp;");
35379
35538
  const existingTarget = existingRelationships.find((el) => el.attributes.Target === attributes.Target);
35380
- attributes.Target?.startsWith("media/");
35381
35539
  const isNewHyperlink = attributes.Type === HYPERLINK_RELATIONSHIP_TYPE && currentId.length > 6;
35382
35540
  const isNewHeadFoot = (attributes.Type === HEADER_RELATIONSHIP_TYPE || attributes.Type === FOOTER_RELATIONSHIP_TYPE) && currentId.length > 6;
35383
35541
  const hasSeenId = currentId && seenIds.has(currentId);
35384
35542
  if (!isNewHyperlink && !isNewHeadFoot && existingTarget) return;
35385
35543
  if (!currentId || hasSeenId) {
35386
- attributes.Id = `rId${++largestId}`;
35544
+ let candidate = Math.max(largestId, 1);
35545
+ while (seenIds.has(`rId${candidate}`)) {
35546
+ candidate += 1;
35547
+ }
35548
+ attributes.Id = `rId${candidate}`;
35549
+ largestId = candidate;
35550
+ } else {
35551
+ const numeric = Number(String(currentId).replace(REL_ID_NUMERIC_PATTERN, ""));
35552
+ if (Number.isFinite(numeric) && numeric > largestId) largestId = numeric;
35387
35553
  }
35388
35554
  seenIds.add(attributes.Id);
35389
35555
  additions.push(rel);
@@ -35598,7 +35764,7 @@ const _SuperConverter = class _SuperConverter2 {
35598
35764
  static getStoredSuperdocVersion(docx) {
35599
35765
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
35600
35766
  }
35601
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.9") {
35767
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.30.0-next.1") {
35602
35768
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
35603
35769
  }
35604
35770
  /**
@@ -35989,7 +36155,7 @@ prepareCommentsXmlFilesForExport_fn = function({ defs, exportType, commentsWithP
35989
36155
  };
35990
36156
  exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
35991
36157
  const relsData = this.convertedXml["word/_rels/document.xml.rels"];
35992
- const relationships = relsData.elements.find((x) => x.name === "Relationships");
36158
+ const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
35993
36159
  const newDocRels = [];
35994
36160
  Object.entries(this.headers).forEach(([id, header], index2) => {
35995
36161
  const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
@@ -36030,7 +36196,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
36030
36196
  }
36031
36197
  this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
36032
36198
  if (params2.relationships.length) {
36033
- const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
36199
+ const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
36034
36200
  this.convertedXml[`word/_rels/${fileName}.rels`] = {
36035
36201
  declaration: this.initialJSON?.declaration,
36036
36202
  elements: [
@@ -36084,7 +36250,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
36084
36250
  }
36085
36251
  this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
36086
36252
  if (params2.relationships.length) {
36087
- const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
36253
+ const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
36088
36254
  this.convertedXml[`word/_rels/${fileName}.rels`] = {
36089
36255
  declaration: this.initialJSON?.declaration,
36090
36256
  elements: [
@@ -36103,7 +36269,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
36103
36269
  };
36104
36270
  exportProcessNewRelationships_fn = function(rels = []) {
36105
36271
  const relsData = this.convertedXml["word/_rels/document.xml.rels"];
36106
- const relationships = relsData.elements.find((x) => x.name === "Relationships");
36272
+ const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
36107
36273
  relationships.elements = mergeRelationshipElements(relationships.elements, rels);
36108
36274
  };
36109
36275
  exportProcessMediaFiles_fn = async function(media = {}) {
@@ -36188,37 +36354,37 @@ function requireJszip_min() {
36188
36354
  module2.exports = e();
36189
36355
  })(function() {
36190
36356
  return (function s2(a, o, h2) {
36191
- function u(r2, e2) {
36357
+ function u3(r2, e2) {
36192
36358
  if (!o[r2]) {
36193
36359
  if (!a[r2]) {
36194
36360
  var t = "function" == typeof commonjsRequire && commonjsRequire;
36195
36361
  if (!e2 && t) return t(r2, true);
36196
- if (l3) return l3(r2, true);
36362
+ if (l) return l(r2, true);
36197
36363
  var n = new Error("Cannot find module '" + r2 + "'");
36198
36364
  throw n.code = "MODULE_NOT_FOUND", n;
36199
36365
  }
36200
36366
  var i = o[r2] = { exports: {} };
36201
36367
  a[r2][0].call(i.exports, function(e3) {
36202
36368
  var t2 = a[r2][1][e3];
36203
- return u(t2 || e3);
36369
+ return u3(t2 || e3);
36204
36370
  }, i, i.exports, s2, a, o, h2);
36205
36371
  }
36206
36372
  return o[r2].exports;
36207
36373
  }
36208
- for (var l3 = "function" == typeof commonjsRequire && commonjsRequire, e = 0; e < h2.length; e++) u(h2[e]);
36209
- return u;
36374
+ for (var l = "function" == typeof commonjsRequire && commonjsRequire, e = 0; e < h2.length; e++) u3(h2[e]);
36375
+ return u3;
36210
36376
  })({ 1: [function(e, t, r2) {
36211
36377
  var d2 = e("./utils"), c2 = e("./support"), p = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
36212
36378
  r2.encode = function(e2) {
36213
- for (var t2, r22, n, i, s2, a, o, h2 = [], u = 0, l3 = e2.length, f2 = l3, c22 = "string" !== d2.getTypeOf(e2); u < e2.length; ) f2 = l3 - u, n = c22 ? (t2 = e2[u++], r22 = u < l3 ? e2[u++] : 0, u < l3 ? e2[u++] : 0) : (t2 = e2.charCodeAt(u++), r22 = u < l3 ? e2.charCodeAt(u++) : 0, u < l3 ? e2.charCodeAt(u++) : 0), i = t2 >> 2, s2 = (3 & t2) << 4 | r22 >> 4, a = 1 < f2 ? (15 & r22) << 2 | n >> 6 : 64, o = 2 < f2 ? 63 & n : 64, h2.push(p.charAt(i) + p.charAt(s2) + p.charAt(a) + p.charAt(o));
36379
+ for (var t2, r22, n, i, s2, a, o, h2 = [], u3 = 0, l = e2.length, f2 = l, c22 = "string" !== d2.getTypeOf(e2); u3 < e2.length; ) f2 = l - u3, n = c22 ? (t2 = e2[u3++], r22 = u3 < l ? e2[u3++] : 0, u3 < l ? e2[u3++] : 0) : (t2 = e2.charCodeAt(u3++), r22 = u3 < l ? e2.charCodeAt(u3++) : 0, u3 < l ? e2.charCodeAt(u3++) : 0), i = t2 >> 2, s2 = (3 & t2) << 4 | r22 >> 4, a = 1 < f2 ? (15 & r22) << 2 | n >> 6 : 64, o = 2 < f2 ? 63 & n : 64, h2.push(p.charAt(i) + p.charAt(s2) + p.charAt(a) + p.charAt(o));
36214
36380
  return h2.join("");
36215
36381
  }, r2.decode = function(e2) {
36216
- var t2, r22, n, i, s2, a, o = 0, h2 = 0, u = "data:";
36217
- if (e2.substr(0, u.length) === u) throw new Error("Invalid base64 input, it looks like a data url.");
36218
- var l3, f2 = 3 * (e2 = e2.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
36382
+ var t2, r22, n, i, s2, a, o = 0, h2 = 0, u3 = "data:";
36383
+ if (e2.substr(0, u3.length) === u3) throw new Error("Invalid base64 input, it looks like a data url.");
36384
+ var l, f2 = 3 * (e2 = e2.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
36219
36385
  if (e2.charAt(e2.length - 1) === p.charAt(64) && f2--, e2.charAt(e2.length - 2) === p.charAt(64) && f2--, f2 % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
36220
- for (l3 = c2.uint8array ? new Uint8Array(0 | f2) : new Array(0 | f2); o < e2.length; ) t2 = p.indexOf(e2.charAt(o++)) << 2 | (i = p.indexOf(e2.charAt(o++))) >> 4, r22 = (15 & i) << 4 | (s2 = p.indexOf(e2.charAt(o++))) >> 2, n = (3 & s2) << 6 | (a = p.indexOf(e2.charAt(o++))), l3[h2++] = t2, 64 !== s2 && (l3[h2++] = r22), 64 !== a && (l3[h2++] = n);
36221
- return l3;
36386
+ for (l = c2.uint8array ? new Uint8Array(0 | f2) : new Array(0 | f2); o < e2.length; ) t2 = p.indexOf(e2.charAt(o++)) << 2 | (i = p.indexOf(e2.charAt(o++))) >> 4, r22 = (15 & i) << 4 | (s2 = p.indexOf(e2.charAt(o++))) >> 2, n = (3 & s2) << 6 | (a = p.indexOf(e2.charAt(o++))), l[h2++] = t2, 64 !== s2 && (l[h2++] = r22), 64 !== a && (l[h2++] = n);
36387
+ return l;
36222
36388
  };
36223
36389
  }, { "./support": 30, "./utils": 32 }], 2: [function(e, t, r2) {
36224
36390
  var n = e("./external"), i = e("./stream/DataWorker"), s2 = e("./stream/Crc32Probe"), a = e("./stream/DataLengthProbe");
@@ -36299,10 +36465,10 @@ function requireJszip_min() {
36299
36465
  return n2;
36300
36466
  }
36301
36467
  function n(e2, t2, r22, n2, i2, s22) {
36302
- var a, o, h2 = e2.file, u = e2.compression, l3 = s22 !== O2.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O2.utf8encode(h2.name)), d2 = h2.comment, p = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O2.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
36303
- t2 && !r22 || (x.crc32 = e2.crc32, x.compressedSize = e2.compressedSize, x.uncompressedSize = e2.uncompressedSize);
36468
+ var a, o, h2 = e2.file, u3 = e2.compression, l = s22 !== O.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O.utf8encode(h2.name)), d2 = h2.comment, p = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x2 = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
36469
+ t2 && !r22 || (x2.crc32 = e2.crc32, x2.compressedSize = e2.compressedSize, x2.uncompressedSize = e2.uncompressedSize);
36304
36470
  var S2 = 0;
36305
- t2 && (S2 |= 8), l3 || !_2 && !g || (S2 |= 2048);
36471
+ t2 && (S2 |= 8), l || !_2 && !g || (S2 |= 2048);
36306
36472
  var z2 = 0, C2 = 0;
36307
36473
  w2 && (z2 |= 16), "UNIX" === i2 ? (C2 = 798, z2 |= (function(e3, t3) {
36308
36474
  var r3 = e3;
@@ -36311,9 +36477,9 @@ function requireJszip_min() {
36311
36477
  return 63 & (e3 || 0);
36312
36478
  })(h2.dosPermissions)), a = k2.getUTCHours(), a <<= 6, a |= k2.getUTCMinutes(), a <<= 5, a |= k2.getUTCSeconds() / 2, o = k2.getUTCFullYear() - 1980, o <<= 4, o |= k2.getUTCMonth() + 1, o <<= 5, o |= k2.getUTCDate(), _2 && (v2 = A2(1, 1) + A2(B2(f2), 4) + c2, b2 += "up" + A2(v2.length, 2) + v2), g && (y2 = A2(1, 1) + A2(B2(p), 4) + m2, b2 += "uc" + A2(y2.length, 2) + y2);
36313
36479
  var E2 = "";
36314
- return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a, 2), E2 += A2(o, 2), E2 += A2(x.crc32, 4), E2 += A2(x.compressedSize, 4), E2 += A2(x.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R2.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R2.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p };
36480
+ return E2 += "\n\0", E2 += A2(S2, 2), E2 += u3.magic, E2 += A2(a, 2), E2 += A2(o, 2), E2 += A2(x2.crc32, 4), E2 += A2(x2.compressedSize, 4), E2 += A2(x2.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p };
36315
36481
  }
36316
- var I2 = e("../utils"), i = e("../stream/GenericWorker"), O2 = e("../utf8"), B2 = e("../crc32"), R2 = e("../signature");
36482
+ var I2 = e("../utils"), i = e("../stream/GenericWorker"), O = e("../utf8"), B2 = e("../crc32"), R = e("../signature");
36317
36483
  function s2(e2, t2, r22, n2) {
36318
36484
  i.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = t2, this.zipPlatform = r22, this.encodeFileName = n2, this.streamFiles = e2, this.accumulate = false, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
36319
36485
  }
@@ -36331,7 +36497,7 @@ function requireJszip_min() {
36331
36497
  this.accumulate = false;
36332
36498
  var t2 = this.streamFiles && !e2.file.dir, r22 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
36333
36499
  if (this.dirRecords.push(r22.dirRecord), t2) this.push({ data: (function(e3) {
36334
- return R2.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
36500
+ return R.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
36335
36501
  })(e2), meta: { percent: 100 } });
36336
36502
  else for (this.push({ data: r22.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
36337
36503
  this.currentFile = null;
@@ -36339,7 +36505,7 @@ function requireJszip_min() {
36339
36505
  for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });
36340
36506
  var r22 = this.bytesWritten - e2, n2 = (function(e3, t3, r3, n3, i2) {
36341
36507
  var s22 = I2.transformTo("string", i2(n3));
36342
- 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;
36508
+ 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;
36343
36509
  })(this.dirRecords.length, r22, e2, this.zipComment, this.encodeFileName);
36344
36510
  this.push({ data: n2, meta: { percent: 100 } });
36345
36511
  }, s2.prototype.prepareNextSource = function() {
@@ -36369,14 +36535,14 @@ function requireJszip_min() {
36369
36535
  for (var e2 = this._sources, t2 = 0; t2 < e2.length; t2++) e2[t2].lock();
36370
36536
  }, t.exports = s2;
36371
36537
  }, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e, t, r2) {
36372
- var u = e("../compressions"), n = e("./ZipFileWorker");
36538
+ var u3 = e("../compressions"), n = e("./ZipFileWorker");
36373
36539
  r2.generateWorker = function(e2, a, t2) {
36374
36540
  var o = new n(a.streamFiles, t2, a.platform, a.encodeFileName), h2 = 0;
36375
36541
  try {
36376
36542
  e2.forEach(function(e3, t3) {
36377
36543
  h2++;
36378
36544
  var r22 = (function(e4, t4) {
36379
- var r3 = e4 || t4, n3 = u[r3];
36545
+ var r3 = e4 || t4, n3 = u3[r3];
36380
36546
  if (!n3) throw new Error(r3 + " is not a valid compression method !");
36381
36547
  return n3;
36382
36548
  })(t3.options.compression, a.compression), n2 = t3.options.compressionOptions || a.compressionOptions || {}, i = t3.dir, s2 = t3.date;
@@ -36401,7 +36567,7 @@ function requireJszip_min() {
36401
36567
  return new n().loadAsync(e2, t2);
36402
36568
  }, n.external = e("./external"), t.exports = n;
36403
36569
  }, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(e, t, r2) {
36404
- var u = e("./utils"), i = e("./external"), n = e("./utf8"), s2 = e("./zipEntries"), a = e("./stream/Crc32Probe"), l3 = e("./nodejsUtils");
36570
+ var u3 = e("./utils"), i = e("./external"), n = e("./utf8"), s2 = e("./zipEntries"), a = e("./stream/Crc32Probe"), l = e("./nodejsUtils");
36405
36571
  function f2(n2) {
36406
36572
  return new i.Promise(function(e2, t2) {
36407
36573
  var r22 = n2.decompressed.getContentWorker().pipe(new a());
@@ -36414,7 +36580,7 @@ function requireJszip_min() {
36414
36580
  }
36415
36581
  t.exports = function(e2, o) {
36416
36582
  var h2 = this;
36417
- return o = u.extend(o || {}, { base64: false, checkCRC32: false, optimizedBinaryString: false, createFolders: false, decodeFileName: n.utf8decode }), l3.isNode && l3.isStream(e2) ? i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u.prepareContent("the loaded zip file", e2, true, o.optimizedBinaryString, o.base64).then(function(e3) {
36583
+ return o = u3.extend(o || {}, { base64: false, checkCRC32: false, optimizedBinaryString: false, createFolders: false, decodeFileName: n.utf8decode }), l.isNode && l.isStream(e2) ? i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u3.prepareContent("the loaded zip file", e2, true, o.optimizedBinaryString, o.base64).then(function(e3) {
36418
36584
  var t2 = new s2(o);
36419
36585
  return t2.load(e3), t2;
36420
36586
  }).then(function(e3) {
@@ -36423,7 +36589,7 @@ function requireJszip_min() {
36423
36589
  return i.Promise.all(t2);
36424
36590
  }).then(function(e3) {
36425
36591
  for (var t2 = e3.shift(), r22 = t2.files, n2 = 0; n2 < r22.length; n2++) {
36426
- var i2 = r22[n2], s22 = i2.fileNameStr, a2 = u.resolve(i2.fileNameStr);
36592
+ var i2 = r22[n2], s22 = i2.fileNameStr, a2 = u3.resolve(i2.fileNameStr);
36427
36593
  h2.file(a2, i2.decompressed, { binary: true, optimizedBinaryString: true, date: i2.date, dir: i2.dir, comment: i2.fileCommentStr.length ? i2.fileCommentStr : null, unixPermissions: i2.unixPermissions, dosPermissions: i2.dosPermissions, createFolders: o.createFolders }), i2.dir || (h2.file(a2).unsafeOriginalName = s22);
36428
36594
  }
36429
36595
  return t2.zipComment.length && (h2.comment = t2.zipComment), h2;
@@ -36480,16 +36646,16 @@ function requireJszip_min() {
36480
36646
  } };
36481
36647
  }, {}], 15: [function(e, t, r2) {
36482
36648
  function s2(e2, t2, r22) {
36483
- var n2, i2 = u.getTypeOf(t2), s22 = u.extend(r22 || {}, f2);
36649
+ var n2, i2 = u3.getTypeOf(t2), s22 = u3.extend(r22 || {}, f2);
36484
36650
  s22.date = s22.date || /* @__PURE__ */ new Date(), null !== s22.compression && (s22.compression = s22.compression.toUpperCase()), "string" == typeof s22.unixPermissions && (s22.unixPermissions = parseInt(s22.unixPermissions, 8)), s22.unixPermissions && 16384 & s22.unixPermissions && (s22.dir = true), s22.dosPermissions && 16 & s22.dosPermissions && (s22.dir = true), s22.dir && (e2 = g(e2)), s22.createFolders && (n2 = _2(e2)) && b2.call(this, n2, true);
36485
36651
  var a2 = "string" === i2 && false === s22.binary && false === s22.base64;
36486
36652
  r22 && void 0 !== r22.binary || (s22.binary = !a2), (t2 instanceof c2 && 0 === t2.uncompressedSize || s22.dir || !t2 || 0 === t2.length) && (s22.base64 = false, s22.binary = true, t2 = "", s22.compression = "STORE", i2 = "string");
36487
36653
  var o2 = null;
36488
- o2 = t2 instanceof c2 || t2 instanceof l3 ? t2 : p.isNode && p.isStream(t2) ? new m2(e2, t2) : u.prepareContent(e2, t2, s22.binary, s22.optimizedBinaryString, s22.base64);
36654
+ o2 = t2 instanceof c2 || t2 instanceof l ? t2 : p.isNode && p.isStream(t2) ? new m2(e2, t2) : u3.prepareContent(e2, t2, s22.binary, s22.optimizedBinaryString, s22.base64);
36489
36655
  var h22 = new d2(e2, o2, s22);
36490
36656
  this.files[e2] = h22;
36491
36657
  }
36492
- var i = e("./utf8"), u = e("./utils"), l3 = e("./stream/GenericWorker"), a = e("./stream/StreamHelper"), f2 = e("./defaults"), c2 = e("./compressedObject"), d2 = e("./zipObject"), o = e("./generate"), p = e("./nodejsUtils"), m2 = e("./nodejs/NodejsStreamInputAdapter"), _2 = function(e2) {
36658
+ var i = e("./utf8"), u3 = e("./utils"), l = e("./stream/GenericWorker"), a = e("./stream/StreamHelper"), f2 = e("./defaults"), c2 = e("./compressedObject"), d2 = e("./zipObject"), o = e("./generate"), p = e("./nodejsUtils"), m2 = e("./nodejs/NodejsStreamInputAdapter"), _2 = function(e2) {
36493
36659
  "/" === e2.slice(-1) && (e2 = e2.substring(0, e2.length - 1));
36494
36660
  var t2 = e2.lastIndexOf("/");
36495
36661
  return 0 < t2 ? e2.substring(0, t2) : "";
@@ -36541,12 +36707,12 @@ function requireJszip_min() {
36541
36707
  }, generateInternalStream: function(e2) {
36542
36708
  var t2, r22 = {};
36543
36709
  try {
36544
- if ((r22 = u.extend(e2 || {}, { streamFiles: false, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: i.utf8encode })).type = r22.type.toLowerCase(), r22.compression = r22.compression.toUpperCase(), "binarystring" === r22.type && (r22.type = "string"), !r22.type) throw new Error("No output type specified.");
36545
- u.checkSupport(r22.type), "darwin" !== r22.platform && "freebsd" !== r22.platform && "linux" !== r22.platform && "sunos" !== r22.platform || (r22.platform = "UNIX"), "win32" === r22.platform && (r22.platform = "DOS");
36710
+ if ((r22 = u3.extend(e2 || {}, { streamFiles: false, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: i.utf8encode })).type = r22.type.toLowerCase(), r22.compression = r22.compression.toUpperCase(), "binarystring" === r22.type && (r22.type = "string"), !r22.type) throw new Error("No output type specified.");
36711
+ u3.checkSupport(r22.type), "darwin" !== r22.platform && "freebsd" !== r22.platform && "linux" !== r22.platform && "sunos" !== r22.platform || (r22.platform = "UNIX"), "win32" === r22.platform && (r22.platform = "DOS");
36546
36712
  var n2 = r22.comment || this.comment || "";
36547
36713
  t2 = o.generateWorker(this, r22, n2);
36548
36714
  } catch (e3) {
36549
- (t2 = new l3("error")).error(e3);
36715
+ (t2 = new l("error")).error(e3);
36550
36716
  }
36551
36717
  return new a(t2, r22.type || "string", r22.mimeType);
36552
36718
  }, generateAsync: function(e2, t2) {
@@ -36766,12 +36932,12 @@ function requireJszip_min() {
36766
36932
  return this.previous ? this.previous + " -> " + e2 : e2;
36767
36933
  } }, t.exports = n;
36768
36934
  }, {}], 29: [function(e, t, r2) {
36769
- var h2 = e("../utils"), i = e("./ConvertWorker"), s2 = e("./GenericWorker"), u = e("../base64"), n = e("../support"), a = e("../external"), o = null;
36935
+ var h2 = e("../utils"), i = e("./ConvertWorker"), s2 = e("./GenericWorker"), u3 = e("../base64"), n = e("../support"), a = e("../external"), o = null;
36770
36936
  if (n.nodestream) try {
36771
36937
  o = e("../nodejs/NodejsStreamOutputAdapter");
36772
36938
  } catch (e2) {
36773
36939
  }
36774
- function l3(e2, o2) {
36940
+ function l(e2, o2) {
36775
36941
  return new a.Promise(function(t2, r22) {
36776
36942
  var n2 = [], i2 = e2._internalType, s22 = e2._outputType, a2 = e2._mimeType;
36777
36943
  e2.on("data", function(e3, t3) {
@@ -36785,7 +36951,7 @@ function requireJszip_min() {
36785
36951
  case "blob":
36786
36952
  return h2.newBlob(h2.transformTo("arraybuffer", t3), r3);
36787
36953
  case "base64":
36788
- return u.encode(t3);
36954
+ return u3.encode(t3);
36789
36955
  default:
36790
36956
  return h2.transformTo(e4, t3);
36791
36957
  }
@@ -36831,7 +36997,7 @@ function requireJszip_min() {
36831
36997
  }
36832
36998
  }
36833
36999
  f2.prototype = { accumulate: function(e2) {
36834
- return l3(this, e2);
37000
+ return l(this, e2);
36835
37001
  }, on: function(e2, t2) {
36836
37002
  var r22 = this;
36837
37003
  return "data" === e2 ? this._worker.on(e2, function(e3) {
@@ -36868,12 +37034,12 @@ function requireJszip_min() {
36868
37034
  r2.nodestream = false;
36869
37035
  }
36870
37036
  }, { "readable-stream": 16 }], 31: [function(e, t, s2) {
36871
- for (var o = e("./utils"), h2 = e("./support"), r2 = e("./nodejsUtils"), n = e("./stream/GenericWorker"), u = new Array(256), i = 0; i < 256; i++) u[i] = 252 <= i ? 6 : 248 <= i ? 5 : 240 <= i ? 4 : 224 <= i ? 3 : 192 <= i ? 2 : 1;
36872
- u[254] = u[254] = 1;
37037
+ for (var o = e("./utils"), h2 = e("./support"), r2 = e("./nodejsUtils"), n = e("./stream/GenericWorker"), u3 = new Array(256), i = 0; i < 256; i++) u3[i] = 252 <= i ? 6 : 248 <= i ? 5 : 240 <= i ? 4 : 224 <= i ? 3 : 192 <= i ? 2 : 1;
37038
+ u3[254] = u3[254] = 1;
36873
37039
  function a() {
36874
37040
  n.call(this, "utf-8 decode"), this.leftOver = null;
36875
37041
  }
36876
- function l3() {
37042
+ function l() {
36877
37043
  n.call(this, "utf-8 encode");
36878
37044
  }
36879
37045
  s2.utf8encode = function(e2) {
@@ -36887,7 +37053,7 @@ function requireJszip_min() {
36887
37053
  return h2.nodebuffer ? o.transformTo("nodebuffer", e2).toString("utf-8") : (function(e3) {
36888
37054
  var t2, r22, n2, i2, s22 = e3.length, a2 = new Array(2 * s22);
36889
37055
  for (t2 = r22 = 0; t2 < s22; ) if ((n2 = e3[t2++]) < 128) a2[r22++] = n2;
36890
- else if (4 < (i2 = u[n2])) a2[r22++] = 65533, t2 += i2 - 1;
37056
+ else if (4 < (i2 = u3[n2])) a2[r22++] = 65533, t2 += i2 - 1;
36891
37057
  else {
36892
37058
  for (n2 &= 2 === i2 ? 31 : 3 === i2 ? 15 : 7; 1 < i2 && t2 < s22; ) n2 = n2 << 6 | 63 & e3[t2++], i2--;
36893
37059
  1 < i2 ? a2[r22++] = 65533 : n2 < 65536 ? a2[r22++] = n2 : (n2 -= 65536, a2[r22++] = 55296 | n2 >> 10 & 1023, a2[r22++] = 56320 | 1023 & n2);
@@ -36906,20 +37072,20 @@ function requireJszip_min() {
36906
37072
  var n2 = (function(e3, t3) {
36907
37073
  var r3;
36908
37074
  for ((t3 = t3 || e3.length) > e3.length && (t3 = e3.length), r3 = t3 - 1; 0 <= r3 && 128 == (192 & e3[r3]); ) r3--;
36909
- return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 + u[e3[r3]] > t3 ? r3 : t3;
37075
+ return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 + u3[e3[r3]] > t3 ? r3 : t3;
36910
37076
  })(t2), i2 = t2;
36911
37077
  n2 !== t2.length && (h2.uint8array ? (i2 = t2.subarray(0, n2), this.leftOver = t2.subarray(n2, t2.length)) : (i2 = t2.slice(0, n2), this.leftOver = t2.slice(n2, t2.length))), this.push({ data: s2.utf8decode(i2), meta: e2.meta });
36912
37078
  }, a.prototype.flush = function() {
36913
37079
  this.leftOver && this.leftOver.length && (this.push({ data: s2.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
36914
- }, s2.Utf8DecodeWorker = a, o.inherits(l3, n), l3.prototype.processChunk = function(e2) {
37080
+ }, s2.Utf8DecodeWorker = a, o.inherits(l, n), l.prototype.processChunk = function(e2) {
36915
37081
  this.push({ data: s2.utf8encode(e2.data), meta: e2.meta });
36916
- }, s2.Utf8EncodeWorker = l3;
37082
+ }, s2.Utf8EncodeWorker = l;
36917
37083
  }, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e, t, a) {
36918
- var o = e("./support"), h2 = e("./base64"), r2 = e("./nodejsUtils"), u = e("./external");
37084
+ var o = e("./support"), h2 = e("./base64"), r2 = e("./nodejsUtils"), u3 = e("./external");
36919
37085
  function n(e2) {
36920
37086
  return e2;
36921
37087
  }
36922
- function l3(e2, t2) {
37088
+ function l(e2, t2) {
36923
37089
  for (var r22 = 0; r22 < e2.length; ++r22) t2[r22] = 255 & e2.charCodeAt(r22);
36924
37090
  return t2;
36925
37091
  }
@@ -36973,13 +37139,13 @@ function requireJszip_min() {
36973
37139
  a.applyFromCharCode = s2;
36974
37140
  var c2 = {};
36975
37141
  c2.string = { string: n, array: function(e2) {
36976
- return l3(e2, new Array(e2.length));
37142
+ return l(e2, new Array(e2.length));
36977
37143
  }, arraybuffer: function(e2) {
36978
37144
  return c2.string.uint8array(e2).buffer;
36979
37145
  }, uint8array: function(e2) {
36980
- return l3(e2, new Uint8Array(e2.length));
37146
+ return l(e2, new Uint8Array(e2.length));
36981
37147
  }, nodebuffer: function(e2) {
36982
- return l3(e2, r2.allocBuffer(e2.length));
37148
+ return l(e2, r2.allocBuffer(e2.length));
36983
37149
  } }, c2.array = { string: s2, array: n, arraybuffer: function(e2) {
36984
37150
  return new Uint8Array(e2).buffer;
36985
37151
  }, uint8array: function(e2) {
@@ -37038,8 +37204,8 @@ function requireJszip_min() {
37038
37204
  for (e2 = 0; e2 < arguments.length; e2++) for (t2 in arguments[e2]) Object.prototype.hasOwnProperty.call(arguments[e2], t2) && void 0 === r22[t2] && (r22[t2] = arguments[e2][t2]);
37039
37205
  return r22;
37040
37206
  }, a.prepareContent = function(r22, e2, n2, i2, s22) {
37041
- return u.Promise.resolve(e2).then(function(n3) {
37042
- return o.blob && (n3 instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n3))) && "undefined" != typeof FileReader ? new u.Promise(function(t2, r3) {
37207
+ return u3.Promise.resolve(e2).then(function(n3) {
37208
+ return o.blob && (n3 instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n3))) && "undefined" != typeof FileReader ? new u3.Promise(function(t2, r3) {
37043
37209
  var e3 = new FileReader();
37044
37210
  e3.onload = function(e4) {
37045
37211
  t2(e4.target.result);
@@ -37050,8 +37216,8 @@ function requireJszip_min() {
37050
37216
  }).then(function(e3) {
37051
37217
  var t2 = a.getTypeOf(e3);
37052
37218
  return t2 ? ("arraybuffer" === t2 ? e3 = a.transformTo("uint8array", e3) : "string" === t2 && (s22 ? e3 = h2.decode(e3) : n2 && true !== i2 && (e3 = (function(e4) {
37053
- return l3(e4, o.uint8array ? new Uint8Array(e4.length) : new Array(e4.length));
37054
- })(e3))), e3) : u.Promise.reject(new Error("Can't read the data of '" + r22 + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
37219
+ return l(e4, o.uint8array ? new Uint8Array(e4.length) : new Array(e4.length));
37220
+ })(e3))), e3) : u3.Promise.reject(new Error("Can't read the data of '" + r22 + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
37055
37221
  });
37056
37222
  };
37057
37223
  }, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e, t, r2) {
@@ -37107,11 +37273,11 @@ function requireJszip_min() {
37107
37273
  this.prepareReader(e2), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
37108
37274
  } }, t.exports = h2;
37109
37275
  }, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e, t, r2) {
37110
- var n = e("./reader/readerFor"), s2 = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h2 = e("./compressions"), u = e("./support");
37111
- function l3(e2, t2) {
37276
+ var n = e("./reader/readerFor"), s2 = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h2 = e("./compressions"), u3 = e("./support");
37277
+ function l(e2, t2) {
37112
37278
  this.options = e2, this.loadOptions = t2;
37113
37279
  }
37114
- l3.prototype = { isEncrypted: function() {
37280
+ l.prototype = { isEncrypted: function() {
37115
37281
  return 1 == (1 & this.bitFlag);
37116
37282
  }, useUTF8: function() {
37117
37283
  return 2048 == (2048 & this.bitFlag);
@@ -37142,7 +37308,7 @@ function requireJszip_min() {
37142
37308
  for (this.extraFields || (this.extraFields = {}); e2.index + 4 < i2; ) t2 = e2.readInt(2), r22 = e2.readInt(2), n2 = e2.readData(r22), this.extraFields[t2] = { id: t2, length: r22, value: n2 };
37143
37309
  e2.setIndex(i2);
37144
37310
  }, handleUTF8: function() {
37145
- var e2 = u.uint8array ? "uint8array" : "array";
37311
+ var e2 = u3.uint8array ? "uint8array" : "array";
37146
37312
  if (this.useUTF8()) this.fileNameStr = o.utf8decode(this.fileName), this.fileCommentStr = o.utf8decode(this.fileComment);
37147
37313
  else {
37148
37314
  var t2 = this.findExtraFieldUnicodePath();
@@ -37172,7 +37338,7 @@ function requireJszip_min() {
37172
37338
  return 1 !== t2.readInt(1) ? null : a(this.fileComment) !== t2.readInt(4) ? null : o.utf8decode(t2.readData(e2.length - 5));
37173
37339
  }
37174
37340
  return null;
37175
- } }, t.exports = l3;
37341
+ } }, t.exports = l;
37176
37342
  }, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(e, t, r2) {
37177
37343
  function n(e2, t2, r22) {
37178
37344
  this.name = e2, this.dir = r22.dir, this.date = r22.date, this.comment = r22.comment, this.unixPermissions = r22.unixPermissions, this.dosPermissions = r22.dosPermissions, this._data = t2, this._dataBinary = r22.binary, this.options = { compression: r22.compression, compressionOptions: r22.compressionOptions };
@@ -37201,34 +37367,34 @@ function requireJszip_min() {
37201
37367
  }, _decompressWorker: function() {
37202
37368
  return this._data instanceof o ? this._data.getContentWorker() : this._data instanceof h2 ? this._data : new i(this._data);
37203
37369
  } };
37204
- for (var u = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], l3 = function() {
37370
+ for (var u3 = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], l = function() {
37205
37371
  throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
37206
- }, f2 = 0; f2 < u.length; f2++) n.prototype[u[f2]] = l3;
37372
+ }, f2 = 0; f2 < u3.length; f2++) n.prototype[u3[f2]] = l;
37207
37373
  t.exports = n;
37208
- }, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, l3, t) {
37374
+ }, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, l, t) {
37209
37375
  (function(t2) {
37210
37376
  var r2, n, e2 = t2.MutationObserver || t2.WebKitMutationObserver;
37211
37377
  if (e2) {
37212
- var i = 0, s2 = new e2(u), a = t2.document.createTextNode("");
37378
+ var i = 0, s2 = new e2(u3), a = t2.document.createTextNode("");
37213
37379
  s2.observe(a, { characterData: true }), r2 = function() {
37214
37380
  a.data = i = ++i % 2;
37215
37381
  };
37216
37382
  } else if (t2.setImmediate || void 0 === t2.MessageChannel) r2 = "document" in t2 && "onreadystatechange" in t2.document.createElement("script") ? function() {
37217
37383
  var e3 = t2.document.createElement("script");
37218
37384
  e3.onreadystatechange = function() {
37219
- u(), e3.onreadystatechange = null, e3.parentNode.removeChild(e3), e3 = null;
37385
+ u3(), e3.onreadystatechange = null, e3.parentNode.removeChild(e3), e3 = null;
37220
37386
  }, t2.document.documentElement.appendChild(e3);
37221
37387
  } : function() {
37222
- setTimeout(u, 0);
37388
+ setTimeout(u3, 0);
37223
37389
  };
37224
37390
  else {
37225
37391
  var o = new t2.MessageChannel();
37226
- o.port1.onmessage = u, r2 = function() {
37392
+ o.port1.onmessage = u3, r2 = function() {
37227
37393
  o.port2.postMessage(0);
37228
37394
  };
37229
37395
  }
37230
37396
  var h2 = [];
37231
- function u() {
37397
+ function u3() {
37232
37398
  var e3, t3;
37233
37399
  n = true;
37234
37400
  for (var r22 = h2.length; r22; ) {
@@ -37237,18 +37403,18 @@ function requireJszip_min() {
37237
37403
  }
37238
37404
  n = false;
37239
37405
  }
37240
- l3.exports = function(e3) {
37406
+ l.exports = function(e3) {
37241
37407
  1 !== h2.push(e3) || n || r2();
37242
37408
  };
37243
37409
  }).call(this, "undefined" != typeof commonjsGlobal ? commonjsGlobal : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {});
37244
37410
  }, {}], 37: [function(e, t, r2) {
37245
37411
  var i = e("immediate");
37246
- function u() {
37412
+ function u3() {
37247
37413
  }
37248
- var l3 = {}, s2 = ["REJECTED"], a = ["FULFILLED"], n = ["PENDING"];
37414
+ var l = {}, s2 = ["REJECTED"], a = ["FULFILLED"], n = ["PENDING"];
37249
37415
  function o(e2) {
37250
37416
  if ("function" != typeof e2) throw new TypeError("resolver must be a function");
37251
- this.state = n, this.queue = [], this.outcome = void 0, e2 !== u && d2(this, e2);
37417
+ this.state = n, this.queue = [], this.outcome = void 0, e2 !== u3 && d2(this, e2);
37252
37418
  }
37253
37419
  function h2(e2, t2, r22) {
37254
37420
  this.promise = e2, "function" == typeof t2 && (this.onFulfilled = t2, this.callFulfilled = this.otherCallFulfilled), "function" == typeof r22 && (this.onRejected = r22, this.callRejected = this.otherCallRejected);
@@ -37259,9 +37425,9 @@ function requireJszip_min() {
37259
37425
  try {
37260
37426
  e2 = r22(n2);
37261
37427
  } catch (e3) {
37262
- return l3.reject(t2, e3);
37428
+ return l.reject(t2, e3);
37263
37429
  }
37264
- e2 === t2 ? l3.reject(t2, new TypeError("Cannot resolve promise with itself")) : l3.resolve(t2, e2);
37430
+ e2 === t2 ? l.reject(t2, new TypeError("Cannot resolve promise with itself")) : l.resolve(t2, e2);
37265
37431
  });
37266
37432
  }
37267
37433
  function c2(e2) {
@@ -37273,10 +37439,10 @@ function requireJszip_min() {
37273
37439
  function d2(t2, e2) {
37274
37440
  var r22 = false;
37275
37441
  function n2(e3) {
37276
- r22 || (r22 = true, l3.reject(t2, e3));
37442
+ r22 || (r22 = true, l.reject(t2, e3));
37277
37443
  }
37278
37444
  function i2(e3) {
37279
- r22 || (r22 = true, l3.resolve(t2, e3));
37445
+ r22 || (r22 = true, l.resolve(t2, e3));
37280
37446
  }
37281
37447
  var s22 = p(function() {
37282
37448
  e2(i2, n2);
@@ -37308,20 +37474,20 @@ function requireJszip_min() {
37308
37474
  return this.then(null, e2);
37309
37475
  }, o.prototype.then = function(e2, t2) {
37310
37476
  if ("function" != typeof e2 && this.state === a || "function" != typeof t2 && this.state === s2) return this;
37311
- var r22 = new this.constructor(u);
37477
+ var r22 = new this.constructor(u3);
37312
37478
  this.state !== n ? f2(r22, this.state === a ? e2 : t2, this.outcome) : this.queue.push(new h2(r22, e2, t2));
37313
37479
  return r22;
37314
37480
  }, h2.prototype.callFulfilled = function(e2) {
37315
- l3.resolve(this.promise, e2);
37481
+ l.resolve(this.promise, e2);
37316
37482
  }, h2.prototype.otherCallFulfilled = function(e2) {
37317
37483
  f2(this.promise, this.onFulfilled, e2);
37318
37484
  }, h2.prototype.callRejected = function(e2) {
37319
- l3.reject(this.promise, e2);
37485
+ l.reject(this.promise, e2);
37320
37486
  }, h2.prototype.otherCallRejected = function(e2) {
37321
37487
  f2(this.promise, this.onRejected, e2);
37322
- }, l3.resolve = function(e2, t2) {
37488
+ }, l.resolve = function(e2, t2) {
37323
37489
  var r22 = p(c2, t2);
37324
- if ("error" === r22.status) return l3.reject(e2, r22.value);
37490
+ if ("error" === r22.status) return l.reject(e2, r22.value);
37325
37491
  var n2 = r22.value;
37326
37492
  if (n2) d2(e2, n2);
37327
37493
  else {
@@ -37329,29 +37495,29 @@ function requireJszip_min() {
37329
37495
  for (var i2 = -1, s22 = e2.queue.length; ++i2 < s22; ) e2.queue[i2].callFulfilled(t2);
37330
37496
  }
37331
37497
  return e2;
37332
- }, l3.reject = function(e2, t2) {
37498
+ }, l.reject = function(e2, t2) {
37333
37499
  e2.state = s2, e2.outcome = t2;
37334
37500
  for (var r22 = -1, n2 = e2.queue.length; ++r22 < n2; ) e2.queue[r22].callRejected(t2);
37335
37501
  return e2;
37336
37502
  }, o.resolve = function(e2) {
37337
37503
  if (e2 instanceof this) return e2;
37338
- return l3.resolve(new this(u), e2);
37504
+ return l.resolve(new this(u3), e2);
37339
37505
  }, o.reject = function(e2) {
37340
- var t2 = new this(u);
37341
- return l3.reject(t2, e2);
37506
+ var t2 = new this(u3);
37507
+ return l.reject(t2, e2);
37342
37508
  }, o.all = function(e2) {
37343
37509
  var r22 = this;
37344
37510
  if ("[object Array]" !== Object.prototype.toString.call(e2)) return this.reject(new TypeError("must be an array"));
37345
37511
  var n2 = e2.length, i2 = false;
37346
37512
  if (!n2) return this.resolve([]);
37347
- var s22 = new Array(n2), a2 = 0, t2 = -1, o2 = new this(u);
37513
+ var s22 = new Array(n2), a2 = 0, t2 = -1, o2 = new this(u3);
37348
37514
  for (; ++t2 < n2; ) h22(e2[t2], t2);
37349
37515
  return o2;
37350
37516
  function h22(e3, t3) {
37351
37517
  r22.resolve(e3).then(function(e4) {
37352
- s22[t3] = e4, ++a2 !== n2 || i2 || (i2 = true, l3.resolve(o2, s22));
37518
+ s22[t3] = e4, ++a2 !== n2 || i2 || (i2 = true, l.resolve(o2, s22));
37353
37519
  }, function(e4) {
37354
- i2 || (i2 = true, l3.reject(o2, e4));
37520
+ i2 || (i2 = true, l.reject(o2, e4));
37355
37521
  });
37356
37522
  }
37357
37523
  }, o.race = function(e2) {
@@ -37359,11 +37525,11 @@ function requireJszip_min() {
37359
37525
  if ("[object Array]" !== Object.prototype.toString.call(e2)) return this.reject(new TypeError("must be an array"));
37360
37526
  var r22 = e2.length, n2 = false;
37361
37527
  if (!r22) return this.resolve([]);
37362
- var i2 = -1, s22 = new this(u);
37528
+ var i2 = -1, s22 = new this(u3);
37363
37529
  for (; ++i2 < r22; ) a2 = e2[i2], t2.resolve(a2).then(function(e3) {
37364
- n2 || (n2 = true, l3.resolve(s22, e3));
37530
+ n2 || (n2 = true, l.resolve(s22, e3));
37365
37531
  }, function(e3) {
37366
- n2 || (n2 = true, l3.reject(s22, e3));
37532
+ n2 || (n2 = true, l.reject(s22, e3));
37367
37533
  });
37368
37534
  var a2;
37369
37535
  return s22;
@@ -37372,17 +37538,17 @@ function requireJszip_min() {
37372
37538
  var n = {};
37373
37539
  (0, e("./lib/utils/common").assign)(n, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), t.exports = n;
37374
37540
  }, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, t, r2) {
37375
- var a = e("./zlib/deflate"), o = e("./utils/common"), h2 = e("./utils/strings"), i = e("./zlib/messages"), s2 = e("./zlib/zstream"), u = Object.prototype.toString, l3 = 0, f2 = -1, c2 = 0, d2 = 8;
37541
+ var a = e("./zlib/deflate"), o = e("./utils/common"), h2 = e("./utils/strings"), i = e("./zlib/messages"), s2 = e("./zlib/zstream"), u3 = Object.prototype.toString, l = 0, f2 = -1, c2 = 0, d2 = 8;
37376
37542
  function p(e2) {
37377
37543
  if (!(this instanceof p)) return new p(e2);
37378
37544
  this.options = o.assign({ level: f2, method: d2, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: c2, to: "" }, e2 || {});
37379
37545
  var t2 = this.options;
37380
37546
  t2.raw && 0 < t2.windowBits ? t2.windowBits = -t2.windowBits : t2.gzip && 0 < t2.windowBits && t2.windowBits < 16 && (t2.windowBits += 16), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new s2(), this.strm.avail_out = 0;
37381
37547
  var r22 = a.deflateInit2(this.strm, t2.level, t2.method, t2.windowBits, t2.memLevel, t2.strategy);
37382
- if (r22 !== l3) throw new Error(i[r22]);
37548
+ if (r22 !== l) throw new Error(i[r22]);
37383
37549
  if (t2.header && a.deflateSetHeader(this.strm, t2.header), t2.dictionary) {
37384
37550
  var n2;
37385
- if (n2 = "string" == typeof t2.dictionary ? h2.string2buf(t2.dictionary) : "[object ArrayBuffer]" === u.call(t2.dictionary) ? new Uint8Array(t2.dictionary) : t2.dictionary, (r22 = a.deflateSetDictionary(this.strm, n2)) !== l3) throw new Error(i[r22]);
37551
+ if (n2 = "string" == typeof t2.dictionary ? h2.string2buf(t2.dictionary) : "[object ArrayBuffer]" === u3.call(t2.dictionary) ? new Uint8Array(t2.dictionary) : t2.dictionary, (r22 = a.deflateSetDictionary(this.strm, n2)) !== l) throw new Error(i[r22]);
37386
37552
  this._dict_set = true;
37387
37553
  }
37388
37554
  }
@@ -37394,16 +37560,16 @@ function requireJszip_min() {
37394
37560
  p.prototype.push = function(e2, t2) {
37395
37561
  var r22, n2, i2 = this.strm, s22 = this.options.chunkSize;
37396
37562
  if (this.ended) return false;
37397
- n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, "string" == typeof e2 ? i2.input = h2.string2buf(e2) : "[object ArrayBuffer]" === u.call(e2) ? i2.input = new Uint8Array(e2) : i2.input = e2, i2.next_in = 0, i2.avail_in = i2.input.length;
37563
+ n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, "string" == typeof e2 ? i2.input = h2.string2buf(e2) : "[object ArrayBuffer]" === u3.call(e2) ? i2.input = new Uint8Array(e2) : i2.input = e2, i2.next_in = 0, i2.avail_in = i2.input.length;
37398
37564
  do {
37399
- if (0 === i2.avail_out && (i2.output = new o.Buf8(s22), i2.next_out = 0, i2.avail_out = s22), 1 !== (r22 = a.deflate(i2, n2)) && r22 !== l3) return this.onEnd(r22), !(this.ended = true);
37565
+ if (0 === i2.avail_out && (i2.output = new o.Buf8(s22), i2.next_out = 0, i2.avail_out = s22), 1 !== (r22 = a.deflate(i2, n2)) && r22 !== l) return this.onEnd(r22), !(this.ended = true);
37400
37566
  0 !== i2.avail_out && (0 !== i2.avail_in || 4 !== n2 && 2 !== n2) || ("string" === this.options.to ? this.onData(h2.buf2binstring(o.shrinkBuf(i2.output, i2.next_out))) : this.onData(o.shrinkBuf(i2.output, i2.next_out)));
37401
37567
  } while ((0 < i2.avail_in || 0 === i2.avail_out) && 1 !== r22);
37402
- return 4 === n2 ? (r22 = a.deflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 === l3) : 2 !== n2 || (this.onEnd(l3), !(i2.avail_out = 0));
37568
+ return 4 === n2 ? (r22 = a.deflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 === l) : 2 !== n2 || (this.onEnd(l), !(i2.avail_out = 0));
37403
37569
  }, p.prototype.onData = function(e2) {
37404
37570
  this.chunks.push(e2);
37405
37571
  }, p.prototype.onEnd = function(e2) {
37406
- e2 === l3 && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = e2, this.msg = this.strm.msg;
37572
+ e2 === l && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = e2, this.msg = this.strm.msg;
37407
37573
  }, r2.Deflate = p, r2.deflate = n, r2.deflateRaw = function(e2, t2) {
37408
37574
  return (t2 = t2 || {}).raw = true, n(e2, t2);
37409
37575
  }, r2.gzip = function(e2, t2) {
@@ -37426,12 +37592,12 @@ function requireJszip_min() {
37426
37592
  return r22.result;
37427
37593
  }
37428
37594
  a.prototype.push = function(e2, t2) {
37429
- var r22, n2, i2, s22, a2, o2, h2 = this.strm, u = this.options.chunkSize, l3 = this.options.dictionary, f2 = false;
37595
+ var r22, n2, i2, s22, a2, o2, h2 = this.strm, u3 = this.options.chunkSize, l = this.options.dictionary, f2 = false;
37430
37596
  if (this.ended) return false;
37431
37597
  n2 = t2 === ~~t2 ? t2 : true === t2 ? m2.Z_FINISH : m2.Z_NO_FLUSH, "string" == typeof e2 ? h2.input = p.binstring2buf(e2) : "[object ArrayBuffer]" === _2.call(e2) ? h2.input = new Uint8Array(e2) : h2.input = e2, h2.next_in = 0, h2.avail_in = h2.input.length;
37432
37598
  do {
37433
- if (0 === h2.avail_out && (h2.output = new d2.Buf8(u), h2.next_out = 0, h2.avail_out = u), (r22 = c2.inflate(h2, m2.Z_NO_FLUSH)) === m2.Z_NEED_DICT && l3 && (o2 = "string" == typeof l3 ? p.string2buf(l3) : "[object ArrayBuffer]" === _2.call(l3) ? new Uint8Array(l3) : l3, r22 = c2.inflateSetDictionary(this.strm, o2)), r22 === m2.Z_BUF_ERROR && true === f2 && (r22 = m2.Z_OK, f2 = false), r22 !== m2.Z_STREAM_END && r22 !== m2.Z_OK) return this.onEnd(r22), !(this.ended = true);
37434
- h2.next_out && (0 !== h2.avail_out && r22 !== m2.Z_STREAM_END && (0 !== h2.avail_in || n2 !== m2.Z_FINISH && n2 !== m2.Z_SYNC_FLUSH) || ("string" === this.options.to ? (i2 = p.utf8border(h2.output, h2.next_out), s22 = h2.next_out - i2, a2 = p.buf2string(h2.output, i2), h2.next_out = s22, h2.avail_out = u - s22, s22 && d2.arraySet(h2.output, h2.output, i2, s22, 0), this.onData(a2)) : this.onData(d2.shrinkBuf(h2.output, h2.next_out)))), 0 === h2.avail_in && 0 === h2.avail_out && (f2 = true);
37599
+ if (0 === h2.avail_out && (h2.output = new d2.Buf8(u3), h2.next_out = 0, h2.avail_out = u3), (r22 = c2.inflate(h2, m2.Z_NO_FLUSH)) === m2.Z_NEED_DICT && l && (o2 = "string" == typeof l ? p.string2buf(l) : "[object ArrayBuffer]" === _2.call(l) ? new Uint8Array(l) : l, r22 = c2.inflateSetDictionary(this.strm, o2)), r22 === m2.Z_BUF_ERROR && true === f2 && (r22 = m2.Z_OK, f2 = false), r22 !== m2.Z_STREAM_END && r22 !== m2.Z_OK) return this.onEnd(r22), !(this.ended = true);
37600
+ h2.next_out && (0 !== h2.avail_out && r22 !== m2.Z_STREAM_END && (0 !== h2.avail_in || n2 !== m2.Z_FINISH && n2 !== m2.Z_SYNC_FLUSH) || ("string" === this.options.to ? (i2 = p.utf8border(h2.output, h2.next_out), s22 = h2.next_out - i2, a2 = p.buf2string(h2.output, i2), h2.next_out = s22, h2.avail_out = u3 - s22, s22 && d2.arraySet(h2.output, h2.output, i2, s22, 0), this.onData(a2)) : this.onData(d2.shrinkBuf(h2.output, h2.next_out)))), 0 === h2.avail_in && 0 === h2.avail_out && (f2 = true);
37435
37601
  } while ((0 < h2.avail_in || 0 === h2.avail_out) && r22 !== m2.Z_STREAM_END);
37436
37602
  return r22 === m2.Z_STREAM_END && (n2 = m2.Z_FINISH), n2 === m2.Z_FINISH ? (r22 = c2.inflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 === m2.Z_OK) : n2 !== m2.Z_SYNC_FLUSH || (this.onEnd(m2.Z_OK), !(h2.avail_out = 0));
37437
37603
  }, a.prototype.onData = function(e2) {
@@ -37483,35 +37649,35 @@ function requireJszip_min() {
37483
37649
  } catch (e2) {
37484
37650
  s2 = false;
37485
37651
  }
37486
- for (var u = new h2.Buf8(256), n = 0; n < 256; n++) u[n] = 252 <= n ? 6 : 248 <= n ? 5 : 240 <= n ? 4 : 224 <= n ? 3 : 192 <= n ? 2 : 1;
37487
- function l3(e2, t2) {
37652
+ for (var u3 = new h2.Buf8(256), n = 0; n < 256; n++) u3[n] = 252 <= n ? 6 : 248 <= n ? 5 : 240 <= n ? 4 : 224 <= n ? 3 : 192 <= n ? 2 : 1;
37653
+ function l(e2, t2) {
37488
37654
  if (t2 < 65537 && (e2.subarray && s2 || !e2.subarray && i)) return String.fromCharCode.apply(null, h2.shrinkBuf(e2, t2));
37489
37655
  for (var r22 = "", n2 = 0; n2 < t2; n2++) r22 += String.fromCharCode(e2[n2]);
37490
37656
  return r22;
37491
37657
  }
37492
- u[254] = u[254] = 1, r2.string2buf = function(e2) {
37658
+ u3[254] = u3[254] = 1, r2.string2buf = function(e2) {
37493
37659
  var t2, r22, n2, i2, s22, a = e2.length, o = 0;
37494
37660
  for (i2 = 0; i2 < a; i2++) 55296 == (64512 & (r22 = e2.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n2 = e2.charCodeAt(i2 + 1))) && (r22 = 65536 + (r22 - 55296 << 10) + (n2 - 56320), i2++), o += r22 < 128 ? 1 : r22 < 2048 ? 2 : r22 < 65536 ? 3 : 4;
37495
37661
  for (t2 = new h2.Buf8(o), i2 = s22 = 0; s22 < o; i2++) 55296 == (64512 & (r22 = e2.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n2 = e2.charCodeAt(i2 + 1))) && (r22 = 65536 + (r22 - 55296 << 10) + (n2 - 56320), i2++), r22 < 128 ? t2[s22++] = r22 : (r22 < 2048 ? t2[s22++] = 192 | r22 >>> 6 : (r22 < 65536 ? t2[s22++] = 224 | r22 >>> 12 : (t2[s22++] = 240 | r22 >>> 18, t2[s22++] = 128 | r22 >>> 12 & 63), t2[s22++] = 128 | r22 >>> 6 & 63), t2[s22++] = 128 | 63 & r22);
37496
37662
  return t2;
37497
37663
  }, r2.buf2binstring = function(e2) {
37498
- return l3(e2, e2.length);
37664
+ return l(e2, e2.length);
37499
37665
  }, r2.binstring2buf = function(e2) {
37500
37666
  for (var t2 = new h2.Buf8(e2.length), r22 = 0, n2 = t2.length; r22 < n2; r22++) t2[r22] = e2.charCodeAt(r22);
37501
37667
  return t2;
37502
37668
  }, r2.buf2string = function(e2, t2) {
37503
37669
  var r22, n2, i2, s22, a = t2 || e2.length, o = new Array(2 * a);
37504
37670
  for (r22 = n2 = 0; r22 < a; ) if ((i2 = e2[r22++]) < 128) o[n2++] = i2;
37505
- else if (4 < (s22 = u[i2])) o[n2++] = 65533, r22 += s22 - 1;
37671
+ else if (4 < (s22 = u3[i2])) o[n2++] = 65533, r22 += s22 - 1;
37506
37672
  else {
37507
37673
  for (i2 &= 2 === s22 ? 31 : 3 === s22 ? 15 : 7; 1 < s22 && r22 < a; ) i2 = i2 << 6 | 63 & e2[r22++], s22--;
37508
37674
  1 < s22 ? o[n2++] = 65533 : i2 < 65536 ? o[n2++] = i2 : (i2 -= 65536, o[n2++] = 55296 | i2 >> 10 & 1023, o[n2++] = 56320 | 1023 & i2);
37509
37675
  }
37510
- return l3(o, n2);
37676
+ return l(o, n2);
37511
37677
  }, r2.utf8border = function(e2, t2) {
37512
37678
  var r22;
37513
37679
  for ((t2 = t2 || e2.length) > e2.length && (t2 = e2.length), r22 = t2 - 1; 0 <= r22 && 128 == (192 & e2[r22]); ) r22--;
37514
- return r22 < 0 ? t2 : 0 === r22 ? t2 : r22 + u[e2[r22]] > t2 ? r22 : t2;
37680
+ return r22 < 0 ? t2 : 0 === r22 ? t2 : r22 + u3[e2[r22]] > t2 ? r22 : t2;
37515
37681
  };
37516
37682
  }, { "./common": 41 }], 43: [function(e, t, r2) {
37517
37683
  t.exports = function(e2, t2, r22, n) {
@@ -37539,11 +37705,11 @@ function requireJszip_min() {
37539
37705
  return -1 ^ e2;
37540
37706
  };
37541
37707
  }, {}], 46: [function(e, t, r2) {
37542
- var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p = e("./crc32"), n = e("./messages"), l3 = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i = 2, v2 = 8, y2 = 9, s2 = 286, a = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15, x = 3, S2 = 258, z2 = S2 + x + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O2 = 3, B2 = 4;
37543
- function R2(e2, t2) {
37708
+ var h2, c2 = e("../utils/common"), u3 = e("./trees"), d2 = e("./adler32"), p = e("./crc32"), n = e("./messages"), l = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i = 2, v2 = 8, y2 = 9, s2 = 286, a = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15, x2 = 3, S2 = 258, z2 = S2 + x2 + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O = 3, B2 = 4;
37709
+ function R(e2, t2) {
37544
37710
  return e2.msg = n[t2], t2;
37545
37711
  }
37546
- function T(e2) {
37712
+ function T2(e2) {
37547
37713
  return (e2 << 1) - (4 < e2 ? 9 : 0);
37548
37714
  }
37549
37715
  function D2(e2) {
@@ -37554,7 +37720,7 @@ function requireJszip_min() {
37554
37720
  r22 > e2.avail_out && (r22 = e2.avail_out), 0 !== r22 && (c2.arraySet(e2.output, t2.pending_buf, t2.pending_out, r22, e2.next_out), e2.next_out += r22, t2.pending_out += r22, e2.total_out += r22, e2.avail_out -= r22, t2.pending -= r22, 0 === t2.pending && (t2.pending_out = 0));
37555
37721
  }
37556
37722
  function N2(e2, t2) {
37557
- u._tr_flush_block(e2, 0 <= e2.block_start ? e2.block_start : -1, e2.strstart - e2.block_start, t2), e2.block_start = e2.strstart, F2(e2.strm);
37723
+ u3._tr_flush_block(e2, 0 <= e2.block_start ? e2.block_start : -1, e2.strstart - e2.block_start, t2), e2.block_start = e2.strstart, F2(e2.strm);
37558
37724
  }
37559
37725
  function U2(e2, t2) {
37560
37726
  e2.pending_buf[e2.pending++] = t2;
@@ -37563,23 +37729,23 @@ function requireJszip_min() {
37563
37729
  e2.pending_buf[e2.pending++] = t2 >>> 8 & 255, e2.pending_buf[e2.pending++] = 255 & t2;
37564
37730
  }
37565
37731
  function L2(e2, t2) {
37566
- var r22, n2, i2 = e2.max_chain_length, s22 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h22 = e2.strstart > e2.w_size - z2 ? e2.strstart - (e2.w_size - z2) : 0, u2 = e2.window, l22 = e2.w_mask, f22 = e2.prev, c22 = e2.strstart + S2, d22 = u2[s22 + a2 - 1], p2 = u2[s22 + a2];
37732
+ var r22, n2, i2 = e2.max_chain_length, s22 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h22 = e2.strstart > e2.w_size - z2 ? e2.strstart - (e2.w_size - z2) : 0, u22 = e2.window, l2 = e2.w_mask, f22 = e2.prev, c22 = e2.strstart + S2, d22 = u22[s22 + a2 - 1], p2 = u22[s22 + a2];
37567
37733
  e2.prev_length >= e2.good_match && (i2 >>= 2), o2 > e2.lookahead && (o2 = e2.lookahead);
37568
37734
  do {
37569
- if (u2[(r22 = t2) + a2] === p2 && u2[r22 + a2 - 1] === d22 && u2[r22] === u2[s22] && u2[++r22] === u2[s22 + 1]) {
37735
+ if (u22[(r22 = t2) + a2] === p2 && u22[r22 + a2 - 1] === d22 && u22[r22] === u22[s22] && u22[++r22] === u22[s22 + 1]) {
37570
37736
  s22 += 2, r22++;
37571
37737
  do {
37572
- } while (u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && s22 < c22);
37738
+ } while (u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && s22 < c22);
37573
37739
  if (n2 = S2 - (c22 - s22), s22 = c22 - S2, a2 < n2) {
37574
37740
  if (e2.match_start = t2, o2 <= (a2 = n2)) break;
37575
- d22 = u2[s22 + a2 - 1], p2 = u2[s22 + a2];
37741
+ d22 = u22[s22 + a2 - 1], p2 = u22[s22 + a2];
37576
37742
  }
37577
37743
  }
37578
- } while ((t2 = f22[t2 & l22]) > h22 && 0 != --i2);
37744
+ } while ((t2 = f22[t2 & l2]) > h22 && 0 != --i2);
37579
37745
  return a2 <= e2.lookahead ? a2 : e2.lookahead;
37580
37746
  }
37581
37747
  function j2(e2) {
37582
- var t2, r22, n2, i2, s22, a2, o2, h22, u2, l22, f22 = e2.w_size;
37748
+ var t2, r22, n2, i2, s22, a2, o2, h22, u22, l2, f22 = e2.w_size;
37583
37749
  do {
37584
37750
  if (i2 = e2.window_size - e2.lookahead - e2.strstart, e2.strstart >= f22 + (f22 - z2)) {
37585
37751
  for (c2.arraySet(e2.window, e2.window, f22, f22, 0), e2.match_start -= f22, e2.strstart -= f22, e2.block_start -= f22, t2 = r22 = e2.hash_size; n2 = e2.head[--t2], e2.head[t2] = f22 <= n2 ? n2 - f22 : 0, --r22; ) ;
@@ -37587,38 +37753,38 @@ function requireJszip_min() {
37587
37753
  i2 += f22;
37588
37754
  }
37589
37755
  if (0 === e2.strm.avail_in) break;
37590
- if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i2, l22 = void 0, l22 = a2.avail_in, u2 < l22 && (l22 = u2), r22 = 0 === l22 ? 0 : (a2.avail_in -= l22, c2.arraySet(o2, a2.input, a2.next_in, l22, h22), 1 === a2.state.wrap ? a2.adler = d2(a2.adler, o2, l22, h22) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l22, h22)), a2.next_in += l22, a2.total_in += l22, l22), e2.lookahead += r22, e2.lookahead + e2.insert >= x) for (s22 = e2.strstart - e2.insert, e2.ins_h = e2.window[s22], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + x - 1]) & e2.hash_mask, e2.prev[s22 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s22, s22++, e2.insert--, !(e2.lookahead + e2.insert < x)); ) ;
37756
+ if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u22 = i2, l2 = void 0, l2 = a2.avail_in, u22 < l2 && (l2 = u22), r22 = 0 === l2 ? 0 : (a2.avail_in -= l2, c2.arraySet(o2, a2.input, a2.next_in, l2, h22), 1 === a2.state.wrap ? a2.adler = d2(a2.adler, o2, l2, h22) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l2, h22)), a2.next_in += l2, a2.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)); ) ;
37591
37757
  } while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
37592
37758
  }
37593
37759
  function Z(e2, t2) {
37594
37760
  for (var r22, n2; ; ) {
37595
37761
  if (e2.lookahead < z2) {
37596
- if (j2(e2), e2.lookahead < z2 && t2 === l3) return A2;
37762
+ if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
37597
37763
  if (0 === e2.lookahead) break;
37598
37764
  }
37599
- 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) {
37600
- 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; ) ;
37765
+ 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 = u3._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) {
37766
+ 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; ) ;
37601
37767
  e2.strstart++;
37602
37768
  } 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;
37603
- else n2 = u._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
37769
+ else n2 = u3._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
37604
37770
  if (n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37605
37771
  }
37606
- 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;
37772
+ 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;
37607
37773
  }
37608
37774
  function W2(e2, t2) {
37609
37775
  for (var r22, n2, i2; ; ) {
37610
37776
  if (e2.lookahead < z2) {
37611
- if (j2(e2), e2.lookahead < z2 && t2 === l3) return A2;
37777
+ if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
37612
37778
  if (0 === e2.lookahead) break;
37613
37779
  }
37614
- 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) {
37615
- for (i2 = e2.strstart + e2.lookahead - x, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
37616
- if (e2.match_available = 0, e2.match_length = x - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37780
+ 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) {
37781
+ for (i2 = e2.strstart + e2.lookahead - x2, n2 = u3._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x2), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
37782
+ if (e2.match_available = 0, e2.match_length = x2 - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37617
37783
  } else if (e2.match_available) {
37618
- 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;
37784
+ if ((n2 = u3._tr_tally(e2, 0, e2.window[e2.strstart - 1])) && N2(e2, false), e2.strstart++, e2.lookahead--, 0 === e2.strm.avail_out) return A2;
37619
37785
  } else e2.match_available = 1, e2.strstart++, e2.lookahead--;
37620
37786
  }
37621
- 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;
37787
+ return e2.match_available && (n2 = u3._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;
37622
37788
  }
37623
37789
  function M2(e2, t2, r22, n2, i2) {
37624
37790
  this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i2;
@@ -37628,27 +37794,27 @@ function requireJszip_min() {
37628
37794
  }
37629
37795
  function G2(e2) {
37630
37796
  var t2;
37631
- return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l3, u._tr_init(t2), m2) : R2(e2, _2);
37797
+ return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l, u3._tr_init(t2), m2) : R(e2, _2);
37632
37798
  }
37633
37799
  function K2(e2) {
37634
37800
  var t2 = G2(e2);
37635
37801
  return t2 === m2 && (function(e3) {
37636
- 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;
37802
+ 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;
37637
37803
  })(e2.state), t2;
37638
37804
  }
37639
37805
  function Y2(e2, t2, r22, n2, i2, s22) {
37640
37806
  if (!e2) return _2;
37641
37807
  var a2 = 1;
37642
- if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R2(e2, _2);
37808
+ if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R(e2, _2);
37643
37809
  8 === n2 && (n2 = 9);
37644
37810
  var o2 = new H();
37645
- return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x - 1) / x), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c2.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s22, o2.method = r22, K2(e2);
37811
+ return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x2 - 1) / x2), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c2.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s22, o2.method = r22, K2(e2);
37646
37812
  }
37647
37813
  h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
37648
37814
  var r22 = 65535;
37649
37815
  for (r22 > e2.pending_buf_size - 5 && (r22 = e2.pending_buf_size - 5); ; ) {
37650
37816
  if (e2.lookahead <= 1) {
37651
- if (j2(e2), 0 === e2.lookahead && t2 === l3) return A2;
37817
+ if (j2(e2), 0 === e2.lookahead && t2 === l) return A2;
37652
37818
  if (0 === e2.lookahead) break;
37653
37819
  }
37654
37820
  e2.strstart += e2.lookahead, e2.lookahead = 0;
@@ -37656,15 +37822,15 @@ function requireJszip_min() {
37656
37822
  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;
37657
37823
  if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37658
37824
  }
37659
- 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);
37825
+ 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);
37660
37826
  }), 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) {
37661
37827
  return Y2(e2, t2, v2, 15, 8, 0);
37662
37828
  }, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
37663
37829
  return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
37664
37830
  }, r2.deflate = function(e2, t2) {
37665
37831
  var r22, n2, i2, s22;
37666
- if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R2(e2, _2) : _2;
37667
- 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);
37832
+ if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R(e2, _2) : _2;
37833
+ 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);
37668
37834
  if (n2.strm = e2, r22 = n2.last_flush, n2.last_flush = t2, n2.status === C2) if (2 === n2.wrap) e2.adler = 0, U2(n2, 31), U2(n2, 139), U2(n2, 8), n2.gzhead ? (U2(n2, (n2.gzhead.text ? 1 : 0) + (n2.gzhead.hcrc ? 2 : 0) + (n2.gzhead.extra ? 4 : 0) + (n2.gzhead.name ? 8 : 0) + (n2.gzhead.comment ? 16 : 0)), U2(n2, 255 & n2.gzhead.time), U2(n2, n2.gzhead.time >> 8 & 255), U2(n2, n2.gzhead.time >> 16 & 255), U2(n2, n2.gzhead.time >> 24 & 255), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 255 & n2.gzhead.os), n2.gzhead.extra && n2.gzhead.extra.length && (U2(n2, 255 & n2.gzhead.extra.length), U2(n2, n2.gzhead.extra.length >> 8 & 255)), n2.gzhead.hcrc && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending, 0)), n2.gzindex = 0, n2.status = 69) : (U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 3), n2.status = E2);
37669
37835
  else {
37670
37836
  var a2 = v2 + (n2.w_bits - 8 << 4) << 8;
@@ -37698,50 +37864,50 @@ function requireJszip_min() {
37698
37864
  } else n2.status = 103;
37699
37865
  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) {
37700
37866
  if (F2(e2), 0 === e2.avail_out) return n2.last_flush = -1, m2;
37701
- } else if (0 === e2.avail_in && T(t2) <= T(r22) && t2 !== f2) return R2(e2, -5);
37702
- if (666 === n2.status && 0 !== e2.avail_in) return R2(e2, -5);
37703
- if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l3 && 666 !== n2.status) {
37867
+ } else if (0 === e2.avail_in && T2(t2) <= T2(r22) && t2 !== f2) return R(e2, -5);
37868
+ if (666 === n2.status && 0 !== e2.avail_in) return R(e2, -5);
37869
+ if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l && 666 !== n2.status) {
37704
37870
  var o2 = 2 === n2.strategy ? (function(e3, t3) {
37705
37871
  for (var r3; ; ) {
37706
37872
  if (0 === e3.lookahead && (j2(e3), 0 === e3.lookahead)) {
37707
- if (t3 === l3) return A2;
37873
+ if (t3 === l) return A2;
37708
37874
  break;
37709
37875
  }
37710
- 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;
37876
+ if (e3.match_length = 0, r3 = u3._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++, r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
37711
37877
  }
37712
- 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;
37878
+ 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;
37713
37879
  })(n2, t2) : 3 === n2.strategy ? (function(e3, t3) {
37714
37880
  for (var r3, n3, i3, s3, a3 = e3.window; ; ) {
37715
37881
  if (e3.lookahead <= S2) {
37716
- if (j2(e3), e3.lookahead <= S2 && t3 === l3) return A2;
37882
+ if (j2(e3), e3.lookahead <= S2 && t3 === l) return A2;
37717
37883
  if (0 === e3.lookahead) break;
37718
37884
  }
37719
- 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]) {
37885
+ 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]) {
37720
37886
  s3 = e3.strstart + S2;
37721
37887
  do {
37722
37888
  } 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);
37723
37889
  e3.match_length = S2 - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);
37724
37890
  }
37725
- 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;
37891
+ if (e3.match_length >= x2 ? (r3 = u3._tr_tally(e3, 1, e3.match_length - x2), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u3._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
37726
37892
  }
37727
- 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;
37893
+ 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;
37728
37894
  })(n2, t2) : h2[n2.level].func(n2, t2);
37729
- if (o2 !== O2 && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O2) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
37730
- 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;
37895
+ if (o2 !== O && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
37896
+ if (o2 === I2 && (1 === t2 ? u3._tr_align(n2) : 5 !== t2 && (u3._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;
37731
37897
  }
37732
37898
  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);
37733
37899
  }, r2.deflateEnd = function(e2) {
37734
37900
  var t2;
37735
- 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;
37901
+ 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;
37736
37902
  }, r2.deflateSetDictionary = function(e2, t2) {
37737
- var r22, n2, i2, s22, a2, o2, h22, u2, l22 = t2.length;
37903
+ var r22, n2, i2, s22, a2, o2, h22, u22, l2 = t2.length;
37738
37904
  if (!e2 || !e2.state) return _2;
37739
37905
  if (2 === (s22 = (r22 = e2.state).wrap) || 1 === s22 && r22.status !== C2 || r22.lookahead) return _2;
37740
- for (1 === s22 && (e2.adler = d2(e2.adler, t2, l22, 0)), r22.wrap = 0, l22 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u2 = new c2.Buf8(r22.w_size), c2.arraySet(u2, t2, l22 - r22.w_size, r22.w_size, 0), t2 = u2, l22 = r22.w_size), a2 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l22, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x; ) {
37741
- for (n2 = r22.strstart, i2 = r22.lookahead - (x - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i2; ) ;
37742
- r22.strstart = n2, r22.lookahead = x - 1, j2(r22);
37906
+ 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), u22 = new c2.Buf8(r22.w_size), c2.arraySet(u22, t2, l2 - r22.w_size, r22.w_size, 0), t2 = u22, l2 = r22.w_size), a2 = 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; ) {
37907
+ for (n2 = r22.strstart, i2 = r22.lookahead - (x2 - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x2 - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i2; ) ;
37908
+ r22.strstart = n2, r22.lookahead = x2 - 1, j2(r22);
37743
37909
  }
37744
- return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a2, r22.wrap = s22, m2;
37910
+ return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x2 - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a2, r22.wrap = s22, m2;
37745
37911
  }, r2.deflateInfo = "pako deflate (from Nodeca project)";
37746
37912
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r2) {
37747
37913
  t.exports = function() {
@@ -37749,8 +37915,8 @@ function requireJszip_min() {
37749
37915
  };
37750
37916
  }, {}], 48: [function(e, t, r2) {
37751
37917
  t.exports = function(e2, t2) {
37752
- var r22, n, i, s2, a, o, h2, u, l3, f2, c2, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2;
37753
- r22 = e2.state, n = e2.next_in, z2 = e2.input, i = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax, u = r22.wsize, l3 = r22.whave, f2 = r22.wnext, c2 = r22.window, d2 = r22.hold, p = r22.bits, m2 = r22.lencode, _2 = r22.distcode, g = (1 << r22.lenbits) - 1, b2 = (1 << r22.distbits) - 1;
37918
+ var r22, n, i, s2, a, o, h2, u3, l, f2, c2, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2;
37919
+ r22 = e2.state, n = e2.next_in, z2 = e2.input, i = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax, u3 = r22.wsize, l = r22.whave, f2 = r22.wnext, c2 = r22.window, d2 = r22.hold, p = r22.bits, m2 = r22.lencode, _2 = r22.distcode, g = (1 << r22.lenbits) - 1, b2 = (1 << r22.distbits) - 1;
37754
37920
  e: do {
37755
37921
  p < 15 && (d2 += z2[n++] << p, p += 8, d2 += z2[n++] << p, p += 8), v2 = m2[d2 & g];
37756
37922
  t: for (; ; ) {
@@ -37783,32 +37949,32 @@ function requireJszip_min() {
37783
37949
  break e;
37784
37950
  }
37785
37951
  if (d2 >>>= y2, p -= y2, (y2 = s2 - a) < k2) {
37786
- if (l3 < (y2 = k2 - y2) && r22.sane) {
37952
+ if (l < (y2 = k2 - y2) && r22.sane) {
37787
37953
  e2.msg = "invalid distance too far back", r22.mode = 30;
37788
37954
  break e;
37789
37955
  }
37790
- if (S2 = c2, (x = 0) === f2) {
37791
- if (x += u - y2, y2 < w2) {
37792
- for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
37793
- x = s2 - k2, S2 = C2;
37956
+ if (S2 = c2, (x2 = 0) === f2) {
37957
+ if (x2 += u3 - y2, y2 < w2) {
37958
+ for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
37959
+ x2 = s2 - k2, S2 = C2;
37794
37960
  }
37795
37961
  } else if (f2 < y2) {
37796
- if (x += u + f2 - y2, (y2 -= f2) < w2) {
37797
- for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
37798
- if (x = 0, f2 < w2) {
37799
- for (w2 -= y2 = f2; C2[s2++] = c2[x++], --y2; ) ;
37800
- x = s2 - k2, S2 = C2;
37962
+ if (x2 += u3 + f2 - y2, (y2 -= f2) < w2) {
37963
+ for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
37964
+ if (x2 = 0, f2 < w2) {
37965
+ for (w2 -= y2 = f2; C2[s2++] = c2[x2++], --y2; ) ;
37966
+ x2 = s2 - k2, S2 = C2;
37801
37967
  }
37802
37968
  }
37803
- } else if (x += f2 - y2, y2 < w2) {
37804
- for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
37805
- x = s2 - k2, S2 = C2;
37969
+ } else if (x2 += f2 - y2, y2 < w2) {
37970
+ for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
37971
+ x2 = s2 - k2, S2 = C2;
37806
37972
  }
37807
- for (; 2 < w2; ) C2[s2++] = S2[x++], C2[s2++] = S2[x++], C2[s2++] = S2[x++], w2 -= 3;
37808
- w2 && (C2[s2++] = S2[x++], 1 < w2 && (C2[s2++] = S2[x++]));
37973
+ for (; 2 < w2; ) C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], w2 -= 3;
37974
+ w2 && (C2[s2++] = S2[x2++], 1 < w2 && (C2[s2++] = S2[x2++]));
37809
37975
  } else {
37810
- for (x = s2 - k2; C2[s2++] = C2[x++], C2[s2++] = C2[x++], C2[s2++] = C2[x++], 2 < (w2 -= 3); ) ;
37811
- w2 && (C2[s2++] = C2[x++], 1 < w2 && (C2[s2++] = C2[x++]));
37976
+ for (x2 = s2 - k2; C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], 2 < (w2 -= 3); ) ;
37977
+ w2 && (C2[s2++] = C2[x2++], 1 < w2 && (C2[s2++] = C2[x2++]));
37812
37978
  }
37813
37979
  break;
37814
37980
  }
@@ -37819,7 +37985,7 @@ function requireJszip_min() {
37819
37985
  n -= w2 = p >> 3, d2 &= (1 << (p -= w2 << 3)) - 1, e2.next_in = n, e2.next_out = s2, e2.avail_in = n < i ? i - n + 5 : 5 - (n - i), e2.avail_out = s2 < o ? o - s2 + 257 : 257 - (s2 - o), r22.hold = d2, r22.bits = p;
37820
37986
  };
37821
37987
  }, {}], 49: [function(e, t, r2) {
37822
- var I2 = e("../utils/common"), O2 = e("./adler32"), B2 = e("./crc32"), R2 = e("./inffast"), T = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i = 592;
37988
+ var I2 = e("../utils/common"), O = e("./adler32"), B2 = e("./crc32"), R = e("./inffast"), T2 = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i = 592;
37823
37989
  function L2(e2) {
37824
37990
  return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
37825
37991
  }
@@ -37838,68 +38004,68 @@ function requireJszip_min() {
37838
38004
  var r22, n2;
37839
38005
  return e2 && e2.state ? (n2 = e2.state, t2 < 0 ? (r22 = 0, t2 = -t2) : (r22 = 1 + (t2 >> 4), t2 < 48 && (t2 &= 15)), t2 && (t2 < 8 || 15 < t2) ? U2 : (null !== n2.window && n2.wbits !== t2 && (n2.window = null), n2.wrap = r22, n2.wbits = t2, o(e2))) : U2;
37840
38006
  }
37841
- function u(e2, t2) {
38007
+ function u3(e2, t2) {
37842
38008
  var r22, n2;
37843
38009
  return e2 ? (n2 = new s2(), (e2.state = n2).window = null, (r22 = h2(e2, t2)) !== N2 && (e2.state = null), r22) : U2;
37844
38010
  }
37845
- var l3, f2, c2 = true;
38011
+ var l, f2, c2 = true;
37846
38012
  function j2(e2) {
37847
38013
  if (c2) {
37848
38014
  var t2;
37849
- for (l3 = new I2.Buf32(512), f2 = new I2.Buf32(32), t2 = 0; t2 < 144; ) e2.lens[t2++] = 8;
38015
+ for (l = new I2.Buf32(512), f2 = new I2.Buf32(32), t2 = 0; t2 < 144; ) e2.lens[t2++] = 8;
37850
38016
  for (; t2 < 256; ) e2.lens[t2++] = 9;
37851
38017
  for (; t2 < 280; ) e2.lens[t2++] = 7;
37852
38018
  for (; t2 < 288; ) e2.lens[t2++] = 8;
37853
- for (T(D2, e2.lens, 0, 288, l3, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
37854
- T(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
38019
+ for (T2(D2, e2.lens, 0, 288, l, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
38020
+ T2(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
37855
38021
  }
37856
- e2.lencode = l3, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
38022
+ e2.lencode = l, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
37857
38023
  }
37858
38024
  function Z(e2, t2, r22, n2) {
37859
38025
  var i2, s22 = e2.state;
37860
38026
  return null === s22.window && (s22.wsize = 1 << s22.wbits, s22.wnext = 0, s22.whave = 0, s22.window = new I2.Buf8(s22.wsize)), n2 >= s22.wsize ? (I2.arraySet(s22.window, t2, r22 - s22.wsize, s22.wsize, 0), s22.wnext = 0, s22.whave = s22.wsize) : (n2 < (i2 = s22.wsize - s22.wnext) && (i2 = n2), I2.arraySet(s22.window, t2, r22 - n2, i2, s22.wnext), (n2 -= i2) ? (I2.arraySet(s22.window, t2, r22 - n2, n2, 0), s22.wnext = n2, s22.whave = s22.wsize) : (s22.wnext += i2, s22.wnext === s22.wsize && (s22.wnext = 0), s22.whave < s22.wsize && (s22.whave += i2))), 0;
37861
38027
  }
37862
38028
  r2.inflateReset = o, r2.inflateReset2 = h2, r2.inflateResetKeep = a, r2.inflateInit = function(e2) {
37863
- return u(e2, 15);
37864
- }, r2.inflateInit2 = u, r2.inflate = function(e2, t2) {
37865
- var r22, n2, i2, s22, a2, o2, h22, u2, l22, f22, c22, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2 = 0, E2 = new I2.Buf8(4), A2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
38029
+ return u3(e2, 15);
38030
+ }, r2.inflateInit2 = u3, r2.inflate = function(e2, t2) {
38031
+ var r22, n2, i2, s22, a2, o2, h22, u22, l2, f22, c22, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2 = 0, E2 = new I2.Buf8(4), A2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
37866
38032
  if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U2;
37867
- 12 === (r22 = e2.state).mode && (r22.mode = 13), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, f22 = o2, c22 = h22, x = N2;
38033
+ 12 === (r22 = e2.state).mode && (r22.mode = 13), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u22 = r22.hold, l2 = r22.bits, f22 = o2, c22 = h22, x2 = N2;
37868
38034
  e: for (; ; ) switch (r22.mode) {
37869
38035
  case P2:
37870
38036
  if (0 === r22.wrap) {
37871
38037
  r22.mode = 13;
37872
38038
  break;
37873
38039
  }
37874
- for (; l22 < 16; ) {
38040
+ for (; l2 < 16; ) {
37875
38041
  if (0 === o2) break e;
37876
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38042
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37877
38043
  }
37878
- if (2 & r22.wrap && 35615 === u2) {
37879
- E2[r22.check = 0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0), l22 = u2 = 0, r22.mode = 2;
38044
+ if (2 & r22.wrap && 35615 === u22) {
38045
+ E2[r22.check = 0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0), l2 = u22 = 0, r22.mode = 2;
37880
38046
  break;
37881
38047
  }
37882
- if (r22.flags = 0, r22.head && (r22.head.done = false), !(1 & r22.wrap) || (((255 & u2) << 8) + (u2 >> 8)) % 31) {
38048
+ if (r22.flags = 0, r22.head && (r22.head.done = false), !(1 & r22.wrap) || (((255 & u22) << 8) + (u22 >> 8)) % 31) {
37883
38049
  e2.msg = "incorrect header check", r22.mode = 30;
37884
38050
  break;
37885
38051
  }
37886
- if (8 != (15 & u2)) {
38052
+ if (8 != (15 & u22)) {
37887
38053
  e2.msg = "unknown compression method", r22.mode = 30;
37888
38054
  break;
37889
38055
  }
37890
- if (l22 -= 4, k2 = 8 + (15 & (u2 >>>= 4)), 0 === r22.wbits) r22.wbits = k2;
38056
+ if (l2 -= 4, k2 = 8 + (15 & (u22 >>>= 4)), 0 === r22.wbits) r22.wbits = k2;
37891
38057
  else if (k2 > r22.wbits) {
37892
38058
  e2.msg = "invalid window size", r22.mode = 30;
37893
38059
  break;
37894
38060
  }
37895
- r22.dmax = 1 << k2, e2.adler = r22.check = 1, r22.mode = 512 & u2 ? 10 : 12, l22 = u2 = 0;
38061
+ r22.dmax = 1 << k2, e2.adler = r22.check = 1, r22.mode = 512 & u22 ? 10 : 12, l2 = u22 = 0;
37896
38062
  break;
37897
38063
  case 2:
37898
- for (; l22 < 16; ) {
38064
+ for (; l2 < 16; ) {
37899
38065
  if (0 === o2) break e;
37900
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38066
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37901
38067
  }
37902
- if (r22.flags = u2, 8 != (255 & r22.flags)) {
38068
+ if (r22.flags = u22, 8 != (255 & r22.flags)) {
37903
38069
  e2.msg = "unknown compression method", r22.mode = 30;
37904
38070
  break;
37905
38071
  }
@@ -37907,26 +38073,26 @@ function requireJszip_min() {
37907
38073
  e2.msg = "unknown header flags set", r22.mode = 30;
37908
38074
  break;
37909
38075
  }
37910
- r22.head && (r22.head.text = u2 >> 8 & 1), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l22 = u2 = 0, r22.mode = 3;
38076
+ r22.head && (r22.head.text = u22 >> 8 & 1), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l2 = u22 = 0, r22.mode = 3;
37911
38077
  case 3:
37912
- for (; l22 < 32; ) {
38078
+ for (; l2 < 32; ) {
37913
38079
  if (0 === o2) break e;
37914
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38080
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37915
38081
  }
37916
- r22.head && (r22.head.time = u2), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, E2[2] = u2 >>> 16 & 255, E2[3] = u2 >>> 24 & 255, r22.check = B2(r22.check, E2, 4, 0)), l22 = u2 = 0, r22.mode = 4;
38082
+ r22.head && (r22.head.time = u22), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, E2[2] = u22 >>> 16 & 255, E2[3] = u22 >>> 24 & 255, r22.check = B2(r22.check, E2, 4, 0)), l2 = u22 = 0, r22.mode = 4;
37917
38083
  case 4:
37918
- for (; l22 < 16; ) {
38084
+ for (; l2 < 16; ) {
37919
38085
  if (0 === o2) break e;
37920
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38086
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37921
38087
  }
37922
- r22.head && (r22.head.xflags = 255 & u2, r22.head.os = u2 >> 8), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l22 = u2 = 0, r22.mode = 5;
38088
+ r22.head && (r22.head.xflags = 255 & u22, r22.head.os = u22 >> 8), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l2 = u22 = 0, r22.mode = 5;
37923
38089
  case 5:
37924
38090
  if (1024 & r22.flags) {
37925
- for (; l22 < 16; ) {
38091
+ for (; l2 < 16; ) {
37926
38092
  if (0 === o2) break e;
37927
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38093
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37928
38094
  }
37929
- r22.length = u2, r22.head && (r22.head.extra_len = u2), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l22 = u2 = 0;
38095
+ r22.length = u22, r22.head && (r22.head.extra_len = u22), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l2 = u22 = 0;
37930
38096
  } else r22.head && (r22.head.extra = null);
37931
38097
  r22.mode = 6;
37932
38098
  case 6:
@@ -37948,45 +38114,45 @@ function requireJszip_min() {
37948
38114
  r22.mode = 9;
37949
38115
  case 9:
37950
38116
  if (512 & r22.flags) {
37951
- for (; l22 < 16; ) {
38117
+ for (; l2 < 16; ) {
37952
38118
  if (0 === o2) break e;
37953
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38119
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37954
38120
  }
37955
- if (u2 !== (65535 & r22.check)) {
38121
+ if (u22 !== (65535 & r22.check)) {
37956
38122
  e2.msg = "header crc mismatch", r22.mode = 30;
37957
38123
  break;
37958
38124
  }
37959
- l22 = u2 = 0;
38125
+ l2 = u22 = 0;
37960
38126
  }
37961
38127
  r22.head && (r22.head.hcrc = r22.flags >> 9 & 1, r22.head.done = true), e2.adler = r22.check = 0, r22.mode = 12;
37962
38128
  break;
37963
38129
  case 10:
37964
- for (; l22 < 32; ) {
38130
+ for (; l2 < 32; ) {
37965
38131
  if (0 === o2) break e;
37966
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38132
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37967
38133
  }
37968
- e2.adler = r22.check = L2(u2), l22 = u2 = 0, r22.mode = 11;
38134
+ e2.adler = r22.check = L2(u22), l2 = u22 = 0, r22.mode = 11;
37969
38135
  case 11:
37970
- if (0 === r22.havedict) return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, 2;
38136
+ if (0 === r22.havedict) return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u22, r22.bits = l2, 2;
37971
38137
  e2.adler = r22.check = 1, r22.mode = 12;
37972
38138
  case 12:
37973
38139
  if (5 === t2 || 6 === t2) break e;
37974
38140
  case 13:
37975
38141
  if (r22.last) {
37976
- u2 >>>= 7 & l22, l22 -= 7 & l22, r22.mode = 27;
38142
+ u22 >>>= 7 & l2, l2 -= 7 & l2, r22.mode = 27;
37977
38143
  break;
37978
38144
  }
37979
- for (; l22 < 3; ) {
38145
+ for (; l2 < 3; ) {
37980
38146
  if (0 === o2) break e;
37981
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38147
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37982
38148
  }
37983
- switch (r22.last = 1 & u2, l22 -= 1, 3 & (u2 >>>= 1)) {
38149
+ switch (r22.last = 1 & u22, l2 -= 1, 3 & (u22 >>>= 1)) {
37984
38150
  case 0:
37985
38151
  r22.mode = 14;
37986
38152
  break;
37987
38153
  case 1:
37988
38154
  if (j2(r22), r22.mode = 20, 6 !== t2) break;
37989
- u2 >>>= 2, l22 -= 2;
38155
+ u22 >>>= 2, l2 -= 2;
37990
38156
  break e;
37991
38157
  case 2:
37992
38158
  r22.mode = 17;
@@ -37994,18 +38160,18 @@ function requireJszip_min() {
37994
38160
  case 3:
37995
38161
  e2.msg = "invalid block type", r22.mode = 30;
37996
38162
  }
37997
- u2 >>>= 2, l22 -= 2;
38163
+ u22 >>>= 2, l2 -= 2;
37998
38164
  break;
37999
38165
  case 14:
38000
- for (u2 >>>= 7 & l22, l22 -= 7 & l22; l22 < 32; ) {
38166
+ for (u22 >>>= 7 & l2, l2 -= 7 & l2; l2 < 32; ) {
38001
38167
  if (0 === o2) break e;
38002
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38168
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38003
38169
  }
38004
- if ((65535 & u2) != (u2 >>> 16 ^ 65535)) {
38170
+ if ((65535 & u22) != (u22 >>> 16 ^ 65535)) {
38005
38171
  e2.msg = "invalid stored block lengths", r22.mode = 30;
38006
38172
  break;
38007
38173
  }
38008
- if (r22.length = 65535 & u2, l22 = u2 = 0, r22.mode = 15, 6 === t2) break e;
38174
+ if (r22.length = 65535 & u22, l2 = u22 = 0, r22.mode = 15, 6 === t2) break e;
38009
38175
  case 15:
38010
38176
  r22.mode = 16;
38011
38177
  case 16:
@@ -38017,59 +38183,59 @@ function requireJszip_min() {
38017
38183
  r22.mode = 12;
38018
38184
  break;
38019
38185
  case 17:
38020
- for (; l22 < 14; ) {
38186
+ for (; l2 < 14; ) {
38021
38187
  if (0 === o2) break e;
38022
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38188
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38023
38189
  }
38024
- if (r22.nlen = 257 + (31 & u2), u2 >>>= 5, l22 -= 5, r22.ndist = 1 + (31 & u2), u2 >>>= 5, l22 -= 5, r22.ncode = 4 + (15 & u2), u2 >>>= 4, l22 -= 4, 286 < r22.nlen || 30 < r22.ndist) {
38190
+ if (r22.nlen = 257 + (31 & u22), u22 >>>= 5, l2 -= 5, r22.ndist = 1 + (31 & u22), u22 >>>= 5, l2 -= 5, r22.ncode = 4 + (15 & u22), u22 >>>= 4, l2 -= 4, 286 < r22.nlen || 30 < r22.ndist) {
38025
38191
  e2.msg = "too many length or distance symbols", r22.mode = 30;
38026
38192
  break;
38027
38193
  }
38028
38194
  r22.have = 0, r22.mode = 18;
38029
38195
  case 18:
38030
38196
  for (; r22.have < r22.ncode; ) {
38031
- for (; l22 < 3; ) {
38197
+ for (; l2 < 3; ) {
38032
38198
  if (0 === o2) break e;
38033
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38199
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38034
38200
  }
38035
- r22.lens[A2[r22.have++]] = 7 & u2, u2 >>>= 3, l22 -= 3;
38201
+ r22.lens[A2[r22.have++]] = 7 & u22, u22 >>>= 3, l2 -= 3;
38036
38202
  }
38037
38203
  for (; r22.have < 19; ) r22.lens[A2[r22.have++]] = 0;
38038
- 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) {
38204
+ 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) {
38039
38205
  e2.msg = "invalid code lengths set", r22.mode = 30;
38040
38206
  break;
38041
38207
  }
38042
38208
  r22.have = 0, r22.mode = 19;
38043
38209
  case 19:
38044
38210
  for (; r22.have < r22.nlen + r22.ndist; ) {
38045
- for (; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l22); ) {
38211
+ for (; g = (C2 = r22.lencode[u22 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
38046
38212
  if (0 === o2) break e;
38047
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38213
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38048
38214
  }
38049
- if (b2 < 16) u2 >>>= _2, l22 -= _2, r22.lens[r22.have++] = b2;
38215
+ if (b2 < 16) u22 >>>= _2, l2 -= _2, r22.lens[r22.have++] = b2;
38050
38216
  else {
38051
38217
  if (16 === b2) {
38052
- for (z2 = _2 + 2; l22 < z2; ) {
38218
+ for (z2 = _2 + 2; l2 < z2; ) {
38053
38219
  if (0 === o2) break e;
38054
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38220
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38055
38221
  }
38056
- if (u2 >>>= _2, l22 -= _2, 0 === r22.have) {
38222
+ if (u22 >>>= _2, l2 -= _2, 0 === r22.have) {
38057
38223
  e2.msg = "invalid bit length repeat", r22.mode = 30;
38058
38224
  break;
38059
38225
  }
38060
- k2 = r22.lens[r22.have - 1], d2 = 3 + (3 & u2), u2 >>>= 2, l22 -= 2;
38226
+ k2 = r22.lens[r22.have - 1], d2 = 3 + (3 & u22), u22 >>>= 2, l2 -= 2;
38061
38227
  } else if (17 === b2) {
38062
- for (z2 = _2 + 3; l22 < z2; ) {
38228
+ for (z2 = _2 + 3; l2 < z2; ) {
38063
38229
  if (0 === o2) break e;
38064
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38230
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38065
38231
  }
38066
- l22 -= _2, k2 = 0, d2 = 3 + (7 & (u2 >>>= _2)), u2 >>>= 3, l22 -= 3;
38232
+ l2 -= _2, k2 = 0, d2 = 3 + (7 & (u22 >>>= _2)), u22 >>>= 3, l2 -= 3;
38067
38233
  } else {
38068
- for (z2 = _2 + 7; l22 < z2; ) {
38234
+ for (z2 = _2 + 7; l2 < z2; ) {
38069
38235
  if (0 === o2) break e;
38070
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38236
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38071
38237
  }
38072
- l22 -= _2, k2 = 0, d2 = 11 + (127 & (u2 >>>= _2)), u2 >>>= 7, l22 -= 7;
38238
+ l2 -= _2, k2 = 0, d2 = 11 + (127 & (u22 >>>= _2)), u22 >>>= 7, l2 -= 7;
38073
38239
  }
38074
38240
  if (r22.have + d2 > r22.nlen + r22.ndist) {
38075
38241
  e2.msg = "invalid bit length repeat", r22.mode = 30;
@@ -38083,11 +38249,11 @@ function requireJszip_min() {
38083
38249
  e2.msg = "invalid code -- missing end-of-block", r22.mode = 30;
38084
38250
  break;
38085
38251
  }
38086
- 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) {
38252
+ 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) {
38087
38253
  e2.msg = "invalid literal/lengths set", r22.mode = 30;
38088
38254
  break;
38089
38255
  }
38090
- 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) {
38256
+ 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) {
38091
38257
  e2.msg = "invalid distances set", r22.mode = 30;
38092
38258
  break;
38093
38259
  }
@@ -38096,21 +38262,21 @@ function requireJszip_min() {
38096
38262
  r22.mode = 21;
38097
38263
  case 21:
38098
38264
  if (6 <= o2 && 258 <= h22) {
38099
- e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, R2(e2, c22), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, 12 === r22.mode && (r22.back = -1);
38265
+ e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u22, r22.bits = l2, R(e2, c22), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u22 = r22.hold, l2 = r22.bits, 12 === r22.mode && (r22.back = -1);
38100
38266
  break;
38101
38267
  }
38102
- for (r22.back = 0; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l22); ) {
38268
+ for (r22.back = 0; g = (C2 = r22.lencode[u22 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
38103
38269
  if (0 === o2) break e;
38104
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38270
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38105
38271
  }
38106
38272
  if (g && 0 == (240 & g)) {
38107
- for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.lencode[w2 + ((u2 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l22); ) {
38273
+ for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.lencode[w2 + ((u22 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l2); ) {
38108
38274
  if (0 === o2) break e;
38109
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38275
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38110
38276
  }
38111
- u2 >>>= v2, l22 -= v2, r22.back += v2;
38277
+ u22 >>>= v2, l2 -= v2, r22.back += v2;
38112
38278
  }
38113
- if (u2 >>>= _2, l22 -= _2, r22.back += _2, r22.length = b2, 0 === g) {
38279
+ if (u22 >>>= _2, l2 -= _2, r22.back += _2, r22.length = b2, 0 === g) {
38114
38280
  r22.mode = 26;
38115
38281
  break;
38116
38282
  }
@@ -38125,37 +38291,37 @@ function requireJszip_min() {
38125
38291
  r22.extra = 15 & g, r22.mode = 22;
38126
38292
  case 22:
38127
38293
  if (r22.extra) {
38128
- for (z2 = r22.extra; l22 < z2; ) {
38294
+ for (z2 = r22.extra; l2 < z2; ) {
38129
38295
  if (0 === o2) break e;
38130
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38296
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38131
38297
  }
38132
- r22.length += u2 & (1 << r22.extra) - 1, u2 >>>= r22.extra, l22 -= r22.extra, r22.back += r22.extra;
38298
+ r22.length += u22 & (1 << r22.extra) - 1, u22 >>>= r22.extra, l2 -= r22.extra, r22.back += r22.extra;
38133
38299
  }
38134
38300
  r22.was = r22.length, r22.mode = 23;
38135
38301
  case 23:
38136
- for (; g = (C2 = r22.distcode[u2 & (1 << r22.distbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l22); ) {
38302
+ for (; g = (C2 = r22.distcode[u22 & (1 << r22.distbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
38137
38303
  if (0 === o2) break e;
38138
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38304
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38139
38305
  }
38140
38306
  if (0 == (240 & g)) {
38141
- for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.distcode[w2 + ((u2 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l22); ) {
38307
+ for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.distcode[w2 + ((u22 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l2); ) {
38142
38308
  if (0 === o2) break e;
38143
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38309
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38144
38310
  }
38145
- u2 >>>= v2, l22 -= v2, r22.back += v2;
38311
+ u22 >>>= v2, l2 -= v2, r22.back += v2;
38146
38312
  }
38147
- if (u2 >>>= _2, l22 -= _2, r22.back += _2, 64 & g) {
38313
+ if (u22 >>>= _2, l2 -= _2, r22.back += _2, 64 & g) {
38148
38314
  e2.msg = "invalid distance code", r22.mode = 30;
38149
38315
  break;
38150
38316
  }
38151
38317
  r22.offset = b2, r22.extra = 15 & g, r22.mode = 24;
38152
38318
  case 24:
38153
38319
  if (r22.extra) {
38154
- for (z2 = r22.extra; l22 < z2; ) {
38320
+ for (z2 = r22.extra; l2 < z2; ) {
38155
38321
  if (0 === o2) break e;
38156
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38322
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38157
38323
  }
38158
- r22.offset += u2 & (1 << r22.extra) - 1, u2 >>>= r22.extra, l22 -= r22.extra, r22.back += r22.extra;
38324
+ r22.offset += u22 & (1 << r22.extra) - 1, u22 >>>= r22.extra, l2 -= r22.extra, r22.back += r22.extra;
38159
38325
  }
38160
38326
  if (r22.offset > r22.dmax) {
38161
38327
  e2.msg = "invalid distance too far back", r22.mode = 30;
@@ -38180,35 +38346,35 @@ function requireJszip_min() {
38180
38346
  break;
38181
38347
  case 27:
38182
38348
  if (r22.wrap) {
38183
- for (; l22 < 32; ) {
38349
+ for (; l2 < 32; ) {
38184
38350
  if (0 === o2) break e;
38185
- o2--, u2 |= n2[s22++] << l22, l22 += 8;
38351
+ o2--, u22 |= n2[s22++] << l2, l2 += 8;
38186
38352
  }
38187
- if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) : O2(r22.check, i2, c22, a2 - c22)), c22 = h22, (r22.flags ? u2 : L2(u2)) !== r22.check) {
38353
+ if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) : O(r22.check, i2, c22, a2 - c22)), c22 = h22, (r22.flags ? u22 : L2(u22)) !== r22.check) {
38188
38354
  e2.msg = "incorrect data check", r22.mode = 30;
38189
38355
  break;
38190
38356
  }
38191
- l22 = u2 = 0;
38357
+ l2 = u22 = 0;
38192
38358
  }
38193
38359
  r22.mode = 28;
38194
38360
  case 28:
38195
38361
  if (r22.wrap && r22.flags) {
38196
- for (; l22 < 32; ) {
38362
+ for (; l2 < 32; ) {
38197
38363
  if (0 === o2) break e;
38198
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38364
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38199
38365
  }
38200
- if (u2 !== (4294967295 & r22.total)) {
38366
+ if (u22 !== (4294967295 & r22.total)) {
38201
38367
  e2.msg = "incorrect length check", r22.mode = 30;
38202
38368
  break;
38203
38369
  }
38204
- l22 = u2 = 0;
38370
+ l2 = u22 = 0;
38205
38371
  }
38206
38372
  r22.mode = 29;
38207
38373
  case 29:
38208
- x = 1;
38374
+ x2 = 1;
38209
38375
  break e;
38210
38376
  case 30:
38211
- x = -3;
38377
+ x2 = -3;
38212
38378
  break e;
38213
38379
  case 31:
38214
38380
  return -4;
@@ -38216,7 +38382,7 @@ function requireJszip_min() {
38216
38382
  default:
38217
38383
  return U2;
38218
38384
  }
38219
- return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, e2.next_out - c22) : O2(r22.check, i2, c22, e2.next_out - c22)), e2.data_type = r22.bits + (r22.last ? 64 : 0) + (12 === r22.mode ? 128 : 0) + (20 === r22.mode || 15 === r22.mode ? 256 : 0), (0 == f22 && 0 === c22 || 4 === t2) && x === N2 && (x = -5), x);
38385
+ return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u22, 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, i2, c22, e2.next_out - c22) : O(r22.check, i2, c22, e2.next_out - c22)), e2.data_type = r22.bits + (r22.last ? 64 : 0) + (12 === r22.mode ? 128 : 0) + (20 === r22.mode || 15 === r22.mode ? 256 : 0), (0 == f22 && 0 === c22 || 4 === t2) && x2 === N2 && (x2 = -5), x2);
38220
38386
  }, r2.inflateEnd = function(e2) {
38221
38387
  if (!e2 || !e2.state) return U2;
38222
38388
  var t2 = e2.state;
@@ -38226,33 +38392,33 @@ function requireJszip_min() {
38226
38392
  return e2 && e2.state ? 0 == (2 & (r22 = e2.state).wrap) ? U2 : ((r22.head = t2).done = false, N2) : U2;
38227
38393
  }, r2.inflateSetDictionary = function(e2, t2) {
38228
38394
  var r22, n2 = t2.length;
38229
- 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;
38395
+ 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;
38230
38396
  }, r2.inflateInfo = "pako inflate (from Nodeca project)";
38231
38397
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r2) {
38232
38398
  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];
38233
38399
  t.exports = function(e2, t2, r22, n, i, s2, a, o) {
38234
- var h2, u, l3, f2, c2, d2, p, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O2 = new D2.Buf16(16), B2 = new D2.Buf16(16), R2 = null, T = 0;
38235
- for (b2 = 0; b2 <= 15; b2++) O2[b2] = 0;
38236
- for (v2 = 0; v2 < n; v2++) O2[t2[r22 + v2]]++;
38237
- for (k2 = g, w2 = 15; 1 <= w2 && 0 === O2[w2]; w2--) ;
38400
+ var h2, u3, l, f2, c2, d2, p, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x2 = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O = new D2.Buf16(16), B2 = new D2.Buf16(16), R = null, T2 = 0;
38401
+ for (b2 = 0; b2 <= 15; b2++) O[b2] = 0;
38402
+ for (v2 = 0; v2 < n; v2++) O[t2[r22 + v2]]++;
38403
+ for (k2 = g, w2 = 15; 1 <= w2 && 0 === O[w2]; w2--) ;
38238
38404
  if (w2 < k2 && (k2 = w2), 0 === w2) return i[s2++] = 20971520, i[s2++] = 20971520, o.bits = 1, 0;
38239
- for (y2 = 1; y2 < w2 && 0 === O2[y2]; y2++) ;
38240
- for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O2[b2]) < 0) return -1;
38405
+ for (y2 = 1; y2 < w2 && 0 === O[y2]; y2++) ;
38406
+ for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O[b2]) < 0) return -1;
38241
38407
  if (0 < z2 && (0 === e2 || 1 !== w2)) return -1;
38242
- for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O2[b2];
38408
+ for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O[b2];
38243
38409
  for (v2 = 0; v2 < n; v2++) 0 !== t2[r22 + v2] && (a[B2[t2[r22 + v2]]++] = v2);
38244
- if (d2 = 0 === e2 ? (A2 = R2 = a, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R2 = N2, T -= 257, 256) : (A2 = U2, R2 = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l3 = -1, f2 = (C2 = 1 << (x = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38410
+ if (d2 = 0 === e2 ? (A2 = R = a, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R = N2, T2 -= 257, 256) : (A2 = U2, R = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l = -1, f2 = (C2 = 1 << (x2 = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38245
38411
  for (; ; ) {
38246
- for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 = R2[T + a[v2]], A2[I2 + a[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u = 1 << x; i[c2 + (E2 >> S2) + (u -= h2)] = p << 24 | m2 << 16 | _2 | 0, 0 !== u; ) ;
38412
+ for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 = R[T2 + a[v2]], A2[I2 + a[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u3 = 1 << x2; i[c2 + (E2 >> S2) + (u3 -= h2)] = p << 24 | m2 << 16 | _2 | 0, 0 !== u3; ) ;
38247
38413
  for (h2 = 1 << b2 - 1; E2 & h2; ) h2 >>= 1;
38248
- if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O2[b2]) {
38414
+ if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O[b2]) {
38249
38415
  if (b2 === w2) break;
38250
38416
  b2 = t2[r22 + a[v2]];
38251
38417
  }
38252
- if (k2 < b2 && (E2 & f2) !== l3) {
38253
- for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x = b2 - S2); x + S2 < w2 && !((z2 -= O2[x + S2]) <= 0); ) x++, z2 <<= 1;
38254
- if (C2 += 1 << x, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38255
- i[l3 = E2 & f2] = k2 << 24 | x << 16 | c2 - s2 | 0;
38418
+ if (k2 < b2 && (E2 & f2) !== l) {
38419
+ for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x2 = b2 - S2); x2 + S2 < w2 && !((z2 -= O[x2 + S2]) <= 0); ) x2++, z2 <<= 1;
38420
+ if (C2 += 1 << x2, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38421
+ i[l = E2 & f2] = k2 << 24 | x2 << 16 | c2 - s2 | 0;
38256
38422
  }
38257
38423
  }
38258
38424
  return 0 !== E2 && (i[c2 + E2] = b2 - S2 << 24 | 64 << 16 | 0), o.bits = k2, 0;
@@ -38264,7 +38430,7 @@ function requireJszip_min() {
38264
38430
  function n(e2) {
38265
38431
  for (var t2 = e2.length; 0 <= --t2; ) e2[t2] = 0;
38266
38432
  }
38267
- var s2 = 0, a = 29, u = 256, l3 = u + 1 + a, f2 = 30, c2 = 19, _2 = 2 * l3 + 1, g = 15, d2 = 16, p = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l3 + 2));
38433
+ var s2 = 0, a = 29, u3 = 256, l = u3 + 1 + a, f2 = 30, c2 = 19, _2 = 2 * l + 1, g = 15, d2 = 16, p = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l + 2));
38268
38434
  n(z2);
38269
38435
  var C2 = new Array(2 * f2);
38270
38436
  n(C2);
@@ -38274,7 +38440,7 @@ function requireJszip_min() {
38274
38440
  n(A2);
38275
38441
  var I2 = new Array(a);
38276
38442
  n(I2);
38277
- var O2, B2, R2, T = new Array(f2);
38443
+ var O, B2, R, T2 = new Array(f2);
38278
38444
  function D2(e2, t2, r22, n2, i2) {
38279
38445
  this.static_tree = e2, this.extra_bits = t2, this.extra_base = r22, this.elems = n2, this.max_length = i2, this.has_stree = e2 && e2.length;
38280
38446
  }
@@ -38307,7 +38473,7 @@ function requireJszip_min() {
38307
38473
  }
38308
38474
  function W2(e2) {
38309
38475
  var t2;
38310
- for (t2 = 0; t2 < l3; t2++) e2.dyn_ltree[2 * t2] = 0;
38476
+ for (t2 = 0; t2 < l; t2++) e2.dyn_ltree[2 * t2] = 0;
38311
38477
  for (t2 = 0; t2 < f2; t2++) e2.dyn_dtree[2 * t2] = 0;
38312
38478
  for (t2 = 0; t2 < c2; t2++) e2.bl_tree[2 * t2] = 0;
38313
38479
  e2.dyn_ltree[2 * m2] = 1, e2.opt_len = e2.static_len = 0, e2.last_lit = e2.matches = 0;
@@ -38325,41 +38491,41 @@ function requireJszip_min() {
38325
38491
  }
38326
38492
  function K2(e2, t2, r22) {
38327
38493
  var n2, i2, s22, a2, o2 = 0;
38328
- if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i2, t2) : (L2(e2, (s22 = A2[i2]) + u + 1, t2), 0 !== (a2 = w2[s22]) && P2(e2, i2 -= I2[s22], a2), L2(e2, s22 = N2(--n2), r22), 0 !== (a2 = k2[s22]) && P2(e2, n2 -= T[s22], a2)), o2 < e2.last_lit; ) ;
38494
+ if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i2, t2) : (L2(e2, (s22 = A2[i2]) + u3 + 1, t2), 0 !== (a2 = w2[s22]) && P2(e2, i2 -= I2[s22], a2), L2(e2, s22 = N2(--n2), r22), 0 !== (a2 = k2[s22]) && P2(e2, n2 -= T2[s22], a2)), o2 < e2.last_lit; ) ;
38329
38495
  L2(e2, m2, t2);
38330
38496
  }
38331
38497
  function Y2(e2, t2) {
38332
- var r22, n2, i2, s22 = t2.dyn_tree, a2 = t2.stat_desc.static_tree, o2 = t2.stat_desc.has_stree, h22 = t2.stat_desc.elems, u2 = -1;
38333
- for (e2.heap_len = 0, e2.heap_max = _2, r22 = 0; r22 < h22; r22++) 0 !== s22[2 * r22] ? (e2.heap[++e2.heap_len] = u2 = r22, e2.depth[r22] = 0) : s22[2 * r22 + 1] = 0;
38334
- for (; e2.heap_len < 2; ) s22[2 * (i2 = e2.heap[++e2.heap_len] = u2 < 2 ? ++u2 : 0)] = 1, e2.depth[i2] = 0, e2.opt_len--, o2 && (e2.static_len -= a2[2 * i2 + 1]);
38335
- for (t2.max_code = u2, r22 = e2.heap_len >> 1; 1 <= r22; r22--) G2(e2, s22, r22);
38498
+ var r22, n2, i2, s22 = t2.dyn_tree, a2 = t2.stat_desc.static_tree, o2 = t2.stat_desc.has_stree, h22 = t2.stat_desc.elems, u22 = -1;
38499
+ for (e2.heap_len = 0, e2.heap_max = _2, r22 = 0; r22 < h22; r22++) 0 !== s22[2 * r22] ? (e2.heap[++e2.heap_len] = u22 = r22, e2.depth[r22] = 0) : s22[2 * r22 + 1] = 0;
38500
+ for (; e2.heap_len < 2; ) s22[2 * (i2 = e2.heap[++e2.heap_len] = u22 < 2 ? ++u22 : 0)] = 1, e2.depth[i2] = 0, e2.opt_len--, o2 && (e2.static_len -= a2[2 * i2 + 1]);
38501
+ for (t2.max_code = u22, r22 = e2.heap_len >> 1; 1 <= r22; r22--) G2(e2, s22, r22);
38336
38502
  for (i2 = h22; r22 = e2.heap[1], e2.heap[1] = e2.heap[e2.heap_len--], G2(e2, s22, 1), n2 = e2.heap[1], e2.heap[--e2.heap_max] = r22, e2.heap[--e2.heap_max] = n2, s22[2 * i2] = s22[2 * r22] + s22[2 * n2], e2.depth[i2] = (e2.depth[r22] >= e2.depth[n2] ? e2.depth[r22] : e2.depth[n2]) + 1, s22[2 * r22 + 1] = s22[2 * n2 + 1] = i2, e2.heap[1] = i2++, G2(e2, s22, 1), 2 <= e2.heap_len; ) ;
38337
38503
  e2.heap[--e2.heap_max] = e2.heap[1], (function(e3, t3) {
38338
- var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree, u3 = t3.max_code, l22 = t3.stat_desc.static_tree, f22 = t3.stat_desc.has_stree, c22 = t3.stat_desc.extra_bits, d22 = t3.stat_desc.extra_base, p2 = t3.stat_desc.max_length, m22 = 0;
38504
+ var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree, u32 = t3.max_code, l2 = t3.stat_desc.static_tree, f22 = t3.stat_desc.has_stree, c22 = t3.stat_desc.extra_bits, d22 = t3.stat_desc.extra_base, p2 = t3.stat_desc.max_length, m22 = 0;
38339
38505
  for (s3 = 0; s3 <= g; s3++) e3.bl_count[s3] = 0;
38340
- for (h3[2 * e3.heap[e3.heap_max] + 1] = 0, r3 = e3.heap_max + 1; r3 < _2; r3++) p2 < (s3 = h3[2 * h3[2 * (n3 = e3.heap[r3]) + 1] + 1] + 1) && (s3 = p2, m22++), h3[2 * n3 + 1] = s3, u3 < n3 || (e3.bl_count[s3]++, a3 = 0, d22 <= n3 && (a3 = c22[n3 - d22]), o3 = h3[2 * n3], e3.opt_len += o3 * (s3 + a3), f22 && (e3.static_len += o3 * (l22[2 * n3 + 1] + a3)));
38506
+ for (h3[2 * e3.heap[e3.heap_max] + 1] = 0, r3 = e3.heap_max + 1; r3 < _2; r3++) p2 < (s3 = h3[2 * h3[2 * (n3 = e3.heap[r3]) + 1] + 1] + 1) && (s3 = p2, m22++), h3[2 * n3 + 1] = s3, u32 < n3 || (e3.bl_count[s3]++, a3 = 0, d22 <= n3 && (a3 = c22[n3 - d22]), o3 = h3[2 * n3], e3.opt_len += o3 * (s3 + a3), f22 && (e3.static_len += o3 * (l2[2 * n3 + 1] + a3)));
38341
38507
  if (0 !== m22) {
38342
38508
  do {
38343
38509
  for (s3 = p2 - 1; 0 === e3.bl_count[s3]; ) s3--;
38344
38510
  e3.bl_count[s3]--, e3.bl_count[s3 + 1] += 2, e3.bl_count[p2]--, m22 -= 2;
38345
38511
  } while (0 < m22);
38346
- for (s3 = p2; 0 !== s3; s3--) for (n3 = e3.bl_count[s3]; 0 !== n3; ) u3 < (i3 = e3.heap[--r3]) || (h3[2 * i3 + 1] !== s3 && (e3.opt_len += (s3 - h3[2 * i3 + 1]) * h3[2 * i3], h3[2 * i3 + 1] = s3), n3--);
38512
+ for (s3 = p2; 0 !== s3; s3--) for (n3 = e3.bl_count[s3]; 0 !== n3; ) u32 < (i3 = e3.heap[--r3]) || (h3[2 * i3 + 1] !== s3 && (e3.opt_len += (s3 - h3[2 * i3 + 1]) * h3[2 * i3], h3[2 * i3 + 1] = s3), n3--);
38347
38513
  }
38348
- })(e2, t2), Z(s22, u2, e2.bl_count);
38514
+ })(e2, t2), Z(s22, u22, e2.bl_count);
38349
38515
  }
38350
38516
  function X2(e2, t2, r22) {
38351
- var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u2 = 4;
38352
- for (0 === a2 && (h22 = 138, u2 = 3), t2[2 * (r22 + 1) + 1] = 65535, n2 = 0; n2 <= r22; n2++) i2 = a2, a2 = t2[2 * (n2 + 1) + 1], ++o2 < h22 && i2 === a2 || (o2 < u2 ? e2.bl_tree[2 * i2] += o2 : 0 !== i2 ? (i2 !== s22 && e2.bl_tree[2 * i2]++, e2.bl_tree[2 * b2]++) : o2 <= 10 ? e2.bl_tree[2 * v2]++ : e2.bl_tree[2 * y2]++, s22 = i2, u2 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4));
38517
+ var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u22 = 4;
38518
+ for (0 === a2 && (h22 = 138, u22 = 3), t2[2 * (r22 + 1) + 1] = 65535, n2 = 0; n2 <= r22; n2++) i2 = a2, a2 = t2[2 * (n2 + 1) + 1], ++o2 < h22 && i2 === a2 || (o2 < u22 ? e2.bl_tree[2 * i2] += o2 : 0 !== i2 ? (i2 !== s22 && e2.bl_tree[2 * i2]++, e2.bl_tree[2 * b2]++) : o2 <= 10 ? e2.bl_tree[2 * v2]++ : e2.bl_tree[2 * y2]++, s22 = i2, u22 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4));
38353
38519
  }
38354
38520
  function V2(e2, t2, r22) {
38355
- var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u2 = 4;
38356
- for (0 === a2 && (h22 = 138, u2 = 3), n2 = 0; n2 <= r22; n2++) if (i2 = a2, a2 = t2[2 * (n2 + 1) + 1], !(++o2 < h22 && i2 === a2)) {
38357
- if (o2 < u2) for (; L2(e2, i2, e2.bl_tree), 0 != --o2; ) ;
38521
+ var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u22 = 4;
38522
+ for (0 === a2 && (h22 = 138, u22 = 3), n2 = 0; n2 <= r22; n2++) if (i2 = a2, a2 = t2[2 * (n2 + 1) + 1], !(++o2 < h22 && i2 === a2)) {
38523
+ if (o2 < u22) for (; L2(e2, i2, e2.bl_tree), 0 != --o2; ) ;
38358
38524
  else 0 !== i2 ? (i2 !== s22 && (L2(e2, i2, e2.bl_tree), o2--), L2(e2, b2, e2.bl_tree), P2(e2, o2 - 3, 2)) : o2 <= 10 ? (L2(e2, v2, e2.bl_tree), P2(e2, o2 - 3, 3)) : (L2(e2, y2, e2.bl_tree), P2(e2, o2 - 11, 7));
38359
- s22 = i2, u2 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4);
38525
+ s22 = i2, u22 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4);
38360
38526
  }
38361
38527
  }
38362
- n(T);
38528
+ n(T2);
38363
38529
  var q2 = false;
38364
38530
  function J2(e2, t2, r22, n2) {
38365
38531
  P2(e2, (s2 << 1) + (n2 ? 1 : 0), 3), (function(e3, t3, r3, n3) {
@@ -38370,23 +38536,23 @@ function requireJszip_min() {
38370
38536
  q2 || ((function() {
38371
38537
  var e3, t2, r22, n2, i2, s22 = new Array(g + 1);
38372
38538
  for (n2 = r22 = 0; n2 < a - 1; n2++) for (I2[n2] = r22, e3 = 0; e3 < 1 << w2[n2]; e3++) A2[r22++] = n2;
38373
- for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (T[n2] = i2, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i2++] = n2;
38374
- for (i2 >>= 7; n2 < f2; n2++) for (T[n2] = i2 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i2++] = n2;
38539
+ for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (T2[n2] = i2, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i2++] = n2;
38540
+ for (i2 >>= 7; n2 < f2; n2++) for (T2[n2] = i2 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i2++] = n2;
38375
38541
  for (t2 = 0; t2 <= g; t2++) s22[t2] = 0;
38376
38542
  for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
38377
38543
  for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s22[9]++;
38378
38544
  for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s22[7]++;
38379
38545
  for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
38380
- for (Z(z2, l3 + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
38381
- O2 = new D2(z2, w2, u + 1, l3, g), B2 = new D2(C2, k2, 0, f2, g), R2 = new D2(new Array(0), x, 0, c2, p);
38382
- })(), 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);
38546
+ for (Z(z2, l + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
38547
+ O = new D2(z2, w2, u3 + 1, l, g), B2 = new D2(C2, k2, 0, f2, g), R = new D2(new Array(0), x2, 0, c2, p);
38548
+ })(), 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);
38383
38549
  }, r2._tr_stored_block = J2, r2._tr_flush_block = function(e2, t2, r22, n2) {
38384
38550
  var i2, s22, a2 = 0;
38385
38551
  0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = (function(e3) {
38386
38552
  var t3, r3 = 4093624447;
38387
38553
  for (t3 = 0; t3 <= 31; t3++, r3 >>>= 1) if (1 & r3 && 0 !== e3.dyn_ltree[2 * t3]) return o;
38388
38554
  if (0 !== e3.dyn_ltree[18] || 0 !== e3.dyn_ltree[20] || 0 !== e3.dyn_ltree[26]) return h2;
38389
- for (t3 = 32; t3 < u; t3++) if (0 !== e3.dyn_ltree[2 * t3]) return h2;
38555
+ for (t3 = 32; t3 < u3; t3++) if (0 !== e3.dyn_ltree[2 * t3]) return h2;
38390
38556
  return o;
38391
38557
  })(e2)), Y2(e2, e2.l_desc), Y2(e2, e2.d_desc), a2 = (function(e3) {
38392
38558
  var t3;
@@ -38398,7 +38564,7 @@ function requireJszip_min() {
38398
38564
  V2(e3, e3.dyn_ltree, t3 - 1), V2(e3, e3.dyn_dtree, r3 - 1);
38399
38565
  })(e2, e2.l_desc.max_code + 1, e2.d_desc.max_code + 1, a2 + 1), K2(e2, e2.dyn_ltree, e2.dyn_dtree)), W2(e2), n2 && M2(e2);
38400
38566
  }, r2._tr_tally = function(e2, t2, r22) {
38401
- return e2.pending_buf[e2.d_buf + 2 * e2.last_lit] = t2 >>> 8 & 255, e2.pending_buf[e2.d_buf + 2 * e2.last_lit + 1] = 255 & t2, e2.pending_buf[e2.l_buf + e2.last_lit] = 255 & r22, e2.last_lit++, 0 === t2 ? e2.dyn_ltree[2 * r22]++ : (e2.matches++, t2--, e2.dyn_ltree[2 * (A2[r22] + u + 1)]++, e2.dyn_dtree[2 * N2(t2)]++), e2.last_lit === e2.lit_bufsize - 1;
38567
+ return e2.pending_buf[e2.d_buf + 2 * e2.last_lit] = t2 >>> 8 & 255, e2.pending_buf[e2.d_buf + 2 * e2.last_lit + 1] = 255 & t2, e2.pending_buf[e2.l_buf + e2.last_lit] = 255 & r22, e2.last_lit++, 0 === t2 ? e2.dyn_ltree[2 * r22]++ : (e2.matches++, t2--, e2.dyn_ltree[2 * (A2[r22] + u3 + 1)]++, e2.dyn_dtree[2 * N2(t2)]++), e2.last_lit === e2.lit_bufsize - 1;
38402
38568
  }, r2._tr_align = function(e2) {
38403
38569
  P2(e2, 2, 3), L2(e2, m2, z2), (function(e3) {
38404
38570
  16 === e3.bi_valid ? (U2(e3, e3.bi_buf), e3.bi_buf = 0, e3.bi_valid = 0) : 8 <= e3.bi_valid && (e3.pending_buf[e3.pending++] = 255 & e3.bi_buf, e3.bi_buf >>= 8, e3.bi_valid -= 8);
@@ -38412,7 +38578,7 @@ function requireJszip_min() {
38412
38578
  (function(e2) {
38413
38579
  !(function(r22, n) {
38414
38580
  if (!r22.setImmediate) {
38415
- var i, s2, t2, a, o = 1, h2 = {}, u = false, l3 = r22.document, e3 = Object.getPrototypeOf && Object.getPrototypeOf(r22);
38581
+ var i, s2, t2, a, o = 1, h2 = {}, u3 = false, l = r22.document, e3 = Object.getPrototypeOf && Object.getPrototypeOf(r22);
38416
38582
  e3 = e3 && e3.setTimeout ? e3 : r22, i = "[object process]" === {}.toString.call(r22.process) ? function(e4) {
38417
38583
  process$1$1.nextTick(function() {
38418
38584
  c2(e4);
@@ -38430,8 +38596,8 @@ function requireJszip_min() {
38430
38596
  c2(e4.data);
38431
38597
  }, function(e4) {
38432
38598
  t2.port2.postMessage(e4);
38433
- }) : l3 && "onreadystatechange" in l3.createElement("script") ? (s2 = l3.documentElement, function(e4) {
38434
- var t3 = l3.createElement("script");
38599
+ }) : l && "onreadystatechange" in l.createElement("script") ? (s2 = l.documentElement, function(e4) {
38600
+ var t3 = l.createElement("script");
38435
38601
  t3.onreadystatechange = function() {
38436
38602
  c2(e4), t3.onreadystatechange = null, s2.removeChild(t3), t3 = null;
38437
38603
  }, s2.appendChild(t3);
@@ -38448,11 +38614,11 @@ function requireJszip_min() {
38448
38614
  delete h2[e4];
38449
38615
  }
38450
38616
  function c2(e4) {
38451
- if (u) setTimeout(c2, 0, e4);
38617
+ if (u3) setTimeout(c2, 0, e4);
38452
38618
  else {
38453
38619
  var t3 = h2[e4];
38454
38620
  if (t3) {
38455
- u = true;
38621
+ u3 = true;
38456
38622
  try {
38457
38623
  !(function(e5) {
38458
38624
  var t4 = e5.callback, r3 = e5.args;
@@ -38474,7 +38640,7 @@ function requireJszip_min() {
38474
38640
  }
38475
38641
  })(t3);
38476
38642
  } finally {
38477
- f2(e4), u = false;
38643
+ f2(e4), u3 = false;
38478
38644
  }
38479
38645
  }
38480
38646
  }
@@ -38720,14 +38886,14 @@ class DocxZipper {
38720
38886
  const zip = await this.zip.loadAsync(file);
38721
38887
  return zip;
38722
38888
  }
38723
- async updateZip({ docx, updatedDocs, originalDocxFile, media, fonts, isHeadless }) {
38889
+ async updateZip({ docx, updatedDocs, originalDocxFile, media, fonts, isHeadless: isHeadless2 }) {
38724
38890
  let zip;
38725
38891
  if (originalDocxFile) {
38726
38892
  zip = await this.exportFromOriginalFile(originalDocxFile, updatedDocs, media);
38727
38893
  } else {
38728
38894
  zip = await this.exportFromCollaborativeDocx(docx, updatedDocs, media, fonts);
38729
38895
  }
38730
- const exportType = isHeadless ? "nodebuffer" : "blob";
38896
+ const exportType = isHeadless2 ? "nodebuffer" : "blob";
38731
38897
  return await zip.generateAsync({ type: exportType });
38732
38898
  }
38733
38899
  /**
@@ -39455,17 +39621,17 @@ function deepActiveElement(doc2) {
39455
39621
  elt = elt.shadowRoot.activeElement;
39456
39622
  return elt;
39457
39623
  }
39458
- function caretFromPoint(doc2, x, y2) {
39624
+ function caretFromPoint(doc2, x2, y2) {
39459
39625
  if (doc2.caretPositionFromPoint) {
39460
39626
  try {
39461
- let pos = doc2.caretPositionFromPoint(x, y2);
39627
+ let pos = doc2.caretPositionFromPoint(x2, y2);
39462
39628
  if (pos)
39463
39629
  return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
39464
39630
  } catch (_2) {
39465
39631
  }
39466
39632
  }
39467
39633
  if (doc2.caretRangeFromPoint) {
39468
- let range2 = doc2.caretRangeFromPoint(x, y2);
39634
+ let range2 = doc2.caretRangeFromPoint(x2, y2);
39469
39635
  if (range2)
39470
39636
  return { node: range2.startContainer, offset: Math.min(nodeSize(range2.startContainer), range2.startOffset) };
39471
39637
  }
@@ -39564,8 +39730,8 @@ function scrollRectIntoView(view, rect, startDOM) {
39564
39730
  function storeScrollPos(view) {
39565
39731
  let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
39566
39732
  let refDOM, refTop;
39567
- for (let x = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
39568
- let dom = view.root.elementFromPoint(x, y2);
39733
+ for (let x2 = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
39734
+ let dom = view.root.elementFromPoint(x2, y2);
39569
39735
  if (!dom || dom == view.dom || !view.dom.contains(dom))
39570
39736
  continue;
39571
39737
  let localRect = dom.getBoundingClientRect();
@@ -39861,8 +40027,8 @@ function coordsAtPos(view, pos, side) {
39861
40027
  function flattenV(rect, left2) {
39862
40028
  if (rect.width == 0)
39863
40029
  return rect;
39864
- let x = left2 ? rect.left : rect.right;
39865
- return { top: rect.top, bottom: rect.bottom, left: x, right: x };
40030
+ let x2 = left2 ? rect.left : rect.right;
40031
+ return { top: rect.top, bottom: rect.bottom, left: x2, right: x2 };
39866
40032
  }
39867
40033
  function flattenH(rect, top2) {
39868
40034
  if (rect.height == 0)
@@ -44869,10 +45035,10 @@ const createTimeoutClass = (clearFunction) => class TT {
44869
45035
  const Timeout = createTimeoutClass(clearTimeout);
44870
45036
  const timeout = (timeout2, callback) => new Timeout(setTimeout(callback, timeout2));
44871
45037
  const rotr = (w2, shift2) => w2 >>> shift2 | w2 << 32 - shift2;
44872
- const sum0to256 = (x) => rotr(x, 2) ^ rotr(x, 13) ^ rotr(x, 22);
44873
- const sum1to256 = (x) => rotr(x, 6) ^ rotr(x, 11) ^ rotr(x, 25);
44874
- const sigma0to256 = (x) => rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3;
44875
- const sigma1to256 = (x) => rotr(x, 17) ^ rotr(x, 19) ^ x >>> 10;
45038
+ const sum0to256 = (x2) => rotr(x2, 2) ^ rotr(x2, 13) ^ rotr(x2, 22);
45039
+ const sum1to256 = (x2) => rotr(x2, 6) ^ rotr(x2, 11) ^ rotr(x2, 25);
45040
+ const sigma0to256 = (x2) => rotr(x2, 7) ^ rotr(x2, 18) ^ x2 >>> 3;
45041
+ const sigma1to256 = (x2) => rotr(x2, 17) ^ rotr(x2, 19) ^ x2 >>> 10;
44876
45042
  const K = new Uint32Array([
44877
45043
  1116352408,
44878
45044
  1899447441,
@@ -45701,9 +45867,9 @@ const equalAttrs = (pattrs, yattrs) => {
45701
45867
  let eq2 = keys2.length === (yattrs == null ? 0 : Object.keys(yattrs).filter((key2) => yattrs[key2] !== null).length);
45702
45868
  for (let i = 0; i < keys2.length && eq2; i++) {
45703
45869
  const key2 = keys2[i];
45704
- const l3 = pattrs[key2];
45870
+ const l = pattrs[key2];
45705
45871
  const r2 = yattrs[key2];
45706
- eq2 = key2 === "ychange" || l3 === r2 || isObject$1(l3) && isObject$1(r2) && equalAttrs(l3, r2);
45872
+ eq2 = key2 === "ychange" || l === r2 || isObject$1(l) && isObject$1(r2) && equalAttrs(l, r2);
45707
45873
  }
45708
45874
  return eq2;
45709
45875
  };
@@ -50463,9 +50629,15 @@ const applyStyleIsolationClass = (target) => {
50463
50629
  if (!target || !target.classList) return;
50464
50630
  target.classList.add(STYLE_ISOLATION_CLASS);
50465
50631
  };
50632
+ const isHeadless = (editor) => {
50633
+ return editor?.options?.isHeadless ?? false;
50634
+ };
50635
+ const shouldSkipNodeView = (editor) => {
50636
+ return isHeadless(editor);
50637
+ };
50466
50638
  const PaginationPluginKey = new PluginKey("paginationPlugin");
50467
50639
  const initPaginationData = async (editor) => {
50468
- if (!editor.converter) return;
50640
+ if (isHeadless(editor) || !editor.converter) return;
50469
50641
  const sectionData = { headers: {}, footers: {} };
50470
50642
  const headerIds = editor.converter.headerIds.ids;
50471
50643
  const footerIds = editor.converter.footerIds.ids;
@@ -50601,6 +50773,7 @@ const broadcastEditorEvents = (editor, sectionEditor) => {
50601
50773
  });
50602
50774
  };
50603
50775
  const toggleHeaderFooterEditMode = ({ editor, focusedSectionEditor, isEditMode, documentMode }) => {
50776
+ if (isHeadless(editor)) return;
50604
50777
  editor.converter.headerEditors.forEach((item) => {
50605
50778
  item.editor.setEditable(isEditMode, false);
50606
50779
  item.editor.view.dom.setAttribute("aria-readonly", !isEditMode);
@@ -53670,10 +53843,12 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
53670
53843
  };
53671
53844
  if ("orientation" in screen && "addEventListener" in screen.orientation) {
53672
53845
  screen.orientation.addEventListener("change", handleResize);
53673
- } else {
53846
+ } else if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
53674
53847
  window.matchMedia("(orientation: portrait)").addEventListener("change", handleResize);
53675
53848
  }
53676
- window.addEventListener("resize", () => handleResize);
53849
+ if (typeof window !== "undefined" && typeof window.addEventListener === "function") {
53850
+ window.addEventListener("resize", () => handleResize);
53851
+ }
53677
53852
  }
53678
53853
  /**
53679
53854
  * Get document identifier for telemetry (async - may generate hash)
@@ -53787,7 +53962,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
53787
53962
  { default: remarkStringify },
53788
53963
  { default: remarkGfm }
53789
53964
  ] = await Promise.all([
53790
- import("./index-sJFE-5Sw-r5deiWbP.es.js"),
53965
+ import("./index-C3nnrhrj-D8emuLzt.es.js"),
53791
53966
  import("./index-DRCvimau-Cw339678.es.js"),
53792
53967
  import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
53793
53968
  import("./index-D_sWOSiG-DE96TaT5.es.js"),
@@ -53839,7 +54014,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
53839
54014
  this.initDefaultStyles();
53840
54015
  hasMadeUpdate = true;
53841
54016
  }
53842
- if (hasMadeUpdate) {
54017
+ if (hasMadeUpdate && !isHeadless(this)) {
53843
54018
  const newTr = this.view.state.tr;
53844
54019
  newTr.setMeta("forceUpdatePagination", true);
53845
54020
  this.view.dispatch(newTr);
@@ -54005,7 +54180,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
54005
54180
  * @returns {Object | void} Migration results
54006
54181
  */
54007
54182
  processCollaborationMigrations() {
54008
- console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.9");
54183
+ console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.1");
54009
54184
  if (!this.options.ydoc) return;
54010
54185
  const metaMap = this.options.ydoc.getMap("meta");
54011
54186
  let docVersion = metaMap.get("version");
@@ -54439,16 +54614,18 @@ createView_fn = function(element) {
54439
54614
  handleClick: __privateMethod$1(this, _Editor_instances, handleNodeSelection_fn).bind(this),
54440
54615
  handleDoubleClick: async (view, pos, event) => {
54441
54616
  if (this.options.documentMode !== "editing") return;
54442
- const isHeader = hasSomeParentWithClass(event.target, "pagination-section-header");
54443
- const isFooter = hasSomeParentWithClass(event.target, "pagination-section-footer");
54444
- if (isHeader || isFooter) {
54445
- const eventClone = new event.constructor(event.type);
54446
- event.target.dispatchEvent(eventClone);
54447
- if (this.options.isHeaderOrFooter && this.options.editable) setWordSelection(view, pos);
54448
- return;
54617
+ if (!isHeadless(this)) {
54618
+ const isHeader = hasSomeParentWithClass(event.target, "pagination-section-header");
54619
+ const isFooter = hasSomeParentWithClass(event.target, "pagination-section-footer");
54620
+ if (isHeader || isFooter) {
54621
+ const eventClone = new event.constructor(event.type);
54622
+ event.target.dispatchEvent(eventClone);
54623
+ if (this.options.isHeaderOrFooter && this.options.editable) setWordSelection(view, pos);
54624
+ return;
54625
+ }
54449
54626
  }
54450
54627
  event.stopPropagation();
54451
- if (!this.options.editable) {
54628
+ if (!this.options.editable && !isHeadless(this)) {
54452
54629
  this.setEditable(true, false);
54453
54630
  toggleHeaderFooterEditMode({
54454
54631
  editor: this,
@@ -55879,16 +56056,16 @@ function getCursorPositionRelativeToContainer(view, eventLocation) {
55879
56056
  const { state: state2, dom } = view;
55880
56057
  const { selection } = state2;
55881
56058
  const containerRect = dom.getBoundingClientRect();
55882
- let x, y2;
56059
+ let x2, y2;
55883
56060
  if (typeof eventLocation.clientX === "number" && typeof eventLocation.clientY === "number") {
55884
- x = eventLocation.clientX - containerRect.left;
56061
+ x2 = eventLocation.clientX - containerRect.left;
55885
56062
  y2 = eventLocation.clientY - containerRect.top;
55886
56063
  } else {
55887
56064
  const cursorCoords = view.coordsAtPos(selection.from);
55888
- x = cursorCoords.left - containerRect.left;
56065
+ x2 = cursorCoords.left - containerRect.left;
55889
56066
  y2 = cursorCoords.top - containerRect.top;
55890
56067
  }
55891
- return { left: x, top: y2 };
56068
+ return { left: x2, top: y2 };
55892
56069
  }
55893
56070
  const SlashMenuPluginKey = new PluginKey("slashMenu");
55894
56071
  const SlashMenu = Extension.create({
@@ -56167,17 +56344,17 @@ class StructuredContentViewBase {
56167
56344
  if (!this.dom || this.contentDOM?.contains(target) || !dragHandle) {
56168
56345
  return;
56169
56346
  }
56170
- let x = 0;
56347
+ let x2 = 0;
56171
56348
  let y2 = 0;
56172
56349
  if (this.dom !== dragHandle) {
56173
56350
  const domBox = this.dom.getBoundingClientRect();
56174
56351
  const handleBox = dragHandle.getBoundingClientRect();
56175
56352
  const offsetX = event.offsetX ?? event.nativeEvent?.offsetX;
56176
56353
  const offsetY = event.offsetY ?? event.nativeEvent?.offsetY;
56177
- x = handleBox.x - domBox.x + offsetX;
56354
+ x2 = handleBox.x - domBox.x + offsetX;
56178
56355
  y2 = handleBox.y - domBox.y + offsetY;
56179
56356
  }
56180
- event.dataTransfer?.setDragImage(this.dom, x, y2);
56357
+ event.dataTransfer?.setDragImage(this.dom, x2, y2);
56181
56358
  const pos = this.getPos();
56182
56359
  if (typeof pos !== "number") {
56183
56360
  return;
@@ -59084,9 +59261,6 @@ function orderedListSync(editor) {
59084
59261
  }
59085
59262
  });
59086
59263
  }
59087
- const shouldSkipNodeView = (editor) => {
59088
- return editor.options.isHeadless;
59089
- };
59090
59264
  const ListItem = Node$1.create({
59091
59265
  name: "listItem",
59092
59266
  content: "paragraph* block*",
@@ -64268,24 +64442,24 @@ function parseToRgba(color) {
64268
64442
  const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
64269
64443
  if (reducedHexMatch) {
64270
64444
  const arr = Array.from(reducedHexMatch).slice(1);
64271
- return [...arr.slice(0, 3).map((x) => parseInt(r$1(x, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
64445
+ return [...arr.slice(0, 3).map((x2) => parseInt(r$1(x2, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
64272
64446
  }
64273
64447
  const hexMatch = hexRegex$1.exec(normalizedColor);
64274
64448
  if (hexMatch) {
64275
64449
  const arr = Array.from(hexMatch).slice(1);
64276
- return [...arr.slice(0, 3).map((x) => parseInt(x, 16)), parseInt(arr[3] || "ff", 16) / 255];
64450
+ return [...arr.slice(0, 3).map((x2) => parseInt(x2, 16)), parseInt(arr[3] || "ff", 16) / 255];
64277
64451
  }
64278
64452
  const rgbaMatch = rgbaRegex$1.exec(normalizedColor);
64279
64453
  if (rgbaMatch) {
64280
64454
  const arr = Array.from(rgbaMatch).slice(1);
64281
- return [...arr.slice(0, 3).map((x) => parseInt(x, 10)), parseFloat(arr[3] || "1")];
64455
+ return [...arr.slice(0, 3).map((x2) => parseInt(x2, 10)), parseFloat(arr[3] || "1")];
64282
64456
  }
64283
64457
  const hslaMatch = hslaRegex$1.exec(normalizedColor);
64284
64458
  if (hslaMatch) {
64285
- const [h2, s2, l3, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
64459
+ const [h2, s2, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
64286
64460
  if (guard(0, 100, s2) !== s2) throw new ColorError$1(color);
64287
- if (guard(0, 100, l3) !== l3) throw new ColorError$1(color);
64288
- return [...hslToRgb(h2, s2, l3), Number.isNaN(a) ? 1 : a];
64461
+ if (guard(0, 100, l) !== l) throw new ColorError$1(color);
64462
+ return [...hslToRgb(h2, s2, l), Number.isNaN(a) ? 1 : a];
64289
64463
  }
64290
64464
  throw new ColorError$1(color);
64291
64465
  }
@@ -64297,7 +64471,7 @@ function hash$2(str) {
64297
64471
  }
64298
64472
  return (hash2 >>> 0) % 2341;
64299
64473
  }
64300
- const colorToInt = (x) => parseInt(x.replace(/_/g, ""), 36);
64474
+ const colorToInt = (x2) => parseInt(x2.replace(/_/g, ""), 36);
64301
64475
  const compressedColorMap = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((acc, next) => {
64302
64476
  const key2 = colorToInt(next.substring(0, 3));
64303
64477
  const hex2 = colorToInt(next.substring(3)).toString(16);
@@ -64324,12 +64498,12 @@ const roundColor = (color) => {
64324
64498
  return Math.round(color * 255);
64325
64499
  };
64326
64500
  const hslToRgb = (hue, saturation, lightness) => {
64327
- let l3 = lightness / 100;
64501
+ let l = lightness / 100;
64328
64502
  if (saturation === 0) {
64329
- return [l3, l3, l3].map(roundColor);
64503
+ return [l, l, l].map(roundColor);
64330
64504
  }
64331
64505
  const huePrime = (hue % 360 + 360) % 360 / 60;
64332
- const chroma = (1 - Math.abs(2 * l3 - 1)) * (saturation / 100);
64506
+ const chroma = (1 - Math.abs(2 * l - 1)) * (saturation / 100);
64333
64507
  const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
64334
64508
  let red = 0;
64335
64509
  let green = 0;
@@ -64353,7 +64527,7 @@ const hslToRgb = (hue, saturation, lightness) => {
64353
64527
  red = chroma;
64354
64528
  blue = secondComponent;
64355
64529
  }
64356
- const lightnessModification = l3 - chroma / 2;
64530
+ const lightnessModification = l - chroma / 2;
64357
64531
  const finalRed = red + lightnessModification;
64358
64532
  const finalGreen = green + lightnessModification;
64359
64533
  const finalBlue = blue + lightnessModification;
@@ -64361,8 +64535,8 @@ const hslToRgb = (hue, saturation, lightness) => {
64361
64535
  };
64362
64536
  function toHex(color) {
64363
64537
  const [r2, g, b2, a] = parseToRgba(color);
64364
- let hex2 = (x) => {
64365
- const h2 = guard(0, 255, x).toString(16);
64538
+ let hex2 = (x2) => {
64539
+ const h2 = guard(0, 255, x2).toString(16);
64366
64540
  return h2.length === 1 ? `0${h2}` : h2;
64367
64541
  };
64368
64542
  return `#${hex2(r2)}${hex2(g)}${hex2(b2)}${a < 1 ? hex2(Math.round(a * 255)) : ""}`;
@@ -65058,7 +65232,7 @@ const FieldAnnotation = Node$1.create({
65058
65232
  }
65059
65233
  if (dispatch) {
65060
65234
  commands2.updateFieldAnnotationsAttributes([annotation], attrs);
65061
- if (this.editor.options.pagination) {
65235
+ if (this.editor.options.pagination && !isHeadless(this.editor)) {
65062
65236
  setTimeout(() => {
65063
65237
  const newTr = this.editor.view.state.tr;
65064
65238
  newTr.setMeta("forceUpdatePagination", true);
@@ -66466,10 +66640,10 @@ const Image = Node$1.create({
66466
66640
  let minX = 0;
66467
66641
  let minY = 0;
66468
66642
  let maxY = 0;
66469
- attrs.polygon.forEach(([x, y2]) => {
66470
- if (floatRight && x < horizontalOffset) horizontalOffset = x;
66471
- if (x > maxX) maxX = x;
66472
- if (x < minX) minX = x;
66643
+ attrs.polygon.forEach(([x2, y2]) => {
66644
+ if (floatRight && x2 < horizontalOffset) horizontalOffset = x2;
66645
+ if (x2 > maxX) maxX = x2;
66646
+ if (x2 < minX) minX = x2;
66473
66647
  if (y2 > maxY) maxY = y2;
66474
66648
  if (y2 < minY) minY = y2;
66475
66649
  });
@@ -66478,7 +66652,7 @@ const Image = Node$1.create({
66478
66652
  const scaleWidth = Math.min(1, size2.width / originalWidth);
66479
66653
  const scaleHeight = Math.min(1, size2.height / originalHeight);
66480
66654
  const verticalOffset = Math.max(0, marginOffset.top);
66481
- const points = attrs.polygon.map(([x, y2]) => `${horizontalOffset + x * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
66655
+ const points = attrs.polygon.map(([x2, y2]) => `${horizontalOffset + x2 * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
66482
66656
  style2 += `shape-outside: polygon(${points});`;
66483
66657
  }
66484
66658
  break;
@@ -66995,7 +67169,9 @@ const PageNumber = Node$1.create({
66995
67169
  const pageNumberNode = schema.nodeFromJSON(pageNumberNodeJSON);
66996
67170
  if (dispatch) {
66997
67171
  tr.replaceSelectionWith(pageNumberNode, false);
66998
- tr.setMeta("forceUpdatePagination", true);
67172
+ if (!isHeadless(editor)) {
67173
+ tr.setMeta("forceUpdatePagination", true);
67174
+ }
66999
67175
  }
67000
67176
  return true;
67001
67177
  }
@@ -69843,42 +70019,42 @@ var M = ["fill", "stroke", "strokeWidth", "fillRule", "clipRule"], d = s;
69843
70019
  function r(t) {
69844
70020
  if (!t) return null;
69845
70021
  let e = {};
69846
- return M.forEach((l3) => {
69847
- let L2 = t[l3];
70022
+ return M.forEach((l) => {
70023
+ let L2 = t[l];
69848
70024
  if (L2 !== void 0)
69849
- if (l3 === "strokeWidth") {
70025
+ if (l === "strokeWidth") {
69850
70026
  if (typeof L2 == "number") e.strokeWidth = L2;
69851
70027
  else if (typeof L2 == "string") {
69852
70028
  let o = Number(L2);
69853
70029
  Number.isFinite(o) && (e.strokeWidth = o);
69854
70030
  }
69855
- } else typeof L2 == "string" && (e[l3] = L2);
70031
+ } else typeof L2 == "string" && (e[l] = L2);
69856
70032
  }), Object.keys(e).length ? e : null;
69857
70033
  }
69858
70034
  function A(t, e) {
69859
- let l3 = t.map((o) => ({ ...o }));
69860
- if (!e) return l3;
70035
+ let l = t.map((o) => ({ ...o }));
70036
+ if (!e) return l;
69861
70037
  let L2 = (o, i) => typeof e == "function" ? r(e(o, i)) : Array.isArray(e) ? r(e[i]) : r(e);
69862
- return l3.map((o, i) => {
70038
+ return l.map((o, i) => {
69863
70039
  let n = L2(o, i);
69864
70040
  return n ? { ...o, ...n } : o;
69865
70041
  });
69866
70042
  }
69867
70043
  function f(t) {
69868
- let { preset: e, styleOverrides: l3 } = t;
70044
+ let { preset: e, styleOverrides: l } = t;
69869
70045
  if (!e) throw new Error("createPresetShape requires a preset name.");
69870
70046
  let L2 = d[e];
69871
70047
  if (!L2) throw new Error(`Unknown preset shape: ${e}`);
69872
- return { preset: e, viewBox: L2.viewBox, paths: A(L2.paths, l3) };
70048
+ return { preset: e, viewBox: L2.viewBox, paths: A(L2.paths, l) };
69873
70049
  }
69874
70050
  function k(t) {
69875
- let e = f(t), l3 = e.paths.map((L2) => {
70051
+ let e = f(t), l = e.paths.map((L2) => {
69876
70052
  let o = [`d="${L2.d}"`];
69877
70053
  return L2.fill !== void 0 && o.push(`fill="${L2.fill}"`), L2.stroke !== void 0 && o.push(`stroke="${L2.stroke}"`), L2.strokeWidth !== void 0 && o.push(`stroke-width="${L2.strokeWidth}"`), L2.fillRule !== void 0 && o.push(`fill-rule="${L2.fillRule}"`), L2.clipRule !== void 0 && o.push(`clip-rule="${L2.clipRule}"`), ` <path ${o.join(" ")} />`;
69878
70054
  }).join(`
69879
70055
  `);
69880
70056
  return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${e.viewBox}" preserveAspectRatio="none">
69881
- ${l3}
70057
+ ${l}
69882
70058
  </svg>`;
69883
70059
  }
69884
70060
  class VectorShapeView {
@@ -70064,6 +70240,255 @@ const VectorShape = Node$1.create({
70064
70240
  };
70065
70241
  }
70066
70242
  });
70243
+ class ShapeGroupView {
70244
+ constructor(props) {
70245
+ __publicField$1(this, "node");
70246
+ __publicField$1(this, "view");
70247
+ __publicField$1(this, "getPos");
70248
+ __publicField$1(this, "decorations");
70249
+ __publicField$1(this, "innerDecorations");
70250
+ __publicField$1(this, "editor");
70251
+ __publicField$1(this, "extension");
70252
+ __publicField$1(this, "htmlAttributes");
70253
+ __publicField$1(this, "root");
70254
+ this.node = props.node;
70255
+ this.view = props.editor.view;
70256
+ this.getPos = props.getPos;
70257
+ this.decorations = props.decorations;
70258
+ this.innerDecorations = props.innerDecorations;
70259
+ this.editor = props.editor;
70260
+ this.extension = props.extension;
70261
+ this.htmlAttributes = props.htmlAttributes;
70262
+ this.mount();
70263
+ }
70264
+ mount() {
70265
+ this.buildView();
70266
+ }
70267
+ get dom() {
70268
+ return this.root;
70269
+ }
70270
+ get contentDOM() {
70271
+ return null;
70272
+ }
70273
+ createElement() {
70274
+ const attrs = this.node.attrs;
70275
+ const { groupTransform, shapes, size: size2 } = attrs;
70276
+ const container = document.createElement("div");
70277
+ container.classList.add("sd-shape-group");
70278
+ container.setAttribute("data-shape-group", "");
70279
+ const width = size2?.width || groupTransform?.width || 300;
70280
+ const height = size2?.height || groupTransform?.height || 200;
70281
+ container.style.width = `${width}px`;
70282
+ container.style.height = `${height}px`;
70283
+ container.style.position = "relative";
70284
+ container.style.display = "inline-block";
70285
+ const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
70286
+ svg.setAttribute("version", "1.1");
70287
+ svg.setAttribute("xmlns", "http://www.w3.org/2000/svg");
70288
+ svg.setAttribute("width", width.toString());
70289
+ svg.setAttribute("height", height.toString());
70290
+ svg.setAttribute("viewBox", `0 0 ${width} ${height}`);
70291
+ svg.style.display = "block";
70292
+ if (shapes && Array.isArray(shapes)) {
70293
+ shapes.forEach((shape) => {
70294
+ if (shape.shapeType === "vectorShape") {
70295
+ const shapeElement = this.createShapeElement(shape, groupTransform);
70296
+ if (shapeElement) {
70297
+ svg.appendChild(shapeElement);
70298
+ }
70299
+ }
70300
+ });
70301
+ }
70302
+ container.appendChild(svg);
70303
+ return { element: container };
70304
+ }
70305
+ createShapeElement(shape) {
70306
+ const attrs = shape.attrs;
70307
+ if (!attrs) return null;
70308
+ const x2 = attrs.x || 0;
70309
+ const y2 = attrs.y || 0;
70310
+ const width = attrs.width || 100;
70311
+ const height = attrs.height || 100;
70312
+ const g = document.createElementNS("http://www.w3.org/2000/svg", "g");
70313
+ const transforms = [];
70314
+ transforms.push(`translate(${x2}, ${y2})`);
70315
+ if (attrs.rotation !== 0) {
70316
+ transforms.push(`rotate(${attrs.rotation} ${width / 2} ${height / 2})`);
70317
+ }
70318
+ if (attrs.flipH) {
70319
+ transforms.push(`scale(-1, 1) translate(${-width}, 0)`);
70320
+ }
70321
+ if (attrs.flipV) {
70322
+ transforms.push(`scale(1, -1) translate(0, ${-height})`);
70323
+ }
70324
+ if (transforms.length > 0) {
70325
+ g.setAttribute("transform", transforms.join(" "));
70326
+ }
70327
+ const shapeKind = attrs.kind || "rect";
70328
+ const fillColor = attrs.fillColor || "#5b9bd5";
70329
+ const strokeColor = attrs.strokeColor || "#000000";
70330
+ const strokeWidth = attrs.strokeWidth || 1;
70331
+ try {
70332
+ const svgContent = k({
70333
+ preset: shapeKind,
70334
+ styleOverrides: {
70335
+ fill: fillColor || "none",
70336
+ stroke: strokeColor || "none",
70337
+ strokeWidth: strokeWidth || 0
70338
+ },
70339
+ width,
70340
+ height
70341
+ });
70342
+ if (svgContent) {
70343
+ const tempDiv = document.createElement("div");
70344
+ tempDiv.innerHTML = svgContent;
70345
+ const svgElement = tempDiv.querySelector("svg");
70346
+ if (svgElement) {
70347
+ Array.from(svgElement.children).forEach((child) => {
70348
+ const clonedChild = child.cloneNode(true);
70349
+ if (clonedChild.tagName === "ellipse") {
70350
+ clonedChild.setAttribute("cx", (width / 2).toString());
70351
+ clonedChild.setAttribute("cy", (height / 2).toString());
70352
+ clonedChild.setAttribute("rx", (width / 2).toString());
70353
+ clonedChild.setAttribute("ry", (height / 2).toString());
70354
+ } else if (clonedChild.tagName === "circle") {
70355
+ if (width !== height) {
70356
+ const ellipse = document.createElementNS("http://www.w3.org/2000/svg", "ellipse");
70357
+ ellipse.setAttribute("cx", (width / 2).toString());
70358
+ ellipse.setAttribute("cy", (height / 2).toString());
70359
+ ellipse.setAttribute("rx", (width / 2).toString());
70360
+ ellipse.setAttribute("ry", (height / 2).toString());
70361
+ Array.from(clonedChild.attributes).forEach((attr) => {
70362
+ if (!["cx", "cy", "r"].includes(attr.name)) {
70363
+ ellipse.setAttribute(attr.name, attr.value);
70364
+ }
70365
+ });
70366
+ g.appendChild(ellipse);
70367
+ return;
70368
+ } else {
70369
+ clonedChild.setAttribute("cx", (width / 2).toString());
70370
+ clonedChild.setAttribute("cy", (height / 2).toString());
70371
+ clonedChild.setAttribute("r", (width / 2).toString());
70372
+ }
70373
+ } else if (clonedChild.tagName === "rect") {
70374
+ clonedChild.setAttribute("width", width.toString());
70375
+ clonedChild.setAttribute("height", height.toString());
70376
+ } else if (clonedChild.tagName === "path" && svgElement.hasAttribute("viewBox")) {
70377
+ const viewBox = svgElement.getAttribute("viewBox").split(" ").map(Number);
70378
+ if (viewBox.length === 4) {
70379
+ const [, , vbWidth, vbHeight] = viewBox;
70380
+ const scaleX = width / vbWidth;
70381
+ const scaleY = height / vbHeight;
70382
+ if (scaleX !== 1 || scaleY !== 1) {
70383
+ const pathTransform = `scale(${scaleX}, ${scaleY})`;
70384
+ const existingTransform = clonedChild.getAttribute("transform");
70385
+ clonedChild.setAttribute(
70386
+ "transform",
70387
+ existingTransform ? `${existingTransform} ${pathTransform}` : pathTransform
70388
+ );
70389
+ }
70390
+ }
70391
+ } else if (clonedChild.hasAttribute("width")) {
70392
+ clonedChild.setAttribute("width", width.toString());
70393
+ }
70394
+ if (clonedChild.hasAttribute("height") && clonedChild.tagName !== "ellipse") {
70395
+ clonedChild.setAttribute("height", height.toString());
70396
+ }
70397
+ g.appendChild(clonedChild);
70398
+ });
70399
+ }
70400
+ }
70401
+ } catch (error) {
70402
+ console.warn("Failed to generate shape SVG:", error);
70403
+ const rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
70404
+ rect.setAttribute("width", width.toString());
70405
+ rect.setAttribute("height", height.toString());
70406
+ rect.setAttribute("fill", fillColor);
70407
+ rect.setAttribute("stroke", strokeColor);
70408
+ rect.setAttribute("stroke-width", strokeWidth.toString());
70409
+ g.appendChild(rect);
70410
+ }
70411
+ return g;
70412
+ }
70413
+ buildView() {
70414
+ const { element } = this.createElement();
70415
+ this.root = element;
70416
+ }
70417
+ update() {
70418
+ return false;
70419
+ }
70420
+ }
70421
+ const ShapeGroup = Node$1.create({
70422
+ name: "shapeGroup",
70423
+ group: "inline",
70424
+ inline: true,
70425
+ atom: true,
70426
+ addOptions() {
70427
+ return {
70428
+ htmlAttributes: {
70429
+ contenteditable: false
70430
+ }
70431
+ };
70432
+ },
70433
+ addAttributes() {
70434
+ return {
70435
+ groupTransform: {
70436
+ default: {},
70437
+ renderDOM: () => ({})
70438
+ },
70439
+ shapes: {
70440
+ default: [],
70441
+ renderDOM: () => ({})
70442
+ },
70443
+ size: {
70444
+ default: null,
70445
+ renderDOM: (attrs) => {
70446
+ if (!attrs.size) return {};
70447
+ const sizeData = {};
70448
+ if (attrs.size.width) sizeData["data-width"] = attrs.size.width;
70449
+ if (attrs.size.height) sizeData["data-height"] = attrs.size.height;
70450
+ return sizeData;
70451
+ }
70452
+ },
70453
+ padding: {
70454
+ default: null,
70455
+ renderDOM: (attrs) => {
70456
+ if (!attrs.padding) return {};
70457
+ const paddingData = {};
70458
+ if (attrs.padding.top != null) paddingData["data-padding-top"] = attrs.padding.top;
70459
+ if (attrs.padding.right != null) paddingData["data-padding-right"] = attrs.padding.right;
70460
+ if (attrs.padding.bottom != null) paddingData["data-padding-bottom"] = attrs.padding.bottom;
70461
+ if (attrs.padding.left != null) paddingData["data-padding-left"] = attrs.padding.left;
70462
+ return paddingData;
70463
+ }
70464
+ },
70465
+ marginOffset: {
70466
+ default: null,
70467
+ renderDOM: (attrs) => {
70468
+ if (!attrs.marginOffset) return {};
70469
+ const offsetData = {};
70470
+ if (attrs.marginOffset.horizontal != null) offsetData["data-offset-x"] = attrs.marginOffset.horizontal;
70471
+ if (attrs.marginOffset.top != null) offsetData["data-offset-y"] = attrs.marginOffset.top;
70472
+ return offsetData;
70473
+ }
70474
+ },
70475
+ drawingContent: {
70476
+ rendered: false
70477
+ }
70478
+ };
70479
+ },
70480
+ parseDOM() {
70481
+ return false;
70482
+ },
70483
+ renderDOM({ htmlAttributes }) {
70484
+ return ["div", Attribute2.mergeAttributes(this.options.htmlAttributes, htmlAttributes, { "data-shape-group": "" })];
70485
+ },
70486
+ addNodeView() {
70487
+ return (props) => {
70488
+ return new ShapeGroupView({ ...props });
70489
+ };
70490
+ }
70491
+ });
70067
70492
  const TextStyle = Mark2.create({
70068
70493
  name: "textStyle",
70069
70494
  addOptions() {
@@ -71613,7 +72038,7 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
71613
72038
  }
71614
72039
  var _ref = isElement$2(element) ? getWindow$1(element) : window, visualViewport = _ref.visualViewport;
71615
72040
  var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
71616
- var x = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
72041
+ var x2 = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
71617
72042
  var y2 = (clientRect2.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
71618
72043
  var width = clientRect2.width / scaleX;
71619
72044
  var height = clientRect2.height / scaleY;
@@ -71621,10 +72046,10 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
71621
72046
  width,
71622
72047
  height,
71623
72048
  top: y2,
71624
- right: x + width,
72049
+ right: x2 + width,
71625
72050
  bottom: y2 + height,
71626
- left: x,
71627
- x,
72051
+ left: x2,
72052
+ x: x2,
71628
72053
  y: y2
71629
72054
  };
71630
72055
  }
@@ -71825,25 +72250,25 @@ var unsetSides = {
71825
72250
  left: "auto"
71826
72251
  };
71827
72252
  function roundOffsetsByDPR(_ref, win) {
71828
- var x = _ref.x, y2 = _ref.y;
72253
+ var x2 = _ref.x, y2 = _ref.y;
71829
72254
  var dpr = win.devicePixelRatio || 1;
71830
72255
  return {
71831
- x: round$1(x * dpr) / dpr || 0,
72256
+ x: round$1(x2 * dpr) / dpr || 0,
71832
72257
  y: round$1(y2 * dpr) / dpr || 0
71833
72258
  };
71834
72259
  }
71835
72260
  function mapToStyles(_ref2) {
71836
72261
  var _Object$assign2;
71837
72262
  var popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
71838
- 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;
72263
+ 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;
71839
72264
  var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
71840
- x,
72265
+ x: x2,
71841
72266
  y: y2
71842
72267
  }) : {
71843
- x,
72268
+ x: x2,
71844
72269
  y: y2
71845
72270
  };
71846
- x = _ref3.x;
72271
+ x2 = _ref3.x;
71847
72272
  y2 = _ref3.y;
71848
72273
  var hasX = offsets.hasOwnProperty("x");
71849
72274
  var hasY = offsets.hasOwnProperty("y");
@@ -71877,27 +72302,27 @@ function mapToStyles(_ref2) {
71877
72302
  // $FlowFixMe[prop-missing]
71878
72303
  offsetParent[widthProp]
71879
72304
  );
71880
- x -= offsetX - popperRect.width;
71881
- x *= gpuAcceleration ? 1 : -1;
72305
+ x2 -= offsetX - popperRect.width;
72306
+ x2 *= gpuAcceleration ? 1 : -1;
71882
72307
  }
71883
72308
  }
71884
72309
  var commonStyles = Object.assign({
71885
72310
  position
71886
72311
  }, adaptive && unsetSides);
71887
72312
  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
71888
- x,
72313
+ x: x2,
71889
72314
  y: y2
71890
72315
  }, getWindow$1(popper2)) : {
71891
- x,
72316
+ x: x2,
71892
72317
  y: y2
71893
72318
  };
71894
- x = _ref4.x;
72319
+ x2 = _ref4.x;
71895
72320
  y2 = _ref4.y;
71896
72321
  if (gpuAcceleration) {
71897
72322
  var _Object$assign;
71898
- 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));
72323
+ 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));
71899
72324
  }
71900
- return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
72325
+ return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x2 + "px" : "", _Object$assign2.transform = "", _Object$assign2));
71901
72326
  }
71902
72327
  function computeStyles(_ref5) {
71903
72328
  var state2 = _ref5.state, options = _ref5.options;
@@ -72011,21 +72436,21 @@ function getViewportRect$1(element, strategy) {
72011
72436
  var visualViewport = win.visualViewport;
72012
72437
  var width = html.clientWidth;
72013
72438
  var height = html.clientHeight;
72014
- var x = 0;
72439
+ var x2 = 0;
72015
72440
  var y2 = 0;
72016
72441
  if (visualViewport) {
72017
72442
  width = visualViewport.width;
72018
72443
  height = visualViewport.height;
72019
72444
  var layoutViewport = isLayoutViewport();
72020
72445
  if (layoutViewport || !layoutViewport && strategy === "fixed") {
72021
- x = visualViewport.offsetLeft;
72446
+ x2 = visualViewport.offsetLeft;
72022
72447
  y2 = visualViewport.offsetTop;
72023
72448
  }
72024
72449
  }
72025
72450
  return {
72026
72451
  width,
72027
72452
  height,
72028
- x: x + getWindowScrollBarX$1(element),
72453
+ x: x2 + getWindowScrollBarX$1(element),
72029
72454
  y: y2
72030
72455
  };
72031
72456
  }
@@ -72036,15 +72461,15 @@ function getDocumentRect$1(element) {
72036
72461
  var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
72037
72462
  var width = max$1(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
72038
72463
  var height = max$1(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
72039
- var x = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
72464
+ var x2 = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
72040
72465
  var y2 = -winScroll.scrollTop;
72041
72466
  if (getComputedStyle$2(body || html).direction === "rtl") {
72042
- x += max$1(html.clientWidth, body ? body.clientWidth : 0) - width;
72467
+ x2 += max$1(html.clientWidth, body ? body.clientWidth : 0) - width;
72043
72468
  }
72044
72469
  return {
72045
72470
  width,
72046
72471
  height,
72047
- x,
72472
+ x: x2,
72048
72473
  y: y2
72049
72474
  };
72050
72475
  }
@@ -72421,9 +72846,9 @@ function offset(_ref2) {
72421
72846
  acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
72422
72847
  return acc;
72423
72848
  }, {});
72424
- var _data$state$placement = data[state2.placement], x = _data$state$placement.x, y2 = _data$state$placement.y;
72849
+ var _data$state$placement = data[state2.placement], x2 = _data$state$placement.x, y2 = _data$state$placement.y;
72425
72850
  if (state2.modifiersData.popperOffsets != null) {
72426
- state2.modifiersData.popperOffsets.x += x;
72851
+ state2.modifiersData.popperOffsets.x += x2;
72427
72852
  state2.modifiersData.popperOffsets.y += y2;
72428
72853
  }
72429
72854
  state2.modifiersData[name] = data;
@@ -74374,7 +74799,7 @@ function getPaddingObject(padding) {
74374
74799
  }
74375
74800
  function rectToClientRect(rect) {
74376
74801
  const {
74377
- x,
74802
+ x: x2,
74378
74803
  y: y2,
74379
74804
  width,
74380
74805
  height
@@ -74383,10 +74808,10 @@ function rectToClientRect(rect) {
74383
74808
  width,
74384
74809
  height,
74385
74810
  top: y2,
74386
- left: x,
74387
- right: x + width,
74811
+ left: x2,
74812
+ right: x2 + width,
74388
74813
  bottom: y2 + height,
74389
- x,
74814
+ x: x2,
74390
74815
  y: y2
74391
74816
  };
74392
74817
  }
@@ -74460,7 +74885,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
74460
74885
  strategy
74461
74886
  });
74462
74887
  let {
74463
- x,
74888
+ x: x2,
74464
74889
  y: y2
74465
74890
  } = computeCoordsFromPlacement(rects, placement, rtl);
74466
74891
  let statefulPlacement = placement;
@@ -74477,7 +74902,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
74477
74902
  data,
74478
74903
  reset
74479
74904
  } = await fn2({
74480
- x,
74905
+ x: x2,
74481
74906
  y: y2,
74482
74907
  initialPlacement: placement,
74483
74908
  placement: statefulPlacement,
@@ -74490,7 +74915,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
74490
74915
  floating
74491
74916
  }
74492
74917
  });
74493
- x = nextX != null ? nextX : x;
74918
+ x2 = nextX != null ? nextX : x2;
74494
74919
  y2 = nextY != null ? nextY : y2;
74495
74920
  middlewareData = {
74496
74921
  ...middlewareData,
@@ -74513,7 +74938,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
74513
74938
  }) : reset.rects;
74514
74939
  }
74515
74940
  ({
74516
- x,
74941
+ x: x2,
74517
74942
  y: y2
74518
74943
  } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
74519
74944
  }
@@ -74521,7 +74946,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
74521
74946
  }
74522
74947
  }
74523
74948
  return {
74524
- x,
74949
+ x: x2,
74525
74950
  y: y2,
74526
74951
  placement: statefulPlacement,
74527
74952
  strategy,
@@ -74534,7 +74959,7 @@ async function detectOverflow(state2, options) {
74534
74959
  options = {};
74535
74960
  }
74536
74961
  const {
74537
- x,
74962
+ x: x2,
74538
74963
  y: y2,
74539
74964
  platform: platform2,
74540
74965
  rects,
@@ -74558,7 +74983,7 @@ async function detectOverflow(state2, options) {
74558
74983
  strategy
74559
74984
  }));
74560
74985
  const rect = elementContext === "floating" ? {
74561
- x,
74986
+ x: x2,
74562
74987
  y: y2,
74563
74988
  width: rects.floating.width,
74564
74989
  height: rects.floating.height
@@ -74827,16 +75252,16 @@ function getScale(element) {
74827
75252
  height,
74828
75253
  $: $2
74829
75254
  } = getCssDimensions(domElement);
74830
- let x = ($2 ? round(rect.width) : rect.width) / width;
75255
+ let x2 = ($2 ? round(rect.width) : rect.width) / width;
74831
75256
  let y2 = ($2 ? round(rect.height) : rect.height) / height;
74832
- if (!x || !Number.isFinite(x)) {
74833
- x = 1;
75257
+ if (!x2 || !Number.isFinite(x2)) {
75258
+ x2 = 1;
74834
75259
  }
74835
75260
  if (!y2 || !Number.isFinite(y2)) {
74836
75261
  y2 = 1;
74837
75262
  }
74838
75263
  return {
74839
- x,
75264
+ x: x2,
74840
75265
  y: y2
74841
75266
  };
74842
75267
  }
@@ -74880,7 +75305,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
74880
75305
  }
74881
75306
  }
74882
75307
  const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
74883
- let x = (clientRect2.left + visualOffsets.x) / scale.x;
75308
+ let x2 = (clientRect2.left + visualOffsets.x) / scale.x;
74884
75309
  let y2 = (clientRect2.top + visualOffsets.y) / scale.y;
74885
75310
  let width = clientRect2.width / scale.x;
74886
75311
  let height = clientRect2.height / scale.y;
@@ -74895,11 +75320,11 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
74895
75320
  const css = getComputedStyle$1(currentIFrame);
74896
75321
  const left2 = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
74897
75322
  const top2 = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
74898
- x *= iframeScale.x;
75323
+ x2 *= iframeScale.x;
74899
75324
  y2 *= iframeScale.y;
74900
75325
  width *= iframeScale.x;
74901
75326
  height *= iframeScale.y;
74902
- x += left2;
75327
+ x2 += left2;
74903
75328
  y2 += top2;
74904
75329
  currentWin = getWindow(currentIFrame);
74905
75330
  currentIFrame = getFrameElement(currentWin);
@@ -74908,7 +75333,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
74908
75333
  return rectToClientRect({
74909
75334
  width,
74910
75335
  height,
74911
- x,
75336
+ x: x2,
74912
75337
  y: y2
74913
75338
  });
74914
75339
  }
@@ -74921,10 +75346,10 @@ function getWindowScrollBarX(element, rect) {
74921
75346
  }
74922
75347
  function getHTMLOffset(documentElement, scroll) {
74923
75348
  const htmlRect = documentElement.getBoundingClientRect();
74924
- const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
75349
+ const x2 = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
74925
75350
  const y2 = htmlRect.top + scroll.scrollTop;
74926
75351
  return {
74927
- x,
75352
+ x: x2,
74928
75353
  y: y2
74929
75354
  };
74930
75355
  }
@@ -74976,15 +75401,15 @@ function getDocumentRect(element) {
74976
75401
  const body = element.ownerDocument.body;
74977
75402
  const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
74978
75403
  const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
74979
- let x = -scroll.scrollLeft + getWindowScrollBarX(element);
75404
+ let x2 = -scroll.scrollLeft + getWindowScrollBarX(element);
74980
75405
  const y2 = -scroll.scrollTop;
74981
75406
  if (getComputedStyle$1(body).direction === "rtl") {
74982
- x += max(html.clientWidth, body.clientWidth) - width;
75407
+ x2 += max(html.clientWidth, body.clientWidth) - width;
74983
75408
  }
74984
75409
  return {
74985
75410
  width,
74986
75411
  height,
74987
- x,
75412
+ x: x2,
74988
75413
  y: y2
74989
75414
  };
74990
75415
  }
@@ -74995,14 +75420,14 @@ function getViewportRect(element, strategy) {
74995
75420
  const visualViewport = win.visualViewport;
74996
75421
  let width = html.clientWidth;
74997
75422
  let height = html.clientHeight;
74998
- let x = 0;
75423
+ let x2 = 0;
74999
75424
  let y2 = 0;
75000
75425
  if (visualViewport) {
75001
75426
  width = visualViewport.width;
75002
75427
  height = visualViewport.height;
75003
75428
  const visualViewportBased = isWebKit();
75004
75429
  if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
75005
- x = visualViewport.offsetLeft;
75430
+ x2 = visualViewport.offsetLeft;
75006
75431
  y2 = visualViewport.offsetTop;
75007
75432
  }
75008
75433
  }
@@ -75022,7 +75447,7 @@ function getViewportRect(element, strategy) {
75022
75447
  return {
75023
75448
  width,
75024
75449
  height,
75025
- x,
75450
+ x: x2,
75026
75451
  y: y2
75027
75452
  };
75028
75453
  }
@@ -75034,12 +75459,12 @@ function getInnerBoundingClientRect(element, strategy) {
75034
75459
  const scale = isHTMLElement$2(element) ? getScale(element) : createCoords(1);
75035
75460
  const width = element.clientWidth * scale.x;
75036
75461
  const height = element.clientHeight * scale.y;
75037
- const x = left2 * scale.x;
75462
+ const x2 = left2 * scale.x;
75038
75463
  const y2 = top2 * scale.y;
75039
75464
  return {
75040
75465
  width,
75041
75466
  height,
75042
- x,
75467
+ x: x2,
75043
75468
  y: y2
75044
75469
  };
75045
75470
  }
@@ -75159,10 +75584,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
75159
75584
  setLeftRTLScrollbarOffset();
75160
75585
  }
75161
75586
  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
75162
- const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
75587
+ const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
75163
75588
  const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
75164
75589
  return {
75165
- x,
75590
+ x: x2,
75166
75591
  y: y2,
75167
75592
  width: rect.width,
75168
75593
  height: rect.height
@@ -75413,6 +75838,10 @@ const Pagination = Extension.create({
75413
75838
  };
75414
75839
  },
75415
75840
  addCommands() {
75841
+ const editor = this.editor;
75842
+ if (isHeadless(editor)) {
75843
+ return {};
75844
+ }
75416
75845
  return {
75417
75846
  insertPageBreak: () => ({ commands: commands2 }) => {
75418
75847
  return commands2.insertContent({
@@ -75423,20 +75852,26 @@ const Pagination = Extension.create({
75423
75852
  * Toggle pagination on/off
75424
75853
  * @returns {void}
75425
75854
  */
75426
- togglePagination: () => ({ tr, state: state2, dispatch, editor }) => {
75855
+ togglePagination: () => ({ tr, state: state2, dispatch, editor: editor2 }) => {
75427
75856
  const isEnabled = PaginationPluginKey.getState(state2)?.isEnabled;
75428
75857
  tr.setMeta(PaginationPluginKey, { isEnabled: !isEnabled });
75429
75858
  if (dispatch) {
75430
75859
  dispatch(tr);
75431
- editor.initDefaultStyles(editor.element, !isEnabled);
75860
+ editor2.initDefaultStyles(editor2.element, !isEnabled);
75432
75861
  return true;
75433
75862
  }
75434
75863
  }
75435
75864
  };
75436
75865
  },
75437
75866
  addShortcuts() {
75867
+ const editor = this.editor;
75868
+ if (isHeadless(editor)) {
75869
+ return {};
75870
+ }
75438
75871
  return {
75439
- "Mod-Enter": () => this.editor.commands.insertPageBreak()
75872
+ "Mod-Enter": () => {
75873
+ return editor.commands.insertPageBreak();
75874
+ }
75440
75875
  };
75441
75876
  },
75442
75877
  /**
@@ -75444,6 +75879,9 @@ const Pagination = Extension.create({
75444
75879
  */
75445
75880
  addPmPlugins() {
75446
75881
  const editor = this.editor;
75882
+ if (isHeadless(editor)) {
75883
+ return [];
75884
+ }
75447
75885
  let isUpdating = false;
75448
75886
  let shouldUpdate = false;
75449
75887
  let hasInitialized = false;
@@ -75459,7 +75897,7 @@ const Pagination = Extension.create({
75459
75897
  isReadyToInit: false,
75460
75898
  decorations: DecorationSet.empty,
75461
75899
  isDebugging,
75462
- isEnabled: editor.options.pagination
75900
+ isEnabled: editor.options.pagination && !isHeadless(editor)
75463
75901
  };
75464
75902
  },
75465
75903
  apply(tr, oldState, prevEditorState, newEditorState) {
@@ -75537,6 +75975,7 @@ const Pagination = Extension.create({
75537
75975
  let previousDecorations = DecorationSet.empty;
75538
75976
  return {
75539
75977
  update: (view) => {
75978
+ if (isHeadless(editor)) return;
75540
75979
  if (!PaginationPluginKey.getState(view.state)?.isEnabled) return;
75541
75980
  if (!shouldUpdate || isUpdating) return;
75542
75981
  const performPaginationUpdate = () => {
@@ -75560,6 +75999,7 @@ const Pagination = Extension.create({
75560
75999
  },
75561
76000
  props: {
75562
76001
  decorations(state2) {
76002
+ if (isHeadless(editor)) return DecorationSet.empty;
75563
76003
  const pluginState = PaginationPluginKey.getState(state2);
75564
76004
  return pluginState.isEnabled ? pluginState.decorations : DecorationSet.empty;
75565
76005
  }
@@ -75928,7 +76368,7 @@ const getHeaderFooterEditorKey = ({ pageNumber, isHeader, isFooter, isFirstHeade
75928
76368
  return void 0;
75929
76369
  };
75930
76370
  const onHeaderFooterDblClick = (editor, currentFocusedSectionEditor) => {
75931
- if (editor.options.documentMode !== "editing") return;
76371
+ if (isHeadless(editor) || editor.options.documentMode !== "editing") return;
75932
76372
  editor.setEditable(false, false);
75933
76373
  toggleHeaderFooterEditMode({
75934
76374
  editor,
@@ -76000,6 +76440,7 @@ function getActualBreakCoords(view, pos, calculatedThreshold) {
76000
76440
  return actualBreak;
76001
76441
  }
76002
76442
  const onImageLoad = (editor) => {
76443
+ if (isHeadless(editor)) return;
76003
76444
  if (typeof requestAnimationFrame !== "function") return;
76004
76445
  requestAnimationFrame(() => {
76005
76446
  const newTr = editor.view.state.tr;
@@ -76025,22 +76466,22 @@ function createFloatingSeparator(separator, editor) {
76025
76466
  const rect = elements.reference.getBoundingClientRect();
76026
76467
  const containerRect = editorElement.getBoundingClientRect();
76027
76468
  const scaleFactor = getScaleFactor(editorElement);
76028
- const x = Math.round((rect.left - containerRect.left) / scaleFactor);
76469
+ const x2 = Math.round((rect.left - containerRect.left) / scaleFactor);
76029
76470
  const y2 = Math.round((rect.top - containerRect.top) / scaleFactor);
76030
76471
  const width = Math.round(rect.width / scaleFactor);
76031
76472
  const height = Math.round(rect.height / scaleFactor);
76032
76473
  return {
76033
- x,
76474
+ x: x2,
76034
76475
  y: y2,
76035
76476
  data: { width, height }
76036
76477
  };
76037
76478
  }
76038
76479
  }
76039
76480
  ]
76040
- }).then(({ x, y: y2, middlewareData }) => {
76481
+ }).then(({ x: x2, y: y2, middlewareData }) => {
76041
76482
  Object.assign(floatingSeparator.style, {
76042
76483
  top: `${y2}px`,
76043
- left: `${x}px`,
76484
+ left: `${x2}px`,
76044
76485
  width: `${middlewareData.copy.width}px`,
76045
76486
  height: `${middlewareData.copy.height}px`,
76046
76487
  visibility: middlewareData.hide?.referenceHidden ? "hidden" : "visible"
@@ -76304,6 +76745,7 @@ function validRegExp(source) {
76304
76745
  }
76305
76746
  }
76306
76747
  const TextContentCache = /* @__PURE__ */ new WeakMap();
76748
+ const transparentInlineNodes = /* @__PURE__ */ new Set(["run", "bookmarkStart"]);
76307
76749
  function textContent(node) {
76308
76750
  let cached = TextContentCache.get(node);
76309
76751
  if (cached) return cached;
@@ -76312,7 +76754,7 @@ function textContent(node) {
76312
76754
  let child = node.child(i);
76313
76755
  if (child.isText) content += child.text;
76314
76756
  else if (child.isLeaf) content += "";
76315
- else if (child.type && child.type.name === "run") content += textContent(child);
76757
+ else if (child.type && transparentInlineNodes.has(child.type.name)) content += textContent(child);
76316
76758
  else content += " " + textContent(child) + " ";
76317
76759
  }
76318
76760
  TextContentCache.set(node, content);
@@ -76320,26 +76762,49 @@ function textContent(node) {
76320
76762
  }
76321
76763
  function mapIndexToDocPos(node, start2, index2) {
76322
76764
  if (index2 <= 0) return start2;
76323
- const fullText = textContent(node);
76324
- if (index2 >= fullText.length) return start2 + node.content.size;
76325
- let target = start2;
76326
- let remaining = index2;
76327
- let found2 = false;
76328
- node.descendants((child, pos) => {
76329
- if (found2) return false;
76330
- if (!child.isText) return true;
76331
- const len = child.text.length;
76332
- if (remaining <= len) {
76333
- target = start2 + pos + remaining;
76334
- found2 = true;
76335
- return false;
76765
+ const fullTextLength = textContent(node).length;
76766
+ if (index2 >= fullTextLength) return start2 + node.content.size;
76767
+ return mapIndexWithinNode(node, start2, index2);
76768
+ }
76769
+ function mapIndexWithinNode(node, start2, index2) {
76770
+ if (index2 <= 0) return start2;
76771
+ let offset2 = start2;
76772
+ for (let i = 0; i < node.childCount; i++) {
76773
+ const child = node.child(i);
76774
+ const childStart = offset2;
76775
+ if (child.isText) {
76776
+ const len = child.text.length;
76777
+ if (index2 <= len) return childStart + index2;
76778
+ index2 -= len;
76779
+ offset2 += child.nodeSize;
76780
+ continue;
76336
76781
  }
76337
- remaining -= len;
76338
- return true;
76339
- });
76340
- return found2 ? target : start2 + node.content.size;
76782
+ if (child.isLeaf) {
76783
+ if (index2 <= 1) return childStart + Math.min(index2, 1);
76784
+ index2 -= 1;
76785
+ offset2 += child.nodeSize;
76786
+ continue;
76787
+ }
76788
+ const isTransparentInline = child.inlineContent && child.type && transparentInlineNodes.has(child.type.name);
76789
+ const innerTextLength = textContent(child).length;
76790
+ if (isTransparentInline) {
76791
+ if (index2 <= innerTextLength) return mapIndexWithinNode(child, childStart + 1, index2);
76792
+ index2 -= innerTextLength;
76793
+ offset2 += child.nodeSize;
76794
+ continue;
76795
+ }
76796
+ const contribution = innerTextLength + 2;
76797
+ const relativeIndex = index2 - 1;
76798
+ if (relativeIndex < 0) return childStart;
76799
+ if (relativeIndex <= innerTextLength) {
76800
+ return mapIndexWithinNode(child, childStart + 1, relativeIndex);
76801
+ }
76802
+ if (relativeIndex === innerTextLength + 1) return childStart + child.nodeSize;
76803
+ index2 -= contribution;
76804
+ offset2 += child.nodeSize;
76805
+ }
76806
+ return start2 + node.content.size;
76341
76807
  }
76342
- const transparentInlineNodes = /* @__PURE__ */ new Set(["run"]);
76343
76808
  function scanTextblocks(node, from2, to, f2, nodeStart = 0) {
76344
76809
  const isTransparentInline = node.inlineContent && node.type && transparentInlineNodes.has(node.type.name);
76345
76810
  if (node.inlineContent && !isTransparentInline) {
@@ -76815,9 +77280,9 @@ const NodeResizer = Extension.create({
76815
77280
  return {};
76816
77281
  },
76817
77282
  addPmPlugins() {
76818
- const isHeadless = this.editor.options.isHeadless;
77283
+ const isHeadless2 = this.editor.options.isHeadless;
76819
77284
  const hasDocument = typeof document !== "undefined";
76820
- if (isHeadless || !hasDocument) return [];
77285
+ if (isHeadless2 || !hasDocument) return [];
76821
77286
  return [nodeResizer(["image"], this.editor)];
76822
77287
  }
76823
77288
  });
@@ -76937,7 +77402,8 @@ const getStarterExtensions = () => {
76937
77402
  NodeResizer,
76938
77403
  CustomSelection,
76939
77404
  TextTransform,
76940
- VectorShape
77405
+ VectorShape,
77406
+ ShapeGroup
76941
77407
  ];
76942
77408
  };
76943
77409
  const sanitizeNumber = (value, defaultNumber) => {
@@ -78134,11 +78600,11 @@ function hsv2rgb(h2, s2, v2) {
78134
78600
  let f2 = (n, k2 = (n + h2 / 60) % 6) => v2 - v2 * s2 * Math.max(Math.min(k2, 4 - k2, 1), 0);
78135
78601
  return [f2(5) * 255, f2(3) * 255, f2(1) * 255];
78136
78602
  }
78137
- function hsl2rgb(h2, s2, l3) {
78603
+ function hsl2rgb(h2, s2, l) {
78138
78604
  s2 /= 100;
78139
- l3 /= 100;
78140
- let a = s2 * Math.min(l3, 1 - l3);
78141
- let f2 = (n, k2 = (n + h2 / 30) % 12) => l3 - a * Math.max(Math.min(k2 - 3, 9 - k2, 1), -1);
78605
+ l /= 100;
78606
+ let a = s2 * Math.min(l, 1 - l);
78607
+ let f2 = (n, k2 = (n + h2 / 30) % 12) => l - a * Math.max(Math.min(k2 - 3, 9 - k2, 1), -1);
78142
78608
  return [f2(0) * 255, f2(8) * 255, f2(4) * 255];
78143
78609
  }
78144
78610
  const prefix = "^\\s*";
@@ -78234,8 +78700,8 @@ function rgba(color) {
78234
78700
  } else if (color in colors) {
78235
78701
  return rgba(colors[color]);
78236
78702
  } else if (hslRegex.test(color) || hslaRegex.test(color)) {
78237
- const [h2, s2, l3, a] = hsla(color);
78238
- return [...hsl2rgb(h2, s2, l3), a];
78703
+ const [h2, s2, l, a] = hsla(color);
78704
+ return [...hsl2rgb(h2, s2, l), a];
78239
78705
  } else if (hsvRegex.test(color) || hsvaRegex.test(color)) {
78240
78706
  const [h2, s2, v2, a] = hsva(color);
78241
78707
  return [...hsv2rgb(h2, s2, v2), a];
@@ -79034,14 +79500,14 @@ function ensureViewBoundingRect() {
79034
79500
  }
79035
79501
  return viewMeasurer.getBoundingClientRect();
79036
79502
  }
79037
- function getPointRect(x, y2) {
79503
+ function getPointRect(x2, y2) {
79038
79504
  const viewRect = ensureViewBoundingRect();
79039
79505
  return {
79040
79506
  top: y2,
79041
- left: x,
79507
+ left: x2,
79042
79508
  height: 0,
79043
79509
  width: 0,
79044
- right: viewRect.width - x,
79510
+ right: viewRect.width - x2,
79045
79511
  bottom: viewRect.height - y2
79046
79512
  };
79047
79513
  }
@@ -79879,8 +80345,8 @@ const VFollower = defineComponent({
79879
80345
  if (follower === null)
79880
80346
  return;
79881
80347
  const target = VBinder.targetRef;
79882
- const { x, y: y2, overlap } = props;
79883
- const targetRect = x !== void 0 && y2 !== void 0 ? getPointRect(x, y2) : getRect(target);
80348
+ const { x: x2, y: y2, overlap } = props;
80349
+ const targetRect = x2 !== void 0 && y2 !== void 0 ? getPointRect(x2, y2) : getRect(target);
79884
80350
  follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
79885
80351
  follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
79886
80352
  const { width, minWidth, placement, internalShift, flip: flip2 } = props;
@@ -80050,8 +80516,8 @@ var ResizeObserverSize = /* @__PURE__ */ (function() {
80050
80516
  return ResizeObserverSize2;
80051
80517
  })();
80052
80518
  var DOMRectReadOnly = (function() {
80053
- function DOMRectReadOnly2(x, y2, width, height) {
80054
- this.x = x;
80519
+ function DOMRectReadOnly2(x2, y2, width, height) {
80520
+ this.x = x2;
80055
80521
  this.y = y2;
80056
80522
  this.width = width;
80057
80523
  this.height = height;
@@ -80062,8 +80528,8 @@ var DOMRectReadOnly = (function() {
80062
80528
  return freeze(this);
80063
80529
  }
80064
80530
  DOMRectReadOnly2.prototype.toJSON = function() {
80065
- 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;
80066
- return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
80531
+ 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;
80532
+ return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
80067
80533
  };
80068
80534
  DOMRectReadOnly2.fromRect = function(rectangle) {
80069
80535
  return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
@@ -83897,10 +84363,10 @@ function getFirstAvailableNode(nodes) {
83897
84363
  }
83898
84364
  function rawGetNext(node, loop) {
83899
84365
  const sibs = node.siblings;
83900
- const l3 = sibs.length;
84366
+ const l = sibs.length;
83901
84367
  const { index: index2 } = node;
83902
84368
  if (loop) {
83903
- return sibs[(index2 + 1) % l3];
84369
+ return sibs[(index2 + 1) % l];
83904
84370
  } else {
83905
84371
  if (index2 === sibs.length - 1)
83906
84372
  return null;
@@ -83956,10 +84422,10 @@ function move(fromNode, dir, { loop = false, includeDisabled = false } = {}) {
83956
84422
  }
83957
84423
  function rawGetPrev(node, loop) {
83958
84424
  const sibs = node.siblings;
83959
- const l3 = sibs.length;
84425
+ const l = sibs.length;
83960
84426
  const { index: index2 } = node;
83961
84427
  if (loop) {
83962
- return sibs[(index2 - 1 + l3) % l3];
84428
+ return sibs[(index2 - 1 + l) % l];
83963
84429
  } else {
83964
84430
  if (index2 === 0)
83965
84431
  return null;
@@ -87683,7 +88149,7 @@ function requireEventemitter3() {
87683
88149
  var evt = prefix2 ? prefix2 + event : event, handlers2 = this._events[evt];
87684
88150
  if (!handlers2) return [];
87685
88151
  if (handlers2.fn) return [handlers2.fn];
87686
- for (var i2 = 0, l3 = handlers2.length, ee = new Array(l3); i2 < l3; i2++) {
88152
+ for (var i2 = 0, l = handlers2.length, ee = new Array(l); i2 < l; i2++) {
87687
88153
  ee[i2] = handlers2[i2].fn;
87688
88154
  }
87689
88155
  return ee;
@@ -88109,7 +88575,7 @@ const _hoisted_1$b = {
88109
88575
  key: 0,
88110
88576
  class: "linked-style-buttons"
88111
88577
  };
88112
- const _hoisted_2$8 = ["onClick", "onKeydown"];
88578
+ const _hoisted_2$8 = ["onClick", "onKeydown", "aria-label"];
88113
88579
  const _sfc_main$c = {
88114
88580
  __name: "LinkedStyle",
88115
88581
  props: {
@@ -88154,7 +88620,7 @@ const _sfc_main$c = {
88154
88620
  moveToPreviousStyle(index2);
88155
88621
  break;
88156
88622
  case "Enter":
88157
- console.log("style", style2);
88623
+ event.preventDefault();
88158
88624
  select(style2);
88159
88625
  break;
88160
88626
  }
@@ -88170,6 +88636,7 @@ const _sfc_main$c = {
88170
88636
  class: normalizeClass(["style-item", { selected: __props.selectedOption === style2.id }]),
88171
88637
  onClick: ($event) => select(style2),
88172
88638
  onKeydown: (event) => handleKeyDown2(event, index2, style2),
88639
+ "aria-label": `Linked style - ${style2.id}`,
88173
88640
  ref_for: true,
88174
88641
  ref_key: "styleRefs",
88175
88642
  ref: styleRefs
@@ -88185,7 +88652,7 @@ const _sfc_main$c = {
88185
88652
  };
88186
88653
  }
88187
88654
  };
88188
- const LinkedStyle = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-698bdb8e"]]);
88655
+ const LinkedStyle = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-b53508a8"]]);
88189
88656
  const _hoisted_1$a = {
88190
88657
  key: 0,
88191
88658
  class: "link-title"
@@ -89905,11 +90372,15 @@ const makeDefaultItems = ({
89905
90372
  }
89906
90373
  }
89907
90374
  ],
89908
- onActivate: () => {
90375
+ onActivate: ({ linkedStyleMark }) => {
90376
+ const styles = getQuickFormatList(superToolbar.activeEditor);
90377
+ const selectedStyle = styles?.find((style2) => style2.id === linkedStyleMark?.attrs?.styleId);
90378
+ linkedStyles.label.value = selectedStyle && selectedStyle.id !== "Normal" ? selectedStyle.definition.attrs.name : toolbarTexts2.formatText;
89909
90379
  linkedStyles.disabled.value = false;
89910
90380
  },
89911
90381
  onDeactivate: () => {
89912
90382
  linkedStyles.disabled.value = true;
90383
+ linkedStyles.label.value = toolbarTexts2.formatText;
89913
90384
  }
89914
90385
  });
89915
90386
  const renderIcon = (value, selectedValue) => {
@@ -90614,10 +91085,11 @@ class SuperToolbar extends EventEmitter2 {
90614
91085
  item.setDisabled(!canRejectTrackedChanges);
90615
91086
  }
90616
91087
  if (item.name.value === "linkedStyles") {
91088
+ const linkedStyleMark = marks.find((mark) => mark.name === "styleId");
90617
91089
  if (this.activeEditor && !getQuickFormatList(this.activeEditor).length) {
90618
91090
  return item.deactivate();
90619
91091
  } else {
90620
- return item.activate();
91092
+ return item.activate({ linkedStyleMark });
90621
91093
  }
90622
91094
  }
90623
91095
  const rawActiveMark = marks.find((mark) => mark.name === item.name.value);
@@ -91983,7 +92455,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
91983
92455
  }
91984
92456
  });
91985
92457
  function adjustPaginationBreaks(editorElem, editor) {
91986
- if (!editorElem.value || !editor?.value?.options?.scale) return;
92458
+ if (!editorElem.value || !editor?.value?.options?.scale || isHeadless(editor)) return;
91987
92459
  const zoom = editor.value.options.scale;
91988
92460
  const bounds = editorElem.value.getBoundingClientRect();
91989
92461
  const breakNodes = editorElem.value.querySelectorAll(".pagination-break-wrapper");
@@ -92417,6 +92889,7 @@ const _sfc_main$1 = {
92417
92889
  ...props.options
92418
92890
  });
92419
92891
  editor.value.on("paginationUpdate", () => {
92892
+ if (isHeadless(editor.value)) return;
92420
92893
  adjustPaginationBreaks(editorElem, editor);
92421
92894
  });
92422
92895
  editor.value.on("collaborationReady", () => {
@@ -92575,7 +93048,7 @@ const _sfc_main$1 = {
92575
93048
  };
92576
93049
  }
92577
93050
  };
92578
- const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-9d25f5b3"]]);
93051
+ const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-cd3558fe"]]);
92579
93052
  const _hoisted_1 = ["innerHTML"];
92580
93053
  const _sfc_main = {
92581
93054
  __name: "SuperInput",