@bcrumbs.net/bc-api 0.0.42 → 0.0.43

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
@@ -1,5 +1,5 @@
1
1
  import { parse } from 'graphql';
2
- import { InMemoryCache, ApolloClient, from, useQuery, createHttpLink, useLazyQuery, useMutation } from '@apollo/client';
2
+ import { InMemoryCache, ApolloClient, from, useQuery, createHttpLink, useLazyQuery, useMutation, split as split$1 } from '@apollo/client';
3
3
  import { onError } from '@apollo/client/link/error';
4
4
  import { setContext } from '@apollo/client/link/context';
5
5
  import { RestLink } from 'apollo-link-rest';
@@ -9,6 +9,8 @@ import Url from 'url';
9
9
  import require$$0$1 from 'punycode';
10
10
  import https from 'https';
11
11
  import zlib from 'zlib';
12
+ import { BatchHttpLink } from '@apollo/client/link/batch-http';
13
+ import { getMainDefinition } from '@apollo/client/utilities';
12
14
 
13
15
  /******************************************************************************
14
16
  Copyright (c) Microsoft Corporation.
@@ -459,19 +461,19 @@ var tryToString$3 = tryToString$4;
459
461
  var $TypeError$d = TypeError;
460
462
 
461
463
  // `Assert: IsCallable(argument) is true`
462
- var aCallable$9 = function (argument) {
464
+ var aCallable$a = function (argument) {
463
465
  if (isCallable$i(argument)) return argument;
464
466
  throw new $TypeError$d(tryToString$3(argument) + ' is not a function');
465
467
  };
466
468
 
467
- var aCallable$8 = aCallable$9;
469
+ var aCallable$9 = aCallable$a;
468
470
  var isNullOrUndefined$4 = isNullOrUndefined$6;
469
471
 
470
472
  // `GetMethod` abstract operation
471
473
  // https://tc39.es/ecma262/#sec-getmethod
472
474
  var getMethod$5 = function (V, P) {
473
475
  var func = V[P];
474
- return isNullOrUndefined$4(func) ? undefined : aCallable$8(func);
476
+ return isNullOrUndefined$4(func) ? undefined : aCallable$9(func);
475
477
  };
476
478
 
477
479
  var call$g = functionCall;
@@ -681,7 +683,7 @@ var $String$3 = String;
681
683
  var $TypeError$a = TypeError;
682
684
 
683
685
  // `Assert: Type(argument) is Object`
684
- var anObject$f = function (argument) {
686
+ var anObject$g = function (argument) {
685
687
  if (isObject$6(argument)) return argument;
686
688
  throw new $TypeError$a($String$3(argument) + ' is not an object');
687
689
  };
@@ -689,7 +691,7 @@ var anObject$f = function (argument) {
689
691
  var DESCRIPTORS$a = descriptors;
690
692
  var IE8_DOM_DEFINE = ie8DomDefine;
691
693
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
692
- var anObject$e = anObject$f;
694
+ var anObject$f = anObject$g;
693
695
  var toPropertyKey = toPropertyKey$2;
694
696
 
695
697
  var $TypeError$9 = TypeError;
@@ -704,9 +706,9 @@ var WRITABLE = 'writable';
704
706
  // `Object.defineProperty` method
705
707
  // https://tc39.es/ecma262/#sec-object.defineproperty
706
708
  objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
707
- anObject$e(O);
709
+ anObject$f(O);
708
710
  P = toPropertyKey(P);
709
- anObject$e(Attributes);
711
+ anObject$f(Attributes);
710
712
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
711
713
  var current = $getOwnPropertyDescriptor(O, P);
712
714
  if (current && current[WRITABLE]) {
@@ -719,9 +721,9 @@ objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
719
721
  }
720
722
  } return $defineProperty(O, P, Attributes);
721
723
  } : $defineProperty : function defineProperty(O, P, Attributes) {
722
- anObject$e(O);
724
+ anObject$f(O);
723
725
  P = toPropertyKey(P);
724
- anObject$e(Attributes);
726
+ anObject$f(Attributes);
725
727
  if (IE8_DOM_DEFINE) try {
726
728
  return $defineProperty(O, P, Attributes);
727
729
  } catch (error) { /* empty */ }
@@ -1088,13 +1090,13 @@ var getBuiltIn$5 = getBuiltIn$7;
1088
1090
  var uncurryThis$a = functionUncurryThis;
1089
1091
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1090
1092
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1091
- var anObject$d = anObject$f;
1093
+ var anObject$e = anObject$g;
1092
1094
 
1093
1095
  var concat$2 = uncurryThis$a([].concat);
1094
1096
 
1095
1097
  // all object keys, includes non-enumerable and symbols
1096
1098
  var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
1097
- var keys = getOwnPropertyNamesModule.f(anObject$d(it));
1099
+ var keys = getOwnPropertyNamesModule.f(anObject$e(it));
1098
1100
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1099
1101
  return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
1100
1102
  };
@@ -1261,13 +1263,13 @@ var objectAssign = !$assign || fails$a(function () {
1261
1263
  } return T;
1262
1264
  } : $assign;
1263
1265
 
1264
- var $$a = _export;
1266
+ var $$b = _export;
1265
1267
  var assign = objectAssign;
1266
1268
 
1267
1269
  // `Object.assign` method
1268
1270
  // https://tc39.es/ecma262/#sec-object.assign
1269
1271
  // eslint-disable-next-line es/no-object-assign -- required for testing
