@gemologic/sheen 0.1.0-rc.0 → 0.1.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 (484) hide show
  1. package/README.md +11 -1
  2. package/THIRD_PARTY_NOTICES.md +18 -0
  3. package/dist/primitives/Accordion.js +1 -1
  4. package/dist/primitives/Collapsible.js +1 -1
  5. package/dist/primitives/Combobox.js +1 -1
  6. package/dist/primitives/CommandPalette.js +2 -2
  7. package/dist/primitives/ContextMenu.js +2 -2
  8. package/dist/primitives/Dialog.js +1 -1
  9. package/dist/primitives/DropdownMenu.js +2 -2
  10. package/dist/primitives/LinkTooltip.js +1 -1
  11. package/dist/primitives/Popover.js +1 -1
  12. package/dist/primitives/Select.js +1 -1
  13. package/dist/primitives/Tabs.js +1 -1
  14. package/dist/primitives/Tooltip.js +1 -1
  15. package/dist/primitives/tooltip-layer.js +1 -1
  16. package/dist/theme/ThemeProvider.js +30 -30
  17. package/dist/theme/intl.js +4 -4
  18. package/dist/utils/polymorphic.d.ts +1 -1
  19. package/dist/vite.d.ts +3 -0
  20. package/dist/vite.js +54 -0
  21. package/package.json +71 -5
  22. package/src/primitives/Accordion.tsx +1 -1
  23. package/src/primitives/Collapsible.tsx +1 -1
  24. package/src/primitives/Combobox.tsx +1 -1
  25. package/src/primitives/CommandPalette.tsx +2 -2
  26. package/src/primitives/ContextMenu.tsx +2 -2
  27. package/src/primitives/Dialog.tsx +1 -1
  28. package/src/primitives/DropdownMenu.tsx +2 -2
  29. package/src/primitives/LinkTooltip.tsx +1 -1
  30. package/src/primitives/Popover.tsx +1 -1
  31. package/src/primitives/Select.tsx +1 -1
  32. package/src/primitives/Tabs.tsx +1 -1
  33. package/src/primitives/Tooltip.tsx +1 -1
  34. package/src/primitives/tooltip-layer.tsx +1 -1
  35. package/src/theme/ThemeProvider.tsx +7 -3
  36. package/src/theme/intl.ts +4 -2
  37. package/src/utils/polymorphic.ts +1 -1
  38. package/src/vite.ts +51 -0
  39. package/vendor/cmdk-solid/LICENSE +14 -0
  40. package/vendor/cmdk-solid/chunk/5WIGIOAJ.jsx +98 -0
  41. package/vendor/cmdk-solid/chunk/IOVUHIGA.js +96 -0
  42. package/vendor/cmdk-solid/command-score.cjs +98 -0
  43. package/vendor/cmdk-solid/command-score.d.cts +4 -0
  44. package/vendor/cmdk-solid/command-score.d.ts +4 -0
  45. package/vendor/cmdk-solid/command-score.js +2 -0
  46. package/vendor/cmdk-solid/command-score.jsx +7 -0
  47. package/vendor/cmdk-solid/index.cjs +827 -0
  48. package/vendor/cmdk-solid/index.d.cts +184 -0
  49. package/vendor/cmdk-solid/index.d.ts +184 -0
  50. package/vendor/cmdk-solid/index.js +729 -0
  51. package/vendor/cmdk-solid/index.jsx +666 -0
  52. package/vendor/integrity.json +450 -0
  53. package/vendor/kobalte-core/LICENSE.md +21 -0
  54. package/vendor/kobalte-core/NOTICE.txt +231 -0
  55. package/vendor/kobalte-core/accordion/index.d.ts +10 -0
  56. package/vendor/kobalte-core/accordion/index.js +2 -0
  57. package/vendor/kobalte-core/accordion/index.jsx +33 -0
  58. package/vendor/kobalte-core/alert/index.d.ts +5 -0
  59. package/vendor/kobalte-core/alert/index.js +2 -0
  60. package/vendor/kobalte-core/alert/index.jsx +11 -0
  61. package/vendor/kobalte-core/alert-dialog/index.d.ts +10 -0
  62. package/vendor/kobalte-core/alert-dialog/index.js +3 -0
  63. package/vendor/kobalte-core/alert-dialog/index.jsx +40 -0
  64. package/vendor/kobalte-core/badge/index.d.ts +23 -0
  65. package/vendor/kobalte-core/badge/index.js +24 -0
  66. package/vendor/kobalte-core/badge/index.jsx +24 -0
  67. package/vendor/kobalte-core/breadcrumbs/index.d.ts +5 -0
  68. package/vendor/kobalte-core/breadcrumbs/index.js +2 -0
  69. package/vendor/kobalte-core/breadcrumbs/index.jsx +19 -0
  70. package/vendor/kobalte-core/button/index.d.ts +6 -0
  71. package/vendor/kobalte-core/button/index.js +2 -0
  72. package/vendor/kobalte-core/button/index.jsx +12 -0
  73. package/vendor/kobalte-core/button-root-da654b3e.d.ts +28 -0
  74. package/vendor/kobalte-core/checkbox/index.d.ts +8 -0
  75. package/vendor/kobalte-core/checkbox/index.js +2 -0
  76. package/vendor/kobalte-core/checkbox/index.jsx +35 -0
  77. package/vendor/kobalte-core/chunk/272QBW42.js +712 -0
  78. package/vendor/kobalte-core/chunk/27MLNS66.js +353 -0
  79. package/vendor/kobalte-core/chunk/2RVGL3MU.js +45 -0
  80. package/vendor/kobalte-core/chunk/2UV3VFID.jsx +431 -0
  81. package/vendor/kobalte-core/chunk/2X5XWQIS.js +19 -0
  82. package/vendor/kobalte-core/chunk/2YCOH52P.js +81 -0
  83. package/vendor/kobalte-core/chunk/3565MS4H.jsx +127 -0
  84. package/vendor/kobalte-core/chunk/3ARTUDH2.jsx +1633 -0
  85. package/vendor/kobalte-core/chunk/3D6FM2PJ.js +1001 -0
  86. package/vendor/kobalte-core/chunk/3DLZMX4Z.jsx +81 -0
  87. package/vendor/kobalte-core/chunk/3DZKSKAQ.jsx +366 -0
  88. package/vendor/kobalte-core/chunk/3JA5IX2L.jsx +52 -0
  89. package/vendor/kobalte-core/chunk/3NGA46QE.js +116 -0
  90. package/vendor/kobalte-core/chunk/3QQCO6IA.js +46 -0
  91. package/vendor/kobalte-core/chunk/3T74IGH6.js +860 -0
  92. package/vendor/kobalte-core/chunk/3XNSRO2W.jsx +226 -0
  93. package/vendor/kobalte-core/chunk/43XIKO67.js +99 -0
  94. package/vendor/kobalte-core/chunk/4VWIKJ7Q.jsx +842 -0
  95. package/vendor/kobalte-core/chunk/53Y5XP3B.js +61 -0
  96. package/vendor/kobalte-core/chunk/5WXHJDCZ.jsx +10 -0
  97. package/vendor/kobalte-core/chunk/5ZKAE4VZ.js +8 -0
  98. package/vendor/kobalte-core/chunk/66KLKSW3.js +36 -0
  99. package/vendor/kobalte-core/chunk/6TDKM7BK.jsx +815 -0
  100. package/vendor/kobalte-core/chunk/6Y7B2NEO.js +21 -0
  101. package/vendor/kobalte-core/chunk/7ABWW5DT.jsx +483 -0
  102. package/vendor/kobalte-core/chunk/7CVNMTYF.js +171 -0
  103. package/vendor/kobalte-core/chunk/7DPKSDZL.js +447 -0
  104. package/vendor/kobalte-core/chunk/7I44E2QD.js +190 -0
  105. package/vendor/kobalte-core/chunk/7LCANGHD.js +29 -0
  106. package/vendor/kobalte-core/chunk/7OVKXYPU.js +90 -0
  107. package/vendor/kobalte-core/chunk/7TPOQ36Z.js +202 -0
  108. package/vendor/kobalte-core/chunk/7ZHN3PYD.js +30 -0
  109. package/vendor/kobalte-core/chunk/ANN3A2QM.js +29 -0
  110. package/vendor/kobalte-core/chunk/AT6SKIG6.js +119 -0
  111. package/vendor/kobalte-core/chunk/AWVDBFMO.jsx +280 -0
  112. package/vendor/kobalte-core/chunk/B2CSS4CB.js +36 -0
  113. package/vendor/kobalte-core/chunk/BDJEWKR2.jsx +153 -0
  114. package/vendor/kobalte-core/chunk/BK63AFY4.js +348 -0
  115. package/vendor/kobalte-core/chunk/BLN63FDC.js +40 -0
  116. package/vendor/kobalte-core/chunk/BU4OFZP5.jsx +146 -0
  117. package/vendor/kobalte-core/chunk/CLZZ2KZC.js +152 -0
  118. package/vendor/kobalte-core/chunk/CODJDE4S.jsx +131 -0
  119. package/vendor/kobalte-core/chunk/CWAEFUDR.js +732 -0
  120. package/vendor/kobalte-core/chunk/DBKNBLZP.js +395 -0
  121. package/vendor/kobalte-core/chunk/DTAYBJDT.jsx +339 -0
  122. package/vendor/kobalte-core/chunk/DX4MAOJL.js +653 -0
  123. package/vendor/kobalte-core/chunk/E4R2EMM4.js +10 -0
  124. package/vendor/kobalte-core/chunk/E53DB7BS.jsx +34 -0
  125. package/vendor/kobalte-core/chunk/EHGSTO6V.jsx +138 -0
  126. package/vendor/kobalte-core/chunk/EJ5I5XML.jsx +1 -0
  127. package/vendor/kobalte-core/chunk/ET5T45DO.js +17 -0
  128. package/vendor/kobalte-core/chunk/EYO4IMPK.jsx +867 -0
  129. package/vendor/kobalte-core/chunk/FINWO3A5.jsx +21 -0
  130. package/vendor/kobalte-core/chunk/FKUFPCQ6.jsx +120 -0
  131. package/vendor/kobalte-core/chunk/FLVHQV4A.jsx +22 -0
  132. package/vendor/kobalte-core/chunk/FN6EICGO.jsx +44 -0
  133. package/vendor/kobalte-core/chunk/FOXVCQFV.jsx +48 -0
  134. package/vendor/kobalte-core/chunk/G3KI2B4X.js +228 -0
  135. package/vendor/kobalte-core/chunk/G4JQYERT.jsx +1 -0
  136. package/vendor/kobalte-core/chunk/GAVSAJBM.jsx +86 -0
  137. package/vendor/kobalte-core/chunk/GIRHAWVP.jsx +46 -0
  138. package/vendor/kobalte-core/chunk/GROIIANN.jsx +32 -0
  139. package/vendor/kobalte-core/chunk/GSF7SFRW.jsx +98 -0
  140. package/vendor/kobalte-core/chunk/GXANOQ5B.jsx +66 -0
  141. package/vendor/kobalte-core/chunk/H7BK6JF7.jsx +489 -0
  142. package/vendor/kobalte-core/chunk/HGKTPMYY.js +1332 -0
  143. package/vendor/kobalte-core/chunk/HWIPVJ7H.js +121 -0
  144. package/vendor/kobalte-core/chunk/I2LBZHJH.js +144 -0
  145. package/vendor/kobalte-core/chunk/ICNSTULC.js +33 -0
  146. package/vendor/kobalte-core/chunk/IGYOA2ZZ.jsx +33 -0
  147. package/vendor/kobalte-core/chunk/IN725QRS.js +175 -0
  148. package/vendor/kobalte-core/chunk/INFLGCRV.js +123 -0
  149. package/vendor/kobalte-core/chunk/JEP7F7FN.js +89 -0
  150. package/vendor/kobalte-core/chunk/JGNXQB3J.js +140 -0
  151. package/vendor/kobalte-core/chunk/JHMNWOLY.jsx +87 -0
  152. package/vendor/kobalte-core/chunk/JNCCF6MP.jsx +12 -0
  153. package/vendor/kobalte-core/chunk/K6ON3K7Z.js +93 -0
  154. package/vendor/kobalte-core/chunk/K6P57S75.js +23 -0
  155. package/vendor/kobalte-core/chunk/KEL2LLJM.jsx +244 -0
  156. package/vendor/kobalte-core/chunk/KQVCPTCE.js +316 -0
  157. package/vendor/kobalte-core/chunk/KR2RRKPK.jsx +197 -0
  158. package/vendor/kobalte-core/chunk/KVL5CS3M.jsx +37 -0
  159. package/vendor/kobalte-core/chunk/LP6E37CW.jsx +228 -0
  160. package/vendor/kobalte-core/chunk/LUHKRAPV.js +129 -0
  161. package/vendor/kobalte-core/chunk/LV6CC6HJ.js +226 -0
  162. package/vendor/kobalte-core/chunk/MUDPLHYE.js +56 -0
  163. package/vendor/kobalte-core/chunk/NEFPNRTI.jsx +426 -0
  164. package/vendor/kobalte-core/chunk/NY67XGGP.js +216 -0
  165. package/vendor/kobalte-core/chunk/OGE3DKII.jsx +413 -0
  166. package/vendor/kobalte-core/chunk/OK5BA5VH.jsx +533 -0
  167. package/vendor/kobalte-core/chunk/OPHDMVQK.jsx +217 -0
  168. package/vendor/kobalte-core/chunk/OPRD3XHK.js +207 -0
  169. package/vendor/kobalte-core/chunk/OU7DYFTQ.jsx +191 -0
  170. package/vendor/kobalte-core/chunk/OYES4GOP.jsx +21 -0
  171. package/vendor/kobalte-core/chunk/P6IXTWXS.jsx +197 -0
  172. package/vendor/kobalte-core/chunk/PBBM7A6R.jsx +113 -0
  173. package/vendor/kobalte-core/chunk/PKWJSNR5.js +474 -0
  174. package/vendor/kobalte-core/chunk/PTVG6YKC.js +148 -0
  175. package/vendor/kobalte-core/chunk/PTWD4LYA.jsx +537 -0
  176. package/vendor/kobalte-core/chunk/PYSNB6I6.jsx +324 -0
  177. package/vendor/kobalte-core/chunk/Q2T3QQUA.js +419 -0
  178. package/vendor/kobalte-core/chunk/QEMPLYZX.js +28 -0
  179. package/vendor/kobalte-core/chunk/QIRIOMOH.js +338 -0
  180. package/vendor/kobalte-core/chunk/QJIB6BDF.jsx +30 -0
  181. package/vendor/kobalte-core/chunk/QJK6CGTE.js +293 -0
  182. package/vendor/kobalte-core/chunk/R4V3527Z.js +130 -0
  183. package/vendor/kobalte-core/chunk/R5JXRO27.js +1 -0
  184. package/vendor/kobalte-core/chunk/RFN6X5VH.jsx +1058 -0
  185. package/vendor/kobalte-core/chunk/SD3NY4DU.js +344 -0
  186. package/vendor/kobalte-core/chunk/SLRA6PIF.jsx +263 -0
  187. package/vendor/kobalte-core/chunk/SOM3K36D.jsx +191 -0
  188. package/vendor/kobalte-core/chunk/STGRFJHZ.js +43 -0
  189. package/vendor/kobalte-core/chunk/T4C3DMHT.jsx +52 -0
  190. package/vendor/kobalte-core/chunk/TDH5Z2ZB.js +263 -0
  191. package/vendor/kobalte-core/chunk/TP2BLHDF.jsx +284 -0
  192. package/vendor/kobalte-core/chunk/TS4C47MF.js +22 -0
  193. package/vendor/kobalte-core/chunk/TSB6MOZK.jsx +242 -0
  194. package/vendor/kobalte-core/chunk/TVVHJCOX.js +204 -0
  195. package/vendor/kobalte-core/chunk/TY22MKYR.jsx +996 -0
  196. package/vendor/kobalte-core/chunk/UEEZAKDC.js +1 -0
  197. package/vendor/kobalte-core/chunk/UESR3MKV.jsx +743 -0
  198. package/vendor/kobalte-core/chunk/UGE6PPGT.jsx +220 -0
  199. package/vendor/kobalte-core/chunk/UKTBL2JL.jsx +88 -0
  200. package/vendor/kobalte-core/chunk/V25KEN4T.jsx +399 -0
  201. package/vendor/kobalte-core/chunk/VI7QYH27.jsx +33 -0
  202. package/vendor/kobalte-core/chunk/W4MWOWKG.js +310 -0
  203. package/vendor/kobalte-core/chunk/WAUM5GOD.jsx +68 -0
  204. package/vendor/kobalte-core/chunk/WHII6HHI.js +145 -0
  205. package/vendor/kobalte-core/chunk/WKVBAVXH.jsx +378 -0
  206. package/vendor/kobalte-core/chunk/WR5BIFYV.js +780 -0
  207. package/vendor/kobalte-core/chunk/XLBXJFYN.js +108 -0
  208. package/vendor/kobalte-core/chunk/XNF3WGZ2.jsx +176 -0
  209. package/vendor/kobalte-core/chunk/XOC6SOOC.jsx +53 -0
  210. package/vendor/kobalte-core/chunk/XTJD7L6B.jsx +101 -0
  211. package/vendor/kobalte-core/chunk/XUUROM4M.jsx +120 -0
  212. package/vendor/kobalte-core/chunk/YA7DCYMB.js +80 -0
  213. package/vendor/kobalte-core/chunk/YFEENJN5.jsx +41 -0
  214. package/vendor/kobalte-core/chunk/YGDQXQ2B.js +28 -0
  215. package/vendor/kobalte-core/chunk/YKGT7A57.js +85 -0
  216. package/vendor/kobalte-core/chunk/YPUNLYJC.js +268 -0
  217. package/vendor/kobalte-core/chunk/YSW4UOAR.js +40 -0
  218. package/vendor/kobalte-core/chunk/ZAGMEN2K.jsx +152 -0
  219. package/vendor/kobalte-core/chunk/ZG3NR5OC.jsx +120 -0
  220. package/vendor/kobalte-core/chunk/ZZYKR3VO.jsx +42 -0
  221. package/vendor/kobalte-core/collapsible/index.d.ts +7 -0
  222. package/vendor/kobalte-core/collapsible/index.js +2 -0
  223. package/vendor/kobalte-core/collapsible/index.jsx +23 -0
  224. package/vendor/kobalte-core/collapsible-trigger-6358fcd4.d.ts +84 -0
  225. package/vendor/kobalte-core/color-area/index.d.ts +189 -0
  226. package/vendor/kobalte-core/color-area/index.js +724 -0
  227. package/vendor/kobalte-core/color-area/index.jsx +777 -0
  228. package/vendor/kobalte-core/color-channel-field/index.d.ts +49 -0
  229. package/vendor/kobalte-core/color-channel-field/index.js +72 -0
  230. package/vendor/kobalte-core/color-channel-field/index.jsx +117 -0
  231. package/vendor/kobalte-core/color-field/index.d.ts +48 -0
  232. package/vendor/kobalte-core/color-field/index.js +114 -0
  233. package/vendor/kobalte-core/color-field/index.jsx +155 -0
  234. package/vendor/kobalte-core/color-mode/index.d.ts +78 -0
  235. package/vendor/kobalte-core/color-mode/index.js +2 -0
  236. package/vendor/kobalte-core/color-mode/index.jsx +28 -0
  237. package/vendor/kobalte-core/color-slider/index.d.ts +109 -0
  238. package/vendor/kobalte-core/color-slider/index.js +183 -0
  239. package/vendor/kobalte-core/color-slider/index.jsx +255 -0
  240. package/vendor/kobalte-core/color-swatch/index.d.ts +39 -0
  241. package/vendor/kobalte-core/color-swatch/index.js +48 -0
  242. package/vendor/kobalte-core/color-swatch/index.jsx +64 -0
  243. package/vendor/kobalte-core/color-wheel/index.d.ts +166 -0
  244. package/vendor/kobalte-core/color-wheel/index.js +620 -0
  245. package/vendor/kobalte-core/color-wheel/index.jsx +640 -0
  246. package/vendor/kobalte-core/colors/index.d.ts +15 -0
  247. package/vendor/kobalte-core/colors/index.js +2 -0
  248. package/vendor/kobalte-core/colors/index.jsx +17 -0
  249. package/vendor/kobalte-core/combobox/index.d.ts +20 -0
  250. package/vendor/kobalte-core/combobox/index.js +8 -0
  251. package/vendor/kobalte-core/combobox/index.jsx +80 -0
  252. package/vendor/kobalte-core/combobox-root-3702d1f6.d.ts +382 -0
  253. package/vendor/kobalte-core/context-menu/index.d.ts +15 -0
  254. package/vendor/kobalte-core/context-menu/index.js +5 -0
  255. package/vendor/kobalte-core/context-menu/index.jsx +75 -0
  256. package/vendor/kobalte-core/create-list-state-d9a0f1f2.d.ts +232 -0
  257. package/vendor/kobalte-core/dialog/index.d.ts +10 -0
  258. package/vendor/kobalte-core/dialog/index.js +2 -0
  259. package/vendor/kobalte-core/dialog/index.jsx +40 -0
  260. package/vendor/kobalte-core/dialog-trigger-f415bd9b.d.ts +184 -0
  261. package/vendor/kobalte-core/dismissable-layer/index.d.ts +51 -0
  262. package/vendor/kobalte-core/dismissable-layer/index.js +2 -0
  263. package/vendor/kobalte-core/dismissable-layer/index.jsx +12 -0
  264. package/vendor/kobalte-core/dropdown-menu/index.d.ts +18 -0
  265. package/vendor/kobalte-core/dropdown-menu/index.js +5 -0
  266. package/vendor/kobalte-core/dropdown-menu/index.jsx +73 -0
  267. package/vendor/kobalte-core/file-field/index.d.ts +221 -0
  268. package/vendor/kobalte-core/file-field/index.js +539 -0
  269. package/vendor/kobalte-core/file-field/index.jsx +564 -0
  270. package/vendor/kobalte-core/form-control-description-330657bc.d.ts +49 -0
  271. package/vendor/kobalte-core/form-control-error-message-9efcbea8.d.ts +25 -0
  272. package/vendor/kobalte-core/form-control-label-2a5ca7a3.d.ts +22 -0
  273. package/vendor/kobalte-core/hover-card/index.d.ts +11 -0
  274. package/vendor/kobalte-core/hover-card/index.js +3 -0
  275. package/vendor/kobalte-core/hover-card/index.jsx +33 -0
  276. package/vendor/kobalte-core/i18n/index.d.ts +81 -0
  277. package/vendor/kobalte-core/i18n/index.js +2 -0
  278. package/vendor/kobalte-core/i18n/index.jsx +28 -0
  279. package/vendor/kobalte-core/image/index.d.ts +5 -0
  280. package/vendor/kobalte-core/image/index.js +2 -0
  281. package/vendor/kobalte-core/image/index.jsx +17 -0
  282. package/vendor/kobalte-core/index-19a0ff67.d.ts +180 -0
  283. package/vendor/kobalte-core/index-1a4410b1.d.ts +184 -0
  284. package/vendor/kobalte-core/index-29c57b8d.d.ts +90 -0
  285. package/vendor/kobalte-core/index-2a97f0d5.d.ts +259 -0
  286. package/vendor/kobalte-core/index-339032c6.d.ts +24 -0
  287. package/vendor/kobalte-core/index-3a4165aa.d.ts +38 -0
  288. package/vendor/kobalte-core/index-45d19411.d.ts +181 -0
  289. package/vendor/kobalte-core/index-47114d4c.d.ts +153 -0
  290. package/vendor/kobalte-core/index-4933558f.d.ts +22 -0
  291. package/vendor/kobalte-core/index-4cb1a0c7.d.ts +178 -0
  292. package/vendor/kobalte-core/index-544033ad.d.ts +148 -0
  293. package/vendor/kobalte-core/index-5eae1bf9.d.ts +145 -0
  294. package/vendor/kobalte-core/index-64ed0578.d.ts +47 -0
  295. package/vendor/kobalte-core/index-68c6e688.d.ts +125 -0
  296. package/vendor/kobalte-core/index-71913923.d.ts +107 -0
  297. package/vendor/kobalte-core/index-774e18fb.d.ts +155 -0
  298. package/vendor/kobalte-core/index-78f1e72b.d.ts +22 -0
  299. package/vendor/kobalte-core/index-79050fd4.d.ts +22 -0
  300. package/vendor/kobalte-core/index-82a3d7cf.d.ts +76 -0
  301. package/vendor/kobalte-core/index-839e646d.d.ts +308 -0
  302. package/vendor/kobalte-core/index-8b78f50e.d.ts +96 -0
  303. package/vendor/kobalte-core/index-8dfcce13.d.ts +49 -0
  304. package/vendor/kobalte-core/index-929e4c7c.d.ts +109 -0
  305. package/vendor/kobalte-core/index-a6cbe732.d.ts +267 -0
  306. package/vendor/kobalte-core/index-a8504bc6.d.ts +105 -0
  307. package/vendor/kobalte-core/index-d652f235.d.ts +234 -0
  308. package/vendor/kobalte-core/index-d734f7ac.d.ts +120 -0
  309. package/vendor/kobalte-core/index-e3628d61.d.ts +405 -0
  310. package/vendor/kobalte-core/index-e8f9edc7.d.ts +484 -0
  311. package/vendor/kobalte-core/index-e96454a3.d.ts +113 -0
  312. package/vendor/kobalte-core/index-ed2fe8c4.d.ts +176 -0
  313. package/vendor/kobalte-core/index-f3e15e6a.d.ts +107 -0
  314. package/vendor/kobalte-core/index.d.ts +333 -0
  315. package/vendor/kobalte-core/index.js +56 -0
  316. package/vendor/kobalte-core/index.jsx +322 -0
  317. package/vendor/kobalte-core/link/index.d.ts +6 -0
  318. package/vendor/kobalte-core/link/index.js +2 -0
  319. package/vendor/kobalte-core/link/index.jsx +12 -0
  320. package/vendor/kobalte-core/link-root-bf54d4f3.d.ts +26 -0
  321. package/vendor/kobalte-core/listbox/index.d.ts +10 -0
  322. package/vendor/kobalte-core/listbox/index.js +2 -0
  323. package/vendor/kobalte-core/listbox/index.jsx +30 -0
  324. package/vendor/kobalte-core/listbox-item-indicator-b8390ce9.d.ts +27 -0
  325. package/vendor/kobalte-core/listbox-section-58338bda.d.ts +172 -0
  326. package/vendor/kobalte-core/menu/index.d.ts +41 -0
  327. package/vendor/kobalte-core/menu/index.js +2 -0
  328. package/vendor/kobalte-core/menu/index.jsx +72 -0
  329. package/vendor/kobalte-core/menu-sub-trigger-29a7ad75.d.ts +462 -0
  330. package/vendor/kobalte-core/menubar/index.d.ts +19 -0
  331. package/vendor/kobalte-core/menubar/index.js +6 -0
  332. package/vendor/kobalte-core/menubar/index.jsx +79 -0
  333. package/vendor/kobalte-core/menubar-context-c1a81ca0.d.ts +73 -0
  334. package/vendor/kobalte-core/meter/index.d.ts +15 -0
  335. package/vendor/kobalte-core/meter/index.js +2 -0
  336. package/vendor/kobalte-core/meter/index.jsx +23 -0
  337. package/vendor/kobalte-core/meter-value-label-797727cd.d.ts +117 -0
  338. package/vendor/kobalte-core/navigation-menu/index.d.ts +191 -0
  339. package/vendor/kobalte-core/navigation-menu/index.js +432 -0
  340. package/vendor/kobalte-core/navigation-menu/index.jsx +571 -0
  341. package/vendor/kobalte-core/number-field/index.d.ts +11 -0
  342. package/vendor/kobalte-core/number-field/index.js +5 -0
  343. package/vendor/kobalte-core/number-field/index.jsx +42 -0
  344. package/vendor/kobalte-core/number-field-root-3524531f.d.ts +128 -0
  345. package/vendor/kobalte-core/pagination/index.d.ts +6 -0
  346. package/vendor/kobalte-core/pagination/index.js +2 -0
  347. package/vendor/kobalte-core/pagination/index.jsx +26 -0
  348. package/vendor/kobalte-core/polymorphic/index.d.ts +29 -0
  349. package/vendor/kobalte-core/polymorphic/index.js +2 -0
  350. package/vendor/kobalte-core/polymorphic/index.jsx +8 -0
  351. package/vendor/kobalte-core/popover/index.d.ts +11 -0
  352. package/vendor/kobalte-core/popover/index.js +3 -0
  353. package/vendor/kobalte-core/popover/index.jsx +45 -0
  354. package/vendor/kobalte-core/popper/index.d.ts +42 -0
  355. package/vendor/kobalte-core/popper/index.js +2 -0
  356. package/vendor/kobalte-core/popper/index.jsx +20 -0
  357. package/vendor/kobalte-core/popper-arrow-89a19127.d.ts +24 -0
  358. package/vendor/kobalte-core/popper-root-c2da235c.d.ts +81 -0
  359. package/vendor/kobalte-core/primitives/create-collection/index.d.ts +16 -0
  360. package/vendor/kobalte-core/primitives/create-collection/index.js +3 -0
  361. package/vendor/kobalte-core/primitives/create-collection/index.jsx +12 -0
  362. package/vendor/kobalte-core/primitives/create-controllable-signal/index.d.ts +33 -0
  363. package/vendor/kobalte-core/primitives/create-controllable-signal/index.js +2 -0
  364. package/vendor/kobalte-core/primitives/create-controllable-signal/index.jsx +15 -0
  365. package/vendor/kobalte-core/primitives/create-disclosure-state/index.d.ts +31 -0
  366. package/vendor/kobalte-core/primitives/create-disclosure-state/index.js +2 -0
  367. package/vendor/kobalte-core/primitives/create-disclosure-state/index.jsx +10 -0
  368. package/vendor/kobalte-core/primitives/create-dom-collection/index.d.ts +32 -0
  369. package/vendor/kobalte-core/primitives/create-dom-collection/index.js +2 -0
  370. package/vendor/kobalte-core/primitives/create-dom-collection/index.jsx +17 -0
  371. package/vendor/kobalte-core/primitives/create-escape-key-down/index.d.ts +18 -0
  372. package/vendor/kobalte-core/primitives/create-escape-key-down/index.js +2 -0
  373. package/vendor/kobalte-core/primitives/create-escape-key-down/index.jsx +8 -0
  374. package/vendor/kobalte-core/primitives/create-focus-scope/index.d.ts +21 -0
  375. package/vendor/kobalte-core/primitives/create-focus-scope/index.js +2 -0
  376. package/vendor/kobalte-core/primitives/create-focus-scope/index.jsx +9 -0
  377. package/vendor/kobalte-core/primitives/create-form-reset-listener/index.d.ts +9 -0
  378. package/vendor/kobalte-core/primitives/create-form-reset-listener/index.js +2 -0
  379. package/vendor/kobalte-core/primitives/create-form-reset-listener/index.jsx +8 -0
  380. package/vendor/kobalte-core/primitives/create-hide-outside/index.d.ts +29 -0
  381. package/vendor/kobalte-core/primitives/create-hide-outside/index.js +2 -0
  382. package/vendor/kobalte-core/primitives/create-hide-outside/index.jsx +12 -0
  383. package/vendor/kobalte-core/primitives/create-interact-outside/index.d.ts +39 -0
  384. package/vendor/kobalte-core/primitives/create-interact-outside/index.js +2 -0
  385. package/vendor/kobalte-core/primitives/create-interact-outside/index.jsx +9 -0
  386. package/vendor/kobalte-core/primitives/create-register-id/index.d.ts +9 -0
  387. package/vendor/kobalte-core/primitives/create-register-id/index.js +2 -0
  388. package/vendor/kobalte-core/primitives/create-register-id/index.jsx +8 -0
  389. package/vendor/kobalte-core/primitives/create-size/index.d.ts +9 -0
  390. package/vendor/kobalte-core/primitives/create-size/index.js +2 -0
  391. package/vendor/kobalte-core/primitives/create-size/index.jsx +8 -0
  392. package/vendor/kobalte-core/primitives/create-tag-name/index.d.ts +15 -0
  393. package/vendor/kobalte-core/primitives/create-tag-name/index.js +2 -0
  394. package/vendor/kobalte-core/primitives/create-tag-name/index.jsx +9 -0
  395. package/vendor/kobalte-core/primitives/create-toggle-state/index.d.ts +33 -0
  396. package/vendor/kobalte-core/primitives/create-toggle-state/index.js +2 -0
  397. package/vendor/kobalte-core/primitives/create-toggle-state/index.jsx +10 -0
  398. package/vendor/kobalte-core/primitives/create-transition/index.d.ts +52 -0
  399. package/vendor/kobalte-core/primitives/create-transition/index.js +2 -0
  400. package/vendor/kobalte-core/primitives/create-transition/index.jsx +8 -0
  401. package/vendor/kobalte-core/progress/index.d.ts +6 -0
  402. package/vendor/kobalte-core/progress/index.js +2 -0
  403. package/vendor/kobalte-core/progress/index.jsx +24 -0
  404. package/vendor/kobalte-core/radio-group/index.d.ts +8 -0
  405. package/vendor/kobalte-core/radio-group/index.js +4 -0
  406. package/vendor/kobalte-core/radio-group/index.jsx +40 -0
  407. package/vendor/kobalte-core/radio-group-root-0af7f9b9.d.ts +195 -0
  408. package/vendor/kobalte-core/rating/index.d.ts +172 -0
  409. package/vendor/kobalte-core/rating/index.js +464 -0
  410. package/vendor/kobalte-core/rating/index.jsx +540 -0
  411. package/vendor/kobalte-core/search/index.d.ts +85 -0
  412. package/vendor/kobalte-core/search/index.js +177 -0
  413. package/vendor/kobalte-core/search/index.jsx +227 -0
  414. package/vendor/kobalte-core/segmented-control/index.d.ts +69 -0
  415. package/vendor/kobalte-core/segmented-control/index.js +162 -0
  416. package/vendor/kobalte-core/segmented-control/index.jsx +217 -0
  417. package/vendor/kobalte-core/select/index.d.ts +19 -0
  418. package/vendor/kobalte-core/select/index.js +6 -0
  419. package/vendor/kobalte-core/select/index.jsx +75 -0
  420. package/vendor/kobalte-core/separator/index.d.ts +6 -0
  421. package/vendor/kobalte-core/separator/index.js +2 -0
  422. package/vendor/kobalte-core/separator/index.jsx +12 -0
  423. package/vendor/kobalte-core/separator-root-cb685406.d.ts +25 -0
  424. package/vendor/kobalte-core/skeleton/index.d.ts +5 -0
  425. package/vendor/kobalte-core/skeleton/index.js +2 -0
  426. package/vendor/kobalte-core/skeleton/index.jsx +11 -0
  427. package/vendor/kobalte-core/slider/index.d.ts +11 -0
  428. package/vendor/kobalte-core/slider/index.js +5 -0
  429. package/vendor/kobalte-core/slider/index.jsx +43 -0
  430. package/vendor/kobalte-core/slider-value-label-2be90f59.d.ts +211 -0
  431. package/vendor/kobalte-core/spin-button/index.d.ts +10 -0
  432. package/vendor/kobalte-core/spin-button/index.js +2 -0
  433. package/vendor/kobalte-core/spin-button/index.jsx +12 -0
  434. package/vendor/kobalte-core/spin-button-root-3a44420a.d.ts +63 -0
  435. package/vendor/kobalte-core/switch/index.d.ts +8 -0
  436. package/vendor/kobalte-core/switch/index.js +2 -0
  437. package/vendor/kobalte-core/switch/index.jsx +35 -0
  438. package/vendor/kobalte-core/tabs/index.d.ts +8 -0
  439. package/vendor/kobalte-core/tabs/index.js +2 -0
  440. package/vendor/kobalte-core/tabs/index.jsx +27 -0
  441. package/vendor/kobalte-core/text-field/index.d.ts +9 -0
  442. package/vendor/kobalte-core/text-field/index.js +5 -0
  443. package/vendor/kobalte-core/text-field/index.jsx +34 -0
  444. package/vendor/kobalte-core/text-field-root-0b8dfa5a.d.ts +73 -0
  445. package/vendor/kobalte-core/time-field/index.d.ts +165 -0
  446. package/vendor/kobalte-core/time-field/index.js +818 -0
  447. package/vendor/kobalte-core/time-field/index.jsx +824 -0
  448. package/vendor/kobalte-core/toast/index.d.ts +6 -0
  449. package/vendor/kobalte-core/toast/index.js +2 -0
  450. package/vendor/kobalte-core/toast/index.jsx +33 -0
  451. package/vendor/kobalte-core/toggle-button/index.d.ts +7 -0
  452. package/vendor/kobalte-core/toggle-button/index.js +2 -0
  453. package/vendor/kobalte-core/toggle-button/index.jsx +16 -0
  454. package/vendor/kobalte-core/toggle-button-root-1cfacf95.d.ts +42 -0
  455. package/vendor/kobalte-core/toggle-group/index.d.ts +10 -0
  456. package/vendor/kobalte-core/toggle-group/index.js +2 -0
  457. package/vendor/kobalte-core/toggle-group/index.jsx +26 -0
  458. package/vendor/kobalte-core/tooltip/index.d.ts +10 -0
  459. package/vendor/kobalte-core/tooltip/index.js +3 -0
  460. package/vendor/kobalte-core/tooltip/index.jsx +32 -0
  461. package/vendor/kobalte-core/types-6adf33e1.d.ts +8 -0
  462. package/vendor/kobalte-core/types-877adc4a.d.ts +125 -0
  463. package/vendor/kobalte-core/types-f8ae18e5.d.ts +72 -0
  464. package/vendor/kobalte-core/utils-45fb8d63.d.ts +11 -0
  465. package/vendor/kobalte-utils/LICENSE.md +21 -0
  466. package/vendor/kobalte-utils/NOTICE.txt +231 -0
  467. package/vendor/kobalte-utils/index.cjs +878 -0
  468. package/vendor/kobalte-utils/index.d.cts +227 -0
  469. package/vendor/kobalte-utils/index.d.ts +227 -0
  470. package/vendor/kobalte-utils/index.js +791 -0
  471. package/vendor/origins.json +33 -0
  472. package/vendor/solid-web/LICENSE +21 -0
  473. package/vendor/solid-web/dev.cjs +896 -0
  474. package/vendor/solid-web/dev.js +784 -0
  475. package/vendor/solid-web/server.cjs +2 -0
  476. package/vendor/solid-web/server.js +2 -0
  477. package/vendor/solid-web/types/client.d.ts +93 -0
  478. package/vendor/solid-web/types/core.d.ts +2 -0
  479. package/vendor/solid-web/types/index.d.ts +50 -0
  480. package/vendor/solid-web/types/jsx.d.ts +1 -0
  481. package/vendor/solid-web/types/server-mock.d.ts +65 -0
  482. package/vendor/solid-web/types/server.d.ts +187 -0
  483. package/vendor/solid-web/web.cjs +885 -0
  484. package/vendor/solid-web/web.js +773 -0
