castled-js-sdk 1.1.4 → 1.1.5

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.
@@ -18,7 +18,7 @@
18
18
  for (var i = 1; i < arguments.length; i++) {
19
19
  var source = null != arguments[i] ? arguments[i] : {};
20
20
  i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
21
- _defineProperty$1(target, key, source[key]);
21
+ _defineProperty$2(target, key, source[key]);
22
22
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
23
23
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
24
24
  });
@@ -387,7 +387,7 @@
387
387
  });
388
388
  return Constructor;
389
389
  }
390
- function _defineProperty$1(obj, key, value) {
390
+ function _defineProperty$2(obj, key, value) {
391
391
  key = _toPropertyKey(key);
392
392
  if (key in obj) {
393
393
  Object.defineProperty(obj, key, {
@@ -568,8 +568,8 @@
568
568
  this.fun.apply(null, this.array);
569
569
  };
570
570
  var title = 'browser';
571
- var platform = 'browser';
572
- var browser = true;
571
+ var platform$3 = 'browser';
572
+ var browser$2 = true;
573
573
  var env = {};
574
574
  var argv = [];
575
575
  var version$1 = ''; // empty string to avoid regexp issues
@@ -630,10 +630,10 @@
630
630
  return dif / 1000;
631
631
  }
632
632
 
633
- var browser$1 = {
633
+ var browser$1$1 = {
634
634
  nextTick: nextTick,
635
635
  title: title,
636
- browser: browser,
636
+ browser: browser$2,
637
637
  env: env,
638
638
  argv: argv,
639
639
  version: version$1,
@@ -650,7 +650,7 @@
650
650
  chdir: chdir,
651
651
  umask: umask,
652
652
  hrtime: hrtime,
653
- platform: platform,
653
+ platform: platform$3,
654
654
  release: release,
655
655
  config: config,
656
656
  uptime: uptime
@@ -853,7 +853,7 @@
853
853
 
854
854
  var toString$2 = {}.toString;
855
855
 
856
- var isArray$3 = Array.isArray || function (arr) {
856
+ var isArray$7 = Array.isArray || function (arr) {
857
857
  return toString$2.call(arr) == '[object Array]';
858
858
  };
859
859
 
@@ -1135,7 +1135,7 @@
1135
1135
  return fromArrayLike(that, obj)
1136
1136
  }
1137
1137
 
1138
- if (obj.type === 'Buffer' && isArray$3(obj.data)) {
1138
+ if (obj.type === 'Buffer' && isArray$7(obj.data)) {
1139
1139
  return fromArrayLike(that, obj.data)
1140
1140
  }
1141
1141
  }
@@ -1152,7 +1152,7 @@
1152
1152
  }
1153
1153
  return length | 0
1154
1154
  }
1155
- Buffer.isBuffer = isBuffer$2;
1155
+ Buffer.isBuffer = isBuffer$5;
1156
1156
  function internalIsBuffer (b) {
1157
1157
  return !!(b != null && b._isBuffer)
1158
1158
  }
@@ -1200,7 +1200,7 @@
1200
1200
  };
1201
1201
 
1202
1202
  Buffer.concat = function concat (list, length) {
1203
- if (!isArray$3(list)) {
1203
+ if (!isArray$7(list)) {
1204
1204
  throw new TypeError('"list" argument must be an Array of Buffers')
1205
1205
  }
1206
1206
 
@@ -2618,7 +2618,7 @@
2618
2618
  // the following is from is-buffer, also by Feross Aboukhadijeh and with same lisence
2619
2619
  // The _isBuffer check is for Safari 5-7 support, because it's missing
2620
2620
  // Object.prototype.constructor. Remove this eventually
2621
- function isBuffer$2(obj) {
2621
+ function isBuffer$5(obj) {
2622
2622
  return obj != null && (!!obj._isBuffer || isFastBuffer(obj) || isSlowBuffer(obj))
2623
2623
  }
2624
2624
 
@@ -2671,8 +2671,8 @@
2671
2671
  * @param {Mixed} val
2672
2672
  * @return {String}
2673
2673
  * @api public
2674
- */var componentType=function componentType(val){switch(toString$1.call(val)){case'[object Date]':return 'date';case'[object RegExp]':return 'regexp';case'[object Arguments]':return 'arguments';case'[object Array]':return 'array';case'[object Error]':return 'error';}if(val===null)return 'null';if(val===undefined)return 'undefined';if(val!==val)return 'nan';if(val&&val.nodeType===1)return 'element';if(isBuffer$1(val))return 'buffer';val=val.valueOf?val.valueOf():Object.prototype.valueOf.apply(val);return _typeof(val);};// code borrowed from https://github.com/feross/is-buffer/blob/master/index.js
2675
- function isBuffer$1(obj){return !!(obj!=null&&(obj._isBuffer||// For Safari 5-7 (missing Object.prototype.constructor)
2674
+ */var componentType=function componentType(val){switch(toString$1.call(val)){case'[object Date]':return 'date';case'[object RegExp]':return 'regexp';case'[object Arguments]':return 'arguments';case'[object Array]':return 'array';case'[object Error]':return 'error';}if(val===null)return 'null';if(val===undefined)return 'undefined';if(val!==val)return 'nan';if(val&&val.nodeType===1)return 'element';if(isBuffer$4(val))return 'buffer';val=val.valueOf?val.valueOf():Object.prototype.valueOf.apply(val);return _typeof(val);};// code borrowed from https://github.com/feross/is-buffer/blob/master/index.js
2675
+ function isBuffer$4(obj){return !!(obj!=null&&(obj._isBuffer||// For Safari 5-7 (missing Object.prototype.constructor)
2676
2676
  obj.constructor&&typeof obj.constructor.isBuffer==='function'&&obj.constructor.isBuffer(obj)));}
2677
2677
 
2678
2678
  /**
@@ -2808,7 +2808,7 @@
2808
2808
  // Check that value is an object with an inspect function on it
2809
2809
  if (ctx.customInspect &&
2810
2810
  value &&
2811
- isFunction$2(value.inspect) &&
2811
+ isFunction$5(value.inspect) &&
2812
2812
  // Filter out the util module, it's inspect function is special
2813
2813
  value.inspect !== inspect$1 &&
2814
2814
  // Also filter out any prototype objects using the circular check.
@@ -2843,7 +2843,7 @@
2843
2843
 
2844
2844
  // Some type of object without properties can be shortcutted.
2845
2845
  if (keys.length === 0) {
2846
- if (isFunction$2(value)) {
2846
+ if (isFunction$5(value)) {
2847
2847
  var name = value.name ? ': ' + value.name : '';
2848
2848
  return ctx.stylize('[Function' + name + ']', 'special');
2849
2849
  }
@@ -2861,13 +2861,13 @@
2861
2861
  var base = '', array = false, braces = ['{', '}'];
2862
2862
 
2863
2863
  // Make Array say that they are Array
2864
- if (isArray$2(value)) {
2864
+ if (isArray$6(value)) {
2865
2865
  array = true;
2866
2866
  braces = ['[', ']'];
2867
2867
  }
2868
2868
 
2869
2869
  // Make functions say that they are functions
2870
- if (isFunction$2(value)) {
2870
+ if (isFunction$5(value)) {
2871
2871
  var n = value.name ? ': ' + value.name : '';
2872
2872
  base = ' [Function' + n + ']';
2873
2873
  }
@@ -2943,7 +2943,7 @@
2943
2943
  function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
2944
2944
  var output = [];
2945
2945
  for (var i = 0, l = value.length; i < l; ++i) {
2946
- if (hasOwnProperty(value, String(i))) {
2946
+ if (hasOwnProperty$b(value, String(i))) {
2947
2947
  output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
2948
2948
  String(i), true));
2949
2949
  } else {
@@ -2974,7 +2974,7 @@
2974
2974
  str = ctx.stylize('[Setter]', 'special');
2975
2975
  }
2976
2976
  }
2977
- if (!hasOwnProperty(visibleKeys, key)) {
2977
+ if (!hasOwnProperty$b(visibleKeys, key)) {
2978
2978
  name = '[' + key + ']';
2979
2979
  }
2980
2980
  if (!str) {
@@ -3040,7 +3040,7 @@
3040
3040
 
3041
3041
  // NOTE: These type checking functions intentionally don't use `instanceof`
3042
3042
  // because it is fragile and can be easily faked with `Object.create()`.
3043
- function isArray$2(ar) {
3043
+ function isArray$6(ar) {
3044
3044
  return Array.isArray(ar);
3045
3045
  }
3046
3046
 
@@ -3065,23 +3065,23 @@
3065
3065
  }
3066
3066
 
3067
3067
  function isRegExp(re) {
3068
- return isObject$1(re) && objectToString$1(re) === '[object RegExp]';
3068
+ return isObject$7(re) && objectToString$2(re) === '[object RegExp]';
3069
3069
  }
3070
3070
 
3071
- function isObject$1(arg) {
3071
+ function isObject$7(arg) {
3072
3072
  return typeof arg === 'object' && arg !== null;
3073
3073
  }
3074
3074
 
3075
3075
  function isDate$1(d) {
3076
- return isObject$1(d) && objectToString$1(d) === '[object Date]';
3076
+ return isObject$7(d) && objectToString$2(d) === '[object Date]';
3077
3077
  }
3078
3078
 
3079
3079
  function isError(e) {
3080
- return isObject$1(e) &&
3081
- (objectToString$1(e) === '[object Error]' || e instanceof Error);
3080
+ return isObject$7(e) &&
3081
+ (objectToString$2(e) === '[object Error]' || e instanceof Error);
3082
3082
  }
3083
3083
 
3084
- function isFunction$2(arg) {
3084
+ function isFunction$5(arg) {
3085
3085
  return typeof arg === 'function';
3086
3086
  }
3087
3087
 
@@ -3094,13 +3094,13 @@
3094
3094
  typeof arg === 'undefined';
3095
3095
  }
3096
3096
 
3097
- function objectToString$1(o) {
3097
+ function objectToString$2(o) {
3098
3098
  return Object.prototype.toString.call(o);
3099
3099
  }
3100
3100
 
3101
3101
  function _extend(origin, add) {
3102
3102
  // Don't do anything if add isn't an object
3103
- if (!add || !isObject$1(add)) return origin;
3103
+ if (!add || !isObject$7(add)) return origin;
3104
3104
 
3105
3105
  var keys = Object.keys(add);
3106
3106
  var i = keys.length;
@@ -3109,7 +3109,7 @@
3109
3109
  }
3110
3110
  return origin;
3111
3111
  }
3112
- function hasOwnProperty(obj, prop) {
3112
+ function hasOwnProperty$b(obj, prop) {
3113
3113
  return Object.prototype.hasOwnProperty.call(obj, prop);
3114
3114
  }
3115
3115
 
@@ -3160,7 +3160,7 @@
3160
3160
  return Object.prototype.toString.call(obj);
3161
3161
  }
3162
3162
  function isView(arrbuf) {
3163
- if (isBuffer$2(arrbuf)) {
3163
+ if (isBuffer$5(arrbuf)) {
3164
3164
  return false;
3165
3165
  }
3166
3166
  if (typeof global$1.ArrayBuffer !== 'function') {
@@ -3196,7 +3196,7 @@
3196
3196
  var regex = /\s*function\s+([^\(\s]*)\s*/;
3197
3197
  // based on https://github.com/ljharb/function.prototype.name/blob/adeeeec8bfcc6068b187d7d9fb3d5bb1d3a30899/implementation.js
3198
3198
  function getName(func) {
3199
- if (!isFunction$2(func)) {
3199
+ if (!isFunction$5(func)) {
3200
3200
  return;
3201
3201
  }
3202
3202
  if (functionsHaveNames()) {
@@ -3254,7 +3254,7 @@
3254
3254
  }
3255
3255
  }
3256
3256
  function inspect(something) {
3257
- if (functionsHaveNames() || !isFunction$2(something)) {
3257
+ if (functionsHaveNames() || !isFunction$5(something)) {
3258
3258
  return inspect$1(something);
3259
3259
  }
3260
3260
  var rawname = getName(something);
@@ -3339,7 +3339,7 @@
3339
3339
  // 7.1. All identical values are equivalent, as determined by ===.
3340
3340
  if (actual === expected) {
3341
3341
  return true;
3342
- } else if (isBuffer$2(actual) && isBuffer$2(expected)) {
3342
+ } else if (isBuffer$5(actual) && isBuffer$5(expected)) {
3343
3343
  return compare(actual, expected) === 0;
3344
3344
 
3345
3345
  // 7.2. If the expected value is a Date object, the actual value is
@@ -3382,7 +3382,7 @@
3382
3382
  // (although not necessarily the same order), equivalent values for every
3383
3383
  // corresponding key, and an identical 'prototype' property. Note: this
3384
3384
  // accounts for both named and indexed properties on Arrays.
3385
- } else if (isBuffer$2(actual) !== isBuffer$2(expected)) {
3385
+ } else if (isBuffer$5(actual) !== isBuffer$5(expected)) {
3386
3386
  return false;
3387
3387
  } else {
3388
3388
  memos = memos || {actual: [], expected: []};
@@ -3401,7 +3401,7 @@
3401
3401
  }
3402
3402
  }
3403
3403
 
3404
- function isArguments(object) {
3404
+ function isArguments$2(object) {
3405
3405
  return Object.prototype.toString.call(object) == '[object Arguments]';
3406
3406
  }
3407
3407
 
@@ -3413,8 +3413,8 @@
3413
3413
  return a === b;
3414
3414
  if (strict && Object.getPrototypeOf(a) !== Object.getPrototypeOf(b))
3415
3415
  return false;
3416
- var aIsArgs = isArguments(a);
3417
- var bIsArgs = isArguments(b);
3416
+ var aIsArgs = isArguments$2(a);
3417
+ var bIsArgs = isArguments$2(b);
3418
3418
  if ((aIsArgs && !bIsArgs) || (!aIsArgs && bIsArgs))
3419
3419
  return false;
3420
3420
  if (aIsArgs) {
@@ -3618,7 +3618,7 @@
3618
3618
 
3619
3619
  var axios$3 = {exports: {}};
3620
3620
 
3621
- var bind$2=function bind(fn,thisArg){return function wrap(){var args=new Array(arguments.length);for(var i=0;i<args.length;i++){args[i]=arguments[i];}return fn.apply(thisArg,args);};};
3621
+ var bind$2=function bind(fn,thisArg){return function wrap(){return fn.apply(thisArg,arguments);};};
3622
3622
 
3623
3623
  var bind$1=bind$2;// utils is a library of generic helper functions non-specific to axios
3624
3624
  var toString=Object.prototype.toString;// eslint-disable-next-line func-names
@@ -3628,7 +3628,7 @@
3628
3628
  *
3629
3629
  * @param {Object} val The value to test
3630
3630
  * @returns {boolean} True if value is an Array, otherwise false
3631
- */function isArray$1(val){return Array.isArray(val);}/**
3631
+ */function isArray$5(val){return Array.isArray(val);}/**
3632
3632
  * Determine if a value is undefined
3633
3633
  *
3634
3634
  * @param {Object} val The value to test
@@ -3638,7 +3638,7 @@
3638
3638
  *
3639
3639
  * @param {Object} val The value to test
3640
3640
  * @returns {boolean} True if value is a Buffer, otherwise false
3641
- */function isBuffer(val){return val!==null&&!isUndefined(val)&&val.constructor!==null&&!isUndefined(val.constructor)&&typeof val.constructor.isBuffer==='function'&&val.constructor.isBuffer(val);}/**
3641
+ */function isBuffer$3(val){return val!==null&&!isUndefined(val)&&val.constructor!==null&&!isUndefined(val.constructor)&&typeof val.constructor.isBuffer==='function'&&val.constructor.isBuffer(val);}/**
3642
3642
  * Determine if a value is an ArrayBuffer
3643
3643
  *
3644
3644
  * @function
@@ -3664,12 +3664,17 @@
3664
3664
  *
3665
3665
  * @param {Object} val The value to test
3666
3666
  * @returns {boolean} True if value is an Object, otherwise false
3667
- */function isObject(val){return val!==null&&_typeof(val)==='object';}/**
3667
+ */function isObject$6(val){return val!==null&&_typeof(val)==='object';}/**
3668
3668
  * Determine if a value is a plain Object
3669
3669
  *
3670
3670
  * @param {Object} val The value to test
3671
3671
  * @return {boolean} True if value is a plain Object, otherwise false
3672
3672
  */function isPlainObject(val){if(kindOf(val)!=='object'){return false;}var prototype=Object.getPrototypeOf(val);return prototype===null||prototype===Object.prototype;}/**
3673
+ * Determine if a value is a empty Object
3674
+ *
3675
+ * @param {Object} val The value to test
3676
+ * @return {boolean} True if value is a empty Object, otherwise false
3677
+ */function isEmptyObject(val){return val&&Object.keys(val).length===0&&Object.getPrototypeOf(val)===Object.prototype;}/**
3673
3678
  * Determine if a value is a Date
3674
3679
  *
3675
3680
  * @function
@@ -3698,17 +3703,17 @@
3698
3703
  *
3699
3704
  * @param {Object} val The value to test
3700
3705
  * @returns {boolean} True if value is a Function, otherwise false
3701
- */function isFunction$1(val){return toString.call(val)==='[object Function]';}/**
3706
+ */function isFunction$4(val){return toString.call(val)==='[object Function]';}/**
3702
3707
  * Determine if a value is a Stream
3703
3708
  *
3704
3709
  * @param {Object} val The value to test
3705
3710
  * @returns {boolean} True if value is a Stream, otherwise false
3706
- */function isStream(val){return isObject(val)&&isFunction$1(val.pipe);}/**
3711
+ */function isStream(val){return isObject$6(val)&&isFunction$4(val.pipe);}/**
3707
3712
  * Determine if a value is a FormData
3708
3713
  *
3709
3714
  * @param {Object} thing The value to test
3710
3715
  * @returns {boolean} True if value is an FormData, otherwise false
3711
- */function isFormData(thing){var pattern='[object FormData]';return thing&&(typeof FormData==='function'&&thing instanceof FormData||toString.call(thing)===pattern||isFunction$1(thing.toString)&&thing.toString()===pattern);}/**
3716
+ */function isFormData(thing){var pattern='[object FormData]';return thing&&(typeof FormData==='function'&&thing instanceof FormData||toString.call(thing)===pattern||isFunction$4(thing.toString)&&thing.toString()===pattern);}/**
3712
3717
  * Determine if a value is a URLSearchParams object
3713
3718
  * @function
3714
3719
  * @param {Object} val The value to test
@@ -3718,7 +3723,7 @@
3718
3723
  *
3719
3724
  * @param {String} str The String to trim
3720
3725
  * @returns {String} The String freed of excess whitespace
3721
- */function trim(str){return str.trim?str.trim():str.replace(/^\s+|\s+$/g,'');}/**
3726
+ */function trim(str){return str.trim?str.trim():str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,'');}/**
3722
3727
  * Determine if we're running in a standard browser environment
3723
3728
  *
3724
3729
  * This allows axios to run in a web worker, and react-native.
@@ -3732,7 +3737,7 @@
3732
3737
  * navigator.product -> 'ReactNative'
3733
3738
  * nativescript
3734
3739
  * navigator.product -> 'NativeScript' or 'NS'
3735
- */function isStandardBrowserEnv(){if(typeof navigator!=='undefined'&&(navigator.product==='ReactNative'||navigator.product==='NativeScript'||navigator.product==='NS')){return false;}return typeof window!=='undefined'&&typeof document!=='undefined';}/**
3740
+ */function isStandardBrowserEnv(){var product;if(typeof navigator!=='undefined'&&((product=navigator.product)==='ReactNative'||product==='NativeScript'||product==='NS')){return false;}return typeof window!=='undefined'&&typeof document!=='undefined';}/**
3736
3741
  * Iterate over an Array or an Object invoking a function for each item.
3737
3742
  *
3738
3743
  * If `obj` is an Array callback will be called passing
@@ -3745,7 +3750,7 @@
3745
3750
  * @param {Function} fn The callback to invoke for each item
3746
3751
  */function forEach(obj,fn){// Don't bother if no value provided
3747
3752
  if(obj===null||typeof obj==='undefined'){return;}// Force an array if not already something iterable
3748
- if(_typeof(obj)!=='object'){/*eslint no-param-reassign:0*/obj=[obj];}if(isArray$1(obj)){// Iterate over array values
3753
+ if(_typeof(obj)!=='object'){/*eslint no-param-reassign:0*/obj=[obj];}if(isArray$5(obj)){// Iterate over array values
3749
3754
  for(var i=0,l=obj.length;i<l;i++){fn.call(null,obj[i],i,obj);}}else {// Iterate over object keys
3750
3755
  for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key)){fn.call(null,obj[key],key,obj);}}}}/**
3751
3756
  * Accepts varargs expecting each argument to be an object, then
@@ -3763,7 +3768,7 @@
3763
3768
  *
3764
3769
  * @param {Object} obj1 Object to merge
3765
3770
  * @returns {Object} Result of all merge properties
3766
- */function merge(/* obj1, obj2, obj3, ... */){var result={};function assignValue(val,key){if(isPlainObject(result[key])&&isPlainObject(val)){result[key]=merge(result[key],val);}else if(isPlainObject(val)){result[key]=merge({},val);}else if(isArray$1(val)){result[key]=val.slice();}else {result[key]=val;}}for(var i=0,l=arguments.length;i<l;i++){forEach(arguments[i],assignValue);}return result;}/**
3771
+ */function merge(/* obj1, obj2, obj3, ... */){var result={};function assignValue(val,key){if(isPlainObject(result[key])&&isPlainObject(val)){result[key]=merge(result[key],val);}else if(isPlainObject(val)){result[key]=merge({},val);}else if(isArray$5(val)){result[key]=val.slice();}else {result[key]=val;}}for(var i=0,l=arguments.length;i<l;i++){forEach(arguments[i],assignValue);}return result;}/**
3767
3772
  * Extends object a by mutably adding to it the properties of object b.
3768
3773
  *
3769
3774
  * @param {Object} a The object to be extended
@@ -3785,31 +3790,86 @@
3785
3790
  * Resolve object with deep prototype chain to a flat object
3786
3791
  * @param {Object} sourceObj source object
3787
3792
  * @param {Object} [destObj]
3788
- * @param {Function} [filter]
3793
+ * @param {Function|Boolean} [filter]
3794
+ * @param {Function} [propFilter]
3789
3795
  * @returns {Object}
3790
- */function toFlatObject(sourceObj,destObj,filter){var props;var i;var prop;var merged={};destObj=destObj||{};do{props=Object.getOwnPropertyNames(sourceObj);i=props.length;while(i-->0){prop=props[i];if(!merged[prop]){destObj[prop]=sourceObj[prop];merged[prop]=true;}}sourceObj=Object.getPrototypeOf(sourceObj);}while(sourceObj&&(!filter||filter(sourceObj,destObj))&&sourceObj!==Object.prototype);return destObj;}/*
3796
+ */function toFlatObject(sourceObj,destObj,filter,propFilter){var props;var i;var prop;var merged={};destObj=destObj||{};// eslint-disable-next-line no-eq-null,eqeqeq
3797
+ if(sourceObj==null)return destObj;do{props=Object.getOwnPropertyNames(sourceObj);i=props.length;while(i-->0){prop=props[i];if((!propFilter||propFilter(prop,sourceObj,destObj))&&!merged[prop]){destObj[prop]=sourceObj[prop];merged[prop]=true;}}sourceObj=filter!==false&&Object.getPrototypeOf(sourceObj);}while(sourceObj&&(!filter||filter(sourceObj,destObj))&&sourceObj!==Object.prototype);return destObj;}/*
3791
3798
  * determines whether a string ends with the characters of a specified string
3792
3799
  * @param {String} str
3793
3800
  * @param {String} searchString
3794
3801
  * @param {Number} [position= 0]
3795
3802
  * @returns {boolean}
3796
3803
  */function endsWith(str,searchString,position){str=String(str);if(position===undefined||position>str.length){position=str.length;}position-=searchString.length;var lastIndex=str.indexOf(searchString,position);return lastIndex!==-1&&lastIndex===position;}/**
3797
- * Returns new array from array like object
3804
+ * Returns new array from array like object or null if failed
3798
3805
  * @param {*} [thing]
3799
- * @returns {Array}
3800
- */function toArray(thing){if(!thing)return null;var i=thing.length;if(isUndefined(i))return null;var arr=new Array(i);while(i-->0){arr[i]=thing[i];}return arr;}// eslint-disable-next-line func-names
3801
- var isTypedArray=function(TypedArray){// eslint-disable-next-line func-names
3802
- return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof Uint8Array!=='undefined'&&Object.getPrototypeOf(Uint8Array));var utils$9={isArray:isArray$1,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString$2,isNumber:isNumber,isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isFunction:isFunction$1,isStream:isStream,isURLSearchParams:isURLSearchParams,isStandardBrowserEnv:isStandardBrowserEnv,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,isTypedArray:isTypedArray,isFileList:isFileList};
3806
+ * @returns {?Array}
3807
+ */function toArray(thing){if(!thing)return null;if(isArray$5(thing))return thing;var i=thing.length;if(!isNumber(i))return null;var arr=new Array(i);while(i-->0){arr[i]=thing[i];}return arr;}// eslint-disable-next-line func-names
3808
+ var isTypedArray$2=function(TypedArray){// eslint-disable-next-line func-names
3809
+ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof Uint8Array!=='undefined'&&Object.getPrototypeOf(Uint8Array));function forEachEntry(obj,fn){var generator=obj&&obj[Symbol.iterator];var iterator=generator.call(obj);var result;while((result=iterator.next())&&!result.done){var pair=result.value;fn.call(obj,pair[0],pair[1]);}}function matchAll(regExp,str){var matches;var arr=[];while((matches=regExp.exec(str))!==null){arr.push(matches);}return arr;}var isHTMLForm=kindOfTest('HTMLFormElement');var hasOwnProperty$a=function resolver(_hasOwnProperty){return function(obj,prop){return _hasOwnProperty.call(obj,prop);};}(Object.prototype.hasOwnProperty);var utils$b={isArray:isArray$5,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer$3,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString$2,isNumber:isNumber,isObject:isObject$6,isPlainObject:isPlainObject,isEmptyObject:isEmptyObject,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isFunction:isFunction$4,isStream:isStream,isURLSearchParams:isURLSearchParams,isStandardBrowserEnv:isStandardBrowserEnv,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,isTypedArray:isTypedArray$2,isFileList:isFileList,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty$a};
3810
+
3811
+ var AxiosError_1;var hasRequiredAxiosError;function requireAxiosError(){if(hasRequiredAxiosError)return AxiosError_1;hasRequiredAxiosError=1;var utils=utils$b;/**
3812
+ * Create an Error with the specified message, config, error code, request and response.
3813
+ *
3814
+ * @param {string} message The error message.
3815
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
3816
+ * @param {Object} [config] The config.
3817
+ * @param {Object} [request] The request.
3818
+ * @param {Object} [response] The response.
3819
+ * @returns {Error} The created error.
3820
+ */function AxiosError(message,code,config,request,response){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor);}else {this.stack=new Error().stack;}this.message=message;this.name='AxiosError';code&&(this.code=code);config&&(this.config=config);request&&(this.request=request);response&&(this.response=response);}utils.inherits(AxiosError,Error,{toJSON:function toJSON(){return {// Standard
3821
+ message:this.message,name:this.name,// Microsoft
3822
+ description:this.description,number:this.number,// Mozilla
3823
+ fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,// Axios
3824
+ config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null};}});var prototype=AxiosError.prototype;var descriptors={};['ERR_BAD_OPTION_VALUE','ERR_BAD_OPTION','ECONNABORTED','ETIMEDOUT','ERR_NETWORK','ERR_FR_TOO_MANY_REDIRECTS','ERR_DEPRECATED','ERR_BAD_RESPONSE','ERR_BAD_REQUEST','ERR_CANCELED','ERR_NOT_SUPPORT','ERR_INVALID_URL'// eslint-disable-next-line func-names
3825
+ ].forEach(function(code){descriptors[code]={value:code};});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype,'isAxiosError',{value:true});// eslint-disable-next-line func-names
3826
+ AxiosError.from=function(error,code,config,request,response,customProps){var axiosError=Object.create(prototype);utils.toFlatObject(error,axiosError,function filter(obj){return obj!==Error.prototype;});AxiosError.call(axiosError,error.message,code,config,request,response);axiosError.cause=error;axiosError.name=error.name;customProps&&_extends(axiosError,customProps);return axiosError;};AxiosError_1=AxiosError;return AxiosError_1;}
3827
+
3828
+ var browser$1;var hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser$1;hasRequiredBrowser=1;browser$1=(typeof self==="undefined"?"undefined":_typeof(self))=='object'?self.FormData:window.FormData;return browser$1;}
3803
3829
 
3804
- var utils$8=utils$9;function encode(val){return encodeURIComponent(val).replace(/%3A/gi,':').replace(/%24/g,'$').replace(/%2C/gi,',').replace(/%20/g,'+').replace(/%5B/gi,'[').replace(/%5D/gi,']');}/**
3830
+ var FormData$1;var hasRequiredFormData;function requireFormData(){if(hasRequiredFormData)return FormData$1;hasRequiredFormData=1;// eslint-disable-next-line strict
3831
+ FormData$1=requireBrowser();return FormData$1;}
3832
+
3833
+ var toFormData_1;var hasRequiredToFormData;function requireToFormData(){if(hasRequiredToFormData)return toFormData_1;hasRequiredToFormData=1;var utils=utils$b;var AxiosError=requireAxiosError();var envFormData=requireFormData();function isVisitable(thing){return utils.isPlainObject(thing)||utils.isArray(thing);}function removeBrackets(key){return utils.endsWith(key,'[]')?key.slice(0,-2):key;}function renderKey(path,key,dots){if(!path)return key;return path.concat(key).map(function each(token,i){// eslint-disable-next-line no-param-reassign
3834
+ token=removeBrackets(token);return !dots&&i?'['+token+']':token;}).join(dots?'.':'');}function isFlatArray(arr){return utils.isArray(arr)&&!arr.some(isVisitable);}var predicates=utils.toFlatObject(utils,{},null,function filter(prop){return /^is[A-Z]/.test(prop);});function isSpecCompliant(thing){return thing&&utils.isFunction(thing.append)&&thing[Symbol.toStringTag]==='FormData'&&thing[Symbol.iterator];}/**
3835
+ * Convert a data object to FormData
3836
+ * @param {Object} obj
3837
+ * @param {?Object} [formData]
3838
+ * @param {?Object} [options]
3839
+ * @param {Function} [options.visitor]
3840
+ * @param {Boolean} [options.metaTokens = true]
3841
+ * @param {Boolean} [options.dots = false]
3842
+ * @param {?Boolean} [options.indexes = false]
3843
+ * @returns {Object}
3844
+ **/function toFormData(obj,formData,options){if(!utils.isObject(obj)){throw new TypeError('target must be an object');}// eslint-disable-next-line no-param-reassign
3845
+ formData=formData||new(envFormData||FormData)();// eslint-disable-next-line no-param-reassign
3846
+ options=utils.toFlatObject(options,{metaTokens:true,dots:false,indexes:false},false,function defined(option,source){// eslint-disable-next-line no-eq-null,eqeqeq
3847
+ return !utils.isUndefined(source[option]);});var metaTokens=options.metaTokens;// eslint-disable-next-line no-use-before-define
3848
+ var visitor=options.visitor||defaultVisitor;var dots=options.dots;var indexes=options.indexes;var _Blob=options.Blob||typeof Blob!=='undefined'&&Blob;var useBlob=_Blob&&isSpecCompliant(formData);if(!utils.isFunction(visitor)){throw new TypeError('visitor must be a function');}function convertValue(value){if(value===null)return '';if(utils.isDate(value)){return value.toISOString();}if(!useBlob&&utils.isBlob(value)){throw new AxiosError('Blob is not supported. Use a Buffer instead.');}if(utils.isArrayBuffer(value)||utils.isTypedArray(value)){return useBlob&&typeof Blob==='function'?new Blob([value]):Buffer.from(value);}return value;}/**
3849
+ *
3850
+ * @param {*} value
3851
+ * @param {String|Number} key
3852
+ * @param {Array<String|Number>} path
3853
+ * @this {FormData}
3854
+ * @returns {boolean} return true to visit the each prop of the value recursively
3855
+ */function defaultVisitor(value,key,path){var arr=value;if(value&&!path&&_typeof(value)==='object'){if(utils.endsWith(key,'{}')){// eslint-disable-next-line no-param-reassign
3856
+ key=metaTokens?key:key.slice(0,-2);// eslint-disable-next-line no-param-reassign
3857
+ value=JSON.stringify(value);}else if(utils.isArray(value)&&isFlatArray(value)||utils.isFileList(value)||utils.endsWith(key,'[]')&&(arr=utils.toArray(value))){// eslint-disable-next-line no-param-reassign
3858
+ key=removeBrackets(key);arr.forEach(function each(el,index){!utils.isUndefined(el)&&formData.append(// eslint-disable-next-line no-nested-ternary
3859
+ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertValue(el));});return false;}}if(isVisitable(value)){return true;}formData.append(renderKey(path,key,dots),convertValue(value));return false;}var stack=[];var exposedHelpers=_extends(predicates,{defaultVisitor:defaultVisitor,convertValue:convertValue,isVisitable:isVisitable});function build(value,path){if(utils.isUndefined(value))return;if(stack.indexOf(value)!==-1){throw Error('Circular reference detected in '+path.join('.'));}stack.push(value);utils.forEach(value,function each(el,key){var result=!utils.isUndefined(el)&&visitor.call(formData,el,utils.isString(key)?key.trim():key,path,exposedHelpers);if(result===true){build(el,path?path.concat(key):[key]);}});stack.pop();}if(!utils.isObject(obj)){throw new TypeError('data must be an object');}build(obj);return formData;}toFormData_1=toFormData;return toFormData_1;}
3860
+
3861
+ var toFormData$2=requireToFormData();function encode$1(str){var charMap={'!':'%21',"'":'%27','(':'%28',')':'%29','~':'%7E','%20':'+','%00':'\x00'};return encodeURIComponent(str).replace(/[!'\(\)~]|%20|%00/g,function replacer(match){return charMap[match];});}function AxiosURLSearchParams$2(params,options){this._pairs=[];params&&toFormData$2(params,this,options);}var prototype=AxiosURLSearchParams$2.prototype;prototype.append=function append(name,value){this._pairs.push([name,value]);};prototype.toString=function toString(encoder){var _encode=encoder?function(value){return encoder.call(this,value,encode$1);}:encode$1;return this._pairs.map(function each(pair){return _encode(pair[0])+'='+_encode(pair[1]);},'').join('&');};var AxiosURLSearchParams_1=AxiosURLSearchParams$2;
3862
+
3863
+ var utils$a=utils$b;var AxiosURLSearchParams$1=AxiosURLSearchParams_1;function encode(val){return encodeURIComponent(val).replace(/%3A/gi,':').replace(/%24/g,'$').replace(/%2C/gi,',').replace(/%20/g,'+').replace(/%5B/gi,'[').replace(/%5D/gi,']');}/**
3805
3864
  * Build a URL by appending params to the end
3806
3865
  *
3807
3866
  * @param {string} url The base of the url (e.g., http://www.google.com)
3808
3867
  * @param {object} [params] The params to be appended
3868
+ * @param {?object} options
3809
3869
  * @returns {string} The formatted url
3810
- */var buildURL$1=function buildURL(url,params,paramsSerializer){/*eslint no-param-reassign:0*/if(!params){return url;}var serializedParams;if(paramsSerializer){serializedParams=paramsSerializer(params);}else if(utils$8.isURLSearchParams(params)){serializedParams=params.toString();}else {var parts=[];utils$8.forEach(params,function serialize(val,key){if(val===null||typeof val==='undefined'){return;}if(utils$8.isArray(val)){key=key+'[]';}else {val=[val];}utils$8.forEach(val,function parseValue(v){if(utils$8.isDate(v)){v=v.toISOString();}else if(utils$8.isObject(v)){v=JSON.stringify(v);}parts.push(encode(key)+'='+encode(v));});});serializedParams=parts.join('&');}if(serializedParams){var hashmarkIndex=url.indexOf('#');if(hashmarkIndex!==-1){url=url.slice(0,hashmarkIndex);}url+=(url.indexOf('?')===-1?'?':'&')+serializedParams;}return url;};var buildURL$2 = /*@__PURE__*/getDefaultExportFromCjs(buildURL$1);
3870
+ */var buildURL$1=function buildURL(url,params,options){/*eslint no-param-reassign:0*/if(!params){return url;}var hashmarkIndex=url.indexOf('#');if(hashmarkIndex!==-1){url=url.slice(0,hashmarkIndex);}var _encode=options&&options.encode||encode;var serializerParams=utils$a.isURLSearchParams(params)?params.toString():new AxiosURLSearchParams$1(params,options).toString(_encode);if(serializerParams){url+=(url.indexOf('?')===-1?'?':'&')+serializerParams;}return url;};var buildURL$2 = /*@__PURE__*/getDefaultExportFromCjs(buildURL$1);
3811
3871
 
3812
- var utils$7=utils$9;function InterceptorManager$1(){this.handlers=[];}/**
3872
+ var utils$9=utils$b;function InterceptorManager$1(){this.handlers=[];}/**
3813
3873
  * Add a new interceptor to the stack
3814
3874
  *
3815
3875
  * @param {Function} fulfilled The function to handle `then` for a `Promise`
@@ -3821,44 +3881,35 @@
3821
3881
  *
3822
3882
  * @param {Number} id The ID that was returned by `use`
3823
3883
  */InterceptorManager$1.prototype.eject=function eject(id){if(this.handlers[id]){this.handlers[id]=null;}};/**
3884
+ * Clear all interceptors from the stack
3885
+ */InterceptorManager$1.prototype.clear=function clear(){if(this.handlers){this.handlers=[];}};/**
3824
3886
  * Iterate over all the registered interceptors
3825
3887
  *
3826
3888
  * This method is particularly useful for skipping over any
3827
3889
  * interceptors that may have become `null` calling `eject`.
3828
3890
  *
3829
3891
  * @param {Function} fn The function to call for each interceptor
3830
- */InterceptorManager$1.prototype.forEach=function forEach(fn){utils$7.forEach(this.handlers,function forEachHandler(h){if(h!==null){fn(h);}});};var InterceptorManager_1=InterceptorManager$1;
3831
-
3832
- var utils$6=utils$9;var normalizeHeaderName$1=function normalizeHeaderName(headers,normalizedName){utils$6.forEach(headers,function processHeader(value,name){if(name!==normalizedName&&name.toUpperCase()===normalizedName.toUpperCase()){headers[normalizedName]=value;delete headers[name];}});};
3892
+ */InterceptorManager$1.prototype.forEach=function forEach(fn){utils$9.forEach(this.handlers,function forEachHandler(h){if(h!==null){fn(h);}});};var InterceptorManager_1=InterceptorManager$1;
3833
3893
 
3834
- var AxiosError_1;var hasRequiredAxiosError;function requireAxiosError(){if(hasRequiredAxiosError)return AxiosError_1;hasRequiredAxiosError=1;var utils=utils$9;/**
3835
- * Create an Error with the specified message, config, error code, request and response.
3836
- *
3837
- * @param {string} message The error message.
3838
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
3839
- * @param {Object} [config] The config.
3840
- * @param {Object} [request] The request.
3841
- * @param {Object} [response] The response.
3842
- * @returns {Error} The created error.
3843
- */function AxiosError(message,code,config,request,response){Error.call(this);this.message=message;this.name='AxiosError';code&&(this.code=code);config&&(this.config=config);request&&(this.request=request);response&&(this.response=response);}utils.inherits(AxiosError,Error,{toJSON:function toJSON(){return {// Standard
3844
- message:this.message,name:this.name,// Microsoft
3845
- description:this.description,number:this.number,// Mozilla
3846
- fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,// Axios
3847
- config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null};}});var prototype=AxiosError.prototype;var descriptors={};['ERR_BAD_OPTION_VALUE','ERR_BAD_OPTION','ECONNABORTED','ETIMEDOUT','ERR_NETWORK','ERR_FR_TOO_MANY_REDIRECTS','ERR_DEPRECATED','ERR_BAD_RESPONSE','ERR_BAD_REQUEST','ERR_CANCELED'// eslint-disable-next-line func-names
3848
- ].forEach(function(code){descriptors[code]={value:code};});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype,'isAxiosError',{value:true});// eslint-disable-next-line func-names
3849
- AxiosError.from=function(error,code,config,request,response,customProps){var axiosError=Object.create(prototype);utils.toFlatObject(error,axiosError,function filter(obj){return obj!==Error.prototype;});AxiosError.call(axiosError,error.message,code,config,request,response);axiosError.name=error.name;customProps&&_extends(axiosError,customProps);return axiosError;};AxiosError_1=AxiosError;return AxiosError_1;}
3894
+ var utils$8=utils$b;var normalizeHeaderName$2=function normalizeHeaderName(headers,normalizedName){utils$8.forEach(headers,function processHeader(value,name){if(name!==normalizedName&&name.toUpperCase()===normalizedName.toUpperCase()){headers[normalizedName]=value;delete headers[name];}});};
3850
3895
 
3851
3896
  var transitional={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};
3852
3897
 
3853
- var toFormData_1;var hasRequiredToFormData;function requireToFormData(){if(hasRequiredToFormData)return toFormData_1;hasRequiredToFormData=1;var utils=utils$9;/**
3854
- * Convert a data object to FormData
3855
- * @param {Object} obj
3856
- * @param {?Object} [formData]
3857
- * @returns {Object}
3858
- **/function toFormData(obj,formData){// eslint-disable-next-line no-param-reassign
3859
- formData=formData||new FormData();var stack=[];function convertValue(value){if(value===null)return '';if(utils.isDate(value)){return value.toISOString();}if(utils.isArrayBuffer(value)||utils.isTypedArray(value)){return typeof Blob==='function'?new Blob([value]):Buffer.from(value);}return value;}function build(data,parentKey){if(utils.isPlainObject(data)||utils.isArray(data)){if(stack.indexOf(data)!==-1){throw Error('Circular reference detected in '+parentKey);}stack.push(data);utils.forEach(data,function each(value,key){if(utils.isUndefined(value))return;var fullKey=parentKey?parentKey+'.'+key:key;var arr;if(value&&!parentKey&&_typeof(value)==='object'){if(utils.endsWith(key,'{}')){// eslint-disable-next-line no-param-reassign
3860
- value=JSON.stringify(value);}else if(utils.endsWith(key,'[]')&&(arr=utils.toArray(value))){// eslint-disable-next-line func-names
3861
- arr.forEach(function(el){!utils.isUndefined(el)&&formData.append(fullKey,convertValue(el));});return;}}build(value,fullKey);});stack.pop();}else {formData.append(parentKey,convertValue(data));}}build(obj);return formData;}toFormData_1=toFormData;return toFormData_1;}
3898
+ var AxiosURLSearchParams=AxiosURLSearchParams_1;var URLSearchParams_1=typeof URLSearchParams!=='undefined'?URLSearchParams:AxiosURLSearchParams;
3899
+
3900
+ var FormData_1=FormData;
3901
+
3902
+ var browser={isBrowser:true,classes:{URLSearchParams:URLSearchParams_1,FormData:FormData_1,Blob:Blob},protocols:['http','https','file','blob','url','data']};
3903
+
3904
+ var platform$2=browser;
3905
+
3906
+ var utils$7=utils$b;var toFormData$1=requireToFormData();var platform$1=platform$2;var toURLEncodedForm$1=function toURLEncodedForm(data,options){return toFormData$1(data,new platform$1.classes.URLSearchParams(),_extends({visitor:function visitor(value,key,path,helpers){if(platform$1.isNode&&utils$7.isBuffer(value)){this.append(key,value.toString('base64'));return false;}return helpers.defaultVisitor.apply(this,arguments);}},options));};
3907
+
3908
+ var utils$6=utils$b;function parsePropPath(name){// foo[x][y][z]
3909
+ // foo.x.y.z
3910
+ // foo-x-y-z
3911
+ // foo x y z
3912
+ return utils$6.matchAll(/\w+|\[(\w*)]/g,name).map(function(match){return match[0]==='[]'?'':match[1]||match[0];});}function arrayToObject(arr){var obj={};var keys=Object.keys(arr);var i;var len=keys.length;var key;for(i=0;i<len;i++){key=keys[i];obj[key]=arr[key];}return obj;}function formDataToJSON$2(formData){function buildPath(path,value,target,index){var name=path[index++];var isNumericKey=Number.isFinite(+name);var isLast=index>=path.length;name=!name&&utils$6.isArray(target)?target.length:name;if(isLast){if(utils$6.hasOwnProperty(target,name)){target[name]=[target[name],value];}else {target[name]=value;}return !isNumericKey;}if(!target[name]||!utils$6.isObject(target[name])){target[name]=[];}var result=buildPath(path,value,target[name],index);if(result&&utils$6.isArray(target[name])){target[name]=arrayToObject(target[name]);}return !isNumericKey;}if(utils$6.isFormData(formData)&&utils$6.isFunction(formData.entries)){var obj={};utils$6.forEachEntry(formData,function(name,value){buildPath(parsePropPath(name),value,obj,0);});return obj;}return null;}var formDataToJSON_1=formDataToJSON$2;
3862
3913
 
3863
3914
  var AxiosError$2=requireAxiosError();/**
3864
3915
  * Resolve or reject a Promise based on response status.
@@ -3868,7 +3919,7 @@
3868
3919
  * @param {object} response The response.
3869
3920
  */var settle=function settle(resolve,reject,response){var validateStatus=response.config.validateStatus;if(!response.status||!validateStatus||validateStatus(response.status)){resolve(response);}else {reject(new AxiosError$2('Request failed with status code '+response.status,[AxiosError$2.ERR_BAD_REQUEST,AxiosError$2.ERR_BAD_RESPONSE][Math.floor(response.status/100)-4],response.config,response.request,response));}};var settle$1 = /*@__PURE__*/getDefaultExportFromCjs(settle);
3870
3921
 
3871
- var cookies;var hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var utils=utils$9;cookies=utils.isStandardBrowserEnv()?// Standard browser envs support document.cookie
3922
+ var cookies;var hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var utils=utils$b;cookies=utils.isStandardBrowserEnv()?// Standard browser envs support document.cookie
3872
3923
  function standardBrowserEnv(){return {write:function write(name,value,expires,path,domain,secure){var cookie=[];cookie.push(name+'='+encodeURIComponent(value));if(utils.isNumber(expires)){cookie.push('expires='+new Date(expires).toGMTString());}if(utils.isString(path)){cookie.push('path='+path);}if(utils.isString(domain)){cookie.push('domain='+domain);}if(secure===true){cookie.push('secure');}document.cookie=cookie.join('; ');},read:function read(name){var match=document.cookie.match(new RegExp('(^|;\\s*)('+name+')=([^;]*)'));return match?decodeURIComponent(match[3]):null;},remove:function remove(name){this.write(name,'',Date.now()-86400000);}};}():// Non standard browser env (web workers, react-native) lack needed support.
3873
3924
  function nonStandardBrowserEnv(){return {write:function write(){},read:function read(){return null;},remove:function remove(){}};}();return cookies;}
3874
3925
 
@@ -3900,7 +3951,7 @@
3900
3951
  * @returns {string} The combined full path
3901
3952
  */var buildFullPath$1=function buildFullPath(baseURL,requestedURL){if(baseURL&&!isAbsoluteURL(requestedURL)){return combineURLs(baseURL,requestedURL);}return requestedURL;};var buildFullPath$2 = /*@__PURE__*/getDefaultExportFromCjs(buildFullPath$1);
3902
3953
 
3903
- var parseHeaders;var hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var utils=utils$9;// Headers whose duplicates are ignored by node
3954
+ var parseHeaders;var hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var utils=utils$b;// Headers whose duplicates are ignored by node
3904
3955
  // c.f. https://nodejs.org/api/http.html#http_message_headers
3905
3956
  var ignoreDuplicateOf=['age','authorization','content-length','content-type','etag','expires','from','host','if-modified-since','if-unmodified-since','last-modified','location','max-forwards','proxy-authorization','referer','retry-after','user-agent'];/**
3906
3957
  * Parse headers into an object
@@ -3914,36 +3965,38 @@
3914
3965
  *
3915
3966
  * @param {String} headers Headers needing to be parsed
3916
3967
  * @returns {Object} Headers parsed into an object
3917
- */parseHeaders=function parseHeaders(headers){var parsed={};var key;var val;var i;if(!headers){return parsed;}utils.forEach(headers.split('\n'),function parser(line){i=line.indexOf(':');key=utils.trim(line.substr(0,i)).toLowerCase();val=utils.trim(line.substr(i+1));if(key){if(parsed[key]&&ignoreDuplicateOf.indexOf(key)>=0){return;}if(key==='set-cookie'){parsed[key]=(parsed[key]?parsed[key]:[]).concat([val]);}else {parsed[key]=parsed[key]?parsed[key]+', '+val:val;}}});return parsed;};return parseHeaders;}
3968
+ */parseHeaders=function parseHeaders(headers){var parsed={};var key;var val;var i;if(!headers){return parsed;}utils.forEach(headers.split('\n'),function parser(line){i=line.indexOf(':');key=utils.trim(line.slice(0,i)).toLowerCase();val=utils.trim(line.slice(i+1));if(key){if(parsed[key]&&ignoreDuplicateOf.indexOf(key)>=0){return;}if(key==='set-cookie'){parsed[key]=(parsed[key]?parsed[key]:[]).concat([val]);}else {parsed[key]=parsed[key]?parsed[key]+', '+val:val;}}});return parsed;};return parseHeaders;}
3918
3969
 
3919
- var isURLSameOrigin;var hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var utils=utils$9;isURLSameOrigin=utils.isStandardBrowserEnv()?// Standard browser envs have full support of the APIs needed to test
3970
+ var isURLSameOrigin;var hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var utils=utils$b;isURLSameOrigin=utils.isStandardBrowserEnv()?// Standard browser envs have full support of the APIs needed to test
3920
3971
  // whether the request URL is of the same origin as current location.
3921
3972
  function standardBrowserEnv(){var msie=/(msie|trident)/i.test(navigator.userAgent);var urlParsingNode=document.createElement('a');var originURL;/**
3922
- * Parse a URL to discover it's components
3923
- *
3924
- * @param {String} url The URL to be parsed
3925
- * @returns {Object}
3926
- */function resolveURL(url){var href=url;if(msie){// IE needs attribute set twice to normalize properties
3973
+ * Parse a URL to discover it's components
3974
+ *
3975
+ * @param {String} url The URL to be parsed
3976
+ * @returns {Object}
3977
+ */function resolveURL(url){var href=url;if(msie){// IE needs attribute set twice to normalize properties
3927
3978
  urlParsingNode.setAttribute('href',href);href=urlParsingNode.href;}urlParsingNode.setAttribute('href',href);// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
3928
3979
  return {href:urlParsingNode.href,protocol:urlParsingNode.protocol?urlParsingNode.protocol.replace(/:$/,''):'',host:urlParsingNode.host,search:urlParsingNode.search?urlParsingNode.search.replace(/^\?/,''):'',hash:urlParsingNode.hash?urlParsingNode.hash.replace(/^#/,''):'',hostname:urlParsingNode.hostname,port:urlParsingNode.port,pathname:urlParsingNode.pathname.charAt(0)==='/'?urlParsingNode.pathname:'/'+urlParsingNode.pathname};}originURL=resolveURL(window.location.href);/**
3929
- * Determine if a URL shares the same origin as the current location
3930
- *
3931
- * @param {String} requestURL The URL to test
3932
- * @returns {boolean} True if URL shares the same origin, otherwise false
3933
- */return function isURLSameOrigin(requestURL){var parsed=utils.isString(requestURL)?resolveURL(requestURL):requestURL;return parsed.protocol===originURL.protocol&&parsed.host===originURL.host;};}():// Non standard browser envs (web workers, react-native) lack needed support.
3980
+ * Determine if a URL shares the same origin as the current location
3981
+ *
3982
+ * @param {String} requestURL The URL to test
3983
+ * @returns {boolean} True if URL shares the same origin, otherwise false
3984
+ */return function isURLSameOrigin(requestURL){var parsed=utils.isString(requestURL)?resolveURL(requestURL):requestURL;return parsed.protocol===originURL.protocol&&parsed.host===originURL.host;};}():// Non standard browser envs (web workers, react-native) lack needed support.
3934
3985
  function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true;};}();return isURLSameOrigin;}
3935
3986
 
3936
- var CanceledError_1;var hasRequiredCanceledError;function requireCanceledError(){if(hasRequiredCanceledError)return CanceledError_1;hasRequiredCanceledError=1;var AxiosError=requireAxiosError();var utils=utils$9;/**
3987
+ var CanceledError_1;var hasRequiredCanceledError;function requireCanceledError(){if(hasRequiredCanceledError)return CanceledError_1;hasRequiredCanceledError=1;var AxiosError=requireAxiosError();var utils=utils$b;/**
3937
3988
  * A `CanceledError` is an object that is thrown when an operation is canceled.
3938
3989
  *
3939
3990
  * @class
3940
3991
  * @param {string=} message The message.
3941
- */function CanceledError(message){// eslint-disable-next-line no-eq-null,eqeqeq
3942
- AxiosError.call(this,message==null?'canceled':message,AxiosError.ERR_CANCELED);this.name='CanceledError';}utils.inherits(CanceledError,AxiosError,{__CANCEL__:true});CanceledError_1=CanceledError;return CanceledError_1;}
3992
+ * @param {Object=} config The config.
3993
+ * @param {Object=} request The request.
3994
+ */function CanceledError(message,config,request){// eslint-disable-next-line no-eq-null,eqeqeq
3995
+ AxiosError.call(this,message==null?'canceled':message,AxiosError.ERR_CANCELED,config,request);this.name='CanceledError';}utils.inherits(CanceledError,AxiosError,{__CANCEL__:true});CanceledError_1=CanceledError;return CanceledError_1;}
3943
3996
 
3944
3997
  var parseProtocol;var hasRequiredParseProtocol;function requireParseProtocol(){if(hasRequiredParseProtocol)return parseProtocol;hasRequiredParseProtocol=1;parseProtocol=function parseProtocol(url){var match=/^([-+\w]{1,25})(:?\/\/|:)/.exec(url);return match&&match[1]||'';};return parseProtocol;}
3945
3998
 
3946
- var xhr;var hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var utils=utils$9;var settle$1=settle;var cookies=requireCookies();var buildURL=buildURL$1;var buildFullPath=buildFullPath$1;var parseHeaders=requireParseHeaders();var isURLSameOrigin=requireIsURLSameOrigin();var transitionalDefaults=transitional;var AxiosError=requireAxiosError();var CanceledError=requireCanceledError();var parseProtocol=requireParseProtocol();xhr=function xhrAdapter(config){return new Promise(function dispatchXhrRequest(resolve,reject){var requestData=config.data;var requestHeaders=config.headers;var responseType=config.responseType;var onCanceled;function done(){if(config.cancelToken){config.cancelToken.unsubscribe(onCanceled);}if(config.signal){config.signal.removeEventListener('abort',onCanceled);}}if(utils.isFormData(requestData)&&utils.isStandardBrowserEnv()){delete requestHeaders['Content-Type'];// Let the browser set it
3999
+ var xhr;var hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var utils=utils$b;var settle$1=settle;var cookies=requireCookies();var buildURL=buildURL$1;var buildFullPath=buildFullPath$1;var parseHeaders=requireParseHeaders();var isURLSameOrigin=requireIsURLSameOrigin();var transitionalDefaults=transitional;var AxiosError=requireAxiosError();var CanceledError=requireCanceledError();var parseProtocol=requireParseProtocol();var platform=platform$2;xhr=function xhrAdapter(config){return new Promise(function dispatchXhrRequest(resolve,reject){var requestData=config.data;var requestHeaders=config.headers;var responseType=config.responseType;var withXSRFToken=config.withXSRFToken;var onCanceled;function done(){if(config.cancelToken){config.cancelToken.unsubscribe(onCanceled);}if(config.signal){config.signal.removeEventListener('abort',onCanceled);}}if(utils.isFormData(requestData)&&utils.isStandardBrowserEnv()){delete requestHeaders['Content-Type'];// Let the browser set it
3947
4000
  }var request=new XMLHttpRequest();// HTTP basic authentication
3948
4001
  if(config.auth){var username=config.auth.username||'';var password=config.auth.password?unescape(encodeURIComponent(config.auth.password)):'';requestHeaders.Authorization='Basic '+btoa(username+':'+password);}var fullPath=buildFullPath(config.baseURL,config.url);request.open(config.method.toUpperCase(),buildURL(fullPath,config.params,config.paramsSerializer),true);// Set the request timeout in MS
3949
4002
  request.timeout=config.timeout;function onloadend(){if(!request){return;}// Prepare the response
@@ -3961,14 +4014,15 @@
3961
4014
  request=null;};// Handle low level network errors
3962
4015
  request.onerror=function handleError(){// Real errors are hidden from us by the browser
3963
4016
  // onerror should only fire if it's a network error
3964
- reject(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request,request));// Clean up request
4017
+ reject(new AxiosError('Network Error',AxiosError.ERR_NETWORK,config,request));// Clean up request
3965
4018
  request=null;};// Handle timeout
3966
4019
  request.ontimeout=function handleTimeout(){var timeoutErrorMessage=config.timeout?'timeout of '+config.timeout+'ms exceeded':'timeout exceeded';var transitional=config.transitional||transitionalDefaults;if(config.timeoutErrorMessage){timeoutErrorMessage=config.timeoutErrorMessage;}reject(new AxiosError(timeoutErrorMessage,transitional.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,config,request));// Clean up request
3967
4020
  request=null;};// Add xsrf header
3968
4021
  // This is only done if running in a standard browser environment.
3969
4022
  // Specifically not if we're in a web worker, or react-native.
3970
4023
  if(utils.isStandardBrowserEnv()){// Add xsrf header
3971
- var xsrfValue=(config.withCredentials||isURLSameOrigin(fullPath))&&config.xsrfCookieName?cookies.read(config.xsrfCookieName):undefined;if(xsrfValue){requestHeaders[config.xsrfHeaderName]=xsrfValue;}}// Add headers to the request
4024
+ withXSRFToken&&utils.isFunction(withXSRFToken)&&(withXSRFToken=withXSRFToken(config));if(withXSRFToken||withXSRFToken!==false&&isURLSameOrigin(fullPath)){// Add xsrf header
4025
+ var xsrfValue=config.xsrfHeaderName&&config.xsrfCookieName&&cookies.read(config.xsrfCookieName);if(xsrfValue){requestHeaders[config.xsrfHeaderName]=xsrfValue;}}}// Add headers to the request
3972
4026
  if('setRequestHeader'in request){utils.forEach(requestHeaders,function setRequestHeader(val,key){if(typeof requestData==='undefined'&&key.toLowerCase()==='content-type'){// Remove Content-Type if data is undefined
3973
4027
  delete requestHeaders[key];}else {// Otherwise add header to the request
3974
4028
  request.setRequestHeader(key,val);}});}// Add withCredentials to request if needed
@@ -3977,31 +4031,30 @@
3977
4031
  if(typeof config.onDownloadProgress==='function'){request.addEventListener('progress',config.onDownloadProgress);}// Not all browsers support upload events
3978
4032
  if(typeof config.onUploadProgress==='function'&&request.upload){request.upload.addEventListener('progress',config.onUploadProgress);}if(config.cancelToken||config.signal){// Handle cancellation
3979
4033
  // eslint-disable-next-line func-names
3980
- onCanceled=function onCanceled(cancel){if(!request){return;}reject(!cancel||cancel&&cancel.type?new CanceledError():cancel);request.abort();request=null;};config.cancelToken&&config.cancelToken.subscribe(onCanceled);if(config.signal){config.signal.aborted?onCanceled():config.signal.addEventListener('abort',onCanceled);}}if(!requestData){requestData=null;}var protocol=parseProtocol(fullPath);if(protocol&&['http','https','file'].indexOf(protocol)===-1){reject(new AxiosError('Unsupported protocol '+protocol+':',AxiosError.ERR_BAD_REQUEST,config));return;}// Send the request
4034
+ onCanceled=function onCanceled(cancel){if(!request){return;}reject(!cancel||cancel.type?new CanceledError(null,config,req):cancel);request.abort();request=null;};config.cancelToken&&config.cancelToken.subscribe(onCanceled);if(config.signal){config.signal.aborted?onCanceled():config.signal.addEventListener('abort',onCanceled);}}// false, 0 (zero number), and '' (empty string) are valid JSON values
4035
+ if(!requestData&&requestData!==false&&requestData!==0&&requestData!==''){requestData=null;}var protocol=parseProtocol(fullPath);if(protocol&&platform.protocols.indexOf(protocol)===-1){reject(new AxiosError('Unsupported protocol '+protocol+':',AxiosError.ERR_BAD_REQUEST,config));return;}// Send the request
3981
4036
  request.send(requestData);});};return xhr;}
3982
4037
 
3983
- var _null;var hasRequired_null;function require_null(){if(hasRequired_null)return _null;hasRequired_null=1;// eslint-disable-next-line strict
3984
- _null=null;return _null;}
3985
-
3986
- var utils$5=utils$9;var normalizeHeaderName=normalizeHeaderName$1;var AxiosError$1=requireAxiosError();var transitionalDefaults=transitional;var toFormData=requireToFormData();var DEFAULT_CONTENT_TYPE={'Content-Type':'application/x-www-form-urlencoded'};function setContentTypeIfUnset(headers,value){if(!utils$5.isUndefined(headers)&&utils$5.isUndefined(headers['Content-Type'])){headers['Content-Type']=value;}}function getDefaultAdapter(){var adapter;if(typeof XMLHttpRequest!=='undefined'){// For browsers use XHR adapter
3987
- adapter=requireXhr();}else if(typeof browser$1!=='undefined'&&Object.prototype.toString.call(browser$1)==='[object process]'){// For node use HTTP adapter
3988
- adapter=requireXhr();}return adapter;}function stringifySafely(rawValue,parser,encoder){if(utils$5.isString(rawValue)){try{(parser||JSON.parse)(rawValue);return utils$5.trim(rawValue);}catch(e){if(e.name!=='SyntaxError'){throw e;}}}return (encoder||JSON.stringify)(rawValue);}var defaults$3={transitional:transitionalDefaults,adapter:getDefaultAdapter(),transformRequest:[function transformRequest(data,headers){normalizeHeaderName(headers,'Accept');normalizeHeaderName(headers,'Content-Type');if(utils$5.isFormData(data)||utils$5.isArrayBuffer(data)||utils$5.isBuffer(data)||utils$5.isStream(data)||utils$5.isFile(data)||utils$5.isBlob(data)){return data;}if(utils$5.isArrayBufferView(data)){return data.buffer;}if(utils$5.isURLSearchParams(data)){setContentTypeIfUnset(headers,'application/x-www-form-urlencoded;charset=utf-8');return data.toString();}var isObjectPayload=utils$5.isObject(data);var contentType=headers&&headers['Content-Type'];var isFileList;if((isFileList=utils$5.isFileList(data))||isObjectPayload&&contentType==='multipart/form-data'){var _FormData=this.env&&this.env.FormData;return toFormData(isFileList?{'files[]':data}:data,_FormData&&new _FormData());}else if(isObjectPayload||contentType==='application/json'){setContentTypeIfUnset(headers,'application/json');return stringifySafely(data);}return data;}],transformResponse:[function transformResponse(data){var transitional=this.transitional||defaults$3.transitional;var silentJSONParsing=transitional&&transitional.silentJSONParsing;var forcedJSONParsing=transitional&&transitional.forcedJSONParsing;var strictJSONParsing=!silentJSONParsing&&this.responseType==='json';if(strictJSONParsing||forcedJSONParsing&&utils$5.isString(data)&&data.length){try{return JSON.parse(data);}catch(e){if(strictJSONParsing){if(e.name==='SyntaxError'){throw AxiosError$1.from(e,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response);}throw e;}}}return data;}],/**
4038
+ var utils$5=utils$b;var normalizeHeaderName$1=normalizeHeaderName$2;var AxiosError$1=requireAxiosError();var transitionalDefaults=transitional;var toFormData=requireToFormData();var toURLEncodedForm=toURLEncodedForm$1;var platform=platform$2;var formDataToJSON$1=formDataToJSON_1;var DEFAULT_CONTENT_TYPE={'Content-Type':'application/x-www-form-urlencoded'};function setContentTypeIfUnset(headers,value){if(!utils$5.isUndefined(headers)&&utils$5.isUndefined(headers['Content-Type'])){headers['Content-Type']=value;}}function getDefaultAdapter(){var adapter;if(typeof XMLHttpRequest!=='undefined'){// For browsers use XHR adapter
4039
+ adapter=requireXhr();}else if(typeof browser$1$1!=='undefined'&&Object.prototype.toString.call(browser$1$1)==='[object process]'){// For node use HTTP adapter
4040
+ adapter=requireXhr();}return adapter;}function stringifySafely(rawValue,parser,encoder){if(utils$5.isString(rawValue)){try{(parser||JSON.parse)(rawValue);return utils$5.trim(rawValue);}catch(e){if(e.name!=='SyntaxError'){throw e;}}}return (encoder||JSON.stringify)(rawValue);}var defaults$3={transitional:transitionalDefaults,adapter:getDefaultAdapter(),transformRequest:[function transformRequest(data,headers){normalizeHeaderName$1(headers,'Accept');normalizeHeaderName$1(headers,'Content-Type');var contentType=headers&&headers['Content-Type']||'';var hasJSONContentType=contentType.indexOf('application/json')>-1;var isObjectPayload=utils$5.isObject(data);if(isObjectPayload&&utils$5.isHTMLForm(data)){data=new FormData(data);}var isFormData=utils$5.isFormData(data);if(isFormData){return hasJSONContentType?JSON.stringify(formDataToJSON$1(data)):data;}if(utils$5.isArrayBuffer(data)||utils$5.isBuffer(data)||utils$5.isStream(data)||utils$5.isFile(data)||utils$5.isBlob(data)){return data;}if(utils$5.isArrayBufferView(data)){return data.buffer;}if(utils$5.isURLSearchParams(data)){setContentTypeIfUnset(headers,'application/x-www-form-urlencoded;charset=utf-8');return data.toString();}var isFileList;if(isObjectPayload){if(contentType.indexOf('application/x-www-form-urlencoded')!==-1){return toURLEncodedForm(data,this.formSerializer).toString();}if((isFileList=utils$5.isFileList(data))||contentType.indexOf('multipart/form-data')>-1){var _FormData=this.env&&this.env.FormData;return toFormData(isFileList?{'files[]':data}:data,_FormData&&new _FormData(),this.formSerializer);}}if(isObjectPayload||hasJSONContentType){setContentTypeIfUnset(headers,'application/json');return stringifySafely(data);}return data;}],transformResponse:[function transformResponse(data){var transitional=this.transitional||defaults$3.transitional;var forcedJSONParsing=transitional&&transitional.forcedJSONParsing;var JSONRequested=this.responseType==='json';if(data&&utils$5.isString(data)&&(forcedJSONParsing&&!this.responseType||JSONRequested)){var silentJSONParsing=transitional&&transitional.silentJSONParsing;var strictJSONParsing=!silentJSONParsing&&JSONRequested;try{return JSON.parse(data);}catch(e){if(strictJSONParsing){if(e.name==='SyntaxError'){throw AxiosError$1.from(e,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response);}throw e;}}}return data;}],/**
3989
4041
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
3990
4042
  * timeout is not created.
3991
- */timeout:0,xsrfCookieName:'XSRF-TOKEN',xsrfHeaderName:'X-XSRF-TOKEN',maxContentLength:-1,maxBodyLength:-1,env:{FormData:require_null()},validateStatus:function validateStatus(status){return status>=200&&status<300;},headers:{common:{'Accept':'application/json, text/plain, */*'}}};utils$5.forEach(['delete','get','head'],function forEachMethodNoData(method){defaults$3.headers[method]={};});utils$5.forEach(['post','put','patch'],function forEachMethodWithData(method){defaults$3.headers[method]=utils$5.merge(DEFAULT_CONTENT_TYPE);});var defaults_1=defaults$3;
4043
+ */timeout:0,xsrfCookieName:'XSRF-TOKEN',xsrfHeaderName:'X-XSRF-TOKEN',maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function validateStatus(status){return status>=200&&status<300;},headers:{common:{'Accept':'application/json, text/plain, */*'}}};utils$5.forEach(['delete','get','head'],function forEachMethodNoData(method){defaults$3.headers[method]={};});utils$5.forEach(['post','put','patch'],function forEachMethodWithData(method){defaults$3.headers[method]=utils$5.merge(DEFAULT_CONTENT_TYPE);});var defaults_1=defaults$3;
3992
4044
 
3993
- var utils$4=utils$9;var defaults$2=defaults_1;/**
4045
+ var utils$4=utils$b;var defaults$2=defaults_1;/**
3994
4046
  * Transform the data for a request or a response
3995
4047
  *
3996
4048
  * @param {Object|String} data The data to be transformed
3997
4049
  * @param {Array} headers The headers for the request or response
4050
+ * @param {Number} status HTTP status code
3998
4051
  * @param {Array|Function} fns A single function or Array of functions
3999
4052
  * @returns {*} The resulting transformed data
4000
- */var transformData$1=function transformData(data,headers,fns){var context=this||defaults$2;/*eslint no-param-reassign:0*/utils$4.forEach(fns,function transform(fn){data=fn.call(context,data,headers);});return data;};
4053
+ */var transformData$1=function transformData(data,headers,status,fns){var context=this||defaults$2;/*eslint no-param-reassign:0*/utils$4.forEach(fns,function transform(fn){data=fn.call(context,data,headers,status);});return data;};
4001
4054
 
4002
4055
  var isCancel$1;var hasRequiredIsCancel;function requireIsCancel(){if(hasRequiredIsCancel)return isCancel$1;hasRequiredIsCancel=1;isCancel$1=function isCancel(value){return !!(value&&value.__CANCEL__);};return isCancel$1;}
4003
4056
 
4004
- var utils$3=utils$9;var transformData=transformData$1;var isCancel=requireIsCancel();var defaults$1=defaults_1;var CanceledError=requireCanceledError();/**
4057
+ var utils$3=utils$b;var transformData=transformData$1;var isCancel=requireIsCancel();var defaults$1=defaults_1;var CanceledError=requireCanceledError();var normalizeHeaderName=normalizeHeaderName$2;/**
4005
4058
  * Throws a `CanceledError` if cancellation has been requested.
4006
4059
  */function throwIfCancellationRequested(config){if(config.cancelToken){config.cancelToken.throwIfRequested();}if(config.signal&&config.signal.aborted){throw new CanceledError();}}/**
4007
4060
  * Dispatch a request to the server using the configured adapter.
@@ -4010,12 +4063,12 @@
4010
4063
  * @returns {Promise} The Promise to be fulfilled
4011
4064
  */var dispatchRequest$1=function dispatchRequest(config){throwIfCancellationRequested(config);// Ensure headers exist
4012
4065
  config.headers=config.headers||{};// Transform request data
4013
- config.data=transformData.call(config,config.data,config.headers,config.transformRequest);// Flatten headers
4066
+ config.data=transformData.call(config,config.data,config.headers,null,config.transformRequest);normalizeHeaderName(config.headers,'Accept');normalizeHeaderName(config.headers,'Content-Type');// Flatten headers
4014
4067
  config.headers=utils$3.merge(config.headers.common||{},config.headers[config.method]||{},config.headers);utils$3.forEach(['delete','get','head','post','put','patch','common'],function cleanHeaderConfig(method){delete config.headers[method];});var adapter=config.adapter||defaults$1.adapter;return adapter(config).then(function onAdapterResolution(response){throwIfCancellationRequested(config);// Transform response data
4015
- response.data=transformData.call(config,response.data,response.headers,config.transformResponse);return response;},function onAdapterRejection(reason){if(!isCancel(reason)){throwIfCancellationRequested(config);// Transform response data
4016
- if(reason&&reason.response){reason.response.data=transformData.call(config,reason.response.data,reason.response.headers,config.transformResponse);}}return Promise.reject(reason);});};
4068
+ response.data=transformData.call(config,response.data,response.headers,response.status,config.transformResponse);return response;},function onAdapterRejection(reason){if(!isCancel(reason)){throwIfCancellationRequested(config);// Transform response data
4069
+ if(reason&&reason.response){reason.response.data=transformData.call(config,reason.response.data,reason.response.headers,reason.response.status,config.transformResponse);}}return Promise.reject(reason);});};
4017
4070
 
