@cubejs-client/core 0.33.47 → 0.33.58

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.
@@ -1515,36 +1515,6 @@
1515
1515
 
1516
1516
  hiddenKeys$1[HIDDEN] = true;
1517
1517
 
1518
- var SPECIES$5 = wellKnownSymbol('species');
1519
-
1520
- var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1521
- // We can't use this feature detection in V8 since it causes
1522
- // deoptimization and serious performance degradation
1523
- // https://github.com/zloirock/core-js/issues/677
1524
- return engineV8Version >= 51 || !fails(function () {
1525
- var array = [];
1526
- var constructor = array.constructor = {};
1527
- constructor[SPECIES$5] = function () {
1528
- return { foo: 1 };
1529
- };
1530
- return array[METHOD_NAME](Boolean).foo !== 1;
1531
- });
1532
- };
1533
-
1534
- var $filter = arrayIteration.filter;
1535
-
1536
-
1537
- var HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport('filter');
1538
-
1539
- // `Array.prototype.filter` method
1540
- // https://tc39.es/ecma262/#sec-array.prototype.filter
1541
- // with adding support of @@species
1542
- _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
1543
- filter: function filter(callbackfn /* , thisArg */) {
1544
- return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1545
- }
1546
- });
1547
-
1548
1518
  var nativeGetOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1549
1519
 
1550
1520
 
@@ -1589,6 +1559,67 @@
1589
1559
  defineProperty: objectDefineProperty.f
1590
1560
  });
1591
1561
 
1562
+ function _arrayWithHoles(arr) {
1563
+ if (Array.isArray(arr)) return arr;
1564
+ }
1565
+
1566
+ function _iterableToArrayLimit(arr, i) {
1567
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1568
+
1569
+ if (_i == null) return;
1570
+ var _arr = [];
1571
+ var _n = true;
1572
+ var _d = false;
1573
+
1574
+ var _s, _e;
1575
+
1576
+ try {
1577
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
1578
+ _arr.push(_s.value);
1579
+
1580
+ if (i && _arr.length === i) break;
1581
+ }
1582
+ } catch (err) {
1583
+ _d = true;
1584
+ _e = err;
1585
+ } finally {
1586
+ try {
1587
+ if (!_n && _i["return"] != null) _i["return"]();
1588
+ } finally {
1589
+ if (_d) throw _e;
1590
+ }
1591
+ }
1592
+
1593
+ return _arr;
1594
+ }
1595
+
1596
+ function _arrayLikeToArray(arr, len) {
1597
+ if (len == null || len > arr.length) len = arr.length;
1598
+
1599
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
1600
+ arr2[i] = arr[i];
1601
+ }
1602
+
1603
+ return arr2;
1604
+ }
1605
+
1606
+ function _unsupportedIterableToArray(o, minLen) {
1607
+ if (!o) return;
1608
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1609
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1610
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1611
+ if (n === "Map" || n === "Set") return Array.from(o);
1612
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1613
+ }
1614
+
1615
+ function _nonIterableRest() {
1616
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1617
+ }
1618
+
1619
+ function _slicedToArray(arr, i) {
1620
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
1621
+ }
1622
+
1592
1623
  function _defineProperty(obj, key, value) {
1593
1624
  if (key in obj) {
1594
1625
  Object.defineProperty(obj, key, {
@@ -2473,14 +2504,14 @@
2473
2504
  };
2474
2505
  }() : undefined);
2475
2506
 
2476
- var SPECIES$4 = wellKnownSymbol('species');
2507
+ var SPECIES$5 = wellKnownSymbol('species');
2477
2508
 
2478
2509
  var setSpecies = function (CONSTRUCTOR_NAME) {
2479
2510
  var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
2480
2511
  var defineProperty = objectDefineProperty.f;
2481
2512
 
2482
- if (descriptors && Constructor && !Constructor[SPECIES$4]) {
2483
- defineProperty(Constructor, SPECIES$4, {
2513
+ if (descriptors && Constructor && !Constructor[SPECIES$5]) {
2514
+ defineProperty(Constructor, SPECIES$5, {
2484
2515
  configurable: true,
2485
2516
  get: function () { return this; }
2486
2517
  });
@@ -2640,14 +2671,14 @@
2640
2671
  throw TypeError$9(tryToString(argument) + ' is not a constructor');
2641
2672
  };
2642
2673
 
2643
- var SPECIES$3 = wellKnownSymbol('species');
2674
+ var SPECIES$4 = wellKnownSymbol('species');
2644
2675
 
2645
2676
  // `SpeciesConstructor` abstract operation
2646
2677
  // https://tc39.es/ecma262/#sec-speciesconstructor
2647
2678
  var speciesConstructor = function (O, defaultConstructor) {
2648
2679
  var C = anObject(O).constructor;
2649
2680
  var S;
2650
- return C === undefined || (S = anObject(C)[SPECIES$3]) == undefined ? defaultConstructor : aConstructor(S);
2681
+ return C === undefined || (S = anObject(C)[SPECIES$4]) == undefined ? defaultConstructor : aConstructor(S);
2651
2682
  };
2652
2683
 
2653
2684
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(engineUserAgent);
@@ -2904,7 +2935,7 @@
2904
2935
 
2905
2936
 
2906
2937
 
2907
- var SPECIES$2 = wellKnownSymbol('species');
2938
+ var SPECIES$3 = wellKnownSymbol('species');
2908
2939
  var PROMISE = 'Promise';
2909
2940
 
2910
2941
  var getInternalState$3 = internalState.getterFor(PROMISE);
@@ -2949,7 +2980,7 @@
2949
2980
  exec(function () { /* empty */ }, function () { /* empty */ });
2950
2981
  };
2951
2982
  var constructor = promise.constructor = {};
2952
- constructor[SPECIES$2] = FakePromise;
2983
+ constructor[SPECIES$3] = FakePromise;
2953
2984
  SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2954
2985
  if (!SUBCLASSING) return true;
2955
2986
  // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
@@ -3298,6 +3329,36 @@
3298
3329
  setInterval: wrap(global$1.setInterval)
3299
3330
  });
3300
3331
 
3332
+ var SPECIES$2 = wellKnownSymbol('species');
3333
+
3334
+ var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
3335
+ // We can't use this feature detection in V8 since it causes
3336
+ // deoptimization and serious performance degradation
3337
+ // https://github.com/zloirock/core-js/issues/677
3338
+ return engineV8Version >= 51 || !fails(function () {
3339
+ var array = [];
3340
+ var constructor = array.constructor = {};
3341
+ constructor[SPECIES$2] = function () {
3342
+ return { foo: 1 };
3343
+ };
3344
+ return array[METHOD_NAME](Boolean).foo !== 1;
3345
+ });
3346
+ };
3347
+
3348
+ var $filter = arrayIteration.filter;
3349
+
3350
+
3351
+ var HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport('filter');
3352
+
3353
+ // `Array.prototype.filter` method
3354
+ // https://tc39.es/ecma262/#sec-array.prototype.filter
3355
+ // with adding support of @@species
3356
+ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
3357
+ filter: function filter(callbackfn /* , thisArg */) {
3358
+ return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
3359
+ }
3360
+ });
3361
+
3301
3362
  var $map = arrayIteration.map;
