yc-ui2 0.1.0-beta2 → 0.1.0-beta4

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.
@@ -1,7 +1,1771 @@
1
1
  /******/ (function() { // webpackBootstrap
2
- /******/ "use strict";
3
- /******/ // The require scope
4
- /******/ var __webpack_require__ = {};
2
+ /******/ var __webpack_modules__ = ({
3
+
4
+ /***/ 9662:
5
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
6
+
7
+ "use strict";
8
+
9
+ var isCallable = __webpack_require__(614);
10
+ var tryToString = __webpack_require__(6330);
11
+
12
+ var $TypeError = TypeError;
13
+
14
+ // `Assert: IsCallable(argument) is true`
15
+ module.exports = function (argument) {
16
+ if (isCallable(argument)) return argument;
17
+ throw new $TypeError(tryToString(argument) + ' is not a function');
18
+ };
19
+
20
+
21
+ /***/ }),
22
+
23
+ /***/ 9670:
24
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
25
+
26
+ "use strict";
27
+
28
+ var isObject = __webpack_require__(111);
29
+
30
+ var $String = String;
31
+ var $TypeError = TypeError;
32
+
33
+ // `Assert: Type(argument) is Object`
34
+ module.exports = function (argument) {
35
+ if (isObject(argument)) return argument;
36
+ throw new $TypeError($String(argument) + ' is not an object');
37
+ };
38
+
39
+
40
+ /***/ }),
41
+
42
+ /***/ 1318:
43
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
44
+
45
+ "use strict";
46
+
47
+ var toIndexedObject = __webpack_require__(5656);
48
+ var toAbsoluteIndex = __webpack_require__(1400);
49
+ var lengthOfArrayLike = __webpack_require__(6244);
50
+
51
+ // `Array.prototype.{ indexOf, includes }` methods implementation
52
+ var createMethod = function (IS_INCLUDES) {
53
+ return function ($this, el, fromIndex) {
54
+ var O = toIndexedObject($this);
55
+ var length = lengthOfArrayLike(O);
56
+ var index = toAbsoluteIndex(fromIndex, length);
57
+ var value;
58
+ // Array#includes uses SameValueZero equality algorithm
59
+ // eslint-disable-next-line no-self-compare -- NaN check
60
+ if (IS_INCLUDES && el !== el) while (length > index) {
61
+ value = O[index++];
62
+ // eslint-disable-next-line no-self-compare -- NaN check
63
+ if (value !== value) return true;
64
+ // Array#indexOf ignores holes, Array#includes - not
65
+ } else for (;length > index; index++) {
66
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
67
+ } return !IS_INCLUDES && -1;
68
+ };
69
+ };
70
+
71
+ module.exports = {
72
+ // `Array.prototype.includes` method
73
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
74
+ includes: createMethod(true),
75
+ // `Array.prototype.indexOf` method
76
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
77
+ indexOf: createMethod(false)
78
+ };
79
+
80
+
81
+ /***/ }),
82
+
83
+ /***/ 3658:
84
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
85
+
86
+ "use strict";
87
+
88
+ var DESCRIPTORS = __webpack_require__(9781);
89
+ var isArray = __webpack_require__(3157);
90
+
91
+ var $TypeError = TypeError;
92
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
93
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
94
+
95
+ // Safari < 13 does not throw an error in this case
96
+ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
97
+ // makes no sense without proper strict mode support
98
+ if (this !== undefined) return true;
99
+ try {
100
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
101
+ Object.defineProperty([], 'length', { writable: false }).length = 1;
102
+ } catch (error) {
103
+ return error instanceof TypeError;
104
+ }
105
+ }();
106
+
107
+ module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
108
+ if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
109
+ throw new $TypeError('Cannot set read only .length');
110
+ } return O.length = length;
111
+ } : function (O, length) {
112
+ return O.length = length;
113
+ };
114
+
115
+
116
+ /***/ }),
117
+
118
+ /***/ 4326:
119
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
120
+
121
+ "use strict";
122
+
123
+ var uncurryThis = __webpack_require__(1702);
124
+
125
+ var toString = uncurryThis({}.toString);
126
+ var stringSlice = uncurryThis(''.slice);
127
+
128
+ module.exports = function (it) {
129
+ return stringSlice(toString(it), 8, -1);
130
+ };
131
+
132
+
133
+ /***/ }),
134
+
135
+ /***/ 9920:
136
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
137
+
138
+ "use strict";
139
+
140
+ var hasOwn = __webpack_require__(2597);
141
+ var ownKeys = __webpack_require__(3887);
142
+ var getOwnPropertyDescriptorModule = __webpack_require__(1236);
143
+ var definePropertyModule = __webpack_require__(3070);
144
+
145
+ module.exports = function (target, source, exceptions) {
146
+ var keys = ownKeys(source);
147
+ var defineProperty = definePropertyModule.f;
148
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
149
+ for (var i = 0; i < keys.length; i++) {
150
+ var key = keys[i];
151
+ if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
152
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
153
+ }
154
+ }
155
+ };
156
+
157
+
158
+ /***/ }),
159
+
160
+ /***/ 8880:
161
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
162
+
163
+ "use strict";
164
+
165
+ var DESCRIPTORS = __webpack_require__(9781);
166
+ var definePropertyModule = __webpack_require__(3070);
167
+ var createPropertyDescriptor = __webpack_require__(9114);
168
+
169
+ module.exports = DESCRIPTORS ? function (object, key, value) {
170
+ return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
171
+ } : function (object, key, value) {
172
+ object[key] = value;
173
+ return object;
174
+ };
175
+
176
+
177
+ /***/ }),
178
+
179
+ /***/ 9114:
180
+ /***/ (function(module) {
181
+
182
+ "use strict";
183
+
184
+ module.exports = function (bitmap, value) {
185
+ return {
186
+ enumerable: !(bitmap & 1),
187
+ configurable: !(bitmap & 2),
188
+ writable: !(bitmap & 4),
189
+ value: value
190
+ };
191
+ };
192
+
193
+
194
+ /***/ }),
195
+
196
+ /***/ 8052:
197
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
198
+
199
+ "use strict";
200
+
201
+ var isCallable = __webpack_require__(614);
202
+ var definePropertyModule = __webpack_require__(3070);
203
+ var makeBuiltIn = __webpack_require__(6339);
204
+ var defineGlobalProperty = __webpack_require__(3072);
205
+
206
+ module.exports = function (O, key, value, options) {
207
+ if (!options) options = {};
208
+ var simple = options.enumerable;
209
+ var name = options.name !== undefined ? options.name : key;
210
+ if (isCallable(value)) makeBuiltIn(value, name, options);
211
+ if (options.global) {
212
+ if (simple) O[key] = value;
213
+ else defineGlobalProperty(key, value);
214
+ } else {
215
+ try {
216
+ if (!options.unsafe) delete O[key];
217
+ else if (O[key]) simple = true;
218
+ } catch (error) { /* empty */ }
219
+ if (simple) O[key] = value;
220
+ else definePropertyModule.f(O, key, {
221
+ value: value,
222
+ enumerable: false,
223
+ configurable: !options.nonConfigurable,
224
+ writable: !options.nonWritable
225
+ });
226
+ } return O;
227
+ };
228
+
229
+
230
+ /***/ }),
231
+
232
+ /***/ 3072:
233
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
234
+
235
+ "use strict";
236
+
237
+ var global = __webpack_require__(7854);
238
+
239
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
240
+ var defineProperty = Object.defineProperty;
241
+
242
+ module.exports = function (key, value) {
243
+ try {
244
+ defineProperty(global, key, { value: value, configurable: true, writable: true });
245
+ } catch (error) {
246
+ global[key] = value;
247
+ } return value;
248
+ };
249
+
250
+
251
+ /***/ }),
252
+
253
+ /***/ 9781:
254
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
255
+
256
+ "use strict";
257
+
258
+ var fails = __webpack_require__(7293);
259
+
260
+ // Detect IE8's incomplete defineProperty implementation
261
+ module.exports = !fails(function () {
262
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
263
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
264
+ });
265
+
266
+
267
+ /***/ }),
268
+
269
+ /***/ 4154:
270
+ /***/ (function(module) {
271
+
272
+ "use strict";
273
+
274
+ var documentAll = typeof document == 'object' && document.all;
275
+
276
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
277
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
278
+ var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
279
+
280
+ module.exports = {
281
+ all: documentAll,
282
+ IS_HTMLDDA: IS_HTMLDDA
283
+ };
284
+
285
+
286
+ /***/ }),
287
+
288
+ /***/ 317:
289
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
290
+
291
+ "use strict";
292
+
293
+ var global = __webpack_require__(7854);
294
+ var isObject = __webpack_require__(111);
295
+
296
+ var document = global.document;
297
+ // typeof document.createElement is 'object' in old IE
298
+ var EXISTS = isObject(document) && isObject(document.createElement);
299
+
300
+ module.exports = function (it) {
301
+ return EXISTS ? document.createElement(it) : {};
302
+ };
303
+
304
+
305
+ /***/ }),
306
+
307
+ /***/ 7207:
308
+ /***/ (function(module) {
309
+
310
+ "use strict";
311
+
312
+ var $TypeError = TypeError;
313
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
314
+
315
+ module.exports = function (it) {
316
+ if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
317
+ return it;
318
+ };
319
+
320
+
321
+ /***/ }),
322
+
323
+ /***/ 8113:
324
+ /***/ (function(module) {
325
+
326
+ "use strict";
327
+
328
+ module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
329
+
330
+
331
+ /***/ }),
332
+
333
+ /***/ 7392:
334
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
335
+
336
+ "use strict";
337
+
338
+ var global = __webpack_require__(7854);
339
+ var userAgent = __webpack_require__(8113);
340
+
341
+ var process = global.process;
342
+ var Deno = global.Deno;
343
+ var versions = process && process.versions || Deno && Deno.version;
344
+ var v8 = versions && versions.v8;
345
+ var match, version;
346
+
347
+ if (v8) {
348
+ match = v8.split('.');
349
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
350
+ // but their correct versions are not interesting for us
351
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
352
+ }
353
+
354
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
355
+ // so check `userAgent` even if `.v8` exists, but 0
356
+ if (!version && userAgent) {
357
+ match = userAgent.match(/Edge\/(\d+)/);
358
+ if (!match || match[1] >= 74) {
359
+ match = userAgent.match(/Chrome\/(\d+)/);
360
+ if (match) version = +match[1];
361
+ }
362
+ }
363
+
364
+ module.exports = version;
365
+
366
+
367
+ /***/ }),
368
+
369
+ /***/ 748:
370
+ /***/ (function(module) {
371
+
372
+ "use strict";
373
+
374
+ // IE8- don't enum bug keys
375
+ module.exports = [
376
+ 'constructor',
377
+ 'hasOwnProperty',
378
+ 'isPrototypeOf',
379
+ 'propertyIsEnumerable',
380
+ 'toLocaleString',
381
+ 'toString',
382
+ 'valueOf'
383
+ ];
384
+
385
+
386
+ /***/ }),
387
+
388
+ /***/ 2109:
389
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
390
+
391
+ "use strict";
392
+
393
+ var global = __webpack_require__(7854);
394
+ var getOwnPropertyDescriptor = (__webpack_require__(1236).f);
395
+ var createNonEnumerableProperty = __webpack_require__(8880);
396
+ var defineBuiltIn = __webpack_require__(8052);
397
+ var defineGlobalProperty = __webpack_require__(3072);
398
+ var copyConstructorProperties = __webpack_require__(9920);
399
+ var isForced = __webpack_require__(4705);
400
+
401
+ /*
402
+ options.target - name of the target object
403
+ options.global - target is the global object
404
+ options.stat - export as static methods of target
405
+ options.proto - export as prototype methods of target
406
+ options.real - real prototype method for the `pure` version
407
+ options.forced - export even if the native feature is available
408
+ options.bind - bind methods to the target, required for the `pure` version
409
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
410
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
411
+ options.sham - add a flag to not completely full polyfills
412
+ options.enumerable - export as enumerable property
413
+ options.dontCallGetSet - prevent calling a getter on target
414
+ options.name - the .name of the function if it does not match the key
415
+ */
416
+ module.exports = function (options, source) {
417
+ var TARGET = options.target;
418
+ var GLOBAL = options.global;
419
+ var STATIC = options.stat;
420
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
421
+ if (GLOBAL) {
422
+ target = global;
423
+ } else if (STATIC) {
424
+ target = global[TARGET] || defineGlobalProperty(TARGET, {});
425
+ } else {
426
+ target = (global[TARGET] || {}).prototype;
427
+ }
428
+ if (target) for (key in source) {
429
+ sourceProperty = source[key];
430
+ if (options.dontCallGetSet) {
431
+ descriptor = getOwnPropertyDescriptor(target, key);
432
+ targetProperty = descriptor && descriptor.value;
433
+ } else targetProperty = target[key];
434
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
435
+ // contained in target
436
+ if (!FORCED && targetProperty !== undefined) {
437
+ if (typeof sourceProperty == typeof targetProperty) continue;
438
+ copyConstructorProperties(sourceProperty, targetProperty);
439
+ }
440
+ // add a flag to not completely full polyfills
441
+ if (options.sham || (targetProperty && targetProperty.sham)) {
442
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
443
+ }
444
+ defineBuiltIn(target, key, sourceProperty, options);
445
+ }
446
+ };
447
+
448
+
449
+ /***/ }),
450
+
451
+ /***/ 7293:
452
+ /***/ (function(module) {
453
+
454
+ "use strict";
455
+
456
+ module.exports = function (exec) {
457
+ try {
458
+ return !!exec();
459
+ } catch (error) {
460
+ return true;
461
+ }
462
+ };
463
+
464
+
465
+ /***/ }),
466
+
467
+ /***/ 4374:
468
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
469
+
470
+ "use strict";
471
+
472
+ var fails = __webpack_require__(7293);
473
+
474
+ module.exports = !fails(function () {
475
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
476
+ var test = (function () { /* empty */ }).bind();
477
+ // eslint-disable-next-line no-prototype-builtins -- safe
478
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
479
+ });
480
+
481
+
482
+ /***/ }),
483
+
484
+ /***/ 6916:
485
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
486
+
487
+ "use strict";
488
+
489
+ var NATIVE_BIND = __webpack_require__(4374);
490
+
491
+ var call = Function.prototype.call;
492
+
493
+ module.exports = NATIVE_BIND ? call.bind(call) : function () {
494
+ return call.apply(call, arguments);
495
+ };
496
+
497
+
498
+ /***/ }),
499
+
500
+ /***/ 6530:
501
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
502
+
503
+ "use strict";
504
+
505
+ var DESCRIPTORS = __webpack_require__(9781);
506
+ var hasOwn = __webpack_require__(2597);
507
+
508
+ var FunctionPrototype = Function.prototype;
509
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
510
+ var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
511
+
512
+ var EXISTS = hasOwn(FunctionPrototype, 'name');
513
+ // additional protection from minified / mangled / dropped function names
514
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
515
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
516
+
517
+ module.exports = {
518
+ EXISTS: EXISTS,
519
+ PROPER: PROPER,
520
+ CONFIGURABLE: CONFIGURABLE
521
+ };
522
+
523
+
524
+ /***/ }),
525
+
526
+ /***/ 1702:
527
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
528
+
529
+ "use strict";
530
+
531
+ var NATIVE_BIND = __webpack_require__(4374);
532
+
533
+ var FunctionPrototype = Function.prototype;
534
+ var call = FunctionPrototype.call;
535
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
536
+
537
+ module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
538
+ return function () {
539
+ return call.apply(fn, arguments);
540
+ };
541
+ };
542
+
543
+
544
+ /***/ }),
545
+
546
+ /***/ 5005:
547
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
548
+
549
+ "use strict";
550
+
551
+ var global = __webpack_require__(7854);
552
+ var isCallable = __webpack_require__(614);
553
+
554
+ var aFunction = function (argument) {
555
+ return isCallable(argument) ? argument : undefined;
556
+ };
557
+
558
+ module.exports = function (namespace, method) {
559
+ return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];
560
+ };
561
+
562
+
563
+ /***/ }),
564
+
565
+ /***/ 8173:
566
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
567
+
568
+ "use strict";
569
+
570
+ var aCallable = __webpack_require__(9662);
571
+ var isNullOrUndefined = __webpack_require__(8554);
572
+
573
+ // `GetMethod` abstract operation
574
+ // https://tc39.es/ecma262/#sec-getmethod
575
+ module.exports = function (V, P) {
576
+ var func = V[P];
577
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
578
+ };
579
+
580
+
581
+ /***/ }),
582
+
583
+ /***/ 7854:
584
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
585
+
586
+ "use strict";
587
+
588
+ var check = function (it) {
589
+ return it && it.Math === Math && it;
590
+ };
591
+
592
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
593
+ module.exports =
594
+ // eslint-disable-next-line es/no-global-this -- safe
595
+ check(typeof globalThis == 'object' && globalThis) ||
596
+ check(typeof window == 'object' && window) ||
597
+ // eslint-disable-next-line no-restricted-globals -- safe
598
+ check(typeof self == 'object' && self) ||
599
+ check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
600
+ // eslint-disable-next-line no-new-func -- fallback
601
+ (function () { return this; })() || this || Function('return this')();
602
+
603
+
604
+ /***/ }),
605
+
606
+ /***/ 2597:
607
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
608
+
609
+ "use strict";
610
+
611
+ var uncurryThis = __webpack_require__(1702);
612
+ var toObject = __webpack_require__(7908);
613
+
614
+ var hasOwnProperty = uncurryThis({}.hasOwnProperty);
615
+
616
+ // `HasOwnProperty` abstract operation
617
+ // https://tc39.es/ecma262/#sec-hasownproperty
618
+ // eslint-disable-next-line es/no-object-hasown -- safe
619
+ module.exports = Object.hasOwn || function hasOwn(it, key) {
620
+ return hasOwnProperty(toObject(it), key);
621
+ };
622
+
623
+
624
+ /***/ }),
625
+
626
+ /***/ 3501:
627
+ /***/ (function(module) {
628
+
629
+ "use strict";
630
+
631
+ module.exports = {};
632
+
633
+
634
+ /***/ }),
635
+
636
+ /***/ 4664:
637
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
638
+
639
+ "use strict";
640
+
641
+ var DESCRIPTORS = __webpack_require__(9781);
642
+ var fails = __webpack_require__(7293);
643
+ var createElement = __webpack_require__(317);
644
+
645
+ // Thanks to IE8 for its funny defineProperty
646
+ module.exports = !DESCRIPTORS && !fails(function () {
647
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
648
+ return Object.defineProperty(createElement('div'), 'a', {
649
+ get: function () { return 7; }
650
+ }).a !== 7;
651
+ });
652
+
653
+
654
+ /***/ }),
655
+
656
+ /***/ 8361:
657
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
658
+
659
+ "use strict";
660
+
661
+ var uncurryThis = __webpack_require__(1702);
662
+ var fails = __webpack_require__(7293);
663
+ var classof = __webpack_require__(4326);
664
+
665
+ var $Object = Object;
666
+ var split = uncurryThis(''.split);
667
+
668
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
669
+ module.exports = fails(function () {
670
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
671
+ // eslint-disable-next-line no-prototype-builtins -- safe
672
+ return !$Object('z').propertyIsEnumerable(0);
673
+ }) ? function (it) {
674
+ return classof(it) === 'String' ? split(it, '') : $Object(it);
675
+ } : $Object;
676
+
677
+
678
+ /***/ }),
679
+
680
+ /***/ 2788:
681
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
682
+
683
+ "use strict";
684
+
685
+ var uncurryThis = __webpack_require__(1702);
686
+ var isCallable = __webpack_require__(614);
687
+ var store = __webpack_require__(5465);
688
+
689
+ var functionToString = uncurryThis(Function.toString);
690
+
691
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
692
+ if (!isCallable(store.inspectSource)) {
693
+ store.inspectSource = function (it) {
694
+ return functionToString(it);
695
+ };
696
+ }
697
+
698
+ module.exports = store.inspectSource;
699
+
700
+
701
+ /***/ }),
702
+
703
+ /***/ 9909:
704
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
705
+
706
+ "use strict";
707
+
708
+ var NATIVE_WEAK_MAP = __webpack_require__(4811);
709
+ var global = __webpack_require__(7854);
710
+ var isObject = __webpack_require__(111);
711
+ var createNonEnumerableProperty = __webpack_require__(8880);
712
+ var hasOwn = __webpack_require__(2597);
713
+ var shared = __webpack_require__(5465);
714
+ var sharedKey = __webpack_require__(6200);
715
+ var hiddenKeys = __webpack_require__(3501);
716
+
717
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
718
+ var TypeError = global.TypeError;
719
+ var WeakMap = global.WeakMap;
720
+ var set, get, has;
721
+
722
+ var enforce = function (it) {
723
+ return has(it) ? get(it) : set(it, {});
724
+ };
725
+
726
+ var getterFor = function (TYPE) {
727
+ return function (it) {
728
+ var state;
729
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
730
+ throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
731
+ } return state;
732
+ };
733
+ };
734
+
735
+ if (NATIVE_WEAK_MAP || shared.state) {
736
+ var store = shared.state || (shared.state = new WeakMap());
737
+ /* eslint-disable no-self-assign -- prototype methods protection */
738
+ store.get = store.get;
739
+ store.has = store.has;
740
+ store.set = store.set;
741
+ /* eslint-enable no-self-assign -- prototype methods protection */
742
+ set = function (it, metadata) {
743
+ if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
744
+ metadata.facade = it;
745
+ store.set(it, metadata);
746
+ return metadata;
747
+ };
748
+ get = function (it) {
749
+ return store.get(it) || {};
750
+ };
751
+ has = function (it) {
752
+ return store.has(it);
753
+ };
754
+ } else {
755
+ var STATE = sharedKey('state');
756
+ hiddenKeys[STATE] = true;
757
+ set = function (it, metadata) {
758
+ if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
759
+ metadata.facade = it;
760
+ createNonEnumerableProperty(it, STATE, metadata);
761
+ return metadata;
762
+ };
763
+ get = function (it) {
764
+ return hasOwn(it, STATE) ? it[STATE] : {};
765
+ };
766
+ has = function (it) {
767
+ return hasOwn(it, STATE);
768
+ };
769
+ }
770
+
771
+ module.exports = {
772
+ set: set,
773
+ get: get,
774
+ has: has,
775
+ enforce: enforce,
776
+ getterFor: getterFor
777
+ };
778
+
779
+
780
+ /***/ }),
781
+
782
+ /***/ 3157:
783
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
784
+
785
+ "use strict";
786
+
787
+ var classof = __webpack_require__(4326);
788
+
789
+ // `IsArray` abstract operation
790
+ // https://tc39.es/ecma262/#sec-isarray
791
+ // eslint-disable-next-line es/no-array-isarray -- safe
792
+ module.exports = Array.isArray || function isArray(argument) {
793
+ return classof(argument) === 'Array';
794
+ };
795
+
796
+
797
+ /***/ }),
798
+
799
+ /***/ 614:
800
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
801
+
802
+ "use strict";
803
+
804
+ var $documentAll = __webpack_require__(4154);
805
+
806
+ var documentAll = $documentAll.all;
807
+
808
+ // `IsCallable` abstract operation
809
+ // https://tc39.es/ecma262/#sec-iscallable
810
+ module.exports = $documentAll.IS_HTMLDDA ? function (argument) {
811
+ return typeof argument == 'function' || argument === documentAll;
812
+ } : function (argument) {
813
+ return typeof argument == 'function';
814
+ };
815
+
816
+
817
+ /***/ }),
818
+
819
+ /***/ 4705:
820
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
821
+
822
+ "use strict";
823
+
824
+ var fails = __webpack_require__(7293);
825
+ var isCallable = __webpack_require__(614);
826
+
827
+ var replacement = /#|\.prototype\./;
828
+
829
+ var isForced = function (feature, detection) {
830
+ var value = data[normalize(feature)];
831
+ return value === POLYFILL ? true
832
+ : value === NATIVE ? false
833
+ : isCallable(detection) ? fails(detection)
834
+ : !!detection;
835
+ };
836
+
837
+ var normalize = isForced.normalize = function (string) {
838
+ return String(string).replace(replacement, '.').toLowerCase();
839
+ };
840
+
841
+ var data = isForced.data = {};
842
+ var NATIVE = isForced.NATIVE = 'N';
843
+ var POLYFILL = isForced.POLYFILL = 'P';
844
+
845
+ module.exports = isForced;
846
+
847
+
848
+ /***/ }),
849
+
850
+ /***/ 8554:
851
+ /***/ (function(module) {
852
+
853
+ "use strict";
854
+
855
+ // we can't use just `it == null` since of `document.all` special case
856
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
857
+ module.exports = function (it) {
858
+ return it === null || it === undefined;
859
+ };
860
+
861
+
862
+ /***/ }),
863
+
864
+ /***/ 111:
865
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
866
+
867
+ "use strict";
868
+
869
+ var isCallable = __webpack_require__(614);
870
+ var $documentAll = __webpack_require__(4154);
871
+
872
+ var documentAll = $documentAll.all;
873
+
874
+ module.exports = $documentAll.IS_HTMLDDA ? function (it) {
875
+ return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;
876
+ } : function (it) {
877
+ return typeof it == 'object' ? it !== null : isCallable(it);
878
+ };
879
+
880
+
881
+ /***/ }),
882
+
883
+ /***/ 1913:
884
+ /***/ (function(module) {
885
+
886
+ "use strict";
887
+
888
+ module.exports = false;
889
+
890
+
891
+ /***/ }),
892
+
893
+ /***/ 2190:
894
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
895
+
896
+ "use strict";
897
+
898
+ var getBuiltIn = __webpack_require__(5005);
899
+ var isCallable = __webpack_require__(614);
900
+ var isPrototypeOf = __webpack_require__(7976);
901
+ var USE_SYMBOL_AS_UID = __webpack_require__(3307);
902
+
903
+ var $Object = Object;
904
+
905
+ module.exports = USE_SYMBOL_AS_UID ? function (it) {
906
+ return typeof it == 'symbol';
907
+ } : function (it) {
908
+ var $Symbol = getBuiltIn('Symbol');
909
+ return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
910
+ };
911
+
912
+
913
+ /***/ }),
914
+
915
+ /***/ 6244:
916
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
917
+
918
+ "use strict";
919
+
920
+ var toLength = __webpack_require__(7466);
921
+
922
+ // `LengthOfArrayLike` abstract operation
923
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
924
+ module.exports = function (obj) {
925
+ return toLength(obj.length);
926
+ };
927
+
928
+
929
+ /***/ }),
930
+
931
+ /***/ 6339:
932
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
933
+
934
+ "use strict";
935
+
936
+ var uncurryThis = __webpack_require__(1702);
937
+ var fails = __webpack_require__(7293);
938
+ var isCallable = __webpack_require__(614);
939
+ var hasOwn = __webpack_require__(2597);
940
+ var DESCRIPTORS = __webpack_require__(9781);
941
+ var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(6530).CONFIGURABLE);
942
+ var inspectSource = __webpack_require__(2788);
943
+ var InternalStateModule = __webpack_require__(9909);
944
+
945
+ var enforceInternalState = InternalStateModule.enforce;
946
+ var getInternalState = InternalStateModule.get;
947
+ var $String = String;
948
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
949
+ var defineProperty = Object.defineProperty;
950
+ var stringSlice = uncurryThis(''.slice);
951
+ var replace = uncurryThis(''.replace);
952
+ var join = uncurryThis([].join);
953
+
954
+ var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
955
+ return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
956
+ });
957
+
958
+ var TEMPLATE = String(String).split('String');
959
+
960
+ var makeBuiltIn = module.exports = function (value, name, options) {
961
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
962
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
963
+ }
964
+ if (options && options.getter) name = 'get ' + name;
965
+ if (options && options.setter) name = 'set ' + name;
966
+ if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
967
+ if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
968
+ else value.name = name;
969
+ }
970
+ if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
971
+ defineProperty(value, 'length', { value: options.arity });
972
+ }
973
+ try {
974
+ if (options && hasOwn(options, 'constructor') && options.constructor) {
975
+ if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
976
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
977
+ } else if (value.prototype) value.prototype = undefined;
978
+ } catch (error) { /* empty */ }
979
+ var state = enforceInternalState(value);
980
+ if (!hasOwn(state, 'source')) {
981
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
982
+ } return value;
983
+ };
984
+
985
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
986
+ // eslint-disable-next-line no-extend-native -- required
987
+ Function.prototype.toString = makeBuiltIn(function toString() {
988
+ return isCallable(this) && getInternalState(this).source || inspectSource(this);
989
+ }, 'toString');
990
+
991
+
992
+ /***/ }),
993
+
994
+ /***/ 4758:
995
+ /***/ (function(module) {
996
+
997
+ "use strict";
998
+
999
+ var ceil = Math.ceil;
1000
+ var floor = Math.floor;
1001
+
1002
+ // `Math.trunc` method
1003
+ // https://tc39.es/ecma262/#sec-math.trunc
1004
+ // eslint-disable-next-line es/no-math-trunc -- safe
1005
+ module.exports = Math.trunc || function trunc(x) {
1006
+ var n = +x;
1007
+ return (n > 0 ? floor : ceil)(n);
1008
+ };
1009
+
1010
+
1011
+ /***/ }),
1012
+
1013
+ /***/ 3070:
1014
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1015
+
1016
+ "use strict";
1017
+
1018
+ var DESCRIPTORS = __webpack_require__(9781);
1019
+ var IE8_DOM_DEFINE = __webpack_require__(4664);
1020
+ var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(3353);
1021
+ var anObject = __webpack_require__(9670);
1022
+ var toPropertyKey = __webpack_require__(4948);
1023
+
1024
+ var $TypeError = TypeError;
1025
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1026
+ var $defineProperty = Object.defineProperty;
1027
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1028
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1029
+ var ENUMERABLE = 'enumerable';
1030
+ var CONFIGURABLE = 'configurable';
1031
+ var WRITABLE = 'writable';
1032
+
1033
+ // `Object.defineProperty` method
1034
+ // https://tc39.es/ecma262/#sec-object.defineproperty
1035
+ exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
1036
+ anObject(O);
1037
+ P = toPropertyKey(P);
1038
+ anObject(Attributes);
1039
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
1040
+ var current = $getOwnPropertyDescriptor(O, P);
1041
+ if (current && current[WRITABLE]) {
1042
+ O[P] = Attributes.value;
1043
+ Attributes = {
1044
+ configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
1045
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
1046
+ writable: false
1047
+ };
1048
+ }
1049
+ } return $defineProperty(O, P, Attributes);
1050
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
1051
+ anObject(O);
1052
+ P = toPropertyKey(P);
1053
+ anObject(Attributes);
1054
+ if (IE8_DOM_DEFINE) try {
1055
+ return $defineProperty(O, P, Attributes);
1056
+ } catch (error) { /* empty */ }
1057
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
1058
+ if ('value' in Attributes) O[P] = Attributes.value;
1059
+ return O;
1060
+ };
1061
+
1062
+
1063
+ /***/ }),
1064
+
1065
+ /***/ 1236:
1066
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1067
+
1068
+ "use strict";
1069
+
1070
+ var DESCRIPTORS = __webpack_require__(9781);
1071
+ var call = __webpack_require__(6916);
1072
+ var propertyIsEnumerableModule = __webpack_require__(5296);
1073
+ var createPropertyDescriptor = __webpack_require__(9114);
1074
+ var toIndexedObject = __webpack_require__(5656);
1075
+ var toPropertyKey = __webpack_require__(4948);
1076
+ var hasOwn = __webpack_require__(2597);
1077
+ var IE8_DOM_DEFINE = __webpack_require__(4664);
1078
+
1079
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1080
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1081
+
1082
+ // `Object.getOwnPropertyDescriptor` method
1083
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
1084
+ exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
1085
+ O = toIndexedObject(O);
1086
+ P = toPropertyKey(P);
1087
+ if (IE8_DOM_DEFINE) try {
1088
+ return $getOwnPropertyDescriptor(O, P);
1089
+ } catch (error) { /* empty */ }
1090
+ if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
1091
+ };
1092
+
1093
+
1094
+ /***/ }),
1095
+
1096
+ /***/ 8006:
1097
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1098
+
1099
+ "use strict";
1100
+
1101
+ var internalObjectKeys = __webpack_require__(6324);
1102
+ var enumBugKeys = __webpack_require__(748);
1103
+
1104
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1105
+
1106
+ // `Object.getOwnPropertyNames` method
1107
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1108
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1109
+ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1110
+ return internalObjectKeys(O, hiddenKeys);
1111
+ };
1112
+
1113
+
1114
+ /***/ }),
1115
+
1116
+ /***/ 5181:
1117
+ /***/ (function(__unused_webpack_module, exports) {
1118
+
1119
+ "use strict";
1120
+
1121
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1122
+ exports.f = Object.getOwnPropertySymbols;
1123
+
1124
+
1125
+ /***/ }),
1126
+
1127
+ /***/ 7976:
1128
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1129
+
1130
+ "use strict";
1131
+
1132
+ var uncurryThis = __webpack_require__(1702);
1133
+
1134
+ module.exports = uncurryThis({}.isPrototypeOf);
1135
+
1136
+
1137
+ /***/ }),
1138
+
1139
+ /***/ 6324:
1140
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1141
+
1142
+ "use strict";
1143
+
1144
+ var uncurryThis = __webpack_require__(1702);
1145
+ var hasOwn = __webpack_require__(2597);
1146
+ var toIndexedObject = __webpack_require__(5656);
1147
+ var indexOf = (__webpack_require__(1318).indexOf);
1148
+ var hiddenKeys = __webpack_require__(3501);
1149
+
1150
+ var push = uncurryThis([].push);
1151
+
1152
+ module.exports = function (object, names) {
1153
+ var O = toIndexedObject(object);
1154
+ var i = 0;
1155
+ var result = [];
1156
+ var key;
1157
+ for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
1158
+ // Don't enum bug & hidden keys
1159
+ while (names.length > i) if (hasOwn(O, key = names[i++])) {
1160
+ ~indexOf(result, key) || push(result, key);
1161
+ }
1162
+ return result;
1163
+ };
1164
+
1165
+
1166
+ /***/ }),
1167
+
1168
+ /***/ 5296:
1169
+ /***/ (function(__unused_webpack_module, exports) {
1170
+
1171
+ "use strict";
1172
+
1173
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
1174
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1175
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1176
+
1177
+ // Nashorn ~ JDK8 bug
1178
+ var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
1179
+
1180
+ // `Object.prototype.propertyIsEnumerable` method implementation
1181
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
1182
+ exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
1183
+ var descriptor = getOwnPropertyDescriptor(this, V);
1184
+ return !!descriptor && descriptor.enumerable;
1185
+ } : $propertyIsEnumerable;
1186
+
1187
+
1188
+ /***/ }),
1189
+
1190
+ /***/ 2140:
1191
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1192
+
1193
+ "use strict";
1194
+
1195
+ var call = __webpack_require__(6916);
1196
+ var isCallable = __webpack_require__(614);
1197
+ var isObject = __webpack_require__(111);
1198
+
1199
+ var $TypeError = TypeError;
1200
+
1201
+ // `OrdinaryToPrimitive` abstract operation
1202
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
1203
+ module.exports = function (input, pref) {
1204
+ var fn, val;
1205
+ if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
1206
+ if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
1207
+ if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
1208
+ throw new $TypeError("Can't convert object to primitive value");
1209
+ };
1210
+
1211
+
1212
+ /***/ }),
1213
+
1214
+ /***/ 3887:
1215
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1216
+
1217
+ "use strict";
1218
+
1219
+ var getBuiltIn = __webpack_require__(5005);
1220
+ var uncurryThis = __webpack_require__(1702);
1221
+ var getOwnPropertyNamesModule = __webpack_require__(8006);
1222
+ var getOwnPropertySymbolsModule = __webpack_require__(5181);
1223
+ var anObject = __webpack_require__(9670);
1224
+
1225
+ var concat = uncurryThis([].concat);
1226
+
1227
+ // all object keys, includes non-enumerable and symbols
1228
+ module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1229
+ var keys = getOwnPropertyNamesModule.f(anObject(it));
1230
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1231
+ return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
1232
+ };
1233
+
1234
+
1235
+ /***/ }),
1236
+
1237
+ /***/ 4488:
1238
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1239
+
1240
+ "use strict";
1241
+
1242
+ var isNullOrUndefined = __webpack_require__(8554);
1243
+
1244
+ var $TypeError = TypeError;
1245
+
1246
+ // `RequireObjectCoercible` abstract operation
1247
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
1248
+ module.exports = function (it) {
1249
+ if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
1250
+ return it;
1251
+ };
1252
+
1253
+
1254
+ /***/ }),
1255
+
1256
+ /***/ 6200:
1257
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1258
+
1259
+ "use strict";
1260
+
1261
+ var shared = __webpack_require__(2309);
1262
+ var uid = __webpack_require__(9711);
1263
+
1264
+ var keys = shared('keys');
1265
+
1266
+ module.exports = function (key) {
1267
+ return keys[key] || (keys[key] = uid(key));
1268
+ };
1269
+
1270
+
1271
+ /***/ }),
1272
+
1273
+ /***/ 5465:
1274
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1275
+
1276
+ "use strict";
1277
+
1278
+ var global = __webpack_require__(7854);
1279
+ var defineGlobalProperty = __webpack_require__(3072);
1280
+
1281
+ var SHARED = '__core-js_shared__';
1282
+ var store = global[SHARED] || defineGlobalProperty(SHARED, {});
1283
+
1284
+ module.exports = store;
1285
+
1286
+
1287
+ /***/ }),
1288
+
1289
+ /***/ 2309:
1290
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1291
+
1292
+ "use strict";
1293
+
1294
+ var IS_PURE = __webpack_require__(1913);
1295
+ var store = __webpack_require__(5465);
1296
+
1297
+ (module.exports = function (key, value) {
1298
+ return store[key] || (store[key] = value !== undefined ? value : {});
1299
+ })('versions', []).push({
1300
+ version: '3.33.0',
1301
+ mode: IS_PURE ? 'pure' : 'global',
1302
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
1303
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE',
1304
+ source: 'https://github.com/zloirock/core-js'
1305
+ });
1306
+
1307
+
1308
+ /***/ }),
1309
+
1310
+ /***/ 6293:
1311
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1312
+
1313
+ "use strict";
1314
+
1315
+ /* eslint-disable es/no-symbol -- required for testing */
1316
+ var V8_VERSION = __webpack_require__(7392);
1317
+ var fails = __webpack_require__(7293);
1318
+ var global = __webpack_require__(7854);
1319
+
1320
+ var $String = global.String;
1321
+
1322
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
1323
+ module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
1324
+ var symbol = Symbol('symbol detection');
1325
+ // Chrome 38 Symbol has incorrect toString conversion
1326
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
1327
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
1328
+ // of course, fail.
1329
+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
1330
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
1331
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
1332
+ });
1333
+
1334
+
1335
+ /***/ }),
1336
+
1337
+ /***/ 1400:
1338
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1339
+
1340
+ "use strict";
1341
+
1342
+ var toIntegerOrInfinity = __webpack_require__(9303);
1343
+
1344
+ var max = Math.max;
1345
+ var min = Math.min;
1346
+
1347
+ // Helper for a popular repeating case of the spec:
1348
+ // Let integer be ? ToInteger(index).
1349
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
1350
+ module.exports = function (index, length) {
1351
+ var integer = toIntegerOrInfinity(index);
1352
+ return integer < 0 ? max(integer + length, 0) : min(integer, length);
1353
+ };
1354
+
1355
+
1356
+ /***/ }),
1357
+
1358
+ /***/ 5656:
1359
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1360
+
1361
+ "use strict";
1362
+
1363
+ // toObject with fallback for non-array-like ES3 strings
1364
+ var IndexedObject = __webpack_require__(8361);
1365
+ var requireObjectCoercible = __webpack_require__(4488);
1366
+
1367
+ module.exports = function (it) {
1368
+ return IndexedObject(requireObjectCoercible(it));
1369
+ };
1370
+
1371
+
1372
+ /***/ }),
1373
+
1374
+ /***/ 9303:
1375
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1376
+
1377
+ "use strict";
1378
+
1379
+ var trunc = __webpack_require__(4758);
1380
+
1381
+ // `ToIntegerOrInfinity` abstract operation
1382
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
1383
+ module.exports = function (argument) {
1384
+ var number = +argument;
1385
+ // eslint-disable-next-line no-self-compare -- NaN check
1386
+ return number !== number || number === 0 ? 0 : trunc(number);
1387
+ };
1388
+
1389
+
1390
+ /***/ }),
1391
+
1392
+ /***/ 7466:
1393
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1394
+
1395
+ "use strict";
1396
+
1397
+ var toIntegerOrInfinity = __webpack_require__(9303);
1398
+
1399
+ var min = Math.min;
1400
+
1401
+ // `ToLength` abstract operation
1402
+ // https://tc39.es/ecma262/#sec-tolength
1403
+ module.exports = function (argument) {
1404
+ return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
1405
+ };
1406
+
1407
+
1408
+ /***/ }),
1409
+
1410
+ /***/ 7908:
1411
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1412
+
1413
+ "use strict";
1414
+
1415
+ var requireObjectCoercible = __webpack_require__(4488);
1416
+
1417
+ var $Object = Object;
1418
+
1419
+ // `ToObject` abstract operation
1420
+ // https://tc39.es/ecma262/#sec-toobject
1421
+ module.exports = function (argument) {
1422
+ return $Object(requireObjectCoercible(argument));
1423
+ };
1424
+
1425
+
1426
+ /***/ }),
1427
+
1428
+ /***/ 7593:
1429
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1430
+
1431
+ "use strict";
1432
+
1433
+ var call = __webpack_require__(6916);
1434
+ var isObject = __webpack_require__(111);
1435
+ var isSymbol = __webpack_require__(2190);
1436
+ var getMethod = __webpack_require__(8173);
1437
+ var ordinaryToPrimitive = __webpack_require__(2140);
1438
+ var wellKnownSymbol = __webpack_require__(5112);
1439
+
1440
+ var $TypeError = TypeError;
1441
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
1442
+
1443
+ // `ToPrimitive` abstract operation
1444
+ // https://tc39.es/ecma262/#sec-toprimitive
1445
+ module.exports = function (input, pref) {
1446
+ if (!isObject(input) || isSymbol(input)) return input;
1447
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
1448
+ var result;
1449
+ if (exoticToPrim) {
1450
+ if (pref === undefined) pref = 'default';
1451
+ result = call(exoticToPrim, input, pref);
1452
+ if (!isObject(result) || isSymbol(result)) return result;
1453
+ throw new $TypeError("Can't convert object to primitive value");
1454
+ }
1455
+ if (pref === undefined) pref = 'number';
1456
+ return ordinaryToPrimitive(input, pref);
1457
+ };
1458
+
1459
+
1460
+ /***/ }),
1461
+
1462
+ /***/ 4948:
1463
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1464
+
1465
+ "use strict";
1466
+
1467
+ var toPrimitive = __webpack_require__(7593);
1468
+ var isSymbol = __webpack_require__(2190);
1469
+
1470
+ // `ToPropertyKey` abstract operation
1471
+ // https://tc39.es/ecma262/#sec-topropertykey
1472
+ module.exports = function (argument) {
1473
+ var key = toPrimitive(argument, 'string');
1474
+ return isSymbol(key) ? key : key + '';
1475
+ };
1476
+
1477
+
1478
+ /***/ }),
1479
+
1480
+ /***/ 6330:
1481
+ /***/ (function(module) {
1482
+
1483
+ "use strict";
1484
+
1485
+ var $String = String;
1486
+
1487
+ module.exports = function (argument) {
1488
+ try {
1489
+ return $String(argument);
1490
+ } catch (error) {
1491
+ return 'Object';
1492
+ }
1493
+ };
1494
+
1495
+
1496
+ /***/ }),
1497
+
1498
+ /***/ 9711:
1499
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1500
+
1501
+ "use strict";
1502
+
1503
+ var uncurryThis = __webpack_require__(1702);
1504
+
1505
+ var id = 0;
1506
+ var postfix = Math.random();
1507
+ var toString = uncurryThis(1.0.toString);
1508
+
1509
+ module.exports = function (key) {
1510
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
1511
+ };
1512
+
1513
+
1514
+ /***/ }),
1515
+
1516
+ /***/ 3307:
1517
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1518
+
1519
+ "use strict";
1520
+
1521
+ /* eslint-disable es/no-symbol -- required for testing */
1522
+ var NATIVE_SYMBOL = __webpack_require__(6293);
1523
+
1524
+ module.exports = NATIVE_SYMBOL
1525
+ && !Symbol.sham
1526
+ && typeof Symbol.iterator == 'symbol';
1527
+
1528
+
1529
+ /***/ }),
1530
+
1531
+ /***/ 3353:
1532
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1533
+
1534
+ "use strict";
1535
+
1536
+ var DESCRIPTORS = __webpack_require__(9781);
1537
+ var fails = __webpack_require__(7293);
1538
+
1539
+ // V8 ~ Chrome 36-
1540
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
1541
+ module.exports = DESCRIPTORS && fails(function () {
1542
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1543
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
1544
+ value: 42,
1545
+ writable: false
1546
+ }).prototype !== 42;
1547
+ });
1548
+
1549
+
1550
+ /***/ }),
1551
+
1552
+ /***/ 4811:
1553
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1554
+
1555
+ "use strict";
1556
+
1557
+ var global = __webpack_require__(7854);
1558
+ var isCallable = __webpack_require__(614);
1559
+
1560
+ var WeakMap = global.WeakMap;
1561
+
1562
+ module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
1563
+
1564
+
1565
+ /***/ }),
1566
+
1567
+ /***/ 5112:
1568
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1569
+
1570
+ "use strict";
1571
+
1572
+ var global = __webpack_require__(7854);
1573
+ var shared = __webpack_require__(2309);
1574
+ var hasOwn = __webpack_require__(2597);
1575
+ var uid = __webpack_require__(9711);
1576
+ var NATIVE_SYMBOL = __webpack_require__(6293);
1577
+ var USE_SYMBOL_AS_UID = __webpack_require__(3307);
1578
+
1579
+ var Symbol = global.Symbol;
1580
+ var WellKnownSymbolsStore = shared('wks');
1581
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
1582
+
1583
+ module.exports = function (name) {
1584
+ if (!hasOwn(WellKnownSymbolsStore, name)) {
1585
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
1586
+ ? Symbol[name]
1587
+ : createWellKnownSymbol('Symbol.' + name);
1588
+ } return WellKnownSymbolsStore[name];
1589
+ };
1590
+
1591
+
1592
+ /***/ }),
1593
+
1594
+ /***/ 7658:
1595
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
1596
+
1597
+ "use strict";
1598
+
1599
+ var $ = __webpack_require__(2109);
1600
+ var toObject = __webpack_require__(7908);
1601
+ var lengthOfArrayLike = __webpack_require__(6244);
1602
+ var setArrayLength = __webpack_require__(3658);
1603
+ var doesNotExceedSafeInteger = __webpack_require__(7207);
1604
+ var fails = __webpack_require__(7293);
1605
+
1606
+ var INCORRECT_TO_LENGTH = fails(function () {
1607
+ return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
1608
+ });
1609
+
1610
+ // V8 and Safari <= 15.4, FF < 23 throws InternalError
1611
+ // https://bugs.chromium.org/p/v8/issues/detail?id=12681
1612
+ var properErrorOnNonWritableLength = function () {
1613
+ try {
1614
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1615
+ Object.defineProperty([], 'length', { writable: false }).push();
1616
+ } catch (error) {
1617
+ return error instanceof TypeError;
1618
+ }
1619
+ };
1620
+
1621
+ var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
1622
+
1623
+ // `Array.prototype.push` method
1624
+ // https://tc39.es/ecma262/#sec-array.prototype.push
1625
+ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1626
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
1627
+ push: function push(item) {
1628
+ var O = toObject(this);
1629
+ var len = lengthOfArrayLike(O);
1630
+ var argCount = arguments.length;
1631
+ doesNotExceedSafeInteger(len + argCount);
1632
+ for (var i = 0; i < argCount; i++) {
1633
+ O[len] = arguments[i];
1634
+ len++;
1635
+ }
1636
+ setArrayLength(O, len);
1637
+ return len;
1638
+ }
1639
+ });
1640
+
1641
+
1642
+ /***/ }),
1643
+
1644
+ /***/ 4359:
1645
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1646
+
1647
+ var map = {
1648
+ "./1.jpg": 1091,
1649
+ "./2.jpg": 4828,
1650
+ "./3.jpg": 4501,
1651
+ "./4.jpg": 8858,
1652
+ "./5.jpg": 1799,
1653
+ "./6.jpg": 9416,
1654
+ "./7.jpg": 5867,
1655
+ "./8.jpg": 8478
1656
+ };
1657
+
1658
+
1659
+ function webpackContext(req) {
1660
+ var id = webpackContextResolve(req);
1661
+ return __webpack_require__(id);
1662
+ }
1663
+ function webpackContextResolve(req) {
1664
+ if(!__webpack_require__.o(map, req)) {
1665
+ var e = new Error("Cannot find module '" + req + "'");
1666
+ e.code = 'MODULE_NOT_FOUND';
1667
+ throw e;
1668
+ }
1669
+ return map[req];
1670
+ }
1671
+ webpackContext.keys = function webpackContextKeys() {
1672
+ return Object.keys(map);
1673
+ };
1674
+ webpackContext.resolve = webpackContextResolve;
1675
+ module.exports = webpackContext;
1676
+ webpackContext.id = 4359;
1677
+
1678
+ /***/ }),
1679
+
1680
+ /***/ 1091:
1681
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1682
+
1683
+ "use strict";
1684
+ module.exports = __webpack_require__.p + "img/1.8e585a4b.jpg";
1685
+
1686
+ /***/ }),
1687
+
1688
+ /***/ 4828:
1689
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1690
+
1691
+ "use strict";
1692
+ module.exports = __webpack_require__.p + "img/2.52192bf1.jpg";
1693
+
1694
+ /***/ }),
1695
+
1696
+ /***/ 4501:
1697
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1698
+
1699
+ "use strict";
1700
+ module.exports = __webpack_require__.p + "img/3.4627edc5.jpg";
1701
+
1702
+ /***/ }),
1703
+
1704
+ /***/ 8858:
1705
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1706
+
1707
+ "use strict";
1708
+ module.exports = __webpack_require__.p + "img/4.00b9b96d.jpg";
1709
+
1710
+ /***/ }),
1711
+
1712
+ /***/ 1799:
1713
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1714
+
1715
+ "use strict";
1716
+ module.exports = __webpack_require__.p + "img/5.00adbac5.jpg";
1717
+
1718
+ /***/ }),
1719
+
1720
+ /***/ 9416:
1721
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1722
+
1723
+ "use strict";
1724
+ module.exports = __webpack_require__.p + "img/6.fec4cf56.jpg";
1725
+
1726
+ /***/ }),
1727
+
1728
+ /***/ 5867:
1729
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1730
+
1731
+ "use strict";
1732
+ module.exports = __webpack_require__.p + "img/7.2d4c9f56.jpg";
1733
+
1734
+ /***/ }),
1735
+
1736
+ /***/ 8478:
1737
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1738
+
1739
+ "use strict";
1740
+ module.exports = __webpack_require__.p + "img/8.63e261ca.jpg";
1741
+
1742
+ /***/ })
1743
+
1744
+ /******/ });
1745
+ /************************************************************************/
1746
+ /******/ // The module cache
1747
+ /******/ var __webpack_module_cache__ = {};
1748
+ /******/
1749
+ /******/ // The require function
1750
+ /******/ function __webpack_require__(moduleId) {
1751
+ /******/ // Check if module is in cache
1752
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1753
+ /******/ if (cachedModule !== undefined) {
1754
+ /******/ return cachedModule.exports;
1755
+ /******/ }
1756
+ /******/ // Create a new module (and put it into the cache)
1757
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1758
+ /******/ // no module.id needed
1759
+ /******/ // no module.loaded needed
1760
+ /******/ exports: {}
1761
+ /******/ };
1762
+ /******/
1763
+ /******/ // Execute the module function
1764
+ /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
1765
+ /******/
1766
+ /******/ // Return the exports of the module
1767
+ /******/ return module.exports;
1768
+ /******/ }
5
1769
  /******/