4018
- var utils$2=utils$9;/**
4071
+ var utils$2=utils$b;/**
4019
4072
  * Config-specific merge-function which creates a new config-object
4020
4073
  * by merging two configuration objects together.
4021
4074
  *
@@ -4023,13 +4076,13 @@
4023
4076
  * @param {Object} config2
4024
4077
  * @returns {Object} New object resulting from merging config2 to config1
4025
4078
  */var mergeConfig$2=function mergeConfig(config1,config2){// eslint-disable-next-line no-param-reassign
4026
- config2=config2||{};var config={};function getMergedValue(target,source){if(utils$2.isPlainObject(target)&&utils$2.isPlainObject(source)){return utils$2.merge(target,source);}else if(utils$2.isPlainObject(source)){return utils$2.merge({},source);}else if(utils$2.isArray(source)){return source.slice();}return source;}// eslint-disable-next-line consistent-return
4079
+ config2=config2||{};var config={};function getMergedValue(target,source){if(utils$2.isPlainObject(target)&&utils$2.isPlainObject(source)){return utils$2.merge(target,source);}else if(utils$2.isEmptyObject(source)){return utils$2.merge({},target);}else if(utils$2.isPlainObject(source)){return utils$2.merge({},source);}else if(utils$2.isArray(source)){return source.slice();}return source;}// eslint-disable-next-line consistent-return
4027
4080
  function mergeDeepProperties(prop){if(!utils$2.isUndefined(config2[prop])){return getMergedValue(config1[prop],config2[prop]);}else if(!utils$2.isUndefined(config1[prop])){return getMergedValue(undefined,config1[prop]);}}// eslint-disable-next-line consistent-return
4028
4081
  function valueFromConfig2(prop){if(!utils$2.isUndefined(config2[prop])){return getMergedValue(undefined,config2[prop]);}}// eslint-disable-next-line consistent-return
4029
4082
  function defaultToConfig2(prop){if(!utils$2.isUndefined(config2[prop])){return getMergedValue(undefined,config2[prop]);}else if(!utils$2.isUndefined(config1[prop])){return getMergedValue(undefined,config1[prop]);}}// eslint-disable-next-line consistent-return
4030
- function mergeDirectKeys(prop){if(prop in config2){return getMergedValue(config1[prop],config2[prop]);}else if(prop in config1){return getMergedValue(undefined,config1[prop]);}}var mergeMap={'url':valueFromConfig2,'method':valueFromConfig2,'data':valueFromConfig2,'baseURL':defaultToConfig2,'transformRequest':defaultToConfig2,'transformResponse':defaultToConfig2,'paramsSerializer':defaultToConfig2,'timeout':defaultToConfig2,'timeoutMessage':defaultToConfig2,'withCredentials':defaultToConfig2,'adapter':defaultToConfig2,'responseType':defaultToConfig2,'xsrfCookieName':defaultToConfig2,'xsrfHeaderName':defaultToConfig2,'onUploadProgress':defaultToConfig2,'onDownloadProgress':defaultToConfig2,'decompress':defaultToConfig2,'maxContentLength':defaultToConfig2,'maxBodyLength':defaultToConfig2,'beforeRedirect':defaultToConfig2,'transport':defaultToConfig2,'httpAgent':defaultToConfig2,'httpsAgent':defaultToConfig2,'cancelToken':defaultToConfig2,'socketPath':defaultToConfig2,'responseEncoding':defaultToConfig2,'validateStatus':mergeDirectKeys};utils$2.forEach(Object.keys(config1).concat(Object.keys(config2)),function computeConfigValue(prop){var merge=mergeMap[prop]||mergeDeepProperties;var configValue=merge(prop);utils$2.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;};
4083
+ function mergeDirectKeys(prop){if(prop in config2){return getMergedValue(config1[prop],config2[prop]);}else if(prop in config1){return getMergedValue(undefined,config1[prop]);}}var mergeMap={'url':valueFromConfig2,'method':valueFromConfig2,'data':valueFromConfig2,'baseURL':defaultToConfig2,'transformRequest':defaultToConfig2,'transformResponse':defaultToConfig2,'paramsSerializer':defaultToConfig2,'timeout':defaultToConfig2,'timeoutMessage':defaultToConfig2,'withCredentials':defaultToConfig2,'withXSRFToken':defaultToConfig2,'adapter':defaultToConfig2,'responseType':defaultToConfig2,'xsrfCookieName':defaultToConfig2,'xsrfHeaderName':defaultToConfig2,'onUploadProgress':defaultToConfig2,'onDownloadProgress':defaultToConfig2,'decompress':defaultToConfig2,'maxContentLength':defaultToConfig2,'maxBodyLength':defaultToConfig2,'beforeRedirect':defaultToConfig2,'transport':defaultToConfig2,'httpAgent':defaultToConfig2,'httpsAgent':defaultToConfig2,'cancelToken':defaultToConfig2,'socketPath':defaultToConfig2,'responseEncoding':defaultToConfig2,'validateStatus':mergeDirectKeys};utils$2.forEach(Object.keys(config1).concat(Object.keys(config2)),function computeConfigValue(prop){var merge=mergeMap[prop]||mergeDeepProperties;var configValue=merge(prop);utils$2.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;};
4031
4084
 
4032
- var data;var hasRequiredData;function requireData(){if(hasRequiredData)return data;hasRequiredData=1;data={"version":"0.27.2"};return data;}
4085
+ var data;var hasRequiredData;function requireData(){if(hasRequiredData)return data;hasRequiredData=1;data={"version":"0.28.0"};return data;}
4033
4086
 
4034
4087
  var VERSION=requireData().version;var AxiosError=requireAxiosError();var validators$1={};// eslint-disable-next-line func-names
4035
4088
  ['object','boolean','number','function','string','symbol'].forEach(function(type,i){validators$1[type]=function validator(thing){return _typeof(thing)===type||'a'+(i<1?'n ':' ')+type;};});var deprecatedWarnings={};/**
@@ -4047,17 +4100,18 @@
4047
4100
  * @param {boolean?} allowUnknown
4048
4101
  */function assertOptions(options,schema,allowUnknown){if(_typeof(options)!=='object'){throw new AxiosError('options must be an object',AxiosError.ERR_BAD_OPTION_VALUE);}var keys=Object.keys(options);var i=keys.length;while(i-->0){var opt=keys[i];var validator=schema[opt];if(validator){var value=options[opt];var result=value===undefined||validator(value,opt,options);if(result!==true){throw new AxiosError('option '+opt+' must be '+result,AxiosError.ERR_BAD_OPTION_VALUE);}continue;}if(allowUnknown!==true){throw new AxiosError('Unknown option '+opt,AxiosError.ERR_BAD_OPTION);}}}var validator$1={assertOptions:assertOptions,validators:validators$1};
4049
4102
 
4050
- var utils$1=utils$9;var buildURL=buildURL$1;var InterceptorManager=InterceptorManager_1;var dispatchRequest=dispatchRequest$1;var mergeConfig$1=mergeConfig$2;var buildFullPath=buildFullPath$1;var validator=validator$1;var validators=validator.validators;/**
4103
+ var utils$1=utils$b;var buildURL=buildURL$1;var InterceptorManager=InterceptorManager_1;var dispatchRequest=dispatchRequest$1;var mergeConfig$1=mergeConfig$2;var buildFullPath=buildFullPath$1;var validator=validator$1;var validators=validator.validators;/**
4051
4104
  * Create a new instance of Axios
4052
4105
  *
4053
4106
  * @param {Object} instanceConfig The default config for the instance
4054
4107
  */function Axios$1(instanceConfig){this.defaults=instanceConfig;this.interceptors={request:new InterceptorManager(),response:new InterceptorManager()};}/**
4055
4108
  * Dispatch a request
4056
4109
  *
4057
- * @param {Object} config The config specific for this request (merged with this.defaults)
4110
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
4111
+ * @param {?Object} config
4058
4112
  */Axios$1.prototype.request=function request(configOrUrl,config){/*eslint no-param-reassign:0*/ // Allow for axios('example/url'[, config]) a la fetch API
4059
4113
  if(typeof configOrUrl==='string'){config=config||{};config.url=configOrUrl;}else {config=configOrUrl||{};}config=mergeConfig$1(this.defaults,config);// Set config.method
4060
- if(config.method){config.method=config.method.toLowerCase();}else if(this.defaults.method){config.method=this.defaults.method.toLowerCase();}else {config.method='get';}var transitional=config.transitional;if(transitional!==undefined){validator.assertOptions(transitional,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},false);}// filter out skipped interceptors
4114
+ if(config.method){config.method=config.method.toLowerCase();}else if(this.defaults.method){config.method=this.defaults.method.toLowerCase();}else {config.method='get';}var transitional=config.transitional;if(transitional!==undefined){validator.assertOptions(transitional,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},false);}var paramsSerializer=config.paramsSerializer;utils$1.isFunction(paramsSerializer)&&(config.paramsSerializer={serialize:paramsSerializer});// filter out skipped interceptors
4061
4115
  var requestInterceptorChain=[];var synchronousRequestInterceptors=true;this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor){if(typeof interceptor.runWhen==='function'&&interceptor.runWhen(config)===false){return;}synchronousRequestInterceptors=synchronousRequestInterceptors&&interceptor.synchronous;requestInterceptorChain.unshift(interceptor.fulfilled,interceptor.rejected);});var responseInterceptorChain=[];this.interceptors.response.forEach(function pushResponseInterceptors(interceptor){responseInterceptorChain.push(interceptor.fulfilled,interceptor.rejected);});var promise;if(!synchronousRequestInterceptors){var chain=[dispatchRequest,undefined];Array.prototype.unshift.apply(chain,requestInterceptorChain);chain=chain.concat(responseInterceptorChain);promise=Promise.resolve(config);while(chain.length){promise=promise.then(chain.shift(),chain.shift());}return promise;}var newConfig=config;while(requestInterceptorChain.length){var onFulfilled=requestInterceptorChain.shift();var onRejected=requestInterceptorChain.shift();try{newConfig=onFulfilled(newConfig);}catch(error){onRejected(error);break;}}try{promise=dispatchRequest(newConfig);}catch(error){return Promise.reject(error);}while(responseInterceptorChain.length){promise=promise.then(responseInterceptorChain.shift(),responseInterceptorChain.shift());}return promise;};Axios$1.prototype.getUri=function getUri(config){config=mergeConfig$1(this.defaults,config);var fullPath=buildFullPath(config.baseURL,config.url);return buildURL(fullPath,config.params,config.paramsSerializer);};// Provide aliases for supported request methods
