@dereekb/zoho 12.7.0 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/LICENSE +1 -1
  2. package/index.cjs.js +22 -2157
  3. package/index.esm.js +23 -2153
  4. package/nestjs/index.cjs.js +598 -0
  5. package/nestjs/index.esm.js +582 -0
  6. package/nestjs/package.json +19 -3
  7. package/nestjs/src/lib/crm/crm.api.d.ts +2 -1
  8. package/nestjs/src/lib/recruit/recruit.api.d.ts +3 -3
  9. package/package.json +14 -7
  10. package/src/lib/accounts/accounts.error.api.d.ts +2 -2
  11. package/src/lib/crm/crm.api.tags.d.ts +24 -0
  12. package/src/lib/crm/crm.criteria.d.ts +1 -1
  13. package/src/lib/crm/crm.error.api.d.ts +2 -2
  14. package/src/lib/recruit/recruit.api.candidates.d.ts +2 -26
  15. package/src/lib/recruit/recruit.error.api.d.ts +2 -2
  16. package/src/lib/zoho.error.api.d.ts +2 -2
  17. package/src/lib/zoho.type.d.ts +1 -18
  18. package/nestjs/CHANGELOG.md +0 -468
  19. package/nestjs/README.md +0 -11
  20. package/nestjs/src/index.js +0 -5
  21. package/nestjs/src/index.js.map +0 -1
  22. package/nestjs/src/lib/accounts/accounts.api.js +0 -38
  23. package/nestjs/src/lib/accounts/accounts.api.js.map +0 -1
  24. package/nestjs/src/lib/accounts/accounts.config.js +0 -75
  25. package/nestjs/src/lib/accounts/accounts.config.js.map +0 -1
  26. package/nestjs/src/lib/accounts/accounts.service.js +0 -240
  27. package/nestjs/src/lib/accounts/accounts.service.js.map +0 -1
  28. package/nestjs/src/lib/accounts/index.js +0 -7
  29. package/nestjs/src/lib/accounts/index.js.map +0 -1
  30. package/nestjs/src/lib/crm/crm.api.js +0 -115
  31. package/nestjs/src/lib/crm/crm.api.js.map +0 -1
  32. package/nestjs/src/lib/crm/crm.config.js +0 -16
  33. package/nestjs/src/lib/crm/crm.config.js.map +0 -1
  34. package/nestjs/src/lib/crm/crm.module.js +0 -61
  35. package/nestjs/src/lib/crm/crm.module.js.map +0 -1
  36. package/nestjs/src/lib/crm/index.js +0 -7
  37. package/nestjs/src/lib/crm/index.js.map +0 -1
  38. package/nestjs/src/lib/index.js +0 -7
  39. package/nestjs/src/lib/index.js.map +0 -1
  40. package/nestjs/src/lib/recruit/index.js +0 -7
  41. package/nestjs/src/lib/recruit/index.js.map +0 -1
  42. package/nestjs/src/lib/recruit/recruit.api.js +0 -130
  43. package/nestjs/src/lib/recruit/recruit.api.js.map +0 -1
  44. package/nestjs/src/lib/recruit/recruit.config.js +0 -16
  45. package/nestjs/src/lib/recruit/recruit.config.js.map +0 -1
  46. package/nestjs/src/lib/recruit/recruit.module.js +0 -61
  47. package/nestjs/src/lib/recruit/recruit.module.js.map +0 -1
  48. package/nestjs/src/lib/zoho.config.js +0 -52
  49. package/nestjs/src/lib/zoho.config.js.map +0 -1
  50. /package/{index.cjs.d.ts → index.d.ts} +0 -0
  51. /package/{index.esm.d.ts → nestjs/index.d.ts} +0 -0
package/index.cjs.js CHANGED
@@ -1,1659 +1,16 @@
1
1
  'use strict';
2
2
 
3
+ require('core-js/modules/es.iterator.constructor.js');
4
+ require('core-js/modules/es.iterator.filter.js');
5
+ require('core-js/modules/es.iterator.for-each.js');
3
6
  var util = require('@dereekb/util');
4
7
  var fetch = require('@dereekb/util/fetch');
8
+ require('core-js/modules/es.iterator.flat-map.js');
9
+ require('core-js/modules/es.iterator.map.js');
5
10
  var makeError = require('make-error');
