@frollo/frollo-web-ui 3.0.0 → 3.0.2
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/cjs/index.js +18838 -3083
- package/esm/add-to-unscopables-2400f45b.js +25 -0
- package/esm/{array-iteration-98e2cf9a.js → array-iteration-107f927f.js} +2 -3
- package/esm/array-method-has-species-support-3d413468.js +23 -0
- package/esm/{array-method-is-strict-544b103f.js → array-method-is-strict-055b1830.js} +1 -1
- package/esm/{array-species-create-5fc23c89.js → array-species-create-a5f5503b.js} +3 -4
- package/esm/{classof-a45668b6.js → classof-39c30bd5.js} +1 -2
- package/esm/{create-property-558a3c24.js → create-property-534611fd.js} +1 -2
- package/esm/delete-property-or-throw-8032646c.js +31 -0
- package/esm/does-not-exceed-safe-integer-31d08811.js +11 -0
- package/esm/es.array.concat-987938be.js +69 -0
- package/esm/{es.array.find-36d8f2f0.js → es.array.find-dfa1f42f.js} +5 -6
- package/esm/{es.array.includes-df8e6e35.js → es.array.includes-91be7771.js} +3 -4
- package/esm/{es.function.name-b642b74f.js → es.function.name-557cb1f9.js} +1 -1
- package/esm/{es.number.constructor-f279ce82.js → es.number.constructor-1249bd78.js} +2 -3
- package/esm/{fw-image-ec7b02c5.js → es.string.iterator-284b31d4.js} +11 -311
- package/esm/{object-keys-6a890c6f.js → export-a37ba078.js} +2 -13
- package/esm/function-apply-ce251590.js +14 -0
- package/esm/fw-accordion.js +2 -8
- package/esm/fw-animations.js +6 -20
- package/esm/fw-bar-chart.js +19 -0
- package/esm/{fw-button-df5c923f.js → fw-button-0401f207.js} +12 -27
- package/esm/fw-button.js +9 -8
- package/esm/{fw-card-8d3f4ab5.js → fw-card-1b6a67fe.js} +0 -5
- package/esm/fw-card.js +1 -1
- package/esm/fw-checkbox.js +27 -17
- package/esm/fw-dropdown.js +17 -34
- package/esm/fw-image-03f85465.js +289 -0
- package/esm/fw-image.js +20 -17
- package/esm/fw-input.js +24 -25
- package/esm/fw-loading-bar-f5ca605c.js +22 -0
- package/esm/{fw-loading-spinner-9b7c6855.js → fw-loading-spinner-164d8df0.js} +1 -2
- package/esm/fw-loading.js +6 -9
- package/esm/fw-modal.js +11 -21
- package/esm/fw-navigation-menu.js +11 -19
- package/esm/fw-progress-bar.js +4 -11
- package/esm/fw-sidebar-menu.js +131 -0
- package/esm/fw-table.js +12 -57
- package/esm/fw-tabs.js +60 -21
- package/esm/fw-tag.js +8 -8
- package/esm/fw-toast.js +29 -125
- package/esm/fw-transactions-card.js +21 -24
- package/esm/index-1a41e7bf.js +15838 -0
- package/esm/{index-4605e00e.js → index-692e4d19.js} +83 -55
- package/esm/index.js +43 -57
- package/esm/is-forced-752b5893.js +927 -0
- package/esm/{add-to-unscopables-3f461c07.js → object-create-f6f3a673.js} +3 -25
- package/esm/object-keys-4f5bf4e7.js +13 -0
- package/esm/{to-string-685748aa.js → to-string-12728fd2.js} +2 -2
- package/esm/{web.timers-4a6aaab8.js → web.timers-0f117224.js} +5 -15
- package/frollo-web-ui.esm.js +19112 -3282
- package/icons/chevron-left.svg +3 -0
- package/icons/chevron-right.svg +3 -0
- package/icons/index.ts +4 -0
- package/index.d.ts +200 -26
- package/package.json +4 -1
- package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +83 -0
- package/types/components/fw-bar-chart/index.d.ts +2 -0
- package/types/components/fw-bar-chart/index.types.d.ts +11 -0
- package/types/components/fw-button/fw-button.vue.d.ts +2 -2
- package/types/components/fw-button/index.types.d.ts +1 -1
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +3 -1
- package/types/components/fw-input/fw-input.vue.d.ts +1 -0
- package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +71 -0
- package/types/components/fw-sidebar-menu/index.d.ts +2 -0
- package/types/components/fw-sidebar-menu/index.types.d.ts +6 -0
- package/types/components/index.d.ts +2 -0
- package/types/components/index.types.d.ts +2 -0
- package/types/icons/index.d.ts +3 -1
- package/web-components/index.js +24066 -8740
- package/esm/function-name-e2f6ea36.js +0 -492
- package/esm/fw-loading-bar-da7d53fb.js +0 -22
- package/esm/is-forced-ddf227e6.js +0 -438
|
@@ -1,438 +0,0 @@
|
|
|
1
|
-
import { f as functionUncurryThis, j as fails$3, r as requireObjectCoercible$1, d as descriptors, b as functionCall, x as toPropertyKey$1, k as hasOwnProperty_1, y as ie8DomDefine, o as objectDefineProperty, l as isCallable$5, z as sharedStore, g as global$2, A as shared$2, B as uid$1, s as isObject$1, n as functionName, v as defineGlobalProperty$1 } from './function-name-e2f6ea36.js';
|
|
2
|
-
|
|
3
|
-
var objectGetOwnPropertyDescriptor = {};
|
|
4
|
-
|
|
5
|
-
var objectPropertyIsEnumerable = {};
|
|
6
|
-
|
|
7
|
-
'use strict';
|
|
8
|
-
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
9
|
-
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
10
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
11
|
-
|
|
12
|
-
// Nashorn ~ JDK8 bug
|
|
13
|
-
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
14
|
-
|
|
15
|
-
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
16
|
-
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
17
|
-
var f$2 = objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
18
|
-
var descriptor = getOwnPropertyDescriptor(this, V);
|
|
19
|
-
return !!descriptor && descriptor.enumerable;
|
|
20
|
-
} : $propertyIsEnumerable;
|
|
21
|
-
|
|
22
|
-
var createPropertyDescriptor$2 = function (bitmap, value) {
|
|
23
|
-
return {
|
|
24
|
-
enumerable: !(bitmap & 1),
|
|
25
|
-
configurable: !(bitmap & 2),
|
|
26
|
-
writable: !(bitmap & 4),
|
|
27
|
-
value: value
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
32
|
-
|
|
33
|
-
var toString = uncurryThis$4({}.toString);
|
|
34
|
-
var stringSlice = uncurryThis$4(''.slice);
|
|
35
|
-
|
|
36
|
-
var classofRaw = function (it) {
|
|
37
|
-
return stringSlice(toString(it), 8, -1);
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
41
|
-
var fails$2 = fails$3;
|
|
42
|
-
var classof = classofRaw;
|
|
43
|
-
|
|
44
|
-
var $Object = Object;
|
|
45
|
-
var split = uncurryThis$3(''.split);
|
|
46
|
-
|
|
47
|
-
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
48
|
-
var indexedObject = fails$2(function () {
|
|
49
|
-
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
50
|
-
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
51
|
-
return !$Object('z').propertyIsEnumerable(0);
|
|
52
|
-
}) ? function (it) {
|
|
53
|
-
return classof(it) == 'String' ? split(it, '') : $Object(it);
|
|
54
|
-
} : $Object;
|
|
55
|
-
|
|
56
|
-
// toObject with fallback for non-array-like ES3 strings
|
|
57
|
-
var IndexedObject = indexedObject;
|
|
58
|
-
var requireObjectCoercible = requireObjectCoercible$1;
|
|
59
|
-
|
|
60
|
-
var toIndexedObject$3 = function (it) {
|
|
61
|
-
return IndexedObject(requireObjectCoercible(it));
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
var DESCRIPTORS$2 = descriptors;
|
|
65
|
-
var call = functionCall;
|
|
66
|
-
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
67
|
-
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
68
|
-
var toIndexedObject$2 = toIndexedObject$3;
|
|
69
|
-
var toPropertyKey = toPropertyKey$1;
|
|
70
|
-
var hasOwn$3 = hasOwnProperty_1;
|
|
71
|
-
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
72
|
-
|
|
73
|
-
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
74
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
75
|
-
|
|
76
|
-
// `Object.getOwnPropertyDescriptor` method
|
|
77
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
78
|
-
var f$1 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$2 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
79
|
-
O = toIndexedObject$2(O);
|
|
80
|
-
P = toPropertyKey(P);
|
|
81
|
-
if (IE8_DOM_DEFINE) try {
|
|
82
|
-
return $getOwnPropertyDescriptor(O, P);
|
|
83
|
-
} catch (error) { /* empty */ }
|
|
84
|
-
if (hasOwn$3(O, P)) return createPropertyDescriptor$1(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
var DESCRIPTORS$1 = descriptors;
|
|
88
|
-
var definePropertyModule$1 = objectDefineProperty;
|
|
89
|
-
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
90
|
-
|
|
91
|
-
var createNonEnumerableProperty$1 = DESCRIPTORS$1 ? function (object, key, value) {
|
|
92
|
-
return definePropertyModule$1.f(object, key, createPropertyDescriptor(1, value));
|
|
93
|
-
} : function (object, key, value) {
|
|
94
|
-
object[key] = value;
|
|
95
|
-
return object;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
var makeBuiltIn$2 = {exports: {}};
|
|
99
|
-
|
|
100
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
101
|
-
var isCallable$4 = isCallable$5;
|
|
102
|
-
var store$1 = sharedStore;
|
|
103
|
-
|
|
104
|
-
var functionToString = uncurryThis$2(Function.toString);
|
|
105
|
-
|
|
106
|
-
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
107
|
-
if (!isCallable$4(store$1.inspectSource)) {
|
|
108
|
-
store$1.inspectSource = function (it) {
|
|
109
|
-
return functionToString(it);
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
var inspectSource$2 = store$1.inspectSource;
|
|
114
|
-
|
|
115
|
-
var global$1 = global$2;
|
|
116
|
-
var isCallable$3 = isCallable$5;
|
|
117
|
-
var inspectSource$1 = inspectSource$2;
|
|
118
|
-
|
|
119
|
-
var WeakMap$1 = global$1.WeakMap;
|
|
120
|
-
|
|
121
|
-
var nativeWeakMap = isCallable$3(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
|
|
122
|
-
|
|
123
|
-
var shared$1 = shared$2.exports;
|
|
124
|
-
var uid = uid$1;
|
|
125
|
-
|
|
126
|
-
var keys = shared$1('keys');
|
|
127
|
-
|
|
128
|
-
var sharedKey$1 = function (key) {
|
|
129
|
-
return keys[key] || (keys[key] = uid(key));
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
var hiddenKeys$3 = {};
|
|
133
|
-
|
|
134
|
-
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
135
|
-
var global = global$2;
|
|
136
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
137
|
-
var isObject = isObject$1;
|
|
138
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$1;
|
|
139
|
-
var hasOwn$2 = hasOwnProperty_1;
|
|
140
|
-
var shared = sharedStore;
|
|
141
|
-
var sharedKey = sharedKey$1;
|
|
142
|
-
var hiddenKeys$2 = hiddenKeys$3;
|
|
143
|
-
|
|
144
|
-
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
145
|
-
var TypeError = global.TypeError;
|
|
146
|
-
var WeakMap = global.WeakMap;
|
|
147
|
-
var set, get, has;
|
|
148
|
-
|
|
149
|
-
var enforce = function (it) {
|
|
150
|
-
return has(it) ? get(it) : set(it, {});
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
var getterFor = function (TYPE) {
|
|
154
|
-
return function (it) {
|
|
155
|
-
var state;
|
|
156
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
157
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
158
|
-
} return state;
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
if (NATIVE_WEAK_MAP || shared.state) {
|
|
163
|
-
var store = shared.state || (shared.state = new WeakMap());
|
|
164
|
-
var wmget = uncurryThis$1(store.get);
|
|
165
|
-
var wmhas = uncurryThis$1(store.has);
|
|
166
|
-
var wmset = uncurryThis$1(store.set);
|
|
167
|
-
set = function (it, metadata) {
|
|
168
|
-
if (wmhas(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
169
|
-
metadata.facade = it;
|
|
170
|
-
wmset(store, it, metadata);
|
|
171
|
-
return metadata;
|
|
172
|
-
};
|
|
173
|
-
get = function (it) {
|
|
174
|
-
return wmget(store, it) || {};
|
|
175
|
-
};
|
|
176
|
-
has = function (it) {
|
|
177
|
-
return wmhas(store, it);
|
|
178
|
-
};
|
|
179
|
-
} else {
|
|
180
|
-
var STATE = sharedKey('state');
|
|
181
|
-
hiddenKeys$2[STATE] = true;
|
|
182
|
-
set = function (it, metadata) {
|
|
183
|
-
if (hasOwn$2(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
184
|
-
metadata.facade = it;
|
|
185
|
-
createNonEnumerableProperty(it, STATE, metadata);
|
|
186
|
-
return metadata;
|
|
187
|
-
};
|
|
188
|
-
get = function (it) {
|
|
189
|
-
return hasOwn$2(it, STATE) ? it[STATE] : {};
|
|
190
|
-
};
|
|
191
|
-
has = function (it) {
|
|
192
|
-
return hasOwn$2(it, STATE);
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
var internalState = {
|
|
197
|
-
set: set,
|
|
198
|
-
get: get,
|
|
199
|
-
has: has,
|
|
200
|
-
enforce: enforce,
|
|
201
|
-
getterFor: getterFor
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
var fails$1 = fails$3;
|
|
205
|
-
var isCallable$2 = isCallable$5;
|
|
206
|
-
var hasOwn$1 = hasOwnProperty_1;
|
|
207
|
-
var DESCRIPTORS = descriptors;
|
|
208
|
-
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
209
|
-
var inspectSource = inspectSource$2;
|
|
210
|
-
var InternalStateModule = internalState;
|
|
211
|
-
|
|
212
|
-
var enforceInternalState = InternalStateModule.enforce;
|
|
213
|
-
var getInternalState = InternalStateModule.get;
|
|
214
|
-
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
215
|
-
var defineProperty = Object.defineProperty;
|
|
216
|
-
|
|
217
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$1(function () {
|
|
218
|
-
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
219
|
-
});
|
|
220
|
-
|
|
221
|
-
var TEMPLATE = String(String).split('String');
|
|
222
|
-
|
|
223
|
-
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
224
|
-
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
225
|
-
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
226
|
-
}
|
|
227
|
-
if (options && options.getter) name = 'get ' + name;
|
|
228
|
-
if (options && options.setter) name = 'set ' + name;
|
|
229
|
-
if (!hasOwn$1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
230
|
-
if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
|
|
231
|
-
else value.name = name;
|
|
232
|
-
}
|
|
233
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$1(options, 'arity') && value.length !== options.arity) {
|
|
234
|
-
defineProperty(value, 'length', { value: options.arity });
|
|
235
|
-
}
|
|
236
|
-
try {
|
|
237
|
-
if (options && hasOwn$1(options, 'constructor') && options.constructor) {
|
|
238
|
-
if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
|
|
239
|
-
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
240
|
-
} else if (value.prototype) value.prototype = undefined;
|
|
241
|
-
} catch (error) { /* empty */ }
|
|
242
|
-
var state = enforceInternalState(value);
|
|
243
|
-
if (!hasOwn$1(state, 'source')) {
|
|
244
|
-
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
245
|
-
} return value;
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
249
|
-
// eslint-disable-next-line no-extend-native -- required
|
|
250
|
-
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
251
|
-
return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
|
|
252
|
-
}, 'toString');
|
|
253
|
-
|
|
254
|
-
var makeBuiltIn_1 = makeBuiltIn$2.exports;
|
|
255
|
-
|
|
256
|
-
var isCallable$1 = isCallable$5;
|
|
257
|
-
var definePropertyModule = objectDefineProperty;
|
|
258
|
-
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
259
|
-
var defineGlobalProperty = defineGlobalProperty$1;
|
|
260
|
-
|
|
261
|
-
var defineBuiltIn = function (O, key, value, options) {
|
|
262
|
-
if (!options) options = {};
|
|
263
|
-
var simple = options.enumerable;
|
|
264
|
-
var name = options.name !== undefined ? options.name : key;
|
|
265
|
-
if (isCallable$1(value)) makeBuiltIn(value, name, options);
|
|
266
|
-
if (options.global) {
|
|
267
|
-
if (simple) O[key] = value;
|
|
268
|
-
else defineGlobalProperty(key, value);
|
|
269
|
-
} else {
|
|
270
|
-
try {
|
|
271
|
-
if (!options.unsafe) delete O[key];
|
|
272
|
-
else if (O[key]) simple = true;
|
|
273
|
-
} catch (error) { /* empty */ }
|
|
274
|
-
if (simple) O[key] = value;
|
|
275
|
-
else definePropertyModule.f(O, key, {
|
|
276
|
-
value: value,
|
|
277
|
-
enumerable: false,
|
|
278
|
-
configurable: !options.nonConfigurable,
|
|
279
|
-
writable: !options.nonWritable
|
|
280
|
-
});
|
|
281
|
-
} return O;
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
var objectGetOwnPropertyNames = {};
|
|
285
|
-
|
|
286
|
-
var ceil = Math.ceil;
|
|
287
|
-
var floor = Math.floor;
|
|
288
|
-
|
|
289
|
-
// `Math.trunc` method
|
|
290
|
-
// https://tc39.es/ecma262/#sec-math.trunc
|
|
291
|
-
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
292
|
-
var mathTrunc = Math.trunc || function trunc(x) {
|
|
293
|
-
var n = +x;
|
|
294
|
-
return (n > 0 ? floor : ceil)(n);
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
var trunc = mathTrunc;
|
|
298
|
-
|
|
299
|
-
// `ToIntegerOrInfinity` abstract operation
|
|
300
|
-
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
301
|
-
var toIntegerOrInfinity$2 = function (argument) {
|
|
302
|
-
var number = +argument;
|
|
303
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
304
|
-
return number !== number || number === 0 ? 0 : trunc(number);
|
|
305
|
-
};
|
|
306
|
-
|
|
307
|
-
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
308
|
-
|
|
309
|
-
var max = Math.max;
|
|
310
|
-
var min$1 = Math.min;
|
|
311
|
-
|
|
312
|
-
// Helper for a popular repeating case of the spec:
|
|
313
|
-
// Let integer be ? ToInteger(index).
|
|
314
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
315
|
-
var toAbsoluteIndex$1 = function (index, length) {
|
|
316
|
-
var integer = toIntegerOrInfinity$1(index);
|
|
317
|
-
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
321
|
-
|
|
322
|
-
var min = Math.min;
|
|
323
|
-
|
|
324
|
-
// `ToLength` abstract operation
|
|
325
|
-
// https://tc39.es/ecma262/#sec-tolength
|
|
326
|
-
var toLength$1 = function (argument) {
|
|
327
|
-
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
var toLength = toLength$1;
|
|
331
|
-
|
|
332
|
-
// `LengthOfArrayLike` abstract operation
|
|
333
|
-
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
334
|
-
var lengthOfArrayLike$1 = function (obj) {
|
|
335
|
-
return toLength(obj.length);
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
var toIndexedObject$1 = toIndexedObject$3;
|
|
339
|
-
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
340
|
-
var lengthOfArrayLike = lengthOfArrayLike$1;
|
|
341
|
-
|
|
342
|
-
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
343
|
-
var createMethod = function (IS_INCLUDES) {
|
|
344
|
-
return function ($this, el, fromIndex) {
|
|
345
|
-
var O = toIndexedObject$1($this);
|
|
346
|
-
var length = lengthOfArrayLike(O);
|
|
347
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
348
|
-
var value;
|
|
349
|
-
// Array#includes uses SameValueZero equality algorithm
|
|
350
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
351
|
-
if (IS_INCLUDES && el != el) while (length > index) {
|
|
352
|
-
value = O[index++];
|
|
353
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
354
|
-
if (value != value) return true;
|
|
355
|
-
// Array#indexOf ignores holes, Array#includes - not
|
|
356
|
-
} else for (;length > index; index++) {
|
|
357
|
-
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
358
|
-
} return !IS_INCLUDES && -1;
|
|
359
|
-
};
|
|
360
|
-
};
|
|
361
|
-
|
|
362
|
-
var arrayIncludes = {
|
|
363
|
-
// `Array.prototype.includes` method
|
|
364
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
365
|
-
includes: createMethod(true),
|
|
366
|
-
// `Array.prototype.indexOf` method
|
|
367
|
-
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
368
|
-
indexOf: createMethod(false)
|
|
369
|
-
};
|
|
370
|
-
|
|
371
|
-
var uncurryThis = functionUncurryThis;
|
|
372
|
-
var hasOwn = hasOwnProperty_1;
|
|
373
|
-
var toIndexedObject = toIndexedObject$3;
|
|
374
|
-
var indexOf = arrayIncludes.indexOf;
|
|
375
|
-
var hiddenKeys$1 = hiddenKeys$3;
|
|
376
|
-
|
|
377
|
-
var push = uncurryThis([].push);
|
|
378
|
-
|
|
379
|
-
var objectKeysInternal = function (object, names) {
|
|
380
|
-
var O = toIndexedObject(object);
|
|
381
|
-
var i = 0;
|
|
382
|
-
var result = [];
|
|
383
|
-
var key;
|
|
384
|
-
for (key in O) !hasOwn(hiddenKeys$1, key) && hasOwn(O, key) && push(result, key);
|
|
385
|
-
// Don't enum bug & hidden keys
|
|
386
|
-
while (names.length > i) if (hasOwn(O, key = names[i++])) {
|
|
387
|
-
~indexOf(result, key) || push(result, key);
|
|
388
|
-
}
|
|
389
|
-
return result;
|
|
390
|
-
};
|
|
391
|
-
|
|
392
|
-
// IE8- don't enum bug keys
|
|
393
|
-
var enumBugKeys$1 = [
|
|
394
|
-
'constructor',
|
|
395
|
-
'hasOwnProperty',
|
|
396
|
-
'isPrototypeOf',
|
|
397
|
-
'propertyIsEnumerable',
|
|
398
|
-
'toLocaleString',
|
|
399
|
-
'toString',
|
|
400
|
-
'valueOf'
|
|
401
|
-
];
|
|
402
|
-
|
|
403
|
-
var internalObjectKeys = objectKeysInternal;
|
|
404
|
-
var enumBugKeys = enumBugKeys$1;
|
|
405
|
-
|
|
406
|
-
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
407
|
-
|
|
408
|
-
// `Object.getOwnPropertyNames` method
|
|
409
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
410
|
-
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
411
|
-
var f = objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
412
|
-
return internalObjectKeys(O, hiddenKeys);
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
var fails = fails$3;
|
|
416
|
-
var isCallable = isCallable$5;
|
|
417
|
-
|
|
418
|
-
var replacement = /#|\.prototype\./;
|
|
419
|
-
|
|
420
|
-
var isForced = function (feature, detection) {
|
|
421
|
-
var value = data[normalize(feature)];
|
|
422
|
-
return value == POLYFILL ? true
|
|
423
|
-
: value == NATIVE ? false
|
|
424
|
-
: isCallable(detection) ? fails(detection)
|
|
425
|
-
: !!detection;
|
|
426
|
-
};
|
|
427
|
-
|
|
428
|
-
var normalize = isForced.normalize = function (string) {
|
|
429
|
-
return String(string).replace(replacement, '.').toLowerCase();
|
|
430
|
-
};
|
|
431
|
-
|
|
432
|
-
var data = isForced.data = {};
|
|
433
|
-
var NATIVE = isForced.NATIVE = 'N';
|
|
434
|
-
var POLYFILL = isForced.POLYFILL = 'P';
|
|
435
|
-
|
|
436
|
-
var isForced_1 = isForced;
|
|
437
|
-
|
|
438
|
-
export { toIntegerOrInfinity$2 as a, createPropertyDescriptor$2 as b, createNonEnumerableProperty$1 as c, defineBuiltIn as d, toAbsoluteIndex$1 as e, classofRaw as f, objectGetOwnPropertyNames as g, objectGetOwnPropertyDescriptor as h, internalState as i, isForced_1 as j, objectKeysInternal as k, lengthOfArrayLike$1 as l, enumBugKeys$1 as m, arrayIncludes as n, objectPropertyIsEnumerable as o, indexedObject as p, hiddenKeys$3 as q, inspectSource$2 as r, sharedKey$1 as s, toIndexedObject$3 as t };
|