3302
3363
 
3303
3364
 
@@ -3312,38 +3373,176 @@
3312
3373
  }
3313
3374
  });
3314
3375
 
3315
- var Function$1 = global$1.Function;
3316
- var concat$1 = functionUncurryThis([].concat);
3317
- var join$1 = functionUncurryThis([].join);
3318
- var factories = {};
3376
+ var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
3319
3377
 
3320
- var construct = function (C, argsLength, args) {
3321
- if (!hasOwnProperty_1(factories, argsLength)) {
3322
- for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';
3323
- factories[argsLength] = Function$1('C,a', 'return new C(' + join$1(list, ',') + ')');
3324
- } return factories[argsLength](C, args);
3325
- };
3378
+ var propertyIsEnumerable = functionUncurryThis($propertyIsEnumerable);
3379
+ var push$4 = functionUncurryThis([].push);
3326
3380
 
3327
- // `Function.prototype.bind` method implementation
3328
- // https://tc39.es/ecma262/#sec-function.prototype.bind
3329
- var functionBind = Function$1.bind || function bind(that /* , ...args */) {
3330
- var F = aCallable(this);
3331
- var Prototype = F.prototype;
3332
- var partArgs = arraySlice$1(arguments, 1);
3333
- var boundFunction = function bound(/* args... */) {
3334
- var args = concat$1(partArgs, arraySlice$1(arguments));
3335
- return this instanceof boundFunction ? construct(F, args.length, args) : F.apply(that, args);
3381
+ // `Object.{ entries, values }` methods implementation
3382
+ var createMethod$3 = function (TO_ENTRIES) {
3383
+ return function (it) {
3384
+ var O = toIndexedObject(it);
3385
+ var keys = objectKeys(O);
3386
+ var length = keys.length;
3387
+ var i = 0;
3388
+ var result = [];
3389
+ var key;
3390
+ while (length > i) {
3391
+ key = keys[i++];
3392
+ if (!descriptors || propertyIsEnumerable(O, key)) {
3393
+ push$4(result, TO_ENTRIES ? [key, O[key]] : O[key]);
3394
+ }
3395
+ }
3396
+ return result;
3336
3397
  };
3337
- if (isObject(Prototype)) boundFunction.prototype = Prototype;
3338
- return boundFunction;
3339
3398
  };
3340
3399
 
3341
- // `Function.prototype.bind` method
3342
- // https://tc39.es/ecma262/#sec-function.prototype.bind
3343
- _export({ target: 'Function', proto: true }, {
3344
- bind: functionBind
3400
+ var objectToArray = {
3401
+ // `Object.entries` method
3402
+ // https://tc39.es/ecma262/#sec-object.entries
3403
+ entries: createMethod$3(true),
3404
+ // `Object.values` method
3405
+ // https://tc39.es/ecma262/#sec-object.values
3406
+ values: createMethod$3(false)
3407
+ };
3408
+
3409
+ var $entries = objectToArray.entries;
3410
+
3411
+ // `Object.entries` method
3412
+ // https://tc39.es/ecma262/#sec-object.entries
3413
+ _export({ target: 'Object', stat: true }, {
3414
+ entries: function entries(O) {
3415
+ return $entries(O);
3416
+ }
3345
3417
  });
3346
3418
 
3419
+ // makes subclassing work correct for wrapped built-ins
3420
+ var inheritIfRequired = function ($this, dummy, Wrapper) {
3421
+ var NewTarget, NewTargetPrototype;
3422
+ if (
3423
+ // it can work only with native `setPrototypeOf`
3424
+ objectSetPrototypeOf &&
3425
+ // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
3426
+ isCallable(NewTarget = dummy.constructor) &&
3427
+ NewTarget !== Wrapper &&
3428
+ isObject(NewTargetPrototype = NewTarget.prototype) &&
3429
+ NewTargetPrototype !== Wrapper.prototype
3430
+ ) objectSetPrototypeOf($this, NewTargetPrototype);
3431
+ return $this;
3432
+ };
3433
+
3434
+ // `thisNumberValue` abstract operation
3435
+ // https://tc39.es/ecma262/#sec-thisnumbervalue
3436
+ var thisNumberValue = functionUncurryThis(1.0.valueOf);
3437
+
3438
+ // a string of all valid unicode whitespaces
3439
+ var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
3440
+ '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
3441
+
3442
+ var replace$4 = functionUncurryThis(''.replace);
3443
+ var whitespace = '[' + whitespaces + ']';
3444
+ var ltrim = RegExp('^' + whitespace + whitespace + '*');
3445
+ var rtrim = RegExp(whitespace + whitespace + '*$');
3446
+
3447
+ // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
3448
+ var createMethod$2 = function (TYPE) {
3449
+ return function ($this) {
3450
+ var string = toString$1(requireObjectCoercible($this));
3451
+ if (TYPE & 1) string = replace$4(string, ltrim, '');
3452
+ if (TYPE & 2) string = replace$4(string, rtrim, '');
3453
+ return string;
3454
+ };
3455
+ };
3456
+
3457
+ var stringTrim = {
3458
+ // `String.prototype.{ trimLeft, trimStart }` methods
3459
+ // https://tc39.es/ecma262/#sec-string.prototype.trimstart
3460
+ start: createMethod$2(1),
3461
+ // `String.prototype.{ trimRight, trimEnd }` methods
3462
+ // https://tc39.es/ecma262/#sec-string.prototype.trimend
3463
+ end: createMethod$2(2),
3464
+ // `String.prototype.trim` method
3465
+ // https://tc39.es/ecma262/#sec-string.prototype.trim
3466
+ trim: createMethod$2(3)
3467
+ };
3468
+
3469
+ var getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
3470
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
3471
+ var defineProperty$5 = objectDefineProperty.f;
3472
+
3473
+ var trim$1 = stringTrim.trim;
3474
+
3475
+ var NUMBER = 'Number';
3476
+ var NativeNumber = global$1[NUMBER];
3477
+ var NumberPrototype = NativeNumber.prototype;
3478
+ var TypeError$7 = global$1.TypeError;
3479
+ var arraySlice = functionUncurryThis(''.slice);
3480
+ var charCodeAt$1 = functionUncurryThis(''.charCodeAt);
3481
+
3482
+ // `ToNumeric` abstract operation
3483
+ // https://tc39.es/ecma262/#sec-tonumeric
3484
+ var toNumeric = function (value) {
3485
+ var primValue = toPrimitive(value, 'number');
3486
+ return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
3487
+ };
3488
+
3489
+ // `ToNumber` abstract operation
3490
+ // https://tc39.es/ecma262/#sec-tonumber
3491
+ var toNumber = function (argument) {
3492
+ var it = toPrimitive(argument, 'number');
3493
+ var first, third, radix, maxCode, digits, length, index, code;
3494
+ if (isSymbol(it)) throw TypeError$7('Cannot convert a Symbol value to a number');
3495
+ if (typeof it == 'string' && it.length > 2) {
3496
+ it = trim$1(it);
3497
+ first = charCodeAt$1(it, 0);
3498
+ if (first === 43 || first === 45) {
3499
+ third = charCodeAt$1(it, 2);
3500
+ if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
3501
+ } else if (first === 48) {
3502
+ switch (charCodeAt$1(it, 1)) {
3503
+ case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
3504
+ case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
3505
+ default: return +it;
3506
+ }
3507
+ digits = arraySlice(it, 2);
3508
+ length = digits.length;
3509
+ for (index = 0; index < length; index++) {
3510
+ code = charCodeAt$1(digits, index);
3511
+ // parseInt parses a string to a first unavailable symbol
3512
+ // but ToNumber should return NaN if a string contains unavailable symbols
3513
+ if (code < 48 || code > maxCode) return NaN;
3514
+ } return parseInt(digits, radix);
3515
+ }
3516
+ } return +it;
3517
+ };
3518
+
3519
+ // `Number` constructor
3520
+ // https://tc39.es/ecma262/#sec-number-constructor
3521
+ if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
3522
+ var NumberWrapper = function Number(value) {
3523
+ var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
3524
+ var dummy = this;
3525
+ // check on 1..constructor(foo) case
3526
+ return objectIsPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })
3527
+ ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
3528
+ };
3529
+ for (var keys$2 = descriptors ? getOwnPropertyNames$1(NativeNumber) : (
3530
+ // ES3:
3531
+ 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
3532
+ // ES2015 (in case, if modules with ES2015 Number statics required before):
3533
+ 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +
3534
+ // ESNext
3535
+ 'fromString,range'
3536
+ ).split(','), j = 0, key; keys$2.length > j; j++) {
3537
+ if (hasOwnProperty_1(NativeNumber, key = keys$2[j]) && !hasOwnProperty_1(NumberWrapper, key)) {
3538
+ defineProperty$5(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
3539
+ }
3540
+ }
3541
+ NumberWrapper.prototype = NumberPrototype;
3542
+ NumberPrototype.constructor = NumberWrapper;
3543
+ redefine(global$1, NUMBER, NumberWrapper);
3544
+ }
3545
+
3347
3546
  // Unique ID creation requires a high quality random # generator. In the browser we therefore
3348
3547
  // require the crypto API and do not support built-in fallback to lower quality random number
3349
3548
  // generators (like Math.random()).
@@ -3433,100 +3632,39 @@
3433
3632
  return target;
3434
3633
  }
3435
3634
 
3436
- function _objectWithoutProperties(source, excluded) {
3437
- if (source == null) return {};
3438
- var target = _objectWithoutPropertiesLoose(source, excluded);
3439
- var key, i;
3440
-
3441
- if (Object.getOwnPropertySymbols) {
3442
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
3443
-
3444
- for (i = 0; i < sourceSymbolKeys.length; i++) {
3445
- key = sourceSymbolKeys[i];
3446
- if (excluded.indexOf(key) >= 0) continue;
3447
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
3448
- target[key] = source[key];
3449
- }
3450
- }
3451
-
3452
- return target;
3453
- }
3454
-
3455
- function _arrayLikeToArray(arr, len) {
3456
- if (len == null || len > arr.length) len = arr.length;
3457
-
3458
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
3459
- arr2[i] = arr[i];
3460
- }
3461
-
3462
- return arr2;
3463
- }
3464
-
3465
- function _arrayWithoutHoles(arr) {
3466
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
3467
- }
3468
-
3469
- function _iterableToArray(iter) {
3470
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
3471
- }
3472
-
3473
- function _unsupportedIterableToArray(o, minLen) {
3474
- if (!o) return;
3475
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
3476
- var n = Object.prototype.toString.call(o).slice(8, -1);
3477
- if (n === "Object" && o.constructor) n = o.constructor.name;
3478
- if (n === "Map" || n === "Set") return Array.from(o);
3479
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
3480
- }
3481
-
3482
- function _nonIterableSpread() {
3483
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3484
- }
3485
-
3486
- function _toConsumableArray(arr) {
3487
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
3488
- }
3489
-
3490
- function _arrayWithHoles(arr) {
3491
- if (Array.isArray(arr)) return arr;
3492
- }
3493
-
3494
- function _iterableToArrayLimit(arr, i) {
3495
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3496
-
3497
- if (_i == null) return;
3498
- var _arr = [];
3499
- var _n = true;
3500
- var _d = false;
3501
-
3502
- var _s, _e;
3635
+ function _objectWithoutProperties(source, excluded) {
3636
+ if (source == null) return {};
3637
+ var target = _objectWithoutPropertiesLoose(source, excluded);
3638
+ var key, i;
3503
3639
 
3504
- try {
3505
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
3506
- _arr.push(_s.value);
3640
+ if (Object.getOwnPropertySymbols) {
3641
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
3507
3642
 
3508
- if (i && _arr.length === i) break;
3509
- }
3510
- } catch (err) {
3511
- _d = true;
3512
- _e = err;
3513
- } finally {
3514
- try {
3515
- if (!_n && _i["return"] != null) _i["return"]();
3516
- } finally {
3517
- if (_d) throw _e;
3643
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
3644
+ key = sourceSymbolKeys[i];
3645
+ if (excluded.indexOf(key) >= 0) continue;
3646
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
3647
+ target[key] = source[key];
3518
3648
  }
3519
3649
  }
3520
3650
 
3521
- return _arr;
3651
+ return target;
3522
3652
  }
3523
3653
 
3524
- function _nonIterableRest() {
3525
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3654
+ function _arrayWithoutHoles(arr) {
3655
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
3526
3656
  }
3527
3657
 
3528
- function _slicedToArray(arr, i) {
3529
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
3658
+ function _iterableToArray(iter) {
3659
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
3660
+ }
3661
+
3662
+ function _nonIterableSpread() {
3663
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3664
+ }
3665
+
3666
+ function _toConsumableArray(arr) {
3667
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
3530
3668
  }
3531
3669
 
3532
3670
  var UNSCOPABLES = wellKnownSymbol('unscopables');
@@ -3868,21 +4006,6 @@
3868
4006
  hiddenKeys$1[METADATA] = true;
3869
4007
  });
3870
4008
 
3871
- // makes subclassing work correct for wrapped built-ins
3872
- var inheritIfRequired = function ($this, dummy, Wrapper) {
3873
- var NewTarget, NewTargetPrototype;
3874
- if (
3875
- // it can work only with native `setPrototypeOf`
3876
- objectSetPrototypeOf &&
3877
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
3878
- isCallable(NewTarget = dummy.constructor) &&
3879
- NewTarget !== Wrapper &&
3880
- isObject(NewTargetPrototype = NewTarget.prototype) &&
3881
- NewTargetPrototype !== Wrapper.prototype
3882
- ) objectSetPrototypeOf($this, NewTargetPrototype);
3883
- return $this;
3884
- };
3885
-
3886
4009
  var collection = function (CONSTRUCTOR_NAME, wrapper, common) {
3887
4010
  var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
3888
4011
  var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
@@ -3973,7 +4096,7 @@
3973
4096
  return Constructor;
3974
4097
  };
3975
4098
 
3976
- var defineProperty$5 = objectDefineProperty.f;
4099
+ var defineProperty$4 = objectDefineProperty.f;
3977
4100
 
3978
4101
 
3979
4102
 
@@ -4124,7 +4247,7 @@
4124
4247
  return define(this, value = value === 0 ? 0 : value, value);
4125
4248
  }