@@ -0,0 +1,784 @@
1
+ // Vendored and modified by Gemologic Sheen from solid-js@1.9.15; see package THIRD_PARTY_NOTICES.md.
2
+ import { createMemo, sharedConfig, createRenderEffect, createRoot, untrack, splitProps, getOwner, createEffect, runWithOwner, createSignal, onCleanup, $DEVCOMP, enableHydration } from 'solid-js';
3
+ export { ErrorBoundary, For, Index, Match, Show, Suspense, SuspenseList, Switch, createComponent, createRenderEffect as effect, getOwner, mergeProps, untrack } from 'solid-js';
4
+
5
+ const booleans = ["allowfullscreen", "async", "alpha",
6
+ "autofocus",
7
+ "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden",
8
+ "indeterminate", "inert",
9
+ "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless",
10
+ "selected", "adauctionheaders",
11
+ "browsingtopics",
12
+ "credentialless",
13
+ "defaultchecked", "defaultmuted", "defaultselected", "defer", "disablepictureinpicture", "disableremoteplayback", "preservespitch",
14
+ "shadowrootclonable", "shadowrootcustomelementregistry",
15
+ "shadowrootdelegatesfocus", "shadowrootserializable",
16
+ "sharedstoragewritable"
17
+ ];
18
+ const Properties = /*#__PURE__*/new Set([
19
+ "className", "value",
20
+ "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", "adAuctionHeaders",
21
+ "allowFullscreen", "browsingTopics",
22
+ "defaultChecked", "defaultMuted", "defaultSelected", "disablePictureInPicture", "disableRemotePlayback", "preservesPitch", "shadowRootClonable", "shadowRootCustomElementRegistry",
23
+ "shadowRootDelegatesFocus", "shadowRootSerializable",
24
+ "sharedStorageWritable",
25
+ ...booleans]);
26
+ const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]);
27
+ const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
28
+ className: "class",
29
+ htmlFor: "for"
30
+ });
31
+ const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
32
+ class: "className",
33
+ novalidate: {
34
+ $: "noValidate",
35
+ FORM: 1
36
+ },
37
+ formnovalidate: {
38
+ $: "formNoValidate",
39
+ BUTTON: 1,
40
+ INPUT: 1
41
+ },
42
+ ismap: {
43
+ $: "isMap",
44
+ IMG: 1
45
+ },
46
+ nomodule: {
47
+ $: "noModule",
48
+ SCRIPT: 1
49
+ },
50
+ playsinline: {
51
+ $: "playsInline",
52
+ VIDEO: 1
53
+ },
54
+ readonly: {
55
+ $: "readOnly",
56
+ INPUT: 1,
57
+ TEXTAREA: 1
58
+ },
59
+ adauctionheaders: {
60
+ $: "adAuctionHeaders",
61
+ IFRAME: 1
62
+ },
63
+ allowfullscreen: {
64
+ $: "allowFullscreen",
65
+ IFRAME: 1
66
+ },
67
+ browsingtopics: {
68
+ $: "browsingTopics",
69
+ IMG: 1
70
+ },
71
+ defaultchecked: {
72
+ $: "defaultChecked",
73
+ INPUT: 1
74
+ },
75
+ defaultmuted: {
76
+ $: "defaultMuted",
77
+ AUDIO: 1,
78
+ VIDEO: 1
79
+ },
80
+ defaultselected: {
81
+ $: "defaultSelected",
82
+ OPTION: 1
83
+ },
84
+ disablepictureinpicture: {
85
+ $: "disablePictureInPicture",
86
+ VIDEO: 1
87
+ },
88
+ disableremoteplayback: {
89
+ $: "disableRemotePlayback",
90
+ AUDIO: 1,
91
+ VIDEO: 1
92
+ },
93
+ preservespitch: {
94
+ $: "preservesPitch",
95
+ AUDIO: 1,
96
+ VIDEO: 1
97
+ },
98
+ shadowrootclonable: {
99
+ $: "shadowRootClonable",
100
+ TEMPLATE: 1
101
+ },
102
+ shadowrootdelegatesfocus: {
103
+ $: "shadowRootDelegatesFocus",
104
+ TEMPLATE: 1
105
+ },
106
+ shadowrootserializable: {
107
+ $: "shadowRootSerializable",
108
+ TEMPLATE: 1
109
+ },
110
+ sharedstoragewritable: {
111
+ $: "sharedStorageWritable",
112
+ IFRAME: 1,
113
+ IMG: 1
114
+ }
115
+ });
116
+ function getPropAlias(prop, tagName) {
117
+ const a = PropAliases[prop];
118
+ return typeof a === "object" ? a[tagName] ? a["$"] : undefined : a;
119
+ }
120
+ const DelegatedEvents = /*#__PURE__*/new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
121
+ const SVGElements = /*#__PURE__*/new Set([
122
+ "altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "font", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignObject", "g", "glyph", "glyphRef", "hkern", "image", "line", "linearGradient", "marker", "mask", "metadata", "missing-glyph", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect",
123
+ "set", "stop",
124
+ "svg", "switch", "symbol", "text", "textPath",
125
+ "tref", "tspan", "use", "view", "vkern"]);
126
+ const SVGNamespace = {
127
+ xlink: "http://www.w3.org/1999/xlink",
128
+ xml: "http://www.w3.org/XML/1998/namespace"
129
+ };
130
+ const DOMElements = /*#__PURE__*/new Set(["html", "base", "head", "link", "meta", "style", "title", "body", "address", "article", "aside", "footer", "header", "main", "nav", "section", "body", "blockquote", "dd", "div", "dl", "dt", "figcaption", "figure", "hr", "li", "ol", "p", "pre", "ul", "a", "abbr", "b", "bdi", "bdo", "br", "cite", "code", "data", "dfn", "em", "i", "kbd", "mark", "q", "rp", "rt", "ruby", "s", "samp", "small", "span", "strong", "sub", "sup", "time", "u", "var", "wbr", "area", "audio", "img", "map", "track", "video", "embed", "iframe", "object", "param", "picture", "portal", "source", "svg", "math", "canvas", "noscript", "script", "del", "ins", "caption", "col", "colgroup", "table", "tbody", "td", "tfoot", "th", "thead", "tr", "button", "datalist", "fieldset", "form", "input", "label", "legend", "meter", "optgroup", "option", "output", "progress", "select", "textarea", "details", "dialog", "menu", "summary", "details", "slot", "template", "acronym", "applet", "basefont", "bgsound", "big", "blink", "center", "content", "dir", "font", "frame", "frameset", "hgroup", "image", "keygen", "marquee", "menuitem", "nobr", "noembed", "noframes", "plaintext", "rb", "rtc", "shadow", "spacer", "strike", "tt", "xmp", "a", "abbr", "acronym", "address", "applet", "area", "article", "aside", "audio", "b", "base", "basefont", "bdi", "bdo", "bgsound", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "font", "footer", "form", "frame", "frameset", "head", "header", "hgroup", "hr", "html", "i", "iframe", "image", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "nobr", "noembed", "noframes", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "plaintext", "portal", "pre", "progress", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "tt", "u", "ul", "var", "video", "wbr", "xmp", "input", "h1", "h2", "h3", "h4", "h5", "h6",
131
+ "webview",
132
+ "isindex", "listing", "multicol", "nextid", "noindex", "search"]);
133
+
134
+ const memo = fn => createMemo(() => fn());
135
+
136
+ function reconcileArrays(parentNode, a, b) {
137
+ let bLength = b.length,
138
+ aEnd = a.length,
139
+ bEnd = bLength,
140
+ aStart = 0,
141
+ bStart = 0,
142
+ after = a[aEnd - 1].nextSibling,
143
+ map = null;
144
+ while (aStart < aEnd || bStart < bEnd) {
145
+ if (a[aStart] === b[bStart]) {
146
+ aStart++;
147
+ bStart++;
148
+ continue;
149
+ }
150
+ while (a[aEnd - 1] === b[bEnd - 1]) {
151
+ aEnd--;
152
+ bEnd--;
153
+ }
154
+ if (aEnd === aStart) {
155
+ const node = bEnd < bLength ? bStart ? b[bStart - 1].nextSibling : b[bEnd - bStart] : after;
156
+ while (bStart < bEnd) parentNode.insertBefore(b[bStart++], node);
157
+ } else if (bEnd === bStart) {
158
+ while (aStart < aEnd) {
159
+ if (!map || !map.has(a[aStart])) a[aStart].remove();
160
+ aStart++;
161
+ }
162
+ } else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {
163
+ const node = a[--aEnd].nextSibling;
164
+ parentNode.insertBefore(b[bStart++], a[aStart++].nextSibling);
165
+ parentNode.insertBefore(b[--bEnd], node);
166
+ a[aEnd] = b[bEnd];
167
+ } else {
168
+ if (!map) {
169
+ map = new Map();
170
+ let i = bStart;
171
+ while (i < bEnd) map.set(b[i], i++);
172
+ }
173
+ const index = map.get(a[aStart]);
174
+ if (index != null) {
175
+ if (bStart < index && index < bEnd) {
176
+ let i = aStart,
177
+ sequence = 1,
178
+ t;
179
+ while (++i < aEnd && i < bEnd) {
180
+ if ((t = map.get(a[i])) == null || t !== index + sequence) break;
181
+ sequence++;
182
+ }
183
+ if (sequence > index - bStart) {
184
+ const node = a[aStart];
185
+ while (bStart < index) parentNode.insertBefore(b[bStart++], node);
186
+ } else parentNode.replaceChild(b[bStart++], a[aStart++]);
187
+ } else aStart++;
188
+ } else a[aStart++].remove();
189
+ }
190
+ }
191
+ }
192
+
193
+ const $$EVENTS = "_$DX_DELEGATE";
194
+ function render(code, element, init, options = {}) {
195
+ if (!element) {
196
+ throw new Error("The `element` passed to `render(..., element)` doesn't exist. Make sure `element` exists in the document.");
197
+ }
198
+ let disposer;
199
+ createRoot(dispose => {
200
+ disposer = dispose;
201
+ element === document ? code() : insert(element, code(), element.firstChild ? null : undefined, init);
202
+ }, options.owner);
203
+ return () => {
204
+ disposer();
205
+ element.textContent = "";
206
+ };
207
+ }
208
+ function template(html, isImportNode, isSVG, isMathML) {
209
+ let node;
210
+ const create = () => {
211
+ if (isHydrating()) throw new Error("Failed attempt to create new DOM elements during hydration. Check that the libraries you are using support hydration.");
212
+ const t = isMathML ? document.createElementNS("http://www.w3.org/1998/Math/MathML", "template") : document.createElement("template");
213
+ t.innerHTML = html;
214
+ return isSVG ? t.content.firstChild.firstChild : isMathML ? t.firstChild : t.content.firstChild;
215
+ };
216
+ const fn = isImportNode ? () => untrack(() => document.importNode(node || (node = create()), true)) : () => (node || (node = create())).cloneNode(true);
217
+ fn.cloneNode = fn;
218
+ return fn;
219
+ }
220
+ function delegateEvents(eventNames, document = window.document) {
221
+ const e = document[$$EVENTS] || (document[$$EVENTS] = new Set());
222
+ for (let i = 0, l = eventNames.length; i < l; i++) {
223
+ const name = eventNames[i];
224
+ if (!e.has(name)) {
225
+ e.add(name);
226
+ document.addEventListener(name, eventHandler);
227
+ }
228
+ }
229
+ }
230
+ function clearDelegatedEvents(document = window.document) {
231
+ if (document[$$EVENTS]) {
232
+ for (let name of document[$$EVENTS].keys()) document.removeEventListener(name, eventHandler);
233
+ delete document[$$EVENTS];
234
+ }
235
+ }
236
+ function setProperty(node, name, value) {
237
+ if (isHydrating(node)) return;
238
+ if ((name === "value" || name === "defaultValue") && (node.nodeName === "INPUT" || node.nodeName === "TEXTAREA")) node[name] = value ?? "";else node[name] = value;
239
+ }
240
+ function setAttribute(node, name, value) {
241
+ if (isHydrating(node)) return;
242
+ if (value == null) node.removeAttribute(name);else node.setAttribute(name, value);
243
+ }
244
+ function setAttributeNS(node, namespace, name, value) {
245
+ if (isHydrating(node)) return;
246
+ if (value == null) node.removeAttributeNS(namespace, name);else node.setAttributeNS(namespace, name, value);
247
+ }
248
+ function setBoolAttribute(node, name, value) {
249
+ if (isHydrating(node)) return;
250
+ value ? node.setAttribute(name, "") : node.removeAttribute(name);
251
+ }
252
+ function className(node, value) {
253
+ if (isHydrating(node)) return;
254
+ if (value == null) node.removeAttribute("class");else node.className = value;
255
+ }
256
+ function addEventListener(node, name, handler, delegate) {
257
+ if (delegate) {
258
+ if (Array.isArray(handler)) {
259
+ node[`$$${name}`] = handler[0];
260
+ node[`$$${name}Data`] = handler[1];
261
+ } else node[`$$${name}`] = handler;
262
+ } else if (Array.isArray(handler)) {
263
+ const handlerFn = handler[0];
264
+ node.addEventListener(name, handler[0] = e => handlerFn.call(node, handler[1], e));
265
+ } else node.addEventListener(name, handler, typeof handler !== "function" && handler);
266
+ }
267
+ function classList(node, value, prev = {}) {
268
+ const classKeys = Object.keys(value || {}),
269
+ prevKeys = Object.keys(prev);
270
+ let i, len;
271
+ for (i = 0, len = prevKeys.length; i < len; i++) {
272
+ const key = prevKeys[i];
273
+ if (!key || key === "undefined" || value[key]) continue;
274
+ toggleClassKey(node, key, false);
275
+ delete prev[key];
276
+ }
277
+ for (i = 0, len = classKeys.length; i < len; i++) {
278
+ const key = classKeys[i],
279
+ classValue = !!value[key];
280
+ if (!key || key === "undefined" || prev[key] === classValue || !classValue) continue;
281
+ toggleClassKey(node, key, true);
282
+ prev[key] = classValue;
283
+ }
284
+ return prev;
285
+ }
286
+ function style(node, value, prev) {
287
+ if (!value) return prev ? setAttribute(node, "style") : value;
288
+ const nodeStyle = node.style;
289
+ if (typeof value === "string") return nodeStyle.cssText = value;
290
+ typeof prev === "string" && (nodeStyle.cssText = prev = undefined);
291
+ prev || (prev = {});
292
+ value || (value = {});
293
+ let v, s;
294
+ for (s in prev) {
295
+ value[s] == null && nodeStyle.removeProperty(s);
296
+ delete prev[s];
297
+ }
298
+ for (s in value) {
299
+ v = value[s];
300
+ if (v !== prev[s]) {
301
+ nodeStyle.setProperty(s, v);
302
+ prev[s] = v;
303
+ }
304
+ }
305
+ return prev;
306
+ }
307
+ function setStyleProperty(node, name, value) {
308
+ value != null ? node.style.setProperty(name, value) : node.style.removeProperty(name);
309
+ }
310
+ function spread(node, props = {}, isSVG, skipChildren) {
311
+ const prevProps = {};
312
+ if (!skipChildren) {
313
+ createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
314
+ }
315
+ createRenderEffect(() => typeof props.ref === "function" && use(props.ref, node));
316
+ createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
317
+ return prevProps;
318
+ }
319
+ function dynamicProperty(props, key) {
320
+ const src = props[key];
321
+ Object.defineProperty(props, key, {
322
+ get() {
323
+ return src();
324
+ },
325
+ enumerable: true
326
+ });
327
+ return props;
328
+ }
329
+ function use(fn, element, arg) {
330
+ return untrack(() => fn(element, arg));
331
+ }
332
+ function insert(parent, accessor, marker, initial) {
333
+ if (marker !== undefined && !initial) initial = [];
334
+ if (typeof accessor !== "function") return insertExpression(parent, accessor, initial, marker);
335
+ createRenderEffect(current => insertExpression(parent, accessor(), current, marker), initial);
336
+ }
337
+ function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = false) {
338
+ props || (props = {});
339
+ for (const prop in prevProps) {
340
+ if (!(prop in props)) {
341
+ if (prop === "children") continue;
342
+ prevProps[prop] = assignProp(node, prop, null, prevProps[prop], isSVG, skipRef, props);
343
+ }
344
+ }
345
+ for (const prop in props) {
346
+ if (prop === "children") {
347
+ if (!skipChildren) insertExpression(node, props.children);
348
+ continue;
349
+ }
350
+ const value = props[prop];
351
+ prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG, skipRef, props);
352
+ }
353
+ }
354
+ function hydrate$1(code, element, options = {}) {
355
+ if (globalThis._$HY.done) return render(code, element, [...element.childNodes], options);
356
+ sharedConfig.completed = globalThis._$HY.completed;
357
+ sharedConfig.events = globalThis._$HY.events;
358
+ sharedConfig.load = id => globalThis._$HY.r[id];
359
+ sharedConfig.has = id => id in globalThis._$HY.r;
360
+ sharedConfig.gather = root => gatherHydratable(element, root);
361
+ sharedConfig.registry = new Map();
362
+ sharedConfig.context = {
363
+ id: options.renderId || "",
364
+ count: 0
365
+ };
366
+ try {
367
+ gatherHydratable(element, options.renderId);
368
+ return render(code, element, [...element.childNodes], options);
369
+ } finally {
370
+ sharedConfig.context = null;
371
+ }
372
+ }
373
+ function getNextElement(template) {
374
+ let node,
375
+ key,
376
+ hydrating = isHydrating();
377
+ if (!hydrating || !(node = sharedConfig.registry.get(key = getHydrationKey()))) {
378
+ if (hydrating) {
379
+ sharedConfig.done = true;
380
+ throw new Error(`Hydration Mismatch. Unable to find DOM nodes for hydration key: ${key}\n${template ? template().outerHTML : ""}`);
381
+ }
382
+ return template();
383
+ }
384
+ if (sharedConfig.completed) sharedConfig.completed.add(node);
385
+ sharedConfig.registry.delete(key);
386
+ return node;
387
+ }
388
+ function getNextMatch(el, nodeName) {
389
+ while (el && el.localName !== nodeName) el = el.nextSibling;
390
+ return el;
391
+ }
392
+ function getNextMarker(start) {
393
+ let end = start,
394
+ count = 0,
395
+ current = [];
396
+ if (isHydrating(start)) {
397
+ while (end) {
398
+ if (end.nodeType === 8) {
399
+ const v = end.nodeValue;
400
+ if (v === "$") count++;else if (v === "/") {
401
+ if (count === 0) return [end, current];
402
+ count--;
403
+ }
404
+ }
405
+ current.push(end);
406
+ end = end.nextSibling;
407
+ }
408
+ }
409
+ return [end, current];
410
+ }
411
+ function runHydrationEvents() {
412
+ if (sharedConfig.events && !sharedConfig.events.queued) {
413
+ queueMicrotask(() => {
414
+ const {
415
+ completed,
416
+ events
417
+ } = sharedConfig;
418
+ if (!events) return;
419
+ events.queued = false;
420
+ while (events.length) {
421
+ const [el, e] = events[0];
422
+ if (!completed.has(el)) return;
423
+ events.shift();
424
+ eventHandler(e);
425
+ }
426
+ if (sharedConfig.done) {
427
+ sharedConfig.events = _$HY.events = null;
428
+ sharedConfig.completed = _$HY.completed = null;
429
+ }
430
+ });
431
+ sharedConfig.events.queued = true;
432
+ }
433
+ }
434
+ function isHydrating(node) {
435
+ return !!sharedConfig.context && !sharedConfig.done && (!node || node.isConnected);
436
+ }
437
+ function toPropertyName(name) {
438
+ return name.toLowerCase().replace(/-([a-z])/g, (_, w) => w.toUpperCase());
439
+ }
440
+ function toggleClassKey(node, key, value) {
441
+ const classNames = key.trim().split(/\s+/);
442
+ for (let i = 0, nameLen = classNames.length; i < nameLen; i++) node.classList.toggle(classNames[i], value);
443
+ }
444
+ function assignProp(node, prop, value, prev, isSVG, skipRef, props) {
445
+ let isCE, isProp, isChildProp, propAlias, forceProp;
446
+ if (prop === "style") return style(node, value, prev);
447
+ if (prop === "classList") return classList(node, value, prev);
448
+ if (value === prev) return prev;
449
+ if (prop === "ref") {
450
+ if (!skipRef) value(node);
451
+ } else if (prop.slice(0, 3) === "on:") {
452
+ const e = prop.slice(3);
453
+ prev && node.removeEventListener(e, prev, typeof prev !== "function" && prev);
454
+ value && node.addEventListener(e, value, typeof value !== "function" && value);
455
+ } else if (prop.slice(0, 10) === "oncapture:") {
456
+ const e = prop.slice(10);
457
+ prev && node.removeEventListener(e, prev, true);
458
+ value && node.addEventListener(e, value, true);
459
+ } else if (prop.slice(0, 2) === "on") {
460
+ const name = prop.slice(2).toLowerCase();
461
+ const delegate = DelegatedEvents.has(name);
462
+ if (!delegate && prev) {
463
+ const h = Array.isArray(prev) ? prev[0] : prev;
464
+ node.removeEventListener(name, h);
465
+ }
466
+ if (delegate || value) {
467
+ addEventListener(node, name, value, delegate);
468
+ delegate && delegateEvents([name]);
469
+ }
470
+ } else if (prop.slice(0, 5) === "attr:") {
471
+ setAttribute(node, prop.slice(5), value);
472
+ } else if (prop.slice(0, 5) === "bool:") {
473
+ setBoolAttribute(node, prop.slice(5), value);
474
+ } else if ((forceProp = prop.slice(0, 5) === "prop:") || (isChildProp = ChildProperties.has(prop)) || !isSVG && ((propAlias = getPropAlias(prop, node.tagName)) || (isProp = Properties.has(prop))) || (isCE = node.nodeName.includes("-") || "is" in props)) {
475
+ if (forceProp) {
476
+ prop = prop.slice(5);
477
+ isProp = true;
478
+ } else if (isHydrating(node)) return value;
479
+ if (prop === "class" || prop === "className") className(node, value);else if (isCE && !isProp && !isChildProp) node[toPropertyName(prop)] = value;else if ((prop === "value" || prop === "defaultValue") && (node.nodeName === "INPUT" || node.nodeName === "TEXTAREA"))
480
+ node[propAlias || prop] = value ?? "";else node[propAlias || prop] = value;
481
+ } else {
482
+ const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
483
+ if (ns) setAttributeNS(node, ns, prop, value);else setAttribute(node, Aliases[prop] || prop, value);
484
+ }
485
+ return value;
486
+ }
487
+ function eventHandler(e) {
488
+ if (sharedConfig.registry && sharedConfig.events) {
489
+ if (sharedConfig.events.find(([el, ev]) => ev === e)) return;
490
+ }
491
+ let node = e.target;
492
+ const key = `$$${e.type}`;
493
+ const oriTarget = e.target;
494
+ const oriCurrentTarget = e.currentTarget;
495
+ const retarget = value => Object.defineProperty(e, "target", {
496
+ configurable: true,
497
+ value
498
+ });
499
+ const handleNode = () => {
500
+ const handler = node[key];
501
+ if (handler && !node.disabled) {
502
+ const data = node[`${key}Data`];
503
+ data !== undefined ? handler.call(node, data, e) : handler.call(node, e);
504
+ if (e.cancelBubble) return;
505
+ }
506
+ node.host && typeof node.host !== "string" && !node.host._$host && node.contains(e.target) && retarget(node.host);
507
+ return true;
508
+ };
509
+ const walkUpTree = () => {
510
+ while (handleNode() && (node = node._$host || node.parentNode || node.host));
511
+ };
512
+ Object.defineProperty(e, "currentTarget", {
513
+ configurable: true,
514
+ get() {
515
+ return node || document;
516
+ }
517
+ });
518
+ if (sharedConfig.registry && !sharedConfig.done && !sharedConfig.count) sharedConfig.done = _$HY.done = true;
519
+ const path = e.composedPath && e.composedPath();
520
+ if (path && path.length) {
521
+ retarget(path[0]);
522
+ for (let i = 0; i < path.length - 2; i++) {
523
+ node = path[i];
524
+ if (!handleNode()) break;
525
+ if (node._$host) {
526
+ node = node._$host;
527
+ walkUpTree();
528
+ break;
529
+ }
530
+ if (node.parentNode === oriCurrentTarget) {
531
+ break;
532
+ }
533
+ }
534
+ }
535
+ else walkUpTree();
536
+ retarget(oriTarget);
537
+ }
538
+ function insertExpression(parent, value, current, marker, unwrapArray) {
539
+ const hydrating = isHydrating(parent);
540
+ if (hydrating) {
541
+ !current && (current = [...parent.childNodes]);
542
+ let cleaned = [];
543
+ for (let i = 0; i < current.length; i++) {
544
+ const node = current[i];
545
+ if (node.nodeType === 8 && node.data.slice(0, 2) === "!$") node.remove();else cleaned.push(node);
546
+ }
547
+ current = cleaned;
548
+ }
549
+ while (typeof current === "function") current = current();
550
+ if (value === current) return current;
551
+ const t = typeof value,
552
+ multi = marker !== undefined;
553
+ parent = multi && current[0] && current[0].parentNode || parent;
554
+ if (t === "string" || t === "number") {
555
+ if (hydrating) return current;
556
+ if (t === "number") {
557
+ value = value.toString();
558
+ if (value === current) return current;
559
+ }
560
+ if (multi) {
561
+ let node = current[0];
562
+ if (node && node.nodeType === 3) {
563
+ node.data !== value && (node.data = value);
564
+ } else node = document.createTextNode(value);
565
+ current = cleanChildren(parent, current, marker, node);
566
+ } else {
567
+ if (current !== "" && typeof current === "string") {
568
+ current = parent.firstChild.data = value;
569
+ } else current = parent.textContent = value;
570
+ }
571
+ } else if (value == null || t === "boolean") {
572
+ if (hydrating) return current;
573
+ current = cleanChildren(parent, current, marker);
574
+ } else if (t === "function") {
575
+ createRenderEffect(() => {
576
+ let v = value();
577
+ while (typeof v === "function") v = v();
578
+ current = insertExpression(parent, v, current, marker);
579
+ });
580
+ return () => current;
581
+ } else if (Array.isArray(value)) {
582
+ const array = [];
583
+ const currentArray = current && Array.isArray(current);
584
+ if (normalizeIncomingArray(array, value, current, unwrapArray)) {
585
+ createRenderEffect(() => current = insertExpression(parent, array, current, marker, true));
586
+ return () => current;
587
+ }
588
+ if (hydrating) {
589
+ if (!array.length) return current;
590
+ if (marker === undefined) return current = [...parent.childNodes];
591
+ let node = array[0];
592
+ if (node.parentNode !== parent) return current;
593
+ const nodes = [node];
594
+ while ((node = node.nextSibling) !== marker) nodes.push(node);
595
+ return current = nodes;
596
+ }
597
+ if (array.length === 0) {
598
+ current = cleanChildren(parent, current, marker);
599
+ if (multi) return current;
600
+ } else if (currentArray) {
601
+ if (current.length === 0) {
602
+ appendNodes(parent, array, marker);
603
+ } else reconcileArrays(parent, current, array);
604
+ } else {
605
+ current && cleanChildren(parent);
606
+ appendNodes(parent, array);
607
+ }
608
+ current = array;
609
+ } else if (value.nodeType) {
610
+ if (hydrating && value.parentNode) return current = multi ? [value] : value;
611
+ if (Array.isArray(current)) {
612
+ if (multi) return current = cleanChildren(parent, current, marker, value);
613
+ cleanChildren(parent, current, null, value);
614
+ } else if (current == null || current === "" || !parent.firstChild) {
615
+ parent.appendChild(value);
616
+ } else parent.replaceChild(value, parent.firstChild);
617
+ current = value;
618
+ } else console.warn(`Unrecognized value. Skipped inserting`, value);
619
+ return current;
620
+ }
621
+ function normalizeIncomingArray(normalized, array, current, unwrap) {
622
+ let dynamic = false;
623
+ for (let i = 0, len = array.length; i < len; i++) {
624
+ let item = array[i],
625
+ prev = current && current[normalized.length],
626
+ t;
627
+ if (item == null || item === true || item === false) ; else if ((t = typeof item) === "object" && item.nodeType) {
628
+ normalized.push(item);
629
+ } else if (Array.isArray(item)) {
630
+ dynamic = normalizeIncomingArray(normalized, item, prev) || dynamic;
631
+ } else if (t === "function") {
632
+ if (unwrap) {
633
+ while (typeof item === "function") item = item();
634
+ dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
635
+ } else {
636
+ normalized.push(item);
637
+ dynamic = true;
638
+ }
639
+ } else {
640
+ const value = String(item);
641
+ if (prev && prev.nodeType === 3 && prev.data === value) normalized.push(prev);else normalized.push(document.createTextNode(value));
642
+ }
643
+ }
644
+ return dynamic;
645
+ }
646
+ function appendNodes(parent, array, marker = null) {
647
+ for (let i = 0, len = array.length; i < len; i++) parent.insertBefore(array[i], marker);
648
+ }
649
+ function cleanChildren(parent, current, marker, replacement) {
650
+ if (marker === undefined) return parent.textContent = "";
651
+ const node = replacement || document.createTextNode("");
652
+ if (current.length) {
653
+ let inserted = false;
654
+ for (let i = current.length - 1; i >= 0; i--) {
655
+ const el = current[i];
656
+ if (node !== el) {
657
+ const isParent = el.parentNode === parent;
658
+ if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);else isParent && el.remove();
659
+ } else inserted = true;
660
+ }
661
+ } else parent.insertBefore(node, marker);
662
+ return [node];
663
+ }
664
+ function gatherHydratable(element, root) {
665
+ const templates = element.querySelectorAll(`*[data-hk]`);
666
+ for (let i = 0; i < templates.length; i++) {
667
+ const node = templates[i];
668
+ const key = node.getAttribute("data-hk");
669
+ if ((!root || key.startsWith(root)) && !sharedConfig.registry.has(key)) sharedConfig.registry.set(key, node);
670
+ }
671
+ }
672
+ function getHydrationKey() {
673
+ return sharedConfig.getNextContextId();
674
+ }
675
+ function NoHydration(props) {
676
+ return sharedConfig.context ? undefined : props.children;
677
+ }
678
+ function Hydration(props) {
679
+ return props.children;
680
+ }
681
+ const voidFn = () => undefined;
682
+ const RequestContext = Symbol();
683
+ function innerHTML(parent, content) {
684
+ !sharedConfig.context && (parent.innerHTML = content);
685
+ }
686
+
687
+ function throwInBrowser(func) {
688
+ const err = new Error(`${func.name} is not supported in the browser, returning undefined`);
689
+ console.error(err);
690
+ }
691
+ function renderToString(fn, options) {
692
+ throwInBrowser(renderToString);
693
+ }
694
+ function renderToStringAsync(fn, options) {
695
+ throwInBrowser(renderToStringAsync);
696
+ }
697
+ function renderToStream(fn, options) {
698
+ throwInBrowser(renderToStream);
699
+ }
700
+ function ssr(template, ...nodes) {}
701
+ function ssrElement(name, props, children, needsId) {}
702
+ function ssrClassList(value) {}
703
+ function ssrStyle(value) {}
704
+ function ssrAttribute(key, value) {}
705
+ function ssrHydrationKey() {}
706
+ function resolveSSRNode(node) {}
707
+ function escape(html) {}
708
+ function ssrSpread(props, isSVG, skipChildren) {}
709
+
710
+ const isServer = false;
711
+ const isDev = true;
712
+ const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
713
+ function createElement(tagName, isSVG = false, is = undefined) {
714
+ return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName, {
715
+ is
716
+ });
717
+ }
718
+ const hydrate = (...args) => {
719
+ enableHydration();
720
+ return hydrate$1(...args);
721
+ };
722
+ function Portal(props) {
723
+ const {
724
+ useShadow
725
+ } = props,
726
+ marker = document.createTextNode(""),
727
+ mount = () => props.mount || document.body,
728
+ owner = getOwner();
729
+ let content;
730
+ let hydrating = !!sharedConfig.context;
731
+ createEffect(() => {
732
+ if (hydrating) getOwner().user = hydrating = false;
733
+ content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
734
+ const el = mount();
735
+ if (el instanceof HTMLHeadElement) {
736
+ const [clean, setClean] = createSignal(false);
737
+ const cleanup = () => setClean(true);
738
+ createRoot(dispose => insert(el, () => !clean() ? content() : dispose(), null));
739
+ onCleanup(cleanup);
740
+ } else {
741
+ const container = createElement(props.isSVG ? "g" : "div", props.isSVG),
742
+ renderRoot = useShadow && container.attachShadow ? container.attachShadow({
743
+ mode: "open"
744
+ }) : container;
745
+ Object.defineProperty(container, "_$host", {
746
+ get() {
747
+ return marker.parentNode;
748
+ },
749
+ configurable: true
750
+ });
751
+ insert(renderRoot, content);
752
+ el.appendChild(container);
753
+ props.ref && props.ref(container);
754
+ onCleanup(() => el.contains(container) && el.removeChild(container));
755
+ }
756
+ }, undefined, {
757
+ render: !hydrating
758
+ });
759
+ return marker;
760
+ }
761
+ function createDynamic(component, props) {
762
+ const cached = createMemo(component);
763
+ return createMemo(() => {
764
+ const component = cached();
765
+ switch (typeof component) {
766
+ case "function":
767
+ Object.assign(component, {
768
+ [$DEVCOMP]: true
769
+ });
770
+ return untrack(() => component(props));
771
+ case "string":
772
+ const isSvg = SVGElements.has(component);
773
+ const el = sharedConfig.context ? getNextElement() : createElement(component, isSvg, untrack(() => props.is));
774
+ spread(el, props, isSvg);
775
+ return el;
776
+ }
777
+ });
778
+ }
779
+ function Dynamic(props) {
780
+ const [, others] = splitProps(props, ["component"]);
781
+ return createDynamic(() => props.component, others);
782
+ }
783
+
784
+ export { Aliases, voidFn as Assets, ChildProperties, DOMElements, DelegatedEvents, Dynamic, Hydration, voidFn as HydrationScript, NoHydration, Portal, Properties, RequestContext, SVGElements, SVGNamespace, addEventListener, assign, classList, className, clearDelegatedEvents, createDynamic, delegateEvents, dynamicProperty, escape, voidFn as generateHydrationScript, voidFn as getAssets, getHydrationKey, getNextElement, getNextMarker, getNextMatch, getPropAlias, voidFn as getRequestEvent, hydrate, innerHTML, insert, isDev, isServer, memo, render, renderToStream, renderToString, renderToStringAsync, resolveSSRNode, runHydrationEvents, setAttribute, setAttributeNS, setBoolAttribute, setProperty, setStyleProperty, spread, ssr, ssrAttribute, ssrClassList, ssrElement, ssrHydrationKey, ssrSpread, ssrStyle, style, template, use, voidFn as useAssets };