@warp-ds/elements 2.2.0-next.1 → 2.2.0-next.11

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 (396) hide show
  1. package/README.md +27 -17
  2. package/dist/.storybook/utilities.d.ts +28 -0
  3. package/dist/.storybook/utilities.js +52 -0
  4. package/dist/api.js +1 -49
  5. package/dist/api.js.map +4 -4
  6. package/dist/custom-elements.json +4282 -0
  7. package/dist/packages/affix/affix.stories.d.ts +10 -0
  8. package/dist/packages/affix/affix.stories.js +25 -0
  9. package/dist/packages/affix/affix.test.d.ts +1 -0
  10. package/dist/packages/affix/affix.test.js +9 -0
  11. package/dist/packages/affix/index.d.ts +52 -24
  12. package/dist/packages/affix/index.js +2448 -2240
  13. package/dist/packages/affix/index.js.map +4 -4
  14. package/dist/packages/affix/react.d.ts +2 -0
  15. package/dist/packages/affix/react.js +8 -0
  16. package/dist/packages/affix/styles.d.ts +1 -0
  17. package/dist/packages/affix/styles.js +2 -0
  18. package/dist/packages/alert/alert.stories.d.ts +15 -0
  19. package/dist/packages/alert/alert.stories.js +68 -0
  20. package/dist/packages/alert/alert.test.d.ts +1 -0
  21. package/dist/packages/alert/alert.test.js +16 -0
  22. package/dist/packages/alert/index.d.ts +27 -17
  23. package/dist/packages/alert/index.js +2452 -2446
  24. package/dist/packages/alert/index.js.map +4 -4
  25. package/dist/packages/alert/react.d.ts +2 -0
  26. package/dist/packages/alert/react.js +8 -0
  27. package/dist/packages/alert/styles.d.ts +1 -0
  28. package/dist/packages/alert/styles.js +2 -0
  29. package/dist/packages/attention/attention.stories.d.ts +15 -0
  30. package/dist/packages/attention/attention.stories.js +188 -0
  31. package/dist/packages/attention/attention.test.d.ts +1 -0
  32. package/dist/packages/attention/attention.test.js +11 -0
  33. package/dist/packages/attention/index.d.ts +62 -90
  34. package/dist/packages/attention/index.js +3360 -3984
  35. package/dist/packages/attention/index.js.map +4 -4
  36. package/dist/packages/attention/layout-styles.d.ts +1 -0
  37. package/dist/packages/attention/layout-styles.js +905 -0
  38. package/dist/packages/attention/locales/da/messages.mjs +1 -0
  39. package/dist/packages/attention/locales/en/messages.mjs +1 -0
  40. package/dist/packages/attention/locales/fi/messages.mjs +1 -0
  41. package/dist/packages/attention/locales/nb/messages.mjs +1 -0
  42. package/dist/packages/attention/locales/sv/messages.mjs +1 -0
  43. package/dist/packages/attention/react.d.ts +1 -0
  44. package/dist/packages/attention/react.js +9 -0
  45. package/dist/packages/attention/styles.d.ts +1 -0
  46. package/dist/packages/attention/styles.js +2 -0
  47. package/dist/packages/badge/badge.stories.d.ts +17 -0
  48. package/dist/packages/badge/badge.stories.js +68 -0
  49. package/dist/packages/badge/badge.test.d.ts +1 -0
  50. package/dist/packages/badge/badge.test.js +9 -0
  51. package/dist/packages/badge/index.d.ts +17 -11
  52. package/dist/packages/badge/index.js +2441 -300
  53. package/dist/packages/badge/index.js.map +4 -4
  54. package/dist/packages/badge/react.d.ts +2 -0
  55. package/dist/packages/badge/react.js +8 -0
  56. package/dist/packages/badge/styles.d.ts +1 -0
  57. package/dist/packages/badge/styles.js +2 -0
  58. package/dist/packages/box/box.stories.d.ts +14 -0
  59. package/dist/packages/box/box.stories.js +59 -0
  60. package/dist/packages/box/box.test.d.ts +1 -0
  61. package/dist/packages/box/box.test.js +9 -0
  62. package/dist/packages/box/index.d.ts +22 -20
  63. package/dist/packages/box/index.js +2441 -304
  64. package/dist/packages/box/index.js.map +4 -4
  65. package/dist/packages/box/react.d.ts +2 -0
  66. package/dist/packages/box/react.js +8 -0
  67. package/dist/packages/box/slot.test.d.ts +1 -0
  68. package/dist/packages/box/slot.test.js +9 -0
  69. package/dist/packages/box/styles.d.ts +1 -0
  70. package/dist/packages/box/styles.js +2 -0
  71. package/dist/packages/breadcrumbs/breadcrumbs.stories.d.ts +12 -0
  72. package/dist/packages/breadcrumbs/breadcrumbs.stories.js +60 -0
  73. package/dist/packages/breadcrumbs/breadcrumbs.test.d.ts +1 -0
  74. package/dist/packages/breadcrumbs/breadcrumbs.test.js +16 -0
  75. package/dist/packages/breadcrumbs/index.d.ts +24 -16
  76. package/dist/packages/breadcrumbs/index.js +2402 -2051
  77. package/dist/packages/breadcrumbs/index.js.map +4 -4
  78. package/dist/packages/breadcrumbs/locales/da/messages.mjs +1 -0
  79. package/dist/packages/breadcrumbs/locales/en/messages.mjs +1 -0
  80. package/dist/packages/breadcrumbs/locales/fi/messages.mjs +1 -0
  81. package/dist/packages/breadcrumbs/locales/nb/messages.mjs +1 -0
  82. package/dist/packages/breadcrumbs/locales/sv/messages.mjs +1 -0
  83. package/dist/packages/breadcrumbs/react.d.ts +2 -0
  84. package/dist/packages/breadcrumbs/react.js +8 -0
  85. package/dist/packages/breadcrumbs/styles.d.ts +1 -0
  86. package/dist/packages/breadcrumbs/styles.js +2 -0
  87. package/dist/packages/button/button.stories.d.ts +21 -0
  88. package/dist/packages/button/button.stories.js +119 -0
  89. package/dist/packages/button/button.test.d.ts +1 -0
  90. package/dist/packages/button/button.test.js +24 -0
  91. package/dist/packages/button/index.d.ts +111 -56
  92. package/dist/packages/button/index.js +2612 -2130
  93. package/dist/packages/button/index.js.map +4 -4
  94. package/dist/packages/button/locales/da/messages.mjs +1 -0
  95. package/dist/packages/button/locales/en/messages.mjs +1 -0
  96. package/dist/packages/button/locales/fi/messages.mjs +1 -0
  97. package/dist/packages/button/locales/nb/messages.mjs +1 -0
  98. package/dist/packages/button/locales/sv/messages.mjs +1 -0
  99. package/dist/packages/button/react.d.ts +2 -0
  100. package/dist/packages/button/react.js +8 -0
  101. package/dist/packages/button/styles.d.ts +1 -0
  102. package/dist/packages/button/styles.js +2 -0
  103. package/dist/packages/card/card.stories.d.ts +15 -0
  104. package/dist/packages/card/card.stories.js +82 -0
  105. package/dist/packages/card/card.test.d.ts +1 -0
  106. package/dist/packages/card/card.test.js +9 -0
  107. package/dist/packages/card/index.d.ts +33 -16
  108. package/dist/packages/card/index.js +2403 -2067
  109. package/dist/packages/card/index.js.map +4 -4
  110. package/dist/packages/card/locales/da/messages.mjs +1 -0
  111. package/dist/packages/card/locales/en/messages.mjs +1 -0
  112. package/dist/packages/card/locales/fi/messages.mjs +1 -0
  113. package/dist/packages/card/locales/nb/messages.mjs +1 -0
  114. package/dist/packages/card/locales/sv/messages.mjs +1 -0
  115. package/dist/packages/card/react.d.ts +2 -0
  116. package/dist/packages/card/react.js +8 -0
  117. package/dist/packages/card/styles.d.ts +1 -0
  118. package/dist/packages/card/styles.js +2 -0
  119. package/dist/packages/datepicker/DatePicker.test.d.ts +1 -0
  120. package/dist/packages/datepicker/DatePicker.test.js +68 -0
  121. package/dist/packages/datepicker/datepicker.d.ts +107 -0
  122. package/dist/packages/datepicker/datepicker.js +2785 -0
  123. package/dist/packages/datepicker/datepicker.js.map +7 -0
  124. package/dist/packages/datepicker/datepicker.stories.d.ts +11 -0
  125. package/dist/packages/datepicker/datepicker.stories.js +50 -0
  126. package/dist/packages/datepicker/datepicker.test.d.ts +2 -0
  127. package/dist/packages/datepicker/datepicker.test.js +62 -0
  128. package/dist/packages/datepicker/index.d.ts +1 -0
  129. package/dist/packages/datepicker/index.js +2785 -0
  130. package/dist/packages/datepicker/index.js.map +7 -0
  131. package/dist/packages/datepicker/locales/da/messages.d.mts +1 -0
  132. package/dist/packages/datepicker/locales/da/messages.mjs +1 -0
  133. package/dist/packages/datepicker/locales/en/messages.d.mts +1 -0
  134. package/dist/packages/datepicker/locales/en/messages.mjs +1 -0
  135. package/dist/packages/datepicker/locales/fi/messages.d.mts +1 -0
  136. package/dist/packages/datepicker/locales/fi/messages.mjs +1 -0
  137. package/dist/packages/datepicker/locales/nb/messages.d.mts +1 -0
  138. package/dist/packages/datepicker/locales/nb/messages.mjs +1 -0
  139. package/dist/packages/datepicker/locales/sv/messages.d.mts +1 -0
  140. package/dist/packages/datepicker/locales/sv/messages.mjs +1 -0
  141. package/dist/packages/datepicker/react.d.ts +2 -0
  142. package/dist/packages/datepicker/react.js +8 -0
  143. package/dist/packages/datepicker/styles/w-datepicker-calendar.styles.d.ts +1 -0
  144. package/dist/packages/datepicker/styles/w-datepicker-calendar.styles.js +15 -0
  145. package/dist/packages/datepicker/styles/w-datepicker-day.styles.d.ts +1 -0
  146. package/dist/packages/datepicker/styles/w-datepicker-day.styles.js +64 -0
  147. package/dist/packages/datepicker/styles/w-datepicker-month.styles.d.ts +1 -0
  148. package/dist/packages/datepicker/styles/w-datepicker-month.styles.js +72 -0
  149. package/dist/packages/datepicker/styles/w-datepicker.styles.d.ts +1 -0
  150. package/dist/packages/datepicker/styles/w-datepicker.styles.js +101 -0
  151. package/dist/packages/datepicker/utils.d.ts +13 -0
  152. package/dist/packages/datepicker/utils.js +28 -0
  153. package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +10 -0
  154. package/dist/packages/dead-toggle/dead-toggle.stories.js +23 -0
  155. package/dist/packages/dead-toggle/dead-toggle.test.d.ts +1 -0
  156. package/dist/packages/dead-toggle/dead-toggle.test.js +9 -0
  157. package/dist/packages/dead-toggle/index.d.ts +21 -0
  158. package/dist/packages/dead-toggle/index.js +2487 -0
  159. package/dist/packages/dead-toggle/index.js.map +7 -0
  160. package/dist/packages/dead-toggle/react.d.ts +2 -0
  161. package/dist/packages/dead-toggle/react.js +8 -0
  162. package/dist/packages/expandable/expandable.stories.d.ts +19 -0
  163. package/dist/packages/expandable/expandable.stories.js +133 -0
  164. package/dist/packages/expandable/expandable.test.d.ts +1 -0
  165. package/dist/packages/expandable/expandable.test.js +24 -0
  166. package/dist/packages/expandable/index.d.ts +55 -50
  167. package/dist/packages/expandable/index.js +2416 -2287
  168. package/dist/packages/expandable/index.js.map +4 -4
  169. package/dist/packages/expandable/react.d.ts +2 -0
  170. package/dist/packages/expandable/react.js +8 -0
  171. package/dist/packages/expandable/styles.d.ts +1 -0
  172. package/dist/packages/expandable/styles.js +2 -0
  173. package/dist/packages/i18n.js +44 -0
  174. package/dist/packages/link/index.d.ts +39 -0
  175. package/dist/packages/link/index.js +2646 -0
  176. package/dist/packages/link/index.js.map +7 -0
  177. package/dist/packages/link/link.stories.d.ts +20 -0
  178. package/dist/packages/link/link.stories.js +121 -0
  179. package/dist/packages/link/link.test.d.ts +1 -0
  180. package/dist/packages/link/link.test.js +9 -0
  181. package/dist/packages/link/react.d.ts +2 -0
  182. package/dist/packages/link/react.js +8 -0
  183. package/dist/packages/link/styles.d.ts +1 -0
  184. package/dist/packages/link/styles.js +200 -0
  185. package/dist/packages/modal/index.d.ts +4 -5
  186. package/dist/packages/modal/index.js +2649 -2569
  187. package/dist/packages/modal/index.js.map +4 -4
  188. package/dist/packages/modal/locales/da/messages.mjs +1 -0
  189. package/dist/packages/modal/locales/en/messages.mjs +1 -0
  190. package/dist/packages/modal/locales/fi/messages.mjs +1 -0
  191. package/dist/packages/modal/locales/nb/messages.mjs +1 -0
  192. package/dist/packages/modal/locales/sv/messages.mjs +1 -0
  193. package/dist/packages/modal/modal-footer.d.ts +18 -11
  194. package/dist/packages/modal/modal-footer.js +2460 -0
  195. package/dist/packages/modal/modal-footer.js.map +7 -0
  196. package/dist/packages/modal/modal-header.d.ts +30 -31
  197. package/dist/packages/modal/modal-header.js +2584 -0
  198. package/dist/packages/modal/modal-header.js.map +7 -0
  199. package/dist/packages/modal/modal-main.d.ts +32 -31
  200. package/dist/packages/modal/modal-main.js +2572 -0
  201. package/dist/packages/modal/modal-main.js.map +7 -0
  202. package/dist/packages/modal/modal.stories.d.ts +19 -0
  203. package/dist/packages/modal/modal.stories.js +160 -0
  204. package/dist/packages/modal/react.d.ts +4 -0
  205. package/dist/packages/modal/react.js +18 -0
  206. package/dist/packages/modal/util.d.ts +7 -17
  207. package/dist/packages/modal/util.js +21 -0
  208. package/dist/packages/pageindicator/index.d.ts +14 -0
  209. package/dist/packages/pageindicator/index.js +32 -0
  210. package/dist/packages/pageindicator/index.js.map +7 -0
  211. package/dist/packages/pageindicator/pageindicator.stories.d.ts +32 -0
  212. package/dist/packages/pageindicator/pageindicator.stories.js +71 -0
  213. package/dist/packages/pageindicator/react.d.ts +2 -0
  214. package/dist/packages/pageindicator/react.js +8 -0
  215. package/dist/packages/pageindicator/style.d.ts +1 -0
  216. package/dist/packages/pageindicator/style.js +26 -0
  217. package/dist/packages/pagination/index.d.ts +37 -0
  218. package/dist/packages/pagination/index.js +2494 -0
  219. package/dist/packages/pagination/index.js.map +7 -0
  220. package/dist/packages/pagination/locales/da/messages.d.mts +1 -0
  221. package/dist/packages/pagination/locales/da/messages.mjs +1 -0
  222. package/dist/packages/pagination/locales/en/messages.d.mts +1 -0
  223. package/dist/packages/pagination/locales/en/messages.mjs +1 -0
  224. package/dist/packages/pagination/locales/fi/messages.d.mts +1 -0
  225. package/dist/packages/pagination/locales/fi/messages.mjs +1 -0
  226. package/dist/packages/pagination/locales/nb/messages.d.mts +1 -0
  227. package/dist/packages/pagination/locales/nb/messages.mjs +1 -0
  228. package/dist/packages/pagination/locales/sv/messages.d.mts +1 -0
  229. package/dist/packages/pagination/locales/sv/messages.mjs +1 -0
  230. package/dist/packages/pagination/pagination.stories.d.ts +14 -0
  231. package/dist/packages/pagination/pagination.stories.js +56 -0
  232. package/dist/packages/pagination/pagination.test.d.ts +1 -0
  233. package/dist/packages/pagination/pagination.test.js +76 -0
  234. package/dist/packages/pagination/react.d.ts +2 -0
  235. package/dist/packages/pagination/react.js +8 -0
  236. package/dist/packages/pagination/styles.d.ts +1 -0
  237. package/dist/packages/pagination/styles.js +2 -0
  238. package/dist/packages/pill/index.d.ts +44 -23
  239. package/dist/packages/pill/index.js +2408 -2175
  240. package/dist/packages/pill/index.js.map +4 -4
  241. package/dist/packages/pill/locales/da/messages.mjs +1 -0
  242. package/dist/packages/pill/locales/en/messages.mjs +1 -0
  243. package/dist/packages/pill/locales/fi/messages.mjs +1 -0
  244. package/dist/packages/pill/locales/nb/messages.mjs +1 -0
  245. package/dist/packages/pill/locales/sv/messages.mjs +1 -0
  246. package/dist/packages/pill/pill.stories.d.ts +12 -0
  247. package/dist/packages/pill/pill.stories.js +33 -0
  248. package/dist/packages/pill/pill.test.d.ts +1 -0
  249. package/dist/packages/pill/pill.test.js +23 -0
  250. package/dist/packages/pill/styles.d.ts +1 -0
  251. package/dist/packages/pill/styles.js +2 -0
  252. package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +64 -0
  253. package/dist/packages/rip-and-tear-checkbox/checkbox.js +210 -0
  254. package/dist/packages/rip-and-tear-checkbox/index.d.ts +6 -0
  255. package/dist/packages/rip-and-tear-checkbox/index.js +160 -0
  256. package/dist/packages/rip-and-tear-checkbox/index.js.map +7 -0
  257. package/dist/packages/rip-and-tear-checkbox/styles.d.ts +1 -0
  258. package/dist/packages/rip-and-tear-checkbox/styles.js +116 -0
  259. package/dist/packages/rip-and-tear-radio/base-element.d.ts +46 -0
  260. package/dist/packages/rip-and-tear-radio/base-element.js +100 -0
  261. package/dist/packages/rip-and-tear-radio/custom-error-validator.d.ts +6 -0
  262. package/dist/packages/rip-and-tear-radio/custom-error-validator.js +22 -0
  263. package/dist/packages/rip-and-tear-radio/form-associated-element.d.ts +103 -0
  264. package/dist/packages/rip-and-tear-radio/form-associated-element.js +282 -0
  265. package/dist/packages/rip-and-tear-radio/host-styles.d.ts +1 -0
  266. package/dist/packages/rip-and-tear-radio/host-styles.js +12 -0
  267. package/dist/packages/rip-and-tear-radio/index.d.ts +8 -0
  268. package/dist/packages/rip-and-tear-radio/index.js +272 -0
  269. package/dist/packages/rip-and-tear-radio/index.js.map +7 -0
  270. package/dist/packages/rip-and-tear-radio/invalid.d.ts +8 -0
  271. package/dist/packages/rip-and-tear-radio/invalid.js +5 -0
  272. package/dist/packages/rip-and-tear-radio/math.d.ts +1 -0
  273. package/dist/packages/rip-and-tear-radio/math.js +4 -0
  274. package/dist/packages/rip-and-tear-radio/radio-group-styles.d.ts +1 -0
  275. package/dist/packages/rip-and-tear-radio/radio-group-styles.js +60 -0
  276. package/dist/packages/rip-and-tear-radio/radio-group.d.ts +72 -0
  277. package/dist/packages/rip-and-tear-radio/radio-group.js +339 -0
  278. package/dist/packages/rip-and-tear-radio/radio-styles.d.ts +1 -0
  279. package/dist/packages/rip-and-tear-radio/radio-styles.js +172 -0
  280. package/dist/packages/rip-and-tear-radio/radio.d.ts +38 -0
  281. package/dist/packages/rip-and-tear-radio/radio.js +107 -0
  282. package/dist/packages/rip-and-tear-radio/required-validator.d.ts +11 -0
  283. package/dist/packages/rip-and-tear-radio/required-validator.js +34 -0
  284. package/dist/packages/rip-and-tear-radio/slot.d.ts +20 -0
  285. package/dist/packages/rip-and-tear-radio/slot.js +71 -0
  286. package/dist/packages/rip-and-tear-radio/watch.d.ts +26 -0
  287. package/dist/packages/rip-and-tear-radio/watch.js +39 -0
  288. package/dist/packages/select/index.d.ts +59 -48
  289. package/dist/packages/select/index.js +2421 -2236
  290. package/dist/packages/select/index.js.map +4 -4
  291. package/dist/packages/select/locales/da/messages.mjs +1 -0
  292. package/dist/packages/select/locales/en/messages.mjs +1 -0
  293. package/dist/packages/select/locales/fi/messages.mjs +1 -0
  294. package/dist/packages/select/locales/nb/messages.mjs +1 -0
  295. package/dist/packages/select/locales/sv/messages.mjs +1 -0
  296. package/dist/packages/select/react.d.ts +2 -0
  297. package/dist/packages/select/react.js +8 -0
  298. package/dist/packages/select/select.stories.d.ts +10 -0
  299. package/dist/packages/select/select.stories.js +31 -0
  300. package/dist/packages/select/select.test.d.ts +1 -0
  301. package/dist/packages/select/select.test.js +31 -0
  302. package/dist/packages/select/styles.d.ts +1 -0
  303. package/dist/packages/select/styles.js +2 -0
  304. package/dist/packages/steps/index.d.ts +43 -0
  305. package/dist/packages/steps/index.js +2465 -0
  306. package/dist/packages/steps/index.js.map +7 -0
  307. package/dist/packages/steps/locales/da/messages.d.mts +1 -0
  308. package/dist/packages/steps/locales/da/messages.mjs +1 -0
  309. package/dist/packages/steps/locales/en/messages.d.mts +1 -0
  310. package/dist/packages/steps/locales/en/messages.mjs +1 -0
  311. package/dist/packages/steps/locales/fi/messages.d.mts +1 -0
  312. package/dist/packages/steps/locales/fi/messages.mjs +1 -0
  313. package/dist/packages/steps/locales/nb/messages.d.mts +1 -0
  314. package/dist/packages/steps/locales/nb/messages.mjs +1 -0
  315. package/dist/packages/steps/locales/sv/messages.d.mts +1 -0
  316. package/dist/packages/steps/locales/sv/messages.mjs +1 -0
  317. package/dist/packages/steps/react.d.ts +3 -0
  318. package/dist/packages/steps/react.js +13 -0
  319. package/dist/packages/steps/steps.stories.d.ts +12 -0
  320. package/dist/packages/steps/steps.stories.js +172 -0
  321. package/dist/packages/steps/styles.d.ts +1 -0
  322. package/dist/packages/steps/styles.js +2 -0
  323. package/dist/packages/styles.d.ts +2 -0
  324. package/dist/packages/styles.js +2442 -0
  325. package/dist/packages/switch/index.d.ts +20 -0
  326. package/dist/packages/switch/index.js +2455 -0
  327. package/dist/packages/switch/index.js.map +7 -0
  328. package/dist/packages/switch/react.d.ts +2 -0
  329. package/dist/packages/switch/react.js +8 -0
  330. package/dist/packages/switch/styles.d.ts +1 -0
  331. package/dist/packages/switch/styles.js +2 -0
  332. package/dist/packages/switch/switch.stories.d.ts +9 -0
  333. package/dist/packages/switch/switch.stories.js +34 -0
  334. package/dist/packages/tabs/index.d.ts +4 -0
  335. package/dist/packages/tabs/index.js +2470 -0
  336. package/dist/packages/tabs/index.js.map +7 -0
  337. package/dist/packages/tabs/react.d.ts +4 -0
  338. package/dist/packages/tabs/react.js +18 -0
  339. package/dist/packages/tabs/styles.d.ts +1 -0
  340. package/dist/packages/tabs/styles.js +2 -0
  341. package/dist/packages/tabs/tab-panel.d.ts +20 -0
  342. package/dist/packages/tabs/tab-panel.js +51 -0
  343. package/dist/packages/tabs/tab.d.ts +23 -0
  344. package/dist/packages/tabs/tab.js +103 -0
  345. package/dist/packages/tabs/tabs.d.ts +38 -0
  346. package/dist/packages/tabs/tabs.js +238 -0
  347. package/dist/packages/tabs/tabs.stories.d.ts +8 -0
  348. package/dist/packages/tabs/tabs.stories.js +84 -0
  349. package/dist/packages/textfield/index.d.ts +72 -74
  350. package/dist/packages/textfield/index.js +2456 -413
  351. package/dist/packages/textfield/index.js.map +4 -4
  352. package/dist/packages/textfield/react.d.ts +2 -0
  353. package/dist/packages/textfield/react.js +8 -0
  354. package/dist/packages/textfield/styles.d.ts +1 -0
  355. package/dist/packages/textfield/styles.js +2 -0
  356. package/dist/packages/textfield/textfield.stories.d.ts +17 -0
  357. package/dist/packages/textfield/textfield.stories.js +86 -0
  358. package/dist/packages/textfield/textfield.test.d.ts +1 -0
  359. package/dist/packages/textfield/textfield.test.js +9 -0
  360. package/dist/packages/toast/api.d.ts +4 -45
  361. package/dist/packages/toast/api.js +41 -0
  362. package/dist/packages/toast/index.d.ts +3 -0
  363. package/dist/packages/toast/index.js +2466 -2787
  364. package/dist/packages/toast/index.js.map +4 -4
  365. package/dist/packages/toast/locales/da/messages.mjs +1 -0
  366. package/dist/packages/toast/locales/en/messages.mjs +1 -0
  367. package/dist/packages/toast/locales/fi/messages.mjs +1 -0
  368. package/dist/packages/toast/locales/nb/messages.mjs +1 -0
  369. package/dist/packages/toast/locales/sv/messages.mjs +1 -0
  370. package/dist/packages/toast/styles.d.ts +1 -0
  371. package/dist/packages/toast/styles.js +2 -0
  372. package/dist/packages/toast/toast-container.d.ts +12 -63
  373. package/dist/packages/toast/toast-container.js +153 -0
  374. package/dist/packages/toast/toast.d.ts +34 -29
  375. package/dist/packages/toast/toast.js +200 -0
  376. package/dist/packages/toast/toast.stories.d.ts +12 -0
  377. package/dist/packages/toast/toast.stories.js +50 -0
  378. package/dist/packages/toast/types.d.ts +15 -0
  379. package/dist/packages/toast/types.js +1 -0
  380. package/dist/packages/utils/expand-transition.d.ts +3 -2
  381. package/dist/packages/utils/expand-transition.js +59 -0
  382. package/dist/packages/utils/index.d.ts +1 -1
  383. package/dist/packages/utils/index.js +2 -0
  384. package/dist/packages/utils/index.js.map +7 -0
  385. package/dist/packages/utils/unstyled-heading.d.ts +3 -3
  386. package/dist/packages/utils/unstyled-heading.js +22 -0
  387. package/dist/packages/utils/window-exists.js +1 -0
  388. package/dist/setup-tests.d.ts +1 -0
  389. package/dist/setup-tests.js +1 -0
  390. package/dist/vscode.css-custom-data.json +6 -0
  391. package/dist/vscode.html-custom-data.json +421 -0
  392. package/dist/web-types.json +949 -0
  393. package/package.json +88 -32
  394. package/dist/index.d.ts +0 -18
  395. package/dist/index.js +0 -6832
  396. package/dist/index.js.map +0 -7