4062
4116
  utils$1.forEach(['delete','get','head','options'],function forEachMethodNoData(method){/*eslint func-names:0*/Axios$1.prototype[method]=function(url,config){return this.request(mergeConfig$1(config||{},{method:method,url:url,data:(config||{}).data}));};});utils$1.forEach(['post','put','patch'],function forEachMethodWithData(method){/*eslint func-names:0*/function generateHTTPMethod(isForm){return function httpMethod(url,data,config){return this.request(mergeConfig$1(config||{},{method:method,headers:isForm?{'Content-Type':'multipart/form-data'}:{},url:url,data:data}));};}Axios$1.prototype[method]=generateHTTPMethod();Axios$1.prototype[method+'Form']=generateHTTPMethod(true);});var Axios_1=Axios$1;
4063
4117
 
@@ -4067,10 +4121,10 @@
4067
4121
  * @class
4068
4122
  * @param {Function} executor The executor function.
4069
4123
  */function CancelToken(executor){if(typeof executor!=='function'){throw new TypeError('executor must be a function.');}var resolvePromise;this.promise=new Promise(function promiseExecutor(resolve){resolvePromise=resolve;});var token=this;// eslint-disable-next-line func-names
4070
- this.promise.then(function(cancel){if(!token._listeners)return;var i;var l=token._listeners.length;for(i=0;i<l;i++){token._listeners[i](cancel);}token._listeners=null;});// eslint-disable-next-line func-names
4124
+ this.promise.then(function(cancel){if(!token._listeners)return;var i=token._listeners.length;while(i-->0){token._listeners[i](cancel);}token._listeners=null;});// eslint-disable-next-line func-names
4071
4125
  this.promise.then=function(onfulfilled){var _resolve;// eslint-disable-next-line func-names
4072
- var promise=new Promise(function(resolve){token.subscribe(resolve);_resolve=resolve;}).then(onfulfilled);promise.cancel=function reject(){token.unsubscribe(_resolve);};return promise;};executor(function cancel(message){if(token.reason){// Cancellation has already been requested
4073
- return;}token.reason=new CanceledError(message);resolvePromise(token.reason);});}/**
4126
+ var promise=new Promise(function(resolve){token.subscribe(resolve);_resolve=resolve;}).then(onfulfilled);promise.cancel=function reject(){token.unsubscribe(_resolve);};return promise;};executor(function cancel(message,config,request){if(token.reason){// Cancellation has already been requested
4127
+ return;}token.reason=new CanceledError(message,config,request);resolvePromise(token.reason);});}/**
4074
4128
  * Throws a `CanceledError` if cancellation has been requested.
4075
4129
  */CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason;}};/**
4076
4130
  * Subscribe to the cancel signal
@@ -4102,14 +4156,14 @@
4102
4156
  * @returns {Function}
4103
4157
  */spread=function spread(callback){return function wrap(arr){return callback.apply(null,arr);};};return spread;}
