@danielgindi/selectbox 1.0.121 → 1.0.122
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/dist/lib.cjs.js +2634 -161
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +2 -2
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +19 -23
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +2 -2
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +8215 -5742
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +2 -2
- package/dist/lib.umd.min.js.map +1 -1
- package/lib/DropList.js +18 -22
- package/package.json +10 -10
- package/vue/SelectBox.vue +9 -5
package/dist/lib.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/selectbox 1.0.
|
|
2
|
+
* @danielgindi/selectbox 1.0.122
|
|
3
3
|
* git://github.com/danielgindi/selectbox.git
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -12,6 +12,2483 @@ var VirtualListHelper = require('@danielgindi/virtual-list-helper');
|
|
|
12
12
|
var keycodeJs = require('keycode-js');
|
|
13
13
|
var mitt = require('mitt');
|
|
14
14
|
|
|
15
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
16
|
+
|
|
17
|
+
function getDefaultExportFromCjs (x) {
|
|
18
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
22
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
26
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function getAugmentedNamespace(n) {
|
|
30
|
+
if (n.__esModule) return n;
|
|
31
|
+
var f = n.default;
|
|
32
|
+
if (typeof f == "function") {
|
|
33
|
+
var a = function a () {
|
|
34
|
+
if (this instanceof a) {
|
|
35
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
36
|
+
}
|
|
37
|
+
return f.apply(this, arguments);
|
|
38
|
+
};
|
|
39
|
+
a.prototype = f.prototype;
|
|
40
|
+
} else a = {};
|
|
41
|
+
Object.defineProperty(a, '__esModule', {value: true});
|
|
42
|
+
Object.keys(n).forEach(function (k) {
|
|
43
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
44
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () {
|
|
47
|
+
return n[k];
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
return a;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
var web_domCollections_iterator = {};
|
|
55
|
+
|
|
56
|
+
'use strict';
|
|
57
|
+
var check = function (it) {
|
|
58
|
+
return it && it.Math === Math && it;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
62
|
+
var global$f =
|
|
63
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
64
|
+
check(typeof globalThis == 'object' && globalThis) ||
|
|
65
|
+
check(typeof window == 'object' && window) ||
|
|
66
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
|
67
|
+
check(typeof self == 'object' && self) ||
|
|
68
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
69
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
70
|
+
// eslint-disable-next-line no-new-func -- fallback
|
|
71
|
+
(function () { return this; })() || Function('return this')();
|
|
72
|
+
|
|
73
|
+
var global$g = /*@__PURE__*/getDefaultExportFromCjs(global$f);
|
|
74
|
+
|
|
75
|
+
'use strict';
|
|
76
|
+
// iterable DOM collections
|
|
77
|
+
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
78
|
+
var domIterables = {
|
|
79
|
+
CSSRuleList: 0,
|
|
80
|
+
CSSStyleDeclaration: 0,
|
|
81
|
+
CSSValueList: 0,
|
|
82
|
+
ClientRectList: 0,
|
|
83
|
+
DOMRectList: 0,
|
|
84
|
+
DOMStringList: 0,
|
|
85
|
+
DOMTokenList: 1,
|
|
86
|
+
DataTransferItemList: 0,
|
|
87
|
+
FileList: 0,
|
|
88
|
+
HTMLAllCollection: 0,
|
|
89
|
+
HTMLCollection: 0,
|
|
90
|
+
HTMLFormElement: 0,
|
|
91
|
+
HTMLSelectElement: 0,
|
|
92
|
+
MediaList: 0,
|
|
93
|
+
MimeTypeArray: 0,
|
|
94
|
+
NamedNodeMap: 0,
|
|
95
|
+
NodeList: 1,
|
|
96
|
+
PaintRequestList: 0,
|
|
97
|
+
Plugin: 0,
|
|
98
|
+
PluginArray: 0,
|
|
99
|
+
SVGLengthList: 0,
|
|
100
|
+
SVGNumberList: 0,
|
|
101
|
+
SVGPathSegList: 0,
|
|
102
|
+
SVGPointList: 0,
|
|
103
|
+
SVGStringList: 0,
|
|
104
|
+
SVGTransformList: 0,
|
|
105
|
+
SourceBufferList: 0,
|
|
106
|
+
StyleSheetList: 0,
|
|
107
|
+
TextTrackCueList: 0,
|
|
108
|
+
TextTrackList: 0,
|
|
109
|
+
TouchList: 0
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
var domIterables$1 = /*@__PURE__*/getDefaultExportFromCjs(domIterables);
|
|
113
|
+
|
|
114
|
+
'use strict';
|
|
115
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
116
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
117
|
+
|
|
118
|
+
// `IsCallable` abstract operation
|
|
119
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
|
120
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
121
|
+
var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
122
|
+
return typeof argument == 'function' || argument === documentAll;
|
|
123
|
+
} : function (argument) {
|
|
124
|
+
return typeof argument == 'function';
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
var isCallable$h = /*@__PURE__*/getDefaultExportFromCjs(isCallable$g);
|
|
128
|
+
|
|
129
|
+
'use strict';
|
|
130
|
+
var isCallable$f = isCallable$g;
|
|
131
|
+
|
|
132
|
+
var isObject$7 = function (it) {
|
|
133
|
+
return typeof it == 'object' ? it !== null : isCallable$f(it);
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
var isObject$8 = /*@__PURE__*/getDefaultExportFromCjs(isObject$7);
|
|
137
|
+
|
|
138
|
+
'use strict';
|
|
139
|
+
var global$e = global$f;
|
|
140
|
+
var isObject$6 = isObject$7;
|
|
141
|
+
|
|
142
|
+
var document$1 = global$e.document;
|
|
143
|
+
// typeof document.createElement is 'object' in old IE
|
|
144
|
+
var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
|
|
145
|
+
|
|
146
|
+
var documentCreateElement$2 = function (it) {
|
|
147
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
var documentCreateElement$3 = /*@__PURE__*/getDefaultExportFromCjs(documentCreateElement$2);
|
|
151
|
+
|
|
152
|
+
'use strict';
|
|
153
|
+
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
154
|
+
var documentCreateElement$1 = documentCreateElement$2;
|
|
155
|
+
|
|
156
|
+
var classList = documentCreateElement$1('span').classList;
|
|
157
|
+
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
158
|
+
|
|
159
|
+
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
160
|
+
|
|
161
|
+
var domTokenListPrototype$1 = /*@__PURE__*/getDefaultExportFromCjs(domTokenListPrototype);
|
|
162
|
+
|
|
163
|
+
'use strict';
|
|
164
|
+
var fails$f = function (exec) {
|
|
165
|
+
try {
|
|
166
|
+
return !!exec();
|
|
167
|
+
} catch (error) {
|
|
168
|
+
return true;
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
var fails$g = /*@__PURE__*/getDefaultExportFromCjs(fails$f);
|
|
173
|
+
|
|
174
|
+
'use strict';
|
|
175
|
+
var fails$e = fails$f;
|
|
176
|
+
|
|
177
|
+
var functionBindNative = !fails$e(function () {
|
|
178
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
179
|
+
var test = (function () { /* empty */ }).bind();
|
|
180
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
181
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
var functionBindNative$1 = /*@__PURE__*/getDefaultExportFromCjs(functionBindNative);
|
|
185
|
+
|
|
186
|
+
'use strict';
|
|
187
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
188
|
+
|
|
189
|
+
var FunctionPrototype$2 = Function.prototype;
|
|
190
|
+
var call$a = FunctionPrototype$2.call;
|
|
191
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$a, call$a);
|
|
192
|
+
|
|
193
|
+
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
194
|
+
return function () {
|
|
195
|
+
return call$a.apply(fn, arguments);
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
var functionUncurryThis$1 = /*@__PURE__*/getDefaultExportFromCjs(functionUncurryThis);
|
|
200
|
+
|
|
201
|
+
'use strict';
|
|
202
|
+
var uncurryThis$d = functionUncurryThis;
|
|
203
|
+
|
|
204
|
+
var toString$6 = uncurryThis$d({}.toString);
|
|
205
|
+
var stringSlice$5 = uncurryThis$d(''.slice);
|
|
206
|
+
|
|
207
|
+
var classofRaw$1 = function (it) {
|
|
208
|
+
return stringSlice$5(toString$6(it), 8, -1);
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
var classofRaw$2 = /*@__PURE__*/getDefaultExportFromCjs(classofRaw$1);
|
|
212
|
+
|
|
213
|
+
'use strict';
|
|
214
|
+
var uncurryThis$c = functionUncurryThis;
|
|
215
|
+
var fails$d = fails$f;
|
|
216
|
+
var classof$4 = classofRaw$1;
|
|
217
|
+
|
|
218
|
+
var $Object$4 = Object;
|
|
219
|
+
var split = uncurryThis$c(''.split);
|
|
220
|
+
|
|
221
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
222
|
+
var indexedObject = fails$d(function () {
|
|
223
|
+
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
224
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
225
|
+
return !$Object$4('z').propertyIsEnumerable(0);
|
|
226
|
+
}) ? function (it) {
|
|
227
|
+
return classof$4(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
228
|
+
} : $Object$4;
|
|
229
|
+
|
|
230
|
+
var indexedObject$1 = /*@__PURE__*/getDefaultExportFromCjs(indexedObject);
|
|
231
|
+
|
|
232
|
+
'use strict';
|
|
233
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
234
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
235
|
+
var isNullOrUndefined$3 = function (it) {
|
|
236
|
+
return it === null || it === undefined;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
var isNullOrUndefined$4 = /*@__PURE__*/getDefaultExportFromCjs(isNullOrUndefined$3);
|
|
240
|
+
|
|
241
|
+
'use strict';
|
|
242
|
+
var isNullOrUndefined$2 = isNullOrUndefined$3;
|
|
243
|
+
|
|
244
|
+
var $TypeError$7 = TypeError;
|
|
245
|
+
|
|
246
|
+
// `RequireObjectCoercible` abstract operation
|
|
247
|
+
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
248
|
+
var requireObjectCoercible$4 = function (it) {
|
|
249
|
+
if (isNullOrUndefined$2(it)) throw new $TypeError$7("Can't call method on " + it);
|
|
250
|
+
return it;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
var requireObjectCoercible$5 = /*@__PURE__*/getDefaultExportFromCjs(requireObjectCoercible$4);
|
|
254
|
+
|
|
255
|
+
'use strict';
|
|
256
|
+
// toObject with fallback for non-array-like ES3 strings
|
|
257
|
+
var IndexedObject = indexedObject;
|
|
258
|
+
var requireObjectCoercible$3 = requireObjectCoercible$4;
|
|
259
|
+
|
|
260
|
+
var toIndexedObject$5 = function (it) {
|
|
261
|
+
return IndexedObject(requireObjectCoercible$3(it));
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
var toIndexedObject$6 = /*@__PURE__*/getDefaultExportFromCjs(toIndexedObject$5);
|
|
265
|
+
|
|
266
|
+
var shared$6 = {exports: {}};
|
|
267
|
+
|
|
268
|
+
'use strict';
|
|
269
|
+
var isPure = false;
|
|
270
|
+
|
|
271
|
+
var isPure$1 = /*@__PURE__*/getDefaultExportFromCjs(isPure);
|
|
272
|
+
|
|
273
|
+
'use strict';
|
|
274
|
+
var global$d = global$f;
|
|
275
|
+
|
|
276
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
277
|
+
var defineProperty$4 = Object.defineProperty;
|
|
278
|
+
|
|
279
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
280
|
+
try {
|
|
281
|
+
defineProperty$4(global$d, key, { value: value, configurable: true, writable: true });
|
|
282
|
+
} catch (error) {
|
|
283
|
+
global$d[key] = value;
|
|
284
|
+
} return value;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
var defineGlobalProperty$4 = /*@__PURE__*/getDefaultExportFromCjs(defineGlobalProperty$3);
|
|
288
|
+
|
|
289
|
+
'use strict';
|
|
290
|
+
var global$c = global$f;
|
|
291
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
292
|
+
|
|
293
|
+
var SHARED = '__core-js_shared__';
|
|
294
|
+
var store$3 = global$c[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
295
|
+
|
|
296
|
+
var sharedStore = store$3;
|
|
297
|
+
|
|
298
|
+
var sharedStore$1 = /*@__PURE__*/getDefaultExportFromCjs(sharedStore);
|
|
299
|
+
|
|
300
|
+
var shared$4 = shared$6.exports;
|
|
301
|
+
|
|
302
|
+
'use strict';
|
|
303
|
+
var IS_PURE$3 = isPure;
|
|
304
|
+
var store$2 = sharedStore;
|
|
305
|
+
|
|
306
|
+
(shared$6.exports = function (key, value) {
|
|
307
|
+
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
308
|
+
})('versions', []).push({
|
|
309
|
+
version: '3.35.1',
|
|
310
|
+
mode: IS_PURE$3 ? 'pure' : 'global',
|
|
311
|
+
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
312
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
|
|
313
|
+
source: 'https://github.com/zloirock/core-js'
|
|
314
|
+
});
|
|
315
|
+
|
|
316
|
+
var sharedExports = shared$6.exports;
|
|
317
|
+
var shared$5 = /*@__PURE__*/getDefaultExportFromCjs(sharedExports);
|
|
318
|
+
|
|
319
|
+
'use strict';
|
|
320
|
+
var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
321
|
+
|
|
322
|
+
var $Object$3 = Object;
|
|
323
|
+
|
|
324
|
+
// `ToObject` abstract operation
|
|
325
|
+
// https://tc39.es/ecma262/#sec-toobject
|
|
326
|
+
var toObject$3 = function (argument) {
|
|
327
|
+
return $Object$3(requireObjectCoercible$2(argument));
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
var toObject$4 = /*@__PURE__*/getDefaultExportFromCjs(toObject$3);
|
|
331
|
+
|
|
332
|
+
'use strict';
|
|
333
|
+
var uncurryThis$b = functionUncurryThis;
|
|
334
|
+
var toObject$2 = toObject$3;
|
|
335
|
+
|
|
336
|
+
var hasOwnProperty$1 = uncurryThis$b({}.hasOwnProperty);
|
|
337
|
+
|
|
338
|
+
// `HasOwnProperty` abstract operation
|
|
339
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
340
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
341
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
342
|
+
return hasOwnProperty$1(toObject$2(it), key);
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
var hasOwnProperty$2 = /*@__PURE__*/getDefaultExportFromCjs(hasOwnProperty_1);
|
|
346
|
+
|
|
347
|
+
'use strict';
|
|
348
|
+
var uncurryThis$a = functionUncurryThis;
|
|
349
|
+
|
|
350
|
+
var id = 0;
|
|
351
|
+
var postfix = Math.random();
|
|
352
|
+
var toString$5 = uncurryThis$a(1.0.toString);
|
|
353
|
+
|
|
354
|
+
var uid$2 = function (key) {
|
|
355
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
var uid$3 = /*@__PURE__*/getDefaultExportFromCjs(uid$2);
|
|
359
|
+
|
|
360
|
+
'use strict';
|
|
361
|
+
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
362
|
+
|
|
363
|
+
var engineUserAgent$1 = /*@__PURE__*/getDefaultExportFromCjs(engineUserAgent);
|
|
364
|
+
|
|
365
|
+
'use strict';
|
|
366
|
+
var global$b = global$f;
|
|
367
|
+
var userAgent = engineUserAgent;
|
|
368
|
+
|
|
369
|
+
var process = global$b.process;
|
|
370
|
+
var Deno = global$b.Deno;
|
|
371
|
+
var versions = process && process.versions || Deno && Deno.version;
|
|
372
|
+
var v8 = versions && versions.v8;
|
|
373
|
+
var match, version;
|
|
374
|
+
|
|
375
|
+
if (v8) {
|
|
376
|
+
match = v8.split('.');
|
|
377
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
378
|
+
// but their correct versions are not interesting for us
|
|
379
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
383
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
|
384
|
+
if (!version && userAgent) {
|
|
385
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
386
|
+
if (!match || match[1] >= 74) {
|
|
387
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
388
|
+
if (match) version = +match[1];
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
var engineV8Version = version;
|
|
393
|
+
|
|
394
|
+
var engineV8Version$1 = /*@__PURE__*/getDefaultExportFromCjs(engineV8Version);
|
|
395
|
+
|
|
396
|
+
'use strict';
|
|
397
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
398
|
+
var V8_VERSION = engineV8Version;
|
|
399
|
+
var fails$c = fails$f;
|
|
400
|
+
var global$a = global$f;
|
|
401
|
+
|
|
402
|
+
var $String$5 = global$a.String;
|
|
403
|
+
|
|
404
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
405
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(function () {
|
|
406
|
+
var symbol = Symbol('symbol detection');
|
|
407
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
|
408
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
409
|
+
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
410
|
+
// of course, fail.
|
|
411
|
+
return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
412
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
413
|
+
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
var symbolConstructorDetection$1 = /*@__PURE__*/getDefaultExportFromCjs(symbolConstructorDetection);
|
|
417
|
+
|
|
418
|
+
'use strict';
|
|
419
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
420
|
+
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
421
|
+
|
|
422
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
423
|
+
&& !Symbol.sham
|
|
424
|
+
&& typeof Symbol.iterator == 'symbol';
|
|
425
|
+
|
|
426
|
+
var useSymbolAsUid$1 = /*@__PURE__*/getDefaultExportFromCjs(useSymbolAsUid);
|
|
427
|
+
|
|
428
|
+
'use strict';
|
|
429
|
+
var global$9 = global$f;
|
|
430
|
+
var shared$3 = sharedExports;
|
|
431
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
432
|
+
var uid$1 = uid$2;
|
|
433
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
434
|
+
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
435
|
+
|
|
436
|
+
var Symbol$1 = global$9.Symbol;
|
|
437
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
|
438
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
439
|
+
|
|
440
|
+
var wellKnownSymbol$a = function (name) {
|
|
441
|
+
if (!hasOwn$8(WellKnownSymbolsStore, name)) {
|
|
442
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
|
|
443
|
+
? Symbol$1[name]
|
|
444
|
+
: createWellKnownSymbol('Symbol.' + name);
|
|
445
|
+
} return WellKnownSymbolsStore[name];
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
var wellKnownSymbol$b = /*@__PURE__*/getDefaultExportFromCjs(wellKnownSymbol$a);
|
|
449
|
+
|
|
450
|
+
'use strict';
|
|
451
|
+
var isObject$5 = isObject$7;
|
|
452
|
+
|
|
453
|
+
var $String$4 = String;
|
|
454
|
+
var $TypeError$6 = TypeError;
|
|
455
|
+
|
|
456
|
+
// `Assert: Type(argument) is Object`
|
|
457
|
+
var anObject$8 = function (argument) {
|
|
458
|
+
if (isObject$5(argument)) return argument;
|
|
459
|
+
throw new $TypeError$6($String$4(argument) + ' is not an object');
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
var anObject$9 = /*@__PURE__*/getDefaultExportFromCjs(anObject$8);
|
|
463
|
+
|
|
464
|
+
var objectDefineProperties = {};
|
|
465
|
+
|
|
466
|
+
'use strict';
|
|
467
|
+
var fails$b = fails$f;
|
|
468
|
+
|
|
469
|
+
// Detect IE8's incomplete defineProperty implementation
|
|
470
|
+
var descriptors = !fails$b(function () {
|
|
471
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
472
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
473
|
+
});
|
|
474
|
+
|
|
475
|
+
var descriptors$1 = /*@__PURE__*/getDefaultExportFromCjs(descriptors);
|
|
476
|
+
|
|
477
|
+
'use strict';
|
|
478
|
+
var DESCRIPTORS$8 = descriptors;
|
|
479
|
+
var fails$a = fails$f;
|
|
480
|
+
|
|
481
|
+
// V8 ~ Chrome 36-
|
|
482
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
483
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$a(function () {
|
|
484
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
485
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
486
|
+
value: 42,
|
|
487
|
+
writable: false
|
|
488
|
+
}).prototype !== 42;
|
|
489
|
+
});
|
|
490
|
+
|
|
491
|
+
var v8PrototypeDefineBug$1 = /*@__PURE__*/getDefaultExportFromCjs(v8PrototypeDefineBug);
|
|
492
|
+
|
|
493
|
+
var objectDefineProperty = {};
|
|
494
|
+
|
|
495
|
+
'use strict';
|
|
496
|
+
var DESCRIPTORS$7 = descriptors;
|
|
497
|
+
var fails$9 = fails$f;
|
|
498
|
+
var createElement = documentCreateElement$2;
|
|
499
|
+
|
|
500
|
+
// Thanks to IE8 for its funny defineProperty
|
|
501
|
+
var ie8DomDefine = !DESCRIPTORS$7 && !fails$9(function () {
|
|
502
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
503
|
+
return Object.defineProperty(createElement('div'), 'a', {
|
|
504
|
+
get: function () { return 7; }
|
|
505
|
+
}).a !== 7;
|
|
506
|
+
});
|
|
507
|
+
|
|
508
|
+
var ie8DomDefine$1 = /*@__PURE__*/getDefaultExportFromCjs(ie8DomDefine);
|
|
509
|
+
|
|
510
|
+
'use strict';
|
|
511
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
512
|
+
|
|
513
|
+
var call$9 = Function.prototype.call;
|
|
514
|
+
|
|
515
|
+
var functionCall = NATIVE_BIND$1 ? call$9.bind(call$9) : function () {
|
|
516
|
+
return call$9.apply(call$9, arguments);
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
var functionCall$1 = /*@__PURE__*/getDefaultExportFromCjs(functionCall);
|
|
520
|
+
|
|
521
|
+
'use strict';
|
|
522
|
+
var global$8 = global$f;
|
|
523
|
+
var isCallable$e = isCallable$g;
|
|
524
|
+
|
|
525
|
+
var aFunction = function (argument) {
|
|
526
|
+
return isCallable$e(argument) ? argument : undefined;
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
var getBuiltIn$3 = function (namespace, method) {
|
|
530
|
+
return arguments.length < 2 ? aFunction(global$8[namespace]) : global$8[namespace] && global$8[namespace][method];
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
var getBuiltIn$4 = /*@__PURE__*/getDefaultExportFromCjs(getBuiltIn$3);
|
|
534
|
+
|
|
535
|
+
'use strict';
|
|
536
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
537
|
+
|
|
538
|
+
var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
|
|
539
|
+
|
|
540
|
+
var objectIsPrototypeOf$1 = /*@__PURE__*/getDefaultExportFromCjs(objectIsPrototypeOf);
|
|
541
|
+
|
|
542
|
+
'use strict';
|
|
543
|
+
var getBuiltIn$2 = getBuiltIn$3;
|
|
544
|
+
var isCallable$d = isCallable$g;
|
|
545
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
546
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
547
|
+
|
|
548
|
+
var $Object$2 = Object;
|
|
549
|
+
|
|
550
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
|
|
551
|
+
return typeof it == 'symbol';
|
|
552
|
+
} : function (it) {
|
|
553
|
+
var $Symbol = getBuiltIn$2('Symbol');
|
|
554
|
+
return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
|
|
555
|
+
};
|
|
556
|
+
|
|
557
|
+
var isSymbol$3 = /*@__PURE__*/getDefaultExportFromCjs(isSymbol$2);
|
|
558
|
+
|
|
559
|
+
'use strict';
|
|
560
|
+
var $String$3 = String;
|
|
561
|
+
|
|
562
|
+
var tryToString$1 = function (argument) {
|
|
563
|
+
try {
|
|
564
|
+
return $String$3(argument);
|
|
565
|
+
} catch (error) {
|
|
566
|
+
return 'Object';
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
var tryToString$2 = /*@__PURE__*/getDefaultExportFromCjs(tryToString$1);
|
|
571
|
+
|
|
572
|
+
'use strict';
|
|
573
|
+
var isCallable$c = isCallable$g;
|
|
574
|
+
var tryToString = tryToString$1;
|
|
575
|
+
|
|
576
|
+
var $TypeError$5 = TypeError;
|
|
577
|
+
|
|
578
|
+
// `Assert: IsCallable(argument) is true`
|
|
579
|
+
var aCallable$2 = function (argument) {
|
|
580
|
+
if (isCallable$c(argument)) return argument;
|
|
581
|
+
throw new $TypeError$5(tryToString(argument) + ' is not a function');
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
var aCallable$3 = /*@__PURE__*/getDefaultExportFromCjs(aCallable$2);
|
|
585
|
+
|
|
586
|
+
'use strict';
|
|
587
|
+
var aCallable$1 = aCallable$2;
|
|
588
|
+
var isNullOrUndefined$1 = isNullOrUndefined$3;
|
|
589
|
+
|
|
590
|
+
// `GetMethod` abstract operation
|
|
591
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
|
592
|
+
var getMethod$2 = function (V, P) {
|
|
593
|
+
var func = V[P];
|
|
594
|
+
return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
var getMethod$3 = /*@__PURE__*/getDefaultExportFromCjs(getMethod$2);
|
|
598
|
+
|
|
599
|
+
'use strict';
|
|
600
|
+
var call$8 = functionCall;
|
|
601
|
+
var isCallable$b = isCallable$g;
|
|
602
|
+
var isObject$4 = isObject$7;
|
|
603
|
+
|
|
604
|
+
var $TypeError$4 = TypeError;
|
|
605
|
+
|
|
606
|
+
// `OrdinaryToPrimitive` abstract operation
|
|
607
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
608
|
+
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
609
|
+
var fn, val;
|
|
610
|
+
if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$4(val = call$8(fn, input))) return val;
|
|
611
|
+
if (isCallable$b(fn = input.valueOf) && !isObject$4(val = call$8(fn, input))) return val;
|
|
612
|
+
if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$4(val = call$8(fn, input))) return val;
|
|
613
|
+
throw new $TypeError$4("Can't convert object to primitive value");
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
var ordinaryToPrimitive$2 = /*@__PURE__*/getDefaultExportFromCjs(ordinaryToPrimitive$1);
|
|
617
|
+
|
|
618
|
+
'use strict';
|
|
619
|
+
var call$7 = functionCall;
|
|
620
|
+
var isObject$3 = isObject$7;
|
|
621
|
+
var isSymbol$1 = isSymbol$2;
|
|
622
|
+
var getMethod$1 = getMethod$2;
|
|
623
|
+
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
624
|
+
var wellKnownSymbol$9 = wellKnownSymbol$a;
|
|
625
|
+
|
|
626
|
+
var $TypeError$3 = TypeError;
|
|
627
|
+
var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
|
|
628
|
+
|
|
629
|
+
// `ToPrimitive` abstract operation
|
|
630
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
|
631
|
+
var toPrimitive$1 = function (input, pref) {
|
|
632
|
+
if (!isObject$3(input) || isSymbol$1(input)) return input;
|
|
633
|
+
var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
|
|
634
|
+
var result;
|
|
635
|
+
if (exoticToPrim) {
|
|
636
|
+
if (pref === undefined) pref = 'default';
|
|
637
|
+
result = call$7(exoticToPrim, input, pref);
|
|
638
|
+
if (!isObject$3(result) || isSymbol$1(result)) return result;
|
|
639
|
+
throw new $TypeError$3("Can't convert object to primitive value");
|
|
640
|
+
}
|
|
641
|
+
if (pref === undefined) pref = 'number';
|
|
642
|
+
return ordinaryToPrimitive(input, pref);
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
var toPrimitive$2 = /*@__PURE__*/getDefaultExportFromCjs(toPrimitive$1);
|
|
646
|
+
|
|
647
|
+
'use strict';
|
|
648
|
+
var toPrimitive = toPrimitive$1;
|
|
649
|
+
var isSymbol = isSymbol$2;
|
|
650
|
+
|
|
651
|
+
// `ToPropertyKey` abstract operation
|
|
652
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
|
653
|
+
var toPropertyKey$2 = function (argument) {
|
|
654
|
+
var key = toPrimitive(argument, 'string');
|
|
655
|
+
return isSymbol(key) ? key : key + '';
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
var toPropertyKey$3 = /*@__PURE__*/getDefaultExportFromCjs(toPropertyKey$2);
|
|
659
|
+
|
|
660
|
+
'use strict';
|
|
661
|
+
var DESCRIPTORS$6 = descriptors;
|
|
662
|
+
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
663
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
664
|
+
var anObject$7 = anObject$8;
|
|
665
|
+
var toPropertyKey$1 = toPropertyKey$2;
|
|
666
|
+
|
|
667
|
+
var $TypeError$2 = TypeError;
|
|
668
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
669
|
+
var $defineProperty = Object.defineProperty;
|
|
670
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
671
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
672
|
+
var ENUMERABLE = 'enumerable';
|
|
673
|
+
var CONFIGURABLE$1 = 'configurable';
|
|
674
|
+
var WRITABLE = 'writable';
|
|
675
|
+
|
|
676
|
+
// `Object.defineProperty` method
|
|
677
|
+
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
678
|
+
var f$5 = objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
679
|
+
anObject$7(O);
|
|
680
|
+
P = toPropertyKey$1(P);
|
|
681
|
+
anObject$7(Attributes);
|
|
682
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
683
|
+
var current = $getOwnPropertyDescriptor$1(O, P);
|
|
684
|
+
if (current && current[WRITABLE]) {
|
|
685
|
+
O[P] = Attributes.value;
|
|
686
|
+
Attributes = {
|
|
687
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
|
688
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
689
|
+
writable: false
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
} return $defineProperty(O, P, Attributes);
|
|
693
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
694
|
+
anObject$7(O);
|
|
695
|
+
P = toPropertyKey$1(P);
|
|
696
|
+
anObject$7(Attributes);
|
|
697
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
698
|
+
return $defineProperty(O, P, Attributes);
|
|
699
|
+
} catch (error) { /* empty */ }
|
|
700
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$2('Accessors not supported');
|
|
701
|
+
if ('value' in Attributes) O[P] = Attributes.value;
|
|
702
|
+
return O;
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
'use strict';
|
|
706
|
+
var ceil = Math.ceil;
|
|
707
|
+
var floor$1 = Math.floor;
|
|
708
|
+
|
|
709
|
+
// `Math.trunc` method
|
|
710
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
711
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
712
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
713
|
+
var n = +x;
|
|
714
|
+
return (n > 0 ? floor$1 : ceil)(n);
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
var mathTrunc$1 = /*@__PURE__*/getDefaultExportFromCjs(mathTrunc);
|
|
718
|
+
|
|
719
|
+
'use strict';
|
|
720
|
+
var trunc = mathTrunc;
|
|
721
|
+
|
|
722
|
+
// `ToIntegerOrInfinity` abstract operation
|
|
723
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
724
|
+
var toIntegerOrInfinity$4 = function (argument) {
|
|
725
|
+
var number = +argument;
|
|
726
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
727
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
var toIntegerOrInfinity$5 = /*@__PURE__*/getDefaultExportFromCjs(toIntegerOrInfinity$4);
|
|
731
|
+
|
|
732
|
+
'use strict';
|
|
733
|
+
var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
|
|
734
|
+
|
|
735
|
+
var max$1 = Math.max;
|
|
736
|
+
var min$2 = Math.min;
|
|
737
|
+
|
|
738
|
+
// Helper for a popular repeating case of the spec:
|
|
739
|
+
// Let integer be ? ToInteger(index).
|
|
740
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
741
|
+
var toAbsoluteIndex$1 = function (index, length) {
|
|
742
|
+
var integer = toIntegerOrInfinity$3(index);
|
|
743
|
+
return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
var toAbsoluteIndex$2 = /*@__PURE__*/getDefaultExportFromCjs(toAbsoluteIndex$1);
|
|
747
|
+
|
|
748
|
+
'use strict';
|
|
749
|
+
var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
|
|
750
|
+
|
|
751
|
+
var min$1 = Math.min;
|
|
752
|
+
|
|
753
|
+
// `ToLength` abstract operation
|
|
754
|
+
// https://tc39.es/ecma262/#sec-tolength
|
|
755
|
+
var toLength$2 = function (argument) {
|
|
756
|
+
var len = toIntegerOrInfinity$2(argument);
|
|
757
|
+
return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
var toLength$3 = /*@__PURE__*/getDefaultExportFromCjs(toLength$2);
|
|
761
|
+
|
|
762
|
+
'use strict';
|
|
763
|
+
var toLength$1 = toLength$2;
|
|
764
|
+
|
|
765
|
+
// `LengthOfArrayLike` abstract operation
|
|
766
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
767
|
+
var lengthOfArrayLike$1 = function (obj) {
|
|
768
|
+
return toLength$1(obj.length);
|
|
769
|
+
};
|
|
770
|
+
|
|
771
|
+
var lengthOfArrayLike$2 = /*@__PURE__*/getDefaultExportFromCjs(lengthOfArrayLike$1);
|
|
772
|
+
|
|
773
|
+
'use strict';
|
|
774
|
+
var toIndexedObject$4 = toIndexedObject$5;
|
|
775
|
+
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
776
|
+
var lengthOfArrayLike = lengthOfArrayLike$1;
|
|
777
|
+
|
|
778
|
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
779
|
+
var createMethod$1 = function (IS_INCLUDES) {
|
|
780
|
+
return function ($this, el, fromIndex) {
|
|
781
|
+
var O = toIndexedObject$4($this);
|
|
782
|
+
var length = lengthOfArrayLike(O);
|
|
783
|
+
var index = toAbsoluteIndex(fromIndex, length);
|
|
784
|
+
var value;
|
|
785
|
+
// Array#includes uses SameValueZero equality algorithm
|
|
786
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
787
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
788
|
+
value = O[index++];
|
|
789
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
790
|
+
if (value !== value) return true;
|
|
791
|
+
// Array#indexOf ignores holes, Array#includes - not
|
|
792
|
+
} else for (;length > index; index++) {
|
|
793
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
794
|
+
} return !IS_INCLUDES && -1;
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
|
|
798
|
+
var arrayIncludes = {
|
|
799
|
+
// `Array.prototype.includes` method
|
|
800
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
801
|
+
includes: createMethod$1(true),
|
|
802
|
+
// `Array.prototype.indexOf` method
|
|
803
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
804
|
+
indexOf: createMethod$1(false)
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
var arrayIncludes$1 = /*@__PURE__*/getDefaultExportFromCjs(arrayIncludes);
|
|
808
|
+
|
|
809
|
+
'use strict';
|
|
810
|
+
var hiddenKeys$4 = {};
|
|
811
|
+
|
|
812
|
+
var hiddenKeys$5 = /*@__PURE__*/getDefaultExportFromCjs(hiddenKeys$4);
|
|
813
|
+
|
|
814
|
+
'use strict';
|
|
815
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
816
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
817
|
+
var toIndexedObject$3 = toIndexedObject$5;
|
|
818
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
|
819
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
|
820
|
+
|
|
821
|
+
var push$1 = uncurryThis$8([].push);
|
|
822
|
+
|
|
823
|
+
var objectKeysInternal = function (object, names) {
|
|
824
|
+
var O = toIndexedObject$3(object);
|
|
825
|
+
var i = 0;
|
|
826
|
+
var result = [];
|
|
827
|
+
var key;
|
|
828
|
+
for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push$1(result, key);
|
|
829
|
+
// Don't enum bug & hidden keys
|
|
830
|
+
while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
|
|
831
|
+
~indexOf$1(result, key) || push$1(result, key);
|
|
832
|
+
}
|
|
833
|
+
return result;
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
var objectKeysInternal$1 = /*@__PURE__*/getDefaultExportFromCjs(objectKeysInternal);
|
|
837
|
+
|
|
838
|
+
'use strict';
|
|
839
|
+
// IE8- don't enum bug keys
|
|
840
|
+
var enumBugKeys$3 = [
|
|
841
|
+
'constructor',
|
|
842
|
+
'hasOwnProperty',
|
|
843
|
+
'isPrototypeOf',
|
|
844
|
+
'propertyIsEnumerable',
|
|
845
|
+
'toLocaleString',
|
|
846
|
+
'toString',
|
|
847
|
+
'valueOf'
|
|
848
|
+
];
|
|
849
|
+
|
|
850
|
+
var enumBugKeys$4 = /*@__PURE__*/getDefaultExportFromCjs(enumBugKeys$3);
|
|
851
|
+
|
|
852
|
+
'use strict';
|
|
853
|
+
var internalObjectKeys$1 = objectKeysInternal;
|
|
854
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
|
855
|
+
|
|
856
|
+
// `Object.keys` method
|
|
857
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
858
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
859
|
+
var objectKeys$1 = Object.keys || function keys(O) {
|
|
860
|
+
return internalObjectKeys$1(O, enumBugKeys$2);
|
|
861
|
+
};
|
|
862
|
+
|
|
863
|
+
var objectKeys$2 = /*@__PURE__*/getDefaultExportFromCjs(objectKeys$1);
|
|
864
|
+
|
|
865
|
+
'use strict';
|
|
866
|
+
var DESCRIPTORS$5 = descriptors;
|
|
867
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
868
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
869
|
+
var anObject$6 = anObject$8;
|
|
870
|
+
var toIndexedObject$2 = toIndexedObject$5;
|
|
871
|
+
var objectKeys = objectKeys$1;
|
|
872
|
+
|
|
873
|
+
// `Object.defineProperties` method
|
|
874
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
875
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
876
|
+
var f$4 = objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
877
|
+
anObject$6(O);
|
|
878
|
+
var props = toIndexedObject$2(Properties);
|
|
879
|
+
var keys = objectKeys(Properties);
|
|
880
|
+
var length = keys.length;
|
|
881
|
+
var index = 0;
|
|
882
|
+
var key;
|
|
883
|
+
while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
|
|
884
|
+
return O;
|
|
885
|
+
};
|
|
886
|
+
|
|
887
|
+
'use strict';
|
|
888
|
+
var getBuiltIn$1 = getBuiltIn$3;
|
|
889
|
+
|
|
890
|
+
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
891
|
+
|
|
892
|
+
var html$2 = /*@__PURE__*/getDefaultExportFromCjs(html$1);
|
|
893
|
+
|
|
894
|
+
'use strict';
|
|
895
|
+
var shared$2 = sharedExports;
|
|
896
|
+
var uid = uid$2;
|
|
897
|
+
|
|
898
|
+
var keys = shared$2('keys');
|
|
899
|
+
|
|
900
|
+
var sharedKey$3 = function (key) {
|
|
901
|
+
return keys[key] || (keys[key] = uid(key));
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
var sharedKey$4 = /*@__PURE__*/getDefaultExportFromCjs(sharedKey$3);
|
|
905
|
+
|
|
906
|
+
'use strict';
|
|
907
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
908
|
+
var anObject$5 = anObject$8;
|
|
909
|
+
var definePropertiesModule = objectDefineProperties;
|
|
910
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
911
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
|
912
|
+
var html = html$1;
|
|
913
|
+
var documentCreateElement = documentCreateElement$2;
|
|
914
|
+
var sharedKey$2 = sharedKey$3;
|
|
915
|
+
|
|
916
|
+
var GT = '>';
|
|
917
|
+
var LT = '<';
|
|
918
|
+
var PROTOTYPE = 'prototype';
|
|
919
|
+
var SCRIPT = 'script';
|
|
920
|
+
var IE_PROTO$1 = sharedKey$2('IE_PROTO');
|
|
921
|
+
|
|
922
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
923
|
+
|
|
924
|
+
var scriptTag = function (content) {
|
|
925
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
926
|
+
};
|
|
927
|
+
|
|
928
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
929
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
930
|
+
activeXDocument.write(scriptTag(''));
|
|
931
|
+
activeXDocument.close();
|
|
932
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
933
|
+
activeXDocument = null; // avoid memory leak
|
|
934
|
+
return temp;
|
|
935
|
+
};
|
|
936
|
+
|
|
937
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
938
|
+
var NullProtoObjectViaIFrame = function () {
|
|
939
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
940
|
+
var iframe = documentCreateElement('iframe');
|
|
941
|
+
var JS = 'java' + SCRIPT + ':';
|
|
942
|
+
var iframeDocument;
|
|
943
|
+
iframe.style.display = 'none';
|
|
944
|
+
html.appendChild(iframe);
|
|
945
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
946
|
+
iframe.src = String(JS);
|
|
947
|
+
iframeDocument = iframe.contentWindow.document;
|
|
948
|
+
iframeDocument.open();
|
|
949
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
950
|
+
iframeDocument.close();
|
|
951
|
+
return iframeDocument.F;
|
|
952
|
+
};
|
|
953
|
+
|
|
954
|
+
// Check for document.domain and active x support
|
|
955
|
+
// No need to use active x approach when document.domain is not set
|
|
956
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
957
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
958
|
+
// avoid IE GC bug
|
|
959
|
+
var activeXDocument;
|
|
960
|
+
var NullProtoObject = function () {
|
|
961
|
+
try {
|
|
962
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
963
|
+
} catch (error) { /* ignore */ }
|
|
964
|
+
NullProtoObject = typeof document != 'undefined'
|
|
965
|
+
? document.domain && activeXDocument
|
|
966
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
967
|
+
: NullProtoObjectViaIFrame()
|
|
968
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
969
|
+
var length = enumBugKeys$1.length;
|
|
970
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
|
|
971
|
+
return NullProtoObject();
|
|
972
|
+
};
|
|
973
|
+
|
|
974
|
+
hiddenKeys$2[IE_PROTO$1] = true;
|
|
975
|
+
|
|
976
|
+
// `Object.create` method
|
|
977
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
978
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
979
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
980
|
+
var result;
|
|
981
|
+
if (O !== null) {
|
|
982
|
+
EmptyConstructor[PROTOTYPE] = anObject$5(O);
|
|
983
|
+
result = new EmptyConstructor();
|
|
984
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
985
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
986
|
+
result[IE_PROTO$1] = O;
|
|
987
|
+
} else result = NullProtoObject();
|
|
988
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
989
|
+
};
|
|
990
|
+
|
|
991
|
+
var objectCreate$1 = /*@__PURE__*/getDefaultExportFromCjs(objectCreate);
|
|
992
|
+
|
|
993
|
+
'use strict';
|
|
994
|
+
var wellKnownSymbol$8 = wellKnownSymbol$a;
|
|
995
|
+
var create$3 = objectCreate;
|
|
996
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
997
|
+
|
|
998
|
+
var UNSCOPABLES = wellKnownSymbol$8('unscopables');
|
|
999
|
+
var ArrayPrototype = Array.prototype;
|
|
1000
|
+
|
|
1001
|
+
// Array.prototype[@@unscopables]
|
|
1002
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1003
|
+
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
1004
|
+
defineProperty$3(ArrayPrototype, UNSCOPABLES, {
|
|
1005
|
+
configurable: true,
|
|
1006
|
+
value: create$3(null)
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
// add a key to Array.prototype[@@unscopables]
|
|
1011
|
+
var addToUnscopables$1 = function (key) {
|
|
1012
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
var addToUnscopables$2 = /*@__PURE__*/getDefaultExportFromCjs(addToUnscopables$1);
|
|
1016
|
+
|
|
1017
|
+
'use strict';
|
|
1018
|
+
var iterators = {};
|
|
1019
|
+
|
|
1020
|
+
var iterators$1 = /*@__PURE__*/getDefaultExportFromCjs(iterators);
|
|
1021
|
+
|
|
1022
|
+
'use strict';
|
|
1023
|
+
var global$7 = global$f;
|
|
1024
|
+
var isCallable$a = isCallable$g;
|
|
1025
|
+
|
|
1026
|
+
var WeakMap$1 = global$7.WeakMap;
|
|
1027
|
+
|
|
1028
|
+
var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
1029
|
+
|
|
1030
|
+
var weakMapBasicDetection$1 = /*@__PURE__*/getDefaultExportFromCjs(weakMapBasicDetection);
|
|
1031
|
+
|
|
1032
|
+
'use strict';
|
|
1033
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
1034
|
+
return {
|
|
1035
|
+
enumerable: !(bitmap & 1),
|
|
1036
|
+
configurable: !(bitmap & 2),
|
|
1037
|
+
writable: !(bitmap & 4),
|
|
1038
|
+
value: value
|
|
1039
|
+
};
|
|
1040
|
+
};
|
|
1041
|
+
|
|
1042
|
+
var createPropertyDescriptor$4 = /*@__PURE__*/getDefaultExportFromCjs(createPropertyDescriptor$3);
|
|
1043
|
+
|
|
1044
|
+
'use strict';
|
|
1045
|
+
var DESCRIPTORS$4 = descriptors;
|
|
1046
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
1047
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
1048
|
+
|
|
1049
|
+
var createNonEnumerableProperty$5 = DESCRIPTORS$4 ? function (object, key, value) {
|
|
1050
|
+
return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
|
|
1051
|
+
} : function (object, key, value) {
|
|
1052
|
+
object[key] = value;
|
|
1053
|
+
return object;
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1056
|
+
var createNonEnumerableProperty$6 = /*@__PURE__*/getDefaultExportFromCjs(createNonEnumerableProperty$5);
|
|
1057
|
+
|
|
1058
|
+
'use strict';
|
|
1059
|
+
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
1060
|
+
var global$6 = global$f;
|
|
1061
|
+
var isObject$2 = isObject$7;
|
|
1062
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
1063
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
1064
|
+
var shared$1 = sharedStore;
|
|
1065
|
+
var sharedKey$1 = sharedKey$3;
|
|
1066
|
+
var hiddenKeys$1 = hiddenKeys$4;
|
|
1067
|
+
|
|
1068
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
1069
|
+
var TypeError$1 = global$6.TypeError;
|
|
1070
|
+
var WeakMap = global$6.WeakMap;
|
|
1071
|
+
var set, get, has;
|
|
1072
|
+
|
|
1073
|
+
var enforce = function (it) {
|
|
1074
|
+
return has(it) ? get(it) : set(it, {});
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
var getterFor = function (TYPE) {
|
|
1078
|
+
return function (it) {
|
|
1079
|
+
var state;
|
|
1080
|
+
if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
|
|
1081
|
+
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
1082
|
+
} return state;
|
|
1083
|
+
};
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
1087
|
+
var store$1 = shared$1.state || (shared$1.state = new WeakMap());
|
|
1088
|
+
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
1089
|
+
store$1.get = store$1.get;
|
|
1090
|
+
store$1.has = store$1.has;
|
|
1091
|
+
store$1.set = store$1.set;
|
|
1092
|
+
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
1093
|
+
set = function (it, metadata) {
|
|
1094
|
+
if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
1095
|
+
metadata.facade = it;
|
|
1096
|
+
store$1.set(it, metadata);
|
|
1097
|
+
return metadata;
|
|
1098
|
+
};
|
|
1099
|
+
get = function (it) {
|
|
1100
|
+
return store$1.get(it) || {};
|
|
1101
|
+
};
|
|
1102
|
+
has = function (it) {
|
|
1103
|
+
return store$1.has(it);
|
|
1104
|
+
};
|
|
1105
|
+
} else {
|
|
1106
|
+
var STATE = sharedKey$1('state');
|
|
1107
|
+
hiddenKeys$1[STATE] = true;
|
|
1108
|
+
set = function (it, metadata) {
|
|
1109
|
+
if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
1110
|
+
metadata.facade = it;
|
|
1111
|
+
createNonEnumerableProperty$4(it, STATE, metadata);
|
|
1112
|
+
return metadata;
|
|
1113
|
+
};
|
|
1114
|
+
get = function (it) {
|
|
1115
|
+
return hasOwn$6(it, STATE) ? it[STATE] : {};
|
|
1116
|
+
};
|
|
1117
|
+
has = function (it) {
|
|
1118
|
+
return hasOwn$6(it, STATE);
|
|
1119
|
+
};
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
var internalState = {
|
|
1123
|
+
set: set,
|
|
1124
|
+
get: get,
|
|
1125
|
+
has: has,
|
|
1126
|
+
enforce: enforce,
|
|
1127
|
+
getterFor: getterFor
|
|
1128
|
+
};
|
|
1129
|
+
|
|
1130
|
+
var internalState$1 = /*@__PURE__*/getDefaultExportFromCjs(internalState);
|
|
1131
|
+
|
|
1132
|
+
var objectGetOwnPropertyDescriptor = {};
|
|
1133
|
+
|
|
1134
|
+
var objectPropertyIsEnumerable = {};
|
|
1135
|
+
|
|
1136
|
+
'use strict';
|
|
1137
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
1138
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1139
|
+
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
1140
|
+
|
|
1141
|
+
// Nashorn ~ JDK8 bug
|
|
1142
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
1143
|
+
|
|
1144
|
+
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
1145
|
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
1146
|
+
var f$3 = objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
1147
|
+
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
1148
|
+
return !!descriptor && descriptor.enumerable;
|
|
1149
|
+
} : $propertyIsEnumerable;
|
|
1150
|
+
|
|
1151
|
+
'use strict';
|
|
1152
|
+
var DESCRIPTORS$3 = descriptors;
|
|
1153
|
+
var call$6 = functionCall;
|
|
1154
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1155
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
1156
|
+
var toIndexedObject$1 = toIndexedObject$5;
|
|
1157
|
+
var toPropertyKey = toPropertyKey$2;
|
|
1158
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
1159
|
+
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
1160
|
+
|
|
1161
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1162
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1163
|
+
|
|
1164
|
+
// `Object.getOwnPropertyDescriptor` method
|
|
1165
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
1166
|
+
var f$2 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
1167
|
+
O = toIndexedObject$1(O);
|
|
1168
|
+
P = toPropertyKey(P);
|
|
1169
|
+
if (IE8_DOM_DEFINE) try {
|
|
1170
|
+
return $getOwnPropertyDescriptor(O, P);
|
|
1171
|
+
} catch (error) { /* empty */ }
|
|
1172
|
+
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$6(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
1173
|
+
};
|
|
1174
|
+
|
|
1175
|
+
var makeBuiltIn$3 = {exports: {}};
|
|
1176
|
+
|
|
1177
|
+
'use strict';
|
|
1178
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1179
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
1180
|
+
|
|
1181
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
1182
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1183
|
+
var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
|
|
1184
|
+
|
|
1185
|
+
var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
|
|
1186
|
+
// additional protection from minified / mangled / dropped function names
|
|
1187
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
1188
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
1189
|
+
|
|
1190
|
+
var functionName = {
|
|
1191
|
+
EXISTS: EXISTS,
|
|
1192
|
+
PROPER: PROPER,
|
|
1193
|
+
CONFIGURABLE: CONFIGURABLE
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
var functionName$1 = /*@__PURE__*/getDefaultExportFromCjs(functionName);
|
|
1197
|
+
|
|
1198
|
+
'use strict';
|
|
1199
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1200
|
+
var isCallable$9 = isCallable$g;
|
|
1201
|
+
var store = sharedStore;
|
|
1202
|
+
|
|
1203
|
+
var functionToString = uncurryThis$7(Function.toString);
|
|
1204
|
+
|
|
1205
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
1206
|
+
if (!isCallable$9(store.inspectSource)) {
|
|
1207
|
+
store.inspectSource = function (it) {
|
|
1208
|
+
return functionToString(it);
|
|
1209
|
+
};
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
var inspectSource$1 = store.inspectSource;
|
|
1213
|
+
|
|
1214
|
+
var inspectSource$2 = /*@__PURE__*/getDefaultExportFromCjs(inspectSource$1);
|
|
1215
|
+
|
|
1216
|
+
var makeBuiltIn_1 = makeBuiltIn$3.exports;
|
|
1217
|
+
|
|
1218
|
+
'use strict';
|
|
1219
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1220
|
+
var fails$8 = fails$f;
|
|
1221
|
+
var isCallable$8 = isCallable$g;
|
|
1222
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1223
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1224
|
+
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
1225
|
+
var inspectSource = inspectSource$1;
|
|
1226
|
+
var InternalStateModule$1 = internalState;
|
|
1227
|
+
|
|
1228
|
+
var enforceInternalState = InternalStateModule$1.enforce;
|
|
1229
|
+
var getInternalState$2 = InternalStateModule$1.get;
|
|
1230
|
+
var $String$2 = String;
|
|
1231
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1232
|
+
var defineProperty$2 = Object.defineProperty;
|
|
1233
|
+
var stringSlice$4 = uncurryThis$6(''.slice);
|
|
1234
|
+
var replace$2 = uncurryThis$6(''.replace);
|
|
1235
|
+
var join = uncurryThis$6([].join);
|
|
1236
|
+
|
|
1237
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$8(function () {
|
|
1238
|
+
return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
1239
|
+
});
|
|
1240
|
+
|
|
1241
|
+
var TEMPLATE = String(String).split('String');
|
|
1242
|
+
|
|
1243
|
+
var makeBuiltIn$1 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
1244
|
+
if (stringSlice$4($String$2(name), 0, 7) === 'Symbol(') {
|
|
1245
|
+
name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
1246
|
+
}
|
|
1247
|
+
if (options && options.getter) name = 'get ' + name;
|
|
1248
|
+
if (options && options.setter) name = 'set ' + name;
|
|
1249
|
+
if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
1250
|
+
if (DESCRIPTORS$1) defineProperty$2(value, 'name', { value: name, configurable: true });
|
|
1251
|
+
else value.name = name;
|
|
1252
|
+
}
|
|
1253
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
|
|
1254
|
+
defineProperty$2(value, 'length', { value: options.arity });
|
|
1255
|
+
}
|
|
1256
|
+
try {
|
|
1257
|
+
if (options && hasOwn$3(options, 'constructor') && options.constructor) {
|
|
1258
|
+
if (DESCRIPTORS$1) defineProperty$2(value, 'prototype', { writable: false });
|
|
1259
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
1260
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
1261
|
+
} catch (error) { /* empty */ }
|
|
1262
|
+
var state = enforceInternalState(value);
|
|
1263
|
+
if (!hasOwn$3(state, 'source')) {
|
|
1264
|
+
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
1265
|
+
} return value;
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
1269
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
1270
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
1271
|
+
return isCallable$8(this) && getInternalState$2(this).source || inspectSource(this);
|
|
1272
|
+
}, 'toString');
|
|
1273
|
+
|
|
1274
|
+
var makeBuiltInExports = makeBuiltIn$3.exports;
|
|
1275
|
+
var makeBuiltIn$2 = /*@__PURE__*/getDefaultExportFromCjs(makeBuiltInExports);
|
|
1276
|
+
|
|
1277
|
+
'use strict';
|
|
1278
|
+
var isCallable$7 = isCallable$g;
|
|
1279
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
1280
|
+
var makeBuiltIn = makeBuiltInExports;
|
|
1281
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
1282
|
+
|
|
1283
|
+
var defineBuiltIn$4 = function (O, key, value, options) {
|
|
1284
|
+
if (!options) options = {};
|
|
1285
|
+
var simple = options.enumerable;
|
|
1286
|
+
var name = options.name !== undefined ? options.name : key;
|
|
1287
|
+
if (isCallable$7(value)) makeBuiltIn(value, name, options);
|
|
1288
|
+
if (options.global) {
|
|
1289
|
+
if (simple) O[key] = value;
|
|
1290
|
+
else defineGlobalProperty$1(key, value);
|
|
1291
|
+
} else {
|
|
1292
|
+
try {
|
|
1293
|
+
if (!options.unsafe) delete O[key];
|
|
1294
|
+
else if (O[key]) simple = true;
|
|
1295
|
+
} catch (error) { /* empty */ }
|
|
1296
|
+
if (simple) O[key] = value;
|
|
1297
|
+
else definePropertyModule$1.f(O, key, {
|
|
1298
|
+
value: value,
|
|
1299
|
+
enumerable: false,
|
|
1300
|
+
configurable: !options.nonConfigurable,
|
|
1301
|
+
writable: !options.nonWritable
|
|
1302
|
+
});
|
|
1303
|
+
} return O;
|
|
1304
|
+
};
|
|
1305
|
+
|
|
1306
|
+
var defineBuiltIn$5 = /*@__PURE__*/getDefaultExportFromCjs(defineBuiltIn$4);
|
|
1307
|
+
|
|
1308
|
+
var objectGetOwnPropertyNames = {};
|
|
1309
|
+
|
|
1310
|
+
'use strict';
|
|
1311
|
+
var internalObjectKeys = objectKeysInternal;
|
|
1312
|
+
var enumBugKeys = enumBugKeys$3;
|
|
1313
|
+
|
|
1314
|
+
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
1315
|
+
|
|
1316
|
+
// `Object.getOwnPropertyNames` method
|
|
1317
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
1318
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
1319
|
+
var f$1 = objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
1320
|
+
return internalObjectKeys(O, hiddenKeys);
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1323
|
+
var objectGetOwnPropertySymbols = {};
|
|
1324
|
+
|
|
1325
|
+
'use strict';
|
|
1326
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
1327
|
+
var f = objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1328
|
+
|
|
1329
|
+
'use strict';
|
|
1330
|
+
var getBuiltIn = getBuiltIn$3;
|
|
1331
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1332
|
+
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1333
|
+
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1334
|
+
var anObject$4 = anObject$8;
|
|
1335
|
+
|
|
1336
|
+
var concat$1 = uncurryThis$5([].concat);
|
|
1337
|
+
|
|
1338
|
+
// all object keys, includes non-enumerable and symbols
|
|
1339
|
+
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1340
|
+
var keys = getOwnPropertyNamesModule.f(anObject$4(it));
|
|
1341
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1342
|
+
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
1343
|
+
};
|
|
1344
|
+
|
|
1345
|
+
var ownKeys$2 = /*@__PURE__*/getDefaultExportFromCjs(ownKeys$1);
|
|
1346
|
+
|
|
1347
|
+
'use strict';
|
|
1348
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1349
|
+
var ownKeys = ownKeys$1;
|
|
1350
|
+
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1351
|
+
var definePropertyModule = objectDefineProperty;
|
|
1352
|
+
|
|
1353
|
+
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
1354
|
+
var keys = ownKeys(source);
|
|
1355
|
+
var defineProperty = definePropertyModule.f;
|
|
1356
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1357
|
+
for (var i = 0; i < keys.length; i++) {
|
|
1358
|
+
var key = keys[i];
|
|
1359
|
+
if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
|
|
1360
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
var copyConstructorProperties$2 = /*@__PURE__*/getDefaultExportFromCjs(copyConstructorProperties$1);
|
|
1366
|
+
|
|
1367
|
+
'use strict';
|
|
1368
|
+
var fails$7 = fails$f;
|
|
1369
|
+
var isCallable$6 = isCallable$g;
|
|
1370
|
+
|
|
1371
|
+
var replacement = /#|\.prototype\./;
|
|
1372
|
+
|
|
1373
|
+
var isForced$1 = function (feature, detection) {
|
|
1374
|
+
var value = data[normalize(feature)];
|
|
1375
|
+
return value === POLYFILL ? true
|
|
1376
|
+
: value === NATIVE ? false
|
|
1377
|
+
: isCallable$6(detection) ? fails$7(detection)
|
|
1378
|
+
: !!detection;
|
|
1379
|
+
};
|
|
1380
|
+
|
|
1381
|
+
var normalize = isForced$1.normalize = function (string) {
|
|
1382
|
+
return String(string).replace(replacement, '.').toLowerCase();
|
|
1383
|
+
};
|
|
1384
|
+
|
|
1385
|
+
var data = isForced$1.data = {};
|
|
1386
|
+
var NATIVE = isForced$1.NATIVE = 'N';
|
|
1387
|
+
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
1388
|
+
|
|
1389
|
+
var isForced_1 = isForced$1;
|
|
1390
|
+
|
|
1391
|
+
var isForced$2 = /*@__PURE__*/getDefaultExportFromCjs(isForced_1);
|
|
1392
|
+
|
|
1393
|
+
'use strict';
|
|
1394
|
+
var global$5 = global$f;
|
|
1395
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1396
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
1397
|
+
var defineBuiltIn$3 = defineBuiltIn$4;
|
|
1398
|
+
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1399
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
|
1400
|
+
var isForced = isForced_1;
|
|
1401
|
+
|
|
1402
|
+
/*
|
|
1403
|
+
options.target - name of the target object
|
|
1404
|
+
options.global - target is the global object
|
|
1405
|
+
options.stat - export as static methods of target
|
|
1406
|
+
options.proto - export as prototype methods of target
|
|
1407
|
+
options.real - real prototype method for the `pure` version
|
|
1408
|
+
options.forced - export even if the native feature is available
|
|
1409
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
1410
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
1411
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
1412
|
+
options.sham - add a flag to not completely full polyfills
|
|
1413
|
+
options.enumerable - export as enumerable property
|
|
1414
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
1415
|
+
options.name - the .name of the function if it does not match the key
|
|
1416
|
+
*/
|
|
1417
|
+
var _export = function (options, source) {
|
|
1418
|
+
var TARGET = options.target;
|
|
1419
|
+
var GLOBAL = options.global;
|
|
1420
|
+
var STATIC = options.stat;
|
|
1421
|
+
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1422
|
+
if (GLOBAL) {
|
|
1423
|
+
target = global$5;
|
|
1424
|
+
} else if (STATIC) {
|
|
1425
|
+
target = global$5[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1426
|
+
} else {
|
|
1427
|
+
target = global$5[TARGET] && global$5[TARGET].prototype;
|
|
1428
|
+
}
|
|
1429
|
+
if (target) for (key in source) {
|
|
1430
|
+
sourceProperty = source[key];
|
|
1431
|
+
if (options.dontCallGetSet) {
|
|
1432
|
+
descriptor = getOwnPropertyDescriptor(target, key);
|
|
1433
|
+
targetProperty = descriptor && descriptor.value;
|
|
1434
|
+
} else targetProperty = target[key];
|
|
1435
|
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1436
|
+
// contained in target
|
|
1437
|
+
if (!FORCED && targetProperty !== undefined) {
|
|
1438
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
1439
|
+
copyConstructorProperties(sourceProperty, targetProperty);
|
|
1440
|
+
}
|
|
1441
|
+
// add a flag to not completely full polyfills
|
|
1442
|
+
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1443
|
+
createNonEnumerableProperty$3(sourceProperty, 'sham', true);
|
|
1444
|
+
}
|
|
1445
|
+
defineBuiltIn$3(target, key, sourceProperty, options);
|
|
1446
|
+
}
|
|
1447
|
+
};
|
|
1448
|
+
|
|
1449
|
+
var _export$1 = /*@__PURE__*/getDefaultExportFromCjs(_export);
|
|
1450
|
+
|
|
1451
|
+
'use strict';
|
|
1452
|
+
var fails$6 = fails$f;
|
|
1453
|
+
|
|
1454
|
+
var correctPrototypeGetter = !fails$6(function () {
|
|
1455
|
+
function F() { /* empty */ }
|
|
1456
|
+
F.prototype.constructor = null;
|
|
1457
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1458
|
+
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1459
|
+
});
|
|
1460
|
+
|
|
1461
|
+
var correctPrototypeGetter$1 = /*@__PURE__*/getDefaultExportFromCjs(correctPrototypeGetter);
|
|
1462
|
+
|
|
1463
|
+
'use strict';
|
|
1464
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1465
|
+
var isCallable$5 = isCallable$g;
|
|
1466
|
+
var toObject$1 = toObject$3;
|
|
1467
|
+
var sharedKey = sharedKey$3;
|
|
1468
|
+
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1469
|
+
|
|
1470
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1471
|
+
var $Object$1 = Object;
|
|
1472
|
+
var ObjectPrototype = $Object$1.prototype;
|
|
1473
|
+
|
|
1474
|
+
// `Object.getPrototypeOf` method
|
|
1475
|
+
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1476
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1477
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1478
|
+
var object = toObject$1(O);
|
|
1479
|
+
if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
|
|
1480
|
+
var constructor = object.constructor;
|
|
1481
|
+
if (isCallable$5(constructor) && object instanceof constructor) {
|
|
1482
|
+
return constructor.prototype;
|
|
1483
|
+
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1484
|
+
};
|
|
1485
|
+
|
|
1486
|
+
var objectGetPrototypeOf$1 = /*@__PURE__*/getDefaultExportFromCjs(objectGetPrototypeOf);
|
|
1487
|
+
|
|
1488
|
+
'use strict';
|
|
1489
|
+
var fails$5 = fails$f;
|
|
1490
|
+
var isCallable$4 = isCallable$g;
|
|
1491
|
+
var isObject$1 = isObject$7;
|
|
1492
|
+
var create$2 = objectCreate;
|
|
1493
|
+
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1494
|
+
var defineBuiltIn$2 = defineBuiltIn$4;
|
|
1495
|
+
var wellKnownSymbol$7 = wellKnownSymbol$a;
|
|
1496
|
+
var IS_PURE$2 = isPure;
|
|
1497
|
+
|
|
1498
|
+
var ITERATOR$2 = wellKnownSymbol$7('iterator');
|
|
1499
|
+
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1500
|
+
|
|
1501
|
+
// `%IteratorPrototype%` object
|
|
1502
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
1503
|
+
var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1504
|
+
|
|
1505
|
+
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
1506
|
+
if ([].keys) {
|
|
1507
|
+
arrayIterator = [].keys();
|
|
1508
|
+
// Safari 8 has buggy iterators w/o `next`
|
|
1509
|
+
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
1510
|
+
else {
|
|
1511
|
+
PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
|
|
1512
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$2) || fails$5(function () {
|
|
1517
|
+
var test = {};
|
|
1518
|
+
// FF44- legacy iterators case
|
|
1519
|
+
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
1520
|
+
});
|
|
1521
|
+
|
|
1522
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
1523
|
+
else if (IS_PURE$2) IteratorPrototype$2 = create$2(IteratorPrototype$2);
|
|
1524
|
+
|
|
1525
|
+
// `%IteratorPrototype%[@@iterator]()` method
|
|
1526
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1527
|
+
if (!isCallable$4(IteratorPrototype$2[ITERATOR$2])) {
|
|
1528
|
+
defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1529
|
+
return this;
|
|
1530
|
+
});
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
var iteratorsCore = {
|
|
1534
|
+
IteratorPrototype: IteratorPrototype$2,
|
|
1535
|
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1536
|
+
};
|
|
1537
|
+
|
|
1538
|
+
var iteratorsCore$1 = /*@__PURE__*/getDefaultExportFromCjs(iteratorsCore);
|
|
1539
|
+
|
|
1540
|
+
'use strict';
|
|
1541
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
1542
|
+
var hasOwn = hasOwnProperty_1;
|
|
1543
|
+
var wellKnownSymbol$6 = wellKnownSymbol$a;
|
|
1544
|
+
|
|
1545
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$6('toStringTag');
|
|
1546
|
+
|
|
1547
|
+
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1548
|
+
if (target && !STATIC) target = target.prototype;
|
|
1549
|
+
if (target && !hasOwn(target, TO_STRING_TAG$2)) {
|
|
1550
|
+
defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
1551
|
+
}
|
|
1552
|
+
};
|
|
1553
|
+
|
|
1554
|
+
var setToStringTag$4 = /*@__PURE__*/getDefaultExportFromCjs(setToStringTag$3);
|
|
1555
|
+
|
|
1556
|
+
'use strict';
|
|
1557
|
+
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1558
|
+
var create$1 = objectCreate;
|
|
1559
|
+
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1560
|
+
var setToStringTag$2 = setToStringTag$3;
|
|
1561
|
+
var Iterators$2 = iterators;
|
|
1562
|
+
|
|
1563
|
+
var returnThis$1 = function () { return this; };
|
|
1564
|
+
|
|
1565
|
+
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1566
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1567
|
+
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1568
|
+
setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false, true);
|
|
1569
|
+
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
1570
|
+
return IteratorConstructor;
|
|
1571
|
+
};
|
|
1572
|
+
|
|
1573
|
+
var iteratorCreateConstructor$1 = /*@__PURE__*/getDefaultExportFromCjs(iteratorCreateConstructor);
|
|
1574
|
+
|
|
1575
|
+
'use strict';
|
|
1576
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1577
|
+
var aCallable = aCallable$2;
|
|
1578
|
+
|
|
1579
|
+
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1580
|
+
try {
|
|
1581
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1582
|
+
return uncurryThis$4(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1583
|
+
} catch (error) { /* empty */ }
|
|
1584
|
+
};
|
|
1585
|
+
|
|
1586
|
+
var functionUncurryThisAccessor$1 = /*@__PURE__*/getDefaultExportFromCjs(functionUncurryThisAccessor);
|
|
1587
|
+
|
|
1588
|
+
'use strict';
|
|
1589
|
+
var isObject = isObject$7;
|
|
1590
|
+
|
|
1591
|
+
var isPossiblePrototype$1 = function (argument) {
|
|
1592
|
+
return isObject(argument) || argument === null;
|
|
1593
|
+
};
|
|
1594
|
+
|
|
1595
|
+
var isPossiblePrototype$2 = /*@__PURE__*/getDefaultExportFromCjs(isPossiblePrototype$1);
|
|
1596
|
+
|
|
1597
|
+
'use strict';
|
|
1598
|
+
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1599
|
+
|
|
1600
|
+
var $String$1 = String;
|
|
1601
|
+
var $TypeError$1 = TypeError;
|
|
1602
|
+
|
|
1603
|
+
var aPossiblePrototype$1 = function (argument) {
|
|
1604
|
+
if (isPossiblePrototype(argument)) return argument;
|
|
1605
|
+
throw new $TypeError$1("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1606
|
+
};
|
|
1607
|
+
|
|
1608
|
+
var aPossiblePrototype$2 = /*@__PURE__*/getDefaultExportFromCjs(aPossiblePrototype$1);
|
|
1609
|
+
|
|
1610
|
+
'use strict';
|
|
1611
|
+
/* eslint-disable no-proto -- safe */
|
|
1612
|
+
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1613
|
+
var anObject$3 = anObject$8;
|
|
1614
|
+
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1615
|
+
|
|
1616
|
+
// `Object.setPrototypeOf` method
|
|
1617
|
+
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
1618
|
+
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
1619
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
1620
|
+
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
1621
|
+
var CORRECT_SETTER = false;
|
|
1622
|
+
var test = {};
|
|
1623
|
+
var setter;
|
|
1624
|
+
try {
|
|
1625
|
+
setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
|
|
1626
|
+
setter(test, []);
|
|
1627
|
+
CORRECT_SETTER = test instanceof Array;
|
|
1628
|
+
} catch (error) { /* empty */ }
|
|
1629
|
+
return function setPrototypeOf(O, proto) {
|
|
1630
|
+
anObject$3(O);
|
|
1631
|
+
aPossiblePrototype(proto);
|
|
1632
|
+
if (CORRECT_SETTER) setter(O, proto);
|
|
1633
|
+
else O.__proto__ = proto;
|
|
1634
|
+
return O;
|
|
1635
|
+
};
|
|
1636
|
+
}() : undefined);
|
|
1637
|
+
|
|
1638
|
+
var objectSetPrototypeOf$1 = /*@__PURE__*/getDefaultExportFromCjs(objectSetPrototypeOf);
|
|
1639
|
+
|
|
1640
|
+
'use strict';
|
|
1641
|
+
var $$1 = _export;
|
|
1642
|
+
var call$5 = functionCall;
|
|
1643
|
+
var IS_PURE$1 = isPure;
|
|
1644
|
+
var FunctionName = functionName;
|
|
1645
|
+
var isCallable$3 = isCallable$g;
|
|
1646
|
+
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1647
|
+
var getPrototypeOf = objectGetPrototypeOf;
|
|
1648
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
|
1649
|
+
var setToStringTag$1 = setToStringTag$3;
|
|
1650
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
1651
|
+
var defineBuiltIn$1 = defineBuiltIn$4;
|
|
1652
|
+
var wellKnownSymbol$5 = wellKnownSymbol$a;
|
|
1653
|
+
var Iterators$1 = iterators;
|
|
1654
|
+
var IteratorsCore = iteratorsCore;
|
|
1655
|
+
|
|
1656
|
+
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
1657
|
+
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1658
|
+
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1659
|
+
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1660
|
+
var ITERATOR$1 = wellKnownSymbol$5('iterator');
|
|
1661
|
+
var KEYS = 'keys';
|
|
1662
|
+
var VALUES = 'values';
|
|
1663
|
+
var ENTRIES = 'entries';
|
|
1664
|
+
|
|
1665
|
+
var returnThis = function () { return this; };
|
|
1666
|
+
|
|
1667
|
+
var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
1668
|
+
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
1669
|
+
|
|
1670
|
+
var getIterationMethod = function (KIND) {
|
|
1671
|
+
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
1672
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
1673
|
+
|
|
1674
|
+
switch (KIND) {
|
|
1675
|
+
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
1676
|
+
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
1677
|
+
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
return function () { return new IteratorConstructor(this); };
|
|
1681
|
+
};
|
|
1682
|
+
|
|
1683
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1684
|
+
var INCORRECT_VALUES_NAME = false;
|
|
1685
|
+
var IterablePrototype = Iterable.prototype;
|
|
1686
|
+
var nativeIterator = IterablePrototype[ITERATOR$1]
|
|
1687
|
+
|| IterablePrototype['@@iterator']
|
|
1688
|
+
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
1689
|
+
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
1690
|
+
var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
1691
|
+
var CurrentIteratorPrototype, methods, KEY;
|
|
1692
|
+
|
|
1693
|
+
// fix native
|
|
1694
|
+
if (anyNativeIterator) {
|
|
1695
|
+
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1696
|
+
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1697
|
+
if (!IS_PURE$1 && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1698
|
+
if (setPrototypeOf) {
|
|
1699
|
+
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1700
|
+
} else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1701
|
+
defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
// Set @@toStringTag to native iterators
|
|
1705
|
+
setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
|
|
1706
|
+
if (IS_PURE$1) Iterators$1[TO_STRING_TAG] = returnThis;
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1711
|
+
if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1712
|
+
if (!IS_PURE$1 && CONFIGURABLE_FUNCTION_NAME) {
|
|
1713
|
+
createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
|
|
1714
|
+
} else {
|
|
1715
|
+
INCORRECT_VALUES_NAME = true;
|
|
1716
|
+
defaultIterator = function values() { return call$5(nativeIterator, this); };
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
// export additional methods
|
|
1721
|
+
if (DEFAULT) {
|
|
1722
|
+
methods = {
|
|
1723
|
+
values: getIterationMethod(VALUES),
|
|
1724
|
+
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
1725
|
+
entries: getIterationMethod(ENTRIES)
|
|
1726
|
+
};
|
|
1727
|
+
if (FORCED) for (KEY in methods) {
|
|
1728
|
+
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1729
|
+
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
1730
|
+
}
|
|
1731
|
+
} else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
// define iterator
|
|
1735
|
+
if ((!IS_PURE$1 || FORCED) && IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1736
|
+
defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1737
|
+
}
|
|
1738
|
+
Iterators$1[NAME] = defaultIterator;
|
|
1739
|
+
|
|
1740
|
+
return methods;
|
|
1741
|
+
};
|
|
1742
|
+
|
|
1743
|
+
var iteratorDefine$1 = /*@__PURE__*/getDefaultExportFromCjs(iteratorDefine);
|
|
1744
|
+
|
|
1745
|
+
'use strict';
|
|
1746
|
+
// `CreateIterResultObject` abstract operation
|
|
1747
|
+
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
1748
|
+
var createIterResultObject$1 = function (value, done) {
|
|
1749
|
+
return { value: value, done: done };
|
|
1750
|
+
};
|
|
1751
|
+
|
|
1752
|
+
var createIterResultObject$2 = /*@__PURE__*/getDefaultExportFromCjs(createIterResultObject$1);
|
|
1753
|
+
|
|
1754
|
+
'use strict';
|
|
1755
|
+
var toIndexedObject = toIndexedObject$5;
|
|
1756
|
+
var addToUnscopables = addToUnscopables$1;
|
|
1757
|
+
var Iterators = iterators;
|
|
1758
|
+
var InternalStateModule = internalState;
|
|
1759
|
+
var defineProperty = objectDefineProperty.f;
|
|
1760
|
+
var defineIterator = iteratorDefine;
|
|
1761
|
+
var createIterResultObject = createIterResultObject$1;
|
|
1762
|
+
var IS_PURE = isPure;
|
|
1763
|
+
var DESCRIPTORS = descriptors;
|
|
1764
|
+
|
|
1765
|
+
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1766
|
+
var setInternalState = InternalStateModule.set;
|
|
1767
|
+
var getInternalState$1 = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
|
1768
|
+
|
|
1769
|
+
// `Array.prototype.entries` method
|
|
1770
|
+
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
1771
|
+
// `Array.prototype.keys` method
|
|
1772
|
+
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
|
1773
|
+
// `Array.prototype.values` method
|
|
1774
|
+
// https://tc39.es/ecma262/#sec-array.prototype.values
|
|
1775
|
+
// `Array.prototype[@@iterator]` method
|
|
1776
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
|
1777
|
+
// `CreateArrayIterator` internal method
|
|
1778
|
+
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
1779
|
+
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
1780
|
+
setInternalState(this, {
|
|
1781
|
+
type: ARRAY_ITERATOR,
|
|
1782
|
+
target: toIndexedObject(iterated), // target
|
|
1783
|
+
index: 0, // next index
|
|
1784
|
+
kind: kind // kind
|
|
1785
|
+
});
|
|
1786
|
+
// `%ArrayIteratorPrototype%.next` method
|
|
1787
|
+
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1788
|
+
}, function () {
|
|
1789
|
+
var state = getInternalState$1(this);
|
|
1790
|
+
var target = state.target;
|
|
1791
|
+
var index = state.index++;
|
|
1792
|
+
if (!target || index >= target.length) {
|
|
1793
|
+
state.target = undefined;
|
|
1794
|
+
return createIterResultObject(undefined, true);
|
|
1795
|
+
}
|
|
1796
|
+
switch (state.kind) {
|
|
1797
|
+
case 'keys': return createIterResultObject(index, false);
|
|
1798
|
+
case 'values': return createIterResultObject(target[index], false);
|
|
1799
|
+
} return createIterResultObject([index, target[index]], false);
|
|
1800
|
+
}, 'values');
|
|
1801
|
+
|
|
1802
|
+
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
1803
|
+
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
1804
|
+
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
1805
|
+
var values = Iterators.Arguments = Iterators.Array;
|
|
1806
|
+
|
|
1807
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1808
|
+
addToUnscopables('keys');
|
|
1809
|
+
addToUnscopables('values');
|
|
1810
|
+
addToUnscopables('entries');
|
|
1811
|
+
|
|
1812
|
+
// V8 ~ Chrome 45- bug
|
|
1813
|
+
if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
|
|
1814
|
+
defineProperty(values, 'name', { value: 'values' });
|
|
1815
|
+
} catch (error) { /* empty */ }
|
|
1816
|
+
|
|
1817
|
+
var es_array_iterator$1 = /*@__PURE__*/getDefaultExportFromCjs(es_array_iterator);
|
|
1818
|
+
|
|
1819
|
+
'use strict';
|
|
1820
|
+
var global$4 = global$f;
|
|
1821
|
+
var DOMIterables = domIterables;
|
|
1822
|
+
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1823
|
+
var ArrayIteratorMethods = es_array_iterator;
|
|
1824
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
|
1825
|
+
var setToStringTag = setToStringTag$3;
|
|
1826
|
+
var wellKnownSymbol$4 = wellKnownSymbol$a;
|
|
1827
|
+
|
|
1828
|
+
var ITERATOR = wellKnownSymbol$4('iterator');
|
|
1829
|
+
var ArrayValues = ArrayIteratorMethods.values;
|
|
1830
|
+
|
|
1831
|
+
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1832
|
+
if (CollectionPrototype) {
|
|
1833
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1834
|
+
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
1835
|
+
createNonEnumerableProperty$1(CollectionPrototype, ITERATOR, ArrayValues);
|
|
1836
|
+
} catch (error) {
|
|
1837
|
+
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1838
|
+
}
|
|
1839
|
+
setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
|
|
1840
|
+
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1841
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1842
|
+
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1843
|
+
createNonEnumerableProperty$1(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1844
|
+
} catch (error) {
|
|
1845
|
+
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
};
|
|
1850
|
+
|
|
1851
|
+
for (var COLLECTION_NAME in DOMIterables) {
|
|
1852
|
+
handlePrototype(global$4[COLLECTION_NAME] && global$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1856
|
+
|
|
1857
|
+
var es_string_replace = {};
|
|
1858
|
+
|
|
1859
|
+
'use strict';
|
|
1860
|
+
var NATIVE_BIND = functionBindNative;
|
|
1861
|
+
|
|
1862
|
+
var FunctionPrototype = Function.prototype;
|
|
1863
|
+
var apply$1 = FunctionPrototype.apply;
|
|
1864
|
+
var call$4 = FunctionPrototype.call;
|
|
1865
|
+
|
|
1866
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
|
1867
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$4.bind(apply$1) : function () {
|
|
1868
|
+
return call$4.apply(apply$1, arguments);
|
|
1869
|
+
});
|
|
1870
|
+
|
|
1871
|
+
var functionApply$1 = /*@__PURE__*/getDefaultExportFromCjs(functionApply);
|
|
1872
|
+
|
|
1873
|
+
var es_regexp_exec = {};
|
|
1874
|
+
|
|
1875
|
+
'use strict';
|
|
1876
|
+
var wellKnownSymbol$3 = wellKnownSymbol$a;
|
|
1877
|
+
|
|
1878
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
|
|
1879
|
+
var test = {};
|
|
1880
|
+
|
|
1881
|
+
test[TO_STRING_TAG$1] = 'z';
|
|
1882
|
+
|
|
1883
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
1884
|
+
|
|
1885
|
+
var toStringTagSupport$1 = /*@__PURE__*/getDefaultExportFromCjs(toStringTagSupport);
|
|
1886
|
+
|
|
1887
|
+
'use strict';
|
|
1888
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1889
|
+
var isCallable$2 = isCallable$g;
|
|
1890
|
+
var classofRaw = classofRaw$1;
|
|
1891
|
+
var wellKnownSymbol$2 = wellKnownSymbol$a;
|
|
1892
|
+
|
|
1893
|
+
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
1894
|
+
var $Object = Object;
|
|
1895
|
+
|
|
1896
|
+
// ES3 wrong here
|
|
1897
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
1898
|
+
|
|
1899
|
+
// fallback for IE11 Script Access Denied error
|
|
1900
|
+
var tryGet = function (it, key) {
|
|
1901
|
+
try {
|
|
1902
|
+
return it[key];
|
|
1903
|
+
} catch (error) { /* empty */ }
|
|
1904
|
+
};
|
|
1905
|
+
|
|
1906
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
1907
|
+
var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1908
|
+
var O, tag, result;
|
|
1909
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1910
|
+
// @@toStringTag case
|
|
1911
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1912
|
+
// builtinTag case
|
|
1913
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1914
|
+
// ES3 arguments fallback
|
|
1915
|
+
: (result = classofRaw(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
|
|
1916
|
+
};
|
|
1917
|
+
|
|
1918
|
+
var classof$3 = /*@__PURE__*/getDefaultExportFromCjs(classof$2);
|
|
1919
|
+
|
|
1920
|
+
'use strict';
|
|
1921
|
+
var classof$1 = classof$2;
|
|
1922
|
+
|
|
1923
|
+
var $String = String;
|
|
1924
|
+
|
|
1925
|
+
var toString$3 = function (argument) {
|
|
1926
|
+
if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1927
|
+
return $String(argument);
|
|
1928
|
+
};
|
|
1929
|
+
|
|
1930
|
+
var toString$4 = /*@__PURE__*/getDefaultExportFromCjs(toString$3);
|
|
1931
|
+
|
|
1932
|
+
'use strict';
|
|
1933
|
+
var anObject$2 = anObject$8;
|
|
1934
|
+
|
|
1935
|
+
// `RegExp.prototype.flags` getter implementation
|
|
1936
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1937
|
+
var regexpFlags$1 = function () {
|
|
1938
|
+
var that = anObject$2(this);
|
|
1939
|
+
var result = '';
|
|
1940
|
+
if (that.hasIndices) result += 'd';
|
|
1941
|
+
if (that.global) result += 'g';
|
|
1942
|
+
if (that.ignoreCase) result += 'i';
|
|
1943
|
+
if (that.multiline) result += 'm';
|
|
1944
|
+
if (that.dotAll) result += 's';
|
|
1945
|
+
if (that.unicode) result += 'u';
|
|
1946
|
+
if (that.unicodeSets) result += 'v';
|
|
1947
|
+
if (that.sticky) result += 'y';
|
|
1948
|
+
return result;
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1951
|
+
var regexpFlags$2 = /*@__PURE__*/getDefaultExportFromCjs(regexpFlags$1);
|
|
1952
|
+
|
|
1953
|
+
'use strict';
|
|
1954
|
+
var fails$4 = fails$f;
|
|
1955
|
+
var global$3 = global$f;
|
|
1956
|
+
|
|
1957
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1958
|
+
var $RegExp$2 = global$3.RegExp;
|
|
1959
|
+
|
|
1960
|
+
var UNSUPPORTED_Y$1 = fails$4(function () {
|
|
1961
|
+
var re = $RegExp$2('a', 'y');
|
|
1962
|
+
re.lastIndex = 2;
|
|
1963
|
+
return re.exec('abcd') !== null;
|
|
1964
|
+
});
|
|
1965
|
+
|
|
1966
|
+
// UC Browser bug
|
|
1967
|
+
// https://github.com/zloirock/core-js/issues/1008
|
|
1968
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
1969
|
+
return !$RegExp$2('a', 'y').sticky;
|
|
1970
|
+
});
|
|
1971
|
+
|
|
1972
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
1973
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1974
|
+
var re = $RegExp$2('^r', 'gy');
|
|
1975
|
+
re.lastIndex = 2;
|
|
1976
|
+
return re.exec('str') !== null;
|
|
1977
|
+
});
|
|
1978
|
+
|
|
1979
|
+
var regexpStickyHelpers = {
|
|
1980
|
+
BROKEN_CARET: BROKEN_CARET,
|
|
1981
|
+
MISSED_STICKY: MISSED_STICKY,
|
|
1982
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
1983
|
+
};
|
|
1984
|
+
|
|
1985
|
+
var regexpStickyHelpers$1 = /*@__PURE__*/getDefaultExportFromCjs(regexpStickyHelpers);
|
|
1986
|
+
|
|
1987
|
+
'use strict';
|
|
1988
|
+
var fails$3 = fails$f;
|
|
1989
|
+
var global$2 = global$f;
|
|
1990
|
+
|
|
1991
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1992
|
+
var $RegExp$1 = global$2.RegExp;
|
|
1993
|
+
|
|
1994
|
+
var regexpUnsupportedDotAll = fails$3(function () {
|
|
1995
|
+
var re = $RegExp$1('.', 's');
|
|
1996
|
+
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
1997
|
+
});
|
|
1998
|
+
|
|
1999
|
+
var regexpUnsupportedDotAll$1 = /*@__PURE__*/getDefaultExportFromCjs(regexpUnsupportedDotAll);
|
|
2000
|
+
|
|
2001
|
+
'use strict';
|
|
2002
|
+
var fails$2 = fails$f;
|
|
2003
|
+
var global$1 = global$f;
|
|
2004
|
+
|
|
2005
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
2006
|
+
var $RegExp = global$1.RegExp;
|
|
2007
|
+
|
|
2008
|
+
var regexpUnsupportedNcg = fails$2(function () {
|
|
2009
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
2010
|
+
return re.exec('b').groups.a !== 'b' ||
|
|
2011
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
|
2012
|
+
});
|
|
2013
|
+
|
|
2014
|
+
var regexpUnsupportedNcg$1 = /*@__PURE__*/getDefaultExportFromCjs(regexpUnsupportedNcg);
|
|
2015
|
+
|
|
2016
|
+
'use strict';
|
|
2017
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
2018
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
2019
|
+
var call$3 = functionCall;
|
|
2020
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
2021
|
+
var toString$2 = toString$3;
|
|
2022
|
+
var regexpFlags = regexpFlags$1;
|
|
2023
|
+
var stickyHelpers = regexpStickyHelpers;
|
|
2024
|
+
var shared = sharedExports;
|
|
2025
|
+
var create = objectCreate;
|
|
2026
|
+
var getInternalState = internalState.get;
|
|
2027
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
2028
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
2029
|
+
|
|
2030
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
2031
|
+
var nativeExec = RegExp.prototype.exec;
|
|
2032
|
+
var patchedExec = nativeExec;
|
|
2033
|
+
var charAt$3 = uncurryThis$3(''.charAt);
|
|
2034
|
+
var indexOf = uncurryThis$3(''.indexOf);
|
|
2035
|
+
var replace$1 = uncurryThis$3(''.replace);
|
|
2036
|
+
var stringSlice$3 = uncurryThis$3(''.slice);
|
|
2037
|
+
|
|
2038
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
2039
|
+
var re1 = /a/;
|
|
2040
|
+
var re2 = /b*/g;
|
|
2041
|
+
call$3(nativeExec, re1, 'a');
|
|
2042
|
+
call$3(nativeExec, re2, 'a');
|
|
2043
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
2044
|
+
})();
|
|
2045
|
+
|
|
2046
|
+
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
2047
|
+
|
|
2048
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
2049
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
2050
|
+
|
|
2051
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
2052
|
+
|
|
2053
|
+
if (PATCH) {
|
|
2054
|
+
patchedExec = function exec(string) {
|
|
2055
|
+
var re = this;
|
|
2056
|
+
var state = getInternalState(re);
|
|
2057
|
+
var str = toString$2(string);
|
|
2058
|
+
var raw = state.raw;
|
|
2059
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
|
2060
|
+
|
|
2061
|
+
if (raw) {
|
|
2062
|
+
raw.lastIndex = re.lastIndex;
|
|
2063
|
+
result = call$3(patchedExec, raw, str);
|
|
2064
|
+
re.lastIndex = raw.lastIndex;
|
|
2065
|
+
return result;
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
var groups = state.groups;
|
|
2069
|
+
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
2070
|
+
var flags = call$3(regexpFlags, re);
|
|
2071
|
+
var source = re.source;
|
|
2072
|
+
var charsAdded = 0;
|
|
2073
|
+
var strCopy = str;
|
|
2074
|
+
|
|
2075
|
+
if (sticky) {
|
|
2076
|
+
flags = replace$1(flags, 'y', '');
|
|
2077
|
+
if (indexOf(flags, 'g') === -1) {
|
|
2078
|
+
flags += 'g';
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
strCopy = stringSlice$3(str, re.lastIndex);
|
|
2082
|
+
// Support anchored sticky behavior.
|
|
2083
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
|
2084
|
+
source = '(?: ' + source + ')';
|
|
2085
|
+
strCopy = ' ' + strCopy;
|
|
2086
|
+
charsAdded++;
|
|
2087
|
+
}
|
|
2088
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
2089
|
+
// simulate the 'y' flag.
|
|
2090
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
if (NPCG_INCLUDED) {
|
|
2094
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
2095
|
+
}
|
|
2096
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
2097
|
+
|
|
2098
|
+
match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
|
|
2099
|
+
|
|
2100
|
+
if (sticky) {
|
|
2101
|
+
if (match) {
|
|
2102
|
+
match.input = stringSlice$3(match.input, charsAdded);
|
|
2103
|
+
match[0] = stringSlice$3(match[0], charsAdded);
|
|
2104
|
+
match.index = re.lastIndex;
|
|
2105
|
+
re.lastIndex += match[0].length;
|
|
2106
|
+
} else re.lastIndex = 0;
|
|
2107
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
2108
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
2109
|
+
}
|
|
2110
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
2111
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
2112
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
2113
|
+
call$3(nativeReplace, match[0], reCopy, function () {
|
|
2114
|
+
for (i = 1; i < arguments.length - 2; i++) {
|
|
2115
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
|
2116
|
+
}
|
|
2117
|
+
});
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
if (match && groups) {
|
|
2121
|
+
match.groups = object = create(null);
|
|
2122
|
+
for (i = 0; i < groups.length; i++) {
|
|
2123
|
+
group = groups[i];
|
|
2124
|
+
object[group[0]] = match[group[1]];
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
return match;
|
|
2129
|
+
};
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
var regexpExec$2 = patchedExec;
|
|
2133
|
+
|
|
2134
|
+
var regexpExec$3 = /*@__PURE__*/getDefaultExportFromCjs(regexpExec$2);
|
|
2135
|
+
|
|
2136
|
+
'use strict';
|
|
2137
|
+
var $ = _export;
|
|
2138
|
+
var exec = regexpExec$2;
|
|
2139
|
+
|
|
2140
|
+
// `RegExp.prototype.exec` method
|
|
2141
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
2142
|
+
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
2143
|
+
exec: exec
|
|
2144
|
+
});
|
|
2145
|
+
|
|
2146
|
+
'use strict';
|
|
2147
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
2148
|
+
|
|
2149
|
+
var call$2 = functionCall;
|
|
2150
|
+
var defineBuiltIn = defineBuiltIn$4;
|
|
2151
|
+
var regexpExec$1 = regexpExec$2;
|
|
2152
|
+
var fails$1 = fails$f;
|
|
2153
|
+
var wellKnownSymbol$1 = wellKnownSymbol$a;
|
|
2154
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
2155
|
+
|
|
2156
|
+
var SPECIES = wellKnownSymbol$1('species');
|
|
2157
|
+
var RegExpPrototype = RegExp.prototype;
|
|
2158
|
+
|
|
2159
|
+
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
2160
|
+
var SYMBOL = wellKnownSymbol$1(KEY);
|
|
2161
|
+
|
|
2162
|
+
var DELEGATES_TO_SYMBOL = !fails$1(function () {
|
|
2163
|
+
// String methods call symbol-named RegExp methods
|
|
2164
|
+
var O = {};
|
|
2165
|
+
O[SYMBOL] = function () { return 7; };
|
|
2166
|
+
return ''[KEY](O) !== 7;
|
|
2167
|
+
});
|
|
2168
|
+
|
|
2169
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
|
|
2170
|
+
// Symbol-named RegExp methods call .exec
|
|
2171
|
+
var execCalled = false;
|
|
2172
|
+
var re = /a/;
|
|
2173
|
+
|
|
2174
|
+
if (KEY === 'split') {
|
|
2175
|
+
// We can't use real regex here since it causes deoptimization
|
|
2176
|
+
// and serious performance degradation in V8
|
|
2177
|
+
// https://github.com/zloirock/core-js/issues/306
|
|
2178
|
+
re = {};
|
|
2179
|
+
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
2180
|
+
// a new one. We need to return the patched regex when creating the new one.
|
|
2181
|
+
re.constructor = {};
|
|
2182
|
+
re.constructor[SPECIES] = function () { return re; };
|
|
2183
|
+
re.flags = '';
|
|
2184
|
+
re[SYMBOL] = /./[SYMBOL];
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
re.exec = function () {
|
|
2188
|
+
execCalled = true;
|
|
2189
|
+
return null;
|
|
2190
|
+
};
|
|
2191
|
+
|
|
2192
|
+
re[SYMBOL]('');
|
|
2193
|
+
return !execCalled;
|
|
2194
|
+
});
|
|
2195
|
+
|
|
2196
|
+
if (
|
|
2197
|
+
!DELEGATES_TO_SYMBOL ||
|
|
2198
|
+
!DELEGATES_TO_EXEC ||
|
|
2199
|
+
FORCED
|
|
2200
|
+
) {
|
|
2201
|
+
var nativeRegExpMethod = /./[SYMBOL];
|
|
2202
|
+
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
2203
|
+
var $exec = regexp.exec;
|
|
2204
|
+
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
2205
|
+
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
2206
|
+
// The native String method already delegates to @@method (this
|
|
2207
|
+
// polyfilled function), leasing to infinite recursion.
|
|
2208
|
+
// We avoid it by directly calling the native @@method method.
|
|
2209
|
+
return { done: true, value: call$2(nativeRegExpMethod, regexp, str, arg2) };
|
|
2210
|
+
}
|
|
2211
|
+
return { done: true, value: call$2(nativeMethod, str, regexp, arg2) };
|
|
2212
|
+
}
|
|
2213
|
+
return { done: false };
|
|
2214
|
+
});
|
|
2215
|
+
|
|
2216
|
+
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
2217
|
+
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
2221
|
+
};
|
|
2222
|
+
|
|
2223
|
+
var fixRegexpWellKnownSymbolLogic$1 = /*@__PURE__*/getDefaultExportFromCjs(fixRegexpWellKnownSymbolLogic);
|
|
2224
|
+
|
|
2225
|
+
'use strict';
|
|
2226
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
2227
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
2228
|
+
var toString$1 = toString$3;
|
|
2229
|
+
var requireObjectCoercible$1 = requireObjectCoercible$4;
|
|
2230
|
+
|
|
2231
|
+
var charAt$2 = uncurryThis$2(''.charAt);
|
|
2232
|
+
var charCodeAt = uncurryThis$2(''.charCodeAt);
|
|
2233
|
+
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
2234
|
+
|
|
2235
|
+
var createMethod = function (CONVERT_TO_STRING) {
|
|
2236
|
+
return function ($this, pos) {
|
|
2237
|
+
var S = toString$1(requireObjectCoercible$1($this));
|
|
2238
|
+
var position = toIntegerOrInfinity$1(pos);
|
|
2239
|
+
var size = S.length;
|
|
2240
|
+
var first, second;
|
|
2241
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
2242
|
+
first = charCodeAt(S, position);
|
|
2243
|
+
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
2244
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
2245
|
+
? CONVERT_TO_STRING
|
|
2246
|
+
? charAt$2(S, position)
|
|
2247
|
+
: first
|
|
2248
|
+
: CONVERT_TO_STRING
|
|
2249
|
+
? stringSlice$2(S, position, position + 2)
|
|
2250
|
+
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
2251
|
+
};
|
|
2252
|
+
};
|
|
2253
|
+
|
|
2254
|
+
var stringMultibyte = {
|
|
2255
|
+
// `String.prototype.codePointAt` method
|
|
2256
|
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
2257
|
+
codeAt: createMethod(false),
|
|
2258
|
+
// `String.prototype.at` method
|
|
2259
|
+
// https://github.com/mathiasbynens/String.prototype.at
|
|
2260
|
+
charAt: createMethod(true)
|
|
2261
|
+
};
|
|
2262
|
+
|
|
2263
|
+
var stringMultibyte$1 = /*@__PURE__*/getDefaultExportFromCjs(stringMultibyte);
|
|
2264
|
+
|
|
2265
|
+
'use strict';
|
|
2266
|
+
var charAt$1 = stringMultibyte.charAt;
|
|
2267
|
+
|
|
2268
|
+
// `AdvanceStringIndex` abstract operation
|
|
2269
|
+
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
2270
|
+
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
2271
|
+
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
2272
|
+
};
|
|
2273
|
+
|
|
2274
|
+
var advanceStringIndex$2 = /*@__PURE__*/getDefaultExportFromCjs(advanceStringIndex$1);
|
|
2275
|
+
|
|
2276
|
+
'use strict';
|
|
2277
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
2278
|
+
var toObject = toObject$3;
|
|
2279
|
+
|
|
2280
|
+
var floor = Math.floor;
|
|
2281
|
+
var charAt = uncurryThis$1(''.charAt);
|
|
2282
|
+
var replace = uncurryThis$1(''.replace);
|
|
2283
|
+
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
2284
|
+
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
2285
|
+
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
2286
|
+
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
2287
|
+
|
|
2288
|
+
// `GetSubstitution` abstract operation
|
|
2289
|
+
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
2290
|
+
var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
2291
|
+
var tailPos = position + matched.length;
|
|
2292
|
+
var m = captures.length;
|
|
2293
|
+
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
2294
|
+
if (namedCaptures !== undefined) {
|
|
2295
|
+
namedCaptures = toObject(namedCaptures);
|
|
2296
|
+
symbols = SUBSTITUTION_SYMBOLS;
|
|
2297
|
+
}
|
|
2298
|
+
return replace(replacement, symbols, function (match, ch) {
|
|
2299
|
+
var capture;
|
|
2300
|
+
switch (charAt(ch, 0)) {
|
|
2301
|
+
case '$': return '$';
|
|
2302
|
+
case '&': return matched;
|
|
2303
|
+
case '`': return stringSlice$1(str, 0, position);
|
|
2304
|
+
case "'": return stringSlice$1(str, tailPos);
|
|
2305
|
+
case '<':
|
|
2306
|
+
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
|
2307
|
+
break;
|
|
2308
|
+
default: // \d\d?
|
|
2309
|
+
var n = +ch;
|
|
2310
|
+
if (n === 0) return match;
|
|
2311
|
+
if (n > m) {
|
|
2312
|
+
var f = floor(n / 10);
|
|
2313
|
+
if (f === 0) return match;
|
|
2314
|
+
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
2315
|
+
return match;
|
|
2316
|
+
}
|
|
2317
|
+
capture = captures[n - 1];
|
|
2318
|
+
}
|
|
2319
|
+
return capture === undefined ? '' : capture;
|
|
2320
|
+
});
|
|
2321
|
+
};
|
|
2322
|
+
|
|
2323
|
+
var getSubstitution$2 = /*@__PURE__*/getDefaultExportFromCjs(getSubstitution$1);
|
|
2324
|
+
|
|
2325
|
+
'use strict';
|
|
2326
|
+
var call$1 = functionCall;
|
|
2327
|
+
var anObject$1 = anObject$8;
|
|
2328
|
+
var isCallable$1 = isCallable$g;
|
|
2329
|
+
var classof = classofRaw$1;
|
|
2330
|
+
var regexpExec = regexpExec$2;
|
|
2331
|
+
|
|
2332
|
+
var $TypeError = TypeError;
|
|
2333
|
+
|
|
2334
|
+
// `RegExpExec` abstract operation
|
|
2335
|
+
// https://tc39.es/ecma262/#sec-regexpexec
|
|
2336
|
+
var regexpExecAbstract = function (R, S) {
|
|
2337
|
+
var exec = R.exec;
|
|
2338
|
+
if (isCallable$1(exec)) {
|
|
2339
|
+
var result = call$1(exec, R, S);
|
|
2340
|
+
if (result !== null) anObject$1(result);
|
|
2341
|
+
return result;
|
|
2342
|
+
}
|
|
2343
|
+
if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
|
|
2344
|
+
throw new $TypeError('RegExp#exec called on incompatible receiver');
|
|
2345
|
+
};
|
|
2346
|
+
|
|
2347
|
+
var regexpExecAbstract$1 = /*@__PURE__*/getDefaultExportFromCjs(regexpExecAbstract);
|
|
2348
|
+
|
|
2349
|
+
'use strict';
|
|
2350
|
+
var apply = functionApply;
|
|
2351
|
+
var call = functionCall;
|
|
2352
|
+
var uncurryThis = functionUncurryThis;
|
|
2353
|
+
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
2354
|
+
var fails = fails$f;
|
|
2355
|
+
var anObject = anObject$8;
|
|
2356
|
+
var isCallable = isCallable$g;
|
|
2357
|
+
var isNullOrUndefined = isNullOrUndefined$3;
|
|
2358
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
2359
|
+
var toLength = toLength$2;
|
|
2360
|
+
var toString = toString$3;
|
|
2361
|
+
var requireObjectCoercible = requireObjectCoercible$4;
|
|
2362
|
+
var advanceStringIndex = advanceStringIndex$1;
|
|
2363
|
+
var getMethod = getMethod$2;
|
|
2364
|
+
var getSubstitution = getSubstitution$1;
|
|
2365
|
+
var regExpExec = regexpExecAbstract;
|
|
2366
|
+
var wellKnownSymbol = wellKnownSymbol$a;
|
|
2367
|
+
|
|
2368
|
+
var REPLACE = wellKnownSymbol('replace');
|
|
2369
|
+
var max = Math.max;
|
|
2370
|
+
var min = Math.min;
|
|
2371
|
+
var concat = uncurryThis([].concat);
|
|
2372
|
+
var push = uncurryThis([].push);
|
|
2373
|
+
var stringIndexOf = uncurryThis(''.indexOf);
|
|
2374
|
+
var stringSlice = uncurryThis(''.slice);
|
|
2375
|
+
|
|
2376
|
+
var maybeToString = function (it) {
|
|
2377
|
+
return it === undefined ? it : String(it);
|
|
2378
|
+
};
|
|
2379
|
+
|
|
2380
|
+
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
|
2381
|
+
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
|
2382
|
+
var REPLACE_KEEPS_$0 = (function () {
|
|
2383
|
+
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
|
2384
|
+
return 'a'.replace(/./, '$0') === '$0';
|
|
2385
|
+
})();
|
|
2386
|
+
|
|
2387
|
+
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
2388
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
2389
|
+
if (/./[REPLACE]) {
|
|
2390
|
+
return /./[REPLACE]('a', '$0') === '';
|
|
2391
|
+
}
|
|
2392
|
+
return false;
|
|
2393
|
+
})();
|
|
2394
|
+
|
|
2395
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
2396
|
+
var re = /./;
|
|
2397
|
+
re.exec = function () {
|
|
2398
|
+
var result = [];
|
|
2399
|
+
result.groups = { a: '7' };
|
|
2400
|
+
return result;
|
|
2401
|
+
};
|
|
2402
|
+
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
2403
|
+
return ''.replace(re, '$<a>') !== '7';
|
|
2404
|
+
});
|
|
2405
|
+
|
|
2406
|
+
// @@replace logic
|
|
2407
|
+
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
2408
|
+
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
2409
|
+
|
|
2410
|
+
return [
|
|
2411
|
+
// `String.prototype.replace` method
|
|
2412
|
+
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
2413
|
+
function replace(searchValue, replaceValue) {
|
|
2414
|
+
var O = requireObjectCoercible(this);
|
|
2415
|
+
var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
|
|
2416
|
+
return replacer
|
|
2417
|
+
? call(replacer, searchValue, O, replaceValue)
|
|
2418
|
+
: call(nativeReplace, toString(O), searchValue, replaceValue);
|
|
2419
|
+
},
|
|
2420
|
+
// `RegExp.prototype[@@replace]` method
|
|
2421
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
2422
|
+
function (string, replaceValue) {
|
|
2423
|
+
var rx = anObject(this);
|
|
2424
|
+
var S = toString(string);
|
|
2425
|
+
|
|
2426
|
+
if (
|
|
2427
|
+
typeof replaceValue == 'string' &&
|
|
2428
|
+
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
|
2429
|
+
stringIndexOf(replaceValue, '$<') === -1
|
|
2430
|
+
) {
|
|
2431
|
+
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
2432
|
+
if (res.done) return res.value;
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
var functionalReplace = isCallable(replaceValue);
|
|
2436
|
+
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
2437
|
+
|
|
2438
|
+
var global = rx.global;
|
|
2439
|
+
var fullUnicode;
|
|
2440
|
+
if (global) {
|
|
2441
|
+
fullUnicode = rx.unicode;
|
|
2442
|
+
rx.lastIndex = 0;
|
|
2443
|
+
}
|
|
2444
|
+
|
|
2445
|
+
var results = [];
|
|
2446
|
+
var result;
|
|
2447
|
+
while (true) {
|
|
2448
|
+
result = regExpExec(rx, S);
|
|
2449
|
+
if (result === null) break;
|
|
2450
|
+
|
|
2451
|
+
push(results, result);
|
|
2452
|
+
if (!global) break;
|
|
2453
|
+
|
|
2454
|
+
var matchStr = toString(result[0]);
|
|
2455
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
var accumulatedResult = '';
|
|
2459
|
+
var nextSourcePosition = 0;
|
|
2460
|
+
for (var i = 0; i < results.length; i++) {
|
|
2461
|
+
result = results[i];
|
|
2462
|
+
|
|
2463
|
+
var matched = toString(result[0]);
|
|
2464
|
+
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
2465
|
+
var captures = [];
|
|
2466
|
+
var replacement;
|
|
2467
|
+
// NOTE: This is equivalent to
|
|
2468
|
+
// captures = result.slice(1).map(maybeToString)
|
|
2469
|
+
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
2470
|
+
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
2471
|
+
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
2472
|
+
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
2473
|
+
var namedCaptures = result.groups;
|
|
2474
|
+
if (functionalReplace) {
|
|
2475
|
+
var replacerArgs = concat([matched], captures, position, S);
|
|
2476
|
+
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
2477
|
+
replacement = toString(apply(replaceValue, undefined, replacerArgs));
|
|
2478
|
+
} else {
|
|
2479
|
+
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
2480
|
+
}
|
|
2481
|
+
if (position >= nextSourcePosition) {
|
|
2482
|
+
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
|
2483
|
+
nextSourcePosition = position + matched.length;
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
2488
|
+
}
|
|
2489
|
+
];
|
|
2490
|
+
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
2491
|
+
|
|
15
2492
|
var escapeRegex = ((value) => value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'));
|
|
16
2493
|
|
|
17
2494
|
const ItemSymbol$1 = Symbol('item');
|
|
@@ -239,36 +2716,36 @@ class DropList {
|
|
|
239
2716
|
console.warn('onItemRender called for (' + index + ') which has no item');
|
|
240
2717
|
}
|
|
241
2718
|
|
|
242
|
-
itemEl.className =
|
|
2719
|
+
itemEl.className = "".concat(p.baseClassName, "__item");
|
|
243
2720
|
|
|
244
2721
|
const classList = itemEl.classList;
|
|
245
2722
|
|
|
246
2723
|
if (p.multi) {
|
|
247
2724
|
if (item._nocheck) {
|
|
248
|
-
classList.add(
|
|
2725
|
+
classList.add("".concat(p.baseClassName, "__item_multi_nocheck"));
|
|
249
2726
|
} else {
|
|
250
|
-
classList.add(
|
|
2727
|
+
classList.add("".concat(p.baseClassName, "__item_multi"));
|
|
251
2728
|
|
|
252
2729
|
if (item._checked) {
|
|
253
|
-
classList.add(
|
|
2730
|
+
classList.add("".concat(p.baseClassName, "__item_checked"));
|
|
254
2731
|
}
|
|
255
2732
|
}
|
|
256
2733
|
} else {
|
|
257
|
-
classList.add(
|
|
2734
|
+
classList.add("".concat(p.baseClassName, "__item_single"));
|
|
258
2735
|
}
|
|
259
2736
|
|
|
260
2737
|
if (item._group)
|
|
261
|
-
classList.add(
|
|
2738
|
+
classList.add("".concat(p.baseClassName, "__item_group"));
|
|
262
2739
|
|
|
263
2740
|
if (item._child)
|
|
264
|
-
classList.add(
|
|
2741
|
+
classList.add("".concat(p.baseClassName, "__item_child"));
|
|
265
2742
|
|
|
266
2743
|
if (item._nointeraction)
|
|
267
|
-
classList.add(
|
|
2744
|
+
classList.add("".concat(p.baseClassName, "__item_nointeraction"));
|
|
268
2745
|
|
|
269
2746
|
if (p.focusItemIndex === index) {
|
|
270
2747
|
p.focusItemEl = itemEl;
|
|
271
|
-
classList.add(
|
|
2748
|
+
classList.add("".concat(p.baseClassName, "__item_focus"));
|
|
272
2749
|
}
|
|
273
2750
|
|
|
274
2751
|
this._renderItemContent(item, itemEl);
|
|
@@ -342,10 +2819,10 @@ class DropList {
|
|
|
342
2819
|
}
|
|
343
2820
|
|
|
344
2821
|
if (p.lastPositionTarget) {
|
|
345
|
-
p.lastPositionTarget.classList.remove(
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
2822
|
+
p.lastPositionTarget.classList.remove("has_".concat(
|
|
2823
|
+
p.baseClassName), "has_".concat(
|
|
2824
|
+
p.baseClassName, "_above"), "has_".concat(
|
|
2825
|
+
p.baseClassName, "_below"));
|
|
349
2826
|
delete p.lastPositionTarget;
|
|
350
2827
|
}
|
|
351
2828
|
|
|
@@ -463,7 +2940,7 @@ class DropList {
|
|
|
463
2940
|
let classes = [p.baseClassName];
|
|
464
2941
|
|
|
465
2942
|
if (p.direction === 'ltr' || p.direction === 'rtl')
|
|
466
|
-
classes.push(
|
|
2943
|
+
classes.push("".concat(p.baseClassName, "__") + p.direction);
|
|
467
2944
|
|
|
468
2945
|
if (p.additionalClasses) {
|
|
469
2946
|
classes = classes.concat(p.additionalClasses);
|
|
@@ -472,7 +2949,7 @@ class DropList {
|
|
|
472
2949
|
el.className = classes.join(' ');
|
|
473
2950
|
}
|
|
474
2951
|
|
|
475
|
-
blurFocusedItem() {
|
|
2952
|
+
blurFocusedItem() {var _item$ItemSymbol;
|
|
476
2953
|
const p = this._p;
|
|
477
2954
|
|
|
478
2955
|
clearTimeout(p.blurTimer);
|
|
@@ -483,7 +2960,7 @@ class DropList {
|
|
|
483
2960
|
|
|
484
2961
|
let focusItemEl = p.focusItemEl;
|
|
485
2962
|
if (focusItemEl) {
|
|
486
|
-
focusItemEl.classList.remove(
|
|
2963
|
+
focusItemEl.classList.remove("".concat(p.baseClassName, "__item_focus"));
|
|
487
2964
|
p.focusItemEl = null;
|
|
488
2965
|
}
|
|
489
2966
|
|
|
@@ -493,7 +2970,7 @@ class DropList {
|
|
|
493
2970
|
if (!item)
|
|
494
2971
|
return;
|
|
495
2972
|
|
|
496
|
-
this._trigger('itemblur', { value: item.value, item: item[ItemSymbol$1]
|
|
2973
|
+
this._trigger('itemblur', { value: item.value, item: (_item$ItemSymbol = item[ItemSymbol$1]) !== null && _item$ItemSymbol !== void 0 ? _item$ItemSymbol : item });
|
|
497
2974
|
}
|
|
498
2975
|
|
|
499
2976
|
nextPage(event) {
|
|
@@ -515,17 +2992,17 @@ class DropList {
|
|
|
515
2992
|
toggleFocusedItem() {
|
|
516
2993
|
const p = this._p;
|
|
517
2994
|
|
|
518
|
-
if (this.hasFocusedItem() && p.multi) {
|
|
2995
|
+
if (this.hasFocusedItem() && p.multi) {var _item$ItemSymbol2;
|
|
519
2996
|
let item = p.items[p.focusItemIndex];
|
|
520
2997
|
if (item._nocheck || item._nointeraction) return this;
|
|
521
2998
|
|
|
522
2999
|
item._checked = !item._checked;
|
|
523
3000
|
if (p.focusItemEl) {
|
|
524
|
-
DomCompat.toggleClass(p.focusItemEl,
|
|
3001
|
+
DomCompat.toggleClass(p.focusItemEl, "".concat(p.baseClassName, "__item_checked"), item._checked);
|
|
525
3002
|
}
|
|
526
3003
|
this._trigger('check', {
|
|
527
3004
|
value: item.value,
|
|
528
|
-
item: item[ItemSymbol$1]
|
|
3005
|
+
item: (_item$ItemSymbol2 = item[ItemSymbol$1]) !== null && _item$ItemSymbol2 !== void 0 ? _item$ItemSymbol2 : item,
|
|
529
3006
|
checked: item._checked,
|
|
530
3007
|
isGroup: item._group,
|
|
531
3008
|
isCheckingGroup: false
|
|
@@ -537,7 +3014,7 @@ class DropList {
|
|
|
537
3014
|
return this;
|
|
538
3015
|
}
|
|
539
3016
|
|
|
540
|
-
triggerItemSelection(item, event) {
|
|
3017
|
+
triggerItemSelection(item, event) {var _item, _item$ItemSymbol3;
|
|
541
3018
|
const p = this._p;
|
|
542
3019
|
|
|
543
3020
|
p.focusItemEl = p.focusItemEl || Dom.closestUntil(event.target, 'li', p.el);
|
|
@@ -545,7 +3022,7 @@ class DropList {
|
|
|
545
3022
|
if (p.focusItemIndex === undefined)
|
|
546
3023
|
p.focusItemIndex = -1;
|
|
547
3024
|
|
|
548
|
-
item = item
|
|
3025
|
+
item = (_item = item) !== null && _item !== void 0 ? _item : p.focusItemEl[ItemSymbol$1];
|
|
549
3026
|
if (item._nointeraction) {
|
|
550
3027
|
return false;
|
|
551
3028
|
}
|
|
@@ -556,7 +3033,7 @@ class DropList {
|
|
|
556
3033
|
|
|
557
3034
|
this._trigger('select', {
|
|
558
3035
|
value: item ? item.value : undefined,
|
|
559
|
-
item: item[ItemSymbol$1]
|
|
3036
|
+
item: (_item$ItemSymbol3 = item[ItemSymbol$1]) !== null && _item$ItemSymbol3 !== void 0 ? _item$ItemSymbol3 : item,
|
|
560
3037
|
event: event,
|
|
561
3038
|
el: p.focusItemEl
|
|
562
3039
|
});
|
|
@@ -801,8 +3278,8 @@ class DropList {
|
|
|
801
3278
|
return this._p.items.length;
|
|
802
3279
|
}
|
|
803
3280
|
|
|
804
|
-
itemAtIndex(index) {
|
|
805
|
-
return this._p.items[index]
|
|
3281
|
+
itemAtIndex(index) {var _this$_p$items$index;
|
|
3282
|
+
return (_this$_p$items$index = this._p.items[index]) === null || _this$_p$items$index === void 0 ? void 0 : _this$_p$items$index[ItemSymbol$1];
|
|
806
3283
|
}
|
|
807
3284
|
|
|
808
3285
|
/**
|
|
@@ -1031,12 +3508,12 @@ class DropList {
|
|
|
1031
3508
|
if (positionOptions && positionOptions.target) {
|
|
1032
3509
|
p.lastPositionTarget = positionOptions.target;
|
|
1033
3510
|
|
|
1034
|
-
DomCompat.toggleClass(positionOptions.target,
|
|
1035
|
-
DomCompat.toggleClass(positionOptions.target,
|
|
1036
|
-
DomCompat.toggleClass(positionOptions.target,
|
|
3511
|
+
DomCompat.toggleClass(positionOptions.target, "has_".concat(p.baseClassName), true);
|
|
3512
|
+
DomCompat.toggleClass(positionOptions.target, "has_".concat(p.baseClassName, "_below"), newDirection === 'below');
|
|
3513
|
+
DomCompat.toggleClass(positionOptions.target, "has_".concat(p.baseClassName, "_above"), newDirection === 'above');
|
|
1037
3514
|
|
|
1038
|
-
DomCompat.toggleClass(el,
|
|
1039
|
-
DomCompat.toggleClass(el,
|
|
3515
|
+
DomCompat.toggleClass(el, "".concat(p.baseClassName, "__is_below"), newDirection === 'below');
|
|
3516
|
+
DomCompat.toggleClass(el, "".concat(p.baseClassName, "__is_above"), newDirection === 'above');
|
|
1040
3517
|
}
|
|
1041
3518
|
|
|
1042
3519
|
return this;
|
|
@@ -1067,7 +3544,7 @@ class DropList {
|
|
|
1067
3544
|
if (item._checked !== checked) {
|
|
1068
3545
|
item._checked = checked;
|
|
1069
3546
|
|
|
1070
|
-
DomCompat.toggleClass(li,
|
|
3547
|
+
DomCompat.toggleClass(li, "".concat(p.baseClassName, "__item_checked"), item._checked);
|
|
1071
3548
|
|
|
1072
3549
|
this._updateGroupStateForItem(item);
|
|
1073
3550
|
}
|
|
@@ -1101,7 +3578,7 @@ class DropList {
|
|
|
1101
3578
|
let li = p.virtualListHelper.getItemElementAt(i);
|
|
1102
3579
|
if (!li) continue;
|
|
1103
3580
|
|
|
1104
|
-
DomCompat.toggleClass(li,
|
|
3581
|
+
DomCompat.toggleClass(li, "".concat(p.baseClassName, "__item_checked"), item._checked);
|
|
1105
3582
|
}
|
|
1106
3583
|
|
|
1107
3584
|
if (p.autoCheckGroupChildren) {
|
|
@@ -1190,7 +3667,7 @@ class DropList {
|
|
|
1190
3667
|
|
|
1191
3668
|
const el = p.el;
|
|
1192
3669
|
el.style.position = 'absolute';
|
|
1193
|
-
el.classList.remove(
|
|
3670
|
+
el.classList.remove("".concat(p.baseClassName, "__is-hiding"));
|
|
1194
3671
|
document.body.appendChild(el);
|
|
1195
3672
|
|
|
1196
3673
|
p.visible = true;
|
|
@@ -1247,7 +3724,7 @@ class DropList {
|
|
|
1247
3724
|
|
|
1248
3725
|
if (el) {
|
|
1249
3726
|
|
|
1250
|
-
el.classList.add(
|
|
3727
|
+
el.classList.add("".concat(p.baseClassName, "__is-hiding"));
|
|
1251
3728
|
|
|
1252
3729
|
// support for hide transition in css
|
|
1253
3730
|
const maxTransitionDuration = Css.parseTransition(getComputedStyle(p.el).transition).
|
|
@@ -1259,14 +3736,14 @@ class DropList {
|
|
|
1259
3736
|
|
|
1260
3737
|
if (this._p && el.parentNode && p.hiding) {
|
|
1261
3738
|
DomCompat.remove(el);
|
|
1262
|
-
el.classList.remove(
|
|
3739
|
+
el.classList.remove("".concat(p.baseClassName, "__is-hiding"));
|
|
1263
3740
|
p.visible = false;
|
|
1264
3741
|
this._trigger('hide:after');
|
|
1265
3742
|
}
|
|
1266
3743
|
});
|
|
1267
3744
|
} else {
|
|
1268
3745
|
DomCompat.remove(el);
|
|
1269
|
-
el.classList.remove(
|
|
3746
|
+
el.classList.remove("".concat(p.baseClassName, "__is-hiding"));
|
|
1270
3747
|
}
|
|
1271
3748
|
}
|
|
1272
3749
|
|
|
@@ -1280,10 +3757,10 @@ class DropList {
|
|
|
1280
3757
|
}
|
|
1281
3758
|
|
|
1282
3759
|
if (p.lastPositionTarget) {
|
|
1283
|
-
p.lastPositionTarget.classList.remove(
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
3760
|
+
p.lastPositionTarget.classList.remove("has_".concat(
|
|
3761
|
+
p.baseClassName), "has_".concat(
|
|
3762
|
+
p.baseClassName, "_above"), "has_".concat(
|
|
3763
|
+
p.baseClassName, "_below"));
|
|
1287
3764
|
delete p.lastPositionTarget;
|
|
1288
3765
|
}
|
|
1289
3766
|
|
|
@@ -1324,12 +3801,12 @@ class DropList {
|
|
|
1324
3801
|
|
|
1325
3802
|
if (p.focusItemEl !== itemElement) {
|
|
1326
3803
|
if (p.focusItemEl) {
|
|
1327
|
-
p.focusItemEl.classList.remove(
|
|
3804
|
+
p.focusItemEl.classList.remove("".concat(p.baseClassName, "__item_focus"));
|
|
1328
3805
|
p.focusItemEl = null;
|
|
1329
3806
|
}
|
|
1330
3807
|
|
|
1331
3808
|
if (itemElement) {
|
|
1332
|
-
itemElement.classList.add(
|
|
3809
|
+
itemElement.classList.add("".concat(p.baseClassName, "__item_focus"));
|
|
1333
3810
|
p.focusItemEl = itemElement;
|
|
1334
3811
|
|
|
1335
3812
|
this._trigger('itemfocus', {
|
|
@@ -1515,12 +3992,12 @@ class DropList {
|
|
|
1515
3992
|
const p = this._p;
|
|
1516
3993
|
|
|
1517
3994
|
if (p.singleSelectedItemEl) {
|
|
1518
|
-
p.singleSelectedItemEl.classList.remove(
|
|
3995
|
+
p.singleSelectedItemEl.classList.remove("".concat(p.baseClassName, "__item_checked"));
|
|
1519
3996
|
p.singleSelectedItemEl = null;
|
|
1520
3997
|
}
|
|
1521
3998
|
|
|
1522
3999
|
if (itemEl) {
|
|
1523
|
-
itemEl.classList.add(
|
|
4000
|
+
itemEl.classList.add("".concat(p.baseClassName, "__item_checked"));
|
|
1524
4001
|
p.singleSelectedItemEl = itemEl;
|
|
1525
4002
|
}
|
|
1526
4003
|
|
|
@@ -1745,55 +4222,51 @@ class DropList {
|
|
|
1745
4222
|
// Accumulate text to find from keystrokes
|
|
1746
4223
|
let keyword = (p.previousFilter || '') + character;
|
|
1747
4224
|
|
|
1748
|
-
let regex = new RegExp(
|
|
4225
|
+
let regex = new RegExp("^".concat(escapeRegex(keyword)), 'i');
|
|
1749
4226
|
|
|
1750
|
-
let
|
|
4227
|
+
let matchIndex = -1;
|
|
1751
4228
|
let item;
|
|
1752
4229
|
|
|
1753
|
-
|
|
4230
|
+
let focusItemIndex = p.focusItemIndex;
|
|
4231
|
+
|
|
4232
|
+
// These are all the possible matches for the text typed in so far
|
|
1754
4233
|
for (let i = 0, count = p.items.length; i < count; i++) {
|
|
4234
|
+
if (matchIndex !== -1 && i < focusItemIndex)
|
|
4235
|
+
continue; // We are only interested in first match + match after the focused item
|
|
4236
|
+
|
|
1755
4237
|
item = p.items[i];
|
|
1756
4238
|
if (regex.test(item.label)) {
|
|
1757
|
-
|
|
4239
|
+
matchIndex = i;
|
|
4240
|
+
if (focusItemIndex === -1 || i >= focusItemIndex)
|
|
4241
|
+
break;
|
|
1758
4242
|
}
|
|
1759
4243
|
}
|
|
1760
4244
|
|
|
1761
4245
|
// Did we find anything?
|
|
1762
|
-
if (
|
|
4246
|
+
if (matchIndex === -1) {
|
|
1763
4247
|
// No... So start over with this character as the only one.
|
|
1764
4248
|
keyword = character;
|
|
1765
|
-
regex = new RegExp(
|
|
4249
|
+
regex = new RegExp("^".concat(escapeRegex(keyword)), 'i');
|
|
1766
4250
|
|
|
1767
4251
|
for (let i = 0, count = p.items.length; i < count; i++) {
|
|
4252
|
+
if (matchIndex !== -1 && i < focusItemIndex)
|
|
4253
|
+
continue; // We are only interested in first match + match after the focused item
|
|
4254
|
+
|
|
1768
4255
|
item = p.items[i];
|
|
1769
4256
|
if (regex.test(item.label)) {
|
|
1770
|
-
|
|
4257
|
+
matchIndex = i;
|
|
4258
|
+
if (focusItemIndex === -1 || i >= focusItemIndex)
|
|
4259
|
+
break;
|
|
1771
4260
|
}
|
|
1772
4261
|
}
|
|
1773
4262
|
}
|
|
1774
4263
|
|
|
1775
|
-
let focusItemIndex = p.focusItemIndex;
|
|
1776
|
-
let matchIndex = -1;
|
|
1777
|
-
|
|
1778
|
-
// Find a match *after* the focused item
|
|
1779
|
-
for (let i = 0, count = matchIndices.length; i < count; i++) {
|
|
1780
|
-
if (matchIndices[i] >= focusItemIndex) {
|
|
1781
|
-
matchIndex = matchIndices[i];
|
|
1782
|
-
break;
|
|
1783
|
-
}
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
|
-
// Find a match from the beginning.
|
|
1787
|
-
if (matchIndex === -1 && matchIndices.length) {
|
|
1788
|
-
matchIndex = matchIndices[0];
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
4264
|
if (matchIndex > -1) {
|
|
1792
4265
|
let next = p.virtualListHelper.getItemElementAt(matchIndex);
|
|
1793
4266
|
this._focus(evt, next || null, matchIndex);
|
|
1794
4267
|
|
|
1795
4268
|
if (!this.isVisible()) {
|
|
1796
|
-
this.triggerItemSelection(null, evt);
|
|
4269
|
+
this.triggerItemSelection(next ? null : p.items[matchIndex], evt);
|
|
1797
4270
|
}
|
|
1798
4271
|
|
|
1799
4272
|
// Record the last filter used
|
|
@@ -1809,7 +4282,7 @@ class DropList {
|
|
|
1809
4282
|
}
|
|
1810
4283
|
}
|
|
1811
4284
|
|
|
1812
|
-
_focus(event, itemEl, itemIndex) {
|
|
4285
|
+
_focus(event, itemEl, itemIndex) {var _item$ItemSymbol4;
|
|
1813
4286
|
const p = this._p;
|
|
1814
4287
|
|
|
1815
4288
|
if (!itemIndex && itemEl) {
|
|
@@ -1835,12 +4308,12 @@ class DropList {
|
|
|
1835
4308
|
|
|
1836
4309
|
this.blurFocusedItem();
|
|
1837
4310
|
|
|
1838
|
-
focusItemEl.classList.add(
|
|
4311
|
+
focusItemEl.classList.add("".concat(p.baseClassName, "__item_focus"));
|
|
1839
4312
|
p.focusItemEl = focusItemEl;
|
|
1840
4313
|
p.focusItemIndex = itemIndex;
|
|
1841
4314
|
|
|
1842
4315
|
const item = p.items[itemIndex];
|
|
1843
|
-
this._trigger('itemfocus', { value: item.value, item: item[ItemSymbol$1]
|
|
4316
|
+
this._trigger('itemfocus', { value: item.value, item: (_item$ItemSymbol4 = item[ItemSymbol$1]) !== null && _item$ItemSymbol4 !== void 0 ? _item$ItemSymbol4 : item, event: event, el: focusItemEl });
|
|
1844
4317
|
}
|
|
1845
4318
|
|
|
1846
4319
|
_delayBlurItemOnBlur() {
|
|
@@ -2001,7 +4474,7 @@ class DropList {
|
|
|
2001
4474
|
if (!p.multi)
|
|
2002
4475
|
return this;
|
|
2003
4476
|
|
|
2004
|
-
if (item._group) {
|
|
4477
|
+
if (item._group) {var _item$ItemSymbol5;
|
|
2005
4478
|
// Now loop through children below the group
|
|
2006
4479
|
|
|
2007
4480
|
let affectedItems = 0;
|
|
@@ -2010,7 +4483,7 @@ class DropList {
|
|
|
2010
4483
|
let items = p.items;
|
|
2011
4484
|
let groupIndex = items.indexOf(item);
|
|
2012
4485
|
|
|
2013
|
-
for (let i = groupIndex + 1, len = items.length; i < len; i++) {
|
|
4486
|
+
for (let i = groupIndex + 1, len = items.length; i < len; i++) {var _next$ItemSymbol;
|
|
2014
4487
|
let next = items[i];
|
|
2015
4488
|
|
|
2016
4489
|
// Hit the next group, break out
|
|
@@ -2029,13 +4502,13 @@ class DropList {
|
|
|
2029
4502
|
// Update DOM
|
|
2030
4503
|
let nextEl = p.virtualListHelper.getItemElementAt(i);
|
|
2031
4504
|
if (nextEl) {
|
|
2032
|
-
DomCompat.toggleClass(nextEl,
|
|
4505
|
+
DomCompat.toggleClass(nextEl, "".concat(p.baseClassName, "__item_checked"), item._checked);
|
|
2033
4506
|
}
|
|
2034
4507
|
|
|
2035
4508
|
// Fire event
|
|
2036
4509
|
this._trigger('check', {
|
|
2037
4510
|
value: next.value,
|
|
2038
|
-
item: next[ItemSymbol$1]
|
|
4511
|
+
item: (_next$ItemSymbol = next[ItemSymbol$1]) !== null && _next$ItemSymbol !== void 0 ? _next$ItemSymbol : next,
|
|
2039
4512
|
checked: next._checked,
|
|
2040
4513
|
isGroup: next._group,
|
|
2041
4514
|
isCheckingGroup: true
|
|
@@ -2046,7 +4519,7 @@ class DropList {
|
|
|
2046
4519
|
// Fire event
|
|
2047
4520
|
this._trigger('groupcheck', {
|
|
2048
4521
|
value: item.value,
|
|
2049
|
-
item: item[ItemSymbol$1]
|
|
4522
|
+
item: (_item$ItemSymbol5 = item[ItemSymbol$1]) !== null && _item$ItemSymbol5 !== void 0 ? _item$ItemSymbol5 : item,
|
|
2050
4523
|
affectedItems: affectedItems
|
|
2051
4524
|
});
|
|
2052
4525
|
} else if (p.groupCount > 0 && p.autoCheckGroupChildren) {
|
|
@@ -2105,14 +4578,14 @@ class DropList {
|
|
|
2105
4578
|
// Update DOM
|
|
2106
4579
|
let nextEl = p.virtualListHelper.getItemElementAt(groupIndex);
|
|
2107
4580
|
if (nextEl) {
|
|
2108
|
-
DomCompat.toggleClass(nextEl,
|
|
4581
|
+
DomCompat.toggleClass(nextEl, "".concat(p.baseClassName, "__item_checked"), groupItem._checked);
|
|
2109
4582
|
}
|
|
2110
4583
|
|
|
2111
|
-
if (fireEvents) {
|
|
4584
|
+
if (fireEvents) {var _groupItem$ItemSymbol;
|
|
2112
4585
|
// Fire event
|
|
2113
4586
|
this._trigger('check', {
|
|
2114
4587
|
value: groupItem.value,
|
|
2115
|
-
item: groupItem[ItemSymbol$1]
|
|
4588
|
+
item: (_groupItem$ItemSymbol = groupItem[ItemSymbol$1]) !== null && _groupItem$ItemSymbol !== void 0 ? _groupItem$ItemSymbol : groupItem,
|
|
2116
4589
|
checked: groupItem._checked,
|
|
2117
4590
|
isGroup: groupItem._group,
|
|
2118
4591
|
isCheckingGroup: false
|
|
@@ -2197,7 +4670,7 @@ class DropList {
|
|
|
2197
4670
|
|
|
2198
4671
|
if (!p.renderItem || p.renderItem(item[ItemSymbol$1] || item, itemEl) === false) {
|
|
2199
4672
|
itemEl.appendChild(Dom.createElement('span', {
|
|
2200
|
-
class:
|
|
4673
|
+
class: "".concat(p.baseClassName, "__item_label"),
|
|
2201
4674
|
textContent: item.label
|
|
2202
4675
|
}));
|
|
2203
4676
|
|
|
@@ -2256,7 +4729,7 @@ class DropList {
|
|
|
2256
4729
|
if (scrollWidth > newOuterWidth) {
|
|
2257
4730
|
// consider scrollWidth delta
|
|
2258
4731
|
let delta = scrollWidth - newOuterWidth;
|
|
2259
|
-
el.style.width =
|
|
4732
|
+
el.style.width = "".concat(parseFloat(el.style.width) + delta, "px");
|
|
2260
4733
|
newOuterWidth = scrollWidth;
|
|
2261
4734
|
}
|
|
2262
4735
|
|
|
@@ -2442,7 +4915,7 @@ const defaultMultiPlaceholderFormatter = (items, labelProp) => {
|
|
|
2442
4915
|
let title = items[0][labelProp] + '';
|
|
2443
4916
|
|
|
2444
4917
|
if (items.length > 1) {
|
|
2445
|
-
title +=
|
|
4918
|
+
title += " (+".concat(items.length - 1, ")");
|
|
2446
4919
|
}
|
|
2447
4920
|
|
|
2448
4921
|
return title;
|
|
@@ -2599,9 +5072,9 @@ class SelectBox {
|
|
|
2599
5072
|
const target = /**Element*/evt.target;
|
|
2600
5073
|
|
|
2601
5074
|
if (!el.contains(evt.relatedTarget) &&
|
|
2602
|
-
!hasClass(target,
|
|
2603
|
-
!hasClass(target,
|
|
2604
|
-
let field = el.querySelector(
|
|
5075
|
+
!hasClass(target, "".concat(p.baseClassName, "__search_field")) &&
|
|
5076
|
+
!hasClass(target, "".concat(p.baseClassName, "__item"))) {
|
|
5077
|
+
let field = el.querySelector(".".concat(p.baseClassName, "__search_field"));
|
|
2605
5078
|
field && field.focus();
|
|
2606
5079
|
}
|
|
2607
5080
|
}, true);
|
|
@@ -2621,7 +5094,7 @@ class SelectBox {
|
|
|
2621
5094
|
clearTimeout(t);
|
|
2622
5095
|
}
|
|
2623
5096
|
t = setTimeout(() => {
|
|
2624
|
-
DomCompat.toggleClass(el,
|
|
5097
|
+
DomCompat.toggleClass(el, "".concat(p.baseClassName, "__focus"), el.contains(document.activeElement));
|
|
2625
5098
|
});
|
|
2626
5099
|
};
|
|
2627
5100
|
})();
|
|
@@ -2680,7 +5153,7 @@ class SelectBox {
|
|
|
2680
5153
|
return this;
|
|
2681
5154
|
}
|
|
2682
5155
|
|
|
2683
|
-
destroy() {
|
|
5156
|
+
destroy() {var _p$resizeObserver;
|
|
2684
5157
|
if (this[DestroyedSymbol])
|
|
2685
5158
|
return;
|
|
2686
5159
|
this[DestroyedSymbol] = true;
|
|
@@ -2728,7 +5201,7 @@ class SelectBox {
|
|
|
2728
5201
|
p.el.removeAttribute('aria-expanded');
|
|
2729
5202
|
}
|
|
2730
5203
|
|
|
2731
|
-
p.resizeObserver
|
|
5204
|
+
(_p$resizeObserver = p.resizeObserver) === null || _p$resizeObserver === void 0 || _p$resizeObserver.disconnect();
|
|
2732
5205
|
|
|
2733
5206
|
this._p = null;
|
|
2734
5207
|
}
|
|
@@ -3857,10 +6330,10 @@ class SelectBox {
|
|
|
3857
6330
|
if (!p.input) {
|
|
3858
6331
|
p.inputWrapper = Dom.createElement('span',
|
|
3859
6332
|
{
|
|
3860
|
-
class:
|
|
6333
|
+
class: "".concat(p.baseClassName, "__search_wrapper")
|
|
3861
6334
|
},
|
|
3862
6335
|
p.input = Dom.createElement('input', {
|
|
3863
|
-
class:
|
|
6336
|
+
class: "".concat(p.baseClassName, "__search_field"),
|
|
3864
6337
|
type: 'search',
|
|
3865
6338
|
autocomplete: 'off',
|
|
3866
6339
|
autocorrect: 'off',
|
|
@@ -3889,28 +6362,28 @@ class SelectBox {
|
|
|
3889
6362
|
const lastActiveElement = document.activeElement;
|
|
3890
6363
|
|
|
3891
6364
|
p.list = Dom.createElement('ul', {
|
|
3892
|
-
class:
|
|
6365
|
+
class: "".concat(p.baseClassName, "__list")
|
|
3893
6366
|
});
|
|
3894
6367
|
p.el.appendChild(p.list);
|
|
3895
6368
|
p.list.appendChild(p.inputWrapper);
|
|
3896
|
-
p.el.classList.remove(
|
|
3897
|
-
p.el.classList.add(
|
|
6369
|
+
p.el.classList.remove("".concat(p.baseClassName, "__single"));
|
|
6370
|
+
p.el.classList.add("".concat(p.baseClassName, "__multi"));
|
|
3898
6371
|
|
|
3899
6372
|
// Hook clear and remove
|
|
3900
6373
|
p.sink.
|
|
3901
6374
|
add(p.list, 'click', (evt) => {
|
|
3902
|
-
if (!Dom.closestUntil(evt.target,
|
|
6375
|
+
if (!Dom.closestUntil(evt.target, ".".concat(p.baseClassName, "__item_remove"), evt.currentTarget))
|
|
3903
6376
|
return;
|
|
3904
6377
|
|
|
3905
6378
|
if (p.disabled) return;
|
|
3906
6379
|
|
|
3907
6380
|
this._removeMultiItemFromEvent(
|
|
3908
6381
|
/**@type Element*/
|
|
3909
|
-
Dom.closestUntil(evt.target,
|
|
6382
|
+
Dom.closestUntil(evt.target, ".".concat(p.baseClassName, "__item"), evt.currentTarget),
|
|
3910
6383
|
evt);
|
|
3911
6384
|
}).
|
|
3912
6385
|
add(p.list, 'keydown', ( /**KeyboardEvent*/evt) => {
|
|
3913
|
-
if (!Dom.closestUntil(evt.target,
|
|
6386
|
+
if (!Dom.closestUntil(evt.target, ".".concat(p.baseClassName, "__item"), evt.currentTarget))
|
|
3914
6387
|
return;
|
|
3915
6388
|
|
|
3916
6389
|
this._handleMultiKeydown(evt);
|
|
@@ -3937,12 +6410,12 @@ class SelectBox {
|
|
|
3937
6410
|
const lastActiveElement = document.activeElement;
|
|
3938
6411
|
|
|
3939
6412
|
p.singleWrapper = Dom.createElement('div', {
|
|
3940
|
-
class:
|
|
6413
|
+
class: "".concat(p.baseClassName, "__single_wrapper")
|
|
3941
6414
|
});
|
|
3942
6415
|
p.el.appendChild(p.singleWrapper);
|
|
3943
6416
|
p.el.appendChild(p.inputWrapper);
|
|
3944
|
-
p.el.classList.remove(
|
|
3945
|
-
p.el.classList.add(
|
|
6417
|
+
p.el.classList.remove("".concat(p.baseClassName, "__multi"));
|
|
6418
|
+
p.el.classList.add("".concat(p.baseClassName, "__single"));
|
|
3946
6419
|
|
|
3947
6420
|
if (lastActiveElement === p.input)
|
|
3948
6421
|
p.input.focus();
|
|
@@ -3953,24 +6426,24 @@ class SelectBox {
|
|
|
3953
6426
|
|
|
3954
6427
|
if (p.hasOpenIndicator !== !!p.openIndicator) {
|
|
3955
6428
|
if (p.hasOpenIndicator) {
|
|
3956
|
-
p.openIndicator = Dom.createElement('span', { class:
|
|
6429
|
+
p.openIndicator = Dom.createElement('span', { class: "".concat(p.baseClassName, "__open_indicator") });
|
|
3957
6430
|
p.el.appendChild(p.openIndicator);
|
|
3958
6431
|
} else {
|
|
3959
6432
|
DomCompat.remove(p.openIndicator);
|
|
3960
6433
|
delete p.openIndicator;
|
|
3961
|
-
p.el.classList.remove(
|
|
6434
|
+
p.el.classList.remove("".concat(p.baseClassName, "__has_open_indicator"));
|
|
3962
6435
|
}
|
|
3963
6436
|
}
|
|
3964
6437
|
|
|
3965
6438
|
if (p.isLoadingMode !== !!p.spinner) {
|
|
3966
6439
|
if (p.isLoadingMode) {
|
|
3967
|
-
p.spinner = Dom.createElement('span', { class:
|
|
6440
|
+
p.spinner = Dom.createElement('span', { class: "".concat(p.baseClassName, "__spinner") });
|
|
3968
6441
|
p.el.appendChild(p.spinner);
|
|
3969
|
-
p.el.classList.add(
|
|
6442
|
+
p.el.classList.add("".concat(p.baseClassName, "__has_spinner"));
|
|
3970
6443
|
} else {
|
|
3971
6444
|
DomCompat.remove(p.spinner);
|
|
3972
6445
|
delete p.spinner;
|
|
3973
|
-
p.el.classList.remove(
|
|
6446
|
+
p.el.classList.remove("".concat(p.baseClassName, "__has_spinner"));
|
|
3974
6447
|
}
|
|
3975
6448
|
}
|
|
3976
6449
|
}
|
|
@@ -3987,33 +6460,33 @@ class SelectBox {
|
|
|
3987
6460
|
let classes = [p.baseClassName];
|
|
3988
6461
|
|
|
3989
6462
|
if (p.multi)
|
|
3990
|
-
classes.push(
|
|
3991
|
-
classes.push(
|
|
6463
|
+
classes.push("".concat(p.baseClassName, "__multi"));else
|
|
6464
|
+
classes.push("".concat(p.baseClassName, "__single"));
|
|
3992
6465
|
|
|
3993
6466
|
if (this.isListOpen())
|
|
3994
|
-
classes.push(
|
|
3995
|
-
classes.push(
|
|
6467
|
+
classes.push("".concat(p.baseClassName, "__open_list"));else
|
|
6468
|
+
classes.push("".concat(p.baseClassName, "__closed_list"));
|
|
3996
6469
|
|
|
3997
6470
|
if (p.hasOpenIndicator)
|
|
3998
|
-
classes.push(
|
|
6471
|
+
classes.push("".concat(p.baseClassName, "__has_open_indicator"));
|
|
3999
6472
|
|
|
4000
6473
|
if (p.clearButtonWrapper)
|
|
4001
|
-
classes.push(
|
|
6474
|
+
classes.push("".concat(p.baseClassName, "__has_clear"));
|
|
4002
6475
|
|
|
4003
6476
|
if (p.isLoadingMode)
|
|
4004
|
-
classes.push(
|
|
6477
|
+
classes.push("".concat(p.baseClassName, "__has_spinner"));
|
|
4005
6478
|
|
|
4006
6479
|
if (p.selectedValues.length === 0)
|
|
4007
|
-
classes.push(
|
|
6480
|
+
classes.push("".concat(p.baseClassName, "__empty_selection"));
|
|
4008
6481
|
|
|
4009
6482
|
if (p.selectedValues.length > 0)
|
|
4010
|
-
classes.push(
|
|
6483
|
+
classes.push("".concat(p.baseClassName, "__has_selection"));
|
|
4011
6484
|
|
|
4012
6485
|
if (p.searchable || p.multi)
|
|
4013
|
-
classes.push(
|
|
6486
|
+
classes.push("".concat(p.baseClassName, "__searchable"));
|
|
4014
6487
|
|
|
4015
6488
|
if (p.direction === 'ltr' || p.direction === 'rtl')
|
|
4016
|
-
classes.push(
|
|
6489
|
+
classes.push("".concat(p.baseClassName, "__") + p.direction);
|
|
4017
6490
|
|
|
4018
6491
|
if (p.additionalClasses) {
|
|
4019
6492
|
classes = classes.concat(p.additionalClasses);
|
|
@@ -4087,8 +6560,8 @@ class SelectBox {
|
|
|
4087
6560
|
case 'show:before':{
|
|
4088
6561
|
p.dropListVisible = true;
|
|
4089
6562
|
p.el.setAttribute('aria-expanded', 'true');
|
|
4090
|
-
p.el.classList.add(
|
|
4091
|
-
p.el.classList.remove(
|
|
6563
|
+
p.el.classList.add("".concat(p.baseClassName, "__open_list"));
|
|
6564
|
+
p.el.classList.remove("".concat(p.baseClassName, "__closed_list"));
|
|
4092
6565
|
|
|
4093
6566
|
if (p.resortBySelectionNeeded && p.sortListCheckedFirst && p.multi)
|
|
4094
6567
|
p.itemsChanged = true;
|
|
@@ -4117,8 +6590,8 @@ class SelectBox {
|
|
|
4117
6590
|
case 'hide':{
|
|
4118
6591
|
p.dropListVisible = false;
|
|
4119
6592
|
p.el.setAttribute('aria-expanded', 'false');
|
|
4120
|
-
p.el.classList.remove(
|
|
4121
|
-
p.el.classList.add(
|
|
6593
|
+
p.el.classList.remove("".concat(p.baseClassName, "__open_list"));
|
|
6594
|
+
p.el.classList.add("".concat(p.baseClassName, "__closed_list"));
|
|
4122
6595
|
|
|
4123
6596
|
if (!p.multi) {
|
|
4124
6597
|
this._setInputText('');
|
|
@@ -4442,7 +6915,7 @@ class SelectBox {
|
|
|
4442
6915
|
if (this.isDisabled())
|
|
4443
6916
|
return;
|
|
4444
6917
|
|
|
4445
|
-
if (Dom.closestUntil(evt.target,
|
|
6918
|
+
if (Dom.closestUntil(evt.target, ".".concat(p.baseClassName, "__item,.").concat(p.baseClassName, "__clear"), p.el))
|
|
4446
6919
|
return;
|
|
4447
6920
|
|
|
4448
6921
|
let onTouchCancel = () => {
|
|
@@ -4502,13 +6975,13 @@ class SelectBox {
|
|
|
4502
6975
|
return true;
|
|
4503
6976
|
}
|
|
4504
6977
|
|
|
4505
|
-
_movePrev() {
|
|
6978
|
+
_movePrev() {var _p$filteredItems;
|
|
4506
6979
|
const p = this._p;
|
|
4507
6980
|
|
|
4508
6981
|
if (this.isMultiEnabled()) return;
|
|
4509
6982
|
|
|
4510
6983
|
let selectedItems = this.getSelectedItems();
|
|
4511
|
-
let items = p.filteredItems
|
|
6984
|
+
let items = (_p$filteredItems = p.filteredItems) !== null && _p$filteredItems !== void 0 ? _p$filteredItems : p.items;
|
|
4512
6985
|
if (p.currentItemsView && p.currentItemsView.length === items.length)
|
|
4513
6986
|
items = p.currentItemsView;
|
|
4514
6987
|
if (items.length + (p.clearable ? 1 : 0) > 1) {
|
|
@@ -4525,13 +6998,13 @@ class SelectBox {
|
|
|
4525
6998
|
}
|
|
4526
6999
|
}
|
|
4527
7000
|
|
|
4528
|
-
_moveNext() {
|
|
7001
|
+
_moveNext() {var _p$filteredItems2;
|
|
4529
7002
|
const p = this._p;
|
|
4530
7003
|
|
|
4531
7004
|
if (this.isMultiEnabled()) return;
|
|
4532
7005
|
|
|
4533
7006
|
let selectedItems = this.getSelectedItems();
|
|
4534
|
-
let items = p.filteredItems
|
|
7007
|
+
let items = (_p$filteredItems2 = p.filteredItems) !== null && _p$filteredItems2 !== void 0 ? _p$filteredItems2 : p.items;
|
|
4535
7008
|
if (p.currentItemsView && p.currentItemsView.length === items.length)
|
|
4536
7009
|
items = p.currentItemsView;
|
|
4537
7010
|
if (items.length + (p.clearable ? 1 : 0) > 1) {
|
|
@@ -4802,9 +7275,9 @@ class SelectBox {
|
|
|
4802
7275
|
case 'removeMultiItemRestElement':{
|
|
4803
7276
|
if (!p.showSelection) {
|
|
4804
7277
|
this._syncPlaceholder();
|
|
4805
|
-
} else {
|
|
7278
|
+
} else {var _itemEl$ItemSymbol;
|
|
4806
7279
|
let itemEl = p.multiItemEls[p.multiItemEls.length - 1];
|
|
4807
|
-
if (itemEl
|
|
7280
|
+
if ((itemEl === null || itemEl === void 0 || (_itemEl$ItemSymbol = itemEl[ItemSymbol]) === null || _itemEl$ItemSymbol === void 0 ? void 0 : _itemEl$ItemSymbol[p.valueProp]) === RestMultiItemsSymbol) {
|
|
4808
7281
|
this._removeMultiItemElementByIndex(p.multiItemEls.length - 1);
|
|
4809
7282
|
}
|
|
4810
7283
|
}
|
|
@@ -4844,12 +7317,12 @@ class SelectBox {
|
|
|
4844
7317
|
_removeMultiItemElementByIndex(index) {
|
|
4845
7318
|
const p = this._p,multiItemEls = p.multiItemEls;
|
|
4846
7319
|
|
|
4847
|
-
if (multiItemEls.length > index) {
|
|
7320
|
+
if (multiItemEls.length > index) {var _p$unrenderRestMultiI;
|
|
4848
7321
|
const itemEl = multiItemEls[index];
|
|
4849
7322
|
const item = itemEl[ItemSymbol];
|
|
4850
7323
|
|
|
4851
|
-
let unrender = item
|
|
4852
|
-
p.unrenderRestMultiItem
|
|
7324
|
+
let unrender = (item === null || item === void 0 ? void 0 : item[p.valueProp]) === RestMultiItemsSymbol ? (_p$unrenderRestMultiI =
|
|
7325
|
+
p.unrenderRestMultiItem) !== null && _p$unrenderRestMultiI !== void 0 ? _p$unrenderRestMultiI : p.unrenderMultiItem :
|
|
4853
7326
|
p.unrenderMultiItem;
|
|
4854
7327
|
|
|
4855
7328
|
if (unrender && itemEl.childNodes.length > 0) {
|
|
@@ -4891,11 +7364,11 @@ class SelectBox {
|
|
|
4891
7364
|
* @param {Element} itemEl
|
|
4892
7365
|
* @private
|
|
4893
7366
|
*/
|
|
4894
|
-
_renderMultiItemContent(item, itemEl) {
|
|
7367
|
+
_renderMultiItemContent(item, itemEl) {var _p$renderRestMultiIte;
|
|
4895
7368
|
const p = this._p;
|
|
4896
7369
|
|
|
4897
|
-
let render = item[p.valueProp] === RestMultiItemsSymbol ?
|
|
4898
|
-
p.renderRestMultiItem
|
|
7370
|
+
let render = item[p.valueProp] === RestMultiItemsSymbol ? (_p$renderRestMultiIte =
|
|
7371
|
+
p.renderRestMultiItem) !== null && _p$renderRestMultiIte !== void 0 ? _p$renderRestMultiIte : p.renderMultiItem :
|
|
4899
7372
|
p.renderMultiItem;
|
|
4900
7373
|
|
|
4901
7374
|
if (!render || render(item, itemEl) === false) {
|
|
@@ -4931,8 +7404,8 @@ class SelectBox {
|
|
|
4931
7404
|
let items = p.selectedItems.slice(0);
|
|
4932
7405
|
let count = (p.treatGroupSelectionAsItems ? items : items.filter((x) => !x._group)).length - p.maxMultiItems;
|
|
4933
7406
|
let label = p.multiItemsRestLabelProvider ?
|
|
4934
|
-
p.multiItemsRestLabelProvider(count, items) :
|
|
4935
|
-
|
|
7407
|
+
p.multiItemsRestLabelProvider(count, items) : "+ ".concat(
|
|
7408
|
+
count);
|
|
4936
7409
|
|
|
4937
7410
|
this._addMultiItemElement({
|
|
4938
7411
|
items: items,
|
|
@@ -4953,12 +7426,12 @@ class SelectBox {
|
|
|
4953
7426
|
if (!p.clearButtonWrapper) {
|
|
4954
7427
|
p.clearButtonWrapper = Dom.createElement(
|
|
4955
7428
|
p.multi ? 'li' : 'span',
|
|
4956
|
-
{ class:
|
|
7429
|
+
{ class: "".concat(p.baseClassName, "__clear") },
|
|
4957
7430
|
p.clearButton = Dom.createElement('button'));
|
|
4958
7431
|
if (p.multi)
|
|
4959
7432
|
DomCompat.append(p.list, p.clearButtonWrapper);else
|
|
4960
7433
|
DomCompat.append(p.el, p.clearButtonWrapper);
|
|
4961
|
-
p.el.classList.add(
|
|
7434
|
+
p.el.classList.add("".concat(p.baseClassName, "__has_clear"));
|
|
4962
7435
|
|
|
4963
7436
|
p.sink.add(p.clearButton, 'click', () => {
|
|
4964
7437
|
if (this.isDisabled()) return;
|
|
@@ -4972,7 +7445,7 @@ class SelectBox {
|
|
|
4972
7445
|
DomCompat.remove(p.clearButtonWrapper);
|
|
4973
7446
|
delete p.clearButtonWrapper;
|
|
4974
7447
|
delete p.clearButton;
|
|
4975
|
-
p.el.classList.remove(
|
|
7448
|
+
p.el.classList.remove("".concat(p.baseClassName, "__has_clear"));
|
|
4976
7449
|
}
|
|
4977
7450
|
}
|
|
4978
7451
|
}
|
|
@@ -5106,15 +7579,15 @@ class SelectBox {
|
|
|
5106
7579
|
if (DomCompat.getRootNode(p.el) !== document)
|
|
5107
7580
|
return this;
|
|
5108
7581
|
|
|
5109
|
-
DomCompat.toggleClass(p.el,
|
|
5110
|
-
DomCompat.toggleClass(p.el,
|
|
7582
|
+
DomCompat.toggleClass(p.el, "".concat(p.baseClassName, "__empty_selection"), p.selectedValues.length === 0);
|
|
7583
|
+
DomCompat.toggleClass(p.el, "".concat(p.baseClassName, "__has_selection"), p.selectedValues.length > 0);
|
|
5111
7584
|
|
|
5112
7585
|
if (p.searchable || p.multi) {
|
|
5113
7586
|
if (p.input) p.input.readOnly = false;
|
|
5114
|
-
p.el.classList.add(
|
|
7587
|
+
p.el.classList.add("".concat(p.baseClassName, "__searchable"));
|
|
5115
7588
|
} else {
|
|
5116
7589
|
if (p.input) p.input.readOnly = true;
|
|
5117
|
-
p.el.classList.remove(
|
|
7590
|
+
p.el.classList.remove("".concat(p.baseClassName, "__searchable"));
|
|
5118
7591
|
}
|
|
5119
7592
|
|
|
5120
7593
|
// Update input size
|
|
@@ -5145,24 +7618,24 @@ class SelectBox {
|
|
|
5145
7618
|
* @returns {Element|null}
|
|
5146
7619
|
* @private
|
|
5147
7620
|
*/
|
|
5148
|
-
_renderMultiItem(item) {
|
|
7621
|
+
_renderMultiItem(item) {var _item$multiItemLabelP;
|
|
5149
7622
|
const p = this._p;
|
|
5150
7623
|
|
|
5151
7624
|
const labelProp = p.labelProp,
|
|
5152
7625
|
multiItemLabelProp = p.multiItemLabelProp;
|
|
5153
|
-
const label = item[multiItemLabelProp]
|
|
7626
|
+
const label = (_item$multiItemLabelP = item[multiItemLabelProp]) !== null && _item$multiItemLabelP !== void 0 ? _item$multiItemLabelP : item[labelProp];
|
|
5154
7627
|
if (label === false)
|
|
5155
7628
|
return null;
|
|
5156
7629
|
|
|
5157
7630
|
const itemEl = Dom.createElement('li',
|
|
5158
7631
|
{
|
|
5159
|
-
class:
|
|
7632
|
+
class: "".concat(p.baseClassName, "__item"),
|
|
5160
7633
|
tabindex: '0',
|
|
5161
7634
|
title: label
|
|
5162
7635
|
},
|
|
5163
7636
|
[
|
|
5164
7637
|
Dom.createElement('span', {
|
|
5165
|
-
class:
|
|
7638
|
+
class: "".concat(p.baseClassName, "__item_remove"),
|
|
5166
7639
|
role: 'presentation'
|
|
5167
7640
|
})]
|
|
5168
7641
|
|
|
@@ -5189,12 +7662,12 @@ class SelectBox {
|
|
|
5189
7662
|
if (/key/.test(originatingEvent.type)) {
|
|
5190
7663
|
const kEvent = /**@type KeyboardEvent*/originatingEvent;
|
|
5191
7664
|
if (kEvent.key === keycodeJs.VALUE_DELETE) {// Delete
|
|
5192
|
-
nextFocus = Dom.next(itemEl,
|
|
7665
|
+
nextFocus = Dom.next(itemEl, ".".concat(p.baseClassName, "__item,.").concat(p.baseClassName, "__search_wrapper"));
|
|
5193
7666
|
} else if (kEvent.key === keycodeJs.VALUE_BACK_SPACE) {// Backspace
|
|
5194
|
-
nextFocus = Dom.prev(itemEl,
|
|
7667
|
+
nextFocus = Dom.prev(itemEl, ".".concat(p.baseClassName, "__item,.").concat(p.baseClassName, "__search_wrapper"));
|
|
5195
7668
|
}
|
|
5196
7669
|
} else if (/click|mouse|touch/.test(originatingEvent.type)) {
|
|
5197
|
-
nextFocus = Dom.next(itemEl,
|
|
7670
|
+
nextFocus = Dom.next(itemEl, ".".concat(p.baseClassName, "__item,.").concat(p.baseClassName, "__search_wrapper"));
|
|
5198
7671
|
}
|
|
5199
7672
|
|
|
5200
7673
|
const item = itemEl[ItemSymbol],value = item[p.valueProp];
|
|
@@ -5252,10 +7725,10 @@ class SelectBox {
|
|
|
5252
7725
|
}
|
|
5253
7726
|
|
|
5254
7727
|
if (!nextFocus) {
|
|
5255
|
-
nextFocus = p.el.querySelector(
|
|
7728
|
+
nextFocus = p.el.querySelector(".".concat(p.baseClassName, "__item, .").concat(p.baseClassName, "__search_field"));
|
|
5256
7729
|
}
|
|
5257
7730
|
|
|
5258
|
-
if (hasClass(nextFocus,
|
|
7731
|
+
if (hasClass(nextFocus, "".concat(p.baseClassName, "__search_wrapper"))) {
|
|
5259
7732
|
nextFocus = nextFocus.querySelector('input');
|
|
5260
7733
|
}
|
|
5261
7734
|
|
|
@@ -5335,8 +7808,8 @@ class SelectBox {
|
|
|
5335
7808
|
const input = p.input,backBufferEl = p.inputBackBuffer;
|
|
5336
7809
|
|
|
5337
7810
|
let inputValue = input.value || input.placeholder;
|
|
5338
|
-
DomCompat.toggleClass(el,
|
|
5339
|
-
DomCompat.toggleClass(el,
|
|
7811
|
+
DomCompat.toggleClass(el, "".concat(p.baseClassName, "__has_input"), !!inputValue);
|
|
7812
|
+
DomCompat.toggleClass(el, "".concat(p.baseClassName, "__empty_input"), !inputValue);
|
|
5340
7813
|
|
|
5341
7814
|
let hasResize = false;
|
|
5342
7815
|
|
|
@@ -5365,7 +7838,7 @@ class SelectBox {
|
|
|
5365
7838
|
let contentWidth = Css.getElementWidth(p.list || el); // calculate width
|
|
5366
7839
|
contentWidth -= beforeWidth + afterWidth;
|
|
5367
7840
|
|
|
5368
|
-
input.style.width =
|
|
7841
|
+
input.style.width = "".concat(contentWidth, "px");
|
|
5369
7842
|
|
|
5370
7843
|
hasResize = true; // We may want to track the resize here better to avoid unnecessary event
|
|
5371
7844
|
} else {
|
|
@@ -5393,7 +7866,7 @@ class SelectBox {
|
|
|
5393
7866
|
if (scrollWidth > newWidth) {
|
|
5394
7867
|
// consider scrollWidth delta
|
|
5395
7868
|
let delta = scrollWidth - newWidth;
|
|
5396
|
-
input.style.width =
|
|
7869
|
+
input.style.width = "".concat(parseFloat(input.style.width) + delta, "px");
|
|
5397
7870
|
|
|
5398
7871
|
newWidth += delta;
|
|
5399
7872
|
}
|
|
@@ -5494,16 +7967,16 @@ class SelectBox {
|
|
|
5494
7967
|
let nextFocus;
|
|
5495
7968
|
|
|
5496
7969
|
if (event.key === (isRtl ? keycodeJs.VALUE_LEFT : keycodeJs.VALUE_RIGHT)) {// Next arrow
|
|
5497
|
-
nextFocus = Dom.next( /**@type Element*/event.target,
|
|
5498
|
-
if (hasClass(nextFocus,
|
|
7970
|
+
nextFocus = Dom.next( /**@type Element*/event.target, ".".concat(p.baseClassName, "__item,.").concat(p.baseClassName, "__search_wrapper"));
|
|
7971
|
+
if (hasClass(nextFocus, "".concat(p.baseClassName, "__search_wrapper"))) {
|
|
5499
7972
|
nextFocus = nextFocus.querySelector('input');
|
|
5500
7973
|
}
|
|
5501
7974
|
nextFocus && nextFocus.focus();
|
|
5502
7975
|
|
|
5503
7976
|
event.preventDefault();
|
|
5504
7977
|
} else if (event.key === (isRtl ? keycodeJs.VALUE_RIGHT : keycodeJs.VALUE_LEFT)) {// Prev arrow
|
|
5505
|
-
nextFocus = Dom.prev( /**@type Element*/event.target,
|
|
5506
|
-
if (hasClass(nextFocus,
|
|
7978
|
+
nextFocus = Dom.prev( /**@type Element*/event.target, ".".concat(p.baseClassName, "__item,.").concat(p.baseClassName, "__search_wrapper"));
|
|
7979
|
+
if (hasClass(nextFocus, "".concat(p.baseClassName, "__search_wrapper"))) {
|
|
5507
7980
|
nextFocus = nextFocus.querySelector('input');
|
|
5508
7981
|
}
|
|
5509
7982
|
nextFocus && nextFocus.focus();
|
|
@@ -5514,7 +7987,7 @@ class SelectBox {
|
|
|
5514
7987
|
let itemEl = event.target;
|
|
5515
7988
|
while (itemEl) {
|
|
5516
7989
|
multiItemEls.push(itemEl);
|
|
5517
|
-
itemEl = Dom.prev( /**@type Element*/itemEl,
|
|
7990
|
+
itemEl = Dom.prev( /**@type Element*/itemEl, ".".concat(p.baseClassName, "__item"));
|
|
5518
7991
|
}
|
|
5519
7992
|
|
|
5520
7993
|
while (multiItemEls.length) {
|
|
@@ -5523,7 +7996,7 @@ class SelectBox {
|
|
|
5523
7996
|
|
|
5524
7997
|
event.preventDefault();
|
|
5525
7998
|
} else if (event.key === keycodeJs.VALUE_DELETE || event.key === keycodeJs.VALUE_BACK_SPACE) {// Delete / Backspace
|
|
5526
|
-
this._removeMultiItemFromEvent(Dom.closestUntil(event.target,
|
|
7999
|
+
this._removeMultiItemFromEvent(Dom.closestUntil(event.target, ".".concat(p.baseClassName, "__item"), p.el), event);
|
|
5527
8000
|
event.preventDefault();
|
|
5528
8001
|
}
|
|
5529
8002
|
}
|