4126
4249
  });
4127
- if (descriptors) defineProperty$5(Prototype, 'size', {
4250
+ if (descriptors) defineProperty$4(Prototype, 'size', {
4128
4251
  get: function () {
4129
4252
  return getInternalState(this).size;
4130
4253
  }
@@ -4184,19 +4307,19 @@
4184
4307
  }, collectionStrong);
4185
4308
 
4186
4309
  var charAt$6 = functionUncurryThis(''.charAt);
4187
- var charCodeAt$1 = functionUncurryThis(''.charCodeAt);
4310
+ var charCodeAt = functionUncurryThis(''.charCodeAt);
4188
4311
  var stringSlice$5 = functionUncurryThis(''.slice);
4189
4312
 
4190
- var createMethod$3 = function (CONVERT_TO_STRING) {
4313
+ var createMethod$1 = function (CONVERT_TO_STRING) {
4191
4314
  return function ($this, pos) {
4192
4315
  var S = toString$1(requireObjectCoercible($this));
4193
4316
  var position = toIntegerOrInfinity(pos);
4194
4317
  var size = S.length;
4195
4318
  var first, second;
4196
4319
  if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
4197
- first = charCodeAt$1(S, position);
4320
+ first = charCodeAt(S, position);
4198
4321
  return first < 0xD800 || first > 0xDBFF || position + 1 === size
4199
- || (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF
4322
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
4200
4323
  ? CONVERT_TO_STRING
4201
4324
  ? charAt$6(S, position)
4202
4325
  : first
@@ -4209,10 +4332,10 @@
4209
4332
  var stringMultibyte = {
4210
4333
  // `String.prototype.codePointAt` method
4211
4334
  // https://tc39.es/ecma262/#sec-string.prototype.codepointat
4212
- codeAt: createMethod$3(false),
4335
+ codeAt: createMethod$1(false),
4213
4336
  // `String.prototype.at` method
4214
4337
  // https://github.com/mathiasbynens/String.prototype.at
4215
- charAt: createMethod$3(true)
4338
+ charAt: createMethod$1(true)
4216
4339
  };
4217
4340
 
4218
4341
  var charAt$5 = stringMultibyte.charAt;
@@ -4355,11 +4478,11 @@
4355
4478
  return isObject(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
4356
4479
  };
4357
4480
 
4358
- var TypeError$7 = global$1.TypeError;
4481
+ var TypeError$6 = global$1.TypeError;
4359
4482
 
4360
4483
  var notARegexp = function (it) {
4361
4484
  if (isRegexp(it)) {
4362
- throw TypeError$7("The method doesn't accept regular expressions");
4485
+ throw TypeError$6("The method doesn't accept regular expressions");
4363
4486
  } return it;
4364
4487
  };
4365
4488
 
@@ -4391,39 +4514,6 @@
4391
4514
  }
4392
4515
  });
4393
4516
 
4394
- var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
4395
-
4396
- var propertyIsEnumerable = functionUncurryThis($propertyIsEnumerable);
4397
- var push$4 = functionUncurryThis([].push);
4398
-
4399
- // `Object.{ entries, values }` methods implementation
4400
- var createMethod$2 = function (TO_ENTRIES) {
4401
- return function (it) {
4402
- var O = toIndexedObject(it);
4403
- var keys = objectKeys(O);
4404
- var length = keys.length;
4405
- var i = 0;
4406
- var result = [];
4407
- var key;
4408
- while (length > i) {
4409
- key = keys[i++];
4410
- if (!descriptors || propertyIsEnumerable(O, key)) {
4411
- push$4(result, TO_ENTRIES ? [key, O[key]] : O[key]);
4412
- }
4413
- }
4414
- return result;
4415
- };
4416
- };
4417
-
4418
- var objectToArray = {
4419
- // `Object.entries` method
4420
- // https://tc39.es/ecma262/#sec-object.entries
4421
- entries: createMethod$2(true),
4422
- // `Object.values` method
4423
- // https://tc39.es/ecma262/#sec-object.values
4424
- values: createMethod$2(false)
4425
- };
4426
-
4427
4517
  var $values = objectToArray.values;
4428
4518
 
4429
4519
  // `Object.values` method
@@ -4457,7 +4547,7 @@
4457
4547
  var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
4458
4548
  var MAX_SAFE_INTEGER$1 = 0x1FFFFFFFFFFFFF;
4459
4549
  var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
4460
- var TypeError$6 = global$1.TypeError;
4550
+ var TypeError$5 = global$1.TypeError;
4461
4551
 
4462
4552
  // We can't use this feature detection in V8 since it causes
4463
4553
  // deoptimization and serious performance degradation
@@ -4492,10 +4582,10 @@
4492
4582
  E = i === -1 ? O : arguments[i];
4493
4583
  if (isConcatSpreadable(E)) {
4494
4584
  len = lengthOfArrayLike(E);
4495
- if (n + len > MAX_SAFE_INTEGER$1) throw TypeError$6(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
4585
+ if (n + len > MAX_SAFE_INTEGER$1) throw TypeError$5(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
4496
4586
  for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
4497
4587
  } else {
4498
- if (n >= MAX_SAFE_INTEGER$1) throw TypeError$6(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
4588
+ if (n >= MAX_SAFE_INTEGER$1) throw TypeError$5(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
4499
4589
  createProperty(A, n++, E);
4500
4590
  }
4501
4591
  }
@@ -4581,7 +4671,7 @@
4581
4671
  var patchedExec = nativeExec;
4582
4672
  var charAt$4 = functionUncurryThis(''.charAt);
4583
4673
  var indexOf = functionUncurryThis(''.indexOf);
4584
- var replace$4 = functionUncurryThis(''.replace);
4674
+ var replace$3 = functionUncurryThis(''.replace);
4585
4675
  var stringSlice$4 = functionUncurryThis(''.slice);
4586
4676
 
4587
4677
  var UPDATES_LAST_INDEX_WRONG = (function () {
@@ -4622,7 +4712,7 @@
4622
4712
  var strCopy = str;
4623
4713
 
4624
4714
  if (sticky) {
4625
- flags = replace$4(flags, 'y', '');
4715
+ flags = replace$3(flags, 'y', '');
4626
4716
  if (indexOf(flags, 'g') === -1) {
4627
4717
  flags += 'g';
4628
4718
  }
@@ -4768,7 +4858,7 @@
4768
4858
  return index + (unicode ? charAt$3(S, index).length : 1);
4769
4859
  };
4770
4860
 
4771
- var TypeError$5 = global$1.TypeError;
4861
+ var TypeError$4 = global$1.TypeError;
4772
4862
 
4773
4863
  // `RegExpExec` abstract operation
4774
4864
  // https://tc39.es/ecma262/#sec-regexpexec
@@ -4780,7 +4870,7 @@
4780
4870
  return result;
4781
4871
  }
4782
4872
  if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
4783
- throw TypeError$5('RegExp#exec called on incompatible receiver');
4873
+ throw TypeError$4('RegExp#exec called on incompatible receiver');
4784
4874
  };
4785
4875
 
4786
4876
  var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y;
@@ -5016,10 +5106,10 @@
5016
5106
  ];
5017
5107
  });
5018
5108
 
5019
- var TypeError$4 = global$1.TypeError;
5109
+ var TypeError$3 = global$1.TypeError;
5020
5110
 
5021
5111
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
5022
- var createMethod$1 = function (IS_RIGHT) {
5112
+ var createMethod = function (IS_RIGHT) {
5023
5113
  return function (that, callbackfn, argumentsLength, memo) {
5024
5114
  aCallable(callbackfn);
5025
5115
  var O = toObject(that);
@@ -5035,7 +5125,7 @@
5035
5125
  }
5036
5126
  index += i;
5037
5127
  if (IS_RIGHT ? index < 0 : length <= index) {
5038
- throw TypeError$4('Reduce of empty array with no initial value');
5128
+ throw TypeError$3('Reduce of empty array with no initial value');
5039
5129
  }
5040
5130
  }
5041
5131
  for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
@@ -5048,10 +5138,10 @@
5048
5138
  var arrayReduce = {
5049
5139
  // `Array.prototype.reduce` method
5050
5140
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
5051
- left: createMethod$1(false),
5141
+ left: createMethod(false),
5052
5142
  // `Array.prototype.reduceRight` method
5053
5143
  // https://tc39.es/ecma262/#sec-array.prototype.reduceright
5054
- right: createMethod$1(true)
5144
+ right: createMethod(true)
5055
5145
  };
5056
5146
 
5057
5147
  var $reduce = arrayReduce.left;
@@ -5082,118 +5172,6 @@
5082
5172
  }
5083
5173
  });
5084
5174
 
5085
- // `thisNumberValue` abstract operation
5086
- // https://tc39.es/ecma262/#sec-thisnumbervalue
5087
- var thisNumberValue = functionUncurryThis(1.0.valueOf);
5088
-
5089
- // a string of all valid unicode whitespaces
5090
- var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
5091
- '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
5092
-
5093
- var replace$3 = functionUncurryThis(''.replace);
5094
- var whitespace = '[' + whitespaces + ']';
5095
- var ltrim = RegExp('^' + whitespace + whitespace + '*');
5096
- var rtrim = RegExp(whitespace + whitespace + '*$');
5097
-
5098
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
5099
- var createMethod = function (TYPE) {
5100
- return function ($this) {
5101
- var string = toString$1(requireObjectCoercible($this));
5102
- if (TYPE & 1) string = replace$3(string, ltrim, '');
5103
- if (TYPE & 2) string = replace$3(string, rtrim, '');
5104
- return string;
5105
- };
5106
- };
5107
-
5108
- var stringTrim = {
5109
- // `String.prototype.{ trimLeft, trimStart }` methods
5110
- // https://tc39.es/ecma262/#sec-string.prototype.trimstart
5111
- start: createMethod(1),
5112
- // `String.prototype.{ trimRight, trimEnd }` methods
5113
- // https://tc39.es/ecma262/#sec-string.prototype.trimend
5114
- end: createMethod(2),
5115
- // `String.prototype.trim` method
5116
- // https://tc39.es/ecma262/#sec-string.prototype.trim
5117
- trim: createMethod(3)
5118
- };
5119
-
5120
- var getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
5121
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
5122
- var defineProperty$4 = objectDefineProperty.f;
5123
-
5124
- var trim$1 = stringTrim.trim;
5125
-
5126
- var NUMBER = 'Number';
5127
- var NativeNumber = global$1[NUMBER];
5128
- var NumberPrototype = NativeNumber.prototype;
5129
- var TypeError$3 = global$1.TypeError;
5130
- var arraySlice = functionUncurryThis(''.slice);
5131
- var charCodeAt = functionUncurryThis(''.charCodeAt);
5132
-
5133
- // `ToNumeric` abstract operation
5134
- // https://tc39.es/ecma262/#sec-tonumeric
5135
- var toNumeric = function (value) {
5136
- var primValue = toPrimitive(value, 'number');
5137
- return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
5138
- };
5139
-
5140
- // `ToNumber` abstract operation
5141
- // https://tc39.es/ecma262/#sec-tonumber
5142
- var toNumber = function (argument) {
5143
- var it = toPrimitive(argument, 'number');
5144
- var first, third, radix, maxCode, digits, length, index, code;
5145
- if (isSymbol(it)) throw TypeError$3('Cannot convert a Symbol value to a number');
5146
- if (typeof it == 'string' && it.length > 2) {
5147
- it = trim$1(it);
5148
- first = charCodeAt(it, 0);
5149
- if (first === 43 || first === 45) {
5150
- third = charCodeAt(it, 2);
5151
- if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
5152
- } else if (first === 48) {
5153
- switch (charCodeAt(it, 1)) {
5154
- case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
5155
- case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
5156
- default: return +it;
5157
- }
5158
- digits = arraySlice(it, 2);
5159
- length = digits.length;
5160
- for (index = 0; index < length; index++) {
5161
- code = charCodeAt(digits, index);
5162
- // parseInt parses a string to a first unavailable symbol
5163
- // but ToNumber should return NaN if a string contains unavailable symbols
5164
- if (code < 48 || code > maxCode) return NaN;
5165
- } return parseInt(digits, radix);
5166
- }
5167
- } return +it;
5168
- };
5169
-
5170
- // `Number` constructor
5171
- // https://tc39.es/ecma262/#sec-number-constructor
5172
- if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
5173
- var NumberWrapper = function Number(value) {
5174
- var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
5175
- var dummy = this;
5176
- // check on 1..constructor(foo) case
5177
- return objectIsPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })
5178
- ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
5179
- };
5180
- for (var keys$2 = descriptors ? getOwnPropertyNames$1(NativeNumber) : (
5181
- // ES3:
5182
- 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
5183
- // ES2015 (in case, if modules with ES2015 Number statics required before):
5184
- 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +
5185
- // ESNext
5186
- 'fromString,range'
5187
- ).split(','), j = 0, key; keys$2.length > j; j++) {
5188
- if (hasOwnProperty_1(NativeNumber, key = keys$2[j]) && !hasOwnProperty_1(NumberWrapper, key)) {
5189
- defineProperty$4(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
5190
- }
5191
- }
5192
- NumberWrapper.prototype = NumberPrototype;
5193
- NumberPrototype.constructor = NumberWrapper;
5194
- redefine(global$1, NUMBER, NumberWrapper);
5195
- }
5196
-
5197
5175
  var trim = stringTrim.trim;
