@baton8/general-components 1.0.0

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 (442) hide show
  1. package/.babelrc.json +16 -0
  2. package/.eslintrc.json +11 -0
  3. package/.github/workflows/chromatic.yml +43 -0
  4. package/.github/workflows/doc.yml +53 -0
  5. package/.github/workflows/review.yml +18 -0
  6. package/README.md +11 -0
  7. package/dist/components/atoms/asyncSelect/asyncSelect.d.ts +67 -0
  8. package/dist/components/atoms/asyncSelect/asyncSelect.stories.d.ts +6 -0
  9. package/dist/components/atoms/asyncSelect/asyncSelectOption.d.ts +26 -0
  10. package/dist/components/atoms/asyncSelect/index.d.ts +2 -0
  11. package/dist/components/atoms/avatar/avatar.d.ts +27 -0
  12. package/dist/components/atoms/avatar/avatar.stories.d.ts +7 -0
  13. package/dist/components/atoms/avatar/avatarFallbackIcon.d.ts +15 -0
  14. package/dist/components/atoms/avatar/avatarFallbackLetter.d.ts +20 -0
  15. package/dist/components/atoms/avatar/index.d.ts +3 -0
  16. package/dist/components/atoms/badge/badge.d.ts +34 -0
  17. package/dist/components/atoms/badge/badge.stories.d.ts +11 -0
  18. package/dist/components/atoms/badge/badgeIconContainer.d.ts +16 -0
  19. package/dist/components/atoms/badge/index.d.ts +2 -0
  20. package/dist/components/atoms/barMeter/barMeter.d.ts +45 -0
  21. package/dist/components/atoms/barMeter/barMeter.stories.d.ts +10 -0
  22. package/dist/components/atoms/barMeter/barMeterValue.d.ts +32 -0
  23. package/dist/components/atoms/barMeter/barMeterValue.stories.d.ts +7 -0
  24. package/dist/components/atoms/barMeter/barMeterValueIconContainer.d.ts +17 -0
  25. package/dist/components/atoms/barMeter/context.d.ts +8 -0
  26. package/dist/components/atoms/barMeter/index.d.ts +3 -0
  27. package/dist/components/atoms/barProgress/barProgress.d.ts +38 -0
  28. package/dist/components/atoms/barProgress/barProgress.stories.d.ts +8 -0
  29. package/dist/components/atoms/barProgress/index.d.ts +1 -0
  30. package/dist/components/atoms/button/button.d.ts +79 -0
  31. package/dist/components/atoms/button/button.stories.d.ts +13 -0
  32. package/dist/components/atoms/button/buttonIconContainer.d.ts +16 -0
  33. package/dist/components/atoms/button/hotkeyView.d.ts +6 -0
  34. package/dist/components/atoms/button/index.d.ts +2 -0
  35. package/dist/components/atoms/buttonLink/buttonLink.d.ts +83 -0
  36. package/dist/components/atoms/buttonLink/buttonLink.stories.d.ts +13 -0
  37. package/dist/components/atoms/buttonLink/buttonLinkIconContainer.d.ts +16 -0
  38. package/dist/components/atoms/buttonLink/index.d.ts +2 -0
  39. package/dist/components/atoms/checkableContainer/checkableContainer.d.ts +37 -0
  40. package/dist/components/atoms/checkableContainer/checkableContainer.stories.d.ts +9 -0
  41. package/dist/components/atoms/checkableContainer/checkableLabel.d.ts +29 -0
  42. package/dist/components/atoms/checkableContainer/checkableLabel.stories.d.ts +7 -0
  43. package/dist/components/atoms/checkableContainer/index.d.ts +2 -0
  44. package/dist/components/atoms/checkbox/checkbox.d.ts +56 -0
  45. package/dist/components/atoms/checkbox/checkbox.stories.d.ts +15 -0
  46. package/dist/components/atoms/checkbox/index.d.ts +1 -0
  47. package/dist/components/atoms/controlContainer/controlContainer.d.ts +56 -0
  48. package/dist/components/atoms/controlContainer/controlContainer.stories.d.ts +13 -0
  49. package/dist/components/atoms/controlContainer/controlErrorMessage.d.ts +20 -0
  50. package/dist/components/atoms/controlContainer/controlErrorMessage.stories.d.ts +7 -0
  51. package/dist/components/atoms/controlContainer/controlHelper.d.ts +20 -0
  52. package/dist/components/atoms/controlContainer/controlHelper.stories.d.ts +7 -0
  53. package/dist/components/atoms/controlContainer/controlLabel.d.ts +20 -0
  54. package/dist/components/atoms/controlContainer/controlLabel.stories.d.ts +7 -0
  55. package/dist/components/atoms/controlContainer/index.d.ts +4 -0
  56. package/dist/components/atoms/divider/divider.d.ts +15 -0
  57. package/dist/components/atoms/divider/divider.stories.d.ts +8 -0
  58. package/dist/components/atoms/divider/index.d.ts +1 -0
  59. package/dist/components/atoms/fileInput/fileInput.d.ts +57 -0
  60. package/dist/components/atoms/fileInput/fileInput.stories.d.ts +10 -0
  61. package/dist/components/atoms/fileInput/index.d.ts +1 -0
  62. package/dist/components/atoms/generalIcon/generalIcon.d.ts +58 -0
  63. package/dist/components/atoms/generalIcon/generalIcon.stories.d.ts +7 -0
  64. package/dist/components/atoms/generalIcon/index.d.ts +1 -0
  65. package/dist/components/atoms/heading/heading.d.ts +21 -0
  66. package/dist/components/atoms/heading/heading.stories.d.ts +7 -0
  67. package/dist/components/atoms/heading/index.d.ts +1 -0
  68. package/dist/components/atoms/icon/icon.d.ts +28 -0
  69. package/dist/components/atoms/icon/icon.stories.d.ts +7 -0
  70. package/dist/components/atoms/icon/iconData.d.ts +33 -0
  71. package/dist/components/atoms/icon/iconDefinitions.d.ts +8 -0
  72. package/dist/components/atoms/icon/index.d.ts +1 -0
  73. package/dist/components/atoms/iconButton/iconButton.d.ts +71 -0
  74. package/dist/components/atoms/iconButton/iconButton.stories.d.ts +11 -0
  75. package/dist/components/atoms/iconButton/index.d.ts +1 -0
  76. package/dist/components/atoms/input/index.d.ts +3 -0
  77. package/dist/components/atoms/input/input.d.ts +80 -0
  78. package/dist/components/atoms/input/input.stories.d.ts +20 -0
  79. package/dist/components/atoms/input/inputLeftAddon.d.ts +16 -0
  80. package/dist/components/atoms/input/inputRightAddon.d.ts +16 -0
  81. package/dist/components/atoms/link/index.d.ts +2 -0
  82. package/dist/components/atoms/link/link.d.ts +79 -0
  83. package/dist/components/atoms/link/link.stories.d.ts +8 -0
  84. package/dist/components/atoms/link/linkIconContainer.d.ts +16 -0
  85. package/dist/components/atoms/loadingIcon/index.d.ts +1 -0
  86. package/dist/components/atoms/loadingIcon/loadingIcon.d.ts +20 -0
  87. package/dist/components/atoms/loadingIcon/loadingIcon.stories.d.ts +7 -0
  88. package/dist/components/atoms/modal/index.d.ts +1 -0
  89. package/dist/components/atoms/modal/modal.d.ts +27 -0
  90. package/dist/components/atoms/modal/modal.stories.d.ts +7 -0
  91. package/dist/components/atoms/multiLineText/index.d.ts +1 -0
  92. package/dist/components/atoms/multiLineText/multiLineText.d.ts +49 -0
  93. package/dist/components/atoms/multiLineText/multiLineText.stories.d.ts +9 -0
  94. package/dist/components/atoms/numberInput/index.d.ts +2 -0
  95. package/dist/components/atoms/numberInput/numberInput.d.ts +58 -0
  96. package/dist/components/atoms/numberInput/numberInput.stories.d.ts +10 -0
  97. package/dist/components/atoms/numberInput/numberInputLeftAddon.d.ts +15 -0
  98. package/dist/components/atoms/passwordInput/index.d.ts +3 -0
  99. package/dist/components/atoms/passwordInput/passwordInput.d.ts +60 -0
  100. package/dist/components/atoms/passwordInput/passwordInput.stories.d.ts +13 -0
  101. package/dist/components/atoms/passwordInput/passwordInputLeftAddon.d.ts +16 -0
  102. package/dist/components/atoms/passwordInput/passwordInputRightAddon.d.ts +16 -0
  103. package/dist/components/atoms/radio/index.d.ts +1 -0
  104. package/dist/components/atoms/radio/radio.d.ts +53 -0
  105. package/dist/components/atoms/radio/radio.stories.d.ts +13 -0
  106. package/dist/components/atoms/radioGroup/alignedRadioGroup.d.ts +15 -0
  107. package/dist/components/atoms/radioGroup/index.d.ts +2 -0
  108. package/dist/components/atoms/radioGroup/radioGroup.d.ts +15 -0
  109. package/dist/components/atoms/radioGroup/radioGroup.stories.d.ts +8 -0
  110. package/dist/components/atoms/root/index.d.ts +1 -0
  111. package/dist/components/atoms/root/root.d.ts +76 -0
  112. package/dist/components/atoms/root/root.stories.d.ts +7 -0
  113. package/dist/components/atoms/root/scrollGlobalStyle.d.ts +1 -0
  114. package/dist/components/atoms/root/svgDefinition.d.ts +8 -0
  115. package/dist/components/atoms/scroll/index.d.ts +1 -0
  116. package/dist/components/atoms/scroll/scroll.d.ts +31 -0
  117. package/dist/components/atoms/scroll/scroll.stories.d.ts +8 -0
  118. package/dist/components/atoms/secondaryHeading/index.d.ts +1 -0
  119. package/dist/components/atoms/secondaryHeading/secondaryHeading.d.ts +20 -0
  120. package/dist/components/atoms/secondaryHeading/secondaryHeading.stories.d.ts +7 -0
  121. package/dist/components/atoms/select/context.d.ts +10 -0
  122. package/dist/components/atoms/select/index.d.ts +7 -0
  123. package/dist/components/atoms/select/pageSizeSelect.d.ts +35 -0
  124. package/dist/components/atoms/select/pageSizeSelect.stories.d.ts +7 -0
  125. package/dist/components/atoms/select/pageSizeSelectAuto.d.ts +11 -0
  126. package/dist/components/atoms/select/select.d.ts +109 -0
  127. package/dist/components/atoms/select/select.stories.d.ts +13 -0
  128. package/dist/components/atoms/select/selectComponentClearIndicator.d.ts +13 -0
  129. package/dist/components/atoms/select/selectComponentControl.d.ts +13 -0
  130. package/dist/components/atoms/select/selectComponentDropdownIndicator.d.ts +13 -0
  131. package/dist/components/atoms/select/selectComponentIndicatorsContainer.d.ts +13 -0
  132. package/dist/components/atoms/select/selectComponentInput.d.ts +13 -0
  133. package/dist/components/atoms/select/selectComponentLoadingMessage.d.ts +13 -0
  134. package/dist/components/atoms/select/selectComponentMenu.d.ts +13 -0
  135. package/dist/components/atoms/select/selectComponentMenuList.d.ts +13 -0
  136. package/dist/components/atoms/select/selectComponentMenuPortal.d.ts +8 -0
  137. package/dist/components/atoms/select/selectComponentNoOptionMessage.d.ts +13 -0
  138. package/dist/components/atoms/select/selectComponentOption.d.ts +13 -0
  139. package/dist/components/atoms/select/selectComponentPlacement.d.ts +13 -0
  140. package/dist/components/atoms/select/selectHook.d.ts +8 -0
  141. package/dist/components/atoms/select/selectOption.d.ts +36 -0
  142. package/dist/components/atoms/select/selectOption.stories.d.ts +7 -0
  143. package/dist/components/atoms/select/selectOptionIconContainer.d.ts +16 -0
  144. package/dist/components/atoms/select/sortOrderSelect.d.ts +34 -0
  145. package/dist/components/atoms/select/sortOrderSelect.stories.d.ts +8 -0
  146. package/dist/components/atoms/singleLineText/index.d.ts +1 -0
  147. package/dist/components/atoms/singleLineText/singleLineText.d.ts +27 -0
  148. package/dist/components/atoms/singleLineText/singleLineText.stories.d.ts +8 -0
  149. package/dist/components/atoms/switch/index.d.ts +1 -0
  150. package/dist/components/atoms/switch/switch.d.ts +53 -0
  151. package/dist/components/atoms/switch/switch.stories.d.ts +13 -0
  152. package/dist/components/atoms/tag/index.d.ts +2 -0
  153. package/dist/components/atoms/tag/tag.d.ts +24 -0
  154. package/dist/components/atoms/tag/tag.stories.d.ts +8 -0
  155. package/dist/components/atoms/tag/tagIconContainer.d.ts +15 -0
  156. package/dist/components/atoms/tagList/index.d.ts +1 -0
  157. package/dist/components/atoms/tagList/tagList.d.ts +19 -0
  158. package/dist/components/atoms/tagList/tagList.stories.d.ts +8 -0
  159. package/dist/components/atoms/textButton/index.d.ts +2 -0
  160. package/dist/components/atoms/textButton/textButton.d.ts +43 -0
  161. package/dist/components/atoms/textButton/textButton.stories.d.ts +8 -0
  162. package/dist/components/atoms/textButton/textButtonIconContainer.d.ts +16 -0
  163. package/dist/components/atoms/textarea/index.d.ts +1 -0
  164. package/dist/components/atoms/textarea/textarea.d.ts +57 -0
  165. package/dist/components/atoms/textarea/textarea.stories.d.ts +11 -0
  166. package/dist/components/atoms/visuallyHidden/index.d.ts +1 -0
  167. package/dist/components/atoms/visuallyHidden/visuallyHidden.d.ts +20 -0
  168. package/dist/components/atoms/visuallyHidden/visuallyHidden.stories.d.ts +7 -0
  169. package/dist/components/functions/shorthands.d.ts +43 -0
  170. package/dist/components/functions/utilities.d.ts +94 -0
  171. package/dist/components/index.d.ts +52 -0
  172. package/dist/components/modules/bulkOperationContainer/bulkOperationButton.d.ts +17 -0
  173. package/dist/components/modules/bulkOperationContainer/bulkOperationButton.stories.d.ts +8 -0
  174. package/dist/components/modules/bulkOperationContainer/bulkOperationContainer.d.ts +16 -0
  175. package/dist/components/modules/bulkOperationContainer/index.d.ts +2 -0
  176. package/dist/components/modules/card/card.d.ts +59 -0
  177. package/dist/components/modules/card/card.stories.d.ts +17 -0
  178. package/dist/components/modules/card/cardBody.d.ts +15 -0
  179. package/dist/components/modules/card/cardBody.stories.d.ts +7 -0
  180. package/dist/components/modules/card/cardButton.d.ts +55 -0
  181. package/dist/components/modules/card/cardButton.stories.d.ts +7 -0
  182. package/dist/components/modules/card/cardButtonList.d.ts +15 -0
  183. package/dist/components/modules/card/cardButtonList.stories.d.ts +7 -0
  184. package/dist/components/modules/card/cardControlContainer.d.ts +15 -0
  185. package/dist/components/modules/card/cardControlContainer.stories.d.ts +7 -0
  186. package/dist/components/modules/card/cardHeadnote.d.ts +15 -0
  187. package/dist/components/modules/card/cardHeadnote.stories.d.ts +7 -0
  188. package/dist/components/modules/card/cardTitle.d.ts +25 -0
  189. package/dist/components/modules/card/cardTitle.stories.d.ts +7 -0
  190. package/dist/components/modules/card/context.d.ts +11 -0
  191. package/dist/components/modules/card/index.d.ts +7 -0
  192. package/dist/components/modules/cardList/cardList.d.ts +73 -0
  193. package/dist/components/modules/cardList/cardList.stories.d.ts +7 -0
  194. package/dist/components/modules/cardList/cardListAuto.d.ts +163 -0
  195. package/dist/components/modules/cardList/cardListAuto.stories.d.ts +5 -0
  196. package/dist/components/modules/cardList/cardListAutoHook.d.ts +13 -0
  197. package/dist/components/modules/cardList/cardListBody.d.ts +21 -0
  198. package/dist/components/modules/cardList/cardListBody.stories.d.ts +7 -0
  199. package/dist/components/modules/cardList/cardListBodyAuto.d.ts +24 -0
  200. package/dist/components/modules/cardList/cardListEmpty.d.ts +18 -0
  201. package/dist/components/modules/cardList/cardListEmpty.stories.d.ts +7 -0
  202. package/dist/components/modules/cardList/cardListFooter.d.ts +13 -0
  203. package/dist/components/modules/cardList/cardListFooter.stories.d.ts +7 -0
  204. package/dist/components/modules/cardList/cardListFooterAuto.d.ts +13 -0
  205. package/dist/components/modules/cardList/cardListHeader.d.ts +15 -0
  206. package/dist/components/modules/cardList/cardListHeader.stories.d.ts +7 -0
  207. package/dist/components/modules/cardList/cardListHeaderLeft.d.ts +15 -0
  208. package/dist/components/modules/cardList/cardListHeaderLeft.stories.d.ts +7 -0
  209. package/dist/components/modules/cardList/cardListHeaderRight.d.ts +15 -0
  210. package/dist/components/modules/cardList/cardListHeaderRight.stories.d.ts +7 -0
  211. package/dist/components/modules/cardList/cardListLoading.d.ts +18 -0
  212. package/dist/components/modules/cardList/cardListLoading.stories.d.ts +7 -0
  213. package/dist/components/modules/cardList/index.d.ts +11 -0
  214. package/dist/components/modules/contentHeader/contentHeader.d.ts +16 -0
  215. package/dist/components/modules/contentHeader/contentHeader.stories.d.ts +8 -0
  216. package/dist/components/modules/contentHeader/contentTitle.d.ts +15 -0
  217. package/dist/components/modules/contentHeader/index.d.ts +2 -0
  218. package/dist/components/modules/countIndicator/countIndicator.d.ts +32 -0
  219. package/dist/components/modules/countIndicator/countIndicator.stories.d.ts +14 -0
  220. package/dist/components/modules/countIndicator/index.d.ts +1 -0
  221. package/dist/components/modules/dialog/context.d.ts +9 -0
  222. package/dist/components/modules/dialog/dialog.d.ts +77 -0
  223. package/dist/components/modules/dialog/dialog.stories.d.ts +16 -0
  224. package/dist/components/modules/dialog/dialogBody.d.ts +18 -0
  225. package/dist/components/modules/dialog/dialogBody.stories.d.ts +7 -0
  226. package/dist/components/modules/dialog/dialogButton.d.ts +40 -0
  227. package/dist/components/modules/dialog/dialogButton.stories.d.ts +8 -0
  228. package/dist/components/modules/dialog/dialogCloseButton.d.ts +13 -0
  229. package/dist/components/modules/dialog/dialogCloseButton.stories.d.ts +7 -0
  230. package/dist/components/modules/dialog/dialogFooter.d.ts +15 -0
  231. package/dist/components/modules/dialog/dialogFooter.stories.d.ts +7 -0
  232. package/dist/components/modules/dialog/dialogHeader.d.ts +15 -0
  233. package/dist/components/modules/dialog/dialogHeader.stories.d.ts +7 -0
  234. package/dist/components/modules/dialog/dialogTitle.d.ts +20 -0
  235. package/dist/components/modules/dialog/dialogTitle.stories.d.ts +7 -0
  236. package/dist/components/modules/dialog/index.d.ts +7 -0
  237. package/dist/components/modules/drawer/context.d.ts +9 -0
  238. package/dist/components/modules/drawer/drawer.d.ts +32 -0
  239. package/dist/components/modules/drawer/drawer.stories.d.ts +13 -0
  240. package/dist/components/modules/drawer/drawerBody.d.ts +15 -0
  241. package/dist/components/modules/drawer/drawerBody.stories.d.ts +7 -0
  242. package/dist/components/modules/drawer/drawerButton.d.ts +42 -0
  243. package/dist/components/modules/drawer/drawerButton.stories.d.ts +7 -0
  244. package/dist/components/modules/drawer/drawerCaption.d.ts +15 -0
  245. package/dist/components/modules/drawer/drawerCaption.stories.d.ts +7 -0
  246. package/dist/components/modules/drawer/drawerFooter.d.ts +15 -0
  247. package/dist/components/modules/drawer/drawerFooter.stories.d.ts +7 -0
  248. package/dist/components/modules/drawer/drawerHeader.d.ts +15 -0
  249. package/dist/components/modules/drawer/drawerHeader.stories.d.ts +7 -0
  250. package/dist/components/modules/drawer/drawerTitle.d.ts +20 -0
  251. package/dist/components/modules/drawer/drawerTitle.stories.d.ts +7 -0
  252. package/dist/components/modules/drawer/index.d.ts +7 -0
  253. package/dist/components/modules/footnote/footnote.d.ts +26 -0
  254. package/dist/components/modules/footnote/footnote.stories.d.ts +9 -0
  255. package/dist/components/modules/footnote/footnoteIconContainer.d.ts +15 -0
  256. package/dist/components/modules/footnote/index.d.ts +2 -0
  257. package/dist/components/modules/footnoteList/footnoteList.d.ts +38 -0
  258. package/dist/components/modules/footnoteList/footnoteList.stories.d.ts +9 -0
  259. package/dist/components/modules/footnoteList/footnoteListRow.d.ts +19 -0
  260. package/dist/components/modules/footnoteList/footnoteListRow.stories.d.ts +7 -0
  261. package/dist/components/modules/footnoteList/index.d.ts +2 -0
  262. package/dist/components/modules/fractionView/context.d.ts +7 -0
  263. package/dist/components/modules/fractionView/fractionView.d.ts +28 -0
  264. package/dist/components/modules/fractionView/fractionView.stories.d.ts +8 -0
  265. package/dist/components/modules/fractionView/fractionViewDenominator.d.ts +15 -0
  266. package/dist/components/modules/fractionView/fractionViewNumerator.d.ts +15 -0
  267. package/dist/components/modules/fractionView/index.d.ts +3 -0
  268. package/dist/components/modules/header/header.d.ts +15 -0
  269. package/dist/components/modules/header/header.stories.d.ts +7 -0
  270. package/dist/components/modules/header/headerLeft.d.ts +15 -0
  271. package/dist/components/modules/header/headerMenu.d.ts +16 -0
  272. package/dist/components/modules/header/headerMenuItem.d.ts +21 -0
  273. package/dist/components/modules/header/headerMenuItemIconContainer.d.ts +16 -0
  274. package/dist/components/modules/header/index.d.ts +5 -0
  275. package/dist/components/modules/menu/context.d.ts +10 -0
  276. package/dist/components/modules/menu/index.d.ts +4 -0
  277. package/dist/components/modules/menu/menu.d.ts +42 -0
  278. package/dist/components/modules/menu/menu.stories.d.ts +9 -0
  279. package/dist/components/modules/menu/menuDivider.d.ts +23 -0
  280. package/dist/components/modules/menu/menuItem.d.ts +23 -0
  281. package/dist/components/modules/menu/menuItem.stories.d.ts +7 -0
  282. package/dist/components/modules/menu/menuItemIconContainer.d.ts +15 -0
  283. package/dist/components/modules/menu/menuList.d.ts +22 -0
  284. package/dist/components/modules/pagination/index.d.ts +2 -0
  285. package/dist/components/modules/pagination/pagination.d.ts +25 -0
  286. package/dist/components/modules/pagination/pagination.stories.d.ts +7 -0
  287. package/dist/components/modules/pagination/paginationAuto.d.ts +13 -0
  288. package/dist/components/modules/rankView/index.d.ts +1 -0
  289. package/dist/components/modules/rankView/rankView.d.ts +29 -0
  290. package/dist/components/modules/rankView/rankView.stories.d.ts +13 -0
  291. package/dist/components/modules/stepper/context.d.ts +13 -0
  292. package/dist/components/modules/stepper/index.d.ts +5 -0
  293. package/dist/components/modules/stepper/stepper.d.ts +22 -0
  294. package/dist/components/modules/stepper/stepper.stories.d.ts +8 -0
  295. package/dist/components/modules/stepper/stepperBody.d.ts +15 -0
  296. package/dist/components/modules/stepper/stepperItem.d.ts +17 -0
  297. package/dist/components/modules/stepper/stepperNumber.d.ts +15 -0
  298. package/dist/components/modules/stepper/stepperTitle.d.ts +20 -0
  299. package/dist/components/modules/tabList/index.d.ts +3 -0
  300. package/dist/components/modules/tabList/tab.d.ts +21 -0
  301. package/dist/components/modules/tabList/tabIconContainer.d.ts +15 -0
  302. package/dist/components/modules/tabList/tabList.d.ts +15 -0
  303. package/dist/components/modules/tabList/tabList.stories.d.ts +7 -0
  304. package/dist/components/modules/toast/index.d.ts +5 -0
  305. package/dist/components/modules/toast/simpleToast.d.ts +36 -0
  306. package/dist/components/modules/toast/simpleToast.stories.d.ts +9 -0
  307. package/dist/components/modules/toast/toast.d.ts +74 -0
  308. package/dist/components/modules/toast/toast.stories.d.ts +10 -0
  309. package/dist/components/modules/toast/toastBody.d.ts +16 -0
  310. package/dist/components/modules/toast/toastMessage.d.ts +15 -0
  311. package/dist/components/modules/toast/toastSupplement.d.ts +15 -0
  312. package/dist/components/modules/toast/toastViewport.d.ts +8 -0
  313. package/dist/components/tests/samples/dialog.stories.d.ts +7 -0
  314. package/dist/components/tests/samples/forms.stories.d.ts +6 -0
  315. package/dist/components/tests/samples/playableDeckList.stories.d.ts +6 -0
  316. package/dist/components/tests/samples/quizList.stories.d.ts +6 -0
  317. package/dist/components/utils/modalBase/index.d.ts +1 -0
  318. package/dist/components/utils/modalBase/modalBase.d.ts +14 -0
  319. package/dist/components/utils/storyContainer/index.d.ts +1 -0
  320. package/dist/components/utils/storyContainer/storyContainer.d.ts +12 -0
  321. package/dist/contexts/dialog/context.d.ts +13 -0
  322. package/dist/contexts/dialog/hook.d.ts +3 -0
  323. package/dist/contexts/footenoteList/context.d.ts +7 -0
  324. package/dist/contexts/index.d.ts +3 -0
  325. package/dist/contexts/pageProps/context.d.ts +9 -0
  326. package/dist/contexts/radioGroup/context.d.ts +9 -0
  327. package/dist/contexts/radioGroup/hook.d.ts +4 -0
  328. package/dist/contexts/root/context.d.ts +9 -0
  329. package/dist/contexts/toast/context.d.ts +12 -0
  330. package/dist/contexts/toast/hook.d.ts +3 -0
  331. package/dist/index.d.ts +8 -0
  332. package/dist/index.js +2566 -0
  333. package/dist/index.js.map +1 -0
  334. package/dist/messages/index.d.ts +4 -0
  335. package/dist/modules/color.d.ts +19 -0
  336. package/dist/modules/data.d.ts +12 -0
  337. package/dist/modules/genre.d.ts +3 -0
  338. package/dist/modules/message.d.ts +7 -0
  339. package/dist/modules/responsive.d.ts +17 -0
  340. package/dist/modules/subject.d.ts +21 -0
  341. package/dist/modules/translation.d.ts +53 -0
  342. package/dist/stories/atoms/asyncSelect/asyncSelect.stories.d.ts +6 -0
  343. package/dist/stories/atoms/avatar/avatar.stories.d.ts +7 -0
  344. package/dist/stories/atoms/badge/badge.stories.d.ts +11 -0
  345. package/dist/stories/atoms/barMeter/barMeter.stories.d.ts +10 -0
  346. package/dist/stories/atoms/barMeter/barMeterValue.stories.d.ts +7 -0
  347. package/dist/stories/atoms/barProgress/barProgress.stories.d.ts +8 -0
  348. package/dist/stories/atoms/button/button.stories.d.ts +17 -0
  349. package/dist/stories/atoms/buttonLink/buttonLink.stories.d.ts +13 -0
  350. package/dist/stories/atoms/checkableContainer/checkableContainer.stories.d.ts +9 -0
  351. package/dist/stories/atoms/checkableContainer/checkableLabel.stories.d.ts +7 -0
  352. package/dist/stories/atoms/checkbox/checkbox.stories.d.ts +15 -0
  353. package/dist/stories/atoms/controlContainer/controlContainer.stories.d.ts +13 -0
  354. package/dist/stories/atoms/controlContainer/controlErrorMessage.stories.d.ts +7 -0
  355. package/dist/stories/atoms/controlContainer/controlHelper.stories.d.ts +7 -0
  356. package/dist/stories/atoms/controlContainer/controlLabel.stories.d.ts +7 -0
  357. package/dist/stories/atoms/divider/divider.stories.d.ts +8 -0
  358. package/dist/stories/atoms/fileInput/fileInput.stories.d.ts +10 -0
  359. package/dist/stories/atoms/generalIcon/generalIcon.stories.d.ts +7 -0
  360. package/dist/stories/atoms/heading/heading.stories.d.ts +7 -0
  361. package/dist/stories/atoms/iconButton/iconButton.stories.d.ts +11 -0
  362. package/dist/stories/atoms/input/input.stories.d.ts +21 -0
  363. package/dist/stories/atoms/link/link.stories.d.ts +9 -0
  364. package/dist/stories/atoms/loadingIcon/loadingIcon.stories.d.ts +7 -0
  365. package/dist/stories/atoms/modal/modal.stories.d.ts +7 -0
  366. package/dist/stories/atoms/multiLineText/multiLineText.stories.d.ts +9 -0
  367. package/dist/stories/atoms/numberInput/numberInput.stories.d.ts +10 -0
  368. package/dist/stories/atoms/passwordInput/passwordInput.stories.d.ts +13 -0
  369. package/dist/stories/atoms/radio/radio.stories.d.ts +13 -0
  370. package/dist/stories/atoms/radioGroup/radioGroup.stories.d.ts +8 -0
  371. package/dist/stories/atoms/root/root.stories.d.ts +7 -0
  372. package/dist/stories/atoms/scroll/scroll.stories.d.ts +8 -0
  373. package/dist/stories/atoms/secondaryHeading/secondaryHeading.stories.d.ts +7 -0
  374. package/dist/stories/atoms/select/pageSizeSelect.stories.d.ts +7 -0
  375. package/dist/stories/atoms/select/select.stories.d.ts +13 -0
  376. package/dist/stories/atoms/select/selectOption.stories.d.ts +7 -0
  377. package/dist/stories/atoms/select/sortOrderSelect.stories.d.ts +8 -0
  378. package/dist/stories/atoms/singleLineText/singleLineText.stories.d.ts +8 -0
  379. package/dist/stories/atoms/switch/switch.stories.d.ts +13 -0
  380. package/dist/stories/atoms/tag/tag.stories.d.ts +8 -0
  381. package/dist/stories/atoms/tagList/tagList.stories.d.ts +8 -0
  382. package/dist/stories/atoms/textButton/textButton.stories.d.ts +8 -0
  383. package/dist/stories/atoms/textarea/textarea.stories.d.ts +11 -0
  384. package/dist/stories/atoms/visuallyHidden/visuallyHidden.stories.d.ts +7 -0
  385. package/dist/stories/modules/bulkOperationContainer/bulkOperationButton.stories.d.ts +8 -0
  386. package/dist/stories/modules/card/card.stories.d.ts +17 -0
  387. package/dist/stories/modules/card/cardBody.stories.d.ts +7 -0
  388. package/dist/stories/modules/card/cardButton.stories.d.ts +7 -0
  389. package/dist/stories/modules/card/cardButtonList.stories.d.ts +7 -0
  390. package/dist/stories/modules/card/cardControlContainer.stories.d.ts +7 -0
  391. package/dist/stories/modules/card/cardHeadnote.stories.d.ts +7 -0
  392. package/dist/stories/modules/card/cardTitle.stories.d.ts +7 -0
  393. package/dist/stories/modules/cardList/cardList.stories.d.ts +7 -0
  394. package/dist/stories/modules/cardList/cardListBody.stories.d.ts +7 -0
  395. package/dist/stories/modules/cardList/cardListEmpty.stories.d.ts +7 -0
  396. package/dist/stories/modules/cardList/cardListFooter.stories.d.ts +7 -0
  397. package/dist/stories/modules/cardList/cardListHeader.stories.d.ts +7 -0
  398. package/dist/stories/modules/cardList/cardListHeaderLeft.stories.d.ts +7 -0
  399. package/dist/stories/modules/cardList/cardListHeaderRight.stories.d.ts +7 -0
  400. package/dist/stories/modules/cardList/cardListLoading.stories.d.ts +7 -0
  401. package/dist/stories/modules/contentHeader/contentHeader.stories.d.ts +8 -0
  402. package/dist/stories/modules/countIndicator/countIndicator.stories.d.ts +14 -0
  403. package/dist/stories/modules/dialog/dialog.stories.d.ts +16 -0
  404. package/dist/stories/modules/dialog/dialogBody.stories.d.ts +7 -0
  405. package/dist/stories/modules/dialog/dialogButton.stories.d.ts +8 -0
  406. package/dist/stories/modules/dialog/dialogCloseButton.stories.d.ts +7 -0
  407. package/dist/stories/modules/dialog/dialogFooter.stories.d.ts +7 -0
  408. package/dist/stories/modules/dialog/dialogHeader.stories.d.ts +7 -0
  409. package/dist/stories/modules/dialog/dialogTitle.stories.d.ts +7 -0
  410. package/dist/stories/modules/drawer/drawer.stories.d.ts +13 -0
  411. package/dist/stories/modules/drawer/drawerBody.stories.d.ts +7 -0
  412. package/dist/stories/modules/drawer/drawerButton.stories.d.ts +7 -0
  413. package/dist/stories/modules/drawer/drawerCaption.stories.d.ts +7 -0
  414. package/dist/stories/modules/drawer/drawerFooter.stories.d.ts +7 -0
  415. package/dist/stories/modules/drawer/drawerHeader.stories.d.ts +7 -0
  416. package/dist/stories/modules/drawer/drawerTitle.stories.d.ts +7 -0
  417. package/dist/stories/modules/footnote/footnote.stories.d.ts +9 -0
  418. package/dist/stories/modules/footnoteList/footnoteList.stories.d.ts +9 -0
  419. package/dist/stories/modules/footnoteList/footnoteListRow.stories.d.ts +7 -0
  420. package/dist/stories/modules/fractionView/fractionView.stories.d.ts +8 -0
  421. package/dist/stories/modules/header/header.stories.d.ts +7 -0
  422. package/dist/stories/modules/menu/menu.stories.d.ts +9 -0
  423. package/dist/stories/modules/menu/menuItem.stories.d.ts +7 -0
  424. package/dist/stories/modules/pagination/pagination.stories.d.ts +7 -0
  425. package/dist/stories/modules/rankView/rankView.stories.d.ts +13 -0
  426. package/dist/stories/modules/stepper/stepper.stories.d.ts +8 -0
  427. package/dist/stories/modules/tabList/tabList.stories.d.ts +7 -0
  428. package/dist/stories/modules/toast/simpleToast.stories.d.ts +9 -0
  429. package/dist/stories/modules/toast/toast.stories.d.ts +11 -0
  430. package/dist/stories/tests/samples/dialog.stories.d.ts +7 -0
  431. package/dist/stories/tests/samples/forms.stories.d.ts +6 -0
  432. package/dist/utils/children.d.ts +2 -0
  433. package/dist/utils/color.d.ts +5 -0
  434. package/dist/utils/debug.d.ts +1 -0
  435. package/dist/utils/event.d.ts +2 -0
  436. package/dist/utils/node.d.ts +4 -0
  437. package/dist/utils/translation.d.ts +2 -0
  438. package/dist/utils/types.d.ts +9 -0
  439. package/package.json +123 -0
  440. package/tsconfig.json +33 -0
  441. package/typedoc.json +26 -0
  442. package/webpack.config.ts +55 -0
