hc-basic 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hc-basic.common.js +85183 -55
- package/lib/hc-basic.umd.js +85194 -56
- package/lib/hc-basic.umd.min.js +41 -1
- package/package.json +10 -9
- package/lib/css/hc-basic.umd.596515ce.css +0 -1
- package/lib/css/hc-basic.umd.min.596515ce.css +0 -1
- package/lib/hc-basic.common.async-validator1680231905970.js +0 -984
- package/lib/hc-basic.common.axios1680231905971.js +0 -1644
- package/lib/hc-basic.common.babel-runtime1680231905970.js +0 -1242
- package/lib/hc-basic.common.crypto-js1680231905971.js +0 -6194
- package/lib/hc-basic.common.element-ui1680231905967.js +0 -43880
- package/lib/hc-basic.common.element-ui1680231905968.js +0 -5784
- package/lib/hc-basic.common.element-ui1680231905969.js +0 -14978
- package/lib/hc-basic.common.element-ui1680231905970.js +0 -3453
- package/lib/hc-basic.common.hc-basic.common.js +0 -3812
- package/lib/hc-basic.common.resize-observer-polyfill1680231905969.js +0 -941
- package/lib/hc-basic.common.vendors~hc-basic.common.js +0 -2203
- package/lib/hc-basic.umd.axios1680231905278.js +0 -1712
- package/lib/hc-basic.umd.babel-runtime1680231905277.js +0 -1411
- package/lib/hc-basic.umd.crypto-js1680231905278.js +0 -6194
- package/lib/hc-basic.umd.element-ui1680231905273.js +0 -43880
- package/lib/hc-basic.umd.element-ui1680231905274.js +0 -695
- package/lib/hc-basic.umd.element-ui1680231905275.js +0 -5158
- package/lib/hc-basic.umd.element-ui1680231905276.js +0 -14912
- package/lib/hc-basic.umd.element-ui1680231905278.js +0 -3453
- package/lib/hc-basic.umd.hc-basic.umd.js +0 -3822
- package/lib/hc-basic.umd.min.async-validator1680231905116.js +0 -1
- package/lib/hc-basic.umd.min.axios1680231905116.js +0 -1
- package/lib/hc-basic.umd.min.babel-runtime1680231905115.js +0 -1
- package/lib/hc-basic.umd.min.crypto-js1680231905116.js +0 -18
- package/lib/hc-basic.umd.min.element-ui1680231905113.js +0 -1
- package/lib/hc-basic.umd.min.element-ui1680231905114.js +0 -9
- package/lib/hc-basic.umd.min.element-ui1680231905116.js +0 -1
- package/lib/hc-basic.umd.min.hc-basic.umd.min.js +0 -1
- package/lib/hc-basic.umd.min.resize-observer-polyfill1680231905114.js +0 -1
- package/lib/hc-basic.umd.min.vendors~hc-basic.umd.min.js +0 -16
- package/lib/hc-basic.umd.resize-observer-polyfill1680231905275.js +0 -941
- package/lib/hc-basic.umd.vendors~hc-basic.umd.js +0 -2911
- /package/lib/{css/hc-basic.common.596515ce.css → hc-basic.css} +0 -0
|
@@ -1,2203 +0,0 @@
|
|
|
1
|
-
((typeof self !== 'undefined' ? self : this)["webpackJsonphc_basic"] = (typeof self !== 'undefined' ? self : this)["webpackJsonphc_basic"] || []).push([[11],{
|
|
2
|
-
|
|
3
|
-
/***/ "051b":
|
|
4
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5
|
-
|
|
6
|
-
var dP = __webpack_require__("1a14");
|
|
7
|
-
var createDesc = __webpack_require__("10db");
|
|
8
|
-
module.exports = __webpack_require__("0bad") ? function (object, key, value) {
|
|
9
|
-
return dP.f(object, key, createDesc(1, value));
|
|
10
|
-
} : function (object, key, value) {
|
|
11
|
-
object[key] = value;
|
|
12
|
-
return object;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/***/ }),
|
|
17
|
-
|
|
18
|
-
/***/ "05f5":
|
|
19
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
20
|
-
|
|
21
|
-
var isObject = __webpack_require__("7a41");
|
|
22
|
-
var document = __webpack_require__("ef08").document;
|
|
23
|
-
// typeof document.createElement is 'object' in old IE
|
|
24
|
-
var is = isObject(document) && isObject(document.createElement);
|
|
25
|
-
module.exports = function (it) {
|
|
26
|
-
return is ? document.createElement(it) : {};
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/***/ }),
|
|
31
|
-
|
|
32
|
-
/***/ "0bad":
|
|
33
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
34
|
-
|
|
35
|
-
// Thank's IE8 for his funny defineProperty
|
|
36
|
-
module.exports = !__webpack_require__("4b8b")(function () {
|
|
37
|
-
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
/***/ }),
|
|
42
|
-
|
|
43
|
-
/***/ "0e15":
|
|
44
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
45
|
-
|
|
46
|
-
/* eslint-disable no-undefined */
|
|
47
|
-
|
|
48
|
-
var throttle = __webpack_require__("597f");
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Debounce execution of a function. Debouncing, unlike throttling,
|
|
52
|
-
* guarantees that a function is only executed a single time, either at the
|
|
53
|
-
* very beginning of a series of calls, or at the very end.
|
|
54
|
-
*
|
|
55
|
-
* @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
|
|
56
|
-
* @param {Boolean} [atBegin] Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds
|
|
57
|
-
* after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.
|
|
58
|
-
* (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).
|
|
59
|
-
* @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
|
|
60
|
-
* to `callback` when the debounced-function is executed.
|
|
61
|
-
*
|
|
62
|
-
* @return {Function} A new, debounced function.
|
|
63
|
-
*/
|
|
64
|
-
module.exports = function ( delay, atBegin, callback ) {
|
|
65
|
-
return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
/***/ }),
|
|
70
|
-
|
|
71
|
-
/***/ "1609":
|
|
72
|
-
/***/ (function(module, exports) {
|
|
73
|
-
|
|
74
|
-
module.exports = function (it) {
|
|
75
|
-
if (typeof it != 'function') throw TypeError(it + ' is not a function!');
|
|
76
|
-
return it;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
/***/ }),
|
|
81
|
-
|
|
82
|
-
/***/ "1a14":
|
|
83
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
84
|
-
|
|
85
|
-
var anObject = __webpack_require__("77e9");
|
|
86
|
-
var IE8_DOM_DEFINE = __webpack_require__("faf5");
|
|
87
|
-
var toPrimitive = __webpack_require__("3397");
|
|
88
|
-
var dP = Object.defineProperty;
|
|
89
|
-
|
|
90
|
-
exports.f = __webpack_require__("0bad") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
|
|
91
|
-
anObject(O);
|
|
92
|
-
P = toPrimitive(P, true);
|
|
93
|
-
anObject(Attributes);
|
|
94
|
-
if (IE8_DOM_DEFINE) try {
|
|
95
|
-
return dP(O, P, Attributes);
|
|
96
|
-
} catch (e) { /* empty */ }
|
|
97
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
|
|
98
|
-
if ('value' in Attributes) O[P] = Attributes.value;
|
|
99
|
-
return O;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
/***/ }),
|
|
104
|
-
|
|
105
|
-
/***/ "2877":
|
|
106
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
107
|
-
|
|
108
|
-
"use strict";
|
|
109
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
110
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
111
|
-
|
|
112
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
113
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
114
|
-
// be included in the final webpack user bundle.
|
|
115
|
-
|
|
116
|
-
function normalizeComponent(
|
|
117
|
-
scriptExports,
|
|
118
|
-
render,
|
|
119
|
-
staticRenderFns,
|
|
120
|
-
functionalTemplate,
|
|
121
|
-
injectStyles,
|
|
122
|
-
scopeId,
|
|
123
|
-
moduleIdentifier /* server only */,
|
|
124
|
-
shadowMode /* vue-cli only */
|
|
125
|
-
) {
|
|
126
|
-
// Vue.extend constructor export interop
|
|
127
|
-
var options =
|
|
128
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
129
|
-
|
|
130
|
-
// render functions
|
|
131
|
-
if (render) {
|
|
132
|
-
options.render = render
|
|
133
|
-
options.staticRenderFns = staticRenderFns
|
|
134
|
-
options._compiled = true
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// functional template
|
|
138
|
-
if (functionalTemplate) {
|
|
139
|
-
options.functional = true
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// scopedId
|
|
143
|
-
if (scopeId) {
|
|
144
|
-
options._scopeId = 'data-v-' + scopeId
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
var hook
|
|
148
|
-
if (moduleIdentifier) {
|
|
149
|
-
// server build
|
|
150
|
-
hook = function (context) {
|
|
151
|
-
// 2.3 injection
|
|
152
|
-
context =
|
|
153
|
-
context || // cached call
|
|
154
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
155
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
156
|
-
// 2.2 with runInNewContext: true
|
|
157
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
158
|
-
context = __VUE_SSR_CONTEXT__
|
|
159
|
-
}
|
|
160
|
-
// inject component styles
|
|
161
|
-
if (injectStyles) {
|
|
162
|
-
injectStyles.call(this, context)
|
|
163
|
-
}
|
|
164
|
-
// register component module identifier for async chunk inferrence
|
|
165
|
-
if (context && context._registeredComponents) {
|
|
166
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
// used by ssr in case component is cached and beforeCreate
|
|
170
|
-
// never gets called
|
|
171
|
-
options._ssrRegister = hook
|
|
172
|
-
} else if (injectStyles) {
|
|
173
|
-
hook = shadowMode
|
|
174
|
-
? function () {
|
|
175
|
-
injectStyles.call(
|
|
176
|
-
this,
|
|
177
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
178
|
-
)
|
|
179
|
-
}
|
|
180
|
-
: injectStyles
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
if (hook) {
|
|
184
|
-
if (options.functional) {
|
|
185
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
186
|
-
// go through the normalizer
|
|
187
|
-
options._injectStyles = hook
|
|
188
|
-
// register for functional component in vue file
|
|
189
|
-
var originalRender = options.render
|
|
190
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
191
|
-
hook.call(context)
|
|
192
|
-
return originalRender(h, context)
|
|
193
|
-
}
|
|
194
|
-
} else {
|
|
195
|
-
// inject component registration as beforeCreate hook
|
|
196
|
-
var existing = options.beforeCreate
|
|
197
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
return {
|
|
202
|
-
exports: scriptExports,
|
|
203
|
-
options: options
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
/***/ }),
|
|
209
|
-
|
|
210
|
-
/***/ "3c35":
|
|
211
|
-
/***/ (function(module, exports) {
|
|
212
|
-
|
|
213
|
-
/* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */
|
|
214
|
-
module.exports = __webpack_amd_options__;
|
|
215
|
-
|
|
216
|
-
/* WEBPACK VAR INJECTION */}.call(this, {}))
|
|
217
|
-
|
|
218
|
-
/***/ }),
|
|
219
|
-
|
|
220
|
-
/***/ "3c4e":
|
|
221
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
222
|
-
|
|
223
|
-
"use strict";
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
var isMergeableObject = function isMergeableObject(value) {
|
|
227
|
-
return isNonNullObject(value)
|
|
228
|
-
&& !isSpecial(value)
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
function isNonNullObject(value) {
|
|
232
|
-
return !!value && typeof value === 'object'
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
function isSpecial(value) {
|
|
236
|
-
var stringValue = Object.prototype.toString.call(value);
|
|
237
|
-
|
|
238
|
-
return stringValue === '[object RegExp]'
|
|
239
|
-
|| stringValue === '[object Date]'
|
|
240
|
-
|| isReactElement(value)
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
244
|
-
var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
245
|
-
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
246
|
-
|
|
247
|
-
function isReactElement(value) {
|
|
248
|
-
return value.$$typeof === REACT_ELEMENT_TYPE
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
function emptyTarget(val) {
|
|
252
|
-
return Array.isArray(val) ? [] : {}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
function cloneIfNecessary(value, optionsArgument) {
|
|
256
|
-
var clone = optionsArgument && optionsArgument.clone === true;
|
|
257
|
-
return (clone && isMergeableObject(value)) ? deepmerge(emptyTarget(value), value, optionsArgument) : value
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
function defaultArrayMerge(target, source, optionsArgument) {
|
|
261
|
-
var destination = target.slice();
|
|
262
|
-
source.forEach(function(e, i) {
|
|
263
|
-
if (typeof destination[i] === 'undefined') {
|
|
264
|
-
destination[i] = cloneIfNecessary(e, optionsArgument);
|
|
265
|
-
} else if (isMergeableObject(e)) {
|
|
266
|
-
destination[i] = deepmerge(target[i], e, optionsArgument);
|
|
267
|
-
} else if (target.indexOf(e) === -1) {
|
|
268
|
-
destination.push(cloneIfNecessary(e, optionsArgument));
|
|
269
|
-
}
|
|
270
|
-
});
|
|
271
|
-
return destination
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
function mergeObject(target, source, optionsArgument) {
|
|
275
|
-
var destination = {};
|
|
276
|
-
if (isMergeableObject(target)) {
|
|
277
|
-
Object.keys(target).forEach(function(key) {
|
|
278
|
-
destination[key] = cloneIfNecessary(target[key], optionsArgument);
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
Object.keys(source).forEach(function(key) {
|
|
282
|
-
if (!isMergeableObject(source[key]) || !target[key]) {
|
|
283
|
-
destination[key] = cloneIfNecessary(source[key], optionsArgument);
|
|
284
|
-
} else {
|
|
285
|
-
destination[key] = deepmerge(target[key], source[key], optionsArgument);
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
return destination
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
function deepmerge(target, source, optionsArgument) {
|
|
292
|
-
var sourceIsArray = Array.isArray(source);
|
|
293
|
-
var targetIsArray = Array.isArray(target);
|
|
294
|
-
var options = optionsArgument || { arrayMerge: defaultArrayMerge };
|
|
295
|
-
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
296
|
-
|
|
297
|
-
if (!sourceAndTargetTypesMatch) {
|
|
298
|
-
return cloneIfNecessary(source, optionsArgument)
|
|
299
|
-
} else if (sourceIsArray) {
|
|
300
|
-
var arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
301
|
-
return arrayMerge(target, source, optionsArgument)
|
|
302
|
-
} else {
|
|
303
|
-
return mergeObject(target, source, optionsArgument)
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
deepmerge.all = function deepmergeAll(array, optionsArgument) {
|
|
308
|
-
if (!Array.isArray(array) || array.length < 2) {
|
|
309
|
-
throw new Error('first argument should be an array with at least two elements')
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
// we are sure there are at least 2 values, so it is safe to have no initial value
|
|
313
|
-
return array.reduce(function(prev, next) {
|
|
314
|
-
return deepmerge(prev, next, optionsArgument)
|
|
315
|
-
})
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
var deepmerge_1 = deepmerge;
|
|
319
|
-
|
|
320
|
-
module.exports = deepmerge_1;
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
/***/ }),
|
|
324
|
-
|
|
325
|
-
/***/ "3f6b":
|
|
326
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
327
|
-
|
|
328
|
-
module.exports = { "default": __webpack_require__("b9c7"), __esModule: true };
|
|
329
|
-
|
|
330
|
-
/***/ }),
|
|
331
|
-
|
|
332
|
-
/***/ "41b2":
|
|
333
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
334
|
-
|
|
335
|
-
"use strict";
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
exports.__esModule = true;
|
|
339
|
-
|
|
340
|
-
var _assign = __webpack_require__("3f6b");
|
|
341
|
-
|
|
342
|
-
var _assign2 = _interopRequireDefault(_assign);
|
|
343
|
-
|
|
344
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
345
|
-
|
|
346
|
-
exports.default = _assign2.default || function (target) {
|
|
347
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
348
|
-
var source = arguments[i];
|
|
349
|
-
|
|
350
|
-
for (var key in source) {
|
|
351
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
352
|
-
target[key] = source[key];
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
return target;
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
/***/ }),
|
|
361
|
-
|
|
362
|
-
/***/ "4362":
|
|
363
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
364
|
-
|
|
365
|
-
exports.nextTick = function nextTick(fn) {
|
|
366
|
-
var args = Array.prototype.slice.call(arguments);
|
|
367
|
-
args.shift();
|
|
368
|
-
setTimeout(function () {
|
|
369
|
-
fn.apply(null, args);
|
|
370
|
-
}, 0);
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
exports.platform = exports.arch =
|
|
374
|
-
exports.execPath = exports.title = 'browser';
|
|
375
|
-
exports.pid = 1;
|
|
376
|
-
exports.browser = true;
|
|
377
|
-
exports.env = {};
|
|
378
|
-
exports.argv = [];
|
|
379
|
-
|
|
380
|
-
exports.binding = function (name) {
|
|
381
|
-
throw new Error('No such module. (Possibly not yet loaded)')
|
|
382
|
-
};
|
|
383
|
-
|
|
384
|
-
(function () {
|
|
385
|
-
var cwd = '/';
|
|
386
|
-
var path;
|
|
387
|
-
exports.cwd = function () { return cwd };
|
|
388
|
-
exports.chdir = function (dir) {
|
|
389
|
-
if (!path) path = __webpack_require__("df7c");
|
|
390
|
-
cwd = path.resolve(dir, cwd);
|
|
391
|
-
};
|
|
392
|
-
})();
|
|
393
|
-
|
|
394
|
-
exports.exit = exports.kill =
|
|
395
|
-
exports.umask = exports.dlopen =
|
|
396
|
-
exports.uptime = exports.memoryUsage =
|
|
397
|
-
exports.uvCounters = function() {};
|
|
398
|
-
exports.features = {};
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
/***/ }),
|
|
402
|
-
|
|
403
|
-
/***/ "4b8b":
|
|
404
|
-
/***/ (function(module, exports) {
|
|
405
|
-
|
|
406
|
-
module.exports = function (exec) {
|
|
407
|
-
try {
|
|
408
|
-
return !!exec();
|
|
409
|
-
} catch (e) {
|
|
410
|
-
return true;
|
|
411
|
-
}
|
|
412
|
-
};
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
/***/ }),
|
|
416
|
-
|
|
417
|
-
/***/ "512c":
|
|
418
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
419
|
-
|
|
420
|
-
var global = __webpack_require__("ef08");
|
|
421
|
-
var core = __webpack_require__("5524");
|
|
422
|
-
var ctx = __webpack_require__("9c0c");
|
|
423
|
-
var hide = __webpack_require__("051b");
|
|
424
|
-
var has = __webpack_require__("9c0e");
|
|
425
|
-
var PROTOTYPE = 'prototype';
|
|
426
|
-
|
|
427
|
-
var $export = function (type, name, source) {
|
|
428
|
-
var IS_FORCED = type & $export.F;
|
|
429
|
-
var IS_GLOBAL = type & $export.G;
|
|
430
|
-
var IS_STATIC = type & $export.S;
|
|
431
|
-
var IS_PROTO = type & $export.P;
|
|
432
|
-
var IS_BIND = type & $export.B;
|
|
433
|
-
var IS_WRAP = type & $export.W;
|
|
434
|
-
var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
|
|
435
|
-
var expProto = exports[PROTOTYPE];
|
|
436
|
-
var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
|
|
437
|
-
var key, own, out;
|
|
438
|
-
if (IS_GLOBAL) source = name;
|
|
439
|
-
for (key in source) {
|
|
440
|
-
// contains in native
|
|
441
|
-
own = !IS_FORCED && target && target[key] !== undefined;
|
|
442
|
-
if (own && has(exports, key)) continue;
|
|
443
|
-
// export native or passed
|
|
444
|
-
out = own ? target[key] : source[key];
|
|
445
|
-
// prevent global pollution for namespaces
|
|
446
|
-
exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
|
|
447
|
-
// bind timers to global for call from export context
|
|
448
|
-
: IS_BIND && own ? ctx(out, global)
|
|
449
|
-
// wrap global constructors for prevent change them in library
|
|
450
|
-
: IS_WRAP && target[key] == out ? (function (C) {
|
|
451
|
-
var F = function (a, b, c) {
|
|
452
|
-
if (this instanceof C) {
|
|
453
|
-
switch (arguments.length) {
|
|
454
|
-
case 0: return new C();
|
|
455
|
-
case 1: return new C(a);
|
|
456
|
-
case 2: return new C(a, b);
|
|
457
|
-
} return new C(a, b, c);
|
|
458
|
-
} return C.apply(this, arguments);
|
|
459
|
-
};
|
|
460
|
-
F[PROTOTYPE] = C[PROTOTYPE];
|
|
461
|
-
return F;
|
|
462
|
-
// make static versions for prototype methods
|
|
463
|
-
})(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
|
|
464
|
-
// export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
|
|
465
|
-
if (IS_PROTO) {
|
|
466
|
-
(exports.virtual || (exports.virtual = {}))[key] = out;
|
|
467
|
-
// export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
|
|
468
|
-
if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
};
|
|
472
|
-
// type bitmap
|
|
473
|
-
$export.F = 1; // forced
|
|
474
|
-
$export.G = 2; // global
|
|
475
|
-
$export.S = 4; // static
|
|
476
|
-
$export.P = 8; // proto
|
|
477
|
-
$export.B = 16; // bind
|
|
478
|
-
$export.W = 32; // wrap
|
|
479
|
-
$export.U = 64; // safe
|
|
480
|
-
$export.R = 128; // real proto method for `library`
|
|
481
|
-
module.exports = $export;
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
/***/ }),
|
|
485
|
-
|
|
486
|
-
/***/ "5524":
|
|
487
|
-
/***/ (function(module, exports) {
|
|
488
|
-
|
|
489
|
-
var core = module.exports = { version: '2.6.12' };
|
|
490
|
-
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
/***/ }),
|
|
494
|
-
|
|
495
|
-
/***/ "597f":
|
|
496
|
-
/***/ (function(module, exports) {
|
|
497
|
-
|
|
498
|
-
/* eslint-disable no-undefined,no-param-reassign,no-shadow */
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* Throttle execution of a function. Especially useful for rate limiting
|
|
502
|
-
* execution of handlers on events like resize and scroll.
|
|
503
|
-
*
|
|
504
|
-
* @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
|
|
505
|
-
* @param {Boolean} [noTrailing] Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the
|
|
506
|
-
* throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time
|
|
507
|
-
* after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,
|
|
508
|
-
* the internal counter is reset)
|
|
509
|
-
* @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
|
|
510
|
-
* to `callback` when the throttled-function is executed.
|
|
511
|
-
* @param {Boolean} [debounceMode] If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),
|
|
512
|
-
* schedule `callback` to execute after `delay` ms.
|
|
513
|
-
*
|
|
514
|
-
* @return {Function} A new, throttled, function.
|
|
515
|
-
*/
|
|
516
|
-
module.exports = function ( delay, noTrailing, callback, debounceMode ) {
|
|
517
|
-
|
|
518
|
-
// After wrapper has stopped being called, this timeout ensures that
|
|
519
|
-
// `callback` is executed at the proper times in `throttle` and `end`
|
|
520
|
-
// debounce modes.
|
|
521
|
-
var timeoutID;
|
|
522
|
-
|
|
523
|
-
// Keep track of the last time `callback` was executed.
|
|
524
|
-
var lastExec = 0;
|
|
525
|
-
|
|
526
|
-
// `noTrailing` defaults to falsy.
|
|
527
|
-
if ( typeof noTrailing !== 'boolean' ) {
|
|
528
|
-
debounceMode = callback;
|
|
529
|
-
callback = noTrailing;
|
|
530
|
-
noTrailing = undefined;
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
// The `wrapper` function encapsulates all of the throttling / debouncing
|
|
534
|
-
// functionality and when executed will limit the rate at which `callback`
|
|
535
|
-
// is executed.
|
|
536
|
-
function wrapper () {
|
|
537
|
-
|
|
538
|
-
var self = this;
|
|
539
|
-
var elapsed = Number(new Date()) - lastExec;
|
|
540
|
-
var args = arguments;
|
|
541
|
-
|
|
542
|
-
// Execute `callback` and update the `lastExec` timestamp.
|
|
543
|
-
function exec () {
|
|
544
|
-
lastExec = Number(new Date());
|
|
545
|
-
callback.apply(self, args);
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
// If `debounceMode` is true (at begin) this is used to clear the flag
|
|
549
|
-
// to allow future `callback` executions.
|
|
550
|
-
function clear () {
|
|
551
|
-
timeoutID = undefined;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
if ( debounceMode && !timeoutID ) {
|
|
555
|
-
// Since `wrapper` is being called for the first time and
|
|
556
|
-
// `debounceMode` is true (at begin), execute `callback`.
|
|
557
|
-
exec();
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
// Clear any existing timeout.
|
|
561
|
-
if ( timeoutID ) {
|
|
562
|
-
clearTimeout(timeoutID);
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
if ( debounceMode === undefined && elapsed > delay ) {
|
|
566
|
-
// In throttle mode, if `delay` time has been exceeded, execute
|
|
567
|
-
// `callback`.
|
|
568
|
-
exec();
|
|
569
|
-
|
|
570
|
-
} else if ( noTrailing !== true ) {
|
|
571
|
-
// In trailing throttle mode, since `delay` time has not been
|
|
572
|
-
// exceeded, schedule `callback` to execute `delay` ms after most
|
|
573
|
-
// recent execution.
|
|
574
|
-
//
|
|
575
|
-
// If `debounceMode` is true (at begin), schedule `clear` to execute
|
|
576
|
-
// after `delay` ms.
|
|
577
|
-
//
|
|
578
|
-
// If `debounceMode` is false (at end), schedule `callback` to
|
|
579
|
-
// execute after `delay` ms.
|
|
580
|
-
timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
// Return the wrapper function.
|
|
586
|
-
return wrapper;
|
|
587
|
-
|
|
588
|
-
};
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
/***/ }),
|
|
592
|
-
|
|
593
|
-
/***/ "62e4":
|
|
594
|
-
/***/ (function(module, exports) {
|
|
595
|
-
|
|
596
|
-
module.exports = function(module) {
|
|
597
|
-
if (!module.webpackPolyfill) {
|
|
598
|
-
module.deprecate = function() {};
|
|
599
|
-
module.paths = [];
|
|
600
|
-
// module.parent = undefined by default
|
|
601
|
-
if (!module.children) module.children = [];
|
|
602
|
-
Object.defineProperty(module, "loaded", {
|
|
603
|
-
enumerable: true,
|
|
604
|
-
get: function() {
|
|
605
|
-
return module.l;
|
|
606
|
-
}
|
|
607
|
-
});
|
|
608
|
-
Object.defineProperty(module, "id", {
|
|
609
|
-
enumerable: true,
|
|
610
|
-
get: function() {
|
|
611
|
-
return module.i;
|
|
612
|
-
}
|
|
613
|
-
});
|
|
614
|
-
module.webpackPolyfill = 1;
|
|
615
|
-
}
|
|
616
|
-
return module;
|
|
617
|
-
};
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
/***/ }),
|
|
621
|
-
|
|
622
|
-
/***/ "77e9":
|
|
623
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
624
|
-
|
|
625
|
-
var isObject = __webpack_require__("7a41");
|
|
626
|
-
module.exports = function (it) {
|
|
627
|
-
if (!isObject(it)) throw TypeError(it + ' is not an object!');
|
|
628
|
-
return it;
|
|
629
|
-
};
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
/***/ }),
|
|
633
|
-
|
|
634
|
-
/***/ "7a41":
|
|
635
|
-
/***/ (function(module, exports) {
|
|
636
|
-
|
|
637
|
-
module.exports = function (it) {
|
|
638
|
-
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
|
639
|
-
};
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
/***/ }),
|
|
643
|
-
|
|
644
|
-
/***/ "7b3e":
|
|
645
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
646
|
-
|
|
647
|
-
"use strict";
|
|
648
|
-
/**
|
|
649
|
-
* Copyright 2013-2015, Facebook, Inc.
|
|
650
|
-
* All rights reserved.
|
|
651
|
-
*
|
|
652
|
-
* This source code is licensed under the BSD-style license found in the
|
|
653
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
654
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
655
|
-
*
|
|
656
|
-
* @providesModule isEventSupported
|
|
657
|
-
*/
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
var ExecutionEnvironment = __webpack_require__("a3de");
|
|
662
|
-
|
|
663
|
-
var useHasFeature;
|
|
664
|
-
if (ExecutionEnvironment.canUseDOM) {
|
|
665
|
-
useHasFeature =
|
|
666
|
-
document.implementation &&
|
|
667
|
-
document.implementation.hasFeature &&
|
|
668
|
-
// always returns true in newer browsers as per the standard.
|
|
669
|
-
// @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
|
670
|
-
document.implementation.hasFeature('', '') !== true;
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
/**
|
|
674
|
-
* Checks if an event is supported in the current execution environment.
|
|
675
|
-
*
|
|
676
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
677
|
-
* `reset`, `load`, `error`, and `select`.
|
|
678
|
-
*
|
|
679
|
-
* Borrows from Modernizr.
|
|
680
|
-
*
|
|
681
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
682
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
|
683
|
-
* @return {boolean} True if the event is supported.
|
|
684
|
-
* @internal
|
|
685
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
686
|
-
*/
|
|
687
|
-
function isEventSupported(eventNameSuffix, capture) {
|
|
688
|
-
if (!ExecutionEnvironment.canUseDOM ||
|
|
689
|
-
capture && !('addEventListener' in document)) {
|
|
690
|
-
return false;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
var eventName = 'on' + eventNameSuffix;
|
|
694
|
-
var isSupported = eventName in document;
|
|
695
|
-
|
|
696
|
-
if (!isSupported) {
|
|
697
|
-
var element = document.createElement('div');
|
|
698
|
-
element.setAttribute(eventName, 'return;');
|
|
699
|
-
isSupported = typeof element[eventName] === 'function';
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
|
|
703
|
-
// This is the only way to test support for the `wheel` event in IE9+.
|
|
704
|
-
isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
return isSupported;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
module.exports = isEventSupported;
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
/***/ }),
|
|
714
|
-
|
|
715
|
-
/***/ "8875":
|
|
716
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
717
|
-
|
|
718
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller
|
|
719
|
-
// MIT license
|
|
720
|
-
// source: https://github.com/amiller-gh/currentScript-polyfill
|
|
721
|
-
|
|
722
|
-
// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505
|
|
723
|
-
|
|
724
|
-
(function (root, factory) {
|
|
725
|
-
if (true) {
|
|
726
|
-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
727
|
-
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
728
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
729
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
730
|
-
} else {}
|
|
731
|
-
}(typeof self !== 'undefined' ? self : this, function () {
|
|
732
|
-
function getCurrentScript () {
|
|
733
|
-
var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')
|
|
734
|
-
// for chrome
|
|
735
|
-
if (!descriptor && 'currentScript' in document && document.currentScript) {
|
|
736
|
-
return document.currentScript
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
// for other browsers with native support for currentScript
|
|
740
|
-
if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {
|
|
741
|
-
return document.currentScript
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
// IE 8-10 support script readyState
|
|
745
|
-
// IE 11+ & Firefox support stack trace
|
|
746
|
-
try {
|
|
747
|
-
throw new Error();
|
|
748
|
-
}
|
|
749
|
-
catch (err) {
|
|
750
|
-
// Find the second match for the "at" string to get file src url from stack.
|
|
751
|
-
var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig,
|
|
752
|
-
ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig,
|
|
753
|
-
stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),
|
|
754
|
-
scriptLocation = (stackDetails && stackDetails[1]) || false,
|
|
755
|
-
line = (stackDetails && stackDetails[2]) || false,
|
|
756
|
-
currentLocation = document.location.href.replace(document.location.hash, ''),
|
|
757
|
-
pageSource,
|
|
758
|
-
inlineScriptSourceRegExp,
|
|
759
|
-
inlineScriptSource,
|
|
760
|
-
scripts = document.getElementsByTagName('script'); // Live NodeList collection
|
|
761
|
-
|
|
762
|
-
if (scriptLocation === currentLocation) {
|
|
763
|
-
pageSource = document.documentElement.outerHTML;
|
|
764
|
-
inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i');
|
|
765
|
-
inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
for (var i = 0; i < scripts.length; i++) {
|
|
769
|
-
// If ready state is interactive, return the script tag
|
|
770
|
-
if (scripts[i].readyState === 'interactive') {
|
|
771
|
-
return scripts[i];
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
// If src matches, return the script tag
|
|
775
|
-
if (scripts[i].src === scriptLocation) {
|
|
776
|
-
return scripts[i];
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
// If inline source matches, return the script tag
|
|
780
|
-
if (
|
|
781
|
-
scriptLocation === currentLocation &&
|
|
782
|
-
scripts[i].innerHTML &&
|
|
783
|
-
scripts[i].innerHTML.trim() === inlineScriptSource
|
|
784
|
-
) {
|
|
785
|
-
return scripts[i];
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
// If no match, return null
|
|
790
|
-
return null;
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
|
-
|
|
794
|
-
return getCurrentScript
|
|
795
|
-
}));
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
/***/ }),
|
|
799
|
-
|
|
800
|
-
/***/ "8eb7":
|
|
801
|
-
/***/ (function(module, exports) {
|
|
802
|
-
|
|
803
|
-
/**
|
|
804
|
-
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
805
|
-
*
|
|
806
|
-
* @providesModule UserAgent_DEPRECATED
|
|
807
|
-
*/
|
|
808
|
-
|
|
809
|
-
/**
|
|
810
|
-
* Provides entirely client-side User Agent and OS detection. You should prefer
|
|
811
|
-
* the non-deprecated UserAgent module when possible, which exposes our
|
|
812
|
-
* authoritative server-side PHP-based detection to the client.
|
|
813
|
-
*
|
|
814
|
-
* Usage is straightforward:
|
|
815
|
-
*
|
|
816
|
-
* if (UserAgent_DEPRECATED.ie()) {
|
|
817
|
-
* // IE
|
|
818
|
-
* }
|
|
819
|
-
*
|
|
820
|
-
* You can also do version checks:
|
|
821
|
-
*
|
|
822
|
-
* if (UserAgent_DEPRECATED.ie() >= 7) {
|
|
823
|
-
* // IE7 or better
|
|
824
|
-
* }
|
|
825
|
-
*
|
|
826
|
-
* The browser functions will return NaN if the browser does not match, so
|
|
827
|
-
* you can also do version compares the other way:
|
|
828
|
-
*
|
|
829
|
-
* if (UserAgent_DEPRECATED.ie() < 7) {
|
|
830
|
-
* // IE6 or worse
|
|
831
|
-
* }
|
|
832
|
-
*
|
|
833
|
-
* Note that the version is a float and may include a minor version number,
|
|
834
|
-
* so you should always use range operators to perform comparisons, not
|
|
835
|
-
* strict equality.
|
|
836
|
-
*
|
|
837
|
-
* **Note:** You should **strongly** prefer capability detection to browser
|
|
838
|
-
* version detection where it's reasonable:
|
|
839
|
-
*
|
|
840
|
-
* http://www.quirksmode.org/js/support.html
|
|
841
|
-
*
|
|
842
|
-
* Further, we have a large number of mature wrapper functions and classes
|
|
843
|
-
* which abstract away many browser irregularities. Check the documentation,
|
|
844
|
-
* grep for things, or ask on javascript@lists.facebook.com before writing yet
|
|
845
|
-
* another copy of "event || window.event".
|
|
846
|
-
*
|
|
847
|
-
*/
|
|
848
|
-
|
|
849
|
-
var _populated = false;
|
|
850
|
-
|
|
851
|
-
// Browsers
|
|
852
|
-
var _ie, _firefox, _opera, _webkit, _chrome;
|
|
853
|
-
|
|
854
|
-
// Actual IE browser for compatibility mode
|
|
855
|
-
var _ie_real_version;
|
|
856
|
-
|
|
857
|
-
// Platforms
|
|
858
|
-
var _osx, _windows, _linux, _android;
|
|
859
|
-
|
|
860
|
-
// Architectures
|
|
861
|
-
var _win64;
|
|
862
|
-
|
|
863
|
-
// Devices
|
|
864
|
-
var _iphone, _ipad, _native;
|
|
865
|
-
|
|
866
|
-
var _mobile;
|
|
867
|
-
|
|
868
|
-
function _populate() {
|
|
869
|
-
if (_populated) {
|
|
870
|
-
return;
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
_populated = true;
|
|
874
|
-
|
|
875
|
-
// To work around buggy JS libraries that can't handle multi-digit
|
|
876
|
-
// version numbers, Opera 10's user agent string claims it's Opera
|
|
877
|
-
// 9, then later includes a Version/X.Y field:
|
|
878
|
-
//
|
|
879
|
-
// Opera/9.80 (foo) Presto/2.2.15 Version/10.10
|
|
880
|
-
var uas = navigator.userAgent;
|
|
881
|
-
var agent = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(uas);
|
|
882
|
-
var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
|
|
883
|
-
|
|
884
|
-
_iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
|
|
885
|
-
_ipad = /\b(iP[ao]d)/.exec(uas);
|
|
886
|
-
_android = /Android/i.exec(uas);
|
|
887
|
-
_native = /FBAN\/\w+;/i.exec(uas);
|
|
888
|
-
_mobile = /Mobile/i.exec(uas);
|
|
889
|
-
|
|
890
|
-
// Note that the IE team blog would have you believe you should be checking
|
|
891
|
-
// for 'Win64; x64'. But MSDN then reveals that you can actually be coming
|
|
892
|
-
// from either x64 or ia64; so ultimately, you should just check for Win64
|
|
893
|
-
// as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
|
|
894
|
-
// Windows will send 'WOW64' instead.
|
|
895
|
-
_win64 = !!(/Win64/.exec(uas));
|
|
896
|
-
|
|
897
|
-
if (agent) {
|
|
898
|
-
_ie = agent[1] ? parseFloat(agent[1]) : (
|
|
899
|
-
agent[5] ? parseFloat(agent[5]) : NaN);
|
|
900
|
-
// IE compatibility mode
|
|
901
|
-
if (_ie && document && document.documentMode) {
|
|
902
|
-
_ie = document.documentMode;
|
|
903
|
-
}
|
|
904
|
-
// grab the "true" ie version from the trident token if available
|
|
905
|
-
var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
|
|
906
|
-
_ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
|
|
907
|
-
|
|
908
|
-
_firefox = agent[2] ? parseFloat(agent[2]) : NaN;
|
|
909
|
-
_opera = agent[3] ? parseFloat(agent[3]) : NaN;
|
|
910
|
-
_webkit = agent[4] ? parseFloat(agent[4]) : NaN;
|
|
911
|
-
if (_webkit) {
|
|
912
|
-
// We do not add the regexp to the above test, because it will always
|
|
913
|
-
// match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
|
|
914
|
-
// the userAgent string.
|
|
915
|
-
agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
|
|
916
|
-
_chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
|
|
917
|
-
} else {
|
|
918
|
-
_chrome = NaN;
|
|
919
|
-
}
|
|
920
|
-
} else {
|
|
921
|
-
_ie = _firefox = _opera = _chrome = _webkit = NaN;
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
if (os) {
|
|
925
|
-
if (os[1]) {
|
|
926
|
-
// Detect OS X version. If no version number matches, set _osx to true.
|
|
927
|
-
// Version examples: 10, 10_6_1, 10.7
|
|
928
|
-
// Parses version number as a float, taking only first two sets of
|
|
929
|
-
// digits. If only one set of digits is found, returns just the major
|
|
930
|
-
// version number.
|
|
931
|
-
var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
|
|
932
|
-
|
|
933
|
-
_osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
|
|
934
|
-
} else {
|
|
935
|
-
_osx = false;
|
|
936
|
-
}
|
|
937
|
-
_windows = !!os[2];
|
|
938
|
-
_linux = !!os[3];
|
|
939
|
-
} else {
|
|
940
|
-
_osx = _windows = _linux = false;
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
var UserAgent_DEPRECATED = {
|
|
945
|
-
|
|
946
|
-
/**
|
|
947
|
-
* Check if the UA is Internet Explorer.
|
|
948
|
-
*
|
|
949
|
-
*
|
|
950
|
-
* @return float|NaN Version number (if match) or NaN.
|
|
951
|
-
*/
|
|
952
|
-
ie: function() {
|
|
953
|
-
return _populate() || _ie;
|
|
954
|
-
},
|
|
955
|
-
|
|
956
|
-
/**
|
|
957
|
-
* Check if we're in Internet Explorer compatibility mode.
|
|
958
|
-
*
|
|
959
|
-
* @return bool true if in compatibility mode, false if
|
|
960
|
-
* not compatibility mode or not ie
|
|
961
|
-
*/
|
|
962
|
-
ieCompatibilityMode: function() {
|
|
963
|
-
return _populate() || (_ie_real_version > _ie);
|
|
964
|
-
},
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
/**
|
|
968
|
-
* Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
|
|
969
|
-
* only need this because Skype can't handle 64-bit IE yet. We need to remove
|
|
970
|
-
* this when we don't need it -- tracked by #601957.
|
|
971
|
-
*/
|
|
972
|
-
ie64: function() {
|
|
973
|
-
return UserAgent_DEPRECATED.ie() && _win64;
|
|
974
|
-
},
|
|
975
|
-
|
|
976
|
-
/**
|
|
977
|
-
* Check if the UA is Firefox.
|
|
978
|
-
*
|
|
979
|
-
*
|
|
980
|
-
* @return float|NaN Version number (if match) or NaN.
|
|
981
|
-
*/
|
|
982
|
-
firefox: function() {
|
|
983
|
-
return _populate() || _firefox;
|
|
984
|
-
},
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
/**
|
|
988
|
-
* Check if the UA is Opera.
|
|
989
|
-
*
|
|
990
|
-
*
|
|
991
|
-
* @return float|NaN Version number (if match) or NaN.
|
|
992
|
-
*/
|
|
993
|
-
opera: function() {
|
|
994
|
-
return _populate() || _opera;
|
|
995
|
-
},
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
/**
|
|
999
|
-
* Check if the UA is WebKit.
|
|
1000
|
-
*
|
|
1001
|
-
*
|
|
1002
|
-
* @return float|NaN Version number (if match) or NaN.
|
|
1003
|
-
*/
|
|
1004
|
-
webkit: function() {
|
|
1005
|
-
return _populate() || _webkit;
|
|
1006
|
-
},
|
|
1007
|
-
|
|
1008
|
-
/**
|
|
1009
|
-
* For Push
|
|
1010
|
-
* WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
|
|
1011
|
-
*/
|
|
1012
|
-
safari: function() {
|
|
1013
|
-
return UserAgent_DEPRECATED.webkit();
|
|
1014
|
-
},
|
|
1015
|
-
|
|
1016
|
-
/**
|
|
1017
|
-
* Check if the UA is a Chrome browser.
|
|
1018
|
-
*
|
|
1019
|
-
*
|
|
1020
|
-
* @return float|NaN Version number (if match) or NaN.
|
|
1021
|
-
*/
|
|
1022
|
-
chrome : function() {
|
|
1023
|
-
return _populate() || _chrome;
|
|
1024
|
-
},
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
/**
|
|
1028
|
-
* Check if the user is running Windows.
|
|
1029
|
-
*
|
|
1030
|
-
* @return bool `true' if the user's OS is Windows.
|
|
1031
|
-
*/
|
|
1032
|
-
windows: function() {
|
|
1033
|
-
return _populate() || _windows;
|
|
1034
|
-
},
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
/**
|
|
1038
|
-
* Check if the user is running Mac OS X.
|
|
1039
|
-
*
|
|
1040
|
-
* @return float|bool Returns a float if a version number is detected,
|
|
1041
|
-
* otherwise true/false.
|
|
1042
|
-
*/
|
|
1043
|
-
osx: function() {
|
|
1044
|
-
return _populate() || _osx;
|
|
1045
|
-
},
|
|
1046
|
-
|
|
1047
|
-
/**
|
|
1048
|
-
* Check if the user is running Linux.
|
|
1049
|
-
*
|
|
1050
|
-
* @return bool `true' if the user's OS is some flavor of Linux.
|
|
1051
|
-
*/
|
|
1052
|
-
linux: function() {
|
|
1053
|
-
return _populate() || _linux;
|
|
1054
|
-
},
|
|
1055
|
-
|
|
1056
|
-
/**
|
|
1057
|
-
* Check if the user is running on an iPhone or iPod platform.
|
|
1058
|
-
*
|
|
1059
|
-
* @return bool `true' if the user is running some flavor of the
|
|
1060
|
-
* iPhone OS.
|
|
1061
|
-
*/
|
|
1062
|
-
iphone: function() {
|
|
1063
|
-
return _populate() || _iphone;
|
|
1064
|
-
},
|
|
1065
|
-
|
|
1066
|
-
mobile: function() {
|
|
1067
|
-
return _populate() || (_iphone || _ipad || _android || _mobile);
|
|
1068
|
-
},
|
|
1069
|
-
|
|
1070
|
-
nativeApp: function() {
|
|
1071
|
-
// webviews inside of the native apps
|
|
1072
|
-
return _populate() || _native;
|
|
1073
|
-
},
|
|
1074
|
-
|
|
1075
|
-
android: function() {
|
|
1076
|
-
return _populate() || _android;
|
|
1077
|
-
},
|
|
1078
|
-
|
|
1079
|
-
ipad: function() {
|
|
1080
|
-
return _populate() || _ipad;
|
|
1081
|
-
}
|
|
1082
|
-
};
|
|
1083
|
-
|
|
1084
|
-
module.exports = UserAgent_DEPRECATED;
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
/***/ }),
|
|
1088
|
-
|
|
1089
|
-
/***/ "92fa":
|
|
1090
|
-
/***/ (function(module, exports) {
|
|
1091
|
-
|
|
1092
|
-
var nestRE = /^(attrs|props|on|nativeOn|class|style|hook)$/
|
|
1093
|
-
|
|
1094
|
-
module.exports = function mergeJSXProps (objs) {
|
|
1095
|
-
return objs.reduce(function (a, b) {
|
|
1096
|
-
var aa, bb, key, nestedKey, temp
|
|
1097
|
-
for (key in b) {
|
|
1098
|
-
aa = a[key]
|
|
1099
|
-
bb = b[key]
|
|
1100
|
-
if (aa && nestRE.test(key)) {
|
|
1101
|
-
// normalize class
|
|
1102
|
-
if (key === 'class') {
|
|
1103
|
-
if (typeof aa === 'string') {
|
|
1104
|
-
temp = aa
|
|
1105
|
-
a[key] = aa = {}
|
|
1106
|
-
aa[temp] = true
|
|
1107
|
-
}
|
|
1108
|
-
if (typeof bb === 'string') {
|
|
1109
|
-
temp = bb
|
|
1110
|
-
b[key] = bb = {}
|
|
1111
|
-
bb[temp] = true
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
if (key === 'on' || key === 'nativeOn' || key === 'hook') {
|
|
1115
|
-
// merge functions
|
|
1116
|
-
for (nestedKey in bb) {
|
|
1117
|
-
aa[nestedKey] = mergeFn(aa[nestedKey], bb[nestedKey])
|
|
1118
|
-
}
|
|
1119
|
-
} else if (Array.isArray(aa)) {
|
|
1120
|
-
a[key] = aa.concat(bb)
|
|
1121
|
-
} else if (Array.isArray(bb)) {
|
|
1122
|
-
a[key] = [aa].concat(bb)
|
|
1123
|
-
} else {
|
|
1124
|
-
for (nestedKey in bb) {
|
|
1125
|
-
aa[nestedKey] = bb[nestedKey]
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
} else {
|
|
1129
|
-
a[key] = b[key]
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
return a
|
|
1133
|
-
}, {})
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
function mergeFn (a, b) {
|
|
1137
|
-
return function () {
|
|
1138
|
-
a && a.apply(this, arguments)
|
|
1139
|
-
b && b.apply(this, arguments)
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
/***/ }),
|
|
1145
|
-
|
|
1146
|
-
/***/ "9619":
|
|
1147
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1148
|
-
|
|
1149
|
-
var throttle = __webpack_require__("597f");
|
|
1150
|
-
var debounce = __webpack_require__("0e15");
|
|
1151
|
-
|
|
1152
|
-
module.exports = {
|
|
1153
|
-
throttle: throttle,
|
|
1154
|
-
debounce: debounce
|
|
1155
|
-
};
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
/***/ }),
|
|
1159
|
-
|
|
1160
|
-
/***/ "9c0c":
|
|
1161
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1162
|
-
|
|
1163
|
-
// optional / simple context binding
|
|
1164
|
-
var aFunction = __webpack_require__("1609");
|
|
1165
|
-
module.exports = function (fn, that, length) {
|
|
1166
|
-
aFunction(fn);
|
|
1167
|
-
if (that === undefined) return fn;
|
|
1168
|
-
switch (length) {
|
|
1169
|
-
case 1: return function (a) {
|
|
1170
|
-
return fn.call(that, a);
|
|
1171
|
-
};
|
|
1172
|
-
case 2: return function (a, b) {
|
|
1173
|
-
return fn.call(that, a, b);
|
|
1174
|
-
};
|
|
1175
|
-
case 3: return function (a, b, c) {
|
|
1176
|
-
return fn.call(that, a, b, c);
|
|
1177
|
-
};
|
|
1178
|
-
}
|
|
1179
|
-
return function (/* ...args */) {
|
|
1180
|
-
return fn.apply(that, arguments);
|
|
1181
|
-
};
|
|
1182
|
-
};
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
/***/ }),
|
|
1186
|
-
|
|
1187
|
-
/***/ "a15e":
|
|
1188
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1189
|
-
|
|
1190
|
-
"use strict";
|
|
1191
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1192
|
-
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("41b2");
|
|
1193
|
-
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
|
|
1194
|
-
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("1098");
|
|
1195
|
-
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
|
|
1196
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("fa49");
|
|
1197
|
-
/* harmony import */ var _validator___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("8c44");
|
|
1198
|
-
/* harmony import */ var _messages__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("9c4a");
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
/**
|
|
1206
|
-
* Encapsulates a validation schema.
|
|
1207
|
-
*
|
|
1208
|
-
* @param descriptor An object declaring validation rules
|
|
1209
|
-
* for this schema.
|
|
1210
|
-
*/
|
|
1211
|
-
function Schema(descriptor) {
|
|
1212
|
-
this.rules = null;
|
|
1213
|
-
this._messages = _messages__WEBPACK_IMPORTED_MODULE_4__[/* messages */ "a"];
|
|
1214
|
-
this.define(descriptor);
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
Schema.prototype = {
|
|
1218
|
-
messages: function messages(_messages) {
|
|
1219
|
-
if (_messages) {
|
|
1220
|
-
this._messages = Object(_util__WEBPACK_IMPORTED_MODULE_2__[/* deepMerge */ "c"])(Object(_messages__WEBPACK_IMPORTED_MODULE_4__[/* newMessages */ "b"])(), _messages);
|
|
1221
|
-
}
|
|
1222
|
-
return this._messages;
|
|
1223
|
-
},
|
|
1224
|
-
define: function define(rules) {
|
|
1225
|
-
if (!rules) {
|
|
1226
|
-
throw new Error('Cannot configure a schema with no rules');
|
|
1227
|
-
}
|
|
1228
|
-
if ((typeof rules === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(rules)) !== 'object' || Array.isArray(rules)) {
|
|
1229
|
-
throw new Error('Rules must be an object');
|
|
1230
|
-
}
|
|
1231
|
-
this.rules = {};
|
|
1232
|
-
var z = void 0;
|
|
1233
|
-
var item = void 0;
|
|
1234
|
-
for (z in rules) {
|
|
1235
|
-
if (rules.hasOwnProperty(z)) {
|
|
1236
|
-
item = rules[z];
|
|
1237
|
-
this.rules[z] = Array.isArray(item) ? item : [item];
|
|
1238
|
-
}
|
|
1239
|
-
}
|
|
1240
|
-
},
|
|
1241
|
-
validate: function validate(source_) {
|
|
1242
|
-
var _this = this;
|
|
1243
|
-
|
|
1244
|
-
var o = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1245
|
-
var oc = arguments[2];
|
|
1246
|
-
|
|
1247
|
-
var source = source_;
|
|
1248
|
-
var options = o;
|
|
1249
|
-
var callback = oc;
|
|
1250
|
-
if (typeof options === 'function') {
|
|
1251
|
-
callback = options;
|
|
1252
|
-
options = {};
|
|
1253
|
-
}
|
|
1254
|
-
if (!this.rules || Object.keys(this.rules).length === 0) {
|
|
1255
|
-
if (callback) {
|
|
1256
|
-
callback();
|
|
1257
|
-
}
|
|
1258
|
-
return;
|
|
1259
|
-
}
|
|
1260
|
-
function complete(results) {
|
|
1261
|
-
var i = void 0;
|
|
1262
|
-
var field = void 0;
|
|
1263
|
-
var errors = [];
|
|
1264
|
-
var fields = {};
|
|
1265
|
-
|
|
1266
|
-
function add(e) {
|
|
1267
|
-
if (Array.isArray(e)) {
|
|
1268
|
-
errors = errors.concat.apply(errors, e);
|
|
1269
|
-
} else {
|
|
1270
|
-
errors.push(e);
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
for (i = 0; i < results.length; i++) {
|
|
1275
|
-
add(results[i]);
|
|
1276
|
-
}
|
|
1277
|
-
if (!errors.length) {
|
|
1278
|
-
errors = null;
|
|
1279
|
-
fields = null;
|
|
1280
|
-
} else {
|
|
1281
|
-
for (i = 0; i < errors.length; i++) {
|
|
1282
|
-
field = errors[i].field;
|
|
1283
|
-
fields[field] = fields[field] || [];
|
|
1284
|
-
fields[field].push(errors[i]);
|
|
1285
|
-
}
|
|
1286
|
-
}
|
|
1287
|
-
callback(errors, fields);
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
if (options.messages) {
|
|
1291
|
-
var messages = this.messages();
|
|
1292
|
-
if (messages === _messages__WEBPACK_IMPORTED_MODULE_4__[/* messages */ "a"]) {
|
|
1293
|
-
messages = Object(_messages__WEBPACK_IMPORTED_MODULE_4__[/* newMessages */ "b"])();
|
|
1294
|
-
}
|
|
1295
|
-
Object(_util__WEBPACK_IMPORTED_MODULE_2__[/* deepMerge */ "c"])(messages, options.messages);
|
|
1296
|
-
options.messages = messages;
|
|
1297
|
-
} else {
|
|
1298
|
-
options.messages = this.messages();
|
|
1299
|
-
}
|
|
1300
|
-
var arr = void 0;
|
|
1301
|
-
var value = void 0;
|
|
1302
|
-
var series = {};
|
|
1303
|
-
var keys = options.keys || Object.keys(this.rules);
|
|
1304
|
-
keys.forEach(function (z) {
|
|
1305
|
-
arr = _this.rules[z];
|
|
1306
|
-
value = source[z];
|
|
1307
|
-
arr.forEach(function (r) {
|
|
1308
|
-
var rule = r;
|
|
1309
|
-
if (typeof rule.transform === 'function') {
|
|
1310
|
-
if (source === source_) {
|
|
1311
|
-
source = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, source);
|
|
1312
|
-
}
|
|
1313
|
-
value = source[z] = rule.transform(value);
|
|
1314
|
-
}
|
|
1315
|
-
if (typeof rule === 'function') {
|
|
1316
|
-
rule = {
|
|
1317
|
-
validator: rule
|
|
1318
|
-
};
|
|
1319
|
-
} else {
|
|
1320
|
-
rule = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rule);
|
|
1321
|
-
}
|
|
1322
|
-
rule.validator = _this.getValidationMethod(rule);
|
|
1323
|
-
rule.field = z;
|
|
1324
|
-
rule.fullField = rule.fullField || z;
|
|
1325
|
-
rule.type = _this.getType(rule);
|
|
1326
|
-
if (!rule.validator) {
|
|
1327
|
-
return;
|
|
1328
|
-
}
|
|
1329
|
-
series[z] = series[z] || [];
|
|
1330
|
-
series[z].push({
|
|
1331
|
-
rule: rule,
|
|
1332
|
-
value: value,
|
|
1333
|
-
source: source,
|
|
1334
|
-
field: z
|
|
1335
|
-
});
|
|
1336
|
-
});
|
|
1337
|
-
});
|
|
1338
|
-
var errorFields = {};
|
|
1339
|
-
Object(_util__WEBPACK_IMPORTED_MODULE_2__[/* asyncMap */ "a"])(series, options, function (data, doIt) {
|
|
1340
|
-
var rule = data.rule;
|
|
1341
|
-
var deep = (rule.type === 'object' || rule.type === 'array') && (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(rule.fields) === 'object' || babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(rule.defaultField) === 'object');
|
|
1342
|
-
deep = deep && (rule.required || !rule.required && data.value);
|
|
1343
|
-
rule.field = data.field;
|
|
1344
|
-
function addFullfield(key, schema) {
|
|
1345
|
-
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, schema, {
|
|
1346
|
-
fullField: rule.fullField + '.' + key
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
|
-
function cb() {
|
|
1351
|
-
var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
1352
|
-
|
|
1353
|
-
var errors = e;
|
|
1354
|
-
if (!Array.isArray(errors)) {
|
|
1355
|
-
errors = [errors];
|
|
1356
|
-
}
|
|
1357
|
-
if (errors.length) {
|
|
1358
|
-
Object(_util__WEBPACK_IMPORTED_MODULE_2__[/* warning */ "f"])('async-validator:', errors);
|
|
1359
|
-
}
|
|
1360
|
-
if (errors.length && rule.message) {
|
|
1361
|
-
errors = [].concat(rule.message);
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
errors = errors.map(Object(_util__WEBPACK_IMPORTED_MODULE_2__[/* complementError */ "b"])(rule));
|
|
1365
|
-
|
|
1366
|
-
if (options.first && errors.length) {
|
|
1367
|
-
errorFields[rule.field] = 1;
|
|
1368
|
-
return doIt(errors);
|
|
1369
|
-
}
|
|
1370
|
-
if (!deep) {
|
|
1371
|
-
doIt(errors);
|
|
1372
|
-
} else {
|
|
1373
|
-
// if rule is required but the target object
|
|
1374
|
-
// does not exist fail at the rule level and don't
|
|
1375
|
-
// go deeper
|
|
1376
|
-
if (rule.required && !data.value) {
|
|
1377
|
-
if (rule.message) {
|
|
1378
|
-
errors = [].concat(rule.message).map(Object(_util__WEBPACK_IMPORTED_MODULE_2__[/* complementError */ "b"])(rule));
|
|
1379
|
-
} else if (options.error) {
|
|
1380
|
-
errors = [options.error(rule, Object(_util__WEBPACK_IMPORTED_MODULE_2__[/* format */ "d"])(options.messages.required, rule.field))];
|
|
1381
|
-
} else {
|
|
1382
|
-
errors = [];
|
|
1383
|
-
}
|
|
1384
|
-
return doIt(errors);
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
var fieldsSchema = {};
|
|
1388
|
-
if (rule.defaultField) {
|
|
1389
|
-
for (var k in data.value) {
|
|
1390
|
-
if (data.value.hasOwnProperty(k)) {
|
|
1391
|
-
fieldsSchema[k] = rule.defaultField;
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
fieldsSchema = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, fieldsSchema, data.rule.fields);
|
|
1396
|
-
for (var f in fieldsSchema) {
|
|
1397
|
-
if (fieldsSchema.hasOwnProperty(f)) {
|
|
1398
|
-
var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
|
|
1399
|
-
fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
var schema = new Schema(fieldsSchema);
|
|
1403
|
-
schema.messages(options.messages);
|
|
1404
|
-
if (data.rule.options) {
|
|
1405
|
-
data.rule.options.messages = options.messages;
|
|
1406
|
-
data.rule.options.error = options.error;
|
|
1407
|
-
}
|
|
1408
|
-
schema.validate(data.value, data.rule.options || options, function (errs) {
|
|
1409
|
-
doIt(errs && errs.length ? errors.concat(errs) : errs);
|
|
1410
|
-
});
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
var res = rule.validator(rule, data.value, cb, data.source, options);
|
|
1415
|
-
if (res && res.then) {
|
|
1416
|
-
res.then(function () {
|
|
1417
|
-
return cb();
|
|
1418
|
-
}, function (e) {
|
|
1419
|
-
return cb(e);
|
|
1420
|
-
});
|
|
1421
|
-
}
|
|
1422
|
-
}, function (results) {
|
|
1423
|
-
complete(results);
|
|
1424
|
-
});
|
|
1425
|
-
},
|
|
1426
|
-
getType: function getType(rule) {
|
|
1427
|
-
if (rule.type === undefined && rule.pattern instanceof RegExp) {
|
|
1428
|
-
rule.type = 'pattern';
|
|
1429
|
-
}
|
|
1430
|
-
if (typeof rule.validator !== 'function' && rule.type && !_validator___WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"].hasOwnProperty(rule.type)) {
|
|
1431
|
-
throw new Error(Object(_util__WEBPACK_IMPORTED_MODULE_2__[/* format */ "d"])('Unknown rule type %s', rule.type));
|
|
1432
|
-
}
|
|
1433
|
-
return rule.type || 'string';
|
|
1434
|
-
},
|
|
1435
|
-
getValidationMethod: function getValidationMethod(rule) {
|
|
1436
|
-
if (typeof rule.validator === 'function') {
|
|
1437
|
-
return rule.validator;
|
|
1438
|
-
}
|
|
1439
|
-
var keys = Object.keys(rule);
|
|
1440
|
-
var messageIndex = keys.indexOf('message');
|
|
1441
|
-
if (messageIndex !== -1) {
|
|
1442
|
-
keys.splice(messageIndex, 1);
|
|
1443
|
-
}
|
|
1444
|
-
if (keys.length === 1 && keys[0] === 'required') {
|
|
1445
|
-
return _validator___WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"].required;
|
|
1446
|
-
}
|
|
1447
|
-
return _validator___WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"][this.getType(rule)] || false;
|
|
1448
|
-
}
|
|
1449
|
-
};
|
|
1450
|
-
|
|
1451
|
-
Schema.register = function register(type, validator) {
|
|
1452
|
-
if (typeof validator !== 'function') {
|
|
1453
|
-
throw new Error('Cannot register a validator by type, validator is not a function');
|
|
1454
|
-
}
|
|
1455
|
-
_validator___WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"][type] = validator;
|
|
1456
|
-
};
|
|
1457
|
-
|
|
1458
|
-
Schema.messages = _messages__WEBPACK_IMPORTED_MODULE_4__[/* messages */ "a"];
|
|
1459
|
-
|
|
1460
|
-
/* harmony default export */ __webpack_exports__["default"] = (Schema);
|
|
1461
|
-
|
|
1462
|
-
/***/ }),
|
|
1463
|
-
|
|
1464
|
-
/***/ "a3de":
|
|
1465
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1466
|
-
|
|
1467
|
-
"use strict";
|
|
1468
|
-
/**
|
|
1469
|
-
* Copyright (c) 2015, Facebook, Inc.
|
|
1470
|
-
* All rights reserved.
|
|
1471
|
-
*
|
|
1472
|
-
* This source code is licensed under the BSD-style license found in the
|
|
1473
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
1474
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
1475
|
-
*
|
|
1476
|
-
* @providesModule ExecutionEnvironment
|
|
1477
|
-
*/
|
|
1478
|
-
|
|
1479
|
-
/*jslint evil: true */
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
var canUseDOM = !!(
|
|
1484
|
-
typeof window !== 'undefined' &&
|
|
1485
|
-
window.document &&
|
|
1486
|
-
window.document.createElement
|
|
1487
|
-
);
|
|
1488
|
-
|
|
1489
|
-
/**
|
|
1490
|
-
* Simple, lightweight module assisting with the detection and context of
|
|
1491
|
-
* Worker. Helps avoid circular dependencies and allows code to reason about
|
|
1492
|
-
* whether or not they are in a Worker, even if they never include the main
|
|
1493
|
-
* `ReactWorker` dependency.
|
|
1494
|
-
*/
|
|
1495
|
-
var ExecutionEnvironment = {
|
|
1496
|
-
|
|
1497
|
-
canUseDOM: canUseDOM,
|
|
1498
|
-
|
|
1499
|
-
canUseWorkers: typeof Worker !== 'undefined',
|
|
1500
|
-
|
|
1501
|
-
canUseEventListeners:
|
|
1502
|
-
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
1503
|
-
|
|
1504
|
-
canUseViewport: canUseDOM && !!window.screen,
|
|
1505
|
-
|
|
1506
|
-
isInWorker: !canUseDOM // For now, this is true - might change in the future.
|
|
1507
|
-
|
|
1508
|
-
};
|
|
1509
|
-
|
|
1510
|
-
module.exports = ExecutionEnvironment;
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
/***/ }),
|
|
1514
|
-
|
|
1515
|
-
/***/ "b9c7":
|
|
1516
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1517
|
-
|
|
1518
|
-
__webpack_require__("e507");
|
|
1519
|
-
module.exports = __webpack_require__("5524").Object.assign;
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
/***/ }),
|
|
1523
|
-
|
|
1524
|
-
/***/ "bc3a":
|
|
1525
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1526
|
-
|
|
1527
|
-
module.exports = __webpack_require__("cee4");
|
|
1528
|
-
|
|
1529
|
-
/***/ }),
|
|
1530
|
-
|
|
1531
|
-
/***/ "c098":
|
|
1532
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1533
|
-
|
|
1534
|
-
module.exports = __webpack_require__("d4af");
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
/***/ }),
|
|
1538
|
-
|
|
1539
|
-
/***/ "c8ba":
|
|
1540
|
-
/***/ (function(module, exports) {
|
|
1541
|
-
|
|
1542
|
-
var g;
|
|
1543
|
-
|
|
1544
|
-
// This works in non-strict mode
|
|
1545
|
-
g = (function() {
|
|
1546
|
-
return this;
|
|
1547
|
-
})();
|
|
1548
|
-
|
|
1549
|
-
try {
|
|
1550
|
-
// This works if eval is allowed (see CSP)
|
|
1551
|
-
g = g || new Function("return this")();
|
|
1552
|
-
} catch (e) {
|
|
1553
|
-
// This works if the window reference is available
|
|
1554
|
-
if (typeof window === "object") g = window;
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
|
-
// g can still be undefined, but nothing to do about it...
|
|
1558
|
-
// We return undefined, instead of nothing here, so it's
|
|
1559
|
-
// easier to handle this case. if(!global) { ...}
|
|
1560
|
-
|
|
1561
|
-
module.exports = g;
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
/***/ }),
|
|
1565
|
-
|
|
1566
|
-
/***/ "cee4":
|
|
1567
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1568
|
-
|
|
1569
|
-
"use strict";
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
var utils = __webpack_require__("c532");
|
|
1573
|
-
var bind = __webpack_require__("1d2b");
|
|
1574
|
-
var Axios = __webpack_require__("0a06");
|
|
1575
|
-
var mergeConfig = __webpack_require__("4a7b");
|
|
1576
|
-
var defaults = __webpack_require__("2444");
|
|
1577
|
-
|
|
1578
|
-
/**
|
|
1579
|
-
* Create an instance of Axios
|
|
1580
|
-
*
|
|
1581
|
-
* @param {Object} defaultConfig The default config for the instance
|
|
1582
|
-
* @return {Axios} A new instance of Axios
|
|
1583
|
-
*/
|
|
1584
|
-
function createInstance(defaultConfig) {
|
|
1585
|
-
var context = new Axios(defaultConfig);
|
|
1586
|
-
var instance = bind(Axios.prototype.request, context);
|
|
1587
|
-
|
|
1588
|
-
// Copy axios.prototype to instance
|
|
1589
|
-
utils.extend(instance, Axios.prototype, context);
|
|
1590
|
-
|
|
1591
|
-
// Copy context to instance
|
|
1592
|
-
utils.extend(instance, context);
|
|
1593
|
-
|
|
1594
|
-
return instance;
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
// Create the default instance to be exported
|
|
1598
|
-
var axios = createInstance(defaults);
|
|
1599
|
-
|
|
1600
|
-
// Expose Axios class to allow class inheritance
|
|
1601
|
-
axios.Axios = Axios;
|
|
1602
|
-
|
|
1603
|
-
// Factory for creating new instances
|
|
1604
|
-
axios.create = function create(instanceConfig) {
|
|
1605
|
-
return createInstance(mergeConfig(axios.defaults, instanceConfig));
|
|
1606
|
-
};
|
|
1607
|
-
|
|
1608
|
-
// Expose Cancel & CancelToken
|
|
1609
|
-
axios.Cancel = __webpack_require__("7a77");
|
|
1610
|
-
axios.CancelToken = __webpack_require__("8df4");
|
|
1611
|
-
axios.isCancel = __webpack_require__("2e67");
|
|
1612
|
-
|
|
1613
|
-
// Expose all/spread
|
|
1614
|
-
axios.all = function all(promises) {
|
|
1615
|
-
return Promise.all(promises);
|
|
1616
|
-
};
|
|
1617
|
-
axios.spread = __webpack_require__("0df6");
|
|
1618
|
-
|
|
1619
|
-
module.exports = axios;
|
|
1620
|
-
|
|
1621
|
-
// Allow use of default import syntax in TypeScript
|
|
1622
|
-
module.exports.default = axios;
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
/***/ }),
|
|
1626
|
-
|
|
1627
|
-
/***/ "d4af":
|
|
1628
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1629
|
-
|
|
1630
|
-
"use strict";
|
|
1631
|
-
/**
|
|
1632
|
-
* Copyright (c) 2015, Facebook, Inc.
|
|
1633
|
-
* All rights reserved.
|
|
1634
|
-
*
|
|
1635
|
-
* This source code is licensed under the BSD-style license found in the
|
|
1636
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
1637
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
1638
|
-
*
|
|
1639
|
-
* @providesModule normalizeWheel
|
|
1640
|
-
* @typechecks
|
|
1641
|
-
*/
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
var UserAgent_DEPRECATED = __webpack_require__("8eb7");
|
|
1646
|
-
|
|
1647
|
-
var isEventSupported = __webpack_require__("7b3e");
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
// Reasonable defaults
|
|
1651
|
-
var PIXEL_STEP = 10;
|
|
1652
|
-
var LINE_HEIGHT = 40;
|
|
1653
|
-
var PAGE_HEIGHT = 800;
|
|
1654
|
-
|
|
1655
|
-
/**
|
|
1656
|
-
* Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
|
|
1657
|
-
* complicated, thus this doc is long and (hopefully) detailed enough to answer
|
|
1658
|
-
* your questions.
|
|
1659
|
-
*
|
|
1660
|
-
* If you need to react to the mouse wheel in a predictable way, this code is
|
|
1661
|
-
* like your bestest friend. * hugs *
|
|
1662
|
-
*
|
|
1663
|
-
* As of today, there are 4 DOM event types you can listen to:
|
|
1664
|
-
*
|
|
1665
|
-
* 'wheel' -- Chrome(31+), FF(17+), IE(9+)
|
|
1666
|
-
* 'mousewheel' -- Chrome, IE(6+), Opera, Safari
|
|
1667
|
-
* 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
|
|
1668
|
-
* 'DOMMouseScroll' -- FF(0.9.7+) since 2003
|
|
1669
|
-
*
|
|
1670
|
-
* So what to do? The is the best:
|
|
1671
|
-
*
|
|
1672
|
-
* normalizeWheel.getEventType();
|
|
1673
|
-
*
|
|
1674
|
-
* In your event callback, use this code to get sane interpretation of the
|
|
1675
|
-
* deltas. This code will return an object with properties:
|
|
1676
|
-
*
|
|
1677
|
-
* spinX -- normalized spin speed (use for zoom) - x plane
|
|
1678
|
-
* spinY -- " - y plane
|
|
1679
|
-
* pixelX -- normalized distance (to pixels) - x plane
|
|
1680
|
-
* pixelY -- " - y plane
|
|
1681
|
-
*
|
|
1682
|
-
* Wheel values are provided by the browser assuming you are using the wheel to
|
|
1683
|
-
* scroll a web page by a number of lines or pixels (or pages). Values can vary
|
|
1684
|
-
* significantly on different platforms and browsers, forgetting that you can
|
|
1685
|
-
* scroll at different speeds. Some devices (like trackpads) emit more events
|
|
1686
|
-
* at smaller increments with fine granularity, and some emit massive jumps with
|
|
1687
|
-
* linear speed or acceleration.
|
|
1688
|
-
*
|
|
1689
|
-
* This code does its best to normalize the deltas for you:
|
|
1690
|
-
*
|
|
1691
|
-
* - spin is trying to normalize how far the wheel was spun (or trackpad
|
|
1692
|
-
* dragged). This is super useful for zoom support where you want to
|
|
1693
|
-
* throw away the chunky scroll steps on the PC and make those equal to
|
|
1694
|
-
* the slow and smooth tiny steps on the Mac. Key data: This code tries to
|
|
1695
|
-
* resolve a single slow step on a wheel to 1.
|
|
1696
|
-
*
|
|
1697
|
-
* - pixel is normalizing the desired scroll delta in pixel units. You'll
|
|
1698
|
-
* get the crazy differences between browsers, but at least it'll be in
|
|
1699
|
-
* pixels!
|
|
1700
|
-
*
|
|
1701
|
-
* - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
|
|
1702
|
-
* should translate to positive value zooming IN, negative zooming OUT.
|
|
1703
|
-
* This matches the newer 'wheel' event.
|
|
1704
|
-
*
|
|
1705
|
-
* Why are there spinX, spinY (or pixels)?
|
|
1706
|
-
*
|
|
1707
|
-
* - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
|
|
1708
|
-
* with a mouse. It results in side-scrolling in the browser by default.
|
|
1709
|
-
*
|
|
1710
|
-
* - spinY is what you expect -- it's the classic axis of a mouse wheel.
|
|
1711
|
-
*
|
|
1712
|
-
* - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
|
|
1713
|
-
* probably is by browsers in conjunction with fancy 3D controllers .. but
|
|
1714
|
-
* you know.
|
|
1715
|
-
*
|
|
1716
|
-
* Implementation info:
|
|
1717
|
-
*
|
|
1718
|
-
* Examples of 'wheel' event if you scroll slowly (down) by one step with an
|
|
1719
|
-
* average mouse:
|
|
1720
|
-
*
|
|
1721
|
-
* OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
|
|
1722
|
-
* OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
|
|
1723
|
-
* OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
|
|
1724
|
-
* Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
|
|
1725
|
-
* Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
|
|
1726
|
-
*
|
|
1727
|
-
* On the trackpad:
|
|
1728
|
-
*
|
|
1729
|
-
* OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
|
|
1730
|
-
* OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
|
|
1731
|
-
*
|
|
1732
|
-
* On other/older browsers.. it's more complicated as there can be multiple and
|
|
1733
|
-
* also missing delta values.
|
|
1734
|
-
*
|
|
1735
|
-
* The 'wheel' event is more standard:
|
|
1736
|
-
*
|
|
1737
|
-
* http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
|
|
1738
|
-
*
|
|
1739
|
-
* The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
|
|
1740
|
-
* deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
|
|
1741
|
-
* backward compatibility with older events. Those other values help us
|
|
1742
|
-
* better normalize spin speed. Example of what the browsers provide:
|
|
1743
|
-
*
|
|
1744
|
-
* | event.wheelDelta | event.detail
|
|
1745
|
-
* ------------------+------------------+--------------
|
|
1746
|
-
* Safari v5/OS X | -120 | 0
|
|
1747
|
-
* Safari v5/Win7 | -120 | 0
|
|
1748
|
-
* Chrome v17/OS X | -120 | 0
|
|
1749
|
-
* Chrome v17/Win7 | -120 | 0
|
|
1750
|
-
* IE9/Win7 | -120 | undefined
|
|
1751
|
-
* Firefox v4/OS X | undefined | 1
|
|
1752
|
-
* Firefox v4/Win7 | undefined | 3
|
|
1753
|
-
*
|
|
1754
|
-
*/
|
|
1755
|
-
function normalizeWheel(/*object*/ event) /*object*/ {
|
|
1756
|
-
var sX = 0, sY = 0, // spinX, spinY
|
|
1757
|
-
pX = 0, pY = 0; // pixelX, pixelY
|
|
1758
|
-
|
|
1759
|
-
// Legacy
|
|
1760
|
-
if ('detail' in event) { sY = event.detail; }
|
|
1761
|
-
if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
|
|
1762
|
-
if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
|
|
1763
|
-
if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
|
|
1764
|
-
|
|
1765
|
-
// side scrolling on FF with DOMMouseScroll
|
|
1766
|
-
if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
|
|
1767
|
-
sX = sY;
|
|
1768
|
-
sY = 0;
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1771
|
-
pX = sX * PIXEL_STEP;
|
|
1772
|
-
pY = sY * PIXEL_STEP;
|
|
1773
|
-
|
|
1774
|
-
if ('deltaY' in event) { pY = event.deltaY; }
|
|
1775
|
-
if ('deltaX' in event) { pX = event.deltaX; }
|
|
1776
|
-
|
|
1777
|
-
if ((pX || pY) && event.deltaMode) {
|
|
1778
|
-
if (event.deltaMode == 1) { // delta in LINE units
|
|
1779
|
-
pX *= LINE_HEIGHT;
|
|
1780
|
-
pY *= LINE_HEIGHT;
|
|
1781
|
-
} else { // delta in PAGE units
|
|
1782
|
-
pX *= PAGE_HEIGHT;
|
|
1783
|
-
pY *= PAGE_HEIGHT;
|
|
1784
|
-
}
|
|
1785
|
-
}
|
|
1786
|
-
|
|
1787
|
-
// Fall-back if spin cannot be determined
|
|
1788
|
-
if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
|
|
1789
|
-
if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
|
|
1790
|
-
|
|
1791
|
-
return { spinX : sX,
|
|
1792
|
-
spinY : sY,
|
|
1793
|
-
pixelX : pX,
|
|
1794
|
-
pixelY : pY };
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
/**
|
|
1799
|
-
* The best combination if you prefer spinX + spinY normalization. It favors
|
|
1800
|
-
* the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
|
|
1801
|
-
* 'wheel' event, making spin speed determination impossible.
|
|
1802
|
-
*/
|
|
1803
|
-
normalizeWheel.getEventType = function() /*string*/ {
|
|
1804
|
-
return (UserAgent_DEPRECATED.firefox())
|
|
1805
|
-
? 'DOMMouseScroll'
|
|
1806
|
-
: (isEventSupported('wheel'))
|
|
1807
|
-
? 'wheel'
|
|
1808
|
-
: 'mousewheel';
|
|
1809
|
-
};
|
|
1810
|
-
|
|
1811
|
-
module.exports = normalizeWheel;
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
/***/ }),
|
|
1815
|
-
|
|
1816
|
-
/***/ "df7c":
|
|
1817
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1818
|
-
|
|
1819
|
-
/* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
|
|
1820
|
-
// backported and transplited with Babel, with backwards-compat fixes
|
|
1821
|
-
|
|
1822
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
1823
|
-
//
|
|
1824
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
1825
|
-
// copy of this software and associated documentation files (the
|
|
1826
|
-
// "Software"), to deal in the Software without restriction, including
|
|
1827
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
1828
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
1829
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
1830
|
-
// following conditions:
|
|
1831
|
-
//
|
|
1832
|
-
// The above copyright notice and this permission notice shall be included
|
|
1833
|
-
// in all copies or substantial portions of the Software.
|
|
1834
|
-
//
|
|
1835
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
1836
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
1837
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
1838
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
1839
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
1840
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
1841
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1842
|
-
|
|
1843
|
-
// resolves . and .. elements in a path array with directory names there
|
|
1844
|
-
// must be no slashes, empty elements, or device names (c:\) in the array
|
|
1845
|
-
// (so also no leading and trailing slashes - it does not distinguish
|
|
1846
|
-
// relative and absolute paths)
|
|
1847
|
-
function normalizeArray(parts, allowAboveRoot) {
|
|
1848
|
-
// if the path tries to go above the root, `up` ends up > 0
|
|
1849
|
-
var up = 0;
|
|
1850
|
-
for (var i = parts.length - 1; i >= 0; i--) {
|
|
1851
|
-
var last = parts[i];
|
|
1852
|
-
if (last === '.') {
|
|
1853
|
-
parts.splice(i, 1);
|
|
1854
|
-
} else if (last === '..') {
|
|
1855
|
-
parts.splice(i, 1);
|
|
1856
|
-
up++;
|
|
1857
|
-
} else if (up) {
|
|
1858
|
-
parts.splice(i, 1);
|
|
1859
|
-
up--;
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
// if the path is allowed to go above the root, restore leading ..s
|
|
1864
|
-
if (allowAboveRoot) {
|
|
1865
|
-
for (; up--; up) {
|
|
1866
|
-
parts.unshift('..');
|
|
1867
|
-
}
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
return parts;
|
|
1871
|
-
}
|
|
1872
|
-
|
|
1873
|
-
// path.resolve([from ...], to)
|
|
1874
|
-
// posix version
|
|
1875
|
-
exports.resolve = function() {
|
|
1876
|
-
var resolvedPath = '',
|
|
1877
|
-
resolvedAbsolute = false;
|
|
1878
|
-
|
|
1879
|
-
for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
|
1880
|
-
var path = (i >= 0) ? arguments[i] : process.cwd();
|
|
1881
|
-
|
|
1882
|
-
// Skip empty and invalid entries
|
|
1883
|
-
if (typeof path !== 'string') {
|
|
1884
|
-
throw new TypeError('Arguments to path.resolve must be strings');
|
|
1885
|
-
} else if (!path) {
|
|
1886
|
-
continue;
|
|
1887
|
-
}
|
|
1888
|
-
|
|
1889
|
-
resolvedPath = path + '/' + resolvedPath;
|
|
1890
|
-
resolvedAbsolute = path.charAt(0) === '/';
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1893
|
-
// At this point the path should be resolved to a full absolute path, but
|
|
1894
|
-
// handle relative paths to be safe (might happen when process.cwd() fails)
|
|
1895
|
-
|
|
1896
|
-
// Normalize the path
|
|
1897
|
-
resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
|
|
1898
|
-
return !!p;
|
|
1899
|
-
}), !resolvedAbsolute).join('/');
|
|
1900
|
-
|
|
1901
|
-
return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
|
|
1902
|
-
};
|
|
1903
|
-
|
|
1904
|
-
// path.normalize(path)
|
|
1905
|
-
// posix version
|
|
1906
|
-
exports.normalize = function(path) {
|
|
1907
|
-
var isAbsolute = exports.isAbsolute(path),
|
|
1908
|
-
trailingSlash = substr(path, -1) === '/';
|
|
1909
|
-
|
|
1910
|
-
// Normalize the path
|
|
1911
|
-
path = normalizeArray(filter(path.split('/'), function(p) {
|
|
1912
|
-
return !!p;
|
|
1913
|
-
}), !isAbsolute).join('/');
|
|
1914
|
-
|
|
1915
|
-
if (!path && !isAbsolute) {
|
|
1916
|
-
path = '.';
|
|
1917
|
-
}
|
|
1918
|
-
if (path && trailingSlash) {
|
|
1919
|
-
path += '/';
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
|
-
return (isAbsolute ? '/' : '') + path;
|
|
1923
|
-
};
|
|
1924
|
-
|
|
1925
|
-
// posix version
|
|
1926
|
-
exports.isAbsolute = function(path) {
|
|
1927
|
-
return path.charAt(0) === '/';
|
|
1928
|
-
};
|
|
1929
|
-
|
|
1930
|
-
// posix version
|
|
1931
|
-
exports.join = function() {
|
|
1932
|
-
var paths = Array.prototype.slice.call(arguments, 0);
|
|
1933
|
-
return exports.normalize(filter(paths, function(p, index) {
|
|
1934
|
-
if (typeof p !== 'string') {
|
|
1935
|
-
throw new TypeError('Arguments to path.join must be strings');
|
|
1936
|
-
}
|
|
1937
|
-
return p;
|
|
1938
|
-
}).join('/'));
|
|
1939
|
-
};
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
// path.relative(from, to)
|
|
1943
|
-
// posix version
|
|
1944
|
-
exports.relative = function(from, to) {
|
|
1945
|
-
from = exports.resolve(from).substr(1);
|
|
1946
|
-
to = exports.resolve(to).substr(1);
|
|
1947
|
-
|
|
1948
|
-
function trim(arr) {
|
|
1949
|
-
var start = 0;
|
|
1950
|
-
for (; start < arr.length; start++) {
|
|
1951
|
-
if (arr[start] !== '') break;
|
|
1952
|
-
}
|
|
1953
|
-
|
|
1954
|
-
var end = arr.length - 1;
|
|
1955
|
-
for (; end >= 0; end--) {
|
|
1956
|
-
if (arr[end] !== '') break;
|
|
1957
|
-
}
|
|
1958
|
-
|
|
1959
|
-
if (start > end) return [];
|
|
1960
|
-
return arr.slice(start, end - start + 1);
|
|
1961
|
-
}
|
|
1962
|
-
|
|
1963
|
-
var fromParts = trim(from.split('/'));
|
|
1964
|
-
var toParts = trim(to.split('/'));
|
|
1965
|
-
|
|
1966
|
-
var length = Math.min(fromParts.length, toParts.length);
|
|
1967
|
-
var samePartsLength = length;
|
|
1968
|
-
for (var i = 0; i < length; i++) {
|
|
1969
|
-
if (fromParts[i] !== toParts[i]) {
|
|
1970
|
-
samePartsLength = i;
|
|
1971
|
-
break;
|
|
1972
|
-
}
|
|
1973
|
-
}
|
|
1974
|
-
|
|
1975
|
-
var outputParts = [];
|
|
1976
|
-
for (var i = samePartsLength; i < fromParts.length; i++) {
|
|
1977
|
-
outputParts.push('..');
|
|
1978
|
-
}
|
|
1979
|
-
|
|
1980
|
-
outputParts = outputParts.concat(toParts.slice(samePartsLength));
|
|
1981
|
-
|
|
1982
|
-
return outputParts.join('/');
|
|
1983
|
-
};
|
|
1984
|
-
|
|
1985
|
-
exports.sep = '/';
|
|
1986
|
-
exports.delimiter = ':';
|
|
1987
|
-
|
|
1988
|
-
exports.dirname = function (path) {
|
|
1989
|
-
if (typeof path !== 'string') path = path + '';
|
|
1990
|
-
if (path.length === 0) return '.';
|
|
1991
|
-
var code = path.charCodeAt(0);
|
|
1992
|
-
var hasRoot = code === 47 /*/*/;
|
|
1993
|
-
var end = -1;
|
|
1994
|
-
var matchedSlash = true;
|
|
1995
|
-
for (var i = path.length - 1; i >= 1; --i) {
|
|
1996
|
-
code = path.charCodeAt(i);
|
|
1997
|
-
if (code === 47 /*/*/) {
|
|
1998
|
-
if (!matchedSlash) {
|
|
1999
|
-
end = i;
|
|
2000
|
-
break;
|
|
2001
|
-
}
|
|
2002
|
-
} else {
|
|
2003
|
-
// We saw the first non-path separator
|
|
2004
|
-
matchedSlash = false;
|
|
2005
|
-
}
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2008
|
-
if (end === -1) return hasRoot ? '/' : '.';
|
|
2009
|
-
if (hasRoot && end === 1) {
|
|
2010
|
-
// return '//';
|
|
2011
|
-
// Backwards-compat fix:
|
|
2012
|
-
return '/';
|
|
2013
|
-
}
|
|
2014
|
-
return path.slice(0, end);
|
|
2015
|
-
};
|
|
2016
|
-
|
|
2017
|
-
function basename(path) {
|
|
2018
|
-
if (typeof path !== 'string') path = path + '';
|
|
2019
|
-
|
|
2020
|
-
var start = 0;
|
|
2021
|
-
var end = -1;
|
|
2022
|
-
var matchedSlash = true;
|
|
2023
|
-
var i;
|
|
2024
|
-
|
|
2025
|
-
for (i = path.length - 1; i >= 0; --i) {
|
|
2026
|
-
if (path.charCodeAt(i) === 47 /*/*/) {
|
|
2027
|
-
// If we reached a path separator that was not part of a set of path
|
|
2028
|
-
// separators at the end of the string, stop now
|
|
2029
|
-
if (!matchedSlash) {
|
|
2030
|
-
start = i + 1;
|
|
2031
|
-
break;
|
|
2032
|
-
}
|
|
2033
|
-
} else if (end === -1) {
|
|
2034
|
-
// We saw the first non-path separator, mark this as the end of our
|
|
2035
|
-
// path component
|
|
2036
|
-
matchedSlash = false;
|
|
2037
|
-
end = i + 1;
|
|
2038
|
-
}
|
|
2039
|
-
}
|
|
2040
|
-
|
|
2041
|
-
if (end === -1) return '';
|
|
2042
|
-
return path.slice(start, end);
|
|
2043
|
-
}
|
|
2044
|
-
|
|
2045
|
-
// Uses a mixed approach for backwards-compatibility, as ext behavior changed
|
|
2046
|
-
// in new Node.js versions, so only basename() above is backported here
|
|
2047
|
-
exports.basename = function (path, ext) {
|
|
2048
|
-
var f = basename(path);
|
|
2049
|
-
if (ext && f.substr(-1 * ext.length) === ext) {
|
|
2050
|
-
f = f.substr(0, f.length - ext.length);
|
|
2051
|
-
}
|
|
2052
|
-
return f;
|
|
2053
|
-
};
|
|
2054
|
-
|
|
2055
|
-
exports.extname = function (path) {
|
|
2056
|
-
if (typeof path !== 'string') path = path + '';
|
|
2057
|
-
var startDot = -1;
|
|
2058
|
-
var startPart = 0;
|
|
2059
|
-
var end = -1;
|
|
2060
|
-
var matchedSlash = true;
|
|
2061
|
-
// Track the state of characters (if any) we see before our first dot and
|
|
2062
|
-
// after any path separator we find
|
|
2063
|
-
var preDotState = 0;
|
|
2064
|
-
for (var i = path.length - 1; i >= 0; --i) {
|
|
2065
|
-
var code = path.charCodeAt(i);
|
|
2066
|
-
if (code === 47 /*/*/) {
|
|
2067
|
-
// If we reached a path separator that was not part of a set of path
|
|
2068
|
-
// separators at the end of the string, stop now
|
|
2069
|
-
if (!matchedSlash) {
|
|
2070
|
-
startPart = i + 1;
|
|
2071
|
-
break;
|
|
2072
|
-
}
|
|
2073
|
-
continue;
|
|
2074
|
-
}
|
|
2075
|
-
if (end === -1) {
|
|
2076
|
-
// We saw the first non-path separator, mark this as the end of our
|
|
2077
|
-
// extension
|
|
2078
|
-
matchedSlash = false;
|
|
2079
|
-
end = i + 1;
|
|
2080
|
-
}
|
|
2081
|
-
if (code === 46 /*.*/) {
|
|
2082
|
-
// If this is our first dot, mark it as the start of our extension
|
|
2083
|
-
if (startDot === -1)
|
|
2084
|
-
startDot = i;
|
|
2085
|
-
else if (preDotState !== 1)
|
|
2086
|
-
preDotState = 1;
|
|
2087
|
-
} else if (startDot !== -1) {
|
|
2088
|
-
// We saw a non-dot and non-path separator before our dot, so we should
|
|
2089
|
-
// have a good chance at having a non-empty extension
|
|
2090
|
-
preDotState = -1;
|
|
2091
|
-
}
|
|
2092
|
-
}
|
|
2093
|
-
|
|
2094
|
-
if (startDot === -1 || end === -1 ||
|
|
2095
|
-
// We saw a non-dot character immediately before the dot
|
|
2096
|
-
preDotState === 0 ||
|
|
2097
|
-
// The (right-most) trimmed path component is exactly '..'
|
|
2098
|
-
preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
|
|
2099
|
-
return '';
|
|
2100
|
-
}
|
|
2101
|
-
return path.slice(startDot, end);
|
|
2102
|
-
};
|
|
2103
|
-
|
|
2104
|
-
function filter (xs, f) {
|
|
2105
|
-
if (xs.filter) return xs.filter(f);
|
|
2106
|
-
var res = [];
|
|
2107
|
-
for (var i = 0; i < xs.length; i++) {
|
|
2108
|
-
if (f(xs[i], i, xs)) res.push(xs[i]);
|
|
2109
|
-
}
|
|
2110
|
-
return res;
|
|
2111
|
-
}
|
|
2112
|
-
|
|
2113
|
-
// String.prototype.substr - negative index don't work in IE8
|
|
2114
|
-
var substr = 'ab'.substr(-1) === 'b'
|
|
2115
|
-
? function (str, start, len) { return str.substr(start, len) }
|
|
2116
|
-
: function (str, start, len) {
|
|
2117
|
-
if (start < 0) start = str.length + start;
|
|
2118
|
-
return str.substr(start, len);
|
|
2119
|
-
}
|
|
2120
|
-
;
|
|
2121
|
-
|
|
2122
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362")))
|
|
2123
|
-
|
|
2124
|
-
/***/ }),
|
|
2125
|
-
|
|
2126
|
-
/***/ "e507":
|
|
2127
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2128
|
-
|
|
2129
|
-
// 19.1.3.1 Object.assign(target, source)
|
|
2130
|
-
var $export = __webpack_require__("512c");
|
|
2131
|
-
|
|
2132
|
-
$export($export.S + $export.F, 'Object', { assign: __webpack_require__("072d") });
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
/***/ }),
|
|
2136
|
-
|
|
2137
|
-
/***/ "ef08":
|
|
2138
|
-
/***/ (function(module, exports) {
|
|
2139
|
-
|
|
2140
|
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
2141
|
-
var global = module.exports = typeof window != 'undefined' && window.Math == Math
|
|
2142
|
-
? window : typeof self != 'undefined' && self.Math == Math ? self
|
|
2143
|
-
// eslint-disable-next-line no-new-func
|
|
2144
|
-
: Function('return this')();
|
|
2145
|
-
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
/***/ }),
|
|
2149
|
-
|
|
2150
|
-
/***/ "faf5":
|
|
2151
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2152
|
-
|
|
2153
|
-
module.exports = !__webpack_require__("0bad") && !__webpack_require__("4b8b")(function () {
|
|
2154
|
-
return Object.defineProperty(__webpack_require__("05f5")('div'), 'a', { get: function () { return 7; } }).a != 7;
|
|
2155
|
-
});
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
/***/ }),
|
|
2159
|
-
|
|
2160
|
-
/***/ "fb15":
|
|
2161
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2162
|
-
|
|
2163
|
-
"use strict";
|
|
2164
|
-
// ESM COMPAT FLAG
|
|
2165
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2166
|
-
|
|
2167
|
-
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
2168
|
-
// This file is imported into lib/wc client bundles.
|
|
2169
|
-
|
|
2170
|
-
if (typeof window !== 'undefined') {
|
|
2171
|
-
var currentScript = window.document.currentScript
|
|
2172
|
-
if (true) {
|
|
2173
|
-
var getCurrentScript = __webpack_require__("8875")
|
|
2174
|
-
currentScript = getCurrentScript()
|
|
2175
|
-
|
|
2176
|
-
// for backward compatibility, because previously we directly included the polyfill
|
|
2177
|
-
if (!('currentScript' in document)) {
|
|
2178
|
-
Object.defineProperty(document, 'currentScript', { get: getCurrentScript })
|
|
2179
|
-
}
|
|
2180
|
-
}
|
|
2181
|
-
|
|
2182
|
-
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
2183
|
-
if (src) {
|
|
2184
|
-
__webpack_require__.p = src[1] // eslint-disable-line
|
|
2185
|
-
}
|
|
2186
|
-
}
|
|
2187
|
-
|
|
2188
|
-
// Indicate to webpack that this file can be concatenated
|
|
2189
|
-
/* harmony default export */ var setPublicPath = (null);
|
|
2190
|
-
|
|
2191
|
-
// EXTERNAL MODULE: ./packages/index.js + 180 modules
|
|
2192
|
-
var packages_0 = __webpack_require__("3a0d");
|
|
2193
|
-
|
|
2194
|
-
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (packages_0["a" /* default */]);
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
/***/ })
|
|
2202
|
-
|
|
2203
|
-
}]);
|