5198
5176
 
5199
5177
 
@@ -8110,7 +8088,7 @@
8110
8088
  var $assign = Object.assign;
8111
8089
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
8112
8090
  var defineProperty = Object.defineProperty;
8113
- var concat = functionUncurryThis([].concat);
8091
+ var concat$1 = functionUncurryThis([].concat);
8114
8092
 
8115
8093
  // `Object.assign` method
8116
8094
  // https://tc39.es/ecma262/#sec-object.assign
@@ -8142,7 +8120,7 @@
8142
8120
  var propertyIsEnumerable = objectPropertyIsEnumerable.f;
8143
8121
  while (argumentsLength > index) {
8144
8122
  var S = indexedObject(arguments[index++]);
8145
- var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
8123
+ var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
8146
8124
  var length = keys.length;
8147
8125
  var j = 0;
8148
8126
  var key;
@@ -8431,16 +8409,6 @@
8431
8409
 
8432
8410
  var unnest$1 = /*#__PURE__*/chain(_identity);
8433
8411
 
8434
- var $entries = objectToArray.entries;
8435
-
8436
- // `Object.entries` method
8437
- // https://tc39.es/ecma262/#sec-object.entries
8438
- _export({ target: 'Object', stat: true }, {
8439
- entries: function entries(O) {
8440
- return $entries(O);
8441
- }
8442
- });
8443
-
8444
8412
  var $every = arrayIteration.every;
8445
8413
 
8446
8414
 
@@ -9009,7 +8977,7 @@
9009
8977
  });