package/dist/index.js ADDED
@@ -0,0 +1,2566 @@
1
+ (()=>{var e={714:e=>{e.exports={"dialogCloseButton.close":"Close dialog","loadingIcon.label":"Loading","select.select":"Select","select.noOption":"No options","select.loading":"Loading","sortOrderSelect.ascending":"Asc","sortOrderSelect.descending":"Desc","bulkOperationButton.text":"Action","cardListEmpty.empty":"No data found","cardListLoading.loading":"Loading","pagination.label":"Pagination","pagination.first":"First","pagination.previous":"Previous","pagination.next":"Next","pagination.last":"Last","rankView.label":"{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}} place","toast.rootLabel":"Notification","toast.viewportLabel":"Notifications (F8)","quizCardTitle.emptyQuestion":"No question","quizCardTitle.emptyAnswer":"No correct options","groupFootnote.noGroup":"Deleted group","privateFootnote.private":"Limited","privateFootnote.public":"Public","userFootnote.noUser":"Deleted user","imageView.noImage":"No image found","mediumView.unsupported":"Unsupported media"}},62:e=>{e.exports={"dialogCloseButton.close":"ダイアログを閉じる","loadingIcon.label":"読み込み中","select.select":"選択してください","select.noOption":"該当する項目がありません","select.loading":"読み込み中","sortOrderSelect.ascending":"昇順","sortOrderSelect.descending":"降順","bulkOperationButton.text":"一括操作","cardListEmpty.empty":"該当するデータがありません","cardListLoading.loading":"読み込み中","pagination.label":"ページネーション","pagination.first":"最初へ","pagination.previous":"前へ","pagination.next":"次へ","pagination.last":"最後へ","rankView.label":"{rank, number}位","toast.rootLabel":"お知らせ","toast.viewportLabel":"お知らせ (F8)","quizCardTitle.emptyQuestion":"問題文がありません","quizCardTitle.emptyAnswer":"正答選択肢がありません","groupFootnote.noGroup":"削除されたグループ","privateFootnote.private":"限定公開","privateFootnote.public":"全体公開","userFootnote.noUser":"退会したユーザー","imageView.noImage":"画像がありません","mediumView.unsupported":"サポートされていないメディアです"}}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,o),i.exports}o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};(()=>{"use strict";o.r(t),o.d(t,{AlignedRadioGroup:()=>oo,AsyncSelect:()=>se,AsyncSelectOption:()=>be,Avatar:()=>fe,AvatarFallbackIcon:()=>ge,AvatarFallbackLetter:()=>xe,Badge:()=>we,BadgeIconContainer:()=>qe,BarMeter:()=>Ie,BarMeterValue:()=>Me,BarMeterValueIconContainer:()=>Fe,BarProgress:()=>Ae,BulkOperationButton:()=>mt,BulkOperationContainer:()=>ut,Button:()=>He,ButtonIconContainer:()=>Ye,Card:()=>Ot,CardBody:()=>wt,CardButton:()=>qt,CardButtonList:()=>Nt,CardControlContainer:()=>zt,CardHeadnote:()=>xt,CardList:()=>Rt,CardListAuto:()=>Qt,CardListBody:()=>Mt,CardListBodyAuto:()=>Jt,CardListEmpty:()=>Ft,CardListFooter:()=>At,CardListFooterAuto:()=>Wt,CardListHeader:()=>Ht,CardListHeaderLeft:()=>Yt,CardListHeaderRight:()=>_t,CardListLoading:()=>Gt,CardTitle:()=>It,CheckableContainer:()=>_e,CheckableLabel:()=>Ge,Checkbox:()=>We,ContentHeader:()=>Xt,ContentTitle:()=>rn,ControlContainer:()=>Xe,ControlErrorMessage:()=>tr,ControlHelper:()=>ir,ControlLabel:()=>lr,CountIndicator:()=>tn,Dialog:()=>sn,DialogBody:()=>dn,DialogButton:()=>pn,DialogCloseButton:()=>fn,DialogFooter:()=>yn,DialogHeader:()=>hn,DialogTitle:()=>vn,Divider:()=>cr,Drawer:()=>$n,DrawerBody:()=>kn,DrawerButton:()=>Pn,DrawerCaption:()=>zn,DrawerFooter:()=>In,DrawerHeader:()=>Rn,DrawerTitle:()=>Mn,FileInput:()=>pr,Footnote:()=>An,FootnoteIconContainer:()=>Hn,FootnoteList:()=>Yn,FootnoteListRow:()=>_n,FractionView:()=>Jn,FractionViewDenominator:()=>Zn,FractionViewNumerator:()=>ei,GeneralIcon:()=>dr,Header:()=>oi,HeaderLeft:()=>ni,HeaderMenu:()=>ai,HeaderMenuItem:()=>si,HeaderMenuItemIconContainer:()=>di,Heading:()=>mr,Icon:()=>gr,IconButton:()=>Or,Input:()=>qr,InputLeftAddon:()=>xr,InputRightAddon:()=>wr,LEVELED_COLOR_SCHEMES:()=>u,Link:()=>zr,LinkIconContainer:()=>Ir,LoadingIcon:()=>Rr,Menu:()=>hi,MenuDivider:()=>wi,MenuItem:()=>mi,MenuItemIconContainer:()=>xi,Modal:()=>Br,MultiLineText:()=>rr,NumberInput:()=>Vr,NumberInputLeftAddon:()=>Tr,PageSizeSelect:()=>Ko,PageSizeSelectAuto:()=>Wo,Pagination:()=>qi,PaginationAuto:()=>ki,PasswordInput:()=>Qr,PasswordInputLeftAddon:()=>Ur,PasswordInputRightAddon:()=>Kr,Radio:()=>Xr,RadioGroup:()=>eo,RankView:()=>Pi,Root:()=>Fo,SecondaryHeading:()=>Ao,Select:()=>Ho,SelectOption:()=>Yo,SelectOptionIconContainer:()=>_o,SimpleToast:()=>la,SingleLineText:()=>Re,SortOrderSelect:()=>Zo,Stepper:()=>Li,StepperBody:()=>Ai,StepperItem:()=>Di,StepperNumber:()=>Hi,StepperTitle:()=>Yi,Switch:()=>rt,Tab:()=>Gi,TabIconContainer:()=>Ji,TabList:()=>_i,Tag:()=>tt,TagIconContainer:()=>it,TagList:()=>lt,Textarea:()=>ct,Toast:()=>ea,ToastBody:()=>oa,ToastMessage:()=>na,ToastSupplement:()=>aa,UNLEVELED_COLOR_SCHEMES:()=>f,UpdatableSubject:()=>$o,VisuallyHidden:()=>bt,alpha:()=>j,borderWidth:()=>q,boxShadow:()=>k,color:()=>x,createColorDefinition:()=>m,createTrans:()=>Ro,defaultGlobalStyle:()=>Lo,dimension:()=>ba,fixedLineHeight:()=>P,flexHorizontal:()=>ca,flexVertical:()=>sa,fontFamily:()=>O,fontWeight:()=>v,intlSubject:()=>No,lineHeight:()=>N,localeSubject:()=>Po,margin:()=>da,mergeLocalizationMessages:()=>go,resolveResponsiveValue:()=>vo,size:()=>$,toResponsiveValue:()=>Oo,useBehaviorSubject:()=>ko,useDialog:()=>ua,useIntl:()=>So,useLocale:()=>zo,useRadioGroup:()=>fa,useResponsiveValue:()=>jo,useSetLocale:()=>Co,useSmartphone:()=>xo,useSubject:()=>qo,useToast:()=>ma,useTrans:()=>Io,useTranslation:()=>Eo});const e=require("@emotion/react/jsx-runtime"),r=require("react"),n=require("react-select/async");var i=o.n(n);const a=require("@emotion/react"),l=require("@fortawesome/react-fontawesome"),s=require("@fortawesome/sharp-regular-svg-icons"),c=require("react-select");var d=o.n(c);const b=require("color");var p=o.n(b);const u=["primary","secondary","blue","red","green","pink","yellow","purple","orange","gray","gold","silver","bronze"],f=["white","black","whiteText","blackText","background","deepBackground"],m=(e,r)=>{const o=p()(e),t=p()("black"),n=p()("white");return{9:o.saturate(4*r.dark.saturation/4).mix(t,4*r.dark.mix/4).hex(),8:o.saturate(3*r.dark.saturation/4).mix(t,3*r.dark.mix/4).hex(),7:o.saturate(2*r.dark.saturation/4).mix(t,2*r.dark.mix/4).hex(),6:o.saturate(1*r.dark.saturation/4).mix(t,1*r.dark.mix/4).hex(),5:o.hex(),4:o.saturate(1*r.light.saturation/5).mix(n,1*r.light.mix/5).hex(),3:o.saturate(2*r.light.saturation/5).mix(n,2*r.light.mix/5).hex(),2:o.saturate(3*r.light.saturation/5).mix(n,3*r.light.mix/5).hex(),1:o.saturate(4*r.light.saturation/5).mix(n,4*r.light.mix/5).hex(),0:o.saturate(5*r.light.saturation/5).mix(n,5*r.light.mix/5).hex()}},y={primary:m("hsl(203, 100%, 38%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),secondary:m("hsl(2, 77%, 64%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),blue:m("hsl(230, 70%, 55%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),red:m("hsl(0, 65%, 60%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),green:m("hsl(110, 45%, 45%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),pink:m("hsl(340, 60%, 60%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.2}}),yellow:m("hsl(60, 65%, 50%)",{dark:{mix:.55,saturation:-.3},light:{mix:.93,saturation:.1}}),purple:m("hsl(260, 55%, 57%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),orange:m("hsl(30, 75%, 55%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.2}}),gray:m("hsl(203, 20%, 65%)",{dark:{mix:.55,saturation:-.3},light:{mix:.93,saturation:.3}}),gold:m("hsl(50, 80%, 43%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),silver:m("hsl(240, 15%, 65%)",{dark:{mix:.55,saturation:-.3},light:{mix:.93,saturation:.3}}),bronze:m("hsl(20, 50%, 50%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),white:p()("hsl(203, 0%, 100%)").hex(),black:p()("hsl(203, 33%, 10%)").hex(),whiteText:p()("hsl(203, 0%, 87%)").hex(),blackText:p()("hsl(203, 0%, 27%)").hex(),background:p()("hsl(203, 20%, 98%)").hex(),deepBackground:p()("hsl(203, 20%, 96%)").hex()},g=(e,r)=>null!=r?`var(--qlib-cs-${e}-${r})`:`var(--qlib-cs-${e})`,h=e=>{const r=[],o=Object.assign(Object.assign({},y),e);for(const[e,t]of Object.entries(o))if("string"==typeof t)r.push(`--qlib-cs-${e}: ${p()(t).rgb().array().join(", ")};`);else for(const[o,n]of Object.entries(t))r.push(`--qlib-cs-${e}-${o}: ${p()(n).rgb().array().join(", ")};`);return a.css`
2
+ :root {
3
+ ${r.join("\n")}
4
+ }
5
+ `};function O(){return"'Inter', 'Noto Sans JP', 'Dubai', 'Noto Sans', sans-serif"}function v(e){return"normal"===e?400:700}function x(e,r){return f.includes(e)?`rgb(${g(e,void 0)})`:`rgb(${g(e,r)})`}function j(e,r){return e.startsWith("rgb(")?`rgba(${e.slice(4,-1)}, ${r})`:p()(e).alpha(r).rgb().string()}const w={gap:"0.375em",max:"1000em"};function $(e){return"number"==typeof e?e/4+"rem":w[e]}function q(e){return e/16+"rem"}function k(e,r,o){return o?`0rem ${-r/8}rem ${r/4}rem ${e} inset`:`0rem ${r/8}rem ${r/4}rem ${e}`}function N(e,r){return a.css`
6
+ line-height: ${e};
7
+ &::before {
8
+ block-size: ${$(0)};
9
+ inline-size: ${$(0)};
10
+ margin-block-start: calc(${.5*(1-e)}em + ${null!=r?r:"0em"});
11
+ display: block;
12
+ content: "";
13
+ }
14
+ &::after {
15
+ block-size: ${$(0)};
16
+ inline-size: ${$(0)};
17
+ margin-block-end: calc(${.5*(1-e)}em + ${null!=r?r:"0em"});
18
+ display: block;
19
+ content: "";
20
+ }
21
+ `}function P(e,r){return a.css`
22
+ line-height: ${e};
23
+ &::before {
24
+ block-size: ${$(0)};
25
+ inline-size: ${$(0)};
26
+ margin-block-start: calc((1em - #{lineHeight}) * 0.5 + ${null!=r?r:"0em"});
27
+ display: block;
28
+ content: "";
29
+ }
30
+ &::after {
31
+ block-size: ${$(0)};
32
+ inline-size: ${$(0)};
33
+ margin-block-end: calc((1em - #{lineHeight}) * 0.5 + ${null!=r?r:"0em"});
34
+ display: block;
35
+ content: "";
36
+ }
37
+ `}const S=require("dayjs");var z=o.n(S);const C=require("react-intl"),I=e=>{const o=(0,C.useIntl)(),t=(0,r.useCallback)(((r,t)=>{var n;const i="qlib."+(r.includes(":")?r.replace(":","."):(null!=e?`${e}.`:"")+r),a=null!==(n=null==t?void 0:t.defaultMessage)&&void 0!==n?n:`<${i}>`;return o.formatMessage({id:i,defaultMessage:a},t)}),[o,e]),n=(0,r.useCallback)((e=>null!=e?"ja"===o.locale?z()(e).locale("ja").format("YYYY/MM/DD"):z()(e).locale("en").format("DD/MMM/YYYY"):""),[o]),i=(0,r.useCallback)((e=>null!=e?"ja"===o.locale?z()(e).locale("ja").format("YYYY/MM/DD HH:mm"):z()(e).locale("en").format("DD/MMM/YYYY HH:mm"):""),[o]),a=(0,r.useCallback)(((e,r)=>{const t={minimumFractionDigits:null==r?void 0:r.digit,maximumFractionDigits:null==r?void 0:r.digit};return null!=e?e>0?((null==r?void 0:r.withSign)?"+":"")+o.formatNumber(e,t):0===e?((null==r?void 0:r.withSign)?"±":"")+o.formatNumber(e,t):"−"+o.formatNumber(-e,t):""}),[o]);return(0,r.useMemo)((()=>({trans:t,transNode:t,transDate:n,transTime:i,transNumber:a})),[t,n,i,a])};const E={root:a.css`
38
+ padding-block: ${$(2)};
39
+ padding-inline: ${$(2)};
40
+ color: ${x("gray",5)};
41
+ `},R=(0,r.createContext)({variant:"outline",optionAlignment:"left",isMenuOpen:!1,isError:!1}),D=R.Provider;const M={root:a.css`
42
+ font-size: ${$(4)};
43
+ color: ${x("primary",5)};
44
+ display: flex;
45
+ align-items: center;
46
+ justify-content: center;
47
+ cursor: pointer;
48
+ transition: color 0.2s ease;
49
+ flex-grow: 0;
50
+ flex-shrink: 0;
51
+ &:hover {
52
+ color: ${x("primary",4)};
53
+ }
54
+ &:focus-visible {
55
+ outline: solid ${q(2)} ${j(x("primary",4),.6)};
56
+ outline-offset: ${q(1)};
57
+ }
58
+ `},L=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(c.components.ClearIndicator,Object.assign({css:M.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes})}))},F={root:a.css`
59
+ column-gap: ${$("gap")};
60
+ display: flex;
61
+ flex-wrap: wrap;
62
+ align-items: center;
63
+ justify-content: space-between;
64
+ cursor: default;
65
+ outline: none !important;
66
+ position: relative;
67
+ `,rootOutline:a.css`
68
+ &[data-qlib-error="false"] {
69
+ --qlib-border-color: ${x("gray",3)};
70
+ --qlib-focus-border-color: ${x("primary",5)};
71
+ }
72
+ &[data-qlib-error="true"] {
73
+ --qlib-border-color: ${x("red",5)};
74
+ --qlib-focus-border-color: ${x("red",5)};
75
+ }
76
+ padding-block: ${$(2)};
77
+ padding-inline: ${$(2)};
78
+ min-block-size: initial;
79
+ font-size: ${$(4)};
80
+ border: solid ${q(1)} var(--qlib-border-color);
81
+ background-color: ${x("white")};
82
+ border-radius: ${$(1)};
83
+ &[data-qlib-focused="true"] {
84
+ border-color: var(--qlib-focus-border-color);
85
+ outline: solid ${q(1)} var(--qlib-focus-border-color) !important;
86
+ transition: none !important;
87
+ }
88
+ `,rootMinimal:a.css`
89
+ min-block-size: initial;
90
+ font-size: ${$(4)};
91
+ `},B=({isFocused:o,isDisabled:t,menuIsOpen:n,innerRef:i,innerProps:a,children:l})=>{const{variant:s,isError:c}=(0,r.useContext)(R);return(0,e.jsx)("div",Object.assign({css:[F.root,"outline"===s?F.rootOutline:F.rootMinimal],ref:i,"data-qlib-focused":o,"data-qlib-error":c},a,{children:l}))};const A={root:a.css`
92
+ font-size: var(--qlib-font-size);
93
+ color: ${x("gray",5)};
94
+ `},T=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(c.components.DropdownIndicator,Object.assign({css:A.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleDown})}))},H={root:a.css`
95
+ column-gap: ${$("gap")};
96
+ display: flex;
97
+ align-items: center;
98
+ align-self: stretch;
99
+ flex-grow: 0;
100
+ flex-shrink: 0;
101
+ `},V=({innerProps:r,children:o})=>(0,e.jsx)("div",Object.assign({css:H.root},r,{children:o}));const Y={rootOutline:a.css`
102
+ height: 1em;
103
+ line-height: 1;
104
+ `,rootMinimal:a.css`
105
+ height: 1em;
106
+ line-height: 1;
107
+ `},U=o=>{var{children:t}=o,n=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["children"]);const{variant:i}=(0,r.useContext)(R);return(0,e.jsx)(c.components.Input,Object.assign({css:"outline"===i?Y.rootOutline:Y.rootMinimal},n,{children:t}))},_=a.keyframes`
108
+ from {
109
+ opacity: 0;
110
+ }
111
+ to {
112
+ opacity: 1;
113
+ }
114
+ `,K=a.keyframes`
115
+ to {
116
+ opacity: 0;
117
+ }
118
+ from {
119
+ opacity: 1;
120
+ }
121
+ `,G={root:a.css`
122
+ inline-size: 100%;
123
+ margin-block-start: ${q(2)};
124
+ display: flex;
125
+ flex-direction: column;
126
+ position: absolute;
127
+ z-index: 1;
128
+ &[data-qlib-alignment="left"] {
129
+ align-items: flex-start;
130
+ }
131
+ &[data-qlib-alignment="right"] {
132
+ align-items: flex-end;
133
+ }
134
+ &[data-qlib-open="true"] {
135
+ animation: ${_} 0.2s ease;
136
+ opacity: 1;
137
+ }
138
+ &[data-qlib-open="false"] {
139
+ animation: ${K} 0.2s ease;
140
+ opacity: 0;
141
+ }
142
+ `},Q=({innerRef:o,innerProps:t,children:n})=>{const{optionAlignment:i,isMenuOpen:a}=(0,r.useContext)(R);return(0,e.jsx)("div",Object.assign({css:G.root,ref:o,"data-qlib-open":a,"data-qlib-alignment":i},t,{children:n}))},J={root:a.css`
143
+ inline-size: 100%;
144
+ min-inline-size: ${$(24)};
145
+ max-block-size: ${$(60)};
146
+ border-radius: ${$(1)};
147
+ background-color: ${x("white")};
148
+ border: solid ${q(1)} ${x("gray",1)};
149
+ box-shadow: ${k(j(x("gray",5),.2),1)};
150
+ display: flex;
151
+ flex-direction: column;
152
+ overflow-y: auto;
153
+ `},W=({innerRef:r,innerProps:o,children:t})=>(0,e.jsx)("div",{css:J.root,children:t});const Z={root:a.css`
154
+ z-index: 3000 !important;
155
+ `},X=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(c.components.MenuPortal,Object.assign({css:Z.root},t,{children:o}))};const ee={root:a.css`
156
+ padding-block: ${$(2)};
157
+ padding-inline: ${$(2)};
158
+ color: ${x("gray",5)};
159
+ `},re=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);const{trans:n}=I("select");return(0,e.jsx)(c.components.NoOptionsMessage,Object.assign({css:ee.root},t,{children:n("noOption")}))},oe={root:a.css`
160
+ inline-size: 100%;
161
+ padding-block: ${$(2)};
162
+ padding-inline: ${$(2)};
163
+ cursor: pointer;
164
+ display: block;
165
+ user-select: none;
166
+ box-sizing: border-box;
167
+ transition: background-color 0.2s ease;
168
+ flex-grow: 0;
169
+ flex-shrink: 0;
170
+ &[data-qlib-focused="true"] {
171
+ background-color: ${x("primary",0)};
172
+ }
173
+ `},te=({data:r,isSelected:o,isFocused:t,isDisabled:n,innerRef:i,innerProps:a,children:l})=>(0,e.jsx)("div",Object.assign({css:oe.root,ref:i,"data-qlib-selected":o,"data-qlib-focused":t,"aria-disabled":n},a,{children:r.node}));const ne={root:a.css`
174
+ color: ${x("gray",5)};
175
+ line-height: 1;
176
+ white-space: nowrap;
177
+ text-overflow: ellipsis;
178
+ overflow: hidden;
179
+ `},ie=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(c.components.Placeholder,Object.assign({css:ne.root},t,{children:o}))},ae=e=>{const[o,t]=(0,r.useState)(!1),[n,i]=(0,r.useState)(!1),a=(0,r.useRef)(null);return{isMenuOpen:o,menuIsOpen:n,onMenuOpen:(0,r.useCallback)((()=>{t(!0),i(!0),null!=a.current&&clearTimeout(a.current)}),[]),onMenuClose:(0,r.useCallback)((()=>{t(!1),a.current=setTimeout((()=>{i(!1)}),e)}),[e])}};const le={Control:B,Input:U,Placeholder:ie,MenuPortal:X,Menu:Q,MenuList:W,Option:te,NoOptionsMessage:re,LoadingMessage:r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);const{trans:n}=I("select");return(0,e.jsx)(c.components.LoadingMessage,Object.assign({css:E.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})}))},DropdownIndicator:T,ClearIndicator:L,IndicatorsContainer:V,IndicatorSeparator:null,LoadingIndicator:null},se=({value:o,defaultValue:t,searchOptions:n,variant:a="outline",optionAlignment:l="left",isError:s=!1,isClearable:c=!1,isDisabled:d=!1,onSet:b,children:p,className:u})=>{const{trans:f}=I("select"),m=null!=o?ce(o,p):o,y=null!=t?ce(t,p):t,g=(0,r.useCallback)((e=>{return r=void 0,o=void 0,i=function*(){const r=(yield n(e)).map((e=>ce(e,p)));return r},new((t=void 0)||(t=Promise))((function(e,n){function a(e){try{s(i.next(e))}catch(e){n(e)}}function l(e){try{s(i.throw(e))}catch(e){n(e)}}function s(r){var o;r.done?e(r.value):(o=r.value,o instanceof t?o:new t((function(e){e(o)}))).then(a,l)}s((i=i.apply(r,o||[])).next())}));var r,o,t,i}),[n,p]),h=(0,r.useCallback)((e=>{null==b||b(null!==e?e.value:null)}),[b]),O=ae(200),{isMenuOpen:v}=O,x=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(O,["isMenuOpen"]),j=(0,r.useMemo)((()=>({variant:a,optionAlignment:l,isMenuOpen:v,isError:s})),[a,l,v,s]);return(0,e.jsx)(D,{value:j,children:(0,e.jsx)(i(),Object.assign({className:u,classNamePrefix:"qlib-select",value:m,defaultValue:y,loadOptions:g,onChange:null!=b?h:void 0,isClearable:c,isDisabled:d,defaultOptions:!0,placeholder:f("select"),menuPortalTarget:"object"==typeof window?document.body:void 0,components:le,isMulti:!1,unstyled:!0,"aria-invalid":s},x))})},ce=(e,r)=>{const o=r(e);return{value:e,label:o.props.label,node:o}};se.displayName="AsyncSelect";const de={root:a.css`
180
+ `},be=r=>{var{label:o,isDisabled:t=!1,children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["label","isDisabled","children","className"]);return(0,e.jsx)("div",Object.assign({css:de.root,className:i},a,{children:null!=n?n:o}))};be.displayName="AsyncSelectOption";const pe=require("@radix-ui/react-avatar");const ue={root:a.css`
181
+ inline-size: 1.5em;
182
+ block-size: 1.5em;
183
+ border-radius: ${$("max")};
184
+ flex-grow: 0;
185
+ flex-shrink: 0;
186
+ display: inline-flex;
187
+ align-items: center;
188
+ justify-content: center;
189
+ vertical-align: middle;
190
+ position: relative;
191
+ overflow: hidden;
192
+ `,image:a.css`
193
+ width: 100%;
194
+ height: 100%;
195
+ object-fit: cover;
196
+ `,fallback:a.css`
197
+ width: 100%;
198
+ height: 100%;
199
+ display: inline-flex;
200
+ align-items: end;
201
+ justify-content: center;
202
+ `,icon:a.css`
203
+ font-size: 1.2em;
204
+ `},fe=(0,r.forwardRef)(((r,o)=>{var{src:t,alt:n,children:i,className:a}=r,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["src","alt","children","className"]);return(0,e.jsxs)(pe.Root,Object.assign({css:ue.root,className:a,ref:o},l,{children:[(0,e.jsx)(pe.Image,{css:ue.image,src:t,alt:n}),i]}))}));fe.displayName="Avatar";const me=require("@fortawesome/sharp-solid-svg-icons");const ye={fallback:a.css`
205
+ width: 100%;
206
+ height: 100%;
207
+ display: inline-flex;
208
+ align-items: end;
209
+ justify-content: center;
210
+ `,icon:a.css`
211
+ font-size: 1.2em;
212
+ `},ge=(0,r.forwardRef)(((r,o)=>{var{hue:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["hue","className"]);return(0,e.jsx)(pe.Fallback,Object.assign({css:ye.fallback,ref:o,delayMs:500,style:{color:`hsl(${t}, 100%, 95%)`,backgroundColor:`hsl(${t}, 30%, 50%)`}},i,{children:(0,e.jsx)(l.FontAwesomeIcon,{css:ye.icon,icon:me.faUser})}))}));ge.displayName="AvatarFallbackIcon";const he=require("graphemesplit");var Oe=o.n(he);const ve={fallback:a.css`
213
+ width: 100%;
214
+ height: 100%;
215
+ font-size: 0.8em;
216
+ display: inline-flex;
217
+ align-items: center;
218
+ justify-content: center;
219
+ `},xe=(0,r.forwardRef)(((o,t)=>{var{name:n,hue:i,className:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["name","hue","className"]);const s=(0,r.useMemo)((()=>Oe()(n)[0]),[n]);return(0,e.jsx)(pe.Fallback,Object.assign({css:ve.fallback,ref:t,delayMs:500,style:{color:`hsl(${i}, 100%, 95%)`,backgroundColor:`hsl(${i}, 30%, 50%)`}},l,{children:s}))}));xe.displayName="AvatarFallbackLetter";const je=e=>a.css`
220
+ &[data-qlib-size="small"] {
221
+ --qlib-font-size: ${$(3)};
222
+ --qlib-padding-block: ${$(.5)};
223
+ --qlib-padding-inline: ${$(1.5)};
224
+ }
225
+ &[data-qlib-size="medium"] {
226
+ --qlib-font-size: ${$(4)};
227
+ --qlib-padding-block: ${$(.75)};
228
+ --qlib-padding-inline: ${$(2)};
229
+ }
230
+ &[data-qlib-variant="solid"] {
231
+ --qlib-color: ${x(e,5)};
232
+ --qlib-background-color: ${x(e,1)};
233
+ }
234
+ &[data-qlib-variant="light"] {
235
+ --qlib-color: ${x("white")};
236
+ --qlib-background-color: ${x(e,4)};
237
+ }
238
+ &[data-qlib-variant="outline"] {
239
+ --qlib-color: ${x(e,5)};
240
+ --qlib-background-color: transparent;
241
+ }
242
+ &[data-qlib-variant="solid"],
243
+ &[data-qlib-variant="light"] {
244
+ --qlib-border-style: none;
245
+ }
246
+ &[data-qlib-variant="outline"] {
247
+ --qlib-border-style: solid;
248
+ }
249
+ padding-block: var(--qlib-padding-block);
250
+ padding-inline: var(--qlib-padding-inline);
251
+ font-size: var(--qlib-font-size);
252
+ color: var(--qlib-color);
253
+ background-color: var(--qlib-background-color);
254
+ border: var(--qlib-border-style) ${q(1)} ${x(e,1)};
255
+ border-radius: ${$("max")};
256
+ line-height: 1;
257
+ display: inline-block;
258
+ `,we=(a.css`
259
+ margin-inline-end: ${$("gap")};
260
+ `,(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",variant:n="solid",size:i="medium",className:a,children:l}=r,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","variant","size","className","children"]);return(0,e.jsx)("span",Object.assign({css:je(t),className:a,ref:o,"data-qlib-variant":n,"data-qlib-size":i},s,{children:l}))})));we.displayName="Badge";const $e={root:a.css`
261
+ margin-inline-end: ${$("gap")};
262
+ `},qe=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("span",Object.assign({css:$e.root,className:t,ref:o},i,{children:n}))}));qe.displayName="BadgeIconContainer";const ke=require("react-is"),Ne=e=>{const o=Pe(e),t=o.filter(r.isValidElement);if(o.length===t.length)return t;throw new Error("Component receives children containing nodes which is not a `ReactElement`")},Pe=e=>{const o=r.Children.toArray(e);return 1===o.length&&(0,ke.isFragment)(o[0])?Pe(o[0].props.children):o},Se=(0,r.createContext)({isPale:!0,totalValue:0}),ze=Se.Provider;const Ce={root:a.css`
263
+ inline-size: 100%;
264
+ display: flex;
265
+ overflow: hidden;
266
+ `},Ie=(0,r.forwardRef)(((o,t)=>{var{isPale:n=!0,children:i,className:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["isPale","children","className"]);const s=(0,r.useMemo)((()=>Ne(i).reduce(((e,r)=>e+ +r.props.value),0)),[i]),c=(0,r.useMemo)((()=>({isPale:n,totalValue:s})),[n,s]);return(0,e.jsx)("div",Object.assign({css:Ce.root,className:a,ref:t},l,{children:(0,e.jsx)(ze,{value:c,children:i})}))}));Ie.displayName="BarMeter";const Ee={root:a.css`
267
+ ${N(1.5)}
268
+ `,inner:a.css`
269
+ display: -webkit-box;
270
+ -webkit-box-orient: vertical;
271
+ -webkit-line-clamp: 1;
272
+ overflow: hidden;
273
+ `},Re=(0,r.forwardRef)(((r,o)=>{var{as:t="div",children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","children","className"]);const l=t;return(0,e.jsx)(l,Object.assign({css:Ee.root,className:i,ref:o},a,{children:(0,e.jsx)("span",{css:Ee.inner,children:n})}))}));Re.displayName="SingleLineText";const De={root:e=>a.css`
274
+ &[data-qlib-pale="true"] {
275
+ --qlib-bar-color: ${x(e,3)};
276
+ }
277
+ &[data-qlib-pale="false"] {
278
+ --qlib-bar-color: ${x(e,5)};
279
+ }
280
+ &:first-of-type {
281
+ --qlib-border-start-radius: ${$("max")};
282
+ --qlib-spacer-display: none;
283
+ }
284
+ &:not(:first-of-type) {
285
+ --qlib-border-start-radius: 0em;
286
+ }
287
+ &:last-of-type {
288
+ --qlib-border-end-radius: ${$("max")};
289
+ }
290
+ &:not(:last-of-type) {
291
+ --qlib-border-end-radius: 0em;
292
+ }
293
+ --qlib-color: ${x(e,5)};
294
+ --qlib-spacer-display: block;
295
+ /**********************************************************/
296
+ flex-grow: 0;
297
+ flex-shrink: 0;
298
+ box-sizing: border-box;
299
+ &:first-of-type {
300
+ --qlib-border-start-radius: ${$("max")};
301
+ --qlib-spacer-display: none;
302
+ }
303
+ &:last-of-type {
304
+ --qlib-border-end-radius: ${$("max")};
305
+ }
306
+ `,barContainer:a.css`
307
+ inline-size: 100%;
308
+ block-size: ${$(1.5)};
309
+ display: flex;
310
+ box-sizing: border-box;
311
+ `,bar:a.css`
312
+ background-color: var(--qlib-bar-color);
313
+ border-start-start-radius: var(--qlib-border-start-radius);
314
+ border-end-start-radius: var(--qlib-border-start-radius);
315
+ border-start-end-radius: var(--qlib-border-end-radius);
316
+ border-end-end-radius: var(--qlib-border-end-radius);
317
+ flex-grow: 1;
318
+ flex-shrink: 1;
319
+ `,spacer:a.css`
320
+ inline-size: ${q(1)};
321
+ flex-grow: 0;
322
+ flex-shrink: 0;
323
+ display: var(--qlib-spacer-display);
324
+ `,legend:a.css`
325
+ inline-size: 100%;
326
+ margin-block-start: ${$(1)};
327
+ font-size: ${$(3)};
328
+ color: var(--qlib-color);
329
+ box-sizing: border-box;
330
+ `,icon:a.css`
331
+ margin-inline-end: ${$("gap")};
332
+ display: inline;
333
+ `},Me=(0,r.forwardRef)(((o,t)=>{var{scheme:n="gray",value:i,children:a,className:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","value","children","className"]);const{isPale:c,totalValue:d}=(0,r.useContext)(Se),b=d>0?i/d*100:0;return(0,e.jsxs)("div",Object.assign({css:De.root(n),className:l,ref:t,"data-qlib-pale":c,style:{inlineSize:`${b}%`}},s,{children:[(0,e.jsxs)("div",{css:De.barContainer,"aria-hidden":!0,children:[(0,e.jsx)("div",{css:De.spacer}),(0,e.jsx)("div",{css:De.bar})]}),(0,e.jsx)(Re,{css:De.legend,children:a})]}))}));Me.displayName="BarMeterValue";const Le={root:a.css`
334
+ margin-inline-end: ${$("gap")};
335
+ `},Fe=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("span",Object.assign({css:Le.root,className:t,ref:o},i,{children:n}))}));Fe.displayName="BarMeterValueIconContainer";const Be={root:a.css`
336
+ inline-size: 100%;
337
+ block-size: ${$(1.5)};
338
+ border-radius: ${$("max")};
339
+ background-color: ${x("gray",1)};
340
+ display: flex;
341
+ overflow: hidden;
342
+ `,bar:e=>a.css`
343
+ &[data-qlib-pale="true"] {
344
+ --qlib-bar-color: ${x(e,3)};
345
+ }
346
+ &[data-qlib-pale="false"] {
347
+ --qlib-bar-color: ${x(e,5)};
348
+ }
349
+ background-color: var(--qlib-bar-color);
350
+ `},Ae=(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",value:n,minValue:i,maxValue:a,isPale:l=!0,className:s}=r,c=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","value","minValue","maxValue","isPale","className"]);const d=Math.min(Math.max((n-i)/(a-i)*100,0),100);return(0,e.jsx)("div",Object.assign({css:Be.root,className:s,ref:o,role:"progressbar","aria-valuenow":n,"aria-valuemin":i,"aria-valuemax":a},c,{children:(0,e.jsx)("div",{css:Be.bar(t),style:{inlineSize:`${d}%`},"data-qlib-pale":l,"aria-hidden":!0})}))}));Ae.displayName="BarProgress";const Te={rootBox:e=>a.css`
351
+ // 文字サイズ
352
+ &[data-qlib-size="small"] {
353
+ --qlib-font-size: ${$(3)};
354
+ }
355
+ &[data-qlib-size="medium"],
356
+ &[data-qlib-size="large"] {
357
+ --qlib-font-size: ${$(4)}
358
+ }
359
+ // 内部の余白
360
+ &[data-qlib-size="small"] {
361
+ &[data-qlib-compact="false"] {
362
+ --qlib-padding-block: ${$(1.5)};
363
+ --qlib-padding-inline: ${$(2)};
364
+ }
365
+ &[data-qlib-compact="true"] {
366
+ --qlib-padding-block: ${$(1)};
367
+ --qlib-padding-inline: ${$(2)};
368
+ }
369
+ }
370
+ &[data-qlib-size="medium"] {
371
+ &[data-qlib-compact="false"] {
372
+ --qlib-padding-block: ${$(2)};
373
+ --qlib-padding-inline: ${$(3)};
374
+ }
375
+ &[data-qlib-compact="true"] {
376
+ --qlib-padding-block: ${$(1)};
377
+ --qlib-padding-inline: ${$(2)};
378
+ }
379
+ }
380
+ &[data-qlib-size="large"] {
381
+ &[data-qlib-compact="false"] {
382
+ --qlib-padding-block: ${$(3)};
383
+ --qlib-padding-inline: ${$(5)};
384
+ }
385
+ &[data-qlib-compact="true"] {
386
+ --qlib-padding-block: ${$(2)};
387
+ --qlib-padding-inline: ${$(3)};
388
+ }
389
+ }
390
+ // 色
391
+ &[data-qlib-variant="solid"] {
392
+ --qlib-color: ${x("white")};
393
+ --qlib-border-color: ${x(e,6)};
394
+ --qlib-background-color: ${x(e,5)};
395
+ --qlib-hover-background-color: ${x(e,4)};
396
+ }
397
+ &[data-qlib-variant="light"] {
398
+ --qlib-color: ${x(e,5)};
399
+ --qlib-border-color: ${x(e,3)};
400
+ --qlib-background-color: ${x("white")};
401
+ --qlib-hover-background-color: ${x(e,0)};
402
+ }
403
+ /**********************************************************/
404
+ padding-block: var(--qlib-padding-block);
405
+ padding-inline: var(--qlib-padding-inline);
406
+ font-size: var(--qlib-font-size);
407
+ color: var(--qlib-color);
408
+ background-color: var(--qlib-background-color);
409
+ border: solid ${q(1)} var(--qlib-border-color);
410
+ box-shadow: ${k(j(x(e,5),.2),.5)};
411
+ border-radius: ${$(1)};
412
+ line-height: 1;
413
+ text-align: center;
414
+ box-sizing: border-box;
415
+ cursor: pointer;
416
+ transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
417
+ display: flex;
418
+ align-items: center;
419
+ position: relative;
420
+ &:hover:not(:disabled) {
421
+ background-color: var(--qlib-hover-background-color);
422
+ }
423
+ &:focus-visible {
424
+ outline: solid ${q(2)} ${j(x(e,5),.6)};
425
+ outline-offset: ${q(1)};
426
+ }
427
+ &:disabled {
428
+ box-shadow: ${k(j(x(e,5),0),.5)};
429
+ opacity: 0.5;
430
+ cursor: inherit;
431
+ }
432
+ `,rootText:e=>a.css`
433
+ &[data-qlib-variant="underline"] {
434
+ --qlib-color: ${x(e,5)};
435
+ --qlib-hover-color: ${x(e,4)};
436
+ --qlib-hover-decoration-color: currentcolor;
437
+ }
438
+ &[data-qlib-variant="simple"] {
439
+ --qlib-color: ${x(e,5)};
440
+ --qlib-hover-color: ${x(e,4)};
441
+ --qlib-hover-decoration-color: transparent;
442
+ }
443
+ /**********************************************************/
444
+ color: var(--qlib-color);
445
+ border-radius: ${$(1)};
446
+ text-decoration: underline;
447
+ text-decoration-color: transparent;
448
+ cursor: pointer;
449
+ transition: color 0.2s ease, text-decoration-color 0.2s ease;
450
+ &:hover:not(:disabled) {
451
+ color: var(--qlib-hover-color);
452
+ text-decoration-color: var(--qlib-hover-decoration-color);
453
+ }
454
+ &:focus-visible {
455
+ outline: solid ${q(2)} ${j(x(e,5),.6)};
456
+ outline-offset: ${q(1)};
457
+ }
458
+ &:disabled {
459
+ opacity: 0.5;
460
+ cursor: inherit;
461
+ }
462
+ `,rootUnstyled:e=>a.css`
463
+ &[data-qlib-variant="underline"] {
464
+ --qlib-hover-decoration-color: currentcolor;
465
+ }
466
+ &[data-qlib-variant="simple"] {
467
+ --qlib-hover-decoration-color: transparent;
468
+ }
469
+ /**********************************************************/
470
+ border-radius: ${$(1)};
471
+ text-decoration: underline;
472
+ text-decoration-color: transparent;
473
+ cursor: pointer;
474
+ transition: text-decoration-color 0.2s ease;
475
+ &:hover:not(:disabled) {
476
+ text-decoration-color: var(--qlib-hover-decoration-color);
477
+ }
478
+ &:focus-visible {
479
+ outline: solid ${q(2)} ${j(x(e,5),.6)};
480
+ outline-offset: ${q(1)};
481
+ }
482
+ &:disabled {
483
+ opacity: 0.5;
484
+ cursor: inherit;
485
+ }
486
+ `,loading:a.css`
487
+ inset: ${$(0)};
488
+ background-color: var(--qlib-background-color);
489
+ border-radius: ${$(1)};
490
+ display: none;
491
+ align-items: center;
492
+ justify-content: center;
493
+ position: absolute;
494
+ &[data-qlib-loading="true"] {
495
+ display: flex;
496
+ }
497
+ `},He=(0,r.forwardRef)(((o,t)=>{var{scheme:n="primary",variant:i="solid",size:a="medium",isCompact:c=!1,type:d="button",isDisabled:b=!1,isLoading:p=!1,onClick:u,onKeyDown:f,onKeyUp:m,onMouseDown:y,onPointerDown:g,children:h,className:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","variant","size","isCompact","type","isDisabled","isLoading","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","children","className"]);const x=(0,r.useMemo)((()=>"solid"===i||"light"===i?Te.rootBox(n):"underline"===i||"simple"===i?Te.rootText(n):Te.rootUnstyled(n)),[n,i]);return(0,e.jsxs)("button",Object.assign({className:O,css:x,type:d,disabled:b||p,onClick:u,onKeyDown:f,onKeyUp:m,onMouseDown:y,onPointerDown:g,ref:t,"data-qlib-variant":i,"data-qlib-size":a,"data-qlib-compact":c,"data-qlib-loading":p},v,{children:[h,(0,e.jsx)("div",{css:Te.loading,"data-qlib-loading":p,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})})]}))}));He.displayName="Button";const Ve={root:a.css`
498
+ margin-inline-end: ${$("gap")};
499
+ display: inline;
500
+ flex-grow: 0;
501
+ flex-shrink: 0;
502
+ `},Ye=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Ve.root,className:n,ref:o},i,{children:t}))}));Ye.displayName="ButtonIconContainer";const Ue={root:a.css`
503
+ column-gap: ${$("gap")};
504
+ display: flex;
505
+ align-items: center;
506
+ `},_e=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("label",Object.assign({className:n,css:Ue.root,ref:o},i,{children:t}))}));_e.displayName="CheckableContainer";const Ke={root:a.css`
507
+ `},Ge=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({className:n,css:Ke.root,ref:o},i,{children:t}))}));Ge.displayName="CheckableLabel";const Qe=require("@floating-ui/react");const Je={root:a.css`
508
+ &[data-qlib-error="false"] {
509
+ --qlib-border-color: ${x("gray",5)};
510
+ --qlib-focus-color: ${j(x("primary",5),.6)};
511
+ &:not(:hover) {
512
+ --qlib-checked-border-color: ${x("primary",6)};
513
+ --qlib-checked-background-color: ${x("primary",5)};
514
+ }
515
+ &:hover {
516
+ --qlib-checked-border-color: ${x("primary",6)};
517
+ --qlib-checked-background-color: ${x("primary",4)};
518
+ }
519
+ }
520
+ &[data-qlib-error="true"] {
521
+ --qlib-border-color: ${x("red",5)};
522
+ --qlib-focus-color: ${j(x("red",5),.6)};
523
+ &:not(:hover) {
524
+ --qlib-checked-border-color: ${x("red",6)};
525
+ --qlib-checked-background-color: ${x("primary",5)};
526
+ }
527
+ &:hover {
528
+ --qlib-checked-border-color: ${x("red",6)};
529
+ --qlib-checked-background-color: ${x("primary",4)};
530
+ }
531
+ }
532
+ display: flex;
533
+ flex-direction: row;
534
+ align-items: center;
535
+ cursor: pointer;
536
+ `,original:a.css`
537
+ inline-size: 1px;
538
+ block-size: 1px;
539
+ position: absolute;
540
+ white-space: nowrap;
541
+ overflow: hidden;
542
+ opacity: 0;
543
+ clip: rect(0px, 0px, 0px, 0px);
544
+ clip-path: inset(50%);
545
+ `,input:a.css`
546
+ inline-size: ${$(4.5)};
547
+ block-size: ${$(4.5)};
548
+ border-radius: ${$(1)};
549
+ border: solid ${q(1)} var(--qlib-border-color);
550
+ background-color: ${x("white")};
551
+ line-height: 1;
552
+ box-sizing: border-box;
553
+ display: flex;
554
+ align-items: center;
555
+ justify-content: center;
556
+ transition: border-color 0.2s ease, background-color 0.2s ease;
557
+ flex-grow: 0;
558
+ flex-shrink: 0;
559
+ input:checked +& {
560
+ border-color: var(--qlib-checked-border-color);
561
+ background-color: var(--qlib-checked-background-color);
562
+ }
563
+ input:focus-visible +& {
564
+ outline: solid ${q(2)} var(--qlib-focus-color);
565
+ outline-offset: ${q(1)};
566
+ }
567
+ input:disabled +& {
568
+ cursor: inherit;
569
+ }
570
+ `,icon:a.css`
571
+ font-size: ${$(4)};
572
+ color: ${x("white")};
573
+ transition: color 0.2s ease, opacity 0.2s ease;
574
+ opacity: 0;
575
+ input:checked +* >&,
576
+ input:indeterminate +* >& {
577
+ opacity: 1;
578
+ }
579
+ input:indeterminate +* >& {
580
+ color: var(--qlib-checked-background-color);
581
+ }
582
+ `},We=(0,r.forwardRef)(((o,t)=>{var{isChecked:n,name:i,value:a,isError:s=!1,isRequired:c,isDisabled:d=!1,onSet:b,onChange:p,onBlur:u,className:f}=o,m=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["isChecked","name","value","isError","isRequired","isDisabled","onSet","onChange","onBlur","className"]);const y=(0,Qe.useId)(),g=(0,r.useRef)(null),h=(0,Qe.useMergeRefs)([t,g]),O=(0,r.useCallback)((e=>{const r=e.target.checked;null==b||b(r),null==p||p(e)}),[b,p]);return(0,r.useEffect)((()=>{null!=g.current&&(g.current.indeterminate="indeterminate"===n)}),[n]),(0,e.jsxs)("div",Object.assign({css:Je.root,className:f,"data-qlib-error":s},m,{children:[(0,e.jsx)("input",{type:"checkbox",css:Je.original,ref:h,id:y,checked:null!=n?!0===n:void 0,name:i,value:a,required:c,disabled:d,onChange:null!=b||null!=p?O:void 0,onBlur:u,"aria-invalid":s}),(0,e.jsx)("label",{css:Je.input,htmlFor:y,"aria-hidden":"true",children:(0,e.jsx)(l.FontAwesomeIcon,{css:Je.icon,icon:"indeterminate"===n?me.faMinus:me.faCheck})})]}))}));We.displayName="Checkbox";const Ze={root:a.css`
583
+ row-gap: ${$(2)};
584
+ display: flex;
585
+ flex-direction: column;
586
+ `},Xe=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("label",Object.assign({className:n,css:Ze.root,ref:o},i,{children:t}))}));Xe.displayName="ControlContainer";const er=e=>a.css`
587
+ &[data-qlib-max-line="true"] {
588
+ --qlib-additional-margin: 1em;
589
+ }
590
+ &[data-qlib-max-line="false"] {
591
+ --qlib-additional-margin: 0em;
592
+ }
593
+ &[data-qlib-line-height="normal"] {
594
+ ${N(1.5)};
595
+ }
596
+ &[data-qlib-line-height="narrow"] {
597
+ ${N(1.375)};
598
+ }
599
+ &[data-qlib-line-height="wide"] {
600
+ ${N(1.625)};
601
+ }
602
+ &[data-qlib-line-height="normalFixed"] {
603
+ ${P("calc(1em + 0.5 * var(--qlib-root-font-size))","calc(var(--qlib-additional-margin) * -1)")};
604
+ }
605
+ &[data-qlib-line-height="narrowFixed"] {
606
+ ${P("calc(1em + 0.375 * var(--qlib-root-font-size))","calc(var(--qlib-additional-margin) * -1)")};
607
+ }
608
+ &[data-qlib-line-height="wideFixed"] {
609
+ ${P("calc(1em + 0.625 * var(--qlib-root-font-size))","calc(var(--qlib-additional-margin) * -1)")};
610
+ }
611
+ &[data-qlib-max-line="true"] {
612
+ display: -webkit-box;
613
+ -webkit-box-orient: vertical;
614
+ -webkit-line-clamp: ${e};
615
+ overflow: hidden;
616
+ }
617
+ `,rr=(0,r.forwardRef)(((r,o)=>{var{as:t="div",lineHeight:n="normal",maxLineCount:i=null,children:a,className:l}=r,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","lineHeight","maxLineCount","children","className"]);const c=t;return(0,e.jsx)(c,Object.assign({css:er(null!=i?i:0),className:l,ref:o,"data-qlib-line-height":n,"data-qlib-max-line":null!=i},s,{children:a}))}));rr.displayName="MultiLineText";const or={root:a.css`
618
+ font-size: ${$(3)};
619
+ color: ${x("red",5)};
620
+ `},tr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(rr,Object.assign({className:n,css:or.root,as:"p",ref:o},i,{children:t}))}));tr.displayName="ControlErrorMessage";const nr={root:a.css`
621
+ font-size: ${$(3)};
622
+ color: ${x("gray",5)};
623
+ `},ir=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(rr,Object.assign({className:n,css:nr.root,ref:o,as:"p",lineHeight:"narrow"},i,{children:t}))}));ir.displayName="ControlHelper";const ar={root:a.css`
624
+ font-size: ${$(4)};
625
+ font-weight: ${v("bold")};
626
+ color: ${x("gray",7)};
627
+ `},lr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(Re,Object.assign({className:n,css:ar.root,as:"div",ref:o},i,{children:t}))}));lr.displayName="ControlLabel";const sr={root:a.css`
628
+ &[data-qlib-orientation="vertical"] {
629
+ block-size: 100%;
630
+ border-inline-start: solid ${q(1)} ${x("gray",1)};
631
+ }
632
+ &[data-qlib-orientation="horizontal"] {
633
+ inline-size: 100%;
634
+ border-block-start: solid ${q(1)} ${x("gray",1)};
635
+ }
636
+ `},cr=(0,r.forwardRef)(((r,o)=>{var{orientation:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["orientation","className"]);return(0,e.jsx)("div",Object.assign({css:sr.root,className:n,role:"separator",ref:o,"data-qlib-orientation":t},i))}));cr.displayName="Divider";a.css`
637
+ `;const dr=(0,r.forwardRef)(((r,o)=>{var{icon:t,label:n,flip:i="none",rotation:a=0,spin:s=!1,className:c}=r,d=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["icon","label","flip","rotation","spin","className"]);return(0,e.jsx)(l.FontAwesomeIcon,Object.assign({className:c,icon:t,title:n,flip:"none"===i?void 0:i,rotation:0===a?void 0:a,spin:s,ref:o},d))}));dr.displayName="GeneralIcon";const br={root:a.css`
638
+ &[data-qlib-size="small"] {
639
+ --qlib-font-size: ${$(3)};
640
+ --qlib-padding-block: ${$(1.5)};
641
+ --qlib-padding-inline: ${$(1.5)};
642
+ }
643
+ &[data-qlib-size="medium"] {
644
+ --qlib-font-size: ${$(4)};
645
+ --qlib-padding-block: ${$(2)};
646
+ --qlib-padding-inline: ${$(2)};
647
+ }
648
+ &[data-qlib-error="false"] {
649
+ --qlib-border-color: ${x("gray",3)};
650
+ --qlib-focus-border-color: ${x("primary",5)};
651
+ }
652
+ &[data-qlib-error="true"] {
653
+ --qlib-border-color: ${x("red",5)};
654
+ --qlib-focus-border-color: ${x("red",5)};
655
+ }
656
+ padding-inline: var(--qlib-padding-inline);
657
+ font-size: var(--qlib-font-size);
658
+ border: solid ${q(1)} var(--qlib-border-color);
659
+ background-color: ${x("white")};
660
+ border-radius: ${$(1)};
661
+ line-height: 1;
662
+ display: flex;
663
+ align-items: center;
664
+ &[data-qlib-disabled="true"] {
665
+ opacity: 0.5;
666
+ }
667
+ &:focus-within {
668
+ border-color: var(--qlib-focus-border-color);
669
+ outline: solid ${q(1)} var(--qlib-focus-border-color);
670
+ }
671
+ `,inputContainer:a.css`
672
+ column-gap: ${$("gap")};
673
+ display: flex;
674
+ align-items: center;
675
+ flex-grow: 1;
676
+ flex-shrink: 1;
677
+ z-index: 0;
678
+ position: relative;
679
+ `,input:a.css`
680
+ width: 1px;
681
+ height: 1px;
682
+ position: absolute;
683
+ white-space: nowrap;
684
+ overflow: hidden;
685
+ opacity: 0;
686
+ clip: rect(0px, 0px, 0px, 0px);
687
+ clip-path: inset(50%);
688
+ `,button:a.css`
689
+ block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
690
+ box-sizing: content-box;
691
+ flex-grow: 1;
692
+ flex-shrink: 1;
693
+ position: relative;
694
+ display: block;
695
+ cursor: pointer;
696
+ &:disabled {
697
+ cursor: inherit;
698
+ }
699
+ `,builtinAddon:a.css`
700
+ color: ${x("gray",5)};
701
+ flex-grow: 0;
702
+ flex-shrink: 0;
703
+ `},pr=o=>{var{value:t,name:n,size:i="medium",multiple:a,accept:l,autoFocus:c,isError:d=!1,isRequired:b,isDisabled:p,onSet:u,onChange:f,onBlur:m,children:y,className:g}=o,h=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","multiple","accept","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const O=(0,r.useRef)(null),[v,x]=(0,r.useState)(""),j=(0,r.useCallback)((function(e){var r,o;const t=Array.from(null!==(r=e.target.files)&&void 0!==r?r:[]);a?null==u||u(t):null==u||u(null!==(o=t[0])&&void 0!==o?o:null),null==f||f(e),x(ur(t))}),[a,u,f]),w=(0,r.useCallback)((function(){var e;null===(e=O.current)||void 0===e||e.click()}),[]);return(0,e.jsx)("div",{className:g,css:br.root,"data-qlib-size":i,"data-qlib-disabled":p,"data-qlib-error":d,children:(0,e.jsxs)("div",{css:br.inputContainer,children:[(0,e.jsx)("input",Object.assign({css:br.input,ref:O,name:n,type:"file",multiple:a,accept:l,autoFocus:c,required:b,disabled:p,onChange:j,onBlur:m,"aria-invalid":d},h)),(0,e.jsx)("button",{css:br.button,disabled:p,onClick:w,"aria-hidden":!0,children:v}),(0,e.jsx)("div",{css:br.builtinAddon,children:(0,e.jsx)(dr,{icon:a?s.faFiles:s.faFile})})]})})};function ur(e){return Array.isArray(e)?e.map(ur).join(", "):null!=e?e.name:""}pr.displayName="FileInput";const fr={root:a.css`
704
+ padding-block: ${$(1)};
705
+ padding-inline-start: ${$(3)};
706
+ font-size: ${$(5)};
707
+ font-weight: ${v("bold")};
708
+ border-inline-start: solid ${$(1)} ${x("primary",5)};
709
+ display: flex;
710
+ align-items: center;
711
+ &:after {
712
+ margin-inline-start: ${$(3)};
713
+ border-block-start: dashed ${q(1)} ${x("primary",5)};
714
+ opacity: 0.6;
715
+ flex-grow: 1;
716
+ content: "";
717
+ }
718
+ `},mr=(0,r.forwardRef)(((r,o)=>{var{as:t="h2",className:n,children:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","className","children"]);const l=t;return(0,e.jsx)(l,Object.assign({css:fr.root,className:n,ref:o},a,{children:i}))}));mr.displayName="Heading";const yr={plus:s.faPlus,minus:s.faTimes,edit:s.faPen,delete:s.faTrashAlt,search:s.faSearch,upload:s.faUpload,copy:s.faCopy,confirm:s.faCheck,accept:s.faThumbsUp,refuse:s.faBan,move:s.faArrowsUpDownLeftRight,bulk:s.faBucket,login:s.faSignInAlt,logout:s.faSignOutAlt,correct:s.faO,wrong:s.faTimes,first:s.faArrowLeftToLine,previous:s.faArrowLeft,next:s.faArrowRight,last:s.faArrowRightToLine,success:s.faCircleCheck,error:s.faTriangleExclamation,caution:s.faTriangleExclamation,info:s.faCircleInfo,more:s.faAngleDown,less:s.faAngleUp,back:s.faLeft,empty:s.faFaceDotted,menu:s.faBars,grip:s.faGripVertical,ellipsis:s.faEllipsisH};const gr=(0,r.forwardRef)(((r,o)=>{var{name:t,label:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["name","label","className"]);const s=yr[t];return(0,e.jsx)(l.FontAwesomeIcon,Object.assign({className:i,icon:s,title:n,ref:o},a))}));gr.displayName="Icon";const hr={rootBox:e=>a.css`
719
+ // 文字サイズ
720
+ &[data-qlib-size="small"] {
721
+ --qlib-font-size: ${$(3)};
722
+ }
723
+ &[data-qlib-size="medium"] {
724
+ --qlib-font-size: ${$(4)}
725
+ }
726
+ &[data-qlib-size="large"] {
727
+ --qlib-font-size: ${$(6)}
728
+ }
729
+ // 内部の余白
730
+ &[data-qlib-size="small"] {
731
+ --qlib-padding-block: ${$(1.5)};
732
+ --qlib-inline-size: ${$(6)};
733
+ }
734
+ &[data-qlib-size="medium"] {
735
+ --qlib-padding-block: ${$(2)};
736
+ --qlib-inline-size: ${$(8)};
737
+ }
738
+ &[data-qlib-size="large"] {
739
+ --qlib-padding-block: ${$(3)};
740
+ --qlib-inline-size: ${$(12)};
741
+ }
742
+ // 色
743
+ &[data-qlib-variant="solid"] {
744
+ --qlib-color: ${x("white")};
745
+ --qlib-border-color: ${x(e,6)};
746
+ --qlib-background-color: ${x(e,5)};
747
+ --qlib-hover-background-color: ${x(e,4)};
748
+ }
749
+ &[data-qlib-variant="light"] {
750
+ --qlib-color: ${x(e,5)};
751
+ --qlib-border-color: ${x(e,3)};
752
+ --qlib-background-color: ${x("white")};
753
+ --qlib-hover-background-color: ${x(e,0)};
754
+ }
755
+ /**********************************************************/
756
+ inline-size: var(--qlib-inline-size);
757
+ padding-block: var(--qlib-padding-block);
758
+ font-size: var(--qlib-font-size);
759
+ color: var(--qlib-color);
760
+ background-color: var(--qlib-background-color);
761
+ border: solid ${q(1)} var(--qlib-border-color);
762
+ box-shadow: ${k(j(x(e,5),.2),.5)};
763
+ border-radius: ${$(1)};
764
+ line-height: 1;
765
+ text-align: center;
766
+ box-sizing: border-box;
767
+ cursor: pointer;
768
+ transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
769
+ display: flex;
770
+ align-items: center;
771
+ justify-content: center;
772
+ position: relative;
773
+ &:hover:not(:disabled) {
774
+ background-color: var(--qlib-hover-background-color);
775
+ }
776
+ &:focus-visible {
777
+ outline: solid ${q(2)} ${j(x(e,5),.6)};
778
+ outline-offset: ${q(1)};
779
+ }
780
+ &:disabled {
781
+ box-shadow: ${k(j(x(e,5),0),.5)};
782
+ opacity: 0.5;
783
+ cursor: inherit;
784
+ }
785
+ `,loading:a.css`
786
+ inset: ${$(0)};
787
+ background-color: var(--qlib-background-color);
788
+ border-radius: ${$(1)};
789
+ display: none;
790
+ align-items: center;
791
+ justify-content: center;
792
+ position: absolute;
793
+ &[data-qlib-loading="true"] {
794
+ display: flex;
795
+ }
796
+ `},Or=(0,r.forwardRef)(((r,o)=>{var{label:t,scheme:n="primary",variant:i="solid",size:a="medium",type:c="button",isDisabled:d=!1,isLoading:b=!1,onClick:p,onKeyDown:u,onKeyUp:f,onMouseDown:m,onPointerDown:y,className:g,children:h}=r,O=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["label","scheme","variant","size","type","isDisabled","isLoading","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","className","children"]);return(0,e.jsxs)("button",Object.assign({className:g,css:hr.rootBox(n),type:c,disabled:d||b,onClick:p,onKeyDown:u,onKeyUp:f,onMouseDown:m,onPointerDown:y,ref:o,"aria-label":t,"data-qlib-variant":i,"data-qlib-size":a,"data-qlib-loading":b},O,{children:[h,(0,e.jsx)("div",{css:hr.loading,"data-qlib-loading":b,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})})]}))}));Or.displayName="IconButton";const vr={root:a.css`
797
+ flex-grow: 0;
798
+ flex-shrink: 0;
799
+ `},xr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:vr.root,className:n,ref:o},i,{children:t}))}));xr.displayName="InputLeftAddon";const jr={root:a.css`
800
+ flex-grow: 0;
801
+ flex-shrink: 0;
802
+ `},wr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:jr.root,className:n,ref:o},i,{children:t}))}));wr.displayName="InputRightAddon";const $r={root:a.css`
803
+ &[data-qlib-size="small"] {
804
+ --qlib-font-size: ${$(3)};
805
+ --qlib-padding-block: ${$(1.5)};
806
+ --qlib-padding-inline: ${$(1.5)};
807
+ }
808
+ &[data-qlib-size="medium"] {
809
+ --qlib-font-size: ${$(4)};
810
+ --qlib-padding-block: ${$(2)};
811
+ --qlib-padding-inline: ${$(2)};
812
+ }
813
+ &[data-qlib-error="false"] {
814
+ --qlib-border-color: ${x("gray",3)};
815
+ --qlib-focus-border-color: ${x("primary",5)};
816
+ }
817
+ &[data-qlib-error="true"] {
818
+ --qlib-border-color: ${x("red",5)};
819
+ --qlib-focus-border-color: ${x("red",5)};
820
+ }
821
+ padding-inline: var(--qlib-padding-inline);
822
+ font-size: var(--qlib-font-size);
823
+ border: solid ${q(1)} var(--qlib-border-color);
824
+ background-color: ${x("white")};
825
+ border-radius: ${$(1)};
826
+ line-height: 1;
827
+ display: flex;
828
+ align-items: center;
829
+ position: relative;
830
+ z-index: 0;
831
+ &[data-qlib-disabled="true"] {
832
+ opacity: 0.5;
833
+ }
834
+ &:focus-within {
835
+ border-color: var(--qlib-focus-border-color);
836
+ outline: solid ${q(1)} var(--qlib-focus-border-color);
837
+ }
838
+ `,inputContainer:a.css`
839
+ column-gap: ${$("gap")};
840
+ display: flex;
841
+ align-items: center;
842
+ flex-grow: 1;
843
+ flex-shrink: 1;
844
+ z-index: 0;
845
+ position: relative;
846
+ `,input:a.css`
847
+ block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
848
+ box-sizing: content-box;
849
+ flex-grow: 1;
850
+ flex-shrink: 1;
851
+ &:disabled {
852
+ cursor: inherit;
853
+ }
854
+ &::-webkit-calendar-picker-indicator {
855
+ inline-size: var(--qlib-font-size);
856
+ block-size: 100%;
857
+ inset-block: ${$(0)};
858
+ inset-inline-end: ${$(0)};
859
+ padding: ${$(0)};
860
+ background: transparent;
861
+ position: absolute;
862
+ cursor: pointer;
863
+ z-index: 1;
864
+ }
865
+ `,builtinAddon:a.css`
866
+ color: ${x("gray",5)};
867
+ flex-grow: 0;
868
+ flex-shrink: 0;
869
+ `},qr=(0,r.forwardRef)(((o,t)=>{var{value:n,name:i,size:a="medium",type:l="text",autoComplete:c="off",autoFocus:d,isError:b=!1,isRequired:p,isDisabled:u,onSet:f,onChange:m,onBlur:y,children:g,className:h}=o,O=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","type","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const v=(0,r.useCallback)((e=>{const r=e.target.value;null==f||f(r),null==m||m(e)}),[f,m]),x=Ne(g),j=x.find((e=>e.type===xr)),w=x.find((e=>e.type===wr));return(0,e.jsx)("label",{className:h,css:$r.root,"data-qlib-size":a,"data-qlib-disabled":u,"data-qlib-error":b,children:(0,e.jsxs)("div",{css:$r.inputContainer,children:[j,(0,e.jsx)("input",Object.assign({css:$r.input,ref:t,value:n,name:i,type:l,autoComplete:c,autoFocus:d,required:p,disabled:u,onChange:null!=f||null!=m?v:void 0,onBlur:y,"aria-invalid":b},O)),kr(l)&&(0,e.jsx)("div",{css:$r.builtinAddon,children:(0,e.jsx)(dr,{icon:"time"===l?s.faClock:s.faCalendar})}),w]})})}));qr.displayName="Input";const kr=e=>"date"===e||"time"===e||"datetime-local"===e||"month"===e||"week"===e;const Nr=e=>a.css`
870
+ // 文字サイズ
871
+ &[data-qlib-size="small"] {
872
+ --qlib-font-size: ${$(3)};
873
+ }
874
+ &[data-qlib-size="medium"],
875
+ &[data-qlib-size="large"] {
876
+ --qlib-font-size: ${$(4)}
877
+ }
878
+ // 内部の余白
879
+ &[data-qlib-size="small"] {
880
+ &[data-qlib-compact="false"] {
881
+ --qlib-padding-block: ${$(1.5)};
882
+ --qlib-padding-inline: ${$(2)};
883
+ }
884
+ &[data-qlib-compact="true"] {
885
+ --qlib-padding-block: ${$(1)};
886
+ --qlib-padding-inline: ${$(2)};
887
+ }
888
+ }
889
+ &[data-qlib-size="medium"] {
890
+ &[data-qlib-compact="false"] {
891
+ --qlib-padding-block: ${$(2)};
892
+ --qlib-padding-inline: ${$(3)};
893
+ }
894
+ &[data-qlib-compact="true"] {
895
+ --qlib-padding-block: ${$(1)};
896
+ --qlib-padding-inline: ${$(2)};
897
+ }
898
+ }
899
+ &[data-qlib-size="large"] {
900
+ &[data-qlib-compact="false"] {
901
+ --qlib-padding-block: ${$(3)};
902
+ --qlib-padding-inline: ${$(5)};
903
+ }
904
+ &[data-qlib-compact="true"] {
905
+ --qlib-padding-block: ${$(2)};
906
+ --qlib-padding-inline: ${$(3)};
907
+ }
908
+ }
909
+ // 色
910
+ &[data-qlib-variant="solid"] {
911
+ --qlib-color: ${x("white")};
912
+ --qlib-border-color: ${x(e,6)};
913
+ --qlib-background-color: ${x(e,5)};
914
+ --qlib-hover-background-color: ${x(e,4)};
915
+ }
916
+ &[data-qlib-variant="light"] {
917
+ --qlib-color: ${x(e,5)};
918
+ --qlib-border-color: ${x(e,3)};
919
+ --qlib-background-color: ${x("white")};
920
+ --qlib-hover-background-color: ${x(e,0)};
921
+ }
922
+ /**********************************************************/
923
+ padding-block: var(--qlib-padding-block);
924
+ padding-inline: var(--qlib-padding-inline);
925
+ font-size: var(--qlib-font-size);
926
+ color: var(--qlib-color);
927
+ background-color: var(--qlib-background-color);
928
+ border: solid ${q(1)} var(--qlib-border-color);
929
+ box-shadow: ${k(j(x(e,5),.2),.5)};
930
+ border-radius: ${$(1)};
931
+ line-height: 1;
932
+ text-align: center;
933
+ box-sizing: border-box;
934
+ cursor: pointer;
935
+ transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
936
+ display: flex;
937
+ align-items: center;
938
+ position: relative;
939
+ &:hover:not(:disabled) {
940
+ background-color: var(--qlib-hover-background-color);
941
+ }
942
+ &:focus-visible {
943
+ outline: solid ${q(2)} ${j(x(e,5),.6)};
944
+ outline-offset: ${q(1)};
945
+ }
946
+ &:disabled {
947
+ box-shadow: ${k(j(x(e,5),0),.5)};
948
+ opacity: 0.5;
949
+ cursor: inherit;
950
+ }
951
+ `,Pr=e=>a.css`
952
+ &[data-qlib-variant="underline"] {
953
+ --qlib-color: ${x(e,5)};
954
+ --qlib-hover-color: ${x(e,4)};
955
+ --qlib-hover-decoration-color: currentcolor;
956
+ }
957
+ &[data-qlib-variant="simple"] {
958
+ --qlib-color: ${x(e,5)};
959
+ --qlib-hover-color: ${x(e,4)};
960
+ --qlib-hover-decoration-color: transparent;
961
+ }
962
+ /**********************************************************/
963
+ color: var(--qlib-color);
964
+ border-radius: ${$(1)};
965
+ text-decoration: underline;
966
+ text-decoration-color: transparent;
967
+ cursor: pointer;
968
+ transition: color 0.2s ease, text-decoration-color 0.2s ease;
969
+ &:hover:not(:disabled) {
970
+ color: var(--qlib-hover-color);
971
+ text-decoration-color: var(--qlib-hover-decoration-color);
972
+ }
973
+ &:focus-visible {
974
+ outline: solid ${q(2)} ${j(x(e,5),.6)};
975
+ outline-offset: ${q(1)};
976
+ }
977
+ &:disabled {
978
+ opacity: 0.5;
979
+ cursor: inherit;
980
+ }
981
+ `,Sr=e=>a.css`
982
+ &[data-qlib-variant="underline"] {
983
+ --qlib-hover-decoration-color: currentcolor;
984
+ }
985
+ &[data-qlib-variant="simple"] {
986
+ --qlib-hover-decoration-color: transparent;
987
+ }
988
+ /**********************************************************/
989
+ border-radius: ${$(1)};
990
+ text-decoration: underline;
991
+ text-decoration-color: transparent;
992
+ cursor: pointer;
993
+ transition: text-decoration-color 0.2s ease;
994
+ &:hover:not(:disabled) {
995
+ text-decoration-color: var(--qlib-hover-decoration-color);
996
+ }
997
+ &:focus-visible {
998
+ outline: solid ${q(2)} ${j(x(e,5),.6)};
999
+ outline-offset: ${q(1)};
1000
+ }
1001
+ &:disabled {
1002
+ opacity: 0.5;
1003
+ cursor: inherit;
1004
+ }
1005
+ `,zr=(a.css`
1006
+ inset: ${$(0)};
1007
+ background-color: var(--qlib-background-color);
1008
+ border-radius: ${$(1)};
1009
+ display: none;
1010
+ align-items: center;
1011
+ justify-content: center;
1012
+ position: absolute;
1013
+ &[data-qlib-loading="true"] {
1014
+ display: flex;
1015
+ }
1016
+ `,(0,r.forwardRef)(((o,t)=>{var{href:n,target:i,scheme:a="primary",variant:l="underline",size:s="medium",isCompact:c=!1,onClick:d,onKeyDown:b,onKeyUp:p,onMouseDown:u,onPointerDown:f,children:m,className:y}=o,g=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["href","target","scheme","variant","size","isCompact","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","children","className"]);const h=(0,r.useMemo)((()=>"solid"===l||"light"===l?Nr(a):"underline"===l||"simple"===l?Pr(a):Sr(a)),[a,l]);return(0,e.jsx)("a",Object.assign({className:y,css:h,href:n,target:i,onClick:d,onKeyDown:b,onKeyUp:p,onMouseDown:u,onPointerDown:f,ref:t,"data-qlib-variant":l,"data-qlib-size":s,"data-qlib-compact":c},g,{children:m}))})));zr.displayName="Link";const Cr={root:a.css`
1017
+ margin-inline-end: ${$("gap")};
1018
+ display: inline;
1019
+ flex-grow: 0;
1020
+ flex-shrink: 0;
1021
+ `},Ir=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Cr.root,className:n,ref:o},i,{children:t}))}));Ir.displayName="LinkIconContainer";const Er=e=>a.css`
1022
+ color: ${null!=e?x(e,5):"inherit"};
1023
+ `,Rr=(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","className"]);const{trans:a}=I("loadingIcon");return(0,e.jsx)(l.FontAwesomeIcon,Object.assign({className:n,css:Er(t),icon:s.faCircleNotch,spin:!0,ref:o,"aria-label":a("label")},i))}));Rr.displayName="LoadingIcon";const Dr=require("body-scroll-lock"),Mr=require("react-modal");var Lr=o.n(Mr);const Fr={overlay:a.css`
1024
+ background-color: ${j(x("black"),.6)};
1025
+ position: fixed;
1026
+ inset: 0rem;
1027
+ opacity: 0;
1028
+ transition: opacity 0.2s ease;
1029
+ &.ReactModal__Overlay--after-open {
1030
+ opacity: 1;
1031
+ }
1032
+ &.ReactModal__Overlay--before-close {
1033
+ opacity: 0;
1034
+ }
1035
+ `},Br=({isOpen:o,label:t,onClose:n,children:i,className:l})=>{const[s,c]=(0,r.useState)(!0),d=(0,r.useCallback)((()=>{c(!1),null==n||n()}),[n]),b=void 0!==o?o:s;return(0,r.useEffect)((()=>{b?Dr.disableBodyScroll(document.body,{reserveScrollBarGap:!0}):Dr.enableBodyScroll(document.body)}),[b]),(0,e.jsx)(a.ClassNames,{children:({css:n})=>(0,e.jsx)(Lr(),{isOpen:void 0!==o?o:s,contentLabel:t,onRequestClose:d,className:"qlib-modal",overlayClassName:[l,n(Fr.overlay)].join(" "),portalClassName:"qlib-modal-portal",bodyOpenClassName:null,htmlOpenClassName:null,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0,contentElement:e=>(0,r.cloneElement)(i,e),closeTimeoutMS:200})})};Br.displayName="Modal";const Ar={root:a.css`
1036
+ flex-grow: 0;
1037
+ flex-shrink: 0;
1038
+ `},Tr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Ar.root,className:n,ref:o},i,{children:t}))}));Tr.displayName="NumberInputLeftAddon";const Hr={root:a.css`
1039
+ &[data-qlib-size="small"] {
1040
+ --qlib-font-size: ${$(3)};
1041
+ --qlib-padding-block: ${$(1.5)};
1042
+ --qlib-padding-inline: ${$(1.5)};
1043
+ }
1044
+ &[data-qlib-size="medium"] {
1045
+ --qlib-font-size: ${$(4)};
1046
+ --qlib-padding-block: ${$(2)};
1047
+ --qlib-padding-inline: ${$(2)};
1048
+ }
1049
+ &[data-qlib-error="false"] {
1050
+ --qlib-border-color: ${x("gray",3)};
1051
+ --qlib-focus-border-color: ${x("primary",5)};
1052
+ }
1053
+ &[data-qlib-error="true"] {
1054
+ --qlib-border-color: ${x("red",5)};
1055
+ --qlib-focus-border-color: ${x("red",5)};
1056
+ }
1057
+ padding-inline: var(--qlib-padding-inline);
1058
+ font-size: var(--qlib-font-size);
1059
+ border: solid ${q(1)} var(--qlib-border-color);
1060
+ background-color: ${x("white")};
1061
+ border-radius: ${$(1)};
1062
+ line-height: 1;
1063
+ display: flex;
1064
+ align-items: center;
1065
+ overflow: hidden;
1066
+ &[data-qlib-disabled="true"] {
1067
+ opacity: 0.5;
1068
+ }
1069
+ &:focus-within {
1070
+ border-color: var(--qlib-focus-border-color);
1071
+ outline: solid ${q(1)} var(--qlib-focus-border-color);
1072
+ }
1073
+ `,inputContainer:a.css`
1074
+ column-gap: ${$("gap")};
1075
+ display: flex;
1076
+ align-items: center;
1077
+ flex-grow: 1;
1078
+ flex-shrink: 1;
1079
+ z-index: 0;
1080
+ position: relative;
1081
+ `,input:a.css`
1082
+ block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
1083
+ box-sizing: content-box;
1084
+ flex-grow: 1;
1085
+ flex-shrink: 1;
1086
+ position: relative;
1087
+ appearance: textfield;
1088
+ -moz-appearance: textfield;
1089
+ &:disabled {
1090
+ cursor: inherit;
1091
+ }
1092
+ &::-webkit-inner-spin-button {
1093
+ appearance: none;
1094
+ }
1095
+ `,buttonList:a.css`
1096
+ inline-size: ${$(6)};
1097
+ block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
1098
+ margin-inline-end: calc(var(--qlib-padding-block) * -1);
1099
+ display: flex;
1100
+ flex-direction: column;
1101
+ border-inline-start: solid ${q(1)} ${x("gray",3)};
1102
+ align-self: stretch;
1103
+ flex-grow: 0;
1104
+ flex-shrink: 0;
1105
+ `,button:a.css`
1106
+ color: ${x("gray",5)};
1107
+ background-color: ${x("white")};
1108
+ display: flex;
1109
+ align-items: center;
1110
+ justify-content: center;
1111
+ flex-grow: 1;
1112
+ flex-shrink: 1;
1113
+ cursor: pointer;
1114
+ transition: background-color 0.2s ease;
1115
+ &:hover:not([data-disabled="true"]) {
1116
+ background-color: ${x("gray",0)};
1117
+ }
1118
+ `,buttonDivider:a.css`
1119
+ border-block-start: solid ${q(1)} ${x("gray",3)};
1120
+ `},Vr=(0,r.forwardRef)(((o,t)=>{var{value:n,name:i,size:a="medium",max:c,min:d,step:b,autoComplete:p="off",autoFocus:u,isError:f=!1,isRequired:m,isDisabled:y,onSet:g,onChange:h,onBlur:O,children:v,className:x}=o,j=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","max","min","step","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const w=(0,r.useRef)(null),$=(0,Qe.useMergeRefs)([t,w]),q=(0,r.useCallback)((e=>{const r=e.target.value;null==g||g(r),null==h||h(e)}),[g,h]),k=(0,r.useCallback)((e=>{null!=w.current&&(w.current.stepUp(),w.current.dispatchEvent(new Event("change",{bubbles:!0})),null==g||g(w.current.value))}),[g]),N=(0,r.useCallback)((e=>{null!=w.current&&(w.current.stepDown(),w.current.dispatchEvent(new Event("change",{bubbles:!0})),null==g||g(w.current.value))}),[g]),P=Ne(v).find((e=>e.type===Tr));return(0,e.jsx)("label",{className:x,css:Hr.root,"data-qlib-size":a,"data-qlib-disabled":y,"data-qlib-error":f,children:(0,e.jsxs)("div",{css:Hr.inputContainer,children:[P,(0,e.jsx)("input",Object.assign({css:Hr.input,ref:$,value:n,name:i,type:"number",max:c,min:d,step:b,autoComplete:p,autoFocus:u,required:m,disabled:y,onChange:null!=g||null!=h?q:void 0,onBlur:O,"aria-invalid":f},j)),(0,e.jsxs)("div",{css:Hr.buttonList,children:[(0,e.jsx)("button",{css:Hr.button,type:"button",onClick:k,tabIndex:-1,"data-disabled":y,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleUp})}),(0,e.jsx)("hr",{css:Hr.buttonDivider,"aria-hidden":!0}),(0,e.jsx)("button",{css:Hr.button,type:"button",onClick:N,tabIndex:-1,"data-disabled":y,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleDown})})]})]})})}));Vr.displayName="NumberInput";const Yr={root:a.css`
1121
+ flex-grow: 0;
1122
+ flex-shrink: 0;
1123
+ `},Ur=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Yr.root,className:n,ref:o},i,{children:t}))}));Ur.displayName="PasswordInputLeftAddon";const _r={root:a.css`
1124
+ flex-grow: 0;
1125
+ flex-shrink: 0;
1126
+ `},Kr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:_r.root,className:n,ref:o},i,{children:t}))}));Kr.displayName="PasswordInputRightAddon";const Gr={root:a.css`
1127
+ &[data-qlib-size="small"] {
1128
+ --qlib-font-size: ${$(3)};
1129
+ --qlib-padding-block: ${$(1.5)};
1130
+ --qlib-padding-inline: ${$(1.5)};
1131
+ }
1132
+ &[data-qlib-size="medium"] {
1133
+ --qlib-font-size: ${$(4)};
1134
+ --qlib-padding-block: ${$(2)};
1135
+ --qlib-padding-inline: ${$(2)};
1136
+ }
1137
+ &[data-qlib-error="false"] {
1138
+ --qlib-border-color: ${x("gray",3)};
1139
+ --qlib-focus-border-color: ${x("primary",5)};
1140
+ }
1141
+ &[data-qlib-error="true"] {
1142
+ --qlib-border-color: ${x("red",5)};
1143
+ --qlib-focus-border-color: ${x("red",5)};
1144
+ }
1145
+ padding-inline: var(--qlib-padding-inline);
1146
+ font-size: var(--qlib-font-size);
1147
+ border: solid ${q(1)} var(--qlib-border-color);
1148
+ background-color: ${x("white")};
1149
+ border-radius: ${$(1)};
1150
+ line-height: 1;
1151
+ display: flex;
1152
+ align-items: center;
1153
+ &[data-qlib-disabled="true"] {
1154
+ opacity: 0.5;
1155
+ }
1156
+ &:focus-within {
1157
+ border-color: var(--qlib-focus-border-color);
1158
+ outline: solid ${q(1)} var(--qlib-focus-border-color);
1159
+ }
1160
+ `,inputContainer:a.css`
1161
+ column-gap: ${$("gap")};
1162
+ display: flex;
1163
+ align-items: center;
1164
+ flex-grow: 1;
1165
+ flex-shrink: 1;
1166
+ `,input:a.css`
1167
+ block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
1168
+ box-sizing: content-box;
1169
+ flex-grow: 1;
1170
+ flex-shrink: 1;
1171
+ &:disabled {
1172
+ cursor: inherit;
1173
+ }
1174
+ `,button:a.css`
1175
+ inline-size: 1.1em;
1176
+ block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
1177
+ color: ${x("primary",5)};
1178
+ border-radius: ${$(1)};
1179
+ display: flex;
1180
+ align-items: center;
1181
+ justify-content: center;
1182
+ cursor: pointer;
1183
+ transition: color 0.2s ease;
1184
+ flex-grow: 0;
1185
+ flex-shrink: 0;
1186
+ &:hover {
1187
+ color: ${x("primary",4)};
1188
+ }
1189
+ &:focus-visible {
1190
+ outline: solid ${q(2)} ${j(x("primary",4),.6)};
1191
+ outline-offset: ${q(1)};
1192
+ }
1193
+ `},Qr=(0,r.forwardRef)(((o,t)=>{var{value:n,name:i,size:a="medium",initialReveal:c=!1,autoComplete:d="current-password",autoFocus:b,isError:p=!1,isRequired:u,isDisabled:f,onSet:m,onChange:y,onBlur:g,children:h,className:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","initialReveal","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const x=(0,r.useId)(),[j,w]=(0,r.useState)(c),$=(0,r.useCallback)((()=>{w((e=>!e))}),[]),q=(0,r.useCallback)((e=>{const r=e.target.value;null==m||m(r),null==y||y(e)}),[m,y]),k=Ne(h),N=k.find((e=>e.type===Ur)),P=k.find((e=>e.type===Kr));return(0,e.jsx)("label",Object.assign({className:O,css:Gr.root,"data-qlib-size":a,"data-qlib-disabled":f,"data-qlib-error":p},v,{children:(0,e.jsxs)("div",{css:Gr.inputContainer,children:[N,(0,e.jsx)("input",Object.assign({css:Gr.input,id:x,ref:t,value:n,name:i,type:j?"input":"password",autoComplete:d,autoFocus:b,required:u,disabled:f,onChange:null!=m||null!=y?q:void 0,onBlur:g,"aria-invalid":p},v)),(0,e.jsx)("button",{css:Gr.button,type:"button",onClick:$,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:j?s.faEyeSlash:s.faEye})}),P]})}))}));Qr.displayName="PasswordInput";const Jr=(0,r.createContext)(void 0),Wr=Jr.Provider;const Zr={root:a.css`
1194
+ &[data-qlib-error="false"] {
1195
+ --qlib-border-color: ${x("gray",5)};
1196
+ --qlib-focus-color: ${j(x("primary",5),.6)};
1197
+ &:not(:hover) {
1198
+ --qlib-checked-border-color: ${x("primary",6)};
1199
+ --qlib-checked-background-color: ${x("primary",5)};
1200
+ }
1201
+ &:hover {
1202
+ --qlib-checked-border-color: ${x("primary",6)};
1203
+ --qlib-checked-background-color: ${x("primary",4)};
1204
+ }
1205
+ }
1206
+ &[data-qlib-error="true"] {
1207
+ --qlib-border-color: ${x("red",5)};
1208
+ --qlib-focus-color: ${j(x("red",5),.6)};
1209
+ &:not(:hover) {
1210
+ --qlib-checked-border-color: ${x("red",6)};
1211
+ --qlib-checked-background-color: ${x("primary",5)};
1212
+ }
1213
+ &:hover {
1214
+ --qlib-checked-border-color: ${x("red",6)};
1215
+ --qlib-checked-background-color: ${x("primary",4)};
1216
+ }
1217
+ }
1218
+ display: flex;
1219
+ flex-direction: row;
1220
+ align-items: center;
1221
+ cursor: pointer;
1222
+ `,original:a.css`
1223
+ inline-size: 1px;
1224
+ block-size: 1px;
1225
+ position: absolute;
1226
+ white-space: nowrap;
1227
+ overflow: hidden;
1228
+ opacity: 0;
1229
+ clip: rect(0px, 0px, 0px, 0px);
1230
+ clip-path: inset(50%);
1231
+ `,input:a.css`
1232
+ inline-size: ${$(4.5)};
1233
+ block-size: ${$(4.5)};
1234
+ border-radius: ${$("max")};
1235
+ border: solid ${q(1)} var(--qlib-border-color);
1236
+ background-color: ${x("white")};
1237
+ line-height: 1;
1238
+ box-sizing: border-box;
1239
+ display: flex;
1240
+ align-items: center;
1241
+ justify-content: center;
1242
+ transition: border-color 0.2s ease, background-color 0.2s ease;
1243
+ flex-grow: 0;
1244
+ flex-shrink: 0;
1245
+ input:checked +& {
1246
+ border-color: var(--qlib-checked-border-color);
1247
+ background-color: var(--qlib-checked-background-color);
1248
+ }
1249
+ input:focus-visible +& {
1250
+ outline: solid ${q(2)} var(--qlib-focus-color);
1251
+ outline-offset: ${q(1)};
1252
+ }
1253
+ input:disabled +& {
1254
+ cursor: inherit;
1255
+ }
1256
+ `,icon:a.css`
1257
+ inline-size: ${$(2.5)};
1258
+ block-size: ${$(2.5)};
1259
+ border-radius: ${$("max")};
1260
+ background-color: ${x("white")};
1261
+ opacity: 0;
1262
+ transition: background-color 0.2s ease, opacity 0.2s ease;
1263
+ input:checked +* >& {
1264
+ opacity: 1;
1265
+ }
1266
+ `},Xr=(0,r.forwardRef)(((o,t)=>{var n,{isChecked:i,name:a,value:l,isError:s=!1,isRequired:c,isDisabled:d=!1,onSet:b,onChange:p,onBlur:u,className:f}=o,m=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["isChecked","name","value","isError","isRequired","isDisabled","onSet","onChange","onBlur","className"]);const y=(0,r.useContext)(Jr),g=(0,Qe.useId)(),h=(0,r.useCallback)((e=>{if(null!=(null==y?void 0:y.onSet)&&null!=l)y.onSet(l);else{const r=e.target.checked;null==b||b(r)}null==p||p(e)}),[l,y,b,p]);return(0,e.jsxs)("div",Object.assign({css:Zr.root,className:f,"data-qlib-error":s},m,{children:[(0,e.jsx)("input",{type:"radio",css:Zr.original,ref:t,id:g,value:l,name:null!==(n=null==y?void 0:y.name)&&void 0!==n?n:a,checked:null!=(null==y?void 0:y.value)?y.value===l:null!=i?!0===i:void 0,required:c,disabled:d,onChange:null!=(null==y?void 0:y.onSet)||null!=b||null!=p?h:void 0,onBlur:u,"aria-invalid":s}),(0,e.jsx)("label",{css:Zr.input,htmlFor:g,"aria-hidden":"true",children:(0,e.jsx)("div",{css:Zr.icon})})]}))}));Xr.displayName="Radio";const eo=({value:o,onSet:t,children:n})=>{const i=(0,Qe.useId)(),a=(0,r.useMemo)((()=>({name:i,value:o,onSet:t})),[i,o,t]);return(0,e.jsx)(Wr,{value:a,children:n})};eo.displayName="RadioGroup";const ro={root:a.css`
1267
+ &[data-qlib-orientation="horizontal"] {
1268
+ --qlib-flex-direction: row;
1269
+ }
1270
+ &[data-qlib-orientation="vertical"] {
1271
+ --qlib-flex-direction: column;
1272
+ }
1273
+ margin-block: ${$(1)}; // ControlContainer での表示を自然にするためにマージン空ける (微妙かも)
1274
+ column-gap: ${$(4)};
1275
+ row-gap: ${$(2)};
1276
+ display: flex;
1277
+ flex-direction: var(--qlib-flex-direction);
1278
+ `},oo=(0,r.forwardRef)((({orientation:r="vertical",children:o},t)=>(0,e.jsx)(eo,{children:(0,e.jsx)("div",{css:ro.root,ref:t,"aria-orientation":r,"data-qlib-orientation":r,children:o})})));oo.displayName="AlignedRadioGroup";const to=a.css`
1279
+ [data-simplebar] {
1280
+ position: relative;
1281
+ flex-direction: column;
1282
+ flex-wrap: wrap;
1283
+ justify-content: flex-start;
1284
+ align-content: flex-start;
1285
+ align-items: flex-start;
1286
+ }
1287
+ .simplebar-wrapper {
1288
+ overflow: hidden;
1289
+ width: inherit;
1290
+ height: inherit;
1291
+ max-width: inherit;
1292
+ max-height: inherit;
1293
+ }
1294
+ .simplebar-mask {
1295
+ direction: inherit;
1296
+ position: absolute;
1297
+ overflow: hidden;
1298
+ padding: 0;
1299
+ margin: 0;
1300
+ left: 0;
1301
+ top: 0;
1302
+ bottom: 0;
1303
+ right: 0;
1304
+ width: auto !important;
1305
+ height: auto !important;
1306
+ z-index: 0;
1307
+ }
1308
+ .simplebar-offset {
1309
+ direction: inherit !important;
1310
+ box-sizing: inherit !important;
1311
+ resize: none !important;
1312
+ position: absolute;
1313
+ top: 0;
1314
+ left: 0;
1315
+ bottom: 0;
1316
+ right: 0;
1317
+ padding: 0;
1318
+ margin: 0;
1319
+ -webkit-overflow-scrolling: touch;
1320
+ }
1321
+ .simplebar-content-wrapper {
1322
+ direction: inherit;
1323
+ box-sizing: border-box !important;
1324
+ position: relative;
1325
+ display: block;
1326
+ height: 100%; /* Required for horizontal native scrollbar to not appear if parent is taller than natural height */
1327
+ width: auto;
1328
+ max-width: 100%; /* Not required for horizontal scroll to trigger */
1329
+ max-height: 100%; /* Needed for vertical scroll to trigger */
1330
+ overflow: auto;
1331
+ scrollbar-width: none;
1332
+ -ms-overflow-style: none;
1333
+ }
1334
+ .simplebar-content-wrapper::-webkit-scrollbar,
1335
+ .simplebar-hide-scrollbar::-webkit-scrollbar {
1336
+ display: none;
1337
+ width: 0;
1338
+ height: 0;
1339
+ }
1340
+ .simplebar-content:before,
1341
+ .simplebar-content:after {
1342
+ content: ' ';
1343
+ display: table;
1344
+ }
1345
+ .simplebar-placeholder {
1346
+ max-height: 100%;
1347
+ max-width: 100%;
1348
+ width: 100%;
1349
+ pointer-events: none;
1350
+ }
1351
+ .simplebar-height-auto-observer-wrapper {
1352
+ box-sizing: inherit !important;
1353
+ height: 100%;
1354
+ width: 100%;
1355
+ max-width: 1px;
1356
+ position: relative;
1357
+ float: left;
1358
+ max-height: 1px;
1359
+ overflow: hidden;
1360
+ z-index: -1;
1361
+ padding: 0;
1362
+ margin: 0;
1363
+ pointer-events: none;
1364
+ flex-grow: inherit;
1365
+ flex-shrink: 0;
1366
+ flex-basis: 0;
1367
+ }
1368
+ .simplebar-height-auto-observer {
1369
+ box-sizing: inherit;
1370
+ display: block;
1371
+ opacity: 0;
1372
+ position: absolute;
1373
+ top: 0;
1374
+ left: 0;
1375
+ height: 1000%;
1376
+ width: 1000%;
1377
+ min-height: 1px;
1378
+ min-width: 1px;
1379
+ overflow: hidden;
1380
+ pointer-events: none;
1381
+ z-index: -1;
1382
+ }
1383
+ .simplebar-track {
1384
+ z-index: 1;
1385
+ position: absolute;
1386
+ right: 0;
1387
+ bottom: 0;
1388
+ pointer-events: none;
1389
+ overflow: hidden;
1390
+ }
1391
+ [data-simplebar].simplebar-dragging {
1392
+ pointer-events: none;
1393
+ -webkit-touch-callout: none;
1394
+ -webkit-user-select: none;
1395
+ -khtml-user-select: none;
1396
+ -moz-user-select: none;
1397
+ -ms-user-select: none;
1398
+ user-select: none;
1399
+ }
1400
+ [data-simplebar].simplebar-dragging .simplebar-content {
1401
+ pointer-events: none;
1402
+ -webkit-touch-callout: none;
1403
+ -webkit-user-select: none;
1404
+ -khtml-user-select: none;
1405
+ -moz-user-select: none;
1406
+ -ms-user-select: none;
1407
+ user-select: none;
1408
+ }
1409
+ [data-simplebar].simplebar-dragging .simplebar-track {
1410
+ pointer-events: all;
1411
+ }
1412
+ .simplebar-scrollbar {
1413
+ position: absolute;
1414
+ left: 0;
1415
+ right: 0;
1416
+ min-height: 10px;
1417
+ }
1418
+ .simplebar-scrollbar:before {
1419
+ position: absolute;
1420
+ content: '';
1421
+ background: black;
1422
+ border-radius: 7px;
1423
+ left: 2px;
1424
+ right: 2px;
1425
+ opacity: 0;
1426
+ transition: opacity 0.2s 0.5s linear;
1427
+ }
1428
+ .simplebar-scrollbar.simplebar-visible:before {
1429
+ opacity: 0.5;
1430
+ transition-delay: 0s;
1431
+ transition-duration: 0s;
1432
+ }
1433
+ .simplebar-track.simplebar-vertical {
1434
+ top: 0;
1435
+ width: 11px;
1436
+ }
1437
+ .simplebar-scrollbar:before {
1438
+ top: 2px;
1439
+ bottom: 2px;
1440
+ left: 2px;
1441
+ right: 2px;
1442
+ }
1443
+ .simplebar-track.simplebar-horizontal {
1444
+ left: 0;
1445
+ height: 11px;
1446
+ }
1447
+ .simplebar-track.simplebar-horizontal .simplebar-scrollbar {
1448
+ right: auto;
1449
+ left: 0;
1450
+ top: 0;
1451
+ bottom: 0;
1452
+ min-height: 0;
1453
+ min-width: 10px;
1454
+ width: auto;
1455
+ }
1456
+ [data-simplebar-direction='rtl'] .simplebar-track.simplebar-vertical {
1457
+ right: auto;
1458
+ left: 0;
1459
+ }
1460
+ .simplebar-dummy-scrollbar-size {
1461
+ direction: rtl;
1462
+ position: fixed;
1463
+ opacity: 0;
1464
+ visibility: hidden;
1465
+ height: 500px;
1466
+ width: 500px;
1467
+ overflow-y: hidden;
1468
+ overflow-x: scroll;
1469
+ -ms-overflow-style: scrollbar !important;
1470
+ }
1471
+ .simplebar-dummy-scrollbar-size >div {
1472
+ width: 200%;
1473
+ height: 200%;
1474
+ margin: 10px 0;
1475
+ }
1476
+ .simplebar-hide-scrollbar {
1477
+ position: fixed;
1478
+ left: 0;
1479
+ visibility: hidden;
1480
+ overflow-y: scroll;
1481
+ scrollbar-width: none;
1482
+ -ms-overflow-style: none;
1483
+ }
1484
+ `,no=(0,r.createContext)({open:()=>null,close:()=>null,setDialogSpec:()=>null}),io=({children:o})=>{const[t,n]=(0,r.useState)(!1),i=(0,r.useCallback)((()=>{n(!0)}),[]),a=(0,r.useCallback)((()=>{n(!1)}),[]),[l,s]=(0,r.useState)(null),c=(0,r.useMemo)((()=>({open:i,close:a,setDialogSpec:s})),[i,a,s]);return(0,e.jsxs)(no.Provider,{value:c,children:[null!=l&&(0,r.cloneElement)(l.element,{isOpen:t,onClose:a}),o]})},ao=(0,r.createContext)({rootFontSize:{desktop:"16px",smartphone:"13px"},smartphoneQuery:"(max-width: 767px)"}),lo=ao.Provider,so=require("@radix-ui/react-toast"),co={root:a.css`
1485
+ inline-size: ${$(96)};
1486
+ max-inline-size: calc(100vw - ${$(6)});
1487
+ inset-block-start: ${$(6)};
1488
+ inset-inline-start: 50%;
1489
+ row-gap: ${$(3)};
1490
+ transform: translate(-50%, 0%);
1491
+ display: flex;
1492
+ flex-direction: column;
1493
+ align-items: center;
1494
+ list-style: none;
1495
+ position: fixed;
1496
+ outline: none;
1497
+ z-index: 2000;
1498
+ `},bo=({})=>{const{trans:r}=I("toast");return(0,e.jsx)(so.Viewport,{css:co.root,label:r("viewportLabel")})},po=(0,r.createContext)({setToastSpecs:()=>null}),uo=po.Provider,fo=({children:o})=>{const{trans:t}=I("toast"),[n,i]=(0,r.useState)([]),a=(0,r.useMemo)((()=>({setToastSpecs:i})),[i]);return(0,e.jsx)(so.Provider,{label:t("rootLabel"),children:(0,e.jsxs)(uo,{value:a,children:[(0,e.jsx)(bo,{}),n.map((e=>e.element)),o]})})},mo=e=>Object.fromEntries(Object.entries(e).map((([e,r])=>[`qlib.${e}`,r]))),yo={ja:mo(o(62)),en:mo(o(714))},go=e=>({ja:e.map((e=>{var r;return null!==(r=e.ja)&&void 0!==r?r:{}})).reduce(Object.assign,{}),en:e.map((e=>{var r;return null!==(r=e.en)&&void 0!==r?r:{}})).reduce(Object.assign,{})}),ho=require("react-use"),Oo=e=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e:{desktop:e,smartphone:e},vo=(e,r)=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e[r]:e,xo=()=>{const{smartphoneQuery:e}=(0,r.useContext)(ao);return(0,ho.useMedia)(e,!1)},jo=e=>{const r=xo();return vo(e,r?"smartphone":"desktop")},wo=require("rxjs");class $o extends wo.BehaviorSubject{update(e){"function"==typeof e?this.next(e(this.value)):this.next(Object.assign(Object.assign({},this.value),e))}}const qo=e=>{const[o,t]=(0,r.useState)(void 0);return(0,r.useEffect)((()=>{const r=e.subscribe({next:e=>t(e)});return()=>r.unsubscribe()}),[e]),o},ko=e=>{const[o,t]=(0,r.useState)(e.value);return(0,r.useEffect)((()=>{const r=e.subscribe({next:e=>t(e)});return()=>r.unsubscribe()}),[e]),o},No=new wo.BehaviorSubject((0,C.createIntl)({locale:"ja",onError:e=>null})),Po=new wo.BehaviorSubject("ja"),So=()=>ko(No),zo=()=>ko(Po),Co=()=>(0,r.useCallback)((e=>{"undefined"!=typeof localStorage&&localStorage.setItem("qlib-locale",e),Po.next(e)}),[]),Io=e=>{const o=(0,C.useIntl)(),t=(0,r.useCallback)(((r,t)=>{var n;const i=r.includes(":")?r.replace(":","."):(null!=e?`${e}.`:"")+r,a=null!==(n=null==t?void 0:t.defaultMessage)&&void 0!==n?n:`<${i}>`;return o.formatMessage({id:i,defaultMessage:a},t)}),[o,e]),n=(0,r.useCallback)((e=>null!=e?"ja"===o.locale?z()(e).locale("ja").format("YYYY/MM/DD"):z()(e).locale("en").format("DD/MMM/YYYY"):""),[o]),i=(0,r.useCallback)((e=>null!=e?"ja"===o.locale?z()(e).locale("ja").format("YYYY/MM/DD HH:mm"):z()(e).locale("en").format("DD/MMM/YYYY HH:mm"):""),[o]),a=(0,r.useCallback)(((e,r)=>{const t={minimumFractionDigits:null==r?void 0:r.digit,maximumFractionDigits:null==r?void 0:r.digit};return null!=e?e>0?((null==r?void 0:r.withSign)?"+":"")+o.formatNumber(e,t):0===e?((null==r?void 0:r.withSign)?"±":"")+o.formatNumber(e,t):"−"+o.formatNumber(-e,t):""}),[o]);return(0,r.useMemo)((()=>({trans:t,transNode:t,transDate:n,transTime:i,transNumber:a})),[t,n,i,a])},Eo=Io,Ro=e=>{const r=No.value;return{trans:(o,t)=>{var n;const i=o.includes(":")?o.replace(":","."):(null!=e?`${e}.`:"")+o,a=null!==(n=null==t?void 0:t.defaultMessage)&&void 0!==n?n:`<${i}>`;return r.formatMessage({id:i,defaultMessage:a},t)},transDate:e=>null!=e?"ja"===r.locale?z()(e).locale("ja").format("YYYY/MM/DD"):z()(e).locale("en").format("DD/MM/YYYY"):"",transTime:e=>null!=e?"ja"===r.locale?z()(e).locale("ja").format("YYYY/MM/DD HH:mm"):z()(e).locale("en").format("DD/MM/YYYY HH:mm"):"",transNumber:(e,o)=>{const t={minimumFractionDigits:null==o?void 0:o.digit,maximumFractionDigits:null==o?void 0:o.digit};return null!=e?e>0?((null==o?void 0:o.withSign)?"+":"")+r.formatNumber(e,t):0===e?((null==o?void 0:o.withSign)?"±":"")+r.formatNumber(e,t):"−"+r.formatNumber(-e,t):""}}},Do={root:a.css`
1499
+ block-size: ${$(0)};
1500
+ inline-size: ${$(0)};
1501
+ opacity: 0;
1502
+ position: fixed;
1503
+ `},Mo=({})=>(0,e.jsxs)("svg",{css:Do.root,viewBox:"0 0 1 1","aria-hidden":!0,children:[(0,e.jsxs)("linearGradient",{id:"qlib-rank-gold",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("gold",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("gold",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("gold",5)})]}),(0,e.jsxs)("linearGradient",{id:"qlib-rank-silver",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("silver",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("silver",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("silver",5)})]}),(0,e.jsxs)("linearGradient",{id:"qlib-rank-bronze",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("bronze",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("bronze",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("bronze",5)})]})]}),Lo=e=>a.css`
1504
+ @import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Sans+JP:wght@400;700&family=Noto+Sans:wght@400;700&display=swap");
1505
+ :root {
1506
+ --qlib-root-font-size: ${e};
1507
+ }
1508
+ html {
1509
+ font-size: ${e};
1510
+ font-family: ${"'Inter', 'Noto Sans JP', 'Dubai', 'Noto Sans', sans-serif"};
1511
+ font-weight: ${v("normal")};
1512
+ font-feature-settings: "palt" 1, "pkna" 1, "lnum" 1, "kern" 1 !important;
1513
+ color: ${x("blackText")};
1514
+ background-color: ${x("background")};
1515
+ line-height: 1;
1516
+ }
1517
+ body {
1518
+ height: 100%;
1519
+ margin: 0px;
1520
+ padding: 0px;
1521
+ text-decoration-skip-ink: none;
1522
+ text-decoration-thickness: 0.003em;
1523
+ -webkit-text-size-adjust: 100%;
1524
+ }
1525
+ body * {
1526
+ scrollbar-color: ${x("gray",5)} transparent;
1527
+ scrollbar-width: thin;
1528
+ }
1529
+ *:where(:not(iframe, canvas, img, svg, video):not(svg *):not(.sbdocs *:not(.docs-story *))) {
1530
+ all: unset;
1531
+ display: revert;
1532
+ min-block-size: 0rem;
1533
+ min-inline-size: 0rem;
1534
+ background-origin: border-box;
1535
+ scroll-behavior: smooth;
1536
+ }
1537
+ input,
1538
+ textarea {
1539
+ user-select: auto !important;
1540
+ -webkit-user-select : auto !important;
1541
+ }
1542
+ .simplebar-scrollbar:before {
1543
+ background-color: ${j(x("primary",5),.6)};
1544
+ }
1545
+ `,Fo=({messages:o,rootFontSize:t={desktop:"16px",smartphone:"13px"},smartphoneQuery:n="(max-width: 767px)",colorDefinitions:i={},globalStyle:l,appElement:s,children:c})=>{const d=zo(),b=Co(),p=ko(No),u=jo(t),f=(0,r.useMemo)((()=>({rootFontSize:Oo(t),smartphoneQuery:n})),[t,n]),[m,y]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{y(!0)}),[]),(0,r.useEffect)((()=>{const e=go([null!=o?o:{},yo]),r=(0,C.createIntlCache)(),t=(0,C.createIntl)({locale:d,messages:e[d],onError:e=>null},r);No.next(t)}),[d,o]),(0,r.useEffect)((()=>{var e;"undefined"!=typeof localStorage&&b(null!==(e=localStorage.getItem("qlib-locale"))&&void 0!==e?e:"ja")}),[b]),(0,r.useEffect)((()=>{const e="next"in window?"#__next":s;e&&Lr().setAppElement(e)}),[s]),(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)(a.Global,{styles:to}),(0,e.jsx)(a.Global,{styles:Lo(u)}),(0,e.jsx)(a.Global,{styles:h(i)}),(0,e.jsx)(a.Global,{styles:l}),(0,e.jsx)(Mo,{}),(0,e.jsx)(C.RawIntlProvider,{value:p,children:(0,e.jsx)(lo,{value:f,children:(0,e.jsx)(fo,{children:(0,e.jsx)(io,{children:m&&c})})})})]})};const Bo={root:a.css`
1546
+ font-size: ${$(4.5)};
1547
+ font-weight: ${v("bold")};
1548
+ color: ${x("primary",6)};
1549
+ display: flex;
1550
+ align-items: center;
1551
+ `},Ao=r=>{var{as:o="h3",className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","className","children"]);const a=o;return(0,e.jsx)(a,Object.assign({css:Bo.root,className:t},i,{children:n}))};Ao.displayName="SecondaryHeading";const To={Control:B,Input:U,Placeholder:ie,MenuPortal:X,Menu:Q,MenuList:W,Option:te,NoOptionsMessage:re,DropdownIndicator:T,ClearIndicator:L,IndicatorsContainer:V,IndicatorSeparator:null},Ho=({value:o,defaultValue:t,variant:n="outline",optionAlignment:i="left",isError:a=!1,isClearable:l=!1,isDisabled:s=!1,onSet:c,children:b,className:p})=>{var u,f;const{trans:m}=I("select"),y=(0,r.useMemo)((()=>{const e=Ne(b),r=new Map(e.map((e=>{const r={value:e.props.value,label:e.props.label,node:e};return[e.props.value,r]})));return r}),[b]),g=(0,r.useMemo)((()=>[...y.values()]),[y]),h=void 0!==o?null!==(u=y.get(o))&&void 0!==u?u:null:void 0,O=void 0!==t?null!==(f=y.get(t))&&void 0!==f?f:null:void 0,v=(0,r.useCallback)((e=>{null==c||c(null!==e?e.value:null)}),[c]),x=ae(200),{isMenuOpen:j}=x,w=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(x,["isMenuOpen"]),$=(0,r.useMemo)((()=>({variant:n,optionAlignment:i,isMenuOpen:j,isError:a})),[n,i,j,a]);return(0,e.jsx)(D,{value:$,children:(0,e.jsx)(d(),Object.assign({className:p,classNamePrefix:"qlib-select",value:h,defaultValue:O,options:g,onChange:null!=c?v:void 0,isClearable:l,isDisabled:s,placeholder:m("select"),menuPortalTarget:"object"==typeof window?document.body:void 0,components:To,isMulti:!1,unstyled:!0,"aria-invalid":a},w))})};Ho.displayName="Select";const Vo={root:a.css`
1552
+ `},Yo=r=>{var{value:o,label:t,isDisabled:n=!1,children:i,className:a}=r,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["value","label","isDisabled","children","className"]);return(0,e.jsx)("div",Object.assign({css:Vo.root,className:a},l,{children:null!=i?i:t}))};Yo.displayName="SelectOption";const Uo={root:a.css`
1553
+ margin-inline-end: ${$("gap")};
1554
+ color: ${x("gray",5)};
1555
+ `},_o=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Uo.root,className:n,ref:o},i,{children:t}))}));_o.displayName="SelectOptionIconContainer";const Ko=({pageSize:r,defaultPageSize:o,optionPageSizes:t,isDisabled:n=!1,onSet:i,className:a})=>{const{transNumber:l}=I("pageSizeSelect");return(0,e.jsx)(Ho,{className:a,value:r,defaultValue:o,variant:"minimal",optionAlignment:"right",isDisabled:n,onSet:i,children:t.map((r=>(0,e.jsx)(Yo,{value:r,label:l(r)},r)))})};Ko.displayName="PageSizeSelect";const Go=(0,r.createContext)({displayedItems:[],resolvedPageProps:{isLoading:!1,isEmpty:!1,page:0,pageCount:1,pageSize:0,optionPageSizes:[],setPage:()=>null,setPageSize:()=>null}}),Qo=Go.Provider,Jo={root:a.css`
1556
+ inline-size: ${$(16)};
1557
+ `},Wo=({className:o})=>{const{resolvedPageProps:{pageSize:t,optionPageSizes:n,setPageSize:i}}=(0,r.useContext)(Go);return(0,e.jsx)(Ko,{css:Jo.root,className:o,pageSize:t,onSet:i,defaultPageSize:n[0],optionPageSizes:n})};Wo.displayName="PageSizeSelectAuto";const Zo=({sortOrder:r,defaultSortOrder:o,iconType:t="number",isDisabled:n=!1,onSet:i,className:a})=>{const{trans:c}=I("sortOrderSelect");return(0,e.jsxs)(Ho,{className:a,value:r,defaultValue:o,variant:"minimal",optionAlignment:"right",isDisabled:n,onSet:i,children:[(0,e.jsxs)(Yo,{value:"ascending",label:c("ascending"),children:[(0,e.jsx)(_o,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:"number"===t?s.faArrowDown19:s.faArrowDownAZ})}),c("ascending")]}),(0,e.jsxs)(Yo,{value:"descending",label:c("descending"),children:[(0,e.jsx)(_o,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:"number"===t?s.faArrowDown91:s.faArrowDownZA})}),c("descending")]})]})};Zo.displayName="SortOrderSelect";const Xo=require("@radix-ui/react-switch");const et={root:a.css`
1558
+ &[data-qlib-error="false"] {
1559
+ --qlib-border-color: ${x("gray",5)};
1560
+ --qlib-focus-color: ${j(x("primary",5),.6)};
1561
+ &:not(:hover) {
1562
+ --qlib-background-color: ${x("gray",1)};
1563
+ --qlib-checked-border-color: ${x("primary",6)};
1564
+ --qlib-checked-background-color: ${x("primary",5)};
1565
+ }
1566
+ &:hover {
1567
+ --qlib-background-color: ${x("gray",1)};
1568
+ --qlib-checked-border-color: ${x("primary",6)};
1569
+ --qlib-checked-background-color: ${x("primary",4)};
1570
+ }
1571
+ }
1572
+ &[data-qlib-error="true"] {
1573
+ --qlib-border-color: ${x("red",5)};
1574
+ --qlib-focus-color: ${j(x("red",5),.6)};
1575
+ &:not(:hover) {
1576
+ --qlib-background-color: ${x("gray",1)};
1577
+ --qlib-checked-border-color: ${x("red",6)};
1578
+ --qlib-checked-background-color: ${x("primary",5)};
1579
+ }
1580
+ &:hover {
1581
+ --qlib-background-color: ${x("gray",1)};
1582
+ --qlib-checked-border-color: ${x("red",6)};
1583
+ --qlib-checked-background-color: ${x("primary",4)};
1584
+ }
1585
+ }
1586
+ --qlib-inline-size: ${$(9)};
1587
+ --qlib-block-size: ${$(5)};
1588
+ inline-size: var(--qlib-inline-size);
1589
+ block-size: var(--qlib-block-size);
1590
+ padding: ${q(1)};
1591
+ border-radius: ${$("max")};
1592
+ background-color: var(--qlib-background-color);
1593
+ transition: border-color 0.2s ease, background-color 0.2s ease;
1594
+ box-sizing: border-box;
1595
+ position: relative;
1596
+ cursor: pointer;
1597
+ &[data-state="checked"] {
1598
+ background-color: var(--qlib-checked-background-color);
1599
+ }
1600
+ &:focus-visible {
1601
+ outline: solid ${q(2)} var(--qlib-focus-color);
1602
+ outline-offset: ${q(1)};
1603
+ }
1604
+ `,thumb:a.css`
1605
+ inline-size: calc(var(--qlib-block-size) - ${q(4)});
1606
+ block-size: calc(var(--qlib-block-size) - ${q(4)});
1607
+ inset-block-start: ${q(2)};
1608
+ inset-inline-start: ${q(2)};
1609
+ border-radius: ${$("max")};
1610
+ background-color: ${x("white")};
1611
+ border: solid ${q(1)} var(--qlib-border-color);
1612
+ box-shadow: ${k(j(x("black"),.2),.5)};
1613
+ transition: border-color 0.2s ease, inset-inline-start 0.2s ease;
1614
+ box-sizing: border-box;
1615
+ position: absolute;
1616
+ &[data-state="checked"] {
1617
+ border-color: var(--qlib-checked-border-color);
1618
+ inset-inline-start: calc(var(--qlib-inline-size) - var(--qlib-block-size) + ${q(2)});
1619
+ }
1620
+ `},rt=(0,r.forwardRef)(((r,o)=>{var{isChecked:t,name:n,isError:i=!1,isRequired:a,isDisabled:l=!1,onSet:s,onChange:c,onBlur:d,className:b}=r,p=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["isChecked","name","isError","isRequired","isDisabled","onSet","onChange","onBlur","className"]);return(0,e.jsx)(Xo.Root,Object.assign({css:et.root,className:b,ref:o,name:n,checked:t,required:a,disabled:l,onCheckedChange:s,"data-qlib-error":i},p,{children:(0,e.jsx)(Xo.Thumb,{css:et.thumb})}))}));rt.displayName="Checkbox";const ot=e=>a.css`
1621
+ padding-block: ${$(.5)};
1622
+ padding-inline: ${$(1)};
1623
+ font-size: ${$(3)};
1624
+ column-gap: ${$(2)};
1625
+ border-radius: ${$(1)};
1626
+ color: ${x(e,5)};
1627
+ border: solid ${x(e,1)} ${q(1)};
1628
+ white-space: nowrap;
1629
+ line-height: 1;
1630
+ display: inline-block;
1631
+ `,tt=(a.css`
1632
+ margin-inline-end: ${$("gap")};
1633
+ `,(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","children","className"]);return(0,e.jsx)("span",Object.assign({css:ot(t),className:i,ref:o},a,{children:n}))})));tt.displayName="Tag";const nt={root:a.css`
1634
+ margin-inline-end: ${$("gap")};
1635
+ `},it=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:nt.root,className:n,ref:o},i,{children:t}))}));it.displayName="TagIconContainer";const at={root:a.css`
1636
+ column-gap: ${$(2)};
1637
+ row-gap: ${$(1)};
1638
+ display: inline-flex;
1639
+ flex-wrap: wrap;
1640
+ `},lt=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:at.root,className:n,ref:o},i,{children:t}))}));lt.displayName="TagList";const st={root:a.css`
1641
+ &[data-qlib-error="false"] {
1642
+ --qlib-border-color: ${x("gray",3)};
1643
+ --qlib-focus-border-color: ${x("primary",5)};
1644
+ }
1645
+ &[data-qlib-error="true"] {
1646
+ --qlib-border-color: ${x("red",5)};
1647
+ --qlib-focus-border-color: ${x("red",5)};
1648
+ }
1649
+ padding-inline: ${$(2)};
1650
+ font-size: ${$(4)};
1651
+ border: solid ${q(1)} var(--qlib-border-color);
1652
+ background-color: ${x("white")};
1653
+ border-radius: ${$(1)};
1654
+ line-height: 1;
1655
+ display: flex;
1656
+ align-items: center;
1657
+ &[data-qlib-disabled="true"] {
1658
+ opacity: 0.5;
1659
+ }
1660
+ &:focus-within {
1661
+ border-color: var(--qlib-focus-border-color);
1662
+ outline: solid ${q(1)} var(--qlib-focus-border-color);
1663
+ }
1664
+ `,inputContainer:a.css`
1665
+ column-gap: ${$("gap")};
1666
+ display: flex;
1667
+ align-items: center;
1668
+ flex-grow: 1;
1669
+ flex-shrink: 1;
1670
+ `,input:a.css`
1671
+ min-block-size: ${$(6)};
1672
+ padding-block: ${$(1)};
1673
+ line-height: 1.5;
1674
+ flex-grow: 1;
1675
+ flex-shrink: 1;
1676
+ white-space: pre;
1677
+ box-sizing: border-box;
1678
+ &[data-qlib-resize="none"] {
1679
+ resize: none;
1680
+ }
1681
+ &[data-qlib-resize="vertical"] {
1682
+ resize: vertical;
1683
+ }
1684
+ &[data-qlib-resize="horizontal"] {
1685
+ resize: horizontal;
1686
+ }
1687
+ &[data-qlib-resize="both"] {
1688
+ resize: both;
1689
+ }
1690
+ &:disabled {
1691
+ cursor: inherit;
1692
+ }
1693
+ `},ct=(0,r.forwardRef)(((o,t)=>{var{value:n,name:i,rowCount:a=4,resize:l="vertical",autoComplete:s="off",autoFocus:c,isError:d=!1,isRequired:b,isDisabled:p,onSet:u,onChange:f,onBlur:m,className:y}=o,g=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","rowCount","resize","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","className"]);const h=(0,r.useCallback)((e=>{const r=e.target.value;null==u||u(r),null==f||f(e)}),[u,f]);return(0,e.jsx)("label",{className:y,css:st.root,"data-qlib-size":$,"data-qlib-disabled":p,"data-qlib-error":d,children:(0,e.jsx)("div",{css:st.inputContainer,children:(0,e.jsx)("textarea",Object.assign({css:st.input,ref:t,value:n,name:i,rows:a,autoComplete:s,autoFocus:c,required:b,disabled:p,onChange:null!=u||null!=f?h:void 0,onBlur:m,"aria-invalid":d,"data-qlib-resize":l},g))})})}));ct.displayName="Textarea";const dt={root:a.css`
1694
+ width: 1px;
1695
+ height: 1px;
1696
+ position: absolute;
1697
+ white-space: nowrap;
1698
+ overflow: hidden;
1699
+ opacity: 0;
1700
+ clip: rect(0px, 0px, 0px, 0px);
1701
+ clip-path: inset(50%);
1702
+ `},bt=(0,r.forwardRef)(((r,o)=>{var{as:t="span",children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","children","className"]);const l=t;return(0,e.jsx)(l,Object.assign({css:dt.root,className:i,ref:o},a,{children:n}))}));bt.displayName="VisuallyHidden";const pt={root:a.css`
1703
+ block-size: ${$(4.5)};
1704
+ margin-inline-start: calc(${$(3)} + ${q(1)});
1705
+ column-gap: ${$(3)};
1706
+ display: flex;
1707
+ align-items: center;
1708
+ `},ut=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:pt.root,className:n,ref:o},i,{children:t}))}));ut.displayName="BulkOperationContainer";const ft={root:a.css`
1709
+ `,badge:a.css`
1710
+ margin-block: ${$(-1)};
1711
+ margin-inline-start: ${$("gap")};
1712
+ `},mt=(0,r.forwardRef)(((r,o)=>{var{count:t,children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["count","children","className"]);const{trans:l,transNumber:s}=I("bulkOperationButton");return(0,e.jsxs)(He,Object.assign({css:ft.root,className:i,scheme:"gray",variant:"light",isCompact:!0,ref:o},a,{children:[(0,e.jsx)(Ye,{children:(0,e.jsx)(gr,{name:"bulk"})}),l("text"),(0,e.jsx)("span",{css:ft.badge,children:(0,e.jsx)(we,{scheme:"gray",size:"small",children:s(t)})})]}))}));mt.displayName="BulkOperationButton";const yt=(0,r.createContext)({isLabel:!1,setHovered:()=>null,setFocusVisible:()=>null}),gt=yt.Provider;const ht={root:a.css`
1713
+ min-inline-size: ${$(64)};
1714
+ min-block-size: ${$(14)};
1715
+ border-radius: ${$(1)};
1716
+ color: ${x("blackText")};
1717
+ background-color: ${x("white")};
1718
+ border: solid ${q(1)} ${x("gray",1)};
1719
+ box-shadow: ${k(j(x("gray",5),.2),.5)};
1720
+ display: flex;
1721
+ box-sizing: border-box;
1722
+ position: relative;
1723
+ pointer-events: all;
1724
+ transition: background-color 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
1725
+ &[data-qlib-label="true"][data-qlib-hover="true"],
1726
+ &[data-qlib-clickable="true"][data-qlib-hover="true"] {
1727
+ background-color: ${x("primary",0)};
1728
+ border: solid ${q(1)} ${x("primary",1)};
1729
+ box-shadow: ${k(j(x("primary",5),.2),.5)};
1730
+ }
1731
+ &[data-qlib-focus-visible="true"] {
1732
+ outline: solid ${q(2)} ${j(x("primary",5),.6)};
1733
+ outline-offset: ${q(1)};
1734
+ }
1735
+ `},Ot=(0,r.forwardRef)(((o,t)=>{var{isLabel:n=!1,href:i,onClick:a,className:l,children:s}=o,c=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["isLabel","href","onClick","className","children"]);const[d,b]=(0,r.useState)(!1),[p,u]=(0,r.useState)(!1),f=n?"label":"article",m=(0,r.useMemo)((()=>({isLabel:n,href:i,onClick:a,setHovered:b,setFocusVisible:u})),[n,i,a,b,u]);return(0,e.jsx)(f,Object.assign({css:ht.root,className:l,ref:t,"data-qlib-hover":d,"data-qlib-focus-visible":p,"data-qlib-label":n,"data-qlib-clickable":null!=i||null!=a},c,{children:(0,e.jsx)(gt,{value:m,children:s})}))}));Ot.displayName="Card";const vt={root:a.css`
1736
+ inset-block-start: ${$(0)};
1737
+ inset-inline-start: ${$(0)};
1738
+ padding-inline: ${$(3)};
1739
+ block-size: ${$(4.5)};
1740
+ inline-size: ${$(12)};
1741
+ font-size: ${$(3)};
1742
+ color: ${x("gray",5)};
1743
+ border-block-end: solid ${q(1)} ${x("gray",1)};
1744
+ display: flex;
1745
+ align-items: center;
1746
+ justify-content: flex-start;
1747
+ box-sizing: border-box;
1748
+ position: absolute;
1749
+ `},xt=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("div",Object.assign({css:vt.root,className:t,ref:o},i,{children:n}))}));xt.displayName="CardHeadnote";const jt={root:a.css`
1750
+ padding-block: ${$(3)};
1751
+ padding-inline: ${$(3)};
1752
+ row-gap: ${$(2.5)};
1753
+ display: flex;
1754
+ flex-direction: column;
1755
+ justify-content: center;
1756
+ flex-grow: 1;
1757
+ flex-shrink: 1;
1758
+ order: 2;
1759
+ &[data-qlib-clickable="true"] {
1760
+ cursor: pointer;
1761
+ }
1762
+ &[data-qlib-has-headnote="true"] {
1763
+ padding-block-start: ${$(7.5)};
1764
+ }
1765
+ `},wt=(0,r.forwardRef)(((o,t)=>{var{className:n,children:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className","children"]);const{href:l,onClick:s,setHovered:c,setFocusVisible:d}=(0,r.useContext)(yt),b=(0,r.useMemo)((()=>Ne(i).some((e=>e.type===xt))),[i]),p=(0,r.useCallback)((()=>{c(!0)}),[c]),u=(0,r.useCallback)((()=>{c(!1)}),[c]),f=(0,r.useCallback)((e=>{if(null!=l||null!=s){const r=e.target.matches(":focus-visible");d(r)}}),[l,s,d]),m=(0,r.useCallback)((e=>{d(!1)}),[d]);return null!=l?(0,e.jsx)("a",Object.assign({className:n,css:jt.root,href:l,ref:t,onMouseEnter:p,onMouseLeave:u,onFocus:f,onBlur:m,onClick:s,"data-qlib-clickable":!0,"data-qlib-has-headnote":b},a,{children:i})):null!=s?(0,e.jsx)("button",Object.assign({className:n,css:jt.root,ref:t,onMouseEnter:p,onMouseLeave:u,onFocus:f,onBlur:m,onClick:s,"data-qlib-clickable":null!=s,"data-qlib-has-headnote":b},a,{children:i})):(0,e.jsx)("div",Object.assign({className:n,css:jt.root,ref:t,onMouseEnter:p,onMouseLeave:u,"data-qlib-clickable":null!=s,"data-qlib-has-headnote":b},a,{children:i}))}));wt.displayName="CardBody";const $t={root:a.css`
1766
+ &[data-qlib-variant="primary"] {
1767
+ --qlib-color: ${x("white")};
1768
+ --qlib-border-color: ${x("primary",6)};
1769
+ --qlib-background-color: ${x("primary",5)};
1770
+ --qlib-hover-background-color: ${x("primary",4)};
1771
+ --qlib-border-style: none;
1772
+ }
1773
+ &[data-qlib-variant="secondary"] {
1774
+ --qlib-color: ${x("gray",5)};
1775
+ --qlib-border-color: ${x("gray",3)};
1776
+ --qlib-background-color: ${x("white")};
1777
+ --qlib-hover-background-color: ${x("gray",0)};
1778
+ --qlib-border-style: solid;
1779
+ }
1780
+ inline-size: ${$(8)};
1781
+ font-size: ${$(4)};
1782
+ color: var(--qlib-color);
1783
+ background-color: var(--qlib-background-color);
1784
+ border: solid ${q(1)} var(--qlib-border-color);
1785
+ transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
1786
+ flex-grow: 0;
1787
+ flex-shrink: 0;
1788
+ z-index: 0;
1789
+ display: flex;
1790
+ align-items: center;
1791
+ justify-content: center;
1792
+ box-sizing: border-box;
1793
+ cursor: pointer;
1794
+ &:last-of-type {
1795
+ margin-inline-start: ${q(-1)};
1796
+ border-start-end-radius: ${$(1)};
1797
+ border-end-end-radius: ${$(1)};
1798
+ z-index: 1;
1799
+ }
1800
+ &:hover:not(:disabled) {
1801
+ background-color: var(--qlib-hover-background-color);
1802
+ }
1803
+ &:focus-visible {
1804
+ outline: solid ${q(2)} ${j(x("primary",5),.6)};
1805
+ outline-offset: ${q(1)};
1806
+ }
1807
+ &:disabled {
1808
+ opacity: 0.5;
1809
+ cursor: inherit;
1810
+ }
1811
+ `},qt=(0,r.forwardRef)(((r,o)=>{var{label:t,variant:n="primary",type:i="button",isDisabled:a=!1,onClick:l,onKeyDown:s,onKeyUp:c,onMouseDown:d,onPointerDown:b,children:p,className:u}=r,f=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["label","variant","type","isDisabled","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","children","className"]);return(0,e.jsx)("button",Object.assign({className:u,css:$t.root,type:i,disabled:a,onClick:l,onKeyDown:s,onKeyUp:c,onMouseDown:d,onPointerDown:b,ref:o,"aria-label":t,"data-qlib-variant":n},f,{children:p}))}));qt.displayName="CardButton";const kt={root:a.css`
1812
+ margin-block: ${q(-1)};
1813
+ margin-inline-end: ${q(-1)};
1814
+ display: flex;
1815
+ flex-direction: row;
1816
+ flex-shrink: 0;
1817
+ order: 3;
1818
+ z-index: 0;
1819
+ position: relative;
1820
+ `},Nt=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("div",Object.assign({className:t,css:kt.root,ref:o},i,{children:n}))}));Nt.displayName="CardButtonList";const Pt=e=>{e.stopPropagation()};const St={root:a.css`
1821
+ margin-inline-start: ${$(3)};
1822
+ display: flex;
1823
+ align-items: center;
1824
+ justify-content: center;
1825
+ flex-grow: 0;
1826
+ flex-shrink: 0;
1827
+ order: 1;
1828
+ `},zt=(0,r.forwardRef)(((o,t)=>{var{className:n,children:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className","children"]);const{isLabel:l,setHovered:s}=(0,r.useContext)(yt),c=(0,r.useCallback)((()=>{s(!0)}),[s]),d=(0,r.useCallback)((()=>{s(!1)}),[s]);return(0,e.jsx)("label",Object.assign({className:n,css:St.root,onMouseEnter:l?c:void 0,onMouseLeave:l?d:void 0,onClick:Pt,ref:t},a,{children:i}))}));zt.displayName="CardControlContainer";const Ct={root:a.css`
1829
+ font-size: ${$(4)};
1830
+ font-weight: ${v("bold")};
1831
+ `},It=(0,r.forwardRef)(((r,o)=>{var{as:t="h3",maxLineHeight:n=4,className:i,children:a}=r,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","maxLineHeight","className","children"]);return(0,e.jsx)(rr,Object.assign({className:i,css:Ct.root,as:t,lineHeight:"narrow",maxLineCount:n,ref:o},l,{children:a}))}));It.displayName="CardTitle";const Et={root:a.css`
1832
+ row-gap: ${$(3)};
1833
+ display: flex;
1834
+ flex-direction: column;
1835
+ `},Rt=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("div",Object.assign({css:Et.root,className:t,ref:o},i,{children:n}))}));Rt.displayName="CardList";const Dt=e=>a.css`
1836
+ row-gap: ${$(3)};
1837
+ column-gap: ${$(3)};
1838
+ display: grid;
1839
+ grid-template-columns: repeat(${e}, 1fr);
1840
+ align-items: flex-start;
1841
+ `,Mt=(0,r.forwardRef)(((r,o)=>{var{columnCount:t=1,className:n,children:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["columnCount","className","children"]);const l=jo(t);return(0,e.jsx)("div",Object.assign({css:Dt(l),className:n,ref:o},a,{children:i}))}));Mt.displayName="CardListBody";const Lt={root:a.css`
1842
+ block-size: ${$(24)};
1843
+ row-gap: ${$(2)};
1844
+ padding-inline: ${$(4)};
1845
+ color: ${x("gray",5)};
1846
+ border-radius: ${$(1)};
1847
+ border: dashed ${q(1)} ${x("gray",5)};
1848
+ display: flex;
1849
+ flex-direction: column;
1850
+ align-items: center;
1851
+ justify-content: center;
1852
+ grid-column: 1 / -1;
1853
+ `,icon:a.css`
1854
+ font-size: ${$(8)};
1855
+ `},Ft=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);const{trans:a}=I("cardListEmpty");return(0,e.jsxs)("div",Object.assign({css:Lt.root,className:t,ref:o},i,{children:[(0,e.jsx)(gr,{css:Lt.icon,name:"empty"}),(0,e.jsx)(rr,{as:"p",lineHeight:"normal",children:n||a("empty")})]}))}));Ft.displayName="CardListEmpty";const Bt={root:a.css`
1856
+ `},At=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("div",Object.assign({css:Bt.root,className:t,ref:o},i,{children:n}))}));At.displayName="CardListFooter";const Tt={root:a.css`
1857
+ display: flex;
1858
+ align-items: flex-end;
1859
+ justify-content: space-between;
1860
+ `},Ht=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("div",Object.assign({css:Tt.root,className:t,ref:o},i,{children:n}))}));Ht.displayName="CardListHeader";const Vt={root:a.css`
1861
+ column-gap: ${$(4)};
1862
+ display: flex;
1863
+ order: 1;
1864
+ `},Yt=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("div",Object.assign({css:Vt.root,className:t,ref:o},i,{children:n}))}));Yt.displayName="CardListHeaderLeft";const Ut={root:a.css`
1865
+ column-gap: ${$(3)};
1866
+ display: flex;
1867
+ order: 2;
1868
+ `},_t=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);return(0,e.jsx)("div",Object.assign({css:Ut.root,className:t,ref:o},i,{children:n}))}));_t.displayName="CardListHeaderRight";const Kt={root:a.css`
1869
+ block-size: ${$(24)};
1870
+ row-gap: ${$(2)};
1871
+ padding-inline: ${$(4)};
1872
+ color: ${x("gray",5)};
1873
+ border-radius: ${$(1)};
1874
+ border: dashed ${q(1)} ${x("gray",5)};
1875
+ display: flex;
1876
+ flex-direction: column;
1877
+ align-items: center;
1878
+ justify-content: center;
1879
+ grid-column: 1 / -1;
1880
+ `,icon:a.css`
1881
+ font-size: ${$(8)};
1882
+ `},Gt=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);const{trans:a}=I("cardListLoading");return(0,e.jsxs)("div",Object.assign({css:Kt.root,className:t,ref:o},i,{children:[(0,e.jsx)(l.FontAwesomeIcon,{css:Kt.icon,icon:s.faCircleNotch,spin:!0}),(0,e.jsx)(rr,{as:"p",lineHeight:"normal",children:n||a("loading")})]}))}));Gt.displayName="CardListLoading";const Qt=(0,r.forwardRef)(((o,t)=>{var{items:n,pageProps:i,className:a,children:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["items","pageProps","className","children"]);const[c,d]=((e,{page:o,pageCount:t,pageSize:n,optionPageSizes:i,setPage:a,setPageSize:l})=>{const s=(0,r.useMemo)((()=>null!=e?e:[]),[e]),c=null!=n&&null!=o&&null!=t&&null!=l&&null!=a,[d,b]=(0,r.useState)(i[0]),[p,u]=(0,r.useState)(0),f=Math.floor((s.length-1)/d)+1,m=(0,r.useMemo)((()=>s.slice(d*p,d*p+d)),[s,d,p]),y=c?s:m,g=c?n:d,h=c?o:p,O=c?t:f,v=c?l:b,x=c?a:u,j=null==e,w=s.length<=0;return[y,(0,r.useMemo)((()=>({isLoading:j,isEmpty:w,pageSize:g,page:h,pageCount:O,optionPageSizes:i,setPageSize:v,setPage:x})),[j,w,g,h,O,i,x,v])]})(n,i),b=(0,r.useMemo)((()=>({displayedItems:c,resolvedPageProps:d})),[c,d]);return(0,e.jsx)(Rt,Object.assign({className:a,ref:t},s,{children:(0,e.jsx)(Qo,{value:b,children:l})}))}));Qt.displayName="CardListAuto";const Jt=({columnCount:o=1,className:t,children:n})=>{const{displayedItems:i,resolvedPageProps:{isLoading:a,isEmpty:l}}=(0,r.useContext)(Go),[s,...c]=Array.isArray(n)?n:[n],d=c.find((e=>e.type===Ft)),b=c.find((e=>e.type===Gt));return(0,e.jsx)(Mt,{className:t,columnCount:o,children:a?b:l?d:i.map(((e,r)=>s(e,r)))})};Jt.displayName="CardListBodyAuto";const Wt=(0,r.forwardRef)((({className:o,children:t},n)=>{const{resolvedPageProps:{isLoading:i,isEmpty:a}}=(0,r.useContext)(Go);return i||a?null:(0,e.jsx)(At,{className:o,ref:n,children:t})}));Wt.displayName="CardListFooterAuto";const Zt={root:a.css`
1883
+ inline-size: 100%;
1884
+ padding-block: ${$(8)};
1885
+ border-block-end: solid ${q(1)} ${x("gray",1)};
1886
+ background-color: ${x("white")};
1887
+ box-sizing: border-box;
1888
+ display: flex;
1889
+ flex-direction: column;
1890
+ position: relative;
1891
+ z-index: 0;
1892
+ `},Xt=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Zt.root,className:n,ref:o},i,{children:t}))}));Xt.displayName="ContentHeader";const en={root:a.css`
1893
+ font-size: ${$(8)};
1894
+ font-weight: ${v("bold")};
1895
+ color: ${x("primary",7)};
1896
+ `},rn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:en.root,className:n,ref:o},i,{children:t}))}));rn.displayName="ContentTitle";const on={root:a.css`
1897
+ &[data-qlib-digit="3"] {
1898
+ --qlib-inline-size: ${$(11)};
1899
+ --qlib-transform-scale: 0.8;
1900
+ }
1901
+ &[data-qlib-digit="2"] {
1902
+ --qlib-inline-size: ${$(8.5)};
1903
+ --qlib-transform-scale: 0.7;
1904
+ }
1905
+ inline-size: var(--qlib-inline-size);
1906
+ padding-block: ${$(2)};
1907
+ padding-inline: ${$(4)};
1908
+ border-radius: ${$(1)};
1909
+ border: solid 1px ${x("gray",1)};
1910
+ display: flex;
1911
+ align-items: center;
1912
+ `,icon:a.css`
1913
+ font-size: ${$(3)};
1914
+ color: ${x("gray",5)};
1915
+ flex-grow: 0;
1916
+ flex-shrink: 0;
1917
+ `,count:a.css`
1918
+ font-size: ${$(4)};
1919
+ color: ${x("gray",5)};
1920
+ display: flex;
1921
+ justify-content: flex-end;
1922
+ white-space: nowrap;
1923
+ flex-grow: 1;
1924
+ flex-shrink: 1;
1925
+ &[data-qlib-max="true"] {
1926
+ transform: scale(var(--qlib-transform-scale), 1);
1927
+ transform-origin: right center;
1928
+ }
1929
+ `},tn=(0,r.forwardRef)(((r,o)=>{var{count:t,digitSize:n=3,iconNode:i,className:a,children:l}=r,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["count","digitSize","iconNode","className","children"]);const{transNumber:c}=I("countBadge"),d=Math.pow(10,n);return(0,e.jsxs)("div",Object.assign({css:on.root,className:a,ref:o,"data-qlib-digit":n},s,{children:[(0,e.jsx)("span",{css:on.icon,children:i}),(0,e.jsx)("span",{css:on.count,"data-qlib-max":null!=t&&t>=d,children:null!=t?t<d?c(t):c(d-1)+"+":"?"})]}))}));tn.displayName="CountIndicator";const nn=(0,r.createContext)({scheme:"primary"}),an=nn.Provider,ln={overlay:a.css`
1930
+ padding-block: ${$(6)};
1931
+ padding-inline: ${$(8)};
1932
+ display: flex;
1933
+ align-items: center;
1934
+ justify-content: center;
1935
+ box-sizing: border-box;
1936
+ z-index: 1000;
1937
+ `,overlaySmartphone:a.css`
1938
+ padding-block: ${$(6)};
1939
+ padding-inline: ${$(6)};
1940
+ display: flex;
1941
+ align-items: center;
1942
+ justify-content: center;
1943
+ box-sizing: border-box;
1944
+ z-index: 1000;
1945
+ `,root:a.css`
1946
+ &[data-qlib-size="small"] {
1947
+ --qlib-max-width: ${$(100)};
1948
+ }
1949
+ &[data-qlib-size="normal"] {
1950
+ --qlib-max-width: ${$(160)};
1951
+ }
1952
+ &[data-qlib-smartphone="false"] {
1953
+ --qlib-dialog-padding-inline: ${$(8)};
1954
+ }
1955
+ &[data-qlib-smartphone="true"] {
1956
+ --qlib-dialog-padding-inline: ${$(6)};
1957
+ }
1958
+ max-width: var(--qlib-max-width);
1959
+ width: 100%;
1960
+ padding-block: ${$(6)};
1961
+ padding-inline: var(--qlib-dialog-padding-inline);
1962
+ border-radius: ${$(2)};
1963
+ background-color: ${x("background")};
1964
+ box-shadow: ${k(j(x("black"),.2),2)};
1965
+ transform: translate(${$(0)}, ${$(2)});
1966
+ overflow: hidden;
1967
+ position: relative;
1968
+ transition: transform 0.2s ease;
1969
+ &.ReactModal__Content--after-open {
1970
+ transform: translate(${$(0)}, ${$(0)});
1971
+ }
1972
+ &.ReactModal__Content--before-close {
1973
+ transform: translate(${$(0)}, ${$(2)});
1974
+ }
1975
+ `},sn=({label:o,scheme:t="primary",size:n="normal",isOpen:i,isForm:a=!0,onClose:l,children:s})=>{const c=a?"form":"div",d=xo(),b=(0,r.useMemo)((()=>({scheme:t,onClose:l})),[t,l]),p=(0,r.useCallback)((e=>{e.preventDefault()}),[]);return(0,e.jsx)(Br,{css:d?ln.overlaySmartphone:ln.overlay,isOpen:i,label:o,onClose:l,children:(0,e.jsx)(c,{css:ln.root,onSubmit:a?p:void 0,"data-qlib-size":n,"data-qlib-smartphone":d,children:(0,e.jsx)(an,{value:b,children:s})})})};sn.displayName="Dialog";const cn={root:a.css`
1976
+ `},dn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("section",Object.assign({css:cn.root,className:n,ref:o},i,{children:t}))}));dn.displayName="DialogBody";const bn={root:a.css`
1977
+ &[data-qlib-dialog-variant="submit"] {
1978
+ --qlib-order: 2;
1979
+ }
1980
+ &[data-qlib-dialog-variant="cancel"] {
1981
+ --qlib-order: 1;
1982
+ }
1983
+ inline-size: ${$(32)};
1984
+ display: flex;
1985
+ align-items: center;
1986
+ justify-content: center;
1987
+ order: var(--qlib-order);
1988
+ `},pn=(0,r.forwardRef)(((o,t)=>{var{variant:n="submit",isDisabled:i,isLoading:a,onClick:l,children:s,className:c}=o,d=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["variant","isDisabled","isLoading","onClick","children","className"]);const{scheme:b}=(0,r.useContext)(nn);return(0,e.jsx)(He,Object.assign({css:bn.root,className:c,scheme:"submit"===n?b:"gray",variant:"submit"===n?"solid":"light",type:"submit"===n?"submit":"button",isDisabled:i,isLoading:a,onClick:l,ref:t,"data-qlib-dialog-variant":n},d,{children:s}))}));pn.displayName="DialogButton";const un={root:a.css`
1989
+ inset-block-start: ${$(4)};
1990
+ inset-inline-end: ${$(4)};
1991
+ block-size: ${$(7)};
1992
+ inline-size: ${$(7)};
1993
+ font-size: ${$(6)};
1994
+ color: ${x("gray",5)};
1995
+ border-radius: ${$(1)};
1996
+ transition: color 0.2s ease;
1997
+ display: flex;
1998
+ align-items: center;
1999
+ justify-content: center;
2000
+ position: absolute;
2001
+ cursor: pointer;
2002
+ &:hover {
2003
+ color: ${x("gray",4)};
2004
+ }
2005
+ &:focus-visible {
2006
+ outline: solid ${q(2)} ${j(x("primary",5),.6)};
2007
+ }
2008
+ `},fn=(0,r.forwardRef)(((o,t)=>{var{className:n}=o,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className"]);const{trans:a}=I("dialogCloseButton"),{onClose:c}=(0,r.useContext)(nn);return(0,e.jsx)("button",Object.assign({css:un.root,className:n,type:"button",onClick:c,ref:t,"aria-label":a("close")},i,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes})}))}));fn.displayName="DialogCloseButton";const mn={root:a.css`
2009
+ margin-block-start: ${$(6)};
2010
+ margin-block-end: ${$(-6)};
2011
+ margin-inline: calc(-1 * var(--qlib-dialog-padding-inline));
2012
+ padding-block: ${$(4)};
2013
+ padding-inline: ${$(8)};
2014
+ column-gap: ${$(4)};
2015
+ background-color: ${x("white")};
2016
+ display: flex;
2017
+ flex-direction: row;
2018
+ align-items: center;
2019
+ justify-content: center;
2020
+ `},yn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:mn.root,className:n,ref:o},i,{children:t}))}));yn.displayName="DialogFooter";const gn={root:a.css`
2021
+ margin-block-end: ${$(6)};
2022
+ display: flex;
2023
+ align-items: center;
2024
+ justify-content: center;
2025
+ `},hn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:gn.root,className:n,ref:o},i,{children:t}))}));hn.displayName="DialogHeader";const On=e=>a.css`
2026
+ font-size: ${$(6)};
2027
+ font-weight: ${v("bold")};
2028
+ letter-spacing: 0.1em;
2029
+ text-indent: 0.1em;
2030
+ color: ${x(e,7)};
2031
+ `,vn=(0,r.forwardRef)(((o,t)=>{var{as:n="h3",children:i,className:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["as","children","className"]);const s=n,{scheme:c}=(0,r.useContext)(nn);return(0,e.jsx)(s,Object.assign({css:On(c),className:a,ref:t},l,{children:i}))}));vn.displayName="DialogTitle";const xn=(0,r.createContext)({scheme:"primary"}),jn=xn.Provider,wn={overlay:a.css`
2032
+ display: flex;
2033
+ align-items: center;
2034
+ justify-content: end;
2035
+ box-sizing: border-box;
2036
+ z-index: 1000;
2037
+ `,root:a.css`
2038
+ background-color: ${x("background")};
2039
+ box-shadow: ${k(j(x("black"),.2),2)};
2040
+ position: relative;
2041
+ box-sizing: border-box;
2042
+ transition: transform 0.2s ease;
2043
+ display: flex;
2044
+ flex-direction: column;
2045
+ overflow: hidden;
2046
+ `,rootDesktop:a.css`
2047
+ --qlib-padding-inline: ${$(10)};
2048
+ width: 90%;
2049
+ height: 100%;
2050
+ max-width: ${$(260)}; // 240 + 10 * 2 (両側のパディング分を加える)
2051
+ padding-block: ${$(8)};
2052
+ border-start-start-radius: ${$(2)};
2053
+ border-end-start-radius: ${$(2)};
2054
+ transform: translate(100%, 0%);
2055
+ &.ReactModal__Content--after-open {
2056
+ transform: translate(0%, 0%);
2057
+ }
2058
+ &.ReactModal__Content--before-close {
2059
+ transform: translate(100%, 0%);
2060
+ }
2061
+ `,rootSmartphone:a.css`
2062
+ --qlib-padding-inline: ${$(6)};
2063
+ width: 100%;
2064
+ height: 95%;
2065
+ padding-block: ${$(8)};
2066
+ border-start-start-radius: ${$(2)};
2067
+ border-start-end-radius: ${$(2)};
2068
+ align-self: flex-end;
2069
+ transform: translate(0%, 100%);
2070
+ &.ReactModal__Content--after-open {
2071
+ transform: translate(0%, 0%);
2072
+ }
2073
+ &.ReactModal__Content--before-close {
2074
+ transform: translate(0%, 100%);
2075
+ }
2076
+ `},$n=({label:o,scheme:t="primary",isOpen:n,isForm:i=!0,onClose:a,children:l})=>{const s=i?"form":"div",c=xo(),d=(0,r.useMemo)((()=>({scheme:t,onClose:a})),[t,a]),b=(0,r.useCallback)((e=>{e.preventDefault()}),[]);return(0,e.jsx)(Br,{css:wn.overlay,isOpen:n,label:o,onClose:a,children:(0,e.jsx)(s,{css:[wn.root,c?wn.rootSmartphone:wn.rootDesktop],onSubmit:i?b:void 0,children:(0,e.jsx)(jn,{value:d,children:l})})})};$n.displayName="Drawer";const qn={root:a.css`
2077
+ padding-inline: var(--qlib-padding-inline);
2078
+ flex-grow: 1;
2079
+ flex-shrink: 1;
2080
+ overflow-y: auto;
2081
+ `},kn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:qn.root,className:n,ref:o},i,{children:t}))}));kn.displayName="DrawerBody";const Nn={root:a.css`
2082
+ &[data-qlib-dialog-variant="submit"] {
2083
+ --qlib-order: 2;
2084
+ }
2085
+ &[data-qlib-dialog-variant="cancel"] {
2086
+ --qlib-order: 1;
2087
+ }
2088
+ inline-size: ${$(40)};
2089
+ display: flex;
2090
+ align-items: center;
2091
+ justify-content: center;
2092
+ order: var(--qlib-order);
2093
+ `},Pn=(0,r.forwardRef)(((o,t)=>{var{variant:n="submit",isDisabled:i,isLoading:a,onClick:l,children:s,className:c}=o,d=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["variant","isDisabled","isLoading","onClick","children","className"]);const{scheme:b}=(0,r.useContext)(xn);return(0,e.jsx)(He,Object.assign({css:Nn.root,className:c,scheme:"submit"===n?b:"gray",variant:"submit"===n?"solid":"light",size:"large",type:"submit"===n?"submit":"button",isDisabled:i,isLoading:a,onClick:l,ref:t,"data-qlib-dialog-variant":n},d,{children:s}))}));Pn.displayName="DrawerButton";const Sn=e=>a.css`
2094
+ font-size: ${$(4)};
2095
+ letter-spacing: 0.05em;
2096
+ color: ${x(e,7)};
2097
+ `,zn=(0,r.forwardRef)(((o,t)=>{var{children:n,className:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["children","className"]);const l=xo(),{scheme:s}=(0,r.useContext)(xn);return!l&&(0,e.jsx)("div",Object.assign({css:Sn(s),className:i,ref:t},a,{children:n}))}));zn.displayName="DrawerCaption";const Cn={root:a.css`
2098
+ margin-block-start: ${$(6)};
2099
+ margin-block-end: ${$(-8)};
2100
+ padding-block: ${$(4)};
2101
+ padding-inline: var(--qlib-padding-inline);
2102
+ column-gap: ${$(6)};
2103
+ background-color: ${x("white")};
2104
+ display: flex;
2105
+ flex-direction: row;
2106
+ align-items: center;
2107
+ justify-content: center;
2108
+ flex-grow: 0;
2109
+ flex-shrink: 0;
2110
+ `},In=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Cn.root,className:n,ref:o},i,{children:t}))}));In.displayName="DrawerFooter";const En={root:a.css`
2111
+ margin-block-end: ${$(8)};
2112
+ padding-inline: var(--qlib-padding-inline);
2113
+ row-gap: ${$(2)};
2114
+ display: flex;
2115
+ flex-direction: column;
2116
+ flex-grow: 0;
2117
+ flex-shrink: 0;
2118
+ `},Rn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:En.root,className:n,ref:o},i,{children:t}))}));Rn.displayName="DrawerHeader";const Dn=e=>a.css`
2119
+ font-size: ${$(8)};
2120
+ font-weight: ${v("bold")};
2121
+ letter-spacing: 0.1em;
2122
+ color: ${x(e,7)};
2123
+ &[data-qlib-smartphone="true"] {
2124
+ font-size: ${$(8)};
2125
+ }
2126
+ `,Mn=(0,r.forwardRef)(((o,t)=>{var{as:n="h3",children:i,className:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["as","children","className"]);const s=n,c=xo(),{scheme:d}=(0,r.useContext)(xn);return(0,e.jsx)(s,Object.assign({css:Dn(d),className:a,ref:t,"data-qlib-smartphone":c},l,{children:i}))}));Mn.displayName="DrawerTitle";const Ln=(0,r.createContext)(void 0),Fn=Ln.Provider;const Bn={root:a.css`
2127
+ &[data-qlib-size="small"] {
2128
+ --qlib-font-size: ${$(3)};
2129
+ }
2130
+ &[data-qlib-size="medium"] {
2131
+ --qlib-font-size: ${$(4)}
2132
+ }
2133
+ font-size: var(--qlib-font-size);
2134
+ color: ${x("gray",5)};
2135
+ `,icon:a.css`
2136
+ margin-inline-end: ${$("gap")};
2137
+ display: inline;
2138
+ `},An=(0,r.forwardRef)(((o,t)=>{var n,{size:i="small",className:a,children:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["size","className","children"]);const c=(0,r.useContext)(Ln);return(0,e.jsx)(Re,Object.assign({css:Bn.root,className:a,ref:t,"data-qlib-size":null!==(n=null==c?void 0:c.size)&&void 0!==n?n:i},s,{children:l}))}));An.displayName="Footnote";const Tn={root:a.css`
2139
+ margin-inline-end: ${$("gap")};
2140
+ display: inline;
2141
+ flex-grow: 0;
2142
+ flex-shrink: 0;
2143
+ `},Hn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Tn.root,className:n,ref:o},i,{children:t}))}));Hn.displayName="FootnoteIconContainer";const Vn={root:a.css`
2144
+ &[data-qlib-size="small"] {
2145
+ --qlib-row-gap: ${$(1.5)};
2146
+ }
2147
+ &[data-qlib-size="medium"] {
2148
+ --qlib-row-gap: ${$(2)}
2149
+ }
2150
+ row-gap: var(--qlib-row-gap);
2151
+ display: flex;
2152
+ flex-direction: column;
2153
+ `},Yn=(0,r.forwardRef)(((o,t)=>{var{size:n="small",className:i,children:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["size","className","children"]);const s=(0,r.useMemo)((()=>({size:n})),[n]);return(0,e.jsx)("div",Object.assign({css:Vn.root,className:i,ref:t,"data-qlib-size":n},l,{children:(0,e.jsx)(Fn,{value:s,children:a})}))}));Yn.displayName="FootnoteList";const Un={root:a.css`
2154
+ &[data-qlib-size="small"] {
2155
+ --qlib-column-gap: ${$(3)};
2156
+ }
2157
+ &[data-qlib-size="medium"] {
2158
+ --qlib-column-gap: ${$(4)}
2159
+ }
2160
+ column-gap: var(--qlib-column-gap);
2161
+ display: flex;
2162
+ `},_n=(0,r.forwardRef)(((o,t)=>{var n,{className:i,children:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className","children"]);const s=(0,r.useContext)(Ln);return(0,e.jsx)("div",Object.assign({css:Un.root,className:i,ref:t,"data-qlib-size":null!==(n=null==s?void 0:s.size)&&void 0!==n?n:"small"},l,{children:a}))}));_n.displayName="FootnoteListRow";const Kn=(0,r.createContext)({orientation:"horizontal"}),Gn=Kn.Provider;const Qn={rootHorizontal:a.css`
2163
+ display: inline-flex;
2164
+ align-items: baseline;
2165
+ `,rootVertical:a.css`
2166
+ display: inline-flex;
2167
+ flex-direction: column;
2168
+ `},Jn=(0,r.forwardRef)(((o,t)=>{var{orientation:n,className:i,children:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["orientation","className","children"]);const s=(0,r.useMemo)((()=>({orientation:n})),[n]);return(0,e.jsx)("span",Object.assign({css:"horizontal"===n?Qn.rootHorizontal:Qn.rootVertical,className:i,ref:t},l,{children:(0,e.jsx)(Gn,{value:s,children:a})}))}));const Wn={rootHorizontal:a.css`
2169
+ font-size: 80%;
2170
+ ::before {
2171
+ margin-inline: 0.25em;
2172
+ content: "/";
2173
+ }
2174
+ `,rootVertical:a.css`
2175
+ padding-inline: 0.2em;
2176
+ font-size: 80%;
2177
+ text-align: center;
2178
+ `},Zn=(0,r.forwardRef)(((o,t)=>{var{className:n,children:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className","children"]);const{transNumber:l}=I("fractionView"),{orientation:s}=(0,r.useContext)(Kn);return(0,e.jsx)("span",Object.assign({css:"horizontal"===s?Wn.rootHorizontal:Wn.rootVertical,className:n,ref:t},a,{children:"number"==typeof i?l(i):i}))}));Zn.displayName="FractionViewDenominator";const Xn={rootHorizontal:a.css`
2179
+ `,rootVertical:a.css`
2180
+ padding-inline: 0.2em;
2181
+ padding-block-end: 0.1em;
2182
+ margin-block-end: 0.2em;
2183
+ box-sizing: border-box;
2184
+ text-align: center;
2185
+ border-bottom: solid ${q(1)} currentcolor;
2186
+ `},ei=(0,r.forwardRef)(((o,t)=>{var{className:n,children:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className","children"]);const{transNumber:l}=I("fractionView"),{orientation:s}=(0,r.useContext)(Kn);return(0,e.jsx)("span",Object.assign({css:"horizontal"===s?Xn.rootHorizontal:Xn.rootVertical,className:n,ref:t},a,{children:"number"==typeof i?l(i):i}))}));ei.displayName="FractionViewNumerator";const ri={root:a.css`
2187
+ inline-size: 100%;
2188
+ block-size: ${$(16)};
2189
+ padding-inline: ${$(10)};
2190
+ box-shadow: ${k(j(x("gray",5),.2),.5)};
2191
+ border-block-end: solid ${q(1)} ${x("gray",1)};
2192
+ background-color: ${x("deepBackground")};
2193
+ box-sizing: border-box;
2194
+ display: flex;
2195
+ justify-content: space-between;
2196
+ position: relative;
2197
+ z-index: 1;
2198
+ &[data-smartphone="true"] {
2199
+ padding-inline: ${$(6)};
2200
+ }
2201
+ `},oi=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);const a=xo();return(0,e.jsx)("header",Object.assign({css:ri.root,className:n,ref:o,"data-smartphone":a},i,{children:t}))}));oi.displayName="Sidebar";const ti={root:a.css`
2202
+ align-self: center;
2203
+ flex-grow: 0;
2204
+ flex-shrink: 0;
2205
+ `},ni=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("h1",Object.assign({css:ti.root,className:n,ref:o},i,{children:t}))}));ni.displayName="HeaderLeft";const ii={root:a.css`
2206
+ column-gap: ${$(4)};
2207
+ display: flex;
2208
+ `},ai=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:ii.root,className:n,ref:o},i,{children:t}))}));ai.displayName="HeaderMenu";const li=e=>a.css`
2209
+ --qlib-highlight-color: transparent;
2210
+ color: ${x("gray",5)};
2211
+ cursor: pointer;
2212
+ display: flex;
2213
+ align-items: center;
2214
+ position: relative;
2215
+ &:hover,
2216
+ &:focus {
2217
+ --qlib-highlight-color: ${x("gray",5)};
2218
+ }
2219
+ &[data-active="true"] {
2220
+ --qlib-highlight-color: ${x(e,5)};
2221
+ color: ${x("primary",5)};
2222
+ font-weight: ${v("bold")};
2223
+ }
2224
+ &::before {
2225
+ inset-inline: ${$(0)};
2226
+ inset-block-end: ${$(0)};
2227
+ block-size: ${q(4)};
2228
+ background-color: var(--qlib-highlight-color);
2229
+ transition: background-color 0.2s ease;
2230
+ position: absolute;
2231
+ content: "";
2232
+ }
2233
+ `,si=(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",href:n,isActive:i=!1,children:a,className:l}=r,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","href","isActive","children","className"]);return(0,e.jsx)("a",Object.assign({css:li(t),href:n,ref:o,"data-active":i},s,{children:a}))}));si.displayName="HeaderMenuItem";const ci={root:a.css`
2234
+ margin-inline-end: ${$("gap")};
2235
+ color: var(--qlib-icon-color);
2236
+ display: inline;
2237
+ flex-grow: 0;
2238
+ flex-shrink: 0;
2239
+ `},di=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:ci.root,className:n,ref:o},i,{children:t}))}));di.displayName="HeaderMenuItemIconContainer";const bi=(0,r.createContext)({setOpen:()=>null,listRef:{current:[]},activeIndex:null,getItemProps:()=>({})}),pi=bi.Provider;var ui=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o};const fi=e=>a.css`
2240
+ --qlib-icon-color: ${x(null!=e?e:"gray",5)};
2241
+ padding-block: ${$(2)};
2242
+ padding-inline: ${$(2)};
2243
+ color: ${null!=e?x(e,5):"inherit"};
2244
+ flex-grow: 0;
2245
+ flex-shrink: 0;
2246
+ cursor: pointer;
2247
+ transition: background-color 0.2s ease;
2248
+ &:hover,
2249
+ &:focus {
2250
+ background-color: ${x(null!=e?e:"primary",0)};
2251
+ }
2252
+ `,mi=(a.css`
2253
+ margin-inline-end: ${$("gap")};
2254
+ color: var(--qlib-icon-color);
2255
+ `,(0,r.forwardRef)(((o,t)=>{var{scheme:n=null,onClick:i,children:a,className:l}=o;const s=ui(o,["scheme","onClick","children","className"]),{index:c}=s,d=ui(s,["index"]),{setOpen:b,listRef:p,activeIndex:u,getItemProps:f}=(0,r.useContext)(bi),m=(0,Qe.useMergeRefs)([t,e=>p.current[c]=e]),y=(0,r.useCallback)((e=>{b(!1),null==i||i(e)}),[b,i]);return(0,e.jsx)("button",Object.assign({css:fi(n),className:l,ref:m},f({tabIndex:u===c?0:-1,onClick:y}),d,{children:a}))})));mi.displayName="MenuItem";const yi={root:a.css`
2256
+ inline-size: ${$(48)};
2257
+ max-block-size: ${$(60)};
2258
+ border-radius: ${$(1)};
2259
+ background-color: ${x("white")};
2260
+ border: solid ${q(1)} ${x("gray",1)};
2261
+ box-shadow: ${k(j(x("gray",5),.2),1)};
2262
+ transition: opacity 0.2s ease;
2263
+ display: flex;
2264
+ flex-direction: column;
2265
+ opacity: 0;
2266
+ z-index: 3000;
2267
+ overflow-y: auto;
2268
+ &[data-qlib-status="open"] {
2269
+ opacity: 1;
2270
+ }
2271
+ `,inner:a.css`
2272
+ display: flex;
2273
+ flex-direction: column;
2274
+ `},gi=(0,r.forwardRef)(((r,o)=>{var{isOpen:t,isMounted:n,status:i,context:a,style:l,className:s,children:c}=r,d=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["isOpen","isMounted","status","context","style","className","children"]);return n&&(0,e.jsx)(Qe.FloatingPortal,{children:(0,e.jsx)(Qe.FloatingFocusManager,{context:a,children:(0,e.jsx)("div",Object.assign({css:yi.root,className:s,style:l,ref:o,"data-qlib-status":i},d,{children:(0,e.jsx)("div",{css:yi.inner,children:c})}))})})})),hi=({trigger:o,placement:t="bottom-start",className:n,children:i})=>{const[a,l]=(0,r.useState)(!1),s=(0,r.useRef)([]),[c,d]=(0,r.useState)(null),{refs:b,floatingStyles:p,context:u}=(0,Qe.useFloating)({open:a,onOpenChange:l,placement:t,middleware:[(0,Qe.offset)(2)]}),{isMounted:f,status:m}=(0,Qe.useTransitionStatus)(u,{duration:200}),y=(0,Qe.useClick)(u),g=(0,Qe.useDismiss)(u),h=(0,Qe.useListNavigation)(u,{listRef:s,activeIndex:c,onNavigate:d}),O=(0,Qe.useRole)(u,{role:"menu"}),{getReferenceProps:v,getFloatingProps:x,getItemProps:j}=(0,Qe.useInteractions)([y,g,h,O]),w=(0,r.useMemo)((()=>({setOpen:l,listRef:s,activeIndex:c,getItemProps:j})),[l,s,c,j]);return(0,e.jsxs)(e.Fragment,{children:[null!=o&&(0,r.cloneElement)(o,Object.assign({ref:b.setReference},v())),(0,e.jsx)(gi,Object.assign({className:n,isOpen:a,isMounted:f,status:m,context:u,style:p,ref:b.setFloating},x(),{children:(0,e.jsx)(pi,{value:w,children:Oi(i)})}))]})},Oi=e=>{let o=-1;return r.Children.map(e,(e=>(0,ke.isElement)(e)?e.type===mi?(o++,(0,r.cloneElement)(e,{index:o})):e:void 0))};const vi={root:a.css`
2275
+ margin-inline-end: ${$("gap")};
2276
+ color: var(--qlib-icon-color);
2277
+ display: inline;
2278
+ flex-grow: 0;
2279
+ flex-shrink: 0;
2280
+ `},xi=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:vi.root,className:n,ref:o},i,{children:t}))}));xi.displayName="MenuItemIconContainer";const ji={root:a.css`
2281
+ inline-size: 100%;
2282
+ margin-block: ${$(1)};
2283
+ border-block-start: solid ${q(1)} ${x("gray",1)};
2284
+ `},wi=(0,r.forwardRef)(((r,o)=>{var{scheme:t=null,onClick:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","onClick","className"]);return(0,e.jsx)("div",Object.assign({css:ji.root,className:i,ref:o,role:"separator"},a))}));wi.displayName="MenuDivider";const $i={root:a.css`
2285
+ column-gap: ${$(4)};
2286
+ display: flex;
2287
+ align-items: center;
2288
+ box-sizing: border-box;
2289
+ position: relative;
2290
+ pointer-events: all;
2291
+ transition: opacity 0.2s ease;
2292
+ `,button:a.css`
2293
+ column-gap: ${$(2)};
2294
+ display: flex;
2295
+ flex-grow: 0;
2296
+ flex-shrink: 0;
2297
+ `,center:a.css`
2298
+ color: ${x("gray",5)};
2299
+ display: flex;
2300
+ align-items: baseline;
2301
+ justify-content: center;
2302
+ flex-grow: 1;
2303
+ flex-shrink: 1;
2304
+ `,small:a.css`
2305
+ font-size: 80%;
2306
+ `},qi=(0,r.forwardRef)(((o,t)=>{var{page:n,pageCount:i,setPage:a,className:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["page","pageCount","setPage","className"]);const{trans:c,transNumber:d}=I("pagination"),b=i>=2&&n>0,p=n<i-1,u=(0,r.useCallback)((()=>{null==a||a(0)}),[a]),f=(0,r.useCallback)((()=>{null==a||a(i-1)}),[a,i]),m=(0,r.useCallback)((()=>{null==a||a((e=>Math.max(e-1,0)))}),[a]),y=(0,r.useCallback)((()=>{null==a||a((e=>Math.min(e+1,i-1)))}),[a,i]);return(0,e.jsxs)("nav",Object.assign({css:$i.root,className:l,ref:t,"aria-label":c("label")},s,{children:[(0,e.jsxs)("div",{css:$i.button,children:[(0,e.jsx)(Or,{scheme:"gray",variant:"light",label:c("first"),isDisabled:!b,onClick:u,children:(0,e.jsx)(gr,{name:"first"})}),(0,e.jsx)(Or,{scheme:"gray",variant:"light",label:c("previous"),isDisabled:!b,onClick:m,children:(0,e.jsx)(gr,{name:"previous"})})]}),(0,e.jsx)("div",{css:$i.center,children:(0,e.jsxs)(Jn,{orientation:"horizontal",children:[(0,e.jsx)(ei,{children:d(n+1)}),(0,e.jsx)(Zn,{children:d(i)})]})}),(0,e.jsxs)("div",{css:$i.button,children:[(0,e.jsx)(Or,{scheme:"gray",variant:"light",label:c("next"),isDisabled:!p,onClick:y,children:(0,e.jsx)(gr,{name:"next"})}),(0,e.jsx)(Or,{scheme:"gray",variant:"light",label:c("last"),isDisabled:!p,onClick:f,children:(0,e.jsx)(gr,{name:"last"})})]})]}))}));qi.displayName="Pagination";const ki=(0,r.forwardRef)(((o,t)=>{var{className:n}=o,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className"]);const{resolvedPageProps:{isLoading:a,isEmpty:l,page:s,pageCount:c,setPage:d}}=(0,r.useContext)(Go);return a||l?null:(0,e.jsx)(qi,Object.assign({className:n,page:s,pageCount:c,setPage:d,ref:t},i))}));ki.displayName="PaginationAuto";const Ni={root:a.css`
2307
+ inline-size: ${1.6}em;
2308
+ block-size: ${1.6}em;
2309
+ vertical-align: -0.27em;
2310
+ display: inline-flex;
2311
+ align-items: center;
2312
+ justify-content: center;
2313
+ flex-grow: 0;
2314
+ flex-shrink: 0;
2315
+ `,icon:e=>a.css`
2316
+ block-size: 100%;
2317
+ aspect-ratio: 576 / 512;
2318
+ overflow: visible;
2319
+ & >text {
2320
+ font-weight: ${v("bold")};
2321
+ }
2322
+ & >text:nth-of-type(1) {
2323
+ stroke-width: 32;
2324
+ stroke-linecap: round;
2325
+ stroke-linejoin: round;
2326
+ user-select: none; // 罫線用のテキストなので選択できないように
2327
+ }
2328
+ & >text:nth-of-type(2) {
2329
+ fill: ${x("white")};
2330
+ }
2331
+ &[data-qlib-type="gold"] {
2332
+ & >path {
2333
+ fill: url("#qlib-rank-gold");
2334
+ }
2335
+ & >text:nth-of-type(1) {
2336
+ stroke: url("#qlib-rank-gold");
2337
+ }
2338
+ }
2339
+ &[data-qlib-type="silver"] {
2340
+ & >path {
2341
+ fill: url("#qlib-rank-silver");
2342
+ }
2343
+ & >text:nth-of-type(1) {
2344
+ stroke: url("#qlib-rank-silver");
2345
+ }
2346
+ }
2347
+ &[data-qlib-type="bronze"] {
2348
+ & >path {
2349
+ fill: url("#qlib-rank-bronze");
2350
+ }
2351
+ & >text:nth-of-type(1) {
2352
+ stroke: url("#qlib-rank-bronze");
2353
+ }
2354
+ }
2355
+ &[data-qlib-type="normal"] {
2356
+ & >path {
2357
+ fill: ${x(e,5)};
2358
+ }
2359
+ & >text:nth-of-type(1) {
2360
+ stroke: ${x(e,5)};
2361
+ }
2362
+ }
2363
+ `},Pi=(0,r.forwardRef)(((r,o)=>{var{rank:t,scheme:n="primary",useMedalColors:i=!0,className:a}=r,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["rank","scheme","useMedalColors","className"]);const{trans:s,transNumber:c}=I("rankView"),d=i?t<=1?"gold":t<=2?"silver":t<=3?"bronze":"normal":"normal";return(0,e.jsx)("span",Object.assign({css:Ni.root,className:a,ref:o},l,{children:(0,e.jsxs)("svg",{css:Ni.icon(n),viewBox:"0 0 576 512","aria-label":s("label",{rank:t}),"data-qlib-type":d,children:[(0,e.jsx)("path",{d:"M309 106c11.4-7 19-19.7 19-34c0-22.1-17.9-40-40-40s-40 17.9-40 40c0 14.4 7.6 27 19 34L209.7 220.6c-9.1 18.2-32.7 23.4-48.6 10.7L72 160c5-6.7 8-15 8-24c0-22.1-17.9-40-40-40S0 113.9 0 136s17.9 40 40 40c.2 0 .5 0 .7 0L86.4 427.4c5.5 30.4 32 52.6 63 52.6H426.6c30.9 0 57.4-22.1 63-52.6L535.3 176c.2 0 .5 0 .7 0c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40c0 9 3 17.3 8 24l-89.1 71.3c-15.9 12.7-39.5 7.5-48.6-10.7L309 106z"}),(0,e.jsx)("text",{x:"50%",y:"62%",fontSize:"320",textAnchor:"middle",dominantBaseline:"central","aria-hidden":!0,children:c(t)}),(0,e.jsx)("text",{x:"50%",y:"62%",fontSize:"320",textAnchor:"middle",dominantBaseline:"central","aria-hidden":!0,children:c(t)})]})}))}));Pi.displayName="RankView";const Si=(0,r.createContext)({activeIndex:-1,count:0}),zi=Si.Provider,Ci=(0,r.createContext)({index:0}),Ii=Ci.Provider;var Ei=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o};const Ri=e=>a.css`
2364
+ --qlib-highlight-color: ${x(e,5)};
2365
+ column-gap: ${$(2)};
2366
+ display: flex;
2367
+ flex-direction: column;
2368
+ flex-grow: 0;
2369
+ flex-shrink: 0;
2370
+ `,Di=(0,r.forwardRef)(((o,t)=>{var{scheme:n="primary",children:i,className:a}=o;const l=Ei(o,["scheme","children","className"]),{index:s}=l,c=Ei(l,["index"]),d=(0,r.useMemo)((()=>({index:s})),[s]);return(0,e.jsx)("li",Object.assign({css:Ri(n),className:a,ref:t},c,{children:(0,e.jsx)(Ii,{value:d,children:i})}))}));Di.displayName="StepperItem";const Mi={root:a.css`
2371
+ column-gap: ${$(4)};
2372
+ row-gap: ${$(4)};
2373
+ display: flex;
2374
+ flex-direction: row;
2375
+ flex-wrap: wrap;
2376
+ `},Li=(0,r.forwardRef)(((o,t)=>{var n,{activeIndex:i=-1,children:a,className:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["activeIndex","children","className"]);const c=Fi(a),d=null!==(n=null==c?void 0:c.length)&&void 0!==n?n:0,b=(0,r.useMemo)((()=>({activeIndex:i,count:d})),[i,d]);return(0,e.jsx)("ol",Object.assign({css:Mi.root,className:l,ref:t},s,{children:(0,e.jsx)(zi,{value:b,children:c})}))})),Fi=e=>{let o=-1;return r.Children.map(e,(e=>(0,ke.isElement)(e)?e.type===Di?(o++,(0,r.cloneElement)(e,{index:o})):e:void 0))};Li.displayName="Stepper";const Bi={root:a.css`
2377
+ margin-block-start: ${$(2)};
2378
+ display: flex;
2379
+ flex-direction: column;
2380
+ flex-grow: 1;
2381
+ flex-shrink: 1;
2382
+ `},Ai=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Bi.root,className:n,ref:o},i,{children:t}))}));Ai.displayName="StepperBody";const Ti={root:a.css`
2383
+ column-gap: ${$(1)};
2384
+ display: flex;
2385
+ flex-direction: row;
2386
+ align-self: stretch;
2387
+ align-items: center;
2388
+ flex-grow: 0;
2389
+ flex-shrink: 0;
2390
+ `,number:a.css`
2391
+ inline-size: ${$(6)};
2392
+ block-size: ${$(6)};
2393
+ font-size: ${$(3)};
2394
+ border-radius: ${$(6)};
2395
+ border: solid ${q(1)} transparent;
2396
+ display: flex;
2397
+ align-items: center;
2398
+ justify-content: center;
2399
+ flex-grow: 0;
2400
+ flex-shrink: 0;
2401
+ &[data-status="completed"] {
2402
+ border-color: var(--qlib-highlight-color);
2403
+ background-color: ${x("white")};
2404
+ color: ${x("primary",5)};
2405
+ }
2406
+ &[data-status="active"] {
2407
+ border-color: var(--qlib-highlight-color);
2408
+ background-color: var(--qlib-highlight-color);
2409
+ color: ${x("white")};
2410
+ }
2411
+ &[data-status="upcoming"] {
2412
+ border-color: ${x("gray",3)};
2413
+ background-color: ${x("white")};
2414
+ color: ${x("gray",5)};
2415
+ }
2416
+ `,border:a.css`
2417
+ block-size: ${$(1)};
2418
+ margin-inline-end: ${$(-3)};
2419
+ background-color: ${x("gray",1)};
2420
+ border-radius: ${$("max")};
2421
+ flex-grow: 1;
2422
+ flex-shrink: 1;
2423
+ opacity: 0;
2424
+ &[data-visible="true"] {
2425
+ opacity: 1;
2426
+ }
2427
+ &[data-highlight="true"] {
2428
+ background-color: var(--qlib-highlight-color);
2429
+ }
2430
+ `},Hi=(0,r.forwardRef)(((o,t)=>{var{children:n,className:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["children","className"]);const{transNumber:c}=Eo("stepper"),{index:d}=(0,r.useContext)(Ci),{activeIndex:b,count:p}=(0,r.useContext)(Si),u=d<b?"completed":d===b?"active":"upcoming";return(0,e.jsxs)("div",Object.assign({css:Ti.root,className:i,ref:t},a,{children:[(0,e.jsx)("div",{css:Ti.number,"data-status":u,children:d<b?(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCheck}):null!=n?n:c(d+1)}),(0,e.jsx)("div",{css:Ti.border,"aria-hidden":!0,"data-visible":d<p-1,"data-highlight":d+1<=b})]}))}));Hi.displayName="StepperNumber";const Vi={root:a.css`
2431
+ font-size: ${$(4)};
2432
+ font-weight: ${v("bold")};
2433
+ `},Yi=(0,r.forwardRef)(((r,o)=>{var{as:t,children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","children","className"]);return(0,e.jsx)(rr,Object.assign({css:Vi.root,className:i,as:t,lineHeight:"normal",ref:o},a,{children:n}))}));Yi.displayName="StepperTitle";const Ui={root:a.css`
2434
+ inline-size: 100%;
2435
+ margin-block-end: ${q(-1)};
2436
+ column-gap: ${$(6)};
2437
+ border-block-end: solid ${q(1)} ${x("gray",1)};
2438
+ background-color: ${x("white")};
2439
+ display: flex;
2440
+ align-items: flex-end;
2441
+ `},_i=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Ui.root,className:n,ref:o},i,{children:t}))}));_i.displayName="TabList";const Ki={root:a.css`
2442
+ padding-block-end: calc(${$(3)} + ${q(4)});
2443
+ padding-inline: ${$(0)};
2444
+ color: ${x("gray",5)};
2445
+ display: flex;
2446
+ align-items: center;
2447
+ justify-content: center;
2448
+ flex-grow: 0;
2449
+ flex-shrink: 0;
2450
+ cursor: pointer;
2451
+ position: relative;
2452
+ transition: background-color 0.2s ease;
2453
+ &:hover,
2454
+ &:focus {
2455
+ --qlib-highlight-color: ${x("gray",5)};
2456
+ }
2457
+ &::before {
2458
+ inset-inline: ${$(0)};
2459
+ inset-block-end: ${$(0)};
2460
+ block-size: ${q(4)};
2461
+ background-color: var(--qlib-highlight-color);
2462
+ transition: background-color 0.2s ease;
2463
+ position: absolute;
2464
+ content: "";
2465
+ }
2466
+ &[data-active="true"] {
2467
+ --qlib-highlight-color: ${x("primary",5)};
2468
+ font-weight: ${v("bold")};
2469
+ color: ${x("primary",5)};
2470
+ }
2471
+ `},Gi=(0,r.forwardRef)(((r,o)=>{var{isActive:t=!1,href:n,onClick:i,children:a,className:l}=r,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["isActive","href","onClick","children","className"]);return null!=n?(0,e.jsx)("a",Object.assign({css:Ki.root,className:l,ref:o,href:n,onClick:i,"data-active":t},s,{children:a})):(0,e.jsx)("button",Object.assign({css:Ki.root,className:l,ref:o,onClick:i,"data-active":t},s,{children:a}))}));Gi.displayName="Tab";const Qi={root:a.css`
2472
+ margin-inline-end: ${$("gap")};
2473
+ display: inline;
2474
+ flex-grow: 0;
2475
+ flex-shrink: 0;
2476
+ `},Ji=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Qi.root,className:n,ref:o},i,{children:t}))}));Ji.displayName="HeaderMenuItemIconContainer";const Wi=a.keyframes`
2477
+ from {
2478
+ opacity: 0;
2479
+ transform: translate(${$(0)}, ${$(2)});
2480
+ }
2481
+ to {
2482
+ opacity: 1;
2483
+ transform: translate(${$(0)}, ${$(0)});
2484
+ }
2485
+ `,Zi=a.keyframes`
2486
+ to {
2487
+ opacity: 0;
2488
+ transform: translate(${$(0)}, ${$(2)});
2489
+ }
2490
+ from {
2491
+ opacity: 1;
2492
+ transform: translate(${$(0)}, ${$(0)});
2493
+ }
2494
+ `,Xi={root:e=>a.css`
2495
+ inline-size: 100%;
2496
+ border-radius: ${$(1)};
2497
+ background-color: ${x("white")};
2498
+ border: solid ${q(1)} ${x("gray",1)};
2499
+ box-shadow: ${k(j(x("gray",5),.2),1)};
2500
+ display: flex;
2501
+ box-sizing: border-box;
2502
+ transition: opacity 0.2s ease, transform 0.2s ease;
2503
+ &::before {
2504
+ margin-block: ${q(-1)};
2505
+ margin-inline-start: ${q(-1)};
2506
+ inline-size: ${$(1)};
2507
+ border-start-start-radius: ${$(1)};
2508
+ border-end-start-radius: ${$(1)};
2509
+ background-color: ${x(e,5)};
2510
+ flex-grow: 0;
2511
+ flex-shrink: 0;
2512
+ content: "";
2513
+ }
2514
+ &[data-state="open"] {
2515
+ animation: ${Wi} 0.2s ease;
2516
+ }
2517
+ &[data-state="closed"] {
2518
+ animation: ${Zi} 0.2s ease;
2519
+ }
2520
+ `,icon:e=>a.css`
2521
+ margin-inline-start: ${$(3)};
2522
+ margin-inline-end: ${$("gap")};
2523
+ font-size: ${$(6)};
2524
+ color: ${x(e,5)};
2525
+ display: flex;
2526
+ align-items: center;
2527
+ justify-content: center;
2528
+ flex-grow: 0;
2529
+ flex-shrink: 0;
2530
+ `,container:a.css`
2531
+ padding-block: ${$(3)};
2532
+ padding-inline-end: ${$(3)};
2533
+ &:first-of-type {
2534
+ margin-inline-start: ${$(3)};
2535
+ }
2536
+ `},ea=(0,r.forwardRef)(((r,o)=>{var{isOpen:t,duration:n=5e3,scheme:i="primary",iconNode:a,onOpenSet:l,children:s,className:c}=r,d=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["isOpen","duration","scheme","iconNode","onOpenSet","children","className"]);return(0,e.jsxs)(so.Root,Object.assign({css:Xi.root(i),className:c,duration:null!=n?n:864e5,open:t,onOpenChange:l,ref:o},d,{children:[null!=a&&(0,e.jsx)("div",{css:Xi.icon(i),children:a}),(0,e.jsx)(so.Description,{css:Xi.container,children:s})]}))}));ea.displayName="Toast";const ra={root:a.css`
2537
+ row-gap: ${$(2)};
2538
+ display: flex;
2539
+ flex-direction: column;
2540
+ `},oa=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:ra.root,className:n,ref:o},i,{children:t}))}));oa.displayName="ToastBody";const ta={root:a.css`
2541
+ font-size: ${$(4)};
2542
+ `},na=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(rr,Object.assign({css:ta.root,className:n,as:"p",lineHeight:"normal",ref:o},i,{children:t}))}));na.displayName="ToastMessage";const ia={root:a.css`
2543
+ font-size: ${$(3)};
2544
+ color: ${x("gray",5)};
2545
+ `},aa=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(rr,Object.assign({css:ia.root,className:n,as:"p",lineHeight:"narrow",ref:o},i,{children:t}))}));aa.displayName="ToastSupplement";const la=(0,r.forwardRef)(((r,o)=>{var{isOpen:t,duration:n=5e3,intent:i="success",onOpenSet:a,children:l,className:s}=r,c=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["isOpen","duration","intent","onOpenSet","children","className"]);return(0,e.jsx)(ea,Object.assign({className:s,isOpen:t,duration:n,scheme:"success"===i?"green":"error"===i?"red":"primary",iconNode:(0,e.jsx)(gr,{name:i}),onOpenSet:a,ref:o},c,{children:(0,e.jsx)(oa,{children:(0,e.jsx)(na,{children:l})})}))}));function sa(e){return a.css`
2546
+ display: flex;
2547
+ flex-direction: column;
2548
+ ${(null==e?void 0:e.gap)?a.css`row-gap: ${pa(e.gap)};`:""}
2549
+ ${(null==e?void 0:e.align)?a.css`align-items: ${e.align};`:""}
2550
+ ${(null==e?void 0:e.justify)?a.css`justify-content: ${e.justify};`:""}
2551
+ `}function ca(e){return a.css`
2552
+ display: flex;
2553
+ flex-direction: row;
2554
+ ${(null==e?void 0:e.gap)?a.css`column-gap: ${pa(e.gap)};`:""}
2555
+ ${(null==e?void 0:e.align)?a.css`align-items: ${e.align};`:""}
2556
+ ${(null==e?void 0:e.justify)?a.css`justify-content: ${e.justify};`:""}
2557
+ `}function da(e){return a.css`
2558
+ ${(null==e?void 0:e.top)?a.css`margin-block-start: ${pa(e.top)};`:""}
2559
+ ${(null==e?void 0:e.bottom)?a.css`margin-block-end: ${pa(e.bottom)};`:""}
2560
+ ${(null==e?void 0:e.left)?a.css`margin-inline-start: ${pa(e.left)};`:""}
2561
+ ${(null==e?void 0:e.right)?a.css`margin-inline-end: ${pa(e.right)};`:""}
2562
+ `}function ba(e){return a.css`
2563
+ ${(null==e?void 0:e.width)?a.css`inline-size: ${pa(e.width)};`:""}
2564
+ ${(null==e?void 0:e.height)?a.css`block-size: ${pa(e.height)};`:""}
2565
+ `}function pa(e){return"number"==typeof e?$(e):e}la.displayName="SimpleToast";const ua=()=>{const{open:e,close:o,setDialogSpec:t}=(0,r.useContext)(no);return(0,r.useCallback)((r=>{const n={element:r(o)};t(n),e()}),[e,o,t])},fa=()=>{const e=(0,r.useContext)(Jr);if(void 0===e)throw new Error("Not inside `RadioGroup`");const{value:o}=e;return{value:o}},ma=()=>{const{setToastSpecs:e}=(0,r.useContext)(po);return(0,r.useCallback)((o=>{const t=z()().valueOf().toString(),n={element:(0,r.cloneElement)(o,{key:t,onOpenChange:r=>{r||setTimeout((()=>{e((e=>e.filter((e=>e!==n))))}),200)}})};e((e=>[...e,n]))}),[e])}})();var n=exports;for(var i in t)n[i]=t[i];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
2566
+ //# sourceMappingURL=index.js.map