xianniu-ui 0.5.1 → 0.5.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/lib/static/css/xianniu-ui.umd.5be6bd50.css +1 -0
  2. package/lib/static/css/xianniu-ui.umd.min.5be6bd50.css +1 -0
  3. package/lib/xianniu-ui.common.chunk-elementUI.js +69440 -0
  4. package/lib/xianniu-ui.common.chunk-libs~253ae210.js +3816 -0
  5. package/lib/xianniu-ui.common.chunk-libs~31ecd969.js +1267 -0
  6. package/lib/xianniu-ui.common.chunk-libs~6cb95173.js +1594 -0
  7. package/lib/xianniu-ui.common.chunk-libs~93acefaf.js +3328 -0
  8. package/lib/xianniu-ui.common.chunk-libs~af0f4b76.js +17212 -0
  9. package/lib/xianniu-ui.common.chunk-libs~b58f7129.js +1723 -0
  10. package/lib/xianniu-ui.common.chunk-libs~d939e436.js +2356 -0
  11. package/lib/xianniu-ui.common.chunk-libs~dfe5688e.js +4924 -0
  12. package/lib/xianniu-ui.common.js +55 -122634
  13. package/lib/xianniu-ui.common.xianniu-ui.common.js +17165 -0
  14. package/lib/xianniu-ui.umd.chunk-elementUI.js +69440 -0
  15. package/lib/xianniu-ui.umd.chunk-libs~253ae210.js +3816 -0
  16. package/lib/xianniu-ui.umd.chunk-libs~31ecd969.js +1267 -0
  17. package/lib/xianniu-ui.umd.chunk-libs~6cb95173.js +1594 -0
  18. package/lib/xianniu-ui.umd.chunk-libs~93acefaf.js +3328 -0
  19. package/lib/xianniu-ui.umd.chunk-libs~af0f4b76.js +17212 -0
  20. package/lib/xianniu-ui.umd.chunk-libs~b58f7129.js +1723 -0
  21. package/lib/xianniu-ui.umd.chunk-libs~d939e436.js +2356 -0
  22. package/lib/xianniu-ui.umd.chunk-libs~dfe5688e.js +4924 -0
  23. package/lib/xianniu-ui.umd.js +56 -122645
  24. package/lib/xianniu-ui.umd.min.chunk-elementUI.js +9 -0
  25. package/lib/xianniu-ui.umd.min.chunk-libs~253ae210.js +1 -0
  26. package/lib/xianniu-ui.umd.min.chunk-libs~31ecd969.js +1 -0
  27. package/lib/xianniu-ui.umd.min.chunk-libs~6cb95173.js +1 -0
  28. package/lib/xianniu-ui.umd.min.chunk-libs~93acefaf.js +1 -0
  29. package/lib/xianniu-ui.umd.min.chunk-libs~af0f4b76.js +9 -0
  30. package/lib/xianniu-ui.umd.min.chunk-libs~b58f7129.js +16 -0
  31. package/lib/xianniu-ui.umd.min.chunk-libs~d939e436.js +1 -0
  32. package/lib/xianniu-ui.umd.min.chunk-libs~dfe5688e.js +8 -0
  33. package/lib/xianniu-ui.umd.min.js +1 -39
  34. package/lib/xianniu-ui.umd.min.xianniu-ui.umd.min.js +1 -0
  35. package/lib/xianniu-ui.umd.xianniu-ui.umd.js +17175 -0
  36. package/package.json +1 -1
  37. package/packages/search/main.vue +1 -1
  38. /package/lib/{xianniu-ui.css → static/css/xianniu-ui.common.5be6bd50.css} +0 -0