9010
8978
  var dateRange = [range.start, range.end];
9011
8979
 
9012
- if (originalTimeDimension) {
8980
+ if (originalTimeDimension !== null && originalTimeDimension !== void 0 && originalTimeDimension.dateRange) {
9013
8981
  var _originalTimeDimensio = _slicedToArray(originalTimeDimension.dateRange, 2),
9014
8982
  originalStart = _originalTimeDimensio[0],
9015
8983
  originalEnd = _originalTimeDimensio[1];
@@ -10034,7 +10002,7 @@
10034
10002
  var decodeURIComponent$1 = global$1.decodeURIComponent;
10035
10003
  var encodeURIComponent$1 = global$1.encodeURIComponent;
10036
10004
  var charAt = functionUncurryThis(''.charAt);
10037
- var join = functionUncurryThis([].join);
10005
+ var join$1 = functionUncurryThis([].join);
10038
10006
  var push$1 = functionUncurryThis([].push);
10039
10007
  var replace = functionUncurryThis(''.replace);
10040
10008
  var shift = functionUncurryThis([].shift);
@@ -10157,7 +10125,7 @@
10157
10125
  entry = split(attribute, '=');
10158
10126
  push$1(this.entries, {
10159
10127
  key: deserialize(shift(entry)),
10160
- value: deserialize(join(entry, '='))
10128
+ value: deserialize(join$1(entry, '='))
10161
10129
  });
10162
10130
  }
10163
10131
  }
