@harbour-enterprises/superdoc 0.13.2-rev12 → 0.13.2-rev14
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-kOMfCfBT.cjs → index-BABtK_9p.cjs} +2 -2
- package/dist/chunks/{index-CweAXNfB.cjs → index-BOOtEcgZ.cjs} +1 -1
- package/dist/chunks/{index-BqLFjUHn.es.js → index-ClYNVXDv.es.js} +1 -1
- package/dist/chunks/{index-DS3W0eVB.es.js → index-DRG7AiQg.es.js} +2 -2
- package/dist/chunks/{super-editor.es-BKgM1pcY.cjs → super-editor.es-CPC_iMPw.cjs} +3 -22
- package/dist/chunks/{super-editor.es-C_Nq6j7z.es.js → super-editor.es-D1LXSpud.es.js} +3 -22
- package/dist/chunks/{url-B8LY3nwf.cjs → url-BmSVZ-b1.cjs} +1 -1
- package/dist/chunks/{url-Bq00tGvm.es.js → url-DtyZlUvQ.es.js} +1 -1
- package/dist/chunks/{xml-js-BuAdLsHD.cjs → xml-js-PTtx0UCg.cjs} +100 -79
- package/dist/chunks/{xml-js-1F0lia4t.es.js → xml-js-uhSaCX_L.es.js} +100 -79
- package/dist/style.css +5 -0
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BaxWFoHG.js → converter-DR_3x1Wn.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-DultQQrr.js → docx-zipper-DhWkhAVx.js} +1 -1
- package/dist/super-editor/chunks/{editor-ClD1k7gi.js → editor-D63gAOoA.js} +3 -22
- package/dist/super-editor/chunks/{toolbar-BBZO5GG_.js → toolbar-xtgv6oET.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 +5 -0
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/tests/e2e/test-app/vite.config.d.ts +1 -1
- 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 +4 -23
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts +0 -3
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-9bCX1h2W.cjs");
|
|
3
3
|
const vue = require("./vue-BBjMeYfo.cjs");
|
|
4
|
-
const xmlJs = require("./xml-js-
|
|
5
|
-
const url = require("./url-
|
|
4
|
+
const xmlJs = require("./xml-js-PTtx0UCg.cjs");
|
|
5
|
+
const url = require("./url-BmSVZ-b1.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-Cl3s9njw.es.js";
|
|
2
|
-
import { s as streamHttp, r as require$$1 } from "./index-
|
|
2
|
+
import { s as streamHttp, r as require$$1 } from "./index-DRG7AiQg.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,7 +1,7 @@
|
|
|
1
1
|
import { c as commonjsGlobal, B as Buffer, a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./jszip-Cl3s9njw.es.js";
|
|
2
2
|
import { p as process$1 } from "./vue-BBJVqxjL.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-uhSaCX_L.es.js";
|
|
4
|
+
import { u as url } from "./url-DtyZlUvQ.es.js";
|
|
5
5
|
function _mergeNamespaces(n, m) {
|
|
6
6
|
for (var i = 0; i < m.length; i++) {
|
|
7
7
|
const e = m[i];
|
|
@@ -23989,7 +23989,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
23989
23989
|
return;
|
|
23990
23990
|
}
|
|
23991
23991
|
}
|
|
23992
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.2-
|
|
23992
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.2-rev14") {
|
|
23993
23993
|
const customLocation = "docProps/custom.xml";
|
|
23994
23994
|
if (!docx[customLocation]) {
|
|
23995
23995
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24456,7 +24456,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24456
24456
|
function generateCustomXml() {
|
|
24457
24457
|
return DEFAULT_CUSTOM_XML;
|
|
24458
24458
|
}
|
|
24459
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.13.2-
|
|
24459
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.13.2-rev14") {
|
|
24460
24460
|
return {
|
|
24461
24461
|
type: "element",
|
|
24462
24462
|
name: "property",
|
|
@@ -40482,7 +40482,6 @@ const Collaboration = Extension.create({
|
|
|
40482
40482
|
if (!this.editor.options.ydoc) return [];
|
|
40483
40483
|
this.options.ydoc = this.editor.options.ydoc;
|
|
40484
40484
|
const undoPlugin = createUndoPlugin();
|
|
40485
|
-
initDocumentLockHandler(this.options.ydoc, this.editor);
|
|
40486
40485
|
initSyncListener(this.options.ydoc, this.editor, this);
|
|
40487
40486
|
initDocumentListener({ ydoc: this.options.ydoc, editor: this.editor });
|
|
40488
40487
|
const [syncPlugin, fragment] = createSyncPlugin(this.options.ydoc, this.editor);
|
|
@@ -40548,24 +40547,6 @@ const createUndoPlugin = () => {
|
|
|
40548
40547
|
const yUndoPluginInstance = yUndoPlugin();
|
|
40549
40548
|
return yUndoPluginInstance;
|
|
40550
40549
|
};
|
|
40551
|
-
const initDocumentLockHandler = (ydoc, editor) => {
|
|
40552
|
-
const metaMap = ydoc.getMap("meta");
|
|
40553
|
-
metaMap.observe((event) => {
|
|
40554
|
-
const lockedBy = metaMap.get("lockedBy");
|
|
40555
|
-
const isLocked = metaMap.get("locked");
|
|
40556
|
-
if (!editor.options.user || !lockedBy) return;
|
|
40557
|
-
const emitEvent = lockedBy?.email !== editor.options.user?.email;
|
|
40558
|
-
const editableChanged = editor.options.editable !== !isLocked;
|
|
40559
|
-
if (!emitEvent || !editableChanged) return;
|
|
40560
|
-
if (isLocked) {
|
|
40561
|
-
console.debug("--- Locking editor ---", lockedBy, editor.options.user);
|
|
40562
|
-
} else {
|
|
40563
|
-
console.debug("--- Unlocking editor ---", lockedBy);
|
|
40564
|
-
}
|
|
40565
|
-
editor.setEditable(!isLocked);
|
|
40566
|
-
editor.emit("locked", { editor, isLocked, lockedBy });
|
|
40567
|
-
});
|
|
40568
|
-
};
|
|
40569
40550
|
const checkDocxChanged = (transaction) => {
|
|
40570
40551
|
for (const [key, value] of transaction.changed?.entries()) {
|
|
40571
40552
|
if (value instanceof Set && value.has("docx")) {
|
|
@@ -41378,7 +41359,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
41378
41359
|
* @returns {Object | void} Migration results
|
|
41379
41360
|
*/
|
|
41380
41361
|
processCollaborationMigrations() {
|
|
41381
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.13.2-
|
|
41362
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.13.2-rev14");
|
|
41382
41363
|
if (!this.options.ydoc) return;
|
|
41383
41364
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
41384
41365
|
let docVersion = metaMap.get("version");
|
|
@@ -23972,7 +23972,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
23972
23972
|
return;
|
|
23973
23973
|
}
|
|
23974
23974
|
}
|
|
23975
|
-
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.2-
|
|
23975
|
+
static updateDocumentVersion(docx = this.convertedXml, version2 = "0.13.2-rev14") {
|
|
23976
23976
|
const customLocation = "docProps/custom.xml";
|
|
23977
23977
|
if (!docx[customLocation]) {
|
|
23978
23978
|
docx[customLocation] = generateCustomXml();
|
|
@@ -24439,7 +24439,7 @@ function storeSuperdocVersion(docx) {
|
|
|
24439
24439
|
function generateCustomXml() {
|
|
24440
24440
|
return DEFAULT_CUSTOM_XML;
|
|
24441
24441
|
}
|
|
24442
|
-
function generateSuperdocVersion(pid = 2, version2 = "0.13.2-
|
|
24442
|
+
function generateSuperdocVersion(pid = 2, version2 = "0.13.2-rev14") {
|
|
24443
24443
|
return {
|
|
24444
24444
|
type: "element",
|
|
24445
24445
|
name: "property",
|
|
@@ -40465,7 +40465,6 @@ const Collaboration = Extension.create({
|
|
|
40465
40465
|
if (!this.editor.options.ydoc) return [];
|
|
40466
40466
|
this.options.ydoc = this.editor.options.ydoc;
|
|
40467
40467
|
const undoPlugin = createUndoPlugin();
|
|
40468
|
-
initDocumentLockHandler(this.options.ydoc, this.editor);
|
|
40469
40468
|
initSyncListener(this.options.ydoc, this.editor, this);
|
|
40470
40469
|
initDocumentListener({ ydoc: this.options.ydoc, editor: this.editor });
|
|
40471
40470
|
const [syncPlugin, fragment] = createSyncPlugin(this.options.ydoc, this.editor);
|
|
@@ -40531,24 +40530,6 @@ const createUndoPlugin = () => {
|
|
|
40531
40530
|
const yUndoPluginInstance = yUndoPlugin();
|
|
40532
40531
|
return yUndoPluginInstance;
|
|
40533
40532
|
};
|
|
40534
|
-
const initDocumentLockHandler = (ydoc, editor) => {
|
|
40535
|
-
const metaMap = ydoc.getMap("meta");
|
|
40536
|
-
metaMap.observe((event) => {
|
|
40537
|
-
const lockedBy = metaMap.get("lockedBy");
|
|
40538
|
-
const isLocked = metaMap.get("locked");
|
|
40539
|
-
if (!editor.options.user || !lockedBy) return;
|
|
40540
|
-
const emitEvent = lockedBy?.email !== editor.options.user?.email;
|
|
40541
|
-
const editableChanged = editor.options.editable !== !isLocked;
|
|
40542
|
-
if (!emitEvent || !editableChanged) return;
|
|
40543
|
-
if (isLocked) {
|
|
40544
|
-
console.debug("--- Locking editor ---", lockedBy, editor.options.user);
|
|
40545
|
-
} else {
|
|
40546
|
-
console.debug("--- Unlocking editor ---", lockedBy);
|
|
40547
|
-
}
|
|
40548
|
-
editor.setEditable(!isLocked);
|
|
40549
|
-
editor.emit("locked", { editor, isLocked, lockedBy });
|
|
40550
|
-
});
|
|
40551
|
-
};
|
|
40552
40533
|
const checkDocxChanged = (transaction) => {
|
|
40553
40534
|
for (const [key, value] of transaction.changed?.entries()) {
|
|
40554
40535
|
if (value instanceof Set && value.has("docx")) {
|
|
@@ -41361,7 +41342,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
41361
41342
|
* @returns {Object | void} Migration results
|
|
41362
41343
|
*/
|
|
41363
41344
|
processCollaborationMigrations() {
|
|
41364
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.13.2-
|
|
41345
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.13.2-rev14");
|
|
41365
41346
|
if (!this.options.ydoc) return;
|
|
41366
41347
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
41367
41348
|
let docVersion = metaMap.get("version");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-9bCX1h2W.cjs");
|
|
3
|
-
const xmlJs = require("./xml-js-
|
|
3
|
+
const xmlJs = require("./xml-js-PTtx0UCg.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-Cl3s9njw.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-uhSaCX_L.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 */
|
|
@@ -457,7 +457,7 @@ var type = TypeError;
|
|
|
457
457
|
var uri = URIError;
|
|
458
458
|
var abs$1 = Math.abs;
|
|
459
459
|
var floor$1 = Math.floor;
|
|
460
|
-
var max$
|
|
460
|
+
var max$1 = Math.max;
|
|
461
461
|
var min$1 = Math.min;
|
|
462
462
|
var pow$1 = Math.pow;
|
|
463
463
|
var round$1 = Math.round;
|
|
@@ -517,78 +517,99 @@ function requireHasSymbols() {
|
|
|
517
517
|
var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
518
518
|
var $Object$2 = esObjectAtoms;
|
|
519
519
|
var Object_getPrototypeOf = $Object$2.getPrototypeOf || null;
|
|
520
|
-
var
|
|
521
|
-
var
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
var
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
arr
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}
|
|
534
|
-
var
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
arr
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
var
|
|
542
|
-
|
|
543
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
544
|
-
str += arr[i];
|
|
545
|
-
if (i + 1 < arr.length) {
|
|
546
|
-
str += joiner;
|
|
520
|
+
var implementation;
|
|
521
|
+
var hasRequiredImplementation;
|
|
522
|
+
function requireImplementation() {
|
|
523
|
+
if (hasRequiredImplementation) return implementation;
|
|
524
|
+
hasRequiredImplementation = 1;
|
|
525
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
526
|
+
var toStr2 = Object.prototype.toString;
|
|
527
|
+
var max2 = Math.max;
|
|
528
|
+
var funcType = "[object Function]";
|
|
529
|
+
var concatty = function concatty2(a, b) {
|
|
530
|
+
var arr = [];
|
|
531
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
532
|
+
arr[i] = a[i];
|
|
533
|
+
}
|
|
534
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
535
|
+
arr[j + a.length] = b[j];
|
|
536
|
+
}
|
|
537
|
+
return arr;
|
|
538
|
+
};
|
|
539
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
540
|
+
var arr = [];
|
|
541
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
542
|
+
arr[j] = arrLike[i];
|
|
547
543
|
}
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
var
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
var args = slicy(arguments, 1);
|
|
557
|
-
var bound;
|
|
558
|
-
var binder = function() {
|
|
559
|
-
if (this instanceof bound) {
|
|
560
|
-
var result = target.apply(
|
|
561
|
-
this,
|
|
562
|
-
concatty(args, arguments)
|
|
563
|
-
);
|
|
564
|
-
if (Object(result) === result) {
|
|
565
|
-
return result;
|
|
544
|
+
return arr;
|
|
545
|
+
};
|
|
546
|
+
var joiny = function(arr, joiner) {
|
|
547
|
+
var str = "";
|
|
548
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
549
|
+
str += arr[i];
|
|
550
|
+
if (i + 1 < arr.length) {
|
|
551
|
+
str += joiner;
|
|
566
552
|
}
|
|
567
|
-
return this;
|
|
568
553
|
}
|
|
569
|
-
return
|
|
570
|
-
that,
|
|
571
|
-
concatty(args, arguments)
|
|
572
|
-
);
|
|
554
|
+
return str;
|
|
573
555
|
};
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
var
|
|
556
|
+
implementation = function bind2(that) {
|
|
557
|
+
var target = this;
|
|
558
|
+
if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
|
|
559
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
560
|
+
}
|
|
561
|
+
var args = slicy(arguments, 1);
|
|
562
|
+
var bound;
|
|
563
|
+
var binder = function() {
|
|
564
|
+
if (this instanceof bound) {
|
|
565
|
+
var result = target.apply(
|
|
566
|
+
this,
|
|
567
|
+
concatty(args, arguments)
|
|
568
|
+
);
|
|
569
|
+
if (Object(result) === result) {
|
|
570
|
+
return result;
|
|
571
|
+
}
|
|
572
|
+
return this;
|
|
573
|
+
}
|
|
574
|
+
return target.apply(
|
|
575
|
+
that,
|
|
576
|
+
concatty(args, arguments)
|
|
577
|
+
);
|
|
582
578
|
};
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
};
|
|
589
|
-
|
|
590
|
-
var
|
|
591
|
-
|
|
579
|
+
var boundLength = max2(0, target.length - args.length);
|
|
580
|
+
var boundArgs = [];
|
|
581
|
+
for (var i = 0; i < boundLength; i++) {
|
|
582
|
+
boundArgs[i] = "$" + i;
|
|
583
|
+
}
|
|
584
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
585
|
+
if (target.prototype) {
|
|
586
|
+
var Empty = function Empty2() {
|
|
587
|
+
};
|
|
588
|
+
Empty.prototype = target.prototype;
|
|
589
|
+
bound.prototype = new Empty();
|
|
590
|
+
Empty.prototype = null;
|
|
591
|
+
}
|
|
592
|
+
return bound;
|
|
593
|
+
};
|
|
594
|
+
return implementation;
|
|
595
|
+
}
|
|
596
|
+
var functionBind;
|
|
597
|
+
var hasRequiredFunctionBind;
|
|
598
|
+
function requireFunctionBind() {
|
|
599
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
600
|
+
hasRequiredFunctionBind = 1;
|
|
601
|
+
var implementation2 = requireImplementation();
|
|
602
|
+
functionBind = Function.prototype.bind || implementation2;
|
|
603
|
+
return functionBind;
|
|
604
|
+
}
|
|
605
|
+
var functionCall;
|
|
606
|
+
var hasRequiredFunctionCall;
|
|
607
|
+
function requireFunctionCall() {
|
|
608
|
+
if (hasRequiredFunctionCall) return functionCall;
|
|
609
|
+
hasRequiredFunctionCall = 1;
|
|
610
|
+
functionCall = Function.prototype.call;
|
|
611
|
+
return functionCall;
|
|
612
|
+
}
|
|
592
613
|
var functionApply;
|
|
593
614
|
var hasRequiredFunctionApply;
|
|
594
615
|
function requireFunctionApply() {
|
|
@@ -598,14 +619,14 @@ function requireFunctionApply() {
|
|
|
598
619
|
return functionApply;
|
|
599
620
|
}
|
|
600
621
|
var reflectApply$1 = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
601
|
-
var bind$3 =
|
|
622
|
+
var bind$3 = requireFunctionBind();
|
|
602
623
|
var $apply$2 = requireFunctionApply();
|
|
603
|
-
var $call$2 =
|
|
624
|
+
var $call$2 = requireFunctionCall();
|
|
604
625
|
var $reflectApply = reflectApply$1;
|
|
605
626
|
var actualApply$1 = $reflectApply || bind$3.call($call$2, $apply$2);
|
|
606
|
-
var bind$2 =
|
|
627
|
+
var bind$2 = requireFunctionBind();
|
|
607
628
|
var $TypeError$4 = type;
|
|
608
|
-
var $call$1 =
|
|
629
|
+
var $call$1 = requireFunctionCall();
|
|
609
630
|
var $actualApply = actualApply$1;
|
|
610
631
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
611
632
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -657,8 +678,8 @@ function requireHasown() {
|
|
|
657
678
|
hasRequiredHasown = 1;
|
|
658
679
|
var call = Function.prototype.call;
|
|
659
680
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
660
|
-
var
|
|
661
|
-
hasown =
|
|
681
|
+
var bind2 = requireFunctionBind();
|
|
682
|
+
hasown = bind2.call(call, $hasOwn);
|
|
662
683
|
return hasown;
|
|
663
684
|
}
|
|
664
685
|
var undefined$1;
|
|
@@ -672,7 +693,7 @@ var $TypeError$3 = type;
|
|
|
672
693
|
var $URIError = uri;
|
|
673
694
|
var abs = abs$1;
|
|
674
695
|
var floor = floor$1;
|
|
675
|
-
var max = max$
|
|
696
|
+
var max = max$1;
|
|
676
697
|
var min = min$1;
|
|
677
698
|
var pow = pow$1;
|
|
678
699
|
var round = round$1;
|
|
@@ -706,7 +727,7 @@ var getProto$2 = getProto$3;
|
|
|
706
727
|
var $ObjectGPO = Object_getPrototypeOf;
|
|
707
728
|
var $ReflectGPO = Reflect_getPrototypeOf;
|
|
708
729
|
var $apply$1 = requireFunctionApply();
|
|
709
|
-
var $call =
|
|
730
|
+
var $call = requireFunctionCall();
|
|
710
731
|
var needsEval = {};
|
|
711
732
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto$2 ? undefined$1 : getProto$2(Uint8Array);
|
|
712
733
|
var INTRINSICS = {
|
|
@@ -877,7 +898,7 @@ var LEGACY_ALIASES = {
|
|
|
877
898
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
878
899
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
879
900
|
};
|
|
880
|
-
var bind$1 =
|
|
901
|
+
var bind$1 = requireFunctionBind();
|
|
881
902
|
var hasOwn$1 = requireHasown();
|
|
882
903
|
var $concat = bind$1.call($call, Array.prototype.concat);
|
|
883
904
|
var $spliceApply = bind$1.call($apply$1, Array.prototype.splice);
|
|
@@ -1419,11 +1440,11 @@ var setFunctionLength = function setFunctionLength2(fn2, length) {
|
|
|
1419
1440
|
}
|
|
1420
1441
|
return fn2;
|
|
1421
1442
|
};
|
|
1422
|
-
var
|
|
1443
|
+
var bind = requireFunctionBind();
|
|
1423
1444
|
var $apply = requireFunctionApply();
|
|
1424
1445
|
var actualApply = actualApply$1;
|
|
1425
1446
|
var applyBind = function applyBind2() {
|
|
1426
|
-
return actualApply(
|
|
1447
|
+
return actualApply(bind, $apply, arguments);
|
|
1427
1448
|
};
|
|
1428
1449
|
(function(module2) {
|
|
1429
1450
|
var setFunctionLength$1 = setFunctionLength;
|
|
@@ -456,7 +456,7 @@ var type = TypeError;
|
|
|
456
456
|
var uri = URIError;
|
|
457
457
|
var abs$1 = Math.abs;
|
|
458
458
|
var floor$1 = Math.floor;
|
|
459
|
-
var max$
|
|
459
|
+
var max$1 = Math.max;
|
|
460
460
|
var min$1 = Math.min;
|
|
461
461
|
var pow$1 = Math.pow;
|
|
462
462
|
var round$1 = Math.round;
|
|
@@ -516,78 +516,99 @@ function requireHasSymbols() {
|
|
|
516
516
|
var Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
517
517
|
var $Object$2 = esObjectAtoms;
|
|
518
518
|
var Object_getPrototypeOf = $Object$2.getPrototypeOf || null;
|
|
519
|
-
var
|
|
520
|
-
var
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
var
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
arr
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}
|
|
533
|
-
var
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
arr
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
var
|
|
541
|
-
|
|
542
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
543
|
-
str += arr[i];
|
|
544
|
-
if (i + 1 < arr.length) {
|
|
545
|
-
str += joiner;
|
|
519
|
+
var implementation;
|
|
520
|
+
var hasRequiredImplementation;
|
|
521
|
+
function requireImplementation() {
|
|
522
|
+
if (hasRequiredImplementation) return implementation;
|
|
523
|
+
hasRequiredImplementation = 1;
|
|
524
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
525
|
+
var toStr2 = Object.prototype.toString;
|
|
526
|
+
var max2 = Math.max;
|
|
527
|
+
var funcType = "[object Function]";
|
|
528
|
+
var concatty = function concatty2(a, b) {
|
|
529
|
+
var arr = [];
|
|
530
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
531
|
+
arr[i] = a[i];
|
|
532
|
+
}
|
|
533
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
534
|
+
arr[j + a.length] = b[j];
|
|
535
|
+
}
|
|
536
|
+
return arr;
|
|
537
|
+
};
|
|
538
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
539
|
+
var arr = [];
|
|
540
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
541
|
+
arr[j] = arrLike[i];
|
|
546
542
|
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
var
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
var args = slicy(arguments, 1);
|
|
556
|
-
var bound;
|
|
557
|
-
var binder = function() {
|
|
558
|
-
if (this instanceof bound) {
|
|
559
|
-
var result = target.apply(
|
|
560
|
-
this,
|
|
561
|
-
concatty(args, arguments)
|
|
562
|
-
);
|
|
563
|
-
if (Object(result) === result) {
|
|
564
|
-
return result;
|
|
543
|
+
return arr;
|
|
544
|
+
};
|
|
545
|
+
var joiny = function(arr, joiner) {
|
|
546
|
+
var str = "";
|
|
547
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
548
|
+
str += arr[i];
|
|
549
|
+
if (i + 1 < arr.length) {
|
|
550
|
+
str += joiner;
|
|
565
551
|
}
|
|
566
|
-
return this;
|
|
567
552
|
}
|
|
568
|
-
return
|
|
569
|
-
that,
|
|
570
|
-
concatty(args, arguments)
|
|
571
|
-
);
|
|
553
|
+
return str;
|
|
572
554
|
};
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
var
|
|
555
|
+
implementation = function bind2(that) {
|
|
556
|
+
var target = this;
|
|
557
|
+
if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
|
|
558
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
559
|
+
}
|
|
560
|
+
var args = slicy(arguments, 1);
|
|
561
|
+
var bound;
|
|
562
|
+
var binder = function() {
|
|
563
|
+
if (this instanceof bound) {
|
|
564
|
+
var result = target.apply(
|
|
565
|
+
this,
|
|
566
|
+
concatty(args, arguments)
|
|
567
|
+
);
|
|
568
|
+
if (Object(result) === result) {
|
|
569
|
+
return result;
|
|
570
|
+
}
|
|
571
|
+
return this;
|
|
572
|
+
}
|
|
573
|
+
return target.apply(
|
|
574
|
+
that,
|
|
575
|
+
concatty(args, arguments)
|
|
576
|
+
);
|
|
581
577
|
};
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
};
|
|
588
|
-
|
|
589
|
-
var
|
|
590
|
-
|
|
578
|
+
var boundLength = max2(0, target.length - args.length);
|
|
579
|
+
var boundArgs = [];
|
|
580
|
+
for (var i = 0; i < boundLength; i++) {
|
|
581
|
+
boundArgs[i] = "$" + i;
|
|
582
|
+
}
|
|
583
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
584
|
+
if (target.prototype) {
|
|
585
|
+
var Empty = function Empty2() {
|
|
586
|
+
};
|
|
587
|
+
Empty.prototype = target.prototype;
|
|
588
|
+
bound.prototype = new Empty();
|
|
589
|
+
Empty.prototype = null;
|
|
590
|
+
}
|
|
591
|
+
return bound;
|
|
592
|
+
};
|
|
593
|
+
return implementation;
|
|
594
|
+
}
|
|
595
|
+
var functionBind;
|
|
596
|
+
var hasRequiredFunctionBind;
|
|
597
|
+
function requireFunctionBind() {
|
|
598
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
599
|
+
hasRequiredFunctionBind = 1;
|
|
600
|
+
var implementation2 = requireImplementation();
|
|
601
|
+
functionBind = Function.prototype.bind || implementation2;
|
|
602
|
+
return functionBind;
|
|
603
|
+
}
|
|
604
|
+
var functionCall;
|
|
605
|
+
var hasRequiredFunctionCall;
|
|
606
|
+
function requireFunctionCall() {
|
|
607
|
+
if (hasRequiredFunctionCall) return functionCall;
|
|
608
|
+
hasRequiredFunctionCall = 1;
|
|
609
|
+
functionCall = Function.prototype.call;
|
|
610
|
+
return functionCall;
|
|
611
|
+
}
|
|
591
612
|
var functionApply;
|
|
592
613
|
var hasRequiredFunctionApply;
|
|
593
614
|
function requireFunctionApply() {
|
|
@@ -597,14 +618,14 @@ function requireFunctionApply() {
|
|
|
597
618
|
return functionApply;
|
|
598
619
|
}
|
|
599
620
|
var reflectApply$1 = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
600
|
-
var bind$3 =
|
|
621
|
+
var bind$3 = requireFunctionBind();
|
|
601
622
|
var $apply$2 = requireFunctionApply();
|
|
602
|
-
var $call$2 =
|
|
623
|
+
var $call$2 = requireFunctionCall();
|
|
603
624
|
var $reflectApply = reflectApply$1;
|
|
604
625
|
var actualApply$1 = $reflectApply || bind$3.call($call$2, $apply$2);
|
|
605
|
-
var bind$2 =
|
|
626
|
+
var bind$2 = requireFunctionBind();
|
|
606
627
|
var $TypeError$4 = type;
|
|
607
|
-
var $call$1 =
|
|
628
|
+
var $call$1 = requireFunctionCall();
|
|
608
629
|
var $actualApply = actualApply$1;
|
|
609
630
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
610
631
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -656,8 +677,8 @@ function requireHasown() {
|
|
|
656
677
|
hasRequiredHasown = 1;
|
|
657
678
|
var call = Function.prototype.call;
|
|
658
679
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
659
|
-
var
|
|
660
|
-
hasown =
|
|
680
|
+
var bind2 = requireFunctionBind();
|
|
681
|
+
hasown = bind2.call(call, $hasOwn);
|
|
661
682
|
return hasown;
|
|
662
683
|
}
|
|
663
684
|
var undefined$1;
|
|
@@ -671,7 +692,7 @@ var $TypeError$3 = type;
|
|
|
671
692
|
var $URIError = uri;
|
|
672
693
|
var abs = abs$1;
|
|
673
694
|
var floor = floor$1;
|
|
674
|
-
var max = max$
|
|
695
|
+
var max = max$1;
|
|
675
696
|
var min = min$1;
|
|
676
697
|
var pow = pow$1;
|
|
677
698
|
var round = round$1;
|
|
@@ -705,7 +726,7 @@ var getProto$2 = getProto$3;
|
|
|
705
726
|
var $ObjectGPO = Object_getPrototypeOf;
|
|
706
727
|
var $ReflectGPO = Reflect_getPrototypeOf;
|
|
707
728
|
var $apply$1 = requireFunctionApply();
|
|
708
|
-
var $call =
|
|
729
|
+
var $call = requireFunctionCall();
|
|
709
730
|
var needsEval = {};
|
|
710
731
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto$2 ? undefined$1 : getProto$2(Uint8Array);
|
|
711
732
|
var INTRINSICS = {
|
|
@@ -876,7 +897,7 @@ var LEGACY_ALIASES = {
|
|
|
876
897
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
877
898
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
878
899
|
};
|
|
879
|
-
var bind$1 =
|
|
900
|
+
var bind$1 = requireFunctionBind();
|
|
880
901
|
var hasOwn$1 = requireHasown();
|
|
881
902
|
var $concat = bind$1.call($call, Array.prototype.concat);
|
|
882
903
|
var $spliceApply = bind$1.call($apply$1, Array.prototype.splice);
|
|
@@ -1418,11 +1439,11 @@ var setFunctionLength = function setFunctionLength2(fn2, length) {
|
|
|
1418
1439
|
}
|
|
1419
1440
|
return fn2;
|
|
1420
1441
|
};
|
|
1421
|
-
var
|
|
1442
|
+
var bind = requireFunctionBind();
|
|
1422
1443
|
var $apply = requireFunctionApply();
|
|
1423
1444
|
var actualApply = actualApply$1;
|
|
1424
1445
|
var applyBind = function applyBind2() {
|
|
1425
|
-
return actualApply(
|
|
1446
|
+
return actualApply(bind, $apply, arguments);
|
|
1426
1447
|
};
|
|
1427
1448
|
(function(module) {
|
|
1428
1449
|
var setFunctionLength$1 = setFunctionLength;
|