框架源码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1874 lines
51 KiB

4 years ago
  1. module.exports =
  2. /******/ (function(modules) { // webpackBootstrap
  3. /******/ // The module cache
  4. /******/ var installedModules = {};
  5. /******/
  6. /******/ // The require function
  7. /******/ function __webpack_require__(moduleId) {
  8. /******/
  9. /******/ // Check if module is in cache
  10. /******/ if(installedModules[moduleId]) {
  11. /******/ return installedModules[moduleId].exports;
  12. /******/ }
  13. /******/ // Create a new module (and put it into the cache)
  14. /******/ var module = installedModules[moduleId] = {
  15. /******/ i: moduleId,
  16. /******/ l: false,
  17. /******/ exports: {}
  18. /******/ };
  19. /******/
  20. /******/ // Execute the module function
  21. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22. /******/
  23. /******/ // Flag the module as loaded
  24. /******/ module.l = true;
  25. /******/
  26. /******/ // Return the exports of the module
  27. /******/ return module.exports;
  28. /******/ }
  29. /******/
  30. /******/
  31. /******/ // expose the modules object (__webpack_modules__)
  32. /******/ __webpack_require__.m = modules;
  33. /******/
  34. /******/ // expose the module cache
  35. /******/ __webpack_require__.c = installedModules;
  36. /******/
  37. /******/ // define getter function for harmony exports
  38. /******/ __webpack_require__.d = function(exports, name, getter) {
  39. /******/ if(!__webpack_require__.o(exports, name)) {
  40. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  41. /******/ }
  42. /******/ };
  43. /******/
  44. /******/ // define __esModule on exports
  45. /******/ __webpack_require__.r = function(exports) {
  46. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48. /******/ }
  49. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  50. /******/ };
  51. /******/
  52. /******/ // create a fake namespace object
  53. /******/ // mode & 1: value is a module id, require it
  54. /******/ // mode & 2: merge all properties of value into the ns
  55. /******/ // mode & 4: return value when already ns object
  56. /******/ // mode & 8|1: behave like require
  57. /******/ __webpack_require__.t = function(value, mode) {
  58. /******/ if(mode & 1) value = __webpack_require__(value);
  59. /******/ if(mode & 8) return value;
  60. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61. /******/ var ns = Object.create(null);
  62. /******/ __webpack_require__.r(ns);
  63. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65. /******/ return ns;
  66. /******/ };
  67. /******/
  68. /******/ // getDefaultExport function for compatibility with non-harmony modules
  69. /******/ __webpack_require__.n = function(module) {
  70. /******/ var getter = module && module.__esModule ?
  71. /******/ function getDefault() { return module['default']; } :
  72. /******/ function getModuleExports() { return module; };
  73. /******/ __webpack_require__.d(getter, 'a', getter);
  74. /******/ return getter;
  75. /******/ };
  76. /******/
  77. /******/ // Object.prototype.hasOwnProperty.call
  78. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79. /******/
  80. /******/ // __webpack_public_path__
  81. /******/ __webpack_require__.p = "/dist/";
  82. /******/
  83. /******/
  84. /******/ // Load entry module and return exports
  85. /******/ return __webpack_require__(__webpack_require__.s = 383);
  86. /******/ })
  87. /************************************************************************/
  88. /******/ ({
  89. /***/ 0:
  90. /***/ (function(module, exports, __webpack_require__) {
  91. "use strict";
  92. var _interopRequireDefault = __webpack_require__(1);
  93. exports.__esModule = true;
  94. exports.noop = noop;
  95. exports.isDef = isDef;
  96. exports.isFunction = isFunction;
  97. exports.isObject = isObject;
  98. exports.isPromise = isPromise;
  99. exports.get = get;
  100. exports.isServer = exports.inBrowser = exports.addUnit = exports.createNamespace = void 0;
  101. var _vue = _interopRequireDefault(__webpack_require__(4));
  102. var _create = __webpack_require__(24);
  103. exports.createNamespace = _create.createNamespace;
  104. var _unit = __webpack_require__(20);
  105. exports.addUnit = _unit.addUnit;
  106. var inBrowser = typeof window !== 'undefined';
  107. exports.inBrowser = inBrowser;
  108. var isServer = _vue.default.prototype.$isServer; // eslint-disable-next-line @typescript-eslint/no-empty-function
  109. exports.isServer = isServer;
  110. function noop() {}
  111. function isDef(val) {
  112. return val !== undefined && val !== null;
  113. }
  114. function isFunction(val) {
  115. return typeof val === 'function';
  116. }
  117. function isObject(val) {
  118. return val !== null && typeof val === 'object';
  119. }
  120. function isPromise(val) {
  121. return isObject(val) && isFunction(val.then) && isFunction(val.catch);
  122. }
  123. function get(object, path) {
  124. var keys = path.split('.');
  125. var result = object;
  126. keys.forEach(function (key) {
  127. var _result$key;
  128. result = (_result$key = result[key]) != null ? _result$key : '';
  129. });
  130. return result;
  131. }
  132. /***/ }),
  133. /***/ 1:
  134. /***/ (function(module, exports) {
  135. function _interopRequireDefault(obj) {
  136. return obj && obj.__esModule ? obj : {
  137. "default": obj
  138. };
  139. }
  140. module.exports = _interopRequireDefault;
  141. /***/ }),
  142. /***/ 11:
  143. /***/ (function(module, exports, __webpack_require__) {
  144. "use strict";
  145. var _interopRequireDefault = __webpack_require__(1);
  146. exports.__esModule = true;
  147. exports.default = void 0;
  148. var _vue = _interopRequireDefault(__webpack_require__(4));
  149. var _deepAssign = __webpack_require__(21);
  150. var _zhCN = _interopRequireDefault(__webpack_require__(27));
  151. var proto = _vue.default.prototype;
  152. var defineReactive = _vue.default.util.defineReactive;
  153. defineReactive(proto, '$vantLang', 'zh-CN');
  154. defineReactive(proto, '$vantMessages', {
  155. 'zh-CN': _zhCN.default
  156. });
  157. var _default = {
  158. messages: function messages() {
  159. return proto.$vantMessages[proto.$vantLang];
  160. },
  161. use: function use(lang, messages) {
  162. var _this$add;
  163. proto.$vantLang = lang;
  164. this.add((_this$add = {}, _this$add[lang] = messages, _this$add));
  165. },
  166. add: function add(messages) {
  167. if (messages === void 0) {
  168. messages = {};
  169. }
  170. (0, _deepAssign.deepAssign)(proto.$vantMessages, messages);
  171. }
  172. };
  173. exports.default = _default;
  174. /***/ }),
  175. /***/ 12:
  176. /***/ (function(module, exports) {
  177. /**
  178. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  179. * embed the css on the page. This breaks all relative urls because now they are relative to a
  180. * bundle instead of the current page.
  181. *
  182. * One solution is to only use full urls, but that may be impossible.
  183. *
  184. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  185. *
  186. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  187. *
  188. */
  189. module.exports = function (css) {
  190. // get current location
  191. var location = typeof window !== "undefined" && window.location;
  192. if (!location) {
  193. throw new Error("fixUrls requires window.location");
  194. }
  195. // blank or null?
  196. if (!css || typeof css !== "string") {
  197. return css;
  198. }
  199. var baseUrl = location.protocol + "//" + location.host;
  200. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  201. // convert each url(...)
  202. /*
  203. This regular expression is just a way to recursively match brackets within
  204. a string.
  205. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  206. ( = Start a capturing group
  207. (?: = Start a non-capturing group
  208. [^)(] = Match anything that isn't a parentheses
  209. | = OR
  210. \( = Match a start parentheses
  211. (?: = Start another non-capturing groups
  212. [^)(]+ = Match anything that isn't a parentheses
  213. | = OR
  214. \( = Match a start parentheses
  215. [^)(]* = Match anything that isn't a parentheses
  216. \) = Match a end parentheses
  217. ) = End Group
  218. *\) = Match anything and then a close parens
  219. ) = Close non-capturing group
  220. * = Match anything
  221. ) = Close capturing group
  222. \) = Match a close parens
  223. /gi = Get all matches, not the first. Be case insensitive.
  224. */
  225. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  226. // strip quotes (if they exist)
  227. var unquotedOrigUrl = origUrl
  228. .trim()
  229. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  230. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  231. // already a full url? no change
  232. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  233. return fullMatch;
  234. }
  235. // convert the url to a full url
  236. var newUrl;
  237. if (unquotedOrigUrl.indexOf("//") === 0) {
  238. //TODO: should we add protocol?
  239. newUrl = unquotedOrigUrl;
  240. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  241. // path should be relative to the base url
  242. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  243. } else {
  244. // path should be relative to current directory
  245. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  246. }
  247. // send back the fixed url(...)
  248. return "url(" + JSON.stringify(newUrl) + ")";
  249. });
  250. // send back the fixed css
  251. return fixedCss;
  252. };
  253. /***/ }),
  254. /***/ 14:
  255. /***/ (function(module, exports, __webpack_require__) {
  256. "use strict";
  257. var _interopRequireDefault = __webpack_require__(1);
  258. exports.__esModule = true;
  259. exports.inherit = inherit;
  260. exports.emit = emit;
  261. exports.mount = mount;
  262. var _extends2 = _interopRequireDefault(__webpack_require__(18));
  263. var _vue = _interopRequireDefault(__webpack_require__(4));
  264. var inheritKey = ['ref', 'style', 'class', 'attrs', 'refInFor', 'nativeOn', 'directives', 'staticClass', 'staticStyle'];
  265. var mapInheritKey = {
  266. nativeOn: 'on'
  267. }; // inherit partial context, map nativeOn to on
  268. function inherit(context, inheritListeners) {
  269. var result = inheritKey.reduce(function (obj, key) {
  270. if (context.data[key]) {
  271. obj[mapInheritKey[key] || key] = context.data[key];
  272. }
  273. return obj;
  274. }, {});
  275. if (inheritListeners) {
  276. result.on = result.on || {};
  277. (0, _extends2.default)(result.on, context.data.on);
  278. }
  279. return result;
  280. } // emit event
  281. function emit(context, eventName) {
  282. for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  283. args[_key - 2] = arguments[_key];
  284. }
  285. var listeners = context.listeners[eventName];
  286. if (listeners) {
  287. if (Array.isArray(listeners)) {
  288. listeners.forEach(function (listener) {
  289. listener.apply(void 0, args);
  290. });
  291. } else {
  292. listeners.apply(void 0, args);
  293. }
  294. }
  295. } // mount functional component
  296. function mount(Component, data) {
  297. var instance = new _vue.default({
  298. el: document.createElement('div'),
  299. props: Component.props,
  300. render: function render(h) {
  301. return h(Component, (0, _extends2.default)({
  302. props: this.$props
  303. }, data));
  304. }
  305. });
  306. document.body.appendChild(instance.$el);
  307. return instance;
  308. }
  309. /***/ }),
  310. /***/ 144:
  311. /***/ (function(module, exports, __webpack_require__) {
  312. "use strict";
  313. var _interopRequireDefault = __webpack_require__(1);
  314. exports.__esModule = true;
  315. exports.default = void 0;
  316. var _extends2 = _interopRequireDefault(__webpack_require__(18));
  317. var _utils = __webpack_require__(0);
  318. var _relation = __webpack_require__(47);
  319. var _router = __webpack_require__(69);
  320. var _info = _interopRequireDefault(__webpack_require__(37));
  321. var _createNamespace = (0, _utils.createNamespace)('sidebar-item'),
  322. createComponent = _createNamespace[0],
  323. bem = _createNamespace[1];
  324. var _default = createComponent({
  325. mixins: [(0, _relation.ChildrenMixin)('vanSidebar')],
  326. props: (0, _extends2.default)({}, _router.routeProps, {
  327. dot: Boolean,
  328. // @deprecated
  329. info: [Number, String],
  330. badge: [Number, String],
  331. title: String,
  332. disabled: Boolean
  333. }),
  334. computed: {
  335. select: function select() {
  336. return this.index === +this.parent.activeKey;
  337. }
  338. },
  339. methods: {
  340. onClick: function onClick() {
  341. if (this.disabled) {
  342. return;
  343. }
  344. this.$emit('click', this.index);
  345. this.parent.$emit('input', this.index);
  346. this.parent.setIndex(this.index);
  347. (0, _router.route)(this.$router, this);
  348. }
  349. },
  350. render: function render() {
  351. var _this$slots, _this$badge;
  352. var h = arguments[0];
  353. if (false) {}
  354. return h("a", {
  355. "class": bem({
  356. select: this.select,
  357. disabled: this.disabled
  358. }),
  359. "on": {
  360. "click": this.onClick
  361. }
  362. }, [h("div", {
  363. "class": bem('text')
  364. }, [(_this$slots = this.slots('title')) != null ? _this$slots : this.title, h(_info.default, {
  365. "attrs": {
  366. "dot": this.dot,
  367. "info": (_this$badge = this.badge) != null ? _this$badge : this.info
  368. },
  369. "class": bem('info')
  370. })])]);
  371. }
  372. });
  373. exports.default = _default;
  374. /***/ }),
  375. /***/ 16:
  376. /***/ (function(module, exports, __webpack_require__) {
  377. "use strict";
  378. function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}var normalMerge=["attrs","props","domProps"],toArrayMerge=["class","style","directives"],functionalMerge=["on","nativeOn"],mergeJsxProps=function(a){return a.reduce(function(c,a){for(var b in a)if(!c[b])c[b]=a[b];else if(-1!==normalMerge.indexOf(b))c[b]=_extends({},c[b],a[b]);else if(-1!==toArrayMerge.indexOf(b)){var d=c[b]instanceof Array?c[b]:[c[b]],e=a[b]instanceof Array?a[b]:[a[b]];c[b]=d.concat(e)}else if(-1!==functionalMerge.indexOf(b)){for(var f in a[b])if(c[b][f]){var g=c[b][f]instanceof Array?c[b][f]:[c[b][f]],h=a[b][f]instanceof Array?a[b][f]:[a[b][f]];c[b][f]=g.concat(h)}else c[b][f]=a[b][f];}else if("hook"==b)for(var i in a[b])c[b][i]=c[b][i]?mergeFn(c[b][i],a[b][i]):a[b][i];else c[b]=a[b];return c},{})},mergeFn=function(a,b){return function(){a&&a.apply(this,arguments),b&&b.apply(this,arguments)}};module.exports=mergeJsxProps;
  379. /***/ }),
  380. /***/ 18:
  381. /***/ (function(module, exports) {
  382. function _extends() {
  383. module.exports = _extends = Object.assign || function (target) {
  384. for (var i = 1; i < arguments.length; i++) {
  385. var source = arguments[i];
  386. for (var key in source) {
  387. if (Object.prototype.hasOwnProperty.call(source, key)) {
  388. target[key] = source[key];
  389. }
  390. }
  391. }
  392. return target;
  393. };
  394. return _extends.apply(this, arguments);
  395. }
  396. module.exports = _extends;
  397. /***/ }),
  398. /***/ 185:
  399. /***/ (function(module, exports, __webpack_require__) {
  400. var content = __webpack_require__(186);
  401. if(typeof content === 'string') content = [[module.i, content, '']];
  402. var transform;
  403. var insertInto;
  404. var options = {"hmr":true}
  405. options.transform = transform
  406. options.insertInto = undefined;
  407. var update = __webpack_require__(6)(content, options);
  408. if(content.locals) module.exports = content.locals;
  409. if(false) {}
  410. /***/ }),
  411. /***/ 186:
  412. /***/ (function(module, exports, __webpack_require__) {
  413. exports = module.exports = __webpack_require__(5)(false);
  414. // Module
  415. exports.push([module.i, ".van-sidebar-item{position:relative;display:block;box-sizing:border-box;padding:20px 12px;overflow:hidden;color:#323233;font-size:14px;line-height:20px;background-color:#f7f8fa;cursor:pointer;-webkit-user-select:none;user-select:none}.van-sidebar-item:active{background-color:#f2f3f5}.van-sidebar-item__text{position:relative;display:inline-block;word-break:break-all}.van-sidebar-item:not(:last-child)::after{border-bottom-width:1px}.van-sidebar-item--select{color:#323233;font-weight:500}.van-sidebar-item--select,.van-sidebar-item--select:active{background-color:#fff}.van-sidebar-item--select::before{position:absolute;top:50%;left:0;width:4px;height:16px;background-color:#ffce6d;-webkit-transform:translateY(-50%);transform:translateY(-50%);content:''}.van-sidebar-item--disabled{color:#c8c9cc;cursor:not-allowed}.van-sidebar-item--disabled:active{background-color:#f7f8fa}", ""]);
  416. /***/ }),
  417. /***/ 19:
  418. /***/ (function(module, exports, __webpack_require__) {
  419. "use strict";
  420. exports.__esModule = true;
  421. exports.isNumeric = isNumeric;
  422. exports.isNaN = isNaN;
  423. function isNumeric(val) {
  424. return /^\d+(\.\d+)?$/.test(val);
  425. }
  426. function isNaN(val) {
  427. if (Number.isNaN) {
  428. return Number.isNaN(val);
  429. } // eslint-disable-next-line no-self-compare
  430. return val !== val;
  431. }
  432. /***/ }),
  433. /***/ 20:
  434. /***/ (function(module, exports, __webpack_require__) {
  435. "use strict";
  436. exports.__esModule = true;
  437. exports.addUnit = addUnit;
  438. exports.unitToPx = unitToPx;
  439. var _ = __webpack_require__(0);
  440. var _number = __webpack_require__(19);
  441. function addUnit(value) {
  442. if (!(0, _.isDef)(value)) {
  443. return undefined;
  444. }
  445. value = String(value);
  446. return (0, _number.isNumeric)(value) ? value + "px" : value;
  447. } // cache
  448. var rootFontSize;
  449. function getRootFontSize() {
  450. if (!rootFontSize) {
  451. var doc = document.documentElement;
  452. var fontSize = doc.style.fontSize || window.getComputedStyle(doc).fontSize;
  453. rootFontSize = parseFloat(fontSize);
  454. }
  455. return rootFontSize;
  456. }
  457. function convertRem(value) {
  458. value = value.replace(/rem/g, '');
  459. return +value * getRootFontSize();
  460. }
  461. function convertVw(value) {
  462. value = value.replace(/vw/g, '');
  463. return +value * window.innerWidth / 100;
  464. }
  465. function convertVh(value) {
  466. value = value.replace(/vh/g, '');
  467. return +value * window.innerHeight / 100;
  468. }
  469. function unitToPx(value) {
  470. if (typeof value === 'number') {
  471. return value;
  472. }
  473. if (_.inBrowser) {
  474. if (value.indexOf('rem') !== -1) {
  475. return convertRem(value);
  476. }
  477. if (value.indexOf('vw') !== -1) {
  478. return convertVw(value);
  479. }
  480. if (value.indexOf('vh') !== -1) {
  481. return convertVh(value);
  482. }
  483. }
  484. return parseFloat(value);
  485. }
  486. /***/ }),
  487. /***/ 21:
  488. /***/ (function(module, exports, __webpack_require__) {
  489. "use strict";
  490. exports.__esModule = true;
  491. exports.deepAssign = deepAssign;
  492. var _ = __webpack_require__(0);
  493. var hasOwnProperty = Object.prototype.hasOwnProperty;
  494. function assignKey(to, from, key) {
  495. var val = from[key];
  496. if (!(0, _.isDef)(val)) {
  497. return;
  498. }
  499. if (!hasOwnProperty.call(to, key) || !(0, _.isObject)(val)) {
  500. to[key] = val;
  501. } else {
  502. // eslint-disable-next-line @typescript-eslint/no-use-before-define
  503. to[key] = deepAssign(Object(to[key]), from[key]);
  504. }
  505. }
  506. function deepAssign(to, from) {
  507. Object.keys(from).forEach(function (key) {
  508. assignKey(to, from, key);
  509. });
  510. return to;
  511. }
  512. /***/ }),
  513. /***/ 22:
  514. /***/ (function(module, exports, __webpack_require__) {
  515. var content = __webpack_require__(23);
  516. if(typeof content === 'string') content = [[module.i, content, '']];
  517. var transform;
  518. var insertInto;
  519. var options = {"hmr":true}
  520. options.transform = transform
  521. options.insertInto = undefined;
  522. var update = __webpack_require__(6)(content, options);
  523. if(content.locals) module.exports = content.locals;
  524. if(false) {}
  525. /***/ }),
  526. /***/ 23:
  527. /***/ (function(module, exports, __webpack_require__) {
  528. exports = module.exports = __webpack_require__(5)(false);
  529. // Module
  530. exports.push([module.i, "html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Segoe UI,Arial,Roboto,'PingFang SC',miui,'Hiragino Sans GB','Microsoft Yahei',sans-serif}a{text-decoration:none}button,input,textarea{color:inherit;font:inherit}[class*=van-]:focus,a:focus,button:focus,input:focus,textarea:focus{outline:0}ol,ul{margin:0;padding:0;list-style:none}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-clearfix::after{display:table;clear:both;content:''}[class*=van-hairline]::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid #ebedf0;-webkit-transform:scale(.5);transform:scale(.5)}.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--top::after{border-top-width:1px}.van-hairline--left::after{border-left-width:1px}.van-hairline--right::after{border-right-width:1px}.van-hairline--bottom::after{border-bottom-width:1px}.van-hairline--top-bottom::after,.van-hairline-unset--top-bottom::after{border-width:1px 0}.van-hairline--surround::after{border-width:1px}@-webkit-keyframes van-slide-up-enter{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes van-slide-up-enter{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@-webkit-keyframes van-slide-up-leave{to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@-webkit-keyframes van-slide-down-enter{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-enter{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@-webkit-keyframes van-slide-down-leave{to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@-webkit-keyframes van-slide-left-enter{from{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-enter{from{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes van-slide-left-leave{to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes van-slide-right-enter{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes van-slide-right-enter{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-webkit-keyframes van-slide-right-leave{to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-webkit-keyframes van-fade-in{from{opacity:0}to{opacity:1}}@keyframes van-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes van-fade-out{from{opacity:1}to{opacity:0}}@keyframes van-fade-out{from{opacity:1}to{opacity:0}}@-webkit-keyframes van-rotate{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes van-rotate{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.van-fade-enter-active{-webkit-animation:.3s van-fade-in both ease-out;animation:.3s van-fade-in both ease-out}.van-fade-leave-active{-webkit-animation:.3s van-fade-out both ease-in;animation:.3s van-fade-out both ease-in
  531. /***/ }),
  532. /***/ 24:
  533. /***/ (function(module, exports, __webpack_require__) {
  534. "use strict";
  535. exports.__esModule = true;
  536. exports.createNamespace = createNamespace;
  537. var _bem = __webpack_require__(25);
  538. var _component = __webpack_require__(26);
  539. var _i18n = __webpack_require__(29);
  540. function createNamespace(name) {
  541. name = 'van-' + name;
  542. return [(0, _component.createComponent)(name), (0, _bem.createBEM)(name), (0, _i18n.createI18N)(name)];
  543. }
  544. /***/ }),
  545. /***/ 25:
  546. /***/ (function(module, exports, __webpack_require__) {
  547. "use strict";
  548. exports.__esModule = true;
  549. exports.createBEM = createBEM;
  550. /**
  551. * bem helper
  552. * b() // 'button'
  553. * b('text') // 'button__text'
  554. * b({ disabled }) // 'button button--disabled'
  555. * b('text', { disabled }) // 'button__text button__text--disabled'
  556. * b(['disabled', 'primary']) // 'button button--disabled button--primary'
  557. */
  558. function gen(name, mods) {
  559. if (!mods) {
  560. return '';
  561. }
  562. if (typeof mods === 'string') {
  563. return " " + name + "--" + mods;
  564. }
  565. if (Array.isArray(mods)) {
  566. return mods.reduce(function (ret, item) {
  567. return ret + gen(name, item);
  568. }, '');
  569. }
  570. return Object.keys(mods).reduce(function (ret, key) {
  571. return ret + (mods[key] ? gen(name, key) : '');
  572. }, '');
  573. }
  574. function createBEM(name) {
  575. return function (el, mods) {
  576. if (el && typeof el !== 'string') {
  577. mods = el;
  578. el = '';
  579. }
  580. el = el ? name + "__" + el : name;
  581. return "" + el + gen(el, mods);
  582. };
  583. }
  584. /***/ }),
  585. /***/ 26:
  586. /***/ (function(module, exports, __webpack_require__) {
  587. "use strict";
  588. var _interopRequireDefault = __webpack_require__(1);
  589. exports.__esModule = true;
  590. exports.unifySlots = unifySlots;
  591. exports.createComponent = createComponent;
  592. __webpack_require__(11);
  593. var _ = __webpack_require__(0);
  594. var _string = __webpack_require__(9);
  595. var _slots = __webpack_require__(28);
  596. var _vue = _interopRequireDefault(__webpack_require__(4));
  597. /**
  598. * Create a basic component with common options
  599. */
  600. function install(Vue) {
  601. var name = this.name;
  602. Vue.component(name, this);
  603. Vue.component((0, _string.camelize)("-" + name), this);
  604. } // unify slots & scopedSlots
  605. function unifySlots(context) {
  606. // use data.scopedSlots in lower Vue version
  607. var scopedSlots = context.scopedSlots || context.data.scopedSlots || {};
  608. var slots = context.slots();
  609. Object.keys(slots).forEach(function (key) {
  610. if (!scopedSlots[key]) {
  611. scopedSlots[key] = function () {
  612. return slots[key];
  613. };
  614. }
  615. });
  616. return scopedSlots;
  617. } // should be removed after Vue 3
  618. function transformFunctionComponent(pure) {
  619. return {
  620. functional: true,
  621. props: pure.props,
  622. model: pure.model,
  623. render: function render(h, context) {
  624. return pure(h, context.props, unifySlots(context), context);
  625. }
  626. };
  627. }
  628. function createComponent(name) {
  629. return function (sfc) {
  630. if ((0, _.isFunction)(sfc)) {
  631. sfc = transformFunctionComponent(sfc);
  632. }
  633. if (!sfc.functional) {
  634. sfc.mixins = sfc.mixins || [];
  635. sfc.mixins.push(_slots.SlotsMixin);
  636. }
  637. sfc.name = name;
  638. sfc.install = install;
  639. return sfc;
  640. };
  641. }
  642. /***/ }),
  643. /***/ 27:
  644. /***/ (function(module, exports, __webpack_require__) {
  645. "use strict";
  646. exports.__esModule = true;
  647. exports.default = void 0;
  648. var _default = {
  649. name: '姓名',
  650. tel: '电话',
  651. save: '保存',
  652. confirm: '确认',
  653. cancel: '取消',
  654. delete: '删除',
  655. complete: '完成',
  656. loading: '加载中...',
  657. telEmpty: '请填写电话',
  658. nameEmpty: '请填写姓名',
  659. nameInvalid: '请输入正确的姓名',
  660. confirmDelete: '确定要删除吗',
  661. telInvalid: '请输入正确的手机号',
  662. vanCalendar: {
  663. end: '结束',
  664. start: '开始',
  665. title: '日期选择',
  666. confirm: '确定',
  667. startEnd: '开始/结束',
  668. weekdays: ['日', '一', '二', '三', '四', '五', '六'],
  669. monthTitle: function monthTitle(year, month) {
  670. return year + "\u5E74" + month + "\u6708";
  671. },
  672. rangePrompt: function rangePrompt(maxRange) {
  673. return "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 " + maxRange + " \u5929";
  674. }
  675. },
  676. vanCascader: {
  677. select: '请选择'
  678. },
  679. vanContactCard: {
  680. addText: '添加联系人'
  681. },
  682. vanContactList: {
  683. addText: '新建联系人'
  684. },
  685. vanPagination: {
  686. prev: '上一页',
  687. next: '下一页'
  688. },
  689. vanPullRefresh: {
  690. pulling: '下拉即可刷新...',
  691. loosing: '释放即可刷新...'
  692. },
  693. vanSubmitBar: {
  694. label: '合计:'
  695. },
  696. vanCoupon: {
  697. unlimited: '无使用门槛',
  698. discount: function discount(_discount) {
  699. return _discount + "\u6298";
  700. },
  701. condition: function condition(_condition) {
  702. return "\u6EE1" + _condition + "\u5143\u53EF\u7528";
  703. }
  704. },
  705. vanCouponCell: {
  706. title: '优惠券',
  707. tips: '暂无可用',
  708. count: function count(_count) {
  709. return _count + "\u5F20\u53EF\u7528";
  710. }
  711. },
  712. vanCouponList: {
  713. empty: '暂无优惠券',
  714. exchange: '兑换',
  715. close: '不使用优惠券',
  716. enable: '可用',
  717. disabled: '不可用',
  718. placeholder: '请输入优惠码'
  719. },
  720. vanAddressEdit: {
  721. area: '地区',
  722. postal: '邮政编码',
  723. areaEmpty: '请选择地区',
  724. addressEmpty: '请填写详细地址',
  725. postalEmpty: '邮政编码格式不正确',
  726. defaultAddress: '设为默认收货地址',
  727. telPlaceholder: '收货人手机号',
  728. namePlaceholder: '收货人姓名',
  729. areaPlaceholder: '选择省 / 市 / 区'
  730. },
  731. vanAddressEditDetail: {
  732. label: '详细地址',
  733. placeholder: '街道门牌、楼层房间号等信息'
  734. },
  735. vanAddressList: {
  736. add: '新增地址'
  737. }
  738. };
  739. exports.default = _default;
  740. /***/ }),
  741. /***/ 28:
  742. /***/ (function(module, exports, __webpack_require__) {
  743. "use strict";
  744. exports.__esModule = true;
  745. exports.SlotsMixin = void 0;
  746. /**
  747. * Use scopedSlots in Vue 2.6+
  748. * downgrade to slots in lower version
  749. */
  750. var SlotsMixin = {
  751. methods: {
  752. slots: function slots(name, props) {
  753. if (name === void 0) {
  754. name = 'default';
  755. }
  756. var $slots = this.$slots,
  757. $scopedSlots = this.$scopedSlots;
  758. var scopedSlot = $scopedSlots[name];
  759. if (scopedSlot) {
  760. return scopedSlot(props);
  761. }
  762. return $slots[name];
  763. }
  764. }
  765. };
  766. exports.SlotsMixin = SlotsMixin;
  767. /***/ }),
  768. /***/ 29:
  769. /***/ (function(module, exports, __webpack_require__) {
  770. "use strict";
  771. var _interopRequireDefault = __webpack_require__(1);
  772. exports.__esModule = true;
  773. exports.createI18N = createI18N;
  774. var _ = __webpack_require__(0);
  775. var _string = __webpack_require__(9);
  776. var _locale = _interopRequireDefault(__webpack_require__(11));
  777. function createI18N(name) {
  778. var prefix = (0, _string.camelize)(name) + '.';
  779. return function (path) {
  780. var messages = _locale.default.messages();
  781. var message = (0, _.get)(messages, prefix + path) || (0, _.get)(messages, path);
  782. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  783. args[_key - 1] = arguments[_key];
  784. }
  785. return (0, _.isFunction)(message) ? message.apply(void 0, args) : message;
  786. };
  787. }
  788. /***/ }),
  789. /***/ 37:
  790. /***/ (function(module, exports, __webpack_require__) {
  791. "use strict";
  792. var _interopRequireDefault = __webpack_require__(1);
  793. exports.__esModule = true;
  794. exports.default = void 0;
  795. var _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(16));
  796. var _utils = __webpack_require__(0);
  797. var _functional = __webpack_require__(14);
  798. // Utils
  799. var _createNamespace = (0, _utils.createNamespace)('info'),
  800. createComponent = _createNamespace[0],
  801. bem = _createNamespace[1];
  802. function Info(h, props, slots, ctx) {
  803. var dot = props.dot,
  804. info = props.info;
  805. var showInfo = (0, _utils.isDef)(info) && info !== '';
  806. if (!dot && !showInfo) {
  807. return;
  808. }
  809. return h("div", (0, _babelHelperVueJsxMergeProps.default)([{
  810. "class": bem({
  811. dot: dot
  812. })
  813. }, (0, _functional.inherit)(ctx, true)]), [dot ? '' : props.info]);
  814. }
  815. Info.props = {
  816. dot: Boolean,
  817. info: [Number, String]
  818. };
  819. var _default = createComponent(Info);
  820. exports.default = _default;
  821. /***/ }),
  822. /***/ 383:
  823. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  824. "use strict";
  825. __webpack_require__.r(__webpack_exports__);
  826. /* harmony import */ var _tisdesign_m_lib_sidebar_item__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(144);
  827. /* harmony import */ var _tisdesign_m_lib_sidebar_item__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tisdesign_m_lib_sidebar_item__WEBPACK_IMPORTED_MODULE_0__);
  828. /* harmony import */ var _tisdesign_m_lib_sidebar_item_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(384);
  829. /* harmony import */ var _tisdesign_m_lib_sidebar_item_style__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tisdesign_m_lib_sidebar_item_style__WEBPACK_IMPORTED_MODULE_1__);
  830. _tisdesign_m_lib_sidebar_item__WEBPACK_IMPORTED_MODULE_0___default.a.name = 'm-sidebar-item';
  831. /* harmony default export */ __webpack_exports__["default"] = (_tisdesign_m_lib_sidebar_item__WEBPACK_IMPORTED_MODULE_0___default.a);
  832. /***/ }),
  833. /***/ 384:
  834. /***/ (function(module, exports, __webpack_require__) {
  835. __webpack_require__(22);
  836. __webpack_require__(41);
  837. __webpack_require__(185);
  838. /***/ }),
  839. /***/ 4:
  840. /***/ (function(module, exports) {
  841. module.exports = require("vue");
  842. /***/ }),
  843. /***/ 41:
  844. /***/ (function(module, exports, __webpack_require__) {
  845. var content = __webpack_require__(42);
  846. if(typeof content === 'string') content = [[module.i, content, '']];
  847. var transform;
  848. var insertInto;
  849. var options = {"hmr":true}
  850. options.transform = transform
  851. options.insertInto = undefined;
  852. var update = __webpack_require__(6)(content, options);
  853. if(content.locals) module.exports = content.locals;
  854. if(false) {}
  855. /***/ }),
  856. /***/ 42:
  857. /***/ (function(module, exports, __webpack_require__) {
  858. exports = module.exports = __webpack_require__(5)(false);
  859. // Module
  860. exports.push([module.i, ".van-info{position:absolute;top:0;right:0;box-sizing:border-box;min-width:16px;padding:0 3px;color:#fff;font-weight:500;font-size:12px;font-family:-apple-system-font,Helvetica Neue,Arial,sans-serif;line-height:1.2;text-align:center;background-color:#ffce6d;border:1px solid #fff;border-radius:16px;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%);-webkit-transform-origin:100%;transform-origin:100%}.van-info--dot{width:8px;min-width:0;height:8px;background-color:#ffce6d;border-radius:100%}", ""]);
  861. /***/ }),
  862. /***/ 47:
  863. /***/ (function(module, exports, __webpack_require__) {
  864. "use strict";
  865. exports.__esModule = true;
  866. exports.ChildrenMixin = ChildrenMixin;
  867. exports.ParentMixin = ParentMixin;
  868. var _vnodes = __webpack_require__(48);
  869. function ChildrenMixin(_parent, options) {
  870. var _inject, _computed;
  871. if (options === void 0) {
  872. options = {};
  873. }
  874. var indexKey = options.indexKey || 'index';
  875. return {
  876. inject: (_inject = {}, _inject[_parent] = {
  877. default: null
  878. }, _inject),
  879. computed: (_computed = {
  880. parent: function parent() {
  881. if (this.disableBindRelation) {
  882. return null;
  883. }
  884. return this[_parent];
  885. }
  886. }, _computed[indexKey] = function () {
  887. this.bindRelation();
  888. if (this.parent) {
  889. return this.parent.children.indexOf(this);
  890. }
  891. return null;
  892. }, _computed),
  893. watch: {
  894. disableBindRelation: function disableBindRelation(val) {
  895. if (!val) {
  896. this.bindRelation();
  897. }
  898. }
  899. },
  900. mounted: function mounted() {
  901. this.bindRelation();
  902. },
  903. beforeDestroy: function beforeDestroy() {
  904. var _this = this;
  905. if (this.parent) {
  906. this.parent.children = this.parent.children.filter(function (item) {
  907. return item !== _this;
  908. });
  909. }
  910. },
  911. methods: {
  912. bindRelation: function bindRelation() {
  913. if (!this.parent || this.parent.children.indexOf(this) !== -1) {
  914. return;
  915. }
  916. var children = [].concat(this.parent.children, [this]);
  917. (0, _vnodes.sortChildren)(children, this.parent);
  918. this.parent.children = children;
  919. }
  920. }
  921. };
  922. }
  923. function ParentMixin(parent) {
  924. return {
  925. provide: function provide() {
  926. var _ref;
  927. return _ref = {}, _ref[parent] = this, _ref;
  928. },
  929. data: function data() {
  930. return {
  931. children: []
  932. };
  933. }
  934. };
  935. }
  936. /***/ }),
  937. /***/ 48:
  938. /***/ (function(module, exports, __webpack_require__) {
  939. "use strict";
  940. exports.__esModule = true;
  941. exports.sortChildren = sortChildren;
  942. function flattenVNodes(vnodes) {
  943. var result = [];
  944. function traverse(vnodes) {
  945. vnodes.forEach(function (vnode) {
  946. result.push(vnode);
  947. if (vnode.componentInstance) {
  948. traverse(vnode.componentInstance.$children.map(function (item) {
  949. return item.$vnode;
  950. }));
  951. }
  952. if (vnode.children) {
  953. traverse(vnode.children);
  954. }
  955. });
  956. }
  957. traverse(vnodes);
  958. return result;
  959. } // sort children instances by vnodes order
  960. function sortChildren(children, parent) {
  961. var componentOptions = parent.$vnode.componentOptions;
  962. if (!componentOptions || !componentOptions.children) {
  963. return;
  964. }
  965. var vnodes = flattenVNodes(componentOptions.children);
  966. children.sort(function (a, b) {
  967. return vnodes.indexOf(a.$vnode) - vnodes.indexOf(b.$vnode);
  968. });
  969. }
  970. /***/ }),
  971. /***/ 5:
  972. /***/ (function(module, exports, __webpack_require__) {
  973. "use strict";
  974. /*
  975. MIT License http://www.opensource.org/licenses/mit-license.php
  976. Author Tobias Koppers @sokra
  977. */
  978. // css base code, injected by the css-loader
  979. module.exports = function (useSourceMap) {
  980. var list = []; // return the list of modules as css string
  981. list.toString = function toString() {
  982. return this.map(function (item) {
  983. var content = cssWithMappingToString(item, useSourceMap);
  984. if (item[2]) {
  985. return '@media ' + item[2] + '{' + content + '}';
  986. } else {
  987. return content;
  988. }
  989. }).join('');
  990. }; // import a list of modules into the list
  991. list.i = function (modules, mediaQuery) {
  992. if (typeof modules === 'string') {
  993. modules = [[null, modules, '']];
  994. }
  995. var alreadyImportedModules = {};
  996. for (var i = 0; i < this.length; i++) {
  997. var id = this[i][0];
  998. if (id != null) {
  999. alreadyImportedModules[id] = true;
  1000. }
  1001. }
  1002. for (i = 0; i < modules.length; i++) {
  1003. var item = modules[i]; // skip already imported module
  1004. // this implementation is not 100% perfect for weird media query combinations
  1005. // when a module is imported multiple times with different media queries.
  1006. // I hope this will never occur (Hey this way we have smaller bundles)
  1007. if (item[0] == null || !alreadyImportedModules[item[0]]) {
  1008. if (mediaQuery && !item[2]) {
  1009. item[2] = mediaQuery;
  1010. } else if (mediaQuery) {
  1011. item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';
  1012. }
  1013. list.push(item);
  1014. }
  1015. }
  1016. };
  1017. return list;
  1018. };
  1019. function cssWithMappingToString(item, useSourceMap) {
  1020. var content = item[1] || '';
  1021. var cssMapping = item[3];
  1022. if (!cssMapping) {
  1023. return content;
  1024. }
  1025. if (useSourceMap && typeof btoa === 'function') {
  1026. var sourceMapping = toComment(cssMapping);
  1027. var sourceURLs = cssMapping.sources.map(function (source) {
  1028. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';
  1029. });
  1030. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  1031. }
  1032. return [content].join('\n');
  1033. } // Adapted from convert-source-map (MIT)
  1034. function toComment(sourceMap) {
  1035. // eslint-disable-next-line no-undef
  1036. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  1037. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  1038. return '/*# ' + data + ' */';
  1039. }
  1040. /***/ }),
  1041. /***/ 6:
  1042. /***/ (function(module, exports, __webpack_require__) {
  1043. /*
  1044. MIT License http://www.opensource.org/licenses/mit-license.php
  1045. Author Tobias Koppers @sokra
  1046. */
  1047. var stylesInDom = {};
  1048. var memoize = function (fn) {
  1049. var memo;
  1050. return function () {
  1051. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  1052. return memo;
  1053. };
  1054. };
  1055. var isOldIE = memoize(function () {
  1056. // Test for IE <= 9 as proposed by Browserhacks
  1057. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  1058. // Tests for existence of standard globals is to allow style-loader
  1059. // to operate correctly into non-standard environments
  1060. // @see https://github.com/webpack-contrib/style-loader/issues/177
  1061. return window && document && document.all && !window.atob;
  1062. });
  1063. var getTarget = function (target, parent) {
  1064. if (parent){
  1065. return parent.querySelector(target);
  1066. }
  1067. return document.querySelector(target);
  1068. };
  1069. var getElement = (function (fn) {
  1070. var memo = {};
  1071. return function(target, parent) {
  1072. // If passing function in options, then use it for resolve "head" element.
  1073. // Useful for Shadow Root style i.e
  1074. // {
  1075. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  1076. // }
  1077. if (typeof target === 'function') {
  1078. return target();
  1079. }
  1080. if (typeof memo[target] === "undefined") {
  1081. var styleTarget = getTarget.call(this, target, parent);
  1082. // Special case to return head of iframe instead of iframe itself
  1083. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  1084. try {
  1085. // This will throw an exception if access to iframe is blocked
  1086. // due to cross-origin restrictions
  1087. styleTarget = styleTarget.contentDocument.head;
  1088. } catch(e) {
  1089. styleTarget = null;
  1090. }
  1091. }
  1092. memo[target] = styleTarget;
  1093. }
  1094. return memo[target]
  1095. };
  1096. })();
  1097. var singleton = null;
  1098. var singletonCounter = 0;
  1099. var stylesInsertedAtTop = [];
  1100. var fixUrls = __webpack_require__(12);
  1101. module.exports = function(list, options) {
  1102. if (typeof DEBUG !== "undefined" && DEBUG) {
  1103. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  1104. }
  1105. options = options || {};
  1106. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  1107. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  1108. // tags it will allow on a page
  1109. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  1110. // By default, add <style> tags to the <head> element
  1111. if (!options.insertInto) options.insertInto = "head";
  1112. // By default, add <style> tags to the bottom of the target
  1113. if (!options.insertAt) options.insertAt = "bottom";
  1114. var styles = listToStyles(list, options);
  1115. addStylesToDom(styles, options);
  1116. return function update (newList) {
  1117. var mayRemove = [];
  1118. for (var i = 0; i < styles.length; i++) {
  1119. var item = styles[i];
  1120. var domStyle = stylesInDom[item.id];
  1121. domStyle.refs--;
  1122. mayRemove.push(domStyle);
  1123. }
  1124. if(newList) {
  1125. var newStyles = listToStyles(newList, options);
  1126. addStylesToDom(newStyles, options);
  1127. }
  1128. for (var i = 0; i < mayRemove.length; i++) {
  1129. var domStyle = mayRemove[i];
  1130. if(domStyle.refs === 0) {
  1131. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  1132. delete stylesInDom[domStyle.id];
  1133. }
  1134. }
  1135. };
  1136. };
  1137. function addStylesToDom (styles, options) {
  1138. for (var i = 0; i < styles.length; i++) {
  1139. var item = styles[i];
  1140. var domStyle = stylesInDom[item.id];
  1141. if(domStyle) {
  1142. domStyle.refs++;
  1143. for(var j = 0; j < domStyle.parts.length; j++) {
  1144. domStyle.parts[j](item.parts[j]);
  1145. }
  1146. for(; j < item.parts.length; j++) {
  1147. domStyle.parts.push(addStyle(item.parts[j], options));
  1148. }
  1149. } else {
  1150. var parts = [];
  1151. for(var j = 0; j < item.parts.length; j++) {
  1152. parts.push(addStyle(item.parts[j], options));
  1153. }
  1154. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  1155. }
  1156. }
  1157. }
  1158. function listToStyles (list, options) {
  1159. var styles = [];
  1160. var newStyles = {};
  1161. for (var i = 0; i < list.length; i++) {
  1162. var item = list[i];
  1163. var id = options.base ? item[0] + options.base : item[0];
  1164. var css = item[1];
  1165. var media = item[2];
  1166. var sourceMap = item[3];
  1167. var part = {css: css, media: media, sourceMap: sourceMap};
  1168. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  1169. else newStyles[id].parts.push(part);
  1170. }
  1171. return styles;
  1172. }
  1173. function insertStyleElement (options, style) {
  1174. var target = getElement(options.insertInto)
  1175. if (!target) {
  1176. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  1177. }
  1178. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  1179. if (options.insertAt === "top") {
  1180. if (!lastStyleElementInsertedAtTop) {
  1181. target.insertBefore(style, target.firstChild);
  1182. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  1183. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  1184. } else {
  1185. target.appendChild(style);
  1186. }
  1187. stylesInsertedAtTop.push(style);
  1188. } else if (options.insertAt === "bottom") {
  1189. target.appendChild(style);
  1190. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  1191. var nextSibling = getElement(options.insertAt.before, target);
  1192. target.insertBefore(style, nextSibling);
  1193. } else {
  1194. throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
  1195. }
  1196. }
  1197. function removeStyleElement (style) {
  1198. if (style.parentNode === null) return false;
  1199. style.parentNode.removeChild(style);
  1200. var idx = stylesInsertedAtTop.indexOf(style);
  1201. if(idx >= 0) {
  1202. stylesInsertedAtTop.splice(idx, 1);
  1203. }
  1204. }
  1205. function createStyleElement (options) {
  1206. var style = document.createElement("style");
  1207. if(options.attrs.type === undefined) {
  1208. options.attrs.type = "text/css";
  1209. }
  1210. if(options.attrs.nonce === undefined) {
  1211. var nonce = getNonce();
  1212. if (nonce) {
  1213. options.attrs.nonce = nonce;
  1214. }
  1215. }
  1216. addAttrs(style, options.attrs);
  1217. insertStyleElement(options, style);
  1218. return style;
  1219. }
  1220. function createLinkElement (options) {
  1221. var link = document.createElement("link");
  1222. if(options.attrs.type === undefined) {
  1223. options.attrs.type = "text/css";
  1224. }
  1225. options.attrs.rel = "stylesheet";
  1226. addAttrs(link, options.attrs);
  1227. insertStyleElement(options, link);
  1228. return link;
  1229. }
  1230. function addAttrs (el, attrs) {
  1231. Object.keys(attrs).forEach(function (key) {
  1232. el.setAttribute(key, attrs[key]);
  1233. });
  1234. }
  1235. function getNonce() {
  1236. if (false) {}
  1237. return __webpack_require__.nc;
  1238. }
  1239. function addStyle (obj, options) {
  1240. var style, update, remove, result;
  1241. // If a transform function was defined, run it on the css
  1242. if (options.transform && obj.css) {
  1243. result = typeof options.transform === 'function'
  1244. ? options.transform(obj.css)
  1245. : options.transform.default(obj.css);
  1246. if (result) {
  1247. // If transform returns a value, use that instead of the original css.
  1248. // This allows running runtime transformations on the css.
  1249. obj.css = result;
  1250. } else {
  1251. // If the transform function returns a falsy value, don't add this css.
  1252. // This allows conditional loading of css
  1253. return function() {
  1254. // noop
  1255. };
  1256. }
  1257. }
  1258. if (options.singleton) {
  1259. var styleIndex = singletonCounter++;
  1260. style = singleton || (singleton = createStyleElement(options));
  1261. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  1262. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  1263. } else if (
  1264. obj.sourceMap &&
  1265. typeof URL === "function" &&
  1266. typeof URL.createObjectURL === "function" &&
  1267. typeof URL.revokeObjectURL === "function" &&
  1268. typeof Blob === "function" &&
  1269. typeof btoa === "function"
  1270. ) {
  1271. style = createLinkElement(options);
  1272. update = updateLink.bind(null, style, options);
  1273. remove = function () {
  1274. removeStyleElement(style);
  1275. if(style.href) URL.revokeObjectURL(style.href);
  1276. };
  1277. } else {
  1278. style = createStyleElement(options);
  1279. update = applyToTag.bind(null, style);
  1280. remove = function () {
  1281. removeStyleElement(style);
  1282. };
  1283. }
  1284. update(obj);
  1285. return function updateStyle (newObj) {
  1286. if (newObj) {
  1287. if (
  1288. newObj.css === obj.css &&
  1289. newObj.media === obj.media &&
  1290. newObj.sourceMap === obj.sourceMap
  1291. ) {
  1292. return;
  1293. }
  1294. update(obj = newObj);
  1295. } else {
  1296. remove();
  1297. }
  1298. };
  1299. }
  1300. var replaceText = (function () {
  1301. var textStore = [];
  1302. return function (index, replacement) {
  1303. textStore[index] = replacement;
  1304. return textStore.filter(Boolean).join('\n');
  1305. };
  1306. })();
  1307. function applyToSingletonTag (style, index, remove, obj) {
  1308. var css = remove ? "" : obj.css;
  1309. if (style.styleSheet) {
  1310. style.styleSheet.cssText = replaceText(index, css);
  1311. } else {
  1312. var cssNode = document.createTextNode(css);
  1313. var childNodes = style.childNodes;
  1314. if (childNodes[index]) style.removeChild(childNodes[index]);
  1315. if (childNodes.length) {
  1316. style.insertBefore(cssNode, childNodes[index]);
  1317. } else {
  1318. style.appendChild(cssNode);
  1319. }
  1320. }
  1321. }
  1322. function applyToTag (style, obj) {
  1323. var css = obj.css;
  1324. var media = obj.media;
  1325. if(media) {
  1326. style.setAttribute("media", media)
  1327. }
  1328. if(style.styleSheet) {
  1329. style.styleSheet.cssText = css;
  1330. } else {
  1331. while(style.firstChild) {
  1332. style.removeChild(style.firstChild);
  1333. }
  1334. style.appendChild(document.createTextNode(css));
  1335. }
  1336. }
  1337. function updateLink (link, options, obj) {
  1338. var css = obj.css;
  1339. var sourceMap = obj.sourceMap;
  1340. /*
  1341. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  1342. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  1343. on by default. Otherwise default to the convertToAbsoluteUrls option
  1344. directly
  1345. */
  1346. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  1347. if (options.convertToAbsoluteUrls || autoFixUrls) {
  1348. css = fixUrls(css);
  1349. }
  1350. if (sourceMap) {
  1351. // http://stackoverflow.com/a/26603875
  1352. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  1353. }
  1354. var blob = new Blob([css], { type: "text/css" });
  1355. var oldSrc = link.href;
  1356. link.href = URL.createObjectURL(blob);
  1357. if(oldSrc) URL.revokeObjectURL(oldSrc);
  1358. }
  1359. /***/ }),
  1360. /***/ 69:
  1361. /***/ (function(module, exports, __webpack_require__) {
  1362. "use strict";
  1363. exports.__esModule = true;
  1364. exports.route = route;
  1365. exports.functionalRoute = functionalRoute;
  1366. exports.routeProps = void 0;
  1367. /**
  1368. * Vue Router support
  1369. */
  1370. function isRedundantNavigation(err) {
  1371. return err.name === 'NavigationDuplicated' || // compatible with vue-router@3.3
  1372. err.message && err.message.indexOf('redundant navigation') !== -1;
  1373. }
  1374. function route(router, config) {
  1375. var to = config.to,
  1376. url = config.url,
  1377. replace = config.replace;
  1378. if (to && router) {
  1379. var promise = router[replace ? 'replace' : 'push'](to);
  1380. /* istanbul ignore else */
  1381. if (promise && promise.catch) {
  1382. promise.catch(function (err) {
  1383. if (err && !isRedundantNavigation(err)) {
  1384. throw err;
  1385. }
  1386. });
  1387. }
  1388. } else if (url) {
  1389. replace ? location.replace(url) : location.href = url;
  1390. }
  1391. }
  1392. function functionalRoute(context) {
  1393. route(context.parent && context.parent.$router, context.props);
  1394. }
  1395. var routeProps = {
  1396. url: String,
  1397. replace: Boolean,
  1398. to: [String, Object]
  1399. };
  1400. exports.routeProps = routeProps;
  1401. /***/ }),
  1402. /***/ 9:
  1403. /***/ (function(module, exports, __webpack_require__) {
  1404. "use strict";
  1405. exports.__esModule = true;
  1406. exports.camelize = camelize;
  1407. exports.padZero = padZero;
  1408. var camelizeRE = /-(\w)/g;
  1409. function camelize(str) {
  1410. return str.replace(camelizeRE, function (_, c) {
  1411. return c.toUpperCase();
  1412. });
  1413. }
  1414. function padZero(num, targetLength) {
  1415. if (targetLength === void 0) {
  1416. targetLength = 2;
  1417. }
  1418. var str = num + '';
  1419. while (str.length < targetLength) {
  1420. str = '0' + str;
  1421. }
  1422. return str;
  1423. }
  1424. /***/ })
  1425. /******/ });