@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.
- package/dist/chunks/{PdfViewer-BV-ij_Jn.es.js → PdfViewer-DNnHwEf_.es.js} +1 -1
- package/dist/chunks/{PdfViewer-DpviVXfb.cjs → PdfViewer-Mru9qU0u.cjs} +1 -1
- package/dist/chunks/{index-sJFE-5Sw-Chv1r9bA.cjs → index-C3nnrhrj-D6qn1DZi.cjs} +1 -1
- package/dist/chunks/{index-sJFE-5Sw-r5deiWbP.es.js → index-C3nnrhrj-D8emuLzt.es.js} +1 -1
- package/dist/chunks/{index-UVpS_47e.es.js → index-DcqOqWRC.es.js} +3 -3
- package/dist/chunks/{index-B5hIswvq.cjs → index-s9auAjqk.cjs} +3 -3
- package/dist/chunks/{super-editor.es-C9OTu_pS.es.js → super-editor.es-D1glcoJr.es.js} +1251 -778
- package/dist/chunks/{super-editor.es-Cw1FmXd7.cjs → super-editor.es-DPd8_luo.cjs} +1251 -778
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
- package/dist/style.css +57 -15
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-D6qfGG_6.js → converter-Z2aFlUnt.js} +540 -374
- package/dist/super-editor/chunks/{docx-zipper-BqmHhBsY.js → docx-zipper-DIZfYOpO.js} +1 -1
- package/dist/super-editor/chunks/{editor-5q11lIMq.js → editor-DCiWw1F7.js} +359 -58
- package/dist/super-editor/chunks/{index-sJFE-5Sw.js → index-C3nnrhrj.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-BV-1nlen.js → toolbar-B5-PSkGu.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +57 -15
- package/dist/super-editor/super-editor/src/components/pagination-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/components/toolbar/defaultItems.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/components/toolbar/super-toolbar.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/relationship-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/mc/altermateContent/alternate-content-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/field-annotation/field-annotation.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/index.d.ts +2 -1
- package/dist/super-editor/super-editor/src/extensions/index.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/page-number/page-number.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/pagination/pagination-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/pagination/pagination.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/search/prosemirror-search-patched.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/shape-group/ShapeGroupView.d.ts +22 -0
- package/dist/super-editor/super-editor/src/extensions/shape-group/ShapeGroupView.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/extensions/shape-group/index.d.ts +3 -0
- package/dist/super-editor/super-editor/src/extensions/shape-group/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts +3 -0
- package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/utils/headless-helpers.d.ts +1 -0
- package/dist/super-editor/super-editor/src/utils/headless-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor.es.js +25 -18
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +1015 -542
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -434,17 +434,17 @@
|
|
|
434
434
|
);
|
|
435
435
|
}
|
|
436
436
|
if (a2 === b2) return 0;
|
|
437
|
-
let
|
|
437
|
+
let x2 = a2.length;
|
|
438
438
|
let y2 = b2.length;
|
|
439
|
-
for (let i2 = 0, len2 = Math.min(
|
|
439
|
+
for (let i2 = 0, len2 = Math.min(x2, y2); i2 < len2; ++i2) {
|
|
440
440
|
if (a2[i2] !== b2[i2]) {
|
|
441
|
-
|
|
441
|
+
x2 = a2[i2];
|
|
442
442
|
y2 = b2[i2];
|
|
443
443
|
break;
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
if (
|
|
447
|
-
if (y2 <
|
|
446
|
+
if (x2 < y2) return -1;
|
|
447
|
+
if (y2 < x2) return 1;
|
|
448
448
|
return 0;
|
|
449
449
|
};
|
|
450
450
|
Buffer3.isEncoding = function isEncoding(encoding) {
|
|
@@ -693,20 +693,20 @@
|
|
|
693
693
|
thisStart >>>= 0;
|
|
694
694
|
thisEnd >>>= 0;
|
|
695
695
|
if (this === target) return 0;
|
|
696
|
-
let
|
|
696
|
+
let x2 = thisEnd - thisStart;
|
|
697
697
|
let y2 = end2 - start2;
|
|
698
|
-
const len2 = Math.min(
|
|
698
|
+
const len2 = Math.min(x2, y2);
|
|
699
699
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
700
700
|
const targetCopy = target.slice(start2, end2);
|
|
701
701
|
for (let i2 = 0; i2 < len2; ++i2) {
|
|
702
702
|
if (thisCopy[i2] !== targetCopy[i2]) {
|
|
703
|
-
|
|
703
|
+
x2 = thisCopy[i2];
|
|
704
704
|
y2 = targetCopy[i2];
|
|
705
705
|
break;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
if (
|
|
709
|
-
if (y2 <
|
|
708
|
+
if (x2 < y2) return -1;
|
|
709
|
+
if (y2 < x2) return 1;
|
|
710
710
|
return 0;
|
|
711
711
|
};
|
|
712
712
|
function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
|
|
@@ -1796,8 +1796,8 @@
|
|
|
1796
1796
|
})(buffer);
|
|
1797
1797
|
const Buffer2 = buffer.Buffer;
|
|
1798
1798
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
1799
|
-
function getDefaultExportFromCjs$2(
|
|
1800
|
-
return
|
|
1799
|
+
function getDefaultExportFromCjs$2(x2) {
|
|
1800
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
1801
1801
|
}
|
|
1802
1802
|
var sax = {};
|
|
1803
1803
|
var events$2 = { exports: {} };
|
|
@@ -1805,13 +1805,13 @@
|
|
|
1805
1805
|
function requireEvents() {
|
|
1806
1806
|
if (hasRequiredEvents) return events$2.exports;
|
|
1807
1807
|
hasRequiredEvents = 1;
|
|
1808
|
-
var
|
|
1809
|
-
var ReflectApply =
|
|
1808
|
+
var R = typeof Reflect === "object" ? Reflect : null;
|
|
1809
|
+
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
|
|
1810
1810
|
return Function.prototype.apply.call(target, receiver, args);
|
|
1811
1811
|
};
|
|
1812
1812
|
var ReflectOwnKeys;
|
|
1813
|
-
if (
|
|
1814
|
-
ReflectOwnKeys =
|
|
1813
|
+
if (R && typeof R.ownKeys === "function") {
|
|
1814
|
+
ReflectOwnKeys = R.ownKeys;
|
|
1815
1815
|
} else if (Object.getOwnPropertySymbols) {
|
|
1816
1816
|
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
1817
1817
|
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
@@ -2201,8 +2201,8 @@
|
|
|
2201
2201
|
}
|
|
2202
2202
|
return inherits_browser.exports;
|
|
2203
2203
|
}
|
|
2204
|
-
function getDefaultExportFromCjs$1(
|
|
2205
|
-
return
|
|
2204
|
+
function getDefaultExportFromCjs$1(x2) {
|
|
2205
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
2206
2206
|
}
|
|
2207
2207
|
var browser$1 = { exports: {} };
|
|
2208
2208
|
var process$2 = browser$1.exports = {};
|
|
@@ -2783,17 +2783,17 @@
|
|
|
2783
2783
|
);
|
|
2784
2784
|
}
|
|
2785
2785
|
if (a2 === b2) return 0;
|
|
2786
|
-
let
|
|
2786
|
+
let x2 = a2.length;
|
|
2787
2787
|
let y2 = b2.length;
|
|
2788
|
-
for (let i22 = 0, len22 = Math.min(
|
|
2788
|
+
for (let i22 = 0, len22 = Math.min(x2, y2); i22 < len22; ++i22) {
|
|
2789
2789
|
if (a2[i22] !== b2[i22]) {
|
|
2790
|
-
|
|
2790
|
+
x2 = a2[i22];
|
|
2791
2791
|
y2 = b2[i22];
|
|
2792
2792
|
break;
|
|
2793
2793
|
}
|
|
2794
2794
|
}
|
|
2795
|
-
if (
|
|
2796
|
-
if (y2 <
|
|
2795
|
+
if (x2 < y2) return -1;
|
|
2796
|
+
if (y2 < x2) return 1;
|
|
2797
2797
|
return 0;
|
|
2798
2798
|
};
|
|
2799
2799
|
Buffer4.isEncoding = function isEncoding(encoding) {
|
|
@@ -3042,20 +3042,20 @@
|
|
|
3042
3042
|
thisStart >>>= 0;
|
|
3043
3043
|
thisEnd >>>= 0;
|
|
3044
3044
|
if (this === target) return 0;
|
|
3045
|
-
let
|
|
3045
|
+
let x2 = thisEnd - thisStart;
|
|
3046
3046
|
let y2 = end2 - start2;
|
|
3047
|
-
const len22 = Math.min(
|
|
3047
|
+
const len22 = Math.min(x2, y2);
|
|
3048
3048
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
3049
3049
|
const targetCopy = target.slice(start2, end2);
|
|
3050
3050
|
for (let i22 = 0; i22 < len22; ++i22) {
|
|
3051
3051
|
if (thisCopy[i22] !== targetCopy[i22]) {
|
|
3052
|
-
|
|
3052
|
+
x2 = thisCopy[i22];
|
|
3053
3053
|
y2 = targetCopy[i22];
|
|
3054
3054
|
break;
|
|
3055
3055
|
}
|
|
3056
3056
|
}
|
|
3057
|
-
if (
|
|
3058
|
-
if (y2 <
|
|
3057
|
+
if (x2 < y2) return -1;
|
|
3058
|
+
if (y2 < x2) return 1;
|
|
3059
3059
|
return 0;
|
|
3060
3060
|
};
|
|
3061
3061
|
function bidirectionalIndexOf(buffer3, val, byteOffset, encoding, dir) {
|
|
@@ -4627,15 +4627,15 @@
|
|
|
4627
4627
|
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
4628
4628
|
var originalGetProto = requireObject_getPrototypeOf();
|
|
4629
4629
|
var getDunderProto = /* @__PURE__ */ requireGet();
|
|
4630
|
-
getProto$1 = reflectGetProto ? function getProto2(
|
|
4631
|
-
return reflectGetProto(
|
|
4632
|
-
} : originalGetProto ? function getProto2(
|
|
4633
|
-
if (!
|
|
4630
|
+
getProto$1 = reflectGetProto ? function getProto2(O) {
|
|
4631
|
+
return reflectGetProto(O);
|
|
4632
|
+
} : originalGetProto ? function getProto2(O) {
|
|
4633
|
+
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
4634
4634
|
throw new TypeError("getProto: not an object");
|
|
4635
4635
|
}
|
|
4636
|
-
return originalGetProto(
|
|
4637
|
-
} : getDunderProto ? function getProto2(
|
|
4638
|
-
return getDunderProto(
|
|
4636
|
+
return originalGetProto(O);
|
|
4637
|
+
} : getDunderProto ? function getProto2(O) {
|
|
4638
|
+
return getDunderProto(O);
|
|
4639
4639
|
} : null;
|
|
4640
4640
|
return getProto$1;
|
|
4641
4641
|
}
|
|
@@ -5313,8 +5313,8 @@
|
|
|
5313
5313
|
}
|
|
5314
5314
|
}
|
|
5315
5315
|
};
|
|
5316
|
-
function isArray2(
|
|
5317
|
-
return toStr.call(
|
|
5316
|
+
function isArray2(x2) {
|
|
5317
|
+
return toStr.call(x2) === "[object Array]";
|
|
5318
5318
|
}
|
|
5319
5319
|
forEach = function forEach2(list2, iterator2, thisArg) {
|
|
5320
5320
|
if (!isCallable2(iterator2)) {
|
|
@@ -5923,10 +5923,10 @@
|
|
|
5923
5923
|
var i2 = 1;
|
|
5924
5924
|
var args = arguments;
|
|
5925
5925
|
var len2 = args.length;
|
|
5926
|
-
var str = String(f2).replace(formatRegExp, function(
|
|
5927
|
-
if (
|
|
5928
|
-
if (i2 >= len2) return
|
|
5929
|
-
switch (
|
|
5926
|
+
var str = String(f2).replace(formatRegExp, function(x3) {
|
|
5927
|
+
if (x3 === "%%") return "%";
|
|
5928
|
+
if (i2 >= len2) return x3;
|
|
5929
|
+
switch (x3) {
|
|
5930
5930
|
case "%s":
|
|
5931
5931
|
return String(args[i2++]);
|
|
5932
5932
|
case "%d":
|
|
@@ -5938,14 +5938,14 @@
|
|
|
5938
5938
|
return "[Circular]";
|
|
5939
5939
|
}
|
|
5940
5940
|
default:
|
|
5941
|
-
return
|
|
5941
|
+
return x3;
|
|
5942
5942
|
}
|
|
5943
5943
|
});
|
|
5944
|
-
for (var
|
|
5945
|
-
if (isNull(
|
|
5946
|
-
str += " " +
|
|
5944
|
+
for (var x2 = args[i2]; i2 < len2; x2 = args[++i2]) {
|
|
5945
|
+
if (isNull(x2) || !isObject2(x2)) {
|
|
5946
|
+
str += " " + x2;
|
|
5947
5947
|
} else {
|
|
5948
|
-
str += " " + inspect2(
|
|
5948
|
+
str += " " + inspect2(x2);
|
|
5949
5949
|
}
|
|
5950
5950
|
}
|
|
5951
5951
|
return str;
|
|
@@ -6158,7 +6158,7 @@
|
|
|
6158
6158
|
}
|
|
6159
6159
|
function formatArray(ctx2, value, recurseTimes, visibleKeys, keys2) {
|
|
6160
6160
|
var output = [];
|
|
6161
|
-
for (var i2 = 0,
|
|
6161
|
+
for (var i2 = 0, l = value.length; i2 < l; ++i2) {
|
|
6162
6162
|
if (hasOwnProperty2(value, String(i2))) {
|
|
6163
6163
|
output.push(formatProperty(
|
|
6164
6164
|
ctx2,
|
|
@@ -7257,8 +7257,8 @@
|
|
|
7257
7257
|
state2.bufferProcessing = true;
|
|
7258
7258
|
var entry = state2.bufferedRequest;
|
|
7259
7259
|
if (stream._writev && entry && entry.next) {
|
|
7260
|
-
var
|
|
7261
|
-
var buffer2 = new Array(
|
|
7260
|
+
var l = state2.bufferedRequestCount;
|
|
7261
|
+
var buffer2 = new Array(l);
|
|
7262
7262
|
var holder = state2.corkedRequestsFree;
|
|
7263
7263
|
holder.entry = entry;
|
|
7264
7264
|
var count = 0;
|
|
@@ -8808,9 +8808,9 @@
|
|
|
8808
8808
|
return from2(Readable, iterable, opts);
|
|
8809
8809
|
};
|
|
8810
8810
|
}
|
|
8811
|
-
function indexOf(xs,
|
|
8812
|
-
for (var i2 = 0,
|
|
8813
|
-
if (xs[i2] ===
|
|
8811
|
+
function indexOf(xs, x2) {
|
|
8812
|
+
for (var i2 = 0, l = xs.length; i2 < l; i2++) {
|
|
8813
|
+
if (xs[i2] === x2) return i2;
|
|
8814
8814
|
}
|
|
8815
8815
|
return -1;
|
|
8816
8816
|
}
|
|
@@ -9189,7 +9189,7 @@
|
|
|
9189
9189
|
function checkBufferLength(parser) {
|
|
9190
9190
|
var maxAllowed = Math.max(sax2.MAX_BUFFER_LENGTH, 10);
|
|
9191
9191
|
var maxActual = 0;
|
|
9192
|
-
for (var i2 = 0,
|
|
9192
|
+
for (var i2 = 0, l = buffers.length; i2 < l; i2++) {
|
|
9193
9193
|
var len2 = parser[buffers[i2]].length;
|
|
9194
9194
|
if (len2 > maxAllowed) {
|
|
9195
9195
|
switch (buffers[i2]) {
|
|
@@ -9214,7 +9214,7 @@
|
|
|
9214
9214
|
parser.bufferCheckPosition = m2 + parser.position;
|
|
9215
9215
|
}
|
|
9216
9216
|
function clearBuffers(parser) {
|
|
9217
|
-
for (var i2 = 0,
|
|
9217
|
+
for (var i2 = 0, l = buffers.length; i2 < l; i2++) {
|
|
9218
9218
|
parser[buffers[i2]] = "";
|
|
9219
9219
|
}
|
|
9220
9220
|
}
|
|
@@ -9268,27 +9268,27 @@
|
|
|
9268
9268
|
this._parser = new SAXParser(strict, opt);
|
|
9269
9269
|
this.writable = true;
|
|
9270
9270
|
this.readable = true;
|
|
9271
|
-
var
|
|
9271
|
+
var me2 = this;
|
|
9272
9272
|
this._parser.onend = function() {
|
|
9273
|
-
|
|
9273
|
+
me2.emit("end");
|
|
9274
9274
|
};
|
|
9275
9275
|
this._parser.onerror = function(er) {
|
|
9276
|
-
|
|
9277
|
-
|
|
9276
|
+
me2.emit("error", er);
|
|
9277
|
+
me2._parser.error = null;
|
|
9278
9278
|
};
|
|
9279
9279
|
this._decoder = null;
|
|
9280
9280
|
streamWraps.forEach(function(ev) {
|
|
9281
|
-
Object.defineProperty(
|
|
9281
|
+
Object.defineProperty(me2, "on" + ev, {
|
|
9282
9282
|
get: function() {
|
|
9283
|
-
return
|
|
9283
|
+
return me2._parser["on" + ev];
|
|
9284
9284
|
},
|
|
9285
9285
|
set: function(h2) {
|
|
9286
9286
|
if (!h2) {
|
|
9287
|
-
|
|
9288
|
-
|
|
9287
|
+
me2.removeAllListeners(ev);
|
|
9288
|
+
me2._parser["on" + ev] = h2;
|
|
9289
9289
|
return h2;
|
|
9290
9290
|
}
|
|
9291
|
-
|
|
9291
|
+
me2.on(ev, h2);
|
|
9292
9292
|
},
|
|
9293
9293
|
enumerable: true,
|
|
9294
9294
|
configurable: false
|
|
@@ -9320,15 +9320,15 @@
|
|
|
9320
9320
|
return true;
|
|
9321
9321
|
};
|
|
9322
9322
|
SAXStream.prototype.on = function(ev, handler2) {
|
|
9323
|
-
var
|
|
9324
|
-
if (!
|
|
9325
|
-
|
|
9323
|
+
var me2 = this;
|
|
9324
|
+
if (!me2._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
|
|
9325
|
+
me2._parser["on" + ev] = function() {
|
|
9326
9326
|
var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
9327
9327
|
args.splice(0, 0, ev);
|
|
9328
|
-
|
|
9328
|
+
me2.emit.apply(me2, args);
|
|
9329
9329
|
};
|
|
9330
9330
|
}
|
|
9331
|
-
return Stream.prototype.on.call(
|
|
9331
|
+
return Stream.prototype.on.call(me2, ev, handler2);
|
|
9332
9332
|
};
|
|
9333
9333
|
var CDATA = "[CDATA[";
|
|
9334
9334
|
var DOCTYPE = "DOCTYPE";
|
|
@@ -9834,7 +9834,7 @@
|
|
|
9834
9834
|
});
|
|
9835
9835
|
});
|
|
9836
9836
|
}
|
|
9837
|
-
for (var i2 = 0,
|
|
9837
|
+
for (var i2 = 0, l = parser.attribList.length; i2 < l; i2++) {
|
|
9838
9838
|
var nv = parser.attribList[i2];
|
|
9839
9839
|
var name = nv[0];
|
|
9840
9840
|
var value = nv[1];
|
|
@@ -9920,9 +9920,9 @@
|
|
|
9920
9920
|
var tag = parser.tag = parser.tags.pop();
|
|
9921
9921
|
parser.tagName = parser.tag.name;
|
|
9922
9922
|
emitNode(parser, "onclosetag", parser.tagName);
|
|
9923
|
-
var
|
|
9923
|
+
var x2 = {};
|
|
9924
9924
|
for (var i2 in tag.ns) {
|
|
9925
|
-
|
|
9925
|
+
x2[i2] = tag.ns[i2];
|
|
9926
9926
|
}
|
|
9927
9927
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
9928
9928
|
if (parser.opt.xmlns && tag.ns !== parent.ns) {
|
|
@@ -11402,8 +11402,8 @@
|
|
|
11402
11402
|
rnds[8] = rnds[8] & 63 | 128;
|
|
11403
11403
|
return unsafeStringify$1(rnds);
|
|
11404
11404
|
}
|
|
11405
|
-
function getDefaultExportFromCjs$3(
|
|
11406
|
-
return
|
|
11405
|
+
function getDefaultExportFromCjs$3(x2) {
|
|
11406
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
11407
11407
|
}
|
|
11408
11408
|
const CRC_TABLE = new Int32Array([
|
|
11409
11409
|
0,
|
|
@@ -15219,8 +15219,8 @@
|
|
|
15219
15219
|
const points = [];
|
|
15220
15220
|
polygonNode.elements.forEach((element2) => {
|
|
15221
15221
|
if (["wp:start", "wp:lineTo"].includes(element2.name)) {
|
|
15222
|
-
const { x, y: y2 } = element2.attributes;
|
|
15223
|
-
points.push([polygonUnitsToPixels(
|
|
15222
|
+
const { x: x2, y: y2 } = element2.attributes;
|
|
15223
|
+
points.push([polygonUnitsToPixels(x2), polygonUnitsToPixels(y2)]);
|
|
15224
15224
|
}
|
|
15225
15225
|
});
|
|
15226
15226
|
if (points.length > 1) {
|
|
@@ -15243,13 +15243,13 @@
|
|
|
15243
15243
|
elements: []
|
|
15244
15244
|
};
|
|
15245
15245
|
points.forEach((point2, index2) => {
|
|
15246
|
-
const [
|
|
15246
|
+
const [x2, y2] = point2;
|
|
15247
15247
|
const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
|
|
15248
15248
|
const pointNode = {
|
|
15249
15249
|
name: tagName,
|
|
15250
15250
|
type: tagName,
|
|
15251
15251
|
attributes: {
|
|
15252
|
-
x: pixelsToPolygonUnits(
|
|
15252
|
+
x: pixelsToPolygonUnits(x2),
|
|
15253
15253
|
y: pixelsToPolygonUnits(y2)
|
|
15254
15254
|
}
|
|
15255
15255
|
};
|
|
@@ -22907,7 +22907,7 @@
|
|
|
22907
22907
|
const right2 = Math.max(start2.right, end2.right);
|
|
22908
22908
|
const width = right2 - left2;
|
|
22909
22909
|
const height = bottom2 - top2;
|
|
22910
|
-
const
|
|
22910
|
+
const x2 = left2;
|
|
22911
22911
|
const y2 = top2;
|
|
22912
22912
|
const data = {
|
|
22913
22913
|
top: top2,
|
|
@@ -22916,7 +22916,7 @@
|
|
|
22916
22916
|
right: right2,
|
|
22917
22917
|
width,
|
|
22918
22918
|
height,
|
|
22919
|
-
x,
|
|
22919
|
+
x: x2,
|
|
22920
22920
|
y: y2
|
|
22921
22921
|
};
|
|
22922
22922
|
return {
|
|
@@ -23005,39 +23005,39 @@
|
|
|
23005
23005
|
function L() {
|
|
23006
23006
|
return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
|
|
23007
23007
|
}
|
|
23008
|
-
var
|
|
23009
|
-
function G(
|
|
23010
|
-
|
|
23008
|
+
var T = L();
|
|
23009
|
+
function G(u3) {
|
|
23010
|
+
T = u3;
|
|
23011
23011
|
}
|
|
23012
|
-
var
|
|
23013
|
-
function h$2(
|
|
23014
|
-
let t = typeof
|
|
23012
|
+
var I = { exec: () => null };
|
|
23013
|
+
function h$2(u3, e = "") {
|
|
23014
|
+
let t = typeof u3 == "string" ? u3 : u3.source, n = { replace: (r2, i2) => {
|
|
23015
23015
|
let s2 = typeof i2 == "string" ? i2 : i2.source;
|
|
23016
23016
|
return s2 = s2.replace(m.caret, "$1"), t = t.replace(r2, s2), n;
|
|
23017
23017
|
}, getRegex: () => new RegExp(t, e) };
|
|
23018
23018
|
return n;
|
|
23019
23019
|
}
|
|
23020
|
-
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: (
|
|
23021
|
-
]`).replace("lheading",
|
|
23022
|
-
var
|
|
23023
|
-
function w(
|
|
23020
|
+
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$2(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$2(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$2(/^ {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$2(/^( {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$2("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ae = h$2(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$2(/^( {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$1 = h$2("^ *([^\\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$1, paragraph: h$2(j).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re$1).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, Me = { ...K$1, html: h$2(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: I, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h$2(j).replace("hr", E).replace("heading", ` *#{1,6} *[^
|
|
23021
|
+
]`).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$2(/^((?![*_])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$2(/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$2(ce, "u").replace(/punct/g, D).getRegex(), De = h$2(ce, "u").replace(/punct/g, pe).getRegex(), he$3 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", He = h$2(he$3, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ze = h$2(he$3, "gu").replace(/notPunctSpace/g, Be).replace(/punctSpace/g, Ce).replace(/punct/g, pe).getRegex(), Ge = h$2("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)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$2(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Fe = h$2(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), je = h$2(U).replace("(?:-->|$)", "-->").getRegex(), Qe = h$2("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q$1 = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ue = h$2(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q$1).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = h$2(/^!?\[(label)\]\[(ref)\]/).replace("label", q$1).replace("ref", Q).getRegex(), ke = h$2(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ke = h$2("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$2(/^!?\[(label)\]\((.*?)\)/).replace("label", q$1).getRegex(), reflink: h$2(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q$1).getRegex() }, N = { ...X, emStrongRDelimAst: Ze, emStrongLDelim: De, url: h$2(/^((?: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(/^([`~]+|[^`~])(?:(?= {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$2(le).replace("{2,}", "*").getRegex(), text: h$2(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 };
|
|
23022
|
+
var Je = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ge = (u3) => Je[u3];
|
|
23023
|
+
function w(u3, e) {
|
|
23024
23024
|
if (e) {
|
|
23025
|
-
if (m.escapeTest.test(
|
|
23026
|
-
} else if (m.escapeTestNoEncode.test(
|
|
23027
|
-
return
|
|
23025
|
+
if (m.escapeTest.test(u3)) return u3.replace(m.escapeReplace, ge);
|
|
23026
|
+
} else if (m.escapeTestNoEncode.test(u3)) return u3.replace(m.escapeReplaceNoEncode, ge);
|
|
23027
|
+
return u3;
|
|
23028
23028
|
}
|
|
23029
|
-
function J(
|
|
23029
|
+
function J(u3) {
|
|
23030
23030
|
try {
|
|
23031
|
-
|
|
23031
|
+
u3 = encodeURI(u3).replace(m.percentDecode, "%");
|
|
23032
23032
|
} catch {
|
|
23033
23033
|
return null;
|
|
23034
23034
|
}
|
|
23035
|
-
return
|
|
23035
|
+
return u3;
|
|
23036
23036
|
}
|
|
23037
|
-
function V(
|
|
23038
|
-
let t =
|
|
23039
|
-
let a2 = false,
|
|
23040
|
-
for (; --
|
|
23037
|
+
function V(u3, e) {
|
|
23038
|
+
let t = u3.replace(m.findPipe, (i2, s2, o) => {
|
|
23039
|
+
let a2 = false, l = s2;
|
|
23040
|
+
for (; --l >= 0 && o[l] === "\\"; ) a2 = !a2;
|
|
23041
23041
|
return a2 ? "|" : " |";
|
|
23042
23042
|
}), n = t.split(m.splitPipe), r2 = 0;
|
|
23043
23043
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
|
|
@@ -23045,33 +23045,33 @@
|
|
|
23045
23045
|
for (; r2 < n.length; r2++) n[r2] = n[r2].trim().replace(m.slashPipe, "|");
|
|
23046
23046
|
return n;
|
|
23047
23047
|
}
|
|
23048
|
-
function z(
|
|
23049
|
-
let n =
|
|
23048
|
+
function z(u3, e, t) {
|
|
23049
|
+
let n = u3.length;
|
|
23050
23050
|
if (n === 0) return "";
|
|
23051
23051
|
let r2 = 0;
|
|
23052
23052
|
for (; r2 < n; ) {
|
|
23053
|
-
let i2 =
|
|
23053
|
+
let i2 = u3.charAt(n - r2 - 1);
|
|
23054
23054
|
if (i2 === e && true) r2++;
|
|
23055
23055
|
else break;
|
|
23056
23056
|
}
|
|
23057
|
-
return
|
|
23057
|
+
return u3.slice(0, n - r2);
|
|
23058
23058
|
}
|
|
23059
|
-
function
|
|
23060
|
-
if (
|
|
23059
|
+
function fe(u3, e) {
|
|
23060
|
+
if (u3.indexOf(e[1]) === -1) return -1;
|
|
23061
23061
|
let t = 0;
|
|
23062
|
-
for (let n = 0; n <
|
|
23063
|
-
else if (
|
|
23064
|
-
else if (
|
|
23062
|
+
for (let n = 0; n < u3.length; n++) if (u3[n] === "\\") n++;
|
|
23063
|
+
else if (u3[n] === e[0]) t++;
|
|
23064
|
+
else if (u3[n] === e[1] && (t--, t < 0)) return n;
|
|
23065
23065
|
return t > 0 ? -2 : -1;
|
|
23066
23066
|
}
|
|
23067
|
-
function
|
|
23068
|
-
let i2 = e.href, s2 = e.title || null, o =
|
|
23067
|
+
function me(u3, e, t, n, r2) {
|
|
23068
|
+
let i2 = e.href, s2 = e.title || null, o = u3[1].replace(r2.other.outputLinkReplace, "$1");
|
|
23069
23069
|
n.state.inLink = true;
|
|
23070
|
-
let a2 = { type:
|
|
23070
|
+
let a2 = { type: u3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i2, title: s2, text: o, tokens: n.inlineTokens(o) };
|
|
23071
23071
|
return n.state.inLink = false, a2;
|
|
23072
23072
|
}
|
|
23073
|
-
function
|
|
23074
|
-
let n =
|
|
23073
|
+
function Ve(u3, e, t) {
|
|
23074
|
+
let n = u3.match(t.other.indentCodeCompensation);
|
|
23075
23075
|
if (n === null) return e;
|
|
23076
23076
|
let r2 = n[1];
|
|
23077
23077
|
return e.split(`
|
|
@@ -23088,7 +23088,7 @@
|
|
|
23088
23088
|
__publicField$2(this, "options");
|
|
23089
23089
|
__publicField$2(this, "rules");
|
|
23090
23090
|
__publicField$2(this, "lexer");
|
|
23091
|
-
this.options = e ||
|
|
23091
|
+
this.options = e || T;
|
|
23092
23092
|
}
|
|
23093
23093
|
space(e) {
|
|
23094
23094
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -23105,7 +23105,7 @@
|
|
|
23105
23105
|
fences(e) {
|
|
23106
23106
|
let t = this.rules.block.fences.exec(e);
|
|
23107
23107
|
if (t) {
|
|
23108
|
-
let n = t[0], r2 =
|
|
23108
|
+
let n = t[0], r2 = Ve(n, t[3] || "", this.rules);
|
|
23109
23109
|
return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r2 };
|
|
23110
23110
|
}
|
|
23111
23111
|
}
|
|
@@ -23132,32 +23132,32 @@
|
|
|
23132
23132
|
`).split(`
|
|
23133
23133
|
`), r2 = "", i2 = "", s2 = [];
|
|
23134
23134
|
for (; n.length > 0; ) {
|
|
23135
|
-
let o = false, a2 = [],
|
|
23136
|
-
for (
|
|
23137
|
-
else if (!o) a2.push(n[
|
|
23135
|
+
let o = false, a2 = [], l;
|
|
23136
|
+
for (l = 0; l < n.length; l++) if (this.rules.other.blockquoteStart.test(n[l])) a2.push(n[l]), o = true;
|
|
23137
|
+
else if (!o) a2.push(n[l]);
|
|
23138
23138
|
else break;
|
|
23139
|
-
n = n.slice(
|
|
23140
|
-
let
|
|
23141
|
-
`),
|
|
23139
|
+
n = n.slice(l);
|
|
23140
|
+
let c2 = a2.join(`
|
|
23141
|
+
`), p2 = c2.replace(this.rules.other.blockquoteSetextReplace, `
|
|
23142
23142
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
23143
23143
|
r2 = r2 ? `${r2}
|
|
23144
|
-
${
|
|
23145
|
-
${
|
|
23146
|
-
let
|
|
23147
|
-
if (this.lexer.state.top = true, this.lexer.blockTokens(
|
|
23148
|
-
let
|
|
23149
|
-
if (
|
|
23150
|
-
if (
|
|
23151
|
-
let
|
|
23144
|
+
${c2}` : c2, i2 = i2 ? `${i2}
|
|
23145
|
+
${p2}` : p2;
|
|
23146
|
+
let g = this.lexer.state.top;
|
|
23147
|
+
if (this.lexer.state.top = true, this.lexer.blockTokens(p2, s2, true), this.lexer.state.top = g, n.length === 0) break;
|
|
23148
|
+
let d2 = s2.at(-1);
|
|
23149
|
+
if (d2?.type === "code") break;
|
|
23150
|
+
if (d2?.type === "blockquote") {
|
|
23151
|
+
let R = d2, f2 = R.raw + `
|
|
23152
23152
|
` + n.join(`
|
|
23153
|
-
`),
|
|
23154
|
-
s2[s2.length - 1] =
|
|
23153
|
+
`), O = this.blockquote(f2);
|
|
23154
|
+
s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - R.raw.length) + O.raw, i2 = i2.substring(0, i2.length - R.text.length) + O.text;
|
|
23155
23155
|
break;
|
|
23156
|
-
} else if (
|
|
23157
|
-
let
|
|
23156
|
+
} else if (d2?.type === "list") {
|
|
23157
|
+
let R = d2, f2 = R.raw + `
|
|
23158
23158
|
` + n.join(`
|
|
23159
|
-
`),
|
|
23160
|
-
s2[s2.length - 1] =
|
|
23159
|
+
`), O = this.list(f2);
|
|
23160
|
+
s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - d2.raw.length) + O.raw, i2 = i2.substring(0, i2.length - R.raw.length) + O.raw, n = f2.substring(s2.at(-1).raw.length).split(`
|
|
23161
23161
|
`);
|
|
23162
23162
|
continue;
|
|
23163
23163
|
}
|
|
@@ -23172,43 +23172,43 @@ ${c2}` : c2;
|
|
|
23172
23172
|
n = r2 ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r2 ? n : "[*+-]");
|
|
23173
23173
|
let s2 = this.rules.other.listItemRegex(n), o = false;
|
|
23174
23174
|
for (; e; ) {
|
|
23175
|
-
let
|
|
23175
|
+
let l = false, c2 = "", p2 = "";
|
|
23176
23176
|
if (!(t = s2.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
23177
|
-
|
|
23178
|
-
let
|
|
23179
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)),
|
|
23180
|
-
`, 1)[0],
|
|
23181
|
-
if (this.options.pedantic ? (
|
|
23182
|
-
`, e = e.substring(
|
|
23183
|
-
let H = this.rules.other.nextBulletRegex(
|
|
23177
|
+
c2 = t[0], e = e.substring(c2.length);
|
|
23178
|
+
let g = t[2].split(`
|
|
23179
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), d2 = e.split(`
|
|
23180
|
+
`, 1)[0], R = !g.trim(), f2 = 0;
|
|
23181
|
+
if (this.options.pedantic ? (f2 = 2, p2 = g.trimStart()) : R ? f2 = t[1].length + 1 : (f2 = t[2].search(this.rules.other.nonSpaceChar), f2 = f2 > 4 ? 1 : f2, p2 = g.slice(f2), f2 += t[1].length), R && this.rules.other.blankLine.test(d2) && (c2 += d2 + `
|
|
23182
|
+
`, e = e.substring(d2.length + 1), l = true), !l) {
|
|
23183
|
+
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);
|
|
23184
23184
|
for (; e; ) {
|
|
23185
23185
|
let Z = e.split(`
|
|
23186
23186
|
`, 1)[0], A2;
|
|
23187
|
-
if (
|
|
23188
|
-
if (A2.search(this.rules.other.nonSpaceChar) >=
|
|
23189
|
-
` + A2.slice(
|
|
23187
|
+
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;
|
|
23188
|
+
if (A2.search(this.rules.other.nonSpaceChar) >= f2 || !d2.trim()) p2 += `
|
|
23189
|
+
` + A2.slice(f2);
|
|
23190
23190
|
else {
|
|
23191
|
-
if (
|
|
23192
|
-
|
|
23193
|
-
` +
|
|
23191
|
+
if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(g) || ne.test(g) || ee.test(g)) break;
|
|
23192
|
+
p2 += `
|
|
23193
|
+
` + d2;
|
|
23194
23194
|
}
|
|
23195
|
-
!
|
|
23196
|
-
`, e = e.substring(Z.length + 1),
|
|
23195
|
+
!R && !d2.trim() && (R = true), c2 += Z + `
|
|
23196
|
+
`, e = e.substring(Z.length + 1), g = A2.slice(f2);
|
|
23197
23197
|
}
|
|
23198
23198
|
}
|
|
23199
|
-
i2.loose || (o ? i2.loose = true : this.rules.other.doubleBlankLine.test(
|
|
23200
|
-
let
|
|
23201
|
-
this.options.gfm && (
|
|
23199
|
+
i2.loose || (o ? i2.loose = true : this.rules.other.doubleBlankLine.test(c2) && (o = true));
|
|
23200
|
+
let O = null, Y2;
|
|
23201
|
+
this.options.gfm && (O = this.rules.other.listIsTask.exec(p2), O && (Y2 = O[0] !== "[ ] ", p2 = p2.replace(this.rules.other.listReplaceTask, ""))), i2.items.push({ type: "list_item", raw: c2, task: !!O, checked: Y2, loose: false, text: p2, tokens: [] }), i2.raw += c2;
|
|
23202
23202
|
}
|
|
23203
23203
|
let a2 = i2.items.at(-1);
|
|
23204
23204
|
if (a2) a2.raw = a2.raw.trimEnd(), a2.text = a2.text.trimEnd();
|
|
23205
23205
|
else return;
|
|
23206
23206
|
i2.raw = i2.raw.trimEnd();
|
|
23207
|
-
for (let
|
|
23208
|
-
let
|
|
23209
|
-
i2.loose =
|
|
23207
|
+
for (let l = 0; l < i2.items.length; l++) if (this.lexer.state.top = false, i2.items[l].tokens = this.lexer.blockTokens(i2.items[l].text, []), !i2.loose) {
|
|
23208
|
+
let c2 = i2.items[l].tokens.filter((g) => g.type === "space"), p2 = c2.length > 0 && c2.some((g) => this.rules.other.anyLine.test(g.raw));
|
|
23209
|
+
i2.loose = p2;
|
|
23210
23210
|
}
|
|
23211
|
-
if (i2.loose) for (let
|
|
23211
|
+
if (i2.loose) for (let l = 0; l < i2.items.length; l++) i2.items[l].loose = true;
|
|
23212
23212
|
return i2;
|
|
23213
23213
|
}
|
|
23214
23214
|
}
|
|
@@ -23231,7 +23231,7 @@ ${c2}` : c2;
|
|
|
23231
23231
|
if (n.length === r2.length) {
|
|
23232
23232
|
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);
|
|
23233
23233
|
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] });
|
|
23234
|
-
for (let o of i2) s2.rows.push(V(o, s2.header.length).map((a2,
|
|
23234
|
+
for (let o of i2) s2.rows.push(V(o, s2.header.length).map((a2, l) => ({ text: a2, tokens: this.lexer.inline(a2), header: false, align: s2.align[l] })));
|
|
23235
23235
|
return s2;
|
|
23236
23236
|
}
|
|
23237
23237
|
}
|
|
@@ -23268,7 +23268,7 @@ ${c2}` : c2;
|
|
|
23268
23268
|
let s2 = z(n.slice(0, -1), "\\");
|
|
23269
23269
|
if ((n.length - s2.length) % 2 === 0) return;
|
|
23270
23270
|
} else {
|
|
23271
|
-
let s2 =
|
|
23271
|
+
let s2 = fe(t[2], "()");
|
|
23272
23272
|
if (s2 === -2) return;
|
|
23273
23273
|
if (s2 > -1) {
|
|
23274
23274
|
let a2 = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
|
|
@@ -23280,7 +23280,7 @@ ${c2}` : c2;
|
|
|
23280
23280
|
let s2 = this.rules.other.pedanticHrefTitle.exec(r2);
|
|
23281
23281
|
s2 && (r2 = s2[1], i2 = s2[3]);
|
|
23282
23282
|
} else i2 = t[3] ? t[3].slice(1, -1) : "";
|
|
23283
|
-
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)),
|
|
23283
|
+
return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), me(t, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: i2 && i2.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
|
|
23284
23284
|
}
|
|
23285
23285
|
}
|
|
23286
23286
|
reflink(e, t) {
|
|
@@ -23291,32 +23291,32 @@ ${c2}` : c2;
|
|
|
23291
23291
|
let s2 = n[0].charAt(0);
|
|
23292
23292
|
return { type: "text", raw: s2, text: s2 };
|
|
23293
23293
|
}
|
|
23294
|
-
return
|
|
23294
|
+
return me(n, i2, n[0], this.lexer, this.rules);
|
|
23295
23295
|
}
|
|
23296
23296
|
}
|
|
23297
23297
|
emStrong(e, t, n = "") {
|
|
23298
23298
|
let r2 = this.rules.inline.emStrongLDelim.exec(e);
|
|
23299
23299
|
if (!r2 || r2[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
|
|
23300
23300
|
if (!(r2[1] || r2[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
|
23301
|
-
let s2 = [...r2[0]].length - 1, o, a2,
|
|
23302
|
-
for (
|
|
23301
|
+
let s2 = [...r2[0]].length - 1, o, a2, l = s2, c2 = 0, p2 = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
23302
|
+
for (p2.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = p2.exec(t)) != null; ) {
|
|
23303
23303
|
if (o = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !o) continue;
|
|
23304
23304
|
if (a2 = [...o].length, r2[3] || r2[4]) {
|
|
23305
|
-
|
|
23305
|
+
l += a2;
|
|
23306
23306
|
continue;
|
|
23307
23307
|
} else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + a2) % 3)) {
|
|
23308
|
-
|
|
23308
|
+
c2 += a2;
|
|
23309
23309
|
continue;
|
|
23310
23310
|
}
|
|
23311
|
-
if (
|
|
23312
|
-
a2 = Math.min(a2, a2 +
|
|
23313
|
-
let
|
|
23311
|
+
if (l -= a2, l > 0) continue;
|
|
23312
|
+
a2 = Math.min(a2, a2 + l + c2);
|
|
23313
|
+
let g = [...r2[0]][0].length, d2 = e.slice(0, s2 + r2.index + g + a2);
|
|
23314
23314
|
if (Math.min(s2, a2) % 2) {
|
|
23315
|
-
let
|
|
23316
|
-
return { type: "em", raw:
|
|
23315
|
+
let f2 = d2.slice(1, -1);
|
|
23316
|
+
return { type: "em", raw: d2, text: f2, tokens: this.lexer.inlineTokens(f2) };
|
|
23317
23317
|
}
|
|
23318
|
-
let
|
|
23319
|
-
return { type: "strong", raw:
|
|
23318
|
+
let R = d2.slice(2, -2);
|
|
23319
|
+
return { type: "strong", raw: d2, text: R, tokens: this.lexer.inlineTokens(R) };
|
|
23320
23320
|
}
|
|
23321
23321
|
}
|
|
23322
23322
|
}
|
|
@@ -23365,25 +23365,25 @@ ${c2}` : c2;
|
|
|
23365
23365
|
}
|
|
23366
23366
|
}
|
|
23367
23367
|
};
|
|
23368
|
-
var
|
|
23368
|
+
var x = class u {
|
|
23369
23369
|
constructor(e) {
|
|
23370
23370
|
__publicField$2(this, "tokens");
|
|
23371
23371
|
__publicField$2(this, "options");
|
|
23372
23372
|
__publicField$2(this, "state");
|
|
23373
23373
|
__publicField$2(this, "tokenizer");
|
|
23374
23374
|
__publicField$2(this, "inlineQueue");
|
|
23375
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
|
23376
|
-
let t = { other: m, block:
|
|
23377
|
-
this.options.pedantic ? (t.block =
|
|
23375
|
+
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 };
|
|
23376
|
+
let t = { other: m, block: C.normal, inline: M$1.normal };
|
|
23377
|
+
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;
|
|
23378
23378
|
}
|
|
23379
23379
|
static get rules() {
|
|
23380
|
-
return { block:
|
|
23380
|
+
return { block: C, inline: M$1 };
|
|
23381
23381
|
}
|
|
23382
23382
|
static lex(e, t) {
|
|
23383
|
-
return new
|
|
23383
|
+
return new u(t).lex(e);
|
|
23384
23384
|
}
|
|
23385
23385
|
static lexInline(e, t) {
|
|
23386
|
-
return new
|
|
23386
|
+
return new u(t).inlineTokens(e);
|
|
23387
23387
|
}
|
|
23388
23388
|
lex(e) {
|
|
23389
23389
|
e = e.replace(m.carriageReturn, `
|
|
@@ -23458,8 +23458,8 @@ ${c2}` : c2;
|
|
|
23458
23458
|
let i2 = e;
|
|
23459
23459
|
if (this.options.extensions?.startBlock) {
|
|
23460
23460
|
let s2 = 1 / 0, o = e.slice(1), a2;
|
|
23461
|
-
this.options.extensions.startBlock.forEach((
|
|
23462
|
-
a2 =
|
|
23461
|
+
this.options.extensions.startBlock.forEach((l) => {
|
|
23462
|
+
a2 = l.call({ lexer: this }, o), typeof a2 == "number" && a2 >= 0 && (s2 = Math.min(s2, a2));
|
|
23463
23463
|
}), s2 < 1 / 0 && s2 >= 0 && (i2 = e.substring(0, s2 + 1));
|
|
23464
23464
|
}
|
|
23465
23465
|
if (this.state.top && (r2 = this.tokenizer.paragraph(i2))) {
|
|
@@ -23505,7 +23505,7 @@ ${c2}` : c2;
|
|
|
23505
23505
|
for (; e; ) {
|
|
23506
23506
|
i2 || (s2 = ""), i2 = false;
|
|
23507
23507
|
let o;
|
|
23508
|
-
if (this.options.extensions?.inline?.some((
|
|
23508
|
+
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;
|
|
23509
23509
|
if (o = this.tokenizer.escape(e)) {
|
|
23510
23510
|
e = e.substring(o.raw.length), t.push(o);
|
|
23511
23511
|
continue;
|
|
@@ -23520,8 +23520,8 @@ ${c2}` : c2;
|
|
|
23520
23520
|
}
|
|
23521
23521
|
if (o = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
23522
23522
|
e = e.substring(o.raw.length);
|
|
23523
|
-
let
|
|
23524
|
-
o.type === "text" &&
|
|
23523
|
+
let l = t.at(-1);
|
|
23524
|
+
o.type === "text" && l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
|
|
23525
23525
|
continue;
|
|
23526
23526
|
}
|
|
23527
23527
|
if (o = this.tokenizer.emStrong(e, n, s2)) {
|
|
@@ -23550,23 +23550,23 @@ ${c2}` : c2;
|
|
|
23550
23550
|
}
|
|
23551
23551
|
let a2 = e;
|
|
23552
23552
|
if (this.options.extensions?.startInline) {
|
|
23553
|
-
let
|
|
23554
|
-
this.options.extensions.startInline.forEach((
|
|
23555
|
-
|
|
23556
|
-
}),
|
|
23553
|
+
let l = 1 / 0, c2 = e.slice(1), p2;
|
|
23554
|
+
this.options.extensions.startInline.forEach((g) => {
|
|
23555
|
+
p2 = g.call({ lexer: this }, c2), typeof p2 == "number" && p2 >= 0 && (l = Math.min(l, p2));
|
|
23556
|
+
}), l < 1 / 0 && l >= 0 && (a2 = e.substring(0, l + 1));
|
|
23557
23557
|
}
|
|
23558
23558
|
if (o = this.tokenizer.inlineText(a2)) {
|
|
23559
23559
|
e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s2 = o.raw.slice(-1)), i2 = true;
|
|
23560
|
-
let
|
|
23561
|
-
|
|
23560
|
+
let l = t.at(-1);
|
|
23561
|
+
l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
|
|
23562
23562
|
continue;
|
|
23563
23563
|
}
|
|
23564
23564
|
if (e) {
|
|
23565
|
-
let
|
|
23565
|
+
let l = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
23566
23566
|
if (this.options.silent) {
|
|
23567
|
-
console.error(
|
|
23567
|
+
console.error(l);
|
|
23568
23568
|
break;
|
|
23569
|
-
} else throw new Error(
|
|
23569
|
+
} else throw new Error(l);
|
|
23570
23570
|
}
|
|
23571
23571
|
}
|
|
23572
23572
|
return t;
|
|
@@ -23576,7 +23576,7 @@ ${c2}` : c2;
|
|
|
23576
23576
|
constructor(e) {
|
|
23577
23577
|
__publicField$2(this, "options");
|
|
23578
23578
|
__publicField$2(this, "parser");
|
|
23579
|
-
this.options = e ||
|
|
23579
|
+
this.options = e || T;
|
|
23580
23580
|
}
|
|
23581
23581
|
space(e) {
|
|
23582
23582
|
return "";
|
|
@@ -23724,18 +23724,18 @@ ${e}</tr>
|
|
|
23724
23724
|
return "";
|
|
23725
23725
|
}
|
|
23726
23726
|
};
|
|
23727
|
-
var
|
|
23727
|
+
var b = class u2 {
|
|
23728
23728
|
constructor(e) {
|
|
23729
23729
|
__publicField$2(this, "options");
|
|
23730
23730
|
__publicField$2(this, "renderer");
|
|
23731
23731
|
__publicField$2(this, "textRenderer");
|
|
23732
|
-
this.options = e ||
|
|
23732
|
+
this.options = e || T, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $$1();
|
|
23733
23733
|
}
|
|
23734
23734
|
static parse(e, t) {
|
|
23735
|
-
return new
|
|
23735
|
+
return new u2(t).parse(e);
|
|
23736
23736
|
}
|
|
23737
23737
|
static parseInline(e, t) {
|
|
23738
|
-
return new
|
|
23738
|
+
return new u2(t).parseInline(e);
|
|
23739
23739
|
}
|
|
23740
23740
|
parse(e, t = true) {
|
|
23741
23741
|
let n = "";
|
|
@@ -23873,7 +23873,7 @@ ${e}</tr>
|
|
|
23873
23873
|
constructor(e) {
|
|
23874
23874
|
__publicField$2(this, "options");
|
|
23875
23875
|
__publicField$2(this, "block");
|
|
23876
|
-
this.options = e ||
|
|
23876
|
+
this.options = e || T;
|
|
23877
23877
|
}
|
|
23878
23878
|
preprocess(e) {
|
|
23879
23879
|
return e;
|
|
@@ -23888,10 +23888,10 @@ ${e}</tr>
|
|
|
23888
23888
|
return e;
|
|
23889
23889
|
}
|
|
23890
23890
|
provideLexer() {
|
|
23891
|
-
return this.block ?
|
|
23891
|
+
return this.block ? x.lex : x.lexInline;
|
|
23892
23892
|
}
|
|
23893
23893
|
provideParser() {
|
|
23894
|
-
return this.block ?
|
|
23894
|
+
return this.block ? b.parse : b.parseInline;
|
|
23895
23895
|
}
|
|
23896
23896
|
}, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField$2(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
|
|
23897
23897
|
var B = class {
|
|
@@ -23900,10 +23900,10 @@ ${e}</tr>
|
|
|
23900
23900
|
__publicField$2(this, "options", this.setOptions);
|
|
23901
23901
|
__publicField$2(this, "parse", this.parseMarkdown(true));
|
|
23902
23902
|
__publicField$2(this, "parseInline", this.parseMarkdown(false));
|
|
23903
|
-
__publicField$2(this, "Parser",
|
|
23903
|
+
__publicField$2(this, "Parser", b);
|
|
23904
23904
|
__publicField$2(this, "Renderer", P);
|
|
23905
23905
|
__publicField$2(this, "TextRenderer", $$1);
|
|
23906
|
-
__publicField$2(this, "Lexer",
|
|
23906
|
+
__publicField$2(this, "Lexer", x);
|
|
23907
23907
|
__publicField$2(this, "Tokenizer", y);
|
|
23908
23908
|
__publicField$2(this, "Hooks", S);
|
|
23909
23909
|
this.use(...e);
|
|
@@ -23956,10 +23956,10 @@ ${e}</tr>
|
|
|
23956
23956
|
for (let s2 in n.renderer) {
|
|
23957
23957
|
if (!(s2 in i2)) throw new Error(`renderer '${s2}' does not exist`);
|
|
23958
23958
|
if (["options", "parser"].includes(s2)) continue;
|
|
23959
|
-
let o = s2, a2 = n.renderer[o],
|
|
23960
|
-
i2[o] = (...
|
|
23961
|
-
let
|
|
23962
|
-
return
|
|
23959
|
+
let o = s2, a2 = n.renderer[o], l = i2[o];
|
|
23960
|
+
i2[o] = (...c2) => {
|
|
23961
|
+
let p2 = a2.apply(i2, c2);
|
|
23962
|
+
return p2 === false && (p2 = l.apply(i2, c2)), p2 || "";
|
|
23963
23963
|
};
|
|
23964
23964
|
}
|
|
23965
23965
|
r2.renderer = i2;
|
|
@@ -23969,10 +23969,10 @@ ${e}</tr>
|
|
|
23969
23969
|
for (let s2 in n.tokenizer) {
|
|
23970
23970
|
if (!(s2 in i2)) throw new Error(`tokenizer '${s2}' does not exist`);
|
|
23971
23971
|
if (["options", "rules", "lexer"].includes(s2)) continue;
|
|
23972
|
-
let o = s2, a2 = n.tokenizer[o],
|
|
23973
|
-
i2[o] = (...
|
|
23974
|
-
let
|
|
23975
|
-
return
|
|
23972
|
+
let o = s2, a2 = n.tokenizer[o], l = i2[o];
|
|
23973
|
+
i2[o] = (...c2) => {
|
|
23974
|
+
let p2 = a2.apply(i2, c2);
|
|
23975
|
+
return p2 === false && (p2 = l.apply(i2, c2)), p2;
|
|
23976
23976
|
};
|
|
23977
23977
|
}
|
|
23978
23978
|
r2.tokenizer = i2;
|
|
@@ -23982,14 +23982,21 @@ ${e}</tr>
|
|
|
23982
23982
|
for (let s2 in n.hooks) {
|
|
23983
23983
|
if (!(s2 in i2)) throw new Error(`hook '${s2}' does not exist`);
|
|
23984
23984
|
if (["options", "block"].includes(s2)) continue;
|
|
23985
|
-
let o = s2, a2 = n.hooks[o],
|
|
23986
|
-
S.passThroughHooks.has(s2) ? i2[o] = (
|
|
23987
|
-
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return
|
|
23988
|
-
|
|
23989
|
-
|
|
23990
|
-
|
|
23991
|
-
let
|
|
23992
|
-
return
|
|
23985
|
+
let o = s2, a2 = n.hooks[o], l = i2[o];
|
|
23986
|
+
S.passThroughHooks.has(s2) ? i2[o] = (c2) => {
|
|
23987
|
+
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return (async () => {
|
|
23988
|
+
let g = await a2.call(i2, c2);
|
|
23989
|
+
return l.call(i2, g);
|
|
23990
|
+
})();
|
|
23991
|
+
let p2 = a2.call(i2, c2);
|
|
23992
|
+
return l.call(i2, p2);
|
|
23993
|
+
} : i2[o] = (...c2) => {
|
|
23994
|
+
if (this.defaults.async) return (async () => {
|
|
23995
|
+
let g = await a2.apply(i2, c2);
|
|
23996
|
+
return g === false && (g = await l.apply(i2, c2)), g;
|
|
23997
|
+
})();
|
|
23998
|
+
let p2 = a2.apply(i2, c2);
|
|
23999
|
+
return p2 === false && (p2 = l.apply(i2, c2)), p2;
|
|
23993
24000
|
};
|
|
23994
24001
|
}
|
|
23995
24002
|
r2.hooks = i2;
|
|
@@ -24008,10 +24015,10 @@ ${e}</tr>
|
|
|
24008
24015
|
return this.defaults = { ...this.defaults, ...e }, this;
|
|
24009
24016
|
}
|
|
24010
24017
|
lexer(e, t) {
|
|
24011
|
-
return
|
|
24018
|
+
return x.lex(e, t ?? this.defaults);
|
|
24012
24019
|
}
|
|
24013
24020
|
parser(e, t) {
|
|
24014
|
-
return
|
|
24021
|
+
return b.parse(e, t ?? this.defaults);
|
|
24015
24022
|
}
|
|
24016
24023
|
parseMarkdown(e) {
|
|
24017
24024
|
return (n, r2) => {
|
|
@@ -24019,17 +24026,20 @@ ${e}</tr>
|
|
|
24019
24026
|
if (this.defaults.async === true && i2.async === false) return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
24020
24027
|
if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
|
|
24021
24028
|
if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
24022
|
-
s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e)
|
|
24023
|
-
|
|
24024
|
-
|
|
24029
|
+
if (s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e), s2.async) return (async () => {
|
|
24030
|
+
let a2 = s2.hooks ? await s2.hooks.preprocess(n) : n, c2 = await (s2.hooks ? await s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(a2, s2), p2 = s2.hooks ? await s2.hooks.processAllTokens(c2) : c2;
|
|
24031
|
+
s2.walkTokens && await Promise.all(this.walkTokens(p2, s2.walkTokens));
|
|
24032
|
+
let d2 = await (s2.hooks ? await s2.hooks.provideParser() : e ? b.parse : b.parseInline)(p2, s2);
|
|
24033
|
+
return s2.hooks ? await s2.hooks.postprocess(d2) : d2;
|
|
24034
|
+
})().catch(o);
|
|
24025
24035
|
try {
|
|
24026
24036
|
s2.hooks && (n = s2.hooks.preprocess(n));
|
|
24027
|
-
let
|
|
24028
|
-
s2.hooks && (
|
|
24029
|
-
let
|
|
24030
|
-
return s2.hooks && (
|
|
24031
|
-
} catch (
|
|
24032
|
-
return o(
|
|
24037
|
+
let l = (s2.hooks ? s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s2);
|
|
24038
|
+
s2.hooks && (l = s2.hooks.processAllTokens(l)), s2.walkTokens && this.walkTokens(l, s2.walkTokens);
|
|
24039
|
+
let p2 = (s2.hooks ? s2.hooks.provideParser() : e ? b.parse : b.parseInline)(l, s2);
|
|
24040
|
+
return s2.hooks && (p2 = s2.hooks.postprocess(p2)), p2;
|
|
24041
|
+
} catch (a2) {
|
|
24042
|
+
return o(a2);
|
|
24033
24043
|
}
|
|
24034
24044
|
};
|
|
24035
24045
|
}
|
|
@@ -24046,38 +24056,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
24046
24056
|
}
|
|
24047
24057
|
};
|
|
24048
24058
|
var _ = new B();
|
|
24049
|
-
function
|
|
24050
|
-
return _.parse(
|
|
24051
|
-
}
|
|
24052
|
-
|
|
24053
|
-
return _.setOptions(
|
|
24054
|
-
};
|
|
24055
|
-
|
|
24056
|
-
|
|
24057
|
-
|
|
24058
|
-
return _.use(...
|
|
24059
|
-
};
|
|
24060
|
-
|
|
24061
|
-
return _.walkTokens(
|
|
24062
|
-
};
|
|
24063
|
-
|
|
24064
|
-
|
|
24065
|
-
|
|
24066
|
-
|
|
24067
|
-
|
|
24068
|
-
|
|
24069
|
-
|
|
24070
|
-
|
|
24071
|
-
|
|
24072
|
-
|
|
24073
|
-
|
|
24074
|
-
|
|
24075
|
-
|
|
24076
|
-
|
|
24077
|
-
|
|
24078
|
-
|
|
24079
|
-
|
|
24080
|
-
|
|
24059
|
+
function k$1(u3, e) {
|
|
24060
|
+
return _.parse(u3, e);
|
|
24061
|
+
}
|
|
24062
|
+
k$1.options = k$1.setOptions = function(u3) {
|
|
24063
|
+
return _.setOptions(u3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
|
|
24064
|
+
};
|
|
24065
|
+
k$1.getDefaults = L;
|
|
24066
|
+
k$1.defaults = T;
|
|
24067
|
+
k$1.use = function(...u3) {
|
|
24068
|
+
return _.use(...u3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
|
|
24069
|
+
};
|
|
24070
|
+
k$1.walkTokens = function(u3, e) {
|
|
24071
|
+
return _.walkTokens(u3, e);
|
|
24072
|
+
};
|
|
24073
|
+
k$1.parseInline = _.parseInline;
|
|
24074
|
+
k$1.Parser = b;
|
|
24075
|
+
k$1.parser = b.parse;
|
|
24076
|
+
k$1.Renderer = P;
|
|
24077
|
+
k$1.TextRenderer = $$1;
|
|
24078
|
+
k$1.Lexer = x;
|
|
24079
|
+
k$1.lexer = x.lex;
|
|
24080
|
+
k$1.Tokenizer = y;
|
|
24081
|
+
k$1.Hooks = S;
|
|
24082
|
+
k$1.parse = k$1;
|
|
24083
|
+
k$1.options;
|
|
24084
|
+
k$1.setOptions;
|
|
24085
|
+
k$1.use;
|
|
24086
|
+
k$1.walkTokens;
|
|
24087
|
+
k$1.parseInline;
|
|
24088
|
+
b.parse;
|
|
24089
|
+
x.lex;
|
|
24090
|
+
k$1.use({
|
|
24081
24091
|
breaks: false,
|
|
24082
24092
|
// Use proper paragraphs, not <br> tags
|
|
24083
24093
|
gfm: true
|
|
@@ -24088,7 +24098,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
24088
24098
|
return createDocFromHTML(html2, schema, options);
|
|
24089
24099
|
}
|
|
24090
24100
|
function convertMarkdownToHTML(markdown) {
|
|
24091
|
-
let html2 =
|
|
24101
|
+
let html2 = k$1.parse(markdown, { async: false });
|
|
24092
24102
|
return html2.replace(/<\/p>\n<ul>/g, "</p>\n<p> </p>\n<ul>").replace(/<\/p>\n<ol>/g, "</p>\n<p> </p>\n<ol>").replace(/<\/ul>\n<h/g, "</ul>\n<p> </p>\n<h").replace(/<\/ol>\n<h/g, "</ol>\n<p> </p>\n<h");
|
|
24093
24103
|
}
|
|
24094
24104
|
function processContent({ content: content2, type: type2, schema }) {
|
|
@@ -28444,6 +28454,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
28444
28454
|
}
|
|
28445
28455
|
const DRAWING_XML_TAG = "w:drawing";
|
|
28446
28456
|
const SHAPE_URI = "http://schemas.microsoft.com/office/word/2010/wordprocessingShape";
|
|
28457
|
+
const GROUP_URI = "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup";
|
|
28447
28458
|
function handleImageNode(node2, params2, isAnchor) {
|
|
28448
28459
|
const { docx, filename } = params2;
|
|
28449
28460
|
const { attributes } = node2;
|
|
@@ -28561,7 +28572,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
28561
28572
|
const graphic = node2.elements.find((el) => el.name === "a:graphic");
|
|
28562
28573
|
const graphicData = graphic?.elements.find((el) => el.name === "a:graphicData");
|
|
28563
28574
|
const { uri: uri2 } = graphicData?.attributes || {};
|
|
28564
|
-
if (
|
|
28575
|
+
if (uri2 === SHAPE_URI) {
|
|
28565
28576
|
const shapeMarginOffset = {
|
|
28566
28577
|
left: positionHValue,
|
|
28567
28578
|
horizontal: positionHValue,
|
|
@@ -28569,6 +28580,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
28569
28580
|
};
|
|
28570
28581
|
return handleShapeDrawing(params2, node2, graphicData, size2, padding, shapeMarginOffset);
|
|
28571
28582
|
}
|
|
28583
|
+
if (uri2 === GROUP_URI) {
|
|
28584
|
+
const shapeMarginOffset = {
|
|
28585
|
+
left: positionHValue,
|
|
28586
|
+
horizontal: positionHValue,
|
|
28587
|
+
top: positionVValue
|
|
28588
|
+
};
|
|
28589
|
+
return handleShapeGroup(params2, node2, graphicData, size2, padding, shapeMarginOffset);
|
|
28590
|
+
}
|
|
28572
28591
|
const picture = graphicData?.elements.find((el) => el.name === "pic:pic");
|
|
28573
28592
|
if (!picture || !picture.elements) return null;
|
|
28574
28593
|
const blipFill = picture.elements.find((el) => el.name === "pic:blipFill");
|
|
@@ -28658,6 +28677,114 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
28658
28677
|
}
|
|
28659
28678
|
return buildShapePlaceholder(node2, size2, padding, marginOffset, "textbox");
|
|
28660
28679
|
};
|
|
28680
|
+
const handleShapeGroup = (params2, node2, graphicData, size2, padding, marginOffset) => {
|
|
28681
|
+
const wgp = graphicData.elements.find((el) => el.name === "wpg:wgp");
|
|
28682
|
+
if (!wgp) {
|
|
28683
|
+
return buildShapePlaceholder(node2, size2, padding, marginOffset, "group");
|
|
28684
|
+
}
|
|
28685
|
+
const grpSpPr = wgp.elements.find((el) => el.name === "wpg:grpSpPr");
|
|
28686
|
+
const xfrm = grpSpPr?.elements?.find((el) => el.name === "a:xfrm");
|
|
28687
|
+
const groupTransform = {};
|
|
28688
|
+
if (xfrm) {
|
|
28689
|
+
const off2 = xfrm.elements?.find((el) => el.name === "a:off");
|
|
28690
|
+
const ext = xfrm.elements?.find((el) => el.name === "a:ext");
|
|
28691
|
+
const chOff = xfrm.elements?.find((el) => el.name === "a:chOff");
|
|
28692
|
+
const chExt = xfrm.elements?.find((el) => el.name === "a:chExt");
|
|
28693
|
+
if (off2) {
|
|
28694
|
+
groupTransform.x = emuToPixels(off2.attributes?.["x"] || 0);
|
|
28695
|
+
groupTransform.y = emuToPixels(off2.attributes?.["y"] || 0);
|
|
28696
|
+
}
|
|
28697
|
+
if (ext) {
|
|
28698
|
+
groupTransform.width = emuToPixels(ext.attributes?.["cx"] || 0);
|
|
28699
|
+
groupTransform.height = emuToPixels(ext.attributes?.["cy"] || 0);
|
|
28700
|
+
}
|
|
28701
|
+
if (chOff) {
|
|
28702
|
+
groupTransform.childX = emuToPixels(chOff.attributes?.["x"] || 0);
|
|
28703
|
+
groupTransform.childY = emuToPixels(chOff.attributes?.["y"] || 0);
|
|
28704
|
+
groupTransform.childOriginXEmu = parseFloat(chOff.attributes?.["x"] || 0);
|
|
28705
|
+
groupTransform.childOriginYEmu = parseFloat(chOff.attributes?.["y"] || 0);
|
|
28706
|
+
}
|
|
28707
|
+
if (chExt) {
|
|
28708
|
+
groupTransform.childWidth = emuToPixels(chExt.attributes?.["cx"] || 0);
|
|
28709
|
+
groupTransform.childHeight = emuToPixels(chExt.attributes?.["cy"] || 0);
|
|
28710
|
+
}
|
|
28711
|
+
}
|
|
28712
|
+
const childShapes = wgp.elements.filter((el) => el.name === "wps:wsp");
|
|
28713
|
+
const shapes = childShapes.map((wsp) => {
|
|
28714
|
+
const spPr = wsp.elements?.find((el) => el.name === "wps:spPr");
|
|
28715
|
+
if (!spPr) return null;
|
|
28716
|
+
const prstGeom = spPr.elements?.find((el) => el.name === "a:prstGeom");
|
|
28717
|
+
const shapeKind = prstGeom?.attributes?.["prst"];
|
|
28718
|
+
const shapeXfrm = spPr.elements?.find((el) => el.name === "a:xfrm");
|
|
28719
|
+
const shapeOff = shapeXfrm?.elements?.find((el) => el.name === "a:off");
|
|
28720
|
+
const shapeExt = shapeXfrm?.elements?.find((el) => el.name === "a:ext");
|
|
28721
|
+
const rawX = shapeOff?.attributes?.["x"] ? parseFloat(shapeOff.attributes["x"]) : 0;
|
|
28722
|
+
const rawY = shapeOff?.attributes?.["y"] ? parseFloat(shapeOff.attributes["y"]) : 0;
|
|
28723
|
+
const rawWidth = shapeExt?.attributes?.["cx"] ? parseFloat(shapeExt.attributes["cx"]) : 914400;
|
|
28724
|
+
const rawHeight = shapeExt?.attributes?.["cy"] ? parseFloat(shapeExt.attributes["cy"]) : 914400;
|
|
28725
|
+
let x2, y2, width, height;
|
|
28726
|
+
if (groupTransform.childWidth && groupTransform.childHeight) {
|
|
28727
|
+
const scaleX = groupTransform.width / groupTransform.childWidth;
|
|
28728
|
+
const scaleY = groupTransform.height / groupTransform.childHeight;
|
|
28729
|
+
const childOriginX = groupTransform.childOriginXEmu || 0;
|
|
28730
|
+
const childOriginY = groupTransform.childOriginYEmu || 0;
|
|
28731
|
+
x2 = groupTransform.x + emuToPixels((rawX - childOriginX) * scaleX);
|
|
28732
|
+
y2 = groupTransform.y + emuToPixels((rawY - childOriginY) * scaleY);
|
|
28733
|
+
width = emuToPixels(rawWidth * scaleX);
|
|
28734
|
+
height = emuToPixels(rawHeight * scaleY);
|
|
28735
|
+
} else {
|
|
28736
|
+
x2 = emuToPixels(rawX);
|
|
28737
|
+
y2 = emuToPixels(rawY);
|
|
28738
|
+
width = emuToPixels(rawWidth);
|
|
28739
|
+
height = emuToPixels(rawHeight);
|
|
28740
|
+
}
|
|
28741
|
+
const rotation = shapeXfrm?.attributes?.["rot"] ? rotToDegrees(shapeXfrm.attributes["rot"]) : 0;
|
|
28742
|
+
const flipH = shapeXfrm?.attributes?.["flipH"] === "1";
|
|
28743
|
+
const flipV = shapeXfrm?.attributes?.["flipV"] === "1";
|
|
28744
|
+
const style2 = wsp.elements?.find((el) => el.name === "wps:style");
|
|
28745
|
+
const fillColor = extractFillColor(spPr, style2);
|
|
28746
|
+
const strokeColor = extractStrokeColor(spPr, style2);
|
|
28747
|
+
const strokeWidth = extractStrokeWidth(spPr);
|
|
28748
|
+
const cNvPr = wsp.elements?.find((el) => el.name === "wps:cNvPr");
|
|
28749
|
+
const shapeId = cNvPr?.attributes?.["id"];
|
|
28750
|
+
const shapeName = cNvPr?.attributes?.["name"];
|
|
28751
|
+
return {
|
|
28752
|
+
shapeType: "vectorShape",
|
|
28753
|
+
attrs: {
|
|
28754
|
+
kind: shapeKind,
|
|
28755
|
+
x: x2,
|
|
28756
|
+
y: y2,
|
|
28757
|
+
width,
|
|
28758
|
+
height,
|
|
28759
|
+
rotation,
|
|
28760
|
+
flipH,
|
|
28761
|
+
flipV,
|
|
28762
|
+
fillColor,
|
|
28763
|
+
strokeColor,
|
|
28764
|
+
strokeWidth,
|
|
28765
|
+
shapeId,
|
|
28766
|
+
shapeName
|
|
28767
|
+
}
|
|
28768
|
+
};
|
|
28769
|
+
}).filter(Boolean);
|
|
28770
|
+
const schemaAttrs = {};
|
|
28771
|
+
const drawingNode = params2.nodes?.[0];
|
|
28772
|
+
if (drawingNode?.name === DRAWING_XML_TAG) {
|
|
28773
|
+
schemaAttrs.drawingContent = drawingNode;
|
|
28774
|
+
}
|
|
28775
|
+
const result = {
|
|
28776
|
+
type: "shapeGroup",
|
|
28777
|
+
attrs: {
|
|
28778
|
+
...schemaAttrs,
|
|
28779
|
+
groupTransform,
|
|
28780
|
+
shapes,
|
|
28781
|
+
size: size2,
|
|
28782
|
+
padding,
|
|
28783
|
+
marginOffset
|
|
28784
|
+
}
|
|
28785
|
+
};
|
|
28786
|
+
return result;
|
|
28787
|
+
};
|
|
28661
28788
|
const getRectangleShape = (params2, node2) => {
|
|
28662
28789
|
const schemaAttrs = {};
|
|
28663
28790
|
const [drawingNode] = params2.nodes;
|
|
@@ -29100,6 +29227,30 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
29100
29227
|
};
|
|
29101
29228
|
return wrapTextInRun(alternateContent);
|
|
29102
29229
|
}
|
|
29230
|
+
function translateShapeGroup(params2) {
|
|
29231
|
+
const { node: node2 } = params2;
|
|
29232
|
+
const { drawingContent } = node2.attrs;
|
|
29233
|
+
if (drawingContent) {
|
|
29234
|
+
const drawing = {
|
|
29235
|
+
name: "w:drawing",
|
|
29236
|
+
elements: [...drawingContent.elements || []]
|
|
29237
|
+
};
|
|
29238
|
+
const choice = {
|
|
29239
|
+
name: "mc:Choice",
|
|
29240
|
+
attributes: { Requires: "wpg" },
|
|
29241
|
+
elements: [drawing]
|
|
29242
|
+
};
|
|
29243
|
+
const alternateContent = {
|
|
29244
|
+
name: "mc:AlternateContent",
|
|
29245
|
+
elements: [choice]
|
|
29246
|
+
};
|
|
29247
|
+
return wrapTextInRun(alternateContent);
|
|
29248
|
+
}
|
|
29249
|
+
return wrapTextInRun({
|
|
29250
|
+
name: "w:drawing",
|
|
29251
|
+
elements: []
|
|
29252
|
+
});
|
|
29253
|
+
}
|
|
29103
29254
|
function translateAnchorNode(params2) {
|
|
29104
29255
|
const { attrs } = params2.node;
|
|
29105
29256
|
const anchorElements = [];
|
|
@@ -29263,11 +29414,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
29263
29414
|
};
|
|
29264
29415
|
}
|
|
29265
29416
|
const XML_NODE_NAME$f = "wp:anchor";
|
|
29266
|
-
const SD_NODE_NAME$c = ["image"];
|
|
29417
|
+
const SD_NODE_NAME$c = ["image", "shapeGroup", "vectorShape", "contentBlock"];
|
|
29267
29418
|
const validXmlAttributes$a = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
|
|
29268
29419
|
function encode$l(params2) {
|
|
29269
29420
|
const { node: node2 } = params2.extraParams;
|
|
29270
|
-
if (!node2 || !node2.
|
|
29421
|
+
if (!node2 || !node2.name) {
|
|
29271
29422
|
return null;
|
|
29272
29423
|
}
|
|
29273
29424
|
return handleAnchorNode(params2);
|
|
@@ -29304,11 +29455,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
29304
29455
|
};
|
|
29305
29456
|
}
|
|
29306
29457
|
const XML_NODE_NAME$e = "wp:inline";
|
|
29307
|
-
const SD_NODE_NAME$b = ["image"];
|
|
29458
|
+
const SD_NODE_NAME$b = ["image", "shapeGroup", "vectorShape", "contentBlock"];
|
|
29308
29459
|
const validXmlAttributes$9 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
|
|
29309
29460
|
function encode$k(params2) {
|
|
29310
29461
|
const { node: node2 } = params2.extraParams;
|
|
29311
|
-
if (!node2 || !node2.
|
|
29462
|
+
if (!node2 || !node2.name) {
|
|
29312
29463
|
return null;
|
|
29313
29464
|
}
|
|
29314
29465
|
return handleInlineNode(params2);
|
|
@@ -32729,6 +32880,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
32729
32880
|
};
|
|
32730
32881
|
const SUPPORTED_ALTERNATE_CONTENT_REQUIRES = /* @__PURE__ */ new Set([
|
|
32731
32882
|
"wps",
|
|
32883
|
+
"wpg",
|
|
32732
32884
|
"wp14",
|
|
32733
32885
|
"w14",
|
|
32734
32886
|
"w15",
|
|
@@ -34389,6 +34541,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
34389
34541
|
shapeTextbox: translator,
|
|
34390
34542
|
contentBlock: translator,
|
|
34391
34543
|
vectorShape: translateVectorShape,
|
|
34544
|
+
shapeGroup: translateShapeGroup,
|
|
34392
34545
|
structuredContent: translator$r,
|
|
34393
34546
|
structuredContentBlock: translator$r,
|
|
34394
34547
|
documentPartObject: translator$r,
|
|
@@ -35388,6 +35541,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35388
35541
|
if (!newRelationships?.length) return existingRelationships;
|
|
35389
35542
|
let largestId = getLargestRelationshipId(existingRelationships);
|
|
35390
35543
|
const seenIds = new Set(existingRelationships.map((rel) => rel?.attributes?.Id).filter(Boolean));
|
|
35544
|
+
for (const rel of newRelationships) {
|
|
35545
|
+
const id = rel?.attributes?.Id;
|
|
35546
|
+
if (!id || seenIds.has(id)) continue;
|
|
35547
|
+
const numeric = Number(String(id).replace(REL_ID_NUMERIC_PATTERN, ""));
|
|
35548
|
+
if (Number.isFinite(numeric) && numeric > largestId) largestId = numeric;
|
|
35549
|
+
}
|
|
35391
35550
|
const additions = [];
|
|
35392
35551
|
newRelationships.forEach((rel) => {
|
|
35393
35552
|
if (!rel?.attributes) return;
|
|
@@ -35395,13 +35554,20 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35395
35554
|
const currentId = attributes.Id || "";
|
|
35396
35555
|
attributes.Target = attributes?.Target?.replace(/&/g, "&");
|
|
35397
35556
|
const existingTarget = existingRelationships.find((el) => el.attributes.Target === attributes.Target);
|
|
35398
|
-
attributes.Target?.startsWith("media/");
|
|
35399
35557
|
const isNewHyperlink = attributes.Type === HYPERLINK_RELATIONSHIP_TYPE && currentId.length > 6;
|
|
35400
35558
|
const isNewHeadFoot = (attributes.Type === HEADER_RELATIONSHIP_TYPE || attributes.Type === FOOTER_RELATIONSHIP_TYPE) && currentId.length > 6;
|
|
35401
35559
|
const hasSeenId = currentId && seenIds.has(currentId);
|
|
35402
35560
|
if (!isNewHyperlink && !isNewHeadFoot && existingTarget) return;
|
|
35403
35561
|
if (!currentId || hasSeenId) {
|
|
35404
|
-
|
|
35562
|
+
let candidate = Math.max(largestId, 1);
|
|
35563
|
+
while (seenIds.has(`rId${candidate}`)) {
|
|
35564
|
+
candidate += 1;
|
|
35565
|
+
}
|
|
35566
|
+
attributes.Id = `rId${candidate}`;
|
|
35567
|
+
largestId = candidate;
|
|
35568
|
+
} else {
|
|
35569
|
+
const numeric = Number(String(currentId).replace(REL_ID_NUMERIC_PATTERN, ""));
|
|
35570
|
+
if (Number.isFinite(numeric) && numeric > largestId) largestId = numeric;
|
|
35405
35571
|
}
|
|
35406
35572
|
seenIds.add(attributes.Id);
|
|
35407
35573
|
additions.push(rel);
|
|
@@ -35616,7 +35782,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35616
35782
|
static getStoredSuperdocVersion(docx) {
|
|
35617
35783
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35618
35784
|
}
|
|
35619
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.
|
|
35785
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.30.0-next.1") {
|
|
35620
35786
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35621
35787
|
}
|
|
35622
35788
|
/**
|
|
@@ -36007,7 +36173,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36007
36173
|
};
|
|
36008
36174
|
exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
36009
36175
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
36010
|
-
const relationships = relsData.elements.find((
|
|
36176
|
+
const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
|
|
36011
36177
|
const newDocRels = [];
|
|
36012
36178
|
Object.entries(this.headers).forEach(([id, header], index2) => {
|
|
36013
36179
|
const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
|
|
@@ -36048,7 +36214,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36048
36214
|
}
|
|
36049
36215
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
36050
36216
|
if (params2.relationships.length) {
|
|
36051
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
36217
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
|
|
36052
36218
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
36053
36219
|
declaration: this.initialJSON?.declaration,
|
|
36054
36220
|
elements: [
|
|
@@ -36102,7 +36268,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36102
36268
|
}
|
|
36103
36269
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
36104
36270
|
if (params2.relationships.length) {
|
|
36105
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
36271
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
|
|
36106
36272
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
36107
36273
|
declaration: this.initialJSON?.declaration,
|
|
36108
36274
|
elements: [
|
|
@@ -36121,7 +36287,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36121
36287
|
};
|
|
36122
36288
|
exportProcessNewRelationships_fn = function(rels = []) {
|
|
36123
36289
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
36124
|
-
const relationships = relsData.elements.find((
|
|
36290
|
+
const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
|
|
36125
36291
|
relationships.elements = mergeRelationshipElements(relationships.elements, rels);
|
|
36126
36292
|
};
|
|
36127
36293
|
exportProcessMediaFiles_fn = async function(media2 = {}) {
|
|
@@ -36317,8 +36483,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36317
36483
|
return n2;
|
|
36318
36484
|
}
|
|
36319
36485
|
function n(e2, t2, r22, n2, i22, s22) {
|
|
36320
|
-
var a2, o, h2 = e2.file, u = e2.compression, l = s22 !==
|
|
36321
|
-
t2 && !r22 || (
|
|
36486
|
+
var a2, o, h2 = e2.file, u = e2.compression, l = s22 !== O.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O.utf8encode(h2.name)), d2 = h2.comment, p2 = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x2 = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
36487
|
+
t2 && !r22 || (x2.crc32 = e2.crc32, x2.compressedSize = e2.compressedSize, x2.uncompressedSize = e2.uncompressedSize);
|
|
36322
36488
|
var S2 = 0;
|
|
36323
36489
|
t2 && (S2 |= 8), l || !_2 && !g || (S2 |= 2048);
|
|
36324
36490
|
var z2 = 0, C2 = 0;
|
|
@@ -36329,9 +36495,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36329
36495
|
return 63 & (e3 || 0);
|
|
36330
36496
|
})(h2.dosPermissions)), a2 = k2.getUTCHours(), a2 <<= 6, a2 |= k2.getUTCMinutes(), a2 <<= 5, a2 |= k2.getUTCSeconds() / 2, o = k2.getUTCFullYear() - 1980, o <<= 4, o |= k2.getUTCMonth() + 1, o <<= 5, o |= k2.getUTCDate(), _2 && (v2 = A2(1, 1) + A2(B2(f2), 4) + c2, b2 += "up" + A2(v2.length, 2) + v2), g && (y2 = A2(1, 1) + A2(B2(p2), 4) + m2, b2 += "uc" + A2(y2.length, 2) + y2);
|
|
36331
36497
|
var E2 = "";
|
|
36332
|
-
return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a2, 2), E2 += A2(o, 2), E2 += A2(
|
|
36498
|
+
return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a2, 2), E2 += A2(o, 2), E2 += A2(x2.crc32, 4), E2 += A2(x2.compressedSize, 4), E2 += A2(x2.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p2.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p2 };
|
|
36333
36499
|
}
|
|
36334
|
-
var I2 = e("../utils"), i2 = e("../stream/GenericWorker"),
|
|
36500
|
+
var I2 = e("../utils"), i2 = e("../stream/GenericWorker"), O = e("../utf8"), B2 = e("../crc32"), R = e("../signature");
|
|
36335
36501
|
function s2(e2, t2, r22, n2) {
|
|
36336
36502
|
i2.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = t2, this.zipPlatform = r22, this.encodeFileName = n2, this.streamFiles = e2, this.accumulate = false, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
36337
36503
|
}
|
|
@@ -36349,7 +36515,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36349
36515
|
this.accumulate = false;
|
|
36350
36516
|
var t2 = this.streamFiles && !e2.file.dir, r22 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
36351
36517
|
if (this.dirRecords.push(r22.dirRecord), t2) this.push({ data: (function(e3) {
|
|
36352
|
-
return
|
|
36518
|
+
return R.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
|
|
36353
36519
|
})(e2), meta: { percent: 100 } });
|
|
36354
36520
|
else for (this.push({ data: r22.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
36355
36521
|
this.currentFile = null;
|
|
@@ -36357,7 +36523,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36357
36523
|
for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });
|
|
36358
36524
|
var r22 = this.bytesWritten - e2, n2 = (function(e3, t3, r3, n3, i22) {
|
|
36359
36525
|
var s22 = I2.transformTo("string", i22(n3));
|
|
36360
|
-
return
|
|
36526
|
+
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;
|
|
36361
36527
|
})(this.dirRecords.length, r22, e2, this.zipComment, this.encodeFileName);
|
|
36362
36528
|
this.push({ data: n2, meta: { percent: 100 } });
|
|
36363
36529
|
}, s2.prototype.prepareNextSource = function() {
|
|
@@ -37557,11 +37723,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37557
37723
|
return -1 ^ e2;
|
|
37558
37724
|
};
|
|
37559
37725
|
}, {}], 46: [function(e, t, r2) {
|
|
37560
|
-
var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p2 = e("./crc32"), n = e("./messages"), l = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i2 = 2, v2 = 8, y2 = 9, s2 = 286, a2 = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15,
|
|
37561
|
-
function
|
|
37726
|
+
var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p2 = e("./crc32"), n = e("./messages"), l = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i2 = 2, v2 = 8, y2 = 9, s2 = 286, a2 = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15, x2 = 3, S2 = 258, z2 = S2 + x2 + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O = 3, B2 = 4;
|
|
37727
|
+
function R(e2, t2) {
|
|
37562
37728
|
return e2.msg = n[t2], t2;
|
|
37563
37729
|
}
|
|
37564
|
-
function
|
|
37730
|
+
function T2(e2) {
|
|
37565
37731
|
return (e2 << 1) - (4 < e2 ? 9 : 0);
|
|
37566
37732
|
}
|
|
37567
37733
|
function D2(e2) {
|
|
@@ -37605,7 +37771,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37605
37771
|
i22 += f22;
|
|
37606
37772
|
}
|
|
37607
37773
|
if (0 === e2.strm.avail_in) break;
|
|
37608
|
-
if (a22 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i22, l2 = void 0, l2 = a22.avail_in, u2 < l2 && (l2 = u2), r22 = 0 === l2 ? 0 : (a22.avail_in -= l2, c2.arraySet(o2, a22.input, a22.next_in, l2, h22), 1 === a22.state.wrap ? a22.adler = d2(a22.adler, o2, l2, h22) : 2 === a22.state.wrap && (a22.adler = p2(a22.adler, o2, l2, h22)), a22.next_in += l2, a22.total_in += l2, l2), e2.lookahead += r22, e2.lookahead + e2.insert >=
|
|
37774
|
+
if (a22 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i22, l2 = void 0, l2 = a22.avail_in, u2 < l2 && (l2 = u2), r22 = 0 === l2 ? 0 : (a22.avail_in -= l2, c2.arraySet(o2, a22.input, a22.next_in, l2, h22), 1 === a22.state.wrap ? a22.adler = d2(a22.adler, o2, l2, h22) : 2 === a22.state.wrap && (a22.adler = p2(a22.adler, o2, l2, h22)), a22.next_in += l2, a22.total_in += l2, l2), e2.lookahead += r22, e2.lookahead + e2.insert >= x2) for (s22 = e2.strstart - e2.insert, e2.ins_h = e2.window[s22], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + x2 - 1]) & e2.hash_mask, e2.prev[s22 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s22, s22++, e2.insert--, !(e2.lookahead + e2.insert < x2)); ) ;
|
|
37609
37775
|
} while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
|
|
37610
37776
|
}
|
|
37611
37777
|
function Z(e2, t2) {
|
|
@@ -37614,14 +37780,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37614
37780
|
if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
|
|
37615
37781
|
if (0 === e2.lookahead) break;
|
|
37616
37782
|
}
|
|
37617
|
-
if (r22 = 0, e2.lookahead >=
|
|
37618
|
-
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart +
|
|
37783
|
+
if (r22 = 0, e2.lookahead >= x2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r22 && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22)), e2.match_length >= x2) if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x2), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x2) {
|
|
37784
|
+
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; ) ;
|
|
37619
37785
|
e2.strstart++;
|
|
37620
37786
|
} 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;
|
|
37621
37787
|
else n2 = u._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
|
|
37622
37788
|
if (n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37623
37789
|
}
|
|
37624
|
-
return e2.insert = e2.strstart <
|
|
37790
|
+
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;
|
|
37625
37791
|
}
|
|
37626
37792
|
function W2(e2, t2) {
|
|
37627
37793
|
for (var r22, n2, i22; ; ) {
|
|
@@ -37629,14 +37795,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37629
37795
|
if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
|
|
37630
37796
|
if (0 === e2.lookahead) break;
|
|
37631
37797
|
}
|
|
37632
|
-
if (r22 = 0, e2.lookahead >=
|
|
37633
|
-
for (i22 = e2.strstart + e2.lookahead -
|
|
37634
|
-
if (e2.match_available = 0, e2.match_length =
|
|
37798
|
+
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) {
|
|
37799
|
+
for (i22 = e2.strstart + e2.lookahead - x2, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x2), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i22 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
|
|
37800
|
+
if (e2.match_available = 0, e2.match_length = x2 - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37635
37801
|
} else if (e2.match_available) {
|
|
37636
37802
|
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;
|
|
37637
37803
|
} else e2.match_available = 1, e2.strstart++, e2.lookahead--;
|
|
37638
37804
|
}
|
|
37639
|
-
return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart <
|
|
37805
|
+
return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x2 - 1 ? e2.strstart : x2 - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
37640
37806
|
}
|
|
37641
37807
|
function M2(e2, t2, r22, n2, i22) {
|
|
37642
37808
|
this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i22;
|
|
@@ -37646,21 +37812,21 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37646
37812
|
}
|
|
37647
37813
|
function G2(e2) {
|
|
37648
37814
|
var t2;
|
|
37649
|
-
return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i2, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l, u._tr_init(t2), m2) :
|
|
37815
|
+
return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i2, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l, u._tr_init(t2), m2) : R(e2, _2);
|
|
37650
37816
|
}
|
|
37651
37817
|
function K2(e2) {
|
|
37652
37818
|
var t2 = G2(e2);
|
|
37653
37819
|
return t2 === m2 && (function(e3) {
|
|
37654
|
-
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 =
|
|
37820
|
+
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;
|
|
37655
37821
|
})(e2.state), t2;
|
|
37656
37822
|
}
|
|
37657
37823
|
function Y2(e2, t2, r22, n2, i22, s22) {
|
|
37658
37824
|
if (!e2) return _2;
|
|
37659
37825
|
var a22 = 1;
|
|
37660
|
-
if (t2 === g && (t2 = 6), n2 < 0 ? (a22 = 0, n2 = -n2) : 15 < n2 && (a22 = 2, n2 -= 16), i22 < 1 || y2 < i22 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return
|
|
37826
|
+
if (t2 === g && (t2 = 6), n2 < 0 ? (a22 = 0, n2 = -n2) : 15 < n2 && (a22 = 2, n2 -= 16), i22 < 1 || y2 < i22 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R(e2, _2);
|
|
37661
37827
|
8 === n2 && (n2 = 9);
|
|
37662
37828
|
var o2 = new H();
|
|
37663
|
-
return (e2.state = o2).strm = e2, o2.wrap = a22, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i22 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits +
|
|
37829
|
+
return (e2.state = o2).strm = e2, o2.wrap = a22, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i22 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x2 - 1) / x2), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i22 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c2.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s22, o2.method = r22, K2(e2);
|
|
37664
37830
|
}
|
|
37665
37831
|
h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
|
|
37666
37832
|
var r22 = 65535;
|
|
@@ -37674,15 +37840,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37674
37840
|
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;
|
|
37675
37841
|
if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37676
37842
|
}
|
|
37677
|
-
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ?
|
|
37843
|
+
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);
|
|
37678
37844
|
}), 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) {
|
|
37679
37845
|
return Y2(e2, t2, v2, 15, 8, 0);
|
|
37680
37846
|
}, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
|
|
37681
37847
|
return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
|
|
37682
37848
|
}, r2.deflate = function(e2, t2) {
|
|
37683
37849
|
var r22, n2, i22, s22;
|
|
37684
|
-
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ?
|
|
37685
|
-
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return
|
|
37850
|
+
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R(e2, _2) : _2;
|
|
37851
|
+
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);
|
|
37686
37852
|
if (n2.strm = e2, r22 = n2.last_flush, n2.last_flush = t2, n2.status === C2) if (2 === n2.wrap) e2.adler = 0, U2(n2, 31), U2(n2, 139), U2(n2, 8), n2.gzhead ? (U2(n2, (n2.gzhead.text ? 1 : 0) + (n2.gzhead.hcrc ? 2 : 0) + (n2.gzhead.extra ? 4 : 0) + (n2.gzhead.name ? 8 : 0) + (n2.gzhead.comment ? 16 : 0)), U2(n2, 255 & n2.gzhead.time), U2(n2, n2.gzhead.time >> 8 & 255), U2(n2, n2.gzhead.time >> 16 & 255), U2(n2, n2.gzhead.time >> 24 & 255), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 255 & n2.gzhead.os), n2.gzhead.extra && n2.gzhead.extra.length && (U2(n2, 255 & n2.gzhead.extra.length), U2(n2, n2.gzhead.extra.length >> 8 & 255)), n2.gzhead.hcrc && (e2.adler = p2(e2.adler, n2.pending_buf, n2.pending, 0)), n2.gzindex = 0, n2.status = 69) : (U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 3), n2.status = E2);
|
|
37687
37853
|
else {
|
|
37688
37854
|
var a22 = v2 + (n2.w_bits - 8 << 4) << 8;
|
|
@@ -37716,8 +37882,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37716
37882
|
} else n2.status = 103;
|
|
37717
37883
|
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) {
|
|
37718
37884
|
if (F2(e2), 0 === e2.avail_out) return n2.last_flush = -1, m2;
|
|
37719
|
-
} else if (0 === e2.avail_in &&
|
|
37720
|
-
if (666 === n2.status && 0 !== e2.avail_in) return
|
|
37885
|
+
} else if (0 === e2.avail_in && T2(t2) <= T2(r22) && t2 !== f2) return R(e2, -5);
|
|
37886
|
+
if (666 === n2.status && 0 !== e2.avail_in) return R(e2, -5);
|
|
37721
37887
|
if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l && 666 !== n2.status) {
|
|
37722
37888
|
var o2 = 2 === n2.strategy ? (function(e3, t3) {
|
|
37723
37889
|
for (var r3; ; ) {
|
|
@@ -37727,39 +37893,39 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37727
37893
|
}
|
|
37728
37894
|
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;
|
|
37729
37895
|
}
|
|
37730
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37896
|
+
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;
|
|
37731
37897
|
})(n2, t2) : 3 === n2.strategy ? (function(e3, t3) {
|
|
37732
37898
|
for (var r3, n3, i3, s3, a3 = e3.window; ; ) {
|
|
37733
37899
|
if (e3.lookahead <= S2) {
|
|
37734
37900
|
if (j2(e3), e3.lookahead <= S2 && t3 === l) return A2;
|
|
37735
37901
|
if (0 === e3.lookahead) break;
|
|
37736
37902
|
}
|
|
37737
|
-
if (e3.match_length = 0, e3.lookahead >=
|
|
37903
|
+
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]) {
|
|
37738
37904
|
s3 = e3.strstart + S2;
|
|
37739
37905
|
do {
|
|
37740
37906
|
} 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);
|
|
37741
37907
|
e3.match_length = S2 - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);
|
|
37742
37908
|
}
|
|
37743
|
-
if (e3.match_length >=
|
|
37909
|
+
if (e3.match_length >= x2 ? (r3 = u._tr_tally(e3, 1, e3.match_length - x2), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
|
|
37744
37910
|
}
|
|
37745
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37911
|
+
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;
|
|
37746
37912
|
})(n2, t2) : h2[n2.level].func(n2, t2);
|
|
37747
|
-
if (o2 !==
|
|
37913
|
+
if (o2 !== O && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
|
|
37748
37914
|
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;
|
|
37749
37915
|
}
|
|
37750
37916
|
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);
|
|
37751
37917
|
}, r2.deflateEnd = function(e2) {
|
|
37752
37918
|
var t2;
|
|
37753
|
-
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ?
|
|
37919
|
+
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;
|
|
37754
37920
|
}, r2.deflateSetDictionary = function(e2, t2) {
|
|
37755
37921
|
var r22, n2, i22, s22, a22, o2, h22, u2, l2 = t2.length;
|
|
37756
37922
|
if (!e2 || !e2.state) return _2;
|
|
37757
37923
|
if (2 === (s22 = (r22 = e2.state).wrap) || 1 === s22 && r22.status !== C2 || r22.lookahead) return _2;
|
|
37758
|
-
for (1 === s22 && (e2.adler = d2(e2.adler, t2, l2, 0)), r22.wrap = 0, l2 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u2 = new c2.Buf8(r22.w_size), c2.arraySet(u2, t2, l2 - r22.w_size, r22.w_size, 0), t2 = u2, l2 = r22.w_size), a22 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l2, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >=
|
|
37759
|
-
for (n2 = r22.strstart, i22 = r22.lookahead - (
|
|
37760
|
-
r22.strstart = n2, r22.lookahead =
|
|
37924
|
+
for (1 === s22 && (e2.adler = d2(e2.adler, t2, l2, 0)), r22.wrap = 0, l2 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u2 = new c2.Buf8(r22.w_size), c2.arraySet(u2, t2, l2 - r22.w_size, r22.w_size, 0), t2 = u2, l2 = r22.w_size), a22 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l2, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x2; ) {
|
|
37925
|
+
for (n2 = r22.strstart, i22 = r22.lookahead - (x2 - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x2 - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i22; ) ;
|
|
37926
|
+
r22.strstart = n2, r22.lookahead = x2 - 1, j2(r22);
|
|
37761
37927
|
}
|
|
37762
|
-
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length =
|
|
37928
|
+
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x2 - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a22, r22.wrap = s22, m2;
|
|
37763
37929
|
}, r2.deflateInfo = "pako deflate (from Nodeca project)";
|
|
37764
37930
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r2) {
|
|
37765
37931
|
t.exports = function() {
|
|
@@ -37767,7 +37933,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37767
37933
|
};
|
|
37768
37934
|
}, {}], 48: [function(e, t, r2) {
|
|
37769
37935
|
t.exports = function(e2, t2) {
|
|
37770
|
-
var r22, n, i2, s2, a2, o, h2, u, l, f2, c2, d2, p2, m2, _2, g, b2, v2, y2, w2, k2,
|
|
37936
|
+
var r22, n, i2, s2, a2, o, h2, u, l, f2, c2, d2, p2, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2;
|
|
37771
37937
|
r22 = e2.state, n = e2.next_in, z2 = e2.input, i2 = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a2 = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax, u = r22.wsize, l = r22.whave, f2 = r22.wnext, c2 = r22.window, d2 = r22.hold, p2 = r22.bits, m2 = r22.lencode, _2 = r22.distcode, g = (1 << r22.lenbits) - 1, b2 = (1 << r22.distbits) - 1;
|
|
37772
37938
|
e: do {
|
|
37773
37939
|
p2 < 15 && (d2 += z2[n++] << p2, p2 += 8, d2 += z2[n++] << p2, p2 += 8), v2 = m2[d2 & g];
|
|
@@ -37805,28 +37971,28 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37805
37971
|
e2.msg = "invalid distance too far back", r22.mode = 30;
|
|
37806
37972
|
break e;
|
|
37807
37973
|
}
|
|
37808
|
-
if (S2 = c2, (
|
|
37809
|
-
if (
|
|
37810
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37811
|
-
|
|
37974
|
+
if (S2 = c2, (x2 = 0) === f2) {
|
|
37975
|
+
if (x2 += u - y2, y2 < w2) {
|
|
37976
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37977
|
+
x2 = s2 - k2, S2 = C2;
|
|
37812
37978
|
}
|
|
37813
37979
|
} else if (f2 < y2) {
|
|
37814
|
-
if (
|
|
37815
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37816
|
-
if (
|
|
37817
|
-
for (w2 -= y2 = f2; C2[s2++] = c2[
|
|
37818
|
-
|
|
37980
|
+
if (x2 += u + f2 - y2, (y2 -= f2) < w2) {
|
|
37981
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37982
|
+
if (x2 = 0, f2 < w2) {
|
|
37983
|
+
for (w2 -= y2 = f2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37984
|
+
x2 = s2 - k2, S2 = C2;
|
|
37819
37985
|
}
|
|
37820
37986
|
}
|
|
37821
|
-
} else if (
|
|
37822
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37823
|
-
|
|
37987
|
+
} else if (x2 += f2 - y2, y2 < w2) {
|
|
37988
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37989
|
+
x2 = s2 - k2, S2 = C2;
|
|
37824
37990
|
}
|
|
37825
|
-
for (; 2 < w2; ) C2[s2++] = S2[
|
|
37826
|
-
w2 && (C2[s2++] = S2[
|
|
37991
|
+
for (; 2 < w2; ) C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], w2 -= 3;
|
|
37992
|
+
w2 && (C2[s2++] = S2[x2++], 1 < w2 && (C2[s2++] = S2[x2++]));
|
|
37827
37993
|
} else {
|
|
37828
|
-
for (
|
|
37829
|
-
w2 && (C2[s2++] = C2[
|
|
37994
|
+
for (x2 = s2 - k2; C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], 2 < (w2 -= 3); ) ;
|
|
37995
|
+
w2 && (C2[s2++] = C2[x2++], 1 < w2 && (C2[s2++] = C2[x2++]));
|
|
37830
37996
|
}
|
|
37831
37997
|
break;
|
|
37832
37998
|
}
|
|
@@ -37837,7 +38003,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37837
38003
|
n -= w2 = p2 >> 3, d2 &= (1 << (p2 -= w2 << 3)) - 1, e2.next_in = n, e2.next_out = s2, e2.avail_in = n < i2 ? i2 - n + 5 : 5 - (n - i2), e2.avail_out = s2 < o ? o - s2 + 257 : 257 - (s2 - o), r22.hold = d2, r22.bits = p2;
|
|
37838
38004
|
};
|
|
37839
38005
|
}, {}], 49: [function(e, t, r2) {
|
|
37840
|
-
var I2 = e("../utils/common"),
|
|
38006
|
+
var I2 = e("../utils/common"), O = e("./adler32"), B2 = e("./crc32"), R = e("./inffast"), T2 = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i2 = 592;
|
|
37841
38007
|
function L2(e2) {
|
|
37842
38008
|
return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
|
|
37843
38009
|
}
|
|
@@ -37868,8 +38034,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37868
38034
|
for (; t2 < 256; ) e2.lens[t2++] = 9;
|
|
37869
38035
|
for (; t2 < 280; ) e2.lens[t2++] = 7;
|
|
37870
38036
|
for (; t2 < 288; ) e2.lens[t2++] = 8;
|
|
37871
|
-
for (
|
|
37872
|
-
|
|
38037
|
+
for (T2(D2, e2.lens, 0, 288, l, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
|
|
38038
|
+
T2(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
|
|
37873
38039
|
}
|
|
37874
38040
|
e2.lencode = l, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
|
|
37875
38041
|
}
|
|
@@ -37880,9 +38046,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37880
38046
|
r2.inflateReset = o, r2.inflateReset2 = h2, r2.inflateResetKeep = a2, r2.inflateInit = function(e2) {
|
|
37881
38047
|
return u(e2, 15);
|
|
37882
38048
|
}, r2.inflateInit2 = u, r2.inflate = function(e2, t2) {
|
|
37883
|
-
var r22, n2, i22, s22, a22, o2, h22, u2, l2, f22, c22, d2, p2, m2, _2, g, b2, v2, y2, w2, k2,
|
|
38049
|
+
var r22, n2, i22, s22, a22, o2, h22, u2, l2, f22, c22, d2, p2, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2 = 0, E2 = new I2.Buf8(4), A2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
37884
38050
|
if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U2;
|
|
37885
|
-
12 === (r22 = e2.state).mode && (r22.mode = 13), a22 = e2.next_out, i22 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l2 = r22.bits, f22 = o2, c22 = h22,
|
|
38051
|
+
12 === (r22 = e2.state).mode && (r22.mode = 13), a22 = e2.next_out, i22 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l2 = r22.bits, f22 = o2, c22 = h22, x2 = N2;
|
|
37886
38052
|
e: for (; ; ) switch (r22.mode) {
|
|
37887
38053
|
case P2:
|
|
37888
38054
|
if (0 === r22.wrap) {
|
|
@@ -38053,7 +38219,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38053
38219
|
r22.lens[A2[r22.have++]] = 7 & u2, u2 >>>= 3, l2 -= 3;
|
|
38054
38220
|
}
|
|
38055
38221
|
for (; r22.have < 19; ) r22.lens[A2[r22.have++]] = 0;
|
|
38056
|
-
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits },
|
|
38222
|
+
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) {
|
|
38057
38223
|
e2.msg = "invalid code lengths set", r22.mode = 30;
|
|
38058
38224
|
break;
|
|
38059
38225
|
}
|
|
@@ -38101,11 +38267,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38101
38267
|
e2.msg = "invalid code -- missing end-of-block", r22.mode = 30;
|
|
38102
38268
|
break;
|
|
38103
38269
|
}
|
|
38104
|
-
if (r22.lenbits = 9, S2 = { bits: r22.lenbits },
|
|
38270
|
+
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) {
|
|
38105
38271
|
e2.msg = "invalid literal/lengths set", r22.mode = 30;
|
|
38106
38272
|
break;
|
|
38107
38273
|
}
|
|
38108
|
-
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits },
|
|
38274
|
+
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) {
|
|
38109
38275
|
e2.msg = "invalid distances set", r22.mode = 30;
|
|
38110
38276
|
break;
|
|
38111
38277
|
}
|
|
@@ -38114,7 +38280,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38114
38280
|
r22.mode = 21;
|
|
38115
38281
|
case 21:
|
|
38116
38282
|
if (6 <= o2 && 258 <= h22) {
|
|
38117
|
-
e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2,
|
|
38283
|
+
e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2, R(e2, c22), a22 = e2.next_out, i22 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l2 = r22.bits, 12 === r22.mode && (r22.back = -1);
|
|
38118
38284
|
break;
|
|
38119
38285
|
}
|
|
38120
38286
|
for (r22.back = 0; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
|
|
@@ -38202,7 +38368,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38202
38368
|
if (0 === o2) break e;
|
|
38203
38369
|
o2--, u2 |= n2[s22++] << l2, l2 += 8;
|
|
38204
38370
|
}
|
|
38205
|
-
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, a22 - c22) :
|
|
38371
|
+
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, a22 - c22) : O(r22.check, i22, c22, a22 - c22)), c22 = h22, (r22.flags ? u2 : L2(u2)) !== r22.check) {
|
|
38206
38372
|
e2.msg = "incorrect data check", r22.mode = 30;
|
|
38207
38373
|
break;
|
|
38208
38374
|
}
|
|
@@ -38223,10 +38389,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38223
38389
|
}
|
|
38224
38390
|
r22.mode = 29;
|
|
38225
38391
|
case 29:
|
|
38226
|
-
|
|
38392
|
+
x2 = 1;
|
|
38227
38393
|
break e;
|
|
38228
38394
|
case 30:
|
|
38229
|
-
|
|
38395
|
+
x2 = -3;
|
|
38230
38396
|
break e;
|
|
38231
38397
|
case 31:
|
|
38232
38398
|
return -4;
|
|
@@ -38234,7 +38400,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38234
38400
|
default:
|
|
38235
38401
|
return U2;
|
|
38236
38402
|
}
|
|
38237
|
-
return e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, e2.next_out - c22) :
|
|
38403
|
+
return e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, e2.next_out - c22) : O(r22.check, i22, c22, e2.next_out - c22)), e2.data_type = r22.bits + (r22.last ? 64 : 0) + (12 === r22.mode ? 128 : 0) + (20 === r22.mode || 15 === r22.mode ? 256 : 0), (0 == f22 && 0 === c22 || 4 === t2) && x2 === N2 && (x2 = -5), x2);
|
|
38238
38404
|
}, r2.inflateEnd = function(e2) {
|
|
38239
38405
|
if (!e2 || !e2.state) return U2;
|
|
38240
38406
|
var t2 = e2.state;
|
|
@@ -38244,33 +38410,33 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38244
38410
|
return e2 && e2.state ? 0 == (2 & (r22 = e2.state).wrap) ? U2 : ((r22.head = t2).done = false, N2) : U2;
|
|
38245
38411
|
}, r2.inflateSetDictionary = function(e2, t2) {
|
|
38246
38412
|
var r22, n2 = t2.length;
|
|
38247
|
-
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode &&
|
|
38413
|
+
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;
|
|
38248
38414
|
}, r2.inflateInfo = "pako inflate (from Nodeca project)";
|
|
38249
38415
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r2) {
|
|
38250
38416
|
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];
|
|
38251
38417
|
t.exports = function(e2, t2, r22, n, i2, s2, a2, o) {
|
|
38252
|
-
var h2, u, l, f2, c2, d2, p2, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0,
|
|
38253
|
-
for (b2 = 0; b2 <= 15; b2++)
|
|
38254
|
-
for (v2 = 0; v2 < n; v2++)
|
|
38255
|
-
for (k2 = g, w2 = 15; 1 <= w2 && 0 ===
|
|
38418
|
+
var h2, u, l, f2, c2, d2, p2, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x2 = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O = new D2.Buf16(16), B2 = new D2.Buf16(16), R = null, T2 = 0;
|
|
38419
|
+
for (b2 = 0; b2 <= 15; b2++) O[b2] = 0;
|
|
38420
|
+
for (v2 = 0; v2 < n; v2++) O[t2[r22 + v2]]++;
|
|
38421
|
+
for (k2 = g, w2 = 15; 1 <= w2 && 0 === O[w2]; w2--) ;
|
|
38256
38422
|
if (w2 < k2 && (k2 = w2), 0 === w2) return i2[s2++] = 20971520, i2[s2++] = 20971520, o.bits = 1, 0;
|
|
38257
|
-
for (y2 = 1; y2 < w2 && 0 ===
|
|
38258
|
-
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -=
|
|
38423
|
+
for (y2 = 1; y2 < w2 && 0 === O[y2]; y2++) ;
|
|
38424
|
+
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O[b2]) < 0) return -1;
|
|
38259
38425
|
if (0 < z2 && (0 === e2 || 1 !== w2)) return -1;
|
|
38260
|
-
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] +
|
|
38426
|
+
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O[b2];
|
|
38261
38427
|
for (v2 = 0; v2 < n; v2++) 0 !== t2[r22 + v2] && (a2[B2[t2[r22 + v2]]++] = v2);
|
|
38262
|
-
if (d2 = 0 === e2 ? (A2 =
|
|
38428
|
+
if (d2 = 0 === e2 ? (A2 = R = a2, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R = N2, T2 -= 257, 256) : (A2 = U2, R = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l = -1, f2 = (C2 = 1 << (x2 = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
38263
38429
|
for (; ; ) {
|
|
38264
|
-
for (p2 = b2 - S2, _2 = a2[v2] < d2 ? (m2 = 0, a2[v2]) : a2[v2] > d2 ? (m2 =
|
|
38430
|
+
for (p2 = b2 - S2, _2 = a2[v2] < d2 ? (m2 = 0, a2[v2]) : a2[v2] > d2 ? (m2 = R[T2 + a2[v2]], A2[I2 + a2[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u = 1 << x2; i2[c2 + (E2 >> S2) + (u -= h2)] = p2 << 24 | m2 << 16 | _2 | 0, 0 !== u; ) ;
|
|
38265
38431
|
for (h2 = 1 << b2 - 1; E2 & h2; ) h2 >>= 1;
|
|
38266
|
-
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --
|
|
38432
|
+
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O[b2]) {
|
|
38267
38433
|
if (b2 === w2) break;
|
|
38268
38434
|
b2 = t2[r22 + a2[v2]];
|
|
38269
38435
|
}
|
|
38270
38436
|
if (k2 < b2 && (E2 & f2) !== l) {
|
|
38271
|
-
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (
|
|
38272
|
-
if (C2 += 1 <<
|
|
38273
|
-
i2[l = E2 & f2] = k2 << 24 |
|
|
38437
|
+
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x2 = b2 - S2); x2 + S2 < w2 && !((z2 -= O[x2 + S2]) <= 0); ) x2++, z2 <<= 1;
|
|
38438
|
+
if (C2 += 1 << x2, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
38439
|
+
i2[l = E2 & f2] = k2 << 24 | x2 << 16 | c2 - s2 | 0;
|
|
38274
38440
|
}
|
|
38275
38441
|
}
|
|
38276
38442
|
return 0 !== E2 && (i2[c2 + E2] = b2 - S2 << 24 | 64 << 16 | 0), o.bits = k2, 0;
|
|
@@ -38282,7 +38448,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38282
38448
|
function n(e2) {
|
|
38283
38449
|
for (var t2 = e2.length; 0 <= --t2; ) e2[t2] = 0;
|
|
38284
38450
|
}
|
|
38285
|
-
var s2 = 0, a2 = 29, u = 256, l = u + 1 + a2, f2 = 30, c2 = 19, _2 = 2 * l + 1, g = 15, d2 = 16, p2 = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13],
|
|
38451
|
+
var s2 = 0, a2 = 29, u = 256, l = u + 1 + a2, f2 = 30, c2 = 19, _2 = 2 * l + 1, g = 15, d2 = 16, p2 = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l + 2));
|
|
38286
38452
|
n(z2);
|
|
38287
38453
|
var C2 = new Array(2 * f2);
|
|
38288
38454
|
n(C2);
|
|
@@ -38292,7 +38458,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38292
38458
|
n(A2);
|
|
38293
38459
|
var I2 = new Array(a2);
|
|
38294
38460
|
n(I2);
|
|
38295
|
-
var
|
|
38461
|
+
var O, B2, R, T2 = new Array(f2);
|
|
38296
38462
|
function D2(e2, t2, r22, n2, i22) {
|
|
38297
38463
|
this.static_tree = e2, this.extra_bits = t2, this.extra_base = r22, this.elems = n2, this.max_length = i22, this.has_stree = e2 && e2.length;
|
|
38298
38464
|
}
|
|
@@ -38343,7 +38509,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38343
38509
|
}
|
|
38344
38510
|
function K2(e2, t2, r22) {
|
|
38345
38511
|
var n2, i22, s22, a22, o2 = 0;
|
|
38346
|
-
if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i22 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i22, t2) : (L2(e2, (s22 = A2[i22]) + u + 1, t2), 0 !== (a22 = w2[s22]) && P2(e2, i22 -= I2[s22], a22), L2(e2, s22 = N2(--n2), r22), 0 !== (a22 = k2[s22]) && P2(e2, n2 -=
|
|
38512
|
+
if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i22 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i22, t2) : (L2(e2, (s22 = A2[i22]) + u + 1, t2), 0 !== (a22 = w2[s22]) && P2(e2, i22 -= I2[s22], a22), L2(e2, s22 = N2(--n2), r22), 0 !== (a22 = k2[s22]) && P2(e2, n2 -= T2[s22], a22)), o2 < e2.last_lit; ) ;
|
|
38347
38513
|
L2(e2, m2, t2);
|
|
38348
38514
|
}
|
|
38349
38515
|
function Y2(e2, t2) {
|
|
@@ -38377,7 +38543,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38377
38543
|
s22 = i22, u2 = (o2 = 0) === a22 ? (h22 = 138, 3) : i22 === a22 ? (h22 = 6, 3) : (h22 = 7, 4);
|
|
38378
38544
|
}
|
|
38379
38545
|
}
|
|
38380
|
-
n(
|
|
38546
|
+
n(T2);
|
|
38381
38547
|
var q2 = false;
|
|
38382
38548
|
function J2(e2, t2, r22, n2) {
|
|
38383
38549
|
P2(e2, (s2 << 1) + (n2 ? 1 : 0), 3), (function(e3, t3, r3, n3) {
|
|
@@ -38388,16 +38554,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38388
38554
|
q2 || ((function() {
|
|
38389
38555
|
var e3, t2, r22, n2, i22, s22 = new Array(g + 1);
|
|
38390
38556
|
for (n2 = r22 = 0; n2 < a2 - 1; n2++) for (I2[n2] = r22, e3 = 0; e3 < 1 << w2[n2]; e3++) A2[r22++] = n2;
|
|
38391
|
-
for (A2[r22 - 1] = n2, n2 = i22 = 0; n2 < 16; n2++) for (
|
|
38392
|
-
for (i22 >>= 7; n2 < f2; n2++) for (
|
|
38557
|
+
for (A2[r22 - 1] = n2, n2 = i22 = 0; n2 < 16; n2++) for (T2[n2] = i22, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i22++] = n2;
|
|
38558
|
+
for (i22 >>= 7; n2 < f2; n2++) for (T2[n2] = i22 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i22++] = n2;
|
|
38393
38559
|
for (t2 = 0; t2 <= g; t2++) s22[t2] = 0;
|
|
38394
38560
|
for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38395
38561
|
for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s22[9]++;
|
|
38396
38562
|
for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s22[7]++;
|
|
38397
38563
|
for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38398
38564
|
for (Z(z2, l + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
|
|
38399
|
-
|
|
38400
|
-
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree,
|
|
38565
|
+
O = new D2(z2, w2, u + 1, l, g), B2 = new D2(C2, k2, 0, f2, g), R = new D2(new Array(0), x2, 0, c2, p2);
|
|
38566
|
+
})(), 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);
|
|
38401
38567
|
}, r2._tr_stored_block = J2, r2._tr_flush_block = function(e2, t2, r22, n2) {
|
|
38402
38568
|
var i22, s22, a22 = 0;
|
|
38403
38569
|
0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = (function(e3) {
|
|
@@ -38738,14 +38904,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38738
38904
|
const zip = await this.zip.loadAsync(file);
|
|
38739
38905
|
return zip;
|
|
38740
38906
|
}
|
|
38741
|
-
async updateZip({ docx, updatedDocs, originalDocxFile, media: media2, fonts, isHeadless }) {
|
|
38907
|
+
async updateZip({ docx, updatedDocs, originalDocxFile, media: media2, fonts, isHeadless: isHeadless2 }) {
|
|
38742
38908
|
let zip;
|
|
38743
38909
|
if (originalDocxFile) {
|
|
38744
38910
|
zip = await this.exportFromOriginalFile(originalDocxFile, updatedDocs, media2);
|
|
38745
38911
|
} else {
|
|
38746
38912
|
zip = await this.exportFromCollaborativeDocx(docx, updatedDocs, media2, fonts);
|
|
38747
38913
|
}
|
|
38748
|
-
const exportType =
|
|
38914
|
+
const exportType = isHeadless2 ? "nodebuffer" : "blob";
|
|
38749
38915
|
return await zip.generateAsync({ type: exportType });
|
|
38750
38916
|
}
|
|
38751
38917
|
/**
|
|
@@ -39605,7 +39771,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39605
39771
|
},
|
|
39606
39772
|
concat(...args) {
|
|
39607
39773
|
return reactiveReadArray(this).concat(
|
|
39608
|
-
...args.map((
|
|
39774
|
+
...args.map((x2) => isArray$3(x2) ? reactiveReadArray(x2) : x2)
|
|
39609
39775
|
);
|
|
39610
39776
|
},
|
|
39611
39777
|
entries() {
|
|
@@ -47214,17 +47380,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
47214
47380
|
elt = elt.shadowRoot.activeElement;
|
|
47215
47381
|
return elt;
|
|
47216
47382
|
}
|
|
47217
|
-
function caretFromPoint(doc2,
|
|
47383
|
+
function caretFromPoint(doc2, x2, y2) {
|
|
47218
47384
|
if (doc2.caretPositionFromPoint) {
|
|
47219
47385
|
try {
|
|
47220
|
-
let pos = doc2.caretPositionFromPoint(
|
|
47386
|
+
let pos = doc2.caretPositionFromPoint(x2, y2);
|
|
47221
47387
|
if (pos)
|
|
47222
47388
|
return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
|
|
47223
47389
|
} catch (_2) {
|
|
47224
47390
|
}
|
|
47225
47391
|
}
|
|
47226
47392
|
if (doc2.caretRangeFromPoint) {
|
|
47227
|
-
let range2 = doc2.caretRangeFromPoint(
|
|
47393
|
+
let range2 = doc2.caretRangeFromPoint(x2, y2);
|
|
47228
47394
|
if (range2)
|
|
47229
47395
|
return { node: range2.startContainer, offset: Math.min(nodeSize(range2.startContainer), range2.startOffset) };
|
|
47230
47396
|
}
|
|
@@ -47323,8 +47489,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
47323
47489
|
function storeScrollPos(view) {
|
|
47324
47490
|
let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
|
|
47325
47491
|
let refDOM, refTop;
|
|
47326
|
-
for (let
|
|
47327
|
-
let dom = view.root.elementFromPoint(
|
|
47492
|
+
for (let x2 = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
|
|
47493
|
+
let dom = view.root.elementFromPoint(x2, y2);
|
|
47328
47494
|
if (!dom || dom == view.dom || !view.dom.contains(dom))
|
|
47329
47495
|
continue;
|
|
47330
47496
|
let localRect = dom.getBoundingClientRect();
|
|
@@ -47620,8 +47786,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
47620
47786
|
function flattenV(rect, left2) {
|
|
47621
47787
|
if (rect.width == 0)
|
|
47622
47788
|
return rect;
|
|
47623
|
-
let
|
|
47624
|
-
return { top: rect.top, bottom: rect.bottom, left:
|
|
47789
|
+
let x2 = left2 ? rect.left : rect.right;
|
|
47790
|
+
return { top: rect.top, bottom: rect.bottom, left: x2, right: x2 };
|
|
47625
47791
|
}
|
|
47626
47792
|
function flattenH(rect, top2) {
|
|
47627
47793
|
if (rect.height == 0)
|
|
@@ -52628,10 +52794,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
52628
52794
|
const Timeout = createTimeoutClass(clearTimeout);
|
|
52629
52795
|
const timeout = (timeout2, callback) => new Timeout(setTimeout(callback, timeout2));
|
|
52630
52796
|
const rotr = (w2, shift2) => w2 >>> shift2 | w2 << 32 - shift2;
|
|
52631
|
-
const sum0to256 = (
|
|
52632
|
-
const sum1to256 = (
|
|
52633
|
-
const sigma0to256 = (
|
|
52634
|
-
const sigma1to256 = (
|
|
52797
|
+
const sum0to256 = (x2) => rotr(x2, 2) ^ rotr(x2, 13) ^ rotr(x2, 22);
|
|
52798
|
+
const sum1to256 = (x2) => rotr(x2, 6) ^ rotr(x2, 11) ^ rotr(x2, 25);
|
|
52799
|
+
const sigma0to256 = (x2) => rotr(x2, 7) ^ rotr(x2, 18) ^ x2 >>> 3;
|
|
52800
|
+
const sigma1to256 = (x2) => rotr(x2, 17) ^ rotr(x2, 19) ^ x2 >>> 10;
|
|
52635
52801
|
const K = new Uint32Array([
|
|
52636
52802
|
1116352408,
|
|
52637
52803
|
1899447441,
|
|
@@ -58222,9 +58388,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
58222
58388
|
if (!target || !target.classList) return;
|
|
58223
58389
|
target.classList.add(STYLE_ISOLATION_CLASS);
|
|
58224
58390
|
};
|
|
58391
|
+
const isHeadless = (editor) => {
|
|
58392
|
+
return editor?.options?.isHeadless ?? false;
|
|
58393
|
+
};
|
|
58394
|
+
const shouldSkipNodeView = (editor) => {
|
|
58395
|
+
return isHeadless(editor);
|
|
58396
|
+
};
|
|
58225
58397
|
const PaginationPluginKey = new PluginKey("paginationPlugin");
|
|
58226
58398
|
const initPaginationData = async (editor) => {
|
|
58227
|
-
if (!editor.converter) return;
|
|
58399
|
+
if (isHeadless(editor) || !editor.converter) return;
|
|
58228
58400
|
const sectionData = { headers: {}, footers: {} };
|
|
58229
58401
|
const headerIds = editor.converter.headerIds.ids;
|
|
58230
58402
|
const footerIds = editor.converter.footerIds.ids;
|
|
@@ -58360,6 +58532,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
58360
58532
|
});
|
|
58361
58533
|
};
|
|
58362
58534
|
const toggleHeaderFooterEditMode = ({ editor, focusedSectionEditor, isEditMode, documentMode }) => {
|
|
58535
|
+
if (isHeadless(editor)) return;
|
|
58363
58536
|
editor.converter.headerEditors.forEach((item) => {
|
|
58364
58537
|
item.editor.setEditable(isEditMode, false);
|
|
58365
58538
|
item.editor.view.dom.setAttribute("aria-readonly", !isEditMode);
|
|
@@ -61429,10 +61602,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
61429
61602
|
};
|
|
61430
61603
|
if ("orientation" in screen && "addEventListener" in screen.orientation) {
|
|
61431
61604
|
screen.orientation.addEventListener("change", handleResize);
|
|
61432
|
-
} else {
|
|
61605
|
+
} else if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
|
|
61433
61606
|
window.matchMedia("(orientation: portrait)").addEventListener("change", handleResize);
|
|
61434
61607
|
}
|
|
61435
|
-
window.addEventListener
|
|
61608
|
+
if (typeof window !== "undefined" && typeof window.addEventListener === "function") {
|
|
61609
|
+
window.addEventListener("resize", () => handleResize);
|
|
61610
|
+
}
|
|
61436
61611
|
}
|
|
61437
61612
|
/**
|
|
61438
61613
|
* Get document identifier for telemetry (async - may generate hash)
|
|
@@ -61546,7 +61721,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
61546
61721
|
{ default: remarkStringify2 },
|
|
61547
61722
|
{ default: remarkGfm2 }
|
|
61548
61723
|
] = await Promise.all([
|
|
61549
|
-
Promise.resolve().then(() =>
|
|
61724
|
+
Promise.resolve().then(() => indexC3nnrhrj),
|
|
61550
61725
|
Promise.resolve().then(() => indexDRCvimau),
|
|
61551
61726
|
Promise.resolve().then(() => indexC_x_N6Uh),
|
|
61552
61727
|
Promise.resolve().then(() => indexD_sWOSiG),
|
|
@@ -61598,7 +61773,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
61598
61773
|
this.initDefaultStyles();
|
|
61599
61774
|
hasMadeUpdate = true;
|
|
61600
61775
|
}
|
|
61601
|
-
if (hasMadeUpdate) {
|
|
61776
|
+
if (hasMadeUpdate && !isHeadless(this)) {
|
|
61602
61777
|
const newTr = this.view.state.tr;
|
|
61603
61778
|
newTr.setMeta("forceUpdatePagination", true);
|
|
61604
61779
|
this.view.dispatch(newTr);
|
|
@@ -61764,7 +61939,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
61764
61939
|
* @returns {Object | void} Migration results
|
|
61765
61940
|
*/
|
|
61766
61941
|
processCollaborationMigrations() {
|
|
61767
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.
|
|
61942
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.1");
|
|
61768
61943
|
if (!this.options.ydoc) return;
|
|
61769
61944
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
61770
61945
|
let docVersion = metaMap.get("version");
|
|
@@ -62198,16 +62373,18 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
62198
62373
|
handleClick: __privateMethod$1(this, _Editor_instances, handleNodeSelection_fn).bind(this),
|
|
62199
62374
|
handleDoubleClick: async (view, pos, event) => {
|
|
62200
62375
|
if (this.options.documentMode !== "editing") return;
|
|
62201
|
-
|
|
62202
|
-
|
|
62203
|
-
|
|
62204
|
-
|
|
62205
|
-
|
|
62206
|
-
|
|
62207
|
-
|
|
62376
|
+
if (!isHeadless(this)) {
|
|
62377
|
+
const isHeader = hasSomeParentWithClass(event.target, "pagination-section-header");
|
|
62378
|
+
const isFooter = hasSomeParentWithClass(event.target, "pagination-section-footer");
|
|
62379
|
+
if (isHeader || isFooter) {
|
|
62380
|
+
const eventClone = new event.constructor(event.type);
|
|
62381
|
+
event.target.dispatchEvent(eventClone);
|
|
62382
|
+
if (this.options.isHeaderOrFooter && this.options.editable) setWordSelection(view, pos);
|
|
62383
|
+
return;
|
|
62384
|
+
}
|
|
62208
62385
|
}
|
|
62209
62386
|
event.stopPropagation();
|
|
62210
|
-
if (!this.options.editable) {
|
|
62387
|
+
if (!this.options.editable && !isHeadless(this)) {
|
|
62211
62388
|
this.setEditable(true, false);
|
|
62212
62389
|
toggleHeaderFooterEditMode({
|
|
62213
62390
|
editor: this,
|
|
@@ -63638,16 +63815,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
63638
63815
|
const { state: state2, dom } = view;
|
|
63639
63816
|
const { selection } = state2;
|
|
63640
63817
|
const containerRect = dom.getBoundingClientRect();
|
|
63641
|
-
let
|
|
63818
|
+
let x2, y2;
|
|
63642
63819
|
if (typeof eventLocation.clientX === "number" && typeof eventLocation.clientY === "number") {
|
|
63643
|
-
|
|
63820
|
+
x2 = eventLocation.clientX - containerRect.left;
|
|
63644
63821
|
y2 = eventLocation.clientY - containerRect.top;
|
|
63645
63822
|
} else {
|
|
63646
63823
|
const cursorCoords = view.coordsAtPos(selection.from);
|
|
63647
|
-
|
|
63824
|
+
x2 = cursorCoords.left - containerRect.left;
|
|
63648
63825
|
y2 = cursorCoords.top - containerRect.top;
|
|
63649
63826
|
}
|
|
63650
|
-
return { left:
|
|
63827
|
+
return { left: x2, top: y2 };
|
|
63651
63828
|
}
|
|
63652
63829
|
const SlashMenuPluginKey = new PluginKey("slashMenu");
|
|
63653
63830
|
const SlashMenu = Extension.create({
|
|
@@ -63926,17 +64103,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
63926
64103
|
if (!this.dom || this.contentDOM?.contains(target) || !dragHandle) {
|
|
63927
64104
|
return;
|
|
63928
64105
|
}
|
|
63929
|
-
let
|
|
64106
|
+
let x2 = 0;
|
|
63930
64107
|
let y2 = 0;
|
|
63931
64108
|
if (this.dom !== dragHandle) {
|
|
63932
64109
|
const domBox = this.dom.getBoundingClientRect();
|
|
63933
64110
|
const handleBox = dragHandle.getBoundingClientRect();
|
|
63934
64111
|
const offsetX = event.offsetX ?? event.nativeEvent?.offsetX;
|
|
63935
64112
|
const offsetY = event.offsetY ?? event.nativeEvent?.offsetY;
|
|
63936
|
-
|
|
64113
|
+
x2 = handleBox.x - domBox.x + offsetX;
|
|
63937
64114
|
y2 = handleBox.y - domBox.y + offsetY;
|
|
63938
64115
|
}
|
|
63939
|
-
event.dataTransfer?.setDragImage(this.dom,
|
|
64116
|
+
event.dataTransfer?.setDragImage(this.dom, x2, y2);
|
|
63940
64117
|
const pos = this.getPos();
|
|
63941
64118
|
if (typeof pos !== "number") {
|
|
63942
64119
|
return;
|
|
@@ -66843,9 +67020,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
66843
67020
|
}
|
|
66844
67021
|
});
|
|
66845
67022
|
}
|
|
66846
|
-
const shouldSkipNodeView = (editor) => {
|
|
66847
|
-
return editor.options.isHeadless;
|
|
66848
|
-
};
|
|
66849
67023
|
const ListItem = Node$1.create({
|
|
66850
67024
|
name: "listItem",
|
|
66851
67025
|
content: "paragraph* block*",
|
|
@@ -72027,17 +72201,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72027
72201
|
const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
|
|
72028
72202
|
if (reducedHexMatch) {
|
|
72029
72203
|
const arr = Array.from(reducedHexMatch).slice(1);
|
|
72030
|
-
return [...arr.slice(0, 3).map((
|
|
72204
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(r$1(x2, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
|
|
72031
72205
|
}
|
|
72032
72206
|
const hexMatch = hexRegex$2.exec(normalizedColor);
|
|
72033
72207
|
if (hexMatch) {
|
|
72034
72208
|
const arr = Array.from(hexMatch).slice(1);
|
|
72035
|
-
return [...arr.slice(0, 3).map((
|
|
72209
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(x2, 16)), parseInt(arr[3] || "ff", 16) / 255];
|
|
72036
72210
|
}
|
|
72037
72211
|
const rgbaMatch = rgbaRegex$2.exec(normalizedColor);
|
|
72038
72212
|
if (rgbaMatch) {
|
|
72039
72213
|
const arr = Array.from(rgbaMatch).slice(1);
|
|
72040
|
-
return [...arr.slice(0, 3).map((
|
|
72214
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(x2, 10)), parseFloat(arr[3] || "1")];
|
|
72041
72215
|
}
|
|
72042
72216
|
const hslaMatch = hslaRegex$2.exec(normalizedColor);
|
|
72043
72217
|
if (hslaMatch) {
|
|
@@ -72056,7 +72230,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72056
72230
|
}
|
|
72057
72231
|
return (hash2 >>> 0) % 2341;
|
|
72058
72232
|
}
|
|
72059
|
-
const colorToInt = (
|
|
72233
|
+
const colorToInt = (x2) => parseInt(x2.replace(/_/g, ""), 36);
|
|
72060
72234
|
const compressedColorMap = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((acc, next2) => {
|
|
72061
72235
|
const key2 = colorToInt(next2.substring(0, 3));
|
|
72062
72236
|
const hex2 = colorToInt(next2.substring(3)).toString(16);
|
|
@@ -72120,8 +72294,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72120
72294
|
};
|
|
72121
72295
|
function toHex(color2) {
|
|
72122
72296
|
const [r2, g, b2, a2] = parseToRgba(color2);
|
|
72123
|
-
let hex2 = (
|
|
72124
|
-
const h2 = guard(0, 255,
|
|
72297
|
+
let hex2 = (x2) => {
|
|
72298
|
+
const h2 = guard(0, 255, x2).toString(16);
|
|
72125
72299
|
return h2.length === 1 ? `0${h2}` : h2;
|
|
72126
72300
|
};
|
|
72127
72301
|
return `#${hex2(r2)}${hex2(g)}${hex2(b2)}${a2 < 1 ? hex2(Math.round(a2 * 255)) : ""}`;
|
|
@@ -72817,7 +72991,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72817
72991
|
}
|
|
72818
72992
|
if (dispatch) {
|
|
72819
72993
|
commands2.updateFieldAnnotationsAttributes([annotation], attrs);
|
|
72820
|
-
if (this.editor.options.pagination) {
|
|
72994
|
+
if (this.editor.options.pagination && !isHeadless(this.editor)) {
|
|
72821
72995
|
setTimeout(() => {
|
|
72822
72996
|
const newTr = this.editor.view.state.tr;
|
|
72823
72997
|
newTr.setMeta("forceUpdatePagination", true);
|
|
@@ -74225,10 +74399,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
74225
74399
|
let minX = 0;
|
|
74226
74400
|
let minY = 0;
|
|
74227
74401
|
let maxY = 0;
|
|
74228
|
-
attrs.polygon.forEach(([
|
|
74229
|
-
if (floatRight &&
|
|
74230
|
-
if (
|
|
74231
|
-
if (
|
|
74402
|
+
attrs.polygon.forEach(([x2, y2]) => {
|
|
74403
|
+
if (floatRight && x2 < horizontalOffset) horizontalOffset = x2;
|
|
74404
|
+
if (x2 > maxX) maxX = x2;
|
|
74405
|
+
if (x2 < minX) minX = x2;
|
|
74232
74406
|
if (y2 > maxY) maxY = y2;
|
|
74233
74407
|
if (y2 < minY) minY = y2;
|
|
74234
74408
|
});
|
|
@@ -74237,7 +74411,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
74237
74411
|
const scaleWidth = Math.min(1, size2.width / originalWidth);
|
|
74238
74412
|
const scaleHeight = Math.min(1, size2.height / originalHeight);
|
|
74239
74413
|
const verticalOffset = Math.max(0, marginOffset.top);
|
|
74240
|
-
const points = attrs.polygon.map(([
|
|
74414
|
+
const points = attrs.polygon.map(([x2, y2]) => `${horizontalOffset + x2 * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
|
|
74241
74415
|
style2 += `shape-outside: polygon(${points});`;
|
|
74242
74416
|
}
|
|
74243
74417
|
break;
|
|
@@ -74754,7 +74928,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
74754
74928
|
const pageNumberNode = schema.nodeFromJSON(pageNumberNodeJSON);
|
|
74755
74929
|
if (dispatch) {
|
|
74756
74930
|
tr.replaceSelectionWith(pageNumberNode, false);
|
|
74757
|
-
|
|
74931
|
+
if (!isHeadless(editor)) {
|
|
74932
|
+
tr.setMeta("forceUpdatePagination", true);
|
|
74933
|
+
}
|
|
74758
74934
|
}
|
|
74759
74935
|
return true;
|
|
74760
74936
|
}
|
|
@@ -77823,6 +77999,255 @@ ${l}
|
|
|
77823
77999
|
};
|
|
77824
78000
|
}
|
|
77825
78001
|
});
|
|
78002
|
+
class ShapeGroupView {
|
|
78003
|
+
constructor(props) {
|
|
78004
|
+
__publicField$1(this, "node");
|
|
78005
|
+
__publicField$1(this, "view");
|
|
78006
|
+
__publicField$1(this, "getPos");
|
|
78007
|
+
__publicField$1(this, "decorations");
|
|
78008
|
+
__publicField$1(this, "innerDecorations");
|
|
78009
|
+
__publicField$1(this, "editor");
|
|
78010
|
+
__publicField$1(this, "extension");
|
|
78011
|
+
__publicField$1(this, "htmlAttributes");
|
|
78012
|
+
__publicField$1(this, "root");
|
|
78013
|
+
this.node = props.node;
|
|
78014
|
+
this.view = props.editor.view;
|
|
78015
|
+
this.getPos = props.getPos;
|
|
78016
|
+
this.decorations = props.decorations;
|
|
78017
|
+
this.innerDecorations = props.innerDecorations;
|
|
78018
|
+
this.editor = props.editor;
|
|
78019
|
+
this.extension = props.extension;
|
|
78020
|
+
this.htmlAttributes = props.htmlAttributes;
|
|
78021
|
+
this.mount();
|
|
78022
|
+
}
|
|
78023
|
+
mount() {
|
|
78024
|
+
this.buildView();
|
|
78025
|
+
}
|
|
78026
|
+
get dom() {
|
|
78027
|
+
return this.root;
|
|
78028
|
+
}
|
|
78029
|
+
get contentDOM() {
|
|
78030
|
+
return null;
|
|
78031
|
+
}
|
|
78032
|
+
createElement() {
|
|
78033
|
+
const attrs = this.node.attrs;
|
|
78034
|
+
const { groupTransform, shapes, size: size2 } = attrs;
|
|
78035
|
+
const container = document.createElement("div");
|
|
78036
|
+
container.classList.add("sd-shape-group");
|
|
78037
|
+
container.setAttribute("data-shape-group", "");
|
|
78038
|
+
const width = size2?.width || groupTransform?.width || 300;
|
|
78039
|
+
const height = size2?.height || groupTransform?.height || 200;
|
|
78040
|
+
container.style.width = `${width}px`;
|
|
78041
|
+
container.style.height = `${height}px`;
|
|
78042
|
+
container.style.position = "relative";
|
|
78043
|
+
container.style.display = "inline-block";
|
|
78044
|
+
const svg2 = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
78045
|
+
svg2.setAttribute("version", "1.1");
|
|
78046
|
+
svg2.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
78047
|
+
svg2.setAttribute("width", width.toString());
|
|
78048
|
+
svg2.setAttribute("height", height.toString());
|
|
78049
|
+
svg2.setAttribute("viewBox", `0 0 ${width} ${height}`);
|
|
78050
|
+
svg2.style.display = "block";
|
|
78051
|
+
if (shapes && Array.isArray(shapes)) {
|
|
78052
|
+
shapes.forEach((shape) => {
|
|
78053
|
+
if (shape.shapeType === "vectorShape") {
|
|
78054
|
+
const shapeElement = this.createShapeElement(shape, groupTransform);
|
|
78055
|
+
if (shapeElement) {
|
|
78056
|
+
svg2.appendChild(shapeElement);
|
|
78057
|
+
}
|
|
78058
|
+
}
|
|
78059
|
+
});
|
|
78060
|
+
}
|
|
78061
|
+
container.appendChild(svg2);
|
|
78062
|
+
return { element: container };
|
|
78063
|
+
}
|
|
78064
|
+
createShapeElement(shape) {
|
|
78065
|
+
const attrs = shape.attrs;
|
|
78066
|
+
if (!attrs) return null;
|
|
78067
|
+
const x2 = attrs.x || 0;
|
|
78068
|
+
const y2 = attrs.y || 0;
|
|
78069
|
+
const width = attrs.width || 100;
|
|
78070
|
+
const height = attrs.height || 100;
|
|
78071
|
+
const g = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
78072
|
+
const transforms = [];
|
|
78073
|
+
transforms.push(`translate(${x2}, ${y2})`);
|
|
78074
|
+
if (attrs.rotation !== 0) {
|
|
78075
|
+
transforms.push(`rotate(${attrs.rotation} ${width / 2} ${height / 2})`);
|
|
78076
|
+
}
|
|
78077
|
+
if (attrs.flipH) {
|
|
78078
|
+
transforms.push(`scale(-1, 1) translate(${-width}, 0)`);
|
|
78079
|
+
}
|
|
78080
|
+
if (attrs.flipV) {
|
|
78081
|
+
transforms.push(`scale(1, -1) translate(0, ${-height})`);
|
|
78082
|
+
}
|
|
78083
|
+
if (transforms.length > 0) {
|
|
78084
|
+
g.setAttribute("transform", transforms.join(" "));
|
|
78085
|
+
}
|
|
78086
|
+
const shapeKind = attrs.kind || "rect";
|
|
78087
|
+
const fillColor = attrs.fillColor || "#5b9bd5";
|
|
78088
|
+
const strokeColor = attrs.strokeColor || "#000000";
|
|
78089
|
+
const strokeWidth = attrs.strokeWidth || 1;
|
|
78090
|
+
try {
|
|
78091
|
+
const svgContent = k({
|
|
78092
|
+
preset: shapeKind,
|
|
78093
|
+
styleOverrides: {
|
|
78094
|
+
fill: fillColor || "none",
|
|
78095
|
+
stroke: strokeColor || "none",
|
|
78096
|
+
strokeWidth: strokeWidth || 0
|
|
78097
|
+
},
|
|
78098
|
+
width,
|
|
78099
|
+
height
|
|
78100
|
+
});
|
|
78101
|
+
if (svgContent) {
|
|
78102
|
+
const tempDiv = document.createElement("div");
|
|
78103
|
+
tempDiv.innerHTML = svgContent;
|
|
78104
|
+
const svgElement = tempDiv.querySelector("svg");
|
|
78105
|
+
if (svgElement) {
|
|
78106
|
+
Array.from(svgElement.children).forEach((child) => {
|
|
78107
|
+
const clonedChild = child.cloneNode(true);
|
|
78108
|
+
if (clonedChild.tagName === "ellipse") {
|
|
78109
|
+
clonedChild.setAttribute("cx", (width / 2).toString());
|
|
78110
|
+
clonedChild.setAttribute("cy", (height / 2).toString());
|
|
78111
|
+
clonedChild.setAttribute("rx", (width / 2).toString());
|
|
78112
|
+
clonedChild.setAttribute("ry", (height / 2).toString());
|
|
78113
|
+
} else if (clonedChild.tagName === "circle") {
|
|
78114
|
+
if (width !== height) {
|
|
78115
|
+
const ellipse = document.createElementNS("http://www.w3.org/2000/svg", "ellipse");
|
|
78116
|
+
ellipse.setAttribute("cx", (width / 2).toString());
|
|
78117
|
+
ellipse.setAttribute("cy", (height / 2).toString());
|
|
78118
|
+
ellipse.setAttribute("rx", (width / 2).toString());
|
|
78119
|
+
ellipse.setAttribute("ry", (height / 2).toString());
|
|
78120
|
+
Array.from(clonedChild.attributes).forEach((attr) => {
|
|
78121
|
+
if (!["cx", "cy", "r"].includes(attr.name)) {
|
|
78122
|
+
ellipse.setAttribute(attr.name, attr.value);
|
|
78123
|
+
}
|
|
78124
|
+
});
|
|
78125
|
+
g.appendChild(ellipse);
|
|
78126
|
+
return;
|
|
78127
|
+
} else {
|
|
78128
|
+
clonedChild.setAttribute("cx", (width / 2).toString());
|
|
78129
|
+
clonedChild.setAttribute("cy", (height / 2).toString());
|
|
78130
|
+
clonedChild.setAttribute("r", (width / 2).toString());
|
|
78131
|
+
}
|
|
78132
|
+
} else if (clonedChild.tagName === "rect") {
|
|
78133
|
+
clonedChild.setAttribute("width", width.toString());
|
|
78134
|
+
clonedChild.setAttribute("height", height.toString());
|
|
78135
|
+
} else if (clonedChild.tagName === "path" && svgElement.hasAttribute("viewBox")) {
|
|
78136
|
+
const viewBox = svgElement.getAttribute("viewBox").split(" ").map(Number);
|
|
78137
|
+
if (viewBox.length === 4) {
|
|
78138
|
+
const [, , vbWidth, vbHeight] = viewBox;
|
|
78139
|
+
const scaleX = width / vbWidth;
|
|
78140
|
+
const scaleY = height / vbHeight;
|
|
78141
|
+
if (scaleX !== 1 || scaleY !== 1) {
|
|
78142
|
+
const pathTransform = `scale(${scaleX}, ${scaleY})`;
|
|
78143
|
+
const existingTransform = clonedChild.getAttribute("transform");
|
|
78144
|
+
clonedChild.setAttribute(
|
|
78145
|
+
"transform",
|
|
78146
|
+
existingTransform ? `${existingTransform} ${pathTransform}` : pathTransform
|
|
78147
|
+
);
|
|
78148
|
+
}
|
|
78149
|
+
}
|
|
78150
|
+
} else if (clonedChild.hasAttribute("width")) {
|
|
78151
|
+
clonedChild.setAttribute("width", width.toString());
|
|
78152
|
+
}
|
|
78153
|
+
if (clonedChild.hasAttribute("height") && clonedChild.tagName !== "ellipse") {
|
|
78154
|
+
clonedChild.setAttribute("height", height.toString());
|
|
78155
|
+
}
|
|
78156
|
+
g.appendChild(clonedChild);
|
|
78157
|
+
});
|
|
78158
|
+
}
|
|
78159
|
+
}
|
|
78160
|
+
} catch (error) {
|
|
78161
|
+
console.warn("Failed to generate shape SVG:", error);
|
|
78162
|
+
const rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
78163
|
+
rect.setAttribute("width", width.toString());
|
|
78164
|
+
rect.setAttribute("height", height.toString());
|
|
78165
|
+
rect.setAttribute("fill", fillColor);
|
|
78166
|
+
rect.setAttribute("stroke", strokeColor);
|
|
78167
|
+
rect.setAttribute("stroke-width", strokeWidth.toString());
|
|
78168
|
+
g.appendChild(rect);
|
|
78169
|
+
}
|
|
78170
|
+
return g;
|
|
78171
|
+
}
|
|
78172
|
+
buildView() {
|
|
78173
|
+
const { element: element2 } = this.createElement();
|
|
78174
|
+
this.root = element2;
|
|
78175
|
+
}
|
|
78176
|
+
update() {
|
|
78177
|
+
return false;
|
|
78178
|
+
}
|
|
78179
|
+
}
|
|
78180
|
+
const ShapeGroup = Node$1.create({
|
|
78181
|
+
name: "shapeGroup",
|
|
78182
|
+
group: "inline",
|
|
78183
|
+
inline: true,
|
|
78184
|
+
atom: true,
|
|
78185
|
+
addOptions() {
|
|
78186
|
+
return {
|
|
78187
|
+
htmlAttributes: {
|
|
78188
|
+
contenteditable: false
|
|
78189
|
+
}
|
|
78190
|
+
};
|
|
78191
|
+
},
|
|
78192
|
+
addAttributes() {
|
|
78193
|
+
return {
|
|
78194
|
+
groupTransform: {
|
|
78195
|
+
default: {},
|
|
78196
|
+
renderDOM: () => ({})
|
|
78197
|
+
},
|
|
78198
|
+
shapes: {
|
|
78199
|
+
default: [],
|
|
78200
|
+
renderDOM: () => ({})
|
|
78201
|
+
},
|
|
78202
|
+
size: {
|
|
78203
|
+
default: null,
|
|
78204
|
+
renderDOM: (attrs) => {
|
|
78205
|
+
if (!attrs.size) return {};
|
|
78206
|
+
const sizeData = {};
|
|
78207
|
+
if (attrs.size.width) sizeData["data-width"] = attrs.size.width;
|
|
78208
|
+
if (attrs.size.height) sizeData["data-height"] = attrs.size.height;
|
|
78209
|
+
return sizeData;
|
|
78210
|
+
}
|
|
78211
|
+
},
|
|
78212
|
+
padding: {
|
|
78213
|
+
default: null,
|
|
78214
|
+
renderDOM: (attrs) => {
|
|
78215
|
+
if (!attrs.padding) return {};
|
|
78216
|
+
const paddingData = {};
|
|
78217
|
+
if (attrs.padding.top != null) paddingData["data-padding-top"] = attrs.padding.top;
|
|
78218
|
+
if (attrs.padding.right != null) paddingData["data-padding-right"] = attrs.padding.right;
|
|
78219
|
+
if (attrs.padding.bottom != null) paddingData["data-padding-bottom"] = attrs.padding.bottom;
|
|
78220
|
+
if (attrs.padding.left != null) paddingData["data-padding-left"] = attrs.padding.left;
|
|
78221
|
+
return paddingData;
|
|
78222
|
+
}
|
|
78223
|
+
},
|
|
78224
|
+
marginOffset: {
|
|
78225
|
+
default: null,
|
|
78226
|
+
renderDOM: (attrs) => {
|
|
78227
|
+
if (!attrs.marginOffset) return {};
|
|
78228
|
+
const offsetData = {};
|
|
78229
|
+
if (attrs.marginOffset.horizontal != null) offsetData["data-offset-x"] = attrs.marginOffset.horizontal;
|
|
78230
|
+
if (attrs.marginOffset.top != null) offsetData["data-offset-y"] = attrs.marginOffset.top;
|
|
78231
|
+
return offsetData;
|
|
78232
|
+
}
|
|
78233
|
+
},
|
|
78234
|
+
drawingContent: {
|
|
78235
|
+
rendered: false
|
|
78236
|
+
}
|
|
78237
|
+
};
|
|
78238
|
+
},
|
|
78239
|
+
parseDOM() {
|
|
78240
|
+
return false;
|
|
78241
|
+
},
|
|
78242
|
+
renderDOM({ htmlAttributes }) {
|
|
78243
|
+
return ["div", Attribute.mergeAttributes(this.options.htmlAttributes, htmlAttributes, { "data-shape-group": "" })];
|
|
78244
|
+
},
|
|
78245
|
+
addNodeView() {
|
|
78246
|
+
return (props) => {
|
|
78247
|
+
return new ShapeGroupView({ ...props });
|
|
78248
|
+
};
|
|
78249
|
+
}
|
|
78250
|
+
});
|
|
77826
78251
|
const TextStyle = Mark.create({
|
|
77827
78252
|
name: "textStyle",
|
|
77828
78253
|
addOptions() {
|
|
@@ -79372,7 +79797,7 @@ ${l}
|
|
|
79372
79797
|
}
|
|
79373
79798
|
var _ref = isElement$2$1(element2) ? getWindow$1(element2) : window, visualViewport = _ref.visualViewport;
|
|
79374
79799
|
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
79375
|
-
var
|
|
79800
|
+
var x2 = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
79376
79801
|
var y2 = (clientRect2.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
79377
79802
|
var width = clientRect2.width / scaleX;
|
|
79378
79803
|
var height = clientRect2.height / scaleY;
|
|
@@ -79380,10 +79805,10 @@ ${l}
|
|
|
79380
79805
|
width,
|
|
79381
79806
|
height,
|
|
79382
79807
|
top: y2,
|
|
79383
|
-
right:
|
|
79808
|
+
right: x2 + width,
|
|
79384
79809
|
bottom: y2 + height,
|
|
79385
|
-
left:
|
|
79386
|
-
x,
|
|
79810
|
+
left: x2,
|
|
79811
|
+
x: x2,
|
|
79387
79812
|
y: y2
|
|
79388
79813
|
};
|
|
79389
79814
|
}
|
|
@@ -79584,25 +80009,25 @@ ${l}
|
|
|
79584
80009
|
left: "auto"
|
|
79585
80010
|
};
|
|
79586
80011
|
function roundOffsetsByDPR(_ref, win) {
|
|
79587
|
-
var
|
|
80012
|
+
var x2 = _ref.x, y2 = _ref.y;
|
|
79588
80013
|
var dpr = win.devicePixelRatio || 1;
|
|
79589
80014
|
return {
|
|
79590
|
-
x: round$1(
|
|
80015
|
+
x: round$1(x2 * dpr) / dpr || 0,
|
|
79591
80016
|
y: round$1(y2 * dpr) / dpr || 0
|
|
79592
80017
|
};
|
|
79593
80018
|
}
|
|
79594
80019
|
function mapToStyles(_ref2) {
|
|
79595
80020
|
var _Object$assign2;
|
|
79596
80021
|
var popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position2 = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
|
|
79597
|
-
var _offsets$x = offsets.x,
|
|
80022
|
+
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;
|
|
79598
80023
|
var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
|
|
79599
|
-
x,
|
|
80024
|
+
x: x2,
|
|
79600
80025
|
y: y2
|
|
79601
80026
|
}) : {
|
|
79602
|
-
x,
|
|
80027
|
+
x: x2,
|
|
79603
80028
|
y: y2
|
|
79604
80029
|
};
|
|
79605
|
-
|
|
80030
|
+
x2 = _ref3.x;
|
|
79606
80031
|
y2 = _ref3.y;
|
|
79607
80032
|
var hasX = offsets.hasOwnProperty("x");
|
|
79608
80033
|
var hasY = offsets.hasOwnProperty("y");
|
|
@@ -79636,27 +80061,27 @@ ${l}
|
|
|
79636
80061
|
// $FlowFixMe[prop-missing]
|
|
79637
80062
|
offsetParent[widthProp]
|
|
79638
80063
|
);
|
|
79639
|
-
|
|
79640
|
-
|
|
80064
|
+
x2 -= offsetX - popperRect.width;
|
|
80065
|
+
x2 *= gpuAcceleration ? 1 : -1;
|
|
79641
80066
|
}
|
|
79642
80067
|
}
|
|
79643
80068
|
var commonStyles = Object.assign({
|
|
79644
80069
|
position: position2
|
|
79645
80070
|
}, adaptive && unsetSides);
|
|
79646
80071
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
79647
|
-
x,
|
|
80072
|
+
x: x2,
|
|
79648
80073
|
y: y2
|
|
79649
80074
|
}, getWindow$1(popper2)) : {
|
|
79650
|
-
x,
|
|
80075
|
+
x: x2,
|
|
79651
80076
|
y: y2
|
|
79652
80077
|
};
|
|
79653
|
-
|
|
80078
|
+
x2 = _ref4.x;
|
|
79654
80079
|
y2 = _ref4.y;
|
|
79655
80080
|
if (gpuAcceleration) {
|
|
79656
80081
|
var _Object$assign;
|
|
79657
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" +
|
|
80082
|
+
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));
|
|
79658
80083
|
}
|
|
79659
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ?
|
|
80084
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x2 + "px" : "", _Object$assign2.transform = "", _Object$assign2));
|
|
79660
80085
|
}
|
|
79661
80086
|
function computeStyles(_ref5) {
|
|
79662
80087
|
var state2 = _ref5.state, options = _ref5.options;
|
|
@@ -79770,21 +80195,21 @@ ${l}
|
|
|
79770
80195
|
var visualViewport = win.visualViewport;
|
|
79771
80196
|
var width = html2.clientWidth;
|
|
79772
80197
|
var height = html2.clientHeight;
|
|
79773
|
-
var
|
|
80198
|
+
var x2 = 0;
|
|
79774
80199
|
var y2 = 0;
|
|
79775
80200
|
if (visualViewport) {
|
|
79776
80201
|
width = visualViewport.width;
|
|
79777
80202
|
height = visualViewport.height;
|
|
79778
80203
|
var layoutViewport = isLayoutViewport();
|
|
79779
80204
|
if (layoutViewport || !layoutViewport && strategy === "fixed") {
|
|
79780
|
-
|
|
80205
|
+
x2 = visualViewport.offsetLeft;
|
|
79781
80206
|
y2 = visualViewport.offsetTop;
|
|
79782
80207
|
}
|
|
79783
80208
|
}
|
|
79784
80209
|
return {
|
|
79785
80210
|
width,
|
|
79786
80211
|
height,
|
|
79787
|
-
x:
|
|
80212
|
+
x: x2 + getWindowScrollBarX$1(element2),
|
|
79788
80213
|
y: y2
|
|
79789
80214
|
};
|
|
79790
80215
|
}
|
|
@@ -79795,15 +80220,15 @@ ${l}
|
|
|
79795
80220
|
var body = (_element$ownerDocumen = element2.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
79796
80221
|
var width = max$1(html2.scrollWidth, html2.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
79797
80222
|
var height = max$1(html2.scrollHeight, html2.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
79798
|
-
var
|
|
80223
|
+
var x2 = -winScroll.scrollLeft + getWindowScrollBarX$1(element2);
|
|
79799
80224
|
var y2 = -winScroll.scrollTop;
|
|
79800
80225
|
if (getComputedStyle$2(body || html2).direction === "rtl") {
|
|
79801
|
-
|
|
80226
|
+
x2 += max$1(html2.clientWidth, body ? body.clientWidth : 0) - width;
|
|
79802
80227
|
}
|
|
79803
80228
|
return {
|
|
79804
80229
|
width,
|
|
79805
80230
|
height,
|
|
79806
|
-
x,
|
|
80231
|
+
x: x2,
|
|
79807
80232
|
y: y2
|
|
79808
80233
|
};
|
|
79809
80234
|
}
|
|
@@ -80180,9 +80605,9 @@ ${l}
|
|
|
80180
80605
|
acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
|
|
80181
80606
|
return acc;
|
|
80182
80607
|
}, {});
|
|
80183
|
-
var _data$state$placement = data[state2.placement],
|
|
80608
|
+
var _data$state$placement = data[state2.placement], x2 = _data$state$placement.x, y2 = _data$state$placement.y;
|
|
80184
80609
|
if (state2.modifiersData.popperOffsets != null) {
|
|
80185
|
-
state2.modifiersData.popperOffsets.x +=
|
|
80610
|
+
state2.modifiersData.popperOffsets.x += x2;
|
|
80186
80611
|
state2.modifiersData.popperOffsets.y += y2;
|
|
80187
80612
|
}
|
|
80188
80613
|
state2.modifiersData[name] = data;
|
|
@@ -82133,7 +82558,7 @@ ${l}
|
|
|
82133
82558
|
}
|
|
82134
82559
|
function rectToClientRect(rect) {
|
|
82135
82560
|
const {
|
|
82136
|
-
x,
|
|
82561
|
+
x: x2,
|
|
82137
82562
|
y: y2,
|
|
82138
82563
|
width,
|
|
82139
82564
|
height
|
|
@@ -82142,10 +82567,10 @@ ${l}
|
|
|
82142
82567
|
width,
|
|
82143
82568
|
height,
|
|
82144
82569
|
top: y2,
|
|
82145
|
-
left:
|
|
82146
|
-
right:
|
|
82570
|
+
left: x2,
|
|
82571
|
+
right: x2 + width,
|
|
82147
82572
|
bottom: y2 + height,
|
|
82148
|
-
x,
|
|
82573
|
+
x: x2,
|
|
82149
82574
|
y: y2
|
|
82150
82575
|
};
|
|
82151
82576
|
}
|
|
@@ -82219,7 +82644,7 @@ ${l}
|
|
|
82219
82644
|
strategy
|
|
82220
82645
|
});
|
|
82221
82646
|
let {
|
|
82222
|
-
x,
|
|
82647
|
+
x: x2,
|
|
82223
82648
|
y: y2
|
|
82224
82649
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
82225
82650
|
let statefulPlacement = placement;
|
|
@@ -82236,7 +82661,7 @@ ${l}
|
|
|
82236
82661
|
data,
|
|
82237
82662
|
reset
|
|
82238
82663
|
} = await fn2({
|
|
82239
|
-
x,
|
|
82664
|
+
x: x2,
|
|
82240
82665
|
y: y2,
|
|
82241
82666
|
initialPlacement: placement,
|
|
82242
82667
|
placement: statefulPlacement,
|
|
@@ -82249,7 +82674,7 @@ ${l}
|
|
|
82249
82674
|
floating
|
|
82250
82675
|
}
|
|
82251
82676
|
});
|
|
82252
|
-
|
|
82677
|
+
x2 = nextX != null ? nextX : x2;
|
|
82253
82678
|
y2 = nextY != null ? nextY : y2;
|
|
82254
82679
|
middlewareData = {
|
|
82255
82680
|
...middlewareData,
|
|
@@ -82272,7 +82697,7 @@ ${l}
|
|
|
82272
82697
|
}) : reset.rects;
|
|
82273
82698
|
}
|
|
82274
82699
|
({
|
|
82275
|
-
x,
|
|
82700
|
+
x: x2,
|
|
82276
82701
|
y: y2
|
|
82277
82702
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
82278
82703
|
}
|
|
@@ -82280,7 +82705,7 @@ ${l}
|
|
|
82280
82705
|
}
|
|
82281
82706
|
}
|
|
82282
82707
|
return {
|
|
82283
|
-
x,
|
|
82708
|
+
x: x2,
|
|
82284
82709
|
y: y2,
|
|
82285
82710
|
placement: statefulPlacement,
|
|
82286
82711
|
strategy,
|
|
@@ -82293,7 +82718,7 @@ ${l}
|
|
|
82293
82718
|
options = {};
|
|
82294
82719
|
}
|
|
82295
82720
|
const {
|
|
82296
|
-
x,
|
|
82721
|
+
x: x2,
|
|
82297
82722
|
y: y2,
|
|
82298
82723
|
platform: platform2,
|
|
82299
82724
|
rects,
|
|
@@ -82317,7 +82742,7 @@ ${l}
|
|
|
82317
82742
|
strategy
|
|
82318
82743
|
}));
|
|
82319
82744
|
const rect = elementContext === "floating" ? {
|
|
82320
|
-
x,
|
|
82745
|
+
x: x2,
|
|
82321
82746
|
y: y2,
|
|
82322
82747
|
width: rects.floating.width,
|
|
82323
82748
|
height: rects.floating.height
|
|
@@ -82586,16 +83011,16 @@ ${l}
|
|
|
82586
83011
|
height,
|
|
82587
83012
|
$: $2
|
|
82588
83013
|
} = getCssDimensions(domElement);
|
|
82589
|
-
let
|
|
83014
|
+
let x2 = ($2 ? round(rect.width) : rect.width) / width;
|
|
82590
83015
|
let y2 = ($2 ? round(rect.height) : rect.height) / height;
|
|
82591
|
-
if (!
|
|
82592
|
-
|
|
83016
|
+
if (!x2 || !Number.isFinite(x2)) {
|
|
83017
|
+
x2 = 1;
|
|
82593
83018
|
}
|
|
82594
83019
|
if (!y2 || !Number.isFinite(y2)) {
|
|
82595
83020
|
y2 = 1;
|
|
82596
83021
|
}
|
|
82597
83022
|
return {
|
|
82598
|
-
x,
|
|
83023
|
+
x: x2,
|
|
82599
83024
|
y: y2
|
|
82600
83025
|
};
|
|
82601
83026
|
}
|
|
@@ -82639,7 +83064,7 @@ ${l}
|
|
|
82639
83064
|
}
|
|
82640
83065
|
}
|
|
82641
83066
|
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
82642
|
-
let
|
|
83067
|
+
let x2 = (clientRect2.left + visualOffsets.x) / scale.x;
|
|
82643
83068
|
let y2 = (clientRect2.top + visualOffsets.y) / scale.y;
|
|
82644
83069
|
let width = clientRect2.width / scale.x;
|
|
82645
83070
|
let height = clientRect2.height / scale.y;
|
|
@@ -82654,11 +83079,11 @@ ${l}
|
|
|
82654
83079
|
const css = getComputedStyle$1(currentIFrame);
|
|
82655
83080
|
const left2 = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
82656
83081
|
const top2 = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
82657
|
-
|
|
83082
|
+
x2 *= iframeScale.x;
|
|
82658
83083
|
y2 *= iframeScale.y;
|
|
82659
83084
|
width *= iframeScale.x;
|
|
82660
83085
|
height *= iframeScale.y;
|
|
82661
|
-
|
|
83086
|
+
x2 += left2;
|
|
82662
83087
|
y2 += top2;
|
|
82663
83088
|
currentWin = getWindow(currentIFrame);
|
|
82664
83089
|
currentIFrame = getFrameElement(currentWin);
|
|
@@ -82667,7 +83092,7 @@ ${l}
|
|
|
82667
83092
|
return rectToClientRect({
|
|
82668
83093
|
width,
|
|
82669
83094
|
height,
|
|
82670
|
-
x,
|
|
83095
|
+
x: x2,
|
|
82671
83096
|
y: y2
|
|
82672
83097
|
});
|
|
82673
83098
|
}
|
|
@@ -82680,10 +83105,10 @@ ${l}
|
|
|
82680
83105
|
}
|
|
82681
83106
|
function getHTMLOffset(documentElement, scroll) {
|
|
82682
83107
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
82683
|
-
const
|
|
83108
|
+
const x2 = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
82684
83109
|
const y2 = htmlRect.top + scroll.scrollTop;
|
|
82685
83110
|
return {
|
|
82686
|
-
x,
|
|
83111
|
+
x: x2,
|
|
82687
83112
|
y: y2
|
|
82688
83113
|
};
|
|
82689
83114
|
}
|
|
@@ -82735,15 +83160,15 @@ ${l}
|
|
|
82735
83160
|
const body = element2.ownerDocument.body;
|
|
82736
83161
|
const width = max$3(html2.scrollWidth, html2.clientWidth, body.scrollWidth, body.clientWidth);
|
|
82737
83162
|
const height = max$3(html2.scrollHeight, html2.clientHeight, body.scrollHeight, body.clientHeight);
|
|
82738
|
-
let
|
|
83163
|
+
let x2 = -scroll.scrollLeft + getWindowScrollBarX(element2);
|
|
82739
83164
|
const y2 = -scroll.scrollTop;
|
|
82740
83165
|
if (getComputedStyle$1(body).direction === "rtl") {
|
|
82741
|
-
|
|
83166
|
+
x2 += max$3(html2.clientWidth, body.clientWidth) - width;
|
|
82742
83167
|
}
|
|
82743
83168
|
return {
|
|
82744
83169
|
width,
|
|
82745
83170
|
height,
|
|
82746
|
-
x,
|
|
83171
|
+
x: x2,
|
|
82747
83172
|
y: y2
|
|
82748
83173
|
};
|
|
82749
83174
|
}
|
|
@@ -82754,14 +83179,14 @@ ${l}
|
|
|
82754
83179
|
const visualViewport = win.visualViewport;
|
|
82755
83180
|
let width = html2.clientWidth;
|
|
82756
83181
|
let height = html2.clientHeight;
|
|
82757
|
-
let
|
|
83182
|
+
let x2 = 0;
|
|
82758
83183
|
let y2 = 0;
|
|
82759
83184
|
if (visualViewport) {
|
|
82760
83185
|
width = visualViewport.width;
|
|
82761
83186
|
height = visualViewport.height;
|
|
82762
83187
|
const visualViewportBased = isWebKit();
|
|
82763
83188
|
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
82764
|
-
|
|
83189
|
+
x2 = visualViewport.offsetLeft;
|
|
82765
83190
|
y2 = visualViewport.offsetTop;
|
|
82766
83191
|
}
|
|
82767
83192
|
}
|
|
@@ -82781,7 +83206,7 @@ ${l}
|
|
|
82781
83206
|
return {
|
|
82782
83207
|
width,
|
|
82783
83208
|
height,
|
|
82784
|
-
x,
|
|
83209
|
+
x: x2,
|
|
82785
83210
|
y: y2
|
|
82786
83211
|
};
|
|
82787
83212
|
}
|
|
@@ -82793,12 +83218,12 @@ ${l}
|
|
|
82793
83218
|
const scale = isHTMLElement$2(element2) ? getScale(element2) : createCoords(1);
|
|
82794
83219
|
const width = element2.clientWidth * scale.x;
|
|
82795
83220
|
const height = element2.clientHeight * scale.y;
|
|
82796
|
-
const
|
|
83221
|
+
const x2 = left2 * scale.x;
|
|
82797
83222
|
const y2 = top2 * scale.y;
|
|
82798
83223
|
return {
|
|
82799
83224
|
width,
|
|
82800
83225
|
height,
|
|
82801
|
-
x,
|
|
83226
|
+
x: x2,
|
|
82802
83227
|
y: y2
|
|
82803
83228
|
};
|
|
82804
83229
|
}
|
|
@@ -82918,10 +83343,10 @@ ${l}
|
|
|
82918
83343
|
setLeftRTLScrollbarOffset();
|
|
82919
83344
|
}
|
|
82920
83345
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
82921
|
-
const
|
|
83346
|
+
const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
82922
83347
|
const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
82923
83348
|
return {
|
|
82924
|
-
x,
|
|
83349
|
+
x: x2,
|
|
82925
83350
|
y: y2,
|
|
82926
83351
|
width: rect.width,
|
|
82927
83352
|
height: rect.height
|
|
@@ -83172,6 +83597,10 @@ ${l}
|
|
|
83172
83597
|
};
|
|
83173
83598
|
},
|
|
83174
83599
|
addCommands() {
|
|
83600
|
+
const editor = this.editor;
|
|
83601
|
+
if (isHeadless(editor)) {
|
|
83602
|
+
return {};
|
|
83603
|
+
}
|
|
83175
83604
|
return {
|
|
83176
83605
|
insertPageBreak: () => ({ commands: commands2 }) => {
|
|
83177
83606
|
return commands2.insertContent({
|
|
@@ -83182,20 +83611,26 @@ ${l}
|
|
|
83182
83611
|
* Toggle pagination on/off
|
|
83183
83612
|
* @returns {void}
|
|
83184
83613
|
*/
|
|
83185
|
-
togglePagination: () => ({ tr, state: state2, dispatch, editor }) => {
|
|
83614
|
+
togglePagination: () => ({ tr, state: state2, dispatch, editor: editor2 }) => {
|
|
83186
83615
|
const isEnabled = PaginationPluginKey.getState(state2)?.isEnabled;
|
|
83187
83616
|
tr.setMeta(PaginationPluginKey, { isEnabled: !isEnabled });
|
|
83188
83617
|
if (dispatch) {
|
|
83189
83618
|
dispatch(tr);
|
|
83190
|
-
|
|
83619
|
+
editor2.initDefaultStyles(editor2.element, !isEnabled);
|
|
83191
83620
|
return true;
|
|
83192
83621
|
}
|
|
83193
83622
|
}
|
|
83194
83623
|
};
|
|
83195
83624
|
},
|
|
83196
83625
|
addShortcuts() {
|
|
83626
|
+
const editor = this.editor;
|
|
83627
|
+
if (isHeadless(editor)) {
|
|
83628
|
+
return {};
|
|
83629
|
+
}
|
|
83197
83630
|
return {
|
|
83198
|
-
"Mod-Enter": () =>
|
|
83631
|
+
"Mod-Enter": () => {
|
|
83632
|
+
return editor.commands.insertPageBreak();
|
|
83633
|
+
}
|
|
83199
83634
|
};
|
|
83200
83635
|
},
|
|
83201
83636
|
/**
|
|
@@ -83203,6 +83638,9 @@ ${l}
|
|
|
83203
83638
|
*/
|
|
83204
83639
|
addPmPlugins() {
|
|
83205
83640
|
const editor = this.editor;
|
|
83641
|
+
if (isHeadless(editor)) {
|
|
83642
|
+
return [];
|
|
83643
|
+
}
|
|
83206
83644
|
let isUpdating = false;
|
|
83207
83645
|
let shouldUpdate = false;
|
|
83208
83646
|
let hasInitialized = false;
|
|
@@ -83218,7 +83656,7 @@ ${l}
|
|
|
83218
83656
|
isReadyToInit: false,
|
|
83219
83657
|
decorations: DecorationSet.empty,
|
|
83220
83658
|
isDebugging,
|
|
83221
|
-
isEnabled: editor.options.pagination
|
|
83659
|
+
isEnabled: editor.options.pagination && !isHeadless(editor)
|
|
83222
83660
|
};
|
|
83223
83661
|
},
|
|
83224
83662
|
apply(tr, oldState, prevEditorState, newEditorState) {
|
|
@@ -83296,6 +83734,7 @@ ${l}
|
|
|
83296
83734
|
let previousDecorations = DecorationSet.empty;
|
|
83297
83735
|
return {
|
|
83298
83736
|
update: (view) => {
|
|
83737
|
+
if (isHeadless(editor)) return;
|
|
83299
83738
|
if (!PaginationPluginKey.getState(view.state)?.isEnabled) return;
|
|
83300
83739
|
if (!shouldUpdate || isUpdating) return;
|
|
83301
83740
|
const performPaginationUpdate = () => {
|
|
@@ -83319,6 +83758,7 @@ ${l}
|
|
|
83319
83758
|
},
|
|
83320
83759
|
props: {
|
|
83321
83760
|
decorations(state2) {
|
|
83761
|
+
if (isHeadless(editor)) return DecorationSet.empty;
|
|
83322
83762
|
const pluginState = PaginationPluginKey.getState(state2);
|
|
83323
83763
|
return pluginState.isEnabled ? pluginState.decorations : DecorationSet.empty;
|
|
83324
83764
|
}
|
|
@@ -83687,7 +84127,7 @@ ${l}
|
|
|
83687
84127
|
return void 0;
|
|
83688
84128
|
};
|
|
83689
84129
|
const onHeaderFooterDblClick = (editor, currentFocusedSectionEditor) => {
|
|
83690
|
-
if (editor.options.documentMode !== "editing") return;
|
|
84130
|
+
if (isHeadless(editor) || editor.options.documentMode !== "editing") return;
|
|
83691
84131
|
editor.setEditable(false, false);
|
|
83692
84132
|
toggleHeaderFooterEditMode({
|
|
83693
84133
|
editor,
|
|
@@ -83759,6 +84199,7 @@ ${l}
|
|
|
83759
84199
|
return actualBreak;
|
|
83760
84200
|
}
|
|
83761
84201
|
const onImageLoad = (editor) => {
|
|
84202
|
+
if (isHeadless(editor)) return;
|
|
83762
84203
|
if (typeof requestAnimationFrame !== "function") return;
|
|
83763
84204
|
requestAnimationFrame(() => {
|
|
83764
84205
|
const newTr = editor.view.state.tr;
|
|
@@ -83784,22 +84225,22 @@ ${l}
|
|
|
83784
84225
|
const rect = elements.reference.getBoundingClientRect();
|
|
83785
84226
|
const containerRect = editorElement.getBoundingClientRect();
|
|
83786
84227
|
const scaleFactor = getScaleFactor(editorElement);
|
|
83787
|
-
const
|
|
84228
|
+
const x2 = Math.round((rect.left - containerRect.left) / scaleFactor);
|
|
83788
84229
|
const y2 = Math.round((rect.top - containerRect.top) / scaleFactor);
|
|
83789
84230
|
const width = Math.round(rect.width / scaleFactor);
|
|
83790
84231
|
const height = Math.round(rect.height / scaleFactor);
|
|
83791
84232
|
return {
|
|
83792
|
-
x,
|
|
84233
|
+
x: x2,
|
|
83793
84234
|
y: y2,
|
|
83794
84235
|
data: { width, height }
|
|
83795
84236
|
};
|
|
83796
84237
|
}
|
|
83797
84238
|
}
|
|
83798
84239
|
]
|
|
83799
|
-
}).then(({ x, y: y2, middlewareData }) => {
|
|
84240
|
+
}).then(({ x: x2, y: y2, middlewareData }) => {
|
|
83800
84241
|
Object.assign(floatingSeparator.style, {
|
|
83801
84242
|
top: `${y2}px`,
|
|
83802
|
-
left: `${
|
|
84243
|
+
left: `${x2}px`,
|
|
83803
84244
|
width: `${middlewareData.copy.width}px`,
|
|
83804
84245
|
height: `${middlewareData.copy.height}px`,
|
|
83805
84246
|
visibility: middlewareData.hide?.referenceHidden ? "hidden" : "visible"
|
|
@@ -84063,6 +84504,7 @@ ${l}
|
|
|
84063
84504
|
}
|
|
84064
84505
|
}
|
|
84065
84506
|
const TextContentCache = /* @__PURE__ */ new WeakMap();
|
|
84507
|
+
const transparentInlineNodes = /* @__PURE__ */ new Set(["run", "bookmarkStart"]);
|
|
84066
84508
|
function textContent(node2) {
|
|
84067
84509
|
let cached = TextContentCache.get(node2);
|
|
84068
84510
|
if (cached) return cached;
|
|
@@ -84071,7 +84513,7 @@ ${l}
|
|
|
84071
84513
|
let child = node2.child(i2);
|
|
84072
84514
|
if (child.isText) content2 += child.text;
|
|
84073
84515
|
else if (child.isLeaf) content2 += "";
|
|
84074
|
-
else if (child.type && child.type.name
|
|
84516
|
+
else if (child.type && transparentInlineNodes.has(child.type.name)) content2 += textContent(child);
|
|
84075
84517
|
else content2 += " " + textContent(child) + " ";
|
|
84076
84518
|
}
|
|
84077
84519
|
TextContentCache.set(node2, content2);
|
|
@@ -84079,26 +84521,49 @@ ${l}
|
|
|
84079
84521
|
}
|
|
84080
84522
|
function mapIndexToDocPos(node2, start2, index2) {
|
|
84081
84523
|
if (index2 <= 0) return start2;
|
|
84082
|
-
const
|
|
84083
|
-
if (index2 >=
|
|
84084
|
-
|
|
84085
|
-
|
|
84086
|
-
|
|
84087
|
-
|
|
84088
|
-
|
|
84089
|
-
|
|
84090
|
-
const
|
|
84091
|
-
|
|
84092
|
-
|
|
84093
|
-
|
|
84094
|
-
return
|
|
84524
|
+
const fullTextLength = textContent(node2).length;
|
|
84525
|
+
if (index2 >= fullTextLength) return start2 + node2.content.size;
|
|
84526
|
+
return mapIndexWithinNode(node2, start2, index2);
|
|
84527
|
+
}
|
|
84528
|
+
function mapIndexWithinNode(node2, start2, index2) {
|
|
84529
|
+
if (index2 <= 0) return start2;
|
|
84530
|
+
let offset2 = start2;
|
|
84531
|
+
for (let i2 = 0; i2 < node2.childCount; i2++) {
|
|
84532
|
+
const child = node2.child(i2);
|
|
84533
|
+
const childStart = offset2;
|
|
84534
|
+
if (child.isText) {
|
|
84535
|
+
const len2 = child.text.length;
|
|
84536
|
+
if (index2 <= len2) return childStart + index2;
|
|
84537
|
+
index2 -= len2;
|
|
84538
|
+
offset2 += child.nodeSize;
|
|
84539
|
+
continue;
|
|
84095
84540
|
}
|
|
84096
|
-
|
|
84097
|
-
|
|
84098
|
-
|
|
84099
|
-
|
|
84541
|
+
if (child.isLeaf) {
|
|
84542
|
+
if (index2 <= 1) return childStart + Math.min(index2, 1);
|
|
84543
|
+
index2 -= 1;
|
|
84544
|
+
offset2 += child.nodeSize;
|
|
84545
|
+
continue;
|
|
84546
|
+
}
|
|
84547
|
+
const isTransparentInline = child.inlineContent && child.type && transparentInlineNodes.has(child.type.name);
|
|
84548
|
+
const innerTextLength = textContent(child).length;
|
|
84549
|
+
if (isTransparentInline) {
|
|
84550
|
+
if (index2 <= innerTextLength) return mapIndexWithinNode(child, childStart + 1, index2);
|
|
84551
|
+
index2 -= innerTextLength;
|
|
84552
|
+
offset2 += child.nodeSize;
|
|
84553
|
+
continue;
|
|
84554
|
+
}
|
|
84555
|
+
const contribution = innerTextLength + 2;
|
|
84556
|
+
const relativeIndex = index2 - 1;
|
|
84557
|
+
if (relativeIndex < 0) return childStart;
|
|
84558
|
+
if (relativeIndex <= innerTextLength) {
|
|
84559
|
+
return mapIndexWithinNode(child, childStart + 1, relativeIndex);
|
|
84560
|
+
}
|
|
84561
|
+
if (relativeIndex === innerTextLength + 1) return childStart + child.nodeSize;
|
|
84562
|
+
index2 -= contribution;
|
|
84563
|
+
offset2 += child.nodeSize;
|
|
84564
|
+
}
|
|
84565
|
+
return start2 + node2.content.size;
|
|
84100
84566
|
}
|
|
84101
|
-
const transparentInlineNodes = /* @__PURE__ */ new Set(["run"]);
|
|
84102
84567
|
function scanTextblocks(node2, from2, to, f2, nodeStart = 0) {
|
|
84103
84568
|
const isTransparentInline = node2.inlineContent && node2.type && transparentInlineNodes.has(node2.type.name);
|
|
84104
84569
|
if (node2.inlineContent && !isTransparentInline) {
|
|
@@ -84574,9 +85039,9 @@ ${l}
|
|
|
84574
85039
|
return {};
|
|
84575
85040
|
},
|
|
84576
85041
|
addPmPlugins() {
|
|
84577
|
-
const
|
|
85042
|
+
const isHeadless2 = this.editor.options.isHeadless;
|
|
84578
85043
|
const hasDocument = typeof document !== "undefined";
|
|
84579
|
-
if (
|
|
85044
|
+
if (isHeadless2 || !hasDocument) return [];
|
|
84580
85045
|
return [nodeResizer(["image"], this.editor)];
|
|
84581
85046
|
}
|
|
84582
85047
|
});
|
|
@@ -84696,7 +85161,8 @@ ${l}
|
|
|
84696
85161
|
NodeResizer,
|
|
84697
85162
|
CustomSelection,
|
|
84698
85163
|
TextTransform,
|
|
84699
|
-
VectorShape
|
|
85164
|
+
VectorShape,
|
|
85165
|
+
ShapeGroup
|
|
84700
85166
|
];
|
|
84701
85167
|
};
|
|
84702
85168
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
@@ -86793,14 +87259,14 @@ ${unwrappedProps}
|
|
|
86793
87259
|
}
|
|
86794
87260
|
return viewMeasurer$1.getBoundingClientRect();
|
|
86795
87261
|
}
|
|
86796
|
-
function getPointRect$1(
|
|
87262
|
+
function getPointRect$1(x2, y2) {
|
|
86797
87263
|
const viewRect = ensureViewBoundingRect$1();
|
|
86798
87264
|
return {
|
|
86799
87265
|
top: y2,
|
|
86800
|
-
left:
|
|
87266
|
+
left: x2,
|
|
86801
87267
|
height: 0,
|
|
86802
87268
|
width: 0,
|
|
86803
|
-
right: viewRect.width -
|
|
87269
|
+
right: viewRect.width - x2,
|
|
86804
87270
|
bottom: viewRect.height - y2
|
|
86805
87271
|
};
|
|
86806
87272
|
}
|
|
@@ -87638,8 +88104,8 @@ ${style2}
|
|
|
87638
88104
|
if (follower === null)
|
|
87639
88105
|
return;
|
|
87640
88106
|
const target = VBinder.targetRef;
|
|
87641
|
-
const { x, y: y2, overlap } = props;
|
|
87642
|
-
const targetRect =
|
|
88107
|
+
const { x: x2, y: y2, overlap } = props;
|
|
88108
|
+
const targetRect = x2 !== void 0 && y2 !== void 0 ? getPointRect$1(x2, y2) : getRect$1(target);
|
|
87643
88109
|
follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
|
|
87644
88110
|
follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
|
|
87645
88111
|
const { width, minWidth, placement, internalShift, flip: flip2 } = props;
|
|
@@ -87809,8 +88275,8 @@ ${style2}
|
|
|
87809
88275
|
return ResizeObserverSize2;
|
|
87810
88276
|
})();
|
|
87811
88277
|
var DOMRectReadOnly$1 = (function() {
|
|
87812
|
-
function DOMRectReadOnly2(
|
|
87813
|
-
this.x =
|
|
88278
|
+
function DOMRectReadOnly2(x2, y2, width, height) {
|
|
88279
|
+
this.x = x2;
|
|
87814
88280
|
this.y = y2;
|
|
87815
88281
|
this.width = width;
|
|
87816
88282
|
this.height = height;
|
|
@@ -87821,8 +88287,8 @@ ${style2}
|
|
|
87821
88287
|
return freeze$1(this);
|
|
87822
88288
|
}
|
|
87823
88289
|
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
87824
|
-
var _a2 = this,
|
|
87825
|
-
return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
88290
|
+
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;
|
|
88291
|
+
return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
87826
88292
|
};
|
|
87827
88293
|
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
87828
88294
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
@@ -95868,7 +96334,7 @@ ${style2}
|
|
|
95868
96334
|
key: 0,
|
|
95869
96335
|
class: "linked-style-buttons"
|
|
95870
96336
|
};
|
|
95871
|
-
const _hoisted_2$8$1 = ["onClick", "onKeydown"];
|
|
96337
|
+
const _hoisted_2$8$1 = ["onClick", "onKeydown", "aria-label"];
|
|
95872
96338
|
const _sfc_main$c$1 = {
|
|
95873
96339
|
__name: "LinkedStyle",
|
|
95874
96340
|
props: {
|
|
@@ -95913,7 +96379,7 @@ ${style2}
|
|
|
95913
96379
|
moveToPreviousStyle(index2);
|
|
95914
96380
|
break;
|
|
95915
96381
|
case "Enter":
|
|
95916
|
-
|
|
96382
|
+
event.preventDefault();
|
|
95917
96383
|
select2(style2);
|
|
95918
96384
|
break;
|
|
95919
96385
|
}
|
|
@@ -95929,6 +96395,7 @@ ${style2}
|
|
|
95929
96395
|
class: normalizeClass(["style-item", { selected: __props.selectedOption === style2.id }]),
|
|
95930
96396
|
onClick: ($event) => select2(style2),
|
|
95931
96397
|
onKeydown: (event) => handleKeyDown2(event, index2, style2),
|
|
96398
|
+
"aria-label": `Linked style - ${style2.id}`,
|
|
95932
96399
|
ref_for: true,
|
|
95933
96400
|
ref_key: "styleRefs",
|
|
95934
96401
|
ref: styleRefs
|
|
@@ -95944,7 +96411,7 @@ ${style2}
|
|
|
95944
96411
|
};
|
|
95945
96412
|
}
|
|
95946
96413
|
};
|
|
95947
|
-
const LinkedStyle = /* @__PURE__ */ _export_sfc$1(_sfc_main$c$1, [["__scopeId", "data-v-
|
|
96414
|
+
const LinkedStyle = /* @__PURE__ */ _export_sfc$1(_sfc_main$c$1, [["__scopeId", "data-v-b53508a8"]]);
|
|
95948
96415
|
const _hoisted_1$a$1 = {
|
|
95949
96416
|
key: 0,
|
|
95950
96417
|
class: "link-title"
|
|
@@ -97664,11 +98131,15 @@ ${style2}
|
|
|
97664
98131
|
}
|
|
97665
98132
|
}
|
|
97666
98133
|
],
|
|
97667
|
-
onActivate: () => {
|
|
98134
|
+
onActivate: ({ linkedStyleMark }) => {
|
|
98135
|
+
const styles = getQuickFormatList(superToolbar.activeEditor);
|
|
98136
|
+
const selectedStyle = styles?.find((style2) => style2.id === linkedStyleMark?.attrs?.styleId);
|
|
98137
|
+
linkedStyles.label.value = selectedStyle && selectedStyle.id !== "Normal" ? selectedStyle.definition.attrs.name : toolbarTexts2.formatText;
|
|
97668
98138
|
linkedStyles.disabled.value = false;
|
|
97669
98139
|
},
|
|
97670
98140
|
onDeactivate: () => {
|
|
97671
98141
|
linkedStyles.disabled.value = true;
|
|
98142
|
+
linkedStyles.label.value = toolbarTexts2.formatText;
|
|
97672
98143
|
}
|
|
97673
98144
|
});
|
|
97674
98145
|
const renderIcon = (value, selectedValue) => {
|
|
@@ -98373,10 +98844,11 @@ ${style2}
|
|
|
98373
98844
|
item.setDisabled(!canRejectTrackedChanges);
|
|
98374
98845
|
}
|
|
98375
98846
|
if (item.name.value === "linkedStyles") {
|
|
98847
|
+
const linkedStyleMark = marks.find((mark2) => mark2.name === "styleId");
|
|
98376
98848
|
if (this.activeEditor && !getQuickFormatList(this.activeEditor).length) {
|
|
98377
98849
|
return item.deactivate();
|
|
98378
98850
|
} else {
|
|
98379
|
-
return item.activate();
|
|
98851
|
+
return item.activate({ linkedStyleMark });
|
|
98380
98852
|
}
|
|
98381
98853
|
}
|
|
98382
98854
|
const rawActiveMark = marks.find((mark2) => mark2.name === item.name.value);
|
|
@@ -99715,7 +100187,7 @@ ${style2}
|
|
|
99715
100187
|
}
|
|
99716
100188
|
};
|
|
99717
100189
|
function adjustPaginationBreaks(editorElem, editor) {
|
|
99718
|
-
if (!editorElem.value || !editor?.value?.options?.scale) return;
|
|
100190
|
+
if (!editorElem.value || !editor?.value?.options?.scale || isHeadless(editor)) return;
|
|
99719
100191
|
const zoom = editor.value.options.scale;
|
|
99720
100192
|
const bounds = editorElem.value.getBoundingClientRect();
|
|
99721
100193
|
const breakNodes = editorElem.value.querySelectorAll(".pagination-break-wrapper");
|
|
@@ -100149,6 +100621,7 @@ ${style2}
|
|
|
100149
100621
|
...props.options
|
|
100150
100622
|
});
|
|
100151
100623
|
editor.value.on("paginationUpdate", () => {
|
|
100624
|
+
if (isHeadless(editor.value)) return;
|
|
100152
100625
|
adjustPaginationBreaks(editorElem, editor);
|
|
100153
100626
|
});
|
|
100154
100627
|
editor.value.on("collaborationReady", () => {
|
|
@@ -100307,7 +100780,7 @@ ${style2}
|
|
|
100307
100780
|
};
|
|
100308
100781
|
}
|
|
100309
100782
|
};
|
|
100310
|
-
const SuperEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1$1, [["__scopeId", "data-v-
|
|
100783
|
+
const SuperEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1$1, [["__scopeId", "data-v-cd3558fe"]]);
|
|
100311
100784
|
const _hoisted_1$h = ["innerHTML"];
|
|
100312
100785
|
const _sfc_main$i = {
|
|
100313
100786
|
__name: "SuperInput",
|
|
@@ -100910,8 +101383,8 @@ ${style2}
|
|
|
100910
101383
|
return array;
|
|
100911
101384
|
};
|
|
100912
101385
|
const BlankDOCX = "data:application/octet-stream;base64,UEsDBBQAAAAIAAAAIQAykW9XXgEAAKUFAAATABwAW0NvbnRlbnRfVHlwZXNdLnhtbFVUCQADMNDOEjDQzhJ1eAsAAQT1AQAABBQAAAC1lMtqwzAQRfeF/oPRNthKuiilxMmij2UbaPoBijRORPVCmrz+vuM4NaWkMeSxMcgz994zQsxwvLEmW0FM2ruSDYo+y8BJr7Sbl+xz+po/sCyhcEoY76BkW0hsPLq9GU63AVJGapdKtkAMj5wnuQArUuEDOKpUPlqBdIxzHoT8EnPgd/3+PZfeITjMsfZgo+EzVGJpMHvZ0O+GJIJJLHtqGuuskokQjJYCqc5XTv1JyfcJBSl3PWmhQ+pRA+MHE+rK/wF73TtdTdQKsomI+CYsdfG1j4orL5eWlMVxmwOcvqq0hFZfu4XoJaREd25N0Vas0K7XxeGWdgaRlJcHaa07IRJuDaTLEzS+3fGASIJrAOydOxHWMPu4GsUv806QinKnYmbg8hitdScE0hqA5js4m2NncyySOifRh0RrJZ4w9s/eqNU5DRwgoj7+6tpEsj57PqhXkgJ1IJvvluzoG1BLAwQKAAAAAACTZE1bAAAAAAAAAAAAAAAACQAcAGRvY1Byb3BzL1VUCQADhhztaIcc7Wh1eAsAAQT1AQAABBQAAABQSwMEFAAAAAgAAAAhACEYr1llAQAAxQIAABAAHABkb2NQcm9wcy9hcHAueG1sVV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AAAEADtQTEuAAB3b3JkL19yZWxzL1VUBQADhhztaHV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAAAIQCzvosd/gAAALYDAAAcABgAAAAAAAEAAACkgXYuAAB3b3JkL19yZWxzL2RvY3VtZW50LnhtbC5yZWxzVVQFAAMw0M4SdXgLAAEE9QEAAAQUAAAAUEsFBgAAAAARABEAqQUAAMovAAAAAA==";
|
|
100913
|
-
function getDefaultExportFromCjs(
|
|
100914
|
-
return
|
|
101386
|
+
function getDefaultExportFromCjs(x2) {
|
|
101387
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
100915
101388
|
}
|
|
100916
101389
|
var eventemitter3 = { exports: {} };
|
|
100917
101390
|
var hasRequiredEventemitter3;
|
|
@@ -105583,14 +106056,14 @@ ${unwrappedProps}
|
|
|
105583
106056
|
}
|
|
105584
106057
|
return viewMeasurer.getBoundingClientRect();
|
|
105585
106058
|
}
|
|
105586
|
-
function getPointRect(
|
|
106059
|
+
function getPointRect(x2, y2) {
|
|
105587
106060
|
const viewRect = ensureViewBoundingRect();
|
|
105588
106061
|
return {
|
|
105589
106062
|
top: y2,
|
|
105590
|
-
left:
|
|
106063
|
+
left: x2,
|
|
105591
106064
|
height: 0,
|
|
105592
106065
|
width: 0,
|
|
105593
|
-
right: viewRect.width -
|
|
106066
|
+
right: viewRect.width - x2,
|
|
105594
106067
|
bottom: viewRect.height - y2
|
|
105595
106068
|
};
|
|
105596
106069
|
}
|
|
@@ -106428,8 +106901,8 @@ ${style2}
|
|
|
106428
106901
|
if (follower === null)
|
|
106429
106902
|
return;
|
|
106430
106903
|
const target = VBinder.targetRef;
|
|
106431
|
-
const { x, y: y2, overlap } = props;
|
|
106432
|
-
const targetRect =
|
|
106904
|
+
const { x: x2, y: y2, overlap } = props;
|
|
106905
|
+
const targetRect = x2 !== void 0 && y2 !== void 0 ? getPointRect(x2, y2) : getRect(target);
|
|
106433
106906
|
follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
|
|
106434
106907
|
follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
|
|
106435
106908
|
const { width, minWidth, placement, internalShift, flip: flip2 } = props;
|
|
@@ -106599,8 +107072,8 @@ ${style2}
|
|
|
106599
107072
|
return ResizeObserverSize2;
|
|
106600
107073
|
})();
|
|
106601
107074
|
var DOMRectReadOnly = (function() {
|
|
106602
|
-
function DOMRectReadOnly2(
|
|
106603
|
-
this.x =
|
|
107075
|
+
function DOMRectReadOnly2(x2, y2, width, height) {
|
|
107076
|
+
this.x = x2;
|
|
106604
107077
|
this.y = y2;
|
|
106605
107078
|
this.width = width;
|
|
106606
107079
|
this.height = height;
|
|
@@ -106611,8 +107084,8 @@ ${style2}
|
|
|
106611
107084
|
return freeze(this);
|
|
106612
107085
|
}
|
|
106613
107086
|
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
106614
|
-
var _a2 = this,
|
|
106615
|
-
return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
107087
|
+
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;
|
|
107088
|
+
return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
106616
107089
|
};
|
|
106617
107090
|
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
106618
107091
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
@@ -117316,9 +117789,9 @@ ${style2}
|
|
|
117316
117789
|
const resetSelection = () => {
|
|
117317
117790
|
selectionPosition.value = null;
|
|
117318
117791
|
};
|
|
117319
|
-
const updateSelection2 = ({ startX, startY, x, y: y2, source }) => {
|
|
117792
|
+
const updateSelection2 = ({ startX, startY, x: x2, y: y2, source }) => {
|
|
117320
117793
|
const hasStartCoords = startX || startY;
|
|
117321
|
-
const hasEndCoords =
|
|
117794
|
+
const hasEndCoords = x2 || y2;
|
|
117322
117795
|
if (!hasStartCoords && !hasEndCoords) {
|
|
117323
117796
|
return selectionPosition.value = null;
|
|
117324
117797
|
}
|
|
@@ -117343,10 +117816,10 @@ ${style2}
|
|
|
117343
117816
|
selectionPosition.value.bottom = y2;
|
|
117344
117817
|
}
|
|
117345
117818
|
const selectionLeft = selectionPosition.value.startX;
|
|
117346
|
-
if (
|
|
117347
|
-
selectionPosition.value.left =
|
|
117819
|
+
if (x2 < selectionLeft) {
|
|
117820
|
+
selectionPosition.value.left = x2;
|
|
117348
117821
|
} else {
|
|
117349
|
-
selectionPosition.value.right =
|
|
117822
|
+
selectionPosition.value.right = x2;
|
|
117350
117823
|
}
|
|
117351
117824
|
};
|
|
117352
117825
|
const handleSelectionStart = (e) => {
|
|
@@ -117355,16 +117828,16 @@ ${style2}
|
|
|
117355
117828
|
nextTick(() => {
|
|
117356
117829
|
isDragging.value = true;
|
|
117357
117830
|
const y2 = e.offsetY / (activeZoom.value / 100);
|
|
117358
|
-
const
|
|
117359
|
-
updateSelection2({ startX:
|
|
117831
|
+
const x2 = e.offsetX / (activeZoom.value / 100);
|
|
117832
|
+
updateSelection2({ startX: x2, startY: y2 });
|
|
117360
117833
|
selectionLayer.value.addEventListener("mousemove", handleDragMove);
|
|
117361
117834
|
});
|
|
117362
117835
|
};
|
|
117363
117836
|
const handleDragMove = (e) => {
|
|
117364
117837
|
if (!isDragging.value) return;
|
|
117365
117838
|
const y2 = e.offsetY / (activeZoom.value / 100);
|
|
117366
|
-
const
|
|
117367
|
-
updateSelection2({ x, y: y2 });
|
|
117839
|
+
const x2 = e.offsetX / (activeZoom.value / 100);
|
|
117840
|
+
updateSelection2({ x: x2, y: y2 });
|
|
117368
117841
|
};
|
|
117369
117842
|
const handleDragEnd = (e) => {
|
|
117370
117843
|
if (!isDragging.value) return;
|
|
@@ -117721,7 +118194,7 @@ ${style2}
|
|
|
117721
118194
|
this.config.colors = shuffleArray(this.config.colors);
|
|
117722
118195
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
117723
118196
|
this.colorIndex = 0;
|
|
117724
|
-
this.version = "0.
|
|
118197
|
+
this.version = "0.30.0-next.1";
|
|
117725
118198
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
117726
118199
|
this.superdocId = config2.superdocId || v4();
|
|
117727
118200
|
this.colors = this.config.colors;
|
|
@@ -120121,7 +120594,7 @@ ${style2}
|
|
|
120121
120594
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
120122
120595
|
);
|
|
120123
120596
|
}
|
|
120124
|
-
const
|
|
120597
|
+
const indexC3nnrhrj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
120125
120598
|
__proto__: null,
|
|
120126
120599
|
unified
|
|
120127
120600
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -121713,8 +122186,8 @@ ${style2}
|
|
|
121713
122186
|
properties[name] = attribute.value;
|
|
121714
122187
|
}
|
|
121715
122188
|
}
|
|
121716
|
-
const
|
|
121717
|
-
const result =
|
|
122189
|
+
const x2 = state2.schema.space === "svg" ? s : h;
|
|
122190
|
+
const result = x2(node2.tagName, properties, all$4(state2, node2.childNodes));
|
|
121718
122191
|
patch$1(state2, node2, result);
|
|
121719
122192
|
if (result.tagName === "template") {
|
|
121720
122193
|
const reference2 = (
|