vis-util 6.0.1 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/declarations/shared/index.d.ts +2 -1
  2. package/declarations/shared/index.d.ts.map +1 -1
  3. package/esnext/esm/vis-util.js +2 -2
  4. package/esnext/esm/vis-util.js.map +1 -1
  5. package/esnext/esm/vis-util.min.js +2 -2
  6. package/esnext/esm/vis-util.min.js.map +1 -1
  7. package/esnext/esm/vis-util.min.mjs +2 -2
  8. package/esnext/esm/vis-util.min.mjs.map +1 -1
  9. package/esnext/esm/vis-util.mjs +2 -2
  10. package/esnext/esm/vis-util.mjs.map +1 -1
  11. package/esnext/umd/vis-util.cjs +2 -2
  12. package/esnext/umd/vis-util.cjs.map +1 -1
  13. package/esnext/umd/vis-util.js +2 -2
  14. package/esnext/umd/vis-util.js.map +1 -1
  15. package/esnext/umd/vis-util.min.cjs +2 -2
  16. package/esnext/umd/vis-util.min.cjs.map +1 -1
  17. package/esnext/umd/vis-util.min.js +2 -2
  18. package/esnext/umd/vis-util.min.js.map +1 -1
  19. package/package.json +11 -10
  20. package/peer/esm/vis-util.js +233 -60
  21. package/peer/esm/vis-util.js.map +1 -1
  22. package/peer/esm/vis-util.min.js +4 -4
  23. package/peer/esm/vis-util.min.js.map +1 -1
  24. package/peer/esm/vis-util.min.mjs +4 -4
  25. package/peer/esm/vis-util.min.mjs.map +1 -1
  26. package/peer/esm/vis-util.mjs +233 -60
  27. package/peer/esm/vis-util.mjs.map +1 -1
  28. package/peer/umd/vis-util.cjs +233 -60
  29. package/peer/umd/vis-util.cjs.map +1 -1
  30. package/peer/umd/vis-util.js +233 -60
  31. package/peer/umd/vis-util.js.map +1 -1
  32. package/peer/umd/vis-util.min.cjs +4 -4
  33. package/peer/umd/vis-util.min.cjs.map +1 -1
  34. package/peer/umd/vis-util.min.js +4 -4
  35. package/peer/umd/vis-util.min.js.map +1 -1
  36. package/standalone/esm/vis-util.js +233 -60
  37. package/standalone/esm/vis-util.js.map +1 -1
  38. package/standalone/esm/vis-util.min.js +4 -4
  39. package/standalone/esm/vis-util.min.js.map +1 -1
  40. package/standalone/esm/vis-util.min.mjs +4 -4
  41. package/standalone/esm/vis-util.min.mjs.map +1 -1
  42. package/standalone/esm/vis-util.mjs +233 -60
  43. package/standalone/esm/vis-util.mjs.map +1 -1
  44. package/standalone/umd/vis-util.cjs +233 -60
  45. package/standalone/umd/vis-util.cjs.map +1 -1
  46. package/standalone/umd/vis-util.js +233 -60
  47. package/standalone/umd/vis-util.js.map +1 -1
  48. package/standalone/umd/vis-util.min.cjs +4 -4
  49. package/standalone/umd/vis-util.min.cjs.map +1 -1
  50. package/standalone/umd/vis-util.min.js +4 -4
  51. package/standalone/umd/vis-util.min.js.map +1 -1
@@ -4,8 +4,8 @@
4
4
  *
5
5
  * utilitie collection for visjs
6
6
  *
7
- * @version 6.0.1
8
- * @date 2026-08-03T17:52:53.613Z
7
+ * @version 6.0.3
8
+ * @date 2026-10-25T07:23:27.729Z
9
9
  *
10
10
  * @copyright (c) 2011-2017 Almende B.V, http://almende.com
11
11
  * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
@@ -633,10 +633,10 @@
633
633
  var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
634
634
 