@@ -10171,7 +10139,7 @@
10171
10139
  while (index < entries.length) {
10172
10140
  entry = entries[index++];
10173
10141
  push$1(result, serialize(entry.key) + '=' + serialize(entry.value));
10174
- } return join(result, '&');
10142
+ } return join$1(result, '&');
10175
10143
  },
10176
10144
  update: function () {
10177
10145
  this.entries.length = 0;
@@ -11368,6 +11336,32 @@
11368
11336
  return HttpTransport;
11369
11337
  }();
11370
11338
 
11339
+ var Function$1 = global$1.Function;
11340
+ var concat = functionUncurryThis([].concat);
11341
+ var join = functionUncurryThis([].join);
11342
+ var factories = {};
11343
+
11344
+ var construct = function (C, argsLength, args) {
11345
+ if (!hasOwnProperty_1(factories, argsLength)) {
11346
+ for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';
11347
+ factories[argsLength] = Function$1('C,a', 'return new C(' + join(list, ',') + ')');
11348
+ } return factories[argsLength](C, args);
11349
+ };
11350
+
11351
+ // `Function.prototype.bind` method implementation
11352
+ // https://tc39.es/ecma262/#sec-function.prototype.bind
11353
+ var functionBind = Function$1.bind || function bind(that /* , ...args */) {
11354
+ var F = aCallable(this);
11355
+ var Prototype = F.prototype;
11356
+ var partArgs = arraySlice$1(arguments, 1);
11357
+ var boundFunction = function bound(/* args... */) {
11358
+ var args = concat(partArgs, arraySlice$1(arguments));
11359
+ return this instanceof boundFunction ? construct(F, args.length, args) : F.apply(that, args);
11360
+ };
11361
+ if (isObject(Prototype)) boundFunction.prototype = Prototype;
11362
+ return boundFunction;
11363
+ };
11364
+
11371
11365
  var nativeConstruct = getBuiltIn('Reflect', 'construct');
