@frollo/frollo-web-ui 0.2.0 → 0.2.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.
- package/cjs/index.js +283 -90
- package/esm/add-to-unscopables-82352072.js +239 -0
- package/esm/{es.array.includes-debcb50f.js → es.array.includes-33e186c4.js} +3 -2
- package/esm/{es.function.name-e746680f.js → es.function.name-3a9c8706.js} +1 -1
- package/esm/es.number.constructor-f646730f.js +243 -0
- package/esm/{function-name-f0c1223e.js → function-name-3bda6320.js} +1 -1
- package/esm/fw-animations.js +136 -0
- package/esm/{fw-button-ab906734.js → fw-button-22301a2f.js} +1 -1
- package/esm/fw-button.js +5 -4
- package/esm/fw-card.js +1 -1
- package/esm/fw-checkbox.js +2 -2
- package/esm/fw-input.js +5 -4
- package/esm/fw-modal.js +6 -5
- package/esm/fw-navigation-menu.js +5 -4
- package/esm/fw-progress-bar.js +90 -0
- package/esm/fw-tabs.js +5 -3
- package/esm/{index-963039a3.js → index-59d76908.js} +2 -2
- package/esm/index-dd50b12a.js +326 -0
- package/esm/index.js +20 -11
- package/esm/is-forced-3323c994.js +438 -0
- package/frollo-web-ui.esm.js +325 -107
- package/index.d.ts +126 -10
- package/package.json +1 -1
- package/types/components/fw-animations/fw-email-pulse.vue.d.ts +24 -0
- package/types/components/fw-animations/fw-success-pulse.vue.d.ts +24 -0
- package/types/components/fw-animations/index.d.ts +3 -0
- package/types/components/fw-progress-bar/fw-progress-bar.vue.d.ts +52 -0
- package/types/components/fw-progress-bar/index.d.ts +2 -0
- package/types/components/fw-progress-bar/index.types.d.ts +5 -0
- package/types/components/fw-tabs/fw-tab.vue.d.ts +11 -0
- package/types/components/fw-tabs/fw-tabs.vue.d.ts +1 -1
- package/types/components/index.d.ts +2 -0
- package/types/components/index.types.d.ts +1 -0
- package/esm/add-to-unscopables-81c17489.js +0 -673
- package/esm/index-0e14da44.js +0 -561
|
@@ -1,673 +0,0 @@
|
|
|
1
|
-
import { b as functionUncurryThis, f as fails$3, r as requireObjectCoercible$1, a as descriptors, s as functionCall, u as toPropertyKey$1, m as hasOwnProperty_1, v as ie8DomDefine, q as objectDefineProperty, i as isCallable$5, x as sharedStore, g as global$3, y as shared$2, z as uid$1, k as isObject$1, A as functionName, B as defineGlobalProperty$2, j as getBuiltIn$2, l as anObject$3, C as v8PrototypeDefineBug, d as documentCreateElement$1, w as wellKnownSymbol$1 } from './function-name-f0c1223e.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$1 = Object.getOwnPropertyDescriptor;
|
|
11
|
-
|
|
12
|
-
// Nashorn ~ JDK8 bug
|
|
13
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
14
|
-
|
|
15
|
-
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
16
|
-
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
17
|
-
var f$4 = objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
18
|
-
var descriptor = getOwnPropertyDescriptor$1(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$5 = functionUncurryThis;
|
|
32
|
-
|
|
33
|
-
var toString = uncurryThis$5({}.toString);
|
|
34
|
-
var stringSlice = uncurryThis$5(''.slice);
|
|
35
|
-
|
|
36
|
-
var classofRaw = function (it) {
|
|
37
|
-
return stringSlice(toString(it), 8, -1);
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
41
|
-
var fails$2 = fails$3;
|
|
42
|
-
var classof = classofRaw;
|
|
43
|
-
|
|
44
|
-
var $Object = Object;
|
|
45
|
-
var split = uncurryThis$4(''.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$4 = function (it) {
|
|
61
|
-
return IndexedObject(requireObjectCoercible(it));
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
var DESCRIPTORS$3 = descriptors;
|
|
65
|
-
var call = functionCall;
|
|
66
|
-
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
67
|
-
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
68
|
-
var toIndexedObject$3 = toIndexedObject$4;
|
|
69
|
-
var toPropertyKey = toPropertyKey$1;
|
|
70
|
-
var hasOwn$4 = 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$3 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
79
|
-
O = toIndexedObject$3(O);
|
|
80
|
-
P = toPropertyKey(P);
|
|
81
|
-
if (IE8_DOM_DEFINE) try {
|
|
82
|
-
return $getOwnPropertyDescriptor(O, P);
|
|
83
|
-
} catch (error) { /* empty */ }
|
|
84
|
-
if (hasOwn$4(O, P)) return createPropertyDescriptor$1(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
var DESCRIPTORS$2 = descriptors;
|
|
88
|
-
var definePropertyModule$3 = objectDefineProperty;
|
|
89
|
-
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
90
|
-
|
|
91
|
-
var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) {
|
|
92
|
-
return definePropertyModule$3.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$3 = functionUncurryThis;
|
|
101
|
-
var isCallable$4 = isCallable$5;
|
|
102
|
-
var store$1 = sharedStore;
|
|
103
|
-
|
|
104
|
-
var functionToString = uncurryThis$3(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$2 = global$3;
|
|
116
|
-
var isCallable$3 = isCallable$5;
|
|
117
|
-
var inspectSource$1 = inspectSource$2;
|
|
118
|
-
|
|
119
|
-
var WeakMap$1 = global$2.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$2 = function (key) {
|
|
129
|
-
return keys[key] || (keys[key] = uid(key));
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
var hiddenKeys$4 = {};
|
|
133
|
-
|
|
134
|
-
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
135
|
-
var global$1 = global$3;
|
|
136
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
137
|
-
var isObject = isObject$1;
|
|
138
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
|
|
139
|
-
var hasOwn$3 = hasOwnProperty_1;
|
|
140
|
-
var shared = sharedStore;
|
|
141
|
-
var sharedKey$1 = sharedKey$2;
|
|
142
|
-
var hiddenKeys$3 = hiddenKeys$4;
|
|
143
|
-
|
|
144
|
-
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
145
|
-
var TypeError = global$1.TypeError;
|
|
146
|
-
var WeakMap = global$1.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$2(store.get);
|
|
165
|
-
var wmhas = uncurryThis$2(store.has);
|
|
166
|
-
var wmset = uncurryThis$2(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$1('state');
|
|
181
|
-
hiddenKeys$3[STATE] = true;
|
|
182
|
-
set = function (it, metadata) {
|
|
183
|
-
if (hasOwn$3(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
184
|
-
metadata.facade = it;
|
|
185
|
-
createNonEnumerableProperty$1(it, STATE, metadata);
|
|
186
|
-
return metadata;
|
|
187
|
-
};
|
|
188
|
-
get = function (it) {
|
|
189
|
-
return hasOwn$3(it, STATE) ? it[STATE] : {};
|
|
190
|
-
};
|
|
191
|
-
has = function (it) {
|
|
192
|
-
return hasOwn$3(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$2 = hasOwnProperty_1;
|
|
207
|
-
var DESCRIPTORS$1 = 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$1 = Object.defineProperty;
|
|
216
|
-
|
|
217
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$1(function () {
|
|
218
|
-
return defineProperty$1(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$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
230
|
-
if (DESCRIPTORS$1) defineProperty$1(value, 'name', { value: name, configurable: true });
|
|
231
|
-
else value.name = name;
|
|
232
|
-
}
|
|
233
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
|
|
234
|
-
defineProperty$1(value, 'length', { value: options.arity });
|
|
235
|
-
}
|
|
236
|
-
try {
|
|
237
|
-
if (options && hasOwn$2(options, 'constructor') && options.constructor) {
|
|
238
|
-
if (DESCRIPTORS$1) defineProperty$1(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$2(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$2 = objectDefineProperty;
|
|
258
|
-
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
259
|
-
var defineGlobalProperty$1 = defineGlobalProperty$2;
|
|
260
|
-
|
|
261
|
-
var defineBuiltIn$1 = 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$1(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$2.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$2 = toIndexedObject$4;
|
|
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$2($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$1 = functionUncurryThis;
|
|
372
|
-
var hasOwn$1 = hasOwnProperty_1;
|
|
373
|
-
var toIndexedObject$1 = toIndexedObject$4;
|
|
374
|
-
var indexOf = arrayIncludes.indexOf;
|
|
375
|
-
var hiddenKeys$2 = hiddenKeys$4;
|
|
376
|
-
|
|
377
|
-
var push = uncurryThis$1([].push);
|
|
378
|
-
|
|
379
|
-
var objectKeysInternal = function (object, names) {
|
|
380
|
-
var O = toIndexedObject$1(object);
|
|
381
|
-
var i = 0;
|
|
382
|
-
var result = [];
|
|
383
|
-
var key;
|
|
384
|
-
for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push(result, key);
|
|
385
|
-
// Don't enum bug & hidden keys
|
|
386
|
-
while (names.length > i) if (hasOwn$1(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$3 = [
|
|
394
|
-
'constructor',
|
|
395
|
-
'hasOwnProperty',
|
|
396
|
-
'isPrototypeOf',
|
|
397
|
-
'propertyIsEnumerable',
|
|
398
|
-
'toLocaleString',
|
|
399
|
-
'toString',
|
|
400
|
-
'valueOf'
|
|
401
|
-
];
|
|
402
|
-
|
|
403
|
-
var internalObjectKeys$1 = objectKeysInternal;
|
|
404
|
-
var enumBugKeys$2 = enumBugKeys$3;
|
|
405
|
-
|
|
406
|
-
var hiddenKeys$1 = enumBugKeys$2.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$2 = objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
412
|
-
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
var objectGetOwnPropertySymbols = {};
|
|
416
|
-
|
|
417
|
-
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
418
|
-
var f$1 = objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
419
|
-
|
|
420
|
-
var getBuiltIn$1 = getBuiltIn$2;
|
|
421
|
-
var uncurryThis = functionUncurryThis;
|
|
422
|
-
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
423
|
-
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
424
|
-
var anObject$2 = anObject$3;
|
|
425
|
-
|
|
426
|
-
var concat = uncurryThis([].concat);
|
|
427
|
-
|
|
428
|
-
// all object keys, includes non-enumerable and symbols
|
|
429
|
-
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
430
|
-
var keys = getOwnPropertyNamesModule.f(anObject$2(it));
|
|
431
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
432
|
-
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
433
|
-
};
|
|
434
|
-
|
|
435
|
-
var hasOwn = hasOwnProperty_1;
|
|
436
|
-
var ownKeys = ownKeys$1;
|
|
437
|
-
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
438
|
-
var definePropertyModule$1 = objectDefineProperty;
|
|
439
|
-
|
|
440
|
-
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
441
|
-
var keys = ownKeys(source);
|
|
442
|
-
var defineProperty = definePropertyModule$1.f;
|
|
443
|
-
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
444
|
-
for (var i = 0; i < keys.length; i++) {
|
|
445
|
-
var key = keys[i];
|
|
446
|
-
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
447
|
-
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
};
|
|
451
|
-
|
|
452
|
-
var fails = fails$3;
|
|
453
|
-
var isCallable = isCallable$5;
|
|
454
|
-
|
|
455
|
-
var replacement = /#|\.prototype\./;
|
|
456
|
-
|
|
457
|
-
var isForced$1 = function (feature, detection) {
|
|
458
|
-
var value = data[normalize(feature)];
|
|
459
|
-
return value == POLYFILL ? true
|
|
460
|
-
: value == NATIVE ? false
|
|
461
|
-
: isCallable(detection) ? fails(detection)
|
|
462
|
-
: !!detection;
|
|
463
|
-
};
|
|
464
|
-
|
|
465
|
-
var normalize = isForced$1.normalize = function (string) {
|
|
466
|
-
return String(string).replace(replacement, '.').toLowerCase();
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
var data = isForced$1.data = {};
|
|
470
|
-
var NATIVE = isForced$1.NATIVE = 'N';
|
|
471
|
-
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
472
|
-
|
|
473
|
-
var isForced_1 = isForced$1;
|
|
474
|
-
|
|
475
|
-
var global = global$3;
|
|
476
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
477
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$2;
|
|
478
|
-
var defineBuiltIn = defineBuiltIn$1;
|
|
479
|
-
var defineGlobalProperty = defineGlobalProperty$2;
|
|
480
|
-
var copyConstructorProperties = copyConstructorProperties$1;
|
|
481
|
-
var isForced = isForced_1;
|
|
482
|
-
|
|
483
|
-
/*
|
|
484
|
-
options.target - name of the target object
|
|
485
|
-
options.global - target is the global object
|
|
486
|
-
options.stat - export as static methods of target
|
|
487
|
-
options.proto - export as prototype methods of target
|
|
488
|
-
options.real - real prototype method for the `pure` version
|
|
489
|
-
options.forced - export even if the native feature is available
|
|
490
|
-
options.bind - bind methods to the target, required for the `pure` version
|
|
491
|
-
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
492
|
-
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
493
|
-
options.sham - add a flag to not completely full polyfills
|
|
494
|
-
options.enumerable - export as enumerable property
|
|
495
|
-
options.dontCallGetSet - prevent calling a getter on target
|
|
496
|
-
options.name - the .name of the function if it does not match the key
|
|
497
|
-
*/
|
|
498
|
-
var _export = function (options, source) {
|
|
499
|
-
var TARGET = options.target;
|
|
500
|
-
var GLOBAL = options.global;
|
|
501
|
-
var STATIC = options.stat;
|
|
502
|
-
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
503
|
-
if (GLOBAL) {
|
|
504
|
-
target = global;
|
|
505
|
-
} else if (STATIC) {
|
|
506
|
-
target = global[TARGET] || defineGlobalProperty(TARGET, {});
|
|
507
|
-
} else {
|
|
508
|
-
target = (global[TARGET] || {}).prototype;
|
|
509
|
-
}
|
|
510
|
-
if (target) for (key in source) {
|
|
511
|
-
sourceProperty = source[key];
|
|
512
|
-
if (options.dontCallGetSet) {
|
|
513
|
-
descriptor = getOwnPropertyDescriptor(target, key);
|
|
514
|
-
targetProperty = descriptor && descriptor.value;
|
|
515
|
-
} else targetProperty = target[key];
|
|
516
|
-
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
517
|
-
// contained in target
|
|
518
|
-
if (!FORCED && targetProperty !== undefined) {
|
|
519
|
-
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
520
|
-
copyConstructorProperties(sourceProperty, targetProperty);
|
|
521
|
-
}
|
|
522
|
-
// add a flag to not completely full polyfills
|
|
523
|
-
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
524
|
-
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
525
|
-
}
|
|
526
|
-
defineBuiltIn(target, key, sourceProperty, options);
|
|
527
|
-
}
|
|
528
|
-
};
|
|
529
|
-
|
|
530
|
-
var internalObjectKeys = objectKeysInternal;
|
|
531
|
-
var enumBugKeys$1 = enumBugKeys$3;
|
|
532
|
-
|
|
533
|
-
// `Object.keys` method
|
|
534
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
|
535
|
-
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
536
|
-
var objectKeys$1 = Object.keys || function keys(O) {
|
|
537
|
-
return internalObjectKeys(O, enumBugKeys$1);
|
|
538
|
-
};
|
|
539
|
-
|
|
540
|
-
var objectDefineProperties = {};
|
|
541
|
-
|
|
542
|
-
var DESCRIPTORS = descriptors;
|
|
543
|
-
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
544
|
-
var definePropertyModule = objectDefineProperty;
|
|
545
|
-
var anObject$1 = anObject$3;
|
|
546
|
-
var toIndexedObject = toIndexedObject$4;
|
|
547
|
-
var objectKeys = objectKeys$1;
|
|
548
|
-
|
|
549
|
-
// `Object.defineProperties` method
|
|
550
|
-
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
551
|
-
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
552
|
-
var f = objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
553
|
-
anObject$1(O);
|
|
554
|
-
var props = toIndexedObject(Properties);
|
|
555
|
-
var keys = objectKeys(Properties);
|
|
556
|
-
var length = keys.length;
|
|
557
|
-
var index = 0;
|
|
558
|
-
var key;
|
|
559
|
-
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
560
|
-
return O;
|
|
561
|
-
};
|
|
562
|
-
|
|
563
|
-
var getBuiltIn = getBuiltIn$2;
|
|
564
|
-
|
|
565
|
-
var html$1 = getBuiltIn('document', 'documentElement');
|
|
566
|
-
|
|
567
|
-
/* global ActiveXObject -- old IE, WSH */
|
|
568
|
-
|
|
569
|
-
var anObject = anObject$3;
|
|
570
|
-
var definePropertiesModule = objectDefineProperties;
|
|
571
|
-
var enumBugKeys = enumBugKeys$3;
|
|
572
|
-
var hiddenKeys = hiddenKeys$4;
|
|
573
|
-
var html = html$1;
|
|
574
|
-
var documentCreateElement = documentCreateElement$1;
|
|
575
|
-
var sharedKey = sharedKey$2;
|
|
576
|
-
|
|
577
|
-
var GT = '>';
|
|
578
|
-
var LT = '<';
|
|
579
|
-
var PROTOTYPE = 'prototype';
|
|
580
|
-
var SCRIPT = 'script';
|
|
581
|
-
var IE_PROTO = sharedKey('IE_PROTO');
|
|
582
|
-
|
|
583
|
-
var EmptyConstructor = function () { /* empty */ };
|
|
584
|
-
|
|
585
|
-
var scriptTag = function (content) {
|
|
586
|
-
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
587
|
-
};
|
|
588
|
-
|
|
589
|
-
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
590
|
-
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
591
|
-
activeXDocument.write(scriptTag(''));
|
|
592
|
-
activeXDocument.close();
|
|
593
|
-
var temp = activeXDocument.parentWindow.Object;
|
|
594
|
-
activeXDocument = null; // avoid memory leak
|
|
595
|
-
return temp;
|
|
596
|
-
};
|
|
597
|
-
|
|
598
|
-
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
599
|
-
var NullProtoObjectViaIFrame = function () {
|
|
600
|
-
// Thrash, waste and sodomy: IE GC bug
|
|
601
|
-
var iframe = documentCreateElement('iframe');
|
|
602
|
-
var JS = 'java' + SCRIPT + ':';
|
|
603
|
-
var iframeDocument;
|
|
604
|
-
iframe.style.display = 'none';
|
|
605
|
-
html.appendChild(iframe);
|
|
606
|
-
// https://github.com/zloirock/core-js/issues/475
|
|
607
|
-
iframe.src = String(JS);
|
|
608
|
-
iframeDocument = iframe.contentWindow.document;
|
|
609
|
-
iframeDocument.open();
|
|
610
|
-
iframeDocument.write(scriptTag('document.F=Object'));
|
|
611
|
-
iframeDocument.close();
|
|
612
|
-
return iframeDocument.F;
|
|
613
|
-
};
|
|
614
|
-
|
|
615
|
-
// Check for document.domain and active x support
|
|
616
|
-
// No need to use active x approach when document.domain is not set
|
|
617
|
-
// see https://github.com/es-shims/es5-shim/issues/150
|
|
618
|
-
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
619
|
-
// avoid IE GC bug
|
|
620
|
-
var activeXDocument;
|
|
621
|
-
var NullProtoObject = function () {
|
|
622
|
-
try {
|
|
623
|
-
activeXDocument = new ActiveXObject('htmlfile');
|
|
624
|
-
} catch (error) { /* ignore */ }
|
|
625
|
-
NullProtoObject = typeof document != 'undefined'
|
|
626
|
-
? document.domain && activeXDocument
|
|
627
|
-
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
628
|
-
: NullProtoObjectViaIFrame()
|
|
629
|
-
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
630
|
-
var length = enumBugKeys.length;
|
|
631
|
-
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
632
|
-
return NullProtoObject();
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
hiddenKeys[IE_PROTO] = true;
|
|
636
|
-
|
|
637
|
-
// `Object.create` method
|
|
638
|
-
// https://tc39.es/ecma262/#sec-object.create
|
|
639
|
-
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
640
|
-
var objectCreate = Object.create || function create(O, Properties) {
|
|
641
|
-
var result;
|
|
642
|
-
if (O !== null) {
|
|
643
|
-
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
644
|
-
result = new EmptyConstructor();
|
|
645
|
-
EmptyConstructor[PROTOTYPE] = null;
|
|
646
|
-
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
647
|
-
result[IE_PROTO] = O;
|
|
648
|
-
} else result = NullProtoObject();
|
|
649
|
-
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
650
|
-
};
|
|
651
|
-
|
|
652
|
-
var wellKnownSymbol = wellKnownSymbol$1;
|
|
653
|
-
var create = objectCreate;
|
|
654
|
-
var defineProperty = objectDefineProperty.f;
|
|
655
|
-
|
|
656
|
-
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
|
657
|
-
var ArrayPrototype = Array.prototype;
|
|
658
|
-
|
|
659
|
-
// Array.prototype[@@unscopables]
|
|
660
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
661
|
-
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
662
|
-
defineProperty(ArrayPrototype, UNSCOPABLES, {
|
|
663
|
-
configurable: true,
|
|
664
|
-
value: create(null)
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
// add a key to Array.prototype[@@unscopables]
|
|
669
|
-
var addToUnscopables = function (key) {
|
|
670
|
-
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
671
|
-
};
|
|
672
|
-
|
|
673
|
-
export { _export as _, objectPropertyIsEnumerable as a, classofRaw as b, createNonEnumerableProperty$2 as c, defineBuiltIn$1 as d, indexedObject as e, isForced_1 as f, objectGetOwnPropertyNames as g, objectGetOwnPropertyDescriptor as h, inspectSource$2 as i, addToUnscopables as j, arrayIncludes as k, lengthOfArrayLike$1 as l, objectKeys$1 as o, toIndexedObject$4 as t };
|