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,66 @@
|
|
|
1
|
+
import { __require as requireFunctionBindContext } from './function-bind-context.js';
|
|
2
|
+
import { __require as requireFunctionCall } from './function-call.js';
|
|
3
|
+
import { __require as requireToObject } from './to-object.js';
|
|
4
|
+
import { __require as requireCallWithSafeIterationClosing } from './call-with-safe-iteration-closing.js';
|
|
5
|
+
import { __require as requireIsArrayIteratorMethod } from './is-array-iterator-method.js';
|
|
6
|
+
import { __require as requireIsConstructor } from './is-constructor.js';
|
|
7
|
+
import { __require as requireLengthOfArrayLike } from './length-of-array-like.js';
|
|
8
|
+
import { __require as requireCreateProperty } from './create-property.js';
|
|
9
|
+
import { __require as requireGetIterator } from './get-iterator.js';
|
|
10
|
+
import { __require as requireGetIteratorMethod } from './get-iterator-method.js';
|
|
11
|
+
|
|
12
|
+
var arrayFrom;
|
|
13
|
+
var hasRequiredArrayFrom;
|
|
14
|
+
|
|
15
|
+
function requireArrayFrom () {
|
|
16
|
+
if (hasRequiredArrayFrom) return arrayFrom;
|
|
17
|
+
hasRequiredArrayFrom = 1;
|
|
18
|
+
var bind = requireFunctionBindContext();
|
|
19
|
+
var call = requireFunctionCall();
|
|
20
|
+
var toObject = requireToObject();
|
|
21
|
+
var callWithSafeIterationClosing = requireCallWithSafeIterationClosing();
|
|
22
|
+
var isArrayIteratorMethod = requireIsArrayIteratorMethod();
|
|
23
|
+
var isConstructor = requireIsConstructor();
|
|
24
|
+
var lengthOfArrayLike = requireLengthOfArrayLike();
|
|
25
|
+
var createProperty = requireCreateProperty();
|
|
26
|
+
var getIterator = requireGetIterator();
|
|
27
|
+
var getIteratorMethod = requireGetIteratorMethod();
|
|
28
|
+
|
|
29
|
+
var $Array = Array;
|
|
30
|
+
|
|
31
|
+
// `Array.from` method implementation
|
|
32
|
+
// https://tc39.es/ecma262/#sec-array.from
|
|
33
|
+
arrayFrom = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
|
|
34
|
+
var O = toObject(arrayLike);
|
|
35
|
+
var IS_CONSTRUCTOR = isConstructor(this);
|
|
36
|
+
var argumentsLength = arguments.length;
|
|
37
|
+
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
|
|
38
|
+
var mapping = mapfn !== undefined;
|
|
39
|
+
if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined);
|
|
40
|
+
var iteratorMethod = getIteratorMethod(O);
|
|
41
|
+
var index = 0;
|
|
42
|
+
var length, result, step, iterator, next, value;
|
|
43
|
+
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
44
|
+
if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
|
|
45
|
+
result = IS_CONSTRUCTOR ? new this() : [];
|
|
46
|
+
iterator = getIterator(O, iteratorMethod);
|
|
47
|
+
next = iterator.next;
|
|
48
|
+
for (;!(step = call(next, iterator)).done; index++) {
|
|
49
|
+
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
|
|
50
|
+
createProperty(result, index, value);
|
|
51
|
+
}
|
|
52
|
+
} else {
|
|
53
|
+
length = lengthOfArrayLike(O);
|
|
54
|
+
result = IS_CONSTRUCTOR ? new this(length) : $Array(length);
|
|
55
|
+
for (;length > index; index++) {
|
|
56
|
+
value = mapping ? mapfn(O[index], index) : O[index];
|
|
57
|
+
createProperty(result, index, value);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
result.length = index;
|
|
61
|
+
return result;
|
|
62
|
+
};
|
|
63
|
+
return arrayFrom;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { requireArrayFrom as __require };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { __require as requireToIndexedObject } from './to-indexed-object.js';
|
|
2
|
+
import { __require as requireToAbsoluteIndex } from './to-absolute-index.js';
|
|
3
|
+
import { __require as requireLengthOfArrayLike } from './length-of-array-like.js';
|
|
4
|
+
|
|
5
|
+
var arrayIncludes;
|
|
6
|
+
var hasRequiredArrayIncludes;
|
|
7
|
+
|
|
8
|
+
function requireArrayIncludes () {
|
|
9
|
+
if (hasRequiredArrayIncludes) return arrayIncludes;
|
|
10
|
+
hasRequiredArrayIncludes = 1;
|
|
11
|
+
var toIndexedObject = requireToIndexedObject();
|
|
12
|
+
var toAbsoluteIndex = requireToAbsoluteIndex();
|
|
13
|
+
var lengthOfArrayLike = requireLengthOfArrayLike();
|
|
14
|
+
|
|
15
|
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
16
|
+
var createMethod = function (IS_INCLUDES) {
|
|
17
|
+
return function ($this, el, fromIndex) {
|
|
18
|
+
var O = toIndexedObject($this);
|
|
19
|
+
var length = lengthOfArrayLike(O);
|
|
20
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
21
|
+
var index = toAbsoluteIndex(fromIndex, length);
|
|
22
|
+
var value;
|
|
23
|
+
// Array#includes uses SameValueZero equality algorithm
|
|
24
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
25
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
26
|
+
value = O[index++];
|
|
27
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
28
|
+
if (value !== value) return true;
|
|
29
|
+
// Array#indexOf ignores holes, Array#includes - not
|
|
30
|
+
} else for (;length > index; index++) {
|
|
31
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
32
|
+
} return !IS_INCLUDES && -1;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
arrayIncludes = {
|
|
37
|
+
// `Array.prototype.includes` method
|
|
38
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
39
|
+
includes: createMethod(true),
|
|
40
|
+
// `Array.prototype.indexOf` method
|
|
41
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
42
|
+
indexOf: createMethod(false)
|
|
43
|
+
};
|
|
44
|
+
return arrayIncludes;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { requireArrayIncludes as __require };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __require as requireFunctionUncurryThis } from './function-uncurry-this.js';
|
|
2
|
+
|
|
3
|
+
var arraySlice;
|
|
4
|
+
var hasRequiredArraySlice;
|
|
5
|
+
|
|
6
|
+
function requireArraySlice () {
|
|
7
|
+
if (hasRequiredArraySlice) return arraySlice;
|
|
8
|
+
hasRequiredArraySlice = 1;
|
|
9
|
+
var uncurryThis = requireFunctionUncurryThis();
|
|
10
|
+
|
|
11
|
+
arraySlice = uncurryThis([].slice);
|
|
12
|
+
return arraySlice;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { requireArraySlice as __require };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __require as requireAnObject } from './an-object.js';
|
|
2
|
+
import { __require as requireIteratorClose } from './iterator-close.js';
|
|
3
|
+
|
|
4
|
+
var callWithSafeIterationClosing;
|
|
5
|
+
var hasRequiredCallWithSafeIterationClosing;
|
|
6
|
+
|
|
7
|
+
function requireCallWithSafeIterationClosing () {
|
|
8
|
+
if (hasRequiredCallWithSafeIterationClosing) return callWithSafeIterationClosing;
|
|
9
|
+
hasRequiredCallWithSafeIterationClosing = 1;
|
|
10
|
+
var anObject = requireAnObject();
|
|
11
|
+
var iteratorClose = requireIteratorClose();
|
|
12
|
+
|
|
13
|
+
// call something on iterator step with safe closing on error
|
|
14
|
+
callWithSafeIterationClosing = function (iterator, fn, value, ENTRIES) {
|
|
15
|
+
try {
|
|
16
|
+
return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
|
|
17
|
+
} catch (error) {
|
|
18
|
+
iteratorClose(iterator, 'throw', error);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
return callWithSafeIterationClosing;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { requireCallWithSafeIterationClosing as __require };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { __require as requireWellKnownSymbol } from './well-known-symbol.js';
|
|
2
|
+
|
|
3
|
+
var checkCorrectnessOfIteration;
|
|
4
|
+
var hasRequiredCheckCorrectnessOfIteration;
|
|
5
|
+
|
|
6
|
+
function requireCheckCorrectnessOfIteration () {
|
|
7
|
+
if (hasRequiredCheckCorrectnessOfIteration) return checkCorrectnessOfIteration;
|
|
8
|
+
hasRequiredCheckCorrectnessOfIteration = 1;
|
|
9
|
+
var wellKnownSymbol = requireWellKnownSymbol();
|
|
10
|
+
|
|
11
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
12
|
+
var SAFE_CLOSING = false;
|
|
13
|
+
|
|
14
|
+
try {
|
|
15
|
+
var called = 0;
|
|
16
|
+
var iteratorWithReturn = {
|
|
17
|
+
next: function () {
|
|
18
|
+
return { done: !!called++ };
|
|
19
|
+
},
|
|
20
|
+
'return': function () {
|
|
21
|
+
SAFE_CLOSING = true;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
iteratorWithReturn[ITERATOR] = function () {
|
|
25
|
+
return this;
|
|
26
|
+
};
|
|
27
|
+
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
|
28
|
+
Array.from(iteratorWithReturn, function () { throw 2; });
|
|
29
|
+
} catch (error) { /* empty */ }
|
|
30
|
+
|
|
31
|
+
checkCorrectnessOfIteration = function (exec, SKIP_CLOSING) {
|
|
32
|
+
try {
|
|
33
|
+
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
|
34
|
+
} catch (error) { return false; } // workaround of old WebKit + `eval` bug
|
|
35
|
+
var ITERATION_SUPPORT = false;
|
|
36
|
+
try {
|
|
37
|
+
var object = {};
|
|
38
|
+
object[ITERATOR] = function () {
|
|
39
|
+
return {
|
|
40
|
+
next: function () {
|
|
41
|
+
return { done: ITERATION_SUPPORT = true };
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
exec(object);
|
|
46
|
+
} catch (error) { /* empty */ }
|
|
47
|
+
return ITERATION_SUPPORT;
|
|
48
|
+
};
|
|
49
|
+
return checkCorrectnessOfIteration;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { requireCheckCorrectnessOfIteration as __require };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { __require as requireFunctionUncurryThis } from './function-uncurry-this.js';
|
|
2
|
+
|
|
3
|
+
var classofRaw;
|
|
4
|
+
var hasRequiredClassofRaw;
|
|
5
|
+
|
|
6
|
+
function requireClassofRaw () {
|
|
7
|
+
if (hasRequiredClassofRaw) return classofRaw;
|
|
8
|
+
hasRequiredClassofRaw = 1;
|
|
9
|
+
var uncurryThis = requireFunctionUncurryThis();
|
|
10
|
+
|
|
11
|
+
var toString = uncurryThis({}.toString);
|
|
12
|
+
var stringSlice = uncurryThis(''.slice);
|
|
13
|
+
|
|
14
|
+
classofRaw = function (it) {
|
|
15
|
+
return stringSlice(toString(it), 8, -1);
|
|
16
|
+
};
|
|
17
|
+
return classofRaw;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { requireClassofRaw as __require };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { __require as requireToStringTagSupport } from './to-string-tag-support.js';
|
|
2
|
+
import { __require as requireIsCallable } from './is-callable.js';
|
|
3
|
+
import { __require as requireClassofRaw } from './classof-raw.js';
|
|
4
|
+
import { __require as requireWellKnownSymbol } from './well-known-symbol.js';
|
|
5
|
+
|
|
6
|
+
var classof;
|
|
7
|
+
var hasRequiredClassof;
|
|
8
|
+
|
|
9
|
+
function requireClassof () {
|
|
10
|
+
if (hasRequiredClassof) return classof;
|
|
11
|
+
hasRequiredClassof = 1;
|
|
12
|
+
var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
|
|
13
|
+
var isCallable = requireIsCallable();
|
|
14
|
+
var classofRaw = requireClassofRaw();
|
|
15
|
+
var wellKnownSymbol = requireWellKnownSymbol();
|
|
16
|
+
|
|
17
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
18
|
+
var $Object = Object;
|
|
19
|
+
|
|
20
|
+
// ES3 wrong here
|
|
21
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
22
|
+
|
|
23
|
+
// fallback for IE11 Script Access Denied error
|
|
24
|
+
var tryGet = function (it, key) {
|
|
25
|
+
try {
|
|
26
|
+
return it[key];
|
|
27
|
+
} catch (error) { /* empty */ }
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
31
|
+
classof = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
32
|
+
var O, tag, result;
|
|
33
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
34
|
+
// @@toStringTag case
|
|
35
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
36
|
+
// builtinTag case
|
|
37
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
38
|
+
// ES3 arguments fallback
|
|
39
|
+
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
40
|
+
};
|
|
41
|
+
return classof;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { requireClassof as __require };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { __require as requireHasOwnProperty } from './has-own-property.js';
|
|
2
|
+
import { __require as requireOwnKeys } from './own-keys.js';
|
|
3
|
+
import { __require as requireObjectGetOwnPropertyDescriptor } from './object-get-own-property-descriptor.js';
|
|
4
|
+
import { __require as requireObjectDefineProperty } from './object-define-property.js';
|
|
5
|
+
|
|
6
|
+
var copyConstructorProperties;
|
|
7
|
+
var hasRequiredCopyConstructorProperties;
|
|
8
|
+
|
|
9
|
+
function requireCopyConstructorProperties () {
|
|
10
|
+
if (hasRequiredCopyConstructorProperties) return copyConstructorProperties;
|
|
11
|
+
hasRequiredCopyConstructorProperties = 1;
|
|
12
|
+
var hasOwn = requireHasOwnProperty();
|
|
13
|
+
var ownKeys = requireOwnKeys();
|
|
14
|
+
var getOwnPropertyDescriptorModule = requireObjectGetOwnPropertyDescriptor();
|
|
15
|
+
var definePropertyModule = requireObjectDefineProperty();
|
|
16
|
+
|
|
17
|
+
copyConstructorProperties = function (target, source, exceptions) {
|
|
18
|
+
var keys = ownKeys(source);
|
|
19
|
+
var defineProperty = definePropertyModule.f;
|
|
20
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
21
|
+
for (var i = 0; i < keys.length; i++) {
|
|
22
|
+
var key = keys[i];
|
|
23
|
+
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
24
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
return copyConstructorProperties;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { requireCopyConstructorProperties as __require };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __require as requireDescriptors } from './descriptors.js';
|
|
2
|
+
import { __require as requireObjectDefineProperty } from './object-define-property.js';
|
|
3
|
+
import { __require as requireCreatePropertyDescriptor } from './create-property-descriptor.js';
|
|
4
|
+
|
|
5
|
+
var createNonEnumerableProperty;
|
|
6
|
+
var hasRequiredCreateNonEnumerableProperty;
|
|
7
|
+
|
|
8
|
+
function requireCreateNonEnumerableProperty () {
|
|
9
|
+
if (hasRequiredCreateNonEnumerableProperty) return createNonEnumerableProperty;
|
|
10
|
+
hasRequiredCreateNonEnumerableProperty = 1;
|
|
11
|
+
var DESCRIPTORS = requireDescriptors();
|
|
12
|
+
var definePropertyModule = requireObjectDefineProperty();
|
|
13
|
+
var createPropertyDescriptor = requireCreatePropertyDescriptor();
|
|
14
|
+
|
|
15
|
+
createNonEnumerableProperty = DESCRIPTORS ? function (object, key, value) {
|
|
16
|
+
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
|
17
|
+
} : function (object, key, value) {
|
|
18
|
+
object[key] = value;
|
|
19
|
+
return object;
|
|
20
|
+
};
|
|
21
|
+
return createNonEnumerableProperty;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { requireCreateNonEnumerableProperty as __require };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var createPropertyDescriptor;
|
|
2
|
+
var hasRequiredCreatePropertyDescriptor;
|
|
3
|
+
|
|
4
|
+
function requireCreatePropertyDescriptor () {
|
|
5
|
+
if (hasRequiredCreatePropertyDescriptor) return createPropertyDescriptor;
|
|
6
|
+
hasRequiredCreatePropertyDescriptor = 1;
|
|
7
|
+
createPropertyDescriptor = function (bitmap, value) {
|
|
8
|
+
return {
|
|
9
|
+
enumerable: !(bitmap & 1),
|
|
10
|
+
configurable: !(bitmap & 2),
|
|
11
|
+
writable: !(bitmap & 4),
|
|
12
|
+
value: value
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
return createPropertyDescriptor;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { requireCreatePropertyDescriptor as __require };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __require as requireDescriptors } from './descriptors.js';
|
|
2
|
+
import { __require as requireObjectDefineProperty } from './object-define-property.js';
|
|
3
|
+
import { __require as requireCreatePropertyDescriptor } from './create-property-descriptor.js';
|
|
4
|
+
|
|
5
|
+
var createProperty;
|
|
6
|
+
var hasRequiredCreateProperty;
|
|
7
|
+
|
|
8
|
+
function requireCreateProperty () {
|
|
9
|
+
if (hasRequiredCreateProperty) return createProperty;
|
|
10
|
+
hasRequiredCreateProperty = 1;
|
|
11
|
+
var DESCRIPTORS = requireDescriptors();
|
|
12
|
+
var definePropertyModule = requireObjectDefineProperty();
|
|
13
|
+
var createPropertyDescriptor = requireCreatePropertyDescriptor();
|
|
14
|
+
|
|
15
|
+
createProperty = function (object, key, value) {
|
|
16
|
+
if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
|
|
17
|
+
else object[key] = value;
|
|
18
|
+
};
|
|
19
|
+
return createProperty;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { requireCreateProperty as __require };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __require as requireMakeBuiltIn } from './make-built-in.js';
|
|
2
|
+
import { __require as requireObjectDefineProperty } from './object-define-property.js';
|
|
3
|
+
|
|
4
|
+
var defineBuiltInAccessor;
|
|
5
|
+
var hasRequiredDefineBuiltInAccessor;
|
|
6
|
+
|
|
7
|
+
function requireDefineBuiltInAccessor () {
|
|
8
|
+
if (hasRequiredDefineBuiltInAccessor) return defineBuiltInAccessor;
|
|
9
|
+
hasRequiredDefineBuiltInAccessor = 1;
|
|
10
|
+
var makeBuiltIn = requireMakeBuiltIn();
|
|
11
|
+
var defineProperty = requireObjectDefineProperty();
|
|
12
|
+
|
|
13
|
+
defineBuiltInAccessor = function (target, name, descriptor) {
|
|
14
|
+
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
15
|
+
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
16
|
+
return defineProperty.f(target, name, descriptor);
|
|
17
|
+
};
|
|
18
|
+
return defineBuiltInAccessor;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { requireDefineBuiltInAccessor as __require };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { __require as requireIsCallable } from './is-callable.js';
|
|
2
|
+
import { __require as requireObjectDefineProperty } from './object-define-property.js';
|
|
3
|
+
import { __require as requireMakeBuiltIn } from './make-built-in.js';
|
|
4
|
+
import { __require as requireDefineGlobalProperty } from './define-global-property.js';
|
|
5
|
+
|
|
6
|
+
var defineBuiltIn;
|
|
7
|
+
var hasRequiredDefineBuiltIn;
|
|
8
|
+
|
|
9
|
+
function requireDefineBuiltIn () {
|
|
10
|
+
if (hasRequiredDefineBuiltIn) return defineBuiltIn;
|
|
11
|
+
hasRequiredDefineBuiltIn = 1;
|
|
12
|
+
var isCallable = requireIsCallable();
|
|
13
|
+
var definePropertyModule = requireObjectDefineProperty();
|
|
14
|
+
var makeBuiltIn = requireMakeBuiltIn();
|
|
15
|
+
var defineGlobalProperty = requireDefineGlobalProperty();
|
|
16
|
+
|
|
17
|
+
defineBuiltIn = function (O, key, value, options) {
|
|
18
|
+
if (!options) options = {};
|
|
19
|
+
var simple = options.enumerable;
|
|
20
|
+
var name = options.name !== undefined ? options.name : key;
|
|
21
|
+
if (isCallable(value)) makeBuiltIn(value, name, options);
|
|
22
|
+
if (options.global) {
|
|
23
|
+
if (simple) O[key] = value;
|
|
24
|
+
else defineGlobalProperty(key, value);
|
|
25
|
+
} else {
|
|
26
|
+
try {
|
|
27
|
+
if (!options.unsafe) delete O[key];
|
|
28
|
+
else if (O[key]) simple = true;
|
|
29
|
+
} catch (error) { /* empty */ }
|
|
30
|
+
if (simple) O[key] = value;
|
|
31
|
+
else definePropertyModule.f(O, key, {
|
|
32
|
+
value: value,
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: !options.nonConfigurable,
|
|
35
|
+
writable: !options.nonWritable
|
|
36
|
+
});
|
|
37
|
+
} return O;
|
|
38
|
+
};
|
|
39
|
+
return defineBuiltIn;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { requireDefineBuiltIn as __require };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __require as requireGlobalThis } from './global-this.js';
|
|
2
|
+
|
|
3
|
+
var defineGlobalProperty;
|
|
4
|
+
var hasRequiredDefineGlobalProperty;
|
|
5
|
+
|
|
6
|
+
function requireDefineGlobalProperty () {
|
|
7
|
+
if (hasRequiredDefineGlobalProperty) return defineGlobalProperty;
|
|
8
|
+
hasRequiredDefineGlobalProperty = 1;
|
|
9
|
+
var globalThis = requireGlobalThis();
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
12
|
+
var defineProperty = Object.defineProperty;
|
|
13
|
+
|
|
14
|
+
defineGlobalProperty = function (key, value) {
|
|
15
|
+
try {
|
|
16
|
+
defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
|
|
17
|
+
} catch (error) {
|
|
18
|
+
globalThis[key] = value;
|
|
19
|
+
} return value;
|
|
20
|
+
};
|
|
21
|
+
return defineGlobalProperty;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { requireDefineGlobalProperty as __require };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __require as requireFails } from './fails.js';
|
|
2
|
+
|
|
3
|
+
var descriptors;
|
|
4
|
+
var hasRequiredDescriptors;
|
|
5
|
+
|
|
6
|
+
function requireDescriptors () {
|
|
7
|
+
if (hasRequiredDescriptors) return descriptors;
|
|
8
|
+
hasRequiredDescriptors = 1;
|
|
9
|
+
var fails = requireFails();
|
|
10
|
+
|
|
11
|
+
// Detect IE8's incomplete defineProperty implementation
|
|
12
|
+
descriptors = !fails(function () {
|
|
13
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
14
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
15
|
+
});
|
|
16
|
+
return descriptors;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { requireDescriptors as __require };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __require as requireGlobalThis } from './global-this.js';
|
|
2
|
+
import { __require as requireIsObject } from './is-object.js';
|
|
3
|
+
|
|
4
|
+
var documentCreateElement;
|
|
5
|
+
var hasRequiredDocumentCreateElement;
|
|
6
|
+
|
|
7
|
+
function requireDocumentCreateElement () {
|
|
8
|
+
if (hasRequiredDocumentCreateElement) return documentCreateElement;
|
|
9
|
+
hasRequiredDocumentCreateElement = 1;
|
|
10
|
+
var globalThis = requireGlobalThis();
|
|
11
|
+
var isObject = requireIsObject();
|
|
12
|
+
|
|
13
|
+
var document = globalThis.document;
|
|
14
|
+
// typeof document.createElement is 'object' in old IE
|
|
15
|
+
var EXISTS = isObject(document) && isObject(document.createElement);
|
|
16
|
+
|
|
17
|
+
documentCreateElement = function (it) {
|
|
18
|
+
return EXISTS ? document.createElement(it) : {};
|
|
19
|
+
};
|
|
20
|
+
return documentCreateElement;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { requireDocumentCreateElement as __require };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var enumBugKeys;
|
|
2
|
+
var hasRequiredEnumBugKeys;
|
|
3
|
+
|
|
4
|
+
function requireEnumBugKeys () {
|
|
5
|
+
if (hasRequiredEnumBugKeys) return enumBugKeys;
|
|
6
|
+
hasRequiredEnumBugKeys = 1;
|
|
7
|
+
// IE8- don't enum bug keys
|
|
8
|
+
enumBugKeys = [
|
|
9
|
+
'constructor',
|
|
10
|
+
'hasOwnProperty',
|
|
11
|
+
'isPrototypeOf',
|
|
12
|
+
'propertyIsEnumerable',
|
|
13
|
+
'toLocaleString',
|
|
14
|
+
'toString',
|
|
15
|
+
'valueOf'
|
|
16
|
+
];
|
|
17
|
+
return enumBugKeys;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { requireEnumBugKeys as __require };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __require as requireEnvironmentUserAgent } from './environment-user-agent.js';
|
|
2
|
+
|
|
3
|
+
var environmentIsIosPebble;
|
|
4
|
+
var hasRequiredEnvironmentIsIosPebble;
|
|
5
|
+
|
|
6
|
+
function requireEnvironmentIsIosPebble () {
|
|
7
|
+
if (hasRequiredEnvironmentIsIosPebble) return environmentIsIosPebble;
|
|
8
|
+
hasRequiredEnvironmentIsIosPebble = 1;
|
|
9
|
+
var userAgent = requireEnvironmentUserAgent();
|
|
10
|
+
|
|
11
|
+
environmentIsIosPebble = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';
|
|
12
|
+
return environmentIsIosPebble;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { requireEnvironmentIsIosPebble as __require };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __require as requireEnvironmentUserAgent } from './environment-user-agent.js';
|
|
2
|
+
|
|
3
|
+
var environmentIsIos;
|
|
4
|
+
var hasRequiredEnvironmentIsIos;
|
|
5
|
+
|
|
6
|
+
function requireEnvironmentIsIos () {
|
|
7
|
+
if (hasRequiredEnvironmentIsIos) return environmentIsIos;
|
|
8
|
+
hasRequiredEnvironmentIsIos = 1;
|
|
9
|
+
var userAgent = requireEnvironmentUserAgent();
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
12
|
+
environmentIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);
|
|
13
|
+
return environmentIsIos;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { requireEnvironmentIsIos as __require };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __require as requireEnvironment } from './environment.js';
|
|
2
|
+
|
|
3
|
+
var environmentIsNode;
|
|
4
|
+
var hasRequiredEnvironmentIsNode;
|
|
5
|
+
|
|
6
|
+
function requireEnvironmentIsNode () {
|
|
7
|
+
if (hasRequiredEnvironmentIsNode) return environmentIsNode;
|
|
8
|
+
hasRequiredEnvironmentIsNode = 1;
|
|
9
|
+
var ENVIRONMENT = requireEnvironment();
|
|
10
|
+
|
|
11
|
+
environmentIsNode = ENVIRONMENT === 'NODE';
|
|
12
|
+
return environmentIsNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { requireEnvironmentIsNode as __require };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __require as requireEnvironmentUserAgent } from './environment-user-agent.js';
|
|
2
|
+
|
|
3
|
+
var environmentIsWebosWebkit;
|
|
4
|
+
var hasRequiredEnvironmentIsWebosWebkit;
|
|
5
|
+
|
|
6
|
+
function requireEnvironmentIsWebosWebkit () {
|
|
7
|
+
if (hasRequiredEnvironmentIsWebosWebkit) return environmentIsWebosWebkit;
|
|
8
|
+
hasRequiredEnvironmentIsWebosWebkit = 1;
|
|
9
|
+
var userAgent = requireEnvironmentUserAgent();
|
|
10
|
+
|
|
11
|
+
environmentIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
12
|
+
return environmentIsWebosWebkit;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { requireEnvironmentIsWebosWebkit as __require };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __require as requireGlobalThis } from './global-this.js';
|
|
2
|
+
|
|
3
|
+
var environmentUserAgent;
|
|
4
|
+
var hasRequiredEnvironmentUserAgent;
|
|
5
|
+
|
|
6
|
+
function requireEnvironmentUserAgent () {
|
|
7
|
+
if (hasRequiredEnvironmentUserAgent) return environmentUserAgent;
|
|
8
|
+
hasRequiredEnvironmentUserAgent = 1;
|
|
9
|
+
var globalThis = requireGlobalThis();
|
|
10
|
+
|
|
11
|
+
var navigator = globalThis.navigator;
|
|
12
|
+
var userAgent = navigator && navigator.userAgent;
|
|
13
|
+
|
|
14
|
+
environmentUserAgent = userAgent ? String(userAgent) : '';
|
|
15
|
+
return environmentUserAgent;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { requireEnvironmentUserAgent as __require };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { __require as requireGlobalThis } from './global-this.js';
|
|
2
|
+
import { __require as requireEnvironmentUserAgent } from './environment-user-agent.js';
|
|
3
|
+
|
|
4
|
+
var environmentV8Version;
|
|
5
|
+
var hasRequiredEnvironmentV8Version;
|
|
6
|
+
|
|
7
|
+
function requireEnvironmentV8Version () {
|
|
8
|
+
if (hasRequiredEnvironmentV8Version) return environmentV8Version;
|
|
9
|
+
hasRequiredEnvironmentV8Version = 1;
|
|
10
|
+
var globalThis = requireGlobalThis();
|
|
11
|
+
var userAgent = requireEnvironmentUserAgent();
|
|
12
|
+
|
|
13
|
+
var process = globalThis.process;
|
|
14
|
+
var Deno = globalThis.Deno;
|
|
15
|
+
var versions = process && process.versions || Deno && Deno.version;
|
|
16
|
+
var v8 = versions && versions.v8;
|
|
17
|
+
var match, version;
|
|
18
|
+
|
|
19
|
+
if (v8) {
|
|
20
|
+
match = v8.split('.');
|
|
21
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
22
|
+
// but their correct versions are not interesting for us
|
|
23
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
27
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
|
28
|
+
if (!version && userAgent) {
|
|
29
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
30
|
+
if (!match || match[1] >= 74) {
|
|
31
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
32
|
+
if (match) version = +match[1];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
environmentV8Version = version;
|
|
37
|
+
return environmentV8Version;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { requireEnvironmentV8Version as __require };
|