11372
11366
  var ObjectPrototype = Object.prototype;
11373
11367
  var push = [].push;
@@ -12123,18 +12117,46 @@
12123
12117
  }, {
12124
12118
  key: "loadResponseInternal",
12125
12119
  value: function loadResponseInternal(response) {
12126
- if (response.results.length && response.results[0].query.responseFormat && response.results[0].query.responseFormat === ResultType.COMPACT) {
12127
- response.results.forEach(function (result, j) {
12128
- var data = [];
12129
- result.data.dataset.forEach(function (r) {
12130
- var row = {};
12131
- result.data.members.forEach(function (m, i) {
12132
- row[m] = r[i];
12120
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
12121
+
12122
+ if (response.results.length) {
12123
+ if (options.castNumerics) {
12124
+ response.results.forEach(function (result) {
12125
+ var numericMembers = Object.entries(_objectSpread(_objectSpread({}, result.annotation.measures), result.annotation.dimensions)).map(function (_ref7) {
12126
+ var _ref8 = _slicedToArray(_ref7, 2),
12127
+ k = _ref8[0],
12128
+ v = _ref8[1];
12129
+
12130
+ if (v.type === 'number') {
12131
+ return k;
12132
+ }
12133
+
12134
+ return undefined;
12135
+ }).filter(Boolean);
12136
+ result.data = result.data.map(function (row) {
12137
+ numericMembers.forEach(function (key) {
12138
+ if (row[key] != null) {
12139
+ row[key] = Number(row[key]);
12140
+ }
12141
+ });
12142
+ return row;
12133
12143
  });
12134
- data.push(row);
12135
12144
  });
12136
- response.results[j].data = data;
12137
- });
12145
+ }
12146
+
12147
+ if (response.results[0].query.responseFormat && response.results[0].query.responseFormat === ResultType.COMPACT) {
12148
+ response.results.forEach(function (result, j) {
12149
+ var data = [];
12150
+ result.data.dataset.forEach(function (r) {
12151
+ var row = {};
12152
+ result.data.members.forEach(function (m, i) {
12153
+ row[m] = r[i];
12154
+ });
12155
+ data.push(row);
12156
+ });
12157
+ response.results[j].data = data;
12158
+ });
12159
+ }
12138
12160
  }
12139
12161
 
12140
12162
  return new ResultSet(response, {
@@ -12163,7 +12185,9 @@
12163
12185
  query: query,
12164
12186
  queryType: 'multi'
12165
12187
  });
12166
- }, this.loadResponseInternal.bind(this), options, callback);
12188
+ }, function (response) {
12189
+ return _this3.loadResponseInternal(response, options);
12190
+ }, options, callback);
12167
12191
  }
12168
12192
  }, {
12169
12193
  key: "subscribe",
@@ -12187,7 +12211,9 @@
12187
12211
  query: query,
12188
12212
  queryType: 'multi'
12189
12213
  });
12190
- }, this.loadResponseInternal.bind(this), _objectSpread(_objectSpread({}, options), {}, {
12214
+ }, function (response) {
12215
+ return _this4.loadResponseInternal(response, options);
12216
+ }, _objectSpread(_objectSpread({}, options), {}, {
12191
12217
  subscribe: true
12192
12218
  }), callback);
12193
12219
  }