@pfct/purple 1.5.0-rc.4 → 1.5.0-rc.6

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 (306) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/chunks/clsx.C11secjj.js +1 -0
  3. package/dist/chunks/clsx.OuTLNxxd.js +16 -0
  4. package/dist/chunks/index.55uP5Llv.js +23 -0
  5. package/dist/chunks/index.BB3W3jfD.js +58 -0
  6. package/dist/chunks/index.BKH_IfIv.js +734 -0
  7. package/dist/chunks/{index.styled.k71QzB1b.js → index.BOGczv4f.js} +265 -327
  8. package/dist/chunks/index.BSjRagb_.js +5 -0
  9. package/dist/chunks/index.Bl_fYP4h.js +78 -0
  10. package/dist/chunks/index.C6gQFc3A.js +1 -0
  11. package/dist/chunks/index.CDFgfSC_.js +106 -0
  12. package/dist/chunks/index.COC-ih10.js +1 -0
  13. package/dist/chunks/index.CSxTWj2O.js +1 -0
  14. package/dist/chunks/index.C_vToOO_.js +1 -0
  15. package/dist/chunks/{index.LN3KW-I4.js → index.Cc-miKAT.js} +1 -1
  16. package/dist/chunks/index.Crigd7-N.js +354 -0
  17. package/dist/chunks/index.Cw8-3kaP.js +1 -0
  18. package/dist/chunks/index.Cwg-luV1.js +60 -0
  19. package/dist/chunks/index.D1sqxe4V.js +13 -0
  20. package/dist/chunks/index.D44slB7j.js +1 -0
  21. package/dist/chunks/index.DBTu0V6e.js +1658 -0
  22. package/dist/chunks/index.DC_I05Aq.js +1 -0
  23. package/dist/chunks/index.DMhXgOEz.js +1 -0
  24. package/dist/chunks/index.DoZ51x4G.js +41 -0
  25. package/dist/chunks/index.DuekHEmj.js +6 -0
  26. package/dist/chunks/index.IrMKAFqG.js +773 -0
  27. package/dist/chunks/index.ZuOrgs85.js +1 -0
  28. package/dist/chunks/index.dlWziLJm.js +1 -0
  29. package/dist/chunks/index.wFBaTsPC.js +537 -0
  30. package/dist/components/Accordion/index.cjs.js +1 -1
  31. package/dist/components/Accordion/index.es.js +493 -342
  32. package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
  33. package/dist/components/Badge/BaseBadge/index.es.js +1 -1
  34. package/dist/components/Badge/BaseBadge/index.styled.cjs.js +1 -1
  35. package/dist/components/Badge/BaseBadge/index.styled.es.js +1 -1
  36. package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
  37. package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +24 -26
  38. package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
  39. package/dist/components/BottomSheet/NavBottomSheet/index.es.js +1 -1
  40. package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
  41. package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +1 -1
  42. package/dist/components/BottomSheet/index.cjs.js +1 -1
  43. package/dist/components/BottomSheet/index.es.js +1 -1
  44. package/dist/components/Button/BaseButton/index.cjs.js +1 -1
  45. package/dist/components/Button/BaseButton/index.es.js +1 -1
  46. package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
  47. package/dist/components/Button/DoubleButton/index.es.js +1 -1
  48. package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
  49. package/dist/components/Button/FloatBaseButton/index.es.js +1 -1
  50. package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
  51. package/dist/components/Button/FloatDoubleButton/index.es.js +1 -1
  52. package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
  53. package/dist/components/Button/FloatSingleButton/index.es.js +1 -1
  54. package/dist/components/Button/SingleButton/index.cjs.js +1 -1
  55. package/dist/components/Button/SingleButton/index.es.js +1 -1
  56. package/dist/components/Button/index.cjs.js +1 -1
  57. package/dist/components/Button/index.es.js +1 -1
  58. package/dist/components/Chips/BasicChips/index.styled.cjs.js +1 -1
  59. package/dist/components/Chips/BasicChips/index.styled.es.js +1 -1
  60. package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
  61. package/dist/components/Chips/ChipItem/index.es.js +22 -24
  62. package/dist/components/Chips/ChipItem/index.styled.cjs.js +1 -1
  63. package/dist/components/Chips/ChipItem/index.styled.es.js +21 -23
  64. package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
  65. package/dist/components/Chips/ChipsFrame/index.es.js +12 -12
  66. package/dist/components/Chips/ChipsFrame/index.styled.cjs.js +1 -1
  67. package/dist/components/Chips/ChipsFrame/index.styled.es.js +1 -1
  68. package/dist/components/Control/CheckMark/index.cjs.js +1 -1
  69. package/dist/components/Control/CheckMark/index.es.js +18 -20
  70. package/dist/components/Control/RadioButton/index.cjs.js +1 -1
  71. package/dist/components/Control/RadioButton/index.es.js +1 -1
  72. package/dist/components/Control/RadioButton/index.styled.cjs.js +1 -1
  73. package/dist/components/Control/RadioButton/index.styled.es.js +18 -20
  74. package/dist/components/Control/Switch/index.cjs.js +1 -1
  75. package/dist/components/Control/Switch/index.es.js +18 -20
  76. package/dist/components/Control/index.cjs.js +1 -1
  77. package/dist/components/Control/index.d.ts +2 -1
  78. package/dist/components/Control/index.es.js +4 -4
  79. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +1 -1
  80. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.es.js +19 -21
  81. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
  82. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +19 -21
  83. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +1 -1
  84. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.es.js +1 -1
  85. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +1 -1
  86. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.es.js +19 -21
  87. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
  88. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +19 -21
  89. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
  90. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +19 -21
  91. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.cjs.js +1 -1
  92. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.es.js +29 -31
  93. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
  94. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +1 -1
  95. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.cjs.js +1 -1
  96. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.es.js +1 -1
  97. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +1 -1
  98. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.es.js +14 -14
  99. package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
  100. package/dist/components/DatePicker/BaseDatePicker/index.es.js +28 -30
  101. package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
  102. package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +1 -1
  103. package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
  104. package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +17 -19
  105. package/dist/components/Input/NumberInput/index.cjs.js +1 -1
  106. package/dist/components/Input/NumberInput/index.es.js +50 -52
  107. package/dist/components/Input/PostfixInput/index.util.cjs.js +1 -1
  108. package/dist/components/Input/PostfixInput/index.util.es.js +21 -23
  109. package/dist/components/Input/TextField/index.cjs.js +1 -1
  110. package/dist/components/Input/TextField/index.es.js +12 -12
  111. package/dist/components/Input/index.cjs.js +1 -1
  112. package/dist/components/Input/index.es.js +29 -31
  113. package/dist/components/List/index.cjs.js +1 -1
  114. package/dist/components/List/index.es.js +8 -8
  115. package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
  116. package/dist/components/Loading/ProgressBar/index.es.js +1 -1
  117. package/dist/components/Loading/ProgressBar/index.styled.cjs.js +1 -1
  118. package/dist/components/Loading/ProgressBar/index.styled.es.js +19 -21
  119. package/dist/components/Loading/Spinner/index.cjs.js +1 -1
  120. package/dist/components/Loading/Spinner/index.es.js +1 -1
  121. package/dist/components/Loading/index.cjs.js +1 -1
  122. package/dist/components/Loading/index.es.js +1 -1
  123. package/dist/components/MiniButton/BoxMiniButton/index.cjs.js +1 -1
  124. package/dist/components/MiniButton/BoxMiniButton/index.es.js +4 -4
  125. package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
  126. package/dist/components/MiniButton/IconMiniButton/index.es.js +3 -3
  127. package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
  128. package/dist/components/MiniButton/UnderLineMiniButton/index.es.js +13 -13
  129. package/dist/components/MiniButton/common/index.styled.cjs.js +1 -1
  130. package/dist/components/MiniButton/common/index.styled.es.js +20 -22
  131. package/dist/components/Modal/BaseModal/index.cjs.js +1 -1
  132. package/dist/components/Modal/BaseModal/index.es.js +1 -1
  133. package/dist/components/Modal/index.cjs.js +1 -1
  134. package/dist/components/Modal/index.es.js +1 -1
  135. package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
  136. package/dist/components/Navigation/BaseNavigation/index.es.js +9 -9
  137. package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
  138. package/dist/components/Navigation/BottomNavigationBar/index.es.js +5 -5
  139. package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
  140. package/dist/components/Navigation/PageNavigationBar/index.es.js +12 -12
  141. package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
  142. package/dist/components/Navigation/TitleNavigationBar/index.es.js +10 -10
  143. package/dist/components/Navigation/index.cjs.js +1 -1
  144. package/dist/components/Navigation/index.es.js +14 -14
  145. package/dist/components/OverlayRoot/index.cjs.js +1 -1
  146. package/dist/components/OverlayRoot/index.es.js +18 -20
  147. package/dist/components/Segment/BaseSegment/index.styled.cjs.js +1 -1
  148. package/dist/components/Segment/BaseSegment/index.styled.es.js +1 -1
  149. package/dist/components/Segment/ExtendSegment/index.styled.cjs.js +1 -1
  150. package/dist/components/Segment/ExtendSegment/index.styled.es.js +1 -1
  151. package/dist/components/SelectBox/index.cjs.js +1 -1
  152. package/dist/components/SelectBox/index.es.js +13 -13
  153. package/dist/components/SelectBox/index.styled.cjs.js +1 -1
  154. package/dist/components/SelectBox/index.styled.es.js +25 -27
  155. package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
  156. package/dist/components/Tabs/FillTabs/index.es.js +20 -22
  157. package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
  158. package/dist/components/Tabs/TextTabs/index.d.ts +15 -11
  159. package/dist/components/Tabs/TextTabs/index.es.js +53 -66
  160. package/dist/components/Tabs/index.cjs.js +1 -1
  161. package/dist/components/Tabs/index.es.js +5 -4
  162. package/dist/components/Tag/index.cjs.js +1 -1
  163. package/dist/components/Tag/index.es.js +1 -1
  164. package/dist/components/Tag/index.styled.cjs.js +1 -1
  165. package/dist/components/Tag/index.styled.es.js +18 -20
  166. package/dist/components/Terms/index.cjs.js +1 -1
  167. package/dist/components/Terms/index.es.js +15 -16
  168. package/dist/components/TextArea/index.cjs.js +1 -0
  169. package/dist/components/TextArea/index.d.ts +80 -0
  170. package/dist/components/TextArea/index.es.js +30 -0
  171. package/dist/components/Title/index.cjs.js +1 -1
  172. package/dist/components/Title/index.es.js +1 -1
  173. package/dist/components/Title/index.styled.cjs.js +1 -1
  174. package/dist/components/Title/index.styled.es.js +21 -23
  175. package/dist/components/Toast/index.cjs.js +1 -0
  176. package/dist/components/Toast/index.d.ts +5 -0
  177. package/dist/components/Toast/index.es.js +36 -0
  178. package/dist/components/index.cjs.js +1 -1
  179. package/dist/components/index.d.ts +4 -2
  180. package/dist/components/index.es.js +102 -90
  181. package/dist/components/ui/bottomSheet.cjs.js +13 -13
  182. package/dist/components/ui/bottomSheet.es.js +76 -71
  183. package/dist/components/ui/button.cjs.js +1 -1
  184. package/dist/components/ui/button.es.js +4 -4
  185. package/dist/components/ui/checkbox.cjs.js +1 -0
  186. package/dist/components/ui/checkbox.d.ts +9 -0
  187. package/dist/components/ui/checkbox.es.js +448 -0
  188. package/dist/components/ui/dialog.cjs.js +1 -1
  189. package/dist/components/ui/dialog.es.js +30 -30
  190. package/dist/components/ui/drawer.cjs.js +1 -1
  191. package/dist/components/ui/drawer.es.js +2 -2
  192. package/dist/components/ui/impact-tooltip.cjs.js +1 -0
  193. package/dist/components/ui/impact-tooltip.d.ts +16 -0
  194. package/dist/components/ui/impact-tooltip.es.js +461 -0
  195. package/dist/components/ui/share-ui.cjs.js +1 -1
  196. package/dist/components/ui/share-ui.es.js +2 -2
  197. package/dist/components/ui/tooltip.cjs.js +1 -0
  198. package/dist/components/ui/tooltip.d.ts +9 -0
  199. package/dist/components/ui/tooltip.es.js +387 -0
  200. package/dist/components/ui/typography.cjs.js +1 -1
  201. package/dist/components/ui/typography.es.js +3 -3
  202. package/dist/core/Colors/index.cjs.js +1 -1
  203. package/dist/core/Colors/index.d.ts +0 -4
  204. package/dist/core/Colors/index.es.js +4 -8
  205. package/dist/core/Display/Mobile.cjs.js +1 -1
  206. package/dist/core/Display/Mobile.es.js +1 -1
  207. package/dist/core/Display/Pc.cjs.js +1 -1
  208. package/dist/core/Display/Pc.es.js +1 -1
  209. package/dist/core/Display/index.styled.cjs.js +1 -1
  210. package/dist/core/Display/index.styled.es.js +19 -21
  211. package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
  212. package/dist/core/Typography/BaseTypography/index.es.js +2 -2
  213. package/dist/hooks/useLayoutIsMobile.cjs.js +1 -1
  214. package/dist/hooks/useLayoutIsMobile.es.js +19 -21
  215. package/dist/icons/src/aliases/aliases.cjs.js +1 -1
  216. package/dist/icons/src/aliases/aliases.d.ts +11 -11
  217. package/dist/icons/src/aliases/aliases.es.js +36 -36
  218. package/dist/icons/src/aliases/index.cjs.js +1 -1
  219. package/dist/icons/src/aliases/index.es.js +72 -72
  220. package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
  221. package/dist/icons/src/aliases/prefixed.d.ts +18 -18
  222. package/dist/icons/src/aliases/prefixed.es.js +50 -50
  223. package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
  224. package/dist/icons/src/aliases/suffixed.d.ts +18 -18
  225. package/dist/icons/src/aliases/suffixed.es.js +50 -50
  226. package/dist/icons/src/icons/index.cjs.js +1 -1
  227. package/dist/icons/src/icons/index.d.ts +11 -11
  228. package/dist/icons/src/icons/index.es.js +42 -42
  229. package/dist/index.cjs.js +1 -1
  230. package/dist/index.es.js +290 -278
  231. package/dist/lib/utils.cjs.js +1 -1
  232. package/dist/lib/utils.es.js +2729 -2
  233. package/dist/library/BasicLayout/Footer.cjs.js +1 -1
  234. package/dist/library/BasicLayout/Footer.d.ts +2 -2
  235. package/dist/library/BasicLayout/Footer.es.js +37 -36
  236. package/dist/library/BasicLayout/index.cjs.js +1 -1
  237. package/dist/library/BasicLayout/index.d.ts +1 -1
  238. package/dist/library/BasicLayout/index.es.js +22 -24
  239. package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
  240. package/dist/library/BasicLayout/index.styled.es.js +47 -49
  241. package/dist/utils/GenerateColorStyle/chip.cjs.js +1 -1
  242. package/dist/utils/GenerateColorStyle/chip.es.js +1 -1
  243. package/dist/utils/GenerateColorStyle/index.cjs.js +1 -1
  244. package/dist/utils/GenerateColorStyle/index.es.js +1 -1
  245. package/dist/utils/GenerateColorStyle/tab/fill-tabs.cjs.js +1 -1
  246. package/dist/utils/GenerateColorStyle/tab/fill-tabs.es.js +19 -21
  247. package/dist/utils/GenerateColorStyle/tab/text-tabs.cjs.js +1 -1
  248. package/dist/utils/GenerateColorStyle/tab/text-tabs.es.js +19 -21
  249. package/dist/utils/index.cjs.js +1 -1
  250. package/dist/utils/index.es.js +1 -1
  251. package/package.json +9 -4
  252. package/dist/chunks/index.B0KRXeX3.js +0 -205
  253. package/dist/chunks/index.BiFBNKMb.js +0 -51
  254. package/dist/chunks/index.C4mr2-78.js +0 -1
  255. package/dist/chunks/index.CAOufkQO.js +0 -1072
  256. package/dist/chunks/index.Dazlhpef.js +0 -45
  257. package/dist/chunks/index.DnJQUgiG.js +0 -1
  258. package/dist/chunks/index.SS1p-Ys5.js +0 -1
  259. package/dist/chunks/index.styled.DZTRSD4q.js +0 -412
  260. package/dist/chunks/utils.B9KdtH6G.js +0 -2493
  261. package/dist/chunks/utils.Gb5_Gcy7.js +0 -1
  262. package/dist/components/Control/CheckBox/CheckIcon.cjs.js +0 -1
  263. package/dist/components/Control/CheckBox/CheckIcon.d.ts +0 -6
  264. package/dist/components/Control/CheckBox/CheckIcon.es.js +0 -26
  265. package/dist/components/Control/CheckBox/index.cjs.js +0 -1
  266. package/dist/components/Control/CheckBox/index.d.ts +0 -12
  267. package/dist/components/Control/CheckBox/index.es.js +0 -96
  268. package/dist/components/Control/CheckBox/index.styled.cjs.js +0 -24
  269. package/dist/components/Control/CheckBox/index.styled.d.ts +0 -18
  270. package/dist/components/Control/CheckBox/index.styled.es.js +0 -30
  271. package/dist/components/Stepper/Step.cjs.js +0 -1
  272. package/dist/components/Stepper/Step.d.ts +0 -13
  273. package/dist/components/Stepper/Step.es.js +0 -46
  274. package/dist/components/Stepper/index.cjs.js +0 -1
  275. package/dist/components/Stepper/index.d.ts +0 -10
  276. package/dist/components/Stepper/index.es.js +0 -35
  277. package/dist/components/ToastMessage/BaseToastMessage/index.cjs.js +0 -1
  278. package/dist/components/ToastMessage/BaseToastMessage/index.d.ts +0 -13
  279. package/dist/components/ToastMessage/BaseToastMessage/index.es.js +0 -25
  280. package/dist/components/ToastMessage/BaseToastMessage/index.styled.cjs.js +0 -1
  281. package/dist/components/ToastMessage/BaseToastMessage/index.styled.d.ts +0 -10
  282. package/dist/components/ToastMessage/BaseToastMessage/index.styled.es.js +0 -80
  283. package/dist/components/ToastMessage/Toast/index.cjs.js +0 -1
  284. package/dist/components/ToastMessage/Toast/index.d.ts +0 -13
  285. package/dist/components/ToastMessage/Toast/index.es.js +0 -32
  286. package/dist/components/ToastMessage/Toast/index.styled.cjs.js +0 -13
  287. package/dist/components/ToastMessage/Toast/index.styled.d.ts +0 -8
  288. package/dist/components/ToastMessage/Toast/index.styled.es.js +0 -18
  289. package/dist/components/ToastMessage/index.cjs.js +0 -1
  290. package/dist/components/ToastMessage/index.d.ts +0 -1
  291. package/dist/components/ToastMessage/index.es.js +0 -4
  292. package/dist/components/Tooltip/BasicTooltip/index.cjs.js +0 -1
  293. package/dist/components/Tooltip/BasicTooltip/index.d.ts +0 -5
  294. package/dist/components/Tooltip/BasicTooltip/index.es.js +0 -6
  295. package/dist/components/Tooltip/ImpactTooltip/index.cjs.js +0 -1
  296. package/dist/components/Tooltip/ImpactTooltip/index.d.ts +0 -7
  297. package/dist/components/Tooltip/ImpactTooltip/index.es.js +0 -23
  298. package/dist/components/Tooltip/TooltipBase/index.cjs.js +0 -8
  299. package/dist/components/Tooltip/TooltipBase/index.d.ts +0 -18
  300. package/dist/components/Tooltip/TooltipBase/index.es.js +0 -146
  301. package/dist/components/Tooltip/TooltipBase/index.styled.cjs.js +0 -107
  302. package/dist/components/Tooltip/TooltipBase/index.styled.d.ts +0 -22
  303. package/dist/components/Tooltip/TooltipBase/index.styled.es.js +0 -2006
  304. package/dist/components/Tooltip/index.cjs.js +0 -1
  305. package/dist/components/Tooltip/index.d.ts +0 -6
  306. package/dist/components/Tooltip/index.es.js +0 -6
