workflow-editor 0.9.83-dwtmp1 → 0.9.84-dw-tmp1
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/css/workflow-editor.common~247b300f.28fbd3a3.css +1 -0
- package/lib/css/workflow-editor.common~62bcfb54.c1b3ecc5.css +1 -0
- package/lib/css/workflow-editor.common~95b80cda.16e04122.css +1 -0
- package/lib/css/workflow-editor.common~e19cd708.68e04fb4.css +1 -0
- package/lib/css/workflow-editor.umd.min~247b300f.28fbd3a3.css +1 -0
- package/lib/css/workflow-editor.umd.min~62bcfb54.c1b3ecc5.css +1 -0
- package/lib/css/workflow-editor.umd.min~95b80cda.16e04122.css +1 -0
- package/lib/css/workflow-editor.umd.min~e19cd708.68e04fb4.css +1 -0
- package/lib/css/workflow-editor.umd~247b300f.28fbd3a3.css +1 -0
- package/lib/css/workflow-editor.umd~62bcfb54.c1b3ecc5.css +1 -0
- package/lib/css/workflow-editor.umd~95b80cda.16e04122.css +1 -0
- package/lib/css/workflow-editor.umd~e19cd708.68e04fb4.css +1 -0
- package/lib/css/yarn.prismjs~0bd0e877.9093a967.css +1 -0
- package/lib/workflow-editor.common.vendors~workflow-editor.common~253ae210.js +4136 -0
- package/lib/workflow-editor.common.workflow-editor.common~0b5ad61a.js +1022 -0
- package/lib/workflow-editor.common.workflow-editor.common~247b300f.js +1948 -0
- package/lib/workflow-editor.common.workflow-editor.common~62bcfb54.js +14764 -0
- package/lib/workflow-editor.common.workflow-editor.common~95b80cda.js +3300 -0
- package/lib/workflow-editor.common.workflow-editor.common~e19cd708.js +1585 -0
- package/lib/workflow-editor.common.workflow-editor.common~e2e93592.js +1293 -0
- package/lib/workflow-editor.common.yarn.async-validator~7864cd12.js +1223 -0
- package/lib/workflow-editor.common.yarn.buffer~7e5e8261.js +1801 -0
- package/lib/workflow-editor.common.yarn.core-js~2b13b260.js +5078 -0
- package/lib/workflow-editor.common.yarn.imatrix-ui~f5767151.js +2256 -0
- package/lib/workflow-editor.common.yarn.prismjs~0bd0e877.js +2028 -0
- package/lib/workflow-editor.common.yarn.readable-stream~2b6d3a99.js +2435 -0
- package/lib/workflow-editor.common.yarn.sax~95191fae.js +1576 -0
- package/lib/workflow-editor.common.yarn.vue-i18n~02576867.js +2259 -0
- package/lib/workflow-editor.umd.min.js +1 -39
- package/lib/workflow-editor.umd.min.vendors~workflow-editor.umd.min~253ae210.js +12 -0
- package/lib/workflow-editor.umd.min.workflow-editor.umd.min~0b5ad61a.js +1 -0
- package/lib/workflow-editor.umd.min.workflow-editor.umd.min~247b300f.js +1 -0
- package/lib/workflow-editor.umd.min.workflow-editor.umd.min~62bcfb54.js +1 -0
- package/lib/workflow-editor.umd.min.workflow-editor.umd.min~95b80cda.js +1 -0
- package/lib/workflow-editor.umd.min.workflow-editor.umd.min~e19cd708.js +1 -0
- package/lib/workflow-editor.umd.min.workflow-editor.umd.min~e2e93592.js +1 -0
- package/lib/workflow-editor.umd.min.yarn.async-validator~7864cd12.js +1 -0
- package/lib/workflow-editor.umd.min.yarn.buffer~7e5e8261.js +8 -0
- package/lib/workflow-editor.umd.min.yarn.core-js~2b13b260.js +1 -0
- package/lib/workflow-editor.umd.min.yarn.imatrix-ui~f5767151.js +1 -0
- package/lib/workflow-editor.umd.min.yarn.prismjs~0bd0e877.js +9 -0
- package/lib/workflow-editor.umd.min.yarn.readable-stream~2b6d3a99.js +1 -0
- package/lib/workflow-editor.umd.min.yarn.sax~95191fae.js +2 -0
- package/lib/workflow-editor.umd.min.yarn.vue-i18n~02576867.js +6 -0
- package/lib/workflow-editor.umd.vendors~workflow-editor.umd~253ae210.js +4136 -0
- package/lib/workflow-editor.umd.workflow-editor.umd~0b5ad61a.js +1032 -0
- package/lib/workflow-editor.umd.workflow-editor.umd~247b300f.js +1948 -0
- package/lib/workflow-editor.umd.workflow-editor.umd~62bcfb54.js +14764 -0
- package/lib/workflow-editor.umd.workflow-editor.umd~95b80cda.js +3300 -0
- package/lib/workflow-editor.umd.workflow-editor.umd~e19cd708.js +1585 -0
- package/lib/workflow-editor.umd.workflow-editor.umd~e2e93592.js +1293 -0
- package/lib/workflow-editor.umd.yarn.async-validator~7864cd12.js +1223 -0
- package/lib/workflow-editor.umd.yarn.buffer~7e5e8261.js +1801 -0
- package/lib/workflow-editor.umd.yarn.core-js~2b13b260.js +5078 -0
- package/lib/workflow-editor.umd.yarn.imatrix-ui~f5767151.js +2256 -0
- package/lib/workflow-editor.umd.yarn.prismjs~0bd0e877.js +2028 -0
- package/lib/workflow-editor.umd.yarn.readable-stream~2b6d3a99.js +2435 -0
- package/lib/workflow-editor.umd.yarn.sax~95191fae.js +1576 -0
- package/lib/workflow-editor.umd.yarn.vue-i18n~02576867.js +2259 -0
- package/package.json +2 -2
- package/lib/workflow-editor.css +0 -1
|
@@ -0,0 +1,4136 @@
|
|
|
1
|
+
((typeof self !== 'undefined' ? self : this)["webpackJsonpworkflow_editor"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpworkflow_editor"] || []).push([[1],{
|
|
2
|
+
|
|
3
|
+
/***/ "078a":
|
|
4
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5
|
+
|
|
6
|
+
var helper = __webpack_require__("96c1");
|
|
7
|
+
var xml2js = __webpack_require__("844f");
|
|
8
|
+
|
|
9
|
+
function validateOptions (userOptions) {
|
|
10
|
+
var options = helper.copyOptions(userOptions);
|
|
11
|
+
helper.ensureSpacesExists(options);
|
|
12
|
+
return options;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
module.exports = function(xml, userOptions) {
|
|
16
|
+
var options, js, json, parentKey;
|
|
17
|
+
options = validateOptions(userOptions);
|
|
18
|
+
js = xml2js(xml, options);
|
|
19
|
+
parentKey = 'compact' in options && options.compact ? '_parent' : 'parent';
|
|
20
|
+
// parentKey = ptions.compact ? '_parent' : 'parent'; // consider this
|
|
21
|
+
if ('addParent' in options && options.addParent) {
|
|
22
|
+
json = JSON.stringify(js, function (k, v) { return k === parentKey? '_' : v; }, options.spaces);
|
|
23
|
+
} else {
|
|
24
|
+
json = JSON.stringify(js, null, options.spaces);
|
|
25
|
+
}
|
|
26
|
+
return json.replace(/\u2028/g, '\\u2028').replace(/\u2029/g, '\\u2029');
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
/***/ }),
|
|
31
|
+
|
|
32
|
+
/***/ "1098":
|
|
33
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
34
|
+
|
|
35
|
+
"use strict";
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
exports.__esModule = true;
|
|
39
|
+
|
|
40
|
+
var _iterator = __webpack_require__("17ed");
|
|
41
|
+
|
|
42
|
+
var _iterator2 = _interopRequireDefault(_iterator);
|
|
43
|
+
|
|
44
|
+
var _symbol = __webpack_require__("f893");
|
|
45
|
+
|
|
46
|
+
var _symbol2 = _interopRequireDefault(_symbol);
|
|
47
|
+
|
|
48
|
+
var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
|
|
49
|
+
|
|
50
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
51
|
+
|
|
52
|
+
exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
|
|
53
|
+
return typeof obj === "undefined" ? "undefined" : _typeof(obj);
|
|
54
|
+
} : function (obj) {
|
|
55
|
+
return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/***/ }),
|
|
59
|
+
|
|
60
|
+
/***/ "11a6":
|
|
61
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
62
|
+
|
|
63
|
+
"use strict";
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
exports.__esModule = true;
|
|
67
|
+
exports.default = {
|
|
68
|
+
el: {
|
|
69
|
+
colorpicker: {
|
|
70
|
+
confirm: '确定',
|
|
71
|
+
clear: '清空'
|
|
72
|
+
},
|
|
73
|
+
datepicker: {
|
|
74
|
+
now: '此刻',
|
|
75
|
+
today: '今天',
|
|
76
|
+
cancel: '取消',
|
|
77
|
+
clear: '清空',
|
|
78
|
+
confirm: '确认',
|
|
79
|
+
selectDate: '选择日期',
|
|
80
|
+
selectTime: '选择时间',
|
|
81
|
+
startDate: '开始日期',
|
|
82
|
+
startTime: '开始时间',
|
|
83
|
+
endDate: '结束日期',
|
|
84
|
+
endTime: '结束时间',
|
|
85
|
+
prevYear: '前一年',
|
|
86
|
+
nextYear: '后一年',
|
|
87
|
+
prevMonth: '上个月',
|
|
88
|
+
nextMonth: '下个月',
|
|
89
|
+
year: '年',
|
|
90
|
+
month1: '1月',
|
|
91
|
+
month2: '2月',
|
|
92
|
+
month3: '3月',
|
|
93
|
+
month4: '4月',
|
|
94
|
+
month5: '5月',
|
|
95
|
+
month6: '6月',
|
|
96
|
+
month7: '7月',
|
|
97
|
+
month8: '8月',
|
|
98
|
+
month9: '9月',
|
|
99
|
+
month10: '10月',
|
|
100
|
+
month11: '11月',
|
|
101
|
+
month12: '12月',
|
|
102
|
+
// week: '周次',
|
|
103
|
+
weeks: {
|
|
104
|
+
sun: '日',
|
|
105
|
+
mon: '一',
|
|
106
|
+
tue: '二',
|
|
107
|
+
wed: '三',
|
|
108
|
+
thu: '四',
|
|
109
|
+
fri: '五',
|
|
110
|
+
sat: '六'
|
|
111
|
+
},
|
|
112
|
+
months: {
|
|
113
|
+
jan: '一月',
|
|
114
|
+
feb: '二月',
|
|
115
|
+
mar: '三月',
|
|
116
|
+
apr: '四月',
|
|
117
|
+
may: '五月',
|
|
118
|
+
jun: '六月',
|
|
119
|
+
jul: '七月',
|
|
120
|
+
aug: '八月',
|
|
121
|
+
sep: '九月',
|
|
122
|
+
oct: '十月',
|
|
123
|
+
nov: '十一月',
|
|
124
|
+
dec: '十二月'
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
select: {
|
|
128
|
+
loading: '加载中',
|
|
129
|
+
noMatch: '无匹配数据',
|
|
130
|
+
noData: '无数据',
|
|
131
|
+
placeholder: '请选择'
|
|
132
|
+
},
|
|
133
|
+
cascader: {
|
|
134
|
+
noMatch: '无匹配数据',
|
|
135
|
+
loading: '加载中',
|
|
136
|
+
placeholder: '请选择',
|
|
137
|
+
noData: '暂无数据'
|
|
138
|
+
},
|
|
139
|
+
pagination: {
|
|
140
|
+
goto: '前往',
|
|
141
|
+
pagesize: '条/页',
|
|
142
|
+
total: '共 {total} 条',
|
|
143
|
+
pageClassifier: '页'
|
|
144
|
+
},
|
|
145
|
+
messagebox: {
|
|
146
|
+
title: '提示',
|
|
147
|
+
confirm: '确定',
|
|
148
|
+
cancel: '取消',
|
|
149
|
+
error: '输入的数据不合法!'
|
|
150
|
+
},
|
|
151
|
+
upload: {
|
|
152
|
+
deleteTip: '按 delete 键可删除',
|
|
153
|
+
delete: '删除',
|
|
154
|
+
preview: '查看图片',
|
|
155
|
+
continue: '继续上传'
|
|
156
|
+
},
|
|
157
|
+
table: {
|
|
158
|
+
emptyText: '暂无数据',
|
|
159
|
+
confirmFilter: '筛选',
|
|
160
|
+
resetFilter: '重置',
|
|
161
|
+
clearFilter: '全部',
|
|
162
|
+
sumText: '合计'
|
|
163
|
+
},
|
|
164
|
+
tree: {
|
|
165
|
+
emptyText: '暂无数据'
|
|
166
|
+
},
|
|
167
|
+
transfer: {
|
|
168
|
+
noMatch: '无匹配数据',
|
|
169
|
+
noData: '无数据',
|
|
170
|
+
titles: ['列表 1', '列表 2'],
|
|
171
|
+
filterPlaceholder: '请输入搜索内容',
|
|
172
|
+
noCheckedFormat: '共 {total} 项',
|
|
173
|
+
hasCheckedFormat: '已选 {checked}/{total} 项'
|
|
174
|
+
},
|
|
175
|
+
image: {
|
|
176
|
+
error: '加载失败'
|
|
177
|
+
},
|
|
178
|
+
pageHeader: {
|
|
179
|
+
title: '返回'
|
|
180
|
+
},
|
|
181
|
+
popconfirm: {
|
|
182
|
+
confirmButtonText: '确定',
|
|
183
|
+
cancelButtonText: '取消'
|
|
184
|
+
},
|
|
185
|
+
iconselect: {
|
|
186
|
+
inputPlaceholder: '点击选择图标',
|
|
187
|
+
searchPlaceholder: '搜索...',
|
|
188
|
+
noMatchIcon: '暂无对应的图标'
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
/***/ }),
|
|
194
|
+
|
|
195
|
+
/***/ "11bf":
|
|
196
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
197
|
+
|
|
198
|
+
"use strict";
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
exports.__esModule = true;
|
|
202
|
+
exports.isDefined = exports.isUndefined = exports.isFunction = undefined;
|
|
203
|
+
|
|
204
|
+
var _typeof2 = __webpack_require__("1098");
|
|
205
|
+
|
|
206
|
+
var _typeof3 = _interopRequireDefault(_typeof2);
|
|
207
|
+
|
|
208
|
+
exports.isString = isString;
|
|
209
|
+
exports.isObject = isObject;
|
|
210
|
+
exports.isHtmlElement = isHtmlElement;
|
|
211
|
+
|
|
212
|
+
var _vue = __webpack_require__("8bbf");
|
|
213
|
+
|
|
214
|
+
var _vue2 = _interopRequireDefault(_vue);
|
|
215
|
+
|
|
216
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
217
|
+
|
|
218
|
+
function isString(obj) {
|
|
219
|
+
return Object.prototype.toString.call(obj) === '[object String]';
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
function isObject(obj) {
|
|
223
|
+
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
function isHtmlElement(node) {
|
|
227
|
+
return node && node.nodeType === Node.ELEMENT_NODE;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* - Inspired:
|
|
232
|
+
* https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
|
|
233
|
+
*/
|
|
234
|
+
var isFunction = function isFunction(functionToCheck) {
|
|
235
|
+
var getType = {};
|
|
236
|
+
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : (0, _typeof3.default)(Int8Array)) !== 'object' && (_vue2.default.prototype.$isServer || typeof document.childNodes !== 'function')) {
|
|
240
|
+
exports.isFunction = isFunction = function isFunction(obj) {
|
|
241
|
+
return typeof obj === 'function' || false;
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
exports.isFunction = isFunction;
|
|
246
|
+
var isUndefined = exports.isUndefined = function isUndefined(val) {
|
|
247
|
+
return val === void 0;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
var isDefined = exports.isDefined = function isDefined(val) {
|
|
251
|
+
return val !== undefined && val !== null;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
/***/ }),
|
|
255
|
+
|
|
256
|
+
/***/ "14a4":
|
|
257
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
258
|
+
|
|
259
|
+
"use strict";
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
exports.__esModule = true;
|
|
263
|
+
exports.default = {
|
|
264
|
+
el: {
|
|
265
|
+
colorpicker: {
|
|
266
|
+
confirm: 'OK',
|
|
267
|
+
clear: 'Clear'
|
|
268
|
+
},
|
|
269
|
+
datepicker: {
|
|
270
|
+
now: 'Now',
|
|
271
|
+
today: 'Today',
|
|
272
|
+
cancel: 'Cancel',
|
|
273
|
+
clear: 'Clear',
|
|
274
|
+
confirm: 'OK',
|
|
275
|
+
selectDate: 'Select date',
|
|
276
|
+
selectTime: 'Select time',
|
|
277
|
+
startDate: 'Start Date',
|
|
278
|
+
startTime: 'Start Time',
|
|
279
|
+
endDate: 'End Date',
|
|
280
|
+
endTime: 'End Time',
|
|
281
|
+
prevYear: 'Previous Year',
|
|
282
|
+
nextYear: 'Next Year',
|
|
283
|
+
prevMonth: 'Previous Month',
|
|
284
|
+
nextMonth: 'Next Month',
|
|
285
|
+
year: '',
|
|
286
|
+
month1: 'January',
|
|
287
|
+
month2: 'February',
|
|
288
|
+
month3: 'March',
|
|
289
|
+
month4: 'April',
|
|
290
|
+
month5: 'May',
|
|
291
|
+
month6: 'June',
|
|
292
|
+
month7: 'July',
|
|
293
|
+
month8: 'August',
|
|
294
|
+
month9: 'September',
|
|
295
|
+
month10: 'October',
|
|
296
|
+
month11: 'November',
|
|
297
|
+
month12: 'December',
|
|
298
|
+
week: 'week',
|
|
299
|
+
weeks: {
|
|
300
|
+
sun: 'Sun',
|
|
301
|
+
mon: 'Mon',
|
|
302
|
+
tue: 'Tue',
|
|
303
|
+
wed: 'Wed',
|
|
304
|
+
thu: 'Thu',
|
|
305
|
+
fri: 'Fri',
|
|
306
|
+
sat: 'Sat'
|
|
307
|
+
},
|
|
308
|
+
months: {
|
|
309
|
+
jan: 'Jan',
|
|
310
|
+
feb: 'Feb',
|
|
311
|
+
mar: 'Mar',
|
|
312
|
+
apr: 'Apr',
|
|
313
|
+
may: 'May',
|
|
314
|
+
jun: 'Jun',
|
|
315
|
+
jul: 'Jul',
|
|
316
|
+
aug: 'Aug',
|
|
317
|
+
sep: 'Sep',
|
|
318
|
+
oct: 'Oct',
|
|
319
|
+
nov: 'Nov',
|
|
320
|
+
dec: 'Dec'
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
select: {
|
|
324
|
+
loading: 'Loading',
|
|
325
|
+
noMatch: 'No matching data',
|
|
326
|
+
noData: 'No data',
|
|
327
|
+
placeholder: 'Select'
|
|
328
|
+
},
|
|
329
|
+
cascader: {
|
|
330
|
+
noMatch: 'No matching data',
|
|
331
|
+
loading: 'Loading',
|
|
332
|
+
placeholder: 'Select',
|
|
333
|
+
noData: 'No data'
|
|
334
|
+
},
|
|
335
|
+
pagination: {
|
|
336
|
+
goto: 'Go to',
|
|
337
|
+
pagesize: '/page',
|
|
338
|
+
total: 'Total {total}',
|
|
339
|
+
pageClassifier: ''
|
|
340
|
+
},
|
|
341
|
+
messagebox: {
|
|
342
|
+
title: 'Message',
|
|
343
|
+
confirm: 'OK',
|
|
344
|
+
cancel: 'Cancel',
|
|
345
|
+
error: 'Illegal input'
|
|
346
|
+
},
|
|
347
|
+
upload: {
|
|
348
|
+
deleteTip: 'press delete to remove',
|
|
349
|
+
delete: 'Delete',
|
|
350
|
+
preview: 'Preview',
|
|
351
|
+
continue: 'Continue'
|
|
352
|
+
},
|
|
353
|
+
table: {
|
|
354
|
+
emptyText: 'No Data',
|
|
355
|
+
confirmFilter: 'Confirm',
|
|
356
|
+
resetFilter: 'Reset',
|
|
357
|
+
clearFilter: 'All',
|
|
358
|
+
sumText: 'Sum'
|
|
359
|
+
},
|
|
360
|
+
tree: {
|
|
361
|
+
emptyText: 'No Data'
|
|
362
|
+
},
|
|
363
|
+
transfer: {
|
|
364
|
+
noMatch: 'No matching data',
|
|
365
|
+
noData: 'No data',
|
|
366
|
+
titles: ['List 1', 'List 2'], // to be translated
|
|
367
|
+
filterPlaceholder: 'Enter keyword', // to be translated
|
|
368
|
+
noCheckedFormat: '{total} items', // to be translated
|
|
369
|
+
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
|
370
|
+
},
|
|
371
|
+
image: {
|
|
372
|
+
error: 'FAILED'
|
|
373
|
+
},
|
|
374
|
+
pageHeader: {
|
|
375
|
+
title: 'Back' // to be translated
|
|
376
|
+
},
|
|
377
|
+
popconfirm: {
|
|
378
|
+
confirmButtonText: 'Yes',
|
|
379
|
+
cancelButtonText: 'No'
|
|
380
|
+
},
|
|
381
|
+
iconselect: {
|
|
382
|
+
inputPlaceholder: 'Click Select Icon',
|
|
383
|
+
searchPlaceholder: 'Search...',
|
|
384
|
+
noMatchIcon: 'No Match Icons'
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
/***/ }),
|
|
390
|
+
|
|
391
|
+
/***/ "17ed":
|
|
392
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
393
|
+
|
|
394
|
+
module.exports = { "default": __webpack_require__("d8d6"), __esModule: true };
|
|
395
|
+
|
|
396
|
+
/***/ }),
|
|
397
|
+
|
|
398
|
+
/***/ "1907":
|
|
399
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
400
|
+
|
|
401
|
+
module.exports = { "default": __webpack_require__("8aae"), __esModule: true };
|
|
402
|
+
|
|
403
|
+
/***/ }),
|
|
404
|
+
|
|
405
|
+
/***/ "1fb5":
|
|
406
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
407
|
+
|
|
408
|
+
"use strict";
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
exports.byteLength = byteLength
|
|
412
|
+
exports.toByteArray = toByteArray
|
|
413
|
+
exports.fromByteArray = fromByteArray
|
|
414
|
+
|
|
415
|
+
var lookup = []
|
|
416
|
+
var revLookup = []
|
|
417
|
+
var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
|
|
418
|
+
|
|
419
|
+
var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
|
|
420
|
+
for (var i = 0, len = code.length; i < len; ++i) {
|
|
421
|
+
lookup[i] = code[i]
|
|
422
|
+
revLookup[code.charCodeAt(i)] = i
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
// Support decoding URL-safe base64 strings, as Node.js does.
|
|
426
|
+
// See: https://en.wikipedia.org/wiki/Base64#URL_applications
|
|
427
|
+
revLookup['-'.charCodeAt(0)] = 62
|
|
428
|
+
revLookup['_'.charCodeAt(0)] = 63
|
|
429
|
+
|
|
430
|
+
function getLens (b64) {
|
|
431
|
+
var len = b64.length
|
|
432
|
+
|
|
433
|
+
if (len % 4 > 0) {
|
|
434
|
+
throw new Error('Invalid string. Length must be a multiple of 4')
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
// Trim off extra bytes after placeholder bytes are found
|
|
438
|
+
// See: https://github.com/beatgammit/base64-js/issues/42
|
|
439
|
+
var validLen = b64.indexOf('=')
|
|
440
|
+
if (validLen === -1) validLen = len
|
|
441
|
+
|
|
442
|
+
var placeHoldersLen = validLen === len
|
|
443
|
+
? 0
|
|
444
|
+
: 4 - (validLen % 4)
|
|
445
|
+
|
|
446
|
+
return [validLen, placeHoldersLen]
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
// base64 is 4/3 + up to two characters of the original data
|
|
450
|
+
function byteLength (b64) {
|
|
451
|
+
var lens = getLens(b64)
|
|
452
|
+
var validLen = lens[0]
|
|
453
|
+
var placeHoldersLen = lens[1]
|
|
454
|
+
return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
function _byteLength (b64, validLen, placeHoldersLen) {
|
|
458
|
+
return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
function toByteArray (b64) {
|
|
462
|
+
var tmp
|
|
463
|
+
var lens = getLens(b64)
|
|
464
|
+
var validLen = lens[0]
|
|
465
|
+
var placeHoldersLen = lens[1]
|
|
466
|
+
|
|
467
|
+
var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
|
|
468
|
+
|
|
469
|
+
var curByte = 0
|
|
470
|
+
|
|
471
|
+
// if there are placeholders, only get up to the last complete 4 chars
|
|
472
|
+
var len = placeHoldersLen > 0
|
|
473
|
+
? validLen - 4
|
|
474
|
+
: validLen
|
|
475
|
+
|
|
476
|
+
var i
|
|
477
|
+
for (i = 0; i < len; i += 4) {
|
|
478
|
+
tmp =
|
|
479
|
+
(revLookup[b64.charCodeAt(i)] << 18) |
|
|
480
|
+
(revLookup[b64.charCodeAt(i + 1)] << 12) |
|
|
481
|
+
(revLookup[b64.charCodeAt(i + 2)] << 6) |
|
|
482
|
+
revLookup[b64.charCodeAt(i + 3)]
|
|
483
|
+
arr[curByte++] = (tmp >> 16) & 0xFF
|
|
484
|
+
arr[curByte++] = (tmp >> 8) & 0xFF
|
|
485
|
+
arr[curByte++] = tmp & 0xFF
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
if (placeHoldersLen === 2) {
|
|
489
|
+
tmp =
|
|
490
|
+
(revLookup[b64.charCodeAt(i)] << 2) |
|
|
491
|
+
(revLookup[b64.charCodeAt(i + 1)] >> 4)
|
|
492
|
+
arr[curByte++] = tmp & 0xFF
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
if (placeHoldersLen === 1) {
|
|
496
|
+
tmp =
|
|
497
|
+
(revLookup[b64.charCodeAt(i)] << 10) |
|
|
498
|
+
(revLookup[b64.charCodeAt(i + 1)] << 4) |
|
|
499
|
+
(revLookup[b64.charCodeAt(i + 2)] >> 2)
|
|
500
|
+
arr[curByte++] = (tmp >> 8) & 0xFF
|
|
501
|
+
arr[curByte++] = tmp & 0xFF
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
return arr
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
function tripletToBase64 (num) {
|
|
508
|
+
return lookup[num >> 18 & 0x3F] +
|
|
509
|
+
lookup[num >> 12 & 0x3F] +
|
|
510
|
+
lookup[num >> 6 & 0x3F] +
|
|
511
|
+
lookup[num & 0x3F]
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
function encodeChunk (uint8, start, end) {
|
|
515
|
+
var tmp
|
|
516
|
+
var output = []
|
|
517
|
+
for (var i = start; i < end; i += 3) {
|
|
518
|
+
tmp =
|
|
519
|
+
((uint8[i] << 16) & 0xFF0000) +
|
|
520
|
+
((uint8[i + 1] << 8) & 0xFF00) +
|
|
521
|
+
(uint8[i + 2] & 0xFF)
|
|
522
|
+
output.push(tripletToBase64(tmp))
|
|
523
|
+
}
|
|
524
|
+
return output.join('')
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
function fromByteArray (uint8) {
|
|
528
|
+
var tmp
|
|
529
|
+
var len = uint8.length
|
|
530
|
+
var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
|
|
531
|
+
var parts = []
|
|
532
|
+
var maxChunkLength = 16383 // must be multiple of 3
|
|
533
|
+
|
|
534
|
+
// go through the array every three bytes, we'll deal with trailing stuff later
|
|
535
|
+
for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
|
|
536
|
+
parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
// pad the end with zeros, but make sure to not forget the extra bytes
|
|
540
|
+
if (extraBytes === 1) {
|
|
541
|
+
tmp = uint8[len - 1]
|
|
542
|
+
parts.push(
|
|
543
|
+
lookup[tmp >> 2] +
|
|
544
|
+
lookup[(tmp << 4) & 0x3F] +
|
|
545
|
+
'=='
|
|
546
|
+
)
|
|
547
|
+
} else if (extraBytes === 2) {
|
|
548
|
+
tmp = (uint8[len - 2] << 8) + uint8[len - 1]
|
|
549
|
+
parts.push(
|
|
550
|
+
lookup[tmp >> 10] +
|
|
551
|
+
lookup[(tmp >> 4) & 0x3F] +
|
|
552
|
+
lookup[(tmp << 2) & 0x3F] +
|
|
553
|
+
'='
|
|
554
|
+
)
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
return parts.join('')
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
/***/ }),
|
|
562
|
+
|
|
563
|
+
/***/ "21a6":
|
|
564
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
565
|
+
|
|
566
|
+
/* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(a,b){if(true)!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (b),
|
|
567
|
+
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
568
|
+
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
569
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}})(this,function(){"use strict";function b(a,b){return"undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(b,c,d){var e=new XMLHttpRequest;e.open("GET",b),e.responseType="blob",e.onload=function(){a(e.response,c,d)},e.onerror=function(){console.error("could not download file")},e.send()}function d(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"))}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,a=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href)},4E4),setTimeout(function(){e(j)},0))}:"msSaveOrOpenBlob"in navigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else{var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i)})}}:function(a,b,d,e){if(e=e||open("","_blank"),e&&(e.document.title=e.document.body.innerText="downloading..."),"string"==typeof a)return c(a,b,d);var g="application/octet-stream"===a.type,h=/constructor/i.test(f.HTMLElement)||f.safari,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||g&&h)&&"object"==typeof FileReader){var j=new FileReader;j.onloadend=function(){var a=j.result;a=i?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),e?e.location.href=a:location=a,e=null},j.readAsDataURL(a)}else{var k=f.URL||f.webkitURL,l=k.createObjectURL(a);e?e.location=l:location.href=l,e=null,setTimeout(function(){k.revokeObjectURL(l)},4E4)}});f.saveAs=a.saveAs=a, true&&(module.exports=a)});
|
|
570
|
+
|
|
571
|
+
//# sourceMappingURL=FileSaver.min.js.map
|
|
572
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
|
|
573
|
+
|
|
574
|
+
/***/ }),
|
|
575
|
+
|
|
576
|
+
/***/ "262e":
|
|
577
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
578
|
+
|
|
579
|
+
"use strict";
|
|
580
|
+
|
|
581
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
582
|
+
function _setPrototypeOf(o, p) {
|
|
583
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
584
|
+
o.__proto__ = p;
|
|
585
|
+
return o;
|
|
586
|
+
};
|
|
587
|
+
return _setPrototypeOf(o, p);
|
|
588
|
+
}
|
|
589
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
590
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inherits; });
|
|
591
|
+
|
|
592
|
+
function _inherits(subClass, superClass) {
|
|
593
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
594
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
595
|
+
}
|
|
596
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
597
|
+
constructor: {
|
|
598
|
+
value: subClass,
|
|
599
|
+
writable: true,
|
|
600
|
+
configurable: true
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
Object.defineProperty(subClass, "prototype", {
|
|
604
|
+
writable: false
|
|
605
|
+
});
|
|
606
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/***/ }),
|
|
610
|
+
|
|
611
|
+
/***/ "2877":
|
|
612
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
613
|
+
|
|
614
|
+
"use strict";
|
|
615
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
616
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
617
|
+
|
|
618
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
619
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
620
|
+
// be included in the final webpack user bundle.
|
|
621
|
+
|
|
622
|
+
function normalizeComponent(
|
|
623
|
+
scriptExports,
|
|
624
|
+
render,
|
|
625
|
+
staticRenderFns,
|
|
626
|
+
functionalTemplate,
|
|
627
|
+
injectStyles,
|
|
628
|
+
scopeId,
|
|
629
|
+
moduleIdentifier /* server only */,
|
|
630
|
+
shadowMode /* vue-cli only */
|
|
631
|
+
) {
|
|
632
|
+
// Vue.extend constructor export interop
|
|
633
|
+
var options =
|
|
634
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
635
|
+
|
|
636
|
+
// render functions
|
|
637
|
+
if (render) {
|
|
638
|
+
options.render = render
|
|
639
|
+
options.staticRenderFns = staticRenderFns
|
|
640
|
+
options._compiled = true
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
// functional template
|
|
644
|
+
if (functionalTemplate) {
|
|
645
|
+
options.functional = true
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
// scopedId
|
|
649
|
+
if (scopeId) {
|
|
650
|
+
options._scopeId = 'data-v-' + scopeId
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
var hook
|
|
654
|
+
if (moduleIdentifier) {
|
|
655
|
+
// server build
|
|
656
|
+
hook = function (context) {
|
|
657
|
+
// 2.3 injection
|
|
658
|
+
context =
|
|
659
|
+
context || // cached call
|
|
660
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
661
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
662
|
+
// 2.2 with runInNewContext: true
|
|
663
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
664
|
+
context = __VUE_SSR_CONTEXT__
|
|
665
|
+
}
|
|
666
|
+
// inject component styles
|
|
667
|
+
if (injectStyles) {
|
|
668
|
+
injectStyles.call(this, context)
|
|
669
|
+
}
|
|
670
|
+
// register component module identifier for async chunk inferrence
|
|
671
|
+
if (context && context._registeredComponents) {
|
|
672
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
// used by ssr in case component is cached and beforeCreate
|
|
676
|
+
// never gets called
|
|
677
|
+
options._ssrRegister = hook
|
|
678
|
+
} else if (injectStyles) {
|
|
679
|
+
hook = shadowMode
|
|
680
|
+
? function () {
|
|
681
|
+
injectStyles.call(
|
|
682
|
+
this,
|
|
683
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
684
|
+
)
|
|
685
|
+
}
|
|
686
|
+
: injectStyles
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
if (hook) {
|
|
690
|
+
if (options.functional) {
|
|
691
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
692
|
+
// go through the normalizer
|
|
693
|
+
options._injectStyles = hook
|
|
694
|
+
// register for functional component in vue file
|
|
695
|
+
var originalRender = options.render
|
|
696
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
697
|
+
hook.call(context)
|
|
698
|
+
return originalRender(h, context)
|
|
699
|
+
}
|
|
700
|
+
} else {
|
|
701
|
+
// inject component registration as beforeCreate hook
|
|
702
|
+
var existing = options.beforeCreate
|
|
703
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
return {
|
|
708
|
+
exports: scriptExports,
|
|
709
|
+
options: options
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
/***/ }),
|
|
715
|
+
|
|
716
|
+
/***/ "3a7c":
|
|
717
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
718
|
+
|
|
719
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
720
|
+
//
|
|
721
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
722
|
+
// copy of this software and associated documentation files (the
|
|
723
|
+
// "Software"), to deal in the Software without restriction, including
|
|
724
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
725
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
726
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
727
|
+
// following conditions:
|
|
728
|
+
//
|
|
729
|
+
// The above copyright notice and this permission notice shall be included
|
|
730
|
+
// in all copies or substantial portions of the Software.
|
|
731
|
+
//
|
|
732
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
733
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
734
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
735
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
736
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
737
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
738
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
739
|
+
|
|
740
|
+
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
741
|
+
// because it is fragile and can be easily faked with `Object.create()`.
|
|
742
|
+
|
|
743
|
+
function isArray(arg) {
|
|
744
|
+
if (Array.isArray) {
|
|
745
|
+
return Array.isArray(arg);
|
|
746
|
+
}
|
|
747
|
+
return objectToString(arg) === '[object Array]';
|
|
748
|
+
}
|
|
749
|
+
exports.isArray = isArray;
|
|
750
|
+
|
|
751
|
+
function isBoolean(arg) {
|
|
752
|
+
return typeof arg === 'boolean';
|
|
753
|
+
}
|
|
754
|
+
exports.isBoolean = isBoolean;
|
|
755
|
+
|
|
756
|
+
function isNull(arg) {
|
|
757
|
+
return arg === null;
|
|
758
|
+
}
|
|
759
|
+
exports.isNull = isNull;
|
|
760
|
+
|
|
761
|
+
function isNullOrUndefined(arg) {
|
|
762
|
+
return arg == null;
|
|
763
|
+
}
|
|
764
|
+
exports.isNullOrUndefined = isNullOrUndefined;
|
|
765
|
+
|
|
766
|
+
function isNumber(arg) {
|
|
767
|
+
return typeof arg === 'number';
|
|
768
|
+
}
|
|
769
|
+
exports.isNumber = isNumber;
|
|
770
|
+
|
|
771
|
+
function isString(arg) {
|
|
772
|
+
return typeof arg === 'string';
|
|
773
|
+
}
|
|
774
|
+
exports.isString = isString;
|
|
775
|
+
|
|
776
|
+
function isSymbol(arg) {
|
|
777
|
+
return typeof arg === 'symbol';
|
|
778
|
+
}
|
|
779
|
+
exports.isSymbol = isSymbol;
|
|
780
|
+
|
|
781
|
+
function isUndefined(arg) {
|
|
782
|
+
return arg === void 0;
|
|
783
|
+
}
|
|
784
|
+
exports.isUndefined = isUndefined;
|
|
785
|
+
|
|
786
|
+
function isRegExp(re) {
|
|
787
|
+
return objectToString(re) === '[object RegExp]';
|
|
788
|
+
}
|
|
789
|
+
exports.isRegExp = isRegExp;
|
|
790
|
+
|
|
791
|
+
function isObject(arg) {
|
|
792
|
+
return typeof arg === 'object' && arg !== null;
|
|
793
|
+
}
|
|
794
|
+
exports.isObject = isObject;
|
|
795
|
+
|
|
796
|
+
function isDate(d) {
|
|
797
|
+
return objectToString(d) === '[object Date]';
|
|
798
|
+
}
|
|
799
|
+
exports.isDate = isDate;
|
|
800
|
+
|
|
801
|
+
function isError(e) {
|
|
802
|
+
return (objectToString(e) === '[object Error]' || e instanceof Error);
|
|
803
|
+
}
|
|
804
|
+
exports.isError = isError;
|
|
805
|
+
|
|
806
|
+
function isFunction(arg) {
|
|
807
|
+
return typeof arg === 'function';
|
|
808
|
+
}
|
|
809
|
+
exports.isFunction = isFunction;
|
|
810
|
+
|
|
811
|
+
function isPrimitive(arg) {
|
|
812
|
+
return arg === null ||
|
|
813
|
+
typeof arg === 'boolean' ||
|
|
814
|
+
typeof arg === 'number' ||
|
|
815
|
+
typeof arg === 'string' ||
|
|
816
|
+
typeof arg === 'symbol' || // ES6 symbol
|
|
817
|
+
typeof arg === 'undefined';
|
|
818
|
+
}
|
|
819
|
+
exports.isPrimitive = isPrimitive;
|
|
820
|
+
|
|
821
|
+
exports.isBuffer = __webpack_require__("b639").Buffer.isBuffer;
|
|
822
|
+
|
|
823
|
+
function objectToString(o) {
|
|
824
|
+
return Object.prototype.toString.call(o);
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
/***/ }),
|
|
829
|
+
|
|
830
|
+
/***/ "3c4e":
|
|
831
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
832
|
+
|
|
833
|
+
"use strict";
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
var isMergeableObject = function isMergeableObject(value) {
|
|
837
|
+
return isNonNullObject(value)
|
|
838
|
+
&& !isSpecial(value)
|
|
839
|
+
};
|
|
840
|
+
|
|
841
|
+
function isNonNullObject(value) {
|
|
842
|
+
return !!value && typeof value === 'object'
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
function isSpecial(value) {
|
|
846
|
+
var stringValue = Object.prototype.toString.call(value);
|
|
847
|
+
|
|
848
|
+
return stringValue === '[object RegExp]'
|
|
849
|
+
|| stringValue === '[object Date]'
|
|
850
|
+
|| isReactElement(value)
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
854
|
+
var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
855
|
+
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
856
|
+
|
|
857
|
+
function isReactElement(value) {
|
|
858
|
+
return value.$$typeof === REACT_ELEMENT_TYPE
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
function emptyTarget(val) {
|
|
862
|
+
return Array.isArray(val) ? [] : {}
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
function cloneIfNecessary(value, optionsArgument) {
|
|
866
|
+
var clone = optionsArgument && optionsArgument.clone === true;
|
|
867
|
+
return (clone && isMergeableObject(value)) ? deepmerge(emptyTarget(value), value, optionsArgument) : value
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
function defaultArrayMerge(target, source, optionsArgument) {
|
|
871
|
+
var destination = target.slice();
|
|
872
|
+
source.forEach(function(e, i) {
|
|
873
|
+
if (typeof destination[i] === 'undefined') {
|
|
874
|
+
destination[i] = cloneIfNecessary(e, optionsArgument);
|
|
875
|
+
} else if (isMergeableObject(e)) {
|
|
876
|
+
destination[i] = deepmerge(target[i], e, optionsArgument);
|
|
877
|
+
} else if (target.indexOf(e) === -1) {
|
|
878
|
+
destination.push(cloneIfNecessary(e, optionsArgument));
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
return destination
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
function mergeObject(target, source, optionsArgument) {
|
|
885
|
+
var destination = {};
|
|
886
|
+
if (isMergeableObject(target)) {
|
|
887
|
+
Object.keys(target).forEach(function(key) {
|
|
888
|
+
destination[key] = cloneIfNecessary(target[key], optionsArgument);
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
Object.keys(source).forEach(function(key) {
|
|
892
|
+
if (!isMergeableObject(source[key]) || !target[key]) {
|
|
893
|
+
destination[key] = cloneIfNecessary(source[key], optionsArgument);
|
|
894
|
+
} else {
|
|
895
|
+
destination[key] = deepmerge(target[key], source[key], optionsArgument);
|
|
896
|
+
}
|
|
897
|
+
});
|
|
898
|
+
return destination
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
function deepmerge(target, source, optionsArgument) {
|
|
902
|
+
var sourceIsArray = Array.isArray(source);
|
|
903
|
+
var targetIsArray = Array.isArray(target);
|
|
904
|
+
var options = optionsArgument || { arrayMerge: defaultArrayMerge };
|
|
905
|
+
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
906
|
+
|
|
907
|
+
if (!sourceAndTargetTypesMatch) {
|
|
908
|
+
return cloneIfNecessary(source, optionsArgument)
|
|
909
|
+
} else if (sourceIsArray) {
|
|
910
|
+
var arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
911
|
+
return arrayMerge(target, source, optionsArgument)
|
|
912
|
+
} else {
|
|
913
|
+
return mergeObject(target, source, optionsArgument)
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
deepmerge.all = function deepmergeAll(array, optionsArgument) {
|
|
918
|
+
if (!Array.isArray(array) || array.length < 2) {
|
|
919
|
+
throw new Error('first argument should be an array with at least two elements')
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
// we are sure there are at least 2 values, so it is safe to have no initial value
|
|
923
|
+
return array.reduce(function(prev, next) {
|
|
924
|
+
return deepmerge(prev, next, optionsArgument)
|
|
925
|
+
})
|
|
926
|
+
};
|
|
927
|
+
|
|
928
|
+
var deepmerge_1 = deepmerge;
|
|
929
|
+
|
|
930
|
+
module.exports = deepmerge_1;
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
/***/ }),
|
|
934
|
+
|
|
935
|
+
/***/ "3f6b":
|
|
936
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
937
|
+
|
|
938
|
+
module.exports = { "default": __webpack_require__("51b6"), __esModule: true };
|
|
939
|
+
|
|
940
|
+
/***/ }),
|
|
941
|
+
|
|
942
|
+
/***/ "3fb5":
|
|
943
|
+
/***/ (function(module, exports) {
|
|
944
|
+
|
|
945
|
+
if (typeof Object.create === 'function') {
|
|
946
|
+
// implementation from standard node.js 'util' module
|
|
947
|
+
module.exports = function inherits(ctor, superCtor) {
|
|
948
|
+
if (superCtor) {
|
|
949
|
+
ctor.super_ = superCtor
|
|
950
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
951
|
+
constructor: {
|
|
952
|
+
value: ctor,
|
|
953
|
+
enumerable: false,
|
|
954
|
+
writable: true,
|
|
955
|
+
configurable: true
|
|
956
|
+
}
|
|
957
|
+
})
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
} else {
|
|
961
|
+
// old school shim for old browsers
|
|
962
|
+
module.exports = function inherits(ctor, superCtor) {
|
|
963
|
+
if (superCtor) {
|
|
964
|
+
ctor.super_ = superCtor
|
|
965
|
+
var TempCtor = function () {}
|
|
966
|
+
TempCtor.prototype = superCtor.prototype
|
|
967
|
+
ctor.prototype = new TempCtor()
|
|
968
|
+
ctor.prototype.constructor = ctor
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
/***/ }),
|
|
975
|
+
|
|
976
|
+
/***/ "41b2":
|
|
977
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
978
|
+
|
|
979
|
+
"use strict";
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
exports.__esModule = true;
|
|
983
|
+
|
|
984
|
+
var _assign = __webpack_require__("3f6b");
|
|
985
|
+
|
|
986
|
+
var _assign2 = _interopRequireDefault(_assign);
|
|
987
|
+
|
|
988
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
989
|
+
|
|
990
|
+
exports.default = _assign2.default || function (target) {
|
|
991
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
992
|
+
var source = arguments[i];
|
|
993
|
+
|
|
994
|
+
for (var key in source) {
|
|
995
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
996
|
+
target[key] = source[key];
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
return target;
|
|
1002
|
+
};
|
|
1003
|
+
|
|
1004
|
+
/***/ }),
|
|
1005
|
+
|
|
1006
|
+
/***/ "493b":
|
|
1007
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1008
|
+
|
|
1009
|
+
/* WEBPACK VAR INJECTION */(function(Buffer) {var js2xml = __webpack_require__("cef9");
|
|
1010
|
+
|
|
1011
|
+
module.exports = function (json, options) {
|
|
1012
|
+
if (json instanceof Buffer) {
|
|
1013
|
+
json = json.toString();
|
|
1014
|
+
}
|
|
1015
|
+
var js = null;
|
|
1016
|
+
if (typeof (json) === 'string') {
|
|
1017
|
+
try {
|
|
1018
|
+
js = JSON.parse(json);
|
|
1019
|
+
} catch (e) {
|
|
1020
|
+
throw new Error('The JSON structure is invalid');
|
|
1021
|
+
}
|
|
1022
|
+
} else {
|
|
1023
|
+
js = json;
|
|
1024
|
+
}
|
|
1025
|
+
return js2xml(js, options);
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("b639").Buffer))
|
|
1029
|
+
|
|
1030
|
+
/***/ }),
|
|
1031
|
+
|
|
1032
|
+
/***/ "53ca":
|
|
1033
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1034
|
+
|
|
1035
|
+
"use strict";
|
|
1036
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; });
|
|
1037
|
+
function _typeof(obj) {
|
|
1038
|
+
"@babel/helpers - typeof";
|
|
1039
|
+
|
|
1040
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
1041
|
+
return typeof obj;
|
|
1042
|
+
} : function (obj) {
|
|
1043
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
1044
|
+
}, _typeof(obj);
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
/***/ }),
|
|
1048
|
+
|
|
1049
|
+
/***/ "633f":
|
|
1050
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1051
|
+
|
|
1052
|
+
module.exports = { "default": __webpack_require__("fa99"), __esModule: true };
|
|
1053
|
+
|
|
1054
|
+
/***/ }),
|
|
1055
|
+
|
|
1056
|
+
/***/ "7d72":
|
|
1057
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1058
|
+
|
|
1059
|
+
"use strict";
|
|
1060
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
1061
|
+
//
|
|
1062
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
1063
|
+
// copy of this software and associated documentation files (the
|
|
1064
|
+
// "Software"), to deal in the Software without restriction, including
|
|
1065
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
1066
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
1067
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
1068
|
+
// following conditions:
|
|
1069
|
+
//
|
|
1070
|
+
// The above copyright notice and this permission notice shall be included
|
|
1071
|
+
// in all copies or substantial portions of the Software.
|
|
1072
|
+
//
|
|
1073
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
1074
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
1075
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
1076
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
1077
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
1078
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
1079
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
/*<replacement>*/
|
|
1084
|
+
|
|
1085
|
+
var Buffer = __webpack_require__("87075").Buffer;
|
|
1086
|
+
/*</replacement>*/
|
|
1087
|
+
|
|
1088
|
+
var isEncoding = Buffer.isEncoding || function (encoding) {
|
|
1089
|
+
encoding = '' + encoding;
|
|
1090
|
+
switch (encoding && encoding.toLowerCase()) {
|
|
1091
|
+
case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':
|
|
1092
|
+
return true;
|
|
1093
|
+
default:
|
|
1094
|
+
return false;
|
|
1095
|
+
}
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1098
|
+
function _normalizeEncoding(enc) {
|
|
1099
|
+
if (!enc) return 'utf8';
|
|
1100
|
+
var retried;
|
|
1101
|
+
while (true) {
|
|
1102
|
+
switch (enc) {
|
|
1103
|
+
case 'utf8':
|
|
1104
|
+
case 'utf-8':
|
|
1105
|
+
return 'utf8';
|
|
1106
|
+
case 'ucs2':
|
|
1107
|
+
case 'ucs-2':
|
|
1108
|
+
case 'utf16le':
|
|
1109
|
+
case 'utf-16le':
|
|
1110
|
+
return 'utf16le';
|
|
1111
|
+
case 'latin1':
|
|
1112
|
+
case 'binary':
|
|
1113
|
+
return 'latin1';
|
|
1114
|
+
case 'base64':
|
|
1115
|
+
case 'ascii':
|
|
1116
|
+
case 'hex':
|
|
1117
|
+
return enc;
|
|
1118
|
+
default:
|
|
1119
|
+
if (retried) return; // undefined
|
|
1120
|
+
enc = ('' + enc).toLowerCase();
|
|
1121
|
+
retried = true;
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
// Do not cache `Buffer.isEncoding` when checking encoding names as some
|
|
1127
|
+
// modules monkey-patch it to support additional encodings
|
|
1128
|
+
function normalizeEncoding(enc) {
|
|
1129
|
+
var nenc = _normalizeEncoding(enc);
|
|
1130
|
+
if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
|
|
1131
|
+
return nenc || enc;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
// StringDecoder provides an interface for efficiently splitting a series of
|
|
1135
|
+
// buffers into a series of JS strings without breaking apart multi-byte
|
|
1136
|
+
// characters.
|
|
1137
|
+
exports.StringDecoder = StringDecoder;
|
|
1138
|
+
function StringDecoder(encoding) {
|
|
1139
|
+
this.encoding = normalizeEncoding(encoding);
|
|
1140
|
+
var nb;
|
|
1141
|
+
switch (this.encoding) {
|
|
1142
|
+
case 'utf16le':
|
|
1143
|
+
this.text = utf16Text;
|
|
1144
|
+
this.end = utf16End;
|
|
1145
|
+
nb = 4;
|
|
1146
|
+
break;
|
|
1147
|
+
case 'utf8':
|
|
1148
|
+
this.fillLast = utf8FillLast;
|
|
1149
|
+
nb = 4;
|
|
1150
|
+
break;
|
|
1151
|
+
case 'base64':
|
|
1152
|
+
this.text = base64Text;
|
|
1153
|
+
this.end = base64End;
|
|
1154
|
+
nb = 3;
|
|
1155
|
+
break;
|
|
1156
|
+
default:
|
|
1157
|
+
this.write = simpleWrite;
|
|
1158
|
+
this.end = simpleEnd;
|
|
1159
|
+
return;
|
|
1160
|
+
}
|
|
1161
|
+
this.lastNeed = 0;
|
|
1162
|
+
this.lastTotal = 0;
|
|
1163
|
+
this.lastChar = Buffer.allocUnsafe(nb);
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
StringDecoder.prototype.write = function (buf) {
|
|
1167
|
+
if (buf.length === 0) return '';
|
|
1168
|
+
var r;
|
|
1169
|
+
var i;
|
|
1170
|
+
if (this.lastNeed) {
|
|
1171
|
+
r = this.fillLast(buf);
|
|
1172
|
+
if (r === undefined) return '';
|
|
1173
|
+
i = this.lastNeed;
|
|
1174
|
+
this.lastNeed = 0;
|
|
1175
|
+
} else {
|
|
1176
|
+
i = 0;
|
|
1177
|
+
}
|
|
1178
|
+
if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);
|
|
1179
|
+
return r || '';
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1182
|
+
StringDecoder.prototype.end = utf8End;
|
|
1183
|
+
|
|
1184
|
+
// Returns only complete characters in a Buffer
|
|
1185
|
+
StringDecoder.prototype.text = utf8Text;
|
|
1186
|
+
|
|
1187
|
+
// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer
|
|
1188
|
+
StringDecoder.prototype.fillLast = function (buf) {
|
|
1189
|
+
if (this.lastNeed <= buf.length) {
|
|
1190
|
+
buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
|
|
1191
|
+
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
1192
|
+
}
|
|
1193
|
+
buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
|
|
1194
|
+
this.lastNeed -= buf.length;
|
|
1195
|
+
};
|
|
1196
|
+
|
|
1197
|
+
// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a
|
|
1198
|
+
// continuation byte. If an invalid byte is detected, -2 is returned.
|
|
1199
|
+
function utf8CheckByte(byte) {
|
|
1200
|
+
if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;
|
|
1201
|
+
return byte >> 6 === 0x02 ? -1 : -2;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
// Checks at most 3 bytes at the end of a Buffer in order to detect an
|
|
1205
|
+
// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)
|
|
1206
|
+
// needed to complete the UTF-8 character (if applicable) are returned.
|
|
1207
|
+
function utf8CheckIncomplete(self, buf, i) {
|
|
1208
|
+
var j = buf.length - 1;
|
|
1209
|
+
if (j < i) return 0;
|
|
1210
|
+
var nb = utf8CheckByte(buf[j]);
|
|
1211
|
+
if (nb >= 0) {
|
|
1212
|
+
if (nb > 0) self.lastNeed = nb - 1;
|
|
1213
|
+
return nb;
|
|
1214
|
+
}
|
|
1215
|
+
if (--j < i || nb === -2) return 0;
|
|
1216
|
+
nb = utf8CheckByte(buf[j]);
|
|
1217
|
+
if (nb >= 0) {
|
|
1218
|
+
if (nb > 0) self.lastNeed = nb - 2;
|
|
1219
|
+
return nb;
|
|
1220
|
+
}
|
|
1221
|
+
if (--j < i || nb === -2) return 0;
|
|
1222
|
+
nb = utf8CheckByte(buf[j]);
|
|
1223
|
+
if (nb >= 0) {
|
|
1224
|
+
if (nb > 0) {
|
|
1225
|
+
if (nb === 2) nb = 0;else self.lastNeed = nb - 3;
|
|
1226
|
+
}
|
|
1227
|
+
return nb;
|
|
1228
|
+
}
|
|
1229
|
+
return 0;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
// Validates as many continuation bytes for a multi-byte UTF-8 character as
|
|
1233
|
+
// needed or are available. If we see a non-continuation byte where we expect
|
|
1234
|
+
// one, we "replace" the validated continuation bytes we've seen so far with
|
|
1235
|
+
// a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding
|
|
1236
|
+
// behavior. The continuation byte check is included three times in the case
|
|
1237
|
+
// where all of the continuation bytes for a character exist in the same buffer.
|
|
1238
|
+
// It is also done this way as a slight performance increase instead of using a
|
|
1239
|
+
// loop.
|
|
1240
|
+
function utf8CheckExtraBytes(self, buf, p) {
|
|
1241
|
+
if ((buf[0] & 0xC0) !== 0x80) {
|
|
1242
|
+
self.lastNeed = 0;
|
|
1243
|
+
return '\ufffd';
|
|
1244
|
+
}
|
|
1245
|
+
if (self.lastNeed > 1 && buf.length > 1) {
|
|
1246
|
+
if ((buf[1] & 0xC0) !== 0x80) {
|
|
1247
|
+
self.lastNeed = 1;
|
|
1248
|
+
return '\ufffd';
|
|
1249
|
+
}
|
|
1250
|
+
if (self.lastNeed > 2 && buf.length > 2) {
|
|
1251
|
+
if ((buf[2] & 0xC0) !== 0x80) {
|
|
1252
|
+
self.lastNeed = 2;
|
|
1253
|
+
return '\ufffd';
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.
|
|
1260
|
+
function utf8FillLast(buf) {
|
|
1261
|
+
var p = this.lastTotal - this.lastNeed;
|
|
1262
|
+
var r = utf8CheckExtraBytes(this, buf, p);
|
|
1263
|
+
if (r !== undefined) return r;
|
|
1264
|
+
if (this.lastNeed <= buf.length) {
|
|
1265
|
+
buf.copy(this.lastChar, p, 0, this.lastNeed);
|
|
1266
|
+
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
1267
|
+
}
|
|
1268
|
+
buf.copy(this.lastChar, p, 0, buf.length);
|
|
1269
|
+
this.lastNeed -= buf.length;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a
|
|
1273
|
+
// partial character, the character's bytes are buffered until the required
|
|
1274
|
+
// number of bytes are available.
|
|
1275
|
+
function utf8Text(buf, i) {
|
|
1276
|
+
var total = utf8CheckIncomplete(this, buf, i);
|
|
1277
|
+
if (!this.lastNeed) return buf.toString('utf8', i);
|
|
1278
|
+
this.lastTotal = total;
|
|
1279
|
+
var end = buf.length - (total - this.lastNeed);
|
|
1280
|
+
buf.copy(this.lastChar, 0, end);
|
|
1281
|
+
return buf.toString('utf8', i, end);
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
// For UTF-8, a replacement character is added when ending on a partial
|
|
1285
|
+
// character.
|
|
1286
|
+
function utf8End(buf) {
|
|
1287
|
+
var r = buf && buf.length ? this.write(buf) : '';
|
|
1288
|
+
if (this.lastNeed) return r + '\ufffd';
|
|
1289
|
+
return r;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
// UTF-16LE typically needs two bytes per character, but even if we have an even
|
|
1293
|
+
// number of bytes available, we need to check if we end on a leading/high
|
|
1294
|
+
// surrogate. In that case, we need to wait for the next two bytes in order to
|
|
1295
|
+
// decode the last character properly.
|
|
1296
|
+
function utf16Text(buf, i) {
|
|
1297
|
+
if ((buf.length - i) % 2 === 0) {
|
|
1298
|
+
var r = buf.toString('utf16le', i);
|
|
1299
|
+
if (r) {
|
|
1300
|
+
var c = r.charCodeAt(r.length - 1);
|
|
1301
|
+
if (c >= 0xD800 && c <= 0xDBFF) {
|
|
1302
|
+
this.lastNeed = 2;
|
|
1303
|
+
this.lastTotal = 4;
|
|
1304
|
+
this.lastChar[0] = buf[buf.length - 2];
|
|
1305
|
+
this.lastChar[1] = buf[buf.length - 1];
|
|
1306
|
+
return r.slice(0, -1);
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
return r;
|
|
1310
|
+
}
|
|
1311
|
+
this.lastNeed = 1;
|
|
1312
|
+
this.lastTotal = 2;
|
|
1313
|
+
this.lastChar[0] = buf[buf.length - 1];
|
|
1314
|
+
return buf.toString('utf16le', i, buf.length - 1);
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
// For UTF-16LE we do not explicitly append special replacement characters if we
|
|
1318
|
+
// end on a partial character, we simply let v8 handle that.
|
|
1319
|
+
function utf16End(buf) {
|
|
1320
|
+
var r = buf && buf.length ? this.write(buf) : '';
|
|
1321
|
+
if (this.lastNeed) {
|
|
1322
|
+
var end = this.lastTotal - this.lastNeed;
|
|
1323
|
+
return r + this.lastChar.toString('utf16le', 0, end);
|
|
1324
|
+
}
|
|
1325
|
+
return r;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
function base64Text(buf, i) {
|
|
1329
|
+
var n = (buf.length - i) % 3;
|
|
1330
|
+
if (n === 0) return buf.toString('base64', i);
|
|
1331
|
+
this.lastNeed = 3 - n;
|
|
1332
|
+
this.lastTotal = 3;
|
|
1333
|
+
if (n === 1) {
|
|
1334
|
+
this.lastChar[0] = buf[buf.length - 1];
|
|
1335
|
+
} else {
|
|
1336
|
+
this.lastChar[0] = buf[buf.length - 2];
|
|
1337
|
+
this.lastChar[1] = buf[buf.length - 1];
|
|
1338
|
+
}
|
|
1339
|
+
return buf.toString('base64', i, buf.length - n);
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
function base64End(buf) {
|
|
1343
|
+
var r = buf && buf.length ? this.write(buf) : '';
|
|
1344
|
+
if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);
|
|
1345
|
+
return r;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)
|
|
1349
|
+
function simpleWrite(buf) {
|
|
1350
|
+
return buf.toString(this.encoding);
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
function simpleEnd(buf) {
|
|
1354
|
+
return buf && buf.length ? this.write(buf) : '';
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
/***/ }),
|
|
1358
|
+
|
|
1359
|
+
/***/ "7e84":
|
|
1360
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1361
|
+
|
|
1362
|
+
"use strict";
|
|
1363
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _getPrototypeOf; });
|
|
1364
|
+
function _getPrototypeOf(o) {
|
|
1365
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
1366
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
1367
|
+
};
|
|
1368
|
+
return _getPrototypeOf(o);
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
/***/ }),
|
|
1372
|
+
|
|
1373
|
+
/***/ "8034":
|
|
1374
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1375
|
+
|
|
1376
|
+
module.exports = { "default": __webpack_require__("a21f"), __esModule: true };
|
|
1377
|
+
|
|
1378
|
+
/***/ }),
|
|
1379
|
+
|
|
1380
|
+
/***/ "844f":
|
|
1381
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1382
|
+
|
|
1383
|
+
var sax = __webpack_require__("3171");
|
|
1384
|
+
var expat /*= require('node-expat');*/ = { on: function () { }, parse: function () { } };
|
|
1385
|
+
var helper = __webpack_require__("96c1");
|
|
1386
|
+
var isArray = __webpack_require__("9b12").isArray;
|
|
1387
|
+
|
|
1388
|
+
var options;
|
|
1389
|
+
var pureJsParser = true;
|
|
1390
|
+
var currentElement;
|
|
1391
|
+
|
|
1392
|
+
function validateOptions(userOptions) {
|
|
1393
|
+
options = helper.copyOptions(userOptions);
|
|
1394
|
+
helper.ensureFlagExists('ignoreDeclaration', options);
|
|
1395
|
+
helper.ensureFlagExists('ignoreInstruction', options);
|
|
1396
|
+
helper.ensureFlagExists('ignoreAttributes', options);
|
|
1397
|
+
helper.ensureFlagExists('ignoreText', options);
|
|
1398
|
+
helper.ensureFlagExists('ignoreComment', options);
|
|
1399
|
+
helper.ensureFlagExists('ignoreCdata', options);
|
|
1400
|
+
helper.ensureFlagExists('ignoreDoctype', options);
|
|
1401
|
+
helper.ensureFlagExists('compact', options);
|
|
1402
|
+
helper.ensureFlagExists('alwaysChildren', options);
|
|
1403
|
+
helper.ensureFlagExists('addParent', options);
|
|
1404
|
+
helper.ensureFlagExists('trim', options);
|
|
1405
|
+
helper.ensureFlagExists('nativeType', options);
|
|
1406
|
+
helper.ensureFlagExists('nativeTypeAttributes', options);
|
|
1407
|
+
helper.ensureFlagExists('sanitize', options);
|
|
1408
|
+
helper.ensureFlagExists('instructionHasAttributes', options);
|
|
1409
|
+
helper.ensureFlagExists('captureSpacesBetweenElements', options);
|
|
1410
|
+
helper.ensureAlwaysArrayExists(options);
|
|
1411
|
+
helper.ensureKeyExists('declaration', options);
|
|
1412
|
+
helper.ensureKeyExists('instruction', options);
|
|
1413
|
+
helper.ensureKeyExists('attributes', options);
|
|
1414
|
+
helper.ensureKeyExists('text', options);
|
|
1415
|
+
helper.ensureKeyExists('comment', options);
|
|
1416
|
+
helper.ensureKeyExists('cdata', options);
|
|
1417
|
+
helper.ensureKeyExists('doctype', options);
|
|
1418
|
+
helper.ensureKeyExists('type', options);
|
|
1419
|
+
helper.ensureKeyExists('name', options);
|
|
1420
|
+
helper.ensureKeyExists('elements', options);
|
|
1421
|
+
helper.ensureKeyExists('parent', options);
|
|
1422
|
+
helper.checkFnExists('doctype', options);
|
|
1423
|
+
helper.checkFnExists('instruction', options);
|
|
1424
|
+
helper.checkFnExists('cdata', options);
|
|
1425
|
+
helper.checkFnExists('comment', options);
|
|
1426
|
+
helper.checkFnExists('text', options);
|
|
1427
|
+
helper.checkFnExists('instructionName', options);
|
|
1428
|
+
helper.checkFnExists('elementName', options);
|
|
1429
|
+
helper.checkFnExists('attributeName', options);
|
|
1430
|
+
helper.checkFnExists('attributeValue', options);
|
|
1431
|
+
helper.checkFnExists('attributes', options);
|
|
1432
|
+
return options;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
function nativeType(value) {
|
|
1436
|
+
var nValue = Number(value);
|
|
1437
|
+
if (!isNaN(nValue)) {
|
|
1438
|
+
return nValue;
|
|
1439
|
+
}
|
|
1440
|
+
var bValue = value.toLowerCase();
|
|
1441
|
+
if (bValue === 'true') {
|
|
1442
|
+
return true;
|
|
1443
|
+
} else if (bValue === 'false') {
|
|
1444
|
+
return false;
|
|
1445
|
+
}
|
|
1446
|
+
return value;
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
function addField(type, value) {
|
|
1450
|
+
var key;
|
|
1451
|
+
if (options.compact) {
|
|
1452
|
+
if (
|
|
1453
|
+
!currentElement[options[type + 'Key']] &&
|
|
1454
|
+
(isArray(options.alwaysArray) ? options.alwaysArray.indexOf(options[type + 'Key']) !== -1 : options.alwaysArray)
|
|
1455
|
+
) {
|
|
1456
|
+
currentElement[options[type + 'Key']] = [];
|
|
1457
|
+
}
|
|
1458
|
+
if (currentElement[options[type + 'Key']] && !isArray(currentElement[options[type + 'Key']])) {
|
|
1459
|
+
currentElement[options[type + 'Key']] = [currentElement[options[type + 'Key']]];
|
|
1460
|
+
}
|
|
1461
|
+
if (type + 'Fn' in options && typeof value === 'string') {
|
|
1462
|
+
value = options[type + 'Fn'](value, currentElement);
|
|
1463
|
+
}
|
|
1464
|
+
if (type === 'instruction' && ('instructionFn' in options || 'instructionNameFn' in options)) {
|
|
1465
|
+
for (key in value) {
|
|
1466
|
+
if (value.hasOwnProperty(key)) {
|
|
1467
|
+
if ('instructionFn' in options) {
|
|
1468
|
+
value[key] = options.instructionFn(value[key], key, currentElement);
|
|
1469
|
+
} else {
|
|
1470
|
+
var temp = value[key];
|
|
1471
|
+
delete value[key];
|
|
1472
|
+
value[options.instructionNameFn(key, temp, currentElement)] = temp;
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
if (isArray(currentElement[options[type + 'Key']])) {
|
|
1478
|
+
currentElement[options[type + 'Key']].push(value);
|
|
1479
|
+
} else {
|
|
1480
|
+
currentElement[options[type + 'Key']] = value;
|
|
1481
|
+
}
|
|
1482
|
+
} else {
|
|
1483
|
+
if (!currentElement[options.elementsKey]) {
|
|
1484
|
+
currentElement[options.elementsKey] = [];
|
|
1485
|
+
}
|
|
1486
|
+
var element = {};
|
|
1487
|
+
element[options.typeKey] = type;
|
|
1488
|
+
if (type === 'instruction') {
|
|
1489
|
+
for (key in value) {
|
|
1490
|
+
if (value.hasOwnProperty(key)) {
|
|
1491
|
+
break;
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
element[options.nameKey] = 'instructionNameFn' in options ? options.instructionNameFn(key, value, currentElement) : key;
|
|
1495
|
+
if (options.instructionHasAttributes) {
|
|
1496
|
+
element[options.attributesKey] = value[key][options.attributesKey];
|
|
1497
|
+
if ('instructionFn' in options) {
|
|
1498
|
+
element[options.attributesKey] = options.instructionFn(element[options.attributesKey], key, currentElement);
|
|
1499
|
+
}
|
|
1500
|
+
} else {
|
|
1501
|
+
if ('instructionFn' in options) {
|
|
1502
|
+
value[key] = options.instructionFn(value[key], key, currentElement);
|
|
1503
|
+
}
|
|
1504
|
+
element[options.instructionKey] = value[key];
|
|
1505
|
+
}
|
|
1506
|
+
} else {
|
|
1507
|
+
if (type + 'Fn' in options) {
|
|
1508
|
+
value = options[type + 'Fn'](value, currentElement);
|
|
1509
|
+
}
|
|
1510
|
+
element[options[type + 'Key']] = value;
|
|
1511
|
+
}
|
|
1512
|
+
if (options.addParent) {
|
|
1513
|
+
element[options.parentKey] = currentElement;
|
|
1514
|
+
}
|
|
1515
|
+
currentElement[options.elementsKey].push(element);
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
function manipulateAttributes(attributes) {
|
|
1520
|
+
if ('attributesFn' in options && attributes) {
|
|
1521
|
+
attributes = options.attributesFn(attributes, currentElement);
|
|
1522
|
+
}
|
|
1523
|
+
if ((options.trim || 'attributeValueFn' in options || 'attributeNameFn' in options || options.nativeTypeAttributes) && attributes) {
|
|
1524
|
+
var key;
|
|
1525
|
+
for (key in attributes) {
|
|
1526
|
+
if (attributes.hasOwnProperty(key)) {
|
|
1527
|
+
if (options.trim) attributes[key] = attributes[key].trim();
|
|
1528
|
+
if (options.nativeTypeAttributes) {
|
|
1529
|
+
attributes[key] = nativeType(attributes[key]);
|
|
1530
|
+
}
|
|
1531
|
+
if ('attributeValueFn' in options) attributes[key] = options.attributeValueFn(attributes[key], key, currentElement);
|
|
1532
|
+
if ('attributeNameFn' in options) {
|
|
1533
|
+
var temp = attributes[key];
|
|
1534
|
+
delete attributes[key];
|
|
1535
|
+
attributes[options.attributeNameFn(key, attributes[key], currentElement)] = temp;
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
return attributes;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
function onInstruction(instruction) {
|
|
1544
|
+
var attributes = {};
|
|
1545
|
+
if (instruction.body && (instruction.name.toLowerCase() === 'xml' || options.instructionHasAttributes)) {
|
|
1546
|
+
var attrsRegExp = /([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;
|
|
1547
|
+
var match;
|
|
1548
|
+
while ((match = attrsRegExp.exec(instruction.body)) !== null) {
|
|
1549
|
+
attributes[match[1]] = match[2] || match[3] || match[4];
|
|
1550
|
+
}
|
|
1551
|
+
attributes = manipulateAttributes(attributes);
|
|
1552
|
+
}
|
|
1553
|
+
if (instruction.name.toLowerCase() === 'xml') {
|
|
1554
|
+
if (options.ignoreDeclaration) {
|
|
1555
|
+
return;
|
|
1556
|
+
}
|
|
1557
|
+
currentElement[options.declarationKey] = {};
|
|
1558
|
+
if (Object.keys(attributes).length) {
|
|
1559
|
+
currentElement[options.declarationKey][options.attributesKey] = attributes;
|
|
1560
|
+
}
|
|
1561
|
+
if (options.addParent) {
|
|
1562
|
+
currentElement[options.declarationKey][options.parentKey] = currentElement;
|
|
1563
|
+
}
|
|
1564
|
+
} else {
|
|
1565
|
+
if (options.ignoreInstruction) {
|
|
1566
|
+
return;
|
|
1567
|
+
}
|
|
1568
|
+
if (options.trim) {
|
|
1569
|
+
instruction.body = instruction.body.trim();
|
|
1570
|
+
}
|
|
1571
|
+
var value = {};
|
|
1572
|
+
if (options.instructionHasAttributes && Object.keys(attributes).length) {
|
|
1573
|
+
value[instruction.name] = {};
|
|
1574
|
+
value[instruction.name][options.attributesKey] = attributes;
|
|
1575
|
+
} else {
|
|
1576
|
+
value[instruction.name] = instruction.body;
|
|
1577
|
+
}
|
|
1578
|
+
addField('instruction', value);
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
function onStartElement(name, attributes) {
|
|
1583
|
+
var element;
|
|
1584
|
+
if (typeof name === 'object') {
|
|
1585
|
+
attributes = name.attributes;
|
|
1586
|
+
name = name.name;
|
|
1587
|
+
}
|
|
1588
|
+
attributes = manipulateAttributes(attributes);
|
|
1589
|
+
if ('elementNameFn' in options) {
|
|
1590
|
+
name = options.elementNameFn(name, currentElement);
|
|
1591
|
+
}
|
|
1592
|
+
if (options.compact) {
|
|
1593
|
+
element = {};
|
|
1594
|
+
if (!options.ignoreAttributes && attributes && Object.keys(attributes).length) {
|
|
1595
|
+
element[options.attributesKey] = {};
|
|
1596
|
+
var key;
|
|
1597
|
+
for (key in attributes) {
|
|
1598
|
+
if (attributes.hasOwnProperty(key)) {
|
|
1599
|
+
element[options.attributesKey][key] = attributes[key];
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
if (
|
|
1604
|
+
!(name in currentElement) &&
|
|
1605
|
+
(isArray(options.alwaysArray) ? options.alwaysArray.indexOf(name) !== -1 : options.alwaysArray)
|
|
1606
|
+
) {
|
|
1607
|
+
currentElement[name] = [];
|
|
1608
|
+
}
|
|
1609
|
+
if (currentElement[name] && !isArray(currentElement[name])) {
|
|
1610
|
+
currentElement[name] = [currentElement[name]];
|
|
1611
|
+
}
|
|
1612
|
+
if (isArray(currentElement[name])) {
|
|
1613
|
+
currentElement[name].push(element);
|
|
1614
|
+
} else {
|
|
1615
|
+
currentElement[name] = element;
|
|
1616
|
+
}
|
|
1617
|
+
} else {
|
|
1618
|
+
if (!currentElement[options.elementsKey]) {
|
|
1619
|
+
currentElement[options.elementsKey] = [];
|
|
1620
|
+
}
|
|
1621
|
+
element = {};
|
|
1622
|
+
element[options.typeKey] = 'element';
|
|
1623
|
+
element[options.nameKey] = name;
|
|
1624
|
+
if (!options.ignoreAttributes && attributes && Object.keys(attributes).length) {
|
|
1625
|
+
element[options.attributesKey] = attributes;
|
|
1626
|
+
}
|
|
1627
|
+
if (options.alwaysChildren) {
|
|
1628
|
+
element[options.elementsKey] = [];
|
|
1629
|
+
}
|
|
1630
|
+
currentElement[options.elementsKey].push(element);
|
|
1631
|
+
}
|
|
1632
|
+
element[options.parentKey] = currentElement; // will be deleted in onEndElement() if !options.addParent
|
|
1633
|
+
currentElement = element;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
function onText(text) {
|
|
1637
|
+
if (options.ignoreText) {
|
|
1638
|
+
return;
|
|
1639
|
+
}
|
|
1640
|
+
if (!text.trim() && !options.captureSpacesBetweenElements) {
|
|
1641
|
+
return;
|
|
1642
|
+
}
|
|
1643
|
+
if (options.trim) {
|
|
1644
|
+
text = text.trim();
|
|
1645
|
+
}
|
|
1646
|
+
if (options.nativeType) {
|
|
1647
|
+
text = nativeType(text);
|
|
1648
|
+
}
|
|
1649
|
+
if (options.sanitize) {
|
|
1650
|
+
text = text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
1651
|
+
}
|
|
1652
|
+
addField('text', text);
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
function onComment(comment) {
|
|
1656
|
+
if (options.ignoreComment) {
|
|
1657
|
+
return;
|
|
1658
|
+
}
|
|
1659
|
+
if (options.trim) {
|
|
1660
|
+
comment = comment.trim();
|
|
1661
|
+
}
|
|
1662
|
+
addField('comment', comment);
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
function onEndElement(name) {
|
|
1666
|
+
var parentElement = currentElement[options.parentKey];
|
|
1667
|
+
if (!options.addParent) {
|
|
1668
|
+
delete currentElement[options.parentKey];
|
|
1669
|
+
}
|
|
1670
|
+
currentElement = parentElement;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
function onCdata(cdata) {
|
|
1674
|
+
if (options.ignoreCdata) {
|
|
1675
|
+
return;
|
|
1676
|
+
}
|
|
1677
|
+
if (options.trim) {
|
|
1678
|
+
cdata = cdata.trim();
|
|
1679
|
+
}
|
|
1680
|
+
addField('cdata', cdata);
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
function onDoctype(doctype) {
|
|
1684
|
+
if (options.ignoreDoctype) {
|
|
1685
|
+
return;
|
|
1686
|
+
}
|
|
1687
|
+
doctype = doctype.replace(/^ /, '');
|
|
1688
|
+
if (options.trim) {
|
|
1689
|
+
doctype = doctype.trim();
|
|
1690
|
+
}
|
|
1691
|
+
addField('doctype', doctype);
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
function onError(error) {
|
|
1695
|
+
error.note = error; //console.error(error);
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
module.exports = function (xml, userOptions) {
|
|
1699
|
+
|
|
1700
|
+
var parser = pureJsParser ? sax.parser(true, {}) : parser = new expat.Parser('UTF-8');
|
|
1701
|
+
var result = {};
|
|
1702
|
+
currentElement = result;
|
|
1703
|
+
|
|
1704
|
+
options = validateOptions(userOptions);
|
|
1705
|
+
|
|
1706
|
+
if (pureJsParser) {
|
|
1707
|
+
parser.opt = {strictEntities: true};
|
|
1708
|
+
parser.onopentag = onStartElement;
|
|
1709
|
+
parser.ontext = onText;
|
|
1710
|
+
parser.oncomment = onComment;
|
|
1711
|
+
parser.onclosetag = onEndElement;
|
|
1712
|
+
parser.onerror = onError;
|
|
1713
|
+
parser.oncdata = onCdata;
|
|
1714
|
+
parser.ondoctype = onDoctype;
|
|
1715
|
+
parser.onprocessinginstruction = onInstruction;
|
|
1716
|
+
} else {
|
|
1717
|
+
parser.on('startElement', onStartElement);
|
|
1718
|
+
parser.on('text', onText);
|
|
1719
|
+
parser.on('comment', onComment);
|
|
1720
|
+
parser.on('endElement', onEndElement);
|
|
1721
|
+
parser.on('error', onError);
|
|
1722
|
+
//parser.on('startCdata', onStartCdata);
|
|
1723
|
+
//parser.on('endCdata', onEndCdata);
|
|
1724
|
+
//parser.on('entityDecl', onEntityDecl);
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
if (pureJsParser) {
|
|
1728
|
+
parser.write(xml).close();
|
|
1729
|
+
} else {
|
|
1730
|
+
if (!parser.parse(xml)) {
|
|
1731
|
+
throw new Error('XML parsing error: ' + parser.getError());
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
if (result[options.elementsKey]) {
|
|
1736
|
+
var temp = result[options.elementsKey];
|
|
1737
|
+
delete result[options.elementsKey];
|
|
1738
|
+
result[options.elementsKey] = temp;
|
|
1739
|
+
delete result.text;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
return result;
|
|
1743
|
+
|
|
1744
|
+
};
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
/***/ }),
|
|
1748
|
+
|
|
1749
|
+
/***/ "87075":
|
|
1750
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1751
|
+
|
|
1752
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
1753
|
+
/* eslint-disable node/no-deprecated-api */
|
|
1754
|
+
var buffer = __webpack_require__("b639")
|
|
1755
|
+
var Buffer = buffer.Buffer
|
|
1756
|
+
|
|
1757
|
+
// alternative to using Object.keys for old browsers
|
|
1758
|
+
function copyProps (src, dst) {
|
|
1759
|
+
for (var key in src) {
|
|
1760
|
+
dst[key] = src[key]
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
|
|
1764
|
+
module.exports = buffer
|
|
1765
|
+
} else {
|
|
1766
|
+
// Copy properties from require('buffer')
|
|
1767
|
+
copyProps(buffer, exports)
|
|
1768
|
+
exports.Buffer = SafeBuffer
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
function SafeBuffer (arg, encodingOrOffset, length) {
|
|
1772
|
+
return Buffer(arg, encodingOrOffset, length)
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
SafeBuffer.prototype = Object.create(Buffer.prototype)
|
|
1776
|
+
|
|
1777
|
+
// Copy static methods from Buffer
|
|
1778
|
+
copyProps(Buffer, SafeBuffer)
|
|
1779
|
+
|
|
1780
|
+
SafeBuffer.from = function (arg, encodingOrOffset, length) {
|
|
1781
|
+
if (typeof arg === 'number') {
|
|
1782
|
+
throw new TypeError('Argument must not be a number')
|
|
1783
|
+
}
|
|
1784
|
+
return Buffer(arg, encodingOrOffset, length)
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
SafeBuffer.alloc = function (size, fill, encoding) {
|
|
1788
|
+
if (typeof size !== 'number') {
|
|
1789
|
+
throw new TypeError('Argument must be a number')
|
|
1790
|
+
}
|
|
1791
|
+
var buf = Buffer(size)
|
|
1792
|
+
if (fill !== undefined) {
|
|
1793
|
+
if (typeof encoding === 'string') {
|
|
1794
|
+
buf.fill(fill, encoding)
|
|
1795
|
+
} else {
|
|
1796
|
+
buf.fill(fill)
|
|
1797
|
+
}
|
|
1798
|
+
} else {
|
|
1799
|
+
buf.fill(0)
|
|
1800
|
+
}
|
|
1801
|
+
return buf
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
SafeBuffer.allocUnsafe = function (size) {
|
|
1805
|
+
if (typeof size !== 'number') {
|
|
1806
|
+
throw new TypeError('Argument must be a number')
|
|
1807
|
+
}
|
|
1808
|
+
return Buffer(size)
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1811
|
+
SafeBuffer.allocUnsafeSlow = function (size) {
|
|
1812
|
+
if (typeof size !== 'number') {
|
|
1813
|
+
throw new TypeError('Argument must be a number')
|
|
1814
|
+
}
|
|
1815
|
+
return buffer.SlowBuffer(size)
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
/***/ }),
|
|
1820
|
+
|
|
1821
|
+
/***/ "9152":
|
|
1822
|
+
/***/ (function(module, exports) {
|
|
1823
|
+
|
|
1824
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
1825
|
+
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
|
|
1826
|
+
var e, m
|
|
1827
|
+
var eLen = (nBytes * 8) - mLen - 1
|
|
1828
|
+
var eMax = (1 << eLen) - 1
|
|
1829
|
+
var eBias = eMax >> 1
|
|
1830
|
+
var nBits = -7
|
|
1831
|
+
var i = isLE ? (nBytes - 1) : 0
|
|
1832
|
+
var d = isLE ? -1 : 1
|
|
1833
|
+
var s = buffer[offset + i]
|
|
1834
|
+
|
|
1835
|
+
i += d
|
|
1836
|
+
|
|
1837
|
+
e = s & ((1 << (-nBits)) - 1)
|
|
1838
|
+
s >>= (-nBits)
|
|
1839
|
+
nBits += eLen
|
|
1840
|
+
for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
|
|
1841
|
+
|
|
1842
|
+
m = e & ((1 << (-nBits)) - 1)
|
|
1843
|
+
e >>= (-nBits)
|
|
1844
|
+
nBits += mLen
|
|
1845
|
+
for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
|
|
1846
|
+
|
|
1847
|
+
if (e === 0) {
|
|
1848
|
+
e = 1 - eBias
|
|
1849
|
+
} else if (e === eMax) {
|
|
1850
|
+
return m ? NaN : ((s ? -1 : 1) * Infinity)
|
|
1851
|
+
} else {
|
|
1852
|
+
m = m + Math.pow(2, mLen)
|
|
1853
|
+
e = e - eBias
|
|
1854
|
+
}
|
|
1855
|
+
return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
1859
|
+
var e, m, c
|
|
1860
|
+
var eLen = (nBytes * 8) - mLen - 1
|
|
1861
|
+
var eMax = (1 << eLen) - 1
|
|
1862
|
+
var eBias = eMax >> 1
|
|
1863
|
+
var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
|
|
1864
|
+
var i = isLE ? 0 : (nBytes - 1)
|
|
1865
|
+
var d = isLE ? 1 : -1
|
|
1866
|
+
var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
|
|
1867
|
+
|
|
1868
|
+
value = Math.abs(value)
|
|
1869
|
+
|
|
1870
|
+
if (isNaN(value) || value === Infinity) {
|
|
1871
|
+
m = isNaN(value) ? 1 : 0
|
|
1872
|
+
e = eMax
|
|
1873
|
+
} else {
|
|
1874
|
+
e = Math.floor(Math.log(value) / Math.LN2)
|
|
1875
|
+
if (value * (c = Math.pow(2, -e)) < 1) {
|
|
1876
|
+
e--
|
|
1877
|
+
c *= 2
|
|
1878
|
+
}
|
|
1879
|
+
if (e + eBias >= 1) {
|
|
1880
|
+
value += rt / c
|
|
1881
|
+
} else {
|
|
1882
|
+
value += rt * Math.pow(2, 1 - eBias)
|
|
1883
|
+
}
|
|
1884
|
+
if (value * c >= 2) {
|
|
1885
|
+
e++
|
|
1886
|
+
c /= 2
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
if (e + eBias >= eMax) {
|
|
1890
|
+
m = 0
|
|
1891
|
+
e = eMax
|
|
1892
|
+
} else if (e + eBias >= 1) {
|
|
1893
|
+
m = ((value * c) - 1) * Math.pow(2, mLen)
|
|
1894
|
+
e = e + eBias
|
|
1895
|
+
} else {
|
|
1896
|
+
m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
|
|
1897
|
+
e = 0
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
|
|
1902
|
+
|
|
1903
|
+
e = (e << mLen) | m
|
|
1904
|
+
eLen += mLen
|
|
1905
|
+
for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
|
|
1906
|
+
|
|
1907
|
+
buffer[offset + i - d] |= s * 128
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
/***/ }),
|
|
1912
|
+
|
|
1913
|
+
/***/ "9243":
|
|
1914
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1915
|
+
|
|
1916
|
+
"use strict";
|
|
1917
|
+
|
|
1918
|
+
|
|
1919
|
+
exports.__esModule = true;
|
|
1920
|
+
exports.i18n = exports.use = exports.t = undefined;
|
|
1921
|
+
|
|
1922
|
+
var _getPrototypeOf = __webpack_require__("633f");
|
|
1923
|
+
|
|
1924
|
+
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
|
|
1925
|
+
|
|
1926
|
+
var _zhCN = __webpack_require__("11a6");
|
|
1927
|
+
|
|
1928
|
+
var _zhCN2 = _interopRequireDefault(_zhCN);
|
|
1929
|
+
|
|
1930
|
+
var _vue = __webpack_require__("8bbf");
|
|
1931
|
+
|
|
1932
|
+
var _vue2 = _interopRequireDefault(_vue);
|
|
1933
|
+
|
|
1934
|
+
var _deepmerge = __webpack_require__("3c4e");
|
|
1935
|
+
|
|
1936
|
+
var _deepmerge2 = _interopRequireDefault(_deepmerge);
|
|
1937
|
+
|
|
1938
|
+
var _format = __webpack_require__("949b");
|
|
1939
|
+
|
|
1940
|
+
var _format2 = _interopRequireDefault(_format);
|
|
1941
|
+
|
|
1942
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1943
|
+
|
|
1944
|
+
var format = (0, _format2.default)(_vue2.default);
|
|
1945
|
+
var lang = _zhCN2.default;
|
|
1946
|
+
var merged = false;
|
|
1947
|
+
var i18nHandler = function i18nHandler() {
|
|
1948
|
+
var vuei18n = (0, _getPrototypeOf2.default)(this || _vue2.default).$t;
|
|
1949
|
+
if (typeof vuei18n === 'function' && !!_vue2.default.locale) {
|
|
1950
|
+
if (!merged) {
|
|
1951
|
+
merged = true;
|
|
1952
|
+
_vue2.default.locale(_vue2.default.config.lang, (0, _deepmerge2.default)(lang, _vue2.default.locale(_vue2.default.config.lang) || {}, { clone: true }));
|
|
1953
|
+
}
|
|
1954
|
+
return vuei18n.apply(this, arguments);
|
|
1955
|
+
}
|
|
1956
|
+
};
|
|
1957
|
+
|
|
1958
|
+
var t = exports.t = function t(path, options) {
|
|
1959
|
+
var value = i18nHandler.apply(this, arguments);
|
|
1960
|
+
if (value !== null && value !== undefined) return value;
|
|
1961
|
+
|
|
1962
|
+
var array = path.split('.');
|
|
1963
|
+
var current = lang;
|
|
1964
|
+
|
|
1965
|
+
for (var i = 0, j = array.length; i < j; i++) {
|
|
1966
|
+
var property = array[i];
|
|
1967
|
+
value = current[property];
|
|
1968
|
+
if (i === j - 1) return format(value, options);
|
|
1969
|
+
if (!value) return '';
|
|
1970
|
+
current = value;
|
|
1971
|
+
}
|
|
1972
|
+
return '';
|
|
1973
|
+
};
|
|
1974
|
+
|
|
1975
|
+
var use = exports.use = function use(l) {
|
|
1976
|
+
lang = l || lang;
|
|
1977
|
+
};
|
|
1978
|
+
|
|
1979
|
+
var i18n = exports.i18n = function i18n(fn) {
|
|
1980
|
+
i18nHandler = fn || i18nHandler;
|
|
1981
|
+
};
|
|
1982
|
+
|
|
1983
|
+
exports.default = { use: use, t: t, i18n: i18n };
|
|
1984
|
+
|
|
1985
|
+
/***/ }),
|
|
1986
|
+
|
|
1987
|
+
/***/ "949b":
|
|
1988
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1989
|
+
|
|
1990
|
+
"use strict";
|
|
1991
|
+
|
|
1992
|
+
|
|
1993
|
+
exports.__esModule = true;
|
|
1994
|
+
|
|
1995
|
+
var _typeof2 = __webpack_require__("1098");
|
|
1996
|
+
|
|
1997
|
+
var _typeof3 = _interopRequireDefault(_typeof2);
|
|
1998
|
+
|
|
1999
|
+
exports.default = function () {
|
|
2000
|
+
|
|
2001
|
+
/**
|
|
2002
|
+
* template
|
|
2003
|
+
*
|
|
2004
|
+
* @param {String} string
|
|
2005
|
+
* @param {Array} ...args
|
|
2006
|
+
* @return {String}
|
|
2007
|
+
*/
|
|
2008
|
+
|
|
2009
|
+
function template(string) {
|
|
2010
|
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
2011
|
+
args[_key - 1] = arguments[_key];
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
if (args.length === 1 && (0, _typeof3.default)(args[0]) === 'object') {
|
|
2015
|
+
args = args[0];
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
if (!args || !args.hasOwnProperty) {
|
|
2019
|
+
args = {};
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
return string.replace(RE_NARGS, function (match, prefix, i, index) {
|
|
2023
|
+
var result = void 0;
|
|
2024
|
+
|
|
2025
|
+
if (string[index - 1] === '{' && string[index + match.length] === '}') {
|
|
2026
|
+
return i;
|
|
2027
|
+
} else {
|
|
2028
|
+
result = (0, _util.hasOwn)(args, i) ? args[i] : null;
|
|
2029
|
+
if (result === null || result === undefined) {
|
|
2030
|
+
return '';
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
return result;
|
|
2034
|
+
}
|
|
2035
|
+
});
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
return template;
|
|
2039
|
+
};
|
|
2040
|
+
|
|
2041
|
+
var _util = __webpack_require__("bf32");
|
|
2042
|
+
|
|
2043
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2044
|
+
|
|
2045
|
+
var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
|
|
2046
|
+
/**
|
|
2047
|
+
* String format template
|
|
2048
|
+
* - Inspired:
|
|
2049
|
+
* https://github.com/Matt-Esch/string-template/index.js
|
|
2050
|
+
*/
|
|
2051
|
+
|
|
2052
|
+
/***/ }),
|
|
2053
|
+
|
|
2054
|
+
/***/ "966d":
|
|
2055
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2056
|
+
|
|
2057
|
+
"use strict";
|
|
2058
|
+
/* WEBPACK VAR INJECTION */(function(process) {
|
|
2059
|
+
|
|
2060
|
+
if (typeof process === 'undefined' ||
|
|
2061
|
+
!process.version ||
|
|
2062
|
+
process.version.indexOf('v0.') === 0 ||
|
|
2063
|
+
process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {
|
|
2064
|
+
module.exports = { nextTick: nextTick };
|
|
2065
|
+
} else {
|
|
2066
|
+
module.exports = process
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
function nextTick(fn, arg1, arg2, arg3) {
|
|
2070
|
+
if (typeof fn !== 'function') {
|
|
2071
|
+
throw new TypeError('"callback" argument must be a function');
|
|
2072
|
+
}
|
|
2073
|
+
var len = arguments.length;
|
|
2074
|
+
var args, i;
|
|
2075
|
+
switch (len) {
|
|
2076
|
+
case 0:
|
|
2077
|
+
case 1:
|
|
2078
|
+
return process.nextTick(fn);
|
|
2079
|
+
case 2:
|
|
2080
|
+
return process.nextTick(function afterTickOne() {
|
|
2081
|
+
fn.call(null, arg1);
|
|
2082
|
+
});
|
|
2083
|
+
case 3:
|
|
2084
|
+
return process.nextTick(function afterTickTwo() {
|
|
2085
|
+
fn.call(null, arg1, arg2);
|
|
2086
|
+
});
|
|
2087
|
+
case 4:
|
|
2088
|
+
return process.nextTick(function afterTickThree() {
|
|
2089
|
+
fn.call(null, arg1, arg2, arg3);
|
|
2090
|
+
});
|
|
2091
|
+
default:
|
|
2092
|
+
args = new Array(len - 1);
|
|
2093
|
+
i = 0;
|
|
2094
|
+
while (i < args.length) {
|
|
2095
|
+
args[i++] = arguments[i];
|
|
2096
|
+
}
|
|
2097
|
+
return process.nextTick(function afterTick() {
|
|
2098
|
+
fn.apply(null, args);
|
|
2099
|
+
});
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
|
|
2104
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("f28c")))
|
|
2105
|
+
|
|
2106
|
+
/***/ }),
|
|
2107
|
+
|
|
2108
|
+
/***/ "96c1":
|
|
2109
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2110
|
+
|
|
2111
|
+
var isArray = __webpack_require__("9b12").isArray;
|
|
2112
|
+
|
|
2113
|
+
module.exports = {
|
|
2114
|
+
|
|
2115
|
+
copyOptions: function (options) {
|
|
2116
|
+
var key, copy = {};
|
|
2117
|
+
for (key in options) {
|
|
2118
|
+
if (options.hasOwnProperty(key)) {
|
|
2119
|
+
copy[key] = options[key];
|
|
2120
|
+
}
|
|
2121
|
+
}
|
|
2122
|
+
return copy;
|
|
2123
|
+
},
|
|
2124
|
+
|
|
2125
|
+
ensureFlagExists: function (item, options) {
|
|
2126
|
+
if (!(item in options) || typeof options[item] !== 'boolean') {
|
|
2127
|
+
options[item] = false;
|
|
2128
|
+
}
|
|
2129
|
+
},
|
|
2130
|
+
|
|
2131
|
+
ensureSpacesExists: function (options) {
|
|
2132
|
+
if (!('spaces' in options) || (typeof options.spaces !== 'number' && typeof options.spaces !== 'string')) {
|
|
2133
|
+
options.spaces = 0;
|
|
2134
|
+
}
|
|
2135
|
+
},
|
|
2136
|
+
|
|
2137
|
+
ensureAlwaysArrayExists: function (options) {
|
|
2138
|
+
if (!('alwaysArray' in options) || (typeof options.alwaysArray !== 'boolean' && !isArray(options.alwaysArray))) {
|
|
2139
|
+
options.alwaysArray = false;
|
|
2140
|
+
}
|
|
2141
|
+
},
|
|
2142
|
+
|
|
2143
|
+
ensureKeyExists: function (key, options) {
|
|
2144
|
+
if (!(key + 'Key' in options) || typeof options[key + 'Key'] !== 'string') {
|
|
2145
|
+
options[key + 'Key'] = options.compact ? '_' + key : key;
|
|
2146
|
+
}
|
|
2147
|
+
},
|
|
2148
|
+
|
|
2149
|
+
checkFnExists: function (key, options) {
|
|
2150
|
+
return key + 'Fn' in options;
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
};
|
|
2154
|
+
|
|
2155
|
+
|
|
2156
|
+
/***/ }),
|
|
2157
|
+
|
|
2158
|
+
/***/ "99de":
|
|
2159
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2160
|
+
|
|
2161
|
+
"use strict";
|
|
2162
|
+
|
|
2163
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
2164
|
+
var esm_typeof = __webpack_require__("53ca");
|
|
2165
|
+
|
|
2166
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
2167
|
+
function _assertThisInitialized(self) {
|
|
2168
|
+
if (self === void 0) {
|
|
2169
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2170
|
+
}
|
|
2171
|
+
return self;
|
|
2172
|
+
}
|
|
2173
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
2174
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _possibleConstructorReturn; });
|
|
2175
|
+
|
|
2176
|
+
|
|
2177
|
+
function _possibleConstructorReturn(self, call) {
|
|
2178
|
+
if (call && (Object(esm_typeof["a" /* default */])(call) === "object" || typeof call === "function")) {
|
|
2179
|
+
return call;
|
|
2180
|
+
} else if (call !== void 0) {
|
|
2181
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
2182
|
+
}
|
|
2183
|
+
return _assertThisInitialized(self);
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
/***/ }),
|
|
2187
|
+
|
|
2188
|
+
/***/ "9b12":
|
|
2189
|
+
/***/ (function(module, exports) {
|
|
2190
|
+
|
|
2191
|
+
module.exports = {
|
|
2192
|
+
|
|
2193
|
+
isArray: function(value) {
|
|
2194
|
+
if (Array.isArray) {
|
|
2195
|
+
return Array.isArray(value);
|
|
2196
|
+
}
|
|
2197
|
+
// fallback for older browsers like IE 8
|
|
2198
|
+
return Object.prototype.toString.call( value ) === '[object Array]';
|
|
2199
|
+
}
|
|
2200
|
+
|
|
2201
|
+
};
|
|
2202
|
+
|
|
2203
|
+
|
|
2204
|
+
/***/ }),
|
|
2205
|
+
|
|
2206
|
+
/***/ "a38e":
|
|
2207
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2208
|
+
|
|
2209
|
+
"use strict";
|
|
2210
|
+
|
|
2211
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
2212
|
+
var esm_typeof = __webpack_require__("53ca");
|
|
2213
|
+
|
|
2214
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
2215
|
+
|
|
2216
|
+
function _toPrimitive(input, hint) {
|
|
2217
|
+
if (Object(esm_typeof["a" /* default */])(input) !== "object" || input === null) return input;
|
|
2218
|
+
var prim = input[Symbol.toPrimitive];
|
|
2219
|
+
if (prim !== undefined) {
|
|
2220
|
+
var res = prim.call(input, hint || "default");
|
|
2221
|
+
if (Object(esm_typeof["a" /* default */])(res) !== "object") return res;
|
|
2222
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2223
|
+
}
|
|
2224
|
+
return (hint === "string" ? String : Number)(input);
|
|
2225
|
+
}
|
|
2226
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
2227
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toPropertyKey; });
|
|
2228
|
+
|
|
2229
|
+
|
|
2230
|
+
function _toPropertyKey(arg) {
|
|
2231
|
+
var key = _toPrimitive(arg, "string");
|
|
2232
|
+
return Object(esm_typeof["a" /* default */])(key) === "symbol" ? key : String(key);
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
/***/ }),
|
|
2236
|
+
|
|
2237
|
+
/***/ "a78e":
|
|
2238
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2239
|
+
|
|
2240
|
+
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
2241
|
+
* JavaScript Cookie v2.2.1
|
|
2242
|
+
* https://github.com/js-cookie/js-cookie
|
|
2243
|
+
*
|
|
2244
|
+
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
2245
|
+
* Released under the MIT license
|
|
2246
|
+
*/
|
|
2247
|
+
;(function (factory) {
|
|
2248
|
+
var registeredInModuleLoader;
|
|
2249
|
+
if (true) {
|
|
2250
|
+
!(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
2251
|
+
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
2252
|
+
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
|
|
2253
|
+
__WEBPACK_AMD_DEFINE_FACTORY__),
|
|
2254
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
2255
|
+
registeredInModuleLoader = true;
|
|
2256
|
+
}
|
|
2257
|
+
if (true) {
|
|
2258
|
+
module.exports = factory();
|
|
2259
|
+
registeredInModuleLoader = true;
|
|
2260
|
+
}
|
|
2261
|
+
if (!registeredInModuleLoader) {
|
|
2262
|
+
var OldCookies = window.Cookies;
|
|
2263
|
+
var api = window.Cookies = factory();
|
|
2264
|
+
api.noConflict = function () {
|
|
2265
|
+
window.Cookies = OldCookies;
|
|
2266
|
+
return api;
|
|
2267
|
+
};
|
|
2268
|
+
}
|
|
2269
|
+
}(function () {
|
|
2270
|
+
function extend () {
|
|
2271
|
+
var i = 0;
|
|
2272
|
+
var result = {};
|
|
2273
|
+
for (; i < arguments.length; i++) {
|
|
2274
|
+
var attributes = arguments[ i ];
|
|
2275
|
+
for (var key in attributes) {
|
|
2276
|
+
result[key] = attributes[key];
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
return result;
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2282
|
+
function decode (s) {
|
|
2283
|
+
return s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
function init (converter) {
|
|
2287
|
+
function api() {}
|
|
2288
|
+
|
|
2289
|
+
function set (key, value, attributes) {
|
|
2290
|
+
if (typeof document === 'undefined') {
|
|
2291
|
+
return;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
attributes = extend({
|
|
2295
|
+
path: '/'
|
|
2296
|
+
}, api.defaults, attributes);
|
|
2297
|
+
|
|
2298
|
+
if (typeof attributes.expires === 'number') {
|
|
2299
|
+
attributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
// We're using "expires" because "max-age" is not supported by IE
|
|
2303
|
+
attributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';
|
|
2304
|
+
|
|
2305
|
+
try {
|
|
2306
|
+
var result = JSON.stringify(value);
|
|
2307
|
+
if (/^[\{\[]/.test(result)) {
|
|
2308
|
+
value = result;
|
|
2309
|
+
}
|
|
2310
|
+
} catch (e) {}
|
|
2311
|
+
|
|
2312
|
+
value = converter.write ?
|
|
2313
|
+
converter.write(value, key) :
|
|
2314
|
+
encodeURIComponent(String(value))
|
|
2315
|
+
.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
|
|
2316
|
+
|
|
2317
|
+
key = encodeURIComponent(String(key))
|
|
2318
|
+
.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)
|
|
2319
|
+
.replace(/[\(\)]/g, escape);
|
|
2320
|
+
|
|
2321
|
+
var stringifiedAttributes = '';
|
|
2322
|
+
for (var attributeName in attributes) {
|
|
2323
|
+
if (!attributes[attributeName]) {
|
|
2324
|
+
continue;
|
|
2325
|
+
}
|
|
2326
|
+
stringifiedAttributes += '; ' + attributeName;
|
|
2327
|
+
if (attributes[attributeName] === true) {
|
|
2328
|
+
continue;
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
// Considers RFC 6265 section 5.2:
|
|
2332
|
+
// ...
|
|
2333
|
+
// 3. If the remaining unparsed-attributes contains a %x3B (";")
|
|
2334
|
+
// character:
|
|
2335
|
+
// Consume the characters of the unparsed-attributes up to,
|
|
2336
|
+
// not including, the first %x3B (";") character.
|
|
2337
|
+
// ...
|
|
2338
|
+
stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
return (document.cookie = key + '=' + value + stringifiedAttributes);
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
function get (key, json) {
|
|
2345
|
+
if (typeof document === 'undefined') {
|
|
2346
|
+
return;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2349
|
+
var jar = {};
|
|
2350
|
+
// To prevent the for loop in the first place assign an empty array
|
|
2351
|
+
// in case there are no cookies at all.
|
|
2352
|
+
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
|
2353
|
+
var i = 0;
|
|
2354
|
+
|
|
2355
|
+
for (; i < cookies.length; i++) {
|
|
2356
|
+
var parts = cookies[i].split('=');
|
|
2357
|
+
var cookie = parts.slice(1).join('=');
|
|
2358
|
+
|
|
2359
|
+
if (!json && cookie.charAt(0) === '"') {
|
|
2360
|
+
cookie = cookie.slice(1, -1);
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
try {
|
|
2364
|
+
var name = decode(parts[0]);
|
|
2365
|
+
cookie = (converter.read || converter)(cookie, name) ||
|
|
2366
|
+
decode(cookie);
|
|
2367
|
+
|
|
2368
|
+
if (json) {
|
|
2369
|
+
try {
|
|
2370
|
+
cookie = JSON.parse(cookie);
|
|
2371
|
+
} catch (e) {}
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
jar[name] = cookie;
|
|
2375
|
+
|
|
2376
|
+
if (key === name) {
|
|
2377
|
+
break;
|
|
2378
|
+
}
|
|
2379
|
+
} catch (e) {}
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
return key ? jar[key] : jar;
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
api.set = set;
|
|
2386
|
+
api.get = function (key) {
|
|
2387
|
+
return get(key, false /* read as raw */);
|
|
2388
|
+
};
|
|
2389
|
+
api.getJSON = function (key) {
|
|
2390
|
+
return get(key, true /* read as json */);
|
|
2391
|
+
};
|
|
2392
|
+
api.remove = function (key, attributes) {
|
|
2393
|
+
set(key, '', extend(attributes, {
|
|
2394
|
+
expires: -1
|
|
2395
|
+
}));
|
|
2396
|
+
};
|
|
2397
|
+
|
|
2398
|
+
api.defaults = {};
|
|
2399
|
+
|
|
2400
|
+
api.withConverter = init;
|
|
2401
|
+
|
|
2402
|
+
return api;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
return init(function () {});
|
|
2406
|
+
}));
|
|
2407
|
+
|
|
2408
|
+
|
|
2409
|
+
/***/ }),
|
|
2410
|
+
|
|
2411
|
+
/***/ "ade3":
|
|
2412
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2413
|
+
|
|
2414
|
+
"use strict";
|
|
2415
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
|
|
2416
|
+
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a38e");
|
|
2417
|
+
|
|
2418
|
+
function _defineProperty(obj, key, value) {
|
|
2419
|
+
key = Object(_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(key);
|
|
2420
|
+
if (key in obj) {
|
|
2421
|
+
Object.defineProperty(obj, key, {
|
|
2422
|
+
value: value,
|
|
2423
|
+
enumerable: true,
|
|
2424
|
+
configurable: true,
|
|
2425
|
+
writable: true
|
|
2426
|
+
});
|
|
2427
|
+
} else {
|
|
2428
|
+
obj[key] = value;
|
|
2429
|
+
}
|
|
2430
|
+
return obj;
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
/***/ }),
|
|
2434
|
+
|
|
2435
|
+
/***/ "b7d1":
|
|
2436
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2437
|
+
|
|
2438
|
+
/* WEBPACK VAR INJECTION */(function(global) {
|
|
2439
|
+
/**
|
|
2440
|
+
* Module exports.
|
|
2441
|
+
*/
|
|
2442
|
+
|
|
2443
|
+
module.exports = deprecate;
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* Mark that a method should not be used.
|
|
2447
|
+
* Returns a modified function which warns once by default.
|
|
2448
|
+
*
|
|
2449
|
+
* If `localStorage.noDeprecation = true` is set, then it is a no-op.
|
|
2450
|
+
*
|
|
2451
|
+
* If `localStorage.throwDeprecation = true` is set, then deprecated functions
|
|
2452
|
+
* will throw an Error when invoked.
|
|
2453
|
+
*
|
|
2454
|
+
* If `localStorage.traceDeprecation = true` is set, then deprecated functions
|
|
2455
|
+
* will invoke `console.trace()` instead of `console.error()`.
|
|
2456
|
+
*
|
|
2457
|
+
* @param {Function} fn - the function to deprecate
|
|
2458
|
+
* @param {String} msg - the string to print to the console when `fn` is invoked
|
|
2459
|
+
* @returns {Function} a new "deprecated" version of `fn`
|
|
2460
|
+
* @api public
|
|
2461
|
+
*/
|
|
2462
|
+
|
|
2463
|
+
function deprecate (fn, msg) {
|
|
2464
|
+
if (config('noDeprecation')) {
|
|
2465
|
+
return fn;
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
var warned = false;
|
|
2469
|
+
function deprecated() {
|
|
2470
|
+
if (!warned) {
|
|
2471
|
+
if (config('throwDeprecation')) {
|
|
2472
|
+
throw new Error(msg);
|
|
2473
|
+
} else if (config('traceDeprecation')) {
|
|
2474
|
+
console.trace(msg);
|
|
2475
|
+
} else {
|
|
2476
|
+
console.warn(msg);
|
|
2477
|
+
}
|
|
2478
|
+
warned = true;
|
|
2479
|
+
}
|
|
2480
|
+
return fn.apply(this, arguments);
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
return deprecated;
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
/**
|
|
2487
|
+
* Checks `localStorage` for boolean values for the given `name`.
|
|
2488
|
+
*
|
|
2489
|
+
* @param {String} name
|
|
2490
|
+
* @returns {Boolean}
|
|
2491
|
+
* @api private
|
|
2492
|
+
*/
|
|
2493
|
+
|
|
2494
|
+
function config (name) {
|
|
2495
|
+
// accessing global.localStorage can trigger a DOMException in sandboxed iframes
|
|
2496
|
+
try {
|
|
2497
|
+
if (!global.localStorage) return false;
|
|
2498
|
+
} catch (_) {
|
|
2499
|
+
return false;
|
|
2500
|
+
}
|
|
2501
|
+
var val = global.localStorage[name];
|
|
2502
|
+
if (null == val) return false;
|
|
2503
|
+
return String(val).toLowerCase() === 'true';
|
|
2504
|
+
}
|
|
2505
|
+
|
|
2506
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
|
|
2507
|
+
|
|
2508
|
+
/***/ }),
|
|
2509
|
+
|
|
2510
|
+
/***/ "bee2":
|
|
2511
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2512
|
+
|
|
2513
|
+
"use strict";
|
|
2514
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; });
|
|
2515
|
+
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a38e");
|
|
2516
|
+
|
|
2517
|
+
function _defineProperties(target, props) {
|
|
2518
|
+
for (var i = 0; i < props.length; i++) {
|
|
2519
|
+
var descriptor = props[i];
|
|
2520
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
2521
|
+
descriptor.configurable = true;
|
|
2522
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
2523
|
+
Object.defineProperty(target, Object(_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(descriptor.key), descriptor);
|
|
2524
|
+
}
|
|
2525
|
+
}
|
|
2526
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
2527
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
2528
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
2529
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
2530
|
+
writable: false
|
|
2531
|
+
});
|
|
2532
|
+
return Constructor;
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
/***/ }),
|
|
2536
|
+
|
|
2537
|
+
/***/ "bf32":
|
|
2538
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2539
|
+
|
|
2540
|
+
"use strict";
|
|
2541
|
+
|
|
2542
|
+
|
|
2543
|
+
exports.__esModule = true;
|
|
2544
|
+
exports.isEmpty = exports.isEqual = exports.arrayEquals = exports.looseEqual = exports.capitalize = exports.kebabCase = exports.autoprefixer = exports.isFirefox = exports.isEdge = exports.isIE = exports.coerceTruthyValueToArray = exports.arrayFind = exports.arrayFindIndex = exports.escapeRegexpString = exports.valueEquals = exports.generateId = exports.getValueByPath = undefined;
|
|
2545
|
+
|
|
2546
|
+
var _keys = __webpack_require__("1907");
|
|
2547
|
+
|
|
2548
|
+
var _keys2 = _interopRequireDefault(_keys);
|
|
2549
|
+
|
|
2550
|
+
var _stringify = __webpack_require__("8034");
|
|
2551
|
+
|
|
2552
|
+
var _stringify2 = _interopRequireDefault(_stringify);
|
|
2553
|
+
|
|
2554
|
+
var _typeof2 = __webpack_require__("1098");
|
|
2555
|
+
|
|
2556
|
+
var _typeof3 = _interopRequireDefault(_typeof2);
|
|
2557
|
+
|
|
2558
|
+
exports.noop = noop;
|
|
2559
|
+
exports.hasOwn = hasOwn;
|
|
2560
|
+
exports.toObject = toObject;
|
|
2561
|
+
exports.getPropByPath = getPropByPath;
|
|
2562
|
+
exports.rafThrottle = rafThrottle;
|
|
2563
|
+
exports.objToArray = objToArray;
|
|
2564
|
+
|
|
2565
|
+
var _vue = __webpack_require__("8bbf");
|
|
2566
|
+
|
|
2567
|
+
var _vue2 = _interopRequireDefault(_vue);
|
|
2568
|
+
|
|
2569
|
+
var _types = __webpack_require__("11bf");
|
|
2570
|
+
|
|
2571
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2572
|
+
|
|
2573
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2574
|
+
|
|
2575
|
+
function noop() {}
|
|
2576
|
+
|
|
2577
|
+
function hasOwn(obj, key) {
|
|
2578
|
+
return hasOwnProperty.call(obj, key);
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
function extend(to, _from) {
|
|
2582
|
+
for (var key in _from) {
|
|
2583
|
+
to[key] = _from[key];
|
|
2584
|
+
}
|
|
2585
|
+
return to;
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
function toObject(arr) {
|
|
2589
|
+
var res = {};
|
|
2590
|
+
for (var i = 0; i < arr.length; i++) {
|
|
2591
|
+
if (arr[i]) {
|
|
2592
|
+
extend(res, arr[i]);
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
return res;
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2598
|
+
var getValueByPath = exports.getValueByPath = function getValueByPath(object, prop) {
|
|
2599
|
+
prop = prop || '';
|
|
2600
|
+
var paths = prop.split('.');
|
|
2601
|
+
var current = object;
|
|
2602
|
+
var result = null;
|
|
2603
|
+
for (var i = 0, j = paths.length; i < j; i++) {
|
|
2604
|
+
var path = paths[i];
|
|
2605
|
+
if (!current) break;
|
|
2606
|
+
|
|
2607
|
+
if (i === j - 1) {
|
|
2608
|
+
result = current[path];
|
|
2609
|
+
break;
|
|
2610
|
+
}
|
|
2611
|
+
current = current[path];
|
|
2612
|
+
}
|
|
2613
|
+
return result;
|
|
2614
|
+
};
|
|
2615
|
+
|
|
2616
|
+
function getPropByPath(obj, path, strict) {
|
|
2617
|
+
var tempObj = obj;
|
|
2618
|
+
path = path.replace(/\[(\w+)\]/g, '.$1');
|
|
2619
|
+
path = path.replace(/^\./, '');
|
|
2620
|
+
|
|
2621
|
+
var keyArr = path.split('.');
|
|
2622
|
+
var i = 0;
|
|
2623
|
+
for (var len = keyArr.length; i < len - 1; ++i) {
|
|
2624
|
+
if (!tempObj && !strict) break;
|
|
2625
|
+
var key = keyArr[i];
|
|
2626
|
+
if (key in tempObj) {
|
|
2627
|
+
tempObj = tempObj[key];
|
|
2628
|
+
} else {
|
|
2629
|
+
if (strict) {
|
|
2630
|
+
throw new Error('please transfer a valid prop path to form item!');
|
|
2631
|
+
}
|
|
2632
|
+
break;
|
|
2633
|
+
}
|
|
2634
|
+
}
|
|
2635
|
+
return {
|
|
2636
|
+
o: tempObj,
|
|
2637
|
+
k: keyArr[i],
|
|
2638
|
+
v: tempObj ? tempObj[keyArr[i]] : null
|
|
2639
|
+
};
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2642
|
+
var generateId = exports.generateId = function generateId() {
|
|
2643
|
+
return Math.floor(Math.random() * 10000);
|
|
2644
|
+
};
|
|
2645
|
+
|
|
2646
|
+
var valueEquals = exports.valueEquals = function valueEquals(a, b) {
|
|
2647
|
+
// see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
|
|
2648
|
+
if (a === b) return true;
|
|
2649
|
+
if (!(a instanceof Array)) return false;
|
|
2650
|
+
if (!(b instanceof Array)) return false;
|
|
2651
|
+
if (a.length !== b.length) return false;
|
|
2652
|
+
for (var i = 0; i !== a.length; ++i) {
|
|
2653
|
+
if (a[i] !== b[i]) return false;
|
|
2654
|
+
}
|
|
2655
|
+
return true;
|
|
2656
|
+
};
|
|
2657
|
+
|
|
2658
|
+
var escapeRegexpString = exports.escapeRegexpString = function escapeRegexpString() {
|
|
2659
|
+
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
2660
|
+
return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
|
|
2661
|
+
};
|
|
2662
|
+
|
|
2663
|
+
// TODO: use native Array.find, Array.findIndex when IE support is dropped
|
|
2664
|
+
var arrayFindIndex = exports.arrayFindIndex = function arrayFindIndex(arr, pred) {
|
|
2665
|
+
for (var i = 0; i !== arr.length; ++i) {
|
|
2666
|
+
if (pred(arr[i])) {
|
|
2667
|
+
return i;
|
|
2668
|
+
}
|
|
2669
|
+
}
|
|
2670
|
+
return -1;
|
|
2671
|
+
};
|
|
2672
|
+
|
|
2673
|
+
var arrayFind = exports.arrayFind = function arrayFind(arr, pred) {
|
|
2674
|
+
var idx = arrayFindIndex(arr, pred);
|
|
2675
|
+
return idx !== -1 ? arr[idx] : undefined;
|
|
2676
|
+
};
|
|
2677
|
+
|
|
2678
|
+
// coerce truthy value to array
|
|
2679
|
+
var coerceTruthyValueToArray = exports.coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
|
|
2680
|
+
if (Array.isArray(val)) {
|
|
2681
|
+
return val;
|
|
2682
|
+
} else if (val) {
|
|
2683
|
+
return [val];
|
|
2684
|
+
} else {
|
|
2685
|
+
return [];
|
|
2686
|
+
}
|
|
2687
|
+
};
|
|
2688
|
+
|
|
2689
|
+
var isIE = exports.isIE = function isIE() {
|
|
2690
|
+
return !_vue2.default.prototype.$isServer && !isNaN(Number(document.documentMode));
|
|
2691
|
+
};
|
|
2692
|
+
|
|
2693
|
+
var isEdge = exports.isEdge = function isEdge() {
|
|
2694
|
+
return !_vue2.default.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
|
|
2695
|
+
};
|
|
2696
|
+
|
|
2697
|
+
var isFirefox = exports.isFirefox = function isFirefox() {
|
|
2698
|
+
return !_vue2.default.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
|
|
2699
|
+
};
|
|
2700
|
+
|
|
2701
|
+
var autoprefixer = exports.autoprefixer = function autoprefixer(style) {
|
|
2702
|
+
if ((typeof style === 'undefined' ? 'undefined' : (0, _typeof3.default)(style)) !== 'object') return style;
|
|
2703
|
+
var rules = ['transform', 'transition', 'animation'];
|
|
2704
|
+
var prefixes = ['ms-', 'webkit-'];
|
|
2705
|
+
rules.forEach(function (rule) {
|
|
2706
|
+
var value = style[rule];
|
|
2707
|
+
if (rule && value) {
|
|
2708
|
+
prefixes.forEach(function (prefix) {
|
|
2709
|
+
style[prefix + rule] = value;
|
|
2710
|
+
});
|
|
2711
|
+
}
|
|
2712
|
+
});
|
|
2713
|
+
return style;
|
|
2714
|
+
};
|
|
2715
|
+
|
|
2716
|
+
var kebabCase = exports.kebabCase = function kebabCase(str) {
|
|
2717
|
+
var hyphenateRE = /([^-])([A-Z])/g;
|
|
2718
|
+
return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
|
|
2719
|
+
};
|
|
2720
|
+
|
|
2721
|
+
var capitalize = exports.capitalize = function capitalize(str) {
|
|
2722
|
+
if (!(0, _types.isString)(str)) return str;
|
|
2723
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
2724
|
+
};
|
|
2725
|
+
|
|
2726
|
+
var looseEqual = exports.looseEqual = function looseEqual(a, b) {
|
|
2727
|
+
var isObjectA = (0, _types.isObject)(a);
|
|
2728
|
+
var isObjectB = (0, _types.isObject)(b);
|
|
2729
|
+
if (isObjectA && isObjectB) {
|
|
2730
|
+
return (0, _stringify2.default)(a) === (0, _stringify2.default)(b);
|
|
2731
|
+
} else if (!isObjectA && !isObjectB) {
|
|
2732
|
+
return String(a) === String(b);
|
|
2733
|
+
} else {
|
|
2734
|
+
return false;
|
|
2735
|
+
}
|
|
2736
|
+
};
|
|
2737
|
+
|
|
2738
|
+
var arrayEquals = exports.arrayEquals = function arrayEquals(arrayA, arrayB) {
|
|
2739
|
+
arrayA = arrayA || [];
|
|
2740
|
+
arrayB = arrayB || [];
|
|
2741
|
+
|
|
2742
|
+
if (arrayA.length !== arrayB.length) {
|
|
2743
|
+
return false;
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
for (var i = 0; i < arrayA.length; i++) {
|
|
2747
|
+
if (!looseEqual(arrayA[i], arrayB[i])) {
|
|
2748
|
+
return false;
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
return true;
|
|
2753
|
+
};
|
|
2754
|
+
|
|
2755
|
+
var isEqual = exports.isEqual = function isEqual(value1, value2) {
|
|
2756
|
+
if (Array.isArray(value1) && Array.isArray(value2)) {
|
|
2757
|
+
return arrayEquals(value1, value2);
|
|
2758
|
+
}
|
|
2759
|
+
return looseEqual(value1, value2);
|
|
2760
|
+
};
|
|
2761
|
+
|
|
2762
|
+
var isEmpty = exports.isEmpty = function isEmpty(val) {
|
|
2763
|
+
// null or undefined
|
|
2764
|
+
if (val == null) return true;
|
|
2765
|
+
|
|
2766
|
+
if (typeof val === 'boolean') return false;
|
|
2767
|
+
|
|
2768
|
+
if (typeof val === 'number') return !val;
|
|
2769
|
+
|
|
2770
|
+
if (val instanceof Error) return val.message === '';
|
|
2771
|
+
|
|
2772
|
+
switch (Object.prototype.toString.call(val)) {
|
|
2773
|
+
// String or Array
|
|
2774
|
+
case '[object String]':
|
|
2775
|
+
case '[object Array]':
|
|
2776
|
+
return !val.length;
|
|
2777
|
+
|
|
2778
|
+
// Map or Set or File
|
|
2779
|
+
case '[object File]':
|
|
2780
|
+
case '[object Map]':
|
|
2781
|
+
case '[object Set]':
|
|
2782
|
+
{
|
|
2783
|
+
return !val.size;
|
|
2784
|
+
}
|
|
2785
|
+
// Plain Object
|
|
2786
|
+
case '[object Object]':
|
|
2787
|
+
{
|
|
2788
|
+
return !(0, _keys2.default)(val).length;
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
return false;
|
|
2793
|
+
};
|
|
2794
|
+
|
|
2795
|
+
function rafThrottle(fn) {
|
|
2796
|
+
var locked = false;
|
|
2797
|
+
return function () {
|
|
2798
|
+
var _this = this;
|
|
2799
|
+
|
|
2800
|
+
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
2801
|
+
args[_key] = arguments[_key];
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
if (locked) return;
|
|
2805
|
+
locked = true;
|
|
2806
|
+
window.requestAnimationFrame(function () {
|
|
2807
|
+
fn.apply(_this, args);
|
|
2808
|
+
locked = false;
|
|
2809
|
+
});
|
|
2810
|
+
};
|
|
2811
|
+
}
|
|
2812
|
+
|
|
2813
|
+
function objToArray(obj) {
|
|
2814
|
+
if (Array.isArray(obj)) {
|
|
2815
|
+
return obj;
|
|
2816
|
+
}
|
|
2817
|
+
return isEmpty(obj) ? [] : [obj];
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
/***/ }),
|
|
2821
|
+
|
|
2822
|
+
/***/ "c51a":
|
|
2823
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2824
|
+
|
|
2825
|
+
/*jslint node:true */
|
|
2826
|
+
|
|
2827
|
+
var xml2js = __webpack_require__("844f");
|
|
2828
|
+
var xml2json = __webpack_require__("078a");
|
|
2829
|
+
var js2xml = __webpack_require__("cef9");
|
|
2830
|
+
var json2xml = __webpack_require__("493b");
|
|
2831
|
+
|
|
2832
|
+
module.exports = {
|
|
2833
|
+
xml2js: xml2js,
|
|
2834
|
+
xml2json: xml2json,
|
|
2835
|
+
js2xml: js2xml,
|
|
2836
|
+
json2xml: json2xml
|
|
2837
|
+
};
|
|
2838
|
+
|
|
2839
|
+
|
|
2840
|
+
/***/ }),
|
|
2841
|
+
|
|
2842
|
+
/***/ "c8ba":
|
|
2843
|
+
/***/ (function(module, exports) {
|
|
2844
|
+
|
|
2845
|
+
var g;
|
|
2846
|
+
|
|
2847
|
+
// This works in non-strict mode
|
|
2848
|
+
g = (function() {
|
|
2849
|
+
return this;
|
|
2850
|
+
})();
|
|
2851
|
+
|
|
2852
|
+
try {
|
|
2853
|
+
// This works if eval is allowed (see CSP)
|
|
2854
|
+
g = g || new Function("return this")();
|
|
2855
|
+
} catch (e) {
|
|
2856
|
+
// This works if the window reference is available
|
|
2857
|
+
if (typeof window === "object") g = window;
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
// g can still be undefined, but nothing to do about it...
|
|
2861
|
+
// We return undefined, instead of nothing here, so it's
|
|
2862
|
+
// easier to handle this case. if(!global) { ...}
|
|
2863
|
+
|
|
2864
|
+
module.exports = g;
|
|
2865
|
+
|
|
2866
|
+
|
|
2867
|
+
/***/ }),
|
|
2868
|
+
|
|
2869
|
+
/***/ "cef9":
|
|
2870
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2871
|
+
|
|
2872
|
+
var helper = __webpack_require__("96c1");
|
|
2873
|
+
var isArray = __webpack_require__("9b12").isArray;
|
|
2874
|
+
|
|
2875
|
+
var currentElement, currentElementName;
|
|
2876
|
+
|
|
2877
|
+
function validateOptions(userOptions) {
|
|
2878
|
+
var options = helper.copyOptions(userOptions);
|
|
2879
|
+
helper.ensureFlagExists('ignoreDeclaration', options);
|
|
2880
|
+
helper.ensureFlagExists('ignoreInstruction', options);
|
|
2881
|
+
helper.ensureFlagExists('ignoreAttributes', options);
|
|
2882
|
+
helper.ensureFlagExists('ignoreText', options);
|
|
2883
|
+
helper.ensureFlagExists('ignoreComment', options);
|
|
2884
|
+
helper.ensureFlagExists('ignoreCdata', options);
|
|
2885
|
+
helper.ensureFlagExists('ignoreDoctype', options);
|
|
2886
|
+
helper.ensureFlagExists('compact', options);
|
|
2887
|
+
helper.ensureFlagExists('indentText', options);
|
|
2888
|
+
helper.ensureFlagExists('indentCdata', options);
|
|
2889
|
+
helper.ensureFlagExists('indentAttributes', options);
|
|
2890
|
+
helper.ensureFlagExists('indentInstruction', options);
|
|
2891
|
+
helper.ensureFlagExists('fullTagEmptyElement', options);
|
|
2892
|
+
helper.ensureFlagExists('noQuotesForNativeAttributes', options);
|
|
2893
|
+
helper.ensureSpacesExists(options);
|
|
2894
|
+
if (typeof options.spaces === 'number') {
|
|
2895
|
+
options.spaces = Array(options.spaces + 1).join(' ');
|
|
2896
|
+
}
|
|
2897
|
+
helper.ensureKeyExists('declaration', options);
|
|
2898
|
+
helper.ensureKeyExists('instruction', options);
|
|
2899
|
+
helper.ensureKeyExists('attributes', options);
|
|
2900
|
+
helper.ensureKeyExists('text', options);
|
|
2901
|
+
helper.ensureKeyExists('comment', options);
|
|
2902
|
+
helper.ensureKeyExists('cdata', options);
|
|
2903
|
+
helper.ensureKeyExists('doctype', options);
|
|
2904
|
+
helper.ensureKeyExists('type', options);
|
|
2905
|
+
helper.ensureKeyExists('name', options);
|
|
2906
|
+
helper.ensureKeyExists('elements', options);
|
|
2907
|
+
helper.checkFnExists('doctype', options);
|
|
2908
|
+
helper.checkFnExists('instruction', options);
|
|
2909
|
+
helper.checkFnExists('cdata', options);
|
|
2910
|
+
helper.checkFnExists('comment', options);
|
|
2911
|
+
helper.checkFnExists('text', options);
|
|
2912
|
+
helper.checkFnExists('instructionName', options);
|
|
2913
|
+
helper.checkFnExists('elementName', options);
|
|
2914
|
+
helper.checkFnExists('attributeName', options);
|
|
2915
|
+
helper.checkFnExists('attributeValue', options);
|
|
2916
|
+
helper.checkFnExists('attributes', options);
|
|
2917
|
+
helper.checkFnExists('fullTagEmptyElement', options);
|
|
2918
|
+
return options;
|
|
2919
|
+
}
|
|
2920
|
+
|
|
2921
|
+
function writeIndentation(options, depth, firstLine) {
|
|
2922
|
+
return (!firstLine && options.spaces ? '\n' : '') + Array(depth + 1).join(options.spaces);
|
|
2923
|
+
}
|
|
2924
|
+
|
|
2925
|
+
function writeAttributes(attributes, options, depth) {
|
|
2926
|
+
if (options.ignoreAttributes) {
|
|
2927
|
+
return '';
|
|
2928
|
+
}
|
|
2929
|
+
if ('attributesFn' in options) {
|
|
2930
|
+
attributes = options.attributesFn(attributes, currentElementName, currentElement);
|
|
2931
|
+
}
|
|
2932
|
+
var key, attr, attrName, quote, result = [];
|
|
2933
|
+
for (key in attributes) {
|
|
2934
|
+
if (attributes.hasOwnProperty(key) && attributes[key] !== null && attributes[key] !== undefined) {
|
|
2935
|
+
quote = options.noQuotesForNativeAttributes && typeof attributes[key] !== 'string' ? '' : '"';
|
|
2936
|
+
attr = '' + attributes[key]; // ensure number and boolean are converted to String
|
|
2937
|
+
attr = attr.replace(/"/g, '"');
|
|
2938
|
+
attrName = 'attributeNameFn' in options ? options.attributeNameFn(key, attr, currentElementName, currentElement) : key;
|
|
2939
|
+
result.push((options.spaces && options.indentAttributes? writeIndentation(options, depth+1, false) : ' '));
|
|
2940
|
+
result.push(attrName + '=' + quote + ('attributeValueFn' in options ? options.attributeValueFn(attr, key, currentElementName, currentElement) : attr) + quote);
|
|
2941
|
+
}
|
|
2942
|
+
}
|
|
2943
|
+
if (attributes && Object.keys(attributes).length && options.spaces && options.indentAttributes) {
|
|
2944
|
+
result.push(writeIndentation(options, depth, false));
|
|
2945
|
+
}
|
|
2946
|
+
return result.join('');
|
|
2947
|
+
}
|
|
2948
|
+
|
|
2949
|
+
function writeDeclaration(declaration, options, depth) {
|
|
2950
|
+
currentElement = declaration;
|
|
2951
|
+
currentElementName = 'xml';
|
|
2952
|
+
return options.ignoreDeclaration ? '' : '<?' + 'xml' + writeAttributes(declaration[options.attributesKey], options, depth) + '?>';
|
|
2953
|
+
}
|
|
2954
|
+
|
|
2955
|
+
function writeInstruction(instruction, options, depth) {
|
|
2956
|
+
if (options.ignoreInstruction) {
|
|
2957
|
+
return '';
|
|
2958
|
+
}
|
|
2959
|
+
var key;
|
|
2960
|
+
for (key in instruction) {
|
|
2961
|
+
if (instruction.hasOwnProperty(key)) {
|
|
2962
|
+
break;
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
var instructionName = 'instructionNameFn' in options ? options.instructionNameFn(key, instruction[key], currentElementName, currentElement) : key;
|
|
2966
|
+
if (typeof instruction[key] === 'object') {
|
|
2967
|
+
currentElement = instruction;
|
|
2968
|
+
currentElementName = instructionName;
|
|
2969
|
+
return '<?' + instructionName + writeAttributes(instruction[key][options.attributesKey], options, depth) + '?>';
|
|
2970
|
+
} else {
|
|
2971
|
+
var instructionValue = instruction[key] ? instruction[key] : '';
|
|
2972
|
+
if ('instructionFn' in options) instructionValue = options.instructionFn(instructionValue, key, currentElementName, currentElement);
|
|
2973
|
+
return '<?' + instructionName + (instructionValue ? ' ' + instructionValue : '') + '?>';
|
|
2974
|
+
}
|
|
2975
|
+
}
|
|
2976
|
+
|
|
2977
|
+
function writeComment(comment, options) {
|
|
2978
|
+
return options.ignoreComment ? '' : '<!--' + ('commentFn' in options ? options.commentFn(comment, currentElementName, currentElement) : comment) + '-->';
|
|
2979
|
+
}
|
|
2980
|
+
|
|
2981
|
+
function writeCdata(cdata, options) {
|
|
2982
|
+
return options.ignoreCdata ? '' : '<![CDATA[' + ('cdataFn' in options ? options.cdataFn(cdata, currentElementName, currentElement) : cdata.replace(']]>', ']]]]><![CDATA[>')) + ']]>';
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2985
|
+
function writeDoctype(doctype, options) {
|
|
2986
|
+
return options.ignoreDoctype ? '' : '<!DOCTYPE ' + ('doctypeFn' in options ? options.doctypeFn(doctype, currentElementName, currentElement) : doctype) + '>';
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
function writeText(text, options) {
|
|
2990
|
+
if (options.ignoreText) return '';
|
|
2991
|
+
text = '' + text; // ensure Number and Boolean are converted to String
|
|
2992
|
+
text = text.replace(/&/g, '&'); // desanitize to avoid double sanitization
|
|
2993
|
+
text = text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
2994
|
+
return 'textFn' in options ? options.textFn(text, currentElementName, currentElement) : text;
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
function hasContent(element, options) {
|
|
2998
|
+
var i;
|
|
2999
|
+
if (element.elements && element.elements.length) {
|
|
3000
|
+
for (i = 0; i < element.elements.length; ++i) {
|
|
3001
|
+
switch (element.elements[i][options.typeKey]) {
|
|
3002
|
+
case 'text':
|
|
3003
|
+
if (options.indentText) {
|
|
3004
|
+
return true;
|
|
3005
|
+
}
|
|
3006
|
+
break; // skip to next key
|
|
3007
|
+
case 'cdata':
|
|
3008
|
+
if (options.indentCdata) {
|
|
3009
|
+
return true;
|
|
3010
|
+
}
|
|
3011
|
+
break; // skip to next key
|
|
3012
|
+
case 'instruction':
|
|
3013
|
+
if (options.indentInstruction) {
|
|
3014
|
+
return true;
|
|
3015
|
+
}
|
|
3016
|
+
break; // skip to next key
|
|
3017
|
+
case 'doctype':
|
|
3018
|
+
case 'comment':
|
|
3019
|
+
case 'element':
|
|
3020
|
+
return true;
|
|
3021
|
+
default:
|
|
3022
|
+
return true;
|
|
3023
|
+
}
|
|
3024
|
+
}
|
|
3025
|
+
}
|
|
3026
|
+
return false;
|
|
3027
|
+
}
|
|
3028
|
+
|
|
3029
|
+
function writeElement(element, options, depth) {
|
|
3030
|
+
currentElement = element;
|
|
3031
|
+
currentElementName = element.name;
|
|
3032
|
+
var xml = [], elementName = 'elementNameFn' in options ? options.elementNameFn(element.name, element) : element.name;
|
|
3033
|
+
xml.push('<' + elementName);
|
|
3034
|
+
if (element[options.attributesKey]) {
|
|
3035
|
+
xml.push(writeAttributes(element[options.attributesKey], options, depth));
|
|
3036
|
+
}
|
|
3037
|
+
var withClosingTag = element[options.elementsKey] && element[options.elementsKey].length || element[options.attributesKey] && element[options.attributesKey]['xml:space'] === 'preserve';
|
|
3038
|
+
if (!withClosingTag) {
|
|
3039
|
+
if ('fullTagEmptyElementFn' in options) {
|
|
3040
|
+
withClosingTag = options.fullTagEmptyElementFn(element.name, element);
|
|
3041
|
+
} else {
|
|
3042
|
+
withClosingTag = options.fullTagEmptyElement;
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
if (withClosingTag) {
|
|
3046
|
+
xml.push('>');
|
|
3047
|
+
if (element[options.elementsKey] && element[options.elementsKey].length) {
|
|
3048
|
+
xml.push(writeElements(element[options.elementsKey], options, depth + 1));
|
|
3049
|
+
currentElement = element;
|
|
3050
|
+
currentElementName = element.name;
|
|
3051
|
+
}
|
|
3052
|
+
xml.push(options.spaces && hasContent(element, options) ? '\n' + Array(depth + 1).join(options.spaces) : '');
|
|
3053
|
+
xml.push('</' + elementName + '>');
|
|
3054
|
+
} else {
|
|
3055
|
+
xml.push('/>');
|
|
3056
|
+
}
|
|
3057
|
+
return xml.join('');
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
function writeElements(elements, options, depth, firstLine) {
|
|
3061
|
+
return elements.reduce(function (xml, element) {
|
|
3062
|
+
var indent = writeIndentation(options, depth, firstLine && !xml);
|
|
3063
|
+
switch (element.type) {
|
|
3064
|
+
case 'element': return xml + indent + writeElement(element, options, depth);
|
|
3065
|
+
case 'comment': return xml + indent + writeComment(element[options.commentKey], options);
|
|
3066
|
+
case 'doctype': return xml + indent + writeDoctype(element[options.doctypeKey], options);
|
|
3067
|
+
case 'cdata': return xml + (options.indentCdata ? indent : '') + writeCdata(element[options.cdataKey], options);
|
|
3068
|
+
case 'text': return xml + (options.indentText ? indent : '') + writeText(element[options.textKey], options);
|
|
3069
|
+
case 'instruction':
|
|
3070
|
+
var instruction = {};
|
|
3071
|
+
instruction[element[options.nameKey]] = element[options.attributesKey] ? element : element[options.instructionKey];
|
|
3072
|
+
return xml + (options.indentInstruction ? indent : '') + writeInstruction(instruction, options, depth);
|
|
3073
|
+
}
|
|
3074
|
+
}, '');
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
function hasContentCompact(element, options, anyContent) {
|
|
3078
|
+
var key;
|
|
3079
|
+
for (key in element) {
|
|
3080
|
+
if (element.hasOwnProperty(key)) {
|
|
3081
|
+
switch (key) {
|
|
3082
|
+
case options.parentKey:
|
|
3083
|
+
case options.attributesKey:
|
|
3084
|
+
break; // skip to next key
|
|
3085
|
+
case options.textKey:
|
|
3086
|
+
if (options.indentText || anyContent) {
|
|
3087
|
+
return true;
|
|
3088
|
+
}
|
|
3089
|
+
break; // skip to next key
|
|
3090
|
+
case options.cdataKey:
|
|
3091
|
+
if (options.indentCdata || anyContent) {
|
|
3092
|
+
return true;
|
|
3093
|
+
}
|
|
3094
|
+
break; // skip to next key
|
|
3095
|
+
case options.instructionKey:
|
|
3096
|
+
if (options.indentInstruction || anyContent) {
|
|
3097
|
+
return true;
|
|
3098
|
+
}
|
|
3099
|
+
break; // skip to next key
|
|
3100
|
+
case options.doctypeKey:
|
|
3101
|
+
case options.commentKey:
|
|
3102
|
+
return true;
|
|
3103
|
+
default:
|
|
3104
|
+
return true;
|
|
3105
|
+
}
|
|
3106
|
+
}
|
|
3107
|
+
}
|
|
3108
|
+
return false;
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3111
|
+
function writeElementCompact(element, name, options, depth, indent) {
|
|
3112
|
+
currentElement = element;
|
|
3113
|
+
currentElementName = name;
|
|
3114
|
+
var elementName = 'elementNameFn' in options ? options.elementNameFn(name, element) : name;
|
|
3115
|
+
if (typeof element === 'undefined' || element === null || element === '') {
|
|
3116
|
+
return 'fullTagEmptyElementFn' in options && options.fullTagEmptyElementFn(name, element) || options.fullTagEmptyElement ? '<' + elementName + '></' + elementName + '>' : '<' + elementName + '/>';
|
|
3117
|
+
}
|
|
3118
|
+
var xml = [];
|
|
3119
|
+
if (name) {
|
|
3120
|
+
xml.push('<' + elementName);
|
|
3121
|
+
if (typeof element !== 'object') {
|
|
3122
|
+
xml.push('>' + writeText(element,options) + '</' + elementName + '>');
|
|
3123
|
+
return xml.join('');
|
|
3124
|
+
}
|
|
3125
|
+
if (element[options.attributesKey]) {
|
|
3126
|
+
xml.push(writeAttributes(element[options.attributesKey], options, depth));
|
|
3127
|
+
}
|
|
3128
|
+
var withClosingTag = hasContentCompact(element, options, true) || element[options.attributesKey] && element[options.attributesKey]['xml:space'] === 'preserve';
|
|
3129
|
+
if (!withClosingTag) {
|
|
3130
|
+
if ('fullTagEmptyElementFn' in options) {
|
|
3131
|
+
withClosingTag = options.fullTagEmptyElementFn(name, element);
|
|
3132
|
+
} else {
|
|
3133
|
+
withClosingTag = options.fullTagEmptyElement;
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3136
|
+
if (withClosingTag) {
|
|
3137
|
+
xml.push('>');
|
|
3138
|
+
} else {
|
|
3139
|
+
xml.push('/>');
|
|
3140
|
+
return xml.join('');
|
|
3141
|
+
}
|
|
3142
|
+
}
|
|
3143
|
+
xml.push(writeElementsCompact(element, options, depth + 1, false));
|
|
3144
|
+
currentElement = element;
|
|
3145
|
+
currentElementName = name;
|
|
3146
|
+
if (name) {
|
|
3147
|
+
xml.push((indent ? writeIndentation(options, depth, false) : '') + '</' + elementName + '>');
|
|
3148
|
+
}
|
|
3149
|
+
return xml.join('');
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
function writeElementsCompact(element, options, depth, firstLine) {
|
|
3153
|
+
var i, key, nodes, xml = [];
|
|
3154
|
+
for (key in element) {
|
|
3155
|
+
if (element.hasOwnProperty(key)) {
|
|
3156
|
+
nodes = isArray(element[key]) ? element[key] : [element[key]];
|
|
3157
|
+
for (i = 0; i < nodes.length; ++i) {
|
|
3158
|
+
switch (key) {
|
|
3159
|
+
case options.declarationKey: xml.push(writeDeclaration(nodes[i], options, depth)); break;
|
|
3160
|
+
case options.instructionKey: xml.push((options.indentInstruction ? writeIndentation(options, depth, firstLine) : '') + writeInstruction(nodes[i], options, depth)); break;
|
|
3161
|
+
case options.attributesKey: case options.parentKey: break; // skip
|
|
3162
|
+
case options.textKey: xml.push((options.indentText ? writeIndentation(options, depth, firstLine) : '') + writeText(nodes[i], options)); break;
|
|
3163
|
+
case options.cdataKey: xml.push((options.indentCdata ? writeIndentation(options, depth, firstLine) : '') + writeCdata(nodes[i], options)); break;
|
|
3164
|
+
case options.doctypeKey: xml.push(writeIndentation(options, depth, firstLine) + writeDoctype(nodes[i], options)); break;
|
|
3165
|
+
case options.commentKey: xml.push(writeIndentation(options, depth, firstLine) + writeComment(nodes[i], options)); break;
|
|
3166
|
+
default: xml.push(writeIndentation(options, depth, firstLine) + writeElementCompact(nodes[i], key, options, depth, hasContentCompact(nodes[i], options)));
|
|
3167
|
+
}
|
|
3168
|
+
firstLine = firstLine && !xml.length;
|
|
3169
|
+
}
|
|
3170
|
+
}
|
|
3171
|
+
}
|
|
3172
|
+
return xml.join('');
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
module.exports = function (js, options) {
|
|
3176
|
+
options = validateOptions(options);
|
|
3177
|
+
var xml = [];
|
|
3178
|
+
currentElement = js;
|
|
3179
|
+
currentElementName = '_root_';
|
|
3180
|
+
if (options.compact) {
|
|
3181
|
+
xml.push(writeElementsCompact(js, options, 0, true));
|
|
3182
|
+
} else {
|
|
3183
|
+
if (js[options.declarationKey]) {
|
|
3184
|
+
xml.push(writeDeclaration(js[options.declarationKey], options, 0));
|
|
3185
|
+
}
|
|
3186
|
+
if (js[options.elementsKey] && js[options.elementsKey].length) {
|
|
3187
|
+
xml.push(writeElements(js[options.elementsKey], options, 0, !xml.length));
|
|
3188
|
+
}
|
|
3189
|
+
}
|
|
3190
|
+
return xml.join('');
|
|
3191
|
+
};
|
|
3192
|
+
|
|
3193
|
+
|
|
3194
|
+
/***/ }),
|
|
3195
|
+
|
|
3196
|
+
/***/ "d485":
|
|
3197
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3198
|
+
|
|
3199
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
3200
|
+
//
|
|
3201
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
3202
|
+
// copy of this software and associated documentation files (the
|
|
3203
|
+
// "Software"), to deal in the Software without restriction, including
|
|
3204
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
3205
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
3206
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
3207
|
+
// following conditions:
|
|
3208
|
+
//
|
|
3209
|
+
// The above copyright notice and this permission notice shall be included
|
|
3210
|
+
// in all copies or substantial portions of the Software.
|
|
3211
|
+
//
|
|
3212
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
3213
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
3214
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
3215
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
3216
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
3217
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
3218
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
3219
|
+
|
|
3220
|
+
module.exports = Stream;
|
|
3221
|
+
|
|
3222
|
+
var EE = __webpack_require__("faa1").EventEmitter;
|
|
3223
|
+
var inherits = __webpack_require__("3fb5");
|
|
3224
|
+
|
|
3225
|
+
inherits(Stream, EE);
|
|
3226
|
+
Stream.Readable = __webpack_require__("e372");
|
|
3227
|
+
Stream.Writable = __webpack_require__("2c63");
|
|
3228
|
+
Stream.Duplex = __webpack_require__("0960");
|
|
3229
|
+
Stream.Transform = __webpack_require__("d17b");
|
|
3230
|
+
Stream.PassThrough = __webpack_require__("c2ae");
|
|
3231
|
+
|
|
3232
|
+
// Backwards-compat with node 0.4.x
|
|
3233
|
+
Stream.Stream = Stream;
|
|
3234
|
+
|
|
3235
|
+
|
|
3236
|
+
|
|
3237
|
+
// old-style streams. Note that the pipe method (the only relevant
|
|
3238
|
+
// part of this class) is overridden in the Readable class.
|
|
3239
|
+
|
|
3240
|
+
function Stream() {
|
|
3241
|
+
EE.call(this);
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
Stream.prototype.pipe = function(dest, options) {
|
|
3245
|
+
var source = this;
|
|
3246
|
+
|
|
3247
|
+
function ondata(chunk) {
|
|
3248
|
+
if (dest.writable) {
|
|
3249
|
+
if (false === dest.write(chunk) && source.pause) {
|
|
3250
|
+
source.pause();
|
|
3251
|
+
}
|
|
3252
|
+
}
|
|
3253
|
+
}
|
|
3254
|
+
|
|
3255
|
+
source.on('data', ondata);
|
|
3256
|
+
|
|
3257
|
+
function ondrain() {
|
|
3258
|
+
if (source.readable && source.resume) {
|
|
3259
|
+
source.resume();
|
|
3260
|
+
}
|
|
3261
|
+
}
|
|
3262
|
+
|
|
3263
|
+
dest.on('drain', ondrain);
|
|
3264
|
+
|
|
3265
|
+
// If the 'end' option is not supplied, dest.end() will be called when
|
|
3266
|
+
// source gets the 'end' or 'close' events. Only dest.end() once.
|
|
3267
|
+
if (!dest._isStdio && (!options || options.end !== false)) {
|
|
3268
|
+
source.on('end', onend);
|
|
3269
|
+
source.on('close', onclose);
|
|
3270
|
+
}
|
|
3271
|
+
|
|
3272
|
+
var didOnEnd = false;
|
|
3273
|
+
function onend() {
|
|
3274
|
+
if (didOnEnd) return;
|
|
3275
|
+
didOnEnd = true;
|
|
3276
|
+
|
|
3277
|
+
dest.end();
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
|
|
3281
|
+
function onclose() {
|
|
3282
|
+
if (didOnEnd) return;
|
|
3283
|
+
didOnEnd = true;
|
|
3284
|
+
|
|
3285
|
+
if (typeof dest.destroy === 'function') dest.destroy();
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3288
|
+
// don't leave dangling pipes when there are errors.
|
|
3289
|
+
function onerror(er) {
|
|
3290
|
+
cleanup();
|
|
3291
|
+
if (EE.listenerCount(this, 'error') === 0) {
|
|
3292
|
+
throw er; // Unhandled stream error in pipe.
|
|
3293
|
+
}
|
|
3294
|
+
}
|
|
3295
|
+
|
|
3296
|
+
source.on('error', onerror);
|
|
3297
|
+
dest.on('error', onerror);
|
|
3298
|
+
|
|
3299
|
+
// remove all the event listeners that were added.
|
|
3300
|
+
function cleanup() {
|
|
3301
|
+
source.removeListener('data', ondata);
|
|
3302
|
+
dest.removeListener('drain', ondrain);
|
|
3303
|
+
|
|
3304
|
+
source.removeListener('end', onend);
|
|
3305
|
+
source.removeListener('close', onclose);
|
|
3306
|
+
|
|
3307
|
+
source.removeListener('error', onerror);
|
|
3308
|
+
dest.removeListener('error', onerror);
|
|
3309
|
+
|
|
3310
|
+
source.removeListener('end', cleanup);
|
|
3311
|
+
source.removeListener('close', cleanup);
|
|
3312
|
+
|
|
3313
|
+
dest.removeListener('close', cleanup);
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
source.on('end', cleanup);
|
|
3317
|
+
source.on('close', cleanup);
|
|
3318
|
+
|
|
3319
|
+
dest.on('close', cleanup);
|
|
3320
|
+
|
|
3321
|
+
dest.emit('pipe', source);
|
|
3322
|
+
|
|
3323
|
+
// Allow for unix-like usage: A.pipe(B).pipe(C)
|
|
3324
|
+
return dest;
|
|
3325
|
+
};
|
|
3326
|
+
|
|
3327
|
+
|
|
3328
|
+
/***/ }),
|
|
3329
|
+
|
|
3330
|
+
/***/ "d4ec":
|
|
3331
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3332
|
+
|
|
3333
|
+
"use strict";
|
|
3334
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; });
|
|
3335
|
+
function _classCallCheck(instance, Constructor) {
|
|
3336
|
+
if (!(instance instanceof Constructor)) {
|
|
3337
|
+
throw new TypeError("Cannot call a class as a function");
|
|
3338
|
+
}
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3341
|
+
/***/ }),
|
|
3342
|
+
|
|
3343
|
+
/***/ "e3db":
|
|
3344
|
+
/***/ (function(module, exports) {
|
|
3345
|
+
|
|
3346
|
+
var toString = {}.toString;
|
|
3347
|
+
|
|
3348
|
+
module.exports = Array.isArray || function (arr) {
|
|
3349
|
+
return toString.call(arr) == '[object Array]';
|
|
3350
|
+
};
|
|
3351
|
+
|
|
3352
|
+
|
|
3353
|
+
/***/ }),
|
|
3354
|
+
|
|
3355
|
+
/***/ "f28c":
|
|
3356
|
+
/***/ (function(module, exports) {
|
|
3357
|
+
|
|
3358
|
+
// shim for using process in browser
|
|
3359
|
+
var process = module.exports = {};
|
|
3360
|
+
|
|
3361
|
+
// cached from whatever global is present so that test runners that stub it
|
|
3362
|
+
// don't break things. But we need to wrap it in a try catch in case it is
|
|
3363
|
+
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
3364
|
+
// function because try/catches deoptimize in certain engines.
|
|
3365
|
+
|
|
3366
|
+
var cachedSetTimeout;
|
|
3367
|
+
var cachedClearTimeout;
|
|
3368
|
+
|
|
3369
|
+
function defaultSetTimout() {
|
|
3370
|
+
throw new Error('setTimeout has not been defined');
|
|
3371
|
+
}
|
|
3372
|
+
function defaultClearTimeout () {
|
|
3373
|
+
throw new Error('clearTimeout has not been defined');
|
|
3374
|
+
}
|
|
3375
|
+
(function () {
|
|
3376
|
+
try {
|
|
3377
|
+
if (typeof setTimeout === 'function') {
|
|
3378
|
+
cachedSetTimeout = setTimeout;
|
|
3379
|
+
} else {
|
|
3380
|
+
cachedSetTimeout = defaultSetTimout;
|
|
3381
|
+
}
|
|
3382
|
+
} catch (e) {
|
|
3383
|
+
cachedSetTimeout = defaultSetTimout;
|
|
3384
|
+
}
|
|
3385
|
+
try {
|
|
3386
|
+
if (typeof clearTimeout === 'function') {
|
|
3387
|
+
cachedClearTimeout = clearTimeout;
|
|
3388
|
+
} else {
|
|
3389
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
3390
|
+
}
|
|
3391
|
+
} catch (e) {
|
|
3392
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
3393
|
+
}
|
|
3394
|
+
} ())
|
|
3395
|
+
function runTimeout(fun) {
|
|
3396
|
+
if (cachedSetTimeout === setTimeout) {
|
|
3397
|
+
//normal enviroments in sane situations
|
|
3398
|
+
return setTimeout(fun, 0);
|
|
3399
|
+
}
|
|
3400
|
+
// if setTimeout wasn't available but was latter defined
|
|
3401
|
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
3402
|
+
cachedSetTimeout = setTimeout;
|
|
3403
|
+
return setTimeout(fun, 0);
|
|
3404
|
+
}
|
|
3405
|
+
try {
|
|
3406
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
3407
|
+
return cachedSetTimeout(fun, 0);
|
|
3408
|
+
} catch(e){
|
|
3409
|
+
try {
|
|
3410
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
3411
|
+
return cachedSetTimeout.call(null, fun, 0);
|
|
3412
|
+
} catch(e){
|
|
3413
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
3414
|
+
return cachedSetTimeout.call(this, fun, 0);
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3417
|
+
|
|
3418
|
+
|
|
3419
|
+
}
|
|
3420
|
+
function runClearTimeout(marker) {
|
|
3421
|
+
if (cachedClearTimeout === clearTimeout) {
|
|
3422
|
+
//normal enviroments in sane situations
|
|
3423
|
+
return clearTimeout(marker);
|
|
3424
|
+
}
|
|
3425
|
+
// if clearTimeout wasn't available but was latter defined
|
|
3426
|
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
3427
|
+
cachedClearTimeout = clearTimeout;
|
|
3428
|
+
return clearTimeout(marker);
|
|
3429
|
+
}
|
|
3430
|
+
try {
|
|
3431
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
3432
|
+
return cachedClearTimeout(marker);
|
|
3433
|
+
} catch (e){
|
|
3434
|
+
try {
|
|
3435
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
3436
|
+
return cachedClearTimeout.call(null, marker);
|
|
3437
|
+
} catch (e){
|
|
3438
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
3439
|
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
3440
|
+
return cachedClearTimeout.call(this, marker);
|
|
3441
|
+
}
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3444
|
+
|
|
3445
|
+
|
|
3446
|
+
}
|
|
3447
|
+
var queue = [];
|
|
3448
|
+
var draining = false;
|
|
3449
|
+
var currentQueue;
|
|
3450
|
+
var queueIndex = -1;
|
|
3451
|
+
|
|
3452
|
+
function cleanUpNextTick() {
|
|
3453
|
+
if (!draining || !currentQueue) {
|
|
3454
|
+
return;
|
|
3455
|
+
}
|
|
3456
|
+
draining = false;
|
|
3457
|
+
if (currentQueue.length) {
|
|
3458
|
+
queue = currentQueue.concat(queue);
|
|
3459
|
+
} else {
|
|
3460
|
+
queueIndex = -1;
|
|
3461
|
+
}
|
|
3462
|
+
if (queue.length) {
|
|
3463
|
+
drainQueue();
|
|
3464
|
+
}
|
|
3465
|
+
}
|
|
3466
|
+
|
|
3467
|
+
function drainQueue() {
|
|
3468
|
+
if (draining) {
|
|
3469
|
+
return;
|
|
3470
|
+
}
|
|
3471
|
+
var timeout = runTimeout(cleanUpNextTick);
|
|
3472
|
+
draining = true;
|
|
3473
|
+
|
|
3474
|
+
var len = queue.length;
|
|
3475
|
+
while(len) {
|
|
3476
|
+
currentQueue = queue;
|
|
3477
|
+
queue = [];
|
|
3478
|
+
while (++queueIndex < len) {
|
|
3479
|
+
if (currentQueue) {
|
|
3480
|
+
currentQueue[queueIndex].run();
|
|
3481
|
+
}
|
|
3482
|
+
}
|
|
3483
|
+
queueIndex = -1;
|
|
3484
|
+
len = queue.length;
|
|
3485
|
+
}
|
|
3486
|
+
currentQueue = null;
|
|
3487
|
+
draining = false;
|
|
3488
|
+
runClearTimeout(timeout);
|
|
3489
|
+
}
|
|
3490
|
+
|
|
3491
|
+
process.nextTick = function (fun) {
|
|
3492
|
+
var args = new Array(arguments.length - 1);
|
|
3493
|
+
if (arguments.length > 1) {
|
|
3494
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
3495
|
+
args[i - 1] = arguments[i];
|
|
3496
|
+
}
|
|
3497
|
+
}
|
|
3498
|
+
queue.push(new Item(fun, args));
|
|
3499
|
+
if (queue.length === 1 && !draining) {
|
|
3500
|
+
runTimeout(drainQueue);
|
|
3501
|
+
}
|
|
3502
|
+
};
|
|
3503
|
+
|
|
3504
|
+
// v8 likes predictible objects
|
|
3505
|
+
function Item(fun, array) {
|
|
3506
|
+
this.fun = fun;
|
|
3507
|
+
this.array = array;
|
|
3508
|
+
}
|
|
3509
|
+
Item.prototype.run = function () {
|
|
3510
|
+
this.fun.apply(null, this.array);
|
|
3511
|
+
};
|
|
3512
|
+
process.title = 'browser';
|
|
3513
|
+
process.browser = true;
|
|
3514
|
+
process.env = {};
|
|
3515
|
+
process.argv = [];
|
|
3516
|
+
process.version = ''; // empty string to avoid regexp issues
|
|
3517
|
+
process.versions = {};
|
|
3518
|
+
|
|
3519
|
+
function noop() {}
|
|
3520
|
+
|
|
3521
|
+
process.on = noop;
|
|
3522
|
+
process.addListener = noop;
|
|
3523
|
+
process.once = noop;
|
|
3524
|
+
process.off = noop;
|
|
3525
|
+
process.removeListener = noop;
|
|
3526
|
+
process.removeAllListeners = noop;
|
|
3527
|
+
process.emit = noop;
|
|
3528
|
+
process.prependListener = noop;
|
|
3529
|
+
process.prependOnceListener = noop;
|
|
3530
|
+
|
|
3531
|
+
process.listeners = function (name) { return [] }
|
|
3532
|
+
|
|
3533
|
+
process.binding = function (name) {
|
|
3534
|
+
throw new Error('process.binding is not supported');
|
|
3535
|
+
};
|
|
3536
|
+
|
|
3537
|
+
process.cwd = function () { return '/' };
|
|
3538
|
+
process.chdir = function (dir) {
|
|
3539
|
+
throw new Error('process.chdir is not supported');
|
|
3540
|
+
};
|
|
3541
|
+
process.umask = function() { return 0; };
|
|
3542
|
+
|
|
3543
|
+
|
|
3544
|
+
/***/ }),
|
|
3545
|
+
|
|
3546
|
+
/***/ "f6fd":
|
|
3547
|
+
/***/ (function(module, exports) {
|
|
3548
|
+
|
|
3549
|
+
// document.currentScript polyfill by Adam Miller
|
|
3550
|
+
|
|
3551
|
+
// MIT license
|
|
3552
|
+
|
|
3553
|
+
(function(document){
|
|
3554
|
+
var currentScript = "currentScript",
|
|
3555
|
+
scripts = document.getElementsByTagName('script'); // Live NodeList collection
|
|
3556
|
+
|
|
3557
|
+
// If browser needs currentScript polyfill, add get currentScript() to the document object
|
|
3558
|
+
if (!(currentScript in document)) {
|
|
3559
|
+
Object.defineProperty(document, currentScript, {
|
|
3560
|
+
get: function(){
|
|
3561
|
+
|
|
3562
|
+
// IE 6-10 supports script readyState
|
|
3563
|
+
// IE 10+ support stack trace
|
|
3564
|
+
try { throw new Error(); }
|
|
3565
|
+
catch (err) {
|
|
3566
|
+
|
|
3567
|
+
// Find the second match for the "at" string to get file src url from stack.
|
|
3568
|
+
// Specifically works with the format of stack traces in IE.
|
|
3569
|
+
var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1];
|
|
3570
|
+
|
|
3571
|
+
// For all scripts on the page, if src matches or if ready state is interactive, return the script tag
|
|
3572
|
+
for(i in scripts){
|
|
3573
|
+
if(scripts[i].src == res || scripts[i].readyState == "interactive"){
|
|
3574
|
+
return scripts[i];
|
|
3575
|
+
}
|
|
3576
|
+
}
|
|
3577
|
+
|
|
3578
|
+
// If no match, return null
|
|
3579
|
+
return null;
|
|
3580
|
+
}
|
|
3581
|
+
}
|
|
3582
|
+
});
|
|
3583
|
+
}
|
|
3584
|
+
})(document);
|
|
3585
|
+
|
|
3586
|
+
|
|
3587
|
+
/***/ }),
|
|
3588
|
+
|
|
3589
|
+
/***/ "f893":
|
|
3590
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3591
|
+
|
|
3592
|
+
module.exports = { "default": __webpack_require__("f921"), __esModule: true };
|
|
3593
|
+
|
|
3594
|
+
/***/ }),
|
|
3595
|
+
|
|
3596
|
+
/***/ "faa1":
|
|
3597
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3598
|
+
|
|
3599
|
+
"use strict";
|
|
3600
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
3601
|
+
//
|
|
3602
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
3603
|
+
// copy of this software and associated documentation files (the
|
|
3604
|
+
// "Software"), to deal in the Software without restriction, including
|
|
3605
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
3606
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
3607
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
3608
|
+
// following conditions:
|
|
3609
|
+
//
|
|
3610
|
+
// The above copyright notice and this permission notice shall be included
|
|
3611
|
+
// in all copies or substantial portions of the Software.
|
|
3612
|
+
//
|
|
3613
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
3614
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
3615
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
3616
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
3617
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
3618
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
3619
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
3620
|
+
|
|
3621
|
+
|
|
3622
|
+
|
|
3623
|
+
var R = typeof Reflect === 'object' ? Reflect : null
|
|
3624
|
+
var ReflectApply = R && typeof R.apply === 'function'
|
|
3625
|
+
? R.apply
|
|
3626
|
+
: function ReflectApply(target, receiver, args) {
|
|
3627
|
+
return Function.prototype.apply.call(target, receiver, args);
|
|
3628
|
+
}
|
|
3629
|
+
|
|
3630
|
+
var ReflectOwnKeys
|
|
3631
|
+
if (R && typeof R.ownKeys === 'function') {
|
|
3632
|
+
ReflectOwnKeys = R.ownKeys
|
|
3633
|
+
} else if (Object.getOwnPropertySymbols) {
|
|
3634
|
+
ReflectOwnKeys = function ReflectOwnKeys(target) {
|
|
3635
|
+
return Object.getOwnPropertyNames(target)
|
|
3636
|
+
.concat(Object.getOwnPropertySymbols(target));
|
|
3637
|
+
};
|
|
3638
|
+
} else {
|
|
3639
|
+
ReflectOwnKeys = function ReflectOwnKeys(target) {
|
|
3640
|
+
return Object.getOwnPropertyNames(target);
|
|
3641
|
+
};
|
|
3642
|
+
}
|
|
3643
|
+
|
|
3644
|
+
function ProcessEmitWarning(warning) {
|
|
3645
|
+
if (console && console.warn) console.warn(warning);
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3648
|
+
var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {
|
|
3649
|
+
return value !== value;
|
|
3650
|
+
}
|
|
3651
|
+
|
|
3652
|
+
function EventEmitter() {
|
|
3653
|
+
EventEmitter.init.call(this);
|
|
3654
|
+
}
|
|
3655
|
+
module.exports = EventEmitter;
|
|
3656
|
+
module.exports.once = once;
|
|
3657
|
+
|
|
3658
|
+
// Backwards-compat with node 0.10.x
|
|
3659
|
+
EventEmitter.EventEmitter = EventEmitter;
|
|
3660
|
+
|
|
3661
|
+
EventEmitter.prototype._events = undefined;
|
|
3662
|
+
EventEmitter.prototype._eventsCount = 0;
|
|
3663
|
+
EventEmitter.prototype._maxListeners = undefined;
|
|
3664
|
+
|
|
3665
|
+
// By default EventEmitters will print a warning if more than 10 listeners are
|
|
3666
|
+
// added to it. This is a useful default which helps finding memory leaks.
|
|
3667
|
+
var defaultMaxListeners = 10;
|
|
3668
|
+
|
|
3669
|
+
function checkListener(listener) {
|
|
3670
|
+
if (typeof listener !== 'function') {
|
|
3671
|
+
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
|
|
3672
|
+
}
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3675
|
+
Object.defineProperty(EventEmitter, 'defaultMaxListeners', {
|
|
3676
|
+
enumerable: true,
|
|
3677
|
+
get: function() {
|
|
3678
|
+
return defaultMaxListeners;
|
|
3679
|
+
},
|
|
3680
|
+
set: function(arg) {
|
|
3681
|
+
if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {
|
|
3682
|
+
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.');
|
|
3683
|
+
}
|
|
3684
|
+
defaultMaxListeners = arg;
|
|
3685
|
+
}
|
|
3686
|
+
});
|
|
3687
|
+
|
|
3688
|
+
EventEmitter.init = function() {
|
|
3689
|
+
|
|
3690
|
+
if (this._events === undefined ||
|
|
3691
|
+
this._events === Object.getPrototypeOf(this)._events) {
|
|
3692
|
+
this._events = Object.create(null);
|
|
3693
|
+
this._eventsCount = 0;
|
|
3694
|
+
}
|
|
3695
|
+
|
|
3696
|
+
this._maxListeners = this._maxListeners || undefined;
|
|
3697
|
+
};
|
|
3698
|
+
|
|
3699
|
+
// Obviously not all Emitters should be limited to 10. This function allows
|
|
3700
|
+
// that to be increased. Set to zero for unlimited.
|
|
3701
|
+
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
|
|
3702
|
+
if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {
|
|
3703
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.');
|
|
3704
|
+
}
|
|
3705
|
+
this._maxListeners = n;
|
|
3706
|
+
return this;
|
|
3707
|
+
};
|
|
3708
|
+
|
|
3709
|
+
function _getMaxListeners(that) {
|
|
3710
|
+
if (that._maxListeners === undefined)
|
|
3711
|
+
return EventEmitter.defaultMaxListeners;
|
|
3712
|
+
return that._maxListeners;
|
|
3713
|
+
}
|
|
3714
|
+
|
|
3715
|
+
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
|
|
3716
|
+
return _getMaxListeners(this);
|
|
3717
|
+
};
|
|
3718
|
+
|
|
3719
|
+
EventEmitter.prototype.emit = function emit(type) {
|
|
3720
|
+
var args = [];
|
|
3721
|
+
for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);
|
|
3722
|
+
var doError = (type === 'error');
|
|
3723
|
+
|
|
3724
|
+
var events = this._events;
|
|
3725
|
+
if (events !== undefined)
|
|
3726
|
+
doError = (doError && events.error === undefined);
|
|
3727
|
+
else if (!doError)
|
|
3728
|
+
return false;
|
|
3729
|
+
|
|
3730
|
+
// If there is no 'error' event listener then throw.
|
|
3731
|
+
if (doError) {
|
|
3732
|
+
var er;
|
|
3733
|
+
if (args.length > 0)
|
|
3734
|
+
er = args[0];
|
|
3735
|
+
if (er instanceof Error) {
|
|
3736
|
+
// Note: The comments on the `throw` lines are intentional, they show
|
|
3737
|
+
// up in Node's output if this results in an unhandled exception.
|
|
3738
|
+
throw er; // Unhandled 'error' event
|
|
3739
|
+
}
|
|
3740
|
+
// At least give some kind of context to the user
|
|
3741
|
+
var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));
|
|
3742
|
+
err.context = er;
|
|
3743
|
+
throw err; // Unhandled 'error' event
|
|
3744
|
+
}
|
|
3745
|
+
|
|
3746
|
+
var handler = events[type];
|
|
3747
|
+
|
|
3748
|
+
if (handler === undefined)
|
|
3749
|
+
return false;
|
|
3750
|
+
|
|
3751
|
+
if (typeof handler === 'function') {
|
|
3752
|
+
ReflectApply(handler, this, args);
|
|
3753
|
+
} else {
|
|
3754
|
+
var len = handler.length;
|
|
3755
|
+
var listeners = arrayClone(handler, len);
|
|
3756
|
+
for (var i = 0; i < len; ++i)
|
|
3757
|
+
ReflectApply(listeners[i], this, args);
|
|
3758
|
+
}
|
|
3759
|
+
|
|
3760
|
+
return true;
|
|
3761
|
+
};
|
|
3762
|
+
|
|
3763
|
+
function _addListener(target, type, listener, prepend) {
|
|
3764
|
+
var m;
|
|
3765
|
+
var events;
|
|
3766
|
+
var existing;
|
|
3767
|
+
|
|
3768
|
+
checkListener(listener);
|
|
3769
|
+
|
|
3770
|
+
events = target._events;
|
|
3771
|
+
if (events === undefined) {
|
|
3772
|
+
events = target._events = Object.create(null);
|
|
3773
|
+
target._eventsCount = 0;
|
|
3774
|
+
} else {
|
|
3775
|
+
// To avoid recursion in the case that type === "newListener"! Before
|
|
3776
|
+
// adding it to the listeners, first emit "newListener".
|
|
3777
|
+
if (events.newListener !== undefined) {
|
|
3778
|
+
target.emit('newListener', type,
|
|
3779
|
+
listener.listener ? listener.listener : listener);
|
|
3780
|
+
|
|
3781
|
+
// Re-assign `events` because a newListener handler could have caused the
|
|
3782
|
+
// this._events to be assigned to a new object
|
|
3783
|
+
events = target._events;
|
|
3784
|
+
}
|
|
3785
|
+
existing = events[type];
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3788
|
+
if (existing === undefined) {
|
|
3789
|
+
// Optimize the case of one listener. Don't need the extra array object.
|
|
3790
|
+
existing = events[type] = listener;
|
|
3791
|
+
++target._eventsCount;
|
|
3792
|
+
} else {
|
|
3793
|
+
if (typeof existing === 'function') {
|
|
3794
|
+
// Adding the second element, need to change to array.
|
|
3795
|
+
existing = events[type] =
|
|
3796
|
+
prepend ? [listener, existing] : [existing, listener];
|
|
3797
|
+
// If we've already got an array, just append.
|
|
3798
|
+
} else if (prepend) {
|
|
3799
|
+
existing.unshift(listener);
|
|
3800
|
+
} else {
|
|
3801
|
+
existing.push(listener);
|
|
3802
|
+
}
|
|
3803
|
+
|
|
3804
|
+
// Check for listener leak
|
|
3805
|
+
m = _getMaxListeners(target);
|
|
3806
|
+
if (m > 0 && existing.length > m && !existing.warned) {
|
|
3807
|
+
existing.warned = true;
|
|
3808
|
+
// No error code for this since it is a Warning
|
|
3809
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
3810
|
+
var w = new Error('Possible EventEmitter memory leak detected. ' +
|
|
3811
|
+
existing.length + ' ' + String(type) + ' listeners ' +
|
|
3812
|
+
'added. Use emitter.setMaxListeners() to ' +
|
|
3813
|
+
'increase limit');
|
|
3814
|
+
w.name = 'MaxListenersExceededWarning';
|
|
3815
|
+
w.emitter = target;
|
|
3816
|
+
w.type = type;
|
|
3817
|
+
w.count = existing.length;
|
|
3818
|
+
ProcessEmitWarning(w);
|
|
3819
|
+
}
|
|
3820
|
+
}
|
|
3821
|
+
|
|
3822
|
+
return target;
|
|
3823
|
+
}
|
|
3824
|
+
|
|
3825
|
+
EventEmitter.prototype.addListener = function addListener(type, listener) {
|
|
3826
|
+
return _addListener(this, type, listener, false);
|
|
3827
|
+
};
|
|
3828
|
+
|
|
3829
|
+
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
3830
|
+
|
|
3831
|
+
EventEmitter.prototype.prependListener =
|
|
3832
|
+
function prependListener(type, listener) {
|
|
3833
|
+
return _addListener(this, type, listener, true);
|
|
3834
|
+
};
|
|
3835
|
+
|
|
3836
|
+
function onceWrapper() {
|
|
3837
|
+
if (!this.fired) {
|
|
3838
|
+
this.target.removeListener(this.type, this.wrapFn);
|
|
3839
|
+
this.fired = true;
|
|
3840
|
+
if (arguments.length === 0)
|
|
3841
|
+
return this.listener.call(this.target);
|
|
3842
|
+
return this.listener.apply(this.target, arguments);
|
|
3843
|
+
}
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3846
|
+
function _onceWrap(target, type, listener) {
|
|
3847
|
+
var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };
|
|
3848
|
+
var wrapped = onceWrapper.bind(state);
|
|
3849
|
+
wrapped.listener = listener;
|
|
3850
|
+
state.wrapFn = wrapped;
|
|
3851
|
+
return wrapped;
|
|
3852
|
+
}
|
|
3853
|
+
|
|
3854
|
+
EventEmitter.prototype.once = function once(type, listener) {
|
|
3855
|
+
checkListener(listener);
|
|
3856
|
+
this.on(type, _onceWrap(this, type, listener));
|
|
3857
|
+
return this;
|
|
3858
|
+
};
|
|
3859
|
+
|
|
3860
|
+
EventEmitter.prototype.prependOnceListener =
|
|
3861
|
+
function prependOnceListener(type, listener) {
|
|
3862
|
+
checkListener(listener);
|
|
3863
|
+
this.prependListener(type, _onceWrap(this, type, listener));
|
|
3864
|
+
return this;
|
|
3865
|
+
};
|
|
3866
|
+
|
|
3867
|
+
// Emits a 'removeListener' event if and only if the listener was removed.
|
|
3868
|
+
EventEmitter.prototype.removeListener =
|
|
3869
|
+
function removeListener(type, listener) {
|
|
3870
|
+
var list, events, position, i, originalListener;
|
|
3871
|
+
|
|
3872
|
+
checkListener(listener);
|
|
3873
|
+
|
|
3874
|
+
events = this._events;
|
|
3875
|
+
if (events === undefined)
|
|
3876
|
+
return this;
|
|
3877
|
+
|
|
3878
|
+
list = events[type];
|
|
3879
|
+
if (list === undefined)
|
|
3880
|
+
return this;
|
|
3881
|
+
|
|
3882
|
+
if (list === listener || list.listener === listener) {
|
|
3883
|
+
if (--this._eventsCount === 0)
|
|
3884
|
+
this._events = Object.create(null);
|
|
3885
|
+
else {
|
|
3886
|
+
delete events[type];
|
|
3887
|
+
if (events.removeListener)
|
|
3888
|
+
this.emit('removeListener', type, list.listener || listener);
|
|
3889
|
+
}
|
|
3890
|
+
} else if (typeof list !== 'function') {
|
|
3891
|
+
position = -1;
|
|
3892
|
+
|
|
3893
|
+
for (i = list.length - 1; i >= 0; i--) {
|
|
3894
|
+
if (list[i] === listener || list[i].listener === listener) {
|
|
3895
|
+
originalListener = list[i].listener;
|
|
3896
|
+
position = i;
|
|
3897
|
+
break;
|
|
3898
|
+
}
|
|
3899
|
+
}
|
|
3900
|
+
|
|
3901
|
+
if (position < 0)
|
|
3902
|
+
return this;
|
|
3903
|
+
|
|
3904
|
+
if (position === 0)
|
|
3905
|
+
list.shift();
|
|
3906
|
+
else {
|
|
3907
|
+
spliceOne(list, position);
|
|
3908
|
+
}
|
|
3909
|
+
|
|
3910
|
+
if (list.length === 1)
|
|
3911
|
+
events[type] = list[0];
|
|
3912
|
+
|
|
3913
|
+
if (events.removeListener !== undefined)
|
|
3914
|
+
this.emit('removeListener', type, originalListener || listener);
|
|
3915
|
+
}
|
|
3916
|
+
|
|
3917
|
+
return this;
|
|
3918
|
+
};
|
|
3919
|
+
|
|
3920
|
+
EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
|
|
3921
|
+
|
|
3922
|
+
EventEmitter.prototype.removeAllListeners =
|
|
3923
|
+
function removeAllListeners(type) {
|
|
3924
|
+
var listeners, events, i;
|
|
3925
|
+
|
|
3926
|
+
events = this._events;
|
|
3927
|
+
if (events === undefined)
|
|
3928
|
+
return this;
|
|
3929
|
+
|
|
3930
|
+
// not listening for removeListener, no need to emit
|
|
3931
|
+
if (events.removeListener === undefined) {
|
|
3932
|
+
if (arguments.length === 0) {
|
|
3933
|
+
this._events = Object.create(null);
|
|
3934
|
+
this._eventsCount = 0;
|
|
3935
|
+
} else if (events[type] !== undefined) {
|
|
3936
|
+
if (--this._eventsCount === 0)
|
|
3937
|
+
this._events = Object.create(null);
|
|
3938
|
+
else
|
|
3939
|
+
delete events[type];
|
|
3940
|
+
}
|
|
3941
|
+
return this;
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3944
|
+
// emit removeListener for all listeners on all events
|
|
3945
|
+
if (arguments.length === 0) {
|
|
3946
|
+
var keys = Object.keys(events);
|
|
3947
|
+
var key;
|
|
3948
|
+
for (i = 0; i < keys.length; ++i) {
|
|
3949
|
+
key = keys[i];
|
|
3950
|
+
if (key === 'removeListener') continue;
|
|
3951
|
+
this.removeAllListeners(key);
|
|
3952
|
+
}
|
|
3953
|
+
this.removeAllListeners('removeListener');
|
|
3954
|
+
this._events = Object.create(null);
|
|
3955
|
+
this._eventsCount = 0;
|
|
3956
|
+
return this;
|
|
3957
|
+
}
|
|
3958
|
+
|
|
3959
|
+
listeners = events[type];
|
|
3960
|
+
|
|
3961
|
+
if (typeof listeners === 'function') {
|
|
3962
|
+
this.removeListener(type, listeners);
|
|
3963
|
+
} else if (listeners !== undefined) {
|
|
3964
|
+
// LIFO order
|
|
3965
|
+
for (i = listeners.length - 1; i >= 0; i--) {
|
|
3966
|
+
this.removeListener(type, listeners[i]);
|
|
3967
|
+
}
|
|
3968
|
+
}
|
|
3969
|
+
|
|
3970
|
+
return this;
|
|
3971
|
+
};
|
|
3972
|
+
|
|
3973
|
+
function _listeners(target, type, unwrap) {
|
|
3974
|
+
var events = target._events;
|
|
3975
|
+
|
|
3976
|
+
if (events === undefined)
|
|
3977
|
+
return [];
|
|
3978
|
+
|
|
3979
|
+
var evlistener = events[type];
|
|
3980
|
+
if (evlistener === undefined)
|
|
3981
|
+
return [];
|
|
3982
|
+
|
|
3983
|
+
if (typeof evlistener === 'function')
|
|
3984
|
+
return unwrap ? [evlistener.listener || evlistener] : [evlistener];
|
|
3985
|
+
|
|
3986
|
+
return unwrap ?
|
|
3987
|
+
unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
|
3988
|
+
}
|
|
3989
|
+
|
|
3990
|
+
EventEmitter.prototype.listeners = function listeners(type) {
|
|
3991
|
+
return _listeners(this, type, true);
|
|
3992
|
+
};
|
|
3993
|
+
|
|
3994
|
+
EventEmitter.prototype.rawListeners = function rawListeners(type) {
|
|
3995
|
+
return _listeners(this, type, false);
|
|
3996
|
+
};
|
|
3997
|
+
|
|
3998
|
+
EventEmitter.listenerCount = function(emitter, type) {
|
|
3999
|
+
if (typeof emitter.listenerCount === 'function') {
|
|
4000
|
+
return emitter.listenerCount(type);
|
|
4001
|
+
} else {
|
|
4002
|
+
return listenerCount.call(emitter, type);
|
|
4003
|
+
}
|
|
4004
|
+
};
|
|
4005
|
+
|
|
4006
|
+
EventEmitter.prototype.listenerCount = listenerCount;
|
|
4007
|
+
function listenerCount(type) {
|
|
4008
|
+
var events = this._events;
|
|
4009
|
+
|
|
4010
|
+
if (events !== undefined) {
|
|
4011
|
+
var evlistener = events[type];
|
|
4012
|
+
|
|
4013
|
+
if (typeof evlistener === 'function') {
|
|
4014
|
+
return 1;
|
|
4015
|
+
} else if (evlistener !== undefined) {
|
|
4016
|
+
return evlistener.length;
|
|
4017
|
+
}
|
|
4018
|
+
}
|
|
4019
|
+
|
|
4020
|
+
return 0;
|
|
4021
|
+
}
|
|
4022
|
+
|
|
4023
|
+
EventEmitter.prototype.eventNames = function eventNames() {
|
|
4024
|
+
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
|
4025
|
+
};
|
|
4026
|
+
|
|
4027
|
+
function arrayClone(arr, n) {
|
|
4028
|
+
var copy = new Array(n);
|
|
4029
|
+
for (var i = 0; i < n; ++i)
|
|
4030
|
+
copy[i] = arr[i];
|
|
4031
|
+
return copy;
|
|
4032
|
+
}
|
|
4033
|
+
|
|
4034
|
+
function spliceOne(list, index) {
|
|
4035
|
+
for (; index + 1 < list.length; index++)
|
|
4036
|
+
list[index] = list[index + 1];
|
|
4037
|
+
list.pop();
|
|
4038
|
+
}
|
|
4039
|
+
|
|
4040
|
+
function unwrapListeners(arr) {
|
|
4041
|
+
var ret = new Array(arr.length);
|
|
4042
|
+
for (var i = 0; i < ret.length; ++i) {
|
|
4043
|
+
ret[i] = arr[i].listener || arr[i];
|
|
4044
|
+
}
|
|
4045
|
+
return ret;
|
|
4046
|
+
}
|
|
4047
|
+
|
|
4048
|
+
function once(emitter, name) {
|
|
4049
|
+
return new Promise(function (resolve, reject) {
|
|
4050
|
+
function errorListener(err) {
|
|
4051
|
+
emitter.removeListener(name, resolver);
|
|
4052
|
+
reject(err);
|
|
4053
|
+
}
|
|
4054
|
+
|
|
4055
|
+
function resolver() {
|
|
4056
|
+
if (typeof emitter.removeListener === 'function') {
|
|
4057
|
+
emitter.removeListener('error', errorListener);
|
|
4058
|
+
}
|
|
4059
|
+
resolve([].slice.call(arguments));
|
|
4060
|
+
};
|
|
4061
|
+
|
|
4062
|
+
eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
|
|
4063
|
+
if (name !== 'error') {
|
|
4064
|
+
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
4065
|
+
}
|
|
4066
|
+
});
|
|
4067
|
+
}
|
|
4068
|
+
|
|
4069
|
+
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
|
|
4070
|
+
if (typeof emitter.on === 'function') {
|
|
4071
|
+
eventTargetAgnosticAddListener(emitter, 'error', handler, flags);
|
|
4072
|
+
}
|
|
4073
|
+
}
|
|
4074
|
+
|
|
4075
|
+
function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
|
4076
|
+
if (typeof emitter.on === 'function') {
|
|
4077
|
+
if (flags.once) {
|
|
4078
|
+
emitter.once(name, listener);
|
|
4079
|
+
} else {
|
|
4080
|
+
emitter.on(name, listener);
|
|
4081
|
+
}
|
|
4082
|
+
} else if (typeof emitter.addEventListener === 'function') {
|
|
4083
|
+
// EventTarget does not have `error` event semantics like Node
|
|
4084
|
+
// EventEmitters, we do not listen for `error` events here.
|
|
4085
|
+
emitter.addEventListener(name, function wrapListener(arg) {
|
|
4086
|
+
// IE does not have builtin `{ once: true }` support so we
|
|
4087
|
+
// have to do it manually.
|
|
4088
|
+
if (flags.once) {
|
|
4089
|
+
emitter.removeEventListener(name, wrapListener);
|
|
4090
|
+
}
|
|
4091
|
+
listener(arg);
|
|
4092
|
+
});
|
|
4093
|
+
} else {
|
|
4094
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
4095
|
+
}
|
|
4096
|
+
}
|
|
4097
|
+
|
|
4098
|
+
|
|
4099
|
+
/***/ }),
|
|
4100
|
+
|
|
4101
|
+
/***/ "fb15":
|
|
4102
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4103
|
+
|
|
4104
|
+
"use strict";
|
|
4105
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4106
|
+
|
|
4107
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
4108
|
+
// This file is imported into lib/wc client bundles.
|
|
4109
|
+
|
|
4110
|
+
if (typeof window !== 'undefined') {
|
|
4111
|
+
if (true) {
|
|
4112
|
+
__webpack_require__("f6fd")
|
|
4113
|
+
}
|
|
4114
|
+
|
|
4115
|
+
var i
|
|
4116
|
+
if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
|
|
4117
|
+
__webpack_require__.p = i[1] // eslint-disable-line
|
|
4118
|
+
}
|
|
4119
|
+
}
|
|
4120
|
+
|
|
4121
|
+
// Indicate to webpack that this file can be concatenated
|
|
4122
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
4123
|
+
|
|
4124
|
+
// EXTERNAL MODULE: ./packages/index.js + 3 modules
|
|
4125
|
+
var packages_0 = __webpack_require__("3a0d");
|
|
4126
|
+
|
|
4127
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
4128
|
+
|
|
4129
|
+
|
|
4130
|
+
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (packages_0["a" /* default */]);
|
|
4131
|
+
|
|
4132
|
+
|
|
4133
|
+
|
|
4134
|
+
/***/ })
|
|
4135
|
+
|
|
4136
|
+
}]);
|