@public-ui/components 1.5.2 → 1.6.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (461) hide show
  1. package/cheat-sheet.html +33 -24
  2. package/custom-elements.json +109 -31
  3. package/dist/cjs/{app-globals-deb2d36b.js → app-globals-a70c12d0.js} +1 -1
  4. package/dist/cjs/{app-globals-deb2d36b.js.map → app-globals-a70c12d0.js.map} +1 -1
  5. package/dist/cjs/{controller-c828f7c8.js → controller-2d775144.js} +1 -1
  6. package/dist/cjs/controller-2d775144.js.map +1 -0
  7. package/dist/cjs/{controller-dc5aca49.js → controller-4c7b3abf.js} +1 -1
  8. package/dist/cjs/controller-4c7b3abf.js.map +1 -0
  9. package/dist/cjs/controller-54e4c23b.js +4 -0
  10. package/dist/cjs/controller-54e4c23b.js.map +1 -0
  11. package/dist/cjs/{controller-361ba1ef.js → controller-8b201b46.js} +1 -1
  12. package/dist/cjs/{controller-361ba1ef.js.map → controller-8b201b46.js.map} +1 -1
  13. package/dist/cjs/{controller-icon-6ed19132.js → controller-icon-469b21e5.js} +1 -1
  14. package/dist/cjs/{controller-icon-6ed19132.js.map → controller-icon-469b21e5.js.map} +1 -1
  15. package/dist/cjs/dev.utils-d69c0a9f.js.map +1 -1
  16. package/dist/cjs/floating-ui.dom.esm-03ac0b3f.js +4 -0
  17. package/dist/cjs/floating-ui.dom.esm-03ac0b3f.js.map +1 -0
  18. package/dist/cjs/index-94bf4fa8.js +5 -0
  19. package/dist/cjs/index-94bf4fa8.js.map +1 -0
  20. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  21. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  22. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  23. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  24. package/dist/cjs/kol-alert-wc_2.cjs.entry.js +1 -1
  25. package/dist/cjs/kol-alert-wc_2.cjs.entry.js.map +1 -1
  26. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  27. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  28. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  29. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  30. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  31. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  32. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  33. package/dist/cjs/kol-button-wc_3.cjs.entry.js +1 -1
  34. package/dist/cjs/kol-button-wc_3.cjs.entry.js.map +1 -1
  35. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  36. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  37. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  38. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  39. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  40. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  41. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  42. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  43. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  44. package/dist/cjs/kol-icon-font-awesome.cjs.entry.js +1 -1
  45. package/dist/cjs/kol-icon-icofont.cjs.entry.js +1 -1
  46. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  47. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  49. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  50. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  53. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  55. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  57. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  59. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  61. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  63. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-input-radio-group.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-input-radio-group.cjs.entry.js.map +1 -1
  67. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  69. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  73. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  81. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  84. package/dist/cjs/kol-popover.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-popover.cjs.entry.js.map +1 -1
  86. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  90. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  95. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-toast.cjs.entry.js.map +1 -1
  102. package/dist/cjs/kol-tooltip.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  104. package/dist/cjs/kolibri.cjs.js +1 -1
  105. package/dist/cjs/kolibri.cjs.js.map +1 -1
  106. package/dist/cjs/loader.cjs.js +1 -1
  107. package/dist/cjs/loader.cjs.js.map +1 -1
  108. package/dist/cjs/prop.validators-0e600d26.js.map +1 -1
  109. package/dist/components/component10.js.map +1 -1
  110. package/dist/components/component11.js.map +1 -1
  111. package/dist/components/component12.js +1 -1
  112. package/dist/components/component12.js.map +1 -1
  113. package/dist/components/component13.js +1 -1
  114. package/dist/components/component13.js.map +1 -1
  115. package/dist/components/component14.js +1 -1
  116. package/dist/components/component14.js.map +1 -1
  117. package/dist/components/component15.js +1 -1
  118. package/dist/components/component15.js.map +1 -1
  119. package/dist/components/component4.js.map +1 -1
  120. package/dist/components/component6.js.map +1 -1
  121. package/dist/components/controller-icon.js +1 -1
  122. package/dist/components/controller-icon.js.map +1 -1
  123. package/dist/components/controller.js +1 -1
  124. package/dist/components/controller.js.map +1 -1
  125. package/dist/components/controller2.js.map +1 -1
  126. package/dist/components/controller3.js.map +1 -1
  127. package/dist/components/floating-ui.dom.esm.js +1 -1
  128. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  129. package/dist/components/kol-abbr.js +1 -1
  130. package/dist/components/kol-abbr.js.map +1 -1
  131. package/dist/components/kol-accordion.js.map +1 -1
  132. package/dist/components/kol-card.js.map +1 -1
  133. package/dist/components/kol-details.js.map +1 -1
  134. package/dist/components/kol-form.js.map +1 -1
  135. package/dist/components/kol-heading.js.map +1 -1
  136. package/dist/components/kol-input-checkbox.js +1 -1
  137. package/dist/components/kol-input-checkbox.js.map +1 -1
  138. package/dist/components/kol-input-color.js +1 -1
  139. package/dist/components/kol-input-color.js.map +1 -1
  140. package/dist/components/kol-input-date.js +1 -1
  141. package/dist/components/kol-input-date.js.map +1 -1
  142. package/dist/components/kol-input-email.js +1 -1
  143. package/dist/components/kol-input-email.js.map +1 -1
  144. package/dist/components/kol-input-file.js +1 -1
  145. package/dist/components/kol-input-file.js.map +1 -1
  146. package/dist/components/kol-input-password.js +1 -1
  147. package/dist/components/kol-input-password.js.map +1 -1
  148. package/dist/components/kol-input-radio-group.js +1 -1
  149. package/dist/components/kol-input-radio-group.js.map +1 -1
  150. package/dist/components/kol-input-range.js +1 -1
  151. package/dist/components/kol-input-range.js.map +1 -1
  152. package/dist/components/kol-input-text.js +1 -1
  153. package/dist/components/kol-input-text.js.map +1 -1
  154. package/dist/components/kol-modal.js.map +1 -1
  155. package/dist/components/kol-popover.js.map +1 -1
  156. package/dist/components/kol-split-button.js.map +1 -1
  157. package/dist/components/kol-textarea.js +1 -1
  158. package/dist/components/kol-textarea.js.map +1 -1
  159. package/dist/components/kol-toast.js.map +1 -1
  160. package/dist/components/prop.validators.js.map +1 -1
  161. package/dist/components/shadow.js.map +1 -1
  162. package/dist/esm/{app-globals-1e2df332.js → app-globals-037e6656.js} +1 -1
  163. package/dist/esm/{app-globals-1e2df332.js.map → app-globals-037e6656.js.map} +1 -1
  164. package/dist/esm/{controller-9b769c83.js → controller-004bc53b.js} +1 -1
  165. package/dist/esm/controller-004bc53b.js.map +1 -0
  166. package/dist/esm/{controller-6f59f733.js → controller-0b4a141f.js} +1 -1
  167. package/dist/esm/{controller-6f59f733.js.map → controller-0b4a141f.js.map} +1 -1
  168. package/dist/esm/{controller-3ae042db.js → controller-2184621f.js} +1 -1
  169. package/dist/esm/controller-2184621f.js.map +1 -0
  170. package/dist/esm/controller-e7d68f52.js +4 -0
  171. package/dist/esm/controller-e7d68f52.js.map +1 -0
  172. package/dist/esm/{controller-icon-8d8c747a.js → controller-icon-a11cdc92.js} +1 -1
  173. package/dist/esm/{controller-icon-8d8c747a.js.map → controller-icon-a11cdc92.js.map} +1 -1
  174. package/dist/esm/dev.utils-157f0499.js.map +1 -1
  175. package/dist/esm/floating-ui.dom.esm-74010e65.js +4 -0
  176. package/dist/esm/floating-ui.dom.esm-74010e65.js.map +1 -0
  177. package/dist/esm/index-34c3d6f8.js +5 -0
  178. package/dist/esm/index-34c3d6f8.js.map +1 -0
  179. package/dist/esm/kol-abbr.entry.js +1 -1
  180. package/dist/esm/kol-abbr.entry.js.map +1 -1
  181. package/dist/esm/kol-accordion.entry.js +1 -1
  182. package/dist/esm/kol-accordion.entry.js.map +1 -1
  183. package/dist/esm/kol-alert-wc_2.entry.js +1 -1
  184. package/dist/esm/kol-alert-wc_2.entry.js.map +1 -1
  185. package/dist/esm/kol-alert.entry.js +1 -1
  186. package/dist/esm/kol-alert.entry.js.map +1 -1
  187. package/dist/esm/kol-badge.entry.js +1 -1
  188. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  189. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  190. package/dist/esm/kol-button-group.entry.js +1 -1
  191. package/dist/esm/kol-button-link.entry.js +1 -1
  192. package/dist/esm/kol-button-wc_3.entry.js +1 -1
  193. package/dist/esm/kol-button-wc_3.entry.js.map +1 -1
  194. package/dist/esm/kol-button.entry.js +1 -1
  195. package/dist/esm/kol-card.entry.js +1 -1
  196. package/dist/esm/kol-card.entry.js.map +1 -1
  197. package/dist/esm/kol-details.entry.js +1 -1
  198. package/dist/esm/kol-details.entry.js.map +1 -1
  199. package/dist/esm/kol-form.entry.js +1 -1
  200. package/dist/esm/kol-form.entry.js.map +1 -1
  201. package/dist/esm/kol-heading.entry.js +1 -1
  202. package/dist/esm/kol-heading.entry.js.map +1 -1
  203. package/dist/esm/kol-icon-font-awesome.entry.js +1 -1
  204. package/dist/esm/kol-icon-icofont.entry.js +1 -1
  205. package/dist/esm/kol-icon.entry.js +1 -1
  206. package/dist/esm/kol-image.entry.js +1 -1
  207. package/dist/esm/kol-indented-text.entry.js +1 -1
  208. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  209. package/dist/esm/kol-input-adapter-leanup.entry.js +1 -1
  210. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  211. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  212. package/dist/esm/kol-input-color.entry.js +1 -1
  213. package/dist/esm/kol-input-color.entry.js.map +1 -1
  214. package/dist/esm/kol-input-date.entry.js +1 -1
  215. package/dist/esm/kol-input-date.entry.js.map +1 -1
  216. package/dist/esm/kol-input-email.entry.js +1 -1
  217. package/dist/esm/kol-input-email.entry.js.map +1 -1
  218. package/dist/esm/kol-input-file.entry.js +1 -1
  219. package/dist/esm/kol-input-file.entry.js.map +1 -1
  220. package/dist/esm/kol-input-number.entry.js +1 -1
  221. package/dist/esm/kol-input-number.entry.js.map +1 -1
  222. package/dist/esm/kol-input-password.entry.js +1 -1
  223. package/dist/esm/kol-input-password.entry.js.map +1 -1
  224. package/dist/esm/kol-input-radio-group.entry.js +1 -1
  225. package/dist/esm/kol-input-radio-group.entry.js.map +1 -1
  226. package/dist/esm/kol-input-radio.entry.js +1 -1
  227. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  228. package/dist/esm/kol-input-range.entry.js +1 -1
  229. package/dist/esm/kol-input-range.entry.js.map +1 -1
  230. package/dist/esm/kol-input-text.entry.js +1 -1
  231. package/dist/esm/kol-input-text.entry.js.map +1 -1
  232. package/dist/esm/kol-kolibri.entry.js +1 -1
  233. package/dist/esm/kol-link-button.entry.js +1 -1
  234. package/dist/esm/kol-link-group.entry.js +1 -1
  235. package/dist/esm/kol-link-wc.entry.js +1 -1
  236. package/dist/esm/kol-link.entry.js +1 -1
  237. package/dist/esm/kol-logo.entry.js +1 -1
  238. package/dist/esm/kol-modal.entry.js +1 -1
  239. package/dist/esm/kol-modal.entry.js.map +1 -1
  240. package/dist/esm/kol-nav.entry.js +1 -1
  241. package/dist/esm/kol-pagination.entry.js +1 -1
  242. package/dist/esm/kol-pagination.entry.js.map +1 -1
  243. package/dist/esm/kol-popover.entry.js +1 -1
  244. package/dist/esm/kol-popover.entry.js.map +1 -1
  245. package/dist/esm/kol-progress.entry.js +1 -1
  246. package/dist/esm/kol-quote.entry.js +1 -1
  247. package/dist/esm/kol-select.entry.js +1 -1
  248. package/dist/esm/kol-select.entry.js.map +1 -1
  249. package/dist/esm/kol-skip-nav.entry.js +1 -1
  250. package/dist/esm/kol-span.entry.js +1 -1
  251. package/dist/esm/kol-spin.entry.js +1 -1
  252. package/dist/esm/kol-split-button.entry.js +1 -1
  253. package/dist/esm/kol-split-button.entry.js.map +1 -1
  254. package/dist/esm/kol-symbol.entry.js +1 -1
  255. package/dist/esm/kol-table.entry.js +1 -1
  256. package/dist/esm/kol-tabs.entry.js +1 -1
  257. package/dist/esm/kol-textarea.entry.js +1 -1
  258. package/dist/esm/kol-textarea.entry.js.map +1 -1
  259. package/dist/esm/kol-toast.entry.js +1 -1
  260. package/dist/esm/kol-toast.entry.js.map +1 -1
  261. package/dist/esm/kol-tooltip.entry.js +1 -1
  262. package/dist/esm/kol-version.entry.js +1 -1
  263. package/dist/esm/kolibri.js +1 -1
  264. package/dist/esm/kolibri.js.map +1 -1
  265. package/dist/esm/loader.js +1 -1
  266. package/dist/esm/loader.js.map +1 -1
  267. package/dist/esm/prop.validators-2c20cdf8.js.map +1 -1
  268. package/dist/kolibri/app-globals-037e6656.js +4 -0
  269. package/dist/kolibri/{controller-9b769c83.js → controller-004bc53b.js} +1 -1
  270. package/dist/kolibri/controller-004bc53b.js.map +1 -0
  271. package/dist/kolibri/{controller-6f59f733.js → controller-0b4a141f.js} +1 -1
  272. package/dist/kolibri/{controller-3ae042db.js → controller-2184621f.js} +1 -1
  273. package/dist/kolibri/controller-2184621f.js.map +1 -0
  274. package/dist/kolibri/controller-e7d68f52.js +4 -0
  275. package/dist/kolibri/controller-e7d68f52.js.map +1 -0
  276. package/dist/kolibri/controller-icon-a11cdc92.js +4 -0
  277. package/dist/kolibri/{controller-icon-8d8c747a.js.map → controller-icon-a11cdc92.js.map} +1 -1
  278. package/dist/kolibri/dev.utils-157f0499.js.map +1 -1
  279. package/dist/kolibri/floating-ui.dom.esm-74010e65.js +4 -0
  280. package/dist/kolibri/floating-ui.dom.esm-74010e65.js.map +1 -0
  281. package/dist/kolibri/index-34c3d6f8.js +5 -0
  282. package/dist/kolibri/index-34c3d6f8.js.map +1 -0
  283. package/dist/kolibri/kol-abbr.entry.js +1 -1
  284. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  285. package/dist/kolibri/kol-accordion.entry.js +1 -1
  286. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  287. package/dist/kolibri/kol-alert-wc_2.entry.js +1 -1
  288. package/dist/kolibri/kol-alert-wc_2.entry.js.map +1 -1
  289. package/dist/kolibri/kol-alert.entry.js +1 -1
  290. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  291. package/dist/kolibri/kol-badge.entry.js +1 -1
  292. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  293. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  294. package/dist/kolibri/kol-button-group.entry.js +1 -1
  295. package/dist/kolibri/kol-button-link.entry.js +1 -1
  296. package/dist/kolibri/kol-button-wc_3.entry.js +1 -1
  297. package/dist/kolibri/kol-button-wc_3.entry.js.map +1 -1
  298. package/dist/kolibri/kol-button.entry.js +1 -1
  299. package/dist/kolibri/kol-card.entry.js +1 -1
  300. package/dist/kolibri/kol-card.entry.js.map +1 -1
  301. package/dist/kolibri/kol-details.entry.js +1 -1
  302. package/dist/kolibri/kol-details.entry.js.map +1 -1
  303. package/dist/kolibri/kol-form.entry.js +1 -1
  304. package/dist/kolibri/kol-form.entry.js.map +1 -1
  305. package/dist/kolibri/kol-heading.entry.js +1 -1
  306. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  307. package/dist/kolibri/kol-icon-font-awesome.entry.js +1 -1
  308. package/dist/kolibri/kol-icon-icofont.entry.js +1 -1
  309. package/dist/kolibri/kol-icon.entry.js +1 -1
  310. package/dist/kolibri/kol-image.entry.js +1 -1
  311. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  312. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  313. package/dist/kolibri/kol-input-adapter-leanup.entry.js +1 -1
  314. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  315. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  316. package/dist/kolibri/kol-input-color.entry.js +1 -1
  317. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  318. package/dist/kolibri/kol-input-date.entry.js +1 -1
  319. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  320. package/dist/kolibri/kol-input-email.entry.js +1 -1
  321. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  322. package/dist/kolibri/kol-input-file.entry.js +1 -1
  323. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  324. package/dist/kolibri/kol-input-number.entry.js +1 -1
  325. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  326. package/dist/kolibri/kol-input-password.entry.js +1 -1
  327. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  328. package/dist/kolibri/kol-input-radio-group.entry.js +1 -1
  329. package/dist/kolibri/kol-input-radio-group.entry.js.map +1 -1
  330. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  331. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  332. package/dist/kolibri/kol-input-range.entry.js +1 -1
  333. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  334. package/dist/kolibri/kol-input-text.entry.js +1 -1
  335. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  336. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  337. package/dist/kolibri/kol-link-button.entry.js +1 -1
  338. package/dist/kolibri/kol-link-group.entry.js +1 -1
  339. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  340. package/dist/kolibri/kol-link.entry.js +1 -1
  341. package/dist/kolibri/kol-logo.entry.js +1 -1
  342. package/dist/kolibri/kol-modal.entry.js +1 -1
  343. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  344. package/dist/kolibri/kol-nav.entry.js +1 -1
  345. package/dist/kolibri/kol-pagination.entry.js +1 -1
  346. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  347. package/dist/kolibri/kol-popover.entry.js +1 -1
  348. package/dist/kolibri/kol-popover.entry.js.map +1 -1
  349. package/dist/kolibri/kol-progress.entry.js +1 -1
  350. package/dist/kolibri/kol-quote.entry.js +1 -1
  351. package/dist/kolibri/kol-select.entry.js +1 -1
  352. package/dist/kolibri/kol-select.entry.js.map +1 -1
  353. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  354. package/dist/kolibri/kol-span.entry.js +1 -1
  355. package/dist/kolibri/kol-spin.entry.js +1 -1
  356. package/dist/kolibri/kol-split-button.entry.js +1 -1
  357. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  358. package/dist/kolibri/kol-symbol.entry.js +1 -1
  359. package/dist/kolibri/kol-table.entry.js +1 -1
  360. package/dist/kolibri/kol-tabs.entry.js +1 -1
  361. package/dist/kolibri/kol-textarea.entry.js +1 -1
  362. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  363. package/dist/kolibri/kol-toast.entry.js +1 -1
  364. package/dist/kolibri/kol-toast.entry.js.map +1 -1
  365. package/dist/kolibri/kol-tooltip.entry.js +1 -1
  366. package/dist/kolibri/kol-version.entry.js +1 -1
  367. package/dist/kolibri/kolibri.esm.js +1 -1
  368. package/dist/kolibri/kolibri.esm.js.map +1 -1
  369. package/dist/kolibri/prop.validators-2c20cdf8.js.map +1 -1
  370. package/dist/loader/index.d.ts +1 -1
  371. package/dist/types/components/@deprecated/input/controller.d.ts +1 -0
  372. package/dist/types/components/@deprecated/input/types-icon.d.ts +2 -1
  373. package/dist/types/components/@deprecated/input/types.d.ts +2 -1
  374. package/dist/types/components/input/types.d.ts +3 -2
  375. package/dist/types/components/input-checkbox/component.d.ts +2 -0
  376. package/dist/types/components/input-checkbox/types.d.ts +3 -3
  377. package/dist/types/components/input-color/component.d.ts +2 -0
  378. package/dist/types/components/input-color/types.d.ts +3 -2
  379. package/dist/types/components/input-date/component.d.ts +3 -1
  380. package/dist/types/components/input-date/types.d.ts +3 -2
  381. package/dist/types/components/input-email/component.d.ts +3 -1
  382. package/dist/types/components/input-email/types.d.ts +3 -3
  383. package/dist/types/components/input-file/component.d.ts +3 -1
  384. package/dist/types/components/input-file/types.d.ts +3 -2
  385. package/dist/types/components/input-number/component.d.ts +3 -1
  386. package/dist/types/components/input-number/types.d.ts +3 -2
  387. package/dist/types/components/input-password/component.d.ts +2 -0
  388. package/dist/types/components/input-password/types.d.ts +3 -2
  389. package/dist/types/components/input-radio/component.d.ts +2 -0
  390. package/dist/types/components/input-radio/controller.d.ts +2 -1
  391. package/dist/types/components/input-radio/types.d.ts +3 -2
  392. package/dist/types/components/input-radio-group/component.d.ts +1 -0
  393. package/dist/types/components/input-range/component.d.ts +3 -1
  394. package/dist/types/components/input-range/types.d.ts +3 -2
  395. package/dist/types/components/input-text/component.d.ts +2 -0
  396. package/dist/types/components/input-text/controller.d.ts +3 -2
  397. package/dist/types/components/input-text/types.d.ts +3 -2
  398. package/dist/types/components/select/component.d.ts +3 -1
  399. package/dist/types/components/select/types.d.ts +3 -2
  400. package/dist/types/components/textarea/component.d.ts +3 -1
  401. package/dist/types/components/textarea/types.d.ts +3 -3
  402. package/dist/types/components.d.ts +104 -0
  403. package/dist/types/stencil-public-runtime.d.ts +1 -0
  404. package/doc/abbr.md +3 -3
  405. package/doc/accordion.md +1 -1
  406. package/doc/alert.md +3 -3
  407. package/doc/card.md +1 -1
  408. package/doc/details.md +3 -3
  409. package/doc/form.md +3 -3
  410. package/doc/heading.md +3 -3
  411. package/doc/icon-font-awesome.md +1 -1
  412. package/doc/icon-icofont.md +1 -1
  413. package/doc/indented-text.md +3 -3
  414. package/doc/input-checkbox.md +24 -23
  415. package/doc/input-color.md +22 -21
  416. package/doc/input-date.md +28 -27
  417. package/doc/input-email.md +29 -28
  418. package/doc/input-file.md +23 -22
  419. package/doc/input-number.md +29 -28
  420. package/doc/input-password.md +27 -26
  421. package/doc/input-radio-group.md +18 -17
  422. package/doc/input-radio.md +21 -20
  423. package/doc/input-range.md +24 -23
  424. package/doc/input-text.md +29 -28
  425. package/doc/modal.md +3 -3
  426. package/doc/popover.md +3 -3
  427. package/doc/select.md +24 -23
  428. package/doc/split-button.md +3 -3
  429. package/doc/textarea.md +26 -25
  430. package/doc/toast.md +3 -3
  431. package/jest-test-results.json +1 -1
  432. package/package.json +1 -1
  433. package/vscode-custom-data.json +88 -36
  434. package/dist/cjs/controller-3bf4af0a.js +0 -4
  435. package/dist/cjs/controller-3bf4af0a.js.map +0 -1
  436. package/dist/cjs/controller-c828f7c8.js.map +0 -1
  437. package/dist/cjs/controller-dc5aca49.js.map +0 -1
  438. package/dist/cjs/floating-ui.dom.esm-3d05ccb5.js +0 -4
  439. package/dist/cjs/floating-ui.dom.esm-3d05ccb5.js.map +0 -1
  440. package/dist/cjs/index-29c5d3c6.js +0 -5
  441. package/dist/cjs/index-29c5d3c6.js.map +0 -1
  442. package/dist/esm/controller-3ae042db.js.map +0 -1
  443. package/dist/esm/controller-9b769c83.js.map +0 -1
  444. package/dist/esm/controller-ca91917c.js +0 -4
  445. package/dist/esm/controller-ca91917c.js.map +0 -1
  446. package/dist/esm/floating-ui.dom.esm-706cb72a.js +0 -4
  447. package/dist/esm/floating-ui.dom.esm-706cb72a.js.map +0 -1
  448. package/dist/esm/index-50adf9a0.js +0 -5
  449. package/dist/esm/index-50adf9a0.js.map +0 -1
  450. package/dist/kolibri/app-globals-1e2df332.js +0 -4
  451. package/dist/kolibri/controller-3ae042db.js.map +0 -1
  452. package/dist/kolibri/controller-9b769c83.js.map +0 -1
  453. package/dist/kolibri/controller-ca91917c.js +0 -4
  454. package/dist/kolibri/controller-ca91917c.js.map +0 -1
  455. package/dist/kolibri/controller-icon-8d8c747a.js +0 -4
  456. package/dist/kolibri/floating-ui.dom.esm-706cb72a.js +0 -4
  457. package/dist/kolibri/floating-ui.dom.esm-706cb72a.js.map +0 -1
  458. package/dist/kolibri/index-50adf9a0.js +0 -5
  459. package/dist/kolibri/index-50adf9a0.js.map +0 -1
  460. /package/dist/kolibri/{app-globals-1e2df332.js.map → app-globals-037e6656.js.map} +0 -0
  461. /package/dist/kolibri/{controller-6f59f733.js.map → controller-0b4a141f.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":["fillKeyOptionMap","keyOptionMap","options","preKey","forEach","option","index","key","label","length","Array","isArray","set","InputCheckboxRadioController","InputController","constructor","component","name","host","super","this","validateRequired","value","watchBoolean","componentWillLoad","_required","InputRadioController","Map","getOptionByKey","get","isValueInOptions","find","undefined","beforePatchListValue","_value","nextState","list","has","state","_list","clear","newValue","onStateChange","validateOrientation","watchValidator","Set","defaultValue","validateList","watchJsonArrayString","item","hooks","beforePatch","validateValue","mapString2Unknown","setState","setFormAssociatedValue","onChange","timeout","setTimeout","clearTimeout","STATE_CHANGE_EVENT","_orientation"],"sources":["./src/components/input-radio/controller.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\nimport { Stringified } from '../../types/common';\nimport { Optgroup, Option, SelectOption } from '../../types/input/types';\nimport { Orientation } from '../../types/orientation';\nimport { PropLabel } from '../../types/props';\nimport { W3CInputValue } from '../../types/w3c';\nimport { mapString2Unknown, setState, watchBoolean, watchJsonArrayString, watchValidator } from '../../utils/prop.validators';\nimport { STATE_CHANGE_EVENT } from '../../utils/validator';\nimport { InputController } from '../@deprecated/input/controller';\nimport { Props, Watches } from './types';\n\nexport const fillKeyOptionMap = <T>(keyOptionMap: Map<string, Option<T>>, options: SelectOption<T>[], preKey = ''): void => {\n\toptions.forEach((option, index) => {\n\t\tconst key = `${preKey}-${index}`;\n\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string' && option.label.length > 0) {\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\tfillKeyOptionMap(keyOptionMap, (option as Optgroup<T>).options, key);\n\t\t\t} else {\n\t\t\t\tkeyOptionMap.set(key, option as Option<T>);\n\t\t\t}\n\t\t}\n\t});\n};\n\ntype RequiredProps = PropLabel;\ntype OptionalProps = {\n\trequired: boolean;\n};\ntype InputCheckboxRadioProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputCheckboxRadioWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputCheckboxRadioController extends InputController implements InputCheckboxRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputCheckboxRadioProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputCheckboxRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateRequired(this.component._required);\n\t}\n}\n\nexport class InputRadioController extends InputCheckboxRadioController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprivate onStateChange!: () => void;\n\tprivate readonly keyOptionMap = new Map<string, Option<W3CInputValue>>();\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic readonly getOptionByKey = (key: string): Option<W3CInputValue> | undefined => this.keyOptionMap.get(key);\n\n\tprivate readonly isValueInOptions = (value: unknown, options: Option<W3CInputValue>[]): boolean => {\n\t\treturn options.find((option) => option.value === value) !== undefined;\n\t};\n\n\tprotected readonly beforePatchListValue = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst list = nextState.has('_list') ? nextState.get('_list') : this.component.state._list;\n\t\tif (Array.isArray(list) && list.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\t\t\tfillKeyOptionMap(this.keyOptionMap, list as SelectOption<W3CInputValue>[]);\n\t\t\tconst value = nextState.has('_value') ? nextState.get('_value') : this.component.state._value;\n\t\t\tif (this.isValueInOptions(value, list as Option<W3CInputValue>[]) === false) {\n\t\t\t\tconst newValue = (\n\t\t\t\t\tlist[0] as {\n\t\t\t\t\t\tvalue: string;\n\t\t\t\t\t}\n\t\t\t\t).value;\n\t\t\t\tnextState.set('_value', newValue);\n\t\t\t\tthis.onStateChange();\n\t\t\t}\n\t\t}\n\t};\n\n\tpublic validateOrientation(value?: Orientation): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_orientation',\n\t\t\t(value): boolean => value === 'horizontal' || value === 'vertical',\n\t\t\tnew Set(['Orientation {horizontal, vertical}']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\tdefaultValue: 'vertical',\n\t\t\t}\n\t\t);\n\t}\n\n\tpublic validateList(value?: Stringified<Option<W3CInputValue>[]>): void {\n\t\twatchJsonArrayString(\n\t\t\tthis.component,\n\t\t\t'_list',\n\t\t\t(item: Option<W3CInputValue>) => typeof item === 'object' && item !== null && typeof item.label === 'string' && item.label.length > 0,\n\t\t\tvalue,\n\t\t\tundefined,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: this.beforePatchListValue,\n\t\t\t\t},\n\t\t\t}\n\t\t);\n\t}\n\n\tpublic validateValue(value?: Stringified<unknown>): void {\n\t\tvalue = mapString2Unknown(value);\n\t\tvalue = Array.isArray(value) ? value[0] : value;\n\t\tsetState(this.component, '_value', value, {\n\t\t\tbeforePatch: this.beforePatchListValue,\n\t\t});\n\t\tthis.setFormAssociatedValue(this.component._value as string);\n\t}\n\n\tpublic componentWillLoad(onChange?: (event: Event) => void): void {\n\t\tsuper.componentWillLoad();\n\n\t\tthis.onStateChange = () => {\n\t\t\tif (typeof onChange === 'function') {\n\t\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\t\tclearTimeout(timeout);\n\t\t\t\t\tonChange(STATE_CHANGE_EVENT);\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\tthis.validateOrientation(this.component._orientation);\n\t\tthis.validateList(this.component._list);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n"],"mappings":";;;yKAWaA,EAAmB,CAAIC,EAAsCC,EAA4BC,EAAS,MAC9GD,EAAQE,SAAQ,CAACC,EAAQC,KACxB,MAAMC,EAAM,GAAGJ,KAAUG,IACzB,UAAWD,IAAW,UAAYA,IAAW,aAAeA,EAAOG,QAAU,UAAYH,EAAOG,MAAMC,OAAS,EAAG,CACjH,GAAIC,MAAMC,QAASN,EAAuBH,SAAU,CACnDF,EAAiBC,EAAeI,EAAuBH,QAASK,E,KAC1D,CACNN,EAAaW,IAAIL,EAAKF,E,KAGvB,E,MAUUQ,UAAqCC,EAGjDC,YAAmBC,EAAgEC,EAAcC,GAChGC,MAAMH,EAAWC,EAAMC,GACvBE,KAAKJ,UAAYA,C,CAGXK,iBAAiBC,GACvBC,EAAaH,KAAKJ,UAAW,YAAaM,E,CAGpCE,oBACNL,MAAMK,oBACNJ,KAAKC,iBAAiBD,KAAKJ,UAAUS,U,QAI1BC,UAA6Bb,EAKzCE,YAAmBC,EAA8CC,EAAcC,GAC9EC,MAAMH,EAAWC,EAAMC,GAHPE,KAAAnB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K,oBAENJ,KAAKsB,cAAgB,KACpB,UAAWc,IAAa,WAAY,CACnC,MAAMC,EAAUC,YAAW,KAC1BC,aAAaF,GACbD,EAASI,EAAmB,G,GAK/BxC,KAAKuB,oBAAoBvB,KAAKJ,UAAU6C,cACxCzC,KAAK2B,aAAa3B,KAAKJ,UAAUuB,OACjCnB,KAAKgC,cAAchC,KAAKJ,UAAUkB,O"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{d as t}from"./a11y.tipps-2e27f8e6.js";import{a as e,b as i,e as s,w as a}from"./prop.validators-2c20cdf8.js";import{I as h}from"./controller-icon-8d8c747a.js";class r extends h{constructor(e,a,n){super(e,a,n),this.handleHiddenLabelAndRequired=()=>{!0===this.component.state._hideLabel&&!0===this.component.state._required?(t("[KolInput*] Wenn man das Label ausblendet, dann kann der sehende Nutzer:in nicht mehr erkennen, ob die Eingabe erforderlich ist."),this.hideLabel=!1):this.hideLabel=!0===this.component.state._hideLabel},this.component=e}validateAutoComplete(t){e(this.component,"_autoComplete",(e=>"string"==typeof e&&("on"===e||"off"===e)),new Set(["on | off"]),t)}validateHideLabel(e){i(this.component,"_hideLabel",e,{hooks:{afterPatch:this.handleHiddenLabelAndRequired}})}validateMaxLength(e){s(this.component,"_maxLength",e,{min:0})}validatePattern(e){a(this.component,"_pattern",e)}validatePlaceholder(e){a(this.component,"_placeholder",e)}validateReadOnly(e){i(this.component,"_readOnly",e)}validateRequired(e){i(this.component,"_required",e,{hooks:{afterPatch:this.handleHiddenLabelAndRequired}})}validateSize(e){s(this.component,"_size",e,{min:1})}validateValue(e){a(this.component,"_value",e)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateMaxLength(this.component._maxLength),this.validatePattern(this.component._pattern),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateSize(this.component._size),this.validateValue(this.component._value)}onBlur(e){this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:this.placeholderCache}),this.placeholderCache=void 0,super.onBlur(e)}onFocus(e){this.placeholderCache=this.component.state._placeholder,this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:void 0}),super.onFocus(e)}}export{r as I};
4
+ import{d as t}from"./a11y.tipps-2e27f8e6.js";import{a as e,b as i,e as s,w as a}from"./prop.validators-2c20cdf8.js";import{I as h}from"./controller-icon-a11cdc92.js";class r extends h{constructor(e,a,n){super(e,a,n),this.handleHiddenLabelAndRequired=()=>{!0===this.component.state._hideLabel&&!0===this.component.state._required?(t("[KolInput*] Wenn man das Label ausblendet, dann kann der sehende Nutzer:in nicht mehr erkennen, ob die Eingabe erforderlich ist."),this.hideLabel=!1):this.hideLabel=!0===this.component.state._hideLabel},this.component=e}validateAutoComplete(t){e(this.component,"_autoComplete",(e=>"string"==typeof e&&("on"===e||"off"===e)),new Set(["on | off"]),t)}validateHideLabel(e){i(this.component,"_hideLabel",e,{hooks:{afterPatch:this.handleHiddenLabelAndRequired}})}validateMaxLength(e){s(this.component,"_maxLength",e,{min:0})}validatePattern(e){a(this.component,"_pattern",e)}validatePlaceholder(e){a(this.component,"_placeholder",e)}validateReadOnly(e){i(this.component,"_readOnly",e)}validateRequired(e){i(this.component,"_required",e,{hooks:{afterPatch:this.handleHiddenLabelAndRequired}})}validateSize(e){s(this.component,"_size",e,{min:1})}validateValue(e){a(this.component,"_value",e)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateMaxLength(this.component._maxLength),this.validatePattern(this.component._pattern),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateSize(this.component._size),this.validateValue(this.component._value)}onBlur(e){this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:this.placeholderCache}),this.placeholderCache=void 0,super.onBlur(e)}onFocus(e){this.placeholderCache=this.component.state._placeholder,this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:void 0}),super.onFocus(e)}}export{r as I};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{a as t,d as s}from"./prop.validators-2c20cdf8.js";import{I as e}from"./controller-6f59f733.js";class r extends e{constructor(t,s,e){super(t,s,e),this.component=t}validateList(t){s(this.component,"_list",(t=>"string"==typeof t),t)}componentWillLoad(){super.componentWillLoad(),this.validateList(this.component._list)}}class i extends r{constructor(t,s,e){super(t,s,e),this.hasError=!1,this.hasList=!1,this.component=t}validateType(s){t(this.component,"_type",(t=>"string"==typeof t&&("text"===t||"search"===t||"url"===t||"tel"===t)),new Set(["String {text, search, url, tel}"]),s)}componentWillLoad(){super.componentWillLoad(),this.validateType(this.component._type)}}export{r as I,i as a};
4
+ import{a as t,d as s}from"./prop.validators-2c20cdf8.js";import{I as e}from"./controller-0b4a141f.js";class r extends e{constructor(t,s,e){super(t,s,e),this.component=t}validateList(t){s(this.component,"_list",(t=>"string"==typeof t),t)}componentWillLoad(){super.componentWillLoad(),this.validateList(this.component._list)}}class a extends r{constructor(t,s,e){super(t,s,e),this.hasError=!1,this.hasList=!1,this.component=t}validateType(s){t(this.component,"_type",(t=>"string"==typeof t&&("text"===t||"search"===t||"url"===t||"tel"===t)),new Set(["String {text, search, url, tel}"]),s)}componentWillLoad(){super.componentWillLoad(),this.validateType(this.component._type)}}export{r as I,a};
@@ -0,0 +1 @@
1
+ {"version":3,"names":["InputTextEmailController","InputPasswordController","constructor","component","name","host","super","this","validateList","value","watchJsonArrayString","item","componentWillLoad","_list","InputTextController","hasError","hasList","validateType","watchValidator","Set","_type"],"sources":["./src/components/input-text/controller.ts"],"sourcesContent":["import { watchJsonArrayString, watchValidator } from '../../utils/prop.validators';\nimport { InputPasswordController } from '../input-password/controller';\nimport { Props as InputTextProps, Watches as InputTextWatches } from './types';\n\nimport { Generic } from '@a11y-ui/core';\nimport { Stringified } from '../../types/common';\nimport { InputTextType } from '../../types/input/control/text';\nimport { PropLabel } from '../../types/props';\n\ntype RequiredProps = PropLabel;\ntype OptionalProps = {\n\tid: string;\n\tlist: Stringified<string[]>;\n};\ntype InputTextEmailProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputTextEmailWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputTextEmailController extends InputPasswordController implements InputTextEmailWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextEmailProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextEmailProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateList(value?: Stringified<string[]>): void {\n\t\twatchJsonArrayString(this.component, '_list', (item: string) => typeof item === 'string', value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateList(this.component._list);\n\t}\n}\n\nexport class InputTextController extends InputTextEmailController implements InputTextWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextProps;\n\n\tpublic hasError = false;\n\tpublic hasList = false;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateType(value?: InputTextType): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_type',\n\t\t\t(value): boolean => typeof value === 'string' && (value === 'text' || value === 'search' || value === 'url' || value === 'tel'),\n\t\t\tnew Set(['String {text, search, url, tel}']),\n\t\t\tvalue\n\t\t);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateType(this.component._type);\n\t}\n}\n"],"mappings":";;;4GAiBaA,UAAiCC,EAG7CC,YAAmBC,EAA4DC,EAAcC,GAC5FC,MAAMH,EAAWC,EAAMC,GACvBE,KAAKJ,UAAYA,C,CAGXK,aAAaC,GACnBC,EAAqBH,KAAKJ,UAAW,SAAUQ,UAAwBA,IAAS,UAAUF,E,CAGpFG,oBACNN,MAAMM,oBACNL,KAAKC,aAAaD,KAAKJ,UAAUU,M,QAItBC,UAA4Bd,EAMxCE,YAAmBC,EAAuDC,EAAcC,GACvFC,MAAMH,EAAWC,EAAMC,GAJjBE,KAAAQ,SAAW,MACXR,KAAAS,QAAU,MAIhBT,KAAKJ,UAAYA,C,CAGXc,aAAaR,GACnBS,EACCX,KAAKJ,UACL,SACCM,UAA0BA,IAAU,WAAaA,IAAU,QAAUA,IAAU,UAAYA,IAAU,OAASA,IAAU,QACzH,IAAIU,IAAI,CAAC,oCACTV,E,CAIKG,oBACNN,MAAMM,oBACNL,KAAKU,aAAaV,KAAKJ,UAAUiB,M"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{g as i,d as t}from"./a11y.tipps-2e27f8e6.js";import{b as s,w as e,s as h,o as n,p as o}from"./prop.validators-2c20cdf8.js";import{v as a}from"./tab-index-2de507bb.js";import{b as d}from"./dev.utils-157f0499.js";import{v as l}from"./label-58f2333f.js";const r=t=>{const e="string"==typeof t._error&&t._error.length>0&&!0===t._touched,o="string"==typeof t._hint&&t._hint.length>0,n=[];return!0===e&&n.push(`${t._id}-error`),!0===o&&n.push(`${t._id}-hint`),{hasError:e,hasHint:o,ariaDescribedBy:n}},v=d();class u{constructor(t,e,o){var n,i,s,a,h;if(this.syncFormAssociatedName=()=>{var t,e,o;v&&(null===(t=this.formAssociated)||void 0===t||t.setAttribute("id",this.component.state._id),null===(e=this.formAssociated)||void 0===e||e.setAttribute("name",this.component.state._name),null===(o=this.formAssociated)||void 0===o||o.setAttribute("value",this.component.state._value))},this.setFormAssociatedValue=(t=null)=>{var e;v&&(null===(e=this.formAssociated)||void 0===e||e.setAttribute("value",t))},this.component=t,this.name=e,this.host=o,v){this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden");const t=(null===(n=this.host)||void 0===n?void 0:n.children)||[];for(let e=0;e<t.length;e++)"INPUT"===(null===(i=this.host)||void 0===i?void 0:i.children[e].tagName)&&(null===(s=this.host)||void 0===s||s.removeChild(null===(a=this.host)||void 0===a?void 0:a.children[e]));null===(h=this.host)||void 0===h||h.appendChild(this.formAssociated)}}validateAlert(t){s(this.component,"_alert",t)}validateTouched(t){s(this.component,"_touched",t)}componentWillLoad(){this.validateAlert(this.component._alert),this.validateTouched(this.component._touched)}}class f extends u{constructor(t,e,o){super(t,e,o),this.hideLabel=!1,this.valueChangeListeners=[],this.onFacade={onBlur:this.onBlur.bind(this),onChange:this.onChange.bind(this),onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this)},this.component=t}validateAccessKey(t){e(this.component,"_accessKey",t)}validateAdjustHeight(t){s(this.component,"_adjustHeight",t)}validateDisabled(t){s(this.component,"_disabled",t),!0===t&&i()}validateError(t){e(this.component,"_error",t)}validateHideLabel(t){s(this.component,"_hideLabel",t)}validateHint(t){e(this.component,"_hint",t)}validateId(o){e(this.component,"_id",o,{hooks:{afterPatch:this.syncFormAssociatedName},minLength:1}),""!==o&&void 0!==o||t("Eine eindeutige ID an den Eingabefeldern ist nicht zwingend erforderlich, könnte aber für die E2E-Tests relevant sein.")}validateLabel(t){l(this.component,t)}validateName(o){e(this.component,"_name",o,{hooks:{afterPatch:this.syncFormAssociatedName}}),void 0===o&&t("Ein Name an den Eingabefeldern ist nicht zwingend erforderlich, kann aber für die Autocomplete-Funktion und für das statische Versenden des Eingabefeldes relevant sein.")}validateOn(t){"object"==typeof t&&h(this.component,"_on",t)}validateSmartButton(t){n(t,(()=>{try{t=o(t)}catch(t){}h(this.component,"_smartButton",t)}))}validateTabIndex(t){a(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAccessKey(this.component._accessKey),this.validateAdjustHeight(this.component._adjustHeight),this.validateError(this.component._error),this.validateDisabled(this.component._disabled),this.validateHideLabel(this.component._hideLabel),this.validateHint(this.component._hint),this.validateId(this.component._id),this.validateLabel(this.component._label),this.validateName(this.component._name),this.validateSmartButton(this.component._smartButton),this.validateOn(this.component._on),this.validateTabIndex(this.component._tabIndex),this.syncFormAssociatedName()}onBlur(t){var e;this.component._alert=!0,this.component._touched=!0,"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onBlur)&&this.component._on.onBlur(t)}onChange(t){var e;const o=t.target.value;this.setFormAssociatedValue(o),this.valueChangeListeners.forEach((t=>t(o))),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onChange)&&this.component._on.onChange(t,o)}onClick(t){var e;"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onClick)&&this.component._on.onClick(t)}onFocus(t){var e;this.component._alert=!0,"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onFocus)&&this.component._on.onFocus(t)}setValue(t,e){var o;this.setFormAssociatedValue(e),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onChange)&&this.component._on.onChange(t,e)}addValueChangeListener(t){this.valueChangeListeners.push(t)}}export{f as I,r as g};
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getRenderStates","state","hasError","_error","length","_touched","hasHint","_hint","ariaDescribedBy","push","_id","EXPERIMENTAL_MODE","getExperimalMode","ControlledInputController","constructor","component","name","host","this","syncFormAssociatedName","_a","formAssociated","setAttribute","_b","_name","_c","_value","setFormAssociatedValue","value","document","createElement","children","i","tagName","removeChild","_d","_e","appendChild","validateAlert","watchBoolean","validateTouched","componentWillLoad","_alert","InputController","super","hideLabel","valueChangeListeners","onFacade","onBlur","bind","onChange","onClick","onFocus","validateAccessKey","watchString","validateAdjustHeight","validateDisabled","a11yHintDisabled","validateError","validateHideLabel","validateHint","validateId","hooks","afterPatch","minLength","devHint","validateLabel","validateName","validateOn","setState","validateSmartButton","objectObjectHandler","parseJson","e","validateTabIndex","_accessKey","_adjustHeight","_disabled","_hideLabel","_label","_smartButton","_on","_tabIndex","event","target","forEach","listener","setValue","addValueChangeListener"],"sources":["./src/components/input/controller.ts","./src/components/input-adapter-leanup/controller.ts","./src/components/@deprecated/input/controller.ts"],"sourcesContent":["/**\n * Berechnet in Abhängigkeit des Component-State, wie die\n * aria-describedby-Attributs gesetzt werden sollen.\n *\n * @param state State der Component\n * @returns Render-States\n */\nexport const getRenderStates = (state: {\n\t_error?: string;\n\t_hint?: string;\n\t_id: string;\n\t_touched?: boolean;\n}): {\n\thasError: boolean;\n\thasHint: boolean;\n\tariaDescribedBy: string[];\n} => {\n\tconst hasError = typeof state._error === 'string' && state._error.length > 0 && state._touched === true;\n\tconst hasHint = typeof state._hint === 'string' && state._hint.length > 0;\n\n\tconst ariaDescribedBy: string[] = [];\n\tif (hasError === true) {\n\t\tariaDescribedBy.push(`${state._id}-error`);\n\t}\n\tif (hasHint === true) {\n\t\tariaDescribedBy.push(`${state._id}-hint`);\n\t}\n\treturn { hasError, hasHint, ariaDescribedBy };\n};\n","import { Generic } from '@a11y-ui/core';\nimport { getExperimalMode } from '../../utils/dev.utils';\nimport { watchBoolean } from '../../utils/prop.validators';\nimport { Props, Watches } from './types';\n\nconst EXPERIMENTAL_MODE = getExperimalMode();\n\nexport class ControlledInputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly name: string;\n\tprotected readonly host?: HTMLElement;\n\n\tpublic readonly formAssociated?: HTMLInputElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.name = name;\n\t\tthis.host = host;\n\t\tif (EXPERIMENTAL_MODE) {\n\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\tconst children = this.host?.children || [];\n\t\t\tfor (let i = 0; i < children.length; i++) {\n\t\t\t\tif (this.host?.children[i].tagName === 'INPUT') {\n\t\t\t\t\tthis.host?.removeChild(this.host?.children[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\t/**\n\t * We try to support native form-associated custom elements.\n\t *\n\t * @see https://github.com/public-ui/kolibri/discussions/2821\n\t */\n\tprotected readonly syncFormAssociatedName = () => {\n\t\tif (EXPERIMENTAL_MODE) {\n\t\t\tthis.formAssociated?.setAttribute('id', this.component.state._id as string);\n\t\t\tthis.formAssociated?.setAttribute('name', this.component.state._name as string);\n\t\t\tthis.formAssociated?.setAttribute('value', this.component.state._value as string);\n\t\t}\n\t};\n\n\tpublic readonly setFormAssociatedValue = (value: string | null = null) => {\n\t\tif (EXPERIMENTAL_MODE) {\n\t\t\tthis.formAssociated?.setAttribute('value', value as string);\n\t\t}\n\t};\n\n\tpublic validateAlert(value?: boolean): void {\n\t\twatchBoolean(this.component, '_alert', value);\n\t}\n\n\tpublic validateTouched(value?: boolean): void {\n\t\twatchBoolean(this.component, '_touched', value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAlert(this.component._alert);\n\t\tthis.validateTouched(this.component._touched);\n\t}\n}\n","import { Generic } from '@a11y-ui/core';\nimport { ButtonProps } from '../../../types/button-link';\nimport { InputTypeOnDefault } from '../../../types/input/types';\nimport { a11yHintDisabled, devHint } from '../../../utils/a11y.tipps';\nimport { objectObjectHandler, parseJson, setState, watchBoolean, watchString } from '../../../utils/prop.validators';\nimport { validateTabIndex } from '../../../utils/validators/tab-index';\nimport { ControlledInputController } from '../../input-adapter-leanup/controller';\nimport { Props as AdapterProps } from '../../input-adapter-leanup/types';\nimport { Props, Watches } from './types';\nimport { validateLabel } from '../../../types/props';\n\ntype ValueChangeListener = (value: string) => void;\n\nexport class InputController extends ControlledInputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props & AdapterProps;\n\n\tpublic hideLabel = false;\n\n\tprivate readonly valueChangeListeners: ValueChangeListener[] = [];\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateAccessKey(value?: string): void {\n\t\twatchString(this.component, '_accessKey', value);\n\t}\n\n\tpublic validateAdjustHeight(value?: boolean): void {\n\t\twatchBoolean(this.component, '_adjustHeight', value);\n\t}\n\n\tpublic validateDisabled(value?: boolean): void {\n\t\twatchBoolean(this.component, '_disabled', value);\n\t\tif (value === true) {\n\t\t\ta11yHintDisabled();\n\t\t}\n\t}\n\n\tpublic validateError(value?: string): void {\n\t\twatchString(this.component, '_error', value);\n\t}\n\n\tpublic validateHideLabel(value?: boolean): void {\n\t\twatchBoolean(this.component, '_hideLabel', value);\n\t}\n\n\tpublic validateHint(value?: string): void {\n\t\twatchString(this.component, '_hint', value);\n\t}\n\n\tpublic validateId(value?: string): void {\n\t\twatchString(this.component, '_id', value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.syncFormAssociatedName,\n\t\t\t},\n\t\t\tminLength: 1,\n\t\t});\n\t\tif (value === '' || typeof value === 'undefined') {\n\t\t\tdevHint(`Eine eindeutige ID an den Eingabefeldern ist nicht zwingend erforderlich, könnte aber für die E2E-Tests relevant sein.`);\n\t\t}\n\t}\n\n\tpublic validateLabel(value?: string): void {\n\t\tvalidateLabel(this.component, value);\n\t}\n\n\tpublic validateName(value?: string): void {\n\t\twatchString(this.component, '_name', value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.syncFormAssociatedName,\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(\n\t\t\t\t`Ein Name an den Eingabefeldern ist nicht zwingend erforderlich, kann aber für die Autocomplete-Funktion und für das statische Versenden des Eingabefeldes relevant sein.`\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tif (typeof value === 'object') {\n\t\t\tsetState(this.component, '_on', value);\n\t\t}\n\t}\n\n\tpublic validateSmartButton(value?: ButtonProps | string): void {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<ButtonProps>(value as string);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t}\n\t\t\tsetState(this.component, '_smartButton', value);\n\t\t});\n\t}\n\n\tpublic validateTabIndex(value?: number): void {\n\t\tvalidateTabIndex(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAccessKey(this.component._accessKey);\n\t\tthis.validateAdjustHeight(this.component._adjustHeight);\n\t\tthis.validateError(this.component._error);\n\t\tthis.validateDisabled(this.component._disabled);\n\t\tthis.validateHideLabel(this.component._hideLabel);\n\t\tthis.validateHint(this.component._hint);\n\t\tthis.validateId(this.component._id);\n\t\tthis.validateLabel(this.component._label);\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSmartButton(this.component._smartButton);\n\t\tthis.validateOn(this.component._on);\n\t\tthis.validateTabIndex(this.component._tabIndex);\n\t\tthis.syncFormAssociatedName();\n\t}\n\n\tprotected onBlur(event: Event): void {\n\t\tthis.component._alert = true;\n\t\tthis.component._touched = true;\n\t\tif (typeof this.component._on?.onBlur === 'function') {\n\t\t\tthis.component._on.onBlur(event);\n\t\t}\n\t}\n\n\tprotected onChange(event: Event): void {\n\t\tconst value = (event.target as HTMLInputElement).value;\n\t\tthis.setFormAssociatedValue(value);\n\t\tthis.valueChangeListeners.forEach((listener) => listener(value));\n\t\tif (typeof this.component._on?.onChange === 'function') {\n\t\t\t/**\n\t\t\t * TODO\n\t\t\t * Value-Handling muss für InputDate und InputNumber optimiert werden\n\t\t\t * - value\n\t\t\t * - valueAsNumber\n\t\t\t * - valueAsDate\n\t\t\t */\n\t\t\tthis.component._on.onChange(event, value);\n\t\t}\n\t}\n\n\tprotected onClick(event: Event): void {\n\t\tif (typeof this.component._on?.onClick === 'function') {\n\t\t\tthis.component._on.onClick(event);\n\t\t}\n\t}\n\n\tprotected onFocus(event: Event): void {\n\t\tthis.component._alert = true;\n\t\tif (typeof this.component._on?.onFocus === 'function') {\n\t\t\tthis.component._on.onFocus(event);\n\t\t}\n\t}\n\n\tpublic setValue(event: Event, value: string | number | boolean): void {\n\t\tthis.setFormAssociatedValue(value as string);\n\t\tif (typeof this.component._on?.onChange === 'function') {\n\t\t\tthis.component._on.onChange(event, value);\n\t\t}\n\t}\n\n\tpublic addValueChangeListener(listener: ValueChangeListener) {\n\t\tthis.valueChangeListeners.push(listener);\n\t}\n\n\t/**\n\t * Hinweis: In der Subklasse 'InputPasswordController'\n\t * werden die Methoden onBlur und onFocus\n\t * überschrieben.\n\t * Es werden somit zunächst die Methoden der\n\t * Subklasse ausgeführt und danach die der\n\t * Oberklassen.\n\t */\n\tpublic readonly onFacade = {\n\t\tonBlur: this.onBlur.bind(this),\n\t\tonChange: this.onChange.bind(this),\n\t\tonClick: this.onClick.bind(this),\n\t\tonFocus: this.onFocus.bind(this),\n\t};\n}\n"],"mappings":";;;wQAOaA,EAAmBC,IAU/B,MAAMC,SAAkBD,EAAME,SAAW,UAAYF,EAAME,OAAOC,OAAS,GAAKH,EAAMI,WAAa,KACnG,MAAMC,SAAiBL,EAAMM,QAAU,UAAYN,EAAMM,MAAMH,OAAS,EAExE,MAAMI,EAA4B,GAClC,GAAIN,IAAa,KAAM,CACtBM,EAAgBC,KAAK,GAAGR,EAAMS,Y,CAE/B,GAAIJ,IAAY,KAAM,CACrBE,EAAgBC,KAAK,GAAGR,EAAMS,W,CAE/B,MAAO,CAAER,WAAUI,UAASE,kBAAiB,ECtB9C,MAAMG,EAAoBC,I,MAEbC,EAOZC,YAAmBC,EAA8CC,EAAcC,G,cAsB5DC,KAAAC,uBAAyB,K,UAC3C,GAAIR,EAAmB,EACtBS,EAAAF,KAAKG,kBAAc,MAAAD,SAAA,SAAAA,EAAEE,aAAa,KAAMJ,KAAKH,UAAUd,MAAMS,MAC7Da,EAAAL,KAAKG,kBAAc,MAAAE,SAAA,SAAAA,EAAED,aAAa,OAAQJ,KAAKH,UAAUd,MAAMuB,QAC/DC,EAAAP,KAAKG,kBAAc,MAAAI,SAAA,SAAAA,EAAEH,aAAa,QAASJ,KAAKH,UAAUd,MAAMyB,O,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AWR,EAAAF,KAAKH,UAAUkE,OAAG,MAAA7D,SAAA,SAAAA,EAAE8B,YAAa,WAAY,CACvDhC,KAAKH,UAAUkE,IAAI/B,SAASiC,EAAOvD,E,EAI9B4D,uBAAuBF,GAC7BpE,KAAK4B,qBAAqBrC,KAAK6E,E"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{i as o}from"./icon-52e86ff8.js";import{o as t,p as s,a as r}from"./prop.validators-2c20cdf8.js";import{b as i}from"./reuse-3a02afb9.js";import{I as e}from"./controller-e7d68f52.js";const c=(o,t)=>{const e=o;"object"==typeof e&&null!==e&&(i(e.right,1)&&(e.right={icon:e.right}),i(e.left,1)&&(e.left={icon:e.left}),t.set("_icon",e))};class a extends e{constructor(o,t,e){super(o,t,e),this.component=o}validateIcon(e){t(e,(()=>{try{e=s(e)}catch(o){}r(this.component,"_icon",(t=>"object"==typeof t&&null!==t&&(i(t.left,1)||o(t.left)||i(t.right,1)||o(t.right))),new Set(["KoliBriHorizontalIcon"]),e,{hooks:{beforePatch:c},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcon(this.component._icon)}}export{a as I};
@@ -1 +1 @@
1
- {"version":3,"names":["beforePatchIcon","value","nextState","icon","isString","right","left","set","InputIconController","InputController","constructor","component","name","host","super","this","validateIcon","objectObjectHandler","parseJson","e","watchValidator","isIcon","Set","hooks","beforePatch","required","componentWillLoad","_icon"],"sources":["./src/components/@deprecated/input/controller-icon.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\nimport { Stringified } from '../../../types/common';\nimport { KoliBriHorizontalIcon } from '../../../types/icon';\nimport { objectObjectHandler, parseJson, watchValidator } from '../../../utils/prop.validators';\nimport { isString } from '../../../utils/validator';\nimport { isIcon } from '../../../types/props/icon';\nimport { InputController } from './controller';\nimport { Props, Watches } from './types-icon';\n\nconst beforePatchIcon = (value: unknown, nextState: Map<string, unknown>): void => {\n\tconst icon = value as KoliBriHorizontalIcon;\n\tif (typeof icon === 'object' && icon !== null) {\n\t\tif (isString(icon.right, 1)) {\n\t\t\ticon.right = { icon: icon.right as string };\n\t\t}\n\t\tif (isString(icon.left, 1)) {\n\t\t\ticon.left = { icon: icon.left as string };\n\t\t}\n\t\tnextState.set('_icon', icon);\n\t}\n};\n\nexport class InputIconController extends InputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcon>): void {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriHorizontalIcon>(value as string);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t}\n\t\t\twatchValidator(\n\t\t\t\tthis.component,\n\t\t\t\t'_icon',\n\t\t\t\t(value): boolean => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\ttypeof value === 'object' && value !== null && (isString(value.left, 1) || isIcon(value.left) || isString(value.right, 1) || isIcon(value.right))\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\tnew Set(['KoliBriHorizontalIcon']),\n\t\t\t\tvalue,\n\t\t\t\t{\n\t\t\t\t\thooks: {\n\t\t\t\t\t\tbeforePatch: beforePatchIcon,\n\t\t\t\t\t},\n\t\t\t\t\trequired: true,\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateIcon(this.component._icon);\n\t}\n}\n"],"mappings":";;;kLASA,MAAMA,EAAkB,CAACC,EAAgBC,KACxC,MAAMC,EAAOF,EACb,UAAWE,IAAS,UAAYA,IAAS,KAAM,CAC9C,GAAIC,EAASD,EAAKE,MAAO,GAAI,CAC5BF,EAAKE,MAAQ,CAAEF,KAAMA,EAAKE,M,CAE3B,GAAID,EAASD,EAAKG,KAAM,GAAI,CAC3BH,EAAKG,KAAO,CAAEH,KAAMA,EAAKG,K,CAE1BJ,EAAUK,IAAI,QAASJ,E,SAIZK,UAA4BC,EAGxCC,YAAmBC,EAA8CC,EAAcC,GAC9EC,MAAMH,EAAWC,EAAMC,GACvBE,KAAKJ,UAAYA,C,CAGXK,aAAaf,GACnBgB,EAAoBhB,GAAO,KAC1B,IACCA,EAAQiB,EAAiCjB,E,CAExC,MAAOkB,G,CAGTC,EACCL,KAAKJ,UACL,SACCV,UAEQA,IAAU,UAAYA,IAAU,OAASG,EAASH,EAAMK,KAAM,IAAMe,EAAOpB,EAAMK,OAASF,EAASH,EAAMI,MAAO,IAAMgB,EAAOpB,EAAMI,SAG5I,IAAIiB,IAAI,CAAC,0BACTrB,EACA,CACCsB,MAAO,CACNC,YAAaxB,GAEdyB,SAAU,MAEX,G,CAIIC,oBACNZ,MAAMY,oBACNX,KAAKC,aAAaD,KAAKJ,UAAUgB,M"}
1
+ {"version":3,"names":["beforePatchIcon","value","nextState","icon","isString","right","left","set","InputIconController","InputController","constructor","component","name","host","super","this","validateIcon","objectObjectHandler","parseJson","e","watchValidator","isIcon","Set","hooks","beforePatch","required","componentWillLoad","_icon"],"sources":["./src/components/@deprecated/input/controller-icon.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\nimport { Stringified } from '../../../types/common';\nimport { KoliBriHorizontalIcon } from '../../../types/icon';\nimport { isIcon } from '../../../types/props/icon';\nimport { objectObjectHandler, parseJson, watchValidator } from '../../../utils/prop.validators';\nimport { isString } from '../../../utils/validator';\nimport { InputController } from './controller';\nimport { Props, Watches } from './types-icon';\n\nconst beforePatchIcon = (value: unknown, nextState: Map<string, unknown>): void => {\n\tconst icon = value as KoliBriHorizontalIcon;\n\tif (typeof icon === 'object' && icon !== null) {\n\t\tif (isString(icon.right, 1)) {\n\t\t\ticon.right = { icon: icon.right as string };\n\t\t}\n\t\tif (isString(icon.left, 1)) {\n\t\t\ticon.left = { icon: icon.left as string };\n\t\t}\n\t\tnextState.set('_icon', icon);\n\t}\n};\n\nexport class InputIconController extends InputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcon>): void {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriHorizontalIcon>(value as string);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t}\n\t\t\twatchValidator(\n\t\t\t\tthis.component,\n\t\t\t\t'_icon',\n\t\t\t\t(value): boolean => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\ttypeof value === 'object' && value !== null && (isString(value.left, 1) || isIcon(value.left) || isString(value.right, 1) || isIcon(value.right))\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\tnew Set(['KoliBriHorizontalIcon']),\n\t\t\t\tvalue,\n\t\t\t\t{\n\t\t\t\t\thooks: {\n\t\t\t\t\t\tbeforePatch: beforePatchIcon,\n\t\t\t\t\t},\n\t\t\t\t\trequired: true,\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateIcon(this.component._icon);\n\t}\n}\n"],"mappings":";;;4LASA,MAAMA,EAAkB,CAACC,EAAgBC,KACxC,MAAMC,EAAOF,EACb,UAAWE,IAAS,UAAYA,IAAS,KAAM,CAC9C,GAAIC,EAASD,EAAKE,MAAO,GAAI,CAC5BF,EAAKE,MAAQ,CAAEF,KAAMA,EAAKE,M,CAE3B,GAAID,EAASD,EAAKG,KAAM,GAAI,CAC3BH,EAAKG,KAAO,CAAEH,KAAMA,EAAKG,K,CAE1BJ,EAAUK,IAAI,QAASJ,E,SAIZK,UAA4BC,EAGxCC,YAAmBC,EAA8CC,EAAcC,GAC9EC,MAAMH,EAAWC,EAAMC,GACvBE,KAAKJ,UAAYA,C,CAGXK,aAAaf,GACnBgB,EAAoBhB,GAAO,KAC1B,IACCA,EAAQiB,EAAiCjB,E,CAExC,MAAOkB,G,CAGTC,EACCL,KAAKJ,UACL,SACCV,UAEQA,IAAU,UAAYA,IAAU,OAASG,EAASH,EAAMK,KAAM,IAAMe,EAAOpB,EAAMK,OAASF,EAASH,EAAMI,MAAO,IAAMgB,EAAOpB,EAAMI,SAG5I,IAAIiB,IAAI,CAAC,0BACTrB,EACA,CACCsB,MAAO,CACNC,YAAaxB,GAEdyB,SAAU,MAEX,G,CAIIC,oBACNZ,MAAMY,oBACNX,KAAKC,aAAaD,KAAKJ,UAAUgB,M"}
@@ -1 +1 @@
1
- {"version":3,"names":["ModalService","constructor","this","lockedElements","Map","modalStack","lockElement","htmlElement","tabIndex","getAttribute","HTMLAnchorElement","HTMLButtonElement","HTMLInputElement","HTMLSelectElement","HTMLTextAreaElement","dataset","kolModal","undefined","set","setAttribute","style","userSelect","unlockElement","value","removeAttribute","delete","unlockLockedElements","forEach","bind","lockFocus","hostElement","excludeElement","HTMLElement","ShadowRoot","shadowRoot","i","children","length","renderModalIfExists","activeElement","has","get","timeout","setTimeout","clearTimeout","focus","size","modalKeys","Array","from","keys","modalRef","_value","display","getDocument","body","maxHeight","overflow","openModal","Log","warn","closeModal","_a","ToasterService","document","queue","Set","isOpen","toastElement","createElement","_on","onClose","next","values","showToast","insertBefore","firstChild","enqueue","data","add","heading","type","innerText","description","WINDOW","DOCUMENT","configKoliBri","window","Window","Document","console","getWindow","META_CONFIG","DEV_MODE","EXPERIMENTAL_MODE","COLOR_CONTRAST_ANALYSIS","getDevMode","getExperimalMode","getColorContrastAnalysis","static","msg","isArray","classifier","shield","label","options","handleClassifier","overwriteStyle","forceLog","debug","getShield","mapToArray","info","trace","error","Error","initMeta","meta","querySelector","hasAttribute","includes","KoliBri","getKoliBri","initKoliBri","Modal","Toaster","Object","defineProperty","renderDevAdvice","adviceShown","nonce","Math","floor","random","toString","processEnv"],"sources":["./src/components/modal/service.ts","./src/components/toast/toaster.tsx","./src/utils/dev.utils.ts"],"sourcesContent":["import { getDocument, Log } from '../../utils/dev.utils';\n\ntype ModalContext = {\n\tactiveElement?: HTMLElement;\n};\n\ntype LockedElementContext = {\n\ttabIndex?: string;\n};\n\n/**\n * The modal service is only working client-side!\n */\nexport class ModalService {\n\tprivate lockedElements: Map<HTMLElement, LockedElementContext> = new Map();\n\tprivate modalStack: Map<HTMLElement, ModalContext> = new Map();\n\n\tprivate lockElement(htmlElement: HTMLElement) {\n\t\tconst tabIndex: string | null = htmlElement.getAttribute('tabindex');\n\t\tif (\n\t\t\thtmlElement instanceof HTMLAnchorElement ||\n\t\t\thtmlElement instanceof HTMLButtonElement ||\n\t\t\thtmlElement instanceof HTMLInputElement ||\n\t\t\thtmlElement instanceof HTMLSelectElement ||\n\t\t\thtmlElement instanceof HTMLTextAreaElement ||\n\t\t\ttypeof tabIndex === 'string' ||\n\t\t\thtmlElement.dataset.kolModal !== undefined\n\t\t) {\n\t\t\tif (typeof tabIndex === 'string') {\n\t\t\t\tthis.lockedElements.set(htmlElement, {\n\t\t\t\t\ttabIndex,\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.lockedElements.set(htmlElement, {});\n\t\t\t}\n\t\t\thtmlElement.setAttribute('tabindex', '-1');\n\t\t\thtmlElement.setAttribute('aria-hidden', 'true');\n\t\t\thtmlElement.style.userSelect = 'none';\n\t\t}\n\t}\n\n\tprivate unlockElement(value: LockedElementContext, htmlElement: HTMLElement) {\n\t\tif (typeof value.tabIndex === 'string') {\n\t\t\thtmlElement.setAttribute('tabindex', value.tabIndex);\n\t\t} else {\n\t\t\thtmlElement.removeAttribute('tabindex');\n\t\t}\n\t\thtmlElement.removeAttribute('aria-hidden');\n\t\thtmlElement.style.userSelect = 'unset';\n\t\tthis.lockedElements.delete(htmlElement);\n\t}\n\n\tprivate unlockLockedElements(lockedElements: Map<HTMLElement, LockedElementContext>) {\n\t\tlockedElements.forEach(this.unlockElement.bind(this));\n\t}\n\n\tprivate lockFocus(hostElement: HTMLElement | ShadowRoot | null, excludeElement?: HTMLElement) {\n\t\tif (hostElement !== excludeElement && (hostElement instanceof HTMLElement || hostElement instanceof ShadowRoot)) {\n\t\t\tif (hostElement instanceof HTMLElement) {\n\t\t\t\tthis.lockElement(hostElement);\n\t\t\t\tthis.lockFocus(hostElement.shadowRoot, excludeElement);\n\t\t\t}\n\t\t\tfor (let i = 0; i < hostElement.children.length; i++) {\n\t\t\t\tthis.lockFocus(hostElement.children[i] as HTMLElement, excludeElement);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate renderModalIfExists(activeElement?: HTMLElement) {\n\t\tif (activeElement instanceof HTMLElement) {\n\t\t\tif (this.lockedElements.has(activeElement)) {\n\t\t\t\tthis.unlockElement(this.lockedElements.get(activeElement) as LockedElementContext, activeElement);\n\t\t\t}\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\tactiveElement.focus();\n\t\t\t}, 500);\n\t\t}\n\t\tthis.unlockLockedElements(this.lockedElements);\n\t\tif (this.modalStack.size > 0) {\n\t\t\tconst modalKeys = Array.from(this.modalStack.keys());\n\t\t\tconst modalRef = modalKeys[modalKeys.length - 1] as HTMLElement & {\n\t\t\t\t_activeElement: HTMLElement | null; // typo sugger\n\t\t\t};\n\t\t\tthis.modalStack.forEach((_value: ModalContext, htmlElement: HTMLElement) => {\n\t\t\t\tif (modalRef === htmlElement) {\n\t\t\t\t\thtmlElement.style.display = 'inline';\n\t\t\t\t} else {\n\t\t\t\t\thtmlElement.style.display = `none`;\n\t\t\t\t}\n\t\t\t});\n\t\t\tgetDocument().body.style.maxHeight = '100vh';\n\t\t\tgetDocument().body.style.overflow = 'hidden';\n\t\t\tthis.lockFocus(getDocument().body, modalRef);\n\t\t} else {\n\t\t\tgetDocument().body.style.maxHeight = 'unset';\n\t\t\tgetDocument().body.style.overflow = 'unset';\n\t\t}\n\t}\n\n\tpublic openModal(modalRef: HTMLElement, activeElement?: HTMLElement): void {\n\t\tif (modalRef instanceof HTMLElement === false) {\n\t\t\tLog.warn(`[KolModalService] Die DOM-Referenz des Modals ist nicht valide.`);\n\t\t} else {\n\t\t\tthis.modalStack.set(modalRef, {\n\t\t\t\tactiveElement,\n\t\t\t});\n\t\t\tthis.renderModalIfExists();\n\t\t}\n\t}\n\n\tpublic closeModal(modalRef: HTMLElement): void {\n\t\tif (modalRef instanceof HTMLElement === false) {\n\t\t\tLog.warn(`[KolModalService] Die DOM-Referenz des Modals ist nicht valide.`);\n\t\t} else {\n\t\t\tconst activeElement = this.modalStack.get(modalRef)?.activeElement;\n\t\t\tthis.modalStack.delete(modalRef);\n\t\t\tthis.renderModalIfExists(activeElement);\n\t\t}\n\t}\n}\n","import { AlertType } from '../alert/types';\n\ntype Toast = {\n\theading: string;\n\tdescription: string;\n\ttype: AlertType;\n};\n\nexport class ToasterService {\n\tprivate readonly toastElement: HTMLKolToastElement;\n\n\tprivate readonly queue: Set<Toast> = new Set();\n\n\tprivate isOpen = false;\n\n\tconstructor(private readonly document: Document) {\n\t\tthis.toastElement = this.document.createElement('kol-toast');\n\t\tthis.toastElement.setAttribute('_level', '3');\n\t\tthis.toastElement.setAttribute('_show', 'false');\n\t\tthis.toastElement.setAttribute('_show-duration', '-1');\n\t\tthis.toastElement.setAttribute('_has-closer', 'true');\n\t\tthis.toastElement._on = {\n\t\t\tonClose: () => {\n\t\t\t\tconst next = this.queue.values().next();\n\t\t\t\tif (next.value) {\n\t\t\t\t\tthis.queue.delete(next.value as Toast);\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tthis.showToast(next.value as Toast);\n\t\t\t\t\t}, 200);\n\t\t\t\t} else {\n\t\t\t\t\tthis.isOpen = false;\n\t\t\t\t}\n\t\t\t},\n\t\t};\n\t\tthis.document.body.insertBefore(this.toastElement, this.document.body.firstChild);\n\t}\n\n\t/**\n\t * Reiht einen neuen Toast in die Warteschlange ein, um ihn anzuzeigen.\n\t */\n\tpublic enqueue(data: Toast): void {\n\t\tif (this.isOpen) {\n\t\t\tthis.queue.add(data);\n\t\t} else {\n\t\t\tthis.showToast(data);\n\t\t}\n\t}\n\n\tprivate showToast(data: Toast): void {\n\t\tthis.toastElement.setAttribute('_heading', data.heading);\n\t\tthis.toastElement.setAttribute('_show', 'true');\n\t\tthis.toastElement.setAttribute('_type', data.type);\n\t\tthis.toastElement.innerText = data.description;\n\t\tthis.isOpen = true;\n\t}\n}\n","import { ModalService } from '../components/modal/service';\nimport { ToasterService } from '../components/toast/toaster';\nimport { processEnv } from './reuse';\n\nlet WINDOW: Window | null = null;\nlet DOCUMENT: Document | null = null;\n\nexport const configKoliBri = (window: Window): void => {\n\tif (window instanceof Window) {\n\t\tWINDOW = window;\n\t\tif (WINDOW.document instanceof Document) {\n\t\t\tDOCUMENT = window.document;\n\t\t} else {\n\t\t\tconsole.warn(`The given Window has no valid Document.`);\n\t\t}\n\t} else {\n\t\tconsole.warn(`The given Window is not valid.`);\n\t}\n};\n\nexport const getWindow = (): Window => (WINDOW || typeof window === 'undefined' ? (null as unknown as Window) : window);\nexport const getDocument = (): Document => (DOCUMENT || typeof getWindow().document === 'undefined' ? (null as unknown as Document) : getWindow().document);\n\nlet META_CONFIG: string | null = null;\nlet DEV_MODE: boolean | null = null;\nlet EXPERIMENTAL_MODE: boolean | null = null;\nlet COLOR_CONTRAST_ANALYSIS: boolean | null = null;\n\nexport const getDevMode = (): boolean => DEV_MODE === true;\nexport const getExperimalMode = (): boolean => EXPERIMENTAL_MODE === true;\nexport const getColorContrastAnalysis = (): boolean => COLOR_CONTRAST_ANALYSIS === true;\n\ntype LogShield = {\n\tlabel: string;\n\tstyle: string;\n};\n\ntype LogShieldOptions = {\n\tclassifier?: string;\n\tforceLog?: boolean;\n\toverwriteStyle?: string;\n};\n\nexport class Log {\n\tprivate static shield: LogShield = {\n\t\tlabel: '%cKoliBri',\n\t\tstyle: 'color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000',\n\t};\n\n\tprivate static mapToArray(msg: unknown | unknown[]): unknown[] {\n\t\treturn Array.isArray(msg) ? msg : [msg];\n\t}\n\n\tprivate static handleClassifier(classifier?: string): string {\n\t\tif (typeof classifier === 'string' && classifier.length > 0) {\n\t\t\treturn `${Log.shield.label} | ${classifier}`;\n\t\t} else {\n\t\t\treturn Log.shield.label;\n\t\t}\n\t}\n\n\tprivate static getShield(options?: LogShieldOptions): string[] {\n\t\treturn [Log.handleClassifier(options?.classifier), `${Log.shield.style};${options?.overwriteStyle || ''}`];\n\t}\n\n\tpublic static debug(msg: unknown | unknown[], options?: LogShieldOptions): void {\n\t\tif (DEV_MODE || options?.forceLog === true) {\n\t\t\tconsole.debug(...Log.getShield(options), ...Log.mapToArray(msg));\n\t\t}\n\t}\n\n\tpublic static info(msg: unknown | unknown[], options?: LogShieldOptions): void {\n\t\tif (DEV_MODE || options?.forceLog === true) {\n\t\t\tconsole.info(...Log.getShield(options), ...Log.mapToArray(msg));\n\t\t}\n\t}\n\n\tpublic static trace(msg: unknown | unknown[], options?: LogShieldOptions): void {\n\t\tif (DEV_MODE || options?.forceLog === true) {\n\t\t\tconsole.trace(...Log.getShield(options), ...Log.mapToArray(msg));\n\t\t}\n\t}\n\n\tpublic static warn(msg: unknown | unknown[], options?: LogShieldOptions): void {\n\t\tif (DEV_MODE || options?.forceLog === true) {\n\t\t\tconsole.warn(...Log.getShield(options), ...Log.mapToArray(msg));\n\t\t}\n\t}\n\n\tpublic static error(msg: unknown | unknown[], options?: LogShieldOptions): void {\n\t\tif (DEV_MODE || options?.forceLog === true) {\n\t\t\tconsole.error(...Log.getShield(options), ...Log.mapToArray(msg));\n\t\t}\n\t}\n\n\tpublic static throw(msg: unknown | unknown[], options?: LogShieldOptions): void {\n\t\tif (DEV_MODE || options?.forceLog === true) {\n\t\t\tthrow new Error(...Log.getShield(options), ...Log.mapToArray(msg));\n\t\t}\n\t}\n}\n\nconst initMeta = (): void => {\n\tif (DEV_MODE === null && EXPERIMENTAL_MODE === null && COLOR_CONTRAST_ANALYSIS === null) {\n\t\tconst meta = getDocument().querySelector('meta[name=\"kolibri\"]');\n\t\tif (meta && meta.hasAttribute('content')) {\n\t\t\tMETA_CONFIG = meta.getAttribute('content');\n\t\t\tif (typeof META_CONFIG === 'string') {\n\t\t\t\tDEV_MODE = META_CONFIG.includes('dev-mode=true');\n\t\t\t\tEXPERIMENTAL_MODE = META_CONFIG.includes('experimental-mode=true');\n\t\t\t\tCOLOR_CONTRAST_ANALYSIS = META_CONFIG.includes('color-contrast-analysis=true');\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconsole.warn(`You can only initialize DEV_MODE and COLOR_CONTRAST_ANALYSIS once.`);\n\t}\n};\n\nlet KoliBri: Record<string, unknown> | null = null;\nexport const getKoliBri = (): Record<string, unknown> => KoliBri || {};\nexport const initKoliBri = (): void => {\n\tif (KoliBri === null) {\n\t\tKoliBri = getWindow().KoliBri || {};\n\t\tconst Modal = new ModalService();\n\t\tconst Toaster = new ToasterService(getDocument());\n\t\tObject.defineProperty(KoliBri, 'Modal', {\n\t\t\tget: function (): ModalService {\n\t\t\t\treturn Modal;\n\t\t\t},\n\t\t});\n\t\tObject.defineProperty(KoliBri, 'Toaster', {\n\t\t\tget: function (): ToasterService {\n\t\t\t\treturn Toaster;\n\t\t\t},\n\t\t});\n\t\tinitMeta();\n\t\tLog.debug(\n\t\t\t`\n\t,--. ,--. ,--. ,--. ,-----. ,--.\n\t| .' / ,---. | | \\`--' | |) /_ ,--.--. \\`--'\n\t| . ' | .-. | | | ,--. | .-. \\\\ | .--' ,--.\n\t| |\\\\ \\\\ | '-' | | | | | | '--' / | | | |\n\t\\`--' \\`--´ \\`---´ \\`--' \\`--' \\`------´ \\`--' \\`--'\n\t🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io\n\t\t`,\n\t\t\t{\n\t\t\t\tforceLog: true,\n\t\t\t}\n\t\t);\n\t} else {\n\t\tconsole.warn(`You can only initialize KoliBri once.`);\n\t}\n};\nexport { KoliBri };\n\nexport const renderDevAdvice = (): void => {\n\tif (getWindow().KoliBri === undefined) {\n\t\tObject.defineProperty(window, 'KoliBri', {\n\t\t\tget: function () {\n\t\t\t\treturn KoliBri;\n\t\t\t},\n\t\t});\n\t}\n\tif (getKoliBri().adviceShown !== true) {\n\t\tObject.defineProperty(KoliBri, 'adviceShown', {\n\t\t\tget: function () {\n\t\t\t\treturn true;\n\t\t\t},\n\t\t});\n\t\tLog.debug(\n\t\t\t`\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n`\n\t\t);\n\t}\n};\n\nlet nonce = (): string => Math.floor(Math.random() * 16777215).toString(16);\n\nif (processEnv === 'test') {\n\tnonce = (): string => 'nonce';\n}\n\nexport { nonce };\n"],"mappings":";;;8CAaaA,EAAbC,cACSC,KAAAC,eAAyD,IAAIC,IAC7DF,KAAAG,WAA6C,IAAID,G,CAEjDE,YAAYC,GACnB,MAAMC,EAA0BD,EAAYE,aAAa,YACzD,GACCF,aAAuBG,mBACvBH,aAAuBI,mBACvBJ,aAAuBK,kBACvBL,aAAuBM,mBACvBN,aAAuBO,4BAChBN,IAAa,UACpBD,EAAYQ,QAAQC,WAAaC,UAChC,CACD,UAAWT,IAAa,SAAU,CACjCN,KAAKC,eAAee,IAAIX,EAAa,CACpCC,Y,KAEK,CACNN,KAAKC,eAAee,IAAIX,EAAa,G,CAEtCA,EAAYY,aAAa,WAAY,MACrCZ,EAAYY,aAAa,cAAe,QACxCZ,EAAYa,MAAMC,WAAa,M,EAIzBC,cAAcC,EAA6BhB,GAClD,UAAWgB,EAAMf,WAAa,SAAU,CACvCD,EAAYY,aA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,KAC1B,GAAIF,IAAY,KAAM,CACrBA,EAAU9B,IAAY8B,SAAW,GACjC,MAAMG,EAAQ,IAAI5H,EAClB,MAAM6H,EAAU,IAAI9D,EAAeT,KACnCwE,OAAOC,eAAeN,EAAS,QAAS,CACvChF,IAAK,WACJ,OAAOmF,C,IAGTE,OAAOC,eAAeN,EAAS,UAAW,CACzChF,IAAK,WACJ,OAAOoF,C,IAGTT,IACAzD,EAAIkD,MACH,wWAQA,CACCD,SAAU,M,KAGN,CACNlB,QAAQ9B,KAAK,wC,SAKFoE,EAAkB,KAC9B,GAAIrC,IAAY8B,UAAYxG,UAAW,CACtC6G,OAAOC,eAAexC,OAAQ,UAAW,CACxC9C,IAAK,WACJ,OAAOgF,C,IAIV,GAAIC,IAAaO,cAAgB,KAAM,CACtCH,OAAOC,eAAeN,EAAS,cAAe,CAC7ChF,IAAK,WACJ,OAAO,I,IAGTkB,EAAIkD,MACH,0Q,OAUCqB,EAAQ,IAAcC,KAAKC,MAAMD,KAAKE,SAAW,UAAUC,SAAS,IAExE,GAAIC,IAAe,OAAQ,CAC1BL,EAAQ,IAAc,O"}
1
+ {"version":3,"names":["ModalService","constructor","this","lockedElements","Map","modalStack","lockElement","htmlElement","tabIndex","getAttribute","HTMLAnchorElement","HTMLButtonElement","HTMLInputElement","HTMLSelectElement","HTMLTextAreaElement","dataset","kolModal","undefined","set","setAttribute","style","userSelect","unlockElement","value","removeAttribute","delete","unlockLockedElements","forEach","bind","lockFocus","hostElement","excludeElement","HTMLElement","ShadowRoot","shadowRoot","i","children","length","renderModalIfExists","activeElement","has","get","timeout","setTimeout","clearTimeout","focus","size","modalKeys","Array","from","keys","modalRef","_value","display","getDocument","body","maxHeight","overflow","openModal","Log","warn","closeModal","_a","ToasterService","document","queue","Set","isOpen","toastElement","createElement","_on","onClose","next","values","showToast","insertBefore","firstChild","enqueue","data","add","heading","type","innerText","description","WINDOW","DOCUMENT","configKoliBri","window","Window","Document","console","getWindow","META_CONFIG","DEV_MODE","EXPERIMENTAL_MODE","COLOR_CONTRAST_ANALYSIS","getDevMode","getExperimalMode","getColorContrastAnalysis","static","msg","isArray","classifier","shield","label","options","handleClassifier","overwriteStyle","forceLog","debug","getShield","mapToArray","info","trace","error","Error","initMeta","meta","querySelector","hasAttribute","includes","KoliBri","getKoliBri","initKoliBri","Modal","Toaster","Object","defineProperty","renderDevAdvice","adviceShown","nonce","Math","floor","random","toString","processEnv"],"sources":["./src/components/modal/service.ts","./src/components/toast/toaster.tsx","./src/utils/dev.utils.ts"],"sourcesContent":["import { getDocument, Log } from '../../utils/dev.utils';\n\ntype ModalContext = {\n\tactiveElement?: HTMLElement;\n};\n\ntype LockedElementContext = {\n\ttabIndex?: string;\n};\n\n/**\n * The modal service is only working client-side!\n */\nexport class ModalService {\n\tprivate lockedElements: Map<HTMLElement, LockedElementContext> = new Map();\n\tprivate modalStack: Map<HTMLElement, ModalContext> = new Map();\n\n\tprivate lockElement(htmlElement: HTMLElement) {\n\t\tconst tabIndex: string | null = htmlElement.getAttribute('tabindex');\n\t\tif (\n\t\t\thtmlElement instanceof HTMLAnchorElement ||\n\t\t\thtmlElement instanceof HTMLButtonElement ||\n\t\t\thtmlElement instanceof HTMLInputElement ||\n\t\t\thtmlElement instanceof HTMLSelectElement ||\n\t\t\thtmlElement instanceof HTMLTextAreaElement ||\n\t\t\ttypeof tabIndex === 'string' ||\n\t\t\thtmlElement.dataset.kolModal !== undefined\n\t\t) {\n\t\t\tif (typeof tabIndex === 'string') {\n\t\t\t\tthis.lockedElements.set(htmlElement, {\n\t\t\t\t\ttabIndex,\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.lockedElements.set(htmlElement, {});\n\t\t\t}\n\t\t\thtmlElement.setAttribute('tabindex', '-1');\n\t\t\thtmlElement.setAttribute('aria-hidden', 'true');\n\t\t\thtmlElement.style.userSelect = 'none';\n\t\t}\n\t}\n\n\tprivate unlockElement(value: LockedElementContext, htmlElement: HTMLElement) {\n\t\tif (typeof value.tabIndex === 'string') {\n\t\t\thtmlElement.setAttribute('tabindex', value.tabIndex);\n\t\t} else {\n\t\t\thtmlElement.removeAttribute('tabindex');\n\t\t}\n\t\thtmlElement.removeAttribute('aria-hidden');\n\t\thtmlElement.style.userSelect = 'unset';\n\t\tthis.lockedElements.delete(htmlElement);\n\t}\n\n\tprivate unlockLockedElements(lockedElements: Map<HTMLElement, LockedElementContext>) {\n\t\tlockedElements.forEach(this.unlockElement.bind(this));\n\t}\n\n\tprivate lockFocus(hostElement: HTMLElement | ShadowRoot | null, excludeElement?: HTMLElement) {\n\t\tif (hostElement !== excludeElement && (hostElement instanceof HTMLElement || hostElement instanceof ShadowRoot)) {\n\t\t\tif (hostElement instanceof HTMLElement) {\n\t\t\t\tthis.lockElement(hostElement);\n\t\t\t\tthis.lockFocus(hostElement.shadowRoot, excludeElement);\n\t\t\t}\n\t\t\tfor (let i = 0; i < hostElement.children.length; i++) {\n\t\t\t\tthis.lockFocus(hostElement.children[i] as HTMLElement, excludeElement);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate renderModalIfExists(activeElement?: HTMLElement) {\n\t\tif (activeElement instanceof HTMLElement) {\n\t\t\tif (this.lockedElements.has(activeElement)) {\n\t\t\t\tthis.unlockElement(this.lockedElements.get(activeElement) as LockedElementContext, activeElement);\n\t\t\t}\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\tactiveElement.focus();\n\t\t\t}, 500);\n\t\t}\n\t\tthis.unlockLockedElements(this.lockedElements);\n\t\tif (this.modalStack.size > 0) {\n\t\t\tconst modalKeys = Array.from(this.modalStack.keys());\n\t\t\tconst modalRef = modalKeys[modalKeys.length - 1] as HTMLElement & {\n\t\t\t\t_activeElement: HTMLElement | null; // typo sugger\n\t\t\t};\n\t\t\tthis.modalStack.forEach((_value: ModalContext, htmlElement: HTMLElement) => {\n\t\t\t\tif (modalRef === htmlElement) {\n\t\t\t\t\thtmlElement.style.display = 'inline';\n\t\t\t\t} else {\n\t\t\t\t\thtmlElement.style.display = `none`;\n\t\t\t\t}\n\t\t\t});\n\t\t\tgetDocument().body.style.maxHeight = '100vh';\n\t\t\tgetDocument().body.style.overflow = 'hidden';\n\t\t\tthis.lockFocus(getDocument().body, modalRef);\n\t\t} else {\n\t\t\tgetDocument().body.style.maxHeight = 'unset';\n\t\t\tgetDocument().body.style.overflow = 'unset';\n\t\t}\n\t}\n\n\tpublic openModal(modalRef: HTMLElement, activeElement?: HTMLElement): void {\n\t\tif (modalRef instanceof HTMLElement === false) {\n\t\t\tLog.warn(`[KolModalService] Die DOM-Referenz des Modals ist nicht valide.`);\n\t\t} else {\n\t\t\tthis.modalStack.set(modalRef, {\n\t\t\t\tactiveElement,\n\t\t\t});\n\t\t\tthis.renderModalIfExists();\n\t\t}\n\t}\n\n\tpublic closeModal(modalRef: HTMLElement): void {\n\t\tif (modalRef instanceof HTMLElement === false) {\n\t\t\tLog.warn(`[KolModalService] Die DOM-Referenz des Modals ist nicht valide.`);\n\t\t} else {\n\t\t\tconst activeElement = this.modalStack.get(modalRef)?.activeElement;\n\t\t\tthis.modalStack.delete(modalRef);\n\t\t\tthis.renderModalIfExists(activeElement);\n\t\t}\n\t}\n}\n","import { AlertType } from '../alert/types';\n\ntype Toast = {\n\theading: string;\n\tdescription: string;\n\ttype: AlertType;\n};\n\nexport class ToasterService {\n\tprivate readonly toastElement: HTMLKolToastElement;\n\n\tprivate readonly queue: Set<Toast> = new Set();\n\n\tprivate isOpen = false;\n\n\tconstructor(private readonly document: Document) {\n\t\tthis.toastElement = this.document.createElement('kol-toast');\n\t\tthis.toastElement.setAttribute('_level', '3');\n\t\tthis.toastElement.setAttribute('_show', 'false');\n\t\tthis.toastElement.setAttribute('_show-duration', '-1');\n\t\tthis.toastElement.setAttribute('_has-closer', 'true');\n\t\tthis.toastElement._on = {\n\t\t\tonClose: () => {\n\t\t\t\tconst next = this.queue.values().next();\n\t\t\t\tif (next.value) {\n\t\t\t\t\tthis.queue.delete(next.value as Toast);\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tthis.showToast(next.value as Toast);\n\t\t\t\t\t}, 200);\n\t\t\t\t} else {\n\t\t\t\t\tthis.isOpen = false;\n\t\t\t\t}\n\t\t\t},\n\t\t};\n\t\tthis.document.body.insertBefore(this.toastElement, this.document.body.firstChild);\n\t}\n\n\t/**\n\t * Reiht einen neuen Toast in die Warteschlange ein, um ihn anzuzeigen.\n\t */\n\tpublic enqueue(data: Toast): void {\n\t\tif (this.isOpen) {\n\t\t\tthis.queue.add(data);\n\t\t} else {\n\t\t\tthis.showToast(data);\n\t\t}\n\t}\n\n\tprivate showToast(data: Toast): void {\n\t\tthis.toastElement.setAttribute('_heading', data.heading);\n\t\tthis.toastElement.setAttribute('_show', 'true');\n\t\tthis.toastElement.setAttribute('_type', data.type);\n\t\tthis.toastElement.innerText = data.description;\n\t\tthis.isOpen = true;\n\t}\n}\n","import { ModalService } from '../components/modal/service';\nimport { ToasterService } from '../components/toast/toaster';\nimport { processEnv } from './reuse';\n\nlet WINDOW: Window | null = null;\nlet DOCUMENT: Document | null = null;\n\nexport const configKoliBri = (window: Window): void => {\n\tif (window instanceof Window) {\n\t\tWINDOW = window;\n\t\tif (WINDOW.document instanceof Document) {\n\t\t\tDOCUMENT = window.document;\n\t\t} else {\n\t\t\tconsole.warn(`The given Window has no valid Document.`);\n\t\t}\n\t} else {\n\t\tconsole.warn(`The given Window is not valid.`);\n\t}\n};\n\nexport const getWindow = (): Window => (WINDOW || typeof window === 'undefined' ? (null as unknown as Window) : window);\nexport const getDocument = (): Document => (DOCUMENT || typeof getWindow().document === 'undefined' ? (null as unknown as Document) : getWindow().document);\n\nlet META_CONFIG: string | null = null;\nlet DEV_MODE: boolean | null = null;\nlet EXPERIMENTAL_MODE: boolean | null = null;\nlet COLOR_CONTRAST_ANALYSIS: boolean | null = null;\n\nexport const getDevMode = (): boolean => DEV_MODE === true;\nexport const getExperimalMode = (): boolean => EXPERIMENTAL_MODE === true;\nexport const getColorContrastAnalysis = (): boolean => COLOR_CONTRAST_ANALYSIS === true;\n\ntype LogShield = {\n\tlabel: string;\n\tstyle: string;\n};\n\ntype LogShieldOptions = {\n\tclassifier?: string;\n\tforceLog?: boolean;\n\toverwriteStyle?: string;\n};\n\nexport class Log {\n\tprivate static shield: LogShield = {\n\t\tlabel: '%cKoliBri',\n\t\tstyle: 'color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000',\n\t};\n\n\tprivate static mapToArray(msg: unknown | unknown[]): unknown[] {\n\t\treturn Array.isArray(msg) ? msg : [msg];\n\t}\n\n\tprivate static handleClassifier(classifier?: string): string {\n\t\tif (typeof classifier === 'string' && classifier.length > 0) {\n\t\t\treturn `${Log.shield.label} | ${classifier}`;\n\t\t} else {\n\t\t\treturn Log.shield.label;\n\t\t}\n\t}\n\n\tprivate static getShield(options?: LogShieldOptions): string[] {\n\t\treturn [Log.handleClassifier(options?.classifier), `${Log.shield.style};${options?.overwriteStyle || ''}`];\n\t}\n\n\tpublic static debug(msg: unknown | unknown[], options?: LogShieldOptions): void {\n\t\tif (DEV_MODE || options?.forceLog === true) {\n\t\t\tconsole.debug(...Log.getShield(options), ...Log.mapToArray(msg));\n\t\t}\n\t}\n\n\tpublic static info(msg: unknown | unknown[], options?: LogShieldOptions): void {\n\t\tif (DEV_MODE || options?.forceLog === true) {\n\t\t\tconsole.info(...Log.getShield(options), ...Log.mapToArray(msg));\n\t\t}\n\t}\n\n\tpublic static trace(msg: unknown | unknown[], options?: LogShieldOptions): void {\n\t\tif (DEV_MODE || options?.forceLog === true) {\n\t\t\tconsole.trace(...Log.getShield(options), ...Log.mapToArray(msg));\n\t\t}\n\t}\n\n\tpublic static warn(msg: unknown | unknown[], options?: LogShieldOptions): void {\n\t\tif (DEV_MODE || options?.forceLog === true) {\n\t\t\tconsole.warn(...Log.getShield(options), ...Log.mapToArray(msg));\n\t\t}\n\t}\n\n\tpublic static error(msg: unknown | unknown[], options?: LogShieldOptions): void {\n\t\tif (DEV_MODE || options?.forceLog === true) {\n\t\t\tconsole.error(...Log.getShield(options), ...Log.mapToArray(msg));\n\t\t}\n\t}\n\n\tpublic static throw(msg: unknown | unknown[], options?: LogShieldOptions): void {\n\t\tif (DEV_MODE || options?.forceLog === true) {\n\t\t\tthrow new Error(...Log.getShield(options), ...Log.mapToArray(msg));\n\t\t}\n\t}\n}\n\nconst initMeta = (): void => {\n\tif (DEV_MODE === null && EXPERIMENTAL_MODE === null && COLOR_CONTRAST_ANALYSIS === null) {\n\t\tconst meta = getDocument().querySelector('meta[name=\"kolibri\"]');\n\t\tif (meta && meta.hasAttribute('content')) {\n\t\t\tMETA_CONFIG = meta.getAttribute('content');\n\t\t\tif (typeof META_CONFIG === 'string') {\n\t\t\t\tDEV_MODE = META_CONFIG.includes('dev-mode=true');\n\t\t\t\tEXPERIMENTAL_MODE = META_CONFIG.includes('experimental-mode=true');\n\t\t\t\tCOLOR_CONTRAST_ANALYSIS = META_CONFIG.includes('color-contrast-analysis=true');\n\t\t\t}\n\t\t}\n\t} else {\n\t\tconsole.warn(`You can only initialize DEV_MODE and COLOR_CONTRAST_ANALYSIS once.`);\n\t}\n};\n\nlet KoliBri: Record<string, unknown> | null = null;\nexport const getKoliBri = (): Record<string, unknown> => KoliBri || {};\nexport const initKoliBri = (): void => {\n\tif (KoliBri === null) {\n\t\tKoliBri = getWindow().KoliBri || {};\n\t\tconst Modal = new ModalService();\n\t\tconst Toaster = new ToasterService(getDocument());\n\t\tObject.defineProperty(KoliBri, 'Modal', {\n\t\t\tget: function (): ModalService {\n\t\t\t\treturn Modal;\n\t\t\t},\n\t\t});\n\t\tObject.defineProperty(KoliBri, 'Toaster', {\n\t\t\tget: function (): ToasterService {\n\t\t\t\treturn Toaster;\n\t\t\t},\n\t\t});\n\t\tinitMeta();\n\t\tLog.debug(\n\t\t\t`\n\t,--. ,--. ,--. ,--. ,-----. ,--.\n\t| .' / ,---. | | \\`--' | |) /_ ,--.--. \\`--'\n\t| . ' | .-. | | | ,--. | .-. \\\\ | .--' ,--.\n\t| |\\\\ \\\\ | '-' | | | | | | '--' / | | | |\n\t\\`--' \\`--´ \\`---´ \\`--' \\`--' \\`------´ \\`--' \\`--'\n\t🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io\n\t\t`,\n\t\t\t{\n\t\t\t\tforceLog: true,\n\t\t\t}\n\t\t);\n\t} else {\n\t\tconsole.warn(`You can only initialize KoliBri once.`);\n\t}\n};\nexport { KoliBri };\n\nexport const renderDevAdvice = (): void => {\n\tif (getWindow().KoliBri === undefined) {\n\t\tObject.defineProperty(window, 'KoliBri', {\n\t\t\tget: function () {\n\t\t\t\treturn KoliBri;\n\t\t\t},\n\t\t});\n\t}\n\tif (getKoliBri().adviceShown !== true) {\n\t\tObject.defineProperty(KoliBri, 'adviceShown', {\n\t\t\tget: function () {\n\t\t\t\treturn true;\n\t\t\t},\n\t\t});\n\t\tLog.debug(\n\t\t\t`\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n`\n\t\t);\n\t}\n};\n\nlet nonce = (): string => Math.floor(Math.random() * 16777215).toString(16);\n\nif (processEnv === 'test') {\n\tnonce = (): string => 'nonce';\n}\n\nexport { nonce };\n"],"mappings":";;;8CAaaA,EAAbC,cACSC,KAAAC,eAAyD,IAAIC,IAC7DF,KAAAG,WAA6C,IAAID,G,CAEjDE,YAAYC,GACnB,MAAMC,EAA0BD,EAAYE,aAAa,YACzD,GACCF,aAAuBG,mBACvBH,aAAuBI,mBACvBJ,aAAuBK,kBACvBL,aAAuBM,mBACvBN,aAAuBO,4BAChBN,IAAa,UACpBD,EAAYQ,QAAQC,WAAaC,UAChC,CACD,UAAWT,IAAa,SAAU,CACjCN,KAAKC,eAAee,IAAIX,EAAa,CACpCC,Y,KAEK,CACNN,KAAKC,eAAee,IAAIX,EAAa,G,CAEtCA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C1B,EAAoBF,EAAY4B,SAAS,0BACzCzB,EAA0BH,EAAY4B,SAAS,+B,OAG3C,CACN9B,QAAQ9B,KAAK,qE,OAIX6D,EAA0C,K,MACjCC,EAAa,IAA+BD,GAAW,G,MACvDE,EAAc,KAC1B,GAAIF,IAAY,KAAM,CACrBA,EAAU9B,IAAY8B,SAAW,GACjC,MAAMG,EAAQ,IAAI5H,EAClB,MAAM6H,EAAU,IAAI9D,EAAeT,KACnCwE,OAAOC,eAAeN,EAAS,QAAS,CACvChF,IAAK,WACJ,OAAOmF,C,IAGTE,OAAOC,eAAeN,EAAS,UAAW,CACzChF,IAAK,WACJ,OAAOoF,C,IAGTT,IACAzD,EAAIkD,MACH,wWAQA,CACCD,SAAU,M,KAGN,CACNlB,QAAQ9B,KAAK,wC,SAKFoE,EAAkB,KAC9B,GAAIrC,IAAY8B,UAAYxG,UAAW,CACtC6G,OAAOC,eAAexC,OAAQ,UAAW,CACxC9C,IAAK,WACJ,OAAOgF,C,IAIV,GAAIC,IAAaO,cAAgB,KAAM,CACtCH,OAAOC,eAAeN,EAAS,cAAe,CAC7ChF,IAAK,WACJ,OAAO,I,IAGTkB,EAAIkD,MACH,0Q,OAUCqB,EAAQ,IAAcC,KAAKC,MAAMD,KAAKE,SAAW,UAAUC,SAAS,IAExE,GAAIC,IAAe,OAAQ,CAC1BL,EAAQ,IAAc,O"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ function t(t){return t.split("-")[1]}function n(t){return"y"===t?"height":"width"}function e(t){return t.split("-")[0]}function o(t){return["top","bottom"].includes(e(t))?"x":"y"}function c(i,r,l){let{reference:c,floating:s}=i;const a=c.x+c.width/2-s.width/2,f=c.y+c.height/2-s.height/2,u=o(r),d=n(u),p=c[d]/2-s[d]/2,m="x"===u;let g;switch(e(r)){case"top":g={x:a,y:c.y-s.height};break;case"bottom":g={x:a,y:c.y+c.height};break;case"right":g={x:c.x+c.width,y:f};break;case"left":g={x:c.x-s.width,y:f};break;default:g={x:c.x,y:c.y}}switch(t(r)){case"start":g[u]-=p*(l&&m?-1:1);break;case"end":g[u]+=p*(l&&m?-1:1)}return g}const r=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,s=r.filter(Boolean),a=await(null==l.isRTL?void 0:l.isRTL(e));let f=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=c(f,o,a),p=o,m={},g=0;for(let n=0;n<s.length;n++){const{name:r,fn:h}=s[n],{x:y,y:x,data:w,reset:v}=await h({x:u,y:d,initialPlacement:o,placement:p,strategy:i,middlewareData:m,rects:f,platform:l,elements:{reference:t,floating:e}});u=null!=y?y:u,d=null!=x?x:d,m={...m,[r]:{...m[r],...w}},v&&g<=50&&(g++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(f=!0===v.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:u,y:d}=c(f,p,a))),n=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:m}};function i(t){return{top:0,right:0,bottom:0,left:0,...t}}function s(t){return"number"!=typeof t?i(t):{top:t,right:t,bottom:t,left:t}}function l(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function a(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:c,elements:a,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=e,h=s(g),y=a[m?"floating"===p?"reference":"floating":p],x=l(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(y)))||n?y:y.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:f})),w="floating"===p?{...c.floating,x:o,y:i}:c.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),b=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},T=l(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:w,offsetParent:v,strategy:f}):w);return{top:(x.top-T.top+h.top)/b.y,bottom:(T.bottom-x.bottom+h.bottom)/b.y,left:(x.left-T.left+h.left)/b.x,right:(T.right-x.right+h.right)/b.x}}const f=Math.min,u=Math.max;function d(t,e,n){return u(t,f(e,n))}const y=e=>({name:"arrow",options:e,async fn(i){const{element:r,padding:l=0}=e||{},{x:c,y:a,placement:f,rects:u,platform:p,elements:m}=i;if(null==r)return{};const g=s(l),h={x:c,y:a},y=o(f),x=n(y),w=await p.getDimensions(r),v="y"===y,b=v?"top":"left",T=v?"bottom":"right",R=v?"clientHeight":"clientWidth",C=u.reference[x]+u.reference[y]-h[y]-u.floating[x],L=h[y]-u.reference[y],D=await(null==p.getOffsetParent?void 0:p.getOffsetParent(r));let E=D?D[R]:0;E&&await(null==p.isElement?void 0:p.isElement(D))||(E=m.floating[R]||u.floating[x]);const A=C/2-L/2,S=g[b],B=E-w[x]-g[T],P=E/2-w[x]/2+A,k=d(S,P,B),M=null!=t(f)&&P!=k&&u.reference[x]/2-(P<S?g[b]:g[T])-w[x]/2<0;return{[y]:h[y]-(M?P<S?S-P:B-P:0),data:{[y]:k,centerOffset:P-k}}}}),m={left:"right",right:"left",bottom:"top",top:"bottom"};function p(t){return t.replace(/left|right|bottom|top/g,(t=>m[t]))}function x(e,i,r){void 0===r&&(r=!1);const l=t(e),c=o(e),s=n(c);let a="x"===c?l===(r?"end":"start")?"right":"left":"start"===l?"bottom":"top";return i.reference[s]>i.floating[s]&&(a=p(a)),{main:a,cross:p(a)}}const h={start:"end",end:"start"};function g(t){return t.replace(/start|end/g,(t=>h[t]))}function w(t){const e=p(t);return[g(t),e,g(e)]}function b(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}function v(n,o,i,r){const l=t(n);let c=b(e(n),"start"===i,r);return l&&(c=c.map((t=>t+"-"+l)),o&&(c=c.concat(c.map(g)))),c}const A=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var o;const{placement:i,middlewareData:r,rects:l,initialPlacement:c,platform:s,elements:f}=n,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:y=!0,...b}=t,T=e(i),R=e(c)===c,C=await(null==s.isRTL?void 0:s.isRTL(f.floating)),L=m||(R||!y?[p(c)]:w(c));m||"none"===h||L.push(...v(c,y,h,C));const D=[c,...L],E=await a(n,b),A=[];let S=(null==(o=r.flip)?void 0:o.overflows)||[];if(u&&A.push(E[T]),d){const{main:t,cross:e}=x(i,l,C);A.push(E[t],E[e])}if(S=[...S,{placement:i,overflows:A}],!A.every((t=>t<=0))){var B,P;const t=((null==(B=r.flip)?void 0:B.index)||0)+1,e=D[t];if(e)return{data:{index:t,overflows:S},reset:{placement:e}};let n=null==(P=S.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:P.placement;if(!n)switch(g){case"bestFit":{var k;const t=null==(k=S.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:k[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}};async function k(n,i){const{placement:r,platform:l,elements:c}=n,s=await(null==l.isRTL?void 0:l.isRTL(c.floating)),a=e(r),f=t(r),u="x"===o(r),d=["left","top"].includes(a)?-1:1,p=s&&u?-1:1,m="function"==typeof i?i(n):i;let{mainAxis:g,crossAxis:h,alignmentAxis:y}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return f&&"number"==typeof y&&(h="end"===f?-1*y:y),u?{x:h*p,y:g*d}:{x:g*d,y:h*p}}const S=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:o}=e,i=await k(e,t);return{x:n+i.x,y:o+i.y,data:i}}}};function R(t){return"x"===t?"y":"x"}const P=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:i,y:r,placement:l}=n,{mainAxis:c=!0,crossAxis:s=!1,limiter:f={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...u}=t,p={x:i,y:r},m=await a(n,u),g=o(e(l)),h=R(g);let y=p[g],x=p[h];if(c){const t="y"===g?"bottom":"right";y=d(y+m["y"===g?"top":"left"],y,y-m[t])}if(s){const t="y"===h?"bottom":"right";x=d(x+m["y"===h?"top":"left"],x,x-m[t])}const w=f.fn({...n,[g]:y,[h]:x});return{...w,data:{x:w.x-i,y:w.y-r}}}}};function C(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function D(t){return C(t).getComputedStyle(t)}function F(t){return t instanceof C(t).Node}function M(t){return F(t)?(t.nodeName||"").toLowerCase():""}function T(t){return t instanceof C(t).HTMLElement}function B(t){return t instanceof C(t).Element}function L(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof C(t).ShadowRoot||t instanceof ShadowRoot}function E(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=D(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function O(t){return["table","td","th"].includes(M(t))}function N(t){const e=j(),n=D(t);return"none"!==n.transform||"none"!==n.perspective||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function j(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function H(t){return["html","body","#document"].includes(M(t))}const V=Math.min,W=Math.max,X=Math.round;function Y(t){const e=D(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=T(t),r=i?t.offsetWidth:n,l=i?t.offsetHeight:o,c=X(n)!==r||X(o)!==l;return c&&(n=r,o=l),{width:n,height:o,fallback:c}}function _(t){return B(t)?t:t.contextElement}const q={x:1,y:1};function z(t){const e=_(t);if(!T(e))return q;const n=e.getBoundingClientRect(),{width:o,height:i,fallback:r}=Y(e);let l=(r?X(n.width):n.width)/o,c=(r?X(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}const G={x:0,y:0};function I(t,e,n){var o,i;if(void 0===e&&(e=!0),!j())return G;const r=t?C(t):window;return!n||e&&n!==r?G:{x:(null==(o=r.visualViewport)?void 0:o.offsetLeft)||0,y:(null==(i=r.visualViewport)?void 0:i.offsetTop)||0}}function J(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=_(t);let c=q;e&&(o?B(o)&&(c=z(o)):c=z(t));const s=I(r,n,o);let a=(i.left+s.x)/c.x,f=(i.top+s.y)/c.y,u=i.width/c.x,d=i.height/c.y;if(r){const t=C(r),e=o&&B(o)?C(o):o;let n=t.frameElement;for(;n&&o&&e!==t;){const t=z(n),e=n.getBoundingClientRect(),o=getComputedStyle(n);e.x+=(n.clientLeft+parseFloat(o.paddingLeft))*t.x,e.y+=(n.clientTop+parseFloat(o.paddingTop))*t.y,a*=t.x,f*=t.y,u*=t.x,d*=t.y,a+=e.x,f+=e.y,n=C(n).frameElement}}return l({width:u,height:d,x:a,y:f})}function K(t){return((F(t)?t.ownerDocument:t.document)||window.document).documentElement}function Q(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function U(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=T(n),r=K(n);if(n===r)return e;let l={scrollLeft:0,scrollTop:0},c={x:1,y:1};const s={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==M(n)||E(r))&&(l=Q(n)),T(n))){const t=J(n);c=z(n),s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-l.scrollLeft*c.x+s.x,y:e.y*c.y-l.scrollTop*c.y+s.y}}function Z(t){return J(K(t)).left+Q(t).scrollLeft}function $(t){const e=K(t),n=Q(t),o=t.ownerDocument.body,i=W(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=W(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+Z(t);const c=-n.scrollTop;return"rtl"===D(o).direction&&(l+=W(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:c}}function tt(t){if("html"===M(t))return t;const e=t.assignedSlot||t.parentNode||L(t)&&t.host||K(t);return L(e)?e.host:e}function nt(t){const e=tt(t);return H(e)?e.ownerDocument.body:T(e)&&E(e)?e:nt(e)}function et(t,e){var n;void 0===e&&(e=[]);const o=nt(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),r=C(o);return i?e.concat(r,r.visualViewport||[],E(o)?o:[]):e.concat(o,et(o))}function ot(t,e){const n=C(t),o=K(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,c=0,s=0;if(i){r=i.width,l=i.height;const t=j();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}return{width:r,height:l,x:c,y:s}}function ct(t,e){const n=J(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=T(t)?z(t):{x:1,y:1};return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}function rt(t,e,n){let o;if("viewport"===e)o=ot(t,n);else if("document"===e)o=$(K(t));else if(B(e))o=ct(e,n);else{const n=I(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return l(o)}function it(t,e){const n=tt(t);return!(n===e||!B(n)||H(n))&&("fixed"===D(n).position||it(n,e))}function st(t,e){const n=e.get(t);if(n)return n;let o=et(t).filter((t=>B(t)&&"body"!==M(t))),i=null;const r="fixed"===D(t).position;let l=r?tt(t):t;for(;B(l)&&!H(l);){const e=D(l),n=N(l);n||"fixed"!==e.position||(i=null);(r?!n&&!i:!n&&"static"===e.position&&!!i&&["absolute","fixed"].includes(i.position)||E(l)&&!n&&it(t,l))?o=o.filter((t=>t!==l)):i=e,l=tt(l)}return e.set(t,o),o}function lt(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?st(e,this._c):[].concat(n),o],l=r[0],c=r.reduce(((t,n)=>{const o=rt(e,n,i);return t.top=W(o.top,t.top),t.right=V(o.right,t.right),t.bottom=V(o.bottom,t.bottom),t.left=W(o.left,t.left),t}),rt(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function at(t){return Y(t)}function ft(t,e){return T(t)&&"fixed"!==D(t).position?e?e(t):t.offsetParent:null}function ut(t){let e=tt(t);for(;T(e)&&!H(e);){if(N(e))return e;e=tt(e)}return null}function dt(t,e){const n=C(t);if(!T(t))return n;let o=ft(t,e);for(;o&&O(o)&&"static"===D(o).position;)o=ft(o,e);return o&&("html"===M(o)||"body"===M(o)&&"static"===D(o).position&&!N(o))?n:o||ut(t)||n}function yt(t,e,n){const o=T(e),i=K(e),r="fixed"===n,l=J(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&!r)if(("body"!==M(e)||E(i))&&(c=Q(e)),T(e)){const t=J(e,!0,r,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&(s.x=Z(i));return{x:l.left+c.scrollLeft-s.x,y:l.top+c.scrollTop-s.y,width:l.width,height:l.height}}const mt={getClippingRect:lt,convertOffsetParentRelativeRectToViewportRelativeRect:U,isElement:B,getDimensions:at,getOffsetParent:dt,getDocumentElement:K,getScale:z,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||dt,r=this.getDimensions;return{reference:yt(e,await i(n),o),floating:{x:0,y:0,...await r(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===D(t).direction},pt=(t,e,n)=>{const o=new Map,i={platform:mt,...n},l={...i.platform,_c:o};return r(t,e,{...i,platform:l})};export{y as a,pt as c,A as f,S as o,P as s};
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getAlignment","placement","split","getLengthFromAxis","axis","getSide","getMainAxisFromPlacement","includes","computeCoordsFromPlacement","_ref","rtl","reference","floating","commonX","x","width","commonY","y","height","mainAxis","length","commonAlign","side","isVertical","coords","computePosition","async","config","strategy","middleware","platform","validMiddleware","filter","Boolean","isRTL","rects","getElementRects","statefulPlacement","middlewareData","resetCount","i","name","fn","nextX","nextY","data","reset","initialPlacement","elements","expandPaddingObject","padding","top","right","bottom","left","getSideObjectFromPadding","rectToClientRect","rect","detectOverflow","state","options","_await$platform$isEle","boundary","rootBoundary","elementContext","altBoundary","paddingObject","altContext","element","clippingClientRect","getClippingRect","isElement","contextElement","getDocumentElement","offsetParent","getOffsetParent","offsetScale","getScale","elementClientRect","convertOffsetParentRelativeRectToViewportRelativeRect","min","Math","max","within","min$1","value","max$1","arrow","arrowDimensions","getDimensions","isYAxis","minProp","maxProp","clientProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","center","offset","shouldAddOffset","alignmentOffset","centerOffset","oppositeSideMap","getOppositePlacement","replace","getAlignmentSides","alignment","mainAlignmentSide","main","cross","oppositeAlignmentMap","start","end","getOppositeAlignmentPlacement","getExpandedPlacements","oppositePlacement","getSideList","isStart","lr","rl","tb","bt","getOppositeAxisPlacements","flipAlignment","direction","list","map","concat","flip","_middlewareData$flip","checkMainAxis","crossAxis","checkCrossAxis","fallbackPlacements","specifiedFallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","detectOverflowOptions","isBasePlacement","push","placements","overflow","overflows","overflowsData","every","_middlewareData$flip2","_overflowsData$filter","nextIndex","index","nextPlacement","resetPlacement","d","sort","a","b","_overflowsData$map$so","reduce","acc","convertValueToCoords","mainAxisMulti","crossAxisMulti","rawValue","alignmentAxis","diffCoords","getCrossAxis","shift","limiter","mainAxisCoord","crossAxisCoord","minSide","maxSide","limitedCoords","getWindow","node","_node$ownerDocument","ownerDocument","defaultView","window","getComputedStyle$1","getComputedStyle","isNode","Node","getNodeName","nodeName","toLowerCase","isHTMLElement","HTMLElement","Element","isShadowRoot","ShadowRoot","OwnElement","isOverflowElement","overflowX","overflowY","display","test","isTableElement","isContainingBlock","safari","isSafari","css","transform","perspective","backdropFilter","some","willChange","contain","CSS","supports","isLastTraversableNode","round","getCssDimensions","parseFloat","hasOffset","offsetWidth","offsetHeight","shouldFallback","fallback","unwrapElement","FALLBACK_SCALE","domElement","getBoundingClientRect","Number","isFinite","noOffsets","getVisualOffsets","isFixed","floatingOffsetParent","_win$visualViewport","_win$visualViewport2","win","visualViewport","offsetLeft","offsetTop","includeScale","isFixedStrategy","clientRect","scale","visualOffsets","offsetWin","currentIFrame","frameElement","iframeScale","iframeRect","clientLeft","paddingLeft","clientTop","paddingTop","document","documentElement","getNodeScroll","scrollLeft","scrollTop","pageXOffset","pageYOffset","isOffsetParentAnElement","scroll","offsets","offsetRect","getWindowScrollBarX","getDocumentRect","html","body","scrollWidth","clientWidth","scrollHeight","clientHeight","getParentNode","result","assignedSlot","parentNode","host","getNearestOverflowAncestor","getOverflowAncestors","scrollableAncestor","isBody","getViewportRect","visualViewportBased","getInnerBoundingClientRect","getClientRectFromClippingAncestor","clippingAncestor","hasFixedPositionAncestor","stopNode","position","getClippingElementAncestors","cache","cachedResult","get","el","currentContainingBlockComputedStyle","elementIsFixed","currentNode","computedStyle","currentNodeIsContaining","shouldDropCurrentNode","ancestor","set","elementClippingAncestors","this","_c","clippingAncestors","firstClippingAncestor","clippingRect","accRect","getTrueOffsetParent","polyfill","getContainingBlock","getRectRelativeToOffsetParent","getOffsetParentFn","getDimensionsFn","getClientRects","Array","from","Map","mergedOptions","platformWithCache","computePosition$1"],"sources":["./node_modules/@floating-ui/core/dist/floating-ui.core.esm.js","./node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js"],"sourcesContent":["function getAlignment(placement) {\n return placement.split('-')[1];\n}\n\nfunction getLengthFromAxis(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\n\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\n\nfunction getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].includes(getSide(placement)) ? 'x' : 'y';\n}\n\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n let {\n reference,\n floating\n } = _ref;\n const commonX = reference.x + reference.width / 2 - floating.width / 2;\n const commonY = reference.y + reference.height / 2 - floating.height / 2;\n const mainAxis = getMainAxisFromPlacement(placement);\n const length = getLengthFromAxis(mainAxis);\n const commonAlign = reference[length] / 2 - floating[length] / 2;\n const side = getSide(placement);\n const isVertical = mainAxis === 'x';\n let coords;\n switch (side) {\n case 'top':\n coords = {\n x: commonX,\n y: reference.y - floating.height\n };\n break;\n case 'bottom':\n coords = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n case 'right':\n coords = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n case 'left':\n coords = {\n x: reference.x - floating.width,\n y: commonY\n };\n break;\n default:\n coords = {\n x: reference.x,\n y: reference.y\n };\n }\n switch (getAlignment(placement)) {\n case 'start':\n coords[mainAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n case 'end':\n coords[mainAxis] += commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n }\n return coords;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a reference element when it is given a certain positioning strategy.\n *\n * This export does not have any `platform` interface logic. You will need to\n * write one for the platform you are using Floating UI with.\n */\nconst computePosition = async (reference, floating, config) => {\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform\n } = config;\n const validMiddleware = middleware.filter(Boolean);\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));\n let rects = await platform.getElementRects({\n reference,\n floating,\n strategy\n });\n let {\n x,\n y\n } = computeCoordsFromPlacement(rects, placement, rtl);\n let statefulPlacement = placement;\n let middlewareData = {};\n let resetCount = 0;\n for (let i = 0; i < validMiddleware.length; i++) {\n const {\n name,\n fn\n } = validMiddleware[i];\n const {\n x: nextX,\n y: nextY,\n data,\n reset\n } = await fn({\n x,\n y,\n initialPlacement: placement,\n placement: statefulPlacement,\n strategy,\n middlewareData,\n rects,\n platform,\n elements: {\n reference,\n floating\n }\n });\n x = nextX != null ? nextX : x;\n y = nextY != null ? nextY : y;\n middlewareData = {\n ...middlewareData,\n [name]: {\n ...middlewareData[name],\n ...data\n }\n };\n if (reset && resetCount <= 50) {\n resetCount++;\n if (typeof reset === 'object') {\n if (reset.placement) {\n statefulPlacement = reset.placement;\n }\n if (reset.rects) {\n rects = reset.rects === true ? await platform.getElementRects({\n reference,\n floating,\n strategy\n }) : reset.rects;\n }\n ({\n x,\n y\n } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n }\n i = -1;\n continue;\n }\n }\n return {\n x,\n y,\n placement: statefulPlacement,\n strategy,\n middlewareData\n };\n};\n\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\n\nfunction getSideObjectFromPadding(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\n\nfunction rectToClientRect(rect) {\n return {\n ...rect,\n top: rect.y,\n left: rect.x,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n };\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nasync function detectOverflow(state, options) {\n var _await$platform$isEle;\n if (options === void 0) {\n options = {};\n }\n const {\n x,\n y,\n platform,\n rects,\n elements,\n strategy\n } = state;\n const {\n boundary = 'clippingAncestors',\n rootBoundary = 'viewport',\n elementContext = 'floating',\n altBoundary = false,\n padding = 0\n } = options;\n const paddingObject = getSideObjectFromPadding(padding);\n const altContext = elementContext === 'floating' ? 'reference' : 'floating';\n const element = elements[altBoundary ? altContext : elementContext];\n const clippingClientRect = rectToClientRect(await platform.getClippingRect({\n element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),\n boundary,\n rootBoundary,\n strategy\n }));\n const rect = elementContext === 'floating' ? {\n ...rects.floating,\n x,\n y\n } : rects.reference;\n const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));\n const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {\n x: 1,\n y: 1\n } : {\n x: 1,\n y: 1\n };\n const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n rect,\n offsetParent,\n strategy\n }) : rect);\n return {\n top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n };\n}\n\nconst min = Math.min;\nconst max = Math.max;\n\nfunction within(min$1, value, max$1) {\n return max(min$1, min(value, max$1));\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => ({\n name: 'arrow',\n options,\n async fn(state) {\n // Since `element` is required, we don't Partial<> the type.\n const {\n element,\n padding = 0\n } = options || {};\n const {\n x,\n y,\n placement,\n rects,\n platform,\n elements\n } = state;\n if (element == null) {\n return {};\n }\n const paddingObject = getSideObjectFromPadding(padding);\n const coords = {\n x,\n y\n };\n const axis = getMainAxisFromPlacement(placement);\n const length = getLengthFromAxis(axis);\n const arrowDimensions = await platform.getDimensions(element);\n const isYAxis = axis === 'y';\n const minProp = isYAxis ? 'top' : 'left';\n const maxProp = isYAxis ? 'bottom' : 'right';\n const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));\n let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;\n\n // DOM platform can return `window` as the `offsetParent`.\n if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {\n clientSize = elements.floating[clientProp] || rects.floating[length];\n }\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside the floating element's bounds.\n const min = paddingObject[minProp];\n const max = clientSize - arrowDimensions[length] - paddingObject[maxProp];\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = within(min, center, max);\n\n // If the reference is small enough that the arrow's padding causes it to\n // to point to nothing for an aligned placement, adjust the offset of the\n // floating element itself. This stops `shift()` from taking action, but can\n // be worked around by calling it again after the `arrow()` if desired.\n const shouldAddOffset = getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min ? paddingObject[minProp] : paddingObject[maxProp]) - arrowDimensions[length] / 2 < 0;\n const alignmentOffset = shouldAddOffset ? center < min ? min - center : max - center : 0;\n return {\n [axis]: coords[axis] - alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset\n }\n };\n }\n});\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst allPlacements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-start\", side + \"-end\"), []);\n\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\n\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const mainAxis = getMainAxisFromPlacement(placement);\n const length = getLengthFromAxis(mainAxis);\n let mainAlignmentSide = mainAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return {\n main: mainAlignmentSide,\n cross: getOppositePlacement(mainAlignmentSide)\n };\n}\n\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\n\nfunction getPlacementList(alignment, autoAlignment, allowedPlacements) {\n const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);\n return allowedPlacementsSortedByAlignment.filter(placement => {\n if (alignment) {\n return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);\n }\n return true;\n });\n}\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'autoPlacement',\n options,\n async fn(state) {\n var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;\n const {\n rects,\n middlewareData,\n placement,\n platform,\n elements\n } = state;\n const {\n crossAxis = false,\n alignment,\n allowedPlacements = allPlacements,\n autoAlignment = true,\n ...detectOverflowOptions\n } = options;\n const placements = alignment !== undefined || allowedPlacements === allPlacements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;\n const currentPlacement = placements[currentIndex];\n if (currentPlacement == null) {\n return {};\n }\n const {\n main,\n cross\n } = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));\n\n // Make `computeCoords` start from the right place.\n if (placement !== currentPlacement) {\n return {\n reset: {\n placement: placements[0]\n }\n };\n }\n const currentOverflows = [overflow[getSide(currentPlacement)], overflow[main], overflow[cross]];\n const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {\n placement: currentPlacement,\n overflows: currentOverflows\n }];\n const nextPlacement = placements[currentIndex + 1];\n\n // There are more placements to check.\n if (nextPlacement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n const placementsSortedByMostSpace = allOverflows.map(d => {\n const alignment = getAlignment(d.placement);\n return [d.placement, alignment && crossAxis ?\n // Check along the mainAxis and main crossAxis side.\n d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :\n // Check only the mainAxis.\n d.overflows[0], d.overflows];\n }).sort((a, b) => a[1] - b[1]);\n const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,\n // Aligned placements should not check their opposite crossAxis\n // side.\n getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));\n const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];\n if (resetPlacement !== placement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: resetPlacement\n }\n };\n }\n return {};\n }\n };\n};\n\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\n\nfunction getSideList(side, isStart, rtl) {\n const lr = ['left', 'right'];\n const rl = ['right', 'left'];\n const tb = ['top', 'bottom'];\n const bt = ['bottom', 'top'];\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rl : lr;\n return isStart ? lr : rl;\n case 'left':\n case 'right':\n return isStart ? tb : bt;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'flip',\n options,\n async fn(state) {\n var _middlewareData$flip;\n const {\n placement,\n middlewareData,\n rects,\n initialPlacement,\n platform,\n elements\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true,\n fallbackPlacements: specifiedFallbackPlacements,\n fallbackStrategy = 'bestFit',\n fallbackAxisSideDirection = 'none',\n flipAlignment = true,\n ...detectOverflowOptions\n } = options;\n const side = getSide(placement);\n const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {\n fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n }\n const placements = [initialPlacement, ...fallbackPlacements];\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const overflows = [];\n let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n if (checkMainAxis) {\n overflows.push(overflow[side]);\n }\n if (checkCrossAxis) {\n const {\n main,\n cross\n } = getAlignmentSides(placement, rects, rtl);\n overflows.push(overflow[main], overflow[cross]);\n }\n overflowsData = [...overflowsData, {\n placement,\n overflows\n }];\n\n // One or more sides is overflowing.\n if (!overflows.every(side => side <= 0)) {\n var _middlewareData$flip2, _overflowsData$filter;\n const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n const nextPlacement = placements[nextIndex];\n if (nextPlacement) {\n // Try next placement and re-run the lifecycle.\n return {\n data: {\n index: nextIndex,\n overflows: overflowsData\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n\n // First, find the candidates that fit on the mainAxis side of overflow,\n // then find the placement that fits the best on the main crossAxis side.\n let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n\n // Otherwise fallback.\n if (!resetPlacement) {\n switch (fallbackStrategy) {\n case 'bestFit':\n {\n var _overflowsData$map$so;\n const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];\n if (placement) {\n resetPlacement = placement;\n }\n break;\n }\n case 'initialPlacement':\n resetPlacement = initialPlacement;\n break;\n }\n }\n if (placement !== resetPlacement) {\n return {\n reset: {\n placement: resetPlacement\n }\n };\n }\n }\n return {};\n }\n };\n};\n\nfunction getSideOffsets(overflow, rect) {\n return {\n top: overflow.top - rect.height,\n right: overflow.right - rect.width,\n bottom: overflow.bottom - rect.height,\n left: overflow.left - rect.width\n };\n}\nfunction isAnySideFullyClipped(overflow) {\n return sides.some(side => overflow[side] >= 0);\n}\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'hide',\n options,\n async fn(state) {\n const {\n strategy = 'referenceHidden',\n ...detectOverflowOptions\n } = options;\n const {\n rects\n } = state;\n switch (strategy) {\n case 'referenceHidden':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n elementContext: 'reference'\n });\n const offsets = getSideOffsets(overflow, rects.reference);\n return {\n data: {\n referenceHiddenOffsets: offsets,\n referenceHidden: isAnySideFullyClipped(offsets)\n }\n };\n }\n case 'escaped':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n altBoundary: true\n });\n const offsets = getSideOffsets(overflow, rects.floating);\n return {\n data: {\n escapedOffsets: offsets,\n escaped: isAnySideFullyClipped(offsets)\n }\n };\n }\n default:\n {\n return {};\n }\n }\n }\n };\n};\n\nfunction getBoundingRect(rects) {\n const minX = min(...rects.map(rect => rect.left));\n const minY = min(...rects.map(rect => rect.top));\n const maxX = max(...rects.map(rect => rect.right));\n const maxY = max(...rects.map(rect => rect.bottom));\n return {\n x: minX,\n y: minY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nfunction getRectsByLine(rects) {\n const sortedRects = rects.slice().sort((a, b) => a.y - b.y);\n const groups = [];\n let prevRect = null;\n for (let i = 0; i < sortedRects.length; i++) {\n const rect = sortedRects[i];\n if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {\n groups.push([rect]);\n } else {\n groups[groups.length - 1].push(rect);\n }\n prevRect = rect;\n }\n return groups.map(rect => rectToClientRect(getBoundingRect(rect)));\n}\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'inline',\n options,\n async fn(state) {\n const {\n placement,\n elements,\n rects,\n platform,\n strategy\n } = state;\n // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a\n // ClientRect's bounds, despite the event listener being triggered. A\n // padding of 2 seems to handle this issue.\n const {\n padding = 2,\n x,\n y\n } = options;\n const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);\n const clientRects = getRectsByLine(nativeClientRects);\n const fallback = rectToClientRect(getBoundingRect(nativeClientRects));\n const paddingObject = getSideObjectFromPadding(padding);\n function getBoundingClientRect() {\n // There are two rects and they are disjoined.\n if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {\n // Find the first rect in which the point is fully inside.\n return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;\n }\n\n // There are 2 or more connected rects.\n if (clientRects.length >= 2) {\n if (getMainAxisFromPlacement(placement) === 'x') {\n const firstRect = clientRects[0];\n const lastRect = clientRects[clientRects.length - 1];\n const isTop = getSide(placement) === 'top';\n const top = firstRect.top;\n const bottom = lastRect.bottom;\n const left = isTop ? firstRect.left : lastRect.left;\n const right = isTop ? firstRect.right : lastRect.right;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n const isLeftSide = getSide(placement) === 'left';\n const maxRight = max(...clientRects.map(rect => rect.right));\n const minLeft = min(...clientRects.map(rect => rect.left));\n const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);\n const top = measureRects[0].top;\n const bottom = measureRects[measureRects.length - 1].bottom;\n const left = minLeft;\n const right = maxRight;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n return fallback;\n }\n const resetRects = await platform.getElementRects({\n reference: {\n getBoundingClientRect\n },\n floating: elements.floating,\n strategy\n });\n if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {\n return {\n reset: {\n rects: resetRects\n }\n };\n }\n return {};\n }\n };\n};\n\nasync function convertValueToCoords(state, value) {\n const {\n placement,\n platform,\n elements\n } = state;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isVertical = getMainAxisFromPlacement(placement) === 'x';\n const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;\n const crossAxisMulti = rtl && isVertical ? -1 : 1;\n const rawValue = typeof value === 'function' ? value(state) : value;\n\n // eslint-disable-next-line prefer-const\n let {\n mainAxis,\n crossAxis,\n alignmentAxis\n } = typeof rawValue === 'number' ? {\n mainAxis: rawValue,\n crossAxis: 0,\n alignmentAxis: null\n } : {\n mainAxis: 0,\n crossAxis: 0,\n alignmentAxis: null,\n ...rawValue\n };\n if (alignment && typeof alignmentAxis === 'number') {\n crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;\n }\n return isVertical ? {\n x: crossAxis * crossAxisMulti,\n y: mainAxis * mainAxisMulti\n } : {\n x: mainAxis * mainAxisMulti,\n y: crossAxis * crossAxisMulti\n };\n}\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = function (value) {\n if (value === void 0) {\n value = 0;\n }\n return {\n name: 'offset',\n options: value,\n async fn(state) {\n const {\n x,\n y\n } = state;\n const diffCoords = await convertValueToCoords(state, value);\n return {\n x: x + diffCoords.x,\n y: y + diffCoords.y,\n data: diffCoords\n };\n }\n };\n};\n\nfunction getCrossAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'shift',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = false,\n limiter = {\n fn: _ref => {\n let {\n x,\n y\n } = _ref;\n return {\n x,\n y\n };\n }\n },\n ...detectOverflowOptions\n } = options;\n const coords = {\n x,\n y\n };\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const mainAxis = getMainAxisFromPlacement(getSide(placement));\n const crossAxis = getCrossAxis(mainAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n if (checkMainAxis) {\n const minSide = mainAxis === 'y' ? 'top' : 'left';\n const maxSide = mainAxis === 'y' ? 'bottom' : 'right';\n const min = mainAxisCoord + overflow[minSide];\n const max = mainAxisCoord - overflow[maxSide];\n mainAxisCoord = within(min, mainAxisCoord, max);\n }\n if (checkCrossAxis) {\n const minSide = crossAxis === 'y' ? 'top' : 'left';\n const maxSide = crossAxis === 'y' ? 'bottom' : 'right';\n const min = crossAxisCoord + overflow[minSide];\n const max = crossAxisCoord - overflow[maxSide];\n crossAxisCoord = within(min, crossAxisCoord, max);\n }\n const limitedCoords = limiter.fn({\n ...state,\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n });\n return {\n ...limitedCoords,\n data: {\n x: limitedCoords.x - x,\n y: limitedCoords.y - y\n }\n };\n }\n };\n};\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n options,\n fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n middlewareData\n } = state;\n const {\n offset = 0,\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true\n } = options;\n const coords = {\n x,\n y\n };\n const mainAxis = getMainAxisFromPlacement(placement);\n const crossAxis = getCrossAxis(mainAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n const rawOffset = typeof offset === 'function' ? offset(state) : offset;\n const computedOffset = typeof rawOffset === 'number' ? {\n mainAxis: rawOffset,\n crossAxis: 0\n } : {\n mainAxis: 0,\n crossAxis: 0,\n ...rawOffset\n };\n if (checkMainAxis) {\n const len = mainAxis === 'y' ? 'height' : 'width';\n const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;\n const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;\n if (mainAxisCoord < limitMin) {\n mainAxisCoord = limitMin;\n } else if (mainAxisCoord > limitMax) {\n mainAxisCoord = limitMax;\n }\n }\n if (checkCrossAxis) {\n var _middlewareData$offse, _middlewareData$offse2;\n const len = mainAxis === 'y' ? 'width' : 'height';\n const isOriginSide = ['top', 'left'].includes(getSide(placement));\n const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);\n const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);\n if (crossAxisCoord < limitMin) {\n crossAxisCoord = limitMin;\n } else if (crossAxisCoord > limitMax) {\n crossAxisCoord = limitMax;\n }\n }\n return {\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n };\n }\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'size',\n options,\n async fn(state) {\n const {\n placement,\n rects,\n platform,\n elements\n } = state;\n const {\n apply = () => {},\n ...detectOverflowOptions\n } = options;\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const axis = getMainAxisFromPlacement(placement);\n const isXAxis = axis === 'x';\n const {\n width,\n height\n } = rects.floating;\n let heightSide;\n let widthSide;\n if (side === 'top' || side === 'bottom') {\n heightSide = side;\n widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';\n } else {\n widthSide = side;\n heightSide = alignment === 'end' ? 'top' : 'bottom';\n }\n const overflowAvailableHeight = height - overflow[heightSide];\n const overflowAvailableWidth = width - overflow[widthSide];\n const noShift = !state.middlewareData.shift;\n let availableHeight = overflowAvailableHeight;\n let availableWidth = overflowAvailableWidth;\n if (isXAxis) {\n const maximumClippingWidth = width - overflow.left - overflow.right;\n availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;\n } else {\n const maximumClippingHeight = height - overflow.top - overflow.bottom;\n availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;\n }\n if (noShift && !alignment) {\n const xMin = max(overflow.left, 0);\n const xMax = max(overflow.right, 0);\n const yMin = max(overflow.top, 0);\n const yMax = max(overflow.bottom, 0);\n if (isXAxis) {\n availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));\n } else {\n availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));\n }\n }\n await apply({\n ...state,\n availableWidth,\n availableHeight\n });\n const nextDimensions = await platform.getDimensions(elements.floating);\n if (width !== nextDimensions.width || height !== nextDimensions.height) {\n return {\n reset: {\n rects: true\n }\n };\n }\n return {};\n }\n };\n};\n\nexport { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, rectToClientRect, shift, size };\n","import { rectToClientRect, computePosition as computePosition$1 } from '@floating-ui/core';\nexport { arrow, autoPlacement, detectOverflow, flip, hide, inline, limitShift, offset, shift, size } from '@floating-ui/core';\n\nfunction getWindow(node) {\n var _node$ownerDocument;\n return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\n\nfunction getComputedStyle$1(element) {\n return getWindow(element).getComputedStyle(element);\n}\n\nfunction isNode(value) {\n return value instanceof getWindow(value).Node;\n}\nfunction getNodeName(node) {\n return isNode(node) ? (node.nodeName || '').toLowerCase() : '';\n}\n\nfunction isHTMLElement(value) {\n return value instanceof getWindow(value).HTMLElement;\n}\nfunction isElement(value) {\n return value instanceof getWindow(value).Element;\n}\nfunction isShadowRoot(node) {\n // Browsers without `ShadowRoot` support.\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n const OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle$1(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);\n}\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].includes(getNodeName(element));\n}\nfunction isContainingBlock(element) {\n const safari = isSafari();\n const css = getComputedStyle$1(element);\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n return css.transform !== 'none' || css.perspective !== 'none' || !safari && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !safari && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));\n}\nfunction isSafari() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nfunction isLastTraversableNode(node) {\n return ['html', 'body', '#document'].includes(getNodeName(node));\n}\n\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle$1(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n fallback: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nconst FALLBACK_SCALE = {\n x: 1,\n y: 1\n};\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return FALLBACK_SCALE;\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n fallback\n } = getCssDimensions(domElement);\n let x = (fallback ? round(rect.width) : rect.width) / width;\n let y = (fallback ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = {\n x: 0,\n y: 0\n};\nfunction getVisualOffsets(element, isFixed, floatingOffsetParent) {\n var _win$visualViewport, _win$visualViewport2;\n if (isFixed === void 0) {\n isFixed = true;\n }\n if (!isSafari()) {\n return noOffsets;\n }\n const win = element ? getWindow(element) : window;\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== win) {\n return noOffsets;\n }\n return {\n x: ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0,\n y: ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0\n };\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = FALLBACK_SCALE;\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = getVisualOffsets(domElement, isFixedStrategy, offsetParent);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentIFrame = win.frameElement;\n while (currentIFrame && offsetParent && offsetWin !== win) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle(currentIFrame);\n iframeRect.x += (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n iframeRect.y += (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += iframeRect.x;\n y += iframeRect.y;\n currentIFrame = getWindow(currentIFrame).frameElement;\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\nfunction getDocumentElement(node) {\n return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;\n}\n\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.pageXOffset,\n scrollTop: element.pageYOffset\n };\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n if (offsetParent === documentElement) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = {\n x: 1,\n y: 1\n };\n const offsets = {\n x: 0,\n y: 0\n };\n if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y\n };\n}\n\nfunction getWindowScrollBarX(element) {\n // If <html> has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle$1(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\n\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n // `getParentNode` will never return a `Document` due to the fallback\n // check, so it's either the <html> or <body> element.\n return parentNode.ownerDocument.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\n\nfunction getOverflowAncestors(node, list) {\n var _node$ownerDocument;\n if (list === void 0) {\n list = [];\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));\n}\n\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isSafari();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : {\n x: 1,\n y: 1\n };\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n ...clippingAncestor,\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle$1(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle$1(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstClippingAncestor = clippingAncestors[0];\n const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n return {\n width: clippingRect.right - clippingRect.left,\n height: clippingRect.bottom - clippingRect.top,\n x: clippingRect.left,\n y: clippingRect.top\n };\n}\n\nfunction getDimensions(element) {\n return getCssDimensions(element);\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n return element.offsetParent;\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else {\n currentNode = getParentNode(currentNode);\n }\n }\n return null;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const window = getWindow(element);\n if (!isHTMLElement(element)) {\n return window;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {\n return window;\n }\n return offsetParent || getContainingBlock(element) || window;\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = {\n x: 0,\n y: 0\n };\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}\n\nconst platform = {\n getClippingRect,\n convertOffsetParentRelativeRectToViewportRelativeRect,\n isElement,\n getDimensions,\n getOffsetParent,\n getDocumentElement,\n getScale,\n async getElementRects(_ref) {\n let {\n reference,\n floating,\n strategy\n } = _ref;\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n return {\n reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),\n floating: {\n x: 0,\n y: 0,\n ...(await getDimensionsFn(floating))\n }\n };\n },\n getClientRects: element => Array.from(element.getClientRects()),\n isRTL: element => getComputedStyle$1(element).direction === 'rtl'\n};\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n if (options === void 0) {\n options = {};\n }\n const {\n ancestorScroll = true,\n ancestorResize = true,\n elementResize = true,\n animationFrame = false\n } = options;\n const ancestors = ancestorScroll || ancestorResize ? [...(isElement(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : []), ...getOverflowAncestors(floating)] : [];\n ancestors.forEach(ancestor => {\n // ignores Window, checks for [object VisualViewport]\n const isVisualViewport = !isElement(ancestor) && ancestor.toString().includes('V');\n if (ancestorScroll && (animationFrame ? isVisualViewport : true)) {\n ancestor.addEventListener('scroll', update, {\n passive: true\n });\n }\n ancestorResize && ancestor.addEventListener('resize', update);\n });\n let observer = null;\n if (elementResize) {\n observer = new ResizeObserver(() => {\n update();\n });\n isElement(reference) && !animationFrame && observer.observe(reference);\n if (!isElement(reference) && reference.contextElement && !animationFrame) {\n observer.observe(reference.contextElement);\n }\n observer.observe(floating);\n }\n let frameId;\n let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n if (animationFrame) {\n frameLoop();\n }\n function frameLoop() {\n const nextRefRect = getBoundingClientRect(reference);\n if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {\n update();\n }\n prevRefRect = nextRefRect;\n frameId = requestAnimationFrame(frameLoop);\n }\n update();\n return () => {\n var _observer;\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.removeEventListener('scroll', update);\n ancestorResize && ancestor.removeEventListener('resize', update);\n });\n (_observer = observer) == null ? void 0 : _observer.disconnect();\n observer = null;\n if (animationFrame) {\n cancelAnimationFrame(frameId);\n }\n };\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a reference element when it is given a certain CSS positioning\n * strategy.\n */\nconst computePosition = (reference, floating, options) => {\n // This caches the expensive `getClippingElementAncestors` function so that\n // multiple lifecycle resets re-use the same result. It only lives for a\n // single call. If other functions become expensive, we can add them as well.\n const cache = new Map();\n const mergedOptions = {\n platform,\n ...options\n };\n const platformWithCache = {\n ...mergedOptions.platform,\n _c: cache\n };\n return computePosition$1(reference, floating, {\n ...mergedOptions,\n platform: platformWithCache\n });\n};\n\nexport { autoUpdate, computePosition, getOverflowAncestors, platform };\n"],"mappings":";;;AAAA,SAASA,EAAaC,GACpB,OAAOA,EAAUC,MAAM,KAAK,EAC9B,CAEA,SAASC,EAAkBC,GACzB,OAAOA,IAAS,IAAM,SAAW,OACnC,CAEA,SAASC,EAAQJ,GACf,OAAOA,EAAUC,MAAM,KAAK,EAC9B,CAEA,SAASI,EAAyBL,GAChC,MAAO,CAAC,MAAO,UAAUM,SAASF,EAAQJ,IAAc,IAAM,GAChE,CAEA,SAASO,EAA2BC,EAAMR,EAAWS,GACnD,IAAIC,UACFA,EAASC,SACTA,GACEH,EACJ,MAAMI,EAAUF,EAAUG,EAAIH,EAAUI,MAAQ,EAAIH,EAASG,MAAQ,EACrE,MAAMC,EAAUL,EAAUM,EAAIN,EAAUO,OAAS,EAAIN,EAASM,OAAS,EACvE,MAAMC,EAAWb,EAAyBL,GAC1C,MAAMmB,EAASjB,EAAkBgB,GACjC,MAAME,EAAcV,EAAUS,GAAU,EAAIR,EAASQ,GAAU,EAC/D,MAAME,EAAOjB,EAAQJ,GACrB,MAAMsB,EAAaJ,IAAa,IAChC,IAAIK,EACJ,OAAQF,GACN,IAAK,MACHE,EAAS,CACPV,EAAGD,EACHI,EAAGN,EAAU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,GAAWgB,GACvFhB,SAAU,CACRE,EAAG,EACHG,EAAG,WACOsS,EAAgB3S,IAGlC,EACE4S,eAAgBpP,GAAWqP,MAAMC,KAAKtP,EAAQoP,kBAC9CtR,MAAOkC,GAAWgH,EAAmBhH,GAAS0D,YAAc,OA4EzD,MAACrG,GAAkB,CAACd,EAAWC,EAAUgD,KAI5C,MAAMmO,EAAQ,IAAI4B,IAClB,MAAMC,EAAgB,CACpB9R,eACG8B,GAEL,MAAMiQ,EAAoB,IACrBD,EAAc9R,SACjB+Q,GAAId,GAEN,OAAO+B,EAAkBnT,EAAWC,EAAU,IACzCgT,EACH9R,SAAU+R,GACV,S"}
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ const t="kolibri";let e,n,s,l=!1,o=!1,i=!1,f=!1;const c=(t,e="")=>()=>{},r=(t,e)=>()=>{},u="r",a="o",$="s",d="t",h="s-id",p="sty-id",y="c-id",m="{visibility:hidden}.hydrated{visibility:inherit}",w="http://www.w3.org/1999/xlink",b={},g="http://www.w3.org/2000/svg",v="http://www.w3.org/1999/xhtml",k=t=>null!=t,S=t=>"object"===(t=typeof t)||"function"===t;function j(t){var e,n,s;return null!==(s=null===(n=null===(e=t.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==s?s:void 0}const x=(t,e,...n)=>{let s=null,l=null,o=null,r=!1,i=!1;const a=[],c=e=>{for(let n=0;n<e.length;n++)s=e[n],Array.isArray(s)?c(s):null!=s&&"boolean"!=typeof s&&((r="function"!=typeof t&&!S(s))&&(s=String(s)),r&&i?a[a.length-1].t+=s:a.push(r?O(null,s):s),i=r)};if(c(n),e){e.key&&(l=e.key),e.name&&(o=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,a,R);const d=O(t,null);return d.l=e,a.length>0&&(d.o=a),d.i=l,d.u=o,d},O=(t,e)=>{const n={$:0,h:t,t:e,p:null,o:null,l:null,i:null,u:null};return n},C={},M=t=>t&&t.h===C,R={forEach:(t,e)=>t.map(I).forEach(e),map:(t,e)=>t.map(I).map(e).map(P)},I=t=>({vattrs:t.l,vchildren:t.o,vkey:t.i,vname:t.u,vtag:t.h,vtext:t.t}),P=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),x(t.vtag,e,...t.vchildren||[])}const e=O(t.vtag,t.vtext);return e.l=t.vattrs,e.o=t.vchildren,e.i=t.vkey,e.u=t.vname,e},T=(t,e,n,s)=>{const l=()=>{},o=t.shadowRoot,r=[],i=o?[]:null,a=s.m=O(e,null);Vt.g||N(Dt.body,Vt.g=new Map),t[h]=n,t.removeAttribute(h),E(a,r,[],i,t,t,n),r.map((t=>{const n=t.v+"."+t.k,s=Vt.g.get(n),l=t.p;s&&_t&&""===s["s-en"]&&s.parentNode.insertBefore(l,s.nextSibling),o||(l["s-hn"]=e,s&&(l["s-ol"]=s,l["s-ol"]["s-nr"]=l)),Vt.g.delete(n)})),o&&i.map((t=>{t&&o.appendChild(t)})),l()},E=(t,e,n,s,l,o,r)=>{let i,a,c,p;if(1===o.nodeType){for(i=o.getAttribute(y),i&&(a=i.split("."),a[0]!==r&&"0"!==a[0]||(c={$:0,v:a[0],k:a[1],S:a[2],j:a[3],h:o.tagName.toLowerCase(),p:o,l:null,o:null,i:null,u:null,t:null},e.push(c),o.removeAttribute(y),t.o||(t.o=[]),t.o[c.j]=c,t=c,s&&"0"===c.S&&(s[c.j]=c.p))),p=o.childNodes.length-1;p>=0;p--)E(t,e,n,s,l,o.childNodes[p],r);if(o.shadowRoot)for(p=o.shadowRoot.childNodes.length-1;p>=0;p--)E(t,e,n,s,l,o.shadowRoot.childNodes[p],r)}else if(8===o.nodeType)a=o.nodeValue.split("."),a[1]!==r&&"0"!==a[1]||(i=a[0],c={$:0,v:a[1],k:a[2],S:a[3],j:a[4],p:o,l:null,o:null,i:null,u:null,h:null,t:null},i===d?(c.p=o.nextSibling,c.p&&3===c.p.nodeType&&(c.t=c.p.textContent,e.push(c),o.remove(),t.o||(t.o=[]),t.o[c.j]=c,s&&"0"===c.S&&(s[c.j]=c.p))):c.v===r&&(i===$?(c.h="slot",a[5]?o["s-sn"]=c.u=a[5]:o["s-sn"]="",o["s-sr"]=!0,s&&(c.p=Dt.createElement(c.h),c.u&&c.p.setAttribute("name",c.u),o.parentNode.insertBefore(c.p,o),o.remove(),"0"===c.S&&(s[c.j]=c.p)),n.push(c),t.o||(t.o=[]),t.o[c.j]=c):i===u&&(s?o.remove():(l["s-cr"]=o,o["s-cn"]=!0))));else if(t&&"style"===t.h){const e=O(null,o.textContent);e.p=o,e.j="0",t.o=[e]}},N=(t,e)=>{if(1===t.nodeType){let n=0;for(;n<t.childNodes.length;n++)N(t.childNodes[n],e);if(t.shadowRoot)for(n=0;n<t.shadowRoot.childNodes.length;n++)N(t.shadowRoot.childNodes[n],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");n[0]===a&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},U=t=>Ht.map((e=>e(t))).find((t=>!!t)),F=t=>Ht.push(t),L=(t,e)=>null==t||S(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?String(t):t,W=t=>Tt(t).O,A=(t,e,n)=>{const s=Vt.ce(e,n);return t.dispatchEvent(s),s},H=new WeakMap,q=(t,e,n)=>{let s=At.get(t);Bt&&n?(s=s||new CSSStyleSheet,"string"==typeof s?s=e:s.replaceSync(e)):s=e,At.set(t,s)},D=(t,e,n,s)=>{var l;let o=_(e,n);const r=At.get(o);if(t=11===t.nodeType?t:Dt,r)if("string"==typeof r){t=t.head||t;let e,n=H.get(t);if(n||H.set(t,n=new Set),!n.has(o)){if(t.host&&(e=t.querySelector(`[${p}="${o}"]`)))e.innerHTML=r;else{e=Dt.createElement("style"),e.innerHTML=r;const n=null!==(l=Vt.C)&&void 0!==l?l:j(Dt);null!=n&&e.setAttribute("nonce",n),t.insertBefore(e,t.querySelector("link"))}n&&n.add(o)}}else t.adoptedStyleSheets.includes(r)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,r]);return o},V=t=>{const e=t.M,n=t.O,s=e.$,l=(e.R,()=>{}),o=D(n.shadowRoot?n.shadowRoot:n.getRootNode(),e,t.I);10&s&&(n["s-sc"]=o,n.classList.add(o+"-h")),l()},_=(t,e)=>"sc-"+(e&&32&t.$?t.R+"-"+e:t.R),z=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),B=(t,e,n,s,l,o)=>{if(n!==s){let r=Ut(t,e),i=e.toLowerCase();if("class"===e){const e=t.classList,l=J(n),o=J(s);e.remove(...l.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)s&&null!=s[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in s)n&&s[e]===n[e]||(e.includes("-")?t.style.setProperty(e,s[e]):t.style[e]=s[e])}else if("key"===e);else if("ref"===e)s&&s(t);else if(r||"o"!==e[0]||"n"!==e[1]){const a=S(s);if((r||a&&null!==s)&&!l)try{if(t.tagName.includes("-"))t[e]=s;else{const l=null==s?"":s;"list"===e?r=!1:null!=n&&t[e]==l||(t[e]=l)}}catch(t){}let c=!1;i!==(i=i.replace(/^xlink\:?/,""))&&(e=i,c=!0),null==s||!1===s?!1===s&&""!==t.getAttribute(e)||(c?t.removeAttributeNS(w,e):t.removeAttribute(e)):(!r||4&o||l)&&!a&&(s=!0===s?"":s,c?t.setAttributeNS(w,e,s):t.setAttribute(e,s))}else e="-"===e[2]?e.slice(3):Ut(qt,i)?i.slice(2):i[2]+e.slice(3),n&&Vt.rel(t,e,n,!1),s&&Vt.ael(t,e,s,!1)}},G=/\s/,J=t=>t?t.split(G):[],K=(t,e,n,s)=>{const l=11===e.p.nodeType&&e.p.host?e.p.host:e.p,o=t&&t.l||b,r=e.l||b;for(s in o)s in r||B(l,s,o[s],void 0,n,e.$);for(s in r)B(l,s,o[s],r[s],n,e.$)},Q=(t,o,r,a)=>{const c=o.o[r];let d,u,p,h=0;if(l||(i=!0,"slot"===c.h&&(e&&a.classList.add(e+"-s"),c.$|=c.o?2:1)),null!==c.t)d=c.p=Dt.createTextNode(c.t);else if(1&c.$)d=c.p=Dt.createTextNode("");else{if(f||(f="svg"===c.h),d=c.p=Dt.createElementNS(f?g:v,2&c.$?"slot-fb":c.h),f&&"foreignObject"===c.h&&(f=!1),K(null,c,f),k(e)&&d["s-si"]!==e&&d.classList.add(d["s-si"]=e),c.o)for(h=0;h<c.o.length;++h)u=Q(t,c,h,d),u&&d.appendChild(u);"svg"===c.h?f=!1:"foreignObject"===d.tagName&&(f=!0)}return d["s-hn"]=s,3&c.$&&(d["s-sr"]=!0,d["s-cr"]=n,d["s-sn"]=c.u||"",p=t&&t.o&&t.o[r],p&&p.h===c.h&&t.p&&X(t.p,!1)),d},X=(t,e)=>{Vt.$|=1;const n=t.childNodes;for(let t=n.length-1;t>=0;t--){const l=n[t];l["s-hn"]!==s&&l["s-ol"]&&(st(l).insertBefore(l,nt(l)),l["s-ol"].remove(),l["s-ol"]=void 0,i=!0),e&&X(l,e)}Vt.$&=-2},Y=(t,e,n,l,o,r)=>{let i,a=t["s-cr"]&&t["s-cr"].parentNode||t;for(a.shadowRoot&&a.tagName===s&&(a=a.shadowRoot);o<=r;++o)l[o]&&(i=Q(null,n,o,t),i&&(l[o].p=i,a.insertBefore(i,nt(e))))},Z=(t,e,n)=>{for(let s=e;s<=n;++s){const e=t[s];if(e){const t=e.p;rt(e),t&&(o=!0,t["s-ol"]?t["s-ol"].remove():X(t,!0),t.remove())}}},tt=(t,e,n,s)=>{let l,o,r=0,i=0,a=0,c=0,d=e.length-1,u=e[0],p=e[d],h=s.length-1,f=s[0],m=s[h];for(;r<=d&&i<=h;)if(null==u)u=e[++r];else if(null==p)p=e[--d];else if(null==f)f=s[++i];else if(null==m)m=s[--h];else if(et(u,f))lt(u,f),u=e[++r],f=s[++i];else if(et(p,m))lt(p,m),p=e[--d],m=s[--h];else if(et(u,m))"slot"!==u.h&&"slot"!==m.h||X(u.p.parentNode,!1),lt(u,m),t.insertBefore(u.p,p.p.nextSibling),u=e[++r],m=s[--h];else if(et(p,f))"slot"!==u.h&&"slot"!==m.h||X(p.p.parentNode,!1),lt(p,f),t.insertBefore(p.p,u.p),p=e[--d],f=s[++i];else{for(a=-1,c=r;c<=d;++c)if(e[c]&&null!==e[c].i&&e[c].i===f.i){a=c;break}a>=0?(o=e[a],o.h!==f.h?l=Q(e&&e[i],n,a,t):(lt(o,f),e[a]=void 0,l=o.p),f=s[++i]):(l=Q(e&&e[i],n,i,t),f=s[++i]),l&&st(u.p).insertBefore(l,nt(u.p))}r>d?Y(t,null==s[h+1]?null:s[h+1].p,n,s,i,h):i>h&&Z(e,r,d)},et=(t,e)=>t.h===e.h&&("slot"===t.h?t.u===e.u:t.i===e.i),nt=t=>t&&t["s-ol"]||t,st=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,lt=(t,e)=>{const n=e.p=t.p,s=t.o,l=e.o,o=e.h,r=e.t;let i;null===r?(f="svg"===o||"foreignObject"!==o&&f,"slot"===o||K(t,e,f),null!==s&&null!==l?tt(n,s,e,l):null!==l?(null!==t.t&&(n.textContent=""),Y(n,null,e,l,0,l.length-1)):null!==s&&Z(s,0,s.length-1),f&&"svg"===o&&(f=!1)):(i=n["s-cr"])?i.parentNode.textContent=r:t.t!==r&&(n.data=r)},ot=t=>{const e=t.childNodes;let n,s,l,o,r,i;for(s=0,l=e.length;s<l;s++)if(n=e[s],1===n.nodeType){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,o=0;o<l;o++)if(i=e[o].nodeType,e[o]["s-hn"]!==n["s-hn"]||""!==r){if(1===i&&r===e[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===i||3===i&&""!==e[o].textContent.trim()){n.hidden=!0;break}ot(n)}},it=[],ft=t=>{let e,n,s,l,r,i,a=0;const c=t.childNodes,d=c.length;for(;a<d;a++){if(e=c[a],e["s-sr"]&&(n=e["s-cr"])&&n.parentNode)for(s=n.parentNode.childNodes,l=e["s-sn"],i=s.length-1;i>=0;i--)n=s[i],n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||(ct(n,l)?(r=it.find((t=>t.P===n)),o=!0,n["s-sn"]=n["s-sn"]||l,r?r.T=e:it.push({T:e,P:n}),n["s-sr"]&&it.map((t=>{ct(t.P,n["s-sn"])&&(r=it.find((t=>t.P===n)),r&&!t.T&&(t.T=r.T))}))):it.some((t=>t.P===n))||it.push({P:n}));1===e.nodeType&&ft(e)}},ct=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,rt=t=>{t.l&&t.l.ref&&t.l.ref(null),t.o&&t.o.map(rt)},ut=(t,r)=>{const a=t.O,c=t.M,d=t.m||O(null,null),u=M(r)?r:x(null,null,r);if(s=a.tagName,c.N&&(u.l=u.l||{},c.N.map((([t,e])=>u.l[e]=a[t]))),u.h=null,u.$|=4,t.m=u,u.p=d.p=a.shadowRoot||a,e=a["s-sc"],n=a["s-cr"],l=0!=(1&c.$),o=!1,lt(d,u),Vt.$|=1,i){let t,e,n,s,l,o;ft(u.p);let r=0;for(;r<it.length;r++)t=it[r],e=t.P,e["s-ol"]||(n=Dt.createTextNode(""),n["s-nr"]=e,e.parentNode.insertBefore(e["s-ol"]=n,e));for(r=0;r<it.length;r++)if(t=it[r],e=t.P,t.T){for(s=t.T.parentNode,l=t.T.nextSibling,n=e["s-ol"];n=n.previousSibling;)if(o=n["s-nr"],o&&o["s-sn"]===e["s-sn"]&&s===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){l=o;break}(!l&&s!==e.parentNode||e.nextSibling!==l)&&e!==l&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),s.insertBefore(e,l))}else 1===e.nodeType&&(e.hidden=!0)}o&&ot(u.p),Vt.$&=-2,it.length=0},at=(t,e)=>{e&&!t.U&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.U=e)))},$t=(t,e)=>{if(4&t.$)return void(t.$|=512);at(t,t.F);return dt(t,e)},dt=(t,e)=>{const n=(t.M.R,()=>{}),s=t.L;let l;return e&&(l=bt(s,"componentWillLoad")),n(),ht(l,(()=>pt(t,s,e)))},ht=(t,e)=>t instanceof Promise?t.then(e):e(),pt=async(t,e,n)=>{var s;const l=t.O,o=(t.M.R,()=>{}),r=l["s-rc"];n&&V(t);const i=(t.M.R,()=>{});yt(t,e),r&&(r.map((t=>t())),l["s-rc"]=void 0),i(),o();{const e=null!==(s=l["s-p"])&&void 0!==s?s:[],n=()=>mt(t);0===e.length?n():(Promise.all(e).then(n),t.$|=4,e.length=0)}},yt=(t,e,n)=>{try{e=e.render(),t.$|=2,ut(t,e)}catch(e){Ft(e,t.O)}return null},mt=t=>{t.M.R;const e=t.O,n=()=>{},s=t.L,l=t.F;bt(s,"componentDidRender"),64&t.$?n():(t.$|=64,gt(e),n(),t.W(e),l||wt()),t.U&&(t.U(),t.U=void 0),512&t.$&&Gt((()=>$t(t,!1))),t.$&=-517},wt=e=>{gt(Dt.documentElement),Gt((()=>A(qt,"appload",{detail:{namespace:t}})))},bt=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){Ft(t)}},gt=t=>t.classList.add("hydrated"),vt=(t,e)=>Tt(t).A.get(e),kt=(t,e,n,s)=>{const l=Tt(t),o=l.O,r=l.A.get(e),i=l.$,a=l.L;n=L(n,s.H[e][0]);const c=Number.isNaN(r)&&Number.isNaN(n);if((!(8&i)||void 0===r)&&(n!==r&&!c)&&(l.A.set(e,n),a)){if(s.q&&128&i){const t=s.q[e];t&&t.map((t=>{try{a[t](n,r,e)}catch(t){Ft(t,o)}}))}2==(18&i)&&$t(l,!1)}},St=(t,e,n)=>{if(e.H){t.watchers&&(e.q=t.watchers);const s=Object.entries(e.H),l=t.prototype;if(s.map((([t,[s]])=>{(31&s||2&n&&32&s)&&Object.defineProperty(l,t,{get(){return vt(this,t)},set(n){kt(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;l.attributeChangedCallback=function(t,e,s){Vt.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e))s=this[e],delete this[e];else if(l.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==s)return;this[e]=(null!==s||"boolean"!=typeof this[e])&&s}))},t.observedAttributes=s.filter((([t,e])=>15&e[0])).map((([t,s])=>{const l=s[1]||t;return n.set(l,t),512&s[0]&&e.N.push([t,l]),l}))}}return t},jt=async(t,e,n,s,l)=>{if(0==(32&e.$)){e.$|=32;{if((l=Wt(n)).then){const t=()=>{};l=await l,t()}l.isProxied||(n.q=l.watchers,St(l,n,2),l.isProxied=!0);const s=(n.R,()=>{});e.$|=8;try{new l(e)}catch(t){Ft(t)}e.$&=-9,e.$|=128,s()}if(l.style){let s=l.style;"string"!=typeof s&&(s=s[e.I=U(t)]);const o=_(n,e.I);if(!At.has(o)){const t=(n.R,()=>{});q(o,s,!!(1&n.$)),t()}}}const o=e.F,r=()=>$t(e,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()},xt=t=>{if(0==(1&Vt.$)){const e=Tt(t),n=e.M,s=(n.R,()=>{});if(!(1&e.$)){let s;if(e.$|=1,s=t.getAttribute(h),s){if(1&n.$){const e=D(t.shadowRoot,n,t.getAttribute("s-mode"));t.classList.remove(e+"-h",e+"-s")}T(t,n.R,s,e)}s||12&n.$&&Ot(t);{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){at(e,e.F=n);break}}n.H&&Object.entries(n.H).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),jt(t,e,n)}s()}},Ot=t=>{const e=t["s-cr"]=Dt.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)},Ct=t=>{if(0==(1&Vt.$)){const e=Tt(t).L;bt(e,"disconnectedCallback")}},Mt=(t,e={})=>{var n;const s=()=>{},l=[],o=e.exclude||[],r=qt.customElements,i=Dt.head,a=i.querySelector("meta[charset]"),c=Dt.createElement("style"),d=[],u=Dt.querySelectorAll(`[${p}]`);let h,f=!0,g=0;for(Object.assign(Vt,e),Vt.D=new URL(e.resourcesUrl||"./",Dt.baseURI).href,Vt.$|=2;g<u.length;g++)q(u[g].getAttribute(p),z(u[g].innerHTML),!0);t.map((t=>{t[1].map((e=>{const n={$:e[0],R:e[1],H:e[2],V:e[3]};n.H=e[2],n.N=[],n.q={};const s=n.R,i=class extends HTMLElement{constructor(t){super(t),Nt(t=this,n),1&n.$&&t.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),f?d.push(this):Vt.jmp((()=>xt(this)))}disconnectedCallback(){Vt.jmp((()=>Ct(this)))}componentOnReady(){return Tt(this)._}};n.B=t[0],o.includes(s)||r.get(s)||(l.push(s),r.define(s,St(i,n,1)))}))}));{c.innerHTML=l+m,c.setAttribute("data-styles","");const t=null!==(n=Vt.C)&&void 0!==n?n:j(Dt);null!=t&&c.setAttribute("nonce",t),i.insertBefore(c,a?a.nextSibling:i.firstChild)}f=!1,d.length?d.map((t=>t.connectedCallback())):Vt.jmp((()=>h=setTimeout(wt,30))),s()},Rt=(t,e)=>e,It=t=>Vt.C=t,Pt=new WeakMap,Tt=t=>Pt.get(t),Et=(t,e)=>Pt.set(e.L=t,e),Nt=(t,e)=>{const n={$:0,O:t,M:e,A:new Map};return n._=new Promise((t=>n.W=t)),t["s-p"]=[],t["s-rc"]=[],Pt.set(t,n)},Ut=(t,e)=>e in t,Ft=(t,e)=>(0,console.error)(t,e),Lt=new Map,Wt=(t,e,n)=>{const s=t.R.replace(/-/g,"_"),l=t.B,o=Lt.get(l);return o?o[s]:import(`./${l}.entry.js`).then((t=>(Lt.set(l,t),t[s])),Ft)
5
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},At=new Map,Ht=[],qt="undefined"!=typeof window?window:{},Dt=qt.document||{head:{}},Vt={$:0,D:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)},_t=!0,zt=t=>Promise.resolve(t),Bt=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),Gt=t=>zt().then(t);export{Rt as F,C as H,F as a,Mt as b,W as g,x as h,zt as p,Et as r,It as s};