4104
4158
 
4105
- var isAxiosError;var hasRequiredIsAxiosError;function requireIsAxiosError(){if(hasRequiredIsAxiosError)return isAxiosError;hasRequiredIsAxiosError=1;var utils=utils$9;/**
4159
+ var isAxiosError;var hasRequiredIsAxiosError;function requireIsAxiosError(){if(hasRequiredIsAxiosError)return isAxiosError;hasRequiredIsAxiosError=1;var utils=utils$b;/**
4106
4160
  * Determines whether the payload is an error thrown by Axios
4107
4161
  *
4108
4162
  * @param {*} payload The value to test
4109
4163
  * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
4110
4164
  */isAxiosError=function isAxiosError(payload){return utils.isObject(payload)&&payload.isAxiosError===true;};return isAxiosError;}
4111
4165
 
4112
- var utils=utils$9;var bind=bind$2;var Axios=Axios_1;var mergeConfig=mergeConfig$2;var defaults=defaults_1;/**
4166
+ var utils=utils$b;var bind=bind$2;var Axios=Axios_1;var mergeConfig=mergeConfig$2;var defaults=defaults_1;var formDataToJSON=formDataToJSON_1;/**
4113
4167
  * Create an instance of Axios
4114
4168
  *
4115
4169
  * @param {Object} defaultConfig The default config for the instance
@@ -4124,7 +4178,7 @@
4124
4178
  axios$2.AxiosError=requireAxiosError();// alias for CanceledError for backward compatibility
4125
4179
  axios$2.Cancel=axios$2.CanceledError;// Expose all/spread
4126
4180
  axios$2.all=function all(promises){return Promise.all(promises);};axios$2.spread=requireSpread();// Expose isAxiosError
4127
- axios$2.isAxiosError=requireIsAxiosError();axios$3.exports=axios$2;// Allow use of default import syntax in TypeScript
4181
+ axios$2.isAxiosError=requireIsAxiosError();axios$2.formToJSON=function(thing){return formDataToJSON(utils.isHTMLForm(thing)?new FormData(thing):thing);};axios$3.exports=axios$2;// Allow use of default import syntax in TypeScript
4128
4182
  axios$3.exports.default=axios$2;var axiosExports=axios$3.exports;
4129
4183
 
4130
4184
  var axios=axiosExports;var axios$1 = /*@__PURE__*/getDefaultExportFromCjs(axios);
@@ -4133,7 +4187,7 @@
4133
4187
  'UNABLE_TO_GET_ISSUER_CERT','UNABLE_TO_GET_CRL','UNABLE_TO_DECRYPT_CERT_SIGNATURE','UNABLE_TO_DECRYPT_CRL_SIGNATURE','UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY','CERT_SIGNATURE_FAILURE','CRL_SIGNATURE_FAILURE','CERT_NOT_YET_VALID','CERT_HAS_EXPIRED','CRL_NOT_YET_VALID','CRL_HAS_EXPIRED','ERROR_IN_CERT_NOT_BEFORE_FIELD','ERROR_IN_CERT_NOT_AFTER_FIELD','ERROR_IN_CRL_LAST_UPDATE_FIELD','ERROR_IN_CRL_NEXT_UPDATE_FIELD','OUT_OF_MEM','DEPTH_ZERO_SELF_SIGNED_CERT','SELF_SIGNED_CERT_IN_CHAIN','UNABLE_TO_GET_ISSUER_CERT_LOCALLY','UNABLE_TO_VERIFY_LEAF_SIGNATURE','CERT_CHAIN_TOO_LONG','CERT_REVOKED','INVALID_CA','PATH_LENGTH_EXCEEDED','INVALID_PURPOSE','CERT_UNTRUSTED','CERT_REJECTED','HOSTNAME_MISMATCH']);// TODO: Use `error?.code` when targeting Node.js 14
4134
4188
  var isRetryAllowed=function isRetryAllowed(error){return !denyList.has(error&&error.code);};var isRetryAllowed$1 = /*@__PURE__*/getDefaultExportFromCjs(isRetryAllowed);
4135
4189
 
