@devtron-labs/devtron-fe-common-lib 0.0.58-beta-14 → 0.0.58-beta-19

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 (538) hide show
  1. package/.eslintignore +96 -0
  2. package/.eslintrc.js +109 -0
  3. package/.github/pull_request_template.md +25 -0
  4. package/.github/workflows/ci.yml +31 -0
  5. package/.github/workflows/release-package.yml +48 -0
  6. package/.husky/pre-commit +5 -0
  7. package/.lintstagedrc +3 -0
  8. package/.nvmrc +1 -0
  9. package/.prettierrc.js +7 -0
  10. package/dist/Common/AddCDButton/AddCDButton.d.ts +3 -3
  11. package/dist/Common/AddCDButton/index.d.ts +2 -2
  12. package/dist/Common/AddCDButton/types.d.ts +26 -26
  13. package/dist/Common/AddCDButton/utils.d.ts +2 -2
  14. package/dist/Common/Api.d.ts +5 -5
  15. package/dist/Common/AppStatus/AppStatus.d.ts +3 -3
  16. package/dist/Common/AppStatus/constants.d.ts +51 -51
  17. package/dist/Common/AppStatus/index.d.ts +1 -1
  18. package/dist/Common/AppStatus/types.d.ts +12 -12
  19. package/dist/Common/AppStatus/utils.d.ts +1 -1
  20. package/dist/Common/BreadCrumb/BreadCrumb.d.ts +5 -5
  21. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +17 -17
  22. package/dist/Common/BreadCrumb/Types.d.ts +28 -28
  23. package/dist/Common/CIPipeline.Types.d.ts +265 -265
  24. package/dist/Common/ChartVersionAndTypeSelector.d.ts +4 -3
  25. package/dist/Common/Checkbox.d.ts +5 -5
  26. package/dist/Common/ClipboardButton/ClipboardButton.d.ts +10 -10
  27. package/dist/Common/ClipboardButton/types.d.ts +8 -8
  28. package/dist/Common/Common.service.d.ts +20 -20
  29. package/dist/Common/Constants.d.ts +75 -81
  30. package/dist/Common/CustomInput/CustomInput.d.ts +3 -2
  31. package/dist/Common/CustomInput/Types.d.ts +31 -30
  32. package/dist/Common/CustomInput/index.d.ts +2 -2
  33. package/dist/Common/CustomTagSelector/PropagateTagInfo.d.ts +4 -4
  34. package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +3 -2
  35. package/dist/Common/CustomTagSelector/TagDetails.d.ts +3 -2
  36. package/dist/Common/CustomTagSelector/TagLabelSelect.d.ts +3 -2
  37. package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +3 -2
  38. package/dist/Common/CustomTagSelector/TagSelector.utils.d.ts +12 -12
  39. package/dist/Common/CustomTagSelector/Types.d.ts +68 -68
  40. package/dist/Common/CustomTagSelector/ValidationRules.d.ts +10 -10
  41. package/dist/Common/CustomTagSelector/index.d.ts +6 -6
  42. package/dist/Common/DebouncedSearch/DebouncedSearch.d.ts +17 -17
  43. package/dist/Common/DebouncedSearch/Types.d.ts +14 -14
  44. package/dist/Common/DebouncedSearch/Utils.d.ts +1 -1
  45. package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +4 -3
  46. package/dist/Common/DeleteComponentModal/types.d.ts +15 -15
  47. package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +3 -2
  48. package/dist/Common/DevtronProgressing/index.d.ts +1 -1
  49. package/dist/Common/DevtronProgressing/types.d.ts +4 -4
  50. package/dist/Common/Dialogs/ConfirmationDialog.d.ts +9 -8
  51. package/dist/Common/Dialogs/DeleteDialog.d.ts +5 -5
  52. package/dist/Common/Dialogs/DialogForm.d.ts +14 -14
  53. package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +3 -3
  54. package/dist/Common/Dialogs/Types.d.ts +45 -45
  55. package/dist/Common/Dialogs/index.d.ts +4 -4
  56. package/dist/Common/DraggableWrapper/DraggableButton.d.ts +3 -3
  57. package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +9 -9
  58. package/dist/Common/DraggableWrapper/index.d.ts +3 -3
  59. package/dist/Common/DraggableWrapper/types.d.ts +23 -23
  60. package/dist/Common/Drawer/Drawer.d.ts +16 -14
  61. package/dist/Common/EmptyState/EmptyState.d.ts +25 -31
  62. package/dist/Common/EmptyState/GenericEmptyState.d.ts +5 -3
  63. package/dist/Common/Error.d.ts +17 -17
  64. package/dist/Common/ErrorScreenNotFound.d.ts +3 -2
  65. package/dist/Common/Grid/Grid.d.ts +3 -3
  66. package/dist/Common/Grid/types.d.ts +10 -10
  67. package/dist/Common/Helper.d.ts +64 -65
  68. package/dist/Common/Hooks/UseClickOutside/UseClickOutside.d.ts +1 -1
  69. package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.d.ts +6 -6
  70. package/dist/Common/Hooks/UseSuperAdmin/types.d.ts +3 -3
  71. package/dist/Common/Hooks/UseWindowSize/UseWindowSize.d.ts +4 -4
  72. package/dist/Common/Hooks/index.d.ts +3 -3
  73. package/dist/Common/ImageTags.Types.d.ts +40 -40
  74. package/dist/Common/ImageTags.d.ts +4 -3
  75. package/dist/Common/InfoColorBar/InfoColourbar.d.ts +5 -3
  76. package/dist/Common/Modals/Modal.d.ts +3 -3
  77. package/dist/Common/Modals/OpaqueModal.d.ts +12 -12
  78. package/dist/Common/Modals/VisibleModal.d.ts +15 -15
  79. package/dist/Common/Modals/VisibleModal2.d.ts +12 -12
  80. package/dist/Common/MultiSelectCustomization.d.ts +37 -37
  81. package/dist/Common/Pagination/PageSizeSelector.d.ts +4 -3
  82. package/dist/Common/Pagination/Pagination.d.ts +5 -3
  83. package/dist/Common/Pagination/constants.d.ts +5 -5
  84. package/dist/Common/Pagination/index.d.ts +1 -1
  85. package/dist/Common/Pagination/types.d.ts +51 -51
  86. package/dist/Common/Pagination/utils.d.ts +6 -6
  87. package/dist/Common/Policy.Types.d.ts +56 -56
  88. package/dist/Common/PopupMenu.d.ts +8 -7
  89. package/dist/Common/Progressing.d.ts +4 -3
  90. package/dist/Common/RJSF/Form.d.ts +4 -2
  91. package/dist/Common/RJSF/common/FieldRow.d.ts +6 -5
  92. package/dist/Common/RJSF/common/types.d.ts +8 -8
  93. package/dist/Common/RJSF/config.d.ts +4 -4
  94. package/dist/Common/RJSF/constants.d.ts +7 -7
  95. package/dist/Common/RJSF/index.d.ts +3 -3
  96. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +3 -2
  97. package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +3 -2
  98. package/dist/Common/RJSF/templates/BaseInput.d.ts +3 -2
  99. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +3 -2
  100. package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +3 -2
  101. package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +3 -2
  102. package/dist/Common/RJSF/templates/ButtonTemplates/index.d.ts +3 -3
  103. package/dist/Common/RJSF/templates/Description.d.ts +3 -2
  104. package/dist/Common/RJSF/templates/Field.d.ts +3 -2
  105. package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +3 -2
  106. package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +3 -2
  107. package/dist/Common/RJSF/templates/TitleField.d.ts +3 -2
  108. package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +3 -2
  109. package/dist/Common/RJSF/templates/index.d.ts +10 -10
  110. package/dist/Common/RJSF/types.d.ts +3 -3
  111. package/dist/Common/RJSF/utils.d.ts +26 -25
  112. package/dist/Common/RJSF/widgets/Checkbox.d.ts +3 -2
  113. package/dist/Common/RJSF/widgets/Select.d.ts +3 -2
  114. package/dist/Common/RJSF/widgets/index.d.ts +2 -2
  115. package/dist/Common/RadioGroup/RadioGroup.d.ts +17 -16
  116. package/dist/Common/RadioGroup.d.ts +8 -8
  117. package/dist/Common/Reload.d.ts +3 -3
  118. package/dist/Common/ResizableTextarea.d.ts +3 -3
  119. package/dist/Common/SearchBar/SearchBar.component.d.ts +39 -37
  120. package/dist/Common/SearchBar/index.d.ts +2 -2
  121. package/dist/Common/SearchBar/types.d.ts +48 -35
  122. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +4 -3
  123. package/dist/Common/ServerError.d.ts +15 -15
  124. package/dist/Common/TippyCustomized.d.ts +4 -2
  125. package/dist/Common/ToastBody.d.ts +23 -23
  126. package/dist/Common/Toggle/Toggle.d.ts +14 -12
  127. package/dist/Common/Types.d.ts +691 -691
  128. package/dist/Common/index.d.ts +50 -51
  129. package/dist/index.d.ts +1 -1
  130. package/dist/index.js +28883 -225
  131. package/package.json +23 -34
  132. package/rollup.config.js +31 -0
  133. package/src/Assets/Icon/ic-add.svg +3 -0
  134. package/src/Assets/Icon/ic-appstatus-cancelled.svg +6 -0
  135. package/src/Assets/Icon/ic-arrow-counter-clockwise.svg +5 -0
  136. package/src/Assets/Icon/ic-check.svg +5 -0
  137. package/src/Assets/Icon/ic-chevron-down.svg +5 -0
  138. package/src/Assets/Icon/ic-copy.svg +3 -0
  139. package/src/Assets/Icon/ic-cross.svg +3 -0
  140. package/src/Assets/Icon/ic-drag.svg +8 -0
  141. package/src/Assets/Icon/ic-enter.svg +3 -0
  142. package/src/Assets/Icon/ic-error-cross.svg +8 -0
  143. package/src/Assets/Icon/ic-error-exclamation.svg +6 -0
  144. package/src/Assets/Icon/ic-error-medium.svg +6 -0
  145. package/src/Assets/Icon/ic-help-outline.svg +3 -0
  146. package/src/Assets/Icon/ic-help.svg +3 -0
  147. package/src/Assets/Icon/ic-info-filled.svg +7 -0
  148. package/src/Assets/Icon/ic-info-outlined.svg +13 -0
  149. package/src/Assets/Icon/ic-minus.svg +3 -0
  150. package/src/Assets/Icon/ic-pencil.svg +3 -0
  151. package/src/Assets/Icon/ic-progressing.svg +6 -0
  152. package/src/Assets/Icon/ic-rotate-devtron.svg +103 -0
  153. package/src/Assets/Icon/ic-search.svg +6 -0
  154. package/src/Assets/Icon/ic-warning.svg +7 -0
  155. package/src/Assets/Icon/inject-tag.svg +5 -0
  156. package/src/Assets/Img/app-not-deployed.png +0 -0
  157. package/src/Assets/Img/delete-medium.svg +15 -0
  158. package/src/Assets/Img/ic-empty-error@2x.png +0 -0
  159. package/src/Assets/Img/ic-loading-failure.png +0 -0
  160. package/src/Assets/Img/ic-not-authorized.svg +62 -0
  161. package/src/Common/AddCDButton/AddCDButton.tsx +68 -0
  162. package/src/Common/AddCDButton/index.ts +2 -0
  163. package/src/Common/AddCDButton/types.ts +38 -0
  164. package/src/Common/AddCDButton/utils.tsx +35 -0
  165. package/src/Common/Api.ts +230 -0
  166. package/src/Common/AppStatus/AppStatus.tsx +64 -0
  167. package/src/Common/AppStatus/constants.ts +53 -0
  168. package/src/Common/AppStatus/index.ts +1 -0
  169. package/src/Common/AppStatus/types.ts +12 -0
  170. package/src/Common/AppStatus/utils.ts +14 -0
  171. package/src/Common/BreadCrumb/BreadCrumb.tsx +105 -0
  172. package/src/Common/BreadCrumb/BreadcrumbStore.tsx +25 -0
  173. package/src/Common/BreadCrumb/Types.ts +30 -0
  174. package/src/Common/CIPipeline.Types.ts +277 -0
  175. package/src/Common/ChartVersionAndTypeSelector.tsx +78 -0
  176. package/src/Common/Checkbox.tsx +36 -0
  177. package/src/Common/ClipboardButton/ClipboardButton.tsx +61 -0
  178. package/src/Common/ClipboardButton/__tests__/ClipboardButton.test.tsx +43 -0
  179. package/src/Common/ClipboardButton/types.ts +7 -0
  180. package/src/Common/Common.service.ts +315 -0
  181. package/src/Common/Constants.ts +254 -0
  182. package/src/Common/CustomInput/CustomInput.tsx +133 -0
  183. package/src/Common/CustomInput/Types.ts +32 -0
  184. package/src/Common/CustomInput/index.ts +2 -0
  185. package/src/Common/CustomTagSelector/PropagateTagInfo.tsx +46 -0
  186. package/src/Common/CustomTagSelector/ResizableTagTextArea.tsx +84 -0
  187. package/src/Common/CustomTagSelector/TagDetails.tsx +76 -0
  188. package/src/Common/CustomTagSelector/TagLabelSelect.tsx +61 -0
  189. package/src/Common/CustomTagSelector/TagLabelValueSelector.tsx +198 -0
  190. package/src/Common/CustomTagSelector/TagSelector.utils.ts +71 -0
  191. package/src/Common/CustomTagSelector/Types.ts +72 -0
  192. package/src/Common/CustomTagSelector/ValidationRules.ts +58 -0
  193. package/src/Common/CustomTagSelector/index.ts +6 -0
  194. package/src/Common/DebouncedSearch/DebouncedSearch.tsx +78 -0
  195. package/src/Common/DebouncedSearch/Types.ts +13 -0
  196. package/src/Common/DebouncedSearch/Utils.ts +19 -0
  197. package/src/Common/DebouncedSearch/__tests__/DebouncedSearch.test.tsx +61 -0
  198. package/src/Common/DeleteComponentModal/DeleteComponent.tsx +95 -0
  199. package/src/Common/DeleteComponentModal/types.ts +15 -0
  200. package/src/Common/DevtronProgressing/DevtronProgressing.tsx +11 -0
  201. package/src/Common/DevtronProgressing/index.ts +1 -0
  202. package/src/Common/DevtronProgressing/types.ts +4 -0
  203. package/src/Common/Dialogs/ConfirmationDialog.tsx +34 -0
  204. package/src/Common/Dialogs/DeleteDialog.tsx +69 -0
  205. package/src/Common/Dialogs/DialogForm.tsx +86 -0
  206. package/src/Common/Dialogs/ForceDeleteDialog.tsx +19 -0
  207. package/src/Common/Dialogs/Types.ts +47 -0
  208. package/src/Common/Dialogs/index.ts +4 -0
  209. package/src/Common/DraggableWrapper/DraggableButton.tsx +14 -0
  210. package/src/Common/DraggableWrapper/DraggableWrapper.tsx +116 -0
  211. package/src/Common/DraggableWrapper/index.ts +3 -0
  212. package/src/Common/DraggableWrapper/types.ts +27 -0
  213. package/src/Common/Drawer/Drawer.scss +40 -0
  214. package/src/Common/Drawer/Drawer.tsx +49 -0
  215. package/src/Common/EmptyState/EmptyState.tsx +42 -0
  216. package/src/Common/EmptyState/GenericEmptyState.tsx +81 -0
  217. package/src/Common/EmptyState/emptyState.scss +74 -0
  218. package/src/Common/Error.tsx +61 -0
  219. package/src/Common/ErrorScreenNotFound.tsx +31 -0
  220. package/src/Common/Grid/Grid.tsx +44 -0
  221. package/src/Common/Grid/types.ts +11 -0
  222. package/src/Common/Helper.tsx +576 -0
  223. package/src/Common/Hooks/UseClickOutside/UseClickOutside.tsx +15 -0
  224. package/src/Common/Hooks/UseSuperAdmin/UseSuperAdmin.tsx +24 -0
  225. package/src/Common/Hooks/UseSuperAdmin/types.ts +3 -0
  226. package/src/Common/Hooks/UseWindowSize/UseWindowSize.tsx +31 -0
  227. package/src/Common/Hooks/index.ts +3 -0
  228. package/src/Common/ImageTags.Types.ts +44 -0
  229. package/src/Common/ImageTags.tsx +586 -0
  230. package/src/Common/InfoColorBar/InfoColourbar.tsx +80 -0
  231. package/src/Common/InfoColorBar/infoColourBar.scss +28 -0
  232. package/src/Common/Modals/Modal.tsx +68 -0
  233. package/src/Common/Modals/OpaqueModal.tsx +36 -0
  234. package/src/Common/Modals/VisibleModal.tsx +55 -0
  235. package/src/Common/Modals/VisibleModal2.tsx +35 -0
  236. package/src/Common/MultiSelectCustomization.tsx +148 -0
  237. package/src/Common/Pagination/PageSizeSelector.tsx +78 -0
  238. package/src/Common/Pagination/Pagination.tsx +127 -0
  239. package/src/Common/Pagination/constants.ts +6 -0
  240. package/src/Common/Pagination/index.tsx +3 -0
  241. package/src/Common/Pagination/pagination.scss +123 -0
  242. package/src/Common/Pagination/types.ts +55 -0
  243. package/src/Common/Pagination/utils.tsx +24 -0
  244. package/src/Common/Policy.Types.ts +63 -0
  245. package/src/Common/PopupMenu.tsx +199 -0
  246. package/src/Common/Progressing.tsx +53 -0
  247. package/src/Common/RJSF/Form.tsx +29 -0
  248. package/src/Common/RJSF/common/FieldRow.tsx +35 -0
  249. package/src/Common/RJSF/common/types.ts +9 -0
  250. package/src/Common/RJSF/config.ts +37 -0
  251. package/src/Common/RJSF/constants.ts +10 -0
  252. package/src/Common/RJSF/index.ts +3 -0
  253. package/src/Common/RJSF/rjsfForm.scss +18 -0
  254. package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +31 -0
  255. package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +78 -0
  256. package/src/Common/RJSF/templates/BaseInput.tsx +16 -0
  257. package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +18 -0
  258. package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +10 -0
  259. package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +18 -0
  260. package/src/Common/RJSF/templates/ButtonTemplates/index.ts +3 -0
  261. package/src/Common/RJSF/templates/Description.tsx +12 -0
  262. package/src/Common/RJSF/templates/Field.tsx +30 -0
  263. package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +25 -0
  264. package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +105 -0
  265. package/src/Common/RJSF/templates/TitleField.tsx +9 -0
  266. package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +51 -0
  267. package/src/Common/RJSF/templates/index.ts +10 -0
  268. package/src/Common/RJSF/types.ts +4 -0
  269. package/src/Common/RJSF/utils.ts +123 -0
  270. package/src/Common/RJSF/widgets/Checkbox.tsx +44 -0
  271. package/src/Common/RJSF/widgets/Select.tsx +77 -0
  272. package/src/Common/RJSF/widgets/index.ts +2 -0
  273. package/src/Common/RadioGroup/RadioGroup.tsx +105 -0
  274. package/src/Common/RadioGroup/radioGroup.scss +46 -0
  275. package/src/Common/RadioGroup.tsx +53 -0
  276. package/src/Common/Reload.tsx +23 -0
  277. package/src/Common/ResizableTextarea.tsx +73 -0
  278. package/src/Common/SearchBar/SearchBar.component.tsx +124 -0
  279. package/src/Common/SearchBar/index.ts +2 -0
  280. package/src/Common/SearchBar/searchBar.scss +31 -0
  281. package/src/Common/SearchBar/types.ts +49 -0
  282. package/src/Common/Security/ScanVulnerabilitiesTable.tsx +55 -0
  283. package/src/Common/Security/scanVulnerabilities.css +69 -0
  284. package/src/Common/ServerError.ts +31 -0
  285. package/src/Common/TippyCustomized.tsx +172 -0
  286. package/src/Common/ToastBody.tsx +62 -0
  287. package/src/Common/Toggle/Toggle.scss +78 -0
  288. package/src/Common/Toggle/Toggle.tsx +50 -0
  289. package/src/Common/Types.ts +764 -0
  290. package/src/Common/index.ts +50 -0
  291. package/src/custom.d.ts +13 -0
  292. package/src/index.ts +1 -0
  293. package/tsconfig.json +40 -0
  294. package/dist/CodeEditor-57d766d0.js +0 -103695
  295. package/dist/Common/AddCDButton/AddCDButton.js +0 -59
  296. package/dist/Common/AddCDButton/index.js +0 -6
  297. package/dist/Common/AddCDButton/types.js +0 -1
  298. package/dist/Common/AddCDButton/utils.js +0 -19
  299. package/dist/Common/Api.js +0 -169
  300. package/dist/Common/AppStatus/AppStatus.js +0 -37
  301. package/dist/Common/AppStatus/constants.js +0 -37
  302. package/dist/Common/AppStatus/index.js +0 -4
  303. package/dist/Common/AppStatus/types.js +0 -1
  304. package/dist/Common/AppStatus/utils.js +0 -8
  305. package/dist/Common/BreadCrumb/BreadCrumb.js +0 -73
  306. package/dist/Common/BreadCrumb/BreadcrumbStore.js +0 -22
  307. package/dist/Common/BreadCrumb/Types.js +0 -1
  308. package/dist/Common/CIPipeline.Types.js +0 -10
  309. package/dist/Common/ChartVersionAndTypeSelector.js +0 -61
  310. package/dist/Common/Checkbox.js +0 -28
  311. package/dist/Common/ClipboardButton/ClipboardButton.js +0 -40
  312. package/dist/Common/ClipboardButton/__tests__/ClipboardButton.test.js +0 -27
  313. package/dist/Common/ClipboardButton/types.js +0 -1
  314. package/dist/Common/CodeEditor/CodeEditor.d.ts +0 -47
  315. package/dist/Common/CodeEditor/CodeEditor.js +0 -15
  316. package/dist/Common/Common.service.js +0 -196
  317. package/dist/Common/Constants.js +0 -239
  318. package/dist/Common/CustomInput/CustomInput.js +0 -81
  319. package/dist/Common/CustomInput/Types.js +0 -1
  320. package/dist/Common/CustomInput/index.js +0 -4
  321. package/dist/Common/CustomTagSelector/PropagateTagInfo.js +0 -43
  322. package/dist/Common/CustomTagSelector/ResizableTagTextArea.js +0 -58
  323. package/dist/Common/CustomTagSelector/TagDetails.js +0 -73
  324. package/dist/Common/CustomTagSelector/TagLabelSelect.js +0 -53
  325. package/dist/Common/CustomTagSelector/TagLabelValueSelector.js +0 -121
  326. package/dist/Common/CustomTagSelector/TagSelector.utils.js +0 -61
  327. package/dist/Common/CustomTagSelector/Types.js +0 -1
  328. package/dist/Common/CustomTagSelector/ValidationRules.js +0 -35
  329. package/dist/Common/CustomTagSelector/index.js +0 -12
  330. package/dist/Common/DebouncedSearch/DebouncedSearch.js +0 -56
  331. package/dist/Common/DebouncedSearch/Types.js +0 -1
  332. package/dist/Common/DebouncedSearch/Utils.js +0 -19
  333. package/dist/Common/DebouncedSearch/__tests__/DebouncedSearch.test.js +0 -34
  334. package/dist/Common/DeleteComponentModal/DeleteComponent.js +0 -63
  335. package/dist/Common/DeleteComponentModal/types.js +0 -1
  336. package/dist/Common/DevtronProgressing/DevtronProgressing.js +0 -95
  337. package/dist/Common/DevtronProgressing/index.js +0 -4
  338. package/dist/Common/DevtronProgressing/types.js +0 -1
  339. package/dist/Common/Dialogs/ConfirmationDialog.js +0 -13
  340. package/dist/Common/Dialogs/DeleteDialog.js +0 -46
  341. package/dist/Common/Dialogs/DialogForm.js +0 -63
  342. package/dist/Common/Dialogs/ForceDeleteDialog.js +0 -28
  343. package/dist/Common/Dialogs/Types.js +0 -1
  344. package/dist/Common/Dialogs/index.js +0 -11
  345. package/dist/Common/DraggableWrapper/DraggableButton.js +0 -16
  346. package/dist/Common/DraggableWrapper/DraggableWrapper.js +0 -73
  347. package/dist/Common/DraggableWrapper/index.js +0 -8
  348. package/dist/Common/DraggableWrapper/types.js +0 -4
  349. package/dist/Common/Drawer/Drawer.js +0 -22
  350. package/dist/Common/EmptyState/EmptyState.js +0 -25
  351. package/dist/Common/EmptyState/GenericEmptyState.js +0 -79
  352. package/dist/Common/Error.js +0 -49
  353. package/dist/Common/ErrorScreenNotFound.js +0 -22
  354. package/dist/Common/Grid/Grid.js +0 -31
  355. package/dist/Common/Grid/types.js +0 -1
  356. package/dist/Common/Helper.js +0 -39
  357. package/dist/Common/Hooks/UseClickOutside/UseClickOutside.js +0 -14
  358. package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.js +0 -16
  359. package/dist/Common/Hooks/UseSuperAdmin/types.js +0 -1
  360. package/dist/Common/Hooks/UseWindowSize/UseWindowSize.js +0 -17
  361. package/dist/Common/Hooks/index.js +0 -8
  362. package/dist/Common/ImageTags.Types.js +0 -1
  363. package/dist/Common/ImageTags.js +0 -382
  364. package/dist/Common/InfoColorBar/InfoColourbar.js +0 -67
  365. package/dist/Common/Modals/Modal.js +0 -48
  366. package/dist/Common/Modals/OpaqueModal.js +0 -40
  367. package/dist/Common/Modals/VisibleModal.js +0 -39
  368. package/dist/Common/Modals/VisibleModal2.js +0 -39
  369. package/dist/Common/MultiSelectCustomization.js +0 -97
  370. package/dist/Common/Pagination/PageSizeSelector.js +0 -51
  371. package/dist/Common/Pagination/Pagination.js +0 -98
  372. package/dist/Common/Pagination/constants.js +0 -9
  373. package/dist/Common/Pagination/index.js +0 -4
  374. package/dist/Common/Pagination/types.js +0 -1
  375. package/dist/Common/Pagination/utils.js +0 -15
  376. package/dist/Common/Policy.Types.js +0 -6
  377. package/dist/Common/PopupMenu.js +0 -146
  378. package/dist/Common/Progressing.js +0 -49
  379. package/dist/Common/RJSF/Form.js +0 -25
  380. package/dist/Common/RJSF/common/FieldRow.js +0 -25
  381. package/dist/Common/RJSF/common/types.js +0 -1
  382. package/dist/Common/RJSF/config.js +0 -33
  383. package/dist/Common/RJSF/constants.js +0 -10
  384. package/dist/Common/RJSF/index.js +0 -7
  385. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.js +0 -30
  386. package/dist/Common/RJSF/templates/ArrayFieldTemplate.js +0 -60
  387. package/dist/Common/RJSF/templates/BaseInput.js +0 -16
  388. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.js +0 -18
  389. package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.js +0 -6
  390. package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.js +0 -9
  391. package/dist/Common/RJSF/templates/ButtonTemplates/index.js +0 -8
  392. package/dist/Common/RJSF/templates/Description.js +0 -9
  393. package/dist/Common/RJSF/templates/Field.js +0 -31
  394. package/dist/Common/RJSF/templates/FieldErrorTemplate.js +0 -13
  395. package/dist/Common/RJSF/templates/ObjectFieldTemplate.js +0 -71
  396. package/dist/Common/RJSF/templates/TitleField.js +0 -8
  397. package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.js +0 -43
  398. package/dist/Common/RJSF/templates/index.js +0 -26
  399. package/dist/Common/RJSF/types.js +0 -1
  400. package/dist/Common/RJSF/utils.js +0 -95
  401. package/dist/Common/RJSF/widgets/Checkbox.js +0 -39
  402. package/dist/Common/RJSF/widgets/Select.js +0 -625
  403. package/dist/Common/RJSF/widgets/index.js +0 -6
  404. package/dist/Common/RadioGroup/RadioGroup.js +0 -69
  405. package/dist/Common/RadioGroup.js +0 -53
  406. package/dist/Common/Reload.js +0 -16
  407. package/dist/Common/ResizableTextarea.js +0 -60
  408. package/dist/Common/SearchBar/SearchBar.component.js +0 -66
  409. package/dist/Common/SearchBar/index.js +0 -4
  410. package/dist/Common/SearchBar/types.js +0 -1
  411. package/dist/Common/Security/ScanVulnerabilitiesTable.js +0 -49
  412. package/dist/Common/Select/Select.d.ts +0 -4
  413. package/dist/Common/Select/Select.js +0 -193
  414. package/dist/Common/Select/types.d.ts +0 -29
  415. package/dist/Common/Select/types.js +0 -1
  416. package/dist/Common/ServerError.js +0 -26
  417. package/dist/Common/TippyCustomized.js +0 -10
  418. package/dist/Common/ToastBody.js +0 -41
  419. package/dist/Common/Toggle/Toggle.js +0 -40
  420. package/dist/Common/Types.js +0 -24
  421. package/dist/Common/index.js +0 -226
  422. package/dist/Helper-6e21d971.js +0 -10200
  423. package/dist/TippyCustomized-a8eee994.js +0 -124
  424. package/dist/_commonjsHelpers-aeeeeb92.js +0 -30
  425. package/dist/abap-9f67f57a.js +0 -1314
  426. package/dist/apex-ff62e532.js +0 -315
  427. package/dist/assets/CodeEditor.css +0 -1
  428. package/dist/assets/Drawer.css +0 -1
  429. package/dist/assets/Form.css +0 -1
  430. package/dist/assets/GenericEmptyState.css +0 -1
  431. package/dist/assets/InfoColourbar.css +0 -1
  432. package/dist/assets/Pagination.css +0 -1
  433. package/dist/assets/RadioGroup.css +0 -1
  434. package/dist/assets/ScanVulnerabilitiesTable.css +0 -1
  435. package/dist/assets/SearchBar.component.css +0 -1
  436. package/dist/assets/Select.css +0 -1
  437. package/dist/assets/TippyCustomized.css +0 -1
  438. package/dist/assets/Toggle.css +0 -1
  439. package/dist/assets/editor.worker-d26000ef.js +0 -9
  440. package/dist/assets/json.worker-f23a4654.js +0 -40
  441. package/dist/assets/yaml.worker-35ea3f9a.js +0 -467
  442. package/dist/azcli-31e64a7f.js +0 -74
  443. package/dist/bat-0ffe897e.js +0 -95
  444. package/dist/bicep-3414a2b1.js +0 -108
  445. package/dist/cameligo-df1f3f25.js +0 -168
  446. package/dist/clojure-65b0f010.js +0 -754
  447. package/dist/coffee-437f0fba.js +0 -228
  448. package/dist/cpp-66843dd5.js +0 -390
  449. package/dist/csharp-621d9a49.js +0 -320
  450. package/dist/csp-de0d5244.js +0 -57
  451. package/dist/css-7cd5ed4c.js +0 -186
  452. package/dist/cssMode-51109c72.js +0 -1446
  453. package/dist/cypher-70ad96fe.js +0 -262
  454. package/dist/dart-33ae3739.js +0 -270
  455. package/dist/dockerfile-f2274a50.js +0 -132
  456. package/dist/ecl-3b8294a3.js +0 -454
  457. package/dist/elixir-b9dcc73a.js +0 -489
  458. package/dist/extends-70f3d2a3.js +0 -13
  459. package/dist/flow9-bdde8316.js +0 -141
  460. package/dist/freemarker2-56c268e7.js +0 -643
  461. package/dist/fsharp-eac2e449.js +0 -210
  462. package/dist/go-d12ed8d4.js +0 -208
  463. package/dist/graphql-c7356b69.js +0 -141
  464. package/dist/handlebars-14160245.js +0 -391
  465. package/dist/hcl-e883a0d4.js +0 -177
  466. package/dist/html-b5f7d4c2.js +0 -281
  467. package/dist/htmlMode-b802d066.js +0 -1456
  468. package/dist/ic-add-4787ded5.js +0 -5
  469. package/dist/ic-chevron-down-eb7fd953.js +0 -6
  470. package/dist/ic-copy-118b83dc.js +0 -5
  471. package/dist/ic-cross-0e71861d.js +0 -6
  472. package/dist/ic-error-cross-2760059a.js +0 -5
  473. package/dist/ic-error-exclamation-5f9af461.js +0 -5
  474. package/dist/ic-info-filled-31a15add.js +0 -6
  475. package/dist/ic-info-outlined-8fa45e87.js +0 -5
  476. package/dist/ic-warning-42534af1.js +0 -5
  477. package/dist/ini-425ab711.js +0 -68
  478. package/dist/inject-tag-824bf92c.js +0 -5
  479. package/dist/java-2bc0fd68.js +0 -221
  480. package/dist/javascript-1c1abf89.js +0 -75
  481. package/dist/jsonMode-f9cd720a.js +0 -1867
  482. package/dist/jsx-runtime-0dcb030c.js +0 -667
  483. package/dist/julia-1c932615.js +0 -496
  484. package/dist/kotlin-1ab839c8.js +0 -245
  485. package/dist/less-6fe856f5.js +0 -168
  486. package/dist/lexon-4955ac52.js +0 -151
  487. package/dist/liquid-a38c622a.js +0 -238
  488. package/dist/lua-3cca0047.js +0 -157
  489. package/dist/m3-132e9cb6.js +0 -210
  490. package/dist/markdown-ea59a0c1.js +0 -202
  491. package/dist/mips-19811f4b.js +0 -194
  492. package/dist/msdax-69954a10.js +0 -377
  493. package/dist/mysql-82088e5d.js +0 -876
  494. package/dist/objective-c-1976eccc.js +0 -188
  495. package/dist/pascal-8ef177cb.js +0 -245
  496. package/dist/pascaligo-bc517b9e.js +0 -158
  497. package/dist/perl-8b93582c.js +0 -599
  498. package/dist/pgsql-00c11a6d.js +0 -847
  499. package/dist/php-4c8c276f.js +0 -471
  500. package/dist/pla-e9b4ffb1.js +0 -131
  501. package/dist/postiats-2071af8c.js +0 -544
  502. package/dist/powerquery-8e388ceb.js +0 -890
  503. package/dist/powershell-e35db398.js +0 -233
  504. package/dist/protobuf-a24b9176.js +0 -422
  505. package/dist/pug-2c94d9b8.js +0 -393
  506. package/dist/python-966fee14.js +0 -259
  507. package/dist/qsharp-d730d7fe.js +0 -282
  508. package/dist/r-be193556.js +0 -245
  509. package/dist/razor-d300ce4c.js +0 -512
  510. package/dist/react-select.esm-3ab5c599.js +0 -4174
  511. package/dist/react-toastify.esm-1042de65.js +0 -792
  512. package/dist/react.esm-d9d3bd77.js +0 -13727
  513. package/dist/redis-9690c6ac.js +0 -298
  514. package/dist/redshift-6bdcdeaa.js +0 -806
  515. package/dist/restructuredtext-a08c1d20.js +0 -162
  516. package/dist/ruby-2247692b.js +0 -444
  517. package/dist/rust-1dffb4d5.js +0 -337
  518. package/dist/sb-136598e9.js +0 -110
  519. package/dist/scala-b1100fed.js +0 -353
  520. package/dist/scheme-038c8094.js +0 -114
  521. package/dist/scss-700d1b52.js +0 -244
  522. package/dist/shell-86c16e0f.js +0 -224
  523. package/dist/solidity-c05fdf3c.js +0 -1351
  524. package/dist/sophia-cd645d71.js +0 -190
  525. package/dist/sparql-01d9ec9c.js +0 -193
  526. package/dist/sql-4c33df41.js +0 -818
  527. package/dist/st-52cf1408.js +0 -414
  528. package/dist/swift-13c792ba.js +0 -315
  529. package/dist/systemverilog-0bd8b730.js +0 -556
  530. package/dist/tcl-463d7c75.js +0 -232
  531. package/dist/tippy-react.esm-7f62ad0a.js +0 -1919
  532. package/dist/tsMode-c3995c03.js +0 -811
  533. package/dist/twig-0d98f5ec.js +0 -323
  534. package/dist/typescript-18b20a48.js +0 -328
  535. package/dist/vb-3a2b0a51.js +0 -364
  536. package/dist/wgsl-b2ddb3e4.js +0 -420
  537. package/dist/xml-82b60f64.js +0 -95
  538. package/dist/yaml-229aea3c.js +0 -184