6
-
7
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
-
9
- var check = function (it) {
10
- return it && it.Math === Math && it;
11
- };
12
-
13
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
14
- var global$b =
15
- // eslint-disable-next-line es/no-global-this -- safe
16
- check(typeof globalThis == 'object' && globalThis) ||
17
- check(typeof window == 'object' && window) ||
18
- // eslint-disable-next-line no-restricted-globals -- safe
19
- check(typeof self == 'object' && self) ||
20
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
21
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22
- // eslint-disable-next-line no-new-func -- fallback
23
- (function () { return this; })() || Function('return this')();
24
-
25
- var objectGetOwnPropertyDescriptor = {};
26
-
27
- var fails$c = function (exec) {
28
- try {
29
- return !!exec();
30
- } catch (error) {
31
- return true;
32
- }
33
- };
34
-
35
- var fails$b = fails$c;
36
-
37
- // Detect IE8's incomplete defineProperty implementation
38
- var descriptors = !fails$b(function () {
39
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
40
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
41
- });
42
-
43
- var fails$a = fails$c;
44
-
45
- var functionBindNative = !fails$a(function () {
46
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
47
- var test = (function () { /* empty */ }).bind();
48
- // eslint-disable-next-line no-prototype-builtins -- safe
49
- return typeof test != 'function' || test.hasOwnProperty('prototype');
50
- });
51
-
52
- var NATIVE_BIND$2 = functionBindNative;
53
-
54
- var call$e = Function.prototype.call;
55
-
56
- var functionCall = NATIVE_BIND$2 ? call$e.bind(call$e) : function () {
57
- return call$e.apply(call$e, arguments);
58
- };
59
-
60
- var objectPropertyIsEnumerable = {};
61
-
62
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
63
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
64
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
65
-
66
- // Nashorn ~ JDK8 bug
67
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
68
-
69
- // `Object.prototype.propertyIsEnumerable` method implementation
70
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
71
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
72
- var descriptor = getOwnPropertyDescriptor$1(this, V);
73
- return !!descriptor && descriptor.enumerable;
74
- } : $propertyIsEnumerable;
75
-
76
- var createPropertyDescriptor$3 = function (bitmap, value) {
77
- return {
78
- enumerable: !(bitmap & 1),
79
- configurable: !(bitmap & 2),
80
- writable: !(bitmap & 4),
81
- value: value
82
- };
83
- };
84
-
85
- var NATIVE_BIND$1 = functionBindNative;
86
-
87
- var FunctionPrototype$1 = Function.prototype;
88
- var call$d = FunctionPrototype$1.call;
89
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$d, call$d);
90
-
91
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
92
- return function () {
93
- return call$d.apply(fn, arguments);
94
- };
95
- };
96
-
97
- var uncurryThis$d = functionUncurryThis;
98
-
99
- var toString$1 = uncurryThis$d({}.toString);
100
- var stringSlice$1 = uncurryThis$d(''.slice);
101
-
102
- var classofRaw$2 = function (it) {
103
- return stringSlice$1(toString$1(it), 8, -1);
104
- };
105
-
106
- var uncurryThis$c = functionUncurryThis;
107
- var fails$9 = fails$c;
108
- var classof$2 = classofRaw$2;
109
-
110
- var $Object$4 = Object;
111
- var split = uncurryThis$c(''.split);
112
-
113
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
114
- var indexedObject = fails$9(function () {
115
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
116
- // eslint-disable-next-line no-prototype-builtins -- safe
117
- return !$Object$4('z').propertyIsEnumerable(0);
118
- }) ? function (it) {
119
- return classof$2(it) === 'String' ? split(it, '') : $Object$4(it);
120
- } : $Object$4;
121
-
122
- // we can't use just `it == null` since of `document.all` special case
123
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
124
- var isNullOrUndefined$3 = function (it) {
125
- return it === null || it === undefined;
126
- };
127
-
128
- var isNullOrUndefined$2 = isNullOrUndefined$3;
129
-
130
- var $TypeError$a = TypeError;
131
-
132
- // `RequireObjectCoercible` abstract operation
133
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
134
- var requireObjectCoercible$2 = function (it) {
135
- if (isNullOrUndefined$2(it)) throw new $TypeError$a("Can't call method on " + it);
136
- return it;
137
- };
138
-
139
- // toObject with fallback for non-array-like ES3 strings
140
- var IndexedObject = indexedObject;
141
- var requireObjectCoercible$1 = requireObjectCoercible$2;
142
-
143
- var toIndexedObject$4 = function (it) {
144
- return IndexedObject(requireObjectCoercible$1(it));
145
- };
146
-
147
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
148
- var documentAll = typeof document == 'object' && document.all;
149
-
150
- // `IsCallable` abstract operation
151
- // https://tc39.es/ecma262/#sec-iscallable
152
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
153
- var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
154
- return typeof argument == 'function' || argument === documentAll;
155
- } : function (argument) {
156
- return typeof argument == 'function';
157
- };
158
-
159
- var isCallable$d = isCallable$e;
160
-
161
- var isObject$6 = function (it) {
162
- return typeof it == 'object' ? it !== null : isCallable$d(it);
163
- };
164
-
165
- var global$a = global$b;
166
- var isCallable$c = isCallable$e;
167
-
168
- var aFunction = function (argument) {
169
- return isCallable$c(argument) ? argument : undefined;
170
- };
171
-
172
- var getBuiltIn$4 = function (namespace, method) {
173
- return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
174
- };
175
-
176
- var uncurryThis$b = functionUncurryThis;
177
-
178
- var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
179
-
180
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
181
-
182
- var global$9 = global$b;
183
- var userAgent = engineUserAgent;
184
-
185
- var process = global$9.process;
186
- var Deno = global$9.Deno;
187
- var versions = process && process.versions || Deno && Deno.version;
188
- var v8 = versions && versions.v8;
189
- var match, version;
190
-
191
- if (v8) {
192
- match = v8.split('.');
193
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
194
- // but their correct versions are not interesting for us
195
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
196
- }
197
-
198
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
199
- // so check `userAgent` even if `.v8` exists, but 0
200
- if (!version && userAgent) {
201
- match = userAgent.match(/Edge\/(\d+)/);
202
- if (!match || match[1] >= 74) {
203
- match = userAgent.match(/Chrome\/(\d+)/);
204
- if (match) version = +match[1];
205
- }
206
- }
207
-
208
- var engineV8Version = version;
209
-
210
- /* eslint-disable es/no-symbol -- required for testing */
211
- var V8_VERSION = engineV8Version;
212
- var fails$8 = fails$c;
213
- var global$8 = global$b;
214
-
215
- var $String$3 = global$8.String;
216
-
217
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
218
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
219
- var symbol = Symbol('symbol detection');
220
- // Chrome 38 Symbol has incorrect toString conversion
221
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
222
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
223
- // of course, fail.
224
- return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
225
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
226
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
227
- });
228
-
229
- /* eslint-disable es/no-symbol -- required for testing */
230
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
231
-
232
- var useSymbolAsUid = NATIVE_SYMBOL$1
233
- && !Symbol.sham
234
- && typeof Symbol.iterator == 'symbol';
235
-
236
- var getBuiltIn$3 = getBuiltIn$4;
237
- var isCallable$b = isCallable$e;
238
- var isPrototypeOf$2 = objectIsPrototypeOf;
239
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
240
-
241
- var $Object$3 = Object;
242
-
243
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
244
- return typeof it == 'symbol';
245
- } : function (it) {
246
- var $Symbol = getBuiltIn$3('Symbol');
247
- return isCallable$b($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
248
- };
249
-
250
- var $String$2 = String;
251
-
252
- var tryToString$3 = function (argument) {
253
- try {
254
- return $String$2(argument);
255
- } catch (error) {
256
- return 'Object';
257
- }
258
- };
259
-
260
- var isCallable$a = isCallable$e;
261
- var tryToString$2 = tryToString$3;
262
-
263
- var $TypeError$9 = TypeError;
264
-
265
- // `Assert: IsCallable(argument) is true`
266
- var aCallable$9 = function (argument) {
267
- if (isCallable$a(argument)) return argument;
268
- throw new $TypeError$9(tryToString$2(argument) + ' is not a function');
269
- };
270
-
271
- var aCallable$8 = aCallable$9;
272
- var isNullOrUndefined$1 = isNullOrUndefined$3;
273
-
274
- // `GetMethod` abstract operation
275
- // https://tc39.es/ecma262/#sec-getmethod
276
- var getMethod$4 = function (V, P) {
277
- var func = V[P];
278
- return isNullOrUndefined$1(func) ? undefined : aCallable$8(func);
279
- };
280
-
281
- var call$c = functionCall;
282
- var isCallable$9 = isCallable$e;
283
- var isObject$5 = isObject$6;
284
-
285
- var $TypeError$8 = TypeError;
286
-
287
- // `OrdinaryToPrimitive` abstract operation
288
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
289
- var ordinaryToPrimitive$1 = function (input, pref) {
290
- var fn, val;
291
- if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$c(fn, input))) return val;
292
- if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$c(fn, input))) return val;
293
- if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$c(fn, input))) return val;
294
- throw new $TypeError$8("Can't convert object to primitive value");
295
- };
296
-
297
- var sharedStore = {exports: {}};
298
-
299
- var isPure = false;
300
-
301
- var global$7 = global$b;
302
-
303
- // eslint-disable-next-line es/no-object-defineproperty -- safe
304
- var defineProperty$2 = Object.defineProperty;
305
-
306
- var defineGlobalProperty$3 = function (key, value) {
307
- try {
308
- defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });
309
- } catch (error) {
310
- global$7[key] = value;
311
- } return value;
312
- };
313
-
314
- var globalThis$1 = global$b;
315
- var defineGlobalProperty$2 = defineGlobalProperty$3;
316
-
317
- var SHARED = '__core-js_shared__';
318
- var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
319
-
320
- (store$3.versions || (store$3.versions = [])).push({
321
- version: '3.36.1',
322
- mode: 'global',
323
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
324
- license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
325
- source: 'https://github.com/zloirock/core-js'
326
- });
327
-
328
- var sharedStoreExports = sharedStore.exports;
329
-
330
- var store$2 = sharedStoreExports;
331
-
332
- var shared$3 = function (key, value) {
333
- return store$2[key] || (store$2[key] = value || {});
334
- };
335
-
336
- var requireObjectCoercible = requireObjectCoercible$2;
337
-
338
- var $Object$2 = Object;
339
-
340
- // `ToObject` abstract operation
341
- // https://tc39.es/ecma262/#sec-toobject
342
- var toObject$2 = function (argument) {
343
- return $Object$2(requireObjectCoercible(argument));
344
- };
345
-
346
- var uncurryThis$a = functionUncurryThis;
347
- var toObject$1 = toObject$2;
348
-
349
- var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
350
-
351
- // `HasOwnProperty` abstract operation
352
- // https://tc39.es/ecma262/#sec-hasownproperty
353
- // eslint-disable-next-line es/no-object-hasown -- safe
354
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
355
- return hasOwnProperty(toObject$1(it), key);
356
- };
357
-
358
- var uncurryThis$9 = functionUncurryThis;
359
-
360
- var id = 0;
361
- var postfix = Math.random();
362
- var toString = uncurryThis$9(1.0.toString);
363
-
364
- var uid$2 = function (key) {
365
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
366
- };
367
-
368
- var global$6 = global$b;
369
- var shared$2 = shared$3;
370
- var hasOwn$8 = hasOwnProperty_1;
371
- var uid$1 = uid$2;
372
- var NATIVE_SYMBOL = symbolConstructorDetection;
373
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
374
-
375
- var Symbol$1 = global$6.Symbol;
376
- var WellKnownSymbolsStore = shared$2('wks');
377
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
378
-
379
- var wellKnownSymbol$8 = function (name) {
380
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
381
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
382
- ? Symbol$1[name]
383
- : createWellKnownSymbol('Symbol.' + name);
384
- } return WellKnownSymbolsStore[name];
385
- };
386
-
387
- var call$b = functionCall;
388
- var isObject$4 = isObject$6;
389
- var isSymbol$1 = isSymbol$2;
390
- var getMethod$3 = getMethod$4;
391
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
392
- var wellKnownSymbol$7 = wellKnownSymbol$8;
393
-
394
- var $TypeError$7 = TypeError;
395
- var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
396
-
397
- // `ToPrimitive` abstract operation
398
- // https://tc39.es/ecma262/#sec-toprimitive
399
- var toPrimitive$1 = function (input, pref) {
400
- if (!isObject$4(input) || isSymbol$1(input)) return input;
401
- var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
402
- var result;
403
- if (exoticToPrim) {
404
- if (pref === undefined) pref = 'default';
405
- result = call$b(exoticToPrim, input, pref);
406
- if (!isObject$4(result) || isSymbol$1(result)) return result;
407
- throw new $TypeError$7("Can't convert object to primitive value");
408
- }
409
- if (pref === undefined) pref = 'number';
410
- return ordinaryToPrimitive(input, pref);
411
- };
412
-
413
- var toPrimitive = toPrimitive$1;
414
- var isSymbol = isSymbol$2;
415
-
416
- // `ToPropertyKey` abstract operation
417
- // https://tc39.es/ecma262/#sec-topropertykey
418
- var toPropertyKey$2 = function (argument) {
419
- var key = toPrimitive(argument, 'string');
420
- return isSymbol(key) ? key : key + '';
421
- };
422
-
423
- var global$5 = global$b;
424
- var isObject$3 = isObject$6;
425
-
426
- var document$1 = global$5.document;
427
- // typeof document.createElement is 'object' in old IE
428
- var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
429
-
430
- var documentCreateElement$1 = function (it) {
431
- return EXISTS$1 ? document$1.createElement(it) : {};
432
- };
433
-
434
- var DESCRIPTORS$9 = descriptors;
435
- var fails$7 = fails$c;
436
- var createElement = documentCreateElement$1;
437
-
438
- // Thanks to IE8 for its funny defineProperty
439
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
440
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
441
- return Object.defineProperty(createElement('div'), 'a', {
442
- get: function () { return 7; }
443
- }).a !== 7;
444
- });
445
-
446
- var DESCRIPTORS$8 = descriptors;
447
- var call$a = functionCall;
448
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
449
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
450
- var toIndexedObject$3 = toIndexedObject$4;
451
- var toPropertyKey$1 = toPropertyKey$2;
452
- var hasOwn$7 = hasOwnProperty_1;
453
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
454
-
455
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
456
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
457
-
458
- // `Object.getOwnPropertyDescriptor` method
459
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
460
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
461
- O = toIndexedObject$3(O);
462
- P = toPropertyKey$1(P);
463
- if (IE8_DOM_DEFINE$1) try {
464
- return $getOwnPropertyDescriptor$1(O, P);
465
- } catch (error) { /* empty */ }
466
- if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$a(propertyIsEnumerableModule.f, O, P), O[P]);
467
- };
468
-
469
- var objectDefineProperty = {};
470
-
471
- var DESCRIPTORS$7 = descriptors;
472
- var fails$6 = fails$c;
473
-
474
- // V8 ~ Chrome 36-
475
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
476
- var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$6(function () {
477
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
478
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
479
- value: 42,
480
- writable: false
481
- }).prototype !== 42;
482
- });
483
-
484
- var isObject$2 = isObject$6;
485
-
486
- var $String$1 = String;
487
- var $TypeError$6 = TypeError;
488
-
489
- // `Assert: Type(argument) is Object`
490
- var anObject$f = function (argument) {
491
- if (isObject$2(argument)) return argument;
492
- throw new $TypeError$6($String$1(argument) + ' is not an object');
493
- };
494
-
495
- var DESCRIPTORS$6 = descriptors;
496
- var IE8_DOM_DEFINE = ie8DomDefine;
497
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
498
- var anObject$e = anObject$f;
499
- var toPropertyKey = toPropertyKey$2;
500
-
501
- var $TypeError$5 = TypeError;
502
- // eslint-disable-next-line es/no-object-defineproperty -- safe
503
- var $defineProperty = Object.defineProperty;
504
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
505
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
506
- var ENUMERABLE = 'enumerable';
507
- var CONFIGURABLE$1 = 'configurable';
508
- var WRITABLE = 'writable';
509
-
510
- // `Object.defineProperty` method
511
- // https://tc39.es/ecma262/#sec-object.defineproperty
512
- objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
513
- anObject$e(O);
514
- P = toPropertyKey(P);
515
- anObject$e(Attributes);
516
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
517
- var current = $getOwnPropertyDescriptor(O, P);
518
- if (current && current[WRITABLE]) {
519
- O[P] = Attributes.value;
520
- Attributes = {
521
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
522
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
523
- writable: false
524
- };
525
- }
526
- } return $defineProperty(O, P, Attributes);
527
- } : $defineProperty : function defineProperty(O, P, Attributes) {
528
- anObject$e(O);
529
- P = toPropertyKey(P);
530
- anObject$e(Attributes);
531
- if (IE8_DOM_DEFINE) try {
532
- return $defineProperty(O, P, Attributes);
533
- } catch (error) { /* empty */ }
534
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
535
- if ('value' in Attributes) O[P] = Attributes.value;
536
- return O;
537
- };
538
-
539
- var DESCRIPTORS$5 = descriptors;
540
- var definePropertyModule$4 = objectDefineProperty;
541
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
542
-
543
- var createNonEnumerableProperty$3 = DESCRIPTORS$5 ? function (object, key, value) {
544
- return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
545
- } : function (object, key, value) {
546
- object[key] = value;
547
- return object;
548
- };
549
-
550
- var makeBuiltIn$3 = {exports: {}};
551
-
552
- var DESCRIPTORS$4 = descriptors;
553
- var hasOwn$6 = hasOwnProperty_1;
554
-
555
- var FunctionPrototype = Function.prototype;
556
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
557
- var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
558
-
559
- var EXISTS = hasOwn$6(FunctionPrototype, 'name');
560
- // additional protection from minified / mangled / dropped function names
561
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
562
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
563
-
564
- var functionName = {
565
- EXISTS: EXISTS,
566
- PROPER: PROPER,
567
- CONFIGURABLE: CONFIGURABLE
568
- };
569
-
570
- var uncurryThis$8 = functionUncurryThis;
571
- var isCallable$8 = isCallable$e;
572
- var store$1 = sharedStoreExports;
573
-
574
- var functionToString = uncurryThis$8(Function.toString);
575
-
576
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
577
- if (!isCallable$8(store$1.inspectSource)) {
578
- store$1.inspectSource = function (it) {
579
- return functionToString(it);
580
- };
581
- }
582
-
583
- var inspectSource$1 = store$1.inspectSource;
584
-
585
- var global$4 = global$b;
586
- var isCallable$7 = isCallable$e;
587
-
588
- var WeakMap$1 = global$4.WeakMap;
589
-
590
- var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
591
-
592
- var shared$1 = shared$3;
593
- var uid = uid$2;
594
-
595
- var keys$1 = shared$1('keys');
596
-
597
- var sharedKey$3 = function (key) {
598
- return keys$1[key] || (keys$1[key] = uid(key));
599
- };
600
-
601
- var hiddenKeys$4 = {};
602
-
603
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
604
- var global$3 = global$b;
605
- var isObject$1 = isObject$6;
606
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
607
- var hasOwn$5 = hasOwnProperty_1;
608
- var shared = sharedStoreExports;
609
- var sharedKey$2 = sharedKey$3;
610
- var hiddenKeys$3 = hiddenKeys$4;
611
-
612
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
613
- var TypeError$1 = global$3.TypeError;
614
- var WeakMap = global$3.WeakMap;
615
- var set, get, has$6;
616
-
617
- var enforce = function (it) {
618
- return has$6(it) ? get(it) : set(it, {});
619
- };
620
-
621
- var getterFor = function (TYPE) {
622
- return function (it) {
623
- var state;
624
- if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
625
- throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
626
- } return state;
627
- };
628
- };
629
-
630
- if (NATIVE_WEAK_MAP || shared.state) {
631
- var store = shared.state || (shared.state = new WeakMap());
632
- /* eslint-disable no-self-assign -- prototype methods protection */
633
- store.get = store.get;
634
- store.has = store.has;
635
- store.set = store.set;
636
- /* eslint-enable no-self-assign -- prototype methods protection */
637
- set = function (it, metadata) {
638
- if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
639
- metadata.facade = it;
640
- store.set(it, metadata);
641
- return metadata;
642
- };
643
- get = function (it) {
644
- return store.get(it) || {};
645
- };
646
- has$6 = function (it) {
647
- return store.has(it);
648
- };
649
- } else {
650
- var STATE = sharedKey$2('state');
651
- hiddenKeys$3[STATE] = true;
652
- set = function (it, metadata) {
653
- if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
654
- metadata.facade = it;
655
- createNonEnumerableProperty$2(it, STATE, metadata);
656
- return metadata;
657
- };
658
- get = function (it) {
659
- return hasOwn$5(it, STATE) ? it[STATE] : {};
660
- };
661
- has$6 = function (it) {
662
- return hasOwn$5(it, STATE);
663
- };
664
- }
665
-
666
- var internalState = {
667
- set: set,
668
- get: get,
669
- has: has$6,
670
- enforce: enforce,
671
- getterFor: getterFor
672
- };
673
-
674
- var uncurryThis$7 = functionUncurryThis;
675
- var fails$5 = fails$c;
676
- var isCallable$6 = isCallable$e;
677
- var hasOwn$4 = hasOwnProperty_1;
678
- var DESCRIPTORS$3 = descriptors;
679
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
680
- var inspectSource = inspectSource$1;
681
- var InternalStateModule$1 = internalState;
682
-
683
- var enforceInternalState = InternalStateModule$1.enforce;
684
- var getInternalState = InternalStateModule$1.get;
685
- var $String = String;
686
- // eslint-disable-next-line es/no-object-defineproperty -- safe
687
- var defineProperty$1 = Object.defineProperty;
688
- var stringSlice = uncurryThis$7(''.slice);
689
- var replace = uncurryThis$7(''.replace);
690
- var join = uncurryThis$7([].join);
691
-
692
- var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
693
- return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
694
- });
695
-
696
- var TEMPLATE = String(String).split('String');
697
-
698
- var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
699
- if (stringSlice($String(name), 0, 7) === 'Symbol(') {
700
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
701
- }
702
- if (options && options.getter) name = 'get ' + name;
703
- if (options && options.setter) name = 'set ' + name;
704
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
705
- if (DESCRIPTORS$3) defineProperty$1(value, 'name', { value: name, configurable: true });
706
- else value.name = name;
707
- }
708
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
709
- defineProperty$1(value, 'length', { value: options.arity });
710
- }
711
- try {
712
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
713
- if (DESCRIPTORS$3) defineProperty$1(value, 'prototype', { writable: false });
714
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
715
- } else if (value.prototype) value.prototype = undefined;
716
- } catch (error) { /* empty */ }
717
- var state = enforceInternalState(value);
718
- if (!hasOwn$4(state, 'source')) {
719
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
720
- } return value;
721
- };
722
-
723
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
724
- // eslint-disable-next-line no-extend-native -- required
725
- Function.prototype.toString = makeBuiltIn$2(function toString() {
726
- return isCallable$6(this) && getInternalState(this).source || inspectSource(this);
727
- }, 'toString');
728
-
729
- var makeBuiltInExports = makeBuiltIn$3.exports;
730
-
731
- var isCallable$5 = isCallable$e;
732
- var definePropertyModule$3 = objectDefineProperty;
733
- var makeBuiltIn$1 = makeBuiltInExports;
734
- var defineGlobalProperty$1 = defineGlobalProperty$3;
735
-
736
- var defineBuiltIn$3 = function (O, key, value, options) {
737
- if (!options) options = {};
738
- var simple = options.enumerable;
739
- var name = options.name !== undefined ? options.name : key;
740
- if (isCallable$5(value)) makeBuiltIn$1(value, name, options);
741
- if (options.global) {
742
- if (simple) O[key] = value;
743
- else defineGlobalProperty$1(key, value);
744
- } else {
745
- try {
746
- if (!options.unsafe) delete O[key];
747
- else if (O[key]) simple = true;
748
- } catch (error) { /* empty */ }
749
- if (simple) O[key] = value;
750
- else definePropertyModule$3.f(O, key, {
751
- value: value,
752
- enumerable: false,
753
- configurable: !options.nonConfigurable,
754
- writable: !options.nonWritable
755
- });
756
- } return O;
757
- };
758
-
759
- var objectGetOwnPropertyNames = {};
760
-
761
- var ceil = Math.ceil;
762
- var floor = Math.floor;
763
-
764
- // `Math.trunc` method
765
- // https://tc39.es/ecma262/#sec-math.trunc
766
- // eslint-disable-next-line es/no-math-trunc -- safe
767
- var mathTrunc = Math.trunc || function trunc(x) {
768
- var n = +x;
769
- return (n > 0 ? floor : ceil)(n);
770
- };
771
-
772
- var trunc = mathTrunc;
773
-
774
- // `ToIntegerOrInfinity` abstract operation
775
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
776
- var toIntegerOrInfinity$3 = function (argument) {
777
- var number = +argument;
778
- // eslint-disable-next-line no-self-compare -- NaN check
779
- return number !== number || number === 0 ? 0 : trunc(number);
780
- };
781
-
782
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
783
-
784
- var max$1 = Math.max;
785
- var min$1 = Math.min;
786
-
787
- // Helper for a popular repeating case of the spec:
788
- // Let integer be ? ToInteger(index).
789
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
790
- var toAbsoluteIndex$1 = function (index, length) {
791
- var integer = toIntegerOrInfinity$2(index);
792
- return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
793
- };
794
-
795
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
796
-
797
- var min = Math.min;
798
-
799
- // `ToLength` abstract operation
800
- // https://tc39.es/ecma262/#sec-tolength
801
- var toLength$1 = function (argument) {
802
- var len = toIntegerOrInfinity$1(argument);
803
- return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
804
- };
805
-
806
- var toLength = toLength$1;
807
-
808
- // `LengthOfArrayLike` abstract operation
809
- // https://tc39.es/ecma262/#sec-lengthofarraylike
810
- var lengthOfArrayLike$2 = function (obj) {
811
- return toLength(obj.length);
812
- };
813
-
814
- var toIndexedObject$2 = toIndexedObject$4;
815
- var toAbsoluteIndex = toAbsoluteIndex$1;
816
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
817
-
818
- // `Array.prototype.{ indexOf, includes }` methods implementation
819
- var createMethod = function (IS_INCLUDES) {
820
- return function ($this, el, fromIndex) {
821
- var O = toIndexedObject$2($this);
822
- var length = lengthOfArrayLike$1(O);
823
- if (length === 0) return !IS_INCLUDES && -1;
824
- var index = toAbsoluteIndex(fromIndex, length);
825
- var value;
826
- // Array#includes uses SameValueZero equality algorithm
827
- // eslint-disable-next-line no-self-compare -- NaN check
828
- if (IS_INCLUDES && el !== el) while (length > index) {
829
- value = O[index++];
830
- // eslint-disable-next-line no-self-compare -- NaN check
831
- if (value !== value) return true;
832
- // Array#indexOf ignores holes, Array#includes - not
833
- } else for (;length > index; index++) {
834
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
835
- } return !IS_INCLUDES && -1;
836
- };
837
- };
838
-
839
- var arrayIncludes = {
840
- // `Array.prototype.includes` method
841
- // https://tc39.es/ecma262/#sec-array.prototype.includes
842
- includes: createMethod(true),
843
- // `Array.prototype.indexOf` method
844
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
845
- indexOf: createMethod(false)
846
- };
847
-
848
- var uncurryThis$6 = functionUncurryThis;
849
- var hasOwn$3 = hasOwnProperty_1;
850
- var toIndexedObject$1 = toIndexedObject$4;
851
- var indexOf = arrayIncludes.indexOf;
852
- var hiddenKeys$2 = hiddenKeys$4;
853
-
854
- var push = uncurryThis$6([].push);
855
-
856
- var objectKeysInternal = function (object, names) {
857
- var O = toIndexedObject$1(object);
858
- var i = 0;
859
- var result = [];
860
- var key;
861
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
862
- // Don't enum bug & hidden keys
863
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
864
- ~indexOf(result, key) || push(result, key);
865
- }
866
- return result;
867
- };
868
-
869
- // IE8- don't enum bug keys
870
- var enumBugKeys$3 = [
871
- 'constructor',
872
- 'hasOwnProperty',
873
- 'isPrototypeOf',
874
- 'propertyIsEnumerable',
875
- 'toLocaleString',
876
- 'toString',
877
- 'valueOf'
878
- ];
879
-
880
- var internalObjectKeys$1 = objectKeysInternal;
881
- var enumBugKeys$2 = enumBugKeys$3;
882
-
883
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
884
-
885
- // `Object.getOwnPropertyNames` method
886
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
887
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
888
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
889
- return internalObjectKeys$1(O, hiddenKeys$1);
890
- };
891
-
892
- var objectGetOwnPropertySymbols = {};
893
-
894
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
895
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
896
-
897
- var getBuiltIn$2 = getBuiltIn$4;
898
- var uncurryThis$5 = functionUncurryThis;
899
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
900
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
901
- var anObject$d = anObject$f;
902
-
903
- var concat = uncurryThis$5([].concat);
904
-
905
- // all object keys, includes non-enumerable and symbols
906
- var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
907
- var keys = getOwnPropertyNamesModule.f(anObject$d(it));
908
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
909
- return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
910
- };
911
-
912
- var hasOwn$2 = hasOwnProperty_1;
913
- var ownKeys = ownKeys$1;
914
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
915
- var definePropertyModule$2 = objectDefineProperty;
916
-
917
- var copyConstructorProperties$1 = function (target, source, exceptions) {
918
- var keys = ownKeys(source);
919
- var defineProperty = definePropertyModule$2.f;
920
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
921
- for (var i = 0; i < keys.length; i++) {
922
- var key = keys[i];
923
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
924
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
925
- }
926
- }
927
- };
928
-
929
- var fails$4 = fails$c;
930
- var isCallable$4 = isCallable$e;
931
-
932
- var replacement = /#|\.prototype\./;
933
-
934
- var isForced$1 = function (feature, detection) {
935
- var value = data[normalize(feature)];
936
- return value === POLYFILL ? true
937
- : value === NATIVE ? false
938
- : isCallable$4(detection) ? fails$4(detection)
939
- : !!detection;
940
- };
941
-
942
- var normalize = isForced$1.normalize = function (string) {
943
- return String(string).replace(replacement, '.').toLowerCase();
944
- };
945
-
946
- var data = isForced$1.data = {};
947
- var NATIVE = isForced$1.NATIVE = 'N';
948
- var POLYFILL = isForced$1.POLYFILL = 'P';
949
-
950
- var isForced_1 = isForced$1;
951
-
952
- var global$2 = global$b;
953
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
954
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
955
- var defineBuiltIn$2 = defineBuiltIn$3;
956
- var defineGlobalProperty = defineGlobalProperty$3;
957
- var copyConstructorProperties = copyConstructorProperties$1;
958
- var isForced = isForced_1;
959
-
960
- /*
961
- options.target - name of the target object
962
- options.global - target is the global object
963
- options.stat - export as static methods of target
964
- options.proto - export as prototype methods of target
965
- options.real - real prototype method for the `pure` version
966
- options.forced - export even if the native feature is available
967
- options.bind - bind methods to the target, required for the `pure` version
968
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
969
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
970
- options.sham - add a flag to not completely full polyfills
971
- options.enumerable - export as enumerable property
972
- options.dontCallGetSet - prevent calling a getter on target
973
- options.name - the .name of the function if it does not match the key
974
- */
975
- var _export = function (options, source) {
976
- var TARGET = options.target;
977
- var GLOBAL = options.global;
978
- var STATIC = options.stat;
979
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
980
- if (GLOBAL) {
981
- target = global$2;
982
- } else if (STATIC) {
983
- target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
984
- } else {
985
- target = global$2[TARGET] && global$2[TARGET].prototype;
986
- }
987
- if (target) for (key in source) {
988
- sourceProperty = source[key];
989
- if (options.dontCallGetSet) {
990
- descriptor = getOwnPropertyDescriptor(target, key);
991
- targetProperty = descriptor && descriptor.value;
992
- } else targetProperty = target[key];
993
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
994
- // contained in target
995
- if (!FORCED && targetProperty !== undefined) {
996
- if (typeof sourceProperty == typeof targetProperty) continue;
997
- copyConstructorProperties(sourceProperty, targetProperty);
998
- }
999
- // add a flag to not completely full polyfills
1000
- if (options.sham || (targetProperty && targetProperty.sham)) {
1001
- createNonEnumerableProperty$1(sourceProperty, 'sham', true);
1002
- }
1003
- defineBuiltIn$2(target, key, sourceProperty, options);
1004
- }
1005
- };
1006
-
1007
- var isPrototypeOf$1 = objectIsPrototypeOf;
1008
-
1009
- var $TypeError$4 = TypeError;
1010
-
1011
- var anInstance$1 = function (it, Prototype) {
1012
- if (isPrototypeOf$1(Prototype, it)) return it;
1013
- throw new $TypeError$4('Incorrect invocation');
1014
- };
1015
-
1016
- var fails$3 = fails$c;
1017
-
1018
- var correctPrototypeGetter = !fails$3(function () {
1019
- function F() { /* empty */ }
1020
- F.prototype.constructor = null;
1021
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1022
- return Object.getPrototypeOf(new F()) !== F.prototype;
1023
- });
1024
-
1025
- var hasOwn$1 = hasOwnProperty_1;
1026
- var isCallable$3 = isCallable$e;
1027
- var toObject = toObject$2;
1028
- var sharedKey$1 = sharedKey$3;
1029
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1030
-
1031
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1032
- var $Object$1 = Object;
1033
- var ObjectPrototype = $Object$1.prototype;
1034
-
1035
- // `Object.getPrototypeOf` method
1036
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1037
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1038
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1039
- var object = toObject(O);
1040
- if (hasOwn$1(object, IE_PROTO$1)) return object[IE_PROTO$1];
1041
- var constructor = object.constructor;
1042
- if (isCallable$3(constructor) && object instanceof constructor) {
1043
- return constructor.prototype;
1044
- } return object instanceof $Object$1 ? ObjectPrototype : null;
1045
- };
1046
-
1047
- var makeBuiltIn = makeBuiltInExports;
1048
- var defineProperty = objectDefineProperty;
1049
-
1050
- var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1051
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1052
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1053
- return defineProperty.f(target, name, descriptor);
1054
- };
1055
-
1056
- var DESCRIPTORS$2 = descriptors;
1057
- var definePropertyModule$1 = objectDefineProperty;
1058
- var createPropertyDescriptor = createPropertyDescriptor$3;
1059
-
1060
- var createProperty$1 = function (object, key, value) {
1061
- if (DESCRIPTORS$2) definePropertyModule$1.f(object, key, createPropertyDescriptor(0, value));
1062
- else object[key] = value;
1063
- };
1064
-
1065
- var objectDefineProperties = {};
1066
-
1067
- var internalObjectKeys = objectKeysInternal;
1068
- var enumBugKeys$1 = enumBugKeys$3;
1069
-
1070
- // `Object.keys` method
1071
- // https://tc39.es/ecma262/#sec-object.keys
1072
- // eslint-disable-next-line es/no-object-keys -- safe
1073
- var objectKeys$1 = Object.keys || function keys(O) {
1074
- return internalObjectKeys(O, enumBugKeys$1);
1075
- };
1076
-
1077
- var DESCRIPTORS$1 = descriptors;
1078
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1079
- var definePropertyModule = objectDefineProperty;
1080
- var anObject$c = anObject$f;
1081
- var toIndexedObject = toIndexedObject$4;
1082
- var objectKeys = objectKeys$1;
1083
-
1084
- // `Object.defineProperties` method
1085
- // https://tc39.es/ecma262/#sec-object.defineproperties
1086
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1087
- objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1088
- anObject$c(O);
1089
- var props = toIndexedObject(Properties);
1090
- var keys = objectKeys(Properties);
1091
- var length = keys.length;
1092
- var index = 0;
1093
- var key;
1094
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1095
- return O;
1096
- };
1097
-
1098
- var getBuiltIn$1 = getBuiltIn$4;
1099
-
1100
- var html$1 = getBuiltIn$1('document', 'documentElement');
1101
-
1102
- /* global ActiveXObject -- old IE, WSH */
1103
- var anObject$b = anObject$f;
1104
- var definePropertiesModule = objectDefineProperties;
1105
- var enumBugKeys = enumBugKeys$3;
1106
- var hiddenKeys = hiddenKeys$4;
1107
- var html = html$1;
1108
- var documentCreateElement = documentCreateElement$1;
1109
- var sharedKey = sharedKey$3;
1110
-
1111
- var GT = '>';
1112
- var LT = '<';
1113
- var PROTOTYPE = 'prototype';
1114
- var SCRIPT = 'script';
1115
- var IE_PROTO = sharedKey('IE_PROTO');
1116
-
1117
- var EmptyConstructor = function () { /* empty */ };
1118
-
1119
- var scriptTag = function (content) {
1120
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1121
- };
1122
-
1123
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1124
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1125
- activeXDocument.write(scriptTag(''));
1126
- activeXDocument.close();
1127
- var temp = activeXDocument.parentWindow.Object;
1128
- activeXDocument = null; // avoid memory leak
1129
- return temp;
1130
- };
1131
-
1132
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1133
- var NullProtoObjectViaIFrame = function () {
1134
- // Thrash, waste and sodomy: IE GC bug
1135
- var iframe = documentCreateElement('iframe');
1136
- var JS = 'java' + SCRIPT + ':';
1137
- var iframeDocument;
1138
- iframe.style.display = 'none';
1139
- html.appendChild(iframe);
1140
- // https://github.com/zloirock/core-js/issues/475
1141
- iframe.src = String(JS);
1142
- iframeDocument = iframe.contentWindow.document;
1143
- iframeDocument.open();
1144
- iframeDocument.write(scriptTag('document.F=Object'));
1145
- iframeDocument.close();
1146
- return iframeDocument.F;
1147
- };
1148
-
1149
- // Check for document.domain and active x support
1150
- // No need to use active x approach when document.domain is not set
1151
- // see https://github.com/es-shims/es5-shim/issues/150
1152
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1153
- // avoid IE GC bug
1154
- var activeXDocument;
1155
- var NullProtoObject = function () {
1156
- try {
1157
- activeXDocument = new ActiveXObject('htmlfile');
1158
- } catch (error) { /* ignore */ }
1159
- NullProtoObject = typeof document != 'undefined'
1160
- ? document.domain && activeXDocument
1161
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1162
- : NullProtoObjectViaIFrame()
1163
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1164
- var length = enumBugKeys.length;
1165
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1166
- return NullProtoObject();
1167
- };
1168
-
1169
- hiddenKeys[IE_PROTO] = true;
1170
-
1171
- // `Object.create` method
1172
- // https://tc39.es/ecma262/#sec-object.create
1173
- // eslint-disable-next-line es/no-object-create -- safe
1174
- var objectCreate = Object.create || function create(O, Properties) {
1175
- var result;
1176
- if (O !== null) {
1177
- EmptyConstructor[PROTOTYPE] = anObject$b(O);
1178
- result = new EmptyConstructor();
1179
- EmptyConstructor[PROTOTYPE] = null;
1180
- // add "__proto__" for Object.getPrototypeOf polyfill
1181
- result[IE_PROTO] = O;
1182
- } else result = NullProtoObject();
1183
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1184
- };
1185
-
1186
- var fails$2 = fails$c;
1187
- var isCallable$2 = isCallable$e;
1188
- var isObject = isObject$6;
1189
- var getPrototypeOf$1 = objectGetPrototypeOf;
1190
- var defineBuiltIn$1 = defineBuiltIn$3;
1191
- var wellKnownSymbol$6 = wellKnownSymbol$8;
1192
-
1193
- var ITERATOR$3 = wellKnownSymbol$6('iterator');
1194
- var BUGGY_SAFARI_ITERATORS = false;
1195
-
1196
- // `%IteratorPrototype%` object
1197
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1198
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1199
-
1200
- /* eslint-disable es/no-array-prototype-keys -- safe */
1201
- if ([].keys) {
1202
- arrayIterator = [].keys();
1203
- // Safari 8 has buggy iterators w/o `next`
1204
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
1205
- else {
1206
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1207
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1208
- }
1209
- }
1210
-
1211
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$2(function () {
1212
- var test = {};
1213
- // FF44- legacy iterators case
1214
- return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
1215
- });
1216
-
1217
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1218
-
1219
- // `%IteratorPrototype%[@@iterator]()` method
1220
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1221
- if (!isCallable$2(IteratorPrototype$2[ITERATOR$3])) {
1222
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$3, function () {
1223
- return this;
1224
- });
1225
- }
1226
-
1227
- var iteratorsCore = {
1228
- IteratorPrototype: IteratorPrototype$2,
1229
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
1230
- };
1231
-
1232
- var $$b = _export;
1233
- var global$1 = global$b;
1234
- var anInstance = anInstance$1;
1235
- var anObject$a = anObject$f;
1236
- var isCallable$1 = isCallable$e;
1237
- var getPrototypeOf = objectGetPrototypeOf;
1238
- var defineBuiltInAccessor = defineBuiltInAccessor$1;
1239
- var createProperty = createProperty$1;
1240
- var fails$1 = fails$c;
1241
- var hasOwn = hasOwnProperty_1;
1242
- var wellKnownSymbol$5 = wellKnownSymbol$8;
1243
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1244
- var DESCRIPTORS = descriptors;
1245
-
1246
- var CONSTRUCTOR = 'constructor';
1247
- var ITERATOR$2 = 'Iterator';
1248
- var TO_STRING_TAG$3 = wellKnownSymbol$5('toStringTag');
1249
-
1250
- var $TypeError$3 = TypeError;
1251
- var NativeIterator = global$1[ITERATOR$2];
1252
-
1253
- // FF56- have non-standard global helper `Iterator`
1254
- var FORCED = !isCallable$1(NativeIterator)
1255
- || NativeIterator.prototype !== IteratorPrototype$1
1256
- // FF44- non-standard `Iterator` passes previous tests
1257
- || !fails$1(function () { NativeIterator({}); });
1258
-
1259
- var IteratorConstructor = function Iterator() {
1260
- anInstance(this, IteratorPrototype$1);
1261
- if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$3('Abstract class Iterator not directly constructable');
1262
- };
1263
-
1264
- var defineIteratorPrototypeAccessor = function (key, value) {
1265
- if (DESCRIPTORS) {
1266
- defineBuiltInAccessor(IteratorPrototype$1, key, {
1267
- configurable: true,
1268
- get: function () {
1269
- return value;
1270
- },
1271
- set: function (replacement) {
1272
- anObject$a(this);
1273
- if (this === IteratorPrototype$1) throw new $TypeError$3("You can't redefine this property");
1274
- if (hasOwn(this, key)) this[key] = replacement;
1275
- else createProperty(this, key, replacement);
1276
- }
1277
- });
1278
- } else IteratorPrototype$1[key] = value;
1279
- };
1280
-
1281
- if (!hasOwn(IteratorPrototype$1, TO_STRING_TAG$3)) defineIteratorPrototypeAccessor(TO_STRING_TAG$3, ITERATOR$2);
1282
-
1283
- if (FORCED || !hasOwn(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
1284
- defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
1285
- }
1286
-
1287
- IteratorConstructor.prototype = IteratorPrototype$1;
1288
-
1289
- // `Iterator` constructor
1290
- // https://github.com/tc39/proposal-iterator-helpers
1291
- $$b({ global: true, constructor: true, forced: FORCED }, {
1292
- Iterator: IteratorConstructor
1293
- });
1294
-
1295
- // `GetIteratorDirect(obj)` abstract operation
1296
- // https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
1297
- var getIteratorDirect$6 = function (obj) {
1298
- return {
1299
- iterator: obj,
1300
- next: obj.next,
1301
- done: false
1302
- };
1303
- };
1304
-
1305
- var defineBuiltIn = defineBuiltIn$3;
1306
-
1307
- var defineBuiltIns$1 = function (target, src, options) {
1308
- for (var key in src) defineBuiltIn(target, key, src[key], options);
1309
- return target;
1310
- };
1311
-
1312
- // `CreateIterResultObject` abstract operation
1313
- // https://tc39.es/ecma262/#sec-createiterresultobject
1314
- var createIterResultObject$1 = function (value, done) {
1315
- return { value: value, done: done };
1316
- };
1317
-
1318
- var call$9 = functionCall;
1319
- var anObject$9 = anObject$f;
1320
- var getMethod$2 = getMethod$4;
1321
-
1322
- var iteratorClose$6 = function (iterator, kind, value) {
1323
- var innerResult, innerError;
1324
- anObject$9(iterator);
1325
- try {
1326
- innerResult = getMethod$2(iterator, 'return');
1327
- if (!innerResult) {
1328
- if (kind === 'throw') throw value;
1329
- return value;
1330
- }
1331
- innerResult = call$9(innerResult, iterator);
1332
- } catch (error) {
1333
- innerError = true;
1334
- innerResult = error;
1335
- }
1336
- if (kind === 'throw') throw value;
1337
- if (innerError) throw innerResult;
1338
- anObject$9(innerResult);
1339
- return value;
1340
- };
1341
-
1342
- var call$8 = functionCall;
1343
- var create = objectCreate;
1344
- var createNonEnumerableProperty = createNonEnumerableProperty$3;
1345
- var defineBuiltIns = defineBuiltIns$1;
1346
- var wellKnownSymbol$4 = wellKnownSymbol$8;
1347
- var InternalStateModule = internalState;
1348
- var getMethod$1 = getMethod$4;
1349
- var IteratorPrototype = iteratorsCore.IteratorPrototype;
1350
- var createIterResultObject = createIterResultObject$1;
1351
- var iteratorClose$5 = iteratorClose$6;
1352
-
1353
- var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
1354
- var ITERATOR_HELPER = 'IteratorHelper';
1355
- var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
1356
- var setInternalState = InternalStateModule.set;
1357
-
1358
- var createIteratorProxyPrototype = function (IS_ITERATOR) {
1359
- var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
1360
-
1361
- return defineBuiltIns(create(IteratorPrototype), {
1362
- next: function next() {
1363
- var state = getInternalState(this);
1364
- // for simplification:
1365
- // for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
1366
- // for `%IteratorHelperPrototype%.next` - just a value
1367
- if (IS_ITERATOR) return state.nextHandler();
1368
- try {
1369
- var result = state.done ? undefined : state.nextHandler();
1370
- return createIterResultObject(result, state.done);
1371
- } catch (error) {
1372
- state.done = true;
1373
- throw error;
1374
- }
1375
- },
1376
- 'return': function () {
1377
- var state = getInternalState(this);
1378
- var iterator = state.iterator;
1379
- state.done = true;
1380
- if (IS_ITERATOR) {
1381
- var returnMethod = getMethod$1(iterator, 'return');
1382
- return returnMethod ? call$8(returnMethod, iterator) : createIterResultObject(undefined, true);
1383
- }
1384
- if (state.inner) try {
1385
- iteratorClose$5(state.inner.iterator, 'normal');
1386
- } catch (error) {
1387
- return iteratorClose$5(iterator, 'throw', error);
1388
- }
1389
- iteratorClose$5(iterator, 'normal');
1390
- return createIterResultObject(undefined, true);
1391
- }
1392
- });
1393
- };
1394
-
1395
- var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
1396
- var IteratorHelperPrototype = createIteratorProxyPrototype(false);
1397
-
1398
- createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG$2, 'Iterator Helper');
1399
-
1400
- var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
1401
- var IteratorProxy = function Iterator(record, state) {
1402
- if (state) {
1403
- state.iterator = record.iterator;
1404
- state.next = record.next;
1405
- } else state = record;
1406
- state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
1407
- state.nextHandler = nextHandler;
1408
- state.counter = 0;
1409
- state.done = false;
1410
- setInternalState(this, state);
1411
- };
1412
-
1413
- IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
1414
-
1415
- return IteratorProxy;
1416
- };
1417
-
1418
- var anObject$8 = anObject$f;
1419
- var iteratorClose$4 = iteratorClose$6;
1420
-
1421
- // call something on iterator step with safe closing on error
1422
- var callWithSafeIterationClosing$2 = function (iterator, fn, value, ENTRIES) {
1423
- try {
1424
- return ENTRIES ? fn(anObject$8(value)[0], value[1]) : fn(value);
1425
- } catch (error) {
1426
- iteratorClose$4(iterator, 'throw', error);
1427
- }
1428
- };
1429
-
1430
- var $$a = _export;
1431
- var call$7 = functionCall;
1432
- var aCallable$7 = aCallable$9;
1433
- var anObject$7 = anObject$f;
1434
- var getIteratorDirect$5 = getIteratorDirect$6;
1435
- var createIteratorProxy$2 = iteratorCreateProxy;
1436
- var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$2;
1437
- var IS_PURE$2 = isPure;
1438
-
1439
- var IteratorProxy$2 = createIteratorProxy$2(function () {
1440
- var iterator = this.iterator;
1441
- var predicate = this.predicate;
1442
- var next = this.next;
1443
- var result, done, value;
1444
- while (true) {
1445
- result = anObject$7(call$7(next, iterator));
1446
- done = this.done = !!result.done;
1447
- if (done) return;
1448
- value = result.value;
1449
- if (callWithSafeIterationClosing$1(iterator, predicate, [value, this.counter++], true)) return value;
1450
- }
1451
- });
1452
-
1453
- // `Iterator.prototype.filter` method
1454
- // https://github.com/tc39/proposal-iterator-helpers
1455
- $$a({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$2 }, {
1456
- filter: function filter(predicate) {
1457
- anObject$7(this);
1458
- aCallable$7(predicate);
1459
- return new IteratorProxy$2(getIteratorDirect$5(this), {
1460
- predicate: predicate
1461
- });
1462
- }
1463
- });
1464
-
1465
- var classofRaw$1 = classofRaw$2;
1466
- var uncurryThis$4 = functionUncurryThis;
1467
-
1468
- var functionUncurryThisClause = function (fn) {
1469
- // Nashorn bug:
1470
- // https://github.com/zloirock/core-js/issues/1128
1471
- // https://github.com/zloirock/core-js/issues/1130
1472
- if (classofRaw$1(fn) === 'Function') return uncurryThis$4(fn);
1473
- };
1474
-
1475
- var uncurryThis$3 = functionUncurryThisClause;
1476
- var aCallable$6 = aCallable$9;
1477
- var NATIVE_BIND = functionBindNative;
1478
-
1479
- var bind$1 = uncurryThis$3(uncurryThis$3.bind);
1480
-
1481
- // optional / simple context binding
1482
- var functionBindContext = function (fn, that) {
1483
- aCallable$6(fn);
1484
- return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1485
- return fn.apply(that, arguments);
1486
- };
1487
- };
1488
-
1489
- var iterators = {};
1490
-
1491
- var wellKnownSymbol$3 = wellKnownSymbol$8;
1492
- var Iterators$1 = iterators;
1493
-
1494
- var ITERATOR$1 = wellKnownSymbol$3('iterator');
1495
- var ArrayPrototype = Array.prototype;
1496
-
1497
- // check on default Array iterator
1498
- var isArrayIteratorMethod$1 = function (it) {
1499
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$1] === it);
1500
- };
1501
-
1502
- var wellKnownSymbol$2 = wellKnownSymbol$8;
1503
-
1504
- var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1505
- var test = {};
1506
-
1507
- test[TO_STRING_TAG$1] = 'z';
1508
-
1509
- var toStringTagSupport = String(test) === '[object z]';
1510
-
1511
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1512
- var isCallable = isCallable$e;
1513
- var classofRaw = classofRaw$2;
1514
- var wellKnownSymbol$1 = wellKnownSymbol$8;
1515
-
1516
- var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
1517
- var $Object = Object;
1518
-
1519
- // ES3 wrong here
1520
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1521
-
1522
- // fallback for IE11 Script Access Denied error
1523
- var tryGet = function (it, key) {
1524
- try {
1525
- return it[key];
1526
- } catch (error) { /* empty */ }
1527
- };
1528
-
1529
- // getting tag from ES6+ `Object.prototype.toString`
1530
- var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1531
- var O, tag, result;
1532
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1533
- // @@toStringTag case
1534
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1535
- // builtinTag case
1536
- : CORRECT_ARGUMENTS ? classofRaw(O)
1537
- // ES3 arguments fallback
1538
- : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1539
- };
1540
-
1541
- var classof = classof$1;
1542
- var getMethod = getMethod$4;
1543
- var isNullOrUndefined = isNullOrUndefined$3;
1544
- var Iterators = iterators;
1545
- var wellKnownSymbol = wellKnownSymbol$8;
1546
-
1547
- var ITERATOR = wellKnownSymbol('iterator');
1548
-
1549
- var getIteratorMethod$3 = function (it) {
1550
- if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
1551
- || getMethod(it, '@@iterator')
1552
- || Iterators[classof(it)];
1553
- };
1554
-
1555
- var call$6 = functionCall;
1556
- var aCallable$5 = aCallable$9;
1557
- var anObject$6 = anObject$f;
1558
- var tryToString$1 = tryToString$3;
1559
- var getIteratorMethod$2 = getIteratorMethod$3;
1560
-
1561
- var $TypeError$2 = TypeError;
1562
-
1563
- var getIterator$1 = function (argument, usingIterator) {
1564
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$2(argument) : usingIterator;
1565
- if (aCallable$5(iteratorMethod)) return anObject$6(call$6(iteratorMethod, argument));
1566
- throw new $TypeError$2(tryToString$1(argument) + ' is not iterable');
1567
- };
1568
-
1569
- var bind = functionBindContext;
1570
- var call$5 = functionCall;
1571
- var anObject$5 = anObject$f;
1572
- var tryToString = tryToString$3;
1573
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
1574
- var lengthOfArrayLike = lengthOfArrayLike$2;
1575
- var isPrototypeOf = objectIsPrototypeOf;
1576
- var getIterator = getIterator$1;
1577
- var getIteratorMethod$1 = getIteratorMethod$3;
1578
- var iteratorClose$3 = iteratorClose$6;
1579
-
1580
- var $TypeError$1 = TypeError;
1581
-
1582
- var Result = function (stopped, result) {
1583
- this.stopped = stopped;
1584
- this.result = result;
1585
- };
1586
-
1587
- var ResultPrototype = Result.prototype;
1588
-
1589
- var iterate$3 = function (iterable, unboundFunction, options) {
1590
- var that = options && options.that;
1591
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1592
- var IS_RECORD = !!(options && options.IS_RECORD);
1593
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1594
- var INTERRUPTED = !!(options && options.INTERRUPTED);
1595
- var fn = bind(unboundFunction, that);
1596
- var iterator, iterFn, index, length, result, next, step;
1597
-
1598
- var stop = function (condition) {
1599
- if (iterator) iteratorClose$3(iterator, 'normal', condition);
1600
- return new Result(true, condition);
1601
- };
1602
-
1603
- var callFn = function (value) {
1604
- if (AS_ENTRIES) {
1605
- anObject$5(value);
1606
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1607
- } return INTERRUPTED ? fn(value, stop) : fn(value);
1608
- };
1609
-
1610
- if (IS_RECORD) {
1611
- iterator = iterable.iterator;
1612
- } else if (IS_ITERATOR) {
1613
- iterator = iterable;
1614
- } else {
1615
- iterFn = getIteratorMethod$1(iterable);
1616
- if (!iterFn) throw new $TypeError$1(tryToString(iterable) + ' is not iterable');
1617
- // optimisation for array iterators
1618
- if (isArrayIteratorMethod(iterFn)) {
1619
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
1620
- result = callFn(iterable[index]);
1621
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
1622
- } return new Result(false);
1623
- }
1624
- iterator = getIterator(iterable, iterFn);
1625
- }
1626
-
1627
- next = IS_RECORD ? iterable.next : iterator.next;
1628
- while (!(step = call$5(next, iterator)).done) {
1629
- try {
1630
- result = callFn(step.value);
1631
- } catch (error) {
1632
- iteratorClose$3(iterator, 'throw', error);
1633
- }
1634
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
1635
- } return new Result(false);
1636
- };
1637
-
1638
- var $$9 = _export;
1639
- var iterate$2 = iterate$3;
1640
- var aCallable$4 = aCallable$9;
1641
- var anObject$4 = anObject$f;
1642
- var getIteratorDirect$4 = getIteratorDirect$6;
1643
-
1644
- // `Iterator.prototype.forEach` method
1645
- // https://github.com/tc39/proposal-iterator-helpers
1646
- $$9({ target: 'Iterator', proto: true, real: true }, {
1647
- forEach: function forEach(fn) {
1648
- anObject$4(this);
1649
- aCallable$4(fn);
1650
- var record = getIteratorDirect$4(this);
1651
- var counter = 0;
1652
- iterate$2(record, function (value) {
1653
- fn(value, counter++);
1654
- }, { IS_RECORD: true });
1655
- }
1656
- });
11
+ require('core-js/modules/es.set.difference.v2.js');
12
+ require('core-js/modules/es.set.symmetric-difference.v2.js');
13
+ require('core-js/modules/es.set.union.v2.js');
1657
14
 
