@dereekb/zoho 12.1.2 → 12.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -9,7 +9,7 @@ var check = function (it) {
9
9
  };
10
10
 
11
11
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
12
- var global$j =
12
+ var global$b =
13
13
  // eslint-disable-next-line es/no-global-this -- safe
14
14
  check(typeof globalThis == 'object' && globalThis) ||
15
15
  check(typeof window == 'object' && window) ||
@@ -22,7 +22,7 @@ var global$j =
22
22
 
23
23
  var objectGetOwnPropertyDescriptor = {};
24
24
 
25
- var fails$h = function (exec) {
25
+ var fails$c = function (exec) {
26
26
  try {
27
27
  return !!exec();
28
28
  } catch (error) {
@@ -30,48 +30,48 @@ var fails$h = function (exec) {
30
30
  }
31
31
  };
32
32
 
33
- var fails$g = fails$h;
33
+ var fails$b = fails$c;
34
34
 
35
35
  // Detect IE8's incomplete defineProperty implementation
36
- var descriptors = !fails$g(function () {
36
+ var descriptors = !fails$b(function () {
37
37
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
38
38
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
39
39
  });
40
40
 
41
- var fails$f = fails$h;
41
+ var fails$a = fails$c;
42
42
 
43
- var functionBindNative = !fails$f(function () {
43
+ var functionBindNative = !fails$a(function () {
44
44
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
45
45
  var test = (function () { /* empty */ }).bind();
46
46
  // eslint-disable-next-line no-prototype-builtins -- safe
47
47
  return typeof test != 'function' || test.hasOwnProperty('prototype');
48
48
  });
49
49
 
50
- var NATIVE_BIND$3 = functionBindNative;
50
+ var NATIVE_BIND$2 = functionBindNative;
51
51
 
52
- var call$i = Function.prototype.call;
52
+ var call$c = Function.prototype.call;
53
53
 
54
- var functionCall = NATIVE_BIND$3 ? call$i.bind(call$i) : function () {
55
- return call$i.apply(call$i, arguments);
54
+ var functionCall = NATIVE_BIND$2 ? call$c.bind(call$c) : function () {
55
+ return call$c.apply(call$c, arguments);
56
56
  };
57
57
 
58
58
  var objectPropertyIsEnumerable = {};
59
59
 
60
60
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
61
61
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
62
- var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
62
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
63
63
 
64
64
  // Nashorn ~ JDK8 bug
65
- var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
65
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
66
66
 
67
67
  // `Object.prototype.propertyIsEnumerable` method implementation
68
68
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
69
69
  objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
70
- var descriptor = getOwnPropertyDescriptor$3(this, V);
70
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
71
71
  return !!descriptor && descriptor.enumerable;
72
72
  } : $propertyIsEnumerable;
73
73
 
74
- var createPropertyDescriptor$4 = function (bitmap, value) {
74
+ var createPropertyDescriptor$3 = function (bitmap, value) {
75
75
  return {
76
76
  enumerable: !(bitmap & 1),
77
77
  configurable: !(bitmap & 2),
@@ -80,66 +80,66 @@ var createPropertyDescriptor$4 = function (bitmap, value) {
80
80
  };
81
81
  };
82
82
 
83
- var NATIVE_BIND$2 = functionBindNative;
83
+ var NATIVE_BIND$1 = functionBindNative;
84
84
 
85
- var FunctionPrototype$2 = Function.prototype;
86
- var call$h = FunctionPrototype$2.call;
87
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$h, call$h);
85
+ var FunctionPrototype$1 = Function.prototype;
86
+ var call$b = FunctionPrototype$1.call;
87
+ var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$b, call$b);
88
88
 
89
- var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
89
+ var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
90
90
  return function () {
91
- return call$h.apply(fn, arguments);
91
+ return call$b.apply(fn, arguments);
92
92
  };
93
93
  };
94
94
 
95
- var uncurryThis$f = functionUncurryThis;
95
+ var uncurryThis$a = functionUncurryThis;
96
96
 
97
- var toString$3 = uncurryThis$f({}.toString);
98
- var stringSlice$1 = uncurryThis$f(''.slice);
97
+ var toString$1 = uncurryThis$a({}.toString);
98
+ var stringSlice$1 = uncurryThis$a(''.slice);
99
99
 
100
100
  var classofRaw$2 = function (it) {
101
- return stringSlice$1(toString$3(it), 8, -1);
101
+ return stringSlice$1(toString$1(it), 8, -1);
102
102
  };
103
103
 
104
- var uncurryThis$e = functionUncurryThis;
105
- var fails$e = fails$h;
106
- var classof$6 = classofRaw$2;
104
+ var uncurryThis$9 = functionUncurryThis;
105
+ var fails$9 = fails$c;
106
+ var classof$3 = classofRaw$2;
107
107
 
108
108
  var $Object$4 = Object;
109
- var split = uncurryThis$e(''.split);
109
+ var split = uncurryThis$9(''.split);
110
110
 
111
111
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
112
- var indexedObject = fails$e(function () {
112
+ var indexedObject = fails$9(function () {
113
113
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
114
114
  // eslint-disable-next-line no-prototype-builtins -- safe
115
115
  return !$Object$4('z').propertyIsEnumerable(0);
116
116
  }) ? function (it) {
117
- return classof$6(it) === 'String' ? split(it, '') : $Object$4(it);
117
+ return classof$3(it) === 'String' ? split(it, '') : $Object$4(it);
118
118
  } : $Object$4;
119
119
 
120
120
  // we can't use just `it == null` since of `document.all` special case
121
121
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
122
- var isNullOrUndefined$4 = function (it) {
122
+ var isNullOrUndefined$3 = function (it) {
123
123
  return it === null || it === undefined;
124
124
  };
125
125
 
126
- var isNullOrUndefined$3 = isNullOrUndefined$4;
126
+ var isNullOrUndefined$2 = isNullOrUndefined$3;
127
127
 
128
- var $TypeError$f = TypeError;
128
+ var $TypeError$b = TypeError;
129
129
 
130
130
  // `RequireObjectCoercible` abstract operation
131
131
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
132
- var requireObjectCoercible$3 = function (it) {
133
- if (isNullOrUndefined$3(it)) throw new $TypeError$f("Can't call method on " + it);
132
+ var requireObjectCoercible$2 = function (it) {
133
+ if (isNullOrUndefined$2(it)) throw new $TypeError$b("Can't call method on " + it);
134
134
  return it;
135
135
  };
136
136
 
137
137
  // toObject with fallback for non-array-like ES3 strings
138
- var IndexedObject$1 = indexedObject;
139
- var requireObjectCoercible$2 = requireObjectCoercible$3;
138
+ var IndexedObject = indexedObject;
139
+ var requireObjectCoercible$1 = requireObjectCoercible$2;
140
140
 
141
141
  var toIndexedObject$4 = function (it) {
142
- return IndexedObject$1(requireObjectCoercible$2(it));
142
+ return IndexedObject(requireObjectCoercible$1(it));
143
143
  };
144
144
 
145
145
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
@@ -148,41 +148,41 @@ var documentAll = typeof document == 'object' && document.all;
148
148
  // `IsCallable` abstract operation
149
149
  // https://tc39.es/ecma262/#sec-iscallable
150
150
  // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
151
- var isCallable$k = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
151
+ var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
152
152
  return typeof argument == 'function' || argument === documentAll;
153
153
  } : function (argument) {
154
154
  return typeof argument == 'function';
155
155
  };
156
156
 
157
- var isCallable$j = isCallable$k;
157
+ var isCallable$d = isCallable$e;
158
158
 
159
- var isObject$d = function (it) {
160
- return typeof it == 'object' ? it !== null : isCallable$j(it);
159
+ var isObject$6 = function (it) {
160
+ return typeof it == 'object' ? it !== null : isCallable$d(it);
161
161
  };
162
162
 
163
- var global$i = global$j;
164
- var isCallable$i = isCallable$k;
163
+ var global$a = global$b;
164
+ var isCallable$c = isCallable$e;
165
165
 
166
166
  var aFunction = function (argument) {
167
- return isCallable$i(argument) ? argument : undefined;
167
+ return isCallable$c(argument) ? argument : undefined;
168
168
  };
169
169
 
170
- var getBuiltIn$8 = function (namespace, method) {
171
- return arguments.length < 2 ? aFunction(global$i[namespace]) : global$i[namespace] && global$i[namespace][method];
170
+ var getBuiltIn$3 = function (namespace, method) {
171
+ return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
172
172
  };
173
173
 
174
- var uncurryThis$d = functionUncurryThis;
174
+ var uncurryThis$8 = functionUncurryThis;
175
175
 
176
- var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
176
+ var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
177
177
 
178
178
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
179
179
 
180
- var global$h = global$j;
181
- var userAgent$3 = engineUserAgent;
180
+ var global$9 = global$b;
181
+ var userAgent = engineUserAgent;
182
182
 
183
- var process$3 = global$h.process;
184
- var Deno$1 = global$h.Deno;
185
- var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
183
+ var process = global$9.process;
184
+ var Deno = global$9.Deno;
185
+ var versions = process && process.versions || Deno && Deno.version;
186
186
  var v8 = versions && versions.v8;
187
187
  var match, version;
188
188
 
@@ -195,10 +195,10 @@ if (v8) {
195
195
 
196
196
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
197
197
  // so check `userAgent` even if `.v8` exists, but 0
198
- if (!version && userAgent$3) {
199
- match = userAgent$3.match(/Edge\/(\d+)/);
198
+ if (!version && userAgent) {
199
+ match = userAgent.match(/Edge\/(\d+)/);
200
200
  if (!match || match[1] >= 74) {
201
- match = userAgent$3.match(/Chrome\/(\d+)/);
201
+ match = userAgent.match(/Chrome\/(\d+)/);
202
202
  if (match) version = +match[1];
203
203
  }
204
204
  }
@@ -206,22 +206,22 @@ if (!version && userAgent$3) {
206
206
  var engineV8Version = version;
207
207
 
208
208
  /* eslint-disable es/no-symbol -- required for testing */
209
- var V8_VERSION$1 = engineV8Version;
210
- var fails$d = fails$h;
211
- var global$g = global$j;
209
+ var V8_VERSION = engineV8Version;
210
+ var fails$8 = fails$c;
211
+ var global$8 = global$b;
212
212
 
213
- var $String$5 = global$g.String;
213
+ var $String$3 = global$8.String;
214
214
 
215
215
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
216
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$d(function () {
216
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
217
217
  var symbol = Symbol('symbol detection');
218
218
  // Chrome 38 Symbol has incorrect toString conversion
219
219
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
220
220
  // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
221
221
  // of course, fail.
222
- return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
222
+ return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
223
223
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
224
- !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
224
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
225
225
  });
226
226
 
227
227
  /* eslint-disable es/no-symbol -- required for testing */
@@ -231,9 +231,9 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
231
231
  && !Symbol.sham
232
232
  && typeof Symbol.iterator == 'symbol';
233
233
 
234
- var getBuiltIn$7 = getBuiltIn$8;
235
- var isCallable$h = isCallable$k;
236
- var isPrototypeOf$4 = objectIsPrototypeOf;
234
+ var getBuiltIn$2 = getBuiltIn$3;
235
+ var isCallable$b = isCallable$e;
236
+ var isPrototypeOf$2 = objectIsPrototypeOf;
237
237
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
238
238
 
239
239
  var $Object$3 = Object;
@@ -241,75 +241,75 @@ var $Object$3 = Object;
241
241
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
242
242
  return typeof it == 'symbol';
243
243
  } : function (it) {
244
- var $Symbol = getBuiltIn$7('Symbol');
245
- return isCallable$h($Symbol) && isPrototypeOf$4($Symbol.prototype, $Object$3(it));
244
+ var $Symbol = getBuiltIn$2('Symbol');
245
+ return isCallable$b($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
246
246
  };
247
247
 
248
- var $String$4 = String;
248
+ var $String$2 = String;
249
249
 
250
- var tryToString$4 = function (argument) {
250
+ var tryToString$3 = function (argument) {
251
251
  try {
252
- return $String$4(argument);
252
+ return $String$2(argument);
253
253
  } catch (error) {
254
254
  return 'Object';
255
255
  }
256
256
  };
257
257
 
258
- var isCallable$g = isCallable$k;
259
- var tryToString$3 = tryToString$4;
258
+ var isCallable$a = isCallable$e;
259
+ var tryToString$2 = tryToString$3;
260
260
 
261
- var $TypeError$e = TypeError;
261
+ var $TypeError$a = TypeError;
262
262
 
263
263
  // `Assert: IsCallable(argument) is true`
264
- var aCallable$d = function (argument) {
265
- if (isCallable$g(argument)) return argument;
266
- throw new $TypeError$e(tryToString$3(argument) + ' is not a function');
264
+ var aCallable$7 = function (argument) {
265
+ if (isCallable$a(argument)) return argument;
266
+ throw new $TypeError$a(tryToString$2(argument) + ' is not a function');
267
267
  };
268
268
 
269
- var aCallable$c = aCallable$d;
270
- var isNullOrUndefined$2 = isNullOrUndefined$4;
269
+ var aCallable$6 = aCallable$7;
270
+ var isNullOrUndefined$1 = isNullOrUndefined$3;
271
271
 
272
272
  // `GetMethod` abstract operation
273
273
  // https://tc39.es/ecma262/#sec-getmethod
274
274
  var getMethod$4 = function (V, P) {
275
275
  var func = V[P];
276
- return isNullOrUndefined$2(func) ? undefined : aCallable$c(func);
276
+ return isNullOrUndefined$1(func) ? undefined : aCallable$6(func);
277
277
  };
278
278
 
279
- var call$g = functionCall;
280
- var isCallable$f = isCallable$k;
281
- var isObject$c = isObject$d;
279
+ var call$a = functionCall;
280
+ var isCallable$9 = isCallable$e;
281
+ var isObject$5 = isObject$6;
282
282
 
283
- var $TypeError$d = TypeError;
283
+ var $TypeError$9 = TypeError;
284
284
 
285
285
  // `OrdinaryToPrimitive` abstract operation
286
286
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
287
287
  var ordinaryToPrimitive$1 = function (input, pref) {
288
288
  var fn, val;
289
- if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$c(val = call$g(fn, input))) return val;
290
- if (isCallable$f(fn = input.valueOf) && !isObject$c(val = call$g(fn, input))) return val;
291
- if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$c(val = call$g(fn, input))) return val;
292
- throw new $TypeError$d("Can't convert object to primitive value");
289
+ if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
290
+ if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$a(fn, input))) return val;
291
+ if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
292
+ throw new $TypeError$9("Can't convert object to primitive value");
293
293
  };
294
294
 
295
295
  var sharedStore = {exports: {}};
296
296
 
297
297
  var isPure = false;
298
298
 
299
- var global$f = global$j;
299
+ var global$7 = global$b;
300
300
 
301
301
  // eslint-disable-next-line es/no-object-defineproperty -- safe
302
- var defineProperty$6 = Object.defineProperty;
302
+ var defineProperty$2 = Object.defineProperty;
303
303
 
304
304
  var defineGlobalProperty$3 = function (key, value) {
305
305
  try {
306
- defineProperty$6(global$f, key, { value: value, configurable: true, writable: true });
306
+ defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });
307
307
  } catch (error) {
308
- global$f[key] = value;
308
+ global$7[key] = value;
309
309
  } return value;
310
310
  };
311
311
 
312
- var globalThis$1 = global$j;
312
+ var globalThis$1 = global$b;
313
313
  var defineGlobalProperty$2 = defineGlobalProperty$3;
314
314
 
315
315
  var SHARED = '__core-js_shared__';
@@ -331,78 +331,78 @@ var shared$3 = function (key, value) {
331
331
  return store$2[key] || (store$2[key] = value || {});
332
332
  };
333
333
 
334
- var requireObjectCoercible$1 = requireObjectCoercible$3;
334
+ var requireObjectCoercible = requireObjectCoercible$2;
335
335
 
336
336
  var $Object$2 = Object;
337
337
 
338
338
  // `ToObject` abstract operation
339
339
  // https://tc39.es/ecma262/#sec-toobject
340
- var toObject$5 = function (argument) {
341
- return $Object$2(requireObjectCoercible$1(argument));
340
+ var toObject$3 = function (argument) {
341
+ return $Object$2(requireObjectCoercible(argument));
342
342
  };
343
343
 
344
- var uncurryThis$c = functionUncurryThis;
345
- var toObject$4 = toObject$5;
344
+ var uncurryThis$7 = functionUncurryThis;
345
+ var toObject$2 = toObject$3;
346
346
 
347
- var hasOwnProperty = uncurryThis$c({}.hasOwnProperty);
347
+ var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
348
348
 
349
349
  // `HasOwnProperty` abstract operation
350
350
  // https://tc39.es/ecma262/#sec-hasownproperty
351
351
  // eslint-disable-next-line es/no-object-hasown -- safe
352
352
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
353
- return hasOwnProperty(toObject$4(it), key);
353
+ return hasOwnProperty(toObject$2(it), key);
354
354
  };
355
355
 
356
- var uncurryThis$b = functionUncurryThis;
356
+ var uncurryThis$6 = functionUncurryThis;
357
357
 
358
358
  var id = 0;
359
359
  var postfix = Math.random();
360
- var toString$2 = uncurryThis$b(1.0.toString);
360
+ var toString = uncurryThis$6(1.0.toString);
361
361
 
362
362
  var uid$2 = function (key) {
363
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
363
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
364
364
  };
365
365
 
366
- var global$e = global$j;
366
+ var global$6 = global$b;
367
367
  var shared$2 = shared$3;
368
- var hasOwn$c = hasOwnProperty_1;
368
+ var hasOwn$8 = hasOwnProperty_1;
369
369
  var uid$1 = uid$2;
370
370
  var NATIVE_SYMBOL = symbolConstructorDetection;
371
371
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
372
372
 
373
- var Symbol$1 = global$e.Symbol;
373
+ var Symbol$1 = global$6.Symbol;
374
374
  var WellKnownSymbolsStore = shared$2('wks');
375
375
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
376
376
 
377
- var wellKnownSymbol$f = function (name) {
378
- if (!hasOwn$c(WellKnownSymbolsStore, name)) {
379
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$c(Symbol$1, name)
377
+ var wellKnownSymbol$8 = function (name) {
378
+ if (!hasOwn$8(WellKnownSymbolsStore, name)) {
379
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
380
380
  ? Symbol$1[name]
381
381
  : createWellKnownSymbol('Symbol.' + name);
382
382
  } return WellKnownSymbolsStore[name];
383
383
  };
384
384
 
385
- var call$f = functionCall;
386
- var isObject$b = isObject$d;
385
+ var call$9 = functionCall;
386
+ var isObject$4 = isObject$6;
387
387
  var isSymbol$1 = isSymbol$2;
388
388
  var getMethod$3 = getMethod$4;
389
389
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
390
- var wellKnownSymbol$e = wellKnownSymbol$f;
390
+ var wellKnownSymbol$7 = wellKnownSymbol$8;
391
391
 
392
- var $TypeError$c = TypeError;
393
- var TO_PRIMITIVE = wellKnownSymbol$e('toPrimitive');
392
+ var $TypeError$8 = TypeError;
393
+ var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
394
394
 
395
395
  // `ToPrimitive` abstract operation
396
396
  // https://tc39.es/ecma262/#sec-toprimitive
397
397
  var toPrimitive$1 = function (input, pref) {
398
- if (!isObject$b(input) || isSymbol$1(input)) return input;
398
+ if (!isObject$4(input) || isSymbol$1(input)) return input;
399
399
  var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
400
400
  var result;
401
401
  if (exoticToPrim) {
402
402
  if (pref === undefined) pref = 'default';
403
- result = call$f(exoticToPrim, input, pref);
404
- if (!isObject$b(result) || isSymbol$1(result)) return result;
405
- throw new $TypeError$c("Can't convert object to primitive value");
403
+ result = call$9(exoticToPrim, input, pref);
404
+ if (!isObject$4(result) || isSymbol$1(result)) return result;
405
+ throw new $TypeError$8("Can't convert object to primitive value");
406
406
  }
407
407
  if (pref === undefined) pref = 'number';
408
408
  return ordinaryToPrimitive(input, pref);
@@ -418,36 +418,36 @@ var toPropertyKey$2 = function (argument) {
418
418
  return isSymbol(key) ? key : key + '';
419
419
  };
420
420
 
421
- var global$d = global$j;
422
- var isObject$a = isObject$d;
421
+ var global$5 = global$b;
422
+ var isObject$3 = isObject$6;
423
423
 
424
- var document$3 = global$d.document;
424
+ var document$1 = global$5.document;
425
425
  // typeof document.createElement is 'object' in old IE
426
- var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
426
+ var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
427
427
 
428
428
  var documentCreateElement$1 = function (it) {
429
- return EXISTS$1 ? document$3.createElement(it) : {};
429
+ return EXISTS$1 ? document$1.createElement(it) : {};
430
430
  };
431
431
 
432
- var DESCRIPTORS$e = descriptors;
433
- var fails$c = fails$h;
434
- var createElement$1 = documentCreateElement$1;
432
+ var DESCRIPTORS$a = descriptors;
433
+ var fails$7 = fails$c;
434
+ var createElement = documentCreateElement$1;
435
435
 
436
436
  // Thanks to IE8 for its funny defineProperty
437
- var ie8DomDefine = !DESCRIPTORS$e && !fails$c(function () {
437
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$7(function () {
438
438
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
439
- return Object.defineProperty(createElement$1('div'), 'a', {
439
+ return Object.defineProperty(createElement('div'), 'a', {
440
440
  get: function () { return 7; }
441
441
  }).a !== 7;
442
442
  });
443
443
 
444
- var DESCRIPTORS$d = descriptors;
445
- var call$e = functionCall;
446
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
447
- var createPropertyDescriptor$3 = createPropertyDescriptor$4;
444
+ var DESCRIPTORS$9 = descriptors;
445
+ var call$8 = functionCall;
446
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
447
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
448
448
  var toIndexedObject$3 = toIndexedObject$4;
449
449
  var toPropertyKey$1 = toPropertyKey$2;
450
- var hasOwn$b = hasOwnProperty_1;
450
+ var hasOwn$7 = hasOwnProperty_1;
451
451
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
452
452
 
453
453
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -455,23 +455,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
455
455
 
456
456
  // `Object.getOwnPropertyDescriptor` method
457
457
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
458
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$d ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
458
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
459
459
  O = toIndexedObject$3(O);
460
460
  P = toPropertyKey$1(P);
461
461
  if (IE8_DOM_DEFINE$1) try {
462
462
  return $getOwnPropertyDescriptor$1(O, P);
463
463
  } catch (error) { /* empty */ }
464
- if (hasOwn$b(O, P)) return createPropertyDescriptor$3(!call$e(propertyIsEnumerableModule$1.f, O, P), O[P]);
464
+ if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$8(propertyIsEnumerableModule.f, O, P), O[P]);
465
465
  };
466
466
 
467
467
  var objectDefineProperty = {};
468
468
 
469
- var DESCRIPTORS$c = descriptors;
470
- var fails$b = fails$h;
469
+ var DESCRIPTORS$8 = descriptors;
470
+ var fails$6 = fails$c;
471
471
 
472
472
  // V8 ~ Chrome 36-
473
473
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
474
- var v8PrototypeDefineBug = DESCRIPTORS$c && fails$b(function () {
474
+ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$6(function () {
475
475
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
476
476
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
477
477
  value: 42,
@@ -479,24 +479,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$c && fails$b(function () {
479
479
  }).prototype !== 42;
480
480
  });
481
481
 
482
- var isObject$9 = isObject$d;
482
+ var isObject$2 = isObject$6;
483
483
 
484
- var $String$3 = String;
485
- var $TypeError$b = TypeError;
484
+ var $String$1 = String;
485
+ var $TypeError$7 = TypeError;
486
486
 
487
487
  // `Assert: Type(argument) is Object`
488
- var anObject$i = function (argument) {
489
- if (isObject$9(argument)) return argument;
490
- throw new $TypeError$b($String$3(argument) + ' is not an object');
488
+ var anObject$e = function (argument) {
489
+ if (isObject$2(argument)) return argument;
490
+ throw new $TypeError$7($String$1(argument) + ' is not an object');
491
491
  };
492
492
 
493
- var DESCRIPTORS$b = descriptors;
493
+ var DESCRIPTORS$7 = descriptors;
494
494
  var IE8_DOM_DEFINE = ie8DomDefine;
495
495
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
496
- var anObject$h = anObject$i;
496
+ var anObject$d = anObject$e;
497
497
  var toPropertyKey = toPropertyKey$2;
498
498
 
499
- var $TypeError$a = TypeError;
499
+ var $TypeError$6 = TypeError;
500
500
  // eslint-disable-next-line es/no-object-defineproperty -- safe
501
501
  var $defineProperty = Object.defineProperty;
502
502
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -507,10 +507,10 @@ var WRITABLE = 'writable';
507
507
 
508
508
  // `Object.defineProperty` method
509
509
  // https://tc39.es/ecma262/#sec-object.defineproperty
510
- objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
511
- anObject$h(O);
510
+ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
511
+ anObject$d(O);
512
512
  P = toPropertyKey(P);
513
- anObject$h(Attributes);
513
+ anObject$d(Attributes);
514
514
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
515
515
  var current = $getOwnPropertyDescriptor(O, P);
516
516
  if (current && current[WRITABLE]) {
@@ -523,23 +523,23 @@ objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
523
523
  }
524
524
  } return $defineProperty(O, P, Attributes);
525
525
  } : $defineProperty : function defineProperty(O, P, Attributes) {
526
- anObject$h(O);
526
+ anObject$d(O);
527
527
  P = toPropertyKey(P);
528
- anObject$h(Attributes);
528
+ anObject$d(Attributes);
529
529
  if (IE8_DOM_DEFINE) try {
530
530
  return $defineProperty(O, P, Attributes);
531
531
  } catch (error) { /* empty */ }
532
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$a('Accessors not supported');
532
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$6('Accessors not supported');
533
533
  if ('value' in Attributes) O[P] = Attributes.value;
534
534
  return O;
535
535
  };
536
536
 
537
- var DESCRIPTORS$a = descriptors;
537
+ var DESCRIPTORS$6 = descriptors;
538
538
  var definePropertyModule$4 = objectDefineProperty;
539
- var createPropertyDescriptor$2 = createPropertyDescriptor$4;
539
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
540
540
 
541
- var createNonEnumerableProperty$6 = DESCRIPTORS$a ? function (object, key, value) {
542
- return definePropertyModule$4.f(object, key, createPropertyDescriptor$2(1, value));
541
+ var createNonEnumerableProperty$3 = DESCRIPTORS$6 ? function (object, key, value) {
542
+ return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
543
543
  } : function (object, key, value) {
544
544
  object[key] = value;
545
545
  return object;
@@ -547,17 +547,17 @@ var createNonEnumerableProperty$6 = DESCRIPTORS$a ? function (object, key, value
547
547
 
548
548
  var makeBuiltIn$3 = {exports: {}};
549
549
 
550
- var DESCRIPTORS$9 = descriptors;
551
- var hasOwn$a = hasOwnProperty_1;
550
+ var DESCRIPTORS$5 = descriptors;
551
+ var hasOwn$6 = hasOwnProperty_1;
552
552
 
553
- var FunctionPrototype$1 = Function.prototype;
553
+ var FunctionPrototype = Function.prototype;
554
554
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
555
- var getDescriptor = DESCRIPTORS$9 && Object.getOwnPropertyDescriptor;
555
+ var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
556
556
 
557
- var EXISTS = hasOwn$a(FunctionPrototype$1, 'name');
557
+ var EXISTS = hasOwn$6(FunctionPrototype, 'name');
558
558
  // additional protection from minified / mangled / dropped function names
559
559
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
560
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$9 || (DESCRIPTORS$9 && getDescriptor(FunctionPrototype$1, 'name').configurable));
560
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype, 'name').configurable));
561
561
 
562
562
  var functionName = {
563
563
  EXISTS: EXISTS,
@@ -565,27 +565,27 @@ var functionName = {
565
565
  CONFIGURABLE: CONFIGURABLE
566
566
  };
567
567
 
568
- var uncurryThis$a = functionUncurryThis;
569
- var isCallable$e = isCallable$k;
568
+ var uncurryThis$5 = functionUncurryThis;
569
+ var isCallable$8 = isCallable$e;
570
570
  var store$1 = sharedStoreExports;
571
571
 
572
- var functionToString = uncurryThis$a(Function.toString);
572
+ var functionToString = uncurryThis$5(Function.toString);
573
573
 
574
574
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
575
- if (!isCallable$e(store$1.inspectSource)) {
575
+ if (!isCallable$8(store$1.inspectSource)) {
576
576
  store$1.inspectSource = function (it) {
577
577
  return functionToString(it);
578
578
  };
579
579
  }
580
580
 
581
- var inspectSource$3 = store$1.inspectSource;
581
+ var inspectSource$1 = store$1.inspectSource;
582
582
 
583
- var global$c = global$j;
584
- var isCallable$d = isCallable$k;
583
+ var global$4 = global$b;
584
+ var isCallable$7 = isCallable$e;
585
585
 
586
- var WeakMap$1 = global$c.WeakMap;
586
+ var WeakMap$1 = global$4.WeakMap;
587
587
 
588
- var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
588
+ var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
589
589
 
590
590
  var shared$1 = shared$3;
591
591
  var uid = uid$2;
@@ -599,28 +599,28 @@ var sharedKey$3 = function (key) {
599
599
  var hiddenKeys$4 = {};
600
600
 
601
601
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
602
- var global$b = global$j;
603
- var isObject$8 = isObject$d;
604
- var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
605
- var hasOwn$9 = hasOwnProperty_1;
602
+ var global$3 = global$b;
603
+ var isObject$1 = isObject$6;
604
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
605
+ var hasOwn$5 = hasOwnProperty_1;
606
606
  var shared = sharedStoreExports;
607
607
  var sharedKey$2 = sharedKey$3;
608
608
  var hiddenKeys$3 = hiddenKeys$4;
609
609
 
610
610
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
611
- var TypeError$2 = global$b.TypeError;
612
- var WeakMap = global$b.WeakMap;
613
- var set$1, get, has;
611
+ var TypeError$1 = global$3.TypeError;
612
+ var WeakMap = global$3.WeakMap;
613
+ var set, get, has;
614
614
 
615
615
  var enforce = function (it) {
616
- return has(it) ? get(it) : set$1(it, {});
616
+ return has(it) ? get(it) : set(it, {});
617
617
  };
618
618
 
619
619
  var getterFor = function (TYPE) {
620
620
  return function (it) {
621
621
  var state;
622
- if (!isObject$8(it) || (state = get(it)).type !== TYPE) {
623
- throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
622
+ if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
623
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
624
624
  } return state;
625
625
  };
626
626
  };
@@ -632,8 +632,8 @@ if (NATIVE_WEAK_MAP || shared.state) {
632
632
  store.has = store.has;
633
633
  store.set = store.set;
634
634
  /* eslint-enable no-self-assign -- prototype methods protection */
635
- set$1 = function (it, metadata) {
636
- if (store.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
635
+ set = function (it, metadata) {
636
+ if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
637
637
  metadata.facade = it;
638
638
  store.set(it, metadata);
639
639
  return metadata;
@@ -647,73 +647,73 @@ if (NATIVE_WEAK_MAP || shared.state) {
647
647
  } else {
648
648
  var STATE = sharedKey$2('state');
649
649
  hiddenKeys$3[STATE] = true;
650
- set$1 = function (it, metadata) {
651
- if (hasOwn$9(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
650
+ set = function (it, metadata) {
651
+ if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
652
652
  metadata.facade = it;
653
- createNonEnumerableProperty$5(it, STATE, metadata);
653
+ createNonEnumerableProperty$2(it, STATE, metadata);
654
654
  return metadata;
655
655
  };
656
656
  get = function (it) {
657
- return hasOwn$9(it, STATE) ? it[STATE] : {};
657
+ return hasOwn$5(it, STATE) ? it[STATE] : {};
658
658
  };
659
659
  has = function (it) {
660
- return hasOwn$9(it, STATE);
660
+ return hasOwn$5(it, STATE);
661
661
  };
662
662
  }
663
663
 
664
664
  var internalState = {
665
- set: set$1,
665
+ set: set,
666
666
  get: get,
667
667
  has: has,
668
668
  enforce: enforce,
669
669
  getterFor: getterFor
670
670
  };
671
671
 
672
- var uncurryThis$9 = functionUncurryThis;
673
- var fails$a = fails$h;
674
- var isCallable$c = isCallable$k;
675
- var hasOwn$8 = hasOwnProperty_1;
676
- var DESCRIPTORS$8 = descriptors;
672
+ var uncurryThis$4 = functionUncurryThis;
673
+ var fails$5 = fails$c;
674
+ var isCallable$6 = isCallable$e;
675
+ var hasOwn$4 = hasOwnProperty_1;
676
+ var DESCRIPTORS$4 = descriptors;
677
677
  var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
678
- var inspectSource$2 = inspectSource$3;
679
- var InternalStateModule$2 = internalState;
678
+ var inspectSource = inspectSource$1;
679
+ var InternalStateModule$1 = internalState;
680
680
 
681
- var enforceInternalState = InternalStateModule$2.enforce;
682
- var getInternalState = InternalStateModule$2.get;
683
- var $String$2 = String;
681
+ var enforceInternalState = InternalStateModule$1.enforce;
682
+ var getInternalState = InternalStateModule$1.get;
683
+ var $String = String;
684
684
  // eslint-disable-next-line es/no-object-defineproperty -- safe
685
- var defineProperty$5 = Object.defineProperty;
686
- var stringSlice = uncurryThis$9(''.slice);
687
- var replace$1 = uncurryThis$9(''.replace);
688
- var join = uncurryThis$9([].join);
685
+ var defineProperty$1 = Object.defineProperty;
686
+ var stringSlice = uncurryThis$4(''.slice);
687
+ var replace = uncurryThis$4(''.replace);
688
+ var join = uncurryThis$4([].join);
689
689
 
690
- var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$a(function () {
691
- return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
690
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$5(function () {
691
+ return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
692
692
  });
693
693
 
694
694
  var TEMPLATE = String(String).split('String');
695
695
 
696
696
  var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
697
- if (stringSlice($String$2(name), 0, 7) === 'Symbol(') {
698
- name = '[' + replace$1($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
697
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
698
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
699
699
  }
700
700
  if (options && options.getter) name = 'get ' + name;
701
701
  if (options && options.setter) name = 'set ' + name;
702
- if (!hasOwn$8(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
703
- if (DESCRIPTORS$8) defineProperty$5(value, 'name', { value: name, configurable: true });
702
+ if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
703
+ if (DESCRIPTORS$4) defineProperty$1(value, 'name', { value: name, configurable: true });
704
704
  else value.name = name;
705
705
  }
706
- if (CONFIGURABLE_LENGTH && options && hasOwn$8(options, 'arity') && value.length !== options.arity) {
707
- defineProperty$5(value, 'length', { value: options.arity });
706
+ if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
707
+ defineProperty$1(value, 'length', { value: options.arity });
708
708
  }
709
709
  try {
710
- if (options && hasOwn$8(options, 'constructor') && options.constructor) {
711
- if (DESCRIPTORS$8) defineProperty$5(value, 'prototype', { writable: false });
710
+ if (options && hasOwn$4(options, 'constructor') && options.constructor) {
711
+ if (DESCRIPTORS$4) defineProperty$1(value, 'prototype', { writable: false });
712
712
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
713
713
  } else if (value.prototype) value.prototype = undefined;
714
714
  } catch (error) { /* empty */ }
715
715
  var state = enforceInternalState(value);
716
- if (!hasOwn$8(state, 'source')) {
716
+ if (!hasOwn$4(state, 'source')) {
717
717
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
718
718
  } return value;
719
719
  };
@@ -721,21 +721,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
721
721
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
722
722
  // eslint-disable-next-line no-extend-native -- required
723
723
  Function.prototype.toString = makeBuiltIn$2(function toString() {
724
- return isCallable$c(this) && getInternalState(this).source || inspectSource$2(this);
724
+ return isCallable$6(this) && getInternalState(this).source || inspectSource(this);
725
725
  }, 'toString');
726
726
 
727
727
  var makeBuiltInExports = makeBuiltIn$3.exports;
728
728
 
729
- var isCallable$b = isCallable$k;
729
+ var isCallable$5 = isCallable$e;
730
730
  var definePropertyModule$3 = objectDefineProperty;
731
731
  var makeBuiltIn$1 = makeBuiltInExports;
732
732
  var defineGlobalProperty$1 = defineGlobalProperty$3;
733
733
 
734
- var defineBuiltIn$6 = function (O, key, value, options) {
734
+ var defineBuiltIn$3 = function (O, key, value, options) {
735
735
  if (!options) options = {};
736
736
  var simple = options.enumerable;
737
737
  var name = options.name !== undefined ? options.name : key;
738
- if (isCallable$b(value)) makeBuiltIn$1(value, name, options);
738
+ if (isCallable$5(value)) makeBuiltIn$1(value, name, options);
739
739
  if (options.global) {
740
740
  if (simple) O[key] = value;
741
741
  else defineGlobalProperty$1(key, value);
@@ -805,19 +805,19 @@ var toLength = toLength$1;
805
805
 
806
806
  // `LengthOfArrayLike` abstract operation
807
807
  // https://tc39.es/ecma262/#sec-lengthofarraylike
808
- var lengthOfArrayLike$5 = function (obj) {
808
+ var lengthOfArrayLike$3 = function (obj) {
809
809
  return toLength(obj.length);
810
810
  };
811
811
 
812
812
  var toIndexedObject$2 = toIndexedObject$4;
813
813
  var toAbsoluteIndex = toAbsoluteIndex$1;
814
- var lengthOfArrayLike$4 = lengthOfArrayLike$5;
814
+ var lengthOfArrayLike$2 = lengthOfArrayLike$3;
815
815
 
816
816
  // `Array.prototype.{ indexOf, includes }` methods implementation
817
817
  var createMethod = function (IS_INCLUDES) {
818
818
  return function ($this, el, fromIndex) {
819
819
  var O = toIndexedObject$2($this);
820
- var length = lengthOfArrayLike$4(O);
820
+ var length = lengthOfArrayLike$2(O);
821
821
  if (length === 0) return !IS_INCLUDES && -1;
822
822
  var index = toAbsoluteIndex(fromIndex, length);
823
823
  var value;
@@ -843,22 +843,22 @@ var arrayIncludes = {
843
843
  indexOf: createMethod(false)
844
844
  };
845
845
 
846
- var uncurryThis$8 = functionUncurryThis;
847
- var hasOwn$7 = hasOwnProperty_1;
846
+ var uncurryThis$3 = functionUncurryThis;
847
+ var hasOwn$3 = hasOwnProperty_1;
848
848
  var toIndexedObject$1 = toIndexedObject$4;
849
849
  var indexOf = arrayIncludes.indexOf;
850
850
  var hiddenKeys$2 = hiddenKeys$4;
851
851
 
852
- var push = uncurryThis$8([].push);
852
+ var push = uncurryThis$3([].push);
853
853
 
854
854
  var objectKeysInternal = function (object, names) {
855
855
  var O = toIndexedObject$1(object);
856
856
  var i = 0;
857
857
  var result = [];
858
858
  var key;
859
- for (key in O) !hasOwn$7(hiddenKeys$2, key) && hasOwn$7(O, key) && push(result, key);
859
+ for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
860
860
  // Don't enum bug & hidden keys
861
- while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
861
+ while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
862
862
  ~indexOf(result, key) || push(result, key);
863
863
  }
864
864
  return result;
@@ -892,68 +892,68 @@ var objectGetOwnPropertySymbols = {};
892
892
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
893
893
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
894
894
 
895
- var getBuiltIn$6 = getBuiltIn$8;
896
- var uncurryThis$7 = functionUncurryThis;
895
+ var getBuiltIn$1 = getBuiltIn$3;
896
+ var uncurryThis$2 = functionUncurryThis;
897
897
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
898
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
899
- var anObject$g = anObject$i;
898
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
899
+ var anObject$c = anObject$e;
900
900
 
901
- var concat$1 = uncurryThis$7([].concat);
901
+ var concat = uncurryThis$2([].concat);
902
902
 
903
903
  // all object keys, includes non-enumerable and symbols
904
- var ownKeys$1 = getBuiltIn$6('Reflect', 'ownKeys') || function ownKeys(it) {
905
- var keys = getOwnPropertyNamesModule.f(anObject$g(it));
906
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
907
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
904
+ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
905
+ var keys = getOwnPropertyNamesModule.f(anObject$c(it));
906
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
907
+ return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
908
908
  };
909
909
 
910
- var hasOwn$6 = hasOwnProperty_1;
910
+ var hasOwn$2 = hasOwnProperty_1;
911
911
  var ownKeys = ownKeys$1;
912
912
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
913
913
  var definePropertyModule$2 = objectDefineProperty;
914
914
 
915
- var copyConstructorProperties$2 = function (target, source, exceptions) {
915
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
916
916
  var keys = ownKeys(source);
917
917
  var defineProperty = definePropertyModule$2.f;
918
918
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
919
919
  for (var i = 0; i < keys.length; i++) {
920
920
  var key = keys[i];
921
- if (!hasOwn$6(target, key) && !(exceptions && hasOwn$6(exceptions, key))) {
921
+ if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
922
922
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
923
923
  }
924
924
  }
925
925
  };
926
926
 
927
- var fails$9 = fails$h;
928
- var isCallable$a = isCallable$k;
927
+ var fails$4 = fails$c;
928
+ var isCallable$4 = isCallable$e;
929
929
 
930
930
  var replacement = /#|\.prototype\./;
931
931
 
932
- var isForced$2 = function (feature, detection) {
932
+ var isForced$1 = function (feature, detection) {
933
933
  var value = data[normalize(feature)];
934
934
  return value === POLYFILL ? true
935
935
  : value === NATIVE ? false
936
- : isCallable$a(detection) ? fails$9(detection)
936
+ : isCallable$4(detection) ? fails$4(detection)
937
937
  : !!detection;
938
938
  };
939
939
 
940
- var normalize = isForced$2.normalize = function (string) {
940
+ var normalize = isForced$1.normalize = function (string) {
941
941
  return String(string).replace(replacement, '.').toLowerCase();
942
942
  };
943
943
 
944
- var data = isForced$2.data = {};
945
- var NATIVE = isForced$2.NATIVE = 'N';
946
- var POLYFILL = isForced$2.POLYFILL = 'P';
944
+ var data = isForced$1.data = {};
945
+ var NATIVE = isForced$1.NATIVE = 'N';
946
+ var POLYFILL = isForced$1.POLYFILL = 'P';
947
947
 
948
- var isForced_1 = isForced$2;
948
+ var isForced_1 = isForced$1;
949
949
 
950
- var global$a = global$j;
951
- var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
952
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
953
- var defineBuiltIn$5 = defineBuiltIn$6;
950
+ var global$2 = global$b;
951
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
952
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
953
+ var defineBuiltIn$2 = defineBuiltIn$3;
954
954
  var defineGlobalProperty = defineGlobalProperty$3;
955
- var copyConstructorProperties$1 = copyConstructorProperties$2;
956
- var isForced$1 = isForced_1;
955
+ var copyConstructorProperties = copyConstructorProperties$1;
956
+ var isForced = isForced_1;
957
957
 
958
958
  /*
959
959
  options.target - name of the target object
@@ -976,50 +976,50 @@ var _export = function (options, source) {
976
976
  var STATIC = options.stat;
977
977
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
978
978
  if (GLOBAL) {
979
- target = global$a;
979
+ target = global$2;
980
980
  } else if (STATIC) {
981
- target = global$a[TARGET] || defineGlobalProperty(TARGET, {});
981
+ target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
982
982
  } else {
983
- target = global$a[TARGET] && global$a[TARGET].prototype;
983
+ target = global$2[TARGET] && global$2[TARGET].prototype;
984
984
  }
985
985
  if (target) for (key in source) {
986
986
  sourceProperty = source[key];
987
987
  if (options.dontCallGetSet) {
988
- descriptor = getOwnPropertyDescriptor$2(target, key);
988
+ descriptor = getOwnPropertyDescriptor$1(target, key);
989
989
  targetProperty = descriptor && descriptor.value;
990
990
  } else targetProperty = target[key];
991
- FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
991
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
992
992
  // contained in target
993
993
  if (!FORCED && targetProperty !== undefined) {
994
994
  if (typeof sourceProperty == typeof targetProperty) continue;
995
- copyConstructorProperties$1(sourceProperty, targetProperty);
995
+ copyConstructorProperties(sourceProperty, targetProperty);
996
996
  }
997
997
  // add a flag to not completely full polyfills
998
998
  if (options.sham || (targetProperty && targetProperty.sham)) {
999
- createNonEnumerableProperty$4(sourceProperty, 'sham', true);
999
+ createNonEnumerableProperty$1(sourceProperty, 'sham', true);
1000
1000
  }
1001
- defineBuiltIn$5(target, key, sourceProperty, options);
1001
+ defineBuiltIn$2(target, key, sourceProperty, options);
1002
1002
  }
1003
1003
  };
1004
1004
 
1005
- var classof$5 = classofRaw$2;
1005
+ var classof$2 = classofRaw$2;
1006
1006
 
1007
1007
  // `IsArray` abstract operation
1008
1008
  // https://tc39.es/ecma262/#sec-isarray
1009
1009
  // eslint-disable-next-line es/no-array-isarray -- safe
1010
- var isArray$3 = Array.isArray || function isArray(argument) {
1011
- return classof$5(argument) === 'Array';
1010
+ var isArray$1 = Array.isArray || function isArray(argument) {
1011
+ return classof$2(argument) === 'Array';
1012
1012
  };
1013
1013
 
1014
- var DESCRIPTORS$7 = descriptors;
1015
- var isArray$2 = isArray$3;
1014
+ var DESCRIPTORS$3 = descriptors;
1015
+ var isArray = isArray$1;
1016
1016
 
1017
- var $TypeError$9 = TypeError;
1017
+ var $TypeError$5 = TypeError;
1018
1018
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1019
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
1019
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1020
1020
 
1021
1021
  // Safari < 13 does not throw an error in this case
1022
- var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$7 && !function () {
1022
+ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$3 && !function () {
1023
1023
  // makes no sense without proper strict mode support
1024
1024
  if (this !== undefined) return true;
1025
1025
  try {
@@ -1031,29 +1031,29 @@ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$7 && !function () {
1031
1031
  }();
1032
1032
 
1033
1033
  var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
1034
- if (isArray$2(O) && !getOwnPropertyDescriptor$1(O, 'length').writable) {
1035
- throw new $TypeError$9('Cannot set read only .length');
1034
+ if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
1035
+ throw new $TypeError$5('Cannot set read only .length');
1036
1036
  } return O.length = length;
1037
1037
  } : function (O, length) {
1038
1038
  return O.length = length;
1039
1039
  };
1040
1040
 
1041
- var $TypeError$8 = TypeError;
1041
+ var $TypeError$4 = TypeError;
1042
1042
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1043
1043
 
1044
- var doesNotExceedSafeInteger$2 = function (it) {
1045
- if (it > MAX_SAFE_INTEGER) throw $TypeError$8('Maximum allowed index exceeded');
1044
+ var doesNotExceedSafeInteger$1 = function (it) {
1045
+ if (it > MAX_SAFE_INTEGER) throw $TypeError$4('Maximum allowed index exceeded');
1046
1046
  return it;
1047
1047
  };
1048
1048
 
1049
- var $$e = _export;
1050
- var toObject$3 = toObject$5;
1051
- var lengthOfArrayLike$3 = lengthOfArrayLike$5;
1049
+ var $$5 = _export;
1050
+ var toObject$1 = toObject$3;
1051
+ var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1052
1052
  var setArrayLength = arraySetLength;
1053
- var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$2;
1054
- var fails$8 = fails$h;
1053
+ var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
1054
+ var fails$3 = fails$c;
1055
1055
 
1056
- var INCORRECT_TO_LENGTH = fails$8(function () {
1056
+ var INCORRECT_TO_LENGTH = fails$3(function () {
1057
1057
  return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
1058
1058
  });
1059
1059
 
@@ -1068,17 +1068,17 @@ var properErrorOnNonWritableLength = function () {
1068
1068
  }
1069
1069
  };
1070
1070
 
1071
- var FORCED$2 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
1071
+ var FORCED$1 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
1072
1072
 
1073
1073
  // `Array.prototype.push` method
1074
1074
  // https://tc39.es/ecma262/#sec-array.prototype.push
1075
- $$e({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
1075
+ $$5({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
1076
1076
  // eslint-disable-next-line no-unused-vars -- required for `.length`
1077
1077
  push: function push(item) {
1078
- var O = toObject$3(this);
1079
- var len = lengthOfArrayLike$3(O);
1078
+ var O = toObject$1(this);
1079
+ var len = lengthOfArrayLike$1(O);
1080
1080
  var argCount = arguments.length;
1081
- doesNotExceedSafeInteger$1(len + argCount);
1081
+ doesNotExceedSafeInteger(len + argCount);
1082
1082
  for (var i = 0; i < argCount; i++) {
1083
1083
  O[len] = arguments[i];
1084
1084
  len++;
@@ -1088,260 +1088,88 @@ $$e({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
1088
1088
  }
1089
1089
  });
1090
1090
 
1091
- var internalObjectKeys = objectKeysInternal;
1092
- var enumBugKeys$1 = enumBugKeys$3;
1093
-
1094
- // `Object.keys` method
1095
- // https://tc39.es/ecma262/#sec-object.keys
1096
- // eslint-disable-next-line es/no-object-keys -- safe
1097
- var objectKeys$2 = Object.keys || function keys(O) {
1098
- return internalObjectKeys(O, enumBugKeys$1);
1099
- };
1100
-
1101
- var DESCRIPTORS$6 = descriptors;
1102
- var uncurryThis$6 = functionUncurryThis;
1103
- var call$d = functionCall;
1104
- var fails$7 = fails$h;
1105
- var objectKeys$1 = objectKeys$2;
1106
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1107
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1108
- var toObject$2 = toObject$5;
1109
- var IndexedObject = indexedObject;
1110
-
1111
- // eslint-disable-next-line es/no-object-assign -- safe
1112
- var $assign = Object.assign;
1113
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1114
- var defineProperty$4 = Object.defineProperty;
1115
- var concat = uncurryThis$6([].concat);
1116
-
1117
- // `Object.assign` method
1118
- // https://tc39.es/ecma262/#sec-object.assign
1119
- var objectAssign = !$assign || fails$7(function () {
1120
- // should have correct order of operations (Edge bug)
1121
- if (DESCRIPTORS$6 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
1122
- enumerable: true,
1123
- get: function () {
1124
- defineProperty$4(this, 'b', {
1125
- value: 3,
1126
- enumerable: false
1127
- });
1128
- }
1129
- }), { b: 2 })).b !== 1) return true;
1130
- // should work with symbols and should have deterministic property order (V8 bug)
1131
- var A = {};
1132
- var B = {};
1133
- // eslint-disable-next-line es/no-symbol -- safe
1134
- var symbol = Symbol('assign detection');
1135
- var alphabet = 'abcdefghijklmnopqrst';
1136
- A[symbol] = 7;
1137
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1138
- return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
1139
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1140
- var T = toObject$2(target);
1141
- var argumentsLength = arguments.length;
1142
- var index = 1;
1143
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1144
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
1145
- while (argumentsLength > index) {
1146
- var S = IndexedObject(arguments[index++]);
1147
- var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1148
- var length = keys.length;
1149
- var j = 0;
1150
- var key;
1151
- while (length > j) {
1152
- key = keys[j++];
1153
- if (!DESCRIPTORS$6 || call$d(propertyIsEnumerable, S, key)) T[key] = S[key];
1154
- }
1155
- } return T;
1156
- } : $assign;
1157
-
1158
- var $$d = _export;
1159
- var assign = objectAssign;
1160
-
1161
- // `Object.assign` method
1162
- // https://tc39.es/ecma262/#sec-object.assign
1163
- // eslint-disable-next-line es/no-object-assign -- required for testing
1164
- $$d({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1165
- assign: assign
1166
- });
1167
-
1168
- var wellKnownSymbol$d = wellKnownSymbol$f;
1169
-
1170
- var TO_STRING_TAG$4 = wellKnownSymbol$d('toStringTag');
1171
- var test = {};
1172
-
1173
- test[TO_STRING_TAG$4] = 'z';
1174
-
1175
- var toStringTagSupport = String(test) === '[object z]';
1176
-
1177
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1178
- var isCallable$9 = isCallable$k;
1179
- var classofRaw$1 = classofRaw$2;
1180
- var wellKnownSymbol$c = wellKnownSymbol$f;
1181
-
1182
- var TO_STRING_TAG$3 = wellKnownSymbol$c('toStringTag');
1183
- var $Object$1 = Object;
1184
-
1185
- // ES3 wrong here
1186
- var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
1187
-
1188
- // fallback for IE11 Script Access Denied error
1189
- var tryGet = function (it, key) {
1190
- try {
1191
- return it[key];
1192
- } catch (error) { /* empty */ }
1193
- };
1194
-
1195
- // getting tag from ES6+ `Object.prototype.toString`
1196
- var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1197
- var O, tag, result;
1198
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1199
- // @@toStringTag case
1200
- : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$3)) == 'string' ? tag
1201
- // builtinTag case
1202
- : CORRECT_ARGUMENTS ? classofRaw$1(O)
1203
- // ES3 arguments fallback
1204
- : (result = classofRaw$1(O)) === 'Object' && isCallable$9(O.callee) ? 'Arguments' : result;
1205
- };
1206
-
1207
- var classof$3 = classof$4;
1208
-
1209
- var $String$1 = String;
1210
-
1211
- var toString$1 = function (argument) {
1212
- if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1213
- return $String$1(argument);
1214
- };
1215
-
1216
- var anObject$f = anObject$i;
1217
-
1218
- // `RegExp.prototype.flags` getter implementation
1219
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1220
- var regexpFlags = function () {
1221
- var that = anObject$f(this);
1222
- var result = '';
1223
- if (that.hasIndices) result += 'd';
1224
- if (that.global) result += 'g';
1225
- if (that.ignoreCase) result += 'i';
1226
- if (that.multiline) result += 'm';
1227
- if (that.dotAll) result += 's';
1228
- if (that.unicode) result += 'u';
1229
- if (that.unicodeSets) result += 'v';
1230
- if (that.sticky) result += 'y';
1231
- return result;
1232
- };
1233
-
1234
- var call$c = functionCall;
1235
- var hasOwn$5 = hasOwnProperty_1;
1236
- var isPrototypeOf$3 = objectIsPrototypeOf;
1237
- var regExpFlags = regexpFlags;
1238
-
1239
- var RegExpPrototype$1 = RegExp.prototype;
1240
-
1241
- var regexpGetFlags = function (R) {
1242
- var flags = R.flags;
1243
- return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$5(R, 'flags') && isPrototypeOf$3(RegExpPrototype$1, R)
1244
- ? call$c(regExpFlags, R) : flags;
1245
- };
1246
-
1247
- var PROPER_FUNCTION_NAME = functionName.PROPER;
1248
- var defineBuiltIn$4 = defineBuiltIn$6;
1249
- var anObject$e = anObject$i;
1250
- var $toString = toString$1;
1251
- var fails$6 = fails$h;
1252
- var getRegExpFlags = regexpGetFlags;
1253
-
1254
- var TO_STRING = 'toString';
1255
- var RegExpPrototype = RegExp.prototype;
1256
- var nativeToString = RegExpPrototype[TO_STRING];
1257
-
1258
- var NOT_GENERIC = fails$6(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
1259
- // FF44- RegExp#toString has a wrong name
1260
- var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
1261
-
1262
- // `RegExp.prototype.toString` method
1263
- // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
1264
- if (NOT_GENERIC || INCORRECT_NAME) {
1265
- defineBuiltIn$4(RegExpPrototype, TO_STRING, function toString() {
1266
- var R = anObject$e(this);
1267
- var pattern = $toString(R.source);
1268
- var flags = $toString(getRegExpFlags(R));
1269
- return '/' + pattern + '/' + flags;
1270
- }, { unsafe: true });
1271
- }
1272
-
1273
- var isPrototypeOf$2 = objectIsPrototypeOf;
1091
+ var isPrototypeOf$1 = objectIsPrototypeOf;
1274
1092
 
1275
- var $TypeError$7 = TypeError;
1093
+ var $TypeError$3 = TypeError;
1276
1094
 
1277
- var anInstance$2 = function (it, Prototype) {
1278
- if (isPrototypeOf$2(Prototype, it)) return it;
1279
- throw new $TypeError$7('Incorrect invocation');
1095
+ var anInstance$1 = function (it, Prototype) {
1096
+ if (isPrototypeOf$1(Prototype, it)) return it;
1097
+ throw new $TypeError$3('Incorrect invocation');
1280
1098
  };
1281
1099
 
1282
- var fails$5 = fails$h;
1100
+ var fails$2 = fails$c;
1283
1101
 
1284
- var correctPrototypeGetter = !fails$5(function () {
1102
+ var correctPrototypeGetter = !fails$2(function () {
1285
1103
  function F() { /* empty */ }
1286
1104
  F.prototype.constructor = null;
1287
1105
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1288
1106
  return Object.getPrototypeOf(new F()) !== F.prototype;
1289
1107
  });
1290
1108
 
1291
- var hasOwn$4 = hasOwnProperty_1;
1292
- var isCallable$8 = isCallable$k;
1293
- var toObject$1 = toObject$5;
1109
+ var hasOwn$1 = hasOwnProperty_1;
1110
+ var isCallable$3 = isCallable$e;
1111
+ var toObject = toObject$3;
1294
1112
  var sharedKey$1 = sharedKey$3;
1295
1113
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1296
1114
 
1297
1115
  var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1298
- var $Object = Object;
1299
- var ObjectPrototype = $Object.prototype;
1116
+ var $Object$1 = Object;
1117
+ var ObjectPrototype = $Object$1.prototype;
1300
1118
 
1301
1119
  // `Object.getPrototypeOf` method
1302
1120
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1303
1121
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1304
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1305
- var object = toObject$1(O);
1306
- if (hasOwn$4(object, IE_PROTO$1)) return object[IE_PROTO$1];
1122
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1123
+ var object = toObject(O);
1124
+ if (hasOwn$1(object, IE_PROTO$1)) return object[IE_PROTO$1];
1307
1125
  var constructor = object.constructor;
1308
- if (isCallable$8(constructor) && object instanceof constructor) {
1126
+ if (isCallable$3(constructor) && object instanceof constructor) {
1309
1127
  return constructor.prototype;
1310
- } return object instanceof $Object ? ObjectPrototype : null;
1128
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1311
1129
  };
1312
1130
 
1313
1131
  var makeBuiltIn = makeBuiltInExports;
1314
- var defineProperty$3 = objectDefineProperty;
1132
+ var defineProperty = objectDefineProperty;
1315
1133
 
1316
- var defineBuiltInAccessor$2 = function (target, name, descriptor) {
1134
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1317
1135
  if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1318
1136
  if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1319
- return defineProperty$3.f(target, name, descriptor);
1137
+ return defineProperty.f(target, name, descriptor);
1320
1138
  };
1321
1139
 
1322
- var DESCRIPTORS$5 = descriptors;
1140
+ var DESCRIPTORS$2 = descriptors;
1323
1141
  var definePropertyModule$1 = objectDefineProperty;
1324
- var createPropertyDescriptor$1 = createPropertyDescriptor$4;
1142
+ var createPropertyDescriptor = createPropertyDescriptor$3;
1325
1143
 
1326
1144
  var createProperty$1 = function (object, key, value) {
1327
- if (DESCRIPTORS$5) definePropertyModule$1.f(object, key, createPropertyDescriptor$1(0, value));
1145
+ if (DESCRIPTORS$2) definePropertyModule$1.f(object, key, createPropertyDescriptor(0, value));
1328
1146
  else object[key] = value;
1329
1147
  };
1330
1148
 
1331
1149
  var objectDefineProperties = {};
1332
1150
 
1333
- var DESCRIPTORS$4 = descriptors;
1151
+ var internalObjectKeys = objectKeysInternal;
1152
+ var enumBugKeys$1 = enumBugKeys$3;
1153
+
1154
+ // `Object.keys` method
1155
+ // https://tc39.es/ecma262/#sec-object.keys
1156
+ // eslint-disable-next-line es/no-object-keys -- safe
1157
+ var objectKeys$1 = Object.keys || function keys(O) {
1158
+ return internalObjectKeys(O, enumBugKeys$1);
1159
+ };
1160
+
1161
+ var DESCRIPTORS$1 = descriptors;
1334
1162
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1335
1163
  var definePropertyModule = objectDefineProperty;
1336
- var anObject$d = anObject$i;
1164
+ var anObject$b = anObject$e;
1337
1165
  var toIndexedObject = toIndexedObject$4;
1338
- var objectKeys = objectKeys$2;
1166
+ var objectKeys = objectKeys$1;
1339
1167
 
1340
1168
  // `Object.defineProperties` method
1341
1169
  // https://tc39.es/ecma262/#sec-object.defineproperties
1342
1170
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1343
- objectDefineProperties.f = DESCRIPTORS$4 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1344
- anObject$d(O);
1171
+ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1172
+ anObject$b(O);
1345
1173
  var props = toIndexedObject(Properties);
1346
1174
  var keys = objectKeys(Properties);
1347
1175
  var length = keys.length;
@@ -1351,16 +1179,16 @@ objectDefineProperties.f = DESCRIPTORS$4 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
1351
1179
  return O;
1352
1180
  };
1353
1181
 
1354
- var getBuiltIn$5 = getBuiltIn$8;
1182
+ var getBuiltIn = getBuiltIn$3;
1355
1183
 
1356
- var html$2 = getBuiltIn$5('document', 'documentElement');
1184
+ var html$1 = getBuiltIn('document', 'documentElement');
1357
1185
 
1358
1186
  /* global ActiveXObject -- old IE, WSH */
1359
- var anObject$c = anObject$i;
1187
+ var anObject$a = anObject$e;
1360
1188
  var definePropertiesModule = objectDefineProperties;
1361
1189
  var enumBugKeys = enumBugKeys$3;
1362
1190
  var hiddenKeys = hiddenKeys$4;
1363
- var html$1 = html$2;
1191
+ var html = html$1;
1364
1192
  var documentCreateElement = documentCreateElement$1;
1365
1193
  var sharedKey = sharedKey$3;
1366
1194
 
@@ -1392,7 +1220,7 @@ var NullProtoObjectViaIFrame = function () {
1392
1220
  var JS = 'java' + SCRIPT + ':';
1393
1221
  var iframeDocument;
1394
1222
  iframe.style.display = 'none';
1395
- html$1.appendChild(iframe);
1223
+ html.appendChild(iframe);
1396
1224
  // https://github.com/zloirock/core-js/issues/475
1397
1225
  iframe.src = String(JS);
1398
1226
  iframeDocument = iframe.contentWindow.document;
@@ -1430,7 +1258,7 @@ hiddenKeys[IE_PROTO] = true;
1430
1258
  var objectCreate = Object.create || function create(O, Properties) {
1431
1259
  var result;
1432
1260
  if (O !== null) {
1433
- EmptyConstructor[PROTOTYPE] = anObject$c(O);
1261
+ EmptyConstructor[PROTOTYPE] = anObject$a(O);
1434
1262
  result = new EmptyConstructor();
1435
1263
  EmptyConstructor[PROTOTYPE] = null;
1436
1264
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -1439,14 +1267,14 @@ var objectCreate = Object.create || function create(O, Properties) {
1439
1267
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1440
1268
  };
1441
1269
 
1442
- var fails$4 = fails$h;
1443
- var isCallable$7 = isCallable$k;
1444
- var isObject$7 = isObject$d;
1270
+ var fails$1 = fails$c;
1271
+ var isCallable$2 = isCallable$e;
1272
+ var isObject = isObject$6;
1445
1273
  var getPrototypeOf$1 = objectGetPrototypeOf;
1446
- var defineBuiltIn$3 = defineBuiltIn$6;
1447
- var wellKnownSymbol$b = wellKnownSymbol$f;
1274
+ var defineBuiltIn$1 = defineBuiltIn$3;
1275
+ var wellKnownSymbol$6 = wellKnownSymbol$8;
1448
1276
 
1449
- var ITERATOR$4 = wellKnownSymbol$b('iterator');
1277
+ var ITERATOR$3 = wellKnownSymbol$6('iterator');
1450
1278
  var BUGGY_SAFARI_ITERATORS = false;
1451
1279
 
1452
1280
  // `%IteratorPrototype%` object
@@ -1464,18 +1292,18 @@ if ([].keys) {
1464
1292
  }
1465
1293
  }
1466
1294
 
1467
- var NEW_ITERATOR_PROTOTYPE = !isObject$7(IteratorPrototype$2) || fails$4(function () {
1295
+ var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$1(function () {
1468
1296
  var test = {};
1469
1297
  // FF44- legacy iterators case
1470
- return IteratorPrototype$2[ITERATOR$4].call(test) !== test;
1298
+ return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
1471
1299
  });
1472
1300
 
1473
1301
  if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1474
1302
 
1475
1303
  // `%IteratorPrototype%[@@iterator]()` method
1476
1304
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1477
- if (!isCallable$7(IteratorPrototype$2[ITERATOR$4])) {
1478
- defineBuiltIn$3(IteratorPrototype$2, ITERATOR$4, function () {
1305
+ if (!isCallable$2(IteratorPrototype$2[ITERATOR$3])) {
1306
+ defineBuiltIn$1(IteratorPrototype$2, ITERATOR$3, function () {
1479
1307
  return this;
1480
1308
  });
1481
1309
  }
@@ -1485,58 +1313,58 @@ var iteratorsCore = {
1485
1313
  BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
1486
1314
  };
1487
1315
 
1488
- var $$c = _export;
1489
- var global$9 = global$j;
1490
- var anInstance$1 = anInstance$2;
1491
- var anObject$b = anObject$i;
1492
- var isCallable$6 = isCallable$k;
1316
+ var $$4 = _export;
1317
+ var global$1 = global$b;
1318
+ var anInstance = anInstance$1;
1319
+ var anObject$9 = anObject$e;
1320
+ var isCallable$1 = isCallable$e;
1493
1321
  var getPrototypeOf = objectGetPrototypeOf;
1494
- var defineBuiltInAccessor$1 = defineBuiltInAccessor$2;
1322
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
1495
1323
  var createProperty = createProperty$1;
1496
- var fails$3 = fails$h;
1497
- var hasOwn$3 = hasOwnProperty_1;
1498
- var wellKnownSymbol$a = wellKnownSymbol$f;
1324
+ var fails = fails$c;
1325
+ var hasOwn = hasOwnProperty_1;
1326
+ var wellKnownSymbol$5 = wellKnownSymbol$8;
1499
1327
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1500
- var DESCRIPTORS$3 = descriptors;
1328
+ var DESCRIPTORS = descriptors;
1501
1329
 
1502
1330
  var CONSTRUCTOR = 'constructor';
1503
- var ITERATOR$3 = 'Iterator';
1504
- var TO_STRING_TAG$2 = wellKnownSymbol$a('toStringTag');
1331
+ var ITERATOR$2 = 'Iterator';
1332
+ var TO_STRING_TAG$3 = wellKnownSymbol$5('toStringTag');
1505
1333
 
1506
- var $TypeError$6 = TypeError;
1507
- var NativeIterator = global$9[ITERATOR$3];
1334
+ var $TypeError$2 = TypeError;
1335
+ var NativeIterator = global$1[ITERATOR$2];
1508
1336
 
1509
1337
  // FF56- have non-standard global helper `Iterator`
1510
- var FORCED$1 = !isCallable$6(NativeIterator)
1338
+ var FORCED = !isCallable$1(NativeIterator)
1511
1339
  || NativeIterator.prototype !== IteratorPrototype$1
1512
1340
  // FF44- non-standard `Iterator` passes previous tests
1513
- || !fails$3(function () { NativeIterator({}); });
1341
+ || !fails(function () { NativeIterator({}); });
1514
1342
 
1515
1343
  var IteratorConstructor = function Iterator() {
1516
- anInstance$1(this, IteratorPrototype$1);
1517
- if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$6('Abstract class Iterator not directly constructable');
1344
+ anInstance(this, IteratorPrototype$1);
1345
+ if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$2('Abstract class Iterator not directly constructable');
1518
1346
  };
1519
1347
 
1520
1348
  var defineIteratorPrototypeAccessor = function (key, value) {
1521
- if (DESCRIPTORS$3) {
1522
- defineBuiltInAccessor$1(IteratorPrototype$1, key, {
1349
+ if (DESCRIPTORS) {
1350
+ defineBuiltInAccessor(IteratorPrototype$1, key, {
1523
1351
  configurable: true,
1524
1352
  get: function () {
1525
1353
  return value;
1526
1354
  },
1527
1355
  set: function (replacement) {
1528
- anObject$b(this);
1529
- if (this === IteratorPrototype$1) throw new $TypeError$6("You can't redefine this property");
1530
- if (hasOwn$3(this, key)) this[key] = replacement;
1356
+ anObject$9(this);
1357
+ if (this === IteratorPrototype$1) throw new $TypeError$2("You can't redefine this property");
1358
+ if (hasOwn(this, key)) this[key] = replacement;
1531
1359
  else createProperty(this, key, replacement);
1532
1360
  }
1533
1361
  });
1534
1362
  } else IteratorPrototype$1[key] = value;
1535
1363
  };
1536
1364
 
1537
- if (!hasOwn$3(IteratorPrototype$1, TO_STRING_TAG$2)) defineIteratorPrototypeAccessor(TO_STRING_TAG$2, ITERATOR$3);
1365
+ if (!hasOwn(IteratorPrototype$1, TO_STRING_TAG$3)) defineIteratorPrototypeAccessor(TO_STRING_TAG$3, ITERATOR$2);
1538
1366
 
1539
- if (FORCED$1 || !hasOwn$3(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
1367
+ if (FORCED || !hasOwn(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
1540
1368
  defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
1541
1369
  }
1542
1370
 
@@ -1544,7 +1372,7 @@ IteratorConstructor.prototype = IteratorPrototype$1;
1544
1372
 
1545
1373
  // `Iterator` constructor
1546
1374
  // https://github.com/tc39/proposal-iterator-helpers
1547
- $$c({ global: true, constructor: true, forced: FORCED$1 }, {
1375
+ $$4({ global: true, constructor: true, forced: FORCED }, {
1548
1376
  Iterator: IteratorConstructor
1549
1377
  });
1550
1378
 
@@ -1558,10 +1386,10 @@ var getIteratorDirect$5 = function (obj) {
1558
1386
  };
1559
1387
  };
1560
1388
 
1561
- var defineBuiltIn$2 = defineBuiltIn$6;
1389
+ var defineBuiltIn = defineBuiltIn$3;
1562
1390
 
1563
1391
  var defineBuiltIns$1 = function (target, src, options) {
1564
- for (var key in src) defineBuiltIn$2(target, key, src[key], options);
1392
+ for (var key in src) defineBuiltIn(target, key, src[key], options);
1565
1393
  return target;
1566
1394
  };
1567
1395
 
@@ -1571,50 +1399,50 @@ var createIterResultObject$1 = function (value, done) {
1571
1399
  return { value: value, done: done };
1572
1400
  };
1573
1401
 
1574
- var call$b = functionCall;
1575
- var anObject$a = anObject$i;
1402
+ var call$7 = functionCall;
1403
+ var anObject$8 = anObject$e;
1576
1404
  var getMethod$2 = getMethod$4;
1577
1405
 
1578
1406
  var iteratorClose$4 = function (iterator, kind, value) {
1579
1407
  var innerResult, innerError;
1580
- anObject$a(iterator);
1408
+ anObject$8(iterator);
1581
1409
  try {
1582
1410
  innerResult = getMethod$2(iterator, 'return');
1583
1411
  if (!innerResult) {
1584
1412
  if (kind === 'throw') throw value;
1585
1413
  return value;
1586
1414
  }
1587
- innerResult = call$b(innerResult, iterator);
1415
+ innerResult = call$7(innerResult, iterator);
1588
1416
  } catch (error) {
1589
1417
  innerError = true;
1590
1418
  innerResult = error;
1591
1419
  }
1592
1420
  if (kind === 'throw') throw value;
1593
1421
  if (innerError) throw innerResult;
1594
- anObject$a(innerResult);
1422
+ anObject$8(innerResult);
1595
1423
  return value;
1596
1424
  };
1597
1425
 
1598
- var call$a = functionCall;
1599
- var create$1 = objectCreate;
1600
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$6;
1426
+ var call$6 = functionCall;
1427
+ var create = objectCreate;
1428
+ var createNonEnumerableProperty = createNonEnumerableProperty$3;
1601
1429
  var defineBuiltIns = defineBuiltIns$1;
1602
- var wellKnownSymbol$9 = wellKnownSymbol$f;
1603
- var InternalStateModule$1 = internalState;
1430
+ var wellKnownSymbol$4 = wellKnownSymbol$8;
1431
+ var InternalStateModule = internalState;
1604
1432
  var getMethod$1 = getMethod$4;
1605
1433
  var IteratorPrototype = iteratorsCore.IteratorPrototype;
1606
1434
  var createIterResultObject = createIterResultObject$1;
1607
1435
  var iteratorClose$3 = iteratorClose$4;
1608
1436
 
1609
- var TO_STRING_TAG$1 = wellKnownSymbol$9('toStringTag');
1437
+ var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
1610
1438
  var ITERATOR_HELPER = 'IteratorHelper';
1611
1439
  var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
1612
- var setInternalState$1 = InternalStateModule$1.set;
1440
+ var setInternalState = InternalStateModule.set;
1613
1441
 
1614
1442
  var createIteratorProxyPrototype = function (IS_ITERATOR) {
1615
- var getInternalState = InternalStateModule$1.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
1443
+ var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
1616
1444
 
1617
- return defineBuiltIns(create$1(IteratorPrototype), {
1445
+ return defineBuiltIns(create(IteratorPrototype), {
1618
1446
  next: function next() {
1619
1447
  var state = getInternalState(this);
1620
1448
  // for simplification:
@@ -1635,7 +1463,7 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
1635
1463
  state.done = true;
1636
1464
  if (IS_ITERATOR) {
1637
1465
  var returnMethod = getMethod$1(iterator, 'return');
1638
- return returnMethod ? call$a(returnMethod, iterator) : createIterResultObject(undefined, true);
1466
+ return returnMethod ? call$6(returnMethod, iterator) : createIterResultObject(undefined, true);
1639
1467
  }
1640
1468
  if (state.inner) try {
1641
1469
  iteratorClose$3(state.inner.iterator, 'normal');
@@ -1651,7 +1479,7 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
1651
1479
  var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
1652
1480
  var IteratorHelperPrototype = createIteratorProxyPrototype(false);
1653
1481
 
1654
- createNonEnumerableProperty$3(IteratorHelperPrototype, TO_STRING_TAG$1, 'Iterator Helper');
1482
+ createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG$2, 'Iterator Helper');
1655
1483
 
1656
1484
  var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
1657
1485
  var IteratorProxy = function Iterator(record, state) {
@@ -1663,7 +1491,7 @@ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
1663
1491
  state.nextHandler = nextHandler;
1664
1492
  state.counter = 0;
1665
1493
  state.done = false;
1666
- setInternalState$1(this, state);
1494
+ setInternalState(this, state);
1667
1495
  };
1668
1496
 
1669
1497
  IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
@@ -1671,22 +1499,22 @@ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
1671
1499
  return IteratorProxy;
1672
1500
  };
1673
1501
 
1674
- var anObject$9 = anObject$i;
1502
+ var anObject$7 = anObject$e;
1675
1503
  var iteratorClose$2 = iteratorClose$4;
1676
1504
 
1677
1505
  // call something on iterator step with safe closing on error
1678
1506
  var callWithSafeIterationClosing$2 = function (iterator, fn, value, ENTRIES) {
1679
1507
  try {
1680
- return ENTRIES ? fn(anObject$9(value)[0], value[1]) : fn(value);
1508
+ return ENTRIES ? fn(anObject$7(value)[0], value[1]) : fn(value);
1681
1509
  } catch (error) {
1682
1510
  iteratorClose$2(iterator, 'throw', error);
1683
1511
  }
1684
1512
  };
1685
1513
 
1686
- var $$b = _export;
1687
- var call$9 = functionCall;
1688
- var aCallable$b = aCallable$d;
1689
- var anObject$8 = anObject$i;
1514
+ var $$3 = _export;
1515
+ var call$5 = functionCall;
1516
+ var aCallable$5 = aCallable$7;
1517
+ var anObject$6 = anObject$e;
1690
1518
  var getIteratorDirect$4 = getIteratorDirect$5;
1691
1519
  var createIteratorProxy$2 = iteratorCreateProxy;
1692
1520
  var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$2;
@@ -1698,7 +1526,7 @@ var IteratorProxy$2 = createIteratorProxy$2(function () {
1698
1526
  var next = this.next;
1699
1527
  var result, done, value;
1700
1528
  while (true) {
1701
- result = anObject$8(call$9(next, iterator));
1529
+ result = anObject$6(call$5(next, iterator));
1702
1530
  done = this.done = !!result.done;
1703
1531
  if (done) return;
1704
1532
  value = result.value;
@@ -1708,93 +1536,132 @@ var IteratorProxy$2 = createIteratorProxy$2(function () {
1708
1536
 
1709
1537
  // `Iterator.prototype.filter` method
1710
1538
  // https://github.com/tc39/proposal-iterator-helpers
1711
- $$b({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$2 }, {
1539
+ $$3({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$2 }, {
1712
1540
  filter: function filter(predicate) {
1713
- anObject$8(this);
1714
- aCallable$b(predicate);
1541
+ anObject$6(this);
1542
+ aCallable$5(predicate);
1715
1543
  return new IteratorProxy$2(getIteratorDirect$4(this), {
1716
1544
  predicate: predicate
1717
1545
  });
1718
1546
  }
1719
1547
  });
1720
1548
 
1721
- var classofRaw = classofRaw$2;
1722
- var uncurryThis$5 = functionUncurryThis;
1549
+ var classofRaw$1 = classofRaw$2;
1550
+ var uncurryThis$1 = functionUncurryThis;
1723
1551
 
1724
1552
  var functionUncurryThisClause = function (fn) {
1725
1553
  // Nashorn bug:
1726
1554
  // https://github.com/zloirock/core-js/issues/1128
1727
1555
  // https://github.com/zloirock/core-js/issues/1130
1728
- if (classofRaw(fn) === 'Function') return uncurryThis$5(fn);
1556
+ if (classofRaw$1(fn) === 'Function') return uncurryThis$1(fn);
1729
1557
  };
1730
1558
 
1731
- var uncurryThis$4 = functionUncurryThisClause;
1732
- var aCallable$a = aCallable$d;
1733
- var NATIVE_BIND$1 = functionBindNative;
1559
+ var uncurryThis = functionUncurryThisClause;
1560
+ var aCallable$4 = aCallable$7;
1561
+ var NATIVE_BIND = functionBindNative;
1734
1562
 
1735
- var bind$5 = uncurryThis$4(uncurryThis$4.bind);
1563
+ var bind$1 = uncurryThis(uncurryThis.bind);
1736
1564
 
1737
1565
  // optional / simple context binding
1738
1566
  var functionBindContext = function (fn, that) {
1739
- aCallable$a(fn);
1740
- return that === undefined ? fn : NATIVE_BIND$1 ? bind$5(fn, that) : function (/* ...args */) {
1567
+ aCallable$4(fn);
1568
+ return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1741
1569
  return fn.apply(that, arguments);
1742
1570
  };
1743
1571
  };
1744
1572
 
1745
1573
  var iterators = {};
1746
1574
 
1747
- var wellKnownSymbol$8 = wellKnownSymbol$f;
1575
+ var wellKnownSymbol$3 = wellKnownSymbol$8;
1748
1576
  var Iterators$1 = iterators;
1749
1577
 
1750
- var ITERATOR$2 = wellKnownSymbol$8('iterator');
1751
- var ArrayPrototype$1 = Array.prototype;
1578
+ var ITERATOR$1 = wellKnownSymbol$3('iterator');
1579
+ var ArrayPrototype = Array.prototype;
1752
1580
 
1753
1581
  // check on default Array iterator
1754
1582
  var isArrayIteratorMethod$1 = function (it) {
1755
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype$1[ITERATOR$2] === it);
1583
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$1] === it);
1584
+ };
1585
+
1586
+ var wellKnownSymbol$2 = wellKnownSymbol$8;
1587
+
1588
+ var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1589
+ var test = {};
1590
+
1591
+ test[TO_STRING_TAG$1] = 'z';
1592
+
1593
+ var toStringTagSupport = String(test) === '[object z]';
1594
+
1595
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1596
+ var isCallable = isCallable$e;
1597
+ var classofRaw = classofRaw$2;
1598
+ var wellKnownSymbol$1 = wellKnownSymbol$8;
1599
+
1600
+ var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
1601
+ var $Object = Object;
1602
+
1603
+ // ES3 wrong here
1604
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1605
+
1606
+ // fallback for IE11 Script Access Denied error
1607
+ var tryGet = function (it, key) {
1608
+ try {
1609
+ return it[key];
1610
+ } catch (error) { /* empty */ }
1611
+ };
1612
+
1613
+ // getting tag from ES6+ `Object.prototype.toString`
1614
+ var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1615
+ var O, tag, result;
1616
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1617
+ // @@toStringTag case
1618
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1619
+ // builtinTag case
1620
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1621
+ // ES3 arguments fallback
1622
+ : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1756
1623
  };
1757
1624
 
1758
- var classof$2 = classof$4;
1625
+ var classof = classof$1;
1759
1626
  var getMethod = getMethod$4;
1760
- var isNullOrUndefined$1 = isNullOrUndefined$4;
1627
+ var isNullOrUndefined = isNullOrUndefined$3;
1761
1628
  var Iterators = iterators;
1762
- var wellKnownSymbol$7 = wellKnownSymbol$f;
1629
+ var wellKnownSymbol = wellKnownSymbol$8;
1763
1630
 
1764
- var ITERATOR$1 = wellKnownSymbol$7('iterator');
1631
+ var ITERATOR = wellKnownSymbol('iterator');
1765
1632
 
1766
1633
  var getIteratorMethod$3 = function (it) {
1767
- if (!isNullOrUndefined$1(it)) return getMethod(it, ITERATOR$1)
1634
+ if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
1768
1635
  || getMethod(it, '@@iterator')
1769
- || Iterators[classof$2(it)];
1636
+ || Iterators[classof(it)];
1770
1637
  };
1771
1638
 
1772
- var call$8 = functionCall;
1773
- var aCallable$9 = aCallable$d;
1774
- var anObject$7 = anObject$i;
1775
- var tryToString$2 = tryToString$4;
1639
+ var call$4 = functionCall;
1640
+ var aCallable$3 = aCallable$7;
1641
+ var anObject$5 = anObject$e;
1642
+ var tryToString$1 = tryToString$3;
1776
1643
  var getIteratorMethod$2 = getIteratorMethod$3;
1777
1644
 
1778
- var $TypeError$5 = TypeError;
1645
+ var $TypeError$1 = TypeError;
1779
1646
 
1780
1647
  var getIterator$1 = function (argument, usingIterator) {
1781
1648
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod$2(argument) : usingIterator;
1782
- if (aCallable$9(iteratorMethod)) return anObject$7(call$8(iteratorMethod, argument));
1783
- throw new $TypeError$5(tryToString$2(argument) + ' is not iterable');
1649
+ if (aCallable$3(iteratorMethod)) return anObject$5(call$4(iteratorMethod, argument));
1650
+ throw new $TypeError$1(tryToString$1(argument) + ' is not iterable');
1784
1651
  };
1785
1652
 
1786
- var bind$4 = functionBindContext;
1787
- var call$7 = functionCall;
1788
- var anObject$6 = anObject$i;
1789
- var tryToString$1 = tryToString$4;
1653
+ var bind = functionBindContext;
1654
+ var call$3 = functionCall;
1655
+ var anObject$4 = anObject$e;
1656
+ var tryToString = tryToString$3;
1790
1657
  var isArrayIteratorMethod = isArrayIteratorMethod$1;
1791
- var lengthOfArrayLike$2 = lengthOfArrayLike$5;
1792
- var isPrototypeOf$1 = objectIsPrototypeOf;
1658
+ var lengthOfArrayLike = lengthOfArrayLike$3;
1659
+ var isPrototypeOf = objectIsPrototypeOf;
1793
1660
  var getIterator = getIterator$1;
1794
1661
  var getIteratorMethod$1 = getIteratorMethod$3;
1795
1662
  var iteratorClose$1 = iteratorClose$4;
1796
1663
 
1797
- var $TypeError$4 = TypeError;
1664
+ var $TypeError = TypeError;
1798
1665
 
1799
1666
  var Result = function (stopped, result) {
1800
1667
  this.stopped = stopped;
@@ -1803,13 +1670,13 @@ var Result = function (stopped, result) {
1803
1670
 
1804
1671
  var ResultPrototype = Result.prototype;
1805
1672
 
1806
- var iterate$3 = function (iterable, unboundFunction, options) {
1673
+ var iterate$1 = function (iterable, unboundFunction, options) {
1807
1674
  var that = options && options.that;
1808
1675
  var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1809
1676
  var IS_RECORD = !!(options && options.IS_RECORD);
1810
1677
  var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1811
1678
  var INTERRUPTED = !!(options && options.INTERRUPTED);
1812
- var fn = bind$4(unboundFunction, that);
1679
+ var fn = bind(unboundFunction, that);
1813
1680
  var iterator, iterFn, index, length, result, next, step;
1814
1681
 
1815
1682
  var stop = function (condition) {
@@ -1819,7 +1686,7 @@ var iterate$3 = function (iterable, unboundFunction, options) {
1819
1686
 
1820
1687
  var callFn = function (value) {
1821
1688
  if (AS_ENTRIES) {
1822
- anObject$6(value);
1689
+ anObject$4(value);
1823
1690
  return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1824
1691
  } return INTERRUPTED ? fn(value, stop) : fn(value);
1825
1692
  };
@@ -1830,58 +1697,58 @@ var iterate$3 = function (iterable, unboundFunction, options) {
1830
1697
  iterator = iterable;
1831
1698
  } else {
1832
1699
  iterFn = getIteratorMethod$1(iterable);
1833
- if (!iterFn) throw new $TypeError$4(tryToString$1(iterable) + ' is not iterable');
1700
+ if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
1834
1701
  // optimisation for array iterators
1835
1702
  if (isArrayIteratorMethod(iterFn)) {
1836
- for (index = 0, length = lengthOfArrayLike$2(iterable); length > index; index++) {
1703
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
1837
1704
  result = callFn(iterable[index]);
1838
- if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
1705
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
1839
1706
  } return new Result(false);
1840
1707
  }
1841
1708
  iterator = getIterator(iterable, iterFn);
1842
1709
  }
1843
1710
 
1844
1711
  next = IS_RECORD ? iterable.next : iterator.next;
1845
- while (!(step = call$7(next, iterator)).done) {
1712
+ while (!(step = call$3(next, iterator)).done) {
1846
1713
  try {
1847
1714
  result = callFn(step.value);
1848
1715
  } catch (error) {
1849
1716
  iteratorClose$1(iterator, 'throw', error);
1850
1717
  }
1851
- if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
1718
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
1852
1719
  } return new Result(false);
1853
1720
  };
1854
1721
 
1855
- var $$a = _export;
1856
- var iterate$2 = iterate$3;
1857
- var aCallable$8 = aCallable$d;
1858
- var anObject$5 = anObject$i;
1722
+ var $$2 = _export;
1723
+ var iterate = iterate$1;
1724
+ var aCallable$2 = aCallable$7;
1725
+ var anObject$3 = anObject$e;
1859
1726
  var getIteratorDirect$3 = getIteratorDirect$5;
1860
1727
 
1861
1728
  // `Iterator.prototype.forEach` method
1862
1729
  // https://github.com/tc39/proposal-iterator-helpers
1863
- $$a({ target: 'Iterator', proto: true, real: true }, {
1730
+ $$2({ target: 'Iterator', proto: true, real: true }, {
1864
1731
  forEach: function forEach(fn) {
1865
- anObject$5(this);
1866
- aCallable$8(fn);
1732
+ anObject$3(this);
1733
+ aCallable$2(fn);
1867
1734
  var record = getIteratorDirect$3(this);
1868
1735
  var counter = 0;
1869
- iterate$2(record, function (value) {
1736
+ iterate(record, function (value) {
1870
1737
  fn(value, counter++);
1871
1738
  }, { IS_RECORD: true });
1872
1739
  }
1873
1740
  });
1874
1741
 
1875
- var call$6 = functionCall;
1876
- var aCallable$7 = aCallable$d;
1877
- var anObject$4 = anObject$i;
1742
+ var call$2 = functionCall;
1743
+ var aCallable$1 = aCallable$7;
1744
+ var anObject$2 = anObject$e;
1878
1745
  var getIteratorDirect$2 = getIteratorDirect$5;
1879
1746
  var createIteratorProxy$1 = iteratorCreateProxy;
1880
1747
  var callWithSafeIterationClosing = callWithSafeIterationClosing$2;
1881
1748
 
1882
1749
  var IteratorProxy$1 = createIteratorProxy$1(function () {
1883
1750
  var iterator = this.iterator;
1884
- var result = anObject$4(call$6(this.next, iterator));
1751
+ var result = anObject$2(call$2(this.next, iterator));
1885
1752
  var done = this.done = !!result.done;
1886
1753
  if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
1887
1754
  });
@@ -1889,20 +1756,20 @@ var IteratorProxy$1 = createIteratorProxy$1(function () {
1889
1756
  // `Iterator.prototype.map` method
1890
1757
  // https://github.com/tc39/proposal-iterator-helpers
1891
1758
  var iteratorMap = function map(mapper) {
1892
- anObject$4(this);
1893
- aCallable$7(mapper);
1759
+ anObject$2(this);
1760
+ aCallable$1(mapper);
1894
1761
  return new IteratorProxy$1(getIteratorDirect$2(this), {
1895
1762
  mapper: mapper
1896
1763
  });
1897
1764
  };
1898
1765
 
1899
- var $$9 = _export;
1766
+ var $$1 = _export;
1900
1767
  var map = iteratorMap;
1901
1768
  var IS_PURE$1 = isPure;
1902
1769
 
1903
1770
  // `Iterator.prototype.map` method
1904
1771
  // https://github.com/tc39/proposal-iterator-helpers
1905
- $$9({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
1772
+ $$1({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
1906
1773
  map: map
1907
1774
  });
1908
1775
 
@@ -1914,22 +1781,22 @@ $$9({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
1914
1781
  * @returns
1915
1782
  */
1916
1783
  function zohoFetchPageFactory(fetch, defaults) {
1917
- return fetchPageFactory(Object.assign({}, defaults, {
1784
+ return fetchPageFactory({
1785
+ ...defaults,
1918
1786
  fetch,
1919
1787
  readFetchPageResultInfo: function (result) {
1920
- var _result$info$more_rec, _result$info;
1921
1788
  return {
1922
- hasNext: (_result$info$more_rec = (_result$info = result.info) == null ? void 0 : _result$info.more_records) != null ? _result$info$more_rec : false // if no info is returned, assume something wrong and there are no more records
1789
+ hasNext: result.info?.more_records ?? false // if no info is returned, assume something wrong and there are no more records
1923
1790
  };
1924
1791
  },
1925
1792
  buildInputForNextPage: function (pageResult, input, options) {
1926
- var _options$maxItemsPerP;
1927
- return Object.assign({}, input, {
1793
+ return {
1794
+ ...input,
1928
1795
  page: getNextPageNumber(pageResult),
1929
- per_page: (_options$maxItemsPerP = options.maxItemsPerPage) != null ? _options$maxItemsPerP : input.per_page
1930
- });
1796
+ per_page: options.maxItemsPerPage ?? input.per_page
1797
+ };
1931
1798
  }
1932
- }));
1799
+ });
1933
1800
  }
1934
1801
 
1935
1802
  const ZOHO_RECRUIT_SERVICE_NAME = 'recruit';
@@ -1944,192 +1811,26 @@ function zohoRecruitConfigApiUrl(input) {
1944
1811
  }
1945
1812
  }
1946
1813
 
1947
- var isArray$1 = isArray$3;
1948
- var lengthOfArrayLike$1 = lengthOfArrayLike$5;
1949
- var doesNotExceedSafeInteger = doesNotExceedSafeInteger$2;
1950
- var bind$3 = functionBindContext;
1951
-
1952
- // `FlattenIntoArray` abstract operation
1953
- // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
1954
- var flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
1955
- var targetIndex = start;
1956
- var sourceIndex = 0;
1957
- var mapFn = mapper ? bind$3(mapper, thisArg) : false;
1958
- var element, elementLen;
1959
-
1960
- while (sourceIndex < sourceLen) {
1961
- if (sourceIndex in source) {
1962
- element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
1963
-
1964
- if (depth > 0 && isArray$1(element)) {
1965
- elementLen = lengthOfArrayLike$1(element);
1966
- targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;
1967
- } else {
1968
- doesNotExceedSafeInteger(targetIndex + 1);
1969
- target[targetIndex] = element;
1970
- }
1814
+ var call$1 = functionCall;
1815
+ var anObject$1 = anObject$e;
1816
+ var getIteratorDirect$1 = getIteratorDirect$5;
1817
+ var getIteratorMethod = getIteratorMethod$3;
1971
1818
 
1972
- targetIndex++;
1973
- }
1974
- sourceIndex++;
1975
- }
1976
- return targetIndex;
1819
+ var getIteratorFlattenable$1 = function (obj, stringHandling) {
1820
+ if (!stringHandling || typeof obj !== 'string') anObject$1(obj);
1821
+ var method = getIteratorMethod(obj);
1822
+ return getIteratorDirect$1(anObject$1(method !== undefined ? call$1(method, obj) : obj));
1977
1823
  };
1978
1824
 
1979
- var flattenIntoArray_1 = flattenIntoArray$1;
1980
-
1981
- var uncurryThis$3 = functionUncurryThis;
1982
- var fails$2 = fails$h;
1983
- var isCallable$5 = isCallable$k;
1984
- var classof$1 = classof$4;
1985
- var getBuiltIn$4 = getBuiltIn$8;
1986
- var inspectSource$1 = inspectSource$3;
1987
-
1988
- var noop = function () { /* empty */ };
1989
- var construct = getBuiltIn$4('Reflect', 'construct');
1990
- var constructorRegExp = /^\s*(?:class|function)\b/;
1991
- var exec = uncurryThis$3(constructorRegExp.exec);
1992
- var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
1993
-
1994
- var isConstructorModern = function isConstructor(argument) {
1995
- if (!isCallable$5(argument)) return false;
1996
- try {
1997
- construct(noop, [], argument);
1998
- return true;
1999
- } catch (error) {
2000
- return false;
2001
- }
2002
- };
2003
-
2004
- var isConstructorLegacy = function isConstructor(argument) {
2005
- if (!isCallable$5(argument)) return false;
2006
- switch (classof$1(argument)) {
2007
- case 'AsyncFunction':
2008
- case 'GeneratorFunction':
2009
- case 'AsyncGeneratorFunction': return false;
2010
- }
2011
- try {
2012
- // we can't check .prototype since constructors produced by .bind haven't it
2013
- // `Function#toString` throws on some built-it function in some legacy engines
2014
- // (for example, `DOMQuad` and similar in FF41-)
2015
- return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
2016
- } catch (error) {
2017
- return true;
2018
- }
2019
- };
2020
-
2021
- isConstructorLegacy.sham = true;
2022
-
2023
- // `IsConstructor` abstract operation
2024
- // https://tc39.es/ecma262/#sec-isconstructor
2025
- var isConstructor$2 = !construct || fails$2(function () {
2026
- var called;
2027
- return isConstructorModern(isConstructorModern.call)
2028
- || !isConstructorModern(Object)
2029
- || !isConstructorModern(function () { called = true; })
2030
- || called;
2031
- }) ? isConstructorLegacy : isConstructorModern;
2032
-
2033
- var isArray = isArray$3;
2034
- var isConstructor$1 = isConstructor$2;
2035
- var isObject$6 = isObject$d;
2036
- var wellKnownSymbol$6 = wellKnownSymbol$f;
2037
-
2038
- var SPECIES$3 = wellKnownSymbol$6('species');
2039
- var $Array = Array;
2040
-
2041
- // a part of `ArraySpeciesCreate` abstract operation
2042
- // https://tc39.es/ecma262/#sec-arrayspeciescreate
2043
- var arraySpeciesConstructor$1 = function (originalArray) {
2044
- var C;
2045
- if (isArray(originalArray)) {
2046
- C = originalArray.constructor;
2047
- // cross-realm fallback
2048
- if (isConstructor$1(C) && (C === $Array || isArray(C.prototype))) C = undefined;
2049
- else if (isObject$6(C)) {
2050
- C = C[SPECIES$3];
2051
- if (C === null) C = undefined;
2052
- }
2053
- } return C === undefined ? $Array : C;
2054
- };
2055
-
2056
- var arraySpeciesConstructor = arraySpeciesConstructor$1;
2057
-
2058
- // `ArraySpeciesCreate` abstract operation
2059
- // https://tc39.es/ecma262/#sec-arrayspeciescreate
2060
- var arraySpeciesCreate$1 = function (originalArray, length) {
2061
- return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
2062
- };
2063
-
2064
- var $$8 = _export;
2065
- var flattenIntoArray = flattenIntoArray_1;
2066
- var aCallable$6 = aCallable$d;
2067
- var toObject = toObject$5;
2068
- var lengthOfArrayLike = lengthOfArrayLike$5;
2069
- var arraySpeciesCreate = arraySpeciesCreate$1;
2070
-
2071
- // `Array.prototype.flatMap` method
2072
- // https://tc39.es/ecma262/#sec-array.prototype.flatmap
2073
- $$8({ target: 'Array', proto: true }, {
2074
- flatMap: function flatMap(callbackfn /* , thisArg */) {
2075
- var O = toObject(this);
2076
- var sourceLen = lengthOfArrayLike(O);
2077
- var A;
2078
- aCallable$6(callbackfn);
2079
- A = arraySpeciesCreate(O, 0);
2080
- A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2081
- return A;
2082
- }
2083
- });
2084
-
2085
- var wellKnownSymbol$5 = wellKnownSymbol$f;
2086
- var create = objectCreate;
2087
- var defineProperty$2 = objectDefineProperty.f;
2088
-
2089
- var UNSCOPABLES = wellKnownSymbol$5('unscopables');
2090
- var ArrayPrototype = Array.prototype;
2091
-
2092
- // Array.prototype[@@unscopables]
2093
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2094
- if (ArrayPrototype[UNSCOPABLES] === undefined) {
2095
- defineProperty$2(ArrayPrototype, UNSCOPABLES, {
2096
- configurable: true,
2097
- value: create(null)
2098
- });
2099
- }
2100
-
2101
- // add a key to Array.prototype[@@unscopables]
2102
- var addToUnscopables$1 = function (key) {
2103
- ArrayPrototype[UNSCOPABLES][key] = true;
2104
- };
2105
-
2106
- // this method was added to unscopables after implementation
2107
- // in popular engines, so it's moved to a separate module
2108
- var addToUnscopables = addToUnscopables$1;
2109
-
2110
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2111
- addToUnscopables('flatMap');
2112
-
2113
- var call$5 = functionCall;
2114
- var anObject$3 = anObject$i;
2115
- var getIteratorDirect$1 = getIteratorDirect$5;
2116
- var getIteratorMethod = getIteratorMethod$3;
2117
-
2118
- var getIteratorFlattenable$1 = function (obj, stringHandling) {
2119
- if (!stringHandling || typeof obj !== 'string') anObject$3(obj);
2120
- var method = getIteratorMethod(obj);
2121
- return getIteratorDirect$1(anObject$3(method !== undefined ? call$5(method, obj) : obj));
2122
- };
2123
-
2124
- var $$7 = _export;
2125
- var call$4 = functionCall;
2126
- var aCallable$5 = aCallable$d;
2127
- var anObject$2 = anObject$i;
2128
- var getIteratorDirect = getIteratorDirect$5;
2129
- var getIteratorFlattenable = getIteratorFlattenable$1;
2130
- var createIteratorProxy = iteratorCreateProxy;
2131
- var iteratorClose = iteratorClose$4;
2132
- var IS_PURE = isPure;
1825
+ var $ = _export;
1826
+ var call = functionCall;
1827
+ var aCallable = aCallable$7;
1828
+ var anObject = anObject$e;
1829
+ var getIteratorDirect = getIteratorDirect$5;
1830
+ var getIteratorFlattenable = getIteratorFlattenable$1;
1831
+ var createIteratorProxy = iteratorCreateProxy;
1832
+ var iteratorClose = iteratorClose$4;
1833
+ var IS_PURE = isPure;
2133
1834
 
2134
1835
  var IteratorProxy = createIteratorProxy(function () {
2135
1836
  var iterator = this.iterator;
@@ -2138,12 +1839,12 @@ var IteratorProxy = createIteratorProxy(function () {
2138
1839
 
2139
1840
  while (true) {
2140
1841
  if (inner = this.inner) try {
2141
- result = anObject$2(call$4(inner.next, inner.iterator));
1842
+ result = anObject(call(inner.next, inner.iterator));
2142
1843
  if (!result.done) return result.value;
2143
1844
  this.inner = null;
2144
1845
  } catch (error) { iteratorClose(iterator, 'throw', error); }
2145
1846
 
2146
- result = anObject$2(call$4(this.next, iterator));
1847
+ result = anObject(call(this.next, iterator));
2147
1848
 
2148
1849
  if (this.done = !!result.done) return;
2149
1850
 
@@ -2155,10 +1856,10 @@ var IteratorProxy = createIteratorProxy(function () {
2155
1856
 
2156
1857
  // `Iterator.prototype.flatMap` method
2157
1858
  // https://github.com/tc39/proposal-iterator-helpers
2158
- $$7({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
1859
+ $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
2159
1860
  flatMap: function flatMap(mapper) {
2160
- anObject$2(this);
2161
- aCallable$5(mapper);
1861
+ anObject(this);
1862
+ aCallable(mapper);
2162
1863
  return new IteratorProxy(getIteratorDirect(this), {
2163
1864
  mapper: mapper,
2164
1865
  inner: null
@@ -2252,958 +1953,6 @@ function zohoRecruitSearchRecordsCriteriaEntryToCriteriaString(entry) {
2252
1953
  return `(${entry.field}:${entry.filter}:${escapedValue})`;
2253
1954
  }
2254
1955
 
2255
- var global$8 = global$j;
2256
- var classof = classofRaw$2;
2257
-
2258
- var engineIsNode = classof(global$8.process) === 'process';
2259
-
2260
- var uncurryThis$2 = functionUncurryThis;
2261
- var aCallable$4 = aCallable$d;
2262
-
2263
- var functionUncurryThisAccessor = function (object, key, method) {
2264
- try {
2265
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2266
- return uncurryThis$2(aCallable$4(Object.getOwnPropertyDescriptor(object, key)[method]));
2267
- } catch (error) { /* empty */ }
2268
- };
2269
-
2270
- var isObject$5 = isObject$d;
2271
-
2272
- var isPossiblePrototype$1 = function (argument) {
2273
- return isObject$5(argument) || argument === null;
2274
- };
2275
-
2276
- var isPossiblePrototype = isPossiblePrototype$1;
2277
-
2278
- var $String = String;
2279
- var $TypeError$3 = TypeError;
2280
-
2281
- var aPossiblePrototype$1 = function (argument) {
2282
- if (isPossiblePrototype(argument)) return argument;
2283
- throw new $TypeError$3("Can't set " + $String(argument) + ' as a prototype');
2284
- };
2285
-
2286
- /* eslint-disable no-proto -- safe */
2287
- var uncurryThisAccessor = functionUncurryThisAccessor;
2288
- var isObject$4 = isObject$d;
2289
- var requireObjectCoercible = requireObjectCoercible$3;
2290
- var aPossiblePrototype = aPossiblePrototype$1;
2291
-
2292
- // `Object.setPrototypeOf` method
2293
- // https://tc39.es/ecma262/#sec-object.setprototypeof
2294
- // Works with __proto__ only. Old v8 can't work with null proto objects.
2295
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
2296
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
2297
- var CORRECT_SETTER = false;
2298
- var test = {};
2299
- var setter;
2300
- try {
2301
- setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
2302
- setter(test, []);
2303
- CORRECT_SETTER = test instanceof Array;
2304
- } catch (error) { /* empty */ }
2305
- return function setPrototypeOf(O, proto) {
2306
- requireObjectCoercible(O);
2307
- aPossiblePrototype(proto);
2308
- if (!isObject$4(O)) return O;
2309
- if (CORRECT_SETTER) setter(O, proto);
2310
- else O.__proto__ = proto;
2311
- return O;
2312
- };
2313
- }() : undefined);
2314
-
2315
- var defineProperty$1 = objectDefineProperty.f;
2316
- var hasOwn$2 = hasOwnProperty_1;
2317
- var wellKnownSymbol$4 = wellKnownSymbol$f;
2318
-
2319
- var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
2320
-
2321
- var setToStringTag$1 = function (target, TAG, STATIC) {
2322
- if (target && !STATIC) target = target.prototype;
2323
- if (target && !hasOwn$2(target, TO_STRING_TAG)) {
2324
- defineProperty$1(target, TO_STRING_TAG, { configurable: true, value: TAG });
2325
- }
2326
- };
2327
-
2328
- var getBuiltIn$3 = getBuiltIn$8;
2329
- var defineBuiltInAccessor = defineBuiltInAccessor$2;
2330
- var wellKnownSymbol$3 = wellKnownSymbol$f;
2331
- var DESCRIPTORS$2 = descriptors;
2332
-
2333
- var SPECIES$2 = wellKnownSymbol$3('species');
2334
-
2335
- var setSpecies$1 = function (CONSTRUCTOR_NAME) {
2336
- var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
2337
-
2338
- if (DESCRIPTORS$2 && Constructor && !Constructor[SPECIES$2]) {
2339
- defineBuiltInAccessor(Constructor, SPECIES$2, {
2340
- configurable: true,
2341
- get: function () { return this; }
2342
- });
2343
- }
2344
- };
2345
-
2346
- var isConstructor = isConstructor$2;
2347
- var tryToString = tryToString$4;
2348
-
2349
- var $TypeError$2 = TypeError;
2350
-
2351
- // `Assert: IsConstructor(argument) is true`
2352
- var aConstructor$1 = function (argument) {
2353
- if (isConstructor(argument)) return argument;
2354
- throw new $TypeError$2(tryToString(argument) + ' is not a constructor');
2355
- };
2356
-
2357
- var anObject$1 = anObject$i;
2358
- var aConstructor = aConstructor$1;
2359
- var isNullOrUndefined = isNullOrUndefined$4;
2360
- var wellKnownSymbol$2 = wellKnownSymbol$f;
2361
-
2362
- var SPECIES$1 = wellKnownSymbol$2('species');
2363
-
2364
- // `SpeciesConstructor` abstract operation
2365
- // https://tc39.es/ecma262/#sec-speciesconstructor
2366
- var speciesConstructor$1 = function (O, defaultConstructor) {
2367
- var C = anObject$1(O).constructor;
2368
- var S;
2369
- return C === undefined || isNullOrUndefined(S = anObject$1(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
2370
- };
2371
-
2372
- var NATIVE_BIND = functionBindNative;
2373
-
2374
- var FunctionPrototype = Function.prototype;
2375
- var apply$2 = FunctionPrototype.apply;
2376
- var call$3 = FunctionPrototype.call;
2377
-
2378
- // eslint-disable-next-line es/no-reflect -- safe
2379
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$3.bind(apply$2) : function () {
2380
- return call$3.apply(apply$2, arguments);
2381
- });
2382
-
2383
- var uncurryThis$1 = functionUncurryThis;
2384
-
2385
- var arraySlice$1 = uncurryThis$1([].slice);
2386
-
2387
- var $TypeError$1 = TypeError;
2388
-
2389
- var validateArgumentsLength$1 = function (passed, required) {
2390
- if (passed < required) throw new $TypeError$1('Not enough arguments');
2391
- return passed;
2392
- };
2393
-
2394
- var userAgent$2 = engineUserAgent;
2395
-
2396
- // eslint-disable-next-line redos/no-vulnerable -- safe
2397
- var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
2398
-
2399
- var global$7 = global$j;
2400
- var apply$1 = functionApply;
2401
- var bind$2 = functionBindContext;
2402
- var isCallable$4 = isCallable$k;
2403
- var hasOwn$1 = hasOwnProperty_1;
2404
- var fails$1 = fails$h;
2405
- var html = html$2;
2406
- var arraySlice = arraySlice$1;
2407
- var createElement = documentCreateElement$1;
2408
- var validateArgumentsLength = validateArgumentsLength$1;
2409
- var IS_IOS$1 = engineIsIos;
2410
- var IS_NODE$3 = engineIsNode;
2411
-
2412
- var set = global$7.setImmediate;
2413
- var clear = global$7.clearImmediate;
2414
- var process$2 = global$7.process;
2415
- var Dispatch = global$7.Dispatch;
2416
- var Function$1 = global$7.Function;
2417
- var MessageChannel = global$7.MessageChannel;
2418
- var String$1 = global$7.String;
2419
- var counter = 0;
2420
- var queue$2 = {};
2421
- var ONREADYSTATECHANGE = 'onreadystatechange';
2422
- var $location, defer, channel, port;
2423
-
2424
- fails$1(function () {
2425
- // Deno throws a ReferenceError on `location` access without `--location` flag
2426
- $location = global$7.location;
2427
- });
2428
-
2429
- var run = function (id) {
2430
- if (hasOwn$1(queue$2, id)) {
2431
- var fn = queue$2[id];
2432
- delete queue$2[id];
2433
- fn();
2434
- }
2435
- };
2436
-
2437
- var runner = function (id) {
2438
- return function () {
2439
- run(id);
2440
- };
2441
- };
2442
-
2443
- var eventListener = function (event) {
2444
- run(event.data);
2445
- };
2446
-
2447
- var globalPostMessageDefer = function (id) {
2448
- // old engines have not location.origin
2449
- global$7.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2450
- };
2451
-
2452
- // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
2453
- if (!set || !clear) {
2454
- set = function setImmediate(handler) {
2455
- validateArgumentsLength(arguments.length, 1);
2456
- var fn = isCallable$4(handler) ? handler : Function$1(handler);
2457
- var args = arraySlice(arguments, 1);
2458
- queue$2[++counter] = function () {
2459
- apply$1(fn, undefined, args);
2460
- };
2461
- defer(counter);
2462
- return counter;
2463
- };
2464
- clear = function clearImmediate(id) {
2465
- delete queue$2[id];
2466
- };
2467
- // Node.js 0.8-
2468
- if (IS_NODE$3) {
2469
- defer = function (id) {
2470
- process$2.nextTick(runner(id));
2471
- };
2472
- // Sphere (JS game engine) Dispatch API
2473
- } else if (Dispatch && Dispatch.now) {
2474
- defer = function (id) {
2475
- Dispatch.now(runner(id));
2476
- };
2477
- // Browsers with MessageChannel, includes WebWorkers
2478
- // except iOS - https://github.com/zloirock/core-js/issues/624
2479
- } else if (MessageChannel && !IS_IOS$1) {
2480
- channel = new MessageChannel();
2481
- port = channel.port2;
2482
- channel.port1.onmessage = eventListener;
2483
- defer = bind$2(port.postMessage, port);
2484
- // Browsers with postMessage, skip WebWorkers
2485
- // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2486
- } else if (
2487
- global$7.addEventListener &&
2488
- isCallable$4(global$7.postMessage) &&
2489
- !global$7.importScripts &&
2490
- $location && $location.protocol !== 'file:' &&
2491
- !fails$1(globalPostMessageDefer)
2492
- ) {
2493
- defer = globalPostMessageDefer;
2494
- global$7.addEventListener('message', eventListener, false);
2495
- // IE8-
2496
- } else if (ONREADYSTATECHANGE in createElement('script')) {
2497
- defer = function (id) {
2498
- html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
2499
- html.removeChild(this);
2500
- run(id);
2501
- };
2502
- };
2503
- // Rest old browsers
2504
- } else {
2505
- defer = function (id) {
2506
- setTimeout(runner(id), 0);
2507
- };
2508
- }
2509
- }
2510
-
2511
- var task$1 = {
2512
- set: set,
2513
- clear: clear
2514
- };
2515
-
2516
- var global$6 = global$j;
2517
- var DESCRIPTORS$1 = descriptors;
2518
-
2519
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2520
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2521
-
2522
- // Avoid NodeJS experimental warning
2523
- var safeGetBuiltIn$1 = function (name) {
2524
- if (!DESCRIPTORS$1) return global$6[name];
2525
- var descriptor = getOwnPropertyDescriptor(global$6, name);
2526
- return descriptor && descriptor.value;
2527
- };
2528
-
2529
- var Queue$2 = function () {
2530
- this.head = null;
2531
- this.tail = null;
2532
- };
2533
-
2534
- Queue$2.prototype = {
2535
- add: function (item) {
2536
- var entry = { item: item, next: null };
2537
- var tail = this.tail;
2538
- if (tail) tail.next = entry;
2539
- else this.head = entry;
2540
- this.tail = entry;
2541
- },
2542
- get: function () {
2543
- var entry = this.head;
2544
- if (entry) {
2545
- var next = this.head = entry.next;
2546
- if (next === null) this.tail = null;
2547
- return entry.item;
2548
- }
2549
- }
2550
- };
2551
-
2552
- var queue$1 = Queue$2;
2553
-
2554
- var userAgent$1 = engineUserAgent;
2555
-
2556
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
2557
-
2558
- var userAgent = engineUserAgent;
2559
-
2560
- var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2561
-
2562
- var global$5 = global$j;
2563
- var safeGetBuiltIn = safeGetBuiltIn$1;
2564
- var bind$1 = functionBindContext;
2565
- var macrotask = task$1.set;
2566
- var Queue$1 = queue$1;
2567
- var IS_IOS = engineIsIos;
2568
- var IS_IOS_PEBBLE = engineIsIosPebble;
2569
- var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
2570
- var IS_NODE$2 = engineIsNode;
2571
-
2572
- var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;
2573
- var document$2 = global$5.document;
2574
- var process$1 = global$5.process;
2575
- var Promise$1 = global$5.Promise;
2576
- var microtask$1 = safeGetBuiltIn('queueMicrotask');
2577
- var notify$1, toggle, node, promise, then;
2578
-
2579
- // modern engines have queueMicrotask method
2580
- if (!microtask$1) {
2581
- var queue = new Queue$1();
2582
-
2583
- var flush = function () {
2584
- var parent, fn;
2585
- if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
2586
- while (fn = queue.get()) try {
2587
- fn();
2588
- } catch (error) {
2589
- if (queue.head) notify$1();
2590
- throw error;
2591
- }
2592
- if (parent) parent.enter();
2593
- };
2594
-
2595
- // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
2596
- // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
2597
- if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
2598
- toggle = true;
2599
- node = document$2.createTextNode('');
2600
- new MutationObserver(flush).observe(node, { characterData: true });
2601
- notify$1 = function () {
2602
- node.data = toggle = !toggle;
2603
- };
2604
- // environments with maybe non-completely correct, but existent Promise
2605
- } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
2606
- // Promise.resolve without an argument throws an error in LG WebOS 2
2607
- promise = Promise$1.resolve(undefined);
2608
- // workaround of WebKit ~ iOS Safari 10.1 bug
2609
- promise.constructor = Promise$1;
2610
- then = bind$1(promise.then, promise);
2611
- notify$1 = function () {
2612
- then(flush);
2613
- };
2614
- // Node.js without promises
2615
- } else if (IS_NODE$2) {
2616
- notify$1 = function () {
2617
- process$1.nextTick(flush);
2618
- };
2619
- // for other environments - macrotask based on:
2620
- // - setImmediate
2621
- // - MessageChannel
2622
- // - window.postMessage
2623
- // - onreadystatechange
2624
- // - setTimeout
2625
- } else {
2626
- // `webpack` dev server bug on IE global methods - use bind(fn, global)
2627
- macrotask = bind$1(macrotask, global$5);
2628
- notify$1 = function () {
2629
- macrotask(flush);
2630
- };
2631
- }
2632
-
2633
- microtask$1 = function (fn) {
2634
- if (!queue.head) notify$1();
2635
- queue.add(fn);
2636
- };
2637
- }
2638
-
2639
- var microtask_1 = microtask$1;
2640
-
2641
- var hostReportErrors$1 = function (a, b) {
2642
- try {
2643
- // eslint-disable-next-line no-console -- safe
2644
- arguments.length === 1 ? console.error(a) : console.error(a, b);
2645
- } catch (error) { /* empty */ }
2646
- };
2647
-
2648
- var perform$3 = function (exec) {
2649
- try {
2650
- return { error: false, value: exec() };
2651
- } catch (error) {
2652
- return { error: true, value: error };
2653
- }
2654
- };
2655
-
2656
- var global$4 = global$j;
2657
-
2658
- var promiseNativeConstructor = global$4.Promise;
2659
-
2660
- /* global Deno -- Deno case */
2661
- var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
2662
-
2663
- var IS_DENO$1 = engineIsDeno;
2664
- var IS_NODE$1 = engineIsNode;
2665
-
2666
- var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
2667
- && typeof window == 'object'
2668
- && typeof document == 'object';
2669
-
2670
- var global$3 = global$j;
2671
- var NativePromiseConstructor$3 = promiseNativeConstructor;
2672
- var isCallable$3 = isCallable$k;
2673
- var isForced = isForced_1;
2674
- var inspectSource = inspectSource$3;
2675
- var wellKnownSymbol$1 = wellKnownSymbol$f;
2676
- var IS_BROWSER = engineIsBrowser;
2677
- var IS_DENO = engineIsDeno;
2678
- var V8_VERSION = engineV8Version;
2679
-
2680
- NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
2681
- var SPECIES = wellKnownSymbol$1('species');
2682
- var SUBCLASSING = false;
2683
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$3.PromiseRejectionEvent);
2684
-
2685
- var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
2686
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
2687
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
2688
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
2689
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
2690
- // We can't detect it synchronously, so just check versions
2691
- if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
2692
- // We can't use @@species feature detection in V8 since it causes
2693
- // deoptimization and performance degradation
2694
- // https://github.com/zloirock/core-js/issues/679
2695
- if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
2696
- // Detect correctness of subclassing with @@species support
2697
- var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
2698
- var FakePromise = function (exec) {
2699
- exec(function () { /* empty */ }, function () { /* empty */ });
2700
- };
2701
- var constructor = promise.constructor = {};
2702
- constructor[SPECIES] = FakePromise;
2703
- SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2704
- if (!SUBCLASSING) return true;
2705
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2706
- } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
2707
- });
2708
-
2709
- var promiseConstructorDetection = {
2710
- CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
2711
- REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
2712
- SUBCLASSING: SUBCLASSING
2713
- };
2714
-
2715
- var newPromiseCapability$2 = {};
2716
-
2717
- var aCallable$3 = aCallable$d;
2718
-
2719
- var $TypeError = TypeError;
2720
-
2721
- var PromiseCapability = function (C) {
2722
- var resolve, reject;
2723
- this.promise = new C(function ($$resolve, $$reject) {
2724
- if (resolve !== undefined || reject !== undefined) throw new $TypeError('Bad Promise constructor');
2725
- resolve = $$resolve;
2726
- reject = $$reject;
2727
- });
2728
- this.resolve = aCallable$3(resolve);
2729
- this.reject = aCallable$3(reject);
2730
- };
2731
-
2732
- // `NewPromiseCapability` abstract operation
2733
- // https://tc39.es/ecma262/#sec-newpromisecapability
2734
- newPromiseCapability$2.f = function (C) {
2735
- return new PromiseCapability(C);
2736
- };
2737
-
2738
- var $$6 = _export;
2739
- var IS_NODE = engineIsNode;
2740
- var global$2 = global$j;
2741
- var call$2 = functionCall;
2742
- var defineBuiltIn$1 = defineBuiltIn$6;
2743
- var setPrototypeOf$2 = objectSetPrototypeOf;
2744
- var setToStringTag = setToStringTag$1;
2745
- var setSpecies = setSpecies$1;
2746
- var aCallable$2 = aCallable$d;
2747
- var isCallable$2 = isCallable$k;
2748
- var isObject$3 = isObject$d;
2749
- var anInstance = anInstance$2;
2750
- var speciesConstructor = speciesConstructor$1;
2751
- var task = task$1.set;
2752
- var microtask = microtask_1;
2753
- var hostReportErrors = hostReportErrors$1;
2754
- var perform$2 = perform$3;
2755
- var Queue = queue$1;
2756
- var InternalStateModule = internalState;
2757
- var NativePromiseConstructor$2 = promiseNativeConstructor;
2758
- var PromiseConstructorDetection = promiseConstructorDetection;
2759
- var newPromiseCapabilityModule$3 = newPromiseCapability$2;
2760
-
2761
- var PROMISE = 'Promise';
2762
- var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
2763
- var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
2764
- var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
2765
- var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
2766
- var setInternalState = InternalStateModule.set;
2767
- var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
2768
- var PromiseConstructor = NativePromiseConstructor$2;
2769
- var PromisePrototype = NativePromisePrototype$1;
2770
- var TypeError$1 = global$2.TypeError;
2771
- var document$1 = global$2.document;
2772
- var process = global$2.process;
2773
- var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
2774
- var newGenericPromiseCapability = newPromiseCapability$1;
2775
-
2776
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$2.dispatchEvent);
2777
- var UNHANDLED_REJECTION = 'unhandledrejection';
2778
- var REJECTION_HANDLED = 'rejectionhandled';
2779
- var PENDING = 0;
2780
- var FULFILLED = 1;
2781
- var REJECTED = 2;
2782
- var HANDLED = 1;
2783
- var UNHANDLED = 2;
2784
-
2785
- var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
2786
-
2787
- // helpers
2788
- var isThenable = function (it) {
2789
- var then;
2790
- return isObject$3(it) && isCallable$2(then = it.then) ? then : false;
2791
- };
2792
-
2793
- var callReaction = function (reaction, state) {
2794
- var value = state.value;
2795
- var ok = state.state === FULFILLED;
2796
- var handler = ok ? reaction.ok : reaction.fail;
2797
- var resolve = reaction.resolve;
2798
- var reject = reaction.reject;
2799
- var domain = reaction.domain;
2800
- var result, then, exited;
2801
- try {
2802
- if (handler) {
2803
- if (!ok) {
2804
- if (state.rejection === UNHANDLED) onHandleUnhandled(state);
2805
- state.rejection = HANDLED;
2806
- }
2807
- if (handler === true) result = value;
2808
- else {
2809
- if (domain) domain.enter();
2810
- result = handler(value); // can throw
2811
- if (domain) {
2812
- domain.exit();
2813
- exited = true;
2814
- }
2815
- }
2816
- if (result === reaction.promise) {
2817
- reject(new TypeError$1('Promise-chain cycle'));
2818
- } else if (then = isThenable(result)) {
2819
- call$2(then, result, resolve, reject);
2820
- } else resolve(result);
2821
- } else reject(value);
2822
- } catch (error) {
2823
- if (domain && !exited) domain.exit();
2824
- reject(error);
2825
- }
2826
- };
2827
-
2828
- var notify = function (state, isReject) {
2829
- if (state.notified) return;
2830
- state.notified = true;
2831
- microtask(function () {
2832
- var reactions = state.reactions;
2833
- var reaction;
2834
- while (reaction = reactions.get()) {
2835
- callReaction(reaction, state);
2836
- }
2837
- state.notified = false;
2838
- if (isReject && !state.rejection) onUnhandled(state);
2839
- });
2840
- };
2841
-
2842
- var dispatchEvent = function (name, promise, reason) {
2843
- var event, handler;
2844
- if (DISPATCH_EVENT) {
2845
- event = document$1.createEvent('Event');
2846
- event.promise = promise;
2847
- event.reason = reason;
2848
- event.initEvent(name, false, true);
2849
- global$2.dispatchEvent(event);
2850
- } else event = { promise: promise, reason: reason };
2851
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$2['on' + name])) handler(event);
2852
- else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
2853
- };
2854
-
2855
- var onUnhandled = function (state) {
2856
- call$2(task, global$2, function () {
2857
- var promise = state.facade;
2858
- var value = state.value;
2859
- var IS_UNHANDLED = isUnhandled(state);
2860
- var result;
2861
- if (IS_UNHANDLED) {
2862
- result = perform$2(function () {
2863
- if (IS_NODE) {
2864
- process.emit('unhandledRejection', value, promise);
2865
- } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
2866
- });
2867
- // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
2868
- state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
2869
- if (result.error) throw result.value;
2870
- }
2871
- });
2872
- };
2873
-
2874
- var isUnhandled = function (state) {
2875
- return state.rejection !== HANDLED && !state.parent;
2876
- };
2877
-
2878
- var onHandleUnhandled = function (state) {
2879
- call$2(task, global$2, function () {
2880
- var promise = state.facade;
2881
- if (IS_NODE) {
2882
- process.emit('rejectionHandled', promise);
2883
- } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
2884
- });
2885
- };
2886
-
2887
- var bind = function (fn, state, unwrap) {
2888
- return function (value) {
2889
- fn(state, value, unwrap);
2890
- };
2891
- };
2892
-
2893
- var internalReject = function (state, value, unwrap) {
2894
- if (state.done) return;
2895
- state.done = true;
2896
- if (unwrap) state = unwrap;
2897
- state.value = value;
2898
- state.state = REJECTED;
2899
- notify(state, true);
2900
- };
2901
-
2902
- var internalResolve = function (state, value, unwrap) {
2903
- if (state.done) return;
2904
- state.done = true;
2905
- if (unwrap) state = unwrap;
2906
- try {
2907
- if (state.facade === value) throw new TypeError$1("Promise can't be resolved itself");
2908
- var then = isThenable(value);
2909
- if (then) {
2910
- microtask(function () {
2911
- var wrapper = { done: false };
2912
- try {
2913
- call$2(then, value,
2914
- bind(internalResolve, wrapper, state),
2915
- bind(internalReject, wrapper, state)
2916
- );
2917
- } catch (error) {
2918
- internalReject(wrapper, error, state);
2919
- }
2920
- });
2921
- } else {
2922
- state.value = value;
2923
- state.state = FULFILLED;
2924
- notify(state, false);
2925
- }
2926
- } catch (error) {
2927
- internalReject({ done: false }, error, state);
2928
- }
2929
- };
2930
-
2931
- // constructor polyfill
2932
- if (FORCED_PROMISE_CONSTRUCTOR$4) {
2933
- // 25.4.3.1 Promise(executor)
2934
- PromiseConstructor = function Promise(executor) {
2935
- anInstance(this, PromisePrototype);
2936
- aCallable$2(executor);
2937
- call$2(Internal, this);
2938
- var state = getInternalPromiseState(this);
2939
- try {
2940
- executor(bind(internalResolve, state), bind(internalReject, state));
2941
- } catch (error) {
2942
- internalReject(state, error);
2943
- }
2944
- };
2945
-
2946
- PromisePrototype = PromiseConstructor.prototype;
2947
-
2948
- // eslint-disable-next-line no-unused-vars -- required for `.length`
2949
- Internal = function Promise(executor) {
2950
- setInternalState(this, {
2951
- type: PROMISE,
2952
- done: false,
2953
- notified: false,
2954
- parent: false,
2955
- reactions: new Queue(),
2956
- rejection: false,
2957
- state: PENDING,
2958
- value: undefined
2959
- });
2960
- };
2961
-
2962
- // `Promise.prototype.then` method
2963
- // https://tc39.es/ecma262/#sec-promise.prototype.then
2964
- Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
2965
- var state = getInternalPromiseState(this);
2966
- var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
2967
- state.parent = true;
2968
- reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
2969
- reaction.fail = isCallable$2(onRejected) && onRejected;
2970
- reaction.domain = IS_NODE ? process.domain : undefined;
2971
- if (state.state === PENDING) state.reactions.add(reaction);
2972
- else microtask(function () {
2973
- callReaction(reaction, state);
2974
- });
2975
- return reaction.promise;
2976
- });
2977
-
2978
- OwnPromiseCapability = function () {
2979
- var promise = new Internal();
2980
- var state = getInternalPromiseState(promise);
2981
- this.promise = promise;
2982
- this.resolve = bind(internalResolve, state);
2983
- this.reject = bind(internalReject, state);
2984
- };
2985
-
2986
- newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
2987
- return C === PromiseConstructor || C === PromiseWrapper
2988
- ? new OwnPromiseCapability(C)
2989
- : newGenericPromiseCapability(C);
2990
- };
2991
-
2992
- if (isCallable$2(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
2993
- nativeThen = NativePromisePrototype$1.then;
2994
-
2995
- if (!NATIVE_PROMISE_SUBCLASSING) {
2996
- // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
2997
- defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
2998
- var that = this;
2999
- return new PromiseConstructor(function (resolve, reject) {
3000
- call$2(nativeThen, that, resolve, reject);
3001
- }).then(onFulfilled, onRejected);
3002
- // https://github.com/zloirock/core-js/issues/640
3003
- }, { unsafe: true });
3004
- }
3005
-
3006
- // make `.constructor === Promise` work for native promise-based APIs
3007
- try {
3008
- delete NativePromisePrototype$1.constructor;
3009
- } catch (error) { /* empty */ }
3010
-
3011
- // make `instanceof Promise` work for native promise-based APIs
3012
- if (setPrototypeOf$2) {
3013
- setPrototypeOf$2(NativePromisePrototype$1, PromisePrototype);
3014
- }
3015
- }
3016
- }
3017
-
3018
- $$6({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
3019
- Promise: PromiseConstructor
3020
- });
3021
-
3022
- setToStringTag(PromiseConstructor, PROMISE, false);
3023
- setSpecies(PROMISE);
3024
-
3025
- var wellKnownSymbol = wellKnownSymbol$f;
3026
-
3027
- var ITERATOR = wellKnownSymbol('iterator');
3028
- var SAFE_CLOSING = false;
3029
-
3030
- try {
3031
- var called = 0;
3032
- var iteratorWithReturn = {
3033
- next: function () {
3034
- return { done: !!called++ };
3035
- },
3036
- 'return': function () {
3037
- SAFE_CLOSING = true;
3038
- }
3039
- };
3040
- iteratorWithReturn[ITERATOR] = function () {
3041
- return this;
3042
- };
3043
- // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
3044
- Array.from(iteratorWithReturn, function () { throw 2; });
3045
- } catch (error) { /* empty */ }
3046
-
3047
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
3048
- try {
3049
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
3050
- } catch (error) { return false; } // workaround of old WebKit + `eval` bug
3051
- var ITERATION_SUPPORT = false;
3052
- try {
3053
- var object = {};
3054
- object[ITERATOR] = function () {
3055
- return {
3056
- next: function () {
3057
- return { done: ITERATION_SUPPORT = true };
3058
- }
3059
- };
3060
- };
3061
- exec(object);
3062
- } catch (error) { /* empty */ }
3063
- return ITERATION_SUPPORT;
3064
- };
3065
-
3066
- var NativePromiseConstructor$1 = promiseNativeConstructor;
3067
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
3068
- var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
3069
-
3070
- var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
3071
- NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
3072
- });
3073
-
3074
- var $$5 = _export;
3075
- var call$1 = functionCall;
3076
- var aCallable$1 = aCallable$d;
3077
- var newPromiseCapabilityModule$2 = newPromiseCapability$2;
3078
- var perform$1 = perform$3;
3079
- var iterate$1 = iterate$3;
3080
- var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
3081
-
3082
- // `Promise.all` method
3083
- // https://tc39.es/ecma262/#sec-promise.all
3084
- $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
3085
- all: function all(iterable) {
3086
- var C = this;
3087
- var capability = newPromiseCapabilityModule$2.f(C);
3088
- var resolve = capability.resolve;
3089
- var reject = capability.reject;
3090
- var result = perform$1(function () {
3091
- var $promiseResolve = aCallable$1(C.resolve);
3092
- var values = [];
3093
- var counter = 0;
3094
- var remaining = 1;
3095
- iterate$1(iterable, function (promise) {
3096
- var index = counter++;
3097
- var alreadyCalled = false;
3098
- remaining++;
3099
- call$1($promiseResolve, C, promise).then(function (value) {
3100
- if (alreadyCalled) return;
3101
- alreadyCalled = true;
3102
- values[index] = value;
3103
- --remaining || resolve(values);
3104
- }, reject);
3105
- });
3106
- --remaining || resolve(values);
3107
- });
3108
- if (result.error) reject(result.value);
3109
- return capability.promise;
3110
- }
3111
- });
3112
-
3113
- var $$4 = _export;
3114
- var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
3115
- var NativePromiseConstructor = promiseNativeConstructor;
3116
- var getBuiltIn$2 = getBuiltIn$8;
3117
- var isCallable$1 = isCallable$k;
3118
- var defineBuiltIn = defineBuiltIn$6;
3119
-
3120
- var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
3121
-
3122
- // `Promise.prototype.catch` method
3123
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
3124
- $$4({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
3125
- 'catch': function (onRejected) {
3126
- return this.then(undefined, onRejected);
3127
- }
3128
- });
3129
-
3130
- // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
3131
- if (isCallable$1(NativePromiseConstructor)) {
3132
- var method = getBuiltIn$2('Promise').prototype['catch'];
3133
- if (NativePromisePrototype['catch'] !== method) {
3134
- defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
3135
- }
3136
- }
3137
-
3138
- var $$3 = _export;
3139
- var call = functionCall;
3140
- var aCallable = aCallable$d;
3141
- var newPromiseCapabilityModule$1 = newPromiseCapability$2;
3142
- var perform = perform$3;
3143
- var iterate = iterate$3;
3144
- var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
3145
-
3146
- // `Promise.race` method
3147
- // https://tc39.es/ecma262/#sec-promise.race
3148
- $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
3149
- race: function race(iterable) {
3150
- var C = this;
3151
- var capability = newPromiseCapabilityModule$1.f(C);
3152
- var reject = capability.reject;
3153
- var result = perform(function () {
3154
- var $promiseResolve = aCallable(C.resolve);
3155
- iterate(iterable, function (promise) {
3156
- call($promiseResolve, C, promise).then(capability.resolve, reject);
3157
- });
3158
- });
3159
- if (result.error) reject(result.value);
3160
- return capability.promise;
3161
- }
3162
- });
3163
-
3164
- var $$2 = _export;
3165
- var newPromiseCapabilityModule = newPromiseCapability$2;
3166
- var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
3167
-
3168
- // `Promise.reject` method
3169
- // https://tc39.es/ecma262/#sec-promise.reject
3170
- $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3171
- reject: function reject(r) {
3172
- var capability = newPromiseCapabilityModule.f(this);
3173
- var capabilityReject = capability.reject;
3174
- capabilityReject(r);
3175
- return capability.promise;
3176
- }
3177
- });
3178
-
3179
- var anObject = anObject$i;
3180
- var isObject$2 = isObject$d;
3181
- var newPromiseCapability = newPromiseCapability$2;
3182
-
3183
- var promiseResolve$1 = function (C, x) {
3184
- anObject(C);
3185
- if (isObject$2(x) && x.constructor === C) return x;
3186
- var promiseCapability = newPromiseCapability.f(C);
3187
- var resolve = promiseCapability.resolve;
3188
- resolve(x);
3189
- return promiseCapability.promise;
3190
- };
3191
-
3192
- var $$1 = _export;
3193
- var getBuiltIn$1 = getBuiltIn$8;
3194
- var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
3195
- var promiseResolve = promiseResolve$1;
3196
-
3197
- getBuiltIn$1('Promise');
3198
-
3199
- // `Promise.resolve` method
3200
- // https://tc39.es/ecma262/#sec-promise.resolve
3201
- $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
3202
- resolve: function resolve(x) {
3203
- return promiseResolve(this, x);
3204
- }
3205
- });
3206
-
3207
1956
  /**
3208
1957
  * A code used in some cases to denote success.
3209
1958
  */
@@ -3299,7 +2048,7 @@ function handleZohoErrorFetchFactory(parseZohoError, defaultLogError) {
3299
2048
  */
3300
2049
  function interceptZohoErrorResponseFactory(parseZohoServerErrorResponseData) {
3301
2050
  return (json, response) => {
3302
- const error = json == null ? void 0 : json.error;
2051
+ const error = json?.error;
3303
2052
  if (error != null) {
3304
2053
  const responseError = new FetchResponseError(response);
3305
2054
  if (responseError) {
@@ -3433,8 +2182,7 @@ function parseZohoServerErrorResponseData(errorResponseData, responseError) {
3433
2182
  * @returns
3434
2183
  */
3435
2184
  function tryFindZohoServerErrorData(errorResponseData, responseError) {
3436
- var _errorResponseData$er;
3437
- const error = (_errorResponseData$er = errorResponseData.error) != null ? _errorResponseData$er : !responseError.response.ok ? errorResponseData : undefined;
2185
+ const error = errorResponseData.error ?? (!responseError.response.ok ? errorResponseData : undefined);
3438
2186
  return error;
3439
2187
  }
3440
2188
 
@@ -3484,8 +2232,7 @@ function zohoRecruitRecordCrudError(error) {
3484
2232
  }
3485
2233
  function assertRecordDataArrayResultHasContent(moduleName, recordId) {
3486
2234
  return x => {
3487
- var _x$data;
3488
- if (x == null || !((_x$data = x.data) != null && _x$data.length)) {
2235
+ if (x == null || !x.data?.length) {
3489
2236
  throw new ZohoRecruitRecordNoContentError(moduleName, recordId);
3490
2237
  } else {
3491
2238
  return x;
@@ -3612,7 +2359,9 @@ function getRecords(context) {
3612
2359
  */
3613
2360
  function searchRecords(context) {
3614
2361
  function searchRecordsUrlSearchParams(input) {
3615
- const baseInput = Object.assign({}, input);
2362
+ const baseInput = {
2363
+ ...input
2364
+ };
3616
2365
  delete baseInput.criteria;
3617
2366
  if (input.criteria != null) {
3618
2367
  const criteriaString = zohoRecruitSearchRecordsCriteriaString(input.criteria);
@@ -3621,7 +2370,7 @@ function searchRecords(context) {
3621
2370
  const urlParams = zohoRecruitUrlSearchParamsMinusModule(baseInput);
3622
2371
  return urlParams;
3623
2372
  }
3624
- return input => context.fetchJson(`/v2/${input.module}/search?${searchRecordsUrlSearchParams(input).toString()}`, zohoRecruitApiFetchJsonInput('GET')).then(x => x != null ? x : {
2373
+ return input => context.fetchJson(`/v2/${input.module}/search?${searchRecordsUrlSearchParams(input).toString()}`, zohoRecruitApiFetchJsonInput('GET')).then(x => x ?? {
3625
2374
  data: [],
3626
2375
  info: {
3627
2376
  more_records: false
@@ -3660,7 +2409,8 @@ function createNotesForRecord(context) {
3660
2409
  notes
3661
2410
  } = input;
3662
2411
  const createNotesRequest = {
3663
- data: asArray(notes).map(x => Object.assign({}, x, {
2412
+ data: asArray(notes).map(x => ({
2413
+ ...x,
3664
2414
  se_module,
3665
2415
  Parent_Id
3666
2416
  }))
@@ -3722,7 +2472,7 @@ const zohoRecruitUrlSearchParams = makeUrlSearchParams;
3722
2472
  function zohoRecruitApiFetchJsonInput(method, body) {
3723
2473
  const result = {
3724
2474
  method,
3725
- body: body != null ? body : undefined
2475
+ body: body ?? undefined
3726
2476
  };
3727
2477
  return result;
3728
2478
  }
@@ -3750,215 +2500,6 @@ function zohoRecruitMultiRecordResult(input, results) {
3750
2500
  return result;
3751
2501
  }
3752
2502
 
3753
- var defineProperty = objectDefineProperty.f;
3754
-
3755
- var proxyAccessor$1 = function (Target, Source, key) {
3756
- key in Target || defineProperty(Target, key, {
3757
- configurable: true,
3758
- get: function () { return Source[key]; },
3759
- set: function (it) { Source[key] = it; }
3760
- });
3761
- };
3762
-
3763
- var isCallable = isCallable$k;
3764
- var isObject$1 = isObject$d;
3765
- var setPrototypeOf$1 = objectSetPrototypeOf;
3766
-
3767
- // makes subclassing work correct for wrapped built-ins
3768
- var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
3769
- var NewTarget, NewTargetPrototype;
3770
- if (
3771
- // it can work only with native `setPrototypeOf`
3772
- setPrototypeOf$1 &&
3773
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
3774
- isCallable(NewTarget = dummy.constructor) &&
3775
- NewTarget !== Wrapper &&
3776
- isObject$1(NewTargetPrototype = NewTarget.prototype) &&
3777
- NewTargetPrototype !== Wrapper.prototype
3778
- ) setPrototypeOf$1($this, NewTargetPrototype);
3779
- return $this;
3780
- };
3781
-
3782
- var toString = toString$1;
3783
-
3784
- var normalizeStringArgument$1 = function (argument, $default) {
3785
- return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
3786
- };
3787
-
3788
- var isObject = isObject$d;
3789
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$6;
3790
-
3791
- // `InstallErrorCause` abstract operation
3792
- // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
3793
- var installErrorCause$1 = function (O, options) {
3794
- if (isObject(options) && 'cause' in options) {
3795
- createNonEnumerableProperty$2(O, 'cause', options.cause);
3796
- }
3797
- };
3798
-
3799
- var uncurryThis = functionUncurryThis;
3800
-
3801
- var $Error = Error;
3802
- var replace = uncurryThis(''.replace);
3803
-
3804
- var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
3805
- // eslint-disable-next-line redos/no-vulnerable -- safe
3806
- var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
3807
- var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
3808
-
3809
- var errorStackClear = function (stack, dropEntries) {
3810
- if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
3811
- while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
3812
- } return stack;
3813
- };
3814
-
3815
- var fails = fails$h;
3816
- var createPropertyDescriptor = createPropertyDescriptor$4;
3817
-
3818
- var errorStackInstallable = !fails(function () {
3819
- var error = new Error('a');
3820
- if (!('stack' in error)) return true;
3821
- // eslint-disable-next-line es/no-object-defineproperty -- safe
3822
- Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
3823
- return error.stack !== 7;
3824
- });
3825
-
3826
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
3827
- var clearErrorStack = errorStackClear;
3828
- var ERROR_STACK_INSTALLABLE = errorStackInstallable;
3829
-
3830
- // non-standard V8
3831
- var captureStackTrace = Error.captureStackTrace;
3832
-
3833
- var errorStackInstall = function (error, C, stack, dropEntries) {
3834
- if (ERROR_STACK_INSTALLABLE) {
3835
- if (captureStackTrace) captureStackTrace(error, C);
3836
- else createNonEnumerableProperty$1(error, 'stack', clearErrorStack(stack, dropEntries));
3837
- }
3838
- };
3839
-
3840
- var getBuiltIn = getBuiltIn$8;
3841
- var hasOwn = hasOwnProperty_1;
3842
- var createNonEnumerableProperty = createNonEnumerableProperty$6;
3843
- var isPrototypeOf = objectIsPrototypeOf;
3844
- var setPrototypeOf = objectSetPrototypeOf;
3845
- var copyConstructorProperties = copyConstructorProperties$2;
3846
- var proxyAccessor = proxyAccessor$1;
3847
- var inheritIfRequired = inheritIfRequired$1;
3848
- var normalizeStringArgument = normalizeStringArgument$1;
3849
- var installErrorCause = installErrorCause$1;
3850
- var installErrorStack = errorStackInstall;
3851
- var DESCRIPTORS = descriptors;
3852
-
3853
- var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
3854
- var STACK_TRACE_LIMIT = 'stackTraceLimit';
3855
- var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
3856
- var path = FULL_NAME.split('.');
3857
- var ERROR_NAME = path[path.length - 1];
3858
- var OriginalError = getBuiltIn.apply(null, path);
3859
-
3860
- if (!OriginalError) return;
3861
-
3862
- var OriginalErrorPrototype = OriginalError.prototype;
3863
-
3864
- // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
3865
- if (hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
3866
-
3867
- if (!FORCED) return OriginalError;
3868
-
3869
- var BaseError = getBuiltIn('Error');
3870
-
3871
- var WrappedError = wrapper(function (a, b) {
3872
- var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
3873
- var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
3874
- if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
3875
- installErrorStack(result, WrappedError, result.stack, 2);
3876
- if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
3877
- if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
3878
- return result;
3879
- });
3880
-
3881
- WrappedError.prototype = OriginalErrorPrototype;
3882
-
3883
- if (ERROR_NAME !== 'Error') {
3884
- if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
3885
- else copyConstructorProperties(WrappedError, BaseError, { name: true });
3886
- } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
3887
- proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
3888
- proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
3889
- }
3890
-
3891
- copyConstructorProperties(WrappedError, OriginalError);
3892
-
3893
- try {
3894
- // Safari 13- bug: WebAssembly errors does not have a proper `.name`
3895
- if (OriginalErrorPrototype.name !== ERROR_NAME) {
3896
- createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);
3897
- }
3898
- OriginalErrorPrototype.constructor = WrappedError;
3899
- } catch (error) { /* empty */ }
3900
-
3901
- return WrappedError;
3902
- };
3903
-
3904
- /* eslint-disable no-unused-vars -- required for functions `.length` */
3905
- var $ = _export;
3906
- var global$1 = global$j;
3907
- var apply = functionApply;
3908
- var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
3909
-
3910
- var WEB_ASSEMBLY = 'WebAssembly';
3911
- var WebAssembly = global$1[WEB_ASSEMBLY];
3912
-
3913
- // eslint-disable-next-line es/no-error-cause -- feature detection
3914
- var FORCED = new Error('e', { cause: 7 }).cause !== 7;
3915
-
3916
- var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
3917
- var O = {};
3918
- O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
3919
- $({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
3920
- };
3921
-
3922
- var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
3923
- if (WebAssembly && WebAssembly[ERROR_NAME]) {
3924
- var O = {};
3925
- O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
3926
- $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
3927
- }
3928
- };
3929
-
3930
- // https://tc39.es/ecma262/#sec-nativeerror
3931
- exportGlobalErrorCauseWrapper('Error', function (init) {
3932
- return function Error(message) { return apply(init, this, arguments); };
3933
- });
3934
- exportGlobalErrorCauseWrapper('EvalError', function (init) {
3935
- return function EvalError(message) { return apply(init, this, arguments); };
3936
- });
3937
- exportGlobalErrorCauseWrapper('RangeError', function (init) {
3938
- return function RangeError(message) { return apply(init, this, arguments); };
3939
- });
3940
- exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
3941
- return function ReferenceError(message) { return apply(init, this, arguments); };
3942
- });
3943
- exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
3944
- return function SyntaxError(message) { return apply(init, this, arguments); };
3945
- });
3946
- exportGlobalErrorCauseWrapper('TypeError', function (init) {
3947
- return function TypeError(message) { return apply(init, this, arguments); };
3948
- });
3949
- exportGlobalErrorCauseWrapper('URIError', function (init) {
3950
- return function URIError(message) { return apply(init, this, arguments); };
3951
- });
3952
- exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
3953
- return function CompileError(message) { return apply(init, this, arguments); };
3954
- });
3955
- exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
3956
- return function LinkError(message) { return apply(init, this, arguments); };
3957
- });
3958
- exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
3959
- return function RuntimeError(message) { return apply(init, this, arguments); };
3960
- });
3961
-
3962
2503
  /**
3963
2504
  * Error in the following cases:
3964
2505
  * - the refresh token string is invalid
@@ -4020,7 +2561,7 @@ const handleZohoAccountsErrorFetch = handleZohoErrorFetchFactory(parseZohoAccoun
4020
2561
  function zohoAccessTokenStringFactory(zohoAccessTokenFactory) {
4021
2562
  return async () => {
4022
2563
  const token = await zohoAccessTokenFactory();
4023
- if (!(token != null && token.accessToken)) {
2564
+ if (!token?.accessToken) {
4024
2565
  throw new ZohoAccountsAuthFailureError();
4025
2566
  }
4026
2567
  return token.accessToken;
@@ -4031,10 +2572,9 @@ const DEFAULT_ZOHO_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION = headers => {
4031
2572
  console.warn(`zohoRateLimitedFetchHandler(): Too many requests made. The limit is ${headers.limit} requests per reset period. Will be reset at ${headers.resetAt}.`);
4032
2573
  };
4033
2574
  function zohoRateLimitedFetchHandler(config) {
4034
- var _config$onTooManyRequ, _config$maxRateLimit, _config$resetPeriod;
4035
- const onTooManyRequests = (config == null ? void 0 : config.onTooManyRequests) !== false ? (_config$onTooManyRequ = config == null ? void 0 : config.onTooManyRequests) != null ? _config$onTooManyRequ : DEFAULT_ZOHO_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION : undefined;
4036
- const defaultLimit = (_config$maxRateLimit = config == null ? void 0 : config.maxRateLimit) != null ? _config$maxRateLimit : DEFAULT_ZOHO_API_RATE_LIMIT;
4037
- const defaultResetPeriod = (_config$resetPeriod = config == null ? void 0 : config.resetPeriod) != null ? _config$resetPeriod : DEFAULT_ZOHO_API_RATE_LIMIT_RESET_PERIOD;
2575
+ const onTooManyRequests = config?.onTooManyRequests !== false ? config?.onTooManyRequests ?? DEFAULT_ZOHO_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION : undefined;
2576
+ const defaultLimit = config?.maxRateLimit ?? DEFAULT_ZOHO_API_RATE_LIMIT;
2577
+ const defaultResetPeriod = config?.resetPeriod ?? DEFAULT_ZOHO_API_RATE_LIMIT_RESET_PERIOD;
4038
2578
  function configForLimit(limit, resetAt) {
4039
2579
  return {
4040
2580
  limit: defaultLimit,
@@ -4074,7 +2614,7 @@ function zohoRateLimitedFetchHandler(config) {
4074
2614
  if (response.status === ZOHO_TOO_MANY_REQUESTS_HTTP_STATUS_CODE) {
4075
2615
  shouldRetry = true;
4076
2616
  try {
4077
- onTooManyRequests == null || onTooManyRequests(headerDetails, response, fetchResponseError);
2617
+ onTooManyRequests?.(headerDetails, response, fetchResponseError);
4078
2618
  } catch (e) {}
4079
2619
  }
4080
2620
  }
@@ -4126,9 +2666,10 @@ function zohoRecruitFactory(factoryConfig) {
4126
2666
  const recruitContext = {
4127
2667
  fetch,
4128
2668
  fetchJson,
4129
- config: Object.assign({}, config, {
2669
+ config: {
2670
+ ...config,
4130
2671
  apiUrl
4131
- }),
2672
+ },
4132
2673
  zohoRateLimiter: fetchHandler._rateLimiter
4133
2674
  };
4134
2675
  const zohoRecruit = {
@@ -4144,10 +2685,7 @@ function zohoRecruitFactory(factoryConfig) {
4144
2685
  * @returns
4145
2686
  */
4146
2687
  function accessToken(context) {
4147
- return input => {
4148
- var _input$client$clientI, _input$client, _input$client$clientS, _input$client2, _input$refreshToken;
4149
- return context.fetchJson(`/oauth/v2/token?grant_type=refresh_token&client_id=${(_input$client$clientI = input == null || (_input$client = input.client) == null ? void 0 : _input$client.clientId) != null ? _input$client$clientI : context.config.clientId}&client_secret=${(_input$client$clientS = input == null || (_input$client2 = input.client) == null ? void 0 : _input$client2.clientSecret) != null ? _input$client$clientS : context.config.clientSecret}&refresh_token=${(_input$refreshToken = input == null ? void 0 : input.refreshToken) != null ? _input$refreshToken : context.config.refreshToken}`, zohoAccountsApiFetchJsonInput('POST'));
4150
- };
2688
+ return input => context.fetchJson(`/oauth/v2/token?grant_type=refresh_token&client_id=${input?.client?.clientId ?? context.config.clientId}&client_secret=${input?.client?.clientSecret ?? context.config.clientSecret}&refresh_token=${input?.refreshToken ?? context.config.refreshToken}`, zohoAccountsApiFetchJsonInput('POST'));
4151
2689
  }
4152
2690
  function zohoAccountsApiFetchJsonInput(method, body) {
4153
2691
  const result = {
@@ -4190,7 +2728,6 @@ function zohoAccountsFactory(factoryConfig) {
4190
2728
  })
4191
2729
  } = factoryConfig;
4192
2730
  return config => {
4193
- var _config$apiUrl;
4194
2731
  if (!config.refreshToken) {
4195
2732
  throw new Error('ZohoAccountsConfig missing refreshToken.');
4196
2733
  } else if (!config.clientId) {
@@ -4198,7 +2735,7 @@ function zohoAccountsFactory(factoryConfig) {
4198
2735
  } else if (!config.clientSecret) {
4199
2736
  throw new Error('ZohoAccountsConfig missing clientSecret.');
4200
2737
  }
4201
- const apiUrl = zohoAccountsConfigApiUrl((_config$apiUrl = config.apiUrl) != null ? _config$apiUrl : 'us');
2738
+ const apiUrl = zohoAccountsConfigApiUrl(config.apiUrl ?? 'us');
4202
2739
  const baseFetch = fetchFactory({
4203
2740
  apiUrl
4204
2741
  });
@@ -4233,9 +2770,10 @@ function zohoAccountsFactory(factoryConfig) {
4233
2770
  fetch,
4234
2771
  fetchJson,
4235
2772
  loadAccessToken,
4236
- config: Object.assign({}, config, {
2773
+ config: {
2774
+ ...config,
4237
2775
  apiUrl
4238
- })
2776
+ }
4239
2777
  };
4240
2778
  const zohoAccounts = {
4241
2779
  accountsContext
@@ -4255,7 +2793,7 @@ function zohoAccountsZohoAccessTokenFactory(config) {
4255
2793
  accessTokenCache,
4256
2794
  tokenExpirationBuffer: inputTokenExpirationBuffer
4257
2795
  } = config;
4258
- const tokenExpirationBuffer = inputTokenExpirationBuffer != null ? inputTokenExpirationBuffer : MS_IN_MINUTE;
2796
+ const tokenExpirationBuffer = inputTokenExpirationBuffer ?? MS_IN_MINUTE;
4259
2797
  /**
4260
2798
  * Caches the token internally here until it expires.
4261
2799
  */
@@ -4263,7 +2801,7 @@ function zohoAccountsZohoAccessTokenFactory(config) {
4263
2801
  return async () => {
4264
2802
  // load from cache
4265
2803
  if (!currentToken) {
4266
- const cachedToken = await (accessTokenCache == null ? void 0 : accessTokenCache.loadCachedToken());
2804
+ const cachedToken = await accessTokenCache?.loadCachedToken();
4267
2805
  if (cachedToken) {
4268
2806
  currentToken = cachedToken;
4269
2807
  }
@@ -4285,7 +2823,7 @@ function zohoAccountsZohoAccessTokenFactory(config) {
4285
2823
  }
4286
2824
  if (currentToken) {
4287
2825
  try {
4288
- await (accessTokenCache == null ? void 0 : accessTokenCache.updateCachedToken(currentToken));
2826
+ await accessTokenCache?.updateCachedToken(currentToken);
4289
2827
  } catch (e) {
4290
2828
  // do nothing
4291
2829
  }