635
635
  (store.versions || (store.versions = [])).push({
636
- version: '3.49.0',
636
+ version: '3.50.0',
637
637
  mode: IS_PURE ? 'pure' : 'global',
638
638
  copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
639
- license: 'https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE',
639
+ license: 'https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE',
640
640
  source: 'https://github.com/zloirock/core-js'
641
641
  });
642
642
  return sharedStore.exports;
@@ -649,9 +649,11 @@
649
649
  if (hasRequiredShared) return shared;
650
650
  hasRequiredShared = 1;
651
651
  var store = /*@__PURE__*/ requireSharedStore();
652
+ // eslint-disable-next-line es/no-object-create -- safe
653
+ var create = Object.create || Object;
652
654
 
653
655
  shared = function (key, value) {
654
- return store[key] || (store[key] = value || {});
656
+ return store[key] || (store[key] = value || create(null));
655
657
  };
656
658
  return shared;
657
659
  }
@@ -2635,6 +2637,20 @@
2635
2637
  return isRawJson;
2636
2638
  }
2637
2639
 
2640
+ var thisNumberValue;
2641
+ var hasRequiredThisNumberValue;
2642
+
2643
+ function requireThisNumberValue () {
2644
+ if (hasRequiredThisNumberValue) return thisNumberValue;
2645
+ hasRequiredThisNumberValue = 1;
2646
+ var uncurryThis = /*@__PURE__*/ requireFunctionUncurryThis();
2647
+
2648
+ // `thisNumberValue` abstract operation
2649
+ // https://tc39.es/ecma262/#sec-thisnumbervalue
2650
+ thisNumberValue = uncurryThis(1.1.valueOf);
2651
+ return thisNumberValue;
2652
+ }
2653
+
2638
2654
  var parseJsonString;
2639
2655
  var hasRequiredParseJsonString;
2640
2656
 
@@ -2725,38 +2741,54 @@
2725
2741
  hasRequiredEs_json_stringify = 1;
2726
2742
  var $ = /*@__PURE__*/ require_export();
2727
2743
  var getBuiltIn = /*@__PURE__*/ requireGetBuiltIn();
2728
- var apply = /*@__PURE__*/ requireFunctionApply();
2729
2744
  var call = /*@__PURE__*/ requireFunctionCall();
2730
2745
  var uncurryThis = /*@__PURE__*/ requireFunctionUncurryThis();
2731
2746
  var fails = /*@__PURE__*/ requireFails();
2732
2747
  var isArray = /*@__PURE__*/ requireIsArray$6();
2733
2748
  var isCallable = /*@__PURE__*/ requireIsCallable();
2749
+ var isObject = /*@__PURE__*/ requireIsObject();
2750
+ var create = /*@__PURE__*/ requireObjectCreate();
2734
2751
  var isRawJSON = /*@__PURE__*/ requireIsRawJson();
2735
2752
  var isSymbol = /*@__PURE__*/ requireIsSymbol();
2736
2753
  var classof = /*@__PURE__*/ requireClassofRaw();
2754
+ var thisNumberValue = /*@__PURE__*/ requireThisNumberValue();
2755
+ var includes = /*@__PURE__*/ requireArrayIncludes().includes;
2756
+ var hasOwn = /*@__PURE__*/ requireHasOwnProperty();
2737
2757
  var toString = /*@__PURE__*/ requireToString();
2738
- var arraySlice = /*@__PURE__*/ requireArraySlice();
2739
2758
  var parseJSONString = /*@__PURE__*/ requireParseJsonString();
2740
2759
  var uid = /*@__PURE__*/ requireUid();
2741
2760
  var NATIVE_SYMBOL = /*@__PURE__*/ requireSymbolConstructorDetection();
2742
2761
  var NATIVE_RAW_JSON = /*@__PURE__*/ requireNativeRawJson();
2743
2762
 
2744
2763
  var $String = String;
2764
+ var $TypeError = TypeError;
2745
2765
  var $stringify = getBuiltIn('JSON', 'stringify');