4136
- function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else {Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly){symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;});}keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};if(i%2){ownKeys(Object(source),true).forEach(function(key){_defineProperty(target,key,source[key]);});}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(target,Object.getOwnPropertyDescriptors(source));}else {ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}}return target;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else {obj[key]=value;}return obj;}var namespace='axios-retry';/**
4190
+ function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else {Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly){symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;});}keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};if(i%2){ownKeys(Object(source),true).forEach(function(key){_defineProperty$1(target,key,source[key]);});}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(target,Object.getOwnPropertyDescriptors(source));}else {ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}}return target;}function _defineProperty$1(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else {obj[key]=value;}return obj;}var namespace='axios-retry';/**
4137
4191
  * @param {Error} error
4138
4192
  * @return {boolean}
4139
4193
  */function isNetworkError(error){return !error.response&&Boolean(error.code)&&// Prevents retrying cancelled requests
@@ -4278,899 +4332,921 @@
4278
4332
 
4279
4333
  var IDX=256,HEX=[],BUFFER;while(IDX--)HEX[IDX]=(IDX+256).toString(16).substring(1);function v4(){var i=0,num,out='';if(!BUFFER||IDX+16>256){BUFFER=Array(i=256);while(i--)BUFFER[i]=256*Math.random()|0;i=IDX=0;}for(;i<16;i++){num=BUFFER[IDX+i];if(i==6)out+=HEX[num&15|64];else if(i==8)out+=HEX[num&63|128];else out+=HEX[num];if(i&1&&i>1&&i<11)out+='-';}IDX++;return out;}
4280
4334
 
4281
- /** `Object#toString` result references. */var stringTag='[object String]';/** Used for built-in method references. */var objectProto=Object.prototype;/**
4282
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
4335
+ var freeGlobal$1=_typeof(commonjsGlobal)=='object'&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var _freeGlobal=freeGlobal$1;
4336
+
4337
+ var freeGlobal=_freeGlobal;/** Detect free variable `self`. */var freeSelf=(typeof self==="undefined"?"undefined":_typeof(self))=='object'&&self&&self.Object===Object&&self;/** Used as a reference to the global object. */var root$8=freeGlobal||freeSelf||Function('return this')();var _root=root$8;
4338
+
4339
+ var root$7=_root;/** Built-in value references. */var _Symbol2=root$7.Symbol;var _Symbol$3=_Symbol2;
4340
+
4341
+ var _Symbol$2=_Symbol$3;/** Used for built-in method references. */var objectProto$c=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$9=objectProto$c.hasOwnProperty;/**
4342
+ * Used to resolve the
4343
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4344
+ * of values.
4345
+ */var nativeObjectToString$1=objectProto$c.toString;/** Built-in value references. */var symToStringTag$1=_Symbol$2?_Symbol$2.toStringTag:undefined;/**
4346
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
4347
+ *
4348
+ * @private
4349
+ * @param {*} value The value to query.
4350
+ * @returns {string} Returns the raw `toStringTag`.
4351
+ */function getRawTag$1(value){var isOwn=hasOwnProperty$9.call(value,symToStringTag$1),tag=value[symToStringTag$1];try{value[symToStringTag$1]=undefined;var unmasked=true;}catch(e){}var result=nativeObjectToString$1.call(value);if(unmasked){if(isOwn){value[symToStringTag$1]=tag;}else {delete value[symToStringTag$1];}}return result;}var _getRawTag=getRawTag$1;
4352
+
4353
+ var objectProto$b=Object.prototype;/**
4354
+ * Used to resolve the
4355
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4283
4356
  * of values.
4284
- */var objectToString=objectProto.toString;/**
4285
- * Checks if `value` is classified as an `Array` object.
4357
+ */var nativeObjectToString=objectProto$b.toString;/**
4358
+ * Converts `value` to a string using `Object.prototype.toString`.
4359
+ *
4360
+ * @private
4361
+ * @param {*} value The value to convert.
4362
+ * @returns {string} Returns the converted string.
4363
+ */function objectToString$1(value){return nativeObjectToString.call(value);}var _objectToString=objectToString$1;
4364
+
4365
+ var _Symbol$1=_Symbol$3,getRawTag=_getRawTag,objectToString=_objectToString;/** `Object#toString` result references. */var nullTag='[object Null]',undefinedTag='[object Undefined]';/** Built-in value references. */var symToStringTag=_Symbol$1?_Symbol$1.toStringTag:undefined;/**
4366
+ * The base implementation of `getTag` without fallbacks for buggy environments.
4367
+ *
4368
+ * @private
4369
+ * @param {*} value The value to query.
4370
+ * @returns {string} Returns the `toStringTag`.
4371
+ */function baseGetTag$5(value){if(value==null){return value===undefined?undefinedTag:nullTag;}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value);}var _baseGetTag=baseGetTag$5;
4372
+
4373
+ var isArray$4=Array.isArray;var isArray_1=isArray$4;
4374
+
4375
+ function isObjectLike$6(value){return value!=null&&_typeof(value)=='object';}var isObjectLike_1=isObjectLike$6;
4376
+
4377
+ var baseGetTag$4=_baseGetTag,isArray$3=isArray_1,isObjectLike$5=isObjectLike_1;/** `Object#toString` result references. */var stringTag$3='[object String]';/**
4378
+ * Checks if `value` is classified as a `String` primitive or object.
4286
4379
  *
4287
4380
  * @static
4381
+ * @since 0.1.0
4288
4382
  * @memberOf _
4289
- * @type Function
4290
4383
  * @category Lang
4291
4384
  * @param {*} value The value to check.
4292
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
4385
+ * @returns {boolean} Returns `true` if `value` is a string, else `false`.
4293
4386
  * @example
4294
4387
  *
4295
- * _.isArray([1, 2, 3]);
4388
+ * _.isString('abc');
4296
4389
  * // => true
4297
4390
  *
4298
- * _.isArray(document.body.children);
4391
+ * _.isString(1);
4299
4392
  * // => false
4393
+ */function isString(value){return typeof value=='string'||!isArray$3(value)&&isObjectLike$5(value)&&baseGetTag$4(value)==stringTag$3;}var isString_1=isString;var isString$1 = /*@__PURE__*/getDefaultExportFromCjs(isString_1);
4394
+
4395
+ function listCacheClear$1(){this.__data__=[];this.size=0;}var _listCacheClear=listCacheClear$1;
4396
+
4397
+ function eq$2(value,other){return value===other||value!==value&&other!==other;}var eq_1=eq$2;
4398
+
4399
+ var eq$1=eq_1;/**
4400
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
4300
4401
  *
4301
- * _.isArray('abc');
4302
- * // => false
4402
+ * @private
4403
+ * @param {Array} array The array to inspect.
4404
+ * @param {*} key The key to search for.
4405
+ * @returns {number} Returns the index of the matched value, else `-1`.
4406
+ */function assocIndexOf$4(array,key){var length=array.length;while(length--){if(eq$1(array[length][0],key)){return length;}}return -1;}var _assocIndexOf=assocIndexOf$4;
4407
+
4408
+ var assocIndexOf$3=_assocIndexOf;/** Used for built-in method references. */var arrayProto=Array.prototype;/** Built-in value references. */var splice=arrayProto.splice;/**
4409
+ * Removes `key` and its value from the list cache.
4303
4410
  *
4304
- * _.isArray(_.noop);
4305
- * // => false
4306
- */var isArray=Array.isArray;/**
4307
- * Checks if `value` is object-like. A value is object-like if it's not `null`
4308
- * and has a `typeof` result of "object".
4411
+ * @private
4412
+ * @name delete
4413
+ * @memberOf ListCache
4414
+ * @param {string} key The key of the value to remove.
4415
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
4416
+ */function listCacheDelete$1(key){var data=this.__data__,index=assocIndexOf$3(data,key);if(index<0){return false;}var lastIndex=data.length-1;if(index==lastIndex){data.pop();}else {splice.call(data,index,1);}--this.size;return true;}var _listCacheDelete=listCacheDelete$1;
4417
+
4418
+ var assocIndexOf$2=_assocIndexOf;/**
4419
+ * Gets the list cache value for `key`.
4420
+ *
4421
+ * @private
4422
+ * @name get
4423
+ * @memberOf ListCache
4424
+ * @param {string} key The key of the value to get.
4425
+ * @returns {*} Returns the entry value.
4426
+ */function listCacheGet$1(key){var data=this.__data__,index=assocIndexOf$2(data,key);return index<0?undefined:data[index][1];}var _listCacheGet=listCacheGet$1;
4427
+
4428
+ var assocIndexOf$1=_assocIndexOf;/**
4429
+ * Checks if a list cache value for `key` exists.
4430
+ *
4431
+ * @private
4432
+ * @name has
4433
+ * @memberOf ListCache
4434
+ * @param {string} key The key of the entry to check.
4435
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
4436
+ */function listCacheHas$1(key){return assocIndexOf$1(this.__data__,key)>-1;}var _listCacheHas=listCacheHas$1;
4437
+
4438
+ var assocIndexOf=_assocIndexOf;/**
4439
+ * Sets the list cache `key` to `value`.
4440
+ *
4441
+ * @private
4442
+ * @name set
4443
+ * @memberOf ListCache
4444
+ * @param {string} key The key of the value to set.
4445
+ * @param {*} value The value to set.
4446
+ * @returns {Object} Returns the list cache instance.
4447
+ */function listCacheSet$1(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){++this.size;data.push([key,value]);}else {data[index][1]=value;}return this;}var _listCacheSet=listCacheSet$1;
4448
+
4449
+ var listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;/**
4450
+ * Creates an list cache object.
4451
+ *
4452
+ * @private
4453
+ * @constructor
4454
+ * @param {Array} [entries] The key-value pairs to cache.
4455
+ */function ListCache$4(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}// Add methods to `ListCache`.
4456
+ ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype['delete']=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4;
4457
+
4458
+ var ListCache$3=_ListCache;/**
4459
+ * Removes all key-value entries from the stack.
4460
+ *
4461
+ * @private
4462
+ * @name clear
4463
+ * @memberOf Stack
4464
+ */function stackClear$1(){this.__data__=new ListCache$3();this.size=0;}var _stackClear=stackClear$1;
4465
+
4466
+ function stackDelete$1(key){var data=this.__data__,result=data['delete'](key);this.size=data.size;return result;}var _stackDelete=stackDelete$1;
4467
+
4468
+ function stackGet$1(key){return this.__data__.get(key);}var _stackGet=stackGet$1;
4469
+
4470
+ function stackHas$1(key){return this.__data__.has(key);}var _stackHas=stackHas$1;
4471
+
4472
+ function isObject$5(value){var type=_typeof(value);return value!=null&&(type=='object'||type=='function');}var isObject_1=isObject$5;
4473
+
4474
+ var baseGetTag$3=_baseGetTag,isObject$4=isObject_1;/** `Object#toString` result references. */var asyncTag='[object AsyncFunction]',funcTag$2='[object Function]',genTag$1='[object GeneratorFunction]',proxyTag='[object Proxy]';/**
4475
+ * Checks if `value` is classified as a `Function` object.
4309
4476
  *
4310
4477
  * @static
4311
4478
  * @memberOf _
4479
+ * @since 0.1.0
4312
4480
  * @category Lang
4313
4481
  * @param {*} value The value to check.
4314
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
4482
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
4315
4483
  * @example
4316
4484
  *
4317
- * _.isObjectLike({});
4318
- * // => true
4319
- *
4320
- * _.isObjectLike([1, 2, 3]);
4485
+ * _.isFunction(_);
4321
4486
  * // => true
4322
4487
  *
4323
- * _.isObjectLike(_.noop);
4488
+ * _.isFunction(/abc/);
4324
4489
  * // => false
4490
+ */function isFunction$3(value){if(!isObject$4(value)){return false;}// The use of `Object#toString` avoids issues with the `typeof` operator
4491
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
4492
+ var tag=baseGetTag$3(value);return tag==funcTag$2||tag==genTag$1||tag==asyncTag||tag==proxyTag;}var isFunction_1=isFunction$3;
4493
+
4494
+ var root$6=_root;/** Used to detect overreaching core-js shims. */var coreJsData$1=root$6['__core-js_shared__'];var _coreJsData=coreJsData$1;
4495
+
4496
+ var coreJsData=_coreJsData;/** Used to detect methods masquerading as native. */var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||'');return uid?'Symbol(src)_1.'+uid:'';}();/**
4497
+ * Checks if `func` has its source masked.
4325
4498
  *
4326
- * _.isObjectLike(null);
4327
- * // => false
4328
- */function isObjectLike(value){return !!value&&_typeof(value)=='object';}/**
4329
- * Checks if `value` is classified as a `String` primitive or object.
4499
+ * @private
4500
+ * @param {Function} func The function to check.
4501
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
4502
+ */function isMasked$1(func){return !!maskSrcKey&&maskSrcKey in func;}var _isMasked=isMasked$1;
4503
+
4504
+ var funcProto$1=Function.prototype;/** Used to resolve the decompiled source of functions. */var funcToString$1=funcProto$1.toString;/**
4505
+ * Converts `func` to its source code.
4506
+ *
4507
+ * @private
4508
+ * @param {Function} func The function to convert.
4509
+ * @returns {string} Returns the source code.
4510
+ */function toSource$2(func){if(func!=null){try{return funcToString$1.call(func);}catch(e){}try{return func+'';}catch(e){}}return '';}var _toSource=toSource$2;
4511
+
4512
+ var isFunction$2=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource;/**
4513
+ * Used to match `RegExp`
4514
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
4515
+ */var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;/** Used to detect host constructors (Safari). */var reIsHostCtor=/^\[object .+?Constructor\]$/;/** Used for built-in method references. */var funcProto=Function.prototype,objectProto$a=Object.prototype;/** Used to resolve the decompiled source of functions. */var funcToString=funcProto.toString;/** Used to check objects for own properties. */var hasOwnProperty$8=objectProto$a.hasOwnProperty;/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/**
4516
+ * The base implementation of `_.isNative` without bad shim checks.
4517
+ *
4518
+ * @private
4519
+ * @param {*} value The value to check.
4520
+ * @returns {boolean} Returns `true` if `value` is a native function,
4521
+ * else `false`.
4522
+ */function baseIsNative$1(value){if(!isObject$3(value)||isMasked(value)){return false;}var pattern=isFunction$2(value)?reIsNative:reIsHostCtor;return pattern.test(toSource$1(value));}var _baseIsNative=baseIsNative$1;
4523
+
4524
+ function getValue$1(object,key){return object==null?undefined:object[key];}var _getValue=getValue$1;
4525
+
4526
+ var baseIsNative=_baseIsNative,getValue=_getValue;/**
4527
+ * Gets the native function at `key` of `object`.
4528
+ *
4529
+ * @private
4530
+ * @param {Object} object The object to query.
4531
+ * @param {string} key The key of the method to get.
4532
+ * @returns {*} Returns the function if it's native, else `undefined`.
4533
+ */function getNative$7(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined;}var _getNative=getNative$7;
4534
+
4535
+ var getNative$6=_getNative,root$5=_root;/* Built-in method references that are verified to be native. */var Map$3=getNative$6(root$5,'Map');var _Map=Map$3;
4536
+
4537
+ var getNative$5=_getNative;/* Built-in method references that are verified to be native. */var nativeCreate$4=getNative$5(Object,'create');var _nativeCreate=nativeCreate$4;
4538
+
4539
+ var nativeCreate$3=_nativeCreate;/**
4540
+ * Removes all key-value entries from the hash.
4541
+ *
4542
+ * @private
4543
+ * @name clear
4544
+ * @memberOf Hash
4545
+ */function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{};this.size=0;}var _hashClear=hashClear$1;
4546
+
4547
+ function hashDelete$1(key){var result=this.has(key)&&delete this.__data__[key];this.size-=result?1:0;return result;}var _hashDelete=hashDelete$1;
4548
+
4549
+ var nativeCreate$2=_nativeCreate;/** Used to stand-in for `undefined` hash values. */var HASH_UNDEFINED$1='__lodash_hash_undefined__';/** Used for built-in method references. */var objectProto$9=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$7=objectProto$9.hasOwnProperty;/**
4550
+ * Gets the hash value for `key`.
4551
+ *
4552
+ * @private
4553
+ * @name get
4554
+ * @memberOf Hash
4555
+ * @param {string} key The key of the value to get.
4556
+ * @returns {*} Returns the entry value.
4557
+ */function hashGet$1(key){var data=this.__data__;if(nativeCreate$2){var result=data[key];return result===HASH_UNDEFINED$1?undefined:result;}return hasOwnProperty$7.call(data,key)?data[key]:undefined;}var _hashGet=hashGet$1;
4558
+
4559
+ var nativeCreate$1=_nativeCreate;/** Used for built-in method references. */var objectProto$8=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$6=objectProto$8.hasOwnProperty;/**
4560
+ * Checks if a hash value for `key` exists.
4561
+ *
4562
+ * @private
4563
+ * @name has
4564
+ * @memberOf Hash
4565
+ * @param {string} key The key of the entry to check.
4566
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
4567
+ */function hashHas$1(key){var data=this.__data__;return nativeCreate$1?data[key]!==undefined:hasOwnProperty$6.call(data,key);}var _hashHas=hashHas$1;
4568
+
4569
+ var nativeCreate=_nativeCreate;/** Used to stand-in for `undefined` hash values. */var HASH_UNDEFINED='__lodash_hash_undefined__';/**
4570
+ * Sets the hash `key` to `value`.
4571
+ *
4572
+ * @private
4573
+ * @name set
4574
+ * @memberOf Hash
4575
+ * @param {string} key The key of the value to set.
4576
+ * @param {*} value The value to set.
4577
+ * @returns {Object} Returns the hash instance.
4578
+ */function hashSet$1(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&value===undefined?HASH_UNDEFINED:value;return this;}var _hashSet=hashSet$1;
4579
+
4580
+ var hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;/**
4581
+ * Creates a hash object.
4582
+ *
4583
+ * @private
4584
+ * @constructor
4585
+ * @param {Array} [entries] The key-value pairs to cache.
4586
+ */function Hash$1(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}// Add methods to `Hash`.
4587
+ Hash$1.prototype.clear=hashClear;Hash$1.prototype['delete']=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1;
4588
+
4589
+ var Hash=_Hash,ListCache$2=_ListCache,Map$2=_Map;/**
4590
+ * Removes all key-value entries from the map.
4591
+ *
4592
+ * @private
4593
+ * @name clear
4594
+ * @memberOf MapCache
4595
+ */function mapCacheClear$1(){this.size=0;this.__data__={'hash':new Hash(),'map':new(Map$2||ListCache$2)(),'string':new Hash()};}var _mapCacheClear=mapCacheClear$1;
4596
+
4597
+ function isKeyable$1(value){var type=_typeof(value);return type=='string'||type=='number'||type=='symbol'||type=='boolean'?value!=='__proto__':value===null;}var _isKeyable=isKeyable$1;
4598
+
4599
+ var isKeyable=_isKeyable;/**
4600
+ * Gets the data for `map`.
4601
+ *
4602
+ * @private
4603
+ * @param {Object} map The map to query.
4604
+ * @param {string} key The reference key.
4605
+ * @returns {*} Returns the map data.
4606
+ */function getMapData$4(map,key){var data=map.__data__;return isKeyable(key)?data[typeof key=='string'?'string':'hash']:data.map;}var _getMapData=getMapData$4;
4607
+
4608
+ var getMapData$3=_getMapData;/**
4609
+ * Removes `key` and its value from the map.
4610
+ *
4611
+ * @private
4612
+ * @name delete
4613
+ * @memberOf MapCache
4614
+ * @param {string} key The key of the value to remove.
4615
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
4616
+ */function mapCacheDelete$1(key){var result=getMapData$3(this,key)['delete'](key);this.size-=result?1:0;return result;}var _mapCacheDelete=mapCacheDelete$1;
4617
+
4618
+ var getMapData$2=_getMapData;/**
4619
+ * Gets the map value for `key`.
4620
+ *
4621
+ * @private
4622
+ * @name get
4623
+ * @memberOf MapCache
4624
+ * @param {string} key The key of the value to get.
4625
+ * @returns {*} Returns the entry value.
4626
+ */function mapCacheGet$1(key){return getMapData$2(this,key).get(key);}var _mapCacheGet=mapCacheGet$1;
4627
+
4628
+ var getMapData$1=_getMapData;/**
4629
+ * Checks if a map value for `key` exists.
4630
+ *
4631
+ * @private
4632
+ * @name has
4633
+ * @memberOf MapCache
4634
+ * @param {string} key The key of the entry to check.
4635
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
4636
+ */function mapCacheHas$1(key){return getMapData$1(this,key).has(key);}var _mapCacheHas=mapCacheHas$1;
4637
+
4638
+ var getMapData=_getMapData;/**
4639
+ * Sets the map `key` to `value`.
4640
+ *
4641
+ * @private
4642
+ * @name set
4643
+ * @memberOf MapCache
4644
+ * @param {string} key The key of the value to set.
4645
+ * @param {*} value The value to set.
4646
+ * @returns {Object} Returns the map cache instance.
4647
+ */function mapCacheSet$1(key,value){var data=getMapData(this,key),size=data.size;data.set(key,value);this.size+=data.size==size?0:1;return this;}var _mapCacheSet=mapCacheSet$1;
4648
+
4649
+ var mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;/**
4650
+ * Creates a map cache object to store key-value pairs.
4651
+ *
4652
+ * @private
4653
+ * @constructor
4654
+ * @param {Array} [entries] The key-value pairs to cache.
4655
+ */function MapCache$1(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}// Add methods to `MapCache`.
4656
+ MapCache$1.prototype.clear=mapCacheClear;MapCache$1.prototype['delete']=mapCacheDelete;MapCache$1.prototype.get=mapCacheGet;MapCache$1.prototype.has=mapCacheHas;MapCache$1.prototype.set=mapCacheSet;var _MapCache=MapCache$1;
4657
+
4658
+ var ListCache$1=_ListCache,Map$1=_Map,MapCache=_MapCache;/** Used as the size to enable large array optimizations. */var LARGE_ARRAY_SIZE=200;/**
4659
+ * Sets the stack `key` to `value`.
4660
+ *
4661
+ * @private
4662
+ * @name set
4663
+ * @memberOf Stack
4664
+ * @param {string} key The key of the value to set.
4665
+ * @param {*} value The value to set.
4666
+ * @returns {Object} Returns the stack cache instance.
4667
+ */function stackSet$1(key,value){var data=this.__data__;if(data instanceof ListCache$1){var pairs=data.__data__;if(!Map$1||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);this.size=++data.size;return this;}data=this.__data__=new MapCache(pairs);}data.set(key,value);this.size=data.size;return this;}var _stackSet=stackSet$1;
4668
+
4669
+ var ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;/**
4670
+ * Creates a stack cache object to store key-value pairs.
4671
+ *
4672
+ * @private
4673
+ * @constructor
4674
+ * @param {Array} [entries] The key-value pairs to cache.
4675
+ */function Stack$1(entries){var data=this.__data__=new ListCache(entries);this.size=data.size;}// Add methods to `Stack`.
4676
+ Stack$1.prototype.clear=stackClear;Stack$1.prototype['delete']=stackDelete;Stack$1.prototype.get=stackGet;Stack$1.prototype.has=stackHas;Stack$1.prototype.set=stackSet;var _Stack=Stack$1;
4677
+
4678
+ function arrayEach$1(array,iteratee){var index=-1,length=array==null?0:array.length;while(++index<length){if(iteratee(array[index],index,array)===false){break;}}return array;}var _arrayEach=arrayEach$1;
4679
+
4680
+ var getNative$4=_getNative;var defineProperty$1=function(){try{var func=getNative$4(Object,'defineProperty');func({},'',{});return func;}catch(e){}}();var _defineProperty=defineProperty$1;
4681
+
4682
+ var defineProperty=_defineProperty;/**
4683
+ * The base implementation of `assignValue` and `assignMergeValue` without
4684
+ * value checks.
4685
+ *
4686
+ * @private
4687
+ * @param {Object} object The object to modify.
4688
+ * @param {string} key The key of the property to assign.
4689
+ * @param {*} value The value to assign.
4690
+ */function baseAssignValue$2(object,key,value){if(key=='__proto__'&&defineProperty){defineProperty(object,key,{'configurable':true,'enumerable':true,'value':value,'writable':true});}else {object[key]=value;}}var _baseAssignValue=baseAssignValue$2;
4691
+
4692
+ var baseAssignValue$1=_baseAssignValue,eq=eq_1;/** Used for built-in method references. */var objectProto$7=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$5=objectProto$7.hasOwnProperty;/**
4693
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
4694
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
4695
+ * for equality comparisons.
4696
+ *
4697
+ * @private
4698
+ * @param {Object} object The object to modify.
4699
+ * @param {string} key The key of the property to assign.
4700
+ * @param {*} value The value to assign.
4701
+ */function assignValue$2(object,key,value){var objValue=object[key];if(!(hasOwnProperty$5.call(object,key)&&eq(objValue,value))||value===undefined&&!(key in object)){baseAssignValue$1(object,key,value);}}var _assignValue=assignValue$2;
4702
+
4703
+ var assignValue$1=_assignValue,baseAssignValue=_baseAssignValue;/**
4704
+ * Copies properties of `source` to `object`.
4705
+ *
4706
+ * @private
4707
+ * @param {Object} source The object to copy properties from.
4708
+ * @param {Array} props The property identifiers to copy.
4709
+ * @param {Object} [object={}] The object to copy properties to.
4710
+ * @param {Function} [customizer] The function to customize copied values.
4711
+ * @returns {Object} Returns `object`.
4712
+ */function copyObject$4(source,props,object,customizer){var isNew=!object;object||(object={});var index=-1,length=props.length;while(++index<length){var key=props[index];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined;if(newValue===undefined){newValue=source[key];}if(isNew){baseAssignValue(object,key,newValue);}else {assignValue$1(object,key,newValue);}}return object;}var _copyObject=copyObject$4;
4713
+
4714
+ function baseTimes$1(n,iteratee){var index=-1,result=Array(n);while(++index<n){result[index]=iteratee(index);}return result;}var _baseTimes=baseTimes$1;
4715
+
4716
+ var baseGetTag$2=_baseGetTag,isObjectLike$4=isObjectLike_1;/** `Object#toString` result references. */var argsTag$2='[object Arguments]';/**
4717
+ * The base implementation of `_.isArguments`.
4718
+ *
4719
+ * @private
4720
+ * @param {*} value The value to check.
4721
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
4722
+ */function baseIsArguments$1(value){return isObjectLike$4(value)&&baseGetTag$2(value)==argsTag$2;}var _baseIsArguments=baseIsArguments$1;
4723
+
4724
+ var baseIsArguments=_baseIsArguments,isObjectLike$3=isObjectLike_1;/** Used for built-in method references. */var objectProto$6=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$4=objectProto$6.hasOwnProperty;/** Built-in value references. */var propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable;/**
4725
+ * Checks if `value` is likely an `arguments` object.
4330
4726
  *
4331
4727
  * @static
4332
4728
  * @memberOf _
4729
+ * @since 0.1.0
4333
4730
  * @category Lang
4334
4731
  * @param {*} value The value to check.
4335
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
4732
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
4733
+ * else `false`.
4336
4734
  * @example
4337
4735
  *
4338
- * _.isString('abc');
4736
+ * _.isArguments(function() { return arguments; }());
4339
4737
  * // => true
4340
4738
  *
4341
- * _.isString(1);
4739
+ * _.isArguments([1, 2, 3]);
4342
4740
  * // => false
4343
- */function isString(value){return typeof value=='string'||!isArray(value)&&isObjectLike(value)&&objectToString.call(value)==stringTag;}var lodash_isstring=isString;var isString$1 = /*@__PURE__*/getDefaultExportFromCjs(lodash_isstring);
4741
+ */var isArguments$1=baseIsArguments(function(){return arguments;}())?baseIsArguments:function(value){return isObjectLike$3(value)&&hasOwnProperty$4.call(value,'callee')&&!propertyIsEnumerable$1.call(value,'callee');};var isArguments_1=isArguments$1;
4344
4742
 
4345
- var lodash_clonedeep = {exports: {}};
4743
+ var isBuffer$2 = {exports: {}};
4346
4744
 