@@ -1,4174 +0,0 @@
1
- import { _ as S } from "./extends-70f3d2a3.js";
2
- import * as G from "react";
3
- import { forwardRef as ln, useContext as rr, Component as gt, createContext as ir, useState as Ue, useCallback as q, useMemo as Ce, Fragment as nt, useRef as be, useEffect as dn } from "react";
4
- import { createPortal as ar } from "react-dom";
5
- function ur(t) {
6
- if (t.sheet)
7
- return t.sheet;
8
- for (var e = 0; e < document.styleSheets.length; e++)
9
- if (document.styleSheets[e].ownerNode === t)
10
- return document.styleSheets[e];
11
- }
12
- function or(t) {
13
- var e = document.createElement("style");
14
- return e.setAttribute("data-emotion", t.key), t.nonce !== void 0 && e.setAttribute("nonce", t.nonce), e.appendChild(document.createTextNode("")), e.setAttribute("data-s", ""), e;
15
- }
16
- var sr = /* @__PURE__ */ function() {
17
- function t(r) {
18
- var a = this;
19
- this._insertTag = function(n) {
20
- var i;
21
- a.tags.length === 0 ? a.insertionPoint ? i = a.insertionPoint.nextSibling : a.prepend ? i = a.container.firstChild : i = a.before : i = a.tags[a.tags.length - 1].nextSibling, a.container.insertBefore(n, i), a.tags.push(n);
22
- }, this.isSpeedy = r.speedy === void 0 ? process.env.NODE_ENV === "production" : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.prepend = r.prepend, this.insertionPoint = r.insertionPoint, this.before = null;
23
- }
24
- var e = t.prototype;
25
- return e.hydrate = function(a) {
26
- a.forEach(this._insertTag);
27
- }, e.insert = function(a) {
28
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(or(this));
29
- var n = this.tags[this.tags.length - 1];
30
- if (process.env.NODE_ENV !== "production") {
31
- var i = a.charCodeAt(0) === 64 && a.charCodeAt(1) === 105;
32
- i && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule:
33
- ` + a + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !i;
34
- }
35
- if (this.isSpeedy) {
36
- var u = ur(n);
37
- try {
38
- u.insertRule(a, u.cssRules.length);
39
- } catch (o) {
40
- process.env.NODE_ENV !== "production" && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(a) && console.error('There was a problem inserting the following rule: "' + a + '"', o);
41
- }
42
- } else
43
- n.appendChild(document.createTextNode(a));
44
- this.ctr++;
45
- }, e.flush = function() {
46
- this.tags.forEach(function(a) {
47
- return a.parentNode && a.parentNode.removeChild(a);
48
- }), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
49
- }, t;
50
- }(), L = "-ms-", Oe = "-moz-", N = "-webkit-", bt = "comm", ft = "rule", mt = "decl", cr = "@import", gn = "@keyframes", lr = "@layer", dr = Math.abs, Ye = String.fromCharCode, gr = Object.assign;
51
- function br(t, e) {
52
- return W(t, 0) ^ 45 ? (((e << 2 ^ W(t, 0)) << 2 ^ W(t, 1)) << 2 ^ W(t, 2)) << 2 ^ W(t, 3) : 0;
53
- }
54
- function bn(t) {
55
- return t.trim();
56
- }
57
- function fr(t, e) {
58
- return (t = e.exec(t)) ? t[0] : t;
59
- }
60
- function V(t, e, r) {
61
- return t.replace(e, r);
62
- }
63
- function rt(t, e) {
64
- return t.indexOf(e);
65
- }
66
- function W(t, e) {
67
- return t.charCodeAt(e) | 0;
68
- }
69
- function xe(t, e, r) {
70
- return t.slice(e, r);
71
- }
72
- function ae(t) {
73
- return t.length;
74
- }
75
- function pt(t) {
76
- return t.length;
77
- }
78
- function Fe(t, e) {
79
- return e.push(t), t;
80
- }
81
- function mr(t, e) {
82
- return t.map(e).join("");
83
- }
84
- var ze = 1, me = 1, fn = 0, k = 0, Z = 0, ve = "";
85
- function je(t, e, r, a, n, i, u) {
86
- return { value: t, root: e, parent: r, type: a, props: n, children: i, line: ze, column: me, length: u, return: "" };
87
- }
88
- function ye(t, e) {
89
- return gr(je("", null, null, "", null, null, 0), t, { length: -t.length }, e);
90
- }
91
- function pr() {
92
- return Z;
93
- }
94
- function vr() {
95
- return Z = k > 0 ? W(ve, --k) : 0, me--, Z === 10 && (me = 1, ze--), Z;
96
- }
97
- function Q() {
98
- return Z = k < fn ? W(ve, k++) : 0, me++, Z === 10 && (me = 1, ze++), Z;
99
- }
100
- function ue() {
101
- return W(ve, k);
102
- }
103
- function Xe() {
104
- return k;
105
- }
106
- function Be(t, e) {
107
- return xe(ve, t, e);
108
- }
109
- function Ee(t) {
110
- switch (t) {
111
- case 0:
112
- case 9:
113
- case 10:
114
- case 13:
115
- case 32:
116
- return 5;
117
- case 33:
118
- case 43:
119
- case 44:
120
- case 47:
121
- case 62:
122
- case 64:
123
- case 126:
124
- case 59:
125
- case 123:
126
- case 125:
127
- return 4;
128
- case 58:
129
- return 3;
130
- case 34:
131
- case 39:
132
- case 40:
133
- case 91:
134
- return 2;
135
- case 41:
136
- case 93:
137
- return 1;
138
- }
139
- return 0;
140
- }
141
- function mn(t) {
142
- return ze = me = 1, fn = ae(ve = t), k = 0, [];
143
- }
144
- function pn(t) {
145
- return ve = "", t;
146
- }
147
- function Te(t) {
148
- return bn(Be(k - 1, it(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
149
- }
150
- function Ir(t) {
151
- for (; (Z = ue()) && Z < 33; )
152
- Q();
153
- return Ee(t) > 2 || Ee(Z) > 3 ? "" : " ";
154
- }
155
- function hr(t, e) {
156
- for (; --e && Q() && !(Z < 48 || Z > 102 || Z > 57 && Z < 65 || Z > 70 && Z < 97); )
157
- ;
158
- return Be(t, Xe() + (e < 6 && ue() == 32 && Q() == 32));
159
- }
160
- function it(t) {
161
- for (; Q(); )
162
- switch (Z) {
163
- case t:
164
- return k;
165
- case 34:
166
- case 39:
167
- t !== 34 && t !== 39 && it(Z);
168
- break;
169
- case 40:
170
- t === 41 && it(t);
171
- break;
172
- case 92:
173
- Q();
174
- break;
175
- }
176
- return k;
177
- }
178
- function Cr(t, e) {
179
- for (; Q() && t + Z !== 47 + 10; )
180
- if (t + Z === 42 + 42 && ue() === 47)
181
- break;
182
- return "/*" + Be(e, k - 1) + "*" + Ye(t === 47 ? t : Q());
183
- }
184
- function yr(t) {
185
- for (; !Ee(ue()); )
186
- Q();
187
- return Be(t, k);
188
- }
189
- function Ar(t) {
190
- return pn(Ze("", null, null, null, [""], t = mn(t), 0, [0], t));
191
- }
192
- function Ze(t, e, r, a, n, i, u, o, s) {
193
- for (var c = 0, l = 0, d = u, v = 0, m = 0, f = 0, p = 1, g = 1, I = 1, h = 0, y = "", E = n, b = i, B = a, A = y; g; )
194
- switch (f = h, h = Q()) {
195
- case 40:
196
- if (f != 108 && W(A, d - 1) == 58) {
197
- rt(A += V(Te(h), "&", "&\f"), "&\f") != -1 && (I = -1);
198
- break;
199
- }
200
- case 34:
201
- case 39:
202
- case 91:
203
- A += Te(h);
204
- break;
205
- case 9:
206
- case 10:
207
- case 13:
208
- case 32:
209
- A += Ir(f);
210
- break;
211
- case 92:
212
- A += hr(Xe() - 1, 7);
213
- continue;
214
- case 47:
215
- switch (ue()) {
216
- case 42:
217
- case 47:
218
- Fe(xr(Cr(Q(), Xe()), e, r), s);
219
- break;
220
- default:
221
- A += "/";
222
- }
223
- break;
224
- case 123 * p:
225
- o[c++] = ae(A) * I;
226
- case 125 * p:
227
- case 59:
228
- case 0:
229
- switch (h) {
230
- case 0:
231
- case 125:
232
- g = 0;
233
- case 59 + l:
234
- I == -1 && (A = V(A, /\f/g, "")), m > 0 && ae(A) - d && Fe(m > 32 ? Rt(A + ";", a, r, d - 1) : Rt(V(A, " ", "") + ";", a, r, d - 2), s);
235
- break;
236
- case 59:
237
- A += ";";
238
- default:
239
- if (Fe(B = Ft(A, e, r, c, l, n, o, y, E = [], b = [], d), i), h === 123)
240
- if (l === 0)
241
- Ze(A, e, B, B, E, i, d, o, b);
242
- else
243
- switch (v === 99 && W(A, 3) === 110 ? 100 : v) {
244
- case 100:
245
- case 108:
246
- case 109:
247
- case 115:
248
- Ze(t, B, B, a && Fe(Ft(t, B, B, 0, 0, n, o, y, n, E = [], d), b), n, b, d, o, a ? E : b);
249
- break;
250
- default:
251
- Ze(A, B, B, B, [""], b, 0, o, b);
252
- }
253
- }
254
- c = l = m = 0, p = I = 1, y = A = "", d = u;
255
- break;
256
- case 58:
257
- d = 1 + ae(A), m = f;
258
- default:
259
- if (p < 1) {
260
- if (h == 123)
261
- --p;
262
- else if (h == 125 && p++ == 0 && vr() == 125)
263
- continue;
264
- }
265
- switch (A += Ye(h), h * p) {
266
- case 38:
267
- I = l > 0 ? 1 : (A += "\f", -1);
268
- break;
269
- case 44:
270
- o[c++] = (ae(A) - 1) * I, I = 1;
271
- break;
272
- case 64:
273
- ue() === 45 && (A += Te(Q())), v = ue(), l = d = ae(y = A += yr(Xe())), h++;
274
- break;
275
- case 45:
276
- f === 45 && ae(A) == 2 && (p = 0);
277
- }
278
- }
279
- return i;
280
- }
281
- function Ft(t, e, r, a, n, i, u, o, s, c, l) {
282
- for (var d = n - 1, v = n === 0 ? i : [""], m = pt(v), f = 0, p = 0, g = 0; f < a; ++f)
283
- for (var I = 0, h = xe(t, d + 1, d = dr(p = u[f])), y = t; I < m; ++I)
284
- (y = bn(p > 0 ? v[I] + " " + h : V(h, /&\f/g, v[I]))) && (s[g++] = y);
285
- return je(t, e, r, n === 0 ? ft : o, s, c, l);
286
- }
287
- function xr(t, e, r) {
288
- return je(t, e, r, bt, Ye(pr()), xe(t, 2, -2), 0);
289
- }
290
- function Rt(t, e, r, a) {
291
- return je(t, e, r, mt, xe(t, 0, a), xe(t, a + 1, -1), a);
292
- }
293
- function fe(t, e) {
294
- for (var r = "", a = pt(t), n = 0; n < a; n++)
295
- r += e(t[n], n, t, e) || "";
296
- return r;
297
- }
298
- function Er(t, e, r, a) {
299
- switch (t.type) {
300
- case lr:
301
- if (t.children.length)
302
- break;
303
- case cr:
304
- case mt:
305
- return t.return = t.return || t.value;
306
- case bt:
307
- return "";
308
- case gn:
309
- return t.return = t.value + "{" + fe(t.children, a) + "}";
310
- case ft:
311
- t.value = t.props.join(",");
312
- }
313
- return ae(r = fe(t.children, a)) ? t.return = t.value + "{" + r + "}" : "";
314
- }
315
- function Gr(t) {
316
- var e = pt(t);
317
- return function(r, a, n, i) {
318
- for (var u = "", o = 0; o < e; o++)
319
- u += t[o](r, a, n, i) || "";
320
- return u;
321
- };
322
- }
323
- function Sr(t) {
324
- return function(e) {
325
- e.root || (e = e.return) && t(e);
326
- };
327
- }
328
- function Br(t) {
329
- var e = /* @__PURE__ */ Object.create(null);
330
- return function(r) {
331
- return e[r] === void 0 && (e[r] = t(r)), e[r];
332
- };
333
- }
334
- var Nr = function(e, r, a) {
335
- for (var n = 0, i = 0; n = i, i = ue(), n === 38 && i === 12 && (r[a] = 1), !Ee(i); )
336
- Q();
337
- return Be(e, k);
338
- }, Vr = function(e, r) {
339
- var a = -1, n = 44;
340
- do
341
- switch (Ee(n)) {
342
- case 0:
343
- n === 38 && ue() === 12 && (r[a] = 1), e[a] += Nr(k - 1, r, a);
344
- break;
345
- case 2:
346
- e[a] += Te(n);
347
- break;
348
- case 4:
349
- if (n === 44) {
350
- e[++a] = ue() === 58 ? "&\f" : "", r[a] = e[a].length;
351
- break;
352
- }
353
- default:
354
- e[a] += Ye(n);
355
- }
356
- while (n = Q());
357
- return e;
358
- }, Fr = function(e, r) {
359
- return pn(Vr(mn(e), r));
360
- }, Pt = /* @__PURE__ */ new WeakMap(), Rr = function(e) {
361
- if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
362
- // negative .length indicates that this rule has been already prefixed
363
- e.length < 1)) {
364
- for (var r = e.value, a = e.parent, n = e.column === a.column && e.line === a.line; a.type !== "rule"; )
365
- if (a = a.parent, !a)
366
- return;
367
- if (!(e.props.length === 1 && r.charCodeAt(0) !== 58 && !Pt.get(a)) && !n) {
368
- Pt.set(e, !0);
369
- for (var i = [], u = Fr(r, i), o = a.props, s = 0, c = 0; s < u.length; s++)
370
- for (var l = 0; l < o.length; l++, c++)
371
- e.props[c] = i[s] ? u[s].replace(/&\f/g, o[l]) : o[l] + " " + u[s];
372
- }
373
- }
374
- }, Pr = function(e) {
375
- if (e.type === "decl") {
376
- var r = e.value;
377
- // charcode for l
378
- r.charCodeAt(0) === 108 && // charcode for b
379
- r.charCodeAt(2) === 98 && (e.return = "", e.value = "");
380
- }
381
- }, wr = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", Xr = function(e) {
382
- return e.type === "comm" && e.children.indexOf(wr) > -1;
383
- }, Tr = function(e) {
384
- return function(r, a, n) {
385
- if (!(r.type !== "rule" || e.compat)) {
386
- var i = r.value.match(/(:first|:nth|:nth-last)-child/g);
387
- if (i) {
388
- for (var u = !!r.parent, o = u ? r.parent.children : (
389
- // global rule at the root level
390
- n
391
- ), s = o.length - 1; s >= 0; s--) {
392
- var c = o[s];
393
- if (c.line < r.line)
394
- break;
395
- if (c.column < r.column) {
396
- if (Xr(c))
397
- return;
398
- break;
399
- }
400
- }
401
- i.forEach(function(l) {
402
- console.error('The pseudo class "' + l + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + l.split("-child")[0] + '-of-type".');
403
- });
404
- }
405
- }
406
- };
407
- }, vn = function(e) {
408
- return e.type.charCodeAt(1) === 105 && e.type.charCodeAt(0) === 64;
409
- }, Zr = function(e, r) {
410
- for (var a = e - 1; a >= 0; a--)
411
- if (!vn(r[a]))
412
- return !0;
413
- return !1;
414
- }, wt = function(e) {
415
- e.type = "", e.value = "", e.return = "", e.children = "", e.props = "";
416
- }, Or = function(e, r, a) {
417
- vn(e) && (e.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), wt(e)) : Zr(r, a) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), wt(e)));
418
- };
419
- function In(t, e) {
420
- switch (br(t, e)) {
421
- case 5103:
422
- return N + "print-" + t + t;
423
- case 5737:
424
- case 4201:
425
- case 3177:
426
- case 3433:
427
- case 1641:
428
- case 4457:
429
- case 2921:
430
- case 5572:
431
- case 6356:
432
- case 5844:
433
- case 3191:
434
- case 6645:
435
- case 3005:
436
- case 6391:
437
- case 5879:
438
- case 5623:
439
- case 6135:
440
- case 4599:
441
- case 4855:
442
- case 4215:
443
- case 6389:
444
- case 5109:
445
- case 5365:
446
- case 5621:
447
- case 3829:
448
- return N + t + t;
449
- case 5349:
450
- case 4246:
451
- case 4810:
452
- case 6968:
453
- case 2756:
454
- return N + t + Oe + t + L + t + t;
455
- case 6828:
456
- case 4268:
457
- return N + t + L + t + t;
458
- case 6165:
459
- return N + t + L + "flex-" + t + t;
460
- case 5187:
461
- return N + t + V(t, /(\w+).+(:[^]+)/, N + "box-$1$2" + L + "flex-$1$2") + t;
462
- case 5443:
463
- return N + t + L + "flex-item-" + V(t, /flex-|-self/, "") + t;
464
- case 4675:
465
- return N + t + L + "flex-line-pack" + V(t, /align-content|flex-|-self/, "") + t;
466
- case 5548:
467
- return N + t + L + V(t, "shrink", "negative") + t;
468
- case 5292:
469
- return N + t + L + V(t, "basis", "preferred-size") + t;
470
- case 6060:
471
- return N + "box-" + V(t, "-grow", "") + N + t + L + V(t, "grow", "positive") + t;
472
- case 4554:
473
- return N + V(t, /([^-])(transform)/g, "$1" + N + "$2") + t;
474
- case 6187:
475
- return V(V(V(t, /(zoom-|grab)/, N + "$1"), /(image-set)/, N + "$1"), t, "") + t;
476
- case 5495:
477
- case 3959:
478
- return V(t, /(image-set\([^]*)/, N + "$1$`$1");
479
- case 4968:
480
- return V(V(t, /(.+:)(flex-)?(.*)/, N + "box-pack:$3" + L + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + N + t + t;
481
- case 4095:
482
- case 3583:
483
- case 4068:
484
- case 2532:
485
- return V(t, /(.+)-inline(.+)/, N + "$1$2") + t;
486
- case 8116:
487
- case 7059:
488
- case 5753:
489
- case 5535:
490
- case 5445:
491
- case 5701:
492
- case 4933:
493
- case 4677:
494
- case 5533:
495
- case 5789:
496
- case 5021:
497
- case 4765:
498
- if (ae(t) - 1 - e > 6)
499
- switch (W(t, e + 1)) {
500
- case 109:
501
- if (W(t, e + 4) !== 45)
502
- break;
503
- case 102:
504
- return V(t, /(.+:)(.+)-([^]+)/, "$1" + N + "$2-$3$1" + Oe + (W(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
505
- case 115:
506
- return ~rt(t, "stretch") ? In(V(t, "stretch", "fill-available"), e) + t : t;
507
- }
508
- break;
509
- case 4949:
510
- if (W(t, e + 1) !== 115)
511
- break;
512
- case 6444:
513
- switch (W(t, ae(t) - 3 - (~rt(t, "!important") && 10))) {
514
- case 107:
515
- return V(t, ":", ":" + N) + t;
516
- case 101:
517
- return V(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + N + (W(t, 14) === 45 ? "inline-" : "") + "box$3$1" + N + "$2$3$1" + L + "$2box$3") + t;
518
- }
519
- break;
520
- case 5936:
521
- switch (W(t, e + 11)) {
522
- case 114:
523
- return N + t + L + V(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
524
- case 108:
525
- return N + t + L + V(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
526
- case 45:
527
- return N + t + L + V(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
528
- }
529
- return N + t + L + t + t;
530
- }
531
- return t;
532
- }
533
- var Mr = function(e, r, a, n) {
534
- if (e.length > -1 && !e.return)
535
- switch (e.type) {
536
- case mt:
537
- e.return = In(e.value, e.length);
538
- break;
539
- case gn:
540
- return fe([ye(e, {
541
- value: V(e.value, "@", "@" + N)
542
- })], n);
543
- case ft:
544
- if (e.length)
545
- return mr(e.props, function(i) {
546
- switch (fr(i, /(::plac\w+|:read-\w+)/)) {
547
- case ":read-only":
548
- case ":read-write":
549
- return fe([ye(e, {
550
- props: [V(i, /:(read-\w+)/, ":" + Oe + "$1")]
551
- })], n);
552
- case "::placeholder":
553
- return fe([ye(e, {
554
- props: [V(i, /:(plac\w+)/, ":" + N + "input-$1")]
555
- }), ye(e, {
556
- props: [V(i, /:(plac\w+)/, ":" + Oe + "$1")]
557
- }), ye(e, {
558
- props: [V(i, /:(plac\w+)/, L + "input-$1")]
559
- })], n);
560
- }
561
- return "";
562
- });
563
- }
564
- }, Wr = [Mr], Dr = function(e) {
565
- var r = e.key;
566
- if (process.env.NODE_ENV !== "production" && !r)
567
- throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
568
- If multiple caches share the same key they might "fight" for each other's style elements.`);
569
- if (r === "css") {
570
- var a = document.querySelectorAll("style[data-emotion]:not([data-s])");
571
- Array.prototype.forEach.call(a, function(p) {
572
- var g = p.getAttribute("data-emotion");
573
- g.indexOf(" ") !== -1 && (document.head.appendChild(p), p.setAttribute("data-s", ""));
574
- });
575
- }
576
- var n = e.stylisPlugins || Wr;
577
- if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(r))
578
- throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + r + '" was passed');
579
- var i = {}, u, o = [];
580
- u = e.container || document.head, Array.prototype.forEach.call(
581
- // this means we will ignore elements which don't have a space in them which
582
- // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
583
- document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
584
- function(p) {
585
- for (var g = p.getAttribute("data-emotion").split(" "), I = 1; I < g.length; I++)
586
- i[g[I]] = !0;
587
- o.push(p);
588
- }
589
- );
590
- var s, c = [Rr, Pr];
591
- process.env.NODE_ENV !== "production" && c.push(Tr({
592
- get compat() {
593
- return f.compat;
594
- }
595
- }), Or);
596
- {
597
- var l, d = [Er, process.env.NODE_ENV !== "production" ? function(p) {
598
- p.root || (p.return ? l.insert(p.return) : p.value && p.type !== bt && l.insert(p.value + "{}"));
599
- } : Sr(function(p) {
600
- l.insert(p);
601
- })], v = Gr(c.concat(n, d)), m = function(g) {
602
- return fe(Ar(g), v);
603
- };
604
- s = function(g, I, h, y) {
605
- l = h, process.env.NODE_ENV !== "production" && I.map !== void 0 && (l = {
606
- insert: function(b) {
607
- h.insert(b + I.map);
608
- }
609
- }), m(g ? g + "{" + I.styles + "}" : I.styles), y && (f.inserted[I.name] = !0);
610
- };
611
- }
612
- var f = {
613
- key: r,
614
- sheet: new sr({
615
- key: r,
616
- container: u,
617
- nonce: e.nonce,
618
- speedy: e.speedy,
619
- prepend: e.prepend,
620
- insertionPoint: e.insertionPoint
621
- }),
622
- nonce: e.nonce,
623
- inserted: i,
624
- registered: {},
625
- insert: s
626
- };
627
- return f.sheet.hydrate(o), f;
628
- }, at = { exports: {} }, F = {};
629
- /** @license React v16.13.1
630
- * react-is.production.min.js
631
- *
632
- * Copyright (c) Facebook, Inc. and its affiliates.
633
- *
634
- * This source code is licensed under the MIT license found in the
635
- * LICENSE file in the root directory of this source tree.
636
- */
637
- var Xt;
638
- function Hr() {
639
- if (Xt)
640
- return F;
641
- Xt = 1;
642
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, a = t ? Symbol.for("react.fragment") : 60107, n = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, u = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, s = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, l = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, v = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, f = t ? Symbol.for("react.lazy") : 60116, p = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, I = t ? Symbol.for("react.responder") : 60118, h = t ? Symbol.for("react.scope") : 60119;
643
- function y(b) {
644
- if (typeof b == "object" && b !== null) {
645
- var B = b.$$typeof;
646
- switch (B) {
647
- case e:
648
- switch (b = b.type, b) {
649
- case s:
650
- case c:
651
- case a:
652
- case i:
653
- case n:
654
- case d:
655
- return b;
656
- default:
657
- switch (b = b && b.$$typeof, b) {
658
- case o:
659
- case l:
660
- case f:
661
- case m:
662
- case u:
663
- return b;
664
- default:
665
- return B;
666
- }
667
- }
668
- case r:
669
- return B;
670
- }
671
- }
672
- }
673
- function E(b) {
674
- return y(b) === c;
675
- }
676
- return F.AsyncMode = s, F.ConcurrentMode = c, F.ContextConsumer = o, F.ContextProvider = u, F.Element = e, F.ForwardRef = l, F.Fragment = a, F.Lazy = f, F.Memo = m, F.Portal = r, F.Profiler = i, F.StrictMode = n, F.Suspense = d, F.isAsyncMode = function(b) {
677
- return E(b) || y(b) === s;
678
- }, F.isConcurrentMode = E, F.isContextConsumer = function(b) {
679
- return y(b) === o;
680
- }, F.isContextProvider = function(b) {
681
- return y(b) === u;
682
- }, F.isElement = function(b) {
683
- return typeof b == "object" && b !== null && b.$$typeof === e;
684
- }, F.isForwardRef = function(b) {
685
- return y(b) === l;
686
- }, F.isFragment = function(b) {
687
- return y(b) === a;
688
- }, F.isLazy = function(b) {
689
- return y(b) === f;
690
- }, F.isMemo = function(b) {
691
- return y(b) === m;
692
- }, F.isPortal = function(b) {
693
- return y(b) === r;
694
- }, F.isProfiler = function(b) {
695
- return y(b) === i;
696
- }, F.isStrictMode = function(b) {
697
- return y(b) === n;
698
- }, F.isSuspense = function(b) {
699
- return y(b) === d;
700
- }, F.isValidElementType = function(b) {
701
- return typeof b == "string" || typeof b == "function" || b === a || b === c || b === i || b === n || b === d || b === v || typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof === m || b.$$typeof === u || b.$$typeof === o || b.$$typeof === l || b.$$typeof === g || b.$$typeof === I || b.$$typeof === h || b.$$typeof === p);
702
- }, F.typeOf = y, F;
703
- }
704
- var R = {};
705
- /** @license React v16.13.1
706
- * react-is.development.js
707
- *
708
- * Copyright (c) Facebook, Inc. and its affiliates.
709
- *
710
- * This source code is licensed under the MIT license found in the
711
- * LICENSE file in the root directory of this source tree.
712
- */
713
- var Tt;
714
- function Lr() {
715
- return Tt || (Tt = 1, process.env.NODE_ENV !== "production" && function() {
716
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, a = t ? Symbol.for("react.fragment") : 60107, n = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, u = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, s = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, l = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, v = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, f = t ? Symbol.for("react.lazy") : 60116, p = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, I = t ? Symbol.for("react.responder") : 60118, h = t ? Symbol.for("react.scope") : 60119;
717
- function y(C) {
718
- return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
719
- C === a || C === c || C === i || C === n || C === d || C === v || typeof C == "object" && C !== null && (C.$$typeof === f || C.$$typeof === m || C.$$typeof === u || C.$$typeof === o || C.$$typeof === l || C.$$typeof === g || C.$$typeof === I || C.$$typeof === h || C.$$typeof === p);
720
- }
721
- function E(C) {
722
- if (typeof C == "object" && C !== null) {
723
- var he = C.$$typeof;
724
- switch (he) {
725
- case e:
726
- var le = C.type;
727
- switch (le) {
728
- case s:
729
- case c:
730
- case a:
731
- case i:
732
- case n:
733
- case d:
734
- return le;
735
- default:
736
- var Ve = le && le.$$typeof;
737
- switch (Ve) {
738
- case o:
739
- case l:
740
- case f:
741
- case m:
742
- case u:
743
- return Ve;
744
- default:
745
- return he;
746
- }
747
- }
748
- case r:
749
- return he;
750
- }
751
- }
752
- }
753
- var b = s, B = c, A = o, P = u, X = e, z = l, J = a, j = f, D = m, O = r, T = i, U = n, Y = d, _ = !1;
754
- function ne(C) {
755
- return _ || (_ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ee(C) || E(C) === s;
756
- }
757
- function ee(C) {
758
- return E(C) === c;
759
- }
760
- function oe(C) {
761
- return E(C) === o;
762
- }
763
- function M(C) {
764
- return E(C) === u;
765
- }
766
- function H(C) {
767
- return typeof C == "object" && C !== null && C.$$typeof === e;
768
- }
769
- function re(C) {
770
- return E(C) === l;
771
- }
772
- function ie(C) {
773
- return E(C) === a;
774
- }
775
- function $(C) {
776
- return E(C) === f;
777
- }
778
- function K(C) {
779
- return E(C) === m;
780
- }
781
- function ce(C) {
782
- return E(C) === r;
783
- }
784
- function de(C) {
785
- return E(C) === i;
786
- }
787
- function Je(C) {
788
- return E(C) === n;
789
- }
790
- function Ne(C) {
791
- return E(C) === d;
792
- }
793
- R.AsyncMode = b, R.ConcurrentMode = B, R.ContextConsumer = A, R.ContextProvider = P, R.Element = X, R.ForwardRef = z, R.Fragment = J, R.Lazy = j, R.Memo = D, R.Portal = O, R.Profiler = T, R.StrictMode = U, R.Suspense = Y, R.isAsyncMode = ne, R.isConcurrentMode = ee, R.isContextConsumer = oe, R.isContextProvider = M, R.isElement = H, R.isForwardRef = re, R.isFragment = ie, R.isLazy = $, R.isMemo = K, R.isPortal = ce, R.isProfiler = de, R.isStrictMode = Je, R.isSuspense = Ne, R.isValidElementType = y, R.typeOf = E;
794
- }()), R;
795
- }
796
- process.env.NODE_ENV === "production" ? at.exports = Hr() : at.exports = Lr();
797
- var Yr = at.exports, hn = Yr, zr = {
798
- $$typeof: !0,
799
- render: !0,
800
- defaultProps: !0,
801
- displayName: !0,
802
- propTypes: !0
803
- }, jr = {
804
- $$typeof: !0,
805
- compare: !0,
806
- defaultProps: !0,
807
- displayName: !0,
808
- propTypes: !0,
809
- type: !0
810
- }, Cn = {};
811
- Cn[hn.ForwardRef] = zr;
812
- Cn[hn.Memo] = jr;
813
- var kr = !0;
814
- function yn(t, e, r) {
815
- var a = "";
816
- return r.split(" ").forEach(function(n) {
817
- t[n] !== void 0 ? e.push(t[n] + ";") : a += n + " ";
818
- }), a;
819
- }
820
- var vt = function(e, r, a) {
821
- var n = e.key + "-" + r.name;
822
- // we only need to add the styles to the registered cache if the
823
- // class name could be used further down
824
- // the tree but if it's a string tag, we know it won't
825
- // so we don't have to add it to registered cache.
826
- // this improves memory usage since we can avoid storing the whole style string
827
- (a === !1 || // we need to always store it if we're in compat mode and
828
- // in node since emotion-server relies on whether a style is in
829
- // the registered cache to know whether a style is global or not
830
- // also, note that this check will be dead code eliminated in the browser
831
- kr === !1) && e.registered[n] === void 0 && (e.registered[n] = r.styles);
832
- }, It = function(e, r, a) {
833
- vt(e, r, a);
834
- var n = e.key + "-" + r.name;
835
- if (e.inserted[r.name] === void 0) {
836
- var i = r;
837
- do
838
- e.insert(r === i ? "." + n : "", i, e.sheet, !0), i = i.next;
839
- while (i !== void 0);
840
- }
841
- };
842
- function Jr(t) {
843
- for (var e = 0, r, a = 0, n = t.length; n >= 4; ++a, n -= 4)
844
- r = t.charCodeAt(a) & 255 | (t.charCodeAt(++a) & 255) << 8 | (t.charCodeAt(++a) & 255) << 16 | (t.charCodeAt(++a) & 255) << 24, r = /* Math.imul(k, m): */
845
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
846
- r >>> 24, e = /* Math.imul(k, m): */
847
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
848
- (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
849
- switch (n) {
850
- case 3:
851
- e ^= (t.charCodeAt(a + 2) & 255) << 16;
852
- case 2:
853
- e ^= (t.charCodeAt(a + 1) & 255) << 8;
854
- case 1:
855
- e ^= t.charCodeAt(a) & 255, e = /* Math.imul(h, m): */
856
- (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
857
- }
858
- return e ^= e >>> 13, e = /* Math.imul(h, m): */
859
- (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
860
- }
861
- var Ur = {
862
- animationIterationCount: 1,
863
- aspectRatio: 1,
864
- borderImageOutset: 1,
865
- borderImageSlice: 1,
866
- borderImageWidth: 1,
867
- boxFlex: 1,
868
- boxFlexGroup: 1,
869
- boxOrdinalGroup: 1,
870
- columnCount: 1,
871
- columns: 1,
872
- flex: 1,
873
- flexGrow: 1,
874
- flexPositive: 1,
875
- flexShrink: 1,
876
- flexNegative: 1,
877
- flexOrder: 1,
878
- gridRow: 1,
879
- gridRowEnd: 1,
880
- gridRowSpan: 1,
881
- gridRowStart: 1,
882
- gridColumn: 1,
883
- gridColumnEnd: 1,
884
- gridColumnSpan: 1,
885
- gridColumnStart: 1,
886
- msGridRow: 1,
887
- msGridRowSpan: 1,
888
- msGridColumn: 1,
889
- msGridColumnSpan: 1,
890
- fontWeight: 1,
891
- lineHeight: 1,
892
- opacity: 1,
893
- order: 1,
894
- orphans: 1,
895
- tabSize: 1,
896
- widows: 1,
897
- zIndex: 1,
898
- zoom: 1,
899
- WebkitLineClamp: 1,
900
- // SVG-related properties
901
- fillOpacity: 1,
902
- floodOpacity: 1,
903
- stopOpacity: 1,
904
- strokeDasharray: 1,
905
- strokeDashoffset: 1,
906
- strokeMiterlimit: 1,
907
- strokeOpacity: 1,
908
- strokeWidth: 1
909
- }, Zt = `You have illegal escape sequence in your template literal, most likely inside content's property value.
910
- Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
911
- You can read more about this here:
912
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, _r = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", Qr = /[A-Z]|^ms/g, An = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ht = function(e) {
913
- return e.charCodeAt(1) === 45;
914
- }, Ot = function(e) {
915
- return e != null && typeof e != "boolean";
916
- }, _e = /* @__PURE__ */ Br(function(t) {
917
- return ht(t) ? t : t.replace(Qr, "-$&").toLowerCase();
918
- }), Me = function(e, r) {
919
- switch (e) {
920
- case "animation":
921
- case "animationName":
922
- if (typeof r == "string")
923
- return r.replace(An, function(a, n, i) {
924
- return te = {
925
- name: n,
926
- styles: i,
927
- next: te
928
- }, n;
929
- });
930
- }
931
- return Ur[e] !== 1 && !ht(e) && typeof r == "number" && r !== 0 ? r + "px" : r;
932
- };
933
- if (process.env.NODE_ENV !== "production") {
934
- var $r = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, Kr = ["normal", "none", "initial", "inherit", "unset"], qr = Me, ei = /^-ms-/, ti = /-(.)/g, Mt = {};
935
- Me = function(e, r) {
936
- if (e === "content" && (typeof r != "string" || Kr.indexOf(r) === -1 && !$r.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")))
937
- throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + r + "\"'`");
938
- var a = qr(e, r);
939
- return a !== "" && !ht(e) && e.indexOf("-") !== -1 && Mt[e] === void 0 && (Mt[e] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + e.replace(ei, "ms-").replace(ti, function(n, i) {
940
- return i.toUpperCase();
941
- }) + "?")), a;
942
- };
943
- }
944
- var xn = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
945
- function Ge(t, e, r) {
946
- if (r == null)
947
- return "";
948
- if (r.__emotion_styles !== void 0) {
949
- if (process.env.NODE_ENV !== "production" && r.toString() === "NO_COMPONENT_SELECTOR")
950
- throw new Error(xn);
951
- return r;
952
- }
953
- switch (typeof r) {
954
- case "boolean":
955
- return "";
956
- case "object": {
957
- if (r.anim === 1)
958
- return te = {
959
- name: r.name,
960
- styles: r.styles,
961
- next: te
962
- }, r.name;
963
- if (r.styles !== void 0) {
964
- var a = r.next;
965
- if (a !== void 0)
966
- for (; a !== void 0; )
967
- te = {
968
- name: a.name,
969
- styles: a.styles,
970
- next: te
971
- }, a = a.next;
972
- var n = r.styles + ";";
973
- return process.env.NODE_ENV !== "production" && r.map !== void 0 && (n += r.map), n;
974
- }
975
- return ni(t, e, r);
976
- }
977
- case "function": {
978
- if (t !== void 0) {
979
- var i = te, u = r(t);
980
- return te = i, Ge(t, e, u);
981
- } else
982
- process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
983
- break;
984
- }
985
- case "string":
986
- if (process.env.NODE_ENV !== "production") {
987
- var o = [], s = r.replace(An, function(l, d, v) {
988
- var m = "animation" + o.length;
989
- return o.push("const " + m + " = keyframes`" + v.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + m + "}";
990
- });
991
- o.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(o, ["`" + s + "`"]).join(`
992
- `) + `
993
-
994
- You should wrap it with \`css\` like this:
995
-
996
- ` + ("css`" + s + "`"));
997
- }
998
- break;
999
- }
1000
- if (e == null)
1001
- return r;
1002
- var c = e[r];
1003
- return c !== void 0 ? c : r;
1004
- }
1005
- function ni(t, e, r) {
1006
- var a = "";
1007
- if (Array.isArray(r))
1008
- for (var n = 0; n < r.length; n++)
1009
- a += Ge(t, e, r[n]) + ";";
1010
- else
1011
- for (var i in r) {
1012
- var u = r[i];
1013
- if (typeof u != "object")
1014
- e != null && e[u] !== void 0 ? a += i + "{" + e[u] + "}" : Ot(u) && (a += _e(i) + ":" + Me(i, u) + ";");
1015
- else {
1016
- if (i === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
1017
- throw new Error(xn);
1018
- if (Array.isArray(u) && typeof u[0] == "string" && (e == null || e[u[0]] === void 0))
1019
- for (var o = 0; o < u.length; o++)
1020
- Ot(u[o]) && (a += _e(i) + ":" + Me(i, u[o]) + ";");
1021
- else {
1022
- var s = Ge(t, e, u);
1023
- switch (i) {
1024
- case "animation":
1025
- case "animationName": {
1026
- a += _e(i) + ":" + s + ";";
1027
- break;
1028
- }
1029
- default:
1030
- process.env.NODE_ENV !== "production" && i === "undefined" && console.error(_r), a += i + "{" + s + "}";
1031
- }
1032
- }
1033
- }
1034
- }
1035
- return a;
1036
- }
1037
- var Wt = /label:\s*([^\s;\n{]+)\s*(;|$)/g, En;
1038
- process.env.NODE_ENV !== "production" && (En = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
1039
- var te, Se = function(e, r, a) {
1040
- if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1041
- return e[0];
1042
- var n = !0, i = "";
1043
- te = void 0;
1044
- var u = e[0];
1045
- u == null || u.raw === void 0 ? (n = !1, i += Ge(a, r, u)) : (process.env.NODE_ENV !== "production" && u[0] === void 0 && console.error(Zt), i += u[0]);
1046
- for (var o = 1; o < e.length; o++)
1047
- i += Ge(a, r, e[o]), n && (process.env.NODE_ENV !== "production" && u[o] === void 0 && console.error(Zt), i += u[o]);
1048
- var s;
1049
- process.env.NODE_ENV !== "production" && (i = i.replace(En, function(v) {
1050
- return s = v, "";
1051
- })), Wt.lastIndex = 0;
1052
- for (var c = "", l; (l = Wt.exec(i)) !== null; )
1053
- c += "-" + // $FlowFixMe we know it's not null
1054
- l[1];
1055
- var d = Jr(i) + c;
1056
- return process.env.NODE_ENV !== "production" ? {
1057
- name: d,
1058
- styles: i,
1059
- map: s,
1060
- next: te,
1061
- toString: function() {
1062
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
1063
- }
1064
- } : {
1065
- name: d,
1066
- styles: i,
1067
- next: te
1068
- };
1069
- }, ri = function(e) {
1070
- return e();
1071
- }, Gn = G["useInsertionEffect"] ? G["useInsertionEffect"] : !1, Sn = Gn || ri, Dt = Gn || G.useLayoutEffect, Ct = {}.hasOwnProperty, yt = /* @__PURE__ */ G.createContext(
1072
- // we're doing this to avoid preconstruct's dead code elimination in this one case
1073
- // because this module is primarily intended for the browser and node
1074
- // but it's also required in react native and similar environments sometimes
1075
- // and we could have a special build just for that
1076
- // but this is much easier and the native packages
1077
- // might use a different theme context in the future anyway
1078
- typeof HTMLElement < "u" ? /* @__PURE__ */ Dr({
1079
- key: "css"
1080
- }) : null
1081
- );
1082
- process.env.NODE_ENV !== "production" && (yt.displayName = "EmotionCacheContext");
1083
- yt.Provider;
1084
- var At = function(e) {
1085
- return /* @__PURE__ */ ln(function(r, a) {
1086
- var n = rr(yt);
1087
- return e(r, n, a);
1088
- });
1089
- }, ke = /* @__PURE__ */ G.createContext({});
1090
- process.env.NODE_ENV !== "production" && (ke.displayName = "EmotionThemeContext");
1091
- var Ht = function(e) {
1092
- var r = e.split(".");
1093
- return r[r.length - 1];
1094
- }, ii = function(e) {
1095
- var r = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);
1096
- if (r || (r = /^([A-Za-z0-9$.]+)@/.exec(e), r))
1097
- return Ht(r[1]);
1098
- }, ai = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), ui = function(e) {
1099
- return e.replace(/\$/g, "-");
1100
- }, oi = function(e) {
1101
- if (e)
1102
- for (var r = e.split(`
1103
- `), a = 0; a < r.length; a++) {
1104
- var n = ii(r[a]);
1105
- if (n) {
1106
- if (ai.has(n))
1107
- break;
1108
- if (/^[A-Z]/.test(n))
1109
- return ui(n);
1110
- }
1111
- }
1112
- }, ut = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", ot = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", si = function(e, r) {
1113
- if (process.env.NODE_ENV !== "production" && typeof r.css == "string" && // check if there is a css declaration
1114
- r.css.indexOf(":") !== -1)
1115
- throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + r.css + "`");
1116
- var a = {};
1117
- for (var n in r)
1118
- Ct.call(r, n) && (a[n] = r[n]);
1119
- if (a[ut] = e, process.env.NODE_ENV !== "production" && r.css && (typeof r.css != "object" || typeof r.css.name != "string" || r.css.name.indexOf("-") === -1)) {
1120
- var i = oi(new Error().stack);
1121
- i && (a[ot] = i);
1122
- }
1123
- return a;
1124
- }, ci = function(e) {
1125
- var r = e.cache, a = e.serialized, n = e.isStringTag;
1126
- return vt(r, a, n), Sn(function() {
1127
- return It(r, a, n);
1128
- }), null;
1129
- }, Bn = /* @__PURE__ */ At(function(t, e, r) {
1130
- var a = t.css;
1131
- typeof a == "string" && e.registered[a] !== void 0 && (a = e.registered[a]);
1132
- var n = t[ut], i = [a], u = "";
1133
- typeof t.className == "string" ? u = yn(e.registered, i, t.className) : t.className != null && (u = t.className + " ");
1134
- var o = Se(i, void 0, G.useContext(ke));
1135
- if (process.env.NODE_ENV !== "production" && o.name.indexOf("-") === -1) {
1136
- var s = t[ot];
1137
- s && (o = Se([o, "label:" + s + ";"]));
1138
- }
1139
- u += e.key + "-" + o.name;
1140
- var c = {};
1141
- for (var l in t)
1142
- Ct.call(t, l) && l !== "css" && l !== ut && (process.env.NODE_ENV === "production" || l !== ot) && (c[l] = t[l]);
1143
- return c.ref = r, c.className = u, /* @__PURE__ */ G.createElement(G.Fragment, null, /* @__PURE__ */ G.createElement(ci, {
1144
- cache: e,
1145
- serialized: o,
1146
- isStringTag: typeof n == "string"
1147
- }), /* @__PURE__ */ G.createElement(n, c));
1148
- });
1149
- process.env.NODE_ENV !== "production" && (Bn.displayName = "EmotionCssPropInternal");
1150
- var li = Bn, di = {
1151
- name: "@emotion/react",
1152
- version: "11.11.3",
1153
- main: "dist/emotion-react.cjs.js",
1154
- module: "dist/emotion-react.esm.js",
1155
- browser: {
1156
- "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
1157
- },
1158
- exports: {
1159
- ".": {
1160
- module: {
1161
- worker: "./dist/emotion-react.worker.esm.js",
1162
- browser: "./dist/emotion-react.browser.esm.js",
1163
- default: "./dist/emotion-react.esm.js"
1164
- },
1165
- import: "./dist/emotion-react.cjs.mjs",
1166
- default: "./dist/emotion-react.cjs.js"
1167
- },
1168
- "./jsx-runtime": {
1169
- module: {
1170
- worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",
1171
- browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
1172
- default: "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"
1173
- },
1174
- import: "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",
1175
- default: "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
1176
- },
1177
- "./_isolated-hnrs": {
1178
- module: {
1179
- worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",
1180
- browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
1181
- default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"
1182
- },
1183
- import: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",
1184
- default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
1185
- },
1186
- "./jsx-dev-runtime": {
1187
- module: {
1188
- worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",
1189
- browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
1190
- default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"
1191
- },
1192
- import: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",
1193
- default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
1194
- },
1195
- "./package.json": "./package.json",
1196
- "./types/css-prop": "./types/css-prop.d.ts",
1197
- "./macro": {
1198
- types: {
1199
- import: "./macro.d.mts",
1200
- default: "./macro.d.ts"
1201
- },
1202
- default: "./macro.js"
1203
- }
1204
- },
1205
- types: "types/index.d.ts",
1206
- files: [
1207
- "src",
1208
- "dist",
1209
- "jsx-runtime",
1210
- "jsx-dev-runtime",
1211
- "_isolated-hnrs",
1212
- "types/*.d.ts",
1213
- "macro.*"
1214
- ],
1215
- sideEffects: !1,
1216
- author: "Emotion Contributors",
1217
- license: "MIT",
1218
- scripts: {
1219
- "test:typescript": "dtslint types"
1220
- },
1221
- dependencies: {
1222
- "@babel/runtime": "^7.18.3",
1223
- "@emotion/babel-plugin": "^11.11.0",
1224
- "@emotion/cache": "^11.11.0",
1225
- "@emotion/serialize": "^1.1.3",
1226
- "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
1227
- "@emotion/utils": "^1.2.1",
1228
- "@emotion/weak-memoize": "^0.3.1",
1229
- "hoist-non-react-statics": "^3.3.1"
1230
- },
1231
- peerDependencies: {
1232
- react: ">=16.8.0"
1233
- },
1234
- peerDependenciesMeta: {
1235
- "@types/react": {
1236
- optional: !0
1237
- }
1238
- },
1239
- devDependencies: {
1240
- "@definitelytyped/dtslint": "0.0.112",
1241
- "@emotion/css": "11.11.2",
1242
- "@emotion/css-prettifier": "1.1.3",
1243
- "@emotion/server": "11.11.0",
1244
- "@emotion/styled": "11.11.0",
1245
- "html-tag-names": "^1.1.2",
1246
- react: "16.14.0",
1247
- "svg-tag-names": "^1.1.1",
1248
- typescript: "^4.5.5"
1249
- },
1250
- repository: "https://github.com/emotion-js/emotion/tree/main/packages/react",
1251
- publishConfig: {
1252
- access: "public"
1253
- },
1254
- "umd:main": "dist/emotion-react.umd.min.js",
1255
- preconstruct: {
1256
- entrypoints: [
1257
- "./index.js",
1258
- "./jsx-runtime.js",
1259
- "./jsx-dev-runtime.js",
1260
- "./_isolated-hnrs.js"
1261
- ],
1262
- umdName: "emotionReact",
1263
- exports: {
1264
- envConditions: [
1265
- "browser",
1266
- "worker"
1267
- ],
1268
- extra: {
1269
- "./types/css-prop": "./types/css-prop.d.ts",
1270
- "./macro": {
1271
- types: {
1272
- import: "./macro.d.mts",
1273
- default: "./macro.d.ts"
1274
- },
1275
- default: "./macro.js"
1276
- }
1277
- }
1278
- }
1279
- }
1280
- }, x = function(e, r) {
1281
- var a = arguments;
1282
- if (r == null || !Ct.call(r, "css"))
1283
- return G.createElement.apply(void 0, a);
1284
- var n = a.length, i = new Array(n);
1285
- i[0] = li, i[1] = si(e, r);
1286
- for (var u = 2; u < n; u++)
1287
- i[u] = a[u];
1288
- return G.createElement.apply(null, i);
1289
- }, Lt = !1, gi = /* @__PURE__ */ At(function(t, e) {
1290
- process.env.NODE_ENV !== "production" && !Lt && // check for className as well since the user is
1291
- // probably using the custom createElement which
1292
- // means it will be turned into a className prop
1293
- // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
1294
- (t.className || t.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), Lt = !0);
1295
- var r = t.styles, a = Se([r], void 0, G.useContext(ke)), n = G.useRef();
1296
- return Dt(function() {
1297
- var i = e.key + "-global", u = new e.sheet.constructor({
1298
- key: i,
1299
- nonce: e.sheet.nonce,
1300
- container: e.sheet.container,
1301
- speedy: e.sheet.isSpeedy
1302
- }), o = !1, s = document.querySelector('style[data-emotion="' + i + " " + a.name + '"]');
1303
- return e.sheet.tags.length && (u.before = e.sheet.tags[0]), s !== null && (o = !0, s.setAttribute("data-emotion", i), u.hydrate([s])), n.current = [u, o], function() {
1304
- u.flush();
1305
- };
1306
- }, [e]), Dt(function() {
1307
- var i = n.current, u = i[0], o = i[1];
1308
- if (o) {
1309
- i[1] = !1;
1310
- return;
1311
- }
1312
- if (a.next !== void 0 && It(e, a.next, !0), u.tags.length) {
1313
- var s = u.tags[u.tags.length - 1].nextElementSibling;
1314
- u.before = s, u.flush();
1315
- }
1316
- e.insert("", a, u, !1);
1317
- }, [e, a.name]), null;
1318
- });
1319
- process.env.NODE_ENV !== "production" && (gi.displayName = "EmotionGlobal");
1320
- function xt() {
1321
- for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
1322
- e[r] = arguments[r];
1323
- return Se(e);
1324
- }
1325
- var bi = function() {
1326
- var e = xt.apply(void 0, arguments), r = "animation-" + e.name;
1327
- return {
1328
- name: r,
1329
- styles: "@keyframes " + r + "{" + e.styles + "}",
1330
- anim: 1,
1331
- toString: function() {
1332
- return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
1333
- }
1334
- };
1335
- }, fi = function t(e) {
1336
- for (var r = e.length, a = 0, n = ""; a < r; a++) {
1337
- var i = e[a];
1338
- if (i != null) {
1339
- var u = void 0;
1340
- switch (typeof i) {
1341
- case "boolean":
1342
- break;
1343
- case "object": {
1344
- if (Array.isArray(i))
1345
- u = t(i);
1346
- else {
1347
- process.env.NODE_ENV !== "production" && i.styles !== void 0 && i.name !== void 0 && console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."), u = "";
1348
- for (var o in i)
1349
- i[o] && o && (u && (u += " "), u += o);
1350
- }
1351
- break;
1352
- }
1353
- default:
1354
- u = i;
1355
- }
1356
- u && (n && (n += " "), n += u);
1357
- }
1358
- }
1359
- return n;
1360
- };
1361
- function mi(t, e, r) {
1362
- var a = [], n = yn(t, a, r);
1363
- return a.length < 2 ? r : n + e(a);
1364
- }
1365
- var pi = function(e) {
1366
- var r = e.cache, a = e.serializedArr;
1367
- return Sn(function() {
1368
- for (var n = 0; n < a.length; n++)
1369
- It(r, a[n], !1);
1370
- }), null;
1371
- }, Nn = /* @__PURE__ */ At(function(t, e) {
1372
- var r = !1, a = [], n = function() {
1373
- if (r && process.env.NODE_ENV !== "production")
1374
- throw new Error("css can only be used during render");
1375
- for (var c = arguments.length, l = new Array(c), d = 0; d < c; d++)
1376
- l[d] = arguments[d];
1377
- var v = Se(l, e.registered);
1378
- return a.push(v), vt(e, v, !1), e.key + "-" + v.name;
1379
- }, i = function() {
1380
- if (r && process.env.NODE_ENV !== "production")
1381
- throw new Error("cx can only be used during render");
1382
- for (var c = arguments.length, l = new Array(c), d = 0; d < c; d++)
1383
- l[d] = arguments[d];
1384
- return mi(e.registered, n, fi(l));
1385
- }, u = {
1386
- css: n,
1387
- cx: i,
1388
- theme: G.useContext(ke)
1389
- }, o = t.children(u);
1390
- return r = !0, /* @__PURE__ */ G.createElement(G.Fragment, null, /* @__PURE__ */ G.createElement(pi, {
1391
- cache: e,
1392
- serializedArr: a
1393
- }), o);
1394
- });
1395
- process.env.NODE_ENV !== "production" && (Nn.displayName = "EmotionClassNames");
1396
- if (process.env.NODE_ENV !== "production") {
1397
- var Yt = !0, Ii = typeof jest < "u" || typeof vi < "u";
1398
- if (Yt && !Ii) {
1399
- var zt = (
1400
- // $FlowIgnore
1401
- typeof globalThis < "u" ? globalThis : Yt ? window : global
1402
- ), jt = "__EMOTION_REACT_" + di.version.split(".")[0] + "__";
1403
- zt[jt] && console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."), zt[jt] = !0;
1404
- }
1405
- }
1406
- function hi(t, e) {
1407
- return e || (e = t.slice(0)), Object.freeze(Object.defineProperties(t, {
1408
- raw: {
1409
- value: Object.freeze(e)
1410
- }
1411
- }));
1412
- }
1413
- function Ci(t, e) {
1414
- if (t == null)
1415
- return {};
1416
- var r = {}, a = Object.keys(t), n, i;
1417
- for (i = 0; i < a.length; i++)
1418
- n = a[i], !(e.indexOf(n) >= 0) && (r[n] = t[n]);
1419
- return r;
1420
- }
1421
- function Ie(t, e) {
1422
- if (t == null)
1423
- return {};
1424
- var r = Ci(t, e), a, n;
1425
- if (Object.getOwnPropertySymbols) {
1426
- var i = Object.getOwnPropertySymbols(t);
1427
- for (n = 0; n < i.length; n++)
1428
- a = i[n], !(e.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(t, a) && (r[a] = t[a]);
1429
- }
1430
- return r;
1431
- }
1432
- function pe(t) {
1433
- "@babel/helpers - typeof";
1434
- return pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1435
- return typeof e;
1436
- } : function(e) {
1437
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1438
- }, pe(t);
1439
- }
1440
- function Et(t, e) {
1441
- if (!(t instanceof e))
1442
- throw new TypeError("Cannot call a class as a function");
1443
- }
1444
- function yi(t, e) {
1445
- if (pe(t) != "object" || !t)
1446
- return t;
1447
- var r = t[Symbol.toPrimitive];
1448
- if (r !== void 0) {
1449
- var a = r.call(t, e || "default");
1450
- if (pe(a) != "object")
1451
- return a;
1452
- throw new TypeError("@@toPrimitive must return a primitive value.");
1453
- }
1454
- return (e === "string" ? String : Number)(t);
1455
- }
1456
- function Vn(t) {
1457
- var e = yi(t, "string");
1458
- return pe(e) == "symbol" ? e : String(e);
1459
- }
1460
- function kt(t, e) {
1461
- for (var r = 0; r < e.length; r++) {
1462
- var a = e[r];
1463
- a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(t, Vn(a.key), a);
1464
- }
1465
- }
1466
- function Gt(t, e, r) {
1467
- return e && kt(t.prototype, e), r && kt(t, r), Object.defineProperty(t, "prototype", {
1468
- writable: !1
1469
- }), t;
1470
- }
1471
- function st(t, e) {
1472
- return st = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(a, n) {
1473
- return a.__proto__ = n, a;
1474
- }, st(t, e);
1475
- }
1476
- function St(t, e) {
1477
- if (typeof e != "function" && e !== null)
1478
- throw new TypeError("Super expression must either be null or a function");
1479
- t.prototype = Object.create(e && e.prototype, {
1480
- constructor: {
1481
- value: t,
1482
- writable: !0,
1483
- configurable: !0
1484
- }
1485
- }), Object.defineProperty(t, "prototype", {
1486
- writable: !1
1487
- }), e && st(t, e);
1488
- }
1489
- function se(t, e, r) {
1490
- return e = Vn(e), e in t ? Object.defineProperty(t, e, {
1491
- value: r,
1492
- enumerable: !0,
1493
- configurable: !0,
1494
- writable: !0
1495
- }) : t[e] = r, t;
1496
- }
1497
- function Ai(t, e, r) {
1498
- return e in t ? Object.defineProperty(t, e, {
1499
- value: r,
1500
- enumerable: !0,
1501
- configurable: !0,
1502
- writable: !0
1503
- }) : t[e] = r, t;
1504
- }
1505
- function Jt(t, e) {
1506
- var r = Object.keys(t);
1507
- if (Object.getOwnPropertySymbols) {
1508
- var a = Object.getOwnPropertySymbols(t);
1509
- e && (a = a.filter(function(n) {
1510
- return Object.getOwnPropertyDescriptor(t, n).enumerable;
1511
- })), r.push.apply(r, a);
1512
- }
1513
- return r;
1514
- }
1515
- function w(t) {
1516
- for (var e = 1; e < arguments.length; e++) {
1517
- var r = arguments[e] != null ? arguments[e] : {};
1518
- e % 2 ? Jt(Object(r), !0).forEach(function(a) {
1519
- Ai(t, a, r[a]);
1520
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Jt(Object(r)).forEach(function(a) {
1521
- Object.defineProperty(t, a, Object.getOwnPropertyDescriptor(r, a));
1522
- });
1523
- }
1524
- return t;
1525
- }
1526
- function We(t) {
1527
- return We = Object.setPrototypeOf ? Object.getPrototypeOf : function(r) {
1528
- return r.__proto__ || Object.getPrototypeOf(r);
1529
- }, We(t);
1530
- }
1531
- function xi() {
1532
- if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1533
- return !1;
1534
- if (typeof Proxy == "function")
1535
- return !0;
1536
- try {
1537
- return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1538
- })), !0;
1539
- } catch {
1540
- return !1;
1541
- }
1542
- }
1543
- function Ei(t) {
1544
- if (t === void 0)
1545
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1546
- return t;
1547
- }
1548
- function Gi(t, e) {
1549
- return e && (typeof e == "object" || typeof e == "function") ? e : Ei(t);
1550
- }
1551
- function Bt(t) {
1552
- var e = xi();
1553
- return function() {
1554
- var a = We(t), n;
1555
- if (e) {
1556
- var i = We(this).constructor;
1557
- n = Reflect.construct(a, arguments, i);
1558
- } else
1559
- n = a.apply(this, arguments);
1560
- return Gi(this, n);
1561
- };
1562
- }
1563
- var Si = ["className", "clearValue", "cx", "getStyles", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], De = function() {
1564
- };
1565
- function Bi(t, e) {
1566
- return e ? e[0] === "-" ? t + e : t + "__" + e : t;
1567
- }
1568
- function Ni(t, e, r) {
1569
- var a = [r];
1570
- if (e && t)
1571
- for (var n in e)
1572
- e.hasOwnProperty(n) && e[n] && a.push("".concat(Bi(t, n)));
1573
- return a.filter(function(i) {
1574
- return i;
1575
- }).map(function(i) {
1576
- return String(i).trim();
1577
- }).join(" ");
1578
- }
1579
- var Ut = function(e) {
1580
- return Oi(e) ? e.filter(Boolean) : pe(e) === "object" && e !== null ? [e] : [];
1581
- }, Fn = function(e) {
1582
- e.className, e.clearValue, e.cx, e.getStyles, e.getValue, e.hasValue, e.isMulti, e.isRtl, e.options, e.selectOption, e.selectProps, e.setValue, e.theme;
1583
- var r = Ie(e, Si);
1584
- return w({}, r);
1585
- };
1586
- function Nt(t) {
1587
- return [document.documentElement, document.body, window].indexOf(t) > -1;
1588
- }
1589
- function Rn(t) {
1590
- return Nt(t) ? window.pageYOffset : t.scrollTop;
1591
- }
1592
- function He(t, e) {
1593
- if (Nt(t)) {
1594
- window.scrollTo(0, e);
1595
- return;
1596
- }
1597
- t.scrollTop = e;
1598
- }
1599
- function Vi(t) {
1600
- var e = getComputedStyle(t), r = e.position === "absolute", a = /(auto|scroll)/;
1601
- if (e.position === "fixed")
1602
- return document.documentElement;
1603
- for (var n = t; n = n.parentElement; )
1604
- if (e = getComputedStyle(n), !(r && e.position === "static") && a.test(e.overflow + e.overflowY + e.overflowX))
1605
- return n;
1606
- return document.documentElement;
1607
- }
1608
- function Fi(t, e, r, a) {
1609
- return r * ((t = t / a - 1) * t * t + 1) + e;
1610
- }
1611
- function Re(t, e) {
1612
- var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : De, n = Rn(t), i = e - n, u = 10, o = 0;
1613
- function s() {
1614
- o += u;
1615
- var c = Fi(o, n, i, r);
1616
- He(t, c), o < r ? window.requestAnimationFrame(s) : a(t);
1617
- }
1618
- s();
1619
- }
1620
- function Ri(t, e) {
1621
- var r = t.getBoundingClientRect(), a = e.getBoundingClientRect(), n = e.offsetHeight / 3;
1622
- a.bottom + n > r.bottom ? He(t, Math.min(e.offsetTop + e.clientHeight - t.offsetHeight + n, t.scrollHeight)) : a.top - n < r.top && He(t, Math.max(e.offsetTop - n, 0));
1623
- }
1624
- function Pi(t) {
1625
- var e = t.getBoundingClientRect();
1626
- return {
1627
- bottom: e.bottom,
1628
- height: e.height,
1629
- left: e.left,
1630
- right: e.right,
1631
- top: e.top,
1632
- width: e.width
1633
- };
1634
- }
1635
- function _t() {
1636
- try {
1637
- return document.createEvent("TouchEvent"), !0;
1638
- } catch {
1639
- return !1;
1640
- }
1641
- }
1642
- function wi() {
1643
- try {
1644
- return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
1645
- } catch {
1646
- return !1;
1647
- }
1648
- }
1649
- var Pn = !1, Xi = {
1650
- get passive() {
1651
- return Pn = !0;
1652
- }
1653
- }, Pe = typeof window < "u" ? window : {};
1654
- Pe.addEventListener && Pe.removeEventListener && (Pe.addEventListener("p", De, Xi), Pe.removeEventListener("p", De, !1));
1655
- var Ti = Pn;
1656
- function Zi(t) {
1657
- return t != null;
1658
- }
1659
- function Oi(t) {
1660
- return Array.isArray(t);
1661
- }
1662
- function we(t, e, r) {
1663
- return t ? e : r;
1664
- }
1665
- function Mi(t) {
1666
- var e = t.maxHeight, r = t.menuEl, a = t.minHeight, n = t.placement, i = t.shouldScroll, u = t.isFixedPosition, o = t.theme, s = o.spacing, c = Vi(r), l = {
1667
- placement: "bottom",
1668
- maxHeight: e
1669
- };
1670
- if (!r || !r.offsetParent)
1671
- return l;
1672
- var d = c.getBoundingClientRect(), v = d.height, m = r.getBoundingClientRect(), f = m.bottom, p = m.height, g = m.top, I = r.offsetParent.getBoundingClientRect(), h = I.top, y = window.innerHeight, E = Rn(c), b = parseInt(getComputedStyle(r).marginBottom, 10), B = parseInt(getComputedStyle(r).marginTop, 10), A = h - B, P = y - g, X = A + E, z = v - E - g, J = f - y + E + b, j = E + g - B, D = 160;
1673
- switch (n) {
1674
- case "auto":
1675
- case "bottom":
1676
- if (P >= p)
1677
- return {
1678
- placement: "bottom",
1679
- maxHeight: e
1680
- };
1681
- if (z >= p && !u)
1682
- return i && Re(c, J, D), {
1683
- placement: "bottom",
1684
- maxHeight: e
1685
- };
1686
- if (!u && z >= a || u && P >= a) {
1687
- i && Re(c, J, D);
1688
- var O = u ? P - b : z - b;
1689
- return {
1690
- placement: "bottom",
1691
- maxHeight: O
1692
- };
1693
- }
1694
- if (n === "auto" || u) {
1695
- var T = e, U = u ? A : X;
1696
- return U >= a && (T = Math.min(U - b - s.controlHeight, e)), {
1697
- placement: "top",
1698
- maxHeight: T
1699
- };
1700
- }
1701
- if (n === "bottom")
1702
- return i && He(c, J), {
1703
- placement: "bottom",
1704
- maxHeight: e
1705
- };
1706
- break;
1707
- case "top":
1708
- if (A >= p)
1709
- return {
1710
- placement: "top",
1711
- maxHeight: e
1712
- };
1713
- if (X >= p && !u)
1714
- return i && Re(c, j, D), {
1715
- placement: "top",
1716
- maxHeight: e
1717
- };
1718
- if (!u && X >= a || u && A >= a) {
1719
- var Y = e;
1720
- return (!u && X >= a || u && A >= a) && (Y = u ? A - B : X - B), i && Re(c, j, D), {
1721
- placement: "top",
1722
- maxHeight: Y
1723
- };
1724
- }
1725
- return {
1726
- placement: "bottom",
1727
- maxHeight: e
1728
- };
1729
- default:
1730
- throw new Error('Invalid placement provided "'.concat(n, '".'));
1731
- }
1732
- return l;
1733
- }
1734
- function Wi(t) {
1735
- var e = {
1736
- bottom: "top",
1737
- top: "bottom"
1738
- };
1739
- return t ? e[t] : "bottom";
1740
- }
1741
- var ct = function(e) {
1742
- return e === "auto" ? "bottom" : e;
1743
- }, Di = function(e) {
1744
- var r, a = e.placement, n = e.theme, i = n.borderRadius, u = n.spacing, o = n.colors;
1745
- return r = {
1746
- label: "menu"
1747
- }, se(r, Wi(a), "100%"), se(r, "backgroundColor", o.neutral0), se(r, "borderRadius", i), se(r, "boxShadow", "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"), se(r, "marginBottom", u.menuGutter), se(r, "marginTop", u.menuGutter), se(r, "position", "absolute"), se(r, "width", "100%"), se(r, "zIndex", 1), r;
1748
- }, wn = /* @__PURE__ */ ir({
1749
- getPortalPlacement: null
1750
- }), Xn = /* @__PURE__ */ function(t) {
1751
- St(r, t);
1752
- var e = Bt(r);
1753
- function r() {
1754
- var a;
1755
- Et(this, r);
1756
- for (var n = arguments.length, i = new Array(n), u = 0; u < n; u++)
1757
- i[u] = arguments[u];
1758
- return a = e.call.apply(e, [this].concat(i)), a.state = {
1759
- maxHeight: a.props.maxMenuHeight,
1760
- placement: null
1761
- }, a.context = void 0, a.getPlacement = function(o) {
1762
- var s = a.props, c = s.minMenuHeight, l = s.maxMenuHeight, d = s.menuPlacement, v = s.menuPosition, m = s.menuShouldScrollIntoView, f = s.theme;
1763
- if (o) {
1764
- var p = v === "fixed", g = m && !p, I = Mi({
1765
- maxHeight: l,
1766
- menuEl: o,
1767
- minHeight: c,
1768
- placement: d,
1769
- shouldScroll: g,
1770
- isFixedPosition: p,
1771
- theme: f
1772
- }), h = a.context.getPortalPlacement;
1773
- h && h(I), a.setState(I);
1774
- }
1775
- }, a.getUpdatedProps = function() {
1776
- var o = a.props.menuPlacement, s = a.state.placement || ct(o);
1777
- return w(w({}, a.props), {}, {
1778
- placement: s,
1779
- maxHeight: a.state.maxHeight
1780
- });
1781
- }, a;
1782
- }
1783
- return Gt(r, [{
1784
- key: "render",
1785
- value: function() {
1786
- var n = this.props.children;
1787
- return n({
1788
- ref: this.getPlacement,
1789
- placerProps: this.getUpdatedProps()
1790
- });
1791
- }
1792
- }]), r;
1793
- }(gt);
1794
- Xn.contextType = wn;
1795
- var Hi = function(e) {
1796
- var r = e.children, a = e.className, n = e.cx, i = e.getStyles, u = e.innerRef, o = e.innerProps;
1797
- return x("div", S({
1798
- css: i("menu", e),
1799
- className: n({
1800
- menu: !0
1801
- }, a),
1802
- ref: u
1803
- }, o), r);
1804
- }, Li = function(e) {
1805
- var r = e.maxHeight, a = e.theme.spacing.baseUnit;
1806
- return {
1807
- maxHeight: r,
1808
- overflowY: "auto",
1809
- paddingBottom: a,
1810
- paddingTop: a,
1811
- position: "relative",
1812
- // required for offset[Height, Top] > keyboard scroll
1813
- WebkitOverflowScrolling: "touch"
1814
- };
1815
- }, Yi = function(e) {
1816
- var r = e.children, a = e.className, n = e.cx, i = e.getStyles, u = e.innerProps, o = e.innerRef, s = e.isMulti;
1817
- return x("div", S({
1818
- css: i("menuList", e),
1819
- className: n({
1820
- "menu-list": !0,
1821
- "menu-list--is-multi": s
1822
- }, a),
1823
- ref: o
1824
- }, u), r);
1825
- }, Tn = function(e) {
1826
- var r = e.theme, a = r.spacing.baseUnit, n = r.colors;
1827
- return {
1828
- color: n.neutral40,
1829
- padding: "".concat(a * 2, "px ").concat(a * 3, "px"),
1830
- textAlign: "center"
1831
- };
1832
- }, zi = Tn, ji = Tn, Zn = function(e) {
1833
- var r = e.children, a = e.className, n = e.cx, i = e.getStyles, u = e.innerProps;
1834
- return x("div", S({
1835
- css: i("noOptionsMessage", e),
1836
- className: n({
1837
- "menu-notice": !0,
1838
- "menu-notice--no-options": !0
1839
- }, a)
1840
- }, u), r);
1841
- };
1842
- Zn.defaultProps = {
1843
- children: "No options"
1844
- };
1845
- var On = function(e) {
1846
- var r = e.children, a = e.className, n = e.cx, i = e.getStyles, u = e.innerProps;
1847
- return x("div", S({
1848
- css: i("loadingMessage", e),
1849
- className: n({
1850
- "menu-notice": !0,
1851
- "menu-notice--loading": !0
1852
- }, a)
1853
- }, u), r);
1854
- };
1855
- On.defaultProps = {
1856
- children: "Loading..."
1857
- };
1858
- var ki = function(e) {
1859
- var r = e.rect, a = e.offset, n = e.position;
1860
- return {
1861
- left: r.left,
1862
- position: n,
1863
- top: a,
1864
- width: r.width,
1865
- zIndex: 1
1866
- };
1867
- }, Ji = /* @__PURE__ */ function(t) {
1868
- St(r, t);
1869
- var e = Bt(r);
1870
- function r() {
1871
- var a;
1872
- Et(this, r);
1873
- for (var n = arguments.length, i = new Array(n), u = 0; u < n; u++)
1874
- i[u] = arguments[u];
1875
- return a = e.call.apply(e, [this].concat(i)), a.state = {
1876
- placement: null
1877
- }, a.getPortalPlacement = function(o) {
1878
- var s = o.placement, c = ct(a.props.menuPlacement);
1879
- s !== c && a.setState({
1880
- placement: s
1881
- });
1882
- }, a;
1883
- }
1884
- return Gt(r, [{
1885
- key: "render",
1886
- value: function() {
1887
- var n = this.props, i = n.appendTo, u = n.children, o = n.className, s = n.controlElement, c = n.cx, l = n.innerProps, d = n.menuPlacement, v = n.menuPosition, m = n.getStyles, f = v === "fixed";
1888
- if (!i && !f || !s)
1889
- return null;
1890
- var p = this.state.placement || ct(d), g = Pi(s), I = f ? 0 : window.pageYOffset, h = g[p] + I, y = {
1891
- offset: h,
1892
- position: v,
1893
- rect: g
1894
- }, E = x("div", S({
1895
- css: m("menuPortal", y),
1896
- className: c({
1897
- "menu-portal": !0
1898
- }, o)
1899
- }, l), u);
1900
- return x(wn.Provider, {
1901
- value: {
1902
- getPortalPlacement: this.getPortalPlacement
1903
- }
1904
- }, i ? /* @__PURE__ */ ar(E, i) : E);
1905
- }
1906
- }]), r;
1907
- }(gt), Ui = function(e) {
1908
- var r = e.isDisabled, a = e.isRtl;
1909
- return {
1910
- label: "container",
1911
- direction: a ? "rtl" : void 0,
1912
- pointerEvents: r ? "none" : void 0,
1913
- // cancel mouse events when disabled
1914
- position: "relative"
1915
- };
1916
- }, _i = function(e) {
1917
- var r = e.children, a = e.className, n = e.cx, i = e.getStyles, u = e.innerProps, o = e.isDisabled, s = e.isRtl;
1918
- return x("div", S({
1919
- css: i("container", e),
1920
- className: n({
1921
- "--is-disabled": o,
1922
- "--is-rtl": s
1923
- }, a)
1924
- }, u), r);
1925
- }, Qi = function(e) {
1926
- var r = e.theme.spacing, a = e.isMulti, n = e.hasValue, i = e.selectProps.controlShouldRenderValue;
1927
- return {
1928
- alignItems: "center",
1929
- display: a && n && i ? "flex" : "grid",
1930
- flex: 1,
1931
- flexWrap: "wrap",
1932
- padding: "".concat(r.baseUnit / 2, "px ").concat(r.baseUnit * 2, "px"),
1933
- WebkitOverflowScrolling: "touch",
1934
- position: "relative",
1935
- overflow: "hidden"
1936
- };
1937
- }, $i = function(e) {
1938
- var r = e.children, a = e.className, n = e.cx, i = e.innerProps, u = e.isMulti, o = e.getStyles, s = e.hasValue;
1939
- return x("div", S({
1940
- css: o("valueContainer", e),
1941
- className: n({
1942
- "value-container": !0,
1943
- "value-container--is-multi": u,
1944
- "value-container--has-value": s
1945
- }, a)
1946
- }, i), r);
1947
- }, Ki = function() {
1948
- return {
1949
- alignItems: "center",
1950
- alignSelf: "stretch",
1951
- display: "flex",
1952
- flexShrink: 0
1953
- };
1954
- }, qi = function(e) {
1955
- var r = e.children, a = e.className, n = e.cx, i = e.innerProps, u = e.getStyles;
1956
- return x("div", S({
1957
- css: u("indicatorsContainer", e),
1958
- className: n({
1959
- indicators: !0
1960
- }, a)
1961
- }, i), r);
1962
- }, Qt, ea = ["size"];
1963
- function ta() {
1964
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
1965
- }
1966
- var na = process.env.NODE_ENV === "production" ? {
1967
- name: "8mmkcg",
1968
- styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"
1969
- } : {
1970
- name: "tj5bde-Svg",
1971
- styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
1972
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2Vz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bmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5Mb2FkaW5nSW5kaWNhdG9yLmRlZmF1bHRQcm9wcyA9IHsgc2l6ZTogNCB9O1xuIl19 */",
1973
- toString: ta
1974
- }, Mn = function(e) {
1975
- var r = e.size, a = Ie(e, ea);
1976
- return x("svg", S({
1977
- height: r,
1978
- width: r,
1979
- viewBox: "0 0 20 20",
1980
- "aria-hidden": "true",
1981
- focusable: "false",
1982
- css: na
1983
- }, a));
1984
- }, Vt = function(e) {
1985
- return x(Mn, S({
1986
- size: 20
1987
- }, e), x("path", {
1988
- d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
1989
- }));
1990
- }, Wn = function(e) {
1991
- return x(Mn, S({
1992
- size: 20
1993
- }, e), x("path", {
1994
- d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
1995
- }));
1996
- }, Dn = function(e) {
1997
- var r = e.isFocused, a = e.theme, n = a.spacing.baseUnit, i = a.colors;
1998
- return {
1999
- label: "indicatorContainer",
2000
- color: r ? i.neutral60 : i.neutral20,
2001
- display: "flex",
2002
- padding: n * 2,
2003
- transition: "color 150ms",
2004
- ":hover": {
2005
- color: r ? i.neutral80 : i.neutral40
2006
- }
2007
- };
2008
- }, ra = Dn, ia = function(e) {
2009
- var r = e.children, a = e.className, n = e.cx, i = e.getStyles, u = e.innerProps;
2010
- return x("div", S({
2011
- css: i("dropdownIndicator", e),
2012
- className: n({
2013
- indicator: !0,
2014
- "dropdown-indicator": !0
2015
- }, a)
2016
- }, u), r || x(Wn, null));
2017
- }, aa = Dn, ua = function(e) {
2018
- var r = e.children, a = e.className, n = e.cx, i = e.getStyles, u = e.innerProps;
2019
- return x("div", S({
2020
- css: i("clearIndicator", e),
2021
- className: n({
2022
- indicator: !0,
2023
- "clear-indicator": !0
2024
- }, a)
2025
- }, u), r || x(Vt, null));
2026
- }, oa = function(e) {
2027
- var r = e.isDisabled, a = e.theme, n = a.spacing.baseUnit, i = a.colors;
2028
- return {
2029
- label: "indicatorSeparator",
2030
- alignSelf: "stretch",
2031
- backgroundColor: r ? i.neutral10 : i.neutral20,
2032
- marginBottom: n * 2,
2033
- marginTop: n * 2,
2034
- width: 1
2035
- };
2036
- }, sa = function(e) {
2037
- var r = e.className, a = e.cx, n = e.getStyles, i = e.innerProps;
2038
- return x("span", S({}, i, {
2039
- css: n("indicatorSeparator", e),
2040
- className: a({
2041
- "indicator-separator": !0
2042
- }, r)
2043
- }));
2044
- }, ca = bi(Qt || (Qt = hi([`
2045
- 0%, 80%, 100% { opacity: 0; }
2046
- 40% { opacity: 1; }
2047
- `]))), la = function(e) {
2048
- var r = e.isFocused, a = e.size, n = e.theme, i = n.colors, u = n.spacing.baseUnit;
2049
- return {
2050
- label: "loadingIndicator",
2051
- color: r ? i.neutral60 : i.neutral20,
2052
- display: "flex",
2053
- padding: u * 2,
2054
- transition: "color 150ms",
2055
- alignSelf: "center",
2056
- fontSize: a,
2057
- lineHeight: 1,
2058
- marginRight: a,
2059
- textAlign: "center",
2060
- verticalAlign: "middle"
2061
- };
2062
- }, Qe = function(e) {
2063
- var r = e.delay, a = e.offset;
2064
- return x("span", {
2065
- css: /* @__PURE__ */ xt({
2066
- animation: "".concat(ca, " 1s ease-in-out ").concat(r, "ms infinite;"),
2067
- backgroundColor: "currentColor",
2068
- borderRadius: "1em",
2069
- display: "inline-block",
2070
- marginLeft: a ? "1em" : void 0,
2071
- height: "1em",
2072
- verticalAlign: "top",
2073
- width: "1em"
2074
- }, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFQSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBh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ZXRTdHlsZXMoJ2xvYWRpbmdJbmRpY2F0b3InLCBwcm9wcyl9XG4gICAgICBjbGFzc05hbWU9e2N4KFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH0sXG4gICAgICAgIGNsYXNzTmFtZVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5Mb2FkaW5nSW5kaWNhdG9yLmRlZmF1bHRQcm9wcyA9IHsgc2l6ZTogNCB9O1xuIl19 */")
2075
- });
2076
- }, Hn = function(e) {
2077
- var r = e.className, a = e.cx, n = e.getStyles, i = e.innerProps, u = e.isRtl;
2078
- return x("div", S({
2079
- css: n("loadingIndicator", e),
2080
- className: a({
2081
- indicator: !0,
2082
- "loading-indicator": !0
2083
- }, r)
2084
- }, i), x(Qe, {
2085
- delay: 0,
2086
- offset: u
2087
- }), x(Qe, {
2088
- delay: 160,
2089
- offset: !0
2090
- }), x(Qe, {
2091
- delay: 320,
2092
- offset: !u
2093
- }));
2094
- };
2095
- Hn.defaultProps = {
2096
- size: 4
2097
- };
2098
- var da = function(e) {
2099
- var r = e.isDisabled, a = e.isFocused, n = e.theme, i = n.colors, u = n.borderRadius, o = n.spacing;
2100
- return {
2101
- label: "control",
2102
- alignItems: "center",
2103
- backgroundColor: r ? i.neutral5 : i.neutral0,
2104
- borderColor: r ? i.neutral10 : a ? i.primary : i.neutral20,
2105
- borderRadius: u,
2106
- borderStyle: "solid",
2107
- borderWidth: 1,
2108
- boxShadow: a ? "0 0 0 1px ".concat(i.primary) : void 0,
2109
- cursor: "default",
2110
- display: "flex",
2111
- flexWrap: "wrap",
2112
- justifyContent: "space-between",
2113
- minHeight: o.controlHeight,
2114
- outline: "0 !important",
2115
- position: "relative",
2116
- transition: "all 100ms",
2117
- "&:hover": {
2118
- borderColor: a ? i.primary : i.neutral30
2119
- }
2120
- };
2121
- }, ga = function(e) {
2122
- var r = e.children, a = e.cx, n = e.getStyles, i = e.className, u = e.isDisabled, o = e.isFocused, s = e.innerRef, c = e.innerProps, l = e.menuIsOpen;
2123
- return x("div", S({
2124
- ref: s,
2125
- css: n("control", e),
2126
- className: a({
2127
- control: !0,
2128
- "control--is-disabled": u,
2129
- "control--is-focused": o,
2130
- "control--menu-is-open": l
2131
- }, i)
2132
- }, c), r);
2133
- }, ba = ["data"], fa = function(e) {
2134
- var r = e.theme.spacing;
2135
- return {
2136
- paddingBottom: r.baseUnit * 2,
2137
- paddingTop: r.baseUnit * 2
2138
- };
2139
- }, ma = function(e) {
2140
- var r = e.children, a = e.className, n = e.cx, i = e.getStyles, u = e.Heading, o = e.headingProps, s = e.innerProps, c = e.label, l = e.theme, d = e.selectProps;
2141
- return x("div", S({
2142
- css: i("group", e),
2143
- className: n({
2144
- group: !0
2145
- }, a)
2146
- }, s), x(u, S({}, o, {
2147
- selectProps: d,
2148
- theme: l,
2149
- getStyles: i,
2150
- cx: n
2151
- }), c), x("div", null, r));
2152
- }, pa = function(e) {
2153
- var r = e.theme.spacing;
2154
- return {
2155
- label: "group",
2156
- color: "#999",
2157
- cursor: "default",
2158
- display: "block",
2159
- fontSize: "75%",
2160
- fontWeight: 500,
2161
- marginBottom: "0.25em",
2162
- paddingLeft: r.baseUnit * 3,
2163
- paddingRight: r.baseUnit * 3,
2164
- textTransform: "uppercase"
2165
- };
2166
- }, va = function(e) {
2167
- var r = e.getStyles, a = e.cx, n = e.className, i = Fn(e);
2168
- i.data;
2169
- var u = Ie(i, ba);
2170
- return x("div", S({
2171
- css: r("groupHeading", e),
2172
- className: a({
2173
- "group-heading": !0
2174
- }, n)
2175
- }, u));
2176
- }, Ia = ["innerRef", "isDisabled", "isHidden", "inputClassName"], ha = function(e) {
2177
- var r = e.isDisabled, a = e.value, n = e.theme, i = n.spacing, u = n.colors;
2178
- return w({
2179
- margin: i.baseUnit / 2,
2180
- paddingBottom: i.baseUnit / 2,
2181
- paddingTop: i.baseUnit / 2,
2182
- visibility: r ? "hidden" : "visible",
2183
- color: u.neutral80,
2184
- // force css to recompute when value change due to @emotion bug.
2185
- // We can remove it whenever the bug is fixed.
2186
- transform: a ? "translateZ(0)" : ""
2187
- }, Ca);
2188
- }, Ln = {
2189
- gridArea: "1 / 2",
2190
- font: "inherit",
2191
- minWidth: "2px",
2192
- border: 0,
2193
- margin: 0,
2194
- outline: 0,
2195
- padding: 0
2196
- }, Ca = {
2197
- flex: "1 1 auto",
2198
- display: "inline-grid",
2199
- gridArea: "1 / 1 / 2 / 3",
2200
- gridTemplateColumns: "0 min-content",
2201
- "&:after": w({
2202
- content: 'attr(data-value) " "',
2203
- visibility: "hidden",
2204
- whiteSpace: "pre"
2205
- }, Ln)
2206
- }, ya = function(e) {
2207
- return w({
2208
- label: "input",
2209
- color: "inherit",
2210
- background: 0,
2211
- opacity: e ? 0 : 1,
2212
- width: "100%"
2213
- }, Ln);
2214
- }, Aa = function(e) {
2215
- var r = e.className, a = e.cx, n = e.getStyles, i = e.value, u = Fn(e), o = u.innerRef, s = u.isDisabled, c = u.isHidden, l = u.inputClassName, d = Ie(u, Ia);
2216
- return x("div", {
2217
- className: a({
2218
- "input-container": !0
2219
- }, r),
2220
- css: n("input", e),
2221
- "data-value": i || ""
2222
- }, x("input", S({
2223
- className: a({
2224
- input: !0
2225
- }, l),
2226
- ref: o,
2227
- style: ya(c),
2228
- disabled: s
2229
- }, d)));
2230
- }, xa = function(e) {
2231
- var r = e.theme, a = r.spacing, n = r.borderRadius, i = r.colors;
2232
- return {
2233
- label: "multiValue",
2234
- backgroundColor: i.neutral10,
2235
- borderRadius: n / 2,
2236
- display: "flex",
2237
- margin: a.baseUnit / 2,
2238
- minWidth: 0
2239
- // resolves flex/text-overflow bug
2240
- };
2241
- }, Ea = function(e) {
2242
- var r = e.theme, a = r.borderRadius, n = r.colors, i = e.cropWithEllipsis;
2243
- return {
2244
- borderRadius: a / 2,
2245
- color: n.neutral80,
2246
- fontSize: "85%",
2247
- overflow: "hidden",
2248
- padding: 3,
2249
- paddingLeft: 6,
2250
- textOverflow: i || i === void 0 ? "ellipsis" : void 0,
2251
- whiteSpace: "nowrap"
2252
- };
2253
- }, Ga = function(e) {
2254
- var r = e.theme, a = r.spacing, n = r.borderRadius, i = r.colors, u = e.isFocused;
2255
- return {
2256
- alignItems: "center",
2257
- borderRadius: n / 2,
2258
- backgroundColor: u ? i.dangerLight : void 0,
2259
- display: "flex",
2260
- paddingLeft: a.baseUnit,
2261
- paddingRight: a.baseUnit,
2262
- ":hover": {
2263
- backgroundColor: i.dangerLight,
2264
- color: i.danger
2265
- }
2266
- };
2267
- }, Yn = function(e) {
2268
- var r = e.children, a = e.innerProps;
2269
- return x("div", a, r);
2270
- }, Sa = Yn, Ba = Yn;
2271
- function Na(t) {
2272
- var e = t.children, r = t.innerProps;
2273
- return x("div", S({
2274
- role: "button"
2275
- }, r), e || x(Vt, {
2276
- size: 14
2277
- }));
2278
- }
2279
- var Va = function(e) {
2280
- var r = e.children, a = e.className, n = e.components, i = e.cx, u = e.data, o = e.getStyles, s = e.innerProps, c = e.isDisabled, l = e.removeProps, d = e.selectProps, v = n.Container, m = n.Label, f = n.Remove;
2281
- return x(Nn, null, function(p) {
2282
- var g = p.css, I = p.cx;
2283
- return x(v, {
2284
- data: u,
2285
- innerProps: w({
2286
- className: I(g(o("multiValue", e)), i({
2287
- "multi-value": !0,
2288
- "multi-value--is-disabled": c
2289
- }, a))
2290
- }, s),
2291
- selectProps: d
2292
- }, x(m, {
2293
- data: u,
2294
- innerProps: {
2295
- className: I(g(o("multiValueLabel", e)), i({
2296
- "multi-value__label": !0
2297
- }, a))
2298
- },
2299
- selectProps: d
2300
- }, r), x(f, {
2301
- data: u,
2302
- innerProps: w({
2303
- className: I(g(o("multiValueRemove", e)), i({
2304
- "multi-value__remove": !0
2305
- }, a)),
2306
- "aria-label": "Remove ".concat(r || "option")
2307
- }, l),
2308
- selectProps: d
2309
- }));
2310
- });
2311
- }, Fa = function(e) {
2312
- var r = e.isDisabled, a = e.isFocused, n = e.isSelected, i = e.theme, u = i.spacing, o = i.colors;
2313
- return {
2314
- label: "option",
2315
- backgroundColor: n ? o.primary : a ? o.primary25 : "transparent",
2316
- color: r ? o.neutral20 : n ? o.neutral0 : "inherit",
2317
- cursor: "default",
2318
- display: "block",
2319
- fontSize: "inherit",
2320
- padding: "".concat(u.baseUnit * 2, "px ").concat(u.baseUnit * 3, "px"),
2321
- width: "100%",
2322
- userSelect: "none",
2323
- WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
2324
- // provide some affordance on touch devices
2325
- ":active": {
2326
- backgroundColor: r ? void 0 : n ? o.primary : o.primary50
2327
- }
2328
- };
2329
- }, Ra = function(e) {
2330
- var r = e.children, a = e.className, n = e.cx, i = e.getStyles, u = e.isDisabled, o = e.isFocused, s = e.isSelected, c = e.innerRef, l = e.innerProps;
2331
- return x("div", S({
2332
- css: i("option", e),
2333
- className: n({
2334
- option: !0,
2335
- "option--is-disabled": u,
2336
- "option--is-focused": o,
2337
- "option--is-selected": s
2338
- }, a),
2339
- ref: c,
2340
- "aria-disabled": u
2341
- }, l), r);
2342
- }, Pa = function(e) {
2343
- var r = e.theme, a = r.spacing, n = r.colors;
2344
- return {
2345
- label: "placeholder",
2346
- color: n.neutral50,
2347
- gridArea: "1 / 1 / 2 / 3",
2348
- marginLeft: a.baseUnit / 2,
2349
- marginRight: a.baseUnit / 2
2350
- };
2351
- }, wa = function(e) {
2352
- var r = e.children, a = e.className, n = e.cx, i = e.getStyles, u = e.innerProps;
2353
- return x("div", S({
2354
- css: i("placeholder", e),
2355
- className: n({
2356
- placeholder: !0
2357
- }, a)
2358
- }, u), r);
2359
- }, Xa = function(e) {
2360
- var r = e.isDisabled, a = e.theme, n = a.spacing, i = a.colors;
2361
- return {
2362
- label: "singleValue",
2363
- color: r ? i.neutral40 : i.neutral80,
2364
- gridArea: "1 / 1 / 2 / 3",
2365
- marginLeft: n.baseUnit / 2,
2366
- marginRight: n.baseUnit / 2,
2367
- maxWidth: "100%",
2368
- overflow: "hidden",
2369
- textOverflow: "ellipsis",
2370
- whiteSpace: "nowrap"
2371
- };
2372
- }, Ta = function(e) {
2373
- var r = e.children, a = e.className, n = e.cx, i = e.getStyles, u = e.isDisabled, o = e.innerProps;
2374
- return x("div", S({
2375
- css: i("singleValue", e),
2376
- className: n({
2377
- "single-value": !0,
2378
- "single-value--is-disabled": u
2379
- }, a)
2380
- }, o), r);
2381
- }, Za = {
2382
- ClearIndicator: ua,
2383
- Control: ga,
2384
- DropdownIndicator: ia,
2385
- DownChevron: Wn,
2386
- CrossIcon: Vt,
2387
- Group: ma,
2388
- GroupHeading: va,
2389
- IndicatorsContainer: qi,
2390
- IndicatorSeparator: sa,
2391
- Input: Aa,
2392
- LoadingIndicator: Hn,
2393
- Menu: Hi,
2394
- MenuList: Yi,
2395
- MenuPortal: Ji,
2396
- LoadingMessage: On,
2397
- NoOptionsMessage: Zn,
2398
- MultiValue: Va,
2399
- MultiValueContainer: Sa,
2400
- MultiValueLabel: Ba,
2401
- MultiValueRemove: Na,
2402
- Option: Ra,
2403
- Placeholder: wa,
2404
- SelectContainer: _i,
2405
- SingleValue: Ta,
2406
- ValueContainer: $i
2407
- }, Oa = function(e) {
2408
- return w(w({}, Za), e.components);
2409
- };
2410
- function Ma(t) {
2411
- if (Array.isArray(t))
2412
- return t;
2413
- }
2414
- function Wa(t, e) {
2415
- var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
2416
- if (r != null) {
2417
- var a, n, i, u, o = [], s = !0, c = !1;
2418
- try {
2419
- if (i = (r = r.call(t)).next, e === 0) {
2420
- if (Object(r) !== r)
2421
- return;
2422
- s = !1;
2423
- } else
2424
- for (; !(s = (a = i.call(r)).done) && (o.push(a.value), o.length !== e); s = !0)
2425
- ;
2426
- } catch (l) {
2427
- c = !0, n = l;
2428
- } finally {
2429
- try {
2430
- if (!s && r.return != null && (u = r.return(), Object(u) !== u))
2431
- return;
2432
- } finally {
2433
- if (c)
2434
- throw n;
2435
- }
2436
- }
2437
- return o;
2438
- }
2439
- }
2440
- function lt(t, e) {
2441
- (e == null || e > t.length) && (e = t.length);
2442
- for (var r = 0, a = new Array(e); r < e; r++)
2443
- a[r] = t[r];
2444
- return a;
2445
- }
2446
- function zn(t, e) {
2447
- if (t) {
2448
- if (typeof t == "string")
2449
- return lt(t, e);
2450
- var r = Object.prototype.toString.call(t).slice(8, -1);
2451
- if (r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set")
2452
- return Array.from(t);
2453
- if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
2454
- return lt(t, e);
2455
- }
2456
- }
2457
- function Da() {
2458
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2459
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2460
- }
2461
- function $e(t, e) {
2462
- return Ma(t) || Wa(t, e) || zn(t, e) || Da();
2463
- }
2464
- var Ha = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
2465
- function La(t) {
2466
- var e = t.defaultInputValue, r = e === void 0 ? "" : e, a = t.defaultMenuIsOpen, n = a === void 0 ? !1 : a, i = t.defaultValue, u = i === void 0 ? null : i, o = t.inputValue, s = t.menuIsOpen, c = t.onChange, l = t.onInputChange, d = t.onMenuClose, v = t.onMenuOpen, m = t.value, f = Ie(t, Ha), p = Ue(o !== void 0 ? o : r), g = $e(p, 2), I = g[0], h = g[1], y = Ue(s !== void 0 ? s : n), E = $e(y, 2), b = E[0], B = E[1], A = Ue(m !== void 0 ? m : u), P = $e(A, 2), X = P[0], z = P[1], J = q(function(_, ne) {
2467
- typeof c == "function" && c(_, ne), z(_);
2468
- }, [c]), j = q(function(_, ne) {
2469
- var ee;
2470
- typeof l == "function" && (ee = l(_, ne)), h(ee !== void 0 ? ee : _);
2471
- }, [l]), D = q(function() {
2472
- typeof v == "function" && v(), B(!0);
2473
- }, [v]), O = q(function() {
2474
- typeof d == "function" && d(), B(!1);
2475
- }, [d]), T = o !== void 0 ? o : I, U = s !== void 0 ? s : b, Y = m !== void 0 ? m : X;
2476
- return w(w({}, f), {}, {
2477
- inputValue: T,
2478
- menuIsOpen: U,
2479
- onChange: J,
2480
- onInputChange: j,
2481
- onMenuClose: O,
2482
- onMenuOpen: D,
2483
- value: Y
2484
- });
2485
- }
2486
- function Ya(t) {
2487
- if (Array.isArray(t))
2488
- return lt(t);
2489
- }
2490
- function za(t) {
2491
- if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null)
2492
- return Array.from(t);
2493
- }
2494
- function ja() {
2495
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
2496
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2497
- }
2498
- function jn(t) {
2499
- return Ya(t) || za(t) || zn(t) || ja();
2500
- }
2501
- var $t = Number.isNaN || function(e) {
2502
- return typeof e == "number" && e !== e;
2503
- };
2504
- function ka(t, e) {
2505
- return !!(t === e || $t(t) && $t(e));
2506
- }
2507
- function Ja(t, e) {
2508
- if (t.length !== e.length)
2509
- return !1;
2510
- for (var r = 0; r < t.length; r++)
2511
- if (!ka(t[r], e[r]))
2512
- return !1;
2513
- return !0;
2514
- }
2515
- function Ua(t, e) {
2516
- e === void 0 && (e = Ja);
2517
- var r, a = [], n, i = !1;
2518
- function u() {
2519
- for (var o = [], s = 0; s < arguments.length; s++)
2520
- o[s] = arguments[s];
2521
- return i && r === this && e(o, a) || (n = t.apply(this, o), i = !0, r = this, a = o), n;
2522
- }
2523
- return u;
2524
- }
2525
- function _a() {
2526
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
2527
- }
2528
- var Qa = process.env.NODE_ENV === "production" ? {
2529
- name: "7pg0cj-a11yText",
2530
- styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"
2531
- } : {
2532
- name: "1f43avz-a11yText-A11yText",
2533
- styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",
2534
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
2535
- toString: _a
2536
- }, Kt = function(e) {
2537
- return x("span", S({
2538
- css: Qa
2539
- }, e));
2540
- }, $a = {
2541
- guidance: function(e) {
2542
- var r = e.isSearchable, a = e.isMulti, n = e.isDisabled, i = e.tabSelectsValue, u = e.context;
2543
- switch (u) {
2544
- case "menu":
2545
- return "Use Up and Down to choose options".concat(n ? "" : ", press Enter to select the currently focused option", ", press Escape to exit the menu").concat(i ? ", press Tab to select the option and exit the menu" : "", ".");
2546
- case "input":
2547
- return "".concat(e["aria-label"] || "Select", " is focused ").concat(r ? ",type to refine list" : "", ", press Down to open the menu, ").concat(a ? " press left to focus selected values" : "");
2548
- case "value":
2549
- return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";
2550
- default:
2551
- return "";
2552
- }
2553
- },
2554
- onChange: function(e) {
2555
- var r = e.action, a = e.label, n = a === void 0 ? "" : a, i = e.labels, u = e.isDisabled;
2556
- switch (r) {
2557
- case "deselect-option":
2558
- case "pop-value":
2559
- case "remove-value":
2560
- return "option ".concat(n, ", deselected.");
2561
- case "clear":
2562
- return "All selected options have been cleared.";
2563
- case "initial-input-focus":
2564
- return "option".concat(i.length > 1 ? "s" : "", " ").concat(i.join(","), ", selected.");
2565
- case "select-option":
2566
- return u ? "option ".concat(n, " is disabled. Select another option.") : "option ".concat(n, ", selected.");
2567
- default:
2568
- return "";
2569
- }
2570
- },
2571
- onFocus: function(e) {
2572
- var r = e.context, a = e.focused, n = e.options, i = e.label, u = i === void 0 ? "" : i, o = e.selectValue, s = e.isDisabled, c = e.isSelected, l = function(f, p) {
2573
- return f && f.length ? "".concat(f.indexOf(p) + 1, " of ").concat(f.length) : "";
2574
- };
2575
- if (r === "value" && o)
2576
- return "value ".concat(u, " focused, ").concat(l(o, a), ".");
2577
- if (r === "menu") {
2578
- var d = s ? " disabled" : "", v = "".concat(c ? "selected" : "focused").concat(d);
2579
- return "option ".concat(u, " ").concat(v, ", ").concat(l(n, a), ".");
2580
- }
2581
- return "";
2582
- },
2583
- onFilter: function(e) {
2584
- var r = e.inputValue, a = e.resultsMessage;
2585
- return "".concat(a).concat(r ? " for search term " + r : "", ".");
2586
- }
2587
- }, Ka = function(e) {
2588
- var r = e.ariaSelection, a = e.focusedOption, n = e.focusedValue, i = e.focusableOptions, u = e.isFocused, o = e.selectValue, s = e.selectProps, c = e.id, l = s.ariaLiveMessages, d = s.getOptionLabel, v = s.inputValue, m = s.isMulti, f = s.isOptionDisabled, p = s.isSearchable, g = s.menuIsOpen, I = s.options, h = s.screenReaderStatus, y = s.tabSelectsValue, E = s["aria-label"], b = s["aria-live"], B = Ce(function() {
2589
- return w(w({}, $a), l || {});
2590
- }, [l]), A = Ce(function() {
2591
- var O = "";
2592
- if (r && B.onChange) {
2593
- var T = r.option, U = r.options, Y = r.removedValue, _ = r.removedValues, ne = r.value, ee = function(K) {
2594
- return Array.isArray(K) ? null : K;
2595
- }, oe = Y || T || ee(ne), M = oe ? d(oe) : "", H = U || _ || void 0, re = H ? H.map(d) : [], ie = w({
2596
- // multiSelected items are usually items that have already been selected
2597
- // or set by the user as a default value so we assume they are not disabled
2598
- isDisabled: oe && f(oe, o),
2599
- label: M,
2600
- labels: re
2601
- }, r);
2602
- O = B.onChange(ie);
2603
- }
2604
- return O;
2605
- }, [r, B, f, o, d]), P = Ce(function() {
2606
- var O = "", T = a || n, U = !!(a && o && o.includes(a));
2607
- if (T && B.onFocus) {
2608
- var Y = {
2609
- focused: T,
2610
- label: d(T),
2611
- isDisabled: f(T, o),
2612
- isSelected: U,
2613
- options: I,
2614
- context: T === a ? "menu" : "value",
2615
- selectValue: o
2616
- };
2617
- O = B.onFocus(Y);
2618
- }
2619
- return O;
2620
- }, [a, n, d, f, B, I, o]), X = Ce(function() {
2621
- var O = "";
2622
- if (g && I.length && B.onFilter) {
2623
- var T = h({
2624
- count: i.length
2625
- });
2626
- O = B.onFilter({
2627
- inputValue: v,
2628
- resultsMessage: T
2629
- });
2630
- }
2631
- return O;
2632
- }, [i, v, g, B, I, h]), z = Ce(function() {
2633
- var O = "";
2634
- if (B.guidance) {
2635
- var T = n ? "value" : g ? "menu" : "input";
2636
- O = B.guidance({
2637
- "aria-label": E,
2638
- context: T,
2639
- isDisabled: a && f(a, o),
2640
- isMulti: m,
2641
- isSearchable: p,
2642
- tabSelectsValue: y
2643
- });
2644
- }
2645
- return O;
2646
- }, [E, a, n, m, f, p, g, B, o, y]), J = "".concat(P, " ").concat(X, " ").concat(z), j = x(nt, null, x("span", {
2647
- id: "aria-selection"
2648
- }, A), x("span", {
2649
- id: "aria-context"
2650
- }, J)), D = r?.action === "initial-input-focus";
2651
- return x(nt, null, x(Kt, {
2652
- id: c
2653
- }, D && j), x(Kt, {
2654
- "aria-live": b,
2655
- "aria-atomic": "false",
2656
- "aria-relevant": "additions text"
2657
- }, u && !D && j));
2658
- }, dt = [{
2659
- base: "A",
2660
- letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
2661
- }, {
2662
- base: "AA",
2663
- letters: "Ꜳ"
2664
- }, {
2665
- base: "AE",
2666
- letters: "ÆǼǢ"
2667
- }, {
2668
- base: "AO",
2669
- letters: "Ꜵ"
2670
- }, {
2671
- base: "AU",
2672
- letters: "Ꜷ"
2673
- }, {
2674
- base: "AV",
2675
- letters: "ꜸꜺ"
2676
- }, {
2677
- base: "AY",
2678
- letters: "Ꜽ"
2679
- }, {
2680
- base: "B",
2681
- letters: "BⒷBḂḄḆɃƂƁ"
2682
- }, {
2683
- base: "C",
2684
- letters: "CⒸCĆĈĊČÇḈƇȻꜾ"
2685
- }, {
2686
- base: "D",
2687
- letters: "DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"
2688
- }, {
2689
- base: "DZ",
2690
- letters: "DZDŽ"
2691
- }, {
2692
- base: "Dz",
2693
- letters: "DzDž"
2694
- }, {
2695
- base: "E",
2696
- letters: "EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"
2697
- }, {
2698
- base: "F",
2699
- letters: "FⒻFḞƑꝻ"
2700
- }, {
2701
- base: "G",
2702
- letters: "GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"
2703
- }, {
2704
- base: "H",
2705
- letters: "HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"
2706
- }, {
2707
- base: "I",
2708
- letters: "IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"
2709
- }, {
2710
- base: "J",
2711
- letters: "JⒿJĴɈ"
2712
- }, {
2713
- base: "K",
2714
- letters: "KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"
2715
- }, {
2716
- base: "L",
2717
- letters: "LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"
2718
- }, {
2719
- base: "LJ",
2720
- letters: "LJ"
2721
- }, {
2722
- base: "Lj",
2723
- letters: "Lj"
2724
- }, {
2725
- base: "M",
2726
- letters: "MⓂMḾṀṂⱮƜ"
2727
- }, {
2728
- base: "N",
2729
- letters: "NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"
2730
- }, {
2731
- base: "NJ",
2732
- letters: "NJ"
2733
- }, {
2734
- base: "Nj",
2735
- letters: "Nj"
2736
- }, {
2737
- base: "O",
2738
- letters: "OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"
2739
- }, {
2740
- base: "OI",
2741
- letters: "Ƣ"
2742
- }, {
2743
- base: "OO",
2744
- letters: "Ꝏ"
2745
- }, {
2746
- base: "OU",
2747
- letters: "Ȣ"
2748
- }, {
2749
- base: "P",
2750
- letters: "PⓅPṔṖƤⱣꝐꝒꝔ"
2751
- }, {
2752
- base: "Q",
2753
- letters: "QⓆQꝖꝘɊ"
2754
- }, {
2755
- base: "R",
2756
- letters: "RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"
2757
- }, {
2758
- base: "S",
2759
- letters: "SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"
2760
- }, {
2761
- base: "T",
2762
- letters: "TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"
2763
- }, {
2764
- base: "TZ",
2765
- letters: "Ꜩ"
2766
- }, {
2767
- base: "U",
2768
- letters: "UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"
2769
- }, {
2770
- base: "V",
2771
- letters: "VⓋVṼṾƲꝞɅ"
2772
- }, {
2773
- base: "VY",
2774
- letters: "Ꝡ"
2775
- }, {
2776
- base: "W",
2777
- letters: "WⓌWẀẂŴẆẄẈⱲ"
2778
- }, {
2779
- base: "X",
2780
- letters: "XⓍXẊẌ"
2781
- }, {
2782
- base: "Y",
2783
- letters: "YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"
2784
- }, {
2785
- base: "Z",
2786
- letters: "ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"
2787
- }, {
2788
- base: "a",
2789
- letters: "aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"
2790
- }, {
2791
- base: "aa",
2792
- letters: "ꜳ"
2793
- }, {
2794
- base: "ae",
2795
- letters: "æǽǣ"
2796
- }, {
2797
- base: "ao",
2798
- letters: "ꜵ"
2799
- }, {
2800
- base: "au",
2801
- letters: "ꜷ"
2802
- }, {
2803
- base: "av",
2804
- letters: "ꜹꜻ"
2805
- }, {
2806
- base: "ay",
2807
- letters: "ꜽ"
2808
- }, {
2809
- base: "b",
2810
- letters: "bⓑbḃḅḇƀƃɓ"
2811
- }, {
2812
- base: "c",
2813
- letters: "cⓒcćĉċčçḉƈȼꜿↄ"
2814
- }, {
2815
- base: "d",
2816
- letters: "dⓓdḋďḍḑḓḏđƌɖɗꝺ"
2817
- }, {
2818
- base: "dz",
2819
- letters: "dzdž"
2820
- }, {
2821
- base: "e",
2822
- letters: "eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"
2823
- }, {
2824
- base: "f",
2825
- letters: "fⓕfḟƒꝼ"
2826
- }, {
2827
- base: "g",
2828
- letters: "gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"
2829
- }, {
2830
- base: "h",
2831
- letters: "hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"
2832
- }, {
2833
- base: "hv",
2834
- letters: "ƕ"
2835
- }, {
2836
- base: "i",
2837
- letters: "iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"
2838
- }, {
2839
- base: "j",
2840
- letters: "jⓙjĵǰɉ"
2841
- }, {
2842
- base: "k",
2843
- letters: "kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"
2844
- }, {
2845
- base: "l",
2846
- letters: "lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"
2847
- }, {
2848
- base: "lj",
2849
- letters: "lj"
2850
- }, {
2851
- base: "m",
2852
- letters: "mⓜmḿṁṃɱɯ"
2853
- }, {
2854
- base: "n",
2855
- letters: "nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"
2856
- }, {
2857
- base: "nj",
2858
- letters: "nj"
2859
- }, {
2860
- base: "o",
2861
- letters: "oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"
2862
- }, {
2863
- base: "oi",
2864
- letters: "ƣ"
2865
- }, {
2866
- base: "ou",
2867
- letters: "ȣ"
2868
- }, {
2869
- base: "oo",
2870
- letters: "ꝏ"
2871
- }, {
2872
- base: "p",
2873
- letters: "pⓟpṕṗƥᵽꝑꝓꝕ"
2874
- }, {
2875
- base: "q",
2876
- letters: "qⓠqɋꝗꝙ"
2877
- }, {
2878
- base: "r",
2879
- letters: "rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"
2880
- }, {
2881
- base: "s",
2882
- letters: "sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"
2883
- }, {
2884
- base: "t",
2885
- letters: "tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"
2886
- }, {
2887
- base: "tz",
2888
- letters: "ꜩ"
2889
- }, {
2890
- base: "u",
2891
- letters: "uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"
2892
- }, {
2893
- base: "v",
2894
- letters: "vⓥvṽṿʋꝟʌ"
2895
- }, {
2896
- base: "vy",
2897
- letters: "ꝡ"
2898
- }, {
2899
- base: "w",
2900
- letters: "wⓦwẁẃŵẇẅẘẉⱳ"
2901
- }, {
2902
- base: "x",
2903
- letters: "xⓧxẋẍ"
2904
- }, {
2905
- base: "y",
2906
- letters: "yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"
2907
- }, {
2908
- base: "z",
2909
- letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ"
2910
- }], qa = new RegExp("[" + dt.map(function(t) {
2911
- return t.letters;
2912
- }).join("") + "]", "g"), kn = {};
2913
- for (var Ke = 0; Ke < dt.length; Ke++)
2914
- for (var qe = dt[Ke], et = 0; et < qe.letters.length; et++)
2915
- kn[qe.letters[et]] = qe.base;
2916
- var Jn = function(e) {
2917
- return e.replace(qa, function(r) {
2918
- return kn[r];
2919
- });
2920
- }, eu = Ua(Jn), qt = function(e) {
2921
- return e.replace(/^\s+|\s+$/g, "");
2922
- }, tu = function(e) {
2923
- return "".concat(e.label, " ").concat(e.value);
2924
- }, nu = function(e) {
2925
- return function(r, a) {
2926
- if (r.data.__isNew__)
2927
- return !0;
2928
- var n = w({
2929
- ignoreCase: !0,
2930
- ignoreAccents: !0,
2931
- stringify: tu,
2932
- trim: !0,
2933
- matchFrom: "any"
2934
- }, e), i = n.ignoreCase, u = n.ignoreAccents, o = n.stringify, s = n.trim, c = n.matchFrom, l = s ? qt(a) : a, d = s ? qt(o(r)) : o(r);
2935
- return i && (l = l.toLowerCase(), d = d.toLowerCase()), u && (l = eu(l), d = Jn(d)), c === "start" ? d.substr(0, l.length) === l : d.indexOf(l) > -1;
2936
- };
2937
- }, ru = ["innerRef"];
2938
- function iu(t) {
2939
- var e = t.innerRef, r = Ie(t, ru);
2940
- return x("input", S({
2941
- ref: e
2942
- }, r, {
2943
- css: /* @__PURE__ */ xt({
2944
- label: "dummyInput",
2945
- // get rid of any default styles
2946
- background: 0,
2947
- border: 0,
2948
- // important! this hides the flashing cursor
2949
- caretColor: "transparent",
2950
- fontSize: "inherit",
2951
- gridArea: "1 / 1 / 2 / 3",
2952
- outline: 0,
2953
- padding: 0,
2954
- // important! without `width` browsers won't allow focus
2955
- width: 1,
2956
- // remove cursor on desktop
2957
- color: "transparent",
2958
- // remove cursor on mobile whilst maintaining "scroll into view" behaviour
2959
- left: -100,
2960
- opacity: 0,
2961
- position: "relative",
2962
- transform: "scale(.01)"
2963
- }, process.env.NODE_ENV === "production" ? "" : ";label:DummyInput;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNNIiwiZmlsZSI6IkR1bW15SW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICd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gICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")
2964
- }));
2965
- }
2966
- var au = function(e) {
2967
- e.preventDefault(), e.stopPropagation();
2968
- };
2969
- function uu(t) {
2970
- var e = t.isEnabled, r = t.onBottomArrive, a = t.onBottomLeave, n = t.onTopArrive, i = t.onTopLeave, u = be(!1), o = be(!1), s = be(0), c = be(null), l = q(function(g, I) {
2971
- if (c.current !== null) {
2972
- var h = c.current, y = h.scrollTop, E = h.scrollHeight, b = h.clientHeight, B = c.current, A = I > 0, P = E - b - y, X = !1;
2973
- P > I && u.current && (a && a(g), u.current = !1), A && o.current && (i && i(g), o.current = !1), A && I > P ? (r && !u.current && r(g), B.scrollTop = E, X = !0, u.current = !0) : !A && -I > y && (n && !o.current && n(g), B.scrollTop = 0, X = !0, o.current = !0), X && au(g);
2974
- }
2975
- }, [r, a, n, i]), d = q(function(g) {
2976
- l(g, g.deltaY);
2977
- }, [l]), v = q(function(g) {
2978
- s.current = g.changedTouches[0].clientY;
2979
- }, []), m = q(function(g) {
2980
- var I = s.current - g.changedTouches[0].clientY;
2981
- l(g, I);
2982
- }, [l]), f = q(function(g) {
2983
- if (g) {
2984
- var I = Ti ? {
2985
- passive: !1
2986
- } : !1;
2987
- g.addEventListener("wheel", d, I), g.addEventListener("touchstart", v, I), g.addEventListener("touchmove", m, I);
2988
- }
2989
- }, [m, v, d]), p = q(function(g) {
2990
- g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart", v, !1), g.removeEventListener("touchmove", m, !1));
2991
- }, [m, v, d]);
2992
- return dn(function() {
2993
- if (e) {
2994
- var g = c.current;
2995
- return f(g), function() {
2996
- p(g);
2997
- };
2998
- }
2999
- }, [e, f, p]), function(g) {
3000
- c.current = g;
3001
- };
3002
- }
3003
- var en = ["boxSizing", "height", "overflow", "paddingRight", "position"], tn = {
3004
- boxSizing: "border-box",
3005
- // account for possible declaration `width: 100%;` on body
3006
- overflow: "hidden",
3007
- position: "relative",
3008
- height: "100%"
3009
- };
3010
- function nn(t) {
3011
- t.preventDefault();
3012
- }
3013
- function rn(t) {
3014
- t.stopPropagation();
3015
- }
3016
- function an() {
3017
- var t = this.scrollTop, e = this.scrollHeight, r = t + this.offsetHeight;
3018
- t === 0 ? this.scrollTop = 1 : r === e && (this.scrollTop = t - 1);
3019
- }
3020
- function un() {
3021
- return "ontouchstart" in window || navigator.maxTouchPoints;
3022
- }
3023
- var on = !!(typeof window < "u" && window.document && window.document.createElement), Ae = 0, ge = {
3024
- capture: !1,
3025
- passive: !1
3026
- };
3027
- function ou(t) {
3028
- var e = t.isEnabled, r = t.accountForScrollbars, a = r === void 0 ? !0 : r, n = be({}), i = be(null), u = q(function(s) {
3029
- if (on) {
3030
- var c = document.body, l = c && c.style;
3031
- if (a && en.forEach(function(f) {
3032
- var p = l && l[f];
3033
- n.current[f] = p;
3034
- }), a && Ae < 1) {
3035
- var d = parseInt(n.current.paddingRight, 10) || 0, v = document.body ? document.body.clientWidth : 0, m = window.innerWidth - v + d || 0;
3036
- Object.keys(tn).forEach(function(f) {
3037
- var p = tn[f];
3038
- l && (l[f] = p);
3039
- }), l && (l.paddingRight = "".concat(m, "px"));
3040
- }
3041
- c && un() && (c.addEventListener("touchmove", nn, ge), s && (s.addEventListener("touchstart", an, ge), s.addEventListener("touchmove", rn, ge))), Ae += 1;
3042
- }
3043
- }, [a]), o = q(function(s) {
3044
- if (on) {
3045
- var c = document.body, l = c && c.style;
3046
- Ae = Math.max(Ae - 1, 0), a && Ae < 1 && en.forEach(function(d) {
3047
- var v = n.current[d];
3048
- l && (l[d] = v);
3049
- }), c && un() && (c.removeEventListener("touchmove", nn, ge), s && (s.removeEventListener("touchstart", an, ge), s.removeEventListener("touchmove", rn, ge)));
3050
- }
3051
- }, [a]);
3052
- return dn(function() {
3053
- if (e) {
3054
- var s = i.current;
3055
- return u(s), function() {
3056
- o(s);
3057
- };
3058
- }
3059
- }, [e, u, o]), function(s) {
3060
- i.current = s;
3061
- };
3062
- }
3063
- function su() {
3064
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
3065
- }
3066
- var cu = function() {
3067
- return document.activeElement && document.activeElement.blur();
3068
- }, lu = process.env.NODE_ENV === "production" ? {
3069
- name: "1kfdb0e",
3070
- styles: "position:fixed;left:0;bottom:0;right:0;top:0"
3071
- } : {
3072
- name: "bp8cua-ScrollManager",
3073
- styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",
3074
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQStDVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHk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gdXNlU2Nyb2xsTG9jayh7IGlzRW5hYmxlZDogbG9ja0VuYWJsZWQgfSk7XG5cbiAgY29uc3QgdGFyZ2V0UmVmOiBSZWZDYWxsYmFjazxIVE1MRWxlbWVudD4gPSAoZWxlbWVudCkgPT4ge1xuICAgIHNldFNjcm9sbENhcHR1cmVUYXJnZXQoZWxlbWVudCk7XG4gICAgc2V0U2Nyb2xsTG9ja1RhcmdldChlbGVtZW50KTtcbiAgfTtcblxuICByZXR1cm4gKFxuICAgIDxGcmFnbWVudD5cbiAgICAgIHtsb2NrRW5hYmxlZCAmJiAoXG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXtibHVyU2VsZWN0SW5wdXR9XG4gICAgICAgICAgY3NzPXt7IHBvc2l0aW9uOiAnZml4ZWQnLCBsZWZ0OiAwLCBib3R0b206IDAsIHJpZ2h0OiAwLCB0b3A6IDAgfX1cbiAgICAgICAgLz5cbiAgICAgICl9XG4gICAgICB7Y2hpbGRyZW4odGFyZ2V0UmVmKX1cbiAgICA8L0ZyYWdtZW50PlxuICApO1xufVxuIl19 */",
3075
- toString: su
3076
- };
3077
- function du(t) {
3078
- var e = t.children, r = t.lockEnabled, a = t.captureEnabled, n = a === void 0 ? !0 : a, i = t.onBottomArrive, u = t.onBottomLeave, o = t.onTopArrive, s = t.onTopLeave, c = uu({
3079
- isEnabled: n,
3080
- onBottomArrive: i,
3081
- onBottomLeave: u,
3082
- onTopArrive: o,
3083
- onTopLeave: s
3084
- }), l = ou({
3085
- isEnabled: r
3086
- }), d = function(m) {
3087
- c(m), l(m);
3088
- };
3089
- return x(nt, null, r && x("div", {
3090
- onClick: cu,
3091
- css: lu
3092
- }), e(d));
3093
- }
3094
- var gu = function(e) {
3095
- return e.label;
3096
- }, bu = function(e) {
3097
- return e.label;
3098
- }, fu = function(e) {
3099
- return e.value;
3100
- }, mu = function(e) {
3101
- return !!e.isDisabled;
3102
- }, pu = {
3103
- clearIndicator: aa,
3104
- container: Ui,
3105
- control: da,
3106
- dropdownIndicator: ra,
3107
- group: fa,
3108
- groupHeading: pa,
3109
- indicatorsContainer: Ki,
3110
- indicatorSeparator: oa,
3111
- input: ha,
3112
- loadingIndicator: la,
3113
- loadingMessage: ji,
3114
- menu: Di,
3115
- menuList: Li,
3116
- menuPortal: ki,
3117
- multiValue: xa,
3118
- multiValueLabel: Ea,
3119
- multiValueRemove: Ga,
3120
- noOptionsMessage: zi,
3121
- option: Fa,
3122
- placeholder: Pa,
3123
- singleValue: Xa,
3124
- valueContainer: Qi
3125
- }, vu = {
3126
- primary: "#2684FF",
3127
- primary75: "#4C9AFF",
3128
- primary50: "#B2D4FF",
3129
- primary25: "#DEEBFF",
3130
- danger: "#DE350B",
3131
- dangerLight: "#FFBDAD",
3132
- neutral0: "hsl(0, 0%, 100%)",
3133
- neutral5: "hsl(0, 0%, 95%)",
3134
- neutral10: "hsl(0, 0%, 90%)",
3135
- neutral20: "hsl(0, 0%, 80%)",
3136
- neutral30: "hsl(0, 0%, 70%)",
3137
- neutral40: "hsl(0, 0%, 60%)",
3138
- neutral50: "hsl(0, 0%, 50%)",
3139
- neutral60: "hsl(0, 0%, 40%)",
3140
- neutral70: "hsl(0, 0%, 30%)",
3141
- neutral80: "hsl(0, 0%, 20%)",
3142
- neutral90: "hsl(0, 0%, 10%)"
3143
- }, Iu = 4, Un = 4, hu = 38, Cu = Un * 2, yu = {
3144
- baseUnit: Un,
3145
- controlHeight: hu,
3146
- menuGutter: Cu
3147
- }, tt = {
3148
- borderRadius: Iu,
3149
- colors: vu,
3150
- spacing: yu
3151
- }, Au = {
3152
- "aria-live": "polite",
3153
- backspaceRemovesValue: !0,
3154
- blurInputOnSelect: _t(),
3155
- captureMenuScroll: !_t(),
3156
- closeMenuOnSelect: !0,
3157
- closeMenuOnScroll: !1,
3158
- components: {},
3159
- controlShouldRenderValue: !0,
3160
- escapeClearsValue: !1,
3161
- filterOption: nu(),
3162
- formatGroupLabel: gu,
3163
- getOptionLabel: bu,
3164
- getOptionValue: fu,
3165
- isDisabled: !1,
3166
- isLoading: !1,
3167
- isMulti: !1,
3168
- isRtl: !1,
3169
- isSearchable: !0,
3170
- isOptionDisabled: mu,
3171
- loadingMessage: function() {
3172
- return "Loading...";
3173
- },
3174
- maxMenuHeight: 300,
3175
- minMenuHeight: 140,
3176
- menuIsOpen: !1,
3177
- menuPlacement: "bottom",
3178
- menuPosition: "absolute",
3179
- menuShouldBlockScroll: !1,
3180
- menuShouldScrollIntoView: !wi(),
3181
- noOptionsMessage: function() {
3182
- return "No options";
3183
- },
3184
- openMenuOnFocus: !1,
3185
- openMenuOnClick: !0,
3186
- options: [],
3187
- pageSize: 5,
3188
- placeholder: "Select...",
3189
- screenReaderStatus: function(e) {
3190
- var r = e.count;
3191
- return "".concat(r, " result").concat(r !== 1 ? "s" : "", " available");
3192
- },
3193
- styles: {},
3194
- tabIndex: 0,
3195
- tabSelectsValue: !0
3196
- };
3197
- function sn(t, e, r, a) {
3198
- var n = Kn(t, e, r), i = qn(t, e, r), u = $n(t, e), o = Le(t, e);
3199
- return {
3200
- type: "option",
3201
- data: e,
3202
- isDisabled: n,
3203
- isSelected: i,
3204
- label: u,
3205
- value: o,
3206
- index: a
3207
- };
3208
- }
3209
- function _n(t, e) {
3210
- return t.options.map(function(r, a) {
3211
- if ("options" in r) {
3212
- var n = r.options.map(function(u, o) {
3213
- return sn(t, u, e, o);
3214
- }).filter(function(u) {
3215
- return cn(t, u);
3216
- });
3217
- return n.length > 0 ? {
3218
- type: "group",
3219
- data: r,
3220
- options: n,
3221
- index: a
3222
- } : void 0;
3223
- }
3224
- var i = sn(t, r, e, a);
3225
- return cn(t, i) ? i : void 0;
3226
- }).filter(Zi);
3227
- }
3228
- function Qn(t) {
3229
- return t.reduce(function(e, r) {
3230
- return r.type === "group" ? e.push.apply(e, jn(r.options.map(function(a) {
3231
- return a.data;
3232
- }))) : e.push(r.data), e;
3233
- }, []);
3234
- }
3235
- function xu(t, e) {
3236
- return Qn(_n(t, e));
3237
- }
3238
- function cn(t, e) {
3239
- var r = t.inputValue, a = r === void 0 ? "" : r, n = e.data, i = e.isSelected, u = e.label, o = e.value;
3240
- return (!tr(t) || !i) && er(t, {
3241
- label: u,
3242
- value: o,
3243
- data: n
3244
- }, a);
3245
- }
3246
- function Eu(t, e) {
3247
- var r = t.focusedValue, a = t.selectValue, n = a.indexOf(r);
3248
- if (n > -1) {
3249
- var i = e.indexOf(r);
3250
- if (i > -1)
3251
- return r;
3252
- if (n < e.length)
3253
- return e[n];
3254
- }
3255
- return null;
3256
- }
3257
- function Gu(t, e) {
3258
- var r = t.focusedOption;
3259
- return r && e.indexOf(r) > -1 ? r : e[0];
3260
- }
3261
- var $n = function(e, r) {
3262
- return e.getOptionLabel(r);
3263
- }, Le = function(e, r) {
3264
- return e.getOptionValue(r);
3265
- };
3266
- function Kn(t, e, r) {
3267
- return typeof t.isOptionDisabled == "function" ? t.isOptionDisabled(e, r) : !1;
3268
- }
3269
- function qn(t, e, r) {
3270
- if (r.indexOf(e) > -1)
3271
- return !0;
3272
- if (typeof t.isOptionSelected == "function")
3273
- return t.isOptionSelected(e, r);
3274
- var a = Le(t, e);
3275
- return r.some(function(n) {
3276
- return Le(t, n) === a;
3277
- });
3278
- }
3279
- function er(t, e, r) {
3280
- return t.filterOption ? t.filterOption(e, r) : !0;
3281
- }
3282
- var tr = function(e) {
3283
- var r = e.hideSelectedOptions, a = e.isMulti;
3284
- return r === void 0 ? a : r;
3285
- }, Su = 1, nr = /* @__PURE__ */ function(t) {
3286
- St(r, t);
3287
- var e = Bt(r);
3288
- function r(a) {
3289
- var n;
3290
- return Et(this, r), n = e.call(this, a), n.state = {
3291
- ariaSelection: null,
3292
- focusedOption: null,
3293
- focusedValue: null,
3294
- inputIsHidden: !1,
3295
- isFocused: !1,
3296
- selectValue: [],
3297
- clearFocusValueOnUpdate: !1,
3298
- prevWasFocused: !1,
3299
- inputIsHiddenAfterUpdate: void 0,
3300
- prevProps: void 0
3301
- }, n.blockOptionHover = !1, n.isComposing = !1, n.commonProps = void 0, n.initialTouchX = 0, n.initialTouchY = 0, n.instancePrefix = "", n.openAfterFocus = !1, n.scrollToFocusedOptionOnUpdate = !1, n.userIsDragging = void 0, n.controlRef = null, n.getControlRef = function(i) {
3302
- n.controlRef = i;
3303
- }, n.focusedOptionRef = null, n.getFocusedOptionRef = function(i) {
3304
- n.focusedOptionRef = i;
3305
- }, n.menuListRef = null, n.getMenuListRef = function(i) {
3306
- n.menuListRef = i;
3307
- }, n.inputRef = null, n.getInputRef = function(i) {
3308
- n.inputRef = i;
3309
- }, n.focus = n.focusInput, n.blur = n.blurInput, n.onChange = function(i, u) {
3310
- var o = n.props, s = o.onChange, c = o.name;
3311
- u.name = c, n.ariaOnChange(i, u), s(i, u);
3312
- }, n.setValue = function(i, u, o) {
3313
- var s = n.props, c = s.closeMenuOnSelect, l = s.isMulti, d = s.inputValue;
3314
- n.onInputChange("", {
3315
- action: "set-value",
3316
- prevInputValue: d
3317
- }), c && (n.setState({
3318
- inputIsHiddenAfterUpdate: !l
3319
- }), n.onMenuClose()), n.setState({
3320
- clearFocusValueOnUpdate: !0
3321
- }), n.onChange(i, {
3322
- action: u,
3323
- option: o
3324
- });
3325
- }, n.selectOption = function(i) {
3326
- var u = n.props, o = u.blurInputOnSelect, s = u.isMulti, c = u.name, l = n.state.selectValue, d = s && n.isOptionSelected(i, l), v = n.isOptionDisabled(i, l);
3327
- if (d) {
3328
- var m = n.getOptionValue(i);
3329
- n.setValue(l.filter(function(f) {
3330
- return n.getOptionValue(f) !== m;
3331
- }), "deselect-option", i);
3332
- } else if (!v)
3333
- s ? n.setValue([].concat(jn(l), [i]), "select-option", i) : n.setValue(i, "select-option");
3334
- else {
3335
- n.ariaOnChange(i, {
3336
- action: "select-option",
3337
- option: i,
3338
- name: c
3339
- });
3340
- return;
3341
- }
3342
- o && n.blurInput();
3343
- }, n.removeValue = function(i) {
3344
- var u = n.props.isMulti, o = n.state.selectValue, s = n.getOptionValue(i), c = o.filter(function(d) {
3345
- return n.getOptionValue(d) !== s;
3346
- }), l = we(u, c, c[0] || null);
3347
- n.onChange(l, {
3348
- action: "remove-value",
3349
- removedValue: i
3350
- }), n.focusInput();
3351
- }, n.clearValue = function() {
3352
- var i = n.state.selectValue;
3353
- n.onChange(we(n.props.isMulti, [], null), {
3354
- action: "clear",
3355
- removedValues: i
3356
- });
3357
- }, n.popValue = function() {
3358
- var i = n.props.isMulti, u = n.state.selectValue, o = u[u.length - 1], s = u.slice(0, u.length - 1), c = we(i, s, s[0] || null);
3359
- n.onChange(c, {
3360
- action: "pop-value",
3361
- removedValue: o
3362
- });
3363
- }, n.getValue = function() {
3364
- return n.state.selectValue;
3365
- }, n.cx = function() {
3366
- for (var i = arguments.length, u = new Array(i), o = 0; o < i; o++)
3367
- u[o] = arguments[o];
3368
- return Ni.apply(void 0, [n.props.classNamePrefix].concat(u));
3369
- }, n.getOptionLabel = function(i) {
3370
- return $n(n.props, i);
3371
- }, n.getOptionValue = function(i) {
3372
- return Le(n.props, i);
3373
- }, n.getStyles = function(i, u) {
3374
- var o = pu[i](u);
3375
- o.boxSizing = "border-box";
3376
- var s = n.props.styles[i];
3377
- return s ? s(o, u) : o;
3378
- }, n.getElementId = function(i) {
3379
- return "".concat(n.instancePrefix, "-").concat(i);
3380
- }, n.getComponents = function() {
3381
- return Oa(n.props);
3382
- }, n.buildCategorizedOptions = function() {
3383
- return _n(n.props, n.state.selectValue);
3384
- }, n.getCategorizedOptions = function() {
3385
- return n.props.menuIsOpen ? n.buildCategorizedOptions() : [];
3386
- }, n.buildFocusableOptions = function() {
3387
- return Qn(n.buildCategorizedOptions());
3388
- }, n.getFocusableOptions = function() {
3389
- return n.props.menuIsOpen ? n.buildFocusableOptions() : [];
3390
- }, n.ariaOnChange = function(i, u) {
3391
- n.setState({
3392
- ariaSelection: w({
3393
- value: i
3394
- }, u)
3395
- });
3396
- }, n.onMenuMouseDown = function(i) {
3397
- i.button === 0 && (i.stopPropagation(), i.preventDefault(), n.focusInput());
3398
- }, n.onMenuMouseMove = function(i) {
3399
- n.blockOptionHover = !1;
3400
- }, n.onControlMouseDown = function(i) {
3401
- var u = n.props.openMenuOnClick;
3402
- n.state.isFocused ? n.props.menuIsOpen ? i.target.tagName !== "INPUT" && i.target.tagName !== "TEXTAREA" && n.onMenuClose() : u && n.openMenu("first") : (u && (n.openAfterFocus = !0), n.focusInput()), i.target.tagName !== "INPUT" && i.target.tagName !== "TEXTAREA" && i.preventDefault();
3403
- }, n.onDropdownIndicatorMouseDown = function(i) {
3404
- if (!(i && i.type === "mousedown" && i.button !== 0) && !n.props.isDisabled) {
3405
- var u = n.props, o = u.isMulti, s = u.menuIsOpen;
3406
- n.focusInput(), s ? (n.setState({
3407
- inputIsHiddenAfterUpdate: !o
3408
- }), n.onMenuClose()) : n.openMenu("first"), i.preventDefault(), i.stopPropagation();
3409
- }
3410
- }, n.onClearIndicatorMouseDown = function(i) {
3411
- i && i.type === "mousedown" && i.button !== 0 || (n.clearValue(), i.preventDefault(), i.stopPropagation(), n.openAfterFocus = !1, i.type === "touchend" ? n.focusInput() : setTimeout(function() {
3412
- return n.focusInput();
3413
- }));
3414
- }, n.onScroll = function(i) {
3415
- typeof n.props.closeMenuOnScroll == "boolean" ? i.target instanceof HTMLElement && Nt(i.target) && n.props.onMenuClose() : typeof n.props.closeMenuOnScroll == "function" && n.props.closeMenuOnScroll(i) && n.props.onMenuClose();
3416
- }, n.onCompositionStart = function() {
3417
- n.isComposing = !0;
3418
- }, n.onCompositionEnd = function() {
3419
- n.isComposing = !1;
3420
- }, n.onTouchStart = function(i) {
3421
- var u = i.touches, o = u && u.item(0);
3422
- o && (n.initialTouchX = o.clientX, n.initialTouchY = o.clientY, n.userIsDragging = !1);
3423
- }, n.onTouchMove = function(i) {
3424
- var u = i.touches, o = u && u.item(0);
3425
- if (o) {
3426
- var s = Math.abs(o.clientX - n.initialTouchX), c = Math.abs(o.clientY - n.initialTouchY), l = 5;
3427
- n.userIsDragging = s > l || c > l;
3428
- }
3429
- }, n.onTouchEnd = function(i) {
3430
- n.userIsDragging || (n.controlRef && !n.controlRef.contains(i.target) && n.menuListRef && !n.menuListRef.contains(i.target) && n.blurInput(), n.initialTouchX = 0, n.initialTouchY = 0);
3431
- }, n.onControlTouchEnd = function(i) {
3432
- n.userIsDragging || n.onControlMouseDown(i);
3433
- }, n.onClearIndicatorTouchEnd = function(i) {
3434
- n.userIsDragging || n.onClearIndicatorMouseDown(i);
3435
- }, n.onDropdownIndicatorTouchEnd = function(i) {
3436
- n.userIsDragging || n.onDropdownIndicatorMouseDown(i);
3437
- }, n.handleInputChange = function(i) {
3438
- var u = n.props.inputValue, o = i.currentTarget.value;
3439
- n.setState({
3440
- inputIsHiddenAfterUpdate: !1
3441
- }), n.onInputChange(o, {
3442
- action: "input-change",
3443
- prevInputValue: u
3444
- }), n.props.menuIsOpen || n.onMenuOpen();
3445
- }, n.onInputFocus = function(i) {
3446
- n.props.onFocus && n.props.onFocus(i), n.setState({
3447
- inputIsHiddenAfterUpdate: !1,
3448
- isFocused: !0
3449
- }), (n.openAfterFocus || n.props.openMenuOnFocus) && n.openMenu("first"), n.openAfterFocus = !1;
3450
- }, n.onInputBlur = function(i) {
3451
- var u = n.props.inputValue;
3452
- if (n.menuListRef && n.menuListRef.contains(document.activeElement)) {
3453
- n.inputRef.focus();
3454
- return;
3455
- }
3456
- n.props.onBlur && n.props.onBlur(i), n.onInputChange("", {
3457
- action: "input-blur",
3458
- prevInputValue: u
3459
- }), n.onMenuClose(), n.setState({
3460
- focusedValue: null,
3461
- isFocused: !1
3462
- });
3463
- }, n.onOptionHover = function(i) {
3464
- n.blockOptionHover || n.state.focusedOption === i || n.setState({
3465
- focusedOption: i
3466
- });
3467
- }, n.shouldHideSelectedOptions = function() {
3468
- return tr(n.props);
3469
- }, n.onKeyDown = function(i) {
3470
- var u = n.props, o = u.isMulti, s = u.backspaceRemovesValue, c = u.escapeClearsValue, l = u.inputValue, d = u.isClearable, v = u.isDisabled, m = u.menuIsOpen, f = u.onKeyDown, p = u.tabSelectsValue, g = u.openMenuOnFocus, I = n.state, h = I.focusedOption, y = I.focusedValue, E = I.selectValue;
3471
- if (!v && !(typeof f == "function" && (f(i), i.defaultPrevented))) {
3472
- switch (n.blockOptionHover = !0, i.key) {
3473
- case "ArrowLeft":
3474
- if (!o || l)
3475
- return;
3476
- n.focusValue("previous");
3477
- break;
3478
- case "ArrowRight":
3479
- if (!o || l)
3480
- return;
3481
- n.focusValue("next");
3482
- break;
3483
- case "Delete":
3484
- case "Backspace":
3485
- if (l)
3486
- return;
3487
- if (y)
3488
- n.removeValue(y);
3489
- else {
3490
- if (!s)
3491
- return;
3492
- o ? n.popValue() : d && n.clearValue();
3493
- }
3494
- break;
3495
- case "Tab":
3496
- if (n.isComposing || i.shiftKey || !m || !p || !h || // don't capture the event if the menu opens on focus and the focused
3497
- // option is already selected; it breaks the flow of navigation
3498
- g && n.isOptionSelected(h, E))
3499
- return;
3500
- n.selectOption(h);
3501
- break;
3502
- case "Enter":
3503
- if (i.keyCode === 229)
3504
- break;
3505
- if (m) {
3506
- if (!h || n.isComposing)
3507
- return;
3508
- n.selectOption(h);
3509
- break;
3510
- }
3511
- return;
3512
- case "Escape":
3513
- m ? (n.setState({
3514
- inputIsHiddenAfterUpdate: !1
3515
- }), n.onInputChange("", {
3516
- action: "menu-close",
3517
- prevInputValue: l
3518
- }), n.onMenuClose()) : d && c && n.clearValue();
3519
- break;
3520
- case " ":
3521
- if (l)
3522
- return;
3523
- if (!m) {
3524
- n.openMenu("first");
3525
- break;
3526
- }
3527
- if (!h)
3528
- return;
3529
- n.selectOption(h);
3530
- break;
3531
- case "ArrowUp":
3532
- m ? n.focusOption("up") : n.openMenu("last");
3533
- break;
3534
- case "ArrowDown":
3535
- m ? n.focusOption("down") : n.openMenu("first");
3536
- break;
3537
- case "PageUp":
3538
- if (!m)
3539
- return;
3540
- n.focusOption("pageup");
3541
- break;
3542
- case "PageDown":
3543
- if (!m)
3544
- return;
3545
- n.focusOption("pagedown");
3546
- break;
3547
- case "Home":
3548
- if (!m)
3549
- return;
3550
- n.focusOption("first");
3551
- break;
3552
- case "End":
3553
- if (!m)
3554
- return;
3555
- n.focusOption("last");
3556
- break;
3557
- default:
3558
- return;
3559
- }
3560
- i.preventDefault();
3561
- }
3562
- }, n.instancePrefix = "react-select-" + (n.props.instanceId || ++Su), n.state.selectValue = Ut(a.value), n;
3563
- }
3564
- return Gt(r, [{
3565
- key: "componentDidMount",
3566
- value: function() {
3567
- this.startListeningComposition(), this.startListeningToTouch(), this.props.closeMenuOnScroll && document && document.addEventListener && document.addEventListener("scroll", this.onScroll, !0), this.props.autoFocus && this.focusInput();
3568
- }
3569
- }, {
3570
- key: "componentDidUpdate",
3571
- value: function(n) {
3572
- var i = this.props, u = i.isDisabled, o = i.menuIsOpen, s = this.state.isFocused;
3573
- // ensure focus is restored correctly when the control becomes enabled
3574
- (s && !u && n.isDisabled || // ensure focus is on the Input when the menu opens
3575
- s && o && !n.menuIsOpen) && this.focusInput(), s && u && !n.isDisabled && this.setState({
3576
- isFocused: !1
3577
- }, this.onMenuClose), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (Ri(this.menuListRef, this.focusedOptionRef), this.scrollToFocusedOptionOnUpdate = !1);
3578
- }
3579
- }, {
3580
- key: "componentWillUnmount",
3581
- value: function() {
3582
- this.stopListeningComposition(), this.stopListeningToTouch(), document.removeEventListener("scroll", this.onScroll, !0);
3583
- }
3584
- // ==============================
3585
- // Consumer Handlers
3586
- // ==============================
3587
- }, {
3588
- key: "onMenuOpen",
3589
- value: function() {
3590
- this.props.onMenuOpen();
3591
- }
3592
- }, {
3593
- key: "onMenuClose",
3594
- value: function() {
3595
- this.onInputChange("", {
3596
- action: "menu-close",
3597
- prevInputValue: this.props.inputValue
3598
- }), this.props.onMenuClose();
3599
- }
3600
- }, {
3601
- key: "onInputChange",
3602
- value: function(n, i) {
3603
- this.props.onInputChange(n, i);
3604
- }
3605
- // ==============================
3606
- // Methods
3607
- // ==============================
3608
- }, {
3609
- key: "focusInput",
3610
- value: function() {
3611
- this.inputRef && this.inputRef.focus();
3612
- }
3613
- }, {
3614
- key: "blurInput",
3615
- value: function() {
3616
- this.inputRef && this.inputRef.blur();
3617
- }
3618
- // aliased for consumers
3619
- }, {
3620
- key: "openMenu",
3621
- value: function(n) {
3622
- var i = this, u = this.state, o = u.selectValue, s = u.isFocused, c = this.buildFocusableOptions(), l = n === "first" ? 0 : c.length - 1;
3623
- if (!this.props.isMulti) {
3624
- var d = c.indexOf(o[0]);
3625
- d > -1 && (l = d);
3626
- }
3627
- this.scrollToFocusedOptionOnUpdate = !(s && this.menuListRef), this.setState({
3628
- inputIsHiddenAfterUpdate: !1,
3629
- focusedValue: null,
3630
- focusedOption: c[l]
3631
- }, function() {
3632
- return i.onMenuOpen();
3633
- });
3634
- }
3635
- }, {
3636
- key: "focusValue",
3637
- value: function(n) {
3638
- var i = this.state, u = i.selectValue, o = i.focusedValue;
3639
- if (this.props.isMulti) {
3640
- this.setState({
3641
- focusedOption: null
3642
- });
3643
- var s = u.indexOf(o);
3644
- o || (s = -1);
3645
- var c = u.length - 1, l = -1;
3646
- if (u.length) {
3647
- switch (n) {
3648
- case "previous":
3649
- s === 0 ? l = 0 : s === -1 ? l = c : l = s - 1;
3650
- break;
3651
- case "next":
3652
- s > -1 && s < c && (l = s + 1);
3653
- break;
3654
- }
3655
- this.setState({
3656
- inputIsHidden: l !== -1,
3657
- focusedValue: u[l]
3658
- });
3659
- }
3660
- }
3661
- }
3662
- }, {
3663
- key: "focusOption",
3664
- value: function() {
3665
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "first", i = this.props.pageSize, u = this.state.focusedOption, o = this.getFocusableOptions();
3666
- if (o.length) {
3667
- var s = 0, c = o.indexOf(u);
3668
- u || (c = -1), n === "up" ? s = c > 0 ? c - 1 : o.length - 1 : n === "down" ? s = (c + 1) % o.length : n === "pageup" ? (s = c - i, s < 0 && (s = 0)) : n === "pagedown" ? (s = c + i, s > o.length - 1 && (s = o.length - 1)) : n === "last" && (s = o.length - 1), this.scrollToFocusedOptionOnUpdate = !0, this.setState({
3669
- focusedOption: o[s],
3670
- focusedValue: null
3671
- });
3672
- }
3673
- }
3674
- }, {
3675
- key: "getTheme",
3676
- value: (
3677
- // ==============================
3678
- // Getters
3679
- // ==============================
3680
- function() {
3681
- return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(tt) : w(w({}, tt), this.props.theme) : tt;
3682
- }
3683
- )
3684
- }, {
3685
- key: "getCommonProps",
3686
- value: function() {
3687
- var n = this.clearValue, i = this.cx, u = this.getStyles, o = this.getValue, s = this.selectOption, c = this.setValue, l = this.props, d = l.isMulti, v = l.isRtl, m = l.options, f = this.hasValue();
3688
- return {
3689
- clearValue: n,
3690
- cx: i,
3691
- getStyles: u,
3692
- getValue: o,
3693
- hasValue: f,
3694
- isMulti: d,
3695
- isRtl: v,
3696
- options: m,
3697
- selectOption: s,
3698
- selectProps: l,
3699
- setValue: c,
3700
- theme: this.getTheme()
3701
- };
3702
- }
3703
- }, {
3704
- key: "hasValue",
3705
- value: function() {
3706
- var n = this.state.selectValue;
3707
- return n.length > 0;
3708
- }
3709
- }, {
3710
- key: "hasOptions",
3711
- value: function() {
3712
- return !!this.getFocusableOptions().length;
3713
- }
3714
- }, {
3715
- key: "isClearable",
3716
- value: function() {
3717
- var n = this.props, i = n.isClearable, u = n.isMulti;
3718
- return i === void 0 ? u : i;
3719
- }
3720
- }, {
3721
- key: "isOptionDisabled",
3722
- value: function(n, i) {
3723
- return Kn(this.props, n, i);
3724
- }
3725
- }, {
3726
- key: "isOptionSelected",
3727
- value: function(n, i) {
3728
- return qn(this.props, n, i);
3729
- }
3730
- }, {
3731
- key: "filterOption",
3732
- value: function(n, i) {
3733
- return er(this.props, n, i);
3734
- }
3735
- }, {
3736
- key: "formatOptionLabel",
3737
- value: function(n, i) {
3738
- if (typeof this.props.formatOptionLabel == "function") {
3739
- var u = this.props.inputValue, o = this.state.selectValue;
3740
- return this.props.formatOptionLabel(n, {
3741
- context: i,
3742
- inputValue: u,
3743
- selectValue: o
3744
- });
3745
- } else
3746
- return this.getOptionLabel(n);
3747
- }
3748
- }, {
3749
- key: "formatGroupLabel",
3750
- value: function(n) {
3751
- return this.props.formatGroupLabel(n);
3752
- }
3753
- // ==============================
3754
- // Mouse Handlers
3755
- // ==============================
3756
- }, {
3757
- key: "startListeningComposition",
3758
- value: (
3759
- // ==============================
3760
- // Composition Handlers
3761
- // ==============================
3762
- function() {
3763
- document && document.addEventListener && (document.addEventListener("compositionstart", this.onCompositionStart, !1), document.addEventListener("compositionend", this.onCompositionEnd, !1));
3764
- }
3765
- )
3766
- }, {
3767
- key: "stopListeningComposition",
3768
- value: function() {
3769
- document && document.removeEventListener && (document.removeEventListener("compositionstart", this.onCompositionStart), document.removeEventListener("compositionend", this.onCompositionEnd));
3770
- }
3771
- }, {
3772
- key: "startListeningToTouch",
3773
- value: (
3774
- // ==============================
3775
- // Touch Handlers
3776
- // ==============================
3777
- function() {
3778
- document && document.addEventListener && (document.addEventListener("touchstart", this.onTouchStart, !1), document.addEventListener("touchmove", this.onTouchMove, !1), document.addEventListener("touchend", this.onTouchEnd, !1));
3779
- }
3780
- )
3781
- }, {
3782
- key: "stopListeningToTouch",
3783
- value: function() {
3784
- document && document.removeEventListener && (document.removeEventListener("touchstart", this.onTouchStart), document.removeEventListener("touchmove", this.onTouchMove), document.removeEventListener("touchend", this.onTouchEnd));
3785
- }
3786
- }, {
3787
- key: "renderInput",
3788
- value: (
3789
- // ==============================
3790
- // Renderers
3791
- // ==============================
3792
- function() {
3793
- var n = this.props, i = n.isDisabled, u = n.isSearchable, o = n.inputId, s = n.inputValue, c = n.tabIndex, l = n.form, d = n.menuIsOpen, v = this.getComponents(), m = v.Input, f = this.state, p = f.inputIsHidden, g = f.ariaSelection, I = this.commonProps, h = o || this.getElementId("input"), y = w(w({
3794
- "aria-autocomplete": "list",
3795
- "aria-expanded": d,
3796
- "aria-haspopup": !0,
3797
- "aria-controls": this.getElementId("listbox"),
3798
- "aria-owns": this.getElementId("listbox"),
3799
- "aria-errormessage": this.props["aria-errormessage"],
3800
- "aria-invalid": this.props["aria-invalid"],
3801
- "aria-label": this.props["aria-label"],
3802
- "aria-labelledby": this.props["aria-labelledby"],
3803
- role: "combobox"
3804
- }, !u && {
3805
- "aria-readonly": !0
3806
- }), this.hasValue() ? g?.action === "initial-input-focus" && {
3807
- "aria-describedby": this.getElementId("live-region")
3808
- } : {
3809
- "aria-describedby": this.getElementId("placeholder")
3810
- });
3811
- return u ? /* @__PURE__ */ G.createElement(m, S({}, I, {
3812
- autoCapitalize: "none",
3813
- autoComplete: "off",
3814
- autoCorrect: "off",
3815
- id: h,
3816
- innerRef: this.getInputRef,
3817
- isDisabled: i,
3818
- isHidden: p,
3819
- onBlur: this.onInputBlur,
3820
- onChange: this.handleInputChange,
3821
- onFocus: this.onInputFocus,
3822
- spellCheck: "false",
3823
- tabIndex: c,
3824
- form: l,
3825
- type: "text",
3826
- value: s
3827
- }, y)) : /* @__PURE__ */ G.createElement(iu, S({
3828
- id: h,
3829
- innerRef: this.getInputRef,
3830
- onBlur: this.onInputBlur,
3831
- onChange: De,
3832
- onFocus: this.onInputFocus,
3833
- disabled: i,
3834
- tabIndex: c,
3835
- inputMode: "none",
3836
- form: l,
3837
- value: ""
3838
- }, y));
3839
- }
3840
- )
3841
- }, {
3842
- key: "renderPlaceholderOrValue",
3843
- value: function() {
3844
- var n = this, i = this.getComponents(), u = i.MultiValue, o = i.MultiValueContainer, s = i.MultiValueLabel, c = i.MultiValueRemove, l = i.SingleValue, d = i.Placeholder, v = this.commonProps, m = this.props, f = m.controlShouldRenderValue, p = m.isDisabled, g = m.isMulti, I = m.inputValue, h = m.placeholder, y = this.state, E = y.selectValue, b = y.focusedValue, B = y.isFocused;
3845
- if (!this.hasValue() || !f)
3846
- return I ? null : /* @__PURE__ */ G.createElement(d, S({}, v, {
3847
- key: "placeholder",
3848
- isDisabled: p,
3849
- isFocused: B,
3850
- innerProps: {
3851
- id: this.getElementId("placeholder")
3852
- }
3853
- }), h);
3854
- if (g)
3855
- return E.map(function(P, X) {
3856
- var z = P === b, J = "".concat(n.getOptionLabel(P), "-").concat(n.getOptionValue(P));
3857
- return /* @__PURE__ */ G.createElement(u, S({}, v, {
3858
- components: {
3859
- Container: o,
3860
- Label: s,
3861
- Remove: c
3862
- },
3863
- isFocused: z,
3864
- isDisabled: p,
3865
- key: J,
3866
- index: X,
3867
- removeProps: {
3868
- onClick: function() {
3869
- return n.removeValue(P);
3870
- },
3871
- onTouchEnd: function() {
3872
- return n.removeValue(P);
3873
- },
3874
- onMouseDown: function(D) {
3875
- D.preventDefault(), D.stopPropagation();
3876
- }
3877
- },
3878
- data: P
3879
- }), n.formatOptionLabel(P, "value"));
3880
- });
3881
- if (I)
3882
- return null;
3883
- var A = E[0];
3884
- return /* @__PURE__ */ G.createElement(l, S({}, v, {
3885
- data: A,
3886
- isDisabled: p
3887
- }), this.formatOptionLabel(A, "value"));
3888
- }
3889
- }, {
3890
- key: "renderClearIndicator",
3891
- value: function() {
3892
- var n = this.getComponents(), i = n.ClearIndicator, u = this.commonProps, o = this.props, s = o.isDisabled, c = o.isLoading, l = this.state.isFocused;
3893
- if (!this.isClearable() || !i || s || !this.hasValue() || c)
3894
- return null;
3895
- var d = {
3896
- onMouseDown: this.onClearIndicatorMouseDown,
3897
- onTouchEnd: this.onClearIndicatorTouchEnd,
3898
- "aria-hidden": "true"
3899
- };
3900
- return /* @__PURE__ */ G.createElement(i, S({}, u, {
3901
- innerProps: d,
3902
- isFocused: l
3903
- }));
3904
- }
3905
- }, {
3906
- key: "renderLoadingIndicator",
3907
- value: function() {
3908
- var n = this.getComponents(), i = n.LoadingIndicator, u = this.commonProps, o = this.props, s = o.isDisabled, c = o.isLoading, l = this.state.isFocused;
3909
- if (!i || !c)
3910
- return null;
3911
- var d = {
3912
- "aria-hidden": "true"
3913
- };
3914
- return /* @__PURE__ */ G.createElement(i, S({}, u, {
3915
- innerProps: d,
3916
- isDisabled: s,
3917
- isFocused: l
3918
- }));
3919
- }
3920
- }, {
3921
- key: "renderIndicatorSeparator",
3922
- value: function() {
3923
- var n = this.getComponents(), i = n.DropdownIndicator, u = n.IndicatorSeparator;
3924
- if (!i || !u)
3925
- return null;
3926
- var o = this.commonProps, s = this.props.isDisabled, c = this.state.isFocused;
3927
- return /* @__PURE__ */ G.createElement(u, S({}, o, {
3928
- isDisabled: s,
3929
- isFocused: c
3930
- }));
3931
- }
3932
- }, {
3933
- key: "renderDropdownIndicator",
3934
- value: function() {
3935
- var n = this.getComponents(), i = n.DropdownIndicator;
3936
- if (!i)
3937
- return null;
3938
- var u = this.commonProps, o = this.props.isDisabled, s = this.state.isFocused, c = {
3939
- onMouseDown: this.onDropdownIndicatorMouseDown,
3940
- onTouchEnd: this.onDropdownIndicatorTouchEnd,
3941
- "aria-hidden": "true"
3942
- };
3943
- return /* @__PURE__ */ G.createElement(i, S({}, u, {
3944
- innerProps: c,
3945
- isDisabled: o,
3946
- isFocused: s
3947
- }));
3948
- }
3949
- }, {
3950
- key: "renderMenu",
3951
- value: function() {
3952
- var n = this, i = this.getComponents(), u = i.Group, o = i.GroupHeading, s = i.Menu, c = i.MenuList, l = i.MenuPortal, d = i.LoadingMessage, v = i.NoOptionsMessage, m = i.Option, f = this.commonProps, p = this.state.focusedOption, g = this.props, I = g.captureMenuScroll, h = g.inputValue, y = g.isLoading, E = g.loadingMessage, b = g.minMenuHeight, B = g.maxMenuHeight, A = g.menuIsOpen, P = g.menuPlacement, X = g.menuPosition, z = g.menuPortalTarget, J = g.menuShouldBlockScroll, j = g.menuShouldScrollIntoView, D = g.noOptionsMessage, O = g.onMenuScrollToTop, T = g.onMenuScrollToBottom;
3953
- if (!A)
3954
- return null;
3955
- var U = function(H, re) {
3956
- var ie = H.type, $ = H.data, K = H.isDisabled, ce = H.isSelected, de = H.label, Je = H.value, Ne = p === $, C = K ? void 0 : function() {
3957
- return n.onOptionHover($);
3958
- }, he = K ? void 0 : function() {
3959
- return n.selectOption($);
3960
- }, le = "".concat(n.getElementId("option"), "-").concat(re), Ve = {
3961
- id: le,
3962
- onClick: he,
3963
- onMouseMove: C,
3964
- onMouseOver: C,
3965
- tabIndex: -1
3966
- };
3967
- return /* @__PURE__ */ G.createElement(m, S({}, f, {
3968
- innerProps: Ve,
3969
- data: $,
3970
- isDisabled: K,
3971
- isSelected: ce,
3972
- key: le,
3973
- label: de,
3974
- type: ie,
3975
- value: Je,
3976
- isFocused: Ne,
3977
- innerRef: Ne ? n.getFocusedOptionRef : void 0
3978
- }), n.formatOptionLabel(H.data, "menu"));
3979
- }, Y;
3980
- if (this.hasOptions())
3981
- Y = this.getCategorizedOptions().map(function(M) {
3982
- if (M.type === "group") {
3983
- var H = M.data, re = M.options, ie = M.index, $ = "".concat(n.getElementId("group"), "-").concat(ie), K = "".concat($, "-heading");
3984
- return /* @__PURE__ */ G.createElement(u, S({}, f, {
3985
- key: $,
3986
- data: H,
3987
- options: re,
3988
- Heading: o,
3989
- headingProps: {
3990
- id: K,
3991
- data: M.data
3992
- },
3993
- label: n.formatGroupLabel(M.data)
3994
- }), M.options.map(function(ce) {
3995
- return U(ce, "".concat(ie, "-").concat(ce.index));
3996
- }));
3997
- } else if (M.type === "option")
3998
- return U(M, "".concat(M.index));
3999
- });
4000
- else if (y) {
4001
- var _ = E({
4002
- inputValue: h
4003
- });
4004
- if (_ === null)
4005
- return null;
4006
- Y = /* @__PURE__ */ G.createElement(d, f, _);
4007
- } else {
4008
- var ne = D({
4009
- inputValue: h
4010
- });
4011
- if (ne === null)
4012
- return null;
4013
- Y = /* @__PURE__ */ G.createElement(v, f, ne);
4014
- }
4015
- var ee = {
4016
- minMenuHeight: b,
4017
- maxMenuHeight: B,
4018
- menuPlacement: P,
4019
- menuPosition: X,
4020
- menuShouldScrollIntoView: j
4021
- }, oe = /* @__PURE__ */ G.createElement(Xn, S({}, f, ee), function(M) {
4022
- var H = M.ref, re = M.placerProps, ie = re.placement, $ = re.maxHeight;
4023
- return /* @__PURE__ */ G.createElement(s, S({}, f, ee, {
4024
- innerRef: H,
4025
- innerProps: {
4026
- onMouseDown: n.onMenuMouseDown,
4027
- onMouseMove: n.onMenuMouseMove,
4028
- id: n.getElementId("listbox")
4029
- },
4030
- isLoading: y,
4031
- placement: ie
4032
- }), /* @__PURE__ */ G.createElement(du, {
4033
- captureEnabled: I,
4034
- onTopArrive: O,
4035
- onBottomArrive: T,
4036
- lockEnabled: J
4037
- }, function(K) {
4038
- return /* @__PURE__ */ G.createElement(c, S({}, f, {
4039
- innerRef: function(de) {
4040
- n.getMenuListRef(de), K(de);
4041
- },
4042
- isLoading: y,
4043
- maxHeight: $,
4044
- focusedOption: p
4045
- }), Y);
4046
- }));
4047
- });
4048
- return z || X === "fixed" ? /* @__PURE__ */ G.createElement(l, S({}, f, {
4049
- appendTo: z,
4050
- controlElement: this.controlRef,
4051
- menuPlacement: P,
4052
- menuPosition: X
4053
- }), oe) : oe;
4054
- }
4055
- }, {
4056
- key: "renderFormField",
4057
- value: function() {
4058
- var n = this, i = this.props, u = i.delimiter, o = i.isDisabled, s = i.isMulti, c = i.name, l = this.state.selectValue;
4059
- if (!(!c || o))
4060
- if (s)
4061
- if (u) {
4062
- var d = l.map(function(f) {
4063
- return n.getOptionValue(f);
4064
- }).join(u);
4065
- return /* @__PURE__ */ G.createElement("input", {
4066
- name: c,
4067
- type: "hidden",
4068
- value: d
4069
- });
4070
- } else {
4071
- var v = l.length > 0 ? l.map(function(f, p) {
4072
- return /* @__PURE__ */ G.createElement("input", {
4073
- key: "i-".concat(p),
4074
- name: c,
4075
- type: "hidden",
4076
- value: n.getOptionValue(f)
4077
- });
4078
- }) : /* @__PURE__ */ G.createElement("input", {
4079
- name: c,
4080
- type: "hidden"
4081
- });
4082
- return /* @__PURE__ */ G.createElement("div", null, v);
4083
- }
4084
- else {
4085
- var m = l[0] ? this.getOptionValue(l[0]) : "";
4086
- return /* @__PURE__ */ G.createElement("input", {
4087
- name: c,
4088
- type: "hidden",
4089
- value: m
4090
- });
4091
- }
4092
- }
4093
- }, {
4094
- key: "renderLiveRegion",
4095
- value: function() {
4096
- var n = this.commonProps, i = this.state, u = i.ariaSelection, o = i.focusedOption, s = i.focusedValue, c = i.isFocused, l = i.selectValue, d = this.getFocusableOptions();
4097
- return /* @__PURE__ */ G.createElement(Ka, S({}, n, {
4098
- id: this.getElementId("live-region"),
4099
- ariaSelection: u,
4100
- focusedOption: o,
4101
- focusedValue: s,
4102
- isFocused: c,
4103
- selectValue: l,
4104
- focusableOptions: d
4105
- }));
4106
- }
4107
- }, {
4108
- key: "render",
4109
- value: function() {
4110
- var n = this.getComponents(), i = n.Control, u = n.IndicatorsContainer, o = n.SelectContainer, s = n.ValueContainer, c = this.props, l = c.className, d = c.id, v = c.isDisabled, m = c.menuIsOpen, f = this.state.isFocused, p = this.commonProps = this.getCommonProps();
4111
- return /* @__PURE__ */ G.createElement(o, S({}, p, {
4112
- className: l,
4113
- innerProps: {
4114
- id: d,
4115
- onKeyDown: this.onKeyDown
4116
- },
4117
- isDisabled: v,
4118
- isFocused: f
4119
- }), this.renderLiveRegion(), /* @__PURE__ */ G.createElement(i, S({}, p, {
4120
- innerRef: this.getControlRef,
4121
- innerProps: {
4122
- onMouseDown: this.onControlMouseDown,
4123
- onTouchEnd: this.onControlTouchEnd
4124
- },
4125
- isDisabled: v,
4126
- isFocused: f,
4127
- menuIsOpen: m
4128
- }), /* @__PURE__ */ G.createElement(s, S({}, p, {
4129
- isDisabled: v
4130
- }), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ G.createElement(u, S({}, p, {
4131
- isDisabled: v
4132
- }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
4133
- }
4134
- }], [{
4135
- key: "getDerivedStateFromProps",
4136
- value: function(n, i) {
4137
- var u = i.prevProps, o = i.clearFocusValueOnUpdate, s = i.inputIsHiddenAfterUpdate, c = i.ariaSelection, l = i.isFocused, d = i.prevWasFocused, v = n.options, m = n.value, f = n.menuIsOpen, p = n.inputValue, g = n.isMulti, I = Ut(m), h = {};
4138
- if (u && (m !== u.value || v !== u.options || f !== u.menuIsOpen || p !== u.inputValue)) {
4139
- var y = f ? xu(n, I) : [], E = o ? Eu(i, I) : null, b = Gu(i, y);
4140
- h = {
4141
- selectValue: I,
4142
- focusedOption: b,
4143
- focusedValue: E,
4144
- clearFocusValueOnUpdate: !1
4145
- };
4146
- }
4147
- var B = s != null && n !== u ? {
4148
- inputIsHidden: s,
4149
- inputIsHiddenAfterUpdate: void 0
4150
- } : {}, A = c, P = l && d;
4151
- return l && !P && (A = {
4152
- value: we(g, I, I[0] || null),
4153
- options: I,
4154
- action: "initial-input-focus"
4155
- }, P = !d), c?.action === "initial-input-focus" && (A = null), w(w(w({}, h), B), {}, {
4156
- prevProps: n,
4157
- ariaSelection: A,
4158
- prevWasFocused: P
4159
- });
4160
- }
4161
- }]), r;
4162
- }(gt);
4163
- nr.defaultProps = Au;
4164
- var Bu = /* @__PURE__ */ ln(function(t, e) {
4165
- var r = La(t);
4166
- return /* @__PURE__ */ G.createElement(nr, S({
4167
- ref: e
4168
- }, r));
4169
- });
4170
- const Ru = Bu;
4171
- export {
4172
- Ru as R,
4173
- Za as c
4174
- };