@@ -1,2006 +0,0 @@
1
- import st from "@emotion/styled";
2
- import gt, { forwardRef as Pr, cloneElement as er, useState as ft, useLayoutEffect as Nr, useEffect as Rr, useRef as $r } from "react";
3
- import { createPortal as Mr } from "react-dom";
4
- import { body2 as Br } from "../../../core/TextStyles/index.es.js";
5
- var F = "top", G = "bottom", K = "right", _ = "left", At = "auto", Ue = [F, G, K, _], Te = "start", Ve = "end", kr = "clippingParents", tr = "viewport", $e = "popper", Vr = "reference", Rt = /* @__PURE__ */ Ue.reduce(function(e, t) {
6
- return e.concat([t + "-" + Te, t + "-" + Ve]);
7
- }, []), rr = /* @__PURE__ */ [].concat(Ue, [At]).reduce(function(e, t) {
8
- return e.concat([t, t + "-" + Te, t + "-" + Ve]);
9
- }, []), Ir = "beforeRead", Wr = "read", Hr = "afterRead", Ur = "beforeMain", Fr = "main", _r = "afterMain", qr = "beforeWrite", zr = "write", Yr = "afterWrite", Xr = [Ir, Wr, Hr, Ur, Fr, _r, qr, zr, Yr];
10
- function te(e) {
11
- return e ? (e.nodeName || "").toLowerCase() : null;
12
- }
13
- function z(e) {
14
- if (e == null)
15
- return window;
16
- if (e.toString() !== "[object Window]") {
17
- var t = e.ownerDocument;
18
- return t && t.defaultView || window;
19
- }
20
- return e;
21
- }
22
- function ge(e) {
23
- var t = z(e).Element;
24
- return e instanceof t || e instanceof Element;
25
- }
26
- function X(e) {
27
- var t = z(e).HTMLElement;
28
- return e instanceof t || e instanceof HTMLElement;
29
- }
30
- function Tt(e) {
31
- if (typeof ShadowRoot > "u")
32
- return !1;
33
- var t = z(e).ShadowRoot;
34
- return e instanceof t || e instanceof ShadowRoot;
35
- }
36
- function Gr(e) {
37
- var t = e.state;
38
- Object.keys(t.elements).forEach(function(r) {
39
- var n = t.styles[r] || {}, o = t.attributes[r] || {}, a = t.elements[r];
40
- !X(a) || !te(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(u) {
41
- var c = o[u];
42
- c === !1 ? a.removeAttribute(u) : a.setAttribute(u, c === !0 ? "" : c);
43
- }));
44
- });
45
- }
46
- function Kr(e) {
47
- var t = e.state, r = {
48
- popper: {
49
- position: t.options.strategy,
50
- left: "0",
51
- top: "0",
52
- margin: "0"
53
- },
54
- arrow: {
55
- position: "absolute"
56
- },
57
- reference: {}
58
- };
59
- return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
60
- Object.keys(t.elements).forEach(function(n) {
61
- var o = t.elements[n], a = t.attributes[n] || {}, u = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), c = u.reduce(function(p, l) {
62
- return p[l] = "", p;
63
- }, {});
64
- !X(o) || !te(o) || (Object.assign(o.style, c), Object.keys(a).forEach(function(p) {
65
- o.removeAttribute(p);
66
- }));
67
- });
68
- };
69
- }
70
- const nr = {
71
- name: "applyStyles",
72
- enabled: !0,
73
- phase: "write",
74
- fn: Gr,
75
- effect: Kr,
76
- requires: ["computeStyles"]
77
- };
78
- function ee(e) {
79
- return e.split("-")[0];
80
- }
81
- var he = Math.max, ot = Math.min, De = Math.round;
82
- function yt() {
83
- var e = navigator.userAgentData;
84
- return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
85
- return t.brand + "/" + t.version;
86
- }).join(" ") : navigator.userAgent;
87
- }
88
- function ir() {
89
- return !/^((?!chrome|android).)*safari/i.test(yt());
90
- }
91
- function Ce(e, t, r) {
92
- t === void 0 && (t = !1), r === void 0 && (r = !1);
93
- var n = e.getBoundingClientRect(), o = 1, a = 1;
94
- t && X(e) && (o = e.offsetWidth > 0 && De(n.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && De(n.height) / e.offsetHeight || 1);
95
- var u = ge(e) ? z(e) : window, c = u.visualViewport, p = !ir() && r, l = (n.left + (p && c ? c.offsetLeft : 0)) / o, f = (n.top + (p && c ? c.offsetTop : 0)) / a, b = n.width / o, x = n.height / a;
96
- return {
97
- width: b,
98
- height: x,
99
- top: f,
100
- right: l + b,
101
- bottom: f + x,
102
- left: l,
103
- x: l,
104
- y: f
105
- };
106
- }
107
- function Dt(e) {
108
- var t = Ce(e), r = e.offsetWidth, n = e.offsetHeight;
109
- return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
110
- x: e.offsetLeft,
111
- y: e.offsetTop,
112
- width: r,
113
- height: n
114
- };
115
- }
116
- function or(e, t) {
117
- var r = t.getRootNode && t.getRootNode();
118
- if (e.contains(t))
119
- return !0;
120
- if (r && Tt(r)) {
121
- var n = t;
122
- do {
123
- if (n && e.isSameNode(n))
124
- return !0;
125
- n = n.parentNode || n.host;
126
- } while (n);
127
- }
128
- return !1;
129
- }
130
- function se(e) {
131
- return z(e).getComputedStyle(e);
132
- }
133
- function Jr(e) {
134
- return ["table", "td", "th"].indexOf(te(e)) >= 0;
135
- }
136
- function ce(e) {
137
- return ((ge(e) ? e.ownerDocument : (
138
- // $FlowFixMe[prop-missing]
139
- e.document
140
- )) || window.document).documentElement;
141
- }
142
- function pt(e) {
143
- return te(e) === "html" ? e : (
144
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
145
- // $FlowFixMe[incompatible-return]
146
- // $FlowFixMe[prop-missing]
147
- e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
148
- e.parentNode || // DOM Element detected
149
- (Tt(e) ? e.host : null) || // ShadowRoot detected
150
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
151
- ce(e)
152
- );
153
- }
154
- function $t(e) {
155
- return !X(e) || // https://github.com/popperjs/popper-core/issues/837
156
- se(e).position === "fixed" ? null : e.offsetParent;
157
- }
158
- function Qr(e) {
159
- var t = /firefox/i.test(yt()), r = /Trident/i.test(yt());
160
- if (r && X(e)) {
161
- var n = se(e);
162
- if (n.position === "fixed")
163
- return null;
164
- }
165
- var o = pt(e);
166
- for (Tt(o) && (o = o.host); X(o) && ["html", "body"].indexOf(te(o)) < 0; ) {
167
- var a = se(o);
168
- if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none")
169
- return o;
170
- o = o.parentNode;
171
- }
172
- return null;
173
- }
174
- function Fe(e) {
175
- for (var t = z(e), r = $t(e); r && Jr(r) && se(r).position === "static"; )
176
- r = $t(r);
177
- return r && (te(r) === "html" || te(r) === "body" && se(r).position === "static") ? t : r || Qr(e) || t;
178
- }
179
- function Ct(e) {
180
- return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
181
- }
182
- function Me(e, t, r) {
183
- return he(e, ot(t, r));
184
- }
185
- function Zr(e, t, r) {
186
- var n = Me(e, t, r);
187
- return n > r ? r : n;
188
- }
189
- function ar() {
190
- return {
191
- top: 0,
192
- right: 0,
193
- bottom: 0,
194
- left: 0
195
- };
196
- }
197
- function sr(e) {
198
- return Object.assign({}, ar(), e);
199
- }
200
- function pr(e, t) {
201
- return t.reduce(function(r, n) {
202
- return r[n] = e, r;
203
- }, {});
204
- }
205
- var en = function(t, r) {
206
- return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
207
- placement: r.placement
208
- })) : t, sr(typeof t != "number" ? t : pr(t, Ue));
209
- };
210
- function tn(e) {
211
- var t, r = e.state, n = e.name, o = e.options, a = r.elements.arrow, u = r.modifiersData.popperOffsets, c = ee(r.placement), p = Ct(c), l = [_, K].indexOf(c) >= 0, f = l ? "height" : "width";
212
- if (!(!a || !u)) {
213
- var b = en(o.padding, r), x = Dt(a), m = p === "y" ? F : _, w = p === "y" ? G : K, g = r.rects.reference[f] + r.rects.reference[p] - u[p] - r.rects.popper[f], y = u[p] - r.rects.reference[p], D = Fe(a), j = D ? p === "y" ? D.clientHeight || 0 : D.clientWidth || 0 : 0, N = g / 2 - y / 2, i = b[m], E = j - x[f] - b[w], d = j / 2 - x[f] / 2 + N, P = Me(i, d, E), B = p;
214
- r.modifiersData[n] = (t = {}, t[B] = P, t.centerOffset = P - d, t);
215
- }
216
- }
217
- function rn(e) {
218
- var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
219
- o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || or(t.elements.popper, o) && (t.elements.arrow = o));
220
- }
221
- const nn = {
222
- name: "arrow",
223
- enabled: !0,
224
- phase: "main",
225
- fn: tn,
226
- effect: rn,
227
- requires: ["popperOffsets"],
228
- requiresIfExists: ["preventOverflow"]
229
- };
230
- function Se(e) {
231
- return e.split("-")[1];
232
- }
233
- var on = {
234
- top: "auto",
235
- right: "auto",
236
- bottom: "auto",
237
- left: "auto"
238
- };
239
- function an(e, t) {
240
- var r = e.x, n = e.y, o = t.devicePixelRatio || 1;
241
- return {
242
- x: De(r * o) / o || 0,
243
- y: De(n * o) / o || 0
244
- };
245
- }
246
- function Mt(e) {
247
- var t, r = e.popper, n = e.popperRect, o = e.placement, a = e.variation, u = e.offsets, c = e.position, p = e.gpuAcceleration, l = e.adaptive, f = e.roundOffsets, b = e.isFixed, x = u.x, m = x === void 0 ? 0 : x, w = u.y, g = w === void 0 ? 0 : w, y = typeof f == "function" ? f({
248
- x: m,
249
- y: g
250
- }) : {
251
- x: m,
252
- y: g
253
- };
254
- m = y.x, g = y.y;
255
- var D = u.hasOwnProperty("x"), j = u.hasOwnProperty("y"), N = _, i = F, E = window;
256
- if (l) {
257
- var d = Fe(r), P = "clientHeight", B = "clientWidth";
258
- if (d === z(r) && (d = ce(r), se(d).position !== "static" && c === "absolute" && (P = "scrollHeight", B = "scrollWidth")), d = d, o === F || (o === _ || o === K) && a === Ve) {
259
- i = G;
260
- var T = b && d === E && E.visualViewport ? E.visualViewport.height : (
261
- // $FlowFixMe[prop-missing]
262
- d[P]
263
- );
264
- g -= T - n.height, g *= p ? 1 : -1;
265
- }
266
- if (o === _ || (o === F || o === G) && a === Ve) {
267
- N = K;
268
- var C = b && d === E && E.visualViewport ? E.visualViewport.width : (
269
- // $FlowFixMe[prop-missing]
270
- d[B]
271
- );
272
- m -= C - n.width, m *= p ? 1 : -1;
273
- }
274
- }
275
- var $ = Object.assign({
276
- position: c
277
- }, l && on), M = f === !0 ? an({
278
- x: m,
279
- y: g
280
- }, z(r)) : {
281
- x: m,
282
- y: g
283
- };
284
- if (m = M.x, g = M.y, p) {
285
- var R;
286
- return Object.assign({}, $, (R = {}, R[i] = j ? "0" : "", R[N] = D ? "0" : "", R.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + g + "px)" : "translate3d(" + m + "px, " + g + "px, 0)", R));
287
- }
288
- return Object.assign({}, $, (t = {}, t[i] = j ? g + "px" : "", t[N] = D ? m + "px" : "", t.transform = "", t));
289
- }
290
- function sn(e) {
291
- var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, a = r.adaptive, u = a === void 0 ? !0 : a, c = r.roundOffsets, p = c === void 0 ? !0 : c, l = {
292
- placement: ee(t.placement),
293
- variation: Se(t.placement),
294
- popper: t.elements.popper,
295
- popperRect: t.rects.popper,
296
- gpuAcceleration: o,
297
- isFixed: t.options.strategy === "fixed"
298
- };
299
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Mt(Object.assign({}, l, {
300
- offsets: t.modifiersData.popperOffsets,
301
- position: t.options.strategy,
302
- adaptive: u,
303
- roundOffsets: p
304
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Mt(Object.assign({}, l, {
305
- offsets: t.modifiersData.arrow,
306
- position: "absolute",
307
- adaptive: !1,
308
- roundOffsets: p
309
- })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
310
- "data-popper-placement": t.placement
311
- });
312
- }
313
- const pn = {
314
- name: "computeStyles",
315
- enabled: !0,
316
- phase: "beforeWrite",
317
- fn: sn,
318
- data: {}
319
- };
320
- var rt = {
321
- passive: !0
322
- };
323
- function un(e) {
324
- var t = e.state, r = e.instance, n = e.options, o = n.scroll, a = o === void 0 ? !0 : o, u = n.resize, c = u === void 0 ? !0 : u, p = z(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
325
- return a && l.forEach(function(f) {
326
- f.addEventListener("scroll", r.update, rt);
327
- }), c && p.addEventListener("resize", r.update, rt), function() {
328
- a && l.forEach(function(f) {
329
- f.removeEventListener("scroll", r.update, rt);
330
- }), c && p.removeEventListener("resize", r.update, rt);
331
- };
332
- }
333
- const cn = {
334
- name: "eventListeners",
335
- enabled: !0,
336
- phase: "write",
337
- fn: function() {
338
- },
339
- effect: un,
340
- data: {}
341
- };
342
- var fn = {
343
- left: "right",
344
- right: "left",
345
- bottom: "top",
346
- top: "bottom"
347
- };
348
- function it(e) {
349
- return e.replace(/left|right|bottom|top/g, function(t) {
350
- return fn[t];
351
- });
352
- }
353
- var ln = {
354
- start: "end",
355
- end: "start"
356
- };
357
- function Bt(e) {
358
- return e.replace(/start|end/g, function(t) {
359
- return ln[t];
360
- });
361
- }
362
- function St(e) {
363
- var t = z(e), r = t.pageXOffset, n = t.pageYOffset;
364
- return {
365
- scrollLeft: r,
366
- scrollTop: n
367
- };
368
- }
369
- function jt(e) {
370
- return Ce(ce(e)).left + St(e).scrollLeft;
371
- }
372
- function dn(e, t) {
373
- var r = z(e), n = ce(e), o = r.visualViewport, a = n.clientWidth, u = n.clientHeight, c = 0, p = 0;
374
- if (o) {
375
- a = o.width, u = o.height;
376
- var l = ir();
377
- (l || !l && t === "fixed") && (c = o.offsetLeft, p = o.offsetTop);
378
- }
379
- return {
380
- width: a,
381
- height: u,
382
- x: c + jt(e),
383
- y: p
384
- };
385
- }
386
- function vn(e) {
387
- var t, r = ce(e), n = St(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = he(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), u = he(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), c = -n.scrollLeft + jt(e), p = -n.scrollTop;
388
- return se(o || r).direction === "rtl" && (c += he(r.clientWidth, o ? o.clientWidth : 0) - a), {
389
- width: a,
390
- height: u,
391
- x: c,
392
- y: p
393
- };
394
- }
395
- function Lt(e) {
396
- var t = se(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
397
- return /auto|scroll|overlay|hidden/.test(r + o + n);
398
- }
399
- function ur(e) {
400
- return ["html", "body", "#document"].indexOf(te(e)) >= 0 ? e.ownerDocument.body : X(e) && Lt(e) ? e : ur(pt(e));
401
- }
402
- function Be(e, t) {
403
- var r;
404
- t === void 0 && (t = []);
405
- var n = ur(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), a = z(n), u = o ? [a].concat(a.visualViewport || [], Lt(n) ? n : []) : n, c = t.concat(u);
406
- return o ? c : (
407
- // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
408
- c.concat(Be(pt(u)))
409
- );
410
- }
411
- function bt(e) {
412
- return Object.assign({}, e, {
413
- left: e.x,
414
- top: e.y,
415
- right: e.x + e.width,
416
- bottom: e.y + e.height
417
- });
418
- }
419
- function mn(e, t) {
420
- var r = Ce(e, !1, t === "fixed");
421
- return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
422
- }
423
- function kt(e, t, r) {
424
- return t === tr ? bt(dn(e, r)) : ge(t) ? mn(t, r) : bt(vn(ce(e)));
425
- }
426
- function hn(e) {
427
- var t = Be(pt(e)), r = ["absolute", "fixed"].indexOf(se(e).position) >= 0, n = r && X(e) ? Fe(e) : e;
428
- return ge(n) ? t.filter(function(o) {
429
- return ge(o) && or(o, n) && te(o) !== "body";
430
- }) : [];
431
- }
432
- function gn(e, t, r, n) {
433
- var o = t === "clippingParents" ? hn(e) : [].concat(t), a = [].concat(o, [r]), u = a[0], c = a.reduce(function(p, l) {
434
- var f = kt(e, l, n);
435
- return p.top = he(f.top, p.top), p.right = ot(f.right, p.right), p.bottom = ot(f.bottom, p.bottom), p.left = he(f.left, p.left), p;
436
- }, kt(e, u, n));
437
- return c.width = c.right - c.left, c.height = c.bottom - c.top, c.x = c.left, c.y = c.top, c;
438
- }
439
- function cr(e) {
440
- var t = e.reference, r = e.element, n = e.placement, o = n ? ee(n) : null, a = n ? Se(n) : null, u = t.x + t.width / 2 - r.width / 2, c = t.y + t.height / 2 - r.height / 2, p;
441
- switch (o) {
442
- case F:
443
- p = {
444
- x: u,
445
- y: t.y - r.height
446
- };
447
- break;
448
- case G:
449
- p = {
450
- x: u,
451
- y: t.y + t.height
452
- };
453
- break;
454
- case K:
455
- p = {
456
- x: t.x + t.width,
457
- y: c
458
- };
459
- break;
460
- case _:
461
- p = {
462
- x: t.x - r.width,
463
- y: c
464
- };
465
- break;
466
- default:
467
- p = {
468
- x: t.x,
469
- y: t.y
470
- };
471
- }
472
- var l = o ? Ct(o) : null;
473
- if (l != null) {
474
- var f = l === "y" ? "height" : "width";
475
- switch (a) {
476
- case Te:
477
- p[l] = p[l] - (t[f] / 2 - r[f] / 2);
478
- break;
479
- case Ve:
480
- p[l] = p[l] + (t[f] / 2 - r[f] / 2);
481
- break;
482
- }
483
- }
484
- return p;
485
- }
486
- function Ie(e, t) {
487
- t === void 0 && (t = {});
488
- var r = t, n = r.placement, o = n === void 0 ? e.placement : n, a = r.strategy, u = a === void 0 ? e.strategy : a, c = r.boundary, p = c === void 0 ? kr : c, l = r.rootBoundary, f = l === void 0 ? tr : l, b = r.elementContext, x = b === void 0 ? $e : b, m = r.altBoundary, w = m === void 0 ? !1 : m, g = r.padding, y = g === void 0 ? 0 : g, D = sr(typeof y != "number" ? y : pr(y, Ue)), j = x === $e ? Vr : $e, N = e.rects.popper, i = e.elements[w ? j : x], E = gn(ge(i) ? i : i.contextElement || ce(e.elements.popper), p, f, u), d = Ce(e.elements.reference), P = cr({
489
- reference: d,
490
- element: N,
491
- placement: o
492
- }), B = bt(Object.assign({}, N, P)), T = x === $e ? B : d, C = {
493
- top: E.top - T.top + D.top,
494
- bottom: T.bottom - E.bottom + D.bottom,
495
- left: E.left - T.left + D.left,
496
- right: T.right - E.right + D.right
497
- }, $ = e.modifiersData.offset;
498
- if (x === $e && $) {
499
- var M = $[o];
500
- Object.keys(C).forEach(function(R) {
501
- var L = [K, G].indexOf(R) >= 0 ? 1 : -1, O = [F, G].indexOf(R) >= 0 ? "y" : "x";
502
- C[R] += M[O] * L;
503
- });
504
- }
505
- return C;
506
- }
507
- function yn(e, t) {
508
- t === void 0 && (t = {});
509
- var r = t, n = r.placement, o = r.boundary, a = r.rootBoundary, u = r.padding, c = r.flipVariations, p = r.allowedAutoPlacements, l = p === void 0 ? rr : p, f = Se(n), b = f ? c ? Rt : Rt.filter(function(w) {
510
- return Se(w) === f;
511
- }) : Ue, x = b.filter(function(w) {
512
- return l.indexOf(w) >= 0;
513
- });
514
- x.length === 0 && (x = b);
515
- var m = x.reduce(function(w, g) {
516
- return w[g] = Ie(e, {
517
- placement: g,
518
- boundary: o,
519
- rootBoundary: a,
520
- padding: u
521
- })[ee(g)], w;
522
- }, {});
523
- return Object.keys(m).sort(function(w, g) {
524
- return m[w] - m[g];
525
- });
526
- }
527
- function bn(e) {
528
- if (ee(e) === At)
529
- return [];
530
- var t = it(e);
531
- return [Bt(e), t, Bt(t)];
532
- }
533
- function wn(e) {
534
- var t = e.state, r = e.options, n = e.name;
535
- if (!t.modifiersData[n]._skip) {
536
- for (var o = r.mainAxis, a = o === void 0 ? !0 : o, u = r.altAxis, c = u === void 0 ? !0 : u, p = r.fallbackPlacements, l = r.padding, f = r.boundary, b = r.rootBoundary, x = r.altBoundary, m = r.flipVariations, w = m === void 0 ? !0 : m, g = r.allowedAutoPlacements, y = t.options.placement, D = ee(y), j = D === y, N = p || (j || !w ? [it(y)] : bn(y)), i = [y].concat(N).reduce(function(re, J) {
537
- return re.concat(ee(J) === At ? yn(t, {
538
- placement: J,
539
- boundary: f,
540
- rootBoundary: b,
541
- padding: l,
542
- flipVariations: w,
543
- allowedAutoPlacements: g
544
- }) : J);
545
- }, []), E = t.rects.reference, d = t.rects.popper, P = /* @__PURE__ */ new Map(), B = !0, T = i[0], C = 0; C < i.length; C++) {
546
- var $ = i[C], M = ee($), R = Se($) === Te, L = [F, G].indexOf(M) >= 0, O = L ? "width" : "height", I = Ie(t, {
547
- placement: $,
548
- boundary: f,
549
- rootBoundary: b,
550
- altBoundary: x,
551
- padding: l
552
- }), V = L ? R ? K : _ : R ? G : F;
553
- E[O] > d[O] && (V = it(V));
554
- var k = it(V), H = [];
555
- if (a && H.push(I[M] <= 0), c && H.push(I[V] <= 0, I[k] <= 0), H.every(function(re) {
556
- return re;
557
- })) {
558
- T = $, B = !1;
559
- break;
560
- }
561
- P.set($, H);
562
- }
563
- if (B)
564
- for (var W = w ? 3 : 1, fe = function(J) {
565
- var ne = i.find(function(ye) {
566
- var ie = P.get(ye);
567
- if (ie)
568
- return ie.slice(0, J).every(function(be) {
569
- return be;
570
- });
571
- });
572
- if (ne)
573
- return T = ne, "break";
574
- }, Q = W; Q > 0; Q--) {
575
- var le = fe(Q);
576
- if (le === "break") break;
577
- }
578
- t.placement !== T && (t.modifiersData[n]._skip = !0, t.placement = T, t.reset = !0);
579
- }
580
- }
581
- const On = {
582
- name: "flip",
583
- enabled: !0,
584
- phase: "main",
585
- fn: wn,
586
- requiresIfExists: ["offset"],
587
- data: {
588
- _skip: !1
589
- }
590
- };
591
- function Vt(e, t, r) {
592
- return r === void 0 && (r = {
593
- x: 0,
594
- y: 0
595
- }), {
596
- top: e.top - t.height - r.y,
597
- right: e.right - t.width + r.x,
598
- bottom: e.bottom - t.height + r.y,
599
- left: e.left - t.width - r.x
600
- };
601
- }
602
- function It(e) {
603
- return [F, K, G, _].some(function(t) {
604
- return e[t] >= 0;
605
- });
606
- }
607
- function xn(e) {
608
- var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, u = Ie(t, {
609
- elementContext: "reference"
610
- }), c = Ie(t, {
611
- altBoundary: !0
612
- }), p = Vt(u, n), l = Vt(c, o, a), f = It(p), b = It(l);
613
- t.modifiersData[r] = {
614
- referenceClippingOffsets: p,
615
- popperEscapeOffsets: l,
616
- isReferenceHidden: f,
617
- hasPopperEscaped: b
618
- }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
619
- "data-popper-reference-hidden": f,
620
- "data-popper-escaped": b
621
- });
622
- }
623
- const En = {
624
- name: "hide",
625
- enabled: !0,
626
- phase: "main",
627
- requiresIfExists: ["preventOverflow"],
628
- fn: xn
629
- };
630
- function An(e, t, r) {
631
- var n = ee(e), o = [_, F].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, t, {
632
- placement: e
633
- })) : r, u = a[0], c = a[1];
634
- return u = u || 0, c = (c || 0) * o, [_, K].indexOf(n) >= 0 ? {
635
- x: c,
636
- y: u
637
- } : {
638
- x: u,
639
- y: c
640
- };
641
- }
642
- function Tn(e) {
643
- var t = e.state, r = e.options, n = e.name, o = r.offset, a = o === void 0 ? [0, 0] : o, u = rr.reduce(function(f, b) {
644
- return f[b] = An(b, t.rects, a), f;
645
- }, {}), c = u[t.placement], p = c.x, l = c.y;
646
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += p, t.modifiersData.popperOffsets.y += l), t.modifiersData[n] = u;
647
- }
648
- const Dn = {
649
- name: "offset",
650
- enabled: !0,
651
- phase: "main",
652
- requires: ["popperOffsets"],
653
- fn: Tn
654
- };
655
- function Cn(e) {
656
- var t = e.state, r = e.name;
657
- t.modifiersData[r] = cr({
658
- reference: t.rects.reference,
659
- element: t.rects.popper,
660
- placement: t.placement
661
- });
662
- }
663
- const Sn = {
664
- name: "popperOffsets",
665
- enabled: !0,
666
- phase: "read",
667
- fn: Cn,
668
- data: {}
669
- };
670
- function jn(e) {
671
- return e === "x" ? "y" : "x";
672
- }
673
- function Ln(e) {
674
- var t = e.state, r = e.options, n = e.name, o = r.mainAxis, a = o === void 0 ? !0 : o, u = r.altAxis, c = u === void 0 ? !1 : u, p = r.boundary, l = r.rootBoundary, f = r.altBoundary, b = r.padding, x = r.tether, m = x === void 0 ? !0 : x, w = r.tetherOffset, g = w === void 0 ? 0 : w, y = Ie(t, {
675
- boundary: p,
676
- rootBoundary: l,
677
- padding: b,
678
- altBoundary: f
679
- }), D = ee(t.placement), j = Se(t.placement), N = !j, i = Ct(D), E = jn(i), d = t.modifiersData.popperOffsets, P = t.rects.reference, B = t.rects.popper, T = typeof g == "function" ? g(Object.assign({}, t.rects, {
680
- placement: t.placement
681
- })) : g, C = typeof T == "number" ? {
682
- mainAxis: T,
683
- altAxis: T
684
- } : Object.assign({
685
- mainAxis: 0,
686
- altAxis: 0
687
- }, T), $ = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, M = {
688
- x: 0,
689
- y: 0
690
- };
691
- if (d) {
692
- if (a) {
693
- var R, L = i === "y" ? F : _, O = i === "y" ? G : K, I = i === "y" ? "height" : "width", V = d[i], k = V + y[L], H = V - y[O], W = m ? -B[I] / 2 : 0, fe = j === Te ? P[I] : B[I], Q = j === Te ? -B[I] : -P[I], le = t.elements.arrow, re = m && le ? Dt(le) : {
694
- width: 0,
695
- height: 0
696
- }, J = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ar(), ne = J[L], ye = J[O], ie = Me(0, P[I], re[I]), be = N ? P[I] / 2 - W - ie - ne - C.mainAxis : fe - ie - ne - C.mainAxis, pe = N ? -P[I] / 2 + W + ie + ye + C.mainAxis : Q + ie + ye + C.mainAxis, we = t.elements.arrow && Fe(t.elements.arrow), qe = we ? i === "y" ? we.clientTop || 0 : we.clientLeft || 0 : 0, je = (R = $ == null ? void 0 : $[i]) != null ? R : 0, ze = V + be - je - qe, Ye = V + pe - je, Le = Me(m ? ot(k, ze) : k, V, m ? he(H, Ye) : H);
697
- d[i] = Le, M[i] = Le - V;
698
- }
699
- if (c) {
700
- var Pe, Xe = i === "x" ? F : _, Ge = i === "x" ? G : K, oe = d[E], ue = E === "y" ? "height" : "width", Ne = oe + y[Xe], de = oe - y[Ge], Re = [F, _].indexOf(D) !== -1, Ke = (Pe = $ == null ? void 0 : $[E]) != null ? Pe : 0, Je = Re ? Ne : oe - P[ue] - B[ue] - Ke + C.altAxis, Qe = Re ? oe + P[ue] + B[ue] - Ke - C.altAxis : de, Ze = m && Re ? Zr(Je, oe, Qe) : Me(m ? Je : Ne, oe, m ? Qe : de);
701
- d[E] = Ze, M[E] = Ze - oe;
702
- }
703
- t.modifiersData[n] = M;
704
- }
705
- }
706
- const Pn = {
707
- name: "preventOverflow",
708
- enabled: !0,
709
- phase: "main",
710
- fn: Ln,
711
- requiresIfExists: ["offset"]
712
- };
713
- function Nn(e) {
714
- return {
715
- scrollLeft: e.scrollLeft,
716
- scrollTop: e.scrollTop
717
- };
718
- }
719
- function Rn(e) {
720
- return e === z(e) || !X(e) ? St(e) : Nn(e);
721
- }
722
- function $n(e) {
723
- var t = e.getBoundingClientRect(), r = De(t.width) / e.offsetWidth || 1, n = De(t.height) / e.offsetHeight || 1;
724
- return r !== 1 || n !== 1;
725
- }
726
- function Mn(e, t, r) {
727
- r === void 0 && (r = !1);
728
- var n = X(t), o = X(t) && $n(t), a = ce(t), u = Ce(e, o, r), c = {
729
- scrollLeft: 0,
730
- scrollTop: 0
731
- }, p = {
732
- x: 0,
733
- y: 0
734
- };
735
- return (n || !n && !r) && ((te(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
736
- Lt(a)) && (c = Rn(t)), X(t) ? (p = Ce(t, !0), p.x += t.clientLeft, p.y += t.clientTop) : a && (p.x = jt(a))), {
737
- x: u.left + c.scrollLeft - p.x,
738
- y: u.top + c.scrollTop - p.y,
739
- width: u.width,
740
- height: u.height
741
- };
742
- }
743
- function Bn(e) {
744
- var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
745
- e.forEach(function(a) {
746
- t.set(a.name, a);
747
- });
748
- function o(a) {
749
- r.add(a.name);
750
- var u = [].concat(a.requires || [], a.requiresIfExists || []);
751
- u.forEach(function(c) {
752
- if (!r.has(c)) {
753
- var p = t.get(c);
754
- p && o(p);
755
- }
756
- }), n.push(a);
757
- }
758
- return e.forEach(function(a) {
759
- r.has(a.name) || o(a);
760
- }), n;
761
- }
762
- function kn(e) {
763
- var t = Bn(e);
764
- return Xr.reduce(function(r, n) {
765
- return r.concat(t.filter(function(o) {
766
- return o.phase === n;
767
- }));
768
- }, []);
769
- }
770
- function Vn(e) {
771
- var t;
772
- return function() {
773
- return t || (t = new Promise(function(r) {
774
- Promise.resolve().then(function() {
775
- t = void 0, r(e());
776
- });
777
- })), t;
778
- };
779
- }
780
- function In(e) {
781
- var t = e.reduce(function(r, n) {
782
- var o = r[n.name];
783
- return r[n.name] = o ? Object.assign({}, o, n, {
784
- options: Object.assign({}, o.options, n.options),
785
- data: Object.assign({}, o.data, n.data)
786
- }) : n, r;
787
- }, {});
788
- return Object.keys(t).map(function(r) {
789
- return t[r];
790
- });
791
- }
792
- var Wt = {
793
- placement: "bottom",
794
- modifiers: [],
795
- strategy: "absolute"
796
- };
797
- function Ht() {
798
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
799
- t[r] = arguments[r];
800
- return !t.some(function(n) {
801
- return !(n && typeof n.getBoundingClientRect == "function");
802
- });
803
- }
804
- function Wn(e) {
805
- e === void 0 && (e = {});
806
- var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, a = o === void 0 ? Wt : o;
807
- return function(c, p, l) {
808
- l === void 0 && (l = a);
809
- var f = {
810
- placement: "bottom",
811
- orderedModifiers: [],
812
- options: Object.assign({}, Wt, a),
813
- modifiersData: {},
814
- elements: {
815
- reference: c,
816
- popper: p
817
- },
818
- attributes: {},
819
- styles: {}
820
- }, b = [], x = !1, m = {
821
- state: f,
822
- setOptions: function(D) {
823
- var j = typeof D == "function" ? D(f.options) : D;
824
- g(), f.options = Object.assign({}, a, f.options, j), f.scrollParents = {
825
- reference: ge(c) ? Be(c) : c.contextElement ? Be(c.contextElement) : [],
826
- popper: Be(p)
827
- };
828
- var N = kn(In([].concat(n, f.options.modifiers)));
829
- return f.orderedModifiers = N.filter(function(i) {
830
- return i.enabled;
831
- }), w(), m.update();
832
- },
833
- // Sync update – it will always be executed, even if not necessary. This
834
- // is useful for low frequency updates where sync behavior simplifies the
835
- // logic.
836
- // For high frequency updates (e.g. `resize` and `scroll` events), always
837
- // prefer the async Popper#update method
838
- forceUpdate: function() {
839
- if (!x) {
840
- var D = f.elements, j = D.reference, N = D.popper;
841
- if (Ht(j, N)) {
842
- f.rects = {
843
- reference: Mn(j, Fe(N), f.options.strategy === "fixed"),
844
- popper: Dt(N)
845
- }, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(C) {
846
- return f.modifiersData[C.name] = Object.assign({}, C.data);
847
- });
848
- for (var i = 0; i < f.orderedModifiers.length; i++) {
849
- if (f.reset === !0) {
850
- f.reset = !1, i = -1;
851
- continue;
852
- }
853
- var E = f.orderedModifiers[i], d = E.fn, P = E.options, B = P === void 0 ? {} : P, T = E.name;
854
- typeof d == "function" && (f = d({
855
- state: f,
856
- options: B,
857
- name: T,
858
- instance: m
859
- }) || f);
860
- }
861
- }
862
- }
863
- },
864
- // Async and optimistically optimized update – it will not be executed if
865
- // not necessary (debounced to run at most once-per-tick)
866
- update: Vn(function() {
867
- return new Promise(function(y) {
868
- m.forceUpdate(), y(f);
869
- });
870
- }),
871
- destroy: function() {
872
- g(), x = !0;
873
- }
874
- };
875
- if (!Ht(c, p))
876
- return m;
877
- m.setOptions(l).then(function(y) {
878
- !x && l.onFirstUpdate && l.onFirstUpdate(y);
879
- });
880
- function w() {
881
- f.orderedModifiers.forEach(function(y) {
882
- var D = y.name, j = y.options, N = j === void 0 ? {} : j, i = y.effect;
883
- if (typeof i == "function") {
884
- var E = i({
885
- state: f,
886
- name: D,
887
- instance: m,
888
- options: N
889
- }), d = function() {
890
- };
891
- b.push(E || d);
892
- }
893
- });
894
- }
895
- function g() {
896
- b.forEach(function(y) {
897
- return y();
898
- }), b = [];
899
- }
900
- return m;
901
- };
902
- }
903
- var Hn = [cn, Sn, pn, nr, Dn, On, Pn, nn, En], Un = /* @__PURE__ */ Wn({
904
- defaultModifiers: Hn
905
- }), Fn = "tippy-box", fr = "tippy-content", _n = "tippy-backdrop", lr = "tippy-arrow", dr = "tippy-svg-arrow", me = {
906
- passive: !0,
907
- capture: !0
908
- }, vr = function() {
909
- return document.body;
910
- };
911
- function qn(e, t) {
912
- return {}.hasOwnProperty.call(e, t);
913
- }
914
- function lt(e, t, r) {
915
- if (Array.isArray(e)) {
916
- var n = e[t];
917
- return n ?? (Array.isArray(r) ? r[t] : r);
918
- }
919
- return e;
920
- }
921
- function Pt(e, t) {
922
- var r = {}.toString.call(e);
923
- return r.indexOf("[object") === 0 && r.indexOf(t + "]") > -1;
924
- }
925
- function mr(e, t) {
926
- return typeof e == "function" ? e.apply(void 0, t) : e;
927
- }
928
- function Ut(e, t) {
929
- if (t === 0)
930
- return e;
931
- var r;
932
- return function(n) {
933
- clearTimeout(r), r = setTimeout(function() {
934
- e(n);
935
- }, t);
936
- };
937
- }
938
- function zn(e, t) {
939
- var r = Object.assign({}, e);
940
- return t.forEach(function(n) {
941
- delete r[n];
942
- }), r;
943
- }
944
- function Yn(e) {
945
- return e.split(/\s+/).filter(Boolean);
946
- }
947
- function Ae(e) {
948
- return [].concat(e);
949
- }
950
- function Ft(e, t) {
951
- e.indexOf(t) === -1 && e.push(t);
952
- }
953
- function Xn(e) {
954
- return e.filter(function(t, r) {
955
- return e.indexOf(t) === r;
956
- });
957
- }
958
- function Gn(e) {
959
- return e.split("-")[0];
960
- }
961
- function at(e) {
962
- return [].slice.call(e);
963
- }
964
- function _t(e) {
965
- return Object.keys(e).reduce(function(t, r) {
966
- return e[r] !== void 0 && (t[r] = e[r]), t;
967
- }, {});
968
- }
969
- function ke() {
970
- return document.createElement("div");
971
- }
972
- function We(e) {
973
- return ["Element", "Fragment"].some(function(t) {
974
- return Pt(e, t);
975
- });
976
- }
977
- function Kn(e) {
978
- return Pt(e, "NodeList");
979
- }
980
- function Jn(e) {
981
- return Pt(e, "MouseEvent");
982
- }
983
- function Qn(e) {
984
- return !!(e && e._tippy && e._tippy.reference === e);
985
- }
986
- function Zn(e) {
987
- return We(e) ? [e] : Kn(e) ? at(e) : Array.isArray(e) ? e : at(document.querySelectorAll(e));
988
- }
989
- function dt(e, t) {
990
- e.forEach(function(r) {
991
- r && (r.style.transitionDuration = t + "ms");
992
- });
993
- }
994
- function qt(e, t) {
995
- e.forEach(function(r) {
996
- r && r.setAttribute("data-state", t);
997
- });
998
- }
999
- function ei(e) {
1000
- var t, r = Ae(e), n = r[0];
1001
- return n != null && (t = n.ownerDocument) != null && t.body ? n.ownerDocument : document;
1002
- }
1003
- function ti(e, t) {
1004
- var r = t.clientX, n = t.clientY;
1005
- return e.every(function(o) {
1006
- var a = o.popperRect, u = o.popperState, c = o.props, p = c.interactiveBorder, l = Gn(u.placement), f = u.modifiersData.offset;
1007
- if (!f)
1008
- return !0;
1009
- var b = l === "bottom" ? f.top.y : 0, x = l === "top" ? f.bottom.y : 0, m = l === "right" ? f.left.x : 0, w = l === "left" ? f.right.x : 0, g = a.top - n + b > p, y = n - a.bottom - x > p, D = a.left - r + m > p, j = r - a.right - w > p;
1010
- return g || y || D || j;
1011
- });
1012
- }
1013
- function vt(e, t, r) {
1014
- var n = t + "EventListener";
1015
- ["transitionend", "webkitTransitionEnd"].forEach(function(o) {
1016
- e[n](o, r);
1017
- });
1018
- }
1019
- function zt(e, t) {
1020
- for (var r = t; r; ) {
1021
- var n;
1022
- if (e.contains(r))
1023
- return !0;
1024
- r = r.getRootNode == null || (n = r.getRootNode()) == null ? void 0 : n.host;
1025
- }
1026
- return !1;
1027
- }
1028
- var Z = {
1029
- isTouch: !1
1030
- }, Yt = 0;
1031
- function ri() {
1032
- Z.isTouch || (Z.isTouch = !0, window.performance && document.addEventListener("mousemove", hr));
1033
- }
1034
- function hr() {
1035
- var e = performance.now();
1036
- e - Yt < 20 && (Z.isTouch = !1, document.removeEventListener("mousemove", hr)), Yt = e;
1037
- }
1038
- function ni() {
1039
- var e = document.activeElement;
1040
- if (Qn(e)) {
1041
- var t = e._tippy;
1042
- e.blur && !t.state.isVisible && e.blur();
1043
- }
1044
- }
1045
- function ii() {
1046
- document.addEventListener("touchstart", ri, me), window.addEventListener("blur", ni);
1047
- }
1048
- var oi = typeof window < "u" && typeof document < "u", ai = oi ? (
1049
- // @ts-ignore
1050
- !!window.msCrypto
1051
- ) : !1;
1052
- function Ee(e) {
1053
- var t = e === "destroy" ? "n already-" : " ";
1054
- return [e + "() was called on a" + t + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
1055
- }
1056
- function Xt(e) {
1057
- var t = /[ \t]{2,}/g, r = /^[ \t]*/gm;
1058
- return e.replace(t, " ").replace(r, "").trim();
1059
- }
1060
- function si(e) {
1061
- return Xt(`
1062
- %ctippy.js
1063
-
1064
- %c` + Xt(e) + `
1065
-
1066
- %c👷‍ This is a development-only message. It will be removed in production.
1067
- `);
1068
- }
1069
- function gr(e) {
1070
- return [
1071
- si(e),
1072
- // title
1073
- "color: #00C584; font-size: 1.3em; font-weight: bold;",
1074
- // message
1075
- "line-height: 1.5",
1076
- // footer
1077
- "color: #a6a095;"
1078
- ];
1079
- }
1080
- var He;
1081
- process.env.NODE_ENV !== "production" && pi();
1082
- function pi() {
1083
- He = /* @__PURE__ */ new Set();
1084
- }
1085
- function ae(e, t) {
1086
- if (e && !He.has(t)) {
1087
- var r;
1088
- He.add(t), (r = console).warn.apply(r, gr(t));
1089
- }
1090
- }
1091
- function wt(e, t) {
1092
- if (e && !He.has(t)) {
1093
- var r;
1094
- He.add(t), (r = console).error.apply(r, gr(t));
1095
- }
1096
- }
1097
- function ui(e) {
1098
- var t = !e, r = Object.prototype.toString.call(e) === "[object Object]" && !e.addEventListener;
1099
- wt(t, ["tippy() was passed", "`" + String(e) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), wt(r, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
1100
- }
1101
- var yr = {
1102
- animateFill: !1,
1103
- followCursor: !1,
1104
- inlinePositioning: !1,
1105
- sticky: !1
1106
- }, ci = {
1107
- allowHTML: !1,
1108
- animation: "fade",
1109
- arrow: !0,
1110
- content: "",
1111
- inertia: !1,
1112
- maxWidth: 350,
1113
- role: "tooltip",
1114
- theme: "",
1115
- zIndex: 9999
1116
- }, q = Object.assign({
1117
- appendTo: vr,
1118
- aria: {
1119
- content: "auto",
1120
- expanded: "auto"
1121
- },
1122
- delay: 0,
1123
- duration: [300, 250],
1124
- getReferenceClientRect: null,
1125
- hideOnClick: !0,
1126
- ignoreAttributes: !1,
1127
- interactive: !1,
1128
- interactiveBorder: 2,
1129
- interactiveDebounce: 0,
1130
- moveTransition: "",
1131
- offset: [0, 10],
1132
- onAfterUpdate: function() {
1133
- },
1134
- onBeforeUpdate: function() {
1135
- },
1136
- onCreate: function() {
1137
- },
1138
- onDestroy: function() {
1139
- },
1140
- onHidden: function() {
1141
- },
1142
- onHide: function() {
1143
- },
1144
- onMount: function() {
1145
- },
1146
- onShow: function() {
1147
- },
1148
- onShown: function() {
1149
- },
1150
- onTrigger: function() {
1151
- },
1152
- onUntrigger: function() {
1153
- },
1154
- onClickOutside: function() {
1155
- },
1156
- placement: "top",
1157
- plugins: [],
1158
- popperOptions: {},
1159
- render: null,
1160
- showOnCreate: !1,
1161
- touch: !0,
1162
- trigger: "mouseenter focus",
1163
- triggerTarget: null
1164
- }, yr, ci), fi = Object.keys(q), li = function(t) {
1165
- process.env.NODE_ENV !== "production" && wr(t, []);
1166
- var r = Object.keys(t);
1167
- r.forEach(function(n) {
1168
- q[n] = t[n];
1169
- });
1170
- };
1171
- function br(e) {
1172
- var t = e.plugins || [], r = t.reduce(function(n, o) {
1173
- var a = o.name, u = o.defaultValue;
1174
- if (a) {
1175
- var c;
1176
- n[a] = e[a] !== void 0 ? e[a] : (c = q[a]) != null ? c : u;
1177
- }
1178
- return n;
1179
- }, {});
1180
- return Object.assign({}, e, r);
1181
- }
1182
- function di(e, t) {
1183
- var r = t ? Object.keys(br(Object.assign({}, q, {
1184
- plugins: t
1185
- }))) : fi, n = r.reduce(function(o, a) {
1186
- var u = (e.getAttribute("data-tippy-" + a) || "").trim();
1187
- if (!u)
1188
- return o;
1189
- if (a === "content")
1190
- o[a] = u;
1191
- else
1192
- try {
1193
- o[a] = JSON.parse(u);
1194
- } catch {
1195
- o[a] = u;
1196
- }
1197
- return o;
1198
- }, {});
1199
- return n;
1200
- }
1201
- function Gt(e, t) {
1202
- var r = Object.assign({}, t, {
1203
- content: mr(t.content, [e])
1204
- }, t.ignoreAttributes ? {} : di(e, t.plugins));
1205
- return r.aria = Object.assign({}, q.aria, r.aria), r.aria = {
1206
- expanded: r.aria.expanded === "auto" ? t.interactive : r.aria.expanded,
1207
- content: r.aria.content === "auto" ? t.interactive ? null : "describedby" : r.aria.content
1208
- }, r;
1209
- }
1210
- function wr(e, t) {
1211
- e === void 0 && (e = {}), t === void 0 && (t = []);
1212
- var r = Object.keys(e);
1213
- r.forEach(function(n) {
1214
- var o = zn(q, Object.keys(yr)), a = !qn(o, n);
1215
- a && (a = t.filter(function(u) {
1216
- return u.name === n;
1217
- }).length === 0), ae(a, ["`" + n + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
1218
-
1219
- `, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
1220
- `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
1221
- });
1222
- }
1223
- var vi = function() {
1224
- return "innerHTML";
1225
- };
1226
- function Ot(e, t) {
1227
- e[vi()] = t;
1228
- }
1229
- function Kt(e) {
1230
- var t = ke();
1231
- return e === !0 ? t.className = lr : (t.className = dr, We(e) ? t.appendChild(e) : Ot(t, e)), t;
1232
- }
1233
- function Jt(e, t) {
1234
- We(t.content) ? (Ot(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? Ot(e, t.content) : e.textContent = t.content);
1235
- }
1236
- function xt(e) {
1237
- var t = e.firstElementChild, r = at(t.children);
1238
- return {
1239
- box: t,
1240
- content: r.find(function(n) {
1241
- return n.classList.contains(fr);
1242
- }),
1243
- arrow: r.find(function(n) {
1244
- return n.classList.contains(lr) || n.classList.contains(dr);
1245
- }),
1246
- backdrop: r.find(function(n) {
1247
- return n.classList.contains(_n);
1248
- })
1249
- };
1250
- }
1251
- function Or(e) {
1252
- var t = ke(), r = ke();
1253
- r.className = Fn, r.setAttribute("data-state", "hidden"), r.setAttribute("tabindex", "-1");
1254
- var n = ke();
1255
- n.className = fr, n.setAttribute("data-state", "hidden"), Jt(n, e.props), t.appendChild(r), r.appendChild(n), o(e.props, e.props);
1256
- function o(a, u) {
1257
- var c = xt(t), p = c.box, l = c.content, f = c.arrow;
1258
- u.theme ? p.setAttribute("data-theme", u.theme) : p.removeAttribute("data-theme"), typeof u.animation == "string" ? p.setAttribute("data-animation", u.animation) : p.removeAttribute("data-animation"), u.inertia ? p.setAttribute("data-inertia", "") : p.removeAttribute("data-inertia"), p.style.maxWidth = typeof u.maxWidth == "number" ? u.maxWidth + "px" : u.maxWidth, u.role ? p.setAttribute("role", u.role) : p.removeAttribute("role"), (a.content !== u.content || a.allowHTML !== u.allowHTML) && Jt(l, e.props), u.arrow ? f ? a.arrow !== u.arrow && (p.removeChild(f), p.appendChild(Kt(u.arrow))) : p.appendChild(Kt(u.arrow)) : f && p.removeChild(f);
1259
- }
1260
- return {
1261
- popper: t,
1262
- onUpdate: o
1263
- };
1264
- }
1265
- Or.$$tippy = !0;
1266
- var mi = 1, nt = [], mt = [];
1267
- function hi(e, t) {
1268
- var r = Gt(e, Object.assign({}, q, br(_t(t)))), n, o, a, u = !1, c = !1, p = !1, l = !1, f, b, x, m = [], w = Ut(ze, r.interactiveDebounce), g, y = mi++, D = null, j = Xn(r.plugins), N = {
1269
- // Is the instance currently enabled?
1270
- isEnabled: !0,
1271
- // Is the tippy currently showing and not transitioning out?
1272
- isVisible: !1,
1273
- // Has the instance been destroyed?
1274
- isDestroyed: !1,
1275
- // Is the tippy currently mounted to the DOM?
1276
- isMounted: !1,
1277
- // Has the tippy finished transitioning in?
1278
- isShown: !1
1279
- }, i = {
1280
- // properties
1281
- id: y,
1282
- reference: e,
1283
- popper: ke(),
1284
- popperInstance: D,
1285
- props: r,
1286
- state: N,
1287
- plugins: j,
1288
- // methods
1289
- clearDelayTimeouts: Je,
1290
- setProps: Qe,
1291
- setContent: Ze,
1292
- show: Tr,
1293
- hide: Dr,
1294
- hideWithInteractivity: Cr,
1295
- enable: Re,
1296
- disable: Ke,
1297
- unmount: Sr,
1298
- destroy: jr
1299
- };
1300
- if (!r.render)
1301
- return process.env.NODE_ENV !== "production" && wt(!0, "render() function has not been supplied."), i;
1302
- var E = r.render(i), d = E.popper, P = E.onUpdate;
1303
- d.setAttribute("data-tippy-root", ""), d.id = "tippy-" + i.id, i.popper = d, e._tippy = i, d._tippy = i;
1304
- var B = j.map(function(s) {
1305
- return s.fn(i);
1306
- }), T = e.hasAttribute("aria-expanded");
1307
- return we(), W(), V(), k("onCreate", [i]), r.showOnCreate && Ne(), d.addEventListener("mouseenter", function() {
1308
- i.props.interactive && i.state.isVisible && i.clearDelayTimeouts();
1309
- }), d.addEventListener("mouseleave", function() {
1310
- i.props.interactive && i.props.trigger.indexOf("mouseenter") >= 0 && L().addEventListener("mousemove", w);
1311
- }), i;
1312
- function C() {
1313
- var s = i.props.touch;
1314
- return Array.isArray(s) ? s : [s, 0];
1315
- }
1316
- function $() {
1317
- return C()[0] === "hold";
1318
- }
1319
- function M() {
1320
- var s;
1321
- return !!((s = i.props.render) != null && s.$$tippy);
1322
- }
1323
- function R() {
1324
- return g || e;
1325
- }
1326
- function L() {
1327
- var s = R().parentNode;
1328
- return s ? ei(s) : document;
1329
- }
1330
- function O() {
1331
- return xt(d);
1332
- }
1333
- function I(s) {
1334
- return i.state.isMounted && !i.state.isVisible || Z.isTouch || f && f.type === "focus" ? 0 : lt(i.props.delay, s ? 0 : 1, q.delay);
1335
- }
1336
- function V(s) {
1337
- s === void 0 && (s = !1), d.style.pointerEvents = i.props.interactive && !s ? "" : "none", d.style.zIndex = "" + i.props.zIndex;
1338
- }
1339
- function k(s, v, h) {
1340
- if (h === void 0 && (h = !0), B.forEach(function(A) {
1341
- A[s] && A[s].apply(A, v);
1342
- }), h) {
1343
- var S;
1344
- (S = i.props)[s].apply(S, v);
1345
- }
1346
- }
1347
- function H() {
1348
- var s = i.props.aria;
1349
- if (s.content) {
1350
- var v = "aria-" + s.content, h = d.id, S = Ae(i.props.triggerTarget || e);
1351
- S.forEach(function(A) {
1352
- var U = A.getAttribute(v);
1353
- if (i.state.isVisible)
1354
- A.setAttribute(v, U ? U + " " + h : h);
1355
- else {
1356
- var Y = U && U.replace(h, "").trim();
1357
- Y ? A.setAttribute(v, Y) : A.removeAttribute(v);
1358
- }
1359
- });
1360
- }
1361
- }
1362
- function W() {
1363
- if (!(T || !i.props.aria.expanded)) {
1364
- var s = Ae(i.props.triggerTarget || e);
1365
- s.forEach(function(v) {
1366
- i.props.interactive ? v.setAttribute("aria-expanded", i.state.isVisible && v === R() ? "true" : "false") : v.removeAttribute("aria-expanded");
1367
- });
1368
- }
1369
- }
1370
- function fe() {
1371
- L().removeEventListener("mousemove", w), nt = nt.filter(function(s) {
1372
- return s !== w;
1373
- });
1374
- }
1375
- function Q(s) {
1376
- if (!(Z.isTouch && (p || s.type === "mousedown"))) {
1377
- var v = s.composedPath && s.composedPath()[0] || s.target;
1378
- if (!(i.props.interactive && zt(d, v))) {
1379
- if (Ae(i.props.triggerTarget || e).some(function(h) {
1380
- return zt(h, v);
1381
- })) {
1382
- if (Z.isTouch || i.state.isVisible && i.props.trigger.indexOf("click") >= 0)
1383
- return;
1384
- } else
1385
- k("onClickOutside", [i, s]);
1386
- i.props.hideOnClick === !0 && (i.clearDelayTimeouts(), i.hide(), c = !0, setTimeout(function() {
1387
- c = !1;
1388
- }), i.state.isMounted || ne());
1389
- }
1390
- }
1391
- }
1392
- function le() {
1393
- p = !0;
1394
- }
1395
- function re() {
1396
- p = !1;
1397
- }
1398
- function J() {
1399
- var s = L();
1400
- s.addEventListener("mousedown", Q, !0), s.addEventListener("touchend", Q, me), s.addEventListener("touchstart", re, me), s.addEventListener("touchmove", le, me);
1401
- }
1402
- function ne() {
1403
- var s = L();
1404
- s.removeEventListener("mousedown", Q, !0), s.removeEventListener("touchend", Q, me), s.removeEventListener("touchstart", re, me), s.removeEventListener("touchmove", le, me);
1405
- }
1406
- function ye(s, v) {
1407
- be(s, function() {
1408
- !i.state.isVisible && d.parentNode && d.parentNode.contains(d) && v();
1409
- });
1410
- }
1411
- function ie(s, v) {
1412
- be(s, v);
1413
- }
1414
- function be(s, v) {
1415
- var h = O().box;
1416
- function S(A) {
1417
- A.target === h && (vt(h, "remove", S), v());
1418
- }
1419
- if (s === 0)
1420
- return v();
1421
- vt(h, "remove", b), vt(h, "add", S), b = S;
1422
- }
1423
- function pe(s, v, h) {
1424
- h === void 0 && (h = !1);
1425
- var S = Ae(i.props.triggerTarget || e);
1426
- S.forEach(function(A) {
1427
- A.addEventListener(s, v, h), m.push({
1428
- node: A,
1429
- eventType: s,
1430
- handler: v,
1431
- options: h
1432
- });
1433
- });
1434
- }
1435
- function we() {
1436
- $() && (pe("touchstart", je, {
1437
- passive: !0
1438
- }), pe("touchend", Ye, {
1439
- passive: !0
1440
- })), Yn(i.props.trigger).forEach(function(s) {
1441
- if (s !== "manual")
1442
- switch (pe(s, je), s) {
1443
- case "mouseenter":
1444
- pe("mouseleave", Ye);
1445
- break;
1446
- case "focus":
1447
- pe(ai ? "focusout" : "blur", Le);
1448
- break;
1449
- case "focusin":
1450
- pe("focusout", Le);
1451
- break;
1452
- }
1453
- });
1454
- }
1455
- function qe() {
1456
- m.forEach(function(s) {
1457
- var v = s.node, h = s.eventType, S = s.handler, A = s.options;
1458
- v.removeEventListener(h, S, A);
1459
- }), m = [];
1460
- }
1461
- function je(s) {
1462
- var v, h = !1;
1463
- if (!(!i.state.isEnabled || Pe(s) || c)) {
1464
- var S = ((v = f) == null ? void 0 : v.type) === "focus";
1465
- f = s, g = s.currentTarget, W(), !i.state.isVisible && Jn(s) && nt.forEach(function(A) {
1466
- return A(s);
1467
- }), s.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || u) && i.props.hideOnClick !== !1 && i.state.isVisible ? h = !0 : Ne(s), s.type === "click" && (u = !h), h && !S && de(s);
1468
- }
1469
- }
1470
- function ze(s) {
1471
- var v = s.target, h = R().contains(v) || d.contains(v);
1472
- if (!(s.type === "mousemove" && h)) {
1473
- var S = ue().concat(d).map(function(A) {
1474
- var U, Y = A._tippy, Oe = (U = Y.popperInstance) == null ? void 0 : U.state;
1475
- return Oe ? {
1476
- popperRect: A.getBoundingClientRect(),
1477
- popperState: Oe,
1478
- props: r
1479
- } : null;
1480
- }).filter(Boolean);
1481
- ti(S, s) && (fe(), de(s));
1482
- }
1483
- }
1484
- function Ye(s) {
1485
- var v = Pe(s) || i.props.trigger.indexOf("click") >= 0 && u;
1486
- if (!v) {
1487
- if (i.props.interactive) {
1488
- i.hideWithInteractivity(s);
1489
- return;
1490
- }
1491
- de(s);
1492
- }
1493
- }
1494
- function Le(s) {
1495
- i.props.trigger.indexOf("focusin") < 0 && s.target !== R() || i.props.interactive && s.relatedTarget && d.contains(s.relatedTarget) || de(s);
1496
- }
1497
- function Pe(s) {
1498
- return Z.isTouch ? $() !== s.type.indexOf("touch") >= 0 : !1;
1499
- }
1500
- function Xe() {
1501
- Ge();
1502
- var s = i.props, v = s.popperOptions, h = s.placement, S = s.offset, A = s.getReferenceClientRect, U = s.moveTransition, Y = M() ? xt(d).arrow : null, Oe = A ? {
1503
- getBoundingClientRect: A,
1504
- contextElement: A.contextElement || R()
1505
- } : e, Nt = {
1506
- name: "$$tippy",
1507
- enabled: !0,
1508
- phase: "beforeWrite",
1509
- requires: ["computeStyles"],
1510
- fn: function(et) {
1511
- var xe = et.state;
1512
- if (M()) {
1513
- var Lr = O(), ct = Lr.box;
1514
- ["placement", "reference-hidden", "escaped"].forEach(function(tt) {
1515
- tt === "placement" ? ct.setAttribute("data-placement", xe.placement) : xe.attributes.popper["data-popper-" + tt] ? ct.setAttribute("data-" + tt, "") : ct.removeAttribute("data-" + tt);
1516
- }), xe.attributes.popper = {};
1517
- }
1518
- }
1519
- }, ve = [{
1520
- name: "offset",
1521
- options: {
1522
- offset: S
1523
- }
1524
- }, {
1525
- name: "preventOverflow",
1526
- options: {
1527
- padding: {
1528
- top: 2,
1529
- bottom: 2,
1530
- left: 5,
1531
- right: 5
1532
- }
1533
- }
1534
- }, {
1535
- name: "flip",
1536
- options: {
1537
- padding: 5
1538
- }
1539
- }, {
1540
- name: "computeStyles",
1541
- options: {
1542
- adaptive: !U
1543
- }
1544
- }, Nt];
1545
- M() && Y && ve.push({
1546
- name: "arrow",
1547
- options: {
1548
- element: Y,
1549
- padding: 3
1550
- }
1551
- }), ve.push.apply(ve, (v == null ? void 0 : v.modifiers) || []), i.popperInstance = Un(Oe, d, Object.assign({}, v, {
1552
- placement: h,
1553
- onFirstUpdate: x,
1554
- modifiers: ve
1555
- }));
1556
- }
1557
- function Ge() {
1558
- i.popperInstance && (i.popperInstance.destroy(), i.popperInstance = null);
1559
- }
1560
- function oe() {
1561
- var s = i.props.appendTo, v, h = R();
1562
- i.props.interactive && s === vr || s === "parent" ? v = h.parentNode : v = mr(s, [h]), v.contains(d) || v.appendChild(d), i.state.isMounted = !0, Xe(), process.env.NODE_ENV !== "production" && ae(i.props.interactive && s === q.appendTo && h.nextElementSibling !== d, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
1563
-
1564
- `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
1565
-
1566
- `, "Specifying `appendTo: document.body` silences this warning, but it", "assumes you are using a focus management solution to handle", "keyboard navigation.", `
1567
-
1568
- `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
1569
- }
1570
- function ue() {
1571
- return at(d.querySelectorAll("[data-tippy-root]"));
1572
- }
1573
- function Ne(s) {
1574
- i.clearDelayTimeouts(), s && k("onTrigger", [i, s]), J();
1575
- var v = I(!0), h = C(), S = h[0], A = h[1];
1576
- Z.isTouch && S === "hold" && A && (v = A), v ? n = setTimeout(function() {
1577
- i.show();
1578
- }, v) : i.show();
1579
- }
1580
- function de(s) {
1581
- if (i.clearDelayTimeouts(), k("onUntrigger", [i, s]), !i.state.isVisible) {
1582
- ne();
1583
- return;
1584
- }
1585
- if (!(i.props.trigger.indexOf("mouseenter") >= 0 && i.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(s.type) >= 0 && u)) {
1586
- var v = I(!1);
1587
- v ? o = setTimeout(function() {
1588
- i.state.isVisible && i.hide();
1589
- }, v) : a = requestAnimationFrame(function() {
1590
- i.hide();
1591
- });
1592
- }
1593
- }
1594
- function Re() {
1595
- i.state.isEnabled = !0;
1596
- }
1597
- function Ke() {
1598
- i.hide(), i.state.isEnabled = !1;
1599
- }
1600
- function Je() {
1601
- clearTimeout(n), clearTimeout(o), cancelAnimationFrame(a);
1602
- }
1603
- function Qe(s) {
1604
- if (process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ee("setProps")), !i.state.isDestroyed) {
1605
- k("onBeforeUpdate", [i, s]), qe();
1606
- var v = i.props, h = Gt(e, Object.assign({}, v, _t(s), {
1607
- ignoreAttributes: !0
1608
- }));
1609
- i.props = h, we(), v.interactiveDebounce !== h.interactiveDebounce && (fe(), w = Ut(ze, h.interactiveDebounce)), v.triggerTarget && !h.triggerTarget ? Ae(v.triggerTarget).forEach(function(S) {
1610
- S.removeAttribute("aria-expanded");
1611
- }) : h.triggerTarget && e.removeAttribute("aria-expanded"), W(), V(), P && P(v, h), i.popperInstance && (Xe(), ue().forEach(function(S) {
1612
- requestAnimationFrame(S._tippy.popperInstance.forceUpdate);
1613
- })), k("onAfterUpdate", [i, s]);
1614
- }
1615
- }
1616
- function Ze(s) {
1617
- i.setProps({
1618
- content: s
1619
- });
1620
- }
1621
- function Tr() {
1622
- process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ee("show"));
1623
- var s = i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, S = Z.isTouch && !i.props.touch, A = lt(i.props.duration, 0, q.duration);
1624
- if (!(s || v || h || S) && !R().hasAttribute("disabled") && (k("onShow", [i], !1), i.props.onShow(i) !== !1)) {
1625
- if (i.state.isVisible = !0, M() && (d.style.visibility = "visible"), V(), J(), i.state.isMounted || (d.style.transition = "none"), M()) {
1626
- var U = O(), Y = U.box, Oe = U.content;
1627
- dt([Y, Oe], 0);
1628
- }
1629
- x = function() {
1630
- var ve;
1631
- if (!(!i.state.isVisible || l)) {
1632
- if (l = !0, d.offsetHeight, d.style.transition = i.props.moveTransition, M() && i.props.animation) {
1633
- var ut = O(), et = ut.box, xe = ut.content;
1634
- dt([et, xe], A), qt([et, xe], "visible");
1635
- }
1636
- H(), W(), Ft(mt, i), (ve = i.popperInstance) == null || ve.forceUpdate(), k("onMount", [i]), i.props.animation && M() && ie(A, function() {
1637
- i.state.isShown = !0, k("onShown", [i]);
1638
- });
1639
- }
1640
- }, oe();
1641
- }
1642
- }
1643
- function Dr() {
1644
- process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ee("hide"));
1645
- var s = !i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, S = lt(i.props.duration, 1, q.duration);
1646
- if (!(s || v || h) && (k("onHide", [i], !1), i.props.onHide(i) !== !1)) {
1647
- if (i.state.isVisible = !1, i.state.isShown = !1, l = !1, u = !1, M() && (d.style.visibility = "hidden"), fe(), ne(), V(!0), M()) {
1648
- var A = O(), U = A.box, Y = A.content;
1649
- i.props.animation && (dt([U, Y], S), qt([U, Y], "hidden"));
1650
- }
1651
- H(), W(), i.props.animation ? M() && ye(S, i.unmount) : i.unmount();
1652
- }
1653
- }
1654
- function Cr(s) {
1655
- process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ee("hideWithInteractivity")), L().addEventListener("mousemove", w), Ft(nt, w), w(s);
1656
- }
1657
- function Sr() {
1658
- process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ee("unmount")), i.state.isVisible && i.hide(), i.state.isMounted && (Ge(), ue().forEach(function(s) {
1659
- s._tippy.unmount();
1660
- }), d.parentNode && d.parentNode.removeChild(d), mt = mt.filter(function(s) {
1661
- return s !== i;
1662
- }), i.state.isMounted = !1, k("onHidden", [i]));
1663
- }
1664
- function jr() {
1665
- process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ee("destroy")), !i.state.isDestroyed && (i.clearDelayTimeouts(), i.unmount(), qe(), delete e._tippy, i.state.isDestroyed = !0, k("onDestroy", [i]));
1666
- }
1667
- }
1668
- function _e(e, t) {
1669
- t === void 0 && (t = {});
1670
- var r = q.plugins.concat(t.plugins || []);
1671
- process.env.NODE_ENV !== "production" && (ui(e), wr(t, r)), ii();
1672
- var n = Object.assign({}, t, {
1673
- plugins: r
1674
- }), o = Zn(e);
1675
- if (process.env.NODE_ENV !== "production") {
1676
- var a = We(n.content), u = o.length > 1;
1677
- ae(a && u, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
1678
-
1679
- `, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
1680
-
1681
- `, `1) content: element.innerHTML
1682
- `, "2) content: () => element.cloneNode(true)"].join(" "));
1683
- }
1684
- var c = o.reduce(function(p, l) {
1685
- var f = l && hi(l, n);
1686
- return f && p.push(f), p;
1687
- }, []);
1688
- return We(e) ? c[0] : c;
1689
- }
1690
- _e.defaultProps = q;
1691
- _e.setDefaultProps = li;
1692
- _e.currentInput = Z;
1693
- Object.assign({}, nr, {
1694
- effect: function(t) {
1695
- var r = t.state, n = {
1696
- popper: {
1697
- position: r.options.strategy,
1698
- left: "0",
1699
- top: "0",
1700
- margin: "0"
1701
- },
1702
- arrow: {
1703
- position: "absolute"
1704
- },
1705
- reference: {}
1706
- };
1707
- Object.assign(r.elements.popper.style, n.popper), r.styles = n, r.elements.arrow && Object.assign(r.elements.arrow.style, n.arrow);
1708
- }
1709
- });
1710
- _e.setDefaultProps({
1711
- render: Or
1712
- });
1713
- function xr(e, t) {
1714
- if (e == null) return {};
1715
- var r = {}, n = Object.keys(e), o, a;
1716
- for (a = 0; a < n.length; a++)
1717
- o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
1718
- return r;
1719
- }
1720
- var Er = typeof window < "u" && typeof document < "u";
1721
- function Et(e, t) {
1722
- e && (typeof e == "function" && e(t), {}.hasOwnProperty.call(e, "current") && (e.current = t));
1723
- }
1724
- function Qt() {
1725
- return Er && document.createElement("div");
1726
- }
1727
- function gi(e) {
1728
- var t = {
1729
- "data-placement": e.placement
1730
- };
1731
- return e.referenceHidden && (t["data-reference-hidden"] = ""), e.escaped && (t["data-escaped"] = ""), t;
1732
- }
1733
- function Ar(e, t) {
1734
- if (e === t)
1735
- return !0;
1736
- if (typeof e == "object" && e != null && typeof t == "object" && t != null) {
1737
- if (Object.keys(e).length !== Object.keys(t).length)
1738
- return !1;
1739
- for (var r in e)
1740
- if (t.hasOwnProperty(r)) {
1741
- if (!Ar(e[r], t[r]))
1742
- return !1;
1743
- } else
1744
- return !1;
1745
- return !0;
1746
- } else
1747
- return !1;
1748
- }
1749
- function yi(e) {
1750
- var t = [];
1751
- return e.forEach(function(r) {
1752
- t.find(function(n) {
1753
- return Ar(r, n);
1754
- }) || t.push(r);
1755
- }), t;
1756
- }
1757
- function bi(e, t) {
1758
- var r, n;
1759
- return Object.assign({}, t, {
1760
- popperOptions: Object.assign({}, e.popperOptions, t.popperOptions, {
1761
- modifiers: yi([].concat(((r = e.popperOptions) == null ? void 0 : r.modifiers) || [], ((n = t.popperOptions) == null ? void 0 : n.modifiers) || []))
1762
- })
1763
- });
1764
- }
1765
- var ht = Er ? Nr : Rr;
1766
- function wi(e) {
1767
- var t = $r();
1768
- return t.current || (t.current = typeof e == "function" ? e() : e), t.current;
1769
- }
1770
- function Zt(e, t, r) {
1771
- r.split(/\s+/).forEach(function(n) {
1772
- n && e.classList[t](n);
1773
- });
1774
- }
1775
- var Oi = {
1776
- name: "className",
1777
- defaultValue: "",
1778
- fn: function(t) {
1779
- var r = t.popper.firstElementChild, n = function() {
1780
- var c;
1781
- return !!((c = t.props.render) != null && c.$$tippy);
1782
- };
1783
- function o() {
1784
- if (t.props.className && !n()) {
1785
- process.env.NODE_ENV !== "production" && console.warn(["@tippyjs/react: Cannot use `className` prop in conjunction with", "`render` prop. Place the className on the element you are", "rendering."].join(" "));
1786
- return;
1787
- }
1788
- Zt(r, "add", t.props.className);
1789
- }
1790
- function a() {
1791
- n() && Zt(r, "remove", t.props.className);
1792
- }
1793
- return {
1794
- onCreate: o,
1795
- onBeforeUpdate: a,
1796
- onAfterUpdate: o
1797
- };
1798
- }
1799
- };
1800
- function xi(e) {
1801
- function t(r) {
1802
- var n = r.children, o = r.content, a = r.visible, u = r.singleton, c = r.render, p = r.reference, l = r.disabled, f = l === void 0 ? !1 : l, b = r.ignoreAttributes, x = b === void 0 ? !0 : b;
1803
- r.__source, r.__self;
1804
- var m = xr(r, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), w = a !== void 0, g = u !== void 0, y = ft(!1), D = y[0], j = y[1], N = ft({}), i = N[0], E = N[1], d = ft(), P = d[0], B = d[1], T = wi(function() {
1805
- return {
1806
- container: Qt(),
1807
- renders: 1
1808
- };
1809
- }), C = Object.assign({
1810
- ignoreAttributes: x
1811
- }, m, {
1812
- content: T.container
1813
- });
1814
- w && (process.env.NODE_ENV !== "production" && ["trigger", "hideOnClick", "showOnCreate"].forEach(function(L) {
1815
- C[L] !== void 0 && console.warn(["@tippyjs/react: Cannot specify `" + L + "` prop in", "controlled mode (`visible` prop)"].join(" "));
1816
- }), C.trigger = "manual", C.hideOnClick = !1), g && (f = !0);
1817
- var $ = C, M = C.plugins || [];
1818
- c && ($ = Object.assign({}, C, {
1819
- plugins: g && u.data != null ? [].concat(M, [{
1820
- fn: function() {
1821
- return {
1822
- onTrigger: function(I, V) {
1823
- var k = u.data.children.find(function(H) {
1824
- var W = H.instance;
1825
- return W.reference === V.currentTarget;
1826
- });
1827
- I.state.$$activeSingletonInstance = k.instance, B(k.content);
1828
- }
1829
- };
1830
- }
1831
- }]) : M,
1832
- render: function() {
1833
- return {
1834
- popper: T.container
1835
- };
1836
- }
1837
- }));
1838
- var R = [p].concat(n ? [n.type] : []);
1839
- return ht(function() {
1840
- var L = p;
1841
- p && p.hasOwnProperty("current") && (L = p.current);
1842
- var O = e(L || T.ref || Qt(), Object.assign({}, $, {
1843
- plugins: [Oi].concat(C.plugins || [])
1844
- }));
1845
- return T.instance = O, f && O.disable(), a && O.show(), g && u.hook({
1846
- instance: O,
1847
- content: o,
1848
- props: $,
1849
- setSingletonContent: B
1850
- }), j(!0), function() {
1851
- O.destroy(), u == null || u.cleanup(O);
1852
- };
1853
- }, R), ht(function() {
1854
- var L;
1855
- if (T.renders === 1) {
1856
- T.renders++;
1857
- return;
1858
- }
1859
- var O = T.instance;
1860
- O.setProps(bi(O.props, $)), (L = O.popperInstance) == null || L.forceUpdate(), f ? O.disable() : O.enable(), w && (a ? O.show() : O.hide()), g && u.hook({
1861
- instance: O,
1862
- content: o,
1863
- props: $,
1864
- setSingletonContent: B
1865
- });
1866
- }), ht(function() {
1867
- var L;
1868
- if (c) {
1869
- var O = T.instance;
1870
- O.setProps({
1871
- popperOptions: Object.assign({}, O.props.popperOptions, {
1872
- modifiers: [].concat((((L = O.props.popperOptions) == null ? void 0 : L.modifiers) || []).filter(function(I) {
1873
- var V = I.name;
1874
- return V !== "$$tippyReact";
1875
- }), [{
1876
- name: "$$tippyReact",
1877
- enabled: !0,
1878
- phase: "beforeWrite",
1879
- requires: ["computeStyles"],
1880
- fn: function(V) {
1881
- var k, H = V.state, W = (k = H.modifiersData) == null ? void 0 : k.hide;
1882
- (i.placement !== H.placement || i.referenceHidden !== (W == null ? void 0 : W.isReferenceHidden) || i.escaped !== (W == null ? void 0 : W.hasPopperEscaped)) && E({
1883
- placement: H.placement,
1884
- referenceHidden: W == null ? void 0 : W.isReferenceHidden,
1885
- escaped: W == null ? void 0 : W.hasPopperEscaped
1886
- }), H.attributes.popper = {};
1887
- }
1888
- }])
1889
- })
1890
- });
1891
- }
1892
- }, [i.placement, i.referenceHidden, i.escaped].concat(R)), /* @__PURE__ */ gt.createElement(gt.Fragment, null, n ? /* @__PURE__ */ er(n, {
1893
- ref: function(O) {
1894
- T.ref = O, Et(n.ref, O);
1895
- }
1896
- }) : null, D && /* @__PURE__ */ Mr(c ? c(gi(i), P, T.instance) : o, T.container));
1897
- }
1898
- return t;
1899
- }
1900
- var Ei = function(e, t) {
1901
- return /* @__PURE__ */ Pr(function(n, o) {
1902
- var a = n.children, u = xr(n, ["children"]);
1903
- return (
1904
- // If I spread them separately here, Babel adds the _extends ponyfill for
1905
- // some reason
1906
- /* @__PURE__ */ gt.createElement(e, Object.assign({}, t, u), a ? /* @__PURE__ */ er(a, {
1907
- ref: function(p) {
1908
- Et(o, p), Et(a.ref, p);
1909
- }
1910
- }) : null)
1911
- );
1912
- });
1913
- }, Ai = /* @__PURE__ */ Ei(/* @__PURE__ */ xi(_e));
1914
- const ji = st.div`
1915
- display: flex;
1916
- justify-content: space-between;
1917
- gap: 5px;
1918
- `, Li = st.div`
1919
- width: 16px;
1920
- height: 100%;
1921
-
1922
- svg {
1923
- /* close buttons */
1924
- cursor: pointer;
1925
- width: 16px;
1926
- height: 16px;
1927
- }
1928
- `, Pi = st(Ai)`
1929
- background-color: ${({ backgroundColor: e }) => e};
1930
- border-radius: 8px;
1931
- border: 1px solid ${({ borderColor: e }) => e};
1932
- transform: translate3d(0, 0, 0);
1933
-
1934
- & > .tippy-content {
1935
- /* 툴팁 내부 박스 */
1936
- ${Br()}
1937
- color: ${({ contentColor: e }) => e} !important;
1938
-
1939
- position: relative;
1940
- white-space: pre-wrap;
1941
- padding: 12.5px 15px;
1942
-
1943
- #custom-tippy-content-close-btn {
1944
- /* TODO: 클릭 후 닫히기 기능 점검 필요 */
1945
- cursor: pointer;
1946
- }
1947
- }
1948
-
1949
- & > .tippy-svg-arrow {
1950
- & > svg {
1951
- transform: translate3d(0, 0, 0);
1952
- }
1953
- }
1954
-
1955
- &.tippy-box[data-placement^='top'] > .tippy-svg-arrow {
1956
- bottom: 0;
1957
- }
1958
- &.tippy-box[data-placement^='top'] > .tippy-svg-arrow:after,
1959
- &.tippy-box[data-placement^='top'] > .tippy-svg-arrow > svg {
1960
- top: 16px;
1961
- transform: rotate(180deg);
1962
- }
1963
- &.tippy-box[data-placement^='bottom'] > .tippy-svg-arrow {
1964
- top: 0;
1965
- }
1966
- &.tippy-box[data-placement^='bottom'] > .tippy-svg-arrow > svg {
1967
- bottom: 16px;
1968
- }
1969
- &.tippy-box[data-placement^='left'] > .tippy-svg-arrow {
1970
- right: 0;
1971
- }
1972
- &.tippy-box[data-placement^='left'] > .tippy-svg-arrow:after,
1973
- &.tippy-box[data-placement^='left'] > .tippy-svg-arrow > svg {
1974
- transform: rotate(90deg);
1975
- top: calc(50% - 3px);
1976
- left: 11px;
1977
- }
1978
- &.tippy-box[data-placement^='right'] > .tippy-svg-arrow {
1979
- left: 0;
1980
- }
1981
- &.tippy-box[data-placement^='right'] > .tippy-svg-arrow:after,
1982
- &.tippy-box[data-placement^='right'] > .tippy-svg-arrow > svg {
1983
- transform: rotate(-90deg);
1984
- top: calc(50% - 3px);
1985
- right: 11px;
1986
- }
1987
- .tippy-svg-arrow {
1988
- width: 16px;
1989
- height: 16px;
1990
- fill: #333;
1991
- text-align: initial;
1992
- }
1993
- .tippy-svg-arrow,
1994
- .tippy-svg-arrow > svg {
1995
- position: absolute;
1996
- }
1997
- `, Ni = st.div`
1998
- display: inline-block;
1999
- ${({ isChildrenFullWidth: e }) => e && "width: 100%"};
2000
- `;
2001
- export {
2002
- Ni as Children,
2003
- Li as CloseButtonWrapper,
2004
- ji as TippyContentAndCloseButtonWrapper,
2005
- Pi as TippyWrapper
2006
- };