@harbour-enterprises/superdoc 0.14.9-next.6 → 0.14.9-next.7
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-Bmg-LdrI.es.js → index-BMwK7kM5.es.js} +2 -2
- package/dist/chunks/{index-D8-yLk4l.cjs → index-CZuIe8A3.cjs} +1 -1
- package/dist/chunks/{index-q6mHfs8e.es.js → index-MJ-5Yknb.es.js} +1 -1
- package/dist/chunks/{index-Bx6NTjUr.cjs → index-Oz4X1zyg.cjs} +2 -2
- package/dist/chunks/{super-editor.es-BniGAo5V.es.js → super-editor.es-D0U14nJM.es.js} +6 -6
- package/dist/chunks/{super-editor.es-CQn3Mboc.cjs → super-editor.es-nYlTZyLH.cjs} +6 -6
- package/dist/chunks/{url-f1i5V486.cjs → url-CRVat8D5.cjs} +1 -1
- package/dist/chunks/{url-CZRpBZ8r.es.js → url-Cqg2Hljl.es.js} +1 -1
- package/dist/chunks/{xml-js-DzoGf_HX.es.js → xml-js-D78KIQHL.es.js} +123 -158
- package/dist/chunks/{xml-js-CR_HPgfX.cjs → xml-js-t28wMlyv.cjs} +123 -158
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-B1JDclhK.js → converter-C_fU_GdA.js} +5 -5
- package/dist/super-editor/chunks/{docx-zipper-e6p-zLWx.js → docx-zipper-Dxi88tYJ.js} +1 -1
- package/dist/super-editor/chunks/{editor-VmXCRNX0.js → editor-D-IfBoeP.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-Bo1J72SK.js → toolbar-DbRwZ5B3.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/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 +7 -7
- 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-D78KIQHL.es.js";
|
|
4
|
+
import { u as url } from "./url-Cqg2Hljl.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,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-BMwK7kM5.es.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
for (var i = 0; i < m.length; i++) {
|
|
5
5
|
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-t28wMlyv.cjs");
|
|
5
|
+
const url = require("./url-CRVat8D5.cjs");
|
|
6
6
|
function _mergeNamespaces(n, m) {
|
|
7
7
|
for (var i = 0; i < m.length; i++) {
|
|
8
8
|
const e = m[i];
|
|
@@ -20444,9 +20444,9 @@ const getAbstractDefinition = (numId, docx) => {
|
|
|
20444
20444
|
const { elements } = def;
|
|
20445
20445
|
const listData = elements[0];
|
|
20446
20446
|
const numberingElements = listData.elements;
|
|
20447
|
-
const abstractDefinitions = numberingElements
|
|
20448
|
-
const numDefinitions = numberingElements
|
|
20449
|
-
const numDefinition = numDefinitions
|
|
20447
|
+
const abstractDefinitions = numberingElements?.filter((style2) => style2.name === "w:abstractNum");
|
|
20448
|
+
const numDefinitions = numberingElements?.filter((style2) => style2.name === "w:num");
|
|
20449
|
+
const numDefinition = numDefinitions?.find((style2) => style2.attributes["w:numId"] == numId);
|
|
20450
20450
|
const abstractNumId = numDefinition?.elements[0].attributes["w:val"];
|
|
20451
20451
|
let listDefinitionForThisNumId = abstractDefinitions?.find(
|
|
20452
20452
|
(style2) => style2.attributes["w:abstractNumId"] === abstractNumId
|
|
@@ -26466,7 +26466,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
26466
26466
|
return;
|
|
26467
26467
|
}
|
|
26468
26468
|
}
|
|
26469
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.9-next.
|
|
26469
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.9-next.7") {
|
|
26470
26470
|
const customLocation = "docProps/custom.xml";
|
|
26471
26471
|
if (!docx[customLocation]) {
|
|
26472
26472
|
docx[customLocation] = generateCustomXml();
|
|
@@ -26942,7 +26942,7 @@ function storeSuperdocVersion(docx) {
|
|
|
26942
26942
|
function generateCustomXml() {
|
|
26943
26943
|
return DEFAULT_CUSTOM_XML;
|
|
26944
26944
|
}
|
|
26945
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.9-next.
|
|
26945
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.9-next.7") {
|
|
26946
26946
|
return {
|
|
26947
26947
|
type: "element",
|
|
26948
26948
|
name: "property",
|
|
@@ -43028,7 +43028,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
43028
43028
|
* @returns {Object | void} Migration results
|
|
43029
43029
|
*/
|
|
43030
43030
|
processCollaborationMigrations() {
|
|
43031
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.
|
|
43031
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.7");
|
|
43032
43032
|
if (!this.options.ydoc) return;
|
|
43033
43033
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
43034
43034
|
let docVersion = metaMap.get("version");
|
|
@@ -20461,9 +20461,9 @@ const getAbstractDefinition = (numId, docx) => {
|
|
|
20461
20461
|
const { elements } = def;
|
|
20462
20462
|
const listData = elements[0];
|
|
20463
20463
|
const numberingElements = listData.elements;
|
|
20464
|
-
const abstractDefinitions = numberingElements
|
|
20465
|
-
const numDefinitions = numberingElements
|
|
20466
|
-
const numDefinition = numDefinitions
|
|
20464
|
+
const abstractDefinitions = numberingElements?.filter((style2) => style2.name === "w:abstractNum");
|
|
20465
|
+
const numDefinitions = numberingElements?.filter((style2) => style2.name === "w:num");
|
|
20466
|
+
const numDefinition = numDefinitions?.find((style2) => style2.attributes["w:numId"] == numId);
|
|
20467
20467
|
const abstractNumId = numDefinition?.elements[0].attributes["w:val"];
|
|
20468
20468
|
let listDefinitionForThisNumId = abstractDefinitions?.find(
|
|
20469
20469
|
(style2) => style2.attributes["w:abstractNumId"] === abstractNumId
|
|
@@ -26483,7 +26483,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
26483
26483
|
return;
|
|
26484
26484
|
}
|
|
26485
26485
|
}
|
|
26486
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.9-next.
|
|
26486
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.14.9-next.7") {
|
|
26487
26487
|
const customLocation = "docProps/custom.xml";
|
|
26488
26488
|
if (!docx[customLocation]) {
|
|
26489
26489
|
docx[customLocation] = generateCustomXml();
|
|
@@ -26959,7 +26959,7 @@ function storeSuperdocVersion(docx) {
|
|
|
26959
26959
|
function generateCustomXml() {
|
|
26960
26960
|
return DEFAULT_CUSTOM_XML;
|
|
26961
26961
|
}
|
|
26962
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.14.9-next.
|
|
26962
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.14.9-next.7") {
|
|
26963
26963
|
return {
|
|
26964
26964
|
type: "element",
|
|
26965
26965
|
name: "property",
|
|
@@ -43045,7 +43045,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
43045
43045
|
* @returns {Object | void} Migration results
|
|
43046
43046
|
*/
|
|
43047
43047
|
processCollaborationMigrations() {
|
|
43048
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.
|
|
43048
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.14.9-next.7");
|
|
43049
43049
|
if (!this.options.ydoc) return;
|
|
43050
43050
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
43051
43051
|
let docVersion = metaMap.get("version");
|
|
@@ -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-t28wMlyv.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 */
|
|
@@ -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-D78KIQHL.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 */
|
|
@@ -394,62 +394,55 @@ var eventsExports = events.exports;
|
|
|
394
394
|
const require$$2 = /* @__PURE__ */ getAugmentedNamespace(dist);
|
|
395
395
|
var util = {};
|
|
396
396
|
var types = {};
|
|
397
|
-
var shams$1
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
397
|
+
var shams$1 = function hasSymbols() {
|
|
398
|
+
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
399
|
+
return false;
|
|
400
|
+
}
|
|
401
|
+
if (typeof Symbol.iterator === "symbol") {
|
|
402
|
+
return true;
|
|
403
|
+
}
|
|
404
|
+
var obj = {};
|
|
405
|
+
var sym = Symbol("test");
|
|
406
|
+
var symObj = Object(sym);
|
|
407
|
+
if (typeof sym === "string") {
|
|
408
|
+
return false;
|
|
409
|
+
}
|
|
410
|
+
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
411
|
+
return false;
|
|
412
|
+
}
|
|
413
|
+
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
414
|
+
return false;
|
|
415
|
+
}
|
|
416
|
+
var symVal = 42;
|
|
417
|
+
obj[sym] = symVal;
|
|
418
|
+
for (var _ in obj) {
|
|
419
|
+
return false;
|
|
420
|
+
}
|
|
421
|
+
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
422
|
+
return false;
|
|
423
|
+
}
|
|
424
|
+
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
425
|
+
return false;
|
|
426
|
+
}
|
|
427
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
428
|
+
if (syms.length !== 1 || syms[0] !== sym) {
|
|
429
|
+
return false;
|
|
430
|
+
}
|
|
431
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
432
|
+
return false;
|
|
433
|
+
}
|
|
434
|
+
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
435
|
+
var descriptor = (
|
|
436
|
+
/** @type {PropertyDescriptor} */
|
|
437
|
+
Object.getOwnPropertyDescriptor(obj, sym)
|
|
438
|
+
);
|
|
439
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
437
440
|
return false;
|
|
438
441
|
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
);
|
|
444
|
-
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
445
|
-
return false;
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
return true;
|
|
449
|
-
};
|
|
450
|
-
return shams$1;
|
|
451
|
-
}
|
|
452
|
-
var hasSymbols$2 = requireShams();
|
|
442
|
+
}
|
|
443
|
+
return true;
|
|
444
|
+
};
|
|
445
|
+
var hasSymbols$2 = shams$1;
|
|
453
446
|
var shams = function hasToStringTagShams() {
|
|
454
447
|
return hasSymbols$2() && !!Symbol.toStringTag;
|
|
455
448
|
};
|
|
@@ -477,8 +470,8 @@ var sign$1 = function sign(number) {
|
|
|
477
470
|
}
|
|
478
471
|
return number < 0 ? -1 : 1;
|
|
479
472
|
};
|
|
480
|
-
var gOPD$
|
|
481
|
-
var $gOPD$1 = gOPD$
|
|
473
|
+
var gOPD$4 = Object.getOwnPropertyDescriptor;
|
|
474
|
+
var $gOPD$1 = gOPD$4;
|
|
482
475
|
if ($gOPD$1) {
|
|
483
476
|
try {
|
|
484
477
|
$gOPD$1([], "length");
|
|
@@ -502,7 +495,7 @@ function requireHasSymbols() {
|
|
|
502
495
|
if (hasRequiredHasSymbols) return hasSymbols$1;
|
|
503
496
|
hasRequiredHasSymbols = 1;
|
|
504
497
|
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
505
|
-
var hasSymbolSham =
|
|
498
|
+
var hasSymbolSham = shams$1;
|
|
506
499
|
hasSymbols$1 = function hasNativeSymbols() {
|
|
507
500
|
if (typeof origSymbol !== "function") {
|
|
508
501
|
return false;
|
|
@@ -520,23 +513,9 @@ function requireHasSymbols() {
|
|
|
520
513
|
};
|
|
521
514
|
return hasSymbols$1;
|
|
522
515
|
}
|
|
523
|
-
var Reflect_getPrototypeOf;
|
|
524
|
-
var
|
|
525
|
-
|
|
526
|
-
if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
|
|
527
|
-
hasRequiredReflect_getPrototypeOf = 1;
|
|
528
|
-
Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
529
|
-
return Reflect_getPrototypeOf;
|
|
530
|
-
}
|
|
531
|
-
var Object_getPrototypeOf;
|
|
532
|
-
var hasRequiredObject_getPrototypeOf;
|
|
533
|
-
function requireObject_getPrototypeOf() {
|
|
534
|
-
if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
|
|
535
|
-
hasRequiredObject_getPrototypeOf = 1;
|
|
536
|
-
var $Object2 = esObjectAtoms;
|
|
537
|
-
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
538
|
-
return Object_getPrototypeOf;
|
|
539
|
-
}
|
|
516
|
+
var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
517
|
+
var $Object$2 = esObjectAtoms;
|
|
518
|
+
var Object_getPrototypeOf = $Object$2.getPrototypeOf || null;
|
|
540
519
|
var implementation;
|
|
541
520
|
var hasRequiredImplementation;
|
|
542
521
|
function requireImplementation() {
|
|
@@ -654,57 +633,43 @@ var callBindApplyHelpers = function callBindBasic(args) {
|
|
|
654
633
|
}
|
|
655
634
|
return $actualApply(bind$2, $call$1, args);
|
|
656
635
|
};
|
|
657
|
-
var
|
|
658
|
-
var
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
667
|
-
[].__proto__ === Array.prototype;
|
|
668
|
-
} catch (e) {
|
|
669
|
-
if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
|
|
670
|
-
throw e;
|
|
671
|
-
}
|
|
636
|
+
var callBind$2 = callBindApplyHelpers;
|
|
637
|
+
var gOPD$3 = gopd$1;
|
|
638
|
+
var hasProtoAccessor;
|
|
639
|
+
try {
|
|
640
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
641
|
+
[].__proto__ === Array.prototype;
|
|
642
|
+
} catch (e) {
|
|
643
|
+
if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
|
|
644
|
+
throw e;
|
|
672
645
|
}
|
|
673
|
-
var desc = !!hasProtoAccessor && gOPD2 && gOPD2(
|
|
674
|
-
Object.prototype,
|
|
675
|
-
/** @type {keyof typeof Object.prototype} */
|
|
676
|
-
"__proto__"
|
|
677
|
-
);
|
|
678
|
-
var $Object2 = Object;
|
|
679
|
-
var $getPrototypeOf = $Object2.getPrototypeOf;
|
|
680
|
-
get = desc && typeof desc.get === "function" ? callBind2([desc.get]) : typeof $getPrototypeOf === "function" ? (
|
|
681
|
-
/** @type {import('./get')} */
|
|
682
|
-
function getDunder(value) {
|
|
683
|
-
return $getPrototypeOf(value == null ? value : $Object2(value));
|
|
684
|
-
}
|
|
685
|
-
) : false;
|
|
686
|
-
return get;
|
|
687
|
-
}
|
|
688
|
-
var getProto$3;
|
|
689
|
-
var hasRequiredGetProto;
|
|
690
|
-
function requireGetProto() {
|
|
691
|
-
if (hasRequiredGetProto) return getProto$3;
|
|
692
|
-
hasRequiredGetProto = 1;
|
|
693
|
-
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
694
|
-
var originalGetProto = requireObject_getPrototypeOf();
|
|
695
|
-
var getDunderProto = requireGet();
|
|
696
|
-
getProto$3 = reflectGetProto ? function getProto2(O) {
|
|
697
|
-
return reflectGetProto(O);
|
|
698
|
-
} : originalGetProto ? function getProto2(O) {
|
|
699
|
-
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
700
|
-
throw new TypeError("getProto: not an object");
|
|
701
|
-
}
|
|
702
|
-
return originalGetProto(O);
|
|
703
|
-
} : getDunderProto ? function getProto2(O) {
|
|
704
|
-
return getDunderProto(O);
|
|
705
|
-
} : null;
|
|
706
|
-
return getProto$3;
|
|
707
646
|
}
|
|
647
|
+
var desc = !!hasProtoAccessor && gOPD$3 && gOPD$3(
|
|
648
|
+
Object.prototype,
|
|
649
|
+
/** @type {keyof typeof Object.prototype} */
|
|
650
|
+
"__proto__"
|
|
651
|
+
);
|
|
652
|
+
var $Object$1 = Object;
|
|
653
|
+
var $getPrototypeOf = $Object$1.getPrototypeOf;
|
|
654
|
+
var get = desc && typeof desc.get === "function" ? callBind$2([desc.get]) : typeof $getPrototypeOf === "function" ? (
|
|
655
|
+
/** @type {import('./get')} */
|
|
656
|
+
function getDunder(value) {
|
|
657
|
+
return $getPrototypeOf(value == null ? value : $Object$1(value));
|
|
658
|
+
}
|
|
659
|
+
) : false;
|
|
660
|
+
var reflectGetProto = Reflect_getPrototypeOf;
|
|
661
|
+
var originalGetProto = Object_getPrototypeOf;
|
|
662
|
+
var getDunderProto = get;
|
|
663
|
+
var getProto$3 = reflectGetProto ? function getProto(O) {
|
|
664
|
+
return reflectGetProto(O);
|
|
665
|
+
} : originalGetProto ? function getProto2(O) {
|
|
666
|
+
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
667
|
+
throw new TypeError("getProto: not an object");
|
|
668
|
+
}
|
|
669
|
+
return originalGetProto(O);
|
|
670
|
+
} : getDunderProto ? function getProto3(O) {
|
|
671
|
+
return getDunderProto(O);
|
|
672
|
+
} : null;
|
|
708
673
|
var hasown;
|
|
709
674
|
var hasRequiredHasown;
|
|
710
675
|
function requireHasown() {
|
|
@@ -756,10 +721,10 @@ var ThrowTypeError = $gOPD ? function() {
|
|
|
756
721
|
}
|
|
757
722
|
}
|
|
758
723
|
}() : throwTypeError;
|
|
759
|
-
var
|
|
760
|
-
var getProto$2 =
|
|
761
|
-
var $ObjectGPO =
|
|
762
|
-
var $ReflectGPO =
|
|
724
|
+
var hasSymbols2 = requireHasSymbols()();
|
|
725
|
+
var getProto$2 = getProto$3;
|
|
726
|
+
var $ObjectGPO = Object_getPrototypeOf;
|
|
727
|
+
var $ReflectGPO = Reflect_getPrototypeOf;
|
|
763
728
|
var $apply$1 = requireFunctionApply();
|
|
764
729
|
var $call = requireFunctionCall();
|
|
765
730
|
var needsEval = {};
|
|
@@ -769,7 +734,7 @@ var INTRINSICS = {
|
|
|
769
734
|
"%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
|
|
770
735
|
"%Array%": Array,
|
|
771
736
|
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
|
|
772
|
-
"%ArrayIteratorPrototype%":
|
|
737
|
+
"%ArrayIteratorPrototype%": hasSymbols2 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
|
|
773
738
|
"%AsyncFromSyncIteratorPrototype%": undefined$1,
|
|
774
739
|
"%AsyncFunction%": needsEval,
|
|
775
740
|
"%AsyncGenerator%": needsEval,
|
|
@@ -801,10 +766,10 @@ var INTRINSICS = {
|
|
|
801
766
|
"%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
|
|
802
767
|
"%isFinite%": isFinite,
|
|
803
768
|
"%isNaN%": isNaN,
|
|
804
|
-
"%IteratorPrototype%":
|
|
769
|
+
"%IteratorPrototype%": hasSymbols2 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
|
|
805
770
|
"%JSON%": typeof JSON === "object" ? JSON : undefined$1,
|
|
806
771
|
"%Map%": typeof Map === "undefined" ? undefined$1 : Map,
|
|
807
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !
|
|
772
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols2 || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
808
773
|
"%Math%": Math,
|
|
809
774
|
"%Number%": Number,
|
|
810
775
|
"%Object%": $Object,
|
|
@@ -818,11 +783,11 @@ var INTRINSICS = {
|
|
|
818
783
|
"%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
|
|
819
784
|
"%RegExp%": RegExp,
|
|
820
785
|
"%Set%": typeof Set === "undefined" ? undefined$1 : Set,
|
|
821
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !
|
|
786
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols2 || !getProto$2 ? undefined$1 : getProto$2((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
822
787
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
|
|
823
788
|
"%String%": String,
|
|
824
|
-
"%StringIteratorPrototype%":
|
|
825
|
-
"%Symbol%":
|
|
789
|
+
"%StringIteratorPrototype%": hasSymbols2 && getProto$2 ? getProto$2(""[Symbol.iterator]()) : undefined$1,
|
|
790
|
+
"%Symbol%": hasSymbols2 ? Symbol : undefined$1,
|
|
826
791
|
"%SyntaxError%": $SyntaxError$1,
|
|
827
792
|
"%ThrowTypeError%": ThrowTypeError,
|
|
828
793
|
"%TypedArray%": TypedArray,
|
|
@@ -1021,10 +986,10 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1021
986
|
return void 0;
|
|
1022
987
|
}
|
|
1023
988
|
if ($gOPD && i + 1 >= parts.length) {
|
|
1024
|
-
var
|
|
1025
|
-
isOwn = !!
|
|
1026
|
-
if (isOwn && "get" in
|
|
1027
|
-
value =
|
|
989
|
+
var desc2 = $gOPD(value, part);
|
|
990
|
+
isOwn = !!desc2;
|
|
991
|
+
if (isOwn && "get" in desc2 && !("originalValue" in desc2.get)) {
|
|
992
|
+
value = desc2.get;
|
|
1028
993
|
} else {
|
|
1029
994
|
value = value[part];
|
|
1030
995
|
}
|
|
@@ -1147,7 +1112,7 @@ var callBound$1 = callBound$5;
|
|
|
1147
1112
|
var safeRegexTest = safeRegexTest$1;
|
|
1148
1113
|
var isFnRegex = safeRegexTest(/^\s*(?:function)?\*/);
|
|
1149
1114
|
var hasToStringTag$2 = shams();
|
|
1150
|
-
var getProto$1 =
|
|
1115
|
+
var getProto$1 = getProto$3;
|
|
1151
1116
|
var toStr$2 = callBound$1("Object.prototype.toString");
|
|
1152
1117
|
var fnToStr$1 = callBound$1("Function.prototype.toString");
|
|
1153
1118
|
var getGeneratorFunc = function() {
|
|
@@ -1399,13 +1364,13 @@ var defineDataProperty = function defineDataProperty2(obj, property, value) {
|
|
|
1399
1364
|
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
1400
1365
|
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
1401
1366
|
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
1402
|
-
var
|
|
1367
|
+
var desc2 = !!gopd && gopd(obj, property);
|
|
1403
1368
|
if ($defineProperty$1) {
|
|
1404
1369
|
$defineProperty$1(obj, property, {
|
|
1405
|
-
configurable: nonConfigurable === null &&
|
|
1406
|
-
enumerable: nonEnumerable === null &&
|
|
1370
|
+
configurable: nonConfigurable === null && desc2 ? desc2.configurable : !nonConfigurable,
|
|
1371
|
+
enumerable: nonEnumerable === null && desc2 ? desc2.enumerable : !nonEnumerable,
|
|
1407
1372
|
value,
|
|
1408
|
-
writable: nonWritable === null &&
|
|
1373
|
+
writable: nonWritable === null && desc2 ? desc2.writable : !nonWritable
|
|
1409
1374
|
});
|
|
1410
1375
|
} else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
|
|
1411
1376
|
obj[property] = value;
|
|
@@ -1445,11 +1410,11 @@ var setFunctionLength = function setFunctionLength2(fn2, length) {
|
|
|
1445
1410
|
var functionLengthIsConfigurable = true;
|
|
1446
1411
|
var functionLengthIsWritable = true;
|
|
1447
1412
|
if ("length" in fn2 && gOPD$1) {
|
|
1448
|
-
var
|
|
1449
|
-
if (
|
|
1413
|
+
var desc2 = gOPD$1(fn2, "length");
|
|
1414
|
+
if (desc2 && !desc2.configurable) {
|
|
1450
1415
|
functionLengthIsConfigurable = false;
|
|
1451
1416
|
}
|
|
1452
|
-
if (
|
|
1417
|
+
if (desc2 && !desc2.writable) {
|
|
1453
1418
|
functionLengthIsWritable = false;
|
|
1454
1419
|
}
|
|
1455
1420
|
}
|
|
@@ -1506,7 +1471,7 @@ var availableTypedArrays2 = availableTypedArrays$1;
|
|
|
1506
1471
|
var callBind = callBindExports;
|
|
1507
1472
|
var callBound = callBound$5;
|
|
1508
1473
|
var gOPD = gopd$1;
|
|
1509
|
-
var
|
|
1474
|
+
var getProto4 = getProto$3;
|
|
1510
1475
|
var $toString = callBound("Object.prototype.toString");
|
|
1511
1476
|
var hasToStringTag = shams();
|
|
1512
1477
|
var g = typeof globalThis === "undefined" ? commonjsGlobal : globalThis;
|
|
@@ -1521,14 +1486,14 @@ var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(ar
|
|
|
1521
1486
|
return -1;
|
|
1522
1487
|
};
|
|
1523
1488
|
var cache = { __proto__: null };
|
|
1524
|
-
if (hasToStringTag && gOPD &&
|
|
1489
|
+
if (hasToStringTag && gOPD && getProto4) {
|
|
1525
1490
|
forEach2(typedArrays, function(typedArray) {
|
|
1526
1491
|
var arr = new g[typedArray]();
|
|
1527
|
-
if (Symbol.toStringTag in arr &&
|
|
1528
|
-
var proto =
|
|
1492
|
+
if (Symbol.toStringTag in arr && getProto4) {
|
|
1493
|
+
var proto = getProto4(arr);
|
|
1529
1494
|
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
1530
1495
|
if (!descriptor && proto) {
|
|
1531
|
-
var superProto =
|
|
1496
|
+
var superProto = getProto4(proto);
|
|
1532
1497
|
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
1533
1498
|
}
|
|
1534
1499
|
cache["$" + typedArray] = callBind(descriptor.get);
|
|
@@ -2121,16 +2086,16 @@ var isBufferBrowser = function isBuffer(arg) {
|
|
|
2121
2086
|
return output;
|
|
2122
2087
|
}
|
|
2123
2088
|
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
2124
|
-
var name, str,
|
|
2125
|
-
|
|
2126
|
-
if (
|
|
2127
|
-
if (
|
|
2089
|
+
var name, str, desc2;
|
|
2090
|
+
desc2 = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
2091
|
+
if (desc2.get) {
|
|
2092
|
+
if (desc2.set) {
|
|
2128
2093
|
str = ctx.stylize("[Getter/Setter]", "special");
|
|
2129
2094
|
} else {
|
|
2130
2095
|
str = ctx.stylize("[Getter]", "special");
|
|
2131
2096
|
}
|
|
2132
2097
|
} else {
|
|
2133
|
-
if (
|
|
2098
|
+
if (desc2.set) {
|
|
2134
2099
|
str = ctx.stylize("[Setter]", "special");
|
|
2135
2100
|
}
|
|
2136
2101
|
}
|
|
@@ -2138,11 +2103,11 @@ var isBufferBrowser = function isBuffer(arg) {
|
|
|
2138
2103
|
name = "[" + key + "]";
|
|
2139
2104
|
}
|
|
2140
2105
|
if (!str) {
|
|
2141
|
-
if (ctx.seen.indexOf(
|
|
2106
|
+
if (ctx.seen.indexOf(desc2.value) < 0) {
|
|
2142
2107
|
if (isNull(recurseTimes)) {
|
|
2143
|
-
str = formatValue(ctx,
|
|
2108
|
+
str = formatValue(ctx, desc2.value, null);
|
|
2144
2109
|
} else {
|
|
2145
|
-
str = formatValue(ctx,
|
|
2110
|
+
str = formatValue(ctx, desc2.value, recurseTimes - 1);
|
|
2146
2111
|
}
|
|
2147
2112
|
if (str.indexOf("\n") > -1) {
|
|
2148
2113
|
if (array) {
|