@kitware/vtk.js 25.9.1 → 26.0.0-beta.1
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/Common/Core/CellArray.d.ts +0 -6
- package/Common/Core/CellArray.js +21 -12
- package/Common/Core/ClassHierarchy.js +11 -6
- package/Common/Core/DataArray.d.ts +20 -0
- package/Common/Core/DataArray.js +21 -4
- package/Proxy/Core/ViewProxy.js +17 -9
- package/Rendering/Core/Prop3D.js +1 -6
- package/Rendering/Core/RenderWindow.js +9 -6
- package/Rendering/Core/VolumeProperty.js +2 -3
- package/Rendering/Misc/CanvasView.js +6 -5
- package/Rendering/Misc/GenericRenderWindow.js +12 -7
- package/Rendering/OpenGL/Actor.js +4 -4
- package/Rendering/OpenGL/Actor2D.js +4 -4
- package/Rendering/OpenGL/Camera.js +7 -4
- package/Rendering/OpenGL/CubeAxesActor.js +7 -5
- package/Rendering/OpenGL/ForwardPass.js +1 -1
- package/Rendering/OpenGL/Glyph3DMapper.js +4 -4
- package/Rendering/OpenGL/ImageMapper.js +9 -5
- package/Rendering/OpenGL/ImageSlice.js +3 -3
- package/Rendering/OpenGL/PixelSpaceCallbackMapper.js +9 -5
- package/Rendering/OpenGL/PolyDataMapper.js +22 -14
- package/Rendering/OpenGL/PolyDataMapper2D.js +17 -10
- package/Rendering/OpenGL/ScalarBarActor.js +6 -4
- package/Rendering/OpenGL/Skybox.js +10 -6
- package/Rendering/OpenGL/Texture.js +6 -5
- package/Rendering/OpenGL/Volume.js +2 -2
- package/Rendering/OpenGL/VolumeMapper.js +11 -11
- package/Rendering/OpenGL/glsl/vtkVolumeFS.glsl.js +1 -1
- package/Rendering/SceneGraph/RenderPass.js +3 -2
- package/Rendering/WebGPU/ForwardPass.js +1 -1
- package/Rendering/WebGPU/HardwareSelectionPass.js +1 -1
- package/Rendering/WebGPU/HardwareSelector.js +14 -13
- package/Rendering/WebGPU/OpaquePass.js +1 -1
- package/Rendering/WebGPU/OrderIndependentTranslucentPass.js +1 -1
- package/Rendering/WebGPU/VolumePass.js +1 -1
- package/Utilities/config/rules-tests.js +28 -0
- package/Widgets/Core/AbstractWidgetFactory.js +1 -0
- package/Widgets/Core/StateBuilder/color3Mixin.js +22 -0
- package/Widgets/Core/StateBuilder/colorMixin.js +7 -0
- package/Widgets/Core/StateBuilder.js +2 -0
- package/Widgets/Representations/ArrowHandleRepresentation.js +28 -110
- package/Widgets/Representations/CircleContextRepresentation.js +43 -165
- package/Widgets/Representations/ContextRepresentation.js +0 -3
- package/Widgets/Representations/ConvexFaceContextRepresentation.js +11 -11
- package/Widgets/Representations/CroppingOutlineRepresentation.js +5 -12
- package/Widgets/Representations/CubeHandleRepresentation.js +15 -104
- package/Widgets/Representations/GlyphRepresentation.js +320 -0
- package/Widgets/Representations/HandleRepresentation.js +0 -5
- package/Widgets/Representations/ImplicitPlaneRepresentation.js +68 -49
- package/Widgets/Representations/LineHandleRepresentation.js +116 -0
- package/Widgets/Representations/PolyLineRepresentation.js +52 -49
- package/Widgets/Representations/RectangleContextRepresentation.js +16 -21
- package/Widgets/Representations/SphereContextRepresentation.js +30 -109
- package/Widgets/Representations/SphereHandleRepresentation.js +13 -110
- package/Widgets/Representations/SplineContextRepresentation.js +53 -36
- package/Widgets/Representations/WidgetRepresentation.d.ts +52 -1
- package/Widgets/Representations/WidgetRepresentation.js +140 -78
- package/Widgets/Representations.js +6 -0
- package/Widgets/SVG/SVGLandmarkRepresentation.js +1 -13
- package/Widgets/Widgets3D/AngleWidget.js +1 -4
- package/Widgets/Widgets3D/EllipseWidget/state.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget/Constants.js +15 -3
- package/Widgets/Widgets3D/ResliceCursorWidget/behavior.js +93 -36
- package/Widgets/Widgets3D/ResliceCursorWidget/helpers.js +75 -82
- package/Widgets/Widgets3D/ResliceCursorWidget/state.js +49 -170
- package/Widgets/Widgets3D/ResliceCursorWidget.js +61 -23
- package/index.d.ts +0 -1
- package/macros.d.ts +3 -5
- package/macros.js +4 -35
- package/package.json +2 -2
- package/Widgets/Representations/ResliceCursorContextRepresentation/Constants.js +0 -12
- package/Widgets/Representations/ResliceCursorContextRepresentation.d.ts +0 -54
- package/Widgets/Representations/ResliceCursorContextRepresentation.js +0 -357
- package/_vendor/available-typed-arrays/index.js_commonjs-proxy.js +0 -1
- package/_vendor/call-bind/callBound.js_commonjs-proxy.js +0 -1
- package/_vendor/call-bind/index.js_commonjs-module.js +0 -3
- package/_vendor/call-bind/index.js_commonjs-proxy.js +0 -1
- package/_vendor/deep-equal/node_modules/isarray/index.js_commonjs-proxy.js +0 -1
- package/_vendor/define-properties/index.js_commonjs-proxy.js +0 -1
- package/_vendor/es-abstract/helpers/getOwnPropertyDescriptor.js_commonjs-proxy.js +0 -1
- package/_vendor/es-get-iterator/index.js_commonjs-module.js +0 -3
- package/_vendor/es-get-iterator/index.js_commonjs-proxy.js +0 -1
- package/_vendor/es-get-iterator/node_modules/isarray/index.js_commonjs-proxy.js +0 -1
- package/_vendor/foreach/index.js_commonjs-proxy.js +0 -1
- package/_vendor/function-bind/implementation.js_commonjs-proxy.js +0 -1
- package/_vendor/function-bind/index.js_commonjs-proxy.js +0 -1
- package/_vendor/get-intrinsic/index.js_commonjs-proxy.js +0 -1
- package/_vendor/has/src/index.js_commonjs-proxy.js +0 -1
- package/_vendor/has-bigints/index.js_commonjs-proxy.js +0 -1
- package/_vendor/has-symbols/index.js_commonjs-proxy.js +0 -1
- package/_vendor/has-symbols/shams.js_commonjs-proxy.js +0 -1
- package/_vendor/has-tostringtag/shams.js_commonjs-proxy.js +0 -1
- package/_vendor/is-arguments/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-bigint/index.js_commonjs-module.js +0 -3
- package/_vendor/is-bigint/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-boolean-object/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-date-object/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-map/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-number-object/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-regex/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-set/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-string/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-symbol/index.js_commonjs-module.js +0 -3
- package/_vendor/is-symbol/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-typed-array/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-weakmap/index.js_commonjs-proxy.js +0 -1
- package/_vendor/is-weakset/index.js_commonjs-proxy.js +0 -1
- package/_vendor/object-inspect/index.js_commonjs-proxy.js +0 -1
- package/_vendor/object-is/implementation.js_commonjs-proxy.js +0 -1
- package/_vendor/object-is/index.js_commonjs-proxy.js +0 -1
- package/_vendor/object-is/polyfill.js_commonjs-proxy.js +0 -1
- package/_vendor/object-is/shim.js_commonjs-proxy.js +0 -1
- package/_vendor/object-keys/implementation.js_commonjs-proxy.js +0 -1
- package/_vendor/object-keys/index.js_commonjs-proxy.js +0 -1
- package/_vendor/object-keys/isArguments.js_commonjs-proxy.js +0 -1
- package/_vendor/object.assign/implementation.js_commonjs-proxy.js +0 -1
- package/_vendor/object.assign/index.js_commonjs-proxy.js +0 -1
- package/_vendor/object.assign/polyfill.js_commonjs-proxy.js +0 -1
- package/_vendor/object.assign/shim.js_commonjs-proxy.js +0 -2
- package/_vendor/regexp.prototype.flags/implementation.js_commonjs-proxy.js +0 -1
- package/_vendor/regexp.prototype.flags/index.js_commonjs-proxy.js +0 -1
- package/_vendor/regexp.prototype.flags/polyfill.js_commonjs-proxy.js +0 -1
- package/_vendor/regexp.prototype.flags/shim.js_commonjs-proxy.js +0 -1
- package/_vendor/side-channel/index.js_commonjs-proxy.js +0 -1
- package/_vendor/which-boxed-primitive/index.js_commonjs-proxy.js +0 -5
- package/_vendor/which-collection/index.js_commonjs-proxy.js +0 -4
- package/_vendor/which-typed-array/index.js_commonjs-proxy.js +0 -1
- package/_virtual/_node-resolve_empty.js_commonjs-proxy.js +0 -6
- package/_virtual/commonjsHelpers.js +0 -18
- package/_virtual/node-resolve_empty.js +0 -8
- package/_virtual/polyfill-node.global.js +0 -5
- package/_virtual/polyfill-node.process.js +0 -225
- package/vendor/available-typed-arrays/index.js +0 -29
- package/vendor/call-bind/callBound.js +0 -19
- package/vendor/call-bind/index.js +0 -52
- package/vendor/deep-equal/index.js +0 -379
- package/vendor/deep-equal/node_modules/isarray/index.js +0 -7
- package/vendor/define-properties/index.js +0 -60
- package/vendor/es-abstract/helpers/getOwnPropertyDescriptor.js +0 -17
- package/vendor/es-get-iterator/index.js +0 -217
- package/vendor/es-get-iterator/node_modules/isarray/index.js +0 -7
- package/vendor/foreach/index.js +0 -22
- package/vendor/function-bind/implementation.js +0 -52
- package/vendor/function-bind/index.js +0 -7
- package/vendor/get-intrinsic/index.js +0 -334
- package/vendor/has/src/index.js +0 -7
- package/vendor/has-bigints/index.js +0 -12
- package/vendor/has-symbols/index.js +0 -15
- package/vendor/has-symbols/shams.js +0 -42
- package/vendor/has-tostringtag/shams.js +0 -9
- package/vendor/is-arguments/index.js +0 -36
- package/vendor/is-bigint/index.js +0 -39
- package/vendor/is-boolean-object/index.js +0 -29
- package/vendor/is-date-object/index.js +0 -22
- package/vendor/is-map/index.js +0 -42
- package/vendor/is-number-object/index.js +0 -26
- package/vendor/is-regex/index.js +0 -61
- package/vendor/is-set/index.js +0 -42
- package/vendor/is-string/index.js +0 -26
- package/vendor/is-symbol/index.js +0 -36
- package/vendor/is-typed-array/index.js +0 -67
- package/vendor/is-weakmap/index.js +0 -42
- package/vendor/is-weakset/index.js +0 -42
- package/vendor/object-inspect/index.js +0 -515
- package/vendor/object-is/implementation.js +0 -18
- package/vendor/object-is/index.js +0 -25
- package/vendor/object-is/polyfill.js +0 -9
- package/vendor/object-is/shim.js +0 -17
- package/vendor/object-keys/implementation.js +0 -124
- package/vendor/object-keys/index.js +0 -35
- package/vendor/object-keys/isArguments.js +0 -17
- package/vendor/object.assign/implementation.js +0 -46
- package/vendor/object.assign/index.js +0 -29
- package/vendor/object.assign/polyfill.js +0 -57
- package/vendor/object.assign/shim.js +0 -17
- package/vendor/regexp.prototype.flags/implementation.js +0 -30
- package/vendor/regexp.prototype.flags/index.js +0 -25
- package/vendor/regexp.prototype.flags/polyfill.js +0 -23
- package/vendor/regexp.prototype.flags/shim.js +0 -29
- package/vendor/side-channel/index.js +0 -128
- package/vendor/which-boxed-primitive/index.js +0 -38
- package/vendor/which-collection/index.js +0 -29
- package/vendor/which-typed-array/index.js +0 -63
package/vendor/foreach/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var hasOwn = Object.prototype.hasOwnProperty;
|
|
2
|
-
var toString = Object.prototype.toString;
|
|
3
|
-
|
|
4
|
-
var foreach = function forEach (obj, fn, ctx) {
|
|
5
|
-
if (toString.call(fn) !== '[object Function]') {
|
|
6
|
-
throw new TypeError('iterator must be a function');
|
|
7
|
-
}
|
|
8
|
-
var l = obj.length;
|
|
9
|
-
if (l === +l) {
|
|
10
|
-
for (var i = 0; i < l; i++) {
|
|
11
|
-
fn.call(ctx, obj[i], i, obj);
|
|
12
|
-
}
|
|
13
|
-
} else {
|
|
14
|
-
for (var k in obj) {
|
|
15
|
-
if (hasOwn.call(obj, k)) {
|
|
16
|
-
fn.call(ctx, obj[k], k, obj);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export { foreach as f };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/* eslint no-invalid-this: 1 */
|
|
2
|
-
|
|
3
|
-
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
4
|
-
var slice = Array.prototype.slice;
|
|
5
|
-
var toStr = Object.prototype.toString;
|
|
6
|
-
var funcType = '[object Function]';
|
|
7
|
-
|
|
8
|
-
var implementation = function bind(that) {
|
|
9
|
-
var target = this;
|
|
10
|
-
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
|
|
11
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
12
|
-
}
|
|
13
|
-
var args = slice.call(arguments, 1);
|
|
14
|
-
|
|
15
|
-
var bound;
|
|
16
|
-
var binder = function () {
|
|
17
|
-
if (this instanceof bound) {
|
|
18
|
-
var result = target.apply(
|
|
19
|
-
this,
|
|
20
|
-
args.concat(slice.call(arguments))
|
|
21
|
-
);
|
|
22
|
-
if (Object(result) === result) {
|
|
23
|
-
return result;
|
|
24
|
-
}
|
|
25
|
-
return this;
|
|
26
|
-
} else {
|
|
27
|
-
return target.apply(
|
|
28
|
-
that,
|
|
29
|
-
args.concat(slice.call(arguments))
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
var boundLength = Math.max(0, target.length - args.length);
|
|
35
|
-
var boundArgs = [];
|
|
36
|
-
for (var i = 0; i < boundLength; i++) {
|
|
37
|
-
boundArgs.push('$' + i);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
41
|
-
|
|
42
|
-
if (target.prototype) {
|
|
43
|
-
var Empty = function Empty() {};
|
|
44
|
-
Empty.prototype = target.prototype;
|
|
45
|
-
bound.prototype = new Empty();
|
|
46
|
-
Empty.prototype = null;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return bound;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export { implementation as i };
|
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
import { h as hasSymbols$1 } from '../has-symbols/index.js';
|
|
2
|
-
import { f as functionBind } from '../function-bind/index.js';
|
|
3
|
-
import { s as src } from '../has/src/index.js';
|
|
4
|
-
|
|
5
|
-
var undefined$1;
|
|
6
|
-
|
|
7
|
-
var $SyntaxError = SyntaxError;
|
|
8
|
-
var $Function = Function;
|
|
9
|
-
var $TypeError = TypeError;
|
|
10
|
-
|
|
11
|
-
// eslint-disable-next-line consistent-return
|
|
12
|
-
var getEvalledConstructor = function (expressionSyntax) {
|
|
13
|
-
try {
|
|
14
|
-
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
15
|
-
} catch (e) {}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
19
|
-
if ($gOPD) {
|
|
20
|
-
try {
|
|
21
|
-
$gOPD({}, '');
|
|
22
|
-
} catch (e) {
|
|
23
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var throwTypeError = function () {
|
|
28
|
-
throw new $TypeError();
|
|
29
|
-
};
|
|
30
|
-
var ThrowTypeError = $gOPD
|
|
31
|
-
? (function () {
|
|
32
|
-
try {
|
|
33
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
34
|
-
arguments.callee; // IE 8 does not throw here
|
|
35
|
-
return throwTypeError;
|
|
36
|
-
} catch (calleeThrows) {
|
|
37
|
-
try {
|
|
38
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
39
|
-
return $gOPD(arguments, 'callee').get;
|
|
40
|
-
} catch (gOPDthrows) {
|
|
41
|
-
return throwTypeError;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}())
|
|
45
|
-
: throwTypeError;
|
|
46
|
-
|
|
47
|
-
var hasSymbols = hasSymbols$1();
|
|
48
|
-
|
|
49
|
-
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
50
|
-
|
|
51
|
-
var needsEval = {};
|
|
52
|
-
|
|
53
|
-
var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
|
|
54
|
-
|
|
55
|
-
var INTRINSICS = {
|
|
56
|
-
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
57
|
-
'%Array%': Array,
|
|
58
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
59
|
-
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined$1,
|
|
60
|
-
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
61
|
-
'%AsyncFunction%': needsEval,
|
|
62
|
-
'%AsyncGenerator%': needsEval,
|
|
63
|
-
'%AsyncGeneratorFunction%': needsEval,
|
|
64
|
-
'%AsyncIteratorPrototype%': needsEval,
|
|
65
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
|
|
66
|
-
'%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
|
|
67
|
-
'%Boolean%': Boolean,
|
|
68
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
|
|
69
|
-
'%Date%': Date,
|
|
70
|
-
'%decodeURI%': decodeURI,
|
|
71
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
72
|
-
'%encodeURI%': encodeURI,
|
|
73
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
74
|
-
'%Error%': Error,
|
|
75
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
76
|
-
'%EvalError%': EvalError,
|
|
77
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
78
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
79
|
-
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
|
|
80
|
-
'%Function%': $Function,
|
|
81
|
-
'%GeneratorFunction%': needsEval,
|
|
82
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
|
|
83
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
|
|
84
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
85
|
-
'%isFinite%': isFinite,
|
|
86
|
-
'%isNaN%': isNaN,
|
|
87
|
-
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
|
|
88
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
89
|
-
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
90
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
|
|
91
|
-
'%Math%': Math,
|
|
92
|
-
'%Number%': Number,
|
|
93
|
-
'%Object%': Object,
|
|
94
|
-
'%parseFloat%': parseFloat,
|
|
95
|
-
'%parseInt%': parseInt,
|
|
96
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
97
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
|
|
98
|
-
'%RangeError%': RangeError,
|
|
99
|
-
'%ReferenceError%': ReferenceError,
|
|
100
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
101
|
-
'%RegExp%': RegExp,
|
|
102
|
-
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
103
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
|
|
104
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
105
|
-
'%String%': String,
|
|
106
|
-
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
107
|
-
'%Symbol%': hasSymbols ? Symbol : undefined$1,
|
|
108
|
-
'%SyntaxError%': $SyntaxError,
|
|
109
|
-
'%ThrowTypeError%': ThrowTypeError,
|
|
110
|
-
'%TypedArray%': TypedArray,
|
|
111
|
-
'%TypeError%': $TypeError,
|
|
112
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
113
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
114
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
115
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
|
|
116
|
-
'%URIError%': URIError,
|
|
117
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
118
|
-
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
|
|
119
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
var doEval = function doEval(name) {
|
|
123
|
-
var value;
|
|
124
|
-
if (name === '%AsyncFunction%') {
|
|
125
|
-
value = getEvalledConstructor('async function () {}');
|
|
126
|
-
} else if (name === '%GeneratorFunction%') {
|
|
127
|
-
value = getEvalledConstructor('function* () {}');
|
|
128
|
-
} else if (name === '%AsyncGeneratorFunction%') {
|
|
129
|
-
value = getEvalledConstructor('async function* () {}');
|
|
130
|
-
} else if (name === '%AsyncGenerator%') {
|
|
131
|
-
var fn = doEval('%AsyncGeneratorFunction%');
|
|
132
|
-
if (fn) {
|
|
133
|
-
value = fn.prototype;
|
|
134
|
-
}
|
|
135
|
-
} else if (name === '%AsyncIteratorPrototype%') {
|
|
136
|
-
var gen = doEval('%AsyncGenerator%');
|
|
137
|
-
if (gen) {
|
|
138
|
-
value = getProto(gen.prototype);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
INTRINSICS[name] = value;
|
|
143
|
-
|
|
144
|
-
return value;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
var LEGACY_ALIASES = {
|
|
148
|
-
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
149
|
-
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
150
|
-
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
151
|
-
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
152
|
-
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
153
|
-
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
154
|
-
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
155
|
-
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
156
|
-
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
157
|
-
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
158
|
-
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
159
|
-
'%DatePrototype%': ['Date', 'prototype'],
|
|
160
|
-
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
161
|
-
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
162
|
-
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
163
|
-
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
164
|
-
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
165
|
-
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
166
|
-
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
167
|
-
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
168
|
-
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
169
|
-
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
170
|
-
'%JSONParse%': ['JSON', 'parse'],
|
|
171
|
-
'%JSONStringify%': ['JSON', 'stringify'],
|
|
172
|
-
'%MapPrototype%': ['Map', 'prototype'],
|
|
173
|
-
'%NumberPrototype%': ['Number', 'prototype'],
|
|
174
|
-
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
175
|
-
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
176
|
-
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
177
|
-
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
178
|
-
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
179
|
-
'%Promise_all%': ['Promise', 'all'],
|
|
180
|
-
'%Promise_reject%': ['Promise', 'reject'],
|
|
181
|
-
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
182
|
-
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
183
|
-
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
184
|
-
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
185
|
-
'%SetPrototype%': ['Set', 'prototype'],
|
|
186
|
-
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
187
|
-
'%StringPrototype%': ['String', 'prototype'],
|
|
188
|
-
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
189
|
-
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
190
|
-
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
191
|
-
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
192
|
-
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
193
|
-
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
194
|
-
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
195
|
-
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
196
|
-
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
197
|
-
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
198
|
-
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
var bind = functionBind;
|
|
202
|
-
var hasOwn = src;
|
|
203
|
-
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
204
|
-
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
205
|
-
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
206
|
-
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
207
|
-
|
|
208
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
209
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
210
|
-
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
211
|
-
var stringToPath = function stringToPath(string) {
|
|
212
|
-
var first = $strSlice(string, 0, 1);
|
|
213
|
-
var last = $strSlice(string, -1);
|
|
214
|
-
if (first === '%' && last !== '%') {
|
|
215
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
216
|
-
} else if (last === '%' && first !== '%') {
|
|
217
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
218
|
-
}
|
|
219
|
-
var result = [];
|
|
220
|
-
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
221
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
222
|
-
});
|
|
223
|
-
return result;
|
|
224
|
-
};
|
|
225
|
-
/* end adaptation */
|
|
226
|
-
|
|
227
|
-
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
228
|
-
var intrinsicName = name;
|
|
229
|
-
var alias;
|
|
230
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
231
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
232
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
236
|
-
var value = INTRINSICS[intrinsicName];
|
|
237
|
-
if (value === needsEval) {
|
|
238
|
-
value = doEval(intrinsicName);
|
|
239
|
-
}
|
|
240
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
241
|
-
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
return {
|
|
245
|
-
alias: alias,
|
|
246
|
-
name: intrinsicName,
|
|
247
|
-
value: value
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
255
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
256
|
-
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
257
|
-
}
|
|
258
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
259
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
var parts = stringToPath(name);
|
|
263
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
264
|
-
|
|
265
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
266
|
-
var intrinsicRealName = intrinsic.name;
|
|
267
|
-
var value = intrinsic.value;
|
|
268
|
-
var skipFurtherCaching = false;
|
|
269
|
-
|
|
270
|
-
var alias = intrinsic.alias;
|
|
271
|
-
if (alias) {
|
|
272
|
-
intrinsicBaseName = alias[0];
|
|
273
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
277
|
-
var part = parts[i];
|
|
278
|
-
var first = $strSlice(part, 0, 1);
|
|
279
|
-
var last = $strSlice(part, -1);
|
|
280
|
-
if (
|
|
281
|
-
(
|
|
282
|
-
(first === '"' || first === "'" || first === '`')
|
|
283
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
284
|
-
)
|
|
285
|
-
&& first !== last
|
|
286
|
-
) {
|
|
287
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
288
|
-
}
|
|
289
|
-
if (part === 'constructor' || !isOwn) {
|
|
290
|
-
skipFurtherCaching = true;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
intrinsicBaseName += '.' + part;
|
|
294
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
295
|
-
|
|
296
|
-
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
297
|
-
value = INTRINSICS[intrinsicRealName];
|
|
298
|
-
} else if (value != null) {
|
|
299
|
-
if (!(part in value)) {
|
|
300
|
-
if (!allowMissing) {
|
|
301
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
302
|
-
}
|
|
303
|
-
return void undefined$1;
|
|
304
|
-
}
|
|
305
|
-
if ($gOPD && (i + 1) >= parts.length) {
|
|
306
|
-
var desc = $gOPD(value, part);
|
|
307
|
-
isOwn = !!desc;
|
|
308
|
-
|
|
309
|
-
// By convention, when a data property is converted to an accessor
|
|
310
|
-
// property to emulate a data property that does not suffer from
|
|
311
|
-
// the override mistake, that accessor's getter is marked with
|
|
312
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
313
|
-
// uphold the illusion by pretending to see that original data
|
|
314
|
-
// property, i.e., returning the value rather than the getter
|
|
315
|
-
// itself.
|
|
316
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
317
|
-
value = desc.get;
|
|
318
|
-
} else {
|
|
319
|
-
value = value[part];
|
|
320
|
-
}
|
|
321
|
-
} else {
|
|
322
|
-
isOwn = hasOwn(value, part);
|
|
323
|
-
value = value[part];
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
if (isOwn && !skipFurtherCaching) {
|
|
327
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
return value;
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
export { getIntrinsic as g };
|
package/vendor/has/src/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { c as commonjsGlobal } from '../../_virtual/commonjsHelpers.js';
|
|
2
|
-
|
|
3
|
-
var $BigInt = commonjsGlobal.BigInt;
|
|
4
|
-
|
|
5
|
-
var hasBigints = function hasNativeBigInts() {
|
|
6
|
-
return typeof $BigInt === 'function'
|
|
7
|
-
&& typeof BigInt === 'function'
|
|
8
|
-
&& typeof $BigInt(42) === 'bigint' // eslint-disable-line no-magic-numbers
|
|
9
|
-
&& typeof BigInt(42) === 'bigint'; // eslint-disable-line no-magic-numbers
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { hasBigints as h };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { s as shams } from './shams.js';
|
|
2
|
-
|
|
3
|
-
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
4
|
-
var hasSymbolSham = shams;
|
|
5
|
-
|
|
6
|
-
var hasSymbols = function hasNativeSymbols() {
|
|
7
|
-
if (typeof origSymbol !== 'function') { return false; }
|
|
8
|
-
if (typeof Symbol !== 'function') { return false; }
|
|
9
|
-
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
10
|
-
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
11
|
-
|
|
12
|
-
return hasSymbolSham();
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export { hasSymbols as h };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
2
|
-
var shams = function hasSymbols() {
|
|
3
|
-
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
4
|
-
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
5
|
-
|
|
6
|
-
var obj = {};
|
|
7
|
-
var sym = Symbol('test');
|
|
8
|
-
var symObj = Object(sym);
|
|
9
|
-
if (typeof sym === 'string') { return false; }
|
|
10
|
-
|
|
11
|
-
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
12
|
-
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
13
|
-
|
|
14
|
-
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
15
|
-
// if (sym instanceof Symbol) { return false; }
|
|
16
|
-
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
17
|
-
// if (!(symObj instanceof Symbol)) { return false; }
|
|
18
|
-
|
|
19
|
-
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
20
|
-
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
21
|
-
|
|
22
|
-
var symVal = 42;
|
|
23
|
-
obj[sym] = symVal;
|
|
24
|
-
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
25
|
-
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
26
|
-
|
|
27
|
-
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
28
|
-
|
|
29
|
-
var syms = Object.getOwnPropertySymbols(obj);
|
|
30
|
-
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
31
|
-
|
|
32
|
-
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
33
|
-
|
|
34
|
-
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
35
|
-
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
36
|
-
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return true;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export { shams as s };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { s as shams } from '../has-tostringtag/shams.js';
|
|
2
|
-
import { c as callBound$1 } from '../call-bind/callBound.js';
|
|
3
|
-
|
|
4
|
-
var hasToStringTag = shams();
|
|
5
|
-
var callBound = callBound$1;
|
|
6
|
-
|
|
7
|
-
var $toString = callBound('Object.prototype.toString');
|
|
8
|
-
|
|
9
|
-
var isStandardArguments = function isArguments(value) {
|
|
10
|
-
if (hasToStringTag && value && typeof value === 'object' && Symbol.toStringTag in value) {
|
|
11
|
-
return false;
|
|
12
|
-
}
|
|
13
|
-
return $toString(value) === '[object Arguments]';
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
var isLegacyArguments = function isArguments(value) {
|
|
17
|
-
if (isStandardArguments(value)) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
return value !== null &&
|
|
21
|
-
typeof value === 'object' &&
|
|
22
|
-
typeof value.length === 'number' &&
|
|
23
|
-
value.length >= 0 &&
|
|
24
|
-
$toString(value) !== '[object Array]' &&
|
|
25
|
-
$toString(value.callee) === '[object Function]';
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
var supportsStandardArguments = (function () {
|
|
29
|
-
return isStandardArguments(arguments);
|
|
30
|
-
}());
|
|
31
|
-
|
|
32
|
-
isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
|
|
33
|
-
|
|
34
|
-
var isArguments = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
35
|
-
|
|
36
|
-
export { isArguments as i };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { i as isBigint } from '../../_vendor/is-bigint/index.js_commonjs-module.js';
|
|
2
|
-
import { h as hasBigints } from '../has-bigints/index.js';
|
|
3
|
-
|
|
4
|
-
var hasBigInts = hasBigints();
|
|
5
|
-
|
|
6
|
-
if (hasBigInts) {
|
|
7
|
-
var bigIntValueOf = BigInt.prototype.valueOf;
|
|
8
|
-
var tryBigInt = function tryBigIntObject(value) {
|
|
9
|
-
try {
|
|
10
|
-
bigIntValueOf.call(value);
|
|
11
|
-
return true;
|
|
12
|
-
} catch (e) {
|
|
13
|
-
}
|
|
14
|
-
return false;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
isBigint.exports = function isBigInt(value) {
|
|
18
|
-
if (
|
|
19
|
-
value === null
|
|
20
|
-
|| typeof value === 'undefined'
|
|
21
|
-
|| typeof value === 'boolean'
|
|
22
|
-
|| typeof value === 'string'
|
|
23
|
-
|| typeof value === 'number'
|
|
24
|
-
|| typeof value === 'symbol'
|
|
25
|
-
|| typeof value === 'function'
|
|
26
|
-
) {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
if (typeof value === 'bigint') {
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return tryBigInt(value);
|
|
34
|
-
};
|
|
35
|
-
} else {
|
|
36
|
-
isBigint.exports = function isBigInt(value) {
|
|
37
|
-
return false ;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { c as callBound$1 } from '../call-bind/callBound.js';
|
|
2
|
-
import { s as shams } from '../has-tostringtag/shams.js';
|
|
3
|
-
|
|
4
|
-
var callBound = callBound$1;
|
|
5
|
-
var $boolToStr = callBound('Boolean.prototype.toString');
|
|
6
|
-
var $toString = callBound('Object.prototype.toString');
|
|
7
|
-
|
|
8
|
-
var tryBooleanObject = function booleanBrandCheck(value) {
|
|
9
|
-
try {
|
|
10
|
-
$boolToStr(value);
|
|
11
|
-
return true;
|
|
12
|
-
} catch (e) {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
var boolClass = '[object Boolean]';
|
|
17
|
-
var hasToStringTag = shams();
|
|
18
|
-
|
|
19
|
-
var isBooleanObject = function isBoolean(value) {
|
|
20
|
-
if (typeof value === 'boolean') {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
if (value === null || typeof value !== 'object') {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
return hasToStringTag && Symbol.toStringTag in value ? tryBooleanObject(value) : $toString(value) === boolClass;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export { isBooleanObject as i };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var getDay = Date.prototype.getDay;
|
|
2
|
-
var tryDateObject = function tryDateGetDayCall(value) {
|
|
3
|
-
try {
|
|
4
|
-
getDay.call(value);
|
|
5
|
-
return true;
|
|
6
|
-
} catch (e) {
|
|
7
|
-
return false;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
var toStr = Object.prototype.toString;
|
|
12
|
-
var dateClass = '[object Date]';
|
|
13
|
-
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
14
|
-
|
|
15
|
-
var isDateObject = function isDateObject(value) {
|
|
16
|
-
if (typeof value !== 'object' || value === null) {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
return hasToStringTag ? tryDateObject(value) : toStr.call(value) === dateClass;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export { isDateObject as i };
|
package/vendor/is-map/index.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
var $Map = typeof Map === 'function' && Map.prototype ? Map : null;
|
|
2
|
-
var $Set = typeof Set === 'function' && Set.prototype ? Set : null;
|
|
3
|
-
|
|
4
|
-
var exported;
|
|
5
|
-
|
|
6
|
-
if (!$Map) {
|
|
7
|
-
// eslint-disable-next-line no-unused-vars
|
|
8
|
-
exported = function isMap(x) {
|
|
9
|
-
// `Map` is not present in this environment.
|
|
10
|
-
return false;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
var $mapHas = $Map ? Map.prototype.has : null;
|
|
15
|
-
var $setHas = $Set ? Set.prototype.has : null;
|
|
16
|
-
if (!exported && !$mapHas) {
|
|
17
|
-
// eslint-disable-next-line no-unused-vars
|
|
18
|
-
exported = function isMap(x) {
|
|
19
|
-
// `Map` does not have a `has` method
|
|
20
|
-
return false;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
var isMap = exported || function isMap(x) {
|
|
25
|
-
if (!x || typeof x !== 'object') {
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
try {
|
|
29
|
-
$mapHas.call(x);
|
|
30
|
-
if ($setHas) {
|
|
31
|
-
try {
|
|
32
|
-
$setHas.call(x);
|
|
33
|
-
} catch (e) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return x instanceof $Map; // core-js workaround, pre-v2.5.0
|
|
38
|
-
} catch (e) {}
|
|
39
|
-
return false;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export { isMap as i };
|