@jucie.io/cli 1.0.20 → 1.0.22

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 (886) hide show
  1. package/dist/interactivity.md +51 -13
  2. package/dist/jucie.js +534 -241
  3. package/dist/layout.md +83 -24
  4. package/dist/prerenderWorker.js +13 -0
  5. package/dist/stage/library/preact.js +53 -0
  6. package/dist/stage/library/react.js +53 -0
  7. package/dist/stage/library/vue.js +53 -0
  8. package/dist/stage/prod.js +53 -1
  9. package/dist/stage/sdk/chunks/chunk-6BTG63JN.js +1 -0
  10. package/dist/stage/sdk/chunks/chunk-7YIGPKNU.js +1 -0
  11. package/dist/stage/sdk/chunks/chunk-IIZ233AH.js +1 -0
  12. package/dist/stage/sdk/preact-server.js +1 -0
  13. package/dist/stage/sdk/preact.js +1 -0
  14. package/dist/stage/sdk/react-server.js +1 -0
  15. package/dist/stage/sdk/react.js +1 -0
  16. package/dist/stage/sdk/vue-server.js +1 -0
  17. package/dist/stage/sdk/vue.js +1 -0
  18. package/dist/stage/server.js +53 -0
  19. package/dist/stage/styles.js +11845 -0
  20. package/dist/stage-bundles/preact/chunks/aiAttachmentContracts-S6BKHEJ6.js +1 -0
  21. package/dist/stage-bundles/preact/chunks/aiMessagesContracts-RZ3KTCRZ.js +1 -0
  22. package/dist/stage-bundles/preact/chunks/aiRelay-6QWC3MID.js +1 -0
  23. package/dist/stage-bundles/preact/chunks/aiSessionContracts-ISZHL5U5.js +1 -0
  24. package/dist/stage-bundles/preact/chunks/assets-4NXDKJMC.js +1 -0
  25. package/dist/stage-bundles/preact/chunks/capture-MXL3B5OM.js +1 -0
  26. package/dist/stage-bundles/preact/chunks/chunk-3Q3DRUNQ.js +1 -0
  27. package/dist/stage-bundles/preact/chunks/chunk-426Z5MME.js +9 -0
  28. package/dist/stage-bundles/preact/chunks/chunk-4WXMFOGZ.js +1 -0
  29. package/dist/stage-bundles/preact/chunks/chunk-5H3EE23B.js +1 -0
  30. package/dist/stage-bundles/preact/chunks/chunk-5HNN2HVX.js +1 -0
  31. package/dist/stage-bundles/preact/chunks/chunk-6J3NV2ZA.js +1 -0
  32. package/dist/stage-bundles/preact/chunks/chunk-BXWISJ2Z.js +1 -0
  33. package/dist/stage-bundles/preact/chunks/chunk-CNULBMOT.js +99 -0
  34. package/dist/stage-bundles/preact/chunks/chunk-DLROTED3.js +1 -0
  35. package/dist/stage-bundles/preact/chunks/chunk-DUPQKWW3.js +3 -0
  36. package/dist/stage-bundles/preact/chunks/chunk-FEFZSXXM.js +1 -0
  37. package/dist/stage-bundles/preact/chunks/chunk-FGKRC2QO.js +4 -0
  38. package/dist/stage-bundles/preact/chunks/chunk-FWEUCYZO.js +1 -0
  39. package/dist/stage-bundles/preact/chunks/chunk-GCPKA3IC.js +1 -0
  40. package/dist/stage-bundles/preact/chunks/chunk-KUZTBTFR.js +1 -0
  41. package/dist/stage-bundles/preact/chunks/chunk-P722OZCF.js +1 -0
  42. package/dist/stage-bundles/preact/chunks/chunk-RDRAQE76.js +1 -0
  43. package/dist/stage-bundles/preact/chunks/chunk-RQACOEIA.js +1 -0
  44. package/dist/stage-bundles/preact/chunks/{chunk-RYWOKFM7.js → chunk-S7MEYFKB.js} +1 -1
  45. package/dist/stage-bundles/preact/chunks/chunk-TKHZCD63.js +1 -0
  46. package/dist/stage-bundles/preact/chunks/chunk-UNPHH2YK.js +7 -0
  47. package/dist/stage-bundles/preact/chunks/{chunk-H5NHEM4C.js → chunk-WN5EDULP.js} +1 -1
  48. package/dist/stage-bundles/preact/chunks/chunk-YQ22OWEN.js +6 -0
  49. package/dist/stage-bundles/preact/chunks/{chunk-NRRFAMFA.js → chunk-ZDH2DALT.js} +1 -1
  50. package/dist/stage-bundles/preact/chunks/contentEditor-KSOW7DQ4.js +1 -0
  51. package/dist/stage-bundles/preact/chunks/design-5WJ7WCTU.js +70 -0
  52. package/dist/stage-bundles/preact/chunks/files-2IVIODQO.js +1 -0
  53. package/dist/stage-bundles/preact/chunks/history-AJWJFNTH.js +1 -0
  54. package/dist/stage-bundles/preact/chunks/main-3EOYBBCF.js +1 -0
  55. package/dist/stage-bundles/preact/chunks/main-4GJ7OQPP.js +1 -0
  56. package/dist/stage-bundles/preact/chunks/main-COYGSKNQ.js +1 -0
  57. package/dist/stage-bundles/preact/chunks/main-DEGR6IFX.js +1 -0
  58. package/dist/stage-bundles/preact/chunks/main-QJ4F72CN.js +1 -0
  59. package/dist/stage-bundles/preact/chunks/main-Y73Z2R2Q.js +1 -0
  60. package/dist/stage-bundles/preact/chunks/nodeGraph-MIYBM2ME.js +1 -0
  61. package/dist/stage-bundles/preact/chunks/preview-MRYXCFFB.js +1 -0
  62. package/dist/stage-bundles/preact/chunks/sync-M5DHAJKK.js +1 -0
  63. package/dist/stage-bundles/preact/chunks/user-RPWZUUCN.js +1 -0
  64. package/dist/stage-bundles/preact/chunks/viewport-EE2UKHNS.js +1 -0
  65. package/dist/stage-bundles/preact/chunks/virtual_empty-main-4HFN7X6Y.js +1 -0
  66. package/dist/stage-bundles/preact/chunks/window-SHWTQPJX.js +1 -0
  67. package/dist/stage-bundles/preact/chunks/workbench-PI2NQ6WK.js +1 -0
  68. package/dist/stage-bundles/preact/entry.js +1 -1
  69. package/dist/stage-bundles/preact/framework-compat.js +1 -1
  70. package/dist/stage-bundles/preact/framework-hooks.js +1 -1
  71. package/dist/stage-bundles/preact/framework-jsx-runtime.js +1 -1
  72. package/dist/stage-bundles/preact/framework.js +1 -1
  73. package/dist/stage-bundles/preact/reactive.js +1 -0
  74. package/dist/stage-bundles/preact/sdk.js +1 -1
  75. package/dist/stage-bundles/react/chunks/aiAttachmentContracts-S6BKHEJ6.js +1 -0
  76. package/dist/stage-bundles/react/chunks/aiMessagesContracts-RZ3KTCRZ.js +1 -0
  77. package/dist/stage-bundles/react/chunks/aiRelay-6QWC3MID.js +1 -0
  78. package/dist/stage-bundles/react/chunks/aiSessionContracts-ISZHL5U5.js +1 -0
  79. package/dist/stage-bundles/react/chunks/assets-4NXDKJMC.js +1 -0
  80. package/dist/stage-bundles/react/chunks/capture-SX5LMYTU.js +1 -0
  81. package/dist/stage-bundles/react/chunks/chunk-3Q3DRUNQ.js +1 -0
  82. package/dist/stage-bundles/react/chunks/chunk-426Z5MME.js +9 -0
  83. package/dist/stage-bundles/react/chunks/chunk-4WXMFOGZ.js +1 -0
  84. package/dist/stage-bundles/react/chunks/chunk-5FKTA2K4.js +45 -0
  85. package/dist/stage-bundles/react/chunks/chunk-5HNN2HVX.js +1 -0
  86. package/dist/stage-bundles/react/chunks/chunk-6J3NV2ZA.js +1 -0
  87. package/dist/stage-bundles/react/chunks/chunk-COZYLIUS.js +1 -0
  88. package/dist/stage-bundles/react/chunks/chunk-DLROTED3.js +1 -0
  89. package/dist/stage-bundles/react/chunks/chunk-DUPQKWW3.js +3 -0
  90. package/dist/stage-bundles/react/chunks/chunk-FEFZSXXM.js +1 -0
  91. package/dist/stage-bundles/react/chunks/chunk-FGKRC2QO.js +4 -0
  92. package/dist/stage-bundles/react/chunks/chunk-FWEUCYZO.js +1 -0
  93. package/dist/stage-bundles/react/chunks/chunk-GCPKA3IC.js +1 -0
  94. package/dist/stage-bundles/react/chunks/{chunk-G5RN6RXS.js → chunk-HBUZBWXS.js} +1 -1
  95. package/dist/stage-bundles/react/chunks/chunk-IN7T7JOC.js +1 -0
  96. package/dist/stage-bundles/react/chunks/chunk-KUZTBTFR.js +1 -0
  97. package/dist/stage-bundles/react/chunks/{chunk-P3ZDKQWG.js → chunk-LGKXPMSS.js} +1 -1
  98. package/dist/stage-bundles/react/chunks/chunk-P722OZCF.js +1 -0
  99. package/dist/stage-bundles/react/chunks/{chunk-KLPU3QNW.js → chunk-PWVNILVW.js} +1 -1
  100. package/dist/stage-bundles/react/chunks/chunk-RDRAQE76.js +1 -0
  101. package/dist/stage-bundles/react/chunks/chunk-TKHZCD63.js +1 -0
  102. package/dist/stage-bundles/react/chunks/chunk-UNPHH2YK.js +7 -0
  103. package/dist/stage-bundles/react/chunks/chunk-UQWACM5R.js +1 -0
  104. package/dist/stage-bundles/react/chunks/chunk-YQ22OWEN.js +6 -0
  105. package/dist/stage-bundles/react/chunks/contentEditor-KSOW7DQ4.js +1 -0
  106. package/dist/stage-bundles/react/chunks/design-PLV3PDV6.js +70 -0
  107. package/dist/stage-bundles/react/chunks/files-2IVIODQO.js +1 -0
  108. package/dist/stage-bundles/react/chunks/history-AJWJFNTH.js +1 -0
  109. package/dist/stage-bundles/react/chunks/main-3EOYBBCF.js +1 -0
  110. package/dist/stage-bundles/react/chunks/main-4GJ7OQPP.js +1 -0
  111. package/dist/stage-bundles/react/chunks/main-COYGSKNQ.js +1 -0
  112. package/dist/stage-bundles/react/chunks/main-DEGR6IFX.js +1 -0
  113. package/dist/stage-bundles/react/chunks/main-QJ4F72CN.js +1 -0
  114. package/dist/stage-bundles/react/chunks/main-Y73Z2R2Q.js +1 -0
  115. package/dist/stage-bundles/react/chunks/nodeGraph-MIYBM2ME.js +1 -0
  116. package/dist/stage-bundles/react/chunks/preview-GQEX7ZIJ.js +1 -0
  117. package/dist/stage-bundles/react/chunks/sync-M5DHAJKK.js +1 -0
  118. package/dist/stage-bundles/react/chunks/user-RPWZUUCN.js +1 -0
  119. package/dist/stage-bundles/react/chunks/viewport-EE2UKHNS.js +1 -0
  120. package/dist/stage-bundles/react/chunks/virtual_empty-main-4HFN7X6Y.js +1 -0
  121. package/dist/stage-bundles/react/chunks/window-SHWTQPJX.js +1 -0
  122. package/dist/stage-bundles/react/chunks/workbench-BXYMXCNQ.js +1 -0
  123. package/dist/stage-bundles/react/entry.js +1 -1
  124. package/dist/stage-bundles/react/framework-dom-client.js +1 -1
  125. package/dist/stage-bundles/react/framework-dom.js +1 -1
  126. package/dist/stage-bundles/react/framework-jsx-runtime.js +1 -1
  127. package/dist/stage-bundles/react/framework.js +1 -1
  128. package/dist/stage-bundles/react/reactive.js +1 -0
  129. package/dist/stage-bundles/react/sdk.js +1 -1
  130. package/dist/stage-bundles/vue/chunks/aiAttachmentContracts-S6BKHEJ6.js +1 -0
  131. package/dist/stage-bundles/vue/chunks/aiMessagesContracts-RZ3KTCRZ.js +1 -0
  132. package/dist/stage-bundles/vue/chunks/aiRelay-6QWC3MID.js +1 -0
  133. package/dist/stage-bundles/vue/chunks/aiSessionContracts-ISZHL5U5.js +1 -0
  134. package/dist/stage-bundles/vue/chunks/assets-4NXDKJMC.js +1 -0
  135. package/dist/stage-bundles/vue/chunks/capture-BNTHDU5P.js +1 -0
  136. package/dist/stage-bundles/vue/chunks/chunk-2CVBY2T5.js +99 -0
  137. package/dist/stage-bundles/vue/chunks/chunk-3Q3DRUNQ.js +1 -0
  138. package/dist/stage-bundles/vue/chunks/chunk-4WXMFOGZ.js +1 -0
  139. package/dist/stage-bundles/vue/chunks/chunk-5HNN2HVX.js +1 -0
  140. package/dist/stage-bundles/vue/chunks/chunk-5Q537YU2.js +9 -0
  141. package/dist/stage-bundles/vue/chunks/chunk-6J3NV2ZA.js +1 -0
  142. package/dist/stage-bundles/vue/chunks/chunk-BAARNJD7.js +1 -0
  143. package/dist/stage-bundles/vue/chunks/chunk-DLROTED3.js +1 -0
  144. package/dist/stage-bundles/vue/chunks/chunk-DUPQKWW3.js +3 -0
  145. package/dist/stage-bundles/vue/chunks/chunk-EPZVOVTF.js +1 -0
  146. package/dist/stage-bundles/vue/chunks/chunk-FEFZSXXM.js +1 -0
  147. package/dist/stage-bundles/vue/chunks/chunk-FGKRC2QO.js +4 -0
  148. package/dist/stage-bundles/vue/chunks/chunk-FWEUCYZO.js +1 -0
  149. package/dist/stage-bundles/vue/chunks/chunk-GCPKA3IC.js +1 -0
  150. package/dist/stage-bundles/vue/chunks/chunk-KUZTBTFR.js +1 -0
  151. package/dist/stage-bundles/vue/chunks/chunk-P722OZCF.js +1 -0
  152. package/dist/stage-bundles/vue/chunks/chunk-QZFBMONF.js +1 -0
  153. package/dist/stage-bundles/vue/chunks/chunk-TKHZCD63.js +1 -0
  154. package/dist/stage-bundles/vue/chunks/chunk-UNPHH2YK.js +7 -0
  155. package/dist/stage-bundles/vue/chunks/chunk-XIPQ5BT3.js +1 -0
  156. package/dist/stage-bundles/vue/chunks/chunk-YQ22OWEN.js +6 -0
  157. package/dist/stage-bundles/vue/chunks/{chunk-M3OE4LWW.js → chunk-ZNG3HSBM.js} +1 -1
  158. package/dist/stage-bundles/vue/chunks/contentEditor-WMYXHKRR.js +1 -0
  159. package/dist/stage-bundles/vue/chunks/design-N46CCFRQ.js +70 -0
  160. package/dist/stage-bundles/vue/chunks/files-2IVIODQO.js +1 -0
  161. package/dist/stage-bundles/vue/chunks/history-AJWJFNTH.js +1 -0
  162. package/dist/stage-bundles/vue/chunks/main-3EOYBBCF.js +1 -0
  163. package/dist/stage-bundles/vue/chunks/main-4GJ7OQPP.js +1 -0
  164. package/dist/stage-bundles/vue/chunks/main-COYGSKNQ.js +1 -0
  165. package/dist/stage-bundles/vue/chunks/main-DEGR6IFX.js +1 -0
  166. package/dist/stage-bundles/vue/chunks/main-IDHTCWLF.js +1 -0
  167. package/dist/stage-bundles/vue/chunks/main-Y73Z2R2Q.js +1 -0
  168. package/dist/stage-bundles/vue/chunks/nodeGraph-MIYBM2ME.js +1 -0
  169. package/dist/stage-bundles/vue/chunks/preview-5K5EJBYM.js +1 -0
  170. package/dist/stage-bundles/vue/chunks/sync-M5DHAJKK.js +1 -0
  171. package/dist/stage-bundles/vue/chunks/user-RPWZUUCN.js +1 -0
  172. package/dist/stage-bundles/vue/chunks/viewport-EE2UKHNS.js +1 -0
  173. package/dist/stage-bundles/vue/chunks/virtual_empty-main-4HFN7X6Y.js +1 -0
  174. package/dist/stage-bundles/vue/chunks/window-SHWTQPJX.js +1 -0
  175. package/dist/stage-bundles/vue/chunks/workbench-OX4YXOA5.js +1 -0
  176. package/dist/stage-bundles/vue/entry.js +1 -1
  177. package/dist/stage-bundles/vue/framework-jsx-runtime.js +1 -1
  178. package/dist/stage-bundles/vue/framework.js +1 -1
  179. package/dist/stage-bundles/vue/reactive.js +1 -0
  180. package/dist/stage-bundles/vue/sdk.js +1 -1
  181. package/dist/stage-src/{dev/entry.js → dev.js} +1 -1
  182. package/dist/workflow.md +7 -0
  183. package/package.json +27 -20
  184. package/dist/stage/chunks/addAction-3QC2Z4ZR.js +0 -1
  185. package/dist/stage/chunks/addAnimationBinding-N3UW27JM.js +0 -1
  186. package/dist/stage/chunks/addAttribute-MEJIGMHV.js +0 -1
  187. package/dist/stage/chunks/addComponent-AQQI46C3.js +0 -1
  188. package/dist/stage/chunks/addComputed-2JNIUCEP.js +0 -1
  189. package/dist/stage/chunks/addEvent-PN6P6KR5.js +0 -1
  190. package/dist/stage/chunks/addLifecycleHook-D2UKKFVW.js +0 -1
  191. package/dist/stage/chunks/addNode-UXIXDXSD.js +0 -1
  192. package/dist/stage/chunks/addOption-AFCUFOT7.js +0 -1
  193. package/dist/stage/chunks/addParamToRoute-6LOHCID7.js +0 -1
  194. package/dist/stage/chunks/addState-RSEYKWQO.js +0 -1
  195. package/dist/stage/chunks/addStore-AK2FTEON.js +0 -1
  196. package/dist/stage/chunks/addToken-35LUBJPE.js +0 -1
  197. package/dist/stage/chunks/addTree-CU7MJAKT.js +0 -1
  198. package/dist/stage/chunks/addValue-LIQSHZFR.js +0 -1
  199. package/dist/stage/chunks/aiAttachmentContracts-KGD3EHZQ.js +0 -1
  200. package/dist/stage/chunks/aiMessagesContracts-QWUORKI3.js +0 -1
  201. package/dist/stage/chunks/aiRelay-LW2UZKRR.js +0 -1
  202. package/dist/stage/chunks/aiSessionContracts-RQKGQY4N.js +0 -1
  203. package/dist/stage/chunks/assets-5J5INILR.js +0 -1
  204. package/dist/stage/chunks/capture-VQE5664P.js +0 -1
  205. package/dist/stage/chunks/chunk-2JXGTRSC.js +0 -1
  206. package/dist/stage/chunks/chunk-3GPQ3HYG.js +0 -1
  207. package/dist/stage/chunks/chunk-3KR3JD5T.js +0 -1
  208. package/dist/stage/chunks/chunk-457GNGEV.js +0 -1
  209. package/dist/stage/chunks/chunk-4KXBOJIC.js +0 -1
  210. package/dist/stage/chunks/chunk-4UJAZNZX.js +0 -1
  211. package/dist/stage/chunks/chunk-5N7NET6A.js +0 -1
  212. package/dist/stage/chunks/chunk-5RVLCYPU.js +0 -1
  213. package/dist/stage/chunks/chunk-6JNM2JPA.js +0 -1
  214. package/dist/stage/chunks/chunk-7C53OCBB.js +0 -1
  215. package/dist/stage/chunks/chunk-7DIGILX7.js +0 -1
  216. package/dist/stage/chunks/chunk-7H7BUWZP.js +0 -1
  217. package/dist/stage/chunks/chunk-7SM7WG53.js +0 -1
  218. package/dist/stage/chunks/chunk-A7T3U7OZ.js +0 -1
  219. package/dist/stage/chunks/chunk-AOLXVYBO.js +0 -1
  220. package/dist/stage/chunks/chunk-ATDHO5ME.js +0 -1
  221. package/dist/stage/chunks/chunk-BCDDG7CW.js +0 -1
  222. package/dist/stage/chunks/chunk-CB4COXKW.js +0 -1
  223. package/dist/stage/chunks/chunk-CM6UENYI.js +0 -1
  224. package/dist/stage/chunks/chunk-CVWMERPH.js +0 -1
  225. package/dist/stage/chunks/chunk-DDCGP5GM.js +0 -1
  226. package/dist/stage/chunks/chunk-DOGIABU3.js +0 -1
  227. package/dist/stage/chunks/chunk-DUMMXI6I.js +0 -1
  228. package/dist/stage/chunks/chunk-E3LBHSMZ.js +0 -1
  229. package/dist/stage/chunks/chunk-E7JXTPFA.js +0 -1
  230. package/dist/stage/chunks/chunk-GBE5QYRO.js +0 -1
  231. package/dist/stage/chunks/chunk-GFV4SJGI.js +0 -1
  232. package/dist/stage/chunks/chunk-GILBTTLF.js +0 -1
  233. package/dist/stage/chunks/chunk-GPV2ZFME.js +0 -1
  234. package/dist/stage/chunks/chunk-HBNF34QX.js +0 -1
  235. package/dist/stage/chunks/chunk-HREW6EFQ.js +0 -1
  236. package/dist/stage/chunks/chunk-HZ7KMV42.js +0 -1
  237. package/dist/stage/chunks/chunk-HZXJUIIX.js +0 -1
  238. package/dist/stage/chunks/chunk-IE6IKN6P.js +0 -1
  239. package/dist/stage/chunks/chunk-IWO4MU2F.js +0 -1
  240. package/dist/stage/chunks/chunk-J7XIIFXF.js +0 -1
  241. package/dist/stage/chunks/chunk-JG62FTV2.js +0 -1
  242. package/dist/stage/chunks/chunk-JGELXWD3.js +0 -1
  243. package/dist/stage/chunks/chunk-JKJRK7ER.js +0 -1
  244. package/dist/stage/chunks/chunk-JPPPL527.js +0 -1
  245. package/dist/stage/chunks/chunk-JRCZXEL2.js +0 -1
  246. package/dist/stage/chunks/chunk-K33QXMAS.js +0 -1
  247. package/dist/stage/chunks/chunk-K4R2DLAT.js +0 -1
  248. package/dist/stage/chunks/chunk-MA3WBBC6.js +0 -1
  249. package/dist/stage/chunks/chunk-MHU6JTZC.js +0 -1
  250. package/dist/stage/chunks/chunk-MO2MHTOQ.js +0 -1
  251. package/dist/stage/chunks/chunk-MQKISAKO.js +0 -1
  252. package/dist/stage/chunks/chunk-ND3BSJOS.js +0 -1
  253. package/dist/stage/chunks/chunk-NGQ7GQSH.js +0 -1
  254. package/dist/stage/chunks/chunk-NM4FV6YK.js +0 -1
  255. package/dist/stage/chunks/chunk-NOHQVE3L.js +0 -1
  256. package/dist/stage/chunks/chunk-O6ZKHW5L.js +0 -1
  257. package/dist/stage/chunks/chunk-PBDA5G7U.js +0 -1
  258. package/dist/stage/chunks/chunk-PBDSKQIQ.js +0 -1
  259. package/dist/stage/chunks/chunk-PJFVW637.js +0 -1
  260. package/dist/stage/chunks/chunk-PRXT2NXZ.js +0 -1
  261. package/dist/stage/chunks/chunk-QAUB5H3S.js +0 -1
  262. package/dist/stage/chunks/chunk-QDH6OIAL.js +0 -5
  263. package/dist/stage/chunks/chunk-QM4IVTLC.js +0 -1
  264. package/dist/stage/chunks/chunk-QUWCLSNF.js +0 -1
  265. package/dist/stage/chunks/chunk-QVOXRLEG.js +0 -1
  266. package/dist/stage/chunks/chunk-RAHM76FI.js +0 -1
  267. package/dist/stage/chunks/chunk-RONEQF2M.js +0 -1
  268. package/dist/stage/chunks/chunk-RPTOBIKP.js +0 -1
  269. package/dist/stage/chunks/chunk-RSWDPV5U.js +0 -1
  270. package/dist/stage/chunks/chunk-SSSTBYOF.js +0 -1
  271. package/dist/stage/chunks/chunk-SV2PSWLZ.js +0 -1
  272. package/dist/stage/chunks/chunk-TDXJNI7H.js +0 -1
  273. package/dist/stage/chunks/chunk-TFGNKPAQ.js +0 -1
  274. package/dist/stage/chunks/chunk-TYA35RCB.js +0 -1
  275. package/dist/stage/chunks/chunk-UJZNQZVK.js +0 -1
  276. package/dist/stage/chunks/chunk-UN7EZPD7.js +0 -1
  277. package/dist/stage/chunks/chunk-UOBNXO4G.js +0 -1
  278. package/dist/stage/chunks/chunk-UVV4NANW.js +0 -97
  279. package/dist/stage/chunks/chunk-V5TNO5LS.js +0 -3
  280. package/dist/stage/chunks/chunk-VHRU6H4C.js +0 -1
  281. package/dist/stage/chunks/chunk-VP2XJ5UI.js +0 -1
  282. package/dist/stage/chunks/chunk-VQDQA3ID.js +0 -1
  283. package/dist/stage/chunks/chunk-VZJTFJZN.js +0 -1
  284. package/dist/stage/chunks/chunk-WCL6XNDN.js +0 -1
  285. package/dist/stage/chunks/chunk-WKUYNMPE.js +0 -1
  286. package/dist/stage/chunks/chunk-WWWIZ7VG.js +0 -1
  287. package/dist/stage/chunks/chunk-X2R3VYWI.js +0 -1
  288. package/dist/stage/chunks/chunk-X5HHNNED.js +0 -1
  289. package/dist/stage/chunks/chunk-X5INDUEQ.js +0 -1
  290. package/dist/stage/chunks/chunk-XBUV5F3F.js +0 -1
  291. package/dist/stage/chunks/chunk-XPWU54SD.js +0 -1
  292. package/dist/stage/chunks/chunk-YFURTAAV.js +0 -1
  293. package/dist/stage/chunks/chunk-YRI4I37X.js +0 -1
  294. package/dist/stage/chunks/chunk-ZCUNR3XN.js +0 -1
  295. package/dist/stage/chunks/clearDestination-TFFJZYZU.js +0 -1
  296. package/dist/stage/chunks/clearName-LAT5C4G3.js +0 -1
  297. package/dist/stage/chunks/clearOptionsExpression-QHE4GD2Y.js +0 -1
  298. package/dist/stage/chunks/clearRender-XEMKLRCM.js +0 -1
  299. package/dist/stage/chunks/clearRepeat-OJXLCGGV.js +0 -1
  300. package/dist/stage/chunks/contentEditor-H4QUMYKV.js +0 -1
  301. package/dist/stage/chunks/createAction-X7WWJ6BN.js +0 -1
  302. package/dist/stage/chunks/createAnimation-TYRSVQNL.js +0 -1
  303. package/dist/stage/chunks/createComputed-NVI2BGGF.js +0 -1
  304. package/dist/stage/chunks/createTextContent-R4ZOE6SM.js +0 -1
  305. package/dist/stage/chunks/createValue-GRZQQ5RR.js +0 -1
  306. package/dist/stage/chunks/design-2S7QAGYM.js +0 -15
  307. package/dist/stage/chunks/dev-PZI3DDXQ.js +0 -1
  308. package/dist/stage/chunks/disconnectNode-RRO6QPMX.js +0 -1
  309. package/dist/stage/chunks/history-5FAKKGJY.js +0 -1
  310. package/dist/stage/chunks/id-G47WSCWG.js +0 -1
  311. package/dist/stage/chunks/main-GPY4VWAB.js +0 -1
  312. package/dist/stage/chunks/main-OLXPOBOM.js +0 -1
  313. package/dist/stage/chunks/main-QADVRVCC.js +0 -1
  314. package/dist/stage/chunks/main-RMI3HY2B.js +0 -1
  315. package/dist/stage/chunks/moveNodeToLastChildOf-SGHEMUMS.js +0 -1
  316. package/dist/stage/chunks/nodeGraph-UGMYCUUO.js +0 -1
  317. package/dist/stage/chunks/normalizeEventName-Y34QRO25.js +0 -1
  318. package/dist/stage/chunks/preview-UBVA3QQU.js +0 -1
  319. package/dist/stage/chunks/removeAction-UIZVYC4K.js +0 -1
  320. package/dist/stage/chunks/removeAnimationBinding-PD2IRVQZ.js +0 -1
  321. package/dist/stage/chunks/removeAttribute-HCDVVDSZ.js +0 -1
  322. package/dist/stage/chunks/removeComputed-2UWAXEAM.js +0 -1
  323. package/dist/stage/chunks/removeEvent-GBW7REQV.js +0 -1
  324. package/dist/stage/chunks/removeLifecycleHook-V4BK7NPV.js +0 -1
  325. package/dist/stage/chunks/removeNode-H7TWCLTZ.js +0 -1
  326. package/dist/stage/chunks/removeOption-4SMMGXLO.js +0 -1
  327. package/dist/stage/chunks/removeParamFromRoute-2Q2PYYP5.js +0 -1
  328. package/dist/stage/chunks/removeState-X4UQTIPT.js +0 -1
  329. package/dist/stage/chunks/removeStore-B3WQQP3D.js +0 -1
  330. package/dist/stage/chunks/removeToken-3QTFHQF6.js +0 -1
  331. package/dist/stage/chunks/removeValue-QIQBSOHR.js +0 -1
  332. package/dist/stage/chunks/setDestination-26OTLIOX.js +0 -1
  333. package/dist/stage/chunks/setHomePage-GBSAVDQC.js +0 -1
  334. package/dist/stage/chunks/setHtmlId-PZQQWCXU.js +0 -1
  335. package/dist/stage/chunks/setName-C26SXODP.js +0 -1
  336. package/dist/stage/chunks/setNodeLayout-PZMYT6M2.js +0 -1
  337. package/dist/stage/chunks/setOptionsExpression-PQ3JOVEW.js +0 -1
  338. package/dist/stage/chunks/setRender-MNCOTE35.js +0 -1
  339. package/dist/stage/chunks/setRepeat-GIOC7YT4.js +0 -1
  340. package/dist/stage/chunks/setTagName-FA7BMEUS.js +0 -1
  341. package/dist/stage/chunks/updateAction-TUQLHSJE.js +0 -1
  342. package/dist/stage/chunks/updateAnimationBinding-I3AQNLO2.js +0 -1
  343. package/dist/stage/chunks/updateAttribute-TLLDGUPR.js +0 -1
  344. package/dist/stage/chunks/updateBounds-KL4N7VYO.js +0 -1
  345. package/dist/stage/chunks/updateComputed-JGJIIC4A.js +0 -1
  346. package/dist/stage/chunks/updateEvent-YOKH67TX.js +0 -1
  347. package/dist/stage/chunks/updateHtml-Z4XI7SYU.js +0 -1
  348. package/dist/stage/chunks/updateLifecycleHook-4555YGGM.js +0 -1
  349. package/dist/stage/chunks/updateOption-YUFQYF43.js +0 -1
  350. package/dist/stage/chunks/updateRoute-42OSDVLS.js +0 -1
  351. package/dist/stage/chunks/updateState-3RQX5YED.js +0 -1
  352. package/dist/stage/chunks/updateStyle-I5NO4TOV.js +0 -1
  353. package/dist/stage/chunks/updateToken-AFJYTJ7R.js +0 -1
  354. package/dist/stage/chunks/updateValue-XGRBUCOT.js +0 -1
  355. package/dist/stage/chunks/user-CK5IAVFH.js +0 -1
  356. package/dist/stage/chunks/validateStorePayload-3HAVFGVL.js +0 -3
  357. package/dist/stage/chunks/viewport-CQRIOXC6.js +0 -1
  358. package/dist/stage/chunks/window-7JZPBAP7.js +0 -1
  359. package/dist/stage/design.js +0 -1
  360. package/dist/stage/dev.js +0 -1
  361. package/dist/stage/preview.js +0 -1
  362. package/dist/stage-bundles/preact/chunks/addAction-EGLGEGTS.js +0 -1
  363. package/dist/stage-bundles/preact/chunks/addAnimationBinding-WCB5VZLU.js +0 -1
  364. package/dist/stage-bundles/preact/chunks/addAttribute-2MZ3OFUE.js +0 -1
  365. package/dist/stage-bundles/preact/chunks/addComponent-3JC5NC3Y.js +0 -1
  366. package/dist/stage-bundles/preact/chunks/addComputed-7JLBFD6I.js +0 -1
  367. package/dist/stage-bundles/preact/chunks/addEvent-HOBNKM2F.js +0 -1
  368. package/dist/stage-bundles/preact/chunks/addLifecycleHook-GHYL7FRH.js +0 -1
  369. package/dist/stage-bundles/preact/chunks/addNode-QXU2P4AE.js +0 -1
  370. package/dist/stage-bundles/preact/chunks/addOption-PVXGN7AJ.js +0 -1
  371. package/dist/stage-bundles/preact/chunks/addParamToRoute-VL2VOFZS.js +0 -1
  372. package/dist/stage-bundles/preact/chunks/addState-U2NWEGWV.js +0 -1
  373. package/dist/stage-bundles/preact/chunks/addStore-AQMFKH33.js +0 -1
  374. package/dist/stage-bundles/preact/chunks/addToken-XF2FFA52.js +0 -1
  375. package/dist/stage-bundles/preact/chunks/addTree-S73GXWZP.js +0 -1
  376. package/dist/stage-bundles/preact/chunks/addValue-O7YXXMST.js +0 -1
  377. package/dist/stage-bundles/preact/chunks/aiAttachmentContracts-7LLE57FI.js +0 -1
  378. package/dist/stage-bundles/preact/chunks/aiMessagesContracts-RAR7ENH4.js +0 -1
  379. package/dist/stage-bundles/preact/chunks/aiRelay-C6ZJ3PUF.js +0 -1
  380. package/dist/stage-bundles/preact/chunks/aiSessionContracts-NHU57TUZ.js +0 -1
  381. package/dist/stage-bundles/preact/chunks/assets-6LM3GVQU.js +0 -1
  382. package/dist/stage-bundles/preact/chunks/capture-ON3BO6WE.js +0 -1
  383. package/dist/stage-bundles/preact/chunks/chunk-2Z2RXHNK.js +0 -1
  384. package/dist/stage-bundles/preact/chunks/chunk-3WCN6R5H.js +0 -1
  385. package/dist/stage-bundles/preact/chunks/chunk-45YNKT2X.js +0 -1
  386. package/dist/stage-bundles/preact/chunks/chunk-4Q5R44ZZ.js +0 -1
  387. package/dist/stage-bundles/preact/chunks/chunk-5CWWFBNY.js +0 -1
  388. package/dist/stage-bundles/preact/chunks/chunk-5GKIM3R4.js +0 -1
  389. package/dist/stage-bundles/preact/chunks/chunk-6KW4HPGN.js +0 -1
  390. package/dist/stage-bundles/preact/chunks/chunk-6S7QQT47.js +0 -1
  391. package/dist/stage-bundles/preact/chunks/chunk-7I5TQOE2.js +0 -1
  392. package/dist/stage-bundles/preact/chunks/chunk-7UENQJSC.js +0 -5
  393. package/dist/stage-bundles/preact/chunks/chunk-7VDUBBVE.js +0 -1
  394. package/dist/stage-bundles/preact/chunks/chunk-7YVQSQRP.js +0 -1
  395. package/dist/stage-bundles/preact/chunks/chunk-A25WFH3U.js +0 -1
  396. package/dist/stage-bundles/preact/chunks/chunk-A52FDU5E.js +0 -1
  397. package/dist/stage-bundles/preact/chunks/chunk-AMPHYXGT.js +0 -1
  398. package/dist/stage-bundles/preact/chunks/chunk-AOGIMUZ2.js +0 -103
  399. package/dist/stage-bundles/preact/chunks/chunk-AS76ZLXK.js +0 -1
  400. package/dist/stage-bundles/preact/chunks/chunk-AYZAGKHN.js +0 -1
  401. package/dist/stage-bundles/preact/chunks/chunk-BGQJ5B3Q.js +0 -1
  402. package/dist/stage-bundles/preact/chunks/chunk-BL6GQ6ID.js +0 -1
  403. package/dist/stage-bundles/preact/chunks/chunk-BWJHUHDJ.js +0 -1
  404. package/dist/stage-bundles/preact/chunks/chunk-CAAW6MG4.js +0 -1
  405. package/dist/stage-bundles/preact/chunks/chunk-CC3CCH2E.js +0 -1
  406. package/dist/stage-bundles/preact/chunks/chunk-CGCD6S33.js +0 -6
  407. package/dist/stage-bundles/preact/chunks/chunk-CNZYL2VV.js +0 -1
  408. package/dist/stage-bundles/preact/chunks/chunk-CXJ5APZF.js +0 -1
  409. package/dist/stage-bundles/preact/chunks/chunk-CYURWEXX.js +0 -1
  410. package/dist/stage-bundles/preact/chunks/chunk-DHPGPV5T.js +0 -1
  411. package/dist/stage-bundles/preact/chunks/chunk-DLHF7QB4.js +0 -1
  412. package/dist/stage-bundles/preact/chunks/chunk-DWW3567Q.js +0 -1
  413. package/dist/stage-bundles/preact/chunks/chunk-E6KR5RXO.js +0 -1
  414. package/dist/stage-bundles/preact/chunks/chunk-EPVRMHC2.js +0 -1
  415. package/dist/stage-bundles/preact/chunks/chunk-EWEPEODY.js +0 -1
  416. package/dist/stage-bundles/preact/chunks/chunk-EXXAK3BP.js +0 -1
  417. package/dist/stage-bundles/preact/chunks/chunk-F5MJNV7Y.js +0 -3
  418. package/dist/stage-bundles/preact/chunks/chunk-FAYUYASQ.js +0 -1
  419. package/dist/stage-bundles/preact/chunks/chunk-G3PYA3EU.js +0 -1
  420. package/dist/stage-bundles/preact/chunks/chunk-GEOQWCYL.js +0 -1
  421. package/dist/stage-bundles/preact/chunks/chunk-GK5XUHQG.js +0 -1
  422. package/dist/stage-bundles/preact/chunks/chunk-GM4D3DPT.js +0 -1
  423. package/dist/stage-bundles/preact/chunks/chunk-GUI7FIZD.js +0 -1
  424. package/dist/stage-bundles/preact/chunks/chunk-HAN4CMBX.js +0 -1
  425. package/dist/stage-bundles/preact/chunks/chunk-HCRWHPFW.js +0 -1
  426. package/dist/stage-bundles/preact/chunks/chunk-HE7IQLGK.js +0 -1
  427. package/dist/stage-bundles/preact/chunks/chunk-I57W7UZN.js +0 -1
  428. package/dist/stage-bundles/preact/chunks/chunk-IBDKDP7T.js +0 -1
  429. package/dist/stage-bundles/preact/chunks/chunk-ICWQHFOI.js +0 -1
  430. package/dist/stage-bundles/preact/chunks/chunk-IG2Y3H6O.js +0 -1
  431. package/dist/stage-bundles/preact/chunks/chunk-IKKRB6BS.js +0 -1
  432. package/dist/stage-bundles/preact/chunks/chunk-IV6PINVX.js +0 -1
  433. package/dist/stage-bundles/preact/chunks/chunk-IW4KEJOF.js +0 -1
  434. package/dist/stage-bundles/preact/chunks/chunk-IWTWZA3T.js +0 -1
  435. package/dist/stage-bundles/preact/chunks/chunk-J5QMLA3Z.js +0 -1
  436. package/dist/stage-bundles/preact/chunks/chunk-K5BNCYT7.js +0 -1
  437. package/dist/stage-bundles/preact/chunks/chunk-KTWXYDG7.js +0 -1
  438. package/dist/stage-bundles/preact/chunks/chunk-LHK7LQPZ.js +0 -1
  439. package/dist/stage-bundles/preact/chunks/chunk-LUY5LC7Z.js +0 -1
  440. package/dist/stage-bundles/preact/chunks/chunk-LXD22ETU.js +0 -1
  441. package/dist/stage-bundles/preact/chunks/chunk-M577WNTV.js +0 -1
  442. package/dist/stage-bundles/preact/chunks/chunk-MGH62JQ4.js +0 -1
  443. package/dist/stage-bundles/preact/chunks/chunk-MUZZUB5Y.js +0 -1
  444. package/dist/stage-bundles/preact/chunks/chunk-N6I4COF2.js +0 -1
  445. package/dist/stage-bundles/preact/chunks/chunk-NFKUJQZH.js +0 -1
  446. package/dist/stage-bundles/preact/chunks/chunk-NHY2XYCH.js +0 -1
  447. package/dist/stage-bundles/preact/chunks/chunk-NKDO4J6J.js +0 -1
  448. package/dist/stage-bundles/preact/chunks/chunk-NOTXZB5N.js +0 -1
  449. package/dist/stage-bundles/preact/chunks/chunk-NXBFOI3Z.js +0 -1
  450. package/dist/stage-bundles/preact/chunks/chunk-OQM5TMCK.js +0 -1
  451. package/dist/stage-bundles/preact/chunks/chunk-PPDOTRNT.js +0 -1
  452. package/dist/stage-bundles/preact/chunks/chunk-PU62K33G.js +0 -1
  453. package/dist/stage-bundles/preact/chunks/chunk-Q3IER3MW.js +0 -1
  454. package/dist/stage-bundles/preact/chunks/chunk-Q3ZV7EKU.js +0 -1
  455. package/dist/stage-bundles/preact/chunks/chunk-QD56IMFS.js +0 -1
  456. package/dist/stage-bundles/preact/chunks/chunk-QFFVADTJ.js +0 -1
  457. package/dist/stage-bundles/preact/chunks/chunk-QJ33JO3T.js +0 -1
  458. package/dist/stage-bundles/preact/chunks/chunk-QVVBKZW6.js +0 -1
  459. package/dist/stage-bundles/preact/chunks/chunk-RFFN4NF4.js +0 -1
  460. package/dist/stage-bundles/preact/chunks/chunk-SCJKRPIZ.js +0 -1
  461. package/dist/stage-bundles/preact/chunks/chunk-TPCJQIUG.js +0 -1
  462. package/dist/stage-bundles/preact/chunks/chunk-TX5TCU2H.js +0 -1
  463. package/dist/stage-bundles/preact/chunks/chunk-UCLSDDOL.js +0 -1
  464. package/dist/stage-bundles/preact/chunks/chunk-ULVFWUAU.js +0 -1
  465. package/dist/stage-bundles/preact/chunks/chunk-XE3A5HPY.js +0 -1
  466. package/dist/stage-bundles/preact/chunks/chunk-XFHQ45KR.js +0 -1
  467. package/dist/stage-bundles/preact/chunks/chunk-XTAXESM6.js +0 -1
  468. package/dist/stage-bundles/preact/chunks/chunk-YB7FA4Y3.js +0 -1
  469. package/dist/stage-bundles/preact/chunks/chunk-YCGY2NRE.js +0 -1
  470. package/dist/stage-bundles/preact/chunks/chunk-YCMBBPKT.js +0 -1
  471. package/dist/stage-bundles/preact/chunks/chunk-Z3M6DQKZ.js +0 -1
  472. package/dist/stage-bundles/preact/chunks/chunk-ZUPNPSUB.js +0 -1
  473. package/dist/stage-bundles/preact/chunks/clearDestination-IGKNL7FN.js +0 -1
  474. package/dist/stage-bundles/preact/chunks/clearName-HJ7ZTHBU.js +0 -1
  475. package/dist/stage-bundles/preact/chunks/clearOptionsExpression-NZQFL64E.js +0 -1
  476. package/dist/stage-bundles/preact/chunks/clearRender-NPVDTNFA.js +0 -1
  477. package/dist/stage-bundles/preact/chunks/clearRepeat-7YFYZODP.js +0 -1
  478. package/dist/stage-bundles/preact/chunks/contentEditor-7BYCT3TH.js +0 -1
  479. package/dist/stage-bundles/preact/chunks/createAction-73YUTK3T.js +0 -1
  480. package/dist/stage-bundles/preact/chunks/createAnimation-2WQSMYT5.js +0 -1
  481. package/dist/stage-bundles/preact/chunks/createComputed-DMX7CJA3.js +0 -1
  482. package/dist/stage-bundles/preact/chunks/createTextContent-4Z4YATBO.js +0 -1
  483. package/dist/stage-bundles/preact/chunks/createValue-DXQSLOBG.js +0 -1
  484. package/dist/stage-bundles/preact/chunks/design-3DHGUCPX.js +0 -15
  485. package/dist/stage-bundles/preact/chunks/disconnectNode-2CLWVIQP.js +0 -1
  486. package/dist/stage-bundles/preact/chunks/history-CMF3VYTT.js +0 -1
  487. package/dist/stage-bundles/preact/chunks/id-ZIAZZ5AS.js +0 -1
  488. package/dist/stage-bundles/preact/chunks/main-3VRCGPRY.js +0 -1
  489. package/dist/stage-bundles/preact/chunks/main-DH4JOS22.js +0 -1
  490. package/dist/stage-bundles/preact/chunks/main-FAFZABOS.js +0 -1
  491. package/dist/stage-bundles/preact/chunks/main-S7RT75O6.js +0 -1
  492. package/dist/stage-bundles/preact/chunks/moveNodeToLastChildOf-CWSWITHI.js +0 -1
  493. package/dist/stage-bundles/preact/chunks/nodeGraph-UNI2HUNX.js +0 -1
  494. package/dist/stage-bundles/preact/chunks/normalizeEventName-SNBYJDUY.js +0 -1
  495. package/dist/stage-bundles/preact/chunks/preview-YOYSHYJF.js +0 -1
  496. package/dist/stage-bundles/preact/chunks/removeAction-T4M5EJN7.js +0 -1
  497. package/dist/stage-bundles/preact/chunks/removeAnimationBinding-AIISPC33.js +0 -1
  498. package/dist/stage-bundles/preact/chunks/removeAttribute-DCKZLM55.js +0 -1
  499. package/dist/stage-bundles/preact/chunks/removeComputed-WSA5GNVZ.js +0 -1
  500. package/dist/stage-bundles/preact/chunks/removeEvent-2YZ55HD6.js +0 -1
  501. package/dist/stage-bundles/preact/chunks/removeLifecycleHook-SBPJNF5P.js +0 -1
  502. package/dist/stage-bundles/preact/chunks/removeNode-5HXQ63V3.js +0 -1
  503. package/dist/stage-bundles/preact/chunks/removeOption-SYIFB4XW.js +0 -1
  504. package/dist/stage-bundles/preact/chunks/removeParamFromRoute-HAYP3WTT.js +0 -1
  505. package/dist/stage-bundles/preact/chunks/removeState-SGJVQ66N.js +0 -1
  506. package/dist/stage-bundles/preact/chunks/removeStore-YVBTGA3I.js +0 -1
  507. package/dist/stage-bundles/preact/chunks/removeToken-AIDV7DUM.js +0 -1
  508. package/dist/stage-bundles/preact/chunks/removeValue-UP5ZFN3U.js +0 -1
  509. package/dist/stage-bundles/preact/chunks/setDestination-NCPAVIIK.js +0 -1
  510. package/dist/stage-bundles/preact/chunks/setHomePage-O2JYOG6H.js +0 -1
  511. package/dist/stage-bundles/preact/chunks/setHtmlId-2W7YW47O.js +0 -1
  512. package/dist/stage-bundles/preact/chunks/setName-NKRZPBGG.js +0 -1
  513. package/dist/stage-bundles/preact/chunks/setNodeLayout-KQVZJBYW.js +0 -1
  514. package/dist/stage-bundles/preact/chunks/setOptionsExpression-K5EQXJEY.js +0 -1
  515. package/dist/stage-bundles/preact/chunks/setRender-7XMGQ7ZK.js +0 -1
  516. package/dist/stage-bundles/preact/chunks/setRepeat-WN4WZJUN.js +0 -1
  517. package/dist/stage-bundles/preact/chunks/setTagName-U6UJNJLE.js +0 -1
  518. package/dist/stage-bundles/preact/chunks/updateAction-3KSR6ZIJ.js +0 -1
  519. package/dist/stage-bundles/preact/chunks/updateAnimationBinding-HVVHLFBO.js +0 -1
  520. package/dist/stage-bundles/preact/chunks/updateAttribute-XXZL2P43.js +0 -1
  521. package/dist/stage-bundles/preact/chunks/updateBounds-5M7YQRO3.js +0 -1
  522. package/dist/stage-bundles/preact/chunks/updateComputed-7QA6XZIC.js +0 -1
  523. package/dist/stage-bundles/preact/chunks/updateEvent-R52PL2G4.js +0 -1
  524. package/dist/stage-bundles/preact/chunks/updateHtml-YBJJSWQW.js +0 -1
  525. package/dist/stage-bundles/preact/chunks/updateLifecycleHook-4RA2U4TR.js +0 -1
  526. package/dist/stage-bundles/preact/chunks/updateOption-5U23ZUWV.js +0 -1
  527. package/dist/stage-bundles/preact/chunks/updateRoute-TFQFFFSZ.js +0 -1
  528. package/dist/stage-bundles/preact/chunks/updateState-JCUSBQOL.js +0 -1
  529. package/dist/stage-bundles/preact/chunks/updateStyle-JASLFXVX.js +0 -1
  530. package/dist/stage-bundles/preact/chunks/updateToken-24P2P2SF.js +0 -1
  531. package/dist/stage-bundles/preact/chunks/updateValue-TSVJM3PO.js +0 -1
  532. package/dist/stage-bundles/preact/chunks/user-H5DKMGWA.js +0 -1
  533. package/dist/stage-bundles/preact/chunks/validateStorePayload-HCBPC7HR.js +0 -3
  534. package/dist/stage-bundles/preact/chunks/viewport-ZRWTVYC3.js +0 -1
  535. package/dist/stage-bundles/preact/chunks/window-IMPT5I3D.js +0 -1
  536. package/dist/stage-bundles/react/chunks/addAction-EGLGEGTS.js +0 -1
  537. package/dist/stage-bundles/react/chunks/addAnimationBinding-WCB5VZLU.js +0 -1
  538. package/dist/stage-bundles/react/chunks/addAttribute-2MZ3OFUE.js +0 -1
  539. package/dist/stage-bundles/react/chunks/addComponent-3JC5NC3Y.js +0 -1
  540. package/dist/stage-bundles/react/chunks/addComputed-7JLBFD6I.js +0 -1
  541. package/dist/stage-bundles/react/chunks/addEvent-HOBNKM2F.js +0 -1
  542. package/dist/stage-bundles/react/chunks/addLifecycleHook-GHYL7FRH.js +0 -1
  543. package/dist/stage-bundles/react/chunks/addNode-QXU2P4AE.js +0 -1
  544. package/dist/stage-bundles/react/chunks/addOption-PVXGN7AJ.js +0 -1
  545. package/dist/stage-bundles/react/chunks/addParamToRoute-VL2VOFZS.js +0 -1
  546. package/dist/stage-bundles/react/chunks/addState-U2NWEGWV.js +0 -1
  547. package/dist/stage-bundles/react/chunks/addStore-AQMFKH33.js +0 -1
  548. package/dist/stage-bundles/react/chunks/addToken-XF2FFA52.js +0 -1
  549. package/dist/stage-bundles/react/chunks/addTree-S73GXWZP.js +0 -1
  550. package/dist/stage-bundles/react/chunks/addValue-O7YXXMST.js +0 -1
  551. package/dist/stage-bundles/react/chunks/aiAttachmentContracts-7LLE57FI.js +0 -1
  552. package/dist/stage-bundles/react/chunks/aiMessagesContracts-RAR7ENH4.js +0 -1
  553. package/dist/stage-bundles/react/chunks/aiRelay-C6ZJ3PUF.js +0 -1
  554. package/dist/stage-bundles/react/chunks/aiSessionContracts-NHU57TUZ.js +0 -1
  555. package/dist/stage-bundles/react/chunks/assets-6LM3GVQU.js +0 -1
  556. package/dist/stage-bundles/react/chunks/capture-6GFKGXIT.js +0 -1
  557. package/dist/stage-bundles/react/chunks/chunk-2Z2RXHNK.js +0 -1
  558. package/dist/stage-bundles/react/chunks/chunk-3WCN6R5H.js +0 -1
  559. package/dist/stage-bundles/react/chunks/chunk-45YNKT2X.js +0 -1
  560. package/dist/stage-bundles/react/chunks/chunk-4Q5R44ZZ.js +0 -1
  561. package/dist/stage-bundles/react/chunks/chunk-5CWWFBNY.js +0 -1
  562. package/dist/stage-bundles/react/chunks/chunk-5GKIM3R4.js +0 -1
  563. package/dist/stage-bundles/react/chunks/chunk-6KW4HPGN.js +0 -1
  564. package/dist/stage-bundles/react/chunks/chunk-6S7QQT47.js +0 -1
  565. package/dist/stage-bundles/react/chunks/chunk-7I5TQOE2.js +0 -1
  566. package/dist/stage-bundles/react/chunks/chunk-7UENQJSC.js +0 -5
  567. package/dist/stage-bundles/react/chunks/chunk-7VDUBBVE.js +0 -1
  568. package/dist/stage-bundles/react/chunks/chunk-7YVQSQRP.js +0 -1
  569. package/dist/stage-bundles/react/chunks/chunk-A25WFH3U.js +0 -1
  570. package/dist/stage-bundles/react/chunks/chunk-A52FDU5E.js +0 -1
  571. package/dist/stage-bundles/react/chunks/chunk-AMPHYXGT.js +0 -1
  572. package/dist/stage-bundles/react/chunks/chunk-AS76ZLXK.js +0 -1
  573. package/dist/stage-bundles/react/chunks/chunk-AYZAGKHN.js +0 -1
  574. package/dist/stage-bundles/react/chunks/chunk-BGQJ5B3Q.js +0 -1
  575. package/dist/stage-bundles/react/chunks/chunk-BL6GQ6ID.js +0 -1
  576. package/dist/stage-bundles/react/chunks/chunk-BWJHUHDJ.js +0 -1
  577. package/dist/stage-bundles/react/chunks/chunk-CAAW6MG4.js +0 -1
  578. package/dist/stage-bundles/react/chunks/chunk-CC3CCH2E.js +0 -1
  579. package/dist/stage-bundles/react/chunks/chunk-CGCD6S33.js +0 -6
  580. package/dist/stage-bundles/react/chunks/chunk-CNZYL2VV.js +0 -1
  581. package/dist/stage-bundles/react/chunks/chunk-CXJ5APZF.js +0 -1
  582. package/dist/stage-bundles/react/chunks/chunk-CYURWEXX.js +0 -1
  583. package/dist/stage-bundles/react/chunks/chunk-DHPGPV5T.js +0 -1
  584. package/dist/stage-bundles/react/chunks/chunk-DLHF7QB4.js +0 -1
  585. package/dist/stage-bundles/react/chunks/chunk-E6KR5RXO.js +0 -1
  586. package/dist/stage-bundles/react/chunks/chunk-EPVRMHC2.js +0 -1
  587. package/dist/stage-bundles/react/chunks/chunk-EWEPEODY.js +0 -1
  588. package/dist/stage-bundles/react/chunks/chunk-EXXAK3BP.js +0 -1
  589. package/dist/stage-bundles/react/chunks/chunk-F5MJNV7Y.js +0 -3
  590. package/dist/stage-bundles/react/chunks/chunk-FAYUYASQ.js +0 -1
  591. package/dist/stage-bundles/react/chunks/chunk-G3PYA3EU.js +0 -1
  592. package/dist/stage-bundles/react/chunks/chunk-GEOQWCYL.js +0 -1
  593. package/dist/stage-bundles/react/chunks/chunk-GK5XUHQG.js +0 -1
  594. package/dist/stage-bundles/react/chunks/chunk-GM4D3DPT.js +0 -1
  595. package/dist/stage-bundles/react/chunks/chunk-GUI7FIZD.js +0 -1
  596. package/dist/stage-bundles/react/chunks/chunk-HAN4CMBX.js +0 -1
  597. package/dist/stage-bundles/react/chunks/chunk-HCRWHPFW.js +0 -1
  598. package/dist/stage-bundles/react/chunks/chunk-HE7IQLGK.js +0 -1
  599. package/dist/stage-bundles/react/chunks/chunk-HJOMUN4M.js +0 -49
  600. package/dist/stage-bundles/react/chunks/chunk-I57W7UZN.js +0 -1
  601. package/dist/stage-bundles/react/chunks/chunk-IBDKDP7T.js +0 -1
  602. package/dist/stage-bundles/react/chunks/chunk-ICWQHFOI.js +0 -1
  603. package/dist/stage-bundles/react/chunks/chunk-IG2Y3H6O.js +0 -1
  604. package/dist/stage-bundles/react/chunks/chunk-IKKRB6BS.js +0 -1
  605. package/dist/stage-bundles/react/chunks/chunk-IV6PINVX.js +0 -1
  606. package/dist/stage-bundles/react/chunks/chunk-IW4KEJOF.js +0 -1
  607. package/dist/stage-bundles/react/chunks/chunk-IWTWZA3T.js +0 -1
  608. package/dist/stage-bundles/react/chunks/chunk-J5QMLA3Z.js +0 -1
  609. package/dist/stage-bundles/react/chunks/chunk-K5BNCYT7.js +0 -1
  610. package/dist/stage-bundles/react/chunks/chunk-KTWXYDG7.js +0 -1
  611. package/dist/stage-bundles/react/chunks/chunk-LHK7LQPZ.js +0 -1
  612. package/dist/stage-bundles/react/chunks/chunk-LUY5LC7Z.js +0 -1
  613. package/dist/stage-bundles/react/chunks/chunk-LXD22ETU.js +0 -1
  614. package/dist/stage-bundles/react/chunks/chunk-M577WNTV.js +0 -1
  615. package/dist/stage-bundles/react/chunks/chunk-MGH62JQ4.js +0 -1
  616. package/dist/stage-bundles/react/chunks/chunk-MUZZUB5Y.js +0 -1
  617. package/dist/stage-bundles/react/chunks/chunk-N6I4COF2.js +0 -1
  618. package/dist/stage-bundles/react/chunks/chunk-NFKUJQZH.js +0 -1
  619. package/dist/stage-bundles/react/chunks/chunk-NHY2XYCH.js +0 -1
  620. package/dist/stage-bundles/react/chunks/chunk-NKDO4J6J.js +0 -1
  621. package/dist/stage-bundles/react/chunks/chunk-NOTXZB5N.js +0 -1
  622. package/dist/stage-bundles/react/chunks/chunk-NXBFOI3Z.js +0 -1
  623. package/dist/stage-bundles/react/chunks/chunk-OQM5TMCK.js +0 -1
  624. package/dist/stage-bundles/react/chunks/chunk-PPDOTRNT.js +0 -1
  625. package/dist/stage-bundles/react/chunks/chunk-PU62K33G.js +0 -1
  626. package/dist/stage-bundles/react/chunks/chunk-Q3IER3MW.js +0 -1
  627. package/dist/stage-bundles/react/chunks/chunk-Q3ZV7EKU.js +0 -1
  628. package/dist/stage-bundles/react/chunks/chunk-QD56IMFS.js +0 -1
  629. package/dist/stage-bundles/react/chunks/chunk-QFFVADTJ.js +0 -1
  630. package/dist/stage-bundles/react/chunks/chunk-QJ33JO3T.js +0 -1
  631. package/dist/stage-bundles/react/chunks/chunk-QVVBKZW6.js +0 -1
  632. package/dist/stage-bundles/react/chunks/chunk-RFFN4NF4.js +0 -1
  633. package/dist/stage-bundles/react/chunks/chunk-SCJKRPIZ.js +0 -1
  634. package/dist/stage-bundles/react/chunks/chunk-TPCJQIUG.js +0 -1
  635. package/dist/stage-bundles/react/chunks/chunk-TX5TCU2H.js +0 -1
  636. package/dist/stage-bundles/react/chunks/chunk-U66LRTNF.js +0 -1
  637. package/dist/stage-bundles/react/chunks/chunk-UCLSDDOL.js +0 -1
  638. package/dist/stage-bundles/react/chunks/chunk-ULVFWUAU.js +0 -1
  639. package/dist/stage-bundles/react/chunks/chunk-XE3A5HPY.js +0 -1
  640. package/dist/stage-bundles/react/chunks/chunk-XFHQ45KR.js +0 -1
  641. package/dist/stage-bundles/react/chunks/chunk-XTAXESM6.js +0 -1
  642. package/dist/stage-bundles/react/chunks/chunk-YB7FA4Y3.js +0 -1
  643. package/dist/stage-bundles/react/chunks/chunk-YCGY2NRE.js +0 -1
  644. package/dist/stage-bundles/react/chunks/chunk-YCMBBPKT.js +0 -1
  645. package/dist/stage-bundles/react/chunks/chunk-Z3M6DQKZ.js +0 -1
  646. package/dist/stage-bundles/react/chunks/chunk-ZUPNPSUB.js +0 -1
  647. package/dist/stage-bundles/react/chunks/clearDestination-IGKNL7FN.js +0 -1
  648. package/dist/stage-bundles/react/chunks/clearName-HJ7ZTHBU.js +0 -1
  649. package/dist/stage-bundles/react/chunks/clearOptionsExpression-NZQFL64E.js +0 -1
  650. package/dist/stage-bundles/react/chunks/clearRender-NPVDTNFA.js +0 -1
  651. package/dist/stage-bundles/react/chunks/clearRepeat-7YFYZODP.js +0 -1
  652. package/dist/stage-bundles/react/chunks/contentEditor-7BYCT3TH.js +0 -1
  653. package/dist/stage-bundles/react/chunks/createAction-73YUTK3T.js +0 -1
  654. package/dist/stage-bundles/react/chunks/createAnimation-2WQSMYT5.js +0 -1
  655. package/dist/stage-bundles/react/chunks/createComputed-DMX7CJA3.js +0 -1
  656. package/dist/stage-bundles/react/chunks/createTextContent-4Z4YATBO.js +0 -1
  657. package/dist/stage-bundles/react/chunks/createValue-DXQSLOBG.js +0 -1
  658. package/dist/stage-bundles/react/chunks/design-6KSNU4OK.js +0 -15
  659. package/dist/stage-bundles/react/chunks/disconnectNode-2CLWVIQP.js +0 -1
  660. package/dist/stage-bundles/react/chunks/history-CMF3VYTT.js +0 -1
  661. package/dist/stage-bundles/react/chunks/id-ZIAZZ5AS.js +0 -1
  662. package/dist/stage-bundles/react/chunks/main-3VRCGPRY.js +0 -1
  663. package/dist/stage-bundles/react/chunks/main-DH4JOS22.js +0 -1
  664. package/dist/stage-bundles/react/chunks/main-FAFZABOS.js +0 -1
  665. package/dist/stage-bundles/react/chunks/main-S7RT75O6.js +0 -1
  666. package/dist/stage-bundles/react/chunks/moveNodeToLastChildOf-CWSWITHI.js +0 -1
  667. package/dist/stage-bundles/react/chunks/nodeGraph-UNI2HUNX.js +0 -1
  668. package/dist/stage-bundles/react/chunks/normalizeEventName-SNBYJDUY.js +0 -1
  669. package/dist/stage-bundles/react/chunks/preview-KOCHK3AH.js +0 -1
  670. package/dist/stage-bundles/react/chunks/removeAction-T4M5EJN7.js +0 -1
  671. package/dist/stage-bundles/react/chunks/removeAnimationBinding-AIISPC33.js +0 -1
  672. package/dist/stage-bundles/react/chunks/removeAttribute-DCKZLM55.js +0 -1
  673. package/dist/stage-bundles/react/chunks/removeComputed-WSA5GNVZ.js +0 -1
  674. package/dist/stage-bundles/react/chunks/removeEvent-2YZ55HD6.js +0 -1
  675. package/dist/stage-bundles/react/chunks/removeLifecycleHook-SBPJNF5P.js +0 -1
  676. package/dist/stage-bundles/react/chunks/removeNode-5HXQ63V3.js +0 -1
  677. package/dist/stage-bundles/react/chunks/removeOption-SYIFB4XW.js +0 -1
  678. package/dist/stage-bundles/react/chunks/removeParamFromRoute-HAYP3WTT.js +0 -1
  679. package/dist/stage-bundles/react/chunks/removeState-SGJVQ66N.js +0 -1
  680. package/dist/stage-bundles/react/chunks/removeStore-YVBTGA3I.js +0 -1
  681. package/dist/stage-bundles/react/chunks/removeToken-AIDV7DUM.js +0 -1
  682. package/dist/stage-bundles/react/chunks/removeValue-UP5ZFN3U.js +0 -1
  683. package/dist/stage-bundles/react/chunks/setDestination-NCPAVIIK.js +0 -1
  684. package/dist/stage-bundles/react/chunks/setHomePage-O2JYOG6H.js +0 -1
  685. package/dist/stage-bundles/react/chunks/setHtmlId-2W7YW47O.js +0 -1
  686. package/dist/stage-bundles/react/chunks/setName-NKRZPBGG.js +0 -1
  687. package/dist/stage-bundles/react/chunks/setNodeLayout-KQVZJBYW.js +0 -1
  688. package/dist/stage-bundles/react/chunks/setOptionsExpression-K5EQXJEY.js +0 -1
  689. package/dist/stage-bundles/react/chunks/setRender-7XMGQ7ZK.js +0 -1
  690. package/dist/stage-bundles/react/chunks/setRepeat-WN4WZJUN.js +0 -1
  691. package/dist/stage-bundles/react/chunks/setTagName-U6UJNJLE.js +0 -1
  692. package/dist/stage-bundles/react/chunks/updateAction-3KSR6ZIJ.js +0 -1
  693. package/dist/stage-bundles/react/chunks/updateAnimationBinding-HVVHLFBO.js +0 -1
  694. package/dist/stage-bundles/react/chunks/updateAttribute-XXZL2P43.js +0 -1
  695. package/dist/stage-bundles/react/chunks/updateBounds-5M7YQRO3.js +0 -1
  696. package/dist/stage-bundles/react/chunks/updateComputed-7QA6XZIC.js +0 -1
  697. package/dist/stage-bundles/react/chunks/updateEvent-R52PL2G4.js +0 -1
  698. package/dist/stage-bundles/react/chunks/updateHtml-YBJJSWQW.js +0 -1
  699. package/dist/stage-bundles/react/chunks/updateLifecycleHook-4RA2U4TR.js +0 -1
  700. package/dist/stage-bundles/react/chunks/updateOption-5U23ZUWV.js +0 -1
  701. package/dist/stage-bundles/react/chunks/updateRoute-TFQFFFSZ.js +0 -1
  702. package/dist/stage-bundles/react/chunks/updateState-JCUSBQOL.js +0 -1
  703. package/dist/stage-bundles/react/chunks/updateStyle-JASLFXVX.js +0 -1
  704. package/dist/stage-bundles/react/chunks/updateToken-24P2P2SF.js +0 -1
  705. package/dist/stage-bundles/react/chunks/updateValue-TSVJM3PO.js +0 -1
  706. package/dist/stage-bundles/react/chunks/user-H5DKMGWA.js +0 -1
  707. package/dist/stage-bundles/react/chunks/validateStorePayload-HCBPC7HR.js +0 -3
  708. package/dist/stage-bundles/react/chunks/viewport-ZRWTVYC3.js +0 -1
  709. package/dist/stage-bundles/react/chunks/window-IMPT5I3D.js +0 -1
  710. package/dist/stage-bundles/vue/chunks/addAction-EGLGEGTS.js +0 -1
  711. package/dist/stage-bundles/vue/chunks/addAnimationBinding-WCB5VZLU.js +0 -1
  712. package/dist/stage-bundles/vue/chunks/addAttribute-2MZ3OFUE.js +0 -1
  713. package/dist/stage-bundles/vue/chunks/addComponent-NG2BML2S.js +0 -1
  714. package/dist/stage-bundles/vue/chunks/addComputed-7JLBFD6I.js +0 -1
  715. package/dist/stage-bundles/vue/chunks/addEvent-HOBNKM2F.js +0 -1
  716. package/dist/stage-bundles/vue/chunks/addLifecycleHook-GHYL7FRH.js +0 -1
  717. package/dist/stage-bundles/vue/chunks/addNode-UNXHE5VL.js +0 -1
  718. package/dist/stage-bundles/vue/chunks/addOption-PVXGN7AJ.js +0 -1
  719. package/dist/stage-bundles/vue/chunks/addParamToRoute-VL2VOFZS.js +0 -1
  720. package/dist/stage-bundles/vue/chunks/addState-U2NWEGWV.js +0 -1
  721. package/dist/stage-bundles/vue/chunks/addStore-AQMFKH33.js +0 -1
  722. package/dist/stage-bundles/vue/chunks/addToken-XF2FFA52.js +0 -1
  723. package/dist/stage-bundles/vue/chunks/addTree-MFMYQTGN.js +0 -1
  724. package/dist/stage-bundles/vue/chunks/addValue-O7YXXMST.js +0 -1
  725. package/dist/stage-bundles/vue/chunks/aiAttachmentContracts-7LLE57FI.js +0 -1
  726. package/dist/stage-bundles/vue/chunks/aiMessagesContracts-RAR7ENH4.js +0 -1
  727. package/dist/stage-bundles/vue/chunks/aiRelay-C6ZJ3PUF.js +0 -1
  728. package/dist/stage-bundles/vue/chunks/aiSessionContracts-NHU57TUZ.js +0 -1
  729. package/dist/stage-bundles/vue/chunks/assets-6LM3GVQU.js +0 -1
  730. package/dist/stage-bundles/vue/chunks/capture-XURVK5HZ.js +0 -1
  731. package/dist/stage-bundles/vue/chunks/chunk-2Z2RXHNK.js +0 -1
  732. package/dist/stage-bundles/vue/chunks/chunk-4M7L75C7.js +0 -1
  733. package/dist/stage-bundles/vue/chunks/chunk-4Q5R44ZZ.js +0 -1
  734. package/dist/stage-bundles/vue/chunks/chunk-5CWWFBNY.js +0 -1
  735. package/dist/stage-bundles/vue/chunks/chunk-5GKIM3R4.js +0 -1
  736. package/dist/stage-bundles/vue/chunks/chunk-6KW4HPGN.js +0 -1
  737. package/dist/stage-bundles/vue/chunks/chunk-6S7QQT47.js +0 -1
  738. package/dist/stage-bundles/vue/chunks/chunk-7UENQJSC.js +0 -5
  739. package/dist/stage-bundles/vue/chunks/chunk-7VDUBBVE.js +0 -1
  740. package/dist/stage-bundles/vue/chunks/chunk-7YVQSQRP.js +0 -1
  741. package/dist/stage-bundles/vue/chunks/chunk-A25WFH3U.js +0 -1
  742. package/dist/stage-bundles/vue/chunks/chunk-A52FDU5E.js +0 -1
  743. package/dist/stage-bundles/vue/chunks/chunk-AMPHYXGT.js +0 -1
  744. package/dist/stage-bundles/vue/chunks/chunk-AS76ZLXK.js +0 -1
  745. package/dist/stage-bundles/vue/chunks/chunk-AYZAGKHN.js +0 -1
  746. package/dist/stage-bundles/vue/chunks/chunk-BJPSGTXJ.js +0 -1
  747. package/dist/stage-bundles/vue/chunks/chunk-BL6GQ6ID.js +0 -1
  748. package/dist/stage-bundles/vue/chunks/chunk-BWJHUHDJ.js +0 -1
  749. package/dist/stage-bundles/vue/chunks/chunk-CAAW6MG4.js +0 -1
  750. package/dist/stage-bundles/vue/chunks/chunk-CC3CCH2E.js +0 -1
  751. package/dist/stage-bundles/vue/chunks/chunk-CGCD6S33.js +0 -6
  752. package/dist/stage-bundles/vue/chunks/chunk-CNZYL2VV.js +0 -1
  753. package/dist/stage-bundles/vue/chunks/chunk-CXJ5APZF.js +0 -1
  754. package/dist/stage-bundles/vue/chunks/chunk-CYURWEXX.js +0 -1
  755. package/dist/stage-bundles/vue/chunks/chunk-DHPGPV5T.js +0 -1
  756. package/dist/stage-bundles/vue/chunks/chunk-DLHF7QB4.js +0 -1
  757. package/dist/stage-bundles/vue/chunks/chunk-E6KR5RXO.js +0 -1
  758. package/dist/stage-bundles/vue/chunks/chunk-EPVRMHC2.js +0 -1
  759. package/dist/stage-bundles/vue/chunks/chunk-EWEPEODY.js +0 -1
  760. package/dist/stage-bundles/vue/chunks/chunk-EXXAK3BP.js +0 -1
  761. package/dist/stage-bundles/vue/chunks/chunk-F5MJNV7Y.js +0 -3
  762. package/dist/stage-bundles/vue/chunks/chunk-F7DSZRND.js +0 -1
  763. package/dist/stage-bundles/vue/chunks/chunk-FAYUYASQ.js +0 -1
  764. package/dist/stage-bundles/vue/chunks/chunk-GEOQWCYL.js +0 -1
  765. package/dist/stage-bundles/vue/chunks/chunk-GK5XUHQG.js +0 -1
  766. package/dist/stage-bundles/vue/chunks/chunk-GM4D3DPT.js +0 -1
  767. package/dist/stage-bundles/vue/chunks/chunk-GUI7FIZD.js +0 -1
  768. package/dist/stage-bundles/vue/chunks/chunk-GW7KMMRR.js +0 -1
  769. package/dist/stage-bundles/vue/chunks/chunk-HAN4CMBX.js +0 -1
  770. package/dist/stage-bundles/vue/chunks/chunk-HCRWHPFW.js +0 -1
  771. package/dist/stage-bundles/vue/chunks/chunk-HE7IQLGK.js +0 -1
  772. package/dist/stage-bundles/vue/chunks/chunk-HYSOOJLT.js +0 -1
  773. package/dist/stage-bundles/vue/chunks/chunk-I57W7UZN.js +0 -1
  774. package/dist/stage-bundles/vue/chunks/chunk-IBDKDP7T.js +0 -1
  775. package/dist/stage-bundles/vue/chunks/chunk-ICWQHFOI.js +0 -1
  776. package/dist/stage-bundles/vue/chunks/chunk-IG2Y3H6O.js +0 -1
  777. package/dist/stage-bundles/vue/chunks/chunk-IKKRB6BS.js +0 -1
  778. package/dist/stage-bundles/vue/chunks/chunk-IV6PINVX.js +0 -1
  779. package/dist/stage-bundles/vue/chunks/chunk-IW4KEJOF.js +0 -1
  780. package/dist/stage-bundles/vue/chunks/chunk-IWTWZA3T.js +0 -1
  781. package/dist/stage-bundles/vue/chunks/chunk-J5QMLA3Z.js +0 -1
  782. package/dist/stage-bundles/vue/chunks/chunk-K5BNCYT7.js +0 -1
  783. package/dist/stage-bundles/vue/chunks/chunk-K5IR3PSI.js +0 -1
  784. package/dist/stage-bundles/vue/chunks/chunk-KTWXYDG7.js +0 -1
  785. package/dist/stage-bundles/vue/chunks/chunk-LHK7LQPZ.js +0 -1
  786. package/dist/stage-bundles/vue/chunks/chunk-LUY5LC7Z.js +0 -1
  787. package/dist/stage-bundles/vue/chunks/chunk-LXD22ETU.js +0 -1
  788. package/dist/stage-bundles/vue/chunks/chunk-MGH62JQ4.js +0 -1
  789. package/dist/stage-bundles/vue/chunks/chunk-MUZZUB5Y.js +0 -1
  790. package/dist/stage-bundles/vue/chunks/chunk-N6I4COF2.js +0 -1
  791. package/dist/stage-bundles/vue/chunks/chunk-NFKUJQZH.js +0 -1
  792. package/dist/stage-bundles/vue/chunks/chunk-NHY2XYCH.js +0 -1
  793. package/dist/stage-bundles/vue/chunks/chunk-NKDO4J6J.js +0 -1
  794. package/dist/stage-bundles/vue/chunks/chunk-NOTXZB5N.js +0 -1
  795. package/dist/stage-bundles/vue/chunks/chunk-NXBFOI3Z.js +0 -1
  796. package/dist/stage-bundles/vue/chunks/chunk-OQM5TMCK.js +0 -1
  797. package/dist/stage-bundles/vue/chunks/chunk-PPDOTRNT.js +0 -1
  798. package/dist/stage-bundles/vue/chunks/chunk-PU62K33G.js +0 -1
  799. package/dist/stage-bundles/vue/chunks/chunk-Q3IER3MW.js +0 -1
  800. package/dist/stage-bundles/vue/chunks/chunk-Q3ZV7EKU.js +0 -1
  801. package/dist/stage-bundles/vue/chunks/chunk-QD56IMFS.js +0 -1
  802. package/dist/stage-bundles/vue/chunks/chunk-QFFVADTJ.js +0 -1
  803. package/dist/stage-bundles/vue/chunks/chunk-QFJRB6B2.js +0 -103
  804. package/dist/stage-bundles/vue/chunks/chunk-QJ33JO3T.js +0 -1
  805. package/dist/stage-bundles/vue/chunks/chunk-QVVBKZW6.js +0 -1
  806. package/dist/stage-bundles/vue/chunks/chunk-RFFN4NF4.js +0 -1
  807. package/dist/stage-bundles/vue/chunks/chunk-SCJKRPIZ.js +0 -1
  808. package/dist/stage-bundles/vue/chunks/chunk-TPCJQIUG.js +0 -1
  809. package/dist/stage-bundles/vue/chunks/chunk-TX5TCU2H.js +0 -1
  810. package/dist/stage-bundles/vue/chunks/chunk-UCLSDDOL.js +0 -1
  811. package/dist/stage-bundles/vue/chunks/chunk-ULVFWUAU.js +0 -1
  812. package/dist/stage-bundles/vue/chunks/chunk-USKXWFBI.js +0 -1
  813. package/dist/stage-bundles/vue/chunks/chunk-XE3A5HPY.js +0 -1
  814. package/dist/stage-bundles/vue/chunks/chunk-XFHQ45KR.js +0 -1
  815. package/dist/stage-bundles/vue/chunks/chunk-XTAXESM6.js +0 -1
  816. package/dist/stage-bundles/vue/chunks/chunk-YB7FA4Y3.js +0 -1
  817. package/dist/stage-bundles/vue/chunks/chunk-YCGY2NRE.js +0 -1
  818. package/dist/stage-bundles/vue/chunks/chunk-YCMBBPKT.js +0 -1
  819. package/dist/stage-bundles/vue/chunks/chunk-Z3M6DQKZ.js +0 -1
  820. package/dist/stage-bundles/vue/chunks/chunk-ZUPNPSUB.js +0 -1
  821. package/dist/stage-bundles/vue/chunks/clearDestination-IGKNL7FN.js +0 -1
  822. package/dist/stage-bundles/vue/chunks/clearName-HJ7ZTHBU.js +0 -1
  823. package/dist/stage-bundles/vue/chunks/clearOptionsExpression-NZQFL64E.js +0 -1
  824. package/dist/stage-bundles/vue/chunks/clearRender-NPVDTNFA.js +0 -1
  825. package/dist/stage-bundles/vue/chunks/clearRepeat-7YFYZODP.js +0 -1
  826. package/dist/stage-bundles/vue/chunks/contentEditor-7BYCT3TH.js +0 -1
  827. package/dist/stage-bundles/vue/chunks/createAction-73YUTK3T.js +0 -1
  828. package/dist/stage-bundles/vue/chunks/createAnimation-2WQSMYT5.js +0 -1
  829. package/dist/stage-bundles/vue/chunks/createComputed-DMX7CJA3.js +0 -1
  830. package/dist/stage-bundles/vue/chunks/createTextContent-4Z4YATBO.js +0 -1
  831. package/dist/stage-bundles/vue/chunks/createValue-DXQSLOBG.js +0 -1
  832. package/dist/stage-bundles/vue/chunks/design-4GTDZLD2.js +0 -15
  833. package/dist/stage-bundles/vue/chunks/disconnectNode-2CLWVIQP.js +0 -1
  834. package/dist/stage-bundles/vue/chunks/history-CMF3VYTT.js +0 -1
  835. package/dist/stage-bundles/vue/chunks/id-ZIAZZ5AS.js +0 -1
  836. package/dist/stage-bundles/vue/chunks/main-4HW35P75.js +0 -1
  837. package/dist/stage-bundles/vue/chunks/main-BVDJS6IT.js +0 -1
  838. package/dist/stage-bundles/vue/chunks/main-DH4JOS22.js +0 -1
  839. package/dist/stage-bundles/vue/chunks/main-PALLSI3C.js +0 -1
  840. package/dist/stage-bundles/vue/chunks/moveNodeToLastChildOf-BLKABBSO.js +0 -1
  841. package/dist/stage-bundles/vue/chunks/nodeGraph-UNI2HUNX.js +0 -1
  842. package/dist/stage-bundles/vue/chunks/normalizeEventName-SNBYJDUY.js +0 -1
  843. package/dist/stage-bundles/vue/chunks/preview-QUDMZGVG.js +0 -1
  844. package/dist/stage-bundles/vue/chunks/removeAction-T4M5EJN7.js +0 -1
  845. package/dist/stage-bundles/vue/chunks/removeAnimationBinding-AIISPC33.js +0 -1
  846. package/dist/stage-bundles/vue/chunks/removeAttribute-DCKZLM55.js +0 -1
  847. package/dist/stage-bundles/vue/chunks/removeComputed-WSA5GNVZ.js +0 -1
  848. package/dist/stage-bundles/vue/chunks/removeEvent-2YZ55HD6.js +0 -1
  849. package/dist/stage-bundles/vue/chunks/removeLifecycleHook-SBPJNF5P.js +0 -1
  850. package/dist/stage-bundles/vue/chunks/removeNode-5HXQ63V3.js +0 -1
  851. package/dist/stage-bundles/vue/chunks/removeOption-SYIFB4XW.js +0 -1
  852. package/dist/stage-bundles/vue/chunks/removeParamFromRoute-HAYP3WTT.js +0 -1
  853. package/dist/stage-bundles/vue/chunks/removeState-SGJVQ66N.js +0 -1
  854. package/dist/stage-bundles/vue/chunks/removeStore-YVBTGA3I.js +0 -1
  855. package/dist/stage-bundles/vue/chunks/removeToken-AIDV7DUM.js +0 -1
  856. package/dist/stage-bundles/vue/chunks/removeValue-UP5ZFN3U.js +0 -1
  857. package/dist/stage-bundles/vue/chunks/setDestination-NCPAVIIK.js +0 -1
  858. package/dist/stage-bundles/vue/chunks/setHomePage-O2JYOG6H.js +0 -1
  859. package/dist/stage-bundles/vue/chunks/setHtmlId-2W7YW47O.js +0 -1
  860. package/dist/stage-bundles/vue/chunks/setName-NKRZPBGG.js +0 -1
  861. package/dist/stage-bundles/vue/chunks/setNodeLayout-KQVZJBYW.js +0 -1
  862. package/dist/stage-bundles/vue/chunks/setOptionsExpression-K5EQXJEY.js +0 -1
  863. package/dist/stage-bundles/vue/chunks/setRender-7XMGQ7ZK.js +0 -1
  864. package/dist/stage-bundles/vue/chunks/setRepeat-WN4WZJUN.js +0 -1
  865. package/dist/stage-bundles/vue/chunks/setTagName-U6UJNJLE.js +0 -1
  866. package/dist/stage-bundles/vue/chunks/updateAction-3KSR6ZIJ.js +0 -1
  867. package/dist/stage-bundles/vue/chunks/updateAnimationBinding-HVVHLFBO.js +0 -1
  868. package/dist/stage-bundles/vue/chunks/updateAttribute-XXZL2P43.js +0 -1
  869. package/dist/stage-bundles/vue/chunks/updateBounds-5M7YQRO3.js +0 -1
  870. package/dist/stage-bundles/vue/chunks/updateComputed-7QA6XZIC.js +0 -1
  871. package/dist/stage-bundles/vue/chunks/updateEvent-R52PL2G4.js +0 -1
  872. package/dist/stage-bundles/vue/chunks/updateHtml-YBJJSWQW.js +0 -1
  873. package/dist/stage-bundles/vue/chunks/updateLifecycleHook-4RA2U4TR.js +0 -1
  874. package/dist/stage-bundles/vue/chunks/updateOption-5U23ZUWV.js +0 -1
  875. package/dist/stage-bundles/vue/chunks/updateRoute-TFQFFFSZ.js +0 -1
  876. package/dist/stage-bundles/vue/chunks/updateState-JCUSBQOL.js +0 -1
  877. package/dist/stage-bundles/vue/chunks/updateStyle-JASLFXVX.js +0 -1
  878. package/dist/stage-bundles/vue/chunks/updateToken-24P2P2SF.js +0 -1
  879. package/dist/stage-bundles/vue/chunks/updateValue-TSVJM3PO.js +0 -1
  880. package/dist/stage-bundles/vue/chunks/user-H5DKMGWA.js +0 -1
  881. package/dist/stage-bundles/vue/chunks/validateStorePayload-HCBPC7HR.js +0 -3
  882. package/dist/stage-bundles/vue/chunks/viewport-ZRWTVYC3.js +0 -1
  883. package/dist/stage-bundles/vue/chunks/window-IMPT5I3D.js +0 -1
  884. package/dist/stage-src/dev/server.js +0 -166
  885. package/dist/stage-src/preview/bootstrap.js +0 -20
  886. package/dist/stage-src/preview/entry.js +0 -5
@@ -1 +1,53 @@
1
- import{a as i}from"./chunks/chunk-5N7NET6A.js";import{a as e}from"./chunks/chunk-UVV4NANW.js";import"./chunks/chunk-4UJAZNZX.js";import"./chunks/chunk-SSSTBYOF.js";import{a as p}from"./chunks/chunk-TFGNKPAQ.js";import"./chunks/chunk-RSWDPV5U.js";import"./chunks/chunk-QDH6OIAL.js";import"./chunks/chunk-UN7EZPD7.js";import"./chunks/chunk-CM6UENYI.js";import{a as t}from"./chunks/chunk-RONEQF2M.js";import{Engine as l}from"@jucie.io/engine";import{jucieConfig as u}from"jucie:config";import{State as s}from"@jucie.io/engine-state";import{Reactive as n}from"@jucie.io/state-reactive";var a=t(async(o,{config:r={}}={})=>{let{scene:m}=await import("jucie:scene"),c=(await import("@components"))?.default??{};return i(r.$el||"app"),o.install(s.configure({state:m,plugins:[n]}),e.configure({...r,view:r.view||"production"})),o.sceneCompiler.loadPrototypes(p),o.sceneCompiler.loadSources(c),await o.sceneCompiler.create("app"),r},"createProductionBootstrap");a(l.create(),{config:u});
1
+ var Ea=Object.defineProperty;var Bp=(s,o,t)=>o in s?Ea(s,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[o]=t;var a=(s,o)=>Ea(s,"name",{value:o,configurable:!0});var Rt=(s,o)=>{for(var t in o)Ea(s,t,{get:o[t],enumerable:!0})};var w=(s,o,t)=>(Bp(s,typeof o!="symbol"?o+"":o,t),t),Ra=(s,o,t)=>{if(!o.has(s))throw TypeError("Cannot "+t)};var c=(s,o,t)=>(Ra(s,o,"read from private field"),t?t.call(s):o.get(s)),d=(s,o,t)=>{if(o.has(s))throw TypeError("Cannot add the same private member more than once");o instanceof WeakSet?o.add(s):o.set(s,t)},y=(s,o,t,n)=>(Ra(s,o,"write to private field"),n?n.call(s,t):o.set(s,t),t);var et=(s,o,t,n)=>({set _(e){y(s,o,e,t)},get _(){return c(s,o,n)}}),h=(s,o,t)=>(Ra(s,o,"access private method"),t);import{Engine as ib}from"@jucie.io/engine";import{jucieConfig as cb}from"jucie:config";import{Engine as wy,ServiceProvider as ky}from"@jucie.io/engine";import{ServiceProvider as _p}from"@jucie.io/engine";var Qe,tn,en,nn,rn,le,on,xs,Du,gr,Na,sn,ds,ue,mr,cn,ps,an,ms,ln,gs,bs,Lu,vs,Bu,Ss,_u,ws=class ws extends _p{constructor(){super(...arguments);d(this,xs);d(this,gr);d(this,sn);d(this,ue);d(this,cn);d(this,an);d(this,ln);d(this,bs);d(this,vs);d(this,Ss);d(this,Qe,new Set);d(this,tn,new Set);d(this,en,new Set);d(this,nn,new Map);d(this,rn,!1);d(this,le,new Set);d(this,on,!1)}actions(t,n){return{registerHook:(e,r,i)=>{h(this,gr,Na).call(this,e,r,i)},registerHooks:(e,r,i)=>{h(this,xs,Du).call(this,e,r,i)},notifyMount:e=>{n.server||(c(this,Qe).add(e),h(this,ln,gs).call(this))},notifyUpdate:e=>{n.server||(c(this,tn).add(e),h(this,ln,gs).call(this))},notifyUnmount:e=>{n.server||(c(this,en).add(e),h(this,ln,gs).call(this))},scheduleTeardown:e=>{n.view==="design"||n.server||(c(this,le).add(e),h(this,bs,Lu).call(this))},cancelTeardown:e=>{c(this,le).delete(e)},invokeBeforeMount:(e,r)=>{if(n.view==="design")return;let i=this.inject("registry").getHooks(r?.rid),l=h(this,cn,ps).call(this,i,"beforeMount");if(l)return h(this,ue,mr).call(this,l,h(this,sn,ds).call(this,r),void 0,"beforeMount",r?.rid)},invokeBeforeUnmount:(e,r)=>{if(n.view==="design"||!r)return;let i=this.inject("registry").getHooks(r.rid),l=h(this,cn,ps).call(this,i,"beforeUnmount");l&&h(this,ue,mr).call(this,l,h(this,sn,ds).call(this,r),r.$el,"beforeUnmount",r.rid)},invokeAppHook:(e,r,i)=>{if(n.view==="design")return;let f=this.inject("registry").getNode("app")?.lifecycle?.find(m=>m.key===e);if(!f)return;let p=this.inject("resolve").dispatch("descriptor",f);if(p)return h(this,ue,mr).call(this,p,r,i,e)},cleanupApp:()=>{}}}};Qe=new WeakMap,tn=new WeakMap,en=new WeakMap,nn=new WeakMap,rn=new WeakMap,le=new WeakMap,on=new WeakMap,xs=new WeakSet,Du=a(function(t,n,e){if(!n?.length)return null;for(let r of n)h(this,gr,Na).call(this,t,r,e);return this.inject("registry").getHooks(t)},"#registerHooks"),gr=new WeakSet,Na=a(function(t,n,e){let r=this.inject("registry"),i=this.inject("resolve").dispatch("descriptor",n);i&&(n.key==="setup"?i(e):r.setHook(t,n.key,i))},"#registerHook"),sn=new WeakSet,ds=a(function(t){return t.ctx??t.actor?.runtime?.context?.ctx??null},"#getContext"),ue=new WeakSet,mr=a(function(t,n,e,r,i){if(typeof t=="function")try{let l=t(n);if(typeof l=="function")return l(n,e)}catch(l){console.error(`Error invoking lifecycle hook "${r}"${i?` on rid "${i}"`:""}`,l)}},"#invokeHook"),cn=new WeakSet,ps=a(function(t,n){return t?t[n]??t[n.replace(/^(on|before)/,"").toLowerCase()]??null:null},"#resolveHookKey"),an=new WeakSet,ms=a(function(t,n){let e=this.inject("registry"),r=e.getPuppet(t);if(!r||r.actor?.app?.config?.view==="design")return;if(n==="onUnmount"){let m=c(this,nn).get(t);if(typeof m=="function"){try{m()}catch(g){console.error("Error in mount cleanup",g)}c(this,nn).delete(t)}}let i=e.getHooks(t),l=h(this,cn,ps).call(this,i,n);if(!l)return;let u=h(this,sn,ds).call(this,r),f=n==="onUnmount"?void 0:r.$el,p=h(this,ue,mr).call(this,l,u,f,n,t);n==="onMount"&&typeof p=="function"&&c(this,nn).set(t,p),n==="onUnmount"&&e.deleteHooks(t)},"#resolveAndInvokeHook"),ln=new WeakSet,gs=a(function(){c(this,rn)||(y(this,rn,!0),setTimeout(()=>{h(this,Ss,_u).call(this),y(this,rn,!1)},0))},"#scheduleFlush"),bs=new WeakSet,Lu=a(function(){c(this,on)||(y(this,on,!0),requestAnimationFrame(()=>{h(this,vs,Bu).call(this),y(this,on,!1)}))},"#scheduleDestroyFlush"),vs=new WeakSet,Bu=a(function(){let t=this.inject("registry"),n=Array.from(c(this,le));c(this,le).clear();for(let e of n){let r=t.getActor(e);r&&r.destroy()}},"#flushDestroys"),Ss=new WeakSet,_u=a(function(){let t=this.inject("relay"),n=Array.from(c(this,Qe)),e=Array.from(c(this,tn)),r=Array.from(c(this,en));c(this,Qe).clear(),c(this,tn).clear(),c(this,en).clear();let i=new Set(n),l=e.filter(u=>!i.has(u));t.broadcast("scene:change",n,l,r),t.broadcast("scene:unmount",r),t.broadcast("scene:mount",n),t.broadcast("scene:update",l);for(let u of n)h(this,an,ms).call(this,u,"onMount");for(let u of l)h(this,an,ms).call(this,u,"onUpdate");for(let u of r)h(this,an,ms).call(this,u,"onUnmount")},"#flush"),a(ws,"Lifecycle"),w(ws,"manifest",{name:"Lifecycle",namespace:"lifecycle"});var ys=ws;var Gu=a((s=21)=>crypto.getRandomValues(new Uint8Array(s)).reduce((o,t)=>(t&=63,t<36?o+=t.toString(36):t<62?o+=(t-26).toString(36).toUpperCase():t>62?o+="-":o+="_",o),""),"nanoid");import{ServiceProvider as tm}from"@jucie.io/engine";import{addEffect as em,createSignal as nm}from"@jucie.io/reactive";import{createElement as Uu,createHost as Yp,renderSource as Xp,hostRootProps as Zp,provideJucie as Qp}from"jucie:sdk";import"@jucie.io/reactive";import{contextKey as Wp}from"@jucie.io/composed-style";import{contextOf as Up}from"@jucie.io/composed-style";import{baseOf as Gp}from"@jucie.io/composed-style";var Hp=new Set(["none","block","flex","grid"]);function un(s){let o=Gp(s?.style),t=o.$layout;if(Hp.has(t))return t;let n=s?.layout;if(n&&n!=="none")return n;let e=o.display;return e==="flex"||e==="grid"?e:"none"}a(un,"layoutOf");function Nt(s){return s?Up(s.style,{layout:un(s)}):{}}a(Nt,"getNodeContext");var yt,it,fn,yr,Ta,xr,ja,Pa=class Pa{constructor(o,t,{node:n,styleScope:e,parentId:r=null}={}){d(this,yr);d(this,xr);d(this,yt,new Set);d(this,it,new Set);d(this,fn,"");w(this,"context",{});w(this,"cleanupFns",new Set);w(this,"ref",null);w(this,"dependants",new Set);w(this,"app",null);w(this,"runtime",null);w(this,"parentId",null);if(this.app=o,this.runtime=o.runtime,this.id=t,this.node=n,this.parentId=r,this.isInstance=n?.type==="instance",this.children=n?.children?.slice()??[],h(this,yr,Ta).call(this,n),n?.bounds){let i=o.$el?.ownerDocument??(typeof document<"u"?document:null);this.addStyleScope(o.runtime.styleContext.createScope(this.id,i))}else this.addStyleScope(e??o.styleScope)}static create(o,t,n={}){return new this(o,t,n)}get puppetRids(){return c(this,yt)}get firstPuppetRid(){return c(this,yt).values().next().value??null}get styleScope(){let o=null;for(let t of c(this,it))t.destroyed?c(this,it).delete(t):o=t;return o}addStyleScope(o){if(!o)return;let t=c(this,it).has(o);c(this,it).delete(o),c(this,it).add(o),t||o.register(this)}updateStyles(){for(let o of c(this,it))o.destroyed||o.update(this.id,this.node,this.isInstance,this.parentId)}get puppets(){let o=[];for(let t of c(this,yt))o.push(this.runtime.registry.getPuppet(t));return o}addPuppet(o){c(this,yt).add(o)}removePuppet(o){c(this,yt).delete(o)}render(){throw new Error("render not implemented")}addDependant(o){this.dependants.add(o);let t=a(()=>this.removeDependant(o),"cleanup");return this.addCleanupFn(t),t}removeDependant(o){this.dependants.delete(o)}update(o){this.node=o,this.children=o?.children?.slice()??[];let t=h(this,yr,Ta).call(this,o);this.runtime.styleContext.batch(()=>{this.updateStyles(),t&&h(this,xr,ja).call(this,this.id)});for(let n of c(this,yt))this.runtime.registry.getPuppet(n)?.markAsDirty?.()}destroy(){for(let o of c(this,it))o.unregister(this.id);c(this,it).clear(),this.node?.bounds&&this.runtime.styleContext.destroyScope(this.id);for(let o of[...c(this,yt)]){let t=this.runtime.registry.getPuppet(o);t&&t.destroy()}this.children.forEach(o=>{let t=this.runtime.registry.getActor(o);t?.parentId===this.id&&t.destroy()}),this.runtime.registry.deleteActor(this.id),this.cleanupFns.forEach(o=>o()),this.cleanupFns.clear()}addCleanupFn(o){return this.cleanupFns.add(o),this}removeCleanupFn(o){return this.cleanupFns.delete(o),this}};yt=new WeakMap,it=new WeakMap,fn=new WeakMap,yr=new WeakSet,Ta=a(function(o){let t=c(this,fn);return this.context=Nt(o),y(this,fn,Wp(this.context)),c(this,fn)!==t},"#setContext"),xr=new WeakSet,ja=a(function(o){let{registry:t,styleContext:n}=this.runtime;for(let e of t.getChildActors(o))e.updateStyles?.(),n.passesThrough(e)&&h(this,xr,ja).call(this,e.id)},"#restyleChildren"),a(Pa,"Actor");var hn=Pa;var Y,fe,X,br,Tt,dn,Oa=class Oa{constructor(){d(this,Y,new Map);d(this,fe,new Map);d(this,X,new Map);d(this,br,new Map);d(this,Tt,new Map);d(this,dn,!0)}getShouldRender(){return c(this,dn)}reconcileShouldRender(o,t){c(this,dn)!==o&&(y(this,dn,o),t?.())}getChild(o){return c(this,Y).get(o)??null}setChild(o,t){c(this,Y).set(o,t)}clearChildren(){let o=[...c(this,Y).values()];return y(this,Y,new Map),o}reconcileChildren(o){let t=new Map,n=new Set(o),e=[];for(let r of o){let i=c(this,Y).get(r);i!==void 0&&t.set(r,i)}for(let r of c(this,Y).keys())n.has(r)||e.push(r);return y(this,Y,t),e}getSlot(o){return c(this,fe).get(o)??null}setSlot(o,t){c(this,fe).set(o,t)}getSlotRids(){return[...c(this,fe).values()]}hasSlots(){return c(this,fe).size>0}getSlotChild(o,t){return c(this,X).get(o)?.get(t)??null}setSlotChild(o,t,n){c(this,X).has(o)||c(this,X).set(o,new Map),c(this,X).get(o).set(t,n)}getSlotChildren(o){return[...c(this,X).get(o)?.values()??[]]}clearSlotContent(){let o=[];for(let t of c(this,X).values())o.push(...t.values());return y(this,X,new Map),o}reconcileSlotChildren(o,t){let n=c(this,X).get(o);if(!n)return[];let e=new Set(t),r=[];for(let i of n.keys())e.has(i)||(r.push(i),n.delete(i));return r}setSlotThunk(o,t){c(this,br).set(o,t)}getSlotThunks(){return Object.fromEntries(c(this,br).entries())}getClone(o){return c(this,Tt).get(o)??null}setClone(o,t){c(this,Tt).set(o,t)}reconcileClones(o){let t=[];for(let[n,e]of c(this,Tt).entries())o.has(n)||(t.push(e),c(this,Tt).delete(n));return t}getChildrenRids(){return[...c(this,Y).values()]}getChildEntries(){return[...c(this,Y).entries()]}getSlotEntries(){return[...c(this,X).entries()]}getCloneEntries(){return[...c(this,Tt).entries()]}tracks(o){for(let t of c(this,Y).values())if(t===o)return!0;for(let t of c(this,X).values())for(let n of t.values())if(n===o)return!0;for(let t of c(this,Tt).values())if(t===o)return!0;return!1}};Y=new WeakMap,fe=new WeakMap,X=new WeakMap,br=new WeakMap,Tt=new WeakMap,dn=new WeakMap,a(Oa,"Tracker");var ks=Oa;import{onDirty as Kp,markAsDirty as qp,isDirty as zp}from"@jucie.io/reactive";import{createComputed as Vp,createRef as Hu,renderComputed as Jp}from"jucie:sdk";var As,vr,Sr,Ma,Ia=class Ia extends ks{constructor(t,n,e={}){super();d(this,Sr);w(this,"actor",null);w(this,"runtime",null);w(this,"rid",null);w(this,"ref",null);w(this,"mounted",!1);d(this,As,!0);d(this,vr,null);this.actor=t,this.runtime=t.runtime,this.rid=n??this.runtime.registry.createActorRid(t.id),this.ctx=e.ctx??null,this.instanceRid=e.instanceRid??null,this.cloneOf=e.cloneOf??null,this.rootOf=e.rootOf??null,this.ref=h(this,Sr,Ma).call(this)??Hu(),this.repeats||t.runtime.lifecycle.registerHooks(this.rid,this.actor.node?.lifecycle,this.ctx),this.view=Vp(()=>{let r=this.ctx??this.actor.runtime.context.ctx;try{return this.repeats?this.runtime.resolve.dispatch("nodeRepeat",this,{ctx:r,instanceRid:this.instanceRid}):(this.runtime.lifecycle.registerHooks(this.rid,this.actor.node?.lifecycle,this.ctx),this.runtime.resolve.dispatch("node",this,{ctx:r,instanceRid:this.instanceRid}))}finally{this.markAsClean()}},{detached:!0}),this.render=()=>Jp(this.view),this.unsubscribe=Kp(this.view,()=>{this.markAsDirty?.()})}static create(t,n,e={}){return new this(t,n,e)}get $el(){return this.actor.node?.type==="root"?typeof document<"u"?document.getElementById(this.actor.id):null:this.ref?.value??this.ref?.current}get repeats(){return!!this.actor?.node?.repeat&&!this.cloneOf&&this.actor.app?.config?.view!=="design"}getSetup(){return c(this,vr)}setSetup(t){y(this,vr,t)}notifyMount(){this.mounted||this.repeats||(this.runtime.lifecycle.notifyMount(this.rid),this.mounted=!0)}update(t={}){let n=t.ctx??this.ctx,e=t.instanceRid??this.instanceRid,r=t.rootOf??null,i=n!==this.ctx||e!==this.instanceRid||r!==this.rootOf;this.ctx=n,this.instanceRid=e,r!==this.rootOf&&(this.rootOf=r,this.ref=h(this,Sr,Ma).call(this)??Hu()),i&&this.markAsDirty()}markAsDirty(){if(this.hasSlots())for(let t of this.getSlotRids()){let n=this.runtime.registry.getPuppet(t);n&&n.markAsDirty()}if(this.actor.node?.type==="instance")for(let t of this.getChildrenRids()){let n=this.runtime.registry.getPuppet(t);n?.rootOf===this.rid&&n.markAsDirty()}zp(this.view)||qp(this.view)}markAsClean(){this.repeats||this.runtime.lifecycle.notifyUpdate(this.rid),y(this,As,!1)}destroyDescendants(){let t=[];for(let n of[...this.clearChildren(),...this.clearSlotContent()]){let e=this.runtime.registry.getPuppet(n);e&&(t.push(...e.destroyDescendants(),n),e.destroy())}return t}destroy(){for(let[,t]of this.getCloneEntries()){let n=this.runtime.registry.getPuppet(t);n&&n.destroy()}this.repeats||(this.runtime.lifecycle.invokeBeforeUnmount(this.actor,this),this.runtime.lifecycle.notifyUnmount(this.rid)),this.actor.removePuppet(this.rid),this.runtime.registry.deletePuppet(this.rid),this.unsubscribe?.(),this.runtime.context?.releaseContexts(this.rid)}};As=new WeakMap,vr=new WeakMap,Sr=new WeakSet,Ma=a(function(){return this.rootOf?this.runtime.registry.getPuppet(this.rootOf)?.ref??null:null},"#instanceRef"),a(Ia,"Puppet");var $s=Ia;var he,Fa=class Fa{constructor(o,t,n){w(this,"config",null);w(this,"runtime",null);w(this,"styleScope",null);w(this,"$el",null);w(this,"host",null);d(this,he,null);this.config=o,this.runtime=t,this.$el=n;let e=n?.ownerDocument??(typeof document<"u"?document:null);this.styleScope=t.styleContext.createScope("app",e),t.registry.setActorClass(hn),t.registry.setPuppetClass($s),t.registry.setCreateElement(Uu),t.registry.setRenderSource(Xp)}static create(o,t,n){return new this(o,t,n)}async create(o){try{if(!o)throw new Error("App create error: ID not defined");let t=this.runtime.registry;return this.host=(this.config.createHost??Yp)(this.$el,n=>{c(this,he)&&c(this,he)!==n&&this.runtime.lifecycle.scheduleTeardown(c(this,he));let e=t.resolveActor(this,n),r=this.runtime.context.ctx,i=e&&t.resolvePuppet(e,n,{ctx:r});return y(this,he,n),Uu(i?.render,Zp(n))},{hydrate:!!this.config.hydrate}),await Promise.resolve(this.host.mount(o)),Qp(this.host.jucie),this}catch(t){return console.error("App create error",t),null}}navigate(o){this.host?.navigate(o)}render(){throw new Error("render not implemented")}jucie(){return null}};he=new WeakMap,a(Fa,"App");var Cs=Fa;var Es=a(s=>`${s}:setup`,"setupContextId");var Wu=5e3,Ku=a(()=>new Promise(s=>setTimeout(s,0)),"nextTask");function qu(s,o){return!s||typeof s.then!="function"?Promise.resolve():new Promise(t=>{let n=setTimeout(t,o);Promise.resolve(s).catch(()=>{}).finally(()=>{clearTimeout(n),t()})})}a(qu,"settleWithin");var Lt,de,mn,Bt,Ar,pe,L,_t,U,Gt,Ht,W,xt,me,Cr,Ps,gn,yn,xn,Er,Da,Rr,La,bn,Rs,Os,zu,Nr,Ba,Ms,Vu,Is,Ju,Tr,_a,Ut,pn,ge,wr,jr,Ga,Pr,Ha,Or,Ua,Fs,Yu,ye,kr,xe,$r,vn,Ns,Ds,Xu,Mr,Wa,Ir,Ka,Fr,qa,Ls,Zu,Dr,za,Sn,Ts,Bs=class Bs extends tm{constructor(){super(...arguments);d(this,Er);d(this,Rr);d(this,bn);d(this,Os);d(this,Nr);d(this,Ms);d(this,Is);d(this,Tr);d(this,Ut);d(this,ge);d(this,jr);d(this,Pr);d(this,Or);d(this,Fs);d(this,ye);d(this,xe);d(this,vn);d(this,Ds);d(this,Mr);d(this,Ir);d(this,Fr);d(this,Ls);d(this,Dr);d(this,Sn);d(this,Lt,null);d(this,de,null);d(this,mn,null);d(this,Bt,new Map);d(this,Ar,new Map);d(this,pe,new Map);d(this,L,new Map);d(this,_t,new Map);d(this,U,new Map);d(this,Gt,new Map);d(this,Ht,new Map);d(this,W,new Map);d(this,xt,new Map);d(this,me,new Map);d(this,Cr,new Map);d(this,Ps,0);d(this,gn,[]);d(this,yn,null);d(this,xn,nm(0))}actions(t,n){return{registerLibrary:(e,{source:r=null,manifest:i=null}={})=>{let l=h(this,bn,Rs).call(this,e);return r!==null&&(l.source=r),i!==null&&(l.manifest=i),l},getLibrary:e=>c(this,W).get(e)??null,hasLibrary:e=>c(this,W).has(e),getLibraries:()=>Array.from(c(this,W).keys()),loadSources:e=>h(this,Is,Ju).call(this,e),loadPrototypes:e=>{for(let[r,i]of Object.entries(e??{}))c(this,me).set(r,i)},registerComponent:(e,r,i,l)=>{let u=h(this,ge,wr).call(this,e,r)!=null,f=h(this,Ut,pn).call(this,e,r,i,l);if(u)for(let p of c(this,L).values())p.node?.component===r&&p.update(p.node);return f},registerComponents:(e,r)=>{if(!r)return;let i=r instanceof Map?r.entries():Object.entries(r);for(let[l,u]of i)u&&typeof u=="object"&&"component"in u?h(this,Ut,pn).call(this,e,l,u.component,u.meta??{}):h(this,Ut,pn).call(this,e,l,u)},unregisterComponent:(e,r)=>{let i=c(this,W).get(e);i&&(i.components.delete(r),i.meta?.delete(r),c(this,xn).update(l=>l+1))},getComponentEntry:(e,r)=>h(this,ge,wr).call(this,e,r),getComponent:(e,r)=>h(this,ge,wr).call(this,e,r)?.component??null,getComponentMeta:(e,r)=>h(this,jr,Ga).call(this,e,r),describeComponent:(e,r)=>h(this,Fs,Yu).call(this,e,r),definitionIdOf:(e,r)=>h(this,Or,Ua).call(this,e,r),hasComponent:(e,r)=>c(this,W).get(e)?.components.has(r)??!1,getComponentsByLibrary:e=>{let r=c(this,W).get(e);return r?Array.from(r.components.values()):[]},getAllComponents:()=>{c(this,xn).call(this);let e=[];for(let[r,i]of c(this,W)){let l=new Set([...i.meta?.keys()??[],...i.components?.keys()??[]]);for(let u of l){let f=i.components.get(u),p=i.meta?.get(u)??f?.meta??null;p&&e.push({library:r,name:u,component:f?.component??null,meta:p})}}return e},hasNode:e=>h(this,Ls,Zu).call(this,e),getNode:e=>h(this,Dr,za).call(this,e),getNodeType:e=>this.inject("resolve").dispatch("computedNode",e)()?.type??null,getNodeChildren:e=>this.inject("resolve").dispatch("computedNode",e)()?.children??null,addActor:e=>{c(this,L).set(e.id,e),h(this,xe,$r).call(this,e.id,e.parentId)},getChildActors:e=>h(this,Ds,Xu).call(this,e),getActor:e=>h(this,ye,kr).call(this,e),hasActor:e=>h(this,Mr,Wa).call(this,e),deleteActor:e=>{h(this,vn,Ns).call(this,e),c(this,L).delete(e)},getActors:(e=[])=>!e||e.length===0?Array.from(c(this,L).values()):e.map(r=>c(this,L).get(r)),resolveActorRid:e=>{if(h(this,Mr,Wa).call(this,e)){let i=h(this,ye,kr).call(this,e).firstPuppetRid;if(i!=null)return i}return h(this,Rr,La).call(this,e)},createActorRid:e=>h(this,Rr,La).call(this,e),getActorId:e=>c(this,Bt).get(e),getActorByRid:e=>{let r=c(this,Bt).get(e);return r?c(this,L).get(r):null},syncActorChildren:(e,r=[])=>{if(!e||e.length===0)return r.slice();let i=new Set(r),l=e.filter(u=>!i.has(u));for(let u of l){let f=h(this,ye,kr).call(this,u);f&&f.destroy()}return r.slice()},resolveActor:(e,r,{styleScope:i,parentId:l}={})=>h(this,Ir,Ka).call(this,e,r,{styleScope:i,parentId:l}),addPuppet:e=>{c(this,U).set(e.rid,e)},getPuppet:e=>c(this,U).get(e),hasPuppet:e=>c(this,U).has(e),deletePuppet:e=>{c(this,U).delete(e)},getPuppets:(e=[])=>!e||e.length===0?Array.from(c(this,U).values()):e.map(r=>c(this,U).get(r)),setContext:(e,r)=>{c(this,Gt).set(e,r);let i=c(this,Ht).get(r.owner);i||c(this,Ht).set(r.owner,i=new Set),i.add(e)},getContext:e=>c(this,Gt).get(e)??null,deleteContext:e=>{let r=c(this,Gt).get(e);if(!r)return;c(this,Gt).delete(e);let i=c(this,Ht).get(r.owner);i?.delete(e),i&&!i.size&&c(this,Ht).delete(r.owner)},getContexts:()=>[...c(this,Gt).entries()],getContextIds:e=>[...c(this,Ht).get(e)??[]],resolvePuppet:(e,r,{ctx:i,instanceRid:l,cloneOf:u,rootOf:f})=>h(this,Fr,qa).call(this,e,r,{ctx:i,instanceRid:l,cloneOf:u,rootOf:f}),resolveSlotPuppet:(e,r)=>this.resolveSlotPuppet(e,r),getSlotChildren:(e,r)=>this.getSlotChildren(e,r),setSetup:(e,r)=>h(this,Tr,_a).call(this,e,r),getSetup:e=>c(this,Cr).get(e)??null,createApp:async(e,r,i={})=>{let l=t(),u=n.server??null,f=i.$el??(typeof document<"u"?document.getElementById(e):null),p={...n,mode:"app",...i};this.inject("modules").initialize(p.view==="design"||p.view==="preview"||p.view==="screen-capture");let m=Cs.create(p,l,f),g=h(this,Dr,za).call(this,"app"),v=l.context.ctx;if(l.lifecycle.registerHooks("app",g?.lifecycle,v),p.isolated)l.router.setMemoryMode(!0),await l.router.navigate("/",{replace:!0});else if(p.view!=="design"){let S=l.router;S.setCallback(E=>m.navigate(E));let k=!r&&S.getCurrentUrl();k?(await S.navigate(k,{replace:!0}),r=S.getCurrentRoute()?.pageId||p.nodeId):(r=r||p.nodeId,await S.navigate(r,{replace:!0}))}let b=l.lifecycle.invokeAppHook("beforeReady",v,m);u&&await qu(b,u.timeout??Wu);let x=p.hydrate;return x&&(await qu(b,Wu),await Ku(),await Ku(),l.context.restore(x.state)),await Promise.resolve(m.create(r)),u||(l.lifecycle.invokeAppHook("onReady",v,m),p.view!=="design"&&!p.isolated&&h(this,Os,zu).call(this,g?.events,v)),c(this,pe).set(e,m),m},getApp:e=>c(this,pe).get(e),deleteApp:e=>{let r=c(this,pe).get(e);return r&&(this.inject("lifecycle").cleanupApp(),r.destroy(),c(this,pe).delete(e),this.inject("resolve").reset("descriptor","compiledBinding"),h(this,Nr,Ba).call(this)),r},registerPrototype:(e,r)=>{c(this,me).set(e,r)},getPrototype:e=>c(this,me).get(e)??null,hasPrototype:e=>c(this,me).has(e),createId:()=>h(this,Er,Da).call(this),getRids:()=>Array.from(c(this,Bt).keys()),setActorClass:e=>{y(this,Lt,e)},getActorClass:()=>c(this,Lt),setPuppetClass:e=>{y(this,de,e)},getPuppetClass:()=>c(this,de),setCreateElement:e=>{y(this,mn,e)},getCreateElement:()=>c(this,mn),createElement:(...e)=>c(this,mn).call(this,...e),setRenderSource:e=>{y(this,yn,e)},getRenderSource:()=>c(this,yn),renderSource:(...e)=>c(this,yn).call(this,...e),setHook:(e,r,i)=>{let l=c(this,xt).get(e)??{};l[r]=i,c(this,xt).set(e,l)},getHook:(e,r)=>c(this,xt).get(e)?.[r]??null,hasHook:(e,r)=>c(this,xt).get(e)?.[r],deleteHook:(e,r)=>{let i=c(this,xt).get(e);i&&delete i[r]},getHooks:e=>c(this,xt).get(e),deleteHooks:e=>{c(this,xt).delete(e)}}}setSlot(t,n){c(this,Ar).set(t,n)}getSlot(t){return c(this,Ar).get(t)}resolveSlotPuppet(t,n){let e=c(this,U).get(t);if(!e)return null;try{let r=e.ctx||{},i=e.actor.app,l=e.actor.styleScope,u=e.actor.id,f=h(this,Ir,Ka).call(this,i,n,{styleScope:l,parentId:u});if(!f)return null;let p=e.getSlot(n),m=h(this,Fr,qa).call(this,f,p,{ctx:r,parentId:u,instanceRid:t});return m?(e.setSlot(n,m.rid),m):null}catch(r){return console.warn("Error resolving slot",n,r),null}}getSlotChildren(t,n){let e=c(this,U).get(t);if(!e)return null;let r=e.actor.node.slots?.find(i=>i.id===n);return r?r.children:null}};Lt=new WeakMap,de=new WeakMap,mn=new WeakMap,Bt=new WeakMap,Ar=new WeakMap,pe=new WeakMap,L=new WeakMap,_t=new WeakMap,U=new WeakMap,Gt=new WeakMap,Ht=new WeakMap,W=new WeakMap,xt=new WeakMap,me=new WeakMap,Cr=new WeakMap,Ps=new WeakMap,gn=new WeakMap,yn=new WeakMap,xn=new WeakMap,Er=new WeakSet,Da=a(function(){let t="a",e,r=0,i=100;do if(e=`${t}${Gu(10)}`,r++,r>i)throw new Error(`Failed to generate unique ID after ${i} attempts`);while(c(this,Bt).has(e));return e},"#createId"),Rr=new WeakSet,La=a(function(t){let n=h(this,Er,Da).call(this);return c(this,Bt).set(n,t),n},"#createActorRid"),bn=new WeakSet,Rs=a(function(t){c(this,W).has(t)||c(this,W).set(t,{source:null,manifest:null,meta:new Map,components:new Map});let n=c(this,W).get(t);return n.meta||(n.meta=new Map),n.components||(n.components=new Map),n},"#ensureLibrary"),Os=new WeakSet,zu=a(function(t,n){if(h(this,Nr,Ba).call(this),!!t?.length)for(let e of t){let r=this.inject("resolve").dispatch("descriptor",e)?.(n);if(typeof r!="function")continue;let i=e.name.replace(/^on/,"").toLowerCase(),l=a(u=>{try{r(u)}catch(f){console.error("Global event error",e.name,f)}},"handler");window.addEventListener(i,l),c(this,gn).push(()=>window.removeEventListener(i,l))}},"#bindGlobalEvents"),Nr=new WeakSet,Ba=a(function(){for(let t of c(this,gn))t();y(this,gn,[])},"#cleanupGlobalEvents"),Ms=new WeakSet,Vu=a(function(t,n,e={}){let{displayName:r=n,description:i="",category:l="components",keywords:u=[n,t],props:f=[],slots:p=[],tagName:m=n,...g}=e;return{...g,displayName:r,description:i,category:l,keywords:u,props:f,slots:p,tagName:m,library:t}},"#normalizeMeta"),Is=new WeakSet,Ju=a(function(t={}){for(let[n,e]of Object.entries(t??{})){let r=h(this,bn,Rs).call(this,n);e!=null&&(r.source=e),e?.manifest!==void 0&&(r.manifest=e.manifest??null);let i=e?.components??{};for(let[l,u]of Object.entries(i)){let f=e?.manifest?.[l];if(u?.__jux===!0){h(this,Tr,_a).call(this,l,u),h(this,Ut,pn).call(this,n,l,null,{displayName:f?.displayName??l,description:f?.description??"",category:f?.category??"components",keywords:f?.keywords??[l,"jux","component"],props:f?.props??[],slots:f?.slots??[],tagName:l,origin:"jux"});continue}h(this,Ut,pn).call(this,n,l,u,{displayName:f?.displayName??l,description:f?.description??"",category:f?.category??"components",keywords:f?.keywords??[l,n],props:f?.props??[],slots:f?.slots??[],tagName:l,origin:"source"})}}},"#loadSources"),Tr=new WeakSet,_a=a(function(t,n){c(this,Cr).set(t,{fn:n,version:++et(this,Ps)._});for(let e of c(this,L).values()){let r=e.node?.component;if(!(!r||r!==t&&r!==n.template)){for(let i of e.puppetRids)c(this,U).get(i)?.destroyDescendants(),this.inject("context").releaseContext(Es(i));e.update(e.node)}}},"#setSetup"),Ut=new WeakSet,pn=a(function(t,n,e,r={}){let i=h(this,bn,Rs).call(this,t),l=h(this,Ms,Vu).call(this,t,n,r);i.meta.set(n,l);let u={library:t,name:n,component:e,meta:l};return i.components.set(n,u),c(this,xn).update(f=>f+1),u},"#registerComponent"),ge=new WeakSet,wr=a(function(t,n){return c(this,W).get(t)?.components.get(n)??null},"#getComponentEntry"),jr=new WeakSet,Ga=a(function(t,n){let e=c(this,W).get(t);return e?e.meta?.get(n)??h(this,ge,wr).call(this,t,n)?.meta??null:null},"#getComponentMeta"),Pr=new WeakSet,Ha=a(function(t){let n=a(e=>e.map(r=>typeof r=="string"?r:r?.name).filter(Boolean),"namesOf");return{...t,propNames:n(t.props),eventNames:n(t.emits)}},"#withDeclaredNames"),Or=new WeakSet,Ua=a(function(t,n){return n?!t||t==="local"?n:h(this,Sn,Ts).call(this,[".libraries",t,"components",n,"definitionId"])??null:null},"#definitionIdOf"),Fs=new WeakSet,Yu=a(function(t,n){if(!n)return null;let e=h(this,jr,Ga).call(this,t||"local",n);if(e&&e.origin!=="local"&&e.origin!=="jucie-library")return h(this,Pr,Ha).call(this,{displayName:e.displayName??n,props:e.props??[],emits:e.emits??[],slots:e.slots??[],origin:e.origin??null,library:e.library??t??null,tagName:e.tagName??n});let r=h(this,Or,Ua).call(this,t,n);if(!r)return null;let i=h(this,ye,kr).call(this,r)?.node??this.inject("resolve").dispatch("computedNode",r)();if(i?.type==="component"){let l=!!t&&t!=="local";return h(this,Pr,Ha).call(this,{displayName:i.name||n,props:Array.isArray(i.props)?i.props:[],emits:Array.isArray(i.emits)?i.emits:[],slots:[],origin:l?"jucie-library":"scene",library:l?t:null,tagName:n})}return null},"#describeComponent"),ye=new WeakSet,kr=a(function(t){return c(this,L).get(t)},"#getActor"),xe=new WeakSet,$r=a(function(t,n){h(this,vn,Ns).call(this,t),n!=null&&(c(this,_t).has(n)||c(this,_t).set(n,new Set),c(this,_t).get(n).add(t))},"#indexChild"),vn=new WeakSet,Ns=a(function(t){let n=c(this,L).get(t)?.parentId;n!=null&&c(this,_t).get(n)?.delete(t)},"#unindexChild"),Ds=new WeakSet,Xu=a(function(t){let n=[];for(let e of c(this,_t).get(t)??[]){let r=c(this,L).get(e);r?.parentId===t&&n.push(r)}return n},"#childActors"),Mr=new WeakSet,Wa=a(function(t){return c(this,L).has(t)},"#hasActor"),Ir=new WeakSet,Ka=a(function(t,n,{styleScope:e=null,parentId:r=null}={}){let i=this.inject("log");if(!n)throw new Error("Registry.resolveActor: id is required");if(c(this,L).has(n)){let p=c(this,L).get(n);this.inject("lifecycle").cancelTeardown(n);let m=r!=null&&p.parentId!==r;return m&&(h(this,vn,Ns).call(this,n),p.parentId=r,h(this,xe,$r).call(this,n,r)),e&&p.addStyleScope(e),m&&p.updateStyles(),p}if(!c(this,Lt))throw new Error("Registry.resolveActor: no actor class registered (call setActorClass)");if(!this.config?.scene&&(["design","preview","screen-capture"].includes(t.config?.view)||t.config?.embedded)){let p=this.inject("resolve").dispatch("computedNode",n),m=p();if(!m)return i.warn("resolveActor: node not found",{message:"node not found",id:n,parentId:r}),null;let g=c(this,Lt).create(t,n,{node:m,styleScope:e,parentId:r});c(this,L).set(g.id,g),h(this,xe,$r).call(this,g.id,r);let v=em(p,b=>{if(g&&b){g.update?.(b);return}if(!b){g.destroy?.();return}});return g.addCleanupFn?.(v),g}let u=this.inject("resolve").dispatch("nodeData",n);if(!u)return i.warn("resolveActor: node not found",{message:"node not found",id:n,parentId:r}),null;let f=c(this,Lt).create(t,n,{node:u,styleScope:e,parentId:r});return c(this,L).set(f.id,f),h(this,xe,$r).call(this,f.id,r),f},"#resolveActor"),Fr=new WeakSet,qa=a(function(t,n,e={}){if(n&&c(this,U).has(n)){let i=c(this,U).get(n);return i.update(e),i}if(!c(this,de))throw new Error("Registry.resolvePuppet: no puppet class registered (call setPuppetClass)");let r=c(this,de).create(t,n,e);return t.addPuppet(r.rid),c(this,U).set(r.rid,r),r.repeats||this.inject("lifecycle").invokeBeforeMount(r),r},"#resolvePuppet"),Ls=new WeakSet,Zu=a(function(t){return h(this,Sn,Ts).call(this,["nodes",t])!=null},"#hasNode"),Dr=new WeakSet,za=a(function(t){return h(this,Sn,Ts).call(this,["nodes",t])},"#getNode"),Sn=new WeakSet,Ts=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),a(Bs,"Registry"),w(Bs,"manifest",{name:"Registry",namespace:"registry"});var js=Bs;import{ServiceProvider as Mm,definitionType as Im}from"@jucie.io/engine";import{createDefinition as rm}from"@jucie.io/engine";var Va="RESOLVER",$=rm(Va,[Function]);var Ja=Object.getPrototypeOf(async function(){}).constructor,wn=a(s=>s.split(",").map(o=>o.trim()).filter(Boolean),"parseArgs"),tf=[[/^async\s+function\s*\(([^)]*)\)\s*{([\s\S]*)}$/,s=>[Ja,wn(s[1]),s[2]]],[/^async\s*\(([^)]*)\)\s*=>\s*{([\s\S]*)}$/,s=>[Ja,wn(s[1]),s[2]]],[/^async\s*\(([^)]*)\)\s*=>\s*([\s\S]+)$/,s=>[Ja,wn(s[1]),`return ${s[2]};`]],[/^function\s*\(([^)]*)\)\s*{([\s\S]*)}$/,s=>[Function,wn(s[1]),s[2]]],[/^\(([^)]*)\)\s*=>\s*{([\s\S]*)}$/,s=>[Function,wn(s[1]),s[2]]],[/^\(([^)]*)\)\s*=>\s*([\s\S]+)$/,s=>[Function,wn(s[1]),`return ${s[2]};`]],[/^(\w+)\s*=>\s*([\s\S]+)$/,s=>[Function,[s[1].trim()],`return ${s[2]};`]]];function om(s){if(typeof s!="string")return!1;let o=s.trim();return tf.some(([t])=>t.test(o))}a(om,"isFunctionString");function Ya(s){if(typeof s!="string"||!s.trim())throw new Error("No code");let o=s.trim();for(let[t,n]of tf){let e=o.match(t);if(!e)continue;let[r,i,l]=n(e);return new r(...i,l)}throw new Error("Must be a function \u2014 function (ctx) { \u2026 } or (ctx) => \u2026")}a(Ya,"compileFunctionString");function ef(s){try{return Ya(s),null}catch(o){return o.message}}a(ef,"functionStringError");function Wt(s,o="computed"){if(typeof s!="string"||!s.trim()||om(s))return s;let t=s.trim(),n=o==="code"?"ctx, event":"ctx",e=a(r=>`function (${n}) {
2
+ ${r.split(`
3
+ `).map(i=>` ${i}`).join(`
4
+ `)}
5
+ }`,"asFunction");return o==="computed"&&Qu(`return (${t});`)?e(`return ${t}`):Qu(t)?e(t):s}a(Wt,"toFunctionString");function Qu(s){try{return new Function("ctx","event",s),!0}catch{return!1}}a(Qu,"parses");var Xa=new Map;function Za(s){try{if(!s||typeof s!="string")return null;if(Xa.has(s))return Xa.get(s);let o=Ya(s);return Xa.set(s,o),o}catch(o){return console.error("Error creating function from:",s),console.error("Error:",o.message),null}}a(Za,"convertStringToFunction");var Lr=new Map,sm=500;function im(s,o){let t=`${s}\0${o.join(",")}`,n=Lr.get(t);if(n)return n;let e=new Function(...o,`"use strict"; return (${s});`);if(Lr.size>=sm){let r=Lr.keys().next().value;Lr.delete(r)}return Lr.set(t,e),e}a(im,"compileExpression");function nf(s,o={}){if(!s||!o)return;let t=[],n=[];for(let e in o)t.push(e),n.push(o[e]);try{return im(s,t)(...n)}catch(e){console.warn("[Expression Error]",e.message),console.warn("[Expression]",s),console.warn("[Scope]",t);return}}a(nf,"evaluateExpression");function Qa(s,o){return t=>{try{return s(t)}catch(n){return console.error("Descriptor error:",n),o}}}a(Qa,"safe");var rf=$("descriptor",(s,o,t)=>{let n=new Map,e=a(r=>{let{mode:i,value:l,binding:u,computed:f,code:p,expression:m}=r;switch(i){case"binding":{let g=t("compiledBinding",u);return Qa(v=>g(v),l)}case"computed":{let g=Za(Wt(f,"computed"));return g?Qa(v=>g.call(v,v),l):()=>l}case"code":{let g=Za(Wt(p,"code"));return g?v=>g.bind(v,v):()=>l}case"expression":return Qa(g=>nf(m,g),l);case"value":default:return()=>l}},"compile");return r=>{if(n.has(r))return n.get(r);let i=e(r);return n.set(r,i),i}});var cm=/^[A-Za-z_$][\w$]*$/,_s=a(()=>{},"noop"),of=$("compiledBinding",()=>{let s=new Map;return o=>{if(Array.isArray(o)&&!o.every(n=>typeof n=="string"&&cm.test(n))){let n=JSON.stringify(o);return s.has(n)||(console.warn("Binding refused: not a path of identifiers",o),s.set(n,_s)),_s}let t=Array.isArray(o)?o.join("."):o;if(s.has(t))return s.get(t);try{let n=new Function("ctx",`
6
+ try { return ctx.${t} }
7
+ catch (e) { console.error('Error resolving binding:', '${t}', e.message); return undefined; }
8
+ `);return s.set(t,n),n}catch(n){return console.error("Error compiling binding:",t,n.message),s.set(t,_s),_s}}}),sf=$("binding",(s,o,t)=>(n,e)=>{if(!n)return"";try{return t("compiledBinding",n)(e)}catch(r){console.error("Error resolving binding:",n,r.message);return}});var tl=new Set(["id","type","ex","children","text"]),cf=a(s=>s!==null&&typeof s=="object"&&!Array.isArray(s),"isPlainObject");function el(s=[],o=[]){let t=new Map(s.filter(Boolean).map(n=>[n.name,n]));for(let n of o)n&&t.set(n.name,n);return Array.from(t.values())}a(el,"mergeByName");function Kt(s,o){if(o===void 0)return s;if(s===void 0)return o;if(cf(s)&&cf(o)){let t={...s};for(let n of Object.keys(o)){let e=o[n];e===void 0?delete t[n]:t[n]=Kt(s[n],e)}return t}return o}a(Kt,"cascadeMerge");function af(s){let{ex:o,type:t,...n}=s;return n}a(af,"stripChainKeys");function lf(s){let o={};for(let t of Object.keys(s))!tl.has(t)&&t!=="ex"&&(o[t]=s[t]);return o}a(lf,"stripInstanceKeys");function uf(s,o){let t=[],n=s;for(;n&&o.has(n);)t.push(n),n=o.get(n).ex;return t}a(uf,"chainOf");var ff=$("prototype",s=>{let o=s("registry"),t={has:n=>o.hasPrototype(n),get:n=>o.getPrototype(n)};return n=>{let e=uf(n.ex??n.type,t).reverse(),r={};for(let u of e){let f=t.get(u);f&&(r=Kt(r,af(f)))}let i=n.attributes,l=n.events;r=Kt(r,lf(n)),i!=null&&(r.attributes=el(r.attributes,i)),l!=null&&(r.events=el(r.events,l));for(let u of tl)u in n&&(r[u]=n[u]);return r}});var hf=$("sceneValue",s=>{let o=null;return t=>(o??(o=s("state")),o.get(t))});var df=$("nodeData",(s,o,t)=>{let n=a(e=>{let r=t("sceneValue",["nodes",e]);return r?r.ex&&t("sceneValue",["nodes",r.ex])!=null?Kt(n(r.ex),r):t("prototype",r):null},"nodeData");return n});import{createComputed as am,onDirty as lm,markAsDirty as um}from"@jucie.io/reactive";var pf=$("computedNode",(s,o,t)=>{let n=new Map,e=a(r=>{if(n.has(r))return n.get(r);let i=null,l=null,u=am(()=>{let f=t("sceneValue",["nodes",r]);if(!f)return null;if(f.ex&&t("sceneValue",["nodes",f.ex])!=null){let m=e(f.ex);return i!==f.ex&&(l?.(),l=lm(m,()=>um(u)),i=f.ex),Kt(m(),f)}return t("prototype",f)},{detached:!0});return n.set(r,u),u},"computedNode");return e});var fm=a(s=>/^on[A-Z]/.test(s),"isHandler");function mf(s,o){let t={...s};if(!o)return t;for(let[n,e]of Object.entries(o))if(e!==void 0)if(n==="className")t.className=t.className?`${t.className} ${e}`:e;else if(n==="style"){if(e&&typeof e=="object"){let r=t.style&&typeof t.style=="object"?t.style:null;t.style={...r,...e}}}else if(fm(n)&&typeof e=="function"&&typeof t[n]=="function"){let r=t[n];t[n]=i=>(r(i),e(i))}else t[n]=e;return t}a(mf,"resolveOverrides");var Gs={outline:"2px solid #e6a700",outlineOffset:"-2px",color:"#b45309",backgroundColor:"rgba(230, 167, 0, 0.08)",fontFamily:"ui-sans-serif, system-ui, sans-serif",fontSize:"12px",fontWeight:600,display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",padding:"4px 8px"};function gf(s,{name:o,...t}={}){let n=o?`Missing: ${o}`:"Missing component",e=[t.className,"jucie-missing"].filter(Boolean).join(" "),r=t.style&&typeof t.style=="object"?t.style:{},i={...Gs,...r,outline:r.outline??Gs.outline,outlineOffset:r.outlineOffset??Gs.outlineOffset,color:r.color??Gs.color};return i.width==null&&i.minWidth==null&&(i.minWidth=80),i.height==null&&i.minHeight==null&&(i.minHeight=32),s("div",{...t,className:e,style:i,"data-missing-name":o??""},n)}a(gf,"missing");function Hs(s,o){return s&&typeof s=="object"?{...s,...o}:o}a(Hs,"withRenderStyle");var yf=$("node",(s,o,t)=>{let n=s("registry"),e=o.view==="design",r=a((i,l,u)=>{let f=t("attributes",i,l);return u&&(f.style=Hs(f.style,u)),f},"instanceAttributes");return(i,{ctx:l,instanceRid:u})=>{let f=i.actor?.node;if(!f)return null;let p=t("render",i,l);try{if(p===!1)return null;switch(f.type){case void 0:case"root":return f.children?.length?t("children",i,f.children,{ctx:l}):null;case"element":{let m=t("attributes",i,l),g=i.rootOf&&n.getPuppet(i.rootOf);if(g){let v=g.ctx??g.runtime.context.ctx,b=t("renderStyle",g,v);m=mf(m,r(g,v,b))}return p&&(m.style=Hs(m.style,p)),n.createElement(f.tagName,m,t("elementContent",i,f,{ctx:l,instanceRid:u}))}case"frame":{let m=t("attributes",i,l);return p&&(m.style=Hs(m.style,p)),n.createElement(f.tagName,m,t("children",i,f.children,{ctx:l}))}case"instance":{let m=t("component",f);if(!m)return e?gf(n.createElement,{name:f.component,...r(i,l,p)}):null;let g=n.getComponentMeta(f.library||"local",f.component),v=g?.origin==="jucie-library"||(!f.library||f.library==="local")&&g?.origin!=="source",b=t("slots",i,f.slots,{ctx:l,instanceRid:u});if(v)return n.createElement(m,{puppet:i,ctx:l});let x=r(i,l,p),S={};for(let[k,E]of Object.entries(b))S[k]=E(null);return!f.library||f.library==="local"?n.renderSource(m,{...x,...S},g):n.createElement(m,{...x,...S})}case"component":{if(i.actor.app.config?.mode==="components"){let{ctx:m}=s("context").componentContext(i,{name:i.actor.id});return n.createElement("div",t("attributes",i,l),t("children",i,f.children,{ctx:m}))}return null}case"slot":{let m=t("attributes",i,l);if(p&&(m.style=Hs(m.style,p)),!u)return n.createElement("div",m,null);let g=n.getPuppet(u),v=g.actor.node?.slots?.find(S=>S.id===i.actor.id),b=v?t("slotChildren",g,i,v,{ctx:g.ctx??s("context").ctx,instanceRid:g.instanceRid}):null,x=b?.length>0;return!x&&!e?null:n.createElement("div",m,x?b:t("children",i,f.children,{ctx:l}))}default:return console.warn("Unknown node type",f),null}}catch(m){return console.warn("Error resolving node",m),null}finally{i.notifyMount()}}});var xf=$("nodeRepeat",(s,o,t)=>{let n=s("registry"),e=o.view==="design";return(r,{ctx:i,instanceRid:l})=>{try{let u=t("repeatData",r.actor.node.repeat,i);if(u.length===0)return e?t("node",r,{ctx:i,instanceRid:l}):null;let f=s("context"),p=a(b=>`${r.rid}:clone:${b}`,"cloneContextId"),m=new Set(u.map(([b])=>b)),g=r.getCloneEntries().map(([b])=>b),v=r.reconcileClones(m);for(let b of v)n.getPuppet(b)?.destroy();for(let b of g)m.has(b)||f.releaseContext(p(b));return u.map(([b,x])=>{let S=f.childContext(p(b),r.rid,i,x),k=r.getClone(b),E=n.resolvePuppet(r.actor,k,{ctx:S,instanceRid:l,cloneOf:r.rid});return r.setClone(b,E.rid),n.createElement(E.render,{key:E.rid})})}catch(u){return console.error("Error resolving node repeat",u),null}}});var bf=$("repeatData",(s,o,t)=>(n,e)=>{let{as:r,key:i,index:l,keyOn:u,descriptor:f}=n,p=t("descriptor",f)?.(e);return p?(Array.isArray(p)?p.map((v,b)=>[u&&v[u]!==void 0?String(v[u]):String(b),v,b]):Object.entries(p).map(([v,b])=>[u&&b[u]!==void 0?String(b[u]):v,b,v])).map(([v,b,x],S)=>[v,{[r]:b,[l]:S,[i]:x}]):[]});var vf=$("render",(s,o,t)=>{let n=s("lifecycle");return(e,r)=>{let i=t("renderStyle",e,r);return e.reconcileShouldRender(i===null,()=>n.notifyUpdate(e.rid)),i}});var hm={opacity:.2},Sf=$("renderStyle",(s,o,t)=>{let n=o.view==="design"?hm:!1,e=a((r,i)=>{if(!r)return!0;try{return!!t("descriptor",r)(i)}catch(l){return console.error("Error resolving render condition:",l),!!r.value}},"isVisible");return(r,i)=>e(r.actor.node.render,i)?null:n});var dm=new Set(["disabled","readonly","hidden","aria-disabled"]);function wf(s){return dm.has(s)}a(wf,"isBehavioralAttribute");function kf(s,o){return s?t=>{s(t),o(t)}:o}a(kf,"composeHandler");var $f=$("attributes",(s,o,t)=>{let n=s("registry"),e=o.view==="design",r=o.view!=="production",i=o.framework,l=a(f=>t("descriptor",f),"resolve"),u=a(f=>{if(f.type!=="instance")return null;let p=!f.library||f.library==="local",m=n.getComponentMeta(f.library||"local",f.component)?.origin;if(p&&m==="source"||!p&&m!=="jucie-library")return null;let b=n.describeComponent(f.library,f.component);return b?new Set([...b.propNames,...b.eventNames]):null},"declaredBy");return(f,p)=>{let m={},g=u(f.actor.node);try{if(f.actor.node.events&&!e)for(let x of f.actor.node.events){if(!x.name||g?.has(x.name))continue;let S=l(x)(p);if(S){let k=x.name;i==="react"&&k==="onInput"&&(k="onChange"),m[k]=E=>{try{return S(E)}catch(I){console.error("Error in event handler",k,I)}}}}}catch(x){console.error("Error resolving events",x)}let v=null;try{if(f.actor.node.attributes){for(let x of f.actor.node.attributes)if(x.name&&!(e&&wf(x.name))){if(x.name==="model"){v=x;continue}m[x.name]=l(x)(p)}}}catch(x){console.error("Error resolving attributes",x)}try{let x=f.actor.node.tagName?.toLowerCase();if(x==="input"||x==="textarea"||x==="select"){let k=v?.binding??f.actor.node.model?.binding;if(k){let E=(m.type??"").toLowerCase(),I=`${x}:${E}`,P,A,R,T;switch(I){case"input:checkbox":P="checked",A="onChange",R=!!t("binding",k,p),T=a(_=>{try{p.$set(k,_.target.checked)}catch(D){console.error("Error in model binding (checkbox)",D)}},"writeHandler");break;case"input:radio":P="checked",A="onChange",R=t("binding",k,p)===m.value,T=a(_=>{try{p.$set(k,_.target.value)}catch(D){console.error("Error in model binding (radio)",D)}},"writeHandler");break;default:P="value",A=i==="react"?"onChange":"onInput",R=t("binding",k,p)??"",T=a(_=>{try{p.$set(k,_.target.value)}catch(D){console.error("Error in model binding",D)}},"writeHandler")}m[P]=R,m[A]=kf(m[A],T)}else i==="react"&&("value"in m||"checked"in m)&&("value"in m&&m.value==null&&(m.value=""),m.onChange||(m.onChange=()=>{}))}}catch(x){console.error("Error resolving form controls",x)}try{if(f.actor.node.props&&f.actor.node.props.length>0)for(let x of f.actor.node.props){if(!x.name||g)continue;let S=l(x)(p);S!=null&&(m[x.name]=S)}}catch(x){console.error("Error resolving props",x)}try{let x=[f.actor.id];if(f.actor.node.className&&f.actor.node.className.length>0)for(let S of f.actor.node.className){let k=l(S)(p);k&&x.push(k)}m.className=x.join(" ")}catch(x){console.error("Error resolving className",x)}try{if(f.actor.node.destination){let x=f.actor.node.destination;switch(x.type){case"url":{let S=x.path;m.href=S&&typeof S=="object"&&"mode"in S?l(S)(p):S,x.target&&(m.target=x.target),x.target==="_blank"&&(m.rel="noopener noreferrer");break}case"page":{let S={};for(let[E,I]of Object.entries(x.params??{}))S[E]=I&&typeof I=="object"&&"mode"in I?l(I)(p):I;let k=s("router")?.hrefFor(x.id,{params:S,query:x.query})??null;m.href=k??x.id,e||(m.onClick=kf(m.onClick,E=>{E.preventDefault(),p?.$router?.navigate(k??x.id,{replace:x.replace})}));break}}}}catch(x){console.error("Error resolving destination",x)}let b=f.actor.node[".interactionState"];if(e&&b&&b.length>0){let x=b[b.length-1];if(x.startsWith("&.")){let S=x.slice(2);m.className=m.className?`${m.className} ${S}`:S}else if(x.startsWith(".")){let S=x.slice(1);m.className=m.className?`${m.className} ${S}`:S}else if(x.startsWith(":")){let S=`force-${x.slice(1)}`;m.className=m.className?`${m.className} ${S}`:S}}try{if(f.actor.node.states&&!e)for(let x of f.actor.node.states){if(!x.name)continue;!!l(x)(p)&&(m.className=m.className?`${m.className} ${x.name}`:x.name)}}catch(x){console.error("Error resolving states",x)}return f.ref&&(m.ref=f.ref),f.rid&&(r&&(m["data-rid"]=f.rid),m["data-node-id"]=f.actor.id,m.key=f.rid,f.actor.node.name&&(m["data-name"]=f.actor.node.name),f.actor.node.id&&(m.id=f.actor.node.id)),e&&f.actor.node.childrenType==="text"&&(m.contentEditable="true",m.suppressContentEditableWarning=!0),".editingTextContent"in f.actor.node&&f.actor.node[".editingTextContent"]&&(m.contentEditable="true",m.suppressContentEditableWarning=!0,m.onClick=x=>{x.preventDefault(),x.stopPropagation()},m["data-editing-text"]="true"),m["data-type"]=f.actor.node.type,m}});function Af({context:s,registry:o,puppet:t,name:n,ctx:e,props:r}){let i=o.getSetup(n);if(!i)return e;let l=t.getSetup();return(!l||l.version!==i.version)&&(l={result:i.fn(r??{},e),version:i.version},t.setSetup(l)),s.childContext(Es(t.rid),t.rid,e,l.result.locals??{})}a(Af,"runSetup");var Cf=$("component",(s,o,t)=>{let n=s("registry");return e=>{let r=e.library||"local",i=e.component,l=n.getComponent(r,i);if(l)return l;let u=!e.library||e.library==="local",f,p;if(u?(f=n.getSetup(i)?.fn.template??i,p=n.getNode(f)?.component??i):(f=n.definitionIdOf(r,i),p=null),f&&n.hasNode(f)){let m=a(({puppet:g,ctx:v})=>{let b=n.getNodeChildren(f),x=s("context"),{ctx:S,props:k}=x.componentContext(g,{library:e.library,name:i,instanceId:g.actor.id,ctx:v}),E=Af({context:x,registry:n,puppet:g,name:p,ctx:S,props:k});return b?.length?b.length===1?t("child",g,b[0],{ctx:E,instanceRid:g.rid,rootOf:g.rid}):t("children",g,b,{ctx:E,instanceRid:g.rid}):null},"Host");return n.registerComponent(r,i,m,{origin:u?"local":"jucie-library",tagName:i,library:r,displayName:i}),m}return null}});var Ef=$("child",s=>{let o=s("registry");return(t,n,{ctx:e,instanceRid:r,rootOf:i}={})=>{let l=t.actor.id,u=t.getChild(n),f=o.resolveActor(t.actor.app,n,{styleScope:t.actor.styleScope,parentId:l}),p=f&&o.resolvePuppet(f,u,{ctx:e,instanceRid:r,rootOf:i});return p?.render?(o.getNodeType(n)==="slot"&&r&&o.getPuppet(r)?.setSlot(n,p.rid),t.setChild(n,p.rid),o.createElement(p.render,{key:p.rid})):null}});var Rf=$("children",(s,o,t)=>{let n=s("lifecycle");return(e,r=null,{ctx:i,instanceRid:l}={})=>{if(r=r??e.actor.node.children,typeof r=="string")return r;let u=Array.isArray(r)?r:[],f=e.reconcileChildren(u);if(f.length)for(let m of f)n.scheduleTeardown(m);if(!u.length)return[];let p=[];for(let m of u){let g=t("child",e,m,{ctx:i,instanceRid:l});g&&p.push(g)}return p}});var Nf=$("elementContent",(s,o,t)=>(n,e,{ctx:r,instanceRid:i})=>{let{childrenType:l,options:u,children:f}=e;switch(l){case null:case"none":return null;case"text":return t("textContent",n,e,{ctx:r});case"options":return t("selectOptions",n,u,{ctx:r});case"*":case"children":default:return t("children",n,f,{ctx:r,instanceRid:i})}});function qt(s){return Array.isArray(s?.textContent)?s.textContent:null}a(qt,"textSegmentsOf");var Br="\uFFFC";function _r(s){return!!(s.descriptor||s.block)}a(_r,"isAtomicSegment");function Us(s,o){if(s===o)return!0;if(!s||!o||typeof s!="object"||typeof o!="object")return!1;let t=Object.keys(s);if(t.length!==Object.keys(o).length)return!1;for(let n of t)if(s[n]!==o[n])return!1;return!0}a(Us,"valueEqual");function nl(s,o){let t=Object.keys(s);if(t.length!==Object.keys(o).length)return!1;for(let n of t)if(!Us(s[n],o[n]))return!1;return!0}a(nl,"formatsEqual");var pm=a((s,o)=>!_r(s)&&!_r(o)&&nl(s.formats,o.formats),"canMerge");function Ws(s){if(!s||s.length===0)return[];let o=[{...s[0],formats:{...s[0].formats}}];for(let t=1;t<s.length;t++){let n=o[o.length-1],e=s[t];pm(n,e)?n.text+=e.text:o.push({...e,formats:{...e.formats}})}return o}a(Ws,"mergeAdjacentSegments");function C(s){return[{text:s??"",formats:{}}]}a(C,"plainTextToSegments");function zt(s,o={}){return{text:Br,descriptor:s,formats:{...o}}}a(zt,"createDescriptorSegment");var mm=/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*)*$/;function Gr(s){let o=typeof s=="string"?s.trim():"";return mm.test(o)?o.split("."):null}a(Gr,"toBindingPath");function gm(s){return{name:null,mode:"binding",value:null,binding:s,computed:null,code:null,error:null,removable:!0}}a(gm,"boundTo");function ym(s){return{name:null,mode:"computed",value:null,binding:null,computed:`function (ctx) {
9
+ return ctx.${s}
10
+ }`,code:null,error:null,removable:!0}}a(ym,"computing");function rl(s){let o=Gr(s);return zt(o?gm(o):ym(s.trim()))}a(rl,"expressionToSegment");var xm=/\{\{([^}]+)\}\}/g;function kn(s){let o=s??"",t=[],n=0;for(let e of o.matchAll(xm))e.index>n&&t.push(...C(o.slice(n,e.index))),t.push(rl(e[1])),n=e.index+e[0].length;return(n<o.length||t.length===0)&&t.push(...C(o.slice(n))),t}a(kn,"templateToSegments");var Tf=Object.freeze({type:"paragraph"}),bm=new Set(["div","section","article","aside","header","footer","main","li","td","th"]);function jf(s){return bm.has(String(s??"").toLowerCase())}a(jf,"canHoldBlocks");function ol(s){return!!s?.block}a(ol,"isTerminator");function Ks(s){return!!s?.some(ol)}a(Ks,"hasBlocks");function Pf(s){switch(s?.type){case"heading":return`h${Math.min(6,Math.max(1,Number(s.level)||2))}`;case"quote":return"blockquote";case"code":return"pre";default:return"p"}}a(Pf,"tagForBlock");var vm=/^function \(ctx\) \{\n {2}return ctx\.([\s\S]+)\n\}$/;function Sm(s){if(s?.mode==="binding"&&s.binding?.length)return`{{${Array.isArray(s.binding)?s.binding.join("."):s.binding}}}`;if(s?.mode==="computed"){let o=typeof s.computed=="string"&&s.computed.match(vm)?.[1];return o?`{{${o}}}`:"{fn}"}return s?.mode==="value"?s.value==null?"":String(s.value):""}a(Sm,"pillText");function sl(s){let o="";for(let t of s??[])o+=t.descriptor?Sm(t.descriptor):t.text;return Ks(s)&&o.endsWith(`
11
+ `)?o.slice(0,-1):o}a(sl,"segmentsToTemplate");var wm=Object.freeze({mode:"value",value:null,binding:null,computed:null,code:null,error:null});var Of=a((s,o=10)=>s.length>o?s.slice(0,o)+"\u2026":s,"truncate");function cl(s){if(!s)return"?";if(s.mode==="binding"&&s.binding?.length){let o=Array.isArray(s.binding)?s.binding.join("."):String(s.binding);return Of(o,24)}return s.mode==="computed"&&s.computed||s.mode==="code"?"\u0192n\u2026":s.mode==="value"&&s.value!=null?Of(String(s.value)):"\xA0"}a(cl,"descriptorLabel");function al(s){return s?s.mode==="binding"&&s.binding?.length?Array.isArray(s.binding)?s.binding.join("."):String(s.binding):s.mode==="computed"?s.computed??"":s.mode==="code"?s.code??"":s.mode==="value"&&s.value!=null?String(s.value):"":""}a(al,"descriptorTitle");function Hr(s){return!s||typeof s!="string"||!s.includes("@")?s:s.split(",").map(o=>{let t=o.trim().replace(/^['"]|['"]$/g,""),n=t.indexOf("@"),e=n===-1?t:t.slice(0,n).trim();return e.includes(" ")?`"${e}"`:e}).join(", ")}a(Hr,"stripFontSource");function Mf(s,o,t){if(!s.includes(`
12
+ `))return s;let n=[];return s.split(`
13
+ `).forEach((e,r)=>{r>0&&n.push(o("br",{key:`${t}-br${r}`})),e&&n.push(e)}),n}a(Mf,"withBreaks");var Em=/^(https?:|mailto:|tel:|[/#?.]|[^:]*$)/i;function Rm(s){if(typeof s!="string")return null;let o=s.trim();return Em.test(o)?o:null}a(Rm,"safeHref");var Nm={fontFamily:"fontFamily",fontSize:"fontSize",fontWeight:"fontWeight",color:"color",letterSpacing:"letterSpacing"};function If(s,o,t,n){let e=[];o.code&&e.push(["code",null]),o.sup?e.push(["sup",null]):o.sub&&e.push(["sub",null]),o.strike&&e.push(["s",null]),o.underline&&e.push(["u",null]),o.italic&&e.push(["em",null]),o.bold&&e.push(["strong",null]),o.backgroundColor&&e.push(["mark",{style:{backgroundColor:o.backgroundColor,color:"inherit"}}]);let r={};for(let[l,u]of Object.entries(Nm))o[l]==null||o[l]===""||(r[u]=l==="fontFamily"?Hr(o[l]):o[l]);if(Object.keys(r).length&&e.push(["span",{style:r}]),o.link){let u={href:Rm(o.link.href)??void 0};o.link.target&&(u.target=o.link.target,o.link.target==="_blank"&&(u.rel="noopener noreferrer")),e.push(["a",u])}if(e.length===0)return s;let i=s;return e.forEach(([l,u],f)=>{let p=f===e.length-1;i=t(l,p?{...u,key:n}:u,i)}),i}a(If,"wrapFormats");function Tm(s){return s==null||typeof s=="function"?"":typeof s=="object"?JSON.stringify(s):String(s)}a(Tm,"descriptorText");function Df(s,o,{design:t=!0,evaluate:n,statusOf:e,pillProps:r,editingIndex:i}={}){let l=s.flatMap(([f,p])=>{if(f.block)return[o("br",{key:`seg-${p}`})];if(f.descriptor&&!t){let v=Tm(n?.(f.descriptor));if(!v)return[];let b=Mf(v,o,`seg-${p}`),x=f.formats;return x&&Object.keys(x).length?If(b,x,o,`seg-${p}`):b}if(f.descriptor){let v=cl(f.descriptor),b=e?.(f.descriptor),x=[al(f.descriptor),b?.reason].filter(Boolean).join(" \u2014 ");return o("span",{...r,key:`seg-${p}`,contentEditable:"false",class:"descriptor-pill","data-seg-index":p,"data-label":v,"data-state":b?.state,"data-editing":p===i?"true":void 0,title:x||void 0},Br)}let m=Mf(f.text,o,`seg-${p}`),g=f.formats;return!g||Object.keys(g).length===0?m:If(m,g,o,`seg-${p}`)}),u=s[s.length-1]?.[0];return u&&!u.descriptor&&!u.block&&u.text.endsWith(`
14
+ `)&&l.push(o("br",{key:"filler","data-filler":"true"})),l}a(Df,"renderRuns");function Ff(s,o,t,n,e){let r={key:`b${t}`};e.design&&(r["data-block"]="true");let i={};s.align&&(i.textAlign=s.align),s.lineHeight&&(i.lineHeight=s.lineHeight),Object.keys(i).length&&(r.style=i);let l=Df(o,n,e);return l.length===0&&l.push(n("br",{key:"filler","data-filler":"true"})),n(Pf(s),r,l)}a(Ff,"renderBlock");function jm(s,o,t){let n=[],e=[];return s.forEach((r,i)=>{if(!ol(r)){e.push([r,i]);return}n.push(Ff(r.block,e,n.length,o,t)),e=[]}),e.length&&n.push(Ff(Tf,e,n.length,o,t)),n}a(jm,"renderBlocks");function ll(s,o,{blocks:t=!1,...n}={}){return t&&Ks(s)?jm(s,o,n):Df(s.map((e,r)=>[e,r]),o,n)}a(ll,"renderSegments");var Pm={suppressContentEditableWarning:!0};function Om(s,o){for(let t of o){let n=t.formats,e=n?.fontFamily;!e||e.includes("var(")||s.resolve(e,String(n.fontWeight??(n.bold?"700":"400")),n.italic?"italic":"normal")}}a(Om,"requestSegmentFonts");var Lf=$("textContent",(s,o,t)=>{let n=s("registry"),e=o?.view==="design",r,i=a(()=>(r===void 0&&(r=s("fontResolver")??null),r),"getFontResolver"),l,u=a(()=>(l===void 0&&(l=s("nodeGraph")??null),l),"getNodeGraph"),f=a(p=>m=>{if(m?.mode!=="binding")return null;let g=m.binding,v=Array.isArray(g)?g:Gr(g);return v?u()?.bindingStatus(p,v)??null:null},"statusFor");return(p,m,{ctx:g}={})=>{try{let v=qt(m);if(!v)return null;let b=n.getCreateElement();if(!b)return v.map(k=>k.descriptor?"":k.text).join("");let x=i();x&&Om(x,v);let S=ll(v,b,{blocks:jf(p.actor.node?.tagName),design:e,evaluate:k=>t("descriptor",k)(g),statusOf:e?f(p):void 0,editingIndex:e?m?.[".editingDescriptor"]:void 0,pillProps:Pm});return S.length===1&&typeof S[0]=="string"?S[0]:S}catch(v){console.error("Error resolving textContent",v)}}});var Bf=$("selectOptions",(s,o,t)=>{let n=s("registry");return(e,r=null,{ctx:i}={})=>{let l=r?t("descriptor",r)?.(i):null;return Array.isArray(l)?l.map((u,f)=>n.createElement("option",{value:u?.value,key:f},u?.label??u?.value)):[]}});var _f=$("slots",(s,o,t)=>(n,e,{ctx:r,instanceRid:i})=>{if(!e||e.length===0)return{};for(let l of e)n.setSlotThunk(l.id,u=>t("slotChildren",n,u,l,{ctx:r,instanceRid:i}));return n.getSlotThunks()});var Gf=$("slotChildren",(s,o,t)=>{let n=s("lifecycle");return(e,r,i,{ctx:l,instanceRid:u}={})=>{let{id:f,children:p,childrenType:m}=i;if(!f)return[];if(m==="text")return t("textContent",e,i,{ctx:l});if(typeof p=="string")return p;let g=Array.isArray(p)?p:[],v=e.reconcileSlotChildren(f,g);if(v.length)for(let x of v)n.scheduleTeardown(x);if(g.length===0)return[];let b=[];for(let x of g){let S=t("slotChild",e,r,f,x,{ctx:l,instanceRid:u});S&&b.push(S)}return b}});var Hf=$("slotChild",s=>{let o=s("registry");return(t,n,e,r,{ctx:i,instanceRid:l}={})=>{let u=n?.actor?.id??t.actor.id,f=t.getSlotChild(e,r),p=o.resolveActor(t.actor.app,r,{styleScope:t.actor.styleScope,parentId:u}),m=p&&o.resolvePuppet(p,f,{ctx:i,instanceRid:l});return m?.render?(t.setSlotChild(e,r,m.rid),o.createElement(m.render,{key:m.rid})):null}});var Uf=[rf,of,sf,ff,hf,df,pf,yf,xf,bf,vf,Sf,$f,Cf,Ef,Rf,Nf,Lf,Bf,_f,Gf,Hf];var Wf=$("sceneValue",(s,o)=>{let t=o.scene,n=o.sceneOverlay??null,e=a((r,i)=>i.reduce((l,u)=>l?.[u],r),"walk");return r=>n&&r[0]==="nodes"&&r.length>1&&n.has(r[1])?e(n.get(r[1]),r.slice(2)):e(t,r)});var $n,be,Wr,ve,Ur,Kr,ul,zs=class zs extends Mm{constructor(){super(...arguments);d(this,ve);d(this,Kr);d(this,$n,new Map);d(this,be,new Map);d(this,Wr,a((t,...n)=>{let e=c(this,be).get(t);if(!e){let r=Array.from(c(this,be).keys()).join(", ");throw new Error(`Resolve.dispatch: no resolver "${t}" (registered: ${r})`)}return e(...n)},"#dispatch"))}actions(t,n){return h(this,ve,Ur).call(this,Uf),n.scene&&h(this,ve,Ur).call(this,[Wf]),h(this,ve,Ur).call(this,n.resolvers??[]),{use:(...e)=>{h(this,ve,Ur).call(this,e.flat())},has:e=>c(this,be).has(e),dispatch:(e,...r)=>c(this,Wr).call(this,e,...r),reset:(...e)=>{let r=e.length?e:Array.from(c(this,$n).keys());for(let i of r){let l=c(this,$n).get(i);l&&h(this,Kr,ul).call(this,l)}}}}};$n=new WeakMap,be=new WeakMap,Wr=new WeakMap,ve=new WeakSet,Ur=a(function(t){for(let n of t){if(Im(n)!==Va)throw new Error("Resolve.use: expected a defineResolver() definition");c(this,$n).set(n._name,n),h(this,Kr,ul).call(this,n)}},"#use"),Kr=new WeakSet,ul=a(function(t){c(this,be).set(t._name,t(this.inject,this.config,c(this,Wr)))},"#build"),a(zs,"Resolve"),w(zs,"manifest",{name:"Resolve",namespace:"resolve"});var qs=zs;import{ServiceProvider as Dm}from"@jucie.io/engine";import{defineStore as Lm,rebuildStore as Bm,destroyStore as _m}from"@jucie.io/reactive";import{setProjectMain as Gm}from"jucie:sdk";function Kf(s){return Array.isArray(s)?`List of ${Kf(s[0])}`:s&&typeof s=="object"?"Map":String(s)}a(Kf,"describe");function Vs(s,o,t,n,e="state"){let r=[],i=a((l,u,f)=>{if(r.push({path:l,type:e,dot:l.join("."),hint:Kf(u)}),l.length-1>=4||Array.isArray(u))return;if(u&&typeof u=="object"&&u["*"]!==void 0){for(let m of Object.keys(f??{}))i([...l,m],u["*"],f[m]);return}let p=t.types?.[u];if(p)for(let[m,g]of Object.entries(p))i([...l,m],g,f?.[m])},"visit");return i(s,o,n),r}a(Vs,"typeSchemaPaths");function qf(s,o,t={}){return Object.entries(o.fields??{}).flatMap(([n,e])=>Vs([`$${s}`,n],e,o,t?.[n]))}a(qf,"storeSchemaPaths");var zf=new Set(["string","number","boolean","enum"]);function Fm(s,o={},t={}){for(let e of Object.keys(t))if(!Object.hasOwn(o,e))throw new Error(`${s} has no option "${e}" (it has: ${Object.keys(o).join(", ")||"none"})`);let n={};for(let[e,r]of Object.entries(o)){if(!zf.has(r?.type))throw new Error(`${s}'s option "${e}" has type ${JSON.stringify(r?.type)} (one of ${[...zf].join(", ")})`);let i=t[e]===void 0?r.default:t[e];if(r.type==="enum"&&!r.options?.includes(i))throw new Error(`${s}'s option "${e}" is ${JSON.stringify(i)} (one of ${(r.options??[]).map(l=>JSON.stringify(l)).join(", ")})`);if(r.type!=="enum"&&i!==void 0&&(typeof i!==r.type||Number.isNaN(i)))throw new Error(`${s}'s option "${e}" must be a ${r.type} (got ${JSON.stringify(i)})`);n[e]=i}return n}a(Fm,"resolveOptionValues");function Vf({name:s,options:o,setup:t=null},n,e=globalThis.document){let r=Fm(s,o??{},n??{}),i=[];t?.(r,{stylesheet:u=>i.push(String(u))});let l=i.join(`
15
+ `);if(e){let u=[...e.head.querySelectorAll("style[data-jucie-library]")].find(f=>f.dataset.jucieLibrary===s);u||(u=e.createElement("style"),u.dataset.jucieLibrary=s,e.head.appendChild(u)),u.textContent=l}return{values:r,css:l}}a(Vf,"runLibrarySetup");var B,An,qr,zr,Vr,fl,Ys,Jf,Jr,hl,Xs,Yf,Yr,dl,Zs,Xf,Qs,Zf,ti,Qf,ei,th,ni=class ni extends Dm{constructor(){super(...arguments);d(this,Vr);d(this,Ys);d(this,Jr);d(this,Xs);d(this,Yr);d(this,Zs);d(this,Qs);d(this,ti);d(this,ei);d(this,B,new Map);d(this,An,new Set);d(this,qr,!1);d(this,zr,new Map)}getters(){return{libraryStylesheets:()=>Object.fromEntries(c(this,zr))}}actions(t,n){return{addStore:(e,r)=>{c(this,B).set(e,{store:r,paths:[]})},getStore:e=>c(this,B).get(e)?.store,getSchema:e=>c(this,B).get(e)?.schema??null,hasStore:e=>c(this,B).has(e),removeStore:e=>{c(this,B).delete(e)},getCurrentStoreNames:()=>Array.from(c(this,B).keys()),onStoresChange:e=>(c(this,An).add(e),()=>c(this,An).delete(e)),swapCompiledModule:(e,r,i)=>h(this,Qs,Zf).call(this,e,r,i),getContextPaths:()=>{let e=[];for(let{paths:r}of c(this,B).values())r&&e.push(...r);return e.push(...t("router")?.contextPaths??[]),e.push(...t("animator")?.contextPaths??[]),e},initialize:e=>h(this,Ys,Jf).call(this,e)}}};B=new WeakMap,An=new WeakMap,qr=new WeakMap,zr=new WeakMap,Vr=new WeakSet,fl=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),Ys=new WeakSet,Jf=a(function(t=!0){if(c(this,qr))return;y(this,qr,!0),h(this,Jr,hl).call(this,h(this,Vr,fl).call(this,[".stores"])??{});let n=this.config?.scene?null:this.inject("state")?.matcher;t&&n&&n.createMatcher([".stores"],e=>{h(this,Jr,hl).call(this,e??{})})},"#initializeStores"),Jr=new WeakSet,hl=a(function(t){for(let[n,e]of Object.entries(t)){let r=h(this,Zs,Xf).call(this,n,e),i=c(this,B).get(n);i?i.paths=r:c(this,B).set(n,{store:null,paths:r})}for(let[n,{store:e}]of c(this,B))!t[n]&&!e&&h(this,Xs,Yf).call(this,n)},"#syncStoreContextPaths"),Xs=new WeakSet,Yf=a(function(t){let n=c(this,B).get(t)?.store;n&&_m(n),c(this,B).delete(t),n&&h(this,Yr,dl).call(this)},"#teardownStore"),Yr=new WeakSet,dl=a(function(){for(let t of c(this,An))t()},"#notifyStoresChange"),Zs=new WeakSet,Xf=a(function(t,n){let e=[];if(n?.state)for(let{key:r}of n.state)e.push({path:[`$${t}`,r],type:"state",dot:`$${t}.${r}`,hint:"Reactive state value"});if(n?.computed)for(let{name:r}of n.computed)e.push({path:[`$${t}`,r],type:"computed",dot:`$${t}.${r}`,hint:"Computed value"});if(n?.actions)for(let{name:r}of n.actions)e.push({path:[`$${t}`,r],type:"action",dot:`$${t}.${r}`,hint:"Store action"});return e},"#buildStorePaths"),Qs=new WeakSet,Zf=a(function(t,n,e){let r=this.inject("log");if(n==="store"){let i=h(this,ti,Qf).call(this,t,e??{}),l=h(this,ei,th).call(this,t,e??{}),u=e?.schema??null,f=c(this,B).get(t),p=u!==(f?.schema??null);if(f?.store)Bm(f.store,i),f.paths=l,f.schema=u;else{let m=Lm(t,i);m(),c(this,B).set(t,{store:m,paths:l,schema:u}),h(this,Yr,dl).call(this)}p&&this.inject("relay").broadcast("schema:change",t),r.debug(`[ModuleManager] hot-swapped store module: ${t}`)}else if(n==="component"){let i=typeof e=="function"?e:e?.default;if(!i)return;let l=this.inject("registry");i.__jux===!0?l.setSetup(t,i):this.inject("components").register(t,i),r.debug(`[ModuleManager] hot-swapped component module: ${t}`)}else if(n==="library"){if(!e?.components)return;this.inject("registry").loadSources({[t]:e}),r.debug(`[ModuleManager] registered component library: ${t}`)}else if(n==="main"){if(typeof e!="function"){r.warn("[ModuleManager] src/main.js must default-export setup(...), e.g. export default setup((app) => { ... })");return}Gm(e),r.debug("[ModuleManager] registered project main")}else if(n==="librarySetup"||n==="usedLibrarySetup"){let i=e?.name,l={};if(n==="usedLibrarySetup"){let u=h(this,Vr,fl).call(this,[".libraries",i]);if(!u){r.debug(`[ModuleManager] ${i} isn't loaded, so its setup doesn't run`);return}l=u.values}try{let{css:u}=Vf(e,l);c(this,zr).set(i,u),r.debug(`[ModuleManager] ran ${i}'s setup`)}catch(u){r.error(`[ModuleManager] ${i}'s setup failed: ${u.message}`)}}},"#swapCompiledModule"),ti=new WeakSet,Qf=a(function(t,n){let e=this.inject("log"),r={state:n.state??{},computed:{},actions:{}};for(let[i,l]of Object.entries(n.computed??{}))typeof l=="function"&&(r.computed[i]=a(function(f,p){try{return l.call(f,f,p)}catch(m){e.warn(`[Store:${t}] computed "${i}" threw: ${m.message}`);return}},"safeComputed"));for(let[i,l]of Object.entries(n.actions??{}))typeof l=="function"&&(r.actions[i]=a(function(...f){try{return l.apply(this,f)}catch(p){e.warn(`[Store:${t}] action "${i}" threw: ${p.message}`)}},"safeAction"));return r},"#toStoreConfig"),ei=new WeakSet,th=a(function(t,n){let e=[];if(n.schema){let r=Object.fromEntries(Object.entries(n.state??{}).map(([i,l])=>[i,l?.default]));e.push(...qf(t,n.schema,r))}else if(n.state)for(let r of Object.keys(n.state))e.push({path:[`$${t}`,r],type:"state",dot:`$${t}.${r}`,hint:"Reactive state value"});if(n.computed)for(let r of Object.keys(n.computed))e.push({path:[`$${t}`,r],type:"computed",dot:`$${t}.${r}`,hint:"Computed value"});if(n.actions)for(let r of Object.keys(n.actions))e.push({path:[`$${t}`,r],type:"action",dot:`$${t}.${r}`,hint:"Store action"});return e},"#buildStorePathsFromModule"),a(ni,"ModuleManager"),w(ni,"manifest",{name:"ModuleManager",namespace:"modules"});var Js=ni;import{ServiceProvider as Hm}from"@jucie.io/engine";import{createComputed as Um,createSubscriber as Wm}from"@jucie.io/reactive";function Km(s){return{displayName:s.name,category:"components",keywords:[s.name,"jux","component"],library:"local",tagName:s.component,origin:"jux"}}a(Km,"juxEntry");var Cn,Xr,pl,oi,eh,si,nh,ii=class ii extends Hm{constructor(){super(...arguments);d(this,Xr);d(this,oi);d(this,si);d(this,Cn,null)}actions(t){return{list:()=>h(this,Xr,pl).call(this)(),onChange:n=>Wm(h(this,Xr,pl).call(this),n),register:(n,e,r={})=>t("registry").registerComponent("local",n,e,{displayName:n.replace(/([A-Z])/g," $1").trim()||n,category:"components",keywords:[n,"component"],tagName:n,origin:"source",...r}),unregister:(n,e)=>t("registry").unregisterComponent(n,e)}}};Cn=new WeakMap,Xr=new WeakSet,pl=a(function(){return c(this,Cn)||y(this,Cn,Um(()=>[...h(this,oi,eh).call(this),...h(this,si,nh).call(this)])),c(this,Cn)},"#getCatalog"),oi=new WeakSet,eh=a(function(){return this.inject("registry").getAllComponents().filter(t=>t.library!=="local"||t.meta?.origin==="source").map(t=>t.meta)},"#codedComponents"),si=new WeakSet,nh=a(function(){let t=this.inject("resolve").dispatch("sceneValue",["nodes"])??{},n=[];for(let[e,r]of Object.entries(t))r?.type==="component"&&(e.startsWith(".")&&!r.component||n.push(r.component?Km(r):{displayName:r.name||e,category:"local",keywords:[r.name,"component"],library:null,tagName:e}));return n},"#sceneGraphComponents"),a(ii,"ComponentManager"),w(ii,"manifest",{name:"ComponentManager",namespace:"components"});var ri=ii;import{createComputed as ml,addEffect as gl}from"@jucie.io/reactive";import{ServiceProvider as qm}from"@jucie.io/engine";function ci(s){return s==null?null:typeof s=="string"?{mode:"value",value:s,binding:null,computed:null}:s}a(ci,"normalizeActionDescriptor");var K,En,Rn,Zr,G,Vt,Qr,yl,di,rh,to,xl,pi,oh,mi,sh,eo,bl,no,vl,gi,ih,Nn,ai,yi,ch,Tn,li,xi,ah,ro,Sl,jn,ui,bi,lh,Pn,fi,vi=class vi extends qm{constructor(){super(...arguments);d(this,Qr);d(this,di);d(this,to);d(this,pi);d(this,mi);d(this,eo);d(this,no);d(this,gi);d(this,Nn);d(this,yi);d(this,Tn);d(this,xi);d(this,ro);d(this,jn);d(this,bi);d(this,Pn);d(this,K,new Map);d(this,En,new Map);d(this,Rn,null);d(this,Zr,[]);d(this,G,new Map);d(this,Vt,new Map)}initialize(){let t=this.config,n=this.inject("relay");h(this,di,rh).call(this),n.on("scene:unmount",e=>{for(let r of e)this.unbindPuppet(r)}),t?.view!=="design"&&(n.on("scene:mount",e=>{for(let r of e)this.bindPuppet(r)}),n.on("scene:update",e=>{for(let r of e)this.rebindPuppet(r)}))}getters(){return{contextPaths:()=>[{path:["$animator","play"],type:"action",dot:"$animator.play",hint:"Play an animation on a target"},{path:["$animator","cancel"],type:"action",dot:"$animator.cancel",hint:"Cancel an animation on a target"}]}}actions(){return{play:(t,n,e)=>this.play(t,n,e),cancel:(t,n)=>this.cancel(t,n),pauseAll:t=>this.pauseAll(t),resumeAll:t=>this.resumeAll(t),getAnimationAsset:t=>this.getAnimationAsset(t),bindPuppet:t=>this.bindPuppet(t),rebindPuppet:t=>this.rebindPuppet(t),unbindPuppet:t=>this.unbindPuppet(t),getLoadedAnimations:()=>{let t=new Set,n={};for(let[e,r]of c(this,K))t.has(r)||(t.add(r),n[e]=r);return n},getActiveAnimation:t=>{for(let n of c(this,G).values()){let e=n.get(t);if(e?.size)return[...e][0]}return null},seekAnimation:(t,n)=>{let e=!1;for(let l of c(this,G).values()){let u=l.get(t);if(u?.size){e=!0;for(let f of u)f.pause(),f.currentTime=n}}if(e)return;let r=c(this,K).get(t);if(!r)return;let i=this.inject("registry");for(let l of i.getPuppets()){if(!l)continue;let u=l.rid;if(!(l?.actor?.node?.animations??[]).some(m=>m.id===t))continue;let p=l.$el;if(p)try{let m=(r.keyframes??[]).map(b=>{let{offset:x,...S}=b;return{offset:x,...S}}),g=new KeyframeEffect(p,m,{duration:r.duration??300,fill:"both"}),v=new Animation(g,document.timeline);v.pause(),v.currentTime=n,h(this,jn,ui).call(this,u,t,v)}catch{}}}}}getAnimationAsset(t){return c(this,K).get(t)??null}resolveTargets(t){if(t instanceof HTMLElement)return[t];if(t instanceof NodeList||Array.isArray(t))return Array.from(t);if(typeof t!="string")return[];let n=typeof document<"u"?document:null;if(!n)return[];let e=n.getElementById(t);if(e)return[e];let r=n.querySelectorAll(`[data-name="${t}"]`);if(r.length)return Array.from(r);let i=n.querySelector(`[data-node-id="${t}"]`);if(i)return[i];try{let l=n.querySelectorAll(t);return Array.from(l)}catch{return[]}}play(t,n,e={}){let r=c(this,K).get(n);if(!r)return console.warn(`Animator: animation "${n}" not found`),null;let i=this.resolveTargets(t);if(i.length===0)return null;let l=e.stagger??0,u=[];for(let f=0;f<i.length;f++){let p=i[f],m=r.keyframes.map(S=>({offset:S.offset,...S.properties})),g={duration:e.duration??r.duration??300,easing:e.easing??r.easing??"ease",fill:e.fill??r.fill??"none",direction:e.direction??r.direction??"normal",iterations:e.iterations??r.iterations??1,delay:(e.delay??r.delay??0)+l*f,endDelay:e.endDelay??r.endDelay??0},v=new KeyframeEffect(p,m,g),b=new Animation(v,p.ownerDocument.timeline);b.play();let x=p.dataset?.rid;x&&h(this,jn,ui).call(this,x,n,b),u.push(b)}return u.length===1?u[0]:u}cancel(t,n){let e=this.resolveTargets(t);for(let r of e){let i=r.dataset?.rid;if(!i)continue;let l=c(this,G).get(i);if(l)if(n){let u=l.get(n);if(u){for(let f of u)f.cancel();l.delete(n)}}else{for(let u of l.values())for(let f of u)f.cancel();l.clear()}}}pauseAll(t){let n=this.resolveTargets(t);for(let e of n){let r=e.dataset?.rid;if(!r)continue;let i=c(this,G).get(r);if(i)for(let l of i.values())for(let u of l)u.pause()}}resumeAll(t){let n=this.resolveTargets(t);for(let e of n){let r=e.dataset?.rid;if(!r)continue;let i=c(this,G).get(r);if(i)for(let l of i.values())for(let u of l)u.play()}}bindPuppet(t){let e=this.inject("registry").getPuppet(t),r=e?.actor;if(r?.node?.animations?.length)for(let i of r.node.animations)h(this,gi,ih).call(this,e,i)}rebindPuppet(t){this.unbindPuppet(t),this.bindPuppet(t)}unbindPuppet(t){let n=c(this,Vt).get(t);if(n){for(let e of n)e();c(this,Vt).delete(t)}h(this,bi,lh).call(this,t)}};K=new WeakMap,En=new WeakMap,Rn=new WeakMap,Zr=new WeakMap,G=new WeakMap,Vt=new WeakMap,Qr=new WeakSet,yl=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),di=new WeakSet,rh=a(function(){y(this,Rn,ml(()=>h(this,Qr,yl).call(this,["animations"]))),gl(c(this,Rn),t=>h(this,to,xl).call(this,t)),h(this,to,xl).call(this,c(this,Rn).call(this))},"#initReactiveAnimations"),to=new WeakSet,xl=a(function(t){let n=t?Object.keys(t):[],e=c(this,Zr),r=new Set(n),i=new Set(e);for(let l of n)i.has(l)||h(this,pi,oh).call(this,l);for(let l of e)r.has(l)||h(this,mi,sh).call(this,l);y(this,Zr,n.slice())},"#processAnimations"),pi=new WeakSet,oh=a(function(t){if(c(this,En).has(t))return;let n=ml(()=>h(this,Qr,yl).call(this,["animations",t]));c(this,En).set(t,n);let e=gl(n,i=>{if(!i){h(this,no,vl).call(this,t),e();return}h(this,eo,bl).call(this,t,i)}),r=n();r&&h(this,eo,bl).call(this,t,r)},"#watchAnimation"),mi=new WeakSet,sh=a(function(t){c(this,En).delete(t),h(this,no,vl).call(this,t)},"#unwatchAnimation"),eo=new WeakSet,bl=a(function(t,n){let e=c(this,K).get(t);e?.name&&e.name!==n.name&&c(this,K).delete(e.name),c(this,K).set(t,n),n.name&&c(this,K).set(n.name,n)},"#indexAnimation"),no=new WeakSet,vl=a(function(t){let n=c(this,K).get(t);n?.name&&c(this,K).delete(n.name),c(this,K).delete(t)},"#removeAnimationFromIndex"),gi=new WeakSet,ih=a(function(t,n){let e=t.rid,r=ci(n.play??n.trigger),i=ci(n.reverse??null),l=ci(n.reset??null);r&&h(this,Nn,ai).call(this,t,e,r,n,"play"),i&&h(this,Nn,ai).call(this,t,e,i,n,"reverse"),l&&h(this,Nn,ai).call(this,t,e,l,n,"reset")},"#bindActions"),Nn=new WeakSet,ai=a(function(t,n,e,r,i){if(e.mode==="value"||!e.mode){h(this,yi,ch).call(this,t,n,e.value,r,i);return}if(e.mode==="binding"||e.mode==="computed"){let l=this.inject("context").ctx;if(!l)return;let u=this.inject("resolve").dispatch("descriptor",e),f=ml(()=>u(l)),p=f(),m=gl(f,g=>{let v=g;v&&!p&&h(this,Tn,li).call(this,t,r,i),p=v});h(this,Pn,fi).call(this,n,m);return}},"#bindActionDescriptor"),yi=new WeakSet,ch=a(function(t,n,e,r,i){if(e==="mount"){i==="play"&&h(this,ro,Sl).call(this,t,r);return}if(e==="manual")return;if(e==="visible"){let p=t.$el;if(!p)return;let m=!1,g=new IntersectionObserver(v=>{for(let b of v)b.isIntersecting&&!m&&(m=!0,h(this,Tn,li).call(this,t,r,i),g.disconnect())},{threshold:.1});g.observe(p),h(this,Pn,fi).call(this,n,()=>g.disconnect());return}let l=t.$el;if(!l)return;let u=e==="focus"?"focusin":e==="focusout"?"focusout":e,f=a(()=>h(this,Tn,li).call(this,t,r,i),"handler");l.addEventListener(u,f),h(this,Pn,fi).call(this,n,()=>l.removeEventListener(u,f))},"#bindEvent"),Tn=new WeakSet,li=a(function(t,n,e){let r=t.rid;if(e==="play"){h(this,ro,Sl).call(this,t,n);return}if(e==="reverse"){let i=c(this,G).get(r);if(!i)return;let l=i.get(n.id);if(!l)return;for(let u of l)(u.playState==="running"||u.playState==="paused")&&u.reverse();return}if(e==="reset"){let i=c(this,G).get(r);if(!i)return;let l=i.get(n.id);if(!l)return;for(let u of l)try{u.cancel()}catch{}l.clear();return}},"#executeAction"),xi=new WeakSet,ah=a(function(t,n){let e=c(this,G).get(t);if(!e)return!1;let r=e.get(n);if(!r||r.size===0)return!1;for(let i of r)if(i.playState==="running"||i.playState==="pending")return!0;return!1},"#isPlayingBinding"),ro=new WeakSet,Sl=a(function(t,n){if(h(this,xi,ah).call(this,t.rid,n.id))return;let e=n.target?this.resolveTargets(n.target):[t.$el];if(!e.length)return;let r=c(this,K).get(n.id);if(!r)return;let i=n.stagger??0;for(let l=0;l<e.length;l++){let u=e[l];if(!u)continue;let f=r.keyframes.map(b=>({offset:b.offset,...b.properties})),p={duration:n.duration??r.duration??300,easing:n.easing??r.easing??"ease",fill:n.fill??r.fill??"none",direction:n.direction??r.direction??"normal",iterations:n.iterations??r.iterations??1,delay:(n.delay??r.delay??0)+i*l,endDelay:n.endDelay??r.endDelay??0},m=new KeyframeEffect(u,f,p),g=new Animation(m,u.ownerDocument.timeline);g.play();let v=u.dataset?.rid??t.rid;h(this,jn,ui).call(this,v,n.id,g)}},"#playOnPuppet"),jn=new WeakSet,ui=a(function(t,n,e){c(this,G).has(t)||c(this,G).set(t,new Map);let r=c(this,G).get(t);r.has(n)||r.set(n,new Set),r.get(n).add(e),e.addEventListener("finish",()=>{r.get(n)?.delete(e)},{once:!0}),e.addEventListener("cancel",()=>{r.get(n)?.delete(e)},{once:!0})},"#trackAnimation"),bi=new WeakSet,lh=a(function(t){let n=c(this,G).get(t);if(n){for(let e of n.values())for(let r of e)try{r.cancel()}catch{}c(this,G).delete(t)}},"#cancelAllForRid"),Pn=new WeakSet,fi=a(function(t,n){c(this,Vt).has(t)||c(this,Vt).set(t,new Set),c(this,Vt).get(t).add(n)},"#addCleanup"),a(vi,"Animator"),w(vi,"manifest",{name:"Animator",namespace:"animator"});var hi=vi;import{ServiceProvider as Jm}from"@jucie.io/engine";import{createSignal as Ym,createComputed as uh,createSubscriber as Xm,defineStore as Zm}from"@jucie.io/reactive";function Si(s){return(s("app")?.children??[]).map(t=>{let n=s(t),e=n?.route;if(!e?.path)return null;let r=e.path.startsWith("/")?e.path:`/${e.path}`;return{id:t,name:n.name||null,path:r,dynamic:/(^|\/):[^/]/.test(r),home:e.home===!0,notFound:e.notFound===!0,title:e.title||null,seo:Array.isArray(e.seo)?e.seo:[],staticParams:e.staticParams||[]}}).filter(Boolean)}a(Si,"listRoutes");function wi(s,o={}){return s.replace(/:([^/]+)/g,(t,n)=>o[n]!=null?encodeURIComponent(o[n]):t)}a(wi,"buildRoutePath");var zm=/^[a-z][a-z0-9+.-]*:\/\//i;function ki(s,o){return s?zm.test(s)||!o?s:o+(s.startsWith("/")?s:`/${s}`):null}a(ki,"absoluteUrl");var Vm=a(s=>s.siteUrl?s.siteUrl.replace(/\/+$/,""):null,"siteBase");function wl(s,o,t={}){let n=s.seo??{},e=Vm(t),r=n.title||s.title||null,i=n.noindex===!0||s.notFound===!0;return{title:r&&t.titleTemplate?t.titleTemplate.replace("%s",r):r,siteTitle:t.title||null,description:n.description||t.description||null,canonical:s.notFound?null:n.canonical?ki(n.canonical,e):e&&e+o,image:ki(n.image||t.image,e),robots:i?"noindex":null}}a(wl,"resolvePageMeta");var kl=a(s=>s.mode==="value"?s.value:void 0,"staticDescriptorValue");function $i(s,o){let t={};for(let n of Array.isArray(s)?s:[]){if(!n?.name)continue;let e=o(n);e!=null&&e!==""&&(t[n.name]=e)}return t}a($i,"readSeo");var Qm=[["meta","name","description","content",s=>s.description],["link","rel","canonical","href",s=>s.canonical],["meta","name","robots","content",s=>s.robots],["meta","property","og:title","content",s=>s.title],["meta","property","og:description","content",s=>s.description],["meta","property","og:url","content",s=>s.canonical],["meta","property","og:image","content",s=>s.image],["meta","name","twitter:card","content",s=>s.image?"summary_large_image":"summary"]],ct,Se,On,we,Jt,Mn,ke,$e,In,Yt,Ae,Ce,Ni,Fn,ao,jt,Dn,Ti,fh,Ee,oo,Re,so,Ln,Ai,Ne,io,ji,hh,Pi,dh,Oi,ph,Mi,mh,Ii,gh,Fi,yh,Di,xh,lo,$l,Te,co,Li,bh,Bn,Ci,uo,Al,fo,Cl,_n,Ei,Bi=class Bi extends Jm{constructor(){super(...arguments);d(this,Ti);d(this,Ee);d(this,Re);d(this,Ln);d(this,Ne);d(this,ji);d(this,Pi);d(this,Oi);d(this,Mi);d(this,Ii);d(this,Fi);d(this,Di);d(this,lo);d(this,Te);d(this,Li);d(this,Bn);d(this,uo);d(this,fo);d(this,_n);w(this,"routes",[]);d(this,ct,Ym(null));d(this,Se,null);d(this,On,{});d(this,we,!1);d(this,Jt,!1);d(this,Mn,new Map);d(this,ke,[]);d(this,$e,[]);d(this,In,new Map);d(this,Yt,!1);d(this,Ae,[]);d(this,Ce,[]);d(this,Ni,null);d(this,Fn,null);d(this,ao,null);d(this,jt,null);d(this,Dn,null)}initialize(t,n){if(h(this,Ti,fh).call(this),n.view!=="design"){if(n.embedded){y(this,Jt,!0);return}y(this,On,{basePath:n.basePath||""}),y(this,jt,n.server??null),y(this,Fn,n.site??null),y(this,we,!0),h(this,Ln,Ai).call(this),c(this,jt)||h(this,Fi,yh).call(this)}}getters(){return{currentRoute:()=>this.getCurrentRoute(),pageHead:()=>c(this,Dn),contextPaths:()=>[{path:["$router","currentRoute"],type:"getter",dot:"$router.currentRoute",hint:"Current route (path, params, query, meta)"},{path:["$router","currentRoute","path"],type:"getter",dot:"$router.currentRoute.path",hint:"Current URL path"},{path:["$router","currentRoute","name"],type:"getter",dot:"$router.currentRoute.name",hint:"Current page name"},{path:["$router","currentRoute","params"],type:"getter",dot:"$router.currentRoute.params",hint:"Route parameters object"},{path:["$router","push"],type:"action",dot:"$router.push",hint:"Navigate to a path or location object (adds history entry)"},{path:["$router","replace"],type:"action",dot:"$router.replace",hint:"Navigate replacing the current history entry"},{path:["$router","go"],type:"action",dot:"$router.go",hint:"Move through history by delta (-1 = back, 1 = forward)"},{path:["$router","back"],type:"action",dot:"$router.back",hint:"Go back one history entry"},{path:["$router","forward"],type:"action",dot:"$router.forward",hint:"Go forward one history entry"},{path:["$router","navigate"],type:"action",dot:"$router.navigate",hint:"Navigate to a path or page id (legacy)"}]}}actions(){return{push:t=>this.push(t),replace:t=>this.replace(t),go:t=>this.go(t),back:()=>this.back(),forward:()=>this.forward(),navigate:(t,n)=>this.navigate(t,n),getCurrentUrl:()=>this.getCurrentUrl(),hrefFor:(t,n)=>this.hrefFor(t,n),setCallback:t=>this.setCallback(t),setMemoryMode:t=>this.setMemoryMode(t),getCurrentRoute:()=>this.getCurrentRoute()??null,beforeEach:t=>this.beforeEach(t),afterEach:t=>this.afterEach(t)}}beforeEach(t){return c(this,Ae).push(t),()=>{y(this,Ae,c(this,Ae).filter(n=>n!==t))}}afterEach(t){return c(this,Ce).push(t),()=>{y(this,Ce,c(this,Ce).filter(n=>n!==t))}}async push(t){let n=h(this,Ee,oo).call(this,t);return this.navigate(n.path,{query:n.query})}async replace(t){let n=h(this,Ee,oo).call(this,t);return this.navigate(n.path,{replace:!0,query:n.query})}async go(t){if(t===0)return!1;if(t<0)for(let n=0;n<Math.abs(t);n++){if(c(this,ke).length===0)return!1;let e=c(this,ct).call(this),r=c(this,ke).pop();if(e&&c(this,$e).push(e),n===Math.abs(t)-1){y(this,Yt,!0);let i=await this.navigate(r.path,{replace:!0});return y(this,Yt,!1),i}c(this,ct).call(this,r)}else for(let n=0;n<t;n++){if(c(this,$e).length===0)return!1;let e=c(this,ct).call(this),r=c(this,$e).pop();if(e&&c(this,ke).push(e),n===t-1){y(this,Yt,!0);let i=await this.navigate(r.path,{replace:!0});return y(this,Yt,!1),i}c(this,ct).call(this,r)}return!1}setCallback(t){return y(this,Se,t),()=>{y(this,Se,null)}}setMemoryMode(t=!0){y(this,Jt,!!t)}async navigate(t,n={}){let e=this.inject("log");typeof t=="string"&&(t=t.replace(/\/{2,}/g,"/")),this.routes.length===0&&h(this,Ln,Ai).call(this),e.debug(`[Router] navigate("${t}") routes=${this.routes.length}`);let r=c(this,ct).call(this),i=h(this,lo,$l).call(this,t);if(e.debug(`[Router] from=${r?.path??"null"} \u2192 to=${i?.path??"null"}`),!i&&(e?.warn(`Router: No route found for: ${t}`),i=h(this,Ii,gh).call(this,t),!i))return!1;let l=r?h(this,Te,co).call(this,r.pageId):null,u=h(this,Te,co).call(this,i.pageId);for(let f of c(this,Ae))try{let p=await f(i,r);if(p===!1)return!1;if(typeof p=="string")return this.navigate(p,n);if(p!=null&&typeof p=="object"){let m=h(this,Ee,oo).call(this,p);return this.navigate(m.path,n)}}catch(p){return e?.error("Router: global guard error:",p),!1}if(l?.beforeLeave)try{if(await l.beforeLeave(i,r)===!1)return!1}catch(f){return e?.error("Router: beforeLeave guard error:",f),!1}if(u?.beforeEnter)try{let f=await u.beforeEnter(i,r);if(f===!1)return!1;if(typeof f=="string")return this.navigate(f,n);if(f!=null&&typeof f=="object"){let p=h(this,Ee,oo).call(this,f);return this.navigate(p.path,n)}}catch(f){return e?.error("Router: beforeEnter guard error:",f),!1}if(!c(this,Yt)&&!n.replace&&r&&(c(this,ke).push(r),c(this,$e).length=0),c(this,we)&&!c(this,jt)&&!c(this,Jt)){let f=h(this,fo,Cl).call(this,i.path)+h(this,Re,so).call(this,i.query);n.replace?window.history.replaceState({},"",f):window.history.pushState({},"",f)}c(this,ct).call(this,i),c(this,we)&&!c(this,Jt)&&c(this,Fn)&&u&&h(this,Pi,dh).call(this,i,u),e?.log("[Router] signal set \u2192",i.path,i),c(this,Se)&&c(this,Se).call(this,i.pageId),l?.afterLeave&&Promise.resolve().then(()=>l.afterLeave(i,r)),u?.afterEnter&&Promise.resolve().then(()=>u.afterEnter(i,r));for(let f of c(this,Ce))try{f(i,r)}catch(p){e?.error("Router: afterEach error:",p)}return!0}getCurrentRoute(){return c(this,ct).call(this)}async back(){return this.go(-1)}async forward(){return this.go(1)}getCurrentUrl(){return c(this,we)?c(this,jt)?c(this,jt).url??"/":window.location.pathname+window.location.search:null}hrefFor(t,{params:n,query:e}={}){if(!t)return null;let r=h(this,Ne,io).call(this,["nodes",t,"route","path"]);return r?h(this,fo,Cl).call(this,wi(r,n||{}))+h(this,Re,so).call(this,e):null}};ct=new WeakMap,Se=new WeakMap,On=new WeakMap,we=new WeakMap,Jt=new WeakMap,Mn=new WeakMap,ke=new WeakMap,$e=new WeakMap,In=new WeakMap,Yt=new WeakMap,Ae=new WeakMap,Ce=new WeakMap,Ni=new WeakMap,Fn=new WeakMap,ao=new WeakMap,jt=new WeakMap,Dn=new WeakMap,Ti=new WeakSet,fh=a(function(){y(this,Ni,Zm(()=>({currentRoute:uh(()=>c(this,ct).call(this)),push:t=>this.push(t),replace:t=>this.replace(t),go:t=>this.go(t),back:()=>this.back(),forward:()=>this.forward(),navigate:(t,n)=>this.navigate(t,n)}),{id:"$router"}))},"#createStoreFacade"),Ee=new WeakSet,oo=a(function(t){if(typeof t=="string")return{path:t,query:{}};if(t.path){let n=t.query||{},e=h(this,Re,so).call(this,n);return{path:t.path+e,query:n}}if(t.name){this.routes.length===0&&h(this,Ln,Ai).call(this);let n=c(this,In).get(t.name);if(!n)return this.inject("log")?.warn(`Router: No route with name "${t.name}"`),{path:"/",query:{}};let e=wi(n.path,t.params||{}),r=t.query||{},i=h(this,Re,so).call(this,r);return{path:e+i,query:r}}return{path:"/",query:{}}},"#resolveLocation"),Re=new WeakSet,so=a(function(t){if(!t||Object.keys(t).length===0)return"";let n=new URLSearchParams;for(let[e,r]of Object.entries(t))r!=null&&n.set(e,r);return"?"+n.toString()},"#buildQueryString"),Ln=new WeakSet,Ai=a(function(){this.routes=h(this,ji,hh).call(this),y(this,Mn,new Map),y(this,In,new Map);for(let t of this.routes)c(this,Mn).set(t.id,t),t.name&&c(this,In).set(t.name,t)},"#loadRoutes"),Ne=new WeakSet,io=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),ji=new WeakSet,hh=a(function(){return Si(t=>h(this,Ne,io).call(this,["nodes",t])).map(t=>({...t,displayTitle:t.title||t.name||t.id}))},"#parseRoutes"),Pi=new WeakSet,dh=a(function(t,n){var u;(u=c(this,ao))==null||u.call(this);let e=n.notFound||t.notFound===!0,r=a(f=>h(this,Mi,mh).call(this,f),"read"),i=uh(()=>{let f={...c(this,Fn),...$i(h(this,Ne,io).call(this,["nodes","app","seo"]),r)},p=$i(h(this,Ne,io).call(this,["nodes",n.id,"route","seo"]),r);return wl({...n,notFound:e,seo:p},t.path,f)});if(c(this,jt)){y(this,Dn,i());return}let l=a(f=>{y(this,Dn,f),h(this,Oi,ph).call(this,document,f)},"apply");l(i()),y(this,ao,Xm(i,l))},"#applyHead"),Oi=new WeakSet,ph=a(function(t,n){let e=n.title||n.siteTitle||null;e&&(t.title=e);let r={...n,title:e};for(let[i,l,u,f,p]of Qm){let m=t.head.querySelector(`${i}[${l}="${u}"]`),g=p(r);if(!g){m?.remove();continue}m||(m=t.createElement(i),m.setAttribute(l,u),t.head.appendChild(m)),m.setAttribute(f,g)}},"#writeHead"),Mi=new WeakSet,mh=a(function(t){let n=this.inject("resolve"),e=this.inject("context")?.ctx;return!n||!e?kl(t):n.dispatch("descriptor",t)(e)},"#readDescriptor"),Ii=new WeakSet,gh=a(function(t){let n=this.routes.find(l=>l.notFound)??this.routes.find(l=>l.home||l.path==="/")??null;if(!n||typeof t!="string")return null;let[e,r=""]=t.split("?"),i=h(this,_n,Ei).call(this,e.startsWith("/")?e:"/"+e);return{pageId:n.id,name:n.name,path:i,params:{},query:h(this,uo,Al).call(this,r),meta:n.meta||{},title:n.displayTitle,notFound:!0}},"#notFoundRoute"),Fi=new WeakSet,yh=a(function(){document.addEventListener("click",t=>{if(t.defaultPrevented)return;let n=t.target.closest("a");if(n&&h(this,Di,xh).call(this,n,t)){t.preventDefault();let e=new URL(n.href);this.navigate(e.pathname+e.search)}}),window.addEventListener("popstate",()=>{c(this,Jt)||this.navigate(window.location.pathname+window.location.search)})},"#setupBrowserIntegration"),Di=new WeakSet,xh=a(function(t,n){if(n.button!==0||n.ctrlKey||n.metaKey||n.shiftKey||t.target&&t.target!=="_self"||t.hasAttribute("download")||t.origin!==window.location.origin||t.hasAttribute("data-external")||t.pathname===window.location.pathname&&t.hash)return!1;let e=h(this,_n,Ei).call(this,t.pathname);return h(this,lo,$l).call(this,e)!==null},"#shouldHandleLink"),lo=new WeakSet,$l=a(function(t){if(!t)return null;let n=h(this,Te,co).call(this,t);if(n)return{pageId:n.id,name:n.name,path:n.path,params:{},query:h(this,Bn,Ci).call(this,t),meta:n.meta||{},title:n.displayTitle};let e=h(this,_n,Ei).call(this,t.split("?")[0]),r=e.startsWith("/")?e.slice(1):e,i=h(this,Te,co).call(this,r);if(i)return{pageId:i.id,name:i.name,path:i.path,params:{},query:h(this,Bn,Ci).call(this,t),meta:i.meta||{},title:i.displayTitle};for(let l of this.routes){let u=h(this,Li,bh).call(this,l.path,e);if(u)return{pageId:l.id,name:l.name,path:e,params:u.params,query:h(this,Bn,Ci).call(this,t),meta:l.meta||{},title:l.displayTitle}}return null},"#matchRoute"),Te=new WeakSet,co=a(function(t){return c(this,Mn).get(t)??null},"#findRouteById"),Li=new WeakSet,bh=a(function(t,n){let e=a(f=>(f.startsWith("/")?f.slice(1):f).split("/").filter(m=>m),"normalizePath"),r=e(t),i=e(n);if(r.length!==i.length)return null;let l={};return r.every((f,p)=>{let m=i[p];return f.startsWith(":")?(l[f.slice(1)]=decodeURIComponent(m),!0):f===m})?{params:l}:null},"#matchPath"),Bn=new WeakSet,Ci=a(function(t){let n=t.indexOf("?");return n===-1?{}:h(this,uo,Al).call(this,t.slice(n+1))},"#queryOf"),uo=new WeakSet,Al=a(function(t){if(!t||t==="?")return{};let n={},e=new URLSearchParams(t.startsWith("?")?t.slice(1):t);for(let[r,i]of e.entries())n[r]=i;return n},"#parseQuery"),fo=new WeakSet,Cl=a(function(t){let n=c(this,On).basePath||"",e=t.startsWith("/")?t:"/"+t;return n?n+e:e},"#buildURL"),_n=new WeakSet,Ei=a(function(t){let n=c(this,On).basePath||"";return n&&t.startsWith(n)?t.slice(n.length)||"/":t},"#stripBasePath"),a(Bi,"Router"),w(Bi,"manifest",{name:"Router",namespace:"router"});var Ri=Bi;import{ServiceProvider as tg}from"@jucie.io/engine";import{injectStore as El,createScope as kh,createChildScope as eg,destroyScope as $h,createComputed as ng,destroy as rg,onDirty as og,Surface as sg}from"@jucie.io/reactive";var vh=new Set;function Sh(s,o,{component:t="A component"}={}){return o??wh(a(()=>{let e=`${t}\0${s}`;vh.has(e)||(vh.add(e),console.warn(`[jucie] ${t} uses ${s}, which isn't available here \u2014 pass what it needs in as a prop.`))},"warn"),{})}a(Sh,"guardRuntime");function wh(s,o=function(){}){let t=null,n=new Proxy(o,{get(e,r){if(r===Symbol.toPrimitive)return i=>i==="number"?NaN:"";if(r==="toString"||r==="valueOf")return()=>"";if(typeof r!="symbol")return s(),typeof o=="function"?n:t??(t=wh(s))},apply(){s()},has:()=>!1,set:()=>!0});return n}a(wh,"hollow");var Ah=new Set(["$env","$isolated"]),Pt,po,je,Gi,Nh,Hi,Th,Pe,ho,Xt,Gn,Ui,jh,mo,Nl,Wi=class Wi extends tg{constructor(){super(...arguments);d(this,Gi);d(this,Hi);d(this,Pe);d(this,Xt);d(this,Ui);d(this,mo);d(this,Pt,null);d(this,po,null);d(this,je,new Map)}getters(t){return{ctx:()=>h(this,Pe,ho).call(this,t),snapshot:()=>({stores:h(this,Gi,Nh).call(this,t),provided:h(this,Hi,Th).call(this)}),contexts:()=>t("registry").getContexts().map(([n,{kind:e,owner:r}])=>({id:n,kind:e,owner:r}))}}actions(t){return{componentContext:(n,{library:e=null,name:r,instanceId:i=null,ctx:l=null})=>{let u=t("registry"),f=`${e??""}:${r}`,p=u.getContext(n.rid);if(p&&p.parent===l&&p.component===f)return p;p&&h(this,Xt,Gn).call(this,u,n.rid);let m=h(this,Ui,jh).call(this,t,n,{library:e,name:r,instanceId:i,ctx:l,component:f});return u.setContext(n.rid,m),m},childContext:(n,e,r,i)=>{let l=t("registry"),u=l.getContext(n);if(u&&u.parent===r)return u.bind(i),u.ctx;u&&h(this,Xt,Gn).call(this,l,n);let[f,p]=eg(r,i);return l.setContext(n,{kind:"child",ctx:f,owner:e,parent:r,bind:p,dispose:()=>$h(f)}),f},onIsolatedEmit:(n,e)=>{let r=h(this,Pe,ho).call(this,t);return"$isolated"in r||r.$provide("$isolated",{emit:(i,l,u)=>c(this,je).get(u)?.(i,l)}),c(this,je).set(n,e),()=>{c(this,je).get(n)===e&&c(this,je).delete(n)}},releaseContext:n=>h(this,Xt,Gn).call(this,t("registry"),n),releaseContexts:n=>{let e=t("registry");for(let r of e.getContextIds(n))h(this,Xt,Gn).call(this,e,r)},restore:n=>{for(let[r,i]of Object.entries(n?.stores??{})){let l=El(r);if(l)for(let[u,f]of Object.entries(i))Eh(l,u)&&(l[u]=f)}let e=h(this,Pe,ho).call(this,t);for(let[r,i]of Object.entries(n?.provided??{}))r in e||e.$provide(r,i)}}}};Pt=new WeakMap,po=new WeakMap,je=new WeakMap,Gi=new WeakSet,Nh=a(function(t){let n={};for(let e of t("modules")?.getCurrentStoreNames?.()??[]){let r=El(e);if(!r)continue;let i={};for(let l of Object.keys(r)){if(!Eh(r,l))continue;let u=Rh(r[l]);u!==void 0&&(i[l]=u)}n[e]=i}return n},"#snapshotStores"),Hi=new WeakSet,Th=a(function(){let t={};for(let n of sg.from(c(this,Pt))?.provided??[]){if(Ah.has(n))continue;let e=Rh(c(this,Pt)[n]);e!==void 0&&(t[n]=e)}return t},"#snapshotProvided"),Pe=new WeakSet,ho=a(function(t){return c(this,Pt)||([et(this,Pt)._,et(this,po)._]=kh(h(this,mo,Nl).call(this,t)),c(this,Pt).$provide("$env",{isServer:!!this.config?.server}),t("modules")?.onStoresChange?.(()=>c(this,po).call(this,h(this,mo,Nl).call(this,t)))),c(this,Pt)},"#ensureCtx"),Xt=new WeakSet,Gn=a(function(t,n){let e=t.getContext(n);if(e){t.deleteContext(n);for(let[r,i]of t.getContexts())i.parent===e.ctx&&h(this,Xt,Gn).call(this,t,r);e.dispose()}},"#release"),Ui=new WeakSet,jh=a(function(t,n,{library:e,name:r,instanceId:i,ctx:l,component:u}){let f=t("registry"),p=a((...O)=>t("resolve").dispatch(...O),"dispatch"),m=a((O,ie)=>this.config?.trace?.(O,ie),"trace"),g=a(()=>f.describeComponent(e,r),"contract"),v=a(()=>i?p("computedNode",i)():null,"instanceNode"),b=g()?.displayName??r,x=h(this,Pe,ho).call(this,t),S={};for(let O of cg)S[O]=Sh(O,x[O],{component:b});let k=new Map,E=a(()=>{let O=g(),ie=v(),Ct={...S},ce=new Map;for(let st of O?.propNames??[]){let Et=Rl(ie?.props,st),ae=Rl(O?.props,st)?.default??null,dr=JSON.stringify([Et,ae]),pr=k.get(st);if(!pr||pr.signature!==dr){let Iu=Et?p("descriptor",Et):null;pr={signature:dr,computed:ng(()=>{let Fu=Iu?Iu(l):void 0;return Fu!==void 0?Fu:ae})}}ce.set(st,pr),Ct[st]=pr.computed}for(let st of O?.eventNames??[])Ct[st]=(...Et)=>{let ae=Rl(v()?.events,st);if(!ae)return;let dr=p("descriptor",ae)(l);return typeof dr=="function"?dr(...Et):void 0};return{values:Ct,next:ce}},"valuesFor"),I=a((O,ie)=>{for(let[Ct,ce]of O)ie.get(Ct)!==ce&&rg(ce.computed)},"retire"),P=E();k=P.next;let[A,R]=kh(P.values);m("scope:build",{instance:i??r});let T=a(()=>{let O=Object.keys(A).join("|"),{values:ie,next:Ct}=E(),ce=[...Ct].filter(([Et,ae])=>k.get(Et)!==ae).map(([Et])=>Et);R(ie),I(k,Ct),k=Ct;let st=Object.keys(A).join("|")!==O;m("scope:rebind",{instance:i??r,changed:ce,reshaped:st}),st&&n.markAsDirty()},"rebind"),_=f.definitionIdOf(e,r),D=[i,_].filter(Boolean).map(O=>og(p("computedNode",O),T)),hs={};for(let O of g()?.propNames??[])Object.defineProperty(hs,O,{get:()=>A[O],enumerable:!0});let Lp=a(()=>{D.forEach(O=>O()),I(k,new Map),k=new Map,$h(A)},"dispose");return{kind:"component",ctx:A,props:hs,owner:n.rid,parent:l,component:u,dispose:Lp}},"#buildComponent"),mo=new WeakSet,Nl=a(function(t){let n=t("modules"),e={$router:El("$router"),$animator:t("animator")};for(let r of n?.getCurrentStoreNames?.()??[]){let i=`$${r}`;if(i in e||Ah.has(i)){ig(r,i);continue}let l=n.getStore(r);l&&(e[i]=l())}return e},"#rootValues"),a(Wi,"Context"),w(Wi,"manifest",{name:"Context",namespace:"context"});var _i=Wi,Ch=new Set;function ig(s,o){Ch.has(s)||(Ch.add(s),console.warn(`[Context] Store "${s}" is skipped: ${o} is reserved on the root ctx. Rename the store.`))}a(ig,"warnStoreName");var cg=["$router","$animator"];function Rl(s,o){return Array.isArray(s)?s.find(t=>t?.name===o)??null:null}a(Rl,"findNamed");function Eh(s,o){return typeof Object.getOwnPropertyDescriptor(s,o)?.set=="function"}a(Eh,"isWritable");function Rh(s){if(!(s===void 0||typeof s=="function"))try{return JSON.parse(JSON.stringify(s))}catch{return}}a(Rh,"jsonValue");import{isStateKey as ag,isCssKey as lg,isIntentKey as ug,normalizeStyle as fg}from"@jucie.io/composed-style";function Ph(s,o,t,n){let e={};for(let{min:r,block:i}of fg(s.style).entries){if(r>0&&!(r<=o))break;for(let l in i)n(l)&&(e[l]=i[l]);for(let l of t){let u=ag(l)?l:`:${l}`;for(let[f,p]of Object.entries(i[u]??{}))n(f)&&(e[f]=p)}}return e}a(Ph,"cascade");function Oh(s,o,t=[]){return Ph(s,o,t,lg)}a(Oh,"resolveAuthoredStyles");function Mh(s,o,t=[]){return Ph(s,o,t,ug)}a(Mh,"resolveAuthoredIntents");import{isStateKey as hg,isCssKey as dg,isIntentKey as pg,baseOf as mg}from"@jucie.io/composed-style";var Ih="default";function Tl(s){if(s===Ih||s==null)return Ih;let o=String(s);return o.startsWith("@")?o:`@${o}`}a(Tl,"toBpKey");function gg(s){return typeof s!="string"||hg(s)?s:`:${s}`}a(gg,"normalizeStateKey");function Fh(s,o,t){let n=Tl(o),e=n==="default"?mg(s?.style):s?.style?.[n];if(!e||typeof e!="object")return null;for(let r of t??[])if(e=e?.[gg(r)]??e?.[r],!e||typeof e!="object")return null;return e}a(Fh,"exactBucket");function Dh(s,o="default",t=[]){let n=Fh(s,o,t),e={};for(let r in n??{})pg(r)&&(e[r]=n[r]);return e}a(Dh,"resolveExactAuthoredIntents");function Lh(s,o="default",t=[]){let n=Fh(s,o,t),e={};for(let r in n??{})dg(r)&&(e[r]=n[r]);return e}a(Lh,"resolveExactAuthoredStyles");import{contextAt as Wh,contextKey as Kh,sourceOf as Sg,anchorOf as qh,placementOf as wg}from"@jucie.io/composed-style";function jl(s=[]){let o=a((t,n)=>s.includes(t)&&s.includes(n)?"both":s.includes(n)?"end":"start","axis");return{$anchorX:o("left","right"),$anchorY:o("top","bottom")}}a(jl,"anchorIntents");function Bh(s){if(typeof Element>"u")return null;let o=s?.$el;if(o instanceof Element)return o;let t=o?.$el;return t instanceof Element?t:null}a(Bh,"resolvePuppetEl");function Pl(s){let o=2166136261;for(let t=0;t<s.length;t++)o^=s.charCodeAt(t),o=Math.imul(o,16777619);return o>>>0}a(Pl,"hashRid");var yg=new Set(["rect","offset","parentRid","nextRid","children"]),_h=a((s,o)=>s.length?s[Math.min(s.length-1,Math.floor(s.length*o))]:0,"percentile"),at=a((s,o=2)=>Number(s.toFixed(o)),"fixed");function Gh(s){let o,t,n=!1,e=a(()=>{t=new Float32Array(512),o={since:s(),wakes:0,heartbeats:0,fullPasses:0,fastPasses:0,slices:0,sliceTotalMs:0,sliceMaxMs:0,slicesOverBudget:0,visited:0,dataBuilds:0,dataMs:0,noopRebuilds:0,geometryPatches:0,dataPatches:0,wholePatches:0,removed:0,messages:0,bytes:0,bytesMax:0,listenerMs:0}},"reset");return e(),{reset:e,count:(r,i=1)=>{o[r]+=i},get profiling(){return n},set profiling(r){n=!!r},slice(r,i){t[o.slices%512]=r,o.slices++,o.sliceTotalMs+=r,r>o.sliceMaxMs&&(o.sliceMaxMs=r),i&&o.slicesOverBudget++},message(r,i,l){o.messages++,o.removed+=i.length,o.listenerMs+=l;for(let u in r){let f=r[u];if(f.id!==void 0){o.wholePatches++;continue}let p=!1;for(let m in f)if(!yg.has(m)){p=!0;break}p?o.dataPatches++:o.geometryPatches++}if(n){let u=JSON.stringify(r).length;o.bytes+=u,u>o.bytesMax&&(o.bytesMax=u)}},snapshot(r){let i=s()-o.since,l=Array.from(t.subarray(0,Math.min(o.slices,512))).sort((p,m)=>p-m),u=o.fullPasses+o.fastPasses,f=i/1e3||1;return{"window (s)":at(f,1),"nodes in graph":r,"passes (full / fast)":`${o.fullPasses} / ${o.fastPasses}`,"passes per second":at(u/f,1),"wakes / heartbeats":`${o.wakes} / ${o.heartbeats}`,"slices (frames worked)":o.slices,"slice ms avg":at(o.slices?o.sliceTotalMs/o.slices:0),"slice ms p50":at(_h(l,.5)),"slice ms p95":at(_h(l,.95)),"slice ms max":at(o.sliceMaxMs),"slices that hit the budget":o.slicesOverBudget,"main-thread share (%)":at(o.sliceTotalMs/(i||1)*100,3),"nodes measured":o.visited,"\xB5s per node measured":at(o.visited?(o.sliceTotalMs-o.dataMs-o.listenerMs)/o.visited*1e3:0,1),"data rebuilds":o.dataBuilds,"ms per data rebuild":at(o.dataBuilds?o.dataMs/o.dataBuilds:0,3),"rebuilds that changed nothing":o.noopRebuilds,"messages sent":o.messages,"messages per second":at(o.messages/f,2),"patches (geometry / data / whole)":`${o.geometryPatches} / ${o.dataPatches} / ${o.wholePatches}`,"rids removed":o.removed,"listener ms total (postMessage)":at(o.listenerMs),"bytes total":n?o.bytes:"profiling off","bytes per message avg":n?Math.round(o.messages?o.bytes/o.messages:0):"profiling off","bytes largest message":n?o.bytesMax:"profiling off"}}}}a(Gh,"createNodeGraphStats");import{ServiceProvider as kg}from"@jucie.io/engine";import{Scope as zh}from"@jucie.io/reactive";var Ol=["flex-direction","flex-wrap","justify-content","align-items","align-content","gap","top","right","bottom","left","inset","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","border-radius","position","display","width","height","max-width","max-height","min-width","min-height","border-style","border-width","border-color","border-top-style","border-top-width","border-top-color","border-right-style","border-right-width","border-right-color","border-bottom-style","border-bottom-width","border-bottom-color","border-left-style","border-left-width","border-left-color","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","background-color","background-image","background-repeat","background-size","background-attachment","color","font-family","font-size","font-weight","font-style","font-variant","line-height","text-align","text-decoration","text-transform","text-overflow","letter-spacing","white-space","overflow","overflow-x","overflow-y","scroll-behavior","cursor","pointer-events","z-index","opacity","transform","transition","filter","box-shadow","grid","object-fit","align-self","flex-grow","flex-shrink","flex-basis","order","grid-column","grid-row"],KC=new Set(Ol);function Hn(s,o,t){let n=o;for(let e of t)if(Array.isArray(n)?n=/^\d+$/.test(e)?n[0]:void 0:typeof n=="string"?n=s.types?.[n]?.[e]:n&&typeof n=="object"?n=n["*"]??n[e]:n=void 0,n===void 0)return;return n}a(Hn,"schemaTypeAt");function xg(s,o){let t=Array.from({length:s.length+1},(n,e)=>[e,...Array(o.length).fill(0)]);for(let n=1;n<=o.length;n++)t[0][n]=n;for(let n=1;n<=s.length;n++)for(let e=1;e<=o.length;e++){let r=s[n-1]===o[e-1]?0:1;t[n][e]=Math.min(t[n-1][e]+1,t[n][e-1]+1,t[n-1][e-1]+r),n>1&&e>1&&s[n-1]===o[e-2]&&s[n-2]===o[e-1]&&(t[n][e]=Math.min(t[n][e],t[n-2][e-2]+1))}return t[s.length][o.length]}a(xg,"editDistance");function bg(s,o){let t=Math.max(1,Math.floor(s.length/3)),n=null,e=1/0;for(let r of o){if(r===s)continue;let i=xg(s.toLowerCase(),r.toLowerCase());i<=t&&i<e&&(n=r,e=i)}return n}a(bg,"closestName");var Hh=a((s,o)=>o.every((t,n)=>s[n]===t),"startsWith");function vg(s,o){return typeof o=="string"?Object.keys(s.types?.[o]??{}):o&&typeof o=="object"&&!Array.isArray(o)&&o["*"]===void 0?Object.keys(o):[]}a(vg,"fieldNames");function Uh(s,{rootTypes:o,listed:t}){if(!s?.length)return{state:"unverified",reason:"No path chosen"};let[n,...e]=s,r=a(g=>{let v=o.get(g[0]);if(v&&Hn(v.schema,v.type,g.slice(1))!==void 0)return!0;let b=g.join(".");return t.some(x=>x.dot===b)},"isKnown");if(r(s))return{state:"known"};let i=a((g,v)=>{if(g>=s.length)return;let b=bg(s[g],v);if(!b)return;let x=[...s.slice(0,g),b,...s.slice(g+1)];return r(x)?x:void 0},"suggest"),l=o.get(n);if(l)for(let g=0;g<e.length;g++){if(Hn(l.schema,l.type,e.slice(0,g+1))!==void 0)continue;let v=Hn(l.schema,l.type,e.slice(0,g));return{state:"unverified",reason:`The data shape of ${[n,...e.slice(0,g)].join(".")} doesn\u2019t list \u201C${e[g]}\u201D`,suggestion:i(g+1,vg(l.schema,v))}}let u=new Set([...o.keys(),...t.map(g=>g.path[0])]);if(!u.has(n))return{state:"unverified",reason:`${n} isn\u2019t defined here; it may come from where this is used`,suggestion:i(0,[...u])};let f=a(g=>t.some(v=>Hh(v.path,s.slice(0,g))),"reaches"),p=1;for(;p<s.length&&f(p+1);)p+=1;let m=t.filter(g=>g.path.length===p+1&&Hh(g.path,s.slice(0,p))).map(g=>g.path[p]);return{state:"unverified",reason:"Nothing describes this path",suggestion:i(p,m)}}a(Uh,"checkBindingPath");function $g(s){let o=s.descriptor,t=o?o.mode==="binding"?o.binding:null:s.binding;return t?.length?Array.isArray(t)?t:String(t).split("."):null}a($g,"repeatBinding");function Ag(s){if(Array.isArray(s))return s[0];if(s&&typeof s=="object"&&s["*"]!==void 0)return s["*"]}a(Ag,"itemType");var Cg=1,Vh=1,Eg=2,Ml=3,Jh=500,Rg=4,Ng=2,Tg=3,jg=Object.freeze({x:0,y:0,left:0,top:0,right:0,bottom:0,width:0,height:0}),Pg=["width","height","left","top","right","bottom"],Og=["node","name","tagName","containerRid","instanceRid","targetable","readOnly","editable","root","temp"],Mg=["styles","authoredStyles","inheritedStyles","authoredIntents","inheritedIntents","layoutIntent","parentLayoutIntent","sources","placement"],lt=a(()=>typeof performance<"u"?performance.now():Date.now(),"now"),Un=a(s=>Math.round(s*100)/100,"round"),F,Oe,Me,Ie,Fe,qn,bt,Ot,zn,Zt,M,z,vt,De,j,yo,Mt,ft,ht,Le,Qt,xo,H,bo,Vn,te,Zi,Yh,Qi,Xh,tc,Zh,Z,ut,ee,Wn,vo,Il,ec,Qh,nc,td,rc,ed,So,Fl,wo,Dl,ko,Ll,oc,nd,sc,rd,ic,od,cc,sd,ac,id,Be,go,lc,cd,uc,ad,fc,ld,hc,ud,dc,fd,$o,Bl,pc,hd,mc,dd,Jn,Ki,Yn,qi,gc,pd,Xn,zi,Ao,_l,yc,md,xc,gd,bc,yd,vc,xd,Zn,Vi,Qn,Ji,Sc,bd,wc,vd,kc,Sd,$c,wd,Co,Gl,Ac,kd,Cc,$d,tr,Yi,ne,Kn,Ec,Ad,Rc,Cd,Nc,Ed,Tc,Rd,Eo,Hl,jc,Nd,Ro,Ul,No,Wl,To,Kl,Pc,Td,Oc,jd,jo,ql,Mc=class Mc extends kg{constructor(){super(...arguments);d(this,Zi);d(this,Qi);d(this,tc);d(this,Z);d(this,ee);d(this,vo);d(this,ec);d(this,nc);d(this,rc);d(this,So);d(this,wo);d(this,ko);d(this,oc);d(this,sc);d(this,ic);d(this,cc);d(this,ac);d(this,Be);d(this,lc);d(this,uc);d(this,fc);d(this,hc);d(this,dc);d(this,$o);d(this,pc);d(this,mc);d(this,Jn);d(this,Yn);d(this,gc);d(this,Xn);d(this,Ao);d(this,yc);d(this,xc);d(this,bc);d(this,vc);d(this,Zn);d(this,Qn);d(this,Sc);d(this,wc);d(this,kc);d(this,$c);d(this,Co);d(this,Ac);d(this,Cc);d(this,tr);d(this,ne);d(this,Ec);d(this,Rc);d(this,Nc);d(this,Tc);d(this,Eo);d(this,jc);d(this,Ro);d(this,No);d(this,To);d(this,Pc);d(this,Oc);d(this,jo);d(this,F,{});d(this,Oe,!1);d(this,Me,!1);d(this,Ie,!1);d(this,Fe,new Set);d(this,qn,new Set);d(this,bt,new Set);d(this,Ot,null);d(this,zn,null);d(this,Zt,null);d(this,M,new Set);d(this,z,new Map);d(this,vt,new Map);d(this,De,!1);d(this,j,null);d(this,yo,null);d(this,Mt,new Set);d(this,ft,null);d(this,ht,null);d(this,Le,0);d(this,Qt,!0);d(this,xo,0);d(this,H,Gh(lt));d(this,bo,0);d(this,Vn,0);d(this,te,0)}initialize(){let t=this.inject("relay");t.on("scene:change",(n,e,r)=>h(this,tc,Zh).call(this,n,e,r)),t.on("schema:change",()=>h(this,Zi,Yh).call(this))}actions(t){let n=t("registry");return{addListener:e=>(c(this,Fe).add(e),()=>c(this,Fe).delete(e)),removeListener:e=>{c(this,Fe).delete(e)},addRenderListener:e=>(c(this,qn).add(e),()=>c(this,qn).delete(e)),bindingStatus:(e,r)=>h(this,jc,Nd).call(this,e,r),pauseNodeGraph:()=>{y(this,Me,!0),h(this,vo,Il).call(this),y(this,j,null)},resumeNodeGraph:()=>{y(this,Me,!1),h(this,Z,ut).call(this)},pauseMeasuring:()=>{y(this,Ie,!0),y(this,j,null),h(this,Z,ut).call(this)},resumeMeasuring:()=>{y(this,Ie,!1),y(this,j,null),h(this,Z,ut).call(this)},startNodeGraph:()=>{y(this,Oe,!0),y(this,Qt,!0),h(this,Z,ut).call(this)},disableNodeGraph:()=>{y(this,Oe,!1),h(this,vo,Il).call(this),y(this,j,null)},forceNodeGraph:()=>{y(this,De,!0),y(this,j,null),h(this,Z,ut).call(this)},requestRids:(e=[],{geometryOnly:r=!1}={})=>{for(let i of e)r&&c(this,z).get(i)==="whole"||c(this,z).set(i,r?"geometry":"whole");h(this,Z,ut).call(this)},isBusy:()=>c(this,ft)!==null||c(this,j)!==null,getManifest:()=>({rids:Object.keys(c(this,F)),digest:h(this,Yn,qi).call(this)}),getDigest:()=>h(this,Yn,qi).call(this),getStats:()=>c(this,H).snapshot(Object.keys(c(this,F)).length),resetStats:()=>c(this,H).reset(),setProfiling:e=>{c(this,H).profiling=e},setSelectedRids:e=>{if(c(this,bt).forEach(r=>c(this,M).add(r)),y(this,bt,new Set(e)),e.forEach(r=>c(this,M).add(r)),e.length>0){let r=n.getPuppet(e[0]);y(this,Zt,r?h(this,Qn,Ji).call(this,r.actor):null)}else y(this,Zt,null);h(this,Z,ut).call(this)},getSelectedRids:()=>[...c(this,bt)],setFocalRid:e=>{let r=c(this,Ot);if(y(this,Ot,e??null),r&&c(this,M).add(r),e){c(this,M).add(e);let i=n.getPuppet(e);i&&y(this,Zt,h(this,Qn,Ji).call(this,i.actor))}h(this,Z,ut).call(this)},getFocalRid:()=>c(this,Ot),setEditingRid:e=>{let r=c(this,zn);y(this,zn,e??null),r&&c(this,M).add(r),e&&c(this,M).add(e),h(this,Z,ut).call(this)},getEditTarget:e=>{let r=h(this,Zn,Vi).call(this,n.getActor(e));return{tier:r?.node[".activeBreakpoint"]??null,width:r?.node.bounds.width??0}},getNodeGraph:()=>c(this,F),measureContentHeights:(e={})=>{let r={};for(let[i,l]of Object.entries(e)){let u=h(this,ne,Kn).call(this,n.getPuppet(i));u&&(r[i]=h(this,Qi,Xh).call(this,u,l))}return r}}}};F=new WeakMap,Oe=new WeakMap,Me=new WeakMap,Ie=new WeakMap,Fe=new WeakMap,qn=new WeakMap,bt=new WeakMap,Ot=new WeakMap,zn=new WeakMap,Zt=new WeakMap,M=new WeakMap,z=new WeakMap,vt=new WeakMap,De=new WeakMap,j=new WeakMap,yo=new WeakMap,Mt=new WeakMap,ft=new WeakMap,ht=new WeakMap,Le=new WeakMap,Qt=new WeakMap,xo=new WeakMap,H=new WeakMap,bo=new WeakMap,Vn=new WeakMap,te=new WeakMap,Zi=new WeakSet,Yh=a(function(){let t=a(n=>n?.some(e=>e.descriptor?.mode==="binding"),"hasBindingPill");for(let n of this.inject("registry").getPuppets()){let e=n.actor?.node,r=Array.isArray(e?.slots)?e.slots:[];(t(qt(e))||r.some(i=>t(qt(i))))&&n.markAsDirty?.()}},"#rerenderPills"),Qi=new WeakSet,Xh=a(function(t,n){let{style:e}=t,r=["width","height"].map(u=>[u,e.getPropertyValue(u),e.getPropertyPriority(u)]);n>0&&e.setProperty("width",`${n}px`,"important"),e.setProperty("height","auto","important");let i=h(this,Xn,zi).call(this,t).top,l=i+t.offsetHeight;for(let u of t.querySelectorAll("*")){let f=h(this,Xn,zi).call(this,u);(f.width>0||f.height>0)&&(l=Math.max(l,f.bottom))}for(let[u,f,p]of r)f?e.setProperty(u,f,p):e.removeProperty(u);return Math.ceil(l-i)},"#contentHeight"),tc=new WeakSet,Zh=a(function(t,n,e){t.forEach(r=>c(this,M).add(r)),n.forEach(r=>c(this,M).add(r)),e.forEach(r=>c(this,vt).set(r,Tg)),e.length>0&&y(this,Qt,!0),c(this,qn).forEach(r=>{try{r(t,n,e)}catch(i){console.error("Error in node graph render listener:",i)}}),h(this,Z,ut).call(this)},"#onChange"),Z=new WeakSet,ut=a(function(){!c(this,Oe)||c(this,Me)||(c(this,ft)===null&&c(this,H).count("wakes"),y(this,Le,0),c(this,ht)!==null&&(clearTimeout(c(this,ht)),y(this,ht,null)),h(this,ee,Wn).call(this))},"#wake"),ee=new WeakSet,Wn=a(function(){c(this,ft)!==null||typeof requestAnimationFrame>"u"||y(this,ft,requestAnimationFrame(()=>{y(this,ft,null),h(this,ec,Qh).call(this)}))},"#schedule"),vo=new WeakSet,Il=a(function(){c(this,ft)!==null&&typeof cancelAnimationFrame<"u"&&cancelAnimationFrame(c(this,ft)),y(this,ft,null),c(this,ht)!==null&&clearTimeout(c(this,ht)),y(this,ht,null)},"#cancelLoop"),ec=new WeakSet,Qh=a(function(){if(!c(this,Oe)||c(this,Me)||typeof document>"u")return;let t={},n=[],e=!0,r=lt();try{e=c(this,Ie)?h(this,rc,ed).call(this,t,n):h(this,nc,td).call(this,t,n)}catch(u){console.error("Error measuring node graph:",u)}if(h(this,mc,dd).call(this,t,n),c(this,H).slice(lt()-r,!e),c(this,Ie)){y(this,j,null),c(this,vt).size>0&&h(this,ee,Wn).call(this);return}if(!e){h(this,ee,Wn).call(this);return}let i=c(this,j)?.changed??!1;if(y(this,j,null),y(this,Le,i||c(this,vt).size>0?0:c(this,Le)+1),c(this,Le)<Ng){h(this,ee,Wn).call(this);return}let l=this.config?.nodeGraph?.heartbeatMs??Jh;y(this,ht,setTimeout(()=>{y(this,ht,null),y(this,Qt,!0),c(this,H).count("heartbeats"),h(this,ee,Wn).call(this)},l))},"#tick"),nc=new WeakSet,td=a(function(t,n){let e=this.inject("registry"),r=this.config?.nodeGraph?.budgetMs??Rg,i=this.config?.nodeGraph?.maxNodesPerSlice??1/0,l=lt();c(this,j)||h(this,oc,nd).call(this);let u=c(this,j);h(this,So,Fl).call(this,e,n),h(this,wo,Dl).call(this,e,n);for(let p of h(this,ac,id).call(this)){if(!(p in c(this,F))||t[p])continue;let m=e.getPuppet(p),g=m?h(this,ne,Kn).call(this,m):null;g?.isConnected&&h(this,Be,go).call(this,m,g,t)}let f=0;for(;;){let p=c(this,yo).nextNode();if(!p)break;let m=e.getPuppet(p.dataset.rid);if(c(this,Mt).has(m.rid)||(c(this,Mt).add(m.rid),t[m.rid]))continue;let g=h(this,ne,Kn).call(this,m);if(h(this,Be,go).call(this,m,g?.isConnected?g:p,t),f++,f>=i||lt()-l>=r)return c(this,H).count("visited",f),!1}return c(this,H).count("visited",f),c(this,H).count(u.full?"fullPasses":"fastPasses"),u.full&&h(this,sc,rd).call(this,t,n),!0},"#runSlice"),rc=new WeakSet,ed=a(function(t,n){let e=this.inject("registry");y(this,j,{full:!1,forceAll:!1,keep:new Set,changed:!1,tolerance:h(this,ko,Ll).call(this)}),h(this,So,Fl).call(this,e,n),h(this,wo,Dl).call(this,e,n);let r=[...c(this,z).keys()];for(let i of c(this,M))i in c(this,F)||r.push(i);for(let i of r){if(t[i])continue;let l=e.getPuppet(i);if(!l||h(this,tr,Yi).call(this,l))continue;let u=h(this,ne,Kn).call(this,l);u?.isConnected&&h(this,Be,go).call(this,l,u,t)}return!0},"#runStructureSlice"),So=new WeakSet,Fl=a(function(t,n){for(let[e,r]of c(this,vt))t.getPuppet(e)?r<=1?(c(this,M).add(e),c(this,vt).delete(e)):c(this,vt).set(e,r-1):(h(this,Jn,Ki).call(this,e,n),c(this,vt).delete(e))},"#sweepUnmounted"),wo=new WeakSet,Dl=a(function(t,n){for(let e of c(this,z).keys())t.getPuppet(e)||(c(this,z).delete(e),n.includes(e)||(e in c(this,F)?h(this,Jn,Ki).call(this,e,n):n.push(e)))},"#answerRequestsForGoneRids"),ko=new WeakSet,Ll=a(function(){let t=this.inject("viewport")?.get?.();return Math.max(.02,.1/(t?.scale||1))},"#measureTolerance"),oc=new WeakSet,nd=a(function(){let t=this.inject("registry"),n=c(this,Qt)||c(this,De)||lt()-c(this,xo)>=(this.config?.nodeGraph?.heartbeatMs??Jh),e=new Set;if(!n){c(this,Zt)&&e.add(c(this,Zt));for(let u of[c(this,M),c(this,z).keys()])for(let f of u){let p=t.getPuppet(f),m=p?h(this,Qn,Ji).call(this,p.actor):null;m&&e.add(m)}}let r=this.inject("viewport")?.get?.(),i=h(this,ko,Ll).call(this);y(this,j,{full:n,forceAll:c(this,De),keep:e,changed:!1,tolerance:i}),y(this,Qt,!1),y(this,De,!1),c(this,Mt).clear();let l=n?null:h(this,ic,od).call(this,r);y(this,yo,document.createTreeWalker(document.body,Cg,{acceptNode:u=>{let f=u.dataset?.rid;if(!f)return Ml;let p=t.getPuppet(f);if(!p)return Ml;let m=p.actor?.node;return m?.type==="root"?Vh:h(this,tr,Yi).call(this,p)?Ml:l&&m?.bounds&&!e.has(f)&&!h(this,cc,sd).call(this,m.bounds,l)?Eg:Vh}}))},"#beginPass"),sc=new WeakSet,rd=a(function(t,n){let e=this.inject("registry");for(let r of e.getPuppets()){if(c(this,Mt).has(r.rid))continue;let i=r.actor?.node?.type==="root";if(!i&&h(this,tr,Yi).call(this,r))continue;let l=h(this,ne,Kn).call(this,r);!l?.isConnected&&!i||(c(this,Mt).add(r.rid),h(this,Be,go).call(this,r,l?.isConnected?l:null,t))}for(let r of Object.keys(c(this,F)))c(this,Mt).has(r)||h(this,Jn,Ki).call(this,r,n);c(this,M).clear();for(let r of c(this,z).keys())n.includes(r)||n.push(r);c(this,z).clear(),y(this,xo,lt())},"#finishFullPass"),ic=new WeakSet,od=a(function(t){if(typeof window>"u"||!window.innerWidth||!window.innerHeight)return null;let n=t?.scale||1,e=t?.scroll?.x??0,r=t?.scroll?.y??0,i=window.innerWidth/n,l=window.innerHeight/n,u=-e/n-i/2,f=-r/n-l/2;return{left:u,top:f,right:u+i*2,bottom:f+l*2}},"#visibleDocumentRect"),cc=new WeakSet,sd=a(function(t,n){return t.x+t.width>n.left&&t.x<n.right&&t.y+t.height>n.top&&t.y<n.bottom},"#intersects"),ac=new WeakSet,id=a(function(){return!c(this,Ot)||c(this,bt).has(c(this,Ot))?c(this,bt):[...c(this,bt),c(this,Ot)]},"#priorityRids"),Be=new WeakSet,go=a(function(t,n,e){let{rid:r,actor:i}=t,l=c(this,F)[r],u=h(this,gc,pd).call(this,t,n,l),f=c(this,z).get(r);c(this,z).delete(r);let p=!l||c(this,j).forceAll||c(this,M).has(r)||f==="whole"||l.node!==i.node,m=f?u:l?h(this,yc,md).call(this,l,u):u;if(!p){m&&(e[r]={...e[r],...m});return}let g=lt(),v=h(this,Rc,Cd).call(this,t,n,u.parentRid);if(c(this,H).count("dataBuilds"),c(this,H).count("dataMs",lt()-g),l&&h(this,pc,hd).call(this,l,v),c(this,M).delete(r),!l||f==="whole"){e[r]={...v,...u};return}let b=h(this,lc,cd).call(this,l,v);b||m?e[r]={...e[r],...b,...m}:c(this,H).count("noopRebuilds")},"#process"),lc=new WeakSet,cd=a(function(t,n){let e=null;for(let r of Og)t[r]!==n[r]&&((e??(e={}))[r]=n[r]);for(let r of Mg)h(this,uc,ad).call(this,t[r],n[r])||((e??(e={}))[r]=n[r]);return h(this,fc,ld).call(this,t.contextPaths,n.contextPaths)||((e??(e={})).contextPaths=n.contextPaths),h(this,hc,ud).call(this,t.componentMeta,n.componentMeta)||((e??(e={})).componentMeta=n.componentMeta),e},"#dataPatch"),uc=new WeakSet,ad=a(function(t,n){if(t===n)return!0;if(!t||!n)return!1;let e=0;for(let r in t){if(t[r]!==n[r])return!1;e++}for(let r in n)e--;return e===0},"#sameMap"),fc=new WeakSet,ld=a(function(t,n){if(t===n)return!0;if(!t||!n||t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!==n[e]&&(t[e]?.dot!==n[e]?.dot||t[e]?.hint!==n[e]?.hint))return!1;return!0},"#samePaths"),hc=new WeakSet,ud=a(function(t,n){return t===n?!0:!t||!n?!1:t.displayName===n.displayName&&t.library===n.library&&t.tagName===n.tagName&&h(this,dc,fd).call(this,t.props,n.props)&&h(this,$o,Bl).call(this,t.emits,n.emits)&&h(this,$o,Bl).call(this,t.slots,n.slots)},"#sameMeta"),dc=new WeakSet,fd=a(function(t=[],n=[]){if(t===n)return!0;if(t.length!==n.length)return!1;let e=a(r=>JSON.stringify([r?.name,r?.type,r?.default,r?.options]),"shape");return t.every((r,i)=>e(r)===e(n[i]))},"#sameProps"),$o=new WeakSet,Bl=a(function(t=[],n=[]){if(t===n)return!0;if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!==n[e]&&(t[e]?.name??t[e])!==(n[e]?.name??n[e]))return!1;return!0},"#sameNamed"),pc=new WeakSet,hd=a(function(t,n){let e=t.node??{},r=n.node??{};if(Kh(Nt(e))!==Kh(Nt(r))){let i=[...t.children??[]];for(;i.length>0;){let l=i.pop();c(this,M).add(l),c(this,F)[l]?.node?.type==="slot"&&i.push(...c(this,F)[l].children??[])}}if(r.bounds&&(e[".activeBreakpoint"]!==r[".activeBreakpoint"]||e.bounds?.width!==r.bounds.width)){let i=[...t.children??[]];for(;i.length>0;){let l=i.pop();c(this,M).add(l);let u=c(this,F)[l]?.children;u&&i.push(...u)}}},"#invalidateDependants"),mc=new WeakSet,dd=a(function(t,n){let e=Object.keys(t);if(e.length===0&&n.length===0)return;for(let l of e)l in c(this,F)||(et(this,Vn)._++,y(this,te,(c(this,te)^Pl(l))>>>0)),c(this,F)[l]={...c(this,F)[l],...t[l]};c(this,j)&&(c(this,j).changed=!0),et(this,bo)._++;let r=h(this,Yn,qi).call(this),i=lt();c(this,Fe).forEach(l=>{try{l(t,n,!1,r)}catch(u){console.error("Error in node graph listener:",u)}}),c(this,H).message(t,n,lt()-i)},"#emit"),Jn=new WeakSet,Ki=a(function(t,n){t in c(this,F)&&(delete c(this,F)[t],et(this,Vn)._--,y(this,te,(c(this,te)^Pl(t))>>>0),c(this,M).delete(t),n.push(t),c(this,j)&&(c(this,j).changed=!0))},"#remove"),Yn=new WeakSet,qi=a(function(){return{seq:c(this,bo),count:c(this,Vn),hash:c(this,te)}},"#digest"),gc=new WeakSet,pd=a(function(t,n,e){let r=t.actor.node,i=r?.type==="root",l=i?jg:h(this,Xn,zi).call(this,n),u=!e?.offset||!h(this,Ao,_l).call(this,e.rect,l)||c(this,M).has(t.rid)||c(this,z).has(t.rid)||c(this,j).forceAll,f=i?null:r.type==="slot"&&t.instanceRid?t.instanceRid:n?.parentElement?.dataset?.rid;return{rect:l,offset:!n||i?null:u?h(this,vc,xd).call(this,n):e.offset,parentRid:f,nextRid:n?.nextElementSibling?.dataset?.rid??null,children:h(this,Ec,Ad).call(this,t)}},"#measure"),Xn=new WeakSet,zi=a(function(t){let n=t.getBoundingClientRect(),e=this.inject("viewport")?.get?.(),r=e?.scale||1,i=e?.scroll?.x??0,l=e?.scroll?.y??0,u=Un((n.left-i)/r),f=Un((n.top-l)/r),p=Un(n.width/r),m=Un(n.height/r);return{x:u,y:f,left:u,top:f,right:Un(u+p),bottom:Un(f+m),width:p,height:m}},"#documentRect"),Ao=new WeakSet,_l=a(function(t,n){if(t===n)return!0;if(!t||!n)return!1;let e=c(this,j).tolerance;return Math.abs(t.left-n.left)<=e&&Math.abs(t.top-n.top)<=e&&Math.abs(t.width-n.width)<=e&&Math.abs(t.height-n.height)<=e},"#sameRect"),yc=new WeakSet,md=a(function(t,n){let e=null;return h(this,Ao,_l).call(this,t.rect,n.rect)?h(this,xc,gd).call(this,t.offset,n.offset)||(e={offset:n.offset}):e={rect:n.rect,offset:n.offset},t.parentRid!==n.parentRid&&((e??(e={})).parentRid=n.parentRid),t.nextRid!==n.nextRid&&((e??(e={})).nextRid=n.nextRid),h(this,bc,yd).call(this,t.children,n.children)||((e??(e={})).children=n.children),e},"#geometryPatch"),xc=new WeakSet,gd=a(function(t,n){if(t===n)return!0;if(!t||!n)return!1;for(let e of Pg)if(t[e]!==n[e])return!1;return!0},"#sameOffset"),bc=new WeakSet,yd=a(function(t=[],n=[]){if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0},"#sameList"),vc=new WeakSet,xd=a(function(t){let n={};n.width=t.offsetWidth,n.height=t.offsetHeight,n.left=t.offsetLeft,n.top=t.offsetTop;let e=t.parentElement;return e?(n.right=e.offsetWidth-(n.left+n.width),n.bottom=e.offsetHeight-(n.top+n.height)):(n.right=0,n.bottom=0),n},"#parseOffset"),Zn=new WeakSet,Vi=a(function(t){let n=this.inject("registry"),e=t;for(;e;){if(e.node?.bounds)return e;if(e.parentId==null)return null;e=n.getActor(e.parentId)}return null},"#findBoundsAncestor"),Qn=new WeakSet,Ji=a(function(t){return h(this,Zn,Vi).call(this,t)?.firstPuppetRid??null},"#findContainerRid"),Sc=new WeakSet,bd=a(function(t,n,e,r){let i={},u=r&&e&&typeof window<"u"?window.getComputedStyle(e):null;for(let f of Ol)f in t||(f in n?i[f]=n[f]:u&&(i[f]=u.getPropertyValue(f)));return i},"#resolveInherited"),wc=new WeakSet,vd=a(function(t,n,e){let r={};for(let i in n){let l=Sg(t.style,i,e);l&&(r[i]=l)}return r},"#sourcesOf"),kc=new WeakSet,Sd=a(function(t,n,e,r){let i=Array.isArray(t.anchor)&&t.anchor.length?jl(t.anchor):{},l=n.$anchorX??i.$anchorX??qh({},e,"x"),u=n.$anchorY??i.$anchorY??qh({},e,"y"),f=n.$flow??(t.sticky?"sticky":"auto"),p=wg(r,{$flow:f},{rawPosition:e.position??null,sticky:t.sticky??null});return{flow:f,mode:p,anchorX:l,anchorY:u}},"#placementOf"),$c=new WeakSet,wd=a(function(t,n){let e={};for(let r in t)r in n||(e[r]=t[r]);return e},"#withoutKeys"),Co=new WeakSet,Gl=a(function(t){return t?.type!=="instance"||!t.component?null:this.inject("registry").describeComponent(t.library,t.component)},"#resolveComponentMeta"),Ac=new WeakSet,kd=a(function(t,n){let e=t.node;if(e.type==="instance"){let r=this.inject("registry"),i=e?.component;if(!i)return null;let u=r.getActor(r.definitionIdOf(e.library,i))?.node?.name;return u||h(this,Co,Gl).call(this,e)?.displayName||i}return e.type==="frame"||e.type==="component"?e.name||null:e.name||e.tagName||n?.tagName?.toLowerCase()||null},"#resolveName"),Cc=new WeakSet,$d=a(function(t){return c(this,bt).has(t)},"#isSelected"),tr=new WeakSet,Yi=a(function(t){return!!t.instanceRid&&t.actor?.node?.type!=="slot"},"#isInstanceInternal"),ne=new WeakSet,Kn=a(function(t){return Bh(t)},"#resolveEl"),Ec=new WeakSet,Ad=a(function(t){return t.actor?.node?.type==="instance"?t.getSlotRids():t.actor?.node?.type==="slot"?t.instanceRid?t.runtime.registry.getPuppet(t.instanceRid).getSlotChildren(t.actor.id):[]:[...t.getChildrenRids()]},"#childRids"),Rc=new WeakSet,Cd=a(function(t,n,e){let r=this.inject("registry"),{rid:i,actor:l}=t,{id:u,node:f}=l,p=n?h(this,Zn,Vi).call(this,l):null,m=p?.node.bounds.width??1/0,g=p?.node[".activeBreakpoint"]??null,v=f[".interactionState"]??[],b=n?Oh(f,m,v):{},x=n?g==null?b:Lh(f,g,v):{},S=h(this,Cc,$d).call(this,i),k=n?h(this,Sc,bd).call(this,x,b,n,S):{},E={...k,...x},I=e?r.getActorId(e):null,P=n?Mh(f,m,v):{},A=n?g==null?P:Dh(f,g,v):{},R=Number.isFinite(m)?`@${Math.floor(m)}`:"default",T=this.inject("styleContext"),_=I?Wh(T.childContextOf(I),R):{},D={id:u,node:f,styles:E,authoredStyles:x,inheritedStyles:k,authoredIntents:A,inheritedIntents:h(this,$c,wd).call(this,P,A),sources:n?h(this,wc,vd).call(this,f,{...b,...P},m):{},layoutIntent:Wh(l.context??Nt(f),R),parentLayoutIntent:_,placement:n?h(this,kc,Sd).call(this,f,P,b,_):{},name:h(this,Ac,kd).call(this,l,n),containerRid:p?.firstPuppetRid??null,tagName:f.type==="slot"?"slot":f.tagName||n?.tagName?.toLowerCase(),instanceRid:t.instanceRid,targetable:h(this,Nc,Ed).call(this,f,t),readOnly:h(this,Tc,Rd).call(this,f,t),editable:f.childrenType==="text",root:e==="app",temp:e==="temp",contextPaths:void 0,componentMeta:void 0};return(S||i===c(this,zn)||f.type==="root")&&(D.contextPaths=h(this,Eo,Hl).call(this,t),f.type==="instance"&&(D.componentMeta=h(this,Co,Gl).call(this,f))),D},"#buildData"),Nc=new WeakSet,Ed=a(function(t,n){let e=t.type;if(e==="slot"&&n.instanceRid)return!0;if(e==="instance"||e==="slot"||n.instanceRid)return!1;let r=t.childrenType;return r==="*"||r==="children"||Array.isArray(r)},"#resolveTargetable"),Tc=new WeakSet,Rd=a(function(t,n){return t.type==="slot"&&!!n.instanceRid},"#resolveReadOnly"),Eo=new WeakSet,Hl=a(function(t){let n=this.inject("modules")?.getContextPaths?.()??[],e=h(this,Ro,Ul).call(this,t.rid),r=h(this,To,Kl).call(this,e),i=h(this,Oc,jd).call(this,t?.ctx);if(i){let u=new Set(i.paths.map(({dot:m})=>m)),f=h(this,jo,ql).call(this,e).filter(({dot:m})=>!u.has(m)),p=h(this,No,Wl).call(this,[...i.paths,...f],r);return i.reachesRoot?[...n,...p]:p}let l=h(this,No,Wl).call(this,h(this,jo,ql).call(this,e),r);return l.length>0?[...n,...l]:n},"#resolveContextPaths"),jc=new WeakSet,Nd=a(function(t,n){let e=this.inject("modules"),r=new Map;for(let i of e?.getCurrentStoreNames?.()??[]){let l=e.getSchema(i);l&&r.set(`$${i}`,{schema:l,type:l.fields})}for(let[i,l]of h(this,To,Kl).call(this,h(this,Ro,Ul).call(this,t.rid)))r.set(i,l);return Uh(n,{rootTypes:r,listed:h(this,Eo,Hl).call(this,t)})},"#bindingStatus"),Ro=new WeakSet,Ul=a(function(t){let n=this.inject("registry"),e=[],r=new Set,i=n.getActor(n.getActorId(t));for(;i&&!r.has(i.id);)r.add(i.id),i.node?.repeat&&e.push(i.node.repeat),i=i.parentId!=null?n.getActor(i.parentId):null;return e},"#enclosingRepeats"),No=new WeakSet,Wl=a(function(t,n){return t.flatMap(e=>{let r=e.path.length===1?n.get(e.dot):null;return r?Vs(e.path,r.type,r.schema,void 0,"local"):[e]})},"#typedLocals"),To=new WeakSet,Kl=a(function(t){let n=new Map;for(let e of[...t].reverse()){if(!e.as)continue;n.delete(e.as);let r=$g(e);if(!r)continue;let[i,...l]=r,u=n.get(i)??h(this,Pc,Td).call(this,i);if(!u)continue;let f=Ag(Hn(u.schema,u.type,l));f!==void 0&&n.set(e.as,{schema:u.schema,type:f})}return n},"#repeatLocalTypes"),Pc=new WeakSet,Td=a(function(t){if(!t?.startsWith("$"))return null;let n=this.inject("modules")?.getSchema?.(t.slice(1));return n?{schema:n,type:n.fields}:null},"#storeRootType"),Oc=new WeakSet,jd=a(function(t){let n=t?zh.from(t):null,e=zh.from(this.inject("context")?.ctx);if(!n||n===e)return null;let r=[],i=new Set,l=!1;for(;n;n=n.parent){if(n===e){l=!0;break}for(let u of Object.keys(n.surface))i.has(u)||(i.add(u),r.push({path:[u],type:"local",dot:u}))}return{paths:r.reverse(),reachesRoot:l}},"#scopePaths"),jo=new WeakSet,ql=a(function(t){let n=[],e=new Set;for(let r of t)for(let i of[r.as,r.index,r.key])!i||e.has(i)||(e.add(i),n.push({path:[i],type:"local",dot:i}));return n},"#repeatLocalPaths"),a(Mc,"NodeGraph"),w(Mc,"manifest",{name:"NodeGraph",namespace:"nodeGraph"});var Xi=Mc;import{ServiceProvider as Ig}from"@jucie.io/engine";var nt,rt,_e,Ge,St,Oo,Mo,zl,He,Po,Fc=class Fc extends Ig{constructor(){super(...arguments);d(this,Mo);d(this,He);d(this,nt,1);d(this,rt,{x:0,y:0});d(this,_e,0);d(this,Ge,0);d(this,St,{size:12,color:"rgba(139, 139, 139, 0.15)",dotSize:1,visible:!0});d(this,Oo,"#1E1E25")}initialize(){h(this,Mo,zl).call(this),h(this,He,Po).call(this)}actions(t,n){return{set:({scale:e,scroll:r,width:i,height:l})=>{y(this,nt,e??c(this,nt)),y(this,rt,r??c(this,rt)),y(this,_e,i??c(this,_e)),y(this,Ge,l??c(this,Ge)),h(this,Mo,zl).call(this),h(this,He,Po).call(this)},get:()=>({scale:c(this,nt),scroll:c(this,rt),width:c(this,_e),height:c(this,Ge)}),setGrid:e=>{Object.assign(c(this,St),e),h(this,He,Po).call(this)},setBackground:e=>{y(this,Oo,e),h(this,He,Po).call(this)},isFrameVisible:e=>{if(!e)return!0;let r=c(this,_e)/c(this,nt),i=c(this,Ge)/c(this,nt),l=-c(this,rt).x/c(this,nt)-r/2,u=-c(this,rt).y/c(this,nt)-i/2,f=l+r*2,p=u+i*2;return e.x+e.width>l&&e.x<f&&e.y+e.height>u&&e.y<p}}}};nt=new WeakMap,rt=new WeakMap,_e=new WeakMap,Ge=new WeakMap,St=new WeakMap,Oo=new WeakMap,Mo=new WeakSet,zl=a(function(){typeof document>"u"||(document.body.style.transform=`translate(${c(this,rt).x}px, ${c(this,rt).y}px) scale(${c(this,nt)})`)},"#applyTransform"),He=new WeakSet,Po=a(function(){if(typeof document>"u")return;let t=document.documentElement,n=c(this,St).size*c(this,nt);for(;n<c(this,St).size;)n*=2;t.style.backgroundColor=c(this,Oo),c(this,St).visible?(t.style.backgroundImage=`radial-gradient(circle, ${c(this,St).color} ${c(this,St).dotSize}px, transparent ${c(this,St).dotSize}px)`,t.style.backgroundSize=`${n}px ${n}px`,t.style.backgroundPosition=`${c(this,rt).x}px ${c(this,rt).y}px`):t.style.backgroundImage="none"},"#applyGrid"),a(Fc,"Viewport"),w(Fc,"manifest",{name:"Viewport",namespace:"viewport"});var Ic=Fc;import{ServiceProvider as Fg}from"@jucie.io/engine";function Pd(s,o=()=>{}){let t=[];for(let n of s){if(typeof n!="function"||!n._name)throw new Error("Conversions must be made with defineConversions");for(let[e,{summary:r,convert:i}]of Object.entries(n(o))){let l=`${n._name}:${e}`;if(typeof i!="function")throw new Error(`Conversion ${l} has no convert function`);t.push({name:l,summary:r??l,convert:i})}}return t}a(Pd,"listConversions");function Od(s,o,t){let n=[],e=o;for(let r of s){let i=r.convert(e,t);if(!i)continue;n.push({conversion:r,changes:i});let l={...e};for(let[u,f]of Object.entries(i))f===void 0?delete l[u]:l[u]=f;e=l}return{node:e,steps:n}}a(Od,"convertNode");var Io,er,Fo,Do,Vl,nr,Dc,Bc=class Bc extends Fg{constructor(){super(...arguments);d(this,Do);d(this,nr);d(this,Io,[]);d(this,er,null);d(this,Fo,!1)}actions(t,n){let e=t("state");for(let r of n.conversions)h(this,Do,Vl).call(this,t,r);return{use:(...r)=>r.flatMap(i=>h(this,Do,Vl).call(this,t,i)),convert:()=>(y(this,Fo,!0),h(this,nr,Dc).call(this,e,Object.keys(e.get(["nodes"])??{})))}}initialize(t){let n=t("state");y(this,er,n.onChange?.addListener(e=>{if(!c(this,Fo))return;let r=new Set,i=!1;for(let{path:l}of e)l?.[0]==="nodes"&&(l.length===1?i=!0:r.add(l[1]));i?h(this,nr,Dc).call(this,n,Object.keys(n.get(["nodes"])??{})):r.size&&h(this,nr,Dc).call(this,n,[...r])})??null)}uninstall(){var t;(t=c(this,er))==null||t.call(this),y(this,er,null)}};Io=new WeakMap,er=new WeakMap,Fo=new WeakMap,Do=new WeakSet,Vl=a(function(t,n){let e=Pd([n],t);return c(this,Io).push(...e),e.map(({name:r})=>r)},"#use"),nr=new WeakSet,Dc=a(function(t,n){let e=[];for(let l of n){if(l.startsWith("."))continue;let u=t.get(["nodes",l]);if(u)for(let{conversion:f,changes:p}of Od(c(this,Io),u,l).steps)e.push({id:l,conversion:f,changes:p})}if(!e.length)return[];let r=a(()=>{for(let{id:l,changes:u}of e)for(let[f,p]of Object.entries(u))p===void 0?t.remove(["nodes",l,f]):t.set(["nodes",l,f],p)},"write");t.history?t.history.untracked(r):r();let i=new Map;for(let{id:l,conversion:u}of e)i.has(u.name)||i.set(u.name,{name:u.name,summary:u.summary,ids:[]}),i.get(u.name).ids.push(l);return[...i.values()]},"#apply"),a(Bc,"Converter"),w(Bc,"manifest",{name:"Converter",namespace:"converter",defaults:{conversions:[]}});var Lc=Bc;import{createDefinition as Dg}from"@jucie.io/engine";var Md=Dg("nodeConversions",[Object]);var Jl=a(s=>s.replace(/\\([\\`*_[\]])/g,"$1"),"unescape"),Lg=[[/^\{\{[^}]+\}\}/,s=>[s[0],{}]],[/^\\([\\`*_[\]])/,s=>[s[1],{}]],[/^\[((?:\\.|[^\]\n])*)\]\(([^)\s]*)\)/,s=>[Jl(s[1]),{link:{href:s[2]}}]],[/^\*\*((?:\\.|[^*\n])+)\*\*/,s=>[Jl(s[1]),{bold:!0}]],[/^_((?:\\.|[^_\n])+)_/,s=>[Jl(s[1]),{italic:!0}]],[/^`([^`\n]+)`/,s=>[s[1],{code:!0}]]];function Bg(s){let o=[],t=0;for(;t<s.length;){let n=s.slice(t),e=null,r=1;for(let[u,f]of Lg){let p=n.match(u);if(p){e=f(p),r=p[0].length;break}}let[i,l]=e??[s[t],{}];o.push({text:i,formats:l}),t+=r}return Ws(o)}a(Bg,"markdownRuns");function _g(s){let o=Bg(s).flatMap(({text:t,formats:n})=>kn(t).map(e=>({...e,formats:{...n}})));return o.length?o:C("")}a(_g,"markdownToSegments");function Gg(s){return s.flatMap(o=>o.descriptor||o.block||!o.text?.includes("{{")?[o]:kn(o.text).map(t=>({...t,formats:{...o.formats}})))}a(Gg,"pillsInRuns");function Id(s){if(typeof s=="string")return kn(s);switch(s.mode??"value"){case"value":{let o=s.value==null?"":String(s.value);return s.specificPatterns?.includes("markdown")?_g(o):kn(o)}case"binding":{let{binding:o}=s;if(!o?.length)return C("");let t=typeof o=="string"?o.split("."):o;return[zt({...s,binding:t})]}case"computed":return[zt({...s})];case"code":{let o=Wt(s.code,"code");return o?[zt({...s,mode:"computed",computed:o,code:null})]:C("")}default:return null}}a(Id,"segmentsFor");var Fd=Md("text",()=>({textContentToSegments:{summary:"text \u2192 rich text",convert(s,o){if(o.startsWith("."))return null;if(Array.isArray(s.textSegments))return{textContent:Gg(s.textSegments),textSegments:void 0};let{textContent:t}=s;if(t==null||Array.isArray(t))return null;let n=Id(t);return n?{textContent:n}:null}},slotFillsToSegments:{summary:"slot text \u2192 rich text",convert(s,o){if(o.startsWith(".")||!Array.isArray(s.slots))return null;let t=!1,n=s.slots.map(e=>{let r=e?.textContent;if(r==null||Array.isArray(r))return e;let i=Id(r);return i?(t=!0,{...e,textContent:i}):e});return t?{slots:n}:null}}}));var Dd=[Fd];import{ServiceProvider as Hg}from"@jucie.io/engine";function Ld(s){return s.replace(/[/.]/g,"-").replace(/[^a-zA-Z0-9_-]/g,"")}a(Ld,"pathToSlug");var Ug=/^\{(.+)\}$/,dt,Ue,Lo,rr,_c,Bo,Yl,_o,Xl,Hc,Bd,Go,Zl,Uc=class Uc extends Hg{constructor(){super(...arguments);d(this,Ue);d(this,rr);d(this,Bo);d(this,_o);d(this,Hc);d(this,Go);d(this,dt,null)}initialize(){if(this.config?.staticStyles?.tokens)return;let t=this.config?.scene?null:this.inject("state")?.matcher;t?(t.createMatcher(["tokens"],()=>h(this,rr,_c).call(this)),t.createMatcher([".libraries"],()=>h(this,rr,_c).call(this))):h(this,rr,_c).call(this)}actions(){return{toCssVar:t=>`var(--${t})`,resolveToken:t=>h(this,Ue,Lo).call(this,["tokens",t])??null,resolveByPath:t=>{let n=h(this,Ue,Lo).call(this,["tokens"])??{};for(let[e,r]of Object.entries(n))if(r?.$path===t)return{id:e,token:r,cssValue:h(this,Go,Zl).call(this,r.$value,r.$type)};return null}}}getters(){return{contextPaths:()=>[],cssText:()=>h(this,Bo,Yl).call(this)}}};dt=new WeakMap,Ue=new WeakSet,Lo=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),rr=new WeakSet,_c=a(function(){if(typeof document>"u")return;let t=h(this,Bo,Yl).call(this);!t&&!c(this,dt)&&!document.getElementById("jucie-tokens")||(c(this,dt)||(y(this,dt,document.getElementById("jucie-tokens")),c(this,dt)||(y(this,dt,document.createElement("style")),c(this,dt).id="jucie-tokens",document.head.appendChild(c(this,dt)))),c(this,dt).textContent=t,t&&this.inject("sceneCompiler")?.forceNodeGraph?.())},"#injectCSS"),Bo=new WeakSet,Yl=a(function(){let t=h(this,Ue,Lo).call(this,["tokens"])??{},n=[],e=new Set(Object.keys(t));for(let r of Object.values(h(this,Ue,Lo).call(this,[".libraries"])??{})){let i=r?.tokens??{},l=Object.fromEntries(Object.entries(i).filter(([u])=>!e.has(u)));for(let u of Object.keys(l))e.add(u);n.push(...h(this,_o,Xl).call(this,l,i))}return n.push(...h(this,_o,Xl).call(this,t,t)),n.length?(this.config?.embedded||n.push(...h(this,Hc,Bd).call(this,t)),`:root {
16
+ ${n.join(`
17
+ `)}
18
+ }`):""},"#buildCss"),_o=new WeakSet,Xl=a(function(t,n){let e=new Map;for(let[r,i]of Object.entries(n))i?.$path&&e.set(i.$path,r);return Object.entries(t).filter(([,r])=>r!=null).map(([r,i])=>{let l=typeof i.$value=="string"&&i.$value.match(Ug);if(l){let f=l[1].replace(/\./g,"/"),p=e.get(f),m=p?`var(--${p})`:"";return` --${r}: ${m};`}let u=h(this,Go,Zl).call(this,i.$value,i.$type);return` --${r}: ${u};`})},"#idDeclarations"),Hc=new WeakSet,Bd=a(function(t){let n=new Set,e=[];for(let[r,i]of Object.entries(t)){if(!i?.$path)continue;let l=Ld(i.$path);!l||n.has(l)||(n.add(l),e.push(` --${l}: var(--${r});`))}return e},"#readableNames"),Go=new WeakSet,Zl=a(function(t,n){return t==null?"":typeof t=="string"?t:typeof t=="number"?String(t):typeof t=="object"?Array.isArray(t)?n==="cubicBezier"?`cubic-bezier(${t.join(", ")})`:t.join(", "):"value"in t&&"unit"in t?`${t.value}${t.unit}`:"hex"in t?t.hex:"":String(t)},"#toCSSValue"),a(Uc,"TokenResolver"),w(Uc,"manifest",{name:"TokenResolver",namespace:"tokenResolver"});var Gc=Uc;import{ServiceProvider as Qg}from"@jucie.io/engine";function N(s){return String(s).replace(/"/g,"&quot;")}a(N,"escapeAttribute");import{baseOf as Wg,classifyKey as Kg}from"@jucie.io/composed-style";function _d(s){let o=a(n=>Object.entries(n??{}).map(([e,r])=>{if(r&&typeof r=="object"){let i=o(r);return i?`${e}: { ${i} }`:null}return`${e}: ${r}`}).filter(Boolean).join("; "),"decls"),t=[o(Wg(s))];for(let n of Object.keys(s)){if(n==="default"||Kg(n)!=="condition")continue;let e=o(s[n]);e&&t.push(`${n}: { ${e} }`)}return t.filter(Boolean).join(" | ")}a(_d,"formatStyle");function Ql(s){let o=String(s??"").trim(),t=o.match(/^function\s*\([^)]*\)\s*\{\s*return\s+([\s\S]*?);?\s*\}$/),n=(t&&!t[1].includes(`
19
+ `)?t[1]:o).replace(/\s+/g," ");return n.length>120?`${n.slice(0,119)}\u2026`:n}a(Ql,"previewCode");function qg(s){let o=a(t=>Math.round(t??0),"round");return`${o(s.x)},${o(s.y)},${o(s.width)}x${o(s.height)}`}a(qg,"formatBounds");function tu(s){return Array.isArray(s)?s.join("."):s??""}a(tu,"formatBinding");function Wc(s){return!s||typeof s!="object"?null:s.mode==="binding"&&s.binding?`{{${tu(s.binding)}}}`:s.mode==="computed"&&s.computed?`{fn: ${Ql(s.computed)}}`:s.mode==="code"&&s.code?`{fn: ${Ql(s.code)}}`:s.expression?`{{${s.expression}}}`:null}a(Wc,"formatDescriptor");function zg(s){return s.map(o=>{let t=o.key??o.name??o.event;if(!t)return null;if(o.mode==="binding"||o.binding){let e=tu(o.binding);return e?`${t}=${e}`:t}let n=o.code??o.expression??o.value??o.handler??"";return n?`${t}=${n}`:t}).filter(Boolean).join(", ")}a(zg,"formatEvents");function Vg(s){return s.map(o=>{let t=o.key??o.name;if(!t)return null;if(o.mode==="binding"||o.binding){let r=tu(o.binding);return r?`${t}=${r}`:t}let n=Wc(o);if(n)return`${t}=${n}`;let e=o.value??"";return e!==""?`${t}=${e}`:t}).filter(Boolean).join(", ")}a(Vg,"formatAttrs");function Jg(s){return s.map(o=>{if(!o?.name)return null;let t=Wc(o);return t?`${o.name}=${t}`:o.name}).filter(Boolean).join(", ")}a(Jg,"formatStates");function Yg(s){let o=Wc(s);if(o)return o;let t=Array.isArray(s?.value)?s.value:[];return t.length===0?null:t.map(n=>n.label===n.value||n.label==null?`${n.value}`:`${n.label}=${n.value}`).join(", ")}a(Yg,"formatOptions");function Xg(s,o){let t=[],n=s.id??o;return n&&t.push(`id="${N(n)}"`),s.name&&t.push(`name="${N(s.name)}"`),s.component&&t.push(`component="${N(s.component)}"`),s.library&&t.push(`library="${N(s.library)}"`),s.route?.path&&t.push(`route="${N(s.route.path)}"`),s.repeat&&t.push("repeat"),s.destination?.path&&t.push(`dest="${N(s.destination.path)}"`),t.length?" "+t.join(" "):""}a(Xg,"buildOutlineAttrString");function eu(s,o,t=null,{outline:n=!1}={}){if(n)return Xg(s,o);let e=[],r=s.id??o;if(r&&e.push(`id="${N(r)}"`),t&&e.push(`rid="${N(t)}"`),s.name&&e.push(`name="${N(s.name)}"`),s.bounds&&e.push(`bounds="${qg(s.bounds)}"`),s.style&&Object.keys(s.style).length){let l=_d(s.style);l&&e.push(`style="${N(l)}"`)}if(s.events?.length&&e.push(`events="${N(zg(s.events))}"`),s.attributes?.length&&e.push(`attrs="${N(Vg(s.attributes))}"`),s.states?.length){let l=Jg(s.states);l&&e.push(`states="${N(l)}"`)}if(s.options){let l=Yg(s.options);l&&e.push(`options="${N(l)}"`)}s.className?.length&&e.push(`class="${s.className.join(" ")}"`),s.repeat&&e.push(`repeat="${N(JSON.stringify(s.repeat))}"`),s.component&&e.push(`component="${N(s.component)}"`),s.library&&e.push(`library="${N(s.library)}"`),s.props&&Object.keys(s.props).length&&e.push(`props="${N(JSON.stringify(s.props))}"`),s.route?.path&&e.push(`route="${N(s.route.path)}"`);let i=Wc(s.render)??(s.render?.value!=null&&s.render.value!==!0?`{{${s.render.value}}}`:null);return i&&e.push(`render="${N(i)}"`),s.destination?.path&&e.push(`dest="${N(s.destination.path)}"`),e.length?" "+e.join(" "):""}a(eu,"buildAttrString");var Zg=" ";function or(s,o){let t=Zg.repeat(o);return s.split(`
20
+ `).map(n=>t+n).join(`
21
+ `)}a(or,"indent");function Kc(s){return String(s).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}a(Kc,"escapeText");function Gd(s){let o=String(s).replace(/\s+/g," ").trim();return o.length>60?`${o.slice(0,59)}\u2026`:o}a(Gd,"outlineText");function nu(s){let o=qt(s);return o&&sl(o)||null}a(nu,"nodeText");var Uo,ru,zc,Hd,Wo,ou,Vc,Ud,Jc,Wd,We,Ho,Yc=class Yc extends Qg{constructor(){super(...arguments);d(this,Uo);d(this,zc);d(this,Wo);d(this,Vc);d(this,Jc);d(this,We)}actions(){return{projectJsx:(t,n)=>h(this,zc,Hd).call(this,t,n),projectPuppetJsx:(t,n)=>h(this,Vc,Ud).call(this,t,n)}}};Uo=new WeakSet,ru=a(function(t,n){let e=this.inject("registry"),r,i;return t.type==="element"&&t.tagName?(r=t.tagName,i=e.getPrototype(t.tagName)?.ex??null):t.type?(r=t.type,i=e.getPrototype(t.ex??t.type)?.ex??null):(r=n,i=null),i?`${r}:${i}`:r},"#resolveTag"),zc=new WeakSet,Hd=a(function(t,{maxDepth:n=1/0}={}){return h(this,Wo,ou).call(this,t,0,n)},"#projectJsx"),Wo=new WeakSet,ou=a(function(t,n,e){let r=this.inject("resolve").dispatch("computedNode",t)();if(!r)return`<!-- missing: ${t} -->`;let i=h(this,Uo,ru).call(this,r,t),l=eu(r,t),u=nu(r),f=Array.isArray(r.children)?r.children:[];if(!(f.length>0||u!=null&&u!==""))return`<${i}${l} />`;if(n>=e){let g=f.length?`<\u22EF${f.length} children>`:"<\u22EFtext>";return`<${i}${l}>${g}</${i}>`}if(u!=null&&u!==""&&f.length===0)return`<${i}${l}>${Kc(u)}</${i}>`;let m=f.map(g=>or(h(this,Wo,ou).call(this,g,n+1,e),1)).join(`
22
+ `);return`<${i}${l}>
23
+ ${m}
24
+ </${i}>`},"#renderNode"),Vc=new WeakSet,Ud=a(function(t,{maxDepth:n=1/0,outline:e=!1}={}){return Array.isArray(t)||(t=[t]),t.map(r=>{let i=h(this,Jc,Wd).call(this,r);return typeof i=="string"&&i.startsWith("<!--")?i:h(this,We,Ho).call(this,i,0,n,e)}).join(`
25
+ `)},"#projectPuppetJsx"),Jc=new WeakSet,Wd=a(function(t){let n=this.inject("registry");if(n.hasPuppet(t))return t;let e=n.getActor(t)??n.getActor(n.getActorId(t));if(!e)return`<!-- no actor for: ${t} -->`;let r=e.firstPuppetRid;return r||`<!-- no puppet for: ${t} -->`},"#resolvePuppetRid"),We=new WeakSet,Ho=a(function(t,n,e,r=!1){let l=this.inject("registry").getPuppet(t);if(!l)return`<!-- missing puppet: ${t} -->`;let u=l.actor,f=u.node;if(!f)return`<!-- missing node for puppet: ${t} -->`;let p=u.id,m=h(this,Uo,ru).call(this,f,p),g=eu(f,p,t,{outline:r}),v=nu(f),b=v!=null&&r?Gd(v):v,x=l.getChildEntries(),S=l.getCloneEntries(),k=l.getSlotEntries(),E=x.length>0||S.length>0||k.length>0;if(!(E||b!=null&&b!==""))return`<${m}${g} />`;if(n>=e){let A=x.length+S.length,R=A>0?`<\u22EF${A} children>`:"<\u22EFtext>";return`<${m}${g}>${R}</${m}>`}if(b!=null&&b!==""&&!E)return`<${m}${g}>${Kc(b)}</${m}>`;let P=[];for(let[,A]of x)P.push(or(h(this,We,Ho).call(this,A,n+1,e,r),1));for(let[,A]of S)P.push(or(h(this,We,Ho).call(this,A,n+1,e,r),1));for(let[A,R]of k){let T=[];for(let[,_]of R.entries())T.push(or(h(this,We,Ho).call(this,_,n+2,e,r),1));T.length&&P.push(or(`<slot name="${N(A)}">
26
+ ${T.join(`
27
+ `)}
28
+ </slot>`,1))}return P.length===0&&b!=null&&b!==""?`<${m}${g}>${Kc(b)}</${m}>`:`<${m}${g}>
29
+ ${P.join(`
30
+ `)}
31
+ </${m}>`},"#renderPuppet"),a(Yc,"JSX"),w(Yc,"manifest",{name:"JSX",namespace:"jsx",version:"1.0.0"});var qc=Yc;import{ServiceProvider as ty}from"@jucie.io/engine";var pt,wt,Ke,qe,re,oe,ze,It,Zc,Kd,qo,su,zo,iu,Ve,Ko,Vo,cu,au=class au{constructor(o=null,t){d(this,Zc);d(this,qo);d(this,zo);d(this,Ve);d(this,Vo);d(this,pt,null);d(this,wt,null);d(this,Ke,null);d(this,qe,!1);d(this,re,new Map);d(this,oe,new Map);d(this,ze,new Set);d(this,It,null);w(this,"destroyed",!1);y(this,pt,o??(typeof document<"u"?document:null)),y(this,wt,t)}register(o){let t=c(this,pt)??o.app?.$el?.ownerDocument??(typeof document<"u"?document:null);y(this,pt,t),this.update(o.id,o.node,o.isInstance,o.parentId)}unregister(o){c(this,ze).delete(o);let t=c(this,re).delete(o),n=c(this,oe).delete(o);(t||n)&&h(this,zo,iu).call(this)}update(o,t,n=!1,e=null){if(!t||c(this,wt).isStatic(o,e))return;let r=c(this,wt).resolvePosition(t,e),i=c(this,wt).resolveInheritedFont(t,e),l=c(this,wt).buildStyles(o,t,n,r,i,e);(n?c(this,oe):c(this,re)).set(o,l),c(this,ze).add(o),h(this,zo,iu).call(this)}cssText(){return[...c(this,re).values(),...c(this,oe).values()].some(o=>o.length)?h(this,Vo,cu).call(this):""}destroy(){this.destroyed=!0,h(this,qo,su).call(this),c(this,pt)&&c(this,qe)&&(c(this,pt).adoptedStyleSheets=c(this,pt).adoptedStyleSheets.filter(o=>o!==c(this,Ke))),y(this,qe,!1),c(this,re).clear(),c(this,oe).clear(),c(this,ze).clear()}flush(){this.destroyed||h(this,Ve,Ko).call(this)}};pt=new WeakMap,wt=new WeakMap,Ke=new WeakMap,qe=new WeakMap,re=new WeakMap,oe=new WeakMap,ze=new WeakMap,It=new WeakMap,Zc=new WeakSet,Kd=a(function(){if(c(this,qe))return;let o=c(this,pt);o&&(c(this,Ke)??y(this,Ke,new CSSStyleSheet),o.adoptedStyleSheets=[...o.adoptedStyleSheets,c(this,Ke)],y(this,qe,!0))},"#ensureAttached"),qo=new WeakSet,su=a(function(){c(this,It)&&(cancelAnimationFrame(c(this,It)),y(this,It,null))},"#cancelScheduledFlush"),zo=new WeakSet,iu=a(function(){if(c(this,wt).view==="design"){if(h(this,qo,su).call(this),c(this,wt).defer(this))return;h(this,Ve,Ko).call(this);return}if(!c(this,It)){if(typeof requestAnimationFrame>"u"){h(this,Ve,Ko).call(this);return}y(this,It,requestAnimationFrame(()=>{y(this,It,null),h(this,Ve,Ko).call(this)}))}},"#scheduleFlush"),Ve=new WeakSet,Ko=a(function(){h(this,Zc,Kd).call(this);let o=c(this,Ke);if(!o)return;let t=h(this,Vo,cu).call(this);if(o.replaceSync)o.replaceSync(t);else{for(;o.cssRules.length>0;)o.deleteRule(0);let n=t.split(`
32
+ `);for(let e of n)if(e)try{o.insertRule(e,o.cssRules.length)}catch{}}c(this,ze).clear(),c(this,pt)?.getElementById?.("jucie-ssr-css")?.remove()},"#flush"),Vo=new WeakSet,cu=a(function(){let o=`@layer base, instances;
33
+ `;o+=`@layer base {
34
+ `;for(let t of c(this,re).values())for(let n of t)o+=n,o+=`
35
+ `;o+=`}
36
+ `,o+=`@layer instances {
37
+ `;for(let t of c(this,oe).values())for(let n of t)o+=n,o+=`
38
+ `;return o+=`}
39
+ `,o},"#buildCss"),a(au,"StyleScope");var Xc=au;function qd(s,o,t){return`${t?`${t} `:""}translate(${s}px, ${o}px)`}a(qd,"resolveTransform");function lu(s){return`.${String(s).replace(/[^a-zA-Z0-9_-]/g,o=>`\\${o}`)}`}a(lu,"classSelector");import{compileNode as ey,stateSelector as ny,breakpointOf as ry,baseOf as Jo}from"@jucie.io/composed-style";var sr=[{name:"Mobile",key:"default",min:0,width:375},{name:"Tablet",key:"@768",min:768},{name:"Desktop",key:"@1280",min:1280}];var uu=a(s=>Array.isArray(s?.breakpoints)&&s.breakpoints.length?s.breakpoints:sr,"appBreakpoints");var zd=a(s=>String(s).trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),"slug");function fu(s=sr){return Object.fromEntries(s.filter(o=>o.name&&o.min>0&&zd(o.name)).map(o=>[zd(o.name),o.min]))}a(fu,"breakpointNames");var oy=a(s=>{if(s.$flow!=="sticky")return null;let o=s.$anchorY==="end"?"bottom":"top";return{edge:o,offset:s[o]&&s[o]!=="auto"?s[o]:"0px"}},"stickyOf"),sy=new Set(["position","top","left","right","bottom"]),iy={default:{$layout:"none"}},cy={default:{$layout:"block"}};function ay(s,o){let t=new Map(s);for(let[n,e]of o)t.set(n,e);return[...t]}a(ay,"mergeDeclarations");var kt,Ye,ir,cr,ar,lr,Yo,Xo,Zo,Qo,ts,es,ur,ns,hu,ea,Jd,Ft,Je,fr,Qc,na,Yd,ra,Xd,rs,du,os,pu,oa,Zd,sa,Qd,ia,tp,ca=class ca extends ty{constructor(){super(...arguments);d(this,ns);d(this,ea);d(this,Ft);d(this,fr);d(this,na);d(this,ra);d(this,rs);d(this,os);d(this,oa);d(this,sa);d(this,ia);d(this,kt,new Map);d(this,Ye,"design");d(this,ir,void 0);d(this,cr,void 0);d(this,ar,0);d(this,lr,new Set);d(this,Yo,void 0);d(this,Xo,void 0);d(this,Zo,{tokens:{}});d(this,Qo,void 0);d(this,ts,{});d(this,es,null);d(this,ur,!1)}initialize(){y(this,Ye,this.config?.view??"design"),y(this,es,this.config?.staticStyles?.actors??null),y(this,ur,!!this.config?.embedded)}isStatic(t,n=null){let e=c(this,es);return!!e&&Object.hasOwn(e,t)&&e[t]===(n??null)}get view(){return c(this,Ye)}batch(t){et(this,ar)._++;try{return t()}finally{if(--et(this,ar)._===0){let n=[...c(this,lr)];c(this,lr).clear();for(let e of n)e.flush()}}}defer(t){return c(this,ar)===0?!1:(c(this,lr).add(t),!0)}getters(){return{cssText:()=>h(this,os,pu).call(this)}}actions(){return{createScope:(t,n=null)=>h(this,rs,du).call(this,t,n),getScope:t=>c(this,kt).get(t)??null,destroyScope:t=>{let n=c(this,kt).get(t);n&&(n.destroy(),c(this,kt).delete(t))},buildStyles:(t,n,e,r,i,l)=>this.buildStyles(t,n,e,r,i,l),batch:t=>this.batch(t),compileAll:()=>this.compileAll(),childContextOf:t=>this.childContextOf(t),passesThrough:t=>this.passesThrough(t)}}compileAll(){let t=c(this,Ft,Je),n=this.inject("resolve"),e=a(u=>n.dispatch("nodeData",u),"nodeData");t.setActorClass(hn);let r={config:{view:c(this,Ye)},runtime:this.inject(),$el:null,styleScope:h(this,rs,du).call(this,"app")},i={},l=a((u,f,p)=>{if(u in i)return;let m=t.resolveActor(r,u,{styleScope:p,parentId:f});if(!m)return;i[u]=f;let{node:g}=m,v=a((b,x)=>{if(Array.isArray(b))for(let S of b)l(S,x,m.styleScope)},"each");if(g.type==="instance"){let b=t.definitionIdOf(g.library,g.component),x=b?e(b):null;x?.type==="component"&&v(x.children,u);for(let S of g.slots??[])v(S.children,S.id);return}v(g.children,u)},"visit");for(let u of e("app")?.children??[])e(u)?.type!=="component"&&l(u,null,void 0);return{css:h(this,os,pu).call(this),tokensCss:this.inject("tokenResolver")?.cssText??"",actors:i}}resolvePosition(t,n){if(t?.bounds)return null;if(n==null)return c(this,ur)?null:"absolute";let e=c(this,Ft,Je)?.getActor(n);return e&&un(e.node)!=="none"?"relative":"absolute"}resolveInheritedFont(t,n){let e=c(this,Ft,Je),r=t,i=n;for(;r;){let l=Jo(r.style),u=l?.["font-family"]||l?.fontFamily;if(u){let p=l?.["font-style"]||l?.fontStyle||"normal";return{family:u,style:p}}let f=i!=null?e?.getActor(i):null;r=f?.node??null,i=f?.parentId}return null}actorContext(t){return t?.context??Nt(t?.node)}passesThrough(t){return t?.node?.type!=="slot"?!1:!Object.values(this.actorContext(t)).some(n=>n.$layout&&n.$layout!=="none")}childContextOf(t){let n=t!=null?c(this,Ft,Je)?.getActor(t):null;for(;n&&this.passesThrough(n);)n=n.parentId!=null?c(this,Ft,Je).getActor(n.parentId):null;return n?this.actorContext(n):{}}buildStyles(t,n,e=!1,r=null,i=null,l=null){let u=[],f=lu(t),p=l!=null?c(this,Ft,Je)?.getActor(l):null,m=c(this,Ye),g=h(this,ns,hu).call(this,e,l),v=!!p&&h(this,ns,hu).call(this,p.isInstance,p.parentId),b=iy;v?b=cy:p&&(b=this.childContextOf(l));let x=n.bounds?"frame":e?"instance":"perBreakpoint",S=x==="perBreakpoint",k=x==="instance"&&p?un(p.node):null,E=x==="instance"&&!!k&&k!=="none";E&&r&&u.push(`${f} { position: ${r}; }`);let I=ey(n.style,{values:c(this,na,Yd),breakpoints:c(this,ra,Xd),parent:b,position:S&&!v,sticky:S&&!v?n.sticky??null:null,scopeToParent:p?.node?.type==="slot"}).rules;if(x==="instance"&&r&&!E&&!Jo(n.style).position){let A=n.style?[["position",r],["top","auto"],["left","auto"],["right","auto"],["bottom","auto"]]:[["position",r]],R=I.find(T=>T.condition==="default"&&!T.state&&!T.parentScoped);R||(R={condition:"default",state:null,declarations:[]},I.unshift(R)),R.declarations=ay(A,R.declarations)}for(let A of I){let R=E?A.declarations.filter(([D])=>!sy.has(D)):A.declarations,T=h(this,ia,tp).call(this,R,i);if(!T)continue;let _=A.parentScoped?`${lu(l)} > ${f}`:f;for(let D of h(this,oa,Zd).call(this,_,A.state))u.push(h(this,sa,Qd).call(this,D,ry(A.condition),T))}if(x==="instance"&&!g){let A=r??"relative";u.push(`${f} { position: ${A}; top: auto; left: auto; right: auto; bottom: auto; }`)}let P=x==="instance"?n.sticky??oy(Jo(n.style)):null;if(P&&k==="block"){let A=P.edge==="bottom"?"bottom":"top",R=P.offset||"0px";u.push(`${f} { position: sticky; ${A}: ${R}; }`)}if(m==="design"&&!n.bounds){let A=n[".position"];if(A){let R=Jo(n.style).transform,T=qd(A.x,A.y,R);u.push(`${f} { transform: ${T}; }`)}}if(n.bounds){let A=n.bounds;if(m==="design"){let R=n[".position"],T=(A.x||0)+(R?.x||0),_=(A.y||0)+(R?.y||0),D=Jo(n.style).transform,hs=`translate(${T}px, ${_}px)${D?` ${D}`:""}`;u.push(`${f} { container-type: inline-size; position: absolute; top: 0 !important; left: 0 !important; transform: ${hs} !important; width: ${A.width||0}px !important; height: ${A.height||0}px !important; }`)}else u.push(`${f} { container-type: inline-size; position: relative; width: 100vw; height: 100vh; }`)}return u}};kt=new WeakMap,Ye=new WeakMap,ir=new WeakMap,cr=new WeakMap,ar=new WeakMap,lr=new WeakMap,Yo=new WeakMap,Xo=new WeakMap,Zo=new WeakMap,Qo=new WeakMap,ts=new WeakMap,es=new WeakMap,ur=new WeakMap,ns=new WeakSet,hu=a(function(t,n){return c(this,ur)&&t&&n==null},"#isPlacedByHost"),ea=new WeakSet,Jd=a(function(){return c(this,ir)===void 0&&y(this,ir,this.inject("fontResolver")??null),c(this,ir)},"#resolver"),Ft=new WeakSet,Je=a(function(){return c(this,cr)===void 0&&y(this,cr,this.inject("registry")??null),c(this,cr)},"#registry"),fr=new WeakSet,Qc=a(function(t){return this.inject("resolve").dispatch("sceneValue",t)},"#sceneValue"),na=new WeakSet,Yd=a(function(){let t=h(this,fr,Qc).call(this,["tokens"])??null,n=h(this,fr,Qc).call(this,[".libraries"])??null;if(t!==c(this,Yo)||n!==c(this,Xo)){y(this,Yo,t),y(this,Xo,n);let e=[...Object.values(n??{}).flatMap(r=>Object.keys(r?.tokens??{})),...Object.keys(t??{})];y(this,Zo,{tokens:Object.fromEntries(e.map(r=>[r,`var(--${r})`]))})}return c(this,Zo)},"#holeValues"),ra=new WeakSet,Xd=a(function(){let t=uu(h(this,fr,Qc).call(this,["nodes","app"]));return t!==c(this,Qo)&&(y(this,Qo,t),y(this,ts,fu(t))),c(this,ts)},"#breakpointConfig"),rs=new WeakSet,du=a(function(t,n=null){return c(this,kt).has(t)||c(this,kt).set(t,new Xc(n,this)),c(this,kt).get(t)},"#createScope"),os=new WeakSet,pu=a(function(){return[...c(this,kt).values()].map(t=>t.cssText()).filter(Boolean).join(`
40
+ `)},"#cssText"),oa=new WeakSet,Zd=a(function(t,n){return n?n[0]==="&"?[ny(t,n)]:[`${t}${n}`,`${t}.force-${n.slice(1)}`]:[t]},"#stateSelectors"),sa=new WeakSet,Qd=a(function(t,n,e){return n?`@container (min-width: ${n}px) { ${t} { ${e} } }`:`${t} { ${e} }`},"#wrap"),ia=new WeakSet,tp=a(function(t,n=null){let e=c(this,ea,Jd);if(e){let r=a(f=>t.find(([p])=>p===f)?.[1],"get"),i=r("font-family"),l=r("font-weight")||"400",u=r("font-style")||"normal";i?e.resolve(i,l,u):n&&(r("font-weight")||r("font-style"))&&e.resolve(n.family,l,r("font-style")?u:n.style)}return t.map(([r,i])=>`${r}: ${r==="font-family"?Hr(i):i}`).join("; ")},"#toCSS"),a(ca,"StyleContext"),w(ca,"manifest",{name:"StyleContext",namespace:"styleContext"});var ta=ca;import{ServiceProvider as ly}from"@jucie.io/engine";var uy=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong","Helvetica","Arial","Arial Black","Verdana","Tahoma","Trebuchet MS","Impact","Gill Sans","Times New Roman","Georgia","Palatino","Baskerville","Andal\xE9 Mono","Courier","Courier New","Lucida","Lucida Console","Lucida Sans","Monaco","Bradley Hand","Brush Script MT","Luminari","Comic Sans MS","Segoe UI","Roboto","Helvetica Neue","-apple-system","BlinkMacSystemFont","SF Pro","SF Mono","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"]),fy=new Set([...uy].map(s=>s.toLowerCase()));function Dt(s){return fy.has(s.toLowerCase().trim())}a(Dt,"isSystemFont");function Xe(s){return!s||typeof s!="string"?[]:s.includes("var(")?[]:s.split(",").map(o=>o.trim().replace(/^['"]|['"]$/g,"")).filter(Boolean).map(hy)}a(Xe,"parseFontFamily");function hy(s){let o=s.indexOf("@");if(o===-1){let e=s.trim();return{name:e,source:Dt(e)?"system":null}}let t=s.slice(0,o).trim(),n=s.slice(o+1).trim();return n==="google"?{name:t,source:"google"}:n==="local"?{name:t,source:"local"}:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("/")?{name:t,source:"url",url:n}:{name:t,source:n}}a(hy,"parseSourceDescriptor");function dy(s){return!s||typeof s!="string"||s.includes("var(")?s:s.split(",").map(o=>{let t=o.trim().replace(/^['"]|['"]$/g,""),n=t.indexOf("@"),e=n===-1?t:t.slice(0,n).trim();return e.includes(" ")?`"${e}"`:e}).join(", ")}a(dy,"cleanFontFamily");var py={thin:"100",hairline:"100","extra-light":"200","ultra-light":"200",light:"300",normal:"400",regular:"400",medium:"500","semi-bold":"600","demi-bold":"600",bold:"700","extra-bold":"800","ultra-bold":"800",black:"900",heavy:"900"};function my(s){if(!s)return"400";let o=String(s).toLowerCase().trim();return py[o]??o}a(my,"normalizeWeight");function gy(s){if(!s)return"0";let o=String(s).toLowerCase().trim();return o==="italic"||o==="oblique"?"1":"0"}a(gy,"normalizeStyle");function aa(s,o){return`${gy(o)},${my(s)}`}a(aa,"toVariant");function yy(s){if(!s||s.size===0)return"";let o=[],t=ep(s);t&&o.push('<link rel="preconnect" href="https://fonts.googleapis.com">','<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>',`<link href="${t}" rel="stylesheet">`);let n=np(s);return n&&o.push(`<style>
41
+ ${n}</style>`),o.join(`
42
+ `)}a(yy,"buildFontLinks");function ep(s){let o=[];for(let[t,n]of s){if(n.source!=="google")continue;let e=[...n.variants].sort();if(e.some(i=>i.startsWith("1,")))o.push(`family=${t.replace(/ /g,"+")}:ital,wght@${e.join(";")}`);else{let i=e.map(l=>l.split(",")[1]).sort((l,u)=>Number(l)-Number(u));o.push(`family=${t.replace(/ /g,"+")}:wght@${i.join(";")}`)}}return o.length===0?null:`https://fonts.googleapis.com/css2?${o.join("&")}&display=swap`}a(ep,"buildGoogleUrl");function np(s){let o=[];for(let[t,n]of s){if(n.source==="google"||!n.url)continue;let e=n.url.split(".").pop()?.toLowerCase(),r={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype"}[e]||"woff2";for(let i of n.variants){let[l,u]=i.split(","),f=l==="1"?"italic":"normal";o.push(` @font-face {
43
+ font-family: "${t}";
44
+ src: url("${n.url}") format("${r}");
45
+ font-weight: ${u};
46
+ font-style: ${f};
47
+ font-display: swap;
48
+ }`)}}return o.length>0?o.join(`
49
+ `):""}a(np,"buildFontFaceBlock");function mu(s){return s["font-family"]||s.fontFamily||null}a(mu,"getFamily");function la(s){return s["font-weight"]||s.fontWeight||null}a(la,"getWeight");function ua(s){return s["font-style"]||s.fontStyle||null}a(ua,"getStyle");function gu(s){if(!s||typeof s!="object")return[];let{default:o,...t}=s,n=[{...t,...o&&typeof o=="object"?o:null}];for(let[e,r]of Object.entries(t))e.startsWith("@")&&r&&typeof r=="object"&&n.push(r);return n}a(gu,"styleBlocks");var q,V,mt,gt,ot,fa,rp,ha,op,da,sp,pa,ip,is,yu,ma,cp,ga,ap,ya,lp,xa,up,$t,se,ba,fp,va,hp,cs,xu,as,bu,Sa=class Sa extends ly{constructor(){super(...arguments);d(this,fa);d(this,ha);d(this,da);d(this,pa);d(this,is);d(this,ma);d(this,ga);d(this,ya);d(this,xa);d(this,$t);d(this,ba);d(this,va);d(this,cs);d(this,as);d(this,q,new Map);d(this,V,null);d(this,mt,null);d(this,gt,null);d(this,ot,null)}initialize(){y(this,q,new Map),h(this,cs,xu).call(this)}actions(){return{resolve:(t,n,e)=>h(this,fa,rp).call(this,t,n,e),requestFont:(t,n,e)=>h(this,ba,fp).call(this,t,n,e),hasFont:t=>h(this,va,hp).call(this,t),getFonts:()=>c(this,q),buildLinks:()=>h(this,ha,op).call(this)}}getters(){return{contextPaths:()=>[]}}};q=new WeakMap,V=new WeakMap,mt=new WeakMap,gt=new WeakMap,ot=new WeakMap,fa=new WeakSet,rp=a(function(t,n="400",e="normal"){if(!t||typeof t!="string")return t;let r=Xe(t),i=!1;for(let{name:l,source:u,url:f}of r)u==="system"||Dt(l)||h(this,$t,se).call(this,l,n,e,u||"google",f)&&(i=!0);return i&&h(this,as,bu).call(this),dy(t)},"#resolve"),ha=new WeakSet,op=a(function(){return yy(h(this,da,sp).call(this))},"#buildLinks"),da=new WeakSet,sp=a(function(){y(this,q,new Map);let t=this.inject("state");h(this,pa,ip).call(this,t);let n=t.get(["nodes"]);return n?.app&&h(this,is,yu).call(this,"app",n,null),c(this,q)},"#scanFonts"),pa=new WeakSet,ip=a(function(t){let n=t.get(["tokens"]);if(n){for(let[,e]of Object.entries(n))if(!(!e||e.$type!=="fontFamily"))for(let{name:r,source:i,url:l}of Xe(e.$value))i==="system"||Dt(r)||h(this,$t,se).call(this,r,"400","normal",i||"google",l)}},"#scanTokens"),is=new WeakSet,yu=a(function(t,n,e){let r=n[t];if(!r)return;let{families:i}=h(this,xa,up).call(this,r),l=e;if(h(this,ya,lp).call(this,r),i.size>0){for(let[f,p]of i)if(p.variants.size>0)for(let m of p.variants){let[,g]=m.split(","),v=m.startsWith("1,")?"italic":"normal";h(this,$t,se).call(this,f,g,v,p.source,p.url)}else h(this,$t,se).call(this,f,"400","normal",p.source,p.url);l=h(this,ma,cp).call(this,r)||[...i.keys()][0]}else if(l)for(let u of h(this,ga,ap).call(this,r)){let f=c(this,q).get(l),[,p]=u.split(","),m=u.startsWith("1,")?"italic":"normal";h(this,$t,se).call(this,l,p,m,f?.source||"google",f?.url)}if(Array.isArray(r.children))for(let u of r.children)h(this,is,yu).call(this,u,n,l)},"#walkNode"),ma=new WeakSet,cp=a(function(t){let n=gu(t?.style)[0];if(!n)return null;let e=mu(n);return e&&Xe(e).find(i=>i.source!=="system"&&!Dt(i.name))?.name||null},"#getDefaultFamily"),ga=new WeakSet,ap=a(function(t){if(!t?.style)return[];let n=new Set;for(let e of gu(t.style)){let r=la(e),i=ua(e);(r||i)&&n.add(aa(r||"400",i||"normal"));for(let[l,u]of Object.entries(e))if((l.startsWith(":")||l.startsWith("&"))&&u&&typeof u=="object"){let f=la(u),p=ua(u);(f||p)&&n.add(aa(f||"400",p||"normal"))}}return[...n]},"#extractVariantsOnly"),ya=new WeakSet,lp=a(function(t){if(Array.isArray(t?.textContent))for(let n of t.textContent){let e=n?.formats;if(!e?.fontFamily)continue;let r=Xe(e.fontFamily).find(l=>l.source!=="system"&&!Dt(l.name));if(!r)continue;let i=String(e.fontWeight??(e.bold?"700":"400"));h(this,$t,se).call(this,r.name,i,e.italic?"italic":"normal",r.source||"google",r.url)}},"#registerSegmentFonts"),xa=new WeakSet,up=a(function(t){let n=new Map;if(!t?.style)return{families:n};function e(r,i,l){if(!r)return;let u=Xe(r).find(f=>f.source!=="system"&&!Dt(f.name));u&&(n.has(u.name)||n.set(u.name,{source:u.source||"google",url:u.url,variants:new Set}),(i||l)&&n.get(u.name).variants.add(aa(i||"400",l||"normal")))}a(e,"record");for(let r of gu(t.style)){e(mu(r),la(r),ua(r));for(let[i,l]of Object.entries(r))(i.startsWith(":")||i.startsWith("&"))&&l&&typeof l=="object"&&e(mu(l),la(l),ua(l))}return{families:n}},"#extractNodeFonts"),$t=new WeakSet,se=a(function(t,n="400",e="normal",r="google",i){if(!t||Dt(t))return!1;let l=aa(n,e),u=!1;c(this,q).has(t)||(c(this,q).set(t,{source:r||"google",url:i,variants:new Set}),u=!0,console.log("[FontResolver] registered new font:",t,"@"+r));let f=c(this,q).get(t);return f.variants.has(l)||(f.variants.add(l),u=!0),u},"#registerFont"),ba=new WeakSet,fp=a(function(t,n="400",e="normal"){if(!t||typeof t!="string")return;let r=!1;for(let{name:i,source:l,url:u}of Xe(t))l==="system"||Dt(i)||h(this,$t,se).call(this,i,n,e,l||"google",u)&&(r=!0);r&&h(this,as,bu).call(this)},"#requestFont"),va=new WeakSet,hp=a(function(t){if(!t||typeof t!="string")return!1;let n=Xe(t);return n.length===0?c(this,q).has(t):n.some(({name:e,source:r})=>r!=="system"&&!Dt(e)&&c(this,q).has(e))},"#hasFont"),cs=new WeakSet,xu=a(function(){typeof document>"u"||(c(this,gt)||(y(this,gt,document.getElementById("jucie-fonts-preconnect-googleapis")),c(this,gt)||(y(this,gt,document.createElement("link")),c(this,gt).id="jucie-fonts-preconnect-googleapis",c(this,gt).rel="preconnect",c(this,gt).href="https://fonts.googleapis.com",document.head.appendChild(c(this,gt)))),c(this,ot)||(y(this,ot,document.getElementById("jucie-fonts-preconnect-gstatic")),c(this,ot)||(y(this,ot,document.createElement("link")),c(this,ot).id="jucie-fonts-preconnect-gstatic",c(this,ot).rel="preconnect",c(this,ot).href="https://fonts.gstatic.com",c(this,ot).crossOrigin="",document.head.appendChild(c(this,ot)))),c(this,V)||(y(this,V,document.getElementById("jucie-fonts")),c(this,V)||(y(this,V,document.createElement("link")),c(this,V).id="jucie-fonts",c(this,V).rel="stylesheet",document.head.appendChild(c(this,V)))),c(this,mt)||(y(this,mt,document.getElementById("jucie-fonts-custom")),c(this,mt)||(y(this,mt,document.createElement("style")),c(this,mt).id="jucie-fonts-custom",document.head.appendChild(c(this,mt)))))},"#ensureLinkElements"),as=new WeakSet,bu=a(function(){if(typeof document>"u")return;h(this,cs,xu).call(this);let t=ep(c(this,q));t?c(this,V).href!==t&&(c(this,V).href=t):c(this,V)&&c(this,V).removeAttribute("href");let n=np(c(this,q));c(this,mt)&&(c(this,mt).textContent=n)},"#updateFontLinks"),a(Sa,"FontResolver"),w(Sa,"manifest",{name:"FontResolver",namespace:"fontResolver"});var ss=Sa;var dp=a((s,o={})=>{try{let t=[js.configure(o),Js.configure(o),ri.configure(o),ys.configure(o),ta.configure(o),hi.configure(o),_i.configure(o),Gc.configure(o),qc.configure(o),qs.configure(o),Ri.configure(o)];return o.embedded||t.push(ss.configure(o)),o.view==="design"&&(t.push(Ic.configure(o)),t.push(Xi.configure(o)),t.push(Lc.configure({...o,conversions:Dd}))),s.install(...t)}catch(t){return console.error("createRuntime error",t),null}},"createRuntime");var xy=new Set(["true","false","null","undefined","this","return","if","else","for","while","function","var","let","const","new","typeof","instanceof","Array","Object","String","Number","Boolean","Date","Math","JSON","console","window","document"]);function pp(s){if(!s)return[];let o=s.matchAll(/(?<![.\w])([a-zA-Z_$][\w]*)/g);return[...new Set([...o].map(n=>n[1]))].filter(n=>!xy.has(n))}a(pp,"parseDependencies");var mp=`function (ctx) {
50
+ return true
51
+ }`;var ls=`function (ctx, event) {
52
+
53
+ }`;function gp(s){return s==null||s===""?null:ef(s)}a(gp,"validateCode");function by(s){return s==null?null:!Array.isArray(s)||s.length===0?"binding must be a non-empty array of strings":s.every(o=>typeof o=="string"&&o.length>0)?null:"every segment in binding must be a non-empty string"}a(by,"validateBinding");function yp(s){let o={...s,error:null};switch(o.mode){case"code":o.error=gp(o.code);break;case"computed":o.error=gp(o.computed);break;case"binding":o.error=by(o.binding);break;case"value":default:break}return o}a(yp,"validateDescriptor");var vy=new Set(["value","binding","computed","code"]),Sy=a(()=>({name:null,mode:"value",value:null,binding:null,computed:null,code:null,error:null,removable:!0}),"DEFAULTS");function J(s={}){let o=Sy();return s.name!=null&&(o.name=s.name),s.value!==void 0&&(o.value=s.value),s.binding!=null&&(o.binding=s.binding),s.computed!=null&&(o.computed=Wt(s.computed,"computed")),s.code!=null&&(o.code=Wt(s.code,"code")),s.mode&&vy.has(s.mode)&&(o.mode=s.mode),o.mode==="computed"&&!o.computed&&(o.computed=mp),o.mode==="code"&&!o.code&&(o.code=ls),o.mode==="computed"&&o.computed&&(o.dependencies=pp(o.computed)),s.removable===!1&&(o.removable=!1),yp(o)}a(J,"createDescriptor");function vu({name:s,mode:o,...t}={}){return J({name:s,mode:o??"value",...t})}a(vu,"createProp");function xp({name:s,mode:o,...t}={}){return J({name:s,mode:o??"binding",...t})}a(xp,"createEvent");var Ze="nd_isolated";function bp({library:s=null,name:o},t={},n=[],{id:e=Ze,classBinding:r,bindings:i={}}={}){let l=[...Object.entries(t).filter(([p,m])=>m!==void 0&&!(p in i)).map(([p,m])=>vu({name:p,mode:"value",value:m})),...Object.entries(i).map(([p,m])=>vu({name:p,mode:"binding",binding:m}))],u=n.map(p=>xp({name:p,mode:"code",code:`function (ctx, ...args) { return ctx.$isolated?.emit(${JSON.stringify(p)}, args, ${JSON.stringify(e)}) }`})),f={type:"instance",component:o,library:s,id:e,props:l,events:u};return r&&(f.className=[{mode:"binding",binding:r}]),f}a(bp,"isolatedInstance");var hr,wa,fs,Su,ka,vp,$a=class $a extends ky{constructor(){super(...arguments);d(this,fs);d(this,ka);w(this,"runtime",null);w(this,"apps",new Map);d(this,hr,"__jucieDesignConsoleFilterOrig");d(this,wa,[/changing the uncontrolled .+ state .+ to be controlled/i,/changing from uncontrolled to controlled/i,/A component is changing an uncontrolled input to be controlled/i,/A component is changing a controlled input to be uncontrolled/i,/MUI: /])}initialize(t,n){h(this,ka,vp).call(this,n?.view==="design");let e=n?.scene?wy.create():t("createChild")("state");if(this.runtime=dp(e,n),!this.runtime)throw new Error("SceneCompiler: runtime construction failed")}getters(){return{currentRoute:()=>this.runtime.router.currentRoute,pageHead:()=>this.runtime.router.pageHead,pageCss:()=>this.runtime.styleContext.cssText,tokensCss:()=>this.runtime.tokenResolver.cssText,libraryCss:()=>this.runtime.modules.libraryStylesheets,snapshot:()=>this.runtime.context.snapshot}}actions(t,n){return{create:async(e,r,i={})=>this.runtime.registry.createApp(e,r,i),compileStyles:()=>this.runtime.styleContext.compileAll(),isolate:async(e,r,i,{onEmit:l,...u}={})=>(this.runtime.context.onIsolatedEmit(Ze,(f,p)=>l?.(f,p)),t("state").set(["nodes",Ze],h(this,fs,Su).call(this,r,i)),this.runtime.registry.createApp(e,Ze,{...u,isolated:!0})),setIsolated:(e,r)=>{t("state").set(["nodes",Ze],h(this,fs,Su).call(this,e,r))},describeComponent:e=>this.runtime.registry.describeComponent(e?.library,e?.name),loadSources:e=>this.runtime.registry.loadSources(e),loadPrototypes:e=>this.runtime.registry.loadPrototypes(e),swapCompiledModule:(e,r,i)=>this.runtime.modules.swapCompiledModule(e,r,i),getMeta:()=>this.runtime.components.list(),onComponentsChange:e=>this.runtime.components.onChange(e),getId:e=>this.runtime.registry.getActorId(e),getIds:e=>e.map(r=>this.runtime.registry.getActorId(r)),projectJsx:(e,r)=>this.runtime.jsx.projectJsx(e,r),projectPuppetJsx:(e,r)=>this.runtime.jsx.projectPuppetJsx(e,r),getEditTarget:e=>this.runtime.nodeGraph?.getEditTarget(e),addNodeGraphListener:e=>this.runtime.nodeGraph?.addListener(e),removeNodeGraphListener:e=>this.runtime.nodeGraph?.removeListener(e),addRenderListener:e=>this.runtime.nodeGraph?.addRenderListener(e),isNodeGraphBusy:()=>this.runtime.nodeGraph?.isBusy()??!1,startNodeGraph:()=>this.runtime.nodeGraph?.startNodeGraph(),disableNodeGraph:()=>this.runtime.nodeGraph?.disableNodeGraph(),pauseNodeGraph:()=>this.runtime.nodeGraph?.pauseNodeGraph(),resumeNodeGraph:()=>this.runtime.nodeGraph?.resumeNodeGraph(),pauseNodeGraphMeasuring:()=>this.runtime.nodeGraph?.pauseMeasuring(),resumeNodeGraphMeasuring:()=>this.runtime.nodeGraph?.resumeMeasuring(),forceNodeGraph:()=>this.runtime.nodeGraph?.forceNodeGraph(),requestNodeGraphRids:(e,r)=>this.runtime.nodeGraph?.requestRids(e,r),getNodeGraphManifest:()=>this.runtime.nodeGraph?.getManifest()??{rids:[],digest:null},getNodeGraphDigest:()=>this.runtime.nodeGraph?.getDigest()??null,getNodeGraphStats:()=>this.runtime.nodeGraph?.getStats()??null,resetNodeGraphStats:()=>this.runtime.nodeGraph?.resetStats(),setNodeGraphProfiling:e=>this.runtime.nodeGraph?.setProfiling(e),getNodeGraph:()=>this.runtime.nodeGraph?.getNodeGraph()??{},measureContentHeights:e=>this.runtime.nodeGraph?.measureContentHeights(e)??{},getFocalRid:()=>this.runtime.nodeGraph?.getFocalRid()??null,setSelectedRids:e=>this.runtime.nodeGraph?.setSelectedRids(e),getSelectedRids:()=>this.runtime.nodeGraph?.getSelectedRids()??[],setFocalRid:e=>this.runtime.nodeGraph?.setFocalRid(e),setEditingRid:e=>this.runtime.nodeGraph?.setEditingRid(e),convertNodes:()=>this.runtime.converter?.convert()??[],setViewport:e=>this.runtime.viewport?.set(e),getViewport:()=>this.runtime.viewport?.get()??null,setGrid:e=>this.runtime.viewport?.setGrid(e),setBackground:e=>this.runtime.viewport?.setBackground(e),animate:(e,r,i)=>this.runtime.animator.play(e,r,i),cancelAnimation:(e,r)=>this.runtime.animator.cancel(e,r),getAnimations:()=>this.runtime.animator.getLoadedAnimations(),seekAnimation:(e,r)=>this.runtime.animator.seekAnimation(e,r),navigate:e=>this.runtime?.router?.navigate(e),back:()=>this.runtime?.router?.back(),forward:()=>this.runtime?.router?.forward()}}};hr=new WeakMap,wa=new WeakMap,fs=new WeakSet,Su=a(function(t,n){let e=this.runtime.registry.describeComponent(t?.library,t?.name)?.eventNames??[];return bp(t,n,e)},"#isolatedInstance"),ka=new WeakSet,vp=a(function(t){if(typeof globalThis>"u"||typeof console>"u")return;if(!t){if(!globalThis.__jucieDesignConsoleFilter)return;let e=globalThis[c(this,hr)];if(e)for(let r of["warn","error"])typeof e[r]=="function"&&(console[r]=e[r]);delete globalThis[c(this,hr)],globalThis.__jucieDesignConsoleFilter=!1;return}if(globalThis.__jucieDesignConsoleFilter)return;globalThis.__jucieDesignConsoleFilter=!0;let n={};for(let e of["warn","error"])n[e]=console[e].bind(console),console[e]=(...r)=>{let i=r.map(l=>{if(typeof l=="string")return l;if(l instanceof Error)return l.message??String(l);try{return String(l)}catch{return""}}).join(" ");c(this,wa).some(l=>l.test(i))||n[e](...r)};globalThis[c(this,hr)]=n},"#setDesignConsoleFilter"),a($a,"SceneCompiler"),w($a,"manifest",{name:"Scene Compiler",namespace:"sceneCompiler",version:"1.0.0",description:"Scene compiler extension",author:"",license:"MIT",homepage:""});var us=$a;import{createContext as Ay,useContext as Cy,forwardRef as Sp,createElement as ku}from"react";import{createRoot as RN,hydrateRoot as NN}from"react-dom/client";var gN=Symbol("@jucie/runtime");import{useComputed as MN}from"@jucie.io/reactive/react";import{createElement as DN}from"react";import{createRoot as BN}from"react-dom/client";import{createComputed as HN}from"@jucie.io/reactive";var wp=Ay(null);function Ey(...s){return o=>{for(let t of s)t&&(typeof t=="function"?t(o):t.current=o)}}a(Ey,"composeRefs");function Ry(s,o){let t={...s||{}};if(!o)return t;for(let n in o){let e=t[n],r=o[n];n==="className"?t.className=[e,r].filter(Boolean).join(" "):n==="style"?t.style=e||r?{...r,...e}:void 0:/^on[A-Z]/.test(n)&&typeof e=="function"&&typeof r=="function"?t[n]=(...i)=>{e(...i),r(...i)}:n==="ref"?t.ref=e?Ey(r,e):r:t[n]=r}return t}a(Ry,"mergeInjected");var $u=Sp(a(function({as:o="div",children:t,...n},e){let r=Cy(wp),i=e?{...n,ref:e}:n;return r?ku(o,Ry(i,r),t):ku(o,i,t)},"JucieRoot"));$u.$jucieRoot=!0;var wu=new Map,Ny=new Proxy({},{get(s,o){if(typeof o=="string"){if(!wu.has(o)){let t=Sp((n,e)=>ku($u,{as:o,...n,ref:e}));t.displayName=`Jucie.${o}`,t.$jucieRoot=!0,wu.set(o,t)}return wu.get(o)}}});var kp={__version:1,type:"node",render:{name:null,mode:"value",value:!0,binding:null,computed:null,code:null,error:null},name:null,draggable:!0,resizable:!0,selectable:!0,locked:[],dimensions:[],expandedStyles:[],childrenType:null,repeat:null,contextName:null,attributes:[],events:[],className:[],states:[],lifecycle:[],animations:[],style:{}};var $p={type:"element",ex:"node",style:{}};var Ap={type:"container",ex:"node",childrenType:"*",bounds:{width:0,height:0,x:0,y:0}};var Au={};Rt(Au,{article:()=>Iy,aside:()=>Dy,div:()=>jy,footer:()=>My,form:()=>By,header:()=>Oy,layout:()=>Ty,main:()=>Fy,nav:()=>Ly,section:()=>Py,template:()=>_y});var Ty={ex:"element",dimensions:["width","height"],childrenType:"*",children:[]},jy={ex:"layout",tagName:"div"},Py={ex:"layout",tagName:"section"},Oy={ex:"layout",tagName:"header"},My={ex:"layout",tagName:"footer"},Iy={ex:"layout",tagName:"article"},Fy={ex:"layout",tagName:"main"},Dy={ex:"layout",tagName:"aside"},Ly={ex:"layout",tagName:"nav"},By={ex:"layout",tagName:"form"},_y={ex:"layout",tagName:"template",html:"<div>HTML template</div>",style:{width:"250px",height:"100px"}};var Cu={};Rt(Cu,{blockquote:()=>tx,br:()=>ax,codeElement:()=>nx,em:()=>ox,h1:()=>Uy,h2:()=>Wy,h3:()=>Ky,h4:()=>qy,h5:()=>zy,h6:()=>Vy,heading:()=>Hy,hr:()=>cx,label:()=>Zy,mark:()=>ix,p:()=>Yy,paragraph:()=>Jy,pre:()=>ex,richText:()=>Qy,small:()=>sx,span:()=>Xy,strong:()=>rx,text:()=>Gy});var Gy={ex:"element",dimensions:["width"],childrenType:"text",textContent:C("")},Hy={ex:"text",textContent:C(""),style:{margin:"0"}},Uy={ex:"heading",tagName:"h1",textContent:C("Heading 1")},Wy={ex:"heading",tagName:"h2",textContent:C("Heading 2")},Ky={ex:"heading",tagName:"h3",textContent:C("Heading 3")},qy={ex:"heading",tagName:"h4",textContent:C("Heading 4")},zy={ex:"heading",tagName:"h5",textContent:C("Heading 5")},Vy={ex:"heading",tagName:"h6",textContent:C("Heading 6")},Jy={ex:"text",textContent:C("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."),style:{margin:"0"}},Yy={ex:"paragraph",tagName:"p"},Xy={ex:"text",tagName:"span",textContent:C("Lorem ipsum")},Zy={ex:"text",tagName:"label",textContent:C("Label text")},Qy={ex:"text",tagName:"div",textContent:C("Rich text. Press Enter for a new paragraph.")},tx={ex:"text",tagName:"blockquote",textContent:C("Blockquote text")},ex={ex:"text",tagName:"pre",textContent:C("Preformatted text")},nx={ex:"text",tagName:"code",textContent:C("code")},rx={ex:"text",tagName:"strong",textContent:C("Bold text")},ox={ex:"text",tagName:"em",textContent:C("Emphasized text")},sx={ex:"text",tagName:"small",textContent:C("Small text")},ix={ex:"text",tagName:"mark",textContent:C("Highlighted text")},cx={ex:"element",tagName:"hr",dimensions:["width"],childrenType:"none"},ax={ex:"element",tagName:"br",dimensions:["width"],childrenType:"none"};var Eu={};Rt(Eu,{a:()=>fx,button:()=>ux,details:()=>hx,dialog:()=>px,interactive:()=>lx,summary:()=>dx});var lx={ex:"element",interactive:!0,childrenType:"text",style:{width:"auto",height:"auto",cursor:"pointer"}},ux={ex:"interactive",tagName:"button",dimensions:["width","height"],textContent:C("Button text"),style:{"background-color":"#e9e9e9",border:"1px solid #d5d5d5","border-radius":"4px",padding:"6px 12px",width:"120px",height:"auto"}},fx={ex:"interactive",tagName:"a",textContent:C("Link text"),destination:{type:"page",id:null,path:null,target:null,replace:!1,params:null,query:null}},hx={ex:"interactive",tagName:"details",childrenType:"*",dimensions:["width","height"],style:{cursor:"default"}},dx={ex:"interactive",tagName:"summary",textContent:C("Summary text")},px={ex:"interactive",tagName:"dialog",childrenType:"*",dimensions:["width","height"],style:{cursor:"default",width:"300px",height:"200px"}};var Nu={};Rt(Nu,{checkbox:()=>Cx,color:()=>$x,date:()=>Ax,email:()=>xx,file:()=>Rx,hidden:()=>Nx,input:()=>gx,number:()=>vx,password:()=>bx,phone:()=>wx,radio:()=>Ex,range:()=>kx,search:()=>Sx,select:()=>Tx,textInput:()=>yx,textarea:()=>jx});function Cp({mode:s,value:o,...t}={}){return J({mode:s??"value",value:Array.isArray(o)?o:[],...t})}a(Cp,"createOptions");var Q=a(s=>J({name:"type",mode:"value",value:s,removable:!1}),"type"),mx=a(()=>J({name:"value",mode:"value",value:"",removable:!1}),"value"),tt=a(()=>J({name:"model",mode:"binding",binding:null,removable:!0}),"model"),At=a(()=>J({name:"onInput",mode:"code",code:ls,removable:!1}),"onInput"),Ru=a(()=>J({name:"onChange",mode:"code",code:ls,removable:!1}),"onChange"),gx={ex:"element",tagName:"input",dimensions:["width"],childrenType:"none",style:{width:"auto",height:"auto"}},yx={ex:"input",attributes:[Q("text"),tt()],events:[At()]},xx={ex:"input",attributes:[Q("email"),tt()],events:[At()]},bx={ex:"input",attributes:[Q("password"),tt()],events:[At()]},vx={ex:"input",attributes:[Q("number"),tt()],events:[At()]},Sx={ex:"input",attributes:[Q("search"),tt()],events:[At()]},wx={ex:"input",attributes:[Q("tel"),tt()],events:[At()]},kx={ex:"input",attributes:[Q("range"),tt()],events:[At()]},$x={ex:"input",attributes:[Q("color"),tt()],events:[At()]},Ax={ex:"input",attributes:[Q("date"),tt()],events:[At()]},Cx={ex:"input",attributes:[Q("checkbox"),tt()],events:[Ru()]},Ex={ex:"input",attributes:[Q("radio"),tt()],events:[Ru()]},Rx={ex:"input",attributes:[Q("file")]},Nx={ex:"input",attributes:[Q("hidden"),mx()]},Tx={ex:"input",tagName:"select",childrenType:"options",options:Cp(),attributes:[tt()],events:[Ru()]},jx={ex:"input",tagName:"textarea",childrenType:"text",dimensions:["width","height"],attributes:[tt()],events:[At()]};var Tu={};Rt(Tu,{audio:()=>Mx,figcaption:()=>Dx,figure:()=>Fx,iframe:()=>Lx,img:()=>Ox,media:()=>Px,video:()=>Ix});var Ep=J({name:"controls",mode:"value",value:!0,removable:!1}),Px={ex:"element",dimensions:["width","height"],style:{display:"block",width:"auto",height:"auto","object-fit":"contain"}},Ox={ex:"media",tagName:"img",childrenType:"none"},Mx={ex:"media",tagName:"audio",childrenType:"none",dimensions:["width"],attributes:[Ep],style:{width:"320px"}},Ix={ex:"media",tagName:"video",childrenType:"*",attributes:[Ep],style:{width:"320px",height:"240px"}},Fx={ex:"media",tagName:"figure",childrenType:"*",dimensions:["width","height"],style:{width:"auto",height:"auto",margin:"0"}},Dx={ex:"media",tagName:"figcaption",childrenType:"text"},Lx={ex:"media",tagName:"iframe",childrenType:"none",dimensions:["width","height"]};var ju={};Rt(ju,{dd:()=>Wx,dl:()=>Hx,dt:()=>Ux,li:()=>Gx,ol:()=>Bx,ul:()=>_x});var Bx={ex:"element",tagName:"ol",dimensions:["width"],childrenType:["li"],children:[]},_x={ex:"element",tagName:"ul",dimensions:["width"],childrenType:["li"],children:[]},Gx={ex:"element",tagName:"li",dimensions:["width"],childrenType:"text"},Hx={ex:"element",tagName:"dl",dimensions:["width"],childrenType:["dt","dd"],children:[]},Ux={ex:"element",tagName:"dt",dimensions:["width"],childrenType:"text"},Wx={ex:"element",tagName:"dd",dimensions:["width"],childrenType:"text"};var Pu={};Rt(Pu,{table:()=>Kx,tbody:()=>zx,td:()=>Xx,tfoot:()=>Vx,th:()=>Yx,thead:()=>qx,tr:()=>Jx});var Kx={ex:"element",tagName:"table",dimensions:["width"],childrenType:["thead","tbody","tfoot","tr"],children:[]},qx={ex:"element",tagName:"thead",childrenType:["tr"],children:[]},zx={ex:"element",tagName:"tbody",childrenType:["tr"],children:[]},Vx={ex:"element",tagName:"tfoot",childrenType:["tr"],children:[]},Jx={ex:"element",tagName:"tr",childrenType:["td","th"],children:[]},Yx={ex:"element",tagName:"th",childrenType:"*"},Xx={ex:"element",tagName:"td",childrenType:"*"};var Ou={};Rt(Ou,{fieldset:()=>Zx,legend:()=>Qx,meter:()=>tb,progress:()=>eb});var Zx={ex:"element",tagName:"fieldset",dimensions:["width","height"],childrenType:"children",style:{border:"1px solid #cccccc",padding:"16px"}},Qx={ex:"element",tagName:"legend",childrenType:"text"},tb={ex:"element",tagName:"meter",childrenType:"none"},eb={ex:"element",tagName:"progress",childrenType:"none"};var Mu={};Rt(Mu,{slot:()=>nb});var nb={type:"slot",ex:"element",tagName:"slot",dimensions:["width","height"],childrenType:"*"};var Rp={type:"frame",ex:"container",tagName:"div",bounds:{top:0,left:0,width:360,height:740,x:void 0,y:void 0},style:{background:"white"},children:[],route:{path:null}};var Np={type:"instance",ex:"node",component:null,library:null,props:[],childrenType:"component"};var Tp={type:"code",ex:"node",body:"",language:"js",params:[],returns:null};var jp={type:"animation",ex:"node",scope:"node",name:null,duration:300,easing:"ease",fill:"none",direction:"normal",iterations:1,delay:0,endDelay:0,iterationStart:0,composite:"replace",keyframes:[]};var Pp={type:"component",ex:"container",name:"",library:"local",props:[],emits:[],data:[],children:[]};var Op={type:"graphic",ex:"node",tagName:"div",props:{},template:[],style:{margin:"0",width:"100px",height:"100px"}};var Ca=globalThis,Mp=Symbol.for("\u26D4\uFE0Funique-id-counter"),Ip=Symbol.for("\u26D4\uFE0Funique-id-session");Ca[Mp]||(Ca[Mp]=0);Ca[Ip]||(Ca[Ip]=Math.random().toString(36).slice(2,6));var Aa={node:kp,element:$p,container:Ap,...Au,...Cu,...Eu,...Nu,...Tu,...ju,...Pu,...Ou,...Mu,frame:Rp,instance:Np,code:Tp,animation:jp,component:Pp,graphic:Op};var Fp=a((s="temp")=>{let o=document.getElementById(s);return o||(o=document.createElement("div"),o.id=s,document.body.appendChild(o)),o},"initializeNode");var Dp=a(async(s,{config:o={}}={})=>{let{scene:t}=await import("jucie:scene"),n=Fp(o.$el||"app");s.install(us.configure({...o,view:o.view||"production",scene:t})),s.sceneCompiler.loadPrototypes(Aa);let e=(await import("jucie:modules"))?.default??[];for(let{name:i,type:l,module:u}of e)s.sceneCompiler.swapCompiledModule(i,l,u);let r=n.hasAttribute("data-ssr")?{state:JSON.parse(document.getElementById("jucie-state")?.textContent||"{}")}:void 0;return await s.sceneCompiler.create("app",void 0,{hydrate:r}),o},"createProductionBootstrap");Dp(ib.create(),{config:cb});
@@ -0,0 +1 @@
1
+ var a=Object.defineProperty;var e=(t,n)=>a(t,"name",{value:n,configurable:!0});var u=[],o=null,p=e(()=>o?[o,...u]:u,"allSetups");function d(t){return t}e(d,"setup");function f(t){typeof t=="function"&&u.push(t)}e(f,"registerSetup");function x(t){o=typeof t=="function"?t:null}e(x,"setProjectMain");async function s(){let t=await import("jucie:main");if(!(t&&"__jucieMainStub"in t&&t.__jucieMainStub)){if(typeof t?.default!="function")throw new Error("[jucie] src/main.js must default-export setup(...), e.g. export default setup((app) => { ... })");f(t.default)}}e(s,"loadProjectMain");function j(t){for(let n of p())n(t)}e(j,"runSetup");function S(t){return p().reduceRight((n,c)=>{let r=c(n);return r===void 0?n:r},t)}e(S,"applySetupWrappers");var i=!1;async function y(){i||(i=!0,await s())}e(y,"ensureProjectMain");export{e as a,d as b,x as c,s as d,j as e,S as f,y as g};
@@ -0,0 +1 @@
1
+ import{a as c}from"./chunk-IIZ233AH.js";import{a as n,e as i,g as p}from"./chunk-6BTG63JN.js";import{shallowRef as f,ref as d,createApp as v,createSSRApp as x,defineComponent as A,h as m}from"vue";import{createApp as N,ref as w,shallowRef as H,defineComponent as U}from"vue";import{createComputed as $}from"@jucie.io/reactive/vue";globalThis.__VUE_OPTIONS_API__??(globalThis.__VUE_OPTIONS_API__=!0);globalThis.__VUE_PROD_DEVTOOLS__??(globalThis.__VUE_PROD_DEVTOOLS__=!1);globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__??(globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1);function _(o,e,...u){if(e&&typeof e=="object"&&!Array.isArray(e)&&"className"in e){let{className:r,...t}=e;return t.class=t.class?`${t.class} ${r}`:r,m(o,t,...u)}return m(o,e,...u)}n(_,"createElement");function j(){return d(null)}n(j,"createRef");function y(o){return o()}n(y,"renderComputed");function D(o,e,{hydrate:u=!1}={}){let r=f(null),t=f(null),s=A({render:()=>r.value?e(r.value):null}),a=(u?x:v)({render:()=>t.value?_(t.value):null});return{jucie:s,async mount(l){return await p(),i(a),r.value=l,t.value=s,a.mount(o),this},navigate(l){r.value=l},unmount(){a.unmount()}}}n(D,"createHost");function M(){return{}}n(M,"hostRootProps");function V(o,e,u){let{dom:r,props:t}=c(e,u),{key:s,...a}=r||{};return _(o,{...t,...a,key:s})}n(V,"renderSource");export{_ as a,j as b,y as c,D as d,M as e,V as f,N as g,w as h,H as i,U as j,$ as k};
@@ -0,0 +1 @@
1
+ import{a as s}from"./chunk-6BTG63JN.js";var r=new Set(["className","style","id","ref","key"]),p=new Set(["key","ref"]);function u(e,a){let o={},n={};if(!e)return{dom:o,props:n};let c=a?.props,i=c?.length?new Set(c.map(t=>typeof t=="string"?t:t?.name).filter(t=>t&&!p.has(t))):null;for(let t in e)i?.has(t)?n[t]=e[t]:r.has(t)||t.startsWith("data-")||/^on[A-Z]/.test(t)?o[t]=e[t]:n[t]=e[t];return{dom:o,props:n}}s(u,"splitInstanceOverrides");var l=Symbol("@jucie/runtime"),E=s(e=>{globalThis[l]=e},"provideJucie"),S=s(()=>globalThis[l],"useJucie");export{u as a,E as b,S as c};
@@ -0,0 +1 @@
1
+ import{a as s,f as at,g as ct}from"./chunks/chunk-6BTG63JN.js";import{h as $t}from"preact";import{options as m,h as wt,Fragment as M}from"preact";var kt="diffed",lt="__c",V="__s",L="__c",mt="__k",X="__d",C="__s",st=/[\s\n\\/='"\0<>]/,ut=/^(xlink|xmlns|xml)([A-Z])/,St=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,At=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,Ct=new Set(["draggable","spellcheck"]);function yt(t){t.__g!==void 0?t.__g|=8:t[X]=!0}s(yt,"v");function jt(t){t.__g!==void 0?t.__g&=-9:t[X]=!1}s(jt,"m");function ft(t){return t.__g!==void 0?!!(8&t.__g):t[X]===!0}s(ft,"y");var Lt=/["&<]/;function U(t){if(t.length===0||Lt.test(t)===!1)return t;for(var r=0,e=0,n="",a="";e<t.length;e++){switch(t.charCodeAt(e)){case 34:a="&quot;";break;case 38:a="&amp;";break;case 60:a="&lt;";break;default:continue}e!==r&&(n+=t.slice(r,e)),n+=a,r=e+1}return e!==r&&(n+=t.slice(r,e)),n}s(U,"g");var pt={},Tt=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),Et=/[A-Z]/g;function Mt(t){var r="";for(var e in t){var n=t[e];if(n!=null&&n!==""){var a=e[0]=="-"?e:pt[e]||(pt[e]=e.replace(Et,"-$&").toLowerCase()),l=";";typeof n!="number"||a.startsWith("--")||Tt.has(a)||(l="px;"),r=r+a+":"+n+l}}return r||void 0}s(Mt,"w");function ht(){this.__d=!0}s(ht,"C");function Pt(t,r){return{__v:t,context:r,props:t.props,setState:ht,forceUpdate:ht,__d:!0,__h:new Array(0)}}s(Pt,"A");var Y,k,D,P;var I={},dt=[],j=Array.isArray,G=Object.assign,h="",J="<!--$s-->",K="<!--/$s-->";function Q(t){return typeof t=="string"?J+t+K:j(t)?(t.unshift(J),t.push(K),t):t&&typeof t.then=="function"?t.then(Q):J+t+K}s(Q,"B");function gt(t,r,e){var n=m[V];m[V]=!0,Y=m.__b,k=m[kt],D=m.__r,P=m.unmount;var a=wt(M,null);a[mt]=[t];try{var l=g(t,r||I,!1,void 0,a,!1,e);return j(l)?l.join(h):l}catch(v){throw v.then?new Error('Use "renderToStringAsync" for suspenseful rendering.'):v}finally{m[lt]&&m[lt](t,dt),m[V]=n,dt.length=0}}s(gt,"I");function vt(t,r){var e,n=t.type,a=!0;return t[L]?(a=!1,(e=t[L]).state=e[C]):e=new n(t.props,r),t[L]=e,e.__v=t,e.props=t.props,e.context=r,yt(e),e.state==null&&(e.state=I),e[C]==null&&(e[C]=e.state),n.getDerivedStateFromProps?e.state=G({},e.state,n.getDerivedStateFromProps(e.props,e.state)):a&&e.componentWillMount?(e.componentWillMount(),e.state=e[C]!==e.state?e[C]:e.state):!a&&e.componentWillUpdate&&e.componentWillUpdate(),D&&D(t),e.render(e.props,e.state,r)}s(vt,"O");function g(t,r,e,n,a,l,v){if(t==null||t===!0||t===!1||t===h)return h;var W=typeof t;if(W!="object")return W=="function"?h:W=="string"?U(t):t+h;if(j(t)){var _,b=h;a[mt]=t;for(var q=t.length,H=0;H<q;H++){var z=t[H];if(z!=null&&typeof z!="boolean"){var tt,T=g(z,r,e,n,a,l,v);typeof T=="string"?b+=T:(_||(_=new Array(q)),b&&_.push(b),b=h,j(T)?(tt=_).push.apply(tt,T):_.push(T))}}return _?(b&&_.push(b),_):b}if(t.constructor!==void 0)return h;t.__=a,Y&&Y(t);var u=t.type,f=t.props;if(typeof u=="function"){var B,o,p,Z=r;if(u===M){if("tpl"in f){for(var $=h,E=0;E<f.tpl.length;E++)if($+=f.tpl[E],f.exprs&&E<f.exprs.length){var S=f.exprs[E];if(S==null)continue;typeof S!="object"||S.constructor!==void 0&&!j(S)?$+=S:$+=g(S,r,e,n,t,l,v)}return $}if("UNSTABLE_comment"in f)return"<!--"+U(f.UNSTABLE_comment)+"-->";o=f.children}else{if((B=u.contextType)!=null){var et=r[B.__c];Z=et?et.props.value:B.__}var rt=u.prototype&&typeof u.prototype.render=="function";if(rt)o=vt(t,Z),p=t[L];else{t[L]=p=Pt(t,Z);for(var _t=0;ft(p)&&_t++<25;){jt(p),D&&D(t);try{o=u.call(p,f,Z)}catch(d){throw l&&d&&typeof d.then=="function"&&(t._suspended=!0),d}}yt(p)}if(p.getChildContext!=null&&(r=G({},r,p.getChildContext())),rt&&m.errorBoundaries&&(u.getDerivedStateFromError||p.componentDidCatch)){o=o!=null&&o.type===M&&o.key==null&&o.props.tpl==null?o.props.children:o;try{return g(o,r,e,n,t,l,!1)}catch(d){return u.getDerivedStateFromError&&(p[C]=u.getDerivedStateFromError(d)),p.componentDidCatch&&p.componentDidCatch(d,I),ft(p)?(o=vt(t,r),(p=t[L]).getChildContext!=null&&(r=G({},r,p.getChildContext())),g(o=o!=null&&o.type===M&&o.key==null&&o.props.tpl==null?o.props.children:o,r,e,n,t,l,v)):h}finally{k&&k(t),P&&P(t)}}}o=o!=null&&o.type===M&&o.key==null&&o.props.tpl==null?o.props.children:o;try{var nt=g(o,r,e,n,t,l,v);return k&&k(t),m.unmount&&m.unmount(t),t._suspended?Q(nt):nt}catch(d){if(!l&&v&&v.onError){var ot=s(function R(F){return v.onError(F,t,function(A,xt){try{return g(A,r,e,n,xt,l,v)}catch(bt){return R(bt)}})},"e")(d);if(ot!==void 0)return ot;var it=m.__e;return it&&it(d,t),h}if(!l||!d||typeof d.then!="function")throw d;return d.then(s(function R(){try{var F=g(o,r,e,n,t,l,v);return t._suspended?Q(F):F}catch(A){if(!A||typeof A.then!="function")throw A;return A.then(R)}},"e"))}}var x,w="<"+u,y=h;for(var i in f){var c=f[i];if(typeof(c=Zt(c)?c.value:c)!="function"||i==="class"||i==="className"){switch(i){case"children":x=c;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in f)continue;i="for";break;case"className":if("class"in f)continue;i="class";break;case"defaultChecked":i="checked";break;case"defaultSelected":i="selected";break;case"defaultValue":case"value":switch(i="value",u){case"textarea":x=c;continue;case"select":n=c;continue;case"option":n!=c||"selected"in f||(w+=" selected")}break;case"dangerouslySetInnerHTML":y=c&&c.__html;continue;case"style":typeof c=="object"&&(c=Mt(c));break;case"acceptCharset":i="accept-charset";break;case"httpEquiv":i="http-equiv";break;default:if(st.test(i))continue;ut.test(i)?i=i.replace(ut,"$1:$2").toLowerCase():i[4]!=="-"&&!Ct.has(i)||c==null?e?At.test(i)&&(i=i==="panose1"?"panose-1":i.replace(/([A-Z])/g,"-$1").toLowerCase()):St.test(i)&&(i=i.toLowerCase()):c+=h}c!=null&&c!==!1&&(w=c===!0||c===h?w+" "+i:w+" "+i+'="'+(typeof c=="string"?U(c):c+h)+'"')}}if(st.test(u))throw new Error(u+" is not a valid HTML tag name in "+w+">");if(y||(typeof x=="string"?y=U(x):x!=null&&x!==!1&&x!==!0&&(y=g(x,r,u==="svg"||u!=="foreignObject"&&e,n,t,l,v))),k&&k(t),P&&P(t),!y&&Dt.has(u))return w+"/>";var O="</"+u+">",N=w+">";return j(y)?[N].concat(y,[O]):typeof y!="string"?[N,y,O]:N+y+O}s(g,"R");var Dt=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function Zt(t){return t!==null&&typeof t=="object"&&typeof t.peek=="function"&&"value"in t}s(Zt,"J");function Ot(t,r){let e=null,n=s(()=>r(e),"jucie");return{jucie:n,async mount(a){return await ct(),e=a,this},navigate(a){e=a},unmount(){},renderToString(){return gt(at($t(n)))}}}s(Ot,"createServerHost");export{Ot as createServerHost};
@@ -0,0 +1 @@
1
+ import{a as i,b as h,c as y}from"./chunks/chunk-IIZ233AH.js";import{a as e,b as d,c as l,d as x,f as c,g as m}from"./chunks/chunk-6BTG63JN.js";import{render as j,hydrate as v,h as f}from"preact";import{useComputed as I}from"@jucie.io/reactive/preact";import{render as H,h as K}from"preact";import{useSyncExternalStore as q,useRef as z}from"preact/compat";import{createComputed as D}from"@jucie.io/reactive";function R(){return{current:null}}e(R,"createRef");function g(r){return I(r)}e(g,"renderComputed");function J(r,s,{hydrate:a=!1}={}){let o=null,n=a,p=e(()=>s(o),"jucie"),u=e(()=>{let t=c(f(p));if(!n)return j(t,r);n=!1,v(t,r)},"paint");return{jucie:p,async mount(t){return await m(),o=t,u(),this},navigate(t){o=t,u()}}}e(J,"createHost");function O(){return{}}e(O,"hostRootProps");function W(r,s,a){let{dom:o,props:n}=i(s,a),{key:p,...u}=o||{};return f(r,{...n,...u,key:p})}e(W,"renderSource");export{D as createComputed,K as createElement,J as createHost,R as createRef,O as hostRootProps,x as loadProjectMain,h as provideJucie,H as render,g as renderComputed,W as renderSource,l as setProjectMain,d as setup,i as splitInstanceOverrides,y as useJucie,z as useRef,q as useSyncExternalStore};
@@ -0,0 +1 @@
1
+ import{a as t,f as o,g as i}from"./chunks/chunk-6BTG63JN.js";import{createElement as a}from"react";import{renderToString as m}from"react-dom/server";function f(p,u){let r=null,n=t(()=>u(r),"jucie");return{jucie:n,async mount(e){return await i(),r=e,this},navigate(e){r=e},unmount(){},renderToString(){return m(o(a(n)))}}}t(f,"createServerHost");export{f as createServerHost};