@harbour-enterprises/superdoc 0.13.0-RC3 → 0.13.0-next.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/{eventemitter3-Dq2TEegt.es.js → eventemitter3-BrspJk8q.es.js} +1 -1
- package/dist/chunks/{eventemitter3-DuScojUH.cjs → eventemitter3-DfVviFzP.cjs} +1 -1
- package/dist/chunks/{index-DiSsZq2e.cjs → index-B4J7wgs6.cjs} +2 -2
- package/dist/chunks/{index-DRXYX6Gk.cjs → index-Cdsq63Xq.cjs} +4 -4
- package/dist/chunks/{index-CIbdIyV7.es.js → index-Diu6UKHt.es.js} +4 -4
- package/dist/chunks/{index-xoeJtm87.es.js → index-Hr3Um-Bg.es.js} +2 -2
- package/dist/chunks/{jszip-Bwu_om3F.cjs → jszip-BTAcmbVg.cjs} +1 -1
- package/dist/chunks/{jszip-BmWWPxfF.es.js → jszip-DckFs3A7.es.js} +1 -1
- package/dist/chunks/{super-editor.es-CzkFh6x_.cjs → super-editor.es-BB_X_LWr.cjs} +3771 -1630
- package/dist/chunks/{super-editor.es-BNfBtek_.es.js → super-editor.es-DL2IwegA.es.js} +3771 -1630
- package/dist/chunks/{url-DCj-FtDL.cjs → url-BIzg4y2i.cjs} +2 -2
- package/dist/chunks/{url-BYg6oUon.es.js → url-CHayXMZH.es.js} +2 -2
- package/dist/chunks/{vue-IIIZMHTg.es.js → vue-Bi1uWinj.es.js} +17 -11
- package/dist/chunks/{vue-DPZkajuO.cjs → vue-HIY1g7dm.cjs} +17 -11
- package/dist/chunks/{xml-js-DJKwJc1u.cjs → xml-js-BjqmFOSP.cjs} +102 -81
- package/dist/chunks/{xml-js-Dua_oPCO.es.js → xml-js-CfClL-1b.es.js} +102 -81
- package/dist/core/SuperDoc.d.ts +0 -6
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/core/collaboration/collaboration.d.ts +0 -9
- package/dist/core/collaboration/collaboration.d.ts.map +1 -1
- package/dist/core/collaboration/helpers.d.ts.map +1 -1
- package/dist/style.css +246 -147
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BbSSdo_p.js → converter-DW8-tb6t.js} +577 -337
- package/dist/super-editor/chunks/{docx-zipper-8FbwdMJc.js → docx-zipper-D4HYgwV0.js} +1 -1
- package/dist/super-editor/chunks/{editor-CnYTUN7K.js → editor-C_lmahhU.js} +3590 -1911
- package/dist/super-editor/chunks/{toolbar-DtAngH6V.js → toolbar-DeqcMi3l.js} +130 -37
- package/dist/super-editor/components/pagination-helpers.d.ts.map +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.d.ts +1 -8
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/core/InputRule.d.ts +7 -0
- package/dist/super-editor/core/InputRule.d.ts.map +1 -1
- package/dist/super-editor/core/commands/splitListItem.d.ts +1 -1
- package/dist/super-editor/core/commands/splitListItem.d.ts.map +1 -1
- package/dist/super-editor/core/helpers/annotator.d.ts +2 -0
- package/dist/super-editor/core/helpers/annotator.d.ts.map +1 -1
- package/dist/super-editor/core/helpers/findWordBounds.d.ts +5 -0
- package/dist/super-editor/core/helpers/findWordBounds.d.ts.map +1 -0
- package/dist/super-editor/core/helpers/setWordSelection.d.ts +2 -0
- package/dist/super-editor/core/helpers/setWordSelection.d.ts.map +1 -0
- package/dist/super-editor/core/inputRules/docx-paste/docx-paste.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/SuperConverter.d.ts +4 -1
- package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/helpers.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/autoPageNumberImporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts +5 -32
- package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts +3 -3
- package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.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/field-annotation/FieldAnnotationView.d.ts.map +1 -1
- package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
- package/dist/super-editor/extensions/image/imageHelpers/imagePositionPlugin.d.ts.map +1 -1
- package/dist/super-editor/extensions/image/imageHelpers/index.d.ts +1 -0
- package/dist/super-editor/extensions/image/imageHelpers/processUploadedImage.d.ts.map +1 -1
- package/dist/super-editor/extensions/image/index.d.ts +1 -0
- package/dist/super-editor/extensions/index.d.ts +2 -1
- package/dist/super-editor/extensions/index.d.ts.map +1 -1
- package/dist/super-editor/extensions/line-height/line-height.d.ts.map +1 -1
- package/dist/super-editor/extensions/linked-styles/linked-styles.d.ts.map +1 -1
- package/dist/super-editor/extensions/list-item/list-item.d.ts.map +1 -1
- package/dist/super-editor/extensions/noderesizer/index.d.ts +2 -0
- package/dist/super-editor/extensions/noderesizer/index.d.ts.map +1 -0
- package/dist/super-editor/extensions/noderesizer/noderesizer.d.ts +7 -0
- package/dist/super-editor/extensions/noderesizer/noderesizer.d.ts.map +1 -0
- package/dist/super-editor/extensions/ordered-list/ordered-list.d.ts.map +1 -1
- package/dist/super-editor/extensions/page-number/page-number.d.ts +10 -0
- package/dist/super-editor/extensions/page-number/page-number.d.ts.map +1 -1
- package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts +2 -1
- package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts.map +1 -1
- package/dist/super-editor/extensions/pagination/pagination.d.ts.map +1 -1
- package/dist/super-editor/extensions/paragraph/paragraph.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +219 -120
- package/dist/super-editor/super-editor.es.js +325 -200
- package/dist/super-editor/tests/e2e/test-app/vite.config.d.ts +1 -1
- package/dist/super-editor/tests/export/export-helpers/export-helpers.d.ts.map +1 -1
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +1590 -367
- package/dist/superdoc.es.js +1575 -368
- package/dist/superdoc.umd.js +5254 -1905
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +3 -2
- package/dist/super-editor/core/helpers/list-numbering-helpers.d.ts +0 -235
- package/dist/super-editor/core/helpers/list-numbering-helpers.d.ts.map +0 -1
- package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts +0 -56
- package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts.map +0 -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
- package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts +0 -2
- package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const jszip = require("./jszip-
|
|
3
|
-
const xmlJs = require("./xml-js-
|
|
2
|
+
const jszip = require("./jszip-BTAcmbVg.cjs");
|
|
3
|
+
const xmlJs = require("./xml-js-BjqmFOSP.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
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-
|
|
2
|
-
import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-
|
|
1
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-DckFs3A7.es.js";
|
|
2
|
+
import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-CfClL-1b.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 */
|
|
@@ -162,7 +162,7 @@ process.umask = function() {
|
|
|
162
162
|
var browserExports = browser.exports;
|
|
163
163
|
const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
|
|
164
164
|
/**
|
|
165
|
-
* @vue/shared v3.5.
|
|
165
|
+
* @vue/shared v3.5.16
|
|
166
166
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
167
167
|
* @license MIT
|
|
168
168
|
**/
|
|
@@ -1984,11 +1984,11 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
1984
1984
|
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
1985
1985
|
boundCleanup
|
|
1986
1986
|
];
|
|
1987
|
+
oldValue = newValue;
|
|
1987
1988
|
call ? call(cb, 3, args) : (
|
|
1988
1989
|
// @ts-expect-error
|
|
1989
1990
|
cb(...args)
|
|
1990
1991
|
);
|
|
1991
|
-
oldValue = newValue;
|
|
1992
1992
|
} finally {
|
|
1993
1993
|
activeWatcher = currentWatcher;
|
|
1994
1994
|
}
|
|
@@ -2886,15 +2886,16 @@ const TeleportImpl = {
|
|
|
2886
2886
|
updateCssVars(n2, true);
|
|
2887
2887
|
}
|
|
2888
2888
|
if (isTeleportDeferred(n2.props)) {
|
|
2889
|
+
n2.el.__isMounted = false;
|
|
2889
2890
|
queuePostRenderEffect(() => {
|
|
2890
2891
|
mountToTarget();
|
|
2891
|
-
n2.el.__isMounted
|
|
2892
|
+
delete n2.el.__isMounted;
|
|
2892
2893
|
}, parentSuspense);
|
|
2893
2894
|
} else {
|
|
2894
2895
|
mountToTarget();
|
|
2895
2896
|
}
|
|
2896
2897
|
} else {
|
|
2897
|
-
if (isTeleportDeferred(n2.props) &&
|
|
2898
|
+
if (isTeleportDeferred(n2.props) && n1.el.__isMounted === false) {
|
|
2898
2899
|
queuePostRenderEffect(() => {
|
|
2899
2900
|
TeleportImpl.process(
|
|
2900
2901
|
n1,
|
|
@@ -2908,7 +2909,6 @@ const TeleportImpl = {
|
|
|
2908
2909
|
optimized,
|
|
2909
2910
|
internals
|
|
2910
2911
|
);
|
|
2911
|
-
delete n1.el.__isMounted;
|
|
2912
2912
|
}, parentSuspense);
|
|
2913
2913
|
return;
|
|
2914
2914
|
}
|
|
@@ -4676,9 +4676,15 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
4676
4676
|
},
|
|
4677
4677
|
provide(key, value) {
|
|
4678
4678
|
if (!!(process$1.env.NODE_ENV !== "production") && key in context.provides) {
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4679
|
+
if (hasOwn(context.provides, key)) {
|
|
4680
|
+
warn$1(
|
|
4681
|
+
`App already provides property with key "${String(key)}". It will be overwritten with the new value.`
|
|
4682
|
+
);
|
|
4683
|
+
} else {
|
|
4684
|
+
warn$1(
|
|
4685
|
+
`App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`
|
|
4686
|
+
);
|
|
4687
|
+
}
|
|
4682
4688
|
}
|
|
4683
4689
|
context.provides[key] = value;
|
|
4684
4690
|
return app;
|
|
@@ -4714,7 +4720,7 @@ function provide(key, value) {
|
|
|
4714
4720
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
4715
4721
|
const instance = currentInstance || currentRenderingInstance;
|
|
4716
4722
|
if (instance || currentApp) {
|
|
4717
|
-
|
|
4723
|
+
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
4718
4724
|
if (provides && key in provides) {
|
|
4719
4725
|
return provides[key];
|
|
4720
4726
|
} else if (arguments.length > 1) {
|
|
@@ -5729,7 +5735,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5729
5735
|
(oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement
|
|
5730
5736
|
// which also requires the correct parent container
|
|
5731
5737
|
!isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything.
|
|
5732
|
-
oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : (
|
|
5738
|
+
oldVNode.shapeFlag & (6 | 64 | 128)) ? hostParentNode(oldVNode.el) : (
|
|
5733
5739
|
// In other cases, the parent container is not actually used so we
|
|
5734
5740
|
// just pass the block element here to avoid a DOM parentNode call.
|
|
5735
5741
|
fallbackContainer
|
|
@@ -8327,7 +8333,7 @@ function initCustomFormatter() {
|
|
|
8327
8333
|
window.devtoolsFormatters = [formatter];
|
|
8328
8334
|
}
|
|
8329
8335
|
}
|
|
8330
|
-
const version = "3.5.
|
|
8336
|
+
const version = "3.5.16";
|
|
8331
8337
|
const warn = !!(process$1.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8332
8338
|
!!(process$1.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
8333
8339
|
!!(process$1.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
|
|
@@ -163,7 +163,7 @@ process.umask = function() {
|
|
|
163
163
|
var browserExports = browser.exports;
|
|
164
164
|
const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
|
|
165
165
|
/**
|
|
166
|
-
* @vue/shared v3.5.
|
|
166
|
+
* @vue/shared v3.5.16
|
|
167
167
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
168
168
|
* @license MIT
|
|
169
169
|
**/
|
|
@@ -1985,11 +1985,11 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
1985
1985
|
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
1986
1986
|
boundCleanup
|
|
1987
1987
|
];
|
|
1988
|
+
oldValue = newValue;
|
|
1988
1989
|
call ? call(cb, 3, args) : (
|
|
1989
1990
|
// @ts-expect-error
|
|
1990
1991
|
cb(...args)
|
|
1991
1992
|
);
|
|
1992
|
-
oldValue = newValue;
|
|
1993
1993
|
} finally {
|
|
1994
1994
|
activeWatcher = currentWatcher;
|
|
1995
1995
|
}
|
|
@@ -2887,15 +2887,16 @@ const TeleportImpl = {
|
|
|
2887
2887
|
updateCssVars(n2, true);
|
|
2888
2888
|
}
|
|
2889
2889
|
if (isTeleportDeferred(n2.props)) {
|
|
2890
|
+
n2.el.__isMounted = false;
|
|
2890
2891
|
queuePostRenderEffect(() => {
|
|
2891
2892
|
mountToTarget();
|
|
2892
|
-
n2.el.__isMounted
|
|
2893
|
+
delete n2.el.__isMounted;
|
|
2893
2894
|
}, parentSuspense);
|
|
2894
2895
|
} else {
|
|
2895
2896
|
mountToTarget();
|
|
2896
2897
|
}
|
|
2897
2898
|
} else {
|
|
2898
|
-
if (isTeleportDeferred(n2.props) &&
|
|
2899
|
+
if (isTeleportDeferred(n2.props) && n1.el.__isMounted === false) {
|
|
2899
2900
|
queuePostRenderEffect(() => {
|
|
2900
2901
|
TeleportImpl.process(
|
|
2901
2902
|
n1,
|
|
@@ -2909,7 +2910,6 @@ const TeleportImpl = {
|
|
|
2909
2910
|
optimized,
|
|
2910
2911
|
internals
|
|
2911
2912
|
);
|
|
2912
|
-
delete n1.el.__isMounted;
|
|
2913
2913
|
}, parentSuspense);
|
|
2914
2914
|
return;
|
|
2915
2915
|
}
|
|
@@ -4677,9 +4677,15 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
4677
4677
|
},
|
|
4678
4678
|
provide(key, value) {
|
|
4679
4679
|
if (!!(process$1.env.NODE_ENV !== "production") && key in context.provides) {
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4680
|
+
if (hasOwn(context.provides, key)) {
|
|
4681
|
+
warn$1(
|
|
4682
|
+
`App already provides property with key "${String(key)}". It will be overwritten with the new value.`
|
|
4683
|
+
);
|
|
4684
|
+
} else {
|
|
4685
|
+
warn$1(
|
|
4686
|
+
`App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`
|
|
4687
|
+
);
|
|
4688
|
+
}
|
|
4683
4689
|
}
|
|
4684
4690
|
context.provides[key] = value;
|
|
4685
4691
|
return app;
|
|
@@ -4715,7 +4721,7 @@ function provide(key, value) {
|
|
|
4715
4721
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
4716
4722
|
const instance = currentInstance || currentRenderingInstance;
|
|
4717
4723
|
if (instance || currentApp) {
|
|
4718
|
-
|
|
4724
|
+
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
4719
4725
|
if (provides && key in provides) {
|
|
4720
4726
|
return provides[key];
|
|
4721
4727
|
} else if (arguments.length > 1) {
|
|
@@ -5730,7 +5736,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5730
5736
|
(oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement
|
|
5731
5737
|
// which also requires the correct parent container
|
|
5732
5738
|
!isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything.
|
|
5733
|
-
oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : (
|
|
5739
|
+
oldVNode.shapeFlag & (6 | 64 | 128)) ? hostParentNode(oldVNode.el) : (
|
|
5734
5740
|
// In other cases, the parent container is not actually used so we
|
|
5735
5741
|
// just pass the block element here to avoid a DOM parentNode call.
|
|
5736
5742
|
fallbackContainer
|
|
@@ -8328,7 +8334,7 @@ function initCustomFormatter() {
|
|
|
8328
8334
|
window.devtoolsFormatters = [formatter];
|
|
8329
8335
|
}
|
|
8330
8336
|
}
|
|
8331
|
-
const version = "3.5.
|
|
8337
|
+
const version = "3.5.16";
|
|
8332
8338
|
const warn = !!(process$1.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8333
8339
|
!!(process$1.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
8334
8340
|
!!(process$1.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const jszip = require("./jszip-
|
|
3
|
-
const vue = require("./vue-
|
|
2
|
+
const jszip = require("./jszip-BTAcmbVg.cjs");
|
|
3
|
+
const vue = require("./vue-HIY1g7dm.cjs");
|
|
4
4
|
var inherits_browser = { exports: {} };
|
|
5
5
|
if (typeof Object.create === "function") {
|
|
6
6
|
inherits_browser.exports = function inherits(ctor, superCtor) {
|
|
@@ -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;
|