4347
- lodash_clonedeep.exports;(function(module,exports){/** Used as the size to enable large array optimizations. */var LARGE_ARRAY_SIZE=200;/** Used to stand-in for `undefined` hash values. */var HASH_UNDEFINED='__lodash_hash_undefined__';/** Used as references for various `Number` constants. */var MAX_SAFE_INTEGER=9007199254740991;/** `Object#toString` result references. */var argsTag='[object Arguments]',arrayTag='[object Array]',boolTag='[object Boolean]',dateTag='[object Date]',errorTag='[object Error]',funcTag='[object Function]',genTag='[object GeneratorFunction]',mapTag='[object Map]',numberTag='[object Number]',objectTag='[object Object]',promiseTag='[object Promise]',regexpTag='[object RegExp]',setTag='[object Set]',stringTag='[object String]',symbolTag='[object Symbol]',weakMapTag='[object WeakMap]';var arrayBufferTag='[object ArrayBuffer]',dataViewTag='[object DataView]',float32Tag='[object Float32Array]',float64Tag='[object Float64Array]',int8Tag='[object Int8Array]',int16Tag='[object Int16Array]',int32Tag='[object Int32Array]',uint8Tag='[object Uint8Array]',uint8ClampedTag='[object Uint8ClampedArray]',uint16Tag='[object Uint16Array]',uint32Tag='[object Uint32Array]';/**
4348
- * Used to match `RegExp`
4349
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
4350
- */var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;/** Used to match `RegExp` flags from their coerced string values. */var reFlags=/\w*$/;/** Used to detect host constructors (Safari). */var reIsHostCtor=/^\[object .+?Constructor\]$/;/** Used to detect unsigned integer values. */var reIsUint=/^(?:0|[1-9]\d*)$/;/** Used to identify `toStringTag` values supported by `_.clone`. */var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=true;cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=false;/** Detect free variable `global` from Node.js. */var freeGlobal=_typeof(commonjsGlobal)=='object'&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;/** Detect free variable `self`. */var freeSelf=(typeof self==="undefined"?"undefined":_typeof(self))=='object'&&self&&self.Object===Object&&self;/** Used as a reference to the global object. */var root=freeGlobal||freeSelf||Function('return this')();/** Detect free variable `exports`. */var freeExports=exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule=freeExports&&'object'=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/**
4351
- * Adds the key-value `pair` to `map`.
4352
- *
4353
- * @private
4354
- * @param {Object} map The map to modify.
4355
- * @param {Array} pair The key-value pair to add.
4356
- * @returns {Object} Returns `map`.
4357
- */function addMapEntry(map,pair){// Don't return `map.set` because it's not chainable in IE 11.
4358
- map.set(pair[0],pair[1]);return map;}/**
4359
- * Adds `value` to `set`.
4360
- *
4361
- * @private
4362
- * @param {Object} set The set to modify.
4363
- * @param {*} value The value to add.
4364
- * @returns {Object} Returns `set`.
4365
- */function addSetEntry(set,value){// Don't return `set.add` because it's not chainable in IE 11.
4366
- set.add(value);return set;}/**
4367
- * A specialized version of `_.forEach` for arrays without support for
4368
- * iteratee shorthands.
4369
- *
4370
- * @private
4371
- * @param {Array} [array] The array to iterate over.
4372
- * @param {Function} iteratee The function invoked per iteration.
4373
- * @returns {Array} Returns `array`.
4374
- */function arrayEach(array,iteratee){var index=-1,length=array?array.length:0;while(++index<length){if(iteratee(array[index],index,array)===false){break;}}return array;}/**
4375
- * Appends the elements of `values` to `array`.
4376
- *
4377
- * @private
4378
- * @param {Array} array The array to modify.
4379
- * @param {Array} values The values to append.
4380
- * @returns {Array} Returns `array`.
4381
- */function arrayPush(array,values){var index=-1,length=values.length,offset=array.length;while(++index<length){array[offset+index]=values[index];}return array;}/**
4382
- * A specialized version of `_.reduce` for arrays without support for
4383
- * iteratee shorthands.
4384
- *
4385
- * @private
4386
- * @param {Array} [array] The array to iterate over.
4387
- * @param {Function} iteratee The function invoked per iteration.
4388
- * @param {*} [accumulator] The initial value.
4389
- * @param {boolean} [initAccum] Specify using the first element of `array` as
4390
- * the initial value.
4391
- * @returns {*} Returns the accumulated value.
4392
- */function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=array?array.length:0;if(initAccum&&length){accumulator=array[++index];}while(++index<length){accumulator=iteratee(accumulator,array[index],index,array);}return accumulator;}/**
4393
- * The base implementation of `_.times` without support for iteratee shorthands
4394
- * or max array length checks.
4395
- *
4396
- * @private
4397
- * @param {number} n The number of times to invoke `iteratee`.
4398
- * @param {Function} iteratee The function invoked per iteration.
4399
- * @returns {Array} Returns the array of results.
4400
- */function baseTimes(n,iteratee){var index=-1,result=Array(n);while(++index<n){result[index]=iteratee(index);}return result;}/**
4401
- * Gets the value at `key` of `object`.
4402
- *
4403
- * @private
4404
- * @param {Object} [object] The object to query.
4405
- * @param {string} key The key of the property to get.
4406
- * @returns {*} Returns the property value.
4407
- */function getValue(object,key){return object==null?undefined:object[key];}/**
4408
- * Checks if `value` is a host object in IE < 9.
4745
+ function stubFalse(){return false;}var stubFalse_1=stubFalse;
4746
+
4747
+ isBuffer$2.exports;(function(module,exports){var root=_root,stubFalse=stubFalse_1;/** Detect free variable `exports`. */var freeExports=exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule=freeExports&&'object'=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/** Built-in value references. */var Buffer=moduleExports?root.Buffer:undefined;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeIsBuffer=Buffer?Buffer.isBuffer:undefined;/**
4748
+ * Checks if `value` is a buffer.
4409
4749
  *
4410
- * @private
4750
+ * @static
4751
+ * @memberOf _
4752
+ * @since 4.3.0
4753
+ * @category Lang
4411
4754
  * @param {*} value The value to check.
4412
- * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
4413
- */function isHostObject(value){// Many host objects are `Object` objects that can coerce to strings
4414
- // despite having improperly defined `toString` methods.
4415
- var result=false;if(value!=null&&typeof value.toString!='function'){try{result=!!(value+'');}catch(e){}}return result;}/**
4416
- * Converts `map` to its key-value pairs.
4417
- *
4418
- * @private
4419
- * @param {Object} map The map to convert.
4420
- * @returns {Array} Returns the key-value pairs.
4421
- */function mapToArray(map){var index=-1,result=Array(map.size);map.forEach(function(value,key){result[++index]=[key,value];});return result;}/**
4422
- * Creates a unary function that invokes `func` with its argument transformed.
4423
- *
4424
- * @private
4425
- * @param {Function} func The function to wrap.
4426
- * @param {Function} transform The argument transform.
4427
- * @returns {Function} Returns the new function.
4428
- */function overArg(func,transform){return function(arg){return func(transform(arg));};}/**
4429
- * Converts `set` to an array of its values.
4430
- *
4431
- * @private
4432
- * @param {Object} set The set to convert.
4433
- * @returns {Array} Returns the values.
4434
- */function setToArray(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=value;});return result;}/** Used for built-in method references. */var arrayProto=Array.prototype,funcProto=Function.prototype,objectProto=Object.prototype;/** Used to detect overreaching core-js shims. */var coreJsData=root['__core-js_shared__'];/** Used to detect methods masquerading as native. */var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||'');return uid?'Symbol(src)_1.'+uid:'';}();/** Used to resolve the decompiled source of functions. */var funcToString=funcProto.toString;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/**
4435
- * Used to resolve the
4436
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4437
- * of values.
4438
- */var objectToString=objectProto.toString;/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString.call(hasOwnProperty).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/** Built-in value references. */var Buffer=moduleExports?root.Buffer:undefined,_Symbol=root.Symbol,Uint8Array=root.Uint8Array,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:undefined,nativeKeys=overArg(Object.keys,Object);/* Built-in method references that are verified to be native. */var DataView=getNative(root,'DataView'),Map=getNative(root,'Map'),Promise=getNative(root,'Promise'),Set=getNative(root,'Set'),WeakMap=getNative(root,'WeakMap'),nativeCreate=getNative(Object,'create');/** Used to detect maps, sets, and weakmaps. */var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);/** Used to convert symbols to primitives and strings. */var symbolProto=_Symbol?_Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined;/**
4439
- * Creates a hash object.
4440
- *
4441
- * @private
4442
- * @constructor
4443
- * @param {Array} [entries] The key-value pairs to cache.
4444
- */function Hash(entries){var index=-1,length=entries?entries.length:0;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}/**
4445
- * Removes all key-value entries from the hash.
4446
- *
4447
- * @private
4448
- * @name clear
4449
- * @memberOf Hash
4450
- */function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{};}/**
4451
- * Removes `key` and its value from the hash.
4452
- *
4453
- * @private
4454
- * @name delete
4455
- * @memberOf Hash
4456
- * @param {Object} hash The hash to modify.
4457
- * @param {string} key The key of the value to remove.
4458
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
4459
- */function hashDelete(key){return this.has(key)&&delete this.__data__[key];}/**
4460
- * Gets the hash value for `key`.
4461
- *
4462
- * @private
4463
- * @name get
4464
- * @memberOf Hash
4465
- * @param {string} key The key of the value to get.
4466
- * @returns {*} Returns the entry value.
4467
- */function hashGet(key){var data=this.__data__;if(nativeCreate){var result=data[key];return result===HASH_UNDEFINED?undefined:result;}return hasOwnProperty.call(data,key)?data[key]:undefined;}/**
4468
- * Checks if a hash value for `key` exists.
4469
- *
4470
- * @private
4471
- * @name has
4472
- * @memberOf Hash
4473
- * @param {string} key The key of the entry to check.
4474
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
4475
- */function hashHas(key){var data=this.__data__;return nativeCreate?data[key]!==undefined:hasOwnProperty.call(data,key);}/**
4476
- * Sets the hash `key` to `value`.
4477
- *
4478
- * @private
4479
- * @name set
4480
- * @memberOf Hash
4481
- * @param {string} key The key of the value to set.
4482
- * @param {*} value The value to set.
4483
- * @returns {Object} Returns the hash instance.
4484
- */function hashSet(key,value){var data=this.__data__;data[key]=nativeCreate&&value===undefined?HASH_UNDEFINED:value;return this;}// Add methods to `Hash`.
4485
- Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;/**
4486
- * Creates an list cache object.
4487
- *
4488
- * @private
4489
- * @constructor
4490
- * @param {Array} [entries] The key-value pairs to cache.
4491
- */function ListCache(entries){var index=-1,length=entries?entries.length:0;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}/**
4492
- * Removes all key-value entries from the list cache.
4493
- *
4494
- * @private
4495
- * @name clear
4496
- * @memberOf ListCache
4497
- */function listCacheClear(){this.__data__=[];}/**
4498
- * Removes `key` and its value from the list cache.
4755
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
4756
+ * @example
4499
4757
  *
4500
- * @private
4501
- * @name delete
4502
- * @memberOf ListCache
4503
- * @param {string} key The key of the value to remove.
4504
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
4505
- */function listCacheDelete(key){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){return false;}var lastIndex=data.length-1;if(index==lastIndex){data.pop();}else {splice.call(data,index,1);}return true;}/**
4506
- * Gets the list cache value for `key`.
4758
+ * _.isBuffer(new Buffer(2));
4759
+ * // => true
4507
4760
  *
4508
- * @private
4509
- * @name get
4510
- * @memberOf ListCache
4511
- * @param {string} key The key of the value to get.
4512
- * @returns {*} Returns the entry value.
4513
- */function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?undefined:data[index][1];}/**
4514
- * Checks if a list cache value for `key` exists.
4515
- *
4516
- * @private
4517
- * @name has
4518
- * @memberOf ListCache
4519
- * @param {string} key The key of the entry to check.
4520
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
4521
- */function listCacheHas(key){return assocIndexOf(this.__data__,key)>-1;}/**
4522
- * Sets the list cache `key` to `value`.
4523
- *
4524
- * @private
4525
- * @name set
4526
- * @memberOf ListCache
4527
- * @param {string} key The key of the value to set.
4528
- * @param {*} value The value to set.
4529
- * @returns {Object} Returns the list cache instance.
4530
- */function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){data.push([key,value]);}else {data[index][1]=value;}return this;}// Add methods to `ListCache`.
4531
- ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;/**
4532
- * Creates a map cache object to store key-value pairs.
4533
- *
4534
- * @private
4535
- * @constructor
4536
- * @param {Array} [entries] The key-value pairs to cache.
4537
- */function MapCache(entries){var index=-1,length=entries?entries.length:0;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}/**
4538
- * Removes all key-value entries from the map.
4539
- *
4540
- * @private
4541
- * @name clear
4542
- * @memberOf MapCache
4543
- */function mapCacheClear(){this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}/**
4544
- * Removes `key` and its value from the map.
4545
- *
4546
- * @private
4547
- * @name delete
4548
- * @memberOf MapCache
4549
- * @param {string} key The key of the value to remove.
4550
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
4551
- */function mapCacheDelete(key){return getMapData(this,key)['delete'](key);}/**
4552
- * Gets the map value for `key`.
4553
- *
4554
- * @private
4555
- * @name get
4556
- * @memberOf MapCache
4557
- * @param {string} key The key of the value to get.
4558
- * @returns {*} Returns the entry value.
4559
- */function mapCacheGet(key){return getMapData(this,key).get(key);}/**
4560
- * Checks if a map value for `key` exists.
4561
- *
4562
- * @private
4563
- * @name has
4564
- * @memberOf MapCache
4565
- * @param {string} key The key of the entry to check.
4566
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
4567
- */function mapCacheHas(key){return getMapData(this,key).has(key);}/**
4568
- * Sets the map `key` to `value`.
4569
- *
4570
- * @private
4571
- * @name set
4572
- * @memberOf MapCache
4573
- * @param {string} key The key of the value to set.
4574
- * @param {*} value The value to set.
4575
- * @returns {Object} Returns the map cache instance.
4576
- */function mapCacheSet(key,value){getMapData(this,key).set(key,value);return this;}// Add methods to `MapCache`.
4577
- MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;/**
4578
- * Creates a stack cache object to store key-value pairs.
4579
- *
4580
- * @private
4581
- * @constructor
4582
- * @param {Array} [entries] The key-value pairs to cache.
4583
- */function Stack(entries){this.__data__=new ListCache(entries);}/**
4584
- * Removes all key-value entries from the stack.
4585
- *
4586
- * @private
4587
- * @name clear
4588
- * @memberOf Stack
4589
- */function stackClear(){this.__data__=new ListCache();}/**
4590
- * Removes `key` and its value from the stack.
4591
- *
4592
- * @private
4593
- * @name delete
4594
- * @memberOf Stack
4595
- * @param {string} key The key of the value to remove.
4596
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
4597
- */function stackDelete(key){return this.__data__['delete'](key);}/**
4598
- * Gets the stack value for `key`.
4599
- *
4600
- * @private
4601
- * @name get
4602
- * @memberOf Stack
4603
- * @param {string} key The key of the value to get.
4604
- * @returns {*} Returns the entry value.
4605
- */function stackGet(key){return this.__data__.get(key);}/**
4606
- * Checks if a stack value for `key` exists.
4607
- *
4608
- * @private
4609
- * @name has
4610
- * @memberOf Stack
4611
- * @param {string} key The key of the entry to check.
4612
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
4613
- */function stackHas(key){return this.__data__.has(key);}/**
4614
- * Sets the stack `key` to `value`.
4615
- *
4616
- * @private
4617
- * @name set
4618
- * @memberOf Stack
4619
- * @param {string} key The key of the value to set.
4620
- * @param {*} value The value to set.
4621
- * @returns {Object} Returns the stack cache instance.
4622
- */function stackSet(key,value){var cache=this.__data__;if(cache instanceof ListCache){var pairs=cache.__data__;if(!Map||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);return this;}cache=this.__data__=new MapCache(pairs);}cache.set(key,value);return this;}// Add methods to `Stack`.
4623
- Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;/**
4624
- * Creates an array of the enumerable property names of the array-like `value`.
4625
- *
4626
- * @private
4627
- * @param {*} value The value to query.
4628
- * @param {boolean} inherited Specify returning inherited property names.
4629
- * @returns {Array} Returns the array of property names.
4630
- */function arrayLikeKeys(value,inherited){// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
4631
- // Safari 9 makes `arguments.length` enumerable in strict mode.
4632
- var result=isArray(value)||isArguments(value)?baseTimes(value.length,String):[];var length=result.length,skipIndexes=!!length;for(var key in value){if((inherited||hasOwnProperty.call(value,key))&&!(skipIndexes&&(key=='length'||isIndex(key,length)))){result.push(key);}}return result;}/**
4633
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
4634
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
4635
- * for equality comparisons.
4636
- *
4637
- * @private
4638
- * @param {Object} object The object to modify.
4639
- * @param {string} key The key of the property to assign.
4640
- * @param {*} value The value to assign.
4641
- */function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty.call(object,key)&&eq(objValue,value))||value===undefined&&!(key in object)){object[key]=value;}}/**
4642
- * Gets the index at which the `key` is found in `array` of key-value pairs.
4643
- *
4644
- * @private
4645
- * @param {Array} array The array to inspect.
4646
- * @param {*} key The key to search for.
4647
- * @returns {number} Returns the index of the matched value, else `-1`.
4648
- */function assocIndexOf(array,key){var length=array.length;while(length--){if(eq(array[length][0],key)){return length;}}return -1;}/**
4649
- * The base implementation of `_.assign` without support for multiple sources
4650
- * or `customizer` functions.
4651
- *
4652
- * @private
4653
- * @param {Object} object The destination object.
4654
- * @param {Object} source The source object.
4655
- * @returns {Object} Returns `object`.
4656
- */function baseAssign(object,source){return object&&copyObject(source,keys(source),object);}/**
4657
- * The base implementation of `_.clone` and `_.cloneDeep` which tracks
4658
- * traversed objects.
4659
- *
4660
- * @private
4661
- * @param {*} value The value to clone.
4662
- * @param {boolean} [isDeep] Specify a deep clone.
4663
- * @param {boolean} [isFull] Specify a clone including symbols.
4664
- * @param {Function} [customizer] The function to customize cloning.
4665
- * @param {string} [key] The key of `value`.
4666
- * @param {Object} [object] The parent object of `value`.
4667
- * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
4668
- * @returns {*} Returns the cloned value.
4669
- */function baseClone(value,isDeep,isFull,customizer,key,object,stack){var result;if(customizer){result=object?customizer(value,key,object,stack):customizer(value);}if(result!==undefined){return result;}if(!isObject(value)){return value;}var isArr=isArray(value);if(isArr){result=initCloneArray(value);if(!isDeep){return copyArray(value,result);}}else {var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value)){return cloneBuffer(value,isDeep);}if(tag==objectTag||tag==argsTag||isFunc&&!object){if(isHostObject(value)){return object?value:{};}result=initCloneObject(isFunc?{}:value);if(!isDeep){return copySymbols(value,baseAssign(result,value));}}else {if(!cloneableTags[tag]){return object?value:{};}result=initCloneByTag(value,tag,baseClone,isDeep);}}// Check for circular references and return its corresponding clone.
4670
- stack||(stack=new Stack());var stacked=stack.get(value);if(stacked){return stacked;}stack.set(value,result);if(!isArr){var props=isFull?getAllKeys(value):keys(value);}arrayEach(props||value,function(subValue,key){if(props){key=subValue;subValue=value[key];}// Recursively populate clone (susceptible to call stack limits).
4671
- assignValue(result,key,baseClone(subValue,isDeep,isFull,customizer,key,value,stack));});return result;}/**
4672
- * The base implementation of `_.create` without support for assigning
4673
- * properties to the created object.
4674
- *
4675
- * @private
4676
- * @param {Object} prototype The object to inherit from.
4677
- * @returns {Object} Returns the new object.
4678
- */function baseCreate(proto){return isObject(proto)?objectCreate(proto):{};}/**
4679
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
4680
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
4681
- * symbols of `object`.
4682
- *
4683
- * @private
4684
- * @param {Object} object The object to query.
4685
- * @param {Function} keysFunc The function to get the keys of `object`.
4686
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
4687
- * @returns {Array} Returns the array of property names and symbols.
4688
- */function baseGetAllKeys(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray(object)?result:arrayPush(result,symbolsFunc(object));}/**
4689
- * The base implementation of `getTag`.
4690
- *
4691
- * @private
4692
- * @param {*} value The value to query.
4693
- * @returns {string} Returns the `toStringTag`.
4694
- */function baseGetTag(value){return objectToString.call(value);}/**
4695
- * The base implementation of `_.isNative` without bad shim checks.
4696
- *
4697
- * @private
4698
- * @param {*} value The value to check.
4699
- * @returns {boolean} Returns `true` if `value` is a native function,
4700
- * else `false`.
4701
- */function baseIsNative(value){if(!isObject(value)||isMasked(value)){return false;}var pattern=isFunction(value)||isHostObject(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value));}/**
4702
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
4703
- *
4704
- * @private
4705
- * @param {Object} object The object to query.
4706
- * @returns {Array} Returns the array of property names.
4707
- */function baseKeys(object){if(!isPrototype(object)){return nativeKeys(object);}var result=[];for(var key in Object(object)){if(hasOwnProperty.call(object,key)&&key!='constructor'){result.push(key);}}return result;}/**
4708
- * Creates a clone of `buffer`.
4761
+ * _.isBuffer(new Uint8Array(2));
4762
+ * // => false
4763
+ */var isBuffer=nativeIsBuffer||stubFalse;module.exports=isBuffer;})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports;
4764
+
4765
+ var MAX_SAFE_INTEGER$1=9007199254740991;/** Used to detect unsigned integer values. */var reIsUint=/^(?:0|[1-9]\d*)$/;/**
4766
+ * Checks if `value` is a valid array-like index.
4767
+ *
4768
+ * @private
4769
+ * @param {*} value The value to check.
4770
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4771
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4772
+ */function isIndex$1(value,length){var type=_typeof(value);length=length==null?MAX_SAFE_INTEGER$1:length;return !!length&&(type=='number'||type!='symbol'&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length;}var _isIndex=isIndex$1;
4773
+
4774
+ var MAX_SAFE_INTEGER=9007199254740991;/**
4775
+ * Checks if `value` is a valid array-like length.
4776
+ *
4777
+ * **Note:** This method is loosely based on
4778
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
4779
+ *
4780
+ * @static
4781
+ * @memberOf _
4782
+ * @since 4.0.0
4783
+ * @category Lang
4784
+ * @param {*} value The value to check.
4785
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
4786
+ * @example
4787
+ *
4788
+ * _.isLength(3);
4789
+ * // => true
4790
+ *
4791
+ * _.isLength(Number.MIN_VALUE);
4792
+ * // => false
4793
+ *
4794
+ * _.isLength(Infinity);
4795
+ * // => false
4796
+ *
4797
+ * _.isLength('3');
4798
+ * // => false
4799
+ */function isLength$2(value){return typeof value=='number'&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}var isLength_1=isLength$2;
4800
+
4801
+ var baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$2=isObjectLike_1;/** `Object#toString` result references. */var argsTag$1='[object Arguments]',arrayTag$1='[object Array]',boolTag$2='[object Boolean]',dateTag$2='[object Date]',errorTag$1='[object Error]',funcTag$1='[object Function]',mapTag$4='[object Map]',numberTag$2='[object Number]',objectTag$2='[object Object]',regexpTag$2='[object RegExp]',setTag$4='[object Set]',stringTag$2='[object String]',weakMapTag$2='[object WeakMap]';var arrayBufferTag$2='[object ArrayBuffer]',dataViewTag$3='[object DataView]',float32Tag$2='[object Float32Array]',float64Tag$2='[object Float64Array]',int8Tag$2='[object Int8Array]',int16Tag$2='[object Int16Array]',int32Tag$2='[object Int32Array]',uint8Tag$2='[object Uint8Array]',uint8ClampedTag$2='[object Uint8ClampedArray]',uint16Tag$2='[object Uint16Array]',uint32Tag$2='[object Uint32Array]';/** Used to identify `toStringTag` values of typed arrays. */var typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=true;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=false;/**
4802
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
4803
+ *
4804
+ * @private
4805
+ * @param {*} value The value to check.
4806
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
4807
+ */function baseIsTypedArray$1(value){return isObjectLike$2(value)&&isLength$1(value.length)&&!!typedArrayTags[baseGetTag$1(value)];}var _baseIsTypedArray=baseIsTypedArray$1;
4808
+
4809
+ function baseUnary$3(func){return function(value){return func(value);};}var _baseUnary=baseUnary$3;
4810
+
4811
+ var _nodeUtil = {exports: {}};
4812
+
4813
+ _nodeUtil.exports;(function(module,exports){var freeGlobal=_freeGlobal;/** Detect free variable `exports`. */var freeExports=exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule=freeExports&&'object'=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/** Detect free variable `process` from Node.js. */var freeProcess=moduleExports&&freeGlobal.process;/** Used to access faster Node.js helpers. */var nodeUtil=function(){try{// Use `util.types` for Node.js 10+.
4814
+ var types=freeModule&&freeModule.require&&freeModule.require('util').types;if(types){return types;}// Legacy `process.binding('util')` for Node.js < 10.
4815
+ return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}}();module.exports=nodeUtil;})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports;
4816
+
4817
+ var baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports;/* Node.js helper references. */var nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray;/**
4818
+ * Checks if `value` is classified as a typed array.
4819
+ *
4820
+ * @static
4821
+ * @memberOf _
4822
+ * @since 3.0.0
4823
+ * @category Lang
4824
+ * @param {*} value The value to check.
4825
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
4826
+ * @example
4827
+ *
4828
+ * _.isTypedArray(new Uint8Array);
4829
+ * // => true
4830
+ *
4831
+ * _.isTypedArray([]);
4832
+ * // => false
4833
+ */var isTypedArray$1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray;var isTypedArray_1=isTypedArray$1;
4834
+
4835
+ var baseTimes=_baseTimes,isArguments=isArguments_1,isArray$2=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray=isTypedArray_1;/** Used for built-in method references. */var objectProto$5=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$3=objectProto$5.hasOwnProperty;/**
4836
+ * Creates an array of the enumerable property names of the array-like `value`.
4837
+ *
4838
+ * @private
4839
+ * @param {*} value The value to query.
4840
+ * @param {boolean} inherited Specify returning inherited property names.
4841
+ * @returns {Array} Returns the array of property names.
4842
+ */function arrayLikeKeys$2(value,inherited){var isArr=isArray$2(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer$1(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value){if((inherited||hasOwnProperty$3.call(value,key))&&!(skipIndexes&&(// Safari 9 has enumerable `arguments.length` in strict mode.
4843
+ key=='length'||// Node.js 0.10 has enumerable non-index properties on buffers.
4844
+ isBuff&&(key=='offset'||key=='parent')||// PhantomJS 2 has enumerable non-index properties on typed arrays.
4845
+ isType&&(key=='buffer'||key=='byteLength'||key=='byteOffset')||// Skip index properties.
4846
+ isIndex(key,length)))){result.push(key);}}return result;}var _arrayLikeKeys=arrayLikeKeys$2;
4847
+
4848
+ var objectProto$4=Object.prototype;/**
4849
+ * Checks if `value` is likely a prototype object.
4850
+ *
4851
+ * @private
4852
+ * @param {*} value The value to check.
4853
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
4854
+ */function isPrototype$3(value){var Ctor=value&&value.constructor,proto=typeof Ctor=='function'&&Ctor.prototype||objectProto$4;return value===proto;}var _isPrototype=isPrototype$3;
4855
+
4856
+ function overArg$2(func,transform){return function(arg){return func(transform(arg));};}var _overArg=overArg$2;
4857
+
4858
+ var overArg$1=_overArg;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeKeys$1=overArg$1(Object.keys,Object);var _nativeKeys=nativeKeys$1;
4859
+
4860
+ var isPrototype$2=_isPrototype,nativeKeys=_nativeKeys;/** Used for built-in method references. */var objectProto$3=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$2=objectProto$3.hasOwnProperty;/**
4861
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
4862
+ *
4863
+ * @private
4864
+ * @param {Object} object The object to query.
4865
+ * @returns {Array} Returns the array of property names.
4866
+ */function baseKeys$1(object){if(!isPrototype$2(object)){return nativeKeys(object);}var result=[];for(var key in Object(object)){if(hasOwnProperty$2.call(object,key)&&key!='constructor'){result.push(key);}}return result;}var _baseKeys=baseKeys$1;
4867
+
4868
+ var isFunction$1=isFunction_1,isLength=isLength_1;/**
4869
+ * Checks if `value` is array-like. A value is considered array-like if it's
4870
+ * not a function and has a `value.length` that's an integer greater than or
4871
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
4872
+ *
4873
+ * @static
4874
+ * @memberOf _
4875
+ * @since 4.0.0
4876
+ * @category Lang
4877
+ * @param {*} value The value to check.
4878
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
4879
+ * @example
4880
+ *
4881
+ * _.isArrayLike([1, 2, 3]);
4882
+ * // => true
4883
+ *
4884
+ * _.isArrayLike(document.body.children);
4885
+ * // => true
4886
+ *
4887
+ * _.isArrayLike('abc');
4888
+ * // => true
4889
+ *
4890
+ * _.isArrayLike(_.noop);
4891
+ * // => false
4892
+ */function isArrayLike$2(value){return value!=null&&isLength(value.length)&&!isFunction$1(value);}var isArrayLike_1=isArrayLike$2;
4893
+
4894
+ var arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;/**
4895
+ * Creates an array of the own enumerable property names of `object`.
4896
+ *
4897
+ * **Note:** Non-object values are coerced to objects. See the
4898
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
4899
+ * for more details.
4900
+ *
4901
+ * @static
4902
+ * @since 0.1.0
4903
+ * @memberOf _
4904
+ * @category Object
4905
+ * @param {Object} object The object to query.
4906
+ * @returns {Array} Returns the array of property names.
4907
+ * @example
4908
+ *
4909
+ * function Foo() {
4910
+ * this.a = 1;
4911
+ * this.b = 2;
4912
+ * }
4913
+ *
4914
+ * Foo.prototype.c = 3;
4915
+ *
4916
+ * _.keys(new Foo);
4917
+ * // => ['a', 'b'] (iteration order is not guaranteed)
4918
+ *
4919
+ * _.keys('hi');
4920
+ * // => ['0', '1']
4921
+ */function keys$3(object){return isArrayLike$1(object)?arrayLikeKeys$1(object):baseKeys(object);}var keys_1=keys$3;
4922
+
4923
+ var copyObject$3=_copyObject,keys$2=keys_1;/**
4924
+ * The base implementation of `_.assign` without support for multiple sources
4925
+ * or `customizer` functions.
4926
+ *
4927
+ * @private
4928
+ * @param {Object} object The destination object.
4929
+ * @param {Object} source The source object.
4930
+ * @returns {Object} Returns `object`.
4931
+ */function baseAssign$1(object,source){return object&&copyObject$3(source,keys$2(source),object);}var _baseAssign=baseAssign$1;
4932
+
4933
+ function nativeKeysIn$1(object){var result=[];if(object!=null){for(var key in Object(object)){result.push(key);}}return result;}var _nativeKeysIn=nativeKeysIn$1;
4934
+
4935
+ var isObject$2=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn;/** Used for built-in method references. */var objectProto$2=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty$1=objectProto$2.hasOwnProperty;/**
4936
+ * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
4937
+ *
4938
+ * @private
4939
+ * @param {Object} object The object to query.
4940
+ * @returns {Array} Returns the array of property names.
4941
+ */function baseKeysIn$1(object){if(!isObject$2(object)){return nativeKeysIn(object);}var isProto=isPrototype$1(object),result=[];for(var key in object){if(!(key=='constructor'&&(isProto||!hasOwnProperty$1.call(object,key)))){result.push(key);}}return result;}var _baseKeysIn=baseKeysIn$1;
4942
+
4943
+ var arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike=isArrayLike_1;/**
4944
+ * Creates an array of the own and inherited enumerable property names of `object`.
4945
+ *
4946
+ * **Note:** Non-object values are coerced to objects.
4947
+ *
4948
+ * @static
4949
+ * @memberOf _
4950
+ * @since 3.0.0
4951
+ * @category Object
4952
+ * @param {Object} object The object to query.
4953
+ * @returns {Array} Returns the array of property names.
4954
+ * @example
4955
+ *
4956
+ * function Foo() {
4957
+ * this.a = 1;
4958
+ * this.b = 2;
4959
+ * }
4960
+ *
4961
+ * Foo.prototype.c = 3;
4962
+ *
4963
+ * _.keysIn(new Foo);
4964
+ * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
4965
+ */function keysIn$3(object){return isArrayLike(object)?arrayLikeKeys(object,true):baseKeysIn(object);}var keysIn_1=keysIn$3;
4966
+
4967
+ var copyObject$2=_copyObject,keysIn$2=keysIn_1;/**
4968
+ * The base implementation of `_.assignIn` without support for multiple sources
4969
+ * or `customizer` functions.
4970
+ *
4971
+ * @private
4972
+ * @param {Object} object The destination object.
4973
+ * @param {Object} source The source object.
4974
+ * @returns {Object} Returns `object`.
4975
+ */function baseAssignIn$1(object,source){return object&&copyObject$2(source,keysIn$2(source),object);}var _baseAssignIn=baseAssignIn$1;
4976
+
4977
+ var _cloneBuffer = {exports: {}};
4978
+
4979
+ _cloneBuffer.exports;(function(module,exports){var root=_root;/** Detect free variable `exports`. */var freeExports=exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule=freeExports&&'object'=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/** Built-in value references. */var Buffer=moduleExports?root.Buffer:undefined,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined;/**
4980
+ * Creates a clone of `buffer`.
4709
4981
  *
4710
4982
  * @private
4711
4983
  * @param {Buffer} buffer The buffer to clone.
4712
4984
  * @param {boolean} [isDeep] Specify a deep clone.
4713
4985
  * @returns {Buffer} Returns the cloned buffer.
4714
- */function cloneBuffer(buffer,isDeep){if(isDeep){return buffer.slice();}var result=new buffer.constructor(buffer.length);buffer.copy(result);return result;}/**
4715
- * Creates a clone of `arrayBuffer`.
4716
- *
4717
- * @private
4718
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
4719
- * @returns {ArrayBuffer} Returns the cloned array buffer.
4720
- */function cloneArrayBuffer(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);new Uint8Array(result).set(new Uint8Array(arrayBuffer));return result;}/**
4721
- * Creates a clone of `dataView`.
4722
- *
4723
- * @private
4724
- * @param {Object} dataView The data view to clone.
4725
- * @param {boolean} [isDeep] Specify a deep clone.
4726
- * @returns {Object} Returns the cloned data view.
4727
- */function cloneDataView(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength);}/**
4728
- * Creates a clone of `map`.
4729
- *
4730
- * @private
4731
- * @param {Object} map The map to clone.
4732
- * @param {Function} cloneFunc The function to clone values.
4733
- * @param {boolean} [isDeep] Specify a deep clone.
4734
- * @returns {Object} Returns the cloned map.
4735
- */function cloneMap(map,isDeep,cloneFunc){var array=isDeep?cloneFunc(mapToArray(map),true):mapToArray(map);return arrayReduce(array,addMapEntry,new map.constructor());}/**
4736
- * Creates a clone of `regexp`.
4737
- *
4738
- * @private
4739
- * @param {Object} regexp The regexp to clone.
4740
- * @returns {Object} Returns the cloned regexp.
4741
- */function cloneRegExp(regexp){var result=new regexp.constructor(regexp.source,reFlags.exec(regexp));result.lastIndex=regexp.lastIndex;return result;}/**
4742
- * Creates a clone of `set`.
4743
- *
4744
- * @private
4745
- * @param {Object} set The set to clone.
4746
- * @param {Function} cloneFunc The function to clone values.
4747
- * @param {boolean} [isDeep] Specify a deep clone.
4748
- * @returns {Object} Returns the cloned set.
4749
- */function cloneSet(set,isDeep,cloneFunc){var array=isDeep?cloneFunc(setToArray(set),true):setToArray(set);return arrayReduce(array,addSetEntry,new set.constructor());}/**
4750
- * Creates a clone of the `symbol` object.
4751
- *
4752
- * @private
4753
- * @param {Object} symbol The symbol object to clone.
4754
- * @returns {Object} Returns the cloned symbol object.
4755
- */function cloneSymbol(symbol){return symbolValueOf?Object(symbolValueOf.call(symbol)):{};}/**
4756
- * Creates a clone of `typedArray`.
4757
- *
4758
- * @private
4759
- * @param {Object} typedArray The typed array to clone.
4760
- * @param {boolean} [isDeep] Specify a deep clone.
4761
- * @returns {Object} Returns the cloned typed array.
4762
- */function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length);}/**
4763
- * Copies the values of `source` to `array`.
4764
- *
4765
- * @private
4766
- * @param {Array} source The array to copy values from.
4767
- * @param {Array} [array=[]] The array to copy values to.
4768
- * @returns {Array} Returns `array`.
4769
- */function copyArray(source,array){var index=-1,length=source.length;array||(array=Array(length));while(++index<length){array[index]=source[index];}return array;}/**
4770
- * Copies properties of `source` to `object`.
4771
- *
4772
- * @private
4773
- * @param {Object} source The object to copy properties from.
4774
- * @param {Array} props The property identifiers to copy.
4775
- * @param {Object} [object={}] The object to copy properties to.
4776
- * @param {Function} [customizer] The function to customize copied values.
4777
- * @returns {Object} Returns `object`.
4778
- */function copyObject(source,props,object,customizer){object||(object={});var index=-1,length=props.length;while(++index<length){var key=props[index];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined;assignValue(object,key,newValue===undefined?source[key]:newValue);}return object;}/**
4779
- * Copies own symbol properties of `source` to `object`.
4780
- *
4781
- * @private
4782
- * @param {Object} source The object to copy symbols from.
4783
- * @param {Object} [object={}] The object to copy symbols to.
4784
- * @returns {Object} Returns `object`.
4785
- */function copySymbols(source,object){return copyObject(source,getSymbols(source),object);}/**
4786
- * Creates an array of own enumerable property names and symbols of `object`.
4787
- *
4788
- * @private
4789
- * @param {Object} object The object to query.
4790
- * @returns {Array} Returns the array of property names and symbols.
4791
- */function getAllKeys(object){return baseGetAllKeys(object,keys,getSymbols);}/**
4792
- * Gets the data for `map`.
4793
- *
4794
- * @private
4795
- * @param {Object} map The map to query.
4796
- * @param {string} key The reference key.
4797
- * @returns {*} Returns the map data.
4798
- */function getMapData(map,key){var data=map.__data__;return isKeyable(key)?data[typeof key=='string'?'string':'hash']:data.map;}/**
4799
- * Gets the native function at `key` of `object`.
4800
- *
4801
- * @private
4802
- * @param {Object} object The object to query.
4803
- * @param {string} key The key of the method to get.
4804
- * @returns {*} Returns the function if it's native, else `undefined`.
4805
- */function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined;}/**
4806
- * Creates an array of the own enumerable symbol properties of `object`.
4807
- *
4808
- * @private
4809
- * @param {Object} object The object to query.
4810
- * @returns {Array} Returns the array of symbols.
4811
- */var getSymbols=nativeGetSymbols?overArg(nativeGetSymbols,Object):stubArray;/**
4812
- * Gets the `toStringTag` of `value`.
4813
- *
4814
- * @private
4815
- * @param {*} value The value to query.
4816
- * @returns {string} Returns the `toStringTag`.
4817
- */var getTag=baseGetTag;// Fallback for data views, maps, sets, and weak maps in IE 11,
4818
- // for data views in Edge < 14, and promises in Node.js.
4819
- if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag(new Map())!=mapTag||Promise&&getTag(Promise.resolve())!=promiseTag||Set&&getTag(new Set())!=setTag||WeakMap&&getTag(new WeakMap())!=weakMapTag){getTag=function getTag(value){var result=objectToString.call(value),Ctor=result==objectTag?value.constructor:undefined,ctorString=Ctor?toSource(Ctor):undefined;if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag;}}return result;};}/**
4820
- * Initializes an array clone.
4821
- *
4822
- * @private
4823
- * @param {Array} array The array to clone.
4824
- * @returns {Array} Returns the initialized clone.
4825
- */function initCloneArray(array){var length=array.length,result=array.constructor(length);// Add properties assigned by `RegExp#exec`.
4826
- if(length&&typeof array[0]=='string'&&hasOwnProperty.call(array,'index')){result.index=array.index;result.input=array.input;}return result;}/**
4827
- * Initializes an object clone.
4828
- *
4829
- * @private
4830
- * @param {Object} object The object to clone.
4831
- * @returns {Object} Returns the initialized clone.
4832
- */function initCloneObject(object){return typeof object.constructor=='function'&&!isPrototype(object)?baseCreate(getPrototype(object)):{};}/**
4833
- * Initializes an object clone based on its `toStringTag`.
4834
- *
4835
- * **Note:** This function only supports cloning values with tags of
4836
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
4837
- *
4838
- * @private
4839
- * @param {Object} object The object to clone.
4840
- * @param {string} tag The `toStringTag` of the object to clone.
4841
- * @param {Function} cloneFunc The function to clone values.
4842
- * @param {boolean} [isDeep] Specify a deep clone.
4843
- * @returns {Object} Returns the initialized clone.
4844
- */function initCloneByTag(object,tag,cloneFunc,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return cloneArrayBuffer(object);case boolTag:case dateTag:return new Ctor(+object);case dataViewTag:return cloneDataView(object,isDeep);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:return cloneTypedArray(object,isDeep);case mapTag:return cloneMap(object,isDeep,cloneFunc);case numberTag:case stringTag:return new Ctor(object);case regexpTag:return cloneRegExp(object);case setTag:return cloneSet(object,isDeep,cloneFunc);case symbolTag:return cloneSymbol(object);}}/**
4845
- * Checks if `value` is a valid array-like index.
4846
- *
4847
- * @private
4848
- * @param {*} value The value to check.
4849
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4850
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4851
- */function isIndex(value,length){length=length==null?MAX_SAFE_INTEGER:length;return !!length&&(typeof value=='number'||reIsUint.test(value))&&value>-1&&value%1==0&&value<length;}/**
4852
- * Checks if `value` is suitable for use as unique object key.
4853
- *
4854
- * @private
4855
- * @param {*} value The value to check.
4856
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
4857
- */function isKeyable(value){var type=_typeof(value);return type=='string'||type=='number'||type=='symbol'||type=='boolean'?value!=='__proto__':value===null;}/**
4858
- * Checks if `func` has its source masked.
4859
- *
4860
- * @private
4861
- * @param {Function} func The function to check.
4862
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
4863
- */function isMasked(func){return !!maskSrcKey&&maskSrcKey in func;}/**
4864
- * Checks if `value` is likely a prototype object.
4865
- *
4866
- * @private
4867
- * @param {*} value The value to check.
4868
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
4869
- */function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=='function'&&Ctor.prototype||objectProto;return value===proto;}/**
4870
- * Converts `func` to its source code.
4871
- *
4872
- * @private
4873
- * @param {Function} func The function to process.
4874
- * @returns {string} Returns the source code.
4875
- */function toSource(func){if(func!=null){try{return funcToString.call(func);}catch(e){}try{return func+'';}catch(e){}}return '';}/**
4876
- * This method is like `_.clone` except that it recursively clones `value`.
4877
- *
4878
- * @static
4879
- * @memberOf _
4880
- * @since 1.0.0
4881
- * @category Lang
4882
- * @param {*} value The value to recursively clone.
4883
- * @returns {*} Returns the deep cloned value.
4884
- * @see _.clone
4885
- * @example
4886
- *
4887
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
4888
- *
4889
- * var deep = _.cloneDeep(objects);
4890
- * console.log(deep[0] === objects[0]);
4891
- * // => false
4892
- */function cloneDeep(value){return baseClone(value,true,true);}/**
4893
- * Performs a
4894
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
4895
- * comparison between two values to determine if they are equivalent.
4896
- *
4897
- * @static
4898
- * @memberOf _
4899
- * @since 4.0.0
4900
- * @category Lang
4901
- * @param {*} value The value to compare.
4902
- * @param {*} other The other value to compare.
4903
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
4904
- * @example
4905
- *
4906
- * var object = { 'a': 1 };
4907
- * var other = { 'a': 1 };
4908
- *
4909
- * _.eq(object, object);
4910
- * // => true
4911
- *
4912
- * _.eq(object, other);
4913
- * // => false
4914
- *
4915
- * _.eq('a', 'a');
4916
- * // => true
4917
- *
4918
- * _.eq('a', Object('a'));
4919
- * // => false
4920
- *
4921
- * _.eq(NaN, NaN);
4922
- * // => true
4923
- */function eq(value,other){return value===other||value!==value&&other!==other;}/**
4924
- * Checks if `value` is likely an `arguments` object.
4925
- *
4926
- * @static
4927
- * @memberOf _
4928
- * @since 0.1.0
4929
- * @category Lang
4930
- * @param {*} value The value to check.
4931
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
4932
- * else `false`.
4933
- * @example
4934
- *
4935
- * _.isArguments(function() { return arguments; }());
4936
- * // => true
4937
- *
4938
- * _.isArguments([1, 2, 3]);
4939
- * // => false
4940
- */function isArguments(value){// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
4941
- return isArrayLikeObject(value)&&hasOwnProperty.call(value,'callee')&&(!propertyIsEnumerable.call(value,'callee')||objectToString.call(value)==argsTag);}/**
4942
- * Checks if `value` is classified as an `Array` object.
4943
- *
4944
- * @static
4945
- * @memberOf _
4946
- * @since 0.1.0
4947
- * @category Lang
4948
- * @param {*} value The value to check.
4949
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
4950
- * @example
4951
- *
4952
- * _.isArray([1, 2, 3]);
4953
- * // => true
4954
- *
4955
- * _.isArray(document.body.children);
4956
- * // => false
4957
- *
4958
- * _.isArray('abc');
4959
- * // => false
4960
- *
4961
- * _.isArray(_.noop);
4962
- * // => false
4963
- */var isArray=Array.isArray;/**
4964
- * Checks if `value` is array-like. A value is considered array-like if it's
4965
- * not a function and has a `value.length` that's an integer greater than or
4966
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
4967
- *
4968
- * @static
4969
- * @memberOf _
4970
- * @since 4.0.0
4971
- * @category Lang
4972
- * @param {*} value The value to check.
4973
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
4974
- * @example
4975
- *
4976
- * _.isArrayLike([1, 2, 3]);
4977
- * // => true
4978
- *
4979
- * _.isArrayLike(document.body.children);
4980
- * // => true
4981
- *
4982
- * _.isArrayLike('abc');
4983
- * // => true
4984
- *
4985
- * _.isArrayLike(_.noop);
4986
- * // => false
4987
- */function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value);}/**
4988
- * This method is like `_.isArrayLike` except that it also checks if `value`
4989
- * is an object.
4990
- *
4991
- * @static
4992
- * @memberOf _
4993
- * @since 4.0.0
4994
- * @category Lang
4995
- * @param {*} value The value to check.
4996
- * @returns {boolean} Returns `true` if `value` is an array-like object,
4997
- * else `false`.
4998
- * @example
4999
- *
5000
- * _.isArrayLikeObject([1, 2, 3]);
5001
- * // => true
5002
- *
5003
- * _.isArrayLikeObject(document.body.children);
5004
- * // => true
5005
- *
5006
- * _.isArrayLikeObject('abc');
5007
- * // => false
5008
- *
5009
- * _.isArrayLikeObject(_.noop);
5010
- * // => false
5011
- */function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value);}/**
5012
- * Checks if `value` is a buffer.
5013
- *
5014
- * @static
5015
- * @memberOf _
5016
- * @since 4.3.0
5017
- * @category Lang
5018
- * @param {*} value The value to check.
5019
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
5020
- * @example
5021
- *
5022
- * _.isBuffer(new Buffer(2));
5023
- * // => true
5024
- *
5025
- * _.isBuffer(new Uint8Array(2));
5026
- * // => false
5027
- */var isBuffer=nativeIsBuffer||stubFalse;/**
5028
- * Checks if `value` is classified as a `Function` object.
5029
- *
5030
- * @static
5031
- * @memberOf _
5032
- * @since 0.1.0
5033
- * @category Lang
5034
- * @param {*} value The value to check.
5035
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
5036
- * @example
5037
- *
5038
- * _.isFunction(_);
5039
- * // => true
5040
- *
5041
- * _.isFunction(/abc/);
5042
- * // => false
5043
- */function isFunction(value){// The use of `Object#toString` avoids issues with the `typeof` operator
5044
- // in Safari 8-9 which returns 'object' for typed array and other constructors.
5045
- var tag=isObject(value)?objectToString.call(value):'';return tag==funcTag||tag==genTag;}/**
5046
- * Checks if `value` is a valid array-like length.
5047
- *
5048
- * **Note:** This method is loosely based on
5049
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
5050
- *
5051
- * @static
5052
- * @memberOf _
5053
- * @since 4.0.0
5054
- * @category Lang
5055
- * @param {*} value The value to check.
5056
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
5057
- * @example
5058
- *
5059
- * _.isLength(3);
5060
- * // => true
5061
- *
5062
- * _.isLength(Number.MIN_VALUE);
5063
- * // => false
5064
- *
5065
- * _.isLength(Infinity);
5066
- * // => false
5067
- *
5068
- * _.isLength('3');
5069
- * // => false
5070
- */function isLength(value){return typeof value=='number'&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}/**
5071
- * Checks if `value` is the
5072
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
5073
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
5074
- *
5075
- * @static
5076
- * @memberOf _
5077
- * @since 0.1.0
5078
- * @category Lang
5079
- * @param {*} value The value to check.
5080
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
5081
- * @example
5082
- *
5083
- * _.isObject({});
5084
- * // => true
5085
- *
5086
- * _.isObject([1, 2, 3]);
5087
- * // => true
5088
- *
5089
- * _.isObject(_.noop);
5090
- * // => true
5091
- *
5092
- * _.isObject(null);
5093
- * // => false
5094
- */function isObject(value){var type=_typeof(value);return !!value&&(type=='object'||type=='function');}/**
5095
- * Checks if `value` is object-like. A value is object-like if it's not `null`
5096
- * and has a `typeof` result of "object".
5097
- *
5098
- * @static
5099
- * @memberOf _
5100
- * @since 4.0.0
5101
- * @category Lang
5102
- * @param {*} value The value to check.
5103
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
5104
- * @example
5105
- *
5106
- * _.isObjectLike({});
5107
- * // => true
5108
- *
5109
- * _.isObjectLike([1, 2, 3]);
5110
- * // => true
5111
- *
5112
- * _.isObjectLike(_.noop);
5113
- * // => false
5114
- *
5115
- * _.isObjectLike(null);
5116
- * // => false
5117
- */function isObjectLike(value){return !!value&&_typeof(value)=='object';}/**
5118
- * Creates an array of the own enumerable property names of `object`.
5119
- *
5120
- * **Note:** Non-object values are coerced to objects. See the
5121
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
5122
- * for more details.
5123
- *
5124
- * @static
5125
- * @since 0.1.0
5126
- * @memberOf _
5127
- * @category Object
5128
- * @param {Object} object The object to query.
5129
- * @returns {Array} Returns the array of property names.
5130
- * @example
5131
- *
5132
- * function Foo() {
5133
- * this.a = 1;
5134
- * this.b = 2;
5135
- * }
5136
- *
5137
- * Foo.prototype.c = 3;
5138
- *
5139
- * _.keys(new Foo);
5140
- * // => ['a', 'b'] (iteration order is not guaranteed)
5141
- *
5142
- * _.keys('hi');
5143
- * // => ['0', '1']
5144
- */function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object);}/**
5145
- * This method returns a new empty array.
5146
- *
5147
- * @static
5148
- * @memberOf _
5149
- * @since 4.13.0
5150
- * @category Util
5151
- * @returns {Array} Returns the new empty array.
5152
- * @example
5153
- *
5154
- * var arrays = _.times(2, _.stubArray);
5155
- *
5156
- * console.log(arrays);
5157
- * // => [[], []]
5158
- *
5159
- * console.log(arrays[0] === arrays[1]);
5160
- * // => false
5161
- */function stubArray(){return [];}/**
5162
- * This method returns `false`.
5163
- *
5164
- * @static
5165
- * @memberOf _
5166
- * @since 4.13.0
5167
- * @category Util
5168
- * @returns {boolean} Returns `false`.
5169
- * @example
5170
- *
5171
- * _.times(2, _.stubFalse);
5172
- * // => [false, false]
5173
- */function stubFalse(){return false;}module.exports=cloneDeep;})(lodash_clonedeep,lodash_clonedeep.exports);var lodash_clonedeepExports=lodash_clonedeep.exports;var cloneDeep = /*@__PURE__*/getDefaultExportFromCjs(lodash_clonedeepExports);
4986
+ */function cloneBuffer(buffer,isDeep){if(isDeep){return buffer.slice();}var length=buffer.length,result=allocUnsafe?allocUnsafe(length):new buffer.constructor(length);buffer.copy(result);return result;}module.exports=cloneBuffer;})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports;
4987
+
4988
+ function copyArray$1(source,array){var index=-1,length=source.length;array||(array=Array(length));while(++index<length){array[index]=source[index];}return array;}var _copyArray=copyArray$1;
4989
+
4990
+ function arrayFilter$1(array,predicate){var index=-1,length=array==null?0:array.length,resIndex=0,result=[];while(++index<length){var value=array[index];if(predicate(value,index,array)){result[resIndex++]=value;}}return result;}var _arrayFilter=arrayFilter$1;
4991
+
4992
+ function stubArray$2(){return [];}var stubArray_1=stubArray$2;
4993
+
4994
+ var arrayFilter=_arrayFilter,stubArray$1=stubArray_1;/** Used for built-in method references. */var objectProto$1=Object.prototype;/** Built-in value references. */var propertyIsEnumerable=objectProto$1.propertyIsEnumerable;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeGetSymbols$1=Object.getOwnPropertySymbols;/**
4995
+ * Creates an array of the own enumerable symbols of `object`.
4996
+ *
4997
+ * @private
4998
+ * @param {Object} object The object to query.
4999
+ * @returns {Array} Returns the array of symbols.
5000
+ */var getSymbols$3=!nativeGetSymbols$1?stubArray$1:function(object){if(object==null){return [];}object=Object(object);return arrayFilter(nativeGetSymbols$1(object),function(symbol){return propertyIsEnumerable.call(object,symbol);});};var _getSymbols=getSymbols$3;
5001
+
5002
+ var copyObject$1=_copyObject,getSymbols$2=_getSymbols;/**
5003
+ * Copies own symbols of `source` to `object`.
5004
+ *
5005
+ * @private
5006
+ * @param {Object} source The object to copy symbols from.
5007
+ * @param {Object} [object={}] The object to copy symbols to.
5008
+ * @returns {Object} Returns `object`.
5009
+ */function copySymbols$1(source,object){return copyObject$1(source,getSymbols$2(source),object);}var _copySymbols=copySymbols$1;
5010
+
5011
+ function arrayPush$2(array,values){var index=-1,length=values.length,offset=array.length;while(++index<length){array[offset+index]=values[index];}return array;}var _arrayPush=arrayPush$2;
5012
+
5013
+ var overArg=_overArg;/** Built-in value references. */var getPrototype$2=overArg(Object.getPrototypeOf,Object);var _getPrototype=getPrototype$2;
5014
+
5015
+ var arrayPush$1=_arrayPush,getPrototype$1=_getPrototype,getSymbols$1=_getSymbols,stubArray=stubArray_1;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeGetSymbols=Object.getOwnPropertySymbols;/**
5016
+ * Creates an array of the own and inherited enumerable symbols of `object`.
5017
+ *
5018
+ * @private
5019
+ * @param {Object} object The object to query.
5020
+ * @returns {Array} Returns the array of symbols.
5021
+ */var getSymbolsIn$2=!nativeGetSymbols?stubArray:function(object){var result=[];while(object){arrayPush$1(result,getSymbols$1(object));object=getPrototype$1(object);}return result;};var _getSymbolsIn=getSymbolsIn$2;
5022
+
5023
+ var copyObject=_copyObject,getSymbolsIn$1=_getSymbolsIn;/**
5024
+ * Copies own and inherited symbols of `source` to `object`.
5025
+ *
5026
+ * @private
5027
+ * @param {Object} source The object to copy symbols from.
5028
+ * @param {Object} [object={}] The object to copy symbols to.
5029
+ * @returns {Object} Returns `object`.
5030
+ */function copySymbolsIn$1(source,object){return copyObject(source,getSymbolsIn$1(source),object);}var _copySymbolsIn=copySymbolsIn$1;
5031
+
5032
+ var arrayPush=_arrayPush,isArray$1=isArray_1;/**
5033
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
5034
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
5035
+ * symbols of `object`.
5036
+ *
5037
+ * @private
5038
+ * @param {Object} object The object to query.
5039
+ * @param {Function} keysFunc The function to get the keys of `object`.
5040
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
5041
+ * @returns {Array} Returns the array of property names and symbols.
5042
+ */function baseGetAllKeys$2(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray$1(object)?result:arrayPush(result,symbolsFunc(object));}var _baseGetAllKeys=baseGetAllKeys$2;
5043
+
5044
+ var baseGetAllKeys$1=_baseGetAllKeys,getSymbols=_getSymbols,keys$1=keys_1;/**
5045
+ * Creates an array of own enumerable property names and symbols of `object`.
5046
+ *
5047
+ * @private
5048
+ * @param {Object} object The object to query.
5049
+ * @returns {Array} Returns the array of property names and symbols.
5050
+ */function getAllKeys$1(object){return baseGetAllKeys$1(object,keys$1,getSymbols);}var _getAllKeys=getAllKeys$1;
5051
+
5052
+ var baseGetAllKeys=_baseGetAllKeys,getSymbolsIn=_getSymbolsIn,keysIn$1=keysIn_1;/**
5053
+ * Creates an array of own and inherited enumerable property names and
5054
+ * symbols of `object`.
5055
+ *
5056
+ * @private
5057
+ * @param {Object} object The object to query.
5058
+ * @returns {Array} Returns the array of property names and symbols.
5059
+ */function getAllKeysIn$1(object){return baseGetAllKeys(object,keysIn$1,getSymbolsIn);}var _getAllKeysIn=getAllKeysIn$1;
5060
+
5061
+ var getNative$3=_getNative,root$4=_root;/* Built-in method references that are verified to be native. */var DataView$2=getNative$3(root$4,'DataView');var _DataView=DataView$2;
5062
+
5063
+ var getNative$2=_getNative,root$3=_root;/* Built-in method references that are verified to be native. */var Promise$2=getNative$2(root$3,'Promise');var _Promise=Promise$2;
5064
+
5065
+ var getNative$1=_getNative,root$2=_root;/* Built-in method references that are verified to be native. */var Set$2=getNative$1(root$2,'Set');var _Set=Set$2;
5066
+
5067
+ var getNative=_getNative,root$1=_root;/* Built-in method references that are verified to be native. */var WeakMap$1=getNative(root$1,'WeakMap');var _WeakMap=WeakMap$1;
5068
+
5069
+ var DataView$1=_DataView,Map=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource;/** `Object#toString` result references. */var mapTag$3='[object Map]',objectTag$1='[object Object]',promiseTag='[object Promise]',setTag$3='[object Set]',weakMapTag$1='[object WeakMap]';var dataViewTag$2='[object DataView]';/** Used to detect maps, sets, and weakmaps. */var dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap);/**
5070
+ * Gets the `toStringTag` of `value`.
5071
+ *
5072
+ * @private
5073
+ * @param {*} value The value to query.
5074
+ * @returns {string} Returns the `toStringTag`.
5075
+ */var getTag$3=baseGetTag;// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
5076
+ if(DataView$1&&getTag$3(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$2||Map&&getTag$3(new Map())!=mapTag$3||Promise$1&&getTag$3(Promise$1.resolve())!=promiseTag||Set$1&&getTag$3(new Set$1())!=setTag$3||WeakMap&&getTag$3(new WeakMap())!=weakMapTag$1){getTag$3=function getTag(value){var result=baseGetTag(value),Ctor=result==objectTag$1?value.constructor:undefined,ctorString=Ctor?toSource(Ctor):'';if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$3;case promiseCtorString:return promiseTag;case setCtorString:return setTag$3;case weakMapCtorString:return weakMapTag$1;}}return result;};}var _getTag=getTag$3;
5077
+
5078
+ var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/**
5079
+ * Initializes an array clone.
5080
+ *
5081
+ * @private
5082
+ * @param {Array} array The array to clone.
5083
+ * @returns {Array} Returns the initialized clone.
5084
+ */function initCloneArray$1(array){var length=array.length,result=new array.constructor(length);// Add properties assigned by `RegExp#exec`.
5085
+ if(length&&typeof array[0]=='string'&&hasOwnProperty.call(array,'index')){result.index=array.index;result.input=array.input;}return result;}var _initCloneArray=initCloneArray$1;
5086
+
5087
+ var root=_root;/** Built-in value references. */var Uint8Array$2=root.Uint8Array;var _Uint8Array=Uint8Array$2;
5088
+
5089
+ var Uint8Array$1=_Uint8Array;/**
5090
+ * Creates a clone of `arrayBuffer`.
5091
+ *
5092
+ * @private
5093
+ * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
5094
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
5095
+ */function cloneArrayBuffer$3(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));return result;}var _cloneArrayBuffer=cloneArrayBuffer$3;
5096
+
5097
+ var cloneArrayBuffer$2=_cloneArrayBuffer;/**
5098
+ * Creates a clone of `dataView`.
5099
+ *
5100
+ * @private
5101
+ * @param {Object} dataView The data view to clone.
5102
+ * @param {boolean} [isDeep] Specify a deep clone.
5103
+ * @returns {Object} Returns the cloned data view.
5104
+ */function cloneDataView$1(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer$2(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength);}var _cloneDataView=cloneDataView$1;
5105
+
5106
+ var reFlags=/\w*$/;/**
5107
+ * Creates a clone of `regexp`.
5108
+ *
5109
+ * @private
5110
+ * @param {Object} regexp The regexp to clone.
5111
+ * @returns {Object} Returns the cloned regexp.
5112
+ */function cloneRegExp$1(regexp){var result=new regexp.constructor(regexp.source,reFlags.exec(regexp));result.lastIndex=regexp.lastIndex;return result;}var _cloneRegExp=cloneRegExp$1;
5113
+
5114
+ var _Symbol=_Symbol$3;/** Used to convert symbols to primitives and strings. */var symbolProto=_Symbol?_Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined;/**
5115
+ * Creates a clone of the `symbol` object.
5116
+ *
5117
+ * @private
5118
+ * @param {Object} symbol The symbol object to clone.
5119
+ * @returns {Object} Returns the cloned symbol object.
5120
+ */function cloneSymbol$1(symbol){return symbolValueOf?Object(symbolValueOf.call(symbol)):{};}var _cloneSymbol=cloneSymbol$1;
5121
+
5122
+ var cloneArrayBuffer$1=_cloneArrayBuffer;/**
5123
+ * Creates a clone of `typedArray`.
5124
+ *
5125
+ * @private
5126
+ * @param {Object} typedArray The typed array to clone.
5127
+ * @param {boolean} [isDeep] Specify a deep clone.
5128
+ * @returns {Object} Returns the cloned typed array.
5129
+ */function cloneTypedArray$1(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer$1(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length);}var _cloneTypedArray=cloneTypedArray$1;
5130
+
5131
+ var cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=_cloneSymbol,cloneTypedArray=_cloneTypedArray;/** `Object#toString` result references. */var boolTag$1='[object Boolean]',dateTag$1='[object Date]',mapTag$2='[object Map]',numberTag$1='[object Number]',regexpTag$1='[object RegExp]',setTag$2='[object Set]',stringTag$1='[object String]',symbolTag$1='[object Symbol]';var arrayBufferTag$1='[object ArrayBuffer]',dataViewTag$1='[object DataView]',float32Tag$1='[object Float32Array]',float64Tag$1='[object Float64Array]',int8Tag$1='[object Int8Array]',int16Tag$1='[object Int16Array]',int32Tag$1='[object Int32Array]',uint8Tag$1='[object Uint8Array]',uint8ClampedTag$1='[object Uint8ClampedArray]',uint16Tag$1='[object Uint16Array]',uint32Tag$1='[object Uint32Array]';/**
5132
+ * Initializes an object clone based on its `toStringTag`.
5133
+ *
5134
+ * **Note:** This function only supports cloning values with tags of
5135
+ * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
5136
+ *
5137
+ * @private
5138
+ * @param {Object} object The object to clone.
5139
+ * @param {string} tag The `toStringTag` of the object to clone.
5140
+ * @param {boolean} [isDeep] Specify a deep clone.
5141
+ * @returns {Object} Returns the initialized clone.
5142
+ */function initCloneByTag$1(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag$1:return cloneArrayBuffer(object);case boolTag$1:case dateTag$1:return new Ctor(+object);case dataViewTag$1:return cloneDataView(object,isDeep);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(object,isDeep);case mapTag$2:return new Ctor();case numberTag$1:case stringTag$1:return new Ctor(object);case regexpTag$1:return cloneRegExp(object);case setTag$2:return new Ctor();case symbolTag$1:return cloneSymbol(object);}}var _initCloneByTag=initCloneByTag$1;
5143
+
5144
+ var isObject$1=isObject_1;/** Built-in value references. */var objectCreate=Object.create;/**
5145
+ * The base implementation of `_.create` without support for assigning
5146
+ * properties to the created object.
5147
+ *
5148
+ * @private
5149
+ * @param {Object} proto The object to inherit from.
5150
+ * @returns {Object} Returns the new object.
5151
+ */var baseCreate$1=function(){function object(){}return function(proto){if(!isObject$1(proto)){return {};}if(objectCreate){return objectCreate(proto);}object.prototype=proto;var result=new object();object.prototype=undefined;return result;};}();var _baseCreate=baseCreate$1;
5152
+
5153
+ var baseCreate=_baseCreate,getPrototype=_getPrototype,isPrototype=_isPrototype;/**
5154
+ * Initializes an object clone.
5155
+ *
5156
+ * @private
5157
+ * @param {Object} object The object to clone.
5158
+ * @returns {Object} Returns the initialized clone.
5159
+ */function initCloneObject$1(object){return typeof object.constructor=='function'&&!isPrototype(object)?baseCreate(getPrototype(object)):{};}var _initCloneObject=initCloneObject$1;
5160
+
5161
+ var getTag$2=_getTag,isObjectLike$1=isObjectLike_1;/** `Object#toString` result references. */var mapTag$1='[object Map]';/**
5162
+ * The base implementation of `_.isMap` without Node.js optimizations.
5163
+ *
5164
+ * @private
5165
+ * @param {*} value The value to check.
5166
+ * @returns {boolean} Returns `true` if `value` is a map, else `false`.
5167
+ */function baseIsMap$1(value){return isObjectLike$1(value)&&getTag$2(value)==mapTag$1;}var _baseIsMap=baseIsMap$1;
5168
+
5169
+ var baseIsMap=_baseIsMap,baseUnary$1=_baseUnary,nodeUtil$1=_nodeUtilExports;/* Node.js helper references. */var nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap;/**
5170
+ * Checks if `value` is classified as a `Map` object.
5171
+ *
5172
+ * @static
5173
+ * @memberOf _
5174
+ * @since 4.3.0
5175
+ * @category Lang
5176
+ * @param {*} value The value to check.
5177
+ * @returns {boolean} Returns `true` if `value` is a map, else `false`.
5178
+ * @example
5179
+ *
5180
+ * _.isMap(new Map);
5181
+ * // => true
5182
+ *
5183
+ * _.isMap(new WeakMap);
5184
+ * // => false
5185
+ */var isMap$1=nodeIsMap?baseUnary$1(nodeIsMap):baseIsMap;var isMap_1=isMap$1;
5186
+
5187
+ var getTag$1=_getTag,isObjectLike=isObjectLike_1;/** `Object#toString` result references. */var setTag$1='[object Set]';/**
5188
+ * The base implementation of `_.isSet` without Node.js optimizations.
5189
+ *
5190
+ * @private
5191
+ * @param {*} value The value to check.
5192
+ * @returns {boolean} Returns `true` if `value` is a set, else `false`.
5193
+ */function baseIsSet$1(value){return isObjectLike(value)&&getTag$1(value)==setTag$1;}var _baseIsSet=baseIsSet$1;
5194
+
5195
+ var baseIsSet=_baseIsSet,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports;/* Node.js helper references. */var nodeIsSet=nodeUtil&&nodeUtil.isSet;/**
5196
+ * Checks if `value` is classified as a `Set` object.
5197
+ *
5198
+ * @static
5199
+ * @memberOf _
5200
+ * @since 4.3.0
5201
+ * @category Lang
5202
+ * @param {*} value The value to check.
5203
+ * @returns {boolean} Returns `true` if `value` is a set, else `false`.
5204
+ * @example
5205
+ *
5206
+ * _.isSet(new Set);
5207
+ * // => true
5208
+ *
5209
+ * _.isSet(new WeakSet);
5210
+ * // => false
5211
+ */var isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet;var isSet_1=isSet$1;
5212
+
5213
+ var Stack=_Stack,arrayEach=_arrayEach,assignValue=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer=_cloneBufferExports,copyArray=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys=_getAllKeys,getAllKeysIn=_getAllKeysIn,getTag=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject=_initCloneObject,isArray=isArray_1,isBuffer=isBufferExports,isMap=isMap_1,isObject=isObject_1,isSet=isSet_1,keys=keys_1,keysIn=keysIn_1;/** Used to compose bitmasks for cloning. */var CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4;/** `Object#toString` result references. */var argsTag='[object Arguments]',arrayTag='[object Array]',boolTag='[object Boolean]',dateTag='[object Date]',errorTag='[object Error]',funcTag='[object Function]',genTag='[object GeneratorFunction]',mapTag='[object Map]',numberTag='[object Number]',objectTag='[object Object]',regexpTag='[object RegExp]',setTag='[object Set]',stringTag='[object String]',symbolTag='[object Symbol]',weakMapTag='[object WeakMap]';var arrayBufferTag='[object ArrayBuffer]',dataViewTag='[object DataView]',float32Tag='[object Float32Array]',float64Tag='[object Float64Array]',int8Tag='[object Int8Array]',int16Tag='[object Int16Array]',int32Tag='[object Int32Array]',uint8Tag='[object Uint8Array]',uint8ClampedTag='[object Uint8ClampedArray]',uint16Tag='[object Uint16Array]',uint32Tag='[object Uint32Array]';/** Used to identify `toStringTag` values supported by `_.clone`. */var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=true;cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=false;/**
5214
+ * The base implementation of `_.clone` and `_.cloneDeep` which tracks
5215
+ * traversed objects.
5216
+ *
5217
+ * @private
5218
+ * @param {*} value The value to clone.
5219
+ * @param {boolean} bitmask The bitmask flags.
5220
+ * 1 - Deep clone
5221
+ * 2 - Flatten inherited properties
5222
+ * 4 - Clone symbols
5223
+ * @param {Function} [customizer] The function to customize cloning.
5224
+ * @param {string} [key] The key of `value`.
5225
+ * @param {Object} [object] The parent object of `value`.
5226
+ * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
5227
+ * @returns {*} Returns the cloned value.
5228
+ */function baseClone$1(value,bitmask,customizer,key,object,stack){var result,isDeep=bitmask&CLONE_DEEP_FLAG$1,isFlat=bitmask&CLONE_FLAT_FLAG,isFull=bitmask&CLONE_SYMBOLS_FLAG$1;if(customizer){result=object?customizer(value,key,object,stack):customizer(value);}if(result!==undefined){return result;}if(!isObject(value)){return value;}var isArr=isArray(value);if(isArr){result=initCloneArray(value);if(!isDeep){return copyArray(value,result);}}else {var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value)){return cloneBuffer(value,isDeep);}if(tag==objectTag||tag==argsTag||isFunc&&!object){result=isFlat||isFunc?{}:initCloneObject(value);if(!isDeep){return isFlat?copySymbolsIn(value,baseAssignIn(result,value)):copySymbols(value,baseAssign(result,value));}}else {if(!cloneableTags[tag]){return object?value:{};}result=initCloneByTag(value,tag,isDeep);}}// Check for circular references and return its corresponding clone.
5229
+ stack||(stack=new Stack());var stacked=stack.get(value);if(stacked){return stacked;}stack.set(value,result);if(isSet(value)){value.forEach(function(subValue){result.add(baseClone$1(subValue,bitmask,customizer,subValue,value,stack));});}else if(isMap(value)){value.forEach(function(subValue,key){result.set(key,baseClone$1(subValue,bitmask,customizer,key,value,stack));});}var keysFunc=isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys;var props=isArr?undefined:keysFunc(value);arrayEach(props||value,function(subValue,key){if(props){key=subValue;subValue=value[key];}// Recursively populate clone (susceptible to call stack limits).
5230
+ assignValue(result,key,baseClone$1(subValue,bitmask,customizer,key,value,stack));});return result;}var _baseClone=baseClone$1;
5231
+
5232
+ var baseClone=_baseClone;/** Used to compose bitmasks for cloning. */var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;/**
5233
+ * This method is like `_.clone` except that it recursively clones `value`.
5234
+ *
5235
+ * @static
5236
+ * @memberOf _
5237
+ * @since 1.0.0
5238
+ * @category Lang
5239
+ * @param {*} value The value to recursively clone.
5240
+ * @returns {*} Returns the deep cloned value.
5241
+ * @see _.clone
5242
+ * @example
5243
+ *
5244
+ * var objects = [{ 'a': 1 }, { 'b': 2 }];
5245
+ *
5246
+ * var deep = _.cloneDeep(objects);
5247
+ * console.log(deep[0] === objects[0]);
5248
+ * // => false
5249
+ */function cloneDeep(value){return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG);}var cloneDeep_1=cloneDeep;var cloneDeep$1 = /*@__PURE__*/getDefaultExportFromCjs(cloneDeep_1);
5174
5250
 