@@ -1,2254 +1,2462 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
9
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
- var __spreadValues = (a, b) => {
11
- for (var prop in b || (b = {}))
12
- if (__hasOwnProp.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- if (__getOwnPropSymbols)
15
- for (var prop of __getOwnPropSymbols(b)) {
16
- if (__propIsEnum.call(b, prop))
17
- __defNormalProp(a, prop, b[prop]);
18
- }
19
- return a;
20
- };
21
- var __objRest = (source, exclude) => {
22
- var target = {};
23
- for (var prop in source)
24
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
- target[prop] = source[prop];
26
- if (source != null && __getOwnPropSymbols)
27
- for (var prop of __getOwnPropSymbols(source)) {
28
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
- target[prop] = source[prop];
30
- }
31
- return target;
32
- };
33
- var __commonJS = (cb, mod) => function __require() {
34
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
35
- };
36
- var __copyProps = (to, from, except, desc) => {
37
- if (from && typeof from === "object" || typeof from === "function") {
38
- for (let key of __getOwnPropNames(from))
39
- if (!__hasOwnProp.call(to, key) && key !== except)
40
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
41
- }
42
- return to;
43
- };
44
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
45
- // If the importer is in node compatibility mode or this is not an ESM
46
- // file that has been converted to a CommonJS file using a Babel-
47
- // compatible transform (i.e. "__esModule" has not been set), then set
48
- // "default" to the CommonJS "module.exports" for node compatibility.
49
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
50
- mod
51
- ));
52
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
53
-
54
- // node_modules/.pnpm/unraw@3.0.0/node_modules/unraw/dist/errors.js
55
- var require_errors = __commonJS({
56
- "node_modules/.pnpm/unraw@3.0.0/node_modules/unraw/dist/errors.js"(exports) {
57
- "use strict";
58
- Object.defineProperty(exports, "__esModule", { value: true });
59
- exports.errorMessages = exports.ErrorType = void 0;
60
- var ErrorType;
61
- (function(ErrorType2) {
62
- ErrorType2["MalformedUnicode"] = "MALFORMED_UNICODE";
63
- ErrorType2["MalformedHexadecimal"] = "MALFORMED_HEXADECIMAL";
64
- ErrorType2["CodePointLimit"] = "CODE_POINT_LIMIT";
65
- ErrorType2["OctalDeprecation"] = "OCTAL_DEPRECATION";
66
- ErrorType2["EndOfString"] = "END_OF_STRING";
67
- })(ErrorType = exports.ErrorType || (exports.ErrorType = {}));
68
- exports.errorMessages = /* @__PURE__ */ new Map([
69
- [ErrorType.MalformedUnicode, "malformed Unicode character escape sequence"],
70
- [
71
- ErrorType.MalformedHexadecimal,
72
- "malformed hexadecimal character escape sequence"
73
- ],
74
- [
75
- ErrorType.CodePointLimit,
76
- "Unicode codepoint must not be greater than 0x10FFFF in escape sequence"
77
- ],
78
- [
79
- ErrorType.OctalDeprecation,
80
- '"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'
81
- ],
82
- [ErrorType.EndOfString, "malformed escape sequence at end of string"]
83
- ]);
84
- }
85
- });
86
-
87
- // node_modules/.pnpm/unraw@3.0.0/node_modules/unraw/dist/index.js
88
- var require_dist = __commonJS({
89
- "node_modules/.pnpm/unraw@3.0.0/node_modules/unraw/dist/index.js"(exports) {
90
- "use strict";
91
- Object.defineProperty(exports, "__esModule", { value: true });
92
- exports.unraw = exports.errorMessages = exports.ErrorType = void 0;
93
- var errors_1 = require_errors();
94
- Object.defineProperty(exports, "ErrorType", { enumerable: true, get: function() {
95
- return errors_1.ErrorType;
96
- } });
97
- Object.defineProperty(exports, "errorMessages", { enumerable: true, get: function() {
98
- return errors_1.errorMessages;
99
- } });
100
- function parseHexToInt(hex) {
101
- const isOnlyHexChars = !hex.match(/[^a-f0-9]/i);
102
- return isOnlyHexChars ? parseInt(hex, 16) : NaN;
103
- }
104
- function validateAndParseHex(hex, errorName, enforcedLength) {
105
- const parsedHex = parseHexToInt(hex);
106
- if (Number.isNaN(parsedHex) || enforcedLength !== void 0 && enforcedLength !== hex.length) {
107
- throw new SyntaxError(errors_1.errorMessages.get(errorName));
108
- }
109
- return parsedHex;
110
- }
111
- function parseHexadecimalCode(code) {
112
- const parsedCode = validateAndParseHex(code, errors_1.ErrorType.MalformedHexadecimal, 2);
113
- return String.fromCharCode(parsedCode);
114
- }
115
- function parseUnicodeCode(code, surrogateCode) {
116
- const parsedCode = validateAndParseHex(code, errors_1.ErrorType.MalformedUnicode, 4);
117
- if (surrogateCode !== void 0) {
118
- const parsedSurrogateCode = validateAndParseHex(surrogateCode, errors_1.ErrorType.MalformedUnicode, 4);
119
- return String.fromCharCode(parsedCode, parsedSurrogateCode);
120
- }
121
- return String.fromCharCode(parsedCode);
122
- }
123
- function isCurlyBraced(text) {
124
- return text.charAt(0) === "{" && text.charAt(text.length - 1) === "}";
125
- }
126
- function parseUnicodeCodePointCode(codePoint) {
127
- if (!isCurlyBraced(codePoint)) {
128
- throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.MalformedUnicode));
129
- }
130
- const withoutBraces = codePoint.slice(1, -1);
131
- const parsedCode = validateAndParseHex(withoutBraces, errors_1.ErrorType.MalformedUnicode);
132
- try {
133
- return String.fromCodePoint(parsedCode);
134
- } catch (err) {
135
- throw err instanceof RangeError ? new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.CodePointLimit)) : err;
136
- }
137
- }
138
- function parseOctalCode(code, error = false) {
139
- if (error) {
140
- throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.OctalDeprecation));
141
- }
142
- const parsedCode = parseInt(code, 8);
143
- return String.fromCharCode(parsedCode);
144
- }
145
- var singleCharacterEscapes = /* @__PURE__ */ new Map([
146
- ["b", "\b"],
147
- ["f", "\f"],
148
- ["n", "\n"],
149
- ["r", "\r"],
150
- ["t", " "],
151
- ["v", "\v"],
152
- ["0", "\0"]
153
- ]);
154
- function parseSingleCharacterCode(code) {
155
- return singleCharacterEscapes.get(code) || code;
156
- }
157
- var escapeMatch = /\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;
158
- function unraw2(raw, allowOctals = false) {
159
- return raw.replace(escapeMatch, function(_, backslash, hex, codePoint, unicodeWithSurrogate, surrogate, unicode, octal, singleCharacter) {
160
- if (backslash !== void 0) {
161
- return "\\";
162
- }
163
- if (hex !== void 0) {
164
- return parseHexadecimalCode(hex);
165
- }
166
- if (codePoint !== void 0) {
167
- return parseUnicodeCodePointCode(codePoint);
168
- }
169
- if (unicodeWithSurrogate !== void 0) {
170
- return parseUnicodeCode(unicodeWithSurrogate, surrogate);
171
- }
172
- if (unicode !== void 0) {
173
- return parseUnicodeCode(unicode);
174
- }
175
- if (octal === "0") {
176
- return "\0";
177
- }
178
- if (octal !== void 0) {
179
- return parseOctalCode(octal, !allowOctals);
180
- }
181
- if (singleCharacter !== void 0) {
182
- return parseSingleCharacterCode(singleCharacter);
183
- }
184
- throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.EndOfString));
185
- });
186
- }
187
- exports.unraw = unraw2;
188
- exports.default = unraw2;
189
- }
190
- });
191
-
192
- // node_modules/.pnpm/moo@0.5.2/node_modules/moo/moo.js
193
- var require_moo = __commonJS({
194
- "node_modules/.pnpm/moo@0.5.2/node_modules/moo/moo.js"(exports, module) {
195
- (function(root, factory) {
196
- if (typeof define === "function" && define.amd) {
197
- define([], factory);
198
- } else if (typeof module === "object" && module.exports) {
199
- module.exports = factory();
200
- } else {
201
- root.moo = factory();
202
- }
203
- })(exports, function() {
204
- "use strict";
205
- var hasOwnProperty = Object.prototype.hasOwnProperty;
206
- var toString = Object.prototype.toString;
207
- var hasSticky = typeof new RegExp().sticky === "boolean";
208
- function isRegExp(o) {
209
- return o && toString.call(o) === "[object RegExp]";
210
- }
211
- function isObject(o) {
212
- return o && typeof o === "object" && !isRegExp(o) && !Array.isArray(o);
213
- }
214
- function reEscape(s) {
215
- return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
216
- }
217
- function reGroups(s) {
218
- var re = new RegExp("|" + s);
219
- return re.exec("").length - 1;
220
- }
221
- function reCapture(s) {
222
- return "(" + s + ")";
223
- }
224
- function reUnion(regexps) {
225
- if (!regexps.length) return "(?!)";
226
- var source = regexps.map(function(s) {
227
- return "(?:" + s + ")";
228
- }).join("|");
229
- return "(?:" + source + ")";
230
- }
231
- function regexpOrLiteral(obj) {
232
- if (typeof obj === "string") {
233
- return "(?:" + reEscape(obj) + ")";
234
- } else if (isRegExp(obj)) {
235
- if (obj.ignoreCase) throw new Error("RegExp /i flag not allowed");
236
- if (obj.global) throw new Error("RegExp /g flag is implied");
237
- if (obj.sticky) throw new Error("RegExp /y flag is implied");
238
- if (obj.multiline) throw new Error("RegExp /m flag is implied");
239
- return obj.source;
240
- } else {
241
- throw new Error("Not a pattern: " + obj);
242
- }
243
- }
244
- function pad(s, length) {
245
- if (s.length > length) {
246
- return s;
247
- }
248
- return Array(length - s.length + 1).join(" ") + s;
249
- }
250
- function lastNLines(string, numLines) {
251
- var position = string.length;
252
- var lineBreaks = 0;
253
- while (true) {
254
- var idx = string.lastIndexOf("\n", position - 1);
255
- if (idx === -1) {
256
- break;
257
- } else {
258
- lineBreaks++;
259
- }
260
- position = idx;
261
- if (lineBreaks === numLines) {
262
- break;
263
- }
264
- if (position === 0) {
265
- break;
266
- }
267
- }
268
- var startPosition = lineBreaks < numLines ? 0 : position + 1;
269
- return string.substring(startPosition).split("\n");
270
- }
271
- function objectToRules(object) {
272
- var keys = Object.getOwnPropertyNames(object);
273
- var result = [];
274
- for (var i = 0; i < keys.length; i++) {
275
- var key = keys[i];
276
- var thing = object[key];
277
- var rules = [].concat(thing);
278
- if (key === "include") {
279
- for (var j = 0; j < rules.length; j++) {
280
- result.push({ include: rules[j] });
281
- }
282
- continue;
283
- }
284
- var match = [];
285
- rules.forEach(function(rule) {
286
- if (isObject(rule)) {
287
- if (match.length) result.push(ruleOptions(key, match));
288
- result.push(ruleOptions(key, rule));
289
- match = [];
290
- } else {
291
- match.push(rule);
292
- }
293
- });
294
- if (match.length) result.push(ruleOptions(key, match));
295
- }
296
- return result;
297
- }
298
- function arrayToRules(array) {
299
- var result = [];
300
- for (var i = 0; i < array.length; i++) {
301
- var obj = array[i];
302
- if (obj.include) {
303
- var include = [].concat(obj.include);
304
- for (var j = 0; j < include.length; j++) {
305
- result.push({ include: include[j] });
306
- }
307
- continue;
308
- }
309
- if (!obj.type) {
310
- throw new Error("Rule has no type: " + JSON.stringify(obj));
311
- }
312
- result.push(ruleOptions(obj.type, obj));
313
- }
314
- return result;
315
- }
316
- function ruleOptions(type, obj) {
317
- if (!isObject(obj)) {
318
- obj = { match: obj };
319
- }
320
- if (obj.include) {
321
- throw new Error("Matching rules cannot also include states");
322
- }
323
- var options = {
324
- defaultType: type,
325
- lineBreaks: !!obj.error || !!obj.fallback,
326
- pop: false,
327
- next: null,
328
- push: null,
329
- error: false,
330
- fallback: false,
331
- value: null,
332
- type: null,
333
- shouldThrow: false
334
- };
335
- for (var key in obj) {
336
- if (hasOwnProperty.call(obj, key)) {
337
- options[key] = obj[key];
338
- }
339
- }
340
- if (typeof options.type === "string" && type !== options.type) {
341
- throw new Error("Type transform cannot be a string (type '" + options.type + "' for token '" + type + "')");
342
- }
343
- var match = options.match;
344
- options.match = Array.isArray(match) ? match : match ? [match] : [];
345
- options.match.sort(function(a, b) {
346
- return isRegExp(a) && isRegExp(b) ? 0 : isRegExp(b) ? -1 : isRegExp(a) ? 1 : b.length - a.length;
347
- });
348
- return options;
349
- }
350
- function toRules(spec) {
351
- return Array.isArray(spec) ? arrayToRules(spec) : objectToRules(spec);
352
- }
353
- var defaultErrorRule = ruleOptions("error", { lineBreaks: true, shouldThrow: true });
354
- function compileRules(rules, hasStates) {
355
- var errorRule = null;
356
- var fast = /* @__PURE__ */ Object.create(null);
357
- var fastAllowed = true;
358
- var unicodeFlag = null;
359
- var groups = [];
360
- var parts = [];
361
- for (var i = 0; i < rules.length; i++) {
362
- if (rules[i].fallback) {
363
- fastAllowed = false;
364
- }
365
- }
366
- for (var i = 0; i < rules.length; i++) {
367
- var options = rules[i];
368
- if (options.include) {
369
- throw new Error("Inheritance is not allowed in stateless lexers");
370
- }
371
- if (options.error || options.fallback) {
372
- if (errorRule) {
373
- if (!options.fallback === !errorRule.fallback) {
374
- throw new Error("Multiple " + (options.fallback ? "fallback" : "error") + " rules not allowed (for token '" + options.defaultType + "')");
375
- } else {
376
- throw new Error("fallback and error are mutually exclusive (for token '" + options.defaultType + "')");
377
- }
378
- }
379
- errorRule = options;
380
- }
381
- var match = options.match.slice();
382
- if (fastAllowed) {
383
- while (match.length && typeof match[0] === "string" && match[0].length === 1) {
384
- var word = match.shift();
385
- fast[word.charCodeAt(0)] = options;
386
- }
387
- }
388
- if (options.pop || options.push || options.next) {
389
- if (!hasStates) {
390
- throw new Error("State-switching options are not allowed in stateless lexers (for token '" + options.defaultType + "')");
391
- }
392
- if (options.fallback) {
393
- throw new Error("State-switching options are not allowed on fallback tokens (for token '" + options.defaultType + "')");
394
- }
395
- }
396
- if (match.length === 0) {
397
- continue;
398
- }
399
- fastAllowed = false;
400
- groups.push(options);
401
- for (var j = 0; j < match.length; j++) {
402
- var obj = match[j];
403
- if (!isRegExp(obj)) {
404
- continue;
405
- }
406
- if (unicodeFlag === null) {
407
- unicodeFlag = obj.unicode;
408
- } else if (unicodeFlag !== obj.unicode && options.fallback === false) {
409
- throw new Error("If one rule is /u then all must be");
410
- }
411
- }
412
- var pat = reUnion(match.map(regexpOrLiteral));
413
- var regexp = new RegExp(pat);
414
- if (regexp.test("")) {
415
- throw new Error("RegExp matches empty string: " + regexp);
416
- }
417
- var groupCount = reGroups(pat);
418
- if (groupCount > 0) {
419
- throw new Error("RegExp has capture groups: " + regexp + "\nUse (?: \u2026 ) instead");
420
- }
421
- if (!options.lineBreaks && regexp.test("\n")) {
422
- throw new Error("Rule should declare lineBreaks: " + regexp);
423
- }
424
- parts.push(reCapture(pat));
425
- }
426
- var fallbackRule = errorRule && errorRule.fallback;
427
- var flags = hasSticky && !fallbackRule ? "ym" : "gm";
428
- var suffix2 = hasSticky || fallbackRule ? "" : "|";
429
- if (unicodeFlag === true) flags += "u";
430
- var combined = new RegExp(reUnion(parts) + suffix2, flags);
431
- return { regexp: combined, groups, fast, error: errorRule || defaultErrorRule };
432
- }
433
- function compile(rules) {
434
- var result = compileRules(toRules(rules));
435
- return new Lexer({ start: result }, "start");
436
- }
437
- function checkStateGroup(g, name, map) {
438
- var state = g && (g.push || g.next);
439
- if (state && !map[state]) {
440
- throw new Error("Missing state '" + state + "' (in token '" + g.defaultType + "' of state '" + name + "')");
441
- }
442
- if (g && g.pop && +g.pop !== 1) {
443
- throw new Error("pop must be 1 (in token '" + g.defaultType + "' of state '" + name + "')");
444
- }
445
- }
446
- function compileStates(states, start) {
447
- var all = states.$all ? toRules(states.$all) : [];
448
- delete states.$all;
449
- var keys = Object.getOwnPropertyNames(states);
450
- if (!start) start = keys[0];
451
- var ruleMap = /* @__PURE__ */ Object.create(null);
452
- for (var i = 0; i < keys.length; i++) {
453
- var key = keys[i];
454
- ruleMap[key] = toRules(states[key]).concat(all);
455
- }
456
- for (var i = 0; i < keys.length; i++) {
457
- var key = keys[i];
458
- var rules = ruleMap[key];
459
- var included = /* @__PURE__ */ Object.create(null);
460
- for (var j = 0; j < rules.length; j++) {
461
- var rule = rules[j];
462
- if (!rule.include) continue;
463
- var splice = [j, 1];
464
- if (rule.include !== key && !included[rule.include]) {
465
- included[rule.include] = true;
466
- var newRules = ruleMap[rule.include];
467
- if (!newRules) {
468
- throw new Error("Cannot include nonexistent state '" + rule.include + "' (in state '" + key + "')");
469
- }
470
- for (var k = 0; k < newRules.length; k++) {
471
- var newRule = newRules[k];
472
- if (rules.indexOf(newRule) !== -1) continue;
473
- splice.push(newRule);
474
- }
475
- }
476
- rules.splice.apply(rules, splice);
477
- j--;
478
- }
479
- }
480
- var map = /* @__PURE__ */ Object.create(null);
481
- for (var i = 0; i < keys.length; i++) {
482
- var key = keys[i];
483
- map[key] = compileRules(ruleMap[key], true);
484
- }
485
- for (var i = 0; i < keys.length; i++) {
486
- var name = keys[i];
487
- var state = map[name];
488
- var groups = state.groups;
489
- for (var j = 0; j < groups.length; j++) {
490
- checkStateGroup(groups[j], name, map);
491
- }
492
- var fastKeys = Object.getOwnPropertyNames(state.fast);
493
- for (var j = 0; j < fastKeys.length; j++) {
494
- checkStateGroup(state.fast[fastKeys[j]], name, map);
495
- }
496
- }
497
- return new Lexer(map, start);
498
- }
499
- function keywordTransform(map) {
500
- var isMap = typeof Map !== "undefined";
501
- var reverseMap = isMap ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
502
- var types = Object.getOwnPropertyNames(map);
503
- for (var i = 0; i < types.length; i++) {
504
- var tokenType = types[i];
505
- var item = map[tokenType];
506
- var keywordList = Array.isArray(item) ? item : [item];
507
- keywordList.forEach(function(keyword) {
508
- if (typeof keyword !== "string") {
509
- throw new Error("keyword must be string (in keyword '" + tokenType + "')");
510
- }
511
- if (isMap) {
512
- reverseMap.set(keyword, tokenType);
513
- } else {
514
- reverseMap[keyword] = tokenType;
515
- }
516
- });
517
- }
518
- return function(k) {
519
- return isMap ? reverseMap.get(k) : reverseMap[k];
520
- };
521
- }
522
- var Lexer = function(states, state) {
523
- this.startState = state;
524
- this.states = states;
525
- this.buffer = "";
526
- this.stack = [];
527
- this.reset();
528
- };
529
- Lexer.prototype.reset = function(data, info) {
530
- this.buffer = data || "";
531
- this.index = 0;
532
- this.line = info ? info.line : 1;
533
- this.col = info ? info.col : 1;
534
- this.queuedToken = info ? info.queuedToken : null;
535
- this.queuedText = info ? info.queuedText : "";
536
- this.queuedThrow = info ? info.queuedThrow : null;
537
- this.setState(info ? info.state : this.startState);
538
- this.stack = info && info.stack ? info.stack.slice() : [];
539
- return this;
540
- };
541
- Lexer.prototype.save = function() {
542
- return {
543
- line: this.line,
544
- col: this.col,
545
- state: this.state,
546
- stack: this.stack.slice(),
547
- queuedToken: this.queuedToken,
548
- queuedText: this.queuedText,
549
- queuedThrow: this.queuedThrow
550
- };
551
- };
552
- Lexer.prototype.setState = function(state) {
553
- if (!state || this.state === state) return;
554
- this.state = state;
555
- var info = this.states[state];
556
- this.groups = info.groups;
557
- this.error = info.error;
558
- this.re = info.regexp;
559
- this.fast = info.fast;
560
- };
561
- Lexer.prototype.popState = function() {
562
- this.setState(this.stack.pop());
563
- };
564
- Lexer.prototype.pushState = function(state) {
565
- this.stack.push(this.state);
566
- this.setState(state);
567
- };
568
- var eat = hasSticky ? function(re, buffer) {
569
- return re.exec(buffer);
570
- } : function(re, buffer) {
571
- var match = re.exec(buffer);
572
- if (match[0].length === 0) {
573
- return null;
574
- }
575
- return match;
576
- };
577
- Lexer.prototype._getGroup = function(match) {
578
- var groupCount = this.groups.length;
579
- for (var i = 0; i < groupCount; i++) {
580
- if (match[i + 1] !== void 0) {
581
- return this.groups[i];
582
- }
583
- }
584
- throw new Error("Cannot find token type for matched text");
585
- };
586
- function tokenToString() {
587
- return this.value;
588
- }
589
- Lexer.prototype.next = function() {
590
- var index = this.index;
591
- if (this.queuedGroup) {
592
- var token = this._token(this.queuedGroup, this.queuedText, index);
593
- this.queuedGroup = null;
594
- this.queuedText = "";
595
- return token;
596
- }
597
- var buffer = this.buffer;
598
- if (index === buffer.length) {
599
- return;
600
- }
601
- var group = this.fast[buffer.charCodeAt(index)];
602
- if (group) {
603
- return this._token(group, buffer.charAt(index), index);
604
- }
605
- var re = this.re;
606
- re.lastIndex = index;
607
- var match = eat(re, buffer);
608
- var error = this.error;
609
- if (match == null) {
610
- return this._token(error, buffer.slice(index, buffer.length), index);
611
- }
612
- var group = this._getGroup(match);
613
- var text = match[0];
614
- if (error.fallback && match.index !== index) {
615
- this.queuedGroup = group;
616
- this.queuedText = text;
617
- return this._token(error, buffer.slice(index, match.index), index);
618
- }
619
- return this._token(group, text, index);
620
- };
621
- Lexer.prototype._token = function(group, text, offset) {
622
- var lineBreaks = 0;
623
- if (group.lineBreaks) {
624
- var matchNL = /\n/g;
625
- var nl = 1;
626
- if (text === "\n") {
627
- lineBreaks = 1;
628
- } else {
629
- while (matchNL.exec(text)) {
630
- lineBreaks++;
631
- nl = matchNL.lastIndex;
632
- }
633
- }
634
- }
635
- var token = {
636
- type: typeof group.type === "function" && group.type(text) || group.defaultType,
637
- value: typeof group.value === "function" ? group.value(text) : text,
638
- text,
639
- toString: tokenToString,
640
- offset,
641
- lineBreaks,
642
- line: this.line,
643
- col: this.col
644
- };
645
- var size = text.length;
646
- this.index += size;
647
- this.line += lineBreaks;
648
- if (lineBreaks !== 0) {
649
- this.col = size - nl + 1;
650
- } else {
651
- this.col += size;
652
- }
653
- if (group.shouldThrow) {
654
- var err = new Error(this.formatError(token, "invalid syntax"));
655
- throw err;
656
- }
657
- if (group.pop) this.popState();
658
- else if (group.push) this.pushState(group.push);
659
- else if (group.next) this.setState(group.next);
660
- return token;
661
- };
662
- if (typeof Symbol !== "undefined" && Symbol.iterator) {
663
- var LexerIterator = function(lexer) {
664
- this.lexer = lexer;
665
- };
666
- LexerIterator.prototype.next = function() {
667
- var token = this.lexer.next();
668
- return { value: token, done: !token };
669
- };
670
- LexerIterator.prototype[Symbol.iterator] = function() {
671
- return this;
672
- };
673
- Lexer.prototype[Symbol.iterator] = function() {
674
- return new LexerIterator(this);
675
- };
676
- }
677
- Lexer.prototype.formatError = function(token, message) {
678
- if (token == null) {
679
- var text = this.buffer.slice(this.index);
680
- var token = {
681
- text,
682
- offset: this.index,
683
- lineBreaks: text.indexOf("\n") === -1 ? 0 : 1,
684
- line: this.line,
685
- col: this.col
686
- };
687
- }
688
- var numLinesAround = 2;
689
- var firstDisplayedLine = Math.max(token.line - numLinesAround, 1);
690
- var lastDisplayedLine = token.line + numLinesAround;
691
- var lastLineDigits = String(lastDisplayedLine).length;
692
- var displayedLines = lastNLines(
693
- this.buffer,
694
- this.line - token.line + numLinesAround + 1
695
- ).slice(0, 5);
696
- var errorLines = [];
697
- errorLines.push(message + " at line " + token.line + " col " + token.col + ":");
698
- errorLines.push("");
699
- for (var i = 0; i < displayedLines.length; i++) {
700
- var line = displayedLines[i];
701
- var lineNo = firstDisplayedLine + i;
702
- errorLines.push(pad(String(lineNo), lastLineDigits) + " " + line);
703
- if (lineNo === token.line) {
704
- errorLines.push(pad("", lastLineDigits + token.col + 1) + "^");
705
- }
706
- }
707
- return errorLines.join("\n");
708
- };
709
- Lexer.prototype.clone = function() {
710
- return new Lexer(this.states, this.state);
711
- };
712
- Lexer.prototype.has = function(tokenType) {
713
- return true;
714
- };
715
- return {
716
- compile,
717
- states: compileStates,
718
- error: Object.freeze({ error: true }),
719
- fallback: Object.freeze({ fallback: true }),
720
- keywords: keywordTransform
721
- };
722
- });
723
- }
724
- });
725
-
726
- // node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/lexer.js
727
- var require_lexer = __commonJS({
728
- "node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/lexer.js"(exports) {
729
- "use strict";
730
- var __importDefault = exports && exports.__importDefault || function(mod) {
731
- return mod && mod.__esModule ? mod : { "default": mod };
732
- };
733
- Object.defineProperty(exports, "__esModule", { value: true });
734
- exports.lexer = exports.states = void 0;
735
- var moo_1 = __importDefault(require_moo());
736
- exports.states = {
737
- body: {
738
- doubleapos: { match: "''", value: () => "'" },
739
- quoted: {
740
- lineBreaks: true,
741
- match: /'[{}#](?:[^']|'')*'(?!')/u,
742
- value: (src) => src.slice(1, -1).replace(/''/g, "'")
743
- },
744
- argument: {
745
- lineBreaks: true,
746
- match: /\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,
747
- push: "arg",
748
- value: (src) => src.substring(1).trim()
749
- },
750
- octothorpe: "#",
751
- end: { match: "}", pop: 1 },
752
- content: { lineBreaks: true, match: /[^][^{}#']*/u }
753
- },
754
- arg: {
755
- select: {
756
- lineBreaks: true,
757
- match: /,\s*(?:plural|select|selectordinal)\s*,\s*/u,
758
- next: "select",
759
- value: (src) => src.split(",")[1].trim()
760
- },
761
- "func-args": {
762
- lineBreaks: true,
763
- match: /,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,
764
- next: "body",
765
- value: (src) => src.split(",")[1].trim()
766
- },
767
- "func-simple": {
768
- lineBreaks: true,
769
- match: /,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,
770
- value: (src) => src.substring(1).trim()
771
- },
772
- end: { match: "}", pop: 1 }
773
- },
774
- select: {
775
- offset: {
776
- lineBreaks: true,
777
- match: /\s*offset\s*:\s*\d+\s*/u,
778
- value: (src) => src.split(":")[1].trim()
779
- },
780
- case: {
781
- lineBreaks: true,
782
- match: /\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,
783
- push: "body",
784
- value: (src) => src.substring(0, src.indexOf("{")).trim()
785
- },
786
- end: { match: /\s*\}/u, pop: 1 }
787
- }
788
- };
789
- exports.lexer = moo_1.default.states(exports.states);
790
- }
791
- });
792
-
793
- // node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/parser.js
794
- var require_parser = __commonJS({
795
- "node_modules/.pnpm/@messageformat+parser@5.1.1/node_modules/@messageformat/parser/lib/parser.js"(exports) {
796
- "use strict";
797
- Object.defineProperty(exports, "__esModule", { value: true });
798
- exports.ParseError = void 0;
799
- exports.parse = parse2;
800
- var lexer_js_1 = require_lexer();
801
- var getContext = (lt) => ({
802
- offset: lt.offset,
803
- line: lt.line,
804
- col: lt.col,
805
- text: lt.text,
806
- lineBreaks: lt.lineBreaks
807
- });
808
- var isSelectType = (type) => type === "plural" || type === "select" || type === "selectordinal";
809
- function strictArgStyleParam(lt, param) {
810
- let value = "";
811
- let text = "";
812
- for (const p of param) {
813
- const pText = p.ctx.text;
814
- text += pText;
815
- switch (p.type) {
816
- case "content":
817
- value += p.value;
818
- break;
819
- case "argument":
820
- case "function":
821
- case "octothorpe":
822
- value += pText;
823
- break;
824
- default:
825
- throw new ParseError(lt, `Unsupported part in strict mode function arg style: ${pText}`);
826
- }
827
- }
828
- const c = {
829
- type: "content",
830
- value: value.trim(),
831
- ctx: Object.assign({}, param[0].ctx, { text })
832
- };
833
- return [c];
834
- }
835
- var strictArgTypes = [
836
- "number",
837
- "date",
838
- "time",
839
- "spellout",
840
- "ordinal",
841
- "duration"
842
- ];
843
- var defaultPluralKeys = ["zero", "one", "two", "few", "many", "other"];
844
- var ParseError = class extends Error {
845
- /** @internal */
846
- constructor(lt, msg) {
847
- super(lexer_js_1.lexer.formatError(lt, msg));
848
- }
849
- };
850
- exports.ParseError = ParseError;
851
- var Parser = class {
852
- constructor(src, opt) {
853
- var _a, _b, _c, _d;
854
- this.lexer = lexer_js_1.lexer.reset(src);
855
- this.cardinalKeys = (_a = opt === null || opt === void 0 ? void 0 : opt.cardinal) !== null && _a !== void 0 ? _a : defaultPluralKeys;
856
- this.ordinalKeys = (_b = opt === null || opt === void 0 ? void 0 : opt.ordinal) !== null && _b !== void 0 ? _b : defaultPluralKeys;
857
- this.strict = (_c = opt === null || opt === void 0 ? void 0 : opt.strict) !== null && _c !== void 0 ? _c : false;
858
- this.strictPluralKeys = (_d = opt === null || opt === void 0 ? void 0 : opt.strictPluralKeys) !== null && _d !== void 0 ? _d : true;
859
- }
860
- parse() {
861
- return this.parseBody(false, true);
862
- }
863
- checkSelectKey(lt, type, key) {
864
- if (key[0] === "=") {
865
- if (type === "select") {
866
- throw new ParseError(lt, `The case ${key} is not valid with select`);
867
- }
868
- } else if (type !== "select") {
869
- const keys = type === "plural" ? this.cardinalKeys : this.ordinalKeys;
870
- if (this.strictPluralKeys && keys.length > 0 && !keys.includes(key)) {
871
- const msg = `The ${type} case ${key} is not valid in this locale`;
872
- throw new ParseError(lt, msg);
873
- }
874
- }
875
- }
876
- parseSelect({ value: arg }, inPlural, ctx, type) {
877
- const sel = { type, arg, cases: [], ctx };
878
- if (type === "plural" || type === "selectordinal")
879
- inPlural = true;
880
- else if (this.strict)
881
- inPlural = false;
882
- for (const lt of this.lexer) {
883
- switch (lt.type) {
884
- case "offset":
885
- if (type === "select") {
886
- throw new ParseError(lt, "Unexpected plural offset for select");
887
- }
888
- if (sel.cases.length > 0) {
889
- throw new ParseError(lt, "Plural offset must be set before cases");
890
- }
891
- sel.pluralOffset = Number(lt.value);
892
- ctx.text += lt.text;
893
- ctx.lineBreaks += lt.lineBreaks;
894
- break;
895
- case "case": {
896
- this.checkSelectKey(lt, type, lt.value);
897
- sel.cases.push({
898
- key: lt.value,
899
- tokens: this.parseBody(inPlural),
900
- ctx: getContext(lt)
901
- });
902
- break;
903
- }
904
- case "end":
905
- return sel;
906
- default:
907
- throw new ParseError(lt, `Unexpected lexer token: ${lt.type}`);
908
- }
909
- }
910
- throw new ParseError(null, "Unexpected message end");
911
- }
912
- parseArgToken(lt, inPlural) {
913
- const ctx = getContext(lt);
914
- const argType = this.lexer.next();
915
- if (!argType)
916
- throw new ParseError(null, "Unexpected message end");
917
- ctx.text += argType.text;
918
- ctx.lineBreaks += argType.lineBreaks;
919
- if (this.strict && (argType.type === "func-simple" || argType.type === "func-args") && !strictArgTypes.includes(argType.value)) {
920
- const msg = `Invalid strict mode function arg type: ${argType.value}`;
921
- throw new ParseError(lt, msg);
922
- }
923
- switch (argType.type) {
924
- case "end":
925
- return { type: "argument", arg: lt.value, ctx };
926
- case "func-simple": {
927
- const end = this.lexer.next();
928
- if (!end)
929
- throw new ParseError(null, "Unexpected message end");
930
- if (end.type !== "end") {
931
- throw new ParseError(end, `Unexpected lexer token: ${end.type}`);
932
- }
933
- ctx.text += end.text;
934
- if (isSelectType(argType.value.toLowerCase())) {
935
- throw new ParseError(argType, `Invalid type identifier: ${argType.value}`);
936
- }
937
- return {
938
- type: "function",
939
- arg: lt.value,
940
- key: argType.value,
941
- ctx
942
- };
943
- }
944
- case "func-args": {
945
- if (isSelectType(argType.value.toLowerCase())) {
946
- const msg = `Invalid type identifier: ${argType.value}`;
947
- throw new ParseError(argType, msg);
948
- }
949
- let param = this.parseBody(this.strict ? false : inPlural);
950
- if (this.strict && param.length > 0) {
951
- param = strictArgStyleParam(lt, param);
952
- }
953
- return {
954
- type: "function",
955
- arg: lt.value,
956
- key: argType.value,
957
- param,
958
- ctx
959
- };
960
- }
961
- case "select":
962
- if (isSelectType(argType.value)) {
963
- return this.parseSelect(lt, inPlural, ctx, argType.value);
964
- } else {
965
- throw new ParseError(argType, `Unexpected select type ${argType.value}`);
966
- }
967
- default:
968
- throw new ParseError(argType, `Unexpected lexer token: ${argType.type}`);
969
- }
970
- }
971
- parseBody(inPlural, atRoot) {
972
- const tokens = [];
973
- let content = null;
974
- for (const lt of this.lexer) {
975
- if (lt.type === "argument") {
976
- if (content)
977
- content = null;
978
- tokens.push(this.parseArgToken(lt, inPlural));
979
- } else if (lt.type === "octothorpe" && inPlural) {
980
- if (content)
981
- content = null;
982
- tokens.push({ type: "octothorpe", ctx: getContext(lt) });
983
- } else if (lt.type === "end" && !atRoot) {
984
- return tokens;
985
- } else {
986
- let value = lt.value;
987
- if (!inPlural && lt.type === "quoted" && value[0] === "#") {
988
- if (value.includes("{")) {
989
- const errMsg = `Unsupported escape pattern: ${value}`;
990
- throw new ParseError(lt, errMsg);
991
- }
992
- value = lt.text;
993
- }
994
- if (content) {
995
- content.value += value;
996
- content.ctx.text += lt.text;
997
- content.ctx.lineBreaks += lt.lineBreaks;
998
- } else {
999
- content = { type: "content", value, ctx: getContext(lt) };
1000
- tokens.push(content);
1001
- }
1002
- }
1003
- }
1004
- if (atRoot)
1005
- return tokens;
1006
- throw new ParseError(null, "Unexpected message end");
1007
- }
1008
- };
1009
- function parse2(src, options = {}) {
1010
- const parser = new Parser(src, options);
1011
- return parser.parse();
1012
- }
1013
- }
1014
- });
1015
-
1016
- // packages/affix/index.js
1017
- import { html as html3 } from "lit";
1018
-
1019
- // node_modules/.pnpm/@chbphone55+classnames@2.0.0/node_modules/@chbphone55/classnames/dist/index.m.js
1020
- var r = function() {
1021
- for (var t = [], n = arguments.length; n--; ) t[n] = arguments[n];
1022
- return t.reduce(function(t2, n2) {
1023
- return t2.concat("string" == typeof n2 ? n2 : Array.isArray(n2) ? r.apply(void 0, n2) : "object" == typeof n2 && n2 ? Object.keys(n2).map(function(r2) {
1024
- return n2[r2] ? r2 : "";
1025
- }) : "");
1026
- }, []).join(" ");
1027
- };
1028
-
1029
- // node_modules/.pnpm/@warp-ds+css@2.1.1_@warp-ds+uno@2.1.0_unocss@0.62.0_postcss@8.5.1_rollup@4.32.1_vite@5.3.3_@t_sgrraibu65gdmqpe655kfrpl6a/node_modules/@warp-ds/css/component-classes/index.js
1030
- var buttonDefaultStyling = "font-bold focusable justify-center transition-colors ease-in-out";
1031
- var buttonColors = {
1032
- primary: "s-text-inverted bg-[--w-color-button-primary-background] hover:bg-[--w-color-button-primary-background-hover] active:bg-[--w-color-button-primary-background-active]",
1033
- secondary: "s-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active",
1034
- utility: "s-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active",
1035
- destructive: "s-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active",
1036
- pill: "s-icon hover:s-icon-hover active:s-icon-active bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",
1037
- disabled: "s-text-inverted s-bg-disabled",
1038
- quiet: "bg-transparent s-text-link hover:s-bg-hover active:s-bg-active",
1039
- utilityQuiet: "s-text bg-transparent hover:s-bg-hover active:s-bg-active",
1040
- negativeQuiet: "bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active",
1041
- loading: "s-text s-bg-subtle",
1042
- link: "s-text-link"
1043
- };
1044
- var buttonTypes = {
1045
- primary: `border-0 rounded-8 ${buttonDefaultStyling}`,
1046
- secondary: `border-2 rounded-8 ${buttonDefaultStyling}`,
1047
- utility: `border rounded-4 ${buttonDefaultStyling}`,
1048
- negative: `border-0 rounded-8 ${buttonDefaultStyling}`,
1049
- pill: `p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${buttonDefaultStyling}`,
1050
- link: `bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${buttonColors.link}`
1051
- };
1052
- var buttonSizes = {
1053
- xsmall: "py-6 px-16",
1054
- small: "py-8 px-16",
1055
- medium: "py-10 px-14",
1056
- large: "py-12 px-16",
1057
- utility: "py-[11px] px-[15px]",
1058
- smallUtility: "py-[7px] px-[15px]",
1059
- pill: "min-h-[44px] min-w-[44px]",
1060
- pillSmall: "min-h-32 min-w-32",
1061
- link: "p-0"
1062
- };
1063
- var buttonTextSizes = {
1064
- medium: "text-m leading-[24]",
1065
- xsmall: "text-xs"
1066
- };
1067
- var buttonVariants = {
1068
- inProgress: `border-transparent animate-inprogress pointer-events-none ${buttonColors.loading}`,
1069
- // .button--in-progress, a.button--in-progress:visited
1070
- quiet: `border-0 rounded-8 ${buttonDefaultStyling}`,
1071
- utilityQuiet: `border-0 rounded-4 ${buttonDefaultStyling}`,
1072
- negativeQuiet: `border-0 rounded-8 ${buttonDefaultStyling}`,
1073
- isDisabled: `font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${buttonColors.disabled}`
1074
- // .button:disabled, .button--is-disabled
1075
- };
1076
- var button = {
1077
- // Buttontypes
1078
- secondary: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonColors.secondary}`,
1079
- // .button--secondary, .button--default, .button
1080
- secondaryHref: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonColors.secondary}`,
1081
- secondaryDisabled: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonVariants.isDisabled}`,
1082
- secondarySmall: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonColors.secondary}`,
1083
- secondarySmallDisabled: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonVariants.isDisabled}`,
1084
- secondaryQuiet: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonColors.quiet}`,
1085
- secondaryQuietDisabled: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,
1086
- secondarySmallQuiet: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonColors.quiet}`,
1087
- secondarySmallQuietDisabled: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,
1088
- secondaryLoading: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonVariants.inProgress}`,
1089
- secondarySmallLoading: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonVariants.inProgress}`,
1090
- secondarySmallQuietLoading: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,
1091
- secondaryQuietLoading: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,
1092
- primary: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.primary} ${buttonColors.primary}`,
1093
- // .button--primary, .button--cta
1094
- primaryDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.isDisabled} ${buttonTypes.primary}`,
1095
- primarySmall: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.primary} ${buttonColors.primary}`,
1096
- primarySmallDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.isDisabled} ${buttonTypes.primary} `,
1097
- primaryQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonColors.quiet}`,
1098
- primaryQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,
1099
- primarySmallQuiet: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonColors.quiet}`,
1100
- primarySmallQuietDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`,
1101
- primaryLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.inProgress} ${buttonTypes.primary}`,
1102
- primarySmallLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonTypes.primary}`,
1103
- primarySmallQuietLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.inProgress} ${buttonTypes.primary}`,
1104
- primaryQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.inProgress}`,
1105
- utility: `${buttonSizes.utility} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonColors.utility}`,
1106
- // .button--utility
1107
- utilityDisabled: `${buttonSizes.utility} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonVariants.isDisabled}`,
1108
- utilityQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.utilityQuiet} ${buttonColors.utilityQuiet}`,
1109
- // .button--utility-flat
1110
- utilityQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.utilityQuiet} ${buttonVariants.isDisabled}`,
1111
- utilitySmall: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonColors.utility}`,
1112
- utilitySmallDisabled: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonVariants.isDisabled}`,
1113
- utilitySmallQuiet: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.utilityQuiet} ${buttonColors.utilityQuiet}`,
1114
- utilitySmallQuietDisabled: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.utilityQuiet} ${buttonVariants.isDisabled}`,
1115
- utilityLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonVariants.inProgress}`,
1116
- utilitySmallLoading: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonVariants.inProgress}`,
1117
- utilityQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.inProgress} ${buttonVariants.utilityQuiet}`,
1118
- utilitySmallQuietLoading: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonVariants.utilityQuiet}`,
1119
- negative: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonColors.destructive}`,
1120
- // .button--destructive
1121
- negativeDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonVariants.isDisabled}`,
1122
- negativeQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet} ${buttonColors.negativeQuiet}`,
1123
- // .button--destructive-flat
1124
- negativeQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet}${buttonVariants.isDisabled}`,
1125
- negativeSmall: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.negative} ${buttonColors.destructive}`,
1126
- negativeSmallDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.negative} ${buttonVariants.isDisabled}`,
1127
- negativeSmallQuiet: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonColors.negativeQuiet}`,
1128
- negativeSmallQuietDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonVariants.isDisabled}`,
1129
- negativeLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonVariants.inProgress}`,
1130
- negativeSmallLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonTypes.negative}`,
1131
- negativeQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet} ${buttonTypes.negative} ${buttonVariants.inProgress}`,
1132
- negativeSmallQuietLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonVariants.inProgress}`,
1133
- pill: `${buttonSizes.pill} ${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill}`,
1134
- // .button--pill
1135
- pillSmall: `${buttonSizes.pillSmall} ${buttonTextSizes.xsmall} ${buttonTypes.pill} ${buttonColors.pill}`,
1136
- pillLoading: `${buttonSizes.pill} ${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonVariants.inProgress}`,
1137
- pillSmallLoading: `${buttonSizes.pillSmall} ${buttonTextSizes.xsmall} ${buttonTypes.pill} ${buttonVariants.inProgress}`,
1138
- link: `${buttonSizes.link} ${buttonTextSizes.medium} ${buttonTypes.link}`,
1139
- linkSmall: `${buttonSizes.link} ${buttonTextSizes.xsmall} ${buttonTypes.link}`,
1140
- linkAsButton: "inline-block active:no-underline hover:no-underline focus:no-underline text-center",
1141
- a11y: "sr-only",
1142
- fullWidth: "w-full max-w-full",
1143
- contentWidth: "max-w-max"
1144
- };
1145
- var modal = {
1146
- backdrop: "fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-30 [--w-modal-max-height:80%] [--w-modal-width:640px] bg-[--w-black/25]",
1147
- base: "pb-safe-[32] shadow-m max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 bg-[--w-s-color-surface-elevated-100] flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",
1148
- content: "block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",
1149
- footer: "flex justify-end shrink-0 px-16 sm:px-32",
1150
- transitionTitle: "transition-all duration-300",
1151
- transitionTitleCenter: "justify-self-center self-center",
1152
- transitionTitleColSpan: "col-span-2",
1153
- title: "py-8 sm:py-0 -mt-4 sm:-mt-8 min-h-40 sm:min-h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-start px-16 sm:px-32 border-b sm:border-b-0 shrink-0",
1154
- titleText: "mb-0 h4 sm:h3",
1155
- titleButton: `${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,
1156
- titleButtonLeft: "-ml-8 sm:-ml-12 justify-self-start",
1157
- titleButtonRight: "-mr-8 sm:-mr-12 justify-self-end",
1158
- titleButtonIcon: "h-16 w-16 sm:h-24 sm:w-24",
1159
- titleButtonIconRotated: "transform rotate-90"
1160
- };
1161
- var prefixSuffixWrapper = "absolute top-0 bottom-0 flex justify-center items-center focusable rounded-4 focus:[--w-outline-offset:-2px] bg-transparent ";
1162
- var suffix = {
1163
- wrapper: prefixSuffixWrapper + "right-0",
1164
- wrapperWithLabel: "w-max pr-12",
1165
- wrapperWithIcon: "w-40",
1166
- label: "antialiased block relative cursor-default pb-0 font-bold text-xs s-text"
1167
- };
1168
- var prefix = {
1169
- wrapper: prefixSuffixWrapper + "left-0",
1170
- wrapperWithLabel: "w-max pl-12",
1171
- wrapperWithIcon: "w-40",
1172
- label: "antialiased block relative cursor-default pb-0 font-bold text-xs s-text"
1173
- };
1174
- var toggle = {
1175
- // wrapper classes
1176
- field: "relative text-m",
1177
- // true
1178
- wrapper: "relative py-1",
1179
- // true
1180
- wrapperRadioButtons: "inline-flex font-bold rounded-8 focus-within:focusable",
1181
- // isRadioButton && !isEqualWidth
1182
- wrapperRadioButtonsJustified: "flex font-bold rounded-8 focus-within:focusable",
1183
- // isRadioButton && isEqualWidth,
1184
- // group classes
1185
- radioButtonsGroup: "group",
1186
- // isRadioButton
1187
- radioButtonsGroupJustified: "grow-1 shrink-0 basis-auto",
1188
- // isRadioButton && isEqualWidth
1189
- // input classes
1190
- input: "peer",
1191
- a11y: "sr-only",
1192
- // label classes
1193
- label: "peer-focus:focusable cursor-pointer text-m s-text s-border py-2 pl-28 select-none relative block before:border before:absolute before:transition-all before:left-0 before:w-20 before:h-20 before:top-2",
1194
- // !isRadioButton
1195
- labelBefore: 'before:content-[""] before:block',
1196
- // !isRadioButton && !isIndeterminate
1197
- checkbox: "before:s-bg before:rounded-2 hover:before:s-border-primary hover:before:s-bg-hover peer-checked:before:bg-center peer-checked:before:bg-[url(var(--w-icon-toggle-checked))] peer-checked:before:s-border-primary peer-checked:before:s-bg-primary peer-checked:peer-hover:before:s-border-primary-hover peer-checked:peer-hover:before:s-bg-primary-hover",
1198
- // isCheckbox && !isIndeterminate && !isInvalid && !isDisabled
1199
- checkboxInvalid: "before:s-bg before:s-border-negative before:rounded-2 hover:before:s-bg-negative-subtle-hover hover:before:s-border-negative-hover peer-checked:before:bg-center peer-checked:before:bg-[url(var(--w-icon-toggle-checked))] peer-checked:before:s-bg-negative peer-checked:before:s-border-negative peer-checked:peer-hover:before:s-bg-negative-hover peer-checked:peer-hover:before:s-border-negative-hover",
1200
- // isCheckbox && !isIndeterminate && isInvalid && !isDisabled
1201
- checkboxDisabled: "before:s-bg-disabled-subtle before:s-border-disabled pointer-events-none before:rounded-2 peer-checked:before:bg-center peer-checked:before:bg-[url(var(--w-icon-toggle-checked))] peer-checked:before:s-border-disabled peer-checked:before:s-bg-disabled",
1202
- // isCheckbox && !isIndeterminate && !isInvalid && isDisabled
1203
- indeterminate: 'before:content-["\u2013"] before:rounded-2 before:leading-xs before:text-center before:font-bold before:s-icon-inverted peer-indeterminate:before:s-border-primary peer-indeterminate:before:s-bg-primary peer-indeterminate:hover:before:s-border-primary-hover peer-indeterminate:hover:before:s-bg-primary-hover',
1204
- // isCheckbox && isIndeterminate && !isInvalid && !isDisabled
1205
- indeterminateInvalid: 'before:content-["\u2013"] before:rounded-2 before:leading-xs before:text-center before:font-bold before:s-icon-inverted peer-indeterminate:before:s-border-negative peer-indeterminate:before:s-bg-negative peer-indeterminate:hover:before:s-border-negative-hover peer-indeterminate:hover:before:s-bg-negative-hover',
1206
- // isCheckbox && isIndeterminate && isInvalid && !isDisabled
1207
- indeterminateDisabled: 'before:content-["\u2013"] before:rounded-2 before:leading-xs before:text-center before:font-bold pointer-events-none before:s-icon-inverted peer-indeterminate:before:s-border-disabled peer-indeterminate:before:s-bg-disabled',
1208
- // isCheckbox && isIndeterminate && !isInvalid && isDisabled
1209
- radio: "before:s-bg before:rounded-full peer-checked:before:border-[6] peer-checked:before:s-border-selected peer-checked:peer-hover:before:s-border-selected-hover peer-hover:before:s-border-primary peer-hover:before:s-bg-hover",
1210
- // isRadio && !isDisabled && !isInvalid
1211
- radioInvalid: "before:s-bg before:s-border-negative before:rounded-full peer-checked:before:border-[6] peer-hover:before:s-bg-negative-subtle peer-hover:before:s-border-negative-hover peer-checked:before:s-border-negative peer-checked:peer-hover:before:s-border-negative-hover",
1212
- // isRadio && isInvalid && !isDisabled
1213
- radioDisabled: "before:s-bg-disabled-subtle before:s-border-disabled pointer-events-none before:rounded-full peer-checked:before:border-[6]",
1214
- // isRadio && !isInvalid && isDisabled
1215
- radioButtonsLabel: "peer-hover:peer-not-checked:s-bg-hover peer-checked:s-text-inverted peer-checked:s-bg-primary peer-checked:s-border-primary block relative font-bold cursor-pointer s-text-link text-center s-bg border-2 s-border group-first-of-type:rounded-tl-8 group-first-of-type:rounded-bl-8 group-last-of-type:rounded-tr-8 group-last-of-type:rounded-br-8 group-not-last-of-type:border-r-0 peer-checked:z-10 group-not-first:-ml-2",
1216
- // isRadioButtons
1217
- radioButtonsRegular: "text-s py-8 pl-12 pr-14",
1218
- // isRadioButtons && !isSmall
1219
- radioButtonsSmall: "text-xs py-[5px] px-[8px]"
1220
- // isRadioButtons && isSmall
1221
- };
1222
- var deadToggle = {
1223
- wrapper: `${toggle.wrapper} h-20 w-20 pointer-events-none`,
1224
- input: `${toggle.input} hidden`,
1225
- inputVue: "hidden",
1226
- labelVue: "-mt-2",
1227
- labelRadio: `${toggle.label} ${toggle.labelBefore} ${toggle.radio}`,
1228
- labelCheckbox: `${toggle.label} ${toggle.labelBefore} ${toggle.checkbox}`
1229
- };
1230
- var attention = {
1231
- base: "border-2 relative flex items-start",
1232
- tooltip: "s-bg-inverted border-[--w-s-color-background-inverted] shadow-m s-text-inverted-static rounded-4 py-6 px-8",
1233
- callout: "bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8",
1234
- highlight: "bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8 drop-shadow-m translate-z-0",
1235
- popover: "bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300] s-text rounded-8 p-16 drop-shadow-m translate-z-0",
1236
- arrowBase: "absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",
1237
- arrowDirectionLeftStart: "-left-[8px]",
1238
- arrowDirectionLeft: "-left-[8px]",
1239
- arrowDirectionLeftEnd: "-left-[8px]",
1240
- arrowDirectionRightStart: "-right-[8px]",
1241
- arrowDirectionRight: "-right-[8px]",
1242
- arrowDirectionRightEnd: "-right-[8px]",
1243
- arrowDirectionBottomStart: "-bottom-[8px]",
1244
- arrowDirectionBottom: "-bottom-[8px]",
1245
- arrowDirectionBottomEnd: "-bottom-[8px]",
1246
- arrowDirectionTopStart: "-top-[8px]",
1247
- arrowDirectionTop: "-top-[8px]",
1248
- arrowDirectionTopEnd: "-top-[8px]",
1249
- arrowTooltip: "s-bg-inverted border-[--w-s-color-background-inverted]",
1250
- arrowCallout: "bg-[--w-color-callout-background] border-[--w-color-callout-border]",
1251
- arrowPopover: "bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300]",
1252
- arrowHighlight: "bg-[--w-color-callout-background] border-[--w-color-callout-border]",
1253
- content: "last-child:mb-0",
1254
- notCallout: "absolute z-50",
1255
- closeBtn: `${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill} justify-self-end -mr-8 ml-8`
1256
- };
1257
-
1258
- // packages/affix/index.js
1259
- import WarpElement from "@warp-ds/elements-core";
1260
- import { ifDefined } from "lit/directives/if-defined.js";
1261
-
1262
- // node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-_hyhbgchrkasknlbocfng7geeci/node_modules/@warp-ds/icons/dist/elements/search-16.js
1263
- import { LitElement } from "lit";
1264
- import { unsafeStatic, html } from "lit/static-html.js";
1265
-
1266
- // node_modules/.pnpm/@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-macros@3.1.0_typescri_qfhfd5z2jpd4amxt2golzdalsi/node_modules/@lingui/core/dist/index.mjs
1267
- var import_unraw = __toESM(require_dist(), 1);
1268
-
1269
- // node_modules/.pnpm/@lingui+message-utils@5.2.0/node_modules/@lingui/message-utils/dist/compileMessage.mjs
1270
- var import_parser = __toESM(require_parser(), 1);
1271
- var DateFormatError = class extends Error {
1272
- /** @internal */
1273
- constructor(msg, token, type) {
1274
- super(msg);
1275
- this.token = token;
1276
- this.type = type || "error";
1277
- }
1278
- };
1279
- var alpha = (width) => width < 4 ? "short" : width === 4 ? "long" : "narrow";
1280
- var numeric = (width) => width % 2 === 0 ? "2-digit" : "numeric";
1281
- function yearOptions(token, onError) {
1282
- switch (token.char) {
1283
- case "y":
1284
- return { year: numeric(token.width) };
1285
- case "r":
1286
- return { calendar: "gregory", year: "numeric" };
1287
- case "u":
1288
- case "U":
1289
- case "Y":
1290
- default:
1291
- onError(`${token.desc} is not supported; falling back to year:numeric`, DateFormatError.WARNING);
1292
- return { year: "numeric" };
1293
- }
1294
- }
1295
- function monthStyle(token, onError) {
1296
- switch (token.width) {
1297
- case 1:
1298
- return "numeric";
1299
- case 2:
1300
- return "2-digit";
1301
- case 3:
1302
- return "short";
1303
- case 4:
1304
- return "long";
1305
- case 5:
1306
- return "narrow";
1307
- default:
1308
- onError(`${token.desc} is not supported with width ${token.width}`);
1309
- return void 0;
1310
- }
1311
- }
1312
- function dayStyle(token, onError) {
1313
- const { char, desc, width } = token;
1314
- if (char === "d") {
1315
- return numeric(width);
1316
- } else {
1317
- onError(`${desc} is not supported`);
1318
- return void 0;
1319
- }
1320
- }
1321
- function weekdayStyle(token, onError) {
1322
- const { char, desc, width } = token;
1323
- if ((char === "c" || char === "e") && width < 3) {
1324
- const msg = `Numeric value is not supported for ${desc}; falling back to weekday:short`;
1325
- onError(msg, DateFormatError.WARNING);
1326
- }
1327
- return alpha(width);
1328
- }
1329
- function hourOptions(token) {
1330
- const hour = numeric(token.width);
1331
- let hourCycle;
1332
- switch (token.char) {
1333
- case "h":
1334
- hourCycle = "h12";
1335
- break;
1336
- case "H":
1337
- hourCycle = "h23";
1338
- break;
1339
- case "k":
1340
- hourCycle = "h24";
1341
- break;
1342
- case "K":
1343
- hourCycle = "h11";
1344
- break;
1345
- }
1346
- return hourCycle ? { hour, hourCycle } : { hour };
1347
- }
1348
- function timeZoneNameStyle(token, onError) {
1349
- const { char, desc, width } = token;
1350
- switch (char) {
1351
- case "v":
1352
- case "z":
1353
- return width === 4 ? "long" : "short";
1354
- case "V":
1355
- if (width === 4)
1356
- return "long";
1357
- onError(`${desc} is not supported with width ${width}`);
1358
- return void 0;
1359
- case "X":
1360
- onError(`${desc} is not supported`);
1361
- return void 0;
1362
- }
1363
- return "short";
1364
- }
1365
- function compileOptions(token, onError) {
1366
- switch (token.field) {
1367
- case "era":
1368
- return { era: alpha(token.width) };
1369
- case "year":
1370
- return yearOptions(token, onError);
1371
- case "month":
1372
- return { month: monthStyle(token, onError) };
1373
- case "day":
1374
- return { day: dayStyle(token, onError) };
1375
- case "weekday":
1376
- return { weekday: weekdayStyle(token, onError) };
1377
- case "period":
1378
- return void 0;
1379
- case "hour":
1380
- return hourOptions(token);
1381
- case "min":
1382
- return { minute: numeric(token.width) };
1383
- case "sec":
1384
- return { second: numeric(token.width) };
1385
- case "tz":
1386
- return { timeZoneName: timeZoneNameStyle(token, onError) };
1387
- case "quarter":
1388
- case "week":
1389
- case "sec-frac":
1390
- case "ms":
1391
- onError(`${token.desc} is not supported`);
1392
- }
1393
- return void 0;
1394
- }
1395
- function getDateFormatOptions(tokens, timeZone, onError = (error) => {
1396
- throw error;
1397
- }) {
1398
- const options = {
1399
- timeZone
1400
- };
1401
- const fields2 = [];
1402
- for (const token of tokens) {
1403
- const { error, field, str } = token;
1404
- if (error) {
1405
- const dte = new DateFormatError(error.message, token);
1406
- dte.stack = error.stack;
1407
- onError(dte);
1408
- }
1409
- if (str) {
1410
- const msg = `Ignoring string part: ${str}`;
1411
- onError(new DateFormatError(msg, token, DateFormatError.WARNING));
1412
- }
1413
- if (field) {
1414
- if (fields2.indexOf(field) === -1)
1415
- fields2.push(field);
1416
- else
1417
- onError(new DateFormatError(`Duplicate ${field} token`, token));
1418
- }
1419
- const opt = compileOptions(token, (msg, isWarning) => onError(new DateFormatError(msg, token, isWarning)));
1420
- if (opt)
1421
- Object.assign(options, opt);
1422
- }
1423
- return options;
1424
- }
1425
- var fields = {
1426
- G: { field: "era", desc: "Era" },
1427
- y: { field: "year", desc: "Year" },
1428
- Y: { field: "year", desc: 'Year of "Week of Year"' },
1429
- u: { field: "year", desc: "Extended year" },
1430
- U: { field: "year", desc: "Cyclic year name" },
1431
- r: { field: "year", desc: "Related Gregorian year" },
1432
- Q: { field: "quarter", desc: "Quarter" },
1433
- q: { field: "quarter", desc: "Stand-alone quarter" },
1434
- M: { field: "month", desc: "Month in year" },
1435
- L: { field: "month", desc: "Stand-alone month in year" },
1436
- w: { field: "week", desc: "Week of year" },
1437
- W: { field: "week", desc: "Week of month" },
1438
- d: { field: "day", desc: "Day in month" },
1439
- D: { field: "day", desc: "Day of year" },
1440
- F: { field: "day", desc: "Day of week in month" },
1441
- g: { field: "day", desc: "Modified julian day" },
1442
- E: { field: "weekday", desc: "Day of week" },
1443
- e: { field: "weekday", desc: "Local day of week" },
1444
- c: { field: "weekday", desc: "Stand-alone local day of week" },
1445
- a: { field: "period", desc: "AM/PM marker" },
1446
- b: { field: "period", desc: "AM/PM/noon/midnight marker" },
1447
- B: { field: "period", desc: "Flexible day period" },
1448
- h: { field: "hour", desc: "Hour in AM/PM (1~12)" },
1449
- H: { field: "hour", desc: "Hour in day (0~23)" },
1450
- k: { field: "hour", desc: "Hour in day (1~24)" },
1451
- K: { field: "hour", desc: "Hour in AM/PM (0~11)" },
1452
- j: { field: "hour", desc: "Hour in preferred cycle" },
1453
- J: { field: "hour", desc: "Hour in preferred cycle without marker" },
1454
- C: { field: "hour", desc: "Hour in preferred cycle with flexible marker" },
1455
- m: { field: "min", desc: "Minute in hour" },
1456
- s: { field: "sec", desc: "Second in minute" },
1457
- S: { field: "sec-frac", desc: "Fractional second" },
1458
- A: { field: "ms", desc: "Milliseconds in day" },
1459
- z: { field: "tz", desc: "Time Zone: specific non-location" },
1460
- Z: { field: "tz", desc: "Time Zone" },
1461
- O: { field: "tz", desc: "Time Zone: localized" },
1462
- v: { field: "tz", desc: "Time Zone: generic non-location" },
1463
- V: { field: "tz", desc: "Time Zone: ID" },
1464
- X: { field: "tz", desc: "Time Zone: ISO8601 with Z" },
1465
- x: { field: "tz", desc: "Time Zone: ISO8601" }
1466
- };
1467
- var isLetter = (char) => char >= "A" && char <= "Z" || char >= "a" && char <= "z";
1468
- function readFieldToken(src, pos) {
1469
- const char = src[pos];
1470
- let width = 1;
1471
- while (src[++pos] === char)
1472
- ++width;
1473
- const field = fields[char];
1474
- if (!field) {
1475
- const msg = `The letter ${char} is not a valid field identifier`;
1476
- return { char, error: new Error(msg), width };
1477
- }
1478
- return { char, field: field.field, desc: field.desc, width };
1479
- }
1480
- function readQuotedToken(src, pos) {
1481
- let str = src[++pos];
1482
- let width = 2;
1483
- if (str === "'")
1484
- return { char: "'", str, width };
1485
- while (true) {
1486
- const next = src[++pos];
1487
- ++width;
1488
- if (next === void 0) {
1489
- const msg = `Unterminated quoted literal in pattern: ${str || src}`;
1490
- return { char: "'", error: new Error(msg), str, width };
1491
- } else if (next === "'") {
1492
- if (src[++pos] !== "'")
1493
- return { char: "'", str, width };
1494
- else
1495
- ++width;
1496
- }
1497
- str += next;
1498
- }
1499
- }
1500
- function readToken(src, pos) {
1501
- const char = src[pos];
1502
- if (!char)
1503
- return null;
1504
- if (isLetter(char))
1505
- return readFieldToken(src, pos);
1506
- if (char === "'")
1507
- return readQuotedToken(src, pos);
1508
- let str = char;
1509
- let width = 1;
1510
- while (true) {
1511
- const next = src[++pos];
1512
- if (!next || isLetter(next) || next === "'")
1513
- return { char, str, width };
1514
- str += next;
1515
- width += 1;
1516
- }
1517
- }
1518
- function parseDateTokens(src) {
1519
- const tokens = [];
1520
- let pos = 0;
1521
- while (true) {
1522
- const token = readToken(src, pos);
1523
- if (!token)
1524
- return tokens;
1525
- tokens.push(token);
1526
- pos += token.width;
1527
- }
1528
- }
1529
- function processTokens(tokens, mapText) {
1530
- if (!tokens.filter((token) => token.type !== "content").length) {
1531
- return tokens.map((token) => mapText(token.value));
1532
- }
1533
- return tokens.map((token) => {
1534
- var _a;
1535
- if (token.type === "content") {
1536
- return mapText(token.value);
1537
- } else if (token.type === "octothorpe") {
1538
- return "#";
1539
- } else if (token.type === "argument") {
1540
- return [token.arg];
1541
- } else if (token.type === "function") {
1542
- const _param = (_a = token == null ? void 0 : token.param) == null ? void 0 : _a[0];
1543
- if (token.key === "date" && _param) {
1544
- const opts = compileDateExpression(_param.value.trim(), (e) => {
1545
- throw new Error(`Unable to compile date expression: ${e.message}`);
1546
- });
1547
- return [token.arg, token.key, opts];
1548
- }
1549
- if (_param) {
1550
- return [token.arg, token.key, _param.value.trim()];
1551
- } else {
1552
- return [token.arg, token.key];
1553
- }
1554
- }
1555
- const offset = token.pluralOffset;
1556
- const formatProps = {};
1557
- token.cases.forEach(({ key, tokens: tokens2 }) => {
1558
- const prop = key[0] === "=" ? key.slice(1) : key;
1559
- formatProps[prop] = processTokens(tokens2, mapText);
1560
- });
1561
- return [
1562
- token.arg,
1563
- token.type,
1564
- __spreadValues({
1565
- offset
1566
- }, formatProps)
1567
- ];
1568
- });
1569
- }
1570
- function compileDateExpression(format, onError) {
1571
- if (/^::/.test(format)) {
1572
- const tokens = parseDateTokens(format.substring(2));
1573
- return getDateFormatOptions(tokens, void 0, onError);
1574
- }
1575
- return format;
1576
- }
1577
- function compileMessage(message, mapText = (v) => v) {
1578
- try {
1579
- return processTokens((0, import_parser.parse)(message), mapText);
1580
- } catch (e) {
1581
- console.error(`${e.message}
1582
-
1583
- Message: ${message}`);
1584
- return [message];
1585
- }
1586
- }
1587
-
1588
- // node_modules/.pnpm/@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-macros@3.1.0_typescri_qfhfd5z2jpd4amxt2golzdalsi/node_modules/@lingui/core/dist/index.mjs
1589
- var isString = (s) => typeof s === "string";
1590
- var isFunction = (f) => typeof f === "function";
1591
- var cache = /* @__PURE__ */ new Map();
1592
- var defaultLocale = "en";
1593
- function normalizeLocales(locales) {
1594
- const out = Array.isArray(locales) ? locales : [locales];
1595
- return [...out, defaultLocale];
1596
- }
1597
- function date(locales, value, format) {
1598
- const _locales = normalizeLocales(locales);
1599
- if (!format) {
1600
- format = "default";
1601
- }
1602
- let o;
1603
- if (typeof format === "string") {
1604
- o = {
1605
- day: "numeric",
1606
- month: "short",
1607
- year: "numeric"
1608
- };
1609
- switch (format) {
1610
- case "full":
1611
- o.weekday = "long";
1612
- case "long":
1613
- o.month = "long";
1614
- break;
1615
- case "short":
1616
- o.month = "numeric";
1617
- break;
1618
- }
1619
- } else {
1620
- o = format;
1621
- }
1622
- const formatter = getMemoized(
1623
- () => cacheKey("date", _locales, format),
1624
- () => new Intl.DateTimeFormat(_locales, o)
1625
- );
1626
- return formatter.format(isString(value) ? new Date(value) : value);
1627
- }
1628
- function time(locales, value, format) {
1629
- let o;
1630
- if (!format) {
1631
- format = "default";
1632
- }
1633
- if (typeof format === "string") {
1634
- o = {
1635
- second: "numeric",
1636
- minute: "numeric",
1637
- hour: "numeric"
1638
- };
1639
- switch (format) {
1640
- case "full":
1641
- case "long":
1642
- o.timeZoneName = "short";
1643
- break;
1644
- case "short":
1645
- delete o.second;
1646
- }
1647
- } else {
1648
- o = format;
1649
- }
1650
- return date(locales, value, o);
1651
- }
1652
- function number(locales, value, format) {
1653
- const _locales = normalizeLocales(locales);
1654
- const formatter = getMemoized(
1655
- () => cacheKey("number", _locales, format),
1656
- () => new Intl.NumberFormat(_locales, format)
1657
- );
1658
- return formatter.format(value);
1659
- }
1660
- function plural(locales, ordinal, value, _a) {
1661
- var _b = _a, { offset = 0 } = _b, rules = __objRest(_b, ["offset"]);
1662
- var _a2, _b2;
1663
- const _locales = normalizeLocales(locales);
1664
- const plurals = ordinal ? getMemoized(
1665
- () => cacheKey("plural-ordinal", _locales),
1666
- () => new Intl.PluralRules(_locales, { type: "ordinal" })
1667
- ) : getMemoized(
1668
- () => cacheKey("plural-cardinal", _locales),
1669
- () => new Intl.PluralRules(_locales, { type: "cardinal" })
1670
- );
1671
- return (_b2 = (_a2 = rules[value]) != null ? _a2 : rules[plurals.select(value - offset)]) != null ? _b2 : rules.other;
1672
- }
1673
- function getMemoized(getKey, construct) {
1674
- const key = getKey();
1675
- let formatter = cache.get(key);
1676
- if (!formatter) {
1677
- formatter = construct();
1678
- cache.set(key, formatter);
1679
- }
1680
- return formatter;
1681
- }
1682
- function cacheKey(type, locales, options) {
1683
- const localeKey = locales.join("-");
1684
- return `${type}-${localeKey}-${JSON.stringify(options)}`;
1685
- }
1686
- var UNICODE_REGEX = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/;
1687
- var OCTOTHORPE_PH = "%__lingui_octothorpe__%";
1688
- var getDefaultFormats = (locale, passedLocales, formats = {}) => {
1689
- const locales = passedLocales || locale;
1690
- const style = (format) => {
1691
- if (typeof format === "object")
1692
- return format;
1693
- return formats[format];
1694
- };
1695
- const replaceOctothorpe = (value, message) => {
1696
- const numberFormat = Object.keys(formats).length ? style("number") : void 0;
1697
- const valueStr = number(locales, value, numberFormat);
1698
- return message.replace(new RegExp(OCTOTHORPE_PH, "g"), valueStr);
1699
- };
1700
- return {
1701
- plural: (value, cases) => {
1702
- const { offset = 0 } = cases;
1703
- const message = plural(locales, false, value, cases);
1704
- return replaceOctothorpe(value - offset, message);
1705
- },
1706
- selectordinal: (value, cases) => {
1707
- const { offset = 0 } = cases;
1708
- const message = plural(locales, true, value, cases);
1709
- return replaceOctothorpe(value - offset, message);
1710
- },
1711
- select: selectFormatter,
1712
- number: (value, format) => number(
1713
- locales,
1714
- value,
1715
- style(format) || { style: format }
1716
- ),
1717
- date: (value, format) => date(locales, value, style(format) || format),
1718
- time: (value, format) => time(locales, value, style(format) || format)
1719
- };
1720
- };
1721
- var selectFormatter = (value, rules) => {
1722
- var _a;
1723
- return (_a = rules[value]) != null ? _a : rules.other;
1724
- };
1725
- function interpolate(translation, locale, locales) {
1726
- return (values = {}, formats) => {
1727
- const formatters = getDefaultFormats(locale, locales, formats);
1728
- const formatMessage = (tokens, replaceOctothorpe = false) => {
1729
- if (!Array.isArray(tokens))
1730
- return tokens;
1731
- return tokens.reduce((message, token) => {
1732
- if (token === "#" && replaceOctothorpe) {
1733
- return message + OCTOTHORPE_PH;
1734
- }
1735
- if (isString(token)) {
1736
- return message + token;
1
+ var be=Object.create;var S=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var R=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var he=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of pe(e))!ge.call(r,a)&&a!==o&&S(r,a,{get:()=>e[a],enumerable:!(t=A(e,a))||t.enumerable});return r};var me=(r,e,o)=>(o=r!=null?be(ue(r)):{},he(e||!r||!r.__esModule?S(o,"default",{value:r,enumerable:!0}):o,r));var x=(r,e,o,t)=>{for(var a=t>1?void 0:t?A(e,o):e,s=r.length-1,i;s>=0;s--)(i=r[s])&&(a=(t?i(e,o,a):i(a))||a);return t&&a&&S(e,o,a),a};var Z=R(v=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});v.errorMessages=v.ErrorType=void 0;var w;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(w=v.ErrorType||(v.ErrorType={}));v.errorMessages=new Map([[w.MalformedUnicode,"malformed Unicode character escape sequence"],[w.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[w.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[w.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[w.EndOfString,"malformed escape sequence at end of string"]])});var K=R(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.unraw=p.errorMessages=p.ErrorType=void 0;var c=Z();Object.defineProperty(p,"ErrorType",{enumerable:!0,get:function(){return c.ErrorType}});Object.defineProperty(p,"errorMessages",{enumerable:!0,get:function(){return c.errorMessages}});function fe(r){return!r.match(/[^a-f0-9]/i)?parseInt(r,16):NaN}function _(r,e,o){let t=fe(r);if(Number.isNaN(t)||o!==void 0&&o!==r.length)throw new SyntaxError(c.errorMessages.get(e));return t}function we(r){let e=_(r,c.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function J(r,e){let o=_(r,c.ErrorType.MalformedUnicode,4);if(e!==void 0){let t=_(e,c.ErrorType.MalformedUnicode,4);return String.fromCharCode(o,t)}return String.fromCharCode(o)}function xe(r){return r.charAt(0)==="{"&&r.charAt(r.length-1)==="}"}function ke(r){if(!xe(r))throw new SyntaxError(c.errorMessages.get(c.ErrorType.MalformedUnicode));let e=r.slice(1,-1),o=_(e,c.ErrorType.MalformedUnicode);try{return String.fromCodePoint(o)}catch(t){throw t instanceof RangeError?new SyntaxError(c.errorMessages.get(c.ErrorType.CodePointLimit)):t}}function ye(r,e=!1){if(e)throw new SyntaxError(c.errorMessages.get(c.ErrorType.OctalDeprecation));let o=parseInt(r,8);return String.fromCharCode(o)}var _e=new Map([["b","\b"],["f","\f"],["n",`
2
+ `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function ze(r){return _e.get(r)||r}var Ee=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function q(r,e=!1){return r.replace(Ee,function(o,t,a,s,i,n,l,d,h){if(t!==void 0)return"\\";if(a!==void 0)return we(a);if(s!==void 0)return ke(s);if(i!==void 0)return J(i,n);if(l!==void 0)return J(l);if(d==="0")return"\0";if(d!==void 0)return ye(d,!e);if(h!==void 0)return ze(h);throw new SyntaxError(c.errorMessages.get(c.ErrorType.EndOfString))})}p.unraw=q;p.default=q});import{html as L,LitElement as cr}from"lit";var N=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return r.reduce(function(o,t){return o.concat(typeof t=="string"?t:Array.isArray(t)?N.apply(void 0,t):typeof t=="object"&&t?Object.keys(t).map(function(a){return t[a]?a:""}):"")},[]).join(" ")};import{property as M}from"lit/decorators.js";import{ifDefined as le}from"lit/directives/if-defined.js";import{css as U}from"lit";var X=U`
3
+ *,
4
+ :before,
5
+ :after {
6
+ box-sizing: border-box;
7
+ border-style: solid;
8
+ border-width: 0;
9
+ border-color: var(--w-s-color-border);
10
+ }
11
+ html {
12
+ font-size: 62.5%;
13
+ }
14
+ body {
15
+ background-color: var(--w-s-color-background);
16
+ min-height: 100%;
17
+ margin: 0;
18
+ overflow-y: scroll;
19
+ }
20
+ body,
21
+ :host {
22
+ -webkit-text-size-adjust: 100%;
23
+ tab-size: 4;
24
+ -webkit-tap-highlight-color: transparent;
25
+ font-family: var(--w-font-family);
26
+ font-size: var(--w-font-size-m);
27
+ line-height: var(--w-line-height-m);
28
+ color: var(--w-s-color-text);
29
+ }
30
+ hr {
31
+ color: inherit;
32
+ border-top-width: 1px;
33
+ height: 0;
34
+ }
35
+ abbr:where([title]) {
36
+ -webkit-text-decoration: underline dotted;
37
+ text-decoration: underline dotted;
38
+ }
39
+ h1,
40
+ h2,
41
+ h3,
42
+ h4,
43
+ h5,
44
+ h6 {
45
+ font-size: inherit;
46
+ font-weight: 700;
47
+ }
48
+ a {
49
+ cursor: pointer;
50
+ color: var(--w-s-color-text-link);
51
+ text-decoration: none;
52
+ }
53
+ a:hover,
54
+ a:focus,
55
+ a:active {
56
+ text-decoration: underline;
57
+ }
58
+ a:focus-visible {
59
+ outline: 2px solid var(--w-s-color-border-focus);
60
+ outline-offset: 1px;
61
+ }
62
+ b,
63
+ strong {
64
+ font-weight: 700;
65
+ }
66
+ code,
67
+ kbd,
68
+ samp,
69
+ pre {
70
+ font-family:
71
+ ui-monospace,
72
+ SFMono-Regular,
73
+ Menlo,
74
+ Monaco,
75
+ Consolas,
76
+ Liberation Mono,
77
+ Courier New,
78
+ monospace;
79
+ font-size: 1em;
80
+ }
81
+ sub,
82
+ sup {
83
+ vertical-align: baseline;
84
+ font-size: 75%;
85
+ line-height: 0;
86
+ position: relative;
87
+ }
88
+ sub {
89
+ bottom: -0.25em;
90
+ }
91
+ sup {
92
+ top: -0.5em;
93
+ }
94
+ table {
95
+ text-indent: 0;
96
+ border-color: inherit;
97
+ border-collapse: collapse;
98
+ }
99
+ button,
100
+ input,
101
+ optgroup,
102
+ select,
103
+ textarea {
104
+ font-family: inherit;
105
+ font-size: 100%;
106
+ font-weight: inherit;
107
+ line-height: inherit;
108
+ color: inherit;
109
+ margin: 0;
110
+ padding: 0;
111
+ }
112
+ button,
113
+ select {
114
+ text-transform: none;
115
+ }
116
+ button,
117
+ [type='button'],
118
+ [type='reset'],
119
+ [type='submit'] {
120
+ -webkit-appearance: button;
121
+ }
122
+ :-moz-focusring {
123
+ outline: auto;
124
+ }
125
+ :-moz-ui-invalid {
126
+ box-shadow: none;
127
+ }
128
+ progress {
129
+ vertical-align: baseline;
130
+ }
131
+ ::-webkit-inner-spin-button {
132
+ height: auto;
133
+ }
134
+ ::-webkit-outer-spin-button {
135
+ height: auto;
136
+ }
137
+ [type='search'] {
138
+ -webkit-appearance: textfield;
139
+ outline-offset: -2px;
140
+ }
141
+ ::-webkit-search-decoration {
142
+ -webkit-appearance: none;
143
+ }
144
+ ::-webkit-file-upload-button {
145
+ -webkit-appearance: button;
146
+ font: inherit;
147
+ }
148
+ summary {
149
+ display: list-item;
150
+ }
151
+ blockquote,
152
+ dl,
153
+ dd,
154
+ h1,
155
+ h2,
156
+ h3,
157
+ h4,
158
+ h5,
159
+ h6,
160
+ hr,
161
+ figure,
162
+ p,
163
+ pre {
164
+ margin: 0;
165
+ }
166
+ fieldset {
167
+ margin: 0;
168
+ padding: 0;
169
+ }
170
+ legend {
171
+ padding: 0;
172
+ }
173
+ ol,
174
+ ul,
175
+ menu {
176
+ margin: 0;
177
+ padding: 0;
178
+ list-style: none;
179
+ }
180
+ textarea {
181
+ resize: vertical;
182
+ }
183
+ input::placeholder,
184
+ textarea::placeholder {
185
+ opacity: 1;
186
+ color: var(--w-s-color-text-placeholder);
187
+ }
188
+ button,
189
+ [role='button'] {
190
+ cursor: pointer;
191
+ }
192
+ :disabled {
193
+ cursor: default;
194
+ }
195
+ img,
196
+ svg,
197
+ video,
198
+ canvas,
199
+ audio,
200
+ iframe,
201
+ embed,
202
+ object {
203
+ vertical-align: middle;
204
+ display: block;
205
+ }
206
+ img,
207
+ video {
208
+ max-width: 100%;
209
+ height: auto;
210
+ }
211
+ h1 {
212
+ font-size: var(--w-font-size-xxl);
213
+ line-height: var(--w-line-height-xxl);
214
+ }
215
+ h2 {
216
+ font-size: var(--w-font-size-xl);
217
+ line-height: var(--w-line-height-xl);
218
+ }
219
+ h3 {
220
+ font-size: var(--w-font-size-l);
221
+ line-height: var(--w-line-height-l);
222
+ }
223
+ h4 {
224
+ font-size: var(--w-font-size-m);
225
+ line-height: var(--w-line-height-m);
226
+ }
227
+ h5 {
228
+ font-size: var(--w-font-size-s);
229
+ line-height: var(--w-line-height-s);
230
+ }
231
+ dt,
232
+ dd {
233
+ margin: 0 16px;
234
+ }
235
+ h1,
236
+ h2,
237
+ h3,
238
+ h4,
239
+ h5,
240
+ ul,
241
+ ol,
242
+ dl,
243
+ p,
244
+ blockquote {
245
+ margin: 0 0 8px;
246
+ }
247
+ [hidden] {
248
+ display: none !important;
249
+ }
250
+ [tabindex='-1']:focus:not(:focus-visible) {
251
+ outline: none;
252
+ }
253
+ legend {
254
+ float: left;
255
+ width: 100%;
256
+ margin: 0;
257
+ padding: 0;
258
+ display: table;
259
+ }
260
+ legend + * {
261
+ clear: both;
262
+ }
263
+ fieldset {
264
+ border: 0;
265
+ min-width: 0;
266
+ margin: 0;
267
+ padding: 0.01em 0 0;
268
+ }
269
+ body:not(:-moz-handler-blocked) fieldset {
270
+ display: table-cell;
271
+ }
272
+ svg {
273
+ pointer-events: none;
274
+ }
275
+ `,hr=U`*, :before, :after {
276
+ --w-rotate: 0;
277
+ --w-rotate-x: 0;
278
+ --w-rotate-y: 0;
279
+ --w-rotate-z: 0;
280
+ --w-scale-x: 1;
281
+ --w-scale-y: 1;
282
+ --w-scale-z: 1;
283
+ --w-skew-x: 0;
284
+ --w-skew-y: 0;
285
+ --w-translate-x: 0;
286
+ --w-translate-y: 0;
287
+ --w-translate-z: 0
1737
288
  }
1738
- const [name, type, format] = token;
1739
- let interpolatedFormat = {};
1740
- if (type === "plural" || type === "selectordinal" || type === "select") {
1741
- Object.entries(format).forEach(
1742
- ([key, value2]) => {
1743
- interpolatedFormat[key] = formatMessage(
1744
- value2,
1745
- type === "plural" || type === "selectordinal"
1746
- );
1747
- }
1748
- );
1749
- } else {
1750
- interpolatedFormat = format;
1751
- }
1752
- let value;
1753
- if (type) {
1754
- const formatter = formatters[type];
1755
- value = formatter(values[name], interpolatedFormat);
1756
- } else {
1757
- value = values[name];
1758
- }
1759
- if (value == null) {
1760
- return message;
1761
- }
1762
- return message + value;
1763
- }, "");
1764
- };
1765
- const result = formatMessage(translation);
1766
- if (isString(result) && UNICODE_REGEX.test(result)) {
1767
- return (0, import_unraw.unraw)(result);
1768
- }
1769
- if (isString(result))
1770
- return result;
1771
- return result ? String(result) : "";
1772
- };
1773
- }
1774
- var __defProp$1 = Object.defineProperty;
1775
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1776
- var __publicField$1 = (obj, key, value) => {
1777
- __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
1778
- return value;
1779
- };
1780
- var EventEmitter = class {
1781
- constructor() {
1782
- __publicField$1(this, "_events", {});
1783
- }
1784
- on(event, listener) {
1785
- var _a2;
1786
- var _a;
1787
- (_a2 = (_a = this._events)[event]) != null ? _a2 : _a[event] = [];
1788
- this._events[event].push(listener);
1789
- return () => this.removeListener(event, listener);
1790
- }
1791
- removeListener(event, listener) {
1792
- const maybeListeners = this._getListeners(event);
1793
- if (!maybeListeners)
1794
- return;
1795
- const index = maybeListeners.indexOf(listener);
1796
- if (~index)
1797
- maybeListeners.splice(index, 1);
1798
- }
1799
- emit(event, ...args) {
1800
- const maybeListeners = this._getListeners(event);
1801
- if (!maybeListeners)
1802
- return;
1803
- maybeListeners.map((listener) => listener.apply(this, args));
1804
- }
1805
- _getListeners(event) {
1806
- const maybeListeners = this._events[event];
1807
- return Array.isArray(maybeListeners) ? maybeListeners : false;
1808
- }
1809
- };
1810
- var __defProp2 = Object.defineProperty;
1811
- var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1812
- var __publicField2 = (obj, key, value) => {
1813
- __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
1814
- return value;
1815
- };
1816
- var I18n = class extends EventEmitter {
1817
- constructor(params) {
1818
- var _a;
1819
- super();
1820
- __publicField2(this, "_locale", "");
1821
- __publicField2(this, "_locales");
1822
- __publicField2(this, "_localeData", {});
1823
- __publicField2(this, "_messages", {});
1824
- __publicField2(this, "_missing");
1825
- __publicField2(this, "_messageCompiler");
1826
- __publicField2(this, "t", this._.bind(this));
1827
- if (true) {
1828
- this.setMessagesCompiler(compileMessage);
1829
- }
1830
- if (params.missing != null)
1831
- this._missing = params.missing;
1832
- if (params.messages != null)
1833
- this.load(params.messages);
1834
- if (params.localeData != null)
1835
- this.loadLocaleData(params.localeData);
1836
- if (typeof params.locale === "string" || params.locales) {
1837
- this.activate((_a = params.locale) != null ? _a : defaultLocale, params.locales);
1838
- }
1839
- }
1840
- get locale() {
1841
- return this._locale;
1842
- }
1843
- get locales() {
1844
- return this._locales;
1845
- }
1846
- get messages() {
1847
- var _a;
1848
- return (_a = this._messages[this._locale]) != null ? _a : {};
1849
- }
1850
- /**
1851
- * @deprecated this has no effect. Please remove this from the code. Deprecated in v4
1852
- */
1853
- get localeData() {
1854
- var _a;
1855
- return (_a = this._localeData[this._locale]) != null ? _a : {};
1856
- }
1857
- _loadLocaleData(locale, localeData) {
1858
- const maybeLocaleData = this._localeData[locale];
1859
- if (!maybeLocaleData) {
1860
- this._localeData[locale] = localeData;
1861
- } else {
1862
- Object.assign(maybeLocaleData, localeData);
1863
- }
1864
- }
1865
- /**
1866
- * Registers a `MessageCompiler` to enable the use of uncompiled catalogs at runtime.
1867
- *
1868
- * In production builds, the `MessageCompiler` is typically excluded to reduce bundle size.
1869
- * By default, message catalogs should be precompiled during the build process. However,
1870
- * if you need to compile catalogs at runtime, you can use this method to set a message compiler.
1871
- *
1872
- * Example usage:
1873
- *
1874
- * ```ts
1875
- * import { compileMessage } from "@lingui/message-utils/compileMessage";
1876
- *
1877
- * i18n.setMessagesCompiler(compileMessage);
1878
- * ```
1879
- */
1880
- setMessagesCompiler(compiler) {
1881
- this._messageCompiler = compiler;
1882
- return this;
1883
- }
1884
- /**
1885
- * @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4
1886
- */
1887
- loadLocaleData(localeOrAllData, localeData) {
1888
- if (typeof localeOrAllData === "string") {
1889
- this._loadLocaleData(localeOrAllData, localeData);
1890
- } else {
1891
- Object.keys(localeOrAllData).forEach(
1892
- (locale) => this._loadLocaleData(locale, localeOrAllData[locale])
1893
- );
1894
- }
1895
- this.emit("change");
1896
- }
1897
- _load(locale, messages7) {
1898
- const maybeMessages = this._messages[locale];
1899
- if (!maybeMessages) {
1900
- this._messages[locale] = messages7;
1901
- } else {
1902
- Object.assign(maybeMessages, messages7);
1903
- }
1904
- }
1905
- load(localeOrMessages, messages7) {
1906
- if (typeof localeOrMessages == "string" && typeof messages7 === "object") {
1907
- this._load(localeOrMessages, messages7);
1908
- } else {
1909
- Object.entries(localeOrMessages).forEach(
1910
- ([locale, messages23]) => this._load(locale, messages23)
1911
- );
1912
- }
1913
- this.emit("change");
1914
- }
1915
- /**
1916
- * @param options {@link LoadAndActivateOptions}
1917
- */
1918
- loadAndActivate({ locale, locales, messages: messages7 }) {
1919
- this._locale = locale;
1920
- this._locales = locales || void 0;
1921
- this._messages[this._locale] = messages7;
1922
- this.emit("change");
1923
- }
1924
- activate(locale, locales) {
1925
- if (true) {
1926
- if (!this._messages[locale]) {
1927
- console.warn(`Messages for locale "${locale}" not loaded.`);
1928
- }
1929
- }
1930
- this._locale = locale;
1931
- this._locales = locales;
1932
- this.emit("change");
1933
- }
1934
- _(id, values, options) {
1935
- if (!this.locale) {
1936
- throw new Error(
1937
- "Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic."
1938
- );
1939
- }
1940
- let message = options == null ? void 0 : options.message;
1941
- if (!id) {
1942
- id = "";
1943
- }
1944
- if (!isString(id)) {
1945
- values = id.values || values;
1946
- message = id.message;
1947
- id = id.id;
1948
- }
1949
- const messageForId = this.messages[id];
1950
- const messageMissing = messageForId === void 0;
1951
- const missing = this._missing;
1952
- if (missing && messageMissing) {
1953
- return isFunction(missing) ? missing(this._locale, id) : missing;
1954
- }
1955
- if (messageMissing) {
1956
- this.emit("missing", { id, locale: this._locale });
1957
- }
1958
- let translation = messageForId || message || id;
1959
- if (isString(translation)) {
1960
- if (this._messageCompiler) {
1961
- translation = this._messageCompiler(translation);
1962
- } else {
1963
- console.warn(`Uncompiled message detected! Message:
1964
-
1965
- > ${translation}
289
+
290
+ .h4, .t4 {
291
+ font-weight: 700;
292
+ font-size: var(--w-font-size-m);
293
+ line-height: var(--w-line-height-m)
294
+ }
295
+
296
+ .t3 {
297
+ font-weight: 700;
298
+ font-size: var(--w-font-size-l);
299
+ line-height: var(--w-line-height-l)
300
+ }
301
+
302
+ @media (min-width: 480px) {
303
+ .sm\\:h3 {
304
+ font-weight: 700;
305
+ font-size: var(--w-font-size-l);
306
+ line-height: var(--w-line-height-l)
307
+ }
308
+ }
309
+
310
+ .text-center {
311
+ text-align: center
312
+ }
313
+
314
+ .before\\:text-center:before {
315
+ text-align: center
316
+ }
317
+
318
+ .text-left {
319
+ text-align: left
320
+ }
321
+
322
+ .text-right {
323
+ text-align: right
324
+ }
325
+
326
+ .align-middle {
327
+ vertical-align: middle
328
+ }
329
+
330
+ .animate-inprogress {
331
+ background-image: linear-gradient(135deg, rgba(0, 0, 0, .05) 25%, transparent 0, transparent 50%, rgba(0, 0, 0, .05) 0, rgba(0, 0, 0, .05) 75%, transparent 0, transparent) !important;
332
+ background-size: 30px 30px;
333
+ animation: animate-inprogress 3s linear infinite
334
+ }
335
+
336
+ @keyframes animate-inprogress {
337
+ 0% {
338
+ background-position: 0 0
339
+ }
340
+ to {
341
+ background-position: 60px 0
342
+ }
343
+ }
344
+
345
+ .\\[--w-modal-max-height\\:80\\%\\] {
346
+ --w-modal-max-height: 80%
347
+ }
348
+
349
+ .\\[--w-modal-width\\:640px\\] {
350
+ --w-modal-width: 640px
351
+ }
352
+
353
+ .focus\\:\\[--w-outline-offset\\:-2px\\]:focus {
354
+ --w-outline-offset: -2px
355
+ }
356
+
357
+ .backdrop-blur {
358
+ -webkit-backdrop-filter: blur(4px);
359
+ backdrop-filter: blur(4px)
360
+ }
361
+
362
+ .peer:checked ~ .peer-checked\\:before\\:bg-center:before {
363
+ background-position: center
364
+ }
365
+
366
+ .hover\\:bg-clip-padding:hover {
367
+ -webkit-background-clip: padding-box;
368
+ background-clip: padding-box
369
+ }
370
+
371
+ .bg-transparent, .group\\/steph:first-child .group-first\\/steph\\:bg-transparent, .group\\/steph:last-child .group-last\\/steph\\:bg-transparent {
372
+ background-color: transparent
373
+ }
374
+
375
+ .bg-\\[--w-black\\/25\\] {
376
+ background-color: rgba(var(--w-rgb-black), .25)
377
+ }
378
+
379
+ .bg-\\[--w-black\\/70\\], .bg-\\[var\\(--w-black\\)\\/70\\] {
380
+ background-color: rgba(var(--w-rgb-black), .7)
381
+ }
382
+
383
+ .bg-\\[--w-color-badge-info-background\\] {
384
+ background-color: var(--w-color-badge-info-background)
385
+ }
386
+
387
+ .bg-\\[--w-color-badge-negative-background\\] {
388
+ background-color: var(--w-color-badge-negative-background)
389
+ }
390
+
391
+ .bg-\\[--w-color-badge-neutral-background\\] {
392
+ background-color: var(--w-color-badge-neutral-background)
393
+ }
394
+
395
+ .bg-\\[--w-color-badge-positive-background\\] {
396
+ background-color: var(--w-color-badge-positive-background)
397
+ }
398
+
399
+ .bg-\\[--w-color-badge-sponsored-background\\] {
400
+ background-color: var(--w-color-badge-sponsored-background)
401
+ }
402
+
403
+ .bg-\\[--w-color-badge-warning-background\\] {
404
+ background-color: var(--w-color-badge-warning-background)
405
+ }
406
+
407
+ .bg-\\[--w-color-button-primary-background\\] {
408
+ background-color: var(--w-color-button-primary-background)
409
+ }
410
+
411
+ .bg-\\[--w-color-buttongroup-utility-background-selected\\] {
412
+ background-color: var(--w-color-buttongroup-utility-background-selected)
413
+ }
414
+
415
+ .bg-\\[--w-color-callout-background\\] {
416
+ background-color: var(--w-color-callout-background)
417
+ }
418
+
419
+ .bg-\\[--w-color-pill-suggestion-background\\] {
420
+ background-color: var(--w-color-pill-suggestion-background)
421
+ }
422
+
423
+ .bg-\\[--w-color-switch-track-background\\] {
424
+ background-color: var(--w-color-switch-track-background)
425
+ }
426
+
427
+ .bg-\\[--w-s-color-surface-elevated-100\\] {
428
+ background-color: var(--w-s-color-surface-elevated-100)
429
+ }
430
+
431
+ .bg-\\[--w-s-color-surface-elevated-300\\] {
432
+ background-color: var(--w-s-color-surface-elevated-300)
433
+ }
434
+
435
+ .bg-\\[--w-s-icon-selected\\] {
436
+ background-color: var(--w-s-icon-selected)
437
+ }
438
+
439
+ .group:hover .group-hover\\:bg-\\[--w-color-switch-track-background-hover\\] {
440
+ background-color: var(--w-color-switch-track-background-hover)
441
+ }
442
+
443
+ .hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover {
444
+ background-color: var(--w-color-button-pill-background-hover)
445
+ }
446
+
447
+ .hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover {
448
+ background-color: var(--w-color-button-primary-background-hover)
449
+ }
450
+
451
+ .hover\\:bg-\\[--w-color-buttongroup-utility-background-hover\\]:hover {
452
+ background-color: var(--w-color-buttongroup-utility-background-hover)
453
+ }
454
+
455
+ .hover\\:bg-\\[--w-color-pill-suggestion-background-hover\\]:hover {
456
+ background-color: var(--w-color-pill-suggestion-background-hover)
457
+ }
458
+
459
+ .hover\\:bg-\\[--w-s-icon-subtle\\]:hover {
460
+ background-color: var(--w-s-icon-subtle)
461
+ }
462
+
463
+ .hover\\:bg-\\[var\\(--w-black\\)\\/85\\]:hover {
464
+ background-color: rgba(var(--w-rgb-black), .85)
465
+ }
466
+
467
+ .active\\:bg-\\[--w-color-button-pill-background-active\\]:active {
468
+ background-color: var(--w-color-button-pill-background-active)
469
+ }
470
+
471
+ .active\\:bg-\\[--w-color-button-primary-background-active\\]:active {
472
+ background-color: var(--w-color-button-primary-background-active)
473
+ }
474
+
475
+ .active\\:bg-\\[--w-color-buttongroup-utility-background-selected\\]:active {
476
+ background-color: var(--w-color-buttongroup-utility-background-selected)
477
+ }
478
+
479
+ .active\\:bg-\\[--w-color-pill-suggestion-background-active\\]:active {
480
+ background-color: var(--w-color-pill-suggestion-background-active)
481
+ }
482
+
483
+ .active\\:bg-\\[var\\(--w-black\\)\\]:active {
484
+ background-color: var(--w-black)
485
+ }
486
+
487
+ .peer:checked ~ .peer-checked\\:before\\:bg-\\[url\\(var\\(--w-icon-toggle-checked\\)\\)\\]:before {
488
+ background-image: var(--w-icon-toggle-checked)
489
+ }
490
+
491
+ .appearance-none {
492
+ -moz-appearance: none;
493
+ appearance: none;
494
+ -webkit-appearance: none
495
+ }
496
+
497
+ .will-change-height {
498
+ will-change: height
499
+ }
500
+
501
+ .border, .border-1 {
502
+ border-width: 1px
503
+ }
504
+
505
+ .border-b {
506
+ border-bottom-width: 1px
507
+ }
508
+
509
+ .before\\:border:before {
510
+ border-width: 1px
511
+ }
512
+
513
+ .border-0 {
514
+ border-width: 0
515
+ }
516
+
517
+ .border-2 {
518
+ border-width: 2px
519
+ }
520
+
521
+ .border-b-0 {
522
+ border-bottom-width: 0
523
+ }
524
+
525
+ .border-b-4 {
526
+ border-bottom-width: 4px
527
+ }
528
+
529
+ .border-l-4 {
530
+ border-left-width: 4px
531
+ }
532
+
533
+ .border-r-0, .group:not(:last-of-type) .group-not-last-of-type\\:border-r-0 {
534
+ border-right-width: 0
535
+ }
536
+
537
+ .peer:checked ~ .peer-checked\\:before\\:border-\\[6\\]:before {
538
+ border-width: .6rem
539
+ }
540
+
541
+ .border-transparent {
542
+ border-color: transparent
543
+ }
544
+
545
+ .border-\\[--w-color-buttongroup-utility-border\\] {
546
+ border-color: var(--w-color-buttongroup-utility-border)
547
+ }
548
+
549
+ .border-\\[--w-color-callout-border\\] {
550
+ border-color: var(--w-color-callout-border)
551
+ }
552
+
553
+ .border-\\[--w-s-color-background-inverted\\] {
554
+ border-color: var(--w-s-color-background-inverted)
555
+ }
556
+
557
+ .border-\\[--w-s-color-surface-elevated-300\\] {
558
+ border-color: var(--w-s-color-surface-elevated-300)
559
+ }
560
+
561
+ .active\\:border-\\[--w-color-buttongroup-utility-border-selected\\]:active {
562
+ border-color: var(--w-color-buttongroup-utility-border-selected)
563
+ }
564
+
565
+ .divide-x > * + * {
566
+ --w-divide-x-reverse: 0;
567
+ border-left-width: calc(1px * calc(1 - var(--w-divide-x-reverse)));
568
+ border-right-width: calc(1px * var(--w-divide-x-reverse))
569
+ }
570
+
571
+ .divide-y > * + * {
572
+ --w-divide-y-reverse: 0;
573
+ border-top-width: calc(1px * calc(1 - var(--w-divide-y-reverse)));
574
+ border-bottom-width: calc(1px * var(--w-divide-y-reverse))
575
+ }
576
+
577
+ .rounded-4 {
578
+ border-radius: 4px
579
+ }
580
+
581
+ .rounded-8 {
582
+ border-radius: 8px
583
+ }
584
+
585
+ .rounded-full {
586
+ border-radius: 9999px
587
+ }
588
+
589
+ .before\\:rounded-2:before {
590
+ border-radius: 2px
591
+ }
592
+
593
+ .before\\:rounded-full:before {
594
+ border-radius: 9999px
595
+ }
596
+
597
+ .rounded-b-0 {
598
+ border-bottom-left-radius: 0;
599
+ border-bottom-right-radius: 0
600
+ }
601
+
602
+ .rounded-bl-0 {
603
+ border-bottom-left-radius: 0
604
+ }
605
+
606
+ .rounded-br-0 {
607
+ border-bottom-right-radius: 0
608
+ }
609
+
610
+ .rounded-l-0 {
611
+ border-top-left-radius: 0;
612
+ border-bottom-left-radius: 0
613
+ }
614
+
615
+ .rounded-l-full {
616
+ border-top-left-radius: 9999px;
617
+ border-bottom-left-radius: 9999px
618
+ }
619
+
620
+ .rounded-r-0 {
621
+ border-top-right-radius: 0;
622
+ border-bottom-right-radius: 0
623
+ }
624
+
625
+ .rounded-r-full {
626
+ border-top-right-radius: 9999px;
627
+ border-bottom-right-radius: 9999px
628
+ }
629
+
630
+ .rounded-tl-0 {
631
+ border-top-left-radius: 0
632
+ }
633
+
634
+ .rounded-tl-4 {
635
+ border-top-left-radius: 4px
636
+ }
637
+
638
+ .rounded-tr-0 {
639
+ border-top-right-radius: 0
640
+ }
641
+
642
+ .group:first-of-type .group-first-of-type\\:rounded-bl-8 {
643
+ border-bottom-left-radius: 8px
644
+ }
645
+
646
+ .group:first-of-type .group-first-of-type\\:rounded-tl-8 {
647
+ border-top-left-radius: 8px
648
+ }
649
+
650
+ .first\\:rounded-lb-4:first-child {
651
+ border-bottom-left-radius: 4px
652
+ }
653
+
654
+ .first\\:rounded-lt-4:first-child {
655
+ border-top-left-radius: 4px
656
+ }
657
+
658
+ .first\\:rounded-rt-4:first-child {
659
+ border-top-right-radius: 4px
660
+ }
661
+
662
+ .group:last-of-type .group-last-of-type\\:rounded-br-8 {
663
+ border-bottom-right-radius: 8px
664
+ }
665
+
666
+ .group:last-of-type .group-last-of-type\\:rounded-tr-8 {
667
+ border-top-right-radius: 8px
668
+ }
669
+
670
+ .last\\:rounded-lb-4:last-child {
671
+ border-bottom-left-radius: 4px
672
+ }
673
+
674
+ .last\\:rounded-rb-4:last-child {
675
+ border-bottom-right-radius: 4px
676
+ }
677
+
678
+ .last\\:rounded-rt-4:last-child {
679
+ border-top-right-radius: 4px
680
+ }
681
+
682
+ .caret-current {
683
+ caret-color: currentColor
684
+ }
685
+
686
+ .opacity-25 {
687
+ opacity: 25%
688
+ }
689
+
690
+ .block {
691
+ display: block
692
+ }
693
+
694
+ .before\\:block:before {
695
+ display: block
696
+ }
697
+
698
+ .inline-block {
699
+ display: inline-block
700
+ }
701
+
702
+ .inline {
703
+ display: inline
704
+ }
705
+
706
+ .flex, .open\\:flex[open] {
707
+ display: flex
708
+ }
709
+
710
+ .inline-flex {
711
+ display: inline-flex
712
+ }
713
+
714
+ .grid {
715
+ display: grid
716
+ }
717
+
718
+ .inline-grid {
719
+ display: inline-grid
720
+ }
721
+
722
+ .hidden, .group\\/stepv:last-child .group-last\\/stepv\\:hidden {
723
+ display: none
724
+ }
725
+
726
+ .before\\:hidden:before {
727
+ display: none
728
+ }
729
+
730
+ .hover\\:underline:hover {
731
+ text-decoration-line: underline
732
+ }
733
+
734
+ .focus\\:underline:focus {
735
+ text-decoration-line: underline
736
+ }
737
+
738
+ .focus-visible\\:underline:focus-visible {
739
+ text-decoration-line: underline
740
+ }
741
+
742
+ .active\\:underline:active {
743
+ text-decoration-line: underline
744
+ }
745
+
746
+ .hover\\:no-underline:hover {
747
+ text-decoration: none
748
+ }
749
+
750
+ .focus\\:no-underline:focus {
751
+ text-decoration: none
752
+ }
753
+
754
+ .active\\:no-underline:active {
755
+ text-decoration: none
756
+ }
757
+
758
+ .flex-1 {
759
+ flex: 1 1 0%
760
+ }
761
+
762
+ .shrink {
763
+ flex-shrink: 1
764
+ }
765
+
766
+ .shrink-0 {
767
+ flex-shrink: 0
768
+ }
769
+
770
+ .shrink-0\\! {
771
+ flex-shrink: 0 !important
772
+ }
773
+
774
+ .grow, .grow-1 {
775
+ flex-grow: 1
776
+ }
777
+
778
+ .basis-auto {
779
+ flex-basis: auto
780
+ }
781
+
782
+ .flex-col {
783
+ flex-direction: column
784
+ }
785
+
786
+ .focus-within\\:focusable:focus-within {
787
+ outline: 2px solid var(--w-s-color-border-focus);
788
+ outline-offset: var(--w-outline-offset, 1px)
789
+ }
790
+
791
+ .focusable:focus, .focusable:focus-visible {
792
+ outline: 2px solid var(--w-s-color-border-focus);
793
+ outline-offset: var(--w-outline-offset, 1px)
794
+ }
795
+
796
+ .focusable:not(:focus-visible) {
797
+ outline: none
798
+ }
799
+
800
+ .peer:focus ~ .peer-focus\\:focusable, .peer:focus-visible ~ .peer-focus\\:focusable {
801
+ outline: 2px solid var(--w-s-color-border-focus);
802
+ outline-offset: var(--w-outline-offset, 1px)
803
+ }
804
+
805
+ .peer:not(:focus-visible) ~ .peer-focus\\:focusable {
806
+ outline: none
807
+ }
808
+
809
+ .focusable-inset {
810
+ --w-outline-offset: -3px
811
+ }
812
+
813
+ .gap-12 {
814
+ gap: 1.2rem
815
+ }
816
+
817
+ .gap-8 {
818
+ gap: .8rem
819
+ }
820
+
821
+ .gap-x-16 {
822
+ column-gap: 1.6rem
823
+ }
824
+
825
+ .gap-y-16 {
826
+ row-gap: 1.6rem
827
+ }
828
+
829
+ .row-span-2 {
830
+ grid-row: span 2/span 2
831
+ }
832
+
833
+ .col-span-2 {
834
+ grid-column: span 2/span 2
835
+ }
836
+
837
+ .col-span-3 {
838
+ grid-column: span 3/span 3
839
+ }
840
+
841
+ .row-start-1 {
842
+ grid-row-start: 1
843
+ }
844
+
845
+ .row-start-2 {
846
+ grid-row-start: 2
847
+ }
848
+
849
+ .col-start-2 {
850
+ grid-column-start: 2
851
+ }
852
+
853
+ .auto-rows-auto {
854
+ grid-auto-rows: auto
855
+ }
856
+
857
+ .grid-flow-col {
858
+ grid-auto-flow: column
859
+ }
860
+
861
+ .grid-rows-\\[20px_auto\\] {
862
+ grid-template-rows:20px auto
863
+ }
864
+
865
+ .grid-rows-\\[auto_20px\\] {
866
+ grid-template-rows:auto 20px
867
+ }
868
+
869
+ .grid-cols-\\[1fr_20px_1fr\\] {
870
+ grid-template-columns:1fr 20px 1fr
871
+ }
872
+
873
+ .grid-cols-\\[1fr_20px\\] {
874
+ grid-template-columns:1fr 20px
875
+ }
876
+
877
+ .grid-cols-\\[20px_1fr\\] {
878
+ grid-template-columns:20px 1fr
879
+ }
880
+
881
+ .grid-cols-\\[auto_1fr_auto\\] {
882
+ grid-template-columns:auto 1fr auto
883
+ }
884
+
885
+ .grid-cols-1 {
886
+ grid-template-columns:repeat(1, minmax(0, 1fr))
887
+ }
888
+
889
+ .grid-cols-2 {
890
+ grid-template-columns:repeat(2, minmax(0, 1fr))
891
+ }
892
+
893
+ .grid-cols-3 {
894
+ grid-template-columns:repeat(3, minmax(0, 1fr))
895
+ }
896
+
897
+ .grid-cols-4 {
898
+ grid-template-columns:repeat(4, minmax(0, 1fr))
899
+ }
900
+
901
+ .grid-cols-5 {
902
+ grid-template-columns:repeat(5, minmax(0, 1fr))
903
+ }
904
+
905
+ .grid-cols-6 {
906
+ grid-template-columns:repeat(6, minmax(0, 1fr))
907
+ }
908
+
909
+ .grid-cols-7 {
910
+ grid-template-columns:repeat(7, minmax(0, 1fr))
911
+ }
912
+
913
+ .grid-cols-8 {
914
+ grid-template-columns:repeat(8, minmax(0, 1fr))
915
+ }
916
+
917
+ .grid-cols-9 {
918
+ grid-template-columns:repeat(9, minmax(0, 1fr))
919
+ }
920
+
921
+ .overflow-hidden {
922
+ overflow: hidden
923
+ }
924
+
925
+ .overflow-x-hidden {
926
+ overflow-x: hidden
927
+ }
928
+
929
+ .overflow-y-auto {
930
+ overflow-y: auto
931
+ }
932
+
933
+ .list-none {
934
+ list-style-type: none
935
+ }
936
+
937
+ .outline-\\[--w-s-color-border-negative\\]\\! {
938
+ outline-color: var(--w-s-color-border-negative) !important
939
+ }
940
+
941
+ .outline-none {
942
+ outline: 2px solid transparent;
943
+ outline-offset: 2px
944
+ }
945
+
946
+ .focus\\:outline-none:focus {
947
+ outline: 2px solid transparent;
948
+ outline-offset: 2px
949
+ }
950
+
951
+ .items-start {
952
+ align-items: flex-start
953
+ }
954
+
955
+ .items-end {
956
+ align-items: flex-end
957
+ }
958
+
959
+ .items-center {
960
+ align-items: center
961
+ }
962
+
963
+ .self-center {
964
+ align-self: center
965
+ }
966
+
967
+ .inset-0 {
968
+ top: 0rem;
969
+ right: 0rem;
970
+ bottom: 0rem;
971
+ left: 0rem
972
+ }
973
+
974
+ .-bottom-0 {
975
+ bottom: -0rem
976
+ }
977
+
978
+ .bottom-0 {
979
+ bottom: 0rem
980
+ }
981
+
982
+ .bottom-10 {
983
+ bottom: 1rem
984
+ }
985
+
986
+ .bottom-16 {
987
+ bottom: 1.6rem
988
+ }
989
+
990
+ .left-0 {
991
+ left: 0rem
992
+ }
993
+
994
+ .left-4 {
995
+ left: .4rem
996
+ }
997
+
998
+ .right-0 {
999
+ right: 0rem
1000
+ }
1001
+
1002
+ .right-8 {
1003
+ right: .8rem
1004
+ }
1005
+
1006
+ .top-\\[1\\.92rem\\] {
1007
+ top: 1.92rem
1008
+ }
1009
+
1010
+ .top-0 {
1011
+ top: 0rem
1012
+ }
1013
+
1014
+ .top-20 {
1015
+ top: 2rem
1016
+ }
1017
+
1018
+ .top-4 {
1019
+ top: .4rem
1020
+ }
1021
+
1022
+ .top-8 {
1023
+ top: .8rem
1024
+ }
1025
+
1026
+ .before\\:bottom-0:before {
1027
+ bottom: 0rem
1028
+ }
1029
+
1030
+ .before\\:left-0:before {
1031
+ left: 0rem
1032
+ }
1033
+
1034
+ .before\\:right-0:before {
1035
+ right: 0rem
1036
+ }
1037
+
1038
+ .before\\:top-2:before {
1039
+ top: .2rem
1040
+ }
1041
+
1042
+ .-bottom-\\[8px\\] {
1043
+ bottom: -8px
1044
+ }
1045
+
1046
+ .-left-\\[8px\\] {
1047
+ left: -8px
1048
+ }
1049
+
1050
+ .-right-\\[8px\\] {
1051
+ right: -8px
1052
+ }
1053
+
1054
+ .-top-\\[8px\\] {
1055
+ top: -8px
1056
+ }
1057
+
1058
+ .top-\\[19px\\] {
1059
+ top: 19px
1060
+ }
1061
+
1062
+ .top-\\[30\\%\\] {
1063
+ top: 30%
1064
+ }
1065
+
1066
+ .justify-end {
1067
+ justify-content: flex-end
1068
+ }
1069
+
1070
+ .justify-center {
1071
+ justify-content: center
1072
+ }
1073
+
1074
+ .justify-between {
1075
+ justify-content: space-between
1076
+ }
1077
+
1078
+ .justify-items-center {
1079
+ justify-items: center
1080
+ }
1081
+
1082
+ .justify-self-start {
1083
+ justify-self: start
1084
+ }
1085
+
1086
+ .justify-self-end {
1087
+ justify-self: end
1088
+ }
1089
+
1090
+ .justify-self-center {
1091
+ justify-self: center
1092
+ }
1093
+
1094
+ .absolute {
1095
+ position: absolute
1096
+ }
1097
+
1098
+ .fixed {
1099
+ position: fixed
1100
+ }
1101
+
1102
+ .relative {
1103
+ position: relative
1104
+ }
1105
+
1106
+ .open\\:fixed[open] {
1107
+ position: fixed
1108
+ }
1109
+
1110
+ .before\\:absolute:before {
1111
+ position: absolute
1112
+ }
1113
+
1114
+ .z-10, .peer:checked ~ .peer-checked\\:z-10 {
1115
+ z-index: 10
1116
+ }
1117
+
1118
+ .z-30 {
1119
+ z-index: 30
1120
+ }
1121
+
1122
+ .z-50 {
1123
+ z-index: 50
1124
+ }
1125
+
1126
+ .hover\\:z-30:hover {
1127
+ z-index: 30
1128
+ }
1129
+
1130
+ .\\!s-bg-selected {
1131
+ background-color: var(--w-s-color-background-selected) !important
1132
+ }
1133
+
1134
+ .s-bg {
1135
+ background-color: var(--w-s-color-background)
1136
+ }
1137
+
1138
+ .s-bg-disabled {
1139
+ background-color: var(--w-s-color-background-disabled)
1140
+ }
1141
+
1142
+ .s-bg-disabled-subtle {
1143
+ background-color: var(--w-s-color-background-disabled-subtle)
1144
+ }
1145
+
1146
+ .s-bg-info-subtle {
1147
+ background-color: var(--w-s-color-background-info-subtle)
1148
+ }
1149
+
1150
+ .s-bg-inverted {
1151
+ background-color: var(--w-s-color-background-inverted)
1152
+ }
1153
+
1154
+ .s-bg-negative {
1155
+ background-color: var(--w-s-color-background-negative)
1156
+ }
1157
+
1158
+ .s-bg-negative-subtle {
1159
+ background-color: var(--w-s-color-background-negative-subtle)
1160
+ }
1161
+
1162
+ .s-bg-positive-subtle {
1163
+ background-color: var(--w-s-color-background-positive-subtle)
1164
+ }
1165
+
1166
+ .s-bg-primary, .peer:checked ~ .peer-checked\\:s-bg-primary {
1167
+ background-color: var(--w-s-color-background-primary)
1168
+ }
1169
+
1170
+ .s-bg-selected {
1171
+ background-color: var(--w-s-color-background-selected)
1172
+ }
1173
+
1174
+ .s-bg-subtle {
1175
+ background-color: var(--w-s-color-background-subtle)
1176
+ }
1177
+
1178
+ .s-bg-warning-subtle {
1179
+ background-color: var(--w-s-color-background-warning-subtle)
1180
+ }
1181
+
1182
+ .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-negative-hover:before {
1183
+ background-color: var(--w-s-color-background-negative-hover)
1184
+ }
1185
+
1186
+ .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-primary-hover:before {
1187
+ background-color: var(--w-s-color-background-primary-hover)
1188
+ }
1189
+
1190
+ .peer:checked ~ .peer-checked\\:before\\:s-bg-disabled:before {
1191
+ background-color: var(--w-s-color-background-disabled)
1192
+ }
1193
+
1194
+ .peer:checked ~ .peer-checked\\:before\\:s-bg-negative:before {
1195
+ background-color: var(--w-s-color-background-negative)
1196
+ }
1197
+
1198
+ .peer:checked ~ .peer-checked\\:before\\:s-bg-primary:before {
1199
+ background-color: var(--w-s-color-background-primary)
1200
+ }
1201
+
1202
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-disabled:before {
1203
+ background-color: var(--w-s-color-background-disabled)
1204
+ }
1205
+
1206
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-negative:before {
1207
+ background-color: var(--w-s-color-background-negative)
1208
+ }
1209
+
1210
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-primary:before {
1211
+ background-color: var(--w-s-color-background-primary)
1212
+ }
1213
+
1214
+ .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-negative-hover:hover:before {
1215
+ background-color: var(--w-s-color-background-negative-hover)
1216
+ }
1217
+
1218
+ .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-primary-hover:hover:before {
1219
+ background-color: var(--w-s-color-background-primary-hover)
1220
+ }
1221
+
1222
+ .\\!hover\\:s-bg-selected-hover:hover {
1223
+ background-color: var(--w-s-color-background-selected-hover) !important
1224
+ }
1225
+
1226
+ .group:hover .group-hover\\:s-bg-primary-hover {
1227
+ background-color: var(--w-s-color-background-primary-hover)
1228
+ }
1229
+
1230
+ .hover\\:before\\:s-bg-hover:hover:before {
1231
+ background-color: var(--w-s-color-background-hover)
1232
+ }
1233
+
1234
+ .hover\\:before\\:s-bg-negative-subtle-hover:hover:before {
1235
+ background-color: var(--w-s-color-background-negative-subtle-hover)
1236
+ }
1237
+
1238
+ .hover\\:s-bg-hover:hover {
1239
+ background-color: var(--w-s-color-background-hover)
1240
+ }
1241
+
1242
+ .hover\\:s-bg-negative-hover:hover {
1243
+ background-color: var(--w-s-color-background-negative-hover)
1244
+ }
1245
+
1246
+ .hover\\:s-bg-negative-subtle-hover:hover {
1247
+ background-color: var(--w-s-color-background-negative-subtle-hover)
1248
+ }
1249
+
1250
+ .hover\\:s-bg-primary-hover:hover {
1251
+ background-color: var(--w-s-color-background-primary-hover)
1252
+ }
1253
+
1254
+ .hover\\:s-bg-selected-hover:hover {
1255
+ background-color: var(--w-s-color-background-selected-hover)
1256
+ }
1257
+
1258
+ .peer:hover:not(:checked) ~ .peer-hover\\:peer-not-checked\\:s-bg-hover {
1259
+ background-color: var(--w-s-color-background-hover)
1260
+ }
1261
+
1262
+ .peer:hover ~ .peer-hover\\:before\\:s-bg-hover:before {
1263
+ background-color: var(--w-s-color-background-hover)
1264
+ }
1265
+
1266
+ .peer:hover ~ .peer-hover\\:before\\:s-bg-negative-subtle:before {
1267
+ background-color: var(--w-s-color-background-negative-subtle)
1268
+ }
1269
+
1270
+ .focus\\:s-bg-primary-hover:focus {
1271
+ background-color: var(--w-s-color-background-primary-hover)
1272
+ }
1273
+
1274
+ .\\!active\\:s-bg-selected-active:active {
1275
+ background-color: var(--w-s-color-background-selected-active) !important
1276
+ }
1277
+
1278
+ .active\\:s-bg-active:active {
1279
+ background-color: var(--w-s-color-background-active)
1280
+ }
1281
+
1282
+ .active\\:s-bg-negative-active:active {
1283
+ background-color: var(--w-s-color-background-negative-active)
1284
+ }
1285
+
1286
+ .active\\:s-bg-negative-subtle-active:active {
1287
+ background-color: var(--w-s-color-background-negative-subtle-active)
1288
+ }
1289
+
1290
+ .active\\:s-bg-primary-active:active {
1291
+ background-color: var(--w-s-color-background-primary-active)
1292
+ }
1293
+
1294
+ .active\\:s-bg-selected-active:active {
1295
+ background-color: var(--w-s-color-background-selected-active)
1296
+ }
1297
+
1298
+ .before\\:s-bg-disabled-subtle:before {
1299
+ background-color: var(--w-s-color-background-disabled-subtle)
1300
+ }
1301
+
1302
+ .before\\:s-bg:before {
1303
+ background-color: var(--w-s-color-background)
1304
+ }
1305
+
1306
+ .s-text {
1307
+ color: var(--w-s-color-text)
1308
+ }
1309
+
1310
+ .s-text-disabled {
1311
+ color: var(--w-s-color-text-disabled)
1312
+ }
1313
+
1314
+ .s-text-inverted, .peer:checked ~ .peer-checked\\:s-text-inverted {
1315
+ color: var(--w-s-color-text-inverted)
1316
+ }
1317
+
1318
+ .s-text-inverted-static {
1319
+ color: var(--w-s-color-text-inverted-static)
1320
+ }
1321
+
1322
+ .s-text-link {
1323
+ color: var(--w-s-color-text-link)
1324
+ }
1325
+
1326
+ .s-text-negative {
1327
+ color: var(--w-s-color-text-negative)
1328
+ }
1329
+
1330
+ .s-text-subtle {
1331
+ color: var(--w-s-color-text-subtle)
1332
+ }
1333
+
1334
+ .hover\\:s-text-link:hover {
1335
+ color: var(--w-s-color-text-link)
1336
+ }
1337
+
1338
+ .active\\:s-text:active {
1339
+ color: var(--w-s-color-text)
1340
+ }
1341
+
1342
+ .placeholder\\:s-text-placeholder::placeholder {
1343
+ color: var(--w-s-color-text-placeholder)
1344
+ }
1345
+
1346
+ .s-icon {
1347
+ color: var(--w-s-color-icon)
1348
+ }
1349
+
1350
+ .s-icon-info {
1351
+ color: var(--w-s-color-icon-info)
1352
+ }
1353
+
1354
+ .s-icon-inverted {
1355
+ color: var(--w-s-color-icon-inverted)
1356
+ }
1357
+
1358
+ .s-icon-negative {
1359
+ color: var(--w-s-color-icon-negative)
1360
+ }
1361
+
1362
+ .s-icon-positive {
1363
+ color: var(--w-s-color-icon-positive)
1364
+ }
1365
+
1366
+ .s-icon-warning {
1367
+ color: var(--w-s-color-icon-warning)
1368
+ }
1369
+
1370
+ .hover\\:s-icon-hover:hover {
1371
+ color: var(--w-s-color-icon-hover)
1372
+ }
1373
+
1374
+ .active\\:s-icon-active:active {
1375
+ color: var(--w-s-color-icon-active)
1376
+ }
1377
+
1378
+ .before\\:s-icon-inverted:before {
1379
+ color: var(--w-s-color-icon-inverted)
1380
+ }
1381
+
1382
+ .s-border {
1383
+ border-color: var(--w-s-color-border)
1384
+ }
1385
+
1386
+ .s-border-disabled {
1387
+ border-color: var(--w-s-color-border-disabled)
1388
+ }
1389
+
1390
+ .s-border-info-subtle {
1391
+ border-color: var(--w-s-color-border-info-subtle)
1392
+ }
1393
+
1394
+ .s-border-l-info {
1395
+ border-left-color: var(--w-s-color-border-info)
1396
+ }
1397
+
1398
+ .s-border-l-negative {
1399
+ border-left-color: var(--w-s-color-border-negative)
1400
+ }
1401
+
1402
+ .s-border-l-positive {
1403
+ border-left-color: var(--w-s-color-border-positive)
1404
+ }
1405
+
1406
+ .s-border-l-warning {
1407
+ border-left-color: var(--w-s-color-border-warning)
1408
+ }
1409
+
1410
+ .s-border-negative {
1411
+ border-color: var(--w-s-color-border-negative)
1412
+ }
1413
+
1414
+ .s-border-negative-subtle {
1415
+ border-color: var(--w-s-color-border-negative-subtle)
1416
+ }
1417
+
1418
+ .s-border-positive-subtle {
1419
+ border-color: var(--w-s-color-border-positive-subtle)
1420
+ }
1421
+
1422
+ .s-border-primary, .peer:checked ~ .peer-checked\\:s-border-primary {
1423
+ border-color: var(--w-s-color-border-primary)
1424
+ }
1425
+
1426
+ .s-border-selected {
1427
+ border-color: var(--w-s-color-border-selected)
1428
+ }
1429
+
1430
+ .s-border-warning-subtle {
1431
+ border-color: var(--w-s-color-border-warning-subtle)
1432
+ }
1433
+
1434
+ .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-negative-hover:before {
1435
+ border-color: var(--w-s-color-border-negative-hover)
1436
+ }
1437
+
1438
+ .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-primary-hover:before {
1439
+ border-color: var(--w-s-color-border-primary-hover)
1440
+ }
1441
+
1442
+ .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-selected-hover:before {
1443
+ border-color: var(--w-s-color-border-selected-hover)
1444
+ }
1445
+
1446
+ .peer:checked ~ .peer-checked\\:before\\:s-border-disabled:before {
1447
+ border-color: var(--w-s-color-border-disabled)
1448
+ }
1449
+
1450
+ .peer:checked ~ .peer-checked\\:before\\:s-border-negative:before {
1451
+ border-color: var(--w-s-color-border-negative)
1452
+ }
1453
+
1454
+ .peer:checked ~ .peer-checked\\:before\\:s-border-primary:before {
1455
+ border-color: var(--w-s-color-border-primary)
1456
+ }
1457
+
1458
+ .peer:checked ~ .peer-checked\\:before\\:s-border-selected:before {
1459
+ border-color: var(--w-s-color-border-selected)
1460
+ }
1461
+
1462
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-disabled:before {
1463
+ border-color: var(--w-s-color-border-disabled)
1464
+ }
1465
+
1466
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-negative:before {
1467
+ border-color: var(--w-s-color-border-negative)
1468
+ }
1469
+
1470
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-primary:before {
1471
+ border-color: var(--w-s-color-border-primary)
1472
+ }
1473
+
1474
+ .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-negative-hover:hover:before {
1475
+ border-color: var(--w-s-color-border-negative-hover)
1476
+ }
1477
+
1478
+ .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-primary-hover:hover:before {
1479
+ border-color: var(--w-s-color-border-primary-hover)
1480
+ }
1481
+
1482
+ .group:hover .group-hover\\:s-border-selected-hover {
1483
+ border-color: var(--w-s-color-border-selected-hover)
1484
+ }
1485
+
1486
+ .hover\\:before\\:s-border-negative-hover:hover:before {
1487
+ border-color: var(--w-s-color-border-negative-hover)
1488
+ }
1489
+
1490
+ .hover\\:before\\:s-border-primary:hover:before {
1491
+ border-color: var(--w-s-color-border-primary)
1492
+ }
1493
+
1494
+ .hover\\:s-border-disabled:hover {
1495
+ border-color: var(--w-s-color-border-disabled)
1496
+ }
1497
+
1498
+ .hover\\:s-border-hover:hover {
1499
+ border-color: var(--w-s-color-border-hover)
1500
+ }
1501
+
1502
+ .hover\\:s-border-negative-hover:hover {
1503
+ border-color: var(--w-s-color-border-negative-hover)
1504
+ }
1505
+
1506
+ .hover\\:s-border-primary-hover:hover {
1507
+ border-color: var(--w-s-color-border-primary-hover)
1508
+ }
1509
+
1510
+ .hover\\:s-border-primary:hover {
1511
+ border-color: var(--w-s-color-border-primary)
1512
+ }
1513
+
1514
+ .hover\\:s-border-selected-hover:hover {
1515
+ border-color: var(--w-s-color-border-selected-hover)
1516
+ }
1517
+
1518
+ .peer:hover ~ .peer-hover\\:before\\:s-border-negative-hover:before {
1519
+ border-color: var(--w-s-color-border-negative-hover)
1520
+ }
1521
+
1522
+ .peer:hover ~ .peer-hover\\:before\\:s-border-primary:before {
1523
+ border-color: var(--w-s-color-border-primary)
1524
+ }
1525
+
1526
+ .focus\\:s-border-primary-hover:focus {
1527
+ border-color: var(--w-s-color-border-primary-hover)
1528
+ }
1529
+
1530
+ .active\\:s-border-active:active {
1531
+ border-color: var(--w-s-color-border-active)
1532
+ }
1533
+
1534
+ .active\\:s-border-disabled:active {
1535
+ border-color: var(--w-s-color-border-disabled)
1536
+ }
1537
+
1538
+ .active\\:s-border-primary-active:active {
1539
+ border-color: var(--w-s-color-border-primary-active)
1540
+ }
1541
+
1542
+ .active\\:s-border-selected-active:active {
1543
+ border-color: var(--w-s-color-border-selected-active)
1544
+ }
1545
+
1546
+ .active\\:s-border-selected:active {
1547
+ border-color: var(--w-s-color-border-selected)
1548
+ }
1549
+
1550
+ .group:active .group-active\\:s-border-active {
1551
+ border-color: var(--w-s-color-border-active)
1552
+ }
1553
+
1554
+ .group:active .group-active\\:s-border-selected-active {
1555
+ border-color: var(--w-s-color-border-selected-active)
1556
+ }
1557
+
1558
+ .before\\:s-border-disabled:before {
1559
+ border-color: var(--w-s-color-border-disabled)
1560
+ }
1561
+
1562
+ .before\\:s-border-negative:before {
1563
+ border-color: var(--w-s-color-border-negative)
1564
+ }
1565
+
1566
+ .s-surface-sunken {
1567
+ background-color: var(--w-s-color-surface-sunken)
1568
+ }
1569
+
1570
+ .s-surface-elevated-200 {
1571
+ background-color: var(--w-s-color-surface-elevated-200);
1572
+ box-shadow: var(--w-s-shadow-surface-elevated-200)
1573
+ }
1574
+
1575
+ .hover\\:s-surface-elevated-200-hover:hover {
1576
+ background-color: var(--w-s-color-surface-elevated-200-hover);
1577
+ box-shadow: var(--w-s-shadow-surface-elevated-200-hover)
1578
+ }
1579
+
1580
+ .active\\:s-surface-elevated-200-active:active {
1581
+ background-color: var(--w-s-color-surface-elevated-200-active);
1582
+ box-shadow: var(--w-s-shadow-surface-elevated-200-active)
1583
+ }
1584
+
1585
+ .drop-shadow-m {
1586
+ filter: drop-shadow(rgba(64, 64, 64, .24) 0 3px 8px) drop-shadow(rgba(64, 64, 64, .16) 0 3px 6px)
1587
+ }
1588
+
1589
+ .shadow-m {
1590
+ box-shadow: var(--w-shadow-m)
1591
+ }
1592
+
1593
+ .shadow-s {
1594
+ box-shadow: var(--w-shadow-s)
1595
+ }
1596
+
1597
+ .shadow-\\[--w-shadow-slider\\] {
1598
+ box-shadow: var(--w-shadow-slider)
1599
+ }
1600
+
1601
+ .hover\\:shadow-\\[--w-shadow-slider-handle-hover\\]:hover {
1602
+ box-shadow: var(--w-shadow-slider-handle-hover)
1603
+ }
1604
+
1605
+ .focus\\:shadow-\\[--w-shadow-slider-handle-hover\\]:focus {
1606
+ box-shadow: var(--w-shadow-slider-handle-hover)
1607
+ }
1608
+
1609
+ .active\\:shadow-\\[--w-shadow-slider-handle-active\\]:active {
1610
+ box-shadow: var(--w-shadow-slider-handle-active)
1611
+ }
1612
+
1613
+ .h-0 {
1614
+ height: 0rem
1615
+ }
1616
+
1617
+ .h-16 {
1618
+ height: 1.6rem
1619
+ }
1620
+
1621
+ .h-2 {
1622
+ height: .2rem
1623
+ }
1624
+
1625
+ .h-20 {
1626
+ height: 2rem
1627
+ }
1628
+
1629
+ .h-24 {
1630
+ height: 2.4rem
1631
+ }
1632
+
1633
+ .h-4 {
1634
+ height: .4rem
1635
+ }
1636
+
1637
+ .h-44 {
1638
+ height: 4.4rem
1639
+ }
1640
+
1641
+ .h-6 {
1642
+ height: .6rem
1643
+ }
1644
+
1645
+ .h-8 {
1646
+ height: .8rem
1647
+ }
1648
+
1649
+ .h-full {
1650
+ height: 100%
1651
+ }
1652
+
1653
+ .h-unset {
1654
+ height: unset
1655
+ }
1656
+
1657
+ .max-h-unset {
1658
+ max-height: unset
1659
+ }
1660
+
1661
+ .max-w-full {
1662
+ max-width: 100%
1663
+ }
1664
+
1665
+ .max-w-max {
1666
+ max-width: max-content
1667
+ }
1668
+
1669
+ .max-w-unset {
1670
+ max-width: unset
1671
+ }
1672
+
1673
+ .min-h-32 {
1674
+ min-height: 3.2rem
1675
+ }
1676
+
1677
+ .min-h-40 {
1678
+ min-height: 4rem
1679
+ }
1680
+
1681
+ .min-w-16 {
1682
+ min-width: 1.6rem
1683
+ }
1684
+
1685
+ .min-w-32 {
1686
+ min-width: 3.2rem
1687
+ }
1688
+
1689
+ .w-16 {
1690
+ width: 1.6rem
1691
+ }
1692
+
1693
+ .w-2 {
1694
+ width: .2rem
1695
+ }
1696
+
1697
+ .w-20 {
1698
+ width: 2rem
1699
+ }
1700
+
1701
+ .w-24 {
1702
+ width: 2.4rem
1703
+ }
1704
+
1705
+ .w-32 {
1706
+ width: 3.2rem
1707
+ }
1708
+
1709
+ .w-40 {
1710
+ width: 4rem
1711
+ }
1712
+
1713
+ .w-44 {
1714
+ width: 4.4rem
1715
+ }
1716
+
1717
+ .w-8 {
1718
+ width: .8rem
1719
+ }
1720
+
1721
+ .w-full {
1722
+ width: 100%
1723
+ }
1724
+
1725
+ .w-max {
1726
+ width: max-content
1727
+ }
1728
+
1729
+ .w-unset {
1730
+ width: unset
1731
+ }
1732
+
1733
+ .before\\:h-20:before {
1734
+ height: 2rem
1735
+ }
1736
+
1737
+ .before\\:h-full:before {
1738
+ height: 100%
1739
+ }
1740
+
1741
+ .before\\:w-20:before {
1742
+ width: 2rem
1743
+ }
1744
+
1745
+ .before\\:w-32:before {
1746
+ width: 3.2rem
1747
+ }
1748
+
1749
+ .h-\\[--w-modal-height\\] {
1750
+ height: var(--w-modal-height)
1751
+ }
1752
+
1753
+ .h-\\[14px\\] {
1754
+ height: 14px
1755
+ }
1756
+
1757
+ .h-\\[16px\\] {
1758
+ height: 16px
1759
+ }
1760
+
1761
+ .max-h-\\[--w-modal-max-height\\] {
1762
+ max-height: var(--w-modal-max-height)
1763
+ }
1764
+
1765
+ .min-h-\\[--w-modal-min-height\\] {
1766
+ min-height: var(--w-modal-min-height)
1767
+ }
1768
+
1769
+ .min-h-\\[32px\\] {
1770
+ min-height: 32px
1771
+ }
1772
+
1773
+ .min-h-\\[40px\\] {
1774
+ min-height: 40px
1775
+ }
1776
+
1777
+ .min-h-\\[42\\] {
1778
+ min-height: 4.2rem
1779
+ }
1780
+
1781
+ .min-h-\\[44px\\] {
1782
+ min-height: 44px
1783
+ }
1784
+
1785
+ .min-w-\\[32px\\] {
1786
+ min-width: 32px
1787
+ }
1788
+
1789
+ .min-w-\\[40px\\] {
1790
+ min-width: 40px
1791
+ }
1792
+
1793
+ .min-w-\\[44px\\] {
1794
+ min-width: 44px
1795
+ }
1796
+
1797
+ .w-\\[--w-modal-width\\] {
1798
+ width: var(--w-modal-width)
1799
+ }
1800
+
1801
+ .w-\\[14px\\] {
1802
+ width: 14px
1803
+ }
1804
+
1805
+ .w-\\[16px\\] {
1806
+ width: 16px
1807
+ }
1808
+
1809
+ .space-x-8 > :not([hidden]) ~ :not([hidden]) {
1810
+ --w-space-x-reverse: 0;
1811
+ margin-left: calc(.8rem * calc(1 - var(--w-space-x-reverse)));
1812
+ margin-right: calc(.8rem * var(--w-space-x-reverse))
1813
+ }
1814
+
1815
+ .space-y-16 > :not([hidden]) ~ :not([hidden]) {
1816
+ --w-space-y-reverse: 0;
1817
+ margin-top: calc(1.6rem * calc(1 - var(--w-space-y-reverse)));
1818
+ margin-bottom: calc(1.6rem * var(--w-space-y-reverse))
1819
+ }
1820
+
1821
+ .m-0 {
1822
+ margin: 0rem
1823
+ }
1824
+
1825
+ .m-auto {
1826
+ margin: auto
1827
+ }
1828
+
1829
+ .-mx-16 {
1830
+ margin-left: -1.6rem;
1831
+ margin-right: -1.6rem
1832
+ }
1833
+
1834
+ .mx-0 {
1835
+ margin-left: 0rem;
1836
+ margin-right: 0rem
1837
+ }
1838
+
1839
+ .mx-8 {
1840
+ margin-left: .8rem;
1841
+ margin-right: .8rem
1842
+ }
1843
+
1844
+ .mx-auto {
1845
+ margin-left: auto;
1846
+ margin-right: auto
1847
+ }
1848
+
1849
+ .-mb-1 {
1850
+ margin-bottom: -.1rem
1851
+ }
1852
+
1853
+ .-ml-8 {
1854
+ margin-left: -.8rem
1855
+ }
1856
+
1857
+ .-mr-1 {
1858
+ margin-right: -.1rem
1859
+ }
1860
+
1861
+ .-mr-8 {
1862
+ margin-right: -.8rem
1863
+ }
1864
+
1865
+ .-mt-2 {
1866
+ margin-top: -.2rem
1867
+ }
1868
+
1869
+ .-mt-4 {
1870
+ margin-top: -.4rem
1871
+ }
1872
+
1873
+ .last-child\\:mb-0 > :last-child, .mb-0 {
1874
+ margin-bottom: 0rem
1875
+ }
1876
+
1877
+ .mb-32 {
1878
+ margin-bottom: 3.2rem
1879
+ }
1880
+
1881
+ .ml-8 {
1882
+ margin-left: .8rem
1883
+ }
1884
+
1885
+ .ml-auto {
1886
+ margin-left: auto
1887
+ }
1888
+
1889
+ .mr-8 {
1890
+ margin-right: .8rem
1891
+ }
1892
+
1893
+ .mt-16 {
1894
+ margin-top: 1.6rem
1895
+ }
1896
+
1897
+ .mt-4 {
1898
+ margin-top: .4rem
1899
+ }
1900
+
1901
+ .group:not(:first-child) .group-not-first\\:-ml-2 {
1902
+ margin-left: -.2rem
1903
+ }
1904
+
1905
+ .last\\:mb-0:last-child {
1906
+ margin-bottom: 0rem
1907
+ }
1908
+
1909
+ .last\\:mr-0:last-child {
1910
+ margin-right: 0rem
1911
+ }
1912
+
1913
+ .m-\\[8px\\] {
1914
+ margin: 8px
1915
+ }
1916
+
1917
+ .p-0 {
1918
+ padding: 0rem
1919
+ }
1920
+
1921
+ .p-16 {
1922
+ padding: 1.6rem
1923
+ }
1924
+
1925
+ .p-4 {
1926
+ padding: .4rem
1927
+ }
1928
+
1929
+ .p-8 {
1930
+ padding: .8rem
1931
+ }
1932
+
1933
+ .px-0 {
1934
+ padding-left: 0rem;
1935
+ padding-right: 0rem
1936
+ }
1937
+
1938
+ .px-1 {
1939
+ padding-left: .1rem;
1940
+ padding-right: .1rem
1941
+ }
1942
+
1943
+ .px-12 {
1944
+ padding-left: 1.2rem;
1945
+ padding-right: 1.2rem
1946
+ }
1947
+
1948
+ .px-14 {
1949
+ padding-left: 1.4rem;
1950
+ padding-right: 1.4rem
1951
+ }
1952
+
1953
+ .px-16 {
1954
+ padding-left: 1.6rem;
1955
+ padding-right: 1.6rem
1956
+ }
1957
+
1958
+ .px-8 {
1959
+ padding-left: .8rem;
1960
+ padding-right: .8rem
1961
+ }
1962
+
1963
+ .py-0 {
1964
+ padding-top: 0rem;
1965
+ padding-bottom: 0rem
1966
+ }
1967
+
1968
+ .py-1 {
1969
+ padding-top: .1rem;
1970
+ padding-bottom: .1rem
1971
+ }
1972
+
1973
+ .py-10 {
1974
+ padding-top: 1rem;
1975
+ padding-bottom: 1rem
1976
+ }
1977
+
1978
+ .py-12 {
1979
+ padding-top: 1.2rem;
1980
+ padding-bottom: 1.2rem
1981
+ }
1982
+
1983
+ .py-2 {
1984
+ padding-top: .2rem;
1985
+ padding-bottom: .2rem
1986
+ }
1987
+
1988
+ .py-4 {
1989
+ padding-top: .4rem;
1990
+ padding-bottom: .4rem
1991
+ }
1992
+
1993
+ .py-6 {
1994
+ padding-top: .6rem;
1995
+ padding-bottom: .6rem
1996
+ }
1997
+
1998
+ .py-8 {
1999
+ padding-top: .8rem;
2000
+ padding-bottom: .8rem
2001
+ }
2002
+
2003
+ .pb-0 {
2004
+ padding-bottom: 0rem
2005
+ }
2006
+
2007
+ .pb-32 {
2008
+ padding-bottom: 3.2rem
2009
+ }
2010
+
2011
+ .pb-4 {
2012
+ padding-bottom: .4rem
2013
+ }
2014
+
2015
+ .pb-8 {
2016
+ padding-bottom: .8rem
2017
+ }
2018
+
2019
+ .pl-0 {
2020
+ padding-left: 0rem
2021
+ }
2022
+
2023
+ .pl-1 {
2024
+ padding-left: .1rem
2025
+ }
2026
+
2027
+ .pl-12 {
2028
+ padding-left: 1.2rem
2029
+ }
2030
+
2031
+ .pl-28 {
2032
+ padding-left: 2.8rem
2033
+ }
2034
+
2035
+ .pl-4 {
2036
+ padding-left: .4rem
2037
+ }
2038
+
2039
+ .pl-8 {
2040
+ padding-left: .8rem
2041
+ }
2042
+
2043
+ .pr-12 {
2044
+ padding-right: 1.2rem
2045
+ }
2046
+
2047
+ .pr-14 {
2048
+ padding-right: 1.4rem
2049
+ }
2050
+
2051
+ .pr-2 {
2052
+ padding-right: .2rem
2053
+ }
2054
+
2055
+ .pr-32 {
2056
+ padding-right: 3.2rem
2057
+ }
2058
+
2059
+ .pr-40 {
2060
+ padding-right: 4rem
2061
+ }
2062
+
2063
+ .pt-0 {
2064
+ padding-top: 0rem
2065
+ }
2066
+
2067
+ .pt-1 {
2068
+ padding-top: .1rem
2069
+ }
2070
+
2071
+ .pt-16 {
2072
+ padding-top: 1.6rem
2073
+ }
2074
+
2075
+ .pt-24 {
2076
+ padding-top: 2.4rem
2077
+ }
2078
+
2079
+ .pt-8 {
2080
+ padding-top: .8rem
2081
+ }
2082
+
2083
+ .group\\/step:last-child .group-last\\/step\\:last\\:pb-0:last-child {
2084
+ padding-bottom: 0rem
2085
+ }
2086
+
2087
+ .last\\:pb-1:last-child {
2088
+ padding-bottom: .1rem
2089
+ }
2090
+
2091
+ .last\\:pr-1:last-child {
2092
+ padding-right: .1rem
2093
+ }
2094
+
2095
+ .p-\\[8px\\] {
2096
+ padding: 8px
2097
+ }
2098
+
2099
+ .px-\\[15px\\] {
2100
+ padding-left: 15px;
2101
+ padding-right: 15px
2102
+ }
2103
+
2104
+ .px-\\[8px\\] {
2105
+ padding-left: 8px;
2106
+ padding-right: 8px
2107
+ }
2108
+
2109
+ .py-\\[11px\\] {
2110
+ padding-top: 11px;
2111
+ padding-bottom: 11px
2112
+ }
2113
+
2114
+ .py-\\[5px\\] {
2115
+ padding-top: 5px;
2116
+ padding-bottom: 5px
2117
+ }
2118
+
2119
+ .py-\\[7px\\] {
2120
+ padding-top: 7px;
2121
+ padding-bottom: 7px
2122
+ }
2123
+
2124
+ .pl-\\[var\\(--w-prefix-width\\,_40px\\)\\] {
2125
+ padding-left: var(--w-prefix-width, 40px)
2126
+ }
2127
+
2128
+ .invisible {
2129
+ visibility: hidden
2130
+ }
2131
+
2132
+ .backface-hidden {
2133
+ backface-visibility: hidden
2134
+ }
2135
+
2136
+ .break-words {
2137
+ overflow-wrap: break-word
2138
+ }
2139
+
2140
+ .before\\:content-\\[\\"–\\"\\]:before {
2141
+ content: "–"
2142
+ }
2143
+
2144
+ .before\\:content-\\[\\"\\"\\]:before {
2145
+ content: ""
2146
+ }
2147
+
2148
+ .cursor-default {
2149
+ cursor: default
2150
+ }
2151
+
2152
+ .cursor-pointer {
2153
+ cursor: pointer
2154
+ }
2155
+
2156
+ .antialiased {
2157
+ -webkit-font-smoothing: antialiased;
2158
+ -moz-osx-font-smoothing: grayscale;
2159
+ font-smoothing: grayscale
2160
+ }
2161
+
2162
+ .font-bold {
2163
+ font-weight: 700
2164
+ }
2165
+
2166
+ .before\\:font-bold:before {
2167
+ font-weight: 700
2168
+ }
2169
+
2170
+ .font-normal {
2171
+ font-weight: 400
2172
+ }
2173
+
2174
+ .pointer-events-auto {
2175
+ pointer-events: auto
2176
+ }
2177
+
2178
+ .pointer-events-none {
2179
+ pointer-events: none
2180
+ }
2181
+
2182
+ .before\\:pointer-events-none:before {
2183
+ pointer-events: none
2184
+ }
2185
+
2186
+ .pb-safe-\\[32\\] {
2187
+ padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px))
2188
+ }
2189
+
2190
+ .sr-only {
2191
+ position: absolute;
2192
+ width: 1px;
2193
+ height: 1px;
2194
+ padding: 0;
2195
+ margin: -1px;
2196
+ overflow: hidden;
2197
+ clip: rect(0, 0, 0, 0);
2198
+ white-space: nowrap;
2199
+ border-width: 0
2200
+ }
2201
+
2202
+ .touch-pan-y {
2203
+ touch-action: pan-y
2204
+ }
2205
+
2206
+ .select-none {
2207
+ -webkit-user-select: none;
2208
+ user-select: none
2209
+ }
2210
+
2211
+ .translate-x-20 {
2212
+ --w-translate-x: 2rem;
2213
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2214
+ }
2215
+
2216
+ .translate-z-0 {
2217
+ --w-translate-z: 0rem;
2218
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2219
+ }
2220
+
2221
+ .-rotate-180, .part-\\[w-icon-chevron-down-16-part\\]\\:-rotate-180::part(w-icon-chevron-down-16-part) {
2222
+ --w-rotate-x: 0;
2223
+ --w-rotate-y: 0;
2224
+ --w-rotate-z: 0;
2225
+ --w-rotate: -180deg;
2226
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2227
+ }
2228
+
2229
+ .part-\\[w-icon-chevron-up-16-part\\]\\:rotate-180::part(w-icon-chevron-up-16-part), .rotate-180 {
2230
+ --w-rotate-x: 0;
2231
+ --w-rotate-y: 0;
2232
+ --w-rotate-z: 0;
2233
+ --w-rotate: 180deg;
2234
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2235
+ }
2236
+
2237
+ .rotate-90 {
2238
+ --w-rotate-x: 0;
2239
+ --w-rotate-y: 0;
2240
+ --w-rotate-z: 0;
2241
+ --w-rotate: 90deg;
2242
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2243
+ }
2244
+
2245
+ .part-\\[w-icon-chevron-down-16-part\\]\\:transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform::part(w-icon-chevron-up-16-part), .transform {
2246
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2247
+ }
2248
+
2249
+ .part-\\[w-icon-chevron-down-16-part\\]\\:transform-gpu::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform-gpu::part(w-icon-chevron-up-16-part), .transform-gpu {
2250
+ transform: translate3d(var(--w-translate-x), var(--w-translate-y), var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2251
+ }
2252
+
2253
+ .part-\\[w-icon-chevron-down-16-part\\]\\:transition-transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transition-transform::part(w-icon-chevron-up-16-part), .transition-transform {
2254
+ transition-property: transform;
2255
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2256
+ transition-duration: .15s
2257
+ }
2258
+
2259
+ .transition-300 {
2260
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
2261
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2262
+ transition-duration: .3s
2263
+ }
2264
+
2265
+ .transition-all {
2266
+ transition-property: all;
2267
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2268
+ transition-duration: .15s
2269
+ }
2270
+
2271
+ .transition-colors {
2272
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
2273
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2274
+ transition-duration: .15s
2275
+ }
2276
+
2277
+ .transition-shadow {
2278
+ transition-property: box-shadow;
2279
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2280
+ transition-duration: .15s
2281
+ }
2282
+
2283
+ .before\\:transition-all:before {
2284
+ transition-property: all;
2285
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2286
+ transition-duration: .15s
2287
+ }
2288
+
2289
+ .duration-300 {
2290
+ transition-duration: .3s
2291
+ }
2292
+
2293
+ .ease-in-out, .part-\\[w-icon-chevron-down-16-part\\]\\:ease-in-out::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:ease-in-out::part(w-icon-chevron-up-16-part) {
2294
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1)
2295
+ }
2296
+
2297
+ .text-m {
2298
+ font-size: var(--w-font-size-m);
2299
+ line-height: var(--w-line-height-m)
2300
+ }
2301
+
2302
+ .text-s {
2303
+ font-size: var(--w-font-size-s);
2304
+ line-height: var(--w-line-height-s)
2305
+ }
2306
+
2307
+ .text-xs {
2308
+ font-size: var(--w-font-size-xs);
2309
+ line-height: var(--w-line-height-xs)
2310
+ }
2311
+
2312
+ .leading-m {
2313
+ line-height: var(--w-line-height-m)
2314
+ }
2315
+
2316
+ .before\\:leading-xs:before {
2317
+ line-height: var(--w-line-height-xs)
2318
+ }
2319
+
2320
+ .leading-\\[24\\] {
2321
+ line-height: 2.4rem
2322
+ }
2323
+
2324
+ @media (max-width: 479.9px) {
2325
+ .lt-sm\\:rounded-b-0 {
2326
+ border-bottom-left-radius: 0;
2327
+ border-bottom-right-radius: 0
2328
+ }
2329
+ }
2330
+ @media (min-width: 480px) {
2331
+ .sm\\:border-b-0 {
2332
+ border-bottom-width: 0
2333
+ }
2334
+
2335
+ .sm\\:rounded-8 {
2336
+ border-radius: 8px
2337
+ }
2338
+
2339
+ .sm\\:rounded-b-8 {
2340
+ border-bottom-left-radius: 8px;
2341
+ border-bottom-right-radius: 8px
2342
+ }
2343
+
2344
+ .sm\\:gap-16 {
2345
+ gap: 1.6rem
2346
+ }
2347
+
2348
+ .sm\\:place-content-center {
2349
+ place-content: center
2350
+ }
2351
+
2352
+ .sm\\:place-items-center {
2353
+ place-items: center
2354
+ }
2355
+
2356
+ .sm\\:h-24 {
2357
+ height: 2.4rem
2358
+ }
2359
+
2360
+ .sm\\:min-h-48 {
2361
+ min-height: 4.8rem
2362
+ }
2363
+
2364
+ .sm\\:w-24 {
2365
+ width: 2.4rem
2366
+ }
2367
+
2368
+ .sm\\:min-h-\\[32px\\] {
2369
+ min-height: 32px
2370
+ }
2371
+
2372
+ .sm\\:min-h-\\[44px\\] {
2373
+ min-height: 44px
2374
+ }
2375
+
2376
+ .sm\\:min-h-\\[45\\] {
2377
+ min-height: 4.5rem
2378
+ }
2379
+
2380
+ .sm\\:min-w-\\[32px\\] {
2381
+ min-width: 32px
2382
+ }
2383
+
2384
+ .sm\\:min-w-\\[44px\\] {
2385
+ min-width: 44px
2386
+ }
2387
+
2388
+ .sm\\:mx-0 {
2389
+ margin-left: 0rem;
2390
+ margin-right: 0rem
2391
+ }
2392
+
2393
+ .sm\\:mx-16 {
2394
+ margin-left: 1.6rem;
2395
+ margin-right: 1.6rem
2396
+ }
2397
+
2398
+ .sm\\:-ml-12 {
2399
+ margin-left: -1.2rem
2400
+ }
2401
+
2402
+ .sm\\:-mr-12 {
2403
+ margin-right: -1.2rem
2404
+ }
2405
+
2406
+ .sm\\:-mt-8 {
2407
+ margin-top: -.8rem
2408
+ }
2409
+
2410
+ .sm\\:px-32 {
2411
+ padding-left: 3.2rem;
2412
+ padding-right: 3.2rem
2413
+ }
2414
+
2415
+ .sm\\:py-0 {
2416
+ padding-top: 0rem;
2417
+ padding-bottom: 0rem
2418
+ }
2419
+
2420
+ .sm\\:pb-32 {
2421
+ padding-bottom: 3.2rem
2422
+ }
2423
+
2424
+ .sm\\:pt-24 {
2425
+ padding-top: 2.4rem
2426
+ }
2427
+
2428
+ .sm\\:pt-32 {
2429
+ padding-top: 3.2rem
2430
+ }
2431
+ }
2432
+ @media (min-width: 768px) {
2433
+ .md\\:block {
2434
+ display: block
2435
+ }
2436
+
2437
+ .md\\:hidden {
2438
+ display: none
2439
+ }
2440
+ }
2441
+ `;import{css as ve}from"lit";var H=ve`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.rounded-4{border-radius:4px}.block{display:block}.flex{display:flex}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.justify-center{justify-content:center}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-text{color:var(--w-s-color-text)}.w-40{width:4rem}.w-max{width:max-content}.pb-0{padding-bottom:0}.pl-12{padding-left:1.2rem}.pr-12{padding-right:1.2rem}.cursor-default{cursor:default}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}`;import{LitElement as Be}from"lit";import{unsafeStatic as Ye,html as Pe}from"lit/static-html.js";var W=me(K(),1);var u=r=>typeof r=="string",Le=r=>typeof r=="function",G=new Map,Q="en";function F(r){return[...Array.isArray(r)?r:[r],Q]}function I(r,e,o){let t=F(r);o||(o="default");let a;if(typeof o=="string")switch(a={day:"numeric",month:"short",year:"numeric"},o){case"full":a.weekday="long";case"long":a.month="long";break;case"short":a.month="numeric";break}else a=o;return z(()=>E("date",t,o),()=>new Intl.DateTimeFormat(t,a)).format(u(e)?new Date(e):e)}function Me(r,e,o){let t;if(o||(o="default"),typeof o=="string")switch(t={second:"numeric",minute:"numeric",hour:"numeric"},o){case"full":case"long":t.timeZoneName="short";break;case"short":delete t.second}else t=o;return I(r,e,t)}function j(r,e,o){let t=F(r);return z(()=>E("number",t,o),()=>new Intl.NumberFormat(t,o)).format(e)}function V(r,e,o,{offset:t=0,...a}){var n,l;let s=F(r),i=e?z(()=>E("plural-ordinal",s),()=>new Intl.PluralRules(s,{type:"ordinal"})):z(()=>E("plural-cardinal",s),()=>new Intl.PluralRules(s,{type:"cardinal"}));return(l=(n=a[o])!=null?n:a[i.select(o-t)])!=null?l:a.other}function z(r,e){let o=r(),t=G.get(o);return t||(t=e(),G.set(o,t)),t}function E(r,e,o){let t=e.join("-");return`${r}-${t}-${JSON.stringify(o)}`}var ee=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,re="%__lingui_octothorpe__%",Ce=(r,e,o={})=>{let t=e||r,a=i=>typeof i=="object"?i:o[i],s=(i,n)=>{let l=Object.keys(o).length?a("number"):void 0,d=j(t,i,l);return n.replace(new RegExp(re,"g"),d)};return{plural:(i,n)=>{let{offset:l=0}=n,d=V(t,!1,i,n);return s(i-l,d)},selectordinal:(i,n)=>{let{offset:l=0}=n,d=V(t,!0,i,n);return s(i-l,d)},select:Oe,number:(i,n)=>j(t,i,a(n)||{style:n}),date:(i,n)=>I(t,i,a(n)||n),time:(i,n)=>Me(t,i,a(n)||n)}},Oe=(r,e)=>{var o;return(o=e[r])!=null?o:e.other};function Se(r,e,o){return(t={},a)=>{let s=Ce(e,o,a),i=(l,d=!1)=>Array.isArray(l)?l.reduce((h,k)=>{if(k==="#"&&d)return h+re;if(u(k))return h+k;let[P,m,$]=k,C={};m==="plural"||m==="selectordinal"||m==="select"?Object.entries($).forEach(([O,de])=>{C[O]=i(de,m==="plural"||m==="selectordinal")}):C=$;let y;if(m){let O=s[m];y=O(t[P],C)}else y=t[P];return y==null?h:h+y},""):l,n=i(r);return u(n)&&ee.test(n)?(0,W.unraw)(n):u(n)?n:n?String(n):""}}var Ne=Object.defineProperty,je=(r,e,o)=>e in r?Ne(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,De=(r,e,o)=>(je(r,typeof e!="symbol"?e+"":e,o),o),D=class{constructor(){De(this,"_events",{})}on(e,o){var a;var t;return(a=(t=this._events)[e])!=null||(t[e]=[]),this._events[e].push(o),()=>this.removeListener(e,o)}removeListener(e,o){let t=this._getListeners(e);if(!t)return;let a=t.indexOf(o);~a&&t.splice(a,1)}emit(e,...o){let t=this._getListeners(e);t&&t.map(a=>a.apply(this,o))}_getListeners(e){let o=this._events[e];return Array.isArray(o)?o:!1}},Te=Object.defineProperty,Fe=(r,e,o)=>e in r?Te(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,f=(r,e,o)=>(Fe(r,typeof e!="symbol"?e+"":e,o),o),T=class extends D{constructor(e){var o;super(),f(this,"_locale",""),f(this,"_locales"),f(this,"_localeData",{}),f(this,"_messages",{}),f(this,"_missing"),f(this,"_messageCompiler"),f(this,"t",this._.bind(this)),e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(typeof e.locale=="string"||e.locales)&&this.activate((o=e.locale)!=null?o:Q,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,o){let t=this._localeData[e];t?Object.assign(t,o):this._localeData[e]=o}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,o){typeof e=="string"?this._loadLocaleData(e,o):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,o){let t=this._messages[e];t?Object.assign(t,o):this._messages[e]=o}load(e,o){typeof e=="string"&&typeof o=="object"?this._load(e,o):Object.entries(e).forEach(([t,a])=>this._load(t,a)),this.emit("change")}loadAndActivate({locale:e,locales:o,messages:t}){this._locale=e,this._locales=o||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,o){this._locale=e,this._locales=o,this.emit("change")}_(e,o,t){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let a=t==null?void 0:t.message;e||(e=""),u(e)||(o=e.values||o,a=e.message,e=e.id);let s=this.messages[e],i=s===void 0,n=this._missing;if(n&&i)return Le(n)?n(this._locale,e):n;i&&this.emit("missing",{id:e,locale:this._locale});let l=s||a||e;return u(l)&&(this._messageCompiler?l=this._messageCompiler(l):console.warn(`Uncompiled message detected! Message:
2442
+
2443
+ > ${l}
1966
2444
 
1967
2445
  That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
1968
2446
  ICU features such as interpolation and plurals will not work properly for that message.
1969
2447
 
1970
2448
  Please compile your catalog first.
1971
- `);
1972
- }
1973
- }
1974
- if (isString(translation) && UNICODE_REGEX.test(translation))
1975
- return JSON.parse(`"${translation}"`);
1976
- if (isString(translation))
1977
- return translation;
1978
- return interpolate(
1979
- translation,
1980
- this._locale,
1981
- this._locales
1982
- )(values, options == null ? void 0 : options.formats);
1983
- }
1984
- date(value, format) {
1985
- return date(this._locales || this._locale, value, format);
1986
- }
1987
- number(value, format) {
1988
- return number(this._locales || this._locale, value, format);
1989
- }
1990
- };
1991
- function setupI18n(params = {}) {
1992
- return new I18n(params);
1993
- }
1994
- var i18n = setupI18n();
1995
-
1996
- // node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-_hyhbgchrkasknlbocfng7geeci/node_modules/@warp-ds/icons/dist/elements/search-16.js
1997
- var messages = JSON.parse('{"icon.title.search":["Forst\xF8rrelsesglass"]}');
1998
- var messages2 = JSON.parse('{"icon.title.search":["Magnifying glass"]}');
1999
- var messages3 = JSON.parse('{"icon.title.search":["Suurennuslasi"]}');
2000
- var messages4 = JSON.parse('{"icon.title.search":["Forst\xF8rrelsesglas"]}');
2001
- var messages5 = JSON.parse('{"icon.title.search":["F\xF6rstoringsglas"]}');
2002
- var supportedLocales = ["en", "nb", "fi", "da", "sv"];
2003
- var defaultLocale2 = "en";
2004
- var detectByBrand = () => {
2005
- var _a;
2006
- let value;
2007
- switch ((_a = process == null ? void 0 : process.env) == null ? void 0 : _a.NMP_BRAND) {
2008
- case "FINN":
2009
- value = "nb";
2010
- break;
2011
- case "TORI":
2012
- value = "fi";
2013
- break;
2014
- case "BLOCKET":
2015
- value = "sv";
2016
- break;
2017
- case "DBA":
2018
- value = "da";
2019
- break;
2020
- default:
2021
- value = "en";
2022
- }
2023
- return value;
2024
- };
2025
- var detectByHost = () => {
2026
- var _a;
2027
- const hostname = (_a = document == null ? void 0 : document.location) == null ? void 0 : _a.hostname;
2028
- if (hostname == null ? void 0 : hostname.includes("finn")) {
2029
- return "nb";
2030
- } else if (hostname.includes("tori")) {
2031
- return "fi";
2032
- } else if (hostname.includes("blocket")) {
2033
- return "sv";
2034
- } else if (hostname.includes("dba")) {
2035
- return "da";
2036
- } else {
2037
- return defaultLocale2;
2038
- }
2039
- };
2040
- var getSupportedLocale = (usedLocale) => {
2041
- return supportedLocales.find(
2042
- (locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)
2043
- ) || detectByHost();
2044
- };
2045
- function detectLocale() {
2046
- var _a;
2047
- if (typeof window === "undefined") {
2048
- const serverLocale = detectByBrand();
2049
- return getSupportedLocale(serverLocale);
2050
- }
2051
- try {
2052
- const htmlLocale = (_a = document == null ? void 0 : document.documentElement) == null ? void 0 : _a.lang;
2053
- const hostLocale = detectByHost();
2054
- if (!supportedLocales.includes(htmlLocale)) {
2055
- console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname");
2056
- return getSupportedLocale(hostLocale);
2057
- }
2058
- return getSupportedLocale(htmlLocale != null ? htmlLocale : hostLocale);
2059
- } catch (e) {
2060
- console.warn("could not detect locale, falling back to source locale", e);
2061
- return defaultLocale2;
2062
- }
2063
- }
2064
- var getMessages = (locale, enMsg, nbMsg, fiMsg, daMsg, svMsg) => {
2065
- if (locale === "nb") return nbMsg;
2066
- if (locale === "fi") return fiMsg;
2067
- if (locale === "da") return daMsg;
2068
- if (locale === "sv") return svMsg;
2069
- return enMsg;
2070
- };
2071
- var activateI18n = (enMessages, nbMessages, fiMessages, daMessages, svMessages) => {
2072
- const locale = detectLocale();
2073
- const messages62 = getMessages(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);
2074
- i18n.load(locale, messages62);
2075
- i18n.activate(locale);
2076
- };
2077
- activateI18n(messages2, messages, messages3, messages4, messages5);
2078
- var IconSearch16 = class extends LitElement {
2079
- render() {
2080
- const title = i18n.t({ message: `Magnifying glass`, id: "icon.title.search", comment: "Title for search icon" });
2081
- return html`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-search-16-part">${unsafeStatic(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8.905 12.102A6.042 6.042 0 1 0 4.18.981a6.042 6.042 0 0 0 4.726 11.121Zm1.909-1.289L15.5 15.5"></path></svg>`;
2082
- }
2083
- };
2084
- if (!customElements.get("w-icon-search-16")) {
2085
- customElements.define("w-icon-search-16", IconSearch16);
2086
- }
2087
-
2088
- // node_modules/.pnpm/@warp-ds+icons@2.5.0_@lingui+core@5.2.0_@lingui+babel-plugin-lingui-macro@5.2.0_babel-plugin-_hyhbgchrkasknlbocfng7geeci/node_modules/@warp-ds/icons/dist/elements/close-16.js
2089
- import { LitElement as LitElement2 } from "lit";
2090
- import { unsafeStatic as unsafeStatic2, html as html2 } from "lit/static-html.js";
2091
- var messages6 = JSON.parse('{"icon.title.close":["Kryss"]}');
2092
- var messages22 = JSON.parse('{"icon.title.close":["Cross"]}');
2093
- var messages32 = JSON.parse('{"icon.title.close":["Rasti"]}');
2094
- var messages42 = JSON.parse('{"icon.title.close":["Kryds"]}');
2095
- var messages52 = JSON.parse('{"icon.title.close":["Kryss"]}');
2096
- var supportedLocales2 = ["en", "nb", "fi", "da", "sv"];
2097
- var defaultLocale3 = "en";
2098
- var detectByBrand2 = () => {
2099
- var _a;
2100
- let value;
2101
- switch ((_a = process == null ? void 0 : process.env) == null ? void 0 : _a.NMP_BRAND) {
2102
- case "FINN":
2103
- value = "nb";
2104
- break;
2105
- case "TORI":
2106
- value = "fi";
2107
- break;
2108
- case "BLOCKET":
2109
- value = "sv";
2110
- break;
2111
- case "DBA":
2112
- value = "da";
2113
- break;
2114
- default:
2115
- value = "en";
2116
- }
2117
- return value;
2118
- };
2119
- var detectByHost2 = () => {
2120
- var _a;
2121
- const hostname = (_a = document == null ? void 0 : document.location) == null ? void 0 : _a.hostname;
2122
- if (hostname == null ? void 0 : hostname.includes("finn")) {
2123
- return "nb";
2124
- } else if (hostname.includes("tori")) {
2125
- return "fi";
2126
- } else if (hostname.includes("blocket")) {
2127
- return "sv";
2128
- } else if (hostname.includes("dba")) {
2129
- return "da";
2130
- } else {
2131
- return defaultLocale3;
2132
- }
2133
- };
2134
- var getSupportedLocale2 = (usedLocale) => {
2135
- return supportedLocales2.find(
2136
- (locale) => usedLocale === locale || usedLocale.toLowerCase().includes(locale)
2137
- ) || detectByHost2();
2138
- };
2139
- function detectLocale2() {
2140
- var _a;
2141
- if (typeof window === "undefined") {
2142
- const serverLocale = detectByBrand2();
2143
- return getSupportedLocale2(serverLocale);
2144
- }
2145
- try {
2146
- const htmlLocale = (_a = document == null ? void 0 : document.documentElement) == null ? void 0 : _a.lang;
2147
- const hostLocale = detectByHost2();
2148
- if (!supportedLocales2.includes(htmlLocale)) {
2149
- console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname");
2150
- return getSupportedLocale2(hostLocale);
2151
- }
2152
- return getSupportedLocale2(htmlLocale != null ? htmlLocale : hostLocale);
2153
- } catch (e) {
2154
- console.warn("could not detect locale, falling back to source locale", e);
2155
- return defaultLocale3;
2156
- }
2157
- }
2158
- var getMessages2 = (locale, enMsg, nbMsg, fiMsg, daMsg, svMsg) => {
2159
- if (locale === "nb") return nbMsg;
2160
- if (locale === "fi") return fiMsg;
2161
- if (locale === "da") return daMsg;
2162
- if (locale === "sv") return svMsg;
2163
- return enMsg;
2164
- };
2165
- var activateI18n2 = (enMessages, nbMessages, fiMessages, daMessages, svMessages) => {
2166
- const locale = detectLocale2();
2167
- const messages62 = getMessages2(locale, enMessages, nbMessages, fiMessages, daMessages, svMessages);
2168
- i18n.load(locale, messages62);
2169
- i18n.activate(locale);
2170
- };
2171
- activateI18n2(messages22, messages6, messages32, messages42, messages52);
2172
- var IconClose16 = class extends LitElement2 {
2173
- render() {
2174
- const title = i18n.t({ message: `Cross`, id: "icon.title.close", comment: "Title for close icon" });
2175
- return html2`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-close-16-part">${unsafeStatic2(`<title>${title}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m12.5 3.5-9 9m0-9 9 9"></path></svg>`;
2176
- }
2177
- };
2178
- if (!customElements.get("w-icon-close-16")) {
2179
- customElements.define("w-icon-close-16", IconClose16);
2180
- }
2181
-
2182
- // packages/utils/index.js
2183
- import { classMap } from "lit/directives/class-map.js";
2184
- var camelCaseToKebabCase = (str) => str.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
2185
- function kebabCaseAttributes(constructor) {
2186
- return class extends constructor {
2187
- static createProperty(name, options) {
2188
- let customOptions = options;
2189
- if (typeof (options == null ? void 0 : options.attribute) === "undefined" || (options == null ? void 0 : options.attribute) === true) {
2190
- customOptions = Object.assign({}, options, {
2191
- attribute: camelCaseToKebabCase(name.toString())
2192
- });
2193
- }
2194
- super.createProperty(name, customOptions);
2195
- }
2196
- };
2197
- }
2198
-
2199
- // packages/affix/index.js
2200
- var WarpAffix = class extends kebabCaseAttributes(WarpElement) {
2201
- get _classBase() {
2202
- return this.slot === "suffix" ? suffix : prefix;
2203
- }
2204
- get _classes() {
2205
- return r([this._classBase.wrapper, this.label ? this._classBase.wrapperWithLabel : this._classBase.wrapperWithIcon]);
2206
- }
2207
- get _searchButton() {
2208
- return html3`
2209
- <button aria-label="${ifDefined(this.ariaLabel)}" class="${this._classes}" type="submit">
2449
+ `)),u(l)&&ee.test(l)?JSON.parse(`"${l}"`):u(l)?l:Se(l,this._locale,this._locales)(o,t==null?void 0:t.formats)}date(e,o){return I(this._locales||this._locale,e,o)}number(e,o){return j(this._locales||this._locale,e,o)}};function Ie(r={}){return new T(r)}var b=Ie();var $e=JSON.parse('{"icon.title.search":["Forst\xF8rrelsesglass"]}'),Ae=JSON.parse('{"icon.title.search":["Magnifying glass"]}'),Re=JSON.parse('{"icon.title.search":["Suurennuslasi"]}'),Ue=JSON.parse('{"icon.title.search":["Forst\xF8rrelsesglas"]}'),Xe=JSON.parse('{"icon.title.search":["F\xF6rstoringsglas"]}'),oe=["en","nb","fi","da","sv"],te="en",He=()=>{var r;let e;switch((r=process==null?void 0:process.env)==null?void 0:r.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},ae=()=>{var r;let e=(r=document==null?void 0:document.location)==null?void 0:r.hostname;return e!=null&&e.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":te},B=r=>oe.find(e=>r===e||r.toLowerCase().includes(e))||ae();function Ze(){var r;if(typeof window=="undefined"){let e=He();return B(e)}try{let e=(r=document==null?void 0:document.documentElement)==null?void 0:r.lang,o=ae();return oe.includes(e)?B(e!=null?e:o):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),B(o))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),te}}var Je=(r,e,o,t,a,s)=>r==="nb"?o:r==="fi"?t:r==="da"?a:r==="sv"?s:e,qe=(r,e,o,t,a)=>{let s=Ze(),i=Je(s,r,e,o,t,a);b.load(s,i),b.activate(s)};qe(Ae,$e,Re,Ue,Xe);var Ke=class extends Be{render(){let r=b.t({message:"Magnifying glass",id:"icon.title.search",comment:"Title for search icon"});return Pe`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-search-16-part">${Ye(`<title>${r}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8.905 12.102A6.042 6.042 0 1 0 4.18.981a6.042 6.042 0 0 0 4.726 11.121Zm1.909-1.289L15.5 15.5"></path></svg>`}};customElements.get("w-icon-search-16")||customElements.define("w-icon-search-16",Ke);import{LitElement as Ge}from"lit";import{unsafeStatic as Ve,html as We}from"lit/static-html.js";var Qe=JSON.parse('{"icon.title.close":["Kryss"]}'),er=JSON.parse('{"icon.title.close":["Cross"]}'),rr=JSON.parse('{"icon.title.close":["Rasti"]}'),or=JSON.parse('{"icon.title.close":["Kryds"]}'),tr=JSON.parse('{"icon.title.close":["Kryss"]}'),ie=["en","nb","fi","da","sv"],ne="en",ar=()=>{var r;let e;switch((r=process==null?void 0:process.env)==null?void 0:r.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},se=()=>{var r;let e=(r=document==null?void 0:document.location)==null?void 0:r.hostname;return e!=null&&e.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":ne},Y=r=>ie.find(e=>r===e||r.toLowerCase().includes(e))||se();function ir(){var r;if(typeof window=="undefined"){let e=ar();return Y(e)}try{let e=(r=document==null?void 0:document.documentElement)==null?void 0:r.lang,o=se();return ie.includes(e)?Y(e!=null?e:o):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),Y(o))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),ne}}var nr=(r,e,o,t,a,s)=>r==="nb"?o:r==="fi"?t:r==="da"?a:r==="sv"?s:e,sr=(r,e,o,t,a)=>{let s=ir(),i=nr(s,r,e,o,t,a);b.load(s,i),b.activate(s)};sr(er,Qe,rr,or,tr);var lr=class extends Ge{render(){let r=b.t({message:"Cross",id:"icon.title.close",comment:"Title for close icon"});return We`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-close-16-part">${Ve(`<title>${r}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m12.5 3.5-9 9m0-9 9 9"></path></svg>`}};customElements.get("w-icon-close-16")||customElements.define("w-icon-close-16",lr);var ce="absolute top-0 bottom-0 flex justify-center items-center focusable rounded-4 focus:[--w-outline-offset:-2px] bg-transparent ",dr={wrapper:ce+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs s-text"},br={wrapper:ce+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs s-text"},g=class extends cr{constructor(){super(...arguments);this.clear=!1;this.search=!1}get _classBase(){return this.slot==="suffix"?dr:br}get _classes(){return N([this._classBase.wrapper,this.label?this._classBase.wrapperWithLabel:this._classBase.wrapperWithIcon])}get _searchButton(){return L`
2450
+ <button aria-label="${le(this.ariaLabel)}" class="${this._classes}" type="submit">
2210
2451
  <w-icon-search-16></w-icon-search-16>
2211
2452
  </button>
2212
- `;
2213
- }
2214
- get _clearButton() {
2215
- return html3`
2216
- <button aria-label="${ifDefined(this.ariaLabel)}" class="${this._classes}" type="reset">
2453
+ `}get _clearButton(){return L`
2454
+ <button aria-label="${le(this.ariaLabel)}" class="${this._classes}" type="reset">
2217
2455
  <w-icon-close-16></w-icon-close-16>
2218
2456
  </button>
2219
- `;
2220
- }
2221
- get _text() {
2222
- return html3`
2457
+ `}get _text(){return L`
2223
2458
  <div class="${this._classes}">
2224
2459
  <span class="${this._classBase.label}">${this.label}</span>
2225
2460
  </div>
2226
- `;
2227
- }
2228
- get _markup() {
2229
- if (this.label) {
2230
- return this._text;
2231
- } else if (this.search) {
2232
- return this._searchButton;
2233
- } else if (this.clear) {
2234
- return this._clearButton;
2235
- }
2236
- }
2237
- render() {
2238
- return html3`${this._markup}`;
2239
- }
2240
- };
2241
- __publicField(WarpAffix, "properties", {
2242
- ariaLabel: { type: String },
2243
- clear: { type: Boolean },
2244
- search: { type: Boolean },
2245
- label: { type: String }
2246
- });
2247
- __publicField(WarpAffix, "styles", [WarpElement.styles]);
2248
- if (!customElements.get("w-affix")) {
2249
- customElements.define("w-affix", WarpAffix);
2250
- }
2251
- export {
2252
- WarpAffix
2253
- };
2461
+ `}get _markup(){if(this.label)return this._text;if(this.search)return this._searchButton;if(this.clear)return this._clearButton}render(){return L`${this._markup}`}};g.styles=[X,H],x([M({attribute:"aria-label"})],g.prototype,"ariaLabel",2),x([M({type:Boolean})],g.prototype,"clear",2),x([M({type:Boolean})],g.prototype,"search",2),x([M()],g.prototype,"label",2);customElements.get("w-affix")||customElements.define("w-affix",g);export{g as WarpAffix,br as ccPrefix,dr as ccSuffix};
2254
2462
  //# sourceMappingURL=index.js.map