watermark-js-plus 1.6.0 → 1.6.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/es/node_modules/tslib/tslib.es6.js +86 -0
- package/dist/es/src/core/blind.js +82 -0
- package/dist/es/src/core/canvas.js +292 -0
- package/dist/es/src/core/image.js +63 -0
- package/dist/es/src/core/layout/grid.js +36 -0
- package/dist/es/src/core/layout/index.js +25 -0
- package/dist/es/src/core/watermark.js +248 -0
- package/dist/es/src/index.js +3 -0
- package/dist/es/src/utils/index.js +199 -0
- package/dist/es/src/utils/initialization.js +284 -0
- package/dist/es/src/utils/protection.js +13 -0
- package/dist/es/style.css +1 -0
- package/dist/ie/es/_virtual/_commonjsHelpers.js +3 -0
- package/dist/ie/es/_virtual/es.array.fill.js +3 -0
- package/dist/ie/es/_virtual/es.array.fill2.js +3 -0
- package/dist/ie/es/_virtual/es.array.from.js +3 -0
- package/dist/ie/es/_virtual/es.array.from2.js +3 -0
- package/dist/ie/es/_virtual/es.array.includes.js +3 -0
- package/dist/ie/es/_virtual/es.array.includes2.js +3 -0
- package/dist/ie/es/_virtual/es.promise.all.js +3 -0
- package/dist/ie/es/_virtual/es.promise.catch.js +3 -0
- package/dist/ie/es/_virtual/es.promise.constructor.js +3 -0
- package/dist/ie/es/_virtual/es.promise.js +3 -0
- package/dist/ie/es/_virtual/es.promise.race.js +3 -0
- package/dist/ie/es/_virtual/es.promise.reject.js +3 -0
- package/dist/ie/es/_virtual/es.promise.resolve.js +3 -0
- package/dist/ie/es/_virtual/es.promise2.js +3 -0
- package/dist/ie/es/_virtual/make-built-in.js +3 -0
- package/dist/ie/es/_virtual/new-promise-capability.js +3 -0
- package/dist/ie/es/_virtual/object-define-properties.js +3 -0
- package/dist/ie/es/_virtual/object-define-property.js +3 -0
- package/dist/ie/es/_virtual/object-get-own-property-descriptor.js +3 -0
- package/dist/ie/es/_virtual/object-get-own-property-names.js +3 -0
- package/dist/ie/es/_virtual/object-get-own-property-symbols.js +3 -0
- package/dist/ie/es/_virtual/object-property-is-enumerable.js +3 -0
- package/dist/ie/es/_virtual/shared-store.js +3 -0
- package/dist/ie/es/node_modules/core-js/internals/a-callable.js +23 -0
- package/dist/ie/es/node_modules/core-js/internals/a-constructor.js +23 -0
- package/dist/ie/es/node_modules/core-js/internals/a-possible-prototype.js +21 -0
- package/dist/ie/es/node_modules/core-js/internals/add-to-unscopables.js +34 -0
- package/dist/ie/es/node_modules/core-js/internals/an-instance.js +20 -0
- package/dist/ie/es/node_modules/core-js/internals/an-object.js +22 -0
- package/dist/ie/es/node_modules/core-js/internals/array-fill.js +30 -0
- package/dist/ie/es/node_modules/core-js/internals/array-from.js +66 -0
- package/dist/ie/es/node_modules/core-js/internals/array-includes.js +47 -0
- package/dist/ie/es/node_modules/core-js/internals/array-slice.js +15 -0
- package/dist/ie/es/node_modules/core-js/internals/call-with-safe-iteration-closing.js +24 -0
- package/dist/ie/es/node_modules/core-js/internals/check-correctness-of-iteration.js +52 -0
- package/dist/ie/es/node_modules/core-js/internals/classof-raw.js +20 -0
- package/dist/ie/es/node_modules/core-js/internals/classof.js +44 -0
- package/dist/ie/es/node_modules/core-js/internals/copy-constructor-properties.js +31 -0
- package/dist/ie/es/node_modules/core-js/internals/create-non-enumerable-property.js +24 -0
- package/dist/ie/es/node_modules/core-js/internals/create-property-descriptor.js +18 -0
- package/dist/ie/es/node_modules/core-js/internals/create-property.js +22 -0
- package/dist/ie/es/node_modules/core-js/internals/define-built-in-accessor.js +21 -0
- package/dist/ie/es/node_modules/core-js/internals/define-built-in.js +42 -0
- package/dist/ie/es/node_modules/core-js/internals/define-global-property.js +24 -0
- package/dist/ie/es/node_modules/core-js/internals/descriptors.js +19 -0
- package/dist/ie/es/node_modules/core-js/internals/document-create-element.js +23 -0
- package/dist/ie/es/node_modules/core-js/internals/enum-bug-keys.js +20 -0
- package/dist/ie/es/node_modules/core-js/internals/environment-is-ios-pebble.js +15 -0
- package/dist/ie/es/node_modules/core-js/internals/environment-is-ios.js +16 -0
- package/dist/ie/es/node_modules/core-js/internals/environment-is-node.js +15 -0
- package/dist/ie/es/node_modules/core-js/internals/environment-is-webos-webkit.js +15 -0
- package/dist/ie/es/node_modules/core-js/internals/environment-user-agent.js +18 -0
- package/dist/ie/es/node_modules/core-js/internals/environment-v8-version.js +40 -0
- package/dist/ie/es/node_modules/core-js/internals/environment.js +34 -0
- package/dist/ie/es/node_modules/core-js/internals/export.js +72 -0
- package/dist/ie/es/node_modules/core-js/internals/fails.js +17 -0
- package/dist/ie/es/node_modules/core-js/internals/function-apply.js +22 -0
- package/dist/ie/es/node_modules/core-js/internals/function-bind-context.js +27 -0
- package/dist/ie/es/node_modules/core-js/internals/function-bind-native.js +20 -0
- package/dist/ie/es/node_modules/core-js/internals/function-call.js +19 -0
- package/dist/ie/es/node_modules/core-js/internals/function-name.js +30 -0
- package/dist/ie/es/node_modules/core-js/internals/function-uncurry-this-accessor.js +22 -0
- package/dist/ie/es/node_modules/core-js/internals/function-uncurry-this-clause.js +22 -0
- package/dist/ie/es/node_modules/core-js/internals/function-uncurry-this.js +24 -0
- package/dist/ie/es/node_modules/core-js/internals/get-built-in.js +23 -0
- package/dist/ie/es/node_modules/core-js/internals/get-iterator-method.js +29 -0
- package/dist/ie/es/node_modules/core-js/internals/get-iterator.js +29 -0
- package/dist/ie/es/node_modules/core-js/internals/get-method.js +22 -0
- package/dist/ie/es/node_modules/core-js/internals/global-this.js +27 -0
- package/dist/ie/es/node_modules/core-js/internals/has-own-property.js +24 -0
- package/dist/ie/es/node_modules/core-js/internals/hidden-keys.js +11 -0
- package/dist/ie/es/node_modules/core-js/internals/host-report-errors.js +16 -0
- package/dist/ie/es/node_modules/core-js/internals/html.js +15 -0
- package/dist/ie/es/node_modules/core-js/internals/ie8-dom-define.js +25 -0
- package/dist/ie/es/node_modules/core-js/internals/indexed-object.js +29 -0
- package/dist/ie/es/node_modules/core-js/internals/inspect-source.js +28 -0
- package/dist/ie/es/node_modules/core-js/internals/internal-state.js +89 -0
- package/dist/ie/es/node_modules/core-js/internals/is-array-iterator-method.js +23 -0
- package/dist/ie/es/node_modules/core-js/internals/is-callable.js +21 -0
- package/dist/ie/es/node_modules/core-js/internals/is-constructor.js +68 -0
- package/dist/ie/es/node_modules/core-js/internals/is-forced.js +35 -0
- package/dist/ie/es/node_modules/core-js/internals/is-null-or-undefined.js +15 -0
- package/dist/ie/es/node_modules/core-js/internals/is-object.js +17 -0
- package/dist/ie/es/node_modules/core-js/internals/is-possible-prototype.js +17 -0
- package/dist/ie/es/node_modules/core-js/internals/is-pure.js +11 -0
- package/dist/ie/es/node_modules/core-js/internals/is-symbol.js +28 -0
- package/dist/ie/es/node_modules/core-js/internals/iterate.js +89 -0
- package/dist/ie/es/node_modules/core-js/internals/iterator-close.js +37 -0
- package/dist/ie/es/node_modules/core-js/internals/iterators.js +11 -0
- package/dist/ie/es/node_modules/core-js/internals/length-of-array-like.js +19 -0
- package/dist/ie/es/node_modules/core-js/internals/make-built-in.js +73 -0
- package/dist/ie/es/node_modules/core-js/internals/math-trunc.js +20 -0
- package/dist/ie/es/node_modules/core-js/internals/microtask.js +98 -0
- package/dist/ie/es/node_modules/core-js/internals/new-promise-capability.js +32 -0
- package/dist/ie/es/node_modules/core-js/internals/object-create.js +102 -0
- package/dist/ie/es/node_modules/core-js/internals/object-define-properties.js +37 -0
- package/dist/ie/es/node_modules/core-js/internals/object-define-property.js +59 -0
- package/dist/ie/es/node_modules/core-js/internals/object-get-own-property-descriptor.js +41 -0
- package/dist/ie/es/node_modules/core-js/internals/object-get-own-property-names.js +24 -0
- package/dist/ie/es/node_modules/core-js/internals/object-get-own-property-symbols.js +13 -0
- package/dist/ie/es/node_modules/core-js/internals/object-is-prototype-of.js +15 -0
- package/dist/ie/es/node_modules/core-js/internals/object-keys-internal.js +36 -0
- package/dist/ie/es/node_modules/core-js/internals/object-keys.js +22 -0
- package/dist/ie/es/node_modules/core-js/internals/object-property-is-enumerable.js +24 -0
- package/dist/ie/es/node_modules/core-js/internals/object-set-prototype-of.js +43 -0
- package/dist/ie/es/node_modules/core-js/internals/ordinary-to-primitive.js +29 -0
- package/dist/ie/es/node_modules/core-js/internals/own-keys.js +30 -0
- package/dist/ie/es/node_modules/core-js/internals/perform.js +17 -0
- package/dist/ie/es/node_modules/core-js/internals/promise-constructor-detection.js +66 -0
- package/dist/ie/es/node_modules/core-js/internals/promise-native-constructor.js +15 -0
- package/dist/ie/es/node_modules/core-js/internals/promise-resolve.js +26 -0
- package/dist/ie/es/node_modules/core-js/internals/promise-statics-incorrect-iteration.js +21 -0
- package/dist/ie/es/node_modules/core-js/internals/queue.js +34 -0
- package/dist/ie/es/node_modules/core-js/internals/require-object-coercible.js +22 -0
- package/dist/ie/es/node_modules/core-js/internals/safe-get-built-in.js +25 -0
- package/dist/ie/es/node_modules/core-js/internals/set-species.js +32 -0
- package/dist/ie/es/node_modules/core-js/internals/set-to-string-tag.js +26 -0
- package/dist/ie/es/node_modules/core-js/internals/shared-key.js +21 -0
- package/dist/ie/es/node_modules/core-js/internals/shared-store.js +28 -0
- package/dist/ie/es/node_modules/core-js/internals/shared.js +17 -0
- package/dist/ie/es/node_modules/core-js/internals/species-constructor.js +29 -0
- package/dist/ie/es/node_modules/core-js/internals/symbol-constructor-detection.js +32 -0
- package/dist/ie/es/node_modules/core-js/internals/task.js +139 -0
- package/dist/ie/es/node_modules/core-js/internals/to-absolute-index.js +24 -0
- package/dist/ie/es/node_modules/core-js/internals/to-indexed-object.js +20 -0
- package/dist/ie/es/node_modules/core-js/internals/to-integer-or-infinity.js +21 -0
- package/dist/ie/es/node_modules/core-js/internals/to-length.js +22 -0
- package/dist/ie/es/node_modules/core-js/internals/to-object.js +21 -0
- package/dist/ie/es/node_modules/core-js/internals/to-primitive.js +42 -0
- package/dist/ie/es/node_modules/core-js/internals/to-property-key.js +22 -0
- package/dist/ie/es/node_modules/core-js/internals/to-string-tag-support.js +20 -0
- package/dist/ie/es/node_modules/core-js/internals/try-to-string.js +19 -0
- package/dist/ie/es/node_modules/core-js/internals/uid.js +21 -0
- package/dist/ie/es/node_modules/core-js/internals/use-symbol-as-uid.js +18 -0
- package/dist/ie/es/node_modules/core-js/internals/v8-prototype-define-bug.js +25 -0
- package/dist/ie/es/node_modules/core-js/internals/validate-arguments-length.js +16 -0
- package/dist/ie/es/node_modules/core-js/internals/weak-map-basic-detection.js +19 -0
- package/dist/ie/es/node_modules/core-js/internals/well-known-symbol.js +35 -0
- package/dist/ie/es/node_modules/core-js/modules/es.array.fill.js +26 -0
- package/dist/ie/es/node_modules/core-js/modules/es.array.from.js +28 -0
- package/dist/ie/es/node_modules/core-js/modules/es.array.includes.js +36 -0
- package/dist/ie/es/node_modules/core-js/modules/es.promise.all.js +56 -0
- package/dist/ie/es/node_modules/core-js/modules/es.promise.catch.js +43 -0
- package/dist/ie/es/node_modules/core-js/modules/es.promise.constructor.js +323 -0
- package/dist/ie/es/node_modules/core-js/modules/es.promise.js +24 -0
- package/dist/ie/es/node_modules/core-js/modules/es.promise.race.js +43 -0
- package/dist/ie/es/node_modules/core-js/modules/es.promise.reject.js +28 -0
- package/dist/ie/es/node_modules/core-js/modules/es.promise.resolve.js +34 -0
- package/dist/ie/es/node_modules/tslib/tslib.es6.js +86 -0
- package/dist/ie/es/node_modules/whatwg-fetch/fetch.js +643 -0
- package/dist/ie/es/src/core/blind.js +82 -0
- package/dist/ie/es/src/core/canvas.js +292 -0
- package/dist/ie/es/src/core/image.js +63 -0
- package/dist/ie/es/src/core/layout/grid.js +36 -0
- package/dist/ie/es/src/core/layout/index.js +25 -0
- package/dist/ie/es/src/core/watermark.js +248 -0
- package/dist/ie/es/src/index.ie.js +9 -0
- package/dist/ie/es/src/utils/index.js +199 -0
- package/dist/ie/es/src/utils/initialization.js +284 -0
- package/dist/ie/es/src/utils/polyfill.js +5 -0
- package/dist/ie/es/src/utils/protection.js +13 -0
- package/dist/ie/es/style.css +1 -0
- package/dist/ie/index.cjs.js +3 -37
- package/dist/ie/index.cjs.js.map +1 -1
- package/dist/ie/index.cjs.min.js +1 -1
- package/dist/ie/index.esm.js +3 -37
- package/dist/ie/index.esm.js.map +1 -1
- package/dist/ie/index.esm.min.js +1 -1
- package/dist/ie/index.iife.js +3 -37
- package/dist/ie/index.iife.js.map +1 -1
- package/dist/ie/index.iife.min.js +1 -1
- package/dist/ie/index.umd.js +3 -37
- package/dist/ie/index.umd.js.map +1 -1
- package/dist/ie/index.umd.min.js +1 -1
- package/dist/index.cjs.js +1 -35
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.esm.js +1 -35
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.iife.js +1 -35
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.umd.js +1 -35
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/types/core/watermark.d.ts +0 -4
- package/dist/types/style/index.d.ts +1 -1
- package/package.json +41 -22
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { __require as requireFunctionCall } from './function-call.js';
|
|
2
|
+
import { __require as requireIsObject } from './is-object.js';
|
|
3
|
+
import { __require as requireIsSymbol } from './is-symbol.js';
|
|
4
|
+
import { __require as requireGetMethod } from './get-method.js';
|
|
5
|
+
import { __require as requireOrdinaryToPrimitive } from './ordinary-to-primitive.js';
|
|
6
|
+
import { __require as requireWellKnownSymbol } from './well-known-symbol.js';
|
|
7
|
+
|
|
8
|
+
var toPrimitive;
|
|
9
|
+
var hasRequiredToPrimitive;
|
|
10
|
+
|
|
11
|
+
function requireToPrimitive () {
|
|
12
|
+
if (hasRequiredToPrimitive) return toPrimitive;
|
|
13
|
+
hasRequiredToPrimitive = 1;
|
|
14
|
+
var call = requireFunctionCall();
|
|
15
|
+
var isObject = requireIsObject();
|
|
16
|
+
var isSymbol = requireIsSymbol();
|
|
17
|
+
var getMethod = requireGetMethod();
|
|
18
|
+
var ordinaryToPrimitive = requireOrdinaryToPrimitive();
|
|
19
|
+
var wellKnownSymbol = requireWellKnownSymbol();
|
|
20
|
+
|
|
21
|
+
var $TypeError = TypeError;
|
|
22
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
23
|
+
|
|
24
|
+
// `ToPrimitive` abstract operation
|
|
25
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
|
26
|
+
toPrimitive = function (input, pref) {
|
|
27
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
|
28
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
29
|
+
var result;
|
|
30
|
+
if (exoticToPrim) {
|
|
31
|
+
if (pref === undefined) pref = 'default';
|
|
32
|
+
result = call(exoticToPrim, input, pref);
|
|
33
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
|
34
|
+
throw new $TypeError("Can't convert object to primitive value");
|
|
35
|
+
}
|
|
36
|
+
if (pref === undefined) pref = 'number';
|
|
37
|
+
return ordinaryToPrimitive(input, pref);
|
|
38
|
+
};
|
|
39
|
+
return toPrimitive;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { requireToPrimitive as __require };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __require as requireToPrimitive } from './to-primitive.js';
|
|
2
|
+
import { __require as requireIsSymbol } from './is-symbol.js';
|
|
3
|
+
|
|
4
|
+
var toPropertyKey;
|
|
5
|
+
var hasRequiredToPropertyKey;
|
|
6
|
+
|
|
7
|
+
function requireToPropertyKey () {
|
|
8
|
+
if (hasRequiredToPropertyKey) return toPropertyKey;
|
|
9
|
+
hasRequiredToPropertyKey = 1;
|
|
10
|
+
var toPrimitive = requireToPrimitive();
|
|
11
|
+
var isSymbol = requireIsSymbol();
|
|
12
|
+
|
|
13
|
+
// `ToPropertyKey` abstract operation
|
|
14
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
|
15
|
+
toPropertyKey = function (argument) {
|
|
16
|
+
var key = toPrimitive(argument, 'string');
|
|
17
|
+
return isSymbol(key) ? key : key + '';
|
|
18
|
+
};
|
|
19
|
+
return toPropertyKey;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { requireToPropertyKey as __require };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { __require as requireWellKnownSymbol } from './well-known-symbol.js';
|
|
2
|
+
|
|
3
|
+
var toStringTagSupport;
|
|
4
|
+
var hasRequiredToStringTagSupport;
|
|
5
|
+
|
|
6
|
+
function requireToStringTagSupport () {
|
|
7
|
+
if (hasRequiredToStringTagSupport) return toStringTagSupport;
|
|
8
|
+
hasRequiredToStringTagSupport = 1;
|
|
9
|
+
var wellKnownSymbol = requireWellKnownSymbol();
|
|
10
|
+
|
|
11
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
12
|
+
var test = {};
|
|
13
|
+
|
|
14
|
+
test[TO_STRING_TAG] = 'z';
|
|
15
|
+
|
|
16
|
+
toStringTagSupport = String(test) === '[object z]';
|
|
17
|
+
return toStringTagSupport;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { requireToStringTagSupport as __require };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var tryToString;
|
|
2
|
+
var hasRequiredTryToString;
|
|
3
|
+
|
|
4
|
+
function requireTryToString () {
|
|
5
|
+
if (hasRequiredTryToString) return tryToString;
|
|
6
|
+
hasRequiredTryToString = 1;
|
|
7
|
+
var $String = String;
|
|
8
|
+
|
|
9
|
+
tryToString = function (argument) {
|
|
10
|
+
try {
|
|
11
|
+
return $String(argument);
|
|
12
|
+
} catch (error) {
|
|
13
|
+
return 'Object';
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
return tryToString;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { requireTryToString as __require };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __require as requireFunctionUncurryThis } from './function-uncurry-this.js';
|
|
2
|
+
|
|
3
|
+
var uid;
|
|
4
|
+
var hasRequiredUid;
|
|
5
|
+
|
|
6
|
+
function requireUid () {
|
|
7
|
+
if (hasRequiredUid) return uid;
|
|
8
|
+
hasRequiredUid = 1;
|
|
9
|
+
var uncurryThis = requireFunctionUncurryThis();
|
|
10
|
+
|
|
11
|
+
var id = 0;
|
|
12
|
+
var postfix = Math.random();
|
|
13
|
+
var toString = uncurryThis(1.0.toString);
|
|
14
|
+
|
|
15
|
+
uid = function (key) {
|
|
16
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
17
|
+
};
|
|
18
|
+
return uid;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { requireUid as __require };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __require as requireSymbolConstructorDetection } from './symbol-constructor-detection.js';
|
|
2
|
+
|
|
3
|
+
var useSymbolAsUid;
|
|
4
|
+
var hasRequiredUseSymbolAsUid;
|
|
5
|
+
|
|
6
|
+
function requireUseSymbolAsUid () {
|
|
7
|
+
if (hasRequiredUseSymbolAsUid) return useSymbolAsUid;
|
|
8
|
+
hasRequiredUseSymbolAsUid = 1;
|
|
9
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
10
|
+
var NATIVE_SYMBOL = requireSymbolConstructorDetection();
|
|
11
|
+
|
|
12
|
+
useSymbolAsUid = NATIVE_SYMBOL &&
|
|
13
|
+
!Symbol.sham &&
|
|
14
|
+
typeof Symbol.iterator == 'symbol';
|
|
15
|
+
return useSymbolAsUid;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { requireUseSymbolAsUid as __require };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __require as requireDescriptors } from './descriptors.js';
|
|
2
|
+
import { __require as requireFails } from './fails.js';
|
|
3
|
+
|
|
4
|
+
var v8PrototypeDefineBug;
|
|
5
|
+
var hasRequiredV8PrototypeDefineBug;
|
|
6
|
+
|
|
7
|
+
function requireV8PrototypeDefineBug () {
|
|
8
|
+
if (hasRequiredV8PrototypeDefineBug) return v8PrototypeDefineBug;
|
|
9
|
+
hasRequiredV8PrototypeDefineBug = 1;
|
|
10
|
+
var DESCRIPTORS = requireDescriptors();
|
|
11
|
+
var fails = requireFails();
|
|
12
|
+
|
|
13
|
+
// V8 ~ Chrome 36-
|
|
14
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
15
|
+
v8PrototypeDefineBug = DESCRIPTORS && fails(function () {
|
|
16
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
17
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
18
|
+
value: 42,
|
|
19
|
+
writable: false
|
|
20
|
+
}).prototype !== 42;
|
|
21
|
+
});
|
|
22
|
+
return v8PrototypeDefineBug;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { requireV8PrototypeDefineBug as __require };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var validateArgumentsLength;
|
|
2
|
+
var hasRequiredValidateArgumentsLength;
|
|
3
|
+
|
|
4
|
+
function requireValidateArgumentsLength () {
|
|
5
|
+
if (hasRequiredValidateArgumentsLength) return validateArgumentsLength;
|
|
6
|
+
hasRequiredValidateArgumentsLength = 1;
|
|
7
|
+
var $TypeError = TypeError;
|
|
8
|
+
|
|
9
|
+
validateArgumentsLength = function (passed, required) {
|
|
10
|
+
if (passed < required) throw new $TypeError('Not enough arguments');
|
|
11
|
+
return passed;
|
|
12
|
+
};
|
|
13
|
+
return validateArgumentsLength;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { requireValidateArgumentsLength as __require };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __require as requireGlobalThis } from './global-this.js';
|
|
2
|
+
import { __require as requireIsCallable } from './is-callable.js';
|
|
3
|
+
|
|
4
|
+
var weakMapBasicDetection;
|
|
5
|
+
var hasRequiredWeakMapBasicDetection;
|
|
6
|
+
|
|
7
|
+
function requireWeakMapBasicDetection () {
|
|
8
|
+
if (hasRequiredWeakMapBasicDetection) return weakMapBasicDetection;
|
|
9
|
+
hasRequiredWeakMapBasicDetection = 1;
|
|
10
|
+
var globalThis = requireGlobalThis();
|
|
11
|
+
var isCallable = requireIsCallable();
|
|
12
|
+
|
|
13
|
+
var WeakMap = globalThis.WeakMap;
|
|
14
|
+
|
|
15
|
+
weakMapBasicDetection = isCallable(WeakMap) && /native code/.test(String(WeakMap));
|
|
16
|
+
return weakMapBasicDetection;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { requireWeakMapBasicDetection as __require };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { __require as requireGlobalThis } from './global-this.js';
|
|
2
|
+
import { __require as requireShared } from './shared.js';
|
|
3
|
+
import { __require as requireHasOwnProperty } from './has-own-property.js';
|
|
4
|
+
import { __require as requireUid } from './uid.js';
|
|
5
|
+
import { __require as requireSymbolConstructorDetection } from './symbol-constructor-detection.js';
|
|
6
|
+
import { __require as requireUseSymbolAsUid } from './use-symbol-as-uid.js';
|
|
7
|
+
|
|
8
|
+
var wellKnownSymbol;
|
|
9
|
+
var hasRequiredWellKnownSymbol;
|
|
10
|
+
|
|
11
|
+
function requireWellKnownSymbol () {
|
|
12
|
+
if (hasRequiredWellKnownSymbol) return wellKnownSymbol;
|
|
13
|
+
hasRequiredWellKnownSymbol = 1;
|
|
14
|
+
var globalThis = requireGlobalThis();
|
|
15
|
+
var shared = requireShared();
|
|
16
|
+
var hasOwn = requireHasOwnProperty();
|
|
17
|
+
var uid = requireUid();
|
|
18
|
+
var NATIVE_SYMBOL = requireSymbolConstructorDetection();
|
|
19
|
+
var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
|
|
20
|
+
|
|
21
|
+
var Symbol = globalThis.Symbol;
|
|
22
|
+
var WellKnownSymbolsStore = shared('wks');
|
|
23
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
|
|
24
|
+
|
|
25
|
+
wellKnownSymbol = function (name) {
|
|
26
|
+
if (!hasOwn(WellKnownSymbolsStore, name)) {
|
|
27
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
|
|
28
|
+
? Symbol[name]
|
|
29
|
+
: createWellKnownSymbol('Symbol.' + name);
|
|
30
|
+
} return WellKnownSymbolsStore[name];
|
|
31
|
+
};
|
|
32
|
+
return wellKnownSymbol;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { requireWellKnownSymbol as __require };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { __exports as es_array_fill } from '../../../_virtual/es.array.fill2.js';
|
|
2
|
+
import { __require as require_export } from '../internals/export.js';
|
|
3
|
+
import { __require as requireArrayFill } from '../internals/array-fill.js';
|
|
4
|
+
import { __require as requireAddToUnscopables } from '../internals/add-to-unscopables.js';
|
|
5
|
+
|
|
6
|
+
var hasRequiredEs_array_fill;
|
|
7
|
+
|
|
8
|
+
function requireEs_array_fill () {
|
|
9
|
+
if (hasRequiredEs_array_fill) return es_array_fill;
|
|
10
|
+
hasRequiredEs_array_fill = 1;
|
|
11
|
+
var $ = require_export();
|
|
12
|
+
var fill = requireArrayFill();
|
|
13
|
+
var addToUnscopables = requireAddToUnscopables();
|
|
14
|
+
|
|
15
|
+
// `Array.prototype.fill` method
|
|
16
|
+
// https://tc39.es/ecma262/#sec-array.prototype.fill
|
|
17
|
+
$({ target: 'Array', proto: true }, {
|
|
18
|
+
fill: fill
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
22
|
+
addToUnscopables('fill');
|
|
23
|
+
return es_array_fill;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { requireEs_array_fill as __require };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __exports as es_array_from } from '../../../_virtual/es.array.from2.js';
|
|
2
|
+
import { __require as require_export } from '../internals/export.js';
|
|
3
|
+
import { __require as requireArrayFrom } from '../internals/array-from.js';
|
|
4
|
+
import { __require as requireCheckCorrectnessOfIteration } from '../internals/check-correctness-of-iteration.js';
|
|
5
|
+
|
|
6
|
+
var hasRequiredEs_array_from;
|
|
7
|
+
|
|
8
|
+
function requireEs_array_from () {
|
|
9
|
+
if (hasRequiredEs_array_from) return es_array_from;
|
|
10
|
+
hasRequiredEs_array_from = 1;
|
|
11
|
+
var $ = require_export();
|
|
12
|
+
var from = requireArrayFrom();
|
|
13
|
+
var checkCorrectnessOfIteration = requireCheckCorrectnessOfIteration();
|
|
14
|
+
|
|
15
|
+
var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
|
|
16
|
+
// eslint-disable-next-line es/no-array-from -- required for testing
|
|
17
|
+
Array.from(iterable);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
// `Array.from` method
|
|
21
|
+
// https://tc39.es/ecma262/#sec-array.from
|
|
22
|
+
$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
|
|
23
|
+
from: from
|
|
24
|
+
});
|
|
25
|
+
return es_array_from;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { requireEs_array_from as __require };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { __exports as es_array_includes } from '../../../_virtual/es.array.includes2.js';
|
|
2
|
+
import { __require as require_export } from '../internals/export.js';
|
|
3
|
+
import { __require as requireArrayIncludes } from '../internals/array-includes.js';
|
|
4
|
+
import { __require as requireFails } from '../internals/fails.js';
|
|
5
|
+
import { __require as requireAddToUnscopables } from '../internals/add-to-unscopables.js';
|
|
6
|
+
|
|
7
|
+
var hasRequiredEs_array_includes;
|
|
8
|
+
|
|
9
|
+
function requireEs_array_includes () {
|
|
10
|
+
if (hasRequiredEs_array_includes) return es_array_includes;
|
|
11
|
+
hasRequiredEs_array_includes = 1;
|
|
12
|
+
var $ = require_export();
|
|
13
|
+
var $includes = requireArrayIncludes().includes;
|
|
14
|
+
var fails = requireFails();
|
|
15
|
+
var addToUnscopables = requireAddToUnscopables();
|
|
16
|
+
|
|
17
|
+
// FF99+ bug
|
|
18
|
+
var BROKEN_ON_SPARSE = fails(function () {
|
|
19
|
+
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
20
|
+
return !Array(1).includes();
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// `Array.prototype.includes` method
|
|
24
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
25
|
+
$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
26
|
+
includes: function includes(el /* , fromIndex = 0 */) {
|
|
27
|
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
32
|
+
addToUnscopables('includes');
|
|
33
|
+
return es_array_includes;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { requireEs_array_includes as __require };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { __exports as es_promise_all } from '../../../_virtual/es.promise.all.js';
|
|
2
|
+
import { __require as require_export } from '../internals/export.js';
|
|
3
|
+
import { __require as requireFunctionCall } from '../internals/function-call.js';
|
|
4
|
+
import { __require as requireACallable } from '../internals/a-callable.js';
|
|
5
|
+
import { __require as requireNewPromiseCapability } from '../internals/new-promise-capability.js';
|
|
6
|
+
import { __require as requirePerform } from '../internals/perform.js';
|
|
7
|
+
import { __require as requireIterate } from '../internals/iterate.js';
|
|
8
|
+
import { __require as requirePromiseStaticsIncorrectIteration } from '../internals/promise-statics-incorrect-iteration.js';
|
|
9
|
+
|
|
10
|
+
var hasRequiredEs_promise_all;
|
|
11
|
+
|
|
12
|
+
function requireEs_promise_all () {
|
|
13
|
+
if (hasRequiredEs_promise_all) return es_promise_all;
|
|
14
|
+
hasRequiredEs_promise_all = 1;
|
|
15
|
+
var $ = require_export();
|
|
16
|
+
var call = requireFunctionCall();
|
|
17
|
+
var aCallable = requireACallable();
|
|
18
|
+
var newPromiseCapabilityModule = requireNewPromiseCapability();
|
|
19
|
+
var perform = requirePerform();
|
|
20
|
+
var iterate = requireIterate();
|
|
21
|
+
var PROMISE_STATICS_INCORRECT_ITERATION = requirePromiseStaticsIncorrectIteration();
|
|
22
|
+
|
|
23
|
+
// `Promise.all` method
|
|
24
|
+
// https://tc39.es/ecma262/#sec-promise.all
|
|
25
|
+
$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
26
|
+
all: function all(iterable) {
|
|
27
|
+
var C = this;
|
|
28
|
+
var capability = newPromiseCapabilityModule.f(C);
|
|
29
|
+
var resolve = capability.resolve;
|
|
30
|
+
var reject = capability.reject;
|
|
31
|
+
var result = perform(function () {
|
|
32
|
+
var $promiseResolve = aCallable(C.resolve);
|
|
33
|
+
var values = [];
|
|
34
|
+
var counter = 0;
|
|
35
|
+
var remaining = 1;
|
|
36
|
+
iterate(iterable, function (promise) {
|
|
37
|
+
var index = counter++;
|
|
38
|
+
var alreadyCalled = false;
|
|
39
|
+
remaining++;
|
|
40
|
+
call($promiseResolve, C, promise).then(function (value) {
|
|
41
|
+
if (alreadyCalled) return;
|
|
42
|
+
alreadyCalled = true;
|
|
43
|
+
values[index] = value;
|
|
44
|
+
--remaining || resolve(values);
|
|
45
|
+
}, reject);
|
|
46
|
+
});
|
|
47
|
+
--remaining || resolve(values);
|
|
48
|
+
});
|
|
49
|
+
if (result.error) reject(result.value);
|
|
50
|
+
return capability.promise;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
return es_promise_all;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { requireEs_promise_all as __require };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { __exports as es_promise_catch } from '../../../_virtual/es.promise.catch.js';
|
|
2
|
+
import { __require as require_export } from '../internals/export.js';
|
|
3
|
+
import { __require as requireIsPure } from '../internals/is-pure.js';
|
|
4
|
+
import { __require as requirePromiseConstructorDetection } from '../internals/promise-constructor-detection.js';
|
|
5
|
+
import { __require as requirePromiseNativeConstructor } from '../internals/promise-native-constructor.js';
|
|
6
|
+
import { __require as requireGetBuiltIn } from '../internals/get-built-in.js';
|
|
7
|
+
import { __require as requireIsCallable } from '../internals/is-callable.js';
|
|
8
|
+
import { __require as requireDefineBuiltIn } from '../internals/define-built-in.js';
|
|
9
|
+
|
|
10
|
+
var hasRequiredEs_promise_catch;
|
|
11
|
+
|
|
12
|
+
function requireEs_promise_catch () {
|
|
13
|
+
if (hasRequiredEs_promise_catch) return es_promise_catch;
|
|
14
|
+
hasRequiredEs_promise_catch = 1;
|
|
15
|
+
var $ = require_export();
|
|
16
|
+
var IS_PURE = requireIsPure();
|
|
17
|
+
var FORCED_PROMISE_CONSTRUCTOR = requirePromiseConstructorDetection().CONSTRUCTOR;
|
|
18
|
+
var NativePromiseConstructor = requirePromiseNativeConstructor();
|
|
19
|
+
var getBuiltIn = requireGetBuiltIn();
|
|
20
|
+
var isCallable = requireIsCallable();
|
|
21
|
+
var defineBuiltIn = requireDefineBuiltIn();
|
|
22
|
+
|
|
23
|
+
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
24
|
+
|
|
25
|
+
// `Promise.prototype.catch` method
|
|
26
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
27
|
+
$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {
|
|
28
|
+
'catch': function (onRejected) {
|
|
29
|
+
return this.then(undefined, onRejected);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
34
|
+
if (!IS_PURE && isCallable(NativePromiseConstructor)) {
|
|
35
|
+
var method = getBuiltIn('Promise').prototype['catch'];
|
|
36
|
+
if (NativePromisePrototype['catch'] !== method) {
|
|
37
|
+
defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return es_promise_catch;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { requireEs_promise_catch as __require };
|