1658
15
  /**
1659
16
  * Returns an empty ZohoPageResult that is typed to R and has no more records/results.
@@ -1734,96 +91,6 @@ const ZOHO_RECRUIT_ATTACHMENTS_MODULE = 'Attachments';
1734
91
  const isZohoRecruitValidUrl = util.isStandardInternetAccessibleWebsiteUrl;
1735
92
  const ZOHO_RECRUIT_RECORD_ATTACHMENT_METADATA_ATTACH_TYPE_RESUME = 'Resume';
1736
93
 
1737
- var call$4 = functionCall;
1738
- var anObject$3 = anObject$f;
1739
- var getIteratorDirect$3 = getIteratorDirect$6;
1740
- var getIteratorMethod = getIteratorMethod$3;
1741
-
1742
- var getIteratorFlattenable$1 = function (obj, stringHandling) {
1743
- if (!stringHandling || typeof obj !== 'string') anObject$3(obj);
1744
- var method = getIteratorMethod(obj);
1745
- return getIteratorDirect$3(anObject$3(method !== undefined ? call$4(method, obj) : obj));
1746
- };
1747
-
1748
- var $$8 = _export;
1749
- var call$3 = functionCall;
1750
- var aCallable$3 = aCallable$9;
1751
- var anObject$2 = anObject$f;
1752
- var getIteratorDirect$2 = getIteratorDirect$6;
1753
- var getIteratorFlattenable = getIteratorFlattenable$1;
1754
- var createIteratorProxy$1 = iteratorCreateProxy;
1755
- var iteratorClose$2 = iteratorClose$6;
1756
- var IS_PURE$1 = isPure;
1757
-
1758
- var IteratorProxy$1 = createIteratorProxy$1(function () {
1759
- var iterator = this.iterator;
1760
- var mapper = this.mapper;
1761
- var result, inner;
1762
-
1763
- while (true) {
1764
- if (inner = this.inner) try {
1765
- result = anObject$2(call$3(inner.next, inner.iterator));
1766
- if (!result.done) return result.value;
1767
- this.inner = null;
1768
- } catch (error) { iteratorClose$2(iterator, 'throw', error); }
1769
-
1770
- result = anObject$2(call$3(this.next, iterator));
1771
-
1772
- if (this.done = !!result.done) return;
1773
-
1774
- try {
1775
- this.inner = getIteratorFlattenable(mapper(result.value, this.counter++), false);
1776
- } catch (error) { iteratorClose$2(iterator, 'throw', error); }
1777
- }
1778
- });
1779
-
1780
- // `Iterator.prototype.flatMap` method
1781
- // https://github.com/tc39/proposal-iterator-helpers
1782
- $$8({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
1783
- flatMap: function flatMap(mapper) {
1784
- anObject$2(this);
1785
- aCallable$3(mapper);
1786
- return new IteratorProxy$1(getIteratorDirect$2(this), {
1787
- mapper: mapper,
1788
- inner: null
1789
- });
1790
- }
1791
- });
1792
-
1793
- var call$2 = functionCall;
1794
- var aCallable$2 = aCallable$9;
1795
- var anObject$1 = anObject$f;
1796
- var getIteratorDirect$1 = getIteratorDirect$6;
1797
- var createIteratorProxy = iteratorCreateProxy;
1798
- var callWithSafeIterationClosing = callWithSafeIterationClosing$2;
1799
-
1800
- var IteratorProxy = createIteratorProxy(function () {
1801
- var iterator = this.iterator;
1802
- var result = anObject$1(call$2(this.next, iterator));
1803
- var done = this.done = !!result.done;
1804
- if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
1805
- });
1806
-
1807
- // `Iterator.prototype.map` method
1808
- // https://github.com/tc39/proposal-iterator-helpers
1809
- var iteratorMap = function map(mapper) {
1810
- anObject$1(this);
1811
- aCallable$2(mapper);
1812
- return new IteratorProxy(getIteratorDirect$1(this), {
1813
- mapper: mapper
1814
- });
1815
- };
1816
-
1817
- var $$7 = _export;
1818
- var map = iteratorMap;
1819
- var IS_PURE = isPure;
1820
-
1821
- // `Iterator.prototype.map` method
1822
- // https://github.com/tc39/proposal-iterator-helpers
1823
- $$7({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
1824
- map: map
1825
- });
1826
-
1827
94
  /**
1828
95
  * Can search up to 10 criteria at a time.
1829
96
  *
@@ -2810,31 +1077,6 @@ function zohoRecruitSearchJobOpeningAssociatedCandidateRecords(context, jobOpeni
2810
1077
  function zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory(context) {
2811
1078
  return zohoFetchPageFactory(zohoRecruitSearchJobOpeningAssociatedCandidateRecords(context));
2812
1079
  }
2813
- // MARK: Compat
2814
- /**
2815
- * @deprecated Use zohoRecruitAssociateCandidateRecordsWithJobOpenings instead.
2816
- */
2817
- const associateCandidateRecordsWithJobOpenings = zohoRecruitAssociateCandidateRecordsWithJobOpenings;
2818
- /**
2819
- * @deprecated Use zohoRecruitSearchAssociatedRecords instead.
2820
- */
2821
- const searchAssociatedRecords = zohoRecruitSearchAssociatedRecords;
2822
- /**
2823
- * @deprecated Use zohoRecruitSearchCandidateAssociatedJobOpeningRecords instead.
2824
- */
2825
- const searchCandidateAssociatedJobOpeningRecords = zohoRecruitSearchCandidateAssociatedJobOpeningRecords;
2826
- /**
2827
- * @deprecated Use zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory instead.
2828
- */
2829
- const searchCandidateAssociatedJobOpeningRecordsPageFactory = zohoRecruitSearchCandidateAssociatedJobOpeningRecordsPageFactory;
2830
- /**
2831
- * @deprecated Use zohoRecruitSearchJobOpeningAssociatedCandidateRecords instead.
2832
- */
2833
- const searchJobOpeningAssociatedCandidateRecords = zohoRecruitSearchJobOpeningAssociatedCandidateRecords;
2834
- /**
2835
- * @deprecated Use zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory instead.
2836
- */
2837
- const searchJobOpeningAssociatedCandidateRecordsPageFactory = zohoRecruitSearchJobOpeningAssociatedCandidateRecordsPageFactory;
2838
1080
 