2766
+ var $BigInt = getBuiltIn('BigInt');
2767
+ var stringValueOf = uncurryThis(''.valueOf);
2768
+ var booleanValueOf = uncurryThis(true.valueOf);
2769
+ var bigIntValueOf = $BigInt && uncurryThis($BigInt.prototype.valueOf);
2746
2770
  var exec = uncurryThis(/./.exec);
2747
2771
  var charAt = uncurryThis(''.charAt);
2748
2772
  var charCodeAt = uncurryThis(''.charCodeAt);
2749
2773
  var replace = uncurryThis(''.replace);
2750
2774
  var slice = uncurryThis(''.slice);
2751
2775
  var push = uncurryThis([].push);
2776
+ var pop = uncurryThis([].pop);
2752
2777
  var numberToString = uncurryThis(1.1.toString);
2753
2778
 
2754
2779
  var surrogates = /[\uD800-\uDFFF]/g;
2755
2780
  var leadingSurrogates = /^[\uD800-\uDBFF]$/;
2756
2781
  var trailingSurrogates = /^[\uDC00-\uDFFF]$/;
2782
+ var digits = /^\d+$/;
2757
2783
 
2758
- var MARK = uid();
2759
- var MARK_LENGTH = MARK.length;
2784
+ // a placeholder of a raw JSON value
2785
+ var RAW_MARK = uid();
2786
+ // a prefix of keys of a reordered object, see `createOrderedObject`
2787
+ var KEY_MARK = uid();
2788
+ // the last key of a reordered object, marks the end of its serialization
2789
+ var END_MARK = uid();
2790
+ var RAW_MARK_LENGTH = RAW_MARK.length;
2791
+ var KEY_MARK_LENGTH = KEY_MARK.length;
2760
2792
 
2761
2793
  var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () {
2762
2794
  var symbol = getBuiltIn('Symbol')('stringify detection');
@@ -2774,16 +2806,13 @@
2774
2806
  || $stringify('\uDEAD') !== '"\\udead"';
2775
2807
  });
2776
2808
 