@@ -0,0 +1,3816 @@
1
+ ((typeof self !== 'undefined' ? self : this)["webpackJsonpxianniu_ui"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpxianniu_ui"] || []).push([[1],{
2
+
3
+ /***/ "06c5":
4
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5
+
6
+ "use strict";
7
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; });
8
+ /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6b75");
9
+
10
+ function _unsupportedIterableToArray(o, minLen) {
11
+ if (!o) return;
12
+ if (typeof o === "string") return Object(_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
13
+ var n = Object.prototype.toString.call(o).slice(8, -1);
14
+ if (n === "Object" && o.constructor) n = o.constructor.name;
15
+ if (n === "Map" || n === "Set") return Array.from(o);
16
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
17
+ }
18
+
19
+ /***/ }),
20
+
21
+ /***/ "0a06":
22
+ /***/ (function(module, exports, __webpack_require__) {
23
+
24
+ "use strict";
25
+
26
+
27
+ var utils = __webpack_require__("c532");
28
+ var buildURL = __webpack_require__("30b5");
29
+ var InterceptorManager = __webpack_require__("f6b4");
30
+ var dispatchRequest = __webpack_require__("5270");
31
+ var mergeConfig = __webpack_require__("4a7b");
32
+ var validator = __webpack_require__("848b");
33
+
34
+ var validators = validator.validators;
35
+ /**
36
+ * Create a new instance of Axios
37
+ *
38
+ * @param {Object} instanceConfig The default config for the instance
39
+ */
40
+ function Axios(instanceConfig) {
41
+ this.defaults = instanceConfig;
42
+ this.interceptors = {
43
+ request: new InterceptorManager(),
44
+ response: new InterceptorManager()
45
+ };
46
+ }
47
+
48
+ /**
49
+ * Dispatch a request
50
+ *
51
+ * @param {Object} config The config specific for this request (merged with this.defaults)
52
+ */
53
+ Axios.prototype.request = function request(configOrUrl, config) {
54
+ /*eslint no-param-reassign:0*/
55
+ // Allow for axios('example/url'[, config]) a la fetch API
56
+ if (typeof configOrUrl === 'string') {
57
+ config = config || {};
58
+ config.url = configOrUrl;
59
+ } else {
60
+ config = configOrUrl || {};
61
+ }
62
+
63
+ config = mergeConfig(this.defaults, config);
64
+
65
+ // Set config.method
66
+ if (config.method) {
67
+ config.method = config.method.toLowerCase();
68
+ } else if (this.defaults.method) {
69
+ config.method = this.defaults.method.toLowerCase();
70
+ } else {
71
+ config.method = 'get';
72
+ }
73
+
74
+ var transitional = config.transitional;
75
+
76
+ if (transitional !== undefined) {
77
+ validator.assertOptions(transitional, {
78
+ silentJSONParsing: validators.transitional(validators.boolean),
79
+ forcedJSONParsing: validators.transitional(validators.boolean),
80
+ clarifyTimeoutError: validators.transitional(validators.boolean)
81
+ }, false);
82
+ }
83
+
84
+ // filter out skipped interceptors
85
+ var requestInterceptorChain = [];
86
+ var synchronousRequestInterceptors = true;
87
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
88
+ if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
89
+ return;
90
+ }
91
+
92
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
93
+
94
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
95
+ });
96
+
97
+ var responseInterceptorChain = [];
98
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
99
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
100
+ });
101
+
102
+ var promise;
103
+
104
+ if (!synchronousRequestInterceptors) {
105
+ var chain = [dispatchRequest, undefined];
106
+
107
+ Array.prototype.unshift.apply(chain, requestInterceptorChain);
108
+ chain = chain.concat(responseInterceptorChain);
109
+
110
+ promise = Promise.resolve(config);
111
+ while (chain.length) {
112
+ promise = promise.then(chain.shift(), chain.shift());
113
+ }
114
+
115
+ return promise;
116
+ }
117
+
118
+
119
+ var newConfig = config;
120
+ while (requestInterceptorChain.length) {
121
+ var onFulfilled = requestInterceptorChain.shift();
122
+ var onRejected = requestInterceptorChain.shift();
123
+ try {
124
+ newConfig = onFulfilled(newConfig);
125
+ } catch (error) {
126
+ onRejected(error);
127
+ break;
128
+ }
129
+ }
130
+
131
+ try {
132
+ promise = dispatchRequest(newConfig);
133
+ } catch (error) {
134
+ return Promise.reject(error);
135
+ }
136
+
137
+ while (responseInterceptorChain.length) {
138
+ promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
139
+ }
140
+
141
+ return promise;
142
+ };
143
+
144
+ Axios.prototype.getUri = function getUri(config) {
145
+ config = mergeConfig(this.defaults, config);
146
+ return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
147
+ };
148
+
149
+ // Provide aliases for supported request methods
150
+ utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
151
+ /*eslint func-names:0*/
152
+ Axios.prototype[method] = function(url, config) {
153
+ return this.request(mergeConfig(config || {}, {
154
+ method: method,
155
+ url: url,
156
+ data: (config || {}).data
157
+ }));
158
+ };
159
+ });
160
+
161
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
162
+ /*eslint func-names:0*/
163
+ Axios.prototype[method] = function(url, data, config) {
164
+ return this.request(mergeConfig(config || {}, {
165
+ method: method,
166
+ url: url,
167
+ data: data
168
+ }));
169
+ };
170
+ });
171
+
172
+ module.exports = Axios;
173
+
174
+
175
+ /***/ }),
176
+
177
+ /***/ "0c7c":
178
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
179
+
180
+ "use strict";
181
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
182
+ /* globals __VUE_SSR_CONTEXT__ */
183
+
184
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
185
+ // This module is a runtime utility for cleaner component module output and will
186
+ // be included in the final webpack user bundle.
187
+
188
+ function normalizeComponent (
189
+ scriptExports,
190
+ render,
191
+ staticRenderFns,
192
+ functionalTemplate,
193
+ injectStyles,
194
+ scopeId,
195
+ moduleIdentifier, /* server only */
196
+ shadowMode /* vue-cli only */
197
+ ) {
198
+ // Vue.extend constructor export interop
199
+ var options = typeof scriptExports === 'function'
200
+ ? scriptExports.options
201
+ : scriptExports
202
+
203
+ // render functions
204
+ if (render) {
205
+ options.render = render
206
+ options.staticRenderFns = staticRenderFns
207
+ options._compiled = true
208
+ }
209
+
210
+ // functional template
211
+ if (functionalTemplate) {
212
+ options.functional = true
213
+ }
214
+
215
+ // scopedId
216
+ if (scopeId) {
217
+ options._scopeId = 'data-v-' + scopeId
218
+ }
219
+
220
+ var hook
221
+ if (moduleIdentifier) { // server build
222
+ hook = function (context) {
223
+ // 2.3 injection
224
+ context =
225
+ context || // cached call
226
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
227
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
228
+ // 2.2 with runInNewContext: true
229
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
230
+ context = __VUE_SSR_CONTEXT__
231
+ }
232
+ // inject component styles
233
+ if (injectStyles) {
234
+ injectStyles.call(this, context)
235
+ }
236
+ // register component module identifier for async chunk inferrence
237
+ if (context && context._registeredComponents) {
238
+ context._registeredComponents.add(moduleIdentifier)
239
+ }
240
+ }
241
+ // used by ssr in case component is cached and beforeCreate
242
+ // never gets called
243
+ options._ssrRegister = hook
244
+ } else if (injectStyles) {
245
+ hook = shadowMode
246
+ ? function () {
247
+ injectStyles.call(
248
+ this,
249
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
250
+ )
251
+ }
252
+ : injectStyles
253
+ }
254
+
255
+ if (hook) {
256
+ if (options.functional) {
257
+ // for template-only hot-reload because in that case the render fn doesn't
258
+ // go through the normalizer
259
+ options._injectStyles = hook
260
+ // register for functional component in vue file
261
+ var originalRender = options.render
262
+ options.render = function renderWithStyleInjection (h, context) {
263
+ hook.call(context)
264
+ return originalRender(h, context)
265
+ }
266
+ } else {
267
+ // inject component registration as beforeCreate hook
268
+ var existing = options.beforeCreate
269
+ options.beforeCreate = existing
270
+ ? [].concat(existing, hook)
271
+ : [hook]
272
+ }
273
+ }
274
+
275
+ return {
276
+ exports: scriptExports,
277
+ options: options
278
+ }
279
+ }
280
+
281
+
282
+ /***/ }),
283
+
284
+ /***/ "0df6":
285
+ /***/ (function(module, exports, __webpack_require__) {
286
+
287
+ "use strict";
288
+
289
+
290
+ /**
291
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
292
+ *
293
+ * Common use case would be to use `Function.prototype.apply`.
294
+ *
295
+ * ```js
296
+ * function f(x, y, z) {}
297
+ * var args = [1, 2, 3];
298
+ * f.apply(null, args);
299
+ * ```
300
+ *
301
+ * With `spread` this example can be re-written.
302
+ *
303
+ * ```js
304
+ * spread(function(x, y, z) {})([1, 2, 3]);
305
+ * ```
306
+ *
307
+ * @param {Function} callback
308
+ * @returns {Function}
309
+ */
310
+ module.exports = function spread(callback) {
311
+ return function wrap(arr) {
312
+ return callback.apply(null, arr);
313
+ };
314
+ };
315
+
316
+
317
+ /***/ }),
318
+
319
+ /***/ "1d2b":
320
+ /***/ (function(module, exports, __webpack_require__) {
321
+
322
+ "use strict";
323
+
324
+
325
+ module.exports = function bind(fn, thisArg) {
326
+ return function wrap() {
327
+ var args = new Array(arguments.length);
328
+ for (var i = 0; i < args.length; i++) {
329
+ args[i] = arguments[i];
330
+ }
331
+ return fn.apply(thisArg, args);
332
+ };
333
+ };
334
+
335
+
336
+ /***/ }),
337
+
338
+ /***/ "1da1":
339
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
340
+
341
+ "use strict";
342
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; });
343
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
344
+ try {
345
+ var info = gen[key](arg);
346
+ var value = info.value;
347
+ } catch (error) {
348
+ reject(error);
349
+ return;
350
+ }
351
+
352
+ if (info.done) {
353
+ resolve(value);
354
+ } else {
355
+ Promise.resolve(value).then(_next, _throw);
356
+ }
357
+ }
358
+
359
+ function _asyncToGenerator(fn) {
360
+ return function () {
361
+ var self = this,
362
+ args = arguments;
363
+ return new Promise(function (resolve, reject) {
364
+ var gen = fn.apply(self, args);
365
+
366
+ function _next(value) {
367
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
368
+ }
369
+
370
+ function _throw(err) {
371
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
372
+ }
373
+
374
+ _next(undefined);
375
+ });
376
+ };
377
+ }
378
+
379
+ /***/ }),
380
+
381
+ /***/ "2909":
382
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
383
+
384
+ "use strict";
385
+
386
+ // EXPORTS
387
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; });
388
+
389
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
390
+ var arrayLikeToArray = __webpack_require__("6b75");
391
+
392
+ // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
393
+
394
+ function _arrayWithoutHoles(arr) {
395
+ if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
396
+ }
397
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
398
+ var iterableToArray = __webpack_require__("db90");
399
+
400
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
401
+ var unsupportedIterableToArray = __webpack_require__("06c5");
402
+
403
+ // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
404
+ function _nonIterableSpread() {
405
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
406
+ }
407
+ // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
408
+
409
+
410
+
411
+
412
+ function _toConsumableArray(arr) {
413
+ return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread();
414
+ }
415
+
416
+ /***/ }),
417
+
418
+ /***/ "2d83":
419
+ /***/ (function(module, exports, __webpack_require__) {
420
+
421
+ "use strict";
422
+
423
+
424
+ var enhanceError = __webpack_require__("387f");
425
+
426
+ /**
427
+ * Create an Error with the specified message, config, error code, request and response.
428
+ *
429
+ * @param {string} message The error message.
430
+ * @param {Object} config The config.
431
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
432
+ * @param {Object} [request] The request.
433
+ * @param {Object} [response] The response.
434
+ * @returns {Error} The created error.
435
+ */
436
+ module.exports = function createError(message, config, code, request, response) {
437
+ var error = new Error(message);
438
+ return enhanceError(error, config, code, request, response);
439
+ };
440
+
441
+
442
+ /***/ }),
443
+
444
+ /***/ "2e67":
445
+ /***/ (function(module, exports, __webpack_require__) {
446
+
447
+ "use strict";
448
+
449
+
450
+ module.exports = function isCancel(value) {
451
+ return !!(value && value.__CANCEL__);
452
+ };
453
+
454
+
455
+ /***/ }),
456
+
457
+ /***/ "30b5":
458
+ /***/ (function(module, exports, __webpack_require__) {
459
+
460
+ "use strict";
461
+
462
+
463
+ var utils = __webpack_require__("c532");
464
+
465
+ function encode(val) {
466
+ return encodeURIComponent(val).
467
+ replace(/%3A/gi, ':').
468
+ replace(/%24/g, '$').
469
+ replace(/%2C/gi, ',').
470
+ replace(/%20/g, '+').
471
+ replace(/%5B/gi, '[').
472
+ replace(/%5D/gi, ']');
473
+ }
474
+
475
+ /**
476
+ * Build a URL by appending params to the end
477
+ *
478
+ * @param {string} url The base of the url (e.g., http://www.google.com)
479
+ * @param {object} [params] The params to be appended
480
+ * @returns {string} The formatted url
481
+ */
482
+ module.exports = function buildURL(url, params, paramsSerializer) {
483
+ /*eslint no-param-reassign:0*/
484
+ if (!params) {
485
+ return url;
486
+ }
487
+
488
+ var serializedParams;
489
+ if (paramsSerializer) {
490
+ serializedParams = paramsSerializer(params);
491
+ } else if (utils.isURLSearchParams(params)) {
492
+ serializedParams = params.toString();
493
+ } else {
494
+ var parts = [];
495
+
496
+ utils.forEach(params, function serialize(val, key) {
497
+ if (val === null || typeof val === 'undefined') {
498
+ return;
499
+ }
500
+
501
+ if (utils.isArray(val)) {
502
+ key = key + '[]';
503
+ } else {
504
+ val = [val];
505
+ }
506
+
507
+ utils.forEach(val, function parseValue(v) {
508
+ if (utils.isDate(v)) {
509
+ v = v.toISOString();
510
+ } else if (utils.isObject(v)) {
511
+ v = JSON.stringify(v);
512
+ }
513
+ parts.push(encode(key) + '=' + encode(v));
514
+ });
515
+ });
516
+
517
+ serializedParams = parts.join('&');
518
+ }
519
+
520
+ if (serializedParams) {
521
+ var hashmarkIndex = url.indexOf('#');
522
+ if (hashmarkIndex !== -1) {
523
+ url = url.slice(0, hashmarkIndex);
524
+ }
525
+
526
+ url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
527
+ }
528
+
529
+ return url;
530
+ };
531
+
532
+
533
+ /***/ }),
534
+
535
+ /***/ "387f":
536
+ /***/ (function(module, exports, __webpack_require__) {
537
+
538
+ "use strict";
539
+
540
+
541
+ /**
542
+ * Update an Error with the specified config, error code, and response.
543
+ *
544
+ * @param {Error} error The error to update.
545
+ * @param {Object} config The config.
546
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
547
+ * @param {Object} [request] The request.
548
+ * @param {Object} [response] The response.
549
+ * @returns {Error} The error.
550
+ */
551
+ module.exports = function enhanceError(error, config, code, request, response) {
552
+ error.config = config;
553
+ if (code) {
554
+ error.code = code;
555
+ }
556
+
557
+ error.request = request;
558
+ error.response = response;
559
+ error.isAxiosError = true;
560
+
561
+ error.toJSON = function toJSON() {
562
+ return {
563
+ // Standard
564
+ message: this.message,
565
+ name: this.name,
566
+ // Microsoft
567
+ description: this.description,
568
+ number: this.number,
569
+ // Mozilla
570
+ fileName: this.fileName,
571
+ lineNumber: this.lineNumber,
572
+ columnNumber: this.columnNumber,
573
+ stack: this.stack,
574
+ // Axios
575
+ config: this.config,
576
+ code: this.code,
577
+ status: this.response && this.response.status ? this.response.status : null
578
+ };
579
+ };
580
+ return error;
581
+ };
582
+
583
+
584
+ /***/ }),
585
+
586
+ /***/ "3934":
587
+ /***/ (function(module, exports, __webpack_require__) {
588
+
589
+ "use strict";
590
+
591
+
592
+ var utils = __webpack_require__("c532");
593
+
594
+ module.exports = (
595
+ utils.isStandardBrowserEnv() ?
596
+
597
+ // Standard browser envs have full support of the APIs needed to test
598
+ // whether the request URL is of the same origin as current location.
599
+ (function standardBrowserEnv() {
600
+ var msie = /(msie|trident)/i.test(navigator.userAgent);
601
+ var urlParsingNode = document.createElement('a');
602
+ var originURL;
603
+
604
+ /**
605
+ * Parse a URL to discover it's components
606
+ *
607
+ * @param {String} url The URL to be parsed
608
+ * @returns {Object}
609
+ */
610
+ function resolveURL(url) {
611
+ var href = url;
612
+
613
+ if (msie) {
614
+ // IE needs attribute set twice to normalize properties
615
+ urlParsingNode.setAttribute('href', href);
616
+ href = urlParsingNode.href;
617
+ }
618
+
619
+ urlParsingNode.setAttribute('href', href);
620
+
621
+ // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
622
+ return {
623
+ href: urlParsingNode.href,
624
+ protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
625
+ host: urlParsingNode.host,
626
+ search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
627
+ hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
628
+ hostname: urlParsingNode.hostname,
629
+ port: urlParsingNode.port,
630
+ pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
631
+ urlParsingNode.pathname :
632
+ '/' + urlParsingNode.pathname
633
+ };
634
+ }
635
+
636
+ originURL = resolveURL(window.location.href);
637
+
638
+ /**
639
+ * Determine if a URL shares the same origin as the current location
640
+ *
641
+ * @param {String} requestURL The URL to test
642
+ * @returns {boolean} True if URL shares the same origin, otherwise false
643
+ */
644
+ return function isURLSameOrigin(requestURL) {
645
+ var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
646
+ return (parsed.protocol === originURL.protocol &&
647
+ parsed.host === originURL.host);
648
+ };
649
+ })() :
650
+
651
+ // Non standard browser envs (web workers, react-native) lack needed support.
652
+ (function nonStandardBrowserEnv() {
653
+ return function isURLSameOrigin() {
654
+ return true;
655
+ };
656
+ })()
657
+ );
658
+
659
+
660
+ /***/ }),
661
+
662
+ /***/ "467f":
663
+ /***/ (function(module, exports, __webpack_require__) {
664
+
665
+ "use strict";
666
+
667
+
668
+ var createError = __webpack_require__("2d83");
669
+
670
+ /**
671
+ * Resolve or reject a Promise based on response status.
672
+ *
673
+ * @param {Function} resolve A function that resolves the promise.
674
+ * @param {Function} reject A function that rejects the promise.
675
+ * @param {object} response The response.
676
+ */
677
+ module.exports = function settle(resolve, reject, response) {
678
+ var validateStatus = response.config.validateStatus;
679
+ if (!response.status || !validateStatus || validateStatus(response.status)) {
680
+ resolve(response);
681
+ } else {
682
+ reject(createError(
683
+ 'Request failed with status code ' + response.status,
684
+ response.config,
685
+ null,
686
+ response.request,
687
+ response
688
+ ));
689
+ }
690
+ };
691
+
692
+
693
+ /***/ }),
694
+
695
+ /***/ "4a7b":
696
+ /***/ (function(module, exports, __webpack_require__) {
697
+
698
+ "use strict";
699
+
700
+
701
+ var utils = __webpack_require__("c532");
702
+
703
+ /**
704
+ * Config-specific merge-function which creates a new config-object
705
+ * by merging two configuration objects together.
706
+ *
707
+ * @param {Object} config1
708
+ * @param {Object} config2
709
+ * @returns {Object} New object resulting from merging config2 to config1
710
+ */
711
+ module.exports = function mergeConfig(config1, config2) {
712
+ // eslint-disable-next-line no-param-reassign
713
+ config2 = config2 || {};
714
+ var config = {};
715
+
716
+ function getMergedValue(target, source) {
717
+ if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
718
+ return utils.merge(target, source);
719
+ } else if (utils.isPlainObject(source)) {
720
+ return utils.merge({}, source);
721
+ } else if (utils.isArray(source)) {
722
+ return source.slice();
723
+ }
724
+ return source;
725
+ }
726
+
727
+ // eslint-disable-next-line consistent-return
728
+ function mergeDeepProperties(prop) {
729
+ if (!utils.isUndefined(config2[prop])) {
730
+ return getMergedValue(config1[prop], config2[prop]);
731
+ } else if (!utils.isUndefined(config1[prop])) {
732
+ return getMergedValue(undefined, config1[prop]);
733
+ }
734
+ }
735
+
736
+ // eslint-disable-next-line consistent-return
737
+ function valueFromConfig2(prop) {
738
+ if (!utils.isUndefined(config2[prop])) {
739
+ return getMergedValue(undefined, config2[prop]);
740
+ }
741
+ }
742
+
743
+ // eslint-disable-next-line consistent-return
744
+ function defaultToConfig2(prop) {
745
+ if (!utils.isUndefined(config2[prop])) {
746
+ return getMergedValue(undefined, config2[prop]);
747
+ } else if (!utils.isUndefined(config1[prop])) {
748
+ return getMergedValue(undefined, config1[prop]);
749
+ }
750
+ }
751
+
752
+ // eslint-disable-next-line consistent-return
753
+ function mergeDirectKeys(prop) {
754
+ if (prop in config2) {
755
+ return getMergedValue(config1[prop], config2[prop]);
756
+ } else if (prop in config1) {
757
+ return getMergedValue(undefined, config1[prop]);
758
+ }
759
+ }
760
+
761
+ var mergeMap = {
762
+ 'url': valueFromConfig2,
763
+ 'method': valueFromConfig2,
764
+ 'data': valueFromConfig2,
765
+ 'baseURL': defaultToConfig2,
766
+ 'transformRequest': defaultToConfig2,
767
+ 'transformResponse': defaultToConfig2,
768
+ 'paramsSerializer': defaultToConfig2,
769
+ 'timeout': defaultToConfig2,
770
+ 'timeoutMessage': defaultToConfig2,
771
+ 'withCredentials': defaultToConfig2,
772
+ 'adapter': defaultToConfig2,
773
+ 'responseType': defaultToConfig2,
774
+ 'xsrfCookieName': defaultToConfig2,
775
+ 'xsrfHeaderName': defaultToConfig2,
776
+ 'onUploadProgress': defaultToConfig2,
777
+ 'onDownloadProgress': defaultToConfig2,
778
+ 'decompress': defaultToConfig2,
779
+ 'maxContentLength': defaultToConfig2,
780
+ 'maxBodyLength': defaultToConfig2,
781
+ 'transport': defaultToConfig2,
782
+ 'httpAgent': defaultToConfig2,
783
+ 'httpsAgent': defaultToConfig2,
784
+ 'cancelToken': defaultToConfig2,
785
+ 'socketPath': defaultToConfig2,
786
+ 'responseEncoding': defaultToConfig2,
787
+ 'validateStatus': mergeDirectKeys
788
+ };
789
+
790
+ utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
791
+ var merge = mergeMap[prop] || mergeDeepProperties;
792
+ var configValue = merge(prop);
793
+ (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
794
+ });
795
+
796
+ return config;
797
+ };
798
+
799
+
800
+ /***/ }),
801
+
802
+ /***/ "4c3d":
803
+ /***/ (function(module, exports, __webpack_require__) {
804
+
805
+ "use strict";
806
+ /* WEBPACK VAR INJECTION */(function(process) {
807
+
808
+ var utils = __webpack_require__("c532");
809
+ var normalizeHeaderName = __webpack_require__("c8af");
810
+ var enhanceError = __webpack_require__("387f");
811
+ var transitionalDefaults = __webpack_require__("cafa");
812
+
813
+ var DEFAULT_CONTENT_TYPE = {
814
+ 'Content-Type': 'application/x-www-form-urlencoded'
815
+ };
816
+
817
+ function setContentTypeIfUnset(headers, value) {
818
+ if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
819
+ headers['Content-Type'] = value;
820
+ }
821
+ }
822
+
823
+ function getDefaultAdapter() {
824
+ var adapter;
825
+ if (typeof XMLHttpRequest !== 'undefined') {
826
+ // For browsers use XHR adapter
827
+ adapter = __webpack_require__("b50d");
828
+ } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
829
+ // For node use HTTP adapter
830
+ adapter = __webpack_require__("b50d");
831
+ }
832
+ return adapter;
833
+ }
834
+
835
+ function stringifySafely(rawValue, parser, encoder) {
836
+ if (utils.isString(rawValue)) {
837
+ try {
838
+ (parser || JSON.parse)(rawValue);
839
+ return utils.trim(rawValue);
840
+ } catch (e) {
841
+ if (e.name !== 'SyntaxError') {
842
+ throw e;
843
+ }
844
+ }
845
+ }
846
+
847
+ return (encoder || JSON.stringify)(rawValue);
848
+ }
849
+
850
+ var defaults = {
851
+
852
+ transitional: transitionalDefaults,
853
+
854
+ adapter: getDefaultAdapter(),
855
+
856
+ transformRequest: [function transformRequest(data, headers) {
857
+ normalizeHeaderName(headers, 'Accept');
858
+ normalizeHeaderName(headers, 'Content-Type');
859
+
860
+ if (utils.isFormData(data) ||
861
+ utils.isArrayBuffer(data) ||
862
+ utils.isBuffer(data) ||
863
+ utils.isStream(data) ||
864
+ utils.isFile(data) ||
865
+ utils.isBlob(data)
866
+ ) {
867
+ return data;
868
+ }
869
+ if (utils.isArrayBufferView(data)) {
870
+ return data.buffer;
871
+ }
872
+ if (utils.isURLSearchParams(data)) {
873
+ setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
874
+ return data.toString();
875
+ }
876
+ if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
877
+ setContentTypeIfUnset(headers, 'application/json');
878
+ return stringifySafely(data);
879
+ }
880
+ return data;
881
+ }],
882
+
883
+ transformResponse: [function transformResponse(data) {
884
+ var transitional = this.transitional || defaults.transitional;
885
+ var silentJSONParsing = transitional && transitional.silentJSONParsing;
886
+ var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
887
+ var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
888
+
889
+ if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {
890
+ try {
891
+ return JSON.parse(data);
892
+ } catch (e) {
893
+ if (strictJSONParsing) {
894
+ if (e.name === 'SyntaxError') {
895
+ throw enhanceError(e, this, 'E_JSON_PARSE');
896
+ }
897
+ throw e;
898
+ }
899
+ }
900
+ }
901
+
902
+ return data;
903
+ }],
904
+
905
+ /**
906
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
907
+ * timeout is not created.
908
+ */
909
+ timeout: 0,
910
+
911
+ xsrfCookieName: 'XSRF-TOKEN',
912
+ xsrfHeaderName: 'X-XSRF-TOKEN',
913
+
914
+ maxContentLength: -1,
915
+ maxBodyLength: -1,
916
+
917
+ validateStatus: function validateStatus(status) {
918
+ return status >= 200 && status < 300;
919
+ },
920
+
921
+ headers: {
922
+ common: {
923
+ 'Accept': 'application/json, text/plain, */*'
924
+ }
925
+ }
926
+ };
927
+
928
+ utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
929
+ defaults.headers[method] = {};
930
+ });
931
+
932
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
933
+ defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
934
+ });
935
+
936
+ module.exports = defaults;
937
+
938
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362")))
939
+
940
+ /***/ }),
941
+
942
+ /***/ "4f96":
943
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
944
+
945
+ "use strict";
946
+
947
+ // EXPORTS
948
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toArray; });
949
+
950
+ // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
951
+ function _arrayWithHoles(arr) {
952
+ if (Array.isArray(arr)) return arr;
953
+ }
954
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
955
+ var iterableToArray = __webpack_require__("db90");
956
+
957
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
958
+ var unsupportedIterableToArray = __webpack_require__("06c5");
959
+
960
+ // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
961
+ function _nonIterableRest() {
962
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
963
+ }
964
+ // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toArray.js
965
+
966
+
967
+
968
+
969
+ function _toArray(arr) {
970
+ return _arrayWithHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableRest();
971
+ }
972
+
973
+ /***/ }),
974
+
975
+ /***/ "5270":
976
+ /***/ (function(module, exports, __webpack_require__) {
977
+
978
+ "use strict";
979
+
980
+
981
+ var utils = __webpack_require__("c532");
982
+ var transformData = __webpack_require__("c401");
983
+ var isCancel = __webpack_require__("2e67");
984
+ var defaults = __webpack_require__("4c3d");
985
+ var Cancel = __webpack_require__("7a77");
986
+
987
+ /**
988
+ * Throws a `Cancel` if cancellation has been requested.
989
+ */
990
+ function throwIfCancellationRequested(config) {
991
+ if (config.cancelToken) {
992
+ config.cancelToken.throwIfRequested();
993
+ }
994
+
995
+ if (config.signal && config.signal.aborted) {
996
+ throw new Cancel('canceled');
997
+ }
998
+ }
999
+
1000
+ /**
1001
+ * Dispatch a request to the server using the configured adapter.
1002
+ *
1003
+ * @param {object} config The config that is to be used for the request
1004
+ * @returns {Promise} The Promise to be fulfilled
1005
+ */
1006
+ module.exports = function dispatchRequest(config) {
1007
+ throwIfCancellationRequested(config);
1008
+
1009
+ // Ensure headers exist
1010
+ config.headers = config.headers || {};
1011
+
1012
+ // Transform request data
1013
+ config.data = transformData.call(
1014
+ config,
1015
+ config.data,
1016
+ config.headers,
1017
+ config.transformRequest
1018
+ );
1019
+
1020
+ // Flatten headers
1021
+ config.headers = utils.merge(
1022
+ config.headers.common || {},
1023
+ config.headers[config.method] || {},
1024
+ config.headers
1025
+ );
1026
+
1027
+ utils.forEach(
1028
+ ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
1029
+ function cleanHeaderConfig(method) {
1030
+ delete config.headers[method];
1031
+ }
1032
+ );
1033
+
1034
+ var adapter = config.adapter || defaults.adapter;
1035
+
1036
+ return adapter(config).then(function onAdapterResolution(response) {
1037
+ throwIfCancellationRequested(config);
1038
+
1039
+ // Transform response data
1040
+ response.data = transformData.call(
1041
+ config,
1042
+ response.data,
1043
+ response.headers,
1044
+ config.transformResponse
1045
+ );
1046
+
1047
+ return response;
1048
+ }, function onAdapterRejection(reason) {
1049
+ if (!isCancel(reason)) {
1050
+ throwIfCancellationRequested(config);
1051
+
1052
+ // Transform response data
1053
+ if (reason && reason.response) {
1054
+ reason.response.data = transformData.call(
1055
+ config,
1056
+ reason.response.data,
1057
+ reason.response.headers,
1058
+ config.transformResponse
1059
+ );
1060
+ }
1061
+ }
1062
+
1063
+ return Promise.reject(reason);
1064
+ });
1065
+ };
1066
+
1067
+
1068
+ /***/ }),
1069
+
1070
+ /***/ "5530":
1071
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1072
+
1073
+ "use strict";
1074
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread2; });
1075
+ /* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ade3");
1076
+
1077
+
1078
+ function ownKeys(object, enumerableOnly) {
1079
+ var keys = Object.keys(object);
1080
+
1081
+ if (Object.getOwnPropertySymbols) {
1082
+ var symbols = Object.getOwnPropertySymbols(object);
1083
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
1084
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
1085
+ })), keys.push.apply(keys, symbols);
1086
+ }
1087
+
1088
+ return keys;
1089
+ }
1090
+
1091
+ function _objectSpread2(target) {
1092
+ for (var i = 1; i < arguments.length; i++) {
1093
+ var source = null != arguments[i] ? arguments[i] : {};
1094
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
1095
+ Object(_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]);
1096
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
1097
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1098
+ });
1099
+ }
1100
+
1101
+ return target;
1102
+ }
1103
+
1104
+ /***/ }),
1105
+
1106
+ /***/ "5cce":
1107
+ /***/ (function(module, exports) {
1108
+
1109
+ module.exports = {
1110
+ "version": "0.26.1"
1111
+ };
1112
+
1113
+ /***/ }),
1114
+
1115
+ /***/ "5f02":
1116
+ /***/ (function(module, exports, __webpack_require__) {
1117
+
1118
+ "use strict";
1119
+
1120
+
1121
+ var utils = __webpack_require__("c532");
1122
+
1123
+ /**
1124
+ * Determines whether the payload is an error thrown by Axios
1125
+ *
1126
+ * @param {*} payload The value to test
1127
+ * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
1128
+ */
1129
+ module.exports = function isAxiosError(payload) {
1130
+ return utils.isObject(payload) && (payload.isAxiosError === true);
1131
+ };
1132
+
1133
+
1134
+ /***/ }),
1135
+
1136
+ /***/ "6b75":
1137
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1138
+
1139
+ "use strict";
1140
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; });
1141
+ function _arrayLikeToArray(arr, len) {
1142
+ if (len == null || len > arr.length) len = arr.length;
1143
+
1144
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
1145
+ arr2[i] = arr[i];
1146
+ }
1147
+
1148
+ return arr2;
1149
+ }
1150
+
1151
+ /***/ }),
1152
+
1153
+ /***/ "7a77":
1154
+ /***/ (function(module, exports, __webpack_require__) {
1155
+
1156
+ "use strict";
1157
+
1158
+
1159
+ /**
1160
+ * A `Cancel` is an object that is thrown when an operation is canceled.
1161
+ *
1162
+ * @class
1163
+ * @param {string=} message The message.
1164
+ */
1165
+ function Cancel(message) {
1166
+ this.message = message;
1167
+ }
1168
+
1169
+ Cancel.prototype.toString = function toString() {
1170
+ return 'Cancel' + (this.message ? ': ' + this.message : '');
1171
+ };
1172
+
1173
+ Cancel.prototype.__CANCEL__ = true;
1174
+
1175
+ module.exports = Cancel;
1176
+
1177
+
1178
+ /***/ }),
1179
+
1180
+ /***/ "7aac":
1181
+ /***/ (function(module, exports, __webpack_require__) {
1182
+
1183
+ "use strict";
1184
+
1185
+
1186
+ var utils = __webpack_require__("c532");
1187
+
1188
+ module.exports = (
1189
+ utils.isStandardBrowserEnv() ?
1190
+
1191
+ // Standard browser envs support document.cookie
1192
+ (function standardBrowserEnv() {
1193
+ return {
1194
+ write: function write(name, value, expires, path, domain, secure) {
1195
+ var cookie = [];
1196
+ cookie.push(name + '=' + encodeURIComponent(value));
1197
+
1198
+ if (utils.isNumber(expires)) {
1199
+ cookie.push('expires=' + new Date(expires).toGMTString());
1200
+ }
1201
+
1202
+ if (utils.isString(path)) {
1203
+ cookie.push('path=' + path);
1204
+ }
1205
+
1206
+ if (utils.isString(domain)) {
1207
+ cookie.push('domain=' + domain);
1208
+ }
1209
+
1210
+ if (secure === true) {
1211
+ cookie.push('secure');
1212
+ }
1213
+
1214
+ document.cookie = cookie.join('; ');
1215
+ },
1216
+
1217
+ read: function read(name) {
1218
+ var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
1219
+ return (match ? decodeURIComponent(match[3]) : null);
1220
+ },
1221
+
1222
+ remove: function remove(name) {
1223
+ this.write(name, '', Date.now() - 86400000);
1224
+ }
1225
+ };
1226
+ })() :
1227
+
1228
+ // Non standard browser env (web workers, react-native) lack needed support.
1229
+ (function nonStandardBrowserEnv() {
1230
+ return {
1231
+ write: function write() {},
1232
+ read: function read() { return null; },
1233
+ remove: function remove() {}
1234
+ };
1235
+ })()
1236
+ );
1237
+
1238
+
1239
+ /***/ }),
1240
+
1241
+ /***/ "83b9":
1242
+ /***/ (function(module, exports, __webpack_require__) {
1243
+
1244
+ "use strict";
1245
+
1246
+
1247
+ var isAbsoluteURL = __webpack_require__("d925");
1248
+ var combineURLs = __webpack_require__("e683");
1249
+
1250
+ /**
1251
+ * Creates a new URL by combining the baseURL with the requestedURL,
1252
+ * only when the requestedURL is not already an absolute URL.
1253
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
1254
+ *
1255
+ * @param {string} baseURL The base URL
1256
+ * @param {string} requestedURL Absolute or relative URL to combine
1257
+ * @returns {string} The combined full path
1258
+ */
1259
+ module.exports = function buildFullPath(baseURL, requestedURL) {
1260
+ if (baseURL && !isAbsoluteURL(requestedURL)) {
1261
+ return combineURLs(baseURL, requestedURL);
1262
+ }
1263
+ return requestedURL;
1264
+ };
1265
+
1266
+
1267
+ /***/ }),
1268
+
1269
+ /***/ "848b":
1270
+ /***/ (function(module, exports, __webpack_require__) {
1271
+
1272
+ "use strict";
1273
+
1274
+
1275
+ var VERSION = __webpack_require__("5cce").version;
1276
+
1277
+ var validators = {};
1278
+
1279
+ // eslint-disable-next-line func-names
1280
+ ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
1281
+ validators[type] = function validator(thing) {
1282
+ return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
1283
+ };
1284
+ });
1285
+
1286
+ var deprecatedWarnings = {};
1287
+
1288
+ /**
1289
+ * Transitional option validator
1290
+ * @param {function|boolean?} validator - set to false if the transitional option has been removed
1291
+ * @param {string?} version - deprecated version / removed since version
1292
+ * @param {string?} message - some message with additional info
1293
+ * @returns {function}
1294
+ */
1295
+ validators.transitional = function transitional(validator, version, message) {
1296
+ function formatMessage(opt, desc) {
1297
+ return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
1298
+ }
1299
+
1300
+ // eslint-disable-next-line func-names
1301
+ return function(value, opt, opts) {
1302
+ if (validator === false) {
1303
+ throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')));
1304
+ }
1305
+
1306
+ if (version && !deprecatedWarnings[opt]) {
1307
+ deprecatedWarnings[opt] = true;
1308
+ // eslint-disable-next-line no-console
1309
+ console.warn(
1310
+ formatMessage(
1311
+ opt,
1312
+ ' has been deprecated since v' + version + ' and will be removed in the near future'
1313
+ )
1314
+ );
1315
+ }
1316
+
1317
+ return validator ? validator(value, opt, opts) : true;
1318
+ };
1319
+ };
1320
+
1321
+ /**
1322
+ * Assert object's properties type
1323
+ * @param {object} options
1324
+ * @param {object} schema
1325
+ * @param {boolean?} allowUnknown
1326
+ */
1327
+
1328
+ function assertOptions(options, schema, allowUnknown) {
1329
+ if (typeof options !== 'object') {
1330
+ throw new TypeError('options must be an object');
1331
+ }
1332
+ var keys = Object.keys(options);
1333
+ var i = keys.length;
1334
+ while (i-- > 0) {
1335
+ var opt = keys[i];
1336
+ var validator = schema[opt];
1337
+ if (validator) {
1338
+ var value = options[opt];
1339
+ var result = value === undefined || validator(value, opt, options);
1340
+ if (result !== true) {
1341
+ throw new TypeError('option ' + opt + ' must be ' + result);
1342
+ }
1343
+ continue;
1344
+ }
1345
+ if (allowUnknown !== true) {
1346
+ throw Error('Unknown option ' + opt);
1347
+ }
1348
+ }
1349
+ }
1350
+
1351
+ module.exports = {
1352
+ assertOptions: assertOptions,
1353
+ validators: validators
1354
+ };
1355
+
1356
+
1357
+ /***/ }),
1358
+
1359
+ /***/ "8875":
1360
+ /***/ (function(module, exports, __webpack_require__) {
1361
+
1362
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller
1363
+ // MIT license
1364
+ // source: https://github.com/amiller-gh/currentScript-polyfill
1365
+
1366
+ // added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505
1367
+
1368
+ (function (root, factory) {
1369
+ if (true) {
1370
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
1371
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
1372
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
1373
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
1374
+ } else {}
1375
+ }(typeof self !== 'undefined' ? self : this, function () {
1376
+ function getCurrentScript () {
1377
+ var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')
1378
+ // for chrome
1379
+ if (!descriptor && 'currentScript' in document && document.currentScript) {
1380
+ return document.currentScript
1381
+ }
1382
+
1383
+ // for other browsers with native support for currentScript
1384
+ if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {
1385
+ return document.currentScript
1386
+ }
1387
+
1388
+ // IE 8-10 support script readyState
1389
+ // IE 11+ & Firefox support stack trace
1390
+ try {
1391
+ throw new Error();
1392
+ }
1393
+ catch (err) {
1394
+ // Find the second match for the "at" string to get file src url from stack.
1395
+ var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig,
1396
+ ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig,
1397
+ stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),
1398
+ scriptLocation = (stackDetails && stackDetails[1]) || false,
1399
+ line = (stackDetails && stackDetails[2]) || false,
1400
+ currentLocation = document.location.href.replace(document.location.hash, ''),
1401
+ pageSource,
1402
+ inlineScriptSourceRegExp,
1403
+ inlineScriptSource,
1404
+ scripts = document.getElementsByTagName('script'); // Live NodeList collection
1405
+
1406
+ if (scriptLocation === currentLocation) {
1407
+ pageSource = document.documentElement.outerHTML;
1408
+ inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i');
1409
+ inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();
1410
+ }
1411
+
1412
+ for (var i = 0; i < scripts.length; i++) {
1413
+ // If ready state is interactive, return the script tag
1414
+ if (scripts[i].readyState === 'interactive') {
1415
+ return scripts[i];
1416
+ }
1417
+
1418
+ // If src matches, return the script tag
1419
+ if (scripts[i].src === scriptLocation) {
1420
+ return scripts[i];
1421
+ }
1422
+
1423
+ // If inline source matches, return the script tag
1424
+ if (
1425
+ scriptLocation === currentLocation &&
1426
+ scripts[i].innerHTML &&
1427
+ scripts[i].innerHTML.trim() === inlineScriptSource
1428
+ ) {
1429
+ return scripts[i];
1430
+ }
1431
+ }
1432
+
1433
+ // If no match, return null
1434
+ return null;
1435
+ }
1436
+ };
1437
+
1438
+ return getCurrentScript
1439
+ }));
1440
+
1441
+
1442
+ /***/ }),
1443
+
1444
+ /***/ "8df4":
1445
+ /***/ (function(module, exports, __webpack_require__) {
1446
+
1447
+ "use strict";
1448
+
1449
+
1450
+ var Cancel = __webpack_require__("7a77");
1451
+
1452
+ /**
1453
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
1454
+ *
1455
+ * @class
1456
+ * @param {Function} executor The executor function.
1457
+ */
1458
+ function CancelToken(executor) {
1459
+ if (typeof executor !== 'function') {
1460
+ throw new TypeError('executor must be a function.');
1461
+ }
1462
+
1463
+ var resolvePromise;
1464
+
1465
+ this.promise = new Promise(function promiseExecutor(resolve) {
1466
+ resolvePromise = resolve;
1467
+ });
1468
+
1469
+ var token = this;
1470
+
1471
+ // eslint-disable-next-line func-names
1472
+ this.promise.then(function(cancel) {
1473
+ if (!token._listeners) return;
1474
+
1475
+ var i;
1476
+ var l = token._listeners.length;
1477
+
1478
+ for (i = 0; i < l; i++) {
1479
+ token._listeners[i](cancel);
1480
+ }
1481
+ token._listeners = null;
1482
+ });
1483
+
1484
+ // eslint-disable-next-line func-names
1485
+ this.promise.then = function(onfulfilled) {
1486
+ var _resolve;
1487
+ // eslint-disable-next-line func-names
1488
+ var promise = new Promise(function(resolve) {
1489
+ token.subscribe(resolve);
1490
+ _resolve = resolve;
1491
+ }).then(onfulfilled);
1492
+
1493
+ promise.cancel = function reject() {
1494
+ token.unsubscribe(_resolve);
1495
+ };
1496
+
1497
+ return promise;
1498
+ };
1499
+
1500
+ executor(function cancel(message) {
1501
+ if (token.reason) {
1502
+ // Cancellation has already been requested
1503
+ return;
1504
+ }
1505
+
1506
+ token.reason = new Cancel(message);
1507
+ resolvePromise(token.reason);
1508
+ });
1509
+ }
1510
+
1511
+ /**
1512
+ * Throws a `Cancel` if cancellation has been requested.
1513
+ */
1514
+ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
1515
+ if (this.reason) {
1516
+ throw this.reason;
1517
+ }
1518
+ };
1519
+
1520
+ /**
1521
+ * Subscribe to the cancel signal
1522
+ */
1523
+
1524
+ CancelToken.prototype.subscribe = function subscribe(listener) {
1525
+ if (this.reason) {
1526
+ listener(this.reason);
1527
+ return;
1528
+ }
1529
+
1530
+ if (this._listeners) {
1531
+ this._listeners.push(listener);
1532
+ } else {
1533
+ this._listeners = [listener];
1534
+ }
1535
+ };
1536
+
1537
+ /**
1538
+ * Unsubscribe from the cancel signal
1539
+ */
1540
+
1541
+ CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
1542
+ if (!this._listeners) {
1543
+ return;
1544
+ }
1545
+ var index = this._listeners.indexOf(listener);
1546
+ if (index !== -1) {
1547
+ this._listeners.splice(index, 1);
1548
+ }
1549
+ };
1550
+
1551
+ /**
1552
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1553
+ * cancels the `CancelToken`.
1554
+ */
1555
+ CancelToken.source = function source() {
1556
+ var cancel;
1557
+ var token = new CancelToken(function executor(c) {
1558
+ cancel = c;
1559
+ });
1560
+ return {
1561
+ token: token,
1562
+ cancel: cancel
1563
+ };
1564
+ };
1565
+
1566
+ module.exports = CancelToken;
1567
+
1568
+
1569
+ /***/ }),
1570
+
1571
+ /***/ "a15e":
1572
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1573
+
1574
+ "use strict";
1575
+ // ESM COMPAT FLAG
1576
+ __webpack_require__.r(__webpack_exports__);
1577
+
1578
+ // EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/extends.js
1579
+ var helpers_extends = __webpack_require__("41b2");
1580
+ var extends_default = /*#__PURE__*/__webpack_require__.n(helpers_extends);
1581
+
1582
+ // EXTERNAL MODULE: ./node_modules/babel-runtime/helpers/typeof.js
1583
+ var helpers_typeof = __webpack_require__("1098");
1584
+ var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);
1585
+
1586
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/util.js
1587
+
1588
+
1589
+ var formatRegExp = /%[sdj%]/g;
1590
+
1591
+ var warning = function warning() {};
1592
+
1593
+ // don't print warning message when in production env or node runtime
1594
+ if (false) {}
1595
+
1596
+ function format() {
1597
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
1598
+ args[_key] = arguments[_key];
1599
+ }
1600
+
1601
+ var i = 1;
1602
+ var f = args[0];
1603
+ var len = args.length;
1604
+ if (typeof f === 'function') {
1605
+ return f.apply(null, args.slice(1));
1606
+ }
1607
+ if (typeof f === 'string') {
1608
+ var str = String(f).replace(formatRegExp, function (x) {
1609
+ if (x === '%%') {
1610
+ return '%';
1611
+ }
1612
+ if (i >= len) {
1613
+ return x;
1614
+ }
1615
+ switch (x) {
1616
+ case '%s':
1617
+ return String(args[i++]);
1618
+ case '%d':
1619
+ return Number(args[i++]);
1620
+ case '%j':
1621
+ try {
1622
+ return JSON.stringify(args[i++]);
1623
+ } catch (_) {
1624
+ return '[Circular]';
1625
+ }
1626
+ break;
1627
+ default:
1628
+ return x;
1629
+ }
1630
+ });
1631
+ for (var arg = args[i]; i < len; arg = args[++i]) {
1632
+ str += ' ' + arg;
1633
+ }
1634
+ return str;
1635
+ }
1636
+ return f;
1637
+ }
1638
+
1639
+ function isNativeStringType(type) {
1640
+ return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
1641
+ }
1642
+
1643
+ function isEmptyValue(value, type) {
1644
+ if (value === undefined || value === null) {
1645
+ return true;
1646
+ }
1647
+ if (type === 'array' && Array.isArray(value) && !value.length) {
1648
+ return true;
1649
+ }
1650
+ if (isNativeStringType(type) && typeof value === 'string' && !value) {
1651
+ return true;
1652
+ }
1653
+ return false;
1654
+ }
1655
+
1656
+ function isEmptyObject(obj) {
1657
+ return Object.keys(obj).length === 0;
1658
+ }
1659
+
1660
+ function asyncParallelArray(arr, func, callback) {
1661
+ var results = [];
1662
+ var total = 0;
1663
+ var arrLength = arr.length;
1664
+
1665
+ function count(errors) {
1666
+ results.push.apply(results, errors);
1667
+ total++;
1668
+ if (total === arrLength) {
1669
+ callback(results);
1670
+ }
1671
+ }
1672
+
1673
+ arr.forEach(function (a) {
1674
+ func(a, count);
1675
+ });
1676
+ }
1677
+
1678
+ function asyncSerialArray(arr, func, callback) {
1679
+ var index = 0;
1680
+ var arrLength = arr.length;
1681
+
1682
+ function next(errors) {
1683
+ if (errors && errors.length) {
1684
+ callback(errors);
1685
+ return;
1686
+ }
1687
+ var original = index;
1688
+ index = index + 1;
1689
+ if (original < arrLength) {
1690
+ func(arr[original], next);
1691
+ } else {
1692
+ callback([]);
1693
+ }
1694
+ }
1695
+
1696
+ next([]);
1697
+ }
1698
+
1699
+ function flattenObjArr(objArr) {
1700
+ var ret = [];
1701
+ Object.keys(objArr).forEach(function (k) {
1702
+ ret.push.apply(ret, objArr[k]);
1703
+ });
1704
+ return ret;
1705
+ }
1706
+
1707
+ function asyncMap(objArr, option, func, callback) {
1708
+ if (option.first) {
1709
+ var flattenArr = flattenObjArr(objArr);
1710
+ return asyncSerialArray(flattenArr, func, callback);
1711
+ }
1712
+ var firstFields = option.firstFields || [];
1713
+ if (firstFields === true) {
1714
+ firstFields = Object.keys(objArr);
1715
+ }
1716
+ var objArrKeys = Object.keys(objArr);
1717
+ var objArrLength = objArrKeys.length;
1718
+ var total = 0;
1719
+ var results = [];
1720
+ var next = function next(errors) {
1721
+ results.push.apply(results, errors);
1722
+ total++;
1723
+ if (total === objArrLength) {
1724
+ callback(results);
1725
+ }
1726
+ };
1727
+ objArrKeys.forEach(function (key) {
1728
+ var arr = objArr[key];
1729
+ if (firstFields.indexOf(key) !== -1) {
1730
+ asyncSerialArray(arr, func, next);
1731
+ } else {
1732
+ asyncParallelArray(arr, func, next);
1733
+ }
1734
+ });
1735
+ }
1736
+
1737
+ function complementError(rule) {
1738
+ return function (oe) {
1739
+ if (oe && oe.message) {
1740
+ oe.field = oe.field || rule.fullField;
1741
+ return oe;
1742
+ }
1743
+ return {
1744
+ message: oe,
1745
+ field: oe.field || rule.fullField
1746
+ };
1747
+ };
1748
+ }
1749
+
1750
+ function deepMerge(target, source) {
1751
+ if (source) {
1752
+ for (var s in source) {
1753
+ if (source.hasOwnProperty(s)) {
1754
+ var value = source[s];
1755
+ if ((typeof value === 'undefined' ? 'undefined' : typeof_default()(value)) === 'object' && typeof_default()(target[s]) === 'object') {
1756
+ target[s] = extends_default()({}, target[s], value);
1757
+ } else {
1758
+ target[s] = value;
1759
+ }
1760
+ }
1761
+ }
1762
+ }
1763
+ return target;
1764
+ }
1765
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/rule/required.js
1766
+
1767
+
1768
+ /**
1769
+ * Rule for validating required fields.
1770
+ *
1771
+ * @param rule The validation rule.
1772
+ * @param value The value of the field on the source object.
1773
+ * @param source The source object being validated.
1774
+ * @param errors An array of errors that this rule may add
1775
+ * validation errors to.
1776
+ * @param options The validation options.
1777
+ * @param options.messages The validation messages.
1778
+ */
1779
+ function required(rule, value, source, errors, options, type) {
1780
+ if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
1781
+ errors.push(format(options.messages.required, rule.fullField));
1782
+ }
1783
+ }
1784
+
1785
+ /* harmony default export */ var rule_required = (required);
1786
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/rule/whitespace.js
1787
+
1788
+
1789
+ /**
1790
+ * Rule for validating whitespace.
1791
+ *
1792
+ * @param rule The validation rule.
1793
+ * @param value The value of the field on the source object.
1794
+ * @param source The source object being validated.
1795
+ * @param errors An array of errors that this rule may add
1796
+ * validation errors to.
1797
+ * @param options The validation options.
1798
+ * @param options.messages The validation messages.
1799
+ */
1800
+ function whitespace(rule, value, source, errors, options) {
1801
+ if (/^\s+$/.test(value) || value === '') {
1802
+ errors.push(format(options.messages.whitespace, rule.fullField));
1803
+ }
1804
+ }
1805
+
1806
+ /* harmony default export */ var rule_whitespace = (whitespace);
1807
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/rule/type.js
1808
+
1809
+
1810
+
1811
+
1812
+ /* eslint max-len:0 */
1813
+
1814
+ var pattern = {
1815
+ // http://emailregex.com/
1816
+ email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
1817
+ url: new RegExp('^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$', 'i'),
1818
+ hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
1819
+ };
1820
+
1821
+ var types = {
1822
+ integer: function integer(value) {
1823
+ return types.number(value) && parseInt(value, 10) === value;
1824
+ },
1825
+ float: function float(value) {
1826
+ return types.number(value) && !types.integer(value);
1827
+ },
1828
+ array: function array(value) {
1829
+ return Array.isArray(value);
1830
+ },
1831
+ regexp: function regexp(value) {
1832
+ if (value instanceof RegExp) {
1833
+ return true;
1834
+ }
1835
+ try {
1836
+ return !!new RegExp(value);
1837
+ } catch (e) {
1838
+ return false;
1839
+ }
1840
+ },
1841
+ date: function date(value) {
1842
+ return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
1843
+ },
1844
+ number: function number(value) {
1845
+ if (isNaN(value)) {
1846
+ return false;
1847
+ }
1848
+ return typeof value === 'number';
1849
+ },
1850
+ object: function object(value) {
1851
+ return (typeof value === 'undefined' ? 'undefined' : typeof_default()(value)) === 'object' && !types.array(value);
1852
+ },
1853
+ method: function method(value) {
1854
+ return typeof value === 'function';
1855
+ },
1856
+ email: function email(value) {
1857
+ return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
1858
+ },
1859
+ url: function url(value) {
1860
+ return typeof value === 'string' && !!value.match(pattern.url);
1861
+ },
1862
+ hex: function hex(value) {
1863
+ return typeof value === 'string' && !!value.match(pattern.hex);
1864
+ }
1865
+ };
1866
+
1867
+ /**
1868
+ * Rule for validating the type of a value.
1869
+ *
1870
+ * @param rule The validation rule.
1871
+ * @param value The value of the field on the source object.
1872
+ * @param source The source object being validated.
1873
+ * @param errors An array of errors that this rule may add
1874
+ * validation errors to.
1875
+ * @param options The validation options.
1876
+ * @param options.messages The validation messages.
1877
+ */
1878
+ function type_type(rule, value, source, errors, options) {
1879
+ if (rule.required && value === undefined) {
1880
+ rule_required(rule, value, source, errors, options);
1881
+ return;
1882
+ }
1883
+ var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
1884
+ var ruleType = rule.type;
1885
+ if (custom.indexOf(ruleType) > -1) {
1886
+ if (!types[ruleType](value)) {
1887
+ errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
1888
+ }
1889
+ // straight typeof check
1890
+ } else if (ruleType && (typeof value === 'undefined' ? 'undefined' : typeof_default()(value)) !== rule.type) {
1891
+ errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
1892
+ }
1893
+ }
1894
+
1895
+ /* harmony default export */ var rule_type = (type_type);
1896
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/rule/range.js
1897
+
1898
+
1899
+ /**
1900
+ * Rule for validating minimum and maximum allowed values.
1901
+ *
1902
+ * @param rule The validation rule.
1903
+ * @param value The value of the field on the source object.
1904
+ * @param source The source object being validated.
1905
+ * @param errors An array of errors that this rule may add
1906
+ * validation errors to.
1907
+ * @param options The validation options.
1908
+ * @param options.messages The validation messages.
1909
+ */
1910
+ function range(rule, value, source, errors, options) {
1911
+ var len = typeof rule.len === 'number';
1912
+ var min = typeof rule.min === 'number';
1913
+ var max = typeof rule.max === 'number';
1914
+ // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
1915
+ var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
1916
+ var val = value;
1917
+ var key = null;
1918
+ var num = typeof value === 'number';
1919
+ var str = typeof value === 'string';
1920
+ var arr = Array.isArray(value);
1921
+ if (num) {
1922
+ key = 'number';
1923
+ } else if (str) {
1924
+ key = 'string';
1925
+ } else if (arr) {
1926
+ key = 'array';
1927
+ }
1928
+ // if the value is not of a supported type for range validation
1929
+ // the validation rule rule should use the
1930
+ // type property to also test for a particular type
1931
+ if (!key) {
1932
+ return false;
1933
+ }
1934
+ if (arr) {
1935
+ val = value.length;
1936
+ }
1937
+ if (str) {
1938
+ // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
1939
+ val = value.replace(spRegexp, '_').length;
1940
+ }
1941
+ if (len) {
1942
+ if (val !== rule.len) {
1943
+ errors.push(format(options.messages[key].len, rule.fullField, rule.len));
1944
+ }
1945
+ } else if (min && !max && val < rule.min) {
1946
+ errors.push(format(options.messages[key].min, rule.fullField, rule.min));
1947
+ } else if (max && !min && val > rule.max) {
1948
+ errors.push(format(options.messages[key].max, rule.fullField, rule.max));
1949
+ } else if (min && max && (val < rule.min || val > rule.max)) {
1950
+ errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
1951
+ }
1952
+ }
1953
+
1954
+ /* harmony default export */ var rule_range = (range);
1955
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/rule/enum.js
1956
+
1957
+ var ENUM = 'enum';
1958
+
1959
+ /**
1960
+ * Rule for validating a value exists in an enumerable list.
1961
+ *
1962
+ * @param rule The validation rule.
1963
+ * @param value The value of the field on the source object.
1964
+ * @param source The source object being validated.
1965
+ * @param errors An array of errors that this rule may add
1966
+ * validation errors to.
1967
+ * @param options The validation options.
1968
+ * @param options.messages The validation messages.
1969
+ */
1970
+ function enumerable(rule, value, source, errors, options) {
1971
+ rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
1972
+ if (rule[ENUM].indexOf(value) === -1) {
1973
+ errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
1974
+ }
1975
+ }
1976
+
1977
+ /* harmony default export */ var rule_enum = (enumerable);
1978
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/rule/pattern.js
1979
+
1980
+
1981
+ /**
1982
+ * Rule for validating a regular expression pattern.
1983
+ *
1984
+ * @param rule The validation rule.
1985
+ * @param value The value of the field on the source object.
1986
+ * @param source The source object being validated.
1987
+ * @param errors An array of errors that this rule may add
1988
+ * validation errors to.
1989
+ * @param options The validation options.
1990
+ * @param options.messages The validation messages.
1991
+ */
1992
+ function pattern_pattern(rule, value, source, errors, options) {
1993
+ if (rule.pattern) {
1994
+ if (rule.pattern instanceof RegExp) {
1995
+ // if a RegExp instance is passed, reset `lastIndex` in case its `global`
1996
+ // flag is accidentally set to `true`, which in a validation scenario
1997
+ // is not necessary and the result might be misleading
1998
+ rule.pattern.lastIndex = 0;
1999
+ if (!rule.pattern.test(value)) {
2000
+ errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
2001
+ }
2002
+ } else if (typeof rule.pattern === 'string') {
2003
+ var _pattern = new RegExp(rule.pattern);
2004
+ if (!_pattern.test(value)) {
2005
+ errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
2006
+ }
2007
+ }
2008
+ }
2009
+ }
2010
+
2011
+ /* harmony default export */ var rule_pattern = (pattern_pattern);
2012
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/rule/index.js
2013
+
2014
+
2015
+
2016
+
2017
+
2018
+
2019
+
2020
+ /* harmony default export */ var es_rule = ({
2021
+ required: rule_required,
2022
+ whitespace: rule_whitespace,
2023
+ type: rule_type,
2024
+ range: rule_range,
2025
+ 'enum': rule_enum,
2026
+ pattern: rule_pattern
2027
+ });
2028
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/validator/string.js
2029
+
2030
+
2031
+
2032
+ /**
2033
+ * Performs validation for string types.
2034
+ *
2035
+ * @param rule The validation rule.
2036
+ * @param value The value of the field on the source object.
2037
+ * @param callback The callback function.
2038
+ * @param source The source object being validated.
2039
+ * @param options The validation options.
2040
+ * @param options.messages The validation messages.
2041
+ */
2042
+ function string(rule, value, callback, source, options) {
2043
+ var errors = [];
2044
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
2045
+ if (validate) {
2046
+ if (isEmptyValue(value, 'string') && !rule.required) {
2047
+ return callback();
2048
+ }
2049
+ es_rule.required(rule, value, source, errors, options, 'string');
2050
+ if (!isEmptyValue(value, 'string')) {
2051
+ es_rule.type(rule, value, source, errors, options);
2052
+ es_rule.range(rule, value, source, errors, options);
2053
+ es_rule.pattern(rule, value, source, errors, options);
2054
+ if (rule.whitespace === true) {
2055
+ es_rule.whitespace(rule, value, source, errors, options);
2056
+ }
2057
+ }
2058
+ }
2059
+ callback(errors);
2060
+ }
2061
+
2062
+ /* harmony default export */ var validator_string = (string);
2063
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/validator/method.js
2064
+
2065
+
2066
+
2067
+ /**
2068
+ * Validates a function.
2069
+ *
2070
+ * @param rule The validation rule.
2071
+ * @param value The value of the field on the source object.
2072
+ * @param callback The callback function.
2073
+ * @param source The source object being validated.
2074
+ * @param options The validation options.
2075
+ * @param options.messages The validation messages.
2076
+ */
2077
+ function method(rule, value, callback, source, options) {
2078
+ var errors = [];
2079
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
2080
+ if (validate) {
2081
+ if (isEmptyValue(value) && !rule.required) {
2082
+ return callback();
2083
+ }
2084
+ es_rule.required(rule, value, source, errors, options);
2085
+ if (value !== undefined) {
2086
+ es_rule.type(rule, value, source, errors, options);
2087
+ }
2088
+ }
2089
+ callback(errors);
2090
+ }
2091
+
2092
+ /* harmony default export */ var validator_method = (method);
2093
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/validator/number.js
2094
+
2095
+
2096
+
2097
+ /**
2098
+ * Validates a number.
2099
+ *
2100
+ * @param rule The validation rule.
2101
+ * @param value The value of the field on the source object.
2102
+ * @param callback The callback function.
2103
+ * @param source The source object being validated.
2104
+ * @param options The validation options.
2105
+ * @param options.messages The validation messages.
2106
+ */
2107
+ function number(rule, value, callback, source, options) {
2108
+ var errors = [];
2109
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
2110
+ if (validate) {
2111
+ if (isEmptyValue(value) && !rule.required) {
2112
+ return callback();
2113
+ }
2114
+ es_rule.required(rule, value, source, errors, options);
2115
+ if (value !== undefined) {
2116
+ es_rule.type(rule, value, source, errors, options);
2117
+ es_rule.range(rule, value, source, errors, options);
2118
+ }
2119
+ }
2120
+ callback(errors);
2121
+ }
2122
+
2123
+ /* harmony default export */ var validator_number = (number);
2124
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/validator/boolean.js
2125
+
2126
+
2127
+
2128
+ /**
2129
+ * Validates a boolean.
2130
+ *
2131
+ * @param rule The validation rule.
2132
+ * @param value The value of the field on the source object.
2133
+ * @param callback The callback function.
2134
+ * @param source The source object being validated.
2135
+ * @param options The validation options.
2136
+ * @param options.messages The validation messages.
2137
+ */
2138
+ function boolean_boolean(rule, value, callback, source, options) {
2139
+ var errors = [];
2140
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
2141
+ if (validate) {
2142
+ if (isEmptyValue(value) && !rule.required) {
2143
+ return callback();
2144
+ }
2145
+ es_rule.required(rule, value, source, errors, options);
2146
+ if (value !== undefined) {
2147
+ es_rule.type(rule, value, source, errors, options);
2148
+ }
2149
+ }
2150
+ callback(errors);
2151
+ }
2152
+
2153
+ /* harmony default export */ var validator_boolean = (boolean_boolean);
2154
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/validator/regexp.js
2155
+
2156
+
2157
+
2158
+ /**
2159
+ * Validates the regular expression type.
2160
+ *
2161
+ * @param rule The validation rule.
2162
+ * @param value The value of the field on the source object.
2163
+ * @param callback The callback function.
2164
+ * @param source The source object being validated.
2165
+ * @param options The validation options.
2166
+ * @param options.messages The validation messages.
2167
+ */
2168
+ function regexp(rule, value, callback, source, options) {
2169
+ var errors = [];
2170
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
2171
+ if (validate) {
2172
+ if (isEmptyValue(value) && !rule.required) {
2173
+ return callback();
2174
+ }
2175
+ es_rule.required(rule, value, source, errors, options);
2176
+ if (!isEmptyValue(value)) {
2177
+ es_rule.type(rule, value, source, errors, options);
2178
+ }
2179
+ }
2180
+ callback(errors);
2181
+ }
2182
+
2183
+ /* harmony default export */ var validator_regexp = (regexp);
2184
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/validator/integer.js
2185
+
2186
+
2187
+
2188
+ /**
2189
+ * Validates a number is an integer.
2190
+ *
2191
+ * @param rule The validation rule.
2192
+ * @param value The value of the field on the source object.
2193
+ * @param callback The callback function.
2194
+ * @param source The source object being validated.
2195
+ * @param options The validation options.
2196
+ * @param options.messages The validation messages.
2197
+ */
2198
+ function integer(rule, value, callback, source, options) {
2199
+ var errors = [];
2200
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
2201
+ if (validate) {
2202
+ if (isEmptyValue(value) && !rule.required) {
2203
+ return callback();
2204
+ }
2205
+ es_rule.required(rule, value, source, errors, options);
2206
+ if (value !== undefined) {
2207
+ es_rule.type(rule, value, source, errors, options);
2208
+ es_rule.range(rule, value, source, errors, options);
2209
+ }
2210
+ }
2211
+ callback(errors);
2212
+ }
2213
+
2214
+ /* harmony default export */ var validator_integer = (integer);
2215
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/validator/float.js
2216
+
2217
+
2218
+
2219
+ /**
2220
+ * Validates a number is a floating point number.
2221
+ *
2222
+ * @param rule The validation rule.
2223
+ * @param value The value of the field on the source object.
2224
+ * @param callback The callback function.
2225
+ * @param source The source object being validated.
2226
+ * @param options The validation options.
2227
+ * @param options.messages The validation messages.
2228
+ */
2229
+ function floatFn(rule, value, callback, source, options) {
2230
+ var errors = [];
2231
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
2232
+ if (validate) {
2233
+ if (isEmptyValue(value) && !rule.required) {
2234
+ return callback();
2235
+ }
2236
+ es_rule.required(rule, value, source, errors, options);
2237
+ if (value !== undefined) {
2238
+ es_rule.type(rule, value, source, errors, options);
2239
+ es_rule.range(rule, value, source, errors, options);
2240
+ }
2241
+ }
2242
+ callback(errors);
2243
+ }
2244
+
2245
+ /* harmony default export */ var validator_float = (floatFn);
2246
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/validator/array.js
2247
+
2248
+
2249
+ /**
2250
+ * Validates an array.
2251
+ *
2252
+ * @param rule The validation rule.
2253
+ * @param value The value of the field on the source object.
2254
+ * @param callback The callback function.
2255
+ * @param source The source object being validated.
2256
+ * @param options The validation options.
2257
+ * @param options.messages The validation messages.
2258
+ */
2259
+ function array(rule, value, callback, source, options) {
2260
+ var errors = [];
2261
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
2262
+ if (validate) {
2263
+ if (isEmptyValue(value, 'array') && !rule.required) {
2264
+ return callback();
2265
+ }
2266
+ es_rule.required(rule, value, source, errors, options, 'array');
2267
+ if (!isEmptyValue(value, 'array')) {
2268
+ es_rule.type(rule, value, source, errors, options);
2269
+ es_rule.range(rule, value, source, errors, options);
2270
+ }
2271
+ }
2272
+ callback(errors);
2273
+ }
2274
+
2275
+ /* harmony default export */ var validator_array = (array);
2276
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/validator/object.js
2277
+
2278
+
2279
+
2280
+ /**
2281
+ * Validates an object.
2282
+ *
2283
+ * @param rule The validation rule.
2284
+ * @param value The value of the field on the source object.
2285
+ * @param callback The callback function.
2286
+ * @param source The source object being validated.
2287
+ * @param options The validation options.
2288
+ * @param options.messages The validation messages.
2289
+ */
2290
+ function object_object(rule, value, callback, source, options) {
2291
+ var errors = [];
2292
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
2293
+ if (validate) {
2294
+ if (isEmptyValue(value) && !rule.required) {
2295
+ return callback();
2296
+ }
2297
+ es_rule.required(rule, value, source, errors, options);
2298
+ if (value !== undefined) {
2299
+ es_rule.type(rule, value, source, errors, options);
2300
+ }
2301
+ }
2302
+ callback(errors);
2303
+ }
2304
+
2305
+ /* harmony default export */ var validator_object = (object_object);
2306
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/validator/enum.js
2307
+
2308
+
2309
+ var enum_ENUM = 'enum';
2310
+
2311
+ /**
2312
+ * Validates an enumerable list.
2313
+ *
2314
+ * @param rule The validation rule.
2315
+ * @param value The value of the field on the source object.
2316
+ * @param callback The callback function.
2317
+ * @param source The source object being validated.
2318
+ * @param options The validation options.
2319
+ * @param options.messages The validation messages.
2320
+ */
2321
+ function enum_enumerable(rule, value, callback, source, options) {
2322
+ var errors = [];
2323
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
2324
+ if (validate) {
2325
+ if (isEmptyValue(value) && !rule.required) {
2326
+ return callback();
2327
+ }
2328
+ es_rule.required(rule, value, source, errors, options);
2329
+ if (value) {
2330
+ es_rule[enum_ENUM](rule, value, source, errors, options);
2331
+ }
2332
+ }
2333
+ callback(errors);
2334
+ }
2335
+
2336
+ /* harmony default export */ var validator_enum = (enum_enumerable);
2337
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/validator/pattern.js
2338
+
2339
+
2340
+
2341
+ /**
2342
+ * Validates a regular expression pattern.
2343
+ *
2344
+ * Performs validation when a rule only contains
2345
+ * a pattern property but is not declared as a string type.
2346
+ *
2347
+ * @param rule The validation rule.
2348
+ * @param value The value of the field on the source object.
2349
+ * @param callback The callback function.
2350
+ * @param source The source object being validated.
2351
+ * @param options The validation options.
2352
+ * @param options.messages The validation messages.
2353
+ */
2354
+ function validator_pattern_pattern(rule, value, callback, source, options) {
2355
+ var errors = [];
2356
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
2357
+ if (validate) {
2358
+ if (isEmptyValue(value, 'string') && !rule.required) {
2359
+ return callback();
2360
+ }
2361
+ es_rule.required(rule, value, source, errors, options);
2362
+ if (!isEmptyValue(value, 'string')) {
2363
+ es_rule.pattern(rule, value, source, errors, options);
2364
+ }
2365
+ }
2366
+ callback(errors);
2367
+ }
2368
+
2369
+ /* harmony default export */ var validator_pattern = (validator_pattern_pattern);
2370
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/validator/date.js
2371
+
2372
+
2373
+
2374
+ function date(rule, value, callback, source, options) {
2375
+ // console.log('integer rule called %j', rule);
2376
+ var errors = [];
2377
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
2378
+ // console.log('validate on %s value', value);
2379
+ if (validate) {
2380
+ if (isEmptyValue(value) && !rule.required) {
2381
+ return callback();
2382
+ }
2383
+ es_rule.required(rule, value, source, errors, options);
2384
+ if (!isEmptyValue(value)) {
2385
+ var dateObject = void 0;
2386
+
2387
+ if (typeof value === 'number') {
2388
+ dateObject = new Date(value);
2389
+ } else {
2390
+ dateObject = value;
2391
+ }
2392
+
2393
+ es_rule.type(rule, dateObject, source, errors, options);
2394
+ if (dateObject) {
2395
+ es_rule.range(rule, dateObject.getTime(), source, errors, options);
2396
+ }
2397
+ }
2398
+ }
2399
+ callback(errors);
2400
+ }
2401
+
2402
+ /* harmony default export */ var validator_date = (date);
2403
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/validator/required.js
2404
+
2405
+
2406
+
2407
+ function required_required(rule, value, callback, source, options) {
2408
+ var errors = [];
2409
+ var type = Array.isArray(value) ? 'array' : typeof value === 'undefined' ? 'undefined' : typeof_default()(value);
2410
+ es_rule.required(rule, value, source, errors, options, type);
2411
+ callback(errors);
2412
+ }
2413
+
2414
+ /* harmony default export */ var validator_required = (required_required);
2415
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/validator/type.js
2416
+
2417
+
2418
+
2419
+ function validator_type_type(rule, value, callback, source, options) {
2420
+ var ruleType = rule.type;
2421
+ var errors = [];
2422
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
2423
+ if (validate) {
2424
+ if (isEmptyValue(value, ruleType) && !rule.required) {
2425
+ return callback();
2426
+ }
2427
+ es_rule.required(rule, value, source, errors, options, ruleType);
2428
+ if (!isEmptyValue(value, ruleType)) {
2429
+ es_rule.type(rule, value, source, errors, options);
2430
+ }
2431
+ }
2432
+ callback(errors);
2433
+ }
2434
+
2435
+ /* harmony default export */ var validator_type = (validator_type_type);
2436
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/validator/index.js
2437
+
2438
+
2439
+
2440
+
2441
+
2442
+
2443
+
2444
+
2445
+
2446
+
2447
+
2448
+
2449
+
2450
+
2451
+
2452
+ /* harmony default export */ var es_validator = ({
2453
+ string: validator_string,
2454
+ method: validator_method,
2455
+ number: validator_number,
2456
+ boolean: validator_boolean,
2457
+ regexp: validator_regexp,
2458
+ integer: validator_integer,
2459
+ float: validator_float,
2460
+ array: validator_array,
2461
+ object: validator_object,
2462
+ 'enum': validator_enum,
2463
+ pattern: validator_pattern,
2464
+ date: validator_date,
2465
+ url: validator_type,
2466
+ hex: validator_type,
2467
+ email: validator_type,
2468
+ required: validator_required
2469
+ });
2470
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/messages.js
2471
+ function newMessages() {
2472
+ return {
2473
+ 'default': 'Validation error on field %s',
2474
+ required: '%s is required',
2475
+ 'enum': '%s must be one of %s',
2476
+ whitespace: '%s cannot be empty',
2477
+ date: {
2478
+ format: '%s date %s is invalid for format %s',
2479
+ parse: '%s date could not be parsed, %s is invalid ',
2480
+ invalid: '%s date %s is invalid'
2481
+ },
2482
+ types: {
2483
+ string: '%s is not a %s',
2484
+ method: '%s is not a %s (function)',
2485
+ array: '%s is not an %s',
2486
+ object: '%s is not an %s',
2487
+ number: '%s is not a %s',
2488
+ date: '%s is not a %s',
2489
+ boolean: '%s is not a %s',
2490
+ integer: '%s is not an %s',
2491
+ float: '%s is not a %s',
2492
+ regexp: '%s is not a valid %s',
2493
+ email: '%s is not a valid %s',
2494
+ url: '%s is not a valid %s',
2495
+ hex: '%s is not a valid %s'
2496
+ },
2497
+ string: {
2498
+ len: '%s must be exactly %s characters',
2499
+ min: '%s must be at least %s characters',
2500
+ max: '%s cannot be longer than %s characters',
2501
+ range: '%s must be between %s and %s characters'
2502
+ },
2503
+ number: {
2504
+ len: '%s must equal %s',
2505
+ min: '%s cannot be less than %s',
2506
+ max: '%s cannot be greater than %s',
2507
+ range: '%s must be between %s and %s'
2508
+ },
2509
+ array: {
2510
+ len: '%s must be exactly %s in length',
2511
+ min: '%s cannot be less than %s in length',
2512
+ max: '%s cannot be greater than %s in length',
2513
+ range: '%s must be between %s and %s in length'
2514
+ },
2515
+ pattern: {
2516
+ mismatch: '%s value %s does not match pattern %s'
2517
+ },
2518
+ clone: function clone() {
2519
+ var cloned = JSON.parse(JSON.stringify(this));
2520
+ cloned.clone = this.clone;
2521
+ return cloned;
2522
+ }
2523
+ };
2524
+ }
2525
+
2526
+ var messages_messages = newMessages();
2527
+ // CONCATENATED MODULE: ./node_modules/async-validator/es/index.js
2528
+
2529
+
2530
+
2531
+
2532
+
2533
+
2534
+ /**
2535
+ * Encapsulates a validation schema.
2536
+ *
2537
+ * @param descriptor An object declaring validation rules
2538
+ * for this schema.
2539
+ */
2540
+ function Schema(descriptor) {
2541
+ this.rules = null;
2542
+ this._messages = messages_messages;
2543
+ this.define(descriptor);
2544
+ }
2545
+
2546
+ Schema.prototype = {
2547
+ messages: function messages(_messages) {
2548
+ if (_messages) {
2549
+ this._messages = deepMerge(newMessages(), _messages);
2550
+ }
2551
+ return this._messages;
2552
+ },
2553
+ define: function define(rules) {
2554
+ if (!rules) {
2555
+ throw new Error('Cannot configure a schema with no rules');
2556
+ }
2557
+ if ((typeof rules === 'undefined' ? 'undefined' : typeof_default()(rules)) !== 'object' || Array.isArray(rules)) {
2558
+ throw new Error('Rules must be an object');
2559
+ }
2560
+ this.rules = {};
2561
+ var z = void 0;
2562
+ var item = void 0;
2563
+ for (z in rules) {
2564
+ if (rules.hasOwnProperty(z)) {
2565
+ item = rules[z];
2566
+ this.rules[z] = Array.isArray(item) ? item : [item];
2567
+ }
2568
+ }
2569
+ },
2570
+ validate: function validate(source_) {
2571
+ var _this = this;
2572
+
2573
+ var o = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2574
+ var oc = arguments[2];
2575
+
2576
+ var source = source_;
2577
+ var options = o;
2578
+ var callback = oc;
2579
+ if (typeof options === 'function') {
2580
+ callback = options;
2581
+ options = {};
2582
+ }
2583
+ if (!this.rules || Object.keys(this.rules).length === 0) {
2584
+ if (callback) {
2585
+ callback();
2586
+ }
2587
+ return;
2588
+ }
2589
+ function complete(results) {
2590
+ var i = void 0;
2591
+ var field = void 0;
2592
+ var errors = [];
2593
+ var fields = {};
2594
+
2595
+ function add(e) {
2596
+ if (Array.isArray(e)) {
2597
+ errors = errors.concat.apply(errors, e);
2598
+ } else {
2599
+ errors.push(e);
2600
+ }
2601
+ }
2602
+
2603
+ for (i = 0; i < results.length; i++) {
2604
+ add(results[i]);
2605
+ }
2606
+ if (!errors.length) {
2607
+ errors = null;
2608
+ fields = null;
2609
+ } else {
2610
+ for (i = 0; i < errors.length; i++) {
2611
+ field = errors[i].field;
2612
+ fields[field] = fields[field] || [];
2613
+ fields[field].push(errors[i]);
2614
+ }
2615
+ }
2616
+ callback(errors, fields);
2617
+ }
2618
+
2619
+ if (options.messages) {
2620
+ var messages = this.messages();
2621
+ if (messages === messages_messages) {
2622
+ messages = newMessages();
2623
+ }
2624
+ deepMerge(messages, options.messages);
2625
+ options.messages = messages;
2626
+ } else {
2627
+ options.messages = this.messages();
2628
+ }
2629
+ var arr = void 0;
2630
+ var value = void 0;
2631
+ var series = {};
2632
+ var keys = options.keys || Object.keys(this.rules);
2633
+ keys.forEach(function (z) {
2634
+ arr = _this.rules[z];
2635
+ value = source[z];
2636
+ arr.forEach(function (r) {
2637
+ var rule = r;
2638
+ if (typeof rule.transform === 'function') {
2639
+ if (source === source_) {
2640
+ source = extends_default()({}, source);
2641
+ }
2642
+ value = source[z] = rule.transform(value);
2643
+ }
2644
+ if (typeof rule === 'function') {
2645
+ rule = {
2646
+ validator: rule
2647
+ };
2648
+ } else {
2649
+ rule = extends_default()({}, rule);
2650
+ }
2651
+ rule.validator = _this.getValidationMethod(rule);
2652
+ rule.field = z;
2653
+ rule.fullField = rule.fullField || z;
2654
+ rule.type = _this.getType(rule);
2655
+ if (!rule.validator) {
2656
+ return;
2657
+ }
2658
+ series[z] = series[z] || [];
2659
+ series[z].push({
2660
+ rule: rule,
2661
+ value: value,
2662
+ source: source,
2663
+ field: z
2664
+ });
2665
+ });
2666
+ });
2667
+ var errorFields = {};
2668
+ asyncMap(series, options, function (data, doIt) {
2669
+ var rule = data.rule;
2670
+ var deep = (rule.type === 'object' || rule.type === 'array') && (typeof_default()(rule.fields) === 'object' || typeof_default()(rule.defaultField) === 'object');
2671
+ deep = deep && (rule.required || !rule.required && data.value);
2672
+ rule.field = data.field;
2673
+ function addFullfield(key, schema) {
2674
+ return extends_default()({}, schema, {
2675
+ fullField: rule.fullField + '.' + key
2676
+ });
2677
+ }
2678
+
2679
+ function cb() {
2680
+ var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
2681
+
2682
+ var errors = e;
2683
+ if (!Array.isArray(errors)) {
2684
+ errors = [errors];
2685
+ }
2686
+ if (errors.length) {
2687
+ warning('async-validator:', errors);
2688
+ }
2689
+ if (errors.length && rule.message) {
2690
+ errors = [].concat(rule.message);
2691
+ }
2692
+
2693
+ errors = errors.map(complementError(rule));
2694
+
2695
+ if (options.first && errors.length) {
2696
+ errorFields[rule.field] = 1;
2697
+ return doIt(errors);
2698
+ }
2699
+ if (!deep) {
2700
+ doIt(errors);
2701
+ } else {
2702
+ // if rule is required but the target object
2703
+ // does not exist fail at the rule level and don't
2704
+ // go deeper
2705
+ if (rule.required && !data.value) {
2706
+ if (rule.message) {
2707
+ errors = [].concat(rule.message).map(complementError(rule));
2708
+ } else if (options.error) {
2709
+ errors = [options.error(rule, format(options.messages.required, rule.field))];
2710
+ } else {
2711
+ errors = [];
2712
+ }
2713
+ return doIt(errors);
2714
+ }
2715
+
2716
+ var fieldsSchema = {};
2717
+ if (rule.defaultField) {
2718
+ for (var k in data.value) {
2719
+ if (data.value.hasOwnProperty(k)) {
2720
+ fieldsSchema[k] = rule.defaultField;
2721
+ }
2722
+ }
2723
+ }
2724
+ fieldsSchema = extends_default()({}, fieldsSchema, data.rule.fields);
2725
+ for (var f in fieldsSchema) {
2726
+ if (fieldsSchema.hasOwnProperty(f)) {
2727
+ var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
2728
+ fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
2729
+ }
2730
+ }
2731
+ var schema = new Schema(fieldsSchema);
2732
+ schema.messages(options.messages);
2733
+ if (data.rule.options) {
2734
+ data.rule.options.messages = options.messages;
2735
+ data.rule.options.error = options.error;
2736
+ }
2737
+ schema.validate(data.value, data.rule.options || options, function (errs) {
2738
+ doIt(errs && errs.length ? errors.concat(errs) : errs);
2739
+ });
2740
+ }
2741
+ }
2742
+
2743
+ var res = rule.validator(rule, data.value, cb, data.source, options);
2744
+ if (res && res.then) {
2745
+ res.then(function () {
2746
+ return cb();
2747
+ }, function (e) {
2748
+ return cb(e);
2749
+ });
2750
+ }
2751
+ }, function (results) {
2752
+ complete(results);
2753
+ });
2754
+ },
2755
+ getType: function getType(rule) {
2756
+ if (rule.type === undefined && rule.pattern instanceof RegExp) {
2757
+ rule.type = 'pattern';
2758
+ }
2759
+ if (typeof rule.validator !== 'function' && rule.type && !es_validator.hasOwnProperty(rule.type)) {
2760
+ throw new Error(format('Unknown rule type %s', rule.type));
2761
+ }
2762
+ return rule.type || 'string';
2763
+ },
2764
+ getValidationMethod: function getValidationMethod(rule) {
2765
+ if (typeof rule.validator === 'function') {
2766
+ return rule.validator;
2767
+ }
2768
+ var keys = Object.keys(rule);
2769
+ var messageIndex = keys.indexOf('message');
2770
+ if (messageIndex !== -1) {
2771
+ keys.splice(messageIndex, 1);
2772
+ }
2773
+ if (keys.length === 1 && keys[0] === 'required') {
2774
+ return es_validator.required;
2775
+ }
2776
+ return es_validator[this.getType(rule)] || false;
2777
+ }
2778
+ };
2779
+
2780
+ Schema.register = function register(type, validator) {
2781
+ if (typeof validator !== 'function') {
2782
+ throw new Error('Cannot register a validator by type, validator is not a function');
2783
+ }
2784
+ es_validator[type] = validator;
2785
+ };
2786
+
2787
+ Schema.messages = messages_messages;
2788
+
2789
+ /* harmony default export */ var es = __webpack_exports__["default"] = (Schema);
2790
+
2791
+ /***/ }),
2792
+
2793
+ /***/ "ade3":
2794
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2795
+
2796
+ "use strict";
2797
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
2798
+ function _defineProperty(obj, key, value) {
2799
+ if (key in obj) {
2800
+ Object.defineProperty(obj, key, {
2801
+ value: value,
2802
+ enumerable: true,
2803
+ configurable: true,
2804
+ writable: true
2805
+ });
2806
+ } else {
2807
+ obj[key] = value;
2808
+ }
2809
+
2810
+ return obj;
2811
+ }
2812
+
2813
+ /***/ }),
2814
+
2815
+ /***/ "b50d":
2816
+ /***/ (function(module, exports, __webpack_require__) {
2817
+
2818
+ "use strict";
2819
+
2820
+
2821
+ var utils = __webpack_require__("c532");
2822
+ var settle = __webpack_require__("467f");
2823
+ var cookies = __webpack_require__("7aac");
2824
+ var buildURL = __webpack_require__("30b5");
2825
+ var buildFullPath = __webpack_require__("83b9");
2826
+ var parseHeaders = __webpack_require__("c345");
2827
+ var isURLSameOrigin = __webpack_require__("3934");
2828
+ var createError = __webpack_require__("2d83");
2829
+ var transitionalDefaults = __webpack_require__("cafa");
2830
+ var Cancel = __webpack_require__("7a77");
2831
+
2832
+ module.exports = function xhrAdapter(config) {
2833
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
2834
+ var requestData = config.data;
2835
+ var requestHeaders = config.headers;
2836
+ var responseType = config.responseType;
2837
+ var onCanceled;
2838
+ function done() {
2839
+ if (config.cancelToken) {
2840
+ config.cancelToken.unsubscribe(onCanceled);
2841
+ }
2842
+
2843
+ if (config.signal) {
2844
+ config.signal.removeEventListener('abort', onCanceled);
2845
+ }
2846
+ }
2847
+
2848
+ if (utils.isFormData(requestData)) {
2849
+ delete requestHeaders['Content-Type']; // Let the browser set it
2850
+ }
2851
+
2852
+ var request = new XMLHttpRequest();
2853
+
2854
+ // HTTP basic authentication
2855
+ if (config.auth) {
2856
+ var username = config.auth.username || '';
2857
+ var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
2858
+ requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
2859
+ }
2860
+
2861
+ var fullPath = buildFullPath(config.baseURL, config.url);
2862
+ request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
2863
+
2864
+ // Set the request timeout in MS
2865
+ request.timeout = config.timeout;
2866
+
2867
+ function onloadend() {
2868
+ if (!request) {
2869
+ return;
2870
+ }
2871
+ // Prepare the response
2872
+ var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
2873
+ var responseData = !responseType || responseType === 'text' || responseType === 'json' ?
2874
+ request.responseText : request.response;
2875
+ var response = {
2876
+ data: responseData,
2877
+ status: request.status,
2878
+ statusText: request.statusText,
2879
+ headers: responseHeaders,
2880
+ config: config,
2881
+ request: request
2882
+ };
2883
+
2884
+ settle(function _resolve(value) {
2885
+ resolve(value);
2886
+ done();
2887
+ }, function _reject(err) {
2888
+ reject(err);
2889
+ done();
2890
+ }, response);
2891
+
2892
+ // Clean up request
2893
+ request = null;
2894
+ }
2895
+
2896
+ if ('onloadend' in request) {
2897
+ // Use onloadend if available
2898
+ request.onloadend = onloadend;
2899
+ } else {
2900
+ // Listen for ready state to emulate onloadend
2901
+ request.onreadystatechange = function handleLoad() {
2902
+ if (!request || request.readyState !== 4) {
2903
+ return;
2904
+ }
2905
+
2906
+ // The request errored out and we didn't get a response, this will be
2907
+ // handled by onerror instead
2908
+ // With one exception: request that using file: protocol, most browsers
2909
+ // will return status as 0 even though it's a successful request
2910
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
2911
+ return;
2912
+ }
2913
+ // readystate handler is calling before onerror or ontimeout handlers,
2914
+ // so we should call onloadend on the next 'tick'
2915
+ setTimeout(onloadend);
2916
+ };
2917
+ }
2918
+
2919
+ // Handle browser request cancellation (as opposed to a manual cancellation)
2920
+ request.onabort = function handleAbort() {
2921
+ if (!request) {
2922
+ return;
2923
+ }
2924
+
2925
+ reject(createError('Request aborted', config, 'ECONNABORTED', request));
2926
+
2927
+ // Clean up request
2928
+ request = null;
2929
+ };
2930
+
2931
+ // Handle low level network errors
2932
+ request.onerror = function handleError() {
2933
+ // Real errors are hidden from us by the browser
2934
+ // onerror should only fire if it's a network error
2935
+ reject(createError('Network Error', config, null, request));
2936
+
2937
+ // Clean up request
2938
+ request = null;
2939
+ };
2940
+
2941
+ // Handle timeout
2942
+ request.ontimeout = function handleTimeout() {
2943
+ var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
2944
+ var transitional = config.transitional || transitionalDefaults;
2945
+ if (config.timeoutErrorMessage) {
2946
+ timeoutErrorMessage = config.timeoutErrorMessage;
2947
+ }
2948
+ reject(createError(
2949
+ timeoutErrorMessage,
2950
+ config,
2951
+ transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
2952
+ request));
2953
+
2954
+ // Clean up request
2955
+ request = null;
2956
+ };
2957
+
2958
+ // Add xsrf header
2959
+ // This is only done if running in a standard browser environment.
2960
+ // Specifically not if we're in a web worker, or react-native.
2961
+ if (utils.isStandardBrowserEnv()) {
2962
+ // Add xsrf header
2963
+ var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
2964
+ cookies.read(config.xsrfCookieName) :
2965
+ undefined;
2966
+
2967
+ if (xsrfValue) {
2968
+ requestHeaders[config.xsrfHeaderName] = xsrfValue;
2969
+ }
2970
+ }
2971
+
2972
+ // Add headers to the request
2973
+ if ('setRequestHeader' in request) {
2974
+ utils.forEach(requestHeaders, function setRequestHeader(val, key) {
2975
+ if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
2976
+ // Remove Content-Type if data is undefined
2977
+ delete requestHeaders[key];
2978
+ } else {
2979
+ // Otherwise add header to the request
2980
+ request.setRequestHeader(key, val);
2981
+ }
2982
+ });
2983
+ }
2984
+
2985
+ // Add withCredentials to request if needed
2986
+ if (!utils.isUndefined(config.withCredentials)) {
2987
+ request.withCredentials = !!config.withCredentials;
2988
+ }
2989
+
2990
+ // Add responseType to request if needed
2991
+ if (responseType && responseType !== 'json') {
2992
+ request.responseType = config.responseType;
2993
+ }
2994
+
2995
+ // Handle progress if needed
2996
+ if (typeof config.onDownloadProgress === 'function') {
2997
+ request.addEventListener('progress', config.onDownloadProgress);
2998
+ }
2999
+
3000
+ // Not all browsers support upload events
3001
+ if (typeof config.onUploadProgress === 'function' && request.upload) {
3002
+ request.upload.addEventListener('progress', config.onUploadProgress);
3003
+ }
3004
+
3005
+ if (config.cancelToken || config.signal) {
3006
+ // Handle cancellation
3007
+ // eslint-disable-next-line func-names
3008
+ onCanceled = function(cancel) {
3009
+ if (!request) {
3010
+ return;
3011
+ }
3012
+ reject(!cancel || (cancel && cancel.type) ? new Cancel('canceled') : cancel);
3013
+ request.abort();
3014
+ request = null;
3015
+ };
3016
+
3017
+ config.cancelToken && config.cancelToken.subscribe(onCanceled);
3018
+ if (config.signal) {
3019
+ config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
3020
+ }
3021
+ }
3022
+
3023
+ if (!requestData) {
3024
+ requestData = null;
3025
+ }
3026
+
3027
+ // Send the request
3028
+ request.send(requestData);
3029
+ });
3030
+ };
3031
+
3032
+
3033
+ /***/ }),
3034
+
3035
+ /***/ "b85c":
3036
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3037
+
3038
+ "use strict";
3039
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createForOfIteratorHelper; });
3040
+ /* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("06c5");
3041
+
3042
+ function _createForOfIteratorHelper(o, allowArrayLike) {
3043
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
3044
+
3045
+ if (!it) {
3046
+ if (Array.isArray(o) || (it = Object(_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o)) || allowArrayLike && o && typeof o.length === "number") {
3047
+ if (it) o = it;
3048
+ var i = 0;
3049
+
3050
+ var F = function F() {};
3051
+
3052
+ return {
3053
+ s: F,
3054
+ n: function n() {
3055
+ if (i >= o.length) return {
3056
+ done: true
3057
+ };
3058
+ return {
3059
+ done: false,
3060
+ value: o[i++]
3061
+ };
3062
+ },
3063
+ e: function e(_e) {
3064
+ throw _e;
3065
+ },
3066
+ f: F
3067
+ };
3068
+ }
3069
+
3070
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3071
+ }
3072
+
3073
+ var normalCompletion = true,
3074
+ didErr = false,
3075
+ err;
3076
+ return {
3077
+ s: function s() {
3078
+ it = it.call(o);
3079
+ },
3080
+ n: function n() {
3081
+ var step = it.next();
3082
+ normalCompletion = step.done;
3083
+ return step;
3084
+ },
3085
+ e: function e(_e2) {
3086
+ didErr = true;
3087
+ err = _e2;
3088
+ },
3089
+ f: function f() {
3090
+ try {
3091
+ if (!normalCompletion && it["return"] != null) it["return"]();
3092
+ } finally {
3093
+ if (didErr) throw err;
3094
+ }
3095
+ }
3096
+ };
3097
+ }
3098
+
3099
+ /***/ }),
3100
+
3101
+ /***/ "bc3a":
3102
+ /***/ (function(module, exports, __webpack_require__) {
3103
+
3104
+ module.exports = __webpack_require__("cee4");
3105
+
3106
+ /***/ }),
3107
+
3108
+ /***/ "c345":
3109
+ /***/ (function(module, exports, __webpack_require__) {
3110
+
3111
+ "use strict";
3112
+
3113
+
3114
+ var utils = __webpack_require__("c532");
3115
+
3116
+ // Headers whose duplicates are ignored by node
3117
+ // c.f. https://nodejs.org/api/http.html#http_message_headers
3118
+ var ignoreDuplicateOf = [
3119
+ 'age', 'authorization', 'content-length', 'content-type', 'etag',
3120
+ 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
3121
+ 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
3122
+ 'referer', 'retry-after', 'user-agent'
3123
+ ];
3124
+
3125
+ /**
3126
+ * Parse headers into an object
3127
+ *
3128
+ * ```
3129
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
3130
+ * Content-Type: application/json
3131
+ * Connection: keep-alive
3132
+ * Transfer-Encoding: chunked
3133
+ * ```
3134
+ *
3135
+ * @param {String} headers Headers needing to be parsed
3136
+ * @returns {Object} Headers parsed into an object
3137
+ */
3138
+ module.exports = function parseHeaders(headers) {
3139
+ var parsed = {};
3140
+ var key;
3141
+ var val;
3142
+ var i;
3143
+
3144
+ if (!headers) { return parsed; }
3145
+
3146
+ utils.forEach(headers.split('\n'), function parser(line) {
3147
+ i = line.indexOf(':');
3148
+ key = utils.trim(line.substr(0, i)).toLowerCase();
3149
+ val = utils.trim(line.substr(i + 1));
3150
+
3151
+ if (key) {
3152
+ if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
3153
+ return;
3154
+ }
3155
+ if (key === 'set-cookie') {
3156
+ parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
3157
+ } else {
3158
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
3159
+ }
3160
+ }
3161
+ });
3162
+
3163
+ return parsed;
3164
+ };
3165
+
3166
+
3167
+ /***/ }),
3168
+
3169
+ /***/ "c401":
3170
+ /***/ (function(module, exports, __webpack_require__) {
3171
+
3172
+ "use strict";
3173
+
3174
+
3175
+ var utils = __webpack_require__("c532");
3176
+ var defaults = __webpack_require__("4c3d");
3177
+
3178
+ /**
3179
+ * Transform the data for a request or a response
3180
+ *
3181
+ * @param {Object|String} data The data to be transformed
3182
+ * @param {Array} headers The headers for the request or response
3183
+ * @param {Array|Function} fns A single function or Array of functions
3184
+ * @returns {*} The resulting transformed data
3185
+ */
3186
+ module.exports = function transformData(data, headers, fns) {
3187
+ var context = this || defaults;
3188
+ /*eslint no-param-reassign:0*/
3189
+ utils.forEach(fns, function transform(fn) {
3190
+ data = fn.call(context, data, headers);
3191
+ });
3192
+
3193
+ return data;
3194
+ };
3195
+
3196
+
3197
+ /***/ }),
3198
+
3199
+ /***/ "c532":
3200
+ /***/ (function(module, exports, __webpack_require__) {
3201
+
3202
+ "use strict";
3203
+
3204
+
3205
+ var bind = __webpack_require__("1d2b");
3206
+
3207
+ // utils is a library of generic helper functions non-specific to axios
3208
+
3209
+ var toString = Object.prototype.toString;
3210
+
3211
+ /**
3212
+ * Determine if a value is an Array
3213
+ *
3214
+ * @param {Object} val The value to test
3215
+ * @returns {boolean} True if value is an Array, otherwise false
3216
+ */
3217
+ function isArray(val) {
3218
+ return Array.isArray(val);
3219
+ }
3220
+
3221
+ /**
3222
+ * Determine if a value is undefined
3223
+ *
3224
+ * @param {Object} val The value to test
3225
+ * @returns {boolean} True if the value is undefined, otherwise false
3226
+ */
3227
+ function isUndefined(val) {
3228
+ return typeof val === 'undefined';
3229
+ }
3230
+
3231
+ /**
3232
+ * Determine if a value is a Buffer
3233
+ *
3234
+ * @param {Object} val The value to test
3235
+ * @returns {boolean} True if value is a Buffer, otherwise false
3236
+ */
3237
+ function isBuffer(val) {
3238
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
3239
+ && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
3240
+ }
3241
+
3242
+ /**
3243
+ * Determine if a value is an ArrayBuffer
3244
+ *
3245
+ * @param {Object} val The value to test
3246
+ * @returns {boolean} True if value is an ArrayBuffer, otherwise false
3247
+ */
3248
+ function isArrayBuffer(val) {
3249
+ return toString.call(val) === '[object ArrayBuffer]';
3250
+ }
3251
+
3252
+ /**
3253
+ * Determine if a value is a FormData
3254
+ *
3255
+ * @param {Object} val The value to test
3256
+ * @returns {boolean} True if value is an FormData, otherwise false
3257
+ */
3258
+ function isFormData(val) {
3259
+ return toString.call(val) === '[object FormData]';
3260
+ }
3261
+
3262
+ /**
3263
+ * Determine if a value is a view on an ArrayBuffer
3264
+ *
3265
+ * @param {Object} val The value to test
3266
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
3267
+ */
3268
+ function isArrayBufferView(val) {
3269
+ var result;
3270
+ if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
3271
+ result = ArrayBuffer.isView(val);
3272
+ } else {
3273
+ result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
3274
+ }
3275
+ return result;
3276
+ }
3277
+
3278
+ /**
3279
+ * Determine if a value is a String
3280
+ *
3281
+ * @param {Object} val The value to test
3282
+ * @returns {boolean} True if value is a String, otherwise false
3283
+ */
3284
+ function isString(val) {
3285
+ return typeof val === 'string';
3286
+ }
3287
+
3288
+ /**
3289
+ * Determine if a value is a Number
3290
+ *
3291
+ * @param {Object} val The value to test
3292
+ * @returns {boolean} True if value is a Number, otherwise false
3293
+ */
3294
+ function isNumber(val) {
3295
+ return typeof val === 'number';
3296
+ }
3297
+
3298
+ /**
3299
+ * Determine if a value is an Object
3300
+ *
3301
+ * @param {Object} val The value to test
3302
+ * @returns {boolean} True if value is an Object, otherwise false
3303
+ */
3304
+ function isObject(val) {
3305
+ return val !== null && typeof val === 'object';
3306
+ }
3307
+
3308
+ /**
3309
+ * Determine if a value is a plain Object
3310
+ *
3311
+ * @param {Object} val The value to test
3312
+ * @return {boolean} True if value is a plain Object, otherwise false
3313
+ */
3314
+ function isPlainObject(val) {
3315
+ if (toString.call(val) !== '[object Object]') {
3316
+ return false;
3317
+ }
3318
+
3319
+ var prototype = Object.getPrototypeOf(val);
3320
+ return prototype === null || prototype === Object.prototype;
3321
+ }
3322
+
3323
+ /**
3324
+ * Determine if a value is a Date
3325
+ *
3326
+ * @param {Object} val The value to test
3327
+ * @returns {boolean} True if value is a Date, otherwise false
3328
+ */
3329
+ function isDate(val) {
3330
+ return toString.call(val) === '[object Date]';
3331
+ }
3332
+
3333
+ /**
3334
+ * Determine if a value is a File
3335
+ *
3336
+ * @param {Object} val The value to test
3337
+ * @returns {boolean} True if value is a File, otherwise false
3338
+ */
3339
+ function isFile(val) {
3340
+ return toString.call(val) === '[object File]';
3341
+ }
3342
+
3343
+ /**
3344
+ * Determine if a value is a Blob
3345
+ *
3346
+ * @param {Object} val The value to test
3347
+ * @returns {boolean} True if value is a Blob, otherwise false
3348
+ */
3349
+ function isBlob(val) {
3350
+ return toString.call(val) === '[object Blob]';
3351
+ }
3352
+
3353
+ /**
3354
+ * Determine if a value is a Function
3355
+ *
3356
+ * @param {Object} val The value to test
3357
+ * @returns {boolean} True if value is a Function, otherwise false
3358
+ */
3359
+ function isFunction(val) {
3360
+ return toString.call(val) === '[object Function]';
3361
+ }
3362
+
3363
+ /**
3364
+ * Determine if a value is a Stream
3365
+ *
3366
+ * @param {Object} val The value to test
3367
+ * @returns {boolean} True if value is a Stream, otherwise false
3368
+ */
3369
+ function isStream(val) {
3370
+ return isObject(val) && isFunction(val.pipe);
3371
+ }
3372
+
3373
+ /**
3374
+ * Determine if a value is a URLSearchParams object
3375
+ *
3376
+ * @param {Object} val The value to test
3377
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
3378
+ */
3379
+ function isURLSearchParams(val) {
3380
+ return toString.call(val) === '[object URLSearchParams]';
3381
+ }
3382
+
3383
+ /**
3384
+ * Trim excess whitespace off the beginning and end of a string
3385
+ *
3386
+ * @param {String} str The String to trim
3387
+ * @returns {String} The String freed of excess whitespace
3388
+ */
3389
+ function trim(str) {
3390
+ return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
3391
+ }
3392
+
3393
+ /**
3394
+ * Determine if we're running in a standard browser environment
3395
+ *
3396
+ * This allows axios to run in a web worker, and react-native.
3397
+ * Both environments support XMLHttpRequest, but not fully standard globals.
3398
+ *
3399
+ * web workers:
3400
+ * typeof window -> undefined
3401
+ * typeof document -> undefined
3402
+ *
3403
+ * react-native:
3404
+ * navigator.product -> 'ReactNative'
3405
+ * nativescript
3406
+ * navigator.product -> 'NativeScript' or 'NS'
3407
+ */
3408
+ function isStandardBrowserEnv() {
3409
+ if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
3410
+ navigator.product === 'NativeScript' ||
3411
+ navigator.product === 'NS')) {
3412
+ return false;
3413
+ }
3414
+ return (
3415
+ typeof window !== 'undefined' &&
3416
+ typeof document !== 'undefined'
3417
+ );
3418
+ }
3419
+
3420
+ /**
3421
+ * Iterate over an Array or an Object invoking a function for each item.
3422
+ *
3423
+ * If `obj` is an Array callback will be called passing
3424
+ * the value, index, and complete array for each item.
3425
+ *
3426
+ * If 'obj' is an Object callback will be called passing
3427
+ * the value, key, and complete object for each property.
3428
+ *
3429
+ * @param {Object|Array} obj The object to iterate
3430
+ * @param {Function} fn The callback to invoke for each item
3431
+ */
3432
+ function forEach(obj, fn) {
3433
+ // Don't bother if no value provided
3434
+ if (obj === null || typeof obj === 'undefined') {
3435
+ return;
3436
+ }
3437
+
3438
+ // Force an array if not already something iterable
3439
+ if (typeof obj !== 'object') {
3440
+ /*eslint no-param-reassign:0*/
3441
+ obj = [obj];
3442
+ }
3443
+
3444
+ if (isArray(obj)) {
3445
+ // Iterate over array values
3446
+ for (var i = 0, l = obj.length; i < l; i++) {
3447
+ fn.call(null, obj[i], i, obj);
3448
+ }
3449
+ } else {
3450
+ // Iterate over object keys
3451
+ for (var key in obj) {
3452
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
3453
+ fn.call(null, obj[key], key, obj);
3454
+ }
3455
+ }
3456
+ }
3457
+ }
3458
+
3459
+ /**
3460
+ * Accepts varargs expecting each argument to be an object, then
3461
+ * immutably merges the properties of each object and returns result.
3462
+ *
3463
+ * When multiple objects contain the same key the later object in
3464
+ * the arguments list will take precedence.
3465
+ *
3466
+ * Example:
3467
+ *
3468
+ * ```js
3469
+ * var result = merge({foo: 123}, {foo: 456});
3470
+ * console.log(result.foo); // outputs 456
3471
+ * ```
3472
+ *
3473
+ * @param {Object} obj1 Object to merge
3474
+ * @returns {Object} Result of all merge properties
3475
+ */
3476
+ function merge(/* obj1, obj2, obj3, ... */) {
3477
+ var result = {};
3478
+ function assignValue(val, key) {
3479
+ if (isPlainObject(result[key]) && isPlainObject(val)) {
3480
+ result[key] = merge(result[key], val);
3481
+ } else if (isPlainObject(val)) {
3482
+ result[key] = merge({}, val);
3483
+ } else if (isArray(val)) {
3484
+ result[key] = val.slice();
3485
+ } else {
3486
+ result[key] = val;
3487
+ }
3488
+ }
3489
+
3490
+ for (var i = 0, l = arguments.length; i < l; i++) {
3491
+ forEach(arguments[i], assignValue);
3492
+ }
3493
+ return result;
3494
+ }
3495
+
3496
+ /**
3497
+ * Extends object a by mutably adding to it the properties of object b.
3498
+ *
3499
+ * @param {Object} a The object to be extended
3500
+ * @param {Object} b The object to copy properties from
3501
+ * @param {Object} thisArg The object to bind function to
3502
+ * @return {Object} The resulting value of object a
3503
+ */
3504
+ function extend(a, b, thisArg) {
3505
+ forEach(b, function assignValue(val, key) {
3506
+ if (thisArg && typeof val === 'function') {
3507
+ a[key] = bind(val, thisArg);
3508
+ } else {
3509
+ a[key] = val;
3510
+ }
3511
+ });
3512
+ return a;
3513
+ }
3514
+
3515
+ /**
3516
+ * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
3517
+ *
3518
+ * @param {string} content with BOM
3519
+ * @return {string} content value without BOM
3520
+ */
3521
+ function stripBOM(content) {
3522
+ if (content.charCodeAt(0) === 0xFEFF) {
3523
+ content = content.slice(1);
3524
+ }
3525
+ return content;
3526
+ }
3527
+
3528
+ module.exports = {
3529
+ isArray: isArray,
3530
+ isArrayBuffer: isArrayBuffer,
3531
+ isBuffer: isBuffer,
3532
+ isFormData: isFormData,
3533
+ isArrayBufferView: isArrayBufferView,
3534
+ isString: isString,
3535
+ isNumber: isNumber,
3536
+ isObject: isObject,
3537
+ isPlainObject: isPlainObject,
3538
+ isUndefined: isUndefined,
3539
+ isDate: isDate,
3540
+ isFile: isFile,
3541
+ isBlob: isBlob,
3542
+ isFunction: isFunction,
3543
+ isStream: isStream,
3544
+ isURLSearchParams: isURLSearchParams,
3545
+ isStandardBrowserEnv: isStandardBrowserEnv,
3546
+ forEach: forEach,
3547
+ merge: merge,
3548
+ extend: extend,
3549
+ trim: trim,
3550
+ stripBOM: stripBOM
3551
+ };
3552
+
3553
+
3554
+ /***/ }),
3555
+
3556
+ /***/ "c8af":
3557
+ /***/ (function(module, exports, __webpack_require__) {
3558
+
3559
+ "use strict";
3560
+
3561
+
3562
+ var utils = __webpack_require__("c532");
3563
+
3564
+ module.exports = function normalizeHeaderName(headers, normalizedName) {
3565
+ utils.forEach(headers, function processHeader(value, name) {
3566
+ if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
3567
+ headers[normalizedName] = value;
3568
+ delete headers[name];
3569
+ }
3570
+ });
3571
+ };
3572
+
3573
+
3574
+ /***/ }),
3575
+
3576
+ /***/ "cafa":
3577
+ /***/ (function(module, exports, __webpack_require__) {
3578
+
3579
+ "use strict";
3580
+
3581
+
3582
+ module.exports = {
3583
+ silentJSONParsing: true,
3584
+ forcedJSONParsing: true,
3585
+ clarifyTimeoutError: false
3586
+ };
3587
+
3588
+
3589
+ /***/ }),
3590
+
3591
+ /***/ "cee4":
3592
+ /***/ (function(module, exports, __webpack_require__) {
3593
+
3594
+ "use strict";
3595
+
3596
+
3597
+ var utils = __webpack_require__("c532");
3598
+ var bind = __webpack_require__("1d2b");
3599
+ var Axios = __webpack_require__("0a06");
3600
+ var mergeConfig = __webpack_require__("4a7b");
3601
+ var defaults = __webpack_require__("4c3d");
3602
+
3603
+ /**
3604
+ * Create an instance of Axios
3605
+ *
3606
+ * @param {Object} defaultConfig The default config for the instance
3607
+ * @return {Axios} A new instance of Axios
3608
+ */
3609
+ function createInstance(defaultConfig) {
3610
+ var context = new Axios(defaultConfig);
3611
+ var instance = bind(Axios.prototype.request, context);
3612
+
3613
+ // Copy axios.prototype to instance
3614
+ utils.extend(instance, Axios.prototype, context);
3615
+
3616
+ // Copy context to instance
3617
+ utils.extend(instance, context);
3618
+
3619
+ // Factory for creating new instances
3620
+ instance.create = function create(instanceConfig) {
3621
+ return createInstance(mergeConfig(defaultConfig, instanceConfig));
3622
+ };
3623
+
3624
+ return instance;
3625
+ }
3626
+
3627
+ // Create the default instance to be exported
3628
+ var axios = createInstance(defaults);
3629
+
3630
+ // Expose Axios class to allow class inheritance
3631
+ axios.Axios = Axios;
3632
+
3633
+ // Expose Cancel & CancelToken
3634
+ axios.Cancel = __webpack_require__("7a77");
3635
+ axios.CancelToken = __webpack_require__("8df4");
3636
+ axios.isCancel = __webpack_require__("2e67");
3637
+ axios.VERSION = __webpack_require__("5cce").version;
3638
+
3639
+ // Expose all/spread
3640
+ axios.all = function all(promises) {
3641
+ return Promise.all(promises);
3642
+ };
3643
+ axios.spread = __webpack_require__("0df6");
3644
+
3645
+ // Expose isAxiosError
3646
+ axios.isAxiosError = __webpack_require__("5f02");
3647
+
3648
+ module.exports = axios;
3649
+
3650
+ // Allow use of default import syntax in TypeScript
3651
+ module.exports.default = axios;
3652
+
3653
+
3654
+ /***/ }),
3655
+
3656
+ /***/ "d925":
3657
+ /***/ (function(module, exports, __webpack_require__) {
3658
+
3659
+ "use strict";
3660
+
3661
+
3662
+ /**
3663
+ * Determines whether the specified URL is absolute
3664
+ *
3665
+ * @param {string} url The URL to test
3666
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
3667
+ */
3668
+ module.exports = function isAbsoluteURL(url) {
3669
+ // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
3670
+ // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
3671
+ // by any combination of letters, digits, plus, period, or hyphen.
3672
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
3673
+ };
3674
+
3675
+
3676
+ /***/ }),
3677
+
3678
+ /***/ "db90":
3679
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3680
+
3681
+ "use strict";
3682
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
3683
+ function _iterableToArray(iter) {
3684
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
3685
+ }
3686
+
3687
+ /***/ }),
3688
+
3689
+ /***/ "e683":
3690
+ /***/ (function(module, exports, __webpack_require__) {
3691
+
3692
+ "use strict";
3693
+
3694
+
3695
+ /**
3696
+ * Creates a new URL by combining the specified URLs
3697
+ *
3698
+ * @param {string} baseURL The base URL
3699
+ * @param {string} relativeURL The relative URL
3700
+ * @returns {string} The combined URL
3701
+ */
3702
+ module.exports = function combineURLs(baseURL, relativeURL) {
3703
+ return relativeURL
3704
+ ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
3705
+ : baseURL;
3706
+ };
3707
+
3708
+
3709
+ /***/ }),
3710
+
3711
+ /***/ "f6b4":
3712
+ /***/ (function(module, exports, __webpack_require__) {
3713
+
3714
+ "use strict";
3715
+
3716
+
3717
+ var utils = __webpack_require__("c532");
3718
+
3719
+ function InterceptorManager() {
3720
+ this.handlers = [];
3721
+ }
3722
+
3723
+ /**
3724
+ * Add a new interceptor to the stack
3725
+ *
3726
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
3727
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
3728
+ *
3729
+ * @return {Number} An ID used to remove interceptor later
3730
+ */
3731
+ InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
3732
+ this.handlers.push({
3733
+ fulfilled: fulfilled,
3734
+ rejected: rejected,
3735
+ synchronous: options ? options.synchronous : false,
3736
+ runWhen: options ? options.runWhen : null
3737
+ });
3738
+ return this.handlers.length - 1;
3739
+ };
3740
+
3741
+ /**
3742
+ * Remove an interceptor from the stack
3743
+ *
3744
+ * @param {Number} id The ID that was returned by `use`
3745
+ */
3746
+ InterceptorManager.prototype.eject = function eject(id) {
3747
+ if (this.handlers[id]) {
3748
+ this.handlers[id] = null;
3749
+ }
3750
+ };
3751
+
3752
+ /**
3753
+ * Iterate over all the registered interceptors
3754
+ *
3755
+ * This method is particularly useful for skipping over any
3756
+ * interceptors that may have become `null` calling `eject`.
3757
+ *
3758
+ * @param {Function} fn The function to call for each interceptor
3759
+ */
3760
+ InterceptorManager.prototype.forEach = function forEach(fn) {
3761
+ utils.forEach(this.handlers, function forEachHandler(h) {
3762
+ if (h !== null) {
3763
+ fn(h);
3764
+ }
3765
+ });
3766
+ };
3767
+
3768
+ module.exports = InterceptorManager;
3769
+
3770
+
3771
+ /***/ }),
3772
+
3773
+ /***/ "fb15":
3774
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3775
+
3776
+ "use strict";
3777
+ // ESM COMPAT FLAG
3778
+ __webpack_require__.r(__webpack_exports__);
3779
+
3780
+ // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
3781
+ // This file is imported into lib/wc client bundles.
3782
+
3783
+ if (typeof window !== 'undefined') {
3784
+ var currentScript = window.document.currentScript
3785
+ if (true) {
3786
+ var getCurrentScript = __webpack_require__("8875")
3787
+ currentScript = getCurrentScript()
3788
+
3789
+ // for backward compatibility, because previously we directly included the polyfill
3790
+ if (!('currentScript' in document)) {
3791
+ Object.defineProperty(document, 'currentScript', { get: getCurrentScript })
3792
+ }
3793
+ }
3794
+
3795
+ var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
3796
+ if (src) {
3797
+ __webpack_require__.p = src[1] // eslint-disable-line
3798
+ }
3799
+ }
3800
+
3801
+ // Indicate to webpack that this file can be concatenated
3802
+ /* harmony default export */ var setPublicPath = (null);
3803
+
3804
+ // EXTERNAL MODULE: ./src/index.js + 113 modules
3805
+ var src_0 = __webpack_require__("b635");
3806
+
3807
+ // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
3808
+
3809
+
3810
+ /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src_0["a" /* default */]);
3811
+
3812
+
3813
+
3814
+ /***/ })
3815
+
3816
+ }]);