1270
- $$a({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1272
+ $$b({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1271
1273
  assign: assign
1272
1274
  });
1273
1275
 
@@ -1319,12 +1321,12 @@ var toString$4 = function (argument) {
1319
1321
  return $String$1(argument);
1320
1322
  };
1321
1323
 
1322
- var anObject$c = anObject$f;
1324
+ var anObject$d = anObject$g;
1323
1325
 
1324
1326
  // `RegExp.prototype.flags` getter implementation
1325
1327
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1326
1328
  var regexpFlags$1 = function () {
1327
- var that = anObject$c(this);
1329
+ var that = anObject$d(this);
1328
1330
  var result = '';
1329
1331
  if (that.hasIndices) result += 'd';
1330
1332
  if (that.global) result += 'g';
@@ -1370,7 +1372,7 @@ var objectDefineProperties = {};
1370
1372
  var DESCRIPTORS$5 = descriptors;
1371
1373
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1372
1374
  var definePropertyModule$1 = objectDefineProperty;
1373
- var anObject$b = anObject$f;
1375
+ var anObject$c = anObject$g;
1374
1376
  var toIndexedObject$1 = toIndexedObject$5;
1375
1377
  var objectKeys = objectKeys$2;
1376
1378
 
@@ -1378,7 +1380,7 @@ var objectKeys = objectKeys$2;
1378
1380
  // https://tc39.es/ecma262/#sec-object.defineproperties
1379
1381
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1380
1382
  objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1381
- anObject$b(O);
1383
+ anObject$c(O);
1382
1384
  var props = toIndexedObject$1(Properties);
1383
1385
  var keys = objectKeys(Properties);
1384
1386
  var length = keys.length;
@@ -1393,7 +1395,7 @@ var getBuiltIn$4 = getBuiltIn$7;
1393
1395
  var html$2 = getBuiltIn$4('document', 'documentElement');
1394
1396
 
1395
1397
  /* global ActiveXObject -- old IE, WSH */
1396
- var anObject$a = anObject$f;
1398
+ var anObject$b = anObject$g;
1397
1399
  var definePropertiesModule = objectDefineProperties;
1398
1400
  var enumBugKeys = enumBugKeys$3;
1399
1401
  var hiddenKeys = hiddenKeys$4;
@@ -1467,7 +1469,7 @@ hiddenKeys[IE_PROTO$1] = true;
1467
1469
  var objectCreate = Object.create || function create(O, Properties) {
1468
1470
  var result;
1469
1471
  if (O !== null) {
1470
- EmptyConstructor[PROTOTYPE] = anObject$a(O);
1472
+ EmptyConstructor[PROTOTYPE] = anObject$b(O);
1471
1473
  result = new EmptyConstructor();
1472
1474
  EmptyConstructor[PROTOTYPE] = null;
1473
1475
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -1616,12 +1618,12 @@ if (PATCH) {
1616
1618
 
1617
1619
  var regexpExec$2 = patchedExec;
1618
1620
 
1619
- var $$9 = _export;
1621
+ var $$a = _export;
1620
1622
  var exec$1 = regexpExec$2;
1621
1623
 
1622
1624
  // `RegExp.prototype.exec` method
1623
1625
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1624
- $$9({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
1626
+ $$a({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
1625
1627
  exec: exec$1
1626
1628
  });
1627
1629
 
@@ -1801,7 +1803,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
1801
1803
  };
1802
1804
 
1803
1805
  var call$9 = functionCall;
1804
- var anObject$9 = anObject$f;
1806
+ var anObject$a = anObject$g;
1805
1807
  var isCallable$a = isCallable$m;
1806
1808
  var classof$3 = classofRaw$2;
1807
1809
  var regexpExec = regexpExec$2;
@@ -1814,7 +1816,7 @@ var regexpExecAbstract = function (R, S) {
1814
1816
  var exec = R.exec;
1815
1817
  if (isCallable$a(exec)) {
1816
1818
  var result = call$9(exec, R, S);
1817
- if (result !== null) anObject$9(result);
1819
+ if (result !== null) anObject$a(result);
1818
1820
  return result;
1819
1821
  }
1820
1822
  if (classof$3(R) === 'RegExp') return call$9(regexpExec, R, S);
@@ -1826,7 +1828,7 @@ var call$8 = functionCall;
1826
1828
  var uncurryThis$5 = functionUncurryThis;
1827
1829
  var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
1828
1830
  var fails$5 = fails$j;
1829
- var anObject$8 = anObject$f;
1831
+ var anObject$9 = anObject$g;
1830
1832
  var isCallable$9 = isCallable$m;
1831
1833
  var isNullOrUndefined$3 = isNullOrUndefined$6;
1832
1834
  var toIntegerOrInfinity = toIntegerOrInfinity$4;
@@ -1894,7 +1896,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
1894
1896
  // `RegExp.prototype[@@replace]` method
1895
1897
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1896
1898
  function (string, replaceValue) {
1897
- var rx = anObject$8(this);
1899
+ var rx = anObject$9(this);
1898
1900
  var S = toString$1(string);
1899
1901
 
1900
1902
  if (
@@ -1973,7 +1975,7 @@ var sameValue$1 = Object.is || function is(x, y) {
1973
1975
 
1974
1976
  var call$7 = functionCall;
1975
1977
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
1976
- var anObject$7 = anObject$f;
1978
+ var anObject$8 = anObject$g;
1977
1979
  var isNullOrUndefined$2 = isNullOrUndefined$6;
1978
1980
  var requireObjectCoercible$1 = requireObjectCoercible$6;
1979
1981
  var sameValue = sameValue$1;
@@ -1994,7 +1996,7 @@ fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCal
1994
1996
  // `RegExp.prototype[@@search]` method
1995
1997
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
1996
1998
  function (string) {
1997
- var rx = anObject$7(this);
1999
+ var rx = anObject$8(this);
1998
2000
  var S = toString(string);
1999
2001
  var res = maybeCallNative(nativeSearch, rx, S);
2000
2002
 
@@ -2244,12 +2246,12 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
2244
2246
  };
2245
2247
 
2246
2248
  var uncurryThis$4 = functionUncurryThis;
2247
- var aCallable$7 = aCallable$9;
2249
+ var aCallable$8 = aCallable$a;
2248
2250
 
2249
2251
  var functionUncurryThisAccessor = function (object, key, method) {
2250
2252
  try {
2251
2253
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2252
- return uncurryThis$4(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
2254
+ return uncurryThis$4(aCallable$8(Object.getOwnPropertyDescriptor(object, key)[method]));
2253
2255
  } catch (error) { /* empty */ }
2254
2256
  };
2255
2257
 
@@ -2298,7 +2300,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
2298
2300
  };
2299
2301
  }() : undefined);
2300
2302
 
2301
- var $$8 = _export;
2303
+ var $$9 = _export;
2302
2304
  var call$6 = functionCall;
2303
2305
  var FunctionName = functionName;
2304
2306
  var isCallable$6 = isCallable$m;
@@ -2386,7 +2388,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
2386
2388
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
2387
2389
  defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
2388
2390
  }
2389
- } else $$8({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2391
+ } else $$9({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2390
2392
  }
2391
2393
 
2392
2394
  // define iterator
@@ -2569,7 +2571,7 @@ var aConstructor$1 = function (argument) {
2569
2571
  throw new $TypeError$5(tryToString$2(argument) + ' is not a constructor');
2570
2572
  };
2571
2573
 
2572
- var anObject$6 = anObject$f;
2574
+ var anObject$7 = anObject$g;
2573
2575
  var aConstructor = aConstructor$1;
2574
2576
  var isNullOrUndefined$1 = isNullOrUndefined$6;
2575
2577
  var wellKnownSymbol$6 = wellKnownSymbol$h;
@@ -2579,9 +2581,9 @@ var SPECIES$1 = wellKnownSymbol$6('species');
2579
2581
  // `SpeciesConstructor` abstract operation
2580
2582
  // https://tc39.es/ecma262/#sec-speciesconstructor
2581
2583
  var speciesConstructor$1 = function (O, defaultConstructor) {
2582
- var C = anObject$6(O).constructor;
2584
+ var C = anObject$7(O).constructor;
2583
2585
  var S;
2584
- return C === undefined || isNullOrUndefined$1(S = anObject$6(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
2586
+ return C === undefined || isNullOrUndefined$1(S = anObject$7(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
2585
2587
  };
2586
2588
 
2587
2589
  var classofRaw = classofRaw$2;
@@ -2595,14 +2597,14 @@ var functionUncurryThisClause = function (fn) {
2595
2597
  };
2596
2598
 
2597
2599
  var uncurryThis$1 = functionUncurryThisClause;
2598
- var aCallable$6 = aCallable$9;
2600
+ var aCallable$7 = aCallable$a;
2599
2601
  var NATIVE_BIND = functionBindNative;
2600
2602
 
2601
2603
  var bind$4 = uncurryThis$1(uncurryThis$1.bind);
2602
2604
 
2603
2605
  // optional / simple context binding
2604
2606
  var functionBindContext = function (fn, that) {
2605
- aCallable$6(fn);
2607
+ aCallable$7(fn);
2606
2608
  return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
2607
2609
  return fn.apply(that, arguments);
2608
2610
  };
@@ -2940,7 +2942,7 @@ var promiseConstructorDetection = {
2940
2942
 
2941
2943
  var newPromiseCapability$2 = {};
2942
2944
 
2943
- var aCallable$5 = aCallable$9;
2945
+ var aCallable$6 = aCallable$a;
2944
2946
 
2945
2947
  var $TypeError$3 = TypeError;
2946
2948
 
@@ -2951,8 +2953,8 @@ var PromiseCapability = function (C) {
2951
2953
  resolve = $$resolve;
2952
2954
  reject = $$reject;
2953
2955
  });
2954
- this.resolve = aCallable$5(resolve);
2955
- this.reject = aCallable$5(reject);
2956
+ this.resolve = aCallable$6(resolve);
2957
+ this.reject = aCallable$6(reject);
2956
2958
  };
2957
2959
 
2958
2960
  // `NewPromiseCapability` abstract operation
@@ -2961,7 +2963,7 @@ newPromiseCapability$2.f = function (C) {
2961
2963
  return new PromiseCapability(C);
2962
2964
  };
2963
2965
 
2964
- var $$7 = _export;
2966
+ var $$8 = _export;
2965
2967
  var IS_NODE = engineIsNode;
2966
2968
  var global$3 = global$m;
2967
2969
  var call$5 = functionCall;
@@ -2969,7 +2971,7 @@ var defineBuiltIn$1 = defineBuiltIn$6;
2969
2971
  var setPrototypeOf = objectSetPrototypeOf;
2970
2972
  var setToStringTag$1 = setToStringTag$4;
2971
2973
  var setSpecies = setSpecies$1;
2972
- var aCallable$4 = aCallable$9;
2974
+ var aCallable$5 = aCallable$a;
2973
2975
  var isCallable$2 = isCallable$m;
2974
2976
  var isObject$1 = isObject$a;
2975
2977
  var anInstance$1 = anInstance$2;
@@ -3159,7 +3161,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
3159
3161
  // 25.4.3.1 Promise(executor)
3160
3162
  PromiseConstructor = function Promise(executor) {
3161
3163
  anInstance$1(this, PromisePrototype);
3162
- aCallable$4(executor);
3164
+ aCallable$5(executor);
3163
3165
  call$5(Internal, this);
3164
3166
  var state = getInternalPromiseState(this);
3165
3167
  try {
@@ -3241,7 +3243,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
3241
3243
  }
3242
3244
  }
3243
3245
 
3244
- $$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
3246
+ $$8({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
3245
3247
  Promise: PromiseConstructor
3246
3248
  });
3247
3249
 
@@ -3274,8 +3276,8 @@ var getIteratorMethod$2 = function (it) {
3274
3276
  };
3275
3277
 
3276
3278
  var call$4 = functionCall;
3277
- var aCallable$3 = aCallable$9;
3278
- var anObject$5 = anObject$f;
3279
+ var aCallable$4 = aCallable$a;
3280
+ var anObject$6 = anObject$g;
3279
3281
  var tryToString$1 = tryToString$4;
3280
3282
  var getIteratorMethod$1 = getIteratorMethod$2;
3281
3283
 
@@ -3283,17 +3285,17 @@ var $TypeError$2 = TypeError;
3283
3285
 
3284
3286
  var getIterator$1 = function (argument, usingIterator) {
3285
3287
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
3286
- if (aCallable$3(iteratorMethod)) return anObject$5(call$4(iteratorMethod, argument));
3288
+ if (aCallable$4(iteratorMethod)) return anObject$6(call$4(iteratorMethod, argument));
3287
3289
  throw new $TypeError$2(tryToString$1(argument) + ' is not iterable');
3288
3290
  };
3289
3291
 
3290
3292
  var call$3 = functionCall;
3291
- var anObject$4 = anObject$f;
3293
+ var anObject$5 = anObject$g;
3292
3294
  var getMethod = getMethod$5;
3293
3295
 
3294
3296
  var iteratorClose$1 = function (iterator, kind, value) {
3295
3297
  var innerResult, innerError;
3296
- anObject$4(iterator);
3298
+ anObject$5(iterator);
3297
3299
  try {
3298
3300
  innerResult = getMethod(iterator, 'return');
3299
3301
  if (!innerResult) {
@@ -3307,13 +3309,13 @@ var iteratorClose$1 = function (iterator, kind, value) {
3307
3309
  }
3308
3310
  if (kind === 'throw') throw value;
3309
3311
  if (innerError) throw innerResult;
3310
- anObject$4(innerResult);
3312
+ anObject$5(innerResult);
3311
3313
  return value;
3312
3314
  };
3313
3315
 
3314
3316
  var bind = functionBindContext;
3315
3317
  var call$2 = functionCall;
3316
- var anObject$3 = anObject$f;
3318
+ var anObject$4 = anObject$g;
3317
3319
  var tryToString = tryToString$4;
3318
3320
  var isArrayIteratorMethod = isArrayIteratorMethod$1;
3319
3321
  var lengthOfArrayLike = lengthOfArrayLike$2;
@@ -3331,7 +3333,7 @@ var Result = function (stopped, result) {
3331
3333
 
3332
3334
  var ResultPrototype = Result.prototype;
3333
3335
 
3334
- var iterate$3 = function (iterable, unboundFunction, options) {
3336
+ var iterate$4 = function (iterable, unboundFunction, options) {
3335
3337
  var that = options && options.that;
3336
3338
  var AS_ENTRIES = !!(options && options.AS_ENTRIES);
3337
3339
  var IS_RECORD = !!(options && options.IS_RECORD);
@@ -3347,7 +3349,7 @@ var iterate$3 = function (iterable, unboundFunction, options) {
3347
3349
 
3348
3350
  var callFn = function (value) {
3349
3351
  if (AS_ENTRIES) {
3350
- anObject$3(value);
3352
+ anObject$4(value);
3351
3353
  return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
3352
3354
  } return INTERRUPTED ? fn(value, stop) : fn(value);
3353
3355
  };
@@ -3429,28 +3431,28 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
3429
3431
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
3430
3432
  });
3431
3433
 
3432
- var $$6 = _export;
3434
+ var $$7 = _export;
3433
3435
  var call$1 = functionCall;
3434
- var aCallable$2 = aCallable$9;
3436
+ var aCallable$3 = aCallable$a;
3435
3437
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
3436
3438
  var perform$1 = perform$3;
3437
- var iterate$2 = iterate$3;
3439
+ var iterate$3 = iterate$4;
3438
3440
  var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
3439
3441
 
3440
3442
  // `Promise.all` method
3441
3443
  // https://tc39.es/ecma262/#sec-promise.all
3442
- $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
3444
+ $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
3443
3445
  all: function all(iterable) {
3444
3446
  var C = this;
3445
3447
  var capability = newPromiseCapabilityModule$2.f(C);
3446
3448
  var resolve = capability.resolve;
3447
3449
  var reject = capability.reject;
3448
3450
  var result = perform$1(function () {
3449
- var $promiseResolve = aCallable$2(C.resolve);
3451
+ var $promiseResolve = aCallable$3(C.resolve);
3450
3452
  var values = [];
3451
3453
  var counter = 0;
3452
3454
  var remaining = 1;
3453
- iterate$2(iterable, function (promise) {
3455
+ iterate$3(iterable, function (promise) {
3454
3456
  var index = counter++;
3455
3457
  var alreadyCalled = false;
3456
3458
  remaining++;
@@ -3468,7 +3470,7 @@ $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
3468
3470
  }
3469
3471
  });
3470
3472
 
3471
- var $$5 = _export;
3473
+ var $$6 = _export;
3472
3474
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
3473
3475
  var NativePromiseConstructor = promiseNativeConstructor;
3474
3476
  var getBuiltIn$1 = getBuiltIn$7;
@@ -3479,7 +3481,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
3479
3481
 
3480
3482
  // `Promise.prototype.catch` method
3481
3483
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
3482
- $$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
3484
+ $$6({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
3483
3485
  'catch': function (onRejected) {
3484
3486
  return this.then(undefined, onRejected);
3485
3487
  }
@@ -3493,24 +3495,24 @@ if (isCallable$1(NativePromiseConstructor)) {
3493
3495
  }
3494
3496
  }
3495
3497
 
3496
- var $$4 = _export;
3498
+ var $$5 = _export;
3497
3499
  var call = functionCall;
3498
- var aCallable$1 = aCallable$9;
3500
+ var aCallable$2 = aCallable$a;
3499
3501
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
3500
3502
  var perform = perform$3;
3501
- var iterate$1 = iterate$3;
3503
+ var iterate$2 = iterate$4;
3502
3504
  var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
3503
3505
 
3504
3506
  // `Promise.race` method
3505
3507
  // https://tc39.es/ecma262/#sec-promise.race
3506
- $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
3508
+ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
3507
3509
  race: function race(iterable) {
3508
3510
  var C = this;
3509
3511
  var capability = newPromiseCapabilityModule$1.f(C);
3510
3512
  var reject = capability.reject;
3511
3513
  var result = perform(function () {
3512
- var $promiseResolve = aCallable$1(C.resolve);
3513
- iterate$1(iterable, function (promise) {
3514
+ var $promiseResolve = aCallable$2(C.resolve);
3515
+ iterate$2(iterable, function (promise) {
3514
3516
  call($promiseResolve, C, promise).then(capability.resolve, reject);
3515
3517
  });
3516
3518
  });
@@ -3519,13 +3521,13 @@ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
3519
3521
  }
3520
3522
  });
3521
3523
 
3522
- var $$3 = _export;
3524
+ var $$4 = _export;
3523
3525
  var newPromiseCapabilityModule = newPromiseCapability$2;
3524
3526
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
3525
3527
 
3526
3528
  // `Promise.reject` method
3527
3529
  // https://tc39.es/ecma262/#sec-promise.reject
3528
- $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3530
+ $$4({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3529
3531
  reject: function reject(r) {
3530
3532
  var capability = newPromiseCapabilityModule.f(this);
3531
3533
  var capabilityReject = capability.reject;
@@ -3534,12 +3536,12 @@ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3534
3536
  }
3535
3537
  });
3536
3538
 
3537
- var anObject$2 = anObject$f;
3539
+ var anObject$3 = anObject$g;
3538
3540
  var isObject = isObject$a;
3539
3541
  var newPromiseCapability = newPromiseCapability$2;
3540
3542
 
3541
3543
  var promiseResolve$1 = function (C, x) {
3542
- anObject$2(C);
3544
+ anObject$3(C);
3543
3545
  if (isObject(x) && x.constructor === C) return x;
3544
3546
  var promiseCapability = newPromiseCapability.f(C);
3545
3547
  var resolve = promiseCapability.resolve;
@@ -3547,7 +3549,7 @@ var promiseResolve$1 = function (C, x) {
3547
3549
  return promiseCapability.promise;
3548
3550
  };
3549
3551
 
3550
- var $$2 = _export;
3552
+ var $$3 = _export;
3551
3553
  var getBuiltIn = getBuiltIn$7;
3552
3554
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
3553
3555
  var promiseResolve = promiseResolve$1;
@@ -3556,12 +3558,114 @@ getBuiltIn('Promise');
3556
3558
 
3557
3559
  // `Promise.resolve` method
3558
3560
  // https://tc39.es/ecma262/#sec-promise.resolve
3559
- $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
3561
+ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
3560
3562
  resolve: function resolve(x) {
3561
3563
  return promiseResolve(this, x);
3562
3564
  }
3563
3565
  });
3564
3566
 
3567
+ var DESCRIPTORS$1 = descriptors;
3568
+ var definePropertyModule = objectDefineProperty;
3569
+ var createPropertyDescriptor = createPropertyDescriptor$4;
3570
+
3571
+ var createProperty$1 = function (object, key, value) {
3572
+ if (DESCRIPTORS$1) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
3573
+ else object[key] = value;
3574
+ };
3575
+
3576
+ var $$2 = _export;
3577
+ var global$2 = global$m;
3578
+ var anInstance = anInstance$2;
3579
+ var anObject$2 = anObject$g;
3580
+ var isCallable = isCallable$m;
3581
+ var getPrototypeOf = objectGetPrototypeOf;
3582
+ var defineBuiltInAccessor = defineBuiltInAccessor$2;
3583
+ var createProperty = createProperty$1;
3584
+ var fails = fails$j;
3585
+ var hasOwn = hasOwnProperty_1;
3586
+ var wellKnownSymbol$1 = wellKnownSymbol$h;
3587
+ var IteratorPrototype = iteratorsCore.IteratorPrototype;
3588
+ var DESCRIPTORS = descriptors;
3589
+
3590
+ var CONSTRUCTOR = 'constructor';
3591
+ var ITERATOR$1 = 'Iterator';
3592
+ var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
3593
+
3594
+ var $TypeError = TypeError;
3595
+ var NativeIterator = global$2[ITERATOR$1];
3596
+
3597
+ // FF56- have non-standard global helper `Iterator`
3598
+ var FORCED = !isCallable(NativeIterator)
3599
+ || NativeIterator.prototype !== IteratorPrototype
3600
+ // FF44- non-standard `Iterator` passes previous tests
3601
+ || !fails(function () { NativeIterator({}); });
3602
+
3603
+ var IteratorConstructor = function Iterator() {
3604
+ anInstance(this, IteratorPrototype);
3605
+ if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable');
3606
+ };
3607
+
3608
+ var defineIteratorPrototypeAccessor = function (key, value) {
3609
+ if (DESCRIPTORS) {
3610
+ defineBuiltInAccessor(IteratorPrototype, key, {
3611
+ configurable: true,
3612
+ get: function () {
3613
+ return value;
3614
+ },
3615
+ set: function (replacement) {
3616
+ anObject$2(this);
3617
+ if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property");
3618
+ if (hasOwn(this, key)) this[key] = replacement;
3619
+ else createProperty(this, key, replacement);
3620
+ }
3621
+ });
3622
+ } else IteratorPrototype[key] = value;
3623
+ };
3624
+
3625
+ if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR$1);
3626
+
3627
+ if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) {
3628
+ defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
3629
+ }
3630
+
3631
+ IteratorConstructor.prototype = IteratorPrototype;
3632
+
3633
+ // `Iterator` constructor
3634
+ // https://github.com/tc39/proposal-iterator-helpers
3635
+ $$2({ global: true, constructor: true, forced: FORCED }, {
3636
+ Iterator: IteratorConstructor
3637
+ });
3638
+
3639
+ // `GetIteratorDirect(obj)` abstract operation
3640
+ // https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
3641
+ var getIteratorDirect$2 = function (obj) {
3642
+ return {
3643
+ iterator: obj,
3644
+ next: obj.next,
3645
+ done: false
3646
+ };
3647
+ };
3648
+
3649
+ var $$1 = _export;
3650
+ var iterate$1 = iterate$4;
3651
+ var aCallable$1 = aCallable$a;
3652
+ var anObject$1 = anObject$g;
3653
+ var getIteratorDirect$1 = getIteratorDirect$2;
3654
+
3655
+ // `Iterator.prototype.find` method
3656
+ // https://github.com/tc39/proposal-iterator-helpers
3657
+ $$1({ target: 'Iterator', proto: true, real: true }, {
3658
+ find: function find(predicate) {
3659
+ anObject$1(this);
3660
+ aCallable$1(predicate);
3661
+ var record = getIteratorDirect$1(this);
3662
+ var counter = 0;
3663
+ return iterate$1(record, function (value, stop) {
3664
+ if (predicate(value, counter++)) return stop(value);
3665
+ }, { IS_RECORD: true, INTERRUPTED: true }).result;
3666
+ }
3667
+ });
3668
+
3565
3669
  // iterable DOM collections
3566
3670
  // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
3567
3671
  var domIterables = {
@@ -3606,24 +3710,24 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
3606
3710
 
3607
3711
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
3608
3712
 
3609
- var global$2 = global$m;
3713
+ var global$1 = global$m;
3610
3714
  var DOMIterables = domIterables;
3611
3715
  var DOMTokenListPrototype = domTokenListPrototype;
3612
3716
  var ArrayIteratorMethods = es_array_iterator;
3613
3717
  var createNonEnumerableProperty = createNonEnumerableProperty$5;
3614
3718
  var setToStringTag = setToStringTag$4;
3615
- var wellKnownSymbol$1 = wellKnownSymbol$h;
3719
+ var wellKnownSymbol = wellKnownSymbol$h;
3616
3720
 
3617
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
3721
+ var ITERATOR = wellKnownSymbol('iterator');
3618
3722
  var ArrayValues = ArrayIteratorMethods.values;
3619
3723
 
3620
3724
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
3621
3725
  if (CollectionPrototype) {
3622
3726
  // some Chrome versions have non-configurable methods on DOMTokenList
3623
- if (CollectionPrototype[ITERATOR$1] !== ArrayValues) try {
3624
- createNonEnumerableProperty(CollectionPrototype, ITERATOR$1, ArrayValues);
3727
+ if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
3728
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
3625
3729
  } catch (error) {
3626
- CollectionPrototype[ITERATOR$1] = ArrayValues;
3730
+ CollectionPrototype[ITERATOR] = ArrayValues;
3627
3731
  }
3628
3732
  setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
3629
3733
  if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
@@ -3638,7 +3742,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
3638
3742
  };
3639
3743
 
3640
3744
  for (var COLLECTION_NAME in DOMIterables) {
3641
- handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
3745
+ handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
3642
3746
  }
3643
3747
 
3644
3748
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
@@ -3649,16 +3753,25 @@ const defaultErrorHandler = ({
3649
3753
  graphQLErrors
3650
3754
  }) => {
3651
3755
  if (networkError && networkError.statusCode === 401) {
3652
- // redirect to login page
3653
- if (typeof window !== 'undefined' && window.location.pathname !== '/account/login') {
3654
- return window.location.replace('/account/login');
3756
+ redirectToLogin();
3757
+ return;
3758
+ }
3759
+ if (graphQLErrors && graphQLErrors.length > 0) {
3760
+ const unauthenticatedError = graphQLErrors.find(error => {
3761
+ var _a;
3762
+ return ((_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a['code']) === 'UNAUTHENTICATED';
3763
+ });
3764
+ if (unauthenticatedError) {
3765
+ redirectToLogin();
3766
+ return;
3655
3767
  }
3656
- } else if (networkError && networkError.statusCode > 500 && networkError.statusCode !== 503) {
3768
+ }
3769
+ if (networkError && networkError.statusCode > 500 && networkError.statusCode !== 503) {
3657
3770
  if (typeof window !== 'undefined' && window.location.pathname !== '/error') {
3658
3771
  return window.location.replace('/error?message=' + networkError.message);
3659
3772
  }
3660
3773
  }
3661
- // TODO: Uncomment this and fix when we have a proper way to handle 403 errors
3774
+ // TODO: Uncomment this and fix when we have a proper way to handle 403 errors, if needed
3662
3775
  // if (
3663
3776
  // graphQLErrors &&
3664
3777
  // graphQLErrors.find((error) => error?.extensions?.['code'] === 'FORBIDDEN')
@@ -3723,6 +3836,19 @@ function getUserContext() {
3723
3836
  });
3724
3837
  });
3725
3838
  }
3839
+ const clearAuthData = () => {
3840
+ if (typeof window !== 'undefined') {
3841
+ window.localStorage.removeItem('token');
3842
+ window.localStorage.removeItem('ContextId');
3843
+ window.localStorage.removeItem('userInfo');
3844
+ }
3845
+ };
3846
+ const redirectToLogin = () => {
3847
+ if (typeof window !== 'undefined' && window.location.pathname !== '/account/login') {
3848
+ clearAuthData();
3849
+ window.location.href = '/account/login';
3850
+ }
3851
+ };
3726
3852
 
3727
3853
  const {
3728
3854
  networkInterface: uri$4
@@ -3762,11 +3888,11 @@ const errorLink$3 = onError(({
3762
3888
  }
3763
3889
  } else if (networkError && networkError.statusCode > 500 && networkError.statusCode !== 503) {
3764
3890
  if (typeof window !== 'undefined' && window.location.pathname !== '/error') {
3765
- return window.location.replace('/account/error?message=' + networkError.message);
3891
+ return window.location.replace('/error?message=' + networkError.message);
3766
3892
  }
3767
3893
  } else {
3768
3894
  if (typeof window !== 'undefined' && window.location.pathname !== '/error') {
3769
- return window.location.replace('/account/error?message=Cannot connect to the server, please make sure you have an active internet connection');
3895
+ return window.location.replace('/error?message=Cannot connect to the server, please make sure you have an active internet connection');
3770
3896
  }
3771
3897
  }
3772
3898
  });
@@ -3924,14 +4050,14 @@ const errorLink$2 = onError(handleHandler);
3924
4050
  /* eslint-disable no-process-env */
3925
4051
  const isDevEnv$3 = process.env['NODE_ENV'] !== 'production';
3926
4052
  /* eslint-enable no-process-env */
3927
- const link_dquery$2 = createHttpLink({
4053
+ const link_dquery$1 = createHttpLink({
3928
4054
  uri: uri$3,
3929
4055
  fetchOptions: {
3930
4056
  mode: 'cors'
3931
4057
  }
3932
4058
  });
3933
4059
  const dqueryClient = new ApolloClient({
3934
- link: from([errorLink$2, link_dquery$2]),
4060
+ link: from([errorLink$2, link_dquery$1]),
3935
4061
  cache: cache$3,
3936
4062
  connectToDevTools: isDevEnv$3,
3937
4063
  queryDeduplication: true
@@ -87314,14 +87440,31 @@ const errorLink$1 = onError(handleHandler);
87314
87440
  /* eslint-disable no-process-env */
87315
87441
  const isDevEnv$1 = process.env['NODE_ENV'] !== 'production';
87316
87442
  /* eslint-enable no-process-env */
87317
- const link_dquery$1 = createHttpLink({
87443
+ const httpLink = createHttpLink({
87318
87444
  uri: `${uri$1}/gq`,
87319
87445
  fetchOptions: {
87320
87446
  mode: 'cors'
87321
87447
  }
87322
87448
  });
87449
+ const batchLink = new BatchHttpLink({
87450
+ uri: `${uri$1}/gq`,
87451
+ batchMax: 5,
87452
+ // Max number of operations in a single batch
87453
+ batchInterval: 200,
87454
+ // Time in ms to wait for operations to accumulate
87455
+ fetchOptions: {
87456
+ mode: 'cors'
87457
+ }
87458
+ });
87459
+ // use batch link for queries and http link for mutations
87460
+ const splitLink = split$1(({
87461
+ query
87462
+ }) => {
87463
+ const definition = getMainDefinition(query);
87464
+ return definition.kind === 'OperationDefinition' && definition.operation === 'query';
87465
+ }, batchLink, httpLink);
87323
87466
  const coreClient = new ApolloClient({
87324
- link: from([authLink$1, errorLink$1, link_dquery$1]),
87467
+ link: from([authLink$1, errorLink$1, splitLink]),
87325
87468
  cache: cache$1,
87326
87469
  connectToDevTools: isDevEnv$1,
87327
87470
  queryDeduplication: true
@@ -87349,93 +87492,11 @@ const botClient = new ApolloClient({
87349
87492
  queryDeduplication: true
87350
87493
  });
87351
87494
 
87352
- var DESCRIPTORS$1 = descriptors;
87353
- var definePropertyModule = objectDefineProperty;
87354
- var createPropertyDescriptor = createPropertyDescriptor$4;
87355
-
87356
- var createProperty$1 = function (object, key, value) {
87357
- if (DESCRIPTORS$1) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
87358
- else object[key] = value;
87359
- };
87360
-
87361
- var $$1 = _export;
87362
- var global$1 = global$m;
87363
- var anInstance = anInstance$2;
87364
- var anObject$1 = anObject$f;
87365
- var isCallable = isCallable$m;
87366
- var getPrototypeOf = objectGetPrototypeOf;
87367
- var defineBuiltInAccessor = defineBuiltInAccessor$2;
87368
- var createProperty = createProperty$1;
87369
- var fails = fails$j;
87370
- var hasOwn = hasOwnProperty_1;
87371
- var wellKnownSymbol = wellKnownSymbol$h;
87372
- var IteratorPrototype = iteratorsCore.IteratorPrototype;
87373
- var DESCRIPTORS = descriptors;
87374
-
87375
- var CONSTRUCTOR = 'constructor';
87376
- var ITERATOR = 'Iterator';
87377
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
87378
-
87379
- var $TypeError = TypeError;
87380
- var NativeIterator = global$1[ITERATOR];
87381
-
87382
- // FF56- have non-standard global helper `Iterator`
87383
- var FORCED = !isCallable(NativeIterator)
87384
- || NativeIterator.prototype !== IteratorPrototype
87385
- // FF44- non-standard `Iterator` passes previous tests
87386
- || !fails(function () { NativeIterator({}); });
87387
-
87388
- var IteratorConstructor = function Iterator() {
87389
- anInstance(this, IteratorPrototype);
87390
- if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable');
87391
- };
87392
-
87393
- var defineIteratorPrototypeAccessor = function (key, value) {
87394
- if (DESCRIPTORS) {
87395
- defineBuiltInAccessor(IteratorPrototype, key, {
87396
- configurable: true,
87397
- get: function () {
87398
- return value;
87399
- },
87400
- set: function (replacement) {
87401
- anObject$1(this);
87402
- if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property");
87403
- if (hasOwn(this, key)) this[key] = replacement;
87404
- else createProperty(this, key, replacement);
87405
- }
87406
- });
87407
- } else IteratorPrototype[key] = value;
87408
- };
87409
-
87410
- if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR);
87411
-
87412
- if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) {
87413
- defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
87414
- }
87415
-
87416
- IteratorConstructor.prototype = IteratorPrototype;
87417
-
87418
- // `Iterator` constructor
87419
- // https://github.com/tc39/proposal-iterator-helpers
87420
- $$1({ global: true, constructor: true, forced: FORCED }, {
87421
- Iterator: IteratorConstructor
87422
- });
87423
-
87424
- // `GetIteratorDirect(obj)` abstract operation
87425
- // https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
87426
- var getIteratorDirect$1 = function (obj) {
87427
- return {
87428
- iterator: obj,
87429
- next: obj.next,
87430
- done: false
87431
- };
87432
- };
87433
-
87434
87495
  var $ = _export;
87435
- var iterate = iterate$3;
87436
- var aCallable = aCallable$9;
87437
- var anObject = anObject$f;
87438
- var getIteratorDirect = getIteratorDirect$1;
87496
+ var iterate = iterate$4;
87497
+ var aCallable = aCallable$a;
87498
+ var anObject = anObject$g;
87499
+ var getIteratorDirect = getIteratorDirect$2;
87439
87500
 
87440
87501
  // `Iterator.prototype.forEach` method
87441
87502
  // https://github.com/tc39/proposal-iterator-helpers
@@ -87485,4 +87546,4 @@ var ModelFieldsTypes;
87485
87546
  ModelFieldsTypes["JSON"] = "JSON";
87486
87547
  })(ModelFieldsTypes || (ModelFieldsTypes = {}));
87487
87548
 
87488
- export { CreateCheckoutSessionUri, CreatePortalSessionUri, ModelFieldsTypes, ModelUtilities, VALIDATE_COMPANY_NAME, addDomain, addDomainOptions, apiBackend, apiV2Backend, appConfig, botClient, companyUsersQuery, contentInstancesQuery, coreClient, createCompany, createContentInstanceMutation, createContentInstanceMutationOptions, createContentMutation, createContentMutationOptions, createFileMutation, createFolderMutation, dconfigClient, deleteFileMutation, deleteFolderMutation, dqueryClient, filesQuery, foldersTreeQuery, forgetPassword, forgetPasswordOptions, frontend, getErrorHandler, inviteUser, inviteUserOptions, login, loginOptions, menuConfigurationQuery, portalThemeConfig, querySectionThumb, queryUsage, registeUsage, register, registerOptions, removeContentMutation, removeDomain, removeDomainOptions, removeUserFromCompany, removeUserFromCompanyOptions, resetPassword, resetPasswordOptions, setErrorHandler, showcaseClient, showcaseConfig, showcaseConfigById, showcaseConfigurationQuery, showcaseConfigurationQueryOptions, showcaseContentsQuery, showcaseContext, showcaseDomainsQuery, showcasePagesQuery, showcaseSectionQuery, showcaseSectionsQuery, showcaseTemplateSectionsThumbsMap, showcaseTemplatesQuery, showcaseTemplatesQueryOptions, subscriptionConfigurationQuery, subscriptionConfigurationQueryOptions, tokenClient, updateCompany, updateCompanyOptions, updateContentInstanceFieldValuesMutation, updateContentInstanceFieldValuesMutationOptions, updateContentsOrderingMutation, updateContentsOrderingMutationOptions, updateTemplateSectionThumb, updateUserPassword, updateUserPasswordOptions, updateUserProfile, updateUserProfileOptions, useContentInstancesQuery, useCreateCompanyMutation, useCreateContentInstanceMutation, useCreateContentMutation, useCreateFileMutation, useCreateFolderMutation, useDeleteContentMutation, useDeleteFileMutation, useDeleteFolderMutation, useDomainsQuery, useFilesQuery, useFoldersTreeQuery, useMenuConfigurationQuery, useModelChildrenQuery, useModelsQuery, usePortalThemeConfig, useQuerySectionThumb, useQueryUsage, useRegisterUsage, useShowcaseConfig, useShowcaseConfigById, useShowcaseConfigurationQuery, useShowcaseContentsQuery, useShowcaseContext, useShowcasePagesQuery, useShowcaseSectionQuery, useShowcaseSectionsQuery, useShowcaseTemplate, useShowcaseTemplateOptions, useShowcaseTemplateProgress, useShowcaseTemplateProgressQuery, useTemplateSectionsThumbsMap, useUpdateContentInstanceFieldValuesMutation, useUpdateContentsOrderingMutation, useUserCompaniesQuery, useValidateCompanyName, userCompaniesQuery, userCompaniesQueryOptions, userInfoQuery, userInfoQueryOptions, viewTypeChildrenQuery, viewTypeChildrenQueryOptions, viewTypesQuery, viewTypesQueryOptions };
87549
+ export { CreateCheckoutSessionUri, CreatePortalSessionUri, ModelFieldsTypes, ModelUtilities, VALIDATE_COMPANY_NAME, addDomain, addDomainOptions, apiBackend, apiV2Backend, appConfig, botClient, clearAuthData, companyUsersQuery, contentInstancesQuery, coreClient, createCompany, createContentInstanceMutation, createContentInstanceMutationOptions, createContentMutation, createContentMutationOptions, createFileMutation, createFolderMutation, dconfigClient, deleteFileMutation, deleteFolderMutation, dqueryClient, filesQuery, foldersTreeQuery, forgetPassword, forgetPasswordOptions, frontend, getErrorHandler, getUserContext, getUserToken, handleAuth, handleHandler, inviteUser, inviteUserOptions, login, loginOptions, menuConfigurationQuery, portalThemeConfig, querySectionThumb, queryUsage, redirectToLogin, registeUsage, register, registerOptions, removeContentMutation, removeDomain, removeDomainOptions, removeUserFromCompany, removeUserFromCompanyOptions, resetPassword, resetPasswordOptions, setErrorHandler, showcaseClient, showcaseConfig, showcaseConfigById, showcaseConfigurationQuery, showcaseConfigurationQueryOptions, showcaseContentsQuery, showcaseContext, showcaseDomainsQuery, showcasePagesQuery, showcaseSectionQuery, showcaseSectionsQuery, showcaseTemplateSectionsThumbsMap, showcaseTemplatesQuery, showcaseTemplatesQueryOptions, subscriptionConfigurationQuery, subscriptionConfigurationQueryOptions, tokenClient, updateCompany, updateCompanyOptions, updateContentInstanceFieldValuesMutation, updateContentInstanceFieldValuesMutationOptions, updateContentsOrderingMutation, updateContentsOrderingMutationOptions, updateTemplateSectionThumb, updateUserPassword, updateUserPasswordOptions, updateUserProfile, updateUserProfileOptions, useContentInstancesQuery, useCreateCompanyMutation, useCreateContentInstanceMutation, useCreateContentMutation, useCreateFileMutation, useCreateFolderMutation, useDeleteContentMutation, useDeleteFileMutation, useDeleteFolderMutation, useDomainsQuery, useFilesQuery, useFoldersTreeQuery, useMenuConfigurationQuery, useModelChildrenQuery, useModelsQuery, usePortalThemeConfig, useQuerySectionThumb, useQueryUsage, useRegisterUsage, useShowcaseConfig, useShowcaseConfigById, useShowcaseConfigurationQuery, useShowcaseContentsQuery, useShowcaseContext, useShowcasePagesQuery, useShowcaseSectionQuery, useShowcaseSectionsQuery, useShowcaseTemplate, useShowcaseTemplateOptions, useShowcaseTemplateProgress, useShowcaseTemplateProgressQuery, useTemplateSectionsThumbsMap, useUpdateContentInstanceFieldValuesMutation, useUpdateContentsOrderingMutation, useUserCompaniesQuery, useValidateCompanyName, userCompaniesQuery, userCompaniesQueryOptions, userInfoQuery, userInfoQueryOptions, viewTypeChildrenQuery, viewTypeChildrenQueryOptions, viewTypesQuery, viewTypesQueryOptions };