bkui-vue 0.0.1-beta.10 → 0.0.1-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/dist/bkui-vue.cjs.js +5628 -472
  2. package/dist/bkui-vue.esm.js +5620 -474
  3. package/dist/bkui-vue.umd.js +5628 -472
  4. package/dist/style.css +1858 -16
  5. package/lib/alert/alert.variable.css +16 -0
  6. package/lib/alert/index.js +1 -1
  7. package/lib/animate-number/index.js +1 -1
  8. package/lib/backtop/backtop.variable.css +16 -0
  9. package/lib/backtop/index.js +1 -1
  10. package/lib/badge/badge.variable.css +16 -0
  11. package/lib/badge/index.js +1 -1
  12. package/lib/breadcrumb/breadcrumb.variable.css +16 -0
  13. package/lib/breadcrumb/index.d.ts +1 -1
  14. package/lib/breadcrumb/index.js +1 -1
  15. package/lib/button/button.d.ts +12 -12
  16. package/lib/button/button.less +6 -6
  17. package/lib/button/button.variable.css +16 -0
  18. package/lib/button/index.d.ts +16 -19
  19. package/lib/button/index.js +1 -1
  20. package/lib/card/card.variable.css +16 -0
  21. package/lib/card/index.js +1 -1
  22. package/lib/checkbox/checkbox.variable.css +16 -0
  23. package/lib/checkbox/index.d.ts +1 -1
  24. package/lib/checkbox/index.js +1 -1
  25. package/lib/checkbox/type.d.ts +1 -1
  26. package/lib/collapse/collapse.css +8 -0
  27. package/lib/collapse/collapse.less +10 -0
  28. package/lib/collapse/collapse.variable.css +8 -0
  29. package/lib/collapse/index.js +1 -1
  30. package/lib/components.d.ts +6 -1
  31. package/lib/date-picker/date-picker.css +407 -0
  32. package/lib/date-picker/date-picker.d.ts +357 -0
  33. package/lib/date-picker/date-picker.less +526 -0
  34. package/lib/date-picker/date-picker.variable.css +493 -0
  35. package/lib/date-picker/fecha.d.ts +6 -0
  36. package/lib/date-picker/index.d.ts +525 -0
  37. package/lib/date-picker/index.js +1 -0
  38. package/lib/date-picker/interface.d.ts +22 -0
  39. package/lib/date-picker/utils.d.ts +97 -0
  40. package/lib/dialog/index.js +1 -1
  41. package/lib/directives/index.d.ts +1 -0
  42. package/lib/directives/index.js +14 -14
  43. package/lib/directives/tooltips.d.ts +17 -0
  44. package/lib/divider/divider.css +38 -0
  45. package/lib/divider/divider.d.ts +40 -0
  46. package/lib/divider/divider.less +53 -0
  47. package/lib/divider/divider.variable.css +124 -0
  48. package/lib/divider/index.d.ts +110 -0
  49. package/lib/divider/index.js +1 -0
  50. package/lib/dropdown/dropdown-item.d.ts +18 -0
  51. package/lib/dropdown/dropdown-menu.d.ts +15 -0
  52. package/lib/dropdown/dropdown.css +43 -0
  53. package/lib/dropdown/dropdown.d.ts +49 -0
  54. package/lib/dropdown/dropdown.less +54 -0
  55. package/lib/dropdown/dropdown.variable.css +129 -0
  56. package/lib/dropdown/index.d.ts +160 -0
  57. package/lib/dropdown/index.js +1 -0
  58. package/lib/exception/exception.variable.css +16 -0
  59. package/lib/exception/index.js +1 -1
  60. package/lib/fixed-navbar/fixed-navbar.variable.css +16 -0
  61. package/lib/fixed-navbar/index.js +1 -1
  62. package/lib/form/common.d.ts +3 -0
  63. package/lib/form/form-item.d.ts +140 -0
  64. package/lib/form/form.css +39 -0
  65. package/lib/form/form.d.ts +76 -0
  66. package/lib/form/form.less +50 -0
  67. package/lib/form/form.variable.css +39 -0
  68. package/lib/form/index.d.ts +4 -0
  69. package/lib/form/index.js +1 -0
  70. package/lib/form/type.d.ts +21 -0
  71. package/lib/form/validator.d.ts +8 -0
  72. package/lib/icon/angle-double-left.d.ts +4 -0
  73. package/lib/icon/angle-double-right.d.ts +4 -0
  74. package/lib/icon/angle-down-line.d.ts +4 -0
  75. package/lib/icon/angle-down.d.ts +4 -0
  76. package/lib/icon/angle-left.d.ts +4 -0
  77. package/lib/icon/angle-right.d.ts +4 -0
  78. package/lib/icon/circle.d.ts +4 -0
  79. package/lib/icon/code.d.ts +4 -0
  80. package/lib/icon/cog-shape.d.ts +4 -0
  81. package/lib/icon/collapse-left.d.ts +4 -0
  82. package/lib/icon/copy.d.ts +4 -0
  83. package/lib/icon/done.d.ts +4 -0
  84. package/lib/icon/down-shape.d.ts +4 -0
  85. package/lib/icon/error.d.ts +4 -0
  86. package/lib/icon/folder-open.d.ts +4 -0
  87. package/lib/icon/folder-shape-open.d.ts +4 -0
  88. package/lib/icon/folder-shape.d.ts +4 -0
  89. package/lib/icon/folder.d.ts +4 -0
  90. package/lib/icon/index.d.ts +27 -0
  91. package/lib/icon/index.js +1 -1
  92. package/lib/icon/info.d.ts +4 -0
  93. package/lib/icon/play-shape.d.ts +4 -0
  94. package/lib/icon/plus.d.ts +4 -0
  95. package/lib/icon/right-shape.d.ts +4 -0
  96. package/lib/icon/share.d.ts +4 -0
  97. package/lib/icon/success.d.ts +4 -0
  98. package/lib/icon/text-file.d.ts +4 -0
  99. package/lib/icon/tree-application-shape.d.ts +4 -0
  100. package/lib/icon/warn.d.ts +4 -0
  101. package/lib/index.d.ts +1 -0
  102. package/lib/input/index.d.ts +36 -36
  103. package/lib/input/index.js +1 -1
  104. package/lib/input/input.d.ts +10 -10
  105. package/lib/input/input.variable.css +16 -0
  106. package/lib/link/index.js +1 -1
  107. package/lib/link/link.variable.css +16 -0
  108. package/lib/loading/index.d.ts +21 -4
  109. package/lib/loading/index.js +1 -1
  110. package/lib/loading/loading.d.ts +13 -2
  111. package/lib/loading/loading.variable.css +16 -0
  112. package/lib/menu/index.d.ts +169 -0
  113. package/lib/menu/index.js +1 -0
  114. package/lib/menu/menu-group.d.ts +13 -0
  115. package/lib/menu/menu-item.d.ts +15 -0
  116. package/lib/menu/menu.css +182 -0
  117. package/lib/menu/menu.d.ts +60 -0
  118. package/lib/menu/menu.less +180 -0
  119. package/lib/menu/menu.variable.css +268 -0
  120. package/lib/menu/submenu.d.ts +21 -0
  121. package/lib/menu/submenu.less +5 -0
  122. package/lib/menu/submenu.variable.css +86 -0
  123. package/lib/menu/utils.d.ts +41 -0
  124. package/lib/message/index.d.ts +1 -1
  125. package/lib/message/index.js +1 -1
  126. package/lib/message/message.css +17 -0
  127. package/lib/message/message.less +18 -0
  128. package/lib/message/message.variable.css +33 -0
  129. package/lib/message/messageConstructor.d.ts +12 -6
  130. package/lib/modal/index.js +1 -1
  131. package/lib/navigation/index.d.ts +2 -0
  132. package/lib/navigation/index.js +1 -0
  133. package/lib/navigation/navigation-title.d.ts +22 -0
  134. package/lib/navigation/navigation.css +184 -0
  135. package/lib/navigation/navigation.d.ts +94 -0
  136. package/lib/navigation/navigation.less +210 -0
  137. package/lib/navigation/navigation.variable.css +270 -0
  138. package/lib/notify/index.d.ts +2 -0
  139. package/lib/notify/index.js +1 -0
  140. package/lib/notify/notify.css +49 -0
  141. package/lib/notify/notify.less +58 -0
  142. package/lib/notify/notify.variable.css +135 -0
  143. package/lib/notify/notifyConstructor.d.ts +75 -0
  144. package/lib/popover/index.d.ts +19 -19
  145. package/lib/popover/index.js +1 -1
  146. package/lib/popover/popover.css +2 -3
  147. package/lib/popover/popover.d.ts +8 -8
  148. package/lib/popover/popover.less +2 -3
  149. package/lib/popover/popover.variable.css +18 -3
  150. package/lib/preset.d.ts +2 -3
  151. package/lib/process/index.d.ts +145 -0
  152. package/lib/process/index.js +15 -0
  153. package/lib/process/process.css +139 -0
  154. package/lib/process/process.d.ts +116 -0
  155. package/lib/process/process.less +179 -0
  156. package/lib/process/process.variable.css +225 -0
  157. package/lib/progress/index.d.ts +4 -4
  158. package/lib/progress/index.js +1 -1
  159. package/lib/progress/progress.d.ts +1 -1
  160. package/lib/progress/progress.variable.css +16 -0
  161. package/lib/radio/index.d.ts +2 -2
  162. package/lib/radio/index.js +1 -1
  163. package/lib/radio/radio.css +6 -0
  164. package/lib/radio/radio.less +7 -0
  165. package/lib/radio/radio.variable.css +22 -0
  166. package/lib/rate/index.js +1 -1
  167. package/lib/rate/star.d.ts +2 -2
  168. package/lib/select/common.d.ts +4 -3
  169. package/lib/select/index.d.ts +211 -60
  170. package/lib/select/index.js +15 -1
  171. package/lib/select/option.d.ts +2 -2
  172. package/lib/select/optionGroup.d.ts +115 -0
  173. package/lib/select/select.css +52 -12
  174. package/lib/select/select.d.ts +24 -21
  175. package/lib/select/select.less +73 -7
  176. package/lib/select/select.variable.css +68 -12
  177. package/lib/shared/bk-popover.d.ts +11 -1
  178. package/lib/shared/index.d.ts +7 -0
  179. package/lib/shared/index.js +1 -1
  180. package/lib/shared/vue-types.d.ts +1 -0
  181. package/lib/shared/z-index-manager.d.ts +6 -1
  182. package/lib/sideslider/index.js +1 -1
  183. package/lib/sideslider/sideslider.variable.css +16 -0
  184. package/lib/slider/index.d.ts +27 -0
  185. package/lib/slider/index.js +15 -0
  186. package/lib/slider/slider-button.d.ts +72 -0
  187. package/lib/slider/slider.css +149 -0
  188. package/lib/slider/slider.d.ts +159 -0
  189. package/lib/slider/slider.less +179 -0
  190. package/lib/slider/slider.variable.css +235 -0
  191. package/lib/steps/index.d.ts +15 -15
  192. package/lib/steps/index.js +2 -2
  193. package/lib/steps/steps.css +1 -1
  194. package/lib/steps/steps.d.ts +4 -4
  195. package/lib/steps/steps.less +1 -1
  196. package/lib/steps/steps.variable.css +17 -1
  197. package/lib/styles/index.d.ts +12 -0
  198. package/lib/styles/index.js +1 -1
  199. package/lib/styles/mixins/popper.css +43 -0
  200. package/lib/styles/mixins/popper.less +52 -0
  201. package/lib/styles/mixins/popper.variable.css +43 -0
  202. package/lib/styles/mixins/size.less +9 -0
  203. package/lib/styles/reset.css +273 -0
  204. package/lib/styles/reset.less +313 -0
  205. package/lib/styles/reset.variable.css +273 -0
  206. package/lib/styles/themes/themes.less +26 -1
  207. package/lib/switcher/index.js +1 -1
  208. package/lib/switcher/switcher.variable.css +16 -0
  209. package/lib/tab/index.d.ts +416 -0
  210. package/lib/tab/index.js +1 -0
  211. package/lib/tab/tab-nav.d.ts +154 -0
  212. package/lib/tab/tab-panel.d.ts +46 -0
  213. package/lib/tab/tab.css +147 -0
  214. package/lib/tab/tab.d.ts +131 -0
  215. package/lib/tab/tab.less +221 -0
  216. package/lib/tab/tab.variable.css +233 -0
  217. package/lib/table/index.d.ts +71 -60
  218. package/lib/table/index.js +1 -1
  219. package/lib/table/props.d.ts +41 -0
  220. package/lib/table/render.d.ts +47 -0
  221. package/lib/table/table.css +44 -0
  222. package/lib/table/table.d.ts +22 -63
  223. package/lib/table/table.less +63 -1
  224. package/lib/table/table.variable.css +60 -0
  225. package/lib/table/utils.d.ts +22 -0
  226. package/lib/tag/index.js +1 -1
  227. package/lib/tag/tag.variable.css +16 -0
  228. package/lib/tree/index.d.ts +149 -0
  229. package/lib/tree/index.js +1 -0
  230. package/lib/tree/tree.css +35 -0
  231. package/lib/tree/tree.d.ts +58 -0
  232. package/lib/tree/tree.less +55 -0
  233. package/lib/tree/tree.variable.css +35 -0
  234. package/lib/tree/util.d.ts +89 -0
  235. package/lib/use-message.d.ts +2 -0
  236. package/package.json +9 -1
  237. package/lib/message/message.d.ts +0 -2
  238. package/lib/table/common.d.ts +0 -3
  239. package/lib/table/table-layout.d.ts +0 -14
  240. package/lib/table/type.d.ts +0 -12
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../directives"),require("../shared"),require("@bkui-vue/icon")):"function"==typeof define&&define.amd?define(["exports","vue","../directives","../shared","@bkui-vue/icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Directives,e.Shared,e["@bkui-vue/icon/icons"])}(this,(function(e,t,n,r,a){"use strict";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i={exports:{}},l={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0}(l);var u={exports:{}};!function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}},e.exports.default=e.exports,e.exports.__esModule=!0}(u);var s={exports:{}},c={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0}(c),function(e){var t=c.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0}(s);var d={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(d),function(e){var t=l.exports,n=u.exports,r=s.exports,a=d.exports;e.exports=function(e,o){return t(e)||n(e,o)||r(e,o)||a()},e.exports.default=e.exports,e.exports.__esModule=!0}(i);var f=o(i.exports),h={exports:{}},p={exports:{}};!function(e){var t=c.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(p);var m={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(m);var g={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(g),function(e){var t=p.exports,n=m.exports,r=s.exports,a=g.exports;e.exports=function(e){return t(e)||n(e)||r(e)||a()},e.exports.default=e.exports,e.exports.__esModule=!0}(h);var y=o(h.exports),v={exports:{}};!function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}(v);var b=o(v.exports);function w(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function D(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function k(e){D(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function M(e,t){D(2,arguments);var n=k(e).getTime(),r=w(t);return new Date(n+r)}function x(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function S(e){return D(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function T(e){if(D(1,arguments),!S(e)&&"number"!=typeof e)return!1;var t=k(e);return!isNaN(Number(t))}var C={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},P=function(e,t,n){var r,a=C[e];return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function V(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var N={date:V({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:V({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:V({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},O={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},F=function(e,t,n,r){return O[e]};function L(e){return function(t,n){var r,a=n||{};if("formatting"===(a.context?String(a.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=a.width?String(a.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var l=e.defaultWidth,u=a.width?String(a.width):e.defaultWidth;r=e.values[u]||e.values[l]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var H={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:L({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:L({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:L({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:L({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:L({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function U(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var i,l=o[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(u)?A(u,(function(e){return e.test(l)})):Y(u,(function(e){return e.test(l)}));i=e.valueCallback?e.valueCallback(s):s,i=n.valueCallback?n.valueCallback(i):i;var c=t.slice(l.length);return{value:i,rest:c}}}function Y(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function A(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var j,R={ordinalNumber:(j={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(j.matchPattern);if(!n)return null;var r=n[0],a=e.match(j.parsePattern);if(!a)return null;var o=j.valueCallback?j.valueCallback(a[0]):a[0];o=t.valueCallback?t.valueCallback(o):o;var i=e.slice(r.length);return{value:o,rest:i}}),era:U({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:U({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:U({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:U({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:U({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},B={code:"en-US",formatDistance:P,formatLong:N,formatRelative:F,localize:H,match:R,options:{weekStartsOn:0,firstWeekContainsDate:1}};function z(e,t){D(2,arguments);var n=w(t);return M(e,-n)}function W(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var E={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return W("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):W(n+1,2)},d:function(e,t){return W(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return W(e.getUTCHours()%12||12,t.length)},H:function(e,t){return W(e.getUTCHours(),t.length)},m:function(e,t){return W(e.getUTCMinutes(),t.length)},s:function(e,t){return W(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return W(Math.floor(r*Math.pow(10,n-3)),t.length)}},q=E,_=864e5;function I(e){D(1,arguments);var t=1,n=k(e),r=n.getUTCDay(),a=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}function J(e){D(1,arguments);var t=k(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var a=I(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var i=I(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Q(e){D(1,arguments);var t=J(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=I(n);return r}var G=6048e5;function X(e,t){D(1,arguments);var n=t||{},r=n.locale,a=r&&r.options&&r.options.weekStartsOn,o=null==a?0:w(a),i=null==n.weekStartsOn?o:w(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=k(e),u=l.getUTCDay(),s=(u<i?7:0)+u-i;return l.setUTCDate(l.getUTCDate()-s),l.setUTCHours(0,0,0,0),l}function Z(e,t){D(1,arguments);var n=k(e,t),r=n.getUTCFullYear(),a=t||{},o=a.locale,i=o&&o.options&&o.options.firstWeekContainsDate,l=null==i?1:w(i),u=null==a.firstWeekContainsDate?l:w(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var s=new Date(0);s.setUTCFullYear(r+1,0,u),s.setUTCHours(0,0,0,0);var c=X(s,t),d=new Date(0);d.setUTCFullYear(r,0,u),d.setUTCHours(0,0,0,0);var f=X(d,t);return n.getTime()>=c.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function $(e,t){D(1,arguments);var n=t||{},r=n.locale,a=r&&r.options&&r.options.firstWeekContainsDate,o=null==a?1:w(a),i=null==n.firstWeekContainsDate?o:w(n.firstWeekContainsDate),l=Z(e,t),u=new Date(0);u.setUTCFullYear(l,0,i),u.setUTCHours(0,0,0,0);var s=X(u,t);return s}var K=6048e5;var ee="midnight",te="noon",ne="morning",re="afternoon",ae="evening",oe="night",ie={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return q.y(e,t)},Y:function(e,t,n,r){var a=Z(e,r),o=a>0?a:1-a;return"YY"===t?W(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):W(o,t.length)},R:function(e,t){return W(J(e),t.length)},u:function(e,t){return W(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return W(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return W(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return q.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return W(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=function(e,t){D(1,arguments);var n=k(e),r=X(n,t).getTime()-$(n,t).getTime();return Math.round(r/K)+1}(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):W(a,t.length)},I:function(e,t,n){var r=function(e){D(1,arguments);var t=k(e),n=I(t).getTime()-Q(t).getTime();return Math.round(n/G)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):W(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):q.d(e,t)},D:function(e,t,n){var r=function(e){D(1,arguments);var t=k(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),a=n-r;return Math.floor(a/_)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):W(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return W(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return W(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return W(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,a=e.getUTCHours();switch(r=12===a?te:0===a?ee:a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,a=e.getUTCHours();switch(r=a>=17?ae:a>=12?re:a>=4?ne:oe,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return q.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):q.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):W(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):W(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):q.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):q.s(e,t)},S:function(e,t){return q.S(e,t)},X:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return ue(a);case"XXXX":case"XX":return se(a);default:return se(a,":")}},x:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return ue(a);case"xxxx":case"xx":return se(a);default:return se(a,":")}},O:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+le(a,":");default:return"GMT"+se(a,":")}},z:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+le(a,":");default:return"GMT"+se(a,":")}},t:function(e,t,n,r){var a=r._originalDate||e;return W(Math.floor(a.getTime()/1e3),t.length)},T:function(e,t,n,r){return W((r._originalDate||e).getTime(),t.length)}};function le(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),o=r%60;if(0===o)return n+String(a);var i=t||"";return n+String(a)+i+W(o,2)}function ue(e,t){return e%60==0?(e>0?"-":"+")+W(Math.abs(e)/60,2):se(e,t)}function se(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e);return r+W(Math.floor(a/60),2)+n+W(a%60,2)}var ce=ie;function de(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function fe(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var he={p:fe,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),a=r[1],o=r[2];if(!o)return de(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",de(a,t)).replace("{{time}}",fe(o,t))}},pe=he,me=["D","DD"],ge=["YY","YYYY"];function ye(e){return-1!==me.indexOf(e)}function ve(e){return-1!==ge.indexOf(e)}function be(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var we=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,De=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ke=/^'([^]*?)'?$/,Me=/''/g,xe=/[a-zA-Z]/;function Se(e){return e.match(ke)[1].replace(Me,"'")}var Te={},Ce=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Pe=/\d\d?/,Ve=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Ne=function(){};function Oe(e,t){for(var n=[],r=0,a=e.length;r<a;r++)n.push(e[r].substr(0,t));return n}function Fe(e){return function(t,n,r){var a=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~a&&(t.month=a)}}function Le(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=String(e);n.length<t;)n="0".concat(n);return n}var He=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ue=["January","February","March","April","May","June","July","August","September","October","November","December"],Ye=Oe(Ue,3),Ae=Oe(He,3);Te.i18n={dayNamesShort:Ae,dayNames:He,monthNamesShort:Ye,monthNames:Ue,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10)*e%10]}};var je={D:function(e){return e.getDay()},DD:function(e){return Le(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return Le(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return Le(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return String(e.getFullYear()).substr(2)},yyyy:function(e){return e.getFullYear()},h:function(e){return e.getHours()%12||12},hh:function(e){return Le(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return Le(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return Le(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return Le(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return Le(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return Le(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+Le(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},Re={d:[Pe,function(e,t){e.day=t}],M:[Pe,function(e,t){e.month=t-1}],yy:[Pe,function(e,t){var n=new Date,r=+"".concat(n.getFullYear()).substr(0,2);e.year="".concat(t>68?r-1:r).concat(t)}],h:[Pe,function(e,t){e.hour=t}],m:[Pe,function(e,t){e.minute=t}],s:[Pe,function(e,t){e.second=t}],yyyy:[/\d{4}/,function(e,t){e.year=t}],S:[/\d/,function(e,t){e.millisecond=100*t}],SS:[/\d{2}/,function(e,t){e.millisecond=10*t}],SSS:[/\d{3}/,function(e,t){e.millisecond=t}],D:[Pe,Ne],ddd:[Ve,Ne],MMM:[Ve,Fe("monthNamesShort")],MMMM:[Ve,Fe("monthNames")],a:[Ve,function(e,t,n){var r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],ZZ:[/[\\+\\-]\d\d:?\d\d/,function(e,t){var n,r="".concat(t).match(/([\\+\\-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),e.timezoneOffset="+"===r[0]?n:-n)}]};Re.DD=Re.D,Re.dddd=Re.ddd,Re.Do=Re.dd=Re.d,Re.mm=Re.m,Re.hh=Re.H=Re.HH=Re.h,Re.MM=Re.M,Re.ss=Re.s,Re.A=Re.a,Te.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Te.format=function(e,t,n){var r=n||Te.i18n;if("number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");return(t=Te.masks[t]||t||Te.masks.default).replace(Ce,(function(t){return t in je?je[t](e,r):t.slice(1,t.length-1)}))},Te.parse=function(e,t,n){var r=n||Te.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=Te.masks[t]||t,e.length>1e3)return!1;var a=!0,o={};if(t.replace(Ce,(function(t){if(Re[t]){var n=Re[t],i=e.search(n[0]);~i?e.replace(n[0],(function(t){return n[1](o,t,r),e=e.substr(i+t.length),t})):a=!1}return Re[t]?"":t.slice(1,t.length-1)})),!a)return!1;var i,l=new Date;return!0===o.isPm&&null!==o.hour&&12!=+o.hour?o.hour=+o.hour+12:!1===o.isPm&&12==+o.hour&&(o.hour=0),null!==o.timezoneOffset&&void 0!==o.timezoneOffset?(o.minute=+(o.minute||0)-+o.timezoneOffset,i=new Date(Date.UTC(o.year||l.getFullYear(),o.month||0,o.day||1,o.hour||0,o.minute||0,o.second||0,o.millisecond||0))):i=new Date(o.year||l.getFullYear(),o.month||0,o.day||1,o.hour||0,o.minute||0,o.second||0,o.millisecond||0),i};var Be=" - ",ze=function(e,t){var n=k(new Date(e));return!n||isNaN(n.getTime())?"":function(e,t,n){D(2,arguments);var r=String(t),a=n||{},o=a.locale||B,i=o.options&&o.options.firstWeekContainsDate,l=null==i?1:w(i),u=null==a.firstWeekContainsDate?l:w(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var s=o.options&&o.options.weekStartsOn,c=null==s?0:w(s),d=null==a.weekStartsOn?c:w(a.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var f=k(e);if(!T(f))throw new RangeError("Invalid time value");var h=x(f),p=z(f,h),m={firstWeekContainsDate:u,weekStartsOn:d,locale:o,_originalDate:f};return r.match(De).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,pe[t])(e,o.formatLong,m):e})).join("").match(we).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return Se(n);var i=ce[r];if(i)return!a.useAdditionalWeekYearTokens&&ve(n)&&be(n,t,e),!a.useAdditionalDayOfYearTokens&&ye(n)&&be(n,t,e),i(p,n,o.localize,m);if(r.match(xe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}(n,t||"yyyy-MM-dd")},We=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],r=e[1];if(n&&r)return ze(n,t)+Be+ze(r,t)}else if(!Array.isArray(e)&&e instanceof Date)return ze(e,t);return""},Ee=function(e,t){var n=Array.isArray(e)?e:e.split(Be);if(2===n.length){var r=n[0],a=n[1];return[r instanceof Date?r:Te.parse(r,t||"yyyy-MM-dd"),a instanceof Date?a:Te.parse(a,t||"yyyy-MM-dd")]}return[]},qe={default:{formatter:function(e){return e?"".concat(e):""},parser:function(e){return void 0===e||""===e?null:e}},date:{formatter:function(e,t){return ze(e,t)},parser:function(e,t){return Te.parse(e,t||"yyyy-MM-dd")}},datetime:{formatter:function(e,t){return ze(e,t)},parser:function(e,t){return Te.parse(e,t||"yyyy-MM-dd")}},daterange:{formatter:We,parser:Ee},datetimerange:{formatter:We,parser:Ee},timerange:{formatter:We,parser:Ee},time:{formatter:function(e,t){return ze(e,t)},parser:function(e,t){return Te.parse(e,t||"yyyy-MM-dd")}},month:{formatter:function(e,t){return ze(e,t)},parser:function(e,t){return Te.parse(e,t||"yyyy-MM-dd")}},year:{formatter:function(e,t){return ze(e,t)},parser:function(e,t){return Te.parse(e,t||"yyyy-MM-dd")}},multiple:{formatter:function(e,t){return e.filter(Boolean).map((function(e){return ze(e,t)})).join(",")},parser:function(e,t){return("string"==typeof e?e.split(","):e).map((function(e){if(e instanceof Date)return e;var n=e;return"string"==typeof e?n=e.trim():"number"==typeof e||e||(n=""),Te.parse(n,t||"yyyy-MM-dd")}))}},number:{formatter:function(e){return e?"".concat(e):""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}}},_e=function(e){return e?[e.getHours(),e.getMinutes(),e.getSeconds()]:[0,0,0]},Ie={date:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",datetimerange:"yyyy-MM-dd HH:mm:ss"},Je=function(e,t,n,r){var a=t.includes("range"),o=(qe[t]||qe.default).parser,i=r||Ie[t],l=qe.multiple.parser,u=e;if(!e||"time"!==t||e instanceof Date)if(n&&e)u=l(e,i);else if(a)if(e)if("string"==typeof e)u=o(e,i);else if("timerange"===t)u=o(e,i).map((function(e){return e||""}));else{var s=f(e,2),c=s[0],d=s[1];c instanceof Date&&d instanceof Date?u=e.map((function(e){return new Date(e)})):"string"==typeof c&&"string"==typeof d?u=o(e.join(Be),i):c&&d||(u=[null,null])}else u=[null,null];else"string"==typeof e&&0!==t.indexOf("time")&&(u=o(e,i)||null);else u=o(e,i);return a||n?u||[]:[u]},Qe=function(e,t,n,r){var a=Ie[t];return n?(0,qe.multiple.formatter)(e,r||a):(0,(qe[t]||qe.default).formatter)(e,r||a)},Ge=Symbol("date-picker");function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return["bk-picker-panel-icon-btn","bk-date-picker-".concat(e,"-btn"),"bk-date-picker-".concat(e,"-btn-arrow").concat(t)]}var Ze,$e,Ke=function(e,t){var n,r=new Date(e),a=r.getMonth()+t,o=(n=r.getFullYear(),new Date(n,a+1,0).getDate());return o<r.getDate()&&r.setDate(o),r.setMonth(a),r},et=(Ze={yyyy:function(e){return e.getFullYear()},m:function(e){return e.getMonth()+1},mm:function(e){return"0".concat(e.getMonth()+1).slice(-2)},mmm:function(e,t){return e.toLocaleDateString(t,{month:"long"}).slice(0,3)},Mmm:function(e,t){var n=e.toLocaleDateString(t,{month:"long"});return(n[0].toUpperCase()+n.slice(1).toLowerCase()).slice(0,3)},mmmm:function(e,t){return e.toLocaleDateString(t,{month:"long"})},Mmmm:function(e,t){var n=e.toLocaleDateString(t,{month:"long"});return n[0].toUpperCase()+n.slice(1).toLowerCase()}},$e=new RegExp(["yyyy","Mmmm","mmmm","Mmm","mmm","mm","m"].join("|"),"g"),function(e,t,n){var r=t.match(/(\[[^\]]+\])([^\\[\]]+)(\[[^\]]+\])/).slice(1),a=r[1],o=[r[0],r[2]].map((function(t){var r=t.replace(/\[[^\]]+\]/,(function(t){return t.slice(1,-1).replace($e,(function(t){return Ze[t](n,e)}))}));return{label:r,type:-1!==t.indexOf("yy")?"year":"month"}}));return{separator:a,labels:o}}),tt=function(e){var t=new Date(e);return t.setHours(0,0,0,0),t.getTime()},nt=function(e,t,n){if(!t||!n)return!1;var r=[t,n].sort(),a=f(r,2),o=a[0],i=a[1];return e>=o&&e<=i},rt={placement:{type:String,default:"bottom-start",validator:function(e){return!(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)<0)||(console.error("placement property is not valid: '".concat(e,"'")),!1)}},className:{type:String},extPopoverCls:{type:String},appendToBody:{type:Boolean},triggerRef:{type:Object},onClick:Function},at=t.defineComponent({props:rt,emits:["changeVisible"],setup:function(e,n){var a=n.emit,o=Object.create(null),i=t.ref(null);t.onMounted((function(){u()})),t.onBeforeUnmount((function(){l()}));var l=function(){if(o&&0!==Object.keys(o).length){var e=o;e.isShow&&e.hide(),e.destroy(),o=null,a("changeVisible",!1)}},u=function(){o&&0!==Object.keys(o).length?t.nextTick((function(){o.update()})):t.nextTick((function(){o=new r.BKPopover(e.triggerRef,i.value,{placement:e.placement,trigger:"manual",modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},{name:"offset",options:{offset:[0,4]}}]})}))},s=t.computed((function(){var t={};return e.appendToBody&&(t["z-index"]=1060+r.bkZIndexManager.getModalNextIndex()),t})),c=t.reactive({styles:s});return Object.assign(Object.assign({},t.toRefs(c)),{refContentRef:i,updateDropdown:u,destoryDropdown:l})},render:function(){var e,n,r;return t.createVNode("div",{ref:"refContentRef",class:["bk-date-picker-dropdown",this.className,this.extPopoverCls],style:this.styles,onClick:this.onClick},[null!==(r=null===(n=(e=this.$slots).default)||void 0===n?void 0:n.call(e))&&void 0!==r?r:""])}}),ot={exports:{}};!function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0}(ot);var it=o(ot.exports),lt=864e5;function ut(e,t){return new Date(e,t+1,0).getDate()}function st(e,t,n){return 0===t&&n>50?e-1:11===t&&n<10?e+1:e}function ct(e,t,n,r){t>11&&(t=0,e++);var a=new Date(e,t,n);r&&a.setDate(a.getDate()+4-(a.getDay()||7));var o=r?a.getFullYear():e,i=new Date(o,0,1),l=1+Math.round((a-i)/lt);r||(l+=i.getDay());var u=Math.ceil(l/7);if(!r){var s=new Date(e,t,n),c=new Date(e+1,0,1),d=c.getDay();s.getTime()>=c.getTime()-lt*d&&(u=1)}return u}function dt(e,t,n){for(var r,a,o,i=this.lang||"en",l=this.onlyDays,u=void 0===this.weekStart?1:this.weekStart,s=1===u,c=[],d=u-(new Date(e,t,1).getDay()||(s?7:0)),f=ct(e,t,1,s),h=ut(e,t),p=ut(e,t-1),m=st(e,t,f),g={month:t,year:e,daysInMonth:h},y=0;y<7;y++){o=d;for(var v=0;v<8;v++){y>0&&v>0&&d++,d>h||d<1?(a=d>h?d-h:p+d,r=d>h?t+1:t-1):(a=d,r=t);var b=o!==d&&y>0,w={desc:b?a:f,week:f,type:0===v?"weekLabel":0===y?"dayLabel":d<1?"prevMonth":d>h?"nextMonth":"monthDay",format:s?"ISO 8601":"US",date:!!b&&new Date(Date.UTC(e,r,a)),year:m,index:c.length};n&&("function"==typeof n?w=n.call(g,w,i):n.forEach((function(e){w=e.call(g,w,i)}))),l&&b?c.push(w):l||c.push(w)}y>0&&(f=ct(e,r,a+1,s)),m=st(e,t,f)}return g.cells=c,g}var ft={weekPlaceholder:"",columnNames:{en:{0:"w",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday",7:"sunday"},sv:{0:"v",1:"måndag",2:"tisdag",3:"onsdag",4:"torsdag",5:"fredag",6:"lördag",7:"söndag"},pt:{0:"s",1:"segunda",2:"terça",3:"quarta",4:"quinta",5:"sexta",6:"sábado",7:"domingo"}},monthNames:{en:["January","February","March","April","May","June","July","August","September","October","November","December"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],pt:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},classes:{dayLabel:"day-of-week",weekLabel:"week-number",prevMonth:"inactive",nextMonth:"inactive",monthDay:"day-in-month"}};function ht(e,t){for(var n in e)t[n]?null==(r=e[n])||r.constructor!==Array&&r.constructor!==Object||ht(e[n],t[n]):t[n]=e[n];var r}function pt(e,t){var n=[ft.classes[e.type]];return e.class?e.class=("string"==typeof e.class?[e.class]:e.class).concat(n):e.class=n,e.type.indexOf("Label")>0&&(0==e.index&&ft.weekPlaceholder?e.desc=ft.weekPlaceholder:e.index<8?e.desc=ft.columnNames[t][e.index]:e.index%8==0&&(e.desc=e.week)),e.date&&(e.monthName=ft.monthNames[t][e.date.getMonth()]),this.monthName||(this.monthName=ft.monthNames[t][this.month]),this.labels||(this.labels={monthNames:ft.monthNames[t],columnNames:ft.columnNames[t],classes:ft.classes}),e}pt.setLabels=function(e){ht(e,ft)};var mt=function(e){return dt.bind(e)},gt={tableDate:{type:Date,required:!0},disableDate:Function,selectionMode:{type:String,required:!0},modelValue:{type:[Date,String,Number,Array]},rangeState:{type:Object,default:function(){return{from:null,to:null,selecting:!1}}},focusedDate:{type:Date,required:!0}},yt=t.defineComponent({props:gt,emits:["pick","pick-click","changeRange"],setup:function(e,n){var r=n.emit,a=t.computed((function(){return new mt({onlyDays:!0,weekStart:0})})),o=t.computed((function(){var e=["日","一","二","三","四","五","六"];return e.splice(0,7).concat(e.splice(0,0))})),i=t.computed((function(){return"range"===e.selectionMode&&e.rangeState.selecting?[e.rangeState.from]:e.modelValue}));return{headerDays:o,cells:t.computed((function(){var t=e.tableDate.getFullYear(),n=e.tableDate.getMonth(),r=tt(new Date),o=i.value.filter(Boolean).map(tt),l=i.value.map(tt),u=f(l,2),s=u[0],c=u[1],d=e.rangeState.from&&tt(e.rangeState.from),h=e.rangeState.to&&tt(e.rangeState.to),p="range"===e.selectionMode,m="function"==typeof e.disableDate&&e.disableDate;return a.value(t,n,(function(e){e.date instanceof Date&&e.date.setTime(e.date.getTime()+6e4*e.date.getTimezoneOffset());var t=e.date&&tt(e.date),a=e.date&&n===e.date.getMonth();return Object.assign(Object.assign({},e),{type:t===r?"today":e.type,selected:a&&o.includes(t),disabled:e.date&&m&&m(new Date(t)),range:a&&p&&nt(t,d,h),start:a&&p&&t===s,end:a&&p&&t===c})})).cells.slice(0)})),getCellCls:function(e){var t;return["bk-date-picker-cells-cell",(t={},it(t,"bk-date-picker-cells-cell-selected",e.selected||e.start||e.end),it(t,"bk-date-picker-cells-cell-disabled",e.disabled),it(t,"bk-date-picker-cells-cell-today","today"===e.type),it(t,"bk-date-picker-cells-cell-prev-month","prevMonth"===e.type),it(t,"bk-date-picker-cells-cell-next-month","nextMonth"===e.type),it(t,"bk-date-picker-cells-cell-week-label","weekLabel"===e.type),it(t,"bk-date-picker-cells-cell-range",e.range&&!e.start&&!e.end),t)]},handleClick:function(e){if(!e.disabled&&"weekLabel"!==e.type){var t=new Date(tt(e.date));r("pick",t),r("pick-click")}},handleMouseMove:function(t){if(e.rangeState.selecting&&!t.disabled){var n=t.date;r("changeRange",n)}}}},render:function(){var e=this;return t.createVNode("div",{class:"bk-date-picker-cells"},[t.createVNode("div",{class:"bk-date-picker-cells-header"},[this.headerDays.map((function(e){return t.createVNode("span",null,[e])}))]),this.cells.map((function(n){return t.createVNode("span",{class:e.getCellCls(n),onClick:function(){return e.handleClick(n)},onMouseenter:function(){return e.handleMouseMove(n)}},[t.createVNode("em",null,[n.desc])])}))])}}),vt={modelValue:{type:[Date,String,Number,Array]},shortcuts:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator:function(e){return!(["year","month","date","time"].indexOf(e)<0)||(console.error("selectionMode property is not valid: '".concat(e,"'")),!1)}},startDate:{type:Date},disableDate:Function,focusedDate:{type:Date,required:!0}},bt=t.defineComponent({props:vt,emits:["pick","pick-success"],setup:function(e,n){var r=this,a=n.emit,o=function(e){return e.match(/^time/)?"time-picker":"".concat(e,"-table")},i=e.modelValue.slice().sort(),l=t.reactive({currentView:e.selectionMode||"date",pickerTable:o(e.selectionMode),dates:i,panelDate:e.startDate||i[0]||new Date}),u=function(e){l.panelDate=e,"year-table"===l.pickerTable?l.pickerTable="month-table":l.pickerTable=o(l.currentView)},s=function(t,n){console.warn("handlePick");var r=t;r="year"===e.selectionMode?new Date(t.getFullYear(),0,1):"month"===e.selectionMode?new Date(l.panelDate.getFullYear(),t.getMonth(),1):new Date(t),l.dates=[r],a("pick",r,!1,n||e.selectionMode)},c=function(){setTimeout((function(){l.currentView=e.selectionMode}),500),a("pick-success")},d=t.ref(null),f=t.ref(null),h=t.computed((function(){return l.pickerTable==="".concat(l.currentView,"-table")?s:u})),p=t.computed((function(){var e=l.panelDate,t=et("zh-CN","[yyyy]-[mm]",e),n=t.labels,r=t.separator;return{separator:r,labels:n.map((function(e){var t,n=e;return n.handler=(t=e.type,function(){l.pickerTable=o(t)}),n}))}})),m=t.computed((function(){return"year"===p.value.labels[0].type||"date"===l.currentView})),g=t.computed((function(){return"year"===p.value.labels[1].type||"date"===l.currentView})),y=t.computed((function(){return"time"===l.currentView}));return console.warn("panelDatepanelDate",l.panelDate),Object.assign(Object.assign({},t.toRefs(l)),{panelPickerHandlers:h,datePanelLabel:p,showLabelFirst:m,showLabelSecond:g,handleShortcutClick:function(t){t.value&&a("pick",t.value(),!1,void 0,t),t.onClick&&t.onClick(r),e.shortcutClose&&c()},changeYear:function(t){"year"===e.selectionMode||"year-table"===l.pickerTable?l.panelDate=new Date(l.panelDate.getFullYear()+10*t,0,1):l.panelDate=Ke(l.panelDate,12*t)},changeMonth:function(e){l.panelDate=Ke(l.panelDate,e)},reset:function(){l.currentView=e.selectionMode,l.pickerTable=o(l.currentView)},isTime:y,onToggleVisibility:function(e){var t,n;e&&(null===(t=null==d?void 0:d.value)||void 0===t||t.updateScroll(),null===(n=null==f?void 0:f.value)||void 0===n||n.updateScroll())}})},render:function(){var e=this;return t.createVNode("div",{class:["bk-picker-panel-body-wrapper",this.shortcuts.length?"bk-picker-panel-with-sidebar":""],onMousedown:function(e){e.preventDefault()}},[this.shortcuts.length?t.createVNode("div",{class:"bk-picker-panel-sidebar"},[this.shortcuts.map((function(n){return t.createVNode("div",{class:"bk-picker-panel-shortcut",onClick:function(){return e.handleShortcutClick(n)}},[n.text])}))]):"",t.createVNode("div",{class:"bk-picker-panel-body",style:"width: 261px;"},[t.withDirectives(t.createVNode("div",{class:"bk-date-picker-header"},[t.createVNode("span",{class:Xe("prev","-double"),onClick:function(){return e.changeYear(-1)}},[t.createVNode(a.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?t.withDirectives(t.createVNode("span",{class:Xe("prev"),onClick:function(){return e.changeMonth(-1)}},[t.createVNode(a.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[t.vShow,"date"===this.currentView]]):"",this.datePanelLabel&&Object.keys(this.datePanelLabel).length>0?t.createVNode("span",null,[t.withDirectives(t.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.datePanelLabel.labels[0].handler}},[this.datePanelLabel.labels[0].label]),[[t.vShow,this.showLabelFirst]]),"date"===this.currentView?" ".concat(this.datePanelLabel.separator," "):" ",t.withDirectives(t.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.datePanelLabel.labels[1].handler}},[this.datePanelLabel.labels[1].label]),[[t.vShow,this.showLabelSecond]])]):"",t.createVNode("span",{class:Xe("next","-double"),onClick:function(){return e.changeYear(1)}},[t.createVNode(a.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?t.withDirectives(t.createVNode("span",{class:Xe("next"),onClick:function(){return e.changeMonth(1)}},[t.createVNode(a.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[t.vShow,"date"===this.currentView]]):""]),[[t.vShow,"time"!==this.currentView]]),t.createVNode("div",{class:"bk-picker-panel-content"},["time"!==this.currentView?"date-table"===e.pickerTable?t.createVNode(yt,{tableDate:e.panelDate,disableDate:e.disableDate,selectionMode:e.selectionMode,modelValue:e.dates,focusedDate:e.focusedDate,onPick:e.panelPickerHandlers},null):null:""])])])}}),wt={modelValue:{type:[Date,String,Number,Array]},type:{type:String,default:"date",validator:function(e){return!(["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0)||(console.error("type property is not valid: '".concat(e,"'")),!1)}},shortcuts:{type:Array,default:function(){return[]}},clearable:{type:Boolean,default:!0},splitPanels:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},showTime:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator:function(e){return!(["year","month","date","time"].indexOf(e)<0)||(console.error("selectionMode property is not valid: '".concat(e,"'")),!1)}},startDate:{type:Date},upToNow:{type:Boolean,default:!1},disableDate:Function,focusedDate:{type:Date,required:!0}},Dt=t.defineComponent({props:wt,emits:["pick"],setup:function(e,n){var r=n.emit,a=e.modelValue.map((function(e){return e||function(){var e=new Date;return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e}()})),o=f(a,2),i=o[0],l=o[1],u=e.startDate?e.startDate:i,s=t.reactive({currentView:e.selectionMode||"date",leftPickerTable:"".concat(e.selectionMode,"-table"),rightPickerTable:"".concat(e.selectionMode,"-table"),leftPanelDate:u,rightPanelDate:new Date(u.getFullYear(),u.getMonth()+1,1),rangeState:{from:e.modelValue[0],to:e.modelValue[1],selecting:i&&!l},upToNowEnable:!1,dates:e.modelValue}),c=function(e,t){return e&&t?e.getTime()-t.getTime():0},d=t.ref(null),h=t.ref(null),p=function t(n,r,a){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=new Date(s["".concat(n,"PanelDate")]);if(i["set".concat(r)](i["get".concat(r)]()+a),s["".concat(n,"PanelDate")]=i,o)if(e.splitPanels){var l="left"===n?"right":"left";"left"===n&&s.leftPanelDate>=s.rightPanelDate&&t(l,r,1),"right"===n&&s.rightPanelDate<=s.leftPanelDate&&t(l,r,-1)}else{var u="left"===n?"right":"left",c=s["".concat(u,"PanelDate")],d=new Date(c);if("Month"===r){var f=new Date(d.getFullYear(),d.getMonth()+a+1,0).getDate();d.setDate(Math.min(f,d.getDate()))}d["set".concat(r)](d["get".concat(r)]()+a),s["".concat(u,"PanelDate")]=d}},m=function(e){s["".concat(e,"PickerTable")]="year-table"},g=function(e){s["".concat(e,"PickerTable")]="month-table"},y=function(e){var t=s["".concat(e,"PanelDate")],n=et("zh-CN","[yyyy]-[mm]",t),r=n.labels,a=n.separator;return{separator:a,labels:r.map((function(t){var n,r,a=t;return a.handler=(n=t.type,r="month"===n?g:m,function(){return r(e)}),a}))}},v=function(t,n){if(console.warn("handleRangePick"),s.rangeState.selecting||"time"===s.currentView){if("time"===s.currentView)s.dates=t;else{var a=[s.rangeState.from,t].sort(c),o=f(a,2),i=o[0],l=o[1],u="upToNow"===n?new Date:new Date(new Date(new Date(l.setHours(23)).setMinutes(59)).setSeconds(59));s.dates=[i,u],s.rangeState={from:i,to:u,selecting:!1}}!function(t,n){r("pick",s.dates,t,n||e.type)}(!1,n||"date")}else s.upToNowEnable=new Date(t).getTime()<(new Date).getTime(),s.rangeState={from:t,to:null,selecting:!0}},b=function(t,n){s["".concat(t,"PanelDate")]=n;var r=s["".concat(t,"PickerTable")];if(s["".concat(t,"PickerTable")]="year-table"===r?"month-table":"".concat(s.currentView,"-table"),!e.splitPanels){var a="left"===t?"right":"left";s["".concat(a,"PanelDate")]=n,p(a,"Month","left"===a?-1:1,!1)}};t.watch((function(){return e.selectionMode}),(function(e){s.currentView=e||"range"}));var w=t.computed((function(){return"time"===s.currentView})),D=t.computed((function(){return y("left")})),k=t.computed((function(){return y("right")})),M=t.computed((function(){return s.leftPickerTable.split("-").shift()})),x=t.computed((function(){return s.rightPickerTable.split("-").shift()})),S=t.computed((function(){return"year"===D.value.labels[0].type||"date"===s.currentView})),T=t.computed((function(){return"year"===D.value.labels[1].type||"date"===s.currentView})),C=t.computed((function(){return"year"===k.value.labels[0].type||"date"===s.currentView})),P=t.computed((function(){return"year"===k.value.labels[1].type||"date"===s.currentView})),V=t.computed((function(){var e="".concat(s.currentView,"-table");return{left:s.leftPickerTable!==e,right:s.rightPickerTable!==e}})),N=t.computed((function(){return{left:V.value.left?b.bind("left"):v,right:V.value.right?b.bind("right"):v}}));return Object.assign(Object.assign({},t.toRefs(s)),{isTime:w,prevYear:function(e){var t="year"===s.currentView?-10:-1;p(e,"FullYear",t)},nextYear:function(e){var t="year"===s.currentView?10:1;p(e,"FullYear",t)},prevMonth:function(e){p(e,"Month",-1)},nextMonth:function(e){p(e,"Month",1)},leftDatePanelLabel:D,rightDatePanelLabel:k,leftDatePanelView:M,rightDatePanelView:x,leftShowLabelFirst:S,leftShowLabelSecond:T,rightShowLabelFirst:C,rightShowLabelSecond:P,preSelecting:V,panelPickerHandlers:N,reset:function(){s.currentView=e.selectionMode,s.leftPickerTable="".concat(s.currentView,"-table"),s.rightPickerTable="".concat(s.currentView,"-table")},onToggleVisibility:function(e){var t,n;e&&(null===(t=null==d?void 0:d.value)||void 0===t||t.updateScroll(),null===(n=null==h?void 0:h.value)||void 0===n||n.updateScroll())},handleRangePick:v,handleChangeRange:function(e){s.rangeState.to=e}})},render:function(){var e=this;return t.createVNode("div",{class:["bk-picker-panel-body-wrapper","bk-date-picker-with-range",this.shortcuts.length||this.$slots.shortcuts?"bk-picker-panel-with-sidebar":""],onMousedown:function(e){e.preventDefault()}},[t.createVNode("div",{class:["bk-picker-panel-body",this.showTime?"bk-picker-panel-body-time":"bk-picker-panel-body-date"]},[t.withDirectives(t.createVNode("div",{class:"bk-picker-panel-content bk-picker-panel-content-left",style:"width: 261px;"},[t.withDirectives(t.createVNode("div",{class:"bk-date-picker-header"},[t.createVNode("span",{class:Xe("prev","-double"),onClick:function(){return e.prevYear("left")}},[t.createVNode(a.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.leftPickerTable?t.withDirectives(t.createVNode("span",{class:Xe("prev"),onClick:function(){return e.prevMonth("left")}},[t.createVNode(a.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[t.vShow,"date"===this.currentView]]):"",this.leftDatePanelLabel&&Object.keys(this.leftDatePanelLabel).length>0?t.createVNode("span",null,[t.withDirectives(t.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.leftDatePanelLabel.labels[0].handler}},[this.leftDatePanelLabel.labels[0].label]),[[t.vShow,this.leftShowLabelFirst]]),"date"===this.leftDatePanelView?" ".concat(this.leftDatePanelLabel.separator," "):" ",t.withDirectives(t.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.leftDatePanelLabel.labels[1].handler}},[this.leftDatePanelLabel.labels[1].label]),[[t.vShow,this.leftShowLabelSecond]])]):"",this.splitPanels||"date-table"!==this.leftPickerTable?t.createVNode("span",{class:Xe("next","-double"),onClick:function(){return e.nextYear("left")}},[t.createVNode(a.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels||"date-table"===this.leftPickerTable?t.withDirectives(t.createVNode("span",{class:Xe("next"),onClick:function(){return e.nextMonth("left")}},[t.createVNode(a.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[t.vShow,"date"===this.currentView]]):""]),[[t.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===e.leftPickerTable?t.createVNode(yt,{selectionMode:"range",tableDate:e.leftPanelDate,disableDate:e.disableDate,rangeState:e.rangeState,modelValue:e.preSelecting.left?[e.dates[0]]:e.dates,focusedDate:e.focusedDate,onChangeRange:e.handleChangeRange,onPick:e.panelPickerHandlers.left},null):null:""]),[[t.vShow,!this.isTime]]),t.withDirectives(t.createVNode("div",{class:"bk-picker-panel-content bk-picker-panel-content-right",style:"width: 261px;"},[t.withDirectives(t.createVNode("div",{class:"bk-date-picker-header"},[this.splitPanels||"date-table"!==this.rightPickerTable?t.createVNode("span",{class:Xe("prev","-double"),onClick:function(){return e.prevYear("right")}},[t.createVNode(a.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels&&"date-table"===this.rightPickerTable?t.withDirectives(t.createVNode("span",{class:Xe("prev","-double"),onClick:function(){return e.prevMonth("right")}},[t.createVNode(a.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[t.vShow,"date"===this.currentView]]):"",this.rightDatePanelLabel&&Object.keys(this.rightDatePanelLabel).length>0?t.createVNode("span",null,[t.withDirectives(t.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.rightDatePanelLabel.labels[0].handler}},[this.rightDatePanelLabel.labels[0].label]),[[t.vShow,this.rightShowLabelFirst]]),"date"===this.rightDatePanelView?" ".concat(this.rightDatePanelLabel.separator," "):" ",t.withDirectives(t.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.rightDatePanelLabel.labels[1].handler}},[this.rightDatePanelLabel.labels[1].label]),[[t.vShow,this.rightShowLabelSecond]])]):"",this.upToNow?(e.rangeState.selecting||"time"===e.currentView)&&e.upToNowEnable?t.createVNode("span",{class:"up-to-now",onClick:function(){return e.handleRangePick(new Date,"upToNow")}},[t.createTextVNode("至今")]):t.createVNode("span",{class:"up-to-now disabled"},[t.createTextVNode("至今")]):"",t.createVNode("span",{class:Xe("next","-double"),onClick:function(){return e.nextYear("right")}},[t.createVNode(a.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.rightPickerTable?t.withDirectives(t.createVNode("span",{class:Xe("next"),onClick:function(){return e.nextMonth("right")}},[t.createVNode(a.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[t.vShow,"date"===this.currentView]]):""]),[[t.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===e.rightPickerTable?t.createVNode(yt,{selectionMode:"range",tableDate:e.rightPanelDate,disableDate:e.disableDate,rangeState:e.rangeState,modelValue:e.preSelecting.right?[e.dates[e.dates.length-1]]:e.dates,focusedDate:e.focusedDate,onChangeRange:e.handleChangeRange,onPick:e.panelPickerHandlers.right},null):null:""]),[[t.vShow,!this.isTime]])])])}}),kt={type:{type:String,default:"date",validator:function(e){return!(["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0)||(console.error("type property is not valid: '".concat(e,"'")),!1)}},extPopoverCls:{type:String,default:""},format:String,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},open:{type:Boolean,default:null},multiple:{type:Boolean,default:!1},timePickerOptions:{type:Object,default:function(){return{}}},splitPanels:{type:Boolean,default:!0},startDate:Date,placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start",validator:function(e){return!(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)<0)||(console.error("placement property is not valid: '".concat(e,"'")),!1)}},transfer:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},shortcuts:{type:Array,default:function(){return[]}},shortcutClose:{type:Boolean,default:!1},modelValue:{type:[Date,String,Number,Array]},options:{type:Object,default:function(){return{}}},fontSize:{type:String,default:"normal"},upToNow:{type:Boolean,default:!1},useShortcutText:{type:Boolean,default:!1},shortcutSelectedIndex:{type:Number,default:-1},footerSlotCls:{type:String,default:""},allowCrossDay:{type:Boolean,default:!1},behavior:{type:String,default:"normal",validator:function(e){return["simplicity","normal"].indexOf(e)>-1}},disableDate:Function},Mt=t.defineComponent({name:"DatePicker",props:kt,emits:["open-change","input","change","update:modelValue","clear","shortcut-change","pick-success"],slots:["header"],directives:{clickoutside:n.clickoutside},setup:function(e,n){var r=n.slots,a=n.emit,o=e.type.includes("range"),i=o?[null,null]:[null],l=((o?e.modelValue:[e.modelValue])||[]).every((function(e){return!e||"string"==typeof e&&""===e.trim()}))?i:Je(e.modelValue,e.type,e.multiple,e.format),u=null;-1!==e.shortcutSelectedIndex&&(u=e.shortcuts[e.shortcutSelectedIndex]||null)&&(l=u.value());var s=t.reactive({showClose:!1,visible:!1,internalValue:l,disableClickOutSide:!1,disableCloseUnderTransfer:!1,selectionMode:"date",forceInputRerender:1,isFocused:!1,focusedDate:l[0]||e.startDate||new Date,focusedTime:{column:0,picker:0,time:l.map(_e),active:!1},internalFocus:!1,timeEnterMode:!0,shortcut:u,onSelectionModeChange:c});function c(e){var t=e;return e.match(/^date/)&&(t="date"),s.selectionMode=["year","month","date","time"].indexOf(t)>-1&&t,s.selectionMode}var d=t.computed((function(){if(e.multiple)return s.internalValue.slice();var t=e.type.includes("range"),n=s.internalValue.map((function(e){return e instanceof Date?new Date(e):e||""}));return e.type.match(/^time/)&&(n=n.map((function(t){return Qe(t,e.type,e.multiple,e.format)}))),t||e.multiple?n:n[0]})),h=t.computed((function(){return e.type.match(/^time/)?d.value:e.multiple?Qe(d.value,e.type,e.multiple,e.format):Array.isArray(d.value)?d.value.map((function(t){return Qe(t,e.type,e.multiple,e.format)})):Qe(d.value,e.type,e.multiple,e.format)})),p=t.computed((function(){return"daterange"===e.type||"datetimerange"===e.type?"DateRangePanel":"DatePanel"})),m=t.computed((function(){return null===e.open?s.visible:e.open})),g=t.computed((function(){return console.warn("state.internalValue",s.internalValue),Qe(s.internalValue,e.type,e.multiple,e.format)})),v=t.computed((function(){var t;return(null===(t=s.shortcut)||void 0===t?void 0:t.text)&&e.useShortcutText?s.shortcut.text:g.value})),w=t.computed((function(){return!!r.trigger||"datetime"===e.type||"datetimerange"===e.type||e.multiple})),D=t.computed((function(){var t="";return"medium"===e.fontSize?t="medium-font":"large"===e.fontSize&&(t="large-font"),t})),k=t.computed((function(){var t="";return"medium"===e.fontSize?t="medium-width":"large"===e.fontSize&&(t="large-width"),t})),M=t.computed((function(){var t;return!(!(null===(t=s.shortcut)||void 0===t?void 0:t.text)||!e.useShortcutText)||(!e.editable||e.readonly)})),x=t.computed((function(){return!!r.footer})),S=t.computed((function(){return"RangeTimePickerPanel"===p.value&&e.allowCrossDay})),T=t.ref(null);t.watch((function(){return s.visible}),(function(e){var t,n;!1===e&&(null===(t=C.value)||void 0===t||t.destoryDropdown()),null===(n=C.value)||void 0===n||n.updateDropdown(),a("open-change",e)}));var C=t.ref(null);t.watch((function(){return e.modelValue}),(function(t){s.internalValue=Je(t,e.type,e.multiple,e.format)})),t.watch((function(){return e.open}),(function(e){s.visible=!0===e})),t.watch((function(){return e.type}),(function(e){c(e)})),t.watch((function(){return d}),(function(e,t){(JSON.stringify(e)!==JSON.stringify(t)||b(e)!==b(t))&&a("input",e)})),t.onMounted((function(){e.type.indexOf("date"),s.timeEnterMode=!0;var n=e.modelValue,r=d.value;b(n)===b(r)&&JSON.stringify(n)===JSON.stringify(r)||a("input",d.value),null!==e.open&&(s.visible=e.open),t.provide(Ge,{props:e,focus:function(){var e;null===(e=null==T?void 0:T.value)||void 0===e||e.focus()}})}));var P=t.ref(null),V=function(e){var t;if(s.disableCloseUnderTransfer)return s.disableCloseUnderTransfer=!1,!1;if(e&&"mousedown"===e.type&&s.visible)return e.preventDefault(),void e.stopPropagation();if(s.visible){var n=null===(t=null==P?void 0:P.value)||void 0===t?void 0:t.$el;if(e&&n&&n.contains(e.target))return;return s.visible=!1,null==e||e.preventDefault(),void(null==e||e.stopPropagation())}s.isFocused=!1,s.disableClickOutSide=!1},N=function(n){t.nextTick((function(){var t;a("change",h.value,n),a("update:modelValue",d.value),e.type.indexOf("time")<0&&(null===(t=null==T?void 0:T.value)||void 0===t||t.blur())}))},O=function(){var e;null===(e=null==P?void 0:P.value)||void 0===e||e.reset()},F=function(){var e;s.visible=!1,t.nextTick((function(){a("pick-success")})),null===(e=null==T?void 0:T.value)||void 0===e||e.blur(),O()},L=t.ref(null);return Object.assign(Object.assign({},t.toRefs(s)),{panel:p,publicStringValue:h,opened:m,visualValue:g,displayValue:v,isConfirm:w,fontSizeCls:D,longWidthCls:k,localReadonly:M,hasFooter:x,allowCrossDayProp:S,pickerDropdownRef:C,inputRef:T,triggerRef:L,pickerPanelRef:P,handleClose:V,handleIconClick:function(){var e,t;null===(e=null==T?void 0:T.value)||void 0===e||e.focus(),null===(t=null==T?void 0:T.value)||void 0===t||t.click()},handleInputMouseenter:function(){e.readonly||e.disabled||(null==g?void 0:g.value)&&(s.showClose=!0)},handleInputMouseleave:function(e){var t;(null===(t=e.toElement)||void 0===t?void 0:t.classList.contains("clear-action"))||(s.showClose=!1)},handleFocus:function(t){e.readonly||(s.isFocused=!0,t&&"focus"===t.type||e.disabled||(s.visible=!0))},handleBlur:function(t){var n;s.internalFocus?s.internalFocus=!1:s.visible?t.preventDefault():(s.isFocused=!1,c(e.type),s.internalValue=s.internalValue.slice(),O(),null===(n=null==P?void 0:P.value)||void 0===n||n.onToggleVisibility(!1))},handleKeydown:function(e){var t=e.keyCode;if(9===t&&s.visible)if(e.stopPropagation(),e.preventDefault(),w){var n=C.$el.querySelectorAll(".bk-picker-confirm > *");s.internalFocus=!0,y(n)[e.shiftKey?"pop":"shift"]().focus()}else V();var r=[37,38,39,40];s.visible||!r.includes(t)?(27===t&&s.visible&&(e.stopPropagation(),V()),r.includes(t)&&s.focusedTime.active&&e.preventDefault()):s.visible=!0},handleInputChange:function(t){var n,r=e.type.includes("range")||e.multiple,a=g.value,o=t.target.value,i=Je(o,e.type,e.multiple,e.format),l=r?i:i[0],u=null===(n=e.disableDate)||void 0===n?void 0:n.call(e,l),c=i.reduce((function(e,t){return e&&t instanceof Date}),!0);o!==a&&!u&&c?(N(e.type),s.internalValue=i):s.forceInputRerender=s.forceInputRerender+1},handleClear:function(){s.visible=!1,s.internalValue=s.internalValue.map((function(){return null})),a("clear"),N(e.type),O(),s.showClose=!1,s.shortcut=null,setTimeout((function(){return c(e.type)}),500)},handleTransferClick:function(){e.appendToBody&&(s.disableCloseUnderTransfer=!0)},onPick:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=t;if(e.multiple){var l=i.getTime(),u=s.internalValue.findIndex((function(e){return e&&e.getTime()===l})),d=[].concat(y(s.internalValue),[i]).filter(Boolean),h=d.map((function(e){return e.getTime()})).filter((function(e,t,n){return n.indexOf(e)===t&&t!==u}));s.internalValue=h.map((function(e){return new Date(e)}))}else i=Je(t,e.type,e.multiple,e.format),s.internalValue=Array.isArray(i)?i:[i];if(s.internalValue[0]){var p=f(s.internalValue,1),m=p[0];s.focusedDate=m}s.focusedTime=Object.assign(Object.assign({},s.focusedTime),{time:s.internalValue.map(_e)}),w.value||(c(e.type),s.visible=n),"upToNow"===r&&"daterange"===e.type&&F(),s.shortcut=o,N(r);var g=e.shortcuts.findIndex((function(e){return e===s.shortcut}));a("shortcut-change",s.shortcut,g)}})},render:function(){var e,n,r,a=this,o=t.createVNode("div",null,[t.createVNode("span",{class:["icon-wrapper",this.disabled?"disabled":""],onClick:this.handleIconClick,onMouseenter:this.handleInputMouseenter,onMouseleave:this.handleInputMouseleave},["time"===this.type||"timerange"===this.type?t.createVNode("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[t.createVNode("g",{id:"time"},[t.createVNode("path",{fill:"#c4c6cc",d:"M512,128c51.9,0,102.2,10.1,149.5,30.2c45.7,19.3,86.8,47,122.1,82.3s63,76.4,82.3,122.1c20,47.3,30.2,97.6,30.2,149.5S886,614.3,865.9,661.6c-19.3,45.7-47,86.8-82.3,122.1s-76.4,63-122.1,82.3c-47.3,20-97.6,30.2-149.5,30.2S409.8,886.1,362.5,866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2,30.2-149.5c19.3-45.7,47-86.8,82.3-122.1s76.4-63,122.1-82.3C409.8,138.1,460.1,128,512,128 M512,64C264.6,64,64,264.6,64,512s200.6,448,448,448s448-200.6,448-448S759.4,64,512,64L512,64z"},null),t.createVNode("polygon",{fill:"#c4c6cc",points:"512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"},null)])]):t.createVNode("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[t.createVNode("g",{id:"date"},[t.createVNode("path",{fill:"#c4c6cc",d:"M896,128h-96v64h64v112H160V192h64v-64h-96c-17.7,0-32,14.3-32,32v736c0,17.7,14.3,32,32,32h768c17.7,0,32-14.3,32-32V160C928,142.3,913.7,128,896,128z M160,864V368h704v496H160z"},null),t.createVNode("rect",{x:"416",y:"128",fill:"#c4c6cc",width:"192",height:"64"},null),t.createVNode("rect",{x:"288",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),t.createVNode("rect",{x:"672",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),t.createVNode("polygon",{fill:"#c4c6cc",points:"403.7,514.4 557.1,514.4 557.1,515.3 420.1,765.5 483.5,765.5 620.3,504.3 620.3,466.5 403.7,466.5"},null)])])]),t.createVNode("input",{type:"text",class:["bk-date-picker-editor",this.readonly?"readonly":"",this.fontSizeCls,"simplicity"===this.behavior?"only-bottom-border":""],ref:"inputRef",key:this.forceInputRerender,readonly:this.localReadonly,disabled:this.disabled,placeholder:this.placeholder,value:this.displayValue,onFocus:this.handleFocus,onClick:this.handleFocus,onBlur:this.handleBlur,onMouseenter:this.handleInputMouseenter,onMouseleave:this.handleInputMouseleave,onKeydown:this.handleKeydown,onChange:this.handleInputChange},null),this.clearable&&this.showClose?t.createVNode("i",{class:"bk-icon icon-close-circle-shape clear-action",onClick:this.handleClear},null):""]);return t.withDirectives(t.createVNode("div",{class:["bk-date-picker","datetimerange"===this.type?"long":"",this.longWidthCls]},[t.createVNode("div",{ref:"triggerRef",class:"bk-date-picker-rel"},[null!==(r=null===(n=(e=this.$slots).header)||void 0===n?void 0:n.call(e))&&void 0!==r?r:o]),t.createVNode(t.Teleport,{to:"body",disabled:!this.appendToBody},{default:function(){return[t.createVNode(t.Transition,{name:"bk-fade-down-transition"},{default:function(){return[t.withDirectives(t.createVNode(at,{class:[a.appendToBody?"bk-date-picker-transfer":""],ref:"pickerDropdownRef",triggerRef:a.triggerRef,placement:a.placement,extPopoverCls:a.extPopoverCls,appendToBody:a.appendToBody,onClick:a.handleTransferClick},{default:function(){return["DateRangePanel"===a.panel?t.createVNode(Dt,{ref:"pickerPanelRef",shortcuts:a.shortcuts,modelValue:a.internalValue,type:a.type,selectionMode:a.selectionMode,startDate:a.startDate,disableDate:a.disableDate,focusedDate:a.focusedDate,onPick:a.onPick},null):t.createVNode(bt,{ref:"pickerPanelRef",shortcuts:a.shortcuts,multiple:a.multiple,clearable:a.clearable,shortcutClose:a.shortcutClose,selectionMode:a.selectionMode,modelValue:a.internalValue,startDate:a.startDate,disableDate:a.disableDate,focusedDate:a.focusedDate,onPick:a.onPick},null)]}}),[[t.vShow,a.opened]])]}})]}})]),[[t.resolveDirective("clickoutside"),this.handleClose]])}}),xt=r.withInstall(Mt);e.default=xt,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,22 @@
1
+ import type { ComputedPlacement } from '@popperjs/core';
2
+ import type { DatePickerProps } from './date-picker';
3
+ export declare type DatePickerPlacementType = ComputedPlacement;
4
+ export declare type DatePickerTypeType = 'year' | 'month' | 'date' | 'daterange' | 'datetime' | 'datetimerange';
5
+ export declare type TimePickerTypeType = 'time' | 'timerange';
6
+ export declare type PickerTypeType = DatePickerTypeType | TimePickerTypeType;
7
+ export interface IDatePickerShortcut {
8
+ text: string;
9
+ value?: () => Date[];
10
+ onClick?: (picker: any) => void;
11
+ }
12
+ export declare type DatePickerShortcutsType = IDatePickerShortcut[];
13
+ declare type ValueType = Date | string | number;
14
+ export declare type DatePickerValueType = ValueType | [ValueType, ValueType];
15
+ export declare type DisableDateType = (date: number | Date) => boolean;
16
+ export interface IDatePickerCtx {
17
+ props: DatePickerProps;
18
+ focus: () => void;
19
+ }
20
+ export declare type DatePickerPanelType = 'DateRangePanel' | 'DatePanel' | 'RangeTimePickerPanel' | 'TimePickerPanel';
21
+ export declare type SelectionModeType = 'year' | 'month' | 'date' | 'time';
22
+ export {};
@@ -0,0 +1,97 @@
1
+ import type { InjectionKey } from 'vue';
2
+ import type { PickerTypeType, IDatePickerCtx } from './interface';
3
+ export declare const RANGE_SEPARATOR = " - ";
4
+ export declare const typeValueResolver: {
5
+ default: {
6
+ formatter(value: any): string;
7
+ parser(text: any): any;
8
+ };
9
+ date: {
10
+ formatter: (value: any, format: any) => string;
11
+ parser: (text: any, format: any) => any;
12
+ };
13
+ datetime: {
14
+ formatter: (value: any, format: any) => string;
15
+ parser: (text: any, format: any) => any;
16
+ };
17
+ daterange: {
18
+ formatter: (value: any, format: any) => string;
19
+ parser: (text: any, format: any) => any[];
20
+ };
21
+ datetimerange: {
22
+ formatter: (value: any, format: any) => string;
23
+ parser: (text: any, format: any) => any[];
24
+ };
25
+ timerange: {
26
+ formatter: (value: any, format: any) => string;
27
+ parser: (text: any, format: any) => any[];
28
+ };
29
+ time: {
30
+ formatter: (value: any, format: any) => string;
31
+ parser: (text: any, format: any) => any;
32
+ };
33
+ month: {
34
+ formatter: (value: any, format: any) => string;
35
+ parser: (text: any, format: any) => any;
36
+ };
37
+ year: {
38
+ formatter: (value: any, format: any) => string;
39
+ parser: (text: any, format: any) => any;
40
+ };
41
+ multiple: {
42
+ formatter(value: any, format: any): any;
43
+ parser(v: any, format: any): any;
44
+ };
45
+ number: {
46
+ formatter(value: any): string;
47
+ parser(text: any): number;
48
+ };
49
+ };
50
+ /**
51
+ * 设置时间,当天的零点时间
52
+ *
53
+ * @return {Date} date 对象
54
+ */
55
+ export declare const initTime: () => Date;
56
+ /**
57
+ * 判断数组中的每个值是否为空
58
+ * 0, '', null, undefined 均判断为空
59
+ *
60
+ * @param {Array} arr 待判断的数组
61
+ *
62
+ * @return {boolean} 判断结果
63
+ */
64
+ export declare const isAllEmptyArr: (arr: any[]) => boolean;
65
+ export declare const keyValueMapper: {
66
+ 40: string;
67
+ 39: string;
68
+ 38: string;
69
+ 37: string;
70
+ };
71
+ export declare const mapPossibleValues: (key: string, horizontal: number, vertical: number) => number;
72
+ export declare const extractTime: (date: Date) => number[];
73
+ export declare const DEFAULT_FORMATS: Record<PickerTypeType, string>;
74
+ export declare const parseDate: (val: any, type: any, multiple: any, format: any) => any;
75
+ export declare const formatDate: (val: any, type: any, multiple: any, format: any) => any;
76
+ export declare const datePickerKey: InjectionKey<IDatePickerCtx>;
77
+ /**
78
+ * 寻找子组件
79
+ *
80
+ * @param {Object} context 上下文
81
+ * @param {string} componentName 要找的组件类型名称
82
+ *
83
+ * @return {Array} 组件集合
84
+ */
85
+ export declare function findChildComponents(context: any, componentName: any): any;
86
+ export declare function iconBtnCls(direction: any, type?: string): string[];
87
+ export declare const getDayCountOfMonth: (year: any, month: any) => number;
88
+ export declare const siblingMonth: (src: any, diff: any) => Date;
89
+ export declare const formatDateLabels: (locale: any, format: any, date: any) => {
90
+ separator: any;
91
+ labels: {
92
+ label: any;
93
+ type: string;
94
+ }[];
95
+ };
96
+ export declare const clearHours: (time: any) => number;
97
+ export declare const isInRange: (time: any, a: any, b: any) => boolean;
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../modal"),require("../button"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../modal","../button","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Modal,e.Button,e.Shared)}(this,(function(e,t,o,l,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=r(o),i=r(l);var d=t.defineComponent({name:"BkDialog",components:{BkModal:a.default,BkButton:i.default},emits:["closed","update:isShow"],props:Object.assign(Object.assign({},o.propsMixin),{confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},Title:{type:String,default:"Title"},headerAlign:{type:String,default:"left",validator:function(e){var t=["left","center","right"];return!(t.indexOf(e)<0)||(console.error("headerAlign property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),!1)}},footerAlign:{type:String,default:"right",validator:function(e){var t=["left","center","right"];return!(t.indexOf(e)<0)||(console.error("footerAlign property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),!1)}}}),methods:{handleClose:function(){this.$emit("update:isShow",!1),this.$emit("closed")}},render:function(){var e,o=this,l={header:function(){var e,l,n;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:"bk-dialog-tool"},[t.createVNode("span",{class:"bk-dialog-close",onClick:o.handleClose},[t.createTextVNode("+")])]),t.createVNode("div",{class:"bk-dialog-header"},[t.createVNode("span",{class:"bk-dialog-title",style:"text-align: ".concat(o.headerAlign)},[null!==(n=null===(l=(e=o.$slots).header)||void 0===l?void 0:l.call(e))&&void 0!==n?n:o.Title])])])},default:function(){var e,t,l;return null!==(l=null===(t=(e=o.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==l?l:"default"},footer:function(){var e,l,n;return t.createVNode("div",{class:"bk-dialog-footer",style:"text-align: ".concat(o.footerAlign)},[null!==(n=null===(l=(e=o.$slots).footer)||void 0===l?void 0:l.call(e))&&void 0!==n?n:t.createVNode(t.Fragment,null,[t.createVNode(i.default,{onClick:o.handleClose,theme:"primary"},{default:function(){return[o.confirmText]}}),t.createVNode(i.default,{onClick:o.handleClose},{default:function(){return[o.cancelText]}})])])}},n="bk-dialog-wrapper ".concat(this.scrollable?"scroll-able":"");return t.createVNode(a.default,t.mergeProps(this.$props,{class:n}),"function"==typeof(e=l)||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)?l:{default:function(){return[l]}})}}),c=n.withInstall(d);e.default=c,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../modal"),require("../button"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../modal","../button","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Modal,e.Button,e.Shared)}(this,(function(e,t,o,l,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=r(o),i=r(l);var d=t.defineComponent({name:"Dialog",components:{BkModal:a.default,BkButton:i.default},emits:["closed","update:isShow"],props:Object.assign(Object.assign({},o.propsMixin),{confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},Title:{type:String,default:"Title"},headerAlign:{type:String,default:"left",validator:function(e){var t=["left","center","right"];return!(t.indexOf(e)<0)||(console.error("headerAlign property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),!1)}},footerAlign:{type:String,default:"right",validator:function(e){var t=["left","center","right"];return!(t.indexOf(e)<0)||(console.error("footerAlign property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),!1)}}}),methods:{handleClose:function(){this.$emit("update:isShow",!1),this.$emit("closed")}},render:function(){var e,o=this,l={header:function(){var e,l,n;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:"bk-dialog-tool"},[t.createVNode("span",{class:"bk-dialog-close",onClick:o.handleClose},[t.createTextVNode("+")])]),t.createVNode("div",{class:"bk-dialog-header"},[t.createVNode("span",{class:"bk-dialog-title",style:"text-align: ".concat(o.headerAlign)},[null!==(n=null===(l=(e=o.$slots).header)||void 0===l?void 0:l.call(e))&&void 0!==n?n:o.Title])])])},default:function(){var e,t,l;return null!==(l=null===(t=(e=o.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==l?l:"default"},footer:function(){var e,l,n;return t.createVNode("div",{class:"bk-dialog-footer",style:"text-align: ".concat(o.footerAlign)},[null!==(n=null===(l=(e=o.$slots).footer)||void 0===l?void 0:l.call(e))&&void 0!==n?n:t.createVNode(t.Fragment,null,[t.createVNode(i.default,{onClick:o.handleClose,theme:"primary"},{default:function(){return[o.confirmText]}}),t.createVNode(i.default,{onClick:o.handleClose},{default:function(){return[o.cancelText]}})])])}},n="bk-dialog-wrapper ".concat(this.scrollable?"scroll-able":"");return t.createVNode(a.default,t.mergeProps(this.$props,{class:n}),"function"==typeof(e=l)||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)?l:{default:function(){return[l]}})}}),c=n.withInstall(d);e.default=c,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,2 +1,3 @@
1
1
  export { default as mousewheel } from './mousewheel';
2
2
  export { default as clickoutside } from './clickoutside';
3
+ export { default as bkTooltips } from './tooltips';
@@ -1,15 +1,15 @@
1
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={})}(this,(function(e){"use strict";var n,t,a,i,r,o,d,u,c,l,s,f,v,p,h,m=!1;function w(){if(!m){m=!0;var e=navigator.userAgent,w=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),x=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),v=/\b(iP[ao]d)/.exec(e),l=/Android/i.exec(e),p=/FBAN\/\w+;/i.exec(e),h=/Mobile/i.exec(e),s=!!/Win64/.exec(e),w){(n=w[1]?parseFloat(w[1]):w[5]?parseFloat(w[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(e);o=b?parseFloat(b[1])+4:n,t=w[2]?parseFloat(w[2]):NaN,a=w[3]?parseFloat(w[3]):NaN,(i=w[4]?parseFloat(w[4]):NaN)?(w=/(?:Chrome\/(\d+\.\d+))/.exec(e),r=w&&w[1]?parseFloat(w[1]):NaN):r=NaN}else n=t=a=r=i=NaN;if(x){if(x[1]){var M=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);d=!M||parseFloat(M[1].replace("_","."))}else d=!1;u=!!x[2],c=!!x[3]}else d=u=c=!1}}var x,b={ie:function(){return w()||n},ieCompatibilityMode:function(){return w()||o>n},ie64:function(){return b.ie()&&s},firefox:function(){return w()||t},opera:function(){return w()||a},webkit:function(){return w()||i},safari:function(){return b.webkit()},chrome:function(){return w()||r},windows:function(){return w()||u},osx:function(){return w()||d},linux:function(){return w()||c},iphone:function(){return w()||f},mobile:function(){return w()||f||v||l||h},nativeApp:function(){return w()||p},android:function(){return w()||l},ipad:function(){return w()||v}},M=b,g=!("undefined"==typeof window||!window.document||!window.document.createElement),E={canUseDOM:g,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:g&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:g&&!!window.screen,isInWorker:!g};E.canUseDOM&&(x=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("../shared"),require("../styles/mixins/popper.less")):"function"==typeof define&&define.amd?define(["exports","../shared","../styles/mixins/popper.less"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared)}(this,(function(e,t){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,o,i,a,s,c,f,u,p,l,d,m,h,v,b,g=!1;function y(){if(!g){g=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(m=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),l=/Android/i.exec(e),v=/FBAN\/\w+;/i.exec(e),b=/Mobile/i.exec(e),d=!!/Win64/.exec(e),t){(r=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(r=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);c=y?parseFloat(y[1])+4:r,o=t[2]?parseFloat(t[2]):NaN,i=t[3]?parseFloat(t[3]):NaN,(a=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else r=o=i=s=a=NaN;if(n){if(n[1]){var x=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);f=!x||parseFloat(x[1].replace("_","."))}else f=!1;u=!!n[2],p=!!n[3]}else f=u=p=!1}}var x,w={ie:function(){return y()||r},ieCompatibilityMode:function(){return y()||c>r},ie64:function(){return w.ie()&&d},firefox:function(){return y()||o},opera:function(){return y()||i},webkit:function(){return y()||a},safari:function(){return w.webkit()},chrome:function(){return y()||s},windows:function(){return y()||u},osx:function(){return y()||f},linux:function(){return y()||p},iphone:function(){return y()||m},mobile:function(){return y()||m||h||l||b},nativeApp:function(){return y()||v},android:function(){return y()||l},ipad:function(){return y()||h}},O=w,E=!("undefined"==typeof window||!window.document||!window.document.createElement),j={canUseDOM:E,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:E&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:E&&!!window.screen,isInWorker:!E};j.canUseDOM&&(x=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
2
2
  /**
3
- * Checks if an event is supported in the current execution environment.
4
- *
5
- * NOTE: This will not work correctly for non-generic events such as `change`,
6
- * `reset`, `load`, `error`, and `select`.
7
- *
8
- * Borrows from Modernizr.
9
- *
10
- * @param {string} eventNameSuffix Event name, e.g. "click".
11
- * @param {?boolean} capture Check if the capture phase is supported.
12
- * @return {boolean} True if the event is supported.
13
- * @internal
14
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
15
- */;var N=M,F=function(e,n){if(!E.canUseDOM||n&&!("addEventListener"in document))return!1;var t="on"+e,a=t in document;if(!a){var i=document.createElement("div");i.setAttribute(t,"return;"),a="function"==typeof i[t]}return!a&&x&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a};function O(e){var n=0,t=0,a=0,i=0;return"detail"in e&&(t=e.detail),"wheelDelta"in e&&(t=-e.wheelDelta/120),"wheelDeltaY"in e&&(t=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(n=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(n=t,t=0),a=10*n,i=10*t,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||i)&&e.deltaMode&&(1==e.deltaMode?(a*=40,i*=40):(a*=800,i*=800)),a&&!n&&(n=a<1?-1:1),i&&!t&&(t=i<1?-1:1),{spinX:n,spinY:t,pixelX:a,pixelY:i}}O.getEventType=function(){return N.firefox()?"DOMMouseScroll":F("wheel")?"wheel":"mousewheel"};var y=O,D="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,A={beforeMount:function(e,n){var t,a;console.error(e,n),t=e,a=n.value,(null==t?void 0:t.addEventListener)&&t.addEventListener(D?"DOMMouseScroll":"mousewheel",(function(e){var n=y(e);null==a||a.apply(this,[e,n])}))}},L=new Map;function X(e){var n={handler:function(){},capture:!0,disabled:!1,detectIframe:!0,exclude:[],events:"ontouchstart"in window||(null===navigator||void 0===navigator?void 0:navigator.msMaxTouchPoints)>0?["ontouchstart"]:["click"]};return"function"==typeof e?(n.handler=e,n):Object.assign({},n)}function k(e){var n=document.activeElement,t=e.el,a=e.handler,i=e.disabled;!n||"IFRAME"!==n.tagName||t.contains(n)||i||a(event)}function I(e,n){var t=n.events.map((function(t){return{event:t,target:document.documentElement,capture:n.capture,handler:function(t){return function(e){var n,t=e.el,a=e.event,i=e.handler,r=e.disabled,o=null===(n=a.composedPath)||void 0===n?void 0:n.call(a);(o?o.indexOf(t)<0:!t.contains(a.target))&&!r&&i(a)}({el:e,event:t,handler:n.handler,disabled:n.disabled})}}}));return n.detectIframe&&t.push({event:"blur",target:window,capture:n.capture,handler:function(t){return k({el:e,event:t,handler:n.handler,disabled:n.disabled})}}),t}function P(e){var n;(null!==(n=L.get(e))&&void 0!==n?n:[]).forEach((function(e){var n=e.target,t=e.event,a=e.handler,i=e.capture;n.removeEventListener(t,a,i)})),L.delete(e)}var T={beforeMount:function(e,n){var t=X(n.value);t.disabled||L.set(e,I(e,t))},updated:function(e,n){var t=X(n.value);t.disabled&&!L.has(e)||function(e,n){L.has(e)&&P(e);var t=I(e,n);L.set(e,t),t.forEach((function(e){var n=e.target,t=e.event,a=e.handler,i=e.capture;n.addEventListener(t,a,i)}))}(e,t)},unmounted:function(e){P(e)}};e.clickoutside=T,e.mousewheel=A,Object.defineProperty(e,"__esModule",{value:!0})}));
3
+ * Checks if an event is supported in the current execution environment.
4
+ *
5
+ * NOTE: This will not work correctly for non-generic events such as `change`,
6
+ * `reset`, `load`, `error`, and `select`.
7
+ *
8
+ * Borrows from Modernizr.
9
+ *
10
+ * @param {string} eventNameSuffix Event name, e.g. "click".
11
+ * @param {?boolean} capture Check if the capture phase is supported.
12
+ * @return {boolean} True if the event is supported.
13
+ * @internal
14
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
15
+ */;var A=O,M=function(e,t){if(!j.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&x&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r};function S(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}S.getEventType=function(){return A.firefox()?"DOMMouseScroll":M("wheel")?"wheel":"mousewheel"};var D=S,k="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,N={beforeMount:function(e,t){var n,r;console.error(e,t),n=e,r=t.value,(null==n?void 0:n.addEventListener)&&n.addEventListener(k?"DOMMouseScroll":"mousewheel",(function(e){var t=D(e);null==r||r.apply(this,[e,t])}))}},P=new Map;function L(e){var t={handler:function(){},capture:!0,disabled:!1,detectIframe:!0,exclude:[],events:"ontouchstart"in window||(null===navigator||void 0===navigator?void 0:navigator.maxTouchPoints)>0?["ontouchstart"]:["click"]};return"function"==typeof e?(t.handler=e,t):Object.assign({},t)}function _(e,t){var n=t.events.map((function(n){return{event:n,target:document.documentElement,capture:t.capture,handler:function(n){return function(e){var t,n=e.el,r=e.event,o=e.handler,i=e.disabled,a=null===(t=r.composedPath)||void 0===t?void 0:t.call(r);(a?a.indexOf(n)<0:!n.contains(r.target))&&!i&&o(r)}({el:e,event:n,handler:t.handler,disabled:t.disabled})}}}));return t.detectIframe&&n.push({event:"blur",target:window,capture:t.capture,handler:function(n){return function(e){var t=document.activeElement,n=e.el,r=e.handler,o=e.disabled,i=e.event;!t||"IFRAME"!==t.tagName||n.contains(t)||o||r(i)}({el:e,event:n,handler:t.handler,disabled:t.disabled})}}),n}function T(e){var t;(null!==(t=P.get(e))&&void 0!==t?t:[]).forEach((function(e){var t=e.target,n=e.event,r=e.handler,o=e.capture;t.removeEventListener(n,r,o)})),P.delete(e)}var q={beforeMount:function(e,t){var n=L(t.value);n.disabled||P.set(e,_(e,n))},updated:function(e,t){var n=L(t.value);n.disabled&&!P.has(e)||function(e,t){P.has(e)&&T(e);var n=_(e,t);P.set(e,n),n.forEach((function(e){var t=e.target,n=e.event,r=e.handler,o=e.capture;t.addEventListener(n,r,o)}))}(e,n)},unmounted:function(e){T(e)}},I={exports:{}},W={exports:{}},V={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0}(V),function(e){var t=V.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(W);var C={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0}(C);var H={exports:{}};!function(e){var t=V.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0}(H);var F={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0}(F),function(e){var t=W.exports,n=C.exports,r=H.exports,o=F.exports;e.exports=function(e){return t(e)||n(e)||r(e)||o()},e.exports.default=e.exports,e.exports.__esModule=!0}(I);var B=n(I.exports),R={exports:{}};!function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}(R);var U=n(R.exports),X="top",Y="bottom",z="right",G="left",Z="auto",J=[X,Y,z,G],K="start",$="end",Q="viewport",ee="popper",te=J.reduce((function(e,t){return e.concat([t+"-"+K,t+"-"+$])}),[]),ne=[].concat(J,[Z]).reduce((function(e,t){return e.concat([t,t+"-"+K,t+"-"+$])}),[]),re=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function oe(e){return e?(e.nodeName||"").toLowerCase():null}function ie(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ae(e){return e instanceof ie(e).Element||e instanceof Element}function se(e){return e instanceof ie(e).HTMLElement||e instanceof HTMLElement}function ce(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ie(e).ShadowRoot||e instanceof ShadowRoot)}var fe={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];se(o)&&oe(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});se(r)&&oe(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function ue(e){return e.split("-")[0]}var pe=Math.max,le=Math.min,de=Math.round;function me(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(se(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=de(n.width)/a||1),i>0&&(o=de(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function he(e){var t=me(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ve(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ce(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function be(e){return ie(e).getComputedStyle(e)}function ge(e){return["table","td","th"].indexOf(oe(e))>=0}function ye(e){return((ae(e)?e.ownerDocument:e.document)||window.document).documentElement}function xe(e){return"html"===oe(e)?e:e.assignedSlot||e.parentNode||(ce(e)?e.host:null)||ye(e)}function we(e){return se(e)&&"fixed"!==be(e).position?e.offsetParent:null}function Oe(e){for(var t=ie(e),n=we(e);n&&ge(n)&&"static"===be(n).position;)n=we(n);return n&&("html"===oe(n)||"body"===oe(n)&&"static"===be(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&se(e)&&"fixed"===be(e).position)return null;for(var n=xe(e);se(n)&&["html","body"].indexOf(oe(n))<0;){var r=be(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Ee(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function je(e,t,n){return pe(e,le(t,n))}function Ae(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Me(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Se={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ue(n.placement),c=Ee(s),f=[G,z].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Ae("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Me(e,J))}(o.padding,n),p=he(i),l="y"===c?X:G,d="y"===c?Y:z,m=n.rects.reference[f]+n.rects.reference[c]-a[c]-n.rects.popper[f],h=a[c]-n.rects.reference[c],v=Oe(i),b=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,g=m/2-h/2,y=u[l],x=b-p[f]-u[d],w=b/2-p[f]/2+g,O=je(y,w,x),E=c;n.modifiersData[r]=((t={})[E]=O,t.centerOffset=O-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(se(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),ve(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function De(e){return e.split("-")[1]}var ke={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ne(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,f=e.adaptive,u=e.roundOffsets,p=e.isFixed,l=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:de(t*r)/r||0,y:de(n*r)/r||0}}(a):"function"==typeof u?u(a):a,d=l.x,m=void 0===d?0:d,h=l.y,v=void 0===h?0:h,b=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),y=G,x=X,w=window;if(f){var O=Oe(n),E="clientHeight",j="clientWidth";if(O===ie(n)&&"static"!==be(O=ye(n)).position&&"absolute"===s&&(E="scrollHeight",j="scrollWidth"),O=O,o===X||(o===G||o===z)&&i===$)x=Y,v-=(p&&w.visualViewport?w.visualViewport.height:O[E])-r.height,v*=c?1:-1;if(o===G||(o===X||o===Y)&&i===$)y=z,m-=(p&&w.visualViewport?w.visualViewport.width:O[j])-r.width,m*=c?1:-1}var A,M=Object.assign({position:s},f&&ke);return c?Object.assign({},M,((A={})[x]=g?"0":"",A[y]=b?"0":"",A.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",A)):Object.assign({},M,((t={})[x]=g?v+"px":"",t[y]=b?m+"px":"",t.transform="",t))}var Pe={passive:!0};var Le={left:"right",right:"left",bottom:"top",top:"bottom"};function _e(e){return e.replace(/left|right|bottom|top/g,(function(e){return Le[e]}))}var Te={start:"end",end:"start"};function qe(e){return e.replace(/start|end/g,(function(e){return Te[e]}))}function Ie(e){var t=ie(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function We(e){return me(ye(e)).left+Ie(e).scrollLeft}function Ve(e){var t=be(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ce(e){return["html","body","#document"].indexOf(oe(e))>=0?e.ownerDocument.body:se(e)&&Ve(e)?e:Ce(xe(e))}function He(e,t){var n;void 0===t&&(t=[]);var r=Ce(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ie(r),a=o?[i].concat(i.visualViewport||[],Ve(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(He(xe(a)))}function Fe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Be(e,t){return t===Q?Fe(function(e){var t=ie(e),n=ye(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+We(e),y:s}}(e)):ae(t)?function(e){var t=me(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Fe(function(e){var t,n=ye(e),r=Ie(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=pe(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=pe(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+We(e),c=-r.scrollTop;return"rtl"===be(o||n).direction&&(s+=pe(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(ye(e)))}function Re(e,t,n){var r="clippingParents"===t?function(e){var t=He(xe(e)),n=["absolute","fixed"].indexOf(be(e).position)>=0,r=n&&se(e)?Oe(e):e;return ae(r)?t.filter((function(e){return ae(e)&&ve(e,r)&&"body"!==oe(e)&&(!n||"static"!==be(e).position)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Be(e,n);return t.top=pe(r.top,t.top),t.right=le(r.right,t.right),t.bottom=le(r.bottom,t.bottom),t.left=pe(r.left,t.left),t}),Be(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ue(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?ue(o):null,a=o?De(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case X:t={x:s,y:n.y-r.height};break;case Y:t={x:s,y:n.y+n.height};break;case z:t={x:n.x+n.width,y:c};break;case G:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var f=i?Ee(i):null;if(null!=f){var u="y"===f?"height":"width";switch(a){case K:t[f]=t[f]-(n[u]/2-r[u]/2);break;case $:t[f]=t[f]+(n[u]/2-r[u]/2)}}return t}function Xe(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,s=n.rootBoundary,c=void 0===s?Q:s,f=n.elementContext,u=void 0===f?ee:f,p=n.altBoundary,l=void 0!==p&&p,d=n.padding,m=void 0===d?0:d,h=Ae("number"!=typeof m?m:Me(m,J)),v=u===ee?"reference":ee,b=e.rects.popper,g=e.elements[l?v:u],y=Re(ae(g)?g:g.contextElement||ye(e.elements.popper),a,c),x=me(e.elements.reference),w=Ue({reference:x,element:b,strategy:"absolute",placement:o}),O=Fe(Object.assign({},b,w)),E=u===ee?O:x,j={top:y.top-E.top+h.top,bottom:E.bottom-y.bottom+h.bottom,left:y.left-E.left+h.left,right:E.right-y.right+h.right},A=e.modifiersData.offset;if(u===ee&&A){var M=A[o];Object.keys(j).forEach((function(e){var t=[z,Y].indexOf(e)>=0?1:-1,n=[X,Y].indexOf(e)>=0?"y":"x";j[e]+=M[n]*t}))}return j}function Ye(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,f=void 0===c?ne:c,u=De(r),p=u?s?te:te.filter((function(e){return De(e)===u})):J,l=p.filter((function(e){return f.indexOf(e)>=0}));0===l.length&&(l=p,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=l.reduce((function(t,n){return t[n]=Xe(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[ue(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var ze={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,f=n.padding,u=n.boundary,p=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,m=void 0===d||d,h=n.allowedAutoPlacements,v=t.options.placement,b=ue(v),g=c||(b===v||!m?[_e(v)]:function(e){if(ue(e)===Z)return[];var t=_e(e);return[qe(e),t,qe(t)]}(v)),y=[v].concat(g).reduce((function(e,n){return e.concat(ue(n)===Z?Ye(t,{placement:n,boundary:u,rootBoundary:p,padding:f,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,E=!0,j=y[0],A=0;A<y.length;A++){var M=y[A],S=ue(M),D=De(M)===K,k=[X,Y].indexOf(S)>=0,N=k?"width":"height",P=Xe(t,{placement:M,boundary:u,rootBoundary:p,altBoundary:l,padding:f}),L=k?D?z:G:D?Y:X;x[N]>w[N]&&(L=_e(L));var _=_e(L),T=[];if(i&&T.push(P[S]<=0),s&&T.push(P[L]<=0,P[_]<=0),T.every((function(e){return e}))){j=M,E=!1;break}O.set(M,T)}if(E)for(var q=function(e){var t=y.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return j=t,"break"},I=m?3:1;I>0;I--){if("break"===q(I))break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ge(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ze(e){return[X,z,Y,G].some((function(t){return e[t]>=0}))}var Je={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=ne.reduce((function(e,n){return e[n]=function(e,t,n){var r=ue(e),o=[G,X].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[G,z].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],c=s.x,f=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=a}};var Ke={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,f=n.rootBoundary,u=n.altBoundary,p=n.padding,l=n.tether,d=void 0===l||l,m=n.tetherOffset,h=void 0===m?0:m,v=Xe(t,{boundary:c,rootBoundary:f,padding:p,altBoundary:u}),b=ue(t.placement),g=De(t.placement),y=!g,x=Ee(b),w="x"===x?"y":"x",O=t.modifiersData.popperOffsets,E=t.rects.reference,j=t.rects.popper,A="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,M="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(O){if(i){var k,N="y"===x?X:G,P="y"===x?Y:z,L="y"===x?"height":"width",_=O[x],T=_+v[N],q=_-v[P],I=d?-j[L]/2:0,W=g===K?E[L]:j[L],V=g===K?-j[L]:-E[L],C=t.elements.arrow,H=d&&C?he(C):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[N],R=F[P],U=je(0,E[L],H[L]),Z=y?E[L]/2-I-U-B-M.mainAxis:W-U-B-M.mainAxis,J=y?-E[L]/2+I+U+R+M.mainAxis:V+U+R+M.mainAxis,$=t.elements.arrow&&Oe(t.elements.arrow),Q=$?"y"===x?$.clientTop||0:$.clientLeft||0:0,ee=null!=(k=null==S?void 0:S[x])?k:0,te=_+J-ee,ne=je(d?le(T,_+Z-ee-Q):T,_,d?pe(q,te):q);O[x]=ne,D[x]=ne-_}if(s){var re,oe="x"===x?X:G,ie="x"===x?Y:z,ae=O[w],se="y"===w?"height":"width",ce=ae+v[oe],fe=ae-v[ie],de=-1!==[X,G].indexOf(b),me=null!=(re=null==S?void 0:S[w])?re:0,ve=de?ce:ae-E[se]-j[se]-me+M.altAxis,be=de?ae+E[se]+j[se]-me-M.altAxis:fe,ge=d&&de?function(e,t,n){var r=je(e,t,n);return r>n?n:r}(ve,ae,be):je(d?ve:ce,ae,d?be:fe);O[w]=ge,D[w]=ge-ae}t.modifiersData[r]=D}},requiresIfExists:["offset"]};function $e(e,t,n){void 0===n&&(n=!1);var r,o,i=se(t),a=se(t)&&function(e){var t=e.getBoundingClientRect(),n=de(t.width)/e.offsetWidth||1,r=de(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=ye(t),c=me(e,a),f={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==oe(t)||Ve(s))&&(f=(r=t)!==ie(r)&&se(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Ie(r)),se(t)?((u=me(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=We(s))),{x:c.left+f.scrollLeft-u.x,y:c.top+f.scrollTop-u.y,width:c.width,height:c.height}}function Qe(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function et(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var tt='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',nt=["name","enabled","phase","fn","effect","requires","options"];var rt="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",ot={placement:"bottom",modifiers:[],strategy:"absolute"};function it(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function at(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ot:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ot,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],f=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;p(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:ae(e)?He(e):e.contextElement?He(e.contextElement):[],popper:He(t)};var a,f,l,d=function(e){var t=Qe(e);return re.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));if(s.orderedModifiers=d.filter((function(e){return e.enabled})),"production"!==process.env.NODE_ENV){if(function(e){e.forEach((function(t){[].concat(Object.keys(t),nt).filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(et(tt,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(et(tt,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":re.indexOf(t.phase)<0&&console.error(et(tt,t.name,'"phase"',"either "+re.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(et(tt,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(et(tt,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(et(tt,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(et(tt,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+nt.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(et('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))}))}))}))}((a=[].concat(d,s.options.modifiers),f=function(e){return e.name},l=new Set,a.filter((function(e){var t=f(e);if(!l.has(t))return l.add(t),!0})))),ue(s.options.placement)===Z)s.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "));var m=be(t);[m.marginTop,m.marginRight,m.marginBottom,m.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:r}),a=function(){};c.push(i||a)}})),u.update()},forceUpdate:function(){if(!f){var e=s.elements,t=e.reference,n=e.popper;if(it(t,n)){s.rects={reference:$e(t,Oe(n),"fixed"===s.options.strategy),popper:he(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0,o=0;o<s.orderedModifiers.length;o++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var i=s.orderedModifiers[o],a=i.fn,c=i.options,p=void 0===c?{}:c,l=i.name;"function"==typeof a&&(s=a({state:s,options:p,name:l,instance:u})||s)}else s.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(rt)}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){p(),f=!0}};if(!it(e,t))return"production"!==process.env.NODE_ENV&&console.error(rt),u;function p(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(n).then((function(e){!f&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var st=at({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,c=ie(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach((function(e){e.addEventListener("scroll",n.update,Pe)})),s&&c.addEventListener("resize",n.update,Pe),function(){i&&f.forEach((function(e){e.removeEventListener("scroll",n.update,Pe)})),s&&c.removeEventListener("resize",n.update,Pe)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ue({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s;if("production"!==process.env.NODE_ENV){var f=be(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return f.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:ue(t.placement),variation:De(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ne(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ne(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},fe,Je,ze,Ke,Se,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Xe(t,{elementContext:"reference"}),s=Xe(t,{altBoundary:!0}),c=Ge(a,r),f=Ge(s,o,i),u=Ze(c),p=Ze(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),ct={mounted:function(e,n){var r={arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,onShow:function(){},onHide:function(){}};"object"===U(n.value)?Object.assign(r,n.value):r.content=n.value;var o=r.disabled,i=r.arrow,a=r.theme;if(!o){var s=function(e,n,r){var o=t.bkZIndexManager.getPopperIndex(),i=document.createElement("div");if(i.className="bk-popper ".concat(r?"light":"dark"),i.innerText=e,i.style.zIndex=String(o),n){var a=function(){var e=document.createElement("div");return e.className="bk-popper-arrow",e.setAttribute("data-popper-arrow",""),e}();i.appendChild(a)}return document.body.appendChild(i),i}(r.content,i,"light"===a);!function(e,t,n){var r=n.placement,o=n.distance,i=n.trigger,a=n.showOnInit,s=n.onShow,c=n.onHide,f=st(e,t,{placement:r,modifiers:[{name:"offset",options:{offset:[0,o]}}]});if("hover"===i){var u=["mouseleave","blur"];["mouseenter","focus"].forEach((function(t){e.addEventListener(t,p)})),u.forEach((function(t){e.addEventListener(t,l)}))}else"click"===i&&document.body.addEventListener("click",(function(n){e.contains(n.target)&&!t.hasAttribute("data-show")?p():t.hasAttribute("data-show")&&l()}));a&&p();function p(){t.setAttribute("data-show",""),s(),f.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(B(e.modifiers),[{name:"eventListeners",enabled:!0}])})})),f.update()}function l(){t.removeAttribute("data-show"),c(),f.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(B(e.modifiers),[{name:"eventListeners",enabled:!1}])})}))}}(e,s,r)}}};e.bkTooltips=ct,e.clickoutside=q,e.mousewheel=N,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,17 @@
1
+ import { ObjectDirective } from 'vue';
2
+ import { Placement } from '@popperjs/core';
3
+ import '@bkui-vue/styles/mixins/popper.less';
4
+ export declare type IOptions = {
5
+ arrow: boolean;
6
+ disabled: boolean;
7
+ placement: Placement;
8
+ content: string;
9
+ showOnInit: boolean;
10
+ theme: string;
11
+ trigger: string;
12
+ distance: number;
13
+ onShow: () => void;
14
+ onHide: () => void;
15
+ };
16
+ declare const tooltips: ObjectDirective;
17
+ export default tooltips;
@@ -0,0 +1,38 @@
1
+ .bk-divider {
2
+ position: relative;
3
+ background: #c4c6cc;
4
+ }
5
+ .bk-divider-horizontal {
6
+ width: 100%;
7
+ height: 1px;
8
+ margin: 1em 0;
9
+ }
10
+ .bk-divider-info {
11
+ position: absolute;
12
+ top: 50%;
13
+ padding: 0 1.4em;
14
+ color: #63656e;
15
+ background-color: white;
16
+ transform: translateY(-50%);
17
+ }
18
+ .bk-divider-info-center {
19
+ left: 50%;
20
+ transform: translateX(-50%) translateY(-50%);
21
+ }
22
+ .bk-divider-info .bk-divider-horizontal-left {
23
+ left: 2em;
24
+ }
25
+ .bk-divider-info .bk-divider-horizontal-right {
26
+ right: 2em;
27
+ }
28
+ .bk-divider-vertical .bk-divider-info {
29
+ padding: 20px 0;
30
+ }
31
+ .bk-divider-vertical {
32
+ display: inline-block;
33
+ width: 1px;
34
+ height: 100%;
35
+ min-height: 1em;
36
+ margin: 0 8px;
37
+ vertical-align: middle;
38
+ }
@@ -0,0 +1,40 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ direction: import("vue-types").VueTypeDef<string> & {
3
+ default: string;
4
+ };
5
+ align: import("vue-types").VueTypeDef<string> & {
6
+ default: string;
7
+ };
8
+ color: import("vue-types").VueTypeValidableDef<string> & {
9
+ default: string;
10
+ } & {
11
+ default: string;
12
+ };
13
+ width: import("vue-types").VueTypeValidableDef<number> & {
14
+ default: number;
15
+ } & {
16
+ default: number;
17
+ };
18
+ type: import("vue-types").VueTypeDef<string> & {
19
+ default: string;
20
+ };
21
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
22
+ direction?: unknown;
23
+ align?: unknown;
24
+ color?: unknown;
25
+ width?: unknown;
26
+ type?: unknown;
27
+ } & {
28
+ width: number;
29
+ color: string;
30
+ type: string;
31
+ direction: string;
32
+ align: string;
33
+ } & {}> & {}, {
34
+ width: number;
35
+ color: string;
36
+ type: string;
37
+ direction: string;
38
+ align: string;
39
+ }>;
40
+ export default _default;
@@ -0,0 +1,53 @@
1
+ @import '../styles/themes/themes.less';
2
+ .@{bk-prefix}-divider {
3
+ position: relative;
4
+ background: @light-gray;
5
+
6
+ &-horizontal {
7
+ width: 100%;
8
+ height: 1px;
9
+ margin: 1em 0;
10
+ }
11
+
12
+ &-info {
13
+ position: absolute;
14
+ top: 50%;
15
+ padding: 0 1.4em;
16
+ color: @default-color;
17
+ background-color: @white-color;
18
+ transform: translateY(-50%);
19
+
20
+ &-center {
21
+ left: 50%;
22
+ transform: translateX(-50%) translateY(-50%)
23
+ }
24
+
25
+ .bk-divider-horizontal {
26
+ &-left {
27
+ left: 2em;
28
+ }
29
+
30
+ &-right {
31
+ right: 2em;
32
+ }
33
+ }
34
+
35
+ .bk-divider-vertical & {
36
+ padding: 20px 0;
37
+ }
38
+ }
39
+
40
+ &-vertical {
41
+ display: inline-block;
42
+ width: 1px;
43
+ height: 100%;
44
+ min-height: 1em;
45
+ margin: 0 8px;
46
+ vertical-align: middle;
47
+ }
48
+
49
+
50
+ }
51
+
52
+
53
+