@shipengine/alchemy 6.0.71 → 6.0.74-next.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/index.js +660 -734
- package/index.mjs +658 -735
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2288,7 +2288,7 @@ var syncFallback = function syncFallback(create) {
|
|
|
2288
2288
|
var useInsertionEffect = React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : false;
|
|
2289
2289
|
var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;
|
|
2290
2290
|
|
|
2291
|
-
var hasOwnProperty$
|
|
2291
|
+
var hasOwnProperty$b = {}.hasOwnProperty;
|
|
2292
2292
|
|
|
2293
2293
|
var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
2294
2294
|
// because this module is primarily intended for the browser and node
|
|
@@ -2375,7 +2375,7 @@ var createEmotionProps = function createEmotionProps(type, props) {
|
|
|
2375
2375
|
var newProps = {};
|
|
2376
2376
|
|
|
2377
2377
|
for (var key in props) {
|
|
2378
|
-
if (hasOwnProperty$
|
|
2378
|
+
if (hasOwnProperty$b.call(props, key)) {
|
|
2379
2379
|
newProps[key] = props[key];
|
|
2380
2380
|
}
|
|
2381
2381
|
}
|
|
@@ -2436,7 +2436,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
2436
2436
|
var newProps = {};
|
|
2437
2437
|
|
|
2438
2438
|
for (var key in props) {
|
|
2439
|
-
if (hasOwnProperty$
|
|
2439
|
+
if (hasOwnProperty$b.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {
|
|
2440
2440
|
newProps[key] = props[key];
|
|
2441
2441
|
}
|
|
2442
2442
|
}
|
|
@@ -2455,7 +2455,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
2455
2455
|
}
|
|
2456
2456
|
|
|
2457
2457
|
function jsx(type, props, key) {
|
|
2458
|
-
if (!hasOwnProperty$
|
|
2458
|
+
if (!hasOwnProperty$b.call(props, 'css')) {
|
|
2459
2459
|
return jsxRuntime.jsx(type, props, key);
|
|
2460
2460
|
}
|
|
2461
2461
|
|
|
@@ -3453,31 +3453,31 @@ var freeGlobal = _freeGlobal;
|
|
|
3453
3453
|
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
3454
3454
|
|
|
3455
3455
|
/** Used as a reference to the global object. */
|
|
3456
|
-
var root$
|
|
3456
|
+
var root$c = freeGlobal || freeSelf || Function('return this')();
|
|
3457
3457
|
|
|
3458
|
-
var _root = root$
|
|
3458
|
+
var _root = root$c;
|
|
3459
3459
|
|
|
3460
|
-
var root$
|
|
3460
|
+
var root$b = _root;
|
|
3461
3461
|
|
|
3462
3462
|
/** Built-in value references. */
|
|
3463
|
-
var Symbol$7 = root$
|
|
3463
|
+
var Symbol$7 = root$b.Symbol;
|
|
3464
3464
|
|
|
3465
3465
|
var _Symbol = Symbol$7;
|
|
3466
3466
|
|
|
3467
3467
|
var Symbol$6 = _Symbol;
|
|
3468
3468
|
|
|
3469
3469
|
/** Used for built-in method references. */
|
|
3470
|
-
var objectProto$
|
|
3470
|
+
var objectProto$d = Object.prototype;
|
|
3471
3471
|
|
|
3472
3472
|
/** Used to check objects for own properties. */
|
|
3473
|
-
var hasOwnProperty$
|
|
3473
|
+
var hasOwnProperty$a = objectProto$d.hasOwnProperty;
|
|
3474
3474
|
|
|
3475
3475
|
/**
|
|
3476
3476
|
* Used to resolve the
|
|
3477
3477
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
3478
3478
|
* of values.
|
|
3479
3479
|
*/
|
|
3480
|
-
var nativeObjectToString$1 = objectProto$
|
|
3480
|
+
var nativeObjectToString$1 = objectProto$d.toString;
|
|
3481
3481
|
|
|
3482
3482
|
/** Built-in value references. */
|
|
3483
3483
|
var symToStringTag$1 = Symbol$6 ? Symbol$6.toStringTag : undefined;
|
|
@@ -3490,7 +3490,7 @@ var symToStringTag$1 = Symbol$6 ? Symbol$6.toStringTag : undefined;
|
|
|
3490
3490
|
* @returns {string} Returns the raw `toStringTag`.
|
|
3491
3491
|
*/
|
|
3492
3492
|
function getRawTag$1(value) {
|
|
3493
|
-
var isOwn = hasOwnProperty$
|
|
3493
|
+
var isOwn = hasOwnProperty$a.call(value, symToStringTag$1),
|
|
3494
3494
|
tag = value[symToStringTag$1];
|
|
3495
3495
|
|
|
3496
3496
|
try {
|
|
@@ -3513,14 +3513,14 @@ var _getRawTag = getRawTag$1;
|
|
|
3513
3513
|
|
|
3514
3514
|
/** Used for built-in method references. */
|
|
3515
3515
|
|
|
3516
|
-
var objectProto$
|
|
3516
|
+
var objectProto$c = Object.prototype;
|
|
3517
3517
|
|
|
3518
3518
|
/**
|
|
3519
3519
|
* Used to resolve the
|
|
3520
3520
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
3521
3521
|
* of values.
|
|
3522
3522
|
*/
|
|
3523
|
-
var nativeObjectToString = objectProto$
|
|
3523
|
+
var nativeObjectToString = objectProto$c.toString;
|
|
3524
3524
|
|
|
3525
3525
|
/**
|
|
3526
3526
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
@@ -3590,23 +3590,15 @@ var _baseGetTag = baseGetTag$5;
|
|
|
3590
3590
|
* // => false
|
|
3591
3591
|
*/
|
|
3592
3592
|
|
|
3593
|
-
|
|
3594
|
-
var
|
|
3595
|
-
|
|
3596
|
-
function requireIsObject () {
|
|
3597
|
-
if (hasRequiredIsObject) return isObject_1;
|
|
3598
|
-
hasRequiredIsObject = 1;
|
|
3599
|
-
function isObject(value) {
|
|
3600
|
-
var type = typeof value;
|
|
3601
|
-
return value != null && (type == 'object' || type == 'function');
|
|
3602
|
-
}
|
|
3603
|
-
|
|
3604
|
-
isObject_1 = isObject;
|
|
3605
|
-
return isObject_1;
|
|
3593
|
+
function isObject$8(value) {
|
|
3594
|
+
var type = typeof value;
|
|
3595
|
+
return value != null && (type == 'object' || type == 'function');
|
|
3606
3596
|
}
|
|
3607
3597
|
|
|
3598
|
+
var isObject_1 = isObject$8;
|
|
3599
|
+
|
|
3608
3600
|
var baseGetTag$4 = _baseGetTag,
|
|
3609
|
-
isObject$
|
|
3601
|
+
isObject$7 = isObject_1;
|
|
3610
3602
|
|
|
3611
3603
|
/** `Object#toString` result references. */
|
|
3612
3604
|
var asyncTag = '[object AsyncFunction]',
|
|
@@ -3631,8 +3623,8 @@ var asyncTag = '[object AsyncFunction]',
|
|
|
3631
3623
|
* _.isFunction(/abc/);
|
|
3632
3624
|
* // => false
|
|
3633
3625
|
*/
|
|
3634
|
-
function isFunction$
|
|
3635
|
-
if (!isObject$
|
|
3626
|
+
function isFunction$3(value) {
|
|
3627
|
+
if (!isObject$7(value)) {
|
|
3636
3628
|
return false;
|
|
3637
3629
|
}
|
|
3638
3630
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
@@ -3641,12 +3633,12 @@ function isFunction$2(value) {
|
|
|
3641
3633
|
return tag == funcTag$1 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
3642
3634
|
}
|
|
3643
3635
|
|
|
3644
|
-
var isFunction_1 = isFunction$
|
|
3636
|
+
var isFunction_1 = isFunction$3;
|
|
3645
3637
|
|
|
3646
|
-
var root$
|
|
3638
|
+
var root$a = _root;
|
|
3647
3639
|
|
|
3648
3640
|
/** Used to detect overreaching core-js shims. */
|
|
3649
|
-
var coreJsData$1 = root$
|
|
3641
|
+
var coreJsData$1 = root$a['__core-js_shared__'];
|
|
3650
3642
|
|
|
3651
3643
|
var _coreJsData = coreJsData$1;
|
|
3652
3644
|
|
|
@@ -3699,9 +3691,9 @@ function toSource$2(func) {
|
|
|
3699
3691
|
|
|
3700
3692
|
var _toSource = toSource$2;
|
|
3701
3693
|
|
|
3702
|
-
var isFunction$
|
|
3694
|
+
var isFunction$2 = isFunction_1,
|
|
3703
3695
|
isMasked = _isMasked,
|
|
3704
|
-
isObject$
|
|
3696
|
+
isObject$6 = isObject_1,
|
|
3705
3697
|
toSource$1 = _toSource;
|
|
3706
3698
|
|
|
3707
3699
|
/**
|
|
@@ -3715,17 +3707,17 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
|
3715
3707
|
|
|
3716
3708
|
/** Used for built-in method references. */
|
|
3717
3709
|
var funcProto$1 = Function.prototype,
|
|
3718
|
-
objectProto$
|
|
3710
|
+
objectProto$b = Object.prototype;
|
|
3719
3711
|
|
|
3720
3712
|
/** Used to resolve the decompiled source of functions. */
|
|
3721
3713
|
var funcToString$1 = funcProto$1.toString;
|
|
3722
3714
|
|
|
3723
3715
|
/** Used to check objects for own properties. */
|
|
3724
|
-
var hasOwnProperty$
|
|
3716
|
+
var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
|
|
3725
3717
|
|
|
3726
3718
|
/** Used to detect if a method is native. */
|
|
3727
3719
|
var reIsNative = RegExp('^' +
|
|
3728
|
-
funcToString$1.call(hasOwnProperty$
|
|
3720
|
+
funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar, '\\$&')
|
|
3729
3721
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
3730
3722
|
);
|
|
3731
3723
|
|
|
@@ -3738,10 +3730,10 @@ var reIsNative = RegExp('^' +
|
|
|
3738
3730
|
* else `false`.
|
|
3739
3731
|
*/
|
|
3740
3732
|
function baseIsNative$1(value) {
|
|
3741
|
-
if (!isObject$
|
|
3733
|
+
if (!isObject$6(value) || isMasked(value)) {
|
|
3742
3734
|
return false;
|
|
3743
3735
|
}
|
|
3744
|
-
var pattern = isFunction$
|
|
3736
|
+
var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
|
|
3745
3737
|
return pattern.test(toSource$1(value));
|
|
3746
3738
|
}
|
|
3747
3739
|
|
|
@@ -3773,18 +3765,18 @@ var baseIsNative = _baseIsNative,
|
|
|
3773
3765
|
* @param {string} key The key of the method to get.
|
|
3774
3766
|
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
3775
3767
|
*/
|
|
3776
|
-
function getNative$
|
|
3768
|
+
function getNative$6(object, key) {
|
|
3777
3769
|
var value = getValue(object, key);
|
|
3778
3770
|
return baseIsNative(value) ? value : undefined;
|
|
3779
3771
|
}
|
|
3780
3772
|
|
|
3781
|
-
var _getNative = getNative$
|
|
3773
|
+
var _getNative = getNative$6;
|
|
3782
3774
|
|
|
3783
|
-
var getNative$
|
|
3784
|
-
root$
|
|
3775
|
+
var getNative$5 = _getNative,
|
|
3776
|
+
root$9 = _root;
|
|
3785
3777
|
|
|
3786
3778
|
/* Built-in method references that are verified to be native. */
|
|
3787
|
-
var WeakMap$3 = getNative$
|
|
3779
|
+
var WeakMap$3 = getNative$5(root$9, 'WeakMap');
|
|
3788
3780
|
|
|
3789
3781
|
var _WeakMap = WeakMap$3;
|
|
3790
3782
|
|
|
@@ -3813,47 +3805,39 @@ var baseSetData$2 = !metaMap$1 ? identity$2 : function(func, data) {
|
|
|
3813
3805
|
|
|
3814
3806
|
var _baseSetData = baseSetData$2;
|
|
3815
3807
|
|
|
3816
|
-
var
|
|
3817
|
-
var hasRequired_baseCreate;
|
|
3808
|
+
var isObject$5 = isObject_1;
|
|
3818
3809
|
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
hasRequired_baseCreate = 1;
|
|
3822
|
-
var isObject = requireIsObject();
|
|
3823
|
-
|
|
3824
|
-
/** Built-in value references. */
|
|
3825
|
-
var objectCreate = Object.create;
|
|
3810
|
+
/** Built-in value references. */
|
|
3811
|
+
var objectCreate = Object.create;
|
|
3826
3812
|
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3813
|
+
/**
|
|
3814
|
+
* The base implementation of `_.create` without support for assigning
|
|
3815
|
+
* properties to the created object.
|
|
3816
|
+
*
|
|
3817
|
+
* @private
|
|
3818
|
+
* @param {Object} proto The object to inherit from.
|
|
3819
|
+
* @returns {Object} Returns the new object.
|
|
3820
|
+
*/
|
|
3821
|
+
var baseCreate$4 = (function() {
|
|
3822
|
+
function object() {}
|
|
3823
|
+
return function(proto) {
|
|
3824
|
+
if (!isObject$5(proto)) {
|
|
3825
|
+
return {};
|
|
3826
|
+
}
|
|
3827
|
+
if (objectCreate) {
|
|
3828
|
+
return objectCreate(proto);
|
|
3829
|
+
}
|
|
3830
|
+
object.prototype = proto;
|
|
3831
|
+
var result = new object;
|
|
3832
|
+
object.prototype = undefined;
|
|
3833
|
+
return result;
|
|
3834
|
+
};
|
|
3835
|
+
}());
|
|
3850
3836
|
|
|
3851
|
-
|
|
3852
|
-
return _baseCreate;
|
|
3853
|
-
}
|
|
3837
|
+
var _baseCreate = baseCreate$4;
|
|
3854
3838
|
|
|
3855
|
-
var baseCreate$
|
|
3856
|
-
isObject$4 =
|
|
3839
|
+
var baseCreate$3 = _baseCreate,
|
|
3840
|
+
isObject$4 = isObject_1;
|
|
3857
3841
|
|
|
3858
3842
|
/**
|
|
3859
3843
|
* Creates a function that produces an instance of `Ctor` regardless of
|
|
@@ -3879,7 +3863,7 @@ function createCtor$4(Ctor) {
|
|
|
3879
3863
|
case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
|
|
3880
3864
|
case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
|
|
3881
3865
|
}
|
|
3882
|
-
var thisBinding = baseCreate$
|
|
3866
|
+
var thisBinding = baseCreate$3(Ctor.prototype),
|
|
3883
3867
|
result = Ctor.apply(thisBinding, args);
|
|
3884
3868
|
|
|
3885
3869
|
// Mimic the constructor's `return` behavior.
|
|
@@ -3891,7 +3875,7 @@ function createCtor$4(Ctor) {
|
|
|
3891
3875
|
var _createCtor = createCtor$4;
|
|
3892
3876
|
|
|
3893
3877
|
var createCtor$3 = _createCtor,
|
|
3894
|
-
root$
|
|
3878
|
+
root$8 = _root;
|
|
3895
3879
|
|
|
3896
3880
|
/** Used to compose bitmasks for function metadata. */
|
|
3897
3881
|
var WRAP_BIND_FLAG$6 = 1;
|
|
@@ -3911,7 +3895,7 @@ function createBind$1(func, bitmask, thisArg) {
|
|
|
3911
3895
|
Ctor = createCtor$3(func);
|
|
3912
3896
|
|
|
3913
3897
|
function wrapper() {
|
|
3914
|
-
var fn = (this && this !== root$
|
|
3898
|
+
var fn = (this && this !== root$8 && this instanceof wrapper) ? Ctor : func;
|
|
3915
3899
|
return fn.apply(isBind ? thisArg : this, arguments);
|
|
3916
3900
|
}
|
|
3917
3901
|
return wrapper;
|
|
@@ -4061,7 +4045,7 @@ function baseLodash$3() {
|
|
|
4061
4045
|
|
|
4062
4046
|
var _baseLodash = baseLodash$3;
|
|
4063
4047
|
|
|
4064
|
-
var baseCreate$
|
|
4048
|
+
var baseCreate$2 = _baseCreate,
|
|
4065
4049
|
baseLodash$2 = _baseLodash;
|
|
4066
4050
|
|
|
4067
4051
|
/** Used as references for the maximum length and index of an array. */
|
|
@@ -4085,7 +4069,7 @@ function LazyWrapper$3(value) {
|
|
|
4085
4069
|
}
|
|
4086
4070
|
|
|
4087
4071
|
// Ensure `LazyWrapper` is an instance of `baseLodash`.
|
|
4088
|
-
LazyWrapper$3.prototype = baseCreate$
|
|
4072
|
+
LazyWrapper$3.prototype = baseCreate$2(baseLodash$2.prototype);
|
|
4089
4073
|
LazyWrapper$3.prototype.constructor = LazyWrapper$3;
|
|
4090
4074
|
|
|
4091
4075
|
var _LazyWrapper = LazyWrapper$3;
|
|
@@ -4134,10 +4118,10 @@ var _realNames = realNames$1;
|
|
|
4134
4118
|
var realNames = _realNames;
|
|
4135
4119
|
|
|
4136
4120
|
/** Used for built-in method references. */
|
|
4137
|
-
var objectProto$
|
|
4121
|
+
var objectProto$a = Object.prototype;
|
|
4138
4122
|
|
|
4139
4123
|
/** Used to check objects for own properties. */
|
|
4140
|
-
var hasOwnProperty$
|
|
4124
|
+
var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
4141
4125
|
|
|
4142
4126
|
/**
|
|
4143
4127
|
* Gets the name of `func`.
|
|
@@ -4149,7 +4133,7 @@ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
|
4149
4133
|
function getFuncName$1(func) {
|
|
4150
4134
|
var result = (func.name + ''),
|
|
4151
4135
|
array = realNames[result],
|
|
4152
|
-
length = hasOwnProperty$
|
|
4136
|
+
length = hasOwnProperty$8.call(realNames, result) ? array.length : 0;
|
|
4153
4137
|
|
|
4154
4138
|
while (length--) {
|
|
4155
4139
|
var data = array[length],
|
|
@@ -4163,7 +4147,7 @@ function getFuncName$1(func) {
|
|
|
4163
4147
|
|
|
4164
4148
|
var _getFuncName = getFuncName$1;
|
|
4165
4149
|
|
|
4166
|
-
var baseCreate =
|
|
4150
|
+
var baseCreate$1 = _baseCreate,
|
|
4167
4151
|
baseLodash$1 = _baseLodash;
|
|
4168
4152
|
|
|
4169
4153
|
/**
|
|
@@ -4181,7 +4165,7 @@ function LodashWrapper$2(value, chainAll) {
|
|
|
4181
4165
|
this.__values__ = undefined;
|
|
4182
4166
|
}
|
|
4183
4167
|
|
|
4184
|
-
LodashWrapper$2.prototype = baseCreate(baseLodash$1.prototype);
|
|
4168
|
+
LodashWrapper$2.prototype = baseCreate$1(baseLodash$1.prototype);
|
|
4185
4169
|
LodashWrapper$2.prototype.constructor = LodashWrapper$2;
|
|
4186
4170
|
|
|
4187
4171
|
var _LodashWrapper = LodashWrapper$2;
|
|
@@ -4210,9 +4194,9 @@ var _LodashWrapper = LodashWrapper$2;
|
|
|
4210
4194
|
* // => false
|
|
4211
4195
|
*/
|
|
4212
4196
|
|
|
4213
|
-
var isArray$
|
|
4197
|
+
var isArray$h = Array.isArray;
|
|
4214
4198
|
|
|
4215
|
-
var isArray_1 = isArray$
|
|
4199
|
+
var isArray_1 = isArray$h;
|
|
4216
4200
|
|
|
4217
4201
|
/**
|
|
4218
4202
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
@@ -4294,15 +4278,15 @@ var _wrapperClone = wrapperClone$1;
|
|
|
4294
4278
|
var LazyWrapper$1 = _LazyWrapper,
|
|
4295
4279
|
LodashWrapper = _LodashWrapper,
|
|
4296
4280
|
baseLodash = _baseLodash,
|
|
4297
|
-
isArray$
|
|
4281
|
+
isArray$g = isArray_1,
|
|
4298
4282
|
isObjectLike$7 = isObjectLike_1,
|
|
4299
4283
|
wrapperClone = _wrapperClone;
|
|
4300
4284
|
|
|
4301
4285
|
/** Used for built-in method references. */
|
|
4302
|
-
var objectProto$
|
|
4286
|
+
var objectProto$9 = Object.prototype;
|
|
4303
4287
|
|
|
4304
4288
|
/** Used to check objects for own properties. */
|
|
4305
|
-
var hasOwnProperty$
|
|
4289
|
+
var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
4306
4290
|
|
|
4307
4291
|
/**
|
|
4308
4292
|
* Creates a `lodash` object which wraps `value` to enable implicit method
|
|
@@ -4422,11 +4406,11 @@ var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
|
4422
4406
|
* // => true
|
|
4423
4407
|
*/
|
|
4424
4408
|
function lodash$2(value) {
|
|
4425
|
-
if (isObjectLike$7(value) && !isArray$
|
|
4409
|
+
if (isObjectLike$7(value) && !isArray$g(value) && !(value instanceof LazyWrapper$1)) {
|
|
4426
4410
|
if (value instanceof LodashWrapper) {
|
|
4427
4411
|
return value;
|
|
4428
4412
|
}
|
|
4429
|
-
if (hasOwnProperty$
|
|
4413
|
+
if (hasOwnProperty$7.call(value, '__wrapped__')) {
|
|
4430
4414
|
return wrapperClone(value);
|
|
4431
4415
|
}
|
|
4432
4416
|
}
|
|
@@ -4600,28 +4584,20 @@ function constant$1(value) {
|
|
|
4600
4584
|
|
|
4601
4585
|
var constant_1 = constant$1;
|
|
4602
4586
|
|
|
4603
|
-
var
|
|
4604
|
-
var hasRequired_defineProperty;
|
|
4605
|
-
|
|
4606
|
-
function require_defineProperty () {
|
|
4607
|
-
if (hasRequired_defineProperty) return _defineProperty;
|
|
4608
|
-
hasRequired_defineProperty = 1;
|
|
4609
|
-
var getNative = _getNative;
|
|
4587
|
+
var getNative$4 = _getNative;
|
|
4610
4588
|
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4589
|
+
var defineProperty$2 = (function() {
|
|
4590
|
+
try {
|
|
4591
|
+
var func = getNative$4(Object, 'defineProperty');
|
|
4592
|
+
func({}, '', {});
|
|
4593
|
+
return func;
|
|
4594
|
+
} catch (e) {}
|
|
4595
|
+
}());
|
|
4618
4596
|
|
|
4619
|
-
|
|
4620
|
-
return _defineProperty;
|
|
4621
|
-
}
|
|
4597
|
+
var _defineProperty = defineProperty$2;
|
|
4622
4598
|
|
|
4623
4599
|
var constant = constant_1,
|
|
4624
|
-
defineProperty =
|
|
4600
|
+
defineProperty$1 = _defineProperty,
|
|
4625
4601
|
identity$1 = identity_1;
|
|
4626
4602
|
|
|
4627
4603
|
/**
|
|
@@ -4632,8 +4608,8 @@ var constant = constant_1,
|
|
|
4632
4608
|
* @param {Function} string The `toString` result.
|
|
4633
4609
|
* @returns {Function} Returns `func`.
|
|
4634
4610
|
*/
|
|
4635
|
-
var baseSetToString$1 = !defineProperty ? identity$1 : function(func, string) {
|
|
4636
|
-
return defineProperty(func, 'toString', {
|
|
4611
|
+
var baseSetToString$1 = !defineProperty$1 ? identity$1 : function(func, string) {
|
|
4612
|
+
return defineProperty$1(func, 'toString', {
|
|
4637
4613
|
'configurable': true,
|
|
4638
4614
|
'enumerable': false,
|
|
4639
4615
|
'value': constant(string),
|
|
@@ -4929,41 +4905,33 @@ var _getHolder = getHolder$2;
|
|
|
4929
4905
|
|
|
4930
4906
|
/** Used as references for various `Number` constants. */
|
|
4931
4907
|
|
|
4932
|
-
var
|
|
4933
|
-
var hasRequired_isIndex;
|
|
4934
|
-
|
|
4935
|
-
function require_isIndex () {
|
|
4936
|
-
if (hasRequired_isIndex) return _isIndex;
|
|
4937
|
-
hasRequired_isIndex = 1;
|
|
4938
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
4908
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
4939
4909
|
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
/**
|
|
4944
|
-
* Checks if `value` is a valid array-like index.
|
|
4945
|
-
*
|
|
4946
|
-
* @private
|
|
4947
|
-
* @param {*} value The value to check.
|
|
4948
|
-
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4949
|
-
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4950
|
-
*/
|
|
4951
|
-
function isIndex(value, length) {
|
|
4952
|
-
var type = typeof value;
|
|
4953
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
4910
|
+
/** Used to detect unsigned integer values. */
|
|
4911
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
4954
4912
|
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4913
|
+
/**
|
|
4914
|
+
* Checks if `value` is a valid array-like index.
|
|
4915
|
+
*
|
|
4916
|
+
* @private
|
|
4917
|
+
* @param {*} value The value to check.
|
|
4918
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4919
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4920
|
+
*/
|
|
4921
|
+
function isIndex$3(value, length) {
|
|
4922
|
+
var type = typeof value;
|
|
4923
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
4960
4924
|
|
|
4961
|
-
|
|
4962
|
-
|
|
4925
|
+
return !!length &&
|
|
4926
|
+
(type == 'number' ||
|
|
4927
|
+
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4928
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
4963
4929
|
}
|
|
4964
4930
|
|
|
4931
|
+
var _isIndex = isIndex$3;
|
|
4932
|
+
|
|
4965
4933
|
var copyArray$2 = _copyArray,
|
|
4966
|
-
isIndex$
|
|
4934
|
+
isIndex$2 = _isIndex;
|
|
4967
4935
|
|
|
4968
4936
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4969
4937
|
var nativeMin$1 = Math.min;
|
|
@@ -4985,7 +4953,7 @@ function reorder$1(array, indexes) {
|
|
|
4985
4953
|
|
|
4986
4954
|
while (length--) {
|
|
4987
4955
|
var index = indexes[length];
|
|
4988
|
-
array[length] = isIndex$
|
|
4956
|
+
array[length] = isIndex$2(index, arrLength) ? oldArray[index] : undefined;
|
|
4989
4957
|
}
|
|
4990
4958
|
return array;
|
|
4991
4959
|
}
|
|
@@ -5031,7 +4999,7 @@ var composeArgs$1 = _composeArgs,
|
|
|
5031
4999
|
getHolder$1 = _getHolder,
|
|
5032
5000
|
reorder = _reorder,
|
|
5033
5001
|
replaceHolders$2 = _replaceHolders,
|
|
5034
|
-
root$
|
|
5002
|
+
root$7 = _root;
|
|
5035
5003
|
|
|
5036
5004
|
/** Used to compose bitmasks for function metadata. */
|
|
5037
5005
|
var WRAP_BIND_FLAG$3 = 1,
|
|
@@ -5106,7 +5074,7 @@ function createHybrid$2(func, bitmask, thisArg, partials, holders, partialsRight
|
|
|
5106
5074
|
if (isAry && ary < length) {
|
|
5107
5075
|
args.length = ary;
|
|
5108
5076
|
}
|
|
5109
|
-
if (this && this !== root$
|
|
5077
|
+
if (this && this !== root$7 && this instanceof wrapper) {
|
|
5110
5078
|
fn = Ctor || createCtor$2(fn);
|
|
5111
5079
|
}
|
|
5112
5080
|
return fn.apply(thisBinding, args);
|
|
@@ -5122,7 +5090,7 @@ var apply$2 = _apply,
|
|
|
5122
5090
|
createRecurry = _createRecurry,
|
|
5123
5091
|
getHolder = _getHolder,
|
|
5124
5092
|
replaceHolders$1 = _replaceHolders,
|
|
5125
|
-
root$
|
|
5093
|
+
root$6 = _root;
|
|
5126
5094
|
|
|
5127
5095
|
/**
|
|
5128
5096
|
* Creates a function that wraps `func` to enable currying.
|
|
@@ -5155,7 +5123,7 @@ function createCurry$1(func, bitmask, arity) {
|
|
|
5155
5123
|
func, bitmask, createHybrid$1, wrapper.placeholder, undefined,
|
|
5156
5124
|
args, holders, undefined, undefined, arity - length);
|
|
5157
5125
|
}
|
|
5158
|
-
var fn = (this && this !== root$
|
|
5126
|
+
var fn = (this && this !== root$6 && this instanceof wrapper) ? Ctor : func;
|
|
5159
5127
|
return apply$2(fn, this, args);
|
|
5160
5128
|
}
|
|
5161
5129
|
return wrapper;
|
|
@@ -5165,7 +5133,7 @@ var _createCurry = createCurry$1;
|
|
|
5165
5133
|
|
|
5166
5134
|
var apply$1 = _apply,
|
|
5167
5135
|
createCtor = _createCtor,
|
|
5168
|
-
root$
|
|
5136
|
+
root$5 = _root;
|
|
5169
5137
|
|
|
5170
5138
|
/** Used to compose bitmasks for function metadata. */
|
|
5171
5139
|
var WRAP_BIND_FLAG$2 = 1;
|
|
@@ -5192,7 +5160,7 @@ function createPartial$1(func, bitmask, thisArg, partials) {
|
|
|
5192
5160
|
leftIndex = -1,
|
|
5193
5161
|
leftLength = partials.length,
|
|
5194
5162
|
args = Array(leftLength + argsLength),
|
|
5195
|
-
fn = (this && this !== root$
|
|
5163
|
+
fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func;
|
|
5196
5164
|
|
|
5197
5165
|
while (++leftIndex < leftLength) {
|
|
5198
5166
|
args[leftIndex] = partials[leftIndex];
|
|
@@ -5370,7 +5338,7 @@ function isSymbol$6(value) {
|
|
|
5370
5338
|
var isSymbol_1 = isSymbol$6;
|
|
5371
5339
|
|
|
5372
5340
|
var baseTrim = _baseTrim,
|
|
5373
|
-
isObject$3 =
|
|
5341
|
+
isObject$3 = isObject_1,
|
|
5374
5342
|
isSymbol$5 = isSymbol_1;
|
|
5375
5343
|
|
|
5376
5344
|
/** Used as references for various `Number` constants. */
|
|
@@ -5651,40 +5619,32 @@ function ary(func, n, guard) {
|
|
|
5651
5619
|
|
|
5652
5620
|
var ary_1 = ary;
|
|
5653
5621
|
|
|
5654
|
-
var
|
|
5655
|
-
var hasRequired_baseAssignValue;
|
|
5622
|
+
var defineProperty = _defineProperty;
|
|
5656
5623
|
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
'writable': true
|
|
5678
|
-
});
|
|
5679
|
-
} else {
|
|
5680
|
-
object[key] = value;
|
|
5681
|
-
}
|
|
5682
|
-
}
|
|
5683
|
-
|
|
5684
|
-
_baseAssignValue = baseAssignValue;
|
|
5685
|
-
return _baseAssignValue;
|
|
5624
|
+
/**
|
|
5625
|
+
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
5626
|
+
* value checks.
|
|
5627
|
+
*
|
|
5628
|
+
* @private
|
|
5629
|
+
* @param {Object} object The object to modify.
|
|
5630
|
+
* @param {string} key The key of the property to assign.
|
|
5631
|
+
* @param {*} value The value to assign.
|
|
5632
|
+
*/
|
|
5633
|
+
function baseAssignValue$2(object, key, value) {
|
|
5634
|
+
if (key == '__proto__' && defineProperty) {
|
|
5635
|
+
defineProperty(object, key, {
|
|
5636
|
+
'configurable': true,
|
|
5637
|
+
'enumerable': true,
|
|
5638
|
+
'value': value,
|
|
5639
|
+
'writable': true
|
|
5640
|
+
});
|
|
5641
|
+
} else {
|
|
5642
|
+
object[key] = value;
|
|
5643
|
+
}
|
|
5686
5644
|
}
|
|
5687
5645
|
|
|
5646
|
+
var _baseAssignValue = baseAssignValue$2;
|
|
5647
|
+
|
|
5688
5648
|
/**
|
|
5689
5649
|
* Performs a
|
|
5690
5650
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -5732,14 +5692,14 @@ function requireEq () {
|
|
|
5732
5692
|
return eq_1;
|
|
5733
5693
|
}
|
|
5734
5694
|
|
|
5735
|
-
var baseAssignValue$1 =
|
|
5695
|
+
var baseAssignValue$1 = _baseAssignValue,
|
|
5736
5696
|
eq$1 = requireEq();
|
|
5737
5697
|
|
|
5738
5698
|
/** Used for built-in method references. */
|
|
5739
|
-
var objectProto$
|
|
5699
|
+
var objectProto$8 = Object.prototype;
|
|
5740
5700
|
|
|
5741
5701
|
/** Used to check objects for own properties. */
|
|
5742
|
-
var hasOwnProperty$
|
|
5702
|
+
var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
5743
5703
|
|
|
5744
5704
|
/**
|
|
5745
5705
|
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
@@ -5753,7 +5713,7 @@ var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
|
5753
5713
|
*/
|
|
5754
5714
|
function assignValue$2(object, key, value) {
|
|
5755
5715
|
var objValue = object[key];
|
|
5756
|
-
if (!(hasOwnProperty$
|
|
5716
|
+
if (!(hasOwnProperty$6.call(object, key) && eq$1(objValue, value)) ||
|
|
5757
5717
|
(value === undefined && !(key in object))) {
|
|
5758
5718
|
baseAssignValue$1(object, key, value);
|
|
5759
5719
|
}
|
|
@@ -5762,7 +5722,7 @@ function assignValue$2(object, key, value) {
|
|
|
5762
5722
|
var _assignValue = assignValue$2;
|
|
5763
5723
|
|
|
5764
5724
|
var assignValue$1 = _assignValue,
|
|
5765
|
-
baseAssignValue =
|
|
5725
|
+
baseAssignValue = _baseAssignValue;
|
|
5766
5726
|
|
|
5767
5727
|
/**
|
|
5768
5728
|
* Copies properties of `source` to `object`.
|
|
@@ -5812,26 +5772,18 @@ var _copyObject = copyObject$4;
|
|
|
5812
5772
|
* @returns {Array} Returns the array of results.
|
|
5813
5773
|
*/
|
|
5814
5774
|
|
|
5815
|
-
|
|
5816
|
-
var
|
|
5817
|
-
|
|
5818
|
-
function require_baseTimes () {
|
|
5819
|
-
if (hasRequired_baseTimes) return _baseTimes;
|
|
5820
|
-
hasRequired_baseTimes = 1;
|
|
5821
|
-
function baseTimes(n, iteratee) {
|
|
5822
|
-
var index = -1,
|
|
5823
|
-
result = Array(n);
|
|
5824
|
-
|
|
5825
|
-
while (++index < n) {
|
|
5826
|
-
result[index] = iteratee(index);
|
|
5827
|
-
}
|
|
5828
|
-
return result;
|
|
5829
|
-
}
|
|
5775
|
+
function baseTimes$1(n, iteratee) {
|
|
5776
|
+
var index = -1,
|
|
5777
|
+
result = Array(n);
|
|
5830
5778
|
|
|
5831
|
-
|
|
5832
|
-
|
|
5779
|
+
while (++index < n) {
|
|
5780
|
+
result[index] = iteratee(index);
|
|
5781
|
+
}
|
|
5782
|
+
return result;
|
|
5833
5783
|
}
|
|
5834
5784
|
|
|
5785
|
+
var _baseTimes = baseTimes$1;
|
|
5786
|
+
|
|
5835
5787
|
var _baseIsArguments;
|
|
5836
5788
|
var hasRequired_baseIsArguments;
|
|
5837
5789
|
|
|
@@ -5905,7 +5857,7 @@ function requireIsArguments () {
|
|
|
5905
5857
|
}
|
|
5906
5858
|
|
|
5907
5859
|
var isBufferExports = {};
|
|
5908
|
-
var isBuffer$
|
|
5860
|
+
var isBuffer$5 = {
|
|
5909
5861
|
get exports(){ return isBufferExports; },
|
|
5910
5862
|
set exports(v){ isBufferExports = v; },
|
|
5911
5863
|
};
|
|
@@ -5924,113 +5876,90 @@ var isBuffer$4 = {
|
|
|
5924
5876
|
* // => [false, false]
|
|
5925
5877
|
*/
|
|
5926
5878
|
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
function requireStubFalse () {
|
|
5931
|
-
if (hasRequiredStubFalse) return stubFalse_1;
|
|
5932
|
-
hasRequiredStubFalse = 1;
|
|
5933
|
-
function stubFalse() {
|
|
5934
|
-
return false;
|
|
5935
|
-
}
|
|
5936
|
-
|
|
5937
|
-
stubFalse_1 = stubFalse;
|
|
5938
|
-
return stubFalse_1;
|
|
5879
|
+
function stubFalse() {
|
|
5880
|
+
return false;
|
|
5939
5881
|
}
|
|
5940
5882
|
|
|
5941
|
-
var
|
|
5942
|
-
|
|
5943
|
-
function requireIsBuffer () {
|
|
5944
|
-
if (hasRequiredIsBuffer) return isBufferExports;
|
|
5945
|
-
hasRequiredIsBuffer = 1;
|
|
5946
|
-
(function (module, exports) {
|
|
5947
|
-
var root = _root,
|
|
5948
|
-
stubFalse = requireStubFalse();
|
|
5949
|
-
|
|
5950
|
-
/** Detect free variable `exports`. */
|
|
5951
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
5883
|
+
var stubFalse_1 = stubFalse;
|
|
5952
5884
|
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
5957
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
5958
|
-
|
|
5959
|
-
/** Built-in value references. */
|
|
5960
|
-
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
5961
|
-
|
|
5962
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
5963
|
-
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
5885
|
+
(function (module, exports) {
|
|
5886
|
+
var root = _root,
|
|
5887
|
+
stubFalse = stubFalse_1;
|
|
5964
5888
|
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
*
|
|
5968
|
-
* @static
|
|
5969
|
-
* @memberOf _
|
|
5970
|
-
* @since 4.3.0
|
|
5971
|
-
* @category Lang
|
|
5972
|
-
* @param {*} value The value to check.
|
|
5973
|
-
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
5974
|
-
* @example
|
|
5975
|
-
*
|
|
5976
|
-
* _.isBuffer(new Buffer(2));
|
|
5977
|
-
* // => true
|
|
5978
|
-
*
|
|
5979
|
-
* _.isBuffer(new Uint8Array(2));
|
|
5980
|
-
* // => false
|
|
5981
|
-
*/
|
|
5982
|
-
var isBuffer = nativeIsBuffer || stubFalse;
|
|
5889
|
+
/** Detect free variable `exports`. */
|
|
5890
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
5983
5891
|
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
return isBufferExports;
|
|
5987
|
-
}
|
|
5892
|
+
/** Detect free variable `module`. */
|
|
5893
|
+
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
5988
5894
|
|
|
5989
|
-
/**
|
|
5895
|
+
/** Detect the popular CommonJS extension `module.exports`. */
|
|
5896
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
5990
5897
|
|
|
5991
|
-
|
|
5992
|
-
var
|
|
5898
|
+
/** Built-in value references. */
|
|
5899
|
+
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
5993
5900
|
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
hasRequiredIsLength = 1;
|
|
5997
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
5901
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
5902
|
+
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
5998
5903
|
|
|
5999
5904
|
/**
|
|
6000
|
-
* Checks if `value` is a
|
|
6001
|
-
*
|
|
6002
|
-
* **Note:** This method is loosely based on
|
|
6003
|
-
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
5905
|
+
* Checks if `value` is a buffer.
|
|
6004
5906
|
*
|
|
6005
5907
|
* @static
|
|
6006
5908
|
* @memberOf _
|
|
6007
|
-
* @since 4.
|
|
5909
|
+
* @since 4.3.0
|
|
6008
5910
|
* @category Lang
|
|
6009
5911
|
* @param {*} value The value to check.
|
|
6010
|
-
* @returns {boolean} Returns `true` if `value` is a
|
|
5912
|
+
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
6011
5913
|
* @example
|
|
6012
5914
|
*
|
|
6013
|
-
* _.
|
|
5915
|
+
* _.isBuffer(new Buffer(2));
|
|
6014
5916
|
* // => true
|
|
6015
5917
|
*
|
|
6016
|
-
* _.
|
|
6017
|
-
* // => false
|
|
6018
|
-
*
|
|
6019
|
-
* _.isLength(Infinity);
|
|
6020
|
-
* // => false
|
|
6021
|
-
*
|
|
6022
|
-
* _.isLength('3');
|
|
5918
|
+
* _.isBuffer(new Uint8Array(2));
|
|
6023
5919
|
* // => false
|
|
6024
5920
|
*/
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
5921
|
+
var isBuffer = nativeIsBuffer || stubFalse;
|
|
5922
|
+
|
|
5923
|
+
module.exports = isBuffer;
|
|
5924
|
+
} (isBuffer$5, isBufferExports));
|
|
5925
|
+
|
|
5926
|
+
/** Used as references for various `Number` constants. */
|
|
6029
5927
|
|
|
6030
|
-
|
|
6031
|
-
|
|
5928
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
5929
|
+
|
|
5930
|
+
/**
|
|
5931
|
+
* Checks if `value` is a valid array-like length.
|
|
5932
|
+
*
|
|
5933
|
+
* **Note:** This method is loosely based on
|
|
5934
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
5935
|
+
*
|
|
5936
|
+
* @static
|
|
5937
|
+
* @memberOf _
|
|
5938
|
+
* @since 4.0.0
|
|
5939
|
+
* @category Lang
|
|
5940
|
+
* @param {*} value The value to check.
|
|
5941
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
5942
|
+
* @example
|
|
5943
|
+
*
|
|
5944
|
+
* _.isLength(3);
|
|
5945
|
+
* // => true
|
|
5946
|
+
*
|
|
5947
|
+
* _.isLength(Number.MIN_VALUE);
|
|
5948
|
+
* // => false
|
|
5949
|
+
*
|
|
5950
|
+
* _.isLength(Infinity);
|
|
5951
|
+
* // => false
|
|
5952
|
+
*
|
|
5953
|
+
* _.isLength('3');
|
|
5954
|
+
* // => false
|
|
5955
|
+
*/
|
|
5956
|
+
function isLength$2(value) {
|
|
5957
|
+
return typeof value == 'number' &&
|
|
5958
|
+
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
6032
5959
|
}
|
|
6033
5960
|
|
|
5961
|
+
var isLength_1 = isLength$2;
|
|
5962
|
+
|
|
6034
5963
|
var _baseIsTypedArray;
|
|
6035
5964
|
var hasRequired_baseIsTypedArray;
|
|
6036
5965
|
|
|
@@ -6038,7 +5967,7 @@ function require_baseIsTypedArray () {
|
|
|
6038
5967
|
if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
|
|
6039
5968
|
hasRequired_baseIsTypedArray = 1;
|
|
6040
5969
|
var baseGetTag = _baseGetTag,
|
|
6041
|
-
isLength =
|
|
5970
|
+
isLength = isLength_1,
|
|
6042
5971
|
isObjectLike = isObjectLike_1;
|
|
6043
5972
|
|
|
6044
5973
|
/** `Object#toString` result references. */
|
|
@@ -6108,67 +6037,52 @@ function require_baseIsTypedArray () {
|
|
|
6108
6037
|
* @returns {Function} Returns the new capped function.
|
|
6109
6038
|
*/
|
|
6110
6039
|
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
if (hasRequired_baseUnary) return _baseUnary;
|
|
6116
|
-
hasRequired_baseUnary = 1;
|
|
6117
|
-
function baseUnary(func) {
|
|
6118
|
-
return function(value) {
|
|
6119
|
-
return func(value);
|
|
6120
|
-
};
|
|
6121
|
-
}
|
|
6122
|
-
|
|
6123
|
-
_baseUnary = baseUnary;
|
|
6124
|
-
return _baseUnary;
|
|
6040
|
+
function baseUnary$2(func) {
|
|
6041
|
+
return function(value) {
|
|
6042
|
+
return func(value);
|
|
6043
|
+
};
|
|
6125
6044
|
}
|
|
6126
6045
|
|
|
6046
|
+
var _baseUnary = baseUnary$2;
|
|
6047
|
+
|
|
6127
6048
|
var _nodeUtilExports = {};
|
|
6128
6049
|
var _nodeUtil = {
|
|
6129
6050
|
get exports(){ return _nodeUtilExports; },
|
|
6130
6051
|
set exports(v){ _nodeUtilExports = v; },
|
|
6131
6052
|
};
|
|
6132
6053
|
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
function require_nodeUtil () {
|
|
6136
|
-
if (hasRequired_nodeUtil) return _nodeUtilExports;
|
|
6137
|
-
hasRequired_nodeUtil = 1;
|
|
6138
|
-
(function (module, exports) {
|
|
6139
|
-
var freeGlobal = _freeGlobal;
|
|
6054
|
+
(function (module, exports) {
|
|
6055
|
+
var freeGlobal = _freeGlobal;
|
|
6140
6056
|
|
|
6141
|
-
|
|
6142
|
-
|
|
6057
|
+
/** Detect free variable `exports`. */
|
|
6058
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
6143
6059
|
|
|
6144
|
-
|
|
6145
|
-
|
|
6060
|
+
/** Detect free variable `module`. */
|
|
6061
|
+
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
6146
6062
|
|
|
6147
|
-
|
|
6148
|
-
|
|
6063
|
+
/** Detect the popular CommonJS extension `module.exports`. */
|
|
6064
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
6149
6065
|
|
|
6150
|
-
|
|
6151
|
-
|
|
6066
|
+
/** Detect free variable `process` from Node.js. */
|
|
6067
|
+
var freeProcess = moduleExports && freeGlobal.process;
|
|
6152
6068
|
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6069
|
+
/** Used to access faster Node.js helpers. */
|
|
6070
|
+
var nodeUtil = (function() {
|
|
6071
|
+
try {
|
|
6072
|
+
// Use `util.types` for Node.js 10+.
|
|
6073
|
+
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
|
6158
6074
|
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6075
|
+
if (types) {
|
|
6076
|
+
return types;
|
|
6077
|
+
}
|
|
6162
6078
|
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6079
|
+
// Legacy `process.binding('util')` for Node.js < 10.
|
|
6080
|
+
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
|
6081
|
+
} catch (e) {}
|
|
6082
|
+
}());
|
|
6167
6083
|
|
|
6168
|
-
|
|
6084
|
+
module.exports = nodeUtil;
|
|
6169
6085
|
} (_nodeUtil, _nodeUtilExports));
|
|
6170
|
-
return _nodeUtilExports;
|
|
6171
|
-
}
|
|
6172
6086
|
|
|
6173
6087
|
var isTypedArray_1;
|
|
6174
6088
|
var hasRequiredIsTypedArray;
|
|
@@ -6177,8 +6091,8 @@ function requireIsTypedArray () {
|
|
|
6177
6091
|
if (hasRequiredIsTypedArray) return isTypedArray_1;
|
|
6178
6092
|
hasRequiredIsTypedArray = 1;
|
|
6179
6093
|
var baseIsTypedArray = require_baseIsTypedArray(),
|
|
6180
|
-
baseUnary =
|
|
6181
|
-
nodeUtil =
|
|
6094
|
+
baseUnary = _baseUnary,
|
|
6095
|
+
nodeUtil = _nodeUtilExports;
|
|
6182
6096
|
|
|
6183
6097
|
/* Node.js helper references. */
|
|
6184
6098
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
@@ -6206,64 +6120,56 @@ function requireIsTypedArray () {
|
|
|
6206
6120
|
return isTypedArray_1;
|
|
6207
6121
|
}
|
|
6208
6122
|
|
|
6209
|
-
var
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
var baseTimes = require_baseTimes(),
|
|
6216
|
-
isArguments = requireIsArguments(),
|
|
6217
|
-
isArray = isArray_1,
|
|
6218
|
-
isBuffer = requireIsBuffer(),
|
|
6219
|
-
isIndex = require_isIndex(),
|
|
6220
|
-
isTypedArray = requireIsTypedArray();
|
|
6123
|
+
var baseTimes = _baseTimes,
|
|
6124
|
+
isArguments$2 = requireIsArguments(),
|
|
6125
|
+
isArray$f = isArray_1,
|
|
6126
|
+
isBuffer$4 = isBufferExports,
|
|
6127
|
+
isIndex$1 = _isIndex,
|
|
6128
|
+
isTypedArray$1 = requireIsTypedArray();
|
|
6221
6129
|
|
|
6222
|
-
|
|
6223
|
-
|
|
6130
|
+
/** Used for built-in method references. */
|
|
6131
|
+
var objectProto$7 = Object.prototype;
|
|
6224
6132
|
|
|
6225
|
-
|
|
6226
|
-
|
|
6133
|
+
/** Used to check objects for own properties. */
|
|
6134
|
+
var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
6227
6135
|
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
for (var key in value) {
|
|
6246
|
-
if ((inherited || hasOwnProperty.call(value, key)) &&
|
|
6247
|
-
!(skipIndexes && (
|
|
6248
|
-
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
6249
|
-
key == 'length' ||
|
|
6250
|
-
// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
6251
|
-
(isBuff && (key == 'offset' || key == 'parent')) ||
|
|
6252
|
-
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
6253
|
-
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
|
6254
|
-
// Skip index properties.
|
|
6255
|
-
isIndex(key, length)
|
|
6256
|
-
))) {
|
|
6257
|
-
result.push(key);
|
|
6258
|
-
}
|
|
6259
|
-
}
|
|
6260
|
-
return result;
|
|
6261
|
-
}
|
|
6136
|
+
/**
|
|
6137
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
6138
|
+
*
|
|
6139
|
+
* @private
|
|
6140
|
+
* @param {*} value The value to query.
|
|
6141
|
+
* @param {boolean} inherited Specify returning inherited property names.
|
|
6142
|
+
* @returns {Array} Returns the array of property names.
|
|
6143
|
+
*/
|
|
6144
|
+
function arrayLikeKeys$1(value, inherited) {
|
|
6145
|
+
var isArr = isArray$f(value),
|
|
6146
|
+
isArg = !isArr && isArguments$2(value),
|
|
6147
|
+
isBuff = !isArr && !isArg && isBuffer$4(value),
|
|
6148
|
+
isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
|
|
6149
|
+
skipIndexes = isArr || isArg || isBuff || isType,
|
|
6150
|
+
result = skipIndexes ? baseTimes(value.length, String) : [],
|
|
6151
|
+
length = result.length;
|
|
6262
6152
|
|
|
6263
|
-
|
|
6264
|
-
|
|
6153
|
+
for (var key in value) {
|
|
6154
|
+
if ((inherited || hasOwnProperty$5.call(value, key)) &&
|
|
6155
|
+
!(skipIndexes && (
|
|
6156
|
+
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
6157
|
+
key == 'length' ||
|
|
6158
|
+
// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
6159
|
+
(isBuff && (key == 'offset' || key == 'parent')) ||
|
|
6160
|
+
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
6161
|
+
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
|
6162
|
+
// Skip index properties.
|
|
6163
|
+
isIndex$1(key, length)
|
|
6164
|
+
))) {
|
|
6165
|
+
result.push(key);
|
|
6166
|
+
}
|
|
6167
|
+
}
|
|
6168
|
+
return result;
|
|
6265
6169
|
}
|
|
6266
6170
|
|
|
6171
|
+
var _arrayLikeKeys = arrayLikeKeys$1;
|
|
6172
|
+
|
|
6267
6173
|
/** Used for built-in method references. */
|
|
6268
6174
|
|
|
6269
6175
|
var objectProto$6 = Object.prototype;
|
|
@@ -6275,14 +6181,14 @@ var objectProto$6 = Object.prototype;
|
|
|
6275
6181
|
* @param {*} value The value to check.
|
|
6276
6182
|
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
6277
6183
|
*/
|
|
6278
|
-
function isPrototype$
|
|
6184
|
+
function isPrototype$2(value) {
|
|
6279
6185
|
var Ctor = value && value.constructor,
|
|
6280
6186
|
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$6;
|
|
6281
6187
|
|
|
6282
6188
|
return value === proto;
|
|
6283
6189
|
}
|
|
6284
6190
|
|
|
6285
|
-
var _isPrototype = isPrototype$
|
|
6191
|
+
var _isPrototype = isPrototype$2;
|
|
6286
6192
|
|
|
6287
6193
|
/**
|
|
6288
6194
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
@@ -6308,7 +6214,7 @@ var nativeKeys$1 = overArg$1(Object.keys, Object);
|
|
|
6308
6214
|
|
|
6309
6215
|
var _nativeKeys = nativeKeys$1;
|
|
6310
6216
|
|
|
6311
|
-
var isPrototype = _isPrototype,
|
|
6217
|
+
var isPrototype$1 = _isPrototype,
|
|
6312
6218
|
nativeKeys = _nativeKeys;
|
|
6313
6219
|
|
|
6314
6220
|
/** Used for built-in method references. */
|
|
@@ -6325,7 +6231,7 @@ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
|
6325
6231
|
* @returns {Array} Returns the array of property names.
|
|
6326
6232
|
*/
|
|
6327
6233
|
function baseKeys$1(object) {
|
|
6328
|
-
if (!isPrototype(object)) {
|
|
6234
|
+
if (!isPrototype$1(object)) {
|
|
6329
6235
|
return nativeKeys(object);
|
|
6330
6236
|
}
|
|
6331
6237
|
var result = [];
|
|
@@ -6339,51 +6245,43 @@ function baseKeys$1(object) {
|
|
|
6339
6245
|
|
|
6340
6246
|
var _baseKeys = baseKeys$1;
|
|
6341
6247
|
|
|
6342
|
-
var
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
function requireIsArrayLike () {
|
|
6346
|
-
if (hasRequiredIsArrayLike) return isArrayLike_1;
|
|
6347
|
-
hasRequiredIsArrayLike = 1;
|
|
6348
|
-
var isFunction = isFunction_1,
|
|
6349
|
-
isLength = requireIsLength();
|
|
6350
|
-
|
|
6351
|
-
/**
|
|
6352
|
-
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
6353
|
-
* not a function and has a `value.length` that's an integer greater than or
|
|
6354
|
-
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
6355
|
-
*
|
|
6356
|
-
* @static
|
|
6357
|
-
* @memberOf _
|
|
6358
|
-
* @since 4.0.0
|
|
6359
|
-
* @category Lang
|
|
6360
|
-
* @param {*} value The value to check.
|
|
6361
|
-
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
6362
|
-
* @example
|
|
6363
|
-
*
|
|
6364
|
-
* _.isArrayLike([1, 2, 3]);
|
|
6365
|
-
* // => true
|
|
6366
|
-
*
|
|
6367
|
-
* _.isArrayLike(document.body.children);
|
|
6368
|
-
* // => true
|
|
6369
|
-
*
|
|
6370
|
-
* _.isArrayLike('abc');
|
|
6371
|
-
* // => true
|
|
6372
|
-
*
|
|
6373
|
-
* _.isArrayLike(_.noop);
|
|
6374
|
-
* // => false
|
|
6375
|
-
*/
|
|
6376
|
-
function isArrayLike(value) {
|
|
6377
|
-
return value != null && isLength(value.length) && !isFunction(value);
|
|
6378
|
-
}
|
|
6248
|
+
var isFunction$1 = isFunction_1,
|
|
6249
|
+
isLength$1 = isLength_1;
|
|
6379
6250
|
|
|
6380
|
-
|
|
6381
|
-
|
|
6251
|
+
/**
|
|
6252
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
6253
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
6254
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
6255
|
+
*
|
|
6256
|
+
* @static
|
|
6257
|
+
* @memberOf _
|
|
6258
|
+
* @since 4.0.0
|
|
6259
|
+
* @category Lang
|
|
6260
|
+
* @param {*} value The value to check.
|
|
6261
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
6262
|
+
* @example
|
|
6263
|
+
*
|
|
6264
|
+
* _.isArrayLike([1, 2, 3]);
|
|
6265
|
+
* // => true
|
|
6266
|
+
*
|
|
6267
|
+
* _.isArrayLike(document.body.children);
|
|
6268
|
+
* // => true
|
|
6269
|
+
*
|
|
6270
|
+
* _.isArrayLike('abc');
|
|
6271
|
+
* // => true
|
|
6272
|
+
*
|
|
6273
|
+
* _.isArrayLike(_.noop);
|
|
6274
|
+
* // => false
|
|
6275
|
+
*/
|
|
6276
|
+
function isArrayLike$1(value) {
|
|
6277
|
+
return value != null && isLength$1(value.length) && !isFunction$1(value);
|
|
6382
6278
|
}
|
|
6383
6279
|
|
|
6384
|
-
var
|
|
6280
|
+
var isArrayLike_1 = isArrayLike$1;
|
|
6281
|
+
|
|
6282
|
+
var arrayLikeKeys = _arrayLikeKeys,
|
|
6385
6283
|
baseKeys = _baseKeys,
|
|
6386
|
-
isArrayLike =
|
|
6284
|
+
isArrayLike = isArrayLike_1;
|
|
6387
6285
|
|
|
6388
6286
|
/**
|
|
6389
6287
|
* Creates an array of the own enumerable property names of `object`.
|
|
@@ -6764,10 +6662,10 @@ function require_stackHas () {
|
|
|
6764
6662
|
}
|
|
6765
6663
|
|
|
6766
6664
|
var getNative$3 = _getNative,
|
|
6767
|
-
root$
|
|
6665
|
+
root$4 = _root;
|
|
6768
6666
|
|
|
6769
6667
|
/* Built-in method references that are verified to be native. */
|
|
6770
|
-
var Map$2 = getNative$3(root$
|
|
6668
|
+
var Map$2 = getNative$3(root$4, 'Map');
|
|
6771
6669
|
|
|
6772
6670
|
var _Map = Map$2;
|
|
6773
6671
|
|
|
@@ -7327,7 +7225,7 @@ var hasRequired_baseKeysIn;
|
|
|
7327
7225
|
function require_baseKeysIn () {
|
|
7328
7226
|
if (hasRequired_baseKeysIn) return _baseKeysIn;
|
|
7329
7227
|
hasRequired_baseKeysIn = 1;
|
|
7330
|
-
var isObject =
|
|
7228
|
+
var isObject = isObject_1,
|
|
7331
7229
|
isPrototype = _isPrototype,
|
|
7332
7230
|
nativeKeysIn = require_nativeKeysIn();
|
|
7333
7231
|
|
|
@@ -7369,9 +7267,9 @@ var hasRequiredKeysIn;
|
|
|
7369
7267
|
function requireKeysIn () {
|
|
7370
7268
|
if (hasRequiredKeysIn) return keysIn_1;
|
|
7371
7269
|
hasRequiredKeysIn = 1;
|
|
7372
|
-
var arrayLikeKeys =
|
|
7270
|
+
var arrayLikeKeys = _arrayLikeKeys,
|
|
7373
7271
|
baseKeysIn = require_baseKeysIn(),
|
|
7374
|
-
isArrayLike =
|
|
7272
|
+
isArrayLike = isArrayLike_1;
|
|
7375
7273
|
|
|
7376
7274
|
/**
|
|
7377
7275
|
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
@@ -7428,50 +7326,43 @@ var _cloneBuffer = {
|
|
|
7428
7326
|
set exports(v){ _cloneBufferExports = v; },
|
|
7429
7327
|
};
|
|
7430
7328
|
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
function require_cloneBuffer () {
|
|
7434
|
-
if (hasRequired_cloneBuffer) return _cloneBufferExports;
|
|
7435
|
-
hasRequired_cloneBuffer = 1;
|
|
7436
|
-
(function (module, exports) {
|
|
7437
|
-
var root = _root;
|
|
7438
|
-
|
|
7439
|
-
/** Detect free variable `exports`. */
|
|
7440
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
7441
|
-
|
|
7442
|
-
/** Detect free variable `module`. */
|
|
7443
|
-
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
7444
|
-
|
|
7445
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
7446
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
7447
|
-
|
|
7448
|
-
/** Built-in value references. */
|
|
7449
|
-
var Buffer = moduleExports ? root.Buffer : undefined,
|
|
7450
|
-
allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
|
|
7451
|
-
|
|
7452
|
-
/**
|
|
7453
|
-
* Creates a clone of `buffer`.
|
|
7454
|
-
*
|
|
7455
|
-
* @private
|
|
7456
|
-
* @param {Buffer} buffer The buffer to clone.
|
|
7457
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
7458
|
-
* @returns {Buffer} Returns the cloned buffer.
|
|
7459
|
-
*/
|
|
7460
|
-
function cloneBuffer(buffer, isDeep) {
|
|
7461
|
-
if (isDeep) {
|
|
7462
|
-
return buffer.slice();
|
|
7463
|
-
}
|
|
7464
|
-
var length = buffer.length,
|
|
7465
|
-
result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
7466
|
-
|
|
7467
|
-
buffer.copy(result);
|
|
7468
|
-
return result;
|
|
7469
|
-
}
|
|
7329
|
+
(function (module, exports) {
|
|
7330
|
+
var root = _root;
|
|
7470
7331
|
|
|
7471
|
-
|
|
7332
|
+
/** Detect free variable `exports`. */
|
|
7333
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
7334
|
+
|
|
7335
|
+
/** Detect free variable `module`. */
|
|
7336
|
+
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
7337
|
+
|
|
7338
|
+
/** Detect the popular CommonJS extension `module.exports`. */
|
|
7339
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
7340
|
+
|
|
7341
|
+
/** Built-in value references. */
|
|
7342
|
+
var Buffer = moduleExports ? root.Buffer : undefined,
|
|
7343
|
+
allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
|
|
7344
|
+
|
|
7345
|
+
/**
|
|
7346
|
+
* Creates a clone of `buffer`.
|
|
7347
|
+
*
|
|
7348
|
+
* @private
|
|
7349
|
+
* @param {Buffer} buffer The buffer to clone.
|
|
7350
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
7351
|
+
* @returns {Buffer} Returns the cloned buffer.
|
|
7352
|
+
*/
|
|
7353
|
+
function cloneBuffer(buffer, isDeep) {
|
|
7354
|
+
if (isDeep) {
|
|
7355
|
+
return buffer.slice();
|
|
7356
|
+
}
|
|
7357
|
+
var length = buffer.length,
|
|
7358
|
+
result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
7359
|
+
|
|
7360
|
+
buffer.copy(result);
|
|
7361
|
+
return result;
|
|
7362
|
+
}
|
|
7363
|
+
|
|
7364
|
+
module.exports = cloneBuffer;
|
|
7472
7365
|
} (_cloneBuffer, _cloneBufferExports));
|
|
7473
|
-
return _cloneBufferExports;
|
|
7474
|
-
}
|
|
7475
7366
|
|
|
7476
7367
|
/**
|
|
7477
7368
|
* A specialized version of `_.filter` for arrays without support for
|
|
@@ -7598,12 +7489,12 @@ var _arrayPush = arrayPush$3;
|
|
|
7598
7489
|
var overArg = _overArg;
|
|
7599
7490
|
|
|
7600
7491
|
/** Built-in value references. */
|
|
7601
|
-
var getPrototype$
|
|
7492
|
+
var getPrototype$3 = overArg(Object.getPrototypeOf, Object);
|
|
7602
7493
|
|
|
7603
|
-
var _getPrototype = getPrototype$
|
|
7494
|
+
var _getPrototype = getPrototype$3;
|
|
7604
7495
|
|
|
7605
7496
|
var arrayPush$2 = _arrayPush,
|
|
7606
|
-
getPrototype$
|
|
7497
|
+
getPrototype$2 = _getPrototype,
|
|
7607
7498
|
getSymbols$1 = _getSymbols,
|
|
7608
7499
|
stubArray = stubArray_1;
|
|
7609
7500
|
|
|
@@ -7621,7 +7512,7 @@ var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
|
|
|
7621
7512
|
var result = [];
|
|
7622
7513
|
while (object) {
|
|
7623
7514
|
arrayPush$2(result, getSymbols$1(object));
|
|
7624
|
-
object = getPrototype$
|
|
7515
|
+
object = getPrototype$2(object);
|
|
7625
7516
|
}
|
|
7626
7517
|
return result;
|
|
7627
7518
|
};
|
|
@@ -7702,26 +7593,26 @@ function getAllKeysIn$1(object) {
|
|
|
7702
7593
|
var _getAllKeysIn = getAllKeysIn$1;
|
|
7703
7594
|
|
|
7704
7595
|
var getNative$2 = _getNative,
|
|
7705
|
-
root$
|
|
7596
|
+
root$3 = _root;
|
|
7706
7597
|
|
|
7707
7598
|
/* Built-in method references that are verified to be native. */
|
|
7708
|
-
var DataView$2 = getNative$2(root$
|
|
7599
|
+
var DataView$2 = getNative$2(root$3, 'DataView');
|
|
7709
7600
|
|
|
7710
7601
|
var _DataView = DataView$2;
|
|
7711
7602
|
|
|
7712
7603
|
var getNative$1 = _getNative,
|
|
7713
|
-
root$
|
|
7604
|
+
root$2 = _root;
|
|
7714
7605
|
|
|
7715
7606
|
/* Built-in method references that are verified to be native. */
|
|
7716
|
-
var Promise$2 = getNative$1(root$
|
|
7607
|
+
var Promise$2 = getNative$1(root$2, 'Promise');
|
|
7717
7608
|
|
|
7718
7609
|
var _Promise = Promise$2;
|
|
7719
7610
|
|
|
7720
7611
|
var getNative = _getNative,
|
|
7721
|
-
root = _root;
|
|
7612
|
+
root$1 = _root;
|
|
7722
7613
|
|
|
7723
7614
|
/* Built-in method references that are verified to be native. */
|
|
7724
|
-
var Set$2 = getNative(root, 'Set');
|
|
7615
|
+
var Set$2 = getNative(root$1, 'Set');
|
|
7725
7616
|
|
|
7726
7617
|
var _Set = Set$2;
|
|
7727
7618
|
|
|
@@ -7812,47 +7703,31 @@ function initCloneArray$1(array) {
|
|
|
7812
7703
|
|
|
7813
7704
|
var _initCloneArray = initCloneArray$1;
|
|
7814
7705
|
|
|
7815
|
-
var
|
|
7816
|
-
var hasRequired_Uint8Array;
|
|
7817
|
-
|
|
7818
|
-
function require_Uint8Array () {
|
|
7819
|
-
if (hasRequired_Uint8Array) return _Uint8Array;
|
|
7820
|
-
hasRequired_Uint8Array = 1;
|
|
7821
|
-
var root = _root;
|
|
7822
|
-
|
|
7823
|
-
/** Built-in value references. */
|
|
7824
|
-
var Uint8Array = root.Uint8Array;
|
|
7825
|
-
|
|
7826
|
-
_Uint8Array = Uint8Array;
|
|
7827
|
-
return _Uint8Array;
|
|
7828
|
-
}
|
|
7706
|
+
var root = _root;
|
|
7829
7707
|
|
|
7830
|
-
|
|
7831
|
-
var
|
|
7708
|
+
/** Built-in value references. */
|
|
7709
|
+
var Uint8Array$3 = root.Uint8Array;
|
|
7832
7710
|
|
|
7833
|
-
|
|
7834
|
-
if (hasRequired_cloneArrayBuffer) return _cloneArrayBuffer;
|
|
7835
|
-
hasRequired_cloneArrayBuffer = 1;
|
|
7836
|
-
var Uint8Array = require_Uint8Array();
|
|
7711
|
+
var _Uint8Array = Uint8Array$3;
|
|
7837
7712
|
|
|
7838
|
-
|
|
7839
|
-
* Creates a clone of `arrayBuffer`.
|
|
7840
|
-
*
|
|
7841
|
-
* @private
|
|
7842
|
-
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
7843
|
-
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
7844
|
-
*/
|
|
7845
|
-
function cloneArrayBuffer(arrayBuffer) {
|
|
7846
|
-
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
7847
|
-
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
7848
|
-
return result;
|
|
7849
|
-
}
|
|
7713
|
+
var Uint8Array$2 = _Uint8Array;
|
|
7850
7714
|
|
|
7851
|
-
|
|
7852
|
-
|
|
7715
|
+
/**
|
|
7716
|
+
* Creates a clone of `arrayBuffer`.
|
|
7717
|
+
*
|
|
7718
|
+
* @private
|
|
7719
|
+
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
7720
|
+
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
7721
|
+
*/
|
|
7722
|
+
function cloneArrayBuffer$2(arrayBuffer) {
|
|
7723
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
7724
|
+
new Uint8Array$2(result).set(new Uint8Array$2(arrayBuffer));
|
|
7725
|
+
return result;
|
|
7853
7726
|
}
|
|
7854
7727
|
|
|
7855
|
-
var
|
|
7728
|
+
var _cloneArrayBuffer = cloneArrayBuffer$2;
|
|
7729
|
+
|
|
7730
|
+
var cloneArrayBuffer$1 = _cloneArrayBuffer;
|
|
7856
7731
|
|
|
7857
7732
|
/**
|
|
7858
7733
|
* Creates a clone of `dataView`.
|
|
@@ -7913,7 +7788,7 @@ var hasRequired_cloneTypedArray;
|
|
|
7913
7788
|
function require_cloneTypedArray () {
|
|
7914
7789
|
if (hasRequired_cloneTypedArray) return _cloneTypedArray;
|
|
7915
7790
|
hasRequired_cloneTypedArray = 1;
|
|
7916
|
-
var cloneArrayBuffer =
|
|
7791
|
+
var cloneArrayBuffer = _cloneArrayBuffer;
|
|
7917
7792
|
|
|
7918
7793
|
/**
|
|
7919
7794
|
* Creates a clone of `typedArray`.
|
|
@@ -7932,7 +7807,7 @@ function require_cloneTypedArray () {
|
|
|
7932
7807
|
return _cloneTypedArray;
|
|
7933
7808
|
}
|
|
7934
7809
|
|
|
7935
|
-
var cloneArrayBuffer =
|
|
7810
|
+
var cloneArrayBuffer = _cloneArrayBuffer,
|
|
7936
7811
|
cloneDataView = _cloneDataView,
|
|
7937
7812
|
cloneRegExp = _cloneRegExp,
|
|
7938
7813
|
cloneSymbol = _cloneSymbol,
|
|
@@ -8010,33 +7885,25 @@ function initCloneByTag$1(object, tag, isDeep) {
|
|
|
8010
7885
|
|
|
8011
7886
|
var _initCloneByTag = initCloneByTag$1;
|
|
8012
7887
|
|
|
8013
|
-
var
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
function require_initCloneObject () {
|
|
8017
|
-
if (hasRequired_initCloneObject) return _initCloneObject;
|
|
8018
|
-
hasRequired_initCloneObject = 1;
|
|
8019
|
-
var baseCreate = require_baseCreate(),
|
|
8020
|
-
getPrototype = _getPrototype,
|
|
8021
|
-
isPrototype = _isPrototype;
|
|
8022
|
-
|
|
8023
|
-
/**
|
|
8024
|
-
* Initializes an object clone.
|
|
8025
|
-
*
|
|
8026
|
-
* @private
|
|
8027
|
-
* @param {Object} object The object to clone.
|
|
8028
|
-
* @returns {Object} Returns the initialized clone.
|
|
8029
|
-
*/
|
|
8030
|
-
function initCloneObject(object) {
|
|
8031
|
-
return (typeof object.constructor == 'function' && !isPrototype(object))
|
|
8032
|
-
? baseCreate(getPrototype(object))
|
|
8033
|
-
: {};
|
|
8034
|
-
}
|
|
7888
|
+
var baseCreate = _baseCreate,
|
|
7889
|
+
getPrototype$1 = _getPrototype,
|
|
7890
|
+
isPrototype = _isPrototype;
|
|
8035
7891
|
|
|
8036
|
-
|
|
8037
|
-
|
|
7892
|
+
/**
|
|
7893
|
+
* Initializes an object clone.
|
|
7894
|
+
*
|
|
7895
|
+
* @private
|
|
7896
|
+
* @param {Object} object The object to clone.
|
|
7897
|
+
* @returns {Object} Returns the initialized clone.
|
|
7898
|
+
*/
|
|
7899
|
+
function initCloneObject$1(object) {
|
|
7900
|
+
return (typeof object.constructor == 'function' && !isPrototype(object))
|
|
7901
|
+
? baseCreate(getPrototype$1(object))
|
|
7902
|
+
: {};
|
|
8038
7903
|
}
|
|
8039
7904
|
|
|
7905
|
+
var _initCloneObject = initCloneObject$1;
|
|
7906
|
+
|
|
8040
7907
|
var getTag$4 = _getTag,
|
|
8041
7908
|
isObjectLike$5 = isObjectLike_1;
|
|
8042
7909
|
|
|
@@ -8057,8 +7924,8 @@ function baseIsMap$1(value) {
|
|
|
8057
7924
|
var _baseIsMap = baseIsMap$1;
|
|
8058
7925
|
|
|
8059
7926
|
var baseIsMap = _baseIsMap,
|
|
8060
|
-
baseUnary$1 =
|
|
8061
|
-
nodeUtil$1 =
|
|
7927
|
+
baseUnary$1 = _baseUnary,
|
|
7928
|
+
nodeUtil$1 = _nodeUtilExports;
|
|
8062
7929
|
|
|
8063
7930
|
/* Node.js helper references. */
|
|
8064
7931
|
var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
|
|
@@ -8104,8 +7971,8 @@ function baseIsSet$1(value) {
|
|
|
8104
7971
|
var _baseIsSet = baseIsSet$1;
|
|
8105
7972
|
|
|
8106
7973
|
var baseIsSet = _baseIsSet,
|
|
8107
|
-
baseUnary =
|
|
8108
|
-
nodeUtil =
|
|
7974
|
+
baseUnary = _baseUnary,
|
|
7975
|
+
nodeUtil = _nodeUtilExports;
|
|
8109
7976
|
|
|
8110
7977
|
/* Node.js helper references. */
|
|
8111
7978
|
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
@@ -8136,7 +8003,7 @@ var Stack$2 = require_Stack(),
|
|
|
8136
8003
|
assignValue = _assignValue,
|
|
8137
8004
|
baseAssign = _baseAssign,
|
|
8138
8005
|
baseAssignIn = _baseAssignIn,
|
|
8139
|
-
cloneBuffer =
|
|
8006
|
+
cloneBuffer = _cloneBufferExports,
|
|
8140
8007
|
copyArray$1 = _copyArray,
|
|
8141
8008
|
copySymbols = _copySymbols,
|
|
8142
8009
|
copySymbolsIn = _copySymbolsIn,
|
|
@@ -8145,11 +8012,11 @@ var Stack$2 = require_Stack(),
|
|
|
8145
8012
|
getTag$2 = _getTag,
|
|
8146
8013
|
initCloneArray = _initCloneArray,
|
|
8147
8014
|
initCloneByTag = _initCloneByTag,
|
|
8148
|
-
initCloneObject =
|
|
8015
|
+
initCloneObject = _initCloneObject,
|
|
8149
8016
|
isArray$d = isArray_1,
|
|
8150
|
-
isBuffer$3 =
|
|
8017
|
+
isBuffer$3 = isBufferExports,
|
|
8151
8018
|
isMap$1 = isMap_1,
|
|
8152
|
-
isObject$2 =
|
|
8019
|
+
isObject$2 = isObject_1,
|
|
8153
8020
|
isSet$1 = isSet_1,
|
|
8154
8021
|
keys$1 = keys_1,
|
|
8155
8022
|
keysIn = requireKeysIn();
|
|
@@ -8753,7 +8620,7 @@ function setToArray$1(set) {
|
|
|
8753
8620
|
var _setToArray = setToArray$1;
|
|
8754
8621
|
|
|
8755
8622
|
var Symbol$3 = _Symbol,
|
|
8756
|
-
Uint8Array$1 =
|
|
8623
|
+
Uint8Array$1 = _Uint8Array,
|
|
8757
8624
|
eq = requireEq(),
|
|
8758
8625
|
equalArrays$1 = _equalArrays,
|
|
8759
8626
|
mapToArray = _mapToArray,
|
|
@@ -8962,7 +8829,7 @@ var Stack$1 = require_Stack(),
|
|
|
8962
8829
|
equalObjects = _equalObjects,
|
|
8963
8830
|
getTag = _getTag,
|
|
8964
8831
|
isArray$c = isArray_1,
|
|
8965
|
-
isBuffer$2 =
|
|
8832
|
+
isBuffer$2 = isBufferExports,
|
|
8966
8833
|
isTypedArray = requireIsTypedArray();
|
|
8967
8834
|
|
|
8968
8835
|
/** Used to compose bitmasks for value comparisons. */
|
|
@@ -9132,7 +8999,7 @@ function baseIsMatch$1(object, source, matchData, customizer) {
|
|
|
9132
8999
|
|
|
9133
9000
|
var _baseIsMatch = baseIsMatch$1;
|
|
9134
9001
|
|
|
9135
|
-
var isObject$1 =
|
|
9002
|
+
var isObject$1 = isObject_1;
|
|
9136
9003
|
|
|
9137
9004
|
/**
|
|
9138
9005
|
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
|
|
@@ -9588,8 +9455,8 @@ var _baseHasIn = baseHasIn$1;
|
|
|
9588
9455
|
var castPath = _castPath,
|
|
9589
9456
|
isArguments$1 = requireIsArguments(),
|
|
9590
9457
|
isArray$8 = isArray_1,
|
|
9591
|
-
isIndex =
|
|
9592
|
-
isLength =
|
|
9458
|
+
isIndex = _isIndex,
|
|
9459
|
+
isLength = isLength_1,
|
|
9593
9460
|
toKey$3 = _toKey;
|
|
9594
9461
|
|
|
9595
9462
|
/**
|
|
@@ -10093,7 +9960,7 @@ var hasRequired_assignMergeValue;
|
|
|
10093
9960
|
function require_assignMergeValue () {
|
|
10094
9961
|
if (hasRequired_assignMergeValue) return _assignMergeValue;
|
|
10095
9962
|
hasRequired_assignMergeValue = 1;
|
|
10096
|
-
var baseAssignValue =
|
|
9963
|
+
var baseAssignValue = _baseAssignValue,
|
|
10097
9964
|
eq = requireEq();
|
|
10098
9965
|
|
|
10099
9966
|
/**
|
|
@@ -10182,7 +10049,7 @@ var hasRequiredIsArrayLikeObject;
|
|
|
10182
10049
|
function requireIsArrayLikeObject () {
|
|
10183
10050
|
if (hasRequiredIsArrayLikeObject) return isArrayLikeObject_1;
|
|
10184
10051
|
hasRequiredIsArrayLikeObject = 1;
|
|
10185
|
-
var isArrayLike =
|
|
10052
|
+
var isArrayLike = isArrayLike_1,
|
|
10186
10053
|
isObjectLike = isObjectLike_1;
|
|
10187
10054
|
|
|
10188
10055
|
/**
|
|
@@ -10297,16 +10164,16 @@ function require_baseMergeDeep () {
|
|
|
10297
10164
|
if (hasRequired_baseMergeDeep) return _baseMergeDeep;
|
|
10298
10165
|
hasRequired_baseMergeDeep = 1;
|
|
10299
10166
|
var assignMergeValue = require_assignMergeValue(),
|
|
10300
|
-
cloneBuffer =
|
|
10167
|
+
cloneBuffer = _cloneBufferExports,
|
|
10301
10168
|
cloneTypedArray = require_cloneTypedArray(),
|
|
10302
10169
|
copyArray = _copyArray,
|
|
10303
|
-
initCloneObject =
|
|
10170
|
+
initCloneObject = _initCloneObject,
|
|
10304
10171
|
isArguments = requireIsArguments(),
|
|
10305
10172
|
isArray = isArray_1,
|
|
10306
10173
|
isArrayLikeObject = requireIsArrayLikeObject(),
|
|
10307
|
-
isBuffer =
|
|
10174
|
+
isBuffer = isBufferExports,
|
|
10308
10175
|
isFunction = isFunction_1,
|
|
10309
|
-
isObject =
|
|
10176
|
+
isObject = isObject_1,
|
|
10310
10177
|
isPlainObject = isPlainObject_1,
|
|
10311
10178
|
isTypedArray = requireIsTypedArray(),
|
|
10312
10179
|
safeGet = require_safeGet(),
|
|
@@ -10403,7 +10270,7 @@ function require_baseMerge () {
|
|
|
10403
10270
|
assignMergeValue = require_assignMergeValue(),
|
|
10404
10271
|
baseFor = require_baseFor(),
|
|
10405
10272
|
baseMergeDeep = require_baseMergeDeep(),
|
|
10406
|
-
isObject =
|
|
10273
|
+
isObject = isObject_1,
|
|
10407
10274
|
keysIn = requireKeysIn(),
|
|
10408
10275
|
safeGet = require_safeGet();
|
|
10409
10276
|
|
|
@@ -10477,9 +10344,9 @@ function require_isIterateeCall () {
|
|
|
10477
10344
|
if (hasRequired_isIterateeCall) return _isIterateeCall;
|
|
10478
10345
|
hasRequired_isIterateeCall = 1;
|
|
10479
10346
|
var eq = requireEq(),
|
|
10480
|
-
isArrayLike =
|
|
10481
|
-
isIndex =
|
|
10482
|
-
isObject =
|
|
10347
|
+
isArrayLike = isArrayLike_1,
|
|
10348
|
+
isIndex = _isIndex,
|
|
10349
|
+
isObject = isObject_1;
|
|
10483
10350
|
|
|
10484
10351
|
/**
|
|
10485
10352
|
* Checks if the given arguments are from an iteratee call.
|
|
@@ -10955,17 +10822,22 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
|
|
|
10955
10822
|
return AccountBillingPlanChangeType2;
|
|
10956
10823
|
})(AccountBillingPlanChangeType || {});
|
|
10957
10824
|
|
|
10958
|
-
var
|
|
10959
|
-
|
|
10960
|
-
|
|
10825
|
+
var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
|
|
10826
|
+
FeatureId2[FeatureId2["SSApiAnalytics"] = 182] = "SSApiAnalytics";
|
|
10827
|
+
return FeatureId2;
|
|
10828
|
+
})(FeatureId || {});
|
|
10829
|
+
|
|
10830
|
+
var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
|
|
10831
|
+
var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
|
|
10832
|
+
var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
|
|
10961
10833
|
var __objRest$x = (source, exclude) => {
|
|
10962
10834
|
var target = {};
|
|
10963
10835
|
for (var prop in source)
|
|
10964
|
-
if (__hasOwnProp$
|
|
10836
|
+
if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
10965
10837
|
target[prop] = source[prop];
|
|
10966
|
-
if (source != null && __getOwnPropSymbols$
|
|
10967
|
-
for (var prop of __getOwnPropSymbols$
|
|
10968
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
10838
|
+
if (source != null && __getOwnPropSymbols$11)
|
|
10839
|
+
for (var prop of __getOwnPropSymbols$11(source)) {
|
|
10840
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
|
|
10969
10841
|
target[prop] = source[prop];
|
|
10970
10842
|
}
|
|
10971
10843
|
return target;
|
|
@@ -11092,6 +10964,7 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
11092
10964
|
Currency,
|
|
11093
10965
|
CustomsContentsType,
|
|
11094
10966
|
CustomsNonDeliveryType,
|
|
10967
|
+
FeatureId,
|
|
11095
10968
|
InsuranceProviderType,
|
|
11096
10969
|
MetadataCapability,
|
|
11097
10970
|
MetadataRequirement,
|
|
@@ -11100,17 +10973,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
11100
10973
|
RateCardStatus
|
|
11101
10974
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
11102
10975
|
|
|
11103
|
-
var __getOwnPropSymbols
|
|
11104
|
-
var __hasOwnProp
|
|
11105
|
-
var __propIsEnum
|
|
10976
|
+
var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
|
|
10977
|
+
var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
|
|
10978
|
+
var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
|
|
11106
10979
|
var __objRest$w = (source, exclude) => {
|
|
11107
10980
|
var target = {};
|
|
11108
10981
|
for (var prop in source)
|
|
11109
|
-
if (__hasOwnProp
|
|
10982
|
+
if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
11110
10983
|
target[prop] = source[prop];
|
|
11111
|
-
if (source != null && __getOwnPropSymbols
|
|
11112
|
-
for (var prop of __getOwnPropSymbols
|
|
11113
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum
|
|
10984
|
+
if (source != null && __getOwnPropSymbols$10)
|
|
10985
|
+
for (var prop of __getOwnPropSymbols$10(source)) {
|
|
10986
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
|
|
11114
10987
|
target[prop] = source[prop];
|
|
11115
10988
|
}
|
|
11116
10989
|
return target;
|
|
@@ -11181,6 +11054,20 @@ class AccountAddonsAPI {
|
|
|
11181
11054
|
}
|
|
11182
11055
|
}
|
|
11183
11056
|
|
|
11057
|
+
class AccountFeaturesAPI {
|
|
11058
|
+
constructor(client) {
|
|
11059
|
+
this.client = client;
|
|
11060
|
+
/**
|
|
11061
|
+
* The `list` method retrieves a list of all available features, also includes
|
|
11062
|
+
* if its avaiable for the current user
|
|
11063
|
+
*/
|
|
11064
|
+
this.list = () => {
|
|
11065
|
+
return this.client.get("/v1/account/features");
|
|
11066
|
+
};
|
|
11067
|
+
this.client = client;
|
|
11068
|
+
}
|
|
11069
|
+
}
|
|
11070
|
+
|
|
11184
11071
|
class AddressesAPI {
|
|
11185
11072
|
constructor(client) {
|
|
11186
11073
|
this.client = client;
|
|
@@ -14065,33 +13952,33 @@ const decamelizeKeys = (obj, separator = "_") => {
|
|
|
14065
13952
|
return obj;
|
|
14066
13953
|
};
|
|
14067
13954
|
|
|
14068
|
-
var __defProp$
|
|
14069
|
-
var __defProps$
|
|
14070
|
-
var __getOwnPropDescs$
|
|
14071
|
-
var __getOwnPropSymbols
|
|
14072
|
-
var __hasOwnProp
|
|
14073
|
-
var __propIsEnum
|
|
14074
|
-
var __defNormalProp$
|
|
14075
|
-
var __spreadValues$
|
|
13955
|
+
var __defProp$Q = Object.defineProperty;
|
|
13956
|
+
var __defProps$K = Object.defineProperties;
|
|
13957
|
+
var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
|
|
13958
|
+
var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
|
|
13959
|
+
var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
|
|
13960
|
+
var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
|
|
13961
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13962
|
+
var __spreadValues$Q = (a, b) => {
|
|
14076
13963
|
for (var prop in b || (b = {}))
|
|
14077
|
-
if (__hasOwnProp
|
|
14078
|
-
__defNormalProp$
|
|
14079
|
-
if (__getOwnPropSymbols
|
|
14080
|
-
for (var prop of __getOwnPropSymbols
|
|
14081
|
-
if (__propIsEnum
|
|
14082
|
-
__defNormalProp$
|
|
13964
|
+
if (__hasOwnProp$$.call(b, prop))
|
|
13965
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
13966
|
+
if (__getOwnPropSymbols$$)
|
|
13967
|
+
for (var prop of __getOwnPropSymbols$$(b)) {
|
|
13968
|
+
if (__propIsEnum$$.call(b, prop))
|
|
13969
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
14083
13970
|
}
|
|
14084
13971
|
return a;
|
|
14085
13972
|
};
|
|
14086
|
-
var __spreadProps$
|
|
13973
|
+
var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
|
|
14087
13974
|
var __objRest$v = (source, exclude) => {
|
|
14088
13975
|
var target = {};
|
|
14089
13976
|
for (var prop in source)
|
|
14090
|
-
if (__hasOwnProp
|
|
13977
|
+
if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
14091
13978
|
target[prop] = source[prop];
|
|
14092
|
-
if (source != null && __getOwnPropSymbols
|
|
14093
|
-
for (var prop of __getOwnPropSymbols
|
|
14094
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum
|
|
13979
|
+
if (source != null && __getOwnPropSymbols$$)
|
|
13980
|
+
for (var prop of __getOwnPropSymbols$$(source)) {
|
|
13981
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
|
|
14095
13982
|
target[prop] = source[prop];
|
|
14096
13983
|
}
|
|
14097
13984
|
return target;
|
|
@@ -14141,7 +14028,7 @@ class CarriersAPI {
|
|
|
14141
14028
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
14142
14029
|
if (!endUserIpAddress)
|
|
14143
14030
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
14144
|
-
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$
|
|
14031
|
+
return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$K(__spreadValues$Q({}, connection), {
|
|
14145
14032
|
endUserIpAddress
|
|
14146
14033
|
}));
|
|
14147
14034
|
});
|
|
@@ -14225,17 +14112,17 @@ class CarriersAPI {
|
|
|
14225
14112
|
}
|
|
14226
14113
|
}
|
|
14227
14114
|
|
|
14228
|
-
var __getOwnPropSymbols$
|
|
14229
|
-
var __hasOwnProp$
|
|
14230
|
-
var __propIsEnum$
|
|
14115
|
+
var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
|
|
14116
|
+
var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
|
|
14117
|
+
var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
|
|
14231
14118
|
var __objRest$u = (source, exclude) => {
|
|
14232
14119
|
var target = {};
|
|
14233
14120
|
for (var prop in source)
|
|
14234
|
-
if (__hasOwnProp$
|
|
14121
|
+
if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
14235
14122
|
target[prop] = source[prop];
|
|
14236
|
-
if (source != null && __getOwnPropSymbols$
|
|
14237
|
-
for (var prop of __getOwnPropSymbols$
|
|
14238
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
14123
|
+
if (source != null && __getOwnPropSymbols$_)
|
|
14124
|
+
for (var prop of __getOwnPropSymbols$_(source)) {
|
|
14125
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
|
|
14239
14126
|
target[prop] = source[prop];
|
|
14240
14127
|
}
|
|
14241
14128
|
return target;
|
|
@@ -16450,19 +16337,19 @@ class CustomPackagesAPI {
|
|
|
16450
16337
|
}
|
|
16451
16338
|
}
|
|
16452
16339
|
|
|
16453
|
-
var __defProp$
|
|
16454
|
-
var __getOwnPropSymbols$
|
|
16455
|
-
var __hasOwnProp$
|
|
16456
|
-
var __propIsEnum$
|
|
16457
|
-
var __defNormalProp$
|
|
16458
|
-
var __spreadValues$
|
|
16340
|
+
var __defProp$P = Object.defineProperty;
|
|
16341
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
16342
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
16343
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
16344
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16345
|
+
var __spreadValues$P = (a, b) => {
|
|
16459
16346
|
for (var prop in b || (b = {}))
|
|
16460
|
-
if (__hasOwnProp$
|
|
16461
|
-
__defNormalProp$
|
|
16462
|
-
if (__getOwnPropSymbols$
|
|
16463
|
-
for (var prop of __getOwnPropSymbols$
|
|
16464
|
-
if (__propIsEnum$
|
|
16465
|
-
__defNormalProp$
|
|
16347
|
+
if (__hasOwnProp$Z.call(b, prop))
|
|
16348
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
16349
|
+
if (__getOwnPropSymbols$Z)
|
|
16350
|
+
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
16351
|
+
if (__propIsEnum$Z.call(b, prop))
|
|
16352
|
+
__defNormalProp$P(a, prop, b[prop]);
|
|
16466
16353
|
}
|
|
16467
16354
|
return a;
|
|
16468
16355
|
};
|
|
@@ -16510,7 +16397,7 @@ class FundingSourcesAPI {
|
|
|
16510
16397
|
if (!endUserIpAddress) {
|
|
16511
16398
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16512
16399
|
}
|
|
16513
|
-
return yield this.client.post("/v1/funding_sources", __spreadValues$
|
|
16400
|
+
return yield this.client.post("/v1/funding_sources", __spreadValues$P({
|
|
16514
16401
|
endUserIpAddress
|
|
16515
16402
|
}, createFundingSource));
|
|
16516
16403
|
});
|
|
@@ -16529,7 +16416,7 @@ class FundingSourcesAPI {
|
|
|
16529
16416
|
{
|
|
16530
16417
|
billingInfo,
|
|
16531
16418
|
endUserIpAddress,
|
|
16532
|
-
paymentMethod: __spreadValues$
|
|
16419
|
+
paymentMethod: __spreadValues$P({
|
|
16533
16420
|
creditCardInfo
|
|
16534
16421
|
}, auctanePayInfo)
|
|
16535
16422
|
}
|
|
@@ -16544,7 +16431,7 @@ class FundingSourcesAPI {
|
|
|
16544
16431
|
if (!endUserIpAddress) {
|
|
16545
16432
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
16546
16433
|
}
|
|
16547
|
-
return yield this.client.post("/v1/registration/funding_source", __spreadValues$
|
|
16434
|
+
return yield this.client.post("/v1/registration/funding_source", __spreadValues$P({
|
|
16548
16435
|
endUserIpAddress
|
|
16549
16436
|
}, carrier));
|
|
16550
16437
|
});
|
|
@@ -16713,17 +16600,17 @@ class LabelsAPI {
|
|
|
16713
16600
|
}
|
|
16714
16601
|
}
|
|
16715
16602
|
|
|
16716
|
-
var __getOwnPropSymbols$
|
|
16717
|
-
var __hasOwnProp$
|
|
16718
|
-
var __propIsEnum$
|
|
16603
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
16604
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
16605
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
16719
16606
|
var __objRest$t = (source, exclude) => {
|
|
16720
16607
|
var target = {};
|
|
16721
16608
|
for (var prop in source)
|
|
16722
|
-
if (__hasOwnProp$
|
|
16609
|
+
if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16723
16610
|
target[prop] = source[prop];
|
|
16724
|
-
if (source != null && __getOwnPropSymbols$
|
|
16725
|
-
for (var prop of __getOwnPropSymbols$
|
|
16726
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
16611
|
+
if (source != null && __getOwnPropSymbols$Y)
|
|
16612
|
+
for (var prop of __getOwnPropSymbols$Y(source)) {
|
|
16613
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
|
|
16727
16614
|
target[prop] = source[prop];
|
|
16728
16615
|
}
|
|
16729
16616
|
return target;
|
|
@@ -16844,19 +16731,19 @@ class RateCardsAPI {
|
|
|
16844
16731
|
}
|
|
16845
16732
|
}
|
|
16846
16733
|
|
|
16847
|
-
var __defProp$
|
|
16848
|
-
var __getOwnPropSymbols$
|
|
16849
|
-
var __hasOwnProp$
|
|
16850
|
-
var __propIsEnum$
|
|
16851
|
-
var __defNormalProp$
|
|
16852
|
-
var __spreadValues$
|
|
16734
|
+
var __defProp$O = Object.defineProperty;
|
|
16735
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
16736
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
16737
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
16738
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16739
|
+
var __spreadValues$O = (a, b) => {
|
|
16853
16740
|
for (var prop in b || (b = {}))
|
|
16854
|
-
if (__hasOwnProp$
|
|
16855
|
-
__defNormalProp$
|
|
16856
|
-
if (__getOwnPropSymbols$
|
|
16857
|
-
for (var prop of __getOwnPropSymbols$
|
|
16858
|
-
if (__propIsEnum$
|
|
16859
|
-
__defNormalProp$
|
|
16741
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
16742
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
16743
|
+
if (__getOwnPropSymbols$X)
|
|
16744
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
16745
|
+
if (__propIsEnum$X.call(b, prop))
|
|
16746
|
+
__defNormalProp$O(a, prop, b[prop]);
|
|
16860
16747
|
}
|
|
16861
16748
|
return a;
|
|
16862
16749
|
};
|
|
@@ -16878,7 +16765,7 @@ class RatesAPI {
|
|
|
16878
16765
|
* method.
|
|
16879
16766
|
*/
|
|
16880
16767
|
this.estimate = (params) => {
|
|
16881
|
-
return this.client.post("/v1/rates/estimate", __spreadValues$
|
|
16768
|
+
return this.client.post("/v1/rates/estimate", __spreadValues$O({}, params));
|
|
16882
16769
|
};
|
|
16883
16770
|
this.client = client;
|
|
16884
16771
|
}
|
|
@@ -17062,19 +16949,19 @@ class SellersAPI {
|
|
|
17062
16949
|
}
|
|
17063
16950
|
}
|
|
17064
16951
|
|
|
17065
|
-
var __defProp$
|
|
17066
|
-
var __getOwnPropSymbols$
|
|
17067
|
-
var __hasOwnProp$
|
|
17068
|
-
var __propIsEnum$
|
|
17069
|
-
var __defNormalProp$
|
|
17070
|
-
var __spreadValues$
|
|
16952
|
+
var __defProp$N = Object.defineProperty;
|
|
16953
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
16954
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
16955
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
16956
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16957
|
+
var __spreadValues$N = (a, b) => {
|
|
17071
16958
|
for (var prop in b || (b = {}))
|
|
17072
|
-
if (__hasOwnProp$
|
|
17073
|
-
__defNormalProp$
|
|
17074
|
-
if (__getOwnPropSymbols$
|
|
17075
|
-
for (var prop of __getOwnPropSymbols$
|
|
17076
|
-
if (__propIsEnum$
|
|
17077
|
-
__defNormalProp$
|
|
16959
|
+
if (__hasOwnProp$W.call(b, prop))
|
|
16960
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
16961
|
+
if (__getOwnPropSymbols$W)
|
|
16962
|
+
for (var prop of __getOwnPropSymbols$W(b)) {
|
|
16963
|
+
if (__propIsEnum$W.call(b, prop))
|
|
16964
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
17078
16965
|
}
|
|
17079
16966
|
return a;
|
|
17080
16967
|
};
|
|
@@ -17086,7 +16973,7 @@ class ServicePointsAPI {
|
|
|
17086
16973
|
* Either an address, coordinates, or an address query
|
|
17087
16974
|
*/
|
|
17088
16975
|
this.list = (options) => {
|
|
17089
|
-
return this.client.post("/v1/service_points/list", __spreadValues$
|
|
16976
|
+
return this.client.post("/v1/service_points/list", __spreadValues$N({}, options));
|
|
17090
16977
|
};
|
|
17091
16978
|
/**
|
|
17092
16979
|
* Get a specific service point by its carrier code, country code, and id
|
|
@@ -34570,33 +34457,33 @@ class WebhooksAPI {
|
|
|
34570
34457
|
}
|
|
34571
34458
|
}
|
|
34572
34459
|
|
|
34573
|
-
var __defProp$
|
|
34574
|
-
var __defProps$
|
|
34575
|
-
var __getOwnPropDescs$
|
|
34576
|
-
var __getOwnPropSymbols$
|
|
34577
|
-
var __hasOwnProp$
|
|
34578
|
-
var __propIsEnum$
|
|
34579
|
-
var __defNormalProp$
|
|
34580
|
-
var __spreadValues$
|
|
34460
|
+
var __defProp$M = Object.defineProperty;
|
|
34461
|
+
var __defProps$J = Object.defineProperties;
|
|
34462
|
+
var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
|
|
34463
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
34464
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
34465
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
34466
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34467
|
+
var __spreadValues$M = (a, b) => {
|
|
34581
34468
|
for (var prop in b || (b = {}))
|
|
34582
|
-
if (__hasOwnProp$
|
|
34583
|
-
__defNormalProp$
|
|
34584
|
-
if (__getOwnPropSymbols$
|
|
34585
|
-
for (var prop of __getOwnPropSymbols$
|
|
34586
|
-
if (__propIsEnum$
|
|
34587
|
-
__defNormalProp$
|
|
34469
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
34470
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
34471
|
+
if (__getOwnPropSymbols$V)
|
|
34472
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
34473
|
+
if (__propIsEnum$V.call(b, prop))
|
|
34474
|
+
__defNormalProp$M(a, prop, b[prop]);
|
|
34588
34475
|
}
|
|
34589
34476
|
return a;
|
|
34590
34477
|
};
|
|
34591
|
-
var __spreadProps$
|
|
34478
|
+
var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
|
|
34592
34479
|
var __objRest$s = (source, exclude) => {
|
|
34593
34480
|
var target = {};
|
|
34594
34481
|
for (var prop in source)
|
|
34595
|
-
if (__hasOwnProp$
|
|
34482
|
+
if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
34596
34483
|
target[prop] = source[prop];
|
|
34597
|
-
if (source != null && __getOwnPropSymbols$
|
|
34598
|
-
for (var prop of __getOwnPropSymbols$
|
|
34599
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
34484
|
+
if (source != null && __getOwnPropSymbols$V)
|
|
34485
|
+
for (var prop of __getOwnPropSymbols$V(source)) {
|
|
34486
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
|
|
34600
34487
|
target[prop] = source[prop];
|
|
34601
34488
|
}
|
|
34602
34489
|
return target;
|
|
@@ -34624,7 +34511,7 @@ var __async$$ = (__this, __arguments, generator) => {
|
|
|
34624
34511
|
const logger$1 = E({
|
|
34625
34512
|
level: process.env.NODE_ENV === "production" ? "fatal" : "info",
|
|
34626
34513
|
name: "shipengine-api",
|
|
34627
|
-
serializers: __spreadProps$
|
|
34514
|
+
serializers: __spreadProps$J(__spreadValues$M({}, k), {
|
|
34628
34515
|
req: (req) => ({
|
|
34629
34516
|
headers: req.headers,
|
|
34630
34517
|
method: req.method,
|
|
@@ -34649,7 +34536,7 @@ class ShipEngineAPI {
|
|
|
34649
34536
|
this.getSandboxToken = getSandboxToken;
|
|
34650
34537
|
const client = axios.create({
|
|
34651
34538
|
baseURL,
|
|
34652
|
-
headers: __spreadProps$
|
|
34539
|
+
headers: __spreadProps$J(__spreadValues$M({}, headers), {
|
|
34653
34540
|
"Content-Type": "application/json"
|
|
34654
34541
|
}),
|
|
34655
34542
|
paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
|
|
@@ -34811,6 +34698,13 @@ class ShipEngineAPI {
|
|
|
34811
34698
|
get accountAddons() {
|
|
34812
34699
|
return new AccountAddonsAPI(this.client);
|
|
34813
34700
|
}
|
|
34701
|
+
/**
|
|
34702
|
+
* The `accountFeatures` method provides access to the Account Features endpoints
|
|
34703
|
+
* in ShipEngine API.
|
|
34704
|
+
*/
|
|
34705
|
+
get accountFeatures() {
|
|
34706
|
+
return new AccountFeaturesAPI(this.client);
|
|
34707
|
+
}
|
|
34814
34708
|
/**
|
|
34815
34709
|
* The `accountBilling` method provides access to the Account Billing (Recurly) endpoints
|
|
34816
34710
|
* in ShipEngine API.
|
|
@@ -35079,25 +34973,25 @@ const delay = (ms) => new Promise((resolve) => {
|
|
|
35079
34973
|
|
|
35080
34974
|
const onError = (_errors) => _default();
|
|
35081
34975
|
|
|
35082
|
-
var __defProp$
|
|
35083
|
-
var __defProps$
|
|
35084
|
-
var __getOwnPropDescs$
|
|
35085
|
-
var __getOwnPropSymbols$
|
|
35086
|
-
var __hasOwnProp$
|
|
35087
|
-
var __propIsEnum$
|
|
35088
|
-
var __defNormalProp$
|
|
35089
|
-
var __spreadValues$
|
|
34976
|
+
var __defProp$L = Object.defineProperty;
|
|
34977
|
+
var __defProps$I = Object.defineProperties;
|
|
34978
|
+
var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
|
|
34979
|
+
var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
|
|
34980
|
+
var __hasOwnProp$U = Object.prototype.hasOwnProperty;
|
|
34981
|
+
var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
|
|
34982
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34983
|
+
var __spreadValues$L = (a, b) => {
|
|
35090
34984
|
for (var prop in b || (b = {}))
|
|
35091
|
-
if (__hasOwnProp$
|
|
35092
|
-
__defNormalProp$
|
|
35093
|
-
if (__getOwnPropSymbols$
|
|
35094
|
-
for (var prop of __getOwnPropSymbols$
|
|
35095
|
-
if (__propIsEnum$
|
|
35096
|
-
__defNormalProp$
|
|
34985
|
+
if (__hasOwnProp$U.call(b, prop))
|
|
34986
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
34987
|
+
if (__getOwnPropSymbols$U)
|
|
34988
|
+
for (var prop of __getOwnPropSymbols$U(b)) {
|
|
34989
|
+
if (__propIsEnum$U.call(b, prop))
|
|
34990
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
35097
34991
|
}
|
|
35098
34992
|
return a;
|
|
35099
34993
|
};
|
|
35100
|
-
var __spreadProps$
|
|
34994
|
+
var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
|
|
35101
34995
|
const streams = [];
|
|
35102
34996
|
if (process.env.NODE_ENV === "production") {
|
|
35103
34997
|
streams.push({
|
|
@@ -35106,7 +35000,7 @@ if (process.env.NODE_ENV === "production") {
|
|
|
35106
35000
|
}
|
|
35107
35001
|
const logger = E({
|
|
35108
35002
|
name: "shipengine",
|
|
35109
|
-
serializers: __spreadProps$
|
|
35003
|
+
serializers: __spreadProps$I(__spreadValues$L({}, k), {
|
|
35110
35004
|
req: (req) => ({
|
|
35111
35005
|
headers: req.headers,
|
|
35112
35006
|
method: req.method,
|
|
@@ -35279,6 +35173,35 @@ const useUpdateAccountSettings = () => {
|
|
|
35279
35173
|
});
|
|
35280
35174
|
};
|
|
35281
35175
|
|
|
35176
|
+
var __defProp$K = Object.defineProperty;
|
|
35177
|
+
var __defProps$H = Object.defineProperties;
|
|
35178
|
+
var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
|
|
35179
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
35180
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
35181
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
35182
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35183
|
+
var __spreadValues$K = (a, b) => {
|
|
35184
|
+
for (var prop in b || (b = {}))
|
|
35185
|
+
if (__hasOwnProp$T.call(b, prop))
|
|
35186
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
35187
|
+
if (__getOwnPropSymbols$T)
|
|
35188
|
+
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
35189
|
+
if (__propIsEnum$T.call(b, prop))
|
|
35190
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
35191
|
+
}
|
|
35192
|
+
return a;
|
|
35193
|
+
};
|
|
35194
|
+
var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
|
|
35195
|
+
const useListAccountAddons = (params) => {
|
|
35196
|
+
const { client } = useShipEngine();
|
|
35197
|
+
return reactQuery.useQuery(__spreadProps$H(__spreadValues$K({}, params), {
|
|
35198
|
+
onError,
|
|
35199
|
+
queryFn: () => client.accountAddons.list(),
|
|
35200
|
+
queryKey: ["useListAccountAddons"],
|
|
35201
|
+
select: (result) => result.data.addons
|
|
35202
|
+
}));
|
|
35203
|
+
};
|
|
35204
|
+
|
|
35282
35205
|
var __defProp$J = Object.defineProperty;
|
|
35283
35206
|
var __defProps$G = Object.defineProperties;
|
|
35284
35207
|
var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
|
|
@@ -35298,35 +35221,6 @@ var __spreadValues$J = (a, b) => {
|
|
|
35298
35221
|
return a;
|
|
35299
35222
|
};
|
|
35300
35223
|
var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
|
|
35301
|
-
const useListAccountAddons = (params) => {
|
|
35302
|
-
const { client } = useShipEngine();
|
|
35303
|
-
return reactQuery.useQuery(__spreadProps$G(__spreadValues$J({}, params), {
|
|
35304
|
-
onError,
|
|
35305
|
-
queryFn: () => client.accountAddons.list(),
|
|
35306
|
-
queryKey: ["useListAccountAddons"],
|
|
35307
|
-
select: (result) => result.data.addons
|
|
35308
|
-
}));
|
|
35309
|
-
};
|
|
35310
|
-
|
|
35311
|
-
var __defProp$I = Object.defineProperty;
|
|
35312
|
-
var __defProps$F = Object.defineProperties;
|
|
35313
|
-
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
35314
|
-
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
35315
|
-
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
35316
|
-
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
35317
|
-
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35318
|
-
var __spreadValues$I = (a, b) => {
|
|
35319
|
-
for (var prop in b || (b = {}))
|
|
35320
|
-
if (__hasOwnProp$R.call(b, prop))
|
|
35321
|
-
__defNormalProp$I(a, prop, b[prop]);
|
|
35322
|
-
if (__getOwnPropSymbols$R)
|
|
35323
|
-
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
35324
|
-
if (__propIsEnum$R.call(b, prop))
|
|
35325
|
-
__defNormalProp$I(a, prop, b[prop]);
|
|
35326
|
-
}
|
|
35327
|
-
return a;
|
|
35328
|
-
};
|
|
35329
|
-
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
35330
35224
|
var __async$W = (__this, __arguments, generator) => {
|
|
35331
35225
|
return new Promise((resolve, reject) => {
|
|
35332
35226
|
var fulfilled = (value) => {
|
|
@@ -35349,7 +35243,7 @@ var __async$W = (__this, __arguments, generator) => {
|
|
|
35349
35243
|
};
|
|
35350
35244
|
const useEnableAccountAddon = (params) => {
|
|
35351
35245
|
const { client } = useShipEngine();
|
|
35352
|
-
return reactQuery.useMutation(__spreadProps$
|
|
35246
|
+
return reactQuery.useMutation(__spreadProps$G(__spreadValues$J({}, params), {
|
|
35353
35247
|
mutationFn: (addonType) => __async$W(void 0, null, function* () {
|
|
35354
35248
|
const result = yield client.accountAddons.enable(addonType);
|
|
35355
35249
|
return result.data;
|
|
@@ -35359,6 +35253,35 @@ const useEnableAccountAddon = (params) => {
|
|
|
35359
35253
|
}));
|
|
35360
35254
|
};
|
|
35361
35255
|
|
|
35256
|
+
var __defProp$I = Object.defineProperty;
|
|
35257
|
+
var __defProps$F = Object.defineProperties;
|
|
35258
|
+
var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
|
|
35259
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
35260
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
35261
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
35262
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
35263
|
+
var __spreadValues$I = (a, b) => {
|
|
35264
|
+
for (var prop in b || (b = {}))
|
|
35265
|
+
if (__hasOwnProp$R.call(b, prop))
|
|
35266
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35267
|
+
if (__getOwnPropSymbols$R)
|
|
35268
|
+
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
35269
|
+
if (__propIsEnum$R.call(b, prop))
|
|
35270
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
35271
|
+
}
|
|
35272
|
+
return a;
|
|
35273
|
+
};
|
|
35274
|
+
var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
|
|
35275
|
+
const useListAccountFeatures = (params) => {
|
|
35276
|
+
const { client } = useShipEngine();
|
|
35277
|
+
return reactQuery.useQuery(__spreadProps$F(__spreadValues$I({}, params), {
|
|
35278
|
+
onError,
|
|
35279
|
+
queryFn: () => client.accountFeatures.list(),
|
|
35280
|
+
queryKey: ["useListAccountFeatures"],
|
|
35281
|
+
select: (result) => result.data.features
|
|
35282
|
+
}));
|
|
35283
|
+
};
|
|
35284
|
+
|
|
35362
35285
|
var __async$V = (__this, __arguments, generator) => {
|
|
35363
35286
|
return new Promise((resolve, reject) => {
|
|
35364
35287
|
var fulfilled = (value) => {
|
|
@@ -40291,6 +40214,7 @@ exports.AccountAddonsAPI = AccountAddonsAPI;
|
|
|
40291
40214
|
exports.AccountBillingAPI = AccountBillingAPI;
|
|
40292
40215
|
exports.AccountBillingPlanAPI = AccountBillingPlanAPI;
|
|
40293
40216
|
exports.AccountBillingPlanChangeType = AccountBillingPlanChangeType;
|
|
40217
|
+
exports.AccountFeaturesAPI = AccountFeaturesAPI;
|
|
40294
40218
|
exports.AccountSettingsAPI = AccountSettingsAPI;
|
|
40295
40219
|
exports.AddressesAPI = AddressesAPI;
|
|
40296
40220
|
exports.AlchemyContext = AlchemyContext;
|
|
@@ -40308,6 +40232,7 @@ exports.CustomsContentsType = CustomsContentsType;
|
|
|
40308
40232
|
exports.CustomsNonDeliveryType = CustomsNonDeliveryType;
|
|
40309
40233
|
exports.Element = Element;
|
|
40310
40234
|
exports.ErrorBoundary = ErrorBoundary;
|
|
40235
|
+
exports.FeatureId = FeatureId;
|
|
40311
40236
|
exports.FundingSourcesAPI = FundingSourcesAPI;
|
|
40312
40237
|
exports.InsuranceAPI = InsuranceAPI;
|
|
40313
40238
|
exports.InsuranceProviderType = InsuranceProviderType;
|
|
@@ -40427,6 +40352,7 @@ exports.useGetZonesByCarrier = useGetZonesByCarrier;
|
|
|
40427
40352
|
exports.useI18n = useI18n;
|
|
40428
40353
|
exports.useIdentityVerification = useIdentityVerification;
|
|
40429
40354
|
exports.useListAccountAddons = useListAccountAddons;
|
|
40355
|
+
exports.useListAccountFeatures = useListAccountFeatures;
|
|
40430
40356
|
exports.useListCarrierConnections = useListCarrierConnections;
|
|
40431
40357
|
exports.useListCarriers = useListCarriers;
|
|
40432
40358
|
exports.useListCustomPackageTypes = useListCustomPackageTypes;
|