2839
1081
  function zohoRecruitCreateNotes(context) {
2840
1082
  return input => context.fetchJson(`/v2/${ZOHO_RECRUIT_NOTES_MODULE}`, zohoRecruitApiFetchJsonInput('POST', {
@@ -3795,391 +2037,6 @@ function zohoCrmCreateNotesForRecord(context) {
3795
2037
  };
3796
2038
  }
3797
2039
 
3798
- var uncurryThis$2 = functionUncurryThis;
3799
-
3800
- // eslint-disable-next-line es/no-set -- safe
3801
- var SetPrototype$1 = Set.prototype;
3802
-
3803
- var setHelpers = {
3804
- // eslint-disable-next-line es/no-set -- safe
3805
- Set: Set,
3806
- add: uncurryThis$2(SetPrototype$1.add),
3807
- has: uncurryThis$2(SetPrototype$1.has),
3808
- remove: uncurryThis$2(SetPrototype$1['delete']),
3809
- proto: SetPrototype$1
3810
- };
3811
-
3812
- var has$5 = setHelpers.has;
3813
-
3814
- // Perform ? RequireInternalSlot(M, [[SetData]])
3815
- var aSet$7 = function (it) {
3816
- has$5(it);
3817
- return it;
3818
- };
3819
-
3820
- var call$1 = functionCall;
3821
-
3822
- var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
3823
- var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
3824
- var next = record.next;
3825
- var step, result;
3826
- while (!(step = call$1(next, iterator)).done) {
3827
- result = fn(step.value);
3828
- if (result !== undefined) return result;
3829
- }
3830
- };
3831
-
3832
- var uncurryThis$1 = functionUncurryThis;
3833
- var iterateSimple$6 = iterateSimple$7;
3834
- var SetHelpers$5 = setHelpers;
3835
-
3836
- var Set$3 = SetHelpers$5.Set;
3837
- var SetPrototype = SetHelpers$5.proto;
3838
- var forEach = uncurryThis$1(SetPrototype.forEach);
3839
- var keys = uncurryThis$1(SetPrototype.keys);
3840
- var next = keys(new Set$3()).next;
3841
-
3842
- var setIterate = function (set, fn, interruptible) {
3843
- return interruptible ? iterateSimple$6({ iterator: keys(set), next: next }, fn) : forEach(set, fn);
3844
- };
3845
-
3846
- var SetHelpers$4 = setHelpers;
3847
- var iterate$1 = setIterate;
3848
-
3849
- var Set$2 = SetHelpers$4.Set;
3850
- var add$3 = SetHelpers$4.add;
3851
-
3852
- var setClone = function (set) {
3853
- var result = new Set$2();
3854
- iterate$1(set, function (it) {
3855
- add$3(result, it);
3856
- });
3857
- return result;
3858
- };
3859
-
3860
- var uncurryThis = functionUncurryThis;
3861
- var aCallable$1 = aCallable$9;
3862
-
3863
- var functionUncurryThisAccessor = function (object, key, method) {
3864
- try {
3865
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
3866
- return uncurryThis(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
3867
- } catch (error) { /* empty */ }
3868
- };
3869
-
3870
- var uncurryThisAccessor = functionUncurryThisAccessor;
3871
- var SetHelpers$3 = setHelpers;
3872
-
3873
- var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function (set) {
3874
- return set.size;
3875
- };
3876
-
3877
- var aCallable = aCallable$9;
3878
- var anObject = anObject$f;
3879
- var call = functionCall;
3880
- var toIntegerOrInfinity = toIntegerOrInfinity$3;
3881
- var getIteratorDirect = getIteratorDirect$6;
3882
-
3883
- var INVALID_SIZE = 'Invalid size';
3884
- var $RangeError = RangeError;
3885
- var $TypeError = TypeError;
3886
- var max = Math.max;
3887
-
3888
- var SetRecord = function (set, intSize) {
3889
- this.set = set;
3890
- this.size = max(intSize, 0);
3891
- this.has = aCallable(set.has);
3892
- this.keys = aCallable(set.keys);
3893
- };
3894
-
3895
- SetRecord.prototype = {
3896
- getIterator: function () {
3897
- return getIteratorDirect(anObject(call(this.keys, this.set)));
3898
- },
3899
- includes: function (it) {
3900
- return call(this.has, this.set, it);
3901
- }
3902
- };
3903
-
3904
- // `GetSetRecord` abstract operation
3905
- // https://tc39.es/proposal-set-methods/#sec-getsetrecord
3906
- var getSetRecord$7 = function (obj) {
3907
- anObject(obj);
3908
- var numSize = +obj.size;
3909
- // NOTE: If size is undefined, then numSize will be NaN
3910
- // eslint-disable-next-line no-self-compare -- NaN check
3911
- if (numSize !== numSize) throw new $TypeError(INVALID_SIZE);
3912
- var intSize = toIntegerOrInfinity(numSize);
3913
- if (intSize < 0) throw new $RangeError(INVALID_SIZE);
3914
- return new SetRecord(obj, intSize);
3915
- };
3916
-
3917
- var aSet$6 = aSet$7;
3918
- var SetHelpers$2 = setHelpers;
3919
- var clone$2 = setClone;
3920
- var size$4 = setSize;
3921
- var getSetRecord$6 = getSetRecord$7;
3922
- var iterateSet$2 = setIterate;
3923
- var iterateSimple$5 = iterateSimple$7;
3924
-
3925
- var has$4 = SetHelpers$2.has;
3926
- var remove$1 = SetHelpers$2.remove;
3927
-
3928
- // `Set.prototype.difference` method
3929
- // https://github.com/tc39/proposal-set-methods
3930
- var setDifference = function difference(other) {
3931
- var O = aSet$6(this);
3932
- var otherRec = getSetRecord$6(other);
3933
- var result = clone$2(O);
3934
- if (size$4(O) <= otherRec.size) iterateSet$2(O, function (e) {
3935
- if (otherRec.includes(e)) remove$1(result, e);
3936
- });
3937
- else iterateSimple$5(otherRec.getIterator(), function (e) {
3938
- if (has$4(O, e)) remove$1(result, e);
3939
- });
3940
- return result;
3941
- };
3942
-
3943
- var getBuiltIn = getBuiltIn$4;
3944
-
3945
- var createSetLike = function (size) {
3946
- return {
3947
- size: size,
3948
- has: function () {
3949
- return false;
3950
- },
3951
- keys: function () {
3952
- return {
3953
- next: function () {
3954
- return { done: true };
3955
- }
3956
- };
3957
- }
3958
- };
3959
- };
3960
-
3961
- var setMethodAcceptSetLike$7 = function (name) {
3962
- var Set = getBuiltIn('Set');
3963
- try {
3964
- new Set()[name](createSetLike(0));
3965
- try {
3966
- // late spec change, early WebKit ~ Safari 17.0 beta implementation does not pass it
3967
- // https://github.com/tc39/proposal-set-methods/pull/88
3968
- new Set()[name](createSetLike(-1));
3969
- return false;
3970
- } catch (error2) {
3971
- return true;
3972
- }
3973
- } catch (error) {
3974
- return false;
3975
- }
3976
- };
3977
-
3978
- var $$6 = _export;
3979
- var difference = setDifference;
3980
- var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
3981
-
3982
- // `Set.prototype.difference` method
3983
- // https://github.com/tc39/proposal-set-methods
3984
- $$6({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
3985
- difference: difference
3986
- });
3987
-
3988
- var aSet$5 = aSet$7;
3989
- var SetHelpers$1 = setHelpers;
3990
- var size$3 = setSize;
3991
- var getSetRecord$5 = getSetRecord$7;
3992
- var iterateSet$1 = setIterate;
3993
- var iterateSimple$4 = iterateSimple$7;
3994
-
3995
- var Set$1 = SetHelpers$1.Set;
3996
- var add$2 = SetHelpers$1.add;
3997
- var has$3 = SetHelpers$1.has;
3998
-
3999
- // `Set.prototype.intersection` method
4000
- // https://github.com/tc39/proposal-set-methods
4001
- var setIntersection = function intersection(other) {
4002
- var O = aSet$5(this);
4003
- var otherRec = getSetRecord$5(other);
4004
- var result = new Set$1();
4005
-
4006
- if (size$3(O) > otherRec.size) {
4007
- iterateSimple$4(otherRec.getIterator(), function (e) {
4008
- if (has$3(O, e)) add$2(result, e);
4009
- });
4010
- } else {
4011
- iterateSet$1(O, function (e) {
4012
- if (otherRec.includes(e)) add$2(result, e);
4013
- });
4014
- }
4015
-
4016
- return result;
4017
- };
4018
-
4019
- var $$5 = _export;
4020
- var fails = fails$c;
4021
- var intersection = setIntersection;
4022
- var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
4023
-
4024
- var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails(function () {
4025
- // eslint-disable-next-line es/no-array-from, es/no-set -- testing
4026
- return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
4027
- });
4028
-
4029
- // `Set.prototype.intersection` method
4030
- // https://github.com/tc39/proposal-set-methods
4031
- $$5({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
4032
- intersection: intersection
4033
- });
4034
-
4035
- var aSet$4 = aSet$7;
4036
- var has$2 = setHelpers.has;
4037
- var size$2 = setSize;
4038
- var getSetRecord$4 = getSetRecord$7;
4039
- var iterateSet = setIterate;
4040
- var iterateSimple$3 = iterateSimple$7;
4041
- var iteratorClose$1 = iteratorClose$6;
4042
-
4043
- // `Set.prototype.isDisjointFrom` method
4044
- // https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
4045
- var setIsDisjointFrom = function isDisjointFrom(other) {
4046
- var O = aSet$4(this);
4047
- var otherRec = getSetRecord$4(other);
4048
- if (size$2(O) <= otherRec.size) return iterateSet(O, function (e) {
4049
- if (otherRec.includes(e)) return false;
4050
- }, true) !== false;
4051
- var iterator = otherRec.getIterator();
4052
- return iterateSimple$3(iterator, function (e) {
4053
- if (has$2(O, e)) return iteratorClose$1(iterator, 'normal', false);
4054
- }) !== false;
4055
- };
4056
-
4057
- var $$4 = _export;
4058
- var isDisjointFrom = setIsDisjointFrom;
4059
- var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
4060
-
4061
- // `Set.prototype.isDisjointFrom` method
4062
- // https://github.com/tc39/proposal-set-methods
4063
- $$4({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
4064
- isDisjointFrom: isDisjointFrom
4065
- });
4066
-
4067
- var aSet$3 = aSet$7;
4068
- var size$1 = setSize;
4069
- var iterate = setIterate;
4070
- var getSetRecord$3 = getSetRecord$7;
4071
-
4072
- // `Set.prototype.isSubsetOf` method
4073
- // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf
4074
- var setIsSubsetOf = function isSubsetOf(other) {
4075
- var O = aSet$3(this);
4076
- var otherRec = getSetRecord$3(other);
4077
- if (size$1(O) > otherRec.size) return false;
4078
- return iterate(O, function (e) {
4079
- if (!otherRec.includes(e)) return false;
4080
- }, true) !== false;
4081
- };
4082
-
4083
- var $$3 = _export;
4084
- var isSubsetOf = setIsSubsetOf;
4085
- var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
4086
-
4087
- // `Set.prototype.isSubsetOf` method
4088
- // https://github.com/tc39/proposal-set-methods
4089
- $$3({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
4090
- isSubsetOf: isSubsetOf
4091
- });
4092
-
4093
- var aSet$2 = aSet$7;
4094
- var has$1 = setHelpers.has;
4095
- var size = setSize;
4096
- var getSetRecord$2 = getSetRecord$7;
4097
- var iterateSimple$2 = iterateSimple$7;
4098
- var iteratorClose = iteratorClose$6;
4099
-
4100
- // `Set.prototype.isSupersetOf` method
4101
- // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
4102
- var setIsSupersetOf = function isSupersetOf(other) {
4103
- var O = aSet$2(this);
4104
- var otherRec = getSetRecord$2(other);
4105
- if (size(O) < otherRec.size) return false;
4106
- var iterator = otherRec.getIterator();
4107
- return iterateSimple$2(iterator, function (e) {
4108
- if (!has$1(O, e)) return iteratorClose(iterator, 'normal', false);
4109
- }) !== false;
4110
- };
4111
-
4112
- var $$2 = _export;
4113
- var isSupersetOf = setIsSupersetOf;
4114
- var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
4115
-
4116
- // `Set.prototype.isSupersetOf` method
4117
- // https://github.com/tc39/proposal-set-methods
4118
- $$2({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
4119
- isSupersetOf: isSupersetOf
4120
- });
4121
-
4122
- var aSet$1 = aSet$7;
4123
- var SetHelpers = setHelpers;
4124
- var clone$1 = setClone;
4125
- var getSetRecord$1 = getSetRecord$7;
4126
- var iterateSimple$1 = iterateSimple$7;
4127
-
4128
- var add$1 = SetHelpers.add;
4129
- var has = SetHelpers.has;
4130
- var remove = SetHelpers.remove;
4131
-
4132
- // `Set.prototype.symmetricDifference` method
4133
- // https://github.com/tc39/proposal-set-methods
4134
- var setSymmetricDifference = function symmetricDifference(other) {
4135
- var O = aSet$1(this);
4136
- var keysIter = getSetRecord$1(other).getIterator();
4137
- var result = clone$1(O);
4138
- iterateSimple$1(keysIter, function (e) {
4139
- if (has(O, e)) remove(result, e);
4140
- else add$1(result, e);
4141
- });
4142
- return result;
4143
- };
4144
-
4145
- var $$1 = _export;
4146
- var symmetricDifference = setSymmetricDifference;
4147
- var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
4148
-
4149
- // `Set.prototype.symmetricDifference` method
4150
- // https://github.com/tc39/proposal-set-methods
4151
- $$1({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
4152
- symmetricDifference: symmetricDifference
4153
- });
4154
-
4155
- var aSet = aSet$7;
4156
- var add = setHelpers.add;
4157
- var clone = setClone;
4158
- var getSetRecord = getSetRecord$7;
4159
- var iterateSimple = iterateSimple$7;
4160
-
4161
- // `Set.prototype.union` method
4162
- // https://github.com/tc39/proposal-set-methods
4163
- var setUnion = function union(other) {
4164
- var O = aSet(this);
4165
- var keysIter = getSetRecord(other).getIterator();
4166
- var result = clone(O);
4167
- iterateSimple(keysIter, function (it) {
4168
- add(result, it);
4169
- });
4170
- return result;
4171
- };
4172
-
4173
- var $ = _export;
4174
- var union = setUnion;
4175
- var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
4176
-
4177
- // `Set.prototype.union` method
4178
- // https://github.com/tc39/proposal-set-methods
4179
- $({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
4180
- union: union
4181
- });
4182
-
4183
2040
  function zohoCrmCreateTagsForModule(context) {
4184
2041
  return input => context.fetchJson(`/v8/settings/tags?${fetch.makeUrlSearchParams({
4185
2042
  module: input.module
@@ -4215,6 +2072,19 @@ function zohoCrmCreateTagsForModule(context) {
4215
2072
  };
4216
2073
  });
4217
2074
  }
2075
+ /**
2076
+ * Deletes a single tag by ID.
2077
+ *
2078
+ * Note: A tag cannot be deleted if it is associated with any configuration (e.g. Workflow Rules).
2079
+ *
2080
+ * https://www.zoho.com/crm/developer/docs/api/v8/delete-tag.html
2081
+ *
2082
+ * @param context
2083
+ * @returns
2084
+ */
2085
+ function zohoCrmDeleteTag(context) {
2086
+ return input => context.fetchJson(`/v8/settings/tags/${input.id}`, zohoCrmApiFetchJsonInput('DELETE')).then(x => x.tags);
2087
+ }
4218
2088
  /**
4219
2089
  * Returns the list of tags within a module.
4220
2090
  *
@@ -4636,7 +2506,6 @@ exports.addTagsToRecords = addTagsToRecords;
4636
2506
  exports.assertRecordDataArrayResultHasContent = assertRecordDataArrayResultHasContent;
4637
2507
  exports.assertZohoCrmRecordDataArrayResultHasContent = assertZohoCrmRecordDataArrayResultHasContent;
4638
2508
  exports.assertZohoRecruitRecordDataArrayResultHasContent = assertZohoRecruitRecordDataArrayResultHasContent;
4639
- exports.associateCandidateRecordsWithJobOpenings = associateCandidateRecordsWithJobOpenings;
4640
2509
  exports.createNotes = createNotes;
4641
2510
  exports.createNotesForRecord = createNotesForRecord;
4642
2511
  exports.createTagsForModule = createTagsForModule;
@@ -4683,11 +2552,6 @@ exports.parseZohoRecruitServerErrorResponseData = parseZohoRecruitServerErrorRes
4683
2552
  exports.parseZohoServerErrorResponseData = parseZohoServerErrorResponseData;
4684
2553
  exports.removeTagsFromRecords = removeTagsFromRecords;
4685
2554
  exports.safeZohoDateTimeString = safeZohoDateTimeString;
4686
- exports.searchAssociatedRecords = searchAssociatedRecords;
4687
- exports.searchCandidateAssociatedJobOpeningRecords = searchCandidateAssociatedJobOpeningRecords;
4688
- exports.searchCandidateAssociatedJobOpeningRecordsPageFactory = searchCandidateAssociatedJobOpeningRecordsPageFactory;
4689
- exports.searchJobOpeningAssociatedCandidateRecords = searchJobOpeningAssociatedCandidateRecords;
4690
- exports.searchJobOpeningAssociatedCandidateRecordsPageFactory = searchJobOpeningAssociatedCandidateRecordsPageFactory;
4691
2555
  exports.searchRecords = searchRecords;
4692
2556
  exports.searchRecordsPageFactory = searchRecordsPageFactory;
4693
2557
  exports.tryFindZohoServerErrorData = tryFindZohoServerErrorData;
@@ -4712,6 +2576,7 @@ exports.zohoCrmCreateTagsForModule = zohoCrmCreateTagsForModule;
4712
2576
  exports.zohoCrmDeleteAttachmentFromRecord = zohoCrmDeleteAttachmentFromRecord;
4713
2577
  exports.zohoCrmDeleteNotes = zohoCrmDeleteNotes;
4714
2578
  exports.zohoCrmDeleteRecord = zohoCrmDeleteRecord;
2579
+ exports.zohoCrmDeleteTag = zohoCrmDeleteTag;
4715
2580
  exports.zohoCrmDownloadAttachmentForRecord = zohoCrmDownloadAttachmentForRecord;
4716
2581
  exports.zohoCrmExecuteRestApiFunction = zohoCrmExecuteRestApiFunction;
4717
2582
  exports.zohoCrmFactory = zohoCrmFactory;