@harbour-enterprises/superdoc 0.14.2-next.2 → 0.14.2
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/{index-BMwK7kM5.es.js → index-Bmg-LdrI.es.js} +2 -2
- package/dist/chunks/{index-Oz4X1zyg.cjs → index-Bx6NTjUr.cjs} +2 -2
- package/dist/chunks/{index-CZuIe8A3.cjs → index-D8-yLk4l.cjs} +1 -1
- package/dist/chunks/{index-MJ-5Yknb.es.js → index-q6mHfs8e.es.js} +1 -1
- package/dist/chunks/{super-editor.es-DDBiIC2f.cjs → super-editor.es-CVXcyA03.cjs} +10 -23
- package/dist/chunks/{super-editor.es-BWlm5Ej1.es.js → super-editor.es-uexOEMOI.es.js} +10 -23
- package/dist/chunks/{url-Cqg2Hljl.es.js → url-CZRpBZ8r.es.js} +1 -1
- package/dist/chunks/{url-CRVat8D5.cjs → url-f1i5V486.cjs} +1 -1
- package/dist/chunks/{xml-js-t28wMlyv.cjs → xml-js-CR_HPgfX.cjs} +158 -123
- package/dist/chunks/{xml-js-D78KIQHL.es.js → xml-js-DzoGf_HX.es.js} +158 -123
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-dFE2Jr2b.js → converter-D4QevHSw.js} +2 -4
- package/dist/super-editor/chunks/{docx-zipper-BsY1xnjc.js → docx-zipper-L44d28km.js} +1 -1
- package/dist/super-editor/chunks/{editor-CGEU-2b7.js → editor-CUqQDQxM.js} +10 -21
- package/dist/super-editor/chunks/{toolbar-R0GEOSnM.js → toolbar--4jgiUTj.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/annotationImporter.d.ts.map +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/extensions/list-item/ListItemNodeView.d.ts.map +1 -1
- package/dist/super-editor/extensions/ordered-list/helpers/orderedListSyncPlugin.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- 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 +5 -5
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +11 -24
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./jszip-CYDYUNnI.es.js";
|
|
2
2
|
import { p as process$1 } from "./vue-lU0o_RlU.es.js";
|
|
3
|
-
import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-
|
|
4
|
-
import { u as url } from "./url-
|
|
3
|
+
import { e as eventsExports, r as require$$2, u as util, i as inherits_browserExports, b as browser$1, a as requireString_decoder } from "./xml-js-DzoGf_HX.es.js";
|
|
4
|
+
import { u as url } from "./url-CZRpBZ8r.es.js";
|
|
5
5
|
function _mergeNamespaces(n, m) {
|
|
6
6
|
for (var i = 0; i < m.length; i++) {
|
|
7
7
|
const e = m[i];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-D5XoMX4C.cjs");
|
|
3
3
|
const vue = require("./vue-tQYF719J.cjs");
|
|
4
|
-
const xmlJs = require("./xml-js-
|
|
5
|
-
const url = require("./url-
|
|
4
|
+
const xmlJs = require("./xml-js-CR_HPgfX.cjs");
|
|
5
|
+
const url = require("./url-f1i5V486.cjs");
|
|
6
6
|
function _mergeNamespaces(n, m) {
|
|
7
7
|
for (var i = 0; i < m.length; i++) {
|
|
8
8
|
const e = m[i];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./jszip-CYDYUNnI.es.js";
|
|
2
|
-
import { s as streamHttp, r as require$$1 } from "./index-
|
|
2
|
+
import { s as streamHttp, r as require$$1 } from "./index-Bmg-LdrI.es.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
for (var i = 0; i < m.length; i++) {
|
|
5
5
|
const e = m[i];
|
|
@@ -22437,11 +22437,9 @@ const handleAnnotationNode = (params2) => {
|
|
|
22437
22437
|
textHighlight: parsedAttrs.fieldTextHighlight
|
|
22438
22438
|
};
|
|
22439
22439
|
attrs = attrsFromJSON;
|
|
22440
|
-
console.debug("Import annotation attrs", { asJSON: processAsJSON, attrs });
|
|
22441
22440
|
} else {
|
|
22442
22441
|
const attrsFromElements = getAttrsFromElements({ sdtPr, tag, alias });
|
|
22443
22442
|
attrs = attrsFromElements;
|
|
22444
|
-
console.debug("Import annotation attrs", { asJSON: processAsJSON, attrs });
|
|
22445
22443
|
}
|
|
22446
22444
|
const { attrs: marksAsAttrs, marks } = parseAnnotationMarks(sdtContent);
|
|
22447
22445
|
const allAttrs = { ...attrs, ...marksAsAttrs };
|
|
@@ -24317,7 +24315,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
24317
24315
|
return;
|
|
24318
24316
|
}
|
|
24319
24317
|
}
|
|
24320
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.2
|
|
24318
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.2") {
|
|
24321
24319
|
const customLocation = "docProps/custom.xml";
|
|
24322
24320
|
if (!docx[customLocation]) {
|
|
24323
24321
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24793,7 +24791,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24793
24791
|
function generateCustomXml() {
|
|
24794
24792
|
return DEFAULT_CUSTOM_XML;
|
|
24795
24793
|
}
|
|
24796
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.2
|
|
24794
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.2") {
|
|
24797
24795
|
return {
|
|
24798
24796
|
type: "element",
|
|
24799
24797
|
name: "property",
|
|
@@ -42290,7 +42288,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
42290
42288
|
* @returns {Object | void} Migration results
|
|
42291
42289
|
*/
|
|
42292
42290
|
processCollaborationMigrations() {
|
|
42293
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.2
|
|
42291
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.2");
|
|
42294
42292
|
if (!this.options.ydoc) return;
|
|
42295
42293
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42296
42294
|
let docVersion = metaMap.get("version");
|
|
@@ -44577,7 +44575,7 @@ init_fn2 = function() {
|
|
|
44577
44575
|
this.contentDOM.className = "sd-editor-list-item-content-dom";
|
|
44578
44576
|
let contentLeft = visibleIndent.left;
|
|
44579
44577
|
if (visibleIndent.left === absoluteLeft) {
|
|
44580
|
-
absoluteLeft
|
|
44578
|
+
contentLeft = absoluteLeft + 48;
|
|
44581
44579
|
}
|
|
44582
44580
|
this.contentDOM.style.marginLeft = `${contentLeft}px`;
|
|
44583
44581
|
this.numberingDOM.style.left = `${absoluteLeft}px`;
|
|
@@ -44661,16 +44659,9 @@ function orderedListSync(editor) {
|
|
|
44661
44659
|
if (!shouldProcess) return null;
|
|
44662
44660
|
newState.doc.descendants((node2, pos) => {
|
|
44663
44661
|
if (node2.type.name !== "listItem") return;
|
|
44664
|
-
const { level: attrLvl, numId: attrNumId, styleId } = node2.attrs;
|
|
44662
|
+
const { level: attrLvl, numId: attrNumId, styleId, start: start2 } = node2.attrs;
|
|
44665
44663
|
const level = parseInt(attrLvl);
|
|
44666
44664
|
const numId = parseInt(attrNumId);
|
|
44667
|
-
const {
|
|
44668
|
-
lvlText,
|
|
44669
|
-
customFormat,
|
|
44670
|
-
listNumberingType,
|
|
44671
|
-
start: numberingDefStart
|
|
44672
|
-
} = ListHelpers.getListDefinitionDetails({ numId, level, editor });
|
|
44673
|
-
const start2 = parseInt(numberingDefStart) || 1;
|
|
44674
44665
|
if (!listMap.has(numId)) {
|
|
44675
44666
|
const generatedLevels = {};
|
|
44676
44667
|
const initialPath = docxNumberigHelpers.generateListPath(level, numId, styleId, generatedLevels, docx);
|
|
@@ -44680,15 +44671,6 @@ function orderedListSync(editor) {
|
|
|
44680
44671
|
let currentListLevels = [...listMap.get(numId)];
|
|
44681
44672
|
if (!listInitialized.get(numId)) {
|
|
44682
44673
|
listInitialized.set(numId, true);
|
|
44683
|
-
if (typeof start2 === "number") {
|
|
44684
|
-
while (currentListLevels.length <= level) {
|
|
44685
|
-
currentListLevels.push(0);
|
|
44686
|
-
}
|
|
44687
|
-
currentListLevels[level] = start2;
|
|
44688
|
-
for (let i = level + 1; i < currentListLevels.length; i++) {
|
|
44689
|
-
currentListLevels[i] = 0;
|
|
44690
|
-
}
|
|
44691
|
-
}
|
|
44692
44674
|
} else {
|
|
44693
44675
|
while (currentListLevels.length <= level) {
|
|
44694
44676
|
currentListLevels.push(0);
|
|
@@ -44702,6 +44684,11 @@ function orderedListSync(editor) {
|
|
|
44702
44684
|
currentListLevels = [1];
|
|
44703
44685
|
}
|
|
44704
44686
|
listMap.set(numId, currentListLevels);
|
|
44687
|
+
const {
|
|
44688
|
+
lvlText,
|
|
44689
|
+
customFormat,
|
|
44690
|
+
listNumberingType
|
|
44691
|
+
} = ListHelpers.getListDefinitionDetails({ numId, level, editor });
|
|
44705
44692
|
const updatedAttrs = {
|
|
44706
44693
|
...node2.attrs,
|
|
44707
44694
|
listLevel: [...currentListLevels],
|
|
@@ -22420,11 +22420,9 @@ const handleAnnotationNode = (params2) => {
|
|
|
22420
22420
|
textHighlight: parsedAttrs.fieldTextHighlight
|
|
22421
22421
|
};
|
|
22422
22422
|
attrs = attrsFromJSON;
|
|
22423
|
-
console.debug("Import annotation attrs", { asJSON: processAsJSON, attrs });
|
|
22424
22423
|
} else {
|
|
22425
22424
|
const attrsFromElements = getAttrsFromElements({ sdtPr, tag, alias });
|
|
22426
22425
|
attrs = attrsFromElements;
|
|
22427
|
-
console.debug("Import annotation attrs", { asJSON: processAsJSON, attrs });
|
|
22428
22426
|
}
|
|
22429
22427
|
const { attrs: marksAsAttrs, marks } = parseAnnotationMarks(sdtContent);
|
|
22430
22428
|
const allAttrs = { ...attrs, ...marksAsAttrs };
|
|
@@ -24300,7 +24298,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
24300
24298
|
return;
|
|
24301
24299
|
}
|
|
24302
24300
|
}
|
|
24303
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.2
|
|
24301
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.2") {
|
|
24304
24302
|
const customLocation = "docProps/custom.xml";
|
|
24305
24303
|
if (!docx[customLocation]) {
|
|
24306
24304
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24776,7 +24774,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24776
24774
|
function generateCustomXml() {
|
|
24777
24775
|
return DEFAULT_CUSTOM_XML;
|
|
24778
24776
|
}
|
|
24779
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.2
|
|
24777
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.2") {
|
|
24780
24778
|
return {
|
|
24781
24779
|
type: "element",
|
|
24782
24780
|
name: "property",
|
|
@@ -42273,7 +42271,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
42273
42271
|
* @returns {Object | void} Migration results
|
|
42274
42272
|
*/
|
|
42275
42273
|
processCollaborationMigrations() {
|
|
42276
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.2
|
|
42274
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.2");
|
|
42277
42275
|
if (!this.options.ydoc) return;
|
|
42278
42276
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
42279
42277
|
let docVersion = metaMap.get("version");
|
|
@@ -44560,7 +44558,7 @@ init_fn2 = function() {
|
|
|
44560
44558
|
this.contentDOM.className = "sd-editor-list-item-content-dom";
|
|
44561
44559
|
let contentLeft = visibleIndent.left;
|
|
44562
44560
|
if (visibleIndent.left === absoluteLeft) {
|
|
44563
|
-
absoluteLeft
|
|
44561
|
+
contentLeft = absoluteLeft + 48;
|
|
44564
44562
|
}
|
|
44565
44563
|
this.contentDOM.style.marginLeft = `${contentLeft}px`;
|
|
44566
44564
|
this.numberingDOM.style.left = `${absoluteLeft}px`;
|
|
@@ -44644,16 +44642,9 @@ function orderedListSync(editor) {
|
|
|
44644
44642
|
if (!shouldProcess) return null;
|
|
44645
44643
|
newState.doc.descendants((node2, pos) => {
|
|
44646
44644
|
if (node2.type.name !== "listItem") return;
|
|
44647
|
-
const { level: attrLvl, numId: attrNumId, styleId } = node2.attrs;
|
|
44645
|
+
const { level: attrLvl, numId: attrNumId, styleId, start: start2 } = node2.attrs;
|
|
44648
44646
|
const level = parseInt(attrLvl);
|
|
44649
44647
|
const numId = parseInt(attrNumId);
|
|
44650
|
-
const {
|
|
44651
|
-
lvlText,
|
|
44652
|
-
customFormat,
|
|
44653
|
-
listNumberingType,
|
|
44654
|
-
start: numberingDefStart
|
|
44655
|
-
} = ListHelpers.getListDefinitionDetails({ numId, level, editor });
|
|
44656
|
-
const start2 = parseInt(numberingDefStart) || 1;
|
|
44657
44648
|
if (!listMap.has(numId)) {
|
|
44658
44649
|
const generatedLevels = {};
|
|
44659
44650
|
const initialPath = docxNumberigHelpers.generateListPath(level, numId, styleId, generatedLevels, docx);
|
|
@@ -44663,15 +44654,6 @@ function orderedListSync(editor) {
|
|
|
44663
44654
|
let currentListLevels = [...listMap.get(numId)];
|
|
44664
44655
|
if (!listInitialized.get(numId)) {
|
|
44665
44656
|
listInitialized.set(numId, true);
|
|
44666
|
-
if (typeof start2 === "number") {
|
|
44667
|
-
while (currentListLevels.length <= level) {
|
|
44668
|
-
currentListLevels.push(0);
|
|
44669
|
-
}
|
|
44670
|
-
currentListLevels[level] = start2;
|
|
44671
|
-
for (let i = level + 1; i < currentListLevels.length; i++) {
|
|
44672
|
-
currentListLevels[i] = 0;
|
|
44673
|
-
}
|
|
44674
|
-
}
|
|
44675
44657
|
} else {
|
|
44676
44658
|
while (currentListLevels.length <= level) {
|
|
44677
44659
|
currentListLevels.push(0);
|
|
@@ -44685,6 +44667,11 @@ function orderedListSync(editor) {
|
|
|
44685
44667
|
currentListLevels = [1];
|
|
44686
44668
|
}
|
|
44687
44669
|
listMap.set(numId, currentListLevels);
|
|
44670
|
+
const {
|
|
44671
|
+
lvlText,
|
|
44672
|
+
customFormat,
|
|
44673
|
+
listNumberingType
|
|
44674
|
+
} = ListHelpers.getListDefinitionDetails({ numId, level, editor });
|
|
44688
44675
|
const updatedAttrs = {
|
|
44689
44676
|
...node2.attrs,
|
|
44690
44677
|
listLevel: [...currentListLevels],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-CYDYUNnI.es.js";
|
|
2
|
-
import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-
|
|
2
|
+
import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-DzoGf_HX.es.js";
|
|
3
3
|
import { _ as __viteBrowserExternal } from "./__vite-browser-external-CURh0WXD.es.js";
|
|
4
4
|
var punycode$1 = { exports: {} };
|
|
5
5
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-D5XoMX4C.cjs");
|
|
3
|
-
const xmlJs = require("./xml-js-
|
|
3
|
+
const xmlJs = require("./xml-js-CR_HPgfX.cjs");
|
|
4
4
|
const __viteBrowserExternal = require("./__vite-browser-external-DWbQq7bv.cjs");
|
|
5
5
|
var punycode$1 = { exports: {} };
|
|
6
6
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
@@ -395,55 +395,62 @@ var eventsExports = events.exports;
|
|
|
395
395
|
const require$$2 = /* @__PURE__ */ jszip.getAugmentedNamespace(jszip.dist);
|
|
396
396
|
var util = {};
|
|
397
397
|
var types = {};
|
|
398
|
-
var shams$1
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
var obj = {};
|
|
406
|
-
var sym = Symbol("test");
|
|
407
|
-
var symObj = Object(sym);
|
|
408
|
-
if (typeof sym === "string") {
|
|
409
|
-
return false;
|
|
410
|
-
}
|
|
411
|
-
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
412
|
-
return false;
|
|
413
|
-
}
|
|
414
|
-
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
415
|
-
return false;
|
|
416
|
-
}
|
|
417
|
-
var symVal = 42;
|
|
418
|
-
obj[sym] = symVal;
|
|
419
|
-
for (var _ in obj) {
|
|
420
|
-
return false;
|
|
421
|
-
}
|
|
422
|
-
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
423
|
-
return false;
|
|
424
|
-
}
|
|
425
|
-
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
426
|
-
return false;
|
|
427
|
-
}
|
|
428
|
-
var syms = Object.getOwnPropertySymbols(obj);
|
|
429
|
-
if (syms.length !== 1 || syms[0] !== sym) {
|
|
430
|
-
return false;
|
|
431
|
-
}
|
|
432
|
-
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
433
|
-
return false;
|
|
434
|
-
}
|
|
435
|
-
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
436
|
-
var descriptor = (
|
|
437
|
-
/** @type {PropertyDescriptor} */
|
|
438
|
-
Object.getOwnPropertyDescriptor(obj, sym)
|
|
439
|
-
);
|
|
440
|
-
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
398
|
+
var shams$1;
|
|
399
|
+
var hasRequiredShams;
|
|
400
|
+
function requireShams() {
|
|
401
|
+
if (hasRequiredShams) return shams$1;
|
|
402
|
+
hasRequiredShams = 1;
|
|
403
|
+
shams$1 = function hasSymbols2() {
|
|
404
|
+
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
441
405
|
return false;
|
|
442
406
|
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}
|
|
446
|
-
var
|
|
407
|
+
if (typeof Symbol.iterator === "symbol") {
|
|
408
|
+
return true;
|
|
409
|
+
}
|
|
410
|
+
var obj = {};
|
|
411
|
+
var sym = Symbol("test");
|
|
412
|
+
var symObj = Object(sym);
|
|
413
|
+
if (typeof sym === "string") {
|
|
414
|
+
return false;
|
|
415
|
+
}
|
|
416
|
+
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
417
|
+
return false;
|
|
418
|
+
}
|
|
419
|
+
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
420
|
+
return false;
|
|
421
|
+
}
|
|
422
|
+
var symVal = 42;
|
|
423
|
+
obj[sym] = symVal;
|
|
424
|
+
for (var _ in obj) {
|
|
425
|
+
return false;
|
|
426
|
+
}
|
|
427
|
+
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
428
|
+
return false;
|
|
429
|
+
}
|
|
430
|
+
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
431
|
+
return false;
|
|
432
|
+
}
|
|
433
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
434
|
+
if (syms.length !== 1 || syms[0] !== sym) {
|
|
435
|
+
return false;
|
|
436
|
+
}
|
|
437
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
438
|
+
return false;
|
|
439
|
+
}
|
|
440
|
+
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
441
|
+
var descriptor = (
|
|
442
|
+
/** @type {PropertyDescriptor} */
|
|
443
|
+
Object.getOwnPropertyDescriptor(obj, sym)
|
|
444
|
+
);
|
|
445
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
446
|
+
return false;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
return true;
|
|
450
|
+
};
|
|
451
|
+
return shams$1;
|
|
452
|
+
}
|
|
453
|
+
var hasSymbols$2 = requireShams();
|
|
447
454
|
var shams = function hasToStringTagShams() {
|
|
448
455
|
return hasSymbols$2() && !!Symbol.toStringTag;
|
|
449
456
|
};
|
|
@@ -471,8 +478,8 @@ var sign$1 = function sign(number) {
|
|
|
471
478
|
}
|
|
472
479
|
return number < 0 ? -1 : 1;
|
|
473
480
|
};
|
|
474
|
-
var gOPD$
|
|
475
|
-
var $gOPD$1 = gOPD$
|
|
481
|
+
var gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
482
|
+
var $gOPD$1 = gOPD$3;
|
|
476
483
|
if ($gOPD$1) {
|
|
477
484
|
try {
|
|
478
485
|
$gOPD$1([], "length");
|
|
@@ -496,7 +503,7 @@ function requireHasSymbols() {
|
|
|
496
503
|
if (hasRequiredHasSymbols) return hasSymbols$1;
|
|
497
504
|
hasRequiredHasSymbols = 1;
|
|
498
505
|
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
499
|
-
var hasSymbolSham =
|
|
506
|
+
var hasSymbolSham = requireShams();
|
|
500
507
|
hasSymbols$1 = function hasNativeSymbols() {
|
|
501
508
|
if (typeof origSymbol !== "function") {
|
|
502
509
|
return false;
|
|
@@ -514,9 +521,23 @@ function requireHasSymbols() {
|
|
|
514
521
|
};
|
|
515
522
|
return hasSymbols$1;
|
|
516
523
|
}
|
|
517
|
-
var Reflect_getPrototypeOf
|
|
518
|
-
var
|
|
519
|
-
|
|
524
|
+
var Reflect_getPrototypeOf;
|
|
525
|
+
var hasRequiredReflect_getPrototypeOf;
|
|
526
|
+
function requireReflect_getPrototypeOf() {
|
|
527
|
+
if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
|
|
528
|
+
hasRequiredReflect_getPrototypeOf = 1;
|
|
529
|
+
Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
530
|
+
return Reflect_getPrototypeOf;
|
|
531
|
+
}
|
|
532
|
+
var Object_getPrototypeOf;
|
|
533
|
+
var hasRequiredObject_getPrototypeOf;
|
|
534
|
+
function requireObject_getPrototypeOf() {
|
|
535
|
+
if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
|
|
536
|
+
hasRequiredObject_getPrototypeOf = 1;
|
|
537
|
+
var $Object2 = esObjectAtoms;
|
|
538
|
+
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
539
|
+
return Object_getPrototypeOf;
|
|
540
|
+
}
|
|
520
541
|
var implementation;
|
|
521
542
|
var hasRequiredImplementation;
|
|
522
543
|
function requireImplementation() {
|
|
@@ -634,43 +655,57 @@ var callBindApplyHelpers = function callBindBasic(args) {
|
|
|
634
655
|
}
|
|
635
656
|
return $actualApply(bind$2, $call$1, args);
|
|
636
657
|
};
|
|
637
|
-
var
|
|
638
|
-
var
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
658
|
+
var get;
|
|
659
|
+
var hasRequiredGet;
|
|
660
|
+
function requireGet() {
|
|
661
|
+
if (hasRequiredGet) return get;
|
|
662
|
+
hasRequiredGet = 1;
|
|
663
|
+
var callBind2 = callBindApplyHelpers;
|
|
664
|
+
var gOPD2 = gopd$1;
|
|
665
|
+
var hasProtoAccessor;
|
|
666
|
+
try {
|
|
667
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
668
|
+
[].__proto__ === Array.prototype;
|
|
669
|
+
} catch (e) {
|
|
670
|
+
if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
|
|
671
|
+
throw e;
|
|
672
|
+
}
|
|
646
673
|
}
|
|
674
|
+
var desc = !!hasProtoAccessor && gOPD2 && gOPD2(
|
|
675
|
+
Object.prototype,
|
|
676
|
+
/** @type {keyof typeof Object.prototype} */
|
|
677
|
+
"__proto__"
|
|
678
|
+
);
|
|
679
|
+
var $Object2 = Object;
|
|
680
|
+
var $getPrototypeOf = $Object2.getPrototypeOf;
|
|
681
|
+
get = desc && typeof desc.get === "function" ? callBind2([desc.get]) : typeof $getPrototypeOf === "function" ? (
|
|
682
|
+
/** @type {import('./get')} */
|
|
683
|
+
function getDunder(value) {
|
|
684
|
+
return $getPrototypeOf(value == null ? value : $Object2(value));
|
|
685
|
+
}
|
|
686
|
+
) : false;
|
|
687
|
+
return get;
|
|
688
|
+
}
|
|
689
|
+
var getProto$3;
|
|
690
|
+
var hasRequiredGetProto;
|
|
691
|
+
function requireGetProto() {
|
|
692
|
+
if (hasRequiredGetProto) return getProto$3;
|
|
693
|
+
hasRequiredGetProto = 1;
|
|
694
|
+
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
695
|
+
var originalGetProto = requireObject_getPrototypeOf();
|
|
696
|
+
var getDunderProto = requireGet();
|
|
697
|
+
getProto$3 = reflectGetProto ? function getProto2(O) {
|
|
698
|
+
return reflectGetProto(O);
|
|
699
|
+
} : originalGetProto ? function getProto2(O) {
|
|
700
|
+
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
701
|
+
throw new TypeError("getProto: not an object");
|
|
702
|
+
}
|
|
703
|
+
return originalGetProto(O);
|
|
704
|
+
} : getDunderProto ? function getProto2(O) {
|
|
705
|
+
return getDunderProto(O);
|
|
706
|
+
} : null;
|
|
707
|
+
return getProto$3;
|
|
647
708
|
}
|
|
648
|
-
var desc = !!hasProtoAccessor && gOPD$3 && gOPD$3(
|
|
649
|
-
Object.prototype,
|
|
650
|
-
/** @type {keyof typeof Object.prototype} */
|
|
651
|
-
"__proto__"
|
|
652
|
-
);
|
|
653
|
-
var $Object$1 = Object;
|
|
654
|
-
var $getPrototypeOf = $Object$1.getPrototypeOf;
|
|
655
|
-
var get = desc && typeof desc.get === "function" ? callBind$2([desc.get]) : typeof $getPrototypeOf === "function" ? (
|
|
656
|
-
/** @type {import('./get')} */
|
|
657
|
-
function getDunder(value) {
|
|
658
|
-
return $getPrototypeOf(value == null ? value : $Object$1(value));
|
|
659
|
-
}
|
|
660
|
-
) : false;
|
|
661
|
-
var reflectGetProto = Reflect_getPrototypeOf;
|
|
662
|
-
var originalGetProto = Object_getPrototypeOf;
|
|
663
|
-
var getDunderProto = get;
|
|
664
|
-
var getProto$3 = reflectGetProto ? function getProto(O) {
|
|
665
|
-
return reflectGetProto(O);
|
|
666
|
-
} : originalGetProto ? function getProto2(O) {
|
|
667
|
-
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
668
|
-
throw new TypeError("getProto: not an object");
|
|
669
|
-
}
|
|
670
|
-
return originalGetProto(O);
|
|
671
|
-
} : getDunderProto ? function getProto3(O) {
|
|
672
|
-
return getDunderProto(O);
|
|
673
|
-
} : null;
|
|
674
709
|
var hasown;
|
|
675
710
|
var hasRequiredHasown;
|
|
676
711
|
function requireHasown() {
|
|
@@ -722,10 +757,10 @@ var ThrowTypeError = $gOPD ? function() {
|
|
|
722
757
|
}
|
|
723
758
|
}
|
|
724
759
|
}() : throwTypeError;
|
|
725
|
-
var
|
|
726
|
-
var getProto$2 =
|
|
727
|
-
var $ObjectGPO =
|
|
728
|
-
var $ReflectGPO =
|
|
760
|
+
var hasSymbols = requireHasSymbols()();
|
|
761
|
+
var getProto$2 = requireGetProto();
|
|
762
|
+
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
763
|
+
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
729
764
|
var $apply$1 = requireFunctionApply();
|
|
730
765
|
var $call = requireFunctionCall();
|
|
731
766
|
var needsEval = {};
|
|
@@ -735,7 +770,7 @@ var INTRINSICS = {
|
|
|
735
770
|
"%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
|
|
736
771
|
"%Array%": Array,
|
|
737
772
|
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
|
|
738
|
-
"%ArrayIteratorPrototype%":
|
|
773
|
+
"%ArrayIteratorPrototype%": hasSymbols && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
|
|
739
774
|
"%AsyncFromSyncIteratorPrototype%": undefined$1,
|
|
740
775
|
"%AsyncFunction%": needsEval,
|
|
741
776
|
"%AsyncGenerator%": needsEval,
|
|
@@ -767,10 +802,10 @@ var INTRINSICS = {
|
|
|
767
802
|
"%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
|
|
768
803
|
"%isFinite%": isFinite,
|
|
769
804
|
"%isNaN%": isNaN,
|
|
770
|
-
"%IteratorPrototype%":
|
|
805
|
+
"%IteratorPrototype%": hasSymbols && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
|
|
771
806
|
"%JSON%": typeof JSON === "object" ? JSON : undefined$1,
|
|
772
807
|
"%Map%": typeof Map === "undefined" ? undefined$1 : Map,
|
|
773
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !
|
|
808
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
774
809
|
"%Math%": Math,
|
|
775
810
|
"%Number%": Number,
|
|
776
811
|
"%Object%": $Object,
|
|
@@ -784,11 +819,11 @@ var INTRINSICS = {
|
|
|
784
819
|
"%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
|
|
785
820
|
"%RegExp%": RegExp,
|
|
786
821
|
"%Set%": typeof Set === "undefined" ? undefined$1 : Set,
|
|
787
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !
|
|
822
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
788
823
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
|
|
789
824
|
"%String%": String,
|
|
790
|
-
"%StringIteratorPrototype%":
|
|
791
|
-
"%Symbol%":
|
|
825
|
+
"%StringIteratorPrototype%": hasSymbols && getProto$2 ? getProto$2(""[Symbol.iterator]()) : undefined$1,
|
|
826
|
+
"%Symbol%": hasSymbols ? Symbol : undefined$1,
|
|
792
827
|
"%SyntaxError%": $SyntaxError$1,
|
|
793
828
|
"%ThrowTypeError%": ThrowTypeError,
|
|
794
829
|
"%TypedArray%": TypedArray,
|
|
@@ -987,10 +1022,10 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
987
1022
|
return void 0;
|
|
988
1023
|
}
|
|
989
1024
|
if ($gOPD && i + 1 >= parts.length) {
|
|
990
|
-
var
|
|
991
|
-
isOwn = !!
|
|
992
|
-
if (isOwn && "get" in
|
|
993
|
-
value =
|
|
1025
|
+
var desc = $gOPD(value, part);
|
|
1026
|
+
isOwn = !!desc;
|
|
1027
|
+
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
1028
|
+
value = desc.get;
|
|
994
1029
|
} else {
|
|
995
1030
|
value = value[part];
|
|
996
1031
|
}
|
|
@@ -1113,7 +1148,7 @@ var callBound$1 = callBound$5;
|
|
|
1113
1148
|
var safeRegexTest = safeRegexTest$1;
|
|
1114
1149
|
var isFnRegex = safeRegexTest(/^\s*(?:function)?\*/);
|
|
1115
1150
|
var hasToStringTag$2 = shams();
|
|
1116
|
-
var getProto$1 =
|
|
1151
|
+
var getProto$1 = requireGetProto();
|
|
1117
1152
|
var toStr$2 = callBound$1("Object.prototype.toString");
|
|
1118
1153
|
var fnToStr$1 = callBound$1("Function.prototype.toString");
|
|
1119
1154
|
var getGeneratorFunc = function() {
|
|
@@ -1365,13 +1400,13 @@ var defineDataProperty = function defineDataProperty2(obj, property, value) {
|
|
|
1365
1400
|
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
1366
1401
|
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
1367
1402
|
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
1368
|
-
var
|
|
1403
|
+
var desc = !!gopd && gopd(obj, property);
|
|
1369
1404
|
if ($defineProperty$1) {
|
|
1370
1405
|
$defineProperty$1(obj, property, {
|
|
1371
|
-
configurable: nonConfigurable === null &&
|
|
1372
|
-
enumerable: nonEnumerable === null &&
|
|
1406
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
1407
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
1373
1408
|
value,
|
|
1374
|
-
writable: nonWritable === null &&
|
|
1409
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
1375
1410
|
});
|
|
1376
1411
|
} else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
|
|
1377
1412
|
obj[property] = value;
|
|
@@ -1411,11 +1446,11 @@ var setFunctionLength = function setFunctionLength2(fn2, length) {
|
|
|
1411
1446
|
var functionLengthIsConfigurable = true;
|
|
1412
1447
|
var functionLengthIsWritable = true;
|
|
1413
1448
|
if ("length" in fn2 && gOPD$1) {
|
|
1414
|
-
var
|
|
1415
|
-
if (
|
|
1449
|
+
var desc = gOPD$1(fn2, "length");
|
|
1450
|
+
if (desc && !desc.configurable) {
|
|
1416
1451
|
functionLengthIsConfigurable = false;
|
|
1417
1452
|
}
|
|
1418
|
-
if (
|
|
1453
|
+
if (desc && !desc.writable) {
|
|
1419
1454
|
functionLengthIsWritable = false;
|
|
1420
1455
|
}
|
|
1421
1456
|
}
|
|
@@ -1472,7 +1507,7 @@ var availableTypedArrays2 = availableTypedArrays$1;
|
|
|
1472
1507
|
var callBind = callBindExports;
|
|
1473
1508
|
var callBound = callBound$5;
|
|
1474
1509
|
var gOPD = gopd$1;
|
|
1475
|
-
var
|
|
1510
|
+
var getProto = requireGetProto();
|
|
1476
1511
|
var $toString = callBound("Object.prototype.toString");
|
|
1477
1512
|
var hasToStringTag = shams();
|
|
1478
1513
|
var g = typeof globalThis === "undefined" ? jszip.commonjsGlobal : globalThis;
|
|
@@ -1487,14 +1522,14 @@ var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(ar
|
|
|
1487
1522
|
return -1;
|
|
1488
1523
|
};
|
|
1489
1524
|
var cache = { __proto__: null };
|
|
1490
|
-
if (hasToStringTag && gOPD &&
|
|
1525
|
+
if (hasToStringTag && gOPD && getProto) {
|
|
1491
1526
|
forEach2(typedArrays, function(typedArray) {
|
|
1492
1527
|
var arr = new g[typedArray]();
|
|
1493
|
-
if (Symbol.toStringTag in arr &&
|
|
1494
|
-
var proto =
|
|
1528
|
+
if (Symbol.toStringTag in arr && getProto) {
|
|
1529
|
+
var proto = getProto(arr);
|
|
1495
1530
|
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
1496
1531
|
if (!descriptor && proto) {
|
|
1497
|
-
var superProto =
|
|
1532
|
+
var superProto = getProto(proto);
|
|
1498
1533
|
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
1499
1534
|
}
|
|
1500
1535
|
cache["$" + typedArray] = callBind(descriptor.get);
|
|
@@ -2087,16 +2122,16 @@ var isBufferBrowser = function isBuffer(arg) {
|
|
|
2087
2122
|
return output;
|
|
2088
2123
|
}
|
|
2089
2124
|
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
2090
|
-
var name, str,
|
|
2091
|
-
|
|
2092
|
-
if (
|
|
2093
|
-
if (
|
|
2125
|
+
var name, str, desc;
|
|
2126
|
+
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
2127
|
+
if (desc.get) {
|
|
2128
|
+
if (desc.set) {
|
|
2094
2129
|
str = ctx.stylize("[Getter/Setter]", "special");
|
|
2095
2130
|
} else {
|
|
2096
2131
|
str = ctx.stylize("[Getter]", "special");
|
|
2097
2132
|
}
|
|
2098
2133
|
} else {
|
|
2099
|
-
if (
|
|
2134
|
+
if (desc.set) {
|
|
2100
2135
|
str = ctx.stylize("[Setter]", "special");
|
|
2101
2136
|
}
|
|
2102
2137
|
}
|
|
@@ -2104,11 +2139,11 @@ var isBufferBrowser = function isBuffer(arg) {
|
|
|
2104
2139
|
name = "[" + key + "]";
|
|
2105
2140
|
}
|
|
2106
2141
|
if (!str) {
|
|
2107
|
-
if (ctx.seen.indexOf(
|
|
2142
|
+
if (ctx.seen.indexOf(desc.value) < 0) {
|
|
2108
2143
|
if (isNull(recurseTimes)) {
|
|
2109
|
-
str = formatValue(ctx,
|
|
2144
|
+
str = formatValue(ctx, desc.value, null);
|
|
2110
2145
|
} else {
|
|
2111
|
-
str = formatValue(ctx,
|
|
2146
|
+
str = formatValue(ctx, desc.value, recurseTimes - 1);
|
|
2112
2147
|
}
|
|
2113
2148
|
if (str.indexOf("\n") > -1) {
|
|
2114
2149
|
if (array) {
|