ecinc-cloud-moahygl 9.5.14 → 9.5.15
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/ecmoahygl.common.js +372 -3414
- package/lib/ecmoahygl.umd.js +372 -3414
- package/lib/ecmoahygl.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/ecmoahygl.common.js
CHANGED
|
@@ -938,22 +938,6 @@ module.exports = exports;
|
|
|
938
938
|
})));
|
|
939
939
|
|
|
940
940
|
|
|
941
|
-
/***/ }),
|
|
942
|
-
|
|
943
|
-
/***/ "0d8a":
|
|
944
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
945
|
-
|
|
946
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
947
|
-
|
|
948
|
-
// load the styles
|
|
949
|
-
var content = __webpack_require__("e06e");
|
|
950
|
-
if(content.__esModule) content = content.default;
|
|
951
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
952
|
-
if(content.locals) module.exports = content.locals;
|
|
953
|
-
// add the styles to the DOM
|
|
954
|
-
var add = __webpack_require__("499e").default
|
|
955
|
-
var update = add("2dbdcbc8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
956
|
-
|
|
957
941
|
/***/ }),
|
|
958
942
|
|
|
959
943
|
/***/ "0e1c":
|
|
@@ -16116,17 +16100,6 @@ if(content.locals) module.exports = content.locals;
|
|
|
16116
16100
|
var add = __webpack_require__("499e").default
|
|
16117
16101
|
var update = add("6c35655e", content, true, {"sourceMap":false,"shadowMode":false});
|
|
16118
16102
|
|
|
16119
|
-
/***/ }),
|
|
16120
|
-
|
|
16121
|
-
/***/ "41a1":
|
|
16122
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16123
|
-
|
|
16124
|
-
"use strict";
|
|
16125
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FileView_vue_vue_type_style_index_0_id_397f0e06_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0d8a");
|
|
16126
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FileView_vue_vue_type_style_index_0_id_397f0e06_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FileView_vue_vue_type_style_index_0_id_397f0e06_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
16127
|
-
/* unused harmony reexport * */
|
|
16128
|
-
|
|
16129
|
-
|
|
16130
16103
|
/***/ }),
|
|
16131
16104
|
|
|
16132
16105
|
/***/ "423e":
|
|
@@ -22815,6 +22788,20 @@ module.exports = exports;
|
|
|
22815
22788
|
/* unused harmony reexport * */
|
|
22816
22789
|
|
|
22817
22790
|
|
|
22791
|
+
/***/ }),
|
|
22792
|
+
|
|
22793
|
+
/***/ "ad66":
|
|
22794
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
22795
|
+
|
|
22796
|
+
// Imports
|
|
22797
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
22798
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
22799
|
+
// Module
|
|
22800
|
+
exports.push([module.i, ".lyy-collapse[data-v-2976a750] .van-collapse-item .van-cell{padding:15px 16px 16px}[data-v-2976a750] .van-collapse-item__content{padding:0 16px}a[data-v-2976a750]{color:#333}.sidebarBox[data-v-2976a750]{position:fixed;left:0;top:0;width:5.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:3.25rem;padding-top:30px;height:100vh;border-right:1px solid #e0e0e0}.contain[data-v-2976a750]{height:100vh;width:100%}.content[data-v-2976a750]{width:calc(100% - 5.5rem);height:calc(100% - 2.75rem);padding-left:5.5rem;background:#f9f9f9}.side-item[data-v-2976a750]{height:6.25rem;width:100%}.side-item .item-box[data-v-2976a750]{margin-top:1rem;text-align:center}.side-item .item-box .box-img[data-v-2976a750]{width:2rem;height:2rem;margin:0 auto}.side-item .item-box .box-img img[data-v-2976a750]{width:100%;height:100%}.header-box[data-v-2976a750]{width:100%;height:3.25rem;background:#53a8ff;text-align:center;line-height:3.25rem;position:relative}.title[data-v-2976a750]{display:inline-block;color:#fff;font-weight:700}.active[data-v-2976a750]{color:#53a8ff;background:rgba(83,168,255,.1)}.back[data-v-2976a750]{position:absolute;left:1rem;line-height:3.25rem}[data-v-2976a750] .van-popup--left{left:inherit!important;top:3.5rem;-webkit-transform:none;transform:none}.paper-box[data-v-2976a750]{margin:.63rem;border:1px solid #ebedf0;border-radius:4px}.ziliao-title[data-v-2976a750]{font-size:1.13rem;font-weight:600;color:#333}.ziliao-img[data-v-2976a750]{width:1.5rem;height:1.5rem;margin-right:.5rem}.ziliao-content[data-v-2976a750]{padding:1.25rem 0 1.25rem 1.5rem;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative}.ziliao-content[data-v-2976a750]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;bottom:0;left:1.5rem;border-bottom:1px solid #e0e0e0;-webkit-transform:scaleY(.5);transform:scaleY(.5);display:block}.ziliao-content .ziliao-content-img[data-v-2976a750]{width:1.82rem;height:2.25rem}.ziliao-content .ziliao-content-img img[data-v-2976a750]{width:100%;height:100%}.ziliao-content .title-ziliao[data-v-2976a750]{font-size:.88rem;font-weight:400;color:#333}.ziliao-content .ziliao-content-title[data-v-2976a750]{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-left:1rem}.ziliao-content .ziliao-content-cloum[data-v-2976a750]{width:210px}.nbcontent .ziliao-content[data-v-2976a750]:last-child:after{border-bottom:none}.yiti-box[data-v-2976a750]{background:#fff;margin:.63rem;border:1px solid #ebedf0;border-radius:4px}.yiti-box .ziliao-title[data-v-2976a750]{font-size:1.13rem;font-weight:600;color:#333}.yiti-box .ziliao-img[data-v-2976a750]{width:1.5rem;height:1.5rem;margin-right:.5rem}.yiti-box .yiti-title[data-v-2976a750]{font-size:1.13rem;font-weight:600;color:#333;padding:15px 16px 16px}.yiti-box .yiti-orderNo[data-v-2976a750]{color:#ec8423;width:1.5rem;height:1.5rem;text-align:center;margin-right:.8rem;border:2px solid #ec8423;border-radius:50%}.flex-box[data-v-2976a750]{display:-webkit-box;display:-ms-flexbox;display:flex}.between-box[data-v-2976a750]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.Marg15[data-v-2976a750]{margin-right:1.5rem}.MarL15[data-v-2976a750]{margin-left:1.25rem}.btn[data-v-2976a750]{width:5.63rem}.RecordBox[data-v-2976a750]{width:500px}.saveBtn[data-v-2976a750]{width:calc(100% - 40px);margin-bottom:20px;padding:10px 0;color:#fff;background:#53a8ff;text-align:center;margin-left:20px}.input-box[data-v-2976a750]{height:400px;width:100%}[data-v-2976a750] .van-field__body,[data-v-2976a750] .van-field__control{height:100%}.header-dialog[data-v-2976a750]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0 20px}#bodyfilebox[data-v-2976a750]{height:100%;border:1px solid #ebeef5}[data-v-2976a750] #viewerContainer{top:0!important}[data-v-2976a750] .toolbar{position:fixed!important;bottom:0!important}.headerMessageName[data-v-2976a750]{text-align:left;padding-left:50px}.keywordDialog[data-v-2976a750]{top:60%}", ""]);
|
|
22801
|
+
// Exports
|
|
22802
|
+
module.exports = exports;
|
|
22803
|
+
|
|
22804
|
+
|
|
22818
22805
|
/***/ }),
|
|
22819
22806
|
|
|
22820
22807
|
/***/ "ada2":
|
|
@@ -23802,6 +23789,17 @@ var update = add("f5b64788", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
23802
23789
|
})));
|
|
23803
23790
|
|
|
23804
23791
|
|
|
23792
|
+
/***/ }),
|
|
23793
|
+
|
|
23794
|
+
/***/ "c1dc":
|
|
23795
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
23796
|
+
|
|
23797
|
+
"use strict";
|
|
23798
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FileView_vue_vue_type_style_index_0_id_2976a750_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("db17");
|
|
23799
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FileView_vue_vue_type_style_index_0_id_2976a750_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FileView_vue_vue_type_style_index_0_id_2976a750_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
23800
|
+
/* unused harmony reexport * */
|
|
23801
|
+
|
|
23802
|
+
|
|
23805
23803
|
/***/ }),
|
|
23806
23804
|
|
|
23807
23805
|
/***/ "c1df":
|
|
@@ -29655,6 +29653,22 @@ var update = add("e5016780", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
29655
29653
|
})));
|
|
29656
29654
|
|
|
29657
29655
|
|
|
29656
|
+
/***/ }),
|
|
29657
|
+
|
|
29658
|
+
/***/ "db17":
|
|
29659
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
29660
|
+
|
|
29661
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
29662
|
+
|
|
29663
|
+
// load the styles
|
|
29664
|
+
var content = __webpack_require__("ad66");
|
|
29665
|
+
if(content.__esModule) content = content.default;
|
|
29666
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
29667
|
+
if(content.locals) module.exports = content.locals;
|
|
29668
|
+
// add the styles to the DOM
|
|
29669
|
+
var add = __webpack_require__("499e").default
|
|
29670
|
+
var update = add("afcb64be", content, true, {"sourceMap":false,"shadowMode":false});
|
|
29671
|
+
|
|
29658
29672
|
/***/ }),
|
|
29659
29673
|
|
|
29660
29674
|
/***/ "db29":
|
|
@@ -29899,20 +29913,6 @@ module.exports = exports;
|
|
|
29899
29913
|
/* unused harmony reexport * */
|
|
29900
29914
|
|
|
29901
29915
|
|
|
29902
|
-
/***/ }),
|
|
29903
|
-
|
|
29904
|
-
/***/ "e06e":
|
|
29905
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
29906
|
-
|
|
29907
|
-
// Imports
|
|
29908
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
29909
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
29910
|
-
// Module
|
|
29911
|
-
exports.push([module.i, ".lyy-collapse[data-v-397f0e06] .van-collapse-item .van-cell{padding:15px 16px 16px}[data-v-397f0e06] .van-collapse-item__content{padding:0 16px}a[data-v-397f0e06]{color:#333}.sidebarBox[data-v-397f0e06]{position:fixed;left:0;top:0;width:5.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:3.25rem;padding-top:30px;height:100vh;border-right:1px solid #e0e0e0}.contain[data-v-397f0e06]{height:100vh;width:100%}.content[data-v-397f0e06]{width:calc(100% - 5.5rem);height:calc(100% - 2.75rem);padding-left:5.5rem;background:#f9f9f9}.side-item[data-v-397f0e06]{height:6.25rem;width:100%}.side-item .item-box[data-v-397f0e06]{margin-top:1rem;text-align:center}.side-item .item-box .box-img[data-v-397f0e06]{width:2rem;height:2rem;margin:0 auto}.side-item .item-box .box-img img[data-v-397f0e06]{width:100%;height:100%}.header-box[data-v-397f0e06]{width:100%;height:3.25rem;background:#53a8ff;text-align:center;line-height:3.25rem;position:relative}.title[data-v-397f0e06]{display:inline-block;color:#fff;font-weight:700}.active[data-v-397f0e06]{color:#53a8ff;background:rgba(83,168,255,.1)}.back[data-v-397f0e06]{position:absolute;left:1rem;line-height:3.25rem}[data-v-397f0e06] .van-popup--left{left:inherit!important;top:3.5rem;-webkit-transform:none;transform:none}.paper-box[data-v-397f0e06]{margin:.63rem;border:1px solid #ebedf0;border-radius:4px}.ziliao-title[data-v-397f0e06]{font-size:1.13rem;font-weight:600;color:#333}.ziliao-img[data-v-397f0e06]{width:1.5rem;height:1.5rem;margin-right:.5rem}.ziliao-content[data-v-397f0e06]{padding:1.25rem 0 1.25rem 1.5rem;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative}.ziliao-content[data-v-397f0e06]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;bottom:0;left:1.5rem;border-bottom:1px solid #e0e0e0;-webkit-transform:scaleY(.5);transform:scaleY(.5);display:block}.ziliao-content .ziliao-content-img[data-v-397f0e06]{width:1.82rem;height:2.25rem}.ziliao-content .ziliao-content-img img[data-v-397f0e06]{width:100%;height:100%}.ziliao-content .title-ziliao[data-v-397f0e06]{font-size:.88rem;font-weight:400;color:#333}.ziliao-content .ziliao-content-title[data-v-397f0e06]{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-left:1rem}.ziliao-content .ziliao-content-cloum[data-v-397f0e06]{width:210px}.nbcontent .ziliao-content[data-v-397f0e06]:last-child:after{border-bottom:none}.yiti-box[data-v-397f0e06]{background:#fff;margin:.63rem;border:1px solid #ebedf0;border-radius:4px}.yiti-box .ziliao-title[data-v-397f0e06]{font-size:1.13rem;font-weight:600;color:#333}.yiti-box .ziliao-img[data-v-397f0e06]{width:1.5rem;height:1.5rem;margin-right:.5rem}.yiti-box .yiti-title[data-v-397f0e06]{font-size:1.13rem;font-weight:600;color:#333;padding:15px 16px 16px}.yiti-box .yiti-orderNo[data-v-397f0e06]{color:#ec8423;width:1.5rem;height:1.5rem;text-align:center;margin-right:.8rem;border:2px solid #ec8423;border-radius:50%}.flex-box[data-v-397f0e06]{display:-webkit-box;display:-ms-flexbox;display:flex}.between-box[data-v-397f0e06]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.Marg15[data-v-397f0e06]{margin-right:1.5rem}.MarL15[data-v-397f0e06]{margin-left:1.25rem}.btn[data-v-397f0e06]{width:5.63rem}.RecordBox[data-v-397f0e06]{width:500px}.saveBtn[data-v-397f0e06]{width:calc(100% - 40px);margin-bottom:20px;padding:10px 0;color:#fff;background:#53a8ff;text-align:center;margin-left:20px}.input-box[data-v-397f0e06]{height:400px;width:100%}[data-v-397f0e06] .van-field__body,[data-v-397f0e06] .van-field__control{height:100%}.header-dialog[data-v-397f0e06]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0 20px}#bodyfilebox[data-v-397f0e06]{height:100%;border:1px solid #ebeef5}[data-v-397f0e06] #viewerContainer{top:0!important}[data-v-397f0e06] .toolbar{position:fixed!important;bottom:0!important}.headerMessageName[data-v-397f0e06]{text-align:left;padding-left:50px}.keywordDialog[data-v-397f0e06]{top:60%}", ""]);
|
|
29912
|
-
// Exports
|
|
29913
|
-
module.exports = exports;
|
|
29914
|
-
|
|
29915
|
-
|
|
29916
29916
|
/***/ }),
|
|
29917
29917
|
|
|
29918
29918
|
/***/ "e0c5":
|
|
@@ -31250,8 +31250,8 @@ var staticRenderFns = [];
|
|
|
31250
31250
|
|
|
31251
31251
|
// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/index.vue?vue&type=template&id=7653cfc5&scoped=true&
|
|
31252
31252
|
|
|
31253
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9ad868ba-vue-loader-template"}!./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=template&id=
|
|
31254
|
-
var
|
|
31253
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9ad868ba-vue-loader-template"}!./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=template&id=2976a750&scoped=true&
|
|
31254
|
+
var FileViewvue_type_template_id_2976a750_scoped_true_render = function render() {
|
|
31255
31255
|
var _vm = this,
|
|
31256
31256
|
_c = _vm._self._c;
|
|
31257
31257
|
return _c('div', [_c('div', {
|
|
@@ -31646,7 +31646,7 @@ var FileViewvue_type_template_id_397f0e06_scoped_true_render = function render()
|
|
|
31646
31646
|
ref: "ServeDialog"
|
|
31647
31647
|
})], 1)])]);
|
|
31648
31648
|
};
|
|
31649
|
-
var
|
|
31649
|
+
var FileViewvue_type_template_id_2976a750_scoped_true_staticRenderFns = [function () {
|
|
31650
31650
|
var _vm = this,
|
|
31651
31651
|
_c = _vm._self._c;
|
|
31652
31652
|
return _c('div', {
|
|
@@ -31713,3444 +31713,404 @@ var FileViewvue_type_template_id_397f0e06_scoped_true_staticRenderFns = [functio
|
|
|
31713
31713
|
})]), _c('p', [_vm._v("会议服务")])]);
|
|
31714
31714
|
}];
|
|
31715
31715
|
|
|
31716
|
-
// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=template&id=
|
|
31716
|
+
// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=template&id=2976a750&scoped=true&
|
|
31717
31717
|
|
|
31718
31718
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
31719
31719
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
31720
31720
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
31721
31721
|
|
|
31722
|
-
// CONCATENATED MODULE: ./node_modules/
|
|
31723
|
-
|
|
31724
|
-
|
|
31725
|
-
|
|
31726
|
-
|
|
31727
|
-
|
|
31728
|
-
|
|
31729
|
-
|
|
31730
|
-
|
|
31731
|
-
|
|
31732
|
-
|
|
31733
|
-
|
|
31722
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
31723
|
+
function _extends() {
|
|
31724
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
31725
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
31726
|
+
var source = arguments[i];
|
|
31727
|
+
for (var key in source) {
|
|
31728
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
31729
|
+
target[key] = source[key];
|
|
31730
|
+
}
|
|
31731
|
+
}
|
|
31732
|
+
}
|
|
31733
|
+
return target;
|
|
31734
|
+
};
|
|
31735
|
+
return _extends.apply(this, arguments);
|
|
31734
31736
|
}
|
|
31735
|
-
|
|
31736
|
-
|
|
31737
|
-
|
|
31738
|
-
|
|
31737
|
+
// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/bem.js
|
|
31738
|
+
/**
|
|
31739
|
+
* bem helper
|
|
31740
|
+
* b() // 'button'
|
|
31741
|
+
* b('text') // 'button__text'
|
|
31742
|
+
* b({ disabled }) // 'button button--disabled'
|
|
31743
|
+
* b('text', { disabled }) // 'button__text button__text--disabled'
|
|
31744
|
+
* b(['disabled', 'primary']) // 'button button--disabled button--primary'
|
|
31745
|
+
*/
|
|
31746
|
+
function gen(name, mods) {
|
|
31747
|
+
if (!mods) {
|
|
31748
|
+
return '';
|
|
31739
31749
|
}
|
|
31740
|
-
}
|
|
31741
31750
|
|
|
31742
|
-
|
|
31743
|
-
|
|
31744
|
-
a[key] = b[key];
|
|
31751
|
+
if (typeof mods === 'string') {
|
|
31752
|
+
return " " + name + "--" + mods;
|
|
31745
31753
|
}
|
|
31746
|
-
return a
|
|
31747
|
-
}
|
|
31748
|
-
|
|
31749
|
-
/* */
|
|
31750
31754
|
|
|
31751
|
-
|
|
31752
|
-
|
|
31753
|
-
|
|
31754
|
-
|
|
31755
|
-
// fixed encodeURIComponent which is more conformant to RFC3986:
|
|
31756
|
-
// - escapes [!'()*]
|
|
31757
|
-
// - preserve commas
|
|
31758
|
-
var encode = function (str) { return encodeURIComponent(str)
|
|
31759
|
-
.replace(encodeReserveRE, encodeReserveReplacer)
|
|
31760
|
-
.replace(commaRE, ','); };
|
|
31761
|
-
|
|
31762
|
-
function decode (str) {
|
|
31763
|
-
try {
|
|
31764
|
-
return decodeURIComponent(str)
|
|
31765
|
-
} catch (err) {
|
|
31766
|
-
if (false) {}
|
|
31755
|
+
if (Array.isArray(mods)) {
|
|
31756
|
+
return mods.reduce(function (ret, item) {
|
|
31757
|
+
return ret + gen(name, item);
|
|
31758
|
+
}, '');
|
|
31767
31759
|
}
|
|
31768
|
-
return str
|
|
31769
|
-
}
|
|
31770
31760
|
|
|
31771
|
-
function
|
|
31772
|
-
|
|
31773
|
-
|
|
31774
|
-
_parseQuery
|
|
31775
|
-
) {
|
|
31776
|
-
if ( extraQuery === void 0 ) extraQuery = {};
|
|
31777
|
-
|
|
31778
|
-
var parse = _parseQuery || parseQuery;
|
|
31779
|
-
var parsedQuery;
|
|
31780
|
-
try {
|
|
31781
|
-
parsedQuery = parse(query || '');
|
|
31782
|
-
} catch (e) {
|
|
31783
|
-
"production" !== 'production' && warn(false, e.message);
|
|
31784
|
-
parsedQuery = {};
|
|
31785
|
-
}
|
|
31786
|
-
for (var key in extraQuery) {
|
|
31787
|
-
var value = extraQuery[key];
|
|
31788
|
-
parsedQuery[key] = Array.isArray(value)
|
|
31789
|
-
? value.map(castQueryParamValue)
|
|
31790
|
-
: castQueryParamValue(value);
|
|
31791
|
-
}
|
|
31792
|
-
return parsedQuery
|
|
31761
|
+
return Object.keys(mods).reduce(function (ret, key) {
|
|
31762
|
+
return ret + (mods[key] ? gen(name, key) : '');
|
|
31763
|
+
}, '');
|
|
31793
31764
|
}
|
|
31794
31765
|
|
|
31795
|
-
|
|
31796
|
-
|
|
31797
|
-
|
|
31798
|
-
|
|
31799
|
-
|
|
31800
|
-
query = query.trim().replace(/^(\?|#|&)/, '');
|
|
31801
|
-
|
|
31802
|
-
if (!query) {
|
|
31803
|
-
return res
|
|
31804
|
-
}
|
|
31805
|
-
|
|
31806
|
-
query.split('&').forEach(function (param) {
|
|
31807
|
-
var parts = param.replace(/\+/g, ' ').split('=');
|
|
31808
|
-
var key = decode(parts.shift());
|
|
31809
|
-
var val = parts.length > 0 ? decode(parts.join('=')) : null;
|
|
31810
|
-
|
|
31811
|
-
if (res[key] === undefined) {
|
|
31812
|
-
res[key] = val;
|
|
31813
|
-
} else if (Array.isArray(res[key])) {
|
|
31814
|
-
res[key].push(val);
|
|
31815
|
-
} else {
|
|
31816
|
-
res[key] = [res[key], val];
|
|
31766
|
+
function createBEM(name) {
|
|
31767
|
+
return function (el, mods) {
|
|
31768
|
+
if (el && typeof el !== 'string') {
|
|
31769
|
+
mods = el;
|
|
31770
|
+
el = '';
|
|
31817
31771
|
}
|
|
31818
|
-
});
|
|
31819
31772
|
|
|
31820
|
-
|
|
31773
|
+
el = el ? name + "__" + el : name;
|
|
31774
|
+
return "" + el + gen(el, mods);
|
|
31775
|
+
};
|
|
31821
31776
|
}
|
|
31777
|
+
// CONCATENATED MODULE: ./node_modules/vant/es/utils/index.js
|
|
31822
31778
|
|
|
31823
|
-
function stringifyQuery (obj) {
|
|
31824
|
-
var res = obj
|
|
31825
|
-
? Object.keys(obj)
|
|
31826
|
-
.map(function (key) {
|
|
31827
|
-
var val = obj[key];
|
|
31828
|
-
|
|
31829
|
-
if (val === undefined) {
|
|
31830
|
-
return ''
|
|
31831
|
-
}
|
|
31832
31779
|
|
|
31833
|
-
if (val === null) {
|
|
31834
|
-
return encode(key)
|
|
31835
|
-
}
|
|
31836
31780
|
|
|
31837
|
-
|
|
31838
|
-
|
|
31839
|
-
val.forEach(function (val2) {
|
|
31840
|
-
if (val2 === undefined) {
|
|
31841
|
-
return
|
|
31842
|
-
}
|
|
31843
|
-
if (val2 === null) {
|
|
31844
|
-
result.push(encode(key));
|
|
31845
|
-
} else {
|
|
31846
|
-
result.push(encode(key) + '=' + encode(val2));
|
|
31847
|
-
}
|
|
31848
|
-
});
|
|
31849
|
-
return result.join('&')
|
|
31850
|
-
}
|
|
31781
|
+
var inBrowser = typeof window !== 'undefined';
|
|
31782
|
+
var isServer = external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$isServer; // eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
31851
31783
|
|
|
31852
|
-
|
|
31853
|
-
|
|
31854
|
-
|
|
31855
|
-
.join('&')
|
|
31856
|
-
: null;
|
|
31857
|
-
return res ? ("?" + res) : ''
|
|
31784
|
+
function noop() {}
|
|
31785
|
+
function isDef(val) {
|
|
31786
|
+
return val !== undefined && val !== null;
|
|
31858
31787
|
}
|
|
31859
|
-
|
|
31860
|
-
|
|
31861
|
-
|
|
31862
|
-
var trailingSlashRE = /\/?$/;
|
|
31863
|
-
|
|
31864
|
-
function createRoute (
|
|
31865
|
-
record,
|
|
31866
|
-
location,
|
|
31867
|
-
redirectedFrom,
|
|
31868
|
-
router
|
|
31869
|
-
) {
|
|
31870
|
-
var stringifyQuery = router && router.options.stringifyQuery;
|
|
31871
|
-
|
|
31872
|
-
var query = location.query || {};
|
|
31873
|
-
try {
|
|
31874
|
-
query = clone(query);
|
|
31875
|
-
} catch (e) {}
|
|
31876
|
-
|
|
31877
|
-
var route = {
|
|
31878
|
-
name: location.name || (record && record.name),
|
|
31879
|
-
meta: (record && record.meta) || {},
|
|
31880
|
-
path: location.path || '/',
|
|
31881
|
-
hash: location.hash || '',
|
|
31882
|
-
query: query,
|
|
31883
|
-
params: location.params || {},
|
|
31884
|
-
fullPath: getFullPath(location, stringifyQuery),
|
|
31885
|
-
matched: record ? formatMatch(record) : []
|
|
31886
|
-
};
|
|
31887
|
-
if (redirectedFrom) {
|
|
31888
|
-
route.redirectedFrom = getFullPath(redirectedFrom, stringifyQuery);
|
|
31889
|
-
}
|
|
31890
|
-
return Object.freeze(route)
|
|
31788
|
+
function isFunction(val) {
|
|
31789
|
+
return typeof val === 'function';
|
|
31891
31790
|
}
|
|
31892
|
-
|
|
31893
|
-
|
|
31894
|
-
if (Array.isArray(value)) {
|
|
31895
|
-
return value.map(clone)
|
|
31896
|
-
} else if (value && typeof value === 'object') {
|
|
31897
|
-
var res = {};
|
|
31898
|
-
for (var key in value) {
|
|
31899
|
-
res[key] = clone(value[key]);
|
|
31900
|
-
}
|
|
31901
|
-
return res
|
|
31902
|
-
} else {
|
|
31903
|
-
return value
|
|
31904
|
-
}
|
|
31791
|
+
function isObject(val) {
|
|
31792
|
+
return val !== null && typeof val === 'object';
|
|
31905
31793
|
}
|
|
31906
|
-
|
|
31907
|
-
|
|
31908
|
-
var START = createRoute(null, {
|
|
31909
|
-
path: '/'
|
|
31910
|
-
});
|
|
31911
|
-
|
|
31912
|
-
function formatMatch (record) {
|
|
31913
|
-
var res = [];
|
|
31914
|
-
while (record) {
|
|
31915
|
-
res.unshift(record);
|
|
31916
|
-
record = record.parent;
|
|
31917
|
-
}
|
|
31918
|
-
return res
|
|
31794
|
+
function isPromise(val) {
|
|
31795
|
+
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
31919
31796
|
}
|
|
31797
|
+
function get(object, path) {
|
|
31798
|
+
var keys = path.split('.');
|
|
31799
|
+
var result = object;
|
|
31800
|
+
keys.forEach(function (key) {
|
|
31801
|
+
var _result$key;
|
|
31920
31802
|
|
|
31921
|
-
|
|
31922
|
-
|
|
31923
|
-
|
|
31924
|
-
) {
|
|
31925
|
-
var path = ref.path;
|
|
31926
|
-
var query = ref.query; if ( query === void 0 ) query = {};
|
|
31927
|
-
var hash = ref.hash; if ( hash === void 0 ) hash = '';
|
|
31928
|
-
|
|
31929
|
-
var stringify = _stringifyQuery || stringifyQuery;
|
|
31930
|
-
return (path || '/') + stringify(query) + hash
|
|
31803
|
+
result = isObject(result) ? (_result$key = result[key]) != null ? _result$key : '' : '';
|
|
31804
|
+
});
|
|
31805
|
+
return result;
|
|
31931
31806
|
}
|
|
31807
|
+
/**
|
|
31808
|
+
* Checks if `value` is an empty object, collection, map, or set.
|
|
31809
|
+
*
|
|
31810
|
+
* Objects are considered empty if they have no own enumerable string keyed
|
|
31811
|
+
* properties.
|
|
31812
|
+
*
|
|
31813
|
+
* Array-like values such as `arguments` objects, arrays, buffers, strings, or
|
|
31814
|
+
* jQuery-like collections are considered empty if they have a `length` of `0`.
|
|
31815
|
+
* Similarly, maps and sets are considered empty if they have a `size` of `0`.
|
|
31816
|
+
*
|
|
31817
|
+
* @function isEmpty
|
|
31818
|
+
* @param {*} value The value to check.
|
|
31819
|
+
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
|
|
31820
|
+
* @example
|
|
31821
|
+
*
|
|
31822
|
+
* _.isEmpty(null);
|
|
31823
|
+
* // => true
|
|
31824
|
+
*
|
|
31825
|
+
* _.isEmpty(true);
|
|
31826
|
+
* // => true
|
|
31827
|
+
*
|
|
31828
|
+
* _.isEmpty(1);
|
|
31829
|
+
* // => true
|
|
31830
|
+
*
|
|
31831
|
+
* _.isEmpty([1, 2, 3]);
|
|
31832
|
+
* // => false
|
|
31833
|
+
*
|
|
31834
|
+
* _.isEmpty({ 'a': 1 });
|
|
31835
|
+
* // => false
|
|
31836
|
+
*/
|
|
31932
31837
|
|
|
31933
|
-
function
|
|
31934
|
-
if (
|
|
31935
|
-
return
|
|
31936
|
-
} else if (!b) {
|
|
31937
|
-
return false
|
|
31938
|
-
} else if (a.path && b.path) {
|
|
31939
|
-
return a.path.replace(trailingSlashRE, '') === b.path.replace(trailingSlashRE, '') && (onlyPath ||
|
|
31940
|
-
a.hash === b.hash &&
|
|
31941
|
-
isObjectEqual(a.query, b.query))
|
|
31942
|
-
} else if (a.name && b.name) {
|
|
31943
|
-
return (
|
|
31944
|
-
a.name === b.name &&
|
|
31945
|
-
(onlyPath || (
|
|
31946
|
-
a.hash === b.hash &&
|
|
31947
|
-
isObjectEqual(a.query, b.query) &&
|
|
31948
|
-
isObjectEqual(a.params, b.params))
|
|
31949
|
-
)
|
|
31950
|
-
)
|
|
31951
|
-
} else {
|
|
31952
|
-
return false
|
|
31838
|
+
function isEmpty(value) {
|
|
31839
|
+
if (value == null) {
|
|
31840
|
+
return true;
|
|
31953
31841
|
}
|
|
31954
|
-
}
|
|
31955
31842
|
|
|
31956
|
-
|
|
31957
|
-
|
|
31958
|
-
if ( b === void 0 ) b = {};
|
|
31959
|
-
|
|
31960
|
-
// handle null value #1566
|
|
31961
|
-
if (!a || !b) { return a === b }
|
|
31962
|
-
var aKeys = Object.keys(a).sort();
|
|
31963
|
-
var bKeys = Object.keys(b).sort();
|
|
31964
|
-
if (aKeys.length !== bKeys.length) {
|
|
31965
|
-
return false
|
|
31843
|
+
if (typeof value !== 'object') {
|
|
31844
|
+
return true;
|
|
31966
31845
|
}
|
|
31967
|
-
return aKeys.every(function (key, i) {
|
|
31968
|
-
var aVal = a[key];
|
|
31969
|
-
var bKey = bKeys[i];
|
|
31970
|
-
if (bKey !== key) { return false }
|
|
31971
|
-
var bVal = b[key];
|
|
31972
|
-
// query values can be null and undefined
|
|
31973
|
-
if (aVal == null || bVal == null) { return aVal === bVal }
|
|
31974
|
-
// check nested equality
|
|
31975
|
-
if (typeof aVal === 'object' && typeof bVal === 'object') {
|
|
31976
|
-
return isObjectEqual(aVal, bVal)
|
|
31977
|
-
}
|
|
31978
|
-
return String(aVal) === String(bVal)
|
|
31979
|
-
})
|
|
31980
|
-
}
|
|
31981
31846
|
|
|
31982
|
-
|
|
31983
|
-
return (
|
|
31984
|
-
current.path.replace(trailingSlashRE, '/').indexOf(
|
|
31985
|
-
target.path.replace(trailingSlashRE, '/')
|
|
31986
|
-
) === 0 &&
|
|
31987
|
-
(!target.hash || current.hash === target.hash) &&
|
|
31988
|
-
queryIncludes(current.query, target.query)
|
|
31989
|
-
)
|
|
31847
|
+
return Object.keys(value).length === 0;
|
|
31990
31848
|
}
|
|
31991
|
-
|
|
31992
|
-
|
|
31993
|
-
|
|
31994
|
-
|
|
31995
|
-
|
|
31996
|
-
|
|
31997
|
-
}
|
|
31998
|
-
return true
|
|
31849
|
+
// CONCATENATED MODULE: ./node_modules/vant/es/utils/format/string.js
|
|
31850
|
+
var camelizeRE = /-(\w)/g;
|
|
31851
|
+
function camelize(str) {
|
|
31852
|
+
return str.replace(camelizeRE, function (_, c) {
|
|
31853
|
+
return c.toUpperCase();
|
|
31854
|
+
});
|
|
31999
31855
|
}
|
|
32000
|
-
|
|
32001
|
-
|
|
32002
|
-
|
|
32003
|
-
var record = route.matched[i];
|
|
32004
|
-
for (var name in record.instances) {
|
|
32005
|
-
var instance = record.instances[name];
|
|
32006
|
-
var cbs = record.enteredCbs[name];
|
|
32007
|
-
if (!instance || !cbs) { continue }
|
|
32008
|
-
delete record.enteredCbs[name];
|
|
32009
|
-
for (var i$1 = 0; i$1 < cbs.length; i$1++) {
|
|
32010
|
-
if (!instance._isBeingDestroyed) { cbs[i$1](instance); }
|
|
32011
|
-
}
|
|
32012
|
-
}
|
|
31856
|
+
function padZero(num, targetLength) {
|
|
31857
|
+
if (targetLength === void 0) {
|
|
31858
|
+
targetLength = 2;
|
|
32013
31859
|
}
|
|
32014
|
-
}
|
|
32015
|
-
|
|
32016
|
-
var View = {
|
|
32017
|
-
name: 'RouterView',
|
|
32018
|
-
functional: true,
|
|
32019
|
-
props: {
|
|
32020
|
-
name: {
|
|
32021
|
-
type: String,
|
|
32022
|
-
default: 'default'
|
|
32023
|
-
}
|
|
32024
|
-
},
|
|
32025
|
-
render: function render (_, ref) {
|
|
32026
|
-
var props = ref.props;
|
|
32027
|
-
var children = ref.children;
|
|
32028
|
-
var parent = ref.parent;
|
|
32029
|
-
var data = ref.data;
|
|
32030
|
-
|
|
32031
|
-
// used by devtools to display a router-view badge
|
|
32032
|
-
data.routerView = true;
|
|
32033
|
-
|
|
32034
|
-
// directly use parent context's createElement() function
|
|
32035
|
-
// so that components rendered by router-view can resolve named slots
|
|
32036
|
-
var h = parent.$createElement;
|
|
32037
|
-
var name = props.name;
|
|
32038
|
-
var route = parent.$route;
|
|
32039
|
-
var cache = parent._routerViewCache || (parent._routerViewCache = {});
|
|
32040
|
-
|
|
32041
|
-
// determine current view depth, also check to see if the tree
|
|
32042
|
-
// has been toggled inactive but kept-alive.
|
|
32043
|
-
var depth = 0;
|
|
32044
|
-
var inactive = false;
|
|
32045
|
-
while (parent && parent._routerRoot !== parent) {
|
|
32046
|
-
var vnodeData = parent.$vnode ? parent.$vnode.data : {};
|
|
32047
|
-
if (vnodeData.routerView) {
|
|
32048
|
-
depth++;
|
|
32049
|
-
}
|
|
32050
|
-
if (vnodeData.keepAlive && parent._directInactive && parent._inactive) {
|
|
32051
|
-
inactive = true;
|
|
32052
|
-
}
|
|
32053
|
-
parent = parent.$parent;
|
|
32054
|
-
}
|
|
32055
|
-
data.routerViewDepth = depth;
|
|
32056
|
-
|
|
32057
|
-
// render previous view if the tree is inactive and kept-alive
|
|
32058
|
-
if (inactive) {
|
|
32059
|
-
var cachedData = cache[name];
|
|
32060
|
-
var cachedComponent = cachedData && cachedData.component;
|
|
32061
|
-
if (cachedComponent) {
|
|
32062
|
-
// #2301
|
|
32063
|
-
// pass props
|
|
32064
|
-
if (cachedData.configProps) {
|
|
32065
|
-
fillPropsinData(cachedComponent, data, cachedData.route, cachedData.configProps);
|
|
32066
|
-
}
|
|
32067
|
-
return h(cachedComponent, data, children)
|
|
32068
|
-
} else {
|
|
32069
|
-
// render previous empty view
|
|
32070
|
-
return h()
|
|
32071
|
-
}
|
|
32072
|
-
}
|
|
32073
31860
|
|
|
32074
|
-
|
|
32075
|
-
var component = matched && matched.components[name];
|
|
32076
|
-
|
|
32077
|
-
// render empty node if no matched route or no config component
|
|
32078
|
-
if (!matched || !component) {
|
|
32079
|
-
cache[name] = null;
|
|
32080
|
-
return h()
|
|
32081
|
-
}
|
|
31861
|
+
var str = num + '';
|
|
32082
31862
|
|
|
32083
|
-
|
|
32084
|
-
|
|
31863
|
+
while (str.length < targetLength) {
|
|
31864
|
+
str = '0' + str;
|
|
31865
|
+
}
|
|
32085
31866
|
|
|
32086
|
-
|
|
32087
|
-
|
|
32088
|
-
|
|
32089
|
-
|
|
32090
|
-
|
|
32091
|
-
|
|
32092
|
-
|
|
32093
|
-
|
|
32094
|
-
|
|
32095
|
-
|
|
31867
|
+
return str;
|
|
31868
|
+
}
|
|
31869
|
+
// CONCATENATED MODULE: ./node_modules/vant/es/mixins/slots.js
|
|
31870
|
+
/**
|
|
31871
|
+
* Use scopedSlots in Vue 2.6+
|
|
31872
|
+
* downgrade to slots in lower version
|
|
31873
|
+
*/
|
|
31874
|
+
var SlotsMixin = {
|
|
31875
|
+
methods: {
|
|
31876
|
+
slots: function slots(name, props) {
|
|
31877
|
+
if (name === void 0) {
|
|
31878
|
+
name = 'default';
|
|
32096
31879
|
}
|
|
32097
|
-
}
|
|
32098
31880
|
|
|
32099
|
-
|
|
32100
|
-
|
|
32101
|
-
|
|
32102
|
-
matched.instances[name] = vnode.componentInstance;
|
|
32103
|
-
};
|
|
31881
|
+
var $slots = this.$slots,
|
|
31882
|
+
$scopedSlots = this.$scopedSlots;
|
|
31883
|
+
var scopedSlot = $scopedSlots[name];
|
|
32104
31884
|
|
|
32105
|
-
|
|
32106
|
-
|
|
32107
|
-
data.hook.init = function (vnode) {
|
|
32108
|
-
if (vnode.data.keepAlive &&
|
|
32109
|
-
vnode.componentInstance &&
|
|
32110
|
-
vnode.componentInstance !== matched.instances[name]
|
|
32111
|
-
) {
|
|
32112
|
-
matched.instances[name] = vnode.componentInstance;
|
|
31885
|
+
if (scopedSlot) {
|
|
31886
|
+
return scopedSlot(props);
|
|
32113
31887
|
}
|
|
32114
31888
|
|
|
32115
|
-
|
|
32116
|
-
// able to call the cbs during confirmation as the component was not
|
|
32117
|
-
// registered yet, so we call it here.
|
|
32118
|
-
handleRouteEntered(route);
|
|
32119
|
-
};
|
|
32120
|
-
|
|
32121
|
-
var configProps = matched.props && matched.props[name];
|
|
32122
|
-
// save route and configProps in cache
|
|
32123
|
-
if (configProps) {
|
|
32124
|
-
extend(cache[name], {
|
|
32125
|
-
route: route,
|
|
32126
|
-
configProps: configProps
|
|
32127
|
-
});
|
|
32128
|
-
fillPropsinData(component, data, route, configProps);
|
|
31889
|
+
return $slots[name];
|
|
32129
31890
|
}
|
|
32130
|
-
|
|
32131
|
-
return h(component, data, children)
|
|
32132
31891
|
}
|
|
32133
31892
|
};
|
|
31893
|
+
// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/component.js
|
|
31894
|
+
/**
|
|
31895
|
+
* Create a basic component with common options
|
|
31896
|
+
*/
|
|
32134
31897
|
|
|
32135
|
-
function fillPropsinData (component, data, route, configProps) {
|
|
32136
|
-
// resolve props
|
|
32137
|
-
var propsToPass = data.props = resolveProps(route, configProps);
|
|
32138
|
-
if (propsToPass) {
|
|
32139
|
-
// clone to prevent mutation
|
|
32140
|
-
propsToPass = data.props = extend({}, propsToPass);
|
|
32141
|
-
// pass non-declared props as attrs
|
|
32142
|
-
var attrs = data.attrs = data.attrs || {};
|
|
32143
|
-
for (var key in propsToPass) {
|
|
32144
|
-
if (!component.props || !(key in component.props)) {
|
|
32145
|
-
attrs[key] = propsToPass[key];
|
|
32146
|
-
delete propsToPass[key];
|
|
32147
|
-
}
|
|
32148
|
-
}
|
|
32149
|
-
}
|
|
32150
|
-
}
|
|
32151
31898
|
|
|
32152
|
-
function resolveProps (route, config) {
|
|
32153
|
-
switch (typeof config) {
|
|
32154
|
-
case 'undefined':
|
|
32155
|
-
return
|
|
32156
|
-
case 'object':
|
|
32157
|
-
return config
|
|
32158
|
-
case 'function':
|
|
32159
|
-
return config(route)
|
|
32160
|
-
case 'boolean':
|
|
32161
|
-
return config ? route.params : undefined
|
|
32162
|
-
default:
|
|
32163
|
-
if (false) {}
|
|
32164
|
-
}
|
|
32165
|
-
}
|
|
32166
31899
|
|
|
32167
|
-
/* */
|
|
32168
31900
|
|
|
32169
|
-
function resolvePath (
|
|
32170
|
-
relative,
|
|
32171
|
-
base,
|
|
32172
|
-
append
|
|
32173
|
-
) {
|
|
32174
|
-
var firstChar = relative.charAt(0);
|
|
32175
|
-
if (firstChar === '/') {
|
|
32176
|
-
return relative
|
|
32177
|
-
}
|
|
32178
31901
|
|
|
32179
|
-
if (firstChar === '?' || firstChar === '#') {
|
|
32180
|
-
return base + relative
|
|
32181
|
-
}
|
|
32182
31902
|
|
|
32183
|
-
|
|
31903
|
+
function install(Vue) {
|
|
31904
|
+
var name = this.name;
|
|
31905
|
+
Vue.component(name, this);
|
|
31906
|
+
Vue.component(camelize("-" + name), this);
|
|
31907
|
+
} // unify slots & scopedSlots
|
|
32184
31908
|
|
|
32185
|
-
// remove trailing segment if:
|
|
32186
|
-
// - not appending
|
|
32187
|
-
// - appending to trailing slash (last segment is empty)
|
|
32188
|
-
if (!append || !stack[stack.length - 1]) {
|
|
32189
|
-
stack.pop();
|
|
32190
|
-
}
|
|
32191
31909
|
|
|
32192
|
-
|
|
32193
|
-
|
|
32194
|
-
|
|
32195
|
-
|
|
32196
|
-
|
|
32197
|
-
|
|
32198
|
-
|
|
32199
|
-
|
|
31910
|
+
function unifySlots(context) {
|
|
31911
|
+
// use data.scopedSlots in lower Vue version
|
|
31912
|
+
var scopedSlots = context.scopedSlots || context.data.scopedSlots || {};
|
|
31913
|
+
var slots = context.slots();
|
|
31914
|
+
Object.keys(slots).forEach(function (key) {
|
|
31915
|
+
if (!scopedSlots[key]) {
|
|
31916
|
+
scopedSlots[key] = function () {
|
|
31917
|
+
return slots[key];
|
|
31918
|
+
};
|
|
32200
31919
|
}
|
|
32201
|
-
}
|
|
31920
|
+
});
|
|
31921
|
+
return scopedSlots;
|
|
31922
|
+
} // should be removed after Vue 3
|
|
32202
31923
|
|
|
32203
|
-
|
|
32204
|
-
|
|
32205
|
-
|
|
32206
|
-
|
|
31924
|
+
function transformFunctionComponent(pure) {
|
|
31925
|
+
return {
|
|
31926
|
+
functional: true,
|
|
31927
|
+
props: pure.props,
|
|
31928
|
+
model: pure.model,
|
|
31929
|
+
render: function render(h, context) {
|
|
31930
|
+
return pure(h, context.props, unifySlots(context), context);
|
|
31931
|
+
}
|
|
31932
|
+
};
|
|
31933
|
+
}
|
|
31934
|
+
|
|
31935
|
+
function createComponent(name) {
|
|
31936
|
+
return function (sfc) {
|
|
31937
|
+
if (isFunction(sfc)) {
|
|
31938
|
+
sfc = transformFunctionComponent(sfc);
|
|
31939
|
+
}
|
|
31940
|
+
|
|
31941
|
+
if (!sfc.functional) {
|
|
31942
|
+
sfc.mixins = sfc.mixins || [];
|
|
31943
|
+
sfc.mixins.push(SlotsMixin);
|
|
31944
|
+
}
|
|
32207
31945
|
|
|
32208
|
-
|
|
31946
|
+
sfc.name = name;
|
|
31947
|
+
sfc.install = install;
|
|
31948
|
+
return sfc;
|
|
31949
|
+
};
|
|
32209
31950
|
}
|
|
31951
|
+
// CONCATENATED MODULE: ./node_modules/vant/es/utils/deep-assign.js
|
|
32210
31952
|
|
|
32211
|
-
|
|
32212
|
-
var hash = '';
|
|
32213
|
-
var query = '';
|
|
31953
|
+
var deep_assign_hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
32214
31954
|
|
|
32215
|
-
|
|
32216
|
-
|
|
32217
|
-
hash = path.slice(hashIndex);
|
|
32218
|
-
path = path.slice(0, hashIndex);
|
|
32219
|
-
}
|
|
31955
|
+
function assignKey(to, from, key) {
|
|
31956
|
+
var val = from[key];
|
|
32220
31957
|
|
|
32221
|
-
|
|
32222
|
-
|
|
32223
|
-
query = path.slice(queryIndex + 1);
|
|
32224
|
-
path = path.slice(0, queryIndex);
|
|
31958
|
+
if (!isDef(val)) {
|
|
31959
|
+
return;
|
|
32225
31960
|
}
|
|
32226
31961
|
|
|
32227
|
-
|
|
32228
|
-
|
|
32229
|
-
|
|
32230
|
-
|
|
31962
|
+
if (!deep_assign_hasOwnProperty.call(to, key) || !isObject(val)) {
|
|
31963
|
+
to[key] = val;
|
|
31964
|
+
} else {
|
|
31965
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
31966
|
+
to[key] = deepAssign(Object(to[key]), from[key]);
|
|
32231
31967
|
}
|
|
32232
31968
|
}
|
|
32233
31969
|
|
|
32234
|
-
function
|
|
32235
|
-
|
|
31970
|
+
function deepAssign(to, from) {
|
|
31971
|
+
Object.keys(from).forEach(function (key) {
|
|
31972
|
+
assignKey(to, from, key);
|
|
31973
|
+
});
|
|
31974
|
+
return to;
|
|
32236
31975
|
}
|
|
31976
|
+
// CONCATENATED MODULE: ./node_modules/vant/es/locale/lang/zh-CN.js
|
|
31977
|
+
/* harmony default export */ var zh_CN = ({
|
|
31978
|
+
name: '姓名',
|
|
31979
|
+
tel: '电话',
|
|
31980
|
+
save: '保存',
|
|
31981
|
+
confirm: '确认',
|
|
31982
|
+
cancel: '取消',
|
|
31983
|
+
delete: '删除',
|
|
31984
|
+
complete: '完成',
|
|
31985
|
+
loading: '加载中...',
|
|
31986
|
+
telEmpty: '请填写电话',
|
|
31987
|
+
nameEmpty: '请填写姓名',
|
|
31988
|
+
nameInvalid: '请输入正确的姓名',
|
|
31989
|
+
confirmDelete: '确定要删除吗',
|
|
31990
|
+
telInvalid: '请输入正确的手机号',
|
|
31991
|
+
vanCalendar: {
|
|
31992
|
+
end: '结束',
|
|
31993
|
+
start: '开始',
|
|
31994
|
+
title: '日期选择',
|
|
31995
|
+
confirm: '确定',
|
|
31996
|
+
startEnd: '开始/结束',
|
|
31997
|
+
weekdays: ['日', '一', '二', '三', '四', '五', '六'],
|
|
31998
|
+
monthTitle: function monthTitle(year, month) {
|
|
31999
|
+
return year + "\u5E74" + month + "\u6708";
|
|
32000
|
+
},
|
|
32001
|
+
rangePrompt: function rangePrompt(maxRange) {
|
|
32002
|
+
return "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 " + maxRange + " \u5929";
|
|
32003
|
+
}
|
|
32004
|
+
},
|
|
32005
|
+
vanCascader: {
|
|
32006
|
+
select: '请选择'
|
|
32007
|
+
},
|
|
32008
|
+
vanContactCard: {
|
|
32009
|
+
addText: '添加联系人'
|
|
32010
|
+
},
|
|
32011
|
+
vanContactList: {
|
|
32012
|
+
addText: '新建联系人'
|
|
32013
|
+
},
|
|
32014
|
+
vanPagination: {
|
|
32015
|
+
prev: '上一页',
|
|
32016
|
+
next: '下一页'
|
|
32017
|
+
},
|
|
32018
|
+
vanPullRefresh: {
|
|
32019
|
+
pulling: '下拉即可刷新...',
|
|
32020
|
+
loosing: '释放即可刷新...'
|
|
32021
|
+
},
|
|
32022
|
+
vanSubmitBar: {
|
|
32023
|
+
label: '合计:'
|
|
32024
|
+
},
|
|
32025
|
+
vanCoupon: {
|
|
32026
|
+
unlimited: '无使用门槛',
|
|
32027
|
+
discount: function discount(_discount) {
|
|
32028
|
+
return _discount + "\u6298";
|
|
32029
|
+
},
|
|
32030
|
+
condition: function condition(_condition) {
|
|
32031
|
+
return "\u6EE1" + _condition + "\u5143\u53EF\u7528";
|
|
32032
|
+
}
|
|
32033
|
+
},
|
|
32034
|
+
vanCouponCell: {
|
|
32035
|
+
title: '优惠券',
|
|
32036
|
+
tips: '暂无可用',
|
|
32037
|
+
count: function count(_count) {
|
|
32038
|
+
return _count + "\u5F20\u53EF\u7528";
|
|
32039
|
+
}
|
|
32040
|
+
},
|
|
32041
|
+
vanCouponList: {
|
|
32042
|
+
empty: '暂无优惠券',
|
|
32043
|
+
exchange: '兑换',
|
|
32044
|
+
close: '不使用优惠券',
|
|
32045
|
+
enable: '可用',
|
|
32046
|
+
disabled: '不可用',
|
|
32047
|
+
placeholder: '请输入优惠码'
|
|
32048
|
+
},
|
|
32049
|
+
vanAddressEdit: {
|
|
32050
|
+
area: '地区',
|
|
32051
|
+
postal: '邮政编码',
|
|
32052
|
+
areaEmpty: '请选择地区',
|
|
32053
|
+
addressEmpty: '请填写详细地址',
|
|
32054
|
+
postalEmpty: '邮政编码格式不正确',
|
|
32055
|
+
defaultAddress: '设为默认收货地址',
|
|
32056
|
+
telPlaceholder: '收货人手机号',
|
|
32057
|
+
namePlaceholder: '收货人姓名',
|
|
32058
|
+
areaPlaceholder: '选择省 / 市 / 区'
|
|
32059
|
+
},
|
|
32060
|
+
vanAddressEditDetail: {
|
|
32061
|
+
label: '详细地址',
|
|
32062
|
+
placeholder: '街道门牌、楼层房间号等信息'
|
|
32063
|
+
},
|
|
32064
|
+
vanAddressList: {
|
|
32065
|
+
add: '新增地址'
|
|
32066
|
+
}
|
|
32067
|
+
});
|
|
32068
|
+
// CONCATENATED MODULE: ./node_modules/vant/es/locale/index.js
|
|
32237
32069
|
|
|
32238
|
-
var isarray = Array.isArray || function (arr) {
|
|
32239
|
-
return Object.prototype.toString.call(arr) == '[object Array]';
|
|
32240
|
-
};
|
|
32241
32070
|
|
|
32242
|
-
/**
|
|
32243
|
-
* Expose `pathToRegexp`.
|
|
32244
|
-
*/
|
|
32245
|
-
var pathToRegexp_1 = pathToRegexp;
|
|
32246
|
-
var parse_1 = parse;
|
|
32247
|
-
var compile_1 = compile;
|
|
32248
|
-
var tokensToFunction_1 = tokensToFunction;
|
|
32249
|
-
var tokensToRegExp_1 = tokensToRegExp;
|
|
32250
32071
|
|
|
32251
|
-
|
|
32252
|
-
|
|
32253
|
-
|
|
32254
|
-
|
|
32255
|
-
|
|
32256
|
-
|
|
32257
|
-
|
|
32258
|
-
|
|
32259
|
-
|
|
32260
|
-
|
|
32261
|
-
|
|
32262
|
-
|
|
32263
|
-
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
|
|
32264
|
-
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
|
|
32265
|
-
// "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
|
|
32266
|
-
'([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
|
|
32267
|
-
].join('|'), 'g');
|
|
32072
|
+
var proto = external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype;
|
|
32073
|
+
var defineReactive = external_commonjs_vue_commonjs2_vue_root_Vue_default.a.util.defineReactive;
|
|
32074
|
+
defineReactive(proto, '$vantLang', 'zh-CN');
|
|
32075
|
+
defineReactive(proto, '$vantMessages', {
|
|
32076
|
+
'zh-CN': zh_CN
|
|
32077
|
+
});
|
|
32078
|
+
/* harmony default export */ var locale = ({
|
|
32079
|
+
messages: function messages() {
|
|
32080
|
+
return proto.$vantMessages[proto.$vantLang];
|
|
32081
|
+
},
|
|
32082
|
+
use: function use(lang, messages) {
|
|
32083
|
+
var _this$add;
|
|
32268
32084
|
|
|
32269
|
-
|
|
32270
|
-
|
|
32271
|
-
|
|
32272
|
-
|
|
32273
|
-
|
|
32274
|
-
|
|
32275
|
-
|
|
32276
|
-
function parse (str, options) {
|
|
32277
|
-
var tokens = [];
|
|
32278
|
-
var key = 0;
|
|
32279
|
-
var index = 0;
|
|
32280
|
-
var path = '';
|
|
32281
|
-
var defaultDelimiter = options && options.delimiter || '/';
|
|
32282
|
-
var res;
|
|
32283
|
-
|
|
32284
|
-
while ((res = PATH_REGEXP.exec(str)) != null) {
|
|
32285
|
-
var m = res[0];
|
|
32286
|
-
var escaped = res[1];
|
|
32287
|
-
var offset = res.index;
|
|
32288
|
-
path += str.slice(index, offset);
|
|
32289
|
-
index = offset + m.length;
|
|
32290
|
-
|
|
32291
|
-
// Ignore already escaped sequences.
|
|
32292
|
-
if (escaped) {
|
|
32293
|
-
path += escaped[1];
|
|
32294
|
-
continue
|
|
32295
|
-
}
|
|
32296
|
-
|
|
32297
|
-
var next = str[index];
|
|
32298
|
-
var prefix = res[2];
|
|
32299
|
-
var name = res[3];
|
|
32300
|
-
var capture = res[4];
|
|
32301
|
-
var group = res[5];
|
|
32302
|
-
var modifier = res[6];
|
|
32303
|
-
var asterisk = res[7];
|
|
32304
|
-
|
|
32305
|
-
// Push the current path onto the tokens.
|
|
32306
|
-
if (path) {
|
|
32307
|
-
tokens.push(path);
|
|
32308
|
-
path = '';
|
|
32309
|
-
}
|
|
32310
|
-
|
|
32311
|
-
var partial = prefix != null && next != null && next !== prefix;
|
|
32312
|
-
var repeat = modifier === '+' || modifier === '*';
|
|
32313
|
-
var optional = modifier === '?' || modifier === '*';
|
|
32314
|
-
var delimiter = res[2] || defaultDelimiter;
|
|
32315
|
-
var pattern = capture || group;
|
|
32316
|
-
|
|
32317
|
-
tokens.push({
|
|
32318
|
-
name: name || key++,
|
|
32319
|
-
prefix: prefix || '',
|
|
32320
|
-
delimiter: delimiter,
|
|
32321
|
-
optional: optional,
|
|
32322
|
-
repeat: repeat,
|
|
32323
|
-
partial: partial,
|
|
32324
|
-
asterisk: !!asterisk,
|
|
32325
|
-
pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
|
|
32326
|
-
});
|
|
32327
|
-
}
|
|
32085
|
+
proto.$vantLang = lang;
|
|
32086
|
+
this.add((_this$add = {}, _this$add[lang] = messages, _this$add));
|
|
32087
|
+
},
|
|
32088
|
+
add: function add(messages) {
|
|
32089
|
+
if (messages === void 0) {
|
|
32090
|
+
messages = {};
|
|
32091
|
+
}
|
|
32328
32092
|
|
|
32329
|
-
|
|
32330
|
-
if (index < str.length) {
|
|
32331
|
-
path += str.substr(index);
|
|
32093
|
+
deepAssign(proto.$vantMessages, messages);
|
|
32332
32094
|
}
|
|
32095
|
+
});
|
|
32096
|
+
// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/i18n.js
|
|
32333
32097
|
|
|
32334
|
-
// If the path exists, push it onto the end.
|
|
32335
|
-
if (path) {
|
|
32336
|
-
tokens.push(path);
|
|
32337
|
-
}
|
|
32338
32098
|
|
|
32339
|
-
return tokens
|
|
32340
|
-
}
|
|
32341
32099
|
|
|
32342
|
-
|
|
32343
|
-
|
|
32344
|
-
|
|
32345
|
-
|
|
32346
|
-
|
|
32347
|
-
* @return {!function(Object=, Object=)}
|
|
32348
|
-
*/
|
|
32349
|
-
function compile (str, options) {
|
|
32350
|
-
return tokensToFunction(parse(str, options), options)
|
|
32351
|
-
}
|
|
32100
|
+
function createI18N(name) {
|
|
32101
|
+
var prefix = camelize(name) + '.';
|
|
32102
|
+
return function (path) {
|
|
32103
|
+
var messages = locale.messages();
|
|
32104
|
+
var message = get(messages, prefix + path) || get(messages, path);
|
|
32352
32105
|
|
|
32353
|
-
|
|
32354
|
-
|
|
32355
|
-
|
|
32356
|
-
* @param {string}
|
|
32357
|
-
* @return {string}
|
|
32358
|
-
*/
|
|
32359
|
-
function encodeURIComponentPretty (str) {
|
|
32360
|
-
return encodeURI(str).replace(/[\/?#]/g, function (c) {
|
|
32361
|
-
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
|
32362
|
-
})
|
|
32363
|
-
}
|
|
32106
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
32107
|
+
args[_key - 1] = arguments[_key];
|
|
32108
|
+
}
|
|
32364
32109
|
|
|
32365
|
-
|
|
32366
|
-
|
|
32367
|
-
*
|
|
32368
|
-
* @param {string}
|
|
32369
|
-
* @return {string}
|
|
32370
|
-
*/
|
|
32371
|
-
function encodeAsterisk (str) {
|
|
32372
|
-
return encodeURI(str).replace(/[?#]/g, function (c) {
|
|
32373
|
-
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
|
32374
|
-
})
|
|
32110
|
+
return isFunction(message) ? message.apply(void 0, args) : message;
|
|
32111
|
+
};
|
|
32375
32112
|
}
|
|
32376
|
-
|
|
32377
|
-
/**
|
|
32378
|
-
* Expose a method for transforming tokens into the path function.
|
|
32379
|
-
*/
|
|
32380
|
-
function tokensToFunction (tokens, options) {
|
|
32381
|
-
// Compile all the tokens into regexps.
|
|
32382
|
-
var matches = new Array(tokens.length);
|
|
32383
|
-
|
|
32384
|
-
// Compile all the patterns before compilation.
|
|
32385
|
-
for (var i = 0; i < tokens.length; i++) {
|
|
32386
|
-
if (typeof tokens[i] === 'object') {
|
|
32387
|
-
matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options));
|
|
32388
|
-
}
|
|
32389
|
-
}
|
|
32390
|
-
|
|
32391
|
-
return function (obj, opts) {
|
|
32392
|
-
var path = '';
|
|
32393
|
-
var data = obj || {};
|
|
32394
|
-
var options = opts || {};
|
|
32395
|
-
var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent;
|
|
32396
|
-
|
|
32397
|
-
for (var i = 0; i < tokens.length; i++) {
|
|
32398
|
-
var token = tokens[i];
|
|
32399
|
-
|
|
32400
|
-
if (typeof token === 'string') {
|
|
32401
|
-
path += token;
|
|
32402
|
-
|
|
32403
|
-
continue
|
|
32404
|
-
}
|
|
32405
|
-
|
|
32406
|
-
var value = data[token.name];
|
|
32407
|
-
var segment;
|
|
32408
|
-
|
|
32409
|
-
if (value == null) {
|
|
32410
|
-
if (token.optional) {
|
|
32411
|
-
// Prepend partial segment prefixes.
|
|
32412
|
-
if (token.partial) {
|
|
32413
|
-
path += token.prefix;
|
|
32414
|
-
}
|
|
32415
|
-
|
|
32416
|
-
continue
|
|
32417
|
-
} else {
|
|
32418
|
-
throw new TypeError('Expected "' + token.name + '" to be defined')
|
|
32419
|
-
}
|
|
32420
|
-
}
|
|
32421
|
-
|
|
32422
|
-
if (isarray(value)) {
|
|
32423
|
-
if (!token.repeat) {
|
|
32424
|
-
throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
|
|
32425
|
-
}
|
|
32426
|
-
|
|
32427
|
-
if (value.length === 0) {
|
|
32428
|
-
if (token.optional) {
|
|
32429
|
-
continue
|
|
32430
|
-
} else {
|
|
32431
|
-
throw new TypeError('Expected "' + token.name + '" to not be empty')
|
|
32432
|
-
}
|
|
32433
|
-
}
|
|
32434
|
-
|
|
32435
|
-
for (var j = 0; j < value.length; j++) {
|
|
32436
|
-
segment = encode(value[j]);
|
|
32437
|
-
|
|
32438
|
-
if (!matches[i].test(segment)) {
|
|
32439
|
-
throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
|
|
32440
|
-
}
|
|
32441
|
-
|
|
32442
|
-
path += (j === 0 ? token.prefix : token.delimiter) + segment;
|
|
32443
|
-
}
|
|
32444
|
-
|
|
32445
|
-
continue
|
|
32446
|
-
}
|
|
32447
|
-
|
|
32448
|
-
segment = token.asterisk ? encodeAsterisk(value) : encode(value);
|
|
32449
|
-
|
|
32450
|
-
if (!matches[i].test(segment)) {
|
|
32451
|
-
throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
|
|
32452
|
-
}
|
|
32453
|
-
|
|
32454
|
-
path += token.prefix + segment;
|
|
32455
|
-
}
|
|
32456
|
-
|
|
32457
|
-
return path
|
|
32458
|
-
}
|
|
32459
|
-
}
|
|
32460
|
-
|
|
32461
|
-
/**
|
|
32462
|
-
* Escape a regular expression string.
|
|
32463
|
-
*
|
|
32464
|
-
* @param {string} str
|
|
32465
|
-
* @return {string}
|
|
32466
|
-
*/
|
|
32467
|
-
function escapeString (str) {
|
|
32468
|
-
return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
|
|
32469
|
-
}
|
|
32470
|
-
|
|
32471
|
-
/**
|
|
32472
|
-
* Escape the capturing group by escaping special characters and meaning.
|
|
32473
|
-
*
|
|
32474
|
-
* @param {string} group
|
|
32475
|
-
* @return {string}
|
|
32476
|
-
*/
|
|
32477
|
-
function escapeGroup (group) {
|
|
32478
|
-
return group.replace(/([=!:$\/()])/g, '\\$1')
|
|
32479
|
-
}
|
|
32480
|
-
|
|
32481
|
-
/**
|
|
32482
|
-
* Attach the keys as a property of the regexp.
|
|
32483
|
-
*
|
|
32484
|
-
* @param {!RegExp} re
|
|
32485
|
-
* @param {Array} keys
|
|
32486
|
-
* @return {!RegExp}
|
|
32487
|
-
*/
|
|
32488
|
-
function attachKeys (re, keys) {
|
|
32489
|
-
re.keys = keys;
|
|
32490
|
-
return re
|
|
32491
|
-
}
|
|
32492
|
-
|
|
32493
|
-
/**
|
|
32494
|
-
* Get the flags for a regexp from the options.
|
|
32495
|
-
*
|
|
32496
|
-
* @param {Object} options
|
|
32497
|
-
* @return {string}
|
|
32498
|
-
*/
|
|
32499
|
-
function flags (options) {
|
|
32500
|
-
return options && options.sensitive ? '' : 'i'
|
|
32501
|
-
}
|
|
32502
|
-
|
|
32503
|
-
/**
|
|
32504
|
-
* Pull out keys from a regexp.
|
|
32505
|
-
*
|
|
32506
|
-
* @param {!RegExp} path
|
|
32507
|
-
* @param {!Array} keys
|
|
32508
|
-
* @return {!RegExp}
|
|
32509
|
-
*/
|
|
32510
|
-
function regexpToRegexp (path, keys) {
|
|
32511
|
-
// Use a negative lookahead to match only capturing groups.
|
|
32512
|
-
var groups = path.source.match(/\((?!\?)/g);
|
|
32513
|
-
|
|
32514
|
-
if (groups) {
|
|
32515
|
-
for (var i = 0; i < groups.length; i++) {
|
|
32516
|
-
keys.push({
|
|
32517
|
-
name: i,
|
|
32518
|
-
prefix: null,
|
|
32519
|
-
delimiter: null,
|
|
32520
|
-
optional: false,
|
|
32521
|
-
repeat: false,
|
|
32522
|
-
partial: false,
|
|
32523
|
-
asterisk: false,
|
|
32524
|
-
pattern: null
|
|
32525
|
-
});
|
|
32526
|
-
}
|
|
32527
|
-
}
|
|
32528
|
-
|
|
32529
|
-
return attachKeys(path, keys)
|
|
32530
|
-
}
|
|
32531
|
-
|
|
32532
|
-
/**
|
|
32533
|
-
* Transform an array into a regexp.
|
|
32534
|
-
*
|
|
32535
|
-
* @param {!Array} path
|
|
32536
|
-
* @param {Array} keys
|
|
32537
|
-
* @param {!Object} options
|
|
32538
|
-
* @return {!RegExp}
|
|
32539
|
-
*/
|
|
32540
|
-
function arrayToRegexp (path, keys, options) {
|
|
32541
|
-
var parts = [];
|
|
32542
|
-
|
|
32543
|
-
for (var i = 0; i < path.length; i++) {
|
|
32544
|
-
parts.push(pathToRegexp(path[i], keys, options).source);
|
|
32545
|
-
}
|
|
32546
|
-
|
|
32547
|
-
var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options));
|
|
32548
|
-
|
|
32549
|
-
return attachKeys(regexp, keys)
|
|
32550
|
-
}
|
|
32551
|
-
|
|
32552
|
-
/**
|
|
32553
|
-
* Create a path regexp from string input.
|
|
32554
|
-
*
|
|
32555
|
-
* @param {string} path
|
|
32556
|
-
* @param {!Array} keys
|
|
32557
|
-
* @param {!Object} options
|
|
32558
|
-
* @return {!RegExp}
|
|
32559
|
-
*/
|
|
32560
|
-
function stringToRegexp (path, keys, options) {
|
|
32561
|
-
return tokensToRegExp(parse(path, options), keys, options)
|
|
32562
|
-
}
|
|
32563
|
-
|
|
32564
|
-
/**
|
|
32565
|
-
* Expose a function for taking tokens and returning a RegExp.
|
|
32566
|
-
*
|
|
32567
|
-
* @param {!Array} tokens
|
|
32568
|
-
* @param {(Array|Object)=} keys
|
|
32569
|
-
* @param {Object=} options
|
|
32570
|
-
* @return {!RegExp}
|
|
32571
|
-
*/
|
|
32572
|
-
function tokensToRegExp (tokens, keys, options) {
|
|
32573
|
-
if (!isarray(keys)) {
|
|
32574
|
-
options = /** @type {!Object} */ (keys || options);
|
|
32575
|
-
keys = [];
|
|
32576
|
-
}
|
|
32577
|
-
|
|
32578
|
-
options = options || {};
|
|
32579
|
-
|
|
32580
|
-
var strict = options.strict;
|
|
32581
|
-
var end = options.end !== false;
|
|
32582
|
-
var route = '';
|
|
32583
|
-
|
|
32584
|
-
// Iterate over the tokens and create our regexp string.
|
|
32585
|
-
for (var i = 0; i < tokens.length; i++) {
|
|
32586
|
-
var token = tokens[i];
|
|
32587
|
-
|
|
32588
|
-
if (typeof token === 'string') {
|
|
32589
|
-
route += escapeString(token);
|
|
32590
|
-
} else {
|
|
32591
|
-
var prefix = escapeString(token.prefix);
|
|
32592
|
-
var capture = '(?:' + token.pattern + ')';
|
|
32593
|
-
|
|
32594
|
-
keys.push(token);
|
|
32595
|
-
|
|
32596
|
-
if (token.repeat) {
|
|
32597
|
-
capture += '(?:' + prefix + capture + ')*';
|
|
32598
|
-
}
|
|
32599
|
-
|
|
32600
|
-
if (token.optional) {
|
|
32601
|
-
if (!token.partial) {
|
|
32602
|
-
capture = '(?:' + prefix + '(' + capture + '))?';
|
|
32603
|
-
} else {
|
|
32604
|
-
capture = prefix + '(' + capture + ')?';
|
|
32605
|
-
}
|
|
32606
|
-
} else {
|
|
32607
|
-
capture = prefix + '(' + capture + ')';
|
|
32608
|
-
}
|
|
32609
|
-
|
|
32610
|
-
route += capture;
|
|
32611
|
-
}
|
|
32612
|
-
}
|
|
32613
|
-
|
|
32614
|
-
var delimiter = escapeString(options.delimiter || '/');
|
|
32615
|
-
var endsWithDelimiter = route.slice(-delimiter.length) === delimiter;
|
|
32616
|
-
|
|
32617
|
-
// In non-strict mode we allow a slash at the end of match. If the path to
|
|
32618
|
-
// match already ends with a slash, we remove it for consistency. The slash
|
|
32619
|
-
// is valid at the end of a path match, not in the middle. This is important
|
|
32620
|
-
// in non-ending mode, where "/test/" shouldn't match "/test//route".
|
|
32621
|
-
if (!strict) {
|
|
32622
|
-
route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?';
|
|
32623
|
-
}
|
|
32624
|
-
|
|
32625
|
-
if (end) {
|
|
32626
|
-
route += '$';
|
|
32627
|
-
} else {
|
|
32628
|
-
// In non-ending mode, we need the capturing groups to match as much as
|
|
32629
|
-
// possible by using a positive lookahead to the end or next path segment.
|
|
32630
|
-
route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)';
|
|
32631
|
-
}
|
|
32632
|
-
|
|
32633
|
-
return attachKeys(new RegExp('^' + route, flags(options)), keys)
|
|
32634
|
-
}
|
|
32635
|
-
|
|
32636
|
-
/**
|
|
32637
|
-
* Normalize the given path string, returning a regular expression.
|
|
32638
|
-
*
|
|
32639
|
-
* An empty array can be passed in for the keys, which will hold the
|
|
32640
|
-
* placeholder key descriptions. For example, using `/user/:id`, `keys` will
|
|
32641
|
-
* contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
|
|
32642
|
-
*
|
|
32643
|
-
* @param {(string|RegExp|Array)} path
|
|
32644
|
-
* @param {(Array|Object)=} keys
|
|
32645
|
-
* @param {Object=} options
|
|
32646
|
-
* @return {!RegExp}
|
|
32647
|
-
*/
|
|
32648
|
-
function pathToRegexp (path, keys, options) {
|
|
32649
|
-
if (!isarray(keys)) {
|
|
32650
|
-
options = /** @type {!Object} */ (keys || options);
|
|
32651
|
-
keys = [];
|
|
32652
|
-
}
|
|
32653
|
-
|
|
32654
|
-
options = options || {};
|
|
32655
|
-
|
|
32656
|
-
if (path instanceof RegExp) {
|
|
32657
|
-
return regexpToRegexp(path, /** @type {!Array} */ (keys))
|
|
32658
|
-
}
|
|
32659
|
-
|
|
32660
|
-
if (isarray(path)) {
|
|
32661
|
-
return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)
|
|
32662
|
-
}
|
|
32663
|
-
|
|
32664
|
-
return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)
|
|
32665
|
-
}
|
|
32666
|
-
pathToRegexp_1.parse = parse_1;
|
|
32667
|
-
pathToRegexp_1.compile = compile_1;
|
|
32668
|
-
pathToRegexp_1.tokensToFunction = tokensToFunction_1;
|
|
32669
|
-
pathToRegexp_1.tokensToRegExp = tokensToRegExp_1;
|
|
32670
|
-
|
|
32671
|
-
/* */
|
|
32672
|
-
|
|
32673
|
-
// $flow-disable-line
|
|
32674
|
-
var regexpCompileCache = Object.create(null);
|
|
32675
|
-
|
|
32676
|
-
function fillParams (
|
|
32677
|
-
path,
|
|
32678
|
-
params,
|
|
32679
|
-
routeMsg
|
|
32680
|
-
) {
|
|
32681
|
-
params = params || {};
|
|
32682
|
-
try {
|
|
32683
|
-
var filler =
|
|
32684
|
-
regexpCompileCache[path] ||
|
|
32685
|
-
(regexpCompileCache[path] = pathToRegexp_1.compile(path));
|
|
32686
|
-
|
|
32687
|
-
// Fix #2505 resolving asterisk routes { name: 'not-found', params: { pathMatch: '/not-found' }}
|
|
32688
|
-
// and fix #3106 so that you can work with location descriptor object having params.pathMatch equal to empty string
|
|
32689
|
-
if (typeof params.pathMatch === 'string') { params[0] = params.pathMatch; }
|
|
32690
|
-
|
|
32691
|
-
return filler(params, { pretty: true })
|
|
32692
|
-
} catch (e) {
|
|
32693
|
-
if (false) {}
|
|
32694
|
-
return ''
|
|
32695
|
-
} finally {
|
|
32696
|
-
// delete the 0 if it was added
|
|
32697
|
-
delete params[0];
|
|
32698
|
-
}
|
|
32699
|
-
}
|
|
32700
|
-
|
|
32701
|
-
/* */
|
|
32702
|
-
|
|
32703
|
-
function normalizeLocation (
|
|
32704
|
-
raw,
|
|
32705
|
-
current,
|
|
32706
|
-
append,
|
|
32707
|
-
router
|
|
32708
|
-
) {
|
|
32709
|
-
var next = typeof raw === 'string' ? { path: raw } : raw;
|
|
32710
|
-
// named target
|
|
32711
|
-
if (next._normalized) {
|
|
32712
|
-
return next
|
|
32713
|
-
} else if (next.name) {
|
|
32714
|
-
next = extend({}, raw);
|
|
32715
|
-
var params = next.params;
|
|
32716
|
-
if (params && typeof params === 'object') {
|
|
32717
|
-
next.params = extend({}, params);
|
|
32718
|
-
}
|
|
32719
|
-
return next
|
|
32720
|
-
}
|
|
32721
|
-
|
|
32722
|
-
// relative params
|
|
32723
|
-
if (!next.path && next.params && current) {
|
|
32724
|
-
next = extend({}, next);
|
|
32725
|
-
next._normalized = true;
|
|
32726
|
-
var params$1 = extend(extend({}, current.params), next.params);
|
|
32727
|
-
if (current.name) {
|
|
32728
|
-
next.name = current.name;
|
|
32729
|
-
next.params = params$1;
|
|
32730
|
-
} else if (current.matched.length) {
|
|
32731
|
-
var rawPath = current.matched[current.matched.length - 1].path;
|
|
32732
|
-
next.path = fillParams(rawPath, params$1, ("path " + (current.path)));
|
|
32733
|
-
} else if (false) {}
|
|
32734
|
-
return next
|
|
32735
|
-
}
|
|
32736
|
-
|
|
32737
|
-
var parsedPath = parsePath(next.path || '');
|
|
32738
|
-
var basePath = (current && current.path) || '/';
|
|
32739
|
-
var path = parsedPath.path
|
|
32740
|
-
? resolvePath(parsedPath.path, basePath, append || next.append)
|
|
32741
|
-
: basePath;
|
|
32742
|
-
|
|
32743
|
-
var query = resolveQuery(
|
|
32744
|
-
parsedPath.query,
|
|
32745
|
-
next.query,
|
|
32746
|
-
router && router.options.parseQuery
|
|
32747
|
-
);
|
|
32748
|
-
|
|
32749
|
-
var hash = next.hash || parsedPath.hash;
|
|
32750
|
-
if (hash && hash.charAt(0) !== '#') {
|
|
32751
|
-
hash = "#" + hash;
|
|
32752
|
-
}
|
|
32753
|
-
|
|
32754
|
-
return {
|
|
32755
|
-
_normalized: true,
|
|
32756
|
-
path: path,
|
|
32757
|
-
query: query,
|
|
32758
|
-
hash: hash
|
|
32759
|
-
}
|
|
32760
|
-
}
|
|
32761
|
-
|
|
32762
|
-
/* */
|
|
32763
|
-
|
|
32764
|
-
// work around weird flow bug
|
|
32765
|
-
var toTypes = [String, Object];
|
|
32766
|
-
var eventTypes = [String, Array];
|
|
32767
|
-
|
|
32768
|
-
var noop = function () {};
|
|
32769
|
-
|
|
32770
|
-
var warnedCustomSlot;
|
|
32771
|
-
var warnedTagProp;
|
|
32772
|
-
var warnedEventProp;
|
|
32773
|
-
|
|
32774
|
-
var Link = {
|
|
32775
|
-
name: 'RouterLink',
|
|
32776
|
-
props: {
|
|
32777
|
-
to: {
|
|
32778
|
-
type: toTypes,
|
|
32779
|
-
required: true
|
|
32780
|
-
},
|
|
32781
|
-
tag: {
|
|
32782
|
-
type: String,
|
|
32783
|
-
default: 'a'
|
|
32784
|
-
},
|
|
32785
|
-
custom: Boolean,
|
|
32786
|
-
exact: Boolean,
|
|
32787
|
-
exactPath: Boolean,
|
|
32788
|
-
append: Boolean,
|
|
32789
|
-
replace: Boolean,
|
|
32790
|
-
activeClass: String,
|
|
32791
|
-
exactActiveClass: String,
|
|
32792
|
-
ariaCurrentValue: {
|
|
32793
|
-
type: String,
|
|
32794
|
-
default: 'page'
|
|
32795
|
-
},
|
|
32796
|
-
event: {
|
|
32797
|
-
type: eventTypes,
|
|
32798
|
-
default: 'click'
|
|
32799
|
-
}
|
|
32800
|
-
},
|
|
32801
|
-
render: function render (h) {
|
|
32802
|
-
var this$1$1 = this;
|
|
32803
|
-
|
|
32804
|
-
var router = this.$router;
|
|
32805
|
-
var current = this.$route;
|
|
32806
|
-
var ref = router.resolve(
|
|
32807
|
-
this.to,
|
|
32808
|
-
current,
|
|
32809
|
-
this.append
|
|
32810
|
-
);
|
|
32811
|
-
var location = ref.location;
|
|
32812
|
-
var route = ref.route;
|
|
32813
|
-
var href = ref.href;
|
|
32814
|
-
|
|
32815
|
-
var classes = {};
|
|
32816
|
-
var globalActiveClass = router.options.linkActiveClass;
|
|
32817
|
-
var globalExactActiveClass = router.options.linkExactActiveClass;
|
|
32818
|
-
// Support global empty active class
|
|
32819
|
-
var activeClassFallback =
|
|
32820
|
-
globalActiveClass == null ? 'router-link-active' : globalActiveClass;
|
|
32821
|
-
var exactActiveClassFallback =
|
|
32822
|
-
globalExactActiveClass == null
|
|
32823
|
-
? 'router-link-exact-active'
|
|
32824
|
-
: globalExactActiveClass;
|
|
32825
|
-
var activeClass =
|
|
32826
|
-
this.activeClass == null ? activeClassFallback : this.activeClass;
|
|
32827
|
-
var exactActiveClass =
|
|
32828
|
-
this.exactActiveClass == null
|
|
32829
|
-
? exactActiveClassFallback
|
|
32830
|
-
: this.exactActiveClass;
|
|
32831
|
-
|
|
32832
|
-
var compareTarget = route.redirectedFrom
|
|
32833
|
-
? createRoute(null, normalizeLocation(route.redirectedFrom), null, router)
|
|
32834
|
-
: route;
|
|
32835
|
-
|
|
32836
|
-
classes[exactActiveClass] = isSameRoute(current, compareTarget, this.exactPath);
|
|
32837
|
-
classes[activeClass] = this.exact || this.exactPath
|
|
32838
|
-
? classes[exactActiveClass]
|
|
32839
|
-
: isIncludedRoute(current, compareTarget);
|
|
32840
|
-
|
|
32841
|
-
var ariaCurrentValue = classes[exactActiveClass] ? this.ariaCurrentValue : null;
|
|
32842
|
-
|
|
32843
|
-
var handler = function (e) {
|
|
32844
|
-
if (guardEvent(e)) {
|
|
32845
|
-
if (this$1$1.replace) {
|
|
32846
|
-
router.replace(location, noop);
|
|
32847
|
-
} else {
|
|
32848
|
-
router.push(location, noop);
|
|
32849
|
-
}
|
|
32850
|
-
}
|
|
32851
|
-
};
|
|
32852
|
-
|
|
32853
|
-
var on = { click: guardEvent };
|
|
32854
|
-
if (Array.isArray(this.event)) {
|
|
32855
|
-
this.event.forEach(function (e) {
|
|
32856
|
-
on[e] = handler;
|
|
32857
|
-
});
|
|
32858
|
-
} else {
|
|
32859
|
-
on[this.event] = handler;
|
|
32860
|
-
}
|
|
32861
|
-
|
|
32862
|
-
var data = { class: classes };
|
|
32863
|
-
|
|
32864
|
-
var scopedSlot =
|
|
32865
|
-
!this.$scopedSlots.$hasNormal &&
|
|
32866
|
-
this.$scopedSlots.default &&
|
|
32867
|
-
this.$scopedSlots.default({
|
|
32868
|
-
href: href,
|
|
32869
|
-
route: route,
|
|
32870
|
-
navigate: handler,
|
|
32871
|
-
isActive: classes[activeClass],
|
|
32872
|
-
isExactActive: classes[exactActiveClass]
|
|
32873
|
-
});
|
|
32874
|
-
|
|
32875
|
-
if (scopedSlot) {
|
|
32876
|
-
if (false) {}
|
|
32877
|
-
if (scopedSlot.length === 1) {
|
|
32878
|
-
return scopedSlot[0]
|
|
32879
|
-
} else if (scopedSlot.length > 1 || !scopedSlot.length) {
|
|
32880
|
-
if (false) {}
|
|
32881
|
-
return scopedSlot.length === 0 ? h() : h('span', {}, scopedSlot)
|
|
32882
|
-
}
|
|
32883
|
-
}
|
|
32884
|
-
|
|
32885
|
-
if (false) {}
|
|
32886
|
-
|
|
32887
|
-
if (this.tag === 'a') {
|
|
32888
|
-
data.on = on;
|
|
32889
|
-
data.attrs = { href: href, 'aria-current': ariaCurrentValue };
|
|
32890
|
-
} else {
|
|
32891
|
-
// find the first <a> child and apply listener and href
|
|
32892
|
-
var a = findAnchor(this.$slots.default);
|
|
32893
|
-
if (a) {
|
|
32894
|
-
// in case the <a> is a static node
|
|
32895
|
-
a.isStatic = false;
|
|
32896
|
-
var aData = (a.data = extend({}, a.data));
|
|
32897
|
-
aData.on = aData.on || {};
|
|
32898
|
-
// transform existing events in both objects into arrays so we can push later
|
|
32899
|
-
for (var event in aData.on) {
|
|
32900
|
-
var handler$1 = aData.on[event];
|
|
32901
|
-
if (event in on) {
|
|
32902
|
-
aData.on[event] = Array.isArray(handler$1) ? handler$1 : [handler$1];
|
|
32903
|
-
}
|
|
32904
|
-
}
|
|
32905
|
-
// append new listeners for router-link
|
|
32906
|
-
for (var event$1 in on) {
|
|
32907
|
-
if (event$1 in aData.on) {
|
|
32908
|
-
// on[event] is always a function
|
|
32909
|
-
aData.on[event$1].push(on[event$1]);
|
|
32910
|
-
} else {
|
|
32911
|
-
aData.on[event$1] = handler;
|
|
32912
|
-
}
|
|
32913
|
-
}
|
|
32914
|
-
|
|
32915
|
-
var aAttrs = (a.data.attrs = extend({}, a.data.attrs));
|
|
32916
|
-
aAttrs.href = href;
|
|
32917
|
-
aAttrs['aria-current'] = ariaCurrentValue;
|
|
32918
|
-
} else {
|
|
32919
|
-
// doesn't have <a> child, apply listener to self
|
|
32920
|
-
data.on = on;
|
|
32921
|
-
}
|
|
32922
|
-
}
|
|
32923
|
-
|
|
32924
|
-
return h(this.tag, data, this.$slots.default)
|
|
32925
|
-
}
|
|
32926
|
-
};
|
|
32927
|
-
|
|
32928
|
-
function guardEvent (e) {
|
|
32929
|
-
// don't redirect with control keys
|
|
32930
|
-
if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) { return }
|
|
32931
|
-
// don't redirect when preventDefault called
|
|
32932
|
-
if (e.defaultPrevented) { return }
|
|
32933
|
-
// don't redirect on right click
|
|
32934
|
-
if (e.button !== undefined && e.button !== 0) { return }
|
|
32935
|
-
// don't redirect if `target="_blank"`
|
|
32936
|
-
if (e.currentTarget && e.currentTarget.getAttribute) {
|
|
32937
|
-
var target = e.currentTarget.getAttribute('target');
|
|
32938
|
-
if (/\b_blank\b/i.test(target)) { return }
|
|
32939
|
-
}
|
|
32940
|
-
// this may be a Weex event which doesn't have this method
|
|
32941
|
-
if (e.preventDefault) {
|
|
32942
|
-
e.preventDefault();
|
|
32943
|
-
}
|
|
32944
|
-
return true
|
|
32945
|
-
}
|
|
32946
|
-
|
|
32947
|
-
function findAnchor (children) {
|
|
32948
|
-
if (children) {
|
|
32949
|
-
var child;
|
|
32950
|
-
for (var i = 0; i < children.length; i++) {
|
|
32951
|
-
child = children[i];
|
|
32952
|
-
if (child.tag === 'a') {
|
|
32953
|
-
return child
|
|
32954
|
-
}
|
|
32955
|
-
if (child.children && (child = findAnchor(child.children))) {
|
|
32956
|
-
return child
|
|
32957
|
-
}
|
|
32958
|
-
}
|
|
32959
|
-
}
|
|
32960
|
-
}
|
|
32961
|
-
|
|
32962
|
-
var _Vue;
|
|
32963
|
-
|
|
32964
|
-
function install (Vue) {
|
|
32965
|
-
if (install.installed && _Vue === Vue) { return }
|
|
32966
|
-
install.installed = true;
|
|
32967
|
-
|
|
32968
|
-
_Vue = Vue;
|
|
32969
|
-
|
|
32970
|
-
var isDef = function (v) { return v !== undefined; };
|
|
32971
|
-
|
|
32972
|
-
var registerInstance = function (vm, callVal) {
|
|
32973
|
-
var i = vm.$options._parentVnode;
|
|
32974
|
-
if (isDef(i) && isDef(i = i.data) && isDef(i = i.registerRouteInstance)) {
|
|
32975
|
-
i(vm, callVal);
|
|
32976
|
-
}
|
|
32977
|
-
};
|
|
32978
|
-
|
|
32979
|
-
Vue.mixin({
|
|
32980
|
-
beforeCreate: function beforeCreate () {
|
|
32981
|
-
if (isDef(this.$options.router)) {
|
|
32982
|
-
this._routerRoot = this;
|
|
32983
|
-
this._router = this.$options.router;
|
|
32984
|
-
this._router.init(this);
|
|
32985
|
-
Vue.util.defineReactive(this, '_route', this._router.history.current);
|
|
32986
|
-
} else {
|
|
32987
|
-
this._routerRoot = (this.$parent && this.$parent._routerRoot) || this;
|
|
32988
|
-
}
|
|
32989
|
-
registerInstance(this, this);
|
|
32990
|
-
},
|
|
32991
|
-
destroyed: function destroyed () {
|
|
32992
|
-
registerInstance(this);
|
|
32993
|
-
}
|
|
32994
|
-
});
|
|
32995
|
-
|
|
32996
|
-
Object.defineProperty(Vue.prototype, '$router', {
|
|
32997
|
-
get: function get () { return this._routerRoot._router }
|
|
32998
|
-
});
|
|
32999
|
-
|
|
33000
|
-
Object.defineProperty(Vue.prototype, '$route', {
|
|
33001
|
-
get: function get () { return this._routerRoot._route }
|
|
33002
|
-
});
|
|
33003
|
-
|
|
33004
|
-
Vue.component('RouterView', View);
|
|
33005
|
-
Vue.component('RouterLink', Link);
|
|
33006
|
-
|
|
33007
|
-
var strats = Vue.config.optionMergeStrategies;
|
|
33008
|
-
// use the same hook merging strategy for route hooks
|
|
33009
|
-
strats.beforeRouteEnter = strats.beforeRouteLeave = strats.beforeRouteUpdate = strats.created;
|
|
33010
|
-
}
|
|
33011
|
-
|
|
33012
|
-
/* */
|
|
33013
|
-
|
|
33014
|
-
var inBrowser = typeof window !== 'undefined';
|
|
33015
|
-
|
|
33016
|
-
/* */
|
|
33017
|
-
|
|
33018
|
-
function createRouteMap (
|
|
33019
|
-
routes,
|
|
33020
|
-
oldPathList,
|
|
33021
|
-
oldPathMap,
|
|
33022
|
-
oldNameMap,
|
|
33023
|
-
parentRoute
|
|
33024
|
-
) {
|
|
33025
|
-
// the path list is used to control path matching priority
|
|
33026
|
-
var pathList = oldPathList || [];
|
|
33027
|
-
// $flow-disable-line
|
|
33028
|
-
var pathMap = oldPathMap || Object.create(null);
|
|
33029
|
-
// $flow-disable-line
|
|
33030
|
-
var nameMap = oldNameMap || Object.create(null);
|
|
33031
|
-
|
|
33032
|
-
routes.forEach(function (route) {
|
|
33033
|
-
addRouteRecord(pathList, pathMap, nameMap, route, parentRoute);
|
|
33034
|
-
});
|
|
33035
|
-
|
|
33036
|
-
// ensure wildcard routes are always at the end
|
|
33037
|
-
for (var i = 0, l = pathList.length; i < l; i++) {
|
|
33038
|
-
if (pathList[i] === '*') {
|
|
33039
|
-
pathList.push(pathList.splice(i, 1)[0]);
|
|
33040
|
-
l--;
|
|
33041
|
-
i--;
|
|
33042
|
-
}
|
|
33043
|
-
}
|
|
33044
|
-
|
|
33045
|
-
if (false) { var pathNames, found; }
|
|
33046
|
-
|
|
33047
|
-
return {
|
|
33048
|
-
pathList: pathList,
|
|
33049
|
-
pathMap: pathMap,
|
|
33050
|
-
nameMap: nameMap
|
|
33051
|
-
}
|
|
33052
|
-
}
|
|
33053
|
-
|
|
33054
|
-
function addRouteRecord (
|
|
33055
|
-
pathList,
|
|
33056
|
-
pathMap,
|
|
33057
|
-
nameMap,
|
|
33058
|
-
route,
|
|
33059
|
-
parent,
|
|
33060
|
-
matchAs
|
|
33061
|
-
) {
|
|
33062
|
-
var path = route.path;
|
|
33063
|
-
var name = route.name;
|
|
33064
|
-
if (false) {}
|
|
33065
|
-
|
|
33066
|
-
var pathToRegexpOptions =
|
|
33067
|
-
route.pathToRegexpOptions || {};
|
|
33068
|
-
var normalizedPath = normalizePath(path, parent, pathToRegexpOptions.strict);
|
|
33069
|
-
|
|
33070
|
-
if (typeof route.caseSensitive === 'boolean') {
|
|
33071
|
-
pathToRegexpOptions.sensitive = route.caseSensitive;
|
|
33072
|
-
}
|
|
33073
|
-
|
|
33074
|
-
var record = {
|
|
33075
|
-
path: normalizedPath,
|
|
33076
|
-
regex: compileRouteRegex(normalizedPath, pathToRegexpOptions),
|
|
33077
|
-
components: route.components || { default: route.component },
|
|
33078
|
-
alias: route.alias
|
|
33079
|
-
? typeof route.alias === 'string'
|
|
33080
|
-
? [route.alias]
|
|
33081
|
-
: route.alias
|
|
33082
|
-
: [],
|
|
33083
|
-
instances: {},
|
|
33084
|
-
enteredCbs: {},
|
|
33085
|
-
name: name,
|
|
33086
|
-
parent: parent,
|
|
33087
|
-
matchAs: matchAs,
|
|
33088
|
-
redirect: route.redirect,
|
|
33089
|
-
beforeEnter: route.beforeEnter,
|
|
33090
|
-
meta: route.meta || {},
|
|
33091
|
-
props:
|
|
33092
|
-
route.props == null
|
|
33093
|
-
? {}
|
|
33094
|
-
: route.components
|
|
33095
|
-
? route.props
|
|
33096
|
-
: { default: route.props }
|
|
33097
|
-
};
|
|
33098
|
-
|
|
33099
|
-
if (route.children) {
|
|
33100
|
-
// Warn if route is named, does not redirect and has a default child route.
|
|
33101
|
-
// If users navigate to this route by name, the default child will
|
|
33102
|
-
// not be rendered (GH Issue #629)
|
|
33103
|
-
if (false) {}
|
|
33104
|
-
route.children.forEach(function (child) {
|
|
33105
|
-
var childMatchAs = matchAs
|
|
33106
|
-
? cleanPath((matchAs + "/" + (child.path)))
|
|
33107
|
-
: undefined;
|
|
33108
|
-
addRouteRecord(pathList, pathMap, nameMap, child, record, childMatchAs);
|
|
33109
|
-
});
|
|
33110
|
-
}
|
|
33111
|
-
|
|
33112
|
-
if (!pathMap[record.path]) {
|
|
33113
|
-
pathList.push(record.path);
|
|
33114
|
-
pathMap[record.path] = record;
|
|
33115
|
-
}
|
|
33116
|
-
|
|
33117
|
-
if (route.alias !== undefined) {
|
|
33118
|
-
var aliases = Array.isArray(route.alias) ? route.alias : [route.alias];
|
|
33119
|
-
for (var i = 0; i < aliases.length; ++i) {
|
|
33120
|
-
var alias = aliases[i];
|
|
33121
|
-
if (false) {}
|
|
33122
|
-
|
|
33123
|
-
var aliasRoute = {
|
|
33124
|
-
path: alias,
|
|
33125
|
-
children: route.children
|
|
33126
|
-
};
|
|
33127
|
-
addRouteRecord(
|
|
33128
|
-
pathList,
|
|
33129
|
-
pathMap,
|
|
33130
|
-
nameMap,
|
|
33131
|
-
aliasRoute,
|
|
33132
|
-
parent,
|
|
33133
|
-
record.path || '/' // matchAs
|
|
33134
|
-
);
|
|
33135
|
-
}
|
|
33136
|
-
}
|
|
33137
|
-
|
|
33138
|
-
if (name) {
|
|
33139
|
-
if (!nameMap[name]) {
|
|
33140
|
-
nameMap[name] = record;
|
|
33141
|
-
} else if (false) {}
|
|
33142
|
-
}
|
|
33143
|
-
}
|
|
33144
|
-
|
|
33145
|
-
function compileRouteRegex (
|
|
33146
|
-
path,
|
|
33147
|
-
pathToRegexpOptions
|
|
33148
|
-
) {
|
|
33149
|
-
var regex = pathToRegexp_1(path, [], pathToRegexpOptions);
|
|
33150
|
-
if (false) { var keys; }
|
|
33151
|
-
return regex
|
|
33152
|
-
}
|
|
33153
|
-
|
|
33154
|
-
function normalizePath (
|
|
33155
|
-
path,
|
|
33156
|
-
parent,
|
|
33157
|
-
strict
|
|
33158
|
-
) {
|
|
33159
|
-
if (!strict) { path = path.replace(/\/$/, ''); }
|
|
33160
|
-
if (path[0] === '/') { return path }
|
|
33161
|
-
if (parent == null) { return path }
|
|
33162
|
-
return cleanPath(((parent.path) + "/" + path))
|
|
33163
|
-
}
|
|
33164
|
-
|
|
33165
|
-
/* */
|
|
33166
|
-
|
|
33167
|
-
|
|
33168
|
-
|
|
33169
|
-
function createMatcher (
|
|
33170
|
-
routes,
|
|
33171
|
-
router
|
|
33172
|
-
) {
|
|
33173
|
-
var ref = createRouteMap(routes);
|
|
33174
|
-
var pathList = ref.pathList;
|
|
33175
|
-
var pathMap = ref.pathMap;
|
|
33176
|
-
var nameMap = ref.nameMap;
|
|
33177
|
-
|
|
33178
|
-
function addRoutes (routes) {
|
|
33179
|
-
createRouteMap(routes, pathList, pathMap, nameMap);
|
|
33180
|
-
}
|
|
33181
|
-
|
|
33182
|
-
function addRoute (parentOrRoute, route) {
|
|
33183
|
-
var parent = (typeof parentOrRoute !== 'object') ? nameMap[parentOrRoute] : undefined;
|
|
33184
|
-
// $flow-disable-line
|
|
33185
|
-
createRouteMap([route || parentOrRoute], pathList, pathMap, nameMap, parent);
|
|
33186
|
-
|
|
33187
|
-
// add aliases of parent
|
|
33188
|
-
if (parent && parent.alias.length) {
|
|
33189
|
-
createRouteMap(
|
|
33190
|
-
// $flow-disable-line route is defined if parent is
|
|
33191
|
-
parent.alias.map(function (alias) { return ({ path: alias, children: [route] }); }),
|
|
33192
|
-
pathList,
|
|
33193
|
-
pathMap,
|
|
33194
|
-
nameMap,
|
|
33195
|
-
parent
|
|
33196
|
-
);
|
|
33197
|
-
}
|
|
33198
|
-
}
|
|
33199
|
-
|
|
33200
|
-
function getRoutes () {
|
|
33201
|
-
return pathList.map(function (path) { return pathMap[path]; })
|
|
33202
|
-
}
|
|
33203
|
-
|
|
33204
|
-
function match (
|
|
33205
|
-
raw,
|
|
33206
|
-
currentRoute,
|
|
33207
|
-
redirectedFrom
|
|
33208
|
-
) {
|
|
33209
|
-
var location = normalizeLocation(raw, currentRoute, false, router);
|
|
33210
|
-
var name = location.name;
|
|
33211
|
-
|
|
33212
|
-
if (name) {
|
|
33213
|
-
var record = nameMap[name];
|
|
33214
|
-
if (false) {}
|
|
33215
|
-
if (!record) { return _createRoute(null, location) }
|
|
33216
|
-
var paramNames = record.regex.keys
|
|
33217
|
-
.filter(function (key) { return !key.optional; })
|
|
33218
|
-
.map(function (key) { return key.name; });
|
|
33219
|
-
|
|
33220
|
-
if (typeof location.params !== 'object') {
|
|
33221
|
-
location.params = {};
|
|
33222
|
-
}
|
|
33223
|
-
|
|
33224
|
-
if (currentRoute && typeof currentRoute.params === 'object') {
|
|
33225
|
-
for (var key in currentRoute.params) {
|
|
33226
|
-
if (!(key in location.params) && paramNames.indexOf(key) > -1) {
|
|
33227
|
-
location.params[key] = currentRoute.params[key];
|
|
33228
|
-
}
|
|
33229
|
-
}
|
|
33230
|
-
}
|
|
33231
|
-
|
|
33232
|
-
location.path = fillParams(record.path, location.params, ("named route \"" + name + "\""));
|
|
33233
|
-
return _createRoute(record, location, redirectedFrom)
|
|
33234
|
-
} else if (location.path) {
|
|
33235
|
-
location.params = {};
|
|
33236
|
-
for (var i = 0; i < pathList.length; i++) {
|
|
33237
|
-
var path = pathList[i];
|
|
33238
|
-
var record$1 = pathMap[path];
|
|
33239
|
-
if (matchRoute(record$1.regex, location.path, location.params)) {
|
|
33240
|
-
return _createRoute(record$1, location, redirectedFrom)
|
|
33241
|
-
}
|
|
33242
|
-
}
|
|
33243
|
-
}
|
|
33244
|
-
// no match
|
|
33245
|
-
return _createRoute(null, location)
|
|
33246
|
-
}
|
|
33247
|
-
|
|
33248
|
-
function redirect (
|
|
33249
|
-
record,
|
|
33250
|
-
location
|
|
33251
|
-
) {
|
|
33252
|
-
var originalRedirect = record.redirect;
|
|
33253
|
-
var redirect = typeof originalRedirect === 'function'
|
|
33254
|
-
? originalRedirect(createRoute(record, location, null, router))
|
|
33255
|
-
: originalRedirect;
|
|
33256
|
-
|
|
33257
|
-
if (typeof redirect === 'string') {
|
|
33258
|
-
redirect = { path: redirect };
|
|
33259
|
-
}
|
|
33260
|
-
|
|
33261
|
-
if (!redirect || typeof redirect !== 'object') {
|
|
33262
|
-
if (false) {}
|
|
33263
|
-
return _createRoute(null, location)
|
|
33264
|
-
}
|
|
33265
|
-
|
|
33266
|
-
var re = redirect;
|
|
33267
|
-
var name = re.name;
|
|
33268
|
-
var path = re.path;
|
|
33269
|
-
var query = location.query;
|
|
33270
|
-
var hash = location.hash;
|
|
33271
|
-
var params = location.params;
|
|
33272
|
-
query = re.hasOwnProperty('query') ? re.query : query;
|
|
33273
|
-
hash = re.hasOwnProperty('hash') ? re.hash : hash;
|
|
33274
|
-
params = re.hasOwnProperty('params') ? re.params : params;
|
|
33275
|
-
|
|
33276
|
-
if (name) {
|
|
33277
|
-
// resolved named direct
|
|
33278
|
-
var targetRecord = nameMap[name];
|
|
33279
|
-
if (false) {}
|
|
33280
|
-
return match({
|
|
33281
|
-
_normalized: true,
|
|
33282
|
-
name: name,
|
|
33283
|
-
query: query,
|
|
33284
|
-
hash: hash,
|
|
33285
|
-
params: params
|
|
33286
|
-
}, undefined, location)
|
|
33287
|
-
} else if (path) {
|
|
33288
|
-
// 1. resolve relative redirect
|
|
33289
|
-
var rawPath = resolveRecordPath(path, record);
|
|
33290
|
-
// 2. resolve params
|
|
33291
|
-
var resolvedPath = fillParams(rawPath, params, ("redirect route with path \"" + rawPath + "\""));
|
|
33292
|
-
// 3. rematch with existing query and hash
|
|
33293
|
-
return match({
|
|
33294
|
-
_normalized: true,
|
|
33295
|
-
path: resolvedPath,
|
|
33296
|
-
query: query,
|
|
33297
|
-
hash: hash
|
|
33298
|
-
}, undefined, location)
|
|
33299
|
-
} else {
|
|
33300
|
-
if (false) {}
|
|
33301
|
-
return _createRoute(null, location)
|
|
33302
|
-
}
|
|
33303
|
-
}
|
|
33304
|
-
|
|
33305
|
-
function alias (
|
|
33306
|
-
record,
|
|
33307
|
-
location,
|
|
33308
|
-
matchAs
|
|
33309
|
-
) {
|
|
33310
|
-
var aliasedPath = fillParams(matchAs, location.params, ("aliased route with path \"" + matchAs + "\""));
|
|
33311
|
-
var aliasedMatch = match({
|
|
33312
|
-
_normalized: true,
|
|
33313
|
-
path: aliasedPath
|
|
33314
|
-
});
|
|
33315
|
-
if (aliasedMatch) {
|
|
33316
|
-
var matched = aliasedMatch.matched;
|
|
33317
|
-
var aliasedRecord = matched[matched.length - 1];
|
|
33318
|
-
location.params = aliasedMatch.params;
|
|
33319
|
-
return _createRoute(aliasedRecord, location)
|
|
33320
|
-
}
|
|
33321
|
-
return _createRoute(null, location)
|
|
33322
|
-
}
|
|
33323
|
-
|
|
33324
|
-
function _createRoute (
|
|
33325
|
-
record,
|
|
33326
|
-
location,
|
|
33327
|
-
redirectedFrom
|
|
33328
|
-
) {
|
|
33329
|
-
if (record && record.redirect) {
|
|
33330
|
-
return redirect(record, redirectedFrom || location)
|
|
33331
|
-
}
|
|
33332
|
-
if (record && record.matchAs) {
|
|
33333
|
-
return alias(record, location, record.matchAs)
|
|
33334
|
-
}
|
|
33335
|
-
return createRoute(record, location, redirectedFrom, router)
|
|
33336
|
-
}
|
|
33337
|
-
|
|
33338
|
-
return {
|
|
33339
|
-
match: match,
|
|
33340
|
-
addRoute: addRoute,
|
|
33341
|
-
getRoutes: getRoutes,
|
|
33342
|
-
addRoutes: addRoutes
|
|
33343
|
-
}
|
|
33344
|
-
}
|
|
33345
|
-
|
|
33346
|
-
function matchRoute (
|
|
33347
|
-
regex,
|
|
33348
|
-
path,
|
|
33349
|
-
params
|
|
33350
|
-
) {
|
|
33351
|
-
var m = path.match(regex);
|
|
33352
|
-
|
|
33353
|
-
if (!m) {
|
|
33354
|
-
return false
|
|
33355
|
-
} else if (!params) {
|
|
33356
|
-
return true
|
|
33357
|
-
}
|
|
33358
|
-
|
|
33359
|
-
for (var i = 1, len = m.length; i < len; ++i) {
|
|
33360
|
-
var key = regex.keys[i - 1];
|
|
33361
|
-
if (key) {
|
|
33362
|
-
// Fix #1994: using * with props: true generates a param named 0
|
|
33363
|
-
params[key.name || 'pathMatch'] = typeof m[i] === 'string' ? decode(m[i]) : m[i];
|
|
33364
|
-
}
|
|
33365
|
-
}
|
|
33366
|
-
|
|
33367
|
-
return true
|
|
33368
|
-
}
|
|
33369
|
-
|
|
33370
|
-
function resolveRecordPath (path, record) {
|
|
33371
|
-
return resolvePath(path, record.parent ? record.parent.path : '/', true)
|
|
33372
|
-
}
|
|
33373
|
-
|
|
33374
|
-
/* */
|
|
33375
|
-
|
|
33376
|
-
// use User Timing api (if present) for more accurate key precision
|
|
33377
|
-
var Time =
|
|
33378
|
-
inBrowser && window.performance && window.performance.now
|
|
33379
|
-
? window.performance
|
|
33380
|
-
: Date;
|
|
33381
|
-
|
|
33382
|
-
function genStateKey () {
|
|
33383
|
-
return Time.now().toFixed(3)
|
|
33384
|
-
}
|
|
33385
|
-
|
|
33386
|
-
var vue_router_esm_key = genStateKey();
|
|
33387
|
-
|
|
33388
|
-
function getStateKey () {
|
|
33389
|
-
return vue_router_esm_key
|
|
33390
|
-
}
|
|
33391
|
-
|
|
33392
|
-
function setStateKey (key) {
|
|
33393
|
-
return (vue_router_esm_key = key)
|
|
33394
|
-
}
|
|
33395
|
-
|
|
33396
|
-
/* */
|
|
33397
|
-
|
|
33398
|
-
var positionStore = Object.create(null);
|
|
33399
|
-
|
|
33400
|
-
function setupScroll () {
|
|
33401
|
-
// Prevent browser scroll behavior on History popstate
|
|
33402
|
-
if ('scrollRestoration' in window.history) {
|
|
33403
|
-
window.history.scrollRestoration = 'manual';
|
|
33404
|
-
}
|
|
33405
|
-
// Fix for #1585 for Firefox
|
|
33406
|
-
// Fix for #2195 Add optional third attribute to workaround a bug in safari https://bugs.webkit.org/show_bug.cgi?id=182678
|
|
33407
|
-
// Fix for #2774 Support for apps loaded from Windows file shares not mapped to network drives: replaced location.origin with
|
|
33408
|
-
// window.location.protocol + '//' + window.location.host
|
|
33409
|
-
// location.host contains the port and location.hostname doesn't
|
|
33410
|
-
var protocolAndPath = window.location.protocol + '//' + window.location.host;
|
|
33411
|
-
var absolutePath = window.location.href.replace(protocolAndPath, '');
|
|
33412
|
-
// preserve existing history state as it could be overriden by the user
|
|
33413
|
-
var stateCopy = extend({}, window.history.state);
|
|
33414
|
-
stateCopy.key = getStateKey();
|
|
33415
|
-
window.history.replaceState(stateCopy, '', absolutePath);
|
|
33416
|
-
window.addEventListener('popstate', handlePopState);
|
|
33417
|
-
return function () {
|
|
33418
|
-
window.removeEventListener('popstate', handlePopState);
|
|
33419
|
-
}
|
|
33420
|
-
}
|
|
33421
|
-
|
|
33422
|
-
function handleScroll (
|
|
33423
|
-
router,
|
|
33424
|
-
to,
|
|
33425
|
-
from,
|
|
33426
|
-
isPop
|
|
33427
|
-
) {
|
|
33428
|
-
if (!router.app) {
|
|
33429
|
-
return
|
|
33430
|
-
}
|
|
33431
|
-
|
|
33432
|
-
var behavior = router.options.scrollBehavior;
|
|
33433
|
-
if (!behavior) {
|
|
33434
|
-
return
|
|
33435
|
-
}
|
|
33436
|
-
|
|
33437
|
-
if (false) {}
|
|
33438
|
-
|
|
33439
|
-
// wait until re-render finishes before scrolling
|
|
33440
|
-
router.app.$nextTick(function () {
|
|
33441
|
-
var position = getScrollPosition();
|
|
33442
|
-
var shouldScroll = behavior.call(
|
|
33443
|
-
router,
|
|
33444
|
-
to,
|
|
33445
|
-
from,
|
|
33446
|
-
isPop ? position : null
|
|
33447
|
-
);
|
|
33448
|
-
|
|
33449
|
-
if (!shouldScroll) {
|
|
33450
|
-
return
|
|
33451
|
-
}
|
|
33452
|
-
|
|
33453
|
-
if (typeof shouldScroll.then === 'function') {
|
|
33454
|
-
shouldScroll
|
|
33455
|
-
.then(function (shouldScroll) {
|
|
33456
|
-
scrollToPosition((shouldScroll), position);
|
|
33457
|
-
})
|
|
33458
|
-
.catch(function (err) {
|
|
33459
|
-
if (false) {}
|
|
33460
|
-
});
|
|
33461
|
-
} else {
|
|
33462
|
-
scrollToPosition(shouldScroll, position);
|
|
33463
|
-
}
|
|
33464
|
-
});
|
|
33465
|
-
}
|
|
33466
|
-
|
|
33467
|
-
function saveScrollPosition () {
|
|
33468
|
-
var key = getStateKey();
|
|
33469
|
-
if (key) {
|
|
33470
|
-
positionStore[key] = {
|
|
33471
|
-
x: window.pageXOffset,
|
|
33472
|
-
y: window.pageYOffset
|
|
33473
|
-
};
|
|
33474
|
-
}
|
|
33475
|
-
}
|
|
33476
|
-
|
|
33477
|
-
function handlePopState (e) {
|
|
33478
|
-
saveScrollPosition();
|
|
33479
|
-
if (e.state && e.state.key) {
|
|
33480
|
-
setStateKey(e.state.key);
|
|
33481
|
-
}
|
|
33482
|
-
}
|
|
33483
|
-
|
|
33484
|
-
function getScrollPosition () {
|
|
33485
|
-
var key = getStateKey();
|
|
33486
|
-
if (key) {
|
|
33487
|
-
return positionStore[key]
|
|
33488
|
-
}
|
|
33489
|
-
}
|
|
33490
|
-
|
|
33491
|
-
function getElementPosition (el, offset) {
|
|
33492
|
-
var docEl = document.documentElement;
|
|
33493
|
-
var docRect = docEl.getBoundingClientRect();
|
|
33494
|
-
var elRect = el.getBoundingClientRect();
|
|
33495
|
-
return {
|
|
33496
|
-
x: elRect.left - docRect.left - offset.x,
|
|
33497
|
-
y: elRect.top - docRect.top - offset.y
|
|
33498
|
-
}
|
|
33499
|
-
}
|
|
33500
|
-
|
|
33501
|
-
function isValidPosition (obj) {
|
|
33502
|
-
return isNumber(obj.x) || isNumber(obj.y)
|
|
33503
|
-
}
|
|
33504
|
-
|
|
33505
|
-
function normalizePosition (obj) {
|
|
33506
|
-
return {
|
|
33507
|
-
x: isNumber(obj.x) ? obj.x : window.pageXOffset,
|
|
33508
|
-
y: isNumber(obj.y) ? obj.y : window.pageYOffset
|
|
33509
|
-
}
|
|
33510
|
-
}
|
|
33511
|
-
|
|
33512
|
-
function normalizeOffset (obj) {
|
|
33513
|
-
return {
|
|
33514
|
-
x: isNumber(obj.x) ? obj.x : 0,
|
|
33515
|
-
y: isNumber(obj.y) ? obj.y : 0
|
|
33516
|
-
}
|
|
33517
|
-
}
|
|
33518
|
-
|
|
33519
|
-
function isNumber (v) {
|
|
33520
|
-
return typeof v === 'number'
|
|
33521
|
-
}
|
|
33522
|
-
|
|
33523
|
-
var hashStartsWithNumberRE = /^#\d/;
|
|
33524
|
-
|
|
33525
|
-
function scrollToPosition (shouldScroll, position) {
|
|
33526
|
-
var isObject = typeof shouldScroll === 'object';
|
|
33527
|
-
if (isObject && typeof shouldScroll.selector === 'string') {
|
|
33528
|
-
// getElementById would still fail if the selector contains a more complicated query like #main[data-attr]
|
|
33529
|
-
// but at the same time, it doesn't make much sense to select an element with an id and an extra selector
|
|
33530
|
-
var el = hashStartsWithNumberRE.test(shouldScroll.selector) // $flow-disable-line
|
|
33531
|
-
? document.getElementById(shouldScroll.selector.slice(1)) // $flow-disable-line
|
|
33532
|
-
: document.querySelector(shouldScroll.selector);
|
|
33533
|
-
|
|
33534
|
-
if (el) {
|
|
33535
|
-
var offset =
|
|
33536
|
-
shouldScroll.offset && typeof shouldScroll.offset === 'object'
|
|
33537
|
-
? shouldScroll.offset
|
|
33538
|
-
: {};
|
|
33539
|
-
offset = normalizeOffset(offset);
|
|
33540
|
-
position = getElementPosition(el, offset);
|
|
33541
|
-
} else if (isValidPosition(shouldScroll)) {
|
|
33542
|
-
position = normalizePosition(shouldScroll);
|
|
33543
|
-
}
|
|
33544
|
-
} else if (isObject && isValidPosition(shouldScroll)) {
|
|
33545
|
-
position = normalizePosition(shouldScroll);
|
|
33546
|
-
}
|
|
33547
|
-
|
|
33548
|
-
if (position) {
|
|
33549
|
-
// $flow-disable-line
|
|
33550
|
-
if ('scrollBehavior' in document.documentElement.style) {
|
|
33551
|
-
window.scrollTo({
|
|
33552
|
-
left: position.x,
|
|
33553
|
-
top: position.y,
|
|
33554
|
-
// $flow-disable-line
|
|
33555
|
-
behavior: shouldScroll.behavior
|
|
33556
|
-
});
|
|
33557
|
-
} else {
|
|
33558
|
-
window.scrollTo(position.x, position.y);
|
|
33559
|
-
}
|
|
33560
|
-
}
|
|
33561
|
-
}
|
|
33562
|
-
|
|
33563
|
-
/* */
|
|
33564
|
-
|
|
33565
|
-
var supportsPushState =
|
|
33566
|
-
inBrowser &&
|
|
33567
|
-
(function () {
|
|
33568
|
-
var ua = window.navigator.userAgent;
|
|
33569
|
-
|
|
33570
|
-
if (
|
|
33571
|
-
(ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) &&
|
|
33572
|
-
ua.indexOf('Mobile Safari') !== -1 &&
|
|
33573
|
-
ua.indexOf('Chrome') === -1 &&
|
|
33574
|
-
ua.indexOf('Windows Phone') === -1
|
|
33575
|
-
) {
|
|
33576
|
-
return false
|
|
33577
|
-
}
|
|
33578
|
-
|
|
33579
|
-
return window.history && typeof window.history.pushState === 'function'
|
|
33580
|
-
})();
|
|
33581
|
-
|
|
33582
|
-
function pushState (url, replace) {
|
|
33583
|
-
saveScrollPosition();
|
|
33584
|
-
// try...catch the pushState call to get around Safari
|
|
33585
|
-
// DOM Exception 18 where it limits to 100 pushState calls
|
|
33586
|
-
var history = window.history;
|
|
33587
|
-
try {
|
|
33588
|
-
if (replace) {
|
|
33589
|
-
// preserve existing history state as it could be overriden by the user
|
|
33590
|
-
var stateCopy = extend({}, history.state);
|
|
33591
|
-
stateCopy.key = getStateKey();
|
|
33592
|
-
history.replaceState(stateCopy, '', url);
|
|
33593
|
-
} else {
|
|
33594
|
-
history.pushState({ key: setStateKey(genStateKey()) }, '', url);
|
|
33595
|
-
}
|
|
33596
|
-
} catch (e) {
|
|
33597
|
-
window.location[replace ? 'replace' : 'assign'](url);
|
|
33598
|
-
}
|
|
33599
|
-
}
|
|
33600
|
-
|
|
33601
|
-
function replaceState (url) {
|
|
33602
|
-
pushState(url, true);
|
|
33603
|
-
}
|
|
33604
|
-
|
|
33605
|
-
// When changing thing, also edit router.d.ts
|
|
33606
|
-
var NavigationFailureType = {
|
|
33607
|
-
redirected: 2,
|
|
33608
|
-
aborted: 4,
|
|
33609
|
-
cancelled: 8,
|
|
33610
|
-
duplicated: 16
|
|
33611
|
-
};
|
|
33612
|
-
|
|
33613
|
-
function createNavigationRedirectedError (from, to) {
|
|
33614
|
-
return createRouterError(
|
|
33615
|
-
from,
|
|
33616
|
-
to,
|
|
33617
|
-
NavigationFailureType.redirected,
|
|
33618
|
-
("Redirected when going from \"" + (from.fullPath) + "\" to \"" + (stringifyRoute(
|
|
33619
|
-
to
|
|
33620
|
-
)) + "\" via a navigation guard.")
|
|
33621
|
-
)
|
|
33622
|
-
}
|
|
33623
|
-
|
|
33624
|
-
function createNavigationDuplicatedError (from, to) {
|
|
33625
|
-
var error = createRouterError(
|
|
33626
|
-
from,
|
|
33627
|
-
to,
|
|
33628
|
-
NavigationFailureType.duplicated,
|
|
33629
|
-
("Avoided redundant navigation to current location: \"" + (from.fullPath) + "\".")
|
|
33630
|
-
);
|
|
33631
|
-
// backwards compatible with the first introduction of Errors
|
|
33632
|
-
error.name = 'NavigationDuplicated';
|
|
33633
|
-
return error
|
|
33634
|
-
}
|
|
33635
|
-
|
|
33636
|
-
function createNavigationCancelledError (from, to) {
|
|
33637
|
-
return createRouterError(
|
|
33638
|
-
from,
|
|
33639
|
-
to,
|
|
33640
|
-
NavigationFailureType.cancelled,
|
|
33641
|
-
("Navigation cancelled from \"" + (from.fullPath) + "\" to \"" + (to.fullPath) + "\" with a new navigation.")
|
|
33642
|
-
)
|
|
33643
|
-
}
|
|
33644
|
-
|
|
33645
|
-
function createNavigationAbortedError (from, to) {
|
|
33646
|
-
return createRouterError(
|
|
33647
|
-
from,
|
|
33648
|
-
to,
|
|
33649
|
-
NavigationFailureType.aborted,
|
|
33650
|
-
("Navigation aborted from \"" + (from.fullPath) + "\" to \"" + (to.fullPath) + "\" via a navigation guard.")
|
|
33651
|
-
)
|
|
33652
|
-
}
|
|
33653
|
-
|
|
33654
|
-
function createRouterError (from, to, type, message) {
|
|
33655
|
-
var error = new Error(message);
|
|
33656
|
-
error._isRouter = true;
|
|
33657
|
-
error.from = from;
|
|
33658
|
-
error.to = to;
|
|
33659
|
-
error.type = type;
|
|
33660
|
-
|
|
33661
|
-
return error
|
|
33662
|
-
}
|
|
33663
|
-
|
|
33664
|
-
var propertiesToLog = ['params', 'query', 'hash'];
|
|
33665
|
-
|
|
33666
|
-
function stringifyRoute (to) {
|
|
33667
|
-
if (typeof to === 'string') { return to }
|
|
33668
|
-
if ('path' in to) { return to.path }
|
|
33669
|
-
var location = {};
|
|
33670
|
-
propertiesToLog.forEach(function (key) {
|
|
33671
|
-
if (key in to) { location[key] = to[key]; }
|
|
33672
|
-
});
|
|
33673
|
-
return JSON.stringify(location, null, 2)
|
|
33674
|
-
}
|
|
33675
|
-
|
|
33676
|
-
function isError (err) {
|
|
33677
|
-
return Object.prototype.toString.call(err).indexOf('Error') > -1
|
|
33678
|
-
}
|
|
33679
|
-
|
|
33680
|
-
function isNavigationFailure (err, errorType) {
|
|
33681
|
-
return (
|
|
33682
|
-
isError(err) &&
|
|
33683
|
-
err._isRouter &&
|
|
33684
|
-
(errorType == null || err.type === errorType)
|
|
33685
|
-
)
|
|
33686
|
-
}
|
|
33687
|
-
|
|
33688
|
-
/* */
|
|
33689
|
-
|
|
33690
|
-
function runQueue (queue, fn, cb) {
|
|
33691
|
-
var step = function (index) {
|
|
33692
|
-
if (index >= queue.length) {
|
|
33693
|
-
cb();
|
|
33694
|
-
} else {
|
|
33695
|
-
if (queue[index]) {
|
|
33696
|
-
fn(queue[index], function () {
|
|
33697
|
-
step(index + 1);
|
|
33698
|
-
});
|
|
33699
|
-
} else {
|
|
33700
|
-
step(index + 1);
|
|
33701
|
-
}
|
|
33702
|
-
}
|
|
33703
|
-
};
|
|
33704
|
-
step(0);
|
|
33705
|
-
}
|
|
33706
|
-
|
|
33707
|
-
/* */
|
|
33708
|
-
|
|
33709
|
-
function resolveAsyncComponents (matched) {
|
|
33710
|
-
return function (to, from, next) {
|
|
33711
|
-
var hasAsync = false;
|
|
33712
|
-
var pending = 0;
|
|
33713
|
-
var error = null;
|
|
33714
|
-
|
|
33715
|
-
flatMapComponents(matched, function (def, _, match, key) {
|
|
33716
|
-
// if it's a function and doesn't have cid attached,
|
|
33717
|
-
// assume it's an async component resolve function.
|
|
33718
|
-
// we are not using Vue's default async resolving mechanism because
|
|
33719
|
-
// we want to halt the navigation until the incoming component has been
|
|
33720
|
-
// resolved.
|
|
33721
|
-
if (typeof def === 'function' && def.cid === undefined) {
|
|
33722
|
-
hasAsync = true;
|
|
33723
|
-
pending++;
|
|
33724
|
-
|
|
33725
|
-
var resolve = once(function (resolvedDef) {
|
|
33726
|
-
if (isESModule(resolvedDef)) {
|
|
33727
|
-
resolvedDef = resolvedDef.default;
|
|
33728
|
-
}
|
|
33729
|
-
// save resolved on async factory in case it's used elsewhere
|
|
33730
|
-
def.resolved = typeof resolvedDef === 'function'
|
|
33731
|
-
? resolvedDef
|
|
33732
|
-
: _Vue.extend(resolvedDef);
|
|
33733
|
-
match.components[key] = resolvedDef;
|
|
33734
|
-
pending--;
|
|
33735
|
-
if (pending <= 0) {
|
|
33736
|
-
next();
|
|
33737
|
-
}
|
|
33738
|
-
});
|
|
33739
|
-
|
|
33740
|
-
var reject = once(function (reason) {
|
|
33741
|
-
var msg = "Failed to resolve async component " + key + ": " + reason;
|
|
33742
|
-
"production" !== 'production' && warn(false, msg);
|
|
33743
|
-
if (!error) {
|
|
33744
|
-
error = isError(reason)
|
|
33745
|
-
? reason
|
|
33746
|
-
: new Error(msg);
|
|
33747
|
-
next(error);
|
|
33748
|
-
}
|
|
33749
|
-
});
|
|
33750
|
-
|
|
33751
|
-
var res;
|
|
33752
|
-
try {
|
|
33753
|
-
res = def(resolve, reject);
|
|
33754
|
-
} catch (e) {
|
|
33755
|
-
reject(e);
|
|
33756
|
-
}
|
|
33757
|
-
if (res) {
|
|
33758
|
-
if (typeof res.then === 'function') {
|
|
33759
|
-
res.then(resolve, reject);
|
|
33760
|
-
} else {
|
|
33761
|
-
// new syntax in Vue 2.3
|
|
33762
|
-
var comp = res.component;
|
|
33763
|
-
if (comp && typeof comp.then === 'function') {
|
|
33764
|
-
comp.then(resolve, reject);
|
|
33765
|
-
}
|
|
33766
|
-
}
|
|
33767
|
-
}
|
|
33768
|
-
}
|
|
33769
|
-
});
|
|
33770
|
-
|
|
33771
|
-
if (!hasAsync) { next(); }
|
|
33772
|
-
}
|
|
33773
|
-
}
|
|
33774
|
-
|
|
33775
|
-
function flatMapComponents (
|
|
33776
|
-
matched,
|
|
33777
|
-
fn
|
|
33778
|
-
) {
|
|
33779
|
-
return flatten(matched.map(function (m) {
|
|
33780
|
-
return Object.keys(m.components).map(function (key) { return fn(
|
|
33781
|
-
m.components[key],
|
|
33782
|
-
m.instances[key],
|
|
33783
|
-
m, key
|
|
33784
|
-
); })
|
|
33785
|
-
}))
|
|
33786
|
-
}
|
|
33787
|
-
|
|
33788
|
-
function flatten (arr) {
|
|
33789
|
-
return Array.prototype.concat.apply([], arr)
|
|
33790
|
-
}
|
|
33791
|
-
|
|
33792
|
-
var hasSymbol =
|
|
33793
|
-
typeof Symbol === 'function' &&
|
|
33794
|
-
typeof Symbol.toStringTag === 'symbol';
|
|
33795
|
-
|
|
33796
|
-
function isESModule (obj) {
|
|
33797
|
-
return obj.__esModule || (hasSymbol && obj[Symbol.toStringTag] === 'Module')
|
|
33798
|
-
}
|
|
33799
|
-
|
|
33800
|
-
// in Webpack 2, require.ensure now also returns a Promise
|
|
33801
|
-
// so the resolve/reject functions may get called an extra time
|
|
33802
|
-
// if the user uses an arrow function shorthand that happens to
|
|
33803
|
-
// return that Promise.
|
|
33804
|
-
function once (fn) {
|
|
33805
|
-
var called = false;
|
|
33806
|
-
return function () {
|
|
33807
|
-
var args = [], len = arguments.length;
|
|
33808
|
-
while ( len-- ) args[ len ] = arguments[ len ];
|
|
33809
|
-
|
|
33810
|
-
if (called) { return }
|
|
33811
|
-
called = true;
|
|
33812
|
-
return fn.apply(this, args)
|
|
33813
|
-
}
|
|
33814
|
-
}
|
|
33815
|
-
|
|
33816
|
-
/* */
|
|
33817
|
-
|
|
33818
|
-
var History = function History (router, base) {
|
|
33819
|
-
this.router = router;
|
|
33820
|
-
this.base = normalizeBase(base);
|
|
33821
|
-
// start with a route object that stands for "nowhere"
|
|
33822
|
-
this.current = START;
|
|
33823
|
-
this.pending = null;
|
|
33824
|
-
this.ready = false;
|
|
33825
|
-
this.readyCbs = [];
|
|
33826
|
-
this.readyErrorCbs = [];
|
|
33827
|
-
this.errorCbs = [];
|
|
33828
|
-
this.listeners = [];
|
|
33829
|
-
};
|
|
33830
|
-
|
|
33831
|
-
History.prototype.listen = function listen (cb) {
|
|
33832
|
-
this.cb = cb;
|
|
33833
|
-
};
|
|
33834
|
-
|
|
33835
|
-
History.prototype.onReady = function onReady (cb, errorCb) {
|
|
33836
|
-
if (this.ready) {
|
|
33837
|
-
cb();
|
|
33838
|
-
} else {
|
|
33839
|
-
this.readyCbs.push(cb);
|
|
33840
|
-
if (errorCb) {
|
|
33841
|
-
this.readyErrorCbs.push(errorCb);
|
|
33842
|
-
}
|
|
33843
|
-
}
|
|
33844
|
-
};
|
|
33845
|
-
|
|
33846
|
-
History.prototype.onError = function onError (errorCb) {
|
|
33847
|
-
this.errorCbs.push(errorCb);
|
|
33848
|
-
};
|
|
33849
|
-
|
|
33850
|
-
History.prototype.transitionTo = function transitionTo (
|
|
33851
|
-
location,
|
|
33852
|
-
onComplete,
|
|
33853
|
-
onAbort
|
|
33854
|
-
) {
|
|
33855
|
-
var this$1$1 = this;
|
|
33856
|
-
|
|
33857
|
-
var route;
|
|
33858
|
-
// catch redirect option https://github.com/vuejs/vue-router/issues/3201
|
|
33859
|
-
try {
|
|
33860
|
-
route = this.router.match(location, this.current);
|
|
33861
|
-
} catch (e) {
|
|
33862
|
-
this.errorCbs.forEach(function (cb) {
|
|
33863
|
-
cb(e);
|
|
33864
|
-
});
|
|
33865
|
-
// Exception should still be thrown
|
|
33866
|
-
throw e
|
|
33867
|
-
}
|
|
33868
|
-
var prev = this.current;
|
|
33869
|
-
this.confirmTransition(
|
|
33870
|
-
route,
|
|
33871
|
-
function () {
|
|
33872
|
-
this$1$1.updateRoute(route);
|
|
33873
|
-
onComplete && onComplete(route);
|
|
33874
|
-
this$1$1.ensureURL();
|
|
33875
|
-
this$1$1.router.afterHooks.forEach(function (hook) {
|
|
33876
|
-
hook && hook(route, prev);
|
|
33877
|
-
});
|
|
33878
|
-
|
|
33879
|
-
// fire ready cbs once
|
|
33880
|
-
if (!this$1$1.ready) {
|
|
33881
|
-
this$1$1.ready = true;
|
|
33882
|
-
this$1$1.readyCbs.forEach(function (cb) {
|
|
33883
|
-
cb(route);
|
|
33884
|
-
});
|
|
33885
|
-
}
|
|
33886
|
-
},
|
|
33887
|
-
function (err) {
|
|
33888
|
-
if (onAbort) {
|
|
33889
|
-
onAbort(err);
|
|
33890
|
-
}
|
|
33891
|
-
if (err && !this$1$1.ready) {
|
|
33892
|
-
// Initial redirection should not mark the history as ready yet
|
|
33893
|
-
// because it's triggered by the redirection instead
|
|
33894
|
-
// https://github.com/vuejs/vue-router/issues/3225
|
|
33895
|
-
// https://github.com/vuejs/vue-router/issues/3331
|
|
33896
|
-
if (!isNavigationFailure(err, NavigationFailureType.redirected) || prev !== START) {
|
|
33897
|
-
this$1$1.ready = true;
|
|
33898
|
-
this$1$1.readyErrorCbs.forEach(function (cb) {
|
|
33899
|
-
cb(err);
|
|
33900
|
-
});
|
|
33901
|
-
}
|
|
33902
|
-
}
|
|
33903
|
-
}
|
|
33904
|
-
);
|
|
33905
|
-
};
|
|
33906
|
-
|
|
33907
|
-
History.prototype.confirmTransition = function confirmTransition (route, onComplete, onAbort) {
|
|
33908
|
-
var this$1$1 = this;
|
|
33909
|
-
|
|
33910
|
-
var current = this.current;
|
|
33911
|
-
this.pending = route;
|
|
33912
|
-
var abort = function (err) {
|
|
33913
|
-
// changed after adding errors with
|
|
33914
|
-
// https://github.com/vuejs/vue-router/pull/3047 before that change,
|
|
33915
|
-
// redirect and aborted navigation would produce an err == null
|
|
33916
|
-
if (!isNavigationFailure(err) && isError(err)) {
|
|
33917
|
-
if (this$1$1.errorCbs.length) {
|
|
33918
|
-
this$1$1.errorCbs.forEach(function (cb) {
|
|
33919
|
-
cb(err);
|
|
33920
|
-
});
|
|
33921
|
-
} else {
|
|
33922
|
-
if (false) {}
|
|
33923
|
-
console.error(err);
|
|
33924
|
-
}
|
|
33925
|
-
}
|
|
33926
|
-
onAbort && onAbort(err);
|
|
33927
|
-
};
|
|
33928
|
-
var lastRouteIndex = route.matched.length - 1;
|
|
33929
|
-
var lastCurrentIndex = current.matched.length - 1;
|
|
33930
|
-
if (
|
|
33931
|
-
isSameRoute(route, current) &&
|
|
33932
|
-
// in the case the route map has been dynamically appended to
|
|
33933
|
-
lastRouteIndex === lastCurrentIndex &&
|
|
33934
|
-
route.matched[lastRouteIndex] === current.matched[lastCurrentIndex]
|
|
33935
|
-
) {
|
|
33936
|
-
this.ensureURL();
|
|
33937
|
-
if (route.hash) {
|
|
33938
|
-
handleScroll(this.router, current, route, false);
|
|
33939
|
-
}
|
|
33940
|
-
return abort(createNavigationDuplicatedError(current, route))
|
|
33941
|
-
}
|
|
33942
|
-
|
|
33943
|
-
var ref = resolveQueue(
|
|
33944
|
-
this.current.matched,
|
|
33945
|
-
route.matched
|
|
33946
|
-
);
|
|
33947
|
-
var updated = ref.updated;
|
|
33948
|
-
var deactivated = ref.deactivated;
|
|
33949
|
-
var activated = ref.activated;
|
|
33950
|
-
|
|
33951
|
-
var queue = [].concat(
|
|
33952
|
-
// in-component leave guards
|
|
33953
|
-
extractLeaveGuards(deactivated),
|
|
33954
|
-
// global before hooks
|
|
33955
|
-
this.router.beforeHooks,
|
|
33956
|
-
// in-component update hooks
|
|
33957
|
-
extractUpdateHooks(updated),
|
|
33958
|
-
// in-config enter guards
|
|
33959
|
-
activated.map(function (m) { return m.beforeEnter; }),
|
|
33960
|
-
// async components
|
|
33961
|
-
resolveAsyncComponents(activated)
|
|
33962
|
-
);
|
|
33963
|
-
|
|
33964
|
-
var iterator = function (hook, next) {
|
|
33965
|
-
if (this$1$1.pending !== route) {
|
|
33966
|
-
return abort(createNavigationCancelledError(current, route))
|
|
33967
|
-
}
|
|
33968
|
-
try {
|
|
33969
|
-
hook(route, current, function (to) {
|
|
33970
|
-
if (to === false) {
|
|
33971
|
-
// next(false) -> abort navigation, ensure current URL
|
|
33972
|
-
this$1$1.ensureURL(true);
|
|
33973
|
-
abort(createNavigationAbortedError(current, route));
|
|
33974
|
-
} else if (isError(to)) {
|
|
33975
|
-
this$1$1.ensureURL(true);
|
|
33976
|
-
abort(to);
|
|
33977
|
-
} else if (
|
|
33978
|
-
typeof to === 'string' ||
|
|
33979
|
-
(typeof to === 'object' &&
|
|
33980
|
-
(typeof to.path === 'string' || typeof to.name === 'string'))
|
|
33981
|
-
) {
|
|
33982
|
-
// next('/') or next({ path: '/' }) -> redirect
|
|
33983
|
-
abort(createNavigationRedirectedError(current, route));
|
|
33984
|
-
if (typeof to === 'object' && to.replace) {
|
|
33985
|
-
this$1$1.replace(to);
|
|
33986
|
-
} else {
|
|
33987
|
-
this$1$1.push(to);
|
|
33988
|
-
}
|
|
33989
|
-
} else {
|
|
33990
|
-
// confirm transition and pass on the value
|
|
33991
|
-
next(to);
|
|
33992
|
-
}
|
|
33993
|
-
});
|
|
33994
|
-
} catch (e) {
|
|
33995
|
-
abort(e);
|
|
33996
|
-
}
|
|
33997
|
-
};
|
|
33998
|
-
|
|
33999
|
-
runQueue(queue, iterator, function () {
|
|
34000
|
-
// wait until async components are resolved before
|
|
34001
|
-
// extracting in-component enter guards
|
|
34002
|
-
var enterGuards = extractEnterGuards(activated);
|
|
34003
|
-
var queue = enterGuards.concat(this$1$1.router.resolveHooks);
|
|
34004
|
-
runQueue(queue, iterator, function () {
|
|
34005
|
-
if (this$1$1.pending !== route) {
|
|
34006
|
-
return abort(createNavigationCancelledError(current, route))
|
|
34007
|
-
}
|
|
34008
|
-
this$1$1.pending = null;
|
|
34009
|
-
onComplete(route);
|
|
34010
|
-
if (this$1$1.router.app) {
|
|
34011
|
-
this$1$1.router.app.$nextTick(function () {
|
|
34012
|
-
handleRouteEntered(route);
|
|
34013
|
-
});
|
|
34014
|
-
}
|
|
34015
|
-
});
|
|
34016
|
-
});
|
|
34017
|
-
};
|
|
34018
|
-
|
|
34019
|
-
History.prototype.updateRoute = function updateRoute (route) {
|
|
34020
|
-
this.current = route;
|
|
34021
|
-
this.cb && this.cb(route);
|
|
34022
|
-
};
|
|
34023
|
-
|
|
34024
|
-
History.prototype.setupListeners = function setupListeners () {
|
|
34025
|
-
// Default implementation is empty
|
|
34026
|
-
};
|
|
34027
|
-
|
|
34028
|
-
History.prototype.teardown = function teardown () {
|
|
34029
|
-
// clean up event listeners
|
|
34030
|
-
// https://github.com/vuejs/vue-router/issues/2341
|
|
34031
|
-
this.listeners.forEach(function (cleanupListener) {
|
|
34032
|
-
cleanupListener();
|
|
34033
|
-
});
|
|
34034
|
-
this.listeners = [];
|
|
34035
|
-
|
|
34036
|
-
// reset current history route
|
|
34037
|
-
// https://github.com/vuejs/vue-router/issues/3294
|
|
34038
|
-
this.current = START;
|
|
34039
|
-
this.pending = null;
|
|
34040
|
-
};
|
|
34041
|
-
|
|
34042
|
-
function normalizeBase (base) {
|
|
34043
|
-
if (!base) {
|
|
34044
|
-
if (inBrowser) {
|
|
34045
|
-
// respect <base> tag
|
|
34046
|
-
var baseEl = document.querySelector('base');
|
|
34047
|
-
base = (baseEl && baseEl.getAttribute('href')) || '/';
|
|
34048
|
-
// strip full URL origin
|
|
34049
|
-
base = base.replace(/^https?:\/\/[^\/]+/, '');
|
|
34050
|
-
} else {
|
|
34051
|
-
base = '/';
|
|
34052
|
-
}
|
|
34053
|
-
}
|
|
34054
|
-
// make sure there's the starting slash
|
|
34055
|
-
if (base.charAt(0) !== '/') {
|
|
34056
|
-
base = '/' + base;
|
|
34057
|
-
}
|
|
34058
|
-
// remove trailing slash
|
|
34059
|
-
return base.replace(/\/$/, '')
|
|
34060
|
-
}
|
|
34061
|
-
|
|
34062
|
-
function resolveQueue (
|
|
34063
|
-
current,
|
|
34064
|
-
next
|
|
34065
|
-
) {
|
|
34066
|
-
var i;
|
|
34067
|
-
var max = Math.max(current.length, next.length);
|
|
34068
|
-
for (i = 0; i < max; i++) {
|
|
34069
|
-
if (current[i] !== next[i]) {
|
|
34070
|
-
break
|
|
34071
|
-
}
|
|
34072
|
-
}
|
|
34073
|
-
return {
|
|
34074
|
-
updated: next.slice(0, i),
|
|
34075
|
-
activated: next.slice(i),
|
|
34076
|
-
deactivated: current.slice(i)
|
|
34077
|
-
}
|
|
34078
|
-
}
|
|
34079
|
-
|
|
34080
|
-
function extractGuards (
|
|
34081
|
-
records,
|
|
34082
|
-
name,
|
|
34083
|
-
bind,
|
|
34084
|
-
reverse
|
|
34085
|
-
) {
|
|
34086
|
-
var guards = flatMapComponents(records, function (def, instance, match, key) {
|
|
34087
|
-
var guard = extractGuard(def, name);
|
|
34088
|
-
if (guard) {
|
|
34089
|
-
return Array.isArray(guard)
|
|
34090
|
-
? guard.map(function (guard) { return bind(guard, instance, match, key); })
|
|
34091
|
-
: bind(guard, instance, match, key)
|
|
34092
|
-
}
|
|
34093
|
-
});
|
|
34094
|
-
return flatten(reverse ? guards.reverse() : guards)
|
|
34095
|
-
}
|
|
34096
|
-
|
|
34097
|
-
function extractGuard (
|
|
34098
|
-
def,
|
|
34099
|
-
key
|
|
34100
|
-
) {
|
|
34101
|
-
if (typeof def !== 'function') {
|
|
34102
|
-
// extend now so that global mixins are applied.
|
|
34103
|
-
def = _Vue.extend(def);
|
|
34104
|
-
}
|
|
34105
|
-
return def.options[key]
|
|
34106
|
-
}
|
|
34107
|
-
|
|
34108
|
-
function extractLeaveGuards (deactivated) {
|
|
34109
|
-
return extractGuards(deactivated, 'beforeRouteLeave', bindGuard, true)
|
|
34110
|
-
}
|
|
34111
|
-
|
|
34112
|
-
function extractUpdateHooks (updated) {
|
|
34113
|
-
return extractGuards(updated, 'beforeRouteUpdate', bindGuard)
|
|
34114
|
-
}
|
|
34115
|
-
|
|
34116
|
-
function bindGuard (guard, instance) {
|
|
34117
|
-
if (instance) {
|
|
34118
|
-
return function boundRouteGuard () {
|
|
34119
|
-
return guard.apply(instance, arguments)
|
|
34120
|
-
}
|
|
34121
|
-
}
|
|
34122
|
-
}
|
|
34123
|
-
|
|
34124
|
-
function extractEnterGuards (
|
|
34125
|
-
activated
|
|
34126
|
-
) {
|
|
34127
|
-
return extractGuards(
|
|
34128
|
-
activated,
|
|
34129
|
-
'beforeRouteEnter',
|
|
34130
|
-
function (guard, _, match, key) {
|
|
34131
|
-
return bindEnterGuard(guard, match, key)
|
|
34132
|
-
}
|
|
34133
|
-
)
|
|
34134
|
-
}
|
|
34135
|
-
|
|
34136
|
-
function bindEnterGuard (
|
|
34137
|
-
guard,
|
|
34138
|
-
match,
|
|
34139
|
-
key
|
|
34140
|
-
) {
|
|
34141
|
-
return function routeEnterGuard (to, from, next) {
|
|
34142
|
-
return guard(to, from, function (cb) {
|
|
34143
|
-
if (typeof cb === 'function') {
|
|
34144
|
-
if (!match.enteredCbs[key]) {
|
|
34145
|
-
match.enteredCbs[key] = [];
|
|
34146
|
-
}
|
|
34147
|
-
match.enteredCbs[key].push(cb);
|
|
34148
|
-
}
|
|
34149
|
-
next(cb);
|
|
34150
|
-
})
|
|
34151
|
-
}
|
|
34152
|
-
}
|
|
34153
|
-
|
|
34154
|
-
/* */
|
|
34155
|
-
|
|
34156
|
-
var HTML5History = /*@__PURE__*/(function (History) {
|
|
34157
|
-
function HTML5History (router, base) {
|
|
34158
|
-
History.call(this, router, base);
|
|
34159
|
-
|
|
34160
|
-
this._startLocation = getLocation(this.base);
|
|
34161
|
-
}
|
|
34162
|
-
|
|
34163
|
-
if ( History ) HTML5History.__proto__ = History;
|
|
34164
|
-
HTML5History.prototype = Object.create( History && History.prototype );
|
|
34165
|
-
HTML5History.prototype.constructor = HTML5History;
|
|
34166
|
-
|
|
34167
|
-
HTML5History.prototype.setupListeners = function setupListeners () {
|
|
34168
|
-
var this$1$1 = this;
|
|
34169
|
-
|
|
34170
|
-
if (this.listeners.length > 0) {
|
|
34171
|
-
return
|
|
34172
|
-
}
|
|
34173
|
-
|
|
34174
|
-
var router = this.router;
|
|
34175
|
-
var expectScroll = router.options.scrollBehavior;
|
|
34176
|
-
var supportsScroll = supportsPushState && expectScroll;
|
|
34177
|
-
|
|
34178
|
-
if (supportsScroll) {
|
|
34179
|
-
this.listeners.push(setupScroll());
|
|
34180
|
-
}
|
|
34181
|
-
|
|
34182
|
-
var handleRoutingEvent = function () {
|
|
34183
|
-
var current = this$1$1.current;
|
|
34184
|
-
|
|
34185
|
-
// Avoiding first `popstate` event dispatched in some browsers but first
|
|
34186
|
-
// history route not updated since async guard at the same time.
|
|
34187
|
-
var location = getLocation(this$1$1.base);
|
|
34188
|
-
if (this$1$1.current === START && location === this$1$1._startLocation) {
|
|
34189
|
-
return
|
|
34190
|
-
}
|
|
34191
|
-
|
|
34192
|
-
this$1$1.transitionTo(location, function (route) {
|
|
34193
|
-
if (supportsScroll) {
|
|
34194
|
-
handleScroll(router, route, current, true);
|
|
34195
|
-
}
|
|
34196
|
-
});
|
|
34197
|
-
};
|
|
34198
|
-
window.addEventListener('popstate', handleRoutingEvent);
|
|
34199
|
-
this.listeners.push(function () {
|
|
34200
|
-
window.removeEventListener('popstate', handleRoutingEvent);
|
|
34201
|
-
});
|
|
34202
|
-
};
|
|
34203
|
-
|
|
34204
|
-
HTML5History.prototype.go = function go (n) {
|
|
34205
|
-
window.history.go(n);
|
|
34206
|
-
};
|
|
34207
|
-
|
|
34208
|
-
HTML5History.prototype.push = function push (location, onComplete, onAbort) {
|
|
34209
|
-
var this$1$1 = this;
|
|
34210
|
-
|
|
34211
|
-
var ref = this;
|
|
34212
|
-
var fromRoute = ref.current;
|
|
34213
|
-
this.transitionTo(location, function (route) {
|
|
34214
|
-
pushState(cleanPath(this$1$1.base + route.fullPath));
|
|
34215
|
-
handleScroll(this$1$1.router, route, fromRoute, false);
|
|
34216
|
-
onComplete && onComplete(route);
|
|
34217
|
-
}, onAbort);
|
|
34218
|
-
};
|
|
34219
|
-
|
|
34220
|
-
HTML5History.prototype.replace = function replace (location, onComplete, onAbort) {
|
|
34221
|
-
var this$1$1 = this;
|
|
34222
|
-
|
|
34223
|
-
var ref = this;
|
|
34224
|
-
var fromRoute = ref.current;
|
|
34225
|
-
this.transitionTo(location, function (route) {
|
|
34226
|
-
replaceState(cleanPath(this$1$1.base + route.fullPath));
|
|
34227
|
-
handleScroll(this$1$1.router, route, fromRoute, false);
|
|
34228
|
-
onComplete && onComplete(route);
|
|
34229
|
-
}, onAbort);
|
|
34230
|
-
};
|
|
34231
|
-
|
|
34232
|
-
HTML5History.prototype.ensureURL = function ensureURL (push) {
|
|
34233
|
-
if (getLocation(this.base) !== this.current.fullPath) {
|
|
34234
|
-
var current = cleanPath(this.base + this.current.fullPath);
|
|
34235
|
-
push ? pushState(current) : replaceState(current);
|
|
34236
|
-
}
|
|
34237
|
-
};
|
|
34238
|
-
|
|
34239
|
-
HTML5History.prototype.getCurrentLocation = function getCurrentLocation () {
|
|
34240
|
-
return getLocation(this.base)
|
|
34241
|
-
};
|
|
34242
|
-
|
|
34243
|
-
return HTML5History;
|
|
34244
|
-
}(History));
|
|
34245
|
-
|
|
34246
|
-
function getLocation (base) {
|
|
34247
|
-
var path = window.location.pathname;
|
|
34248
|
-
var pathLowerCase = path.toLowerCase();
|
|
34249
|
-
var baseLowerCase = base.toLowerCase();
|
|
34250
|
-
// base="/a" shouldn't turn path="/app" into "/a/pp"
|
|
34251
|
-
// https://github.com/vuejs/vue-router/issues/3555
|
|
34252
|
-
// so we ensure the trailing slash in the base
|
|
34253
|
-
if (base && ((pathLowerCase === baseLowerCase) ||
|
|
34254
|
-
(pathLowerCase.indexOf(cleanPath(baseLowerCase + '/')) === 0))) {
|
|
34255
|
-
path = path.slice(base.length);
|
|
34256
|
-
}
|
|
34257
|
-
return (path || '/') + window.location.search + window.location.hash
|
|
34258
|
-
}
|
|
34259
|
-
|
|
34260
|
-
/* */
|
|
34261
|
-
|
|
34262
|
-
var HashHistory = /*@__PURE__*/(function (History) {
|
|
34263
|
-
function HashHistory (router, base, fallback) {
|
|
34264
|
-
History.call(this, router, base);
|
|
34265
|
-
// check history fallback deeplinking
|
|
34266
|
-
if (fallback && checkFallback(this.base)) {
|
|
34267
|
-
return
|
|
34268
|
-
}
|
|
34269
|
-
ensureSlash();
|
|
34270
|
-
}
|
|
34271
|
-
|
|
34272
|
-
if ( History ) HashHistory.__proto__ = History;
|
|
34273
|
-
HashHistory.prototype = Object.create( History && History.prototype );
|
|
34274
|
-
HashHistory.prototype.constructor = HashHistory;
|
|
34275
|
-
|
|
34276
|
-
// this is delayed until the app mounts
|
|
34277
|
-
// to avoid the hashchange listener being fired too early
|
|
34278
|
-
HashHistory.prototype.setupListeners = function setupListeners () {
|
|
34279
|
-
var this$1$1 = this;
|
|
34280
|
-
|
|
34281
|
-
if (this.listeners.length > 0) {
|
|
34282
|
-
return
|
|
34283
|
-
}
|
|
34284
|
-
|
|
34285
|
-
var router = this.router;
|
|
34286
|
-
var expectScroll = router.options.scrollBehavior;
|
|
34287
|
-
var supportsScroll = supportsPushState && expectScroll;
|
|
34288
|
-
|
|
34289
|
-
if (supportsScroll) {
|
|
34290
|
-
this.listeners.push(setupScroll());
|
|
34291
|
-
}
|
|
34292
|
-
|
|
34293
|
-
var handleRoutingEvent = function () {
|
|
34294
|
-
var current = this$1$1.current;
|
|
34295
|
-
if (!ensureSlash()) {
|
|
34296
|
-
return
|
|
34297
|
-
}
|
|
34298
|
-
this$1$1.transitionTo(getHash(), function (route) {
|
|
34299
|
-
if (supportsScroll) {
|
|
34300
|
-
handleScroll(this$1$1.router, route, current, true);
|
|
34301
|
-
}
|
|
34302
|
-
if (!supportsPushState) {
|
|
34303
|
-
replaceHash(route.fullPath);
|
|
34304
|
-
}
|
|
34305
|
-
});
|
|
34306
|
-
};
|
|
34307
|
-
var eventType = supportsPushState ? 'popstate' : 'hashchange';
|
|
34308
|
-
window.addEventListener(
|
|
34309
|
-
eventType,
|
|
34310
|
-
handleRoutingEvent
|
|
34311
|
-
);
|
|
34312
|
-
this.listeners.push(function () {
|
|
34313
|
-
window.removeEventListener(eventType, handleRoutingEvent);
|
|
34314
|
-
});
|
|
34315
|
-
};
|
|
34316
|
-
|
|
34317
|
-
HashHistory.prototype.push = function push (location, onComplete, onAbort) {
|
|
34318
|
-
var this$1$1 = this;
|
|
34319
|
-
|
|
34320
|
-
var ref = this;
|
|
34321
|
-
var fromRoute = ref.current;
|
|
34322
|
-
this.transitionTo(
|
|
34323
|
-
location,
|
|
34324
|
-
function (route) {
|
|
34325
|
-
pushHash(route.fullPath);
|
|
34326
|
-
handleScroll(this$1$1.router, route, fromRoute, false);
|
|
34327
|
-
onComplete && onComplete(route);
|
|
34328
|
-
},
|
|
34329
|
-
onAbort
|
|
34330
|
-
);
|
|
34331
|
-
};
|
|
34332
|
-
|
|
34333
|
-
HashHistory.prototype.replace = function replace (location, onComplete, onAbort) {
|
|
34334
|
-
var this$1$1 = this;
|
|
34335
|
-
|
|
34336
|
-
var ref = this;
|
|
34337
|
-
var fromRoute = ref.current;
|
|
34338
|
-
this.transitionTo(
|
|
34339
|
-
location,
|
|
34340
|
-
function (route) {
|
|
34341
|
-
replaceHash(route.fullPath);
|
|
34342
|
-
handleScroll(this$1$1.router, route, fromRoute, false);
|
|
34343
|
-
onComplete && onComplete(route);
|
|
34344
|
-
},
|
|
34345
|
-
onAbort
|
|
34346
|
-
);
|
|
34347
|
-
};
|
|
34348
|
-
|
|
34349
|
-
HashHistory.prototype.go = function go (n) {
|
|
34350
|
-
window.history.go(n);
|
|
34351
|
-
};
|
|
34352
|
-
|
|
34353
|
-
HashHistory.prototype.ensureURL = function ensureURL (push) {
|
|
34354
|
-
var current = this.current.fullPath;
|
|
34355
|
-
if (getHash() !== current) {
|
|
34356
|
-
push ? pushHash(current) : replaceHash(current);
|
|
34357
|
-
}
|
|
34358
|
-
};
|
|
34359
|
-
|
|
34360
|
-
HashHistory.prototype.getCurrentLocation = function getCurrentLocation () {
|
|
34361
|
-
return getHash()
|
|
34362
|
-
};
|
|
34363
|
-
|
|
34364
|
-
return HashHistory;
|
|
34365
|
-
}(History));
|
|
34366
|
-
|
|
34367
|
-
function checkFallback (base) {
|
|
34368
|
-
var location = getLocation(base);
|
|
34369
|
-
if (!/^\/#/.test(location)) {
|
|
34370
|
-
window.location.replace(cleanPath(base + '/#' + location));
|
|
34371
|
-
return true
|
|
34372
|
-
}
|
|
34373
|
-
}
|
|
34374
|
-
|
|
34375
|
-
function ensureSlash () {
|
|
34376
|
-
var path = getHash();
|
|
34377
|
-
if (path.charAt(0) === '/') {
|
|
34378
|
-
return true
|
|
34379
|
-
}
|
|
34380
|
-
replaceHash('/' + path);
|
|
34381
|
-
return false
|
|
34382
|
-
}
|
|
34383
|
-
|
|
34384
|
-
function getHash () {
|
|
34385
|
-
// We can't use window.location.hash here because it's not
|
|
34386
|
-
// consistent across browsers - Firefox will pre-decode it!
|
|
34387
|
-
var href = window.location.href;
|
|
34388
|
-
var index = href.indexOf('#');
|
|
34389
|
-
// empty path
|
|
34390
|
-
if (index < 0) { return '' }
|
|
34391
|
-
|
|
34392
|
-
href = href.slice(index + 1);
|
|
34393
|
-
|
|
34394
|
-
return href
|
|
34395
|
-
}
|
|
34396
|
-
|
|
34397
|
-
function getUrl (path) {
|
|
34398
|
-
var href = window.location.href;
|
|
34399
|
-
var i = href.indexOf('#');
|
|
34400
|
-
var base = i >= 0 ? href.slice(0, i) : href;
|
|
34401
|
-
return (base + "#" + path)
|
|
34402
|
-
}
|
|
34403
|
-
|
|
34404
|
-
function pushHash (path) {
|
|
34405
|
-
if (supportsPushState) {
|
|
34406
|
-
pushState(getUrl(path));
|
|
34407
|
-
} else {
|
|
34408
|
-
window.location.hash = path;
|
|
34409
|
-
}
|
|
34410
|
-
}
|
|
34411
|
-
|
|
34412
|
-
function replaceHash (path) {
|
|
34413
|
-
if (supportsPushState) {
|
|
34414
|
-
replaceState(getUrl(path));
|
|
34415
|
-
} else {
|
|
34416
|
-
window.location.replace(getUrl(path));
|
|
34417
|
-
}
|
|
34418
|
-
}
|
|
34419
|
-
|
|
34420
|
-
/* */
|
|
34421
|
-
|
|
34422
|
-
var AbstractHistory = /*@__PURE__*/(function (History) {
|
|
34423
|
-
function AbstractHistory (router, base) {
|
|
34424
|
-
History.call(this, router, base);
|
|
34425
|
-
this.stack = [];
|
|
34426
|
-
this.index = -1;
|
|
34427
|
-
}
|
|
34428
|
-
|
|
34429
|
-
if ( History ) AbstractHistory.__proto__ = History;
|
|
34430
|
-
AbstractHistory.prototype = Object.create( History && History.prototype );
|
|
34431
|
-
AbstractHistory.prototype.constructor = AbstractHistory;
|
|
34432
|
-
|
|
34433
|
-
AbstractHistory.prototype.push = function push (location, onComplete, onAbort) {
|
|
34434
|
-
var this$1$1 = this;
|
|
34435
|
-
|
|
34436
|
-
this.transitionTo(
|
|
34437
|
-
location,
|
|
34438
|
-
function (route) {
|
|
34439
|
-
this$1$1.stack = this$1$1.stack.slice(0, this$1$1.index + 1).concat(route);
|
|
34440
|
-
this$1$1.index++;
|
|
34441
|
-
onComplete && onComplete(route);
|
|
34442
|
-
},
|
|
34443
|
-
onAbort
|
|
34444
|
-
);
|
|
34445
|
-
};
|
|
34446
|
-
|
|
34447
|
-
AbstractHistory.prototype.replace = function replace (location, onComplete, onAbort) {
|
|
34448
|
-
var this$1$1 = this;
|
|
34449
|
-
|
|
34450
|
-
this.transitionTo(
|
|
34451
|
-
location,
|
|
34452
|
-
function (route) {
|
|
34453
|
-
this$1$1.stack = this$1$1.stack.slice(0, this$1$1.index).concat(route);
|
|
34454
|
-
onComplete && onComplete(route);
|
|
34455
|
-
},
|
|
34456
|
-
onAbort
|
|
34457
|
-
);
|
|
34458
|
-
};
|
|
34459
|
-
|
|
34460
|
-
AbstractHistory.prototype.go = function go (n) {
|
|
34461
|
-
var this$1$1 = this;
|
|
34462
|
-
|
|
34463
|
-
var targetIndex = this.index + n;
|
|
34464
|
-
if (targetIndex < 0 || targetIndex >= this.stack.length) {
|
|
34465
|
-
return
|
|
34466
|
-
}
|
|
34467
|
-
var route = this.stack[targetIndex];
|
|
34468
|
-
this.confirmTransition(
|
|
34469
|
-
route,
|
|
34470
|
-
function () {
|
|
34471
|
-
var prev = this$1$1.current;
|
|
34472
|
-
this$1$1.index = targetIndex;
|
|
34473
|
-
this$1$1.updateRoute(route);
|
|
34474
|
-
this$1$1.router.afterHooks.forEach(function (hook) {
|
|
34475
|
-
hook && hook(route, prev);
|
|
34476
|
-
});
|
|
34477
|
-
},
|
|
34478
|
-
function (err) {
|
|
34479
|
-
if (isNavigationFailure(err, NavigationFailureType.duplicated)) {
|
|
34480
|
-
this$1$1.index = targetIndex;
|
|
34481
|
-
}
|
|
34482
|
-
}
|
|
34483
|
-
);
|
|
34484
|
-
};
|
|
34485
|
-
|
|
34486
|
-
AbstractHistory.prototype.getCurrentLocation = function getCurrentLocation () {
|
|
34487
|
-
var current = this.stack[this.stack.length - 1];
|
|
34488
|
-
return current ? current.fullPath : '/'
|
|
34489
|
-
};
|
|
34490
|
-
|
|
34491
|
-
AbstractHistory.prototype.ensureURL = function ensureURL () {
|
|
34492
|
-
// noop
|
|
34493
|
-
};
|
|
34494
|
-
|
|
34495
|
-
return AbstractHistory;
|
|
34496
|
-
}(History));
|
|
34497
|
-
|
|
34498
|
-
/* */
|
|
34499
|
-
|
|
34500
|
-
|
|
34501
|
-
|
|
34502
|
-
var VueRouter = function VueRouter (options) {
|
|
34503
|
-
if ( options === void 0 ) options = {};
|
|
34504
|
-
|
|
34505
|
-
if (false) {}
|
|
34506
|
-
this.app = null;
|
|
34507
|
-
this.apps = [];
|
|
34508
|
-
this.options = options;
|
|
34509
|
-
this.beforeHooks = [];
|
|
34510
|
-
this.resolveHooks = [];
|
|
34511
|
-
this.afterHooks = [];
|
|
34512
|
-
this.matcher = createMatcher(options.routes || [], this);
|
|
34513
|
-
|
|
34514
|
-
var mode = options.mode || 'hash';
|
|
34515
|
-
this.fallback =
|
|
34516
|
-
mode === 'history' && !supportsPushState && options.fallback !== false;
|
|
34517
|
-
if (this.fallback) {
|
|
34518
|
-
mode = 'hash';
|
|
34519
|
-
}
|
|
34520
|
-
if (!inBrowser) {
|
|
34521
|
-
mode = 'abstract';
|
|
34522
|
-
}
|
|
34523
|
-
this.mode = mode;
|
|
34524
|
-
|
|
34525
|
-
switch (mode) {
|
|
34526
|
-
case 'history':
|
|
34527
|
-
this.history = new HTML5History(this, options.base);
|
|
34528
|
-
break
|
|
34529
|
-
case 'hash':
|
|
34530
|
-
this.history = new HashHistory(this, options.base, this.fallback);
|
|
34531
|
-
break
|
|
34532
|
-
case 'abstract':
|
|
34533
|
-
this.history = new AbstractHistory(this, options.base);
|
|
34534
|
-
break
|
|
34535
|
-
default:
|
|
34536
|
-
if (false) {}
|
|
34537
|
-
}
|
|
34538
|
-
};
|
|
34539
|
-
|
|
34540
|
-
var prototypeAccessors = { currentRoute: { configurable: true } };
|
|
34541
|
-
|
|
34542
|
-
VueRouter.prototype.match = function match (raw, current, redirectedFrom) {
|
|
34543
|
-
return this.matcher.match(raw, current, redirectedFrom)
|
|
34544
|
-
};
|
|
34545
|
-
|
|
34546
|
-
prototypeAccessors.currentRoute.get = function () {
|
|
34547
|
-
return this.history && this.history.current
|
|
34548
|
-
};
|
|
34549
|
-
|
|
34550
|
-
VueRouter.prototype.init = function init (app /* Vue component instance */) {
|
|
34551
|
-
var this$1$1 = this;
|
|
34552
|
-
|
|
34553
|
-
"production" !== 'production' &&
|
|
34554
|
-
assert(
|
|
34555
|
-
install.installed,
|
|
34556
|
-
"not installed. Make sure to call `Vue.use(VueRouter)` " +
|
|
34557
|
-
"before creating root instance."
|
|
34558
|
-
);
|
|
34559
|
-
|
|
34560
|
-
this.apps.push(app);
|
|
34561
|
-
|
|
34562
|
-
// set up app destroyed handler
|
|
34563
|
-
// https://github.com/vuejs/vue-router/issues/2639
|
|
34564
|
-
app.$once('hook:destroyed', function () {
|
|
34565
|
-
// clean out app from this.apps array once destroyed
|
|
34566
|
-
var index = this$1$1.apps.indexOf(app);
|
|
34567
|
-
if (index > -1) { this$1$1.apps.splice(index, 1); }
|
|
34568
|
-
// ensure we still have a main app or null if no apps
|
|
34569
|
-
// we do not release the router so it can be reused
|
|
34570
|
-
if (this$1$1.app === app) { this$1$1.app = this$1$1.apps[0] || null; }
|
|
34571
|
-
|
|
34572
|
-
if (!this$1$1.app) { this$1$1.history.teardown(); }
|
|
34573
|
-
});
|
|
34574
|
-
|
|
34575
|
-
// main app previously initialized
|
|
34576
|
-
// return as we don't need to set up new history listener
|
|
34577
|
-
if (this.app) {
|
|
34578
|
-
return
|
|
34579
|
-
}
|
|
34580
|
-
|
|
34581
|
-
this.app = app;
|
|
34582
|
-
|
|
34583
|
-
var history = this.history;
|
|
34584
|
-
|
|
34585
|
-
if (history instanceof HTML5History || history instanceof HashHistory) {
|
|
34586
|
-
var handleInitialScroll = function (routeOrError) {
|
|
34587
|
-
var from = history.current;
|
|
34588
|
-
var expectScroll = this$1$1.options.scrollBehavior;
|
|
34589
|
-
var supportsScroll = supportsPushState && expectScroll;
|
|
34590
|
-
|
|
34591
|
-
if (supportsScroll && 'fullPath' in routeOrError) {
|
|
34592
|
-
handleScroll(this$1$1, routeOrError, from, false);
|
|
34593
|
-
}
|
|
34594
|
-
};
|
|
34595
|
-
var setupListeners = function (routeOrError) {
|
|
34596
|
-
history.setupListeners();
|
|
34597
|
-
handleInitialScroll(routeOrError);
|
|
34598
|
-
};
|
|
34599
|
-
history.transitionTo(
|
|
34600
|
-
history.getCurrentLocation(),
|
|
34601
|
-
setupListeners,
|
|
34602
|
-
setupListeners
|
|
34603
|
-
);
|
|
34604
|
-
}
|
|
34605
|
-
|
|
34606
|
-
history.listen(function (route) {
|
|
34607
|
-
this$1$1.apps.forEach(function (app) {
|
|
34608
|
-
app._route = route;
|
|
34609
|
-
});
|
|
34610
|
-
});
|
|
34611
|
-
};
|
|
34612
|
-
|
|
34613
|
-
VueRouter.prototype.beforeEach = function beforeEach (fn) {
|
|
34614
|
-
return registerHook(this.beforeHooks, fn)
|
|
34615
|
-
};
|
|
34616
|
-
|
|
34617
|
-
VueRouter.prototype.beforeResolve = function beforeResolve (fn) {
|
|
34618
|
-
return registerHook(this.resolveHooks, fn)
|
|
34619
|
-
};
|
|
34620
|
-
|
|
34621
|
-
VueRouter.prototype.afterEach = function afterEach (fn) {
|
|
34622
|
-
return registerHook(this.afterHooks, fn)
|
|
34623
|
-
};
|
|
34624
|
-
|
|
34625
|
-
VueRouter.prototype.onReady = function onReady (cb, errorCb) {
|
|
34626
|
-
this.history.onReady(cb, errorCb);
|
|
34627
|
-
};
|
|
34628
|
-
|
|
34629
|
-
VueRouter.prototype.onError = function onError (errorCb) {
|
|
34630
|
-
this.history.onError(errorCb);
|
|
34631
|
-
};
|
|
34632
|
-
|
|
34633
|
-
VueRouter.prototype.push = function push (location, onComplete, onAbort) {
|
|
34634
|
-
var this$1$1 = this;
|
|
34635
|
-
|
|
34636
|
-
// $flow-disable-line
|
|
34637
|
-
if (!onComplete && !onAbort && typeof Promise !== 'undefined') {
|
|
34638
|
-
return new Promise(function (resolve, reject) {
|
|
34639
|
-
this$1$1.history.push(location, resolve, reject);
|
|
34640
|
-
})
|
|
34641
|
-
} else {
|
|
34642
|
-
this.history.push(location, onComplete, onAbort);
|
|
34643
|
-
}
|
|
34644
|
-
};
|
|
34645
|
-
|
|
34646
|
-
VueRouter.prototype.replace = function replace (location, onComplete, onAbort) {
|
|
34647
|
-
var this$1$1 = this;
|
|
34648
|
-
|
|
34649
|
-
// $flow-disable-line
|
|
34650
|
-
if (!onComplete && !onAbort && typeof Promise !== 'undefined') {
|
|
34651
|
-
return new Promise(function (resolve, reject) {
|
|
34652
|
-
this$1$1.history.replace(location, resolve, reject);
|
|
34653
|
-
})
|
|
34654
|
-
} else {
|
|
34655
|
-
this.history.replace(location, onComplete, onAbort);
|
|
34656
|
-
}
|
|
34657
|
-
};
|
|
34658
|
-
|
|
34659
|
-
VueRouter.prototype.go = function go (n) {
|
|
34660
|
-
this.history.go(n);
|
|
34661
|
-
};
|
|
34662
|
-
|
|
34663
|
-
VueRouter.prototype.back = function back () {
|
|
34664
|
-
this.go(-1);
|
|
34665
|
-
};
|
|
34666
|
-
|
|
34667
|
-
VueRouter.prototype.forward = function forward () {
|
|
34668
|
-
this.go(1);
|
|
34669
|
-
};
|
|
34670
|
-
|
|
34671
|
-
VueRouter.prototype.getMatchedComponents = function getMatchedComponents (to) {
|
|
34672
|
-
var route = to
|
|
34673
|
-
? to.matched
|
|
34674
|
-
? to
|
|
34675
|
-
: this.resolve(to).route
|
|
34676
|
-
: this.currentRoute;
|
|
34677
|
-
if (!route) {
|
|
34678
|
-
return []
|
|
34679
|
-
}
|
|
34680
|
-
return [].concat.apply(
|
|
34681
|
-
[],
|
|
34682
|
-
route.matched.map(function (m) {
|
|
34683
|
-
return Object.keys(m.components).map(function (key) {
|
|
34684
|
-
return m.components[key]
|
|
34685
|
-
})
|
|
34686
|
-
})
|
|
34687
|
-
)
|
|
34688
|
-
};
|
|
34689
|
-
|
|
34690
|
-
VueRouter.prototype.resolve = function resolve (
|
|
34691
|
-
to,
|
|
34692
|
-
current,
|
|
34693
|
-
append
|
|
34694
|
-
) {
|
|
34695
|
-
current = current || this.history.current;
|
|
34696
|
-
var location = normalizeLocation(to, current, append, this);
|
|
34697
|
-
var route = this.match(location, current);
|
|
34698
|
-
var fullPath = route.redirectedFrom || route.fullPath;
|
|
34699
|
-
var base = this.history.base;
|
|
34700
|
-
var href = createHref(base, fullPath, this.mode);
|
|
34701
|
-
return {
|
|
34702
|
-
location: location,
|
|
34703
|
-
route: route,
|
|
34704
|
-
href: href,
|
|
34705
|
-
// for backwards compat
|
|
34706
|
-
normalizedTo: location,
|
|
34707
|
-
resolved: route
|
|
34708
|
-
}
|
|
34709
|
-
};
|
|
34710
|
-
|
|
34711
|
-
VueRouter.prototype.getRoutes = function getRoutes () {
|
|
34712
|
-
return this.matcher.getRoutes()
|
|
34713
|
-
};
|
|
34714
|
-
|
|
34715
|
-
VueRouter.prototype.addRoute = function addRoute (parentOrRoute, route) {
|
|
34716
|
-
this.matcher.addRoute(parentOrRoute, route);
|
|
34717
|
-
if (this.history.current !== START) {
|
|
34718
|
-
this.history.transitionTo(this.history.getCurrentLocation());
|
|
34719
|
-
}
|
|
34720
|
-
};
|
|
34721
|
-
|
|
34722
|
-
VueRouter.prototype.addRoutes = function addRoutes (routes) {
|
|
34723
|
-
if (false) {}
|
|
34724
|
-
this.matcher.addRoutes(routes);
|
|
34725
|
-
if (this.history.current !== START) {
|
|
34726
|
-
this.history.transitionTo(this.history.getCurrentLocation());
|
|
34727
|
-
}
|
|
34728
|
-
};
|
|
34729
|
-
|
|
34730
|
-
Object.defineProperties( VueRouter.prototype, prototypeAccessors );
|
|
34731
|
-
|
|
34732
|
-
var VueRouter$1 = VueRouter;
|
|
34733
|
-
|
|
34734
|
-
function registerHook (list, fn) {
|
|
34735
|
-
list.push(fn);
|
|
34736
|
-
return function () {
|
|
34737
|
-
var i = list.indexOf(fn);
|
|
34738
|
-
if (i > -1) { list.splice(i, 1); }
|
|
34739
|
-
}
|
|
34740
|
-
}
|
|
34741
|
-
|
|
34742
|
-
function createHref (base, fullPath, mode) {
|
|
34743
|
-
var path = mode === 'hash' ? '#' + fullPath : fullPath;
|
|
34744
|
-
return base ? cleanPath(base + '/' + path) : path
|
|
34745
|
-
}
|
|
34746
|
-
|
|
34747
|
-
// We cannot remove this as it would be a breaking change
|
|
34748
|
-
VueRouter.install = install;
|
|
34749
|
-
VueRouter.version = '3.6.5';
|
|
34750
|
-
VueRouter.isNavigationFailure = isNavigationFailure;
|
|
34751
|
-
VueRouter.NavigationFailureType = NavigationFailureType;
|
|
34752
|
-
VueRouter.START_LOCATION = START;
|
|
34753
|
-
|
|
34754
|
-
if (inBrowser && window.Vue) {
|
|
34755
|
-
window.Vue.use(VueRouter);
|
|
34756
|
-
}
|
|
34757
|
-
|
|
34758
|
-
var version = '3.6.5';
|
|
34759
|
-
|
|
34760
|
-
|
|
34761
|
-
|
|
34762
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
34763
|
-
function _extends() {
|
|
34764
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
34765
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
34766
|
-
var source = arguments[i];
|
|
34767
|
-
for (var key in source) {
|
|
34768
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34769
|
-
target[key] = source[key];
|
|
34770
|
-
}
|
|
34771
|
-
}
|
|
34772
|
-
}
|
|
34773
|
-
return target;
|
|
34774
|
-
};
|
|
34775
|
-
return _extends.apply(this, arguments);
|
|
34776
|
-
}
|
|
34777
|
-
// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/bem.js
|
|
34778
|
-
/**
|
|
34779
|
-
* bem helper
|
|
34780
|
-
* b() // 'button'
|
|
34781
|
-
* b('text') // 'button__text'
|
|
34782
|
-
* b({ disabled }) // 'button button--disabled'
|
|
34783
|
-
* b('text', { disabled }) // 'button__text button__text--disabled'
|
|
34784
|
-
* b(['disabled', 'primary']) // 'button button--disabled button--primary'
|
|
34785
|
-
*/
|
|
34786
|
-
function gen(name, mods) {
|
|
34787
|
-
if (!mods) {
|
|
34788
|
-
return '';
|
|
34789
|
-
}
|
|
34790
|
-
|
|
34791
|
-
if (typeof mods === 'string') {
|
|
34792
|
-
return " " + name + "--" + mods;
|
|
34793
|
-
}
|
|
34794
|
-
|
|
34795
|
-
if (Array.isArray(mods)) {
|
|
34796
|
-
return mods.reduce(function (ret, item) {
|
|
34797
|
-
return ret + gen(name, item);
|
|
34798
|
-
}, '');
|
|
34799
|
-
}
|
|
34800
|
-
|
|
34801
|
-
return Object.keys(mods).reduce(function (ret, key) {
|
|
34802
|
-
return ret + (mods[key] ? gen(name, key) : '');
|
|
34803
|
-
}, '');
|
|
34804
|
-
}
|
|
34805
|
-
|
|
34806
|
-
function createBEM(name) {
|
|
34807
|
-
return function (el, mods) {
|
|
34808
|
-
if (el && typeof el !== 'string') {
|
|
34809
|
-
mods = el;
|
|
34810
|
-
el = '';
|
|
34811
|
-
}
|
|
34812
|
-
|
|
34813
|
-
el = el ? name + "__" + el : name;
|
|
34814
|
-
return "" + el + gen(el, mods);
|
|
34815
|
-
};
|
|
34816
|
-
}
|
|
34817
|
-
// CONCATENATED MODULE: ./node_modules/vant/es/utils/index.js
|
|
34818
|
-
|
|
34819
|
-
|
|
34820
|
-
|
|
34821
|
-
var utils_inBrowser = typeof window !== 'undefined';
|
|
34822
|
-
var isServer = external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$isServer; // eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
34823
|
-
|
|
34824
|
-
function utils_noop() {}
|
|
34825
|
-
function isDef(val) {
|
|
34826
|
-
return val !== undefined && val !== null;
|
|
34827
|
-
}
|
|
34828
|
-
function isFunction(val) {
|
|
34829
|
-
return typeof val === 'function';
|
|
34830
|
-
}
|
|
34831
|
-
function isObject(val) {
|
|
34832
|
-
return val !== null && typeof val === 'object';
|
|
34833
|
-
}
|
|
34834
|
-
function isPromise(val) {
|
|
34835
|
-
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
34836
|
-
}
|
|
34837
|
-
function get(object, path) {
|
|
34838
|
-
var keys = path.split('.');
|
|
34839
|
-
var result = object;
|
|
34840
|
-
keys.forEach(function (key) {
|
|
34841
|
-
var _result$key;
|
|
34842
|
-
|
|
34843
|
-
result = isObject(result) ? (_result$key = result[key]) != null ? _result$key : '' : '';
|
|
34844
|
-
});
|
|
34845
|
-
return result;
|
|
34846
|
-
}
|
|
34847
|
-
/**
|
|
34848
|
-
* Checks if `value` is an empty object, collection, map, or set.
|
|
34849
|
-
*
|
|
34850
|
-
* Objects are considered empty if they have no own enumerable string keyed
|
|
34851
|
-
* properties.
|
|
34852
|
-
*
|
|
34853
|
-
* Array-like values such as `arguments` objects, arrays, buffers, strings, or
|
|
34854
|
-
* jQuery-like collections are considered empty if they have a `length` of `0`.
|
|
34855
|
-
* Similarly, maps and sets are considered empty if they have a `size` of `0`.
|
|
34856
|
-
*
|
|
34857
|
-
* @function isEmpty
|
|
34858
|
-
* @param {*} value The value to check.
|
|
34859
|
-
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
|
|
34860
|
-
* @example
|
|
34861
|
-
*
|
|
34862
|
-
* _.isEmpty(null);
|
|
34863
|
-
* // => true
|
|
34864
|
-
*
|
|
34865
|
-
* _.isEmpty(true);
|
|
34866
|
-
* // => true
|
|
34867
|
-
*
|
|
34868
|
-
* _.isEmpty(1);
|
|
34869
|
-
* // => true
|
|
34870
|
-
*
|
|
34871
|
-
* _.isEmpty([1, 2, 3]);
|
|
34872
|
-
* // => false
|
|
34873
|
-
*
|
|
34874
|
-
* _.isEmpty({ 'a': 1 });
|
|
34875
|
-
* // => false
|
|
34876
|
-
*/
|
|
34877
|
-
|
|
34878
|
-
function isEmpty(value) {
|
|
34879
|
-
if (value == null) {
|
|
34880
|
-
return true;
|
|
34881
|
-
}
|
|
34882
|
-
|
|
34883
|
-
if (typeof value !== 'object') {
|
|
34884
|
-
return true;
|
|
34885
|
-
}
|
|
34886
|
-
|
|
34887
|
-
return Object.keys(value).length === 0;
|
|
34888
|
-
}
|
|
34889
|
-
// CONCATENATED MODULE: ./node_modules/vant/es/utils/format/string.js
|
|
34890
|
-
var camelizeRE = /-(\w)/g;
|
|
34891
|
-
function camelize(str) {
|
|
34892
|
-
return str.replace(camelizeRE, function (_, c) {
|
|
34893
|
-
return c.toUpperCase();
|
|
34894
|
-
});
|
|
34895
|
-
}
|
|
34896
|
-
function padZero(num, targetLength) {
|
|
34897
|
-
if (targetLength === void 0) {
|
|
34898
|
-
targetLength = 2;
|
|
34899
|
-
}
|
|
34900
|
-
|
|
34901
|
-
var str = num + '';
|
|
34902
|
-
|
|
34903
|
-
while (str.length < targetLength) {
|
|
34904
|
-
str = '0' + str;
|
|
34905
|
-
}
|
|
34906
|
-
|
|
34907
|
-
return str;
|
|
34908
|
-
}
|
|
34909
|
-
// CONCATENATED MODULE: ./node_modules/vant/es/mixins/slots.js
|
|
34910
|
-
/**
|
|
34911
|
-
* Use scopedSlots in Vue 2.6+
|
|
34912
|
-
* downgrade to slots in lower version
|
|
34913
|
-
*/
|
|
34914
|
-
var SlotsMixin = {
|
|
34915
|
-
methods: {
|
|
34916
|
-
slots: function slots(name, props) {
|
|
34917
|
-
if (name === void 0) {
|
|
34918
|
-
name = 'default';
|
|
34919
|
-
}
|
|
34920
|
-
|
|
34921
|
-
var $slots = this.$slots,
|
|
34922
|
-
$scopedSlots = this.$scopedSlots;
|
|
34923
|
-
var scopedSlot = $scopedSlots[name];
|
|
34924
|
-
|
|
34925
|
-
if (scopedSlot) {
|
|
34926
|
-
return scopedSlot(props);
|
|
34927
|
-
}
|
|
34928
|
-
|
|
34929
|
-
return $slots[name];
|
|
34930
|
-
}
|
|
34931
|
-
}
|
|
34932
|
-
};
|
|
34933
|
-
// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/component.js
|
|
34934
|
-
/**
|
|
34935
|
-
* Create a basic component with common options
|
|
34936
|
-
*/
|
|
34937
|
-
|
|
34938
|
-
|
|
34939
|
-
|
|
34940
|
-
|
|
34941
|
-
|
|
34942
|
-
|
|
34943
|
-
function component_install(Vue) {
|
|
34944
|
-
var name = this.name;
|
|
34945
|
-
Vue.component(name, this);
|
|
34946
|
-
Vue.component(camelize("-" + name), this);
|
|
34947
|
-
} // unify slots & scopedSlots
|
|
34948
|
-
|
|
34949
|
-
|
|
34950
|
-
function unifySlots(context) {
|
|
34951
|
-
// use data.scopedSlots in lower Vue version
|
|
34952
|
-
var scopedSlots = context.scopedSlots || context.data.scopedSlots || {};
|
|
34953
|
-
var slots = context.slots();
|
|
34954
|
-
Object.keys(slots).forEach(function (key) {
|
|
34955
|
-
if (!scopedSlots[key]) {
|
|
34956
|
-
scopedSlots[key] = function () {
|
|
34957
|
-
return slots[key];
|
|
34958
|
-
};
|
|
34959
|
-
}
|
|
34960
|
-
});
|
|
34961
|
-
return scopedSlots;
|
|
34962
|
-
} // should be removed after Vue 3
|
|
34963
|
-
|
|
34964
|
-
function transformFunctionComponent(pure) {
|
|
34965
|
-
return {
|
|
34966
|
-
functional: true,
|
|
34967
|
-
props: pure.props,
|
|
34968
|
-
model: pure.model,
|
|
34969
|
-
render: function render(h, context) {
|
|
34970
|
-
return pure(h, context.props, unifySlots(context), context);
|
|
34971
|
-
}
|
|
34972
|
-
};
|
|
34973
|
-
}
|
|
34974
|
-
|
|
34975
|
-
function createComponent(name) {
|
|
34976
|
-
return function (sfc) {
|
|
34977
|
-
if (isFunction(sfc)) {
|
|
34978
|
-
sfc = transformFunctionComponent(sfc);
|
|
34979
|
-
}
|
|
34980
|
-
|
|
34981
|
-
if (!sfc.functional) {
|
|
34982
|
-
sfc.mixins = sfc.mixins || [];
|
|
34983
|
-
sfc.mixins.push(SlotsMixin);
|
|
34984
|
-
}
|
|
34985
|
-
|
|
34986
|
-
sfc.name = name;
|
|
34987
|
-
sfc.install = component_install;
|
|
34988
|
-
return sfc;
|
|
34989
|
-
};
|
|
34990
|
-
}
|
|
34991
|
-
// CONCATENATED MODULE: ./node_modules/vant/es/utils/deep-assign.js
|
|
34992
|
-
|
|
34993
|
-
var deep_assign_hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
34994
|
-
|
|
34995
|
-
function assignKey(to, from, key) {
|
|
34996
|
-
var val = from[key];
|
|
34997
|
-
|
|
34998
|
-
if (!isDef(val)) {
|
|
34999
|
-
return;
|
|
35000
|
-
}
|
|
35001
|
-
|
|
35002
|
-
if (!deep_assign_hasOwnProperty.call(to, key) || !isObject(val)) {
|
|
35003
|
-
to[key] = val;
|
|
35004
|
-
} else {
|
|
35005
|
-
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
35006
|
-
to[key] = deepAssign(Object(to[key]), from[key]);
|
|
35007
|
-
}
|
|
35008
|
-
}
|
|
35009
|
-
|
|
35010
|
-
function deepAssign(to, from) {
|
|
35011
|
-
Object.keys(from).forEach(function (key) {
|
|
35012
|
-
assignKey(to, from, key);
|
|
35013
|
-
});
|
|
35014
|
-
return to;
|
|
35015
|
-
}
|
|
35016
|
-
// CONCATENATED MODULE: ./node_modules/vant/es/locale/lang/zh-CN.js
|
|
35017
|
-
/* harmony default export */ var zh_CN = ({
|
|
35018
|
-
name: '姓名',
|
|
35019
|
-
tel: '电话',
|
|
35020
|
-
save: '保存',
|
|
35021
|
-
confirm: '确认',
|
|
35022
|
-
cancel: '取消',
|
|
35023
|
-
delete: '删除',
|
|
35024
|
-
complete: '完成',
|
|
35025
|
-
loading: '加载中...',
|
|
35026
|
-
telEmpty: '请填写电话',
|
|
35027
|
-
nameEmpty: '请填写姓名',
|
|
35028
|
-
nameInvalid: '请输入正确的姓名',
|
|
35029
|
-
confirmDelete: '确定要删除吗',
|
|
35030
|
-
telInvalid: '请输入正确的手机号',
|
|
35031
|
-
vanCalendar: {
|
|
35032
|
-
end: '结束',
|
|
35033
|
-
start: '开始',
|
|
35034
|
-
title: '日期选择',
|
|
35035
|
-
confirm: '确定',
|
|
35036
|
-
startEnd: '开始/结束',
|
|
35037
|
-
weekdays: ['日', '一', '二', '三', '四', '五', '六'],
|
|
35038
|
-
monthTitle: function monthTitle(year, month) {
|
|
35039
|
-
return year + "\u5E74" + month + "\u6708";
|
|
35040
|
-
},
|
|
35041
|
-
rangePrompt: function rangePrompt(maxRange) {
|
|
35042
|
-
return "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 " + maxRange + " \u5929";
|
|
35043
|
-
}
|
|
35044
|
-
},
|
|
35045
|
-
vanCascader: {
|
|
35046
|
-
select: '请选择'
|
|
35047
|
-
},
|
|
35048
|
-
vanContactCard: {
|
|
35049
|
-
addText: '添加联系人'
|
|
35050
|
-
},
|
|
35051
|
-
vanContactList: {
|
|
35052
|
-
addText: '新建联系人'
|
|
35053
|
-
},
|
|
35054
|
-
vanPagination: {
|
|
35055
|
-
prev: '上一页',
|
|
35056
|
-
next: '下一页'
|
|
35057
|
-
},
|
|
35058
|
-
vanPullRefresh: {
|
|
35059
|
-
pulling: '下拉即可刷新...',
|
|
35060
|
-
loosing: '释放即可刷新...'
|
|
35061
|
-
},
|
|
35062
|
-
vanSubmitBar: {
|
|
35063
|
-
label: '合计:'
|
|
35064
|
-
},
|
|
35065
|
-
vanCoupon: {
|
|
35066
|
-
unlimited: '无使用门槛',
|
|
35067
|
-
discount: function discount(_discount) {
|
|
35068
|
-
return _discount + "\u6298";
|
|
35069
|
-
},
|
|
35070
|
-
condition: function condition(_condition) {
|
|
35071
|
-
return "\u6EE1" + _condition + "\u5143\u53EF\u7528";
|
|
35072
|
-
}
|
|
35073
|
-
},
|
|
35074
|
-
vanCouponCell: {
|
|
35075
|
-
title: '优惠券',
|
|
35076
|
-
tips: '暂无可用',
|
|
35077
|
-
count: function count(_count) {
|
|
35078
|
-
return _count + "\u5F20\u53EF\u7528";
|
|
35079
|
-
}
|
|
35080
|
-
},
|
|
35081
|
-
vanCouponList: {
|
|
35082
|
-
empty: '暂无优惠券',
|
|
35083
|
-
exchange: '兑换',
|
|
35084
|
-
close: '不使用优惠券',
|
|
35085
|
-
enable: '可用',
|
|
35086
|
-
disabled: '不可用',
|
|
35087
|
-
placeholder: '请输入优惠码'
|
|
35088
|
-
},
|
|
35089
|
-
vanAddressEdit: {
|
|
35090
|
-
area: '地区',
|
|
35091
|
-
postal: '邮政编码',
|
|
35092
|
-
areaEmpty: '请选择地区',
|
|
35093
|
-
addressEmpty: '请填写详细地址',
|
|
35094
|
-
postalEmpty: '邮政编码格式不正确',
|
|
35095
|
-
defaultAddress: '设为默认收货地址',
|
|
35096
|
-
telPlaceholder: '收货人手机号',
|
|
35097
|
-
namePlaceholder: '收货人姓名',
|
|
35098
|
-
areaPlaceholder: '选择省 / 市 / 区'
|
|
35099
|
-
},
|
|
35100
|
-
vanAddressEditDetail: {
|
|
35101
|
-
label: '详细地址',
|
|
35102
|
-
placeholder: '街道门牌、楼层房间号等信息'
|
|
35103
|
-
},
|
|
35104
|
-
vanAddressList: {
|
|
35105
|
-
add: '新增地址'
|
|
35106
|
-
}
|
|
35107
|
-
});
|
|
35108
|
-
// CONCATENATED MODULE: ./node_modules/vant/es/locale/index.js
|
|
35109
|
-
|
|
35110
|
-
|
|
35111
|
-
|
|
35112
|
-
var proto = external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype;
|
|
35113
|
-
var defineReactive = external_commonjs_vue_commonjs2_vue_root_Vue_default.a.util.defineReactive;
|
|
35114
|
-
defineReactive(proto, '$vantLang', 'zh-CN');
|
|
35115
|
-
defineReactive(proto, '$vantMessages', {
|
|
35116
|
-
'zh-CN': zh_CN
|
|
35117
|
-
});
|
|
35118
|
-
/* harmony default export */ var locale = ({
|
|
35119
|
-
messages: function messages() {
|
|
35120
|
-
return proto.$vantMessages[proto.$vantLang];
|
|
35121
|
-
},
|
|
35122
|
-
use: function use(lang, messages) {
|
|
35123
|
-
var _this$add;
|
|
35124
|
-
|
|
35125
|
-
proto.$vantLang = lang;
|
|
35126
|
-
this.add((_this$add = {}, _this$add[lang] = messages, _this$add));
|
|
35127
|
-
},
|
|
35128
|
-
add: function add(messages) {
|
|
35129
|
-
if (messages === void 0) {
|
|
35130
|
-
messages = {};
|
|
35131
|
-
}
|
|
35132
|
-
|
|
35133
|
-
deepAssign(proto.$vantMessages, messages);
|
|
35134
|
-
}
|
|
35135
|
-
});
|
|
35136
|
-
// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/i18n.js
|
|
35137
|
-
|
|
35138
|
-
|
|
35139
|
-
|
|
35140
|
-
function createI18N(name) {
|
|
35141
|
-
var prefix = camelize(name) + '.';
|
|
35142
|
-
return function (path) {
|
|
35143
|
-
var messages = locale.messages();
|
|
35144
|
-
var message = get(messages, prefix + path) || get(messages, path);
|
|
35145
|
-
|
|
35146
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
35147
|
-
args[_key - 1] = arguments[_key];
|
|
35148
|
-
}
|
|
35149
|
-
|
|
35150
|
-
return isFunction(message) ? message.apply(void 0, args) : message;
|
|
35151
|
-
};
|
|
35152
|
-
}
|
|
35153
|
-
// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/index.js
|
|
32113
|
+
// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/index.js
|
|
35154
32114
|
|
|
35155
32115
|
|
|
35156
32116
|
|
|
@@ -35341,7 +32301,7 @@ function Overlay(h, props, slots, ctx) {
|
|
|
35341
32301
|
"style": style,
|
|
35342
32302
|
"class": [bem(), props.className],
|
|
35343
32303
|
"on": {
|
|
35344
|
-
"touchmove": props.lockScroll ? preventTouchMove :
|
|
32304
|
+
"touchmove": props.lockScroll ? preventTouchMove : noop
|
|
35345
32305
|
}
|
|
35346
32306
|
}, inherit(ctx, true)]), [slots.default == null ? void 0 : slots.default()])]);
|
|
35347
32307
|
}
|
|
@@ -35973,7 +32933,7 @@ function unitToPx(value) {
|
|
|
35973
32933
|
return value;
|
|
35974
32934
|
}
|
|
35975
32935
|
|
|
35976
|
-
if (
|
|
32936
|
+
if (inBrowser) {
|
|
35977
32937
|
if (value.indexOf('rem') !== -1) {
|
|
35978
32938
|
return convertRem(value);
|
|
35979
32939
|
}
|
|
@@ -36959,9 +33919,7 @@ function FileViewvue_type_script_lang_js_asyncGeneratorStep(gen, resolve, reject
|
|
|
36959
33919
|
function FileViewvue_type_script_lang_js_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { FileViewvue_type_script_lang_js_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { FileViewvue_type_script_lang_js_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
36960
33920
|
|
|
36961
33921
|
|
|
36962
|
-
|
|
36963
33922
|
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(es_toast);
|
|
36964
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(VueRouter$1);
|
|
36965
33923
|
|
|
36966
33924
|
/* harmony default export */ var FileViewvue_type_script_lang_js_ = ({
|
|
36967
33925
|
components: {
|
|
@@ -37206,8 +34164,8 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(VueRouter$1);
|
|
|
37206
34164
|
});
|
|
37207
34165
|
// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=script&lang=js&
|
|
37208
34166
|
/* harmony default export */ var view_FileViewvue_type_script_lang_js_ = (FileViewvue_type_script_lang_js_);
|
|
37209
|
-
// EXTERNAL MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=style&index=0&id=
|
|
37210
|
-
var
|
|
34167
|
+
// EXTERNAL MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=style&index=0&id=2976a750&prod&scoped=true&lang=scss&
|
|
34168
|
+
var FileViewvue_type_style_index_0_id_2976a750_prod_scoped_true_lang_scss_ = __webpack_require__("c1dc");
|
|
37211
34169
|
|
|
37212
34170
|
// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue
|
|
37213
34171
|
|
|
@@ -37220,11 +34178,11 @@ var FileViewvue_type_style_index_0_id_397f0e06_prod_scoped_true_lang_scss_ = __w
|
|
|
37220
34178
|
|
|
37221
34179
|
var FileView_component = normalizeComponent(
|
|
37222
34180
|
view_FileViewvue_type_script_lang_js_,
|
|
37223
|
-
|
|
37224
|
-
|
|
34181
|
+
FileViewvue_type_template_id_2976a750_scoped_true_render,
|
|
34182
|
+
FileViewvue_type_template_id_2976a750_scoped_true_staticRenderFns,
|
|
37225
34183
|
false,
|
|
37226
34184
|
null,
|
|
37227
|
-
"
|
|
34185
|
+
"2976a750",
|
|
37228
34186
|
null
|
|
37229
34187
|
|
|
37230
34188
|
)
|
|
@@ -44198,10 +41156,10 @@ var Dialog_createNamespace = createNamespace('dialog'),
|
|
|
44198
41156
|
var onEventType = {
|
|
44199
41157
|
Enter: this.showConfirmButton ? function () {
|
|
44200
41158
|
return _this3.handleAction('confirm');
|
|
44201
|
-
} :
|
|
41159
|
+
} : noop,
|
|
44202
41160
|
Escape: this.showCancelButton ? function () {
|
|
44203
41161
|
return _this3.handleAction('cancel');
|
|
44204
|
-
} :
|
|
41162
|
+
} : noop
|
|
44205
41163
|
};
|
|
44206
41164
|
onEventType[event.key]();
|
|
44207
41165
|
this.$emit('keydown', event);
|