6
1770
  /************************************************************************/
7
1771
  /******/ /* webpack/runtime/define property getters */
@@ -16,6 +1780,18 @@
16
1780
  /******/ };
17
1781
  /******/ }();
18
1782
  /******/
1783
+ /******/ /* webpack/runtime/global */
1784
+ /******/ !function() {
1785
+ /******/ __webpack_require__.g = (function() {
1786
+ /******/ if (typeof globalThis === 'object') return globalThis;
1787
+ /******/ try {
1788
+ /******/ return this || new Function('return this')();
1789
+ /******/ } catch (e) {
1790
+ /******/ if (typeof window === 'object') return window;
1791
+ /******/ }
1792
+ /******/ })();
1793
+ /******/ }();
1794
+ /******/
19
1795
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
20
1796
  /******/ !function() {
21
1797
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
@@ -39,6 +1815,9 @@
39
1815
  /******/
40
1816
  /************************************************************************/
41
1817
  var __webpack_exports__ = {};
1818
+ // This entry need to be wrapped in an IIFE because it need to be in strict mode.
1819
+ !function() {
1820
+ "use strict";
42
1821
  // ESM COMPAT FLAG
43
1822
  __webpack_require__.r(__webpack_exports__);
44
1823
 
@@ -64,32 +1843,432 @@ if (typeof window !== 'undefined') {
64
1843
  // Indicate to webpack that this file can be concatenated
65
1844
  /* harmony default export */ var setPublicPath = (null);
66
1845
 
67
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Button/index.vue?vue&type=template&id=3170b9bf&
1846
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcSlideVerify/index.vue?vue&type=template&id=59bbdcfe&
68
1847
  var render = function render() {
69
1848
  var _vm = this,
70
1849
  _c = _vm._self._c;
71
- return _c('button', {
72
- staticClass: "MyButton"
73
- }, [_vm._v("我是一个按钮组件")]);
1850
+ return _vm.show ? _c('slide-verify', {
1851
+ ref: "slideblock",
1852
+ attrs: {
1853
+ "l": 42,
1854
+ "r": 10,
1855
+ "w": 310,
1856
+ "h": 155,
1857
+ "imgs": _vm.imgs,
1858
+ "accuracy": _vm.accuracy,
1859
+ "show": _vm.show,
1860
+ "slider-text": _vm.sliderText
1861
+ },
1862
+ on: {
1863
+ "success": _vm.onSuccess,
1864
+ "fail": _vm.onFail,
1865
+ "again": _vm.onAgain,
1866
+ "refresh": _vm.onRefresh,
1867
+ "fulfilled": _vm.onFulfilled
1868
+ }
1869
+ }) : _vm._e();
74
1870
  };
75
1871
  var staticRenderFns = [];
76
1872
 
77
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Button/index.vue?vue&type=script&lang=js&
78
- /* harmony default export */ var Buttonvue_type_script_lang_js_ = ({
79
- name: "MyButton",
1873
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
1874
+ var es_array_push = __webpack_require__(7658);
1875
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./node_modules/vue-monoplasty-slide-verify/src/lib/slide-verify.vue?vue&type=template&id=b67196d8&scoped=true&
1876
+ var slide_verifyvue_type_template_id_b67196d8_scoped_true_render = function render() {
1877
+ var _vm = this,
1878
+ _c = _vm._self._c;
1879
+ return _c('div', {
1880
+ staticClass: "slide-verify",
1881
+ style: {
1882
+ width: _vm.w + 'px'
1883
+ },
1884
+ attrs: {
1885
+ "id": "slideVerify",
1886
+ "onselectstart": "return false;"
1887
+ }
1888
+ }, [_c('div', {
1889
+ class: {
1890
+ 'slider-verify-loading': _vm.loadBlock
1891
+ }
1892
+ }), _c('canvas', {
1893
+ ref: "canvas",
1894
+ attrs: {
1895
+ "width": _vm.w,
1896
+ "height": _vm.h
1897
+ }
1898
+ }), _vm.show ? _c('div', {
1899
+ staticClass: "slide-verify-refresh-icon",
1900
+ on: {
1901
+ "click": _vm.refresh
1902
+ }
1903
+ }) : _vm._e(), _c('canvas', {
1904
+ ref: "block",
1905
+ staticClass: "slide-verify-block",
1906
+ attrs: {
1907
+ "width": _vm.w,
1908
+ "height": _vm.h
1909
+ }
1910
+ }), _c('div', {
1911
+ staticClass: "slide-verify-slider",
1912
+ class: {
1913
+ 'container-active': _vm.containerActive,
1914
+ 'container-success': _vm.containerSuccess,
1915
+ 'container-fail': _vm.containerFail
1916
+ }
1917
+ }, [_c('div', {
1918
+ staticClass: "slide-verify-slider-mask",
1919
+ style: {
1920
+ width: _vm.sliderMaskWidth
1921
+ }
1922
+ }, [_c('div', {
1923
+ staticClass: "slide-verify-slider-mask-item",
1924
+ style: {
1925
+ left: _vm.sliderLeft
1926
+ },
1927
+ on: {
1928
+ "mousedown": _vm.sliderDown,
1929
+ "touchstart": _vm.touchStartEvent,
1930
+ "touchmove": function ($event) {
1931
+ return _vm.handleMoveEvent($event, 'touch');
1932
+ },
1933
+ "touchend": function ($event) {
1934
+ return _vm.handleMoveEndEvent($event, 'touch');
1935
+ }
1936
+ }
1937
+ }, [_c('div', {
1938
+ staticClass: "slide-verify-slider-mask-item-icon"
1939
+ })])]), _c('span', {
1940
+ staticClass: "slide-verify-slider-text"
1941
+ }, [_vm._v(_vm._s(_vm.sliderText))])])]);
1942
+ };
1943
+ var slide_verifyvue_type_template_id_b67196d8_scoped_true_staticRenderFns = [];
1944
+
1945
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./node_modules/vue-monoplasty-slide-verify/src/lib/slide-verify.vue?vue&type=script&lang=js&
1946
+
1947
+ const PI = Math.PI;
1948
+ function sum(x, y) {
1949
+ return x + y;
1950
+ }
1951
+ function square(x) {
1952
+ return x * x;
1953
+ }
1954
+ /* harmony default export */ var slide_verifyvue_type_script_lang_js_ = ({
1955
+ name: "SlideVerify",
1956
+ props: {
1957
+ // block length
1958
+ l: {
1959
+ type: Number,
1960
+ default: 42
1961
+ },
1962
+ // block radius
1963
+ r: {
1964
+ type: Number,
1965
+ default: 10
1966
+ },
1967
+ // canvas width
1968
+ w: {
1969
+ type: Number,
1970
+ default: 310
1971
+ },
1972
+ // canvas height
1973
+ h: {
1974
+ type: Number,
1975
+ default: 155
1976
+ },
1977
+ sliderText: {
1978
+ type: String,
1979
+ default: "Slide filled right"
1980
+ },
1981
+ accuracy: {
1982
+ type: Number,
1983
+ default: 5 // 若为 -1 则不进行机器判断
1984
+ },
1985
+
1986
+ show: {
1987
+ type: Boolean,
1988
+ default: true
1989
+ },
1990
+ imgs: {
1991
+ type: Array,
1992
+ default: () => []
1993
+ }
1994
+ },
80
1995
  data() {
81
- return {};
1996
+ return {
1997
+ containerActive: false,
1998
+ // container active class
1999
+ containerSuccess: false,
2000
+ // container success class
2001
+ containerFail: false,
2002
+ // container fail class
2003
+ canvasCtx: null,
2004
+ blockCtx: null,
2005
+ block: null,
2006
+ block_x: undefined,
2007
+ // container random position
2008
+ block_y: undefined,
2009
+ L: this.l + this.r * 2 + 3,
2010
+ // block real length
2011
+ img: undefined,
2012
+ originX: undefined,
2013
+ originY: undefined,
2014
+ isMouseDown: false,
2015
+ trail: [],
2016
+ sliderLeft: 0,
2017
+ // block right offset
2018
+ sliderMaskWidth: 0,
2019
+ // mask width,
2020
+ success: false,
2021
+ // Bug Fixes 修复了验证成功后还能滑动
2022
+ loadBlock: true,
2023
+ // Features 图片加载提示,防止图片没加载完就开始验证
2024
+ timestamp: null
2025
+ };
2026
+ },
2027
+ mounted() {
2028
+ this.init();
2029
+ },
2030
+ methods: {
2031
+ init() {
2032
+ this.initDom();
2033
+ this.initImg();
2034
+ this.bindEvents();
2035
+ },
2036
+ initDom() {
2037
+ this.block = this.$refs.block;
2038
+ this.canvasCtx = this.$refs.canvas.getContext("2d");
2039
+ this.blockCtx = this.block.getContext("2d");
2040
+ },
2041
+ initImg() {
2042
+ const img = this.createImg(() => {
2043
+ // 图片加载完关闭遮蔽罩
2044
+ this.loadBlock = false;
2045
+ this.drawBlock();
2046
+ this.canvasCtx.drawImage(img, 0, 0, this.w, this.h);
2047
+ this.blockCtx.drawImage(img, 0, 0, this.w, this.h);
2048
+ let {
2049
+ block_x: x,
2050
+ block_y: y,
2051
+ r,
2052
+ L
2053
+ } = this;
2054
+ let _y = y - r * 2 - 1;
2055
+ let ImageData = this.blockCtx.getImageData(x, _y, L, L);
2056
+ this.block.width = L;
2057
+ this.blockCtx.putImageData(ImageData, 0, _y);
2058
+ });
2059
+ this.img = img;
2060
+ },
2061
+ drawBlock() {
2062
+ this.block_x = this.getRandomNumberByRange(this.L + 10, this.w - (this.L + 10));
2063
+ this.block_y = this.getRandomNumberByRange(10 + this.r * 2, this.h - (this.L + 10));
2064
+ this.draw(this.canvasCtx, this.block_x, this.block_y, "fill");
2065
+ this.draw(this.blockCtx, this.block_x, this.block_y, "clip");
2066
+ },
2067
+ draw(ctx, x, y, operation) {
2068
+ let {
2069
+ l,
2070
+ r
2071
+ } = this;
2072
+ ctx.beginPath();
2073
+ ctx.moveTo(x, y);
2074
+ ctx.arc(x + l / 2, y - r + 2, r, 0.72 * PI, 2.26 * PI);
2075
+ ctx.lineTo(x + l, y);
2076
+ ctx.arc(x + l + r - 2, y + l / 2, r, 1.21 * PI, 2.78 * PI);
2077
+ ctx.lineTo(x + l, y + l);
2078
+ ctx.lineTo(x, y + l);
2079
+ ctx.arc(x + r - 2, y + l / 2, r + 0.4, 2.76 * PI, 1.24 * PI, true);
2080
+ ctx.lineTo(x, y);
2081
+ ctx.lineWidth = 2;
2082
+ ctx.fillStyle = "rgba(255, 255, 255, 0.7)";
2083
+ ctx.strokeStyle = "rgba(255, 255, 255, 0.7)";
2084
+ ctx.stroke();
2085
+ ctx[operation]();
2086
+ // Bug Fixes 修复了火狐和ie显示问题
2087
+ ctx.globalCompositeOperation = "destination-over";
2088
+ },
2089
+ createImg(onload) {
2090
+ const img = document.createElement("img");
2091
+ img.crossOrigin = "Anonymous";
2092
+ img.onload = onload;
2093
+ img.onerror = () => {
2094
+ img.src = this.getRandomImg();
2095
+ };
2096
+ img.src = this.getRandomImg();
2097
+ return img;
2098
+ },
2099
+ // 随机生成img src
2100
+ getRandomImg() {
2101
+ // return require('../assets/img.jpg')
2102
+ const len = this.imgs.length;
2103
+ return len > 0 ? this.imgs[this.getRandomNumberByRange(0, len - 1)] :
2104
+ // "https://bing.ioliu.cn/v1/rand?w=300&h=150";
2105
+ "https://source.unsplash.com/300x150/?book,library";
2106
+ // "https://api.dujin.org/pic/fengjing";
2107
+ },
2108
+
2109
+ getRandomNumberByRange(start, end) {
2110
+ return Math.round(Math.random() * (end - start) + start);
2111
+ },
2112
+ refresh() {
2113
+ this.reset();
2114
+ this.$emit("refresh");
2115
+ },
2116
+ sliderDown(event) {
2117
+ if (this.success) return;
2118
+ this.originX = event.clientX;
2119
+ this.originY = event.clientY;
2120
+ this.isMouseDown = true;
2121
+ this.timestamp = +new Date();
2122
+ },
2123
+ touchStartEvent(e) {
2124
+ if (this.success) return;
2125
+ this.originX = e.changedTouches[0].pageX;
2126
+ this.originY = e.changedTouches[0].pageY;
2127
+ this.isMouseDown = true;
2128
+ this.timestamp = +new Date();
2129
+ },
2130
+ bindEvents() {
2131
+ document.addEventListener("mousemove", this.handleMoveEvent);
2132
+ document.addEventListener("mouseup", this.handleMoveEndEvent);
2133
+ },
2134
+ // 处理函数抽离
2135
+ handleMoveEvent: throttle(function (e, type = "mouse") {
2136
+ if (!this.isMouseDown) return false;
2137
+ const moveX = type === "mouse" ? e.clientX - this.originX : e.changedTouches[0].pageX - this.originX;
2138
+ const moveY = type === "mouse" ? e.clientY - this.originY : e.changedTouches[0].pageY - this.originY;
2139
+ if (moveX < 0 || moveX + 38 >= this.w) return false;
2140
+ this.sliderLeft = moveX + "px";
2141
+ let blockLeft = (this.w - 40 - 20) / (this.w - 40) * moveX;
2142
+ this.block.style.left = blockLeft + "px";
2143
+ this.containerActive = true; // add active
2144
+ this.sliderMaskWidth = moveX + "px";
2145
+ this.trail.push(moveY);
2146
+ }),
2147
+ handleMoveEndEvent(e, type = "mouse") {
2148
+ if (!this.isMouseDown) return false;
2149
+ this.isMouseDown = false;
2150
+ if (type === "mouse" && e.clientX === this.originX || type === "touch" && e.changedTouches[0].pageX === this.originX) return false;
2151
+ this.containerActive = false; // remove active
2152
+ this.timestamp = +new Date() - this.timestamp;
2153
+ const {
2154
+ spliced,
2155
+ TuringTest
2156
+ } = this.verify();
2157
+ if (spliced) {
2158
+ if (this.accuracy === -1) {
2159
+ this.containerSuccess = true;
2160
+ this.success = true;
2161
+ this.$emit("success", this.timestamp);
2162
+ return;
2163
+ }
2164
+ if (TuringTest) {
2165
+ // succ
2166
+ this.containerSuccess = true;
2167
+ this.success = true;
2168
+ this.$emit("success", this.timestamp);
2169
+ } else {
2170
+ this.containerFail = true;
2171
+ this.$emit("again");
2172
+ }
2173
+ } else {
2174
+ this.containerFail = true;
2175
+ this.$emit("fail");
2176
+ setTimeout(() => {
2177
+ this.reset();
2178
+ }, 1000);
2179
+ }
2180
+ },
2181
+ verify() {
2182
+ const arr = this.trail; // drag y move distance
2183
+ const average = arr.reduce(sum) / arr.length; // average
2184
+ const deviations = arr.map(x => x - average); // deviation array
2185
+ const stddev = Math.sqrt(deviations.map(square).reduce(sum) / arr.length); // standard deviation
2186
+ const left = parseInt(this.block.style.left);
2187
+ const accuracy = this.accuracy <= 1 ? 1 : this.accuracy > 10 ? 10 : this.accuracy;
2188
+ return {
2189
+ spliced: Math.abs(left - this.block_x) <= accuracy,
2190
+ TuringTest: average !== stddev // equal => not person operate
2191
+ };
2192
+ },
2193
+
2194
+ reset() {
2195
+ this.success = false;
2196
+ this.containerActive = false;
2197
+ this.containerSuccess = false;
2198
+ this.containerFail = false;
2199
+ this.sliderLeft = 0;
2200
+ this.block.style.left = 0;
2201
+ this.sliderMaskWidth = 0;
2202
+ // canvas
2203
+ let {
2204
+ w,
2205
+ h
2206
+ } = this;
2207
+ this.canvasCtx.clearRect(0, 0, w, h);
2208
+ this.blockCtx.clearRect(0, 0, w, h);
2209
+ this.block.width = w;
2210
+
2211
+ // generate img
2212
+ this.img.src = this.getRandomImg();
2213
+ this.$emit("fulfilled");
2214
+ }
82
2215
  },
83
- methods: {},
84
- filters: {},
85
- created() {}
2216
+ destroyed() {
2217
+ document.removeEventListener("mousemove", this.handleMoveEvent);
2218
+ document.removeEventListener("mouseup", this.handleMoveEndEvent);
2219
+ }
86
2220
  });
87
- ;// CONCATENATED MODULE: ./src/components/Button/index.vue?vue&type=script&lang=js&
88
- /* harmony default export */ var components_Buttonvue_type_script_lang_js_ = (Buttonvue_type_script_lang_js_);
89
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Button/index.vue?vue&type=style&index=0&id=3170b9bf&prod&lang=css&
2221
+ function throttle(fn, interval = 50, options = {
2222
+ leading: true,
2223
+ trailing: true
2224
+ }) {
2225
+ const {
2226
+ leading,
2227
+ trailing,
2228
+ resultCallback
2229
+ } = options;
2230
+ let lastTime = 0;
2231
+ let timer = null;
2232
+ const _throttle = function (...args) {
2233
+ return new Promise((resolve, reject) => {
2234
+ const nowTime = new Date().getTime();
2235
+ if (!lastTime && !leading) lastTime = nowTime;
2236
+ const remainTime = interval - (nowTime - lastTime);
2237
+ if (remainTime <= 0) {
2238
+ if (timer) {
2239
+ clearTimeout(timer);
2240
+ timer = null;
2241
+ }
2242
+ const result = fn.apply(this, args);
2243
+ if (resultCallback) resultCallback(result);
2244
+ resolve(result);
2245
+ lastTime = nowTime;
2246
+ return;
2247
+ }
2248
+ if (trailing && !timer) {
2249
+ timer = setTimeout(() => {
2250
+ timer = null;
2251
+ lastTime = !leading ? 0 : new Date().getTime();
2252
+ const result = fn.apply(this, args);
2253
+ if (resultCallback) resultCallback(result);
2254
+ resolve(result);
2255
+ }, remainTime);
2256
+ }
2257
+ });
2258
+ };
2259
+ _throttle.cancel = function () {
2260
+ if (timer) clearTimeout(timer);
2261
+ timer = null;
2262
+ lastTime = 0;
2263
+ };
2264
+ return _throttle;
2265
+ }
2266
+ ;// CONCATENATED MODULE: ./node_modules/vue-monoplasty-slide-verify/src/lib/slide-verify.vue?vue&type=script&lang=js&
2267
+ /* harmony default export */ var lib_slide_verifyvue_type_script_lang_js_ = (slide_verifyvue_type_script_lang_js_);
2268
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./node_modules/vue-monoplasty-slide-verify/src/lib/slide-verify.vue?vue&type=style&index=0&id=b67196d8&prod&scoped=true&lang=css&
90
2269
  // extracted by mini-css-extract-plugin
91
2270
 
92
- ;// CONCATENATED MODULE: ./src/components/Button/index.vue?vue&type=style&index=0&id=3170b9bf&prod&lang=css&
2271
+ ;// CONCATENATED MODULE: ./node_modules/vue-monoplasty-slide-verify/src/lib/slide-verify.vue?vue&type=style&index=0&id=b67196d8&prod&scoped=true&lang=css&
93
2272
 
94
2273
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
95
2274
  /* globals __VUE_SSR_CONTEXT__ */
@@ -189,7 +2368,7 @@ function normalizeComponent(
189
2368
  }
190
2369
  }
191
2370
 
192
- ;// CONCATENATED MODULE: ./src/components/Button/index.vue
2371
+ ;// CONCATENATED MODULE: ./node_modules/vue-monoplasty-slide-verify/src/lib/slide-verify.vue
193
2372
 
194
2373
 
195
2374
 
@@ -199,7 +2378,69 @@ function normalizeComponent(
199
2378
  /* normalize component */
200
2379
 
201
2380
  var component = normalizeComponent(
202
- components_Buttonvue_type_script_lang_js_,
2381
+ lib_slide_verifyvue_type_script_lang_js_,
2382
+ slide_verifyvue_type_template_id_b67196d8_scoped_true_render,
2383
+ slide_verifyvue_type_template_id_b67196d8_scoped_true_staticRenderFns,
2384
+ false,
2385
+ null,
2386
+ "b67196d8",
2387
+ null
2388
+
2389
+ )
2390
+
2391
+ /* harmony default export */ var slide_verify = (component.exports);
2392
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcSlideVerify/index.vue?vue&type=script&lang=js&
2393
+
2394
+
2395
+ /* harmony default export */ var YcSlideVerifyvue_type_script_lang_js_ = ({
2396
+ name: "YcSlideVerify",
2397
+ components: {
2398
+ SlideVerify: slide_verify
2399
+ },
2400
+ data() {
2401
+ return {
2402
+ show: true,
2403
+ isShow: false,
2404
+ accuracy: 5,
2405
+ sliderText: "拖动完成上方拼图",
2406
+ countDownNum: 120
2407
+ };
2408
+ },
2409
+ computed: {
2410
+ imgs() {
2411
+ const list = [];
2412
+ for (let i = 1; i < 9; i++) {
2413
+ list.push(__webpack_require__(4359)(`./${i}.jpg`));
2414
+ }
2415
+ return list;
2416
+ }
2417
+ },
2418
+ methods: {
2419
+ onSuccess() {
2420
+ this.isShow = false;
2421
+ console.log(344444);
2422
+ },
2423
+ onFail() {},
2424
+ onAgain() {},
2425
+ onRefresh() {},
2426
+ onFulfilled() {},
2427
+ handleClose() {
2428
+ this.isShow = false;
2429
+ }
2430
+ }
2431
+ });
2432
+ ;// CONCATENATED MODULE: ./src/components/YcSlideVerify/index.vue?vue&type=script&lang=js&
2433
+ /* harmony default export */ var components_YcSlideVerifyvue_type_script_lang_js_ = (YcSlideVerifyvue_type_script_lang_js_);
2434
+ ;// CONCATENATED MODULE: ./src/components/YcSlideVerify/index.vue
2435
+
2436
+
2437
+
2438
+
2439
+
2440
+ /* normalize component */
2441
+ ;
2442
+ var YcSlideVerify_component = normalizeComponent(
2443
+ components_YcSlideVerifyvue_type_script_lang_js_,
203
2444
  render,
204
2445
  staticRenderFns,
205
2446
  false,
@@ -209,10 +2450,10 @@ var component = normalizeComponent(
209
2450
 
210
2451
  )
211
2452
 
212
- /* harmony default export */ var Button = (component.exports);
2453
+ /* harmony default export */ var YcSlideVerify = (YcSlideVerify_component.exports);
213
2454
  ;// CONCATENATED MODULE: ./src/packages/index.js
214
2455
 
215
- const components = [Button];
2456
+ const components = [YcSlideVerify];
216
2457
  // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
217
2458
  const install = function (Vue) {
218
2459
  // 遍历注册全局组件
@@ -236,6 +2477,7 @@ const install = function (Vue) {
236
2477
  /* harmony default export */ var entry_lib = (src_packages);
237
2478
 
238
2479
 
2480
+ }();
239
2481
  module.exports = __webpack_exports__;
240
2482
  /******/ })()
241
2483
  ;