@shipengine/alchemy 6.0.82 → 6.0.83

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.
Files changed (3) hide show
  1. package/index.js +715 -849
  2. package/index.mjs +715 -850
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3413,20 +3413,12 @@ var _baseConvert = baseConvert$1;
3413
3413
  * // => true
3414
3414
  */
3415
3415
 
3416
- var identity_1;
3417
- var hasRequiredIdentity;
3418
-
3419
- function requireIdentity () {
3420
- if (hasRequiredIdentity) return identity_1;
3421
- hasRequiredIdentity = 1;
3422
- function identity(value) {
3423
- return value;
3424
- }
3425
-
3426
- identity_1 = identity;
3427
- return identity_1;
3416
+ function identity$3(value) {
3417
+ return value;
3428
3418
  }
3429
3419
 
3420
+ var identity_1 = identity$3;
3421
+
3430
3422
  /** Detect free variable `global` from Node.js. */
3431
3423
 
3432
3424
  var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
@@ -3439,14 +3431,14 @@ var freeGlobal = _freeGlobal;
3439
3431
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
3440
3432
 
3441
3433
  /** Used as a reference to the global object. */
3442
- var root$b = freeGlobal || freeSelf || Function('return this')();
3434
+ var root$c = freeGlobal || freeSelf || Function('return this')();
3443
3435
 
3444
- var _root = root$b;
3436
+ var _root = root$c;
3445
3437
 
3446
- var root$a = _root;
3438
+ var root$b = _root;
3447
3439
 
3448
3440
  /** Built-in value references. */
3449
- var Symbol$7 = root$a.Symbol;
3441
+ var Symbol$7 = root$b.Symbol;
3450
3442
 
3451
3443
  var _Symbol = Symbol$7;
3452
3444
 
@@ -3576,23 +3568,15 @@ var _baseGetTag = baseGetTag$5;
3576
3568
  * // => false
3577
3569
  */
3578
3570
 
3579
- var isObject_1;
3580
- var hasRequiredIsObject;
3581
-
3582
- function requireIsObject () {
3583
- if (hasRequiredIsObject) return isObject_1;
3584
- hasRequiredIsObject = 1;
3585
- function isObject(value) {
3586
- var type = typeof value;
3587
- return value != null && (type == 'object' || type == 'function');
3588
- }
3589
-
3590
- isObject_1 = isObject;
3591
- return isObject_1;
3571
+ function isObject$8(value) {
3572
+ var type = typeof value;
3573
+ return value != null && (type == 'object' || type == 'function');
3592
3574
  }
3593
3575
 
3576
+ var isObject_1 = isObject$8;
3577
+
3594
3578
  var baseGetTag$4 = _baseGetTag,
3595
- isObject$6 = requireIsObject();
3579
+ isObject$7 = isObject_1;
3596
3580
 
3597
3581
  /** `Object#toString` result references. */
3598
3582
  var asyncTag = '[object AsyncFunction]',
@@ -3617,8 +3601,8 @@ var asyncTag = '[object AsyncFunction]',
3617
3601
  * _.isFunction(/abc/);
3618
3602
  * // => false
3619
3603
  */
3620
- function isFunction$2(value) {
3621
- if (!isObject$6(value)) {
3604
+ function isFunction$3(value) {
3605
+ if (!isObject$7(value)) {
3622
3606
  return false;
3623
3607
  }
3624
3608
  // The use of `Object#toString` avoids issues with the `typeof` operator
@@ -3627,12 +3611,12 @@ function isFunction$2(value) {
3627
3611
  return tag == funcTag$1 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
3628
3612
  }
3629
3613
 
3630
- var isFunction_1 = isFunction$2;
3614
+ var isFunction_1 = isFunction$3;
3631
3615
 
3632
- var root$9 = _root;
3616
+ var root$a = _root;
3633
3617
 
3634
3618
  /** Used to detect overreaching core-js shims. */
3635
- var coreJsData$1 = root$9['__core-js_shared__'];
3619
+ var coreJsData$1 = root$a['__core-js_shared__'];
3636
3620
 
3637
3621
  var _coreJsData = coreJsData$1;
3638
3622
 
@@ -3685,9 +3669,9 @@ function toSource$2(func) {
3685
3669
 
3686
3670
  var _toSource = toSource$2;
3687
3671
 
3688
- var isFunction$1 = isFunction_1,
3672
+ var isFunction$2 = isFunction_1,
3689
3673
  isMasked = _isMasked,
3690
- isObject$5 = requireIsObject(),
3674
+ isObject$6 = isObject_1,
3691
3675
  toSource$1 = _toSource;
3692
3676
 
3693
3677
  /**
@@ -3724,10 +3708,10 @@ var reIsNative = RegExp('^' +
3724
3708
  * else `false`.
3725
3709
  */
3726
3710
  function baseIsNative$1(value) {
3727
- if (!isObject$5(value) || isMasked(value)) {
3711
+ if (!isObject$6(value) || isMasked(value)) {
3728
3712
  return false;
3729
3713
  }
3730
- var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
3714
+ var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
3731
3715
  return pattern.test(toSource$1(value));
3732
3716
  }
3733
3717
 
@@ -3759,18 +3743,18 @@ var baseIsNative = _baseIsNative,
3759
3743
  * @param {string} key The key of the method to get.
3760
3744
  * @returns {*} Returns the function if it's native, else `undefined`.
3761
3745
  */
3762
- function getNative$5(object, key) {
3746
+ function getNative$6(object, key) {
3763
3747
  var value = getValue(object, key);
3764
3748
  return baseIsNative(value) ? value : undefined;
3765
3749
  }
3766
3750
 
3767
- var _getNative = getNative$5;
3751
+ var _getNative = getNative$6;
3768
3752
 
3769
- var getNative$4 = _getNative,
3770
- root$8 = _root;
3753
+ var getNative$5 = _getNative,
3754
+ root$9 = _root;
3771
3755
 
3772
3756
  /* Built-in method references that are verified to be native. */
3773
- var WeakMap$3 = getNative$4(root$8, 'WeakMap');
3757
+ var WeakMap$3 = getNative$5(root$9, 'WeakMap');
3774
3758
 
3775
3759
  var _WeakMap = WeakMap$3;
3776
3760
 
@@ -3781,7 +3765,7 @@ var metaMap$2 = WeakMap$2 && new WeakMap$2;
3781
3765
 
3782
3766
  var _metaMap = metaMap$2;
3783
3767
 
3784
- var identity$1 = requireIdentity(),
3768
+ var identity$2 = identity_1,
3785
3769
  metaMap$1 = _metaMap;
3786
3770
 
3787
3771
  /**
@@ -3792,54 +3776,46 @@ var identity$1 = requireIdentity(),
3792
3776
  * @param {*} data The metadata.
3793
3777
  * @returns {Function} Returns `func`.
3794
3778
  */
3795
- var baseSetData$2 = !metaMap$1 ? identity$1 : function(func, data) {
3779
+ var baseSetData$2 = !metaMap$1 ? identity$2 : function(func, data) {
3796
3780
  metaMap$1.set(func, data);
3797
3781
  return func;
3798
3782
  };
3799
3783
 
3800
3784
  var _baseSetData = baseSetData$2;
3801
3785
 
3802
- var _baseCreate;
3803
- var hasRequired_baseCreate;
3804
-
3805
- function require_baseCreate () {
3806
- if (hasRequired_baseCreate) return _baseCreate;
3807
- hasRequired_baseCreate = 1;
3808
- var isObject = requireIsObject();
3786
+ var isObject$5 = isObject_1;
3809
3787
 
3810
- /** Built-in value references. */
3811
- var objectCreate = Object.create;
3788
+ /** Built-in value references. */
3789
+ var objectCreate = Object.create;
3812
3790
 
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 = (function() {
3822
- function object() {}
3823
- return function(proto) {
3824
- if (!isObject(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
- }());
3791
+ /**
3792
+ * The base implementation of `_.create` without support for assigning
3793
+ * properties to the created object.
3794
+ *
3795
+ * @private
3796
+ * @param {Object} proto The object to inherit from.
3797
+ * @returns {Object} Returns the new object.
3798
+ */
3799
+ var baseCreate$4 = (function() {
3800
+ function object() {}
3801
+ return function(proto) {
3802
+ if (!isObject$5(proto)) {
3803
+ return {};
3804
+ }
3805
+ if (objectCreate) {
3806
+ return objectCreate(proto);
3807
+ }
3808
+ object.prototype = proto;
3809
+ var result = new object;
3810
+ object.prototype = undefined;
3811
+ return result;
3812
+ };
3813
+ }());
3836
3814
 
3837
- _baseCreate = baseCreate;
3838
- return _baseCreate;
3839
- }
3815
+ var _baseCreate = baseCreate$4;
3840
3816
 
3841
- var baseCreate$2 = require_baseCreate(),
3842
- isObject$4 = requireIsObject();
3817
+ var baseCreate$3 = _baseCreate,
3818
+ isObject$4 = isObject_1;
3843
3819
 
3844
3820
  /**
3845
3821
  * Creates a function that produces an instance of `Ctor` regardless of
@@ -3865,7 +3841,7 @@ function createCtor$4(Ctor) {
3865
3841
  case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
3866
3842
  case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
3867
3843
  }
3868
- var thisBinding = baseCreate$2(Ctor.prototype),
3844
+ var thisBinding = baseCreate$3(Ctor.prototype),
3869
3845
  result = Ctor.apply(thisBinding, args);
3870
3846
 
3871
3847
  // Mimic the constructor's `return` behavior.
@@ -3877,7 +3853,7 @@ function createCtor$4(Ctor) {
3877
3853
  var _createCtor = createCtor$4;
3878
3854
 
3879
3855
  var createCtor$3 = _createCtor,
3880
- root$7 = _root;
3856
+ root$8 = _root;
3881
3857
 
3882
3858
  /** Used to compose bitmasks for function metadata. */
3883
3859
  var WRAP_BIND_FLAG$6 = 1;
@@ -3897,7 +3873,7 @@ function createBind$1(func, bitmask, thisArg) {
3897
3873
  Ctor = createCtor$3(func);
3898
3874
 
3899
3875
  function wrapper() {
3900
- var fn = (this && this !== root$7 && this instanceof wrapper) ? Ctor : func;
3876
+ var fn = (this && this !== root$8 && this instanceof wrapper) ? Ctor : func;
3901
3877
  return fn.apply(isBind ? thisArg : this, arguments);
3902
3878
  }
3903
3879
  return wrapper;
@@ -3916,29 +3892,21 @@ var _createBind = createBind$1;
3916
3892
  * @returns {*} Returns the result of `func`.
3917
3893
  */
3918
3894
 
3919
- var _apply;
3920
- var hasRequired_apply;
3921
-
3922
- function require_apply () {
3923
- if (hasRequired_apply) return _apply;
3924
- hasRequired_apply = 1;
3925
- function apply(func, thisArg, args) {
3926
- switch (args.length) {
3927
- case 0: return func.call(thisArg);
3928
- case 1: return func.call(thisArg, args[0]);
3929
- case 2: return func.call(thisArg, args[0], args[1]);
3930
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
3931
- }
3932
- return func.apply(thisArg, args);
3933
- }
3934
-
3935
- _apply = apply;
3936
- return _apply;
3895
+ function apply$3(func, thisArg, args) {
3896
+ switch (args.length) {
3897
+ case 0: return func.call(thisArg);
3898
+ case 1: return func.call(thisArg, args[0]);
3899
+ case 2: return func.call(thisArg, args[0], args[1]);
3900
+ case 3: return func.call(thisArg, args[0], args[1], args[2]);
3901
+ }
3902
+ return func.apply(thisArg, args);
3937
3903
  }
3938
3904
 
3905
+ var _apply = apply$3;
3906
+
3939
3907
  /* Built-in method references for those with the same name as other `lodash` methods. */
3940
3908
 
3941
- var nativeMax$2 = Math.max;
3909
+ var nativeMax$3 = Math.max;
3942
3910
 
3943
3911
  /**
3944
3912
  * Creates an array that is the composition of partially applied arguments,
@@ -3957,7 +3925,7 @@ function composeArgs$2(args, partials, holders, isCurried) {
3957
3925
  holdersLength = holders.length,
3958
3926
  leftIndex = -1,
3959
3927
  leftLength = partials.length,
3960
- rangeLength = nativeMax$2(argsLength - holdersLength, 0),
3928
+ rangeLength = nativeMax$3(argsLength - holdersLength, 0),
3961
3929
  result = Array(leftLength + rangeLength),
3962
3930
  isUncurried = !isCurried;
3963
3931
 
@@ -3979,7 +3947,7 @@ var _composeArgs = composeArgs$2;
3979
3947
 
3980
3948
  /* Built-in method references for those with the same name as other `lodash` methods. */
3981
3949
 
3982
- var nativeMax$1 = Math.max;
3950
+ var nativeMax$2 = Math.max;
3983
3951
 
3984
3952
  /**
3985
3953
  * This function is like `composeArgs` except that the arguments composition
@@ -3999,7 +3967,7 @@ function composeArgsRight$2(args, partials, holders, isCurried) {
3999
3967
  holdersLength = holders.length,
4000
3968
  rightIndex = -1,
4001
3969
  rightLength = partials.length,
4002
- rangeLength = nativeMax$1(argsLength - holdersLength, 0),
3970
+ rangeLength = nativeMax$2(argsLength - holdersLength, 0),
4003
3971
  result = Array(rangeLength + rightLength),
4004
3972
  isUncurried = !isCurried;
4005
3973
 
@@ -4055,7 +4023,7 @@ function baseLodash$3() {
4055
4023
 
4056
4024
  var _baseLodash = baseLodash$3;
4057
4025
 
4058
- var baseCreate$1 = require_baseCreate(),
4026
+ var baseCreate$2 = _baseCreate,
4059
4027
  baseLodash$2 = _baseLodash;
4060
4028
 
4061
4029
  /** Used as references for the maximum length and index of an array. */
@@ -4079,7 +4047,7 @@ function LazyWrapper$3(value) {
4079
4047
  }
4080
4048
 
4081
4049
  // Ensure `LazyWrapper` is an instance of `baseLodash`.
4082
- LazyWrapper$3.prototype = baseCreate$1(baseLodash$2.prototype);
4050
+ LazyWrapper$3.prototype = baseCreate$2(baseLodash$2.prototype);
4083
4051
  LazyWrapper$3.prototype.constructor = LazyWrapper$3;
4084
4052
 
4085
4053
  var _LazyWrapper = LazyWrapper$3;
@@ -4157,7 +4125,7 @@ function getFuncName$1(func) {
4157
4125
 
4158
4126
  var _getFuncName = getFuncName$1;
4159
4127
 
4160
- var baseCreate = require_baseCreate(),
4128
+ var baseCreate$1 = _baseCreate,
4161
4129
  baseLodash$1 = _baseLodash;
4162
4130
 
4163
4131
  /**
@@ -4175,7 +4143,7 @@ function LodashWrapper$2(value, chainAll) {
4175
4143
  this.__values__ = undefined;
4176
4144
  }
4177
4145
 
4178
- LodashWrapper$2.prototype = baseCreate(baseLodash$1.prototype);
4146
+ LodashWrapper$2.prototype = baseCreate$1(baseLodash$1.prototype);
4179
4147
  LodashWrapper$2.prototype.constructor = LodashWrapper$2;
4180
4148
 
4181
4149
  var _LodashWrapper = LodashWrapper$2;
@@ -4464,53 +4432,45 @@ var _isLaziable = isLaziable$1;
4464
4432
 
4465
4433
  /** Used to detect hot functions by number of calls within a span of milliseconds. */
4466
4434
 
4467
- var _shortOut;
4468
- var hasRequired_shortOut;
4435
+ var HOT_COUNT = 800,
4436
+ HOT_SPAN = 16;
4469
4437
 
4470
- function require_shortOut () {
4471
- if (hasRequired_shortOut) return _shortOut;
4472
- hasRequired_shortOut = 1;
4473
- var HOT_COUNT = 800,
4474
- HOT_SPAN = 16;
4475
-
4476
- /* Built-in method references for those with the same name as other `lodash` methods. */
4477
- var nativeNow = Date.now;
4478
-
4479
- /**
4480
- * Creates a function that'll short out and invoke `identity` instead
4481
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
4482
- * milliseconds.
4483
- *
4484
- * @private
4485
- * @param {Function} func The function to restrict.
4486
- * @returns {Function} Returns the new shortable function.
4487
- */
4488
- function shortOut(func) {
4489
- var count = 0,
4490
- lastCalled = 0;
4438
+ /* Built-in method references for those with the same name as other `lodash` methods. */
4439
+ var nativeNow = Date.now;
4491
4440
 
4492
- return function() {
4493
- var stamp = nativeNow(),
4494
- remaining = HOT_SPAN - (stamp - lastCalled);
4441
+ /**
4442
+ * Creates a function that'll short out and invoke `identity` instead
4443
+ * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
4444
+ * milliseconds.
4445
+ *
4446
+ * @private
4447
+ * @param {Function} func The function to restrict.
4448
+ * @returns {Function} Returns the new shortable function.
4449
+ */
4450
+ function shortOut$2(func) {
4451
+ var count = 0,
4452
+ lastCalled = 0;
4495
4453
 
4496
- lastCalled = stamp;
4497
- if (remaining > 0) {
4498
- if (++count >= HOT_COUNT) {
4499
- return arguments[0];
4500
- }
4501
- } else {
4502
- count = 0;
4503
- }
4504
- return func.apply(undefined, arguments);
4505
- };
4506
- }
4454
+ return function() {
4455
+ var stamp = nativeNow(),
4456
+ remaining = HOT_SPAN - (stamp - lastCalled);
4507
4457
 
4508
- _shortOut = shortOut;
4509
- return _shortOut;
4458
+ lastCalled = stamp;
4459
+ if (remaining > 0) {
4460
+ if (++count >= HOT_COUNT) {
4461
+ return arguments[0];
4462
+ }
4463
+ } else {
4464
+ count = 0;
4465
+ }
4466
+ return func.apply(undefined, arguments);
4467
+ };
4510
4468
  }
4511
4469
 
4470
+ var _shortOut = shortOut$2;
4471
+
4512
4472
  var baseSetData$1 = _baseSetData,
4513
- shortOut = require_shortOut();
4473
+ shortOut$1 = _shortOut;
4514
4474
 
4515
4475
  /**
4516
4476
  * Sets metadata for `func`.
@@ -4526,7 +4486,7 @@ var baseSetData$1 = _baseSetData,
4526
4486
  * @param {*} data The metadata.
4527
4487
  * @returns {Function} Returns `func`.
4528
4488
  */
4529
- var setData$2 = shortOut(baseSetData$1);
4489
+ var setData$2 = shortOut$1(baseSetData$1);
4530
4490
 
4531
4491
  var _setData = setData$2;
4532
4492
 
@@ -4594,95 +4554,63 @@ var _insertWrapDetails = insertWrapDetails$1;
4594
4554
  * // => true
4595
4555
  */
4596
4556
 
4597
- var constant_1;
4598
- var hasRequiredConstant;
4599
-
4600
- function requireConstant () {
4601
- if (hasRequiredConstant) return constant_1;
4602
- hasRequiredConstant = 1;
4603
- function constant(value) {
4604
- return function() {
4605
- return value;
4606
- };
4607
- }
4608
-
4609
- constant_1 = constant;
4610
- return constant_1;
4557
+ function constant$1(value) {
4558
+ return function() {
4559
+ return value;
4560
+ };
4611
4561
  }
4612
4562
 
4613
- var _defineProperty;
4614
- var hasRequired_defineProperty;
4563
+ var constant_1 = constant$1;
4615
4564
 
4616
- function require_defineProperty () {
4617
- if (hasRequired_defineProperty) return _defineProperty;
4618
- hasRequired_defineProperty = 1;
4619
- var getNative = _getNative;
4620
-
4621
- var defineProperty = (function() {
4622
- try {
4623
- var func = getNative(Object, 'defineProperty');
4624
- func({}, '', {});
4625
- return func;
4626
- } catch (e) {}
4627
- }());
4565
+ var getNative$4 = _getNative;
4628
4566
 
4629
- _defineProperty = defineProperty;
4630
- return _defineProperty;
4631
- }
4632
-
4633
- var _baseSetToString;
4634
- var hasRequired_baseSetToString;
4567
+ var defineProperty$2 = (function() {
4568
+ try {
4569
+ var func = getNative$4(Object, 'defineProperty');
4570
+ func({}, '', {});
4571
+ return func;
4572
+ } catch (e) {}
4573
+ }());
4635
4574
 
4636
- function require_baseSetToString () {
4637
- if (hasRequired_baseSetToString) return _baseSetToString;
4638
- hasRequired_baseSetToString = 1;
4639
- var constant = requireConstant(),
4640
- defineProperty = require_defineProperty(),
4641
- identity = requireIdentity();
4575
+ var _defineProperty = defineProperty$2;
4642
4576
 
4643
- /**
4644
- * The base implementation of `setToString` without support for hot loop shorting.
4645
- *
4646
- * @private
4647
- * @param {Function} func The function to modify.
4648
- * @param {Function} string The `toString` result.
4649
- * @returns {Function} Returns `func`.
4650
- */
4651
- var baseSetToString = !defineProperty ? identity : function(func, string) {
4652
- return defineProperty(func, 'toString', {
4653
- 'configurable': true,
4654
- 'enumerable': false,
4655
- 'value': constant(string),
4656
- 'writable': true
4657
- });
4658
- };
4577
+ var constant = constant_1,
4578
+ defineProperty$1 = _defineProperty,
4579
+ identity$1 = identity_1;
4659
4580
 
4660
- _baseSetToString = baseSetToString;
4661
- return _baseSetToString;
4662
- }
4581
+ /**
4582
+ * The base implementation of `setToString` without support for hot loop shorting.
4583
+ *
4584
+ * @private
4585
+ * @param {Function} func The function to modify.
4586
+ * @param {Function} string The `toString` result.
4587
+ * @returns {Function} Returns `func`.
4588
+ */
4589
+ var baseSetToString$1 = !defineProperty$1 ? identity$1 : function(func, string) {
4590
+ return defineProperty$1(func, 'toString', {
4591
+ 'configurable': true,
4592
+ 'enumerable': false,
4593
+ 'value': constant(string),
4594
+ 'writable': true
4595
+ });
4596
+ };
4663
4597
 
4664
- var _setToString;
4665
- var hasRequired_setToString;
4598
+ var _baseSetToString = baseSetToString$1;
4666
4599
 
4667
- function require_setToString () {
4668
- if (hasRequired_setToString) return _setToString;
4669
- hasRequired_setToString = 1;
4670
- var baseSetToString = require_baseSetToString(),
4671
- shortOut = require_shortOut();
4600
+ var baseSetToString = _baseSetToString,
4601
+ shortOut = _shortOut;
4672
4602
 
4673
- /**
4674
- * Sets the `toString` method of `func` to return `string`.
4675
- *
4676
- * @private
4677
- * @param {Function} func The function to modify.
4678
- * @param {Function} string The `toString` result.
4679
- * @returns {Function} Returns `func`.
4680
- */
4681
- var setToString = shortOut(baseSetToString);
4603
+ /**
4604
+ * Sets the `toString` method of `func` to return `string`.
4605
+ *
4606
+ * @private
4607
+ * @param {Function} func The function to modify.
4608
+ * @param {Function} string The `toString` result.
4609
+ * @returns {Function} Returns `func`.
4610
+ */
4611
+ var setToString$2 = shortOut(baseSetToString);
4682
4612
 
4683
- _setToString = setToString;
4684
- return _setToString;
4685
- }
4613
+ var _setToString = setToString$2;
4686
4614
 
4687
4615
  /**
4688
4616
  * A specialized version of `_.forEach` for arrays without support for
@@ -4861,7 +4789,7 @@ var _updateWrapDetails = updateWrapDetails$1;
4861
4789
 
4862
4790
  var getWrapDetails = _getWrapDetails,
4863
4791
  insertWrapDetails = _insertWrapDetails,
4864
- setToString$1 = require_setToString(),
4792
+ setToString$1 = _setToString,
4865
4793
  updateWrapDetails = _updateWrapDetails;
4866
4794
 
4867
4795
  /**
@@ -4955,41 +4883,33 @@ var _getHolder = getHolder$2;
4955
4883
 
4956
4884
  /** Used as references for various `Number` constants. */
4957
4885
 
4958
- var _isIndex;
4959
- var hasRequired_isIndex;
4886
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
4960
4887
 
4961
- function require_isIndex () {
4962
- if (hasRequired_isIndex) return _isIndex;
4963
- hasRequired_isIndex = 1;
4964
- var MAX_SAFE_INTEGER = 9007199254740991;
4888
+ /** Used to detect unsigned integer values. */
4889
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
4965
4890
 
4966
- /** Used to detect unsigned integer values. */
4967
- var reIsUint = /^(?:0|[1-9]\d*)$/;
4968
-
4969
- /**
4970
- * Checks if `value` is a valid array-like index.
4971
- *
4972
- * @private
4973
- * @param {*} value The value to check.
4974
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4975
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4976
- */
4977
- function isIndex(value, length) {
4978
- var type = typeof value;
4979
- length = length == null ? MAX_SAFE_INTEGER : length;
4980
-
4981
- return !!length &&
4982
- (type == 'number' ||
4983
- (type != 'symbol' && reIsUint.test(value))) &&
4984
- (value > -1 && value % 1 == 0 && value < length);
4985
- }
4891
+ /**
4892
+ * Checks if `value` is a valid array-like index.
4893
+ *
4894
+ * @private
4895
+ * @param {*} value The value to check.
4896
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4897
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4898
+ */
4899
+ function isIndex$3(value, length) {
4900
+ var type = typeof value;
4901
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
4986
4902
 
4987
- _isIndex = isIndex;
4988
- return _isIndex;
4903
+ return !!length &&
4904
+ (type == 'number' ||
4905
+ (type != 'symbol' && reIsUint.test(value))) &&
4906
+ (value > -1 && value % 1 == 0 && value < length);
4989
4907
  }
4990
4908
 
4909
+ var _isIndex = isIndex$3;
4910
+
4991
4911
  var copyArray$2 = _copyArray,
4992
- isIndex$2 = require_isIndex();
4912
+ isIndex$2 = _isIndex;
4993
4913
 
4994
4914
  /* Built-in method references for those with the same name as other `lodash` methods. */
4995
4915
  var nativeMin$1 = Math.min;
@@ -5057,7 +4977,7 @@ var composeArgs$1 = _composeArgs,
5057
4977
  getHolder$1 = _getHolder,
5058
4978
  reorder = _reorder,
5059
4979
  replaceHolders$2 = _replaceHolders,
5060
- root$6 = _root;
4980
+ root$7 = _root;
5061
4981
 
5062
4982
  /** Used to compose bitmasks for function metadata. */
5063
4983
  var WRAP_BIND_FLAG$3 = 1,
@@ -5132,7 +5052,7 @@ function createHybrid$2(func, bitmask, thisArg, partials, holders, partialsRight
5132
5052
  if (isAry && ary < length) {
5133
5053
  args.length = ary;
5134
5054
  }
5135
- if (this && this !== root$6 && this instanceof wrapper) {
5055
+ if (this && this !== root$7 && this instanceof wrapper) {
5136
5056
  fn = Ctor || createCtor$2(fn);
5137
5057
  }
5138
5058
  return fn.apply(thisBinding, args);
@@ -5142,13 +5062,13 @@ function createHybrid$2(func, bitmask, thisArg, partials, holders, partialsRight
5142
5062
 
5143
5063
  var _createHybrid = createHybrid$2;
5144
5064
 
5145
- var apply$1 = require_apply(),
5065
+ var apply$2 = _apply,
5146
5066
  createCtor$1 = _createCtor,
5147
5067
  createHybrid$1 = _createHybrid,
5148
5068
  createRecurry = _createRecurry,
5149
5069
  getHolder = _getHolder,
5150
5070
  replaceHolders$1 = _replaceHolders,
5151
- root$5 = _root;
5071
+ root$6 = _root;
5152
5072
 
5153
5073
  /**
5154
5074
  * Creates a function that wraps `func` to enable currying.
@@ -5181,17 +5101,17 @@ function createCurry$1(func, bitmask, arity) {
5181
5101
  func, bitmask, createHybrid$1, wrapper.placeholder, undefined,
5182
5102
  args, holders, undefined, undefined, arity - length);
5183
5103
  }
5184
- var fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func;
5185
- return apply$1(fn, this, args);
5104
+ var fn = (this && this !== root$6 && this instanceof wrapper) ? Ctor : func;
5105
+ return apply$2(fn, this, args);
5186
5106
  }
5187
5107
  return wrapper;
5188
5108
  }
5189
5109
 
5190
5110
  var _createCurry = createCurry$1;
5191
5111
 
5192
- var apply = require_apply(),
5112
+ var apply$1 = _apply,
5193
5113
  createCtor = _createCtor,
5194
- root$4 = _root;
5114
+ root$5 = _root;
5195
5115
 
5196
5116
  /** Used to compose bitmasks for function metadata. */
5197
5117
  var WRAP_BIND_FLAG$2 = 1;
@@ -5218,7 +5138,7 @@ function createPartial$1(func, bitmask, thisArg, partials) {
5218
5138
  leftIndex = -1,
5219
5139
  leftLength = partials.length,
5220
5140
  args = Array(leftLength + argsLength),
5221
- fn = (this && this !== root$4 && this instanceof wrapper) ? Ctor : func;
5141
+ fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func;
5222
5142
 
5223
5143
  while (++leftIndex < leftLength) {
5224
5144
  args[leftIndex] = partials[leftIndex];
@@ -5226,7 +5146,7 @@ function createPartial$1(func, bitmask, thisArg, partials) {
5226
5146
  while (argsLength--) {
5227
5147
  args[leftIndex++] = arguments[++argsIndex];
5228
5148
  }
5229
- return apply(fn, isBind ? thisArg : this, args);
5149
+ return apply$1(fn, isBind ? thisArg : this, args);
5230
5150
  }
5231
5151
  return wrapper;
5232
5152
  }
@@ -5396,7 +5316,7 @@ function isSymbol$6(value) {
5396
5316
  var isSymbol_1 = isSymbol$6;
5397
5317
 
5398
5318
  var baseTrim = _baseTrim,
5399
- isObject$3 = requireIsObject(),
5319
+ isObject$3 = isObject_1,
5400
5320
  isSymbol$5 = isSymbol_1;
5401
5321
 
5402
5322
  /** Used as references for various `Number` constants. */
@@ -5563,7 +5483,7 @@ var WRAP_BIND_FLAG = 1,
5563
5483
  WRAP_PARTIAL_RIGHT_FLAG = 64;
5564
5484
 
5565
5485
  /* Built-in method references for those with the same name as other `lodash` methods. */
5566
- var nativeMax = Math.max;
5486
+ var nativeMax$1 = Math.max;
5567
5487
 
5568
5488
  /**
5569
5489
  * Creates a function that either curries or invokes `func` with optional
@@ -5600,7 +5520,7 @@ function createWrap$3(func, bitmask, thisArg, partials, holders, argPos, ary, ar
5600
5520
  bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
5601
5521
  partials = holders = undefined;
5602
5522
  }
5603
- ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
5523
+ ary = ary === undefined ? ary : nativeMax$1(toInteger(ary), 0);
5604
5524
  arity = arity === undefined ? arity : toInteger(arity);
5605
5525
  length -= holders ? holders.length : 0;
5606
5526
 
@@ -5627,7 +5547,7 @@ function createWrap$3(func, bitmask, thisArg, partials, holders, argPos, ary, ar
5627
5547
  holders = newData[4];
5628
5548
  arity = newData[9] = newData[9] === undefined
5629
5549
  ? (isBindKey ? 0 : func.length)
5630
- : nativeMax(newData[9] - length, 0);
5550
+ : nativeMax$1(newData[9] - length, 0);
5631
5551
 
5632
5552
  if (!arity && bitmask & (WRAP_CURRY_FLAG$1 | WRAP_CURRY_RIGHT_FLAG)) {
5633
5553
  bitmask &= ~(WRAP_CURRY_FLAG$1 | WRAP_CURRY_RIGHT_FLAG);
@@ -5677,40 +5597,32 @@ function ary(func, n, guard) {
5677
5597
 
5678
5598
  var ary_1 = ary;
5679
5599
 
5680
- var _baseAssignValue;
5681
- var hasRequired_baseAssignValue;
5682
-
5683
- function require_baseAssignValue () {
5684
- if (hasRequired_baseAssignValue) return _baseAssignValue;
5685
- hasRequired_baseAssignValue = 1;
5686
- var defineProperty = require_defineProperty();
5687
-
5688
- /**
5689
- * The base implementation of `assignValue` and `assignMergeValue` without
5690
- * value checks.
5691
- *
5692
- * @private
5693
- * @param {Object} object The object to modify.
5694
- * @param {string} key The key of the property to assign.
5695
- * @param {*} value The value to assign.
5696
- */
5697
- function baseAssignValue(object, key, value) {
5698
- if (key == '__proto__' && defineProperty) {
5699
- defineProperty(object, key, {
5700
- 'configurable': true,
5701
- 'enumerable': true,
5702
- 'value': value,
5703
- 'writable': true
5704
- });
5705
- } else {
5706
- object[key] = value;
5707
- }
5708
- }
5600
+ var defineProperty = _defineProperty;
5709
5601
 
5710
- _baseAssignValue = baseAssignValue;
5711
- return _baseAssignValue;
5602
+ /**
5603
+ * The base implementation of `assignValue` and `assignMergeValue` without
5604
+ * value checks.
5605
+ *
5606
+ * @private
5607
+ * @param {Object} object The object to modify.
5608
+ * @param {string} key The key of the property to assign.
5609
+ * @param {*} value The value to assign.
5610
+ */
5611
+ function baseAssignValue$2(object, key, value) {
5612
+ if (key == '__proto__' && defineProperty) {
5613
+ defineProperty(object, key, {
5614
+ 'configurable': true,
5615
+ 'enumerable': true,
5616
+ 'value': value,
5617
+ 'writable': true
5618
+ });
5619
+ } else {
5620
+ object[key] = value;
5621
+ }
5712
5622
  }
5713
5623
 
5624
+ var _baseAssignValue = baseAssignValue$2;
5625
+
5714
5626
  /**
5715
5627
  * Performs a
5716
5628
  * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -5758,7 +5670,7 @@ function requireEq () {
5758
5670
  return eq_1;
5759
5671
  }
5760
5672
 
5761
- var baseAssignValue$1 = require_baseAssignValue(),
5673
+ var baseAssignValue$1 = _baseAssignValue,
5762
5674
  eq$1 = requireEq();
5763
5675
 
5764
5676
  /** Used for built-in method references. */
@@ -5788,7 +5700,7 @@ function assignValue$2(object, key, value) {
5788
5700
  var _assignValue = assignValue$2;
5789
5701
 
5790
5702
  var assignValue$1 = _assignValue,
5791
- baseAssignValue = require_baseAssignValue();
5703
+ baseAssignValue = _baseAssignValue;
5792
5704
 
5793
5705
  /**
5794
5706
  * Copies properties of `source` to `object`.
@@ -5942,113 +5854,90 @@ var isBuffer$5 = {
5942
5854
  * // => [false, false]
5943
5855
  */
5944
5856
 
5945
- var stubFalse_1;
5946
- var hasRequiredStubFalse;
5857
+ function stubFalse() {
5858
+ return false;
5859
+ }
5947
5860
 
5948
- function requireStubFalse () {
5949
- if (hasRequiredStubFalse) return stubFalse_1;
5950
- hasRequiredStubFalse = 1;
5951
- function stubFalse() {
5952
- return false;
5953
- }
5861
+ var stubFalse_1 = stubFalse;
5954
5862
 
5955
- stubFalse_1 = stubFalse;
5956
- return stubFalse_1;
5957
- }
5958
-
5959
- var hasRequiredIsBuffer;
5960
-
5961
- function requireIsBuffer () {
5962
- if (hasRequiredIsBuffer) return isBufferExports;
5963
- hasRequiredIsBuffer = 1;
5964
- (function (module, exports) {
5965
- var root = _root,
5966
- stubFalse = requireStubFalse();
5967
-
5968
- /** Detect free variable `exports`. */
5969
- var freeExports = exports && !exports.nodeType && exports;
5970
-
5971
- /** Detect free variable `module`. */
5972
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
5973
-
5974
- /** Detect the popular CommonJS extension `module.exports`. */
5975
- var moduleExports = freeModule && freeModule.exports === freeExports;
5976
-
5977
- /** Built-in value references. */
5978
- var Buffer = moduleExports ? root.Buffer : undefined;
5979
-
5980
- /* Built-in method references for those with the same name as other `lodash` methods. */
5981
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
5982
-
5983
- /**
5984
- * Checks if `value` is a buffer.
5985
- *
5986
- * @static
5987
- * @memberOf _
5988
- * @since 4.3.0
5989
- * @category Lang
5990
- * @param {*} value The value to check.
5991
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
5992
- * @example
5993
- *
5994
- * _.isBuffer(new Buffer(2));
5995
- * // => true
5996
- *
5997
- * _.isBuffer(new Uint8Array(2));
5998
- * // => false
5999
- */
6000
- var isBuffer = nativeIsBuffer || stubFalse;
6001
-
6002
- module.exports = isBuffer;
6003
- } (isBuffer$5, isBufferExports));
6004
- return isBufferExports;
6005
- }
5863
+ (function (module, exports) {
5864
+ var root = _root,
5865
+ stubFalse = stubFalse_1;
6006
5866
 
6007
- /** Used as references for various `Number` constants. */
5867
+ /** Detect free variable `exports`. */
5868
+ var freeExports = exports && !exports.nodeType && exports;
6008
5869
 
6009
- var isLength_1;
6010
- var hasRequiredIsLength;
5870
+ /** Detect free variable `module`. */
5871
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
5872
+
5873
+ /** Detect the popular CommonJS extension `module.exports`. */
5874
+ var moduleExports = freeModule && freeModule.exports === freeExports;
5875
+
5876
+ /** Built-in value references. */
5877
+ var Buffer = moduleExports ? root.Buffer : undefined;
6011
5878
 
6012
- function requireIsLength () {
6013
- if (hasRequiredIsLength) return isLength_1;
6014
- hasRequiredIsLength = 1;
6015
- var MAX_SAFE_INTEGER = 9007199254740991;
5879
+ /* Built-in method references for those with the same name as other `lodash` methods. */
5880
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
6016
5881
 
6017
5882
  /**
6018
- * Checks if `value` is a valid array-like length.
6019
- *
6020
- * **Note:** This method is loosely based on
6021
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
5883
+ * Checks if `value` is a buffer.
6022
5884
  *
6023
5885
  * @static
6024
5886
  * @memberOf _
6025
- * @since 4.0.0
5887
+ * @since 4.3.0
6026
5888
  * @category Lang
6027
5889
  * @param {*} value The value to check.
6028
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
5890
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
6029
5891
  * @example
6030
5892
  *
6031
- * _.isLength(3);
5893
+ * _.isBuffer(new Buffer(2));
6032
5894
  * // => true
6033
5895
  *
6034
- * _.isLength(Number.MIN_VALUE);
6035
- * // => false
6036
- *
6037
- * _.isLength(Infinity);
6038
- * // => false
6039
- *
6040
- * _.isLength('3');
5896
+ * _.isBuffer(new Uint8Array(2));
6041
5897
  * // => false
6042
5898
  */
6043
- function isLength(value) {
6044
- return typeof value == 'number' &&
6045
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
6046
- }
5899
+ var isBuffer = nativeIsBuffer || stubFalse;
5900
+
5901
+ module.exports = isBuffer;
5902
+ } (isBuffer$5, isBufferExports));
5903
+
5904
+ /** Used as references for various `Number` constants. */
6047
5905
 
6048
- isLength_1 = isLength;
6049
- return isLength_1;
5906
+ var MAX_SAFE_INTEGER = 9007199254740991;
5907
+
5908
+ /**
5909
+ * Checks if `value` is a valid array-like length.
5910
+ *
5911
+ * **Note:** This method is loosely based on
5912
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
5913
+ *
5914
+ * @static
5915
+ * @memberOf _
5916
+ * @since 4.0.0
5917
+ * @category Lang
5918
+ * @param {*} value The value to check.
5919
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
5920
+ * @example
5921
+ *
5922
+ * _.isLength(3);
5923
+ * // => true
5924
+ *
5925
+ * _.isLength(Number.MIN_VALUE);
5926
+ * // => false
5927
+ *
5928
+ * _.isLength(Infinity);
5929
+ * // => false
5930
+ *
5931
+ * _.isLength('3');
5932
+ * // => false
5933
+ */
5934
+ function isLength$2(value) {
5935
+ return typeof value == 'number' &&
5936
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
6050
5937
  }
6051
5938
 
5939
+ var isLength_1 = isLength$2;
5940
+
6052
5941
  var _baseIsTypedArray;
6053
5942
  var hasRequired_baseIsTypedArray;
6054
5943
 
@@ -6056,7 +5945,7 @@ function require_baseIsTypedArray () {
6056
5945
  if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
6057
5946
  hasRequired_baseIsTypedArray = 1;
6058
5947
  var baseGetTag = _baseGetTag,
6059
- isLength = requireIsLength(),
5948
+ isLength = isLength_1,
6060
5949
  isObjectLike = isObjectLike_1;
6061
5950
 
6062
5951
  /** `Object#toString` result references. */
@@ -6126,67 +6015,52 @@ function require_baseIsTypedArray () {
6126
6015
  * @returns {Function} Returns the new capped function.
6127
6016
  */
6128
6017
 
6129
- var _baseUnary;
6130
- var hasRequired_baseUnary;
6131
-
6132
- function require_baseUnary () {
6133
- if (hasRequired_baseUnary) return _baseUnary;
6134
- hasRequired_baseUnary = 1;
6135
- function baseUnary(func) {
6136
- return function(value) {
6137
- return func(value);
6138
- };
6139
- }
6140
-
6141
- _baseUnary = baseUnary;
6142
- return _baseUnary;
6018
+ function baseUnary$2(func) {
6019
+ return function(value) {
6020
+ return func(value);
6021
+ };
6143
6022
  }
6144
6023
 
6024
+ var _baseUnary = baseUnary$2;
6025
+
6145
6026
  var _nodeUtilExports = {};
6146
6027
  var _nodeUtil = {
6147
6028
  get exports(){ return _nodeUtilExports; },
6148
6029
  set exports(v){ _nodeUtilExports = v; },
6149
6030
  };
6150
6031
 
6151
- var hasRequired_nodeUtil;
6152
-
6153
- function require_nodeUtil () {
6154
- if (hasRequired_nodeUtil) return _nodeUtilExports;
6155
- hasRequired_nodeUtil = 1;
6156
- (function (module, exports) {
6157
- var freeGlobal = _freeGlobal;
6032
+ (function (module, exports) {
6033
+ var freeGlobal = _freeGlobal;
6158
6034
 
6159
- /** Detect free variable `exports`. */
6160
- var freeExports = exports && !exports.nodeType && exports;
6035
+ /** Detect free variable `exports`. */
6036
+ var freeExports = exports && !exports.nodeType && exports;
6161
6037
 
6162
- /** Detect free variable `module`. */
6163
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
6038
+ /** Detect free variable `module`. */
6039
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
6164
6040
 
6165
- /** Detect the popular CommonJS extension `module.exports`. */
6166
- var moduleExports = freeModule && freeModule.exports === freeExports;
6041
+ /** Detect the popular CommonJS extension `module.exports`. */
6042
+ var moduleExports = freeModule && freeModule.exports === freeExports;
6167
6043
 
6168
- /** Detect free variable `process` from Node.js. */
6169
- var freeProcess = moduleExports && freeGlobal.process;
6044
+ /** Detect free variable `process` from Node.js. */
6045
+ var freeProcess = moduleExports && freeGlobal.process;
6170
6046
 
6171
- /** Used to access faster Node.js helpers. */
6172
- var nodeUtil = (function() {
6173
- try {
6174
- // Use `util.types` for Node.js 10+.
6175
- var types = freeModule && freeModule.require && freeModule.require('util').types;
6047
+ /** Used to access faster Node.js helpers. */
6048
+ var nodeUtil = (function() {
6049
+ try {
6050
+ // Use `util.types` for Node.js 10+.
6051
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
6176
6052
 
6177
- if (types) {
6178
- return types;
6179
- }
6053
+ if (types) {
6054
+ return types;
6055
+ }
6180
6056
 
6181
- // Legacy `process.binding('util')` for Node.js < 10.
6182
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
6183
- } catch (e) {}
6184
- }());
6057
+ // Legacy `process.binding('util')` for Node.js < 10.
6058
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
6059
+ } catch (e) {}
6060
+ }());
6185
6061
 
6186
- module.exports = nodeUtil;
6062
+ module.exports = nodeUtil;
6187
6063
  } (_nodeUtil, _nodeUtilExports));
6188
- return _nodeUtilExports;
6189
- }
6190
6064
 
6191
6065
  var isTypedArray_1;
6192
6066
  var hasRequiredIsTypedArray;
@@ -6195,8 +6069,8 @@ function requireIsTypedArray () {
6195
6069
  if (hasRequiredIsTypedArray) return isTypedArray_1;
6196
6070
  hasRequiredIsTypedArray = 1;
6197
6071
  var baseIsTypedArray = require_baseIsTypedArray(),
6198
- baseUnary = require_baseUnary(),
6199
- nodeUtil = require_nodeUtil();
6072
+ baseUnary = _baseUnary,
6073
+ nodeUtil = _nodeUtilExports;
6200
6074
 
6201
6075
  /* Node.js helper references. */
6202
6076
  var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
@@ -6227,8 +6101,8 @@ function requireIsTypedArray () {
6227
6101
  var baseTimes = _baseTimes,
6228
6102
  isArguments$2 = requireIsArguments(),
6229
6103
  isArray$f = isArray_1,
6230
- isBuffer$4 = requireIsBuffer(),
6231
- isIndex$1 = require_isIndex(),
6104
+ isBuffer$4 = isBufferExports,
6105
+ isIndex$1 = _isIndex,
6232
6106
  isTypedArray$1 = requireIsTypedArray();
6233
6107
 
6234
6108
  /** Used for built-in method references. */
@@ -6285,14 +6159,14 @@ var objectProto$6 = Object.prototype;
6285
6159
  * @param {*} value The value to check.
6286
6160
  * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
6287
6161
  */
6288
- function isPrototype$1(value) {
6162
+ function isPrototype$2(value) {
6289
6163
  var Ctor = value && value.constructor,
6290
6164
  proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$6;
6291
6165
 
6292
6166
  return value === proto;
6293
6167
  }
6294
6168
 
6295
- var _isPrototype = isPrototype$1;
6169
+ var _isPrototype = isPrototype$2;
6296
6170
 
6297
6171
  /**
6298
6172
  * Creates a unary function that invokes `func` with its argument transformed.
@@ -6318,7 +6192,7 @@ var nativeKeys$1 = overArg$1(Object.keys, Object);
6318
6192
 
6319
6193
  var _nativeKeys = nativeKeys$1;
6320
6194
 
6321
- var isPrototype = _isPrototype,
6195
+ var isPrototype$1 = _isPrototype,
6322
6196
  nativeKeys = _nativeKeys;
6323
6197
 
6324
6198
  /** Used for built-in method references. */
@@ -6335,7 +6209,7 @@ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
6335
6209
  * @returns {Array} Returns the array of property names.
6336
6210
  */
6337
6211
  function baseKeys$1(object) {
6338
- if (!isPrototype(object)) {
6212
+ if (!isPrototype$1(object)) {
6339
6213
  return nativeKeys(object);
6340
6214
  }
6341
6215
  var result = [];
@@ -6349,51 +6223,43 @@ function baseKeys$1(object) {
6349
6223
 
6350
6224
  var _baseKeys = baseKeys$1;
6351
6225
 
6352
- var isArrayLike_1;
6353
- var hasRequiredIsArrayLike;
6354
-
6355
- function requireIsArrayLike () {
6356
- if (hasRequiredIsArrayLike) return isArrayLike_1;
6357
- hasRequiredIsArrayLike = 1;
6358
- var isFunction = isFunction_1,
6359
- isLength = requireIsLength();
6360
-
6361
- /**
6362
- * Checks if `value` is array-like. A value is considered array-like if it's
6363
- * not a function and has a `value.length` that's an integer greater than or
6364
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
6365
- *
6366
- * @static
6367
- * @memberOf _
6368
- * @since 4.0.0
6369
- * @category Lang
6370
- * @param {*} value The value to check.
6371
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
6372
- * @example
6373
- *
6374
- * _.isArrayLike([1, 2, 3]);
6375
- * // => true
6376
- *
6377
- * _.isArrayLike(document.body.children);
6378
- * // => true
6379
- *
6380
- * _.isArrayLike('abc');
6381
- * // => true
6382
- *
6383
- * _.isArrayLike(_.noop);
6384
- * // => false
6385
- */
6386
- function isArrayLike(value) {
6387
- return value != null && isLength(value.length) && !isFunction(value);
6388
- }
6226
+ var isFunction$1 = isFunction_1,
6227
+ isLength$1 = isLength_1;
6389
6228
 
6390
- isArrayLike_1 = isArrayLike;
6391
- return isArrayLike_1;
6229
+ /**
6230
+ * Checks if `value` is array-like. A value is considered array-like if it's
6231
+ * not a function and has a `value.length` that's an integer greater than or
6232
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
6233
+ *
6234
+ * @static
6235
+ * @memberOf _
6236
+ * @since 4.0.0
6237
+ * @category Lang
6238
+ * @param {*} value The value to check.
6239
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
6240
+ * @example
6241
+ *
6242
+ * _.isArrayLike([1, 2, 3]);
6243
+ * // => true
6244
+ *
6245
+ * _.isArrayLike(document.body.children);
6246
+ * // => true
6247
+ *
6248
+ * _.isArrayLike('abc');
6249
+ * // => true
6250
+ *
6251
+ * _.isArrayLike(_.noop);
6252
+ * // => false
6253
+ */
6254
+ function isArrayLike$1(value) {
6255
+ return value != null && isLength$1(value.length) && !isFunction$1(value);
6392
6256
  }
6393
6257
 
6258
+ var isArrayLike_1 = isArrayLike$1;
6259
+
6394
6260
  var arrayLikeKeys = _arrayLikeKeys,
6395
6261
  baseKeys = _baseKeys,
6396
- isArrayLike = requireIsArrayLike();
6262
+ isArrayLike = isArrayLike_1;
6397
6263
 
6398
6264
  /**
6399
6265
  * Creates an array of the own enumerable property names of `object`.
@@ -6774,10 +6640,10 @@ function require_stackHas () {
6774
6640
  }
6775
6641
 
6776
6642
  var getNative$3 = _getNative,
6777
- root$3 = _root;
6643
+ root$4 = _root;
6778
6644
 
6779
6645
  /* Built-in method references that are verified to be native. */
6780
- var Map$2 = getNative$3(root$3, 'Map');
6646
+ var Map$2 = getNative$3(root$4, 'Map');
6781
6647
 
6782
6648
  var _Map = Map$2;
6783
6649
 
@@ -7337,7 +7203,7 @@ var hasRequired_baseKeysIn;
7337
7203
  function require_baseKeysIn () {
7338
7204
  if (hasRequired_baseKeysIn) return _baseKeysIn;
7339
7205
  hasRequired_baseKeysIn = 1;
7340
- var isObject = requireIsObject(),
7206
+ var isObject = isObject_1,
7341
7207
  isPrototype = _isPrototype,
7342
7208
  nativeKeysIn = require_nativeKeysIn();
7343
7209
 
@@ -7381,7 +7247,7 @@ function requireKeysIn () {
7381
7247
  hasRequiredKeysIn = 1;
7382
7248
  var arrayLikeKeys = _arrayLikeKeys,
7383
7249
  baseKeysIn = require_baseKeysIn(),
7384
- isArrayLike = requireIsArrayLike();
7250
+ isArrayLike = isArrayLike_1;
7385
7251
 
7386
7252
  /**
7387
7253
  * Creates an array of the own and inherited enumerable property names of `object`.
@@ -7438,50 +7304,43 @@ var _cloneBuffer = {
7438
7304
  set exports(v){ _cloneBufferExports = v; },
7439
7305
  };
7440
7306
 
7441
- var hasRequired_cloneBuffer;
7442
-
7443
- function require_cloneBuffer () {
7444
- if (hasRequired_cloneBuffer) return _cloneBufferExports;
7445
- hasRequired_cloneBuffer = 1;
7446
- (function (module, exports) {
7447
- var root = _root;
7448
-
7449
- /** Detect free variable `exports`. */
7450
- var freeExports = exports && !exports.nodeType && exports;
7451
-
7452
- /** Detect free variable `module`. */
7453
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
7454
-
7455
- /** Detect the popular CommonJS extension `module.exports`. */
7456
- var moduleExports = freeModule && freeModule.exports === freeExports;
7457
-
7458
- /** Built-in value references. */
7459
- var Buffer = moduleExports ? root.Buffer : undefined,
7460
- allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
7461
-
7462
- /**
7463
- * Creates a clone of `buffer`.
7464
- *
7465
- * @private
7466
- * @param {Buffer} buffer The buffer to clone.
7467
- * @param {boolean} [isDeep] Specify a deep clone.
7468
- * @returns {Buffer} Returns the cloned buffer.
7469
- */
7470
- function cloneBuffer(buffer, isDeep) {
7471
- if (isDeep) {
7472
- return buffer.slice();
7473
- }
7474
- var length = buffer.length,
7475
- result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
7476
-
7477
- buffer.copy(result);
7478
- return result;
7479
- }
7307
+ (function (module, exports) {
7308
+ var root = _root;
7309
+
7310
+ /** Detect free variable `exports`. */
7311
+ var freeExports = exports && !exports.nodeType && exports;
7312
+
7313
+ /** Detect free variable `module`. */
7314
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
7315
+
7316
+ /** Detect the popular CommonJS extension `module.exports`. */
7317
+ var moduleExports = freeModule && freeModule.exports === freeExports;
7318
+
7319
+ /** Built-in value references. */
7320
+ var Buffer = moduleExports ? root.Buffer : undefined,
7321
+ allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
7480
7322
 
7481
- module.exports = cloneBuffer;
7323
+ /**
7324
+ * Creates a clone of `buffer`.
7325
+ *
7326
+ * @private
7327
+ * @param {Buffer} buffer The buffer to clone.
7328
+ * @param {boolean} [isDeep] Specify a deep clone.
7329
+ * @returns {Buffer} Returns the cloned buffer.
7330
+ */
7331
+ function cloneBuffer(buffer, isDeep) {
7332
+ if (isDeep) {
7333
+ return buffer.slice();
7334
+ }
7335
+ var length = buffer.length,
7336
+ result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
7337
+
7338
+ buffer.copy(result);
7339
+ return result;
7340
+ }
7341
+
7342
+ module.exports = cloneBuffer;
7482
7343
  } (_cloneBuffer, _cloneBufferExports));
7483
- return _cloneBufferExports;
7484
- }
7485
7344
 
7486
7345
  /**
7487
7346
  * A specialized version of `_.filter` for arrays without support for
@@ -7608,12 +7467,12 @@ var _arrayPush = arrayPush$3;
7608
7467
  var overArg = _overArg;
7609
7468
 
7610
7469
  /** Built-in value references. */
7611
- var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
7470
+ var getPrototype$3 = overArg(Object.getPrototypeOf, Object);
7612
7471
 
7613
- var _getPrototype = getPrototype$2;
7472
+ var _getPrototype = getPrototype$3;
7614
7473
 
7615
7474
  var arrayPush$2 = _arrayPush,
7616
- getPrototype$1 = _getPrototype,
7475
+ getPrototype$2 = _getPrototype,
7617
7476
  getSymbols$1 = _getSymbols,
7618
7477
  stubArray = stubArray_1;
7619
7478
 
@@ -7631,7 +7490,7 @@ var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
7631
7490
  var result = [];
7632
7491
  while (object) {
7633
7492
  arrayPush$2(result, getSymbols$1(object));
7634
- object = getPrototype$1(object);
7493
+ object = getPrototype$2(object);
7635
7494
  }
7636
7495
  return result;
7637
7496
  };
@@ -7712,26 +7571,26 @@ function getAllKeysIn$1(object) {
7712
7571
  var _getAllKeysIn = getAllKeysIn$1;
7713
7572
 
7714
7573
  var getNative$2 = _getNative,
7715
- root$2 = _root;
7574
+ root$3 = _root;
7716
7575
 
7717
7576
  /* Built-in method references that are verified to be native. */
7718
- var DataView$2 = getNative$2(root$2, 'DataView');
7577
+ var DataView$2 = getNative$2(root$3, 'DataView');
7719
7578
 
7720
7579
  var _DataView = DataView$2;
7721
7580
 
7722
7581
  var getNative$1 = _getNative,
7723
- root$1 = _root;
7582
+ root$2 = _root;
7724
7583
 
7725
7584
  /* Built-in method references that are verified to be native. */
7726
- var Promise$2 = getNative$1(root$1, 'Promise');
7585
+ var Promise$2 = getNative$1(root$2, 'Promise');
7727
7586
 
7728
7587
  var _Promise = Promise$2;
7729
7588
 
7730
7589
  var getNative = _getNative,
7731
- root = _root;
7590
+ root$1 = _root;
7732
7591
 
7733
7592
  /* Built-in method references that are verified to be native. */
7734
- var Set$2 = getNative(root, 'Set');
7593
+ var Set$2 = getNative(root$1, 'Set');
7735
7594
 
7736
7595
  var _Set = Set$2;
7737
7596
 
@@ -7822,47 +7681,31 @@ function initCloneArray$1(array) {
7822
7681
 
7823
7682
  var _initCloneArray = initCloneArray$1;
7824
7683
 
7825
- var _Uint8Array;
7826
- var hasRequired_Uint8Array;
7827
-
7828
- function require_Uint8Array () {
7829
- if (hasRequired_Uint8Array) return _Uint8Array;
7830
- hasRequired_Uint8Array = 1;
7831
- var root = _root;
7832
-
7833
- /** Built-in value references. */
7834
- var Uint8Array = root.Uint8Array;
7835
-
7836
- _Uint8Array = Uint8Array;
7837
- return _Uint8Array;
7838
- }
7684
+ var root = _root;
7839
7685
 
7840
- var _cloneArrayBuffer;
7841
- var hasRequired_cloneArrayBuffer;
7686
+ /** Built-in value references. */
7687
+ var Uint8Array$3 = root.Uint8Array;
7842
7688
 
7843
- function require_cloneArrayBuffer () {
7844
- if (hasRequired_cloneArrayBuffer) return _cloneArrayBuffer;
7845
- hasRequired_cloneArrayBuffer = 1;
7846
- var Uint8Array = require_Uint8Array();
7689
+ var _Uint8Array = Uint8Array$3;
7847
7690
 
7848
- /**
7849
- * Creates a clone of `arrayBuffer`.
7850
- *
7851
- * @private
7852
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
7853
- * @returns {ArrayBuffer} Returns the cloned array buffer.
7854
- */
7855
- function cloneArrayBuffer(arrayBuffer) {
7856
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
7857
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
7858
- return result;
7859
- }
7691
+ var Uint8Array$2 = _Uint8Array;
7860
7692
 
7861
- _cloneArrayBuffer = cloneArrayBuffer;
7862
- return _cloneArrayBuffer;
7693
+ /**
7694
+ * Creates a clone of `arrayBuffer`.
7695
+ *
7696
+ * @private
7697
+ * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
7698
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
7699
+ */
7700
+ function cloneArrayBuffer$2(arrayBuffer) {
7701
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
7702
+ new Uint8Array$2(result).set(new Uint8Array$2(arrayBuffer));
7703
+ return result;
7863
7704
  }
7864
7705
 
7865
- var cloneArrayBuffer$1 = require_cloneArrayBuffer();
7706
+ var _cloneArrayBuffer = cloneArrayBuffer$2;
7707
+
7708
+ var cloneArrayBuffer$1 = _cloneArrayBuffer;
7866
7709
 
7867
7710
  /**
7868
7711
  * Creates a clone of `dataView`.
@@ -7923,7 +7766,7 @@ var hasRequired_cloneTypedArray;
7923
7766
  function require_cloneTypedArray () {
7924
7767
  if (hasRequired_cloneTypedArray) return _cloneTypedArray;
7925
7768
  hasRequired_cloneTypedArray = 1;
7926
- var cloneArrayBuffer = require_cloneArrayBuffer();
7769
+ var cloneArrayBuffer = _cloneArrayBuffer;
7927
7770
 
7928
7771
  /**
7929
7772
  * Creates a clone of `typedArray`.
@@ -7942,7 +7785,7 @@ function require_cloneTypedArray () {
7942
7785
  return _cloneTypedArray;
7943
7786
  }
7944
7787
 
7945
- var cloneArrayBuffer = require_cloneArrayBuffer(),
7788
+ var cloneArrayBuffer = _cloneArrayBuffer,
7946
7789
  cloneDataView = _cloneDataView,
7947
7790
  cloneRegExp = _cloneRegExp,
7948
7791
  cloneSymbol = _cloneSymbol,
@@ -8020,33 +7863,25 @@ function initCloneByTag$1(object, tag, isDeep) {
8020
7863
 
8021
7864
  var _initCloneByTag = initCloneByTag$1;
8022
7865
 
8023
- var _initCloneObject;
8024
- var hasRequired_initCloneObject;
8025
-
8026
- function require_initCloneObject () {
8027
- if (hasRequired_initCloneObject) return _initCloneObject;
8028
- hasRequired_initCloneObject = 1;
8029
- var baseCreate = require_baseCreate(),
8030
- getPrototype = _getPrototype,
8031
- isPrototype = _isPrototype;
8032
-
8033
- /**
8034
- * Initializes an object clone.
8035
- *
8036
- * @private
8037
- * @param {Object} object The object to clone.
8038
- * @returns {Object} Returns the initialized clone.
8039
- */
8040
- function initCloneObject(object) {
8041
- return (typeof object.constructor == 'function' && !isPrototype(object))
8042
- ? baseCreate(getPrototype(object))
8043
- : {};
8044
- }
7866
+ var baseCreate = _baseCreate,
7867
+ getPrototype$1 = _getPrototype,
7868
+ isPrototype = _isPrototype;
8045
7869
 
8046
- _initCloneObject = initCloneObject;
8047
- return _initCloneObject;
7870
+ /**
7871
+ * Initializes an object clone.
7872
+ *
7873
+ * @private
7874
+ * @param {Object} object The object to clone.
7875
+ * @returns {Object} Returns the initialized clone.
7876
+ */
7877
+ function initCloneObject$1(object) {
7878
+ return (typeof object.constructor == 'function' && !isPrototype(object))
7879
+ ? baseCreate(getPrototype$1(object))
7880
+ : {};
8048
7881
  }
8049
7882
 
7883
+ var _initCloneObject = initCloneObject$1;
7884
+
8050
7885
  var getTag$4 = _getTag,
8051
7886
  isObjectLike$5 = isObjectLike_1;
8052
7887
 
@@ -8067,8 +7902,8 @@ function baseIsMap$1(value) {
8067
7902
  var _baseIsMap = baseIsMap$1;
8068
7903
 
8069
7904
  var baseIsMap = _baseIsMap,
8070
- baseUnary$1 = require_baseUnary(),
8071
- nodeUtil$1 = require_nodeUtil();
7905
+ baseUnary$1 = _baseUnary,
7906
+ nodeUtil$1 = _nodeUtilExports;
8072
7907
 
8073
7908
  /* Node.js helper references. */
8074
7909
  var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
@@ -8114,8 +7949,8 @@ function baseIsSet$1(value) {
8114
7949
  var _baseIsSet = baseIsSet$1;
8115
7950
 
8116
7951
  var baseIsSet = _baseIsSet,
8117
- baseUnary = require_baseUnary(),
8118
- nodeUtil = require_nodeUtil();
7952
+ baseUnary = _baseUnary,
7953
+ nodeUtil = _nodeUtilExports;
8119
7954
 
8120
7955
  /* Node.js helper references. */
8121
7956
  var nodeIsSet = nodeUtil && nodeUtil.isSet;
@@ -8146,7 +7981,7 @@ var Stack$2 = require_Stack(),
8146
7981
  assignValue = _assignValue,
8147
7982
  baseAssign = _baseAssign,
8148
7983
  baseAssignIn = _baseAssignIn,
8149
- cloneBuffer = require_cloneBuffer(),
7984
+ cloneBuffer = _cloneBufferExports,
8150
7985
  copyArray$1 = _copyArray,
8151
7986
  copySymbols = _copySymbols,
8152
7987
  copySymbolsIn = _copySymbolsIn,
@@ -8155,11 +7990,11 @@ var Stack$2 = require_Stack(),
8155
7990
  getTag$2 = _getTag,
8156
7991
  initCloneArray = _initCloneArray,
8157
7992
  initCloneByTag = _initCloneByTag,
8158
- initCloneObject = require_initCloneObject(),
7993
+ initCloneObject = _initCloneObject,
8159
7994
  isArray$d = isArray_1,
8160
- isBuffer$3 = requireIsBuffer(),
7995
+ isBuffer$3 = isBufferExports,
8161
7996
  isMap$1 = isMap_1,
8162
- isObject$2 = requireIsObject(),
7997
+ isObject$2 = isObject_1,
8163
7998
  isSet$1 = isSet_1,
8164
7999
  keys$1 = keys_1,
8165
8000
  keysIn = requireKeysIn();
@@ -8763,7 +8598,7 @@ function setToArray$1(set) {
8763
8598
  var _setToArray = setToArray$1;
8764
8599
 
8765
8600
  var Symbol$3 = _Symbol,
8766
- Uint8Array$1 = require_Uint8Array(),
8601
+ Uint8Array$1 = _Uint8Array,
8767
8602
  eq = requireEq(),
8768
8603
  equalArrays$1 = _equalArrays,
8769
8604
  mapToArray = _mapToArray,
@@ -8972,7 +8807,7 @@ var Stack$1 = require_Stack(),
8972
8807
  equalObjects = _equalObjects,
8973
8808
  getTag = _getTag,
8974
8809
  isArray$c = isArray_1,
8975
- isBuffer$2 = requireIsBuffer(),
8810
+ isBuffer$2 = isBufferExports,
8976
8811
  isTypedArray = requireIsTypedArray();
8977
8812
 
8978
8813
  /** Used to compose bitmasks for value comparisons. */
@@ -9142,7 +8977,7 @@ function baseIsMatch$1(object, source, matchData, customizer) {
9142
8977
 
9143
8978
  var _baseIsMatch = baseIsMatch$1;
9144
8979
 
9145
- var isObject$1 = requireIsObject();
8980
+ var isObject$1 = isObject_1;
9146
8981
 
9147
8982
  /**
9148
8983
  * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
@@ -9598,8 +9433,8 @@ var _baseHasIn = baseHasIn$1;
9598
9433
  var castPath = _castPath,
9599
9434
  isArguments$1 = requireIsArguments(),
9600
9435
  isArray$8 = isArray_1,
9601
- isIndex = require_isIndex(),
9602
- isLength = requireIsLength(),
9436
+ isIndex = _isIndex,
9437
+ isLength = isLength_1,
9603
9438
  toKey$3 = _toKey;
9604
9439
 
9605
9440
  /**
@@ -9772,7 +9607,7 @@ var property_1 = property$1;
9772
9607
 
9773
9608
  var baseMatches = _baseMatches,
9774
9609
  baseMatchesProperty = _baseMatchesProperty,
9775
- identity = requireIdentity(),
9610
+ identity = identity_1,
9776
9611
  isArray$7 = isArray_1,
9777
9612
  property = property_1;
9778
9613
 
@@ -9939,54 +9774,46 @@ function flatten$1(array) {
9939
9774
 
9940
9775
  var flatten_1 = flatten$1;
9941
9776
 
9942
- var _overRest;
9943
- var hasRequired_overRest;
9944
-
9945
- function require_overRest () {
9946
- if (hasRequired_overRest) return _overRest;
9947
- hasRequired_overRest = 1;
9948
- var apply = require_apply();
9777
+ var apply = _apply;
9949
9778
 
9950
- /* Built-in method references for those with the same name as other `lodash` methods. */
9951
- var nativeMax = Math.max;
9952
-
9953
- /**
9954
- * A specialized version of `baseRest` which transforms the rest array.
9955
- *
9956
- * @private
9957
- * @param {Function} func The function to apply a rest parameter to.
9958
- * @param {number} [start=func.length-1] The start position of the rest parameter.
9959
- * @param {Function} transform The rest array transform.
9960
- * @returns {Function} Returns the new function.
9961
- */
9962
- function overRest(func, start, transform) {
9963
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
9964
- return function() {
9965
- var args = arguments,
9966
- index = -1,
9967
- length = nativeMax(args.length - start, 0),
9968
- array = Array(length);
9779
+ /* Built-in method references for those with the same name as other `lodash` methods. */
9780
+ var nativeMax = Math.max;
9969
9781
 
9970
- while (++index < length) {
9971
- array[index] = args[start + index];
9972
- }
9973
- index = -1;
9974
- var otherArgs = Array(start + 1);
9975
- while (++index < start) {
9976
- otherArgs[index] = args[index];
9977
- }
9978
- otherArgs[start] = transform(array);
9979
- return apply(func, this, otherArgs);
9980
- };
9981
- }
9782
+ /**
9783
+ * A specialized version of `baseRest` which transforms the rest array.
9784
+ *
9785
+ * @private
9786
+ * @param {Function} func The function to apply a rest parameter to.
9787
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
9788
+ * @param {Function} transform The rest array transform.
9789
+ * @returns {Function} Returns the new function.
9790
+ */
9791
+ function overRest$1(func, start, transform) {
9792
+ start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
9793
+ return function() {
9794
+ var args = arguments,
9795
+ index = -1,
9796
+ length = nativeMax(args.length - start, 0),
9797
+ array = Array(length);
9982
9798
 
9983
- _overRest = overRest;
9984
- return _overRest;
9799
+ while (++index < length) {
9800
+ array[index] = args[start + index];
9801
+ }
9802
+ index = -1;
9803
+ var otherArgs = Array(start + 1);
9804
+ while (++index < start) {
9805
+ otherArgs[index] = args[index];
9806
+ }
9807
+ otherArgs[start] = transform(array);
9808
+ return apply(func, this, otherArgs);
9809
+ };
9985
9810
  }
9986
9811
 
9812
+ var _overRest = overRest$1;
9813
+
9987
9814
  var flatten = flatten_1,
9988
- overRest = require_overRest(),
9989
- setToString = require_setToString();
9815
+ overRest = _overRest,
9816
+ setToString = _setToString;
9990
9817
 
9991
9818
  /**
9992
9819
  * A specialized version of `baseRest` which flattens the rest array.
@@ -10111,7 +9938,7 @@ var hasRequired_assignMergeValue;
10111
9938
  function require_assignMergeValue () {
10112
9939
  if (hasRequired_assignMergeValue) return _assignMergeValue;
10113
9940
  hasRequired_assignMergeValue = 1;
10114
- var baseAssignValue = require_baseAssignValue(),
9941
+ var baseAssignValue = _baseAssignValue,
10115
9942
  eq = requireEq();
10116
9943
 
10117
9944
  /**
@@ -10200,7 +10027,7 @@ var hasRequiredIsArrayLikeObject;
10200
10027
  function requireIsArrayLikeObject () {
10201
10028
  if (hasRequiredIsArrayLikeObject) return isArrayLikeObject_1;
10202
10029
  hasRequiredIsArrayLikeObject = 1;
10203
- var isArrayLike = requireIsArrayLike(),
10030
+ var isArrayLike = isArrayLike_1,
10204
10031
  isObjectLike = isObjectLike_1;
10205
10032
 
10206
10033
  /**
@@ -10315,16 +10142,16 @@ function require_baseMergeDeep () {
10315
10142
  if (hasRequired_baseMergeDeep) return _baseMergeDeep;
10316
10143
  hasRequired_baseMergeDeep = 1;
10317
10144
  var assignMergeValue = require_assignMergeValue(),
10318
- cloneBuffer = require_cloneBuffer(),
10145
+ cloneBuffer = _cloneBufferExports,
10319
10146
  cloneTypedArray = require_cloneTypedArray(),
10320
10147
  copyArray = _copyArray,
10321
- initCloneObject = require_initCloneObject(),
10148
+ initCloneObject = _initCloneObject,
10322
10149
  isArguments = requireIsArguments(),
10323
10150
  isArray = isArray_1,
10324
10151
  isArrayLikeObject = requireIsArrayLikeObject(),
10325
- isBuffer = requireIsBuffer(),
10152
+ isBuffer = isBufferExports,
10326
10153
  isFunction = isFunction_1,
10327
- isObject = requireIsObject(),
10154
+ isObject = isObject_1,
10328
10155
  isPlainObject = isPlainObject_1,
10329
10156
  isTypedArray = requireIsTypedArray(),
10330
10157
  safeGet = require_safeGet(),
@@ -10421,7 +10248,7 @@ function require_baseMerge () {
10421
10248
  assignMergeValue = require_assignMergeValue(),
10422
10249
  baseFor = require_baseFor(),
10423
10250
  baseMergeDeep = require_baseMergeDeep(),
10424
- isObject = requireIsObject(),
10251
+ isObject = isObject_1,
10425
10252
  keysIn = requireKeysIn(),
10426
10253
  safeGet = require_safeGet();
10427
10254
 
@@ -10468,9 +10295,9 @@ var hasRequired_baseRest;
10468
10295
  function require_baseRest () {
10469
10296
  if (hasRequired_baseRest) return _baseRest;
10470
10297
  hasRequired_baseRest = 1;
10471
- var identity = requireIdentity(),
10472
- overRest = require_overRest(),
10473
- setToString = require_setToString();
10298
+ var identity = identity_1,
10299
+ overRest = _overRest,
10300
+ setToString = _setToString;
10474
10301
 
10475
10302
  /**
10476
10303
  * The base implementation of `_.rest` which doesn't validate or coerce arguments.
@@ -10495,9 +10322,9 @@ function require_isIterateeCall () {
10495
10322
  if (hasRequired_isIterateeCall) return _isIterateeCall;
10496
10323
  hasRequired_isIterateeCall = 1;
10497
10324
  var eq = requireEq(),
10498
- isArrayLike = requireIsArrayLike(),
10499
- isIndex = require_isIndex(),
10500
- isObject = requireIsObject();
10325
+ isArrayLike = isArrayLike_1,
10326
+ isIndex = _isIndex,
10327
+ isObject = isObject_1;
10501
10328
 
10502
10329
  /**
10503
10330
  * Checks if the given arguments are from an iteratee call.
@@ -14064,7 +13891,7 @@ var ipaddr = {
14064
13891
  }).call(commonjsGlobal);
14065
13892
  } (ipaddr));
14066
13893
 
14067
- var __async$1c = (__this, __arguments, generator) => {
13894
+ var __async$1d = (__this, __arguments, generator) => {
14068
13895
  return new Promise((resolve, reject) => {
14069
13896
  var fulfilled = (value) => {
14070
13897
  try {
@@ -14084,7 +13911,7 @@ var __async$1c = (__this, __arguments, generator) => {
14084
13911
  step((generator = generator.apply(__this, __arguments)).next());
14085
13912
  });
14086
13913
  };
14087
- const getEndUserIpAddress = () => __async$1c(void 0, null, function* () {
13914
+ const getEndUserIpAddress = () => __async$1d(void 0, null, function* () {
14088
13915
  try {
14089
13916
  const response = yield axios.get("https://api.ipify.org/?format=json");
14090
13917
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -14176,7 +14003,7 @@ var __objRest$v = (source, exclude) => {
14176
14003
  }
14177
14004
  return target;
14178
14005
  };
14179
- var __async$1b = (__this, __arguments, generator) => {
14006
+ var __async$1c = (__this, __arguments, generator) => {
14180
14007
  return new Promise((resolve, reject) => {
14181
14008
  var fulfilled = (value) => {
14182
14009
  try {
@@ -14216,7 +14043,7 @@ class CarriersAPI {
14216
14043
  /**
14217
14044
  * The `connect` method connects a carrier account to a user's ShipEngine account.
14218
14045
  */
14219
- this.connect = (_a) => __async$1b(this, null, function* () {
14046
+ this.connect = (_a) => __async$1c(this, null, function* () {
14220
14047
  var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
14221
14048
  const endUserIpAddress = yield getEndUserIpAddress();
14222
14049
  if (!endUserIpAddress)
@@ -14330,7 +14157,7 @@ var __objRest$u = (source, exclude) => {
14330
14157
  }
14331
14158
  return target;
14332
14159
  };
14333
- var __async$1a = (__this, __arguments, generator) => {
14160
+ var __async$1b = (__this, __arguments, generator) => {
14334
14161
  return new Promise((resolve, reject) => {
14335
14162
  var fulfilled = (value) => {
14336
14163
  try {
@@ -14372,7 +14199,7 @@ class ConnectionsAPI {
14372
14199
  /**
14373
14200
  * The `connectCarrier` method connects a carrier to account.
14374
14201
  */
14375
- this.connectCarrier = (carrierName, formData) => __async$1a(this, null, function* () {
14202
+ this.connectCarrier = (carrierName, formData) => __async$1b(this, null, function* () {
14376
14203
  return yield this.client.post(
14377
14204
  `/v1/connections/carriers/${carrierName}`,
14378
14205
  formData,
@@ -16556,7 +16383,7 @@ var __spreadValues$U = (a, b) => {
16556
16383
  }
16557
16384
  return a;
16558
16385
  };
16559
- var __async$19 = (__this, __arguments, generator) => {
16386
+ var __async$1a = (__this, __arguments, generator) => {
16560
16387
  return new Promise((resolve, reject) => {
16561
16388
  var fulfilled = (value) => {
16562
16389
  try {
@@ -16595,7 +16422,7 @@ class FundingSourcesAPI {
16595
16422
  * The `create` method creates a new funding source for a given user. This requires
16596
16423
  * payment information to be collected from the user.
16597
16424
  */
16598
- this.create = (createFundingSource) => __async$19(this, null, function* () {
16425
+ this.create = (createFundingSource) => __async$1a(this, null, function* () {
16599
16426
  const endUserIpAddress = yield getEndUserIpAddress();
16600
16427
  if (!endUserIpAddress) {
16601
16428
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16609,7 +16436,7 @@ class FundingSourcesAPI {
16609
16436
  * user to update the billing address or payment information associated with the
16610
16437
  * funding source.
16611
16438
  */
16612
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$19(this, null, function* () {
16439
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$1a(this, null, function* () {
16613
16440
  const endUserIpAddress = yield getEndUserIpAddress();
16614
16441
  if (!endUserIpAddress) {
16615
16442
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16629,7 +16456,7 @@ class FundingSourcesAPI {
16629
16456
  * The `registerCarrier` method registers a carrier account and associates
16630
16457
  * it with a given funding source.
16631
16458
  */
16632
- this.registerCarrier = (carrier) => __async$19(this, null, function* () {
16459
+ this.registerCarrier = (carrier) => __async$1a(this, null, function* () {
16633
16460
  const endUserIpAddress = yield getEndUserIpAddress();
16634
16461
  if (!endUserIpAddress) {
16635
16462
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16641,7 +16468,7 @@ class FundingSourcesAPI {
16641
16468
  /**
16642
16469
  * The `addFunds` method allows you to add funds to a funding source.
16643
16470
  */
16644
- this.addFunds = (amount, fundingSourceId) => __async$19(this, null, function* () {
16471
+ this.addFunds = (amount, fundingSourceId) => __async$1a(this, null, function* () {
16645
16472
  return yield this.client.put(
16646
16473
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16647
16474
  amount
@@ -16651,7 +16478,7 @@ class FundingSourcesAPI {
16651
16478
  * The `metadata` method returns seller-specific requirements for creating funding sources
16652
16479
  * and attaching carriers
16653
16480
  */
16654
- this.metadata = () => __async$19(this, null, function* () {
16481
+ this.metadata = () => __async$1a(this, null, function* () {
16655
16482
  return yield this.client.get("/v1/funding_sources/metadata");
16656
16483
  });
16657
16484
  /**
@@ -16720,7 +16547,7 @@ class InsuranceAPI {
16720
16547
  }
16721
16548
  }
16722
16549
 
16723
- var __async$18 = (__this, __arguments, generator) => {
16550
+ var __async$19 = (__this, __arguments, generator) => {
16724
16551
  return new Promise((resolve, reject) => {
16725
16552
  var fulfilled = (value) => {
16726
16553
  try {
@@ -16752,13 +16579,13 @@ class InvoiceAddressAPI {
16752
16579
  /**
16753
16580
  * The `create` method creates a new invoice address for a given user.
16754
16581
  */
16755
- this.create = (invoiceAddress) => __async$18(this, null, function* () {
16582
+ this.create = (invoiceAddress) => __async$19(this, null, function* () {
16756
16583
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16757
16584
  });
16758
16585
  /**
16759
16586
  * The `update` method updates a invoice address for a given user.
16760
16587
  */
16761
- this.update = (invoiceAddress) => __async$18(this, null, function* () {
16588
+ this.update = (invoiceAddress) => __async$19(this, null, function* () {
16762
16589
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16763
16590
  });
16764
16591
  this.client = client;
@@ -16804,6 +16631,12 @@ class LabelsAPI {
16804
16631
  this.void = (labelId) => {
16805
16632
  return this.client.put(`/v1/labels/${labelId}/void`);
16806
16633
  };
16634
+ /**
16635
+ * The `cancelRefund` method allows a user to cancel a refund request for a label by `labelId`.
16636
+ */
16637
+ this.cancelRefund = (labelId) => {
16638
+ return this.client.post(`/v1/labels/${labelId}/cancel_refund`);
16639
+ };
16807
16640
  /**
16808
16641
  * The `export` method allows to export a CSV document of labels based on the provided parameters.
16809
16642
  */
@@ -17065,7 +16898,7 @@ class SalesOrdersAPI {
17065
16898
  }
17066
16899
  }
17067
16900
 
17068
- var __async$17 = (__this, __arguments, generator) => {
16901
+ var __async$18 = (__this, __arguments, generator) => {
17069
16902
  return new Promise((resolve, reject) => {
17070
16903
  var fulfilled = (value) => {
17071
16904
  try {
@@ -17123,7 +16956,7 @@ class SellersAPI {
17123
16956
  /**
17124
16957
  * Deletes an API Key
17125
16958
  */
17126
- this.deleteSellerApiKey = (_0) => __async$17(this, [_0], function* ({
16959
+ this.deleteSellerApiKey = (_0) => __async$18(this, [_0], function* ({
17127
16960
  encryptedApiKey,
17128
16961
  sellerId,
17129
16962
  isSandbox
@@ -17211,7 +17044,7 @@ class ServicePointsAPI {
17211
17044
  }
17212
17045
  }
17213
17046
 
17214
- var __async$16 = (__this, __arguments, generator) => {
17047
+ var __async$17 = (__this, __arguments, generator) => {
17215
17048
  return new Promise((resolve, reject) => {
17216
17049
  var fulfilled = (value) => {
17217
17050
  try {
@@ -17260,7 +17093,7 @@ class ShipmentsAPI {
17260
17093
  * The `create` method allows for creating shipments based on a list of shipment
17261
17094
  * items passed into this method.
17262
17095
  */
17263
- this.create = (...shipments) => __async$16(this, null, function* () {
17096
+ this.create = (...shipments) => __async$17(this, null, function* () {
17264
17097
  return this.client.post("/v1/shipments", {
17265
17098
  shipments
17266
17099
  });
@@ -34708,7 +34541,7 @@ var __objRest$s = (source, exclude) => {
34708
34541
  }
34709
34542
  return target;
34710
34543
  };
34711
- var __async$15 = (__this, __arguments, generator) => {
34544
+ var __async$16 = (__this, __arguments, generator) => {
34712
34545
  return new Promise((resolve, reject) => {
34713
34546
  var fulfilled = (value) => {
34714
34547
  try {
@@ -34796,7 +34629,7 @@ class ShipEngineAPI {
34796
34629
  });
34797
34630
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34798
34631
  client.interceptors.request.use(
34799
- (config) => __async$15(this, null, function* () {
34632
+ (config) => __async$16(this, null, function* () {
34800
34633
  if (config.isSandbox) {
34801
34634
  if (!this.sandboxToken) {
34802
34635
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34825,7 +34658,7 @@ class ShipEngineAPI {
34825
34658
  }
34826
34659
  return res;
34827
34660
  },
34828
- (err) => __async$15(this, null, function* () {
34661
+ (err) => __async$16(this, null, function* () {
34829
34662
  var _a, _b, _c, _d, _e;
34830
34663
  if (debug) {
34831
34664
  logger$1.error(
@@ -34874,7 +34707,7 @@ class ShipEngineAPI {
34874
34707
  * that token (also known as Seller ID)
34875
34708
  */
34876
34709
  getTenant(isSandbox) {
34877
- return __async$15(this, null, function* () {
34710
+ return __async$16(this, null, function* () {
34878
34711
  var _a;
34879
34712
  if (!isSandbox) {
34880
34713
  return this.getTenantFromToken(this.token);
@@ -35252,7 +35085,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
35252
35085
  throw error;
35253
35086
  });
35254
35087
 
35255
- var __async$14 = (__this, __arguments, generator) => {
35088
+ var __async$15 = (__this, __arguments, generator) => {
35256
35089
  return new Promise((resolve, reject) => {
35257
35090
  var fulfilled = (value) => {
35258
35091
  try {
@@ -35275,7 +35108,7 @@ var __async$14 = (__this, __arguments, generator) => {
35275
35108
  const useCreateAccountImage = () => {
35276
35109
  const { client } = useShipEngine();
35277
35110
  return useMutation({
35278
- mutationFn: (data) => __async$14(void 0, null, function* () {
35111
+ mutationFn: (data) => __async$15(void 0, null, function* () {
35279
35112
  const result = yield client.accountSettings.createImage(data);
35280
35113
  return result.data;
35281
35114
  }),
@@ -35284,7 +35117,7 @@ const useCreateAccountImage = () => {
35284
35117
  });
35285
35118
  };
35286
35119
 
35287
- var __async$13 = (__this, __arguments, generator) => {
35120
+ var __async$14 = (__this, __arguments, generator) => {
35288
35121
  return new Promise((resolve, reject) => {
35289
35122
  var fulfilled = (value) => {
35290
35123
  try {
@@ -35307,7 +35140,7 @@ var __async$13 = (__this, __arguments, generator) => {
35307
35140
  const useDeleteAccountImage = () => {
35308
35141
  const { client } = useShipEngine();
35309
35142
  return useMutation({
35310
- mutationFn: (labelImageId) => __async$13(void 0, null, function* () {
35143
+ mutationFn: (labelImageId) => __async$14(void 0, null, function* () {
35311
35144
  const result = yield client.accountSettings.deleteImage(labelImageId);
35312
35145
  return result.data;
35313
35146
  }),
@@ -35336,7 +35169,7 @@ const useGetAccountSettings = () => {
35336
35169
  });
35337
35170
  };
35338
35171
 
35339
- var __async$12 = (__this, __arguments, generator) => {
35172
+ var __async$13 = (__this, __arguments, generator) => {
35340
35173
  return new Promise((resolve, reject) => {
35341
35174
  var fulfilled = (value) => {
35342
35175
  try {
@@ -35359,7 +35192,7 @@ var __async$12 = (__this, __arguments, generator) => {
35359
35192
  const useUpdateAccountImage = () => {
35360
35193
  const { client } = useShipEngine();
35361
35194
  return useMutation({
35362
- mutationFn: (data) => __async$12(void 0, null, function* () {
35195
+ mutationFn: (data) => __async$13(void 0, null, function* () {
35363
35196
  const result = yield client.accountSettings.updateImage(data);
35364
35197
  return result.data;
35365
35198
  }),
@@ -35368,7 +35201,7 @@ const useUpdateAccountImage = () => {
35368
35201
  });
35369
35202
  };
35370
35203
 
35371
- var __async$11 = (__this, __arguments, generator) => {
35204
+ var __async$12 = (__this, __arguments, generator) => {
35372
35205
  return new Promise((resolve, reject) => {
35373
35206
  var fulfilled = (value) => {
35374
35207
  try {
@@ -35391,7 +35224,7 @@ var __async$11 = (__this, __arguments, generator) => {
35391
35224
  const useUpdateAccountSettings = () => {
35392
35225
  const { client } = useShipEngine();
35393
35226
  return useMutation({
35394
- mutationFn: (settings) => __async$11(void 0, null, function* () {
35227
+ mutationFn: (settings) => __async$12(void 0, null, function* () {
35395
35228
  const result = yield client.accountSettings.update(settings);
35396
35229
  return result.data;
35397
35230
  }),
@@ -35448,7 +35281,7 @@ var __spreadValues$O = (a, b) => {
35448
35281
  return a;
35449
35282
  };
35450
35283
  var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
35451
- var __async$10 = (__this, __arguments, generator) => {
35284
+ var __async$11 = (__this, __arguments, generator) => {
35452
35285
  return new Promise((resolve, reject) => {
35453
35286
  var fulfilled = (value) => {
35454
35287
  try {
@@ -35471,7 +35304,7 @@ var __async$10 = (__this, __arguments, generator) => {
35471
35304
  const useEnableAccountAddon = (params) => {
35472
35305
  const { client } = useShipEngine();
35473
35306
  return useMutation(__spreadProps$L(__spreadValues$O({}, params), {
35474
- mutationFn: (addonType) => __async$10(void 0, null, function* () {
35307
+ mutationFn: (addonType) => __async$11(void 0, null, function* () {
35475
35308
  const result = yield client.accountAddons.enable(addonType);
35476
35309
  return result.data;
35477
35310
  }),
@@ -35499,7 +35332,7 @@ var __spreadValues$N = (a, b) => {
35499
35332
  return a;
35500
35333
  };
35501
35334
  var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
35502
- var __async$$ = (__this, __arguments, generator) => {
35335
+ var __async$10 = (__this, __arguments, generator) => {
35503
35336
  return new Promise((resolve, reject) => {
35504
35337
  var fulfilled = (value) => {
35505
35338
  try {
@@ -35522,7 +35355,7 @@ var __async$$ = (__this, __arguments, generator) => {
35522
35355
  const useDisableAccountAddon = (params) => {
35523
35356
  const { client } = useShipEngine();
35524
35357
  return useMutation(__spreadProps$K(__spreadValues$N({}, params), {
35525
- mutationFn: (addonType) => __async$$(void 0, null, function* () {
35358
+ mutationFn: (addonType) => __async$10(void 0, null, function* () {
35526
35359
  const result = yield client.accountAddons.disable(addonType);
35527
35360
  return result.data;
35528
35361
  }),
@@ -35560,7 +35393,7 @@ const useListAccountFeatures = (params) => {
35560
35393
  }));
35561
35394
  };
35562
35395
 
35563
- var __async$_ = (__this, __arguments, generator) => {
35396
+ var __async$$ = (__this, __arguments, generator) => {
35564
35397
  return new Promise((resolve, reject) => {
35565
35398
  var fulfilled = (value) => {
35566
35399
  try {
@@ -35583,7 +35416,7 @@ var __async$_ = (__this, __arguments, generator) => {
35583
35416
  const useRequestAccountFeature = () => {
35584
35417
  const { client } = useShipEngine();
35585
35418
  return useMutation({
35586
- mutationFn: (request) => __async$_(void 0, null, function* () {
35419
+ mutationFn: (request) => __async$$(void 0, null, function* () {
35587
35420
  const result = yield client.accountFeatures.request(request);
35588
35421
  return result.data;
35589
35422
  }),
@@ -35611,7 +35444,7 @@ var __spreadValues$L = (a, b) => {
35611
35444
  return a;
35612
35445
  };
35613
35446
  var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
35614
- var __async$Z = (__this, __arguments, generator) => {
35447
+ var __async$_ = (__this, __arguments, generator) => {
35615
35448
  return new Promise((resolve, reject) => {
35616
35449
  var fulfilled = (value) => {
35617
35450
  try {
@@ -35634,7 +35467,7 @@ var __async$Z = (__this, __arguments, generator) => {
35634
35467
  const useDisableRefundAssist = (params) => {
35635
35468
  const { client } = useShipEngine();
35636
35469
  return useMutation(__spreadProps$I(__spreadValues$L({}, params), {
35637
- mutationFn: () => __async$Z(void 0, null, function* () {
35470
+ mutationFn: () => __async$_(void 0, null, function* () {
35638
35471
  yield client.accountRefundAssist.disable();
35639
35472
  }),
35640
35473
  mutationKey: ["useDisableRefundAssist"],
@@ -35661,7 +35494,7 @@ var __spreadValues$K = (a, b) => {
35661
35494
  return a;
35662
35495
  };
35663
35496
  var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
35664
- var __async$Y = (__this, __arguments, generator) => {
35497
+ var __async$Z = (__this, __arguments, generator) => {
35665
35498
  return new Promise((resolve, reject) => {
35666
35499
  var fulfilled = (value) => {
35667
35500
  try {
@@ -35684,7 +35517,7 @@ var __async$Y = (__this, __arguments, generator) => {
35684
35517
  const useEnableRefundAssist = (params) => {
35685
35518
  const { client } = useShipEngine();
35686
35519
  return useMutation(__spreadProps$H(__spreadValues$K({}, params), {
35687
- mutationFn: () => __async$Y(void 0, null, function* () {
35520
+ mutationFn: () => __async$Z(void 0, null, function* () {
35688
35521
  yield client.accountRefundAssist.enable();
35689
35522
  }),
35690
35523
  mutationKey: ["useEnableRefundAssist"],
@@ -35721,7 +35554,7 @@ const useGetRefundAssist = (params) => {
35721
35554
  }));
35722
35555
  };
35723
35556
 
35724
- var __async$X = (__this, __arguments, generator) => {
35557
+ var __async$Y = (__this, __arguments, generator) => {
35725
35558
  return new Promise((resolve, reject) => {
35726
35559
  var fulfilled = (value) => {
35727
35560
  try {
@@ -35744,7 +35577,7 @@ var __async$X = (__this, __arguments, generator) => {
35744
35577
  const useParseAddress = () => {
35745
35578
  const { client } = useShipEngine();
35746
35579
  return useMutation({
35747
- mutationFn: (_0) => __async$X(void 0, [_0], function* ({ address, text }) {
35580
+ mutationFn: (_0) => __async$Y(void 0, [_0], function* ({ address, text }) {
35748
35581
  const result = yield client.addresses.parse(text, address);
35749
35582
  return result.data;
35750
35583
  }),
@@ -35753,7 +35586,7 @@ const useParseAddress = () => {
35753
35586
  });
35754
35587
  };
35755
35588
 
35756
- var __async$W = (__this, __arguments, generator) => {
35589
+ var __async$X = (__this, __arguments, generator) => {
35757
35590
  return new Promise((resolve, reject) => {
35758
35591
  var fulfilled = (value) => {
35759
35592
  try {
@@ -35776,7 +35609,7 @@ var __async$W = (__this, __arguments, generator) => {
35776
35609
  const useValidateAddresses = () => {
35777
35610
  const { client } = useShipEngine();
35778
35611
  return useMutation({
35779
- mutationFn: (addresses) => __async$W(void 0, null, function* () {
35612
+ mutationFn: (addresses) => __async$X(void 0, null, function* () {
35780
35613
  const result = yield client.addresses.validate(addresses);
35781
35614
  return result.data;
35782
35615
  }),
@@ -35804,7 +35637,7 @@ var __spreadValues$I = (a, b) => {
35804
35637
  return a;
35805
35638
  };
35806
35639
  var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35807
- var __async$V = (__this, __arguments, generator) => {
35640
+ var __async$W = (__this, __arguments, generator) => {
35808
35641
  return new Promise((resolve, reject) => {
35809
35642
  var fulfilled = (value) => {
35810
35643
  try {
@@ -35827,7 +35660,7 @@ var __async$V = (__this, __arguments, generator) => {
35827
35660
  const useCreateAuctanePaySession = (params) => {
35828
35661
  const { client } = useShipEngine();
35829
35662
  return useMutation(__spreadProps$F(__spreadValues$I({}, params), {
35830
- mutationFn: (request) => __async$V(void 0, null, function* () {
35663
+ mutationFn: (request) => __async$W(void 0, null, function* () {
35831
35664
  const result = yield client.auctanePay.createSession(request);
35832
35665
  return result.data;
35833
35666
  }),
@@ -35885,7 +35718,7 @@ var __spreadValues$G = (a, b) => {
35885
35718
  return a;
35886
35719
  };
35887
35720
  var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
35888
- var __async$U = (__this, __arguments, generator) => {
35721
+ var __async$V = (__this, __arguments, generator) => {
35889
35722
  return new Promise((resolve, reject) => {
35890
35723
  var fulfilled = (value) => {
35891
35724
  try {
@@ -35908,7 +35741,7 @@ var __async$U = (__this, __arguments, generator) => {
35908
35741
  const usePreviewTransaction = (params) => {
35909
35742
  const { client } = useShipEngine();
35910
35743
  return useMutation(__spreadProps$D(__spreadValues$G({}, params), {
35911
- mutationFn: (_0) => __async$U(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35744
+ mutationFn: (_0) => __async$V(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35912
35745
  const request = {
35913
35746
  amount,
35914
35747
  transactionCategory
@@ -35970,7 +35803,7 @@ var __spreadValues$E = (a, b) => {
35970
35803
  return a;
35971
35804
  };
35972
35805
  var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
35973
- var __async$T = (__this, __arguments, generator) => {
35806
+ var __async$U = (__this, __arguments, generator) => {
35974
35807
  return new Promise((resolve, reject) => {
35975
35808
  var fulfilled = (value) => {
35976
35809
  try {
@@ -35993,7 +35826,7 @@ var __async$T = (__this, __arguments, generator) => {
35993
35826
  const useDeletePaymentMethod = (params) => {
35994
35827
  const { client } = useShipEngine();
35995
35828
  return useMutation(__spreadProps$B(__spreadValues$E({}, params), {
35996
- mutationFn: (paymentMethodId) => __async$T(void 0, null, function* () {
35829
+ mutationFn: (paymentMethodId) => __async$U(void 0, null, function* () {
35997
35830
  const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
35998
35831
  return result.data;
35999
35832
  }),
@@ -36021,7 +35854,7 @@ var __spreadValues$D = (a, b) => {
36021
35854
  return a;
36022
35855
  };
36023
35856
  var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
36024
- var __async$S = (__this, __arguments, generator) => {
35857
+ var __async$T = (__this, __arguments, generator) => {
36025
35858
  return new Promise((resolve, reject) => {
36026
35859
  var fulfilled = (value) => {
36027
35860
  try {
@@ -36044,7 +35877,7 @@ var __async$S = (__this, __arguments, generator) => {
36044
35877
  const useUpdatePaymentMethod = (params) => {
36045
35878
  const { client } = useShipEngine();
36046
35879
  return useMutation(__spreadProps$A(__spreadValues$D({}, params), {
36047
- mutationFn: (_0) => __async$S(void 0, [_0], function* ({ paymentMethodId, payload }) {
35880
+ mutationFn: (_0) => __async$T(void 0, [_0], function* ({ paymentMethodId, payload }) {
36048
35881
  const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
36049
35882
  return result.data;
36050
35883
  }),
@@ -36072,7 +35905,7 @@ var __spreadValues$C = (a, b) => {
36072
35905
  return a;
36073
35906
  };
36074
35907
  var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
36075
- var __async$R = (__this, __arguments, generator) => {
35908
+ var __async$S = (__this, __arguments, generator) => {
36076
35909
  return new Promise((resolve, reject) => {
36077
35910
  var fulfilled = (value) => {
36078
35911
  try {
@@ -36095,7 +35928,7 @@ var __async$R = (__this, __arguments, generator) => {
36095
35928
  const useIdentityVerification = (params) => {
36096
35929
  const { client } = useShipEngine();
36097
35930
  return useMutation(__spreadProps$z(__spreadValues$C({}, params), {
36098
- mutationFn: () => __async$R(void 0, null, function* () {
35931
+ mutationFn: () => __async$S(void 0, null, function* () {
36099
35932
  const result = yield client.auctanePay.identityVerification();
36100
35933
  return result.data;
36101
35934
  }),
@@ -36134,7 +35967,7 @@ const useGetPaymentAccount = (params) => {
36134
35967
  }));
36135
35968
  };
36136
35969
 
36137
- var __async$Q = (__this, __arguments, generator) => {
35970
+ var __async$R = (__this, __arguments, generator) => {
36138
35971
  return new Promise((resolve, reject) => {
36139
35972
  var fulfilled = (value) => {
36140
35973
  try {
@@ -36157,7 +35990,7 @@ var __async$Q = (__this, __arguments, generator) => {
36157
35990
  const useAcceptCarrierTerms = (carrierId) => {
36158
35991
  const { client } = useShipEngine();
36159
35992
  return useMutation({
36160
- mutationFn: (request) => __async$Q(void 0, null, function* () {
35993
+ mutationFn: (request) => __async$R(void 0, null, function* () {
36161
35994
  const result = yield client.carriers.acceptTerms(carrierId, request);
36162
35995
  return result.data.acceptedTerms;
36163
35996
  }),
@@ -36166,7 +35999,7 @@ const useAcceptCarrierTerms = (carrierId) => {
36166
35999
  });
36167
36000
  };
36168
36001
 
36169
- var __async$P = (__this, __arguments, generator) => {
36002
+ var __async$Q = (__this, __arguments, generator) => {
36170
36003
  return new Promise((resolve, reject) => {
36171
36004
  var fulfilled = (value) => {
36172
36005
  try {
@@ -36189,7 +36022,7 @@ var __async$P = (__this, __arguments, generator) => {
36189
36022
  const useAddFunds = () => {
36190
36023
  const { client } = useShipEngine();
36191
36024
  return useMutation({
36192
- mutationFn: (_0) => __async$P(void 0, [_0], function* ({ carrierId, funds }) {
36025
+ mutationFn: (_0) => __async$Q(void 0, [_0], function* ({ carrierId, funds }) {
36193
36026
  const result = yield client.carriers.addFunds(carrierId, funds);
36194
36027
  return result.data;
36195
36028
  }),
@@ -36198,7 +36031,7 @@ const useAddFunds = () => {
36198
36031
  });
36199
36032
  };
36200
36033
 
36201
- var __async$O = (__this, __arguments, generator) => {
36034
+ var __async$P = (__this, __arguments, generator) => {
36202
36035
  return new Promise((resolve, reject) => {
36203
36036
  var fulfilled = (value) => {
36204
36037
  try {
@@ -36221,7 +36054,7 @@ var __async$O = (__this, __arguments, generator) => {
36221
36054
  const useConnectCarrier = () => {
36222
36055
  const { client } = useShipEngine();
36223
36056
  return useMutation({
36224
- mutationFn: (params) => __async$O(void 0, null, function* () {
36057
+ mutationFn: (params) => __async$P(void 0, null, function* () {
36225
36058
  const result = yield client.carriers.connect(params);
36226
36059
  return result.data;
36227
36060
  }),
@@ -36387,7 +36220,7 @@ var __objRest$q = (source, exclude) => {
36387
36220
  }
36388
36221
  return target;
36389
36222
  };
36390
- var __async$N = (__this, __arguments, generator) => {
36223
+ var __async$O = (__this, __arguments, generator) => {
36391
36224
  return new Promise((resolve, reject) => {
36392
36225
  var fulfilled = (value) => {
36393
36226
  try {
@@ -36411,7 +36244,7 @@ const useUpdateAutoFunding = () => {
36411
36244
  const { client } = useShipEngine();
36412
36245
  const queryClient = useQueryClient();
36413
36246
  return useMutation({
36414
- mutationFn: (_a) => __async$N(void 0, null, function* () {
36247
+ mutationFn: (_a) => __async$O(void 0, null, function* () {
36415
36248
  var _b = _a, { carrierId } = _b, options = __objRest$q(_b, ["carrierId"]);
36416
36249
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
36417
36250
  return result.data;
@@ -36441,7 +36274,7 @@ const useGetZonesByCarrier = (carrierId) => {
36441
36274
  });
36442
36275
  };
36443
36276
 
36444
- var __async$M = (__this, __arguments, generator) => {
36277
+ var __async$N = (__this, __arguments, generator) => {
36445
36278
  return new Promise((resolve, reject) => {
36446
36279
  var fulfilled = (value) => {
36447
36280
  try {
@@ -36464,7 +36297,7 @@ var __async$M = (__this, __arguments, generator) => {
36464
36297
  const useDeleteCarrier = () => {
36465
36298
  const { client } = useShipEngine();
36466
36299
  return useMutation({
36467
- mutationFn: (carrierId) => __async$M(void 0, null, function* () {
36300
+ mutationFn: (carrierId) => __async$N(void 0, null, function* () {
36468
36301
  const result = yield client.carriers.delete(carrierId);
36469
36302
  return result.data;
36470
36303
  }),
@@ -36546,7 +36379,7 @@ var __spreadValues$z = (a, b) => {
36546
36379
  return a;
36547
36380
  };
36548
36381
  var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
36549
- var __async$L = (__this, __arguments, generator) => {
36382
+ var __async$M = (__this, __arguments, generator) => {
36550
36383
  return new Promise((resolve, reject) => {
36551
36384
  var fulfilled = (value) => {
36552
36385
  try {
@@ -36569,7 +36402,7 @@ var __async$L = (__this, __arguments, generator) => {
36569
36402
  const useConnectCarrierAccount = () => {
36570
36403
  const { client } = useShipEngine();
36571
36404
  return useMutation({
36572
- mutationFn: (_0) => __async$L(void 0, [_0], function* ({ carrierName, formData }) {
36405
+ mutationFn: (_0) => __async$M(void 0, [_0], function* ({ carrierName, formData }) {
36573
36406
  const formDataWithFlag = __spreadProps$w(__spreadValues$z({}, formData), { __skipDecamelize: true });
36574
36407
  const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
36575
36408
  return result.data;
@@ -36656,7 +36489,7 @@ var __spreadValues$x = (a, b) => {
36656
36489
  return a;
36657
36490
  };
36658
36491
  var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
36659
- var __async$K = (__this, __arguments, generator) => {
36492
+ var __async$L = (__this, __arguments, generator) => {
36660
36493
  return new Promise((resolve, reject) => {
36661
36494
  var fulfilled = (value) => {
36662
36495
  try {
@@ -36679,7 +36512,7 @@ var __async$K = (__this, __arguments, generator) => {
36679
36512
  const useUpdateConnectionsCarrierSettings = (params) => {
36680
36513
  const { client } = useShipEngine();
36681
36514
  return useMutation(__spreadProps$u(__spreadValues$x({}, params), {
36682
- mutationFn: (_0) => __async$K(void 0, [_0], function* ({
36515
+ mutationFn: (_0) => __async$L(void 0, [_0], function* ({
36683
36516
  carrierName,
36684
36517
  carrierId,
36685
36518
  formData
@@ -36715,7 +36548,7 @@ var __spreadValues$w = (a, b) => {
36715
36548
  return a;
36716
36549
  };
36717
36550
  var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
36718
- var __async$J = (__this, __arguments, generator) => {
36551
+ var __async$K = (__this, __arguments, generator) => {
36719
36552
  return new Promise((resolve, reject) => {
36720
36553
  var fulfilled = (value) => {
36721
36554
  try {
@@ -36738,7 +36571,7 @@ var __async$J = (__this, __arguments, generator) => {
36738
36571
  const useRequestStampsAccountUrls = (params) => {
36739
36572
  const { client } = useShipEngine();
36740
36573
  return useMutation(__spreadProps$t(__spreadValues$w({}, params), {
36741
- mutationFn: (request) => __async$J(void 0, null, function* () {
36574
+ mutationFn: (request) => __async$K(void 0, null, function* () {
36742
36575
  const result = yield client.connections.requestStampsAccountUrls(request);
36743
36576
  return result.data;
36744
36577
  }),
@@ -36757,7 +36590,7 @@ const useListCustomPackageTypes = () => {
36757
36590
  });
36758
36591
  };
36759
36592
 
36760
- var __async$I = (__this, __arguments, generator) => {
36593
+ var __async$J = (__this, __arguments, generator) => {
36761
36594
  return new Promise((resolve, reject) => {
36762
36595
  var fulfilled = (value) => {
36763
36596
  try {
@@ -36780,7 +36613,7 @@ var __async$I = (__this, __arguments, generator) => {
36780
36613
  const useAcceptFundingSourceTerms = (fundingSourceId) => {
36781
36614
  const { client } = useShipEngine();
36782
36615
  return useMutation({
36783
- mutationFn: (request) => __async$I(void 0, null, function* () {
36616
+ mutationFn: (request) => __async$J(void 0, null, function* () {
36784
36617
  const result = yield client.fundingSources.acceptTerms(fundingSourceId, request);
36785
36618
  return result.data.acceptedTerms;
36786
36619
  }),
@@ -36789,7 +36622,7 @@ const useAcceptFundingSourceTerms = (fundingSourceId) => {
36789
36622
  });
36790
36623
  };
36791
36624
 
36792
- var __async$H = (__this, __arguments, generator) => {
36625
+ var __async$I = (__this, __arguments, generator) => {
36793
36626
  return new Promise((resolve, reject) => {
36794
36627
  var fulfilled = (value) => {
36795
36628
  try {
@@ -36812,7 +36645,7 @@ var __async$H = (__this, __arguments, generator) => {
36812
36645
  const useCreateFundingSource = () => {
36813
36646
  const { client } = useShipEngine();
36814
36647
  return useMutation({
36815
- mutationFn: (fundingSource) => __async$H(void 0, null, function* () {
36648
+ mutationFn: (fundingSource) => __async$I(void 0, null, function* () {
36816
36649
  const result = yield client.fundingSources.create(fundingSource);
36817
36650
  return result.data;
36818
36651
  }),
@@ -36821,7 +36654,7 @@ const useCreateFundingSource = () => {
36821
36654
  });
36822
36655
  };
36823
36656
 
36824
- var __async$G = (__this, __arguments, generator) => {
36657
+ var __async$H = (__this, __arguments, generator) => {
36825
36658
  return new Promise((resolve, reject) => {
36826
36659
  var fulfilled = (value) => {
36827
36660
  try {
@@ -36844,7 +36677,7 @@ var __async$G = (__this, __arguments, generator) => {
36844
36677
  const useFundingSourcesAddFunds = () => {
36845
36678
  const { client } = useShipEngine();
36846
36679
  return useMutation({
36847
- mutationFn: (_0) => __async$G(void 0, [_0], function* ({ funds, fundingSourceId }) {
36680
+ mutationFn: (_0) => __async$H(void 0, [_0], function* ({ funds, fundingSourceId }) {
36848
36681
  const result = yield client.fundingSources.addFunds(funds, fundingSourceId);
36849
36682
  return result.data;
36850
36683
  }),
@@ -36903,7 +36736,7 @@ const useListFundingSources = () => {
36903
36736
  });
36904
36737
  };
36905
36738
 
36906
- var __async$F = (__this, __arguments, generator) => {
36739
+ var __async$G = (__this, __arguments, generator) => {
36907
36740
  return new Promise((resolve, reject) => {
36908
36741
  var fulfilled = (value) => {
36909
36742
  try {
@@ -36926,7 +36759,7 @@ var __async$F = (__this, __arguments, generator) => {
36926
36759
  const useRegisterCarrier = () => {
36927
36760
  const { client } = useShipEngine();
36928
36761
  return useMutation({
36929
- mutationFn: (carrier) => __async$F(void 0, null, function* () {
36762
+ mutationFn: (carrier) => __async$G(void 0, null, function* () {
36930
36763
  const result = yield client.fundingSources.registerCarrier(carrier);
36931
36764
  return result.data;
36932
36765
  }),
@@ -36935,7 +36768,7 @@ const useRegisterCarrier = () => {
36935
36768
  });
36936
36769
  };
36937
36770
 
36938
- var __async$E = (__this, __arguments, generator) => {
36771
+ var __async$F = (__this, __arguments, generator) => {
36939
36772
  return new Promise((resolve, reject) => {
36940
36773
  var fulfilled = (value) => {
36941
36774
  try {
@@ -36958,7 +36791,7 @@ var __async$E = (__this, __arguments, generator) => {
36958
36791
  const useUpdateFundingSource = () => {
36959
36792
  const { client } = useShipEngine();
36960
36793
  return useMutation({
36961
- mutationFn: (_0) => __async$E(void 0, [_0], function* ({
36794
+ mutationFn: (_0) => __async$F(void 0, [_0], function* ({
36962
36795
  billingInfo,
36963
36796
  creditCardInfo,
36964
36797
  fundingSourceId,
@@ -37059,7 +36892,7 @@ var __objRest$m = (source, exclude) => {
37059
36892
  }
37060
36893
  return target;
37061
36894
  };
37062
- var __async$D = (__this, __arguments, generator) => {
36895
+ var __async$E = (__this, __arguments, generator) => {
37063
36896
  return new Promise((resolve, reject) => {
37064
36897
  var fulfilled = (value) => {
37065
36898
  try {
@@ -37082,7 +36915,7 @@ var __async$D = (__this, __arguments, generator) => {
37082
36915
  const useAddInsuranceFunds = () => {
37083
36916
  const { client } = useShipEngine();
37084
36917
  return useMutation({
37085
- mutationFn: (_a) => __async$D(void 0, null, function* () {
36918
+ mutationFn: (_a) => __async$E(void 0, null, function* () {
37086
36919
  var _b = _a, { insuranceProvider } = _b, rest = __objRest$m(_b, ["insuranceProvider"]);
37087
36920
  const result = yield client.insurance.addFunds(insuranceProvider, rest);
37088
36921
  return result.data;
@@ -37111,7 +36944,7 @@ var __spreadValues$t = (a, b) => {
37111
36944
  return a;
37112
36945
  };
37113
36946
  var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
37114
- var __async$C = (__this, __arguments, generator) => {
36947
+ var __async$D = (__this, __arguments, generator) => {
37115
36948
  return new Promise((resolve, reject) => {
37116
36949
  var fulfilled = (value) => {
37117
36950
  try {
@@ -37134,7 +36967,7 @@ var __async$C = (__this, __arguments, generator) => {
37134
36967
  const useCreateInvoiceAddress = (params) => {
37135
36968
  const { client } = useShipEngine();
37136
36969
  return useMutation(__spreadProps$q(__spreadValues$t({}, params), {
37137
- mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
36970
+ mutationFn: (invoiceAddress) => __async$D(void 0, null, function* () {
37138
36971
  const result = yield client.invoiceAddress.create(invoiceAddress);
37139
36972
  return result.data;
37140
36973
  }),
@@ -37162,7 +36995,7 @@ var __spreadValues$s = (a, b) => {
37162
36995
  return a;
37163
36996
  };
37164
36997
  var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
37165
- var __async$B = (__this, __arguments, generator) => {
36998
+ var __async$C = (__this, __arguments, generator) => {
37166
36999
  return new Promise((resolve, reject) => {
37167
37000
  var fulfilled = (value) => {
37168
37001
  try {
@@ -37185,7 +37018,7 @@ var __async$B = (__this, __arguments, generator) => {
37185
37018
  const useUpdateInvoiceAddress = (params) => {
37186
37019
  const { client } = useShipEngine();
37187
37020
  return useMutation(__spreadProps$p(__spreadValues$s({}, params), {
37188
- mutationFn: (invoiceAddress) => __async$B(void 0, null, function* () {
37021
+ mutationFn: (invoiceAddress) => __async$C(void 0, null, function* () {
37189
37022
  const result = yield client.invoiceAddress.update(invoiceAddress);
37190
37023
  return result.data;
37191
37024
  }),
@@ -37223,6 +37056,38 @@ const useGetInvoiceAddress = (params) => {
37223
37056
  }));
37224
37057
  };
37225
37058
 
37059
+ var __async$B = (__this, __arguments, generator) => {
37060
+ return new Promise((resolve, reject) => {
37061
+ var fulfilled = (value) => {
37062
+ try {
37063
+ step(generator.next(value));
37064
+ } catch (e) {
37065
+ reject(e);
37066
+ }
37067
+ };
37068
+ var rejected = (value) => {
37069
+ try {
37070
+ step(generator.throw(value));
37071
+ } catch (e) {
37072
+ reject(e);
37073
+ }
37074
+ };
37075
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37076
+ step((generator = generator.apply(__this, __arguments)).next());
37077
+ });
37078
+ };
37079
+ const useCancelRefund = () => {
37080
+ const { client } = useShipEngine();
37081
+ return useMutation({
37082
+ mutationFn: (labelId) => __async$B(void 0, null, function* () {
37083
+ const result = yield client.labels.cancelRefund(labelId);
37084
+ return result.data;
37085
+ }),
37086
+ mutationKey: ["useCancelRefund"],
37087
+ onError
37088
+ });
37089
+ };
37090
+
37226
37091
  var __defProp$q = Object.defineProperty;
37227
37092
  var __defProps$n = Object.defineProperties;
37228
37093
  var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
@@ -37415,21 +37280,6 @@ const useCreateLabel = (params) => {
37415
37280
  }));
37416
37281
  };
37417
37282
 
37418
- const useGetLabel = (labelId) => {
37419
- const { client } = useShipEngine();
37420
- return useQuery({
37421
- enabled: labelId !== void 0,
37422
- onError,
37423
- queryFn: () => {
37424
- if (labelId)
37425
- return client.labels.get(labelId);
37426
- return Promise.reject(new Error("labelId is require"));
37427
- },
37428
- queryKey: ["useGetLabel", labelId],
37429
- select: (result) => result.data
37430
- });
37431
- };
37432
-
37433
37283
  var __defProp$n = Object.defineProperty;
37434
37284
  var __defProps$k = Object.defineProperties;
37435
37285
  var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
@@ -37461,46 +37311,28 @@ var __objRest$i = (source, exclude) => {
37461
37311
  }
37462
37312
  return target;
37463
37313
  };
37464
- const useListLabels = (params) => {
37314
+ const useExportLabels = (params) => {
37465
37315
  const { client } = useShipEngine();
37466
37316
  const _a = __spreadValues$n({}, params), { queryFnParams } = _a, rest = __objRest$i(_a, ["queryFnParams"]);
37467
37317
  return useQuery(__spreadProps$k(__spreadValues$n({}, rest), {
37468
37318
  onError,
37469
- queryFn: () => client.labels.list(queryFnParams),
37470
- queryKey: ["useListLabels", params],
37471
- select: (result) => result.data
37319
+ queryFn: () => client.labels.export(queryFnParams),
37320
+ queryKey: ["useExportLabels", params]
37472
37321
  }));
37473
37322
  };
37474
37323
 
37475
- var __async$x = (__this, __arguments, generator) => {
37476
- return new Promise((resolve, reject) => {
37477
- var fulfilled = (value) => {
37478
- try {
37479
- step(generator.next(value));
37480
- } catch (e) {
37481
- reject(e);
37482
- }
37483
- };
37484
- var rejected = (value) => {
37485
- try {
37486
- step(generator.throw(value));
37487
- } catch (e) {
37488
- reject(e);
37489
- }
37490
- };
37491
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37492
- step((generator = generator.apply(__this, __arguments)).next());
37493
- });
37494
- };
37495
- const useVoidLabel = () => {
37324
+ const useGetLabel = (labelId) => {
37496
37325
  const { client } = useShipEngine();
37497
- return useMutation({
37498
- mutationFn: (labelId) => __async$x(void 0, null, function* () {
37499
- const result = yield client.labels.void(labelId);
37500
- return result.data;
37501
- }),
37502
- mutationKey: ["useVoidLabel"],
37503
- onError
37326
+ return useQuery({
37327
+ enabled: labelId !== void 0,
37328
+ onError,
37329
+ queryFn: () => {
37330
+ if (labelId)
37331
+ return client.labels.get(labelId);
37332
+ return Promise.reject(new Error("labelId is require"));
37333
+ },
37334
+ queryKey: ["useGetLabel", labelId],
37335
+ select: (result) => result.data
37504
37336
  });
37505
37337
  };
37506
37338
 
@@ -37535,7 +37367,49 @@ var __objRest$h = (source, exclude) => {
37535
37367
  }
37536
37368
  return target;
37537
37369
  };
37538
- var __async$w = (__this, __arguments, generator) => {
37370
+ const useListLabels = (params) => {
37371
+ const { client } = useShipEngine();
37372
+ const _a = __spreadValues$m({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
37373
+ return useQuery(__spreadProps$j(__spreadValues$m({}, rest), {
37374
+ onError,
37375
+ queryFn: () => client.labels.list(queryFnParams),
37376
+ queryKey: ["useListLabels", params],
37377
+ select: (result) => result.data
37378
+ }));
37379
+ };
37380
+
37381
+ var __defProp$l = Object.defineProperty;
37382
+ var __defProps$i = Object.defineProperties;
37383
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
37384
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
37385
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
37386
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
37387
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37388
+ var __spreadValues$l = (a, b) => {
37389
+ for (var prop in b || (b = {}))
37390
+ if (__hasOwnProp$q.call(b, prop))
37391
+ __defNormalProp$l(a, prop, b[prop]);
37392
+ if (__getOwnPropSymbols$q)
37393
+ for (var prop of __getOwnPropSymbols$q(b)) {
37394
+ if (__propIsEnum$q.call(b, prop))
37395
+ __defNormalProp$l(a, prop, b[prop]);
37396
+ }
37397
+ return a;
37398
+ };
37399
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
37400
+ var __objRest$g = (source, exclude) => {
37401
+ var target = {};
37402
+ for (var prop in source)
37403
+ if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
37404
+ target[prop] = source[prop];
37405
+ if (source != null && __getOwnPropSymbols$q)
37406
+ for (var prop of __getOwnPropSymbols$q(source)) {
37407
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
37408
+ target[prop] = source[prop];
37409
+ }
37410
+ return target;
37411
+ };
37412
+ var __async$x = (__this, __arguments, generator) => {
37539
37413
  return new Promise((resolve, reject) => {
37540
37414
  var fulfilled = (value) => {
37541
37415
  try {
@@ -37557,8 +37431,8 @@ var __async$w = (__this, __arguments, generator) => {
37557
37431
  };
37558
37432
  const useListLabelsInfinite = (params) => {
37559
37433
  const { client } = useShipEngine();
37560
- const _a = __spreadValues$m({}, params), { queryFnParams } = _a, rest = __objRest$h(_a, ["queryFnParams"]);
37561
- return useInfiniteQuery(__spreadProps$j(__spreadValues$m({}, rest), {
37434
+ const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
37435
+ return useInfiniteQuery(__spreadProps$i(__spreadValues$l({}, rest), {
37562
37436
  getNextPageParam: (lastPage) => {
37563
37437
  if (lastPage.page < lastPage.pages) {
37564
37438
  return lastPage.page + 1;
@@ -37566,8 +37440,8 @@ const useListLabelsInfinite = (params) => {
37566
37440
  return void 0;
37567
37441
  },
37568
37442
  onError,
37569
- queryFn: (_0) => __async$w(void 0, [_0], function* ({ pageParam = 1 }) {
37570
- const response = yield client.labels.list(__spreadProps$j(__spreadValues$m({}, queryFnParams), { page: pageParam }));
37443
+ queryFn: (_0) => __async$x(void 0, [_0], function* ({ pageParam = 1 }) {
37444
+ const response = yield client.labels.list(__spreadProps$i(__spreadValues$l({}, queryFnParams), { page: pageParam }));
37571
37445
  return response.data;
37572
37446
  }),
37573
37447
  queryKey: ["useListLabelsInfinite", params],
@@ -37581,45 +37455,36 @@ const useListLabelsInfinite = (params) => {
37581
37455
  }));
37582
37456
  };
37583
37457
 
37584
- var __defProp$l = Object.defineProperty;
37585
- var __defProps$i = Object.defineProperties;
37586
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
37587
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
37588
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
37589
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
37590
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37591
- var __spreadValues$l = (a, b) => {
37592
- for (var prop in b || (b = {}))
37593
- if (__hasOwnProp$q.call(b, prop))
37594
- __defNormalProp$l(a, prop, b[prop]);
37595
- if (__getOwnPropSymbols$q)
37596
- for (var prop of __getOwnPropSymbols$q(b)) {
37597
- if (__propIsEnum$q.call(b, prop))
37598
- __defNormalProp$l(a, prop, b[prop]);
37599
- }
37600
- return a;
37601
- };
37602
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
37603
- var __objRest$g = (source, exclude) => {
37604
- var target = {};
37605
- for (var prop in source)
37606
- if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
37607
- target[prop] = source[prop];
37608
- if (source != null && __getOwnPropSymbols$q)
37609
- for (var prop of __getOwnPropSymbols$q(source)) {
37610
- if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
37611
- target[prop] = source[prop];
37612
- }
37613
- return target;
37458
+ var __async$w = (__this, __arguments, generator) => {
37459
+ return new Promise((resolve, reject) => {
37460
+ var fulfilled = (value) => {
37461
+ try {
37462
+ step(generator.next(value));
37463
+ } catch (e) {
37464
+ reject(e);
37465
+ }
37466
+ };
37467
+ var rejected = (value) => {
37468
+ try {
37469
+ step(generator.throw(value));
37470
+ } catch (e) {
37471
+ reject(e);
37472
+ }
37473
+ };
37474
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37475
+ step((generator = generator.apply(__this, __arguments)).next());
37476
+ });
37614
37477
  };
37615
- const useExportLabels = (params) => {
37478
+ const useVoidLabel = () => {
37616
37479
  const { client } = useShipEngine();
37617
- const _a = __spreadValues$l({}, params), { queryFnParams } = _a, rest = __objRest$g(_a, ["queryFnParams"]);
37618
- return useQuery(__spreadProps$i(__spreadValues$l({}, rest), {
37619
- onError,
37620
- queryFn: () => client.labels.export(queryFnParams),
37621
- queryKey: ["useExportLabels", params]
37622
- }));
37480
+ return useMutation({
37481
+ mutationFn: (labelId) => __async$w(void 0, null, function* () {
37482
+ const result = yield client.labels.void(labelId);
37483
+ return result.data;
37484
+ }),
37485
+ mutationKey: ["useVoidLabel"],
37486
+ onError
37487
+ });
37623
37488
  };
37624
37489
 
37625
37490
  var __defProp$k = Object.defineProperty;
@@ -40743,4 +40608,4 @@ const alchemy = {
40743
40608
  createElement
40744
40609
  };
40745
40610
 
40746
- export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountFeaturesAPI, AccountRefundAssistAPI, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FeatureId, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, UsersApi, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAcceptCarrierTerms, useAcceptFundingSourceTerms, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeletePaymentMethod, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDisableAccountAddon, useDisableRefundAssist, useDownloadRateCard, useEditShippingRule, useEnableAccountAddon, useEnableRefundAssist, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceAcceptedTerms, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentAccount, useGetPaymentMethods, useGetRateCardById, useGetRefundAssist, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useIdentityVerification, useListAccountAddons, useListAccountFeatures, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestAccountFeature, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
40611
+ export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountFeaturesAPI, AccountRefundAssistAPI, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FeatureId, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, UsersApi, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAcceptCarrierTerms, useAcceptFundingSourceTerms, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelRefund, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeletePaymentMethod, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDisableAccountAddon, useDisableRefundAssist, useDownloadRateCard, useEditShippingRule, useEnableAccountAddon, useEnableRefundAssist, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceAcceptedTerms, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentAccount, useGetPaymentMethods, useGetRateCardById, useGetRefundAssist, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useIdentityVerification, useListAccountAddons, useListAccountFeatures, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestAccountFeature, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };