lorgg-v2-components 0.0.26

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 (399) hide show
  1. package/.vscode/extensions.json +3 -0
  2. package/README.md +18 -0
  3. package/dist/components/assets/CardbackRuneterra.webp.d.ts +3 -0
  4. package/dist/components/assets/CardbackRuneterra.webp.d.ts.map +1 -0
  5. package/dist/components/helpers/charts.d.ts +5 -0
  6. package/dist/components/helpers/charts.d.ts.map +1 -0
  7. package/dist/components/helpers/components.d.ts +3 -0
  8. package/dist/components/helpers/components.d.ts.map +1 -0
  9. package/dist/components/helpers/functions.d.ts +29 -0
  10. package/dist/components/helpers/functions.d.ts.map +1 -0
  11. package/dist/components/index.d.ts +134 -0
  12. package/dist/components/library/.CopyMeComponent/CopyMeComponent.vue.d.ts +4 -0
  13. package/dist/components/library/.CopyMeComponent/CopyMeComponent.vue.d.ts.map +1 -0
  14. package/dist/components/library/ArchetypeSidePanel/ArchetypeSidePanel.vue.d.ts +49 -0
  15. package/dist/components/library/ArchetypeSidePanel/ArchetypeSidePanel.vue.d.ts.map +1 -0
  16. package/dist/components/library/ArchetypeSidePanel/types.d.ts +32 -0
  17. package/dist/components/library/ArchetypeSidePanelHighlight/ArchetypeSidePanelHighlight.vue.d.ts +27 -0
  18. package/dist/components/library/ArchetypeSidePanelHighlight/ArchetypeSidePanelHighlight.vue.d.ts.map +1 -0
  19. package/dist/components/library/ArchetypeSidePanelHighlight/types.d.ts +17 -0
  20. package/dist/components/library/ArchetypesRow/ArchetypesRow.vue.d.ts +100 -0
  21. package/dist/components/library/ArchetypesRow/ArchetypesRow.vue.d.ts.map +1 -0
  22. package/dist/components/library/ArchetypesRow/types.d.ts +56 -0
  23. package/dist/components/library/ArchetypesTable/ArchetypesTable.vue.d.ts +16 -0
  24. package/dist/components/library/ArchetypesTable/ArchetypesTable.vue.d.ts.map +1 -0
  25. package/dist/components/library/ArchetypesTable/types.d.ts +12 -0
  26. package/dist/components/library/BuiltDecksTable/BuiltDecksTable.vue.d.ts +16 -0
  27. package/dist/components/library/BuiltDecksTable/BuiltDecksTable.vue.d.ts.map +1 -0
  28. package/dist/components/library/BuiltDecksTable/types.d.ts +18 -0
  29. package/dist/components/library/Buttons/CopyDeckButton/CopyDeckButton.vue.d.ts +16 -0
  30. package/dist/components/library/Buttons/CopyDeckButton/CopyDeckButton.vue.d.ts.map +1 -0
  31. package/dist/components/library/Buttons/CopyDeckButton/types.d.ts +10 -0
  32. package/dist/components/library/Buttons/DeleteDeckButton/DeleteDeckButton.vue.d.ts +16 -0
  33. package/dist/components/library/Buttons/DeleteDeckButton/DeleteDeckButton.vue.d.ts.map +1 -0
  34. package/dist/components/library/Buttons/DeleteDeckButton/types.d.ts +10 -0
  35. package/dist/components/library/Buttons/EditDeckNameButton/EditDeckNameButton.vue.d.ts +27 -0
  36. package/dist/components/library/Buttons/EditDeckNameButton/EditDeckNameButton.vue.d.ts.map +1 -0
  37. package/dist/components/library/Buttons/EditDeckNameButton/types.d.ts +16 -0
  38. package/dist/components/library/Buttons/OpenArchetypePageButton/OpenArchetypePageButton.vue.d.ts +16 -0
  39. package/dist/components/library/Buttons/OpenArchetypePageButton/OpenArchetypePageButton.vue.d.ts.map +1 -0
  40. package/dist/components/library/Buttons/OpenArchetypePageButton/types.d.ts +10 -0
  41. package/dist/components/library/Buttons/OpenInDeckBuilderButton/OpenInDeckBuilderButton.vue.d.ts +16 -0
  42. package/dist/components/library/Buttons/OpenInDeckBuilderButton/OpenInDeckBuilderButton.vue.d.ts.map +1 -0
  43. package/dist/components/library/Buttons/OpenInDeckBuilderButton/types.d.ts +10 -0
  44. package/dist/components/library/Buttons/SimulateMulliganButton/SimulateMulliganButton.vue.d.ts +16 -0
  45. package/dist/components/library/Buttons/SimulateMulliganButton/SimulateMulliganButton.vue.d.ts.map +1 -0
  46. package/dist/components/library/Buttons/SimulateMulliganButton/types.d.ts +12 -0
  47. package/dist/components/library/Buttons/UpdateDeckPrivacyButton/UpdateDeckPrivacyButton.vue.d.ts +29 -0
  48. package/dist/components/library/Buttons/UpdateDeckPrivacyButton/UpdateDeckPrivacyButton.vue.d.ts.map +1 -0
  49. package/dist/components/library/Buttons/UpdateDeckPrivacyButton/types.d.ts +16 -0
  50. package/dist/components/library/Buttons/UploadDeckToLorButton/UploadDeckToLorButton.vue.d.ts +27 -0
  51. package/dist/components/library/Buttons/UploadDeckToLorButton/UploadDeckToLorButton.vue.d.ts.map +1 -0
  52. package/dist/components/library/Buttons/UploadDeckToLorButton/types.d.ts +16 -0
  53. package/dist/components/library/CardCarousel/CardCarousel.vue.d.ts +18 -0
  54. package/dist/components/library/CardCarousel/CardCarousel.vue.d.ts.map +1 -0
  55. package/dist/components/library/CardCarousel/types.d.ts +16 -0
  56. package/dist/components/library/CardItem/CardItem.vue.d.ts +104 -0
  57. package/dist/components/library/CardItem/CardItem.vue.d.ts.map +1 -0
  58. package/dist/components/library/CardItem/types.d.ts +59 -0
  59. package/dist/components/library/CardItem3d/CardItem3d.vue.d.ts +27 -0
  60. package/dist/components/library/CardItem3d/CardItem3d.vue.d.ts.map +1 -0
  61. package/dist/components/library/CardItem3d/types.d.ts +16 -0
  62. package/dist/components/library/CardItemLinkWrapper/CardItemLinkWrapper.vue.d.ts +103 -0
  63. package/dist/components/library/CardItemLinkWrapper/CardItemLinkWrapper.vue.d.ts.map +1 -0
  64. package/dist/components/library/CardLottery/CardLottery.vue.d.ts +2 -0
  65. package/dist/components/library/CardLottery/CardLottery.vue.d.ts.map +1 -0
  66. package/dist/components/library/CardLottery/types.d.ts +6 -0
  67. package/dist/components/library/CardMultiselect/CardMultiselect.vue.d.ts +40 -0
  68. package/dist/components/library/CardMultiselect/CardMultiselect.vue.d.ts.map +1 -0
  69. package/dist/components/library/CardMultiselect/types.d.ts +28 -0
  70. package/dist/components/library/CardOverview/CardOverview.vue.d.ts +28 -0
  71. package/dist/components/library/CardOverview/CardOverview.vue.d.ts.map +1 -0
  72. package/dist/components/library/CardOverview/types.d.ts +18 -0
  73. package/dist/components/library/CardSimilarCards/CardSimilarCards.vue.d.ts +68 -0
  74. package/dist/components/library/CardSimilarCards/CardSimilarCards.vue.d.ts.map +1 -0
  75. package/dist/components/library/CardSimilarCards/types.d.ts +42 -0
  76. package/dist/components/library/CardSliceItem/CardSliceItem.vue.d.ts +106 -0
  77. package/dist/components/library/CardSliceItem/CardSliceItem.vue.d.ts.map +1 -0
  78. package/dist/components/library/CardSliceItem/types.d.ts +60 -0
  79. package/dist/components/library/CardTogglePage/CardTogglePage.vue.d.ts +2 -0
  80. package/dist/components/library/CardTogglePage/CardTogglePage.vue.d.ts.map +1 -0
  81. package/dist/components/library/CardsRow/CardsRow.vue.d.ts +157 -0
  82. package/dist/components/library/CardsRow/CardsRow.vue.d.ts.map +1 -0
  83. package/dist/components/library/CardsRow/types.d.ts +101 -0
  84. package/dist/components/library/CardsTable/CardsTable.vue.d.ts +50 -0
  85. package/dist/components/library/CardsTable/CardsTable.vue.d.ts.map +1 -0
  86. package/dist/components/library/CardsTable/types.d.ts +29 -0
  87. package/dist/components/library/Charts/CardQuantityBarChart/CardQuantityBarChart.vue.d.ts +38 -0
  88. package/dist/components/library/Charts/CardQuantityBarChart/CardQuantityBarChart.vue.d.ts.map +1 -0
  89. package/dist/components/library/Charts/CardQuantityBarChart/types.d.ts +29 -0
  90. package/dist/components/library/Charts/InfoDoughnutChart/InfoDoughnutChart.vue.d.ts +27 -0
  91. package/dist/components/library/Charts/InfoDoughnutChart/InfoDoughnutChart.vue.d.ts.map +1 -0
  92. package/dist/components/library/Charts/InfoDoughnutChart/types.d.ts +26 -0
  93. package/dist/components/library/Charts/LeaderboardChart/LeaderboardChart.vue.d.ts +61 -0
  94. package/dist/components/library/Charts/LeaderboardChart/LeaderboardChart.vue.d.ts.map +1 -0
  95. package/dist/components/library/Charts/LeaderboardChart/types.d.ts +50 -0
  96. package/dist/components/library/Charts/LineChart/LineChart.vue.d.ts +64 -0
  97. package/dist/components/library/Charts/LineChart/LineChart.vue.d.ts.map +1 -0
  98. package/dist/components/library/Charts/LineChart/types.d.ts +44 -0
  99. package/dist/components/library/Charts/ManaCurveChart/ManaCurveChart.vue.d.ts +79 -0
  100. package/dist/components/library/Charts/ManaCurveChart/ManaCurveChart.vue.d.ts.map +1 -0
  101. package/dist/components/library/Charts/ManaCurveChart/types.d.ts +51 -0
  102. package/dist/components/library/Charts/RoundCardInfoBarChart/RoundCardInfoBarChart.vue.d.ts +38 -0
  103. package/dist/components/library/Charts/RoundCardInfoBarChart/RoundCardInfoBarChart.vue.d.ts.map +1 -0
  104. package/dist/components/library/Charts/RoundCardInfoBarChart/types.d.ts +30 -0
  105. package/dist/components/library/Charts/WinrateDoughnutChart/WinrateDoughnutChart.vue.d.ts +38 -0
  106. package/dist/components/library/Charts/WinrateDoughnutChart/WinrateDoughnutChart.vue.d.ts.map +1 -0
  107. package/dist/components/library/Charts/WinrateDoughnutChart/types.d.ts +22 -0
  108. package/dist/components/library/Charts/WinsLossesBarChart/WinsLossesBarChart.vue.d.ts +16 -0
  109. package/dist/components/library/Charts/WinsLossesBarChart/WinsLossesBarChart.vue.d.ts.map +1 -0
  110. package/dist/components/library/Charts/WinsLossesBarChart/types.d.ts +16 -0
  111. package/dist/components/library/CheckboxItem/CheckboxItem.vue.d.ts +40 -0
  112. package/dist/components/library/CheckboxItem/CheckboxItem.vue.d.ts.map +1 -0
  113. package/dist/components/library/CheckboxItem/types.d.ts +22 -0
  114. package/dist/components/library/CheckboxItemManaCost/CheckboxItemManaCost.vue.d.ts +29 -0
  115. package/dist/components/library/CheckboxItemManaCost/CheckboxItemManaCost.vue.d.ts.map +1 -0
  116. package/dist/components/library/CheckboxItemManaCost/types.d.ts +16 -0
  117. package/dist/components/library/CircleCardItem/CircleCardItem.vue.d.ts +58 -0
  118. package/dist/components/library/CircleCardItem/CircleCardItem.vue.d.ts.map +1 -0
  119. package/dist/components/library/CircleCardItem/types.d.ts +35 -0
  120. package/dist/components/library/ColorPicker/ColorPicker.vue.d.ts +18 -0
  121. package/dist/components/library/ColorPicker/ColorPicker.vue.d.ts.map +1 -0
  122. package/dist/components/library/ColorPicker/types.d.ts +10 -0
  123. package/dist/components/library/DashboardCardRow/DashboardCardRow.vue.d.ts +49 -0
  124. package/dist/components/library/DashboardCardRow/DashboardCardRow.vue.d.ts.map +1 -0
  125. package/dist/components/library/DashboardCardRow/types.d.ts +28 -0
  126. package/dist/components/library/DashboardCardTable/DashboardCardTable.vue.d.ts +16 -0
  127. package/dist/components/library/DashboardCardTable/DashboardCardTable.vue.d.ts.map +1 -0
  128. package/dist/components/library/DashboardCardTable/types.d.ts +12 -0
  129. package/dist/components/library/DashboardLeaderboardRow/DashboardLeaderboardRow.vue.d.ts +93 -0
  130. package/dist/components/library/DashboardLeaderboardRow/DashboardLeaderboardRow.vue.d.ts.map +1 -0
  131. package/dist/components/library/DashboardLeaderboardRow/types.d.ts +52 -0
  132. package/dist/components/library/DashboardLeaderboardTable/DashboardLeaderboardTable.vue.d.ts +30 -0
  133. package/dist/components/library/DashboardLeaderboardTable/DashboardLeaderboardTable.vue.d.ts.map +1 -0
  134. package/dist/components/library/DashboardLeaderboardTable/types.d.ts +19 -0
  135. package/dist/components/library/DashboardNewCards/DashboardNewCards.vue.d.ts +16 -0
  136. package/dist/components/library/DashboardNewCards/DashboardNewCards.vue.d.ts.map +1 -0
  137. package/dist/components/library/DashboardNewCards/types.d.ts +11 -0
  138. package/dist/components/library/DashboardProfile/DashboardProfile.vue.d.ts +104 -0
  139. package/dist/components/library/DashboardProfile/DashboardProfile.vue.d.ts.map +1 -0
  140. package/dist/components/library/DashboardProfile/types.d.ts +59 -0
  141. package/dist/components/library/DashboardSignUp/DashboardSignUp.vue.d.ts +2 -0
  142. package/dist/components/library/DashboardSignUp/DashboardSignUp.vue.d.ts.map +1 -0
  143. package/dist/components/library/Deck/DeckSummary/DeckSummary.vue.d.ts +28 -0
  144. package/dist/components/library/Deck/DeckSummary/DeckSummary.vue.d.ts.map +1 -0
  145. package/dist/components/library/Deck/DeckSummary/types.d.ts +18 -0
  146. package/dist/components/library/Deck/SimulateMulligan/SimulateMulligan.vue.d.ts +16 -0
  147. package/dist/components/library/Deck/SimulateMulligan/SimulateMulligan.vue.d.ts.map +1 -0
  148. package/dist/components/library/Deck/SimulateMulligan/types.d.ts +16 -0
  149. package/dist/components/library/DeckBlock/DeckBlock.vue.d.ts +104 -0
  150. package/dist/components/library/DeckBlock/DeckBlock.vue.d.ts.map +1 -0
  151. package/dist/components/library/DeckBlock/types.d.ts +64 -0
  152. package/dist/components/library/DeckBuilderSummary/DeckBuilderSummary.vue.d.ts +28 -0
  153. package/dist/components/library/DeckBuilderSummary/DeckBuilderSummary.vue.d.ts.map +1 -0
  154. package/dist/components/library/DeckBuilderSummary/types.d.ts +18 -0
  155. package/dist/components/library/DeckBuilderSummaryType/DeckBuilderSummaryType.vue.d.ts +24 -0
  156. package/dist/components/library/DeckBuilderSummaryType/DeckBuilderSummaryType.vue.d.ts.map +1 -0
  157. package/dist/components/library/DeckBuilderSummaryType/types.d.ts +22 -0
  158. package/dist/components/library/DeckButtons/DeckButtons.vue.d.ts +57 -0
  159. package/dist/components/library/DeckButtons/DeckButtons.vue.d.ts.map +1 -0
  160. package/dist/components/library/DeckButtons/types.d.ts +45 -0
  161. package/dist/components/library/DeckDifferenceItem/DeckDifferenceItem.vue.d.ts +69 -0
  162. package/dist/components/library/DeckDifferenceItem/DeckDifferenceItem.vue.d.ts.map +1 -0
  163. package/dist/components/library/DeckDifferenceItem/types.d.ts +35 -0
  164. package/dist/components/library/DeckDifferences/DeckDifferences.vue.d.ts +16 -0
  165. package/dist/components/library/DeckDifferences/DeckDifferences.vue.d.ts.map +1 -0
  166. package/dist/components/library/DeckDifferences/types.d.ts +12 -0
  167. package/dist/components/library/DeckHighlight/DeckHighlight.vue.d.ts +43 -0
  168. package/dist/components/library/DeckHighlight/DeckHighlight.vue.d.ts.map +1 -0
  169. package/dist/components/library/DeckHighlight/types.d.ts +28 -0
  170. package/dist/components/library/DeckHighlightCards/DeckHighlightCards.vue.d.ts +39 -0
  171. package/dist/components/library/DeckHighlightCards/DeckHighlightCards.vue.d.ts.map +1 -0
  172. package/dist/components/library/DeckHighlightCards/types.d.ts +24 -0
  173. package/dist/components/library/DeckHighlightEye/DeckHighlightEye.vue.d.ts +32 -0
  174. package/dist/components/library/DeckHighlightEye/DeckHighlightEye.vue.d.ts.map +1 -0
  175. package/dist/components/library/DeckHighlightEye/types.d.ts +22 -0
  176. package/dist/components/library/DeckHighlightRegions/DeckHighlightRegions.vue.d.ts +16 -0
  177. package/dist/components/library/DeckHighlightRegions/DeckHighlightRegions.vue.d.ts.map +1 -0
  178. package/dist/components/library/DeckHighlightRegions/types.d.ts +11 -0
  179. package/dist/components/library/DeckPreview/DeckPreview.vue.d.ts +40 -0
  180. package/dist/components/library/DeckPreview/DeckPreview.vue.d.ts.map +1 -0
  181. package/dist/components/library/DeckPreview/types.d.ts +27 -0
  182. package/dist/components/library/DeckSidePanel/DeckSidePanel.vue.d.ts +38 -0
  183. package/dist/components/library/DeckSidePanel/DeckSidePanel.vue.d.ts.map +1 -0
  184. package/dist/components/library/DeckSidePanel/types.d.ts +26 -0
  185. package/dist/components/library/DecksRow/DecksRow.vue.d.ts +115 -0
  186. package/dist/components/library/DecksRow/DecksRow.vue.d.ts.map +1 -0
  187. package/dist/components/library/DecksRow/types.d.ts +78 -0
  188. package/dist/components/library/DecksTable/DecksTable.vue.d.ts +16 -0
  189. package/dist/components/library/DecksTable/DecksTable.vue.d.ts.map +1 -0
  190. package/dist/components/library/DecksTable/types.d.ts +16 -0
  191. package/dist/components/library/Filters/AdvancedFilterItem/AdvancedFilterItem.vue.d.ts +27 -0
  192. package/dist/components/library/Filters/AdvancedFilterItem/AdvancedFilterItem.vue.d.ts.map +1 -0
  193. package/dist/components/library/Filters/AdvancedFilterItem/types.d.ts +16 -0
  194. package/dist/components/library/Filters/FilterAdvanced/FilterAdvanced.vue.d.ts +19 -0
  195. package/dist/components/library/Filters/FilterAdvanced/FilterAdvanced.vue.d.ts.map +1 -0
  196. package/dist/components/library/Filters/FilterAdvanced/types.d.ts +12 -0
  197. package/dist/components/library/Filters/FilterCardCodes/FilterCardCodes.vue.d.ts +18 -0
  198. package/dist/components/library/Filters/FilterCardCodes/FilterCardCodes.vue.d.ts.map +1 -0
  199. package/dist/components/library/Filters/FilterCardCodes/types.d.ts +11 -0
  200. package/dist/components/library/Filters/FilterCards/FilterCards.vue.d.ts +35 -0
  201. package/dist/components/library/Filters/FilterCards/FilterCards.vue.d.ts.map +1 -0
  202. package/dist/components/library/Filters/FilterCards/types.d.ts +20 -0
  203. package/dist/components/library/Filters/FilterDecks/FilterDecks.vue.d.ts +31 -0
  204. package/dist/components/library/Filters/FilterDecks/FilterDecks.vue.d.ts.map +1 -0
  205. package/dist/components/library/Filters/FilterDecks/types.d.ts +18 -0
  206. package/dist/components/library/Filters/FilterKeywords/FilterKeywords.vue.d.ts +18 -0
  207. package/dist/components/library/Filters/FilterKeywords/FilterKeywords.vue.d.ts.map +1 -0
  208. package/dist/components/library/Filters/FilterKeywords/types.d.ts +11 -0
  209. package/dist/components/library/Filters/FilterManaCost/FilterManaCost.vue.d.ts +44 -0
  210. package/dist/components/library/Filters/FilterManaCost/FilterManaCost.vue.d.ts.map +1 -0
  211. package/dist/components/library/Filters/FilterManaCost/types.d.ts +23 -0
  212. package/dist/components/library/Filters/FilterRanks/FilterRanks.vue.d.ts +18 -0
  213. package/dist/components/library/Filters/FilterRanks/FilterRanks.vue.d.ts.map +1 -0
  214. package/dist/components/library/Filters/FilterRanks/types.d.ts +11 -0
  215. package/dist/components/library/Filters/FilterRarities/FilterRarities.vue.d.ts +44 -0
  216. package/dist/components/library/Filters/FilterRarities/FilterRarities.vue.d.ts.map +1 -0
  217. package/dist/components/library/Filters/FilterRarities/types.d.ts +23 -0
  218. package/dist/components/library/Filters/FilterRegions/FilterRegions.vue.d.ts +44 -0
  219. package/dist/components/library/Filters/FilterRegions/FilterRegions.vue.d.ts.map +1 -0
  220. package/dist/components/library/Filters/FilterRegions/types.d.ts +23 -0
  221. package/dist/components/library/Filters/FilterSampleSize/FilterSampleSize.vue.d.ts +18 -0
  222. package/dist/components/library/Filters/FilterSampleSize/FilterSampleSize.vue.d.ts.map +1 -0
  223. package/dist/components/library/Filters/FilterSampleSize/types.d.ts +11 -0
  224. package/dist/components/library/Filters/FilterServers/FilterServers.vue.d.ts +44 -0
  225. package/dist/components/library/Filters/FilterServers/FilterServers.vue.d.ts.map +1 -0
  226. package/dist/components/library/Filters/FilterServers/types.d.ts +23 -0
  227. package/dist/components/library/Filters/FilterSets/FilterSets.vue.d.ts +18 -0
  228. package/dist/components/library/Filters/FilterSets/FilterSets.vue.d.ts.map +1 -0
  229. package/dist/components/library/Filters/FilterSets/types.d.ts +11 -0
  230. package/dist/components/library/Filters/FilterTime/FilterTime.vue.d.ts +44 -0
  231. package/dist/components/library/Filters/FilterTime/FilterTime.vue.d.ts.map +1 -0
  232. package/dist/components/library/Filters/FilterTime/types.d.ts +23 -0
  233. package/dist/components/library/Filters/FilterTypes/FilterTypes.vue.d.ts +44 -0
  234. package/dist/components/library/Filters/FilterTypes/FilterTypes.vue.d.ts.map +1 -0
  235. package/dist/components/library/Filters/FilterTypes/types.d.ts +23 -0
  236. package/dist/components/library/FormatTag/FormatTag.vue.d.ts +16 -0
  237. package/dist/components/library/FormatTag/FormatTag.vue.d.ts.map +1 -0
  238. package/dist/components/library/FormatTag/types.d.ts +12 -0
  239. package/dist/components/library/GemsCost/GemsCost.vue.d.ts +16 -0
  240. package/dist/components/library/GemsCost/GemsCost.vue.d.ts.map +1 -0
  241. package/dist/components/library/GemsCost/types.d.ts +12 -0
  242. package/dist/components/library/LanguageSelection/LanguageSelection.vue.d.ts +2 -0
  243. package/dist/components/library/LanguageSelection/LanguageSelection.vue.d.ts.map +1 -0
  244. package/dist/components/library/LargeTable/LargeTable.vue.d.ts +18 -0
  245. package/dist/components/library/LargeTable/LargeTable.vue.d.ts.map +1 -0
  246. package/dist/components/library/LargeTable/types.d.ts +29 -0
  247. package/dist/components/library/LeaderboardDetailRow/LeaderboardDetailRow.vue.d.ts +148 -0
  248. package/dist/components/library/LeaderboardDetailRow/LeaderboardDetailRow.vue.d.ts.map +1 -0
  249. package/dist/components/library/LeaderboardDetailRow/types.d.ts +73 -0
  250. package/dist/components/library/LeaderboardDetailTable/LeaderboardDetailTable.vue.d.ts +16 -0
  251. package/dist/components/library/LeaderboardDetailTable/LeaderboardDetailTable.vue.d.ts.map +1 -0
  252. package/dist/components/library/LeaderboardDetailTable/types.d.ts +12 -0
  253. package/dist/components/library/LeaderboardOptions/LeaderboardOptions.vue.d.ts +77 -0
  254. package/dist/components/library/LeaderboardOptions/LeaderboardOptions.vue.d.ts.map +1 -0
  255. package/dist/components/library/LeaderboardOptions/types.d.ts +48 -0
  256. package/dist/components/library/LeaderboardTop/LeaderboardTop.vue.d.ts +16 -0
  257. package/dist/components/library/LeaderboardTop/LeaderboardTop.vue.d.ts.map +1 -0
  258. package/dist/components/library/LeaderboardTop/types.d.ts +12 -0
  259. package/dist/components/library/LeaderboardTop10Region/LeaderboardTop10Region.vue.d.ts +16 -0
  260. package/dist/components/library/LeaderboardTop10Region/LeaderboardTop10Region.vue.d.ts.map +1 -0
  261. package/dist/components/library/LeaderboardTop10Region/types.d.ts +26 -0
  262. package/dist/components/library/MatchItem/MatchItem.vue.d.ts +93 -0
  263. package/dist/components/library/MatchItem/MatchItem.vue.d.ts.map +1 -0
  264. package/dist/components/library/MatchItem/types.d.ts +52 -0
  265. package/dist/components/library/ModalItem/ModalItem.vue.d.ts +18 -0
  266. package/dist/components/library/ModalItem/ModalItem.vue.d.ts.map +1 -0
  267. package/dist/components/library/ModalItem/types.d.ts +10 -0
  268. package/dist/components/library/NavigationSide/NavigationSide.vue.d.ts +82 -0
  269. package/dist/components/library/NavigationSide/NavigationSide.vue.d.ts.map +1 -0
  270. package/dist/components/library/NavigationSide/types.d.ts +41 -0
  271. package/dist/components/library/NavigationTop/NavigationTop.vue.d.ts +71 -0
  272. package/dist/components/library/NavigationTop/NavigationTop.vue.d.ts.map +1 -0
  273. package/dist/components/library/NavigationTopDesktop/NavigationTopDesktop.vue.d.ts +71 -0
  274. package/dist/components/library/NavigationTopDesktop/NavigationTopDesktop.vue.d.ts.map +1 -0
  275. package/dist/components/library/NavigationTopMobile/NavigationTopMobile.vue.d.ts +71 -0
  276. package/dist/components/library/NavigationTopMobile/NavigationTopMobile.vue.d.ts.map +1 -0
  277. package/dist/components/library/ProfileArchetypeRow/ProfileArchetypeRow.vue.d.ts +60 -0
  278. package/dist/components/library/ProfileArchetypeRow/ProfileArchetypeRow.vue.d.ts.map +1 -0
  279. package/dist/components/library/ProfileArchetypeRow/types.d.ts +34 -0
  280. package/dist/components/library/ProfileArchetypeTable/ProfileArchetypeTable.vue.d.ts +16 -0
  281. package/dist/components/library/ProfileArchetypeTable/ProfileArchetypeTable.vue.d.ts.map +1 -0
  282. package/dist/components/library/ProfileArchetypeTable/types.d.ts +12 -0
  283. package/dist/components/library/ProfileDropdown/ProfileDropdown.vue.d.ts +16 -0
  284. package/dist/components/library/ProfileDropdown/ProfileDropdown.vue.d.ts.map +1 -0
  285. package/dist/components/library/ProfileDropdown/types.d.ts +10 -0
  286. package/dist/components/library/ProfileGameTypeWinrate/ProfileGameTypeWinrate.vue.d.ts +38 -0
  287. package/dist/components/library/ProfileGameTypeWinrate/ProfileGameTypeWinrate.vue.d.ts.map +1 -0
  288. package/dist/components/library/ProfileGameTypeWinrate/types.d.ts +22 -0
  289. package/dist/components/library/ProfileRegionRow/ProfileRegionRow.vue.d.ts +49 -0
  290. package/dist/components/library/ProfileRegionRow/ProfileRegionRow.vue.d.ts.map +1 -0
  291. package/dist/components/library/ProfileRegionRow/types.d.ts +30 -0
  292. package/dist/components/library/ProfileRegionTable/ProfileRegionTable.vue.d.ts +16 -0
  293. package/dist/components/library/ProfileRegionTable/ProfileRegionTable.vue.d.ts.map +1 -0
  294. package/dist/components/library/ProfileRegionTable/types.d.ts +12 -0
  295. package/dist/components/library/RegionItem/RegionItem.vue.d.ts +16 -0
  296. package/dist/components/library/RegionItem/RegionItem.vue.d.ts.map +1 -0
  297. package/dist/components/library/RegionItem/types.d.ts +12 -0
  298. package/dist/components/library/RegionsLine/RegionsLine.vue.d.ts +44 -0
  299. package/dist/components/library/RegionsLine/RegionsLine.vue.d.ts.map +1 -0
  300. package/dist/components/library/RegionsLine/types.d.ts +28 -0
  301. package/dist/components/library/RevealCarousel/RevealCarousel.vue.d.ts +16 -0
  302. package/dist/components/library/RevealCarousel/RevealCarousel.vue.d.ts.map +1 -0
  303. package/dist/components/library/RevealCarousel/types.d.ts +11 -0
  304. package/dist/components/library/RevealDayOption/RevealDayOption.vue.d.ts +38 -0
  305. package/dist/components/library/RevealDayOption/RevealDayOption.vue.d.ts.map +1 -0
  306. package/dist/components/library/RevealDayOption/types.d.ts +22 -0
  307. package/dist/components/library/RevealDayOptions/RevealDayOptions.vue.d.ts +19 -0
  308. package/dist/components/library/RevealDayOptions/RevealDayOptions.vue.d.ts.map +1 -0
  309. package/dist/components/library/RevealDayOptions/types.d.ts +12 -0
  310. package/dist/components/library/SearchBar/SearchBar.vue.d.ts +2 -0
  311. package/dist/components/library/SearchBar/SearchBar.vue.d.ts.map +1 -0
  312. package/dist/components/library/SearchBar/types.d.ts +15 -0
  313. package/dist/components/library/ShareButton/ShareButton.vue.d.ts +2 -0
  314. package/dist/components/library/ShareButton/ShareButton.vue.d.ts.map +1 -0
  315. package/dist/components/library/SidePanelSectionPane/SidePanelSectionPane.vue.d.ts +29 -0
  316. package/dist/components/library/SidePanelSectionPane/SidePanelSectionPane.vue.d.ts.map +1 -0
  317. package/dist/components/library/SidePanelSectionPane/types.d.ts +16 -0
  318. package/dist/components/library/SimilarDecksTable/SimilarDecksTable.vue.d.ts +27 -0
  319. package/dist/components/library/SimilarDecksTable/SimilarDecksTable.vue.d.ts.map +1 -0
  320. package/dist/components/library/SimilarDecksTable/types.d.ts +22 -0
  321. package/dist/components/library/SmallTable/SmallTable.vue.d.ts +16 -0
  322. package/dist/components/library/SmallTable/SmallTable.vue.d.ts.map +1 -0
  323. package/dist/components/library/SmallTable/types.d.ts +15 -0
  324. package/dist/components/library/SocialLinks/SocialLinks.vue.d.ts +2 -0
  325. package/dist/components/library/SocialLinks/SocialLinks.vue.d.ts.map +1 -0
  326. package/dist/components/library/SocialMediaLinks/SocialMediaLinks.vue.d.ts +2 -0
  327. package/dist/components/library/SocialMediaLinks/SocialMediaLinks.vue.d.ts.map +1 -0
  328. package/dist/components/library/StatisticsPaneContainer/StatisticsPaneContainer.vue.d.ts +16 -0
  329. package/dist/components/library/StatisticsPaneContainer/StatisticsPaneContainer.vue.d.ts.map +1 -0
  330. package/dist/components/library/StatisticsPaneContainer/types.d.ts +10 -0
  331. package/dist/components/library/TestComponent/TestComponent.vue.d.ts +2 -0
  332. package/dist/components/library/TestComponent/TestComponent.vue.d.ts.map +1 -0
  333. package/dist/components/library/TippyText/TippyText.vue.d.ts +16 -0
  334. package/dist/components/library/TippyText/TippyText.vue.d.ts.map +1 -0
  335. package/dist/components/library/TippyText/types.d.ts +10 -0
  336. package/dist/components/library/ToggleSwitch/ToggleSwitch.vue.d.ts +55 -0
  337. package/dist/components/library/ToggleSwitch/ToggleSwitch.vue.d.ts.map +1 -0
  338. package/dist/components/library/ToggleSwitch/types.d.ts +29 -0
  339. package/dist/components/library/WinsLossesLine/WinsLossesLine.vue.d.ts +38 -0
  340. package/dist/components/library/WinsLossesLine/WinsLossesLine.vue.d.ts.map +1 -0
  341. package/dist/components/library/WinsLossesLine/types.d.ts +22 -0
  342. package/dist/components/library/ZoomSlider/ZoomSlider.vue.d.ts +18 -0
  343. package/dist/components/library/ZoomSlider/ZoomSlider.vue.d.ts.map +1 -0
  344. package/dist/components/library/ZoomSlider/types.d.ts +10 -0
  345. package/dist/components/library/icons/ChampionIcon/ChampionIcon.vue.d.ts +2 -0
  346. package/dist/components/library/icons/ChampionIcon/ChampionIcon.vue.d.ts.map +1 -0
  347. package/dist/components/library/icons/DeckIcon/DeckIcon.vue.d.ts +2 -0
  348. package/dist/components/library/icons/DeckIcon/DeckIcon.vue.d.ts.map +1 -0
  349. package/dist/components/library/icons/EquipmentIcon/EquipmentIcon.vue.d.ts +2 -0
  350. package/dist/components/library/icons/EquipmentIcon/EquipmentIcon.vue.d.ts.map +1 -0
  351. package/dist/components/library/icons/EternalIcon/EternalIcon.vue.d.ts +2 -0
  352. package/dist/components/library/icons/EternalIcon/EternalIcon.vue.d.ts.map +1 -0
  353. package/dist/components/library/icons/FollowerIcon/FollowerIcon.vue.d.ts +2 -0
  354. package/dist/components/library/icons/FollowerIcon/FollowerIcon.vue.d.ts.map +1 -0
  355. package/dist/components/library/icons/GauntletIcon/GauntletIcon.vue.d.ts +2 -0
  356. package/dist/components/library/icons/GauntletIcon/GauntletIcon.vue.d.ts.map +1 -0
  357. package/dist/components/library/icons/InfoIcon/InfoIcon.vue.d.ts +2 -0
  358. package/dist/components/library/icons/InfoIcon/InfoIcon.vue.d.ts.map +1 -0
  359. package/dist/components/library/icons/LandmarkIcon/LandmarkIcon.vue.d.ts +2 -0
  360. package/dist/components/library/icons/LandmarkIcon/LandmarkIcon.vue.d.ts.map +1 -0
  361. package/dist/components/library/icons/LogoIcon/LogoIcon.vue.d.ts +16 -0
  362. package/dist/components/library/icons/LogoIcon/LogoIcon.vue.d.ts.map +1 -0
  363. package/dist/components/library/icons/LogoIcon/types.d.ts +12 -0
  364. package/dist/components/library/icons/ManaHexagonIcon/ManaHexagonIcon.vue.d.ts +2 -0
  365. package/dist/components/library/icons/ManaHexagonIcon/ManaHexagonIcon.vue.d.ts.map +1 -0
  366. package/dist/components/library/icons/RuneterraIcon/RuneterraIcon.vue.d.ts +2 -0
  367. package/dist/components/library/icons/RuneterraIcon/RuneterraIcon.vue.d.ts.map +1 -0
  368. package/dist/components/library/icons/ShardsIcon/ShardsIcon.vue.d.ts +2 -0
  369. package/dist/components/library/icons/ShardsIcon/ShardsIcon.vue.d.ts.map +1 -0
  370. package/dist/components/library/icons/SpellIcon/SpellIcon.vue.d.ts +2 -0
  371. package/dist/components/library/icons/SpellIcon/SpellIcon.vue.d.ts.map +1 -0
  372. package/dist/components/library/icons/StandardIcon/StandardIcon.vue.d.ts +2 -0
  373. package/dist/components/library/icons/StandardIcon/StandardIcon.vue.d.ts.map +1 -0
  374. package/dist/components/main.d.ts +6 -0
  375. package/dist/components/setup/i18n.d.ts +276 -0
  376. package/dist/components/setup/i18n.d.ts.map +1 -0
  377. package/dist/components/setup/icons.d.ts +1 -0
  378. package/dist/components/setup/icons.d.ts.map +1 -0
  379. package/dist/components/setup/stores/cardJson.d.ts +8 -0
  380. package/dist/components/setup/stores/cardJson.d.ts.map +1 -0
  381. package/dist/components/setup/stores/cardJsonObject.d.ts +8 -0
  382. package/dist/components/setup/stores/cardJsonObject.d.ts.map +1 -0
  383. package/dist/components/setup/stores/dataJson.d.ts +8 -0
  384. package/dist/components/setup/stores/dataJson.d.ts.map +1 -0
  385. package/dist/components/types/filters.d.ts +23 -0
  386. package/dist/components/types/filters.d.ts.map +1 -0
  387. package/dist/components/types/jsons.d.ts +166 -0
  388. package/dist/components/types/jsons.d.ts.map +1 -0
  389. package/dist/components/types/navigation.d.ts +52 -0
  390. package/dist/components/types/navigation.d.ts.map +1 -0
  391. package/dist/components/types/providers.d.ts +11 -0
  392. package/dist/components/types/providers.d.ts.map +1 -0
  393. package/dist/lorgg-components.cjs.js +864 -0
  394. package/dist/lorgg-components.css +1 -0
  395. package/dist/lorgg-components.es.js +36316 -0
  396. package/dist/lorgg-components.umd.js +865 -0
  397. package/dist/main.d.ts +3 -0
  398. package/dist/vite.svg +1 -0
  399. package/package.json +81 -0
@@ -0,0 +1,864 @@
1
+ "use strict";var R3=Object.defineProperty;var B3=(e,t,n)=>t in e?R3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var z=(e,t,n)=>(B3(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),kf=require("pinia");/*!
2
+ * shared v9.2.2
3
+ * (c) 2022 kazuya kawaguchi
4
+ * Released under the MIT License.
5
+ */const qn=typeof window<"u";let sn,La;if(process.env.NODE_ENV!=="production"){const e=qn&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(sn=t=>e.mark(t),La=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const V3=/\{([0-9a-zA-Z]+)\}/g;function wc(e,...t){return t.length===1&&Be(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(V3,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const $3=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Jn=e=>$3?Symbol(e):e,F3=(e,t,n)=>z3({l:e,k:t,s:n}),z3=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),_t=e=>typeof e=="number"&&isFinite(e),j3=e=>Sf(e)==="[object Date]",Zr=e=>Sf(e)==="[object RegExp]",Sc=e=>pe(e)&&Object.keys(e).length===0;function Ut(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Ct=Object.assign;let rm;const ys=()=>rm||(rm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function am(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const H3=Object.prototype.hasOwnProperty;function wf(e,t){return H3.call(e,t)}const je=Array.isArray,ct=e=>typeof e=="function",U=e=>typeof e=="string",ke=e=>typeof e=="boolean",Be=e=>e!==null&&typeof e=="object",sv=Object.prototype.toString,Sf=e=>sv.call(e),pe=e=>Sf(e)==="[object Object]",W3=e=>e==null?"":je(e)||pe(e)&&e.toString===sv?JSON.stringify(e,null,2):String(e),im=2;function U3(e,t=0,n=e.length){const r=e.split(/\r?\n/);let a=0;const i=[];for(let s=0;s<r.length;s++)if(a+=r[s].length+1,a>=t){for(let l=s-im;l<=s+im||n>a;l++){if(l<0||l>=r.length)continue;const c=l+1;i.push(`${c}${" ".repeat(3-String(c).length)}| ${r[l]}`);const u=r[l].length;if(l===s){const d=t-(a-u)+1,f=Math.max(1,n>a?u-d:n-t);i.push(" | "+" ".repeat(d)+"^".repeat(f))}else if(l>s){if(n>a){const d=Math.max(Math.min(n-a,u),1);i.push(" | "+"^".repeat(d))}a+=u+1}}break}return i.join(`
6
+ `)}function xf(){const e=new Map;return{events:e,on(n,r){const a=e.get(n);a&&a.push(r)||e.set(n,[r])},off(n,r){const a=e.get(n);a&&a.splice(a.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(a=>a(r)),(e.get("*")||[]).slice().map(a=>a(n,r))}}}/*!
7
+ * message-compiler v9.2.2
8
+ * (c) 2022 kazuya kawaguchi
9
+ * Released under the MIT License.
10
+ */const fe={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15},Y3={[fe.EXPECTED_TOKEN]:"Expected token: '{0}'",[fe.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[fe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[fe.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[fe.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[fe.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[fe.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[fe.EMPTY_PLACEHOLDER]:"Empty placeholder",[fe.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[fe.INVALID_LINKED_FORMAT]:"Invalid linked format",[fe.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[fe.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[fe.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[fe.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'"};function xc(e,t,n={}){const{domain:r,messages:a,args:i}=n,s=process.env.NODE_ENV!=="production"?wc((a||Y3)[e]||"",...i||[]):e,l=new SyntaxError(String(s));return l.code=e,t&&(l.location=t),l.domain=r,l}function q3(e){throw e}function G3(e,t,n){return{line:e,column:t,offset:n}}function sd(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const nr=" ",X3="\r",Rt=`
11
+ `,K3=String.fromCharCode(8232),J3=String.fromCharCode(8233);function Z3(e){const t=e;let n=0,r=1,a=1,i=0;const s=C=>t[C]===X3&&t[C+1]===Rt,l=C=>t[C]===Rt,c=C=>t[C]===J3,u=C=>t[C]===K3,d=C=>s(C)||l(C)||c(C)||u(C),f=()=>n,p=()=>r,h=()=>a,g=()=>i,v=C=>s(C)||c(C)||u(C)?Rt:t[C],b=()=>v(n),m=()=>v(n+i);function _(){return i=0,d(n)&&(r++,a=0),s(n)&&n++,n++,a++,t[n]}function k(){return s(n+i)&&i++,i++,t[n+i]}function y(){n=0,r=1,a=1,i=0}function w(C=0){i=C}function S(){const C=n+i;for(;C!==n;)_();i=0}return{index:f,line:p,column:h,peekOffset:g,charAt:v,currentChar:b,currentPeek:m,next:_,peek:k,reset:y,resetPeek:w,skipToPeek:S}}const Ir=void 0,sm="'",Q3="tokenizer";function e4(e,t={}){const n=t.location!==!1,r=Z3(e),a=()=>r.index(),i=()=>G3(r.line(),r.column(),r.index()),s=i(),l=a(),c={currentType:14,offset:l,startLoc:s,endLoc:s,lastType:14,lastOffset:l,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:d}=t;function f(T,x,P,...H){const te=u();if(x.column+=P,x.offset+=P,d){const ue=sd(te.startLoc,x),vt=xc(T,ue,{domain:Q3,args:H});d(vt)}}function p(T,x,P){T.endLoc=i(),T.currentType=x;const H={type:x};return n&&(H.loc=sd(T.startLoc,T.endLoc)),P!=null&&(H.value=P),H}const h=T=>p(T,14);function g(T,x){return T.currentChar()===x?(T.next(),x):(f(fe.EXPECTED_TOKEN,i(),0,x),"")}function v(T){let x="";for(;T.currentPeek()===nr||T.currentPeek()===Rt;)x+=T.currentPeek(),T.peek();return x}function b(T){const x=v(T);return T.skipToPeek(),x}function m(T){if(T===Ir)return!1;const x=T.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x===95}function _(T){if(T===Ir)return!1;const x=T.charCodeAt(0);return x>=48&&x<=57}function k(T,x){const{currentType:P}=x;if(P!==2)return!1;v(T);const H=m(T.currentPeek());return T.resetPeek(),H}function y(T,x){const{currentType:P}=x;if(P!==2)return!1;v(T);const H=T.currentPeek()==="-"?T.peek():T.currentPeek(),te=_(H);return T.resetPeek(),te}function w(T,x){const{currentType:P}=x;if(P!==2)return!1;v(T);const H=T.currentPeek()===sm;return T.resetPeek(),H}function S(T,x){const{currentType:P}=x;if(P!==8)return!1;v(T);const H=T.currentPeek()===".";return T.resetPeek(),H}function C(T,x){const{currentType:P}=x;if(P!==9)return!1;v(T);const H=m(T.currentPeek());return T.resetPeek(),H}function E(T,x){const{currentType:P}=x;if(!(P===8||P===12))return!1;v(T);const H=T.currentPeek()===":";return T.resetPeek(),H}function O(T,x){const{currentType:P}=x;if(P!==10)return!1;const H=()=>{const ue=T.currentPeek();return ue==="{"?m(T.peek()):ue==="@"||ue==="%"||ue==="|"||ue===":"||ue==="."||ue===nr||!ue?!1:ue===Rt?(T.peek(),H()):m(ue)},te=H();return T.resetPeek(),te}function L(T){v(T);const x=T.currentPeek()==="|";return T.resetPeek(),x}function D(T){const x=v(T),P=T.currentPeek()==="%"&&T.peek()==="{";return T.resetPeek(),{isModulo:P,hasSpace:x.length>0}}function N(T,x=!0){const P=(te=!1,ue="",vt=!1)=>{const ot=T.currentPeek();return ot==="{"?ue==="%"?!1:te:ot==="@"||!ot?ue==="%"?!0:te:ot==="%"?(T.peek(),P(te,"%",!0)):ot==="|"?ue==="%"||vt?!0:!(ue===nr||ue===Rt):ot===nr?(T.peek(),P(!0,nr,vt)):ot===Rt?(T.peek(),P(!0,Rt,vt)):!0},H=P();return x&&T.resetPeek(),H}function R(T,x){const P=T.currentChar();return P===Ir?Ir:x(P)?(T.next(),P):null}function ne(T){return R(T,P=>{const H=P.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===95||H===36})}function K(T){return R(T,P=>{const H=P.charCodeAt(0);return H>=48&&H<=57})}function Z(T){return R(T,P=>{const H=P.charCodeAt(0);return H>=48&&H<=57||H>=65&&H<=70||H>=97&&H<=102})}function X(T){let x="",P="";for(;x=K(T);)P+=x;return P}function ce(T){b(T);const x=T.currentChar();return x!=="%"&&f(fe.EXPECTED_TOKEN,i(),0,x),T.next(),"%"}function Y(T){let x="";for(;;){const P=T.currentChar();if(P==="{"||P==="}"||P==="@"||P==="|"||!P)break;if(P==="%")if(N(T))x+=P,T.next();else break;else if(P===nr||P===Rt)if(N(T))x+=P,T.next();else{if(L(T))break;x+=P,T.next()}else x+=P,T.next()}return x}function se(T){b(T);let x="",P="";for(;x=ne(T);)P+=x;return T.currentChar()===Ir&&f(fe.UNTERMINATED_CLOSING_BRACE,i(),0),P}function de(T){b(T);let x="";return T.currentChar()==="-"?(T.next(),x+=`-${X(T)}`):x+=X(T),T.currentChar()===Ir&&f(fe.UNTERMINATED_CLOSING_BRACE,i(),0),x}function Te(T){b(T),g(T,"'");let x="",P="";const H=ue=>ue!==sm&&ue!==Rt;for(;x=R(T,H);)x==="\\"?P+=Fe(T):P+=x;const te=T.currentChar();return te===Rt||te===Ir?(f(fe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),te===Rt&&(T.next(),g(T,"'")),P):(g(T,"'"),P)}function Fe(T){const x=T.currentChar();switch(x){case"\\":case"'":return T.next(),`\\${x}`;case"u":return ve(T,x,4);case"U":return ve(T,x,6);default:return f(fe.UNKNOWN_ESCAPE_SEQUENCE,i(),0,x),""}}function ve(T,x,P){g(T,x);let H="";for(let te=0;te<P;te++){const ue=Z(T);if(!ue){f(fe.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${x}${H}${T.currentChar()}`);break}H+=ue}return`\\${x}${H}`}function ie(T){b(T);let x="",P="";const H=te=>te!=="{"&&te!=="}"&&te!==nr&&te!==Rt;for(;x=R(T,H);)P+=x;return P}function V(T){let x="",P="";for(;x=ne(T);)P+=x;return P}function Q(T){const x=(P=!1,H)=>{const te=T.currentChar();return te==="{"||te==="%"||te==="@"||te==="|"||!te||te===nr?H:te===Rt?(H+=te,T.next(),x(P,H)):(H+=te,T.next(),x(!0,H))};return x(!1,"")}function Ae(T){b(T);const x=g(T,"|");return b(T),x}function et(T,x){let P=null;switch(T.currentChar()){case"{":return x.braceNest>=1&&f(fe.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),T.next(),P=p(x,2,"{"),b(T),x.braceNest++,P;case"}":return x.braceNest>0&&x.currentType===2&&f(fe.EMPTY_PLACEHOLDER,i(),0),T.next(),P=p(x,3,"}"),x.braceNest--,x.braceNest>0&&b(T),x.inLinked&&x.braceNest===0&&(x.inLinked=!1),P;case"@":return x.braceNest>0&&f(fe.UNTERMINATED_CLOSING_BRACE,i(),0),P=gt(T,x)||h(x),x.braceNest=0,P;default:let te=!0,ue=!0,vt=!0;if(L(T))return x.braceNest>0&&f(fe.UNTERMINATED_CLOSING_BRACE,i(),0),P=p(x,1,Ae(T)),x.braceNest=0,x.inLinked=!1,P;if(x.braceNest>0&&(x.currentType===5||x.currentType===6||x.currentType===7))return f(fe.UNTERMINATED_CLOSING_BRACE,i(),0),x.braceNest=0,ut(T,x);if(te=k(T,x))return P=p(x,5,se(T)),b(T),P;if(ue=y(T,x))return P=p(x,6,de(T)),b(T),P;if(vt=w(T,x))return P=p(x,7,Te(T)),b(T),P;if(!te&&!ue&&!vt)return P=p(x,13,ie(T)),f(fe.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,P.value),b(T),P;break}return P}function gt(T,x){const{currentType:P}=x;let H=null;const te=T.currentChar();switch((P===8||P===9||P===12||P===10)&&(te===Rt||te===nr)&&f(fe.INVALID_LINKED_FORMAT,i(),0),te){case"@":return T.next(),H=p(x,8,"@"),x.inLinked=!0,H;case".":return b(T),T.next(),p(x,9,".");case":":return b(T),T.next(),p(x,10,":");default:return L(T)?(H=p(x,1,Ae(T)),x.braceNest=0,x.inLinked=!1,H):S(T,x)||E(T,x)?(b(T),gt(T,x)):C(T,x)?(b(T),p(x,12,V(T))):O(T,x)?(b(T),te==="{"?et(T,x)||H:p(x,11,Q(T))):(P===8&&f(fe.INVALID_LINKED_FORMAT,i(),0),x.braceNest=0,x.inLinked=!1,ut(T,x))}}function ut(T,x){let P={type:14};if(x.braceNest>0)return et(T,x)||h(x);if(x.inLinked)return gt(T,x)||h(x);switch(T.currentChar()){case"{":return et(T,x)||h(x);case"}":return f(fe.UNBALANCED_CLOSING_BRACE,i(),0),T.next(),p(x,3,"}");case"@":return gt(T,x)||h(x);default:if(L(T))return P=p(x,1,Ae(T)),x.braceNest=0,x.inLinked=!1,P;const{isModulo:te,hasSpace:ue}=D(T);if(te)return ue?p(x,0,Y(T)):p(x,4,ce(T));if(N(T))return p(x,0,Y(T));break}return P}function pn(){const{currentType:T,offset:x,startLoc:P,endLoc:H}=c;return c.lastType=T,c.lastOffset=x,c.lastStartLoc=P,c.lastEndLoc=H,c.offset=a(),c.startLoc=i(),r.currentChar()===Ir?p(c,14):ut(r,c)}return{nextToken:pn,currentOffset:a,currentPosition:i,context:u}}const t4="parser",n4=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function r4(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function a4(e={}){const t=e.location!==!1,{onError:n}=e;function r(m,_,k,y,...w){const S=m.currentPosition();if(S.offset+=y,S.column+=y,n){const C=sd(k,S),E=xc(_,C,{domain:t4,args:w});n(E)}}function a(m,_,k){const y={type:m,start:_,end:_};return t&&(y.loc={start:k,end:k}),y}function i(m,_,k,y){m.end=_,y&&(m.type=y),t&&m.loc&&(m.loc.end=k)}function s(m,_){const k=m.context(),y=a(3,k.offset,k.startLoc);return y.value=_,i(y,m.currentOffset(),m.currentPosition()),y}function l(m,_){const k=m.context(),{lastOffset:y,lastStartLoc:w}=k,S=a(5,y,w);return S.index=parseInt(_,10),m.nextToken(),i(S,m.currentOffset(),m.currentPosition()),S}function c(m,_){const k=m.context(),{lastOffset:y,lastStartLoc:w}=k,S=a(4,y,w);return S.key=_,m.nextToken(),i(S,m.currentOffset(),m.currentPosition()),S}function u(m,_){const k=m.context(),{lastOffset:y,lastStartLoc:w}=k,S=a(9,y,w);return S.value=_.replace(n4,r4),m.nextToken(),i(S,m.currentOffset(),m.currentPosition()),S}function d(m){const _=m.nextToken(),k=m.context(),{lastOffset:y,lastStartLoc:w}=k,S=a(8,y,w);return _.type!==12?(r(m,fe.UNEXPECTED_EMPTY_LINKED_MODIFIER,k.lastStartLoc,0),S.value="",i(S,y,w),{nextConsumeToken:_,node:S}):(_.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Rn(_)),S.value=_.value||"",i(S,m.currentOffset(),m.currentPosition()),{node:S})}function f(m,_){const k=m.context(),y=a(7,k.offset,k.startLoc);return y.value=_,i(y,m.currentOffset(),m.currentPosition()),y}function p(m){const _=m.context(),k=a(6,_.offset,_.startLoc);let y=m.nextToken();if(y.type===9){const w=d(m);k.modifier=w.node,y=w.nextConsumeToken||m.nextToken()}switch(y.type!==10&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rn(y)),y=m.nextToken(),y.type===2&&(y=m.nextToken()),y.type){case 11:y.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rn(y)),k.key=f(m,y.value||"");break;case 5:y.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rn(y)),k.key=c(m,y.value||"");break;case 6:y.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rn(y)),k.key=l(m,y.value||"");break;case 7:y.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rn(y)),k.key=u(m,y.value||"");break;default:r(m,fe.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const w=m.context(),S=a(7,w.offset,w.startLoc);return S.value="",i(S,w.offset,w.startLoc),k.key=S,i(k,w.offset,w.startLoc),{nextConsumeToken:y,node:k}}return i(k,m.currentOffset(),m.currentPosition()),{node:k}}function h(m){const _=m.context(),k=_.currentType===1?m.currentOffset():_.offset,y=_.currentType===1?_.endLoc:_.startLoc,w=a(2,k,y);w.items=[];let S=null;do{const O=S||m.nextToken();switch(S=null,O.type){case 0:O.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rn(O)),w.items.push(s(m,O.value||""));break;case 6:O.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rn(O)),w.items.push(l(m,O.value||""));break;case 5:O.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rn(O)),w.items.push(c(m,O.value||""));break;case 7:O.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rn(O)),w.items.push(u(m,O.value||""));break;case 8:const L=p(m);w.items.push(L.node),S=L.nextConsumeToken||null;break}}while(_.currentType!==14&&_.currentType!==1);const C=_.currentType===1?_.lastOffset:m.currentOffset(),E=_.currentType===1?_.lastEndLoc:m.currentPosition();return i(w,C,E),w}function g(m,_,k,y){const w=m.context();let S=y.items.length===0;const C=a(1,_,k);C.cases=[],C.cases.push(y);do{const E=h(m);S||(S=E.items.length===0),C.cases.push(E)}while(w.currentType!==14);return S&&r(m,fe.MUST_HAVE_MESSAGES_IN_PLURAL,k,0),i(C,m.currentOffset(),m.currentPosition()),C}function v(m){const _=m.context(),{offset:k,startLoc:y}=_,w=h(m);return _.currentType===14?w:g(m,k,y,w)}function b(m){const _=e4(m,Ct({},e)),k=_.context(),y=a(0,k.offset,k.startLoc);return t&&y.loc&&(y.loc.source=m),y.body=v(_),k.currentType!==14&&r(_,fe.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,m[k.offset]||""),i(y,_.currentOffset(),_.currentPosition()),y}return{parse:b}}function Rn(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function i4(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function om(e,t){for(let n=0;n<e.length;n++)Cf(e[n],t)}function Cf(e,t){switch(e.type){case 1:om(e.cases,t),t.helper("plural");break;case 2:om(e.items,t);break;case 6:Cf(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function s4(e,t={}){const n=i4(e);n.helper("normalize"),e.body&&Cf(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function o4(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:i}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:i,indentLevel:0},l=()=>s;function c(v,b){s.code+=v}function u(v,b=!0){const m=b?a:"";c(i?m+" ".repeat(v):m)}function d(v=!0){const b=++s.indentLevel;v&&u(b)}function f(v=!0){const b=--s.indentLevel;v&&u(b)}function p(){u(s.indentLevel)}return{context:l,push:c,indent:d,deindent:f,newline:p,helper:v=>`_${v}`,needIndent:()=>s.needIndent}}function l4(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),wi(e,t.key),t.modifier?(e.push(", "),wi(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function c4(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let i=0;i<a&&(wi(e,t.items[i]),i!==a-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function u4(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let i=0;i<a&&(wi(e,t.cases[i]),i!==a-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function d4(e,t){t.body?wi(e,t.body):e.push("null")}function wi(e,t){const{helper:n}=e;switch(t.type){case 0:d4(e,t);break;case 1:u4(e,t);break;case 2:c4(e,t);break;case 6:l4(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw new Error(`unhandled codegen node type: ${t.type}`)}}const f4=(e,t={})=>{const n=U(t.mode)?t.mode:"normal",r=U(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
12
+ `,s=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],c=o4(e,{mode:n,filename:r,sourceMap:a,breakLineCode:i,needIndent:s});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),l.length>0&&(c.push(`const { ${l.map(f=>`${f}: _${f}`).join(", ")} } = ctx`),c.newline()),c.push("return "),wi(c,e),c.deindent(s),c.push("}");const{code:u,map:d}=c.context();return{ast:e,code:u,map:d?d.toJSON():void 0}};function p4(e,t={}){const n=Ct({},t),a=a4(n).parse(e);return s4(a,n),f4(a,n)}/*!
13
+ * devtools-if v9.2.2
14
+ * (c) 2022 kazuya kawaguchi
15
+ * Released under the MIT License.
16
+ */const ov={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
17
+ * core-base v9.2.2
18
+ * (c) 2022 kazuya kawaguchi
19
+ * Released under the MIT License.
20
+ */const la=[];la[0]={w:[0],i:[3,0],["["]:[4],o:[7]};la[1]={w:[1],["."]:[2],["["]:[4],o:[7]};la[2]={w:[2],i:[3,0],[0]:[3,0]};la[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};la[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};la[5]={["'"]:[4,0],o:8,l:[5,0]};la[6]={['"']:[4,0],o:8,l:[6,0]};const h4=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function m4(e){return h4.test(e)}function g4(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function v4(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function _4(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:m4(t)?g4(t):"*"+t}function y4(e){const t=[];let n=-1,r=0,a=0,i,s,l,c,u,d,f;const p=[];p[0]=()=>{s===void 0?s=l:s+=l},p[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},p[2]=()=>{p[0](),a++},p[3]=()=>{if(a>0)a--,r=4,p[0]();else{if(a=0,s===void 0||(s=_4(s),s===!1))return!1;p[1]()}};function h(){const g=e[n+1];if(r===5&&g==="'"||r===6&&g==='"')return n++,l="\\"+g,p[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&h())){if(c=v4(i),f=la[r],u=f[c]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(d=p[u[1]],d&&(l=i,d()===!1))))return;if(r===7)return t}}const lm=new Map;function b4(e,t){return Be(e)?e[t]:null}function k4(e,t){if(!Be(e))return null;let n=lm.get(t);if(n||(n=y4(t),n&&lm.set(t,n)),!n)return null;const r=n.length;let a=e,i=0;for(;i<r;){const s=a[n[i]];if(s===void 0)return null;a=s,i++}return a}const w4=e=>e,S4=e=>"",x4="text",C4=e=>e.length===0?"":e.join(""),E4=W3;function cm(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function T4(e){const t=_t(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(_t(e.named.count)||_t(e.named.n))?_t(e.named.count)?e.named.count:_t(e.named.n)?e.named.n:t:t}function O4(e,t){t.count||(t.count=e),t.n||(t.n=e)}function M4(e={}){const t=e.locale,n=T4(e),r=Be(e.pluralRules)&&U(t)&&ct(e.pluralRules[t])?e.pluralRules[t]:cm,a=Be(e.pluralRules)&&U(t)&&ct(e.pluralRules[t])?cm:void 0,i=m=>m[r(n,m.length,a)],s=e.list||[],l=m=>s[m],c=e.named||{};_t(e.pluralIndex)&&O4(n,c);const u=m=>c[m];function d(m){const _=ct(e.messages)?e.messages(m):Be(e.messages)?e.messages[m]:!1;return _||(e.parent?e.parent.message(m):S4)}const f=m=>e.modifiers?e.modifiers[m]:w4,p=pe(e.processor)&&ct(e.processor.normalize)?e.processor.normalize:C4,h=pe(e.processor)&&ct(e.processor.interpolate)?e.processor.interpolate:E4,g=pe(e.processor)&&U(e.processor.type)?e.processor.type:x4,b={list:l,named:u,plural:i,linked:(m,..._)=>{const[k,y]=_;let w="text",S="";_.length===1?Be(k)?(S=k.modifier||S,w=k.type||w):U(k)&&(S=k||S):_.length===2&&(U(k)&&(S=k||S),U(y)&&(w=y||w));let C=d(m)(b);return w==="vnode"&&je(C)&&S&&(C=C[0]),S?f(S)(C,w):C},message:d,type:g,interpolate:h,normalize:p};return b}let $s=null;function N4(e){$s=e}function D4(e,t,n){$s&&$s.emit(ov.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const P4=A4(ov.FunctionTranslate);function A4(e){return t=>$s&&$s.emit(e,t)}const tn={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},I4={[tn.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[tn.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[tn.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[tn.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[tn.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[tn.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function Si(e,...t){return wc(I4[e],...t)}function L4(e,t,n){return[...new Set([n,...je(t)?t:Be(t)?Object.keys(t):U(t)?[t]:[n]])]}function lv(e,t,n){const r=U(n)?n:fo,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(r);if(!i){i=[];let s=[n];for(;je(s);)s=um(i,s,t);const l=je(t)||!pe(t)?t:t.default?t.default:null;s=U(l)?[l]:l,je(s)&&um(i,s,!1),a.__localeChainCache.set(r,i)}return i}function um(e,t,n){let r=!0;for(let a=0;a<t.length&&ke(r);a++){const i=t[a];U(i)&&(r=R4(e,t[a],n))}return r}function R4(e,t,n){let r;const a=t.split("-");do{const i=a.join("-");r=B4(e,i,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function B4(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(je(n)||pe(n))&&n[a]&&(r=n[a])}return r}const V4="9.2.2",Cc=-1,fo="en-US",Yl="",dm=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function $4(){return{upper:(e,t)=>t==="text"&&U(e)?e.toUpperCase():t==="vnode"&&Be(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&U(e)?e.toLowerCase():t==="vnode"&&Be(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&U(e)?dm(e):t==="vnode"&&Be(e)&&"__v_isVNode"in e?dm(e.children):e}}let cv;function F4(e){cv=e}let uv;function z4(e){uv=e}let dv;function j4(e){dv=e}let fv=null;const fm=e=>{fv=e},H4=()=>fv;let pv=null;const pm=e=>{pv=e},W4=()=>pv;let hm=0;function U4(e={}){const t=U(e.version)?e.version:V4,n=U(e.locale)?e.locale:fo,r=je(e.fallbackLocale)||pe(e.fallbackLocale)||U(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,a=pe(e.messages)?e.messages:{[n]:{}},i=pe(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=pe(e.numberFormats)?e.numberFormats:{[n]:{}},l=Ct({},e.modifiers||{},$4()),c=e.pluralRules||{},u=ct(e.missing)?e.missing:null,d=ke(e.missingWarn)||Zr(e.missingWarn)?e.missingWarn:!0,f=ke(e.fallbackWarn)||Zr(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,h=!!e.unresolving,g=ct(e.postTranslation)?e.postTranslation:null,v=pe(e.processor)?e.processor:null,b=ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter,_=ct(e.messageCompiler)?e.messageCompiler:cv,k=ct(e.messageResolver)?e.messageResolver:uv||b4,y=ct(e.localeFallbacker)?e.localeFallbacker:dv||L4,w=Be(e.fallbackContext)?e.fallbackContext:void 0,S=ct(e.onWarn)?e.onWarn:Ut,C=e,E=Be(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,O=Be(C.__numberFormatters)?C.__numberFormatters:new Map,L=Be(C.__meta)?C.__meta:{};hm++;const D={version:t,cid:hm,locale:n,fallbackLocale:r,messages:a,modifiers:l,pluralRules:c,missing:u,missingWarn:d,fallbackWarn:f,fallbackFormat:p,unresolving:h,postTranslation:g,processor:v,warnHtmlMessage:b,escapeParameter:m,messageCompiler:_,messageResolver:k,localeFallbacker:y,fallbackContext:w,onWarn:S,__meta:L};return D.datetimeFormats=i,D.numberFormats=s,D.__datetimeFormatters=E,D.__numberFormatters=O,process.env.NODE_ENV!=="production"&&(D.__v_emitter=C.__v_emitter!=null?C.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&D4(D,t,L),D}function Ec(e,t){return e instanceof RegExp?e.test(t):e}function hv(e,t){return e instanceof RegExp?e.test(t):e}function Ef(e,t,n,r,a){const{missing:i,onWarn:s}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(i!==null){const l=i(e,n,t,a);return U(l)?l:t}else return process.env.NODE_ENV!=="production"&&hv(r,t)&&s(Si(tn.NOT_FOUND_KEY,{key:t,locale:n})),t}function ts(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const Y4=/<\/?[\w\s="/.':;#-\/]+>/,q4="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function G4(e,t){(ke(t.warnHtmlMessage)?t.warnHtmlMessage:!0)&&Y4.test(e)&&Ut(wc(q4,{source:e}))}const X4=e=>e;let mm=Object.create(null);function K4(e,t={}){{process.env.NODE_ENV!=="production"&&G4(e,t);const r=(t.onCacheKey||X4)(e),a=mm[r];if(a)return a;let i=!1;const s=t.onError||q3;t.onError=u=>{i=!0,s(u)};const{code:l}=p4(e,t),c=new Function(`return ${l}`)();return i?c:mm[r]=c}}let mv=fe.__EXTEND_POINT__;const bu=()=>++mv,dr={INVALID_ARGUMENT:mv,INVALID_DATE_ARGUMENT:bu(),INVALID_ISO_DATE_ARGUMENT:bu(),__EXTEND_POINT__:bu()};function di(e){return xc(e,null,process.env.NODE_ENV!=="production"?{messages:J4}:void 0)}const J4={[dr.INVALID_ARGUMENT]:"Invalid arguments",[dr.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[dr.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string"},gm=()=>"",zn=e=>ct(e);function vm(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:i,fallbackLocale:s,messages:l}=e,[c,u]=od(...t),d=ke(u.missingWarn)?u.missingWarn:e.missingWarn,f=ke(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=ke(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,g=U(u.default)||ke(u.default)?ke(u.default)?i?c:()=>c:u.default:n?i?c:()=>c:"",v=n||g!=="",b=U(u.locale)?u.locale:e.locale;p&&Z4(u);let[m,_,k]=h?[c,b,l[b]||{}]:gv(e,c,b,s,f,d),y=m,w=c;if(!h&&!(U(y)||zn(y))&&v&&(y=g,w=y),!h&&(!(U(y)||zn(y))||!U(_)))return a?Cc:c;if(process.env.NODE_ENV!=="production"&&U(y)&&e.messageCompiler==null)return Ut(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let S=!1;const C=()=>{S=!0},E=zn(y)?y:vv(e,c,_,y,w,C);if(S)return y;const O=t5(e,_,k,u),L=M4(O),D=Q4(e,E,L),N=r?r(D,c):D;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const R={timestamp:Date.now(),key:U(c)?c:zn(y)?y.key:"",locale:_||(zn(y)?y.locale:""),format:U(y)?y:zn(y)?y.source:"",message:N};R.meta=Ct({},e.__meta,H4()||{}),P4(R)}return N}function Z4(e){je(e.list)?e.list=e.list.map(t=>U(t)?am(t):t):Be(e.named)&&Object.keys(e.named).forEach(t=>{U(e.named[t])&&(e.named[t]=am(e.named[t]))})}function gv(e,t,n,r,a,i){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:u}=e,d=u(e,r,n);let f={},p,h=null,g=n,v=null;const b="translate";for(let m=0;m<d.length;m++){if(p=v=d[m],process.env.NODE_ENV!=="production"&&n!==p&&Ec(a,t)&&l(Si(tn.FALLBACK_TO_TRANSLATE,{key:t,target:p})),process.env.NODE_ENV!=="production"&&n!==p){const S=e.__v_emitter;S&&S.emit("fallback",{type:b,key:t,from:g,to:v,groupId:`${b}:${t}`})}f=s[p]||{};let _=null,k,y;if(process.env.NODE_ENV!=="production"&&qn&&(_=window.performance.now(),k="intlify-message-resolve-start",y="intlify-message-resolve-end",sn&&sn(k)),(h=c(f,t))===null&&(h=f[t]),process.env.NODE_ENV!=="production"&&qn){const S=window.performance.now(),C=e.__v_emitter;C&&_&&h&&C.emit("message-resolve",{type:"message-resolve",key:t,message:h,time:S-_,groupId:`${b}:${t}`}),k&&y&&sn&&La&&(sn(y),La("intlify message resolve",k,y))}if(U(h)||ct(h))break;const w=Ef(e,t,p,i,b);w!==t&&(h=w),g=v}return[h,p,f]}function vv(e,t,n,r,a,i){const{messageCompiler:s,warnHtmlMessage:l}=e;if(zn(r)){const p=r;return p.locale=p.locale||n,p.key=p.key||t,p}if(s==null){const p=()=>r;return p.locale=n,p.key=t,p}let c=null,u,d;process.env.NODE_ENV!=="production"&&qn&&(c=window.performance.now(),u="intlify-message-compilation-start",d="intlify-message-compilation-end",sn&&sn(u));const f=s(r,e5(e,n,a,r,l,i));if(process.env.NODE_ENV!=="production"&&qn){const p=window.performance.now(),h=e.__v_emitter;h&&c&&h.emit("message-compilation",{type:"message-compilation",message:r,time:p-c,groupId:`translate:${t}`}),u&&d&&sn&&La&&(sn(d),La("intlify message compilation",u,d))}return f.locale=n,f.key=t,f.source=r,f}function Q4(e,t,n){let r=null,a,i;process.env.NODE_ENV!=="production"&&qn&&(r=window.performance.now(),a="intlify-message-evaluation-start",i="intlify-message-evaluation-end",sn&&sn(a));const s=t(n);if(process.env.NODE_ENV!=="production"&&qn){const l=window.performance.now(),c=e.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:s,time:l-r,groupId:`translate:${t.key}`}),a&&i&&sn&&La&&(sn(i),La("intlify message evaluation",a,i))}return s}function od(...e){const[t,n,r]=e,a={};if(!U(t)&&!_t(t)&&!zn(t))throw di(dr.INVALID_ARGUMENT);const i=_t(t)?String(t):(zn(t),t);return _t(n)?a.plural=n:U(n)?a.default=n:pe(n)&&!Sc(n)?a.named=n:je(n)&&(a.list=n),_t(r)?a.plural=r:U(r)?a.default=r:pe(r)&&Ct(a,r),[i,a]}function e5(e,t,n,r,a,i){return{warnHtmlMessage:a,onError:s=>{if(i&&i(s),process.env.NODE_ENV!=="production"){const l=`Message compilation error: ${s.message}`,c=s.location&&U3(r,s.location.start.offset,s.location.end.offset),u=e.__v_emitter;u&&u.emit("compile-error",{message:r,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${n}`}),console.error(c?`${l}
21
+ ${c}`:l)}else throw s},onCacheKey:s=>F3(t,n,s)}}function t5(e,t,n,r){const{modifiers:a,pluralRules:i,messageResolver:s,fallbackLocale:l,fallbackWarn:c,missingWarn:u,fallbackContext:d}=e,p={locale:t,modifiers:a,pluralRules:i,messages:h=>{let g=s(n,h);if(g==null&&d){const[,,v]=gv(d,h,t,l,c,u);g=s(v,h)}if(U(g)){let v=!1;const m=vv(e,h,t,g,h,()=>{v=!0});return v?gm:m}else return zn(g)?g:gm}};return e.processor&&(p.processor=e.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),_t(r.plural)&&(p.pluralIndex=r.plural),p}const _m=typeof Intl<"u",_v={dateTimeFormat:_m&&typeof Intl.DateTimeFormat<"u",numberFormat:_m&&typeof Intl.NumberFormat<"u"};function ym(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:s}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!_v.dateTimeFormat)return i(Si(tn.CANNOT_FORMAT_DATE)),Yl;const[c,u,d,f]=ld(...t),p=ke(d.missingWarn)?d.missingWarn:e.missingWarn,h=ke(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,g=!!d.part,v=U(d.locale)?d.locale:e.locale,b=s(e,a,v);if(!U(c)||c==="")return new Intl.DateTimeFormat(v,f).format(u);let m={},_,k=null,y=v,w=null;const S="datetime format";for(let O=0;O<b.length;O++){if(_=w=b[O],process.env.NODE_ENV!=="production"&&v!==_&&Ec(h,c)&&i(Si(tn.FALLBACK_TO_DATE_FORMAT,{key:c,target:_})),process.env.NODE_ENV!=="production"&&v!==_){const L=e.__v_emitter;L&&L.emit("fallback",{type:S,key:c,from:y,to:w,groupId:`${S}:${c}`})}if(m=n[_]||{},k=m[c],pe(k))break;Ef(e,c,_,p,S),y=w}if(!pe(k)||!U(_))return r?Cc:c;let C=`${_}__${c}`;Sc(f)||(C=`${C}__${JSON.stringify(f)}`);let E=l.get(C);return E||(E=new Intl.DateTimeFormat(_,Ct({},k,f)),l.set(C,E)),g?E.formatToParts(u):E.format(u)}const yv=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ld(...e){const[t,n,r,a]=e,i={};let s={},l;if(U(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw di(dr.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();l=new Date(u);try{l.toISOString()}catch{throw di(dr.INVALID_ISO_DATE_ARGUMENT)}}else if(j3(t)){if(isNaN(t.getTime()))throw di(dr.INVALID_DATE_ARGUMENT);l=t}else if(_t(t))l=t;else throw di(dr.INVALID_ARGUMENT);return U(n)?i.key=n:pe(n)&&Object.keys(n).forEach(c=>{yv.includes(c)?s[c]=n[c]:i[c]=n[c]}),U(r)?i.locale=r:pe(r)&&(s=r),pe(a)&&(s=a),[i.key||"",l,i,s]}function bm(e,t,n){const r=e;for(const a in n){const i=`${t}__${a}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function km(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:s}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!_v.numberFormat)return i(Si(tn.CANNOT_FORMAT_NUMBER)),Yl;const[c,u,d,f]=cd(...t),p=ke(d.missingWarn)?d.missingWarn:e.missingWarn,h=ke(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,g=!!d.part,v=U(d.locale)?d.locale:e.locale,b=s(e,a,v);if(!U(c)||c==="")return new Intl.NumberFormat(v,f).format(u);let m={},_,k=null,y=v,w=null;const S="number format";for(let O=0;O<b.length;O++){if(_=w=b[O],process.env.NODE_ENV!=="production"&&v!==_&&Ec(h,c)&&i(Si(tn.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:_})),process.env.NODE_ENV!=="production"&&v!==_){const L=e.__v_emitter;L&&L.emit("fallback",{type:S,key:c,from:y,to:w,groupId:`${S}:${c}`})}if(m=n[_]||{},k=m[c],pe(k))break;Ef(e,c,_,p,S),y=w}if(!pe(k)||!U(_))return r?Cc:c;let C=`${_}__${c}`;Sc(f)||(C=`${C}__${JSON.stringify(f)}`);let E=l.get(C);return E||(E=new Intl.NumberFormat(_,Ct({},k,f)),l.set(C,E)),g?E.formatToParts(u):E.format(u)}const bv=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function cd(...e){const[t,n,r,a]=e,i={};let s={};if(!_t(t))throw di(dr.INVALID_ARGUMENT);const l=t;return U(n)?i.key=n:pe(n)&&Object.keys(n).forEach(c=>{bv.includes(c)?s[c]=n[c]:i[c]=n[c]}),U(r)?i.locale=r:pe(r)&&(s=r),pe(a)&&(s=a),[i.key||"",l,i,s]}function wm(e,t,n){const r=e;for(const a in n){const i=`${t}__${a}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ys().__INTLIFY_PROD_DEVTOOLS__=!1);function n5(){return kv().__VUE_DEVTOOLS_GLOBAL_HOOK__}function kv(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const r5=typeof Proxy=="function",a5="devtools-plugin:setup",i5="plugin:settings:set";let ri,ud;function s5(){var e;return ri!==void 0||(typeof window<"u"&&window.performance?(ri=!0,ud=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(ri=!0,ud=global.perf_hooks.performance):ri=!1),ri}function o5(){return s5()?ud.now():Date.now()}class l5{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const s in t.settings){const l=t.settings[s];r[s]=l.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},r);try{const s=localStorage.getItem(a),l=JSON.parse(s);Object.assign(i,l)}catch{}this.fallbacks={getSettings(){return i},setSettings(s){try{localStorage.setItem(a,JSON.stringify(s))}catch{}i=s},now(){return o5()}},n&&n.on(i5,(s,l)=>{s===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(s,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(s,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:l,args:c,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function c5(e,t){const n=e,r=kv(),a=n5(),i=r5&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))a.emit(a5,e,t);else{const s=i?new l5(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*!
22
+ * vue-devtools v9.2.2
23
+ * (c) 2022 kazuya kawaguchi
24
+ * Released under the MIT License.
25
+ */const ku={["vue-devtools-plugin-vue-i18n"]:"Vue I18n devtools",["vue-i18n-resource-inspector"]:"I18n Resources",["vue-i18n-timeline"]:"Vue I18n"},u5={["vue-i18n-resource-inspector"]:"Search for scopes ..."},d5={["vue-i18n-timeline"]:16764185};/*!
26
+ * vue-i18n v9.2.2
27
+ * (c) 2022 kazuya kawaguchi
28
+ * Released under the MIT License.
29
+ */const f5="9.2.2";function p5(){let e=!1;typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(e=!0,ys().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(e=!0,ys().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ys().__INTLIFY_PROD_DEVTOOLS__=!1),process.env.NODE_ENV!=="production"&&e&&console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.")}let wv=tn.__EXTEND_POINT__;const ai=()=>++wv,St={FALLBACK_TO_ROOT:wv,NOT_SUPPORTED_PRESERVE:ai(),NOT_SUPPORTED_FORMATTER:ai(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:ai(),NOT_SUPPORTED_GET_CHOICE_INDEX:ai(),COMPONENT_NAME_LEGACY_COMPATIBLE:ai(),NOT_FOUND_PARENT_SCOPE:ai()},h5={[St.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[St.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[St.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[St.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[St.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[St.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[St.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function xn(e,...t){return wc(h5[e],...t)}let Sv=fe.__EXTEND_POINT__;const $t=()=>++Sv,xe={UNEXPECTED_RETURN_TYPE:Sv,INVALID_ARGUMENT:$t(),MUST_BE_CALL_SETUP_TOP:$t(),NOT_INSLALLED:$t(),NOT_AVAILABLE_IN_LEGACY_MODE:$t(),REQUIRED_VALUE:$t(),INVALID_VALUE:$t(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:$t(),NOT_INSLALLED_WITH_PROVIDE:$t(),UNEXPECTED_ERROR:$t(),NOT_COMPATIBLE_LEGACY_VUE_I18N:$t(),BRIDGE_SUPPORT_VUE_2_ONLY:$t(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:$t(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:$t(),__EXTEND_POINT__:$t()};function mt(e,...t){return xc(e,null,process.env.NODE_ENV!=="production"?{messages:m5,args:t}:void 0)}const m5={[xe.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[xe.INVALID_ARGUMENT]:"Invalid argument",[xe.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[xe.NOT_INSLALLED]:"Need to install with `app.use` function",[xe.UNEXPECTED_ERROR]:"Unexpected error",[xe.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[xe.REQUIRED_VALUE]:"Required in value: {0}",[xe.INVALID_VALUE]:"Invalid value",[xe.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[xe.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[xe.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[xe.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[xe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[xe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},dd=Jn("__transrateVNode"),fd=Jn("__datetimeParts"),pd=Jn("__numberParts"),Ra=Jn("__enableEmitter"),Fs=Jn("__disableEmitter"),xv=Jn("__setPluralRules");Jn("__intlifyMeta");const Cv=Jn("__injectWithOption");function hd(e){if(!Be(e))return e;for(const t in e)if(wf(e,t))if(!t.includes("."))Be(e[t])&&hd(e[t]);else{const n=t.split("."),r=n.length-1;let a=e;for(let i=0;i<r;i++)n[i]in a||(a[n[i]]={}),a=a[n[i]];a[n[r]]=e[t],delete e[t],Be(a[n[r]])&&hd(a[n[r]])}return e}function Tc(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:i}=t,s=pe(n)?n:je(r)?{}:{[e]:{}};if(je(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:u}=l;c?(s[c]=s[c]||{},bs(u,s[c])):bs(u,s)}else U(l)&&bs(JSON.parse(l),s)}),a==null&&i)for(const l in s)wf(s,l)&&hd(s[l]);return s}const Go=e=>!Be(e)||je(e);function bs(e,t){if(Go(e)||Go(t))throw mt(xe.INVALID_VALUE);for(const n in e)wf(e,n)&&(Go(e[n])||Go(t[n])?t[n]=e[n]:bs(e[n],t[n]))}function Ev(e){return e.type}function Tv(e,t,n){let r=Be(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Tc(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(Be(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(Be(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function Sm(e){return o.createVNode(o.Text,null,e,0)}const xm="__INTLIFY_META__";let Cm=0;function Em(e){return(t,n,r,a)=>e(n,r,o.getCurrentInstance()||void 0,a)}const g5=()=>{const e=o.getCurrentInstance();let t=null;return e&&(t=Ev(e)[xm])?{[xm]:t}:null};function Tf(e={},t){const{__root:n}=e,r=n===void 0;let a=ke(e.inheritLocale)?e.inheritLocale:!0;const i=o.ref(n&&a?n.locale.value:U(e.locale)?e.locale:fo),s=o.ref(n&&a?n.fallbackLocale.value:U(e.fallbackLocale)||je(e.fallbackLocale)||pe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),l=o.ref(Tc(i.value,e)),c=o.ref(pe(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),u=o.ref(pe(e.numberFormats)?e.numberFormats:{[i.value]:{}});let d=n?n.missingWarn:ke(e.missingWarn)||Zr(e.missingWarn)?e.missingWarn:!0,f=n?n.fallbackWarn:ke(e.fallbackWarn)||Zr(e.fallbackWarn)?e.fallbackWarn:!0,p=n?n.fallbackRoot:ke(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.fallbackFormat,g=ct(e.missing)?e.missing:null,v=ct(e.missing)?Em(e.missing):null,b=ct(e.postTranslation)?e.postTranslation:null,m=n?n.warnHtmlMessage:ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter;const k=n?n.modifiers:pe(e.modifiers)?e.modifiers:{};let y=e.pluralRules||n&&n.pluralRules,w;w=(()=>{r&&pm(null);const I={version:f5,locale:i.value,fallbackLocale:s.value,messages:l.value,modifiers:k,pluralRules:y,missing:v===null?void 0:v,missingWarn:d,fallbackWarn:f,fallbackFormat:h,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:m,escapeParameter:_,messageResolver:e.messageResolver,__meta:{framework:"vue"}};I.datetimeFormats=c.value,I.numberFormats=u.value,I.__datetimeFormatters=pe(w)?w.__datetimeFormatters:void 0,I.__numberFormatters=pe(w)?w.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(I.__v_emitter=pe(w)?w.__v_emitter:void 0);const $=U4(I);return r&&pm($),$})(),ts(w,i.value,s.value);function C(){return[i.value,s.value,l.value,c.value,u.value]}const E=o.computed({get:()=>i.value,set:I=>{i.value=I,w.locale=i.value}}),O=o.computed({get:()=>s.value,set:I=>{s.value=I,w.fallbackLocale=s.value,ts(w,i.value,I)}}),L=o.computed(()=>l.value),D=o.computed(()=>c.value),N=o.computed(()=>u.value);function R(){return ct(b)?b:null}function ne(I){b=I,w.postTranslation=I}function K(){return g}function Z(I){I!==null&&(v=Em(I)),g=I,w.missing=v}function X(I,$){return I!=="translate"||!$.resolvedMessage}const ce=(I,$,Ye,qe,Ln,hn)=>{C();let mn;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)try{fm(g5()),r||(w.fallbackContext=n?W4():void 0),mn=I(w)}finally{fm(null),r||(w.fallbackContext=void 0)}else mn=I(w);if(_t(mn)&&mn===Cc){const[Sn,Ji]=$();if(process.env.NODE_ENV!=="production"&&n&&U(Sn)&&X(Ye,Ji)&&(p&&(Ec(f,Sn)||hv(d,Sn))&&Ut(xn(St.FALLBACK_TO_ROOT,{key:Sn,type:Ye})),process.env.NODE_ENV!=="production")){const{__v_emitter:ni}=w;ni&&p&&ni.emit("fallback",{type:Ye,key:Sn,to:"global",groupId:`${Ye}:${Sn}`})}return n&&p?qe(n):Ln(Sn)}else{if(hn(mn))return mn;throw mt(xe.UNEXPECTED_RETURN_TYPE)}};function Y(...I){return ce($=>Reflect.apply(vm,null,[$,...I]),()=>od(...I),"translate",$=>Reflect.apply($.t,$,[...I]),$=>$,$=>U($))}function se(...I){const[$,Ye,qe]=I;if(qe&&!Be(qe))throw mt(xe.INVALID_ARGUMENT);return Y($,Ye,Ct({resolvedMessage:!0},qe||{}))}function de(...I){return ce($=>Reflect.apply(ym,null,[$,...I]),()=>ld(...I),"datetime format",$=>Reflect.apply($.d,$,[...I]),()=>Yl,$=>U($))}function Te(...I){return ce($=>Reflect.apply(km,null,[$,...I]),()=>cd(...I),"number format",$=>Reflect.apply($.n,$,[...I]),()=>Yl,$=>U($))}function Fe(I){return I.map($=>U($)||_t($)||ke($)?Sm(String($)):$)}const ie={normalize:Fe,interpolate:I=>I,type:"vnode"};function V(...I){return ce($=>{let Ye;const qe=$;try{qe.processor=ie,Ye=Reflect.apply(vm,null,[qe,...I])}finally{qe.processor=null}return Ye},()=>od(...I),"translate",$=>$[dd](...I),$=>[Sm($)],$=>je($))}function Q(...I){return ce($=>Reflect.apply(km,null,[$,...I]),()=>cd(...I),"number format",$=>$[pd](...I),()=>[],$=>U($)||je($))}function Ae(...I){return ce($=>Reflect.apply(ym,null,[$,...I]),()=>ld(...I),"datetime format",$=>$[fd](...I),()=>[],$=>U($)||je($))}function et(I){y=I,w.pluralRules=y}function gt(I,$){const Ye=U($)?$:i.value,qe=T(Ye);return w.messageResolver(qe,I)!==null}function ut(I){let $=null;const Ye=lv(w,s.value,i.value);for(let qe=0;qe<Ye.length;qe++){const Ln=l.value[Ye[qe]]||{},hn=w.messageResolver(Ln,I);if(hn!=null){$=hn;break}}return $}function pn(I){const $=ut(I);return $??(n?n.tm(I)||{}:{})}function T(I){return l.value[I]||{}}function x(I,$){l.value[I]=$,w.messages=l.value}function P(I,$){l.value[I]=l.value[I]||{},bs($,l.value[I]),w.messages=l.value}function H(I){return c.value[I]||{}}function te(I,$){c.value[I]=$,w.datetimeFormats=c.value,bm(w,I,$)}function ue(I,$){c.value[I]=Ct(c.value[I]||{},$),w.datetimeFormats=c.value,bm(w,I,$)}function vt(I){return u.value[I]||{}}function ot(I,$){u.value[I]=$,w.numberFormats=u.value,wm(w,I,$)}function Jt(I,$){u.value[I]=Ct(u.value[I]||{},$),w.numberFormats=u.value,wm(w,I,$)}Cm++,n&&qn&&(o.watch(n.locale,I=>{a&&(i.value=I,w.locale=I,ts(w,i.value,s.value))}),o.watch(n.fallbackLocale,I=>{a&&(s.value=I,w.fallbackLocale=I,ts(w,i.value,s.value))}));const Ve={id:Cm,locale:E,fallbackLocale:O,get inheritLocale(){return a},set inheritLocale(I){a=I,I&&n&&(i.value=n.locale.value,s.value=n.fallbackLocale.value,ts(w,i.value,s.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:L,get modifiers(){return k},get pluralRules(){return y||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(I){d=I,w.missingWarn=d},get fallbackWarn(){return f},set fallbackWarn(I){f=I,w.fallbackWarn=f},get fallbackRoot(){return p},set fallbackRoot(I){p=I},get fallbackFormat(){return h},set fallbackFormat(I){h=I,w.fallbackFormat=h},get warnHtmlMessage(){return m},set warnHtmlMessage(I){m=I,w.warnHtmlMessage=I},get escapeParameter(){return _},set escapeParameter(I){_=I,w.escapeParameter=I},t:Y,getLocaleMessage:T,setLocaleMessage:x,mergeLocaleMessage:P,getPostTranslationHandler:R,setPostTranslationHandler:ne,getMissingHandler:K,setMissingHandler:Z,[xv]:et};return Ve.datetimeFormats=D,Ve.numberFormats=N,Ve.rt=se,Ve.te=gt,Ve.tm=pn,Ve.d=de,Ve.n=Te,Ve.getDateTimeFormat=H,Ve.setDateTimeFormat=te,Ve.mergeDateTimeFormat=ue,Ve.getNumberFormat=vt,Ve.setNumberFormat=ot,Ve.mergeNumberFormat=Jt,Ve[Cv]=e.__injectWithOption,Ve[dd]=V,Ve[fd]=Ae,Ve[pd]=Q,process.env.NODE_ENV!=="production"&&(Ve[Ra]=I=>{w.__v_emitter=I},Ve[Fs]=()=>{w.__v_emitter=void 0}),Ve}function v5(e){const t=U(e.locale)?e.locale:fo,n=U(e.fallbackLocale)||je(e.fallbackLocale)||pe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=ct(e.missing)?e.missing:void 0,a=ke(e.silentTranslationWarn)||Zr(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=ke(e.silentFallbackWarn)||Zr(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=ke(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,c=pe(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,d=ct(e.postTranslation)?e.postTranslation:void 0,f=U(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,h=ke(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&Ut(xn(St.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Ut(xn(St.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let g=e.messages;if(pe(e.sharedMessages)){const w=e.sharedMessages;g=Object.keys(w).reduce((C,E)=>{const O=C[E]||(C[E]={});return Ct(O,w[E]),C},g||{})}const{__i18n:v,__root:b,__injectWithOption:m}=e,_=e.datetimeFormats,k=e.numberFormats,y=e.flatJson;return{locale:t,fallbackLocale:n,messages:g,flatJson:y,datetimeFormats:_,numberFormats:k,missing:r,missingWarn:a,fallbackWarn:i,fallbackRoot:s,fallbackFormat:l,modifiers:c,pluralRules:u,postTranslation:d,warnHtmlMessage:f,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:h,__i18n:v,__root:b,__injectWithOption:m}}function md(e={},t){{const n=Tf(v5(e)),r={id:n.id,get locale(){return n.locale.value},set locale(a){n.locale.value=a},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(a){n.fallbackLocale.value=a},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Ut(xn(St.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(a){process.env.NODE_ENV!=="production"&&Ut(xn(St.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(a){n.setMissingHandler(a)},get silentTranslationWarn(){return ke(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(a){n.missingWarn=ke(a)?!a:a},get silentFallbackWarn(){return ke(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(a){n.fallbackWarn=ke(a)?!a:a},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(a){n.fallbackFormat=a},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(a){n.setPostTranslationHandler(a)},get sync(){return n.inheritLocale},set sync(a){n.inheritLocale=a},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){n.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(a){n.escapeParameter=a},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Ut(xn(St.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(a){process.env.NODE_ENV!=="production"&&Ut(xn(St.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...a){const[i,s,l]=a,c={};let u=null,d=null;if(!U(i))throw mt(xe.INVALID_ARGUMENT);const f=i;return U(s)?c.locale=s:je(s)?u=s:pe(s)&&(d=s),je(l)?u=l:pe(l)&&(d=l),Reflect.apply(n.t,n,[f,u||d||{},c])},rt(...a){return Reflect.apply(n.rt,n,[...a])},tc(...a){const[i,s,l]=a,c={plural:1};let u=null,d=null;if(!U(i))throw mt(xe.INVALID_ARGUMENT);const f=i;return U(s)?c.locale=s:_t(s)?c.plural=s:je(s)?u=s:pe(s)&&(d=s),U(l)?c.locale=l:je(l)?u=l:pe(l)&&(d=l),Reflect.apply(n.t,n,[f,u||d||{},c])},te(a,i){return n.te(a,i)},tm(a){return n.tm(a)},getLocaleMessage(a){return n.getLocaleMessage(a)},setLocaleMessage(a,i){n.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){n.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(n.d,n,[...a])},getDateTimeFormat(a){return n.getDateTimeFormat(a)},setDateTimeFormat(a,i){n.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){n.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(n.n,n,[...a])},getNumberFormat(a){return n.getNumberFormat(a)},setNumberFormat(a,i){n.setNumberFormat(a,i)},mergeNumberFormat(a,i){n.mergeNumberFormat(a,i)},getChoiceIndex(a,i){return process.env.NODE_ENV!=="production"&&Ut(xn(St.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1},__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:i}=e;i&&i(a,r)}};return process.env.NODE_ENV!=="production"&&(r.__enableEmitter=a=>{const i=n;i[Ra]&&i[Ra](a)},r.__disableEmitter=()=>{const a=n;a[Fs]&&a[Fs]()}),r}}const Of={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function _5({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>r=[...r,...je(a.children)?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},{})}function Ov(e){return o.Fragment}const wu={name:"i18n-t",props:Ct({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>_t(e)||!isNaN(e)}},Of),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||re({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f!=="_"),s={};e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=U(e.plural)?+e.plural:e.plural);const l=_5(t,i),c=a[dd](e.keypath,l,s),u=Ct({},r),d=U(e.tag)||Be(e.tag)?e.tag:Ov();return o.h(d,u,c)}}};function y5(e){return je(e)&&!U(e[0])}function Mv(e,t,n,r){const{slots:a,attrs:i}=t;return()=>{const s={part:!0};let l={};e.locale&&(s.locale=e.locale),U(e.format)?s.key=e.format:Be(e.format)&&(U(e.format.key)&&(s.key=e.format.key),l=Object.keys(e.format).reduce((p,h)=>n.includes(h)?Ct({},p,{[h]:e.format[h]}):p,{}));const c=r(e.value,s,l);let u=[s.key];je(c)?u=c.map((p,h)=>{const g=a[p.type],v=g?g({[p.type]:p.value,index:h,parts:c}):[p.value];return y5(v)&&(v[0].key=`${p.type}-${h}`),v}):U(c)&&(u=[c]);const d=Ct({},i),f=U(e.tag)||Be(e.tag)?e.tag:Ov();return o.h(f,d,u)}}const Tm={name:"i18n-n",props:Ct({value:{type:Number,required:!0},format:{type:[String,Object]}},Of),setup(e,t){const n=e.i18n||re({useScope:"parent",__useComponent:!0});return Mv(e,t,bv,(...r)=>n[pd](...r))}},Om={name:"i18n-d",props:Ct({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Of),setup(e,t){const n=e.i18n||re({useScope:"parent",__useComponent:!0});return Mv(e,t,yv,(...r)=>n[fd](...r))}};function b5(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function k5(e){const t=s=>{const{instance:l,modifiers:c,value:u}=s;if(!l||!l.$)throw mt(xe.UNEXPECTED_ERROR);const d=b5(e,l.$);process.env.NODE_ENV!=="production"&&c.preserve&&Ut(xn(St.NOT_SUPPORTED_PRESERVE));const f=Mm(u);return[Reflect.apply(d.t,d,[...Nm(f)]),d]};return{created:(s,l)=>{const[c,u]=t(l);qn&&e.global===u&&(s.__i18nWatcher=o.watch(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),s.__composer=u,s.textContent=c},unmounted:s=>{qn&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:l})=>{if(s.__composer){const c=s.__composer,u=Mm(l);s.textContent=Reflect.apply(c.t,c,[...Nm(u)])}},getSSRProps:s=>{const[l]=t(s);return{textContent:l}}}}function Mm(e){if(U(e))return{path:e};if(pe(e)){if(!("path"in e))throw mt(xe.REQUIRED_VALUE,"path");return e}else throw mt(xe.INVALID_VALUE)}function Nm(e){const{path:t,locale:n,args:r,choice:a,plural:i}=e,s={},l=r||{};return U(n)&&(s.locale=n),_t(a)&&(s.plural=a),_t(i)&&(s.plural=i),[t,l,s]}function w5(e,t,...n){const r=pe(n[0])?n[0]:{},a=!!r.useI18nComponentName,i=ke(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&i&&a&&Ut(xn(St.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:wu.name})),i&&(e.component(a?"i18n":wu.name,wu),e.component(Tm.name,Tm),e.component(Om.name,Om)),e.directive("t",k5(t))}const Nv="vue-i18n: composer properties";let gd;async function S5(e,t){return new Promise((n,r)=>{try{c5({id:"vue-devtools-plugin-vue-i18n",label:ku["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Nv],app:e},a=>{gd=a,a.on.visitComponentTree(({componentInstance:s,treeNode:l})=>{x5(s,l,t)}),a.on.inspectComponent(({componentInstance:s,instanceData:l})=>{s.vnode.el&&s.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?s.vnode.el.__VUE_I18N__!==t.global.__composer&&Dm(l,s.vnode.el.__VUE_I18N__):Dm(l,s.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:ku["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:u5["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&M5(s,t)});const i=new Map;a.on.getInspectorState(async s=>{if(s.app===e&&s.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),D5(s,t),s.nodeId==="global"){if(!i.has(s.app)){const[l]=await a.getComponentInstances(s.app);i.set(s.app,l)}a.highlightElement(i.get(s.app))}else{const l=N5(s.nodeId,t);l&&a.highlightElement(l)}}),a.on.editInspectorState(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&A5(s,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:ku["vue-i18n-timeline"],color:d5["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),r(!1)}})}function Dv(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function x5(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const a={label:`i18n (${Dv(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function Dm(e,t){const n=Nv;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Mf(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Mf(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];ct(r)&&"source"in r?t[n]=O5(r):Be(r)?t[n]=Mf(r):t[n]=r}),t}const C5={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function E5(e){return e.replace(/[<>"&]/g,T5)}function T5(e){return C5[e]||e}function O5(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${E5(e.source)}")`:"(?)"}`}}}function M5(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,a]of t.__instances){const i=t.mode==="composition"?a:a.__composer;n!==i&&e.rootNodes.push({id:i.id.toString(),label:`${Dv(r)} Scope`})}}function N5(e,t){let n=null;if(e!=="global"){for(const[r,a]of t.__instances.entries())if(a.id.toString()===e){n=r;break}}return n}function Pv(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function D5(e,t){const n=Pv(e.nodeId,t);return n&&(e.state=P5(n)),null}function P5(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const a="Locale messages info",i=[{type:a,key:"messages",editable:!1,value:Mf(e.messages.value)}];t[a]=i;{const s="Datetime formats info",l=[{type:s,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[s]=l;const c="Datetime formats info",u=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=u}return t}function zs(e,t){if(gd){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),gd.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function A5(e,t){const n=Pv(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&U(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(U(e.state.value)||je(e.state.value)||Be(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&ke(e.state.value)&&(n.inheritLocale=e.state.value)}}function I5(e,t,n){return{beforeCreate(){const r=o.getCurrentInstance();if(!r)throw mt(xe.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const i=a.i18n;a.__i18n&&(i.__i18n=a.__i18n),i.__root=t,this===this.$root?this.$i18n=Pm(e,i):(i.__injectWithOption=!0,this.$i18n=md(i))}else a.__i18n?this===this.$root?this.$i18n=Pm(e,a):this.$i18n=md({__i18n:a.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;a.__i18nGlobal&&Tv(t,a,a),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,s)=>this.$i18n.te(i,s),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){this.$el.__VUE_I18N__=this.$i18n.__composer;const r=this.__v_emitter=xf(),a=this.$i18n;a.__enableEmitter&&a.__enableEmitter(r),r.on("*",zs)}},unmounted(){const r=o.getCurrentInstance();if(!r)throw mt(xe.UNEXPECTED_ERROR);if(process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",zs),delete this.__v_emitter),this.$i18n)){const a=this.$i18n;a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__}delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function Pm(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[xv](t.pluralizationRules||e.pluralizationRules);const n=Tc(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const L5=Jn("global-vue-i18n");function R5(e={},t){const n=__VUE_I18N_LEGACY_API__&&ke(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=ke(e.globalInjection)?e.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,i=new Map,[s,l]=B5(e,n),c=Jn(process.env.NODE_ENV!=="production"?"vue-i18n":"");function u(p){return i.get(p)||null}function d(p,h){i.set(p,h)}function f(p){i.delete(p)}{const p={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(h,...g){process.env.NODE_ENV!=="production"&&(h.__VUE_I18N__=p),h.__VUE_I18N_SYMBOL__=c,h.provide(h.__VUE_I18N_SYMBOL__,p),!n&&r&&Y5(h,p.global),__VUE_I18N_FULL_INSTALL__&&w5(h,p,...g),__VUE_I18N_LEGACY_API__&&n&&h.mixin(I5(l,l.__composer,p));const v=h.unmount;if(h.unmount=()=>{p.dispose(),v()},process.env.NODE_ENV!=="production"){if(!await S5(h,p))throw mt(xe.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const m=xf();if(n){const _=l;_.__enableEmitter&&_.__enableEmitter(m)}else{const _=l;_[Ra]&&_[Ra](m)}m.on("*",zs)}},get global(){return l},dispose(){s.stop()},__instances:i,__getInstance:u,__setInstance:d,__deleteInstance:f};return p}}function re(e={}){const t=o.getCurrentInstance();if(t==null)throw mt(xe.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw mt(xe.NOT_INSLALLED);const n=V5(t),r=F5(n),a=Ev(t),i=$5(e,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw mt(xe.NOT_AVAILABLE_IN_LEGACY_MODE);return H5(t,i,r,e)}if(i==="global")return Tv(r,e,a),r;if(i==="parent"){let c=z5(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Ut(xn(St.NOT_FOUND_PARENT_SCOPE)),c=r),c}const s=n;let l=s.__getInstance(t);if(l==null){const c=Ct({},e);"__i18n"in a&&(c.__i18n=a.__i18n),r&&(c.__root=r),l=Tf(c),j5(s,t,l),s.__setInstance(t,l)}return l}function B5(e,t,n){const r=o.effectScope();{const a=__VUE_I18N_LEGACY_API__&&t?r.run(()=>md(e)):r.run(()=>Tf(e));if(a==null)throw mt(xe.UNEXPECTED_ERROR);return[r,a]}}function V5(e){{const t=o.inject(e.isCE?L5:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw mt(e.isCE?xe.NOT_INSLALLED_WITH_PROVIDE:xe.UNEXPECTED_ERROR);return t}}function $5(e,t){return Sc(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function F5(e){return e.mode==="composition"?e.global:e.global.__composer}function z5(e,t,n=!1){let r=null;const a=t.root;let i=t.parent;for(;i!=null;){const s=e;if(e.mode==="composition")r=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const l=s.__getInstance(i);l!=null&&(r=l.__composer,n&&r&&!r[Cv]&&(r=null))}if(r!=null||a===i)break;i=i.parent}return r}function j5(e,t,n){let r=null;o.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=xf();const a=n;a[Ra]&&a[Ra](r),r.on("*",zs)}},t),o.onUnmounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__){r&&r.off("*",zs);const a=n;a[Fs]&&a[Fs](),delete t.vnode.el.__VUE_I18N__}e.__deleteInstance(t)},t)}function H5(e,t,n,r={}){const a=t==="local",i=o.shallowRef(null);if(a&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw mt(xe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=ke(r.inheritLocale)?r.inheritLocale:!0,l=o.ref(a&&s?n.locale.value:U(r.locale)?r.locale:fo),c=o.ref(a&&s?n.fallbackLocale.value:U(r.fallbackLocale)||je(r.fallbackLocale)||pe(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:l.value),u=o.ref(Tc(l.value,r)),d=o.ref(pe(r.datetimeFormats)?r.datetimeFormats:{[l.value]:{}}),f=o.ref(pe(r.numberFormats)?r.numberFormats:{[l.value]:{}}),p=a?n.missingWarn:ke(r.missingWarn)||Zr(r.missingWarn)?r.missingWarn:!0,h=a?n.fallbackWarn:ke(r.fallbackWarn)||Zr(r.fallbackWarn)?r.fallbackWarn:!0,g=a?n.fallbackRoot:ke(r.fallbackRoot)?r.fallbackRoot:!0,v=!!r.fallbackFormat,b=ct(r.missing)?r.missing:null,m=ct(r.postTranslation)?r.postTranslation:null,_=a?n.warnHtmlMessage:ke(r.warnHtmlMessage)?r.warnHtmlMessage:!0,k=!!r.escapeParameter,y=a?n.modifiers:pe(r.modifiers)?r.modifiers:{},w=r.pluralRules||a&&n.pluralRules;function S(){return[l.value,c.value,u.value,d.value,f.value]}const C=o.computed({get:()=>i.value?i.value.locale.value:l.value,set:x=>{i.value&&(i.value.locale.value=x),l.value=x}}),E=o.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:x=>{i.value&&(i.value.fallbackLocale.value=x),c.value=x}}),O=o.computed(()=>i.value?i.value.messages.value:u.value),L=o.computed(()=>d.value),D=o.computed(()=>f.value);function N(){return i.value?i.value.getPostTranslationHandler():m}function R(x){i.value&&i.value.setPostTranslationHandler(x)}function ne(){return i.value?i.value.getMissingHandler():b}function K(x){i.value&&i.value.setMissingHandler(x)}function Z(x){return S(),x()}function X(...x){return i.value?Z(()=>Reflect.apply(i.value.t,null,[...x])):Z(()=>"")}function ce(...x){return i.value?Reflect.apply(i.value.rt,null,[...x]):""}function Y(...x){return i.value?Z(()=>Reflect.apply(i.value.d,null,[...x])):Z(()=>"")}function se(...x){return i.value?Z(()=>Reflect.apply(i.value.n,null,[...x])):Z(()=>"")}function de(x){return i.value?i.value.tm(x):{}}function Te(x,P){return i.value?i.value.te(x,P):!1}function Fe(x){return i.value?i.value.getLocaleMessage(x):{}}function ve(x,P){i.value&&(i.value.setLocaleMessage(x,P),u.value[x]=P)}function ie(x,P){i.value&&i.value.mergeLocaleMessage(x,P)}function V(x){return i.value?i.value.getDateTimeFormat(x):{}}function Q(x,P){i.value&&(i.value.setDateTimeFormat(x,P),d.value[x]=P)}function Ae(x,P){i.value&&i.value.mergeDateTimeFormat(x,P)}function et(x){return i.value?i.value.getNumberFormat(x):{}}function gt(x,P){i.value&&(i.value.setNumberFormat(x,P),f.value[x]=P)}function ut(x,P){i.value&&i.value.mergeNumberFormat(x,P)}const pn={get id(){return i.value?i.value.id:-1},locale:C,fallbackLocale:E,messages:O,datetimeFormats:L,numberFormats:D,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(x){i.value&&(i.value.inheritLocale=x)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:y},get pluralRules(){return i.value?i.value.pluralRules:w},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:p},set missingWarn(x){i.value&&(i.value.missingWarn=x)},get fallbackWarn(){return i.value?i.value.fallbackWarn:h},set fallbackWarn(x){i.value&&(i.value.missingWarn=x)},get fallbackRoot(){return i.value?i.value.fallbackRoot:g},set fallbackRoot(x){i.value&&(i.value.fallbackRoot=x)},get fallbackFormat(){return i.value?i.value.fallbackFormat:v},set fallbackFormat(x){i.value&&(i.value.fallbackFormat=x)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:_},set warnHtmlMessage(x){i.value&&(i.value.warnHtmlMessage=x)},get escapeParameter(){return i.value?i.value.escapeParameter:k},set escapeParameter(x){i.value&&(i.value.escapeParameter=x)},t:X,getPostTranslationHandler:N,setPostTranslationHandler:R,getMissingHandler:ne,setMissingHandler:K,rt:ce,d:Y,n:se,tm:de,te:Te,getLocaleMessage:Fe,setLocaleMessage:ve,mergeLocaleMessage:ie,getDateTimeFormat:V,setDateTimeFormat:Q,mergeDateTimeFormat:Ae,getNumberFormat:et,setNumberFormat:gt,mergeNumberFormat:ut};function T(x){x.locale.value=l.value,x.fallbackLocale.value=c.value,Object.keys(u.value).forEach(P=>{x.mergeLocaleMessage(P,u.value[P])}),Object.keys(d.value).forEach(P=>{x.mergeDateTimeFormat(P,d.value[P])}),Object.keys(f.value).forEach(P=>{x.mergeNumberFormat(P,f.value[P])}),x.escapeParameter=k,x.fallbackFormat=v,x.fallbackRoot=g,x.fallbackWarn=h,x.missingWarn=p,x.warnHtmlMessage=_}return o.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw mt(xe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const x=i.value=e.proxy.$i18n.__composer;t==="global"?(l.value=x.locale.value,c.value=x.fallbackLocale.value,u.value=x.messages.value,d.value=x.datetimeFormats.value,f.value=x.numberFormats.value):a&&T(x)}),pn}const W5=["locale","fallbackLocale","availableLocales"],U5=["t","rt","d","n","tm"];function Y5(e,t){const n=Object.create(null);W5.forEach(r=>{const a=Object.getOwnPropertyDescriptor(t,r);if(!a)throw mt(xe.UNEXPECTED_ERROR);const i=o.isRef(a.value)?{get(){return a.value.value},set(s){a.value.value=s}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,r,i)}),e.config.globalProperties.$i18n=n,U5.forEach(r=>{const a=Object.getOwnPropertyDescriptor(t,r);if(!a||!a.value)throw mt(xe.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,a)})}F4(K4);z4(k4);j4(lv);p5();if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=ys();e.__INTLIFY__=!0,N4(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function q5(e="en"){return R5({legacy:!1,locale:e,fallbackLocale:"en",messages:{en:{cardLottery:{setBanner:"Set As Banner",setIcon:"Set As Icon",openAnother:"Open Another"},cards:{roundDrawn:"Round Drawn",roundPlayed:"Round Played",card:"Card",cards:"Cards",inclusion:"Inclusion",avgCopies:"Avg. Copies",mulliganWinrate:"Mull. Winrate",keptInMulligan:"Kept In Mull.",drawnWinrate:"Drawn Winrate",turnPlayed:"Turn Played",turnsHeld:"Turns Held",recommendedDecks:"Recommended Decks",similarCards:"Similar Cards",attack:"Attack",health:"Health",quantityOwned:"Quantity Owned"},deck:{copyDeckCode:"Copy Deck Code",deckCodeCopied:"Deck Code Copied",deleteDeck:"Delete Deck",deleteDeckConfirmation:"Are you sure you would like to delete this deck?",editDeckName:"Edit Deck Name",signInToUpload:"Please sign in to upload deck to LoR",uploadDeckToLor:"Upload Deck to Legends of Runeterra",deckUploaded:"Deck Uploaded!",updatePrivacy:"Update Deck Privacy",deckPrivate:"Currently Private",deckPublic:"Currently Public",openInDeckBuilder:"Open in Deck Builder",numManaCards:"{num} Mana Cards",simulateMulligan:"Simulate Mulligan",replaceAllCards:"Replace All Cards",replaceSelectedCards:"Replace Selected Cards",personalCost:"Personal Cost",originalCost:"Original Cost",openArchetypePage:"Open Archetype Page",shareDeck:"Share Deck"},archetype:{abbreviation:"A"},leaderboard:{totalPlayers:"Total Players",lp:"LP",rank:"Rank",updated:"Updated"},general:{manaCost:"Mana Cost",cost:"Cost",regions:"Regions",clear:"Clear",copy:"Copy",patch:"Patch",matches:"Matches",wins:"Wins",losses:"Losses",winrate:"Winrate",quantity:"Quantity",round:"Round",total:"Total",champion:"Champion",follower:"Follower",spell:"Spell",landmark:"Landmark",equipment:"Equipment",champions:"Champions",followers:"Followers",spells:"Spells",landmarks:"Landmarks",equipments:"Equipment",statistics:"Statistics",advanced:"Advanced",newAdvancedFilter:"New Advanced Filter",types:"Types",rarities:"Rarities",sets:"Sets",keywords:"Keywords",pastDays:"Past {count} Days",pastHours:"Past {count} Hours",pastHour:"Past Hour",season:"Season",servers:"Servers",sampleSize:"Sample Size",minimumMatches:"Minimum Matches",ranks:"Ranks",allRanks:"All Ranks",platPlus:"Platinum+",deck:"Deck",manaCurve:"Mana Curve",name:"Name",updated:"Updated",created:"Created",card:"Card",cards:"Cards",inclusion:"Inclusion",avgCopies:"Avg. Copies",turnsHeld:"Turns Held",mulliganWinrate:"Mulligan WR",keptInMulligan:"Kept in Mulligan",drawnWinrate:"Drawn Winrate",turnPlayed:"Turn Played",playrate:"Playrate",deckDifferences:"Deck Differences",player:"Player",lp:"LP",change:"Change",favoriteDeck:"Favorite Deck",server:"Server",players:"Players",time:"Time",type:"Type",rarity:"Rarity",archetypes:"Archetypes",leaderboard:"Leaderboard",victory:"Victory",defeat:"Defeat",newCards:"New Cards",signIn:"Log In",syncUserData:"Sync User Data",settings:"Settings",gamesPlayed:"Games Played",premium:"Premium",renews:"Renews",expires:"Expires",getPremium:"Get Premium!",becomeTheMaster:"Become The Master"}},de:{cardLottery:{setBanner:"1Set As Banner",setIcon:"1Set As Icon",openAnother:"1Open Another"},cards:{roundDrawn:"1Round Drawn",roundPlayed:"1Round Played",card:"1Card",cards:"1Cards",inclusion:"1Inclusion",avgCopies:"1Avg. Copies",mulliganWinrate:"1Mull. Winrate",keptInMulligan:"1Kept In Mull.",drawnWinrate:"1Drawn Winrate",turnPlayed:"1Turn Played",turnsHeld:"1Turns Held",recommendedDecks:"1Recommended Decks",similarCards:"1Similar Cards",attack:"1Attack",health:"1Health",quantityOwned:"1Quantity Owned"},deck:{copyDeckCode:"1Copy Deck Code",deckCodeCopied:"1Deck Code Copied",deleteDeck:"1Delete Deck",deleteDeckConfirmation:"Are you sure you would like to delete this deck?",editDeckName:"1Edit Deck Name",signInToUpload:"1Please sign in to upload deck to LoR",uploadDeckToLor:"1Upload Deck to Legends of Runeterra",deckUploaded:"1Deck Uploaded!",updatePrivacy:"1Update Deck Privacy",deckPrivate:"1Currently Private",deckPublic:"1Currently Public",openInDeckBuilder:"1Open in Deck Builder",numManaCards:"1{num} Mana Cards",simulateMulligan:"1Simulate Mulligan",replaceAllCards:"1Replace All Cards",replaceSelectedCards:"1Replace Selected Cards",personalCost:"1Personal Cost",originalCost:"1Original Cost",openArchetypePage:"1Open Archetype Page",shareDeck:"1Share Deck"},archetype:{abbreviation:"1A"},leaderboard:{totalPlayers:"1Total Players",lp:"1LP",rank:"1Rank",updated:"1Updated"},general:{manaCost:"1Mana Cost",cost:"1Cost",regions:"1Regions",clear:"1Clear",copy:"1Copy",patch:"1Patch",matches:"1Matches",wins:"1Wins",losses:"1Losses",winrate:"1Winrate",quantity:"1Quantity",round:"1Round",total:"1Total",champion:"1Champion",follower:"1Follower",spell:"1Spell",landmark:"1Landmark",equipment:"1Equipment",champions:"1Champions",followers:"1Followers",spells:"1Spells",landmarks:"1Landmarks",equipments:"1Equipment",statistics:"1Statistics",advanced:"1Advanced",newAdvancedFilter:"1New Advanced Filter",types:"1Types",rarities:"1Rarities",sets:"1Sets",keywords:"1Keywords",pastDays:"1Past {count} Days",pastHours:"1Past {count} Hours",pastHour:"1Past Hour",season:"1Season",servers:"1Servers",sampleSize:"1Sample Size",minimumMatches:"1Minimum Matches",ranks:"1Ranks",allRanks:"1All Ranks",platPlus:"1Platinum+",deck:"1Deck",manaCurve:"1Mana Curve",name:"1Name",updated:"1Updated",created:"1Created",card:"1Card",cards:"1Cards",inclusion:"1Inclusion",avgCopies:"1Avg. Copies",turnsHeld:"1Turns Held",mulliganWinrate:"1Mulligan WR",keptInMulligan:"1Kept in Mulligan",drawnWinrate:"1Drawn Winrate",turnPlayed:"1Turn Played",playrate:"1Playrate",deckDifferences:"1Deck Differences",player:"1Player",lp:"1LP",change:"1Change",favoriteDeck:"1Favorite Deck",server:"1Server",players:"1Players",time:"1Time",type:"1Type",rarity:"1Rarity",archetypes:"1Archetypes",leaderboard:"1Leaderboard",victory:"1Victory",defeat:"1Defeat",newCards:"1New Cards",signIn:"1Log In",syncUserData:"1Sync User Data",settings:"1Settings",gamesPlayed:"1Games Played",premium:"1Premium",renews:"1Renews",expires:"1Expires",getPremium:"1Get Premium!",becomeTheMaster:"1Become The Master"}}}})}function Am(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Am(Object(n),!0).forEach(function(r){kt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Am(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ql(e){return ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ql(e)}function G5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Im(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function X5(e,t,n){return t&&Im(e.prototype,t),n&&Im(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nf(e,t){return J5(e)||Q5(e,t)||Av(e,t)||tk()}function po(e){return K5(e)||Z5(e)||Av(e)||ek()}function K5(e){if(Array.isArray(e))return vd(e)}function J5(e){if(Array.isArray(e))return e}function Z5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Q5(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,s,l;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(c){i=!0,l=c}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function Av(e,t){if(e){if(typeof e=="string")return vd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vd(e,t)}}function vd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ek(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
31
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Lm=function(){},Df={},Iv={},Lv=null,Rv={mark:Lm,measure:Lm};try{typeof window<"u"&&(Df=window),typeof document<"u"&&(Iv=document),typeof MutationObserver<"u"&&(Lv=MutationObserver),typeof performance<"u"&&(Rv=performance)}catch{}var nk=Df.navigator||{},Rm=nk.userAgent,Bm=Rm===void 0?"":Rm,Qr=Df,Je=Iv,Vm=Lv,Xo=Rv;Qr.document;var Cr=!!Je.documentElement&&!!Je.head&&typeof Je.addEventListener=="function"&&typeof Je.createElement=="function",Bv=~Bm.indexOf("MSIE")||~Bm.indexOf("Trident/"),Ko,Jo,Zo,Qo,el,br="___FONT_AWESOME___",_d=16,Vv="fa",$v="svg-inline--fa",Ba="data-fa-i2svg",yd="data-fa-pseudo-element",rk="data-fa-pseudo-element-pending",Pf="data-prefix",Af="data-icon",$m="fontawesome-i2svg",ak="async",ik=["HTML","HEAD","STYLE","SCRIPT"],Fv=function(){try{return process.env.NODE_ENV==="production"}catch{return!1}}(),Ke="classic",lt="sharp",If=[Ke,lt];function ho(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[Ke]}})}var js=ho((Ko={},kt(Ko,Ke,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),kt(Ko,lt,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Ko)),Hs=ho((Jo={},kt(Jo,Ke,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),kt(Jo,lt,{solid:"fass",regular:"fasr",light:"fasl"}),Jo)),Ws=ho((Zo={},kt(Zo,Ke,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),kt(Zo,lt,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),Zo)),sk=ho((Qo={},kt(Qo,Ke,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),kt(Qo,lt,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Qo)),ok=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,zv="fa-layers-text",lk=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,ck=ho((el={},kt(el,Ke,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),kt(el,lt,{900:"fass",400:"fasr",300:"fasl"}),el)),jv=[1,2,3,4,5,6,7,8,9,10],uk=jv.concat([11,12,13,14,15,16,17,18,19,20]),dk=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ea={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Us=new Set;Object.keys(Hs[Ke]).map(Us.add.bind(Us));Object.keys(Hs[lt]).map(Us.add.bind(Us));var fk=[].concat(If,po(Us),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Ea.GROUP,Ea.SWAP_OPACITY,Ea.PRIMARY,Ea.SECONDARY]).concat(jv.map(function(e){return"".concat(e,"x")})).concat(uk.map(function(e){return"w-".concat(e)})),ks=Qr.FontAwesomeConfig||{};function pk(e){var t=Je.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function hk(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Je&&typeof Je.querySelector=="function"){var mk=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];mk.forEach(function(e){var t=Nf(e,2),n=t[0],r=t[1],a=hk(pk(n));a!=null&&(ks[r]=a)})}var Hv={styleDefault:"solid",familyDefault:"classic",cssPrefix:Vv,replacementClass:$v,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ks.familyPrefix&&(ks.cssPrefix=ks.familyPrefix);var xi=q(q({},Hv),ks);xi.autoReplaceSvg||(xi.observeMutations=!1);var ee={};Object.keys(Hv).forEach(function(e){Object.defineProperty(ee,e,{enumerable:!0,set:function(n){xi[e]=n,ws.forEach(function(r){return r(ee)})},get:function(){return xi[e]}})});Object.defineProperty(ee,"familyPrefix",{enumerable:!0,set:function(t){xi.cssPrefix=t,ws.forEach(function(n){return n(ee)})},get:function(){return xi.cssPrefix}});Qr.FontAwesomeConfig=ee;var ws=[];function gk(e){return ws.push(e),function(){ws.splice(ws.indexOf(e),1)}}var Lr=_d,Wn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function vk(e){if(!(!e||!Cr)){var t=Je.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Je.head.childNodes,r=null,a=n.length-1;a>-1;a--){var i=n[a],s=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=i)}return Je.head.insertBefore(t,r),e}}var _k="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ys(){for(var e=12,t="";e-- >0;)t+=_k[Math.random()*62|0];return t}function ji(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Lf(e){return e.classList?ji(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Wv(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function yk(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Wv(e[n]),'" ')},"").trim()}function Oc(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Rf(e){return e.size!==Wn.size||e.x!==Wn.x||e.y!==Wn.y||e.rotate!==Wn.rotate||e.flipX||e.flipY}function bk(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(i," ").concat(s," ").concat(l)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:a,inner:c,path:u}}function kk(e){var t=e.transform,n=e.width,r=n===void 0?_d:n,a=e.height,i=a===void 0?_d:a,s=e.startCentered,l=s===void 0?!1:s,c="";return l&&Bv?c+="translate(".concat(t.x/Lr-r/2,"em, ").concat(t.y/Lr-i/2,"em) "):l?c+="translate(calc(-50% + ".concat(t.x/Lr,"em), calc(-50% + ").concat(t.y/Lr,"em)) "):c+="translate(".concat(t.x/Lr,"em, ").concat(t.y/Lr,"em) "),c+="scale(".concat(t.size/Lr*(t.flipX?-1:1),", ").concat(t.size/Lr*(t.flipY?-1:1),") "),c+="rotate(".concat(t.rotate,"deg) "),c}var wk=`:root, :host {
32
+ --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
33
+ --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
34
+ --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
35
+ --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
36
+ --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
37
+ --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
38
+ --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
39
+ --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
40
+ --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
41
+ }
42
+
43
+ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
44
+ overflow: visible;
45
+ box-sizing: content-box;
46
+ }
47
+
48
+ .svg-inline--fa {
49
+ display: var(--fa-display, inline-block);
50
+ height: 1em;
51
+ overflow: visible;
52
+ vertical-align: -0.125em;
53
+ }
54
+ .svg-inline--fa.fa-2xs {
55
+ vertical-align: 0.1em;
56
+ }
57
+ .svg-inline--fa.fa-xs {
58
+ vertical-align: 0em;
59
+ }
60
+ .svg-inline--fa.fa-sm {
61
+ vertical-align: -0.0714285705em;
62
+ }
63
+ .svg-inline--fa.fa-lg {
64
+ vertical-align: -0.2em;
65
+ }
66
+ .svg-inline--fa.fa-xl {
67
+ vertical-align: -0.25em;
68
+ }
69
+ .svg-inline--fa.fa-2xl {
70
+ vertical-align: -0.3125em;
71
+ }
72
+ .svg-inline--fa.fa-pull-left {
73
+ margin-right: var(--fa-pull-margin, 0.3em);
74
+ width: auto;
75
+ }
76
+ .svg-inline--fa.fa-pull-right {
77
+ margin-left: var(--fa-pull-margin, 0.3em);
78
+ width: auto;
79
+ }
80
+ .svg-inline--fa.fa-li {
81
+ width: var(--fa-li-width, 2em);
82
+ top: 0.25em;
83
+ }
84
+ .svg-inline--fa.fa-fw {
85
+ width: var(--fa-fw-width, 1.25em);
86
+ }
87
+
88
+ .fa-layers svg.svg-inline--fa {
89
+ bottom: 0;
90
+ left: 0;
91
+ margin: auto;
92
+ position: absolute;
93
+ right: 0;
94
+ top: 0;
95
+ }
96
+
97
+ .fa-layers-counter, .fa-layers-text {
98
+ display: inline-block;
99
+ position: absolute;
100
+ text-align: center;
101
+ }
102
+
103
+ .fa-layers {
104
+ display: inline-block;
105
+ height: 1em;
106
+ position: relative;
107
+ text-align: center;
108
+ vertical-align: -0.125em;
109
+ width: 1em;
110
+ }
111
+ .fa-layers svg.svg-inline--fa {
112
+ -webkit-transform-origin: center center;
113
+ transform-origin: center center;
114
+ }
115
+
116
+ .fa-layers-text {
117
+ left: 50%;
118
+ top: 50%;
119
+ -webkit-transform: translate(-50%, -50%);
120
+ transform: translate(-50%, -50%);
121
+ -webkit-transform-origin: center center;
122
+ transform-origin: center center;
123
+ }
124
+
125
+ .fa-layers-counter {
126
+ background-color: var(--fa-counter-background-color, #ff253a);
127
+ border-radius: var(--fa-counter-border-radius, 1em);
128
+ box-sizing: border-box;
129
+ color: var(--fa-inverse, #fff);
130
+ line-height: var(--fa-counter-line-height, 1);
131
+ max-width: var(--fa-counter-max-width, 5em);
132
+ min-width: var(--fa-counter-min-width, 1.5em);
133
+ overflow: hidden;
134
+ padding: var(--fa-counter-padding, 0.25em 0.5em);
135
+ right: var(--fa-right, 0);
136
+ text-overflow: ellipsis;
137
+ top: var(--fa-top, 0);
138
+ -webkit-transform: scale(var(--fa-counter-scale, 0.25));
139
+ transform: scale(var(--fa-counter-scale, 0.25));
140
+ -webkit-transform-origin: top right;
141
+ transform-origin: top right;
142
+ }
143
+
144
+ .fa-layers-bottom-right {
145
+ bottom: var(--fa-bottom, 0);
146
+ right: var(--fa-right, 0);
147
+ top: auto;
148
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
149
+ transform: scale(var(--fa-layers-scale, 0.25));
150
+ -webkit-transform-origin: bottom right;
151
+ transform-origin: bottom right;
152
+ }
153
+
154
+ .fa-layers-bottom-left {
155
+ bottom: var(--fa-bottom, 0);
156
+ left: var(--fa-left, 0);
157
+ right: auto;
158
+ top: auto;
159
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
160
+ transform: scale(var(--fa-layers-scale, 0.25));
161
+ -webkit-transform-origin: bottom left;
162
+ transform-origin: bottom left;
163
+ }
164
+
165
+ .fa-layers-top-right {
166
+ top: var(--fa-top, 0);
167
+ right: var(--fa-right, 0);
168
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
169
+ transform: scale(var(--fa-layers-scale, 0.25));
170
+ -webkit-transform-origin: top right;
171
+ transform-origin: top right;
172
+ }
173
+
174
+ .fa-layers-top-left {
175
+ left: var(--fa-left, 0);
176
+ right: auto;
177
+ top: var(--fa-top, 0);
178
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
179
+ transform: scale(var(--fa-layers-scale, 0.25));
180
+ -webkit-transform-origin: top left;
181
+ transform-origin: top left;
182
+ }
183
+
184
+ .fa-1x {
185
+ font-size: 1em;
186
+ }
187
+
188
+ .fa-2x {
189
+ font-size: 2em;
190
+ }
191
+
192
+ .fa-3x {
193
+ font-size: 3em;
194
+ }
195
+
196
+ .fa-4x {
197
+ font-size: 4em;
198
+ }
199
+
200
+ .fa-5x {
201
+ font-size: 5em;
202
+ }
203
+
204
+ .fa-6x {
205
+ font-size: 6em;
206
+ }
207
+
208
+ .fa-7x {
209
+ font-size: 7em;
210
+ }
211
+
212
+ .fa-8x {
213
+ font-size: 8em;
214
+ }
215
+
216
+ .fa-9x {
217
+ font-size: 9em;
218
+ }
219
+
220
+ .fa-10x {
221
+ font-size: 10em;
222
+ }
223
+
224
+ .fa-2xs {
225
+ font-size: 0.625em;
226
+ line-height: 0.1em;
227
+ vertical-align: 0.225em;
228
+ }
229
+
230
+ .fa-xs {
231
+ font-size: 0.75em;
232
+ line-height: 0.0833333337em;
233
+ vertical-align: 0.125em;
234
+ }
235
+
236
+ .fa-sm {
237
+ font-size: 0.875em;
238
+ line-height: 0.0714285718em;
239
+ vertical-align: 0.0535714295em;
240
+ }
241
+
242
+ .fa-lg {
243
+ font-size: 1.25em;
244
+ line-height: 0.05em;
245
+ vertical-align: -0.075em;
246
+ }
247
+
248
+ .fa-xl {
249
+ font-size: 1.5em;
250
+ line-height: 0.0416666682em;
251
+ vertical-align: -0.125em;
252
+ }
253
+
254
+ .fa-2xl {
255
+ font-size: 2em;
256
+ line-height: 0.03125em;
257
+ vertical-align: -0.1875em;
258
+ }
259
+
260
+ .fa-fw {
261
+ text-align: center;
262
+ width: 1.25em;
263
+ }
264
+
265
+ .fa-ul {
266
+ list-style-type: none;
267
+ margin-left: var(--fa-li-margin, 2.5em);
268
+ padding-left: 0;
269
+ }
270
+ .fa-ul > li {
271
+ position: relative;
272
+ }
273
+
274
+ .fa-li {
275
+ left: calc(var(--fa-li-width, 2em) * -1);
276
+ position: absolute;
277
+ text-align: center;
278
+ width: var(--fa-li-width, 2em);
279
+ line-height: inherit;
280
+ }
281
+
282
+ .fa-border {
283
+ border-color: var(--fa-border-color, #eee);
284
+ border-radius: var(--fa-border-radius, 0.1em);
285
+ border-style: var(--fa-border-style, solid);
286
+ border-width: var(--fa-border-width, 0.08em);
287
+ padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
288
+ }
289
+
290
+ .fa-pull-left {
291
+ float: left;
292
+ margin-right: var(--fa-pull-margin, 0.3em);
293
+ }
294
+
295
+ .fa-pull-right {
296
+ float: right;
297
+ margin-left: var(--fa-pull-margin, 0.3em);
298
+ }
299
+
300
+ .fa-beat {
301
+ -webkit-animation-name: fa-beat;
302
+ animation-name: fa-beat;
303
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
304
+ animation-delay: var(--fa-animation-delay, 0s);
305
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
306
+ animation-direction: var(--fa-animation-direction, normal);
307
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
308
+ animation-duration: var(--fa-animation-duration, 1s);
309
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
310
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
311
+ -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
312
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
313
+ }
314
+
315
+ .fa-bounce {
316
+ -webkit-animation-name: fa-bounce;
317
+ animation-name: fa-bounce;
318
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
319
+ animation-delay: var(--fa-animation-delay, 0s);
320
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
321
+ animation-direction: var(--fa-animation-direction, normal);
322
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
323
+ animation-duration: var(--fa-animation-duration, 1s);
324
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
325
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
326
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
327
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
328
+ }
329
+
330
+ .fa-fade {
331
+ -webkit-animation-name: fa-fade;
332
+ animation-name: fa-fade;
333
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
334
+ animation-delay: var(--fa-animation-delay, 0s);
335
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
336
+ animation-direction: var(--fa-animation-direction, normal);
337
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
338
+ animation-duration: var(--fa-animation-duration, 1s);
339
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
340
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
341
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
342
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
343
+ }
344
+
345
+ .fa-beat-fade {
346
+ -webkit-animation-name: fa-beat-fade;
347
+ animation-name: fa-beat-fade;
348
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
349
+ animation-delay: var(--fa-animation-delay, 0s);
350
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
351
+ animation-direction: var(--fa-animation-direction, normal);
352
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
353
+ animation-duration: var(--fa-animation-duration, 1s);
354
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
355
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
356
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
357
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
358
+ }
359
+
360
+ .fa-flip {
361
+ -webkit-animation-name: fa-flip;
362
+ animation-name: fa-flip;
363
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
364
+ animation-delay: var(--fa-animation-delay, 0s);
365
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
366
+ animation-direction: var(--fa-animation-direction, normal);
367
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
368
+ animation-duration: var(--fa-animation-duration, 1s);
369
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
370
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
371
+ -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
372
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
373
+ }
374
+
375
+ .fa-shake {
376
+ -webkit-animation-name: fa-shake;
377
+ animation-name: fa-shake;
378
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
379
+ animation-delay: var(--fa-animation-delay, 0s);
380
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
381
+ animation-direction: var(--fa-animation-direction, normal);
382
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
383
+ animation-duration: var(--fa-animation-duration, 1s);
384
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
385
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
386
+ -webkit-animation-timing-function: var(--fa-animation-timing, linear);
387
+ animation-timing-function: var(--fa-animation-timing, linear);
388
+ }
389
+
390
+ .fa-spin {
391
+ -webkit-animation-name: fa-spin;
392
+ animation-name: fa-spin;
393
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
394
+ animation-delay: var(--fa-animation-delay, 0s);
395
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
396
+ animation-direction: var(--fa-animation-direction, normal);
397
+ -webkit-animation-duration: var(--fa-animation-duration, 2s);
398
+ animation-duration: var(--fa-animation-duration, 2s);
399
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
400
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
401
+ -webkit-animation-timing-function: var(--fa-animation-timing, linear);
402
+ animation-timing-function: var(--fa-animation-timing, linear);
403
+ }
404
+
405
+ .fa-spin-reverse {
406
+ --fa-animation-direction: reverse;
407
+ }
408
+
409
+ .fa-pulse,
410
+ .fa-spin-pulse {
411
+ -webkit-animation-name: fa-spin;
412
+ animation-name: fa-spin;
413
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
414
+ animation-direction: var(--fa-animation-direction, normal);
415
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
416
+ animation-duration: var(--fa-animation-duration, 1s);
417
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
418
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
419
+ -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
420
+ animation-timing-function: var(--fa-animation-timing, steps(8));
421
+ }
422
+
423
+ @media (prefers-reduced-motion: reduce) {
424
+ .fa-beat,
425
+ .fa-bounce,
426
+ .fa-fade,
427
+ .fa-beat-fade,
428
+ .fa-flip,
429
+ .fa-pulse,
430
+ .fa-shake,
431
+ .fa-spin,
432
+ .fa-spin-pulse {
433
+ -webkit-animation-delay: -1ms;
434
+ animation-delay: -1ms;
435
+ -webkit-animation-duration: 1ms;
436
+ animation-duration: 1ms;
437
+ -webkit-animation-iteration-count: 1;
438
+ animation-iteration-count: 1;
439
+ -webkit-transition-delay: 0s;
440
+ transition-delay: 0s;
441
+ -webkit-transition-duration: 0s;
442
+ transition-duration: 0s;
443
+ }
444
+ }
445
+ @-webkit-keyframes fa-beat {
446
+ 0%, 90% {
447
+ -webkit-transform: scale(1);
448
+ transform: scale(1);
449
+ }
450
+ 45% {
451
+ -webkit-transform: scale(var(--fa-beat-scale, 1.25));
452
+ transform: scale(var(--fa-beat-scale, 1.25));
453
+ }
454
+ }
455
+ @keyframes fa-beat {
456
+ 0%, 90% {
457
+ -webkit-transform: scale(1);
458
+ transform: scale(1);
459
+ }
460
+ 45% {
461
+ -webkit-transform: scale(var(--fa-beat-scale, 1.25));
462
+ transform: scale(var(--fa-beat-scale, 1.25));
463
+ }
464
+ }
465
+ @-webkit-keyframes fa-bounce {
466
+ 0% {
467
+ -webkit-transform: scale(1, 1) translateY(0);
468
+ transform: scale(1, 1) translateY(0);
469
+ }
470
+ 10% {
471
+ -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
472
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
473
+ }
474
+ 30% {
475
+ -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
476
+ transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
477
+ }
478
+ 50% {
479
+ -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
480
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
481
+ }
482
+ 57% {
483
+ -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
484
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
485
+ }
486
+ 64% {
487
+ -webkit-transform: scale(1, 1) translateY(0);
488
+ transform: scale(1, 1) translateY(0);
489
+ }
490
+ 100% {
491
+ -webkit-transform: scale(1, 1) translateY(0);
492
+ transform: scale(1, 1) translateY(0);
493
+ }
494
+ }
495
+ @keyframes fa-bounce {
496
+ 0% {
497
+ -webkit-transform: scale(1, 1) translateY(0);
498
+ transform: scale(1, 1) translateY(0);
499
+ }
500
+ 10% {
501
+ -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
502
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
503
+ }
504
+ 30% {
505
+ -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
506
+ transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
507
+ }
508
+ 50% {
509
+ -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
510
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
511
+ }
512
+ 57% {
513
+ -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
514
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
515
+ }
516
+ 64% {
517
+ -webkit-transform: scale(1, 1) translateY(0);
518
+ transform: scale(1, 1) translateY(0);
519
+ }
520
+ 100% {
521
+ -webkit-transform: scale(1, 1) translateY(0);
522
+ transform: scale(1, 1) translateY(0);
523
+ }
524
+ }
525
+ @-webkit-keyframes fa-fade {
526
+ 50% {
527
+ opacity: var(--fa-fade-opacity, 0.4);
528
+ }
529
+ }
530
+ @keyframes fa-fade {
531
+ 50% {
532
+ opacity: var(--fa-fade-opacity, 0.4);
533
+ }
534
+ }
535
+ @-webkit-keyframes fa-beat-fade {
536
+ 0%, 100% {
537
+ opacity: var(--fa-beat-fade-opacity, 0.4);
538
+ -webkit-transform: scale(1);
539
+ transform: scale(1);
540
+ }
541
+ 50% {
542
+ opacity: 1;
543
+ -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
544
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
545
+ }
546
+ }
547
+ @keyframes fa-beat-fade {
548
+ 0%, 100% {
549
+ opacity: var(--fa-beat-fade-opacity, 0.4);
550
+ -webkit-transform: scale(1);
551
+ transform: scale(1);
552
+ }
553
+ 50% {
554
+ opacity: 1;
555
+ -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
556
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
557
+ }
558
+ }
559
+ @-webkit-keyframes fa-flip {
560
+ 50% {
561
+ -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
562
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
563
+ }
564
+ }
565
+ @keyframes fa-flip {
566
+ 50% {
567
+ -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
568
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
569
+ }
570
+ }
571
+ @-webkit-keyframes fa-shake {
572
+ 0% {
573
+ -webkit-transform: rotate(-15deg);
574
+ transform: rotate(-15deg);
575
+ }
576
+ 4% {
577
+ -webkit-transform: rotate(15deg);
578
+ transform: rotate(15deg);
579
+ }
580
+ 8%, 24% {
581
+ -webkit-transform: rotate(-18deg);
582
+ transform: rotate(-18deg);
583
+ }
584
+ 12%, 28% {
585
+ -webkit-transform: rotate(18deg);
586
+ transform: rotate(18deg);
587
+ }
588
+ 16% {
589
+ -webkit-transform: rotate(-22deg);
590
+ transform: rotate(-22deg);
591
+ }
592
+ 20% {
593
+ -webkit-transform: rotate(22deg);
594
+ transform: rotate(22deg);
595
+ }
596
+ 32% {
597
+ -webkit-transform: rotate(-12deg);
598
+ transform: rotate(-12deg);
599
+ }
600
+ 36% {
601
+ -webkit-transform: rotate(12deg);
602
+ transform: rotate(12deg);
603
+ }
604
+ 40%, 100% {
605
+ -webkit-transform: rotate(0deg);
606
+ transform: rotate(0deg);
607
+ }
608
+ }
609
+ @keyframes fa-shake {
610
+ 0% {
611
+ -webkit-transform: rotate(-15deg);
612
+ transform: rotate(-15deg);
613
+ }
614
+ 4% {
615
+ -webkit-transform: rotate(15deg);
616
+ transform: rotate(15deg);
617
+ }
618
+ 8%, 24% {
619
+ -webkit-transform: rotate(-18deg);
620
+ transform: rotate(-18deg);
621
+ }
622
+ 12%, 28% {
623
+ -webkit-transform: rotate(18deg);
624
+ transform: rotate(18deg);
625
+ }
626
+ 16% {
627
+ -webkit-transform: rotate(-22deg);
628
+ transform: rotate(-22deg);
629
+ }
630
+ 20% {
631
+ -webkit-transform: rotate(22deg);
632
+ transform: rotate(22deg);
633
+ }
634
+ 32% {
635
+ -webkit-transform: rotate(-12deg);
636
+ transform: rotate(-12deg);
637
+ }
638
+ 36% {
639
+ -webkit-transform: rotate(12deg);
640
+ transform: rotate(12deg);
641
+ }
642
+ 40%, 100% {
643
+ -webkit-transform: rotate(0deg);
644
+ transform: rotate(0deg);
645
+ }
646
+ }
647
+ @-webkit-keyframes fa-spin {
648
+ 0% {
649
+ -webkit-transform: rotate(0deg);
650
+ transform: rotate(0deg);
651
+ }
652
+ 100% {
653
+ -webkit-transform: rotate(360deg);
654
+ transform: rotate(360deg);
655
+ }
656
+ }
657
+ @keyframes fa-spin {
658
+ 0% {
659
+ -webkit-transform: rotate(0deg);
660
+ transform: rotate(0deg);
661
+ }
662
+ 100% {
663
+ -webkit-transform: rotate(360deg);
664
+ transform: rotate(360deg);
665
+ }
666
+ }
667
+ .fa-rotate-90 {
668
+ -webkit-transform: rotate(90deg);
669
+ transform: rotate(90deg);
670
+ }
671
+
672
+ .fa-rotate-180 {
673
+ -webkit-transform: rotate(180deg);
674
+ transform: rotate(180deg);
675
+ }
676
+
677
+ .fa-rotate-270 {
678
+ -webkit-transform: rotate(270deg);
679
+ transform: rotate(270deg);
680
+ }
681
+
682
+ .fa-flip-horizontal {
683
+ -webkit-transform: scale(-1, 1);
684
+ transform: scale(-1, 1);
685
+ }
686
+
687
+ .fa-flip-vertical {
688
+ -webkit-transform: scale(1, -1);
689
+ transform: scale(1, -1);
690
+ }
691
+
692
+ .fa-flip-both,
693
+ .fa-flip-horizontal.fa-flip-vertical {
694
+ -webkit-transform: scale(-1, -1);
695
+ transform: scale(-1, -1);
696
+ }
697
+
698
+ .fa-rotate-by {
699
+ -webkit-transform: rotate(var(--fa-rotate-angle, none));
700
+ transform: rotate(var(--fa-rotate-angle, none));
701
+ }
702
+
703
+ .fa-stack {
704
+ display: inline-block;
705
+ vertical-align: middle;
706
+ height: 2em;
707
+ position: relative;
708
+ width: 2.5em;
709
+ }
710
+
711
+ .fa-stack-1x,
712
+ .fa-stack-2x {
713
+ bottom: 0;
714
+ left: 0;
715
+ margin: auto;
716
+ position: absolute;
717
+ right: 0;
718
+ top: 0;
719
+ z-index: var(--fa-stack-z-index, auto);
720
+ }
721
+
722
+ .svg-inline--fa.fa-stack-1x {
723
+ height: 1em;
724
+ width: 1.25em;
725
+ }
726
+ .svg-inline--fa.fa-stack-2x {
727
+ height: 2em;
728
+ width: 2.5em;
729
+ }
730
+
731
+ .fa-inverse {
732
+ color: var(--fa-inverse, #fff);
733
+ }
734
+
735
+ .sr-only,
736
+ .fa-sr-only {
737
+ position: absolute;
738
+ width: 1px;
739
+ height: 1px;
740
+ padding: 0;
741
+ margin: -1px;
742
+ overflow: hidden;
743
+ clip: rect(0, 0, 0, 0);
744
+ white-space: nowrap;
745
+ border-width: 0;
746
+ }
747
+
748
+ .sr-only-focusable:not(:focus),
749
+ .fa-sr-only-focusable:not(:focus) {
750
+ position: absolute;
751
+ width: 1px;
752
+ height: 1px;
753
+ padding: 0;
754
+ margin: -1px;
755
+ overflow: hidden;
756
+ clip: rect(0, 0, 0, 0);
757
+ white-space: nowrap;
758
+ border-width: 0;
759
+ }
760
+
761
+ .svg-inline--fa .fa-primary {
762
+ fill: var(--fa-primary-color, currentColor);
763
+ opacity: var(--fa-primary-opacity, 1);
764
+ }
765
+
766
+ .svg-inline--fa .fa-secondary {
767
+ fill: var(--fa-secondary-color, currentColor);
768
+ opacity: var(--fa-secondary-opacity, 0.4);
769
+ }
770
+
771
+ .svg-inline--fa.fa-swap-opacity .fa-primary {
772
+ opacity: var(--fa-secondary-opacity, 0.4);
773
+ }
774
+
775
+ .svg-inline--fa.fa-swap-opacity .fa-secondary {
776
+ opacity: var(--fa-primary-opacity, 1);
777
+ }
778
+
779
+ .svg-inline--fa mask .fa-primary,
780
+ .svg-inline--fa mask .fa-secondary {
781
+ fill: black;
782
+ }
783
+
784
+ .fad.fa-inverse,
785
+ .fa-duotone.fa-inverse {
786
+ color: var(--fa-inverse, #fff);
787
+ }`;function Uv(){var e=Vv,t=$v,n=ee.cssPrefix,r=ee.replacementClass,a=wk;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(l,".".concat(r))}return a}var Fm=!1;function Su(){ee.autoAddCss&&!Fm&&(vk(Uv()),Fm=!0)}var Sk={mixout:function(){return{dom:{css:Uv,insertCss:Su}}},hooks:function(){return{beforeDOMElementCreation:function(){Su()},beforeI2svg:function(){Su()}}}},kr=Qr||{};kr[br]||(kr[br]={});kr[br].styles||(kr[br].styles={});kr[br].hooks||(kr[br].hooks={});kr[br].shims||(kr[br].shims=[]);var En=kr[br],Yv=[],xk=function e(){Je.removeEventListener("DOMContentLoaded",e),Gl=1,Yv.map(function(t){return t()})},Gl=!1;Cr&&(Gl=(Je.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Je.readyState),Gl||Je.addEventListener("DOMContentLoaded",xk));function Ck(e){Cr&&(Gl?setTimeout(e,0):Yv.push(e))}function mo(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?Wv(e):"<".concat(t," ").concat(yk(r),">").concat(i.map(mo).join(""),"</").concat(t,">")}function zm(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Ek=function(t,n){return function(r,a,i,s){return t.call(n,r,a,i,s)}},xu=function(t,n,r,a){var i=Object.keys(t),s=i.length,l=a!==void 0?Ek(n,a):n,c,u,d;for(r===void 0?(c=1,d=t[i[0]]):(c=0,d=r);c<s;c++)u=i[c],d=l(d,t[u],u,t);return d};function Tk(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var i=e.charCodeAt(n++);(i&64512)==56320?t.push(((a&1023)<<10)+(i&1023)+65536):(t.push(a),n--)}else t.push(a)}return t}function bd(e){var t=Tk(e);return t.length===1?t[0].toString(16):null}function Ok(e,t){var n=e.length,r=e.charCodeAt(t),a;return r>=55296&&r<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}function jm(e){return Object.keys(e).reduce(function(t,n){var r=e[n],a=!!r.icon;return a?t[r.iconName]=r.icon:t[n]=r,t},{})}function kd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,a=r===void 0?!1:r,i=jm(t);typeof En.hooks.addPack=="function"&&!a?En.hooks.addPack(e,jm(t)):En.styles[e]=q(q({},En.styles[e]||{}),i),e==="fas"&&kd("fa",t)}var tl,nl,rl,fi=En.styles,Mk=En.shims,Nk=(tl={},kt(tl,Ke,Object.values(Ws[Ke])),kt(tl,lt,Object.values(Ws[lt])),tl),Bf=null,qv={},Gv={},Xv={},Kv={},Jv={},Dk=(nl={},kt(nl,Ke,Object.keys(js[Ke])),kt(nl,lt,Object.keys(js[lt])),nl);function Pk(e){return~fk.indexOf(e)}function Ak(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r===e&&a!==""&&!Pk(a)?a:null}var Zv=function(){var t=function(i){return xu(fi,function(s,l,c){return s[c]=xu(l,i,{}),s},{})};qv=t(function(a,i,s){if(i[3]&&(a[i[3]]=s),i[2]){var l=i[2].filter(function(c){return typeof c=="number"});l.forEach(function(c){a[c.toString(16)]=s})}return a}),Gv=t(function(a,i,s){if(a[s]=s,i[2]){var l=i[2].filter(function(c){return typeof c=="string"});l.forEach(function(c){a[c]=s})}return a}),Jv=t(function(a,i,s){var l=i[2];return a[s]=s,l.forEach(function(c){a[c]=s}),a});var n="far"in fi||ee.autoFetchSvg,r=xu(Mk,function(a,i){var s=i[0],l=i[1],c=i[2];return l==="far"&&!n&&(l="fas"),typeof s=="string"&&(a.names[s]={prefix:l,iconName:c}),typeof s=="number"&&(a.unicodes[s.toString(16)]={prefix:l,iconName:c}),a},{names:{},unicodes:{}});Xv=r.names,Kv=r.unicodes,Bf=Mc(ee.styleDefault,{family:ee.familyDefault})};gk(function(e){Bf=Mc(e.styleDefault,{family:ee.familyDefault})});Zv();function Vf(e,t){return(qv[e]||{})[t]}function Ik(e,t){return(Gv[e]||{})[t]}function Ta(e,t){return(Jv[e]||{})[t]}function Qv(e){return Xv[e]||{prefix:null,iconName:null}}function Lk(e){var t=Kv[e],n=Vf("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function ea(){return Bf}var $f=function(){return{prefix:null,iconName:null,rest:[]}};function Mc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Ke:n,a=js[r][e],i=Hs[r][e]||Hs[r][a],s=e in En.styles?e:null;return i||s||null}var Hm=(rl={},kt(rl,Ke,Object.keys(Ws[Ke])),kt(rl,lt,Object.keys(Ws[lt])),rl);function Nc(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,a=r===void 0?!1:r,i=(t={},kt(t,Ke,"".concat(ee.cssPrefix,"-").concat(Ke)),kt(t,lt,"".concat(ee.cssPrefix,"-").concat(lt)),t),s=null,l=Ke;(e.includes(i[Ke])||e.some(function(u){return Hm[Ke].includes(u)}))&&(l=Ke),(e.includes(i[lt])||e.some(function(u){return Hm[lt].includes(u)}))&&(l=lt);var c=e.reduce(function(u,d){var f=Ak(ee.cssPrefix,d);if(fi[d]?(d=Nk[l].includes(d)?sk[l][d]:d,s=d,u.prefix=d):Dk[l].indexOf(d)>-1?(s=d,u.prefix=Mc(d,{family:l})):f?u.iconName=f:d!==ee.replacementClass&&d!==i[Ke]&&d!==i[lt]&&u.rest.push(d),!a&&u.prefix&&u.iconName){var p=s==="fa"?Qv(u.iconName):{},h=Ta(u.prefix,u.iconName);p.prefix&&(s=null),u.iconName=p.iconName||h||u.iconName,u.prefix=p.prefix||u.prefix,u.prefix==="far"&&!fi.far&&fi.fas&&!ee.autoFetchSvg&&(u.prefix="fas")}return u},$f());return(e.includes("fa-brands")||e.includes("fab"))&&(c.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(c.prefix="fad"),!c.prefix&&l===lt&&(fi.fass||ee.autoFetchSvg)&&(c.prefix="fass",c.iconName=Ta(c.prefix,c.iconName)||c.iconName),(c.prefix==="fa"||s==="fa")&&(c.prefix=ea()||"fas"),c}var Rk=function(){function e(){G5(this,e),this.definitions={}}return X5(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var s=a.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(l){n.definitions[l]=q(q({},n.definitions[l]||{}),s[l]),kd(l,s[l]);var c=Ws[Ke][l];c&&kd(c,s[l]),Zv()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var a=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(a).map(function(i){var s=a[i],l=s.prefix,c=s.iconName,u=s.icon,d=u[2];n[l]||(n[l]={}),d.length>0&&d.forEach(function(f){typeof f=="string"&&(n[l][f]=u)}),n[l][c]=u}),n}}]),e}(),Wm=[],pi={},vi={},Bk=Object.keys(vi);function Vk(e,t){var n=t.mixoutsTo;return Wm=e,pi={},Object.keys(vi).forEach(function(r){Bk.indexOf(r)===-1&&delete vi[r]}),Wm.forEach(function(r){var a=r.mixout?r.mixout():{};if(Object.keys(a).forEach(function(s){typeof a[s]=="function"&&(n[s]=a[s]),ql(a[s])==="object"&&Object.keys(a[s]).forEach(function(l){n[s]||(n[s]={}),n[s][l]=a[s][l]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(s){pi[s]||(pi[s]=[]),pi[s].push(i[s])})}r.provides&&r.provides(vi)}),n}function wd(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i=pi[e]||[];return i.forEach(function(s){t=s.apply(null,[t].concat(r))}),t}function Va(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=pi[e]||[];a.forEach(function(i){i.apply(null,n)})}function wr(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return vi[e]?vi[e].apply(null,t):void 0}function Sd(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||ea();if(t)return t=Ta(n,t)||t,zm(e2.definitions,n,t)||zm(En.styles,n,t)}var e2=new Rk,$k=function(){ee.autoReplaceSvg=!1,ee.observeMutations=!1,Va("noAuto")},Fk={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Cr?(Va("beforeI2svg",t),wr("pseudoElements2svg",t),wr("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;ee.autoReplaceSvg===!1&&(ee.autoReplaceSvg=!0),ee.observeMutations=!0,Ck(function(){jk({autoReplaceSvgRoot:n}),Va("watch",t)})}},zk={icon:function(t){if(t===null)return null;if(ql(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Ta(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Mc(t[0]);return{prefix:r,iconName:Ta(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ee.cssPrefix,"-"))>-1||t.match(ok))){var a=Nc(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||ea(),iconName:Ta(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=ea();return{prefix:i,iconName:Ta(i,t)||t}}}},un={noAuto:$k,config:ee,dom:Fk,parse:zk,library:e2,findIconDefinition:Sd,toHtml:mo},jk=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Je:n;(Object.keys(En.styles).length>0||ee.autoFetchSvg)&&Cr&&ee.autoReplaceSvg&&un.dom.i2svg({node:r})};function Dc(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return mo(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Cr){var r=Je.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Hk(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,s=e.transform;if(Rf(s)&&n.found&&!r.found){var l=n.width,c=n.height,u={x:l/c/2,y:.5};a.style=Oc(q(q({},i),{},{"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function Wk(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,s=i===!0?"".concat(t,"-").concat(ee.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:q(q({},a),{},{id:s}),children:r}]}]}function Ff(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,s=e.transform,l=e.symbol,c=e.title,u=e.maskId,d=e.titleId,f=e.extra,p=e.watchable,h=p===void 0?!1:p,g=r.found?r:n,v=g.width,b=g.height,m=a==="fak",_=[ee.replacementClass,i?"".concat(ee.cssPrefix,"-").concat(i):""].filter(function(O){return f.classes.indexOf(O)===-1}).filter(function(O){return O!==""||!!O}).concat(f.classes).join(" "),k={children:[],attributes:q(q({},f.attributes),{},{"data-prefix":a,"data-icon":i,class:_,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(b)})},y=m&&!~f.classes.indexOf("fa-fw")?{width:"".concat(v/b*16*.0625,"em")}:{};h&&(k.attributes[Ba]=""),c&&(k.children.push({tag:"title",attributes:{id:k.attributes["aria-labelledby"]||"title-".concat(d||Ys())},children:[c]}),delete k.attributes.title);var w=q(q({},k),{},{prefix:a,iconName:i,main:n,mask:r,maskId:u,transform:s,symbol:l,styles:q(q({},y),f.styles)}),S=r.found&&n.found?wr("generateAbstractMask",w)||{children:[],attributes:{}}:wr("generateAbstractIcon",w)||{children:[],attributes:{}},C=S.children,E=S.attributes;return w.children=C,w.attributes=E,l?Wk(w):Hk(w)}function Um(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,s=e.extra,l=e.watchable,c=l===void 0?!1:l,u=q(q(q({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});c&&(u[Ba]="");var d=q({},s.styles);Rf(a)&&(d.transform=kk({transform:a,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);var f=Oc(d);f.length>0&&(u.style=f);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),i&&p.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),p}function Uk(e){var t=e.content,n=e.title,r=e.extra,a=q(q(q({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=Oc(r.styles);i.length>0&&(a.style=i);var s=[];return s.push({tag:"span",attributes:a,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var Cu=En.styles;function xd(e){var t=e[0],n=e[1],r=e.slice(4),a=Nf(r,1),i=a[0],s=null;return Array.isArray(i)?s={tag:"g",attributes:{class:"".concat(ee.cssPrefix,"-").concat(Ea.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ee.cssPrefix,"-").concat(Ea.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(ee.cssPrefix,"-").concat(Ea.PRIMARY),fill:"currentColor",d:i[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:s}}var Yk={found:!1,width:512,height:512};function qk(e,t){!Fv&&!ee.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Cd(e,t){var n=t;return t==="fa"&&ee.styleDefault!==null&&(t=ea()),new Promise(function(r,a){if(wr("missingIconAbstract"),n==="fa"){var i=Qv(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Cu[t]&&Cu[t][e]){var s=Cu[t][e];return r(xd(s))}qk(e,t),r(q(q({},Yk),{},{icon:ee.showMissingIcons&&e?wr("missingIconAbstract")||{}:{}}))})}var Ym=function(){},Ed=ee.measurePerformance&&Xo&&Xo.mark&&Xo.measure?Xo:{mark:Ym,measure:Ym},ps='FA "6.4.0"',Gk=function(t){return Ed.mark("".concat(ps," ").concat(t," begins")),function(){return t2(t)}},t2=function(t){Ed.mark("".concat(ps," ").concat(t," ends")),Ed.measure("".concat(ps," ").concat(t),"".concat(ps," ").concat(t," begins"),"".concat(ps," ").concat(t," ends"))},zf={begin:Gk,end:t2},Nl=function(){};function qm(e){var t=e.getAttribute?e.getAttribute(Ba):null;return typeof t=="string"}function Xk(e){var t=e.getAttribute?e.getAttribute(Pf):null,n=e.getAttribute?e.getAttribute(Af):null;return t&&n}function Kk(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ee.replacementClass)}function Jk(){if(ee.autoReplaceSvg===!0)return Dl.replace;var e=Dl[ee.autoReplaceSvg];return e||Dl.replace}function Zk(e){return Je.createElementNS("http://www.w3.org/2000/svg",e)}function Qk(e){return Je.createElement(e)}function n2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?Zk:Qk:n;if(typeof e=="string")return Je.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach(function(s){a.setAttribute(s,e.attributes[s])});var i=e.children||[];return i.forEach(function(s){a.appendChild(n2(s,{ceFn:r}))}),a}function e6(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Dl={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(a){n.parentNode.insertBefore(n2(a),n)}),n.getAttribute(Ba)===null&&ee.keepOriginalSource){var r=Je.createComment(e6(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Lf(n).indexOf(ee.replacementClass))return Dl.replace(t);var a=new RegExp("".concat(ee.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(l,c){return c===ee.replacementClass||c.match(a)?l.toSvg.push(c):l.toNode.push(c),l},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var s=r.map(function(l){return mo(l)}).join(`
788
+ `);n.setAttribute(Ba,""),n.innerHTML=s}};function Gm(e){e()}function r2(e,t){var n=typeof t=="function"?t:Nl;if(e.length===0)n();else{var r=Gm;ee.mutateApproach===ak&&(r=Qr.requestAnimationFrame||Gm),r(function(){var a=Jk(),i=zf.begin("mutate");e.map(a),i(),n()})}}var jf=!1;function a2(){jf=!0}function Td(){jf=!1}var Xl=null;function Xm(e){if(Vm&&ee.observeMutations){var t=e.treeCallback,n=t===void 0?Nl:t,r=e.nodeCallback,a=r===void 0?Nl:r,i=e.pseudoElementsCallback,s=i===void 0?Nl:i,l=e.observeMutationsRoot,c=l===void 0?Je:l;Xl=new Vm(function(u){if(!jf){var d=ea();ji(u).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!qm(f.addedNodes[0])&&(ee.searchPseudoElements&&s(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&ee.searchPseudoElements&&s(f.target.parentNode),f.type==="attributes"&&qm(f.target)&&~dk.indexOf(f.attributeName))if(f.attributeName==="class"&&Xk(f.target)){var p=Nc(Lf(f.target)),h=p.prefix,g=p.iconName;f.target.setAttribute(Pf,h||d),g&&f.target.setAttribute(Af,g)}else Kk(f.target)&&a(f.target)})}}),Cr&&Xl.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function t6(){Xl&&Xl.disconnect()}function n6(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,a){var i=a.split(":"),s=i[0],l=i.slice(1);return s&&l.length>0&&(r[s]=l.join(":").trim()),r},{})),n}function r6(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",a=Nc(Lf(e));return a.prefix||(a.prefix=ea()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=Ik(a.prefix,e.innerText)||Vf(a.prefix,bd(e.innerText))),!a.iconName&&ee.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function a6(e){var t=ji(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ee.autoA11y&&(n?t["aria-labelledby"]="".concat(ee.replacementClass,"-title-").concat(r||Ys()):(t["aria-hidden"]="true",t.focusable="false")),t}function i6(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Wn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Km(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=r6(e),r=n.iconName,a=n.prefix,i=n.rest,s=a6(e),l=wd("parseNodeAttributes",{},e),c=t.styleParser?n6(e):[];return q({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:Wn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:s}},l)}var s6=En.styles;function i2(e){var t=ee.autoReplaceSvg==="nest"?Km(e,{styleParser:!1}):Km(e);return~t.extra.classes.indexOf(zv)?wr("generateLayersText",e,t):wr("generateSvgReplacementMutation",e,t)}var ta=new Set;If.map(function(e){ta.add("fa-".concat(e))});Object.keys(js[Ke]).map(ta.add.bind(ta));Object.keys(js[lt]).map(ta.add.bind(ta));ta=po(ta);function Jm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Cr)return Promise.resolve();var n=Je.documentElement.classList,r=function(f){return n.add("".concat($m,"-").concat(f))},a=function(f){return n.remove("".concat($m,"-").concat(f))},i=ee.autoFetchSvg?ta:If.map(function(d){return"fa-".concat(d)}).concat(Object.keys(s6));i.includes("fa")||i.push("fa");var s=[".".concat(zv,":not([").concat(Ba,"])")].concat(i.map(function(d){return".".concat(d,":not([").concat(Ba,"])")})).join(", ");if(s.length===0)return Promise.resolve();var l=[];try{l=ji(e.querySelectorAll(s))}catch{}if(l.length>0)r("pending"),a("complete");else return Promise.resolve();var c=zf.begin("onTree"),u=l.reduce(function(d,f){try{var p=i2(f);p&&d.push(p)}catch(h){Fv||h.name==="MissingIcon"&&console.error(h)}return d},[]);return new Promise(function(d,f){Promise.all(u).then(function(p){r2(p,function(){r("active"),r("complete"),a("pending"),typeof t=="function"&&t(),c(),d()})}).catch(function(p){c(),f(p)})})}function o6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;i2(e).then(function(n){n&&r2([n],t)})}function l6(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Sd(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:Sd(a||{})),e(r,q(q({},n),{},{mask:a}))}}var c6=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,a=r===void 0?Wn:r,i=n.symbol,s=i===void 0?!1:i,l=n.mask,c=l===void 0?null:l,u=n.maskId,d=u===void 0?null:u,f=n.title,p=f===void 0?null:f,h=n.titleId,g=h===void 0?null:h,v=n.classes,b=v===void 0?[]:v,m=n.attributes,_=m===void 0?{}:m,k=n.styles,y=k===void 0?{}:k;if(t){var w=t.prefix,S=t.iconName,C=t.icon;return Dc(q({type:"icon"},t),function(){return Va("beforeDOMElementCreation",{iconDefinition:t,params:n}),ee.autoA11y&&(p?_["aria-labelledby"]="".concat(ee.replacementClass,"-title-").concat(g||Ys()):(_["aria-hidden"]="true",_.focusable="false")),Ff({icons:{main:xd(C),mask:c?xd(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:S,transform:q(q({},Wn),a),symbol:s,title:p,maskId:d,titleId:g,extra:{attributes:_,styles:y,classes:b}})})}},u6={mixout:function(){return{icon:l6(c6)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Jm,n.nodeCallback=o6,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,a=r===void 0?Je:r,i=n.callback,s=i===void 0?function(){}:i;return Jm(a,s)},t.generateSvgReplacementMutation=function(n,r){var a=r.iconName,i=r.title,s=r.titleId,l=r.prefix,c=r.transform,u=r.symbol,d=r.mask,f=r.maskId,p=r.extra;return new Promise(function(h,g){Promise.all([Cd(a,l),d.iconName?Cd(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(v){var b=Nf(v,2),m=b[0],_=b[1];h([n,Ff({icons:{main:m,mask:_},prefix:l,iconName:a,transform:c,symbol:u,maskId:f,title:i,titleId:s,extra:p,watchable:!0})])}).catch(g)})},t.generateAbstractIcon=function(n){var r=n.children,a=n.attributes,i=n.main,s=n.transform,l=n.styles,c=Oc(l);c.length>0&&(a.style=c);var u;return Rf(s)&&(u=wr("generateAbstractTransformGrouping",{main:i,transform:s,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:a}}}},d6={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.classes,i=a===void 0?[]:a;return Dc({type:"layer"},function(){Va("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(l){Array.isArray(l)?l.map(function(c){s=s.concat(c.abstract)}):s=s.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(ee.cssPrefix,"-layers")].concat(po(i)).join(" ")},children:s}]})}}}},f6={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.title,i=a===void 0?null:a,s=r.classes,l=s===void 0?[]:s,c=r.attributes,u=c===void 0?{}:c,d=r.styles,f=d===void 0?{}:d;return Dc({type:"counter",content:n},function(){return Va("beforeDOMElementCreation",{content:n,params:r}),Uk({content:n.toString(),title:i,extra:{attributes:u,styles:f,classes:["".concat(ee.cssPrefix,"-layers-counter")].concat(po(l))}})})}}}},p6={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.transform,i=a===void 0?Wn:a,s=r.title,l=s===void 0?null:s,c=r.classes,u=c===void 0?[]:c,d=r.attributes,f=d===void 0?{}:d,p=r.styles,h=p===void 0?{}:p;return Dc({type:"text",content:n},function(){return Va("beforeDOMElementCreation",{content:n,params:r}),Um({content:n,transform:q(q({},Wn),i),title:l,extra:{attributes:f,styles:h,classes:["".concat(ee.cssPrefix,"-layers-text")].concat(po(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var a=r.title,i=r.transform,s=r.extra,l=null,c=null;if(Bv){var u=parseInt(getComputedStyle(n).fontSize,10),d=n.getBoundingClientRect();l=d.width/u,c=d.height/u}return ee.autoA11y&&!a&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,Um({content:n.innerHTML,width:l,height:c,transform:i,title:a,extra:s,watchable:!0})])}}},h6=new RegExp('"',"ug"),Zm=[1105920,1112319];function m6(e){var t=e.replace(h6,""),n=Ok(t,0),r=n>=Zm[0]&&n<=Zm[1],a=t.length===2?t[0]===t[1]:!1;return{value:bd(a?t[0]:t),isSecondary:r||a}}function Qm(e,t){var n="".concat(rk).concat(t.replace(":","-"));return new Promise(function(r,a){if(e.getAttribute(n)!==null)return r();var i=ji(e.children),s=i.filter(function(C){return C.getAttribute(yd)===t})[0],l=Qr.getComputedStyle(e,t),c=l.getPropertyValue("font-family").match(lk),u=l.getPropertyValue("font-weight"),d=l.getPropertyValue("content");if(s&&!c)return e.removeChild(s),r();if(c&&d!=="none"&&d!==""){var f=l.getPropertyValue("content"),p=~["Sharp"].indexOf(c[2])?lt:Ke,h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?Hs[p][c[2].toLowerCase()]:ck[p][u],g=m6(f),v=g.value,b=g.isSecondary,m=c[0].startsWith("FontAwesome"),_=Vf(h,v),k=_;if(m){var y=Lk(v);y.iconName&&y.prefix&&(_=y.iconName,h=y.prefix)}if(_&&!b&&(!s||s.getAttribute(Pf)!==h||s.getAttribute(Af)!==k)){e.setAttribute(n,k),s&&e.removeChild(s);var w=i6(),S=w.extra;S.attributes[yd]=t,Cd(_,h).then(function(C){var E=Ff(q(q({},w),{},{icons:{main:C,mask:$f()},prefix:h,iconName:k,extra:S,watchable:!0})),O=Je.createElement("svg");t==="::before"?e.insertBefore(O,e.firstChild):e.appendChild(O),O.outerHTML=E.map(function(L){return mo(L)}).join(`
789
+ `),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function g6(e){return Promise.all([Qm(e,"::before"),Qm(e,"::after")])}function v6(e){return e.parentNode!==document.head&&!~ik.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(yd)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function e1(e){if(Cr)return new Promise(function(t,n){var r=ji(e.querySelectorAll("*")).filter(v6).map(g6),a=zf.begin("searchPseudoElements");a2(),Promise.all(r).then(function(){a(),Td(),t()}).catch(function(){a(),Td(),n()})})}var _6={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=e1,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?Je:r;ee.searchPseudoElements&&e1(a)}}},t1=!1,y6={mixout:function(){return{dom:{unwatch:function(){a2(),t1=!0}}}},hooks:function(){return{bootstrap:function(){Xm(wd("mutationObserverCallbacks",{}))},noAuto:function(){t6()},watch:function(n){var r=n.observeMutationsRoot;t1?Td():Xm(wd("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},n1=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var i=a.toLowerCase().split("-"),s=i[0],l=i.slice(1).join("-");if(s&&l==="h")return r.flipX=!0,r;if(s&&l==="v")return r.flipY=!0,r;if(l=parseFloat(l),isNaN(l))return r;switch(s){case"grow":r.size=r.size+l;break;case"shrink":r.size=r.size-l;break;case"left":r.x=r.x-l;break;case"right":r.x=r.x+l;break;case"up":r.y=r.y-l;break;case"down":r.y=r.y+l;break;case"rotate":r.rotate=r.rotate+l;break}return r},n)},b6={mixout:function(){return{parse:{transform:function(n){return n1(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=n1(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,i=n.containerWidth,s=n.iconWidth,l={transform:"translate(".concat(i/2," 256)")},c="translate(".concat(a.x*32,", ").concat(a.y*32,") "),u="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),d="rotate(".concat(a.rotate," 0 0)"),f={transform:"".concat(c," ").concat(u," ").concat(d)},p={transform:"translate(".concat(s/2*-1," -256)")},h={outer:l,inner:f,path:p};return{tag:"g",attributes:q({},h.outer),children:[{tag:"g",attributes:q({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:q(q({},r.icon.attributes),h.path)}]}]}}}},Eu={x:0,y:0,width:"100%",height:"100%"};function r1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function k6(e){return e.tag==="g"?e.children:[e]}var w6={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),i=a?Nc(a.split(" ").map(function(s){return s.trim()})):$f();return i.prefix||(i.prefix=ea()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,i=n.main,s=n.mask,l=n.maskId,c=n.transform,u=i.width,d=i.icon,f=s.width,p=s.icon,h=bk({transform:c,containerWidth:f,iconWidth:u}),g={tag:"rect",attributes:q(q({},Eu),{},{fill:"white"})},v=d.children?{children:d.children.map(r1)}:{},b={tag:"g",attributes:q({},h.inner),children:[r1(q({tag:d.tag,attributes:q(q({},d.attributes),h.path)},v))]},m={tag:"g",attributes:q({},h.outer),children:[b]},_="mask-".concat(l||Ys()),k="clip-".concat(l||Ys()),y={tag:"mask",attributes:q(q({},Eu),{},{id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,m]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:k},children:k6(p)},y]};return r.push(w,{tag:"rect",attributes:q({fill:"currentColor","clip-path":"url(#".concat(k,")"),mask:"url(#".concat(_,")")},Eu)}),{children:r,attributes:a}}}},S6={provides:function(t){var n=!1;Qr.matchMedia&&(n=Qr.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:q(q({},a),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=q(q({},i),{},{attributeName:"opacity"}),l={tag:"circle",attributes:q(q({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||l.children.push({tag:"animate",attributes:q(q({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:q(q({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(l),r.push({tag:"path",attributes:q(q({},a),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:q(q({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:q(q({},a),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:q(q({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},x6={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return n.symbol=i,n}}}},C6=[Sk,u6,d6,f6,p6,_6,y6,b6,w6,S6,x6];Vk(C6,{mixoutsTo:un});un.noAuto;var s2=un.config,a1=un.library;un.dom;var Kl=un.parse;un.findIconDefinition;un.toHtml;var E6=un.icon;un.layer;var T6=un.text;un.counter;var O6={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3zM32 128H416V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z"]},M6=O6,N6={prefix:"fas",iconName:"sort-down",icon:[320,512,["sort-desc"],"f0dd","M182.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8H288c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-128 128z"]},D6={prefix:"fas",iconName:"right-from-bracket",icon:[512,512,["sign-out-alt"],"f2f5","M377.9 105.9L500.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L377.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1-128 0c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM160 96L96 96c-17.7 0-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-53 0-96-43-96-96L0 128C0 75 43 32 96 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32z"]},P6=D6,A6={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},I6=A6,L6={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},R6={prefix:"fas",iconName:"circle-chevron-down",icon:[512,512,["chevron-circle-down"],"f13a","M256 0a256 256 0 1 0 0 512A256 256 0 1 0 256 0zM135 241c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l87 87 87-87c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L273 345c-9.4 9.4-24.6 9.4-33.9 0L135 241z"]},B6=R6,V6={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"]},$6={prefix:"fas",iconName:"share-nodes",icon:[448,512,["share-alt"],"f1e0","M352 224c53 0 96-43 96-96s-43-96-96-96s-96 43-96 96c0 4 .2 8 .7 11.9l-94.1 47C145.4 170.2 121.9 160 96 160c-53 0-96 43-96 96s43 96 96 96c25.9 0 49.4-10.2 66.6-26.9l94.1 47c-.5 3.9-.7 7.8-.7 11.9c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-25.9 0-49.4 10.2-66.6 26.9l-94.1-47c.5-3.9 .7-7.8 .7-11.9s-.2-8-.7-11.9l94.1-47C302.6 213.8 326.1 224 352 224z"]},F6={prefix:"fas",iconName:"hand",icon:[512,512,[129306,9995,"hand-paper"],"f256","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V336c0 1.5 0 3.1 .1 4.6L67.6 283c-16-15.2-41.3-14.6-56.6 1.4s-14.6 41.3 1.4 56.6L124.8 448c43.1 41.1 100.4 64 160 64H304c97.2 0 176-78.8 176-176V128c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V32z"]},z6=F6,j6={prefix:"fas",iconName:"maximize",icon:[512,512,["expand-arrows-alt"],"f31e","M200 32H56C42.7 32 32 42.7 32 56V200c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l40-40 79 79-79 79L73 295c-6.9-6.9-17.2-8.9-26.2-5.2S32 302.3 32 312V456c0 13.3 10.7 24 24 24H200c9.7 0 18.5-5.8 22.2-14.8s1.7-19.3-5.2-26.2l-40-40 79-79 79 79-40 40c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H456c13.3 0 24-10.7 24-24V312c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2l-40 40-79-79 79-79 40 40c6.9 6.9 17.2 8.9 26.2 5.2s14.8-12.5 14.8-22.2V56c0-13.3-10.7-24-24-24H312c-9.7 0-18.5 5.8-22.2 14.8s-1.7 19.3 5.2 26.2l40 40-79 79-79-79 40-40c6.9-6.9 8.9-17.2 5.2-26.2S209.7 32 200 32z"]},H6={prefix:"fas",iconName:"arrow-right-to-bracket",icon:[512,512,["sign-in"],"f090","M352 96l64 0c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c53 0 96-43 96-96l0-256c0-53-43-96-96-96l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm-9.4 182.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L242.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l210.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128z"]},W6={prefix:"fas",iconName:"unlock",icon:[448,512,[128275],"f09c","M144 144c0-44.2 35.8-80 80-80c31.9 0 59.4 18.6 72.3 45.7c7.6 16 26.7 22.8 42.6 15.2s22.8-26.7 15.2-42.6C331 33.7 281.5 0 224 0C144.5 0 80 64.5 80 144v48H64c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V256c0-35.3-28.7-64-64-64H144V144z"]},U6={prefix:"fas",iconName:"gift",icon:[512,512,[127873],"f06b","M190.5 68.8L225.3 128H224 152c-22.1 0-40-17.9-40-40s17.9-40 40-40h2.2c14.9 0 28.8 7.9 36.3 20.8zM64 88c0 14.4 3.5 28 9.6 40H32c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32H480c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32H438.4c6.1-12 9.6-25.6 9.6-40c0-48.6-39.4-88-88-88h-2.2c-31.9 0-61.5 16.9-77.7 44.4L256 85.5l-24.1-41C215.7 16.9 186.1 0 154.2 0H152C103.4 0 64 39.4 64 88zm336 0c0 22.1-17.9 40-40 40H288h-1.3l34.8-59.2C329.1 55.9 342.9 48 357.8 48H360c22.1 0 40 17.9 40 40zM32 288V464c0 26.5 21.5 48 48 48H224V288H32zM288 512H432c26.5 0 48-21.5 48-48V288H288V512z"]},Y6={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6h96 32H424c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},q6={prefix:"fas",iconName:"newspaper",icon:[512,512,[128240],"f1ea","M96 96c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H80c-44.2 0-80-35.8-80-80V128c0-17.7 14.3-32 32-32s32 14.3 32 32V400c0 8.8 7.2 16 16 16s16-7.2 16-16V96zm64 24v80c0 13.3 10.7 24 24 24H296c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24H184c-13.3 0-24 10.7-24 24zm208-8c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H384c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H384c-8.8 0-16 7.2-16 16zM160 304c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16z"]},G6={prefix:"fas",iconName:"sort",icon:[320,512,["unsorted"],"f0dc","M137.4 41.4c12.5-12.5 32.8-12.5 45.3 0l128 128c9.2 9.2 11.9 22.9 6.9 34.9s-16.6 19.8-29.6 19.8H32c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9l128-128zm0 429.3l-128-128c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8H288c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-128 128c-12.5 12.5-32.8 12.5-45.3 0z"]},X6={prefix:"fas",iconName:"language",icon:[640,512,[],"f1ab","M0 128C0 92.7 28.7 64 64 64H256h48 16H576c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H320 304 256 64c-35.3 0-64-28.7-64-64V128zm320 0V384H576V128H320zM178.3 175.9c-3.2-7.2-10.4-11.9-18.3-11.9s-15.1 4.7-18.3 11.9l-64 144c-4.5 10.1 .1 21.9 10.2 26.4s21.9-.1 26.4-10.2l8.9-20.1h73.6l8.9 20.1c4.5 10.1 16.3 14.6 26.4 10.2s14.6-16.3 10.2-26.4l-64-144zM160 233.2L179 276H141l19-42.8zM448 164c11 0 20 9 20 20v4h44 16c11 0 20 9 20 20s-9 20-20 20h-2l-1.6 4.5c-8.9 24.4-22.4 46.6-39.6 65.4c.9 .6 1.8 1.1 2.7 1.6l18.9 11.3c9.5 5.7 12.5 18 6.9 27.4s-18 12.5-27.4 6.9l-18.9-11.3c-4.5-2.7-8.8-5.5-13.1-8.5c-10.6 7.5-21.9 14-34 19.4l-3.6 1.6c-10.1 4.5-21.9-.1-26.4-10.2s.1-21.9 10.2-26.4l3.6-1.6c6.4-2.9 12.6-6.1 18.5-9.8l-12.2-12.2c-7.8-7.8-7.8-20.5 0-28.3s20.5-7.8 28.3 0l14.6 14.6 .5 .5c12.4-13.1 22.5-28.3 29.8-45H448 376c-11 0-20-9-20-20s9-20 20-20h52v-4c0-11 9-20 20-20z"]},K6={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M3.9 54.9C10.5 40.9 24.5 32 40 32H472c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9V448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6V320.9L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"]},J6={prefix:"fas",iconName:"wrench",icon:[512,512,[128295],"f0ad","M352 320c88.4 0 160-71.6 160-160c0-15.3-2.2-30.1-6.2-44.2c-3.1-10.8-16.4-13.2-24.3-5.3l-76.8 76.8c-3 3-7.1 4.7-11.3 4.7H336c-8.8 0-16-7.2-16-16V118.6c0-4.2 1.7-8.3 4.7-11.3l76.8-76.8c7.9-7.9 5.4-21.2-5.3-24.3C382.1 2.2 367.3 0 352 0C263.6 0 192 71.6 192 160c0 19.1 3.4 37.5 9.5 54.5L19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L297.5 310.5c17 6.2 35.4 9.5 54.5 9.5zM80 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},Z6={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},Q6=Z6,e8={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},t8={prefix:"fas",iconName:"sort-up",icon:[320,512,["sort-asc"],"f0de","M182.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},n8={prefix:"fas",iconName:"table-cells",icon:[512,512,["th"],"f00a","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm88 64v64H64V96h88zm56 0h88v64H208V96zm240 0v64H360V96h88zM64 224h88v64H64V224zm232 0v64H208V224h88zm64 0h88v64H360V224zM152 352v64H64V352h88zm56 0h88v64H208V352zm240 0v64H360V352h88z"]},r8=n8,a8={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},i8=a8,s8={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},o8={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},l8=o8,c8={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},u8=c8,d8={prefix:"fas",iconName:"rotate-right",icon:[512,512,["redo-alt","rotate-forward"],"f2f9","M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z"]},f8={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},p8=f8,h8={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},m8={prefix:"fas",iconName:"ranking-star",icon:[640,512,[],"e561","M353.8 54.1L330.2 6.3c-3.9-8.3-16.1-8.6-20.4 0L286.2 54.1l-52.3 7.5c-9.3 1.4-13.3 12.9-6.4 19.8l38 37-9 52.1c-1.4 9.3 8.2 16.5 16.8 12.2l46.9-24.8 46.6 24.4c8.6 4.3 18.3-2.9 16.8-12.2l-9-52.1 38-36.6c6.8-6.8 2.9-18.3-6.4-19.8l-52.3-7.5zM256 256c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H384c17.7 0 32-14.3 32-32V288c0-17.7-14.3-32-32-32H256zM32 320c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H160c17.7 0 32-14.3 32-32V352c0-17.7-14.3-32-32-32H32zm416 96v64c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32V416c0-17.7-14.3-32-32-32H480c-17.7 0-32 14.3-32 32z"]},g8={prefix:"fas",iconName:"copy",icon:[512,512,[],"f0c5","M272 0H396.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H272c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128H192v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]},v8={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},_8={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},y8=_8,b8={prefix:"fas",iconName:"hammer",icon:[576,512,[128296],"f6e3","M413.5 237.5c-28.2 4.8-58.2-3.6-80-25.4l-38.1-38.1C280.4 159 272 138.8 272 117.6V105.5L192.3 62c-5.3-2.9-8.6-8.6-8.3-14.7s3.9-11.5 9.5-14l47.2-21C259.1 4.2 279 0 299.2 0h18.1c36.7 0 72 14 98.7 39.1l44.6 42c24.2 22.8 33.2 55.7 26.6 86L503 183l8-8c9.4-9.4 24.6-9.4 33.9 0l24 24c9.4 9.4 9.4 24.6 0 33.9l-88 88c-9.4 9.4-24.6 9.4-33.9 0l-24-24c-9.4-9.4-9.4-24.6 0-33.9l8-8-17.5-17.5zM27.4 377.1L260.9 182.6c3.5 4.9 7.5 9.6 11.8 14l38.1 38.1c6 6 12.4 11.2 19.2 15.7L134.9 484.6c-14.5 17.4-36 27.4-58.6 27.4C34.1 512 0 477.8 0 435.7c0-22.6 10.1-44.1 27.4-58.6z"]},k8={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},w8=k8,S8={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},x8={prefix:"fas",iconName:"magnifying-glass-plus",icon:[512,512,["search-plus"],"f00e","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM184 296c0 13.3 10.7 24 24 24s24-10.7 24-24V232h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H232V120c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H120c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"]},C8=x8,E8={prefix:"fas",iconName:"books",icon:[512,512,[128218],"f5db","M0 32C0 14.3 14.3 0 32 0H96c17.7 0 32 14.3 32 32V96H0V32zm0 96H128V384H0V128zM0 416H128v64c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32V416zM160 32c0-17.7 14.3-32 32-32h64c17.7 0 32 14.3 32 32V96H160V32zm0 96H288V384H160V128zm0 288H288v64c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V416zm203.6-19.9L320 232.6V142.8l100.4-26.9 66 247.4L363.6 396.1zM412.2 85L320 109.6V11l36.9-9.9c16.9-4.6 34.4 5.5 38.9 22.6L412.2 85zM371.8 427l122.8-32.9 16.3 61.1c4.5 17-5.5 34.5-22.5 39.1l-61.4 16.5c-16.9 4.6-34.4-5.5-38.9-22.6L371.8 427z"]},T8={prefix:"fas",iconName:"treasure-chest",icon:[576,512,[],"f723","M0 160v96H128V32C57.3 32 0 89.3 0 160zM0 432c0 26.5 21.5 48 48 48h80V288H0V432zM416 288H352v32c0 17.7-14.3 32-32 32H256c-17.7 0-32-14.3-32-32V288H160V480H416V288zM528 480c26.5 0 48-21.5 48-48V288H448V480h80zm48-320c0-70.7-57.3-128-128-128V256H576V160zM416 256V32H160V256h64V224c0-17.7 14.3-32 32-32h64c17.7 0 32 14.3 32 32v32h64zM304 240c0-8.8-7.2-16-16-16s-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16V240z"]},O8={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},M8={prefix:"fas",iconName:"chart-mixed",icon:[512,512,["analytics"],"f643","M500 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L319.4 151.5 211.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L12 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L192.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L500 89zM160 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM32 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zm288-64c-17.7 0-32 14.3-32 32V448c0 17.7 14.3 32 32 32s32-14.3 32-32V320c0-17.7-14.3-32-32-32zm96-32V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32z"]},N8={prefix:"fas",iconName:"chart-simple-horizontal",icon:[448,512,[],"e474","M400 320c26.5 0 48-21.5 48-48l0-32c0-26.5-21.5-48-48-48L48 192c-26.5 0-48 21.5-48 48l0 32c0 26.5 21.5 48 48 48l352 0zM208 480c26.5 0 48-21.5 48-48l0-32c0-26.5-21.5-48-48-48L48 352c-26.5 0-48 21.5-48 48l0 32c0 26.5 21.5 48 48 48l160 0zM384 112l0-32c0-26.5-21.5-48-48-48L48 32C21.5 32 0 53.5 0 80l0 32c0 26.5 21.5 48 48 48l288 0c26.5 0 48-21.5 48-48z"]},D8={prefix:"fas",iconName:"cards-blank",icon:[640,512,[],"e4df","M27.8 118.8C1.2 134.2-7.9 168.2 7.5 194.9l167 289.3c15.4 26.6 49.4 35.8 76.1 20.4L443.4 393.2c26.6-15.4 35.8-49.4 20.4-76.1L296.8 27.8C281.4 1.2 247.3-7.9 220.7 7.5L27.8 118.8zM459.4 420.9L324.1 499c9.7 8.1 22.2 13 35.9 13H584c30.9 0 56-25.1 56-56V120c0-30.9-25.1-56-56-56H360c-1.8 0-3.5 .1-5.3 .2L491.5 301.1c24.2 41.9 9.8 95.6-32.1 119.8z"]},P8={prefix:"fab",iconName:"discord",icon:[640,512,[],"f392","M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"]},A8={prefix:"fab",iconName:"reddit-alien",icon:[512,512,[],"f281","M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"]},I8={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"]},L8={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]};function R8(){a1.add(B6,h8,C8,K6,y8,v8,s8,i8,e8,S8,Q6,G6,t8,N6,V6,W6,L6,p8,X6,r8,j6,g8,z6,J6,I6,M6,u8,L8,Y6,I8,A8,P8,P6,w8,l8,$6,U6,D8,T8,q6,M8,E8,m8,b8,N8,O8,H6,d8),a1.add({prefix:"fak",iconName:"chart-decks",icon:[640,512,[],"","M564 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L383.4 151.5 275.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L76 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L256.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L564 89zM224 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM96 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zM352 464c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16zm0-64c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16zm0-64c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16z"]},{prefix:"fak",iconName:"chart-cards",icon:[640,512,[],"","M564 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L383.4 151.5 275.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L76 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L256.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L564 89zM224 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM96 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zm480-96c0-16-16-32-32-32H448c-16 0-32.6 16-32.6 32s0 176 .6 192s16 32 32 32h96c16 0 32-16 32-32V256z"]},{prefix:"fak",iconName:"chart-decks-2",icon:[603,512,[],"","M467.1 210.8c4.3 0-60.2 0 15.1 0C467.8 108.4 377.7 0 271.4 0c-5.1 0-10.1 .2-15.1 .6V225.9h75.3c0-15.1 45.2-15.1 135.5-15.1zM301.5 346.4c0-27.1 0-45.2 0-75.3H211.1V30.6C93.4 38.4 .3 136.3 .3 256c0 124.8 101.2 225.9 225.9 225.9c41.2 0 42.1 4.2 75.3-15.1c0-45.2 0-80.5 0-120.5zm45.2 105.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1zm0-90.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1zm0-90.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1z"]},{prefix:"fak",iconName:"chart-cards-2",icon:[603,512,[],"","M376.8 195.8c28.3-14.2 60.2 0 75.3 30.1h60.2c0-24.9-20.2-45.2-45.2-45.2H135.9c-24.9 0-45.2 20.2-45.2 45.2V256c0 24.9 20.2 45.2 45.2 45.2H256.3c-15.1-30.1 15.1-45.2 15.1-45.2s75.3-45.2 105.4-60.2zm-90.4 256c12.8 0 45.2 0 45.2 0L271.4 331.3H135.9c-24.9 0-45.2 20.2-45.2 45.2v30.1c0 24.9 20.2 45.2 45.2 45.2H286.4zM452.1 105.4V75.3c0-24.9-20.2-45.2-45.2-45.2H135.9c-24.9 0-45.2 20.2-45.2 45.2v30.1c0 24.9 20.2 45.2 45.2 45.2H406.9c24.9 0 45.2-20.2 45.2-45.2zM285.8 273.7c-13.8 8.2-18.5 26.2-10.5 40.3l86.4 153.2c8 14.1 25.6 19 39.4 10.8l99.8-59c13.8-8.2 18.5-26.2 10.6-40.3L425 225.5c-8-14.1-25.6-18.9-39.4-10.7l-99.9 58.9zM509.2 433.7l-70 41.3c5 4.3 11.5 6.9 18.6 6.9h116c16 0 29-13.3 29-29.6V274.4c0-16.4-13-29.6-29-29.6h-116c-.9 0-1.8 .1-2.7 .1l70.8 125.4c12.5 22.2 5.1 50.6-16.6 63.4z"]})}const Dt=kf.defineStore("cardJsonObject",{state:()=>({cardJsonObject:{}}),actions:{update(e){this.cardJsonObject=e}}}),Ce=kf.defineStore("dataJson",{state:()=>({dataJson:{keywords:[],patches:[],ranks:[],rarities:[],regions:[],runeterraChampions:[],seasons:[],servers:[],sets:[],spellSpeeds:[],types:[],vocabTerms:[],formats:[]}}),actions:{update(e){this.dataJson=e}}}),Hf=kf.defineStore("cardJson",{state:()=>({cardJson:[]}),actions:{update(e){this.cardJson=e}}});function i1(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Wf(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:i1(t[n])&&i1(e[n])&&Object.keys(t[n]).length>0&&Wf(e[n],t[n])})}const o2={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function qa(){const e=typeof document<"u"?document:{};return Wf(e,o2),e}const B8={document:o2,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function dn(){const e=typeof window<"u"?window:{};return Wf(e,B8),e}function V8(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Od(e,t=0){return setTimeout(e,t)}function Jl(){return Date.now()}function $8(e){const t=dn();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function F8(e,t="x"){const n=dn();let r,a,i;const s=$8(e);return n.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(l=>l.replace(",",".")).join(", ")),i=new n.WebKitCSSMatrix(a==="none"?"":a)):(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?a=i.m41:r.length===16?a=parseFloat(r[12]):a=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?a=i.m42:r.length===16?a=parseFloat(r[13]):a=parseFloat(r[5])),a||0}function al(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function z8(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Qt(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const a=e[r];if(a!=null&&!z8(a)){const i=Object.keys(Object(a)).filter(s=>n.indexOf(s)<0);for(let s=0,l=i.length;s<l;s+=1){const c=i[s],u=Object.getOwnPropertyDescriptor(a,c);u!==void 0&&u.enumerable&&(al(t[c])&&al(a[c])?a[c].__swiper__?t[c]=a[c]:Qt(t[c],a[c]):!al(t[c])&&al(a[c])?(t[c]={},a[c].__swiper__?t[c]=a[c]:Qt(t[c],a[c])):t[c]=a[c])}}}return t}function il(e,t,n){e.style.setProperty(t,n)}function l2({swiper:e,targetPosition:t,side:n}){const r=dn(),a=-e.translate;let i=null,s;const l=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const c=t>a?"next":"prev",u=(f,p)=>c==="next"&&f>=p||c==="prev"&&f<=p,d=()=>{s=new Date().getTime(),i===null&&(i=s);const f=Math.max(Math.min((s-i)/l,1),0),p=.5-Math.cos(f*Math.PI)/2;let h=a+p*(t-a);if(u(h,t)&&(h=t),e.wrapperEl.scrollTo({[n]:h}),u(h,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:h})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(d)};d()}function Un(e,t=""){return[...e.children].filter(n=>n.matches(t))}function c2(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function j8(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function H8(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Fr(e,t){return dn().getComputedStyle(e,null).getPropertyValue(t)}function s1(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function W8(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function o1(e,t,n){const r=dn();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let Tu;function U8(){const e=dn(),t=qa();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function u2(){return Tu||(Tu=U8()),Tu}let Ou;function Y8({userAgent:e}={}){const t=u2(),n=dn(),r=n.navigator.platform,a=e||n.navigator.userAgent,i={ios:!1,android:!1},s=n.screen.width,l=n.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/);let u=a.match(/(iPad).*OS\s([\d_]+)/);const d=a.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=r==="Win32";let h=r==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&h&&t.touch&&g.indexOf(`${s}x${l}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),h=!1),c&&!p&&(i.os="android",i.android=!0),(u||f||d)&&(i.os="ios",i.ios=!0),i}function q8(e={}){return Ou||(Ou=Y8(e)),Ou}let Mu;function G8(){const e=dn();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[a,i]=r.split("Version/")[1].split(" ")[0].split(".").map(s=>Number(s));t=a<16||a===16&&i<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function X8(){return Mu||(Mu=G8()),Mu}function K8({swiper:e,on:t,emit:n}){const r=dn();let a=null,i=null;const s=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(d=>{i=r.requestAnimationFrame(()=>{const{width:f,height:p}=e;let h=f,g=p;d.forEach(({contentBoxSize:v,contentRect:b,target:m})=>{m&&m!==e.el||(h=b?b.width:(v[0]||v).inlineSize,g=b?b.height:(v[0]||v).blockSize)}),(h!==f||g!==p)&&s()})}),a.observe(e.el))},c=()=>{i&&r.cancelAnimationFrame(i),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},u=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){l();return}r.addEventListener("resize",s),r.addEventListener("orientationchange",u)}),t("destroy",()=>{c(),r.removeEventListener("resize",s),r.removeEventListener("orientationchange",u)})}function J8({swiper:e,extendParams:t,on:n,emit:r}){const a=[],i=dn(),s=(u,d={})=>{const f=i.MutationObserver||i.WebkitMutationObserver,p=new f(h=>{if(e.__preventObserver__)return;if(h.length===1){r("observerUpdate",h[0]);return}const g=function(){r("observerUpdate",h[0])};i.requestAnimationFrame?i.requestAnimationFrame(g):i.setTimeout(g,0)});p.observe(u,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:typeof d.childList>"u"?!0:d.childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),a.push(p)},l=()=>{if(e.params.observer){if(e.params.observeParents){const u=W8(e.el);for(let d=0;d<u.length;d+=1)s(u[d])}s(e.el,{childList:e.params.observeSlideChildren}),s(e.wrapperEl,{attributes:!1})}},c=()=>{a.forEach(u=>{u.disconnect()}),a.splice(0,a.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",l),n("destroy",c)}const Z8={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const a=n?"unshift":"push";return e.split(" ").forEach(i=>{r.eventsListeners[i]||(r.eventsListeners[i]=[]),r.eventsListeners[i][a](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function a(...i){r.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(r,i)}return a.__emitterProxy=t,r.on(e,a,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&n.eventsListeners[r].splice(i,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,a;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),a=t):(n=e[0].events,r=e[0].data,a=e[0].context||t),r.unshift(a),(Array.isArray(n)?n:n.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(l=>{l.apply(a,[s,...r])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(l=>{l.apply(a,r)})}),t}};function Q8(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Fr(r,"padding-left")||0,10)-parseInt(Fr(r,"padding-right")||0,10),n=n-parseInt(Fr(r,"padding-top")||0,10)-parseInt(Fr(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function ew(){const e=this;function t(D){return e.isHorizontal()?D:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[D]}function n(D,N){return parseFloat(D.getPropertyValue(t(N))||0)}const r=e.params,{wrapperEl:a,slidesEl:i,size:s,rtlTranslate:l,wrongRTL:c}=e,u=e.virtual&&r.virtual.enabled,d=u?e.virtual.slides.length:e.slides.length,f=Un(i,`.${e.params.slideClass}, swiper-slide`),p=u?e.virtual.slides.length:f.length;let h=[];const g=[],v=[];let b=r.slidesOffsetBefore;typeof b=="function"&&(b=r.slidesOffsetBefore.call(e));let m=r.slidesOffsetAfter;typeof m=="function"&&(m=r.slidesOffsetAfter.call(e));const _=e.snapGrid.length,k=e.slidesGrid.length;let y=r.spaceBetween,w=-b,S=0,C=0;if(typeof s>"u")return;typeof y=="string"&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*s),e.virtualSize=-y,f.forEach(D=>{l?D.style.marginLeft="":D.style.marginRight="",D.style.marginBottom="",D.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(il(a,"--swiper-centered-offset-before",""),il(a,"--swiper-centered-offset-after",""));const E=r.grid&&r.grid.rows>1&&e.grid;E&&e.grid.initSlides(p);let O;const L=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(D=>typeof r.breakpoints[D].slidesPerView<"u").length>0;for(let D=0;D<p;D+=1){O=0;let N;if(f[D]&&(N=f[D]),E&&e.grid.updateSlide(D,N,p,t),!(f[D]&&Fr(N,"display")==="none")){if(r.slidesPerView==="auto"){L&&(f[D].style[t("width")]="");const R=getComputedStyle(N),ne=N.style.transform,K=N.style.webkitTransform;if(ne&&(N.style.transform="none"),K&&(N.style.webkitTransform="none"),r.roundLengths)O=e.isHorizontal()?o1(N,"width",!0):o1(N,"height",!0);else{const Z=n(R,"width"),X=n(R,"padding-left"),ce=n(R,"padding-right"),Y=n(R,"margin-left"),se=n(R,"margin-right"),de=R.getPropertyValue("box-sizing");if(de&&de==="border-box")O=Z+Y+se;else{const{clientWidth:Te,offsetWidth:Fe}=N;O=Z+X+ce+Y+se+(Fe-Te)}}ne&&(N.style.transform=ne),K&&(N.style.webkitTransform=K),r.roundLengths&&(O=Math.floor(O))}else O=(s-(r.slidesPerView-1)*y)/r.slidesPerView,r.roundLengths&&(O=Math.floor(O)),f[D]&&(f[D].style[t("width")]=`${O}px`);f[D]&&(f[D].swiperSlideSize=O),v.push(O),r.centeredSlides?(w=w+O/2+S/2+y,S===0&&D!==0&&(w=w-s/2-y),D===0&&(w=w-s/2-y),Math.abs(w)<1/1e3&&(w=0),r.roundLengths&&(w=Math.floor(w)),C%r.slidesPerGroup===0&&h.push(w),g.push(w)):(r.roundLengths&&(w=Math.floor(w)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup===0&&h.push(w),g.push(w),w=w+O+y),e.virtualSize+=O+y,S=O,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+m,l&&c&&(r.effect==="slide"||r.effect==="coverflow")&&(a.style.width=`${e.virtualSize+r.spaceBetween}px`),r.setWrapperSize&&(a.style[t("width")]=`${e.virtualSize+r.spaceBetween}px`),E&&e.grid.updateWrapperSize(O,h,t),!r.centeredSlides){const D=[];for(let N=0;N<h.length;N+=1){let R=h[N];r.roundLengths&&(R=Math.floor(R)),h[N]<=e.virtualSize-s&&D.push(R)}h=D,Math.floor(e.virtualSize-s)-Math.floor(h[h.length-1])>1&&h.push(e.virtualSize-s)}if(u&&r.loop){const D=v[0]+y;if(r.slidesPerGroup>1){const N=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),R=D*r.slidesPerGroup;for(let ne=0;ne<N;ne+=1)h.push(h[h.length-1]+R)}for(let N=0;N<e.virtual.slidesBefore+e.virtual.slidesAfter;N+=1)r.slidesPerGroup===1&&h.push(h[h.length-1]+D),g.push(g[g.length-1]+D),e.virtualSize+=D}if(h.length===0&&(h=[0]),r.spaceBetween!==0){const D=e.isHorizontal()&&l?"marginLeft":t("marginRight");f.filter((N,R)=>!r.cssMode||r.loop?!0:R!==f.length-1).forEach(N=>{N.style[D]=`${y}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let D=0;v.forEach(R=>{D+=R+(r.spaceBetween?r.spaceBetween:0)}),D-=r.spaceBetween;const N=D-s;h=h.map(R=>R<0?-b:R>N?N+m:R)}if(r.centerInsufficientSlides){let D=0;if(v.forEach(N=>{D+=N+(r.spaceBetween?r.spaceBetween:0)}),D-=r.spaceBetween,D<s){const N=(s-D)/2;h.forEach((R,ne)=>{h[ne]=R-N}),g.forEach((R,ne)=>{g[ne]=R+N})}}if(Object.assign(e,{slides:f,snapGrid:h,slidesGrid:g,slidesSizesGrid:v}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){il(a,"--swiper-centered-offset-before",`${-h[0]}px`),il(a,"--swiper-centered-offset-after",`${e.size/2-v[v.length-1]/2}px`);const D=-e.snapGrid[0],N=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(R=>R+D),e.slidesGrid=e.slidesGrid.map(R=>R+N)}if(p!==d&&e.emit("slidesLengthChange"),h.length!==_&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),g.length!==k&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!u&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const D=`${r.containerModifierClass}backface-hidden`,N=e.el.classList.contains(D);p<=r.maxBackfaceHiddenSlides?N||e.el.classList.add(D):N&&e.el.classList.remove(D)}}function tw(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let a=0,i;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const s=l=>r?t.slides[t.getSlideIndexByData(l)]:t.slides[l];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(l=>{n.push(l)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const l=t.activeIndex+i;if(l>t.slides.length&&!r)break;n.push(s(l))}else n.push(s(t.activeIndex));for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const l=n[i].offsetHeight;a=l>a?l:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)}function nw(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function rw(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:a,snapGrid:i}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let s=-e;a&&(s=e),r.forEach(l=>{l.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let l=0;l<r.length;l+=1){const c=r[l];let u=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);const d=(s+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+n.spaceBetween),f=(s-i[0]+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+n.spaceBetween),p=-(s-u),h=p+t.slidesSizesGrid[l];(p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l),r[l].classList.add(n.slideVisibleClass)),c.progress=a?-d:d,c.originalProgress=a?-f:f}}function aw(e){const t=this;if(typeof e>"u"){const d=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*d||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:i,isEnd:s,progressLoop:l}=t;const c=i,u=s;if(r===0)a=0,i=!0,s=!0;else{a=(e-t.minTranslate())/r;const d=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;i=d||a<=0,s=f||a>=1,d&&(a=0),f&&(a=1)}if(n.loop){const d=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),p=t.slidesGrid[d],h=t.slidesGrid[f],g=t.slidesGrid[t.slidesGrid.length-1],v=Math.abs(e);v>=p?l=(v-p)/g:l=(v+g-h)/g,l>1&&(l-=1)}Object.assign(t,{progress:a,progressLoop:l,isBeginning:i,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),i&&!c&&t.emit("reachBeginning toEdge"),s&&!u&&t.emit("reachEnd toEdge"),(c&&!i||u&&!s)&&t.emit("fromEdge"),t.emit("progress",a)}function iw(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:a}=e,i=e.virtual&&n.virtual.enabled,s=c=>Un(r,`.${n.slideClass}${c}, swiper-slide${c}`)[0];t.forEach(c=>{c.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let l;if(i)if(n.loop){let c=a-e.virtual.slidesBefore;c<0&&(c=e.virtual.slides.length+c),c>=e.virtual.slides.length&&(c-=e.virtual.slides.length),l=s(`[data-swiper-slide-index="${c}"]`)}else l=s(`[data-swiper-slide-index="${a}"]`);else l=t[a];if(l){l.classList.add(n.slideActiveClass);let c=H8(l,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!c&&(c=t[0]),c&&c.classList.add(n.slideNextClass);let u=j8(l,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!u===0&&(u=t[t.length-1]),u&&u.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const Pl=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const a=r.querySelector(`.${e.params.lazyPreloaderClass}`);a&&a.remove()}},l1=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Md=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),a=e.activeIndex,i=a+r-1;if(e.params.rewind)for(let s=a-t;s<=i+t;s+=1){const l=(s%n+n)%n;l!==a&&l>i&&l1(e,l)}else for(let s=Math.max(i-t,0);s<=Math.min(i+t,n-1);s+=1)s!==a&&s>i&&l1(e,s)};function sw(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let a;for(let i=0;i<t.length;i+=1)typeof t[i+1]<"u"?r>=t[i]&&r<t[i+1]-(t[i+1]-t[i])/2?a=i:r>=t[i]&&r<t[i+1]&&(a=i+1):r>=t[i]&&(a=i);return n.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function ow(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:a,activeIndex:i,realIndex:s,snapIndex:l}=t;let c=e,u;const d=p=>{let h=p-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof c>"u"&&(c=sw(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const p=Math.min(a.slidesPerGroupSkip,c);u=p+Math.floor((c-p)/a.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),c===i){u!==l&&(t.snapIndex=u,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=d(c));return}let f;t.virtual&&a.virtual.enabled&&a.loop?f=d(c):t.slides[c]?f=parseInt(t.slides[c].getAttribute("data-swiper-slide-index")||c,10):f=c,Object.assign(t,{previousSnapIndex:l,snapIndex:u,previousRealIndex:s,realIndex:f,previousIndex:i,activeIndex:c}),t.initialized&&Md(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),s!==f&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function lw(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let a=!1,i;if(r){for(let s=0;s<t.slides.length;s+=1)if(t.slides[s]===r){a=!0,i=s;break}}if(r&&a)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=i;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const cw={updateSize:Q8,updateSlides:ew,updateAutoHeight:tw,updateSlidesOffset:nw,updateSlidesProgress:rw,updateProgress:aw,updateSlidesClasses:iw,updateActiveIndex:ow,updateClickedSlide:lw};function uw(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:a,wrapperEl:i}=t;if(n.virtualTranslate)return r?-a:a;if(n.cssMode)return a;let s=F8(i,e);return s+=t.cssOverflowAdjustment(),r&&(s=-s),s||0}function dw(e,t){const n=this,{rtlTranslate:r,params:a,wrapperEl:i,progress:s}=n;let l=0,c=0;const u=0;n.isHorizontal()?l=r?-e:e:c=e,a.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,a.cssMode?i[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:a.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),i.style.transform=`translate3d(${l}px, ${c}px, ${u}px)`);let d;const f=n.maxTranslate()-n.minTranslate();f===0?d=0:d=(e-n.minTranslate())/f,d!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function fw(){return-this.snapGrid[0]}function pw(){return-this.snapGrid[this.snapGrid.length-1]}function hw(e=0,t=this.params.speed,n=!0,r=!0,a){const i=this,{params:s,wrapperEl:l}=i;if(i.animating&&s.preventInteractionOnTransition)return!1;const c=i.minTranslate(),u=i.maxTranslate();let d;if(r&&e>c?d=c:r&&e<u?d=u:d=e,i.updateProgress(d),s.cssMode){const f=i.isHorizontal();if(t===0)l[f?"scrollLeft":"scrollTop"]=-d;else{if(!i.support.smoothScroll)return l2({swiper:i,targetPosition:-d,side:f?"left":"top"}),!0;l.scrollTo({[f?"left":"top"]:-d,behavior:"smooth"})}return!0}return t===0?(i.setTransition(0),i.setTranslate(d),n&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionEnd"))):(i.setTransition(t),i.setTranslate(d),n&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(p){!i||i.destroyed||p.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,n&&i.emit("transitionEnd"))}),i.wrapperEl.addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd))),!0}const mw={getTranslate:uw,setTranslate:dw,minTranslate:fw,maxTranslate:pw,translateTo:hw};function gw(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function d2({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:a,previousIndex:i}=e;let s=n;if(s||(a>i?s="next":a<i?s="prev":s="reset"),e.emit(`transition${r}`),t&&a!==i){if(s==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),s==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function vw(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),d2({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function _w(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),d2({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const yw={setTransition:gw,transitionStart:vw,transitionEnd:_w};function bw(e=0,t=this.params.speed,n=!0,r,a){typeof e=="string"&&(e=parseInt(e,10));const i=this;let s=e;s<0&&(s=0);const{params:l,snapGrid:c,slidesGrid:u,previousIndex:d,activeIndex:f,rtlTranslate:p,wrapperEl:h,enabled:g}=i;if(i.animating&&l.preventInteractionOnTransition||!g&&!r&&!a)return!1;const v=Math.min(i.params.slidesPerGroupSkip,s);let b=v+Math.floor((s-v)/i.params.slidesPerGroup);b>=c.length&&(b=c.length-1);const m=-c[b];if(l.normalizeSlideIndex)for(let k=0;k<u.length;k+=1){const y=-Math.floor(m*100),w=Math.floor(u[k]*100),S=Math.floor(u[k+1]*100);typeof u[k+1]<"u"?y>=w&&y<S-(S-w)/2?s=k:y>=w&&y<S&&(s=k+1):y>=w&&(s=k)}if(i.initialized&&s!==f&&(!i.allowSlideNext&&m<i.translate&&m<i.minTranslate()||!i.allowSlidePrev&&m>i.translate&&m>i.maxTranslate()&&(f||0)!==s))return!1;s!==(d||0)&&n&&i.emit("beforeSlideChangeStart"),i.updateProgress(m);let _;if(s>f?_="next":s<f?_="prev":_="reset",p&&-m===i.translate||!p&&m===i.translate)return i.updateActiveIndex(s),l.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),l.effect!=="slide"&&i.setTranslate(m),_!=="reset"&&(i.transitionStart(n,_),i.transitionEnd(n,_)),!1;if(l.cssMode){const k=i.isHorizontal(),y=p?m:-m;if(t===0){const w=i.virtual&&i.params.virtual.enabled;w&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),w&&!i._cssModeVirtualInitialSet&&i.params.initialSlide>0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[k?"scrollLeft":"scrollTop"]=y})):h[k?"scrollLeft":"scrollTop"]=y,w&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1})}else{if(!i.support.smoothScroll)return l2({swiper:i,targetPosition:y,side:k?"left":"top"}),!0;h.scrollTo({[k?"left":"top"]:y,behavior:"smooth"})}return!0}return i.setTransition(t),i.setTranslate(m),i.updateActiveIndex(s),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,_),t===0?i.transitionEnd(n,_):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(y){!i||i.destroyed||y.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,_))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function kw(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const a=this;let i=e;return a.params.loop&&(a.virtual&&a.params.virtual.enabled?i=i+a.virtual.slidesBefore:i=a.getSlideIndexByData(i)),a.slideTo(i,t,n,r)}function ww(e=this.params.speed,t=!0,n){const r=this,{enabled:a,params:i,animating:s}=r;if(!a)return r;let l=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(l=Math.max(r.slidesPerViewDynamic("current",!0),1));const c=r.activeIndex<i.slidesPerGroupSkip?1:l,u=r.virtual&&i.virtual.enabled;if(i.loop){if(s&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return i.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+c,e,t,n)}function Sw(e=this.params.speed,t=!0,n){const r=this,{params:a,snapGrid:i,slidesGrid:s,rtlTranslate:l,enabled:c,animating:u}=r;if(!c)return r;const d=r.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=l?r.translate:-r.translate;function p(m){return m<0?-Math.floor(Math.abs(m)):Math.floor(m)}const h=p(f),g=i.map(m=>p(m));let v=i[g.indexOf(h)-1];if(typeof v>"u"&&a.cssMode){let m;i.forEach((_,k)=>{h>=_&&(m=k)}),typeof m<"u"&&(v=i[m>0?m-1:m])}let b=0;if(typeof v<"u"&&(b=s.indexOf(v),b<0&&(b=r.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(b=b-r.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),a.rewind&&r.isBeginning){const m=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(m,e,t,n)}return r.slideTo(b,e,t,n)}function xw(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function Cw(e=this.params.speed,t=!0,n,r=.5){const a=this;let i=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,i),l=s+Math.floor((i-s)/a.params.slidesPerGroup),c=a.rtlTranslate?a.translate:-a.translate;if(c>=a.snapGrid[l]){const u=a.snapGrid[l],d=a.snapGrid[l+1];c-u>(d-u)*r&&(i+=a.params.slidesPerGroup)}else{const u=a.snapGrid[l-1],d=a.snapGrid[l];c-u<=(d-u)*r&&(i-=a.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,a.slidesGrid.length-1),a.slideTo(i,e,t,n)}function Ew(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let a=e.clickedIndex,i;const s=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-r/2||a>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),a=e.getSlideIndex(Un(n,`${s}[data-swiper-slide-index="${i}"]`)[0]),Od(()=>{e.slideTo(a)})):e.slideTo(a):a>e.slides.length-r?(e.loopFix(),a=e.getSlideIndex(Un(n,`${s}[data-swiper-slide-index="${i}"]`)[0]),Od(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}const Tw={slideTo:bw,slideToLoop:kw,slideNext:ww,slidePrev:Sw,slideReset:xw,slideToClosest:Cw,slideToClickedSlide:Ew};function Ow(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;Un(r,`.${n.slideClass}, swiper-slide`).forEach((i,s)=>{i.setAttribute("data-swiper-slide-index",s)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function Mw({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:a,byController:i,byMousewheel:s}={}){const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:d,slidesEl:f,params:p}=l;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled){t&&(!p.centeredSlides&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):p.centeredSlides&&l.snapIndex<p.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0)),l.allowSlidePrev=u,l.allowSlideNext=d,l.emit("loopFix");return}const h=p.slidesPerView==="auto"?l.slidesPerViewDynamic():Math.ceil(parseFloat(p.slidesPerView,10));let g=p.loopedSlides||h;g%p.slidesPerGroup!==0&&(g+=p.slidesPerGroup-g%p.slidesPerGroup),l.loopedSlides=g;const v=[],b=[];let m=l.activeIndex;typeof a>"u"?a=l.getSlideIndex(l.slides.filter(S=>S.classList.contains(p.slideActiveClass))[0]):m=a;const _=n==="next"||!n,k=n==="prev"||!n;let y=0,w=0;if(a<g){y=Math.max(g-a,p.slidesPerGroup);for(let S=0;S<g-a;S+=1){const C=S-Math.floor(S/c.length)*c.length;v.push(c.length-C-1)}}else if(a>l.slides.length-g*2){w=Math.max(a-(l.slides.length-g*2),p.slidesPerGroup);for(let S=0;S<w;S+=1){const C=S-Math.floor(S/c.length)*c.length;b.push(C)}}if(k&&v.forEach(S=>{f.prepend(l.slides[S])}),_&&b.forEach(S=>{f.append(l.slides[S])}),l.recalcSlides(),p.slidesPerView==="auto"&&l.updateSlides(),p.watchSlidesProgress&&l.updateSlidesOffset(),t){if(v.length>0&&k)if(typeof e>"u"){const S=l.slidesGrid[m],E=l.slidesGrid[m+y]-S;s?l.setTranslate(l.translate-E):(l.slideTo(m+y,0,!1,!0),r&&(l.touches[l.isHorizontal()?"startX":"startY"]+=E))}else r&&l.slideToLoop(e,0,!1,!0);else if(b.length>0&&_)if(typeof e>"u"){const S=l.slidesGrid[m],E=l.slidesGrid[m-w]-S;s?l.setTranslate(l.translate-E):(l.slideTo(m-w,0,!1,!0),r&&(l.touches[l.isHorizontal()?"startX":"startY"]+=E))}else l.slideToLoop(e,0,!1,!0)}if(l.allowSlidePrev=u,l.allowSlideNext=d,l.controller&&l.controller.control&&!i){const S={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:a,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(C=>{!C.destroyed&&C.params.loop&&C.loopFix(S)}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix(S)}l.emit("loopFix")}function Nw(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(a=>{const i=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;r[i]=a}),e.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),r.forEach(a=>{n.append(a)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const Dw={loopCreate:Ow,loopFix:Mw,loopDestroy:Nw};function Pw(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function Aw(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}const Iw={setGrabCursor:Pw,unsetGrabCursor:Aw};function Lw(e,t=this){function n(r){if(!r||r===qa()||r===dn())return null;r.assignedSlot&&(r=r.assignedSlot);const a=r.closest(e);return!a&&!r.getRootNode?null:a||n(r.getRootNode().host)}return n(t)}function Rw(e){const t=this,n=qa(),r=dn(),a=t.touchEventsData;a.evCache.push(e);const{params:i,touches:s,enabled:l}=t;if(!l||!i.simulateTouch&&e.pointerType==="mouse"||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let c=e;c.originalEvent&&(c=c.originalEvent);let u=c.target;if(i.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(u)||"which"in c&&c.which===3||"button"in c&&c.button>0||a.isTouched&&a.isMoved)return;const d=!!i.noSwipingClass&&i.noSwipingClass!=="",f=e.composedPath?e.composedPath():e.path;d&&c.target&&c.target.shadowRoot&&f&&(u=f[0]);const p=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,h=!!(c.target&&c.target.shadowRoot);if(i.noSwiping&&(h?Lw(p,u):u.closest(p))){t.allowClick=!0;return}if(i.swipeHandler&&!u.closest(i.swipeHandler))return;s.currentX=c.pageX,s.currentY=c.pageY;const g=s.currentX,v=s.currentY,b=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,m=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(b&&(g<=m||g>=r.innerWidth-m))if(b==="prevent")e.preventDefault();else return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=g,s.startY=v,a.touchStartTime=Jl(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(a.allowThresholdMove=!1);let _=!0;u.matches(a.focusableElements)&&(_=!1,u.nodeName==="SELECT"&&(a.isTouched=!1)),n.activeElement&&n.activeElement.matches(a.focusableElements)&&n.activeElement!==u&&n.activeElement.blur();const k=_&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||k)&&!u.isContentEditable&&c.preventDefault(),t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",c)}function Bw(e){const t=qa(),n=this,r=n.touchEventsData,{params:a,touches:i,rtlTranslate:s,enabled:l}=n;if(!l||!a.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",c);return}const u=r.evCache.findIndex(S=>S.pointerId===c.pointerId);u>=0&&(r.evCache[u]=c);const d=r.evCache.length>1?r.evCache[0]:c,f=d.pageX,p=d.pageY;if(c.preventedByNestedSwiper){i.startX=f,i.startY=p;return}if(!n.allowTouchMove){c.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(i,{startX:f,startY:p,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:f,currentY:p}),r.touchStartTime=Jl());return}if(a.touchReleaseOnEdges&&!a.loop){if(n.isVertical()){if(p<i.startY&&n.translate<=n.maxTranslate()||p>i.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(f<i.startX&&n.translate<=n.maxTranslate()||f>i.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;i.currentX=f,i.currentY=p;const h=i.currentX-i.startX,g=i.currentY-i.startY;if(n.params.threshold&&Math.sqrt(h**2+g**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let S;n.isHorizontal()&&i.currentY===i.startY||n.isVertical()&&i.currentX===i.startX?r.isScrolling=!1:h*h+g*g>=25&&(S=Math.atan2(Math.abs(g),Math.abs(h))*180/Math.PI,r.isScrolling=n.isHorizontal()?S>a.touchAngle:90-S>a.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",c),typeof r.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!a.cssMode&&c.cancelable&&c.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&c.stopPropagation();let v=n.isHorizontal()?h:g,b=n.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;a.oneWayMovement&&(v=Math.abs(v)*(s?1:-1),b=Math.abs(b)*(s?1:-1)),i.diff=v,v*=a.touchRatio,s&&(v=-v,b=-b);const m=n.touchesDirection;n.swipeDirection=v>0?"prev":"next",n.touchesDirection=b>0?"prev":"next";const _=n.params.loop&&!a.cssMode;if(!r.isMoved){if(_&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const S=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(S)}r.allowMomentumBounce=!1,a.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}let k;r.isMoved&&m!==n.touchesDirection&&_&&Math.abs(v)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),k=!0),n.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=v+r.startTranslate;let y=!0,w=a.resistanceRatio;if(a.touchReleaseOnEdges&&(w=0),v>0?(_&&!k&&r.currentTranslate>(a.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(y=!1,a.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+v)**w))):v<0&&(_&&!k&&r.currentTranslate<(a.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(a.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(y=!1,a.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-v)**w))),y&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),a.threshold>0)if(Math.abs(v)>a.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{r.currentTranslate=r.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&n.freeMode||a.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&a.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function Vw(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(k=>k.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:a,touches:i,rtlTranslate:s,slidesGrid:l,enabled:c}=t;if(!c||!a.simulateTouch&&e.pointerType==="mouse")return;let u=e;if(u.originalEvent&&(u=u.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",u),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=Jl(),f=d-n.touchStartTime;if(t.allowClick){const k=u.path||u.composedPath&&u.composedPath();t.updateClickedSlide(k&&k[0]||u.target),t.emit("tap click",u),f<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",u)}if(n.lastClickTime=Jl(),Od(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||i.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(a.followFinger?p=s?t.translate:-t.translate:p=-n.currentTranslate,a.cssMode)return;if(t.params.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}let h=0,g=t.slidesSizesGrid[0];for(let k=0;k<l.length;k+=k<a.slidesPerGroupSkip?1:a.slidesPerGroup){const y=k<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof l[k+y]<"u"?p>=l[k]&&p<l[k+y]&&(h=k,g=l[k+y]-l[k]):p>=l[k]&&(h=k,g=l[l.length-1]-l[l.length-2])}let v=null,b=null;a.rewind&&(t.isBeginning?b=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const m=(p-l[h])/g,_=h<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(f>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(m>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?v:h+_):t.slideTo(h)),t.swipeDirection==="prev"&&(m>1-a.longSwipesRatio?t.slideTo(h+_):b!==null&&m<0&&Math.abs(m)>a.longSwipesRatio?t.slideTo(b):t.slideTo(h))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(u.target===t.navigation.nextEl||u.target===t.navigation.prevEl)?u.target===t.navigation.nextEl?t.slideTo(h+_):t.slideTo(h):(t.swipeDirection==="next"&&t.slideTo(v!==null?v:h+_),t.swipeDirection==="prev"&&t.slideTo(b!==null?b:h))}}function c1(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:a,snapGrid:i}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=s&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!l?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=a,e.allowSlideNext=r,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}function $w(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Fw(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let a;const i=e.maxTranslate()-e.minTranslate();i===0?a=0:a=(e.translate-e.minTranslate())/i,a!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function zw(e){const t=this;Pl(t,e.target),t.update()}let u1=!1;function jw(){}const f2=(e,t)=>{const n=qa(),{params:r,el:a,wrapperEl:i,device:s}=e,l=!!r.nested,c=t==="on"?"addEventListener":"removeEventListener",u=t;a[c]("pointerdown",e.onTouchStart,{passive:!1}),n[c]("pointermove",e.onTouchMove,{passive:!1,capture:l}),n[c]("pointerup",e.onTouchEnd,{passive:!0}),n[c]("pointercancel",e.onTouchEnd,{passive:!0}),n[c]("pointerout",e.onTouchEnd,{passive:!0}),n[c]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&a[c]("click",e.onClick,!0),r.cssMode&&i[c]("scroll",e.onScroll),r.updateOnWindowResize?e[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",c1,!0):e[u]("observerUpdate",c1,!0),a[c]("load",e.onLoad,{capture:!0})};function Hw(){const e=this,t=qa(),{params:n}=e;e.onTouchStart=Rw.bind(e),e.onTouchMove=Bw.bind(e),e.onTouchEnd=Vw.bind(e),n.cssMode&&(e.onScroll=Fw.bind(e)),e.onClick=$w.bind(e),e.onLoad=zw.bind(e),u1||(t.addEventListener("touchstart",jw),u1=!0),f2(e,"on")}function Ww(){f2(this,"off")}const Uw={attachEvents:Hw,detachEvents:Ww},d1=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Yw(){const e=this,{realIndex:t,initialized:n,params:r,el:a}=e,i=r.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const s=e.getBreakpoint(i,e.params.breakpointsBase,e.el);if(!s||e.currentBreakpoint===s)return;const c=(s in i?i[s]:void 0)||e.originalParams,u=d1(e,r),d=d1(e,c),f=r.enabled;u&&!d?(a.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&d&&(a.classList.add(`${r.containerModifierClass}grid`),(c.grid.fill&&c.grid.fill==="column"||!c.grid.fill&&r.grid.fill==="column")&&a.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(v=>{const b=r[v]&&r[v].enabled,m=c[v]&&c[v].enabled;b&&!m&&e[v].disable(),!b&&m&&e[v].enable()});const p=c.direction&&c.direction!==r.direction,h=r.loop&&(c.slidesPerView!==r.slidesPerView||p);p&&n&&e.changeDirection(),Qt(e.params,c);const g=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!g?e.disable():!f&&g&&e.enable(),e.currentBreakpoint=s,e.emit("_beforeBreakpoint",c),h&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",c)}function qw(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const a=dn(),i=t==="window"?a.innerHeight:n.clientHeight,s=Object.keys(e).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const c=parseFloat(l.substr(1));return{value:i*c,point:l}}return{value:l,point:l}});s.sort((l,c)=>parseInt(l.value,10)-parseInt(c.value,10));for(let l=0;l<s.length;l+=1){const{point:c,value:u}=s[l];t==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(r=c):u<=n.clientWidth&&(r=c)}return r||"max"}const Gw={setBreakpoint:Yw,getBreakpoint:qw};function Xw(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(a=>{r[a]&&n.push(t+a)}):typeof r=="string"&&n.push(t+r)}),n}function Kw(){const e=this,{classNames:t,params:n,rtl:r,el:a,device:i}=e,s=Xw(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),a.classList.add(...t),e.emitContainerClasses()}function Jw(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const Zw={addClasses:Kw,removeClasses:Jw};function Qw(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const a=e.slides.length-1,i=e.slidesGrid[a]+e.slidesSizesGrid[a]+r*2;e.isLocked=e.size>i}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const eS={checkOverflow:Qw},f1={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function tS(e,t){return function(r={}){const a=Object.keys(r)[0],i=r[a];if(typeof i!="object"||i===null){Qt(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(a)>=0&&e[a]===!0&&(e[a]={auto:!0}),!(a in e&&"enabled"in i)){Qt(t,r);return}e[a]===!0&&(e[a]={enabled:!0}),typeof e[a]=="object"&&!("enabled"in e[a])&&(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),Qt(t,r)}}const Nu={eventsEmitter:Z8,update:cw,translate:mw,transition:yw,slide:Tw,loop:Dw,grabCursor:Iw,events:Uw,breakpoints:Gw,checkOverflow:eS,classes:Zw},Du={};let qs=class ir{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=Qt({},r),n&&!r.el&&(r.el=n);const a=qa();if(r.el&&typeof r.el=="string"&&a.querySelectorAll(r.el).length>1){const c=[];return a.querySelectorAll(r.el).forEach(u=>{const d=Qt({},r,{el:u});c.push(new ir(d))}),c}const i=this;i.__swiper__=!0,i.support=u2(),i.device=q8({userAgent:r.userAgent}),i.browser=X8(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],r.modules&&Array.isArray(r.modules)&&i.modules.push(...r.modules);const s={};i.modules.forEach(c=>{c({params:r,swiper:i,extendParams:tS(r,s),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const l=Qt({},f1,s);return i.params=Qt({},l,Du,r),i.originalParams=Qt({},i.params),i.passedParams=Qt({},r),i.params&&i.params.on&&Object.keys(i.params.on).forEach(c=>{i.on(c,i.params.on[c])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getSlideIndex(t){const{slidesEl:n,params:r}=this,a=Un(n,`.${r.slideClass}, swiper-slide`),i=s1(a[0]);return s1(t)-i}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=Un(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const a=r.minTranslate(),s=(r.maxTranslate()-a)*t+a;r.translateTo(s,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const a=t.getSlideClasses(r);n.push({slideEl:r,classNames:a}),t.emit("_slideClass",r,a)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:a,slides:i,slidesGrid:s,slidesSizesGrid:l,size:c,activeIndex:u}=r;let d=1;if(a.centeredSlides){let f=i[u].swiperSlideSize,p;for(let h=u+1;h<i.length;h+=1)i[h]&&!p&&(f+=i[h].swiperSlideSize,d+=1,f>c&&(p=!0));for(let h=u-1;h>=0;h-=1)i[h]&&!p&&(f+=i[h].swiperSlideSize,d+=1,f>c&&(p=!0))}else if(t==="current")for(let f=u+1;f<i.length;f+=1)(n?s[f]+l[f]-s[u]<c:s[f]-s[u]<c)&&(d+=1);else for(let f=u-1;f>=0;f-=1)s[u]-s[f]<c&&(d+=1);return d}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&Pl(t,s)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const s=t.rtlTranslate?t.translate*-1:t.translate,l=Math.min(Math.max(s,t.maxTranslate()),t.minTranslate());t.setTranslate(l),t.updateActiveIndex(),t.updateSlidesClasses()}let i;if(t.params.freeMode&&t.params.freeMode.enabled)a(),t.params.autoHeight&&t.updateAutoHeight();else{if((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides){const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides:t.slides;i=t.slideTo(s.length-1,0,!1,!0)}else i=t.slideTo(t.activeIndex,0,!1,!0);i||a()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,a=r.params.direction;return t||(t=a==="horizontal"?"vertical":"horizontal"),t===a||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${a}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(i=>{t==="vertical"?i.style.width="":i.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const a=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=(()=>r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(a()):Un(r,a())[0])();return!s&&n.params.createElements&&(s=c2("div",n.params.wrapperClass),r.append(s),Un(r,`.${n.params.slideClass}`).forEach(l=>{s.append(l)})),Object.assign(n,{el:r,wrapperEl:s,slidesEl:n.isElement?r:s,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Fr(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Fr(r,"direction")==="rtl"),wrongRTL:Fr(s,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete?Pl(n,a):a.addEventListener("load",i=>{Pl(n,i.target)})}),Md(n),n.initialized=!0,Md(n),n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:a,el:i,wrapperEl:s,slides:l}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),a.loop&&r.loopDestroy(),n&&(r.removeClasses(),i.removeAttribute("style"),s.removeAttribute("style"),l&&l.length&&l.forEach(c=>{c.classList.remove(a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),c.removeAttribute("style"),c.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(c=>{r.off(c)}),t!==!1&&(r.el.swiper=null,V8(r)),r.destroyed=!0),null}static extendDefaults(t){Qt(Du,t)}static get extendedDefaults(){return Du}static get defaults(){return f1}static installModule(t){ir.prototype.__modules__||(ir.prototype.__modules__=[]);const n=ir.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>ir.installModule(n)),ir):(ir.installModule(t),ir)}};Object.keys(Nu).forEach(e=>{Object.keys(Nu[e]).forEach(t=>{qs.prototype[t]=Nu[e][t]})});qs.use([K8,J8]);function nS(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(a=>{if(!n[a]&&n.auto===!0){let i=Un(e.el,`.${r[a]}`)[0];i||(i=c2("div",r[a]),i.className=r[a],e.el.append(i)),n[a]=i,t[a]=i}}),n}function rS({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const a=g=>(Array.isArray(g)||(g=[g].filter(v=>!!v)),g);function i(g){let v;return g&&typeof g=="string"&&e.isElement&&(v=e.el.shadowRoot.querySelector(g),v)?v:(g&&(typeof g=="string"&&(v=[...document.querySelectorAll(g)]),e.params.uniqueNavElements&&typeof g=="string"&&v.length>1&&e.el.querySelectorAll(g).length===1&&(v=e.el.querySelector(g))),g&&!v?g:v)}function s(g,v){const b=e.params.navigation;g=a(g),g.forEach(m=>{m&&(m.classList[v?"add":"remove"](...b.disabledClass.split(" ")),m.tagName==="BUTTON"&&(m.disabled=v),e.params.watchOverflow&&e.enabled&&m.classList[e.isLocked?"add":"remove"](b.lockClass))})}function l(){const{nextEl:g,prevEl:v}=e.navigation;if(e.params.loop){s(v,!1),s(g,!1);return}s(v,e.isBeginning&&!e.params.rewind),s(g,e.isEnd&&!e.params.rewind)}function c(g){g.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function u(g){g.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function d(){const g=e.params.navigation;if(e.params.navigation=nS(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(g.nextEl||g.prevEl))return;let v=i(g.nextEl),b=i(g.prevEl);Object.assign(e.navigation,{nextEl:v,prevEl:b}),v=a(v),b=a(b);const m=(_,k)=>{_&&_.addEventListener("click",k==="next"?u:c),!e.enabled&&_&&_.classList.add(...g.lockClass.split(" "))};v.forEach(_=>m(_,"next")),b.forEach(_=>m(_,"prev"))}function f(){let{nextEl:g,prevEl:v}=e.navigation;g=a(g),v=a(v);const b=(m,_)=>{m.removeEventListener("click",_==="next"?u:c),m.classList.remove(...e.params.navigation.disabledClass.split(" "))};g.forEach(m=>b(m,"next")),v.forEach(m=>b(m,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?h():(d(),l())}),n("toEdge fromEdge lock unlock",()=>{l()}),n("destroy",()=>{f()}),n("enable disable",()=>{let{nextEl:g,prevEl:v}=e.navigation;g=a(g),v=a(v),[...g,...v].filter(b=>!!b).forEach(b=>b.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(g,v)=>{let{nextEl:b,prevEl:m}=e.navigation;b=a(b),m=a(m);const _=v.target;if(e.params.navigation.hideOnClick&&!m.includes(_)&&!b.includes(_)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===_||e.pagination.el.contains(_)))return;let k;b.length?k=b[0].classList.contains(e.params.navigation.hiddenClass):m.length&&(k=m[0].classList.contains(e.params.navigation.hiddenClass)),r(k===!0?"navigationShow":"navigationHide"),[...b,...m].filter(y=>!!y).forEach(y=>y.classList.toggle(e.params.navigation.hiddenClass))}});const p=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),l()},h=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(e.navigation,{enable:p,disable:h,update:l,init:d,destroy:f})}function $a(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function zr(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:$a(t[r])&&$a(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:zr(e[r],t[r]):e[r]=t[r]})}function p2(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function h2(e={}){return e.pagination&&typeof e.pagination.el>"u"}function m2(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function g2(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function aS(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const v2=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function p1(e={},t=!0){const n={on:{}},r={},a={};zr(n,qs.defaults),zr(n,qs.extendedDefaults),n._emitClasses=!0,n.init=!1;const i={},s=v2.map(c=>c.replace(/_/,"")),l=Object.assign({},e);return Object.keys(l).forEach(c=>{typeof e[c]>"u"||(s.indexOf(c)>=0?$a(e[c])?(n[c]={},a[c]={},zr(n[c],e[c]),zr(a[c],e[c])):(n[c]=e[c],a[c]=e[c]):c.search(/on[A-Z]/)===0&&typeof e[c]=="function"?t?r[`${c[2].toLowerCase()}${c.substr(3)}`]=e[c]:n.on[`${c[2].toLowerCase()}${c.substr(3)}`]=e[c]:i[c]=e[c])}),["navigation","pagination","scrollbar"].forEach(c=>{n[c]===!0&&(n[c]={}),n[c]===!1&&delete n[c]}),{params:n,passedParams:a,rest:i,events:r}}function iS({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:a,swiper:i},s){p2(s)&&t&&n&&(i.params.navigation.nextEl=t,i.originalParams.navigation.nextEl=t,i.params.navigation.prevEl=n,i.originalParams.navigation.prevEl=n),h2(s)&&r&&(i.params.pagination.el=r,i.originalParams.pagination.el=r),m2(s)&&a&&(i.params.scrollbar.el=a,i.originalParams.scrollbar.el=a),i.init(e)}function sS(e,t,n,r,a){const i=[];if(!t)return i;const s=c=>{i.indexOf(c)<0&&i.push(c)};if(n&&r){const c=r.map(a),u=n.map(a);c.join("")!==u.join("")&&s("children"),r.length!==n.length&&s("children")}return v2.filter(c=>c[0]==="_").map(c=>c.replace(/_/,"")).forEach(c=>{if(c in e&&c in t)if($a(e[c])&&$a(t[c])){const u=Object.keys(e[c]),d=Object.keys(t[c]);u.length!==d.length?s(c):(u.forEach(f=>{e[c][f]!==t[c][f]&&s(c)}),d.forEach(f=>{e[c][f]!==t[c][f]&&s(c)}))}else e[c]!==t[c]&&s(c)}),i}function Pu(e,t,n){e===void 0&&(e={});const r=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},i=(s,l)=>{Array.isArray(s)&&s.forEach(c=>{const u=typeof c.type=="symbol";l==="default"&&(l="container-end"),u&&c.children?i(c.children,l):c.type&&(c.type.name==="SwiperSlide"||c.type.name==="AsyncComponentWrapper")?r.push(c):a[l]&&a[l].push(c)})};return Object.keys(e).forEach(s=>{if(typeof e[s]!="function")return;const l=e[s]();i(l,s)}),n.value=t.value,t.value=r,{slides:r,slots:a}}function oS({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:a,prevEl:i,scrollbarEl:s,paginationEl:l}){const c=r.filter(E=>E!=="children"&&E!=="direction"&&E!=="wrapperClass"),{params:u,pagination:d,navigation:f,scrollbar:p,virtual:h,thumbs:g}=e;let v,b,m,_,k,y,w,S;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&u.thumbs&&!u.thumbs.swiper&&(v=!0),r.includes("controller")&&n.controller&&n.controller.control&&u.controller&&!u.controller.control&&(b=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||l)&&(u.pagination||u.pagination===!1)&&d&&!d.el&&(m=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||s)&&(u.scrollbar||u.scrollbar===!1)&&p&&!p.el&&(_=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||i)&&(n.navigation.nextEl||a)&&(u.navigation||u.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(k=!0);const C=E=>{e[E]&&(e[E].destroy(),E==="navigation"?(e.isElement&&(e[E].prevEl.remove(),e[E].nextEl.remove()),u[E].prevEl=void 0,u[E].nextEl=void 0,e[E].prevEl=void 0,e[E].nextEl=void 0):(e.isElement&&e[E].el.remove(),u[E].el=void 0,e[E].el=void 0))};r.includes("loop")&&e.isElement&&(u.loop&&!n.loop?y=!0:!u.loop&&n.loop?w=!0:S=!0),c.forEach(E=>{if($a(u[E])&&$a(n[E]))zr(u[E],n[E]);else{const O=n[E];(O===!0||O===!1)&&(E==="navigation"||E==="pagination"||E==="scrollbar")?O===!1&&C(E):u[E]=n[E]}}),c.includes("controller")&&!b&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),r.includes("children")&&t&&h&&u.virtual.enabled&&(h.slides=t,h.update(!0)),r.includes("children")&&t&&u.loop&&(S=!0),v&&g.init()&&g.update(!0),b&&(e.controller.control=u.controller.control),m&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(l)),l&&(u.pagination.el=l),d.init(),d.render(),d.update()),_&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(s)),s&&(u.scrollbar.el=s),p.init(),p.updateSize(),p.setTranslate()),k&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(a)),(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(i))),a&&(u.navigation.nextEl=a),i&&(u.navigation.prevEl=i),f.init(),f.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(y||S)&&e.loopDestroy(),(w||S)&&e.loopCreate(),e.update()}function lS(e,t,n){if(!n)return null;const r=d=>{let f=d;return d<0?f=t.length+d:f>=t.length&&(f=f-t.length),f},a=e.value.isHorizontal()?{[e.value.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:i,to:s}=n,l=e.value.params.loop?-t.length:0,c=e.value.params.loop?t.length*2:t.length,u=[];for(let d=l;d<c;d+=1)d>=i&&d<=s&&u.push(t[r(d)]);return u.map(d=>(d.props||(d.props={}),d.props.style||(d.props.style={}),d.props.swiperRef=e,d.props.style=a,o.h(d.type,{...d.props},d.children)))}const cS=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())},_2={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(e,t){let{slots:n,emit:r}=t;const{tag:a,wrapperTag:i}=e,s=o.ref("swiper"),l=o.ref(null),c=o.ref(!1),u=o.ref(!1),d=o.ref(null),f=o.ref(null),p=o.ref(null),h={value:[]},g={value:[]},v=o.ref(null),b=o.ref(null),m=o.ref(null),_=o.ref(null),{params:k,passedParams:y}=p1(e,!1);Pu(n,h,g),p.value=y,g.value=h.value;const w=()=>{Pu(n,h,g),c.value=!0};k.onAny=function(E){for(var O=arguments.length,L=new Array(O>1?O-1:0),D=1;D<O;D++)L[D-1]=arguments[D];r(E,...L)},Object.assign(k.on,{_beforeBreakpoint:w,_containerClasses(E,O){s.value=O}});const S={...k};if(delete S.wrapperClass,f.value=new qs(S),f.value.virtual&&f.value.params.virtual.enabled){f.value.virtual.slides=h.value;const E={cache:!1,slides:h.value,renderExternal:O=>{l.value=O},renderExternalUpdate:!1};zr(f.value.params.virtual,E),zr(f.value.originalParams.virtual,E)}o.onUpdated(()=>{!u.value&&f.value&&(f.value.emitSlidesClasses(),u.value=!0);const{passedParams:E}=p1(e,!1),O=sS(E,p.value,h.value,g.value,L=>L.props&&L.props.key);p.value=E,(O.length||c.value)&&f.value&&!f.value.destroyed&&oS({swiper:f.value,slides:h.value,passedParams:E,changedParams:O,nextEl:v.value,prevEl:b.value,scrollbarEl:_.value,paginationEl:m.value}),c.value=!1}),o.provide("swiper",f),o.watch(l,()=>{o.nextTick(()=>{cS(f.value)})}),o.onMounted(()=>{d.value&&(iS({el:d.value,nextEl:v.value,prevEl:b.value,paginationEl:m.value,scrollbarEl:_.value,swiper:f.value},k),r("swiper",f.value))}),o.onBeforeUnmount(()=>{f.value&&!f.value.destroyed&&f.value.destroy(!0,!1)});function C(E){return k.virtual?lS(f,E,l.value):(E.forEach((O,L)=>{O.props||(O.props={}),O.props.swiperRef=f,O.props.swiperSlideIndex=L}),E)}return()=>{const{slides:E,slots:O}=Pu(n,h,g);return o.h(a,{ref:d,class:g2(s.value)},[O["container-start"],o.h(i,{class:aS(k.wrapperClass)},[O["wrapper-start"],C(E),O["wrapper-end"]]),p2(e)&&[o.h("div",{ref:b,class:"swiper-button-prev"}),o.h("div",{ref:v,class:"swiper-button-next"})],m2(e)&&o.h("div",{ref:_,class:"swiper-scrollbar"}),h2(e)&&o.h("div",{ref:m,class:"swiper-pagination"}),O["container-end"]])}}},y2={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,t){let{slots:n}=t,r=!1;const{swiperRef:a}=e,i=o.ref(null),s=o.ref("swiper-slide"),l=o.ref(!1);function c(f,p,h){p===i.value&&(s.value=h)}o.onMounted(()=>{!a||!a.value||(a.value.on("_slideClass",c),r=!0)}),o.onBeforeUpdate(()=>{r||!a||!a.value||(a.value.on("_slideClass",c),r=!0)}),o.onUpdated(()=>{!i.value||!a||!a.value||(typeof e.swiperSlideIndex<"u"&&(i.value.swiperSlideIndex=e.swiperSlideIndex),a.value.destroyed&&s.value!=="swiper-slide"&&(s.value="swiper-slide"))}),o.onBeforeUnmount(()=>{!a||!a.value||a.value.off("_slideClass",c)});const u=o.computed(()=>({isActive:s.value.indexOf("swiper-slide-active")>=0,isVisible:s.value.indexOf("swiper-slide-visible")>=0,isPrev:s.value.indexOf("swiper-slide-prev")>=0,isNext:s.value.indexOf("swiper-slide-next")>=0}));o.provide("swiperSlide",u);const d=()=>{l.value=!0};return()=>o.h(e.tag,{class:g2(`${s.value}`),ref:i,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&a&&a.value&&a.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:d},e.zoom?o.h("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},[n.default&&n.default(u.value),e.lazy&&!l.value&&o.h("div",{class:"swiper-lazy-preloader"})]):[n.default&&n.default(u.value),e.lazy&&!l.value&&o.h("div",{class:"swiper-lazy-preloader"})])}};const uS={cardCodes:{type:Array,required:!0,default:[]}};var qt="top",yn="bottom",bn="right",Gt="left",Pc="auto",go=[qt,yn,bn,Gt],Ci="start",Gs="end",dS="clippingParents",b2="viewport",ns="popper",fS="reference",h1=go.reduce(function(e,t){return e.concat([t+"-"+Ci,t+"-"+Gs])},[]),k2=[].concat(go,[Pc]).reduce(function(e,t){return e.concat([t,t+"-"+Ci,t+"-"+Gs])},[]),pS="beforeRead",hS="read",mS="afterRead",gS="beforeMain",vS="main",_S="afterMain",yS="beforeWrite",bS="write",kS="afterWrite",Nd=[pS,hS,mS,gS,vS,_S,yS,bS,kS];function Gn(e){return e?(e.nodeName||"").toLowerCase():null}function ln(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fa(e){var t=ln(e).Element;return e instanceof t||e instanceof Element}function on(e){var t=ln(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Uf(e){if(typeof ShadowRoot>"u")return!1;var t=ln(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wS(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!on(i)||!Gn(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(s){var l=a[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function SS(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(r){var a=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(c,u){return c[u]="",c},{});!on(a)||!Gn(a)||(Object.assign(a.style,l),Object.keys(i).forEach(function(c){a.removeAttribute(c)}))})}}const w2={name:"applyStyles",enabled:!0,phase:"write",fn:wS,effect:SS,requires:["computeStyles"]};function On(e){return e.split("-")[0]}var Da=Math.max,Zl=Math.min,Ei=Math.round;function Dd(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function S2(){return!/^((?!chrome|android).)*safari/i.test(Dd())}function Ti(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&on(e)&&(a=e.offsetWidth>0&&Ei(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ei(r.height)/e.offsetHeight||1);var s=Fa(e)?ln(e):window,l=s.visualViewport,c=!S2()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/a,d=(r.top+(c&&l?l.offsetTop:0))/i,f=r.width/a,p=r.height/i;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Yf(e){var t=Ti(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 x2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Uf(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Dn(e){return ln(e).getComputedStyle(e)}function xS(e){return["table","td","th"].indexOf(Gn(e))>=0}function ca(e){return((Fa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ac(e){return Gn(e)==="html"?e:e.assignedSlot||e.parentNode||(Uf(e)?e.host:null)||ca(e)}function m1(e){return!on(e)||Dn(e).position==="fixed"?null:e.offsetParent}function CS(e){var t=/firefox/i.test(Dd()),n=/Trident/i.test(Dd());if(n&&on(e)){var r=Dn(e);if(r.position==="fixed")return null}var a=Ac(e);for(Uf(a)&&(a=a.host);on(a)&&["html","body"].indexOf(Gn(a))<0;){var i=Dn(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function vo(e){for(var t=ln(e),n=m1(e);n&&xS(n)&&Dn(n).position==="static";)n=m1(n);return n&&(Gn(n)==="html"||Gn(n)==="body"&&Dn(n).position==="static")?t:n||CS(e)||t}function qf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ss(e,t,n){return Da(e,Zl(t,n))}function ES(e,t,n){var r=Ss(e,t,n);return r>n?n:r}function C2(){return{top:0,right:0,bottom:0,left:0}}function E2(e){return Object.assign({},C2(),e)}function T2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var TS=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,E2(typeof t!="number"?t:T2(t,go))};function OS(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=On(n.placement),c=qf(l),u=[Gt,bn].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!s)){var f=TS(a.padding,n),p=Yf(i),h=c==="y"?qt:Gt,g=c==="y"?yn:bn,v=n.rects.reference[d]+n.rects.reference[c]-s[c]-n.rects.popper[d],b=s[c]-n.rects.reference[c],m=vo(i),_=m?c==="y"?m.clientHeight||0:m.clientWidth||0:0,k=v/2-b/2,y=f[h],w=_-p[d]-f[g],S=_/2-p[d]/2+k,C=Ss(y,S,w),E=c;n.modifiersData[r]=(t={},t[E]=C,t.centerOffset=C-S,t)}}function MS(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;if(a!=null&&!(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a))){if(process.env.NODE_ENV!=="production"&&(on(a)||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(" "))),!x2(t.elements.popper,a)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=a}}const NS={name:"arrow",enabled:!0,phase:"main",fn:OS,effect:MS,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oi(e){return e.split("-")[1]}var DS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function PS(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Ei(n*a)/a||0,y:Ei(r*a)/a||0}}function g1(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,h=p===void 0?0:p,g=s.y,v=g===void 0?0:g,b=typeof d=="function"?d({x:h,y:v}):{x:h,y:v};h=b.x,v=b.y;var m=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),k=Gt,y=qt,w=window;if(u){var S=vo(n),C="clientHeight",E="clientWidth";if(S===ln(n)&&(S=ca(n),Dn(S).position!=="static"&&l==="absolute"&&(C="scrollHeight",E="scrollWidth")),S=S,a===qt||(a===Gt||a===bn)&&i===Gs){y=yn;var O=f&&S===w&&w.visualViewport?w.visualViewport.height:S[C];v-=O-r.height,v*=c?1:-1}if(a===Gt||(a===qt||a===yn)&&i===Gs){k=bn;var L=f&&S===w&&w.visualViewport?w.visualViewport.width:S[E];h-=L-r.width,h*=c?1:-1}}var D=Object.assign({position:l},u&&DS),N=d===!0?PS({x:h,y:v},ln(n)):{x:h,y:v};if(h=N.x,v=N.y,c){var R;return Object.assign({},D,(R={},R[y]=_?"0":"",R[k]=m?"0":"",R.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",R))}return Object.assign({},D,(t={},t[y]=_?v+"px":"",t[k]=m?h+"px":"",t.transform="",t))}function AS(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l;if(process.env.NODE_ENV!=="production"){var u=Dn(t.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(f){return u.indexOf(f)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
790
+
791
+ `,'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.",`
792
+
793
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var d={placement:On(t.placement),variation:Oi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,g1(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,g1(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const IS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:AS,data:{}};var sl={passive:!0};function LS(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,s=r.resize,l=s===void 0?!0:s,c=ln(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,sl)}),l&&c.addEventListener("resize",n.update,sl),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,sl)}),l&&c.removeEventListener("resize",n.update,sl)}}const RS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LS,data:{}};var BS={left:"right",right:"left",bottom:"top",top:"bottom"};function Al(e){return e.replace(/left|right|bottom|top/g,function(t){return BS[t]})}var VS={start:"end",end:"start"};function v1(e){return e.replace(/start|end/g,function(t){return VS[t]})}function Gf(e){var t=ln(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Xf(e){return Ti(ca(e)).left+Gf(e).scrollLeft}function $S(e,t){var n=ln(e),r=ca(e),a=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(a){i=a.width,s=a.height;var u=S2();(u||!u&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:s,x:l+Xf(e),y:c}}function FS(e){var t,n=ca(e),r=Gf(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Da(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=Da(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+Xf(e),c=-r.scrollTop;return Dn(a||n).direction==="rtl"&&(l+=Da(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function Kf(e){var t=Dn(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function O2(e){return["html","body","#document"].indexOf(Gn(e))>=0?e.ownerDocument.body:on(e)&&Kf(e)?e:O2(Ac(e))}function xs(e,t){var n;t===void 0&&(t=[]);var r=O2(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=ln(r),s=a?[i].concat(i.visualViewport||[],Kf(r)?r:[]):r,l=t.concat(s);return a?l:l.concat(xs(Ac(s)))}function Pd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zS(e,t){var n=Ti(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function _1(e,t,n){return t===b2?Pd($S(e,n)):Fa(t)?zS(t,n):Pd(FS(ca(e)))}function jS(e){var t=xs(Ac(e)),n=["absolute","fixed"].indexOf(Dn(e).position)>=0,r=n&&on(e)?vo(e):e;return Fa(r)?t.filter(function(a){return Fa(a)&&x2(a,r)&&Gn(a)!=="body"}):[]}function HS(e,t,n,r){var a=t==="clippingParents"?jS(e):[].concat(t),i=[].concat(a,[n]),s=i[0],l=i.reduce(function(c,u){var d=_1(e,u,r);return c.top=Da(d.top,c.top),c.right=Zl(d.right,c.right),c.bottom=Zl(d.bottom,c.bottom),c.left=Da(d.left,c.left),c},_1(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function M2(e){var t=e.reference,n=e.element,r=e.placement,a=r?On(r):null,i=r?Oi(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(a){case qt:c={x:s,y:t.y-n.height};break;case yn:c={x:s,y:t.y+t.height};break;case bn:c={x:t.x+t.width,y:l};break;case Gt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=a?qf(a):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Ci:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Gs:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Xs(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?dS:l,u=n.rootBoundary,d=u===void 0?b2:u,f=n.elementContext,p=f===void 0?ns:f,h=n.altBoundary,g=h===void 0?!1:h,v=n.padding,b=v===void 0?0:v,m=E2(typeof b!="number"?b:T2(b,go)),_=p===ns?fS:ns,k=e.rects.popper,y=e.elements[g?_:p],w=HS(Fa(y)?y:y.contextElement||ca(e.elements.popper),c,d,s),S=Ti(e.elements.reference),C=M2({reference:S,element:k,strategy:"absolute",placement:a}),E=Pd(Object.assign({},k,C)),O=p===ns?E:S,L={top:w.top-O.top+m.top,bottom:O.bottom-w.bottom+m.bottom,left:w.left-O.left+m.left,right:O.right-w.right+m.right},D=e.modifiersData.offset;if(p===ns&&D){var N=D[a];Object.keys(L).forEach(function(R){var ne=[bn,yn].indexOf(R)>=0?1:-1,K=[qt,yn].indexOf(R)>=0?"y":"x";L[R]+=N[K]*ne})}return L}function WS(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?k2:c,d=Oi(r),f=d?l?h1:h1.filter(function(g){return Oi(g)===d}):go,p=f.filter(function(g){return u.indexOf(g)>=0});p.length===0&&(p=f,process.env.NODE_ENV!=="production"&&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 h=p.reduce(function(g,v){return g[v]=Xs(e,{placement:v,boundary:a,rootBoundary:i,padding:s})[On(v)],g},{});return Object.keys(h).sort(function(g,v){return h[g]-h[v]})}function US(e){if(On(e)===Pc)return[];var t=Al(e);return[v1(e),t,v1(t)]}function YS(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,v=n.allowedAutoPlacements,b=t.options.placement,m=On(b),_=m===b,k=c||(_||!g?[Al(b)]:US(b)),y=[b].concat(k).reduce(function(ve,ie){return ve.concat(On(ie)===Pc?WS(t,{placement:ie,boundary:d,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:v}):ie)},[]),w=t.rects.reference,S=t.rects.popper,C=new Map,E=!0,O=y[0],L=0;L<y.length;L++){var D=y[L],N=On(D),R=Oi(D)===Ci,ne=[qt,yn].indexOf(N)>=0,K=ne?"width":"height",Z=Xs(t,{placement:D,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),X=ne?R?bn:Gt:R?yn:qt;w[K]>S[K]&&(X=Al(X));var ce=Al(X),Y=[];if(i&&Y.push(Z[N]<=0),l&&Y.push(Z[X]<=0,Z[ce]<=0),Y.every(function(ve){return ve})){O=D,E=!1;break}C.set(D,Y)}if(E)for(var se=g?3:1,de=function(ie){var V=y.find(function(Q){var Ae=C.get(Q);if(Ae)return Ae.slice(0,ie).every(function(et){return et})});if(V)return O=V,"break"},Te=se;Te>0;Te--){var Fe=de(Te);if(Fe==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const qS={name:"flip",enabled:!0,phase:"main",fn:YS,requiresIfExists:["offset"],data:{_skip:!1}};function y1(e,t,n){return n===void 0&&(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 b1(e){return[qt,bn,yn,Gt].some(function(t){return e[t]>=0})}function GS(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,s=Xs(t,{elementContext:"reference"}),l=Xs(t,{altBoundary:!0}),c=y1(s,r),u=y1(l,a,i),d=b1(c),f=b1(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const XS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:GS};function KS(e,t,n){var r=On(e),a=[Gt,qt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*a,[Gt,bn].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function JS(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,s=k2.reduce(function(d,f){return d[f]=KS(f,t.rects,i),d},{}),l=s[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const ZS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:JS};function QS(e){var t=e.state,n=e.name;t.modifiersData[n]=M2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ex={name:"popperOffsets",enabled:!0,phase:"read",fn:QS,data:{}};function tx(e){return e==="x"?"y":"x"}function nx(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,g=n.tetherOffset,v=g===void 0?0:g,b=Xs(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),m=On(t.placement),_=Oi(t.placement),k=!_,y=qf(m),w=tx(y),S=t.modifiersData.popperOffsets,C=t.rects.reference,E=t.rects.popper,O=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,L=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(S){if(i){var R,ne=y==="y"?qt:Gt,K=y==="y"?yn:bn,Z=y==="y"?"height":"width",X=S[y],ce=X+b[ne],Y=X-b[K],se=h?-E[Z]/2:0,de=_===Ci?C[Z]:E[Z],Te=_===Ci?-E[Z]:-C[Z],Fe=t.elements.arrow,ve=h&&Fe?Yf(Fe):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:C2(),V=ie[ne],Q=ie[K],Ae=Ss(0,C[Z],ve[Z]),et=k?C[Z]/2-se-Ae-V-L.mainAxis:de-Ae-V-L.mainAxis,gt=k?-C[Z]/2+se+Ae+Q+L.mainAxis:Te+Ae+Q+L.mainAxis,ut=t.elements.arrow&&vo(t.elements.arrow),pn=ut?y==="y"?ut.clientTop||0:ut.clientLeft||0:0,T=(R=D==null?void 0:D[y])!=null?R:0,x=X+et-T-pn,P=X+gt-T,H=Ss(h?Zl(ce,x):ce,X,h?Da(Y,P):Y);S[y]=H,N[y]=H-X}if(l){var te,ue=y==="x"?qt:Gt,vt=y==="x"?yn:bn,ot=S[w],Jt=w==="y"?"height":"width",Ve=ot+b[ue],I=ot-b[vt],$=[qt,Gt].indexOf(m)!==-1,Ye=(te=D==null?void 0:D[w])!=null?te:0,qe=$?Ve:ot-C[Jt]-E[Jt]-Ye+L.altAxis,Ln=$?ot+C[Jt]+E[Jt]-Ye-L.altAxis:I,hn=h&&$?ES(qe,ot,Ln):Ss(h?qe:Ve,ot,h?Ln:I);S[w]=hn,N[w]=hn-ot}t.modifiersData[r]=N}}const rx={name:"preventOverflow",enabled:!0,phase:"main",fn:nx,requiresIfExists:["offset"]};function ax(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ix(e){return e===ln(e)||!on(e)?Gf(e):ax(e)}function sx(e){var t=e.getBoundingClientRect(),n=Ei(t.width)/e.offsetWidth||1,r=Ei(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ox(e,t,n){n===void 0&&(n=!1);var r=on(t),a=on(t)&&sx(t),i=ca(t),s=Ti(e,a,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Gn(t)!=="body"||Kf(i))&&(l=ix(t)),on(t)?(c=Ti(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Xf(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function lx(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&a(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function cx(e){var t=lx(e);return Nd.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function ux(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Rr(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(a,i){return a.replace(/%s/,i)},e)}var ga='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',dx='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',k1=["name","enabled","phase","fn","effect","requires","options"];function fx(e){e.forEach(function(t){[].concat(Object.keys(t),k1).filter(function(n,r,a){return a.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Rr(ga,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Rr(ga,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Nd.indexOf(t.phase)<0&&console.error(Rr(ga,t.name,'"phase"',"either "+Nd.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Rr(ga,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Rr(ga,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Rr(ga,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Rr(ga,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 '+k1.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(r){e.find(function(a){return a.name===r})==null&&console.error(Rr(dx,String(t.name),r,r))})})})}function px(e,t){var n=new Set;return e.filter(function(r){var a=t(r);if(!n.has(a))return n.add(a),!0})}function hx(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var w1="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",mx="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",S1={placement:"bottom",modifiers:[],strategy:"absolute"};function x1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function gx(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?S1:a;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},S1,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(m){var _=typeof m=="function"?m(d.options):m;v(),d.options=Object.assign({},i,d.options,_),d.scrollParents={reference:Fa(l)?xs(l):l.contextElement?xs(l.contextElement):[],popper:xs(c)};var k=cx(hx([].concat(r,d.options.modifiers)));if(d.orderedModifiers=k.filter(function(D){return D.enabled}),process.env.NODE_ENV!=="production"){var y=px([].concat(k,d.options.modifiers),function(D){var N=D.name;return N});if(fx(y),On(d.options.placement)===Pc){var w=d.orderedModifiers.find(function(D){var N=D.name;return N==="flip"});w||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var S=Dn(c),C=S.marginTop,E=S.marginRight,O=S.marginBottom,L=S.marginLeft;[C,E,O,L].some(function(D){return parseFloat(D)})&&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 g(),h.update()},forceUpdate:function(){if(!p){var m=d.elements,_=m.reference,k=m.popper;if(!x1(_,k)){process.env.NODE_ENV!=="production"&&console.error(w1);return}d.rects={reference:ox(_,vo(k),d.options.strategy==="fixed"),popper:Yf(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(D){return d.modifiersData[D.name]=Object.assign({},D.data)});for(var y=0,w=0;w<d.orderedModifiers.length;w++){if(process.env.NODE_ENV!=="production"&&(y+=1,y>100)){console.error(mx);break}if(d.reset===!0){d.reset=!1,w=-1;continue}var S=d.orderedModifiers[w],C=S.fn,E=S.options,O=E===void 0?{}:E,L=S.name;typeof C=="function"&&(d=C({state:d,options:O,name:L,instance:h})||d)}}},update:ux(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){v(),p=!0}};if(!x1(l,c))return process.env.NODE_ENV!=="production"&&console.error(w1),h;h.setOptions(u).then(function(b){!p&&u.onFirstUpdate&&u.onFirstUpdate(b)});function g(){d.orderedModifiers.forEach(function(b){var m=b.name,_=b.options,k=_===void 0?{}:_,y=b.effect;if(typeof y=="function"){var w=y({state:d,name:m,instance:h,options:k}),S=function(){};f.push(w||S)}})}function v(){f.forEach(function(b){return b()}),f=[]}return h}}var vx=[RS,ex,IS,w2,ZS,qS,rx,NS,XS],_x=gx({defaultModifiers:vx}),yx="tippy-box",N2="tippy-content",bx="tippy-backdrop",D2="tippy-arrow",P2="tippy-svg-arrow",ka={passive:!0,capture:!0},A2=function(){return document.body};function kx(e,t){return{}.hasOwnProperty.call(e,t)}function Au(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Jf(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function I2(e,t){return typeof e=="function"?e.apply(void 0,t):e}function C1(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function wx(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function Sx(e){return e.split(/\s+/).filter(Boolean)}function ci(e){return[].concat(e)}function E1(e,t){e.indexOf(t)===-1&&e.push(t)}function xx(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Cx(e){return e.split("-")[0]}function Ql(e){return[].slice.call(e)}function T1(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Cs(){return document.createElement("div")}function Ks(e){return["Element","Fragment"].some(function(t){return Jf(e,t)})}function Ex(e){return Jf(e,"NodeList")}function Tx(e){return Jf(e,"MouseEvent")}function Ox(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Mx(e){return Ks(e)?[e]:Ex(e)?Ql(e):Array.isArray(e)?e:Ql(document.querySelectorAll(e))}function Iu(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function O1(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Nx(e){var t,n=ci(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Dx(e,t){var n=t.clientX,r=t.clientY;return e.every(function(a){var i=a.popperRect,s=a.popperState,l=a.props,c=l.interactiveBorder,u=Cx(s.placement),d=s.modifiersData.offset;if(!d)return!0;var f=u==="bottom"?d.top.y:0,p=u==="top"?d.bottom.y:0,h=u==="right"?d.left.x:0,g=u==="left"?d.right.x:0,v=i.top-r+f>c,b=r-i.bottom-p>c,m=i.left-n+h>c,_=n-i.right-g>c;return v||b||m||_})}function Lu(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[r](a,n)})}function M1(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var jn={isTouch:!1},N1=0;function Px(){jn.isTouch||(jn.isTouch=!0,window.performance&&document.addEventListener("mousemove",L2))}function L2(){var e=performance.now();e-N1<20&&(jn.isTouch=!1,document.removeEventListener("mousemove",L2)),N1=e}function Ax(){var e=document.activeElement;if(Ox(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Ix(){document.addEventListener("touchstart",Px,ka),window.addEventListener("blur",Ax)}var Lx=typeof window<"u"&&typeof document<"u",Rx=Lx?!!window.msCrypto:!1;function ii(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function D1(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function Bx(e){return D1(`
794
+ %ctippy.js
795
+
796
+ %c`+D1(e)+`
797
+
798
+ %c👷‍ This is a development-only message. It will be removed in production.
799
+ `)}function R2(e){return[Bx(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Js;process.env.NODE_ENV!=="production"&&Vx();function Vx(){Js=new Set}function lr(e,t){if(e&&!Js.has(t)){var n;Js.add(t),(n=console).warn.apply(n,R2(t))}}function Ad(e,t){if(e&&!Js.has(t)){var n;Js.add(t),(n=console).error.apply(n,R2(t))}}function $x(e){var t=!e,n=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;Ad(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Ad(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var B2={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Fx={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},rn=Object.assign({appendTo:A2,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},B2,Fx),zx=Object.keys(rn),jx=function(t){process.env.NODE_ENV!=="production"&&$2(t,[]);var n=Object.keys(t);n.forEach(function(r){rn[r]=t[r]})};function V2(e){var t=e.plugins||[],n=t.reduce(function(r,a){var i=a.name,s=a.defaultValue;if(i){var l;r[i]=e[i]!==void 0?e[i]:(l=rn[i])!=null?l:s}return r},{});return Object.assign({},e,n)}function Hx(e,t){var n=t?Object.keys(V2(Object.assign({},rn,{plugins:t}))):zx,r=n.reduce(function(a,i){var s=(e.getAttribute("data-tippy-"+i)||"").trim();if(!s)return a;if(i==="content")a[i]=s;else try{a[i]=JSON.parse(s)}catch{a[i]=s}return a},{});return r}function P1(e,t){var n=Object.assign({},t,{content:I2(t.content,[e])},t.ignoreAttributes?{}:Hx(e,t.plugins));return n.aria=Object.assign({},rn.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}function $2(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var n=Object.keys(e);n.forEach(function(r){var a=wx(rn,Object.keys(B2)),i=!kx(a,r);i&&(i=t.filter(function(s){return s.name===r}).length===0),lr(i,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
800
+
801
+ `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
802
+ `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var Wx=function(){return"innerHTML"};function Id(e,t){e[Wx()]=t}function A1(e){var t=Cs();return e===!0?t.className=D2:(t.className=P2,Ks(e)?t.appendChild(e):Id(t,e)),t}function I1(e,t){Ks(t.content)?(Id(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Id(e,t.content):e.textContent=t.content)}function Ld(e){var t=e.firstElementChild,n=Ql(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(N2)}),arrow:n.find(function(r){return r.classList.contains(D2)||r.classList.contains(P2)}),backdrop:n.find(function(r){return r.classList.contains(bx)})}}function F2(e){var t=Cs(),n=Cs();n.className=yx,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Cs();r.className=N2,r.setAttribute("data-state","hidden"),I1(r,e.props),t.appendChild(n),n.appendChild(r),a(e.props,e.props);function a(i,s){var l=Ld(t),c=l.box,u=l.content,d=l.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&I1(u,e.props),s.arrow?d?i.arrow!==s.arrow&&(c.removeChild(d),c.appendChild(A1(s.arrow))):c.appendChild(A1(s.arrow)):d&&c.removeChild(d)}return{popper:t,onUpdate:a}}F2.$$tippy=!0;var Ux=1,ol=[],Ru=[];function Yx(e,t){var n=P1(e,Object.assign({},rn,V2(T1(t)))),r,a,i,s=!1,l=!1,c=!1,u=!1,d,f,p,h=[],g=C1(x,n.interactiveDebounce),v,b=Ux++,m=null,_=xx(n.plugins),k={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},y={id:b,reference:e,popper:Cs(),popperInstance:m,props:n,state:k,plugins:_,clearDelayTimeouts:qe,setProps:Ln,setContent:hn,show:mn,hide:Sn,hideWithInteractivity:Ji,enable:$,disable:Ye,unmount:ni,destroy:Mr};if(!n.render)return process.env.NODE_ENV!=="production"&&Ad(!0,"render() function has not been supplied."),y;var w=n.render(y),S=w.popper,C=w.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+y.id,y.popper=S,e._tippy=y,S._tippy=y;var E=_.map(function(A){return A.fn(y)}),O=e.hasAttribute("aria-expanded");return ut(),se(),X(),ce("onCreate",[y]),n.showOnCreate&&Ve(),S.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),S.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&ne().addEventListener("mousemove",g)}),y;function L(){var A=y.props.touch;return Array.isArray(A)?A:[A,0]}function D(){return L()[0]==="hold"}function N(){var A;return!!((A=y.props.render)!=null&&A.$$tippy)}function R(){return v||e}function ne(){var A=R().parentNode;return A?Nx(A):document}function K(){return Ld(S)}function Z(A){return y.state.isMounted&&!y.state.isVisible||jn.isTouch||d&&d.type==="focus"?0:Au(y.props.delay,A?0:1,rn.delay)}function X(A){A===void 0&&(A=!1),S.style.pointerEvents=y.props.interactive&&!A?"":"none",S.style.zIndex=""+y.props.zIndex}function ce(A,J,oe){if(oe===void 0&&(oe=!0),E.forEach(function(ge){ge[A]&&ge[A].apply(ge,J)}),oe){var we;(we=y.props)[A].apply(we,J)}}function Y(){var A=y.props.aria;if(A.content){var J="aria-"+A.content,oe=S.id,we=ci(y.props.triggerTarget||e);we.forEach(function(ge){var wt=ge.getAttribute(J);if(y.state.isVisible)ge.setAttribute(J,wt?wt+" "+oe:oe);else{var It=wt&&wt.replace(oe,"").trim();It?ge.setAttribute(J,It):ge.removeAttribute(J)}})}}function se(){if(!(O||!y.props.aria.expanded)){var A=ci(y.props.triggerTarget||e);A.forEach(function(J){y.props.interactive?J.setAttribute("aria-expanded",y.state.isVisible&&J===R()?"true":"false"):J.removeAttribute("aria-expanded")})}}function de(){ne().removeEventListener("mousemove",g),ol=ol.filter(function(A){return A!==g})}function Te(A){if(!(jn.isTouch&&(c||A.type==="mousedown"))){var J=A.composedPath&&A.composedPath()[0]||A.target;if(!(y.props.interactive&&M1(S,J))){if(ci(y.props.triggerTarget||e).some(function(oe){return M1(oe,J)})){if(jn.isTouch||y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else ce("onClickOutside",[y,A]);y.props.hideOnClick===!0&&(y.clearDelayTimeouts(),y.hide(),l=!0,setTimeout(function(){l=!1}),y.state.isMounted||V())}}}function Fe(){c=!0}function ve(){c=!1}function ie(){var A=ne();A.addEventListener("mousedown",Te,!0),A.addEventListener("touchend",Te,ka),A.addEventListener("touchstart",ve,ka),A.addEventListener("touchmove",Fe,ka)}function V(){var A=ne();A.removeEventListener("mousedown",Te,!0),A.removeEventListener("touchend",Te,ka),A.removeEventListener("touchstart",ve,ka),A.removeEventListener("touchmove",Fe,ka)}function Q(A,J){et(A,function(){!y.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&J()})}function Ae(A,J){et(A,J)}function et(A,J){var oe=K().box;function we(ge){ge.target===oe&&(Lu(oe,"remove",we),J())}if(A===0)return J();Lu(oe,"remove",f),Lu(oe,"add",we),f=we}function gt(A,J,oe){oe===void 0&&(oe=!1);var we=ci(y.props.triggerTarget||e);we.forEach(function(ge){ge.addEventListener(A,J,oe),h.push({node:ge,eventType:A,handler:J,options:oe})})}function ut(){D()&&(gt("touchstart",T,{passive:!0}),gt("touchend",P,{passive:!0})),Sx(y.props.trigger).forEach(function(A){if(A!=="manual")switch(gt(A,T),A){case"mouseenter":gt("mouseleave",P);break;case"focus":gt(Rx?"focusout":"blur",H);break;case"focusin":gt("focusout",H);break}})}function pn(){h.forEach(function(A){var J=A.node,oe=A.eventType,we=A.handler,ge=A.options;J.removeEventListener(oe,we,ge)}),h=[]}function T(A){var J,oe=!1;if(!(!y.state.isEnabled||te(A)||l)){var we=((J=d)==null?void 0:J.type)==="focus";d=A,v=A.currentTarget,se(),!y.state.isVisible&&Tx(A)&&ol.forEach(function(ge){return ge(A)}),A.type==="click"&&(y.props.trigger.indexOf("mouseenter")<0||s)&&y.props.hideOnClick!==!1&&y.state.isVisible?oe=!0:Ve(A),A.type==="click"&&(s=!oe),oe&&!we&&I(A)}}function x(A){var J=A.target,oe=R().contains(J)||S.contains(J);if(!(A.type==="mousemove"&&oe)){var we=Jt().concat(S).map(function(ge){var wt,It=ge._tippy,Nr=(wt=It.popperInstance)==null?void 0:wt.state;return Nr?{popperRect:ge.getBoundingClientRect(),popperState:Nr,props:n}:null}).filter(Boolean);Dx(we,A)&&(de(),I(A))}}function P(A){var J=te(A)||y.props.trigger.indexOf("click")>=0&&s;if(!J){if(y.props.interactive){y.hideWithInteractivity(A);return}I(A)}}function H(A){y.props.trigger.indexOf("focusin")<0&&A.target!==R()||y.props.interactive&&A.relatedTarget&&S.contains(A.relatedTarget)||I(A)}function te(A){return jn.isTouch?D()!==A.type.indexOf("touch")>=0:!1}function ue(){vt();var A=y.props,J=A.popperOptions,oe=A.placement,we=A.offset,ge=A.getReferenceClientRect,wt=A.moveTransition,It=N()?Ld(S).arrow:null,Nr=ge?{getBoundingClientRect:ge,contextElement:ge.contextElement||R()}:e,Zi={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Dr){var Pr=Dr.state;if(N()){var Wo=K(),Qi=Wo.box;["placement","reference-hidden","escaped"].forEach(function(Ar){Ar==="placement"?Qi.setAttribute("data-placement",Pr.placement):Pr.attributes.popper["data-popper-"+Ar]?Qi.setAttribute("data-"+Ar,""):Qi.removeAttribute("data-"+Ar)}),Pr.attributes.popper={}}}},Tt=[{name:"offset",options:{offset:we}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!wt}},Zi];N()&&It&&Tt.push({name:"arrow",options:{element:It,padding:3}}),Tt.push.apply(Tt,(J==null?void 0:J.modifiers)||[]),y.popperInstance=_x(Nr,S,Object.assign({},J,{placement:oe,onFirstUpdate:p,modifiers:Tt}))}function vt(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function ot(){var A=y.props.appendTo,J,oe=R();y.props.interactive&&A===A2||A==="parent"?J=oe.parentNode:J=I2(A,[oe]),J.contains(S)||J.appendChild(S),y.state.isMounted=!0,ue(),process.env.NODE_ENV!=="production"&&lr(y.props.interactive&&A===rn.appendTo&&oe.nextElementSibling!==S,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
803
+
804
+ `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
805
+
806
+ `,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
807
+
808
+ `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function Jt(){return Ql(S.querySelectorAll("[data-tippy-root]"))}function Ve(A){y.clearDelayTimeouts(),A&&ce("onTrigger",[y,A]),ie();var J=Z(!0),oe=L(),we=oe[0],ge=oe[1];jn.isTouch&&we==="hold"&&ge&&(J=ge),J?r=setTimeout(function(){y.show()},J):y.show()}function I(A){if(y.clearDelayTimeouts(),ce("onUntrigger",[y,A]),!y.state.isVisible){V();return}if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(A.type)>=0&&s)){var J=Z(!1);J?a=setTimeout(function(){y.state.isVisible&&y.hide()},J):i=requestAnimationFrame(function(){y.hide()})}}function $(){y.state.isEnabled=!0}function Ye(){y.hide(),y.state.isEnabled=!1}function qe(){clearTimeout(r),clearTimeout(a),cancelAnimationFrame(i)}function Ln(A){if(process.env.NODE_ENV!=="production"&&lr(y.state.isDestroyed,ii("setProps")),!y.state.isDestroyed){ce("onBeforeUpdate",[y,A]),pn();var J=y.props,oe=P1(e,Object.assign({},J,T1(A),{ignoreAttributes:!0}));y.props=oe,ut(),J.interactiveDebounce!==oe.interactiveDebounce&&(de(),g=C1(x,oe.interactiveDebounce)),J.triggerTarget&&!oe.triggerTarget?ci(J.triggerTarget).forEach(function(we){we.removeAttribute("aria-expanded")}):oe.triggerTarget&&e.removeAttribute("aria-expanded"),se(),X(),C&&C(J,oe),y.popperInstance&&(ue(),Jt().forEach(function(we){requestAnimationFrame(we._tippy.popperInstance.forceUpdate)})),ce("onAfterUpdate",[y,A])}}function hn(A){y.setProps({content:A})}function mn(){process.env.NODE_ENV!=="production"&&lr(y.state.isDestroyed,ii("show"));var A=y.state.isVisible,J=y.state.isDestroyed,oe=!y.state.isEnabled,we=jn.isTouch&&!y.props.touch,ge=Au(y.props.duration,0,rn.duration);if(!(A||J||oe||we)&&!R().hasAttribute("disabled")&&(ce("onShow",[y],!1),y.props.onShow(y)!==!1)){if(y.state.isVisible=!0,N()&&(S.style.visibility="visible"),X(),ie(),y.state.isMounted||(S.style.transition="none"),N()){var wt=K(),It=wt.box,Nr=wt.content;Iu([It,Nr],0)}p=function(){var Tt;if(!(!y.state.isVisible||u)){if(u=!0,S.offsetHeight,S.style.transition=y.props.moveTransition,N()&&y.props.animation){var ma=K(),Dr=ma.box,Pr=ma.content;Iu([Dr,Pr],ge),O1([Dr,Pr],"visible")}Y(),se(),E1(Ru,y),(Tt=y.popperInstance)==null||Tt.forceUpdate(),ce("onMount",[y]),y.props.animation&&N()&&Ae(ge,function(){y.state.isShown=!0,ce("onShown",[y])})}},ot()}}function Sn(){process.env.NODE_ENV!=="production"&&lr(y.state.isDestroyed,ii("hide"));var A=!y.state.isVisible,J=y.state.isDestroyed,oe=!y.state.isEnabled,we=Au(y.props.duration,1,rn.duration);if(!(A||J||oe)&&(ce("onHide",[y],!1),y.props.onHide(y)!==!1)){if(y.state.isVisible=!1,y.state.isShown=!1,u=!1,s=!1,N()&&(S.style.visibility="hidden"),de(),V(),X(!0),N()){var ge=K(),wt=ge.box,It=ge.content;y.props.animation&&(Iu([wt,It],we),O1([wt,It],"hidden"))}Y(),se(),y.props.animation?N()&&Q(we,y.unmount):y.unmount()}}function Ji(A){process.env.NODE_ENV!=="production"&&lr(y.state.isDestroyed,ii("hideWithInteractivity")),ne().addEventListener("mousemove",g),E1(ol,g),g(A)}function ni(){process.env.NODE_ENV!=="production"&&lr(y.state.isDestroyed,ii("unmount")),y.state.isVisible&&y.hide(),y.state.isMounted&&(vt(),Jt().forEach(function(A){A._tippy.unmount()}),S.parentNode&&S.parentNode.removeChild(S),Ru=Ru.filter(function(A){return A!==y}),y.state.isMounted=!1,ce("onHidden",[y]))}function Mr(){process.env.NODE_ENV!=="production"&&lr(y.state.isDestroyed,ii("destroy")),!y.state.isDestroyed&&(y.clearDelayTimeouts(),y.unmount(),pn(),delete e._tippy,y.state.isDestroyed=!0,ce("onDestroy",[y]))}}function st(e,t){t===void 0&&(t={});var n=rn.plugins.concat(t.plugins||[]);process.env.NODE_ENV!=="production"&&($x(e),$2(t,n)),Ix();var r=Object.assign({},t,{plugins:n}),a=Mx(e);if(process.env.NODE_ENV!=="production"){var i=Ks(r.content),s=a.length>1;lr(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
809
+
810
+ `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
811
+
812
+ `,`1) content: element.innerHTML
813
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var l=a.reduce(function(c,u){var d=u&&Yx(u,r);return d&&c.push(d),c},[]);return Ks(e)?l[0]:l}st.defaultProps=rn;st.setDefaultProps=jx;st.currentInput=jn;Object.assign({},w2,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});st.setDefaultProps({render:F2});const z2={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},isRoot:{type:Boolean,required:!0},quantityNeeded:{type:Number,required:!1,default:void 0},deckList:{type:Object,required:!1,default(){return{}}},isDeckBuilder:{type:Boolean,required:!1,default:!1},userCardQuantity:{type:Object,required:!1,default:void 0},showTippyLocation:{type:String,required:!1,default:null}};var $r=(e=>(e.Standard="client_Formats_Standard_name",e.Eternal="client_Formats_Eternal_name",e.CommonsOnly="client_Formats_CommonsOnly_name",e.Singleton="client_Deckbuilder_RulesFilters_Singleton",e.EvenCost="client_Formats_EvenCostCards_name",e))($r||{}),hi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},j2={},Mi={},Zf={};Object.defineProperty(Zf,"__esModule",{value:!0});class Pa{constructor(t){this.bytes=new Uint8Array(t)}get length(){return this.bytes.length}PopVarint(){let t=0,n=0,r=0;for(let a=0;a<this.bytes.length;a++){r++;const i=this.bytes[a]&Pa.AllButMSB;if(t|=i<<n,(this.bytes[a]&Pa.JustMSB)!=Pa.JustMSB)return this.bytes=this.bytes.slice(r),t;n+=7}throw"Byte array did not contain valid varints."}sliceAndSet(t,n){this.bytes=this.bytes.slice(t,n)}get(t){return this.bytes[t]}static GetVarint(t){const n=new Uint8Array(10);let r=0;if(t==0)return new Uint8Array([0]);for(;t!==0;){let a=t&this.AllButMSB;t>>=7,t!=0&&(a|=this.JustMSB),n[r++]=a}return n.slice(0,r)}}Zf.default=Pa;Pa.AllButMSB=127;Pa.JustMSB=128;var Ni={};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.mergeUint8Arrays=Ni.sortDeck=void 0;function qx(e){e.sort((t,n)=>t.cardCode<n.cardCode?-1:1)}Ni.sortDeck=qx;function Gx(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}Ni.mergeUint8Arrays=Gx;var Di={};Object.defineProperty(Di,"__esModule",{value:!0});Di.base32Decode=Di.base32Encode=void 0;const Rd="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";function Xx(e){const t=e.byteLength,n=new Uint8Array(e);let r=0,a="",i=0;for(let s=0;s<t;s++)for(i=i<<8|n[s],r+=8;r>=5;)a+=Rd[i>>>r-5&31],r-=5;for(r>0&&(a+=Rd[i<<5-r&31]);a.length%8!==0;)a+="=";return a}Di.base32Encode=Xx;function Kx(e){function t(l){const c=Rd.indexOf(l);if(c===-1)throw new Error("Invalid character found: "+l);return c}const n=e.toUpperCase().replace(/\=+$/,"");let r=0,a=0,i=0;const s=new Uint8Array(n.length*5/8|0);for(let l=0;l<n.length;l++)i=i<<5|t(n[l]),r+=5,r>=8&&(s[a++]=i>>>r-8&255,r-=8);return s.buffer}Di.base32Decode=Kx;var Jx=hi&&hi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.getCodeFromDeck=Mi.getDeckFromCode=void 0;const Bn=Jx(Zf),Lt=Ni,L1=Di;class ze{static getMinSupportedLibraryVersion(t){if(!t)return ze.INITIAL_VERSION;const n=t.map(r=>r.cardCode.substr(2,2)).map(r=>this.FACTION_CODE_TO_LIBRARY_VERSION[r]||this.INITIAL_VERSION);return Math.max(...n)}static getDeckFromCode(t){const n=[],r=L1.base32Decode(t);if(!r)throw"Invalid deck code";const a=new Bn.default(r);a.get(0)>>4;const i=a.get(0)&15;if(a.sliceAndSet(1),i>ze.MAX_KNOWN_VERSION)throw"The provided code requires a higher version of this library; please update.";for(let s=3;s>0;s--){const l=a.PopVarint();for(let c=0;c<l;c++){const u=a.PopVarint(),d=a.PopVarint(),f=a.PopVarint();for(let p=0;p<u;p++){const h=a.PopVarint(),g=d.toString().padStart(2,"0"),v=this.INT_TO_FACTION_CODE[f],b=h.toString().padStart(3,"0"),m={cardCode:g+v+b,count:s};n.push(m)}}}for(;a.length>0;){const s=a.PopVarint(),l=a.PopVarint(),c=a.PopVarint(),u=a.PopVarint(),d=l.toString().padStart(2,"0"),f=this.INT_TO_FACTION_CODE[c],p=u.toString().padStart(3,"0"),h={cardCode:d+f+p,count:s};n.push(h)}return n}static getCodeFromDeck(t){const n=this.getDeckCodeBytes(t);return L1.base32Encode(n)}static getDeckCodeBytes(t){if(!ze.ValidCardCodesAndCounts(t))throw"The provided deck contains invalid card codes.";const n=this.FORMAT<<this.MAX_KNOWN_VERSION|this.getMinSupportedLibraryVersion(t)&15;let r=new Uint8Array([n]);const a=[],i=[],s=[],l=[];for(const v of t)if(v.count==3)a.push(v);else if(v.count==2)i.push(v);else if(v.count==1)s.push(v);else{if(v.count<1)throw"Invalid count of "+v.count+" for card "+v.cardCode;l.push(v)}let c=ze.GetGroupedOfs(a),u=ze.GetGroupedOfs(i),d=ze.GetGroupedOfs(s);c=ze.SortGroupOf(c),u=ze.SortGroupOf(u),d=ze.SortGroupOf(d),Lt.sortDeck(l);const f=ze.EncodeGroupOf(c),p=ze.EncodeGroupOf(u),h=ze.EncodeGroupOf(d),g=ze.EncodeNOfs(l);return r=Lt.mergeUint8Arrays(r,f),r=Lt.mergeUint8Arrays(r,p),r=Lt.mergeUint8Arrays(r,h),r=Lt.mergeUint8Arrays(r,g),r}static GetGroupedOfs(t){const n=[];for(;t.length>0;){const r=[],a=t[0].cardCode,{set:i,faction:s,number:l}=ze.ParseCardCode(a);r.push(t[0]),t.shift();for(let c=t.length-1;c>=0;c--){const u=t[c].cardCode,d=Number(u.substring(0,2)),f=u.substring(2,4);d===i&&f===s&&(r.push(t[c]),t.splice(c,1))}n.push(r)}return n}static EncodeNOfs(t){let n=new Uint8Array;for(const r of t){n=Lt.mergeUint8Arrays(n,Bn.default.GetVarint(r.count));const{set:a,faction:i,number:s}=ze.ParseCardCode(r.cardCode),l=this.FACTION_CODE_TO_INT[i];n=Lt.mergeUint8Arrays(n,Bn.default.GetVarint(a)),n=Lt.mergeUint8Arrays(n,Bn.default.GetVarint(l)),n=Lt.mergeUint8Arrays(n,Bn.default.GetVarint(s))}return n}static SortGroupOf(t){const n=t.sort((r,a)=>r.length<a.length?-1:1);return n.forEach(r=>Lt.sortDeck(r)),n}static EncodeGroupOf(t){let n=new Uint8Array([]);n=Lt.mergeUint8Arrays(n,Bn.default.GetVarint(t.length));for(const r of t){n=Lt.mergeUint8Arrays(n,Bn.default.GetVarint(r.length));const a=r[0].cardCode,{set:i,faction:s}=ze.ParseCardCode(a),l=this.FACTION_CODE_TO_INT[s];n=Lt.mergeUint8Arrays(n,Bn.default.GetVarint(i)),n=Lt.mergeUint8Arrays(n,Bn.default.GetVarint(l));for(const c of r){const u=c.cardCode,d=Number(u.substring(4,7));n=Lt.mergeUint8Arrays(n,Bn.default.GetVarint(d))}}return n}static ParseCardCode(t){return{set:Number(t.substring(0,2)),faction:t.substring(2,4),number:Number(t.substring(4,7))}}static ValidCardCodesAndCounts(t){for(const n of t){if(n.cardCode.length!=ze.CARD_CODE_LENGTH||isNaN(Number(n.cardCode.substring(0,2))))return!1;const r=n.cardCode.substring(2,4);if(this.FACTION_CODE_TO_INT[r]===void 0||isNaN(Number(n.cardCode.substring(4,7)))||n.count<1)return!1}return!0}}ze.CARD_CODE_LENGTH=7;ze.MAX_KNOWN_VERSION=5;ze.FORMAT=1;ze.INITIAL_VERSION=1;ze.FACTION_CODE_TO_INT={DE:0,FR:1,IO:2,NX:3,PZ:4,SI:5,BW:6,SH:7,MT:9,BC:10,RU:12};ze.INT_TO_FACTION_CODE={0:"DE",1:"FR",2:"IO",3:"NX",4:"PZ",5:"SI",6:"BW",7:"SH",9:"MT",10:"BC",12:"RU"};ze.FACTION_CODE_TO_LIBRARY_VERSION={DE:1,FR:1,IO:1,NX:1,PZ:1,SI:1,BW:2,MT:2,SH:3,BC:4,RU:5};const Zx=e=>ze.getDeckFromCode(e);Mi.getDeckFromCode=Zx;const Qx=e=>ze.getCodeFromDeck(e);Mi.getCodeFromDeck=Qx;var H2={};Object.defineProperty(H2,"__esModule",{value:!0});(function(e){var t=hi&&hi.__createBinding||(Object.create?function(r,a,i,s){s===void 0&&(s=i),Object.defineProperty(r,s,{enumerable:!0,get:function(){return a[i]}})}:function(r,a,i,s){s===void 0&&(s=i),r[s]=a[i]}),n=hi&&hi.__exportStar||function(r,a){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(Mi,e),n(H2,e)})(j2);function Zs(e){return/^\d+$/.test(e[0])}function Pi(e){return e===void 0?!1:e.supertype==="Champion"&&e.typeRef==="Unit"}function e7(e){if(e===void 0)return Math.random();typeof e=="string"&&(e=Number(e.split("").map(function(n){return n.charCodeAt(0)+1}).join("")));const t=Math.sin(e++)*1e4;return t-Math.floor(t)}function R1(e){return`#${Math.floor(e7(e)*16777215).toString(16)}`}function Mn(e,t=.5){return e>=t+.15||e>=1?"--color-excellent":e>=t+.05?"--color-good":e>=t+.005?"--color-good-lite":e<t+.005&&e>t-.005?"--color-median":e>=t-.05?"--color-bad-lite":"--color-bad"}function Me(e,t=0,n){return Number(e.toFixed(t)).toLocaleString(void 0,{maximumSignificantDigits:n===void 0?e>1e4?3:2:n})}function t7(e,t){return Math.floor(Math.random()*(t-e)+e)}function n7(e,t){return e.reduce((n,r)=>{var a;return(n[a=t(r)]||(n[a]=[])).push(r),n},{})}function ec(e,t){var i;if(t)return null;const n=Dt().cardJsonObject,r=Ce().dataJson;let a=0;for(const s in e){const l=(i=r.rarities.find(u=>u.nameRef===n[s].rarityRef))==null?void 0:i.cost;if(l===void 0)continue;const c=t?Math.max(0,e[s]):e[s];a+=l*c}return a}function za(e,t,n){const r=[],a=[i=>Pi(i),i=>i.typeRef==="Landmark",i=>i.typeRef==="Unit"&&!Pi(i),i=>i.typeRef==="Spell",i=>i.typeRef==="Equipment"];for(;r.length<n;){const i=a.shift();if(!i)break;r.push(...r7(e.filter(i),t,n-r.length))}return r}function r7(e,t,n){return e.sort((r,a)=>t[a.cardCode]-t[r.cardCode]).sort((r,a)=>a.cost-r.cost).slice(0,n)}function Et(e){return e===""?{}:j2.getDeckFromCode(e).reduce((t,n)=>({...t,[n.cardCode]:n.count}),{})}function cn(e){return Object.keys(e).map(t=>Dt().cardJsonObject[t]).filter(t=>t!==void 0).sort((t,n)=>t.name.localeCompare(n.name)).sort((t,n)=>t.cost-n.cost)}function a7(e){return Ic(Et(e))}function Ic(e){const t=Dt().cardJsonObject,n=Object.keys(e).map(r=>t[r]).filter(r=>r!==void 0);return Lc(n)}function Lc(e){const t=[];for(const n of e)n.regionRefs.length===1&&!t.includes(n.regionRefs[0])&&t.push(n.regionRefs[0]);if(e.every(n=>n.regionRefs.filter(r=>t.includes(r)).length>0))return t;for(const n of e){const r=n.regionRefs.filter(a=>!Zs(a));r.length===1&&t.push(r[0])}return t}function Ca(e,t,n=!1){var i,s;const r=Ce().dataJson,a=`var(${((i=r.regions.find(l=>l.nameRef===e.regionRefs[0]))==null?void 0:i.color)||"--color-primary-2"}${n?"-rgb":""})`;if(e.regionRefs.length===1||!t||t.length<2)return a;for(const l of t)if(e.regionRefs.includes(l))return`var(${((s=r.regions.find(c=>c.nameRef===l))==null?void 0:s.color)||"--color-primary-2"}${n?"-rgb":""})`;return a}function i7(e){return Qs(`--color-${e}`)||Qs("--color-primary-2")}function Qs(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function s7(e){var t,n;return Zs(e)?((t=Dt().cardJsonObject[e])==null?void 0:t.name)||"Runeterra":(n=Ce().dataJson.regions.find(r=>r.nameRef===e))==null?void 0:n.name}function o7(e,t){t||(t=Ic(e));const n={};for(const r of t)n[r]=0;for(const r in e){const a=Dt().cardJsonObject[r];a&&(n[W2(a,t)]+=e[r])}return n}function W2(e,t){for(const n of e.regionRefs)if(t.includes(n))return n;throw new Error("Card's region was unfound.")}function l7(e){if(navigator.clipboard){navigator.clipboard.writeText(e);return}const t=document.createElement("textarea");document.body.appendChild(t),t.value=e,t.select(),document.execCommand("copy"),document.body.removeChild(t)}function _o(e,t,n=!0){return o.computed(()=>{if(e)return e;if(!t){if(n)throw new Error("CardProp or CardCodeProp must be defined.");return}return Dt().cardJsonObject[t]})}function c7(e,t,n){if(!e&&t&&(e=cn(t)),!e&&n&&(e=cn(Et(n))),!e)throw new Error("At least one argument must be defined.");let r=[$r.CommonsOnly,$r.Eternal,$r.Standard,$r.EvenCost,$r.Singleton];for(const a of e)r=r.filter(i=>a.formats.includes(i));return r}const u7=["alt","src"],d7={key:0,class:"quantity-ticks-container"},f7={key:0},p7={key:0,class:"card-info-quantity-possessed"},h7={key:1,class:"line"},m7={class:"card-info-title"},g7={class:"card-info-text"},v7={key:2,class:"line"},_7={key:3,class:"card-info-text"},y7={key:1,class:"associated-card-container"},b7=o.defineComponent({__name:"CardItem",props:z2,setup(e){const t=e,n=o.ref(null),r=o.ref(null);let a=null;const i=o.ref(!1),s=_o(t.cardProp,t.cardCodeProp),l=o.computed(()=>s.value===void 0?null:t.quantityNeeded!=null&&t.userCardQuantity!=null&&s.value.cardCode in t.userCardQuantity&&t.quantityNeeded>t.userCardQuantity[s.value.cardCode]?"bad":null),c=o.computed(()=>{if(s.value===void 0)return[];const b=[];if(t.isRoot)for(const m of s.value.associatedCardRefs)b.push(Dt().cardJsonObject[m]);return b}),u=o.computed(()=>{if(s.value===void 0)return[];const b=[];for(const m of s.value.keywordRefs){const _=Ce().dataJson.keywords.find(k=>k.nameRef===m);_&&b.push(_)}return b}),d=o.computed(()=>t.isRoot&&(t.userCardQuantity!=null||s.value&&(s.value.keywordRefs.length>0||s.value.associatedCardRefs.length>0))),f=o.computed(()=>{var b;return t.userCardQuantity==null||s.value&&!(s.value.cardCode in t.userCardQuantity)?0:t.userCardQuantity[((b=s.value)==null?void 0:b.cardCode)??0]}),p=o.computed(()=>s.value===void 0?null:t.isDeckBuilder&&t.deckList[s.value.cardCode]===3?"disabled":null);o.watch(()=>t.showTippyLocation,b=>{a&&(b?(a.setProps({placement:b}),a.show()):a.hide())});function h(){window.addEventListener("keyup",b=>{b.key=="Shift"&&(i.value=!1)})}function g(){window.addEventListener("keydown",b=>{b.key=="Shift"&&(i.value=!0)})}function v(b){return s.value===void 0?null:t.isDeckBuilder?!(s.value.cardCode in t.deckList)||b>t.deckList[s.value.cardCode]?"disabled":null:b>f.value?"disabled":null}return o.onMounted(()=>{(s.value===void 0||t.userCardQuantity!=null||s.value.keywordRefs.length>0||s.value.associatedCardRefs.length>0)&&(a=st(n.value,{allowHTML:!0,content:r.value,placement:"right-start",duration:0,role:"card-info",maxWidth:"50vw"})),(s.value===void 0||s.value.associatedCardRefs.length>0)&&(h(),g())}),(b,m)=>{var k,y,w;const _=o.resolveComponent("CardItem",!0);return o.openBlock(),o.createElementBlock("div",{class:"card-item-container",onMouseover:m[0]||(m[0]=S=>!0),onMouseleave:m[1]||(m[1]=S=>!1)},[o.createElementVNode("img",{ref_key:"cardItem",ref:n,alt:(k=o.unref(s))==null?void 0:k.name,class:o.normalizeClass(["card-item",o.unref(p)]),src:`https://lor.gg/storage/cards/card/en_us/${(y=o.unref(s))==null?void 0:y.cardCode}.webp`},null,10,u7),(b.isDeckBuilder||b.userCardQuantity!=null)&&((w=o.unref(s))!=null&&w.collectible)?(o.openBlock(),o.createElementBlock("div",d7,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(3,S=>o.createElementVNode("div",{key:S,class:o.normalizeClass(["quantity-tick",v(S)])},null,2)),64))])):o.createCommentVNode("",!0),o.createElementVNode("div",{ref_key:"cardInfo",ref:r,class:o.normalizeClass(i.value?null:"card-info")},[!i.value&&o.unref(d)&&o.unref(s)?(o.openBlock(),o.createElementBlock("div",f7,[o.unref(f)!==void 0?(o.openBlock(),o.createElementBlock("div",p7,[o.createTextVNode(o.toDisplayString("You have: ")+" "),o.createElementVNode("b",{class:o.normalizeClass(o.unref(l))},o.toDisplayString(o.unref(f)+" / "+(b.quantityNeeded||3)),3)])):o.createCommentVNode("",!0),o.unref(f)!==void 0&&(o.unref(s).keywordRefs.length>0||o.unref(s).associatedCardRefs.length>0)?(o.openBlock(),o.createElementBlock("hr",h7)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(u),S=>(o.openBlock(),o.createElementBlock("div",{key:S.nameRef,class:"card-info-section"},[o.createElementVNode("h4",m7,o.toDisplayString(S.name),1),o.createElementVNode("p",g7,o.toDisplayString(S.description),1)]))),128)),o.unref(s).keywordRefs.length>0&&o.unref(s).associatedCardRefs.length>0?(o.openBlock(),o.createElementBlock("hr",v7)):o.createCommentVNode("",!0),o.unref(s).associatedCardRefs.length>0?(o.openBlock(),o.createElementBlock("div",_7,o.toDisplayString("Hold Shift to see Associated Cards"))):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",y7,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),S=>(o.openBlock(),o.createBlock(_,{key:S.cardCode,"card-code-prop":S.cardCode,"is-deck-builder":!1,"is-root":!1,class:"associated-card"},null,8,["card-code-prop"]))),128))]))],2)],32)}}});const B=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Sr=B(b7,[["__scopeId","data-v-41c84b70"]]),k7=o.defineComponent({__name:"RevealCarousel",props:uS,setup(e){var l;const t=e,n=[rS],r=o.ref(null),a=o.ref((l=r.value)==null?void 0:l.clientWidth),i=o.computed(()=>a.value===void 0?!0:a.value<400);function s(){var c;a.value=(c=r.value)==null?void 0:c.clientWidth}return o.onMounted(()=>{window.addEventListener("resize",s),s()}),o.onUnmounted(()=>{window.removeEventListener("resize",s)}),(c,u)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"revealCarousel",ref:r,class:"reveal-carousel"},[o.createVNode(o.unref(_2),{"slides-per-view":"auto","space-between":15,"centered-slides":o.unref(i),navigation:!0,modules:n},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.cardCodes,d=>(o.openBlock(),o.createBlock(o.unref(y2),{key:d},{default:o.withCtx(()=>[o.createVNode(Sr,{class:"card-item-called","card-code-prop":d,"is-root":!0},null,8,["card-code-prop"])]),_:2},1024))),128))]),_:1},8,["centered-slides"])],512))}});const Qf=B(k7,[["__scopeId","data-v-430f2bb4"]]),w7={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},ignoreCardItem:{type:Boolean,required:!1,default:void 0},color:{type:String,required:!1,default:void 0},name:{type:String,required:!1,default:void 0},manaNumber:{type:Number,required:!1,default:void 0},quantityNumber:{type:Number,required:!1,default:void 0},maintainAspectRatio:{type:Boolean,required:!1,default:!0},showPlusMinus:{type:Boolean,required:!1,default:!1}},S7={},x7={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 31 36"},C7=o.createStaticVNode('<defs><linearGradient id="a" x1=".08" y1=".82" x2="1" y2=".19" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#0466c8"></stop><stop offset="1" stop-color="#003a9e"></stop></linearGradient></defs><g transform="rotate(90 15.5 15.5)" fill="url(#a)"><path d="M23.55 30.5h-11.1a5.52 5.52 0 0 1-4.75-2.74l-5.52-9.5a5.51 5.51 0 0 1 0-5.52l5.52-9.5A5.52 5.52 0 0 1 12.45.5h11.1a5.52 5.52 0 0 1 4.75 2.74l5.52 9.5c.99 1.7.99 3.82 0 5.52l-5.52 9.5a5.52 5.52 0 0 1-4.75 2.74Z"></path><path d="M12.45 1c-1.77 0-3.43.95-4.32 2.49l-5.52 9.5a5.01 5.01 0 0 0 0 5.02l5.52 9.5A5.02 5.02 0 0 0 12.45 30h11.1c1.77 0 3.43-.95 4.32-2.49l5.52-9.5c.9-1.55.9-3.47 0-5.02l-5.52-9.5A5.02 5.02 0 0 0 23.55 1h-11.1m0-1h11.1a6 6 0 0 1 5.18 2.99l5.52 9.5a6 6 0 0 1 0 6.02l-5.52 9.5A6 6 0 0 1 23.55 31h-11.1a6 6 0 0 1-5.18-2.99l-5.52-9.5a6 6 0 0 1 0-6.02l5.52-9.5A6 6 0 0 1 12.45 0Z" fill="var(--color-gold)"></path></g>',2),E7=[C7];function T7(e,t){return o.openBlock(),o.createElementBlock("svg",x7,E7)}const yo=B(S7,[["render",T7]]),O7={class:"card-slice"},M7={key:0,class:"mana-hexagon"},N7={class:"mana-number"},D7={class:"card-name"},P7={key:1,class:"quantity"},A7={class:"quantity-background"},I7={class:"num-quantity"},L7={class:"plus-minus-content"},R7={class:"plus-minus-quantity"},B7=o.defineComponent({__name:"CardSliceItem",props:w7,emits:["cardupdate"],setup(e){const t=e,n=_o(t.cardProp,t.cardCodeProp,!1),r=o.ref(null),a=o.ref(null),i=o.ref(null),s=o.ref(null),l=o.computed(()=>{let d=t.color;return!d&&n.value&&(d=Ca(n.value,null,!0)),d||(d="var(--color-background-2-rgb)"),`linear-gradient(90deg, rgba(${d}, 1) 0%, rgba(${d}, 1) 30%, rgba(${d}, .10) 70%, rgba(${d}, .00) 100%)`}),c=o.computed(()=>n.value?"https://lor.gg/storage/cards/slice/"+n.value.cardCode+"-slice.webp":""),u=o.computed(()=>{const d=["card-slice-wrapper"];return t.maintainAspectRatio&&d.push("maintain-aspect-ratio"),d});return o.onMounted(()=>{t.ignoreCardItem||st(r.value,{content:i.value,placement:"right",arrow:!0,touch:"hold",duration:0,role:"card-image",onShown:d=>{const f=d.popper.innerHTML.includes("right")?"right-start":"left-start";s.value=f},onHidden:()=>{s.value=null}})}),(d,f)=>{var h,g;const p=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",{ref_key:"cardSlice",ref:r,class:o.normalizeClass(o.unref(u))},[o.createElementVNode("div",O7,[o.createElementVNode("div",{class:"card-image",style:o.normalizeStyle({backgroundImage:`url(${o.unref(c)})`})},null,4),o.createElementVNode("div",{class:"region-gradient",style:o.normalizeStyle({background:o.unref(l)})},null,4),o.unref(n)||t.manaNumber!==void 0&&t.manaNumber!==null?(o.openBlock(),o.createElementBlock("div",M7,[o.createVNode(yo,{class:"hexagon-icon"}),o.createElementVNode("div",N7,o.toDisplayString(t.manaNumber??((h=o.unref(n))==null?void 0:h.cost)),1)])):o.createCommentVNode("",!0),o.createElementVNode("div",D7,o.toDisplayString(t.name??((g=o.unref(n))==null?void 0:g.name)),1),t.quantityNumber!==void 0&&t.quantityNumber!==null?(o.openBlock(),o.createElementBlock("div",P7,[o.createElementVNode("div",A7,[o.createElementVNode("p",I7,o.toDisplayString(t.quantityNumber),1)])])):o.createCommentVNode("",!0),t.showPlusMinus?(o.openBlock(),o.createElementBlock("div",{key:2,class:"plus-minus",onClick:f[2]||(f[2]=o.withModifiers(()=>{},["prevent"]))},[o.createElementVNode("div",L7,[o.createElementVNode("div",{class:"plus-minus-icon",onClick:f[0]||(f[0]=o.withModifiers(v=>{var b;return d.$emit("cardupdate",(b=o.unref(n))==null?void 0:b.cardCode,-1)},["prevent"]))},[o.createVNode(p,{icon:"minus",class:"icon"})]),o.createElementVNode("div",{class:"plus-minus-icon",onClick:f[1]||(f[1]=o.withModifiers(v=>{var b;return d.$emit("cardupdate",(b=o.unref(n))==null?void 0:b.cardCode,1)},["prevent"]))},[o.createVNode(p,{icon:"plus",class:"icon"})]),o.createElementVNode("div",R7,o.toDisplayString(t.quantityNumber),1)])])):o.createCommentVNode("",!0)])],2),o.createElementVNode("div",{ref_key:"cardItemWrapper",ref:i,class:"card-item-container"},[o.unref(n)&&!d.ignoreCardItem?(o.openBlock(),o.createBlock(Sr,{key:0,ref_key:"cardItem",ref:a,"is-root":!0,"card-prop":o.unref(n),"quantity-needed":t.quantityNumber,"show-tippy-location":s.value,class:"card-image-hover"},null,8,["card-prop","quantity-needed","show-tippy-location"])):o.createCommentVNode("",!0)],512)])}}});const an=B(B7,[["__scopeId","data-v-a31abfc0"]]);function $n(e){return[null,void 0].indexOf(e)!==-1}function V7(e,t,n){const{object:r,valueProp:a,mode:i}=o.toRefs(e),s=o.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=d(f);const h=u(f);t.emit("change",h,s),p&&(t.emit("input",h),t.emit("update:modelValue",h))},u=f=>r.value||$n(f)?f:Array.isArray(f)?f.map(p=>p[a.value]):f[a.value],d=f=>$n(f)?i.value==="single"?{}:[]:f;return{update:c}}function $7(e,t){const{value:n,modelValue:r,mode:a,valueProp:i}=o.toRefs(e),s=o.ref(a.value!=="single"?[]:{}),l=r&&r.value!==void 0?r:n,c=o.computed(()=>a.value==="single"?s.value[i.value]:s.value.map(d=>d[i.value])),u=o.computed(()=>a.value!=="single"?s.value.map(d=>d[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:u,plainValue:c}}function F7(e,t,n){const{regex:r}=o.toRefs(e),a=o.getCurrentInstance().proxy,i=n.isOpen,s=n.open,l=o.ref(null),c=o.ref(null),u=()=>{l.value=""},d=h=>{l.value=h.target.value},f=h=>{if(r&&r.value){let g=r.value;typeof g=="string"&&(g=new RegExp(g)),h.key.match(g)||h.preventDefault()}},p=h=>{if(r&&r.value){let v=(h.clipboardData||window.clipboardData).getData("Text"),b=r.value;typeof b=="string"&&(b=new RegExp(b)),v.split("").every(m=>!!m.match(b))||h.preventDefault()}t.emit("paste",h,a)};return o.watch(l,h=>{!i.value&&h&&s(),t.emit("search-change",h,a)}),{search:l,input:c,clearSearch:u,handleSearchInput:d,handleKeypress:f,handlePaste:p}}function z7(e,t,n){const{groupSelect:r,mode:a,groups:i,disabledProp:s}=o.toRefs(e),l=o.ref(null),c=d=>{d===void 0||d!==null&&d[s.value]||i.value&&d&&d.group&&(a.value==="single"||!r.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function Bu(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function j7(e){return Object.prototype.toString.call(e)==="[object Object]"}function H7(e,t){const n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(r,a){return r===n[a]})}function W7(e,t,n){const{options:r,mode:a,trackBy:i,limit:s,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:f,appendNewOption:p,multipleLabel:h,object:g,loading:v,delay:b,resolveOnLoad:m,minChars:_,filterResults:k,clearOnSearch:y,clearOnSelect:w,valueProp:S,allowAbsent:C,groupLabel:E,canDeselect:O,max:L,strict:D,closeOnSelect:N,closeOnDeselect:R,groups:ne,reverse:K,infinite:Z,groupOptions:X,groupHideEmpty:ce,groupSelect:Y,onCreate:se,disabledProp:de,searchStart:Te,searchFilter:Fe}=o.toRefs(e),ve=o.getCurrentInstance().proxy,ie=n.iv,V=n.ev,Q=n.search,Ae=n.clearSearch,et=n.update,gt=n.pointer,ut=n.clearPointer,pn=n.focus,T=n.deactivate,x=n.close,P=n.localize,H=o.ref([]),te=o.ref([]),ue=o.ref(!1),vt=o.ref(null),ot=o.ref(Z.value&&s.value===-1?10:s.value),Jt=o.computed(()=>c.value||u.value||!1),Ve=o.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),I=o.computed(()=>{if(ne.value){let M=qe.value||[],W=[];return M.forEach(Se=>{_u(Se[X.value]).forEach(dt=>{W.push(Object.assign({},dt,Se[de.value]?{[de.value]:!0}:{}))})}),W}else{let M=_u(te.value||[]);return H.value.length&&(M=M.concat(H.value)),M}}),$=o.computed(()=>{let M=I.value;return K.value&&(M=M.reverse()),Mr.value.length&&(M=Mr.value.concat(M)),vu(M)}),Ye=o.computed(()=>{let M=$.value;return ot.value>0&&(M=M.slice(0,ot.value)),M}),qe=o.computed(()=>{if(!ne.value)return[];let M=[],W=te.value||[];return H.value.length&&M.push({[E.value]:" ",[X.value]:[...H.value],__CREATE__:!0}),M.concat(W)}),Ln=o.computed(()=>{let M=[...qe.value].map(W=>({...W}));return Mr.value.length&&(M[0]&&M[0].__CREATE__?M[0][X.value]=[...Mr.value,...M[0][X.value]]:M=[{[E.value]:" ",[X.value]:[...Mr.value],__CREATE__:!0}].concat(M)),M}),hn=o.computed(()=>{if(!ne.value)return[];let M=Ln.value;return I3((M||[]).map((W,Se)=>{const dt=_u(W[X.value]);return{...W,index:Se,group:!0,[X.value]:vu(dt,!1).map(es=>Object.assign({},es,W[de.value]?{[de.value]:!0}:{})),__VISIBLE__:vu(dt).map(es=>Object.assign({},es,W[de.value]?{[de.value]:!0}:{}))}}))}),mn=o.computed(()=>{switch(a.value){case"single":return!$n(ie.value[S.value]);case"multiple":case"tags":return!$n(ie.value)&&ie.value.length>0}}),Sn=o.computed(()=>h!==void 0&&h.value!==void 0?h.value(ie.value,ve):ie.value&&ie.value.length>1?`${ie.value.length} options selected`:"1 option selected"),Ji=o.computed(()=>!I.value.length&&!ue.value&&!Mr.value.length),ni=o.computed(()=>I.value.length>0&&Ye.value.length==0&&(Q.value&&ne.value||!ne.value)),Mr=o.computed(()=>Jt.value===!1||!Q.value?[]:D3(Q.value)!==-1?[]:[{[S.value]:Q.value,[A.value]:Q.value,[d.value]:Q.value,__CREATE__:!0}]),A=o.computed(()=>i.value||d.value),J=o.computed(()=>{switch(a.value){case"single":return null;case"multiple":case"tags":return[]}}),oe=o.computed(()=>v.value||ue.value),we=M=>{switch(typeof M!="object"&&(M=tr(M)),a.value){case"single":et(M);break;case"multiple":case"tags":et(ie.value.concat(M));break}t.emit("select",wt(M),M,ve)},ge=M=>{switch(typeof M!="object"&&(M=tr(M)),a.value){case"single":Zi();break;case"tags":case"multiple":et(Array.isArray(M)?ie.value.filter(W=>M.map(Se=>Se[S.value]).indexOf(W[S.value])===-1):ie.value.filter(W=>W[S.value]!=M[S.value]));break}t.emit("deselect",wt(M),M,ve)},wt=M=>g.value?M:M[S.value],It=M=>{ge(M)},Nr=(M,W)=>{if(W.button!==0){W.preventDefault();return}It(M)},Zi=()=>{t.emit("clear",ve),et(J.value)},Tt=M=>{if(M.group!==void 0)return a.value==="single"?!1:N3(M[X.value])&&M[X.value].length;switch(a.value){case"single":return!$n(ie.value)&&ie.value[S.value]==M[S.value];case"tags":case"multiple":return!$n(ie.value)&&ie.value.map(W=>W[S.value]).indexOf(M[S.value])!==-1}},ma=M=>M[de.value]===!0,Dr=()=>L===void 0||L.value===-1||!mn.value&&L.value>0?!1:ie.value.length>=L.value,Pr=M=>{if(!ma(M)){if(se&&se.value&&!Tt(M)&&M.__CREATE__&&(M={...M},delete M.__CREATE__,M=se.value(M,ve),M instanceof Promise)){ue.value=!0,M.then(W=>{ue.value=!1,Wo(W)});return}Wo(M)}},Wo=M=>{switch(M.__CREATE__&&(M={...M},delete M.__CREATE__),a.value){case"single":if(M&&Tt(M)){O.value&&ge(M),R.value&&(ut(),x());return}M&&Ar(M),w.value&&Ae(),N.value&&(ut(),x()),M&&we(M);break;case"multiple":if(M&&Tt(M)){ge(M),R.value&&(ut(),x());return}if(Dr()){t.emit("max",ve);return}M&&(Ar(M),we(M)),w.value&&Ae(),l.value&&ut(),N.value&&x();break;case"tags":if(M&&Tt(M)){ge(M),R.value&&(ut(),x());return}if(Dr()){t.emit("max",ve);return}M&&Ar(M),w.value&&Ae(),M&&we(M),l.value&&ut(),N.value&&x();break}N.value||pn()},Qi=M=>{if(!(ma(M)||a.value==="single"||!Y.value)){switch(a.value){case"multiple":case"tags":M3(M[X.value])?ge(M[X.value]):we(M[X.value].filter(W=>ie.value.map(Se=>Se[S.value]).indexOf(W[S.value])===-1).filter(W=>!W[de.value]).filter((W,Se)=>ie.value.length+1+Se<=L.value||L.value===-1));break}N.value&&T()}},Ar=M=>{tr(M[S.value])===void 0&&Jt.value&&(t.emit("tag",M[S.value],ve),t.emit("option",M[S.value],ve),t.emit("create",M[S.value],ve),Ve.value&&A3(M),Ae())},O3=()=>{a.value!=="single"&&we(Ye.value.filter(M=>!M.disabled&&!Tt(M)))},M3=M=>M.find(W=>!Tt(W)&&!W[de.value])===void 0,N3=M=>M.find(W=>!Tt(W))===void 0,tr=M=>I.value[I.value.map(W=>String(W[S.value])).indexOf(String(M))],D3=(M,W=!0)=>I.value.map(Se=>parseInt(Se[A.value])==Se[A.value]?parseInt(Se[A.value]):Se[A.value]).indexOf(parseInt(M)==M?parseInt(M):M),P3=M=>["tags","multiple"].indexOf(a.value)!==-1&&l.value&&Tt(M),A3=M=>{H.value.push(M)},I3=M=>ce.value?M.filter(W=>Q.value?W.__VISIBLE__.length:W[X.value].length):M.filter(W=>Q.value?W.__VISIBLE__.length:!0),vu=(M,W=!0)=>{let Se=M;if(Q.value&&k.value){let dt=Fe.value;dt||(dt=(es,DJ)=>{let nm=Bu(P(es[A.value]),D.value);return Te.value?nm.startsWith(Bu(Q.value,D.value)):nm.indexOf(Bu(Q.value,D.value))!==-1}),Se=Se.filter(dt)}return l.value&&W&&(Se=Se.filter(dt=>!P3(dt))),Se},_u=M=>{let W=M;return j7(W)&&(W=Object.keys(W).map(Se=>{let dt=W[Se];return{[S.value]:Se,[A.value]:dt,[d.value]:dt}})),W=W.map(Se=>typeof Se=="object"?Se:{[S.value]:Se,[A.value]:Se,[d.value]:Se}),W},Uo=()=>{$n(V.value)||(ie.value=qo(V.value))},Yo=M=>(ue.value=!0,new Promise((W,Se)=>{r.value(Q.value,ve).then(dt=>{te.value=dt||[],typeof M=="function"&&M(dt),ue.value=!1}).catch(dt=>{console.error(dt),te.value=[],ue.value=!1}).finally(()=>{W()})})),yu=()=>{if(mn.value)if(a.value==="single"){let M=tr(ie.value[S.value]);if(M!==void 0){let W=M[d.value];ie.value[d.value]=W,g.value&&(V.value[d.value]=W)}}else ie.value.forEach((M,W)=>{let Se=tr(ie.value[W][S.value]);if(Se!==void 0){let dt=Se[d.value];ie.value[W][d.value]=dt,g.value&&(V.value[W][d.value]=dt)}})},L3=M=>{Yo(M)},qo=M=>$n(M)?a.value==="single"?{}:[]:g.value?M:a.value==="single"?tr(M)||(C.value?{[d.value]:M,[S.value]:M,[A.value]:M}:{}):M.filter(W=>!!tr(W)||C.value).map(W=>tr(W)||{[d.value]:W,[S.value]:W,[A.value]:W}),tm=()=>{vt.value=o.watch(Q,M=>{M.length<_.value||!M&&_.value!==0||(ue.value=!0,y.value&&(te.value=[]),setTimeout(()=>{M==Q.value&&r.value(Q.value,ve).then(W=>{(M==Q.value||!Q.value)&&(te.value=W,gt.value=Ye.value.filter(Se=>Se[de.value]!==!0)[0]||null,ue.value=!1)}).catch(W=>{console.error(W)})},b.value))},{flush:"sync"})};if(a.value!=="single"&&!$n(V.value)&&!Array.isArray(V.value))throw new Error(`v-model must be an array when using "${a.value}" mode`);return r&&typeof r.value=="function"?m.value?Yo(Uo):g.value==!0&&Uo():(te.value=r.value,Uo()),b.value>-1&&tm(),o.watch(b,(M,W)=>{vt.value&&vt.value(),M>=0&&tm()}),o.watch(V,M=>{if($n(M)){et(qo(M),!1);return}switch(a.value){case"single":(g.value?M[S.value]!=ie.value[S.value]:M!=ie.value[S.value])&&et(qo(M),!1);break;case"multiple":case"tags":H7(g.value?M.map(W=>W[S.value]):M,ie.value.map(W=>W[S.value]))||et(qo(M),!1);break}},{deep:!0}),o.watch(r,(M,W)=>{typeof e.options=="function"?m.value&&(!W||M&&M.toString()!==W.toString())&&Yo():(te.value=e.options,Object.keys(ie.value).length||Uo(),yu())}),o.watch(d,yu),{pfo:$,fo:Ye,filteredOptions:Ye,hasSelected:mn,multipleLabelText:Sn,eo:I,extendedOptions:I,eg:qe,extendedGroups:qe,fg:hn,filteredGroups:hn,noOptions:Ji,noResults:ni,resolving:ue,busy:oe,offset:ot,select:we,deselect:ge,remove:It,selectAll:O3,clear:Zi,isSelected:Tt,isDisabled:ma,isMax:Dr,getOption:tr,handleOptionClick:Pr,handleGroupClick:Qi,handleTagRemove:Nr,refreshOptions:L3,resolveOptions:Yo,refreshLabels:yu}}function U7(e,t,n){const{valueProp:r,showOptions:a,searchable:i,groupLabel:s,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=o.toRefs(e),p=n.fo,h=n.fg,g=n.handleOptionClick,v=n.handleGroupClick,b=n.search,m=n.pointer,_=n.setPointer,k=n.clearPointer,y=n.multiselect,w=n.isOpen,S=o.computed(()=>p.value.filter(V=>!V[d.value])),C=o.computed(()=>h.value.filter(V=>!V[d.value])),E=o.computed(()=>c.value!=="single"&&u.value),O=o.computed(()=>m.value&&m.value.group),L=o.computed(()=>ve(m.value)),D=o.computed(()=>{const V=O.value?m.value:ve(m.value),Q=C.value.map(et=>et[s.value]).indexOf(V[s.value]);let Ae=C.value[Q-1];return Ae===void 0&&(Ae=R.value),Ae}),N=o.computed(()=>{let V=C.value.map(Q=>Q.label).indexOf(O.value?m.value[s.value]:ve(m.value)[s.value])+1;return C.value.length<=V&&(V=0),C.value[V]}),R=o.computed(()=>[...C.value].slice(-1)[0]),ne=o.computed(()=>m.value.__VISIBLE__.filter(V=>!V[d.value])[0]),K=o.computed(()=>{const V=L.value.__VISIBLE__.filter(Q=>!Q[d.value]);return V[V.map(Q=>Q[r.value]).indexOf(m.value[r.value])-1]}),Z=o.computed(()=>{const V=ve(m.value).__VISIBLE__.filter(Q=>!Q[d.value]);return V[V.map(Q=>Q[r.value]).indexOf(m.value[r.value])+1]}),X=o.computed(()=>[...D.value.__VISIBLE__.filter(V=>!V[d.value])].slice(-1)[0]),ce=o.computed(()=>[...R.value.__VISIBLE__.filter(V=>!V[d.value])].slice(-1)[0]),Y=V=>m.value&&(!V.group&&m.value[r.value]===V[r.value]||V.group!==void 0&&m.value[s.value]===V[s.value])?!0:void 0,se=()=>{_(S.value[0]||null)},de=()=>{!m.value||m.value[d.value]===!0||(O.value?v(m.value):g(m.value))},Te=()=>{if(m.value===null)_((l.value&&E.value?C.value[0].__CREATE__?S.value[0]:C.value[0]:S.value[0])||null);else if(l.value&&E.value){let V=O.value?ne.value:Z.value;V===void 0&&(V=N.value,V.__CREATE__&&(V=V[f.value][0])),_(V||null)}else{let V=S.value.map(Q=>Q[r.value]).indexOf(m.value[r.value])+1;S.value.length<=V&&(V=0),_(S.value[V]||null)}o.nextTick(()=>{ie()})},Fe=()=>{if(m.value===null){let V=S.value[S.value.length-1];l.value&&E.value&&(V=ce.value,V===void 0&&(V=R.value)),_(V||null)}else if(l.value&&E.value){let V=O.value?X.value:K.value;V===void 0&&(V=O.value?D.value:L.value,V.__CREATE__&&(V=X.value,V===void 0&&(V=D.value))),_(V||null)}else{let V=S.value.map(Q=>Q[r.value]).indexOf(m.value[r.value])-1;V<0&&(V=S.value.length-1),_(S.value[V]||null)}o.nextTick(()=>{ie()})},ve=V=>C.value.find(Q=>Q.__VISIBLE__.map(Ae=>Ae[r.value]).indexOf(V[r.value])!==-1),ie=()=>{let V=y.value.querySelector("[data-pointed]");if(!V)return;let Q=V.parentElement.parentElement;l.value&&(Q=O.value?V.parentElement.parentElement.parentElement:V.parentElement.parentElement.parentElement.parentElement),V.offsetTop+V.offsetHeight>Q.clientHeight+Q.scrollTop&&(Q.scrollTop=V.offsetTop+V.offsetHeight-Q.clientHeight),V.offsetTop<Q.scrollTop&&(Q.scrollTop=V.offsetTop)};return o.watch(b,V=>{i.value&&(V.length&&a.value?se():k())}),o.watch(w,V=>{if(V){let Q=y.value.querySelectorAll("[data-selected]")[0];if(!Q)return;let Ae=Q.parentElement.parentElement;o.nextTick(()=>{Ae.scrollTop>0||(Ae.scrollTop=Q.offsetTop)})}}),{pointer:m,canPointGroups:E,isPointed:Y,setPointerFirst:se,selectPointer:de,forwardPointer:Te,backwardPointer:Fe}}function Y7(e,t,n){const{disabled:r}=o.toRefs(e),a=o.getCurrentInstance().proxy,i=o.ref(!1);return{isOpen:i,open:()=>{i.value||r.value||(i.value=!0,t.emit("open",a))},close:()=>{i.value&&(i.value=!1,t.emit("close",a))}}}function q7(e,t,n){const{searchable:r,disabled:a,clearOnBlur:i}=o.toRefs(e),s=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,f=o.ref(null),p=o.ref(null),h=o.ref(null),g=o.ref(!1),v=o.ref(!1),b=o.computed(()=>r.value||a.value?-1:0),m=()=>{r.value&&s.value.blur(),p.value.blur()},_=()=>{r.value&&!a.value&&s.value.focus()},k=(O=!0)=>{a.value||(g.value=!0,O&&l())},y=()=>{g.value=!1,setTimeout(()=>{g.value||(c(),i.value&&u())},1)};return{multiselect:f,wrapper:p,tags:h,tabindex:b,isActive:g,mouseClicked:v,blur:m,focus:_,activate:k,deactivate:y,handleFocusIn:O=>{O.target.closest("[data-tags]")&&O.target.nodeName!=="INPUT"||O.target.closest("[data-clear]")||k(v.value)},handleFocusOut:()=>{y()},handleCaretClick:()=>{y(),m()},handleMousedown:O=>{v.value=!0,d.value&&(O.target.isEqualNode(p.value)||O.target.isEqualNode(h.value))?setTimeout(()=>{y()},0):document.activeElement.isEqualNode(p.value)&&!d.value&&k(),setTimeout(()=>{v.value=!1},0)}}}function G7(e,t,n){const{mode:r,addTagOn:a,openDirection:i,searchable:s,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:h}=o.toRefs(e),g=o.getCurrentInstance().proxy,v=n.iv,b=n.update,m=n.search,_=n.setPointer,k=n.selectPointer,y=n.backwardPointer,w=n.forwardPointer,S=n.multiselect,C=n.wrapper,E=n.tags,O=n.isOpen,L=n.open,D=n.blur,N=n.fo,R=o.computed(()=>f.value||p.value||!1),ne=o.computed(()=>a.value!==void 0?a.value:d.value!==void 0?d.value:["enter"]),K=()=>{r.value==="tags"&&!l.value&&R.value&&s.value&&!u.value&&_(N.value[N.value.map(Y=>Y[c.value]).indexOf(m.value)])},Z=Y=>{let se=Y.length-1;for(;se>=0&&(Y[se].remove===!1||Y[se].disabled);)se--;return se<0||Y.splice(se,1),Y};return{handleKeydown:Y=>{t.emit("keydown",Y,g);let se,de;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(Y.key)!==-1&&r.value==="tags"&&(se=[...S.value.querySelectorAll("[data-tags] > *")].filter(Te=>Te!==E.value),de=se.findIndex(Te=>Te===document.activeElement)),Y.key){case"Backspace":if(r.value==="single"||s.value&&[null,""].indexOf(m.value)===-1||v.value.length===0)return;b(Z([...v.value]));break;case"Enter":if(Y.preventDefault(),Y.keyCode===229)return;if(de!==-1&&de!==void 0){b([...v.value].filter((Te,Fe)=>Fe!==de)),de===se.length-1&&(se.length-1?se[se.length-2].focus():s.value?E.value.querySelector("input").focus():C.value.focus());return}if(ne.value.indexOf("enter")===-1&&R.value)return;K(),k();break;case" ":if(!R.value&&!s.value){Y.preventDefault(),K(),k();return}if(!R.value)return!1;if(ne.value.indexOf("space")===-1&&R.value)return;Y.preventDefault(),K(),k();break;case"Tab":case";":case",":if(ne.value.indexOf(Y.key.toLowerCase())===-1||!R.value)return;K(),k(),Y.preventDefault();break;case"Escape":D();break;case"ArrowUp":if(Y.preventDefault(),!l.value)return;O.value||L(),y();break;case"ArrowDown":if(Y.preventDefault(),!l.value)return;O.value||L(),w();break;case"ArrowLeft":if(s.value&&E.value&&E.value.querySelector("input").selectionStart||Y.shiftKey||r.value!=="tags"||!v.value||!v.value.length)return;Y.preventDefault(),de===-1?se[se.length-1].focus():de>0&&se[de-1].focus();break;case"ArrowRight":if(de===-1||Y.shiftKey||r.value!=="tags"||!v.value||!v.value.length)return;Y.preventDefault(),se.length>de+1?se[de+1].focus():s.value?E.value.querySelector("input").focus():s.value||C.value.focus();break}},handleKeyup:Y=>{t.emit("keyup",Y,g)},preparePointer:K}}function X7(e,t,n){const{classes:r,disabled:a,openDirection:i,showOptions:s}=o.toRefs(e),l=n.isOpen,c=n.isPointed,u=n.isSelected,d=n.isDisabled,f=n.isActive,p=n.canPointGroups,h=n.resolving,g=n.fo,v=o.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...r.value})),b=o.computed(()=>!!(l.value&&s.value&&(!h.value||h.value&&g.value.length)));return{classList:o.computed(()=>{const _=v.value;return{container:[_.container].concat(a.value?_.containerDisabled:[]).concat(b.value&&i.value==="top"?_.containerOpenTop:[]).concat(b.value&&i.value!=="top"?_.containerOpen:[]).concat(f.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(a.value?_.tagDisabled:[]),tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(l.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(i.value==="top"?_.dropdownTop:[]).concat(!l.value||!s.value||!b.value?_.dropdownHidden:[]),options:[_.options].concat(i.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:k=>{let y=[_.groupLabel];return c(k)?y.push(u(k)?_.groupLabelSelectedPointed:_.groupLabelPointed):u(k)&&p.value?y.push(d(k)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(k)&&y.push(_.groupLabelDisabled),p.value&&y.push(_.groupLabelPointable),y},groupOptions:_.groupOptions,option:(k,y)=>{let w=[_.option];return c(k)?w.push(u(k)?_.optionSelectedPointed:_.optionPointed):u(k)?w.push(d(k)?_.optionSelectedDisabled:_.optionSelected):(d(k)||y&&d(y))&&w.push(_.optionDisabled),w},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:b}}function K7(e,t,n){const{limit:r,infinite:a}=o.toRefs(e),i=n.isOpen,s=n.offset,l=n.search,c=n.pfo,u=n.eo,d=o.ref(null),f=o.ref(null),p=o.computed(()=>s.value<c.value.length),h=v=>{const{isIntersecting:b,target:m}=v[0];if(b){const _=m.offsetParent,k=_.scrollTop;s.value+=r.value==-1?10:r.value,o.nextTick(()=>{_.scrollTop=k})}},g=()=>{i.value&&s.value<c.value.length?d.value.observe(f.value):!i.value&&d.value&&d.value.disconnect()};return o.watch(i,()=>{a.value&&g()}),o.watch(l,()=>{a.value&&(s.value=r.value,g())},{flush:"post"}),o.watch(u,()=>{a.value&&g()},{immediate:!1,flush:"post"}),o.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(h))}),{hasMore:p,infiniteLoader:f}}function J7(e,t,n){const{placeholder:r,id:a,valueProp:i,label:s,mode:l,groupLabel:c,aria:u,searchable:d}=o.toRefs(e),f=n.pointer,p=n.iv,h=n.hasSelected,g=n.multipleLabelText,v=o.ref(null),b=o.computed(()=>{let N=[];return a&&a.value&&N.push(a.value),N.push("assist"),N.join("-")}),m=o.computed(()=>{let N=[];return a&&a.value&&N.push(a.value),N.push("multiselect-options"),N.join("-")}),_=o.computed(()=>{let N=[];if(a&&a.value&&N.push(a.value),f.value)return N.push(f.value.group?"multiselect-group":"multiselect-option"),N.push(f.value.group?f.value.index:f.value[i.value]),N.join("-")}),k=o.computed(()=>r.value),y=o.computed(()=>l.value!=="single"),w=o.computed(()=>{let N="";return l.value==="single"&&h.value&&(N+=p.value[s.value]),l.value==="multiple"&&h.value&&(N+=g.value),l.value==="tags"&&h.value&&(N+=p.value.map(R=>R[s.value]).join(", ")),N}),S=o.computed(()=>{let N={...u.value};return d.value&&(N["aria-labelledby"]=N["aria-labelledby"]?`${b.value} ${N["aria-labelledby"]}`:b.value,w.value&&N["aria-label"]&&(N["aria-label"]=`${w.value}, ${N["aria-label"]}`)),N}),C=N=>{let R=[];return a&&a.value&&R.push(a.value),R.push("multiselect-option"),R.push(N[i.value]),R.join("-")},E=N=>{let R=[];return a&&a.value&&R.push(a.value),R.push("multiselect-group"),R.push(N.index),R.join("-")},O=N=>{let R=[];return R.push(N),R.join(" ")},L=N=>{let R=[];return R.push(N),R.join(" ")},D=N=>`${N} ❎`;return o.onMounted(()=>{if(a&&a.value&&document&&document.querySelector){let N=document.querySelector(`[for="${a.value}"]`);v.value=N?N.innerText:null}}),{arias:S,ariaLabel:w,ariaAssist:b,ariaControls:m,ariaPlaceholder:k,ariaMultiselectable:y,ariaActiveDescendant:_,ariaOptionId:C,ariaOptionLabel:O,ariaGroupId:E,ariaGroupLabel:L,ariaTagLabel:D}}function Z7(e,t,n){const{locale:r,fallbackLocale:a}=o.toRefs(e);return{localize:s=>!s||typeof s!="object"?s:s&&s[r.value]?s[r.value]:s&&r.value&&s[r.value.toUpperCase()]?s[r.value.toUpperCase()]:s&&s[a.value]?s[a.value]:s&&a.value&&s[a.value.toUpperCase()]?s[a.value.toUpperCase()]:s&&Object.keys(s)[0]?s[Object.keys(s)[0]]:""}}function Q7(e,t,n,r={}){return n.forEach(a=>{a&&(r={...r,...a(e,t,r)})}),r}var Bt={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:String,required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1}},setup(e,t){return Q7(e,t,[Z7,$7,z7,Y7,F7,V7,q7,W7,K7,U7,G7,X7,J7])}};const eC=["id","dir"],tC=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],nC=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],rC=["onKeyup","aria-label"],aC=["onClick"],iC=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],sC=["innerHTML"],oC=["id"],lC=["id","aria-label","aria-selected"],cC=["data-pointed","onMouseenter","onClick"],uC=["innerHTML"],dC=["aria-label"],fC=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],pC=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],hC=["innerHTML"],mC=["innerHTML"],gC=["value"],vC=["name","value"],_C=["name","value"],yC=["id"];function bC(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("div",{ref:"multiselect",class:o.normalizeClass(e.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:t[10]||(t[10]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[11]||(t[11]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s)),onKeyup:t[12]||(t[12]=(...s)=>e.handleKeyup&&e.handleKeyup(...s)),onKeydown:t[13]||(t[13]=(...s)=>e.handleKeydown&&e.handleKeydown(...s))},[o.createElementVNode("div",o.mergeProps({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":n.searchable?void 0:e.ariaControls,"aria-placeholder":n.searchable?void 0:e.ariaPlaceholder,"aria-expanded":n.searchable?void 0:e.isOpen,"aria-activedescendant":n.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:e.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:e.arias),[o.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:t[0]||(t[0]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[1]||(t[1]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[2]||(t[2]=o.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,nC)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(e.classList.tags),"data-tags":""},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.iv,(s,l,c)=>o.renderSlot(e.$slots,"tag",{option:s,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass([e.classList.tag,s.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:o.withKeys(u=>e.handleTagRemove(s,u),["enter"]),key:c,"aria-label":e.ariaTagLabel(e.localize(s[n.label]))},[o.createTextVNode(o.toDisplayString(e.localize(s[n.label]))+" ",1),!n.disabled&&!s.disabled?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(e.classList.tagRemove),onClick:o.withModifiers(u=>e.handleTagRemove(s,u),["stop"])},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,aC)):o.createCommentVNode("v-if",!0)],42,rC))])),256)),o.createElementVNode("div",{class:o.normalizeClass(e.classList.tagsSearchWrapper),ref:"tags"},[o.createCommentVNode(" Used for measuring search width "),o.createElementVNode("span",{class:o.normalizeClass(e.classList.tagsSearchCopy)},o.toDisplayString(e.search),3),o.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:t[3]||(t[3]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[4]||(t[4]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[5]||(t[5]=o.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,iC)):o.createCommentVNode("v-if",!0)],2)],2)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?o.renderSlot(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.singleLabel)},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.singleLabelText)},o.toDisplayString(e.localize(e.iv[n.label])),3)],2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?o.renderSlot(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,sC)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?o.renderSlot(e.$slots,"placeholder",{key:4},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.placeholder),"aria-hidden":"true"},o.toDisplayString(n.placeholder),3)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Spinner "),n.loading||e.resolving?o.renderSlot(e.$slots,"spinner",{key:5},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.spinner),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?o.renderSlot(e.$slots,"clear",{key:6,clear:e.clear},()=>[o.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:o.normalizeClass(e.classList.clear),onClick:t[6]||(t[6]=(...s)=>e.clear&&e.clear(...s)),onKeyup:t[7]||(t[7]=o.withKeys((...s)=>e.clear&&e.clear(...s),["enter"]))},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.clearIcon)},null,2)],34)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Caret "),n.caret&&n.showOptions?o.renderSlot(e.$slots,"caret",{key:7},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.caret),onClick:t[8]||(t[8]=(...s)=>e.handleCaretClick&&e.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0)],16,tC),o.createCommentVNode(" Options "),o.createElementVNode("div",{class:o.normalizeClass(e.classList.dropdown),tabindex:"-1"},[o.renderSlot(e.$slots,"beforelist",{options:e.fo}),o.createElementVNode("ul",{class:o.normalizeClass(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(e.fg,(s,l,c)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.group),key:c,id:e.ariaGroupId(s),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),"aria-selected":e.isSelected(s),role:"option"},[s.__CREATE__?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.classList.groupLabel(s)),"data-pointed":e.isPointed(s),onMouseenter:u=>e.setPointer(s,l),onClick:u=>e.handleGroupClick(s)},[o.renderSlot(e.$slots,"grouplabel",{group:s,isSelected:e.isSelected,isPointed:e.isPointed},()=>[o.createElementVNode("span",{innerHTML:e.localize(s[n.groupLabel])},null,8,uC)])],42,cC)),o.createElementVNode("ul",{class:o.normalizeClass(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),role:"group"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.__VISIBLE__,(u,d,f)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.option(u,s)),"data-pointed":e.isPointed(u),"data-selected":e.isSelected(u)||void 0,key:f,onMouseenter:p=>e.setPointer(u),onClick:p=>e.handleOptionClick(u),id:e.ariaOptionId(u),"aria-selected":e.isSelected(u),"aria-label":e.ariaOptionLabel(e.localize(u[n.label])),role:"option"},[o.renderSlot(e.$slots,"option",{option:u,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[o.createElementVNode("span",null,o.toDisplayString(e.localize(u[n.label])),1)])],42,fC))),128))],10,dC)],10,lC))),128)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.fo,(s,l,c)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.option(s)),"data-pointed":e.isPointed(s),"data-selected":e.isSelected(s)||void 0,key:c,onMouseenter:u=>e.setPointer(s),onClick:u=>e.handleOptionClick(s),id:e.ariaOptionId(s),"aria-selected":e.isSelected(s),"aria-label":e.ariaOptionLabel(e.localize(s[n.label])),role:"option"},[o.renderSlot(e.$slots,"option",{option:s,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[o.createElementVNode("span",null,o.toDisplayString(e.localize(s[n.label])),1)])],42,pC))),128))],10,oC),e.noOptions?o.renderSlot(e.$slots,"nooptions",{key:0},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,hC)]):o.createCommentVNode("v-if",!0),e.noResults?o.renderSlot(e.$slots,"noresults",{key:1},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,mC)]):o.createCommentVNode("v-if",!0),n.infinite&&e.hasMore?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(e.classList.inifinite),ref:"infiniteLoader"},[o.renderSlot(e.$slots,"infinite",{},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.inifiniteSpinner)},null,2)])],2)):o.createCommentVNode("v-if",!0),o.renderSlot(e.$slots,"afterlist",{options:e.fo})],2),o.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(o.openBlock(),o.createElementBlock("input",{key:0,class:o.normalizeClass(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,gC)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Native input support "),n.nativeSupport?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.mode=="single"?(o.openBlock(),o.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,vC)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.plainValue,(s,l)=>(o.openBlock(),o.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:l},null,8,_C))),128))],64)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Screen reader assistive text "),n.searchable&&e.hasSelected?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},o.toDisplayString(e.ariaLabel),11,yC)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Create height for empty input "),o.createElementVNode("div",{class:o.normalizeClass(e.classList.spacer)},null,2)],42,eC)}Bt.render=bC;Bt.__file="src/Multiselect.vue";const kC={class:"search-bar"},wC=o.defineComponent({__name:"SearchBar",setup(e){const{t}=re(),n=o.ref("");function r(u,d,f){f.clear(),f.search=n.value,console.log("LINK TO:",d.link)}function a(u){n.value=u}async function i(u){return u===null?[{label:t("general.cards"),options:s("test")},{label:t("general.players"),options:await c("test")}]:[{label:t("general.cards"),options:s(u)},{label:t("general.players"),options:await c(u)}]}function s(u){const d=new RegExp(u,"i"),f=new RegExp(`^${u}`,"i");return Hf().cardJson.filter(h=>!!h.name.match(d)||!!h.description.match(d)||!!h.descriptionRaw.match(d)).sort((h,g)=>h.name.localeCompare(g.name)).sort((h,g)=>h.cost-g.cost).sort((h,g)=>l(h.collectible,g.collectible)).sort((h,g)=>l(!!h.name.match(d),!!g.name.match(d))).sort((h,g)=>l(f.test(h.name),f.test(g.name))).slice(0,5).map(h=>({type:"card",link:`/test/card/${h.cardCode}`,card:h}))}function l(u,d){return u===d?0:u?-1:1}async function c(u){return[{type:"player",cardCode:"01IO001",color:"var(--color-background-2-rgb)",link:`/test/player/${u}`,name:u,rank:1},{type:"player",cardCode:"01IO002",color:"255, 255, 255",link:`/test/player/${u}2`,name:u,rank:2},{type:"player",color:"0, 0, 0",link:`/test/player/${u}3`,name:u,rank:3},{type:"player",link:`/test/player/${u}4`,name:u,rank:4},{type:"player",link:`/test/player/${u}5`,name:u}]}return(u,d)=>(o.openBlock(),o.createElementBlock("div",kC,[o.createVNode(o.unref(Bt),{placeholder:"Search Cards or Players","value-prop":"link","clear-on-blur":!1,"clear-on-search":!1,"clear-on-select":!1,"close-on-select":!0,delay:0,"filter-results":!1,groups:!0,"min-chars":0,"resolve-on-load":!1,searchable:!0,options:async f=>await i(f),onOpen:d[0]||(d[0]=f=>{f.noOptions&&f.resolveOptions()}),onSearchChange:a,onSelect:r},{option:o.withCtx(({option:f})=>[f.type==="card"?(o.openBlock(),o.createBlock(an,{key:`card-${f.link}`,class:"card-slice-item","maintain-aspect-ratio":!0,"card-prop":f.card},null,8,["card-prop"])):(o.openBlock(),o.createBlock(an,{key:`player-${f.link}`,class:"card-slice-item","maintain-aspect-ratio":!0,"ignore-card-item":!0,"card-code-prop":f.cardCode,color:f.color,name:f.name,"mana-number":f.rank},null,8,["card-code-prop","color","name","mana-number"]))]),_:1},8,["options"])]))}});const Rc=B(wC,[["__scopeId","data-v-8b9bf112"]]);function B1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B1(Object(n),!0).forEach(function(r){zt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tc(e){return tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(e)}function zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SC(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function xC(e,t){if(e==null)return{};var n=SC(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bd(e){return CC(e)||EC(e)||TC(e)||OC()}function CC(e){if(Array.isArray(e))return Vd(e)}function EC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function TC(e,t){if(e){if(typeof e=="string")return Vd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vd(e,t)}}function Vd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
814
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var MC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},U2={exports:{}};(function(e){(function(t){var n=function(m,_,k){if(!u(_)||f(_)||p(_)||h(_)||c(_))return _;var y,w=0,S=0;if(d(_))for(y=[],S=_.length;w<S;w++)y.push(n(m,_[w],k));else{y={};for(var C in _)Object.prototype.hasOwnProperty.call(_,C)&&(y[m(C,k)]=n(m,_[C],k))}return y},r=function(m,_){_=_||{};var k=_.separator||"_",y=_.split||/(?=[A-Z])/;return m.split(y).join(k)},a=function(m){return g(m)?m:(m=m.replace(/[\-_\s]+(.)?/g,function(_,k){return k?k.toUpperCase():""}),m.substr(0,1).toLowerCase()+m.substr(1))},i=function(m){var _=a(m);return _.substr(0,1).toUpperCase()+_.substr(1)},s=function(m,_){return r(m,_).toLowerCase()},l=Object.prototype.toString,c=function(m){return typeof m=="function"},u=function(m){return m===Object(m)},d=function(m){return l.call(m)=="[object Array]"},f=function(m){return l.call(m)=="[object Date]"},p=function(m){return l.call(m)=="[object RegExp]"},h=function(m){return l.call(m)=="[object Boolean]"},g=function(m){return m=m-0,m===m},v=function(m,_){var k=_&&"process"in _?_.process:_;return typeof k!="function"?m:function(y,w){return k(y,m,w)}},b={camelize:a,decamelize:s,pascalize:i,depascalize:s,camelizeKeys:function(m,_){return n(v(a,_),m)},decamelizeKeys:function(m,_){return n(v(s,_),m,_)},pascalizeKeys:function(m,_){return n(v(i,_),m)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=b:t.humps=b})(MC)})(U2);var NC=U2.exports,DC=["class","style"];function PC(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),a=NC.camelize(n.slice(0,r)),i=n.slice(r+1).trim();return t[a]=i,t},{})}function AC(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function ep(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(c){return ep(c)}),a=Object.keys(e.attributes||{}).reduce(function(c,u){var d=e.attributes[u];switch(u){case"class":c.class=AC(d);break;case"style":c.style=PC(d);break;default:c.attrs[u]=d}return c},{attrs:{},class:{},style:{}});n.class;var i=n.style,s=i===void 0?{}:i,l=xC(n,DC);return o.h(e.tag,Cn(Cn(Cn({},t),{},{class:a.class,style:Cn(Cn({},a.style),s)},a.attrs),l),r)}var Y2=!1;try{Y2=process.env.NODE_ENV==="production"}catch{}function IC(){if(!Y2&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Es(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?zt({},e,t):{}}function LC(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},zt(t,"fa-".concat(e.size),e.size!==null),zt(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),zt(t,"fa-pull-".concat(e.pull),e.pull!==null),zt(t,"fa-swap-opacity",e.swapOpacity),zt(t,"fa-bounce",e.bounce),zt(t,"fa-shake",e.shake),zt(t,"fa-beat",e.beat),zt(t,"fa-fade",e.fade),zt(t,"fa-beat-fade",e.beatFade),zt(t,"fa-flash",e.flash),zt(t,"fa-spin-pulse",e.spinPulse),zt(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function V1(e){if(e&&tc(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Kl.icon)return Kl.icon(e);if(e===null)return null;if(tc(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var nt=o.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var r=n.attrs,a=o.computed(function(){return V1(t.icon)}),i=o.computed(function(){return Es("classes",LC(t))}),s=o.computed(function(){return Es("transform",typeof t.transform=="string"?Kl.transform(t.transform):t.transform)}),l=o.computed(function(){return Es("mask",V1(t.mask))}),c=o.computed(function(){return E6(a.value,Cn(Cn(Cn(Cn({},i.value),s.value),l.value),{},{symbol:t.symbol,title:t.title}))});o.watch(c,function(d){if(!d)return IC("Could not find one or more icon(s)",a.value,l.value)},{immediate:!0});var u=o.computed(function(){return c.value?ep(c.value.abstract[0],{},r):null});return function(){return u.value}}});o.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var r=n.slots,a=s2.familyPrefix,i=o.computed(function(){return["".concat(a,"-layers")].concat(Bd(t.fixedWidth?["".concat(a,"-fw")]:[]))});return function(){return o.h("div",{class:i.value},r.default?r.default():[])}}});o.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,n){var r=n.attrs,a=s2.familyPrefix,i=o.computed(function(){return Es("classes",[].concat(Bd(t.counter?["".concat(a,"-layers-counter")]:[]),Bd(t.position?["".concat(a,"-layers-").concat(t.position)]:[])))}),s=o.computed(function(){return Es("transform",typeof t.transform=="string"?Kl.transform(t.transform):t.transform)}),l=o.computed(function(){var u=T6(t.value.toString(),Cn(Cn({},s.value),i.value)),d=u.abstract;return t.counter&&(d[0].attributes.class=d[0].attributes.class.replace("fa-layers-text","")),d[0]}),c=o.computed(function(){return ep(l.value,{},r)});return function(){return c.value}}});const RC={class:"social-links"},BC=o.defineComponent({__name:"SocialLinks",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",RC,[o.createVNode(o.unref(nt),{class:"icon",icon:"fa-brands fa-discord"}),o.createVNode(o.unref(nt),{class:"icon",icon:"fa-brands fa-twitter"})]))}});const tp=B(BC,[["__scopeId","data-v-5517438c"]]),VC={showModal:{type:Boolean,required:!0,default:!1}},$C=["onClick"],FC=o.defineComponent({__name:"ModalItem",props:VC,emits:["update:showModal"],setup(e,{emit:t}){const n=e,r=o.ref(null);function a(){t("update:showModal",!1)}return o.watch(()=>n.showModal,()=>{n.showModal&&o.nextTick(()=>{r.value&&document.body.appendChild(r.value)})}),(i,s)=>n.showModal?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"modalItem",ref:r,class:"modal-item",onClick:o.withModifiers(a,["self"])},[o.renderSlot(i.$slots,"default",{},void 0,!0)],8,$C)):o.createCommentVNode("",!0)}});const Hi=B(FC,[["__scopeId","data-v-e2241387"]]),zC={filterArray:{type:Array,required:!1,default:void 0},title:{type:String,required:!1,default:void 0}},jC={class:"filter"},HC={key:0,class:"top"},WC={key:0,class:"title"},UC=o.defineComponent({__name:"SidePanelSectionPane",props:zC,emits:["clear:filterArray"],setup(e,{emit:t}){const n=e,r=o.computed(()=>n.filterArray&&n.filterArray.length>0?"clickable":null);function a(){t("clear:filterArray")}return(i,s)=>{const l=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",jC,[n.title||i.filterArray?(o.openBlock(),o.createElementBlock("div",HC,[n.title?(o.openBlock(),o.createElementBlock("h2",WC,o.toDisplayString(n.title),1)):o.createCommentVNode("",!0),i.filterArray?o.withDirectives((o.openBlock(),o.createElementBlock("p",{key:1,class:o.normalizeClass(["clear",o.unref(r)]),onClick:a},null,2)),[[l,"general.clear"]]):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.renderSlot(i.$slots,"default",{},void 0,!0)])}}});const yt=B(UC,[["__scopeId","data-v-741cceed"]]),YC={filterArray:{type:Array,required:!0,default:[]}},qC=["placeholder"],GC=o.defineComponent({__name:"FilterSampleSize",props:YC,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.ref(n.filterArray),i=o.ref("");let s=setTimeout(()=>{},0);a.value.length>0&&(i.value=a.value[0]),o.watch(a,()=>{t("update:filterArray",a.value)}),o.watch(i,()=>{s&&clearTimeout(s),s=setTimeout(()=>{a.value.splice(0),i.value&&a.value.push(i.value)},1e3)});function l(){a.value.splice(0),i.value=""}return(c,u)=>(o.openBlock(),o.createBlock(yt,{"filter-array":a.value,title:o.unref(r)("general.sampleSize"),"onClear:filterArray":l},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=d=>i.value=d),placeholder:o.unref(r)("general.minimumMatches"),type:"number",min:"10",step:"10"},null,8,qC),[[o.vModelText,i.value]])]),_:1},8,["filter-array","title"]))}});const bo=B(GC,[["__scopeId","data-v-d66d5f9d"]]),XC={filterArray:{type:Array,required:!0,default:[]}},KC={isSelected:{type:Boolean,required:!0,default:!1},icon:{type:String,required:!1,default:void 0},prompt:{type:String,required:!0,default:""}},JC=["selected"],ZC={class:"checkbox-name"},QC=o.defineComponent({__name:"CheckboxItem",props:KC,emits:["update:isSelected"],setup(e,{emit:t}){const n=e,r=o.computed(()=>(console.log(n.icon),{content:n.icon}));function a(){t("update:isSelected",!n.isSelected)}return(i,s)=>(o.openBlock(),o.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:a},[n.icon?(o.openBlock(),o.createElementBlock("div",{key:0,class:"checkbox-icon",style:o.normalizeStyle(o.unref(r))},null,4)):o.createCommentVNode("",!0),o.createElementVNode("div",ZC,o.toDisplayString(n.prompt),1)],8,JC))}});const Wt=B(QC,[["__scopeId","data-v-a4c6109c"]]),eE={selectedOption:{type:Number,required:!0,default:-1},options:{type:Array,required:!0,default:[]}},tE=e=>(o.pushScopeId("data-v-d5d9745a"),e=e(),o.popScopeId(),e),nE={class:"toggle-switch"},rE=tE(()=>o.createElementVNode("div",{class:"selection"},null,-1)),aE=[rE],iE=["onClick"],sE={class:"option flex-center"},oE={class:"option-text"},lE=o.defineComponent({__name:"ToggleSwitch",props:eE,emits:["update:selectedOption"],setup(e,{emit:t}){const n=e,r=o.computed(()=>({left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${n.selectedOption})`,width:`calc((100% - calc(var(--spacing-1) * 2)) / ${n.options.length})`}));function a(s){return{cursor:n.selectedOption!=s?"pointer":"default",left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${s})`,width:`${1/n.options.length*100}%`}}function i(s){t("update:selectedOption",s)}return(s,l)=>(o.openBlock(),o.createElementBlock("div",nE,[o.withDirectives(o.createElementVNode("div",{class:"selection-container",style:o.normalizeStyle(o.unref(r))},aE,4),[[o.vShow,s.selectedOption>-1]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.options,(c,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,ref_for:!0,ref:"option-container",style:o.normalizeStyle(a(u)),class:"option-container",onClick:d=>i(u)},[o.createElementVNode("div",sE,[o.createElementVNode("h1",oE,o.toDisplayString(c),1)])],12,iE))),128))]))}});const Bc=B(lE,[["__scopeId","data-v-d5d9745a"]]),cE={class:"checkboxes-container"},uE=o.defineComponent({__name:"FilterRanks",props:XC,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.computed(()=>Ce().dataJson.ranks.sort((u,d)=>d.order-u.order)),i=o.reactive(n.filterArray),s=o.ref(0);o.watch(i,()=>{t("update:filterArray",i)}),o.watch(s,()=>{s.value===0?i.splice(0):s.value===1&&(i.splice(0),i.push("Platinum","Diamond","Masters"))});function l(){i.splice(0),s.value=0}function c(u){const d=i.indexOf(u);if(d===-1){i.push(u);return}i.splice(d,1)}return(u,d)=>(o.openBlock(),o.createBlock(yt,{"filter-array":i,title:o.unref(r)("general.ranks"),"onClear:filterArray":l},{default:o.withCtx(()=>[o.createElementVNode("div",cE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),f=>(o.openBlock(),o.createBlock(Wt,{key:f.nameRef,icon:`url(${f.icon})`,prompt:f.name,"is-selected":i.includes(f.nameRef),"onUpdate:isSelected":p=>c(f.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),o.createVNode(Bc,{"selected-option":s.value,"onUpdate:selectedOption":d[0]||(d[0]=f=>s.value=f),options:[o.unref(r)("general.allRanks"),o.unref(r)("general.platPlus")]},null,8,["selected-option","options"])])]),_:1},8,["filter-array","title"]))}});const q2=B(uE,[["__scopeId","data-v-af7bc2a0"]]),dE={filterArray:{type:Array,required:!0,default:[]}},fE={isSelected:{type:Boolean,required:!0,default:!1},prompt:{type:Number,required:!0,default:""}},pE=["selected"],hE={class:"prompt"},mE=o.defineComponent({__name:"CheckboxItemManaCost",props:fE,emits:["update:isSelected"],setup(e,{emit:t}){const n=e;function r(){t("update:isSelected",!n.isSelected)}return(a,i)=>(o.openBlock(),o.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:r},[o.createVNode(yo),o.createElementVNode("div",hE,o.toDisplayString(n.prompt===10?"+":n.prompt),1)],8,pE))}});const nc=B(mE,[["__scopeId","data-v-2c74c2ed"]]),gE={class:"checkbox-rows-container"},vE={class:"top-row checkbox-items-container"},_E={class:"bottom-row checkbox-items-container"},yE=o.defineComponent({__name:"FilterManaCost",props:dE,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=Array(6).fill(1).map((c,u)=>u),i=Array(5).fill(1).map((c,u)=>u+6);function s(c){let u;n.filterArray.includes(c)?u=n.filterArray.filter(d=>d!==c):u=[...n.filterArray,c],t("update:filterArray",u)}function l(){t("update:filterArray",[])}return(c,u)=>(o.openBlock(),o.createBlock(yt,{"filter-array":n.filterArray,title:o.unref(r)("general.manaCost"),"onClear:filterArray":l},{default:o.withCtx(()=>[o.createElementVNode("div",gE,[o.createElementVNode("div",vE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),d=>(o.openBlock(),o.createBlock(nc,{key:d,class:"checkbox-item-mana-cost",prompt:d,"is-selected":n.filterArray.includes(d),"onUpdate:isSelected":f=>s(d)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))]),o.createElementVNode("div",_E,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),d=>(o.openBlock(),o.createBlock(nc,{key:d,class:"checkbox-item-mana-cost",prompt:d,"is-selected":n.filterArray.includes(d),"onUpdate:isSelected":f=>s(d)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])])]),_:1},8,["filter-array","title"]))}});const np=B(yE,[["__scopeId","data-v-a94d786a"]]),bE={filterArray:{type:Array,required:!0,default:[]}},kE={class:"checkboxes-container"},rp=o.defineComponent({__name:"FilterRarities",props:bE,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.computed(()=>Ce().dataJson.rarities.filter(c=>c.nameRef!=="None")),i=o.reactive(n.filterArray);o.watch(i,()=>{t("update:filterArray",i)});function s(){i.splice(0)}function l(c){const u=i.indexOf(c);if(u===-1){i.push(c);return}i.splice(u,1)}return(c,u)=>(o.openBlock(),o.createBlock(yt,{"filter-array":i,title:o.unref(r)("general.rarities"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createElementVNode("div",kE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),d=>(o.openBlock(),o.createBlock(Wt,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":i.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),wE={filterArray:{type:Array,required:!0,default:[]}},SE={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},xE=["src"],CE={class:"multiselect-tag-remove"},EE=["onMousedown"],TE=["src"],ap=o.defineComponent({__name:"FilterSets",props:wE,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.ref(n.filterArray);o.watch(a,()=>{t("update:filterArray",a.value)});function i(){a.value.splice(0)}return(s,l)=>(o.openBlock(),o.createBlock(yt,{"filter-array":a.value,title:o.unref(r)("general.sets"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createVNode(o.unref(Bt),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),placeholder:o.unref(r)("general.sets"),class:"runeterra-select",mode:"tags",options:o.unref(Ce)().dataJson.sets,searchable:!0,label:"name","value-prop":"nameRef"},{tag:o.withCtx(({option:c,handleTagRemove:u})=>[o.createElementVNode("span",SE,[o.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,xE),o.createElementVNode("span",CE,[o.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:o.withModifiers(d=>u(c,d),["prevent"])},null,40,EE)])])]),option:o.withCtx(({option:c})=>[o.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,TE),o.createTextVNode(" "+o.toDisplayString(c.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),OE={filterArray:{type:Array,required:!0,default:[]}},ME={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},NE=["src"],DE={class:"multiselect-tag-remove"},PE=["onMousedown"],AE=["src"],ip=o.defineComponent({__name:"FilterKeywords",props:OE,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.ref(n.filterArray),i=o.computed(()=>Ce().dataJson.keywords.filter(l=>l.showInFilter));o.watch(a,()=>{t("update:filterArray",a.value)});function s(){a.value.splice(0)}return(l,c)=>(o.openBlock(),o.createBlock(yt,{"filter-array":a.value,title:o.unref(r)("general.keywords"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createVNode(o.unref(Bt),{modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=u=>a.value=u),placeholder:o.unref(r)("general.keywords"),class:"runeterra-select",mode:"tags",options:o.unref(i),searchable:!0,label:"name","value-prop":"nameRef"},{tag:o.withCtx(({option:u,handleTagRemove:d})=>[o.createElementVNode("span",ME,[o.createElementVNode("img",{class:"label-icon",src:u.icon},null,8,NE),o.createElementVNode("span",DE,[o.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:o.withModifiers(f=>d(u,f),["prevent"])},null,40,PE)])])]),option:o.withCtx(({option:u})=>[o.createElementVNode("img",{class:"label-icon",src:u.icon},null,8,AE),o.createTextVNode(" "+o.toDisplayString(u.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),IE={filterArray:{type:Array,required:!0,default:[]}},LE={class:"checkboxes-container"},ko=o.defineComponent({__name:"FilterServers",props:IE,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.reactive(n.filterArray);o.watch(a,()=>{t("update:filterArray",a)});function i(){a.splice(0)}function s(l){const c=a.indexOf(l);if(c===-1){a.push(l);return}a.splice(c,1)}return(l,c)=>(o.openBlock(),o.createBlock(yt,{"filter-array":a,title:o.unref(r)("general.servers"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createElementVNode("div",LE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(Ce)().dataJson.servers,u=>(o.openBlock(),o.createBlock(Wt,{key:u.nameRef,prompt:u.name,"is-selected":a.includes(u.nameRef),"onUpdate:isSelected":d=>s(u.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),RE={filterArray:{type:Array,required:!0,default:[]}},BE={class:"checkboxes-container"},VE=o.defineComponent({__name:"FilterTime",props:RE,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.reactive(n.filterArray),i=o.ref(null),s=o.ref(null),l=a.find(p=>p.startsWith("patch_"));l&&(i.value=l);const c=a.find(p=>p.startsWith("season_"));c&&(s.value=c),o.watch(a,()=>{t("update:filterArray",a)}),o.watch(i,(p,h)=>{u(p,h)}),o.watch(s,(p,h)=>{u(p,h)});function u(p,h){console.log(h,p),h&&a.splice(a.indexOf(h),1),p&&a.push(p),console.log(a)}function d(){a.splice(0),i.value=null,s.value=null}function f(p){a.splice(0),p!=="patch"&&a.push(p),p==="patch"&&i.value&&a.push(i.value),p==="season"&&s.value&&a.push(s.value)}return(p,h)=>(o.openBlock(),o.createBlock(yt,{"filter-array":a,title:o.unref(r)("general.time"),"onClear:filterArray":d},{default:o.withCtx(()=>[o.createElementVNode("div",BE,[o.createVNode(Wt,{prompt:o.unref(r)("general.patch"),"is-selected":a.filter(g=>!g.startsWith("patch")).length===0,"onUpdate:isSelected":h[0]||(h[0]=g=>f("patch"))},null,8,["prompt","is-selected"]),o.createVNode(Wt,{prompt:o.unref(r)("general.season"),"is-selected":a.includes("season"),"onUpdate:isSelected":h[1]||(h[1]=g=>f("season"))},null,8,["prompt","is-selected"]),o.createVNode(Wt,{prompt:o.unref(r)("general.pastDays",7),"is-selected":a.includes("past7days"),"onUpdate:isSelected":h[2]||(h[2]=g=>f("past7days"))},null,8,["prompt","is-selected"]),o.createVNode(Wt,{prompt:o.unref(r)("general.pastDays",3),"is-selected":a.includes("past3days"),"onUpdate:isSelected":h[3]||(h[3]=g=>f("past3days"))},null,8,["prompt","is-selected"]),o.createVNode(Wt,{prompt:o.unref(r)("general.pastHours",24),"is-selected":a.includes("past24hours"),"onUpdate:isSelected":h[4]||(h[4]=g=>f("past24hours"))},null,8,["prompt","is-selected"]),o.createVNode(Wt,{prompt:o.unref(r)("general.pastHour"),"is-selected":a.includes("pastHour"),"onUpdate:isSelected":h[5]||(h[5]=g=>f("pastHour"))},null,8,["prompt","is-selected"]),a.filter(g=>!g.startsWith("patch")).length===0?(o.openBlock(),o.createBlock(o.unref(Bt),{key:0,modelValue:i.value,"onUpdate:modelValue":h[6]||(h[6]=g=>i.value=g),options:o.unref(Ce)().dataJson.patches,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):o.createCommentVNode("",!0),a.includes("season")?(o.openBlock(),o.createBlock(o.unref(Bt),{key:1,modelValue:s.value,"onUpdate:modelValue":h[7]||(h[7]=g=>s.value=g),options:o.unref(Ce)().dataJson.seasons,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):o.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const wo=B(VE,[["__scopeId","data-v-1cf4e6d2"]]),$E={filterArray:{type:Array,required:!0,default:[]}},FE={cardCodes:{type:Array,required:!0,default:[]},filterCallback:{type:Function,required:!1,default:()=>!0},mode:{type:String,required:!1,default:"tags"}},zE=o.defineComponent({__name:"CardMultiselect",props:FE,emits:["update:cardCodes"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.ref(n.cardCodes),i=o.computed(()=>{let s=Hf().cardJson.sort((l,c)=>l.name.localeCompare(c.name));return n.filterCallback&&(s=s.filter(n.filterCallback)),s});return o.watch(a,()=>{t("update:cardCodes",a.value)}),(s,l)=>(o.openBlock(),o.createBlock(o.unref(Bt),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),class:"multiselect",placeholder:o.unref(r)("cards.cards"),mode:n.mode,options:o.unref(i),infinite:!0,limit:10,searchable:!0,label:"name","value-prop":"cardCode"},null,8,["modelValue","placeholder","mode","options"]))}});const sp=B(zE,[["__scopeId","data-v-968634df"]]),op=o.defineComponent({__name:"FilterCardCodes",props:$E,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.ref(n.filterArray);o.watch(a,()=>{console.log("watch(filterArray)",a.value),t("update:filterArray",a.value)});function i(){a.value.splice(0)}function s(l){return l.collectible}return(l,c)=>(o.openBlock(),o.createBlock(yt,{"filter-array":a.value,title:o.unref(r)("cards.cards"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createVNode(sp,{cardCodes:a.value,"onUpdate:cardCodes":c[0]||(c[0]=u=>a.value=u),mode:"tags","filter-callback":s},null,8,["cardCodes"])]),_:1},8,["filter-array","title"]))}}),jE={filterArray:{type:Array,required:!0,default:[]}},HE={class:"checkboxes-container"},WE=o.defineComponent({__name:"FilterRegions",props:jE,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.reactive(n.filterArray),i=o.ref([]);i.value.push(...a.filter(c=>Zs(c))),o.watch(a,()=>{t("update:filterArray",a)}),o.watch(i,(c,u)=>{let d=c.find(f=>!u.includes(f));if(d||(d=u.find(f=>!c.includes(f)),d))return l(d)});function s(){a.splice(0),i.value.slice(0)}function l(c){const u=a.indexOf(c);if(u===-1){a.push(c),c==="Runeterra"&&a.push(...i.value);return}if(a.splice(u,1),c==="Runeterra")for(let d=0;d<a.length;d++)Zs(a[d])&&a.splice(d--,1)}return(c,u)=>(o.openBlock(),o.createBlock(yt,{"filter-array":a,title:o.unref(r)("general.regions"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createElementVNode("div",HE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(Ce)().dataJson.regions,d=>(o.openBlock(),o.createBlock(Wt,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":a.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),o.createVNode(Wt,{class:"runeterra",prompt:"Runeterra","is-selected":a.includes("Runeterra"),"onUpdate:isSelected":u[0]||(u[0]=d=>l("Runeterra"))},null,8,["is-selected"]),a.includes("Runeterra")?(o.openBlock(),o.createBlock(o.unref(Bt),{key:0,modelValue:i.value,"onUpdate:modelValue":u[1]||(u[1]=d=>i.value=d),class:"runeterra-select",mode:"tags",options:o.unref(Ce)().dataJson.runeterraChampions,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):o.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const Vc=B(WE,[["__scopeId","data-v-c93a9e90"]]),UE={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[]}}},G2=o.defineComponent({__name:"FilterDecks",props:UE,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=o.reactive(n.filters);o.watch(r,()=>{t("update:filters",r)});function a(){for(const[,i]of Object.entries(r))i.splice(0)}return(i,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",{onClick:a},"CLEAR ALL"),o.createVNode(Vc,{"filter-array":r.regionFilters,"onUpdate:filterArray":s[0]||(s[0]=l=>r.regionFilters=l)},null,8,["filter-array"]),o.createVNode(op,{"filter-array":r.cardFilters,"onUpdate:filterArray":s[1]||(s[1]=l=>r.cardFilters=l)},null,8,["filter-array"]),o.createVNode(bo,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":s[2]||(s[2]=l=>r.sampleSizeFilters=l)},null,8,["filter-array"]),o.createVNode(wo,{"filter-array":r.timeFilters,"onUpdate:filterArray":s[3]||(s[3]=l=>r.timeFilters=l)},null,8,["filter-array"]),o.createVNode(ko,{"filter-array":r.serverFilters,"onUpdate:filterArray":s[4]||(s[4]=l=>r.serverFilters=l)},null,8,["filter-array"])]))}}),YE={filterValue:{type:Object,required:!0,default:{attribute:"attack",equality:">",number:0}}},qE={class:"advanced-filter-item"},GE=["value"],XE=o.defineComponent({__name:"AdvancedFilterItem",props:YE,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=[{value:"attack",label:r("cards.attack")},{value:"health",label:r("cards.health")},{value:"cost",label:r("cards.cost")},{value:"quantityOwned",label:r("cards.quantityOwned")}],i=o.ref(n.filterValue.attribute);o.watch(i,()=>{t("update:filterValue",{attribute:i.value,equality:n.filterValue.equality,number:n.filterValue.number})});function s(){let c=">";n.filterValue.equality===">"?c="<":n.filterValue.equality==="<"&&(c="="),t("update:filterValue",{attribute:n.filterValue.attribute,equality:c,number:n.filterValue.number})}function l(c){t("update:filterValue",{attribute:n.filterValue.attribute,equality:n.filterValue.equality,number:Number(c.target.value)})}return(c,u)=>(o.openBlock(),o.createElementBlock("div",qE,[o.createVNode(o.unref(Bt),{modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=d=>i.value=d),class:"advanced-attribute",options:a,"can-clear":!1,label:"label","value-prop":"value"},null,8,["modelValue"]),o.createElementVNode("div",{class:"equality-button",onClick:s},o.toDisplayString(n.filterValue.equality),1),o.createElementVNode("input",{type:"number",class:"equality-number",value:n.filterValue.number,onInput:l},null,40,GE)]))}});const lp=B(XE,[["__scopeId","data-v-eb2d535d"]]),KE={filterValue:{type:Array,required:!0,default:[]}},JE=o.defineComponent({__name:"FilterAdvanced",props:KE,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.reactive(n.filterValue);o.watch(a,()=>{t("update:filterValue",a)});function i(){a.splice(0)}function s(){a.push({attribute:"attack",equality:">",number:0})}return(l,c)=>(o.openBlock(),o.createBlock(yt,{class:"advanced-filters","filter-array":a,title:o.unref(r)("general.advanced"),"onClear:filterArray":i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a,(u,d)=>(o.openBlock(),o.createBlock(lp,{key:d,"filter-value":a[d],"onUpdate:filterValue":f=>a[d]=f,class:"advanced-filter-item"},null,8,["filter-value","onUpdate:filterValue"]))),128)),o.createElementVNode("div",{class:"new-advanced-filter",onClick:s},o.toDisplayString(o.unref(r)("general.newAdvancedFilter")),1)]),_:1},8,["filter-array","title"]))}});const cp=B(JE,[["__scopeId","data-v-6c23ee29"]]),ZE={filterArray:{type:Array,required:!0,default:[]}},QE={class:"checkboxes-container"},up=o.defineComponent({__name:"FilterTypes",props:ZE,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.computed(()=>Ce().dataJson.types.filter(c=>["Unit","Spell","Landmark","Equipment"].includes(c.nameRef))),i=o.reactive(n.filterArray);o.watch(i,()=>{t("update:filterArray",i)});function s(){i.splice(0)}function l(c){const u=i.indexOf(c);if(u===-1){i.push(c);return}i.splice(u,1)}return(c,u)=>(o.openBlock(),o.createBlock(yt,{"filter-array":n.filterArray,title:o.unref(r)("general.types"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createElementVNode("div",QE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),d=>(o.openBlock(),o.createBlock(Wt,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":i.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),e9={filters:{type:Object,required:!0,default:{advancedFilters:[],regionFilters:[],manaCostFilters:[],typeFilters:[],rarityFilters:[],setFilters:[],keywordFilters:[]}}},X2=o.defineComponent({__name:"FilterCards",props:e9,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=o.reactive(n.filters);o.watch(r,()=>{t("update:filters",r)});function a(){for(const[,i]of Object.entries(r))i.splice(0)}return(i,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",{onClick:a},"CLEAR ALL"),o.createVNode(np,{"filter-array":r.manaCostFilters,"onUpdate:filterArray":s[0]||(s[0]=l=>r.manaCostFilters=l)},null,8,["filter-array"]),o.createVNode(Vc,{"filter-array":r.regionFilters,"onUpdate:filterArray":s[1]||(s[1]=l=>r.regionFilters=l)},null,8,["filter-array"]),o.createVNode(up,{"filter-array":r.typeFilters,"onUpdate:filterArray":s[2]||(s[2]=l=>r.typeFilters=l)},null,8,["filter-array"]),o.createVNode(rp,{"filter-array":r.rarityFilters,"onUpdate:filterArray":s[3]||(s[3]=l=>r.rarityFilters=l)},null,8,["filter-array"]),o.createVNode(ap,{"filter-array":r.setFilters,"onUpdate:filterArray":s[4]||(s[4]=l=>r.setFilters=l)},null,8,["filter-array"]),o.createVNode(ip,{"filter-array":r.keywordFilters,"onUpdate:filterArray":s[5]||(s[5]=l=>r.keywordFilters=l)},null,8,["filter-array"]),o.createVNode(cp,{"filter-value":r.advancedFilters,"onUpdate:filterValue":s[6]||(s[6]=l=>r.advancedFilters=l)},null,8,["filter-value"])]))}}),t9={cardCodes:{type:Array,required:!0,default:[]}},K2=o.defineComponent({__name:"CopyMeComponent",props:t9,setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div"))}}),n9={regionRef:{type:String,required:!0,default:"Ionia"}},r9={text:{type:String,required:!0,default:""}},a9=["innerHTML"],i9=o.defineComponent({__name:"TippyText",props:r9,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:"tippy-text",innerHTML:t.text},null,8,a9))}});const So=B(i9,[["__scopeId","data-v-715107fe"]]),s9={class:"region-item"},o9=["alt","src"],l9=o.defineComponent({__name:"RegionItem",props:n9,setup(e){const t=e,n=o.ref(null),r=o.ref(null),a=o.computed(()=>Ce().dataJson.regions.find(i=>i.nameRef==t.regionRef)??Ce().dataJson.runeterraChampions.find(i=>i.nameRef===t.regionRef));return o.onMounted(()=>{st(n.value,{content:r.value,arrow:!0})}),(i,s)=>{var l,c,u;return o.openBlock(),o.createElementBlock("div",s9,[o.createElementVNode("img",{ref_key:"regionImg",ref:n,alt:(l=o.unref(a))==null?void 0:l.name,src:(c=o.unref(a))==null?void 0:c.icon,class:"region-img"},null,8,o9),o.createElementVNode("div",{ref_key:"regionTippy",ref:r},[o.createVNode(So,{text:(u=o.unref(a))==null?void 0:u.name},null,8,["text"])],512)])}}});const xo=B(l9,[["__scopeId","data-v-3d756f50"]]),c9={deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},cards:{type:Array,required:!1},describeRegions:{type:Boolean,required:!1,default:!1}},u9={class:"regions-line"},d9={key:0,class:"describe-regions"},f9={class:"lines"},p9=o.defineComponent({__name:"RegionsLine",props:c9,setup(e){const t=e,{t:n}=re(),r=o.computed(()=>t.deck?t.deck:Et(t.deckCode)),a=o.computed(()=>t.cards?t.cards:cn(r.value)),i=o.computed(()=>{const l={};for(const c of Ic(r.value))l[c]=0;for(const c of a.value)for(const u of c.regionRefs)u in l&&(l[u]+=r.value[c.cardCode]);return l});function s(l,c){return{flexGrow:l,backgroundColor:`var(--color-${c}, var(--color-Runeterra))`}}return(l,c)=>(o.openBlock(),o.createElementBlock("div",u9,[t.describeRegions?(o.openBlock(),o.createElementBlock("div",d9,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),(u,d)=>(o.openBlock(),o.createElementBlock("div",{key:d,class:"region-description"},[o.createVNode(xo,{"region-ref":d,class:"icon"},null,8,["region-ref"]),o.createElementVNode("span",null,o.toDisplayString(`${u} ${o.unref(n)("general.cards")}`),1)]))),128))])):o.createCommentVNode("",!0),o.createElementVNode("div",f9,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),(u,d)=>(o.openBlock(),o.createElementBlock("div",{key:d,style:o.normalizeStyle(s(u,d)),class:"region-line"},null,4))),128))])]))}});const dp=B(p9,[["__scopeId","data-v-f1f94f8b"]]),h9={cardCode:{type:String,required:!0,default:"01IO001"},toggledStats:{type:Object,required:!0,default:{matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!1,kept:!1,drawnWinrate:!1,turnsHeld:!1,turnPlayed:!1}},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},inclusion:{type:Number,required:!0,default:.5},avgCopies:{type:Number,required:!0,default:1},mulliganWinrate:{type:Number,required:!1,default:void 0},keptInMulligan:{type:Number,required:!1,default:void 0},drawnWinrate:{type:Number,required:!1,default:void 0},turnsHeld:{type:Number,required:!1,default:void 0},turnPlayed:{type:Number,required:!1,default:void 0}},m9={href:"/test",class:"wrapper"},g9={class:"cards-row-background-wrapper"},v9={class:"cards-row-background"},_9={class:"cards-row wrapper"},y9={key:0,class:"column-content"},b9={key:2,class:"column-content"},k9={key:3,class:"column-content"},w9={key:5,class:"column-content"},S9={key:7,class:"column-content"},x9={key:8,class:"column-content"},C9=o.defineComponent({__name:"CardsRow",props:h9,setup(e){const t=e,n=o.computed(()=>["",`https://lor.gg/storage/cards/banner/${t.cardCode}.png`]);return(r,a)=>(o.openBlock(),o.createElementBlock("a",m9,[o.createElementVNode("div",{class:"cards-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",g9,[o.createElementVNode("div",v9,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(n),i=>(o.openBlock(),o.createElementBlock("div",{key:i,class:"background-card",style:o.normalizeStyle({"--background-image":`url(${i})`})},null,4))),128))])]),o.createElementVNode("div",_9,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:a[0]||(a[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(an,{class:"card-slice-item","card-code-prop":t.cardCode,"maintain-aspect-ratio":!0},null,8,["card-code-prop"])]),t.toggledStats.matches?(o.openBlock(),o.createElementBlock("div",y9,o.toDisplayString(o.unref(Me)(t.matches)),1)):o.createCommentVNode("",!0),t.toggledStats.winrate?(o.openBlock(),o.createElementBlock("div",{key:1,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,2,3)+"%"),5)):o.createCommentVNode("",!0),t.toggledStats.inclusion?(o.openBlock(),o.createElementBlock("div",b9,o.toDisplayString(o.unref(Me)(t.inclusion*100,2,3)+"%"),1)):o.createCommentVNode("",!0),t.toggledStats.avgCopies?(o.openBlock(),o.createElementBlock("div",k9,o.toDisplayString(o.unref(Me)(t.avgCopies,2,3)),1)):o.createCommentVNode("",!0),t.toggledStats.mulliganWinrate?(o.openBlock(),o.createElementBlock("div",{key:4,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.mulliganWinrate,t.wins/t.matches)})`})},o.toDisplayString(t.mulliganWinrate?o.unref(Me)(t.mulliganWinrate*100,2,3)+"%":"-"),5)):o.createCommentVNode("",!0),t.toggledStats.keptInMulligan?(o.openBlock(),o.createElementBlock("div",w9,o.toDisplayString(t.keptInMulligan?o.unref(Me)(t.keptInMulligan*100,2,3)+"%":"-"),1)):o.createCommentVNode("",!0),t.toggledStats.drawnWinrate?(o.openBlock(),o.createElementBlock("div",{key:6,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.drawnWinrate,t.wins/t.matches)})`})},o.toDisplayString(t.drawnWinrate?o.unref(Me)(t.drawnWinrate*100,2,3)+"%":"-"),5)):o.createCommentVNode("",!0),t.toggledStats.turnPlayed?(o.openBlock(),o.createElementBlock("div",S9,o.toDisplayString(t.turnPlayed?o.unref(Me)(t.turnPlayed,2,3):"-"),1)):o.createCommentVNode("",!0),t.toggledStats.turnsHeld?(o.openBlock(),o.createElementBlock("div",x9,o.toDisplayString(t.turnsHeld?o.unref(Me)(t.turnsHeld,2,3):"-"),1)):o.createCommentVNode("",!0)])],4)]))}});const fp=B(C9,[["__scopeId","data-v-2d3d4246"]]),E9={cardRows:{type:Array,required:!0,default:[]},cardsRowToggle:{type:Object,requied:!0,default:{card:!0,matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!0,keptInMulligan:!0,drawnWinrate:!0,turnsHeld:!0,turnPlayed:!0}}};var _e=(e=>(e.UP="sort-up",e.DOWN="sort-down",e.NEITHER="sort-neither",e.NOT_SORTABLE="not-sortable",e))(_e||{});const T9={headingItems:{type:Array,required:!0,default:[]}},O9=e=>(o.pushScopeId("data-v-43d2a2a5"),e=e(),o.popScopeId(),e),M9={class:"table-wrapper"},N9={class:"table no-scrollbar"},D9=O9(()=>o.createElementVNode("div",{class:"heading-background-outer"},[o.createElementVNode("div",{class:"heading-background-absolute"}),o.createElementVNode("div",{class:"heading-background-inner"})],-1)),P9={class:"heading wrapper"},A9=["onClick"],I9={class:"sort-icons"},L9=o.defineComponent({__name:"LargeTable",props:T9,emits:["toggleSort"],setup(e,{emit:t}){const n=e,r=o.computed(()=>n.headingItems.filter(a=>a.isShown));return(a,i)=>(o.openBlock(),o.createElementBlock("div",M9,[o.createElementVNode("div",N9,[D9,o.createElementVNode("div",P9,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r),s=>(o.openBlock(),o.createElementBlock("div",{key:s.title,class:o.normalizeClass(["heading-cell column-content",s.sortDirection]),onClick:l=>t("toggleSort",s.id)},[o.createElementVNode("div",null,o.toDisplayString(s.title),1),o.createElementVNode("div",I9,[o.createVNode(o.unref(nt),{icon:"sort-up",class:"sort-icon"}),o.createVNode(o.unref(nt),{icon:"sort-down",class:"sort-icon"})])],10,A9))),128))]),o.renderSlot(a.$slots,"default",{},void 0,!0)])]))}});const ua=B(L9,[["__scopeId","data-v-43d2a2a5"]]);function Wi(e,t){const n=t.value.find(a=>a.id===e);if(!n||n.sortDirection===_e.NOT_SORTABLE)return;const r=n.sortDirection;if(R9(t),r===_e.NEITHER){n.sortDirection=_e.DOWN;return}if(r===_e.DOWN){n.sortDirection=_e.UP;return}n.sortDirection=_e.DOWN}function R9(e){e.value.forEach(t=>{t.sortDirection!==_e.NOT_SORTABLE&&(t.sortDirection=_e.NEITHER)})}const B9=o.defineComponent({__name:"CardsTable",props:E9,setup(e){const t=e,{t:n}=re(),r=[{id:"card",isAlwaysShown:!0,isSortable:!1,title:n("general.card")},{id:"matches",isAlwaysShown:!1,isSortable:!0,title:n("general.matches")},{id:"winrate",isAlwaysShown:!1,isSortable:!0,title:n("general.winrate")},{id:"inclusion",isAlwaysShown:!1,isSortable:!0,title:n("general.inclusion")},{id:"avgCopies",isAlwaysShown:!1,isSortable:!0,title:n("general.avgCopies")},{id:"mulliganWinrate",isAlwaysShown:!1,isSortable:!0,title:n("general.mulliganWinrate")},{id:"keptInMulligan",isAlwaysShown:!1,isSortable:!0,title:n("general.keptInMulligan")},{id:"drawnWinrate",isAlwaysShown:!1,isSortable:!0,title:n("general.drawnWinrate")},{id:"turnsHeld",isAlwaysShown:!1,isSortable:!0,title:n("general.turnsHeld")},{id:"turnPlayed",isAlwaysShown:!1,isSortable:!0,title:n("general.turnPlayed")}];let a=!1;const i=o.ref(r.map(c=>{let u=_e.NEITHER;return c.isSortable||(u=_e.NOT_SORTABLE),!a&&c.isSortable&&(u=_e.DOWN,a=!0),{id:c.id,isShown:t.cardsRowToggle[c.id],sortDirection:u,title:c.title}})),s=o.computed(()=>({"--table-grid-template-columns":`repeat(${Object.values(t.cardsRowToggle).reduce((u,d)=>d?u+1:u,0)}, 1fr)`}));function l(c){Wi(c,i)}return(c,u)=>(o.openBlock(),o.createBlock(ua,{class:"large-table","heading-items":i.value,style:o.normalizeStyle(o.unref(s)),onToggleSort:l},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.cardRows,(d,f)=>(o.openBlock(),o.createBlock(fp,{key:d.cardCode,"card-code":d.cardCode,matches:d.matches,wins:d.wins,index:f+2,"avg-copies":d.avgCopies,"drawn-winrate":d.drawnWinrate,"kept-in-mulligan":d.keptInMulligan,"mulligan-winrate":d.mulliganWinrate,inclusion:d.inclusion,"turns-held":d.turnsHeld,"turn-played":d.turnPlayed,"toggled-stats":t.cardsRowToggle},null,8,["card-code","matches","wins","index","avg-copies","drawn-winrate","kept-in-mulligan","mulligan-winrate","inclusion","turns-held","turn-played","toggled-stats"]))),128))]),_:1},8,["heading-items","style"]))}});const J2=B(B9,[["__scopeId","data-v-0f368ec8"]]),V9={regions:{type:Array,required:!0,default:[]}},$9={class:"deck-highlight-regions"},F9=o.defineComponent({__name:"DeckHighlightRegions",props:V9,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",$9,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.regions,a=>(o.openBlock(),o.createElementBlock("div",{key:a,class:"region-item-wrapper"},[o.createVNode(xo,{class:"region-item","region-ref":a},null,8,["region-ref"])]))),128))]))}});const Co=B(F9,[["__scopeId","data-v-d28f95f4"]]),z9={},j9={xmlns:"http://www.w3.org/2000/svg",viewBox:"215.7 48.9 276.9 496"},H9=o.createStaticVNode('<path fill="#146743" d="m271 136-54 90 150 316 14-50 29-312-51-130-88 86Z"></path><path fill="#419a4a" d="m356 121-75 105 86 316 14-50 29-312-54-59Z"></path><path fill="#baffb6" d="M410 180 359 50l-3 71 54 59Z"></path><path fill="#437f41" d="m359 50-88 86 10 90 75-105 3-71ZM281 360l86 182-86-316v134Z"></path><path fill="#419a4a" d="m454 332 28 33-33 85-4-13-8-85 17-20Z"></path>',5),W9=[H9];function U9(e,t){return o.openBlock(),o.createElementBlock("svg",j9,W9)}const pp=B(z9,[["render",U9]]),Y9={deck:{type:Object,required:!0,default:{}}},q9=e=>(o.pushScopeId("data-v-25f680e9"),e=e(),o.popScopeId(),e),G9={class:"gems-text"},X9={class:"gems-cost-title"},K9={class:"gems-cost-value"},J9=q9(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),Z9={class:"gems-cost-title"},Q9={class:"gems-cost-value"},eT=o.defineComponent({__name:"GemsCost",props:Y9,setup(e){const t=e,{t:n}=re(),r=o.ref(null),a=o.ref(null),i=o.computed(()=>ec(t.deck,!1)),s=o.computed(()=>ec(t.deck,!0));return o.onMounted(()=>{st(r.value,{content:a.value,arrow:!0,duration:0})}),(l,c)=>{var u,d,f;return o.openBlock(),o.createElementBlock("div",{ref_key:"gemsCostDiv",ref:r,class:"gems-cost"},[o.createVNode(pp,{class:"shards-icon"}),o.createElementVNode("div",G9,o.toDisplayString((u=o.unref(s)!==null?o.unref(s):o.unref(i))==null?void 0:u.toLocaleString()),1),o.createElementVNode("div",{ref_key:"gemsCostTippyDiv",ref:a,class:"gems-cost-tippy"},[o.unref(s)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",X9,o.toDisplayString(o.unref(n)("deck.personalCost")),1),o.createElementVNode("div",K9,o.toDisplayString((d=o.unref(s))==null?void 0:d.toLocaleString()),1),J9],64)):o.createCommentVNode("",!0),o.createElementVNode("div",Z9,o.toDisplayString(o.unref(n)("deck.originalCost")),1),o.createElementVNode("div",Q9,o.toDisplayString((f=o.unref(i))==null?void 0:f.toLocaleString()),1)],512)],512)}}});const hp=B(eT,[["__scopeId","data-v-25f680e9"]]),tT={class:"language-selection"},nT=["value"],rT=o.defineComponent({__name:"LanguageSelection",setup(e){const t=o.ref(!1);function n(){t.value=!0}return(r,a)=>(o.openBlock(),o.createElementBlock("div",tT,[o.createVNode(o.unref(nt),{ref:"languageIcon",icon:"language",class:"icon",onClick:n},null,512),o.createVNode(Hi,{"show-modal":t.value,"onUpdate:showModal":a[1]||(a[1]=i=>t.value=i)},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("select",{"onUpdate:modelValue":a[0]||(a[0]=i=>r.$i18n.locale=i)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.$i18n.availableLocales,i=>(o.openBlock(),o.createElementBlock("option",{key:`locale-${i}`,value:i},o.toDisplayString(i),9,nT))),128))],512),[[o.vModelSelect,r.$i18n.locale]])]),_:1},8,["show-modal"])]))}});const mp=B(rT,[["__scopeId","data-v-741580c8"]]),aT={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]}},Z2={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},ignoreCardItem:{type:Boolean,required:!1},regions:{type:Array,required:!1,default:void 0},colorOverride:{type:String,required:!1,default:void 0}},iT={class:"circle-card-item"},sT=["alt","src"],oT=o.defineComponent({__name:"CircleCardItem",props:Z2,setup(e){const t=e,n=_o(t.cardProp,t.cardCodeProp,!0),r=o.ref(null),a=o.ref(null),i=o.ref(null),s=o.ref(null),l=o.computed(()=>{var u;return"https://lor.gg/storage/cards/icon/"+((u=n.value)==null?void 0:u.cardCode)+"-icon.webp"}),c=o.computed(()=>n.value===void 0?"--color-primary-2":Ca(n.value,t.regions));return o.onMounted(()=>{t.ignoreCardItem||st(r.value,{content:a.value,placement:"right",arrow:!0,touch:"hold",duration:0,role:"card-image",onShown:u=>{const d=u.popper.innerHTML.includes("right")?"right-start":"left-start";s.value=d},onHidden:()=>{s.value=null}})}),(u,d)=>{var f;return o.openBlock(),o.createElementBlock("div",iT,[o.createElementVNode("a",{href:"test/card",class:"circle-card-link",onClick:d[0]||(d[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createElementVNode("img",{ref_key:"circleCardImg",ref:r,alt:(f=o.unref(n))==null?void 0:f.name,src:o.unref(l),class:"circle-card-img",style:o.normalizeStyle({borderColor:t.colorOverride??o.unref(c)})},null,12,sT)]),o.createElementVNode("div",{ref_key:"circleCardTippy",ref:a,class:"circle-card-tippy"},[!u.ignoreCardItem&&o.unref(n)?(o.openBlock(),o.createBlock(Sr,{key:0,ref_key:"cardItem",ref:i,"card-code-prop":o.unref(n).cardCode,"is-deck-builder":!1,"is-root":!0,"show-tippy-location":s.value},null,8,["card-code-prop","show-tippy-location"])):o.createCommentVNode("",!0)],512)])}}});const da=B(oT,[["__scopeId","data-v-3769c05a"]]),lT={cards:{type:Array,required:!1,default:void 0},cardCodes:{type:Array,required:!1,default:void 0},regions:{type:Array,required:!1,default:[]}},cT={class:"deck-highlight-cards"},uT=o.defineComponent({__name:"DeckHighlightCards",props:lT,setup(e){const t=e,n=o.computed(()=>{if(t.cards)return t.cards;if(t.cardCodes)return t.cardCodes.map(r=>Dt().cardJsonObject[r]).filter(r=>r!==void 0);throw new Error("Cards or CardCodes must be defined.")});return(r,a)=>(o.openBlock(),o.createElementBlock("div",cT,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(n),(i,s)=>(o.openBlock(),o.createElementBlock("div",{key:i.cardCode??s,class:"circle-card-item-wrapper"},[o.createVNode(da,{class:"circle-card-item","card-prop":i,regions:t.regions},null,8,["card-prop","regions"])]))),128))]))}});const Eo=B(uT,[["__scopeId","data-v-4d804eb7"]]),dT=o.defineComponent({__name:"ArchetypeSidePanelHighlight",props:aT,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createBlock(yt,{class:"archetype-side-panel-highlight"},{default:o.withCtx(()=>[o.createVNode(Co,{class:"deck-highlight-regions",regions:t.regions},null,8,["regions"]),o.createVNode(Eo,{class:o.normalizeClass(["deck-highlight-cards",t.cardCodes.length===1?"single":""]),"card-codes":t.cardCodes},null,8,["class","card-codes"])]),_:1}))}});const $c=B(dT,[["__scopeId","data-v-ff538f6f"]]),fT={deckcode:{type:String,required:!0,default:""},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[]}}},pT={deckCode:{type:String,required:!0,default:""},info:{type:String,required:!0,default:"typeRef"}};/*!
815
+ * @kurkle/color v0.3.2
816
+ * https://github.com/kurkle/color#readme
817
+ * (c) 2023 Jukka Kurkela
818
+ * Released under the MIT License
819
+ */function To(e){return e+.5|0}const jr=(e,t,n)=>Math.max(Math.min(e,n),t);function hs(e){return jr(To(e*2.55),0,255)}function Gr(e){return jr(To(e*255),0,255)}function ur(e){return jr(To(e/2.55)/100,0,1)}function $1(e){return jr(To(e*100),0,100)}const gn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},$d=[..."0123456789ABCDEF"],hT=e=>$d[e&15],mT=e=>$d[(e&240)>>4]+$d[e&15],ll=e=>(e&240)>>4===(e&15),gT=e=>ll(e.r)&&ll(e.g)&&ll(e.b)&&ll(e.a);function vT(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&gn[e[1]]*17,g:255&gn[e[2]]*17,b:255&gn[e[3]]*17,a:t===5?gn[e[4]]*17:255}:(t===7||t===9)&&(n={r:gn[e[1]]<<4|gn[e[2]],g:gn[e[3]]<<4|gn[e[4]],b:gn[e[5]]<<4|gn[e[6]],a:t===9?gn[e[7]]<<4|gn[e[8]]:255})),n}const _T=(e,t)=>e<255?t(e):"";function yT(e){var t=gT(e)?hT:mT;return e?"#"+t(e.r)+t(e.g)+t(e.b)+_T(e.a,t):void 0}const bT=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Q2(e,t,n){const r=t*Math.min(n,1-n),a=(i,s=(i+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[a(0),a(8),a(4)]}function kT(e,t,n){const r=(a,i=(a+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function wT(e,t,n){const r=Q2(e,1,.5);let a;for(t+n>1&&(a=1/(t+n),t*=a,n*=a),a=0;a<3;a++)r[a]*=1-t-n,r[a]+=t;return r}function ST(e,t,n,r,a){return e===a?(t-n)/r+(t<n?6:0):t===a?(n-e)/r+2:(e-t)/r+4}function gp(e){const n=e.r/255,r=e.g/255,a=e.b/255,i=Math.max(n,r,a),s=Math.min(n,r,a),l=(i+s)/2;let c,u,d;return i!==s&&(d=i-s,u=l>.5?d/(2-i-s):d/(i+s),c=ST(n,r,a,d,i),c=c*60+.5),[c|0,u||0,l]}function vp(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Gr)}function _p(e,t,n){return vp(Q2,e,t,n)}function xT(e,t,n){return vp(wT,e,t,n)}function CT(e,t,n){return vp(kT,e,t,n)}function e_(e){return(e%360+360)%360}function ET(e){const t=bT.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?hs(+t[5]):Gr(+t[5]));const a=e_(+t[2]),i=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=xT(a,i,s):t[1]==="hsv"?r=CT(a,i,s):r=_p(a,i,s),{r:r[0],g:r[1],b:r[2],a:n}}function TT(e,t){var n=gp(e);n[0]=e_(n[0]+t),n=_p(n),e.r=n[0],e.g=n[1],e.b=n[2]}function OT(e){if(!e)return;const t=gp(e),n=t[0],r=$1(t[1]),a=$1(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${a}%, ${ur(e.a)})`:`hsl(${n}, ${r}%, ${a}%)`}const F1={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},z1={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function MT(){const e={},t=Object.keys(z1),n=Object.keys(F1);let r,a,i,s,l;for(r=0;r<t.length;r++){for(s=l=t[r],a=0;a<n.length;a++)i=n[a],l=l.replace(i,F1[i]);i=parseInt(z1[s],16),e[l]=[i>>16&255,i>>8&255,i&255]}return e}let cl;function NT(e){cl||(cl=MT(),cl.transparent=[0,0,0,0]);const t=cl[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const DT=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function PT(e){const t=DT.exec(e);let n=255,r,a,i;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?hs(s):jr(s*255,0,255)}return r=+t[1],a=+t[3],i=+t[5],r=255&(t[2]?hs(r):jr(r,0,255)),a=255&(t[4]?hs(a):jr(a,0,255)),i=255&(t[6]?hs(i):jr(i,0,255)),{r,g:a,b:i,a:n}}}function AT(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ur(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Vu=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,si=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function IT(e,t,n){const r=si(ur(e.r)),a=si(ur(e.g)),i=si(ur(e.b));return{r:Gr(Vu(r+n*(si(ur(t.r))-r))),g:Gr(Vu(a+n*(si(ur(t.g))-a))),b:Gr(Vu(i+n*(si(ur(t.b))-i))),a:e.a+n*(t.a-e.a)}}function ul(e,t,n){if(e){let r=gp(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=_p(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function t_(e,t){return e&&Object.assign(t||{},e)}function j1(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Gr(e[3]))):(t=t_(e,{r:0,g:0,b:0,a:1}),t.a=Gr(t.a)),t}function LT(e){return e.charAt(0)==="r"?PT(e):ET(e)}class eo{constructor(t){if(t instanceof eo)return t;const n=typeof t;let r;n==="object"?r=j1(t):n==="string"&&(r=vT(t)||NT(t)||LT(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=t_(this._rgb);return t&&(t.a=ur(t.a)),t}set rgb(t){this._rgb=j1(t)}rgbString(){return this._valid?AT(this._rgb):void 0}hexString(){return this._valid?yT(this._rgb):void 0}hslString(){return this._valid?OT(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,a=t.rgb;let i;const s=n===i?.5:n,l=2*s-1,c=r.a-a.a,u=((l*c===-1?l:(l+c)/(1+l*c))+1)/2;i=1-u,r.r=255&u*r.r+i*a.r+.5,r.g=255&u*r.g+i*a.g+.5,r.b=255&u*r.b+i*a.b+.5,r.a=s*r.a+(1-s)*a.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=IT(this._rgb,t._rgb,n)),this}clone(){return new eo(this.rgb)}alpha(t){return this._rgb.a=Gr(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=To(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return ul(this._rgb,2,t),this}darken(t){return ul(this._rgb,2,-t),this}saturate(t){return ul(this._rgb,1,t),this}desaturate(t){return ul(this._rgb,1,-t),this}rotate(t){return TT(this._rgb,t),this}}/*!
820
+ * Chart.js v4.3.0
821
+ * https://www.chartjs.org
822
+ * (c) 2023 Chart.js Contributors
823
+ * Released under the MIT License
824
+ */function rr(){}const RT=(()=>{let e=0;return()=>e++})();function ye(e){return e===null||typeof e>"u"}function Ne(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function he(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function rt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Zt(e,t){return rt(e)?e:t}function le(e,t){return typeof e>"u"?t:e}const BT=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,n_=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ie(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Le(e,t,n,r){let a,i,s;if(Ne(e))if(i=e.length,r)for(a=i-1;a>=0;a--)t.call(n,e[a],a);else for(a=0;a<i;a++)t.call(n,e[a],a);else if(he(e))for(s=Object.keys(e),i=s.length,a=0;a<i;a++)t.call(n,e[s[a]],s[a])}function rc(e,t){let n,r,a,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(a=e[n],i=t[n],a.datasetIndex!==i.datasetIndex||a.index!==i.index)return!1;return!0}function ac(e){if(Ne(e))return e.map(ac);if(he(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let a=0;for(;a<r;++a)t[n[a]]=ac(e[n[a]]);return t}return e}function r_(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function VT(e,t,n,r){if(!r_(e))return;const a=t[e],i=n[e];he(a)&&he(i)?Xn(a,i,r):t[e]=ac(i)}function Xn(e,t,n){const r=Ne(t)?t:[t],a=r.length;if(!he(e))return e;n=n||{};const i=n.merger||VT;let s;for(let l=0;l<a;++l){if(s=r[l],!he(s))continue;const c=Object.keys(s);for(let u=0,d=c.length;u<d;++u)i(c[u],e,s,n)}return e}function Ts(e,t){return Xn(e,t,{merger:$T})}function $T(e,t,n){if(!r_(e))return;const r=t[e],a=n[e];he(r)&&he(a)?Ts(r,a):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=ac(a))}const H1={"":e=>e,x:e=>e.x,y:e=>e.y};function FT(e){const t=e.split("."),n=[];let r="";for(const a of t)r+=a,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function zT(e){const t=FT(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function na(e,t){return(H1[t]||(H1[t]=zT(t)))(e)}function yp(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Kt=e=>typeof e<"u",Xt=e=>typeof e=="function",W1=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function jT(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Ee=Math.PI,We=2*Ee,HT=We+Ee,ic=Number.POSITIVE_INFINITY,bp=Ee/180,Ue=Ee/2,vn=Ee/4,sc=Ee*2/3,Hr=Math.log10,Yn=Math.sign;function Os(e,t,n){return Math.abs(e-t)<n}function U1(e){const t=Math.round(e);e=Os(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Hr(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function WT(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((a,i)=>a-i).pop(),t}function ra(e){return!isNaN(parseFloat(e))&&isFinite(e)}function UT(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function a_(e,t,n){let r,a,i;for(r=0,a=e.length;r<a;r++)i=e[r][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function ht(e){return e*(Ee/180)}function Fc(e){return e*(180/Ee)}function Y1(e){if(!rt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function i_(e,t){const n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i<-.5*Ee&&(i+=We),{angle:i,distance:a}}function Ai(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function YT(e,t){return(e-t+HT)%We-Ee}function en(e){return(e%We+We)%We}function to(e,t,n,r){const a=en(e),i=en(t),s=en(n),l=en(i-a),c=en(s-a),u=en(a-i),d=en(a-s);return a===i||a===s||r&&i===s||l>c&&u<d}function xt(e,t,n){return Math.max(t,Math.min(n,e))}function qT(e){return xt(e,-32768,32767)}function fr(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function kp(e,t,n){n=n||(s=>e[s]<t);let r=e.length-1,a=0,i;for(;r-a>1;)i=a+r>>1,n(i)?a=i:r=i;return{lo:a,hi:r}}const pr=(e,t,n,r)=>kp(e,n,r?a=>{const i=e[a][t];return i<n||i===n&&e[a+1][t]===n}:a=>e[a][t]<n),GT=(e,t,n)=>kp(e,n,r=>e[r][t]>=n);function XT(e,t,n){let r=0,a=e.length;for(;r<a&&e[r]<t;)r++;for(;a>r&&e[a-1]>n;)a--;return r>0||a<e.length?e.slice(r,a):e}const s_=["push","pop","shift","splice","unshift"];function KT(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),s_.forEach(n=>{const r="_onData"+yp(n),a=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const s=a.apply(this,i);return e._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),s}})})}function q1(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,a=r.indexOf(t);a!==-1&&r.splice(a,1),!(r.length>0)&&(s_.forEach(i=>{delete e[i]}),delete e._chartjs)}function o_(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const l_=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function c_(e,t){let n=[],r=!1;return function(...a){n=a,r||(r=!0,l_.call(window,()=>{r=!1,e.apply(t,n)}))}}function JT(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const wp=e=>e==="start"?"left":e==="end"?"right":"center",Ot=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,ZT=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function u_(e,t,n){const r=t.length;let a=0,i=r;if(e._sorted){const{iScale:s,_parsed:l}=e,c=s.axis,{min:u,max:d,minDefined:f,maxDefined:p}=s.getUserBounds();f&&(a=xt(Math.min(pr(l,s.axis,u).lo,n?r:pr(t,c,s.getPixelForValue(u)).lo),0,r-1)),p?i=xt(Math.max(pr(l,s.axis,d,!0).hi+1,n?0:pr(t,c,s.getPixelForValue(d),!0).hi+1),a,r)-a:i=r-a}return{start:a,count:i}}function d_(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,a={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=a,!0;const i=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,a),i}const dl=e=>e===0||e===1,G1=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*We/n)),X1=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*We/n)+1,Ms={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Ue)+1,easeOutSine:e=>Math.sin(e*Ue),easeInOutSine:e=>-.5*(Math.cos(Ee*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>dl(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>dl(e)?e:G1(e,.075,.3),easeOutElastic:e=>dl(e)?e:X1(e,.075,.3),easeInOutElastic(e){return dl(e)?e:e<.5?.5*G1(e*2,.1125,.45):.5+.5*X1(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Ms.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ms.easeInBounce(e*2)*.5:Ms.easeOutBounce(e*2-1)*.5+.5};function Sp(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function K1(e){return Sp(e)?e:new eo(e)}function $u(e){return Sp(e)?e:new eo(e).saturate(.5).darken(.1).hexString()}const QT=["x","y","borderWidth","radius","tension"],eO=["color","borderColor","backgroundColor"];function tO(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:eO},numbers:{type:"number",properties:QT}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function nO(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const J1=new Map;function rO(e,t){t=t||{};const n=e+JSON.stringify(t);let r=J1.get(n);return r||(r=new Intl.NumberFormat(e,t),J1.set(n,r)),r}function Oo(e,t,n){return rO(t,n).format(e)}const f_={values(e){return Ne(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let a,i=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(a="scientific"),i=aO(e,n)}const s=Hr(Math.abs(i)),l=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:a,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),Oo(e,r,c)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Hr(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?f_.numeric.call(this,e,t,n):""}};function aO(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var zc={formatters:f_};function iO(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:zc.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const ja=Object.create(null),Fd=Object.create(null);function Ns(e,t){if(!t)return e;const n=t.split(".");for(let r=0,a=n.length;r<a;++r){const i=n[r];e=e[i]||(e[i]=Object.create(null))}return e}function Fu(e,t,n){return typeof t=="string"?Xn(Ns(e,t),n):Xn(Ns(e,""),t)}class sO{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,a)=>$u(a.backgroundColor),this.hoverBorderColor=(r,a)=>$u(a.borderColor),this.hoverColor=(r,a)=>$u(a.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Fu(this,t,n)}get(t){return Ns(this,t)}describe(t,n){return Fu(Fd,t,n)}override(t,n){return Fu(ja,t,n)}route(t,n,r,a){const i=Ns(this,t),s=Ns(this,r),l="_"+n;Object.defineProperties(i,{[l]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const c=this[l],u=s[a];return he(c)?Object.assign({},u,c):le(c,u)},set(c){this[l]=c}}})}apply(t){t.forEach(n=>n(this))}}var at=new sO({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[tO,nO,iO]);function oO(e){return!e||ye(e.size)||ye(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function oc(e,t,n,r,a){let i=t[a];return i||(i=t[a]=e.measureText(a).width,n.push(a)),i>r&&(r=i),r}function lO(e,t,n,r){r=r||{};let a=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(a=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const l=n.length;let c,u,d,f,p;for(c=0;c<l;c++)if(f=n[c],f!=null&&!Ne(f))s=oc(e,a,i,s,f);else if(Ne(f))for(u=0,d=f.length;u<d;u++)p=f[u],p!=null&&!Ne(p)&&(s=oc(e,a,i,s,p));e.restore();const h=i.length/2;if(h>n.length){for(c=0;c<h;c++)delete a[i[c]];i.splice(0,h)}return s}function va(e,t,n){const r=e.currentDevicePixelRatio,a=n!==0?Math.max(n/2,.5):0;return Math.round((t-a)*r)/r+a}function Z1(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function zd(e,t,n,r){p_(e,t,n,r,null)}function p_(e,t,n,r,a){let i,s,l,c,u,d,f,p;const h=t.pointStyle,g=t.rotation,v=t.radius;let b=(g||0)*bp;if(h&&typeof h=="object"&&(i=h.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(v)||v<=0)){switch(e.beginPath(),h){default:a?e.ellipse(n,r,a/2,v,0,0,We):e.arc(n,r,v,0,We),e.closePath();break;case"triangle":d=a?a/2:v,e.moveTo(n+Math.sin(b)*d,r-Math.cos(b)*v),b+=sc,e.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*v),b+=sc,e.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*v),e.closePath();break;case"rectRounded":u=v*.516,c=v-u,s=Math.cos(b+vn)*c,f=Math.cos(b+vn)*(a?a/2-u:c),l=Math.sin(b+vn)*c,p=Math.sin(b+vn)*(a?a/2-u:c),e.arc(n-f,r-l,u,b-Ee,b-Ue),e.arc(n+p,r-s,u,b-Ue,b),e.arc(n+f,r+l,u,b,b+Ue),e.arc(n-p,r+s,u,b+Ue,b+Ee),e.closePath();break;case"rect":if(!g){c=Math.SQRT1_2*v,d=a?a/2:c,e.rect(n-d,r-c,2*d,2*c);break}b+=vn;case"rectRot":f=Math.cos(b)*(a?a/2:v),s=Math.cos(b)*v,l=Math.sin(b)*v,p=Math.sin(b)*(a?a/2:v),e.moveTo(n-f,r-l),e.lineTo(n+p,r-s),e.lineTo(n+f,r+l),e.lineTo(n-p,r+s),e.closePath();break;case"crossRot":b+=vn;case"cross":f=Math.cos(b)*(a?a/2:v),s=Math.cos(b)*v,l=Math.sin(b)*v,p=Math.sin(b)*(a?a/2:v),e.moveTo(n-f,r-l),e.lineTo(n+f,r+l),e.moveTo(n+p,r-s),e.lineTo(n-p,r+s);break;case"star":f=Math.cos(b)*(a?a/2:v),s=Math.cos(b)*v,l=Math.sin(b)*v,p=Math.sin(b)*(a?a/2:v),e.moveTo(n-f,r-l),e.lineTo(n+f,r+l),e.moveTo(n+p,r-s),e.lineTo(n-p,r+s),b+=vn,f=Math.cos(b)*(a?a/2:v),s=Math.cos(b)*v,l=Math.sin(b)*v,p=Math.sin(b)*(a?a/2:v),e.moveTo(n-f,r-l),e.lineTo(n+f,r+l),e.moveTo(n+p,r-s),e.lineTo(n-p,r+s);break;case"line":s=a?a/2:Math.cos(b)*v,l=Math.sin(b)*v,e.moveTo(n-s,r-l),e.lineTo(n+s,r+l);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(a?a/2:v),r+Math.sin(b)*v);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function hr(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Mo(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function No(e){e.restore()}function cO(e,t,n,r,a){if(!t)return e.lineTo(n.x,n.y);if(a==="middle"){const i=(t.x+n.x)/2;e.lineTo(i,t.y),e.lineTo(i,n.y)}else a==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function uO(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function dO(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),ye(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function fO(e,t,n,r,a){if(a.strikethrough||a.underline){const i=e.measureText(r),s=t-i.actualBoundingBoxLeft,l=t+i.actualBoundingBoxRight,c=n-i.actualBoundingBoxAscent,u=n+i.actualBoundingBoxDescent,d=a.strikethrough?(c+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=a.decorationWidth||2,e.moveTo(s,d),e.lineTo(l,d),e.stroke()}}function pO(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Ha(e,t,n,r,a,i={}){const s=Ne(t)?t:[t],l=i.strokeWidth>0&&i.strokeColor!=="";let c,u;for(e.save(),e.font=a.string,dO(e,i),c=0;c<s.length;++c)u=s[c],i.backdrop&&pO(e,i.backdrop),l&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),ye(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(u,n,r,i.maxWidth)),e.fillText(u,n,r,i.maxWidth),fO(e,n,r,u,i),r+=Number(a.lineHeight);e.restore()}function Ii(e,t){const{x:n,y:r,w:a,h:i,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,-Ue,Ee,!0),e.lineTo(n,r+i-s.bottomLeft),e.arc(n+s.bottomLeft,r+i-s.bottomLeft,s.bottomLeft,Ee,Ue,!0),e.lineTo(n+a-s.bottomRight,r+i),e.arc(n+a-s.bottomRight,r+i-s.bottomRight,s.bottomRight,Ue,0,!0),e.lineTo(n+a,r+s.topRight),e.arc(n+a-s.topRight,r+s.topRight,s.topRight,0,-Ue,!0),e.lineTo(n+s.topLeft,r)}const hO=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,mO=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function gO(e,t){const n=(""+e).match(hO);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const vO=e=>+e||0;function xp(e,t){const n={},r=he(t),a=r?Object.keys(t):t,i=he(e)?r?s=>le(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of a)n[s]=vO(i(s));return n}function h_(e){return xp(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Xr(e){return xp(e,["topLeft","topRight","bottomLeft","bottomRight"])}function pt(e){const t=h_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function it(e,t){e=e||{},t=t||at.font;let n=le(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=le(e.style,t.style);r&&!(""+r).match(mO)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const a={family:le(e.family,t.family),lineHeight:gO(le(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:le(e.weight,t.weight),string:""};return a.string=oO(a),a}function Ge(e,t,n,r){let a=!0,i,s,l;for(i=0,s=e.length;i<s;++i)if(l=e[i],l!==void 0&&(t!==void 0&&typeof l=="function"&&(l=l(t),a=!1),n!==void 0&&Ne(l)&&(l=l[n%l.length],a=!1),l!==void 0))return r&&!a&&(r.cacheable=!1),l}function _O(e,t,n){const{min:r,max:a}=e,i=n_(t,(a-r)/2),s=(l,c)=>n&&l===0?0:l+c;return{min:s(r,-Math.abs(i)),max:s(a,i)}}function fa(e,t){return Object.assign(Object.create(e),t)}function Cp(e,t=[""],n,r,a=()=>e[0]){const i=n||e;typeof r>"u"&&(r=__("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:r,_getTarget:a,override:l=>Cp([l,...e],t,i,r)};return new Proxy(s,{deleteProperty(l,c){return delete l[c],delete l._keys,delete e[0][c],!0},get(l,c){return g_(l,c,()=>EO(c,t,e,l))},getOwnPropertyDescriptor(l,c){return Reflect.getOwnPropertyDescriptor(l._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(l,c){return eg(l).includes(c)},ownKeys(l){return eg(l)},set(l,c,u){const d=l._storage||(l._storage=a());return l[c]=d[c]=u,delete l._keys,!0}})}function Li(e,t,n,r){const a={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:m_(e,r),setContext:i=>Li(e,i,n,r),override:i=>Li(e.override(i),t,n,r)};return new Proxy(a,{deleteProperty(i,s){return delete i[s],delete e[s],!0},get(i,s,l){return g_(i,s,()=>bO(i,s,l))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(i,s,l){return e[s]=l,delete i[s],!0}})}function m_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:a=t.allKeys}=e;return{allKeys:a,scriptable:n,indexable:r,isScriptable:Xt(n)?n:()=>n,isIndexable:Xt(r)?r:()=>r}}const yO=(e,t)=>e?e+yp(t):t,Ep=(e,t)=>he(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function g_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function bO(e,t,n){const{_proxy:r,_context:a,_subProxy:i,_descriptors:s}=e;let l=r[t];return Xt(l)&&s.isScriptable(t)&&(l=kO(t,l,e,n)),Ne(l)&&l.length&&(l=wO(t,l,e,s.isIndexable)),Ep(t,l)&&(l=Li(l,a,i&&i[t],s)),l}function kO(e,t,n,r){const{_proxy:a,_context:i,_subProxy:s,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);l.add(e);let c=t(i,s||r);return l.delete(e),Ep(e,c)&&(c=Tp(a._scopes,a,e,c)),c}function wO(e,t,n,r){const{_proxy:a,_context:i,_subProxy:s,_descriptors:l}=n;if(typeof i.index<"u"&&r(e))return t[i.index%t.length];if(he(t[0])){const c=t,u=a._scopes.filter(d=>d!==c);t=[];for(const d of c){const f=Tp(u,a,e,d);t.push(Li(f,i,s&&s[e],l))}}return t}function v_(e,t,n){return Xt(e)?e(t,n):e}const SO=(e,t)=>e===!0?t:typeof e=="string"?na(t,e):void 0;function xO(e,t,n,r,a){for(const i of t){const s=SO(n,i);if(s){e.add(s);const l=v_(s._fallback,n,a);if(typeof l<"u"&&l!==n&&l!==r)return l}else if(s===!1&&typeof r<"u"&&n!==r)return null}return!1}function Tp(e,t,n,r){const a=t._rootScopes,i=v_(t._fallback,n,r),s=[...e,...a],l=new Set;l.add(r);let c=Q1(l,s,n,i||n,r);return c===null||typeof i<"u"&&i!==n&&(c=Q1(l,s,i,c,r),c===null)?!1:Cp(Array.from(l),[""],a,i,()=>CO(t,n,r))}function Q1(e,t,n,r,a){for(;n;)n=xO(e,t,n,r,a);return n}function CO(e,t,n){const r=e._getTarget();t in r||(r[t]={});const a=r[t];return Ne(a)&&he(n)?n:a||{}}function EO(e,t,n,r){let a;for(const i of t)if(a=__(yO(i,e),n),typeof a<"u")return Ep(e,a)?Tp(n,r,e,a):a}function __(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function eg(e){let t=e._keys;return t||(t=e._keys=TO(e._scopes)),t}function TO(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(a=>!a.startsWith("_")))t.add(r);return Array.from(t)}function y_(e,t,n,r){const{iScale:a}=e,{key:i="r"}=this._parsing,s=new Array(r);let l,c,u,d;for(l=0,c=r;l<c;++l)u=l+n,d=t[u],s[l]={r:a.parse(na(d,i),u)};return s}const OO=Number.EPSILON||1e-14,Ri=(e,t)=>t<e.length&&!e[t].skip&&e[t],b_=e=>e==="x"?"y":"x";function MO(e,t,n,r){const a=e.skip?t:e,i=t,s=n.skip?t:n,l=Ai(i,a),c=Ai(s,i);let u=l/(l+c),d=c/(l+c);u=isNaN(u)?0:u,d=isNaN(d)?0:d;const f=r*u,p=r*d;return{previous:{x:i.x-f*(s.x-a.x),y:i.y-f*(s.y-a.y)},next:{x:i.x+p*(s.x-a.x),y:i.y+p*(s.y-a.y)}}}function NO(e,t,n){const r=e.length;let a,i,s,l,c,u=Ri(e,0);for(let d=0;d<r-1;++d)if(c=u,u=Ri(e,d+1),!(!c||!u)){if(Os(t[d],0,OO)){n[d]=n[d+1]=0;continue}a=n[d]/t[d],i=n[d+1]/t[d],l=Math.pow(a,2)+Math.pow(i,2),!(l<=9)&&(s=3/Math.sqrt(l),n[d]=a*s*t[d],n[d+1]=i*s*t[d])}}function DO(e,t,n="x"){const r=b_(n),a=e.length;let i,s,l,c=Ri(e,0);for(let u=0;u<a;++u){if(s=l,l=c,c=Ri(e,u+1),!l)continue;const d=l[n],f=l[r];s&&(i=(d-s[n])/3,l[`cp1${n}`]=d-i,l[`cp1${r}`]=f-i*t[u]),c&&(i=(c[n]-d)/3,l[`cp2${n}`]=d+i,l[`cp2${r}`]=f+i*t[u])}}function PO(e,t="x"){const n=b_(t),r=e.length,a=Array(r).fill(0),i=Array(r);let s,l,c,u=Ri(e,0);for(s=0;s<r;++s)if(l=c,c=u,u=Ri(e,s+1),!!c){if(u){const d=u[t]-c[t];a[s]=d!==0?(u[n]-c[n])/d:0}i[s]=l?u?Yn(a[s-1])!==Yn(a[s])?0:(a[s-1]+a[s])/2:a[s-1]:a[s]}NO(e,a,i),DO(e,i,t)}function fl(e,t,n){return Math.max(Math.min(e,n),t)}function AO(e,t){let n,r,a,i,s,l=hr(e[0],t);for(n=0,r=e.length;n<r;++n)s=i,i=l,l=n<r-1&&hr(e[n+1],t),i&&(a=e[n],s&&(a.cp1x=fl(a.cp1x,t.left,t.right),a.cp1y=fl(a.cp1y,t.top,t.bottom)),l&&(a.cp2x=fl(a.cp2x,t.left,t.right),a.cp2y=fl(a.cp2y,t.top,t.bottom)))}function IO(e,t,n,r,a){let i,s,l,c;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")PO(e,a);else{let u=r?e[e.length-1]:e[0];for(i=0,s=e.length;i<s;++i)l=e[i],c=MO(u,l,e[Math.min(i+1,s-(r?0:1))%s],t.tension),l.cp1x=c.previous.x,l.cp1y=c.previous.y,l.cp2x=c.next.x,l.cp2y=c.next.y,u=l}t.capBezierPoints&&AO(e,n)}function k_(){return typeof window<"u"&&typeof document<"u"}function Op(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function lc(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const jc=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function LO(e,t){return jc(e).getPropertyValue(t)}const RO=["top","right","bottom","left"];function Aa(e,t,n){const r={};n=n?"-"+n:"";for(let a=0;a<4;a++){const i=RO[a];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const BO=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function VO(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:a,offsetY:i}=r;let s=!1,l,c;if(BO(a,i,e.target))l=a,c=i;else{const u=t.getBoundingClientRect();l=r.clientX-u.left,c=r.clientY-u.top,s=!0}return{x:l,y:c,box:s}}function wa(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,a=jc(n),i=a.boxSizing==="border-box",s=Aa(a,"padding"),l=Aa(a,"border","width"),{x:c,y:u,box:d}=VO(e,n),f=s.left+(d&&l.left),p=s.top+(d&&l.top);let{width:h,height:g}=t;return i&&(h-=s.width+l.width,g-=s.height+l.height),{x:Math.round((c-f)/h*n.width/r),y:Math.round((u-p)/g*n.height/r)}}function $O(e,t,n){let r,a;if(t===void 0||n===void 0){const i=Op(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const s=i.getBoundingClientRect(),l=jc(i),c=Aa(l,"border","width"),u=Aa(l,"padding");t=s.width-u.width-c.width,n=s.height-u.height-c.height,r=lc(l.maxWidth,i,"clientWidth"),a=lc(l.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:r||ic,maxHeight:a||ic}}const pl=e=>Math.round(e*10)/10;function FO(e,t,n,r){const a=jc(e),i=Aa(a,"margin"),s=lc(a.maxWidth,e,"clientWidth")||ic,l=lc(a.maxHeight,e,"clientHeight")||ic,c=$O(e,t,n);let{width:u,height:d}=c;if(a.boxSizing==="content-box"){const p=Aa(a,"border","width"),h=Aa(a,"padding");u-=h.width+p.width,d-=h.height+p.height}return u=Math.max(0,u-i.width),d=Math.max(0,r?u/r:d-i.height),u=pl(Math.min(u,s,c.maxWidth)),d=pl(Math.min(d,l,c.maxHeight)),u&&!d&&(d=pl(u/2)),(t!==void 0||n!==void 0)&&r&&c.height&&d>c.height&&(d=c.height,u=pl(Math.floor(d*r))),{width:u,height:d}}function tg(e,t,n){const r=t||1,a=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==a||s.width!==i?(e.currentDevicePixelRatio=r,s.height=a,s.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const zO=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function ng(e,t){const n=LO(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Sa(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function jO(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function HO(e,t,n,r){const a={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},s=Sa(e,a,n),l=Sa(a,i,n),c=Sa(i,t,n),u=Sa(s,l,n),d=Sa(l,c,n);return Sa(u,d,n)}const WO=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},UO=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function _i(e,t,n){return e?WO(t,n):UO()}function w_(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function S_(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function x_(e){return e==="angle"?{between:to,compare:YT,normalize:en}:{between:fr,compare:(t,n)=>t-n,normalize:t=>t}}function rg({start:e,end:t,count:n,loop:r,style:a}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:a}}function YO(e,t,n){const{property:r,start:a,end:i}=n,{between:s,normalize:l}=x_(r),c=t.length;let{start:u,end:d,loop:f}=e,p,h;if(f){for(u+=c,d+=c,p=0,h=c;p<h&&s(l(t[u%c][r]),a,i);++p)u--,d--;u%=c,d%=c}return d<u&&(d+=c),{start:u,end:d,loop:f,style:e.style}}function C_(e,t,n){if(!n)return[e];const{property:r,start:a,end:i}=n,s=t.length,{compare:l,between:c,normalize:u}=x_(r),{start:d,end:f,loop:p,style:h}=YO(e,t,n),g=[];let v=!1,b=null,m,_,k;const y=()=>c(a,k,m)&&l(a,k)!==0,w=()=>l(i,m)===0||c(i,k,m),S=()=>v||y(),C=()=>!v||w();for(let E=d,O=d;E<=f;++E)_=t[E%s],!_.skip&&(m=u(_[r]),m!==k&&(v=c(m,a,i),b===null&&S()&&(b=l(m,a)===0?E:O),b!==null&&C()&&(g.push(rg({start:b,end:E,loop:p,count:s,style:h})),b=null),O=E,k=m));return b!==null&&g.push(rg({start:b,end:f,loop:p,count:s,style:h})),g}function E_(e,t){const n=[],r=e.segments;for(let a=0;a<r.length;a++){const i=C_(r[a],e.points,t);i.length&&n.push(...i)}return n}function qO(e,t,n,r){let a=0,i=t-1;if(n&&!r)for(;a<t&&!e[a].skip;)a++;for(;a<t&&e[a].skip;)a++;for(a%=t,n&&(i+=a);i>a&&e[i%t].skip;)i--;return i%=t,{start:a,end:i}}function GO(e,t,n,r){const a=e.length,i=[];let s=t,l=e[t],c;for(c=t+1;c<=n;++c){const u=e[c%a];u.skip||u.stop?l.skip||(r=!1,i.push({start:t%a,end:(c-1)%a,loop:r}),t=s=u.stop?c:null):(s=c,l.skip&&(t=c)),l=u}return s!==null&&i.push({start:t%a,end:s%a,loop:r}),i}function XO(e,t){const n=e.points,r=e.options.spanGaps,a=n.length;if(!a)return[];const i=!!e._loop,{start:s,end:l}=qO(n,a,i,r);if(r===!0)return ag(e,[{start:s,end:l,loop:i}],n,t);const c=l<s?l+a:l,u=!!e._fullLoop&&s===0&&l===a-1;return ag(e,GO(n,s,c,u),n,t)}function ag(e,t,n,r){return!r||!r.setContext||!n?t:KO(e,t,n,r)}function KO(e,t,n,r){const a=e._chart.getContext(),i=ig(e.options),{_datasetIndex:s,options:{spanGaps:l}}=e,c=n.length,u=[];let d=i,f=t[0].start,p=f;function h(g,v,b,m){const _=l?-1:1;if(g!==v){for(g+=c;n[g%c].skip;)g-=_;for(;n[v%c].skip;)v+=_;g%c!==v%c&&(u.push({start:g%c,end:v%c,loop:b,style:m}),d=m,f=v%c)}}for(const g of t){f=l?f:g.start;let v=n[f%c],b;for(p=f+1;p<=g.end;p++){const m=n[p%c];b=ig(r.setContext(fa(a,{type:"segment",p0:v,p1:m,p0DataIndex:(p-1)%c,p1DataIndex:p%c,datasetIndex:s}))),JO(b,d)&&h(f,p-1,g.loop,d),v=m,d=b}f<p-1&&h(f,p-1,g.loop,d)}return u}function ig(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function JO(e,t){if(!t)return!1;const n=[],r=function(a,i){return Sp(i)?(n.includes(i)||n.push(i),n.indexOf(i)):i};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
825
+ * Chart.js v4.3.0
826
+ * https://www.chartjs.org
827
+ * (c) 2023 Chart.js Contributors
828
+ * Released under the MIT License
829
+ */class ZO{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,a){const i=n.listeners[a],s=n.duration;i.forEach(l=>l({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=l_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,a)=>{if(!r.running||!r.items.length)return;const i=r.items;let s=i.length-1,l=!1,c;for(;s>=0;--s)c=i[s],c._active?(c._total>r.duration&&(r.duration=c._total),c.tick(t),l=!0):(i[s]=i[i.length-1],i.pop());l&&(a.draw(),this._notify(a,r,t,"progress")),i.length||(r.running=!1,this._notify(a,r,t,"complete"),r.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,a)=>Math.max(r,a._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let a=r.length-1;for(;a>=0;--a)r[a].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var sr=new ZO;const sg="transparent",QO={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=K1(e||sg),a=r.valid&&K1(t||sg);return a&&a.valid?a.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class eM{constructor(t,n,r,a){const i=n[r];a=Ge([t.to,a,i,t.from]);const s=Ge([t.from,i,a]);this._active=!0,this._fn=t.fn||QO[t.type||typeof s],this._easing=Ms[t.easing]||Ms.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=a,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const a=this._target[this._prop],i=r-this._start,s=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Ge([t.to,n,a,t.from]),this._from=Ge([t.from,a,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,a=this._prop,i=this._from,s=this._loop,l=this._to;let c;if(this._active=i!==l&&(s||n<r),!this._active){this._target[a]=l,this._notify(!0);return}if(n<0){this._target[a]=i;return}c=n/r%2,c=s&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[a]=this._fn(i,l,c)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let a=0;a<r.length;a++)r[a][n]()}}class Mp{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!he(t))return;const n=Object.keys(at.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(a=>{const i=t[a];if(!he(i))return;const s={};for(const l of n)s[l]=i[l];(Ne(i.properties)&&i.properties||[a]).forEach(l=>{(l===a||!r.has(l))&&r.set(l,s)})})}_animateOptions(t,n){const r=n.options,a=nM(t,r);if(!a)return[];const i=this._createAnimations(a,r);return r.$shared&&tM(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,n){const r=this._properties,a=[],i=t.$animations||(t.$animations={}),s=Object.keys(n),l=Date.now();let c;for(c=s.length-1;c>=0;--c){const u=s[c];if(u.charAt(0)==="$")continue;if(u==="options"){a.push(...this._animateOptions(t,n));continue}const d=n[u];let f=i[u];const p=r.get(u);if(f)if(p&&f.active()){f.update(p,d,l);continue}else f.cancel();if(!p||!p.duration){t[u]=d;continue}i[u]=f=new eM(p,t,u,d),a.push(f)}return a}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return sr.add(this._chart,r),!0}}function tM(e,t){const n=[],r=Object.keys(t);for(let a=0;a<r.length;a++){const i=e[r[a]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function nM(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function og(e,t){const n=e&&e.options||{},r=n.reverse,a=n.min===void 0?t:0,i=n.max===void 0?t:0;return{start:r?i:a,end:r?a:i}}function rM(e,t,n){if(n===!1)return!1;const r=og(e,n),a=og(t,n);return{top:a.end,right:r.end,bottom:a.start,left:r.start}}function aM(e){let t,n,r,a;return he(e)?(t=e.top,n=e.right,r=e.bottom,a=e.left):t=n=r=a=e,{top:t,right:n,bottom:r,left:a,disabled:e===!1}}function T_(e,t){const n=[],r=e._getSortedDatasetMetas(t);let a,i;for(a=0,i=r.length;a<i;++a)n.push(r[a].index);return n}function lg(e,t,n,r={}){const a=e.keys,i=r.mode==="single";let s,l,c,u;if(t!==null){for(s=0,l=a.length;s<l;++s){if(c=+a[s],c===n){if(r.all)continue;break}u=e.values[c],rt(u)&&(i||t===0||Yn(t)===Yn(u))&&(t+=u)}return t}}function iM(e){const t=Object.keys(e),n=new Array(t.length);let r,a,i;for(r=0,a=t.length;r<a;++r)i=t[r],n[r]={x:i,y:e[i]};return n}function cg(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function sM(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function oM(e){const{min:t,max:n,minDefined:r,maxDefined:a}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:a?n:Number.POSITIVE_INFINITY}}function lM(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function ug(e,t,n,r){for(const a of t.getMatchingVisibleMetas(r).reverse()){const i=e[a.index];if(n&&i>0||!n&&i<0)return a.index}return null}function dg(e,t){const{chart:n,_cachedMeta:r}=e,a=n._stacks||(n._stacks={}),{iScale:i,vScale:s,index:l}=r,c=i.axis,u=s.axis,d=sM(i,s,r),f=t.length;let p;for(let h=0;h<f;++h){const g=t[h],{[c]:v,[u]:b}=g,m=g._stacks||(g._stacks={});p=m[u]=lM(a,d,v),p[l]=b,p._top=ug(p,s,!0,r.type),p._bottom=ug(p,s,!1,r.type);const _=p._visualValues||(p._visualValues={});_[l]=b}}function zu(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function cM(e,t){return fa(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function uM(e,t,n){return fa(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function rs(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const a of t){const i=a._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const ju=e=>e==="reset"||e==="none",fg=(e,t)=>t?e:Object.assign({},e),dM=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:T_(n,!0),values:null};class Nn{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=cg(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&rs(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),a=(f,p,h,g)=>f==="x"?p:f==="r"?g:h,i=n.xAxisID=le(r.xAxisID,zu(t,"x")),s=n.yAxisID=le(r.yAxisID,zu(t,"y")),l=n.rAxisID=le(r.rAxisID,zu(t,"r")),c=n.indexAxis,u=n.iAxisID=a(c,i,s,l),d=n.vAxisID=a(c,s,i,l);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&q1(this._data,this),t._stacked&&rs(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(he(n))this._data=iM(n);else if(r!==n){if(r){q1(r,this);const a=this._cachedMeta;rs(a),a._parsed=[]}n&&Object.isExtensible(n)&&KT(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let a=!1;this._dataCheck();const i=n._stacked;n._stacked=cg(n.vScale,n),n.stack!==r.stack&&(a=!0,rs(n),n.stack=r.stack),this._resyncElements(t),(a||i!==n._stacked)&&dg(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:a}=this,{iScale:i,_stacked:s}=r,l=i.axis;let c=t===0&&n===a.length?!0:r._sorted,u=t>0&&r._parsed[t-1],d,f,p;if(this._parsing===!1)r._parsed=a,r._sorted=!0,p=a;else{Ne(a[t])?p=this.parseArrayData(r,a,t,n):he(a[t])?p=this.parseObjectData(r,a,t,n):p=this.parsePrimitiveData(r,a,t,n);const h=()=>f[l]===null||u&&f[l]<u[l];for(d=0;d<n;++d)r._parsed[d+t]=f=p[d],c&&(h()&&(c=!1),u=f);r._sorted=c}s&&dg(this,p)}parsePrimitiveData(t,n,r,a){const{iScale:i,vScale:s}=t,l=i.axis,c=s.axis,u=i.getLabels(),d=i===s,f=new Array(a);let p,h,g;for(p=0,h=a;p<h;++p)g=p+r,f[p]={[l]:d||i.parse(u[g],g),[c]:s.parse(n[g],g)};return f}parseArrayData(t,n,r,a){const{xScale:i,yScale:s}=t,l=new Array(a);let c,u,d,f;for(c=0,u=a;c<u;++c)d=c+r,f=n[d],l[c]={x:i.parse(f[0],d),y:s.parse(f[1],d)};return l}parseObjectData(t,n,r,a){const{xScale:i,yScale:s}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u=new Array(a);let d,f,p,h;for(d=0,f=a;d<f;++d)p=d+r,h=n[p],u[d]={x:i.parse(na(h,l),p),y:s.parse(na(h,c),p)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const a=this.chart,i=this._cachedMeta,s=n[t.axis],l={keys:T_(a,!0),values:n._stacks[t.axis]._visualValues};return lg(l,s,i.index,{mode:r})}updateRangeFromParsed(t,n,r,a){const i=r[n.axis];let s=i===null?NaN:i;const l=a&&r._stacks[n.axis];a&&l&&(a.values=l,s=lg(a,i,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const r=this._cachedMeta,a=r._parsed,i=r._sorted&&t===r.iScale,s=a.length,l=this._getOtherScale(t),c=dM(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:f}=oM(l);let p,h;function g(){h=a[p];const v=h[l.axis];return!rt(h[t.axis])||d>v||f<v}for(p=0;p<s&&!(!g()&&(this.updateRangeFromParsed(u,t,h,c),i));++p);if(i){for(p=s-1;p>=0;--p)if(!g()){this.updateRangeFromParsed(u,t,h,c);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let a,i,s;for(a=0,i=n.length;a<i;++a)s=n[a][t.axis],rt(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,a=n.vScale,i=this.getParsed(t);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:a?""+a.getLabelForValue(i[a.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=aM(le(this.options.clip,rM(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,a=r.data||[],i=n.chartArea,s=[],l=this._drawStart||0,c=this._drawCount||a.length-l,u=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(t,i,l,c),d=l;d<l+c;++d){const f=a[d];f.hidden||(f.active&&u?s.push(f):f.draw(t,i))}for(d=0;d<s.length;++d)s[d].draw(t,i)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const a=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];i=s.$context||(s.$context=uM(this.getContext(),t,s)),i.parsed=this.getParsed(t),i.raw=a.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=cM(this.chart.getContext(),this.index)),i.dataset=a,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=r,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const a=n==="active",i=this._cachedDataOpts,s=t+"-"+n,l=i[s],c=this.enableOptionSharing&&Kt(r);if(l)return fg(l,c);const u=this.chart.config,d=u.datasetElementScopeKeys(this._type,t),f=a?[`${t}Hover`,"hover",t,""]:[t,""],p=u.getOptionScopes(this.getDataset(),d),h=Object.keys(at.elements[t]),g=()=>this.getContext(r,a,n),v=u.resolveNamedOptions(p,h,g,f);return v.$shared&&(v.$shared=c,i[s]=Object.freeze(fg(v,c))),v}_resolveAnimations(t,n,r){const a=this.chart,i=this._cachedDataOpts,s=`animation-${n}`,l=i[s];if(l)return l;let c;if(a.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),p=d.getOptionScopes(this.getDataset(),f);c=d.createResolver(p,this.getContext(t,r,n))}const u=new Mp(a,c&&c.animations);return c&&c._cacheable&&(i[s]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||ju(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),a=this._sharedOptions,i=this.getSharedOptions(r),s=this.includeOptions(n,i)||i!==a;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:s}}updateElement(t,n,r,a){ju(a)?Object.assign(t,r):this._resolveAnimations(n,a).update(t,r)}updateSharedOptions(t,n,r){t&&!ju(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,a){t.active=a;const i=this.getStyle(n,a);this._resolveAnimations(n,r,a).update(t,{options:!a&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[l,c,u]of this._syncList)this[l](c,u);this._syncList=[];const a=r.length,i=n.length,s=Math.min(i,a);s&&this.parse(0,s),i>a?this._insertElements(a,i-a,t):i<a&&this._removeElements(i,a-i)}_insertElements(t,n,r=!0){const a=this._cachedMeta,i=a.data,s=t+n;let l;const c=u=>{for(u.length+=n,l=u.length-1;l>=s;l--)u[l]=u[l-n]};for(c(i),l=t;l<s;++l)i[l]=new this.dataElementType;this._parsing&&c(a._parsed),this.parse(t,n),r&&this.updateElements(i,t,n,"reset")}updateElements(t,n,r,a){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const a=r._parsed.splice(t,n);r._stacked&&rs(r,a)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,a]=t;this[n](r,a)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}z(Nn,"defaults",{}),z(Nn,"datasetElementType",null),z(Nn,"dataElementType",null);function fM(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let a=0,i=n.length;a<i;a++)r=r.concat(n[a].controller.getAllParsedValues(e));e._cache.$bar=o_(r.sort((a,i)=>a-i))}return e._cache.$bar}function pM(e){const t=e.iScale,n=fM(t,e.type);let r=t._length,a,i,s,l;const c=()=>{s===32767||s===-32768||(Kt(l)&&(r=Math.min(r,Math.abs(s-l)||r)),l=s)};for(a=0,i=n.length;a<i;++a)s=t.getPixelForValue(n[a]),c();for(l=void 0,a=0,i=t.ticks.length;a<i;++a)s=t.getPixelForTick(a),c();return r}function hM(e,t,n,r){const a=n.barThickness;let i,s;return ye(a)?(i=t.min*n.categoryPercentage,s=n.barPercentage):(i=a*r,s=1),{chunk:i/r,ratio:s,start:t.pixels[e]-i/2}}function mM(e,t,n,r){const a=t.pixels,i=a[e];let s=e>0?a[e-1]:null,l=e<a.length-1?a[e+1]:null;const c=n.categoryPercentage;s===null&&(s=i-(l===null?t.end-t.start:l-i)),l===null&&(l=i+i-s);const u=i-(i-Math.min(s,l))/2*c;return{chunk:Math.abs(l-s)/2*c/r,ratio:n.barPercentage,start:u}}function gM(e,t,n,r){const a=n.parse(e[0],r),i=n.parse(e[1],r),s=Math.min(a,i),l=Math.max(a,i);let c=s,u=l;Math.abs(s)>Math.abs(l)&&(c=l,u=s),t[n.axis]=u,t._custom={barStart:c,barEnd:u,start:a,end:i,min:s,max:l}}function O_(e,t,n,r){return Ne(e)?gM(e,t,n,r):t[n.axis]=n.parse(e,r),t}function pg(e,t,n,r){const a=e.iScale,i=e.vScale,s=a.getLabels(),l=a===i,c=[];let u,d,f,p;for(u=n,d=n+r;u<d;++u)p=t[u],f={},f[a.axis]=l||a.parse(s[u],u),c.push(O_(p,f,i,u));return c}function Hu(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function vM(e,t,n){return e!==0?Yn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function _M(e){let t,n,r,a,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(a="end",i="start"):(a="start",i="end"),{start:n,end:r,reverse:t,top:a,bottom:i}}function yM(e,t,n,r){let a=t.borderSkipped;const i={};if(!a){e.borderSkipped=i;return}if(a===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:l,reverse:c,top:u,bottom:d}=_M(e);a==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?a=u:(n._bottom||0)===r?a=d:(i[hg(d,s,l,c)]=!0,a=u)),i[hg(a,s,l,c)]=!0,e.borderSkipped=i}function hg(e,t,n,r){return r?(e=bM(e,t,n),e=mg(e,n,t)):e=mg(e,t,n),e}function bM(e,t,n){return e===t?n:e===n?t:e}function mg(e,t,n){return e==="start"?t:e==="end"?n:e}function kM(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class Il extends Nn{parsePrimitiveData(t,n,r,a){return pg(t,n,r,a)}parseArrayData(t,n,r,a){return pg(t,n,r,a)}parseObjectData(t,n,r,a){const{iScale:i,vScale:s}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u=i.axis==="x"?l:c,d=s.axis==="x"?l:c,f=[];let p,h,g,v;for(p=r,h=r+a;p<h;++p)v=n[p],g={},g[i.axis]=i.parse(na(v,u),p),f.push(O_(na(v,d),g,s,p));return f}updateRangeFromParsed(t,n,r,a){super.updateRangeFromParsed(t,n,r,a);const i=r._custom;i&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:a}=n,i=this.getParsed(t),s=i._custom,l=Hu(s)?"["+s.start+", "+s.end+"]":""+a.getLabelForValue(i[a.axis]);return{label:""+r.getLabelForValue(i[r.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,a){const i=a==="reset",{index:s,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),u=l.isHorizontal(),d=this._getRuler(),{sharedOptions:f,includeOptions:p}=this._getSharedOptions(n,a);for(let h=n;h<n+r;h++){const g=this.getParsed(h),v=i||ye(g[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(h),b=this._calculateBarIndexPixels(h,d),m=(g._stacks||{})[l.axis],_={horizontal:u,base:v.base,enableBorderRadius:!m||Hu(g._custom)||s===m._top||s===m._bottom,x:u?v.head:b.center,y:u?b.center:v.head,height:u?b.size:Math.abs(v.size),width:u?Math.abs(v.size):b.size};p&&(_.options=f||this.resolveDataElementOptions(h,t[h].active?"active":a));const k=_.options||t[h].options;yM(_,k,m,s),kM(_,k,d.ratio),this.updateElement(t[h],h,_,a)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,a=r.getMatchingVisibleMetas(this._type).filter(c=>c.controller.options.grouped),i=r.options.stacked,s=[],l=c=>{const u=c.controller.getParsed(n),d=u&&u[c.vScale.axis];if(ye(d)||isNaN(d))return!0};for(const c of a)if(!(n!==void 0&&l(c))&&((i===!1||s.indexOf(c.stack)===-1||i===void 0&&c.stack===void 0)&&s.push(c.stack),c.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const a=this._getStacks(t,r),i=n!==void 0?a.indexOf(n):-1;return i===-1?a.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,a=[];let i,s;for(i=0,s=n.data.length;i<s;++i)a.push(r.getPixelForValue(this.getParsed(i)[r.axis],i));const l=t.barThickness;return{min:l||pM(n),pixels:a,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:l?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:a},options:{base:i,minBarLength:s}}=this,l=i||0,c=this.getParsed(t),u=c._custom,d=Hu(u);let f=c[n.axis],p=0,h=r?this.applyStack(n,c,r):f,g,v;h!==f&&(p=h-f,h=f),d&&(f=u.barStart,h=u.barEnd-u.barStart,f!==0&&Yn(f)!==Yn(u.barEnd)&&(p=0),p+=f);const b=!ye(i)&&!d?i:p;let m=n.getPixelForValue(b);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(p+h):g=m,v=g-m,Math.abs(v)<s){v=vM(v,n,l)*s,f===l&&(m-=v/2);const _=n.getPixelForDecimal(0),k=n.getPixelForDecimal(1),y=Math.min(_,k),w=Math.max(_,k);m=Math.max(Math.min(m,w),y),g=m+v,r&&!d&&(c._stacks[n.axis]._visualValues[a]=n.getValueForPixel(g)-n.getValueForPixel(m))}if(m===n.getPixelForValue(l)){const _=Yn(v)*n.getLineWidthForValue(l)/2;m+=_,v-=_}return{size:v,base:m,head:g,center:g+v/2}}_calculateBarIndexPixels(t,n){const r=n.scale,a=this.options,i=a.skipNull,s=le(a.maxBarThickness,1/0);let l,c;if(n.grouped){const u=i?this._getStackCount(t):n.stackCount,d=a.barThickness==="flex"?mM(t,n,a,u):hM(t,n,a,u),f=this._getStackIndex(this.index,this._cachedMeta.stack,i?t:void 0);l=d.start+d.chunk*f+d.chunk/2,c=Math.min(s,d.chunk*d.ratio)}else l=r.getPixelForValue(this.getParsed(t)[r.axis],t),c=Math.min(s,n.min*n.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,a=r.length;let i=0;for(;i<a;++i)this.getParsed(i)[n.axis]!==null&&r[i].draw(this._ctx)}}z(Il,"id","bar"),z(Il,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),z(Il,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Ll extends Nn{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,a){const i=super.parsePrimitiveData(t,n,r,a);for(let s=0;s<i.length;s++)i[s]._custom=this.resolveDataElementOptions(s+r).radius;return i}parseArrayData(t,n,r,a){const i=super.parseArrayData(t,n,r,a);for(let s=0;s<i.length;s++){const l=n[r+s];i[s]._custom=le(l[2],this.resolveDataElementOptions(s+r).radius)}return i}parseObjectData(t,n,r,a){const i=super.parseObjectData(t,n,r,a);for(let s=0;s<i.length;s++){const l=n[r+s];i[s]._custom=le(l&&l.r&&+l.r,this.resolveDataElementOptions(s+r).radius)}return i}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:a,yScale:i}=n,s=this.getParsed(t),l=a.getLabelForValue(s.x),c=i.getLabelForValue(s.y),u=s._custom;return{label:r[t]||"",value:"("+l+", "+c+(u?", "+u:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,a){const i=a==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(n,a),d=s.axis,f=l.axis;for(let p=n;p<n+r;p++){const h=t[p],g=!i&&this.getParsed(p),v={},b=v[d]=i?s.getPixelForDecimal(.5):s.getPixelForValue(g[d]),m=v[f]=i?l.getBasePixel():l.getPixelForValue(g[f]);v.skip=isNaN(b)||isNaN(m),u&&(v.options=c||this.resolveDataElementOptions(p,h.active?"active":a),i&&(v.options.radius=0)),this.updateElement(h,p,v,a)}}resolveDataElementOptions(t,n){const r=this.getParsed(t);let a=super.resolveDataElementOptions(t,n);a.$shared&&(a=Object.assign({},a,{$shared:!1}));const i=a.radius;return n!=="active"&&(a.radius=0),a.radius+=le(r&&r._custom,i),a}}z(Ll,"id","bubble"),z(Ll,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),z(Ll,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function wM(e,t,n){let r=1,a=1,i=0,s=0;if(t<We){const l=e,c=l+t,u=Math.cos(l),d=Math.sin(l),f=Math.cos(c),p=Math.sin(c),h=(k,y,w)=>to(k,l,c,!0)?1:Math.max(y,y*n,w,w*n),g=(k,y,w)=>to(k,l,c,!0)?-1:Math.min(y,y*n,w,w*n),v=h(0,u,f),b=h(Ue,d,p),m=g(Ee,u,f),_=g(Ee+Ue,d,p);r=(v-m)/2,a=(b-_)/2,i=-(v+m)/2,s=-(b+_)/2}return{ratioX:r,ratioY:a,offsetX:i,offsetY:s}}class Oa extends Nn{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,a=this._cachedMeta;if(this._parsing===!1)a._parsed=r;else{let i=c=>+r[c];if(he(r[t])){const{key:c="value"}=this._parsing;i=u=>+na(r[u],c)}let s,l;for(s=t,l=t+n;s<l;++s)a._parsed[s]=i(s)}}_getRotation(){return ht(this.options.rotation-90)}_getCircumference(){return ht(this.options.circumference)}_getRotationExtents(){let t=We,n=-We;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const a=this.chart.getDatasetMeta(r).controller,i=a._getRotation(),s=a._getCircumference();t=Math.min(t,i),n=Math.max(n,i+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,a=this._cachedMeta,i=a.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,l=Math.max((Math.min(r.width,r.height)-s)/2,0),c=Math.min(BT(this.options.cutout,l),1),u=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:p,ratioY:h,offsetX:g,offsetY:v}=wM(f,d,c),b=(r.width-s)/p,m=(r.height-s)/h,_=Math.max(Math.min(b,m)/2,0),k=n_(this.options.radius,_),y=Math.max(k*c,0),w=(k-y)/this._getVisibleDatasetWeightTotal();this.offsetX=g*k,this.offsetY=v*k,a.total=this.calculateTotal(),this.outerRadius=k-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(i,0,i.length,t)}_circumference(t,n){const r=this.options,a=this._cachedMeta,i=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||a._parsed[t]===null||a.data[t].hidden?0:this.calculateCircumference(a._parsed[t]*i/We)}updateElements(t,n,r,a){const i=a==="reset",s=this.chart,l=s.chartArea,u=s.options.animation,d=(l.left+l.right)/2,f=(l.top+l.bottom)/2,p=i&&u.animateScale,h=p?0:this.innerRadius,g=p?0:this.outerRadius,{sharedOptions:v,includeOptions:b}=this._getSharedOptions(n,a);let m=this._getRotation(),_;for(_=0;_<n;++_)m+=this._circumference(_,i);for(_=n;_<n+r;++_){const k=this._circumference(_,i),y=t[_],w={x:d+this.offsetX,y:f+this.offsetY,startAngle:m,endAngle:m+k,circumference:k,outerRadius:g,innerRadius:h};b&&(w.options=v||this.resolveDataElementOptions(_,y.active?"active":a)),m+=k,this.updateElement(y,_,w,a)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,a;for(a=0;a<n.length;a++){const i=t._parsed[a];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(a)&&!n[a].hidden&&(r+=Math.abs(i))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?We*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,a=r.data.labels||[],i=Oo(n._parsed[t],r.options.locale);return{label:a[t]||"",value:i}}getMaxBorderWidth(t){let n=0;const r=this.chart;let a,i,s,l,c;if(!t){for(a=0,i=r.data.datasets.length;a<i;++a)if(r.isDatasetVisible(a)){s=r.getDatasetMeta(a),t=s.data,l=s.controller;break}}if(!t)return 0;for(a=0,i=t.length;a<i;++a)c=l.resolveDataElementOptions(a),c.borderAlign!=="inner"&&(n=Math.max(n,c.borderWidth||0,c.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,a=t.length;r<a;++r){const i=this.resolveDataElementOptions(r);n=Math.max(n,i.offset||0,i.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(le(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}z(Oa,"id","doughnut"),z(Oa,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),z(Oa,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),z(Oa,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:a}}=t.legend.options;return n.labels.map((i,s)=>{const c=t.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:a,lineWidth:c.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Rl extends Nn{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:a=[],_dataset:i}=n,s=this.chart._animationsDisabled;let{start:l,count:c}=u_(n,a,s);this._drawStart=l,this._drawCount=c,d_(n)&&(l=0,c=a.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=a;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:u},t),this.updateElements(a,l,c,t)}updateElements(t,n,r,a){const i=a==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,a),p=s.axis,h=l.axis,{spanGaps:g,segment:v}=this.options,b=ra(g)?g:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||i||a==="none",_=n+r,k=t.length;let y=n>0&&this.getParsed(n-1);for(let w=0;w<k;++w){const S=t[w],C=m?S:{};if(w<n||w>=_){C.skip=!0;continue}const E=this.getParsed(w),O=ye(E[h]),L=C[p]=s.getPixelForValue(E[p],w),D=C[h]=i||O?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,E,c):E[h],w);C.skip=isNaN(L)||isNaN(D)||O,C.stop=w>0&&Math.abs(E[p]-y[p])>b,v&&(C.parsed=E,C.raw=u.data[w]),f&&(C.options=d||this.resolveDataElementOptions(w,S.active?"active":a)),m||this.updateElement(S,w,C,a),y=E}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,a=t.data||[];if(!a.length)return r;const i=a[0].size(this.resolveDataElementOptions(0)),s=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(r,i,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}z(Rl,"id","line"),z(Rl,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),z(Rl,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Ds extends Nn{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,a=r.data.labels||[],i=Oo(n._parsed[t].r,r.options.locale);return{label:a[t]||"",value:i}}parseObjectData(t,n,r,a){return y_.bind(this)(t,n,r,a)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,a)=>{const i=this.getParsed(a).r;!isNaN(i)&&this.chart.getDataVisibility(a)&&(i<n.min&&(n.min=i),i>n.max&&(n.max=i))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,a=Math.min(n.right-n.left,n.bottom-n.top),i=Math.max(a/2,0),s=Math.max(r.cutoutPercentage?i/100*r.cutoutPercentage:1,0),l=(i-s)/t.getVisibleDatasetCount();this.outerRadius=i-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,n,r,a){const i=a==="reset",s=this.chart,c=s.options.animation,u=this._cachedMeta.rScale,d=u.xCenter,f=u.yCenter,p=u.getIndexAngle(0)-.5*Ee;let h=p,g;const v=360/this.countVisibleElements();for(g=0;g<n;++g)h+=this._computeAngle(g,a,v);for(g=n;g<n+r;g++){const b=t[g];let m=h,_=h+this._computeAngle(g,a,v),k=s.getDataVisibility(g)?u.getDistanceFromCenterForValue(this.getParsed(g).r):0;h=_,i&&(c.animateScale&&(k=0),c.animateRotate&&(m=_=p));const y={x:d,y:f,innerRadius:0,outerRadius:k,startAngle:m,endAngle:_,options:this.resolveDataElementOptions(g,b.active?"active":a)};this.updateElement(b,g,y,a)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((r,a)=>{!isNaN(this.getParsed(a).r)&&this.chart.getDataVisibility(a)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?ht(this.resolveDataElementOptions(t,n).angle||r):0}}z(Ds,"id","polarArea"),z(Ds,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),z(Ds,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:a}}=t.legend.options;return n.labels.map((i,s)=>{const c=t.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:a,lineWidth:c.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class jd extends Oa{}z(jd,"id","pie"),z(jd,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Bl extends Nn{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,a){return y_.bind(this)(t,n,r,a)}update(t){const n=this._cachedMeta,r=n.dataset,a=n.data||[],i=n.iScale.getLabels();if(r.points=a,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const l={_loop:!0,_fullLoop:i.length===a.length,options:s};this.updateElement(r,void 0,l,t)}this.updateElements(a,0,a.length,t)}updateElements(t,n,r,a){const i=this._cachedMeta.rScale,s=a==="reset";for(let l=n;l<n+r;l++){const c=t[l],u=this.resolveDataElementOptions(l,c.active?"active":a),d=i.getPointPositionForValue(l,this.getParsed(l).r),f=s?i.xCenter:d.x,p=s?i.yCenter:d.y,h={x:f,y:p,angle:d.angle,skip:isNaN(f)||isNaN(p),options:u};this.updateElement(c,l,h,a)}}}z(Bl,"id","radar"),z(Bl,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),z(Bl,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Vl extends Nn{getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:a,yScale:i}=n,s=this.getParsed(t),l=a.getLabelForValue(s.x),c=i.getLabelForValue(s.y);return{label:r[t]||"",value:"("+l+", "+c+")"}}update(t){const n=this._cachedMeta,{data:r=[]}=n,a=this.chart._animationsDisabled;let{start:i,count:s}=u_(n,r,a);if(this._drawStart=i,this._drawCount=s,d_(n)&&(i=0,s=r.length),this.options.showLine){const{dataset:l,_dataset:c}=n;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;const u=this.resolveDatasetElementOptions(t);u.segment=this.options.segment,this.updateElement(l,void 0,{animated:!a,options:u},t)}this.updateElements(r,i,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,r,a){const i=a==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,d=this.resolveDataElementOptions(n,a),f=this.getSharedOptions(d),p=this.includeOptions(a,f),h=s.axis,g=l.axis,{spanGaps:v,segment:b}=this.options,m=ra(v)?v:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||i||a==="none";let k=n>0&&this.getParsed(n-1);for(let y=n;y<n+r;++y){const w=t[y],S=this.getParsed(y),C=_?w:{},E=ye(S[g]),O=C[h]=s.getPixelForValue(S[h],y),L=C[g]=i||E?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,S,c):S[g],y);C.skip=isNaN(O)||isNaN(L)||E,C.stop=y>0&&Math.abs(S[h]-k[h])>m,b&&(C.parsed=S,C.raw=u.data[y]),p&&(C.options=f||this.resolveDataElementOptions(y,w.active?"active":a)),_||this.updateElement(w,y,C,a),k=S}this.updateSharedOptions(f,a,d)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let l=0;for(let c=n.length-1;c>=0;--c)l=Math.max(l,n[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const r=t.dataset,a=r.options&&r.options.borderWidth||0;if(!n.length)return a;const i=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(a,i,s)/2}}z(Vl,"id","scatter"),z(Vl,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),z(Vl,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var SM=Object.freeze({__proto__:null,BarController:Il,BubbleController:Ll,DoughnutController:Oa,LineController:Rl,PieController:jd,PolarAreaController:Ds,RadarController:Bl,ScatterController:Vl});function _a(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Np{constructor(t){z(this,"options");this.options=t||{}}static override(t){Object.assign(Np.prototype,t)}init(){}formats(){return _a()}parse(){return _a()}format(){return _a()}add(){return _a()}diff(){return _a()}startOf(){return _a()}endOf(){return _a()}}var M_={_date:Np};function xM(e,t,n,r){const{controller:a,data:i,_sorted:s}=e,l=a._cachedMeta.iScale;if(l&&t===l.axis&&t!=="r"&&s&&i.length){const c=l._reversePixels?GT:pr;if(r){if(a._sharedOptions){const u=i[0],d=typeof u.getRange=="function"&&u.getRange(t);if(d){const f=c(i,t,n-d),p=c(i,t,n+d);return{lo:f.lo,hi:p.hi}}}}else return c(i,t,n)}return{lo:0,hi:i.length-1}}function Do(e,t,n,r,a){const i=e.getSortedVisibleDatasetMetas(),s=n[t];for(let l=0,c=i.length;l<c;++l){const{index:u,data:d}=i[l],{lo:f,hi:p}=xM(i[l],t,s,a);for(let h=f;h<=p;++h){const g=d[h];g.skip||r(g,u,h)}}}function CM(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,a){const i=t?Math.abs(r.x-a.x):0,s=n?Math.abs(r.y-a.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function Wu(e,t,n,r,a){const i=[];return!a&&!e.isPointInArea(t)||Do(e,n,t,function(l,c,u){!a&&!hr(l,e.chartArea,0)||l.inRange(t.x,t.y,r)&&i.push({element:l,datasetIndex:c,index:u})},!0),i}function EM(e,t,n,r){let a=[];function i(s,l,c){const{startAngle:u,endAngle:d}=s.getProps(["startAngle","endAngle"],r),{angle:f}=i_(s,{x:t.x,y:t.y});to(f,u,d)&&a.push({element:s,datasetIndex:l,index:c})}return Do(e,n,t,i),a}function TM(e,t,n,r,a,i){let s=[];const l=CM(n);let c=Number.POSITIVE_INFINITY;function u(d,f,p){const h=d.inRange(t.x,t.y,a);if(r&&!h)return;const g=d.getCenterPoint(a);if(!(!!i||e.isPointInArea(g))&&!h)return;const b=l(t,g);b<c?(s=[{element:d,datasetIndex:f,index:p}],c=b):b===c&&s.push({element:d,datasetIndex:f,index:p})}return Do(e,n,t,u),s}function Uu(e,t,n,r,a,i){return!i&&!e.isPointInArea(t)?[]:n==="r"&&!r?EM(e,t,n,a):TM(e,t,n,r,a,i)}function gg(e,t,n,r,a){const i=[],s=n==="x"?"inXRange":"inYRange";let l=!1;return Do(e,n,t,(c,u,d)=>{c[s](t[n],a)&&(i.push({element:c,datasetIndex:u,index:d}),l=l||c.inRange(t.x,t.y,a))}),r&&!l?[]:i}var OM={evaluateInteractionItems:Do,modes:{index(e,t,n,r){const a=wa(t,e),i=n.axis||"x",s=n.includeInvisible||!1,l=n.intersect?Wu(e,a,i,r,s):Uu(e,a,i,!1,r,s),c=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const d=l[0].index,f=u.data[d];f&&!f.skip&&c.push({element:f,datasetIndex:u.index,index:d})}),c):[]},dataset(e,t,n,r){const a=wa(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;let l=n.intersect?Wu(e,a,i,r,s):Uu(e,a,i,!1,r,s);if(l.length>0){const c=l[0].datasetIndex,u=e.getDatasetMeta(c).data;l=[];for(let d=0;d<u.length;++d)l.push({element:u[d],datasetIndex:c,index:d})}return l},point(e,t,n,r){const a=wa(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;return Wu(e,a,i,r,s)},nearest(e,t,n,r){const a=wa(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;return Uu(e,a,i,n.intersect,r,s)},x(e,t,n,r){const a=wa(t,e);return gg(e,a,"x",n.intersect,r)},y(e,t,n,r){const a=wa(t,e);return gg(e,a,"y",n.intersect,r)}}};const N_=["left","top","right","bottom"];function as(e,t){return e.filter(n=>n.pos===t)}function vg(e,t){return e.filter(n=>N_.indexOf(n.pos)===-1&&n.box.axis===t)}function is(e,t){return e.sort((n,r)=>{const a=t?r:n,i=t?n:r;return a.weight===i.weight?a.index-i.index:a.weight-i.weight})}function MM(e){const t=[];let n,r,a,i,s,l;for(n=0,r=(e||[]).length;n<r;++n)a=e[n],{position:i,options:{stack:s,stackWeight:l=1}}=a,t.push({index:n,box:a,pos:i,horizontal:a.isHorizontal(),weight:a.weight,stack:s&&i+s,stackWeight:l});return t}function NM(e){const t={};for(const n of e){const{stack:r,pos:a,stackWeight:i}=n;if(!r||!N_.includes(a))continue;const s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return t}function DM(e,t){const n=NM(e),{vBoxMaxWidth:r,hBoxMaxHeight:a}=t;let i,s,l;for(i=0,s=e.length;i<s;++i){l=e[i];const{fullSize:c}=l.box,u=n[l.stack],d=u&&l.stackWeight/u.weight;l.horizontal?(l.width=d?d*r:c&&t.availableWidth,l.height=a):(l.width=r,l.height=d?d*a:c&&t.availableHeight)}return n}function PM(e){const t=MM(e),n=is(t.filter(u=>u.box.fullSize),!0),r=is(as(t,"left"),!0),a=is(as(t,"right")),i=is(as(t,"top"),!0),s=is(as(t,"bottom")),l=vg(t,"x"),c=vg(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:a.concat(c).concat(s).concat(l),chartArea:as(t,"chartArea"),vertical:r.concat(a).concat(c),horizontal:i.concat(s).concat(l)}}function _g(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function D_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function AM(e,t,n,r){const{pos:a,box:i}=n,s=e.maxPadding;if(!he(a)){n.size&&(e[a]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?i.height:i.width),n.size=f.size/f.count,e[a]+=n.size}i.getPadding&&D_(s,i.getPadding());const l=Math.max(0,t.outerWidth-_g(s,e,"left","right")),c=Math.max(0,t.outerHeight-_g(s,e,"top","bottom")),u=l!==e.w,d=c!==e.h;return e.w=l,e.h=c,n.horizontal?{same:u,other:d}:{same:d,other:u}}function IM(e){const t=e.maxPadding;function n(r){const a=Math.max(t[r]-e[r],0);return e[r]+=a,a}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function LM(e,t){const n=t.maxPadding;function r(a){const i={left:0,top:0,right:0,bottom:0};return a.forEach(s=>{i[s]=Math.max(t[s],n[s])}),i}return r(e?["left","right"]:["top","bottom"])}function ms(e,t,n,r){const a=[];let i,s,l,c,u,d;for(i=0,s=e.length,u=0;i<s;++i){l=e[i],c=l.box,c.update(l.width||t.w,l.height||t.h,LM(l.horizontal,t));const{same:f,other:p}=AM(t,n,l,r);u|=f&&a.length,d=d||p,c.fullSize||a.push(l)}return u&&ms(a,t,n,r)||d}function hl(e,t,n,r,a){e.top=n,e.left=t,e.right=t+r,e.bottom=n+a,e.width=r,e.height=a}function yg(e,t,n,r){const a=n.padding;let{x:i,y:s}=t;for(const l of e){const c=l.box,u=r[l.stack]||{count:1,placed:0,weight:1},d=l.stackWeight/u.weight||1;if(l.horizontal){const f=t.w*d,p=u.size||c.height;Kt(u.start)&&(s=u.start),c.fullSize?hl(c,a.left,s,n.outerWidth-a.right-a.left,p):hl(c,t.left+u.placed,s,f,p),u.start=s,u.placed+=f,s=c.bottom}else{const f=t.h*d,p=u.size||c.width;Kt(u.start)&&(i=u.start),c.fullSize?hl(c,i,a.top,p,n.outerHeight-a.bottom-a.top):hl(c,i,t.top+u.placed,p,f),u.start=i,u.placed+=f,i=c.right}}t.x=i,t.y=s}var Mt={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const a=pt(e.options.layout.padding),i=Math.max(t-a.width,0),s=Math.max(n-a.height,0),l=PM(e.boxes),c=l.vertical,u=l.horizontal;Le(e.boxes,v=>{typeof v.beforeLayout=="function"&&v.beforeLayout()});const d=c.reduce((v,b)=>b.box.options&&b.box.options.display===!1?v:v+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:a,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/d,hBoxMaxHeight:s/2}),p=Object.assign({},a);D_(p,pt(r));const h=Object.assign({maxPadding:p,w:i,h:s,x:a.left,y:a.top},a),g=DM(c.concat(u),f);ms(l.fullSize,h,f,g),ms(c,h,f,g),ms(u,h,f,g)&&ms(c,h,f,g),IM(h),yg(l.leftAndTop,h,f,g),h.x+=h.w,h.y+=h.h,yg(l.rightAndBottom,h,f,g),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Le(l.chartArea,v=>{const b=v.box;Object.assign(b,e.chartArea),b.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class P_{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,a){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,a?Math.floor(n/a):r)}}isAttached(t){return!0}updateConfig(t){}}class RM extends P_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const $l="$chartjs",BM={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},bg=e=>e===null||e==="";function VM(e,t){const n=e.style,r=e.getAttribute("height"),a=e.getAttribute("width");if(e[$l]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",bg(a)){const i=ng(e,"width");i!==void 0&&(e.width=i)}if(bg(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=ng(e,"height");i!==void 0&&(e.height=i)}return e}const A_=zO?{passive:!0}:!1;function $M(e,t,n){e.addEventListener(t,n,A_)}function FM(e,t,n){e.canvas.removeEventListener(t,n,A_)}function zM(e,t){const n=BM[e.type]||e.type,{x:r,y:a}=wa(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:a!==void 0?a:null}}function cc(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function jM(e,t,n){const r=e.canvas,a=new MutationObserver(i=>{let s=!1;for(const l of i)s=s||cc(l.addedNodes,r),s=s&&!cc(l.removedNodes,r);s&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}function HM(e,t,n){const r=e.canvas,a=new MutationObserver(i=>{let s=!1;for(const l of i)s=s||cc(l.removedNodes,r),s=s&&!cc(l.addedNodes,r);s&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}const no=new Map;let kg=0;function I_(){const e=window.devicePixelRatio;e!==kg&&(kg=e,no.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function WM(e,t){no.size||window.addEventListener("resize",I_),no.set(e,t)}function UM(e){no.delete(e),no.size||window.removeEventListener("resize",I_)}function YM(e,t,n){const r=e.canvas,a=r&&Op(r);if(!a)return;const i=c_((l,c)=>{const u=a.clientWidth;n(l,c),u<a.clientWidth&&n()},window),s=new ResizeObserver(l=>{const c=l[0],u=c.contentRect.width,d=c.contentRect.height;u===0&&d===0||i(u,d)});return s.observe(a),WM(e,i),s}function Yu(e,t,n){n&&n.disconnect(),t==="resize"&&UM(e)}function qM(e,t,n){const r=e.canvas,a=c_(i=>{e.ctx!==null&&n(zM(i,e))},e);return $M(r,t,a),a}class GM extends P_{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(VM(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[$l])return!1;const r=n[$l].initial;["height","width"].forEach(i=>{const s=r[i];ye(s)?n.removeAttribute(i):n.setAttribute(i,s)});const a=r.style||{};return Object.keys(a).forEach(i=>{n.style[i]=a[i]}),n.width=n.width,delete n[$l],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const a=t.$proxies||(t.$proxies={}),s={attach:jM,detach:HM,resize:YM}[n]||qM;a[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),a=r[n];if(!a)return;({attach:Yu,detach:Yu,resize:Yu}[n]||FM)(t,n,a),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,a){return FO(t,n,r,a)}isAttached(t){const n=Op(t);return!!(n&&n.isConnected)}}function XM(e){return!k_()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?RM:GM}var Ml;let Vt=(Ml=class{constructor(){z(this,"x");z(this,"y");z(this,"active",!1);z(this,"options");z(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return ra(this.x)&&ra(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const a={};return t.forEach(i=>{a[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),a}},z(Ml,"defaults",{}),z(Ml,"defaultRoutes"),Ml);function KM(e,t){const n=e.options.ticks,r=JM(e),a=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?QM(t):[],s=i.length,l=i[0],c=i[s-1],u=[];if(s>a)return eN(t,u,i,s/a),u;const d=ZM(i,t,a);if(s>0){let f,p;const h=s>1?Math.round((c-l)/(s-1)):null;for(ml(t,u,d,ye(h)?0:l-h,l),f=0,p=s-1;f<p;f++)ml(t,u,d,i[f],i[f+1]);return ml(t,u,d,c,ye(h)?t.length:c+h),u}return ml(t,u,d),u}function JM(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),a=e._maxLength/n;return Math.floor(Math.min(r,a))}function ZM(e,t,n){const r=tN(e),a=t.length/n;if(!r)return Math.max(a,1);const i=WT(r);for(let s=0,l=i.length-1;s<l;s++){const c=i[s];if(c>a)return c}return Math.max(a,1)}function QM(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function eN(e,t,n,r){let a=0,i=n[0],s;for(r=Math.ceil(r),s=0;s<e.length;s++)s===i&&(t.push(e[s]),a++,i=n[a*r])}function ml(e,t,n,r,a){const i=le(r,0),s=Math.min(le(a,e.length),e.length);let l=0,c,u,d;for(n=Math.ceil(n),a&&(c=a-r,n=c/Math.floor(c/n)),d=i;d<0;)l++,d=Math.round(i+l*n);for(u=Math.max(i,0);u<s;u++)u===d&&(t.push(e[u]),l++,d=Math.round(i+l*n))}function tN(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const nN=e=>e==="left"?"right":e==="right"?"left":e,wg=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Sg=(e,t)=>Math.min(t||e,e);function xg(e,t){const n=[],r=e.length/t,a=e.length;let i=0;for(;i<a;i+=r)n.push(e[Math.floor(i)]);return n}function rN(e,t,n){const r=e.ticks.length,a=Math.min(t,r-1),i=e._startPixel,s=e._endPixel,l=1e-6;let c=e.getPixelForTick(a),u;if(!(n&&(r===1?u=Math.max(c-i,s-c):t===0?u=(e.getPixelForTick(1)-c)/2:u=(c-e.getPixelForTick(a-1))/2,c+=a<t?u:-u,c<i-l||c>s+l)))return c}function aN(e,t){Le(e,n=>{const r=n.gc,a=r.length/2;let i;if(a>t){for(i=0;i<a;++i)delete n.data[r[i]];r.splice(0,a)}})}function ss(e){return e.drawTicks?e.tickLength:0}function Cg(e,t){if(!e.display)return 0;const n=it(e.font,t),r=pt(e.padding);return(Ne(e.text)?e.text.length:1)*n.lineHeight+r.height}function iN(e,t){return fa(e,{scale:t,type:"scale"})}function sN(e,t,n){return fa(e,{tick:n,index:t,type:"tick"})}function oN(e,t,n){let r=wp(e);return(n&&t!=="right"||!n&&t==="right")&&(r=nN(r)),r}function lN(e,t,n,r){const{top:a,left:i,bottom:s,right:l,chart:c}=e,{chartArea:u,scales:d}=c;let f=0,p,h,g;const v=s-a,b=l-i;if(e.isHorizontal()){if(h=Ot(r,i,l),he(n)){const m=Object.keys(n)[0],_=n[m];g=d[m].getPixelForValue(_)+v-t}else n==="center"?g=(u.bottom+u.top)/2+v-t:g=wg(e,n,t);p=l-i}else{if(he(n)){const m=Object.keys(n)[0],_=n[m];h=d[m].getPixelForValue(_)-b+t}else n==="center"?h=(u.left+u.right)/2-b+t:h=wg(e,n,t);g=Ot(r,s,a),f=n==="left"?-Ue:Ue}return{titleX:h,titleY:g,maxWidth:p,rotation:f}}class Ga extends Vt{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:a}=this;return t=Zt(t,Number.POSITIVE_INFINITY),n=Zt(n,Number.NEGATIVE_INFINITY),r=Zt(r,Number.POSITIVE_INFINITY),a=Zt(a,Number.NEGATIVE_INFINITY),{min:Zt(t,r),max:Zt(n,a),minDefined:rt(t),maxDefined:rt(n)}}getMinMax(t){let{min:n,max:r,minDefined:a,maxDefined:i}=this.getUserBounds(),s;if(a&&i)return{min:n,max:r};const l=this.getMatchingVisibleMetas();for(let c=0,u=l.length;c<u;++c)s=l[c].controller.getMinMax(this,t),a||(n=Math.min(n,s.min)),i||(r=Math.max(r,s.max));return n=i&&n>r?r:n,r=a&&n>r?n:r,{min:Zt(n,Zt(r,n)),max:Zt(r,Zt(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ie(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:a,grace:i,ticks:s}=this.options,l=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=_O(this,i,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l<this.ticks.length;this._convertTicksToLabels(c?xg(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=KM(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ie(this.options.afterUpdate,[this])}beforeSetDimensions(){Ie(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ie(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Ie(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ie(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,a,i;for(r=0,a=t.length;r<a;r++)i=t[r],i.label=Ie(n.callback,[i.value,r,t],this)}afterTickToLabelConversion(){Ie(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ie(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=Sg(this.ticks.length,t.ticks.maxTicksLimit),a=n.minRotation||0,i=n.maxRotation;let s=a,l,c,u;if(!this._isVisible()||!n.display||a>=i||r<=1||!this.isHorizontal()){this.labelRotation=a;return}const d=this._getLabelSizes(),f=d.widest.width,p=d.highest.height,h=xt(this.chart.width-f,0,this.maxWidth);l=t.offset?this.maxWidth/r:h/(r-1),f+6>l&&(l=h/(r-(t.offset?.5:1)),c=this.maxHeight-ss(t.grid)-n.padding-Cg(t.title,this.chart.options.font),u=Math.sqrt(f*f+p*p),s=Fc(Math.min(Math.asin(xt((d.highest.height+6)/l,-1,1)),Math.asin(xt(c/u,-1,1))-Math.asin(xt(p/u,-1,1)))),s=Math.max(a,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){Ie(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ie(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:a,grid:i}}=this,s=this._isVisible(),l=this.isHorizontal();if(s){const c=Cg(a,n.options.font);if(l?(t.width=this.maxWidth,t.height=ss(i)+c):(t.height=this.maxHeight,t.width=ss(i)+c),r.display&&this.ticks.length){const{first:u,last:d,widest:f,highest:p}=this._getLabelSizes(),h=r.padding*2,g=ht(this.labelRotation),v=Math.cos(g),b=Math.sin(g);if(l){const m=r.mirror?0:b*f.width+v*p.height;t.height=Math.min(this.maxHeight,t.height+m+h)}else{const m=r.mirror?0:v*f.width+b*p.height;t.width=Math.min(this.maxWidth,t.width+m+h)}this._calculatePadding(u,d,b,v)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,a){const{ticks:{align:i,padding:s},position:l}=this.options,c=this.labelRotation!==0,u=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,h=0;c?u?(p=a*t.width,h=r*n.height):(p=r*t.height,h=a*n.width):i==="start"?h=n.width:i==="end"?p=t.width:i!=="inner"&&(p=t.width/2,h=n.width/2),this.paddingLeft=Math.max((p-d+s)*this.width/(this.width-d),0),this.paddingRight=Math.max((h-f+s)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;i==="start"?(d=0,f=t.height):i==="end"&&(d=n.height,f=0),this.paddingTop=d+s,this.paddingBottom=f+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ie(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)ye(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=xg(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:a,_longestTextCache:i}=this,s=[],l=[],c=Math.floor(n/Sg(n,r));let u=0,d=0,f,p,h,g,v,b,m,_,k,y,w;for(f=0;f<n;f+=c){if(g=t[f].label,v=this._resolveTickFontOptions(f),a.font=b=v.string,m=i[b]=i[b]||{data:{},gc:[]},_=v.lineHeight,k=y=0,!ye(g)&&!Ne(g))k=oc(a,m.data,m.gc,k,g),y=_;else if(Ne(g))for(p=0,h=g.length;p<h;++p)w=g[p],!ye(w)&&!Ne(w)&&(k=oc(a,m.data,m.gc,k,w),y+=_);s.push(k),l.push(y),u=Math.max(k,u),d=Math.max(y,d)}aN(i,n);const S=s.indexOf(u),C=l.indexOf(d),E=O=>({width:s[O]||0,height:l[O]||0});return{first:E(0),last:E(n-1),widest:E(S),highest:E(C),widths:s,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return qT(this._alignToPixels?va(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=sN(this.getContext(),t,r))}return this.$context||(this.$context=iN(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=ht(this.labelRotation),r=Math.abs(Math.cos(n)),a=Math.abs(Math.sin(n)),i=this._getLabelSizes(),s=t.autoSkipPadding||0,l=i?i.widest.width+s:0,c=i?i.highest.height+s:0;return this.isHorizontal()?c*r>l*a?l/r:c/a:c*a<l*r?c/r:l/a}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,a=this.options,{grid:i,position:s,border:l}=a,c=i.offset,u=this.isHorizontal(),f=this.ticks.length+(c?1:0),p=ss(i),h=[],g=l.setContext(this.getContext()),v=g.display?g.width:0,b=v/2,m=function(Z){return va(r,Z,v)};let _,k,y,w,S,C,E,O,L,D,N,R;if(s==="top")_=m(this.bottom),C=this.bottom-p,O=_-b,D=m(t.top)+b,R=t.bottom;else if(s==="bottom")_=m(this.top),D=t.top,R=m(t.bottom)-b,C=_+b,O=this.top+p;else if(s==="left")_=m(this.right),S=this.right-p,E=_-b,L=m(t.left)+b,N=t.right;else if(s==="right")_=m(this.left),L=t.left,N=m(t.right)-b,S=_+b,E=this.left+p;else if(n==="x"){if(s==="center")_=m((t.top+t.bottom)/2+.5);else if(he(s)){const Z=Object.keys(s)[0],X=s[Z];_=m(this.chart.scales[Z].getPixelForValue(X))}D=t.top,R=t.bottom,C=_+b,O=C+p}else if(n==="y"){if(s==="center")_=m((t.left+t.right)/2);else if(he(s)){const Z=Object.keys(s)[0],X=s[Z];_=m(this.chart.scales[Z].getPixelForValue(X))}S=_-b,E=S-p,L=t.left,N=t.right}const ne=le(a.ticks.maxTicksLimit,f),K=Math.max(1,Math.ceil(f/ne));for(k=0;k<f;k+=K){const Z=this.getContext(k),X=i.setContext(Z),ce=l.setContext(Z),Y=X.lineWidth,se=X.color,de=ce.dash||[],Te=ce.dashOffset,Fe=X.tickWidth,ve=X.tickColor,ie=X.tickBorderDash||[],V=X.tickBorderDashOffset;y=rN(this,k,c),y!==void 0&&(w=va(r,y,Y),u?S=E=L=N=w:C=O=D=R=w,h.push({tx1:S,ty1:C,tx2:E,ty2:O,x1:L,y1:D,x2:N,y2:R,width:Y,color:se,borderDash:de,borderDashOffset:Te,tickWidth:Fe,tickColor:ve,tickBorderDash:ie,tickBorderDashOffset:V}))}return this._ticksLength=f,this._borderValue=_,h}_computeLabelItems(t){const n=this.axis,r=this.options,{position:a,ticks:i}=r,s=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:u,padding:d,mirror:f}=i,p=ss(r.grid),h=p+d,g=f?-d:h,v=-ht(this.labelRotation),b=[];let m,_,k,y,w,S,C,E,O,L,D,N,R="middle";if(a==="top")S=this.bottom-g,C=this._getXAxisLabelAlignment();else if(a==="bottom")S=this.top+g,C=this._getXAxisLabelAlignment();else if(a==="left"){const K=this._getYAxisLabelAlignment(p);C=K.textAlign,w=K.x}else if(a==="right"){const K=this._getYAxisLabelAlignment(p);C=K.textAlign,w=K.x}else if(n==="x"){if(a==="center")S=(t.top+t.bottom)/2+h;else if(he(a)){const K=Object.keys(a)[0],Z=a[K];S=this.chart.scales[K].getPixelForValue(Z)+h}C=this._getXAxisLabelAlignment()}else if(n==="y"){if(a==="center")w=(t.left+t.right)/2-h;else if(he(a)){const K=Object.keys(a)[0],Z=a[K];w=this.chart.scales[K].getPixelForValue(Z)}C=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(c==="start"?R="top":c==="end"&&(R="bottom"));const ne=this._getLabelSizes();for(m=0,_=l.length;m<_;++m){k=l[m],y=k.label;const K=i.setContext(this.getContext(m));E=this.getPixelForTick(m)+i.labelOffset,O=this._resolveTickFontOptions(m),L=O.lineHeight,D=Ne(y)?y.length:1;const Z=D/2,X=K.color,ce=K.textStrokeColor,Y=K.textStrokeWidth;let se=C;s?(w=E,C==="inner"&&(m===_-1?se=this.options.reverse?"left":"right":m===0?se=this.options.reverse?"right":"left":se="center"),a==="top"?u==="near"||v!==0?N=-D*L+L/2:u==="center"?N=-ne.highest.height/2-Z*L+L:N=-ne.highest.height+L/2:u==="near"||v!==0?N=L/2:u==="center"?N=ne.highest.height/2-Z*L:N=ne.highest.height-D*L,f&&(N*=-1),v!==0&&!K.showLabelBackdrop&&(w+=L/2*Math.sin(v))):(S=E,N=(1-D)*L/2);let de;if(K.showLabelBackdrop){const Te=pt(K.backdropPadding),Fe=ne.heights[m],ve=ne.widths[m];let ie=N-Te.top,V=0-Te.left;switch(R){case"middle":ie-=Fe/2;break;case"bottom":ie-=Fe;break}switch(C){case"center":V-=ve/2;break;case"right":V-=ve;break}de={left:V,top:ie,width:ve+Te.width,height:Fe+Te.height,color:K.backdropColor}}b.push({label:y,font:O,textOffset:N,options:{rotation:v,color:X,strokeColor:ce,strokeWidth:Y,textAlign:se,textBaseline:R,translation:[w,S],backdrop:de}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-ht(this.labelRotation))return t==="top"?"left":"right";let a="center";return n.align==="start"?a="left":n.align==="end"?a="right":n.align==="inner"&&(a="inner"),a}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:a,padding:i}}=this.options,s=this._getLabelSizes(),l=t+i,c=s.widest.width;let u,d;return n==="left"?a?(d=this.right+i,r==="near"?u="left":r==="center"?(u="center",d+=c/2):(u="right",d+=c)):(d=this.right-l,r==="near"?u="right":r==="center"?(u="center",d-=c/2):(u="left",d=this.left)):n==="right"?a?(d=this.left+i,r==="near"?u="right":r==="center"?(u="center",d-=c/2):(u="left",d-=c)):(d=this.left+l,r==="near"?u="left":r==="center"?(u="center",d+=c/2):(u="right",d=this.right)):u="right",{textAlign:u,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:a,width:i,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,a,i,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const a=this.ticks.findIndex(i=>i.value===t);return a>=0?n.setContext(this.getContext(a)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,s;const l=(c,u,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(c.x,c.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(i=0,s=a.length;i<s;++i){const c=a[i];n.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),n.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:a}}=this,i=r.setContext(this.getContext()),s=r.display?i.width:0;if(!s)return;const l=a.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let u,d,f,p;this.isHorizontal()?(u=va(t,this.left,s)-s/2,d=va(t,this.right,l)+l/2,f=p=c):(f=va(t,this.top,s)-s/2,p=va(t,this.bottom,l)+l/2,u=d=c),n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.beginPath(),n.moveTo(u,f),n.lineTo(d,p),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,a=this._computeLabelArea();a&&Mo(r,a);const i=this.getLabelItems(t);for(const s of i){const l=s.options,c=s.font,u=s.label,d=s.textOffset;Ha(r,u,0,d,c,l)}a&&No(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:a}}=this;if(!r.display)return;const i=it(r.font),s=pt(r.padding),l=r.align;let c=i.lineHeight/2;n==="bottom"||n==="center"||he(n)?(c+=s.bottom,Ne(r.text)&&(c+=i.lineHeight*(r.text.length-1))):c+=s.top;const{titleX:u,titleY:d,maxWidth:f,rotation:p}=lN(this,c,n,l);Ha(t,r.text,0,0,i,{color:r.color,maxWidth:f,rotation:p,textAlign:oN(l,n,a),textBaseline:"middle",translation:[u,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=le(t.grid&&t.grid.z,-1),a=le(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ga.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:a,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",a=[];let i,s;for(i=0,s=n.length;i<s;++i){const l=n[i];l[r]===this.id&&(!t||l.type===t)&&a.push(l)}return a}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return it(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class gl{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;dN(n)&&(r=this.register(n));const a=this.items,i=t.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in a||(a[i]=t,cN(t,s,r),this.override&&at.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,a=this.scope;r in n&&delete n[r],a&&r in at[a]&&(delete at[a][r],this.override&&delete ja[r])}}function cN(e,t,n){const r=Xn(Object.create(null),[n?at.get(n):{},at.get(t),e.defaults]);at.set(t,r),e.defaultRoutes&&uN(t,e.defaultRoutes),e.descriptors&&at.describe(t,e.descriptors)}function uN(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),a=r.pop(),i=[e].concat(r).join("."),s=t[n].split("."),l=s.pop(),c=s.join(".");at.route(i,a,c,l)})}function dN(e){return"id"in e&&"defaults"in e}class fN{constructor(){this.controllers=new gl(Nn,"datasets",!0),this.elements=new gl(Vt,"elements"),this.plugins=new gl(Object,"plugins"),this.scales=new gl(Ga,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(a=>{const i=r||this._getRegistryForType(a);r||i.isForType(a)||i===this.plugins&&a.id?this._exec(t,i,a):Le(a,s=>{const l=r||this._getRegistryForType(s);this._exec(t,l,s)})})}_exec(t,n,r){const a=yp(t);Ie(r["before"+a],[],r),n[t](r),Ie(r["after"+a],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const a=n.get(t);if(a===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return a}}var Fn=new fN;class pN{constructor(){this._init=[]}notify(t,n,r,a){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const i=a?this._descriptors(t).filter(a):this._descriptors(t),s=this._notify(i,t,n,r);return n==="afterDestroy"&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,n,r,a){a=a||{};for(const i of t){const s=i.plugin,l=s[r],c=[n,a,i.options];if(Ie(l,c,s)===!1&&a.cancelable)return!1}return!0}invalidate(){ye(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,a=le(r.options&&r.options.plugins,{}),i=hN(r);return a===!1&&!n?[]:gN(t,i,a,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,a=(i,s)=>i.filter(l=>!s.some(c=>l.plugin.id===c.plugin.id));this._notify(a(n,r),t,"stop"),this._notify(a(r,n),t,"start")}}function hN(e){const t={},n=[],r=Object.keys(Fn.plugins.items);for(let i=0;i<r.length;i++)n.push(Fn.getPlugin(r[i]));const a=e.plugins||[];for(let i=0;i<a.length;i++){const s=a[i];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function mN(e,t){return!t&&e===!1?null:e===!0?{}:e}function gN(e,{plugins:t,localIds:n},r,a){const i=[],s=e.getContext();for(const l of t){const c=l.id,u=mN(r[c],a);u!==null&&i.push({plugin:l,options:vN(e.config,{plugin:l,local:n[c]},u,s)})}return i}function vN(e,{plugin:t,local:n},r,a){const i=e.pluginScopeKeys(t),s=e.getOptionScopes(r,i);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Hd(e,t){const n=at.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function _N(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function yN(e,t){return e===t?"_index_":"_value_"}function Eg(e){if(e==="x"||e==="y"||e==="r")return e}function bN(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Wd(e,...t){if(Eg(e))return e;for(const n of t){const r=n.axis||bN(n.position)||e.length>1&&Eg(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Tg(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function kN(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return Tg(e,"x",n[0])||Tg(e,"y",n[0])}return{}}function wN(e,t){const n=ja[e.type]||{scales:{}},r=t.scales||{},a=Hd(e.type,t),i=Object.create(null);return Object.keys(r).forEach(s=>{const l=r[s];if(!he(l))return console.error(`Invalid scale configuration for scale: ${s}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const c=Wd(s,l,kN(s,e),at.scales[l.type]),u=yN(c,a),d=n.scales||{};i[s]=Ts(Object.create(null),[{axis:c},l,d[c],d[u]])}),e.data.datasets.forEach(s=>{const l=s.type||e.type,c=s.indexAxis||Hd(l,t),d=(ja[l]||{}).scales||{};Object.keys(d).forEach(f=>{const p=_N(f,c),h=s[p+"AxisID"]||p;i[h]=i[h]||Object.create(null),Ts(i[h],[{axis:p},r[h],d[f]])})}),Object.keys(i).forEach(s=>{const l=i[s];Ts(l,[at.scales[l.type],at.scale])}),i}function L_(e){const t=e.options||(e.options={});t.plugins=le(t.plugins,{}),t.scales=wN(e,t)}function R_(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function SN(e){return e=e||{},e.data=R_(e.data),L_(e),e}const Og=new Map,B_=new Set;function vl(e,t){let n=Og.get(e);return n||(n=t(),Og.set(e,n),B_.add(n)),n}const os=(e,t,n)=>{const r=na(t,n);r!==void 0&&e.add(r)};class xN{constructor(t){this._config=SN(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=R_(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),L_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return vl(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return vl(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return vl(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return vl(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let a=r.get(t);return(!a||n)&&(a=new Map,r.set(t,a)),a}getOptionScopes(t,n,r){const{options:a,type:i}=this,s=this._cachedScopes(t,r),l=s.get(n);if(l)return l;const c=new Set;n.forEach(d=>{t&&(c.add(t),d.forEach(f=>os(c,t,f))),d.forEach(f=>os(c,a,f)),d.forEach(f=>os(c,ja[i]||{},f)),d.forEach(f=>os(c,at,f)),d.forEach(f=>os(c,Fd,f))});const u=Array.from(c);return u.length===0&&u.push(Object.create(null)),B_.has(n)&&s.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,ja[n]||{},at.datasets[n]||{},{type:n},at,Fd]}resolveNamedOptions(t,n,r,a=[""]){const i={$shared:!0},{resolver:s,subPrefixes:l}=Mg(this._resolverCache,t,a);let c=s;if(EN(s,n)){i.$shared=!1,r=Xt(r)?r():r;const u=this.createResolver(t,r,l);c=Li(s,r,u)}for(const u of n)i[u]=c[u];return i}createResolver(t,n,r=[""],a){const{resolver:i}=Mg(this._resolverCache,t,r);return he(n)?Li(i,n,void 0,a):i}}function Mg(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const a=n.join();let i=r.get(a);return i||(i={resolver:Cp(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},r.set(a,i)),i}const CN=e=>he(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Xt(e[n]),!1);function EN(e,t){const{isScriptable:n,isIndexable:r}=m_(e);for(const a of t){const i=n(a),s=r(a),l=(s||i)&&e[a];if(i&&(Xt(l)||CN(l))||s&&Ne(l))return!0}return!1}var TN="4.3.0";const ON=["top","bottom","left","right","chartArea"];function Ng(e,t){return e==="top"||e==="bottom"||ON.indexOf(e)===-1&&t==="x"}function Dg(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Pg(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ie(n&&n.onComplete,[e],t)}function MN(e){const t=e.chart,n=t.options.animation;Ie(n&&n.onProgress,[e],t)}function V_(e){return k_()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Fl={},Ag=e=>{const t=V_(e);return Object.values(Fl).filter(n=>n.canvas===t).pop()};function NN(e,t,n){const r=Object.keys(e);for(const a of r){const i=+a;if(i>=t){const s=e[a];delete e[a],(n>0||i>t)&&(e[i+n]=s)}}}function DN(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function PN(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class Re{static register(...t){Fn.add(...t),Ig()}static unregister(...t){Fn.remove(...t),Ig()}constructor(t,n){const r=this.config=new xN(n),a=V_(t),i=Ag(a);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||XM(a)),this.platform.updateConfig(r);const l=this.platform.acquireContext(a,s.aspectRatio),c=l&&l.canvas,u=c&&c.height,d=c&&c.width;if(this.id=RT(),this.ctx=l,this.canvas=c,this.width=d,this.height=u,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new pN,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=JT(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],Fl[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}sr.listen(this,"complete",Pg),sr.listen(this,"progress",MN),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:a,_aspectRatio:i}=this;return ye(t)?n&&i?i:a?r/a:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Fn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():tg(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Z1(this.canvas,this.ctx),this}stop(){return sr.stop(this),this}resize(t,n){sr.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,a=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(a,t,n,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,tg(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),Ie(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Le(n,(r,a)=>{r.id=a})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,a=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{});let i=[];n&&(i=i.concat(Object.keys(n).map(s=>{const l=n[s],c=Wd(s,l),u=c==="r",d=c==="x";return{options:l,dposition:u?"chartArea":d?"bottom":"left",dtype:u?"radialLinear":d?"category":"linear"}}))),Le(i,s=>{const l=s.options,c=l.id,u=Wd(c,l),d=le(l.type,s.dtype);(l.position===void 0||Ng(l.position,u)!==Ng(s.dposition))&&(l.position=s.dposition),a[c]=!0;let f=null;if(c in r&&r[c].type===d)f=r[c];else{const p=Fn.getScale(d);f=new p({id:c,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,t)}),Le(a,(s,l)=>{s||delete r[l]}),Le(r,s=>{Mt.configure(this,s,s.options),Mt.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((a,i)=>a.index-i.index),r>n){for(let a=n;a<r;++a)this._destroyDatasetMeta(a);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(Dg("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,a)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,a;for(this._removeUnreferencedMetasets(),r=0,a=n.length;r<a;r++){const i=n[r];let s=this.getDatasetMeta(r);const l=i.type||this.config.type;if(s.type&&s.type!==l&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=l,s.indexAxis=i.indexAxis||Hd(l,this.options),s.order=i.order||0,s.index=r,s.label=""+i.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const c=Fn.getController(l),{datasetElementType:u,dataElementType:d}=at.datasets[l];Object.assign(c,{dataElementType:Fn.getElement(d),datasetElementType:u&&Fn.getElement(u)}),s.controller=new c(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){Le(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let u=0,d=this.data.datasets.length;u<d;u++){const{controller:f}=this.getDatasetMeta(u),p=!a&&i.indexOf(f)===-1;f.buildOrUpdateElements(p),s=Math.max(+f.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),a||Le(i,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Dg("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){Le(this.scales,t=>{Mt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!W1(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:a,count:i}of n){const s=r==="_removeElements"?-i:i;NN(t,a,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(t.filter(s=>s[0]===i).map((s,l)=>l+","+s.splice(1).join(","))),a=r(0);for(let i=1;i<n;i++)if(!W1(a,r(i)))return;return Array.from(a).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Mt.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Le(this.boxes,a=>{r&&a.position==="chartArea"||(a.configure&&a.configure(),this._layers.push(...a._layers()))},this),this._layers.forEach((a,i)=>{a._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Xt(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),a={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",a)!==!1&&(r.controller._update(n),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(sr.has(this)?this.attached&&!sr.running(this)&&sr.start(this):(this.draw(),Pg({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:a}=this._resizeBeforeDraw;this._resize(r,a),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let a,i;for(a=0,i=n.length;a<i;++a){const s=n[a];(!t||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,a=!r.disabled,i=PN(t)||this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(a&&Mo(n,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),t.controller.draw(),a&&No(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return hr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,a){const i=OM.modes[n];return typeof i=="function"?i(this,t,r,a):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let a=r.filter(i=>i&&i._dataset===n).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(a)),a}getContext(){return this.$context||(this.$context=fa(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const a=r?"show":"hide",i=this.getDatasetMeta(t),s=i.controller._resolveAnimations(void 0,a);Kt(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(i,{visible:r}),this.update(l=>l.datasetIndex===t?a:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),sr.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Z1(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Fl[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(i,s)=>{n.addEventListener(this,i,s),t[i]=s},a=(i,s,l)=>{i.offsetX=s,i.offsetY=l,this._eventHandler(i)};Le(this.options.events,i=>r(i,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(c,u)=>{n.addEventListener(this,c,u),t[c]=u},a=(c,u)=>{t[c]&&(n.removeEventListener(this,c,u),delete t[c])},i=(c,u)=>{this.canvas&&this.resize(c,u)};let s;const l=()=>{a("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",s)};s=()=>{this.attached=!1,a("resize",i),this._stop(),this._resize(0,0),r("attach",l)},n.isAttached(this.canvas)?l():s()}unbindEvents(){Le(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Le(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const a=r?"set":"remove";let i,s,l,c;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+a+"DatasetHoverStyle"]()),l=0,c=t.length;l<c;++l){s=t[l];const u=s&&this.getDatasetMeta(s.datasetIndex).controller;u&&u[a+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:i,index:s})=>{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[s],index:s}});!rc(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const a=this.options.hover,i=(c,u)=>c.filter(d=>!u.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),s=i(n,t),l=r?t:i(t,n);s.length&&this.updateHoverStyle(s,a.mode,!1),l.length&&a.mode&&this.updateHoverStyle(l,a.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},a=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,a)===!1)return;const i=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,a),(i||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:a=[],options:i}=this,s=n,l=this._getActiveElements(t,a,r,s),c=jT(t),u=DN(t,this._lastEvent,r,c);r&&(this._lastEvent=null,Ie(i.onHover,[t,l,this],this),c&&Ie(i.onClick,[t,l,this],this));const d=!rc(l,a);return(d||n)&&(this._active=l,this._updateHoverStyles(l,a,n)),this._lastEvent=u,d}_getActiveElements(t,n,r,a){if(t.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,a)}}z(Re,"defaults",at),z(Re,"instances",Fl),z(Re,"overrides",ja),z(Re,"registry",Fn),z(Re,"version",TN),z(Re,"getChart",Ag);function Ig(){return Le(Re.instances,e=>e._plugins.invalidate())}function AN(e,t,n){const{startAngle:r,pixelMargin:a,x:i,y:s,outerRadius:l,innerRadius:c}=t;let u=a/l;e.beginPath(),e.arc(i,s,l,r-u,n+u),c>a?(u=a/c,e.arc(i,s,c,n+u,r-u,!0)):e.arc(i,s,a,n+Ue,r-Ue),e.closePath(),e.clip()}function IN(e){return xp(e,["outerStart","outerEnd","innerStart","innerEnd"])}function LN(e,t,n,r){const a=IN(e.options.borderRadius),i=(n-t)/2,s=Math.min(i,r*t/2),l=c=>{const u=(n-Math.min(i,c))*r/2;return xt(c,0,Math.min(i,u))};return{outerStart:l(a.outerStart),outerEnd:l(a.outerEnd),innerStart:xt(a.innerStart,0,s),innerEnd:xt(a.innerEnd,0,s)}}function oi(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function uc(e,t,n,r,a,i){const{x:s,y:l,startAngle:c,pixelMargin:u,innerRadius:d}=t,f=Math.max(t.outerRadius+r+n-u,0),p=d>0?d+r+n+u:0;let h=0;const g=a-c;if(r){const K=d>0?d-r:0,Z=f>0?f-r:0,X=(K+Z)/2,ce=X!==0?g*X/(X+r):g;h=(g-ce)/2}const v=Math.max(.001,g*f-n/Ee)/f,b=(g-v)/2,m=c+b+h,_=a-b-h,{outerStart:k,outerEnd:y,innerStart:w,innerEnd:S}=LN(t,p,f,_-m),C=f-k,E=f-y,O=m+k/C,L=_-y/E,D=p+w,N=p+S,R=m+w/D,ne=_-S/N;if(e.beginPath(),i){const K=(O+L)/2;if(e.arc(s,l,f,O,K),e.arc(s,l,f,K,L),y>0){const Y=oi(E,L,s,l);e.arc(Y.x,Y.y,y,L,_+Ue)}const Z=oi(N,_,s,l);if(e.lineTo(Z.x,Z.y),S>0){const Y=oi(N,ne,s,l);e.arc(Y.x,Y.y,S,_+Ue,ne+Math.PI)}const X=(_-S/p+(m+w/p))/2;if(e.arc(s,l,p,_-S/p,X,!0),e.arc(s,l,p,X,m+w/p,!0),w>0){const Y=oi(D,R,s,l);e.arc(Y.x,Y.y,w,R+Math.PI,m-Ue)}const ce=oi(C,m,s,l);if(e.lineTo(ce.x,ce.y),k>0){const Y=oi(C,O,s,l);e.arc(Y.x,Y.y,k,m-Ue,O)}}else{e.moveTo(s,l);const K=Math.cos(O)*f+s,Z=Math.sin(O)*f+l;e.lineTo(K,Z);const X=Math.cos(L)*f+s,ce=Math.sin(L)*f+l;e.lineTo(X,ce)}e.closePath()}function RN(e,t,n,r,a){const{fullCircles:i,startAngle:s,circumference:l}=t;let c=t.endAngle;if(i){uc(e,t,n,r,c,a);for(let u=0;u<i;++u)e.fill();isNaN(l)||(c=s+(l%We||We))}return uc(e,t,n,r,c,a),e.fill(),c}function BN(e,t,n,r,a){const{fullCircles:i,startAngle:s,circumference:l,options:c}=t,{borderWidth:u,borderJoinStyle:d,borderDash:f,borderDashOffset:p}=c,h=c.borderAlign==="inner";if(!u)return;e.setLineDash(f||[]),e.lineDashOffset=p,h?(e.lineWidth=u*2,e.lineJoin=d||"round"):(e.lineWidth=u,e.lineJoin=d||"bevel");let g=t.endAngle;if(i){uc(e,t,n,r,g,a);for(let v=0;v<i;++v)e.stroke();isNaN(l)||(g=s+(l%We||We))}h&&AN(e,t,g),i||(uc(e,t,n,r,g,a),e.stroke())}class mi extends Vt{constructor(n){super();z(this,"circumference");z(this,"endAngle");z(this,"fullCircles");z(this,"innerRadius");z(this,"outerRadius");z(this,"pixelMargin");z(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,a){const i=this.getProps(["x","y"],a),{angle:s,distance:l}=i_(i,{x:n,y:r}),{startAngle:c,endAngle:u,innerRadius:d,outerRadius:f,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],a),h=(this.options.spacing+this.options.borderWidth)/2,v=le(p,u-c)>=We||to(s,c,u),b=fr(l,d+h,f+h);return v&&b}getCenterPoint(n){const{x:r,y:a,startAngle:i,endAngle:s,innerRadius:l,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:d}=this.options,f=(i+s)/2,p=(l+c+d+u)/2;return{x:r+Math.cos(f)*p,y:a+Math.sin(f)*p}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:a}=this,i=(r.offset||0)/4,s=(r.spacing||0)/2,l=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=a>We?Math.floor(a/We):0,a===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const c=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(c)*i,Math.sin(c)*i);const u=1-Math.sin(Math.min(Ee,a||0)),d=i*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,RN(n,this,d,s,l),BN(n,this,d,s,l),n.restore()}}z(mi,"id","arc"),z(mi,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),z(mi,"defaultRoutes",{backgroundColor:"backgroundColor"}),z(mi,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function $_(e,t,n=t){e.lineCap=le(n.borderCapStyle,t.borderCapStyle),e.setLineDash(le(n.borderDash,t.borderDash)),e.lineDashOffset=le(n.borderDashOffset,t.borderDashOffset),e.lineJoin=le(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=le(n.borderWidth,t.borderWidth),e.strokeStyle=le(n.borderColor,t.borderColor)}function VN(e,t,n){e.lineTo(n.x,n.y)}function $N(e){return e.stepped?cO:e.tension||e.cubicInterpolationMode==="monotone"?uO:VN}function F_(e,t,n={}){const r=e.length,{start:a=0,end:i=r-1}=n,{start:s,end:l}=t,c=Math.max(a,s),u=Math.min(i,l),d=a<s&&i<s||a>l&&i>l;return{count:r,start:c,loop:t.loop,ilen:u<c&&!d?r+u-c:u-c}}function FN(e,t,n,r){const{points:a,options:i}=t,{count:s,start:l,loop:c,ilen:u}=F_(a,n,r),d=$N(i);let{move:f=!0,reverse:p}=r||{},h,g,v;for(h=0;h<=u;++h)g=a[(l+(p?u-h:h))%s],!g.skip&&(f?(e.moveTo(g.x,g.y),f=!1):d(e,v,g,p,i.stepped),v=g);return c&&(g=a[(l+(p?u:0))%s],d(e,v,g,p,i.stepped)),!!c}function zN(e,t,n,r){const a=t.points,{count:i,start:s,ilen:l}=F_(a,n,r),{move:c=!0,reverse:u}=r||{};let d=0,f=0,p,h,g,v,b,m;const _=y=>(s+(u?l-y:y))%i,k=()=>{v!==b&&(e.lineTo(d,b),e.lineTo(d,v),e.lineTo(d,m))};for(c&&(h=a[_(0)],e.moveTo(h.x,h.y)),p=0;p<=l;++p){if(h=a[_(p)],h.skip)continue;const y=h.x,w=h.y,S=y|0;S===g?(w<v?v=w:w>b&&(b=w),d=(f*d+y)/++f):(k(),e.lineTo(y,w),g=S,f=0,v=b=w),m=w}k()}function Ud(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?zN:FN}function jN(e){return e.stepped?jO:e.tension||e.cubicInterpolationMode==="monotone"?HO:Sa}function HN(e,t,n,r){let a=t._path;a||(a=t._path=new Path2D,t.path(a,n,r)&&a.closePath()),$_(e,t.options),e.stroke(a)}function WN(e,t,n,r){const{segments:a,options:i}=t,s=Ud(t);for(const l of a)$_(e,i,l.style),e.beginPath(),s(e,t,l,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const UN=typeof Path2D=="function";function YN(e,t,n,r){UN&&!t.options.segment?HN(e,t,n,r):WN(e,t,n,r)}class Wr extends Vt{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const a=r.spanGaps?this._loop:this._fullLoop;IO(this._points,r,t,a,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=XO(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,a=t[n],i=this.points,s=E_(this,{property:n,start:a,end:a});if(!s.length)return;const l=[],c=jN(r);let u,d;for(u=0,d=s.length;u<d;++u){const{start:f,end:p}=s[u],h=i[f],g=i[p];if(h===g){l.push(h);continue}const v=Math.abs((a-h[n])/(g[n]-h[n])),b=c(h,g,v,r.stepped);b[n]=t[n],l.push(b)}return l.length===1?l[0]:l}pathSegment(t,n,r){return Ud(this)(t,this,n,r)}path(t,n,r){const a=this.segments,i=Ud(this);let s=this._loop;n=n||0,r=r||this.points.length-n;for(const l of a)s&=i(t,this,l,{start:n,end:n+r-1});return!!s}draw(t,n,r,a){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),YN(t,this,r,a),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}z(Wr,"id","line"),z(Wr,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),z(Wr,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),z(Wr,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Lg(e,t,n,r){const a=e.options,{[n]:i}=e.getProps([n],r);return Math.abs(t-i)<a.radius+a.hitRadius}class Ps extends Vt{constructor(n){super();z(this,"parsed");z(this,"skip");z(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,a){const i=this.options,{x:s,y:l}=this.getProps(["x","y"],a);return Math.pow(n-s,2)+Math.pow(r-l,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(n,r){return Lg(this,n,"x",r)}inYRange(n,r){return Lg(this,n,"y",r)}getCenterPoint(n){const{x:r,y:a}=this.getProps(["x","y"],n);return{x:r,y:a}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const a=r&&n.borderWidth||0;return(r+a)*2}draw(n,r){const a=this.options;this.skip||a.radius<.1||!hr(this,r,this.size(a)/2)||(n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.fillStyle=a.backgroundColor,zd(n,a,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}z(Ps,"id","point"),z(Ps,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),z(Ps,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function z_(e,t){const{x:n,y:r,base:a,width:i,height:s}=e.getProps(["x","y","base","width","height"],t);let l,c,u,d,f;return e.horizontal?(f=s/2,l=Math.min(n,a),c=Math.max(n,a),u=r-f,d=r+f):(f=i/2,l=n-f,c=n+f,u=Math.min(r,a),d=Math.max(r,a)),{left:l,top:u,right:c,bottom:d}}function Ur(e,t,n,r){return e?0:xt(t,n,r)}function qN(e,t,n){const r=e.options.borderWidth,a=e.borderSkipped,i=h_(r);return{t:Ur(a.top,i.top,0,n),r:Ur(a.right,i.right,0,t),b:Ur(a.bottom,i.bottom,0,n),l:Ur(a.left,i.left,0,t)}}function GN(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),a=e.options.borderRadius,i=Xr(a),s=Math.min(t,n),l=e.borderSkipped,c=r||he(a);return{topLeft:Ur(!c||l.top||l.left,i.topLeft,0,s),topRight:Ur(!c||l.top||l.right,i.topRight,0,s),bottomLeft:Ur(!c||l.bottom||l.left,i.bottomLeft,0,s),bottomRight:Ur(!c||l.bottom||l.right,i.bottomRight,0,s)}}function XN(e){const t=z_(e),n=t.right-t.left,r=t.bottom-t.top,a=qN(e,n/2,r/2),i=GN(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+a.l,y:t.top+a.t,w:n-a.l-a.r,h:r-a.t-a.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,i.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(a.b,a.r))}}}}function qu(e,t,n,r){const a=t===null,i=n===null,l=e&&!(a&&i)&&z_(e,r);return l&&(a||fr(t,l.left,l.right))&&(i||fr(n,l.top,l.bottom))}function KN(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function JN(e,t){e.rect(t.x,t.y,t.w,t.h)}function Gu(e,t,n={}){const r=e.x!==n.x?-t:0,a=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,s=(e.y+e.h!==n.y+n.h?t:0)-a;return{x:e.x+r,y:e.y+a,w:e.w+i,h:e.h+s,radius:e.radius}}class As extends Vt{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:a}}=this,{inner:i,outer:s}=XN(this),l=KN(s.radius)?Ii:JN;t.save(),(s.w!==i.w||s.h!==i.h)&&(t.beginPath(),l(t,Gu(s,n,i)),t.clip(),l(t,Gu(i,-n,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,Gu(i,n)),t.fillStyle=a,t.fill(),t.restore()}inRange(t,n,r){return qu(this,t,n,r)}inXRange(t,n){return qu(this,t,null,n)}inYRange(t,n){return qu(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:a,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+a)/2:n,y:i?r:(r+a)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}z(As,"id","bar"),z(As,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),z(As,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var ZN=Object.freeze({__proto__:null,ArcElement:mi,BarElement:As,LineElement:Wr,PointElement:Ps});const Yd=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Rg=Yd.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function j_(e){return Yd[e%Yd.length]}function H_(e){return Rg[e%Rg.length]}function QN(e,t){return e.borderColor=j_(t),e.backgroundColor=H_(t),++t}function eD(e,t){return e.backgroundColor=e.data.map(()=>j_(t++)),t}function tD(e,t){return e.backgroundColor=e.data.map(()=>H_(t++)),t}function nD(e){let t=0;return(n,r)=>{const a=e.getDatasetMeta(r).controller;a instanceof Oa?t=eD(n,t):a instanceof Ds?t=tD(n,t):a&&(t=QN(n,t))}}function Bg(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function rD(e){return e&&(e.borderColor||e.backgroundColor)}var aD={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:a}=e.config,{elements:i}=a;if(!n.forceOverride&&(Bg(r)||rD(a)||i&&Bg(i)))return;const s=nD(e);r.forEach(s)}};function iD(e,t,n,r,a){const i=a.samples||r;if(i>=n)return e.slice(t,t+n);const s=[],l=(n-2)/(i-2);let c=0;const u=t+n-1;let d=t,f,p,h,g,v;for(s[c++]=e[d],f=0;f<i-2;f++){let b=0,m=0,_;const k=Math.floor((f+1)*l)+1+t,y=Math.min(Math.floor((f+2)*l)+1,n)+t,w=y-k;for(_=k;_<y;_++)b+=e[_].x,m+=e[_].y;b/=w,m/=w;const S=Math.floor(f*l)+1+t,C=Math.min(Math.floor((f+1)*l)+1,n)+t,{x:E,y:O}=e[d];for(h=g=-1,_=S;_<C;_++)g=.5*Math.abs((E-b)*(e[_].y-O)-(E-e[_].x)*(m-O)),g>h&&(h=g,p=e[_],v=_);s[c++]=p,d=v}return s[c++]=e[u],s}function sD(e,t,n,r){let a=0,i=0,s,l,c,u,d,f,p,h,g,v;const b=[],m=t+n-1,_=e[t].x,y=e[m].x-_;for(s=t;s<t+n;++s){l=e[s],c=(l.x-_)/y*r,u=l.y;const w=c|0;if(w===d)u<g?(g=u,f=s):u>v&&(v=u,p=s),a=(i*a+l.x)/++i;else{const S=s-1;if(!ye(f)&&!ye(p)){const C=Math.min(f,p),E=Math.max(f,p);C!==h&&C!==S&&b.push({...e[C],x:a}),E!==h&&E!==S&&b.push({...e[E],x:a})}s>0&&S!==h&&b.push(e[S]),b.push(l),d=w,i=0,g=v=u,f=p=h=s}}return b}function W_(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Vg(e){e.data.datasets.forEach(t=>{W_(t)})}function oD(e,t){const n=t.length;let r=0,a;const{iScale:i}=e,{min:s,max:l,minDefined:c,maxDefined:u}=i.getUserBounds();return c&&(r=xt(pr(t,i.axis,s).lo,0,n-1)),u?a=xt(pr(t,i.axis,l).hi+1,r,n)-r:a=n-r,{start:r,count:a}}var lD={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){Vg(e);return}const r=e.width;e.data.datasets.forEach((a,i)=>{const{_data:s,indexAxis:l}=a,c=e.getDatasetMeta(i),u=s||a.data;if(Ge([l,e.options.indexAxis])==="y"||!c.controller.supportsDecimation)return;const d=e.scales[c.xAxisID];if(d.type!=="linear"&&d.type!=="time"||e.options.parsing)return;let{start:f,count:p}=oD(c,u);const h=n.threshold||4*r;if(p<=h){W_(a);return}ye(s)&&(a._data=u,delete a.data,Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(v){this._data=v}}));let g;switch(n.algorithm){case"lttb":g=iD(u,f,p,r,n);break;case"min-max":g=sD(u,f,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}a._decimated=g})},destroy(e){Vg(e)}};function cD(e,t,n){const r=e.segments,a=e.points,i=t.points,s=[];for(const l of r){let{start:c,end:u}=l;u=Dp(c,u,a);const d=qd(n,a[c],a[u],l.loop);if(!t.segments){s.push({source:l,target:d,start:a[c],end:a[u]});continue}const f=E_(t,d);for(const p of f){const h=qd(n,i[p.start],i[p.end],p.loop),g=C_(l,a,h);for(const v of g)s.push({source:v,target:p,start:{[n]:$g(d,h,"start",Math.max)},end:{[n]:$g(d,h,"end",Math.min)}})}}return s}function qd(e,t,n,r){if(r)return;let a=t[e],i=n[e];return e==="angle"&&(a=en(a),i=en(i)),{property:e,start:a,end:i}}function uD(e,t){const{x:n=null,y:r=null}=e||{},a=t.points,i=[];return t.segments.forEach(({start:s,end:l})=>{l=Dp(s,l,a);const c=a[s],u=a[l];r!==null?(i.push({x:c.x,y:r}),i.push({x:u.x,y:r})):n!==null&&(i.push({x:n,y:c.y}),i.push({x:n,y:u.y}))}),i}function Dp(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function $g(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function U_(e,t){let n=[],r=!1;return Ne(e)?(r=!0,n=e):n=uD(e,t),n.length?new Wr({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Fg(e){return e&&e.fill!==!1}function dD(e,t,n){let a=e[t].fill;const i=[t];let s;if(!n)return a;for(;a!==!1&&i.indexOf(a)===-1;){if(!rt(a))return a;if(s=e[a],!s)return!1;if(s.visible)return a;i.push(a),a=s.fill}return!1}function fD(e,t,n){const r=gD(e);if(he(r))return isNaN(r.value)?!1:r;let a=parseFloat(r);return rt(a)&&Math.floor(a)===a?pD(r[0],t,a,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function pD(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function hD(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:he(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function mD(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:he(e)?r=e.value:r=t.getBaseValue(),r}function gD(e){const t=e.options,n=t.fill;let r=le(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function vD(e){const{scale:t,index:n,line:r}=e,a=[],i=r.segments,s=r.points,l=_D(t,n);l.push(U_({x:null,y:t.bottom},r));for(let c=0;c<i.length;c++){const u=i[c];for(let d=u.start;d<=u.end;d++)yD(a,s[d],l)}return new Wr({points:a,options:{}})}function _D(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let a=0;a<r.length;a++){const i=r[a];if(i.index===t)break;i.hidden||n.unshift(i.dataset)}return n}function yD(e,t,n){const r=[];for(let a=0;a<n.length;a++){const i=n[a],{first:s,last:l,point:c}=bD(i,t,"x");if(!(!c||s&&l)){if(s)r.unshift(c);else if(e.push(c),!l)break}}e.push(...r)}function bD(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const a=r[n],i=e.segments,s=e.points;let l=!1,c=!1;for(let u=0;u<i.length;u++){const d=i[u],f=s[d.start][n],p=s[d.end][n];if(fr(a,f,p)){l=a===f,c=a===p;break}}return{first:l,last:c,point:r}}class Y_{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:a,y:i,radius:s}=this;return n=n||{start:0,end:We},t.arc(a,i,s,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:a}=this,i=t.angle;return{x:n+Math.cos(i)*a,y:r+Math.sin(i)*a,angle:i}}}function kD(e){const{chart:t,fill:n,line:r}=e;if(rt(n))return wD(t,n);if(n==="stack")return vD(e);if(n==="shape")return!0;const a=SD(e);return a instanceof Y_?a:U_(a,r)}function wD(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function SD(e){return(e.scale||{}).getPointPositionForValue?CD(e):xD(e)}function xD(e){const{scale:t={},fill:n}=e,r=hD(n,t);if(rt(r)){const a=t.isHorizontal();return{x:a?r:null,y:a?null:r}}return null}function CD(e){const{scale:t,fill:n}=e,r=t.options,a=t.getLabels().length,i=r.reverse?t.max:t.min,s=mD(n,t,i),l=[];if(r.grid.circular){const c=t.getPointPositionForValue(0,i);return new Y_({x:c.x,y:c.y,radius:t.getDistanceFromCenterForValue(s)})}for(let c=0;c<a;++c)l.push(t.getPointPositionForValue(c,s));return l}function Xu(e,t,n){const r=kD(t),{line:a,scale:i,axis:s}=t,l=a.options,c=l.fill,u=l.backgroundColor,{above:d=u,below:f=u}=c||{};r&&a.points.length&&(Mo(e,n),ED(e,{line:a,target:r,above:d,below:f,area:n,scale:i,axis:s}),No(e))}function ED(e,t){const{line:n,target:r,above:a,below:i,area:s,scale:l}=t,c=n._loop?"angle":t.axis;e.save(),c==="x"&&i!==a&&(zg(e,r,s.top),jg(e,{line:n,target:r,color:a,scale:l,property:c}),e.restore(),e.save(),zg(e,r,s.bottom)),jg(e,{line:n,target:r,color:i,scale:l,property:c}),e.restore()}function zg(e,t,n){const{segments:r,points:a}=t;let i=!0,s=!1;e.beginPath();for(const l of r){const{start:c,end:u}=l,d=a[c],f=a[Dp(c,u,a)];i?(e.moveTo(d.x,d.y),i=!1):(e.lineTo(d.x,n),e.lineTo(d.x,d.y)),s=!!t.pathSegment(e,l,{move:s}),s?e.closePath():e.lineTo(f.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function jg(e,t){const{line:n,target:r,property:a,color:i,scale:s}=t,l=cD(n,r,a);for(const{source:c,target:u,start:d,end:f}of l){const{style:{backgroundColor:p=i}={}}=c,h=r!==!0;e.save(),e.fillStyle=p,TD(e,s,h&&qd(a,d,f)),e.beginPath();const g=!!n.pathSegment(e,c);let v;if(h){g?e.closePath():Hg(e,r,f,a);const b=!!r.pathSegment(e,u,{move:g,reverse:!0});v=g&&b,v||Hg(e,r,d,a)}e.closePath(),e.fill(v?"evenodd":"nonzero"),e.restore()}}function TD(e,t,n){const{top:r,bottom:a}=t.chart.chartArea,{property:i,start:s,end:l}=n||{};i==="x"&&(e.beginPath(),e.rect(s,r,l-s,a-r),e.clip())}function Hg(e,t,n,r){const a=t.interpolate(n,r);a&&e.lineTo(a.x,a.y)}var OD={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,a=[];let i,s,l,c;for(s=0;s<r;++s)i=e.getDatasetMeta(s),l=i.dataset,c=null,l&&l.options&&l instanceof Wr&&(c={visible:e.isDatasetVisible(s),index:s,fill:fD(l,s,r),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:l}),i.$filler=c,a.push(c);for(s=0;s<r;++s)c=a[s],!(!c||c.fill===!1)&&(c.fill=dD(a,s,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",a=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let s=a.length-1;s>=0;--s){const l=a[s].$filler;l&&(l.line.updateControlPoints(i,l.axis),r&&l.fill&&Xu(e.ctx,l,i))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let a=r.length-1;a>=0;--a){const i=r[a].$filler;Fg(i)&&Xu(e.ctx,i,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!Fg(r)||n.drawTime!=="beforeDatasetDraw"||Xu(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Wg=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},MD=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Ug extends Vt{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Ie(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,a)=>t.sort(r,a,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,a=it(r.font),i=a.size,s=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=Wg(r,i);let u,d;n.font=a.string,this.isHorizontal()?(u=this.maxWidth,d=this._fitRows(s,i,l,c)+10):(d=this.maxHeight,u=this._fitCols(s,a,l,c)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,a){const{ctx:i,maxWidth:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],u=this.lineWidths=[0],d=a+l;let f=t;i.textAlign="left",i.textBaseline="middle";let p=-1,h=-d;return this.legendItems.forEach((g,v)=>{const b=r+n/2+i.measureText(g.text).width;(v===0||u[u.length-1]+b+2*l>s)&&(f+=d,u[u.length-(v>0?0:1)]=0,h+=d,p++),c[v]={left:0,top:h,row:p,width:b,height:a},u[u.length-1]+=b+l}),f}_fitCols(t,n,r,a){const{ctx:i,maxHeight:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],u=this.columnSizes=[],d=s-t;let f=l,p=0,h=0,g=0,v=0;return this.legendItems.forEach((b,m)=>{const{itemWidth:_,itemHeight:k}=ND(r,n,i,b,a);m>0&&h+k+2*l>d&&(f+=p+l,u.push({width:p,height:h}),g+=p+l,v++,p=h=0),c[m]={left:g,top:h,col:v,width:_,height:k},p=Math.max(p,_),h+=k+l}),f+=p,u.push({width:p,height:h}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:a},rtl:i}}=this,s=_i(i,this.left,this.width);if(this.isHorizontal()){let l=0,c=Ot(r,this.left+a,this.right-this.lineWidths[l]);for(const u of n)l!==u.row&&(l=u.row,c=Ot(r,this.left+a,this.right-this.lineWidths[l])),u.top+=this.top+t+a,u.left=s.leftForLtr(s.x(c),u.width),c+=u.width+a}else{let l=0,c=Ot(r,this.top+t+a,this.bottom-this.columnSizes[l].height);for(const u of n)u.col!==l&&(l=u.col,c=Ot(r,this.top+t+a,this.bottom-this.columnSizes[l].height)),u.top=c,u.left+=this.left+a,u.left=s.leftForLtr(s.x(u.left),u.width),c+=u.height+a}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Mo(t,this),this._draw(),No(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:a}=this,{align:i,labels:s}=t,l=at.color,c=_i(t.rtl,this.left,this.width),u=it(s.font),{padding:d}=s,f=u.size,p=f/2;let h;this.drawTitle(),a.textAlign=c.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=u.string;const{boxWidth:g,boxHeight:v,itemHeight:b}=Wg(s,f),m=function(S,C,E){if(isNaN(g)||g<=0||isNaN(v)||v<0)return;a.save();const O=le(E.lineWidth,1);if(a.fillStyle=le(E.fillStyle,l),a.lineCap=le(E.lineCap,"butt"),a.lineDashOffset=le(E.lineDashOffset,0),a.lineJoin=le(E.lineJoin,"miter"),a.lineWidth=O,a.strokeStyle=le(E.strokeStyle,l),a.setLineDash(le(E.lineDash,[])),s.usePointStyle){const L={radius:v*Math.SQRT2/2,pointStyle:E.pointStyle,rotation:E.rotation,borderWidth:O},D=c.xPlus(S,g/2),N=C+p;p_(a,L,D,N,s.pointStyleWidth&&g)}else{const L=C+Math.max((f-v)/2,0),D=c.leftForLtr(S,g),N=Xr(E.borderRadius);a.beginPath(),Object.values(N).some(R=>R!==0)?Ii(a,{x:D,y:L,w:g,h:v,radius:N}):a.rect(D,L,g,v),a.fill(),O!==0&&a.stroke()}a.restore()},_=function(S,C,E){Ha(a,E.text,S,C+b/2,u,{strikethrough:E.hidden,textAlign:c.textAlign(E.textAlign)})},k=this.isHorizontal(),y=this._computeTitleHeight();k?h={x:Ot(i,this.left+d,this.right-r[0]),y:this.top+d+y,line:0}:h={x:this.left+d,y:Ot(i,this.top+y+d,this.bottom-n[0].height),line:0},w_(this.ctx,t.textDirection);const w=b+d;this.legendItems.forEach((S,C)=>{a.strokeStyle=S.fontColor,a.fillStyle=S.fontColor;const E=a.measureText(S.text).width,O=c.textAlign(S.textAlign||(S.textAlign=s.textAlign)),L=g+p+E;let D=h.x,N=h.y;c.setWidth(this.width),k?C>0&&D+L+d>this.right&&(N=h.y+=w,h.line++,D=h.x=Ot(i,this.left+d,this.right-r[h.line])):C>0&&N+w>this.bottom&&(D=h.x=D+n[h.line].width+d,h.line++,N=h.y=Ot(i,this.top+y+d,this.bottom-n[h.line].height));const R=c.x(D);if(m(R,N,S),D=ZT(O,D+g+p,k?D+L:this.right,t.rtl),_(c.x(D),N,S),k)h.x+=L+d;else if(typeof S.text!="string"){const ne=u.lineHeight;h.y+=q_(S,ne)}else h.y+=w}),S_(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=it(n.font),a=pt(n.padding);if(!n.display)return;const i=_i(t.rtl,this.left,this.width),s=this.ctx,l=n.position,c=r.size/2,u=a.top+c;let d,f=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),d=this.top+u,f=Ot(t.align,f,this.right-p);else{const g=this.columnSizes.reduce((v,b)=>Math.max(v,b.height),0);d=u+Ot(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const h=Ot(l,f,f+p);s.textAlign=i.textAlign(wp(l)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,Ha(s,n.text,h,d,r)}_computeTitleHeight(){const t=this.options.title,n=it(t.font),r=pt(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,a,i;if(fr(t,this.left,this.right)&&fr(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;r<i.length;++r)if(a=i[r],fr(t,a.left,a.left+a.width)&&fr(n,a.top,a.top+a.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!AD(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const a=this._hoveredItem,i=MD(a,r);a&&!i&&Ie(n.onLeave,[t,a,this],this),this._hoveredItem=r,r&&!i&&Ie(n.onHover,[t,r,this],this)}else r&&Ie(n.onClick,[t,r,this],this)}}function ND(e,t,n,r,a){const i=DD(r,e,t,n),s=PD(a,r,t.lineHeight);return{itemWidth:i,itemHeight:s}}function DD(e,t,n,r){let a=e.text;return a&&typeof a!="string"&&(a=a.reduce((i,s)=>i.length>s.length?i:s)),t+n.size/2+r.measureText(a).width}function PD(e,t,n){let r=e;return typeof t.text!="string"&&(r=q_(t,n)),r}function q_(e,t){const n=e.text?e.text.length+.5:0;return t*n}function AD(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var ID={id:"legend",_element:Ug,start(e,t,n){const r=e.legend=new Ug({ctx:e.ctx,options:n,chart:e});Mt.configure(e,r,n),Mt.addBox(e,r)},stop(e){Mt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Mt.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,a=n.chart;a.isDatasetVisible(r)?(a.hide(r),t.hidden=!0):(a.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:a,color:i,useBorderRadius:s,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(c=>{const u=c.controller.getStyle(n?0:void 0),d=pt(u.borderWidth);return{text:t[c.index].label,fillStyle:u.backgroundColor,fontColor:i,hidden:!c.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:a||u.textAlign,borderRadius:s&&(l||u.borderRadius),datasetIndex:c.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Pp extends Vt{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const a=Ne(r.text)?r.text.length:1;this._padding=pt(r.padding);const i=a*it(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:a,right:i,options:s}=this,l=s.align;let c=0,u,d,f;return this.isHorizontal()?(d=Ot(l,r,i),f=n+t,u=i-r):(s.position==="left"?(d=r+t,f=Ot(l,a,n),c=Ee*-.5):(d=i-t,f=Ot(l,n,a),c=Ee*.5),u=a-n),{titleX:d,titleY:f,maxWidth:u,rotation:c}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=it(n.font),i=r.lineHeight/2+this._padding.top,{titleX:s,titleY:l,maxWidth:c,rotation:u}=this._drawArgs(i);Ha(t,n.text,0,0,r,{color:n.color,maxWidth:c,rotation:u,textAlign:wp(n.align),textBaseline:"middle",translation:[s,l]})}}function LD(e,t){const n=new Pp({ctx:e.ctx,options:t,chart:e});Mt.configure(e,n,t),Mt.addBox(e,n),e.titleBlock=n}var RD={id:"title",_element:Pp,start(e,t,n){LD(e,n)},stop(e){const t=e.titleBlock;Mt.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Mt.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const _l=new WeakMap;var BD={id:"subtitle",start(e,t,n){const r=new Pp({ctx:e.ctx,options:n,chart:e});Mt.configure(e,r,n),Mt.addBox(e,r),_l.set(e,r)},stop(e){Mt.removeBox(e,_l.get(e)),_l.delete(e)},beforeUpdate(e,t,n){const r=_l.get(e);Mt.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const gs={average(e){if(!e.length)return!1;let t,n,r=0,a=0,i=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r+=l.x,a+=l.y,++i}}return{x:r/i,y:a/i}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,a=Number.POSITIVE_INFINITY,i,s,l;for(i=0,s=e.length;i<s;++i){const c=e[i].element;if(c&&c.hasValue()){const u=c.getCenterPoint(),d=Ai(t,u);d<a&&(a=d,l=c)}}if(l){const c=l.tooltipPosition();n=c.x,r=c.y}return{x:n,y:r}}};function Vn(e,t){return t&&(Ne(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function or(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
830
+ `)>-1?e.split(`
831
+ `):e}function VD(e,t){const{element:n,datasetIndex:r,index:a}=t,i=e.getDatasetMeta(r).controller,{label:s,value:l}=i.getLabelAndValue(a);return{chart:e,label:s,parsed:i.getParsed(a),raw:e.data.datasets[r].data[a],formattedValue:l,dataset:i.getDataset(),dataIndex:a,datasetIndex:r,element:n}}function Yg(e,t){const n=e.chart.ctx,{body:r,footer:a,title:i}=e,{boxWidth:s,boxHeight:l}=t,c=it(t.bodyFont),u=it(t.titleFont),d=it(t.footerFont),f=i.length,p=a.length,h=r.length,g=pt(t.padding);let v=g.height,b=0,m=r.reduce((y,w)=>y+w.before.length+w.lines.length+w.after.length,0);if(m+=e.beforeBody.length+e.afterBody.length,f&&(v+=f*u.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),m){const y=t.displayColors?Math.max(l,c.lineHeight):c.lineHeight;v+=h*y+(m-h)*c.lineHeight+(m-1)*t.bodySpacing}p&&(v+=t.footerMarginTop+p*d.lineHeight+(p-1)*t.footerSpacing);let _=0;const k=function(y){b=Math.max(b,n.measureText(y).width+_)};return n.save(),n.font=u.string,Le(e.title,k),n.font=c.string,Le(e.beforeBody.concat(e.afterBody),k),_=t.displayColors?s+2+t.boxPadding:0,Le(r,y=>{Le(y.before,k),Le(y.lines,k),Le(y.after,k)}),_=0,n.font=d.string,Le(e.footer,k),n.restore(),b+=g.width,{width:b,height:v}}function $D(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function FD(e,t,n,r){const{x:a,width:i}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&a+i+s>t.width||e==="right"&&a-i-s<0)return!0}function zD(e,t,n,r){const{x:a,width:i}=n,{width:s,chartArea:{left:l,right:c}}=e;let u="center";return r==="center"?u=a<=(l+c)/2?"left":"right":a<=i/2?u="left":a>=s-i/2&&(u="right"),FD(u,e,t,n)&&(u="center"),u}function qg(e,t,n){const r=n.yAlign||t.yAlign||$D(e,n);return{xAlign:n.xAlign||t.xAlign||zD(e,t,n,r),yAlign:r}}function jD(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function HD(e,t,n){let{y:r,height:a}=e;return t==="top"?r+=n:t==="bottom"?r-=a+n:r-=a/2,r}function Gg(e,t,n,r){const{caretSize:a,caretPadding:i,cornerRadius:s}=e,{xAlign:l,yAlign:c}=n,u=a+i,{topLeft:d,topRight:f,bottomLeft:p,bottomRight:h}=Xr(s);let g=jD(t,l);const v=HD(t,c,u);return c==="center"?l==="left"?g+=u:l==="right"&&(g-=u):l==="left"?g-=Math.max(d,p)+a:l==="right"&&(g+=Math.max(f,h)+a),{x:xt(g,0,r.width-t.width),y:xt(v,0,r.height-t.height)}}function yl(e,t,n){const r=pt(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Xg(e){return Vn([],or(e))}function WD(e,t,n){return fa(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Kg(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const G_={beforeTitle:rr,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:rr,beforeBody:rr,beforeLabel:rr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return ye(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:rr,afterBody:rr,beforeFooter:rr,footer:rr,afterFooter:rr};function Ft(e,t,n,r){const a=e[t].call(n,r);return typeof a>"u"?G_[t].call(n,r):a}class Gd extends Vt{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),a=r.enabled&&n.options.animation&&r.animations,i=new Mp(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=WD(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,a=Ft(r,"beforeTitle",this,t),i=Ft(r,"title",this,t),s=Ft(r,"afterTitle",this,t);let l=[];return l=Vn(l,or(a)),l=Vn(l,or(i)),l=Vn(l,or(s)),l}getBeforeBody(t,n){return Xg(Ft(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,a=[];return Le(t,i=>{const s={before:[],lines:[],after:[]},l=Kg(r,i);Vn(s.before,or(Ft(l,"beforeLabel",this,i))),Vn(s.lines,Ft(l,"label",this,i)),Vn(s.after,or(Ft(l,"afterLabel",this,i))),a.push(s)}),a}getAfterBody(t,n){return Xg(Ft(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,a=Ft(r,"beforeFooter",this,t),i=Ft(r,"footer",this,t),s=Ft(r,"afterFooter",this,t);let l=[];return l=Vn(l,or(a)),l=Vn(l,or(i)),l=Vn(l,or(s)),l}_createItems(t){const n=this._active,r=this.chart.data,a=[],i=[],s=[];let l=[],c,u;for(c=0,u=n.length;c<u;++c)l.push(VD(this.chart,n[c]));return t.filter&&(l=l.filter((d,f,p)=>t.filter(d,f,p,r))),t.itemSort&&(l=l.sort((d,f)=>t.itemSort(d,f,r))),Le(l,d=>{const f=Kg(t.callbacks,d);a.push(Ft(f,"labelColor",this,d)),i.push(Ft(f,"labelPointStyle",this,d)),s.push(Ft(f,"labelTextColor",this,d))}),this.labelColors=a,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=l,l}update(t,n){const r=this.options.setContext(this.getContext()),a=this._active;let i,s=[];if(!a.length)this.opacity!==0&&(i={opacity:0});else{const l=gs[r.position].call(this,a,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const c=this._size=Yg(this,r),u=Object.assign({},l,c),d=qg(this.chart,r,u),f=Gg(r,u,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,a){const i=this.getCaretPosition(t,r,a);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:a,yAlign:i}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:f}=Xr(l),{x:p,y:h}=t,{width:g,height:v}=n;let b,m,_,k,y,w;return i==="center"?(y=h+v/2,a==="left"?(b=p,m=b-s,k=y+s,w=y-s):(b=p+g,m=b+s,k=y-s,w=y+s),_=b):(a==="left"?m=p+Math.max(c,d)+s:a==="right"?m=p+g-Math.max(u,f)-s:m=this.caretX,i==="top"?(k=h,y=k-s,b=m-s,_=m+s):(k=h+v,y=k+s,b=m+s,_=m-s),w=k),{x1:b,x2:m,x3:_,y1:k,y2:y,y3:w}}drawTitle(t,n,r){const a=this.title,i=a.length;let s,l,c;if(i){const u=_i(r.rtl,this.x,this.width);for(t.x=yl(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",s=it(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,c=0;c<i;++c)n.fillText(a[c],u.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+l,c+1===i&&(t.y+=r.titleMarginBottom-l)}}_drawColorBox(t,n,r,a,i){const s=this.labelColors[r],l=this.labelPointStyles[r],{boxHeight:c,boxWidth:u}=i,d=it(i.bodyFont),f=yl(this,"left",i),p=a.x(f),h=c<d.lineHeight?(d.lineHeight-c)/2:0,g=n.y+h;if(i.usePointStyle){const v={radius:Math.min(u,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},b=a.leftForLtr(p,u)+u/2,m=g+c/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,zd(t,v,b,m),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,zd(t,v,b,m)}else{t.lineWidth=he(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const v=a.leftForLtr(p,u),b=a.leftForLtr(a.xPlus(p,1),u-2),m=Xr(s.borderRadius);Object.values(m).some(_=>_!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Ii(t,{x:v,y:g,w:u,h:c,radius:m}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),Ii(t,{x:b,y:g+1,w:u-2,h:c-2,radius:m}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(v,g,u,c),t.strokeRect(v,g,u,c),t.fillStyle=s.backgroundColor,t.fillRect(b,g+1,u-2,c-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:a}=this,{bodySpacing:i,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:u,boxPadding:d}=r,f=it(r.bodyFont);let p=f.lineHeight,h=0;const g=_i(r.rtl,this.x,this.width),v=function(E){n.fillText(E,g.x(t.x+h),t.y+p/2),t.y+=p+i},b=g.textAlign(s);let m,_,k,y,w,S,C;for(n.textAlign=s,n.textBaseline="middle",n.font=f.string,t.x=yl(this,b,r),n.fillStyle=r.bodyColor,Le(this.beforeBody,v),h=l&&b!=="right"?s==="center"?u/2+d:u+2+d:0,y=0,S=a.length;y<S;++y){for(m=a[y],_=this.labelTextColors[y],n.fillStyle=_,Le(m.before,v),k=m.lines,l&&k.length&&(this._drawColorBox(n,t,y,g,r),p=Math.max(f.lineHeight,c)),w=0,C=k.length;w<C;++w)v(k[w]),p=f.lineHeight;Le(m.after,v)}h=0,p=f.lineHeight,Le(this.afterBody,v),t.y-=i}drawFooter(t,n,r){const a=this.footer,i=a.length;let s,l;if(i){const c=_i(r.rtl,this.x,this.width);for(t.x=yl(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=c.textAlign(r.footerAlign),n.textBaseline="middle",s=it(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,l=0;l<i;++l)n.fillText(a[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,n,r,a){const{xAlign:i,yAlign:s}=this,{x:l,y:c}=t,{width:u,height:d}=r,{topLeft:f,topRight:p,bottomLeft:h,bottomRight:g}=Xr(a.cornerRadius);n.fillStyle=a.backgroundColor,n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.beginPath(),n.moveTo(l+f,c),s==="top"&&this.drawCaret(t,n,r,a),n.lineTo(l+u-p,c),n.quadraticCurveTo(l+u,c,l+u,c+p),s==="center"&&i==="right"&&this.drawCaret(t,n,r,a),n.lineTo(l+u,c+d-g),n.quadraticCurveTo(l+u,c+d,l+u-g,c+d),s==="bottom"&&this.drawCaret(t,n,r,a),n.lineTo(l+h,c+d),n.quadraticCurveTo(l,c+d,l,c+d-h),s==="center"&&i==="left"&&this.drawCaret(t,n,r,a),n.lineTo(l,c+f),n.quadraticCurveTo(l,c,l+f,c),n.closePath(),n.fill(),a.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,a=r&&r.x,i=r&&r.y;if(a||i){const s=gs[t.position].call(this,this._active,this._eventPosition);if(!s)return;const l=this._size=Yg(this,t),c=Object.assign({},s,this._size),u=qg(n,t,c),d=Gg(t,c,u,n);(a._to!==d.x||i._to!==d.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const a={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=pt(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,a,n),w_(t,n.textDirection),i.y+=s.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),S_(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,a=t.map(({datasetIndex:l,index:c})=>{const u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[c],index:c}}),i=!rc(r,a),s=this._positionChanged(a,n);(i||s)&&(this._active=a,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,i=this._active||[],s=this._getActiveElements(t,i,n,r),l=this._positionChanged(s,t),c=n||!rc(s,i)||l;return c&&(this._active=s,(a.enabled||a.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),c}_getActiveElements(t,n,r,a){const i=this.options;if(t.type==="mouseout")return[];if(!a)return n;const s=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:a,options:i}=this,s=gs[i.position].call(this,t,n);return s!==!1&&(r!==s.x||a!==s.y)}}z(Gd,"positioners",gs);var UD={id:"tooltip",_element:Gd,positioners:gs,afterInit(e,t,n){n&&(e.tooltip=new Gd({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:G_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},YD=Object.freeze({__proto__:null,Colors:aD,Decimation:lD,Filler:OD,Legend:ID,SubTitle:BD,Title:RD,Tooltip:UD});const qD=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function GD(e,t,n,r){const a=e.indexOf(t);if(a===-1)return qD(e,t,n,r);const i=e.lastIndexOf(t);return a!==i?n:a}const XD=(e,t)=>e===null?null:xt(Math.round(e),0,t);function Jg(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Xd extends Ga{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:a,label:i}of n)r[a]===i&&r.splice(a,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(ye(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:GD(r,t,le(n,t),this._addedLabels),XD(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:a}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(a=this.getLabels().length-1)),this.min=r,this.max=a}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,a=[];let i=this.getLabels();i=t===0&&n===i.length-1?i:i.slice(t,n+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=n;s++)a.push({value:s});return a}getLabelForValue(t){return Jg.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}z(Xd,"id","category"),z(Xd,"defaults",{ticks:{callback:Jg}});function KD(e,t){const n=[],{bounds:a,step:i,min:s,max:l,precision:c,count:u,maxTicks:d,maxDigits:f,includeBounds:p}=e,h=i||1,g=d-1,{min:v,max:b}=t,m=!ye(s),_=!ye(l),k=!ye(u),y=(b-v)/(f+1);let w=U1((b-v)/g/h)*h,S,C,E,O;if(w<1e-14&&!m&&!_)return[{value:v},{value:b}];O=Math.ceil(b/w)-Math.floor(v/w),O>g&&(w=U1(O*w/g/h)*h),ye(c)||(S=Math.pow(10,c),w=Math.ceil(w*S)/S),a==="ticks"?(C=Math.floor(v/w)*w,E=Math.ceil(b/w)*w):(C=v,E=b),m&&_&&i&&UT((l-s)/i,w/1e3)?(O=Math.round(Math.min((l-s)/w,d)),w=(l-s)/O,C=s,E=l):k?(C=m?s:C,E=_?l:E,O=u-1,w=(E-C)/O):(O=(E-C)/w,Os(O,Math.round(O),w/1e3)?O=Math.round(O):O=Math.ceil(O));const L=Math.max(Y1(w),Y1(C));S=Math.pow(10,ye(c)?L:c),C=Math.round(C*S)/S,E=Math.round(E*S)/S;let D=0;for(m&&(p&&C!==s?(n.push({value:s}),C<s&&D++,Os(Math.round((C+D*w)*S)/S,s,Zg(s,y,e))&&D++):C<s&&D++);D<O;++D){const N=Math.round((C+D*w)*S)/S;if(_&&N>l)break;n.push({value:N})}return _&&p&&E!==l?n.length&&Os(n[n.length-1].value,l,Zg(l,y,e))?n[n.length-1].value=l:n.push({value:l}):(!_||E===l)&&n.push({value:E}),n}function Zg(e,t,{horizontal:n,minRotation:r}){const a=ht(r),i=(n?Math.sin(a):Math.cos(a))||.001,s=.75*t*(""+e).length;return Math.min(t/i,s)}class dc extends Ga{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return ye(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:a,max:i}=this;const s=c=>a=n?a:c,l=c=>i=r?i:c;if(t){const c=Yn(a),u=Yn(i);c<0&&u<0?l(0):c>0&&u>0&&s(0)}if(a===i){let c=i===0?1:Math.abs(i*.05);l(i+c),t||s(a-c)}this.min=a,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,a;return r?(a=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,a>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${a} ticks. Limiting to 1000.`),a=1e3)):(a=this.computeTickLimit(),n=n||11),n&&(a=Math.min(n,a)),a}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const a={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,s=KD(a,i);return t.bounds==="ticks"&&a_(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const a=(r-n)/Math.max(t.length-1,1)/2;n-=a,r+=a}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Oo(t,this.chart.options.locale,this.options.ticks.format)}}class Kd extends dc{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=rt(t)?t:0,this.max=rt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=ht(this.options.ticks.minRotation),a=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/a))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}z(Kd,"id","linear"),z(Kd,"defaults",{ticks:{callback:zc.formatters.numeric}});const ro=e=>Math.floor(Hr(e)),ya=(e,t)=>Math.pow(10,ro(e)+t);function Qg(e){return e/Math.pow(10,ro(e))===1}function e0(e,t,n){const r=Math.pow(10,n),a=Math.floor(e/r);return Math.ceil(t/r)-a}function JD(e,t){const n=t-e;let r=ro(n);for(;e0(e,t,r)>10;)r++;for(;e0(e,t,r)<10;)r--;return Math.min(r,ro(e))}function ZD(e,{min:t,max:n}){t=Zt(e.min,t);const r=[],a=ro(t);let i=JD(t,n),s=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),c=a>i?Math.pow(10,a):0,u=Math.round((t-c)*s)/s,d=Math.floor((t-c)/l/10)*l*10;let f=Math.floor((u-d)/Math.pow(10,i)),p=Zt(e.min,Math.round((c+d+f*Math.pow(10,i))*s)/s);for(;p<n;)r.push({value:p,major:Qg(p),significand:f}),f>=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,s=i>=0?1:s),p=Math.round((c+d+f*Math.pow(10,i))*s)/s;const h=Zt(e.max,p);return r.push({value:h,major:Qg(h),significand:f}),r}class Jd extends Ga{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=dc.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return rt(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=rt(t)?Math.max(0,t):null,this.max=rt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!rt(this._userMin)&&(this.min=t===ya(this.min,0)?ya(this.min,-1):ya(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,a=this.max;const i=l=>r=t?r:l,s=l=>a=n?a:l;r===a&&(r<=0?(i(1),s(10)):(i(ya(r,-1)),s(ya(a,1)))),r<=0&&i(ya(a,-1)),a<=0&&s(ya(r,1)),this.min=r,this.max=a}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=ZD(n,this);return t.bounds==="ticks"&&a_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Oo(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Hr(t),this._valueRange=Hr(this.max)-Hr(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Hr(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}z(Jd,"id","logarithmic"),z(Jd,"defaults",{ticks:{callback:zc.formatters.logarithmic,major:{enabled:!0}}});function Zd(e){const t=e.ticks;if(t.display&&e.display){const n=pt(t.backdropPadding);return le(t.font&&t.font.size,at.font.size)+n.height}return 0}function QD(e,t,n){return n=Ne(n)?n:[n],{w:lO(e,t.string,n),h:n.length*t.lineHeight}}function t0(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:e<r||e>a?{start:t-n,end:t}:{start:t,end:t+n}}function eP(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],a=[],i=e._pointLabels.length,s=e.options.pointLabels,l=s.centerPointLabels?Ee/i:0;for(let c=0;c<i;c++){const u=s.setContext(e.getPointLabelContext(c));a[c]=u.padding;const d=e.getPointPosition(c,e.drawingArea+a[c],l),f=it(u.font),p=QD(e.ctx,f,e._pointLabels[c]);r[c]=p;const h=en(e.getIndexAngle(c)+l),g=Math.round(Fc(h)),v=t0(g,d.x,p.w,0,180),b=t0(g,d.y,p.h,90,270);tP(n,t,h,v,b)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=aP(e,r,a)}function tP(e,t,n,r,a){const i=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let l=0,c=0;r.start<t.l?(l=(t.l-r.start)/i,e.l=Math.min(e.l,t.l-l)):r.end>t.r&&(l=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+l)),a.start<t.t?(c=(t.t-a.start)/s,e.t=Math.min(e.t,t.t-c)):a.end>t.b&&(c=(a.end-t.b)/s,e.b=Math.max(e.b,t.b+c))}function nP(e,t,n){const r=e.drawingArea,{extra:a,additionalAngle:i,padding:s,size:l}=n,c=e.getPointPosition(t,r+a+s,i),u=Math.round(Fc(en(c.angle+Ue))),d=oP(c.y,l.h,u),f=iP(u),p=sP(c.x,l.w,f);return{visible:!0,x:c.x,y:d,textAlign:f,left:p,top:d,right:p+l.w,bottom:d+l.h}}function rP(e,t){if(!t)return!0;const{left:n,top:r,right:a,bottom:i}=e;return!(hr({x:n,y:r},t)||hr({x:n,y:i},t)||hr({x:a,y:r},t)||hr({x:a,y:i},t))}function aP(e,t,n){const r=[],a=e._pointLabels.length,i=e.options,{centerPointLabels:s,display:l}=i.pointLabels,c={extra:Zd(i)/2,additionalAngle:s?Ee/a:0};let u;for(let d=0;d<a;d++){c.padding=n[d],c.size=t[d];const f=nP(e,d,c);r.push(f),l==="auto"&&(f.visible=rP(f,u),f.visible&&(u=f))}return r}function iP(e){return e===0||e===180?"center":e<180?"left":"right"}function sP(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function oP(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function lP(e,t,n){const{left:r,top:a,right:i,bottom:s}=n,{backdropColor:l}=t;if(!ye(l)){const c=Xr(t.borderRadius),u=pt(t.backdropPadding);e.fillStyle=l;const d=r-u.left,f=a-u.top,p=i-r+u.width,h=s-a+u.height;Object.values(c).some(g=>g!==0)?(e.beginPath(),Ii(e,{x:d,y:f,w:p,h,radius:c}),e.fill()):e.fillRect(d,f,p,h)}}function cP(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let a=t-1;a>=0;a--){const i=e._pointLabelItems[a];if(!i.visible)continue;const s=r.setContext(e.getPointLabelContext(a));lP(n,s,i);const l=it(s.font),{x:c,y:u,textAlign:d}=i;Ha(n,e._pointLabels[a],c,u+l.lineHeight/2,l,{color:s.color,textAlign:d,textBaseline:"middle"})}}function X_(e,t,n,r){const{ctx:a}=e;if(n)a.arc(e.xCenter,e.yCenter,t,0,We);else{let i=e.getPointPosition(0,t);a.moveTo(i.x,i.y);for(let s=1;s<r;s++)i=e.getPointPosition(s,t),a.lineTo(i.x,i.y)}}function uP(e,t,n,r,a){const i=e.ctx,s=t.circular,{color:l,lineWidth:c}=t;!s&&!r||!l||!c||n<0||(i.save(),i.strokeStyle=l,i.lineWidth=c,i.setLineDash(a.dash),i.lineDashOffset=a.dashOffset,i.beginPath(),X_(e,n,s,r),i.closePath(),i.stroke(),i.restore())}function dP(e,t,n){return fa(e,{label:n,index:t,type:"pointLabel"})}class vs extends dc{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=pt(Zd(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=rt(t)&&!isNaN(t)?t:0,this.max=rt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Zd(this.options))}generateTickLabels(t){dc.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const a=Ie(this.options.pointLabels.callback,[n,r],this);return a||a===0?a:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?eP(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,a){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,a))}getIndexAngle(t){const n=We/(this._pointLabels.length||1),r=this.options.startAngle||0;return en(t*n+ht(r))}getDistanceFromCenterForValue(t){if(ye(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(ye(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return dP(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const a=this.getIndexAngle(t)-Ue+r;return{x:Math.cos(a)*n+this.xCenter,y:Math.sin(a)*n+this.yCenter,angle:a}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:a,bottom:i}=this._pointLabelItems[t];return{left:n,top:r,right:a,bottom:i}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),X_(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:a,border:i}=n,s=this._pointLabels.length;let l,c,u;if(n.pointLabels.display&&cP(this,s),a.display&&this.ticks.forEach((d,f)=>{if(f!==0){c=this.getDistanceFromCenterForValue(d.value);const p=this.getContext(f),h=a.setContext(p),g=i.setContext(p);uP(this,h,c,s,g)}}),r.display){for(t.save(),l=s-1;l>=0;l--){const d=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:p}=d;!p||!f||(t.lineWidth=p,t.strokeStyle=f,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,c=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),u=this.getPointPosition(l,c),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const a=this.getIndexAngle(0);let i,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&!n.reverse)return;const u=r.setContext(this.getContext(c)),d=it(u.font);if(i=this.getDistanceFromCenterForValue(this.ticks[c].value),u.showLabelBackdrop){t.font=d.string,s=t.measureText(l.label).width,t.fillStyle=u.backdropColor;const f=pt(u.backdropPadding);t.fillRect(-s/2-f.left,-i-d.size/2-f.top,s+f.width,d.size+f.height)}Ha(t,l.label,0,-i,d,{color:u.color})}),t.restore()}drawTitle(){}}z(vs,"id","radialLinear"),z(vs,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:zc.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),z(vs,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),z(vs,"descriptors",{angleLines:{_fallback:"grid"}});const Hc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Yt=Object.keys(Hc);function fP(e,t){return e-t}function n0(e,t){if(ye(t))return null;const n=e._adapter,{parser:r,round:a,isoWeekday:i}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),rt(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(a&&(s=a==="week"&&(ra(i)||i===!0)?n.startOf(s,"isoWeek",i):n.startOf(s,a)),+s)}function r0(e,t,n,r){const a=Yt.length;for(let i=Yt.indexOf(e);i<a-1;++i){const s=Hc[Yt[i]],l=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(l*s.size))<=r)return Yt[i]}return Yt[a-1]}function pP(e,t,n,r,a){for(let i=Yt.length-1;i>=Yt.indexOf(n);i--){const s=Yt[i];if(Hc[s].common&&e._adapter.diff(a,r,s)>=t-1)return s}return Yt[n?Yt.indexOf(n):0]}function hP(e){for(let t=Yt.indexOf(e)+1,n=Yt.length;t<n;++t)if(Hc[Yt[t]].common)return Yt[t]}function a0(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:a}=kp(n,t),i=n[r]>=t?n[r]:n[a];e[i]=!0}}function mP(e,t,n,r){const a=e._adapter,i=+a.startOf(t[0].value,r),s=t[t.length-1].value;let l,c;for(l=i;l<=s;l=+a.add(l,1,r))c=n[l],c>=0&&(t[c].major=!0);return t}function i0(e,t,n){const r=[],a={},i=t.length;let s,l;for(s=0;s<i;++s)l=t[s],a[l]=s,r.push({value:l,major:!1});return i===0||!n?r:mP(e,r,a,n)}class ao extends Ga{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),a=this._adapter=new M_._date(t.adapters.date);a.init(n),Ts(r.displayFormats,a.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:n0(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:a,max:i,minDefined:s,maxDefined:l}=this.getUserBounds();function c(u){!s&&!isNaN(u.min)&&(a=Math.min(a,u.min)),!l&&!isNaN(u.max)&&(i=Math.max(i,u.max))}(!s||!l)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),a=rt(a)&&!isNaN(a)?a:+n.startOf(Date.now(),r),i=rt(i)&&!isNaN(i)?i:+n.endOf(Date.now(),r)+1,this.min=Math.min(a,i-1),this.max=Math.max(a+1,i)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,a=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const i=this.min,s=this.max,l=XT(a,i,s);return this._unit=n.unit||(r.autoSkip?r0(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):pP(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:hP(this._unit),this.initOffsets(a),t.reverse&&l.reverse(),i0(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,a,i;this.options.offset&&t.length&&(a=this.getDecimalForValue(t[0]),t.length===1?n=1-a:n=(this.getDecimalForValue(t[1])-a)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=xt(n,0,s),r=xt(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,a=this.options,i=a.time,s=i.unit||r0(i.minUnit,n,r,this._getLabelCapacity(n)),l=le(a.ticks.stepSize,1),c=s==="week"?i.isoWeekday:!1,u=ra(c)||c===!0,d={};let f=n,p,h;if(u&&(f=+t.startOf(f,"isoWeek",c)),f=+t.startOf(f,u?"day":s),t.diff(r,n,s)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+s);const g=a.ticks.source==="data"&&this.getDataTimestamps();for(p=f,h=0;p<r;p=+t.add(p,l,s),h++)a0(d,p,g);return(p===r||a.bounds==="ticks"||h===1)&&a0(d,p,g),Object.keys(d).sort((v,b)=>v-b).map(v=>+v)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const a=this.options.time.displayFormats,i=this._unit,s=n||a[i];return this._adapter.format(t,s)}_tickFormatFunction(t,n,r,a){const i=this.options,s=i.ticks.callback;if(s)return Ie(s,[t,n,r],this);const l=i.time.displayFormats,c=this._unit,u=this._majorUnit,d=c&&l[c],f=u&&l[u],p=r[n],h=u&&f&&p&&p.major;return this._adapter.format(t,a||(h?f:d))}generateTickLabels(t){let n,r,a;for(n=0,r=t.length;n<r;++n)a=t[n],a.label=this._tickFormatFunction(a.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,a=ht(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(a),s=Math.sin(a),l=this._resolveTickFontOptions(0).size;return{w:r*i+l*s,h:r*s+l*i}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,a=r[n.unit]||r.millisecond,i=this._tickFormatFunction(t,0,i0(this,[t],this._majorUnit),a),s=this._getLabelSize(i),l=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return l>0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(n=0,r=a.length;n<r;++n)t=t.concat(a[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const a=this.getLabels();for(n=0,r=a.length;n<r;++n)t.push(n0(this,a[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return o_(t.sort(fP))}}z(ao,"id","time"),z(ao,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function bl(e,t,n){let r=0,a=e.length-1,i,s,l,c;n?(t>=e[r].pos&&t<=e[a].pos&&({lo:r,hi:a}=pr(e,"pos",t)),{pos:i,time:l}=e[r],{pos:s,time:c}=e[a]):(t>=e[r].time&&t<=e[a].time&&({lo:r,hi:a}=pr(e,"time",t)),{time:i,pos:l}=e[r],{time:s,pos:c}=e[a]);const u=s-i;return u?l+(c-l)*(t-i)/u:l}class Qd extends ao{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=bl(n,this.min),this._tableRange=bl(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,a=[],i=[];let s,l,c,u,d;for(s=0,l=t.length;s<l;++s)u=t[s],u>=n&&u<=r&&a.push(u);if(a.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,l=a.length;s<l;++s)d=a[s+1],c=a[s-1],u=a[s],Math.round((d+c)/2)!==u&&i.push({time:u,pos:s/(l-1)});return i}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(bl(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return bl(this._table,r*this._tableRange+this._minPos,!0)}}z(Qd,"id","timeseries"),z(Qd,"defaults",ao.defaults);var gP=Object.freeze({__proto__:null,CategoryScale:Xd,LinearScale:Kd,LogarithmicScale:Jd,RadialLinearScale:vs,TimeScale:ao,TimeSeriesScale:Qd});const pa=[SM,ZN,YD,gP];var vP=typeof global=="object"&&global&&global.Object===Object&&global;const K_=vP;var _P=typeof self=="object"&&self&&self.Object===Object&&self,yP=K_||_P||Function("return this")();const Zn=yP;var bP=Zn.Symbol;const aa=bP;var J_=Object.prototype,kP=J_.hasOwnProperty,wP=J_.toString,ls=aa?aa.toStringTag:void 0;function SP(e){var t=kP.call(e,ls),n=e[ls];try{e[ls]=void 0;var r=!0}catch{}var a=wP.call(e);return r&&(t?e[ls]=n:delete e[ls]),a}var xP=Object.prototype,CP=xP.toString;function EP(e){return CP.call(e)}var TP="[object Null]",OP="[object Undefined]",s0=aa?aa.toStringTag:void 0;function Po(e){return e==null?e===void 0?OP:TP:s0&&s0 in Object(e)?SP(e):EP(e)}function Wa(e){return e!=null&&typeof e=="object"}var MP=Array.isArray;const Bi=MP;function Ao(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var NP="[object AsyncFunction]",DP="[object Function]",PP="[object GeneratorFunction]",AP="[object Proxy]";function Z_(e){if(!Ao(e))return!1;var t=Po(e);return t==DP||t==PP||t==NP||t==AP}var IP=Zn["__core-js_shared__"];const Ku=IP;var o0=function(){var e=/[^.]+$/.exec(Ku&&Ku.keys&&Ku.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function LP(e){return!!o0&&o0 in e}var RP=Function.prototype,BP=RP.toString;function Xa(e){if(e!=null){try{return BP.call(e)}catch{}try{return e+""}catch{}}return""}var VP=/[\\^$.*+?()[\]{}|]/g,$P=/^\[object .+?Constructor\]$/,FP=Function.prototype,zP=Object.prototype,jP=FP.toString,HP=zP.hasOwnProperty,WP=RegExp("^"+jP.call(HP).replace(VP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function UP(e){if(!Ao(e)||LP(e))return!1;var t=Z_(e)?WP:$P;return t.test(Xa(e))}function YP(e,t){return e==null?void 0:e[t]}function Ka(e,t){var n=YP(e,t);return UP(n)?n:void 0}var qP=Ka(Zn,"WeakMap");const ef=qP;var l0=Object.create,GP=function(){function e(){}return function(t){if(!Ao(t))return{};if(l0)return l0(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const XP=GP;function KP(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var JP=function(){try{var e=Ka(Object,"defineProperty");return e({},"",{}),e}catch{}}();const c0=JP;function ZP(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var QP=9007199254740991,eA=/^(?:0|[1-9]\d*)$/;function tA(e,t){var n=typeof e;return t=t??QP,!!t&&(n=="number"||n!="symbol"&&eA.test(e))&&e>-1&&e%1==0&&e<t}function Q_(e,t,n){t=="__proto__"&&c0?c0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ap(e,t){return e===t||e!==e&&t!==t}var nA=Object.prototype,rA=nA.hasOwnProperty;function ey(e,t,n){var r=e[t];(!(rA.call(e,t)&&Ap(r,n))||n===void 0&&!(t in e))&&Q_(e,t,n)}function Wc(e,t,n,r){var a=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var l=t[i],c=r?r(n[l],e[l],l,n,e):void 0;c===void 0&&(c=e[l]),a?Q_(n,l,c):ey(n,l,c)}return n}var aA=9007199254740991;function ty(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=aA}function Ip(e){return e!=null&&ty(e.length)&&!Z_(e)}var iA=Object.prototype;function Uc(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||iA;return e===n}function sA(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var oA="[object Arguments]";function u0(e){return Wa(e)&&Po(e)==oA}var ny=Object.prototype,lA=ny.hasOwnProperty,cA=ny.propertyIsEnumerable,uA=u0(function(){return arguments}())?u0:function(e){return Wa(e)&&lA.call(e,"callee")&&!cA.call(e,"callee")};const ry=uA;function dA(){return!1}var ay=typeof exports=="object"&&exports&&!exports.nodeType&&exports,d0=ay&&typeof module=="object"&&module&&!module.nodeType&&module,fA=d0&&d0.exports===ay,f0=fA?Zn.Buffer:void 0,pA=f0?f0.isBuffer:void 0,hA=pA||dA;const io=hA;var mA="[object Arguments]",gA="[object Array]",vA="[object Boolean]",_A="[object Date]",yA="[object Error]",bA="[object Function]",kA="[object Map]",wA="[object Number]",SA="[object Object]",xA="[object RegExp]",CA="[object Set]",EA="[object String]",TA="[object WeakMap]",OA="[object ArrayBuffer]",MA="[object DataView]",NA="[object Float32Array]",DA="[object Float64Array]",PA="[object Int8Array]",AA="[object Int16Array]",IA="[object Int32Array]",LA="[object Uint8Array]",RA="[object Uint8ClampedArray]",BA="[object Uint16Array]",VA="[object Uint32Array]",Xe={};Xe[NA]=Xe[DA]=Xe[PA]=Xe[AA]=Xe[IA]=Xe[LA]=Xe[RA]=Xe[BA]=Xe[VA]=!0;Xe[mA]=Xe[gA]=Xe[OA]=Xe[vA]=Xe[MA]=Xe[_A]=Xe[yA]=Xe[bA]=Xe[kA]=Xe[wA]=Xe[SA]=Xe[xA]=Xe[CA]=Xe[EA]=Xe[TA]=!1;function $A(e){return Wa(e)&&ty(e.length)&&!!Xe[Po(e)]}function Lp(e){return function(t){return e(t)}}var iy=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Is=iy&&typeof module=="object"&&module&&!module.nodeType&&module,FA=Is&&Is.exports===iy,Ju=FA&&K_.process,zA=function(){try{var e=Is&&Is.require&&Is.require("util").types;return e||Ju&&Ju.binding&&Ju.binding("util")}catch{}}();const Vi=zA;var p0=Vi&&Vi.isTypedArray,jA=p0?Lp(p0):$A;const Rp=jA;var HA=Object.prototype,WA=HA.hasOwnProperty;function sy(e,t){var n=Bi(e),r=!n&&ry(e),a=!n&&!r&&io(e),i=!n&&!r&&!a&&Rp(e),s=n||r||a||i,l=s?sA(e.length,String):[],c=l.length;for(var u in e)(t||WA.call(e,u))&&!(s&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||tA(u,c)))&&l.push(u);return l}function oy(e,t){return function(n){return e(t(n))}}var UA=oy(Object.keys,Object);const YA=UA;var qA=Object.prototype,GA=qA.hasOwnProperty;function ly(e){if(!Uc(e))return YA(e);var t=[];for(var n in Object(e))GA.call(e,n)&&n!="constructor"&&t.push(n);return t}function Bp(e){return Ip(e)?sy(e):ly(e)}function XA(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var KA=Object.prototype,JA=KA.hasOwnProperty;function ZA(e){if(!Ao(e))return XA(e);var t=Uc(e),n=[];for(var r in e)r=="constructor"&&(t||!JA.call(e,r))||n.push(r);return n}function Vp(e){return Ip(e)?sy(e,!0):ZA(e)}var QA=Ka(Object,"create");const so=QA;function eI(){this.__data__=so?so(null):{},this.size=0}function tI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var nI="__lodash_hash_undefined__",rI=Object.prototype,aI=rI.hasOwnProperty;function iI(e){var t=this.__data__;if(so){var n=t[e];return n===nI?void 0:n}return aI.call(t,e)?t[e]:void 0}var sI=Object.prototype,oI=sI.hasOwnProperty;function lI(e){var t=this.__data__;return so?t[e]!==void 0:oI.call(t,e)}var cI="__lodash_hash_undefined__";function uI(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=so&&t===void 0?cI:t,this}function Ua(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ua.prototype.clear=eI;Ua.prototype.delete=tI;Ua.prototype.get=iI;Ua.prototype.has=lI;Ua.prototype.set=uI;function dI(){this.__data__=[],this.size=0}function Yc(e,t){for(var n=e.length;n--;)if(Ap(e[n][0],t))return n;return-1}var fI=Array.prototype,pI=fI.splice;function hI(e){var t=this.__data__,n=Yc(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():pI.call(t,n,1),--this.size,!0}function mI(e){var t=this.__data__,n=Yc(t,e);return n<0?void 0:t[n][1]}function gI(e){return Yc(this.__data__,e)>-1}function vI(e,t){var n=this.__data__,r=Yc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Er(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Er.prototype.clear=dI;Er.prototype.delete=hI;Er.prototype.get=mI;Er.prototype.has=gI;Er.prototype.set=vI;var _I=Ka(Zn,"Map");const oo=_I;function yI(){this.size=0,this.__data__={hash:new Ua,map:new(oo||Er),string:new Ua}}function bI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qc(e,t){var n=e.__data__;return bI(t)?n[typeof t=="string"?"string":"hash"]:n.map}function kI(e){var t=qc(this,e).delete(e);return this.size-=t?1:0,t}function wI(e){return qc(this,e).get(e)}function SI(e){return qc(this,e).has(e)}function xI(e,t){var n=qc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Ja(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ja.prototype.clear=yI;Ja.prototype.delete=kI;Ja.prototype.get=wI;Ja.prototype.has=SI;Ja.prototype.set=xI;function cy(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var CI=oy(Object.getPrototypeOf,Object);const uy=CI;function EI(){this.__data__=new Er,this.size=0}function TI(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function OI(e){return this.__data__.get(e)}function MI(e){return this.__data__.has(e)}var NI=200;function DI(e,t){var n=this.__data__;if(n instanceof Er){var r=n.__data__;if(!oo||r.length<NI-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ja(r)}return n.set(e,t),this.size=n.size,this}function _r(e){var t=this.__data__=new Er(e);this.size=t.size}_r.prototype.clear=EI;_r.prototype.delete=TI;_r.prototype.get=OI;_r.prototype.has=MI;_r.prototype.set=DI;function PI(e,t){return e&&Wc(t,Bp(t),e)}function AI(e,t){return e&&Wc(t,Vp(t),e)}var dy=typeof exports=="object"&&exports&&!exports.nodeType&&exports,h0=dy&&typeof module=="object"&&module&&!module.nodeType&&module,II=h0&&h0.exports===dy,m0=II?Zn.Buffer:void 0,g0=m0?m0.allocUnsafe:void 0;function LI(e,t){if(t)return e.slice();var n=e.length,r=g0?g0(n):new e.constructor(n);return e.copy(r),r}function RI(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}function fy(){return[]}var BI=Object.prototype,VI=BI.propertyIsEnumerable,v0=Object.getOwnPropertySymbols,$I=v0?function(e){return e==null?[]:(e=Object(e),RI(v0(e),function(t){return VI.call(e,t)}))}:fy;const $p=$I;function FI(e,t){return Wc(e,$p(e),t)}var zI=Object.getOwnPropertySymbols,jI=zI?function(e){for(var t=[];e;)cy(t,$p(e)),e=uy(e);return t}:fy;const py=jI;function HI(e,t){return Wc(e,py(e),t)}function hy(e,t,n){var r=t(e);return Bi(e)?r:cy(r,n(e))}function tf(e){return hy(e,Bp,$p)}function WI(e){return hy(e,Vp,py)}var UI=Ka(Zn,"DataView");const nf=UI;var YI=Ka(Zn,"Promise");const rf=YI;var qI=Ka(Zn,"Set");const af=qI;var _0="[object Map]",GI="[object Object]",y0="[object Promise]",b0="[object Set]",k0="[object WeakMap]",w0="[object DataView]",XI=Xa(nf),KI=Xa(oo),JI=Xa(rf),ZI=Xa(af),QI=Xa(ef),xa=Po;(nf&&xa(new nf(new ArrayBuffer(1)))!=w0||oo&&xa(new oo)!=_0||rf&&xa(rf.resolve())!=y0||af&&xa(new af)!=b0||ef&&xa(new ef)!=k0)&&(xa=function(e){var t=Po(e),n=t==GI?e.constructor:void 0,r=n?Xa(n):"";if(r)switch(r){case XI:return w0;case KI:return _0;case JI:return y0;case ZI:return b0;case QI:return k0}return t});const $i=xa;var eL=Object.prototype,tL=eL.hasOwnProperty;function nL(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&tL.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var rL=Zn.Uint8Array;const fc=rL;function Fp(e){var t=new e.constructor(e.byteLength);return new fc(t).set(new fc(e)),t}function aL(e,t){var n=t?Fp(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var iL=/\w*$/;function sL(e){var t=new e.constructor(e.source,iL.exec(e));return t.lastIndex=e.lastIndex,t}var S0=aa?aa.prototype:void 0,x0=S0?S0.valueOf:void 0;function oL(e){return x0?Object(x0.call(e)):{}}function lL(e,t){var n=t?Fp(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var cL="[object Boolean]",uL="[object Date]",dL="[object Map]",fL="[object Number]",pL="[object RegExp]",hL="[object Set]",mL="[object String]",gL="[object Symbol]",vL="[object ArrayBuffer]",_L="[object DataView]",yL="[object Float32Array]",bL="[object Float64Array]",kL="[object Int8Array]",wL="[object Int16Array]",SL="[object Int32Array]",xL="[object Uint8Array]",CL="[object Uint8ClampedArray]",EL="[object Uint16Array]",TL="[object Uint32Array]";function OL(e,t,n){var r=e.constructor;switch(t){case vL:return Fp(e);case cL:case uL:return new r(+e);case _L:return aL(e,n);case yL:case bL:case kL:case wL:case SL:case xL:case CL:case EL:case TL:return lL(e,n);case dL:return new r;case fL:case mL:return new r(e);case pL:return sL(e);case hL:return new r;case gL:return oL(e)}}function ML(e){return typeof e.constructor=="function"&&!Uc(e)?XP(uy(e)):{}}var NL="[object Map]";function DL(e){return Wa(e)&&$i(e)==NL}var C0=Vi&&Vi.isMap,PL=C0?Lp(C0):DL;const AL=PL;var IL="[object Set]";function LL(e){return Wa(e)&&$i(e)==IL}var E0=Vi&&Vi.isSet,RL=E0?Lp(E0):LL;const BL=RL;var VL=1,$L=2,FL=4,my="[object Arguments]",zL="[object Array]",jL="[object Boolean]",HL="[object Date]",WL="[object Error]",gy="[object Function]",UL="[object GeneratorFunction]",YL="[object Map]",qL="[object Number]",vy="[object Object]",GL="[object RegExp]",XL="[object Set]",KL="[object String]",JL="[object Symbol]",ZL="[object WeakMap]",QL="[object ArrayBuffer]",eR="[object DataView]",tR="[object Float32Array]",nR="[object Float64Array]",rR="[object Int8Array]",aR="[object Int16Array]",iR="[object Int32Array]",sR="[object Uint8Array]",oR="[object Uint8ClampedArray]",lR="[object Uint16Array]",cR="[object Uint32Array]",He={};He[my]=He[zL]=He[QL]=He[eR]=He[jL]=He[HL]=He[tR]=He[nR]=He[rR]=He[aR]=He[iR]=He[YL]=He[qL]=He[vy]=He[GL]=He[XL]=He[KL]=He[JL]=He[sR]=He[oR]=He[lR]=He[cR]=!0;He[WL]=He[gy]=He[ZL]=!1;function zl(e,t,n,r,a,i){var s,l=t&VL,c=t&$L,u=t&FL;if(n&&(s=a?n(e,r,a,i):n(e)),s!==void 0)return s;if(!Ao(e))return e;var d=Bi(e);if(d){if(s=nL(e),!l)return KP(e,s)}else{var f=$i(e),p=f==gy||f==UL;if(io(e))return LI(e,l);if(f==vy||f==my||p&&!a){if(s=c||p?{}:ML(e),!l)return c?HI(e,AI(s,e)):FI(e,PI(s,e))}else{if(!He[f])return a?e:{};s=OL(e,f,l)}}i||(i=new _r);var h=i.get(e);if(h)return h;i.set(e,s),BL(e)?e.forEach(function(b){s.add(zl(b,t,n,b,e,i))}):AL(e)&&e.forEach(function(b,m){s.set(m,zl(b,t,n,m,e,i))});var g=u?c?WI:tf:c?Vp:Bp,v=d?void 0:g(e);return ZP(v||e,function(b,m){v&&(m=b,b=e[m]),ey(s,m,zl(b,t,n,m,e,i))}),s}var uR=1,dR=4;function cs(e){return zl(e,uR|dR)}var fR="__lodash_hash_undefined__";function pR(e){return this.__data__.set(e,fR),this}function hR(e){return this.__data__.has(e)}function pc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ja;++t<n;)this.add(e[t])}pc.prototype.add=pc.prototype.push=pR;pc.prototype.has=hR;function mR(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function gR(e,t){return e.has(t)}var vR=1,_R=2;function _y(e,t,n,r,a,i){var s=n&vR,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,h=n&_R?new pc:void 0;for(i.set(e,t),i.set(t,e);++f<l;){var g=e[f],v=t[f];if(r)var b=s?r(v,g,f,t,e,i):r(g,v,f,e,t,i);if(b!==void 0){if(b)continue;p=!1;break}if(h){if(!mR(t,function(m,_){if(!gR(h,_)&&(g===m||a(g,m,n,r,i)))return h.push(_)})){p=!1;break}}else if(!(g===v||a(g,v,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}function yR(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function bR(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var kR=1,wR=2,SR="[object Boolean]",xR="[object Date]",CR="[object Error]",ER="[object Map]",TR="[object Number]",OR="[object RegExp]",MR="[object Set]",NR="[object String]",DR="[object Symbol]",PR="[object ArrayBuffer]",AR="[object DataView]",T0=aa?aa.prototype:void 0,Zu=T0?T0.valueOf:void 0;function IR(e,t,n,r,a,i,s){switch(n){case AR:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case PR:return!(e.byteLength!=t.byteLength||!i(new fc(e),new fc(t)));case SR:case xR:case TR:return Ap(+e,+t);case CR:return e.name==t.name&&e.message==t.message;case OR:case NR:return e==t+"";case ER:var l=yR;case MR:var c=r&kR;if(l||(l=bR),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;r|=wR,s.set(e,t);var d=_y(l(e),l(t),r,a,i,s);return s.delete(e),d;case DR:if(Zu)return Zu.call(e)==Zu.call(t)}return!1}var LR=1,RR=Object.prototype,BR=RR.hasOwnProperty;function VR(e,t,n,r,a,i){var s=n&LR,l=tf(e),c=l.length,u=tf(t),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var p=l[f];if(!(s?p in t:BR.call(t,p)))return!1}var h=i.get(e),g=i.get(t);if(h&&g)return h==t&&g==e;var v=!0;i.set(e,t),i.set(t,e);for(var b=s;++f<c;){p=l[f];var m=e[p],_=t[p];if(r)var k=s?r(_,m,p,t,e,i):r(m,_,p,e,t,i);if(!(k===void 0?m===_||a(m,_,n,r,i):k)){v=!1;break}b||(b=p=="constructor")}if(v&&!b){var y=e.constructor,w=t.constructor;y!=w&&"constructor"in e&&"constructor"in t&&!(typeof y=="function"&&y instanceof y&&typeof w=="function"&&w instanceof w)&&(v=!1)}return i.delete(e),i.delete(t),v}var $R=1,O0="[object Arguments]",M0="[object Array]",kl="[object Object]",FR=Object.prototype,N0=FR.hasOwnProperty;function zR(e,t,n,r,a,i){var s=Bi(e),l=Bi(t),c=s?M0:$i(e),u=l?M0:$i(t);c=c==O0?kl:c,u=u==O0?kl:u;var d=c==kl,f=u==kl,p=c==u;if(p&&io(e)){if(!io(t))return!1;s=!0,d=!1}if(p&&!d)return i||(i=new _r),s||Rp(e)?_y(e,t,n,r,a,i):IR(e,t,c,n,r,a,i);if(!(n&$R)){var h=d&&N0.call(e,"__wrapped__"),g=f&&N0.call(t,"__wrapped__");if(h||g){var v=h?e.value():e,b=g?t.value():t;return i||(i=new _r),a(v,b,n,r,i)}}return p?(i||(i=new _r),VR(e,t,n,r,a,i)):!1}function yy(e,t,n,r,a){return e===t?!0:e==null||t==null||!Wa(e)&&!Wa(t)?e!==e&&t!==t:zR(e,t,n,r,yy,a)}var jR="[object Map]",HR="[object Set]",WR=Object.prototype,UR=WR.hasOwnProperty;function YR(e){if(e==null)return!0;if(Ip(e)&&(Bi(e)||typeof e=="string"||typeof e.splice=="function"||io(e)||Rp(e)||ry(e)))return!e.length;var t=$i(e);if(t==jR||t==HR)return!e.size;if(Uc(e))return!ly(e).length;for(var n in e)if(UR.call(e,n))return!1;return!0}function D0(e,t){return yy(e,t)}var qR=Object.defineProperty,GR=Object.defineProperties,XR=Object.getOwnPropertyDescriptors,P0=Object.getOwnPropertySymbols,KR=Object.prototype.hasOwnProperty,JR=Object.prototype.propertyIsEnumerable,A0=(e,t,n)=>t in e?qR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ZR=(e,t)=>{for(var n in t||(t={}))KR.call(t,n)&&A0(e,n,t[n]);if(P0)for(var n of P0(t))JR.call(t,n)&&A0(e,n,t[n]);return e},QR=(e,t)=>GR(e,XR(t));function eB(e){return(e.match(/[a-zA-Z0-9]+/g)||[]).map(t=>`${t.charAt(0).toUpperCase()}${t.slice(1)}`).join("")}var ha=(e,t)=>{const n={chartData:{type:Object,required:!0},options:{type:Object,required:!1},chartId:{default:e,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:()=>[]},onLabelsUpdate:{type:Function},onChartUpdate:{type:Function},onChartDestroy:{type:Function},onChartRender:{type:Function}},r=eB(e);return o.defineComponent({name:r,props:n,emits:{"labels:update":()=>!0,"chart:update":a=>!0,"chart:destroy":()=>!0,"chart:render":a=>!0},setup(a,{emit:i,expose:s}){const l=o.ref(null),c=`${a.chartId}`;let u=o.shallowRef(null);o.watch(()=>a.chartData,d,{deep:!0}),o.watch(()=>a.options,b=>{u.value&&b&&(u.value.options=cs(b),g())},{deep:!0});function d(b){if(u.value){let m=u.value;D0(b.labels,u.value.data.labels)||(m.data.labels=b.labels,p()),D0(b.datasets,u.value.data.datasets)||b.datasets.forEach((_,k)=>{var y,w;if(YR(_))m.data.datasets=[];else{const S=cs(m.data),C=Object.keys((w=(y=S.datasets)==null?void 0:y[k])!=null?w:{}),E=Object.keys(_);C.filter(L=>L!=="_meta"&&E.indexOf(L)===-1).forEach(L=>{m.data.datasets[k]&&delete m.data.datasets[k][L]});for(const L in _){const D=cs(_[L]);m.data.datasets[k]||(m.data.datasets[k]={}),_.hasOwnProperty(L)&&D!=null&&m&&(m.data.datasets[k][L]=D)}}}),g()}else u.value&&v(),f()}function f(){l.value?(u.value=new Re(l.value,{data:cs(a.chartData),type:t,options:cs(a.options),plugins:a.plugins}),h()):console.error(`Error on component ${r}, canvas cannot be rendered. Check if the render appends server-side`)}function p(){i("labels:update"),a.onLabelsUpdate&&a.onLabelsUpdate()}function h(){u.value&&(i("chart:render",u.value),a.onChartRender&&a.onChartRender(u.value))}function g(){u.value&&(u.value.update(),i("chart:update",u.value),a.onChartUpdate&&a.onChartUpdate(u.value))}function v(){u.value&&u.value.destroy(),i("chart:destroy"),a.onChartDestroy&&a.onChartDestroy()}return o.onMounted(f),o.onBeforeUnmount(()=>{u.value&&u.value.destroy()}),s({canvasRef:l,renderChart:f,chartInstance:u,canvasId:c,update:g}),()=>o.h("div",{style:QR(ZR({maxWidth:"100%"},a.styles),{position:"relative"}),class:a.cssClasses},[o.h("canvas",{style:{maxWidth:"100%",maxHeight:"100%"},id:c,width:a.width,height:a.height,ref:l})])}})},Gc=ha("bar-chart","bar"),by=ha("doughnut-chart","doughnut"),ky=ha("line-chart","line");ha("pie-chart","pie");ha("polar-chart","polarArea");ha("radar-chart","radar");ha("bubble-chart","bubble");ha("scatter-chart","scatter");const hc=o.defineComponent({__name:"InfoDoughnutChart",props:pT,setup(e){const t=e,n=o.ref(null);Re.register(...pa);const r=o.computed(()=>{const i=t.info==="typeRef"?"types":"rarities",s={},l=Et(t.deckCode);for(const u in l){const d=Dt().cardJsonObject[u];if(d===void 0)continue;let f=d[t.info];f==="Unit"&&(f=d.supertype==="Champion"?"Champion":"Follower"),s[f]===void 0&&(s[f]=0),s[f]+=l[u]}const c=[];for(const u in s){const d=Ce().dataJson[i].find(p=>p.nameRef===u),f={key:u,value:s[u],color:d.color,name:d.name,order:d.order};c.push(f)}return console.log(c),c.sort((u,d)=>u.order-d.order),{labels:c.map(u=>u.name),datasets:[{data:c.map(u=>u.value),backgroundColor:c.map(u=>u.color)}]}}),a={cutout:55,layout:{padding:{top:10,bottom:10}},elements:{arc:{borderWidth:0}},plugins:{legend:{display:!0,position:"right",labels:{usePointStyle:!0,generateLabels(i){const s=[],l=i.data.labels;for(let c=0;c<i.data.labels.length;c++)s.push({text:`${l[c]} (${i.data.datasets[0].data[c]})`,borderRadius:999,datasetIndex:0,index:c,fontColor:Qs("--color-0"),fillStyle:i.data.datasets[0].backgroundColor[c]});return s}}},datalabels:{display:!1}}};return(i,s)=>(o.openBlock(),o.createBlock(o.unref(by),{ref_key:"chart",ref:n,"chart-data":o.unref(r),options:a},null,8,["chart-data"]))}}),tB={deckCode:{type:String,required:!0,default:""},paddingTop:{type:Number,required:!1,default:10},showDataLabels:{type:Boolean,required:!1,default:!0},dataLabelsOffset:{type:Number,required:!1,default:-10},tooltipsEnabled:{type:Boolean,required:!1,default:!0},displayXScale:{type:Boolean,required:!1,default:!0},animation:{type:Boolean,required:!1}};//! moment.js
832
+ //! version : 2.29.4
833
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
834
+ //! license : MIT
835
+ //! momentjs.com
836
+ var wy;function j(){return wy.apply(null,arguments)}function nB(e){wy=e}function Pn(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ia(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function De(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function zp(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(De(e,t))return!1;return!0}function jt(e){return e===void 0}function xr(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Io(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Sy(e,t){var n=[],r,a=e.length;for(r=0;r<a;++r)n.push(t(e[r],r));return n}function Yr(e,t){for(var n in t)De(t,n)&&(e[n]=t[n]);return De(t,"toString")&&(e.toString=t.toString),De(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Qn(e,t,n,r){return qy(e,t,n,r,!0).utc()}function rB(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function me(e){return e._pf==null&&(e._pf=rB()),e._pf}var sf;Array.prototype.some?sf=Array.prototype.some:sf=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function jp(e){if(e._isValid==null){var t=me(e),n=sf.call(t.parsedDateParts,function(a){return a!=null}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r}return e._isValid}function Xc(e){var t=Qn(NaN);return e!=null?Yr(me(t),e):me(t).userInvalidated=!0,t}var I0=j.momentProperties=[],Qu=!1;function Hp(e,t){var n,r,a,i=I0.length;if(jt(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),jt(t._i)||(e._i=t._i),jt(t._f)||(e._f=t._f),jt(t._l)||(e._l=t._l),jt(t._strict)||(e._strict=t._strict),jt(t._tzm)||(e._tzm=t._tzm),jt(t._isUTC)||(e._isUTC=t._isUTC),jt(t._offset)||(e._offset=t._offset),jt(t._pf)||(e._pf=me(t)),jt(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)r=I0[n],a=t[r],jt(a)||(e[r]=a);return e}function Lo(e){Hp(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Qu===!1&&(Qu=!0,j.updateOffset(this),Qu=!1)}function An(e){return e instanceof Lo||e!=null&&e._isAMomentObject!=null}function xy(e){j.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function kn(e,t){var n=!0;return Yr(function(){if(j.deprecationHandler!=null&&j.deprecationHandler(null,e),n){var r=[],a,i,s,l=arguments.length;for(i=0;i<l;i++){if(a="",typeof arguments[i]=="object"){a+=`
837
+ [`+i+"] ";for(s in arguments[0])De(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[i];r.push(a)}xy(e+`
838
+ Arguments: `+Array.prototype.slice.call(r).join("")+`
839
+ `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var L0={};function Cy(e,t){j.deprecationHandler!=null&&j.deprecationHandler(e,t),L0[e]||(xy(t),L0[e]=!0)}j.suppressDeprecationWarnings=!1;j.deprecationHandler=null;function er(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function aB(e){var t,n;for(n in e)De(e,n)&&(t=e[n],er(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function of(e,t){var n=Yr({},e),r;for(r in t)De(t,r)&&(Ia(e[r])&&Ia(t[r])?(n[r]={},Yr(n[r],e[r]),Yr(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)De(e,r)&&!De(t,r)&&Ia(e[r])&&(n[r]=Yr({},n[r]));return n}function Wp(e){e!=null&&this.set(e)}var lf;Object.keys?lf=Object.keys:lf=function(e){var t,n=[];for(t in e)De(e,t)&&n.push(t);return n};var iB={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function sB(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return er(r)?r.call(t,n):r}function Kn(e,t,n){var r=""+Math.abs(e),a=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var Up=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,wl=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ed={},yi={};function ae(e,t,n,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(yi[e]=a),t&&(yi[t[0]]=function(){return Kn(a.apply(this,arguments),t[1],t[2])}),n&&(yi[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function oB(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function lB(e){var t=e.match(Up),n,r;for(n=0,r=t.length;n<r;n++)yi[t[n]]?t[n]=yi[t[n]]:t[n]=oB(t[n]);return function(a){var i="",s;for(s=0;s<r;s++)i+=er(t[s])?t[s].call(a,e):t[s];return i}}function jl(e,t){return e.isValid()?(t=Ey(t,e.localeData()),ed[t]=ed[t]||lB(t),ed[t](e)):e.localeData().invalidDate()}function Ey(e,t){var n=5;function r(a){return t.longDateFormat(a)||a}for(wl.lastIndex=0;n>=0&&wl.test(e);)e=e.replace(wl,r),wl.lastIndex=0,n-=1;return e}var cB={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function uB(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Up).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var dB="Invalid date";function fB(){return this._invalidDate}var pB="%d",hB=/\d{1,2}/;function mB(e){return this._ordinal.replace("%d",e)}var gB={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function vB(e,t,n,r){var a=this._relativeTime[n];return er(a)?a(e,t,n,r):a.replace(/%d/i,e)}function _B(e,t){var n=this._relativeTime[e>0?"future":"past"];return er(n)?n(t):n.replace(/%s/i,t)}var Ls={};function Pt(e,t){var n=e.toLowerCase();Ls[n]=Ls[n+"s"]=Ls[t]=e}function wn(e){return typeof e=="string"?Ls[e]||Ls[e.toLowerCase()]:void 0}function Yp(e){var t={},n,r;for(r in e)De(e,r)&&(n=wn(r),n&&(t[n]=e[r]));return t}var Ty={};function At(e,t){Ty[e]=t}function yB(e){var t=[],n;for(n in e)De(e,n)&&t.push({unit:n,priority:Ty[n]});return t.sort(function(r,a){return r.priority-a.priority}),t}function Kc(e){return e%4===0&&e%100!==0||e%400===0}function _n(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function be(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=_n(t)),n}function Ui(e,t){return function(n){return n!=null?(Oy(this,e,n),j.updateOffset(this,t),this):mc(this,e)}}function mc(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Oy(e,t,n){e.isValid()&&!isNaN(n)&&(t==="FullYear"&&Kc(e.year())&&e.month()===1&&e.date()===29?(n=be(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),nu(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function bB(e){return e=wn(e),er(this[e])?this[e]():this}function kB(e,t){if(typeof e=="object"){e=Yp(e);var n=yB(e),r,a=n.length;for(r=0;r<a;r++)this[n[r].unit](e[n[r].unit])}else if(e=wn(e),er(this[e]))return this[e](t);return this}var My=/\d/,fn=/\d\d/,Ny=/\d{3}/,qp=/\d{4}/,Jc=/[+-]?\d{6}/,Qe=/\d\d?/,Dy=/\d\d\d\d?/,Py=/\d\d\d\d\d\d?/,Zc=/\d{1,3}/,Gp=/\d{1,4}/,Qc=/[+-]?\d{1,6}/,Yi=/\d+/,eu=/[+-]?\d+/,wB=/Z|[+-]\d\d:?\d\d/gi,tu=/Z|[+-]\d\d(?::?\d\d)?/gi,SB=/[+-]?\d+(\.\d{1,3})?/,Ro=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,gc;gc={};function G(e,t,n){gc[e]=er(t)?t:function(r,a){return r&&n?n:t}}function xB(e,t){return De(gc,e)?gc[e](t._strict,t._locale):new RegExp(CB(e))}function CB(e){return nn(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,a,i){return n||r||a||i}))}function nn(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var cf={};function $e(e,t){var n,r=t,a;for(typeof e=="string"&&(e=[e]),xr(t)&&(r=function(i,s){s[t]=be(i)}),a=e.length,n=0;n<a;n++)cf[e[n]]=r}function Bo(e,t){$e(e,function(n,r,a,i){a._w=a._w||{},t(n,a._w,a,i)})}function EB(e,t,n){t!=null&&De(cf,e)&&cf[e](t,n._a,n,e)}var Nt=0,mr=1,Hn=2,bt=3,Tn=4,gr=5,Ma=6,TB=7,OB=8;function MB(e,t){return(e%t+t)%t}var ft;Array.prototype.indexOf?ft=Array.prototype.indexOf:ft=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function nu(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=MB(t,12);return e+=(t-n)/12,n===1?Kc(e)?29:28:31-n%7%2}ae("M",["MM",2],"Mo",function(){return this.month()+1});ae("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});ae("MMMM",0,0,function(e){return this.localeData().months(this,e)});Pt("month","M");At("month",8);G("M",Qe);G("MM",Qe,fn);G("MMM",function(e,t){return t.monthsShortRegex(e)});G("MMMM",function(e,t){return t.monthsRegex(e)});$e(["M","MM"],function(e,t){t[mr]=be(e)-1});$e(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);a!=null?t[mr]=a:me(n).invalidMonth=e});var NB="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ay="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Iy=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,DB=Ro,PB=Ro;function AB(e,t){return e?Pn(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Iy).test(t)?"format":"standalone"][e.month()]:Pn(this._months)?this._months:this._months.standalone}function IB(e,t){return e?Pn(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Iy.test(t)?"format":"standalone"][e.month()]:Pn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function LB(e,t,n){var r,a,i,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=Qn([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(a=ft.call(this._shortMonthsParse,s),a!==-1?a:null):(a=ft.call(this._longMonthsParse,s),a!==-1?a:null):t==="MMM"?(a=ft.call(this._shortMonthsParse,s),a!==-1?a:(a=ft.call(this._longMonthsParse,s),a!==-1?a:null)):(a=ft.call(this._longMonthsParse,s),a!==-1?a:(a=ft.call(this._shortMonthsParse,s),a!==-1?a:null))}function RB(e,t,n){var r,a,i;if(this._monthsParseExact)return LB.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=Qn([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function Ly(e,t){var n;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=be(t);else if(t=e.localeData().monthsParse(t),!xr(t))return e}return n=Math.min(e.date(),nu(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ry(e){return e!=null?(Ly(this,e),j.updateOffset(this,!0),this):mc(this,"Month")}function BB(){return nu(this.year(),this.month())}function VB(e){return this._monthsParseExact?(De(this,"_monthsRegex")||By.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(De(this,"_monthsShortRegex")||(this._monthsShortRegex=DB),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function $B(e){return this._monthsParseExact?(De(this,"_monthsRegex")||By.call(this),e?this._monthsStrictRegex:this._monthsRegex):(De(this,"_monthsRegex")||(this._monthsRegex=PB),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function By(){function e(s,l){return l.length-s.length}var t=[],n=[],r=[],a,i;for(a=0;a<12;a++)i=Qn([2e3,a]),t.push(this.monthsShort(i,"")),n.push(this.months(i,"")),r.push(this.months(i,"")),r.push(this.monthsShort(i,""));for(t.sort(e),n.sort(e),r.sort(e),a=0;a<12;a++)t[a]=nn(t[a]),n[a]=nn(n[a]);for(a=0;a<24;a++)r[a]=nn(r[a]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}ae("Y",0,0,function(){var e=this.year();return e<=9999?Kn(e,4):"+"+e});ae(0,["YY",2],0,function(){return this.year()%100});ae(0,["YYYY",4],0,"year");ae(0,["YYYYY",5],0,"year");ae(0,["YYYYYY",6,!0],0,"year");Pt("year","y");At("year",1);G("Y",eu);G("YY",Qe,fn);G("YYYY",Gp,qp);G("YYYYY",Qc,Jc);G("YYYYYY",Qc,Jc);$e(["YYYYY","YYYYYY"],Nt);$e("YYYY",function(e,t){t[Nt]=e.length===2?j.parseTwoDigitYear(e):be(e)});$e("YY",function(e,t){t[Nt]=j.parseTwoDigitYear(e)});$e("Y",function(e,t){t[Nt]=parseInt(e,10)});function Rs(e){return Kc(e)?366:365}j.parseTwoDigitYear=function(e){return be(e)+(be(e)>68?1900:2e3)};var Vy=Ui("FullYear",!0);function FB(){return Kc(this.year())}function zB(e,t,n,r,a,i,s){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,a,i,s),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,a,i,s),l}function lo(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function vc(e,t,n){var r=7+t-n,a=(7+lo(e,0,r).getUTCDay()-t)%7;return-a+r-1}function $y(e,t,n,r,a){var i=(7+n-r)%7,s=vc(e,r,a),l=1+7*(t-1)+i+s,c,u;return l<=0?(c=e-1,u=Rs(c)+l):l>Rs(e)?(c=e+1,u=l-Rs(e)):(c=e,u=l),{year:c,dayOfYear:u}}function co(e,t,n){var r=vc(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1,i,s;return a<1?(s=e.year()-1,i=a+yr(s,t,n)):a>yr(e.year(),t,n)?(i=a-yr(e.year(),t,n),s=e.year()+1):(s=e.year(),i=a),{week:i,year:s}}function yr(e,t,n){var r=vc(e,t,n),a=vc(e+1,t,n);return(Rs(e)-r+a)/7}ae("w",["ww",2],"wo","week");ae("W",["WW",2],"Wo","isoWeek");Pt("week","w");Pt("isoWeek","W");At("week",5);At("isoWeek",5);G("w",Qe);G("ww",Qe,fn);G("W",Qe);G("WW",Qe,fn);Bo(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=be(e)});function jB(e){return co(e,this._week.dow,this._week.doy).week}var HB={dow:0,doy:6};function WB(){return this._week.dow}function UB(){return this._week.doy}function YB(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function qB(e){var t=co(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ae("d",0,"do","day");ae("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});ae("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});ae("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});ae("e",0,0,"weekday");ae("E",0,0,"isoWeekday");Pt("day","d");Pt("weekday","e");Pt("isoWeekday","E");At("day",11);At("weekday",11);At("isoWeekday",11);G("d",Qe);G("e",Qe);G("E",Qe);G("dd",function(e,t){return t.weekdaysMinRegex(e)});G("ddd",function(e,t){return t.weekdaysShortRegex(e)});G("dddd",function(e,t){return t.weekdaysRegex(e)});Bo(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);a!=null?t.d=a:me(n).invalidWeekday=e});Bo(["d","e","E"],function(e,t,n,r){t[r]=be(e)});function GB(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function XB(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Xp(e,t){return e.slice(t,7).concat(e.slice(0,t))}var KB="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Fy="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),JB="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ZB=Ro,QB=Ro,eV=Ro;function tV(e,t){var n=Pn(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Xp(n,this._week.dow):e?n[e.day()]:n}function nV(e){return e===!0?Xp(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function rV(e){return e===!0?Xp(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function aV(e,t,n){var r,a,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Qn([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(a=ft.call(this._weekdaysParse,s),a!==-1?a:null):t==="ddd"?(a=ft.call(this._shortWeekdaysParse,s),a!==-1?a:null):(a=ft.call(this._minWeekdaysParse,s),a!==-1?a:null):t==="dddd"?(a=ft.call(this._weekdaysParse,s),a!==-1||(a=ft.call(this._shortWeekdaysParse,s),a!==-1)?a:(a=ft.call(this._minWeekdaysParse,s),a!==-1?a:null)):t==="ddd"?(a=ft.call(this._shortWeekdaysParse,s),a!==-1||(a=ft.call(this._weekdaysParse,s),a!==-1)?a:(a=ft.call(this._minWeekdaysParse,s),a!==-1?a:null)):(a=ft.call(this._minWeekdaysParse,s),a!==-1||(a=ft.call(this._weekdaysParse,s),a!==-1)?a:(a=ft.call(this._shortWeekdaysParse,s),a!==-1?a:null))}function iV(e,t,n){var r,a,i;if(this._weekdaysParseExact)return aV.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=Qn([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function sV(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=GB(e,this.localeData()),this.add(e-t,"d")):t}function oV(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function lV(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=XB(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function cV(e){return this._weekdaysParseExact?(De(this,"_weekdaysRegex")||Kp.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(De(this,"_weekdaysRegex")||(this._weekdaysRegex=ZB),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function uV(e){return this._weekdaysParseExact?(De(this,"_weekdaysRegex")||Kp.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(De(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=QB),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function dV(e){return this._weekdaysParseExact?(De(this,"_weekdaysRegex")||Kp.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(De(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=eV),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kp(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],a=[],i,s,l,c,u;for(i=0;i<7;i++)s=Qn([2e3,1]).day(i),l=nn(this.weekdaysMin(s,"")),c=nn(this.weekdaysShort(s,"")),u=nn(this.weekdays(s,"")),t.push(l),n.push(c),r.push(u),a.push(l),a.push(c),a.push(u);t.sort(e),n.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Jp(){return this.hours()%12||12}function fV(){return this.hours()||24}ae("H",["HH",2],0,"hour");ae("h",["hh",2],0,Jp);ae("k",["kk",2],0,fV);ae("hmm",0,0,function(){return""+Jp.apply(this)+Kn(this.minutes(),2)});ae("hmmss",0,0,function(){return""+Jp.apply(this)+Kn(this.minutes(),2)+Kn(this.seconds(),2)});ae("Hmm",0,0,function(){return""+this.hours()+Kn(this.minutes(),2)});ae("Hmmss",0,0,function(){return""+this.hours()+Kn(this.minutes(),2)+Kn(this.seconds(),2)});function zy(e,t){ae(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}zy("a",!0);zy("A",!1);Pt("hour","h");At("hour",13);function jy(e,t){return t._meridiemParse}G("a",jy);G("A",jy);G("H",Qe);G("h",Qe);G("k",Qe);G("HH",Qe,fn);G("hh",Qe,fn);G("kk",Qe,fn);G("hmm",Dy);G("hmmss",Py);G("Hmm",Dy);G("Hmmss",Py);$e(["H","HH"],bt);$e(["k","kk"],function(e,t,n){var r=be(e);t[bt]=r===24?0:r});$e(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});$e(["h","hh"],function(e,t,n){t[bt]=be(e),me(n).bigHour=!0});$e("hmm",function(e,t,n){var r=e.length-2;t[bt]=be(e.substr(0,r)),t[Tn]=be(e.substr(r)),me(n).bigHour=!0});$e("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[bt]=be(e.substr(0,r)),t[Tn]=be(e.substr(r,2)),t[gr]=be(e.substr(a)),me(n).bigHour=!0});$e("Hmm",function(e,t,n){var r=e.length-2;t[bt]=be(e.substr(0,r)),t[Tn]=be(e.substr(r))});$e("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[bt]=be(e.substr(0,r)),t[Tn]=be(e.substr(r,2)),t[gr]=be(e.substr(a))});function pV(e){return(e+"").toLowerCase().charAt(0)==="p"}var hV=/[ap]\.?m?\.?/i,mV=Ui("Hours",!0);function gV(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Hy={calendar:iB,longDateFormat:cB,invalidDate:dB,ordinal:pB,dayOfMonthOrdinalParse:hB,relativeTime:gB,months:NB,monthsShort:Ay,week:HB,weekdays:KB,weekdaysMin:JB,weekdaysShort:Fy,meridiemParse:hV},tt={},us={},uo;function vV(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function R0(e){return e&&e.toLowerCase().replace("_","-")}function _V(e){for(var t=0,n,r,a,i;t<e.length;){for(i=R0(e[t]).split("-"),n=i.length,r=R0(e[t+1]),r=r?r.split("-"):null;n>0;){if(a=ru(i.slice(0,n).join("-")),a)return a;if(r&&r.length>=n&&vV(i,r)>=n-1)break;n--}t++}return uo}function yV(e){return e.match("^[^/\\\\]*$")!=null}function ru(e){var t=null,n;if(tt[e]===void 0&&typeof module<"u"&&module&&module.exports&&yV(e))try{t=uo._abbr,n=require,n("./locale/"+e),Kr(t)}catch{tt[e]=null}return tt[e]}function Kr(e,t){var n;return e&&(jt(t)?n=Tr(e):n=Zp(e,t),n?uo=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),uo._abbr}function Zp(e,t){if(t!==null){var n,r=Hy;if(t.abbr=e,tt[e]!=null)Cy("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tt[e]._config;else if(t.parentLocale!=null)if(tt[t.parentLocale]!=null)r=tt[t.parentLocale]._config;else if(n=ru(t.parentLocale),n!=null)r=n._config;else return us[t.parentLocale]||(us[t.parentLocale]=[]),us[t.parentLocale].push({name:e,config:t}),null;return tt[e]=new Wp(of(r,t)),us[e]&&us[e].forEach(function(a){Zp(a.name,a.config)}),Kr(e),tt[e]}else return delete tt[e],null}function bV(e,t){if(t!=null){var n,r,a=Hy;tt[e]!=null&&tt[e].parentLocale!=null?tt[e].set(of(tt[e]._config,t)):(r=ru(e),r!=null&&(a=r._config),t=of(a,t),r==null&&(t.abbr=e),n=new Wp(t),n.parentLocale=tt[e],tt[e]=n),Kr(e)}else tt[e]!=null&&(tt[e].parentLocale!=null?(tt[e]=tt[e].parentLocale,e===Kr()&&Kr(e)):tt[e]!=null&&delete tt[e]);return tt[e]}function Tr(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return uo;if(!Pn(e)){if(t=ru(e),t)return t;e=[e]}return _V(e)}function kV(){return lf(tt)}function Qp(e){var t,n=e._a;return n&&me(e).overflow===-2&&(t=n[mr]<0||n[mr]>11?mr:n[Hn]<1||n[Hn]>nu(n[Nt],n[mr])?Hn:n[bt]<0||n[bt]>24||n[bt]===24&&(n[Tn]!==0||n[gr]!==0||n[Ma]!==0)?bt:n[Tn]<0||n[Tn]>59?Tn:n[gr]<0||n[gr]>59?gr:n[Ma]<0||n[Ma]>999?Ma:-1,me(e)._overflowDayOfYear&&(t<Nt||t>Hn)&&(t=Hn),me(e)._overflowWeeks&&t===-1&&(t=TB),me(e)._overflowWeekday&&t===-1&&(t=OB),me(e).overflow=t),e}var wV=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,SV=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xV=/Z|[+-]\d\d(?::?\d\d)?/,Sl=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],td=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],CV=/^\/?Date\((-?\d+)/i,EV=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,TV={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Wy(e){var t,n,r=e._i,a=wV.exec(r)||SV.exec(r),i,s,l,c,u=Sl.length,d=td.length;if(a){for(me(e).iso=!0,t=0,n=u;t<n;t++)if(Sl[t][1].exec(a[1])){s=Sl[t][0],i=Sl[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(a[3]){for(t=0,n=d;t<n;t++)if(td[t][1].exec(a[3])){l=(a[2]||" ")+td[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(a[4])if(xV.exec(a[4]))c="Z";else{e._isValid=!1;return}e._f=s+(l||"")+(c||""),th(e)}else e._isValid=!1}function OV(e,t,n,r,a,i){var s=[MV(e),Ay.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return i&&s.push(parseInt(i,10)),s}function MV(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function NV(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function DV(e,t,n){if(e){var r=Fy.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return me(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function PV(e,t,n){if(e)return TV[e];if(t)return 0;var r=parseInt(n,10),a=r%100,i=(r-a)/100;return i*60+a}function Uy(e){var t=EV.exec(NV(e._i)),n;if(t){if(n=OV(t[4],t[3],t[2],t[5],t[6],t[7]),!DV(t[1],n,e))return;e._a=n,e._tzm=PV(t[8],t[9],t[10]),e._d=lo.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),me(e).rfc2822=!0}else e._isValid=!1}function AV(e){var t=CV.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Wy(e),e._isValid===!1)delete e._isValid;else return;if(Uy(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:j.createFromInputFallback(e)}j.createFromInputFallback=kn("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ui(e,t,n){return e??t??n}function IV(e){var t=new Date(j.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function eh(e){var t,n,r=[],a,i,s;if(!e._d){for(a=IV(e),e._w&&e._a[Hn]==null&&e._a[mr]==null&&LV(e),e._dayOfYear!=null&&(s=ui(e._a[Nt],a[Nt]),(e._dayOfYear>Rs(s)||e._dayOfYear===0)&&(me(e)._overflowDayOfYear=!0),n=lo(s,0,e._dayOfYear),e._a[mr]=n.getUTCMonth(),e._a[Hn]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[bt]===24&&e._a[Tn]===0&&e._a[gr]===0&&e._a[Ma]===0&&(e._nextDay=!0,e._a[bt]=0),e._d=(e._useUTC?lo:zB).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[bt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(me(e).weekdayMismatch=!0)}}function LV(e){var t,n,r,a,i,s,l,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,s=4,n=ui(t.GG,e._a[Nt],co(Ze(),1,4).year),r=ui(t.W,1),a=ui(t.E,1),(a<1||a>7)&&(c=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,u=co(Ze(),i,s),n=ui(t.gg,e._a[Nt],u.year),r=ui(t.w,u.week),t.d!=null?(a=t.d,(a<0||a>6)&&(c=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(c=!0)):a=i),r<1||r>yr(n,i,s)?me(e)._overflowWeeks=!0:c!=null?me(e)._overflowWeekday=!0:(l=$y(n,r,a,i,s),e._a[Nt]=l.year,e._dayOfYear=l.dayOfYear)}j.ISO_8601=function(){};j.RFC_2822=function(){};function th(e){if(e._f===j.ISO_8601){Wy(e);return}if(e._f===j.RFC_2822){Uy(e);return}e._a=[],me(e).empty=!0;var t=""+e._i,n,r,a,i,s,l=t.length,c=0,u,d;for(a=Ey(e._f,e._locale).match(Up)||[],d=a.length,n=0;n<d;n++)i=a[n],r=(t.match(xB(i,e))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&me(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),c+=r.length),yi[i]?(r?me(e).empty=!1:me(e).unusedTokens.push(i),EB(i,r,e)):e._strict&&!r&&me(e).unusedTokens.push(i);me(e).charsLeftOver=l-c,t.length>0&&me(e).unusedInput.push(t),e._a[bt]<=12&&me(e).bigHour===!0&&e._a[bt]>0&&(me(e).bigHour=void 0),me(e).parsedDateParts=e._a.slice(0),me(e).meridiem=e._meridiem,e._a[bt]=RV(e._locale,e._a[bt],e._meridiem),u=me(e).era,u!==null&&(e._a[Nt]=e._locale.erasConvertYear(u,e._a[Nt])),eh(e),Qp(e)}function RV(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function BV(e){var t,n,r,a,i,s,l=!1,c=e._f.length;if(c===0){me(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<c;a++)i=0,s=!1,t=Hp({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],th(t),jp(t)&&(s=!0),i+=me(t).charsLeftOver,i+=me(t).unusedTokens.length*10,me(t).score=i,l?i<r&&(r=i,n=t):(r==null||i<r||s)&&(r=i,n=t,s&&(l=!0));Yr(e,n||t)}function VV(e){if(!e._d){var t=Yp(e._i),n=t.day===void 0?t.date:t.day;e._a=Sy([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),eh(e)}}function $V(e){var t=new Lo(Qp(Yy(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Yy(e){var t=e._i,n=e._f;return e._locale=e._locale||Tr(e._l),t===null||n===void 0&&t===""?Xc({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),An(t)?new Lo(Qp(t)):(Io(t)?e._d=t:Pn(n)?BV(e):n?th(e):FV(e),jp(e)||(e._d=null),e))}function FV(e){var t=e._i;jt(t)?e._d=new Date(j.now()):Io(t)?e._d=new Date(t.valueOf()):typeof t=="string"?AV(e):Pn(t)?(e._a=Sy(t.slice(0),function(n){return parseInt(n,10)}),eh(e)):Ia(t)?VV(e):xr(t)?e._d=new Date(t):j.createFromInputFallback(e)}function qy(e,t,n,r,a){var i={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Ia(e)&&zp(e)||Pn(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=n,i._i=e,i._f=t,i._strict=r,$V(i)}function Ze(e,t,n,r){return qy(e,t,n,r,!1)}var zV=kn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ze.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Xc()}),jV=kn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ze.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Xc()});function Gy(e,t){var n,r;if(t.length===1&&Pn(t[0])&&(t=t[0]),!t.length)return Ze();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function HV(){var e=[].slice.call(arguments,0);return Gy("isBefore",e)}function WV(){var e=[].slice.call(arguments,0);return Gy("isAfter",e)}var UV=function(){return Date.now?Date.now():+new Date},ds=["year","quarter","month","week","day","hour","minute","second","millisecond"];function YV(e){var t,n=!1,r,a=ds.length;for(t in e)if(De(e,t)&&!(ft.call(ds,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[ds[r]]){if(n)return!1;parseFloat(e[ds[r]])!==be(e[ds[r]])&&(n=!0)}return!0}function qV(){return this._isValid}function GV(){return In(NaN)}function au(e){var t=Yp(e),n=t.year||0,r=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=YV(t),this._milliseconds=+d+u*1e3+c*6e4+l*1e3*60*60,this._days=+s+i*7,this._months=+a+r*3+n*12,this._data={},this._locale=Tr(),this._bubble()}function Hl(e){return e instanceof au}function uf(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function XV(e,t,n){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,s;for(s=0;s<r;s++)(n&&e[s]!==t[s]||!n&&be(e[s])!==be(t[s]))&&i++;return i+a}function Xy(e,t){ae(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Kn(~~(n/60),2)+t+Kn(~~n%60,2)})}Xy("Z",":");Xy("ZZ","");G("Z",tu);G("ZZ",tu);$e(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=nh(tu,e)});var KV=/([\+\-]|\d\d)/gi;function nh(e,t){var n=(t||"").match(e),r,a,i;return n===null?null:(r=n[n.length-1]||[],a=(r+"").match(KV)||["-",0,0],i=+(a[1]*60)+be(a[2]),i===0?0:a[0]==="+"?i:-i)}function rh(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(An(e)||Io(e)?e.valueOf():Ze(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),j.updateOffset(n,!1),n):Ze(e).local()}function df(e){return-Math.round(e._d.getTimezoneOffset())}j.updateOffset=function(){};function JV(e,t,n){var r=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=nh(tu,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(a=df(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?Zy(this,In(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,j.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:df(this)}function ZV(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function QV(e){return this.utcOffset(0,e)}function e$(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(df(this),"m")),this}function t$(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=nh(wB,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function n$(e){return this.isValid()?(e=e?Ze(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function r$(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function a$(){if(!jt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Hp(e,this),e=Yy(e),e._a?(t=e._isUTC?Qn(e._a):Ze(e._a),this._isDSTShifted=this.isValid()&&XV(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function i$(){return this.isValid()?!this._isUTC:!1}function s$(){return this.isValid()?this._isUTC:!1}function Ky(){return this.isValid()?this._isUTC&&this._offset===0:!1}var o$=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,l$=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function In(e,t){var n=e,r=null,a,i,s;return Hl(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:xr(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=o$.exec(e))?(a=r[1]==="-"?-1:1,n={y:0,d:be(r[Hn])*a,h:be(r[bt])*a,m:be(r[Tn])*a,s:be(r[gr])*a,ms:be(uf(r[Ma]*1e3))*a}):(r=l$.exec(e))?(a=r[1]==="-"?-1:1,n={y:ba(r[2],a),M:ba(r[3],a),w:ba(r[4],a),d:ba(r[5],a),h:ba(r[6],a),m:ba(r[7],a),s:ba(r[8],a)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=c$(Ze(n.from),Ze(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),i=new au(n),Hl(e)&&De(e,"_locale")&&(i._locale=e._locale),Hl(e)&&De(e,"_isValid")&&(i._isValid=e._isValid),i}In.fn=au.prototype;In.invalid=GV;function ba(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function B0(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function c$(e,t){var n;return e.isValid()&&t.isValid()?(t=rh(t,e),e.isBefore(t)?n=B0(e,t):(n=B0(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Jy(e,t){return function(n,r){var a,i;return r!==null&&!isNaN(+r)&&(Cy(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),a=In(n,r),Zy(this,a,e),this}}function Zy(e,t,n,r){var a=t._milliseconds,i=uf(t._days),s=uf(t._months);e.isValid()&&(r=r??!0,s&&Ly(e,mc(e,"Month")+s*n),i&&Oy(e,"Date",mc(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&j.updateOffset(e,i||s))}var u$=Jy(1,"add"),d$=Jy(-1,"subtract");function Qy(e){return typeof e=="string"||e instanceof String}function f$(e){return An(e)||Io(e)||Qy(e)||xr(e)||h$(e)||p$(e)||e===null||e===void 0}function p$(e){var t=Ia(e)&&!zp(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,s=r.length;for(a=0;a<s;a+=1)i=r[a],n=n||De(e,i);return t&&n}function h$(e){var t=Pn(e),n=!1;return t&&(n=e.filter(function(r){return!xr(r)&&Qy(e)}).length===0),t&&n}function m$(e){var t=Ia(e)&&!zp(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<r.length;a+=1)i=r[a],n=n||De(e,i);return t&&n}function g$(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function v$(e,t){arguments.length===1&&(arguments[0]?f$(arguments[0])?(e=arguments[0],t=void 0):m$(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ze(),r=rh(n,this).startOf("day"),a=j.calendarFormat(this,r)||"sameElse",i=t&&(er(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,Ze(n)))}function _$(){return new Lo(this)}function y$(e,t){var n=An(e)?e:Ze(e);return this.isValid()&&n.isValid()?(t=wn(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function b$(e,t){var n=An(e)?e:Ze(e);return this.isValid()&&n.isValid()?(t=wn(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function k$(e,t,n,r){var a=An(e)?e:Ze(e),i=An(t)?t:Ze(t);return this.isValid()&&a.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,n):!this.isBefore(a,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function w$(e,t){var n=An(e)?e:Ze(e),r;return this.isValid()&&n.isValid()?(t=wn(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function S$(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function x$(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function C$(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(r=rh(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=wn(t),t){case"year":i=Wl(this,r)/12;break;case"month":i=Wl(this,r);break;case"quarter":i=Wl(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:_n(i)}function Wl(e,t){if(e.date()<t.date())return-Wl(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),a,i;return t-r<0?(a=e.clone().add(n-1,"months"),i=(t-r)/(r-a)):(a=e.clone().add(n+1,"months"),i=(t-r)/(a-r)),-(n+i)||0}j.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";j.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function E$(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function T$(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?jl(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):er(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",jl(n,"Z")):jl(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function O$(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+a+i)}function M$(e){e||(e=this.isUtc()?j.defaultFormatUtc:j.defaultFormat);var t=jl(this,e);return this.localeData().postformat(t)}function N$(e,t){return this.isValid()&&(An(e)&&e.isValid()||Ze(e).isValid())?In({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function D$(e){return this.from(Ze(),e)}function P$(e,t){return this.isValid()&&(An(e)&&e.isValid()||Ze(e).isValid())?In({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function A$(e){return this.to(Ze(),e)}function eb(e){var t;return e===void 0?this._locale._abbr:(t=Tr(e),t!=null&&(this._locale=t),this)}var tb=kn("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function nb(){return this._locale}var _c=1e3,bi=60*_c,yc=60*bi,rb=(365*400+97)*24*yc;function ki(e,t){return(e%t+t)%t}function ab(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-rb:new Date(e,t,n).valueOf()}function ib(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-rb:Date.UTC(e,t,n)}function I$(e){var t,n;if(e=wn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ib:ab,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ki(t+(this._isUTC?0:this.utcOffset()*bi),yc);break;case"minute":t=this._d.valueOf(),t-=ki(t,bi);break;case"second":t=this._d.valueOf(),t-=ki(t,_c);break}return this._d.setTime(t),j.updateOffset(this,!0),this}function L$(e){var t,n;if(e=wn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ib:ab,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=yc-ki(t+(this._isUTC?0:this.utcOffset()*bi),yc)-1;break;case"minute":t=this._d.valueOf(),t+=bi-ki(t,bi)-1;break;case"second":t=this._d.valueOf(),t+=_c-ki(t,_c)-1;break}return this._d.setTime(t),j.updateOffset(this,!0),this}function R$(){return this._d.valueOf()-(this._offset||0)*6e4}function B$(){return Math.floor(this.valueOf()/1e3)}function V$(){return new Date(this.valueOf())}function $$(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function F$(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function z$(){return this.isValid()?this.toISOString():null}function j$(){return jp(this)}function H$(){return Yr({},me(this))}function W$(){return me(this).overflow}function U$(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ae("N",0,0,"eraAbbr");ae("NN",0,0,"eraAbbr");ae("NNN",0,0,"eraAbbr");ae("NNNN",0,0,"eraName");ae("NNNNN",0,0,"eraNarrow");ae("y",["y",1],"yo","eraYear");ae("y",["yy",2],0,"eraYear");ae("y",["yyy",3],0,"eraYear");ae("y",["yyyy",4],0,"eraYear");G("N",ah);G("NN",ah);G("NNN",ah);G("NNNN",nF);G("NNNNN",rF);$e(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?me(n).era=a:me(n).invalidEra=e});G("y",Yi);G("yy",Yi);G("yyy",Yi);G("yyyy",Yi);G("yo",aF);$e(["y","yy","yyy","yyyy"],Nt);$e(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Nt]=n._locale.eraYearOrdinalParse(e,a):t[Nt]=parseInt(e,10)});function Y$(e,t){var n,r,a,i=this._eras||Tr("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":a=j(i[n].since).startOf("day"),i[n].since=a.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":a=j(i[n].until).startOf("day").valueOf(),i[n].until=a.valueOf();break}}return i}function q$(e,t,n){var r,a,i=this.eras(),s,l,c;for(e=e.toUpperCase(),r=0,a=i.length;r<a;++r)if(s=i[r].name.toUpperCase(),l=i[r].abbr.toUpperCase(),c=i[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[r];break;case"NNNN":if(s===e)return i[r];break;case"NNNNN":if(c===e)return i[r];break}else if([s,l,c].indexOf(e)>=0)return i[r]}function G$(e,t){var n=e.since<=e.until?1:-1;return t===void 0?j(e.since).year():j(e.since).year()+(t-e.offset)*n}function X$(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function K$(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function J$(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function Z$(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-j(a[e].since).year())*n+a[e].offset;return this.year()}function Q$(e){return De(this,"_erasNameRegex")||ih.call(this),e?this._erasNameRegex:this._erasRegex}function eF(e){return De(this,"_erasAbbrRegex")||ih.call(this),e?this._erasAbbrRegex:this._erasRegex}function tF(e){return De(this,"_erasNarrowRegex")||ih.call(this),e?this._erasNarrowRegex:this._erasRegex}function ah(e,t){return t.erasAbbrRegex(e)}function nF(e,t){return t.erasNameRegex(e)}function rF(e,t){return t.erasNarrowRegex(e)}function aF(e,t){return t._eraYearOrdinalRegex||Yi}function ih(){var e=[],t=[],n=[],r=[],a,i,s=this.eras();for(a=0,i=s.length;a<i;++a)t.push(nn(s[a].name)),e.push(nn(s[a].abbr)),n.push(nn(s[a].narrow)),r.push(nn(s[a].name)),r.push(nn(s[a].abbr)),r.push(nn(s[a].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}ae(0,["gg",2],0,function(){return this.weekYear()%100});ae(0,["GG",2],0,function(){return this.isoWeekYear()%100});function iu(e,t){ae(0,[e,e.length],0,t)}iu("gggg","weekYear");iu("ggggg","weekYear");iu("GGGG","isoWeekYear");iu("GGGGG","isoWeekYear");Pt("weekYear","gg");Pt("isoWeekYear","GG");At("weekYear",1);At("isoWeekYear",1);G("G",eu);G("g",eu);G("GG",Qe,fn);G("gg",Qe,fn);G("GGGG",Gp,qp);G("gggg",Gp,qp);G("GGGGG",Qc,Jc);G("ggggg",Qc,Jc);Bo(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=be(e)});Bo(["gg","GG"],function(e,t,n,r){t[r]=j.parseTwoDigitYear(e)});function iF(e){return sb.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function sF(e){return sb.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function oF(){return yr(this.year(),1,4)}function lF(){return yr(this.isoWeekYear(),1,4)}function cF(){var e=this.localeData()._week;return yr(this.year(),e.dow,e.doy)}function uF(){var e=this.localeData()._week;return yr(this.weekYear(),e.dow,e.doy)}function sb(e,t,n,r,a){var i;return e==null?co(this,r,a).year:(i=yr(e,r,a),t>i&&(t=i),dF.call(this,e,t,n,r,a))}function dF(e,t,n,r,a){var i=$y(e,t,n,r,a),s=lo(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}ae("Q",0,"Qo","quarter");Pt("quarter","Q");At("quarter",7);G("Q",My);$e("Q",function(e,t){t[mr]=(be(e)-1)*3});function fF(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ae("D",["DD",2],"Do","date");Pt("date","D");At("date",9);G("D",Qe);G("DD",Qe,fn);G("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});$e(["D","DD"],Hn);$e("Do",function(e,t){t[Hn]=be(e.match(Qe)[0])});var ob=Ui("Date",!0);ae("DDD",["DDDD",3],"DDDo","dayOfYear");Pt("dayOfYear","DDD");At("dayOfYear",4);G("DDD",Zc);G("DDDD",Ny);$e(["DDD","DDDD"],function(e,t,n){n._dayOfYear=be(e)});function pF(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ae("m",["mm",2],0,"minute");Pt("minute","m");At("minute",14);G("m",Qe);G("mm",Qe,fn);$e(["m","mm"],Tn);var hF=Ui("Minutes",!1);ae("s",["ss",2],0,"second");Pt("second","s");At("second",15);G("s",Qe);G("ss",Qe,fn);$e(["s","ss"],gr);var mF=Ui("Seconds",!1);ae("S",0,0,function(){return~~(this.millisecond()/100)});ae(0,["SS",2],0,function(){return~~(this.millisecond()/10)});ae(0,["SSS",3],0,"millisecond");ae(0,["SSSS",4],0,function(){return this.millisecond()*10});ae(0,["SSSSS",5],0,function(){return this.millisecond()*100});ae(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});ae(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});ae(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});ae(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Pt("millisecond","ms");At("millisecond",16);G("S",Zc,My);G("SS",Zc,fn);G("SSS",Zc,Ny);var qr,lb;for(qr="SSSS";qr.length<=9;qr+="S")G(qr,Yi);function gF(e,t){t[Ma]=be(("0."+e)*1e3)}for(qr="S";qr.length<=9;qr+="S")$e(qr,gF);lb=Ui("Milliseconds",!1);ae("z",0,0,"zoneAbbr");ae("zz",0,0,"zoneName");function vF(){return this._isUTC?"UTC":""}function _F(){return this._isUTC?"Coordinated Universal Time":""}var F=Lo.prototype;F.add=u$;F.calendar=v$;F.clone=_$;F.diff=C$;F.endOf=L$;F.format=M$;F.from=N$;F.fromNow=D$;F.to=P$;F.toNow=A$;F.get=bB;F.invalidAt=W$;F.isAfter=y$;F.isBefore=b$;F.isBetween=k$;F.isSame=w$;F.isSameOrAfter=S$;F.isSameOrBefore=x$;F.isValid=j$;F.lang=tb;F.locale=eb;F.localeData=nb;F.max=jV;F.min=zV;F.parsingFlags=H$;F.set=kB;F.startOf=I$;F.subtract=d$;F.toArray=$$;F.toObject=F$;F.toDate=V$;F.toISOString=T$;F.inspect=O$;typeof Symbol<"u"&&Symbol.for!=null&&(F[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});F.toJSON=z$;F.toString=E$;F.unix=B$;F.valueOf=R$;F.creationData=U$;F.eraName=X$;F.eraNarrow=K$;F.eraAbbr=J$;F.eraYear=Z$;F.year=Vy;F.isLeapYear=FB;F.weekYear=iF;F.isoWeekYear=sF;F.quarter=F.quarters=fF;F.month=Ry;F.daysInMonth=BB;F.week=F.weeks=YB;F.isoWeek=F.isoWeeks=qB;F.weeksInYear=cF;F.weeksInWeekYear=uF;F.isoWeeksInYear=oF;F.isoWeeksInISOWeekYear=lF;F.date=ob;F.day=F.days=sV;F.weekday=oV;F.isoWeekday=lV;F.dayOfYear=pF;F.hour=F.hours=mV;F.minute=F.minutes=hF;F.second=F.seconds=mF;F.millisecond=F.milliseconds=lb;F.utcOffset=JV;F.utc=QV;F.local=e$;F.parseZone=t$;F.hasAlignedHourOffset=n$;F.isDST=r$;F.isLocal=i$;F.isUtcOffset=s$;F.isUtc=Ky;F.isUTC=Ky;F.zoneAbbr=vF;F.zoneName=_F;F.dates=kn("dates accessor is deprecated. Use date instead.",ob);F.months=kn("months accessor is deprecated. Use month instead",Ry);F.years=kn("years accessor is deprecated. Use year instead",Vy);F.zone=kn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ZV);F.isDSTShifted=kn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",a$);function yF(e){return Ze(e*1e3)}function bF(){return Ze.apply(null,arguments).parseZone()}function cb(e){return e}var Pe=Wp.prototype;Pe.calendar=sB;Pe.longDateFormat=uB;Pe.invalidDate=fB;Pe.ordinal=mB;Pe.preparse=cb;Pe.postformat=cb;Pe.relativeTime=vB;Pe.pastFuture=_B;Pe.set=aB;Pe.eras=Y$;Pe.erasParse=q$;Pe.erasConvertYear=G$;Pe.erasAbbrRegex=eF;Pe.erasNameRegex=Q$;Pe.erasNarrowRegex=tF;Pe.months=AB;Pe.monthsShort=IB;Pe.monthsParse=RB;Pe.monthsRegex=$B;Pe.monthsShortRegex=VB;Pe.week=jB;Pe.firstDayOfYear=UB;Pe.firstDayOfWeek=WB;Pe.weekdays=tV;Pe.weekdaysMin=rV;Pe.weekdaysShort=nV;Pe.weekdaysParse=iV;Pe.weekdaysRegex=cV;Pe.weekdaysShortRegex=uV;Pe.weekdaysMinRegex=dV;Pe.isPM=pV;Pe.meridiem=gV;function bc(e,t,n,r){var a=Tr(),i=Qn().set(r,t);return a[n](i,e)}function ub(e,t,n){if(xr(e)&&(t=e,e=void 0),e=e||"",t!=null)return bc(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=bc(e,r,n,"month");return a}function sh(e,t,n,r){typeof e=="boolean"?(xr(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,xr(t)&&(n=t,t=void 0),t=t||"");var a=Tr(),i=e?a._week.dow:0,s,l=[];if(n!=null)return bc(t,(n+i)%7,r,"day");for(s=0;s<7;s++)l[s]=bc(t,(s+i)%7,r,"day");return l}function kF(e,t){return ub(e,t,"months")}function wF(e,t){return ub(e,t,"monthsShort")}function SF(e,t,n){return sh(e,t,n,"weekdays")}function xF(e,t,n){return sh(e,t,n,"weekdaysShort")}function CF(e,t,n){return sh(e,t,n,"weekdaysMin")}Kr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=be(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});j.lang=kn("moment.lang is deprecated. Use moment.locale instead.",Kr);j.langData=kn("moment.langData is deprecated. Use moment.localeData instead.",Tr);var ar=Math.abs;function EF(){var e=this._data;return this._milliseconds=ar(this._milliseconds),this._days=ar(this._days),this._months=ar(this._months),e.milliseconds=ar(e.milliseconds),e.seconds=ar(e.seconds),e.minutes=ar(e.minutes),e.hours=ar(e.hours),e.months=ar(e.months),e.years=ar(e.years),this}function db(e,t,n,r){var a=In(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function TF(e,t){return db(this,e,t,1)}function OF(e,t){return db(this,e,t,-1)}function V0(e){return e<0?Math.floor(e):Math.ceil(e)}function MF(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,a,i,s,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=V0(ff(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,a=_n(e/1e3),r.seconds=a%60,i=_n(a/60),r.minutes=i%60,s=_n(i/60),r.hours=s%24,t+=_n(s/24),c=_n(fb(t)),n+=c,t-=V0(ff(c)),l=_n(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function fb(e){return e*4800/146097}function ff(e){return e*146097/4800}function NF(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=wn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+fb(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(ff(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function DF(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+be(this._months/12)*31536e6:NaN}function Or(e){return function(){return this.as(e)}}var PF=Or("ms"),AF=Or("s"),IF=Or("m"),LF=Or("h"),RF=Or("d"),BF=Or("w"),VF=Or("M"),$F=Or("Q"),FF=Or("y");function zF(){return In(this)}function jF(e){return e=wn(e),this.isValid()?this[e+"s"]():NaN}function Za(e){return function(){return this.isValid()?this._data[e]:NaN}}var HF=Za("milliseconds"),WF=Za("seconds"),UF=Za("minutes"),YF=Za("hours"),qF=Za("days"),GF=Za("months"),XF=Za("years");function KF(){return _n(this.days()/7)}var cr=Math.round,gi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function JF(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function ZF(e,t,n,r){var a=In(e).abs(),i=cr(a.as("s")),s=cr(a.as("m")),l=cr(a.as("h")),c=cr(a.as("d")),u=cr(a.as("M")),d=cr(a.as("w")),f=cr(a.as("y")),p=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||s<=1&&["m"]||s<n.m&&["mm",s]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(p=p||d<=1&&["w"]||d<n.w&&["ww",d]),p=p||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f],p[2]=t,p[3]=+e>0,p[4]=r,JF.apply(null,p)}function QF(e){return e===void 0?cr:typeof e=="function"?(cr=e,!0):!1}function ez(e,t){return gi[e]===void 0?!1:t===void 0?gi[e]:(gi[e]=t,e==="s"&&(gi.ss=t-1),!0)}function tz(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=gi,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},gi,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),i=ZF(this,!n,r,a),n&&(i=a.pastFuture(+this,i)),a.postformat(i)}var nd=Math.abs;function li(e){return(e>0)-(e<0)||+e}function su(){if(!this.isValid())return this.localeData().invalidDate();var e=nd(this._milliseconds)/1e3,t=nd(this._days),n=nd(this._months),r,a,i,s,l=this.asSeconds(),c,u,d,f;return l?(r=_n(e/60),a=_n(r/60),e%=60,r%=60,i=_n(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=li(this._months)!==li(l)?"-":"",d=li(this._days)!==li(l)?"-":"",f=li(this._milliseconds)!==li(l)?"-":"",c+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(a||r||e?"T":"")+(a?f+a+"H":"")+(r?f+r+"M":"")+(e?f+s+"S":"")):"P0D"}var Oe=au.prototype;Oe.isValid=qV;Oe.abs=EF;Oe.add=TF;Oe.subtract=OF;Oe.as=NF;Oe.asMilliseconds=PF;Oe.asSeconds=AF;Oe.asMinutes=IF;Oe.asHours=LF;Oe.asDays=RF;Oe.asWeeks=BF;Oe.asMonths=VF;Oe.asQuarters=$F;Oe.asYears=FF;Oe.valueOf=DF;Oe._bubble=MF;Oe.clone=zF;Oe.get=jF;Oe.milliseconds=HF;Oe.seconds=WF;Oe.minutes=UF;Oe.hours=YF;Oe.days=qF;Oe.weeks=KF;Oe.months=GF;Oe.years=XF;Oe.humanize=tz;Oe.toISOString=su;Oe.toString=su;Oe.toJSON=su;Oe.locale=eb;Oe.localeData=nb;Oe.toIsoString=kn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",su);Oe.lang=tb;ae("X",0,0,"unix");ae("x",0,0,"valueOf");G("x",eu);G("X",SB);$e("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});$e("x",function(e,t,n){n._d=new Date(be(e))});//! moment.js
840
+ j.version="2.29.4";nB(Ze);j.fn=F;j.min=HV;j.max=WV;j.now=UV;j.utc=Qn;j.unix=yF;j.months=kF;j.isDate=Io;j.locale=Kr;j.invalid=Xc;j.duration=In;j.isMoment=An;j.weekdays=SF;j.parseZone=bF;j.localeData=Tr;j.isDuration=Hl;j.monthsShort=wF;j.weekdaysMin=CF;j.defineLocale=Zp;j.updateLocale=bV;j.locales=kV;j.weekdaysShort=xF;j.normalizeUnits=wn;j.relativeTimeRounding=QF;j.relativeTimeThreshold=ez;j.calendarFormat=g$;j.prototype=F;j.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};/*!
841
+ * chartjs-adapter-moment v1.0.1
842
+ * https://www.chartjs.org
843
+ * (c) 2022 chartjs-adapter-moment Contributors
844
+ * Released under the MIT license
845
+ */const nz={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};M_._date.override(typeof j=="function"?{_id:"moment",formats:function(){return nz},parse:function(e,t){return typeof e=="string"&&typeof t=="string"?e=j(e,t):e instanceof j||(e=j(e)),e.isValid()?e.valueOf():null},format:function(e,t){return j(e).format(t)},add:function(e,t,n){return j(e).add(t,n).valueOf()},diff:function(e,t,n){return j(e).diff(j(t),n)},startOf:function(e,t,n){return e=j(e),t==="isoWeek"?(n=Math.trunc(Math.min(Math.max(0,n),6)),e.isoWeekday(n).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return j(e).endOf(t).valueOf()}}:{});/*!
846
+ * chartjs-plugin-datalabels v2.2.0
847
+ * https://chartjs-plugin-datalabels.netlify.app
848
+ * (c) 2017-2022 chartjs-plugin-datalabels contributors
849
+ * Released under the MIT license
850
+ */var $0=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),Bs={toTextLines:function(e){var t=[],n;for(e=[].concat(e);e.length;)n=e.pop(),typeof n=="string"?t.unshift.apply(t,n.split(`
851
+ `)):Array.isArray(n)?e.push.apply(e,n):ye(e)||t.unshift(""+n);return t},textSize:function(e,t,n){var r=[].concat(t),a=r.length,i=e.font,s=0,l;for(e.font=n.string,l=0;l<a;++l)s=Math.max(e.measureText(r[l]).width,s);return e.font=i,{height:a*n.lineHeight,width:s}},bound:function(e,t,n){return Math.max(e,Math.min(t,n))},arrayDiff:function(e,t){var n=e.slice(),r=[],a,i,s,l;for(a=0,s=t.length;a<s;++a)l=t[a],i=n.indexOf(l),i===-1?r.push([l,1]):n.splice(i,1);for(a=0,s=n.length;a<s;++a)r.push([n[a],-1]);return r},rasterize:function(e){return Math.round(e*$0)/$0}};function rd(e,t){var n=t.x,r=t.y;if(n===null)return{x:0,y:-1};if(r===null)return{x:1,y:0};var a=e.x-n,i=e.y-r,s=Math.sqrt(a*a+i*i);return{x:s?a/s:0,y:s?i/s:-1}}function rz(e,t,n,r,a){switch(a){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:a*=Math.PI/180,n=Math.cos(a),r=Math.sin(a);break}return{x:e,y:t,vx:n,vy:r}}var az=0,pb=1,hb=2,mb=4,gb=8;function xl(e,t,n){var r=az;return e<n.left?r|=pb:e>n.right&&(r|=hb),t<n.top?r|=gb:t>n.bottom&&(r|=mb),r}function iz(e,t){for(var n=e.x0,r=e.y0,a=e.x1,i=e.y1,s=xl(n,r,t),l=xl(a,i,t),c,u,d;!(!(s|l)||s&l);)c=s||l,c&gb?(u=n+(a-n)*(t.top-r)/(i-r),d=t.top):c&mb?(u=n+(a-n)*(t.bottom-r)/(i-r),d=t.bottom):c&hb?(d=r+(i-r)*(t.right-n)/(a-n),u=t.right):c&pb&&(d=r+(i-r)*(t.left-n)/(a-n),u=t.left),c===s?(n=u,r=d,s=xl(n,r,t)):(a=u,i=d,l=xl(a,i,t));return{x0:n,x1:a,y0:r,y1:i}}function Cl(e,t){var n=t.anchor,r=e,a,i;return t.clamp&&(r=iz(r,t.area)),n==="start"?(a=r.x0,i=r.y0):n==="end"?(a=r.x1,i=r.y1):(a=(r.x0+r.x1)/2,i=(r.y0+r.y1)/2),rz(a,i,e.vx,e.vy,t.align)}var El={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),a=Math.sin(n),i=e.innerRadius,s=e.outerRadius;return Cl({x0:e.x+r*i,y0:e.y+a*i,x1:e.x+r*s,y1:e.y+a*s,vx:r,vy:a},t)},point:function(e,t){var n=rd(e,t.origin),r=n.x*e.options.radius,a=n.y*e.options.radius;return Cl({x0:e.x-r,y0:e.y-a,x1:e.x+r,y1:e.y+a,vx:n.x,vy:n.y},t)},bar:function(e,t){var n=rd(e,t.origin),r=e.x,a=e.y,i=0,s=0;return e.horizontal?(r=Math.min(e.x,e.base),i=Math.abs(e.base-e.x)):(a=Math.min(e.y,e.base),s=Math.abs(e.base-e.y)),Cl({x0:r,y0:a+s,x1:r+i,y1:a,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=rd(e,t.origin);return Cl({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)}},vr=Bs.rasterize;function sz(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,a=e.size.width,i=-a/2,s=-r/2;return{frame:{x:i-n.left-t,y:s-n.top-t,w:a+n.width+t*2,h:r+n.height+t*2},text:{x:i,y:s,w:a,h:r}}}function oz(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return e.horizontal?{x:r,y:null}:{x:null,y:r}}function lz(e){return e instanceof mi?El.arc:e instanceof Ps?El.point:e instanceof As?El.bar:El.fallback}function cz(e,t,n,r,a,i){var s=Math.PI/2;if(i){var l=Math.min(i,a/2,r/2),c=t+l,u=n+l,d=t+r-l,f=n+a-l;e.moveTo(t,u),c<d&&u<f?(e.arc(c,u,l,-Math.PI,-s),e.arc(d,u,l,-s,0),e.arc(d,f,l,0,s),e.arc(c,f,l,s,Math.PI)):c<d?(e.moveTo(c,n),e.arc(d,u,l,-s,s),e.arc(c,u,l,s,Math.PI+s)):u<f?(e.arc(c,u,l,-Math.PI,0),e.arc(c,f,l,0,Math.PI)):e.arc(c,u,l,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,a)}function uz(e,t,n){var r=n.backgroundColor,a=n.borderColor,i=n.borderWidth;!r&&(!a||!i)||(e.beginPath(),cz(e,vr(t.x)+i/2,vr(t.y)+i/2,vr(t.w)-i,vr(t.h)-i,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),a&&i&&(e.strokeStyle=a,e.lineWidth=i,e.lineJoin="miter",e.stroke()))}function dz(e,t,n){var r=n.lineHeight,a=e.w,i=e.x,s=e.y+r/2;return t==="center"?i+=a/2:(t==="end"||t==="right")&&(i+=a),{h:r,w:a,x:i,y:s}}function fz(e,t,n){var r=e.shadowBlur,a=n.stroked,i=vr(n.x),s=vr(n.y),l=vr(n.w);a&&e.strokeText(t,i,s,l),n.filled&&(r&&a&&(e.shadowBlur=0),e.fillText(t,i,s,l),r&&a&&(e.shadowBlur=r))}function pz(e,t,n,r){var a=r.textAlign,i=r.color,s=!!i,l=r.font,c=t.length,u=r.textStrokeColor,d=r.textStrokeWidth,f=u&&d,p;if(!(!c||!s&&!f))for(n=dz(n,a,l),e.font=l.string,e.textAlign=a,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,s&&(e.fillStyle=i),f&&(e.lineJoin="round",e.lineWidth=d,e.strokeStyle=u),p=0,c=t.length;p<c;++p)fz(e,t[p],{stroked:f,filled:s,w:n.w,x:n.x,y:n.y+n.h*p})}var vb=function(e,t,n,r){var a=this;a._config=e,a._index=r,a._model=null,a._rects=null,a._ctx=t,a._el=n};Xn(vb.prototype,{_modelize:function(e,t,n,r){var a=this,i=a._index,s=it(Ge([n.font,{}],r,i)),l=Ge([n.color,at.color],r,i);return{align:Ge([n.align,"center"],r,i),anchor:Ge([n.anchor,"center"],r,i),area:r.chart.chartArea,backgroundColor:Ge([n.backgroundColor,null],r,i),borderColor:Ge([n.borderColor,null],r,i),borderRadius:Ge([n.borderRadius,0],r,i),borderWidth:Ge([n.borderWidth,0],r,i),clamp:Ge([n.clamp,!1],r,i),clip:Ge([n.clip,!1],r,i),color:l,display:e,font:s,lines:t,offset:Ge([n.offset,4],r,i),opacity:Ge([n.opacity,1],r,i),origin:oz(a._el,r),padding:pt(Ge([n.padding,4],r,i)),positioner:lz(a._el),rotation:Ge([n.rotation,0],r,i)*(Math.PI/180),size:Bs.textSize(a._ctx,t,s),textAlign:Ge([n.textAlign,"start"],r,i),textShadowBlur:Ge([n.textShadowBlur,0],r,i),textShadowColor:Ge([n.textShadowColor,l],r,i),textStrokeColor:Ge([n.textStrokeColor,l],r,i),textStrokeWidth:Ge([n.textStrokeWidth,0],r,i)}},update:function(e){var t=this,n=null,r=null,a=t._index,i=t._config,s,l,c,u=Ge([i.display,!0],e,a);u&&(s=e.dataset.data[a],l=le(Ie(i.formatter,[s,e]),s),c=ye(l)?[]:Bs.toTextLines(l),c.length&&(n=t._modelize(u,c,i,e),r=sz(n))),t._model=n,t._rects=r},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n=this,r=e.ctx,a=n._model,i=n._rects,s;this.visible()&&(r.save(),a.clip&&(s=a.area,r.beginPath(),r.rect(s.left,s.top,s.right-s.left,s.bottom-s.top),r.clip()),r.globalAlpha=Bs.bound(0,a.opacity,1),r.translate(vr(t.x),vr(t.y)),r.rotate(a.rotation),uz(r,i.frame,a),pz(r,a.lines,i.text,a),r.restore())}});var hz=Number.MIN_SAFE_INTEGER||-9007199254740991,mz=Number.MAX_SAFE_INTEGER||9007199254740991;function fs(e,t,n){var r=Math.cos(n),a=Math.sin(n),i=t.x,s=t.y;return{x:i+r*(e.x-i)-a*(e.y-s),y:s+a*(e.x-i)+r*(e.y-s)}}function F0(e,t){var n=mz,r=hz,a=t.origin,i,s,l,c,u;for(i=0;i<e.length;++i)s=e[i],l=s.x-a.x,c=s.y-a.y,u=t.vx*l+t.vy*c,n=Math.min(n,u),r=Math.max(r,u);return{min:n,max:r}}function Tl(e,t){var n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/a,vy:(t.y-e.y)/a,origin:e,ln:a}}var _b=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};Xn(_b.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,n=1,r=t._rect;return e=fs(e,t.center(),-t._rotation),!(e.x<r.x-n||e.y<r.y-n||e.x>r.x+r.w+n*2||e.y>r.y+r.h+n*2)},intersects:function(e){var t=this._points(),n=e._points(),r=[Tl(t[0],t[1]),Tl(t[0],t[3])],a,i,s;for(this._rotation!==e._rotation&&r.push(Tl(n[0],n[1]),Tl(n[0],n[3])),a=0;a<r.length;++a)if(i=F0(t,r[a]),s=F0(n,r[a]),i.max<s.min||s.max<i.min)return!1;return!0},_points:function(){var e=this,t=e._rect,n=e._rotation,r=e.center();return[fs({x:t.x,y:t.y},r,n),fs({x:t.x+t.w,y:t.y},r,n),fs({x:t.x+t.w,y:t.y+t.h},r,n),fs({x:t.x,y:t.y+t.h},r,n)]}});function yb(e,t,n){var r=t.positioner(e,t),a=r.vx,i=r.vy;if(!a&&!i)return{x:r.x,y:r.y};var s=n.w,l=n.h,c=t.rotation,u=Math.abs(s/2*Math.cos(c))+Math.abs(l/2*Math.sin(c)),d=Math.abs(s/2*Math.sin(c))+Math.abs(l/2*Math.cos(c)),f=1/Math.max(Math.abs(a),Math.abs(i));return u*=a*f,d*=i*f,u+=t.offset*a,d+=t.offset*i,{x:r.x+u,y:r.y+d}}function gz(e,t){var n,r,a,i;for(n=e.length-1;n>=0;--n)for(a=e[n].$layout,r=n-1;r>=0&&a._visible;--r)i=e[r].$layout,i._visible&&a._box.intersects(i._box)&&t(a,i);return e}function vz(e){var t,n,r,a,i,s,l;for(t=0,n=e.length;t<n;++t)r=e[t],a=r.$layout,a._visible&&(l=new Proxy(r._el,{get:(c,u)=>c.getProps([u],!0)[u]}),i=r.geometry(),s=yb(l,r.model(),i),a._box.update(s,i,r.rotation()));return gz(e,function(c,u){var d=c._hidable,f=u._hidable;d&&f||f?u._visible=!1:d&&(c._visible=!1)})}var Vs={prepare:function(e){var t=[],n,r,a,i,s;for(n=0,a=e.length;n<a;++n)for(r=0,i=e[n].length;r<i;++r)s=e[n][r],t.push(s),s.$layout={_box:new _b,_hidable:!1,_visible:!0,_set:n,_idx:s._index};return t.sort(function(l,c){var u=l.$layout,d=c.$layout;return u._idx===d._idx?d._set-u._set:d._idx-u._idx}),this.update(t),t},update:function(e){var t=!1,n,r,a,i,s;for(n=0,r=e.length;n<r;++n)a=e[n],i=a.model(),s=a.$layout,s._hidable=i&&i.display==="auto",s._visible=a.visible(),t|=s._hidable;t&&vz(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if(r=e[n].$layout,r&&r._visible&&r._box.contains(t))return e[n];return null},draw:function(e,t){var n,r,a,i,s,l;for(n=0,r=t.length;n<r;++n)a=t[n],i=a.$layout,i._visible&&(s=a.geometry(),l=yb(a._el,a.model(),s),i._box.update(l,s,a.rotation()),a.draw(e,l))}},_z=function(e){if(ye(e))return null;var t=e,n,r,a;if(he(e))if(!ye(e.label))t=e.label;else if(!ye(e.r))t=e.r;else for(t="",n=Object.keys(e),a=0,r=n.length;a<r;++a)t+=(a!==0?", ":"")+n[a]+": "+e[n[a]];return""+t},yz={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:_z,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},Ht="$datalabels",bb="$default";function bz(e,t){var n=e.datalabels,r={},a=[],i,s;return n===!1?null:(n===!0&&(n={}),t=Xn({},[t,n]),i=t.labels||{},s=Object.keys(i),delete t.labels,s.length?s.forEach(function(l){i[l]&&a.push(Xn({},[t,i[l],{_key:l}]))}):a.push(t),r=a.reduce(function(l,c){return Le(c.listeners||{},function(u,d){l[d]=l[d]||{},l[d][c._key||bb]=u}),delete c.listeners,l},{}),{labels:a,listeners:r})}function pf(e,t,n,r){if(t){var a=n.$context,i=n.$groups,s;t[i._set]&&(s=t[i._set][i._key],s&&Ie(s,[a,r])===!0&&(e[Ht]._dirty=!0,n.update(a)))}}function kz(e,t,n,r,a){var i,s;!n&&!r||(n?r?n!==r&&(s=i=!0):s=!0:i=!0,s&&pf(e,t.leave,n,a),i&&pf(e,t.enter,r,a))}function wz(e,t){var n=e[Ht],r=n._listeners,a,i;if(!(!r.enter&&!r.leave)){if(t.type==="mousemove")i=Vs.lookup(n._labels,t);else if(t.type!=="mouseout")return;a=n._hovered,n._hovered=i,kz(e,r,a,i,t)}}function Sz(e,t){var n=e[Ht],r=n._listeners.click,a=r&&Vs.lookup(n._labels,t);a&&pf(e,r,a,t)}var ou={id:"datalabels",defaults:yz,beforeInit:function(e){e[Ht]={_actives:[]}},beforeUpdate:function(e){var t=e[Ht];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r=t.index,a=e[Ht],i=a._datasets[r]=[],s=e.isDatasetVisible(r),l=e.data.datasets[r],c=bz(l,n),u=t.meta.data||[],d=e.ctx,f,p,h,g,v,b,m,_;for(d.save(),f=0,h=u.length;f<h;++f)if(m=u[f],m[Ht]=[],s&&m&&e.getDataVisibility(f)&&!m.skip)for(p=0,g=c.labels.length;p<g;++p)v=c.labels[p],b=v._key,_=new vb(v,d,m,f),_.$groups={_set:r,_key:b||bb},_.$context={active:!1,chart:e,dataIndex:f,dataset:l,datasetIndex:r},_.update(_.$context),m[Ht].push(_),i.push(_);d.restore(),Xn(a._listeners,c.listeners,{merger:function(k,y,w){y[k]=y[k]||{},y[k][t.index]=w[k],a._listened=!0}})},afterUpdate:function(e){e[Ht]._labels=Vs.prepare(e[Ht]._datasets)},afterDatasetsDraw:function(e){Vs.draw(e,e[Ht]._labels)},beforeEvent:function(e,t){if(e[Ht]._listened){var n=t.event;switch(n.type){case"mousemove":case"mouseout":wz(e,n);break;case"click":Sz(e,n);break}}},afterEvent:function(e){var t=e[Ht],n=t._actives,r=t._actives=e.getActiveElements(),a=Bs.arrayDiff(n,r),i,s,l,c,u,d,f;for(i=0,s=a.length;i<s;++i)if(u=a[i],u[1])for(f=u[0].element[Ht]||[],l=0,c=f.length;l<c;++l)d=f[l],d.$context.active=u[1]===1,d.update(d.$context);(t._dirty||a.length)&&(Vs.update(t._labels),e.render()),delete t._dirty}};/*!
852
+ * chartjs-plugin-annotation v2.2.1
853
+ * https://www.chartjs.org/chartjs-plugin-annotation/index
854
+ * (c) 2023 chartjs-plugin-annotation Contributors
855
+ * Released under the MIT License
856
+ */const z0={modes:{point(e,t){return Ul(e,t,{intersect:!0})},nearest(e,t,n){return Ez(e,t,n)},x(e,t,n){return Ul(e,t,{intersect:n.intersect,axis:"x"})},y(e,t,n){return Ul(e,t,{intersect:n.intersect,axis:"y"})}}};function oh(e,t,n){return(z0.modes[n.mode]||z0.modes.nearest)(e,t,n)}function xz(e,t,n){return n!=="x"&&n!=="y"?e.inRange(t.x,t.y,"x",!0)||e.inRange(t.x,t.y,"y",!0):e.inRange(t.x,t.y,n,!0)}function Cz(e,t,n){return n==="x"?{x:e.x,y:t.y}:n==="y"?{x:t.x,y:e.y}:t}function Ul(e,t,n){return e.visibleElements.filter(r=>n.intersect?r.inRange(t.x,t.y):xz(r,t,n.axis))}function Ez(e,t,n){let r=Number.POSITIVE_INFINITY;return Ul(e,t,n).reduce((a,i)=>{const s=i.getCenterPoint(),l=Cz(t,s,n.axis),c=Ai(t,l);return c<r?(a=[i],r=c):c===r&&a.push(i),a},[]).sort((a,i)=>a._index-i._index).slice(0,1)}const Tz=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,Na=.001,lu=(e,t,n)=>Math.min(n,Math.max(t,e));function Oz(e,t,n){for(const r of Object.keys(e))e[r]=lu(e[r],t,n);return e}function Mz(e,t,n,r){if(!e||!t||n<=0)return!1;const a=r/2;return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(n+a,2)}function kb(e,{x:t,y:n,x2:r,y2:a},i,s){const l=s/2,c=e.x>=t-l-Na&&e.x<=r+l+Na,u=e.y>=n-l-Na&&e.y<=a+l+Na;return i==="x"?c:(i==="y"||c)&&u}function qi(e,t){const{centerX:n,centerY:r}=e.getProps(["centerX","centerY"],t);return{x:n,y:r}}function Nz(e,t,n,r=!0){const a=n.split(".");let i=0;for(const s of t.split(".")){const l=a[i++];if(parseInt(s,10)<parseInt(l,10))break;if(Tz(l,s)){if(r)throw new Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}const wb=e=>typeof e=="string"&&e.endsWith("%"),Sb=e=>parseFloat(e)/100,xb=e=>lu(Sb(e),0,1);function lh(e,t){return t==="start"?0:t==="end"?e:wb(t)?xb(t)*e:e/2}function ia(e,t,n=!0){return typeof t=="number"?t:wb(t)?(n?xb(t):Sb(t))*e:e}function Dz(e,t){const{x:n,width:r}=e,a=t.textAlign;return a==="center"?n+r/2:a==="end"||a==="right"?n+r:n}function ch(e,t="center"){return he(e)?{x:le(e.x,t),y:le(e.y,t)}:(e=le(e,t),{x:e,y:e})}function Cb(e){return e&&(Kt(e.xValue)||Kt(e.yValue))}function Vo(e,t,n,r=!1){const a=n.init;if(a){if(a===!0)return Tb(t,r)}else return;return Pz(t,r,Ie(a,[{chart:e,properties:t,options:n}]))}function Eb(e,t,n){let r=!1;return t.forEach(a=>{Xt(e[a])?(r=!0,n[a]=e[a]):Kt(n[a])&&delete n[a]}),r}function Tb({centerX:e,centerY:t},n){return n?{centerX:e,centerY:t,radius:0,width:0,height:0}:{x:e,y:t,x2:e,y2:t,width:0,height:0}}function Pz(e,t,n){if(n===!0)return Tb(e,t);if(he(n))return n}const ad=new Map,Az=e=>isNaN(e)||e<=0,Iz=e=>e.reduce(function(t,n){return t+=n.string,t},"");function cu(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object HTMLImageElement]"||t==="[object HTMLCanvasElement]"}}function uh(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(ht(r)),e.translate(-t,-n))}function sa(e,t){if(t&&t.borderWidth)return e.lineCap=t.borderCapStyle,e.setLineDash(t.borderDash),e.lineDashOffset=t.borderDashOffset,e.lineJoin=t.borderJoinStyle,e.lineWidth=t.borderWidth,e.strokeStyle=t.borderColor,!0}function Gi(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function dh(e,t){const n=t.content;if(cu(n))return{width:ia(n.width,t.width),height:ia(n.height,t.height)};const r=t.font,a=Ne(r)?r.map(c=>it(c)):[it(r)],i=t.textStrokeWidth,s=Ne(n)?n:[n],l=s.join()+Iz(a)+i+(e._measureText?"-spriting":"");return ad.has(l)||ad.set(l,$z(e,s,a,i)),ad.get(l)}function Ob(e,t,n){const{x:r,y:a,width:i,height:s}=t;e.save(),Gi(e,n);const l=sa(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),Ii(e,{x:r,y:a,w:i,h:s,radius:Oz(Xr(n.borderRadius),0,Math.min(i,s)/2)}),e.closePath(),e.fill(),l&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function Lz(e,t,n){const r=n.content;if(cu(r)){e.save(),e.globalAlpha=jz(n.opacity,r.style.opacity),e.drawImage(r,t.x,t.y,t.width,t.height),e.restore();return}const a=Ne(r)?r:[r],i=n.font,s=Ne(i)?i.map(f=>it(f)):[it(i)],l=n.color,c=Ne(l)?l:[l],u=Dz(t,n),d=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline="middle",e.textAlign=n.textAlign,Rz(e,n)&&Fz(e,{x:u,y:d},a,s),zz(e,{x:u,y:d},a,{fonts:s,colors:c}),e.restore()}function Rz(e,t){if(t.textStrokeWidth>0)return e.lineJoin="round",e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function Bz(e,t,n,r){const{radius:a,options:i}=t,s=i.pointStyle,l=i.rotation;let c=(l||0)*bp;if(cu(s)){e.save(),e.translate(n,r),e.rotate(c),e.drawImage(s,-s.width/2,-s.height/2,s.width,s.height),e.restore();return}Az(a)||Vz(e,{x:n,y:r,radius:a,rotation:l,style:s,rad:c})}function Vz(e,{x:t,y:n,radius:r,rotation:a,style:i,rad:s}){let l,c,u,d;switch(e.beginPath(),i){default:e.arc(t,n,r,0,We),e.closePath();break;case"triangle":e.moveTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=sc,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=sc,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),e.closePath();break;case"rectRounded":d=r*.516,u=r-d,l=Math.cos(s+vn)*u,c=Math.sin(s+vn)*u,e.arc(t-l,n-c,d,s-Ee,s-Ue),e.arc(t+c,n-l,d,s-Ue,s),e.arc(t+l,n+c,d,s,s+Ue),e.arc(t-c,n+l,d,s+Ue,s+Ee),e.closePath();break;case"rect":if(!a){u=Math.SQRT1_2*r,e.rect(t-u,n-u,2*u,2*u);break}s+=vn;case"rectRot":l=Math.cos(s)*r,c=Math.sin(s)*r,e.moveTo(t-l,n-c),e.lineTo(t+c,n-l),e.lineTo(t+l,n+c),e.lineTo(t-c,n+l),e.closePath();break;case"crossRot":s+=vn;case"cross":l=Math.cos(s)*r,c=Math.sin(s)*r,e.moveTo(t-l,n-c),e.lineTo(t+l,n+c),e.moveTo(t+c,n-l),e.lineTo(t-c,n+l);break;case"star":l=Math.cos(s)*r,c=Math.sin(s)*r,e.moveTo(t-l,n-c),e.lineTo(t+l,n+c),e.moveTo(t+c,n-l),e.lineTo(t-c,n+l),s+=vn,l=Math.cos(s)*r,c=Math.sin(s)*r,e.moveTo(t-l,n-c),e.lineTo(t+l,n+c),e.moveTo(t+c,n-l),e.lineTo(t-c,n+l);break;case"line":l=Math.cos(s)*r,c=Math.sin(s)*r,e.moveTo(t-l,n-c),e.lineTo(t+l,n+c);break;case"dash":e.moveTo(t,n),e.lineTo(t+Math.cos(s)*r,n+Math.sin(s)*r);break}e.fill()}function $z(e,t,n,r){e.save();const a=t.length;let i=0,s=r;for(let l=0;l<a;l++){const c=n[Math.min(l,n.length-1)];e.font=c.string;const u=t[l];i=Math.max(i,e.measureText(u).width+r),s+=c.lineHeight}return e.restore(),{width:i,height:s}}function Fz(e,{x:t,y:n},r,a){e.beginPath();let i=0;r.forEach(function(s,l){const c=a[Math.min(l,a.length-1)],u=c.lineHeight;e.font=c.string,e.strokeText(s,t,n+u/2+i),i+=u}),e.stroke()}function zz(e,{x:t,y:n},r,{fonts:a,colors:i}){let s=0;r.forEach(function(l,c){const u=i[Math.min(c,i.length-1)],d=a[Math.min(c,a.length-1)],f=d.lineHeight;e.beginPath(),e.font=d.string,e.fillStyle=u,e.fillText(l,t,n+f/2+s),s+=f,e.fill()})}function jz(e,t){const n=ra(e)?e:t;return ra(n)?lu(n,0,1):1}const j0={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function Fi(e,t,n){return t=typeof t=="number"?t:e.parse(t),rt(t)?e.getPixelForValue(t):n}function Ya(e,t,n){const r=t[n];if(r||n==="scaleID")return r;const a=n.charAt(0),i=Object.values(e).filter(s=>s.axis&&s.axis===a);return i.length?i[0].id:a}function Mb(e,t){if(e){const n=e.options.reverse,r=Fi(e,t.min,n?t.end:t.start),a=Fi(e,t.max,n?t.start:t.end);return{start:r,end:a}}}function Nb(e,t){const{chartArea:n,scales:r}=e,a=r[Ya(r,t,"xScaleID")],i=r[Ya(r,t,"yScaleID")];let s=n.width/2,l=n.height/2;return a&&(s=Fi(a,t.xValue,a.left+a.width/2)),i&&(l=Fi(i,t.yValue,i.top+i.height/2)),{x:s,y:l}}function fh(e,t){const n=e.scales,r=n[Ya(n,t,"xScaleID")],a=n[Ya(n,t,"yScaleID")];if(!r&&!a)return{};let{left:i,right:s}=r||e.chartArea,{top:l,bottom:c}=a||e.chartArea;const u=H0(r,{min:t.xMin,max:t.xMax,start:i,end:s});i=u.start,s=u.end;const d=H0(a,{min:t.yMin,max:t.yMax,start:c,end:l});return l=d.start,c=d.end,{x:i,y:l,x2:s,y2:c,width:s-i,height:c-l,centerX:i+(s-i)/2,centerY:l+(c-l)/2}}function Db(e,t){if(!Cb(t)){const n=fh(e,t);let r=t.radius;(!r||isNaN(r))&&(r=Math.min(n.width,n.height)/2,t.radius=r);const a=r*2,i=n.centerX+t.xAdjust,s=n.centerY+t.yAdjust;return{x:i-r,y:s-r,x2:i+r,y2:s+r,centerX:i,centerY:s,width:a,height:a,radius:r}}return Wz(e,t)}function Hz(e,t){const{scales:n,chartArea:r}=e,a=n[t.scaleID],i={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return a?Uz(a,i,t):Yz(n,i,t),i}function Pb(e,t,n){const r=fh(e,t);return r.initProperties=Vo(e,r,t,n),r.elements=[{type:"label",optionScope:"label",properties:Xz(e,r,t),initProperties:r.initProperties}],r}function Wz(e,t){const n=Nb(e,t),r=t.radius*2;return{x:n.x-t.radius+t.xAdjust,y:n.y-t.radius+t.yAdjust,x2:n.x+t.radius+t.xAdjust,y2:n.y+t.radius+t.yAdjust,centerX:n.x+t.xAdjust,centerY:n.y+t.yAdjust,radius:t.radius,width:r,height:r}}function H0(e,t){const n=Mb(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function Uz(e,t,n){const r=Fi(e,n.value,NaN),a=Fi(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=a):(t.y=r,t.y2=a)}function Yz(e,t,n){for(const r of Object.keys(j0)){const a=e[Ya(e,n,r)];if(a){const{min:i,max:s,start:l,end:c,startProp:u,endProp:d}=j0[r],f=Mb(a,{min:n[i],max:n[s],start:a[l],end:a[c]});t[u]=f.start,t[d]=f.end}}}function qz({properties:e,options:t},n,r,a){const{x:i,x2:s,width:l}=e;return Ab({start:i,end:s,size:l,borderWidth:t.borderWidth},{position:r.x,padding:{start:a.left,end:a.right},adjust:t.label.xAdjust,size:n.width})}function Gz({properties:e,options:t},n,r,a){const{y:i,y2:s,height:l}=e;return Ab({start:i,end:s,size:l,borderWidth:t.borderWidth},{position:r.y,padding:{start:a.top,end:a.bottom},adjust:t.label.yAdjust,size:n.height})}function Ab(e,t){const{start:n,end:r,borderWidth:a}=e,{position:i,padding:{start:s,end:l},adjust:c}=t,u=r-a-n-s-l-t.size;return n+a/2+c+lh(u,i)}function Xz(e,t,n){const r=n.label;r.backgroundColor="transparent",r.callout.display=!1;const a=ch(r.position),i=pt(r.padding),s=dh(e.ctx,r),l=qz({properties:t,options:n},s,a,i),c=Gz({properties:t,options:n},s,a,i),u=s.width+i.width,d=s.height+i.height;return{x:l,y:c,x2:l+u,y2:c+d,width:u,height:d,centerX:l+u/2,centerY:c+d/2,rotation:r.rotation}}function Qa(e,t,n){const r=Math.cos(n),a=Math.sin(n),i=t.x,s=t.y;return{x:i+r*(e.x-i)-a*(e.y-s),y:s+a*(e.x-i)+r*(e.y-s)}}const hf=["enter","leave"],ph=hf.concat("click");function Kz(e,t,n){t.listened=Eb(n,ph,t.listeners),t.moveListened=!1,t._getElements=oh,hf.forEach(r=>{Xt(n[r])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(r=>{!t.listened&&Xt(r.click)&&(t.listened=!0),t.moveListened||hf.forEach(a=>{Xt(r[a])&&(t.listened=!0,t.moveListened=!0)})})}function Jz(e,t,n){if(e.listened)switch(t.type){case"mousemove":case"mouseout":return Zz(e,t,n);case"click":return Qz(e,t,n)}}function Zz(e,t,n){if(!e.moveListened)return;let r;t.type==="mousemove"?r=oh(e,t,n.interaction):r=[];const a=e.hovered;e.hovered=r;const i={state:e,event:t};let s=W0(i,"leave",a,r);return W0(i,"enter",r,a)||s}function W0({state:e,event:t},n,r,a){let i;for(const s of r)a.indexOf(s)<0&&(i=Ib(s.options[n]||e.listeners[n],s,t)||i);return i}function Qz(e,t,n){const r=e.listeners,a=oh(e,t,n.interaction);let i;for(const s of a)i=Ib(s.options.click||r.click,s,t)||i;return i}function Ib(e,t,n){return Ie(e,[t.$context,n])===!0}const kc=["afterDraw","beforeDraw"];function ej(e,t,n){const r=t.visibleElements;t.hooked=Eb(n,kc,t.hooks),t.hooked||r.forEach(a=>{t.hooked||kc.forEach(i=>{Xt(a.options[i])&&(t.hooked=!0)})})}function U0(e,t,n){if(e.hooked){const r=t.options[n]||e.hooks[n];return Ie(r,[t.$context])}}function tj(e,t,n){const r=sj(e.scales,t,n);let a=Y0(t,r,"min","suggestedMin");a=Y0(t,r,"max","suggestedMax")||a,a&&Xt(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function nj(e,t){for(const n of e)aj(n,t)}function Y0(e,t,n,r){if(rt(t[n])&&!rj(e.options,n,r)){const a=e[n]!==t[n];return e[n]=t[n],a}}function rj(e,t,n){return Kt(e[t])||Kt(e[n])}function aj(e,t){for(const n of["scaleID","xScaleID","yScaleID"]){const r=Ya(t,e,n);r&&!t[r]&&ij(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function ij(e,t){if(t==="scaleID")return!0;const n=t.charAt(0);for(const r of["Min","Max","Value"])if(Kt(e[n+r]))return!0;return!1}function sj(e,t,n){const r=t.axis,a=t.id,i=r+"ScaleID",s={min:le(t.min,Number.NEGATIVE_INFINITY),max:le(t.max,Number.POSITIVE_INFINITY)};for(const l of n)l.scaleID===a?q0(l,t,["value","endValue"],s):Ya(e,l,i)===a&&q0(l,t,[r+"Min",r+"Max",r+"Value"],s);return s}function q0(e,t,n,r){for(const a of n){const i=e[a];if(Kt(i)){const s=t.parse(i);r.min=Math.min(r.min,s),r.max=Math.max(r.max,s)}}}class Xi extends Vt{inRange(t,n,r,a){const{x:i,y:s}=Qa({x:t,y:n},this.getCenterPoint(a),ht(-this.options.rotation));return kb({x:i,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return qi(this,t)}draw(t){t.save(),uh(t,this.getCenterPoint(),this.options.rotation),Ob(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return Pb(t,n)}}Xi.id="boxAnnotation";Xi.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Xi.defaultRoutes={borderColor:"color",backgroundColor:"color"};Xi.descriptors={label:{_fallback:!0}};const Lb=["left","bottom","top","right"];class $o extends Vt{inRange(t,n,r,a){const{x:i,y:s}=Qa({x:t,y:n},this.getCenterPoint(a),ht(-this.rotation));return kb({x:i,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return qi(this,t)}draw(t){const n=this.options,r=!Kt(this._visible)||this._visible;!n.display||!n.content||!r||(t.save(),uh(t,this.getCenterPoint(),this.rotation),lj(t,this),Ob(t,this,n),Lz(t,mj(this),n),t.restore())}resolveElementProperties(t,n){let r;if(Cb(n))r=Nb(t,n);else{const{centerX:l,centerY:c}=fh(t,n);r={x:l,y:c}}const a=pt(n.padding),i=dh(t.ctx,n),s=oj(r,i,n,a);return{initProperties:Vo(t,s,n),pointX:r.x,pointY:r.y,...s,rotation:n.rotation}}}$o.id="labelAnnotation";$o.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};$o.defaultRoutes={borderColor:"color"};function oj(e,t,n,r){const a=t.width+r.width+n.borderWidth,i=t.height+r.height+n.borderWidth,s=ch(n.position,"center"),l=G0(e.x,a,n.xAdjust,s.x),c=G0(e.y,i,n.yAdjust,s.y);return{x:l,y:c,x2:l+a,y2:c+i,width:a,height:i,centerX:l+a/2,centerY:c+i/2}}function G0(e,t,n=0,r){return e-lh(t,r)+n}function lj(e,t){const{pointX:n,pointY:r,options:a}=t,i=a.callout,s=i&&i.display&&pj(t,i);if(!s||gj(t,i,s))return;if(e.save(),e.beginPath(),!sa(e,i))return e.restore();const{separatorStart:c,separatorEnd:u}=cj(t,s),{sideStart:d,sideEnd:f}=dj(t,s,c);(i.margin>0||a.borderWidth===0)&&(e.moveTo(c.x,c.y),e.lineTo(u.x,u.y)),e.moveTo(d.x,d.y),e.lineTo(f.x,f.y);const p=Qa({x:n,y:r},t.getCenterPoint(),ht(-t.rotation));e.lineTo(p.x,p.y),e.stroke(),e.restore()}function cj(e,t){const{x:n,y:r,x2:a,y2:i}=e,s=uj(e,t);let l,c;return t==="left"||t==="right"?(l={x:n+s,y:r},c={x:l.x,y:i}):(l={x:n,y:r+s},c={x:a,y:l.y}),{separatorStart:l,separatorEnd:c}}function uj(e,t){const{width:n,height:r,options:a}=e,i=a.callout.margin+a.borderWidth/2;return t==="right"?n+i:t==="bottom"?r+i:-i}function dj(e,t,n){const{y:r,width:a,height:i,options:s}=e,l=s.callout.start,c=fj(t,s.callout);let u,d;return t==="left"||t==="right"?(u={x:n.x,y:r+ia(i,l)},d={x:u.x+c,y:u.y}):(u={x:n.x+ia(a,l),y:n.y},d={x:u.x,y:u.y+c}),{sideStart:u,sideEnd:d}}function fj(e,t){const n=t.side;return e==="left"||e==="top"?-n:n}function pj(e,t){const n=t.position;return Lb.includes(n)?n:hj(e,t)}function hj(e,t){const{x:n,y:r,x2:a,y2:i,width:s,height:l,pointX:c,pointY:u,centerX:d,centerY:f,rotation:p}=e,h={x:d,y:f},g=t.start,v=ia(s,g),b=ia(l,g),m=[n,n+v,n+v,a],_=[r+b,i,r,i],k=[];for(let y=0;y<4;y++){const w=Qa({x:m[y],y:_[y]},h,ht(p));k.push({position:Lb[y],distance:Ai(w,{x:c,y:u})})}return k.sort((y,w)=>y.distance-w.distance)[0].position}function mj({x:e,y:t,width:n,height:r,options:a}){const i=a.borderWidth/2,s=pt(a.padding);return{x:e+s.left+i,y:t+s.top+i,width:n-s.left-s.right-a.borderWidth,height:r-s.top-s.bottom-a.borderWidth}}function gj(e,t,n){const{pointX:r,pointY:a}=e,i=t.margin;let s=r,l=a;return n==="left"?s+=i:n==="right"?s-=i:n==="top"?l+=i:n==="bottom"&&(l-=i),e.inRange(s,l)}const hh=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),mf=(e,t,n)=>hh(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,X0=(e,t,n)=>hh(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,_s=e=>e*e,vj=(e,t,{x:n,y:r,x2:a,y2:i},s)=>s==="y"?{start:Math.min(r,i),end:Math.max(r,i),value:t}:{start:Math.min(n,a),end:Math.max(n,a),value:e},K0=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,gf=(e,t,n,r)=>({x:K0(e.x,t.x,n.x,r),y:K0(e.y,t.y,n.y,r)}),J0=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),Z0=(e,t,n,r)=>-Math.atan2(J0(e.x,t.x,n.x,r),J0(e.y,t.y,n.y,r))+.5*Ee;class Fo extends Vt{inRange(t,n,r,a){const i=this.options.borderWidth/2;if(r!=="x"&&r!=="y"){const s={mouseX:t,mouseY:n},{path:l,ctx:c}=this;if(l){sa(c,this.options);const{chart:d}=this.$context,f=t*d.currentDevicePixelRatio,p=n*d.currentDevicePixelRatio,h=c.isPointInStroke(l,f,p)||vf(this,s,a);return c.restore(),h}const u=_s(i);return kj(this,s,u,a)||vf(this,s,a)}return _j(this,{mouseX:t,mouseY:n},r,{hBorderWidth:i,useFinalPosition:a})}getCenterPoint(t){return qi(this,t)}draw(t){const{x:n,y:r,x2:a,y2:i,cp:s,options:l}=this;if(t.save(),!sa(t,l))return t.restore();Gi(t,l);const c=Math.sqrt(Math.pow(a-n,2)+Math.pow(i-r,2));if(l.curve&&s)return Mj(t,this,s,c),t.restore();const{startOpts:u,endOpts:d,startAdjust:f,endAdjust:p}=Rb(this),h=Math.atan2(i-r,a-n);t.translate(n,r),t.rotate(h),t.beginPath(),t.moveTo(0+f,0),t.lineTo(c-p,0),t.shadowColor=l.borderShadowColor,t.stroke(),_f(t,0,f,u),_f(t,c,-p,d),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){const r=Hz(t,n),{x:a,y:i,x2:s,y2:l}=r,c=yj(r,t.chartArea),u=c?bj({x:a,y:i},{x:s,y:l},t.chartArea):{x:a,y:i,x2:s,y2:l,width:Math.abs(s-a),height:Math.abs(l-i)};if(u.centerX=(s+a)/2,u.centerY=(l+i)/2,u.initProperties=Vo(t,u,n),n.curve){const f={x:u.x,y:u.y},p={x:u.x2,y:u.y2};u.cp=Oj(u,n,Ai(f,p))}const d=wj(t,u,n.label);return d._visible=c,u.elements=[{type:"label",optionScope:"label",properties:d,initProperties:u.initProperties}],u}}Fo.id="lineAnnotation";const Q0={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};Fo.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},Q0),fill:!1,length:12,start:Object.assign({},Q0),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},$o.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Fo.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}};Fo.defaultRoutes={borderColor:"color"};function _j(e,{mouseX:t,mouseY:n},r,{hBorderWidth:a,useFinalPosition:i}){const s=vj(t,n,e.getProps(["x","y","x2","y2"],i),r);return s.value>=s.start-a&&s.value<=s.end+a||vf(e,{mouseX:t,mouseY:n},i,r)}function yj({x:e,y:t,x2:n,y2:r},{top:a,right:i,bottom:s,left:l}){return!(e<l&&n<l||e>i&&n>i||t<a&&r<a||t>s&&r>s)}function ev({x:e,y:t},n,{top:r,right:a,bottom:i,left:s}){return e<s&&(t=X0(s,{x:e,y:t},n),e=s),e>a&&(t=X0(a,{x:e,y:t},n),e=a),t<r&&(e=mf(r,{x:e,y:t},n),t=r),t>i&&(e=mf(i,{x:e,y:t},n),t=i),{x:e,y:t}}function bj(e,t,n){const{x:r,y:a}=ev(e,t,n),{x:i,y:s}=ev(t,e,n);return{x:r,y:a,x2:i,y2:s,width:Math.abs(i-r),height:Math.abs(s-a)}}function kj(e,{mouseX:t,mouseY:n},r=Na,a){const{x:i,y:s,x2:l,y2:c}=e.getProps(["x","y","x2","y2"],a),u=l-i,d=c-s,f=_s(u)+_s(d),p=f===0?-1:((t-i)*u+(n-s)*d)/f;let h,g;return p<0?(h=i,g=s):p>1?(h=l,g=c):(h=i+p*u,g=s+p*d),_s(t-h)+_s(n-g)<=r}function vf(e,{mouseX:t,mouseY:n},r,a){const i=e.label;return i.options.display&&i.inRange(t,n,a,r)}function wj(e,t,n){const r=n.borderWidth,a=pt(n.padding),i=dh(e.ctx,n),s=i.width+a.width+r,l=i.height+a.height+r;return xj(t,n,{width:s,height:l,padding:a},e.chartArea)}function Sj(e){const{x:t,y:n,x2:r,y2:a}=e,i=Math.atan2(a-n,r-t);return i>Ee/2?i-Ee:i<Ee/-2?i+Ee:i}function xj(e,t,n,r){const{width:a,height:i,padding:s}=n,{xAdjust:l,yAdjust:c}=t,u={x:e.x,y:e.y},d={x:e.x2,y:e.y2},f=t.rotation==="auto"?Sj(e):ht(t.rotation),p=Cj(a,i,f),h=Ej(e,t,{labelSize:p,padding:s},r),g=e.cp?gf(u,e.cp,d,h):hh(u,d,h),v={size:p.w,min:r.left,max:r.right,padding:s.left},b={size:p.h,min:r.top,max:r.bottom,padding:s.top},m=nv(g.x,v)+l,_=nv(g.y,b)+c;return{x:m-a/2,y:_-i/2,x2:m+a/2,y2:_+i/2,centerX:m,centerY:_,pointX:g.x,pointY:g.y,width:a,height:i,rotation:Fc(f)}}function Cj(e,t,n){const r=Math.cos(n),a=Math.sin(n);return{w:Math.abs(e*r)+Math.abs(t*a),h:Math.abs(e*a)+Math.abs(t*r)}}function Ej(e,t,n,r){let a;const i=Tj(e,r);return t.position==="start"?a=tv({w:e.x2-e.x,h:e.y2-e.y},n,t,i):t.position==="end"?a=1-tv({w:e.x-e.x2,h:e.y-e.y2},n,t,i):a=lh(1,t.position),a}function tv(e,t,n,r){const{labelSize:a,padding:i}=t,s=e.w*r.dx,l=e.h*r.dy,c=s>0&&(a.w/2+i.left-r.x)/s,u=l>0&&(a.h/2+i.top-r.y)/l;return lu(Math.max(c,u),0,.25)}function Tj(e,t){const{x:n,x2:r,y:a,y2:i}=e,s=Math.min(a,i)-t.top,l=Math.min(n,r)-t.left,c=t.bottom-Math.max(a,i),u=t.right-Math.max(n,r);return{x:Math.min(l,u),y:Math.min(s,c),dx:l<=u?1:-1,dy:s<=c?1:-1}}function nv(e,t){const{size:n,min:r,max:a,padding:i}=t,s=n/2;return n>a-r?(a+r)/2:(r>=e-i-s&&(e=r+i+s),a<=e+i+s&&(e=a-i-s),e)}function Rb(e){const t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:rv(e,n),endAdjust:rv(e,r)}}function rv(e,t){if(!t||!t.display)return 0;const{length:n,width:r}=t,a=e.options.borderWidth/2,i={x:n,y:r+a};return Math.abs(mf(0,i,{x:0,y:a}))}function _f(e,t,n,r){if(!r||!r.display)return;const{length:a,width:i,fill:s,backgroundColor:l,borderColor:c}=r,u=Math.abs(t-a)+n;e.beginPath(),Gi(e,r),sa(e,r),e.moveTo(u,-i),e.lineTo(t+n,0),e.lineTo(u,i),s===!0?(e.fillStyle=l||c,e.closePath(),e.fill(),e.shadowColor="transparent"):e.shadowColor=r.borderShadowColor,e.stroke()}function Oj(e,t,n){const{x:r,y:a,x2:i,y2:s,centerX:l,centerY:c}=e,u=Math.atan2(s-a,i-r),d=ch(t.controlPoint,0),f={x:l+ia(n,d.x,!1),y:c+ia(n,d.y,!1)};return Qa(f,{x:l,y:c},u)}function av(e,{x:t,y:n},{angle:r,adjust:a},i){!i||!i.display||(e.save(),e.translate(t,n),e.rotate(r),_f(e,0,-a,i),e.restore())}function Mj(e,t,n,r){const{x:a,y:i,x2:s,y2:l,options:c}=t,{startOpts:u,endOpts:d,startAdjust:f,endAdjust:p}=Rb(t),h={x:a,y:i},g={x:s,y:l},v=Z0(h,n,g,0),b=Z0(h,n,g,1)-Ee,m=gf(h,n,g,f/r),_=gf(h,n,g,1-p/r),k=new Path2D;e.beginPath(),k.moveTo(m.x,m.y),k.quadraticCurveTo(n.x,n.y,_.x,_.y),e.shadowColor=c.borderShadowColor,e.stroke(k),t.path=k,t.ctx=e,av(e,m,{angle:v,adjust:f},u),av(e,_,{angle:b,adjust:p},d)}class zo extends Vt{inRange(t,n,r,a){const i=this.options.rotation,s=this.options.borderWidth;if(r!=="x"&&r!=="y")return Nj({x:t,y:n},this.getProps(["width","height","centerX","centerY"],a),i,s);const{x:l,y:c,x2:u,y2:d}=this.getProps(["x","y","x2","y2"],a),f=s/2,p=r==="y"?{start:c,end:d}:{start:l,end:u},h=Qa({x:t,y:n},this.getCenterPoint(a),ht(-i));return h[r]>=p.start-f-Na&&h[r]<=p.end+f+Na}getCenterPoint(t){return qi(this,t)}draw(t){const{width:n,height:r,centerX:a,centerY:i,options:s}=this;t.save(),uh(t,this.getCenterPoint(),s.rotation),Gi(t,this.options),t.beginPath(),t.fillStyle=s.backgroundColor;const l=sa(t,s);t.ellipse(a,i,r/2,n/2,Ee/2,0,2*Ee),t.fill(),l&&(t.shadowColor=s.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return Pb(t,n,!0)}}zo.id="ellipseAnnotation";zo.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:Object.assign({},Xi.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};zo.defaultRoutes={borderColor:"color",backgroundColor:"color"};zo.descriptors={label:{_fallback:!0}};function Nj(e,t,n,r){const{width:a,height:i,centerX:s,centerY:l}=t,c=a/2,u=i/2;if(c<=0||u<=0)return!1;const d=ht(n||0),f=r/2||0,p=Math.cos(d),h=Math.sin(d),g=Math.pow(p*(e.x-s)+h*(e.y-l),2),v=Math.pow(h*(e.x-s)-p*(e.y-l),2);return g/Math.pow(c+f,2)+v/Math.pow(u+f,2)<=1.0001}class uu extends Vt{inRange(t,n,r,a){const{x:i,y:s,x2:l,y2:c,width:u}=this.getProps(["x","y","x2","y2","width"],a),d=this.options.borderWidth;if(r!=="x"&&r!=="y")return Mz({x:t,y:n},this.getCenterPoint(a),u/2,d);const f=d/2,p=r==="y"?{start:s,end:c,value:n}:{start:i,end:l,value:t};return p.value>=p.start-f&&p.value<=p.end+f}getCenterPoint(t){return qi(this,t)}draw(t){const n=this.options,r=n.borderWidth;if(n.radius<.1)return;t.save(),t.fillStyle=n.backgroundColor,Gi(t,n);const a=sa(t,n);Bz(t,this,this.centerX,this.centerY),a&&!cu(n.pointStyle)&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore(),n.borderWidth=r}resolveElementProperties(t,n){const r=Db(t,n);return r.initProperties=Vo(t,r,n,!0),r}}uu.id="pointAnnotation";uu.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};uu.defaultRoutes={borderColor:"color",backgroundColor:"color"};class du extends Vt{inRange(t,n,r,a){if(r!=="x"&&r!=="y")return this.options.radius>=.1&&this.elements.length>1&&Pj(this.elements,t,n,a);const i=Qa({x:t,y:n},this.getCenterPoint(a),ht(-this.options.rotation)),s=this.elements.map(u=>r==="y"?u.bY:u.bX),l=Math.min(...s),c=Math.max(...s);return i[r]>=l&&i[r]<=c}getCenterPoint(t){return qi(this,t)}draw(t){const{elements:n,options:r}=this;t.save(),t.beginPath(),t.fillStyle=r.backgroundColor,Gi(t,r);const a=sa(t,r);let i=!0;for(const s of n)i?(t.moveTo(s.x,s.y),i=!1):t.lineTo(s.x,s.y);t.closePath(),t.fill(),a&&(t.shadowColor=r.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,n){const r=Db(t,n),{sides:a,rotation:i}=n,s=[],l=2*Ee/a;let c=i*bp;for(let u=0;u<a;u++,c+=l){const d=Dj(r,n,c);d.initProperties=Vo(t,r,n),s.push(d)}return r.elements=s,r}}du.id="polygonAnnotation";du.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};du.defaultRoutes={borderColor:"color",backgroundColor:"color"};function Dj({centerX:e,centerY:t},{radius:n,borderWidth:r},a){const i=r/2,s=Math.sin(a),l=Math.cos(a),c={x:e+s*n,y:t-l*n};return{type:"point",optionScope:"point",properties:{x:c.x,y:c.y,centerX:c.x,centerY:c.y,bX:e+s*(n+i),bY:t-l*(n+i)}}}function Pj(e,t,n,r){let a=!1,i=e[e.length-1].getProps(["bX","bY"],r);for(const s of e){const l=s.getProps(["bX","bY"],r);l.bY>n!=i.bY>n&&t<(i.bX-l.bX)*(n-l.bY)/(i.bY-l.bY)+l.bX&&(a=!a),i=l}return a}const Jr={box:Xi,ellipse:zo,label:$o,line:Fo,point:uu,polygon:du};Object.keys(Jr).forEach(e=>{at.describe(`elements.${Jr[e].id}`,{_fallback:"plugins.annotation.common"})});const Aj={update:Object.assign},Ij=ph.concat(kc),iv=(e,t)=>he(t)?bf(e,t):e,yf=e=>e==="color"||e==="font";function mh(e="line"){return Jr[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),"line")}function Lj(e,t,n,r){const a=Bj(e,n.animations,r),i=t.annotations,s=Fj(t.elements,i);for(let l=0;l<i.length;l++){const c=i[l],u=Bb(s,l,c.type),d=c.setContext($j(e,u,c)),f=u.resolveElementProperties(e,d);f.skip=Rj(f),"elements"in f&&(Vj(u,f.elements,d,a),delete f.elements),Kt(u.x)||Object.assign(u,f),Object.assign(u,f.initProperties),f.options=Vb(d),a.update(u,f)}}function Rj(e){return isNaN(e.x)||isNaN(e.y)}function Bj(e,t,n){return n==="reset"||n==="none"||n==="resize"?Aj:new Mp(e,t)}function Vj(e,t,n,r){const a=e.elements||(e.elements=[]);a.length=t.length;for(let i=0;i<t.length;i++){const s=t[i],l=s.properties,c=Bb(a,i,s.type,s.initProperties),u=n[s.optionScope].override(s);l.options=Vb(u),r.update(c,l)}}function Bb(e,t,n,r){const a=Jr[mh(n)];let i=e[t];return(!i||!(i instanceof a))&&(i=e[t]=new a,Object.assign(i,r)),i}function Vb(e){const t=Jr[mh(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,bf(e,t.defaults),bf(e,t.defaultRoutes));for(const r of Ij)n[r]=e[r];return n}function bf(e,t){const n={};for(const r of Object.keys(t)){const a=t[r],i=e[r];yf(r)&&Ne(i)?n[r]=i.map(s=>iv(s,a)):n[r]=iv(i,a)}return n}function $j(e,t,n){return t.$context||(t.$context=Object.assign(Object.create(e.getContext()),{element:t,id:n.id,type:"annotation"}))}function Fj(e,t){const n=t.length,r=e.length;if(r<n){const a=n-r;e.splice(r,0,...new Array(a))}else r>n&&e.splice(n,r-n);return e}var zj="2.2.1";const Br=new Map,jj=ph.concat(kc);var ei={id:"annotation",version:zj,beforeRegister(){Nz("chart.js","3.7",Re.version)},afterRegister(){Re.register(Jr)},afterUnregister(){Re.unregister(Jr)},beforeInit(e){Br.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){const r=Br.get(e),a=r.annotations=[];let i=n.annotations;he(i)?Object.keys(i).forEach(s=>{const l=i[s];he(l)&&(l.id=s,a.push(l))}):Ne(i)&&a.push(...i),nj(a,e.scales)},afterDataLimits(e,t){const n=Br.get(e);tj(e,t.scale,n.annotations.filter(r=>r.display&&r.adjustScaleRange))},afterUpdate(e,t,n){const r=Br.get(e);Kz(e,r,n),Lj(e,r,n,t.mode),r.visibleElements=r.elements.filter(a=>!a.skip&&a.options.display),ej(e,r,n)},beforeDatasetsDraw(e,t,n){Ol(e,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(e,t,n){Ol(e,"afterDatasetsDraw",n.clip)},beforeDraw(e,t,n){Ol(e,"beforeDraw",n.clip)},afterDraw(e,t,n){Ol(e,"afterDraw",n.clip)},beforeEvent(e,t,n){const r=Br.get(e);Jz(r,t.event,n)&&(t.changed=!0)},afterDestroy(e){Br.delete(e)},_getState(e){return Br.get(e)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:e=>!jj.includes(e)&&e!=="init",annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${Jr[mh(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:yf,_fallback:!0},_indexable:yf}},additionalOptionScopes:[""]};function Ol(e,t,n){const{ctx:r,chartArea:a}=e,i=Br.get(e);n&&Mo(r,a);const s=Hj(i.visibleElements,t).sort((l,c)=>l.element.options.z-c.element.options.z);for(const l of s)Wj(r,a,i,l);n&&No(r)}function Hj(e,t){const n=[];for(const r of e)if(r.options.drawTime===t&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(const a of r.elements)a.options.display&&a.options.drawTime===t&&n.push({element:a});return n}function Wj(e,t,n,r){const a=r.element;r.main?(U0(n,a,"beforeDraw"),a.draw(e,t),U0(n,a,"afterDraw")):a.draw(e,t)}const fu=o.defineComponent({__name:"ManaCurveChart",props:tB,setup(e){const t=e,{t:n}=re(),r=o.ref();Re.register(...pa),Re.register(ei),Re.register(ou);const a={topLeft:9999,topRight:9999,bottomLeft:9999,bottomRight:9999},i=o.computed(()=>["0","1","2","3","4","5","6","7","8","9","+"]),s=o.computed(()=>{const u={},d=Et(t.deckCode),f=Ic(d);for(const p of f)u[p]=i.value.map(()=>0);for(const p in d){const h=Dt().cardJsonObject[p];if(h===void 0)continue;const g=W2(h,f);if(h.cost>10){u[g][10]+=d[p];continue}u[g][h.cost]+=d[p]}return u}),l=o.computed(()=>{const u=[];for(let d=0;d<Object.keys(s.value).length;d++){const f=Object.keys(s.value)[d];u.push({backgroundColor:i7(f),data:s.value[f],borderRadius:a,borderSkipped:!1,label:s7(f),barPercentage:.5},{backgroundColor:"transparent",data:s.value[f].map(p=>p>0?1:0)})}return{labels:i.value,datasets:u}}),c={responsive:!0,animation:t.animation,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:t.tooltipsEnabled,mode:"index",intersect:!1,filter(u){return u.datasetIndex%2===0&&u.formattedValue!=="0"},callbacks:{title(u){return u.length===0?"":n("deck.numManaCards",{num:u[0].label==="+"?"10+":u[0].label})},footer(u){if(u.length===0)return"";let d=0;for(let f=0;f<u[0].chart.data.datasets.length;f++)f%2!==1&&(d+=u[0].chart.data.datasets[f].data[u[0].dataIndex]);return`${n("general.total")}: ${d}`}}},datalabels:{align:"end",anchor:"end",offset:t.dataLabelsOffset,formatter(u,d){let f=0;for(let p=0;p<d.chart.data.datasets.length;p++)p%2!==1&&(f+=d.chart.data.datasets[p].data[d.dataIndex]);return f||""},display(u){return t.showDataLabels?u.datasetIndex===u.chart.data.datasets.length-1:!1}}},scales:{x:{stacked:!0,grid:{display:!1},display:t.displayXScale},y:{stacked:!0,grid:{display:!1},display:!1}},layout:{padding:{top:t.paddingTop}}};return(u,d)=>(o.openBlock(),o.createBlock(o.unref(Gc),{ref_key:"chart",ref:r,"chart-data":o.unref(l),options:c},null,8,["chart-data"]))}}),Uj=o.defineComponent({__name:"DeckSidePanel",props:fT,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.reactive(n.filters),i=o.computed(()=>a7(n.deckcode)),s=o.computed(()=>Object.keys(Et(n.deckcode)).filter(l=>Pi(Dt().cardJsonObject[l])));return o.watch(a,()=>{t("update:filters",a)}),(l,c)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode($c,{"card-codes":o.unref(s),regions:o.unref(i)},null,8,["card-codes","regions"]),o.createVNode(yt,{title:o.unref(r)("general.regions")},{default:o.withCtx(()=>[o.createVNode(dp,{"deck-code":n.deckcode,"describe-regions":!0},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(yt,{title:o.unref(r)("general.manaCurve")},{default:o.withCtx(()=>[o.createVNode(fu,{class:"mana-curve-chart","deck-code":n.deckcode,"padding-top":5,"show-data-labels":!0,"data-labels-offset":-5,"tooltips-enabled":!0,"display-x-scale":!0,animation:void 0},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(yt,{title:o.unref(r)("general.type")},{default:o.withCtx(()=>[o.createVNode(hc,{class:"side-panel-chart","deck-code":n.deckcode,info:"typeRef"},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(yt,{title:o.unref(r)("general.rarity")},{default:o.withCtx(()=>[o.createVNode(hc,{class:"side-panel-chart","deck-code":n.deckcode,info:"rarityRef"},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(bo,{"filter-array":a.sampleSizeFilters,"onUpdate:filterArray":c[0]||(c[0]=u=>a.sampleSizeFilters=u)},null,8,["filter-array"]),o.createVNode(wo,{"filter-array":a.timeFilters,"onUpdate:filterArray":c[1]||(c[1]=u=>a.timeFilters=u)},null,8,["filter-array"]),o.createVNode(ko,{"filter-array":a.serverFilters,"onUpdate:filterArray":c[2]||(c[2]=u=>a.serverFilters=u)},null,8,["filter-array"])]))}});const $b=B(Uj,[["__scopeId","data-v-d65ffd7b"]]),Yj={cardsProp:{type:Object,required:!1,default:void 0},deck:{type:Object,required:!0,default:{}}},jo=e=>(o.pushScopeId("data-v-71338c1b"),e=e(),o.popScopeId(),e),qj={class:"deck-summary"},Gj={class:"deck-cards"},Xj={class:"champions-landmarks column"},Kj={key:0,class:"type"},Jj={class:"type-heading"},Zj=jo(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/champion.svg"},null,-1)),Qj={class:"title"},eH={class:"type-quantity"},tH={class:"card-container"},nH={key:1,class:"type column"},rH={class:"type-heading"},aH=jo(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/landmark.svg"},null,-1)),iH={class:"title"},sH={class:"type-quantity"},oH={class:"card-container"},lH={key:2,class:"type column"},cH={class:"type-heading"},uH=jo(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/equipment.svg"},null,-1)),dH={class:"title"},fH={class:"type-quantity"},pH={class:"card-container"},hH={key:0,class:"type column"},mH={class:"type-heading"},gH=jo(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/follower.svg"},null,-1)),vH={class:"title"},_H={class:"type-quantity"},yH={class:"card-container"},bH={key:1,class:"type"},kH={class:"type-heading"},wH=jo(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/spell.svg"},null,-1)),SH={class:"title"},xH={class:"type-quantity"},CH={class:"card-container"},EH=o.defineComponent({__name:"DeckSummary",props:Yj,setup(e){const t=e,n=o.computed(()=>t.cardsProp?t.cardsProp:cn(t.deck)),r=o.computed(()=>Lc(n.value)),a=o.computed(()=>n.value.filter(d=>Pi(d))),i=o.computed(()=>n.value.filter(d=>d.typeRef==="Unit"&&d.supertype==="")),s=o.computed(()=>n.value.filter(d=>d.typeRef==="Spell")),l=o.computed(()=>n.value.filter(d=>d.typeRef==="Landmark")),c=o.computed(()=>n.value.filter(d=>d.typeRef==="Equipment"));function u(d){return d.reduce((f,p)=>f+t.deck[p.cardCode],0)}return(d,f)=>{const p=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",qj,[o.createElementVNode("div",Gj,[o.createElementVNode("div",Xj,[o.unref(a).length>0?(o.openBlock(),o.createElementBlock("div",Kj,[o.createElementVNode("div",Jj,[Zj,o.withDirectives(o.createElementVNode("div",Qj,null,512),[[p,"general.champions"]]),o.createElementVNode("p",eH,o.toDisplayString(u(o.unref(a))),1)]),o.createElementVNode("div",tH,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),h=>(o.openBlock(),o.createBlock(an,{key:h.cardCode,"card-prop":h,color:o.unref(Ca)(h,o.unref(r),!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0},null,8,["card-prop","color","name","mana-number","quantity-number"]))),128))])])):o.createCommentVNode("",!0),o.unref(l).length>0?(o.openBlock(),o.createElementBlock("div",nH,[o.createElementVNode("div",rH,[aH,o.withDirectives(o.createElementVNode("div",iH,null,512),[[p,"general.landmarks"]]),o.createElementVNode("p",sH,o.toDisplayString(u(o.unref(l))),1)]),o.createElementVNode("div",oH,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(l),h=>(o.openBlock(),o.createBlock(an,{key:h.cardCode,"card-prop":h,color:o.unref(Ca)(h,o.unref(r),!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0},null,8,["card-prop","color","name","mana-number","quantity-number"]))),128))])])):o.createCommentVNode("",!0),o.unref(c).length>0?(o.openBlock(),o.createElementBlock("div",lH,[o.createElementVNode("div",cH,[uH,o.withDirectives(o.createElementVNode("div",dH,null,512),[[p,"general.equipments"]]),o.createElementVNode("p",fH,o.toDisplayString(u(o.unref(c))),1)]),o.createElementVNode("div",pH,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),h=>(o.openBlock(),o.createBlock(an,{key:h.cardCode,"card-prop":h,color:o.unref(Ca)(h,o.unref(r),!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0},null,8,["card-prop","color","name","mana-number","quantity-number"]))),128))])])):o.createCommentVNode("",!0)]),o.unref(i).length>0?(o.openBlock(),o.createElementBlock("div",hH,[o.createElementVNode("div",mH,[gH,o.withDirectives(o.createElementVNode("div",vH,null,512),[[p,"general.followers"]]),o.createElementVNode("p",_H,o.toDisplayString(u(o.unref(i))),1)]),o.createElementVNode("div",yH,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),h=>(o.openBlock(),o.createBlock(an,{key:h.cardCode,"card-prop":h,color:o.unref(Ca)(h,o.unref(r),!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0},null,8,["card-prop","color","name","mana-number","quantity-number"]))),128))])])):o.createCommentVNode("",!0),o.unref(s).length>0?(o.openBlock(),o.createElementBlock("div",bH,[o.createElementVNode("div",kH,[wH,o.withDirectives(o.createElementVNode("div",SH,null,512),[[p,"general.spells"]]),o.createElementVNode("p",xH,o.toDisplayString(u(o.unref(s))),1)]),o.createElementVNode("div",CH,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),h=>(o.openBlock(),o.createBlock(an,{key:h.cardCode,"card-prop":h,color:o.unref(Ca)(h,o.unref(r),!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0},null,8,["card-prop","color","name","mana-number","quantity-number"]))),128))])])):o.createCommentVNode("",!0)])])}}});const pu=B(EH,[["__scopeId","data-v-71338c1b"]]),TH={deckCode:{type:String,required:!0,default:""}},gh=o.defineComponent({__name:"CopyDeckButton",props:TH,setup(e){const t=e,{t:n}=re(),r=o.ref(null);let a,i;o.onMounted(()=>{i=st(r.value,{content:n("deck.copyDeckCode"),arrow:!0}),a=st(r.value,{content:n("deck.deckCodeCopied"),trigger:"manual",arrow:!0})});function s(){l7(t.deckCode),i.hide(),a.show()}return(l,c)=>{const u=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s},[o.createVNode(u,{icon:"copy",class:"icon"})],512)}}}),OH={deckId:{type:Number,required:!0,default:-1}},vh=o.defineComponent({__name:"DeleteDeckButton",props:OH,setup(e){const{t}=re(),n=o.ref(null);o.onMounted(()=>{st(n.value,{content:t("deck.deleteDeck"),arrow:!0})});function r(){confirm(t("deck.deleteDeckConfirmation"))}return(a,i)=>{const s=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button",onClick:r},[o.createVNode(s,{icon:"trash-alt",class:"icon"})],512)}}}),MH={deckId:{type:Number,required:!0,default:-1},deckName:{type:String,required:!0,default:""}},_h=o.defineComponent({__name:"EditDeckNameButton",props:MH,setup(e){const t=e,{t:n}=re(),r=o.ref(null);o.onMounted(()=>{st(r.value,{content:n("deck.editDeckName"),arrow:!0})});function a(){prompt(n("deck.editDeckName"),t.deckName)}return(i,s)=>{const l=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button",onClick:a},[o.createVNode(l,{icon:"pencil-alt",class:"icon"})],512)}}}),NH={archetypeId:{type:Number,required:!0,default:0}},DH=["href"],PH=o.defineComponent({__name:"OpenArchetypePageButton",props:NH,setup(e){const t=e,{t:n}=re(),r=o.ref(null),a=o.computed(()=>`/archetype/${t.archetypeId}`);return o.onMounted(()=>{st(r.value,{content:n("deck.openArchetypePage"),arrow:!0})}),(i,s)=>(o.openBlock(),o.createElementBlock("a",{href:o.unref(a)},[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},o.toDisplayString(o.unref(n)("archetype.abbreviation")),513)],8,DH))}});const yh=B(PH,[["__scopeId","data-v-7371ea3a"]]),AH={deckCode:{type:String,required:!0,default:""}},IH=["href"],bh=o.defineComponent({__name:"OpenInDeckBuilderButton",props:AH,setup(e){const t=e,{t:n}=re(),r=o.ref(null),a=o.computed(()=>`/deck-builder/${t.deckCode}`);return o.onMounted(()=>{st(r.value,{content:n("deck.openInDeckBuilder"),arrow:!0})}),(i,s)=>{const l=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("a",{href:o.unref(a)},[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},[o.createVNode(l,{icon:"pencil-alt",class:"icon"})],512)],8,IH)}}}),LH={deck:{type:Object,required:!0,default:{}}},RH={deck:{type:Object,required:!0,default:{}}},BH={class:"simulate-mulligan"},VH={class:"cards-container"},$H={class:"buttons"},FH=o.defineComponent({__name:"SimulateMulligan",props:RH,setup(e){const t=e,{t:n}=re(),r=o.computed(()=>{const u=[];for(const d in t.deck)for(let f=0;f<t.deck[d];f++)u.push(d);return u}),a=o.computed(()=>{const u=Array.from(r.value);for(const d of i.value)d!==null&&u.splice(u.indexOf(d.cardCode),1);return u}),i=o.ref([null,null,null,null]);function s(){i.value.fill(null),c()}function l(){var u;for(let d=0;d<i.value.length;d++)i.value[d]===null||!((u=i.value[d])!=null&&u.isSelected)||(i.value[d]=null);c()}function c(){for(;i.value.some(u=>u===null);)i.value[i.value.indexOf(null)]={cardCode:a.value[t7(0,a.value.length)],isSelected:!1};console.log(i.value)}return c(),(u,d)=>(o.openBlock(),o.createElementBlock("div",BH,[o.createElementVNode("div",VH,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value.filter(f=>f!==null),(f,p)=>(o.openBlock(),o.createBlock(Sr,{key:f.cardCode+p,"card-code-prop":f.cardCode,"is-root":!0,style:o.normalizeStyle(f.isSelected?{opacity:.5}:null),onClick:h=>f.isSelected=!f.isSelected},null,8,["card-code-prop","style","onClick"]))),128))]),o.createElementVNode("div",$H,[o.createElementVNode("button",{class:"primary-button",onClick:s},o.toDisplayString(o.unref(n)("deck.replaceAllCards")),1),o.createElementVNode("button",{class:"primary-button",onClick:l},o.toDisplayString(o.unref(n)("deck.replaceSelectedCards")),1)])]))}});const kh=B(FH,[["__scopeId","data-v-4f85d8dc"]]),zH={class:"simulate-mulligan-wrapper"},jH=o.defineComponent({__name:"SimulateMulliganButton",props:LH,setup(e){const t=e,{t:n}=re(),r=o.ref(null),a=o.ref(!1);return o.onMounted(()=>{st(r.value,{content:n("deck.simulateMulligan"),arrow:!0})}),(i,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s[0]||(s[0]=l=>a.value=!0)},[o.createVNode(o.unref(nt),{icon:"hand-paper"})],512),o.createVNode(Hi,{"show-modal":a.value,"onUpdate:showModal":s[1]||(s[1]=l=>a.value=l)},{default:o.withCtx(()=>[o.createElementVNode("div",zH,[o.createVNode(kh,{deck:t.deck},null,8,["deck"])])]),_:1},8,["show-modal"])]))}});const wh=B(jH,[["__scopeId","data-v-63aa9043"]]),HH={deckId:{type:Number,required:!0,default:-1},deckIsPrivate:{type:Boolean,required:!0,default:!0}},Sh=o.defineComponent({__name:"UpdateDeckPrivacyButton",props:HH,emits:["update:deckIsPrivate"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.ref(null);let i;o.onMounted(()=>{i=st(a.value,{content:`${r("deck.updatePrivacy")}:
857
+ ${n.deckIsPrivate?r("deck.deckPrivate"):r("deck.deckPublic")}`,arrow:!0})}),o.watch(()=>n.deckIsPrivate,l=>{i.setContent(`${r("deck.updatePrivacy")}:
858
+ ${r(l?"deck.deckPrivate":"deck.deckPublic")}`)});function s(){t("update:deckIsPrivate",!n.deckIsPrivate)}return(l,c)=>{const u=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:a,class:"circle-button",onClick:s},[o.createVNode(u,{icon:n.deckIsPrivate?"lock":"unlock",class:"icon"},null,8,["icon"])],512)}}}),WH={deckCode:{type:String,required:!0,default:""},deckName:{type:String,required:!0,default:""}},UH={},YH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 496"},qH=o.createElementVNode("path",{d:"M75.8 25.4a3527.2 3527.2 0 0 1-32.2 16.2A429.1 429.1 0 0 0 24.8 51a117.6 117.6 0 0 0-8.6 4.4c-5.7 2.7-7.5 8-5.8 17 .2 1.2.6 4.9.8 8.2l.8 8.8c.2 1.5.4 4.2.4 6 0 1.8.2 3.8.4 4.6.2.8.5 3.8.6 6.8.1 3 .4 6 .6 6.6.2.7.5 3.5.6 6.3 0 2.7.4 6.3.6 7.8l.8 8.7c.2 3.3.7 8.2 1 10.8.3 2.6.6 6.2.6 8 0 1.8.2 3.8.4 4.6.2.7.5 3.7.6 6.6.2 2.8.4 6 .6 7 .2.8.5 4 .6 7.1.2 3 .4 6 .6 6.7.2.7.5 3.7.6 6.8.1 3 .3 5.7.5 6 .2.3.6 5 1.3 14.4C24 231 24 231 29.7 235.6A74.8 74.8 0 0 1 50 259.2c4.9 10.3 5.3 24 1 36.6l-1.5 5.3c0 .3-.4 1.3-1 2.2L47 307c-.3 1-1.4 3.2-2.3 4.7a43 43 0 0 1-6.2 9.3c-3.8 4.5-4.8 8.2-3.7 13 .4 2 1.4 10.4 1.8 15.6.2 1.9.4 3.8.6 4.3.2.4.6 3.4.8 6.5.3 3.2.7 6.2.9 6.8.2.5.5 3.4.7 6.4.2 3 .6 6 .8 6.6.2.6.6 3.3.8 6 .4 5 .9 8.6 1.8 14.2.3 2 .6 4.4.6 5.5 0 1.1.3 4 .8 6.6l1 7.4c.5 6.2 2.2 8.1 9.8 10.8a99.5 99.5 0 0 1 10 4c1.7.5 3.2 1.1 3.4 1.3.7.5 6.2 2.8 6.8 2.8.3 0 1.7.5 3 1.2l4.2 1.6 5.8 2.4a82.2 82.2 0 0 0 8.8 3.6l5 2c2.1.6 5 1.8 6.7 2.6 1.6.7 3.5 1.5 4.1 1.6l4 1.6c1.5.7 4 1.7 5.4 2.1l8 3.1a193.7 193.7 0 0 0 15.8 6.3l3.6 1.4 5.3 2.1c1.8.9 4.5 2 6 2.5 1.5.4 3 1 3.5 1.3a100 100 0 0 1 14.2 5.5l4.6 1.9a56 56 0 0 0 5.2 1.8 62 62 0 0 1 6.2 2.3c4 1.8 9.9.7 20.7-4 1.6-.7 3-1.3 3.4-1.3a60.5 60.5 0 0 1 9.3-3.7 73.4 73.4 0 0 0 8.9-3.3l4.9-2c1.6-.8 4.2-1.9 5.8-2.4 1.6-.5 3.5-1.2 4.2-1.6a41 41 0 0 1 4.3-1.7c1.7-.5 4-1.4 5.1-2 2.3-1.1 7-3 13.6-5.3a85.1 85.1 0 0 0 11-4.5 675 675 0 0 0 23.4-9.3 53 53 0 0 1 5.6-2.2 38 38 0 0 0 4.2-1.6l4-1.6 4.6-1.8c2.8-1.4 13.9-5.8 14.4-5.8 1.2 0 6.7-2.6 8.2-4 2.4-2 3.2-3.7 3.4-7.1l.8-6.7c1.2-7.8 1.8-13 1.8-14.9 0-1 .3-3 .6-4.3.3-1.3.7-4.9 1-7.8.2-3 .5-6 .8-6.6.2-.7.6-3.7.8-6.7.2-3 .6-5.9.8-6.4a245.2 245.2 0 0 1 2.9-23.7c.1-1.8.5-4.7.8-6.6 1.2-9.6 1-10.1-5.2-18a40 40 0 0 1-5-8.1l-1.5-3c0-.3-.7-2.1-1.6-4.2a54 54 0 0 1-3.6-10.4c-.8-2.4-2.1-12.5-2.1-16.3a44.4 44.4 0 0 1 10-27 103 103 0 0 1 16.8-16.1c2.8-2.2 3.9-6.1 4-14.8 0-1.6.3-3.7.5-4.6.2-1 .5-4.1.6-7.1.1-3 .4-6.1.6-7 .2-.9.5-4 .6-7 .1-2.9.3-5.5.5-5.7.1-.3.4-2.8.5-5.7l.7-8.8c.6-4.6 1.5-15 2.4-28 .2-2.7.5-5 .6-5.2l.5-5.6c0-3 .3-6 .6-7 .2-1 .5-4.2.6-7.2.1-3 .4-6 .6-6.8.2-.8.5-3.7.6-6.6.1-2.9.4-6 .6-6.8.2-.9.4-3 .4-4.6 0-1.7.2-4.4.4-6l.8-8.2.9-10c1-10.5.1-12.9-6.1-15.8l-4.4-2.1-5.8-3-8.2-4A783.8 783.8 0 0 0 342 34.7l-32.5-16.2c-1.5-.5-11-.6-110.2-.6H90.6l-14.8 7.4m228.5 32.4a129 129 0 0 0 11.7 5.6c.6.2 6.6 3 13.4 6.4 6.8 3.3 13.4 6.5 14.7 7 8 3.1 8.4 5 7 30.2a905.9 905.9 0 0 0-.8 19.4 354.8 354.8 0 0 0-1.2 15.8l-.7 11.8c-.8 13.3-1.2 18.8-1.6 21.2-.2 1.4-.4 4.2-.4 6.2s-.2 4.3-.4 5.2c-.2.9-.4 4.3-.6 7.6-.1 3.2-.3 6-.4 6.2-.1.2-.4 3.2-.6 6.7-.4 7.8-.9 9-5.1 13.6a92.3 92.3 0 0 0-19.5 31 73.8 73.8 0 0 0-2.8 44.1c.2 1.1.6 3 1 4.2.5 1.2 1.3 3.9 1.8 6a75.2 75.2 0 0 0 8 18.3 74 74 0 0 0 3.2 5.7c3.8 5.8 5 11.5 3.5 17a48 48 0 0 0-.7 6.6 67 67 0 0 1-.7 7.2 77 77 0 0 0-.7 7.2l-.8 9.2-1.8 19c-.8 10.2-.9 11.3-1.8 13.3-1 2.3-3.8 5.1-5.6 5.6l-4.4 1.8c-4.7 2.2-11 4.9-15.8 6.7-2.2.8-5 2-6.4 2.7l-4 1.7-3.8 1.6-4.6 2-4.4 1.6a227.8 227.8 0 0 0-12.4 5.3c-2.2 1-4.3 1.9-4.6 1.9-.3 0-1.2.4-1.9.8s-2.7 1.2-4.4 1.8a55 55 0 0 0-5.5 2.3l-5 2.2a52 52 0 0 0-4 1.7c-.7.4-3 1.3-4.9 2a83.9 83.9 0 0 0-9.5 3.8c-.6.2-2.6 1-4.6 2-2 1-4.7 2-6 2.5-1.4.4-3.4 1.3-4.5 1.9l-2.5 1c-.3 0-2.2.7-4.2 1.6-4.8 2-6.5 2-10.2.3a80.4 80.4 0 0 0-9.8-4l-4.8-2a80 80 0 0 1-4.8-2 13017.1 13017.1 0 0 0-27.6-11.6c-1.8-.7-4.1-1.7-5.2-2l-3.8-1.7c-1-.5-2.6-1.1-3.6-1.4-1-.3-3.6-1.3-5.8-2.4a66.4 66.4 0 0 0-7.6-3.2c-.6-.5-6.3-2.8-6.9-2.8a23 23 0 0 1-3.6-1.4 114 114 0 0 0-5.5-2.4c-1.3-.5-3.5-1.4-4.8-2.1-1.3-.7-3.6-1.6-5-2a45 45 0 0 1-4.8-2 22 22 0 0 0-3.4-1.5c-.6-.1-3.1-1.2-5.6-2.4l-5.9-2.6c-4-1.3-6.1-5.8-6.5-13.6-.1-2.8-.4-5.8-.6-6.7-.2-1-.6-4.4-.8-7.6l-.8-9.5-.8-9.2a75 75 0 0 0-.8-7.6c-.2-1-.5-4-.6-6.5-.1-2.6-.4-5.6-.7-6.7a20.5 20.5 0 0 1 3.3-17 2248.4 2248.4 0 0 1 6-11 82.4 82.4 0 0 0 7.8-22.4l1-4.4a87.8 87.8 0 0 0-1.2-34.2A98.2 98.2 0 0 0 58.4 219c-2-2-3.2-4.4-3.2-6.6l-.6-7.8c-.6-6-1-11.6-1.8-24.1-.2-3.6-.5-6.7-.6-7a1106.2 1106.2 0 0 1-4.6-81.1l-.1-8.3 1.5-2.5c1.4-2.2 2-2.6 4.6-3.9a2066.4 2066.4 0 0 0 24.6-12l16-7.6c2-1 4.1-1.9 4.9-2 .7-.2 46.3-.3 101.3-.3h100l3.9 2m-185 29c-3 .4-2 4.6 2.7 11.6a84.9 84.9 0 0 1 10 23.4c.7 5 .8 249.2.2 252.4a39.4 39.4 0 0 1-5 12.5c-.7 1.4-2.8 4.7-4.8 7.4-3.6 5-4.1 6.2-3.6 7.2.5.7 70.4 1 72.7.3 2.3-.8 2-2-1-5.8a60 60 0 0 1-3.2-4.5l-2.6-3.6a45.5 45.5 0 0 1-4.8-9.7c-.8-2.1-.8-3.4-1-34.6 0-40.3 0-42 1.7-43.5l10.3-8.8c7-5.7 10.7-8.9 10.7-9.1 0-.5 4-3.2 4.4-3 .6.4 2 3.7 4.6 11.6 1.4 4.4 3.1 9.3 3.8 10.8a296.1 296.1 0 0 1 7.1 20l1.4 3.8a158.4 158.4 0 0 0 3.7 10.4 63 63 0 0 0 1.6 4.4l1.7 4.6a199.6 199.6 0 0 0 3.8 10.8l5 13.8c2.3 5.3 1.4 15.2-1.7 18.8a41.8 41.8 0 0 1-3.7 6.8c-3.2 5.2-3.3 6.4 0 6.9 4.2.6 71 .3 71.5-.3.8-1 .1-2.3-3-5.6a67.7 67.7 0 0 1-8.5-10.8c-1.9-3-6.3-14.2-10.5-26.2-3-8.4-3.7-10.5-5-13.6l-1.4-4c0-.5-.5-2-1.2-3.4s-1.2-2.9-1.2-3.2a40 40 0 0 0-2.6-7.2 156.6 156.6 0 0 1-12-33.6l-2-5.6c-.9-1.5-3.5-8.7-5.5-15-.9-2.8-1.8-5.2-2-5.5-.2-.2-.8-2-1.5-3.8l-3.4-9.7c-3-8.3-3-7.9.3-12a202.4 202.4 0 0 0 12-17.2c1-1.3 2.1-3.4 2.8-4.7.6-1.3 1.7-3.1 2.3-4 .7-.9 1.2-1.8 1.2-2 0-.6 2.7-6.3 3.6-7.5.4-.6 1-1.7 1.2-2.6l1.8-4.2c1.5-3 1.9-4 4.4-12.2l2.6-8.2a39 39 0 0 0 1.2-5.4 111 111 0 0 0 0-46.5 53.4 53.4 0 0 0-41.2-37.5 133 133 0 0 0-22-3.2c-2.5-.3-94.1-.5-95.9-.3m92.5 38a26 26 0 0 1 18.7 18.6 36 36 0 0 0 1.4 4 108.6 108.6 0 0 1-3.4 40 73.8 73.8 0 0 1-12.7 24c-1.5 2.5-8.5 10.5-12 13.9a120.1 120.1 0 0 1-13.7 12.1 52.5 52.5 0 0 1-4.6 3.7l-3.9 2.8c-1 .8-2 1.4-2.2 1.3-.4-.2-.7-120.8-.3-121.6 0-.2 6.4-.3 14.1-.3h14l4.6 1.4",fill:"#cca444","fill-rule":"evenodd"},null,-1),GH=[qH];function XH(e,t){return o.openBlock(),o.createElementBlock("svg",YH,GH)}const xh=B(UH,[["render",XH]]),KH=o.defineComponent({__name:"UploadDeckToLorButton",props:WH,setup(e){const{t}=re(),n=o.ref(null);o.onMounted(()=>{st(n.value,{content:t("deck.uploadDeckToLor"),arrow:!0}),st(n.value,{content:t("deck.deckUploaded"),trigger:"manual",arrow:!0})});function r(){console.log("UPLOAD DECK")}return(a,i)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button",onClick:r},[o.createVNode(xh)],512))}});const Ch=B(KH,[["__scopeId","data-v-f0fef97a"]]),JH={},ZH={class:"primary-button"};function QH(e,t){const n=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("button",ZH,[o.createVNode(n,{icon:"share-nodes"}),o.createElementVNode("span",null,[o.renderSlot(e.$slots,"default")])])}const Eh=B(JH,[["render",QH]]),eW={deckCode:{type:String,required:!0,default:"CUCACBIKYYAQCBQMAEBAMCI5F4EAMCQLB4IRGFI2D4WACAQGBIIBQAA"},deckId:{type:Number,required:!1},showButtons:{type:Object,required:!0,default:{deleteDeck:!0,updateDeckPrivacy:!0,editDeckName:!0,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0}}},tW={class:"deck-buttons"},nW={key:0,class:"owned-deck-buttons buttons"},rW={class:"normal-buttons buttons"},aW=o.defineComponent({__name:"DeckButtons",props:eW,setup(e){const t=e,{t:n}=re(),r=o.computed(()=>Et(t.deckCode));return console.log(r),(a,i)=>(o.openBlock(),o.createElementBlock("div",tW,[t.showButtons.deleteDeck||t.showButtons.updateDeckPrivacy||t.showButtons.editDeckName?(o.openBlock(),o.createElementBlock("div",nW,[t.showButtons.deleteDeck?(o.openBlock(),o.createBlock(vh,{key:0,"deck-id":t.deckId},null,8,["deck-id"])):o.createCommentVNode("",!0),t.showButtons.updateDeckPrivacy?(o.openBlock(),o.createBlock(Sh,{key:1,"deck-id":t.deckId,"deck-is-private":!1},null,8,["deck-id"])):o.createCommentVNode("",!0),t.showButtons.editDeckName?(o.openBlock(),o.createBlock(_h,{key:2,"deck-id":t.deckId,"deck-name":"todo"},null,8,["deck-id"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",rW,[t.showButtons.gemsCost?(o.openBlock(),o.createBlock(hp,{key:0,deck:o.unref(r)},null,8,["deck"])):o.createCommentVNode("",!0),t.showButtons.openArchetypePage?(o.openBlock(),o.createBlock(yh,{key:1,"archetype-id":1})):o.createCommentVNode("",!0),t.showButtons.simulateMulligan?(o.openBlock(),o.createBlock(wh,{key:2,deck:o.unref(r)},null,8,["deck"])):o.createCommentVNode("",!0),t.showButtons.openInDeckBuilder?(o.openBlock(),o.createBlock(bh,{key:3,"deck-code":t.deckCode},null,8,["deck-code"])):o.createCommentVNode("",!0),t.showButtons.copyDeckCode?(o.openBlock(),o.createBlock(gh,{key:4,"deck-code":t.deckCode},null,8,["deck-code"])):o.createCommentVNode("",!0),t.showButtons.uploadDeckToLor?(o.openBlock(),o.createBlock(Ch,{key:5,"deck-code":t.deckCode,"deck-name":"todo"},null,8,["deck-code"])):o.createCommentVNode("",!0),t.showButtons.shareDeck?(o.openBlock(),o.createBlock(Eh,{key:6},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("deck.shareDeck")),1)]),_:1})):o.createCommentVNode("",!0)])]))}});const Th=B(aW,[["__scopeId","data-v-45c7b897"]]),iW={cards:{type:Array,required:!1},deck:{type:Object,required:!1},deckCode:{type:String,required:!0,default:""},deckId:{type:Number,required:!1}},sW={class:"deck-preview no-scrollbar"},oW={class:"top"},lW=o.defineComponent({__name:"DeckPreview",props:iW,setup(e){const t=e,n={deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!1,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},r=o.computed(()=>t.deck?t.deck:Et(t.deckCode)),a=o.computed(()=>t.cards?t.cards:cn(r.value)),i=o.computed(()=>{var s;return{"--deck-summary-background":`url(https://lor.gg/storage/cards/full-art/${(s=za(a.value,r.value,1)[0])==null?void 0:s.cardCode}.webp)`}});return(s,l)=>(o.openBlock(),o.createElementBlock("div",sW,[o.createElementVNode("div",oW,[o.createVNode(Th,{class:"deck-buttons no-scrollbar","deck-code":t.deckCode,"deck-id":t.deckId,"show-buttons":n},null,8,["deck-code","deck-id"])]),o.createElementVNode("div",{class:"deck-summary-wrapper",style:o.normalizeStyle(o.unref(i))},[o.createVNode(pu,{deck:o.unref(r)},null,8,["deck"])],4)]))}});const Oh=B(lW,[["__scopeId","data-v-bf451763"]]),cW={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1}},uW={class:"deck-highlight-eye"},dW=o.defineComponent({__name:"DeckHighlightEye",props:cW,setup(e){const t=e,n=o.ref(null),r=o.ref(null),a=o.ref(!1),i=o.ref(!1),s=o.computed(()=>t.deck?t.deck:Et(t.deckCode)),l=o.computed(()=>t.cards?t.cards:cn(s.value));o.onMounted(()=>{var u;st((u=r.value)==null?void 0:u.$el,{content:n.value,arrow:!0,duration:0,maxWidth:"90vw",onShow(){a.value=!0},onCreate(d){l.value.length<1||d.popper.style.setProperty("--tippy-background",`url(https://lor.gg/storage/cards/full-art/${za(l.value,s.value,1)[0].cardCode}.webp)`)}})});function c(){i.value=!0}return(u,d)=>(o.openBlock(),o.createElementBlock("div",uW,[o.createVNode(o.unref(nt),{ref_key:"eyeIcon",ref:r,icon:"eye",class:"icon",onClick:c},null,512),o.createElementVNode("div",{ref_key:"deckSummary",ref:n,class:"deck-summary-wrapper"},[a.value?(o.openBlock(),o.createBlock(pu,{key:0,class:"deck-summary",deck:o.unref(s),"cards-prop":o.unref(l)},null,8,["deck","cards-prop"])):o.createCommentVNode("",!0)],512),o.createVNode(Hi,{"show-modal":i.value,"onUpdate:showModal":d[0]||(d[0]=f=>i.value=f)},{default:o.withCtx(()=>[o.createVNode(Oh,{cards:o.unref(l),deck:o.unref(s),"deck-code":t.deckCode},null,8,["cards","deck","deck-code"])]),_:1},8,["show-modal"])]))}});const hu=B(dW,[["__scopeId","data-v-ecb770cc"]]),fW={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},showEye:{type:Boolean,required:!1,default:!0}},pW=o.defineComponent({__name:"DeckHighlight",props:fW,setup(e){const t=e,n=o.computed(()=>t.deck?t.deck:Et(t.deckCode)),r=o.computed(()=>t.cards?t.cards:cn(n.value)),a=o.computed(()=>Lc(r.value)),i=o.computed(()=>r.value.filter(s=>Pi(s)));return(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["deck-highlight",t.showEye?"":"hide-eye"])},[o.createVNode(Co,{class:"deck-highlight-regions",regions:o.unref(a)},null,8,["regions"]),o.createVNode(Eo,{class:"deck-highlight-cards",cards:o.unref(i),regions:o.unref(a)},null,8,["cards","regions"]),o.createVNode(hu,{class:"deck-highlight-eye",cards:o.unref(r),deck:o.unref(n),"deck-code":t.deckCode},null,8,["cards","deck","deck-code"])],2))}});const oa=B(pW,[["__scopeId","data-v-d406c495"]]),hW={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[]}}},Fb=o.defineComponent({__name:"ArchetypeSidePanel",props:hW,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=o.reactive(n.filters);return o.watch(r,()=>{t("update:filters",r)}),(a,i)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode($c,{"card-codes":n.cardCodes,regions:n.regions},null,8,["card-codes","regions"]),o.createVNode(bo,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":i[0]||(i[0]=s=>r.sampleSizeFilters=s)},null,8,["filter-array"]),o.createVNode(wo,{"filter-array":r.timeFilters,"onUpdate:filterArray":i[1]||(i[1]=s=>r.timeFilters=s)},null,8,["filter-array"]),o.createVNode(ko,{"filter-array":r.serverFilters,"onUpdate:filterArray":i[2]||(i[2]=s=>r.serverFilters=s)},null,8,["filter-array"])]))}});const mW={},gW={class:"social-links"},vW={href:"https://discord.gg/tGTSXgDFVU"},_W={href:"https://twitter.com/LORGG__"};function yW(e,t){const n=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("div",gW,[o.createElementVNode("a",vW,[o.createVNode(n,{icon:["fab","discord"],class:"social-icon"})]),o.createElementVNode("a",_W,[o.createVNode(n,{icon:["fab","twitter"],class:"social-icon"})])])}const zb=B(mW,[["render",yW],["__scopeId","data-v-9de6c1ad"]]),bW={type:{type:String,required:!0,default:"data"},deckcode:{type:String,required:!0,default:""},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!1,default:1},wins:{type:Number,required:!1,default:1},comparedDeckcode:{type:String,required:!1,default:""},id:{type:Number,required:!1,default:1},name:{type:String,required:!1,default:""},updatedAt:{type:Number,required:!1,default:1},createdAt:{type:Number,required:!1,default:1}},Ki=Symbol(),kW={...Z2,difference:{type:Number,required:!0,default:1}},wW={class:"deck-difference-item"},SW=o.defineComponent({__name:"DeckDifferenceItem",props:kW,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",wW,[o.createVNode(da,{"card-code-prop":t.cardCodeProp,"card-prop":t.cardProp,regions:t.regions,"ignore-card-item":t.ignoreCardItem},null,8,["card-code-prop","card-prop","regions","ignore-card-item"]),o.createElementVNode("div",{class:o.normalizeClass(["difference",t.difference>0?"positive":"negative"])},o.toDisplayString(`${t.difference>0?"+":""}${t.difference}`),3)]))}});const Mh=B(SW,[["__scopeId","data-v-6a27e232"]]),xW={differences:{type:Array,required:!0,default:[]}},CW={class:"deck-differences no-scrollbar"},EW=o.defineComponent({__name:"DeckDifferences",props:xW,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",CW,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.differences,a=>(o.openBlock(),o.createBlock(Mh,{key:a.cardCodeProp,"card-code-prop":a.cardCodeProp,"card-prop":a.cardProp,difference:a.difference,"ignore-card-item":a.ignoreCardItem,regions:a.regions},null,8,["card-code-prop","card-prop","difference","ignore-card-item","regions"]))),128))]))}});const Nh=B(EW,[["__scopeId","data-v-79e42cb8"]]),jb=e=>(o.pushScopeId("data-v-7cedd2f0"),e=e(),o.popScopeId(),e),TW={href:"/test",class:"wrapper"},OW={class:"table-card-row-background-wrapper"},MW={class:"table-card-row-background"},NW=jb(()=>o.createElementVNode("div",{class:"background-card"},null,-1)),DW=[NW],PW={class:"decks-row wrapper"},AW={class:"column-content"},IW={class:"column-content"},LW={class:"column-content"},RW={class:"column-content"},BW={key:2,class:"column-content"},VW={class:"column-content"},$W={key:3,class:"column-content deck-differences-column"},FW=["onClick"],zW=jb(()=>o.createElementVNode("div",{class:"column-content region-chart-wrapper"},null,-1)),jW=o.defineComponent({__name:"DecksRow",props:bW,setup(e){const t=e,n=o.inject(Ki),r=o.computed(()=>Et(t.deckcode)),a=o.computed(()=>cn(r.value)),i=o.computed(()=>za(a.value,r.value,2).map(c=>`https://lor.gg/storage/cards/banner/${c.cardCode}.png`)),s=o.computed(()=>{const c=[];if(t.type!=="similar")return c;const u=Et(t.comparedDeckcode);for(const[d,f]of Object.entries(r.value))f!==u[d]&&c.push({cardCodeProp:d,difference:f-(u[d]??0),ignoreCardItem:!1});for(const[d,f]of Object.entries(u))f===r.value[d]||c.some(p=>p.cardCodeProp===d)||c.push({cardCodeProp:d,difference:(r.value[d]??0)-f,ignoreCardItem:!1});return c});console.log(s.value);function l(){console.log("Options Button Clicked.")}return(c,u)=>{var d;return o.openBlock(),o.createElementBlock("a",TW,[o.createElementVNode("div",{class:"decks-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",OW,[o.createElementVNode("div",MW,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),f=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"background-card-wrapper",style:o.normalizeStyle({"--background-image":`url(${f})`})},DW,4))),128))])]),o.createElementVNode("div",PW,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:u[0]||(u[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(oa,{"deck-code":t.deckcode,deck:o.unref(r),cards:o.unref(a)},null,8,["deck-code","deck","cards"])]),t.type==="data"||t.type==="similar"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",AW,o.toDisplayString(o.unref(Me)(t.matches)),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,1,3))+"% ",5)],64)):t.type==="built"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",IW,o.toDisplayString(t.name),1),o.createElementVNode("div",LW,o.toDisplayString(o.unref(n)(t.updatedAt).fromNow()),1),o.createElementVNode("div",RW,o.toDisplayString(o.unref(n)(t.createdAt).fromNow()),1)],64)):o.createCommentVNode("",!0),t.type!=="similar"?(o.openBlock(),o.createElementBlock("div",BW,[o.createVNode(fu,{class:"mana-curve-chart","deck-code":t.deckcode,"padding-top":0,"show-data-labels":!1,"data-labels-offset":0,"tooltips-enabled":!1,"display-x-scale":!1,animation:!1},null,8,["deck-code"])])):o.createCommentVNode("",!0),o.createElementVNode("div",VW,o.toDisplayString((d=o.unref(ec)(o.unref(r),!0)??o.unref(ec)(o.unref(r),!1))==null?void 0:d.toLocaleString()),1),t.type==="similar"?(o.openBlock(),o.createElementBlock("div",$W,[o.createVNode(Nh,{differences:o.unref(s)},null,8,["differences"])])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"column-content options-button",onClick:o.withModifiers(l,["stop","prevent"])},[o.createVNode(o.unref(nt),{icon:"ellipsis-v"})],8,FW),zW])],4)])}}});const Ho=B(jW,[["__scopeId","data-v-7cedd2f0"]]),HW={},WW={class:"icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 172 172"},UW=o.createStaticVNode('<g fill="none" stroke-miterlimit="10" style="mix-blend-mode:normal;"><g stroke="var(--color-primary-2)" stroke-width="20" stroke-linejoin="round"><path d="M86 157.277c-39.302 0-71.277-31.975-71.277-71.277S46.698 14.723 86 14.723 157.277 46.698 157.277 86 125.302 157.277 86 157.277z" fill="var(--color-primary)" stroke-width="17.92"></path><path d="M86 16.65C47.761 16.65 16.65 47.76 16.65 86c0 38.239 31.111 69.35 69.35 69.35 38.239 0 69.35-31.111 69.35-69.35 0-38.239-31.111-69.35-69.35-69.35m0-3.853c40.427 0 73.203 32.776 73.203 73.203S126.427 159.203 86 159.203 12.797 126.427 12.797 86 45.573 12.797 86 12.797z" fill="var(--color-primary)" stroke-width="17.92"></path><path d="M93.706 55.178a7.706 7.706 0 1 1-15.412 0 7.706 7.706 0 0 1 15.412 0zM97.558 120.675v3.853H74.442v-3.853h3.852v-42.38h-3.852v-3.853h19.264v46.233z" fill="var(--color-primary-2)" stroke-width="17.92"></path></g><path d="M8.944 163.056V8.944h154.112v154.112z"></path><g stroke-width="1" stroke-linejoin="miter"><path d="M86 157.277c-39.302 0-71.277-31.975-71.277-71.277S46.698 14.723 86 14.723 157.277 46.698 157.277 86 125.302 157.277 86 157.277z" fill="var(--color-background-1)"></path><path d="M86 16.65c38.239 0 69.35 31.111 69.35 69.35 0 38.239-31.111 69.35-69.35 69.35-38.239 0-69.35-31.111-69.35-69.35 0-38.239 31.111-69.35 69.35-69.35m0-3.853c-40.427 0-73.203 32.776-73.203 73.203S45.573 159.203 86 159.203 159.203 126.427 159.203 86 126.427 12.797 86 12.797z" fill="var(--color-background-1)"></path><path d="M86 47.472a7.706 7.706 0 1 0 0 15.411 7.706 7.706 0 0 0 0-15.411zM93.706 120.675V74.442H74.442v3.852h3.852v42.381h-3.852v3.853h23.116v-3.853z" fill="var(--color-primary-2)"></path></g></g>',1),YW=[UW];function qW(e,t){return o.openBlock(),o.createElementBlock("svg",WW,YW)}const Dh=B(HW,[["render",qW]]),GW={class:"card-item-link-wrapper"},XW={key:0,class:"card-item-wrapper"},KW={href:"https://lor.gg"},JW={key:1,class:"card-item-wrapper"},ZW={class:"link-icon-link",href:"https://lor.gg"},QW={class:"link-icon"},eU=o.defineComponent({__name:"CardItemLinkWrapper",props:z2,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",GW,[n.isDeckBuilder?(o.openBlock(),o.createElementBlock("div",JW,[o.createVNode(Sr,o.normalizeProps(o.guardReactiveProps(t)),null,16),o.createElementVNode("a",ZW,[o.createElementVNode("div",QW,[o.createVNode(Dh)])])])):(o.openBlock(),o.createElementBlock("div",XW,[o.createElementVNode("a",KW,[o.createVNode(Sr,o.normalizeProps(o.guardReactiveProps(t)),null,16)])]))]))}});const Hb=B(eU,[["__scopeId","data-v-f83acc56"]]),tU={name:{type:String,required:!0,default:""}},nU={class:"profile-dropdown-wrapper"},rU=o.defineComponent({__name:"ProfileDropdown",props:tU,setup(e){const t=e,n=o.ref(),r=o.ref();return o.onMounted(()=>{st(n.value,{content:r.value,arrow:!0,interactive:!0,interactiveBorder:10})}),(a,i)=>(o.openBlock(),o.createElementBlock("div",nU,[o.createElementVNode("div",{ref_key:"profile",ref:n,class:"profile-dropdown"},o.toDisplayString(t.name),513),o.createElementVNode("div",{ref_key:"dropdown",ref:r,class:"slider-wrapper"},"Test",512)]))}});const Ph=B(rU,[["__scopeId","data-v-1c516824"]]),mu={items:{type:Array,required:!0,default:[]},isLoggedIn:{type:Boolean,required:!0,default:!1},name:{type:String,required:!1,default:""},iconCard:{type:String,required:!1,default:""},bannerColor:{type:String,required:!1,default:""},userId:{type:Number,required:!1,default:1}},aU={class:"navigation-top-desktop"},iU={class:"left content"},sU={class:"right content"},oU={key:1,class:"fancy-button"},lU=o.defineComponent({__name:"NavigationTopDesktop",props:mu,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",aU,[o.createElementVNode("div",iU,[o.createVNode(Rc,{class:"search-bar"})]),o.createElementVNode("div",sU,[o.createVNode(tp,{class:"social-links"}),o.createVNode(mp,{class:"language-selection"}),t.isLoggedIn?(o.openBlock(),o.createBlock(Ph,{key:0,name:t.name},null,8,["name"])):(o.openBlock(),o.createElementBlock("div",oU,"Sign In"))])]))}});const Ah=B(lU,[["__scopeId","data-v-0be13d90"]]),cU={card:{type:Object,required:!0,default:{associatedCardRefs:["06NX013T1"],regionRefs:["Noxus","06RU002"],attack:1,cost:2,health:1,description:"<link=keyword.PlaySkillMark><sprite name=SkillMark><style=Keyword>Play</style></link>: <link=keyword.Stun><sprite name=Stunned><style=Keyword>Stun</style></link> an enemy or if it's already <link=keyword.Stun><sprite name=Stunned><style=Keyword>Stunned</style></link> deal 2 to it instead.",descriptionRaw:"Play: Stun an enemy or if it's already Stunned deal 2 to it instead.",levelupDescription:"",levelupDescriptionRaw:"",flavorText:`"Student: Sydell Kythera
859
+ Teacher: J. Willough
860
+ Report: I am spiderbit on left forearm. Sydell claims a misunderstanding, but his smirk belies his innocence. He is ordered to two weeks additional chores (refectory)."
861
+ - Ravenbloom discipline card`,artistName:"Polar Engine",name:"Spell Slinger",cardCode:"06NX013",keywords:["Fearsome"],keywordRefs:["Fearsome"],spellSpeedRef:"",rarityRef:"Common",subtypes:["SPIDER"],subtypeRefs:["SPIDER"],supertype:"",typeRef:"Unit",collectible:!0,set:"Set6",createdAt:"2022-09-09",updatedAt:"2022-09-14"}}},uU={class:"card-similar-cards"},dU=o.defineComponent({__name:"CardSimilarCards",props:cU,setup(e){const t=e;function n(a,i,s){if(a.length===10&&s<a[0].points)return;let l=0;for(;l<a.length&&a[l].points<s;)l++;a.splice(l,0,{cardCode:i,points:s}),a.length>10&&a.splice(0,1)}const r=o.computed(()=>{const a=[],i=Dt().cardJsonObject;let s=0;for(const l in i){if(l===t.card.cardCode||t.card.collectible&&!i[l].collectible)continue;s=0;const c=i[l];for(const u of c.regionRefs)for(const d of t.card.regionRefs)u===d&&(s+=2);for(const u of c.subtypes)for(const d of t.card.subtypes)u===d&&(s+=2);for(const u of c.keywordRefs)for(const d of t.card.keywordRefs)u===d&&(s+=1);c.typeRef===t.card.typeRef&&(s+=3),c.rarityRef!=="None"&&c.rarityRef===t.card.rarityRef&&(s+=1),c.typeRef==="Unit"&&t.card.typeRef==="Unit"&&(s+=(9-Math.abs(c.attack-t.card.attack))/3,s+=(9-Math.abs(c.health-t.card.health))/3),s+=(12-Math.abs(c.cost-t.card.cost))/3,n(a,l,s)}return a.reverse().map(l=>Dt().cardJsonObject[l.cardCode])});return(a,i)=>(o.openBlock(),o.createElementBlock("div",uU,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r),s=>(o.openBlock(),o.createBlock(Sr,{key:s.cardCode,"card-prop":s,"is-root":!0},null,8,["card-prop"]))),128))]))}});const Wb=B(dU,[["__scopeId","data-v-629c30ac"]]),fU={logoType:{type:String,required:!0,default:"logo-and-text"}},Ub=e=>(o.pushScopeId("data-v-bb0b24b5"),e=e(),o.popScopeId(),e),pU={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 862.33 136.654"},hU=o.createStaticVNode('<path d="M0 2.947h18.418V115.29h77.35v18.416H0Z" data-v-bb0b24b5></path><path d="M205.729 0a68.327 68.327 0 1 1-68.326 68.331A68.3 68.3 0 0 1 205.729 0Zm0 118.236a49.908 49.908 0 1 0-49.909-49.909 49.948 49.948 0 0 0 49.909 49.904Z" data-v-bb0b24b5></path><path d="M396.538 2.947a42.211 42.211 0 0 1 41.991 41.991 41.554 41.554 0 0 1-32.046 40.7l29.1 48.067H414.22l-28.363-46.962h-32.046v46.962h-18.416V68.326h39.413l-39.413-65.38Zm0 65.38a23.481 23.481 0 1 0 0-46.962h-28.73l28.363 46.962Z" data-v-bb0b24b5></path><path d="M495.266 115.291h18.418v18.416h-18.418Z" data-v-bb0b24b5></path><path d="M685.517 60.778v72.928h-18.418v-6.443a68.378 68.378 0 1 1 12.894-107.926l-12.894 13.076a49.909 49.909 0 1 0 0 71.827V79.192h-49.726V60.779Z" data-v-bb0b24b5></path><path d="M862.33 60.778v72.928h-18.417v-6.443a68.379 68.379 0 1 1 12.89-107.926l-12.89 13.076a49.909 49.909 0 1 0 0 71.827V79.192H794.19V60.779Z" data-v-bb0b24b5></path>',6),mU=[hU],gU={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 926.43 201.096"},vU=o.createStaticVNode('<path d="M251.125 49.347h14.423v87.978h60.574v14.422h-75Z" data-v-bb0b24b5></path><path d="M412.235 47.039a53.507 53.507 0 1 1-53.508 53.507 53.487 53.487 0 0 1 53.508-53.507Zm0 92.592a39.084 39.084 0 1 0-39.085-39.084 39.115 39.115 0 0 0 39.085 39.084Z" data-v-bb0b24b5></path><path d="M561.66 49.347a33.056 33.056 0 0 1 32.884 32.884 32.542 32.542 0 0 1-25.1 31.873l22.787 37.642h-16.729l-22.212-36.777h-25.1v36.777h-14.422v-51.2h30.865l-30.865-51.2Zm0 51.2a18.388 18.388 0 1 0 0-36.776h-22.5l22.211 36.776Z" data-v-bb0b24b5></path><path d="M638.976 137.325h14.423v14.422h-14.423Z" data-v-bb0b24b5></path><path d="M787.964 94.635v57.111h-14.422V146.7a53.547 53.547 0 1 1 10.1-84.518l-10.1 10.24a39.084 39.084 0 1 0 0 56.248v-19.616h-38.939v-14.42Z" data-v-bb0b24b5></path><path d="M926.429 94.635v57.111h-14.423V146.7A53.548 53.548 0 1 1 922.1 62.182l-10.094 10.24a39.084 39.084 0 1 0 0 56.248v-19.616h-38.939v-14.42Z" data-v-bb0b24b5></path><path d="M100.548 0A100.548 100.548 0 0 1 201.1 100.548a98.177 98.177 0 0 1-3.633 26.46c-.011-.011-17.535 0-17.535 0s5.292-19.211 5.292-26.46a84.672 84.672 0 0 0-169.344 0c0 46.782 39.667 84.672 84.672 84.672s73.348-43.16 73.348-43.16h18.252A100.558 100.558 0 1 1 100.548 0Z" data-v-bb0b24b5></path><path d="M108.72 45.643c19.711 0 36.623 15.51 36.623 34.994 0 16.991-12.308 31.253-28.078 34.994l15.87 25.34h59.707s-4 7.623-11.509 11.243-18.271 3.238-18.271 3.238h-38.473l-24.415-39.821H72.097v39.821h-15.87V99.945h34.182l-34.182-54.3Zm0 54.3c11.2 0 20.753-8.242 20.753-19.307s-9.557-19.307-20.753-19.307H84.304l24.416 38.614Z" data-v-bb0b24b5></path>',8),_U=[vU],yU={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 201.1 201.12"},bU=Ub(()=>o.createElementVNode("path",{d:"M100.548 0A100.548 100.548 0 0 1 201.1 100.548a98.177 98.177 0 0 1-3.633 26.46c-.011-.011-17.535 0-17.535 0s5.292-19.211 5.292-26.46a84.672 84.672 0 0 0-169.344 0c0 46.782 39.667 84.672 84.672 84.672s73.348-43.16 73.348-43.16h18.252A100.558 100.558 0 1 1 100.548 0Z"},null,-1)),kU=Ub(()=>o.createElementVNode("path",{d:"M108.72 45.643c19.711 0 36.623 15.51 36.623 34.994 0 16.991-12.308 31.253-28.078 34.994l15.87 25.34h59.707s-4 7.623-11.509 11.243-18.271 3.238-18.271 3.238h-38.473l-24.415-39.821H72.097v39.821h-15.87V99.945h34.182l-34.182-54.3Zm0 54.3c11.2 0 20.753-8.242 20.753-19.307s-9.557-19.307-20.753-19.307H84.304l24.416 38.614Z"},null,-1)),wU=[bU,kU],SU=o.defineComponent({__name:"LogoIcon",props:fU,setup(e){const t=e;return(n,r)=>t.logoType==="text-only"?(o.openBlock(),o.createElementBlock("svg",pU,mU)):t.logoType==="logo-and-text"?(o.openBlock(),o.createElementBlock("svg",gU,_U)):(o.openBlock(),o.createElementBlock("svg",yU,wU))}});const zi=B(SU,[["__scopeId","data-v-bb0b24b5"]]),xU={class:"dashboard-sign-up"},CU={class:"top"},EU={class:"subtitle"},TU={class:"fancy-button"},OU=o.defineComponent({__name:"DashboardSignUp",setup(e){const{t}=re();return(n,r)=>(o.openBlock(),o.createElementBlock("div",xU,[o.createElementVNode("div",CU,[o.createVNode(zi,{"logo-type":"text-only",class:"logo-icon"}),o.createElementVNode("div",EU,o.toDisplayString(o.unref(t)("general.becomeTheMaster")),1)]),o.createElementVNode("div",TU,o.toDisplayString(o.unref(t)("general.signIn")),1)]))}});const Yb=B(OU,[["__scopeId","data-v-e398dd28"]]),MU={deckCode:{type:String,required:!0,default:""},gameMode:{type:String,required:!0,default:""},gameType:{type:String,required:!0,default:""},isAttackingFirst:{type:Boolean,required:!0,default:!0},isVictory:{type:Boolean,required:!0,default:""},opponentDeckCode:{type:String,required:!0,default:""},opponentName:{type:String,required:!0,default:""},playedAt:{type:Date,required:!0,default:new Date}},NU=e=>(o.pushScopeId("data-v-40345245"),e=e(),o.popScopeId(),e),DU={class:"match-item"},PU=NU(()=>o.createElementVNode("div",{class:"background-card"},null,-1)),AU=[PU],IU={class:"details"},LU={class:"match-details"},RU={class:"game-type"},BU={class:"time"},VU={class:"opponent-details"},$U={class:"main"},FU={class:"container"},zU={class:"container"},jU=o.defineComponent({__name:"MatchItem",props:MU,setup(e){const t=e,{t:n}=re(),r=o.inject(Ki),a=o.computed(()=>Et(t.deckCode)),i=o.computed(()=>Et(t.opponentDeckCode)),s=o.computed(()=>[za(cn(a.value),a.value,1)[0],za(cn(i.value),i.value,1)[0]].map(l=>`https://lor.gg/storage/cards/banner/${l==null?void 0:l.cardCode}.png`));return(l,c)=>(o.openBlock(),o.createElementBlock("div",DU,[o.createElementVNode("div",{class:"background",style:o.normalizeStyle({"--background-image":`url(${o.unref(s)[0]})`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),u=>(o.openBlock(),o.createElementBlock("div",{key:u,class:"background-card-wrapper",style:o.normalizeStyle({"--background-image":`url(${u})`})},AU,4))),128))],4),o.createElementVNode("div",IU,[o.createElementVNode("div",LU,[o.createElementVNode("div",RU,o.toDisplayString(t.gameType),1),o.createElementVNode("div",BU,o.toDisplayString(o.unref(r)(t.playedAt).fromNow()),1)]),o.createElementVNode("div",VU,o.toDisplayString(t.opponentName),1)]),o.createElementVNode("div",$U,[o.createElementVNode("div",FU,[o.createVNode(oa,{class:"deck-highlight",deck:o.unref(a)},null,8,["deck"])]),o.createElementVNode("div",{class:"container results",style:o.normalizeStyle({color:t.isVictory?"var(--color-good)":"var(--color-bad)"})},o.toDisplayString(t.isVictory?o.unref(n)("general.victory"):o.unref(n)("general.defeat")),5),o.createElementVNode("div",zU,[o.createVNode(oa,{class:"deck-highlight opponent",deck:o.unref(i)},null,8,["deck"])])])]))}});const qb=B(jU,[["__scopeId","data-v-40345245"]]),HU={players:{type:Array,required:!0,default:[]}},WU={class:"leaderboard-top-10-region"},UU=o.defineComponent({__name:"LeaderboardTop10Region",props:HU,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",WU,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.players,a=>(o.openBlock(),o.createBlock(an,{key:a.user_id,"card-code-prop":a.selected_banner_card??void 0,color:a.selected_banner_color??"var(--color-background-2-rgb)","mana-number":a.rank+1,name:a.name,"quantity-number":a.lp,"ignore-card-item":!0},null,8,["card-code-prop","color","mana-number","name","quantity-number"]))),128))]))}});const Ih=B(UU,[["__scopeId","data-v-892efa10"]]),YU={index:{type:Number,required:!0,default:0},change:{type:Number,required:!0,default:0},favorite_deck:{type:String,required:!0,default:""},lp:{type:Number,required:!0,default:0},matches:{type:Number,required:!0,default:0},name:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},selected_banner_card:{type:String,required:!1,default:null},selected_banner_color:{type:String,required:!1,default:null},server:{type:String,required:!0,default:"americas"},updated_at:{type:String,required:!0,default:""},user_id:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0}},qU={href:"/test",class:"wrapper"},GU={class:"leaderboard-detail-row-background-wrapper"},XU={class:"leaderboard-detail-row-background"},KU={class:"leaderboard-detail-row wrapper"},JU={class:"column-content"},ZU={class:"column-content"},QU={class:"column-content deck-highlight-wrapper"},eY=o.defineComponent({__name:"LeaderboardDetailRow",props:YU,setup(e){const t=e,n=o.computed(()=>t.selected_banner_card?["",`https://lor.gg/storage/cards/banner/${t.selected_banner_card}.png`]:[]),r=o.computed(()=>t.change===null||t.change===void 0?[]:t.change===0?["neutral"]:[t.change>0?"good":"bad"]);return(a,i)=>(o.openBlock(),o.createElementBlock("a",qU,[o.createElementVNode("div",{class:"leaderboard-detail-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",GU,[o.createElementVNode("div",XU,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(n),s=>(o.openBlock(),o.createElementBlock("div",{key:s,class:"background-card",style:o.normalizeStyle({"--background-image":`url(${s})`})},null,4))),128))])]),o.createElementVNode("div",KU,[o.createElementVNode("div",{class:"column-content card-wrapper",onClick:i[0]||(i[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(an,{class:"card-slice-item","card-code-prop":t.selected_banner_card??void 0,color:t.selected_banner_color??"var(--color-background-2-rgb)","ignore-card-item":!0,"mana-number":t.rank+1,name:t.name,"maintain-aspect-ratio":!0},null,8,["card-code-prop","color","mana-number","name"])]),o.createElementVNode("div",JU,o.toDisplayString(o.unref(Me)(t.lp)),1),o.createElementVNode("div",{class:o.normalizeClass(["column-content change",o.unref(r)])},[t.change!==null?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(nt),{class:"icon",icon:"fa-chevron-down"}),o.createElementVNode("span",null,o.toDisplayString(t.change?o.unref(Me)(Math.abs(t.change)):""),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" Test ")],64))],2),o.createElementVNode("div",ZU,o.toDisplayString(o.unref(Me)(t.matches)),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,1,3))+"% ",5),o.createElementVNode("div",QU,[o.createVNode(oa,{"deck-code":t.favorite_deck},null,8,["deck-code"])])])],4)]))}});const Lh=B(eY,[["__scopeId","data-v-fd1e0d8c"]]),tY={deckcode:{type:String,required:!0,default:""},type:{type:String,required:!0,default:"built"},wins:{type:Number,required:!1,default:0},matches:{type:Number,required:!1,default:0},deckId:{type:Number,required:!1,default:0},userName:{type:String,required:!1,default:""},userId:{type:Number,required:!1,default:0},deckName:{type:String,required:!1,default:""},updatedAt:{type:Date,required:!1,default:new Date}};const nY={},rY=e=>(o.pushScopeId("data-v-5b8e191d"),e=e(),o.popScopeId(),e),aY={xmlns:"http://www.w3.org/2000/svg",viewBox:"25.21 66.56 353.98 269.42"},iY=rY(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M95 67.249c-9.442 3.237-27.165 14.29-35.055 21.862-11.985 11.504-13.495 17.449-8.521 33.553 2.884 9.338 3.125 12.31 1.653 20.336-.565 3.08-1.282 7.497-1.593 9.816-.654 4.859-1.507 6.968-3.167 7.827-3.347 1.731-6.07-.959-12.46-12.308-3.227-5.732-5.32-5.733-7.478-.002-2.901 7.705-4.229 34.074-2.178 43.267 2.612 11.708 12.146 22.248 23.887 26.408 8.91 3.158 11.435 5.049 14.233 10.662 8.79 17.627 7.541 23.49-4.121 19.348-1.98-.704-5.67-2.014-8.2-2.912-14.356-5.094-16.5 2.124-5.514 18.561 11.421 17.088 27.745 24.899 44.255 21.178 8.934-2.013 10.069-1.524 24.2 10.428 6.649 5.624 4.594 9.455-6.606 12.316-12.406 3.169-15.535 4.779-15.535 7.993 0 5.469 18.596 14.356 38.74 18.513l8.26 1.705 9.6-.008c15.176-.013 24.599-3.381 27.766-9.923 3.23-6.671-3.138-11.752-20.405-16.279-12.779-3.351-30.021-11.869-38.294-18.917-1.247-1.063-3.897-3.157-5.888-4.655-4.364-3.282-4.942-3.837-11.668-11.218-11.085-12.163-22.048-27.835-28.466-40.688-3.51-7.033-9.477-26.526-11.236-36.712-.456-2.64-1.19-6.571-1.631-8.736-2.292-11.243-2.558-44.967-.409-51.864 1.238-3.974 3.331-7.113 8.743-13.113 5.167-5.728 14.42-17.676 17.042-22.003C102.408 72.867 105.053 63.804 95 67.249m208.422.186c-3.908 3.908 15.994 38.934 31.232 54.965 10.996 11.569 10.723 10.583 10.696 38.6-.019 19.623-.295 24.066-1.963 31.6-.536 2.42-1.261 5.93-1.612 7.8-2.746 14.637-10.641 36.205-16.189 44.223-.904 1.308-3.281 4.807-5.282 7.777-10.021 14.873-21.298 27.434-32.304 35.985-8.729 6.78-14.267 10.233-24.2 15.088-5.783 2.826-8.281 3.691-18.309 6.339-18.029 4.761-23.977 11.711-16.463 19.235 10.208 10.222 41.826 8.98 67.937-2.669 18.937-8.448 18.603-13.956-1.126-18.585-11.879-2.787-13.761-6.768-6.284-13.29 10.684-9.318 15.331-11.406 22.045-9.904 19.751 4.416 38.64-5.948 49.204-26.999 7.093-14.133 2.492-17.531-14.547-10.743-14.009 5.581-15.808 2.355-8.334-14.948 3.515-8.137 5.055-9.639 13.261-12.938 12.256-4.926 18.075-9.526 22.289-17.62 5.112-9.82 6.884-21.96 4.955-33.951-.425-2.64-.978-6.6-1.229-8.8-1.713-15.016-5.073-17.902-10.183-8.747-8.477 15.19-14.387 14.824-15.445-.955-.217-3.244-.773-7.942-1.234-10.441-1.032-5.581-.845-7.054 2.093-16.489 4.123-13.244 3.044-19.481-4.99-28.827-11.239-13.075-39.907-29.817-44.018-25.706M154.939 85.232c-3.352.569-6.053 1.748-19.923 8.695-19.225 9.629-19.157 9.528-16.851 24.998.866 5.807 1.256 10.746 2.045 25.875.132 2.53.594 6.94 1.026 9.8.433 2.86 1.057 8.516 1.389 12.568.904 11.063 1.161 11.837 5.636 16.979 4.078 4.685 5.623 6.898 6.554 9.385 3.192 8.532 2.461 17.086-2.219 25.952-4.076 7.723-4.323 11.769-1.59 26.116.523 2.75 1.15 7.416 1.392 10.369.858 10.47 1.649 11.962 8.002 15.115 3.337 1.656 44.33 18.375 56 22.839 5.951 2.277 6.046 2.253 32.8-8.361 37.31-14.801 37.429-14.853 39.694-17.327 1.98-2.162 3.87-11.183 4.91-23.435.346-4.07.906-9.11 1.245-11.2.888-5.479.613-6.76-3.053-14.2-6.949-14.101-6.029-23.115 3.597-35.251 5.448-6.868 6.466-11.089 7.811-32.387.335-5.301.967-11.781 1.404-14.4.437-2.619.971-7.732 1.186-11.362.214-3.63.597-9.435.85-12.9.575-7.874.303-9.161-2.449-11.613-2.137-1.902-25.779-13.911-30.595-15.54L251 85l-47-.059c-25.85-.032-47.928.099-49.061.291m58.368 27.111c31.052 5.446 39.083 34.191 18.288 65.457-6.499 9.772-6.864 11.713-3.691 19.6.885 2.2 4.129 10.93 7.209 19.4 6.148 16.906 11.122 29.697 12.978 33.378C252.452 258.825 249.46 261 233.2 261c-15.701 0-17.591-1.169-15.554-9.621 1.257-5.212-1.044-13.36-9.338-33.066-3.593-8.535-8.291-9.515-11.759-2.453l-1.149 2.34v27.6l1.543 4.506c3.059 8.927 1.215 10.438-13.143 10.775-17.559.412-20.099-1.187-16.9-10.64l1.3-3.841V131l-1.322-3.6c-4.295-11.694-3.493-14.57 4.276-15.338 4.722-.467 39.199-.237 42.153.281m-15.188 22.413c-2.764 1.746-2.719 1.382-2.719 21.844 0 17.841.025 18.442.822 19.799 1.436 2.445 3.249 2.141 6.676-1.119 11.294-10.747 15.557-31.235 7.868-37.817-3.234-2.768-10.192-4.257-12.647-2.707"},null,-1)),sY=[iY];function oY(e,t){return o.openBlock(),o.createElementBlock("svg",aY,sY)}const Rh=B(nY,[["render",oY],["__scopeId","data-v-5b8e191d"]]);const lY={},cY=e=>(o.pushScopeId("data-v-5b6f3d5e"),e=e(),o.popScopeId(),e),uY={xmlns:"http://www.w3.org/2000/svg",viewBox:"58.93 70.36 282.28 264.88"},dY=cY(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M74.274 70.98C70.143 72.453 70 73.187 70 92.989c0 21.375-.191 20.705 7.953 27.937 2.556 2.269 6.54 5.914 8.854 8.1 2.315 2.186 5.915 5.497 8 7.359 2.086 1.861 5.953 5.468 8.593 8.015 2.64 2.547 6.42 5.963 8.4 7.591 1.98 1.628 5.94 5.133 8.8 7.788 2.86 2.654 7 6.432 9.2 8.395 2.2 1.962 5.98 5.503 8.4 7.868s6.59 6.158 9.268 8.429c4.882 4.142 12.716 11.282 23.838 21.729 3.28 3.08 7.792 7.123 10.028 8.985 2.236 1.861 5.776 5.021 7.866 7.021s5.69 5.329 8 7.396c2.31 2.068 6.81 6.22 10 9.226 3.19 3.007 7.69 7.081 10 9.053 21.285 18.171 21.513 18.953 9.193 31.537-11.486 11.732-11.469 11.443-1.589 26.173 10.712 15.973 10.896 15.947 20.619-2.991 11.834-23.052 13.416-25.365 25.434-37.203 11.725-11.549 16.26-14.348 43.754-26.997 11.527-5.303 11.173-7.25-3.018-16.595-15.492-10.2-15.171-10.208-26.226.594-13.433 13.125-12.533 13.445-37.919-13.489-3.986-4.229-12.558-13.143-19.048-19.807-6.49-6.665-13.69-14.274-16-16.909-2.31-2.635-9.78-10.466-16.6-17.402-6.82-6.936-15.279-15.667-18.799-19.402-3.519-3.734-11.46-11.95-17.645-18.256-6.186-6.306-13.297-13.768-15.802-16.581-20.002-22.467-26.5-28.126-33.898-29.522-4.553-.859-33.002-.901-35.382-.051m216.926.059c-7.757 1.18-15.308 7.452-32.457 26.961-2.998 3.41-10.947 11.813-17.664 18.674-18.498 18.89-18.283 16.816-3.329 32.126 5.05 5.17 11.341 11.83 13.981 14.8 10.629 11.958 10.819 11.943 25.898-2.122 3.206-2.991 7.616-6.926 9.8-8.745 2.184-1.819 6.041-5.312 8.571-7.763 4.366-4.231 7.244-6.886 21.639-19.97 13.379-12.161 12.447-9.635 12.278-33.282-.166-23.132 1.735-21.089-19.717-21.188-11.529-.052-16.118.07-19 .509M100.353 214.552c-2.773.991-20.47 12.72-22.081 14.635-1.619 1.924-1.444 3.394.643 5.394 1.846 1.768 16.397 9.364 26.085 13.616 11.889 5.218 13.609 6.491 26.829 19.866 11.076 11.206 10.481 10.327 20.611 30.449 11.967 23.77 11.22 23.54 22.788 7.024 10.227-14.603 10.258-13.976-1.248-25.724-10.551-10.773-10.909-12.12-5.142-19.314 4.67-5.824 3.236-8.817-9.202-19.218-2.55-2.132-6.976-6.088-9.836-8.791-8.553-8.083-10.094-8.421-16.842-3.693-6.031 4.224-8.258 3.44-18.406-6.477-8.442-8.25-10.183-9.202-14.199-7.767m-3.956 64.232c-2.342.689-4.018 2.019-10.527 8.355-3.778 3.678-8.94 8.499-11.47 10.715-7.557 6.617-12.117 11.625-13.871 15.235-4.825 9.931 1.8 21.016 12.924 21.628 6.239.343 9.298-1.455 19.527-11.475 3.971-3.89 9.903-9.585 13.182-12.657 13.369-12.524 13.444-13.102 3.039-23.437-7.544-7.493-10.098-9.161-12.804-8.364m203.369.571c-2.737 1.275-13.946 12.139-15.534 15.057-2.288 4.204-1.446 5.641 9.351 15.954 4.28 4.089 10.49 10.054 13.8 13.257 13.601 13.162 21.004 14.833 29.242 6.6 8.552-8.547 5.312-18.062-11.025-32.369-2.53-2.215-7.718-7.063-11.529-10.773-8.942-8.704-10.453-9.52-14.305-7.726"},null,-1)),fY=[dY];function pY(e,t){return o.openBlock(),o.createElementBlock("svg",uY,fY)}const Bh=B(lY,[["render",pY],["__scopeId","data-v-5b6f3d5e"]]);const hY={},mY=e=>(o.pushScopeId("data-v-81223df9"),e=e(),o.popScopeId(),e),gY={xmlns:"http://www.w3.org/2000/svg",viewBox:"5.25 32.41 384.35 392.23"},vY=mY(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M196.56 32.706c-.242.162-.643.68-.891 1.151-.464.882-6.181 23.37-7.663 30.143-2.029 9.277-13.207 54.007-16.187 64.776-2.401 8.677-2.227 10.411 1.102 11.036 2.465.462 8.894-4.762 13.798-11.212 1.004-1.32 2.566-3.21 3.473-4.2.906-.99 2.417-2.935 3.358-4.322 2.851-4.205 4.112-4.166 7.292.224.916 1.264 2.6 3.288 3.743 4.498 1.142 1.21 3.257 3.64 4.698 5.401 6.387 7.801 10.008 10.411 12.645 9.115 2.896-1.422 3.516 2.259-6.28-37.316-2.423-9.79-4.945-20.05-5.603-22.8-8.63-36.06-11.562-46.819-12.753-46.794-.161.003-.49.138-.732.3m-77.835 9.868c-4.03 2.43-9.532 6.24-14.703 10.181-9.024 6.878-10.169 7.804-13.417 10.853-1.763 1.654-4.015 3.621-5.005 4.371-.99.75-3.702 3.177-6.026 5.393-2.324 2.215-5.474 5.198-7 6.628-3.458 3.241-9.993 10.614-12.232 13.8-.928 1.32-2.79 3.75-4.139 5.4-1.349 1.65-3.548 4.53-4.888 6.4-1.34 1.87-2.926 3.85-3.524 4.4-.599.55-2.45 2.8-4.113 5-1.663 2.2-3.953 5.08-5.087 6.4-1.134 1.32-3.261 4.11-4.725 6.2-1.464 2.09-3.443 4.88-4.399 6.2-8.17 11.289-23.812 36.82-24.163 39.441-.282 2.099.484 2.895 3.842 3.991 24.399 7.967 28.64 32.858 8.613 50.547-4.2 3.71-4.802 4.749-4.005 6.917 1.139 3.094 4.592 10.511 5.944 12.767.771 1.285 2.411 4.317 3.645 6.737s3.462 6.311 4.95 8.646c1.489 2.336 3.697 5.821 4.907 7.746 7.683 12.222 15.624 23.335 21.97 30.748 1.666 1.947 4.165 4.917 5.552 6.6 3.393 4.116 18.291 19.067 22.278 22.357 1.76 1.452 4.28 3.669 5.6 4.926 3.052 2.907 14.983 11.823 22.898 17.112 3.353 2.241 7.313 5.202 8.8 6.581 1.486 1.378 4.005 3.554 5.597 4.836 1.592 1.282 3.752 3.43 4.8 4.774 1.048 1.344 3.54 4.161 5.538 6.259 5.088 5.343 11.547 13.615 14.195 18.181 5.189 8.946 7.369 7.129 5.539-4.618-.458-2.942-.98-6.518-1.161-7.948-.906-7.167-3.701-21.63-4.87-25.2-4.277-13.062-8.002-19.195-11.662-19.199-2.363-.002-5.716-2.286-11.474-7.815-1.65-1.585-4.08-3.663-5.4-4.619-3.099-2.244-19.447-18.69-23.229-23.367-1.601-1.98-4.093-4.95-5.536-6.6-7.749-8.854-11.713-14.165-20.9-28-2.557-3.85-5.634-8.44-6.837-10.2-5.081-7.431-6.634-10.061-11.099-18.794-2.586-5.056-5.616-10.546-6.735-12.2-2.255-3.333-6.408-12.086-7.014-14.781-.886-3.942 4.505-17.812 11.748-30.225 1.155-1.98 3.322-5.76 4.815-8.4 3.088-5.461 12.353-19.487 14.344-21.717.729-.816 2.922-3.643 4.874-6.283 4.239-5.731 12.608-16.065 16.623-20.525 2.06-2.289 2.639-4.032 4.337-13.06 1.059-5.628 4.403-17.624 6.027-21.615.626-1.54 2.075-5.23 3.219-8.2 1.145-2.97 2.752-6.75 3.572-8.4.82-1.65 2.428-5.16 3.571-7.8 1.144-2.64 2.587-5.61 3.206-6.6.619-.99 2.405-4.315 3.97-7.388 4.164-8.182 3.716-10.062-1.631-6.838m152.701-1.017c-.394.638.802 3.336 6.061 13.68 7.714 15.171 14.334 30.793 16.444 38.805.428 1.627 1.251 4.578 1.828 6.558.577 1.98 1.741 6.957 2.586 11.061 1.741 8.459 1.616 8.201 7.055 14.569 3.573 4.183 5.806 6.933 12.8 15.763 17.7 22.344 38.646 60.307 37.177 67.379-.676 3.251-8.705 20.112-15.157 31.828-5.617 10.199-23.977 36.675-29.818 43-.813.88-2.297 2.68-3.298 4-1.001 1.32-2.399 2.94-3.107 3.6-.707.66-2.331 2.55-3.608 4.2-2.713 3.505-27.938 28.771-31.236 31.286-1.235.943-3.395 2.69-4.8 3.883-3.642 3.095-5.699 4.303-7.862 4.618-2.822.411-3.4.977-5.808 5.693-5.426 10.628-7.737 19.106-9.9 36.32-.194 1.54-.629 4.211-.968 5.935-.693 3.535-.813 9.292-.225 10.839.813 2.137 2.274 1.116 6.546-4.574 1.239-1.65 3.164-4.08 4.277-5.4 1.114-1.32 3.412-4.11 5.106-6.2 7.458-9.199 18.47-19.652 26.23-24.899 20.895-14.128 42.028-32.329 55.15-47.501 1.998-2.31 4.673-5.28 5.945-6.6 3.106-3.225 9.323-11.242 16.556-21.349 10.726-14.987 23-38.069 23-43.251 0-1.421-.265-1.773-3.657-4.866-13.765-12.547-17.154-26-10.012-39.734 2.918-5.61 7.799-9.456 15.469-12.187 3.788-1.349 5.4-2.597 5.4-4.181 0-2.486-15.591-29.304-21.703-37.33-.964-1.266-2.992-4.102-4.507-6.302-3.233-4.697-12.836-17.271-16.037-21-1.228-1.43-5.14-5.903-8.693-9.939-3.553-4.037-7.9-9.063-9.66-11.17-6.962-8.333-21.833-22.69-29.55-28.528-2.007-1.519-6.922-5.237-10.921-8.262-11.116-8.41-16.153-11.28-17.103-9.744M179.2 51.341c-.55.296-3.07 1.762-5.6 3.259-2.53 1.498-7.39 4.339-10.8 6.313-3.41 1.975-7.46 4.406-9 5.403-1.54.997-6.847 4.239-11.794 7.206-15.808 9.481-31.025 19.992-33.345 23.033-1.987 2.605-3.944 11.726-2.958 13.789 1.055 2.209 2.118 1.698 11.097-5.333 19.356-15.157 31.76-23.788 34.211-23.805 1.433-.01 2.574 1.182 4.172 4.361 3.175 6.314 4.208 6.746 8.866 3.708 1.623-1.058 4.259-2.7 5.857-3.649 4.495-2.667 4.798-3.169 6.895-11.426.447-1.76 1.8-7.035 3.006-11.723 2.901-11.276 2.809-12.968-.607-11.136m34.667.526c-1.284 1.284 5.221 27.239 7.638 30.478.938 1.256 7.903 6.113 11.489 8.011 3.101 1.642 4.066 1.08 6.79-3.956 3.49-6.451 3.98-6.45 13.616.006 7.527 5.044 20.023 14.489 26.751 20.221 9.473 8.07 11.523 7.245 8.835-3.555-1.659-6.668-2.042-7.168-10.078-13.136-6.485-4.816-28.683-18.844-36.308-22.944-1.98-1.065-5.329-2.973-7.442-4.24-2.113-1.267-5.623-3.289-7.8-4.492-2.177-1.203-5.758-3.194-7.958-4.424-3.846-2.15-4.957-2.545-5.533-1.969m-66.528 42.131c-.473.191-2.293 1.395-4.044 2.675-1.75 1.28-5.216 3.767-7.702 5.527-15.252 10.8-20.061 14.74-30.518 25-7.651 7.506-10.953 11.189-16.78 18.709-1.488 1.92-3.502 4.491-4.476 5.713-1.563 1.962-6.305 8.602-12.875 18.026-8.992 12.898-21.491 35.511-21.525 38.94-.019 2.036 3.141 9.239 6.762 15.412.709 1.21 2.606 4.63 4.214 7.6 11.397 21.048 20.971 33.763 39.005 51.803 19.754 19.761 24.958 24.424 43.868 39.309 9.849 7.752 9.183 9.072 9.042-17.927-.125-24.038.191-22.035-3.762-23.789-1.495-.662-4.107-2.852-9.61-8.053-4.156-3.929-9.331-8.762-11.501-10.742-4.157-3.792-11.026-11.294-14.652-16.001-1.186-1.54-2.888-3.63-3.782-4.644-.894-1.015-2.767-3.535-4.162-5.6-1.86-2.755-3.274-4.326-5.305-5.893-5.021-3.876-15.634-18.493-17.185-23.669-1.028-3.43 6.996-14.13 20.767-27.694 7.562-7.448 8.393-7.601 12.523-2.294.939 1.207 3.069 3.647 4.733 5.422 1.664 1.775 3.892 4.25 4.951 5.5 2.585 3.051 3.779 3.1 7.712.317 4.055-2.87 16.785-15.892 17.142-17.536.331-1.521.569-.625-3.411-12.797-4.73-14.467-6.033-11.772 12.572-26.006 4.48-3.426 4.785-3.849 4.555-6.302-.189-2.012-4.81-13.623-7.882-19.804-.82-1.65-2.009-4.335-2.641-5.966-1.772-4.57-3.648-6.198-6.033-5.236m96.668.395c-.807.807-2.36 3.975-4.415 9.007-.629 1.54-2.336 5.5-3.793 8.8-6.848 15.511-6.888 14.52.812 19.977 8.955 6.347 14.589 11.497 14.589 13.337-.001.946-3.853 12.713-6.344 19.376-1.908 5.104-1.758 5.362 9.369 16.04 11.414 10.953 11.327 10.936 17.454 3.294 1.565-1.952 8.193-9.257 9.696-10.687 2.159-2.052 4.75-.516 12.425 7.366 14.713 15.111 20.166 22.564 19.029 26.01-.732 2.216-7.044 12.21-9.14 14.469-1.679 1.811-4.565 5.349-11.089 13.6-8.574 10.841-41.872 43.429-47.041 46.036-3.976 2.006-3.759.609-3.759 24.2 0 22.706-.039 22.382 2.721 22.382 1.569 0 2.82-.883 13.163-9.293 1.696-1.379 4.396-3.568 6-4.864 1.604-1.297 4.176-3.562 5.716-5.034 1.54-1.471 3.97-3.592 5.4-4.712 1.43-1.121 3.86-3.33 5.4-4.911 1.54-1.58 3.7-3.585 4.8-4.454 3.3-2.61 18.909-17.902 21.546-21.109 1.35-1.642 3.464-4.074 4.698-5.404 2.215-2.389 3.163-3.563 8.898-11.019 7.577-9.85 14.393-21.081 21.886-36.056 5.889-11.771 5.957-12.57 1.607-18.893-.659-.959-2.706-4.332-4.548-7.497-7.471-12.836-15.422-25.234-21.131-32.954-13.902-18.797-15.65-20.983-22.616-28.278-7.44-7.792-13.149-13.243-18.142-17.322-7.348-6.003-18.73-14.447-28.138-20.874-2.216-1.514-3.895-1.691-5.053-.533m-48.324 38.234c-.492.345-1.784 1.944-2.871 3.555-2.76 4.091-6.753 8.511-10.568 11.697-1.784 1.491-9.814 9.219-17.844 17.174-8.03 7.954-15.767 15.427-17.193 16.605-1.426 1.178-6.663 6.102-11.637 10.942-4.975 4.84-14.224 13.736-20.555 19.769-12.119 11.549-13.028 12.587-12.985 14.831.042 2.222.386 2.728 5.306 7.8 2.561 2.64 6.154 6.375 7.986 8.3 5.068 5.328 4.972 5.368 18.52-7.778 5.647-5.48 6.33-5.384 13.358 1.876 1.43 1.478 6.38 6.205 11 10.506s14.823 14.086 22.674 21.744c17.648 17.215 15.94 16.543 23.171 9.12 2.555-2.623 5.293-5.283 6.085-5.912 1.798-1.43 21.471-20.066 26.871-25.456 7.915-7.901 16.576-15.779 17.64-16.046 1.759-.441 3.27.704 10.693 8.098 8.234 8.203 9.025 8.556 11.835 5.279.787-.919 2.988-3.304 4.891-5.3 11.519-12.086 11.901-13.498 5.206-19.285-1.686-1.458-10.356-9.712-19.266-18.343-8.91-8.631-17.28-16.642-18.6-17.803-1.32-1.16-5.756-5.46-9.857-9.555-13.461-13.439-19.294-19.065-22.743-21.936-4.84-4.029-11.755-11.258-15.099-15.785-3.522-4.767-4.303-5.299-6.018-4.097m2.802 27.673c.335.385 1.442 2.328 2.46 4.318 1.977 3.863 6.153 8.307 16.146 17.182 2.23 1.98 5.461 5.196 7.181 7.146 1.721 1.951 4.658 4.92 6.528 6.597 13.563 12.168 15.184 14.028 14.195 16.285-.513 1.169-10.056 10.824-15.845 16.029-1.677 1.509-8.247 7.714-14.6 13.789-15.23 14.565-15.45 14.754-17.166 14.754-1.572 0-2.598-.881-16.275-13.988-4.24-4.063-12.901-12.339-19.247-18.392-11.302-10.781-12.662-12.29-12.662-14.049 0-.61 3.353-4.137 11.3-11.884 6.215-6.059 13.19-12.935 15.5-15.281 2.31-2.346 5.763-5.566 7.674-7.157 5.063-4.214 8.072-7.596 9.55-10.734 2.323-4.934 3.832-6.258 5.261-4.615m-2.368 9.95c-.265.113-1.38 1.408-2.476 2.878-1.977 2.648-14.1 14.843-18.559 18.667-1.275 1.094-5.46 5.272-9.3 9.285-7.641 7.986-7.921 8.488-6.192 11.11 1.133 1.72 37.333 37.449 37.81 37.319 1.004-.273 37.7-37.781 37.942-38.781.143-.59.087-1.526-.124-2.08-.428-1.128-12.115-13.671-14.262-15.309-.758-.578-6.175-6.02-12.038-12.095-10.112-10.476-11.405-11.586-12.801-10.994m2.203 16.313c1.773.925 21.6 21.18 21.9 22.373.147.585.144 1.553-.006 2.15-.348 1.389-22.144 23.394-23.007 23.23-.334-.064-5.602-5.183-11.707-11.376-14.563-14.772-14.98-10.815 3.09-29.282 7.377-7.538 8.003-7.995 9.73-7.095m-16.023 95.832c-1.603 1.261-15.227 23.557-15.633 25.583-.163.818.3 3.34 1.382 7.526.895 3.463 2.229 8.906 2.966 12.096 1.606 6.958 7.686 30.805 12.085 47.4 1.75 6.6 3.462 13.17 3.805 14.6 2.478 10.341 6.74 26.114 7.411 27.429.446.875 1.034 2.724 1.307 4.11.889 4.517 2.575 4.686 3.753.378.379-1.385 1.284-4.407 2.012-6.717.727-2.31 1.728-6 2.222-8.2.495-2.2 1.149-4.99 1.455-6.2 2.792-11.062 9.84-38.585 11.933-46.6 1.437-5.5 3.071-11.98 3.632-14.4.56-2.42 1.807-7.37 2.77-11 2.989-11.267 4.603-18.241 4.603-19.885 0-2.163-.932-3.846-9.589-17.315-1.485-2.31-3.156-5.01-3.714-6-2.806-4.983-5.381-4.588-10.137 1.555-2.771 3.579-3.209 4.54-3.962 8.681-2.699 14.846-3.756 15.117-6.183 1.582-1.658-9.245-8.484-17.481-12.118-14.623"},null,-1)),_Y=[vY];function yY(e,t){return o.openBlock(),o.createElementBlock("svg",gY,_Y)}const Vh=B(hY,[["render",yY],["__scopeId","data-v-81223df9"]]),bY=e=>(o.pushScopeId("data-v-2d049ce8"),e=e(),o.popScopeId(),e),kY={href:"/test/built-deck"},wY=bY(()=>o.createElementVNode("div",{class:"background"},null,-1)),SY={class:"content"},xY={class:"format"},CY={class:"format-text"},EY={key:0,class:"details built"},TY={class:"title"},OY={class:"extra-info"},MY={href:"test/user"},NY={class:"info-time"},DY={key:1,class:"details stats"},PY={class:"stat-column"},AY={class:"descriptor"},IY={class:"stat-column"},LY={class:"number"},RY={class:"descriptor"},BY=o.defineComponent({__name:"DeckBlock",props:tY,setup(e){const t=e,{t:n}=re(),r=o.inject(Ki),a=o.computed(()=>Et(t.deckcode)),i=o.computed(()=>cn(a.value)),s=o.computed(()=>Lc(i.value)),l=o.computed(()=>i.value.filter(f=>Pi(f))),c=o.computed(()=>{var f;return{"--background-image":`url(https://lor.gg/storage/cards/full-art/${(f=za(i.value,a.value,1)[0])==null?void 0:f.cardCode}.webp)`}}),u=o.computed(()=>c7(i.value)),d=o.computed(()=>u.value.map(f=>Ce().dataJson.formats.find(p=>p.nameRef===f)).filter(f=>f!==void 0).sort((f,p)=>f.order-p.order)[0]);return console.log(u.value),(f,p)=>{var h,g,v;return o.openBlock(),o.createElementBlock("a",kY,[o.createElementVNode("div",{class:"built-deck-preview",style:o.normalizeStyle(o.unref(c))},[wY,o.createVNode(hu,{class:"deck-highlight-eye icon","deck-code":t.deckcode,onClick:p[0]||(p[0]=o.withModifiers(()=>{},["stop","prevent"]))},null,8,["deck-code"]),o.createElementVNode("div",{class:"options-button icon",onClick:p[1]||(p[1]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(o.unref(nt),{icon:"ellipsis-v"})]),o.createVNode(Co,{class:"deck-highlight-regions deck-highlight-section",regions:o.unref(s)},null,8,["regions"]),o.createElementVNode("div",SY,[o.createElementVNode("div",xY,[((h=o.unref(d))==null?void 0:h.nameRef)===o.unref($r).Eternal?(o.openBlock(),o.createBlock(Rh,{key:0,class:"format-icon"})):((g=o.unref(d))==null?void 0:g.nameRef)===o.unref($r).Standard?(o.openBlock(),o.createBlock(Bh,{key:1,class:"format-icon"})):(o.openBlock(),o.createBlock(Vh,{key:2,class:"format-icon"})),o.createElementVNode("span",CY,o.toDisplayString((v=o.unref(d))==null?void 0:v.name),1)]),o.createVNode(Eo,{class:"deck-highlight-cards deck-highlight-section",cards:o.unref(l)},null,8,["cards"])]),t.type==="built"?(o.openBlock(),o.createElementBlock("div",EY,[o.createElementVNode("div",TY,o.toDisplayString(t.deckName),1),o.createElementVNode("div",OY,[o.createElementVNode("div",{class:"info-user",onClick:p[2]||(p[2]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createElementVNode("a",MY,o.toDisplayString(t.userName),1)]),o.createElementVNode("div",NY,o.toDisplayString(o.unref(r)(t.updatedAt).fromNow()),1)])])):o.createCommentVNode("",!0),t.type==="stats"?(o.openBlock(),o.createElementBlock("div",DY,[o.createElementVNode("div",PY,[o.createElementVNode("div",{class:"number",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,1,3))+"% ",5),o.createElementVNode("div",AY,o.toDisplayString(o.unref(n)("general.winrate")),1)]),o.createElementVNode("div",IY,[o.createElementVNode("div",LY,o.toDisplayString(o.unref(Me)(t.matches,0,10)),1),o.createElementVNode("div",RY,o.toDisplayString(o.unref(n)("general.matches")),1)])])):o.createCommentVNode("",!0)],4)])}}});const Gb=B(BY,[["__scopeId","data-v-2d049ce8"]]),VY={headingItems:{type:Array,required:!0,default:[]}},$Y={class:"table-wrapper"},FY={class:"table no-scrollbar"},zY={class:"heading wrapper"},jY=o.defineComponent({__name:"SmallTable",props:VY,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",$Y,[o.createElementVNode("div",FY,[o.createElementVNode("div",zY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.headingItems,a=>(o.openBlock(),o.createElementBlock("div",{key:a.title,class:"heading-cell column-content"},[o.createElementVNode("div",null,o.toDisplayString(a.title),1)]))),128)),o.renderSlot(n.$slots,"heading",{},void 0,!0)]),o.renderSlot(n.$slots,"default",{},void 0,!0)])]))}});const ti=B(jY,[["__scopeId","data-v-20cc8387"]]),HY={players:{type:Array,required:!0,default:[]}},WY=e=>(o.pushScopeId("data-v-48a25357"),e=e(),o.popScopeId(),e),UY={class:"leaderboard-top"},YY=WY(()=>o.createElementVNode("div",{class:"heading-background"},null,-1)),qY={class:"heading-wrapper"},GY=o.defineComponent({__name:"LeaderboardTop",props:HY,setup(e){const t=e,n=o.computed(()=>Ce().dataJson.servers.map(r=>t.players.filter(a=>a.server===r.nameRef).sort((a,i)=>a.rank-i.rank).slice(0,10)));return(r,a)=>(o.openBlock(),o.createElementBlock("div",UY,[YY,o.createElementVNode("div",qY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(Ce)().dataJson.servers,i=>(o.openBlock(),o.createElementBlock("div",{key:i.nameRef,class:"heading"},o.toDisplayString(i.name),1))),128))]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(n),(i,s)=>(o.openBlock(),o.createElementBlock("div",{key:s,class:"top-10"},[o.createVNode(Ih,{players:i},null,8,["players"])]))),128))]))}});const Xb=B(GY,[["__scopeId","data-v-48a25357"]]),XY={flipped:{type:Boolean,required:!0,default:!0},cardCode:{type:String,required:!0,default:"01IO001"}},KY={class:"card-item-3d"},JY=o.defineComponent({__name:"CardItem3d",props:XY,setup(e){const t=e,n={ShadowIsles:"https://static.wikia.nocookie.net/leagueoflegends/images/b/bb/LoR_Shadow_Isles_Card_Back.png",BandleCity:"https://static.wikia.nocookie.net/leagueoflegends/images/c/c4/LoR_Bandle_City_Card_Back.png",Bilgewater:"https://static.wikia.nocookie.net/leagueoflegends/images/2/24/LoR_Bilgewater_Card_Back.png",Demacia:"https://static.wikia.nocookie.net/leagueoflegends/images/6/62/LoR_Demacia_Card_Back.png",Freljord:"https://static.wikia.nocookie.net/leagueoflegends/images/5/5e/LoR_Freljord_Card_Back.png",Ionia:"https://static.wikia.nocookie.net/leagueoflegends/images/3/3d/LoR_Ionia_Card_Back.png",Noxus:"https://static.wikia.nocookie.net/leagueoflegends/images/5/50/LoR_Noxus_Card_Back.png",PiltoverZaun:"https://static.wikia.nocookie.net/leagueoflegends/images/5/57/LoR_Piltover_Card_Back.png",Shurima:"https://static.wikia.nocookie.net/leagueoflegends/images/0/0c/LoR_Shurima_Card_Back.png",Targon:"https://static.wikia.nocookie.net/leagueoflegends/images/a/a6/LoR_Targon_Card_Back.png"},r=o.computed(()=>{const s=_o(void 0,t.cardCode,!0);if(s.value===void 0)return{};const l=s.value.regionRefs[0];return{content:`url(${n[l]??"https://static.wikia.nocookie.net/leagueoflegends/images/2/2d/LoR_Summoner%27s_Rift_Order_Card_Back.png"})`}}),a=o.computed(()=>({"background-image":`url("https://lor.gg/storage/cards/card/en_us/${t.cardCode}.webp")`,"background-size":"cover"})),i=o.computed(()=>t.flipped?["flipped"]:[]);return(s,l)=>(o.openBlock(),o.createElementBlock("div",KY,[o.createElementVNode("div",{class:o.normalizeClass(["card",o.unref(i)])},[o.createElementVNode("div",{class:"front face",style:o.normalizeStyle(o.unref(r))},null,4),o.createElementVNode("div",{class:"back face",style:o.normalizeStyle(o.unref(a))},null,4)],2)]))}});const $h=B(JY,[["__scopeId","data-v-72e7b1ae"]]),ZY=e=>(o.pushScopeId("data-v-580d1d32"),e=e(),o.popScopeId(),e),QY={class:"card-lottery"},eq={class:"cards-container"},tq={key:0,class:"bottom"},nq={class:"slice"},rq={class:"circle-slice-item-wrapper"},aq={class:"options"},iq={class:"primary-button"},sq={class:"primary-button"},oq=ZY(()=>o.createElementVNode("span",null," (23) ",-1)),lq={class:"icon"},cq={class:"circle-card-item-wrapper"},uq=o.defineComponent({__name:"CardLottery",setup(e){const t=Object.keys(Dt().cardJsonObject),n=[],r=o.ref(null),a=o.computed(()=>r.value?{background:`url(https://lor.gg/storage/cards/full-art/${r.value}.webp)`,"background-position":"center","background-size":"cover"}:{});function i(l){r.value=l.cardCode.value,l.flipped.value=!0;for(const c of n)l!==c&&setTimeout(()=>{c.display.value=!1},1e3)}function s(){r.value=null,n.splice(0);for(let l=0;l<3;l++)n.push({flipped:o.ref(!1),display:o.ref(!0),cardCode:o.ref(t[Math.floor(Math.random()*t.length)])})}return s(),(l,c)=>{const u=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",QY,[o.createElementVNode("div",{class:"card-lottery-background",style:o.normalizeStyle(o.unref(a))},null,4),o.createElementVNode("div",eq,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(n,(d,f)=>o.createElementVNode("div",{key:f,class:o.normalizeClass(["card-item-3d-wrapper",d.display.value?null:"hide"])},[o.createVNode($h,{flipped:d.flipped.value,"card-code":d.cardCode.value,onClick:p=>i(d)},null,8,["flipped","card-code","onClick"])],2)),64))]),r.value?(o.openBlock(),o.createElementBlock("div",tq,[o.createElementVNode("div",nq,[o.createElementVNode("div",rq,[o.createVNode(an,{color:"133, 133, 133",name:"Player","card-code-prop":r.value,"ignore-card-item":!0},null,8,["card-code-prop"])])]),o.createElementVNode("div",aq,[o.withDirectives(o.createElementVNode("button",iq,null,512),[[u,"cardLottery.setBanner"]]),o.withDirectives(o.createElementVNode("button",sq,null,512),[[u,"cardLottery.setIcon"]]),o.createElementVNode("button",{class:"primary-button",onClick:s},[o.withDirectives(o.createElementVNode("span",null,null,512),[[u,"cardLottery.openAnother"]]),oq])]),o.createElementVNode("div",lq,[o.createElementVNode("div",cq,[o.createVNode(da,{color:"133, 133, 133","card-code-prop":r.value,"ignore-card-item":!0},null,8,["card-code-prop"])])])])):o.createCommentVNode("",!0)])}}});const Kb=B(uq,[["__scopeId","data-v-580d1d32"]]),dq={bannerCardCode:{type:String,required:!0,default:""},bannerColor:{type:String,required:!0,default:""},iconCardCode:{type:String,required:!0,default:""},name:{type:String,required:!0,default:""},server:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},premiumExpiration:{type:Date,required:!1,default:null},isPremiumRenewing:{type:Boolean,required:!0,default:!1}},fq={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:2},cutout:{type:Number,required:!1,default:145}},Fh=o.defineComponent({__name:"WinrateDoughnutChart",props:fq,setup(e){const t=e,n=o.ref(null);Re.register(...pa);const r=o.computed(()=>({labels:["Wins","Losses"],datasets:[{data:[t.wins,t.matches-t.wins],backgroundColor:["#00adff","#ff5153"]}]})),a={cutout:t.cutout,elements:{arc:{borderWidth:0}},plugins:{legend:{display:!1},datalabels:{display:!1}}},i=[{id:"text",beforeDraw:function(s){const l=s.chartArea.width,c=s.chartArea.height,u=s.ctx;u.restore();const d=(c/100).toFixed(2);u.font=`bold ${d}em sans-serif`,u.textBaseline="middle";const f=s.data.datasets[0].data[0],p=s.data.datasets[0].data[1],h=(f/(f+p)*100).toFixed(2)+"%",g=Math.round((l-u.measureText(h).width)/2),v=c/2;f>p?u.fillStyle="#00adff":f<p?u.fillStyle="#ff5153":u.fillStyle="#ffffff",u.fillText(h,g,v),u.save()}}];return(s,l)=>(o.openBlock(),o.createBlock(o.unref(by),{ref_key:"chart",ref:n,"chart-data":o.unref(r),options:a,plugins:i},null,8,["chart-data"]))}}),pq={class:"dashboard-profile"},hq={class:"profile-banner"},mq=["src"],gq={class:"edit-banner"},vq={class:"profile-text"},_q={class:"profile-region"},yq={class:"profile-tiles"},bq={class:"profile-tile"},kq={class:"tile-content"},wq={class:"games-text"},Sq={class:"tile-text"},xq={class:"profile-tile"},Cq={class:"chart-container"},Eq={class:"tile-content"},Tq={class:"tile-text"},Oq={key:0,class:"profile-premium-expiration"},Mq={class:"profile-premium-expiration-time"},Nq=o.defineComponent({__name:"DashboardProfile",props:dq,setup(e){const t=e,{t:n}=re(),r=o.inject(Ki);return(a,i)=>{const s=o.resolveComponent("LocalizedLink");return o.openBlock(),o.createElementBlock("div",pq,[o.createElementVNode("div",hq,[o.createElementVNode("img",{alt:"Profile Banner",src:`https://lor.gg/storage/cards/banner/${t.bannerCardCode??"05BC160"}.png`,class:"profile-banner-img"},null,8,mq),o.createVNode(da,{"card-code-prop":t.iconCardCode??"05BC160","ignore-card-item":!0,"color-override":t.bannerColor},null,8,["card-code-prop","color-override"]),o.createElementVNode("div",gq,[o.createVNode(o.unref(nt),{icon:"pencil-alt"})])]),o.createElementVNode("div",vq,[o.createVNode(s,{to:{name:"profile"},class:"profile-name"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t.name),1)]),_:1}),o.createElementVNode("div",_q,o.toDisplayString(t.server),1)]),o.createElementVNode("div",yq,[o.createElementVNode("div",bq,[o.createElementVNode("div",kq,[o.createElementVNode("div",wq,o.toDisplayString(o.unref(Me)(t.matches,0,10)),1)]),o.createElementVNode("div",Sq,o.toDisplayString(o.unref(n)("general.gamesPlayed")),1)]),o.createElementVNode("div",xq,[o.createElementVNode("div",Cq,[o.createElementVNode("div",Eq,[o.createVNode(Fh,{matches:t.matches,wins:t.wins,cutout:30},null,8,["matches","wins"])])]),o.createElementVNode("div",Tq,o.toDisplayString(o.unref(n)("general.winrate")),1)])]),t.premiumExpiration?(o.openBlock(),o.createElementBlock("div",Oq,[o.createTextVNode(o.toDisplayString(o.unref(n)("general.premium"))+" "+o.toDisplayString(t.isPremiumRenewing?o.unref(n)("general.renews"):o.unref(n)("general.expires"))+" ",1),o.createElementVNode("b",Mq,o.toDisplayString(o.unref(r)(t.premiumExpiration).fromNow()),1)])):(o.openBlock(),o.createBlock(s,{key:1,to:{name:"premium"},class:"profile-premium fancy-button"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("general.getPremium")),1)]),_:1}))])}}});const Jb=B(Nq,[["__scopeId","data-v-1786a4dc"]]),Dq={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"totalPlayers"},server:{type:String,required:!1}};function Zb(e,t){const{t:n}=re();Re.register(ei),e.plugins||(e.plugins={}),e.plugins.annotation||(e.plugins.annotation={}),e.plugins.annotation.annotations=[];let r=new Date("1972-01-01"),a=new Date("3000-12-01");for(const s of t)s>r&&(r=s),s<a&&(a=s);const i=[];for(const s of Ce().dataJson.patches)new Date(s.startTime)<=r&&new Date(s.startTime)>=a&&i.push(s);for(const s of i)e.plugins.annotation.annotations.push({type:"line",xMin:s.startTime,xMax:s.startTime,borderColor:"rgba(255, 255, 255, 0.1)",borderDash:[10,5],borderWidth:1,label:{content:`${n("general.patch")} ${s.name}`,display:!0,position:"start",font:{weight:"normal"},backgroundColor:"rgba(0,0,0,0.2)"}})}const Qb=o.defineComponent({__name:"LeaderboardChart",props:Dq,setup(e){const t=e,n=o.ref();Re.register(...pa),Re.register(ei);const r=o.computed(()=>t.data.slice().sort((s,l)=>+s.date-+l.date)),a=o.computed(()=>{let s;return t.type==="totalPlayers"?s=Ce().dataJson.servers.filter(l=>t.server===null?!0:l.nameRef===t.server).map(l=>({label:l.name,borderColor:R1(l.nameRef),data:r.value.filter(c=>c.server===l.nameRef).map(c=>c.players),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"})):s=r.value.reduce((l,c)=>l.includes(c.player)?l:[...l,c.player],[]).map(l=>({label:l.name,borderColor:R1(l.user_id),data:r.value.filter(c=>c.player.user_id===l.user_id).map(c=>t.type==="lp"?c.lp:c.rank),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"})),{labels:r.value.map(l=>l.date).filter((l,c,u)=>u.findIndex(d=>d.getTime()===l.getTime())===c),datasets:s}}),i={plugins:{legend:{display:!0},tooltip:{mode:"nearest",position:"nearest",axis:"x",intersect:!1},annotation:{annotations:[]},datalabels:{display:!1}},elements:{line:{tension:.25}},scales:{x:{type:"time",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"}}}};return Zb(i,t.data.map(s=>s.date)),(s,l)=>(o.openBlock(),o.createBlock(o.unref(ky),{ref_key:"chart",ref:n,"chart-data":o.unref(a),options:i},null,8,["chart-data"]))}}),Pq={data:{type:Array,required:!0,default:[]},type:{type:Object,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},e3=o.defineComponent({__name:"CardQuantityBarChart",props:Pq,setup(e){const t=e,{t:n}=re(),r=o.ref();Re.register(...pa),Re.register(ei),Re.register(ou);const a=o.computed(()=>({labels:t.data.map(s=>s.quantity),datasets:[{backgroundColor:t.data.map(s=>s.wins*2>=s.matches?"rgba(0, 173, 255, 0.5)":"rgba(255, 81, 83, 0.5)"),borderWidth:0,borderRadius:9999,data:t.data.map(s=>t.type==="winrate"?s.wins/s.matches*100-t.baseline:s.matches)}]})),i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{title(s){return`${n("general.quantity")}: ${s[0].label}`},label(s){return t.type==="winrate"?(s.dataset.data[s.dataIndex]+t.baseline).toFixed(2)+"%":s.dataset.data[s.dataIndex].toString()},footer(s){return[`${n("general.matches")}: ${t.data[s[0].dataIndex].matches}`,`${n("general.wins")}: ${t.data[s[0].dataIndex].wins}`]}}},datalabels:{display:!1}},scales:{y:{title:{display:!0,text:t.type==="winrate"?n("general.winrate"):n("general.matches")},ticks:{callback(s){return t.type==="winrate"?s+t.baseline+"%":s}}},x:{title:{display:!0,text:n("general.quantity")}}}};return(s,l)=>(o.openBlock(),o.createBlock(o.unref(Gc),{ref_key:"chart",ref:r,"chart-data":o.unref(a),options:i},null,8,["chart-data"]))}}),Aq={data:{type:Array,required:!0,default:""}},t3=o.defineComponent({__name:"WinsLossesBarChart",props:Aq,setup(e){const t=e,{t:n}=re(),r=o.ref();Re.register(...pa),Re.register(ei),Re.register(ou);const a=o.computed(()=>typeof t.data[0].column!="string"),i=o.computed(()=>t.data.slice().sort((d,f)=>a.value?d.column.getTime()-f.column.getTime():d.column.localeCompare(f.column))),s=o.computed(()=>[...new Set(i.value.map(d=>d.column))]),l=o.computed(()=>({losses:i.value.map(d=>d.matches-d.wins),wins:i.value.map(d=>d.wins)})),c=o.computed(()=>({labels:s.value,datasets:Object.entries(l.value).map((d,f)=>({backgroundColor:d[0]==="wins"?`rgba(${Qs("--color-good-rgb")}, 0.5)`:`rgba(${Qs("--color-bad-rgb")}, 0.5)`,data:d[1],borderRadius:f===0?{topLeft:0,topRight:0,bottomLeft:10,bottomRight:10}:{topLeft:10,topRight:10,bottomLeft:0,bottomRight:0},borderSkipped:!1,label:n(`general.${d[0]}`),barPercentage:.5}))})),u={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{footer(d){if(d.length===0)return"";let f=0;const p=d[0].chart.data.datasets[1].data[d[0].dataIndex];for(let h=0;h<d[0].chart.data.datasets.length;h++)f+=d[0].chart.data.datasets[h].data[d[0].dataIndex];return`${n("general.total")}: ${f}
862
+ ${n("general.winrate")}: ${Me(p/f*100,1,3)}%`}}},datalabels:{align:"end",anchor:"end",formatter(d,f){let p=0;for(let h=0;h<f.chart.data.datasets.length;h++)p+=f.chart.data.datasets[h].data[f.dataIndex];return p||""},display(d){return d.datasetIndex===d.chart.data.datasets.length-1}}},scales:{x:{type:a.value?"time":"category",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"},stacked:!0,grid:{display:!1}},y:{stacked:!0,grid:{display:!1},display:!0}}};return(d,f)=>(o.openBlock(),o.createBlock(o.unref(Gc),{ref_key:"chart",ref:r,"chart-data":o.unref(c),options:u},null,8,["chart-data"]))}}),Iq={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},n3=o.defineComponent({__name:"RoundCardInfoBarChart",props:Iq,setup(e){const t=e,{t:n}=re(),r=o.ref();Re.register(...pa),Re.register(ei),Re.register(ou);const a=o.computed(()=>Object.values(n7(t.data,l=>l.copy))),i=o.computed(()=>({labels:Array.from(t.data.reduce((l,c)=>l.add(c.round),new Set)),datasets:a.value.map(l=>{var c;return{backgroundColor:l.map(u=>u.wins*2>=u.matches?"rgba(0, 173, 255, 0.5)":"rgba(255, 81, 83, 0.5)"),borderWidth:0,borderRadius:9999,data:l.map(u=>u.wins/u.matches*100-t.baseline),label:`${n("general.copy")} ${(c=l[0])==null?void 0:c.copy}`}})})),s={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{title(l){return`${n("general.round")}: ${l[0].label}`},label(l){return(l.dataset.data[l.dataIndex]+t.baseline).toFixed(2)+"%"},footer(l){const c=[];for(const u of a.value)u[l[0].dataIndex]!==void 0&&c.push(`${n("general.copy")} ${u[l[0].dataIndex].copy}`,`${n("general.matches")}: ${u[l[0].dataIndex].matches}`,`${n("general.wins")}: ${u[l[0].dataIndex].wins}`);return c}}},datalabels:{display:!1}},scales:{y:{title:{display:!0,text:n("general.winrate")},ticks:{callback(l){return l+t.baseline+"%"}}},x:{title:{display:!0,text:t.type==="drawn"?n("cards.roundDrawn"):n("cards.roundPlayed")}}}};return(l,c)=>(o.openBlock(),o.createBlock(o.unref(Gc),{ref_key:"chart",ref:r,"chart-data":o.unref(i),options:s},null,8,["chart-data"]))}}),Lq={data:{type:Array,required:!0,default:[]},baseline:{type:Number,required:!1,default:50},type:{type:String,required:!0,default:"winrate"}},r3=o.defineComponent({__name:"LineChart",props:Lq,setup(e){const t=e,{t:n}=re(),r=o.ref();Re.register(...pa),Re.register(ei);const a=o.computed(()=>({labels:t.data.map(l=>l.date),datasets:[{borderColor:"rgba(255, 255, 255, 0.1)",data:t.data.map(l=>t.type==="winrate"?l.winrate*100:l.matches/l.totalMatches*100),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"},{pointBackgroundColor:"rgba(255, 255, 255, 0)",data:t.data.map(()=>t.baseline),borderColor:"rgba(0, 0, 0, 0.05)"}]})),i={plugins:{legend:{display:!1},tooltip:{mode:"nearest",position:"nearest",axis:"x",intersect:!1,filter:function(l){return l.datasetIndex===0},callbacks:{label(l){let c=l.dataset.label||"";return c&&(c+=": "),c+=l.parsed.y+"%",c},footer:l=>{let c="";return l[0].dataIndex!==null&&t.data[l[0].dataIndex].matches&&(c+=`${n("general.matches")}: ${t.data[l[0].dataIndex].matches}`),c}}},annotation:{annotations:[]},datalabels:{display:!1}},elements:{line:{tension:.25}},scales:{x:{type:"time",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"}}}};Zb(i,t.data.map(l=>l.date));const s=[{id:"chartGradient",beforeDraw:function(l){if(!l.scales.y)return;const c=l.ctx.createLinearGradient(0,0,0,l.height);if(c.addColorStop(0,"rgba(0, 173, 255, 0.25)"),t.type==="playrate"){c.addColorStop(1,"rgba(0, 173, 255, 0)"),l.config.data.datasets[0].fill={target:1,above:c},l.update();return}const u=l.scales.y,d=Math.max.apply(null,l.data.datasets[0].data),f=u.getPixelForValue(d),p=u.getPixelForValue(50),h=Math.min(Math.min.apply(null,l.data.datasets[0].data),50),g=u.getPixelForValue(h),v=Math.max(Math.min((p-f)/(g-f),1),0);c.addColorStop(Math.max(v-.08,0),"rgba(0, 173, 255, 0)");const b=l.ctx.createLinearGradient(0,0,0,l.height);b.addColorStop(v,"rgba(255, 81, 83, 0)"),b.addColorStop(1,"rgba(255, 81, 83, 0.25)"),l.config.data.datasets[0].fill={target:1,above:c,below:b},l.update()}}];return(l,c)=>(o.openBlock(),o.createBlock(o.unref(ky),{ref_key:"chart",ref:r,"chart-data":o.unref(a),options:i,plugins:s},null,8,["chart-data"]))}}),Rq={deckRows:{type:Array,required:!0,default:[]}},Bq=o.defineComponent({__name:"BuiltDecksTable",props:Rq,setup(e){const t=e,{t:n}=re(),r=o.ref([{id:"deck",isShown:!0,sortDirection:_e.NOT_SORTABLE,title:n("general.deck")},{id:"name",isShown:!0,sortDirection:_e.NEITHER,title:n("general.name")},{id:"updatedAt",isShown:!0,sortDirection:_e.DOWN,title:n("general.updated")},{id:"createdAt",isShown:!0,sortDirection:_e.NEITHER,title:n("general.created")},{id:"manaCurve",isShown:!0,sortDirection:_e.NOT_SORTABLE,title:n("general.manaCurve")},{id:"cost",isShown:!0,sortDirection:_e.NOT_SORTABLE,title:n("general.cost")}]);function a(i){Wi(i,r)}return(i,s)=>(o.openBlock(),o.createBlock(ua,{class:"large-table","heading-items":r.value,onToggleSort:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.deckRows,(l,c)=>(o.openBlock(),o.createBlock(Ho,{id:l.id,key:l.id,type:"built",deckcode:l.deckCode,name:l.name,"created-at":l.createdAt,"updated-at":l.updatedAt,index:c+2},null,8,["id","deckcode","name","created-at","updated-at","index"]))),128))]),_:1},8,["heading-items"]))}});const a3=B(Bq,[["__scopeId","data-v-ae70adc0"]]),Vq={regionNameRef:{type:String,required:!0,default:"01IO001"},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},$q={class:"wrapper"},Fq={class:"champion-column column-content"},zq={class:"matches-column column-content"},jq=o.defineComponent({__name:"ProfileRegionRow",props:Vq,setup(e){const t=e,n=o.computed(()=>Ce().dataJson.regions.find(a=>a.nameRef===t.regionNameRef)),r=o.computed(()=>{var a;return`https://lor.gg/storage/cards/banner/${(a=n.value)==null?void 0:a.cardCode}.png`});return(a,i)=>{var s;return o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${o.unref(r)})`})},null,4),o.createElementVNode("div",$q,[o.createElementVNode("div",Fq,[o.createVNode(xo,{"region-ref":t.regionNameRef},null,8,["region-ref"]),o.createElementVNode("span",null,o.toDisplayString((s=o.unref(n))==null?void 0:s.name),1)]),o.createElementVNode("div",zq,o.toDisplayString(o.unref(Me)(t.matches,0,10)),1),o.createElementVNode("div",{class:"winrate-column column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,1,3))+"% ",5)])],4)}}});const zh=B(jq,[["__scopeId","data-v-b3f363b1"]]),Hq={rows:{type:Array,required:!0,default:[]}},Wq=o.defineComponent({__name:"ProfileRegionTable",props:Hq,setup(e){const t=e,{t:n}=re(),r=[{title:n("general.regions"),id:"regions"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,i)=>(o.openBlock(),o.createBlock(ti,{class:"small-table","heading-items":o.unref(r)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.rows,s=>(o.openBlock(),o.createBlock(zh,{key:s.regionNameRef,"region-name-ref":s.regionNameRef,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["region-name-ref","matches","wins","index"]))),128))]),_:1},8,["heading-items"]))}});const i3=B(Wq,[["__scopeId","data-v-2dae645c"]]),Uq={rows:{type:Array,required:!0,default:[]}},Yq={archetypeId:{type:Number,required:!0,default:0},deckCode:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},qq={class:"wrapper"},Gq={class:"champion-column column-content"},Xq={class:"matches-column column-content"},Kq=o.defineComponent({__name:"ProfileArchetypeRow",props:Yq,setup(e){const t=e,n=o.computed(()=>Et(t.deckCode)),r=o.computed(()=>cn(n.value)),a=o.computed(()=>{var i;return`https://lor.gg/storage/cards/banner/${(i=za(r.value,n.value,1)[0])==null?void 0:i.cardCode}.png`});return(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${o.unref(a)})`})},null,4),o.createElementVNode("div",qq,[o.createElementVNode("div",Gq,[o.createVNode(oa,{"deck-code":t.deckCode},null,8,["deck-code"])]),o.createElementVNode("div",Xq,o.toDisplayString(o.unref(Me)(t.matches,0,10)),1),o.createElementVNode("div",{class:"winrate-column column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,1,3))+"% ",5)])],4))}});const jh=B(Kq,[["__scopeId","data-v-91ed15a8"]]),Jq=o.defineComponent({__name:"ProfileArchetypeTable",props:Uq,setup(e){const t=e,{t:n}=re(),r=[{title:n("general.archetypes"),id:"archetypes"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,i)=>(o.openBlock(),o.createBlock(ti,{class:"small-table","heading-items":o.unref(r)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.rows,s=>(o.openBlock(),o.createBlock(jh,{key:s.archetypeId,"archetype-id":s.archetypeId,"deck-code":s.deckCode,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["archetype-id","deck-code","matches","wins","index"]))),128))]),_:1},8,["heading-items"]))}});const s3=B(Jq,[["__scopeId","data-v-f883a9d9"]]),Zq={selectedRegion:{type:String,required:!0,default:null},selectedPlayers:{type:Array,required:!0,default:[]},selectedGraphOption:{type:String,required:!0,default:"totalPlayers"},players:{type:Array,required:!0,default:[]},updatedAt:{type:Number,required:!0,default:0},isGraphShown:{type:Boolean,required:!0,default:!1}},Qq={class:"leaderboard-options"},eG={class:"multiselects"},tG={class:"details"},nG={class:"players"},rG={class:"updated"},aG=o.defineComponent({__name:"LeaderboardOptions",props:Zq,emits:["update:selectedPlayers","update:selectedRegion","update:selectedGraphOption"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.inject(Ki),i=[{name:r("leaderboard.lp"),nameRef:"lp"},{name:r("leaderboard.rank"),nameRef:"rank"},{name:r("leaderboard.totalPlayers"),nameRef:"totalPlayers"}],s=o.ref(n.selectedRegion),l=o.ref(n.selectedPlayers),c=o.ref(n.selectedGraphOption),u=o.computed(()=>s.value===null?n.players:n.players.filter(d=>d.server===s.value));return o.watch(s,d=>{t("update:selectedRegion",d),t("update:selectedPlayers",[])}),o.watch(l,d=>{t("update:selectedPlayers",d)}),o.watch(c,d=>{t("update:selectedGraphOption",d)}),o.watch(()=>n.selectedPlayers,d=>{l.value=d}),o.watch(()=>n.selectedRegion,d=>{s.value=d}),o.watch(()=>n.selectedGraphOption,d=>{c.value=d}),o.watch(()=>n.isGraphShown,d=>{d&&l.value.length>0&&(c.value="lp")}),(d,f)=>(o.openBlock(),o.createElementBlock("div",Qq,[o.createElementVNode("div",eG,[o.createVNode(o.unref(Bt),{modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=p=>l.value=p),placeholder:o.unref(r)("general.players"),mode:s.value?"tags":"disabled",options:o.unref(u),searchable:!0,label:"name","value-prop":"user_id"},null,8,["modelValue","placeholder","mode","options"]),o.createVNode(o.unref(Bt),{modelValue:s.value,"onUpdate:modelValue":f[1]||(f[1]=p=>s.value=p),placeholder:o.unref(r)("general.server"),options:o.unref(Ce)().dataJson.servers,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"]),n.isGraphShown?(o.openBlock(),o.createBlock(o.unref(Bt),{key:0,modelValue:c.value,"onUpdate:modelValue":f[2]||(f[2]=p=>c.value=p),options:i,"can-clear":!1,label:"name","value-prop":"nameRef"},null,8,["modelValue"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",tG,[o.createElementVNode("div",nG,[o.createTextVNode(o.toDisplayString(o.unref(r)("leaderboard.totalPlayers"))+": ",1),o.createElementVNode("span",null,o.toDisplayString(o.unref(Me)(o.unref(u).length)),1)]),o.createElementVNode("div",rG,[o.createTextVNode(o.toDisplayString(o.unref(r)("leaderboard.updated"))+": ",1),o.createElementVNode("span",null,o.toDisplayString(o.unref(a)(n.updatedAt*60*1e3).fromNow()),1)])])]))}});const o3=B(aG,[["__scopeId","data-v-9d0b891b"]]),iG={deckRows:{type:Array,required:!0,default:[]},originalDeckcode:{type:String,required:!0,default:""}},sG=o.defineComponent({__name:"SimilarDecksTable",props:iG,setup(e){const t=e,{t:n}=re(),r=o.ref([{id:"deck",isShown:!0,sortDirection:_e.NOT_SORTABLE,title:n("general.deck")},{id:"matches",isShown:!0,sortDirection:_e.DOWN,title:n("general.matches")},{id:"winrate",isShown:!0,sortDirection:_e.NEITHER,title:n("general.winrate")},{id:"cost",isShown:!0,sortDirection:_e.NOT_SORTABLE,title:n("general.cost")},{id:"differences",isShown:!0,sortDirection:_e.NOT_SORTABLE,title:n("general.deckDifferences")}]);function a(i){Wi(i,r)}return(i,s)=>(o.openBlock(),o.createBlock(ua,{class:"large-table","heading-items":r.value,onToggleSort:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.deckRows,(l,c)=>(o.openBlock(),o.createBlock(Ho,{key:l.deckcode,type:"similar",deckcode:l.deckcode,matches:l.matches,wins:l.wins,"compared-deckcode":t.originalDeckcode,index:c+2},null,8,["deckcode","matches","wins","compared-deckcode","index"]))),128))]),_:1},8,["heading-items"]))}});const l3=B(sG,[["__scopeId","data-v-16cb7504"]]),oG={heading:{type:String,required:!1,default:""}},lG={class:"top"},cG={class:"heading"},uG={class:"chart"},dG=o.defineComponent({__name:"StatisticsPaneContainer",props:oG,setup(e){const t=e,n=o.ref(null),r=o.ref(!1);function a(){var i;r.value?document.exitFullscreen():(i=n.value)==null||i.requestFullscreen()}return o.onMounted(()=>{var i;(i=n.value)==null||i.addEventListener("fullscreenchange",()=>{r.value=document.fullscreenElement!==null})}),(i,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"statitisticsPaneContainer",ref:n,class:o.normalizeClass(["statitistics-pane-container",r.value?"full-screen":""])},[o.createElementVNode("div",lG,[o.createElementVNode("div",cG,o.toDisplayString(t.heading),1),o.createVNode(o.unref(nt),{class:"maximize-icon",icon:"fa-maximize",onClick:a})]),o.createElementVNode("div",uG,[o.renderSlot(i.$slots,"default",{},void 0,!0)])],2))}});const c3=B(dG,[["__scopeId","data-v-f00b184f"]]);function fG({swiper:e,on:t}){t("beforeInit",()=>{if(e.params.effect!=="carousel")return;e.classNames.push(`${e.params.containerModifierClass}carousel`);const n={watchSlidesProgress:!0,centeredSlides:!0};Object.assign(e.params,n),Object.assign(e.originalParams,n)}),t("progress",()=>{if(e.params.effect!=="carousel")return;const n=.2,r=e.slides.length;for(let a=0;a<e.slides.length;a+=1){const i=e.slides[a],s=e.slides[a].progress,l=Math.abs(s);let c=1;l>1&&(c=(l-1)*.3+1);const u=i.querySelectorAll(".swiper-carousel-animate-opacity"),d=`${s*c*50}%`,f=1-l*n,p=r-Math.abs(Math.round(s));i.style.transform=`translateX(${d}) scale(${f})`,i.style.zIndex=p,l>3?i.style.opacity=0:i.style.opacity=1,u.forEach(h=>{h.style.opacity=1-l/3})}}),t("setTransition",(n,r)=>{if(e.params.effect==="carousel")for(let a=0;a<e.slides.length;a+=1){const i=e.slides[a],s=i.querySelectorAll(".swiper-carousel-animate-opacity");i.style.transitionDuration=`${r}ms`,s.forEach(l=>{l.style.transitionDuration=`${r}ms`})}})}const pG={cardCodes:{type:Array,required:!0,default:[]}},hG={class:"card-carousel"},mG=["src"],gG=o.defineComponent({__name:"CardCarousel",props:pG,emits:["update:activeIndex"],setup(e,{emit:t}){const n=e;console.log(n);const r=[fG];function a(i){t("update:activeIndex",i.activeIndex)}return(i,s)=>(o.openBlock(),o.createElementBlock("div",hG,[o.createVNode(o.unref(_2),{effect:"carousel","grab-cursor":!0,loop:!1,"looped-slides":5,"slides-per-view":"auto",modules:r,"slide-to-clicked-slide":!0,onActiveIndexChange:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.cardCodes,l=>(o.openBlock(),o.createBlock(o.unref(y2),{key:l},{default:o.withCtx(()=>[o.createElementVNode("img",{src:`https://lor.gg/storage/cards/card/en_us/${l}.webp`},null,8,mG)]),_:2},1024))),128))]),_:1},8,["effect"])]))}});const u3=B(gG,[["__scopeId","data-v-a6ffd2e2"]]),vG={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},showDetails:{type:Boolean,required:!1,default:!0}},_G={class:"wins-losses-line"},yG={key:0,class:"details"},bG={class:"wl-record"},kG={class:"lines"},wG=o.defineComponent({__name:"WinsLossesLine",props:vG,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",_G,[t.showDetails?(o.openBlock(),o.createElementBlock("div",yG,[o.createElementVNode("span",bG,o.toDisplayString(t.wins)+"W "+o.toDisplayString(t.matches-t.wins)+"L - ",1),o.createElementVNode("span",{style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,1,3))+"%",5)])):o.createCommentVNode("",!0),o.createElementVNode("div",kG,[t.wins!==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:"wins line",style:o.normalizeStyle({flexGrow:t.wins})},null,4)):o.createCommentVNode("",!0),t.matches-t.wins!==0?(o.openBlock(),o.createElementBlock("div",{key:1,class:"losses line",style:o.normalizeStyle({flexGrow:t.matches-t.wins})},null,4)):o.createCommentVNode("",!0)])]))}});const Hh=B(wG,[["__scopeId","data-v-511803da"]]),SG={cardCode:{type:String,required:!0,default:"01IO001"},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},xG={key:0,class:"wrapper"},CG={class:"champion-column column-content"},EG={class:"matches-column column-content"},TG=o.defineComponent({__name:"DashboardCardRow",props:SG,setup(e){const t=e,n=o.computed(()=>Dt().cardJsonObject[t.cardCode]),r=o.computed(()=>{var a;return`https://lor.gg/storage/cards/banner/${(a=n.value)==null?void 0:a.cardCode}.png`});return(a,i)=>(o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${o.unref(r)})`})},null,4),o.unref(n)?(o.openBlock(),o.createElementBlock("div",xG,[o.createElementVNode("div",CG,[o.createVNode(da,{class:"circle-card-item","card-prop":o.unref(n)},null,8,["card-prop"]),o.createElementVNode("span",null,o.toDisplayString(o.unref(n).name),1)]),o.createElementVNode("div",EG,o.toDisplayString(o.unref(Me)(t.matches,0,10)),1),o.createElementVNode("div",{class:"winrate-column column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,1,3))+"% ",5)])):o.createCommentVNode("",!0)],4))}});const Wh=B(TG,[["__scopeId","data-v-d436bc19"]]),OG={class:"card-page-toggle"},MG=o.defineComponent({__name:"CardTogglePage",setup(e){const{t}=re(),n=o.ref(0);return(r,a)=>(o.openBlock(),o.createElementBlock("div",OG,[o.createVNode(Bc,{"selected-option":n.value,"onUpdate:selectedOption":a[0]||(a[0]=i=>n.value=i),options:[o.unref(t)("cards.recommendedDecks"),o.unref(t)("cards.similarCards"),o.unref(t)("general.statistics")]},null,8,["selected-option","options"])]))}});const d3=B(MG,[["__scopeId","data-v-07d07f20"]]),NG=o.defineComponent({setup(){return{}},mounted(){const e=Et("EUAACAIEA54Q6AIGBECACBQKF4AQIBQGAECAOUYBAECBWAICAYKACAIFFUAQIBAOAIDAOBJIAIDAYBIIAIDAMGY5AMDAEGI4EIBQMAYTC4RAGBQABIMCQAYGAUBQMHY");console.log(e),console.log(o7(e))}}),DG=o.createElementVNode("h1",null,"TestComponent",-1),PG=[DG];function AG(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("div",null,PG)}const f3=B(NG,[["render",AG]]),IG={name:{type:String,required:!0,default:""},selectedBannerCard:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},id:{type:Number,required:!0,default:0},matches:{type:Number,required:!0,default:0},lp:{type:Number,required:!0,default:0},change:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},LG={class:"wrapper"},RG={class:"champion-column column-content"},BG={class:"mana-hexagon"},VG={class:"mana-number"},$G={class:"name"},FG={class:"matches-column column-content"},zG=o.defineComponent({__name:"DashboardLeaderboardRow",props:IG,setup(e){const t=e,n=o.computed(()=>t.selectedBannerCard===void 0?null:`https://lor.gg/storage/cards/banner/${t.selectedBannerCard}.png`),r=o.computed(()=>t.change===void 0?[]:t.change===0?["neutral"]:[t.change>0?"good":"bad"]);return(a,i)=>(o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${o.unref(n)})`,"--background-color":t.index%2===0?"var(--color-background-0)":"transparent"})},null,4),o.createElementVNode("div",LG,[o.createElementVNode("div",RG,[o.createElementVNode("div",BG,[o.createVNode(yo,{class:"hexagon-icon"}),o.createElementVNode("div",VG,o.toDisplayString(t.rank),1)]),o.createElementVNode("div",$G,o.toDisplayString(t.name),1)]),o.createElementVNode("div",FG,o.toDisplayString(o.unref(Me)(t.matches,0,10)),1),o.createElementVNode("div",{class:o.normalizeClass(["column-content change",o.unref(r)])},[t.change!==void 0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(nt),{class:"icon",icon:"fa-chevron-down"}),o.createElementVNode("span",null,o.toDisplayString(o.unref(Me)(Math.abs(t.change),0,10)),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" Test ")],64))],2)])],4))}});const Uh=B(zG,[["__scopeId","data-v-3d62a718"]]),jG={date:{type:Date,required:!0,default:[]},activated:{type:Boolean,required:!0,default:!1},soon:{type:Boolean,required:!0,default:!1}},id="data:image/webp;base64,UklGRpQVAABXRUJQVlA4WAoAAAAQAAAAYwAAjQAAQUxQSAEBAAABgGPb2rHn+e3KTunUNntXPyaQKSSV7UzBSfejizkD26htPU/y/lZETABIK2xW2koVX0DKFxXZrLR1CQD2y3vah6PpUeLxnXviuwEBtL5SPz6/Ur+8Urvl0EbGQLccWsPjXH6DO+jg+vQSZGh5Zb7XaAp7aPEKbezzKMKEWuP+C7y0xdzV6gXkWif7drOyTtj34Mg99QL28KAcr5B14g0yAyo5p94gzytkn7Dv3qZz49xvzM6hzi5ffHrankNevMXZzIDUhuFfDw2PdKQr1SqVSqX+rUqbPfP8et2YqFKjqgz1I8ODA8O/7SnjAnC4qIBvGNm18wGdw0WF/6jMFcCfBwBWUDggbBQAABBDAJ0BKmQAjgAAwBIliAKSzJgM/yf5TextXv8H/bv2BwHdg+Vdzn/0vWB/tPVF5h36ofrv14vMX+3Xq2/7v1cf2b1AP6l/gOtp9A/9x/Th/dX4aP7X/2f3C9rXBZ+F2Jr4/8+/kPzM9c3+w73vS/++9CP5x+Df1n9q/dL2b8DflTqHfln9a/0/Ar209A7vn37/+R6R/YP/le4H/Ov63/oeSc9E9g3+ef3T/s/4z2Uf/P/Zelr6a/9f+k+BH+df27/reu51QB6l8J+19f+pT6sZj+zE2+wE9vWoNfcEz0oTpvLjAO+Oa0LQ0Jow+wnjIYPuMNdJgebCP0A0x9HFV9m1SGgYnekuqE7R0gGfFSqVDdnmaEzLXqoY5ab7mI283b2U6qHsm1LaV2sv3hWYD74YbO9I365ZyH7IOZW2np5xzxY1uNwlx8m3/TlZpshWOQCUqQEaeXuo/NGNB7fPAFQA9spGF46iKOVdiy4H51LojrONPcDzWBAEuAoyxYSjdLl+yL79WxDhr4xWsGpRCikM1q5cdoxI5DzxmQC+WU34EWnl4CUNbIztZ0DdID1a0xmf9PiWSXfO4bZPzx8wcVrzgmGBY4h9fhG06Eg8Pe4iO3CVETaIxrPsQBwT/o2De9RYWlsdvaDBCRFNqTIhtugVNyhTOM/+NHgy2FRNW55uPOcszqLATAsZl/DQCkGM1H3/Q6b8yOWsaDQ8wYl8YUfoAP7u3JuG7XFiqpPFp/zTze9Dk0t236U3vstNlqJ6SMY/EUhcAaCy3g3fU1aSTwRLVo/tbHheprGIHpVpNqjxBzS1OFaBnyrYoywF4mxQQRjLtYqhSzPDGyjl/+mVF30ZwM1deMxjDDSwpabr//JIfGwSajIir7csLqBcPmzLwiG0X8yyOdc6OggQUYZentENwuvqEfj4tkP5AdpcIlLP6PXPTMLwXYC5UVVGobBIg429evsLhW4cFRY7HS7kzF/loDieDUMVuHgsMHmBlHbV0ft7uggiS+/oURoyeFXHtbAffBaM7WcIS0lh3dr/hH+xcEKpG6voqahtySY9unVDK4Ma+M4J9OXSo71s3dEeACMKt+lj+FBWDsCJDXpu9Lm3VLbYyT5aF4l0kiGnDuTyRednJJxXlv9ZB2XqhFRCRxK1YE9sx6PGzx8h1YQvNTO5vUl/nAq/pglypqDeR1DHey3IRtZsO/1/M12zYhtN58HYvZriSE/pzLhUGdKAnDJN+N1zpts+c79KrZYjR5+LC8mqTp3zA107/ruodw4OhlDLLtEkHoK0aL6L9kgYkVYuk051/J0iVKO6TrNDjtGCXCzQ61VHH07nEMhfWQqzs+eEOnCdem+/mp99Y5moGhX/AG8JXlhIt15Lv5D60Crp8RJMOD93GDx3WmltCm+Uv1YUslp6iqCDT9pJkbrVnz19cge4T3b7AMrWIAxvDVSB+GjGkX/VQXtjcfsYyHhBaNDOrAPmMkk43eLISRFlsUW9xJ70I7YqMi4KkLA5BSawyrIJeGDRRPpOyqXBJ3he27M6nYaDUcu/dw+zKZFrH6JJepygQiw9/gTA8qAo9Wy4TxVrbJ3iVIyWD9tN6kW+H0ATrOZcaPr4mEoJATghh5iOmN12PTvewVv3VhiUXfqV2BWbUrqWHOkvUgcNaMRXkTobbwOziNe7s9Ub8f1fyJJ+KoqDjl5TXGTKJf71c5O8PiHEwUijMoTg1GNrxg/iyd2pvikPHJ/LeYRAjV77bM1tdlnWBYiABeF3lU6zrp/qqdxhb8P33GXLOZC+7Q+k29zjZyKON23ZtaPwSL1oDj4jmqXJ0DV/iWA+79rebbt2US+K8ARkowLBGCyDHGaKBFXplZu5qY2Jr6P0YUmkj8Se0bToxblcTq3Yo99+M+HkAnRjvQ6iVKId8+YXuXpHdWG2e0XjaXsZ6IBomXeg/qv7XzhWsqrLDSmmSG1scFVF9w5hYj02X4QIhwfHS9DJ46kN1NvcCouEHbUnMQHzUsndQ/LXToevL3LcziuwhLIDliY5NZVQGbChii5WdshXFpqLTnMoSx/QLlWVrcEpCWeg1QCKc32cIAdHGm85bWc1BWWymuRFjr5Tgp3b9TPWLbmnJyb+oSemQmbAPvG9LJIqXmr2xCr0TGmDluE4zO8vaZ/YMEtA9ObEVpVaRj/fqmgL6oHMSW8btJ19nVA62zSzzTuNWJjkN2Zx/t3a5oddkCmbJATg/9VKopqZllxD/GmhAA2Z+o2Yl+CoH3mwuLLPslUy54VmjbhRr+FyR7akdBlYodQHYMNcOKTqhcRGICgXOLTRXn27nIzblK2s7Ts8zAeHmG48CpkdL0ogJ+mrFlrUonC65itjH25Zybm2oM+zxGTTFmy3qhxeF44T6UObeh1vuD/xnjE7NOi28jLT2p7QOjRifMsWRKF8A1+4WnZwba/telVJ0M6W12iygb8UFKOypj4S3LoX1Sx+DIoHPssoAW9iBseVXrDaK8AUOd4jhVQ1WZXhAyQrLt5vuLNMEaFbCq0RltFolGtQ9UYWId2iCWWUAob/O5rzCZMRGWlrXfqV2OMsz7NzL8MkLUlj/XCo/PHG7Lqo/QabVPLqTejIyn8VMf75hXLI4vX3fFT9uVIjfrLe3wDtwo3hgQlrT+8wtcHIkMnpF1wK0Pmi3q3dt+cBzJ7twZjPrXbla5YVz18ptitmRDERECQ67qfzqNrl2C9pLJ/q1f/Ew/JY3Fr/02nDtq35QZ0dZYgfTf47HOzzo4UjL+noRi2L+dBj0fBp9NznpszWtf/ViprbM+6Zzv1l+tD4U3Zu//+Oey/Lgbh8EQfzgm9i59POCMUU/7sNjnSLils28YksYWNbznb3xcNIpy2wR85ntEWFLTuHfln1UVFAUGGrZdmWz6JzqNPxD0AeXjf8ntg4NCbxgB8iohTpMedkpD2q9xEEUXBeo8yuCJKNjP+zg/AYfX9/PVLZWqo5l/XXgtH2ABNTFqA2942K8zLTN4rjFvA8KqN5rmSofCljeENG145859vlNSmeR0T1U7KZ/z6Q/crwGbDY1f9Cmfzjf7MsZklghfj/1shlyq7gSv5Ym375SxDw/iDuj67jYdGOBVjmpB1mnV158my0bdh75nONKc2vK8ZjU+iNXS/P8aJUAiRFk7st3bV5h9baGPOQqbOk4dWjw8NUN7nwm0fmJQ5vp73I/A4UZ8eqf638Gkr3pXrHvUebaPb+xcIzBDE1Nvcojfb/5nm95LL0aHg1iKt36a6uavLgIvpkN7Qo3TujZX95S02Bjz3vhFXVLmBFQCYemOTW9uc4LHakG8kU8VevsB1HT+S1RQKKGdo8JtG9raNhNJjHGLqolgRumnusF3c3ABwOjbQhbjjfMQpu7cdy6J0DTh2hatG32udWg1LPdR9fsVpjEysfGQ0GDDxrvx9YwIGgSRZOZpNEJop4ey3CbpHsmfbpTu+aiszsvP5P6WtQ92vlZ8hxGp2cmnFD2MB6+gQ0hM7eZRxHsKG0+WcpmGsBbtEcNBFvUhbVul/oh7JL+W7adTjOuAVWYVYoTud4ovKjSckZfM1oTXnO4Ky5/LPkQICBB53iz2cdoAWm7owZYQ/S/m4Uwya+G8RezTLMacJChJKqvaibSzfr1bLY6Vry/907SR/JMI7gNWKaUF3Vba3b5b0HxlnFvPrH9H/e+v/zKavQWUONrFVDJYy1XBQUKeYi/Nk2TjiR28KllKGnB2Fq4UnOXuNFR6A2fOnv22Ud48xB8MDHPdrkiVnT362fvOFVnTizjBiQ8TsDnPCs9yEBp16IVDSPomLlWtRkTdEKM6vtCfOz5kpT/0/f18Zx1GX1lvHApIkCfMiNePrIQ9HXD0kmtO7+kdpnb01upiB8fDivDuW+Q0T9Ekbl4PcAAl6+TEntzh67pMz09ikbexC0m6HJHt2TiTtEeCNtLfTWM7HNNFnyoD6HOVEHxiygPZ4y8pyIEJY6J8xwz4TjpyIsHs3cFHpgqfjkUgTFx3uclUbtjRvRXWkgXyZd2ysup9AT8mS0ZJxbARswqXFxJaMDemxOcr6pMmpUPPx6m3QAAnD5YW7H7ATCMs7x2pa2P++IZrqP5lRbgR3bmPDGNdaK0MJWIdUEp/KMOQS9B6vwdVSLl/8mjT5CxXSx2VxxrgGTVW6NBBuTmP9Vt9ZOQ0d0ORGcg++/xMiPrl91fbiMOVAa5GRuhKUhIpUCxVplYkot97+71nhgPlFn6t3NoJKsWX7ecxQQ2Ju2lHT7kO007o0voWXVBgS4t1L3tHfiGWu9NcmCjKwt8PwHn/Jz3v6Uek7SG+ZjCMiakQpmV+0QrjA09K3jZfQgUr+zs/3n/X1zZPPLWk+TlywRK6p0/qbliMMhyXFKbGpTXqvlvBC2Fr58dVvfouGrlfh72hq6YOaZn9zdQWPqbjtqIg8g9QxZzL954uK2OuI1JJittRNNcVSSra2lACV/Ej7Or5II6lx2C3FjqTsrh4UXCcUZWtsOA24NHIJ9CzFmsC4IyIOUXhZEN65l9PYCkjNWKaNz89kPq2+4ye1/jzAuDDg2RrKp/FNIKhhKO0YSPaLz9ODfQTLJhMTpPAXm+xLB0oX7Vo75znqCKyJvmxCmfzANcHkBciBEuOOq68Zl6RZtvaAB0xxFCOfvwBwUY+0qWjfW5PVAaY9bzRJlL100JT3b2kkKDbSW1JXvJqoC/Gubz7CPLYlMJ8dNbim9ydCev9Yq4uzuFENwzKxXa/+CJOmjxzMMCUO8Et1aezpZRwhRESDWtEzJpOKzapC0Hy+M9LX92rbTLKuAfIs+t2RLVUI914oLWgqjEfsM+8o8Tp+U+TRjZ2FF4Ksvp2tGNUiwUapjWbERc67w9nCCgSfLo/c3J1nQLygbzMoJrH4FojgB5aomLL3Qu6IHsRkYhXeYS5oHE0EyRRQXDSEsr4Agr+Yfe5rM854ckE/Yjtm9JnUazZfvvxW2UhxIs9N1m706CP2Ypvs1i7dW+ZmqMCL6uSL+C7hOyycrmvY3Y1YHfIm/pn6u2tgqDN0Y/mZKlUtFq431+zZtpV7+M8ImZf+ou67QEQgXKlc5nxIRUn4WPWlDg2J+6ifiADxcmoRbqWCcG7PR1aUBaLcdSH9KfyF9wgQEj3V+4gyQIa/4JZICFGBUF1BBpZ/anb9TggFs64t+P8eXsWK/kYO+YjSiRyclvKR6hdZRs3hsPY5i7CnmpMUZIns0Ir1ZD8T38M3GM2CcjVW7dG8+0pgw9Si3W5RQrSQjYNq/0A9slLyqiv6ZjrmJFk8Vumsh0VfVPiE7vzqDoxlssE+RqwjJb7DCYE6MHby3aDhaThUE8lgQ7wHTzwoT6IwKqw1ofiTrBycnkdgSKnNEcAgmEQm/Nc4SfKQIjYFgAC+IZeC+S8/pKr8oSNd53EyIK7cuYgnPCUSYn8K2wZD3f/HeVjWIk2EaqRQNZvhCL9pMdwBR8OFRxr36qHCqSx2ZPJOQ3MOPk7swYH4B1QSo4K5tY7/RSl69ftU132HNN0NDfzsvWmBTzVLArpA8RY9LCv7PQ+tbH+6xQWWT4zo41H0hZroZB9Y1BRkiR1jU2XXIQzjY8M2WxSCUywHQOItrSSuDf43zfF+0pXshiSJh3wkP7UVjoF1JMXAPzr2YtxaKFTaZHj0t+e2KUYnGCPDMRt/jsJ1VNqvqGMjhbzmK/Ji7jcaK0nVU2t150c0NRtZlmCiRa7hpNnWe8JlN946yTf4mBY6we5YtS+tHlFzb6xxXgSNdAJUQ/Cf/gbr1MOYnfNPn7tgsduJnySBfUxlhueUByJNOC3T+QE5gELLjR8V/YThTkoJl7a4clEiUTt+fUCWTdjRcJgg8LQSvOspSnGQ5o5a42FBWa2brKLjpnmcroiLKuqJ8SM/UeCuF78esGhAuc2nC0jXZv12w17el7YAcHrpA2Vx+Jv6X5ok4PxVseLzfIY9wbb0nrOCAU3Gg/eKUcu2emB7XfMAgEbBPf7tOMUfluV4zeGsAFHhH3jCmTT0ie7YZP13tsgzt6I+llT2GnDkU9ylV0Rjzdl92EnAJhLyZovmJn2r+3xytit6NWsWFNLk8xZeFTY6cWoqEtVA2HoX/dvgwba3wkOMiZHRRnDWc5OHZ8DvUufoI4BEp4lLz8LqDcJ4U2ROGcH/tNtLAWpov5bBWwYZghIsAyxK4elFVxROoKzEytuvDaHjB85srMddi0+wpvq8Gv2hadSObXFOTXuJYuca+dVPRPg6i8Jy4YRCCcvDJ9h/G4pHs8UtxcagVPFP3LtdVn8qwgiO4/RkY/NvkpOnzPrgtjKA9F25cFO/iEV1SONr2YEg2e21jHzxn1BpHOC+VjkYP6+XVfhyW3FnO55pyGqelLpWnIMcvLUb/nYZluleyUZSt9yjLLW6HyeMT/TsCJpQ+TixJzS2a/JQRc+igKZAJCN5f4pHylBS/nTZQqff5FAhr6QbQIbB+3sfEH7dCB5G4BcRU/hWRacndN8it2rV+0OL+q9WuSGBeFROmtq7ko9ZK00n9mGhhm+CYaUiUyUpdNEhcjDi72xSDSPr5PIlg4ecGmxXOzJMAvwi7oAQQg+Yf0/4z2VCGkFCJ+brkSSZLb8fs2G2c+fYVn/tnAmmooSpfNyJw90LiRdDuQbQ93BQWt3azhV9TEBsPGFE3GGkTw0krNqcURqAQKzvXr2bnhO8KRWoWG7XliqBjI/qGv4UOSaZGwIFqc88q1XuMWRIvW6Cy0jaeljlEotz0AFnDGH2Aq1Pn6SREslqfkNcbIyJ/ZH8oMeXhw4Ua92QnhLp909o39dtaOK/eyzPuAH0ev2kS5g9sKHUC7eEoZIBtPPDrdsGXKpr+L+P9BRvo7OcKaVBxchzd2ZLrq/KC+l5UF0ZSfFqSW6UE0inppd0zfwM2/igkrgcDqi6fKcNBLQO3Yh9ysmWdD7EQ2ZnQ1rzdxuR59XgwjJvDgAAA",HG={class:"reveal-day-option-wrapper"},WG={class:"card-wrapper"},UG=["src"],YG={class:"card-wrapper"},qG=["src"],GG={class:"card-wrapper"},XG=["src"],KG=o.defineComponent({__name:"RevealDayOption",props:jG,setup(e){const t=e,n=o.inject(Ki),r=o.ref(null),a=o.ref(null),i=o.computed(()=>t.date.getTime()<new Date().getTime()),s=o.computed(()=>i.value?`Revealed Cards
863
+ ${t.date.toLocaleDateString()}`:`Cards Revealed
864
+ ${n(t.date).fromNow()}`),l=o.computed(()=>{const c=[];return t.activated&&c.push("activated"),t.soon&&c.push("soon"),i.value&&c.push("past"),c});return o.onMounted(()=>{st(r.value,{content:a.value,arrow:!0})}),(c,u)=>(o.openBlock(),o.createElementBlock("div",HG,[o.createElementVNode("div",{ref_key:"revealDayOption",ref:r,class:o.normalizeClass(["reveal-day-option",o.unref(l)])},[o.createElementVNode("div",WG,[o.createElementVNode("img",{src:o.unref(id),alt:"card",class:"card"},null,8,UG)]),o.createElementVNode("div",YG,[o.createElementVNode("img",{src:o.unref(id),alt:"card",class:"card"},null,8,qG)]),o.createElementVNode("div",GG,[o.createElementVNode("img",{src:o.unref(id),alt:"card",class:"card"},null,8,XG)])],2),o.createElementVNode("div",{ref_key:"revealDayOptionTippy",ref:a},[o.createVNode(So,{text:o.unref(s)},null,8,["text"])],512)]))}});const Yh=B(KG,[["__scopeId","data-v-f3dbe378"]]),JG={days:{type:Array,required:!0,default:[]}},ZG=e=>(o.pushScopeId("data-v-76ed46ac"),e=e(),o.popScopeId(),e),QG={class:"reveal-day-options"},eX=ZG(()=>o.createElementVNode("div",{class:"line"},null,-1)),tX=o.defineComponent({__name:"RevealDayOptions",props:JG,emits:["update:days"],setup(e,{emit:t}){const n=e;function r(a){const i=n.days.map(s=>({activated:!1,date:s.date,soon:s.soon}));!i[a].soon&&i[a].date.getTime()>new Date().getTime()||(i[a].activated=!0,console.log(i),t("update:days",i))}return(a,i)=>(o.openBlock(),o.createElementBlock("div",QG,[eX,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.days,(s,l)=>(o.openBlock(),o.createBlock(Yh,{key:l,date:s.date,activated:s.activated,soon:s.soon,onClick:c=>r(l)},null,8,["date","activated","soon","onClick"]))),128))]))}});const p3=B(tX,[["__scopeId","data-v-76ed46ac"]]),nX={cardCodes:{type:Array,required:!0,default:[]}},rX=o.defineComponent({__name:"DashboardNewCards",props:nX,setup(e){const t=e,{t:n}=re(),r=[{title:n("general.newCards"),id:"newCards"}];return(a,i)=>(o.openBlock(),o.createBlock(ti,{class:"small-table","heading-items":o.unref(r)},{default:o.withCtx(()=>[o.createVNode(Qf,{class:"reveal-carousel","card-codes":t.cardCodes},null,8,["card-codes"])]),_:1},8,["heading-items"]))}});const h3=B(rX,[["__scopeId","data-v-89a26f2c"]]),aX={players:{type:Array,required:!0,default:[]}},iX=o.defineComponent({__name:"LeaderboardDetailTable",props:aX,setup(e){const t=e,{t:n}=re(),r=o.ref([{id:"player",isShown:!0,sortDirection:_e.UP,title:n("general.player")},{id:"lp",isShown:!0,sortDirection:_e.NEITHER,title:n("general.lp")},{id:"change",isShown:!0,sortDirection:_e.NEITHER,title:n("general.change")},{id:"matches",isShown:!0,sortDirection:_e.NEITHER,title:n("general.matches")},{id:"winrate",isShown:!0,sortDirection:_e.NEITHER,title:n("general.winrate")},{id:"favoriteDeck",isShown:!0,sortDirection:_e.NOT_SORTABLE,title:n("general.favoriteDeck")}]);function a(i){Wi(i,r)}return(i,s)=>(o.openBlock(),o.createBlock(ua,{class:"large-table","heading-items":r.value,onToggleSort:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.players,(l,c)=>(o.openBlock(),o.createBlock(Lh,o.mergeProps({key:c},l,{index:c+2}),null,16,["index"]))),128))]),_:1},8,["heading-items"]))}});const m3=B(iX,[["__scopeId","data-v-4dfbb489"]]);const sX={},oX=e=>(o.pushScopeId("data-v-c8a918ec"),e=e(),o.popScopeId(),e),lX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400"},cX=oX(()=>o.createElementVNode("path",{d:"M107 57.2C23 99 25 97.6 22.2 106.3c-3.4 10.4-6 4 43.5 103.1l44 88.3.5-6.6c.4-4.6 1-7.7 2.4-10.4l1.9-3.7-40-80.8c-22.1-44.4-40.1-81.5-40.1-82.4 0-5-.9-4.5 78-43.9l75-37.4 3.4 1.1 3.3 1.2 49.8 99.6c33 65.8 49.8 100.4 49.8 102 0 4.9-1 5.5-28.2 19.2l-26 13 15.4.1h15.4l13.9-6.9c19.2-9.6 23.1-14 23.2-25.6v-5.7L257 129.6C221.5 58.6 206 28 204 26c-4-4.2-9.6-6.5-15.8-6.5h-5.1L107 57.2m121.5-15.8 3.5 7h29.6c26 0 29.7.2 31.3 1.3 4 2.8 4 1.9 4 68v61.6l6.6 12.9 6.6 12.9v-76.3c0-90 .7-84.8-11.8-91.7l-4.2-2.3-34.6-.3-34.6-.2 3.6 7m95.7 42.1V91l24.3 12.1c25.1 12.5 28 14.5 28 18.7 0 1.3-10.8 24-26.1 55l-26.2 53 .2 14.9.2 14.8 32.8-65.8 32.8-65.8v-5.5a20 20 0 0 0-7-16 739.5 739.5 0 0 0-58.6-30.6c-.2 0-.4 3.4-.4 7.6M126.5 285.1c-4.2 4.2-2 10.3 4 11.4 1.5.2 57.1.3 123.6.2l120.9-.2 1.9-2c3-3 3-6.9 0-9.8l-1.8-1.9H128.8l-2.3 2.3m1.9 25.8c-4.5 1.8-5.5 7.5-1.9 11l2.3 2.3h122.4c130.4 0 125.8.1 127.2-3.5 1.5-3.8.3-7.8-2.7-9.4-2.5-1.3-244-1.7-247.3-.4m-2.3 29.3c-2.6 2.6-2.6 6.6.2 9.3l2 2h246.8l1.9-1.9c2.6-2.6 2.6-7.2.1-9.6l-1.8-1.7H128l-2 1.9m.6 27c-3.7 3.5-3 8.9 1.4 11.1 2.6 1.3 9.8 1.4 124.8 1.2l122-.2 2-2c3-3 3-6.9 0-9.8l-1.8-1.9H251.7c-122.8 0-123.3 0-125 1.6"},null,-1)),uX=[cX];function dX(e,t){return o.openBlock(),o.createElementBlock("svg",lX,uX)}const g3=B(sX,[["render",dX],["__scopeId","data-v-c8a918ec"]]);const fX={},pX=e=>(o.pushScopeId("data-v-4a6733fd"),e=e(),o.popScopeId(),e),hX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 431.6"},mX=pX(()=>o.createElementVNode("path",{d:"m178 26.2-8.6 1.8-9.6 2c-2.6.6-6.6 1.5-8.8 1.8-2.2.4-5.7 1-7.8 1.6l-8.8 1.8-8.8 1.8-8.6 1.8c-2.6.5-6.2 1.2-8 1.7l-8.8 1.7-8.6 1.8-6.6 1.4c-3.2.5-14.1 2.9-18.3 3.9-4.2 1-4.4 2.2-2.2 15.1 4.2 24.3 5.2 51.8 2.9 80.4l-.8 10.8c-.2 2-.8 6.9-1.4 10.6-.6 3.7-1.5 9-1.8 11.8-.4 2.8-1.2 7-1.8 9.6a138 138 0 0 0-1.8 8.3c-.3 2-1.1 5.3-1.8 7.4l-1.6 6.1c-.8 4-3.8 14.2-7.1 23.6a191.2 191.2 0 0 1-5.7 15.3L39 259.8c-.7 2-1.7 4.2-2.1 5l-8.5 17c-3.4 7-3.6 6.6 11.3 17a13873.6 13873.6 0 0 1 92 64.6c17.4 12.3 16.5 12.7 18-8L151 332c.6-12 .9-16 2-30.4.6-7.2 1-13.3 1.8-30.2l1.2-18c1.6-20.9 3-46.9 2.6-48.9-.4-2.3-1.8-2.8-5-1.8-9.2 3-18 4.4-23 3.7-15.1-2-25.3-12.8-29.8-31.8a95.5 95.5 0 0 1-2.6-29.8c0-19.7.1-20 5.5-21.6a691 691 0 0 0 14.5-4.2 583.1 583.1 0 0 0 24-6.8 88 88 0 0 0 6.4-1.8c2-.6 4.9-1.5 6.4-1.8 1.5-.3 4.7-1.3 7-2l5-1.4 5-1.4c12-3.9 13.8-3.9 28.5.4a746 746 0 0 0 23 6.5c.4.2 2.3.8 4.3 1.3 2 .4 5.2 1.4 7.2 2l6.4 1.8c1.5.3 4.2 1 5.8 1.6l7.4 2.2c19 5 18.6 4.5 18.6 24.2 0 48.9-20.7 71.2-55 59.3-6.4-2.2-6.8-1.3-5.6 13a948 948 0 0 1 1.8 30.3c.2 4.7.9 14.2 1.4 21 1.1 14.4 1.6 22.6 2.2 34.8.2 4.8.9 14.7 1.4 21.8 1 12.3 1.2 16.4 2.2 36 .9 16.2-.6 16.4 26.2-2.6a2102.7 2102.7 0 0 1 24.8-17.3c2.6-2 7.1-5 10-7.1a3744.4 3744.4 0 0 1 30.2-21.1l17.8-12.5c13.2-9.2 14-9.9 13.7-12.5-.2-2-.5-2.7-3.4-8.1a164.8 164.8 0 0 1-10.7-22.4 292 292 0 0 1-9.5-25.4 292 292 0 0 1-7.2-25.2 345.8 345.8 0 0 1-10.4-64.4c-.9-7.7-.6-44.7.4-53.6l1.7-15.4 1.4-10.6c2-9.4 2-10.2-.1-11.7-.7-.4-2.1-1-3.2-1l-6.5-1.5-9.5-2c-2.7-.4-6.7-1.2-8.8-1.8l-6.9-1.4c-1.7-.3-5.7-1-9-1.8l-9.8-2c-2-.3-5.5-1-7.6-1.6l-8.8-1.8-8.8-1.8c-2.1-.5-5.6-1.3-7.8-1.6-2.2-.4-5.8-1.1-8-1.7l-9.4-2c-3-.4-7.3-1.3-9.6-1.9a28.3 28.3 0 0 0-14.8 0"},null,-1)),gX=[mX];function vX(e,t){return o.openBlock(),o.createElementBlock("svg",hX,gX)}const qh=B(fX,[["render",vX],["__scopeId","data-v-4a6733fd"]]);const _X={},yX=e=>(o.pushScopeId("data-v-b519ac08"),e=e(),o.popScopeId(),e),bX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 429.1"},kX=yX(()=>o.createElementVNode("path",{d:"M53.8 32.8c-2.6 1-8.3 12.9-13.6 28l-2.1 5.8c-.4 1.1-1.1 3.5-1.5 5.4L35 78.8a84.1 84.1 0 0 0-2.6 14.1c0 2.7.8 4.1 7.4 12.5 16.7 21.3 16.7 21 2.2 21-13.3 0-13-.3-12.7 11.8.2 8.4.7 11.8 1.9 14.2.9 1.7 1.7 2.7 27 35.3 8.1 10.6 7.8 11.5-4.2 11.5-11.9 0-12 .3-4.4 16.9a269.4 269.4 0 0 0 28.7 47.7c8.4 11 8.6 11.5 9 19.8.5 8 1.1 11.4 4.3 24.4 7 28.8 30 57 60 73.2a97 97 0 0 1 5 2.8l3 1.4c1.5.5 3.5 1.4 4.5 2 2.8 1.4 10.6 4 11.6 3.6 2.1-.5 2.4-3.6 1-10.6-.6-2.6-1.4-7.3-1.9-10.6-.4-3.2-1.2-7.6-1.6-9.7a218 218 0 0 1-2.6-15.1l-1.8-10.2-1.6-8.2c-1-5.6-.9-5.5-13-5.8-10.4-.2-11-.4-12.3-2.5-.4-.7-.5-7-.7-28.7-.2-26.2-.2-27.9-1-29.2-.4-.8-5.5-6.3-11.4-12.2-5.9-6-11-11.4-11.4-12.2-.8-1.5-1.3-65.8-.5-68.5.7-2.6 2.6-2.3 7.3 1.3l6.8 4.9a1371.6 1371.6 0 0 1 25 17.9c16.1 11.6 25 18.2 26.2 19.7l1.2 1.6.2 28.6c.2 31.6.1 30.2 2.8 32 1.7 1.1 28 1.4 30.6.3 3-1.2 2.8.6 3-31.4.2-31.9 0-29.5 3-32.5 1.7-1.5 7.1-5.6 18.6-13.7a3147.5 3147.5 0 0 0 38.3-27.6c4.4-3.3 6-3.6 7-1.2.7 2 .4 66.8-.3 68.3-.4.7-5.4 6-11.2 11.9-5.7 5.8-10.9 11.3-11.4 12.2l-1 1.6-.2 27.8c-.3 35 1.2 31.2-12.6 31.6-12 .3-12.2.4-13.6 12.6-.3 2.9-1 7.3-1.4 9.8-1.4 8.3-2 11.7-2.6 17-.3 2.9-1 7.5-1.6 10.4-1 5.6-2.2 14.1-2.2 16.9 0 2 1 3.3 2.8 3.3a93.6 93.6 0 0 0 21.9-9.4 124.7 124.7 0 0 0 47-44.9 128.2 128.2 0 0 0 15.9-52.5c.7-11.5 0-9.7 11.7-27.2l10.4-15.6c2.3-3.3 18.2-34.8 19-37.7 1.1-3.3-.8-4.3-8.8-4.3-11.8-.1-11.9.1 3.4-20.2a1330 1330 0 0 0 15.4-20.8c4.9-6.6 5.5-8.5 6.6-20.9.6-6.3.4-8.2-1-9.6l-1.1-1.1-9-.2c-13.5-.3-13.6-.6-4.2-13.4 14.6-19.7 14.1-18.3 11-31a188 188 0 0 0-9.9-31.1c-2.8-8-7.8-17.3-9.9-18.1-2.6-1.1-1.7-2.8-24.6 43-20.2 40.3-21.3 42.4-22.7 43.2-2.1 1.1-3 .5-6.3-4.2A118.4 118.4 0 0 0 237.3 71a122.9 122.9 0 0 0-76 2 73.7 73.7 0 0 0-14.9 6.9c-13.8 7-29.8 21.3-39.1 35-3.3 4.8-5.2 5.6-7.4 3.1L78.4 75.7c-22.4-44.9-22-44-24.6-43"},null,-1)),wX=[kX];function SX(e,t){return o.openBlock(),o.createElementBlock("svg",bX,wX)}const Gh=B(_X,[["render",SX],["__scopeId","data-v-b519ac08"]]);const xX={},CX=e=>(o.pushScopeId("data-v-f1928c9e"),e=e(),o.popScopeId(),e),EX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 470.8"},TX=CX(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M60.6 11c-.5.8-.6 17.6-.5 157l.1 156 1 .8c1.5 1.3 278.4 1.2 279.6 0 1.3-1.3 1.2.8 1.1-81.1l-.1-78.6-1.3-1.1c-1-.9-4.5-2.2-16-6-38.4-12.5-36.7-12-38-10.7-.7.7-.7 5.1-.9 64.4l-.2 63.7-.9 2.2c-3.9 9.5-11 14-23.1 14.3-12.4.3-20-3.6-24.3-12.3-2.4-4.8-2.3-1.4-2.3-95v-87l-1-1.1c-1.2-1.4 1-.6-31.6-12.6a552 552 0 0 0-25.5-9.1c-2.5 0-2.3-8.5-2.3 98.8 0 60.3-.2 98.7-.4 100.8-2.7 23.7-41.9 26.6-49.7 3.6l-.9-2.6-.2-120.9-.2-120.9-1-1c-.7-.6-5-2.5-12.6-5.3C59.9 8.6 61.7 9.2 60.6 10.9m.9 356.3c-2.6.5-3 1.8-3 7.7-.1 12.3-5.7 18.7-24.6 28.2-11.4 5.6-16.6 10.9-19.3 19.3a86 86 0 0 0-.9 19.5l-.2 17.3 1 1 1 1h368.1l1-1c.7-.6 1-1.6 1.2-3.2.4-3.3 0-28.3-.6-31.4-1.9-10.7-8-17.3-22-23.4-17.3-7.6-21.8-13.2-22.6-28.5-.3-4.5-.4-5-1.3-5.8l-1-.9H200.7c-75.7 0-138.4 0-139.2.2"},null,-1)),OX=[TX];function MX(e,t){return o.openBlock(),o.createElementBlock("svg",EX,OX)}const Xh=B(xX,[["render",MX],["__scopeId","data-v-f1928c9e"]]);const NX={},DX=e=>(o.pushScopeId("data-v-b1448e85"),e=e(),o.popScopeId(),e),PX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 459.4"},AX=DX(()=>o.createElementVNode("path",{d:"M175.3 29.5c-1.7.3-.9 1.5 6.1 8.9A57.6 57.6 0 0 1 200 82.6a63.5 63.5 0 0 1-5 25.1 63.5 63.5 0 0 1-23 27.5c-4.6 2.7-6.3 2-14.8-6.2-7.9-7.7-8-7.8-11.1-6.2-2.6 1.3-14.6 12-20.5 18.2l-9.6 10a349.5 349.5 0 0 0-35.5 43.8c-3.1 4.6-6 9.1-9.3 15.2a753 753 0 0 1-5.2 9.2c-.9 1.4-2 3.7-2.4 5-.4 1.2-1.3 3.2-2 4.4l-2.2 4.8a52 52 0 0 1-1.8 4.2c-.4.8-1.3 3.2-2 5.4l-2.2 6c-.5 1-1.3 3.8-1.8 6l-2 7.7a62 62 0 0 0-1.8 8c-3.2 23.5-3 26.6 1.7 31A154.6 154.6 0 0 0 73 318a254 254 0 0 0 33.9 16.2c2.4 1.3 12.6 4.6 19 6.3 3.6 1 7.4 2 8.4 2.4l7.4 1.6c3 .5 7.5 1.4 9.8 2 2.7.6 7.5 1.3 13.2 1.8 5 .4 11.5 1 14.6 1.4 3.8.4 9.7.6 18.6.6 18.5 0 19.9 1.2 13.7 11.9a86.4 86.4 0 0 1-50.1 39.8c-1.4.6-4.1 1.4-6 2-1.9.4-5.2 1.3-7.4 2-2.2.6-6.3 1.4-9.2 1.7-6 .7-10 1.5-10.7 2.2-1.3 1.2 2.5 4 7 5.1l8.3 2.3c2.8.8 6.8 1.7 9 2l15.8 2.6c6.9 1.3 29.5 2 39.8 1.2 6.5-.4 8-.6 18.2-2.4l8.3-1.4c2-.3 5.7-1.2 8-2 2.4-.7 5.4-1.6 6.7-1.8 1.3-.3 3.8-1 5.6-1.8l6-2.2c1.5-.5 3.7-1.3 4.7-1.9l4.2-1.8a228 228 0 0 0 22-11.7c20.9-13.4 40-38.5 44.7-58.8l1.8-6c1.7-4.9 1.9-5.8 2.6-13.2a116.3 116.3 0 0 0-10.4-71l-1.4-2.7c-.4-1-2.5-4.5-6-9.7-4.3-6.6-7.5-7.3-10-2.3-3.1 6.1-15.8 20.3-23.2 25.8a81.5 81.5 0 0 1-71.1 13.4l-6.3-2.3a93 93 0 0 1-38.7-30.1c-4-5.7-4-7.3-.4-12.8a82.1 82.1 0 0 1 38.7-30.2c17-7.5 42.3-7.4 57.2.3 8.8 4.5 10.9 2.5 9.2-9.2-.3-2.2-.6-6.5-.6-9.6a129 129 0 0 0-4.6-34.6 75.6 75.6 0 0 0-3.6-13.8c-4.5-17-18-42.2-32-59.6a193.3 193.3 0 0 0-27.5-25.9 82.1 82.1 0 0 0-18-10.3c-3-1.8-14.6-4.6-17-4.1"},null,-1)),IX=[AX];function LX(e,t){return o.openBlock(),o.createElementBlock("svg",PX,IX)}const Kh=B(NX,[["render",LX],["__scopeId","data-v-b1448e85"]]);const RX={},BX=e=>(o.pushScopeId("data-v-e5501fa0"),e=e(),o.popScopeId(),e),VX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},$X=BX(()=>o.createElementVNode("path",{d:"M9.51 16.698 2.244 9.18 1 11.478l6.226 6.264 2.283-1.044ZM6.189 6.676 4.943 5.423 7.02 3.335l1.245 1.253L6.19 6.676ZM9.302 14.61 4.113 9.39l.83-1.044H6.19l3.736-3.55V3.545L10.962 2.5l4.981.626.415 4.803-.83.835-1.453.209-.83 1.043 1.453 1.253.83-.835 1.453.626-4.15 4.176L12 13.775l.83-.835-1.453-1.462-1.037 1.253v1.252l-1.038.627ZM20.924 21.5l-6.018-6.473 1.66-1.67L23 19.412 20.924 21.5Z"},null,-1)),FX=[$X];function zX(e,t){return o.openBlock(),o.createElementBlock("svg",VX,FX)}const Jh=B(RX,[["render",zX],["__scopeId","data-v-e5501fa0"]]),jX={...mu,expanded:{type:Boolean,required:!1,default:!1}},HX=e=>(o.pushScopeId("data-v-d94431f7"),e=e(),o.popScopeId(),e),WX={class:"content logo no-scrollbar"},UX={class:"nav-item"},YX={class:"nav-icon-wrapper"},qX={class:"nav-text"},GX=["href"],XX={class:"nav-icon-wrapper"},KX={class:"nav-text"},JX={class:"profile content"},ZX={class:"nav-item"},QX={class:"nav-icon-wrapper"},eK=HX(()=>o.createElementVNode("div",{class:"nav-text"},"Open Cards",-1)),tK={class:"nav-item"},nK={class:"nav-icon-wrapper"},rK={class:"nav-text settings"},aK={class:"nav-item"},iK={class:"nav-icon-wrapper"},sK={class:"nav-text"},oK={class:"nav-item"},lK={class:"nav-icon-wrapper"},cK={class:"nav-text name"},uK={class:"nav-item"},dK={class:"nav-icon-wrapper"},fK={class:"nav-text settings"},pK={href:"/test",class:"nav-item"},hK={class:"nav-icon-wrapper"},mK={class:"nav-text sign-in-container"},gK={class:"fancy-button"},vK=o.defineComponent({__name:"NavigationSide",props:jX,setup(e){const t=e,{t:n}=re(),r=o.ref(),a=o.ref();let i;o.onMounted(()=>{var l;i=new ResizeObserver(s),r.value&&i.observe(r.value),(l=a.value)==null||l.addEventListener("scroll",s),s()}),o.onUnmounted(()=>{var l;i.disconnect(),(l=a.value)==null||l.removeEventListener("scroll",s)});function s(){var u,d;let l=!1,c=!1;a.value&&(a.value.clientHeight<a.value.scrollHeight&&(l=a.value.scrollTop>0,c=a.value.scrollTop<a.value.scrollHeight-a.value.clientHeight),(u=a.value)==null||u.classList.toggle("scrollable-up",l),(d=a.value)==null||d.classList.toggle("scrollable-down",c))}return(l,c)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"navigationSide",ref:r,class:o.normalizeClass(["navigation-side",t.expanded?"expanded":""])},[o.createElementVNode("div",WX,[o.createElementVNode("div",UX,[o.createElementVNode("div",YX,[o.createVNode(zi,{"logo-type":"logo-only"})]),o.createElementVNode("div",qX,[o.createVNode(zi,{"logo-type":"text-only"})])])]),o.createElementVNode("div",{ref_key:"navigationPages",ref:a,class:"pages content no-scrollbar"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.items,u=>(o.openBlock(),o.createElementBlock("a",{key:u.routerLocation,href:u.routerLocation,class:o.normalizeClass(["nav-item",u.highlighted?"highlight":""])},[o.createElementVNode("div",XX,[o.createVNode(o.unref(nt),{class:"nav-icon",icon:u.faIcon},null,8,["icon"])]),o.createElementVNode("div",KX,o.toDisplayString(u.text),1)],10,GX))),128))],512),o.createElementVNode("div",JX,[t.isLoggedIn?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",ZX,[o.createElementVNode("div",QX,[o.createVNode(o.unref(nt),{class:"nav-icon",icon:"gift"})]),eK]),o.createElementVNode("div",tK,[o.createElementVNode("div",nK,[o.createVNode(o.unref(nt),{class:"nav-icon",icon:"cog"})]),o.createElementVNode("div",rK,[o.createElementVNode("div",null,o.toDisplayString(o.unref(n)("general.settings")),1),o.createVNode(o.unref(nt),{class:"icon",icon:"language"})])]),o.createElementVNode("div",aK,[o.createElementVNode("div",iK,[o.createVNode(o.unref(nt),{class:"nav-icon",icon:"rotate-right"})]),o.createElementVNode("div",sK,o.toDisplayString(o.unref(n)("general.syncUserData")),1)]),o.createElementVNode("div",oK,[o.createElementVNode("div",lK,[o.createVNode(da,{"card-code-prop":t.iconCard??"05BC160","ignore-card-item":!0,"color-override":t.bannerColor},null,8,["card-code-prop","color-override"])]),o.createElementVNode("div",cK,o.toDisplayString(t.name),1)])],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",uK,[o.createElementVNode("div",dK,[o.createVNode(o.unref(nt),{class:"nav-icon",icon:"cog"})]),o.createElementVNode("div",fK,[o.createElementVNode("div",null,o.toDisplayString(o.unref(n)("general.settings")),1),o.createVNode(o.unref(nt),{class:"icon",icon:"language"})])]),o.createElementVNode("a",pK,[o.createElementVNode("div",hK,[o.createVNode(o.unref(nt),{class:"nav-icon",icon:"arrow-right-to-bracket"})]),o.createElementVNode("div",mK,[o.createElementVNode("div",gK,o.toDisplayString(o.unref(n)("general.signIn")),1)])])],64))])],2))}});const Zh=B(vK,[["__scopeId","data-v-d94431f7"]]),_K=o.defineComponent({__name:"NavigationTopMobile",props:mu,setup(e){const t=e,n=o.ref(!1),r=o.ref(!1),a=o.ref(),i=o.ref();window.addEventListener("click",s);function s(u){var d;n.value&&(n.value=!!((d=i.value)!=null&&d.contains(u.target)))}function l(){o.nextTick(()=>{n.value=!0,o.nextTick(()=>{var u,d;(d=(u=a.value)==null?void 0:u.$el.querySelector("input"))==null||d.focus()})})}function c(){r.value=!0}return o.onUnmounted(()=>{window.removeEventListener("click",s)}),(u,d)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"navigationTopMobile",ref:i,class:"navigation-top-mobile"},[n.value?(o.openBlock(),o.createBlock(Rc,{key:1,ref_key:"searchBar",ref:a,class:"search-bar"},null,512)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(nt),{class:"icon",icon:"bars",onClick:c}),o.createVNode(zi,{class:"logo-icon","logo-type":"text-only"}),o.createVNode(o.unref(nt),{class:"icon",icon:"search",onClick:o.withModifiers(l,["stop","prevent"])},null,8,["onClick"])],64)),o.createVNode(Hi,{"show-modal":r.value,"onUpdate:showModal":d[0]||(d[0]=f=>r.value=f)},{default:o.withCtx(()=>[o.createVNode(Zh,o.mergeProps({class:"navigation-side"},t,{expanded:!0}),null,16)]),_:1},8,["show-modal"])],512))}});const Qh=B(_K,[["__scopeId","data-v-00513f55"]]),yK={class:"navigation-top"},bK=o.defineComponent({__name:"NavigationTop",props:mu,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",yK,[o.createVNode(Ah,o.mergeProps({class:"navigation-top-desktop"},t),null,16),o.createVNode(Qh,o.mergeProps({class:"navigation-top-mobile"},t),null,16)]))}});const v3=B(bK,[["__scopeId","data-v-6df2641b"]]),kK={modelValue:{type:String,required:!0,default:!1}},wK=["value"],SK=o.defineComponent({__name:"ColorPicker",props:kK,emits:["update:modelValue"],setup(e,{emit:t}){const n=e;function r(a){t("update:modelValue",a.target.value)}return(a,i)=>(o.openBlock(),o.createElementBlock("input",{type:"color",value:n.modelValue,onInput:r},null,40,wK))}});const _3=B(SK,[["__scopeId","data-v-5ebbd7eb"]]),xK={rows:{type:Array,required:!0,default:[]},selectedRegion:{type:String,required:!0,default:"americas"}},CK={class:"multiselect-wrapper"},EK=o.defineComponent({__name:"DashboardLeaderboardTable",props:xK,emits:["update:selectedRegion"],setup(e,{emit:t}){const n=e,{t:r}=re(),a=o.ref(n.selectedRegion),i=[{title:r("general.leaderboard"),id:"leaderboard"}];return o.watch(a,s=>{t("update:selectedRegion",s)}),(s,l)=>(o.openBlock(),o.createBlock(ti,{class:"small-table","heading-items":o.unref(i)},{heading:o.withCtx(()=>[o.createElementVNode("div",CK,[o.createVNode(o.unref(Bt),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),class:"multiselect",placeholder:o.unref(r)("general.server"),options:o.unref(Ce)().dataJson.servers,"can-clear":!1,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"])])]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.rows,(c,u)=>(o.openBlock(),o.createBlock(Uh,{id:c.id,key:c.id,change:c.change,lp:c.lp,name:c.name,rank:c.rank,"selected-banner-card":c.selectedBannerCard,matches:c.matches,index:u+2},null,8,["id","change","lp","name","rank","selected-banner-card","matches","index"]))),128))]),_:1},8,["heading-items"]))}});const y3=B(EK,[["__scopeId","data-v-fe0f916c"]]),TK={archetypeId:{type:Number,required:!0,default:1},deckcode:{type:String,required:!0,default:""},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},playrate:{type:Number,required:!0,default:1},regions:{type:Array,required:!0,default:[]},cards:{type:Array,required:!0,default:[]}},OK=e=>(o.pushScopeId("data-v-403b89f6"),e=e(),o.popScopeId(),e),MK={href:"/test",class:"wrapper"},NK={class:"table-card-row-background-wrapper"},DK={class:"table-card-row-background"},PK=OK(()=>o.createElementVNode("div",{class:"background-card"},null,-1)),AK=[PK],IK={class:"archetypes-row wrapper"},LK={class:"column-content"},RK={class:"column-content"},BK=o.defineComponent({__name:"ArchetypesRow",props:TK,setup(e){const t=e,n=o.computed(()=>Et(t.deckcode)),r=o.computed(()=>cn(n.value)),a=o.computed(()=>t.cards.map(i=>`https://lor.gg/storage/cards/banner/${i}.png`));return(i,s)=>(o.openBlock(),o.createElementBlock("a",MK,[o.createElementVNode("div",{class:"archetypes-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",NK,[o.createElementVNode("div",DK,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),l=>(o.openBlock(),o.createElementBlock("div",{key:l,class:"background-card-wrapper",style:o.normalizeStyle({"--background-image":`url(${l})`})},AK,4))),128))])]),o.createElementVNode("div",IK,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:s[0]||(s[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(oa,{"deck-code":t.deckcode,deck:o.unref(n),cards:o.unref(r)},null,8,["deck-code","deck","cards"])]),o.createElementVNode("div",LK,o.toDisplayString(o.unref(Me)(t.matches)),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,2,3)+"%"),5),o.createElementVNode("div",RK,o.toDisplayString(o.unref(Me)(t.playrate,2,3)+"%"),1)])],4)]))}});const em=B(BK,[["__scopeId","data-v-403b89f6"]]),VK={archetypeRows:{type:Array,required:!0,default:[]}},$K=o.defineComponent({__name:"ArchetypesTable",props:VK,setup(e){const t=e,{t:n}=re(),r=o.ref([{id:"deck",isShown:!0,sortDirection:_e.NOT_SORTABLE,title:n("general.deck")},{id:"matches",isShown:!0,sortDirection:_e.DOWN,title:n("general.matches")},{id:"winrate",isShown:!0,sortDirection:_e.NEITHER,title:n("general.winrate")},{id:"playrate",isShown:!0,sortDirection:_e.NEITHER,title:n("general.playrate")}]);function a(i){Wi(i,r)}return(i,s)=>(o.openBlock(),o.createBlock(ua,{class:"large-table","heading-items":r.value,onToggleSort:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.archetypeRows,(l,c)=>(o.openBlock(),o.createBlock(em,{key:l.deckcode,"archetype-id":l.archetypeId,cards:l.cards,deckcode:l.deckcode,index:c+2,matches:l.matches,playrate:l.playrate,regions:l.regions,wins:l.wins},null,8,["archetype-id","cards","deckcode","index","matches","playrate","regions","wins"]))),128))]),_:1},8,["heading-items"]))}});const b3=B($K,[["__scopeId","data-v-96361ab4"]]),FK={typeSummary:{type:Object,required:!0,default:{quantity:0,isError:!1,typeRef:"Champion"}}},zK={class:"number-container"},jK={key:0,class:"type-icon"},HK=o.defineComponent({__name:"DeckBuilderSummaryType",props:FK,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["deck-builder-summary-type",[t.typeSummary.isError?"error":"",t.typeSummary.typeRef==="Deck"?"deck":""]])},[o.createElementVNode("div",zK,o.toDisplayString(t.typeSummary.quantity),1),t.typeSummary.typeRef!=="Deck"?(o.openBlock(),o.createElementBlock("div",jK,[t.typeSummary.typeRef==="Champion"?(o.openBlock(),o.createBlock(Gh,{key:0})):t.typeSummary.typeRef==="Follower"?(o.openBlock(),o.createBlock(qh,{key:1})):t.typeSummary.typeRef==="Spell"?(o.openBlock(),o.createBlock(Kh,{key:2})):t.typeSummary.typeRef==="Landmark"?(o.openBlock(),o.createBlock(Xh,{key:3})):t.typeSummary.typeRef==="Equipment"?(o.openBlock(),o.createBlock(Jh,{key:4})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],2))}});const Vr=B(HK,[["__scopeId","data-v-2e6bb287"]]),WK={cards:{type:Array,required:!0,default:[]},deck:{type:Object,required:!0,default:{}}},UK={class:"deck-builder-summary"},YK=o.defineComponent({__name:"DeckBuilderSummary",props:WK,setup(e){const t=e;function n(u,d,f){const p=t.cards.filter(u).map(h=>t.deck[h.cardCode]).reduce((h,g)=>h+g,0);return{typeRef:f,quantity:p,isError:d(p)}}const r=o.computed(()=>n(u=>u.typeRef==="Unit"&&u.supertype==="Champion",u=>u>6,"Champion")),a=o.computed(()=>n(u=>u.typeRef==="Unit"&&u.supertype==="",()=>!1,"Follower")),i=o.computed(()=>n(u=>u.typeRef==="Spell",()=>!1,"Spell")),s=o.computed(()=>n(u=>u.typeRef==="Landmark",()=>!1,"Landmark")),l=o.computed(()=>n(u=>u.typeRef==="Equipment",()=>!1,"Equipment")),c=o.computed(()=>n(()=>!0,u=>u!==40,"Deck"));return(u,d)=>(o.openBlock(),o.createElementBlock("div",UK,[o.createVNode(Vr,{"type-summary":o.unref(r)},null,8,["type-summary"]),o.createVNode(Vr,{"type-summary":o.unref(a)},null,8,["type-summary"]),o.createVNode(Vr,{"type-summary":o.unref(i)},null,8,["type-summary"]),o.createVNode(Vr,{"type-summary":o.unref(s)},null,8,["type-summary"]),o.createVNode(Vr,{"type-summary":o.unref(l)},null,8,["type-summary"]),o.createVNode(Vr,{"type-summary":o.unref(c)},null,8,["type-summary"])]))}});const k3=B(YK,[["__scopeId","data-v-ec8f0fa9"]]),qK={rows:{type:Array,required:!0,default:[]}},GK=o.defineComponent({__name:"DashboardCardTable",props:qK,setup(e){const t=e,{t:n}=re(),r=[{title:n("general.cards"),id:"cards"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,i)=>(o.openBlock(),o.createBlock(ti,{class:"small-table","heading-items":o.unref(r)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.rows,s=>(o.openBlock(),o.createBlock(Wh,{key:s.cardCode,"card-code":s.cardCode,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["card-code","matches","wins","index"]))),128))]),_:1},8,["heading-items"]))}});const w3=B(GK,[["__scopeId","data-v-e5817be3"]]),XK={modelValue:{type:Number,required:!0,default:5}},KK=["value"],JK=o.defineComponent({__name:"ZoomSlider",props:XK,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=o.ref(),a=o.ref();function i(s){t("update:modelValue",Number.parseInt(s.target.value))}return o.onMounted(()=>{st(r.value,{content:a.value,arrow:!0,interactive:!0,trigger:"mouseenter click",interactiveBorder:10})}),(s,l)=>{const c=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",{ref_key:"button",ref:r,class:"circle-button"},[o.createVNode(c,{icon:"search-plus",class:"zoom-button"})],512),o.createElementVNode("div",{ref_key:"slider",ref:a,class:"slider-wrapper"},[o.createElementVNode("input",{type:"range",min:"1",max:"10",class:"slider",value:n.modelValue,onInput:i},null,40,KK)],512)])}}});const S3=B(JK,[["__scopeId","data-v-bac83f78"]]),ZK={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0}},gu=e=>(o.pushScopeId("data-v-7a77ebe8"),e=e(),o.popScopeId(),e),QK={class:"card-overview"},eJ={class:"overview-top"},tJ={class:"card-name"},nJ={class:"card-tags-container"},rJ={class:"card-tags"},aJ={class:"card-tag"},iJ={class:"card-tag-text"},sJ={class:"card-tag"},oJ={class:"card-tag-text"},lJ={class:"card-tag"},cJ={class:"card-tag-text"},uJ={class:"card-tag"},dJ={class:"card-tag-text"},fJ=gu(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),pJ={class:"card-text"},hJ=gu(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),mJ={class:"keyword-description"},gJ={class:"keyword-name"},vJ=gu(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),_J={class:"flavor-text"},yJ=gu(()=>o.createElementVNode("div",{class:"card-art-section"},[o.createElementVNode("div",{class:"card-art-button primary-button"},"Card Art")],-1)),bJ=o.defineComponent({__name:"CardOverview",props:ZK,setup(e){const t=e,n=_o(t.cardProp,t.cardCodeProp,!0),r=o.computed(()=>{if(n.value===void 0)return[];const c=[];for(const u of n.value.keywordRefs){const d=Ce().dataJson.keywords.find(f=>f.nameRef===u);d&&c.push(d)}return c}),a=o.computed(()=>{if(n.value===void 0)return null;const c=Ce().dataJson;return Zs(n.value.regionRefs[0])?c.runeterraChampions.find(u=>u.nameRef===n.value.regionRefs[0])??c.regions[0]:c.regions.find(u=>u.nameRef===n.value.regionRefs[0])??c.regions[0]}),i=o.computed(()=>n.value===void 0?null:Ce().dataJson.rarities.find(c=>c.nameRef===n.value.rarityRef)??Ce().dataJson.rarities[0]),s=o.computed(()=>n.value===void 0?null:Ce().dataJson.types.find(c=>c.nameRef===n.value.typeRef)??Ce().dataJson.types[0]),l=o.computed(()=>n.value===void 0?null:Ce().dataJson.sets.find(c=>c.nameRef===n.value.set)??Ce().dataJson.sets[0]);return(c,u)=>{var f,p,h,g,v,b,m,_;const d=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("div",QK,[o.unref(n)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",eJ,[o.createElementVNode("div",tJ,o.toDisplayString(o.unref(n).name),1),o.createVNode(d,{icon:"times",class:"close-icon"})]),o.createElementVNode("div",nJ,[o.createElementVNode("div",rJ,[o.createElementVNode("div",aJ,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((f=o.unref(a))==null?void 0:f.icon)??""})`})},null,4),o.createElementVNode("div",iJ,o.toDisplayString((p=o.unref(a))==null?void 0:p.name),1)]),o.createElementVNode("div",sJ,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((h=o.unref(i))==null?void 0:h.icon)??""})`})},null,4),o.createElementVNode("div",oJ,o.toDisplayString((g=o.unref(i))==null?void 0:g.name),1)]),o.createElementVNode("div",lJ,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((v=o.unref(s))==null?void 0:v.icon)??""})`})},null,4),o.createElementVNode("div",cJ,o.toDisplayString((b=o.unref(s))==null?void 0:b.name),1)]),o.createElementVNode("div",uJ,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((m=o.unref(l))==null?void 0:m.icon)??""})`})},null,4),o.createElementVNode("div",dJ,o.toDisplayString((_=o.unref(l))==null?void 0:_.name),1)])])]),fJ,o.createElementVNode("div",pJ,o.toDisplayString(o.unref(n).descriptionRaw),1),hJ,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r),k=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:k.nameRef},[o.createElementVNode("div",mJ,[o.createElementVNode("b",gJ,o.toDisplayString(k.name+" - "),1),o.createElementVNode("span",null,o.toDisplayString(k.description),1)]),vJ],64))),128)),o.createElementVNode("div",_J,o.toDisplayString(o.unref(n).flavorText),1),yJ],64)):o.createCommentVNode("",!0)])}}});const x3=B(bJ,[["__scopeId","data-v-7a77ebe8"]]),kJ={gameType:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1}},wJ={class:"profile-game-type-winrate"},SJ={class:"game-type"},xJ=o.defineComponent({__name:"ProfileGameTypeWinrate",props:kJ,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",wJ,[o.createElementVNode("div",SJ,o.toDisplayString(t.gameType),1),o.createVNode(Hh,{matches:t.matches,wins:t.wins},null,8,["matches","wins"])]))}});const C3=B(xJ,[["__scopeId","data-v-1bb3c9de"]]),CJ={deckRows:{type:Array,required:!0,default:[]}},EJ=o.defineComponent({__name:"DecksTable",props:CJ,setup(e){const t=e,{t:n}=re(),r=o.ref([{id:"deck",isShown:!0,sortDirection:_e.NOT_SORTABLE,title:n("general.deck")},{id:"matches",isShown:!0,sortDirection:_e.DOWN,title:n("general.matches")},{id:"winrate",isShown:!0,sortDirection:_e.NEITHER,title:n("general.winrate")},{id:"manaCurve",isShown:!0,sortDirection:_e.NOT_SORTABLE,title:n("general.manaCurve")},{id:"cost",isShown:!0,sortDirection:_e.NOT_SORTABLE,title:n("general.cost")}]);function a(i){Wi(i,r)}return(i,s)=>(o.openBlock(),o.createBlock(ua,{class:"large-table","heading-items":r.value,onToggleSort:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.deckRows,(l,c)=>(o.openBlock(),o.createBlock(Ho,{key:l.deckCode,type:"data",deckcode:l.deckCode,matches:l.matches,wins:l.wins,index:c+2},null,8,["deckcode","matches","wins","index"]))),128))]),_:1},8,["heading-items"]))}});const E3=B(EJ,[["__scopeId","data-v-4810f8e3"]]),TJ={format:{type:String,required:!0,default:"client_Formats_Standard_name"}},OJ={class:"format-tag-container"},MJ=o.defineComponent({__name:"FormatTag",props:TJ,setup(e){const t=e,n=o.ref(null),r=o.ref(null),a=o.computed(()=>Ce().dataJson.formats.find(i=>i.nameRef===t.format));return o.onMounted(()=>{st(n.value,{content:r.value,arrow:!0})}),(i,s)=>{var l,c,u;return o.openBlock(),o.createElementBlock("div",OJ,[o.createElementVNode("div",{ref_key:"formatTag",ref:n,class:"format-tag",style:o.normalizeStyle({"--color":(l=o.unref(a))==null?void 0:l.color})},o.toDisplayString((c=o.unref(a))==null?void 0:c.abbreviation),5),o.createElementVNode("div",{ref_key:"formatTagTippy",ref:r},[o.createVNode(So,{text:(u=o.unref(a))==null?void 0:u.name},null,8,["text"])],512)])}}});const T3=B(MJ,[["__scopeId","data-v-694d889e"]]),NJ={install:async e=>{e.component("RevealCarousel",Qf),e.component("SearchBar",Rc),e.component("SocialLinks",tp),e.component("ModalItem",Hi),e.component("FilterSampleSize",bo),e.component("FilterRanks",q2),e.component("FilterManaCost",np),e.component("FilterRarities",rp),e.component("FilterSets",ap),e.component("FilterKeywords",ip),e.component("FilterServers",ko),e.component("FilterTime",wo),e.component("FilterCardCodes",op),e.component("FilterDecks",G2),e.component("FilterAdvanced",cp),e.component("FilterRegions",Vc),e.component("FilterCards",X2),e.component("AdvancedFilterItem",lp),e.component("FilterTypes",up),e.component("CopyMeComponent",K2),e.component("RegionsLine",dp),e.component("CardsTable",J2),e.component("DeckHighlightRegions",Co),e.component("GemsCost",hp),e.component("CardSliceItem",an),e.component("LanguageSelection",mp),e.component("DeckSidePanel",$b),e.component("DeckHighlight",oa),e.component("ArchetypeSidePanel",Fb),e.component("OpenInDeckBuilderButton",bh),e.component("CopyDeckButton",gh),e.component("UpdateDeckPrivacyButton",Sh),e.component("EditDeckNameButton",_h),e.component("UploadDeckToLorButton",Ch),e.component("DeleteDeckButton",vh),e.component("OpenArchetypePageButton",yh),e.component("SimulateMulliganButton",wh),e.component("SocialMediaLinks",zb),e.component("DecksRow",Ho),e.component("CardItemLinkWrapper",Hb),e.component("DeckHighlightCards",Eo),e.component("CheckboxItem",Wt),e.component("NavigationTopDesktop",Ah),e.component("SidePanelSectionPane",yt),e.component("CardSimilarCards",Wb),e.component("DashboardSignUp",Yb),e.component("MatchItem",qb),e.component("ToggleSwitch",Bc),e.component("LeaderboardTop10Region",Ih),e.component("ShareButton",Eh),e.component("LeaderboardDetailRow",Lh),e.component("DeckBlock",Gb),e.component("SmallTable",ti),e.component("LeaderboardTop",Xb),e.component("CardLottery",Kb),e.component("DashboardProfile",Jb),e.component("LeaderboardChart",Qb),e.component("CardQuantityBarChart",e3),e.component("WinsLossesBarChart",t3),e.component("RoundCardInfoBarChart",n3),e.component("LineChart",r3),e.component("ManaCurveChart",fu),e.component("WinrateDoughnutChart",Fh),e.component("InfoDoughnutChart",hc),e.component("BuiltDecksTable",a3),e.component("ProfileRegionTable",i3),e.component("ProfileArchetypeTable",s3),e.component("CardItem3d",$h),e.component("LeaderboardOptions",o3),e.component("SimilarDecksTable",l3),e.component("LargeTable",ua),e.component("StatisticsPaneContainer",c3),e.component("ArchetypeSidePanelHighlight",$c),e.component("CardCarousel",u3),e.component("DeckButtons",Th),e.component("WinsLossesLine",Hh),e.component("DashboardCardRow",Wh),e.component("CardTogglePage",d3),e.component("TestComponent",f3),e.component("DashboardLeaderboardRow",Uh),e.component("DeckPreview",Oh),e.component("CheckboxItemManaCost",nc),e.component("RevealDayOptions",p3),e.component("DeckDifferenceItem",Mh),e.component("DashboardNewCards",h3),e.component("CardsRow",fp),e.component("LeaderboardDetailTable",m3),e.component("DeckIcon",g3),e.component("LogoIcon",zi),e.component("FollowerIcon",qh),e.component("ChampionIcon",Gh),e.component("EternalIcon",Rh),e.component("InfoIcon",Dh),e.component("LandmarkIcon",Xh),e.component("ManaHexagonIcon",yo),e.component("RuneterraIcon",xh),e.component("ShardsIcon",pp),e.component("StandardIcon",Bh),e.component("SpellIcon",Kh),e.component("GauntletIcon",Vh),e.component("EquipmentIcon",Jh),e.component("NavigationTop",v3),e.component("CardMultiselect",sp),e.component("ProfileDropdown",Ph),e.component("ColorPicker",_3),e.component("DashboardLeaderboardTable",y3),e.component("NavigationSide",Zh),e.component("ArchetypesTable",b3),e.component("DeckBuilderSummary",k3),e.component("DeckBuilderSummaryType",Vr),e.component("DashboardCardTable",w3),e.component("ArchetypesRow",em),e.component("RevealDayOption",Yh),e.component("DeckHighlightEye",hu),e.component("DeckDifferences",Nh),e.component("ZoomSlider",S3),e.component("CardOverview",x3),e.component("CircleCardItem",da),e.component("ProfileGameTypeWinrate",C3),e.component("DecksTable",E3),e.component("RegionItem",xo),e.component("TippyText",So),e.component("FormatTag",T3),e.component("ProfileRegionRow",zh),e.component("SimulateMulligan",kh),e.component("DeckSummary",pu),e.component("NavigationTopMobile",Qh),e.component("CardItem",Sr),e.component("ProfileArchetypeRow",jh),e.component("FontAwesomeIcon",nt),e.component("Multiselect",Bt)}};exports.AdvancedFilterItem=lp;exports.ArchetypeSidePanel=Fb;exports.ArchetypeSidePanelHighlight=$c;exports.ArchetypesRow=em;exports.ArchetypesTable=b3;exports.BuiltDecksTable=a3;exports.CardCarousel=u3;exports.CardItem=Sr;exports.CardItem3d=$h;exports.CardItemLinkWrapper=Hb;exports.CardLottery=Kb;exports.CardMultiselect=sp;exports.CardOverview=x3;exports.CardQuantityBarChart=e3;exports.CardSimilarCards=Wb;exports.CardSliceItem=an;exports.CardTogglePage=d3;exports.CardsRow=fp;exports.CardsTable=J2;exports.ChampionIcon=Gh;exports.CheckboxItem=Wt;exports.CheckboxItemManaCost=nc;exports.CircleCardItem=da;exports.ColorPicker=_3;exports.CopyDeckButton=gh;exports.CopyMeComponent=K2;exports.DashboardCardRow=Wh;exports.DashboardCardTable=w3;exports.DashboardLeaderboardRow=Uh;exports.DashboardLeaderboardTable=y3;exports.DashboardNewCards=h3;exports.DashboardProfile=Jb;exports.DashboardSignUp=Yb;exports.DeckBlock=Gb;exports.DeckBuilderSummary=k3;exports.DeckBuilderSummaryType=Vr;exports.DeckButtons=Th;exports.DeckDifferenceItem=Mh;exports.DeckDifferences=Nh;exports.DeckHighlight=oa;exports.DeckHighlightCards=Eo;exports.DeckHighlightEye=hu;exports.DeckHighlightRegions=Co;exports.DeckIcon=g3;exports.DeckPreview=Oh;exports.DeckSidePanel=$b;exports.DeckSummary=pu;exports.DecksRow=Ho;exports.DecksTable=E3;exports.DeleteDeckButton=vh;exports.EditDeckNameButton=_h;exports.EquipmentIcon=Jh;exports.EternalIcon=Rh;exports.FilterAdvanced=cp;exports.FilterCardCodes=op;exports.FilterCards=X2;exports.FilterDecks=G2;exports.FilterKeywords=ip;exports.FilterManaCost=np;exports.FilterRanks=q2;exports.FilterRarities=rp;exports.FilterRegions=Vc;exports.FilterSampleSize=bo;exports.FilterServers=ko;exports.FilterSets=ap;exports.FilterTime=wo;exports.FilterTypes=up;exports.FollowerIcon=qh;exports.FormatTag=T3;exports.GauntletIcon=Vh;exports.GemsCost=hp;exports.InfoDoughnutChart=hc;exports.InfoIcon=Dh;exports.LandmarkIcon=Xh;exports.LanguageSelection=mp;exports.LargeTable=ua;exports.LeaderboardChart=Qb;exports.LeaderboardDetailRow=Lh;exports.LeaderboardDetailTable=m3;exports.LeaderboardOptions=o3;exports.LeaderboardTop=Xb;exports.LeaderboardTop10Region=Ih;exports.LineChart=r3;exports.LogoIcon=zi;exports.ManaCurveChart=fu;exports.ManaHexagonIcon=yo;exports.MatchItem=qb;exports.ModalItem=Hi;exports.NavigationSide=Zh;exports.NavigationTop=v3;exports.NavigationTopDesktop=Ah;exports.NavigationTopMobile=Qh;exports.OpenArchetypePageButton=yh;exports.OpenInDeckBuilderButton=bh;exports.ProfileArchetypeRow=jh;exports.ProfileArchetypeTable=s3;exports.ProfileDropdown=Ph;exports.ProfileGameTypeWinrate=C3;exports.ProfileRegionRow=zh;exports.ProfileRegionTable=i3;exports.RegionItem=xo;exports.RegionsLine=dp;exports.RevealCarousel=Qf;exports.RevealDayOption=Yh;exports.RevealDayOptions=p3;exports.RoundCardInfoBarChart=n3;exports.RuneterraIcon=xh;exports.SearchBar=Rc;exports.ShardsIcon=pp;exports.ShareButton=Eh;exports.SidePanelSectionPane=yt;exports.SimilarDecksTable=l3;exports.SimulateMulligan=kh;exports.SimulateMulliganButton=wh;exports.SmallTable=ti;exports.SocialLinks=tp;exports.SocialMediaLinks=zb;exports.SpellIcon=Kh;exports.StandardIcon=Bh;exports.StatisticsPaneContainer=c3;exports.TestComponent=f3;exports.TippyText=So;exports.ToggleSwitch=Bc;exports.UpdateDeckPrivacyButton=Sh;exports.UploadDeckToLorButton=Ch;exports.WinrateDoughnutChart=Fh;exports.WinsLossesBarChart=t3;exports.WinsLossesLine=Hh;exports.ZoomSlider=S3;exports.default=NJ;exports.importIcons=R8;exports.setupi18n=q5;exports.useCardJsonObjectStore=Dt;exports.useCardJsonStore=Hf;exports.useDataJsonStore=Ce;