@luzmo/analytics-components-kit 1.0.1-alpha.97 → 1.0.1-alpha.98

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 (235) hide show
  1. package/components/ai-chat-message-assistant/index.cjs +1 -1
  2. package/components/ai-chat-message-assistant/index.js +1 -0
  3. package/components/ai-chat-messages-container/index.cjs +1 -1
  4. package/components/ai-chat-messages-container/index.js +2 -2
  5. package/components/ai-interaction-textarea/index.cjs +1 -1
  6. package/components/ai-interaction-textarea/index.js +2 -1
  7. package/components/area-chart-options.config-C7sMAHco.cjs +20 -0
  8. package/components/{area-chart-options.config-u8itidsi.js → area-chart-options.config-_J0sG4NF.js} +26 -14
  9. package/components/{bar-chart-options.config-DIirbAJ0.js → bar-chart-options.config-D1mb5TDl.js} +35 -21
  10. package/components/bar-chart-options.config-DcxEkOT5.cjs +20 -0
  11. package/components/box-plot-options.config-SrrbDEYW.cjs +20 -0
  12. package/components/{box-plot-options.config-BWROiguA.js → box-plot-options.config-xu_i6ms7.js} +88 -52
  13. package/components/{bubble-chart-options.config-4QD8VPhU.js → bubble-chart-options.config-BacgXkJ_.js} +18 -9
  14. package/components/bubble-chart-options.config-Ihn6eVQI.cjs +20 -0
  15. package/components/{bullet-chart-options.config-3bH7uekx.js → bullet-chart-options.config-CDPpX1yc.js} +1 -1
  16. package/components/{bullet-chart-options.config-tWb6Fio-.cjs → bullet-chart-options.config-DfS4Bwds.cjs} +1 -1
  17. package/components/calculate-data-item-icon-CEa82-5u.cjs +20 -0
  18. package/components/calculate-data-item-icon-DjlZwMdO.js +147 -0
  19. package/components/{choropleth-map-options.config-CMxx3ORp.js → choropleth-map-options.config-B_W9-rhe.js} +84 -63
  20. package/components/choropleth-map-options.config-ZW8yoZH2.cjs +20 -0
  21. package/components/{circular-gauge-options.config-DhIKn44k.js → circular-gauge-options.config-DAIjz4Rl.js} +36 -23
  22. package/components/circular-gauge-options.config-msZ4mfpN.cjs +20 -0
  23. package/components/color-B6LaL8qz.cjs +20 -0
  24. package/components/{color-B7m0j8lX.js → color-DuJ4-73S.js} +950 -941
  25. package/components/{color-range-utils-BSfqtB3A.js → color-range-utils-Bvo9sm5A.js} +32 -31
  26. package/components/color-range-utils-C5yXW7ZC.cjs +20 -0
  27. package/components/{column-chart-options.config-D5-yR7iq.js → column-chart-options.config-B5SjBVdy.js} +37 -27
  28. package/components/column-chart-options.config-BjDvA7i9.cjs +20 -0
  29. package/components/{conditional-number-options.config-DPYsdML5.js → conditional-number-options.config-BCEpSK9J.js} +40 -24
  30. package/components/conditional-number-options.config-DgzUo0xi.cjs +20 -0
  31. package/components/dataset-icon/index.cjs +1 -1
  32. package/components/dataset-icon/index.js +2 -1
  33. package/components/dataset-selector-list/index.cjs +1 -1
  34. package/components/dataset-selector-list/index.js +35 -32
  35. package/components/dataset-selector-row/index.cjs +9 -9
  36. package/components/dataset-selector-row/index.js +52 -50
  37. package/components/{date-comparison-filter-options.config-QaoWaFUn.cjs → date-comparison-filter-options.config-DAVncmi0.cjs} +1 -1
  38. package/components/{date-comparison-filter-options.config-CSwGyuBg.js → date-comparison-filter-options.config-JA_yYpJa.js} +6 -3
  39. package/components/{date-filter-options.config-n-zhWaYa.cjs → date-filter-options.config-CWPMtA18.cjs} +1 -1
  40. package/components/{date-filter-options.config-BTVyHRkp.js → date-filter-options.config-DBRxlTWy.js} +6 -3
  41. package/components/display-settings/index.cjs +1 -1
  42. package/components/display-settings/index.js +1 -1
  43. package/components/display-settings-binning/index.cjs +5 -5
  44. package/components/display-settings-binning/index.js +30 -29
  45. package/components/display-settings-datetime/index.cjs +29 -29
  46. package/components/display-settings-datetime/index.js +120 -112
  47. package/components/display-settings-grand-totals/index.cjs +4 -4
  48. package/components/display-settings-grand-totals/index.js +24 -23
  49. package/components/display-settings-numeric/index.cjs +48 -48
  50. package/components/display-settings-numeric/index.js +206 -190
  51. package/components/display-settings-period-over-period/index.cjs +16 -16
  52. package/components/display-settings-period-over-period/index.js +97 -91
  53. package/components/{donut-chart-options.config-3ZqX8Cbb.js → donut-chart-options.config-BulUEiaH.js} +37 -21
  54. package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
  55. package/components/draggable-data-item/index.cjs +5 -5
  56. package/components/draggable-data-item/index.js +46 -45
  57. package/components/draggable-data-item-level/index.cjs +11 -11
  58. package/components/draggable-data-item-level/index.js +73 -70
  59. package/components/{dropdown-filter-options.config-CGJTtgAX.js → dropdown-filter-options.config-D9dvPypF.js} +10 -7
  60. package/components/{dropdown-filter-options.config-DJvfCTk7.cjs → dropdown-filter-options.config-DS-MORmq.cjs} +1 -1
  61. package/components/droppable-slot/index.cjs +16 -16
  62. package/components/droppable-slot/index.js +223 -208
  63. package/components/edit-item/index.cjs +9 -9
  64. package/components/edit-item/index.js +119 -116
  65. package/components/edit-option/index.cjs +1 -1
  66. package/components/edit-option/index.js +1 -1
  67. package/components/edit-option-action-button-group/index.cjs +8 -8
  68. package/components/edit-option-action-button-group/index.js +53 -52
  69. package/components/{edit-option-base-Bh29-Cak.js → edit-option-base-DIc7iC-b.js} +1 -1
  70. package/components/{edit-option-base-tFr8Qg2B.cjs → edit-option-base-VhTih9T1.cjs} +1 -1
  71. package/components/edit-option-color-palette-picker/index.cjs +1 -1
  72. package/components/edit-option-color-palette-picker/index.js +1 -1
  73. package/components/edit-option-color-picker/index.cjs +1 -1
  74. package/components/edit-option-color-picker/index.js +1 -1
  75. package/components/edit-option-color-range/index.cjs +19 -19
  76. package/components/edit-option-color-range/index.js +117 -106
  77. package/components/edit-option-multi-language-field/index.cjs +3 -3
  78. package/components/edit-option-multi-language-field/index.js +27 -26
  79. package/components/edit-option-number-field/index.cjs +1 -1
  80. package/components/edit-option-number-field/index.js +1 -1
  81. package/components/edit-option-picker/index.cjs +5 -5
  82. package/components/edit-option-picker/index.js +7 -7
  83. package/components/edit-option-position-picker/index.cjs +4 -4
  84. package/components/edit-option-position-picker/index.js +25 -21
  85. package/components/edit-option-positions-number-field/index.cjs +9 -9
  86. package/components/edit-option-positions-number-field/index.js +81 -76
  87. package/components/edit-option-radio-button-group/index.cjs +6 -6
  88. package/components/edit-option-radio-button-group/index.js +22 -21
  89. package/components/edit-option-slider/index.cjs +1 -1
  90. package/components/edit-option-slider/index.js +1 -1
  91. package/components/edit-option-switch/index.cjs +1 -1
  92. package/components/edit-option-switch/index.js +1 -1
  93. package/components/edit-option-text-field/index.cjs +2 -2
  94. package/components/edit-option-text-field/index.js +23 -22
  95. package/components/en-BKBhKBXY.cjs +20 -0
  96. package/components/en-BOTjhwEc.js +1488 -0
  97. package/components/{en-GB-ialeqj_z.js → en-GB-CEHEs8F2.js} +1 -1
  98. package/components/{en-GB-TqvgIw9B.cjs → en-GB-DG6uS3sM.cjs} +1 -1
  99. package/components/{evolution-number-options.config-Bc9eKYnn.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
  100. package/components/{evolution-number-options.config-BIPO_4n3.js → evolution-number-options.config-DzkfeoIN.js} +14 -11
  101. package/components/{extrapolate-color-C0n1UDs-.cjs → extrapolate-color-0j_AeYkz.cjs} +1 -1
  102. package/components/{extrapolate-color-v1PimdQr.js → extrapolate-color-CC9CURf6.js} +1 -1
  103. package/components/filter-data-item-picker/index.cjs +7 -7
  104. package/components/filter-data-item-picker/index.js +86 -85
  105. package/components/filter-expression-picker/index.cjs +1 -1
  106. package/components/filter-expression-picker/index.js +1 -1
  107. package/components/filter-item/index.cjs +6 -6
  108. package/components/filter-item/index.js +119 -109
  109. package/components/filter-value-picker/index.cjs +2 -2
  110. package/components/filter-value-picker/index.js +36 -34
  111. package/components/filter-value-picker-datetime/index.cjs +8 -8
  112. package/components/filter-value-picker-datetime/index.js +71 -56
  113. package/components/filter-value-picker-hierarchy/index.cjs +12 -12
  114. package/components/filter-value-picker-hierarchy/index.js +124 -113
  115. package/components/filter-value-picker-numeric/index.cjs +8 -8
  116. package/components/filter-value-picker-numeric/index.js +110 -101
  117. package/components/focusable-B3E_hQmm.cjs +20 -0
  118. package/components/{focusable-BS2pbY7w.js → focusable-DCIFkpiW.js} +26 -24
  119. package/components/{funnel-chart-options.config-CrJy2U7_.js → funnel-chart-options.config-C_VjTOvD.js} +20 -5
  120. package/components/funnel-chart-options.config-D7H7gFcx.cjs +20 -0
  121. package/components/get-css-variable-DLiZYZEi.cjs +24 -0
  122. package/components/{get-css-variable-Bb7TxJdX.js → get-css-variable-YlLiVgo8.js} +37 -37
  123. package/components/grid/index.cjs +49 -43
  124. package/components/grid/index.js +1878 -2610
  125. package/components/{heat-map-options.config-CmL87j1j.js → heat-map-options.config-BnLWe8jS.js} +41 -35
  126. package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
  127. package/components/heat-table-options.config-B12JEYnp.cjs +20 -0
  128. package/components/{heat-table-options.config-BrCYAgYD.js → heat-table-options.config-CUsDdgUr.js} +88 -60
  129. package/components/helpers-DXQwEH1P.cjs +20 -0
  130. package/components/helpers-v1bPALRP.js +91 -0
  131. package/components/hexbin-map-options.config-DZERRhM8.cjs +20 -0
  132. package/components/{hexbin-map-options.config-BguV1w8q.js → hexbin-map-options.config-F-7uCqxb.js} +38 -20
  133. package/components/{index-BNAmjOkm.cjs → index-BPNsFiyq.cjs} +4 -4
  134. package/components/index-CDi4fe3N.js +1716 -0
  135. package/components/index-CQ9ck-BO.cjs +249 -0
  136. package/components/index-CXn67vdn.cjs +121 -0
  137. package/components/{index-haa7WNrl.js → index-CdIUfo-L.js} +481 -453
  138. package/components/index-Cz9vSXy6.cjs +20 -0
  139. package/components/{index-DdyZ2g5L.js → index-D0GBF6tg.js} +104 -94
  140. package/components/{index-CqKpf0B8.js → index-Do7O9azB.js} +123 -112
  141. package/components/index.cjs +1 -1
  142. package/components/index.js +5 -5
  143. package/components/item-options-configs.cjs +1 -1
  144. package/components/item-options-configs.js +37 -37
  145. package/components/{line-chart-options.config-BhirTGqD.js → line-chart-options.config-DB3IsXXr.js} +28 -13
  146. package/components/line-chart-options.config-DSugoe0t.cjs +20 -0
  147. package/components/{localize-CcDpq940.js → localize-BX7q0S0M.js} +10 -10
  148. package/components/{localize-C4zNlrwK.cjs → localize-r7ALOUy_.cjs} +1 -1
  149. package/components/{marker-map-options.config-Bx17jmiq.js → marker-map-options.config-DPJ955tt.js} +1 -1
  150. package/components/{marker-map-options.config-CvhCylSC.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
  151. package/components/pivot-table-options.config-BiJXKSFR.cjs +20 -0
  152. package/components/{pivot-table-options.config-CFc7y0IT.js → pivot-table-options.config-DNK_AIG7.js} +24 -15
  153. package/components/pyramid-chart-options.config-C4zbFS26.cjs +20 -0
  154. package/components/{pyramid-chart-options.config-2Waxb11l.js → pyramid-chart-options.config-CcVMatYx.js} +43 -29
  155. package/components/{radar-chart-options.config-CPN5fOl8.js → radar-chart-options.config-CUZn_3Fd.js} +23 -11
  156. package/components/radar-chart-options.config-EqQu6PTh.cjs +20 -0
  157. package/components/{regular-table-options.config-CFKCJQK1.js → regular-table-options.config-BoLZsBry.js} +23 -17
  158. package/components/{regular-table-options.config-YRuoijIk.cjs → regular-table-options.config-DTx3RTnS.cjs} +1 -1
  159. package/components/{route-map-options.config-CyolTJfK.js → route-map-options.config-CN86T7c0.js} +109 -87
  160. package/components/route-map-options.config-D7NJePTu.cjs +20 -0
  161. package/components/{sankey-diagram-options.config-D7OSvSqm.cjs → sankey-diagram-options.config-RFB83YLZ.cjs} +1 -1
  162. package/components/{sankey-diagram-options.config-Ldjk84ro.js → sankey-diagram-options.config-tVLKy_Zn.js} +10 -7
  163. package/components/scatter-plot-options.config-CFfGJXsV.cjs +20 -0
  164. package/components/{scatter-plot-options.config-CfxEfkQ1.js → scatter-plot-options.config-Corlzno1.js} +86 -56
  165. package/components/{search-filter-options.config-Oqco9BKj.cjs → search-filter-options.config-BCaDlYqZ.cjs} +1 -1
  166. package/components/{search-filter-options.config-C0syQmP4.js → search-filter-options.config-BE3JhR-F.js} +6 -3
  167. package/components/{set-locale-hKTMz37h.js → set-locale-Dp3N_gXN.js} +8 -1
  168. package/components/{slicer-filter-options.config-DmOe3440.js → slicer-filter-options.config-3JZZcw5C.js} +18 -9
  169. package/components/slicer-filter-options.config-DNI-XevE.cjs +20 -0
  170. package/components/{slider-filter-options.config-B1M8RcDs.js → slider-filter-options.config-DH4SS8wH.js} +1 -1
  171. package/components/{slider-filter-options.config-k45I-t6G.cjs → slider-filter-options.config-_8Z2zKmU.cjs} +1 -1
  172. package/components/slot-contents-picker/index.cjs +33 -33
  173. package/components/slot-contents-picker/index.js +205 -194
  174. package/components/slot-menu/index.cjs +12 -12
  175. package/components/slot-menu/index.js +184 -171
  176. package/components/slot-menu-list/index.cjs +3 -3
  177. package/components/slot-menu-list/index.js +103 -97
  178. package/components/speedometer-chart-options.config-BX9LTQBH.cjs +20 -0
  179. package/components/{speedometer-chart-options.config-CzOmuEF8.js → speedometer-chart-options.config-SL581yOa.js} +53 -31
  180. package/components/{spike-map-options.config-Cbt1YUw6.js → spike-map-options.config-C5KewecZ.js} +122 -91
  181. package/components/spike-map-options.config-DoBFXPmN.cjs +20 -0
  182. package/components/{sunburst-chart-options.config-Yrxc2i57.cjs → sunburst-chart-options.config-AbNjWS6t.cjs} +1 -1
  183. package/components/{sunburst-chart-options.config-_dyLQxPJ.js → sunburst-chart-options.config-CNauGQJv.js} +20 -9
  184. package/components/{symbol-map-options.config-BORL1NSU.js → symbol-map-options.config-DdDA4aa7.js} +20 -11
  185. package/components/symbol-map-options.config-m-lwLTtu.cjs +20 -0
  186. package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +20 -0
  187. package/components/{treemap-chart-options.config-B9i9qIm_.js → treemap-chart-options.config-D5AJaF_u.js} +37 -20
  188. package/components/utils.cjs +1 -1
  189. package/components/utils.js +97 -94
  190. package/components/{video-options.config-B0asgYt8.cjs → video-options.config-CGsDTwHc.cjs} +1 -1
  191. package/components/{video-options.config-UX-9MDfS.js → video-options.config-Dk36zJ1B.js} +10 -7
  192. package/components/viz-item-menu/index.cjs +2 -2
  193. package/components/viz-item-menu/index.js +5 -4
  194. package/components/{wordcloud-chart-options.config-BKtJT8Va.cjs → wordcloud-chart-options.config-vGfCW8kE.cjs} +1 -1
  195. package/components/{wordcloud-chart-options.config-BoB_KuhA.js → wordcloud-chart-options.config-w2NUIWVA.js} +7 -4
  196. package/custom-elements.json +0 -20
  197. package/package.json +1 -1
  198. package/components/area-chart-options.config-Bl8bhhOo.cjs +0 -20
  199. package/components/bar-chart-options.config-CePAqM83.cjs +0 -20
  200. package/components/box-plot-options.config-BVNrV2eD.cjs +0 -20
  201. package/components/bubble-chart-options.config-BDgOe3GQ.cjs +0 -20
  202. package/components/calculate-data-item-icon-DMDhKq_m.js +0 -147
  203. package/components/calculate-data-item-icon-DtVGbet3.cjs +0 -20
  204. package/components/choropleth-map-options.config-CWJACFd0.cjs +0 -20
  205. package/components/circular-gauge-options.config-BMxgq3zH.cjs +0 -20
  206. package/components/color-Czp4Im5q.cjs +0 -20
  207. package/components/color-range-utils-DYYR-iwx.cjs +0 -20
  208. package/components/column-chart-options.config-BV9R3ssH.cjs +0 -20
  209. package/components/conditional-number-options.config-Co099Qfm.cjs +0 -20
  210. package/components/donut-chart-options.config-BQyPgnC9.cjs +0 -20
  211. package/components/en-D3ihEGXg.js +0 -1483
  212. package/components/en-DZcn_iz_.cjs +0 -20
  213. package/components/focusable-QLh-LlNt.cjs +0 -20
  214. package/components/funnel-chart-options.config-DrP4AFgk.cjs +0 -20
  215. package/components/get-css-variable-Pzks_rOx.cjs +0 -24
  216. package/components/heat-map-options.config-CIHnPdYE.cjs +0 -20
  217. package/components/heat-table-options.config-DTlZRc_i.cjs +0 -20
  218. package/components/helpers-9I0oLoUB.cjs +0 -20
  219. package/components/helpers-bR8Ibjqh.js +0 -79
  220. package/components/hexbin-map-options.config-CKnn3VAB.cjs +0 -20
  221. package/components/index-BekTY3Em.cjs +0 -121
  222. package/components/index-CFL6gmIu.cjs +0 -20
  223. package/components/index-DNPULp4A.js +0 -1755
  224. package/components/index-DvkzMbLt.cjs +0 -249
  225. package/components/line-chart-options.config-Cqwou5u6.cjs +0 -20
  226. package/components/pivot-table-options.config-uZDAertf.cjs +0 -20
  227. package/components/pyramid-chart-options.config-DoGfEvzU.cjs +0 -20
  228. package/components/radar-chart-options.config-CtNUMN1l.cjs +0 -20
  229. package/components/route-map-options.config-CVTk5RVL.cjs +0 -20
  230. package/components/scatter-plot-options.config-5gN7pMTm.cjs +0 -20
  231. package/components/slicer-filter-options.config-CrusP6a0.cjs +0 -20
  232. package/components/speedometer-chart-options.config-B4ceg_qI.cjs +0 -20
  233. package/components/spike-map-options.config-BkkDqb4g.cjs +0 -20
  234. package/components/symbol-map-options.config-NpBKm64d.cjs +0 -20
  235. package/components/treemap-chart-options.config-x4J54WSw.cjs +0 -20
@@ -1,1483 +0,0 @@
1
- /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Luzmo web components (“Luzmo Web Components”)
6
- * must be used according to the Luzmo Terms of Service.
7
- * This license allows users with a current active Luzmo account
8
- * to use the Luzmo Web Components. This license terminates
9
- * automatically if a user no longer has an active Luzmo account.
10
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
- *
12
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- * SOFTWARE.
19
- * */
20
- import { i as z, l as lt, a as st, b as ge } from "./localize-CcDpq940.js";
21
- import { d as mt } from "./decompose-numeric-format-BuZcjH2k.js";
22
- function ct(e) {
23
- return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
24
- }
25
- function se(e, t) {
26
- if ((r = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e")) < 0) return null;
27
- var r, n = e.slice(0, r);
28
- return [
29
- n.length > 1 ? n[0] + n.slice(2) : n,
30
- +e.slice(r + 1)
31
- ];
32
- }
33
- function ft(e) {
34
- return e = se(Math.abs(e)), e ? e[1] : NaN;
35
- }
36
- function ht(e, t) {
37
- return function(r, n) {
38
- for (var l = r.length, o = [], s = 0, M = e[0], Y = 0; l > 0 && M > 0 && (Y + M + 1 > n && (M = Math.max(1, n - Y)), o.push(r.substring(l -= M, l + M)), !((Y += M + 1) > n)); )
39
- M = e[s = (s + 1) % e.length];
40
- return o.reverse().join(t);
41
- };
42
- }
43
- function gt(e) {
44
- return function(t) {
45
- return t.replace(/[0-9]/g, function(r) {
46
- return e[+r];
47
- });
48
- };
49
- }
50
- var yt = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
51
- function pe(e) {
52
- if (!(t = yt.exec(e))) throw new Error("invalid format: " + e);
53
- var t;
54
- return new Se({
55
- fill: t[1],
56
- align: t[2],
57
- sign: t[3],
58
- symbol: t[4],
59
- zero: t[5],
60
- width: t[6],
61
- comma: t[7],
62
- precision: t[8] && t[8].slice(1),
63
- trim: t[9],
64
- type: t[10]
65
- });
66
- }
67
- pe.prototype = Se.prototype;
68
- function Se(e) {
69
- this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
70
- }
71
- Se.prototype.toString = function() {
72
- return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
73
- };
74
- function dt(e) {
75
- e: for (var t = e.length, r = 1, n = -1, l; r < t; ++r)
76
- switch (e[r]) {
77
- case ".":
78
- n = l = r;
79
- break;
80
- case "0":
81
- n === 0 && (n = r), l = r;
82
- break;
83
- default:
84
- if (!+e[r]) break e;
85
- n > 0 && (n = 0);
86
- break;
87
- }
88
- return n > 0 ? e.slice(0, n) + e.slice(l + 1) : e;
89
- }
90
- var $e;
91
- function Mt(e, t) {
92
- var r = se(e, t);
93
- if (!r) return e + "";
94
- var n = r[0], l = r[1], o = l - ($e = Math.max(-8, Math.min(8, Math.floor(l / 3))) * 3) + 1, s = n.length;
95
- return o === s ? n : o > s ? n + new Array(o - s + 1).join("0") : o > 0 ? n.slice(0, o) + "." + n.slice(o) : "0." + new Array(1 - o).join("0") + se(e, Math.max(0, t + o - 1))[0];
96
- }
97
- function we(e, t) {
98
- var r = se(e, t);
99
- if (!r) return e + "";
100
- var n = r[0], l = r[1];
101
- return l < 0 ? "0." + new Array(-l).join("0") + n : n.length > l + 1 ? n.slice(0, l + 1) + "." + n.slice(l + 1) : n + new Array(l - n.length + 2).join("0");
102
- }
103
- const Fe = {
104
- "%": (e, t) => (e * 100).toFixed(t),
105
- b: (e) => Math.round(e).toString(2),
106
- c: (e) => e + "",
107
- d: ct,
108
- e: (e, t) => e.toExponential(t),
109
- f: (e, t) => e.toFixed(t),
110
- g: (e, t) => e.toPrecision(t),
111
- o: (e) => Math.round(e).toString(8),
112
- p: (e, t) => we(e * 100, t),
113
- r: we,
114
- s: Mt,
115
- X: (e) => Math.round(e).toString(16).toUpperCase(),
116
- x: (e) => Math.round(e).toString(16)
117
- };
118
- function ke(e) {
119
- return e;
120
- }
121
- var xe = Array.prototype.map, We = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
122
- function Tt(e) {
123
- var t = e.grouping === void 0 || e.thousands === void 0 ? ke : ht(xe.call(e.grouping, Number), e.thousands + ""), r = e.currency === void 0 ? "" : e.currency[0] + "", n = e.currency === void 0 ? "" : e.currency[1] + "", l = e.decimal === void 0 ? "." : e.decimal + "", o = e.numerals === void 0 ? ke : gt(xe.call(e.numerals, String)), s = e.percent === void 0 ? "%" : e.percent + "", M = e.minus === void 0 ? "−" : e.minus + "", Y = e.nan === void 0 ? "NaN" : e.nan + "";
124
- function m(u) {
125
- u = pe(u);
126
- var g = u.fill, c = u.align, y = u.sign, f = u.symbol, b = u.zero, F = u.width, A = u.comma, T = u.precision, D = u.trim, k = u.type;
127
- k === "n" ? (A = !0, k = "g") : Fe[k] || (T === void 0 && (T = 12), D = !0, k = "g"), (b || g === "0" && c === "=") && (b = !0, g = "0", c = "=");
128
- var H = f === "$" ? r : f === "#" && /[boxX]/.test(k) ? "0" + k.toLowerCase() : "", ue = f === "$" ? n : /[%p]/.test(k) ? s : "", $ = Fe[k], he = /[defgprs%]/.test(k);
129
- T = T === void 0 ? 6 : /[gprs]/.test(k) ? Math.max(1, Math.min(21, T)) : Math.max(0, Math.min(20, T));
130
- function ie(d) {
131
- var O = H, x = ue, q, le, E;
132
- if (k === "c")
133
- x = $(d) + x, d = "";
134
- else {
135
- d = +d;
136
- var j = d < 0 || 1 / d < 0;
137
- if (d = isNaN(d) ? Y : $(Math.abs(d), T), D && (d = dt(d)), j && +d == 0 && y !== "+" && (j = !1), O = (j ? y === "(" ? y : M : y === "-" || y === "(" ? "" : y) + O, x = (k === "s" ? We[8 + $e / 3] : "") + x + (j && y === "(" ? ")" : ""), he) {
138
- for (q = -1, le = d.length; ++q < le; )
139
- if (E = d.charCodeAt(q), 48 > E || E > 57) {
140
- x = (E === 46 ? l + d.slice(q + 1) : d.slice(q)) + x, d = d.slice(0, q);
141
- break;
142
- }
143
- }
144
- }
145
- A && !b && (d = t(d, 1 / 0));
146
- var B = O.length + d.length + x.length, L = B < F ? new Array(F - B + 1).join(g) : "";
147
- switch (A && b && (d = t(L + d, L.length ? F - x.length : 1 / 0), L = ""), c) {
148
- case "<":
149
- d = O + d + x + L;
150
- break;
151
- case "=":
152
- d = O + L + d + x;
153
- break;
154
- case "^":
155
- d = L.slice(0, B = L.length >> 1) + O + d + x + L.slice(B);
156
- break;
157
- default:
158
- d = L + O + d + x;
159
- break;
160
- }
161
- return o(d);
162
- }
163
- return ie.toString = function() {
164
- return u + "";
165
- }, ie;
166
- }
167
- function S(u, g) {
168
- var c = m((u = pe(u), u.type = "f", u)), y = Math.max(-8, Math.min(8, Math.floor(ft(g) / 3))) * 3, f = Math.pow(10, -y), b = We[8 + y / 3];
169
- return function(F) {
170
- return c(f * F) + b;
171
- };
172
- }
173
- return {
174
- format: m,
175
- formatPrefix: S
176
- };
177
- }
178
- const ye = /* @__PURE__ */ new Date(), de = /* @__PURE__ */ new Date();
179
- function w(e, t, r, n) {
180
- function l(o) {
181
- return e(o = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+o)), o;
182
- }
183
- return l.floor = (o) => (e(o = /* @__PURE__ */ new Date(+o)), o), l.ceil = (o) => (e(o = new Date(o - 1)), t(o, 1), e(o), o), l.round = (o) => {
184
- const s = l(o), M = l.ceil(o);
185
- return o - s < M - o ? s : M;
186
- }, l.offset = (o, s) => (t(o = /* @__PURE__ */ new Date(+o), s == null ? 1 : Math.floor(s)), o), l.range = (o, s, M) => {
187
- const Y = [];
188
- if (o = l.ceil(o), M = M == null ? 1 : Math.floor(M), !(o < s) || !(M > 0)) return Y;
189
- let m;
190
- do
191
- Y.push(m = /* @__PURE__ */ new Date(+o)), t(o, M), e(o);
192
- while (m < o && o < s);
193
- return Y;
194
- }, l.filter = (o) => w((s) => {
195
- if (s >= s) for (; e(s), !o(s); ) s.setTime(s - 1);
196
- }, (s, M) => {
197
- if (s >= s)
198
- if (M < 0) for (; ++M <= 0; )
199
- for (; t(s, -1), !o(s); )
200
- ;
201
- else for (; --M >= 0; )
202
- for (; t(s, 1), !o(s); )
203
- ;
204
- }), r && (l.count = (o, s) => (ye.setTime(+o), de.setTime(+s), e(ye), e(de), Math.floor(r(ye, de))), l.every = (o) => (o = Math.floor(o), !isFinite(o) || !(o > 0) ? null : o > 1 ? l.filter(n ? (s) => n(s) % o === 0 : (s) => l.count(0, s) % o === 0) : l)), l;
205
- }
206
- const ne = 1e3, I = ne * 60, ae = I * 60, oe = ae * 24, Ge = oe * 7, ze = w((e) => {
207
- e.setTime(e - e.getMilliseconds());
208
- }, (e, t) => {
209
- e.setTime(+e + t * ne);
210
- }, (e, t) => (t - e) / ne, (e) => e.getUTCSeconds());
211
- ze.range;
212
- const Pe = w((e) => {
213
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * ne);
214
- }, (e, t) => {
215
- e.setTime(+e + t * I);
216
- }, (e, t) => (t - e) / I, (e) => e.getMinutes());
217
- Pe.range;
218
- const pt = w((e) => {
219
- e.setUTCSeconds(0, 0);
220
- }, (e, t) => {
221
- e.setTime(+e + t * I);
222
- }, (e, t) => (t - e) / I, (e) => e.getUTCMinutes());
223
- pt.range;
224
- const Re = w((e) => {
225
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * ne - e.getMinutes() * I);
226
- }, (e, t) => {
227
- e.setTime(+e + t * ae);
228
- }, (e, t) => (t - e) / ae, (e) => e.getHours());
229
- Re.range;
230
- const vt = w((e) => {
231
- e.setUTCMinutes(0, 0, 0);
232
- }, (e, t) => {
233
- e.setTime(+e + t * ae);
234
- }, (e, t) => (t - e) / ae, (e) => e.getUTCHours());
235
- vt.range;
236
- const fe = w(
237
- (e) => e.setHours(0, 0, 0, 0),
238
- (e, t) => e.setDate(e.getDate() + t),
239
- (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * I) / oe,
240
- (e) => e.getDate() - 1
241
- );
242
- fe.range;
243
- const Ce = w((e) => {
244
- e.setUTCHours(0, 0, 0, 0);
245
- }, (e, t) => {
246
- e.setUTCDate(e.getUTCDate() + t);
247
- }, (e, t) => (t - e) / oe, (e) => e.getUTCDate() - 1);
248
- Ce.range;
249
- const Yt = w((e) => {
250
- e.setUTCHours(0, 0, 0, 0);
251
- }, (e, t) => {
252
- e.setUTCDate(e.getUTCDate() + t);
253
- }, (e, t) => (t - e) / oe, (e) => Math.floor(e / oe));
254
- Yt.range;
255
- function R(e) {
256
- return w((t) => {
257
- t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
258
- }, (t, r) => {
259
- t.setDate(t.getDate() + r * 7);
260
- }, (t, r) => (r - t - (r.getTimezoneOffset() - t.getTimezoneOffset()) * I) / Ge);
261
- }
262
- const De = R(0), me = R(1), St = R(2), Ct = R(3), X = R(4), Dt = R(5), bt = R(6);
263
- De.range;
264
- me.range;
265
- St.range;
266
- Ct.range;
267
- X.range;
268
- Dt.range;
269
- bt.range;
270
- function Z(e) {
271
- return w((t) => {
272
- t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
273
- }, (t, r) => {
274
- t.setUTCDate(t.getUTCDate() + r * 7);
275
- }, (t, r) => (r - t) / Ge);
276
- }
277
- const Ze = Z(0), ce = Z(1), Ut = Z(2), wt = Z(3), K = Z(4), Ft = Z(5), kt = Z(6);
278
- Ze.range;
279
- ce.range;
280
- Ut.range;
281
- wt.range;
282
- K.range;
283
- Ft.range;
284
- kt.range;
285
- const Ee = w((e) => {
286
- e.setDate(1), e.setHours(0, 0, 0, 0);
287
- }, (e, t) => {
288
- e.setMonth(e.getMonth() + t);
289
- }, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
290
- Ee.range;
291
- const xt = w((e) => {
292
- e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
293
- }, (e, t) => {
294
- e.setUTCMonth(e.getUTCMonth() + t);
295
- }, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
296
- xt.range;
297
- const Q = w((e) => {
298
- e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
299
- }, (e, t) => {
300
- e.setFullYear(e.getFullYear() + t);
301
- }, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
302
- Q.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : w((t) => {
303
- t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
304
- }, (t, r) => {
305
- t.setFullYear(t.getFullYear() + r * e);
306
- });
307
- Q.range;
308
- const P = w((e) => {
309
- e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
310
- }, (e, t) => {
311
- e.setUTCFullYear(e.getUTCFullYear() + t);
312
- }, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
313
- P.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : w((t) => {
314
- t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
315
- }, (t, r) => {
316
- t.setUTCFullYear(t.getUTCFullYear() + r * e);
317
- });
318
- P.range;
319
- function Me(e) {
320
- if (0 <= e.y && e.y < 100) {
321
- var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
322
- return t.setFullYear(e.y), t;
323
- }
324
- return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L);
325
- }
326
- function Te(e) {
327
- if (0 <= e.y && e.y < 100) {
328
- var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L));
329
- return t.setUTCFullYear(e.y), t;
330
- }
331
- return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L));
332
- }
333
- function ee(e, t, r) {
334
- return { y: e, m: t, d: r, H: 0, M: 0, S: 0, L: 0 };
335
- }
336
- function ve(e) {
337
- var t = e.dateTime, r = e.date, n = e.time, l = e.periods, o = e.days, s = e.shortDays, M = e.months, Y = e.shortMonths, m = te(l), S = re(l), u = te(o), g = re(o), c = te(s), y = re(s), f = te(M), b = re(M), F = te(Y), A = re(Y), T = {
338
- a: j,
339
- A: B,
340
- b: L,
341
- B: Ke,
342
- c: null,
343
- d: Oe,
344
- e: Oe,
345
- f: Kt,
346
- g: sr,
347
- G: cr,
348
- H: Bt,
349
- I: Jt,
350
- j: Xt,
351
- L: je,
352
- m: er,
353
- M: tr,
354
- p: et,
355
- q: tt,
356
- Q: Ie,
357
- s: Qe,
358
- S: rr,
359
- u: nr,
360
- U: ar,
361
- V: or,
362
- w: ur,
363
- W: ir,
364
- x: null,
365
- X: null,
366
- y: lr,
367
- Y: mr,
368
- Z: fr,
369
- "%": qe
370
- }, D = {
371
- a: rt,
372
- A: nt,
373
- b: at,
374
- B: ot,
375
- c: null,
376
- d: Ve,
377
- e: Ve,
378
- f: dr,
379
- g: Ur,
380
- G: Fr,
381
- H: hr,
382
- I: gr,
383
- j: yr,
384
- L: Je,
385
- m: Mr,
386
- M: Tr,
387
- p: ut,
388
- q: it,
389
- Q: Ie,
390
- s: Qe,
391
- S: pr,
392
- u: vr,
393
- U: Yr,
394
- V: Sr,
395
- w: Cr,
396
- W: Dr,
397
- x: null,
398
- X: null,
399
- y: br,
400
- Y: wr,
401
- Z: kr,
402
- "%": qe
403
- }, k = {
404
- a: ie,
405
- A: d,
406
- b: O,
407
- B: x,
408
- c: q,
409
- d: Le,
410
- e: Le,
411
- f: Rt,
412
- g: Ne,
413
- G: _e,
414
- H: He,
415
- I: He,
416
- j: $t,
417
- L: Pt,
418
- m: Qt,
419
- M: Gt,
420
- p: he,
421
- q: It,
422
- Q: Et,
423
- s: jt,
424
- S: zt,
425
- u: Lt,
426
- U: Ht,
427
- V: Ot,
428
- w: Nt,
429
- W: Vt,
430
- x: le,
431
- X: E,
432
- y: Ne,
433
- Y: _e,
434
- Z: qt,
435
- "%": Zt
436
- };
437
- T.x = H(r, T), T.X = H(n, T), T.c = H(t, T), D.x = H(r, D), D.X = H(n, D), D.c = H(t, D);
438
- function H(i, h) {
439
- return function(p) {
440
- var a = [], W = -1, C = 0, _ = i.length, N, G, Ue;
441
- for (p instanceof Date || (p = /* @__PURE__ */ new Date(+p)); ++W < _; )
442
- i.charCodeAt(W) === 37 && (a.push(i.slice(C, W)), (G = Ae[N = i.charAt(++W)]) != null ? N = i.charAt(++W) : G = N === "e" ? " " : "0", (Ue = h[N]) && (N = Ue(p, G)), a.push(N), C = W + 1);
443
- return a.push(i.slice(C, W)), a.join("");
444
- };
445
- }
446
- function ue(i, h) {
447
- return function(p) {
448
- var a = ee(1900, void 0, 1), W = $(a, i, p += "", 0), C, _;
449
- if (W != p.length) return null;
450
- if ("Q" in a) return new Date(a.Q);
451
- if ("s" in a) return new Date(a.s * 1e3 + ("L" in a ? a.L : 0));
452
- if (h && !("Z" in a) && (a.Z = 0), "p" in a && (a.H = a.H % 12 + a.p * 12), a.m === void 0 && (a.m = "q" in a ? a.q : 0), "V" in a) {
453
- if (a.V < 1 || a.V > 53) return null;
454
- "w" in a || (a.w = 1), "Z" in a ? (C = Te(ee(a.y, 0, 1)), _ = C.getUTCDay(), C = _ > 4 || _ === 0 ? ce.ceil(C) : ce(C), C = Ce.offset(C, (a.V - 1) * 7), a.y = C.getUTCFullYear(), a.m = C.getUTCMonth(), a.d = C.getUTCDate() + (a.w + 6) % 7) : (C = Me(ee(a.y, 0, 1)), _ = C.getDay(), C = _ > 4 || _ === 0 ? me.ceil(C) : me(C), C = fe.offset(C, (a.V - 1) * 7), a.y = C.getFullYear(), a.m = C.getMonth(), a.d = C.getDate() + (a.w + 6) % 7);
455
- } else ("W" in a || "U" in a) && ("w" in a || (a.w = "u" in a ? a.u % 7 : "W" in a ? 1 : 0), _ = "Z" in a ? Te(ee(a.y, 0, 1)).getUTCDay() : Me(ee(a.y, 0, 1)).getDay(), a.m = 0, a.d = "W" in a ? (a.w + 6) % 7 + a.W * 7 - (_ + 5) % 7 : a.w + a.U * 7 - (_ + 6) % 7);
456
- return "Z" in a ? (a.H += a.Z / 100 | 0, a.M += a.Z % 100, Te(a)) : Me(a);
457
- };
458
- }
459
- function $(i, h, p, a) {
460
- for (var W = 0, C = h.length, _ = p.length, N, G; W < C; ) {
461
- if (a >= _) return -1;
462
- if (N = h.charCodeAt(W++), N === 37) {
463
- if (N = h.charAt(W++), G = k[N in Ae ? h.charAt(W++) : N], !G || (a = G(i, p, a)) < 0) return -1;
464
- } else if (N != p.charCodeAt(a++))
465
- return -1;
466
- }
467
- return a;
468
- }
469
- function he(i, h, p) {
470
- var a = m.exec(h.slice(p));
471
- return a ? (i.p = S.get(a[0].toLowerCase()), p + a[0].length) : -1;
472
- }
473
- function ie(i, h, p) {
474
- var a = c.exec(h.slice(p));
475
- return a ? (i.w = y.get(a[0].toLowerCase()), p + a[0].length) : -1;
476
- }
477
- function d(i, h, p) {
478
- var a = u.exec(h.slice(p));
479
- return a ? (i.w = g.get(a[0].toLowerCase()), p + a[0].length) : -1;
480
- }
481
- function O(i, h, p) {
482
- var a = F.exec(h.slice(p));
483
- return a ? (i.m = A.get(a[0].toLowerCase()), p + a[0].length) : -1;
484
- }
485
- function x(i, h, p) {
486
- var a = f.exec(h.slice(p));
487
- return a ? (i.m = b.get(a[0].toLowerCase()), p + a[0].length) : -1;
488
- }
489
- function q(i, h, p) {
490
- return $(i, t, h, p);
491
- }
492
- function le(i, h, p) {
493
- return $(i, r, h, p);
494
- }
495
- function E(i, h, p) {
496
- return $(i, n, h, p);
497
- }
498
- function j(i) {
499
- return s[i.getDay()];
500
- }
501
- function B(i) {
502
- return o[i.getDay()];
503
- }
504
- function L(i) {
505
- return Y[i.getMonth()];
506
- }
507
- function Ke(i) {
508
- return M[i.getMonth()];
509
- }
510
- function et(i) {
511
- return l[+(i.getHours() >= 12)];
512
- }
513
- function tt(i) {
514
- return 1 + ~~(i.getMonth() / 3);
515
- }
516
- function rt(i) {
517
- return s[i.getUTCDay()];
518
- }
519
- function nt(i) {
520
- return o[i.getUTCDay()];
521
- }
522
- function at(i) {
523
- return Y[i.getUTCMonth()];
524
- }
525
- function ot(i) {
526
- return M[i.getUTCMonth()];
527
- }
528
- function ut(i) {
529
- return l[+(i.getUTCHours() >= 12)];
530
- }
531
- function it(i) {
532
- return 1 + ~~(i.getUTCMonth() / 3);
533
- }
534
- return {
535
- format: function(i) {
536
- var h = H(i += "", T);
537
- return h.toString = function() {
538
- return i;
539
- }, h;
540
- },
541
- parse: function(i) {
542
- var h = ue(i += "", !1);
543
- return h.toString = function() {
544
- return i;
545
- }, h;
546
- },
547
- utcFormat: function(i) {
548
- var h = H(i += "", D);
549
- return h.toString = function() {
550
- return i;
551
- }, h;
552
- },
553
- utcParse: function(i) {
554
- var h = ue(i += "", !0);
555
- return h.toString = function() {
556
- return i;
557
- }, h;
558
- }
559
- };
560
- }
561
- var Ae = { "-": "", _: " ", 0: "0" }, U = /^\s*\d+/, Wt = /^%/, At = /[\\^$*+?|[\]().{}]/g;
562
- function v(e, t, r) {
563
- var n = e < 0 ? "-" : "", l = (n ? -e : e) + "", o = l.length;
564
- return n + (o < r ? new Array(r - o + 1).join(t) + l : l);
565
- }
566
- function _t(e) {
567
- return e.replace(At, "\\$&");
568
- }
569
- function te(e) {
570
- return new RegExp("^(?:" + e.map(_t).join("|") + ")", "i");
571
- }
572
- function re(e) {
573
- return new Map(e.map((t, r) => [t.toLowerCase(), r]));
574
- }
575
- function Nt(e, t, r) {
576
- var n = U.exec(t.slice(r, r + 1));
577
- return n ? (e.w = +n[0], r + n[0].length) : -1;
578
- }
579
- function Lt(e, t, r) {
580
- var n = U.exec(t.slice(r, r + 1));
581
- return n ? (e.u = +n[0], r + n[0].length) : -1;
582
- }
583
- function Ht(e, t, r) {
584
- var n = U.exec(t.slice(r, r + 2));
585
- return n ? (e.U = +n[0], r + n[0].length) : -1;
586
- }
587
- function Ot(e, t, r) {
588
- var n = U.exec(t.slice(r, r + 2));
589
- return n ? (e.V = +n[0], r + n[0].length) : -1;
590
- }
591
- function Vt(e, t, r) {
592
- var n = U.exec(t.slice(r, r + 2));
593
- return n ? (e.W = +n[0], r + n[0].length) : -1;
594
- }
595
- function _e(e, t, r) {
596
- var n = U.exec(t.slice(r, r + 4));
597
- return n ? (e.y = +n[0], r + n[0].length) : -1;
598
- }
599
- function Ne(e, t, r) {
600
- var n = U.exec(t.slice(r, r + 2));
601
- return n ? (e.y = +n[0] + (+n[0] > 68 ? 1900 : 2e3), r + n[0].length) : -1;
602
- }
603
- function qt(e, t, r) {
604
- var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r, r + 6));
605
- return n ? (e.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), r + n[0].length) : -1;
606
- }
607
- function It(e, t, r) {
608
- var n = U.exec(t.slice(r, r + 1));
609
- return n ? (e.q = n[0] * 3 - 3, r + n[0].length) : -1;
610
- }
611
- function Qt(e, t, r) {
612
- var n = U.exec(t.slice(r, r + 2));
613
- return n ? (e.m = n[0] - 1, r + n[0].length) : -1;
614
- }
615
- function Le(e, t, r) {
616
- var n = U.exec(t.slice(r, r + 2));
617
- return n ? (e.d = +n[0], r + n[0].length) : -1;
618
- }
619
- function $t(e, t, r) {
620
- var n = U.exec(t.slice(r, r + 3));
621
- return n ? (e.m = 0, e.d = +n[0], r + n[0].length) : -1;
622
- }
623
- function He(e, t, r) {
624
- var n = U.exec(t.slice(r, r + 2));
625
- return n ? (e.H = +n[0], r + n[0].length) : -1;
626
- }
627
- function Gt(e, t, r) {
628
- var n = U.exec(t.slice(r, r + 2));
629
- return n ? (e.M = +n[0], r + n[0].length) : -1;
630
- }
631
- function zt(e, t, r) {
632
- var n = U.exec(t.slice(r, r + 2));
633
- return n ? (e.S = +n[0], r + n[0].length) : -1;
634
- }
635
- function Pt(e, t, r) {
636
- var n = U.exec(t.slice(r, r + 3));
637
- return n ? (e.L = +n[0], r + n[0].length) : -1;
638
- }
639
- function Rt(e, t, r) {
640
- var n = U.exec(t.slice(r, r + 6));
641
- return n ? (e.L = Math.floor(n[0] / 1e3), r + n[0].length) : -1;
642
- }
643
- function Zt(e, t, r) {
644
- var n = Wt.exec(t.slice(r, r + 1));
645
- return n ? r + n[0].length : -1;
646
- }
647
- function Et(e, t, r) {
648
- var n = U.exec(t.slice(r));
649
- return n ? (e.Q = +n[0], r + n[0].length) : -1;
650
- }
651
- function jt(e, t, r) {
652
- var n = U.exec(t.slice(r));
653
- return n ? (e.s = +n[0], r + n[0].length) : -1;
654
- }
655
- function Oe(e, t) {
656
- return v(e.getDate(), t, 2);
657
- }
658
- function Bt(e, t) {
659
- return v(e.getHours(), t, 2);
660
- }
661
- function Jt(e, t) {
662
- return v(e.getHours() % 12 || 12, t, 2);
663
- }
664
- function Xt(e, t) {
665
- return v(1 + fe.count(Q(e), e), t, 3);
666
- }
667
- function je(e, t) {
668
- return v(e.getMilliseconds(), t, 3);
669
- }
670
- function Kt(e, t) {
671
- return je(e, t) + "000";
672
- }
673
- function er(e, t) {
674
- return v(e.getMonth() + 1, t, 2);
675
- }
676
- function tr(e, t) {
677
- return v(e.getMinutes(), t, 2);
678
- }
679
- function rr(e, t) {
680
- return v(e.getSeconds(), t, 2);
681
- }
682
- function nr(e) {
683
- var t = e.getDay();
684
- return t === 0 ? 7 : t;
685
- }
686
- function ar(e, t) {
687
- return v(De.count(Q(e) - 1, e), t, 2);
688
- }
689
- function Be(e) {
690
- var t = e.getDay();
691
- return t >= 4 || t === 0 ? X(e) : X.ceil(e);
692
- }
693
- function or(e, t) {
694
- return e = Be(e), v(X.count(Q(e), e) + (Q(e).getDay() === 4), t, 2);
695
- }
696
- function ur(e) {
697
- return e.getDay();
698
- }
699
- function ir(e, t) {
700
- return v(me.count(Q(e) - 1, e), t, 2);
701
- }
702
- function lr(e, t) {
703
- return v(e.getFullYear() % 100, t, 2);
704
- }
705
- function sr(e, t) {
706
- return e = Be(e), v(e.getFullYear() % 100, t, 2);
707
- }
708
- function mr(e, t) {
709
- return v(e.getFullYear() % 1e4, t, 4);
710
- }
711
- function cr(e, t) {
712
- var r = e.getDay();
713
- return e = r >= 4 || r === 0 ? X(e) : X.ceil(e), v(e.getFullYear() % 1e4, t, 4);
714
- }
715
- function fr(e) {
716
- var t = e.getTimezoneOffset();
717
- return (t > 0 ? "-" : (t *= -1, "+")) + v(t / 60 | 0, "0", 2) + v(t % 60, "0", 2);
718
- }
719
- function Ve(e, t) {
720
- return v(e.getUTCDate(), t, 2);
721
- }
722
- function hr(e, t) {
723
- return v(e.getUTCHours(), t, 2);
724
- }
725
- function gr(e, t) {
726
- return v(e.getUTCHours() % 12 || 12, t, 2);
727
- }
728
- function yr(e, t) {
729
- return v(1 + Ce.count(P(e), e), t, 3);
730
- }
731
- function Je(e, t) {
732
- return v(e.getUTCMilliseconds(), t, 3);
733
- }
734
- function dr(e, t) {
735
- return Je(e, t) + "000";
736
- }
737
- function Mr(e, t) {
738
- return v(e.getUTCMonth() + 1, t, 2);
739
- }
740
- function Tr(e, t) {
741
- return v(e.getUTCMinutes(), t, 2);
742
- }
743
- function pr(e, t) {
744
- return v(e.getUTCSeconds(), t, 2);
745
- }
746
- function vr(e) {
747
- var t = e.getUTCDay();
748
- return t === 0 ? 7 : t;
749
- }
750
- function Yr(e, t) {
751
- return v(Ze.count(P(e) - 1, e), t, 2);
752
- }
753
- function Xe(e) {
754
- var t = e.getUTCDay();
755
- return t >= 4 || t === 0 ? K(e) : K.ceil(e);
756
- }
757
- function Sr(e, t) {
758
- return e = Xe(e), v(K.count(P(e), e) + (P(e).getUTCDay() === 4), t, 2);
759
- }
760
- function Cr(e) {
761
- return e.getUTCDay();
762
- }
763
- function Dr(e, t) {
764
- return v(ce.count(P(e) - 1, e), t, 2);
765
- }
766
- function br(e, t) {
767
- return v(e.getUTCFullYear() % 100, t, 2);
768
- }
769
- function Ur(e, t) {
770
- return e = Xe(e), v(e.getUTCFullYear() % 100, t, 2);
771
- }
772
- function wr(e, t) {
773
- return v(e.getUTCFullYear() % 1e4, t, 4);
774
- }
775
- function Fr(e, t) {
776
- var r = e.getUTCDay();
777
- return e = r >= 4 || r === 0 ? K(e) : K.ceil(e), v(e.getUTCFullYear() % 1e4, t, 4);
778
- }
779
- function kr() {
780
- return "+0000";
781
- }
782
- function qe() {
783
- return "%";
784
- }
785
- function Ie(e) {
786
- return +e;
787
- }
788
- function Qe(e) {
789
- return Math.floor(+e / 1e3);
790
- }
791
- var J, V;
792
- xr({
793
- dateTime: "%x, %X",
794
- date: "%-m/%-d/%Y",
795
- time: "%-I:%M:%S %p",
796
- periods: ["AM", "PM"],
797
- days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
798
- shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
799
- months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
800
- shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
801
- });
802
- function xr(e) {
803
- return J = ve(e), V = J.format, J.parse, J.utcFormat, J.utcParse, J;
804
- }
805
- const Ye = [
806
- // YEAR
807
- [
808
- 1,
809
- // years
810
- 4,
811
- // quarters
812
- 12,
813
- // months
814
- 52,
815
- // weeks
816
- 365,
817
- // days
818
- 365 * 24,
819
- // hours
820
- 365 * 24 * 60,
821
- // minutes
822
- 365 * 24 * 60 * 60,
823
- // seconds
824
- 365 * 24 * 60 * 60 * 1e3
825
- // milliseconds
826
- ],
827
- // QUARTERS
828
- [
829
- 1 / 4,
830
- // year
831
- 1,
832
- // quarters
833
- 3,
834
- // months
835
- 13,
836
- // weeks
837
- 91,
838
- // days
839
- 2184,
840
- // hours
841
- 2184 * 60,
842
- // minutes
843
- 2184 * 60 * 60,
844
- // seconds
845
- 2184 * 60 * 60 * 1e3
846
- // milliseconds
847
- ],
848
- // MONTHS
849
- [
850
- 1 / 12,
851
- // year
852
- 1 / 3,
853
- // quarters
854
- 1,
855
- // months
856
- 4,
857
- // weeks
858
- 30,
859
- // days
860
- 720,
861
- // hours
862
- 720 * 60,
863
- // minutes
864
- 720 * 60 * 60,
865
- // seconds
866
- 720 * 60 * 60 * 1e3
867
- // milliseconds
868
- ],
869
- // WEEKS
870
- [
871
- 1 / 52,
872
- // year
873
- 1 / 13,
874
- // quarters
875
- 1 / 4,
876
- // months
877
- 1,
878
- // weeks
879
- 7,
880
- // days
881
- 168,
882
- // hours
883
- 10080,
884
- // minutes
885
- 10080 * 60,
886
- // seconds
887
- 10080 * 60 * 1e3
888
- // milliseconds
889
- ],
890
- // DAYS
891
- [
892
- 1 / 365,
893
- // year
894
- 1 / 91,
895
- // quarters
896
- 1 / 30,
897
- // months
898
- 1 / 7,
899
- // weeks
900
- 1,
901
- // days
902
- 24,
903
- // hours
904
- 1440,
905
- // minutes
906
- 1440 * 60,
907
- // seconds
908
- 1440 * 60 * 1e3
909
- // milliseconds
910
- ],
911
- // HOURS
912
- [
913
- 1 / (365 * 24),
914
- // year
915
- 1 / 2184,
916
- // quarters
917
- 1 / 720,
918
- // months
919
- 1 / 168,
920
- // weeks
921
- 1 / 24,
922
- // days
923
- 1,
924
- // hours
925
- 60,
926
- // minutes
927
- 3600,
928
- // seconds
929
- 3600 * 1e3
930
- // milliseconds
931
- ],
932
- // MINUTES
933
- [
934
- 1 / (365 * 24 * 60),
935
- // year
936
- 1 / (2184 * 60),
937
- // quarters
938
- 1 / (720 * 60),
939
- // months
940
- 1 / 10080,
941
- // weeks
942
- 1 / 1440,
943
- // days
944
- 1 / 60,
945
- // hours
946
- 1,
947
- // minutes
948
- 60,
949
- // seconds
950
- 60 * 1e3
951
- // milliseconds
952
- ],
953
- // SECONDS
954
- [
955
- 1 / (365 * 24 * 60 * 60),
956
- // year
957
- 1 / (2184 * 60 * 60),
958
- // quarters
959
- 1 / (720 * 60 * 60),
960
- // months
961
- 1 / (10080 * 60),
962
- // weeks
963
- 1 / (1440 * 60),
964
- // days
965
- 1 / 3600,
966
- // hours
967
- 1 / 60,
968
- // minutes
969
- 1,
970
- // seconds
971
- 1e3
972
- // milliseconds
973
- ],
974
- // MILLISECONDS
975
- [
976
- 1 / (365 * 24 * 60 * 60 * 1e3),
977
- // year
978
- 1 / (2184 * 60 * 60 * 1e3),
979
- // quarters
980
- 1 / (720 * 60 * 60 * 1e3),
981
- // months
982
- 1 / (10080 * 60 * 1e3),
983
- // weeks
984
- 1 / (1440 * 60 * 1e3),
985
- // days
986
- 1 / (3600 * 1e3),
987
- // hours
988
- 1 / (60 * 1e3),
989
- // minutes
990
- 1 / 1e3,
991
- // seconds
992
- 1
993
- // milliseconds
994
- ]
995
- ];
996
- function Wr(e, t, r) {
997
- if (z(e))
998
- return;
999
- if (!t || !r || t === r)
1000
- return e;
1001
- const n = Ye[t - 1][r - 1];
1002
- if (n)
1003
- return e * n;
1004
- }
1005
- function Ar(e, t, r, n) {
1006
- if (z(e) || !t.lowestLevel || r.length === 0)
1007
- return "";
1008
- const l = [];
1009
- let o = 0, s = Math.round(
1010
- e * Ye[t.lowestLevel - 1][8]
1011
- );
1012
- const M = 9;
1013
- for (const [, m] of r.entries())
1014
- if (e) {
1015
- s = s - o;
1016
- const S = Ye[m - 1][M - 1], u = Math.floor(s / S);
1017
- o = u * S, l.push({ level: m, value: u });
1018
- } else
1019
- l.push({ level: m, value: 0 });
1020
- let Y = "";
1021
- for (const [m, S] of l.entries())
1022
- if (t.duration.format === "time") {
1023
- let u = S.value;
1024
- [6, 7, 8].includes(S.level) && S.value < 10 ? u = "0" + S.value.toString() : S.level === 9 && S.value < 10 ? u = "00" + S.value.toString() : S.level === 9 && S.value < 100 && (u = "0" + S.value.toString()), Y += (m === 0 ? "" : S.level === 9 ? "." : ":") + u;
1025
- } else if (t.duration.format === "long") {
1026
- const u = n.durationLongSuffix;
1027
- Y += S.value + " " + u[S.level] + (m === l.length - 1 ? "" : " ");
1028
- } else {
1029
- const u = n.durationShortSuffix;
1030
- Y += S.value + "" + u[S.level] + (m === l.length - 1 ? "" : " ");
1031
- }
1032
- return Y;
1033
- }
1034
- const be = {
1035
- decimal: ".",
1036
- thousands: ",",
1037
- grouping: [3],
1038
- currency: ["$", ""],
1039
- dateTime: "%a %b %e %X %Y",
1040
- date: "%m/%d/%Y",
1041
- dateSeparator: "/",
1042
- time: "%H:%M:%S",
1043
- periods: ["AM", "PM"],
1044
- days: [
1045
- "Sunday",
1046
- "Monday",
1047
- "Tuesday",
1048
- "Wednesday",
1049
- "Thursday",
1050
- "Friday",
1051
- "Saturday"
1052
- ],
1053
- shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
1054
- months: [
1055
- "January",
1056
- "February",
1057
- "March",
1058
- "April",
1059
- "May",
1060
- "June",
1061
- "July",
1062
- "August",
1063
- "September",
1064
- "October",
1065
- "November",
1066
- "December"
1067
- ],
1068
- shortMonths: [
1069
- "Jan",
1070
- "Feb",
1071
- "Mar",
1072
- "Apr",
1073
- "May",
1074
- "Jun",
1075
- "Jul",
1076
- "Aug",
1077
- "Sep",
1078
- "Oct",
1079
- "Nov",
1080
- "Dec"
1081
- ],
1082
- levels: [
1083
- "All",
1084
- "Year",
1085
- "Quarter",
1086
- "Month",
1087
- "Week",
1088
- "Date",
1089
- "Hour",
1090
- "Minute",
1091
- "Second",
1092
- "Millisecond"
1093
- ],
1094
- shortLevels: [
1095
- "All",
1096
- "Yr",
1097
- "Qtr",
1098
- "Mth",
1099
- "Wk",
1100
- "Date",
1101
- "Hr",
1102
- "Min",
1103
- "Sec",
1104
- "Msec"
1105
- ],
1106
- durationLongSuffix: [
1107
- "",
1108
- "years",
1109
- "quarters",
1110
- "months",
1111
- "weeks",
1112
- "days",
1113
- "hours",
1114
- "minutes",
1115
- "seconds",
1116
- "milliseconds"
1117
- ],
1118
- durationShortSuffix: ["", "y", "q", "mo", "w", "d", "h", "m", "s", "ms"],
1119
- multi: [".%L", ":%S", "%I:%M", "%I %p", "%a %d", "W%G", "%b %d", "%B", "%Y"]
1120
- }, _r = "%d-%m-%Y", Nr = [
1121
- {
1122
- key: "%a %e %b %Y",
1123
- lev1: "%Y",
1124
- lev2: "Q%q-%Y",
1125
- lev3: "%b %Y",
1126
- lev4: "Wk %V-%G",
1127
- lev5: "%a %e %b %Y",
1128
- monthType: "name",
1129
- longText: !1,
1130
- weekday: !0
1131
- },
1132
- {
1133
- key: "%e %b %Y",
1134
- lev1: "%Y",
1135
- lev2: "Q%q-%Y",
1136
- lev3: "%b %Y",
1137
- lev4: "Wk %V-%G",
1138
- lev5: "%e %b %Y",
1139
- monthType: "name",
1140
- longText: !1,
1141
- weekday: !1
1142
- },
1143
- {
1144
- key: "%a %e %B %Y",
1145
- lev1: "%Y",
1146
- lev2: "Q%q-%Y",
1147
- lev3: "%B %Y",
1148
- lev4: "Week %V, %G",
1149
- lev5: "%a %e %B %Y",
1150
- monthType: "name",
1151
- longText: !0,
1152
- weekday: !0
1153
- },
1154
- {
1155
- key: "%e %B %Y",
1156
- lev1: "%Y",
1157
- lev2: "Q%q-%Y",
1158
- lev3: "%B %Y",
1159
- lev4: "Week %V, %G",
1160
- lev5: "%e %B %Y",
1161
- monthType: "name",
1162
- longText: !0,
1163
- weekday: !1
1164
- },
1165
- {
1166
- key: "%d/%m/%Y",
1167
- lev1: "%Y",
1168
- lev2: "Q%q/%Y",
1169
- lev3: "%m/%Y",
1170
- lev4: "W%V/%G",
1171
- lev5: "%d/%m/%Y",
1172
- monthType: "number",
1173
- mmdd: !1,
1174
- separator: "/"
1175
- },
1176
- {
1177
- key: "%d-%m-%Y",
1178
- lev1: "%Y",
1179
- lev2: "Q%q-%Y",
1180
- lev3: "%m-%Y",
1181
- lev4: "W%V-%G",
1182
- lev5: "%d-%m-%Y",
1183
- monthType: "number",
1184
- mmdd: !1,
1185
- separator: "-"
1186
- },
1187
- {
1188
- key: "%d.%m.%Y",
1189
- lev1: "%Y",
1190
- lev2: "Q%q.%Y",
1191
- lev3: "%m.%Y",
1192
- lev4: "W%V.%G",
1193
- lev5: "%d.%m.%Y",
1194
- monthType: "number",
1195
- mmdd: !1,
1196
- separator: "."
1197
- },
1198
- {
1199
- key: "%d~%m~%Y",
1200
- lev1: "%Y",
1201
- lev2: "Q%q~%Y",
1202
- lev3: "%m~%Y",
1203
- lev4: "W%V~%G",
1204
- lev5: "%d~%m~%Y",
1205
- monthType: "number",
1206
- mmdd: !1,
1207
- separator: "~"
1208
- },
1209
- {
1210
- key: "%m/%d/%Y",
1211
- lev1: "%Y",
1212
- lev2: "Q%q/%Y",
1213
- lev3: "%m/%Y",
1214
- lev4: "%G/W%V",
1215
- lev5: "%m/%d/%Y",
1216
- monthType: "number",
1217
- mmdd: !0,
1218
- separator: "/"
1219
- },
1220
- {
1221
- key: "%m-%d-%Y",
1222
- lev1: "%Y",
1223
- lev2: "Q%q-%Y",
1224
- lev3: "%m-%Y",
1225
- lev4: "%G-W%V",
1226
- lev5: "%m-%d-%Y",
1227
- monthType: "number",
1228
- mmdd: !0,
1229
- separator: "-"
1230
- },
1231
- {
1232
- key: "%m.%d.%Y",
1233
- lev1: "%Y",
1234
- lev2: "Q%q.%Y",
1235
- lev3: "%m.%Y",
1236
- lev4: "%G.W%V",
1237
- lev5: "%m.%d.%Y",
1238
- monthType: "number",
1239
- mmdd: !0,
1240
- separator: "."
1241
- },
1242
- {
1243
- key: "%m~%d~%Y",
1244
- lev1: "%Y",
1245
- lev2: "Q%q~%Y",
1246
- lev3: "%m~%Y",
1247
- lev4: "%G~W%V",
1248
- lev5: "%m~%d~%Y",
1249
- monthType: "number",
1250
- mmdd: !0,
1251
- separator: "~"
1252
- },
1253
- {
1254
- key: "%amd/%Y",
1255
- lev1: "%Y",
1256
- lev2: "Q%q/%Y",
1257
- lev3: "%m/%Y",
1258
- lev4: "%G/W%V",
1259
- lev5: "%amd/%Y",
1260
- monthType: "number",
1261
- mmdd: null,
1262
- separator: "/"
1263
- },
1264
- {
1265
- key: "%amd-%Y",
1266
- lev1: "%Y",
1267
- lev2: "Q%q-%Y",
1268
- lev3: "%m-%Y",
1269
- lev4: "%G-W%V",
1270
- lev5: "%amd-%Y",
1271
- monthType: "number",
1272
- mmdd: null,
1273
- separator: "-"
1274
- },
1275
- {
1276
- key: "%amd.%Y",
1277
- lev1: "%Y",
1278
- lev2: "Q%q.%Y",
1279
- lev3: "%m.%Y",
1280
- lev4: "%G.W%V",
1281
- lev5: "%amd.%Y",
1282
- monthType: "number",
1283
- mmdd: null,
1284
- separator: "."
1285
- },
1286
- {
1287
- key: "%amd~%Y",
1288
- lev1: "%Y",
1289
- lev2: "Q%q~%Y",
1290
- lev3: "%m~%Y",
1291
- lev4: "%G~W%V",
1292
- lev5: "%amd~%Y",
1293
- monthType: "number",
1294
- mmdd: null,
1295
- separator: "~"
1296
- }
1297
- ], Lr = [
1298
- {
1299
- key: "%H:%M:%S.%L",
1300
- lev6: "%H:00",
1301
- lev7: "%H:%M",
1302
- lev8: "%H:%M:%S",
1303
- lev9: "%H:%M:%S.%L",
1304
- ampm: !1
1305
- },
1306
- {
1307
- key: "%I:%M:%S.%L %p",
1308
- lev6: "%I:00 %p",
1309
- lev7: "%I:%M %p",
1310
- lev8: "%I:%M:%S %p",
1311
- lev9: "%I:%M:%S.%L %p",
1312
- ampm: !0
1313
- }
1314
- ];
1315
- function Vr(e, t) {
1316
- t = t || {};
1317
- const r = t.localFormats || be;
1318
- let n, l, o, s = [], M = [], Y = "datetime", m;
1319
- t && t.multi && (Y = "datetime"), (!e || !e.format) && (Y = "hierarchy"), e && e.type && (Y = e.type), e && e.format ? m = e.format : Y === "numeric" ? m = ",.0f" : Y === "datetime" ? m = _r : m = "";
1320
- const S = mt(m);
1321
- switch (S.precision && S.typeFormat && (Y = "numeric"), Y) {
1322
- case "numeric": {
1323
- if (e.subtype === "duration" && e.duration && e.duration.levels && e.duration.levels.length > 1 && !t.hideDuration)
1324
- n = (u) => z(u) ? "" : Ar(
1325
- u,
1326
- e,
1327
- e.duration.levels,
1328
- r
1329
- );
1330
- else {
1331
- const u = { ...r };
1332
- let g = S.typeFormat, c = !1;
1333
- switch (g.length === 2 && g.startsWith("a") && (c = !0, g = g.slice(1, 2), m = m.replace(/a/, "")), c ? (u.decimal = r.decimal, u.thousands = r.thousands) : ["z", "y", "w"].includes(g) ? (u.decimal = ",", u.thousands = ".") : (u.decimal = ".", u.thousands = ","), g) {
1334
- case "z": {
1335
- m = m.replace("z", "f");
1336
- break;
1337
- }
1338
- case "y": {
1339
- m = m.replace("y", "%");
1340
- break;
1341
- }
1342
- case "w": {
1343
- m = m.replace("w", "s");
1344
- break;
1345
- }
1346
- }
1347
- if (e?.subtype === "currency" && e.currency) {
1348
- const b = u.currency.findIndex(
1349
- (D) => D.length > 0
1350
- ), F = u.currency[b].startsWith(" "), A = u.currency[b].endsWith(" "), T = `${F ? " " : ""}${e.currency}${A ? " " : ""}`;
1351
- u.currency[b] = T;
1352
- }
1353
- const y = Tt(u);
1354
- g !== "%" && e?.subtype === "currency" && e.currency && u.currency && !t?.hideCurrency && !["count", "distinctcount"].includes(e.aggregationFunc) && !(e.aggregationFunc === "rate" && e.aggregationWeight?.columnSubType === "currency") && e.periodOverPeriod?.type !== "percentageChange" && (m = "$" + m), t?.trimZero && ["y", "%"].includes(g) && u.decimal === "," ? l = (f) => y.format(m)(f).replace(/(,\d*?)0+%$/, "$1%").replace(/,%$/, "%") : t?.trimZero && ["y", "%"].includes(g) && u.decimal === "." ? l = (f) => y.format(m)(f).replace(/(\.\d*?)0+%$/, "$1%").replace(/\.%$/, "%") : t?.trimZero && ["z", "f"].includes(g) && u.decimal === "," ? l = (f) => y.format(m)(f).replace(/(,\d*?)0+$/, "$1").replace(/,$/, "") : t?.trimZero && ["z", "f"].includes(g) && u.decimal === "." ? l = (f) => y.format(m)(f).replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "") : e?.subtype === "currency" && e.currency && u.currency && g === "s" ? l = (f) => y.format(m)(f).replace(/G/, "B") : l = z(S.precision) ? y.format(",.0f") : y.format(m), n = (f) => {
1355
- if (z(f))
1356
- return "";
1357
- if (e.subtype === "duration" && e.duration && !t.hideDuration) {
1358
- const b = e.duration.levels ? e.duration.levels[0] : e.lowestLevel;
1359
- return b !== e.lowestLevel && (f = Wr(f, e.lowestLevel, b)), l(f) + r?.durationShortSuffix?.[b];
1360
- }
1361
- return l(f);
1362
- };
1363
- }
1364
- break;
1365
- }
1366
- case "datetime": {
1367
- if (s = r?.smartDateFormats ?? Nr, M = r?.smartTimeFormats ?? Lr, z(e.datetimeDisplayMode)) {
1368
- if (t?.level) {
1369
- const u = t.level, g = s.find(
1370
- (A) => m.includes(A.key)
1371
- ), c = M.find(
1372
- (A) => m.includes(A.key)
1373
- ), y = g ? g["lev" + Math.min(u, 5)] : s[0]["lev" + Math.min(u, 5)], f = u > 5 ? c ? c["lev" + u] : M[0]["lev" + u] : "";
1374
- m = u > 5 ? y + ", " + f : y;
1375
- const b = m.includes("%amd") && t.level >= 5, F = g ? t.level >= 2 && g.separator === "~" : !1;
1376
- b ? m = F ? (
1377
- // Fully use the date format defined in the locale JSON, including its separators.
1378
- m.replaceAll(
1379
- new RegExp(/%amd[.~\/-]%Y/g),
1380
- r.date.slice(0, 8)
1381
- )
1382
- ) : (
1383
- // Use the date format defined in the locale JSON, but replace the seperators to the hardcoded separator configured in the slot menu.
1384
- m.replaceAll(
1385
- new RegExp(/%amd[.~\/-]%Y/g),
1386
- r.date.slice(0, 8).replaceAll(
1387
- new RegExp(/[.~\/-]/g),
1388
- g.separator
1389
- )
1390
- )
1391
- ) : m = F ? (
1392
- // No locale aware date format but locale aware separator: replace locale aware '~' separator by correct separator from locale JSON.
1393
- m.replaceAll(
1394
- new RegExp(/[~]/g),
1395
- r.dateSeparator
1396
- )
1397
- ) : (
1398
- // No locale aware format and no locale aware separator: no action required.
1399
- m
1400
- );
1401
- }
1402
- if (t?.multi) {
1403
- const u = V(r.multi[0]), g = V(r.multi[1]), c = V(r.multi[2]), y = V(r.multi[3]), f = V(r.multi[4]), b = V(r.multi[6]), F = V(r.multi[7]), A = V(r.multi[8]);
1404
- o = (T) => {
1405
- let D;
1406
- return ze(T) < T ? D = u : Pe(T) < T ? D = g : Re(T) < T ? D = c : fe(T) < T ? D = y : Ee(T) < T ? D = De(T) < T ? f : b : Q(T) < T ? D = F : D = A, D(T);
1407
- };
1408
- } else
1409
- o = ve(r).format(m);
1410
- } else {
1411
- const u = {
1412
- quarter_number: { min: 1, max: 4 },
1413
- month_name: { min: 1, max: 12 },
1414
- month_number: { min: 1, max: 12 },
1415
- week_number: { min: 1, max: 53 },
1416
- day_in_month: { min: 1, max: 31 },
1417
- day_in_year: { min: 1, max: 366 },
1418
- weekday_name: { min: 0, max: 7 },
1419
- weekday_number: { min: 0, max: 7 },
1420
- hour_in_day: { min: 0, max: 23 },
1421
- minute_in_hour: { min: 0, max: 59 },
1422
- second_in_minute: { min: 0, max: 59 }
1423
- }, g = (c, y, f) => y === "letter" ? c.shortNames?.length > 0 && c.shortNames[f]?.length > 0 ? c.shortNames[f]?.charAt(0) : "N/A" : y === "short" ? c.shortNames?.length > 0 && c.shortNames[f] ? c.shortNames[f] : "N/A" : c.longNames?.length > 0 && c.longNames[f] ? c.longNames[f] : "N/A";
1424
- [
1425
- "quarter_number",
1426
- "month_number",
1427
- "week_number",
1428
- "day_in_month",
1429
- "day_in_year",
1430
- "weekday_number",
1431
- "hour_in_day",
1432
- "minute_in_hour",
1433
- "second_in_minute"
1434
- ].includes(e.datetimeDisplayMode) ? o = (c) => ge(c) && c >= u[e.datetimeDisplayMode].min && c <= u[e.datetimeDisplayMode].max ? c : "N/A" : e.datetimeDisplayMode === "month_name" ? o = (c) => {
1435
- const y = [...r.shortMonths], f = [...r.months];
1436
- return ge(c) && c >= u[e.datetimeDisplayMode].min && c <= u[e.datetimeDisplayMode].max ? g(
1437
- { shortNames: y, longNames: f },
1438
- e.monthNameFormat,
1439
- c - 1
1440
- ) : "N/A";
1441
- } : e.datetimeDisplayMode === "weekday_name" ? o = (c) => {
1442
- const y = [...r.shortDays], f = [...r.days];
1443
- return e.weekStart === "monday" && (y.push(y.shift() ?? ""), f.push(f.shift() ?? "")), ge(c) && c >= u[e.datetimeDisplayMode].min && c <= u[e.datetimeDisplayMode].max ? g(
1444
- { shortNames: y, longNames: f },
1445
- e.weekDayNameFormat,
1446
- c - 1
1447
- ) : "N/A";
1448
- } : o = ve(r).format(m);
1449
- }
1450
- n = (u) => {
1451
- if (z(u))
1452
- return "";
1453
- const g = o(u);
1454
- return st(g) ? g.trim() : g;
1455
- };
1456
- break;
1457
- }
1458
- case "hierarchy": {
1459
- n = (u) => lt(u, t ? t.locale : void 0);
1460
- break;
1461
- }
1462
- default: {
1463
- n = (u) => u;
1464
- break;
1465
- }
1466
- }
1467
- return n;
1468
- }
1469
- const qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1470
- __proto__: null,
1471
- default: be
1472
- }, Symbol.toStringTag, { value: "Module" })), Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1473
- __proto__: null,
1474
- default: be
1475
- }, Symbol.toStringTag, { value: "Module" }));
1476
- export {
1477
- be as D,
1478
- Nr as S,
1479
- _r as a,
1480
- Ir as b,
1481
- qr as e,
1482
- Vr as f
1483
- };