2777
- var stringifyWithProperSymbolsConversion = WRONG_SYMBOLS_CONVERSION ? function (it, replacer) {
2778
- var args = arraySlice(arguments);
2779
- var $replacer = getReplacerFunction(replacer);
2780
- if (!isCallable($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
2781
- args[1] = function (key, value) {
2782
- // some old implementations (like WebKit) could pass numbers as keys
2783
- if (isCallable($replacer)) value = call($replacer, this, $String(key), value);
2784
- if (!isSymbol(value)) return value;
2785
- };
2786
- return apply($stringify, null, args);
2809
+ var isRawJSONValue = NATIVE_RAW_JSON ? getBuiltIn('JSON', 'isRawJSON') : isRawJSON;
2810
+
2811
+ var stringifyWithProperSymbolsConversion = WRONG_SYMBOLS_CONVERSION ? function (it, replacer, space) {
2812
+ return $stringify(it, function (key, value) {
2813
+ var replaced = call(replacer, this, key, value);
2814
+ if (!isSymbol(replaced)) return replaced;
2815
+ }, space);
2787
2816
  } : $stringify;
2788
2817
 
2789
2818
  var fixIllFormedJSON = function (match, offset, string) {
@@ -2797,47 +2826,150 @@
2797
2826
  } return match;
2798
2827
  };
2799
2828
 
2800
- var getReplacerFunction = function (replacer) {
2801
- if (isCallable(replacer)) return replacer;
2829
+ // `PropertyList` of `JSON.stringify`
2830
+ // https://tc39.es/ecma262/#sec-json.stringify
2831
+ var getPropertyList = function (replacer) {
2802
2832
  if (!isArray(replacer)) return;
2803
2833
  var rawLength = replacer.length;
2804
- var keys = [];
2834
+ var propertyList = [];
2835
+ // a null prototype object is used as a set of already added keys to keep the deduplication linear
2836
+ var addedKeys = create(null);
2805
2837
  for (var i = 0; i < rawLength; i++) {
2806
2838
  var element = replacer[i];
2807
- if (typeof element == 'string') push(keys, element);
2808
- else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString(element));
2839
+ var key;
2840
+ if (typeof element == 'string') key = element;
2841
+ else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') key = toString(element);
2842
+ else continue;
2843
+ if (!hasOwn(addedKeys, key)) {
2844
+ addedKeys[key] = true;
2845
+ push(propertyList, key);
2846
+ }
2809
2847
  }
2810
- var keysLength = keys.length;
2811
- var root = true;
2812
- return function (key, value) {
2813
- if (root) {
2814
- root = false;
2815
- return value;
2848
+ return propertyList;
2849
+ };
2850
+
2851
+ // values with such an internal slot are unwrapped by `SerializeJSONProperty` instead of being serialized as objects
2852
+ var hasInternalSlot = function (valueOf, it) {
2853
+ try {
2854
+ valueOf(it);
2855
+ return true;
2856
+ } catch (error) {
2857
+ return false;
2858
+ }
2859
+ };
2860
+
2861
+ // the slot check is expensive, so it's performed only for the kind reported by the value itself -
2862
+ // a value lying about its kind via `Symbol.toStringTag` is serialized as an ordinary object
2863
+ var isBoxedPrimitive = function (it) {
2864
+ var kind = classof(it);
2865
+ return (kind === 'Number' && hasInternalSlot(thisNumberValue, it))
2866
+ || (kind === 'String' && hasInternalSlot(stringValueOf, it))
2867
+ || (kind === 'Boolean' && hasInternalSlot(booleanValueOf, it))
2868
+ || (!!bigIntValueOf && kind === 'BigInt' && hasInternalSlot(bigIntValueOf, it));
2869
+ };
2870
+
2871
+ // only objects serialized by `SerializeJSONObject` are affected by the property list
2872
+ var isSerializedAsObject = function (it) {
2873
+ if (!isObject(it) || isCallable(it) || isArray(it)) return false;
2874
+ try {
2875
+ return !isBoxedPrimitive(it);
2876
+ // `classof` reads `Symbol.toStringTag`, so a proxy could throw - it has no internal slots anyway
2877
+ } catch (error) {
2878
+ return true;
2879
+ }
2880
+ };
2881
+
2882
+ // the engine unwraps it in the same order as it would read the original property,
2883
+ // so the property is read lazily and `toJSON` is called once and with the original key
2884
+ var createElementHolder = function (holder, key) {
2885
+ return {
2886
+ toJSON: function () {
2887
+ var element = holder[key];
2888
+ if (isObject(element) || typeof element == 'bigint') {
2889
+ var elementToJSON = element.toJSON;
2890
+ if (isCallable(elementToJSON)) element = call(elementToJSON, element, key);
2891
+ } return element;
2816
2892
  }
2817
- if (isArray(this)) return value;
2818
- for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
2819
2893
  };
2820
2894
  };
2821
2895
 
2896
+ // own keys of objects are sorted - integer-like keys are moved to the beginning,
2897
+ // so such keys should be marked and restored in the serialized string
2898
+ var getKeyPrefix = function (propertyList) {
2899
+ for (var i = 0, length = propertyList.length; i < length; i++) {
2900
+ if (exec(digits, propertyList[i])) return KEY_MARK;
2901
+ } return '';
2902
+ };
2903
+
2904
+ // `SerializeJSONObject` iterates the property list, so the value is replaced with an object with keys in this order
2905
+ var createOrderedObject = function (value, propertyList, keyPrefix) {
2906
+ // keys are not marked if the property list has no integer-like keys, so `Object.prototype`
2907
+ // with a setter, a non-writable property or `__proto__` should not intercept the assignment
2908
+ var ordered = create(null);
2909
+ for (var i = 0, length = propertyList.length; i < length; i++) {
2910
+ var key = propertyList[i];
2911
+ ordered[keyPrefix + key] = createElementHolder(value, key);
2912
+ }
2913
+ ordered[END_MARK] = null;
2914
+ return ordered;
2915
+ };
2916
+
2822
2917
  // `JSON.stringify` method
2823
2918
  // https://tc39.es/ecma262/#sec-json.stringify
2824
2919
  // https://github.com/tc39/proposal-json-parse-with-source
2825
2920
  if ($stringify) $({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE || !NATIVE_RAW_JSON }, {
2826
2921
  stringify: function stringify(text, replacer, space) {
2827
- var replacerFunction = getReplacerFunction(replacer);
2922
+ var replacerFunction = isCallable(replacer) ? replacer : undefined;
2923
+ var propertyList = replacerFunction ? undefined : getPropertyList(replacer);
2924
+ var keyPrefix = propertyList && getKeyPrefix(propertyList);
2828
2925
  var rawStrings = [];
2926
+ var openObjects = [];
2927
+ var parentOrdered = [];
2928
+ var currentOrdered;
2929
+ var marked = false;
2930
+ var root = true;
2829
2931
 
2830
2932
  var json = stringifyWithProperSymbolsConversion(text, function (key, value) {
2831
2933
  // some old implementations (like WebKit) could pass numbers as keys
2832
- var v = isCallable(replacerFunction) ? call(replacerFunction, this, $String(key), value) : value;
2833
- return !NATIVE_RAW_JSON && isRawJSON(v) ? MARK + (push(rawStrings, v.rawJSON) - 1) : v;
2934
+ key = $String(key);
2935
+
2936
+ if (propertyList) {
2937
+ if (key === END_MARK) {
2938
+ pop(openObjects);
2939
+ currentOrdered = pop(parentOrdered);
2940
+ return;
2941
+ }
2942
+ if (root) root = false;
2943
+ // the innermost reordered object already contains only keys of the property list and arrays are not
2944
+ // affected by it, the rest of objects (like objects with a fake `Symbol.toStringTag`) are filtered here
2945
+ else if (this !== currentOrdered && !isArray(this) && !includes(propertyList, key)) return;
2946
+ } else if (replacerFunction) value = call(replacerFunction, this, key, value);
2947
+
2948
+ if (isRawJSONValue(value)) {
2949
+ if (NATIVE_RAW_JSON) return value;
2950
+ marked = true;
2951
+ return RAW_MARK + (push(rawStrings, value.rawJSON) - 1);
2952
+ }
2953
+
2954
+ if (propertyList && isSerializedAsObject(value)) {
2955
+ // reordered objects are new each time, so cycles should be detected before the engine does it
2956
+ if (includes(openObjects, value)) throw new $TypeError('Converting circular structure to JSON');
2957
+ var ordered = createOrderedObject(value, propertyList, keyPrefix);
2958
+ push(openObjects, value);
2959
+ push(parentOrdered, currentOrdered);
2960
+ currentOrdered = ordered;
2961
+ if (keyPrefix) marked = true;
2962
+ return ordered;
2963
+ }
2964
+
2965
+ return value;
2834
2966
  }, space);
2835
2967
 
2836
2968
  if (typeof json != 'string') return json;
2837
2969
 
2838
2970
  if (ILL_FORMED_UNICODE) json = replace(json, surrogates, fixIllFormedJSON);
2839
2971
 
2840
- if (NATIVE_RAW_JSON) return json;
2972
+ if (!marked) return json;
2841
2973
 
2842
2974
  var result = '';
2843
2975
  var length = json.length;
@@ -2847,9 +2979,9 @@
2847
2979
  if (chr === '"') {
2848
2980
  var end = parseJSONString(json, ++i).end - 1;
2849
2981
  var string = slice(json, i, end);
2850
- result += slice(string, 0, MARK_LENGTH) === MARK
2851
- ? rawStrings[slice(string, MARK_LENGTH)]
2852
- : '"' + string + '"';
2982
+ if (slice(string, 0, RAW_MARK_LENGTH) === RAW_MARK) result += rawStrings[slice(string, RAW_MARK_LENGTH)];
2983
+ else if (slice(string, 0, KEY_MARK_LENGTH) === KEY_MARK) result += '"' + slice(string, KEY_MARK_LENGTH) + '"';
2984
+ else result += '"' + string + '"';
2853
2985
  i = end;
2854
2986
  } else result += chr;
2855
2987
  }
@@ -3202,7 +3334,7 @@
3202
3334
  function requireIterators () {
3203
3335
  if (hasRequiredIterators) return iterators;
3204
3336
  hasRequiredIterators = 1;
3205
- iterators = {};
3337
+ iterators = Object.create ? Object.create(null) : {};
3206
3338
  return iterators;
3207
3339
  }
3208
3340
 
@@ -4705,24 +4837,37 @@
4705
4837
  return es_string_iterator;
4706
4838
  }
4707
4839
 
4840
+ var getInternalIterator;
4841
+ var hasRequiredGetInternalIterator;
4842
+
4843
+ function requireGetInternalIterator () {
4844
+ if (hasRequiredGetInternalIterator) return getInternalIterator;
4845
+ hasRequiredGetInternalIterator = 1;
4846
+ var classof = /*@__PURE__*/ requireClassof();
4847
+ var hasOwn = /*@__PURE__*/ requireHasOwnProperty();
4848
+ var Iterators = /*@__PURE__*/ requireIterators();
4849
+
4850
+ getInternalIterator = function (it) {
4851
+ var klass = classof(it);
4852
+ if (klass === 'Arguments') klass = 'Array';
4853
+ return hasOwn(Iterators, klass) ? Iterators[klass] : undefined;
4854
+ };
4855
+ return getInternalIterator;
4856
+ }
4857
+
4708
4858
  var getIteratorMethod$4;
4709
4859
  var hasRequiredGetIteratorMethod$5;
4710
4860
 
4711
4861
  function requireGetIteratorMethod$5 () {
4712
4862
  if (hasRequiredGetIteratorMethod$5) return getIteratorMethod$4;
4713
4863
  hasRequiredGetIteratorMethod$5 = 1;
4714
- var classof = /*@__PURE__*/ requireClassof();
4715
- var getMethod = /*@__PURE__*/ requireGetMethod();
4716
- var isNullOrUndefined = /*@__PURE__*/ requireIsNullOrUndefined();
4717
- var Iterators = /*@__PURE__*/ requireIterators();
4864
+ var getInternalIterator = /*@__PURE__*/ requireGetInternalIterator();
4718
4865
  var wellKnownSymbol = /*@__PURE__*/ requireWellKnownSymbol();
4719
4866
 
4720
4867
  var ITERATOR = wellKnownSymbol('iterator');
4721
4868
 
4722
4869
  getIteratorMethod$4 = function (it) {
4723
- if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
4724
- || getMethod(it, '@@iterator')
4725
- || Iterators[classof(it)];
4870
+ return it[ITERATOR] || it['@@iterator'] || getInternalIterator(it);
4726
4871
  };
4727
4872
  return getIteratorMethod$4;
4728
4873
  }
@@ -5060,26 +5205,47 @@
5060
5205
  return isArrayIteratorMethod;
5061
5206
  }
5062
5207
 
5063
- var getIterator;
5064
- var hasRequiredGetIterator;
5208
+ var getIteratorMethodInternal;
5209
+ var hasRequiredGetIteratorMethodInternal;
5065
5210
 
5066
- function requireGetIterator () {
5067
- if (hasRequiredGetIterator) return getIterator;
5068
- hasRequiredGetIterator = 1;
5211
+ function requireGetIteratorMethodInternal () {
5212
+ if (hasRequiredGetIteratorMethodInternal) return getIteratorMethodInternal;
5213
+ hasRequiredGetIteratorMethodInternal = 1;
5214
+ var getMethod = /*@__PURE__*/ requireGetMethod();
5215
+ var isNullOrUndefined = /*@__PURE__*/ requireIsNullOrUndefined();
5216
+ var getInternalIterator = /*@__PURE__*/ requireGetInternalIterator();
5217
+ var wellKnownSymbol = /*@__PURE__*/ requireWellKnownSymbol();
5218
+
5219
+ var ITERATOR = wellKnownSymbol('iterator');
5220
+
5221
+ getIteratorMethodInternal = function (it) {
5222
+ if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
5223
+ || getMethod(it, '@@iterator')
5224
+ || getInternalIterator(it);
5225
+ };
5226
+ return getIteratorMethodInternal;
5227
+ }
5228
+
5229
+ var getIteratorInternal;
5230
+ var hasRequiredGetIteratorInternal;
5231
+
5232
+ function requireGetIteratorInternal () {
5233
+ if (hasRequiredGetIteratorInternal) return getIteratorInternal;
5234
+ hasRequiredGetIteratorInternal = 1;
5069
5235
  var call = /*@__PURE__*/ requireFunctionCall();
5070
- var aCallable = /*@__PURE__*/ requireACallable();
5236
+ var isCallable = /*@__PURE__*/ requireIsCallable();
5071
5237
  var anObject = /*@__PURE__*/ requireAnObject();
5072
5238
  var tryToString = /*@__PURE__*/ requireTryToString();
5073
- var getIteratorMethod = /*@__PURE__*/ requireGetIteratorMethod$5();
5239
+ var getIteratorMethod = /*@__PURE__*/ requireGetIteratorMethodInternal();
5074
5240
 
5075
5241
  var $TypeError = TypeError;
5076
5242
 
5077
- getIterator = function (argument, usingIterator) {
5243
+ getIteratorInternal = function (argument, usingIterator) {
5078
5244
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
5079
- if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));
5245
+ if (isCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));
5080
5246
  throw new $TypeError(tryToString(argument) + ' is not iterable');
5081
5247
  };
5082
- return getIterator;
5248
+ return getIteratorInternal;
5083
5249
  }
5084
5250
 
5085
5251
  var arrayFrom;
@@ -5097,9 +5263,10 @@
5097
5263
  var lengthOfArrayLike = /*@__PURE__*/ requireLengthOfArrayLike();
5098
5264
  var createProperty = /*@__PURE__*/ requireCreateProperty();
5099
5265
  var setArrayLength = /*@__PURE__*/ requireArraySetLength();
5100
- var getIterator = /*@__PURE__*/ requireGetIterator();
5101
- var getIteratorMethod = /*@__PURE__*/ requireGetIteratorMethod$5();
5266
+ var getIterator = /*@__PURE__*/ requireGetIteratorInternal();
5267
+ var getIteratorMethod = /*@__PURE__*/ requireGetIteratorMethodInternal();
5102
5268
  var iteratorClose = /*@__PURE__*/ requireIteratorClose();
5269
+ var doesNotExceedSafeInteger = /*@__PURE__*/ requireDoesNotExceedSafeInteger();
5103
5270
 
5104
5271
  var $Array = Array;
5105
5272
 
@@ -5121,6 +5288,11 @@
5121
5288
  iterator = getIterator(O, iteratorMethod);
5122
5289
  next = iterator.next;
5123
5290
  for (;!(step = call(next, iterator)).done; index++) {
5291
+ try {
5292
+ doesNotExceedSafeInteger(index);
5293
+ } catch (error) {
5294
+ iteratorClose(iterator, 'throw', error);
5295
+ }
5124
5296
  value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
5125
5297
  try {
5126
5298
  createProperty(result, index, value);
@@ -9622,7 +9794,8 @@
9622
9794
 
9623
9795
  // `Array.prototype.fill` method implementation
9624
9796
  // https://tc39.es/ecma262/#sec-array.prototype.fill
9625
- arrayFill = function fill(value /* , start = 0, end = @length */) {
9797
+ // eslint-disable-next-line es/no-array-prototype-fill -- fallback included
9798
+ arrayFill = [].fill || function fill(value /* , start = 0, end = @length */) {
9626
9799
  var O = toObject(this);
9627
9800
  var length = lengthOfArrayLike(O);
9628
9801
  var argumentsLength = arguments.length;