@harbour-enterprises/superdoc 0.29.0 → 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-DUMZ9x59.es.js → PdfViewer-DNnHwEf_.es.js} +1 -1
- package/dist/chunks/{PdfViewer-BVriqvm9.cjs → PdfViewer-Mru9qU0u.cjs} +1 -1
- package/dist/chunks/{index-373DqHu6-CPe3gPzf.cjs → index-C3nnrhrj-D6qn1DZi.cjs} +1 -1
- package/dist/chunks/{index-373DqHu6-BLRN3Gja.es.js → index-C3nnrhrj-D8emuLzt.es.js} +1 -1
- package/dist/chunks/{index-_cWKslAS.es.js → index-DcqOqWRC.es.js} +3 -3
- package/dist/chunks/{index-DEOkqJcc.cjs → index-s9auAjqk.cjs} +3 -3
- package/dist/chunks/{super-editor.es-83k0FoXr.es.js → super-editor.es-D1glcoJr.es.js} +1236 -777
- package/dist/chunks/{super-editor.es-BkBSpy8W.cjs → super-editor.es-DPd8_luo.cjs} +1236 -777
- 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-B86bAVY0.js → converter-Z2aFlUnt.js} +525 -373
- package/dist/super-editor/chunks/{docx-zipper-D1VjYtEw.js → docx-zipper-DIZfYOpO.js} +1 -1
- package/dist/super-editor/chunks/{editor-a9U6w_LW.js → editor-DCiWw1F7.js} +359 -58
- package/dist/super-editor/chunks/{index-373DqHu6.js → index-C3nnrhrj.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-D0NuB59d.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 +1000 -541
- 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,
|
|
@@ -35401,7 +35554,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35401
35554
|
const currentId = attributes.Id || "";
|
|
35402
35555
|
attributes.Target = attributes?.Target?.replace(/&/g, "&");
|
|
35403
35556
|
const existingTarget = existingRelationships.find((el) => el.attributes.Target === attributes.Target);
|
|
35404
|
-
attributes.Target?.startsWith("media/");
|
|
35405
35557
|
const isNewHyperlink = attributes.Type === HYPERLINK_RELATIONSHIP_TYPE && currentId.length > 6;
|
|
35406
35558
|
const isNewHeadFoot = (attributes.Type === HEADER_RELATIONSHIP_TYPE || attributes.Type === FOOTER_RELATIONSHIP_TYPE) && currentId.length > 6;
|
|
35407
35559
|
const hasSeenId = currentId && seenIds.has(currentId);
|
|
@@ -35630,7 +35782,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35630
35782
|
static getStoredSuperdocVersion(docx) {
|
|
35631
35783
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35632
35784
|
}
|
|
35633
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.
|
|
35785
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.30.0-next.1") {
|
|
35634
35786
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35635
35787
|
}
|
|
35636
35788
|
/**
|
|
@@ -36021,7 +36173,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36021
36173
|
};
|
|
36022
36174
|
exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
36023
36175
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
36024
|
-
const relationships = relsData.elements.find((
|
|
36176
|
+
const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
|
|
36025
36177
|
const newDocRels = [];
|
|
36026
36178
|
Object.entries(this.headers).forEach(([id, header], index2) => {
|
|
36027
36179
|
const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
|
|
@@ -36062,7 +36214,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36062
36214
|
}
|
|
36063
36215
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
36064
36216
|
if (params2.relationships.length) {
|
|
36065
|
-
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 || [];
|
|
36066
36218
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
36067
36219
|
declaration: this.initialJSON?.declaration,
|
|
36068
36220
|
elements: [
|
|
@@ -36116,7 +36268,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36116
36268
|
}
|
|
36117
36269
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
36118
36270
|
if (params2.relationships.length) {
|
|
36119
|
-
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 || [];
|
|
36120
36272
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
36121
36273
|
declaration: this.initialJSON?.declaration,
|
|
36122
36274
|
elements: [
|
|
@@ -36135,7 +36287,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36135
36287
|
};
|
|
36136
36288
|
exportProcessNewRelationships_fn = function(rels = []) {
|
|
36137
36289
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
36138
|
-
const relationships = relsData.elements.find((
|
|
36290
|
+
const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
|
|
36139
36291
|
relationships.elements = mergeRelationshipElements(relationships.elements, rels);
|
|
36140
36292
|
};
|
|
36141
36293
|
exportProcessMediaFiles_fn = async function(media2 = {}) {
|
|
@@ -36331,8 +36483,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36331
36483
|
return n2;
|
|
36332
36484
|
}
|
|
36333
36485
|
function n(e2, t2, r22, n2, i22, s22) {
|
|
36334
|
-
var a2, o, h2 = e2.file, u = e2.compression, l = s22 !==
|
|
36335
|
-
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);
|
|
36336
36488
|
var S2 = 0;
|
|
36337
36489
|
t2 && (S2 |= 8), l || !_2 && !g || (S2 |= 2048);
|
|
36338
36490
|
var z2 = 0, C2 = 0;
|
|
@@ -36343,9 +36495,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36343
36495
|
return 63 & (e3 || 0);
|
|
36344
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);
|
|
36345
36497
|
var E2 = "";
|
|
36346
|
-
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 };
|
|
36347
36499
|
}
|
|
36348
|
-
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");
|
|
36349
36501
|
function s2(e2, t2, r22, n2) {
|
|
36350
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 = [];
|
|
36351
36503
|
}
|
|
@@ -36363,7 +36515,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36363
36515
|
this.accumulate = false;
|
|
36364
36516
|
var t2 = this.streamFiles && !e2.file.dir, r22 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
36365
36517
|
if (this.dirRecords.push(r22.dirRecord), t2) this.push({ data: (function(e3) {
|
|
36366
|
-
return
|
|
36518
|
+
return R.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
|
|
36367
36519
|
})(e2), meta: { percent: 100 } });
|
|
36368
36520
|
else for (this.push({ data: r22.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
36369
36521
|
this.currentFile = null;
|
|
@@ -36371,7 +36523,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36371
36523
|
for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });
|
|
36372
36524
|
var r22 = this.bytesWritten - e2, n2 = (function(e3, t3, r3, n3, i22) {
|
|
36373
36525
|
var s22 = I2.transformTo("string", i22(n3));
|
|
36374
|
-
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;
|
|
36375
36527
|
})(this.dirRecords.length, r22, e2, this.zipComment, this.encodeFileName);
|
|
36376
36528
|
this.push({ data: n2, meta: { percent: 100 } });
|
|
36377
36529
|
}, s2.prototype.prepareNextSource = function() {
|
|
@@ -37571,11 +37723,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37571
37723
|
return -1 ^ e2;
|
|
37572
37724
|
};
|
|
37573
37725
|
}, {}], 46: [function(e, t, r2) {
|
|
37574
|
-
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,
|
|
37575
|
-
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) {
|
|
37576
37728
|
return e2.msg = n[t2], t2;
|
|
37577
37729
|
}
|
|
37578
|
-
function
|
|
37730
|
+
function T2(e2) {
|
|
37579
37731
|
return (e2 << 1) - (4 < e2 ? 9 : 0);
|
|
37580
37732
|
}
|
|
37581
37733
|
function D2(e2) {
|
|
@@ -37619,7 +37771,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37619
37771
|
i22 += f22;
|
|
37620
37772
|
}
|
|
37621
37773
|
if (0 === e2.strm.avail_in) break;
|
|
37622
|
-
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)); ) ;
|
|
37623
37775
|
} while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
|
|
37624
37776
|
}
|
|
37625
37777
|
function Z(e2, t2) {
|
|
@@ -37628,14 +37780,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37628
37780
|
if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
|
|
37629
37781
|
if (0 === e2.lookahead) break;
|
|
37630
37782
|
}
|
|
37631
|
-
if (r22 = 0, e2.lookahead >=
|
|
37632
|
-
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; ) ;
|
|
37633
37785
|
e2.strstart++;
|
|
37634
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;
|
|
37635
37787
|
else n2 = u._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
|
|
37636
37788
|
if (n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37637
37789
|
}
|
|
37638
|
-
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;
|
|
37639
37791
|
}
|
|
37640
37792
|
function W2(e2, t2) {
|
|
37641
37793
|
for (var r22, n2, i22; ; ) {
|
|
@@ -37643,14 +37795,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37643
37795
|
if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
|
|
37644
37796
|
if (0 === e2.lookahead) break;
|
|
37645
37797
|
}
|
|
37646
|
-
if (r22 = 0, e2.lookahead >=
|
|
37647
|
-
for (i22 = e2.strstart + e2.lookahead -
|
|
37648
|
-
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;
|
|
37649
37801
|
} else if (e2.match_available) {
|
|
37650
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;
|
|
37651
37803
|
} else e2.match_available = 1, e2.strstart++, e2.lookahead--;
|
|
37652
37804
|
}
|
|
37653
|
-
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;
|
|
37654
37806
|
}
|
|
37655
37807
|
function M2(e2, t2, r22, n2, i22) {
|
|
37656
37808
|
this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i22;
|
|
@@ -37660,21 +37812,21 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37660
37812
|
}
|
|
37661
37813
|
function G2(e2) {
|
|
37662
37814
|
var t2;
|
|
37663
|
-
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);
|
|
37664
37816
|
}
|
|
37665
37817
|
function K2(e2) {
|
|
37666
37818
|
var t2 = G2(e2);
|
|
37667
37819
|
return t2 === m2 && (function(e3) {
|
|
37668
|
-
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;
|
|
37669
37821
|
})(e2.state), t2;
|
|
37670
37822
|
}
|
|
37671
37823
|
function Y2(e2, t2, r22, n2, i22, s22) {
|
|
37672
37824
|
if (!e2) return _2;
|
|
37673
37825
|
var a22 = 1;
|
|
37674
|
-
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);
|
|
37675
37827
|
8 === n2 && (n2 = 9);
|
|
37676
37828
|
var o2 = new H();
|
|
37677
|
-
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);
|
|
37678
37830
|
}
|
|
37679
37831
|
h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
|
|
37680
37832
|
var r22 = 65535;
|
|
@@ -37688,15 +37840,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37688
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;
|
|
37689
37841
|
if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37690
37842
|
}
|
|
37691
|
-
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);
|
|
37692
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) {
|
|
37693
37845
|
return Y2(e2, t2, v2, 15, 8, 0);
|
|
37694
37846
|
}, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
|
|
37695
37847
|
return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
|
|
37696
37848
|
}, r2.deflate = function(e2, t2) {
|
|
37697
37849
|
var r22, n2, i22, s22;
|
|
37698
|
-
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ?
|
|
37699
|
-
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);
|
|
37700
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);
|
|
37701
37853
|
else {
|
|
37702
37854
|
var a22 = v2 + (n2.w_bits - 8 << 4) << 8;
|
|
@@ -37730,8 +37882,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37730
37882
|
} else n2.status = 103;
|
|
37731
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) {
|
|
37732
37884
|
if (F2(e2), 0 === e2.avail_out) return n2.last_flush = -1, m2;
|
|
37733
|
-
} else if (0 === e2.avail_in &&
|
|
37734
|
-
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);
|
|
37735
37887
|
if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l && 666 !== n2.status) {
|
|
37736
37888
|
var o2 = 2 === n2.strategy ? (function(e3, t3) {
|
|
37737
37889
|
for (var r3; ; ) {
|
|
@@ -37741,39 +37893,39 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37741
37893
|
}
|
|
37742
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;
|
|
37743
37895
|
}
|
|
37744
|
-
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;
|
|
37745
37897
|
})(n2, t2) : 3 === n2.strategy ? (function(e3, t3) {
|
|
37746
37898
|
for (var r3, n3, i3, s3, a3 = e3.window; ; ) {
|
|
37747
37899
|
if (e3.lookahead <= S2) {
|
|
37748
37900
|
if (j2(e3), e3.lookahead <= S2 && t3 === l) return A2;
|
|
37749
37901
|
if (0 === e3.lookahead) break;
|
|
37750
37902
|
}
|
|
37751
|
-
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]) {
|
|
37752
37904
|
s3 = e3.strstart + S2;
|
|
37753
37905
|
do {
|
|
37754
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);
|
|
37755
37907
|
e3.match_length = S2 - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);
|
|
37756
37908
|
}
|
|
37757
|
-
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;
|
|
37758
37910
|
}
|
|
37759
|
-
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;
|
|
37760
37912
|
})(n2, t2) : h2[n2.level].func(n2, t2);
|
|
37761
|
-
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;
|
|
37762
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;
|
|
37763
37915
|
}
|
|
37764
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);
|
|
37765
37917
|
}, r2.deflateEnd = function(e2) {
|
|
37766
37918
|
var t2;
|
|
37767
|
-
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;
|
|
37768
37920
|
}, r2.deflateSetDictionary = function(e2, t2) {
|
|
37769
37921
|
var r22, n2, i22, s22, a22, o2, h22, u2, l2 = t2.length;
|
|
37770
37922
|
if (!e2 || !e2.state) return _2;
|
|
37771
37923
|
if (2 === (s22 = (r22 = e2.state).wrap) || 1 === s22 && r22.status !== C2 || r22.lookahead) return _2;
|
|
37772
|
-
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 >=
|
|
37773
|
-
for (n2 = r22.strstart, i22 = r22.lookahead - (
|
|
37774
|
-
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);
|
|
37775
37927
|
}
|
|
37776
|
-
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;
|
|
37777
37929
|
}, r2.deflateInfo = "pako deflate (from Nodeca project)";
|
|
37778
37930
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r2) {
|
|
37779
37931
|
t.exports = function() {
|
|
@@ -37781,7 +37933,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37781
37933
|
};
|
|
37782
37934
|
}, {}], 48: [function(e, t, r2) {
|
|
37783
37935
|
t.exports = function(e2, t2) {
|
|
37784
|
-
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;
|
|
37785
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;
|
|
37786
37938
|
e: do {
|
|
37787
37939
|
p2 < 15 && (d2 += z2[n++] << p2, p2 += 8, d2 += z2[n++] << p2, p2 += 8), v2 = m2[d2 & g];
|
|
@@ -37819,28 +37971,28 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37819
37971
|
e2.msg = "invalid distance too far back", r22.mode = 30;
|
|
37820
37972
|
break e;
|
|
37821
37973
|
}
|
|
37822
|
-
if (S2 = c2, (
|
|
37823
|
-
if (
|
|
37824
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37825
|
-
|
|
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;
|
|
37826
37978
|
}
|
|
37827
37979
|
} else if (f2 < y2) {
|
|
37828
|
-
if (
|
|
37829
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37830
|
-
if (
|
|
37831
|
-
for (w2 -= y2 = f2; C2[s2++] = c2[
|
|
37832
|
-
|
|
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;
|
|
37833
37985
|
}
|
|
37834
37986
|
}
|
|
37835
|
-
} else if (
|
|
37836
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37837
|
-
|
|
37987
|
+
} else if (x2 += f2 - y2, y2 < w2) {
|
|
37988
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37989
|
+
x2 = s2 - k2, S2 = C2;
|
|
37838
37990
|
}
|
|
37839
|
-
for (; 2 < w2; ) C2[s2++] = S2[
|
|
37840
|
-
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++]));
|
|
37841
37993
|
} else {
|
|
37842
|
-
for (
|
|
37843
|
-
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++]));
|
|
37844
37996
|
}
|
|
37845
37997
|
break;
|
|
37846
37998
|
}
|
|
@@ -37851,7 +38003,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37851
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;
|
|
37852
38004
|
};
|
|
37853
38005
|
}, {}], 49: [function(e, t, r2) {
|
|
37854
|
-
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;
|
|
37855
38007
|
function L2(e2) {
|
|
37856
38008
|
return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
|
|
37857
38009
|
}
|
|
@@ -37882,8 +38034,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37882
38034
|
for (; t2 < 256; ) e2.lens[t2++] = 9;
|
|
37883
38035
|
for (; t2 < 280; ) e2.lens[t2++] = 7;
|
|
37884
38036
|
for (; t2 < 288; ) e2.lens[t2++] = 8;
|
|
37885
|
-
for (
|
|
37886
|
-
|
|
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;
|
|
37887
38039
|
}
|
|
37888
38040
|
e2.lencode = l, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
|
|
37889
38041
|
}
|
|
@@ -37894,9 +38046,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37894
38046
|
r2.inflateReset = o, r2.inflateReset2 = h2, r2.inflateResetKeep = a2, r2.inflateInit = function(e2) {
|
|
37895
38047
|
return u(e2, 15);
|
|
37896
38048
|
}, r2.inflateInit2 = u, r2.inflate = function(e2, t2) {
|
|
37897
|
-
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];
|
|
37898
38050
|
if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U2;
|
|
37899
|
-
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;
|
|
37900
38052
|
e: for (; ; ) switch (r22.mode) {
|
|
37901
38053
|
case P2:
|
|
37902
38054
|
if (0 === r22.wrap) {
|
|
@@ -38067,7 +38219,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38067
38219
|
r22.lens[A2[r22.have++]] = 7 & u2, u2 >>>= 3, l2 -= 3;
|
|
38068
38220
|
}
|
|
38069
38221
|
for (; r22.have < 19; ) r22.lens[A2[r22.have++]] = 0;
|
|
38070
|
-
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) {
|
|
38071
38223
|
e2.msg = "invalid code lengths set", r22.mode = 30;
|
|
38072
38224
|
break;
|
|
38073
38225
|
}
|
|
@@ -38115,11 +38267,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38115
38267
|
e2.msg = "invalid code -- missing end-of-block", r22.mode = 30;
|
|
38116
38268
|
break;
|
|
38117
38269
|
}
|
|
38118
|
-
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) {
|
|
38119
38271
|
e2.msg = "invalid literal/lengths set", r22.mode = 30;
|
|
38120
38272
|
break;
|
|
38121
38273
|
}
|
|
38122
|
-
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) {
|
|
38123
38275
|
e2.msg = "invalid distances set", r22.mode = 30;
|
|
38124
38276
|
break;
|
|
38125
38277
|
}
|
|
@@ -38128,7 +38280,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38128
38280
|
r22.mode = 21;
|
|
38129
38281
|
case 21:
|
|
38130
38282
|
if (6 <= o2 && 258 <= h22) {
|
|
38131
|
-
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);
|
|
38132
38284
|
break;
|
|
38133
38285
|
}
|
|
38134
38286
|
for (r22.back = 0; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
|
|
@@ -38216,7 +38368,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38216
38368
|
if (0 === o2) break e;
|
|
38217
38369
|
o2--, u2 |= n2[s22++] << l2, l2 += 8;
|
|
38218
38370
|
}
|
|
38219
|
-
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) {
|
|
38220
38372
|
e2.msg = "incorrect data check", r22.mode = 30;
|
|
38221
38373
|
break;
|
|
38222
38374
|
}
|
|
@@ -38237,10 +38389,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38237
38389
|
}
|
|
38238
38390
|
r22.mode = 29;
|
|
38239
38391
|
case 29:
|
|
38240
|
-
|
|
38392
|
+
x2 = 1;
|
|
38241
38393
|
break e;
|
|
38242
38394
|
case 30:
|
|
38243
|
-
|
|
38395
|
+
x2 = -3;
|
|
38244
38396
|
break e;
|
|
38245
38397
|
case 31:
|
|
38246
38398
|
return -4;
|
|
@@ -38248,7 +38400,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38248
38400
|
default:
|
|
38249
38401
|
return U2;
|
|
38250
38402
|
}
|
|
38251
|
-
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);
|
|
38252
38404
|
}, r2.inflateEnd = function(e2) {
|
|
38253
38405
|
if (!e2 || !e2.state) return U2;
|
|
38254
38406
|
var t2 = e2.state;
|
|
@@ -38258,33 +38410,33 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38258
38410
|
return e2 && e2.state ? 0 == (2 & (r22 = e2.state).wrap) ? U2 : ((r22.head = t2).done = false, N2) : U2;
|
|
38259
38411
|
}, r2.inflateSetDictionary = function(e2, t2) {
|
|
38260
38412
|
var r22, n2 = t2.length;
|
|
38261
|
-
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;
|
|
38262
38414
|
}, r2.inflateInfo = "pako inflate (from Nodeca project)";
|
|
38263
38415
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r2) {
|
|
38264
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];
|
|
38265
38417
|
t.exports = function(e2, t2, r22, n, i2, s2, a2, o) {
|
|
38266
|
-
var h2, u, l, f2, c2, d2, p2, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0,
|
|
38267
|
-
for (b2 = 0; b2 <= 15; b2++)
|
|
38268
|
-
for (v2 = 0; v2 < n; v2++)
|
|
38269
|
-
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--) ;
|
|
38270
38422
|
if (w2 < k2 && (k2 = w2), 0 === w2) return i2[s2++] = 20971520, i2[s2++] = 20971520, o.bits = 1, 0;
|
|
38271
|
-
for (y2 = 1; y2 < w2 && 0 ===
|
|
38272
|
-
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;
|
|
38273
38425
|
if (0 < z2 && (0 === e2 || 1 !== w2)) return -1;
|
|
38274
|
-
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];
|
|
38275
38427
|
for (v2 = 0; v2 < n; v2++) 0 !== t2[r22 + v2] && (a2[B2[t2[r22 + v2]]++] = v2);
|
|
38276
|
-
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;
|
|
38277
38429
|
for (; ; ) {
|
|
38278
|
-
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; ) ;
|
|
38279
38431
|
for (h2 = 1 << b2 - 1; E2 & h2; ) h2 >>= 1;
|
|
38280
|
-
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]) {
|
|
38281
38433
|
if (b2 === w2) break;
|
|
38282
38434
|
b2 = t2[r22 + a2[v2]];
|
|
38283
38435
|
}
|
|
38284
38436
|
if (k2 < b2 && (E2 & f2) !== l) {
|
|
38285
|
-
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (
|
|
38286
|
-
if (C2 += 1 <<
|
|
38287
|
-
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;
|
|
38288
38440
|
}
|
|
38289
38441
|
}
|
|
38290
38442
|
return 0 !== E2 && (i2[c2 + E2] = b2 - S2 << 24 | 64 << 16 | 0), o.bits = k2, 0;
|
|
@@ -38296,7 +38448,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38296
38448
|
function n(e2) {
|
|
38297
38449
|
for (var t2 = e2.length; 0 <= --t2; ) e2[t2] = 0;
|
|
38298
38450
|
}
|
|
38299
|
-
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));
|
|
38300
38452
|
n(z2);
|
|
38301
38453
|
var C2 = new Array(2 * f2);
|
|
38302
38454
|
n(C2);
|
|
@@ -38306,7 +38458,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38306
38458
|
n(A2);
|
|
38307
38459
|
var I2 = new Array(a2);
|
|
38308
38460
|
n(I2);
|
|
38309
|
-
var
|
|
38461
|
+
var O, B2, R, T2 = new Array(f2);
|
|
38310
38462
|
function D2(e2, t2, r22, n2, i22) {
|
|
38311
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;
|
|
38312
38464
|
}
|
|
@@ -38357,7 +38509,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38357
38509
|
}
|
|
38358
38510
|
function K2(e2, t2, r22) {
|
|
38359
38511
|
var n2, i22, s22, a22, o2 = 0;
|
|
38360
|
-
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; ) ;
|
|
38361
38513
|
L2(e2, m2, t2);
|
|
38362
38514
|
}
|
|
38363
38515
|
function Y2(e2, t2) {
|
|
@@ -38391,7 +38543,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38391
38543
|
s22 = i22, u2 = (o2 = 0) === a22 ? (h22 = 138, 3) : i22 === a22 ? (h22 = 6, 3) : (h22 = 7, 4);
|
|
38392
38544
|
}
|
|
38393
38545
|
}
|
|
38394
|
-
n(
|
|
38546
|
+
n(T2);
|
|
38395
38547
|
var q2 = false;
|
|
38396
38548
|
function J2(e2, t2, r22, n2) {
|
|
38397
38549
|
P2(e2, (s2 << 1) + (n2 ? 1 : 0), 3), (function(e3, t3, r3, n3) {
|
|
@@ -38402,16 +38554,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38402
38554
|
q2 || ((function() {
|
|
38403
38555
|
var e3, t2, r22, n2, i22, s22 = new Array(g + 1);
|
|
38404
38556
|
for (n2 = r22 = 0; n2 < a2 - 1; n2++) for (I2[n2] = r22, e3 = 0; e3 < 1 << w2[n2]; e3++) A2[r22++] = n2;
|
|
38405
|
-
for (A2[r22 - 1] = n2, n2 = i22 = 0; n2 < 16; n2++) for (
|
|
38406
|
-
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;
|
|
38407
38559
|
for (t2 = 0; t2 <= g; t2++) s22[t2] = 0;
|
|
38408
38560
|
for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38409
38561
|
for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s22[9]++;
|
|
38410
38562
|
for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s22[7]++;
|
|
38411
38563
|
for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38412
38564
|
for (Z(z2, l + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
|
|
38413
|
-
|
|
38414
|
-
})(), 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);
|
|
38415
38567
|
}, r2._tr_stored_block = J2, r2._tr_flush_block = function(e2, t2, r22, n2) {
|
|
38416
38568
|
var i22, s22, a22 = 0;
|
|
38417
38569
|
0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = (function(e3) {
|
|
@@ -38752,14 +38904,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38752
38904
|
const zip = await this.zip.loadAsync(file);
|
|
38753
38905
|
return zip;
|
|
38754
38906
|
}
|
|
38755
|
-
async updateZip({ docx, updatedDocs, originalDocxFile, media: media2, fonts, isHeadless }) {
|
|
38907
|
+
async updateZip({ docx, updatedDocs, originalDocxFile, media: media2, fonts, isHeadless: isHeadless2 }) {
|
|
38756
38908
|
let zip;
|
|
38757
38909
|
if (originalDocxFile) {
|
|
38758
38910
|
zip = await this.exportFromOriginalFile(originalDocxFile, updatedDocs, media2);
|
|
38759
38911
|
} else {
|
|
38760
38912
|
zip = await this.exportFromCollaborativeDocx(docx, updatedDocs, media2, fonts);
|
|
38761
38913
|
}
|
|
38762
|
-
const exportType =
|
|
38914
|
+
const exportType = isHeadless2 ? "nodebuffer" : "blob";
|
|
38763
38915
|
return await zip.generateAsync({ type: exportType });
|
|
38764
38916
|
}
|
|
38765
38917
|
/**
|
|
@@ -39619,7 +39771,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39619
39771
|
},
|
|
39620
39772
|
concat(...args) {
|
|
39621
39773
|
return reactiveReadArray(this).concat(
|
|
39622
|
-
...args.map((
|
|
39774
|
+
...args.map((x2) => isArray$3(x2) ? reactiveReadArray(x2) : x2)
|
|
39623
39775
|
);
|
|
39624
39776
|
},
|
|
39625
39777
|
entries() {
|
|
@@ -47228,17 +47380,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
47228
47380
|
elt = elt.shadowRoot.activeElement;
|
|
47229
47381
|
return elt;
|
|
47230
47382
|
}
|
|
47231
|
-
function caretFromPoint(doc2,
|
|
47383
|
+
function caretFromPoint(doc2, x2, y2) {
|
|
47232
47384
|
if (doc2.caretPositionFromPoint) {
|
|
47233
47385
|
try {
|
|
47234
|
-
let pos = doc2.caretPositionFromPoint(
|
|
47386
|
+
let pos = doc2.caretPositionFromPoint(x2, y2);
|
|
47235
47387
|
if (pos)
|
|
47236
47388
|
return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
|
|
47237
47389
|
} catch (_2) {
|
|
47238
47390
|
}
|
|
47239
47391
|
}
|
|
47240
47392
|
if (doc2.caretRangeFromPoint) {
|
|
47241
|
-
let range2 = doc2.caretRangeFromPoint(
|
|
47393
|
+
let range2 = doc2.caretRangeFromPoint(x2, y2);
|
|
47242
47394
|
if (range2)
|
|
47243
47395
|
return { node: range2.startContainer, offset: Math.min(nodeSize(range2.startContainer), range2.startOffset) };
|
|
47244
47396
|
}
|
|
@@ -47337,8 +47489,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
47337
47489
|
function storeScrollPos(view) {
|
|
47338
47490
|
let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
|
|
47339
47491
|
let refDOM, refTop;
|
|
47340
|
-
for (let
|
|
47341
|
-
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);
|
|
47342
47494
|
if (!dom || dom == view.dom || !view.dom.contains(dom))
|
|
47343
47495
|
continue;
|
|
47344
47496
|
let localRect = dom.getBoundingClientRect();
|
|
@@ -47634,8 +47786,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
47634
47786
|
function flattenV(rect, left2) {
|
|
47635
47787
|
if (rect.width == 0)
|
|
47636
47788
|
return rect;
|
|
47637
|
-
let
|
|
47638
|
-
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 };
|
|
47639
47791
|
}
|
|
47640
47792
|
function flattenH(rect, top2) {
|
|
47641
47793
|
if (rect.height == 0)
|
|
@@ -52642,10 +52794,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
52642
52794
|
const Timeout = createTimeoutClass(clearTimeout);
|
|
52643
52795
|
const timeout = (timeout2, callback) => new Timeout(setTimeout(callback, timeout2));
|
|
52644
52796
|
const rotr = (w2, shift2) => w2 >>> shift2 | w2 << 32 - shift2;
|
|
52645
|
-
const sum0to256 = (
|
|
52646
|
-
const sum1to256 = (
|
|
52647
|
-
const sigma0to256 = (
|
|
52648
|
-
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;
|
|
52649
52801
|
const K = new Uint32Array([
|
|
52650
52802
|
1116352408,
|
|
52651
52803
|
1899447441,
|
|
@@ -58236,9 +58388,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
58236
58388
|
if (!target || !target.classList) return;
|
|
58237
58389
|
target.classList.add(STYLE_ISOLATION_CLASS);
|
|
58238
58390
|
};
|
|
58391
|
+
const isHeadless = (editor) => {
|
|
58392
|
+
return editor?.options?.isHeadless ?? false;
|
|
58393
|
+
};
|
|
58394
|
+
const shouldSkipNodeView = (editor) => {
|
|
58395
|
+
return isHeadless(editor);
|
|
58396
|
+
};
|
|
58239
58397
|
const PaginationPluginKey = new PluginKey("paginationPlugin");
|
|
58240
58398
|
const initPaginationData = async (editor) => {
|
|
58241
|
-
if (!editor.converter) return;
|
|
58399
|
+
if (isHeadless(editor) || !editor.converter) return;
|
|
58242
58400
|
const sectionData = { headers: {}, footers: {} };
|
|
58243
58401
|
const headerIds = editor.converter.headerIds.ids;
|
|
58244
58402
|
const footerIds = editor.converter.footerIds.ids;
|
|
@@ -58374,6 +58532,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
58374
58532
|
});
|
|
58375
58533
|
};
|
|
58376
58534
|
const toggleHeaderFooterEditMode = ({ editor, focusedSectionEditor, isEditMode, documentMode }) => {
|
|
58535
|
+
if (isHeadless(editor)) return;
|
|
58377
58536
|
editor.converter.headerEditors.forEach((item) => {
|
|
58378
58537
|
item.editor.setEditable(isEditMode, false);
|
|
58379
58538
|
item.editor.view.dom.setAttribute("aria-readonly", !isEditMode);
|
|
@@ -61443,10 +61602,12 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
61443
61602
|
};
|
|
61444
61603
|
if ("orientation" in screen && "addEventListener" in screen.orientation) {
|
|
61445
61604
|
screen.orientation.addEventListener("change", handleResize);
|
|
61446
|
-
} else {
|
|
61605
|
+
} else if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
|
|
61447
61606
|
window.matchMedia("(orientation: portrait)").addEventListener("change", handleResize);
|
|
61448
61607
|
}
|
|
61449
|
-
window.addEventListener
|
|
61608
|
+
if (typeof window !== "undefined" && typeof window.addEventListener === "function") {
|
|
61609
|
+
window.addEventListener("resize", () => handleResize);
|
|
61610
|
+
}
|
|
61450
61611
|
}
|
|
61451
61612
|
/**
|
|
61452
61613
|
* Get document identifier for telemetry (async - may generate hash)
|
|
@@ -61560,7 +61721,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
61560
61721
|
{ default: remarkStringify2 },
|
|
61561
61722
|
{ default: remarkGfm2 }
|
|
61562
61723
|
] = await Promise.all([
|
|
61563
|
-
Promise.resolve().then(() =>
|
|
61724
|
+
Promise.resolve().then(() => indexC3nnrhrj),
|
|
61564
61725
|
Promise.resolve().then(() => indexDRCvimau),
|
|
61565
61726
|
Promise.resolve().then(() => indexC_x_N6Uh),
|
|
61566
61727
|
Promise.resolve().then(() => indexD_sWOSiG),
|
|
@@ -61612,7 +61773,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
61612
61773
|
this.initDefaultStyles();
|
|
61613
61774
|
hasMadeUpdate = true;
|
|
61614
61775
|
}
|
|
61615
|
-
if (hasMadeUpdate) {
|
|
61776
|
+
if (hasMadeUpdate && !isHeadless(this)) {
|
|
61616
61777
|
const newTr = this.view.state.tr;
|
|
61617
61778
|
newTr.setMeta("forceUpdatePagination", true);
|
|
61618
61779
|
this.view.dispatch(newTr);
|
|
@@ -61778,7 +61939,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
61778
61939
|
* @returns {Object | void} Migration results
|
|
61779
61940
|
*/
|
|
61780
61941
|
processCollaborationMigrations() {
|
|
61781
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.
|
|
61942
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.1");
|
|
61782
61943
|
if (!this.options.ydoc) return;
|
|
61783
61944
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
61784
61945
|
let docVersion = metaMap.get("version");
|
|
@@ -62212,16 +62373,18 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
62212
62373
|
handleClick: __privateMethod$1(this, _Editor_instances, handleNodeSelection_fn).bind(this),
|
|
62213
62374
|
handleDoubleClick: async (view, pos, event) => {
|
|
62214
62375
|
if (this.options.documentMode !== "editing") return;
|
|
62215
|
-
|
|
62216
|
-
|
|
62217
|
-
|
|
62218
|
-
|
|
62219
|
-
|
|
62220
|
-
|
|
62221
|
-
|
|
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
|
+
}
|
|
62222
62385
|
}
|
|
62223
62386
|
event.stopPropagation();
|
|
62224
|
-
if (!this.options.editable) {
|
|
62387
|
+
if (!this.options.editable && !isHeadless(this)) {
|
|
62225
62388
|
this.setEditable(true, false);
|
|
62226
62389
|
toggleHeaderFooterEditMode({
|
|
62227
62390
|
editor: this,
|
|
@@ -63652,16 +63815,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
63652
63815
|
const { state: state2, dom } = view;
|
|
63653
63816
|
const { selection } = state2;
|
|
63654
63817
|
const containerRect = dom.getBoundingClientRect();
|
|
63655
|
-
let
|
|
63818
|
+
let x2, y2;
|
|
63656
63819
|
if (typeof eventLocation.clientX === "number" && typeof eventLocation.clientY === "number") {
|
|
63657
|
-
|
|
63820
|
+
x2 = eventLocation.clientX - containerRect.left;
|
|
63658
63821
|
y2 = eventLocation.clientY - containerRect.top;
|
|
63659
63822
|
} else {
|
|
63660
63823
|
const cursorCoords = view.coordsAtPos(selection.from);
|
|
63661
|
-
|
|
63824
|
+
x2 = cursorCoords.left - containerRect.left;
|
|
63662
63825
|
y2 = cursorCoords.top - containerRect.top;
|
|
63663
63826
|
}
|
|
63664
|
-
return { left:
|
|
63827
|
+
return { left: x2, top: y2 };
|
|
63665
63828
|
}
|
|
63666
63829
|
const SlashMenuPluginKey = new PluginKey("slashMenu");
|
|
63667
63830
|
const SlashMenu = Extension.create({
|
|
@@ -63940,17 +64103,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
63940
64103
|
if (!this.dom || this.contentDOM?.contains(target) || !dragHandle) {
|
|
63941
64104
|
return;
|
|
63942
64105
|
}
|
|
63943
|
-
let
|
|
64106
|
+
let x2 = 0;
|
|
63944
64107
|
let y2 = 0;
|
|
63945
64108
|
if (this.dom !== dragHandle) {
|
|
63946
64109
|
const domBox = this.dom.getBoundingClientRect();
|
|
63947
64110
|
const handleBox = dragHandle.getBoundingClientRect();
|
|
63948
64111
|
const offsetX = event.offsetX ?? event.nativeEvent?.offsetX;
|
|
63949
64112
|
const offsetY = event.offsetY ?? event.nativeEvent?.offsetY;
|
|
63950
|
-
|
|
64113
|
+
x2 = handleBox.x - domBox.x + offsetX;
|
|
63951
64114
|
y2 = handleBox.y - domBox.y + offsetY;
|
|
63952
64115
|
}
|
|
63953
|
-
event.dataTransfer?.setDragImage(this.dom,
|
|
64116
|
+
event.dataTransfer?.setDragImage(this.dom, x2, y2);
|
|
63954
64117
|
const pos = this.getPos();
|
|
63955
64118
|
if (typeof pos !== "number") {
|
|
63956
64119
|
return;
|
|
@@ -66857,9 +67020,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
66857
67020
|
}
|
|
66858
67021
|
});
|
|
66859
67022
|
}
|
|
66860
|
-
const shouldSkipNodeView = (editor) => {
|
|
66861
|
-
return editor.options.isHeadless;
|
|
66862
|
-
};
|
|
66863
67023
|
const ListItem = Node$1.create({
|
|
66864
67024
|
name: "listItem",
|
|
66865
67025
|
content: "paragraph* block*",
|
|
@@ -72041,17 +72201,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72041
72201
|
const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
|
|
72042
72202
|
if (reducedHexMatch) {
|
|
72043
72203
|
const arr = Array.from(reducedHexMatch).slice(1);
|
|
72044
|
-
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];
|
|
72045
72205
|
}
|
|
72046
72206
|
const hexMatch = hexRegex$2.exec(normalizedColor);
|
|
72047
72207
|
if (hexMatch) {
|
|
72048
72208
|
const arr = Array.from(hexMatch).slice(1);
|
|
72049
|
-
return [...arr.slice(0, 3).map((
|
|
72209
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(x2, 16)), parseInt(arr[3] || "ff", 16) / 255];
|
|
72050
72210
|
}
|
|
72051
72211
|
const rgbaMatch = rgbaRegex$2.exec(normalizedColor);
|
|
72052
72212
|
if (rgbaMatch) {
|
|
72053
72213
|
const arr = Array.from(rgbaMatch).slice(1);
|
|
72054
|
-
return [...arr.slice(0, 3).map((
|
|
72214
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(x2, 10)), parseFloat(arr[3] || "1")];
|
|
72055
72215
|
}
|
|
72056
72216
|
const hslaMatch = hslaRegex$2.exec(normalizedColor);
|
|
72057
72217
|
if (hslaMatch) {
|
|
@@ -72070,7 +72230,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72070
72230
|
}
|
|
72071
72231
|
return (hash2 >>> 0) % 2341;
|
|
72072
72232
|
}
|
|
72073
|
-
const colorToInt = (
|
|
72233
|
+
const colorToInt = (x2) => parseInt(x2.replace(/_/g, ""), 36);
|
|
72074
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) => {
|
|
72075
72235
|
const key2 = colorToInt(next2.substring(0, 3));
|
|
72076
72236
|
const hex2 = colorToInt(next2.substring(3)).toString(16);
|
|
@@ -72134,8 +72294,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72134
72294
|
};
|
|
72135
72295
|
function toHex(color2) {
|
|
72136
72296
|
const [r2, g, b2, a2] = parseToRgba(color2);
|
|
72137
|
-
let hex2 = (
|
|
72138
|
-
const h2 = guard(0, 255,
|
|
72297
|
+
let hex2 = (x2) => {
|
|
72298
|
+
const h2 = guard(0, 255, x2).toString(16);
|
|
72139
72299
|
return h2.length === 1 ? `0${h2}` : h2;
|
|
72140
72300
|
};
|
|
72141
72301
|
return `#${hex2(r2)}${hex2(g)}${hex2(b2)}${a2 < 1 ? hex2(Math.round(a2 * 255)) : ""}`;
|
|
@@ -72831,7 +72991,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72831
72991
|
}
|
|
72832
72992
|
if (dispatch) {
|
|
72833
72993
|
commands2.updateFieldAnnotationsAttributes([annotation], attrs);
|
|
72834
|
-
if (this.editor.options.pagination) {
|
|
72994
|
+
if (this.editor.options.pagination && !isHeadless(this.editor)) {
|
|
72835
72995
|
setTimeout(() => {
|
|
72836
72996
|
const newTr = this.editor.view.state.tr;
|
|
72837
72997
|
newTr.setMeta("forceUpdatePagination", true);
|
|
@@ -74239,10 +74399,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
74239
74399
|
let minX = 0;
|
|
74240
74400
|
let minY = 0;
|
|
74241
74401
|
let maxY = 0;
|
|
74242
|
-
attrs.polygon.forEach(([
|
|
74243
|
-
if (floatRight &&
|
|
74244
|
-
if (
|
|
74245
|
-
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;
|
|
74246
74406
|
if (y2 > maxY) maxY = y2;
|
|
74247
74407
|
if (y2 < minY) minY = y2;
|
|
74248
74408
|
});
|
|
@@ -74251,7 +74411,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
74251
74411
|
const scaleWidth = Math.min(1, size2.width / originalWidth);
|
|
74252
74412
|
const scaleHeight = Math.min(1, size2.height / originalHeight);
|
|
74253
74413
|
const verticalOffset = Math.max(0, marginOffset.top);
|
|
74254
|
-
const points = attrs.polygon.map(([
|
|
74414
|
+
const points = attrs.polygon.map(([x2, y2]) => `${horizontalOffset + x2 * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
|
|
74255
74415
|
style2 += `shape-outside: polygon(${points});`;
|
|
74256
74416
|
}
|
|
74257
74417
|
break;
|
|
@@ -74768,7 +74928,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
74768
74928
|
const pageNumberNode = schema.nodeFromJSON(pageNumberNodeJSON);
|
|
74769
74929
|
if (dispatch) {
|
|
74770
74930
|
tr.replaceSelectionWith(pageNumberNode, false);
|
|
74771
|
-
|
|
74931
|
+
if (!isHeadless(editor)) {
|
|
74932
|
+
tr.setMeta("forceUpdatePagination", true);
|
|
74933
|
+
}
|
|
74772
74934
|
}
|
|
74773
74935
|
return true;
|
|
74774
74936
|
}
|
|
@@ -77837,6 +77999,255 @@ ${l}
|
|
|
77837
77999
|
};
|
|
77838
78000
|
}
|
|
77839
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
|
+
});
|
|
77840
78251
|
const TextStyle = Mark.create({
|
|
77841
78252
|
name: "textStyle",
|
|
77842
78253
|
addOptions() {
|
|
@@ -79386,7 +79797,7 @@ ${l}
|
|
|
79386
79797
|
}
|
|
79387
79798
|
var _ref = isElement$2$1(element2) ? getWindow$1(element2) : window, visualViewport = _ref.visualViewport;
|
|
79388
79799
|
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
79389
|
-
var
|
|
79800
|
+
var x2 = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
79390
79801
|
var y2 = (clientRect2.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
79391
79802
|
var width = clientRect2.width / scaleX;
|
|
79392
79803
|
var height = clientRect2.height / scaleY;
|
|
@@ -79394,10 +79805,10 @@ ${l}
|
|
|
79394
79805
|
width,
|
|
79395
79806
|
height,
|
|
79396
79807
|
top: y2,
|
|
79397
|
-
right:
|
|
79808
|
+
right: x2 + width,
|
|
79398
79809
|
bottom: y2 + height,
|
|
79399
|
-
left:
|
|
79400
|
-
x,
|
|
79810
|
+
left: x2,
|
|
79811
|
+
x: x2,
|
|
79401
79812
|
y: y2
|
|
79402
79813
|
};
|
|
79403
79814
|
}
|
|
@@ -79598,25 +80009,25 @@ ${l}
|
|
|
79598
80009
|
left: "auto"
|
|
79599
80010
|
};
|
|
79600
80011
|
function roundOffsetsByDPR(_ref, win) {
|
|
79601
|
-
var
|
|
80012
|
+
var x2 = _ref.x, y2 = _ref.y;
|
|
79602
80013
|
var dpr = win.devicePixelRatio || 1;
|
|
79603
80014
|
return {
|
|
79604
|
-
x: round$1(
|
|
80015
|
+
x: round$1(x2 * dpr) / dpr || 0,
|
|
79605
80016
|
y: round$1(y2 * dpr) / dpr || 0
|
|
79606
80017
|
};
|
|
79607
80018
|
}
|
|
79608
80019
|
function mapToStyles(_ref2) {
|
|
79609
80020
|
var _Object$assign2;
|
|
79610
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;
|
|
79611
|
-
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;
|
|
79612
80023
|
var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
|
|
79613
|
-
x,
|
|
80024
|
+
x: x2,
|
|
79614
80025
|
y: y2
|
|
79615
80026
|
}) : {
|
|
79616
|
-
x,
|
|
80027
|
+
x: x2,
|
|
79617
80028
|
y: y2
|
|
79618
80029
|
};
|
|
79619
|
-
|
|
80030
|
+
x2 = _ref3.x;
|
|
79620
80031
|
y2 = _ref3.y;
|
|
79621
80032
|
var hasX = offsets.hasOwnProperty("x");
|
|
79622
80033
|
var hasY = offsets.hasOwnProperty("y");
|
|
@@ -79650,27 +80061,27 @@ ${l}
|
|
|
79650
80061
|
// $FlowFixMe[prop-missing]
|
|
79651
80062
|
offsetParent[widthProp]
|
|
79652
80063
|
);
|
|
79653
|
-
|
|
79654
|
-
|
|
80064
|
+
x2 -= offsetX - popperRect.width;
|
|
80065
|
+
x2 *= gpuAcceleration ? 1 : -1;
|
|
79655
80066
|
}
|
|
79656
80067
|
}
|
|
79657
80068
|
var commonStyles = Object.assign({
|
|
79658
80069
|
position: position2
|
|
79659
80070
|
}, adaptive && unsetSides);
|
|
79660
80071
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
79661
|
-
x,
|
|
80072
|
+
x: x2,
|
|
79662
80073
|
y: y2
|
|
79663
80074
|
}, getWindow$1(popper2)) : {
|
|
79664
|
-
x,
|
|
80075
|
+
x: x2,
|
|
79665
80076
|
y: y2
|
|
79666
80077
|
};
|
|
79667
|
-
|
|
80078
|
+
x2 = _ref4.x;
|
|
79668
80079
|
y2 = _ref4.y;
|
|
79669
80080
|
if (gpuAcceleration) {
|
|
79670
80081
|
var _Object$assign;
|
|
79671
|
-
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));
|
|
79672
80083
|
}
|
|
79673
|
-
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));
|
|
79674
80085
|
}
|
|
79675
80086
|
function computeStyles(_ref5) {
|
|
79676
80087
|
var state2 = _ref5.state, options = _ref5.options;
|
|
@@ -79784,21 +80195,21 @@ ${l}
|
|
|
79784
80195
|
var visualViewport = win.visualViewport;
|
|
79785
80196
|
var width = html2.clientWidth;
|
|
79786
80197
|
var height = html2.clientHeight;
|
|
79787
|
-
var
|
|
80198
|
+
var x2 = 0;
|
|
79788
80199
|
var y2 = 0;
|
|
79789
80200
|
if (visualViewport) {
|
|
79790
80201
|
width = visualViewport.width;
|
|
79791
80202
|
height = visualViewport.height;
|
|
79792
80203
|
var layoutViewport = isLayoutViewport();
|
|
79793
80204
|
if (layoutViewport || !layoutViewport && strategy === "fixed") {
|
|
79794
|
-
|
|
80205
|
+
x2 = visualViewport.offsetLeft;
|
|
79795
80206
|
y2 = visualViewport.offsetTop;
|
|
79796
80207
|
}
|
|
79797
80208
|
}
|
|
79798
80209
|
return {
|
|
79799
80210
|
width,
|
|
79800
80211
|
height,
|
|
79801
|
-
x:
|
|
80212
|
+
x: x2 + getWindowScrollBarX$1(element2),
|
|
79802
80213
|
y: y2
|
|
79803
80214
|
};
|
|
79804
80215
|
}
|
|
@@ -79809,15 +80220,15 @@ ${l}
|
|
|
79809
80220
|
var body = (_element$ownerDocumen = element2.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
79810
80221
|
var width = max$1(html2.scrollWidth, html2.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
79811
80222
|
var height = max$1(html2.scrollHeight, html2.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
79812
|
-
var
|
|
80223
|
+
var x2 = -winScroll.scrollLeft + getWindowScrollBarX$1(element2);
|
|
79813
80224
|
var y2 = -winScroll.scrollTop;
|
|
79814
80225
|
if (getComputedStyle$2(body || html2).direction === "rtl") {
|
|
79815
|
-
|
|
80226
|
+
x2 += max$1(html2.clientWidth, body ? body.clientWidth : 0) - width;
|
|
79816
80227
|
}
|
|
79817
80228
|
return {
|
|
79818
80229
|
width,
|
|
79819
80230
|
height,
|
|
79820
|
-
x,
|
|
80231
|
+
x: x2,
|
|
79821
80232
|
y: y2
|
|
79822
80233
|
};
|
|
79823
80234
|
}
|
|
@@ -80194,9 +80605,9 @@ ${l}
|
|
|
80194
80605
|
acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
|
|
80195
80606
|
return acc;
|
|
80196
80607
|
}, {});
|
|
80197
|
-
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;
|
|
80198
80609
|
if (state2.modifiersData.popperOffsets != null) {
|
|
80199
|
-
state2.modifiersData.popperOffsets.x +=
|
|
80610
|
+
state2.modifiersData.popperOffsets.x += x2;
|
|
80200
80611
|
state2.modifiersData.popperOffsets.y += y2;
|
|
80201
80612
|
}
|
|
80202
80613
|
state2.modifiersData[name] = data;
|
|
@@ -82147,7 +82558,7 @@ ${l}
|
|
|
82147
82558
|
}
|
|
82148
82559
|
function rectToClientRect(rect) {
|
|
82149
82560
|
const {
|
|
82150
|
-
x,
|
|
82561
|
+
x: x2,
|
|
82151
82562
|
y: y2,
|
|
82152
82563
|
width,
|
|
82153
82564
|
height
|
|
@@ -82156,10 +82567,10 @@ ${l}
|
|
|
82156
82567
|
width,
|
|
82157
82568
|
height,
|
|
82158
82569
|
top: y2,
|
|
82159
|
-
left:
|
|
82160
|
-
right:
|
|
82570
|
+
left: x2,
|
|
82571
|
+
right: x2 + width,
|
|
82161
82572
|
bottom: y2 + height,
|
|
82162
|
-
x,
|
|
82573
|
+
x: x2,
|
|
82163
82574
|
y: y2
|
|
82164
82575
|
};
|
|
82165
82576
|
}
|
|
@@ -82233,7 +82644,7 @@ ${l}
|
|
|
82233
82644
|
strategy
|
|
82234
82645
|
});
|
|
82235
82646
|
let {
|
|
82236
|
-
x,
|
|
82647
|
+
x: x2,
|
|
82237
82648
|
y: y2
|
|
82238
82649
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
82239
82650
|
let statefulPlacement = placement;
|
|
@@ -82250,7 +82661,7 @@ ${l}
|
|
|
82250
82661
|
data,
|
|
82251
82662
|
reset
|
|
82252
82663
|
} = await fn2({
|
|
82253
|
-
x,
|
|
82664
|
+
x: x2,
|
|
82254
82665
|
y: y2,
|
|
82255
82666
|
initialPlacement: placement,
|
|
82256
82667
|
placement: statefulPlacement,
|
|
@@ -82263,7 +82674,7 @@ ${l}
|
|
|
82263
82674
|
floating
|
|
82264
82675
|
}
|
|
82265
82676
|
});
|
|
82266
|
-
|
|
82677
|
+
x2 = nextX != null ? nextX : x2;
|
|
82267
82678
|
y2 = nextY != null ? nextY : y2;
|
|
82268
82679
|
middlewareData = {
|
|
82269
82680
|
...middlewareData,
|
|
@@ -82286,7 +82697,7 @@ ${l}
|
|
|
82286
82697
|
}) : reset.rects;
|
|
82287
82698
|
}
|
|
82288
82699
|
({
|
|
82289
|
-
x,
|
|
82700
|
+
x: x2,
|
|
82290
82701
|
y: y2
|
|
82291
82702
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
82292
82703
|
}
|
|
@@ -82294,7 +82705,7 @@ ${l}
|
|
|
82294
82705
|
}
|
|
82295
82706
|
}
|
|
82296
82707
|
return {
|
|
82297
|
-
x,
|
|
82708
|
+
x: x2,
|
|
82298
82709
|
y: y2,
|
|
82299
82710
|
placement: statefulPlacement,
|
|
82300
82711
|
strategy,
|
|
@@ -82307,7 +82718,7 @@ ${l}
|
|
|
82307
82718
|
options = {};
|
|
82308
82719
|
}
|
|
82309
82720
|
const {
|
|
82310
|
-
x,
|
|
82721
|
+
x: x2,
|
|
82311
82722
|
y: y2,
|
|
82312
82723
|
platform: platform2,
|
|
82313
82724
|
rects,
|
|
@@ -82331,7 +82742,7 @@ ${l}
|
|
|
82331
82742
|
strategy
|
|
82332
82743
|
}));
|
|
82333
82744
|
const rect = elementContext === "floating" ? {
|
|
82334
|
-
x,
|
|
82745
|
+
x: x2,
|
|
82335
82746
|
y: y2,
|
|
82336
82747
|
width: rects.floating.width,
|
|
82337
82748
|
height: rects.floating.height
|
|
@@ -82600,16 +83011,16 @@ ${l}
|
|
|
82600
83011
|
height,
|
|
82601
83012
|
$: $2
|
|
82602
83013
|
} = getCssDimensions(domElement);
|
|
82603
|
-
let
|
|
83014
|
+
let x2 = ($2 ? round(rect.width) : rect.width) / width;
|
|
82604
83015
|
let y2 = ($2 ? round(rect.height) : rect.height) / height;
|
|
82605
|
-
if (!
|
|
82606
|
-
|
|
83016
|
+
if (!x2 || !Number.isFinite(x2)) {
|
|
83017
|
+
x2 = 1;
|
|
82607
83018
|
}
|
|
82608
83019
|
if (!y2 || !Number.isFinite(y2)) {
|
|
82609
83020
|
y2 = 1;
|
|
82610
83021
|
}
|
|
82611
83022
|
return {
|
|
82612
|
-
x,
|
|
83023
|
+
x: x2,
|
|
82613
83024
|
y: y2
|
|
82614
83025
|
};
|
|
82615
83026
|
}
|
|
@@ -82653,7 +83064,7 @@ ${l}
|
|
|
82653
83064
|
}
|
|
82654
83065
|
}
|
|
82655
83066
|
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
82656
|
-
let
|
|
83067
|
+
let x2 = (clientRect2.left + visualOffsets.x) / scale.x;
|
|
82657
83068
|
let y2 = (clientRect2.top + visualOffsets.y) / scale.y;
|
|
82658
83069
|
let width = clientRect2.width / scale.x;
|
|
82659
83070
|
let height = clientRect2.height / scale.y;
|
|
@@ -82668,11 +83079,11 @@ ${l}
|
|
|
82668
83079
|
const css = getComputedStyle$1(currentIFrame);
|
|
82669
83080
|
const left2 = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
82670
83081
|
const top2 = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
82671
|
-
|
|
83082
|
+
x2 *= iframeScale.x;
|
|
82672
83083
|
y2 *= iframeScale.y;
|
|
82673
83084
|
width *= iframeScale.x;
|
|
82674
83085
|
height *= iframeScale.y;
|
|
82675
|
-
|
|
83086
|
+
x2 += left2;
|
|
82676
83087
|
y2 += top2;
|
|
82677
83088
|
currentWin = getWindow(currentIFrame);
|
|
82678
83089
|
currentIFrame = getFrameElement(currentWin);
|
|
@@ -82681,7 +83092,7 @@ ${l}
|
|
|
82681
83092
|
return rectToClientRect({
|
|
82682
83093
|
width,
|
|
82683
83094
|
height,
|
|
82684
|
-
x,
|
|
83095
|
+
x: x2,
|
|
82685
83096
|
y: y2
|
|
82686
83097
|
});
|
|
82687
83098
|
}
|
|
@@ -82694,10 +83105,10 @@ ${l}
|
|
|
82694
83105
|
}
|
|
82695
83106
|
function getHTMLOffset(documentElement, scroll) {
|
|
82696
83107
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
82697
|
-
const
|
|
83108
|
+
const x2 = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
82698
83109
|
const y2 = htmlRect.top + scroll.scrollTop;
|
|
82699
83110
|
return {
|
|
82700
|
-
x,
|
|
83111
|
+
x: x2,
|
|
82701
83112
|
y: y2
|
|
82702
83113
|
};
|
|
82703
83114
|
}
|
|
@@ -82749,15 +83160,15 @@ ${l}
|
|
|
82749
83160
|
const body = element2.ownerDocument.body;
|
|
82750
83161
|
const width = max$3(html2.scrollWidth, html2.clientWidth, body.scrollWidth, body.clientWidth);
|
|
82751
83162
|
const height = max$3(html2.scrollHeight, html2.clientHeight, body.scrollHeight, body.clientHeight);
|
|
82752
|
-
let
|
|
83163
|
+
let x2 = -scroll.scrollLeft + getWindowScrollBarX(element2);
|
|
82753
83164
|
const y2 = -scroll.scrollTop;
|
|
82754
83165
|
if (getComputedStyle$1(body).direction === "rtl") {
|
|
82755
|
-
|
|
83166
|
+
x2 += max$3(html2.clientWidth, body.clientWidth) - width;
|
|
82756
83167
|
}
|
|
82757
83168
|
return {
|
|
82758
83169
|
width,
|
|
82759
83170
|
height,
|
|
82760
|
-
x,
|
|
83171
|
+
x: x2,
|
|
82761
83172
|
y: y2
|
|
82762
83173
|
};
|
|
82763
83174
|
}
|
|
@@ -82768,14 +83179,14 @@ ${l}
|
|
|
82768
83179
|
const visualViewport = win.visualViewport;
|
|
82769
83180
|
let width = html2.clientWidth;
|
|
82770
83181
|
let height = html2.clientHeight;
|
|
82771
|
-
let
|
|
83182
|
+
let x2 = 0;
|
|
82772
83183
|
let y2 = 0;
|
|
82773
83184
|
if (visualViewport) {
|
|
82774
83185
|
width = visualViewport.width;
|
|
82775
83186
|
height = visualViewport.height;
|
|
82776
83187
|
const visualViewportBased = isWebKit();
|
|
82777
83188
|
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
82778
|
-
|
|
83189
|
+
x2 = visualViewport.offsetLeft;
|
|
82779
83190
|
y2 = visualViewport.offsetTop;
|
|
82780
83191
|
}
|
|
82781
83192
|
}
|
|
@@ -82795,7 +83206,7 @@ ${l}
|
|
|
82795
83206
|
return {
|
|
82796
83207
|
width,
|
|
82797
83208
|
height,
|
|
82798
|
-
x,
|
|
83209
|
+
x: x2,
|
|
82799
83210
|
y: y2
|
|
82800
83211
|
};
|
|
82801
83212
|
}
|
|
@@ -82807,12 +83218,12 @@ ${l}
|
|
|
82807
83218
|
const scale = isHTMLElement$2(element2) ? getScale(element2) : createCoords(1);
|
|
82808
83219
|
const width = element2.clientWidth * scale.x;
|
|
82809
83220
|
const height = element2.clientHeight * scale.y;
|
|
82810
|
-
const
|
|
83221
|
+
const x2 = left2 * scale.x;
|
|
82811
83222
|
const y2 = top2 * scale.y;
|
|
82812
83223
|
return {
|
|
82813
83224
|
width,
|
|
82814
83225
|
height,
|
|
82815
|
-
x,
|
|
83226
|
+
x: x2,
|
|
82816
83227
|
y: y2
|
|
82817
83228
|
};
|
|
82818
83229
|
}
|
|
@@ -82932,10 +83343,10 @@ ${l}
|
|
|
82932
83343
|
setLeftRTLScrollbarOffset();
|
|
82933
83344
|
}
|
|
82934
83345
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
82935
|
-
const
|
|
83346
|
+
const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
82936
83347
|
const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
82937
83348
|
return {
|
|
82938
|
-
x,
|
|
83349
|
+
x: x2,
|
|
82939
83350
|
y: y2,
|
|
82940
83351
|
width: rect.width,
|
|
82941
83352
|
height: rect.height
|
|
@@ -83186,6 +83597,10 @@ ${l}
|
|
|
83186
83597
|
};
|
|
83187
83598
|
},
|
|
83188
83599
|
addCommands() {
|
|
83600
|
+
const editor = this.editor;
|
|
83601
|
+
if (isHeadless(editor)) {
|
|
83602
|
+
return {};
|
|
83603
|
+
}
|
|
83189
83604
|
return {
|
|
83190
83605
|
insertPageBreak: () => ({ commands: commands2 }) => {
|
|
83191
83606
|
return commands2.insertContent({
|
|
@@ -83196,20 +83611,26 @@ ${l}
|
|
|
83196
83611
|
* Toggle pagination on/off
|
|
83197
83612
|
* @returns {void}
|
|
83198
83613
|
*/
|
|
83199
|
-
togglePagination: () => ({ tr, state: state2, dispatch, editor }) => {
|
|
83614
|
+
togglePagination: () => ({ tr, state: state2, dispatch, editor: editor2 }) => {
|
|
83200
83615
|
const isEnabled = PaginationPluginKey.getState(state2)?.isEnabled;
|
|
83201
83616
|
tr.setMeta(PaginationPluginKey, { isEnabled: !isEnabled });
|
|
83202
83617
|
if (dispatch) {
|
|
83203
83618
|
dispatch(tr);
|
|
83204
|
-
|
|
83619
|
+
editor2.initDefaultStyles(editor2.element, !isEnabled);
|
|
83205
83620
|
return true;
|
|
83206
83621
|
}
|
|
83207
83622
|
}
|
|
83208
83623
|
};
|
|
83209
83624
|
},
|
|
83210
83625
|
addShortcuts() {
|
|
83626
|
+
const editor = this.editor;
|
|
83627
|
+
if (isHeadless(editor)) {
|
|
83628
|
+
return {};
|
|
83629
|
+
}
|
|
83211
83630
|
return {
|
|
83212
|
-
"Mod-Enter": () =>
|
|
83631
|
+
"Mod-Enter": () => {
|
|
83632
|
+
return editor.commands.insertPageBreak();
|
|
83633
|
+
}
|
|
83213
83634
|
};
|
|
83214
83635
|
},
|
|
83215
83636
|
/**
|
|
@@ -83217,6 +83638,9 @@ ${l}
|
|
|
83217
83638
|
*/
|
|
83218
83639
|
addPmPlugins() {
|
|
83219
83640
|
const editor = this.editor;
|
|
83641
|
+
if (isHeadless(editor)) {
|
|
83642
|
+
return [];
|
|
83643
|
+
}
|
|
83220
83644
|
let isUpdating = false;
|
|
83221
83645
|
let shouldUpdate = false;
|
|
83222
83646
|
let hasInitialized = false;
|
|
@@ -83232,7 +83656,7 @@ ${l}
|
|
|
83232
83656
|
isReadyToInit: false,
|
|
83233
83657
|
decorations: DecorationSet.empty,
|
|
83234
83658
|
isDebugging,
|
|
83235
|
-
isEnabled: editor.options.pagination
|
|
83659
|
+
isEnabled: editor.options.pagination && !isHeadless(editor)
|
|
83236
83660
|
};
|
|
83237
83661
|
},
|
|
83238
83662
|
apply(tr, oldState, prevEditorState, newEditorState) {
|
|
@@ -83310,6 +83734,7 @@ ${l}
|
|
|
83310
83734
|
let previousDecorations = DecorationSet.empty;
|
|
83311
83735
|
return {
|
|
83312
83736
|
update: (view) => {
|
|
83737
|
+
if (isHeadless(editor)) return;
|
|
83313
83738
|
if (!PaginationPluginKey.getState(view.state)?.isEnabled) return;
|
|
83314
83739
|
if (!shouldUpdate || isUpdating) return;
|
|
83315
83740
|
const performPaginationUpdate = () => {
|
|
@@ -83333,6 +83758,7 @@ ${l}
|
|
|
83333
83758
|
},
|
|
83334
83759
|
props: {
|
|
83335
83760
|
decorations(state2) {
|
|
83761
|
+
if (isHeadless(editor)) return DecorationSet.empty;
|
|
83336
83762
|
const pluginState = PaginationPluginKey.getState(state2);
|
|
83337
83763
|
return pluginState.isEnabled ? pluginState.decorations : DecorationSet.empty;
|
|
83338
83764
|
}
|
|
@@ -83701,7 +84127,7 @@ ${l}
|
|
|
83701
84127
|
return void 0;
|
|
83702
84128
|
};
|
|
83703
84129
|
const onHeaderFooterDblClick = (editor, currentFocusedSectionEditor) => {
|
|
83704
|
-
if (editor.options.documentMode !== "editing") return;
|
|
84130
|
+
if (isHeadless(editor) || editor.options.documentMode !== "editing") return;
|
|
83705
84131
|
editor.setEditable(false, false);
|
|
83706
84132
|
toggleHeaderFooterEditMode({
|
|
83707
84133
|
editor,
|
|
@@ -83773,6 +84199,7 @@ ${l}
|
|
|
83773
84199
|
return actualBreak;
|
|
83774
84200
|
}
|
|
83775
84201
|
const onImageLoad = (editor) => {
|
|
84202
|
+
if (isHeadless(editor)) return;
|
|
83776
84203
|
if (typeof requestAnimationFrame !== "function") return;
|
|
83777
84204
|
requestAnimationFrame(() => {
|
|
83778
84205
|
const newTr = editor.view.state.tr;
|
|
@@ -83798,22 +84225,22 @@ ${l}
|
|
|
83798
84225
|
const rect = elements.reference.getBoundingClientRect();
|
|
83799
84226
|
const containerRect = editorElement.getBoundingClientRect();
|
|
83800
84227
|
const scaleFactor = getScaleFactor(editorElement);
|
|
83801
|
-
const
|
|
84228
|
+
const x2 = Math.round((rect.left - containerRect.left) / scaleFactor);
|
|
83802
84229
|
const y2 = Math.round((rect.top - containerRect.top) / scaleFactor);
|
|
83803
84230
|
const width = Math.round(rect.width / scaleFactor);
|
|
83804
84231
|
const height = Math.round(rect.height / scaleFactor);
|
|
83805
84232
|
return {
|
|
83806
|
-
x,
|
|
84233
|
+
x: x2,
|
|
83807
84234
|
y: y2,
|
|
83808
84235
|
data: { width, height }
|
|
83809
84236
|
};
|
|
83810
84237
|
}
|
|
83811
84238
|
}
|
|
83812
84239
|
]
|
|
83813
|
-
}).then(({ x, y: y2, middlewareData }) => {
|
|
84240
|
+
}).then(({ x: x2, y: y2, middlewareData }) => {
|
|
83814
84241
|
Object.assign(floatingSeparator.style, {
|
|
83815
84242
|
top: `${y2}px`,
|
|
83816
|
-
left: `${
|
|
84243
|
+
left: `${x2}px`,
|
|
83817
84244
|
width: `${middlewareData.copy.width}px`,
|
|
83818
84245
|
height: `${middlewareData.copy.height}px`,
|
|
83819
84246
|
visibility: middlewareData.hide?.referenceHidden ? "hidden" : "visible"
|
|
@@ -84077,6 +84504,7 @@ ${l}
|
|
|
84077
84504
|
}
|
|
84078
84505
|
}
|
|
84079
84506
|
const TextContentCache = /* @__PURE__ */ new WeakMap();
|
|
84507
|
+
const transparentInlineNodes = /* @__PURE__ */ new Set(["run", "bookmarkStart"]);
|
|
84080
84508
|
function textContent(node2) {
|
|
84081
84509
|
let cached = TextContentCache.get(node2);
|
|
84082
84510
|
if (cached) return cached;
|
|
@@ -84085,7 +84513,7 @@ ${l}
|
|
|
84085
84513
|
let child = node2.child(i2);
|
|
84086
84514
|
if (child.isText) content2 += child.text;
|
|
84087
84515
|
else if (child.isLeaf) content2 += "";
|
|
84088
|
-
else if (child.type && child.type.name
|
|
84516
|
+
else if (child.type && transparentInlineNodes.has(child.type.name)) content2 += textContent(child);
|
|
84089
84517
|
else content2 += " " + textContent(child) + " ";
|
|
84090
84518
|
}
|
|
84091
84519
|
TextContentCache.set(node2, content2);
|
|
@@ -84093,26 +84521,49 @@ ${l}
|
|
|
84093
84521
|
}
|
|
84094
84522
|
function mapIndexToDocPos(node2, start2, index2) {
|
|
84095
84523
|
if (index2 <= 0) return start2;
|
|
84096
|
-
const
|
|
84097
|
-
if (index2 >=
|
|
84098
|
-
|
|
84099
|
-
|
|
84100
|
-
|
|
84101
|
-
|
|
84102
|
-
|
|
84103
|
-
|
|
84104
|
-
const
|
|
84105
|
-
|
|
84106
|
-
|
|
84107
|
-
|
|
84108
|
-
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;
|
|
84109
84540
|
}
|
|
84110
|
-
|
|
84111
|
-
|
|
84112
|
-
|
|
84113
|
-
|
|
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;
|
|
84114
84566
|
}
|
|
84115
|
-
const transparentInlineNodes = /* @__PURE__ */ new Set(["run"]);
|
|
84116
84567
|
function scanTextblocks(node2, from2, to, f2, nodeStart = 0) {
|
|
84117
84568
|
const isTransparentInline = node2.inlineContent && node2.type && transparentInlineNodes.has(node2.type.name);
|
|
84118
84569
|
if (node2.inlineContent && !isTransparentInline) {
|
|
@@ -84588,9 +85039,9 @@ ${l}
|
|
|
84588
85039
|
return {};
|
|
84589
85040
|
},
|
|
84590
85041
|
addPmPlugins() {
|
|
84591
|
-
const
|
|
85042
|
+
const isHeadless2 = this.editor.options.isHeadless;
|
|
84592
85043
|
const hasDocument = typeof document !== "undefined";
|
|
84593
|
-
if (
|
|
85044
|
+
if (isHeadless2 || !hasDocument) return [];
|
|
84594
85045
|
return [nodeResizer(["image"], this.editor)];
|
|
84595
85046
|
}
|
|
84596
85047
|
});
|
|
@@ -84710,7 +85161,8 @@ ${l}
|
|
|
84710
85161
|
NodeResizer,
|
|
84711
85162
|
CustomSelection,
|
|
84712
85163
|
TextTransform,
|
|
84713
|
-
VectorShape
|
|
85164
|
+
VectorShape,
|
|
85165
|
+
ShapeGroup
|
|
84714
85166
|
];
|
|
84715
85167
|
};
|
|
84716
85168
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
@@ -86807,14 +87259,14 @@ ${unwrappedProps}
|
|
|
86807
87259
|
}
|
|
86808
87260
|
return viewMeasurer$1.getBoundingClientRect();
|
|
86809
87261
|
}
|
|
86810
|
-
function getPointRect$1(
|
|
87262
|
+
function getPointRect$1(x2, y2) {
|
|
86811
87263
|
const viewRect = ensureViewBoundingRect$1();
|
|
86812
87264
|
return {
|
|
86813
87265
|
top: y2,
|
|
86814
|
-
left:
|
|
87266
|
+
left: x2,
|
|
86815
87267
|
height: 0,
|
|
86816
87268
|
width: 0,
|
|
86817
|
-
right: viewRect.width -
|
|
87269
|
+
right: viewRect.width - x2,
|
|
86818
87270
|
bottom: viewRect.height - y2
|
|
86819
87271
|
};
|
|
86820
87272
|
}
|
|
@@ -87652,8 +88104,8 @@ ${style2}
|
|
|
87652
88104
|
if (follower === null)
|
|
87653
88105
|
return;
|
|
87654
88106
|
const target = VBinder.targetRef;
|
|
87655
|
-
const { x, y: y2, overlap } = props;
|
|
87656
|
-
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);
|
|
87657
88109
|
follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
|
|
87658
88110
|
follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
|
|
87659
88111
|
const { width, minWidth, placement, internalShift, flip: flip2 } = props;
|
|
@@ -87823,8 +88275,8 @@ ${style2}
|
|
|
87823
88275
|
return ResizeObserverSize2;
|
|
87824
88276
|
})();
|
|
87825
88277
|
var DOMRectReadOnly$1 = (function() {
|
|
87826
|
-
function DOMRectReadOnly2(
|
|
87827
|
-
this.x =
|
|
88278
|
+
function DOMRectReadOnly2(x2, y2, width, height) {
|
|
88279
|
+
this.x = x2;
|
|
87828
88280
|
this.y = y2;
|
|
87829
88281
|
this.width = width;
|
|
87830
88282
|
this.height = height;
|
|
@@ -87835,8 +88287,8 @@ ${style2}
|
|
|
87835
88287
|
return freeze$1(this);
|
|
87836
88288
|
}
|
|
87837
88289
|
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
87838
|
-
var _a2 = this,
|
|
87839
|
-
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 };
|
|
87840
88292
|
};
|
|
87841
88293
|
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
87842
88294
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
@@ -95882,7 +96334,7 @@ ${style2}
|
|
|
95882
96334
|
key: 0,
|
|
95883
96335
|
class: "linked-style-buttons"
|
|
95884
96336
|
};
|
|
95885
|
-
const _hoisted_2$8$1 = ["onClick", "onKeydown"];
|
|
96337
|
+
const _hoisted_2$8$1 = ["onClick", "onKeydown", "aria-label"];
|
|
95886
96338
|
const _sfc_main$c$1 = {
|
|
95887
96339
|
__name: "LinkedStyle",
|
|
95888
96340
|
props: {
|
|
@@ -95927,7 +96379,7 @@ ${style2}
|
|
|
95927
96379
|
moveToPreviousStyle(index2);
|
|
95928
96380
|
break;
|
|
95929
96381
|
case "Enter":
|
|
95930
|
-
|
|
96382
|
+
event.preventDefault();
|
|
95931
96383
|
select2(style2);
|
|
95932
96384
|
break;
|
|
95933
96385
|
}
|
|
@@ -95943,6 +96395,7 @@ ${style2}
|
|
|
95943
96395
|
class: normalizeClass(["style-item", { selected: __props.selectedOption === style2.id }]),
|
|
95944
96396
|
onClick: ($event) => select2(style2),
|
|
95945
96397
|
onKeydown: (event) => handleKeyDown2(event, index2, style2),
|
|
96398
|
+
"aria-label": `Linked style - ${style2.id}`,
|
|
95946
96399
|
ref_for: true,
|
|
95947
96400
|
ref_key: "styleRefs",
|
|
95948
96401
|
ref: styleRefs
|
|
@@ -95958,7 +96411,7 @@ ${style2}
|
|
|
95958
96411
|
};
|
|
95959
96412
|
}
|
|
95960
96413
|
};
|
|
95961
|
-
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"]]);
|
|
95962
96415
|
const _hoisted_1$a$1 = {
|
|
95963
96416
|
key: 0,
|
|
95964
96417
|
class: "link-title"
|
|
@@ -97678,11 +98131,15 @@ ${style2}
|
|
|
97678
98131
|
}
|
|
97679
98132
|
}
|
|
97680
98133
|
],
|
|
97681
|
-
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;
|
|
97682
98138
|
linkedStyles.disabled.value = false;
|
|
97683
98139
|
},
|
|
97684
98140
|
onDeactivate: () => {
|
|
97685
98141
|
linkedStyles.disabled.value = true;
|
|
98142
|
+
linkedStyles.label.value = toolbarTexts2.formatText;
|
|
97686
98143
|
}
|
|
97687
98144
|
});
|
|
97688
98145
|
const renderIcon = (value, selectedValue) => {
|
|
@@ -98387,10 +98844,11 @@ ${style2}
|
|
|
98387
98844
|
item.setDisabled(!canRejectTrackedChanges);
|
|
98388
98845
|
}
|
|
98389
98846
|
if (item.name.value === "linkedStyles") {
|
|
98847
|
+
const linkedStyleMark = marks.find((mark2) => mark2.name === "styleId");
|
|
98390
98848
|
if (this.activeEditor && !getQuickFormatList(this.activeEditor).length) {
|
|
98391
98849
|
return item.deactivate();
|
|
98392
98850
|
} else {
|
|
98393
|
-
return item.activate();
|
|
98851
|
+
return item.activate({ linkedStyleMark });
|
|
98394
98852
|
}
|
|
98395
98853
|
}
|
|
98396
98854
|
const rawActiveMark = marks.find((mark2) => mark2.name === item.name.value);
|
|
@@ -99729,7 +100187,7 @@ ${style2}
|
|
|
99729
100187
|
}
|
|
99730
100188
|
};
|
|
99731
100189
|
function adjustPaginationBreaks(editorElem, editor) {
|
|
99732
|
-
if (!editorElem.value || !editor?.value?.options?.scale) return;
|
|
100190
|
+
if (!editorElem.value || !editor?.value?.options?.scale || isHeadless(editor)) return;
|
|
99733
100191
|
const zoom = editor.value.options.scale;
|
|
99734
100192
|
const bounds = editorElem.value.getBoundingClientRect();
|
|
99735
100193
|
const breakNodes = editorElem.value.querySelectorAll(".pagination-break-wrapper");
|
|
@@ -100163,6 +100621,7 @@ ${style2}
|
|
|
100163
100621
|
...props.options
|
|
100164
100622
|
});
|
|
100165
100623
|
editor.value.on("paginationUpdate", () => {
|
|
100624
|
+
if (isHeadless(editor.value)) return;
|
|
100166
100625
|
adjustPaginationBreaks(editorElem, editor);
|
|
100167
100626
|
});
|
|
100168
100627
|
editor.value.on("collaborationReady", () => {
|
|
@@ -100321,7 +100780,7 @@ ${style2}
|
|
|
100321
100780
|
};
|
|
100322
100781
|
}
|
|
100323
100782
|
};
|
|
100324
|
-
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"]]);
|
|
100325
100784
|
const _hoisted_1$h = ["innerHTML"];
|
|
100326
100785
|
const _sfc_main$i = {
|
|
100327
100786
|
__name: "SuperInput",
|
|
@@ -100924,8 +101383,8 @@ ${style2}
|
|
|
100924
101383
|
return array;
|
|
100925
101384
|
};
|
|
100926
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/e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AAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAAAAhAGeA/LSbBgAAzSAAABUAGAAAAAAAAQAAAKSBRycAAHdvcmQvdGhlbWUvdGhlbWUxLnhtbFVUBQADMNDOEnV4CwABBPUBAAAEFAAAAFBLAQIeAwoAAAAAAJNkTVsAAAAAAAAAAAAAAAALABgAAAAAAAAAEADtQTEuAAB3b3JkL19yZWxzL1VUBQADhhztaHV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAAAIQCzvosd/gAAALYDAAAcABgAAAAAAAEAAACkgXYuAAB3b3JkL19yZWxzL2RvY3VtZW50LnhtbC5yZWxzVVQFAAMw0M4SdXgLAAEE9QEAAAQUAAAAUEsFBgAAAAARABEAqQUAAMovAAAAAA==";
|
|
100927
|
-
function getDefaultExportFromCjs(
|
|
100928
|
-
return
|
|
101386
|
+
function getDefaultExportFromCjs(x2) {
|
|
101387
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
100929
101388
|
}
|
|
100930
101389
|
var eventemitter3 = { exports: {} };
|
|
100931
101390
|
var hasRequiredEventemitter3;
|
|
@@ -105597,14 +106056,14 @@ ${unwrappedProps}
|
|
|
105597
106056
|
}
|
|
105598
106057
|
return viewMeasurer.getBoundingClientRect();
|
|
105599
106058
|
}
|
|
105600
|
-
function getPointRect(
|
|
106059
|
+
function getPointRect(x2, y2) {
|
|
105601
106060
|
const viewRect = ensureViewBoundingRect();
|
|
105602
106061
|
return {
|
|
105603
106062
|
top: y2,
|
|
105604
|
-
left:
|
|
106063
|
+
left: x2,
|
|
105605
106064
|
height: 0,
|
|
105606
106065
|
width: 0,
|
|
105607
|
-
right: viewRect.width -
|
|
106066
|
+
right: viewRect.width - x2,
|
|
105608
106067
|
bottom: viewRect.height - y2
|
|
105609
106068
|
};
|
|
105610
106069
|
}
|
|
@@ -106442,8 +106901,8 @@ ${style2}
|
|
|
106442
106901
|
if (follower === null)
|
|
106443
106902
|
return;
|
|
106444
106903
|
const target = VBinder.targetRef;
|
|
106445
|
-
const { x, y: y2, overlap } = props;
|
|
106446
|
-
const targetRect =
|
|
106904
|
+
const { x: x2, y: y2, overlap } = props;
|
|
106905
|
+
const targetRect = x2 !== void 0 && y2 !== void 0 ? getPointRect(x2, y2) : getRect(target);
|
|
106447
106906
|
follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
|
|
106448
106907
|
follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
|
|
106449
106908
|
const { width, minWidth, placement, internalShift, flip: flip2 } = props;
|
|
@@ -106613,8 +107072,8 @@ ${style2}
|
|
|
106613
107072
|
return ResizeObserverSize2;
|
|
106614
107073
|
})();
|
|
106615
107074
|
var DOMRectReadOnly = (function() {
|
|
106616
|
-
function DOMRectReadOnly2(
|
|
106617
|
-
this.x =
|
|
107075
|
+
function DOMRectReadOnly2(x2, y2, width, height) {
|
|
107076
|
+
this.x = x2;
|
|
106618
107077
|
this.y = y2;
|
|
106619
107078
|
this.width = width;
|
|
106620
107079
|
this.height = height;
|
|
@@ -106625,8 +107084,8 @@ ${style2}
|
|
|
106625
107084
|
return freeze(this);
|
|
106626
107085
|
}
|
|
106627
107086
|
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
106628
|
-
var _a2 = this,
|
|
106629
|
-
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 };
|
|
106630
107089
|
};
|
|
106631
107090
|
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
106632
107091
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
@@ -117330,9 +117789,9 @@ ${style2}
|
|
|
117330
117789
|
const resetSelection = () => {
|
|
117331
117790
|
selectionPosition.value = null;
|
|
117332
117791
|
};
|
|
117333
|
-
const updateSelection2 = ({ startX, startY, x, y: y2, source }) => {
|
|
117792
|
+
const updateSelection2 = ({ startX, startY, x: x2, y: y2, source }) => {
|
|
117334
117793
|
const hasStartCoords = startX || startY;
|
|
117335
|
-
const hasEndCoords =
|
|
117794
|
+
const hasEndCoords = x2 || y2;
|
|
117336
117795
|
if (!hasStartCoords && !hasEndCoords) {
|
|
117337
117796
|
return selectionPosition.value = null;
|
|
117338
117797
|
}
|
|
@@ -117357,10 +117816,10 @@ ${style2}
|
|
|
117357
117816
|
selectionPosition.value.bottom = y2;
|
|
117358
117817
|
}
|
|
117359
117818
|
const selectionLeft = selectionPosition.value.startX;
|
|
117360
|
-
if (
|
|
117361
|
-
selectionPosition.value.left =
|
|
117819
|
+
if (x2 < selectionLeft) {
|
|
117820
|
+
selectionPosition.value.left = x2;
|
|
117362
117821
|
} else {
|
|
117363
|
-
selectionPosition.value.right =
|
|
117822
|
+
selectionPosition.value.right = x2;
|
|
117364
117823
|
}
|
|
117365
117824
|
};
|
|
117366
117825
|
const handleSelectionStart = (e) => {
|
|
@@ -117369,16 +117828,16 @@ ${style2}
|
|
|
117369
117828
|
nextTick(() => {
|
|
117370
117829
|
isDragging.value = true;
|
|
117371
117830
|
const y2 = e.offsetY / (activeZoom.value / 100);
|
|
117372
|
-
const
|
|
117373
|
-
updateSelection2({ startX:
|
|
117831
|
+
const x2 = e.offsetX / (activeZoom.value / 100);
|
|
117832
|
+
updateSelection2({ startX: x2, startY: y2 });
|
|
117374
117833
|
selectionLayer.value.addEventListener("mousemove", handleDragMove);
|
|
117375
117834
|
});
|
|
117376
117835
|
};
|
|
117377
117836
|
const handleDragMove = (e) => {
|
|
117378
117837
|
if (!isDragging.value) return;
|
|
117379
117838
|
const y2 = e.offsetY / (activeZoom.value / 100);
|
|
117380
|
-
const
|
|
117381
|
-
updateSelection2({ x, y: y2 });
|
|
117839
|
+
const x2 = e.offsetX / (activeZoom.value / 100);
|
|
117840
|
+
updateSelection2({ x: x2, y: y2 });
|
|
117382
117841
|
};
|
|
117383
117842
|
const handleDragEnd = (e) => {
|
|
117384
117843
|
if (!isDragging.value) return;
|
|
@@ -117735,7 +118194,7 @@ ${style2}
|
|
|
117735
118194
|
this.config.colors = shuffleArray(this.config.colors);
|
|
117736
118195
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
117737
118196
|
this.colorIndex = 0;
|
|
117738
|
-
this.version = "0.
|
|
118197
|
+
this.version = "0.30.0-next.1";
|
|
117739
118198
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
117740
118199
|
this.superdocId = config2.superdocId || v4();
|
|
117741
118200
|
this.colors = this.config.colors;
|
|
@@ -120135,7 +120594,7 @@ ${style2}
|
|
|
120135
120594
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
120136
120595
|
);
|
|
120137
120596
|
}
|
|
120138
|
-
const
|
|
120597
|
+
const indexC3nnrhrj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
120139
120598
|
__proto__: null,
|
|
120140
120599
|
unified
|
|
120141
120600
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -121727,8 +122186,8 @@ ${style2}
|
|
|
121727
122186
|
properties[name] = attribute.value;
|
|
121728
122187
|
}
|
|
121729
122188
|
}
|
|
121730
|
-
const
|
|
121731
|
-
const result =
|
|
122189
|
+
const x2 = state2.schema.space === "svg" ? s : h;
|
|
122190
|
+
const result = x2(node2.tagName, properties, all$4(state2, node2.childNodes));
|
|
121732
122191
|
patch$1(state2, node2, result);
|
|
121733
122192
|
if (result.tagName === "template") {
|
|
121734
122193
|
const reference2 = (
|