5175
5251
  /**
5176
5252
  * - Create a request object
@@ -5185,9 +5261,9 @@
5185
5261
  config:config,request:request};if(!(stageOne.status>=200&&stageOne.status!==204)){_context2.next=34;break;}_context2.t1=config.responseType;_context2.next=_context2.t1==='arraybuffer'?14:_context2.t1==='blob'?18:_context2.t1==='json'?22:_context2.t1==='formData'?26:30;break;case 14:_context2.next=16;return stageOne.arrayBuffer();case 16:response.data=_context2.sent;return _context2.abrupt("break",34);case 18:_context2.next=20;return stageOne.blob();case 20:response.data=_context2.sent;return _context2.abrupt("break",34);case 22:_context2.next=24;return stageOne.json();case 24:response.data=_context2.sent;return _context2.abrupt("break",34);case 26:_context2.next=28;return stageOne.formData();case 28:response.data=_context2.sent;return _context2.abrupt("break",34);case 30:_context2.next=32;return stageOne.text();case 32:response.data=_context2.sent;return _context2.abrupt("break",34);case 34:return _context2.abrupt("return",response);case 35:case"end":return _context2.stop();}},_callee2,null,[[0,6]]);}));return _getResponse.apply(this,arguments);}function createRequest(config){var headers=new Headers(config.headers);// HTTP basic authentication
5186
5262
  if(config.auth){var username=config.auth.username||'';var password=config.auth.password?decodeURI(encodeURIComponent(config.auth.password)):'';headers.set('Authorization',"Basic ".concat(btoa(username+':'+password)));}var method=config.method.toUpperCase();var options={headers:headers,method:method};if(method!=='GET'&&method!=='HEAD'){options.body=config.data;// In these cases the browser will automatically set the correct Content-Type,
5187
5263
  // but only if that header hasn't been set yet. So that's why we're deleting it.
5188
- if(utils$9.isFormData(options.body)&&utils$9.isStandardBrowserEnv()){headers.delete('Content-Type');}}if(config.mode){options.mode=config.mode;}if(config.cache){options.cache=config.cache;}if(config.integrity){options.integrity=config.integrity;}if(config.redirect){options.redirect=config.redirect;}if(config.referrer){options.referrer=config.referrer;}// This config is similar to XHR’s withCredentials flag, but with three available values instead of two.
5264
+ if(utils$b.isFormData(options.body)&&utils$b.isStandardBrowserEnv()){headers.delete('Content-Type');}}if(config.mode){options.mode=config.mode;}if(config.cache){options.cache=config.cache;}if(config.integrity){options.integrity=config.integrity;}if(config.redirect){options.redirect=config.redirect;}if(config.referrer){options.referrer=config.referrer;}// This config is similar to XHR’s withCredentials flag, but with three available values instead of two.
5189
5265
  // So if withCredentials is not set, default value 'same-origin' will be used
5190
- if(!utils$9.isUndefined(config.withCredentials)){options.credentials=config.withCredentials?'include':'omit';}var fullPath=buildFullPath$2(config.baseURL,config.url);var url=buildURL$2(fullPath,config.params,config.paramsSerializer);// Expected browser to throw error if there is any wrong configuration value
5266
+ if(!utils$b.isUndefined(config.withCredentials)){options.credentials=config.withCredentials?'include':'omit';}var fullPath=buildFullPath$2(config.baseURL,config.url);var url=buildURL$2(fullPath,config.params,config.paramsSerializer);// Expected browser to throw error if there is any wrong configuration value
5191
5267
  return new Request(url,options);}/**
5192
5268
  * Note:
5193
5269
  *
@@ -5225,7 +5301,7 @@
5225
5301
  fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,// Axios
5226
5302
  config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null};};return error;}
5227
5303
 
5228
- var version='1.1.4';var removeTrailingSlashes=function removeTrailingSlashes(inURL){return inURL&&inURL.endsWith('/')?inURL.replace(/\/+$/,''):inURL;};var isFunction=function isFunction(value){return typeof value==='function'&&Boolean(value.constructor&&value.call&&value.apply);};var setImmediate=browser$1.nextTick.bind(browser$1);var noop=function noop(){};var Analytics=/*#__PURE__*/function(){/**
5304
+ var version='1.1.5';var removeTrailingSlashes=function removeTrailingSlashes(inURL){return inURL&&inURL.endsWith('/')?inURL.replace(/\/+$/,''):inURL;};var isFunction=function isFunction(value){return typeof value==='function'&&Boolean(value.constructor&&value.call&&value.apply);};var setImmediate=browser$1$1.nextTick.bind(browser$1$1);var noop=function noop(){};var Analytics=/*#__PURE__*/function(){/**
5229
5305
  * Initialize a new `Analytics` with your Castled source's `writeKey` and an
5230
5306
  * optional dictionary of `options`.
5231
5307
  *
@@ -5319,7 +5395,7 @@
5319
5395
  * @api private
5320
5396
  */},{key:"enqueue",value:function enqueue(type,message,callback){if(this.queue.length>=this.maxInternalQueueSize){this.logger.error("not adding events for processing as queue size ".concat(this.queue.length," >= than max configuration ").concat(this.maxInternalQueueSize));return;}// Clone the incoming message object
5321
5397
  // before altering the data
5322
- var lMessage=cloneDeep(message);callback=callback||noop;if(!this.enable){return setImmediate(callback);}if(type=='identify'){if(lMessage.traits){if(!lMessage.context){lMessage.context={};}lMessage.context.traits=lMessage.traits;}}lMessage=_objectSpread2({},lMessage);lMessage.type=type;lMessage.context=_objectSpread2({library:{name:'analytics-service-worker',version:version}},lMessage.context);lMessage.channel='service-worker';lMessage._metadata=_objectSpread2({serviceWorkerVersion:version},lMessage._metadata);if(!lMessage.originalTimestamp){lMessage.originalTimestamp=new Date();}if(!lMessage.messageId){lMessage.messageId=v4();}// Historically this library has accepted strings and numbers as IDs.
5398
+ var lMessage=cloneDeep$1(message);callback=callback||noop;if(!this.enable){return setImmediate(callback);}if(type=='identify'){if(lMessage.traits){if(!lMessage.context){lMessage.context={};}lMessage.context.traits=lMessage.traits;}}lMessage=_objectSpread2({},lMessage);lMessage.type=type;lMessage.context=_objectSpread2({library:{name:'analytics-service-worker',version:version}},lMessage.context);lMessage.channel='service-worker';lMessage._metadata=_objectSpread2({serviceWorkerVersion:version},lMessage._metadata);if(!lMessage.originalTimestamp){lMessage.originalTimestamp=new Date();}if(!lMessage.messageId){lMessage.messageId=v4();}// Historically this library has accepted strings and numbers as IDs.
5323
5399
  // However, our spec only allows strings. To avoid breaking compatibility,
5324
5400
  // we'll coerce these to strings if they aren't already.
5325
5401
  if(lMessage.anonymousId&&!isString$1(lMessage.anonymousId)){lMessage.anonymousId=JSON.stringify(lMessage.anonymousId);}if(lMessage.userId&&!isString$1(lMessage.userId)){lMessage.userId=JSON.stringify(lMessage.userId);}this.queue.push({message:lMessage,callback:callback});if(!this.flushed){this.flushed=true;this.flush();return;}if(this.queue.length>=this.flushAt){this.logger.debug('flushAt reached, trying flush...');this.flush();}if(this.flushInterval&&!this.flushTimer){this.logger.debug('no existing flush timer, creating new one');this.flushTimer=setTimeout(this.flush.bind(this),this.flushInterval);}}/**