@jucie.io/cli 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (704) hide show
  1. package/dist/jucie.js +322 -0
  2. package/dist/stage/chunks/addAction-FSI6BXB4.js +1 -0
  3. package/dist/stage/chunks/addAnimationBinding-Y4VROY4L.js +1 -0
  4. package/dist/stage/chunks/addAttribute-CNJGHQSS.js +1 -0
  5. package/dist/stage/chunks/addComponent-VWD6O7CQ.js +1 -0
  6. package/dist/stage/chunks/addComputed-FQVHDUIE.js +1 -0
  7. package/dist/stage/chunks/addEvent-54ZE2DVJ.js +1 -0
  8. package/dist/stage/chunks/addLifecycleHook-VCCSTQ3G.js +1 -0
  9. package/dist/stage/chunks/addNode-AOA2MS25.js +1 -0
  10. package/dist/stage/chunks/addOption-ISGTUY6U.js +1 -0
  11. package/dist/stage/chunks/addParamToRoute-CRDV7MVF.js +1 -0
  12. package/dist/stage/chunks/addState-N3MBR533.js +1 -0
  13. package/dist/stage/chunks/addStore-PHY52777.js +1 -0
  14. package/dist/stage/chunks/addToken-QSTDKYFU.js +1 -0
  15. package/dist/stage/chunks/addValue-NBDF57UK.js +1 -0
  16. package/dist/stage/chunks/aiRelay-FSM6HGF7.js +1 -0
  17. package/dist/stage/chunks/assets-OAQXQVKM.js +1 -0
  18. package/dist/stage/chunks/bootstrap-LFMD2YRN.js +15 -0
  19. package/dist/stage/chunks/chunk-2SXGPNIX.js +1 -0
  20. package/dist/stage/chunks/chunk-2YZN7IFG.js +1 -0
  21. package/dist/stage/chunks/chunk-32FG2JVJ.js +1 -0
  22. package/dist/stage/chunks/chunk-32WBU6VH.js +1 -0
  23. package/dist/stage/chunks/chunk-45CXRNTO.js +1 -0
  24. package/dist/stage/chunks/chunk-45LFQ7GZ.js +1 -0
  25. package/dist/stage/chunks/chunk-4FPLUVEY.js +1 -0
  26. package/dist/stage/chunks/chunk-4MTM6BM7.js +1 -0
  27. package/dist/stage/chunks/chunk-4VALYMSL.js +1 -0
  28. package/dist/stage/chunks/chunk-4XNQRZ5E.js +1 -0
  29. package/dist/stage/chunks/chunk-4Y2YKFNP.js +1 -0
  30. package/dist/stage/chunks/chunk-5GOTVZFC.js +1 -0
  31. package/dist/stage/chunks/chunk-5OOKGI32.js +3 -0
  32. package/dist/stage/chunks/chunk-5PUPZLDN.js +1 -0
  33. package/dist/stage/chunks/chunk-5SOTDESD.js +1 -0
  34. package/dist/stage/chunks/chunk-5YRZZCXL.js +1 -0
  35. package/dist/stage/chunks/chunk-6EIGTDJQ.js +1 -0
  36. package/dist/stage/chunks/chunk-6GMURG26.js +1 -0
  37. package/dist/stage/chunks/chunk-6ZZBJPN5.js +1 -0
  38. package/dist/stage/chunks/chunk-73MAM44D.js +1 -0
  39. package/dist/stage/chunks/chunk-7L4V7JRT.js +1 -0
  40. package/dist/stage/chunks/chunk-AJVQKPCQ.js +1 -0
  41. package/dist/stage/chunks/chunk-AMAA7VJU.js +1 -0
  42. package/dist/stage/chunks/chunk-ARGFDBBK.js +1 -0
  43. package/dist/stage/chunks/chunk-BEYPHEBR.js +1 -0
  44. package/dist/stage/chunks/chunk-BS35FNXF.js +1 -0
  45. package/dist/stage/chunks/chunk-BVAPODQ7.js +5 -0
  46. package/dist/stage/chunks/chunk-C3DY5XVP.js +1 -0
  47. package/dist/stage/chunks/chunk-CUIKYKRZ.js +1 -0
  48. package/dist/stage/chunks/chunk-CVDUFBBG.js +1 -0
  49. package/dist/stage/chunks/chunk-D3V5OTLH.js +1 -0
  50. package/dist/stage/chunks/chunk-D6NZE747.js +1 -0
  51. package/dist/stage/chunks/chunk-DCOWKGJI.js +1 -0
  52. package/dist/stage/chunks/chunk-DSKLC3WF.js +1 -0
  53. package/dist/stage/chunks/chunk-EO7UBT4B.js +1 -0
  54. package/dist/stage/chunks/chunk-EPBR3BES.js +1 -0
  55. package/dist/stage/chunks/chunk-FSECMWCM.js +1 -0
  56. package/dist/stage/chunks/chunk-FTRUORC5.js +1 -0
  57. package/dist/stage/chunks/chunk-GDGHGTYN.js +1 -0
  58. package/dist/stage/chunks/chunk-GG4NWMR6.js +1 -0
  59. package/dist/stage/chunks/chunk-GIVV5ZCM.js +1 -0
  60. package/dist/stage/chunks/chunk-H3VC542J.js +1 -0
  61. package/dist/stage/chunks/chunk-HBEU7BDR.js +1 -0
  62. package/dist/stage/chunks/chunk-HBEWYDHO.js +1 -0
  63. package/dist/stage/chunks/chunk-HI7ALMQD.js +1 -0
  64. package/dist/stage/chunks/chunk-JKMOVSI4.js +1 -0
  65. package/dist/stage/chunks/chunk-K6PCHHH7.js +1 -0
  66. package/dist/stage/chunks/chunk-K7MC6G4X.js +1 -0
  67. package/dist/stage/chunks/chunk-KCVDFPJI.js +1 -0
  68. package/dist/stage/chunks/chunk-L4CU73MS.js +1 -0
  69. package/dist/stage/chunks/chunk-L7VQYHXR.js +1 -0
  70. package/dist/stage/chunks/chunk-LKQDYABR.js +1 -0
  71. package/dist/stage/chunks/chunk-LOILFK74.js +55 -0
  72. package/dist/stage/chunks/chunk-LR6DSVPP.js +1 -0
  73. package/dist/stage/chunks/chunk-MLL2ANA6.js +1 -0
  74. package/dist/stage/chunks/chunk-MXIF2FGR.js +1 -0
  75. package/dist/stage/chunks/chunk-N4AFW5M3.js +1 -0
  76. package/dist/stage/chunks/chunk-ODSNVDNS.js +1 -0
  77. package/dist/stage/chunks/chunk-OPVVANFS.js +1 -0
  78. package/dist/stage/chunks/chunk-OQ52NUNN.js +1 -0
  79. package/dist/stage/chunks/chunk-OWARHUEW.js +1 -0
  80. package/dist/stage/chunks/chunk-P3WBUN2B.js +1 -0
  81. package/dist/stage/chunks/chunk-P4ODI2G4.js +1 -0
  82. package/dist/stage/chunks/chunk-PSNKOX4A.js +37 -0
  83. package/dist/stage/chunks/chunk-PU3DZ3MV.js +1 -0
  84. package/dist/stage/chunks/chunk-QCZ4EDGZ.js +1 -0
  85. package/dist/stage/chunks/chunk-QG2BGE2O.js +1 -0
  86. package/dist/stage/chunks/chunk-QTBRJH2Q.js +1 -0
  87. package/dist/stage/chunks/chunk-RWJ7EPNM.js +1 -0
  88. package/dist/stage/chunks/chunk-RZ74UWF3.js +1 -0
  89. package/dist/stage/chunks/chunk-SECM4LZZ.js +1 -0
  90. package/dist/stage/chunks/chunk-SMO45CB3.js +1 -0
  91. package/dist/stage/chunks/chunk-SRRJXNKG.js +1 -0
  92. package/dist/stage/chunks/chunk-TBDEUSP4.js +1 -0
  93. package/dist/stage/chunks/chunk-TEUB5MUS.js +1 -0
  94. package/dist/stage/chunks/chunk-TV4PHWEG.js +1 -0
  95. package/dist/stage/chunks/chunk-U2OFNNHI.js +1 -0
  96. package/dist/stage/chunks/chunk-U3IV5DRQ.js +1 -0
  97. package/dist/stage/chunks/chunk-V4F2T2VR.js +1 -0
  98. package/dist/stage/chunks/chunk-V7BNWQS6.js +1 -0
  99. package/dist/stage/chunks/chunk-X2DYJVYZ.js +1 -0
  100. package/dist/stage/chunks/chunk-X6HJCJ3C.js +1 -0
  101. package/dist/stage/chunks/chunk-XKEDVW6X.js +1 -0
  102. package/dist/stage/chunks/chunk-YMUEID4R.js +1 -0
  103. package/dist/stage/chunks/chunk-YN5VQBDN.js +1 -0
  104. package/dist/stage/chunks/chunk-ZCAGAEP2.js +1 -0
  105. package/dist/stage/chunks/chunk-ZEWKYCOX.js +1 -0
  106. package/dist/stage/chunks/clearDestination-P3FTW7VJ.js +1 -0
  107. package/dist/stage/chunks/clearName-YFCAGL36.js +1 -0
  108. package/dist/stage/chunks/clearOptionsExpression-DF4IPDKH.js +1 -0
  109. package/dist/stage/chunks/clearRender-4YRSLAVX.js +1 -0
  110. package/dist/stage/chunks/clearRepeat-7TPSR6FL.js +1 -0
  111. package/dist/stage/chunks/contentEditor-VMXQHHFX.js +1 -0
  112. package/dist/stage/chunks/createAction-XVCUAVTP.js +1 -0
  113. package/dist/stage/chunks/createAnimation-YAXYGTZ2.js +1 -0
  114. package/dist/stage/chunks/createComputed-6XPJKJMP.js +1 -0
  115. package/dist/stage/chunks/createTextContent-BL7YGYP5.js +1 -0
  116. package/dist/stage/chunks/createValue-QMG7LOR4.js +1 -0
  117. package/dist/stage/chunks/disconnectNode-OY65I4GB.js +1 -0
  118. package/dist/stage/chunks/history-KHLKDDEZ.js +1 -0
  119. package/dist/stage/chunks/id-T5EU463K.js +1 -0
  120. package/dist/stage/chunks/main-3QLLHM43.js +1 -0
  121. package/dist/stage/chunks/main-7EICBMQ2.js +1 -0
  122. package/dist/stage/chunks/main-BLNWJ3UJ.js +1 -0
  123. package/dist/stage/chunks/main-NIVRMJR3.js +1 -0
  124. package/dist/stage/chunks/moveNodeToLastChildOf-PSU5X3UJ.js +1 -0
  125. package/dist/stage/chunks/nodeGraph-7M5JI3VA.js +1 -0
  126. package/dist/stage/chunks/normalizeEventName-6HVMB5GN.js +1 -0
  127. package/dist/stage/chunks/normalizeLayoutContext-NWKVWWWS.js +1 -0
  128. package/dist/stage/chunks/preview-bootstrap-LB3AH2CS.js +1 -0
  129. package/dist/stage/chunks/react-G5SWVCZA.js +1 -0
  130. package/dist/stage/chunks/removeAction-H3EDG2CG.js +1 -0
  131. package/dist/stage/chunks/removeAnimationBinding-JRXL2AOH.js +1 -0
  132. package/dist/stage/chunks/removeAttribute-6RYM7MYC.js +1 -0
  133. package/dist/stage/chunks/removeComputed-3HL3BXKY.js +1 -0
  134. package/dist/stage/chunks/removeEvent-CP3SVSHQ.js +1 -0
  135. package/dist/stage/chunks/removeLifecycleHook-Q76BUDFU.js +1 -0
  136. package/dist/stage/chunks/removeNode-OFMYW2LY.js +1 -0
  137. package/dist/stage/chunks/removeOption-Y6QYTQ7C.js +1 -0
  138. package/dist/stage/chunks/removeParamFromRoute-MHUMB7RO.js +1 -0
  139. package/dist/stage/chunks/removeState-HEDFV7HD.js +1 -0
  140. package/dist/stage/chunks/removeStore-BQDKUY3I.js +1 -0
  141. package/dist/stage/chunks/removeToken-CKODWTLX.js +1 -0
  142. package/dist/stage/chunks/removeValue-OTRFOOIB.js +1 -0
  143. package/dist/stage/chunks/screen-capture-bootstrap-BRQD4OSY.js +1 -0
  144. package/dist/stage/chunks/setDestination-3H4RDE7F.js +1 -0
  145. package/dist/stage/chunks/setHomePage-UZUWIELK.js +1 -0
  146. package/dist/stage/chunks/setHtmlId-V2DQ2Z6D.js +1 -0
  147. package/dist/stage/chunks/setName-QKDRLH7I.js +1 -0
  148. package/dist/stage/chunks/setNodeLayout-3LRJGZNL.js +1 -0
  149. package/dist/stage/chunks/setOptionsExpression-4NFPAI24.js +1 -0
  150. package/dist/stage/chunks/setRender-XQJWRRYD.js +1 -0
  151. package/dist/stage/chunks/setRepeat-PAW7YMSY.js +1 -0
  152. package/dist/stage/chunks/setTagName-Y7O7I6SO.js +1 -0
  153. package/dist/stage/chunks/updateAction-XSXILF2R.js +1 -0
  154. package/dist/stage/chunks/updateAnimationBinding-LQTVD3O6.js +1 -0
  155. package/dist/stage/chunks/updateAttribute-USA3HPEX.js +1 -0
  156. package/dist/stage/chunks/updateBounds-3L2AJ72O.js +1 -0
  157. package/dist/stage/chunks/updateComputed-UALAJ4RF.js +1 -0
  158. package/dist/stage/chunks/updateEvent-NXMQSGDQ.js +1 -0
  159. package/dist/stage/chunks/updateHtml-AEMCHPUQ.js +1 -0
  160. package/dist/stage/chunks/updateLifecycleHook-6MCUOVJH.js +1 -0
  161. package/dist/stage/chunks/updateOption-JCNXPYXP.js +1 -0
  162. package/dist/stage/chunks/updateRoute-CI3GOLVJ.js +1 -0
  163. package/dist/stage/chunks/updateState-QJID3WQV.js +1 -0
  164. package/dist/stage/chunks/updateStyle-FR7K7R73.js +1 -0
  165. package/dist/stage/chunks/updateToken-JX6R3YU7.js +1 -0
  166. package/dist/stage/chunks/updateValue-2B5ZNGZI.js +1 -0
  167. package/dist/stage/chunks/user-2EMXBDUX.js +1 -0
  168. package/dist/stage/chunks/validateStorePayload-PJ5AD64S.js +3 -0
  169. package/dist/stage/chunks/viewport-UOMSIPMH.js +1 -0
  170. package/dist/stage/chunks/window-KCOIKBXQ.js +1 -0
  171. package/dist/stage/design.js +1 -0
  172. package/dist/stage/dev.js +1 -0
  173. package/dist/stage/preview.js +1 -0
  174. package/dist/stage/prod.js +1 -0
  175. package/dist/stage-bundles/preact/chunks/addAction-5FCPHQHB.js +9 -0
  176. package/dist/stage-bundles/preact/chunks/addAnimationBinding-5UBXLWDB.js +7 -0
  177. package/dist/stage-bundles/preact/chunks/addAttribute-PWIHRX6Y.js +12 -0
  178. package/dist/stage-bundles/preact/chunks/addComponent-77PUZWLS.js +14 -0
  179. package/dist/stage-bundles/preact/chunks/addComputed-5J47SS67.js +9 -0
  180. package/dist/stage-bundles/preact/chunks/addEvent-P2KGVMLM.js +11 -0
  181. package/dist/stage-bundles/preact/chunks/addLifecycleHook-VSOAZGTG.js +8 -0
  182. package/dist/stage-bundles/preact/chunks/addNode-GCJR257S.js +19 -0
  183. package/dist/stage-bundles/preact/chunks/addOption-3U3LAV4C.js +8 -0
  184. package/dist/stage-bundles/preact/chunks/addParamToRoute-43UDJ4YE.js +7 -0
  185. package/dist/stage-bundles/preact/chunks/addState-ZWDA2CLN.js +11 -0
  186. package/dist/stage-bundles/preact/chunks/addStore-A4CRKMPO.js +7 -0
  187. package/dist/stage-bundles/preact/chunks/addToken-7P5NGEG4.js +8 -0
  188. package/dist/stage-bundles/preact/chunks/addValue-VQW7HQX7.js +8 -0
  189. package/dist/stage-bundles/preact/chunks/aiRelay-TFBJ7BF4.js +184 -0
  190. package/dist/stage-bundles/preact/chunks/assets-3W46CFCY.js +42 -0
  191. package/dist/stage-bundles/preact/chunks/bootstrap-VNVZAVV5.js +4080 -0
  192. package/dist/stage-bundles/preact/chunks/chunk-22J4JOPG.js +9 -0
  193. package/dist/stage-bundles/preact/chunks/chunk-236DY7EE.js +92 -0
  194. package/dist/stage-bundles/preact/chunks/chunk-2H2EQ2RG.js +24 -0
  195. package/dist/stage-bundles/preact/chunks/chunk-2Y25YY3N.js +12 -0
  196. package/dist/stage-bundles/preact/chunks/chunk-3MJKS6VX.js +19 -0
  197. package/dist/stage-bundles/preact/chunks/chunk-3NLDBJQD.js +12 -0
  198. package/dist/stage-bundles/preact/chunks/chunk-43L3STHY.js +172 -0
  199. package/dist/stage-bundles/preact/chunks/chunk-4A4WKSGY.js +66 -0
  200. package/dist/stage-bundles/preact/chunks/chunk-5C4ZCCYX.js +421 -0
  201. package/dist/stage-bundles/preact/chunks/chunk-65Q2CFW7.js +18 -0
  202. package/dist/stage-bundles/preact/chunks/chunk-667SIQGW.js +12 -0
  203. package/dist/stage-bundles/preact/chunks/chunk-6B6PKOOA.js +140 -0
  204. package/dist/stage-bundles/preact/chunks/chunk-6BXKZHN6.js +19 -0
  205. package/dist/stage-bundles/preact/chunks/chunk-6E57QUN7.js +21 -0
  206. package/dist/stage-bundles/preact/chunks/chunk-6QYYO5LM.js +12 -0
  207. package/dist/stage-bundles/preact/chunks/chunk-6R3QXFFF.js +47 -0
  208. package/dist/stage-bundles/preact/chunks/chunk-6RLI7CFQ.js +12 -0
  209. package/dist/stage-bundles/preact/chunks/chunk-6TDZGYJG.js +13 -0
  210. package/dist/stage-bundles/preact/chunks/chunk-AI3MQHWR.js +51 -0
  211. package/dist/stage-bundles/preact/chunks/chunk-BWZPEI76.js +18 -0
  212. package/dist/stage-bundles/preact/chunks/chunk-CHZVDVQC.js +8 -0
  213. package/dist/stage-bundles/preact/chunks/chunk-CJOJNMRC.js +8 -0
  214. package/dist/stage-bundles/preact/chunks/chunk-CXATTVPL.js +24 -0
  215. package/dist/stage-bundles/preact/chunks/chunk-CYH47R7O.js +49 -0
  216. package/dist/stage-bundles/preact/chunks/chunk-DBHMBCBM.js +14 -0
  217. package/dist/stage-bundles/preact/chunks/chunk-DCKGUW2M.js +8 -0
  218. package/dist/stage-bundles/preact/chunks/chunk-EB5FGFFG.js +12 -0
  219. package/dist/stage-bundles/preact/chunks/chunk-F6JYAVEC.js +15 -0
  220. package/dist/stage-bundles/preact/chunks/chunk-F77HGOQB.js +8 -0
  221. package/dist/stage-bundles/preact/chunks/chunk-FSIANI7E.js +11 -0
  222. package/dist/stage-bundles/preact/chunks/chunk-FZZDMYBZ.js +12 -0
  223. package/dist/stage-bundles/preact/chunks/chunk-H75SQT4U.js +105 -0
  224. package/dist/stage-bundles/preact/chunks/chunk-HPCVUQI4.js +224 -0
  225. package/dist/stage-bundles/preact/chunks/chunk-I5OE2BAU.js +25863 -0
  226. package/dist/stage-bundles/preact/chunks/chunk-IDGFZWZY.js +13 -0
  227. package/dist/stage-bundles/preact/chunks/chunk-IIIXGKVH.js +17 -0
  228. package/dist/stage-bundles/preact/chunks/chunk-ILZWSEWK.js +19 -0
  229. package/dist/stage-bundles/preact/chunks/chunk-IO3NSIEJ.js +8 -0
  230. package/dist/stage-bundles/preact/chunks/chunk-ISOZDDO2.js +157 -0
  231. package/dist/stage-bundles/preact/chunks/chunk-JDIO27MU.js +8 -0
  232. package/dist/stage-bundles/preact/chunks/chunk-JJVRBJGQ.js +1353 -0
  233. package/dist/stage-bundles/preact/chunks/chunk-K7ZULZJF.js +116 -0
  234. package/dist/stage-bundles/preact/chunks/chunk-KF4MVCJ6.js +13 -0
  235. package/dist/stage-bundles/preact/chunks/chunk-KHURU62K.js +27 -0
  236. package/dist/stage-bundles/preact/chunks/chunk-KKLU24SB.js +33 -0
  237. package/dist/stage-bundles/preact/chunks/chunk-KOBPYD4N.js +8 -0
  238. package/dist/stage-bundles/preact/chunks/chunk-LH4ZDX3T.js +58 -0
  239. package/dist/stage-bundles/preact/chunks/chunk-M3YT4JBL.js +12 -0
  240. package/dist/stage-bundles/preact/chunks/chunk-MAPYANXA.js +8 -0
  241. package/dist/stage-bundles/preact/chunks/chunk-MBN7CVNW.js +4290 -0
  242. package/dist/stage-bundles/preact/chunks/chunk-MMCB6GGX.js +8 -0
  243. package/dist/stage-bundles/preact/chunks/chunk-NCUWZXVZ.js +8 -0
  244. package/dist/stage-bundles/preact/chunks/chunk-O3KQTA3H.js +21 -0
  245. package/dist/stage-bundles/preact/chunks/chunk-OARTKQPG.js +153 -0
  246. package/dist/stage-bundles/preact/chunks/chunk-P7UUT7BU.js +12 -0
  247. package/dist/stage-bundles/preact/chunks/chunk-PHVB7SAE.js +22 -0
  248. package/dist/stage-bundles/preact/chunks/chunk-PKSFATQY.js +10 -0
  249. package/dist/stage-bundles/preact/chunks/chunk-PU2GET2S.js +18 -0
  250. package/dist/stage-bundles/preact/chunks/chunk-QBXKRHK5.js +11 -0
  251. package/dist/stage-bundles/preact/chunks/chunk-QCQXLZJH.js +18 -0
  252. package/dist/stage-bundles/preact/chunks/chunk-QIOKODGT.js +14 -0
  253. package/dist/stage-bundles/preact/chunks/chunk-R5DUYWXP.js +8 -0
  254. package/dist/stage-bundles/preact/chunks/chunk-RCIDQRAS.js +54 -0
  255. package/dist/stage-bundles/preact/chunks/chunk-RI7XWDHX.js +10 -0
  256. package/dist/stage-bundles/preact/chunks/chunk-RZG5LCPH.js +12 -0
  257. package/dist/stage-bundles/preact/chunks/chunk-S4NZQRJJ.js +12 -0
  258. package/dist/stage-bundles/preact/chunks/chunk-S5L2YBXG.js +143 -0
  259. package/dist/stage-bundles/preact/chunks/chunk-SF5BLQ7P.js +14 -0
  260. package/dist/stage-bundles/preact/chunks/chunk-SPTKNGHA.js +14 -0
  261. package/dist/stage-bundles/preact/chunks/chunk-TKHCH4WB.js +35 -0
  262. package/dist/stage-bundles/preact/chunks/chunk-TVB3GD7L.js +8 -0
  263. package/dist/stage-bundles/preact/chunks/chunk-TVGXBOIT.js +18 -0
  264. package/dist/stage-bundles/preact/chunks/chunk-U7U7L7XZ.js +31 -0
  265. package/dist/stage-bundles/preact/chunks/chunk-UFHA3ODE.js +528 -0
  266. package/dist/stage-bundles/preact/chunks/chunk-UHGV762U.js +12 -0
  267. package/dist/stage-bundles/preact/chunks/chunk-V6MKKC23.js +18 -0
  268. package/dist/stage-bundles/preact/chunks/chunk-VK4FEQKG.js +18 -0
  269. package/dist/stage-bundles/preact/chunks/chunk-VZNGMF63.js +12 -0
  270. package/dist/stage-bundles/preact/chunks/chunk-W5CGYUVM.js +8 -0
  271. package/dist/stage-bundles/preact/chunks/chunk-W7QH4UII.js +54 -0
  272. package/dist/stage-bundles/preact/chunks/chunk-WMV5J37V.js +8 -0
  273. package/dist/stage-bundles/preact/chunks/chunk-WXDXWNWW.js +8 -0
  274. package/dist/stage-bundles/preact/chunks/chunk-XKFPCFZH.js +8 -0
  275. package/dist/stage-bundles/preact/chunks/chunk-YCZNHFZA.js +15 -0
  276. package/dist/stage-bundles/preact/chunks/chunk-YEEGISBQ.js +23 -0
  277. package/dist/stage-bundles/preact/chunks/chunk-YM3NAGCN.js +8 -0
  278. package/dist/stage-bundles/preact/chunks/chunk-YMVTSVEM.js +26 -0
  279. package/dist/stage-bundles/preact/chunks/chunk-YXNMNEJV.js +329 -0
  280. package/dist/stage-bundles/preact/chunks/clearDestination-EMCIEDAP.js +7 -0
  281. package/dist/stage-bundles/preact/chunks/clearName-O7J77F77.js +7 -0
  282. package/dist/stage-bundles/preact/chunks/clearOptionsExpression-RGDXKYVX.js +7 -0
  283. package/dist/stage-bundles/preact/chunks/clearRender-DFMNHXXQ.js +7 -0
  284. package/dist/stage-bundles/preact/chunks/clearRepeat-436RGATR.js +7 -0
  285. package/dist/stage-bundles/preact/chunks/contentEditor-NLMG4U5G.js +67 -0
  286. package/dist/stage-bundles/preact/chunks/createAction-CKUAX4TU.js +8 -0
  287. package/dist/stage-bundles/preact/chunks/createAnimation-URI5366N.js +7 -0
  288. package/dist/stage-bundles/preact/chunks/createComputed-I23CA5NX.js +8 -0
  289. package/dist/stage-bundles/preact/chunks/createTextContent-K4G7KNQ5.js +10 -0
  290. package/dist/stage-bundles/preact/chunks/createValue-D5MP2SMM.js +7 -0
  291. package/dist/stage-bundles/preact/chunks/disconnectNode-GM5F3ZMB.js +8 -0
  292. package/dist/stage-bundles/preact/chunks/history-7PFZW7N6.js +51 -0
  293. package/dist/stage-bundles/preact/chunks/id-VSNJWKHU.js +53 -0
  294. package/dist/stage-bundles/preact/chunks/main-GQD7B74Q.js +103 -0
  295. package/dist/stage-bundles/preact/chunks/main-M2BBXKSW.js +154 -0
  296. package/dist/stage-bundles/preact/chunks/main-QDV3BMBP.js +109 -0
  297. package/dist/stage-bundles/preact/chunks/main-QOB4HBIK.js +31 -0
  298. package/dist/stage-bundles/preact/chunks/moveNodeToLastChildOf-Z6JUVLGM.js +12 -0
  299. package/dist/stage-bundles/preact/chunks/nodeGraph-TTOC6H4R.js +53 -0
  300. package/dist/stage-bundles/preact/chunks/normalizeEventName-2JPOX7Y6.js +128 -0
  301. package/dist/stage-bundles/preact/chunks/normalizeLayoutContext-Y44QODFX.js +9 -0
  302. package/dist/stage-bundles/preact/chunks/preact-FCSVXHIZ.js +39 -0
  303. package/dist/stage-bundles/preact/chunks/preview-bootstrap-QHWGL6NH.js +137 -0
  304. package/dist/stage-bundles/preact/chunks/removeAction-PPAIVTW3.js +7 -0
  305. package/dist/stage-bundles/preact/chunks/removeAnimationBinding-UQ24BSXP.js +7 -0
  306. package/dist/stage-bundles/preact/chunks/removeAttribute-P2IDGOQH.js +7 -0
  307. package/dist/stage-bundles/preact/chunks/removeComputed-7C66NNZA.js +7 -0
  308. package/dist/stage-bundles/preact/chunks/removeEvent-KTSOCV4C.js +7 -0
  309. package/dist/stage-bundles/preact/chunks/removeLifecycleHook-NKXLF3QT.js +7 -0
  310. package/dist/stage-bundles/preact/chunks/removeNode-A7C34C42.js +10 -0
  311. package/dist/stage-bundles/preact/chunks/removeOption-6HW62A5Y.js +7 -0
  312. package/dist/stage-bundles/preact/chunks/removeParamFromRoute-LIKPDVU4.js +7 -0
  313. package/dist/stage-bundles/preact/chunks/removeState-PO6J3JYQ.js +7 -0
  314. package/dist/stage-bundles/preact/chunks/removeStore-5ZZ57NHV.js +7 -0
  315. package/dist/stage-bundles/preact/chunks/removeToken-BKJE3U6Q.js +7 -0
  316. package/dist/stage-bundles/preact/chunks/removeValue-5FNPXWNL.js +7 -0
  317. package/dist/stage-bundles/preact/chunks/screen-capture-bootstrap-YWUN6QRP.js +128 -0
  318. package/dist/stage-bundles/preact/chunks/setDestination-DAYIYYIV.js +7 -0
  319. package/dist/stage-bundles/preact/chunks/setHomePage-MHCP4P24.js +7 -0
  320. package/dist/stage-bundles/preact/chunks/setHtmlId-3HYPFT3T.js +7 -0
  321. package/dist/stage-bundles/preact/chunks/setName-OQOO3URG.js +7 -0
  322. package/dist/stage-bundles/preact/chunks/setNodeLayout-PWQS32M2.js +10 -0
  323. package/dist/stage-bundles/preact/chunks/setOptionsExpression-XZZOJPCM.js +8 -0
  324. package/dist/stage-bundles/preact/chunks/setRender-NHXZZGME.js +10 -0
  325. package/dist/stage-bundles/preact/chunks/setRepeat-YZTZFDTQ.js +10 -0
  326. package/dist/stage-bundles/preact/chunks/setTagName-EGPQ66XI.js +7 -0
  327. package/dist/stage-bundles/preact/chunks/updateAction-ZSNXUEQA.js +9 -0
  328. package/dist/stage-bundles/preact/chunks/updateAnimationBinding-X2UXYQKJ.js +7 -0
  329. package/dist/stage-bundles/preact/chunks/updateAttribute-ODXM7YXA.js +12 -0
  330. package/dist/stage-bundles/preact/chunks/updateBounds-PEGOZ4FT.js +7 -0
  331. package/dist/stage-bundles/preact/chunks/updateComputed-6LNN453F.js +9 -0
  332. package/dist/stage-bundles/preact/chunks/updateEvent-ZHCKBJIM.js +11 -0
  333. package/dist/stage-bundles/preact/chunks/updateHtml-6BPU5PRY.js +7 -0
  334. package/dist/stage-bundles/preact/chunks/updateLifecycleHook-JEMQQYM5.js +8 -0
  335. package/dist/stage-bundles/preact/chunks/updateOption-SH33P5WW.js +8 -0
  336. package/dist/stage-bundles/preact/chunks/updateRoute-3RRPY2T5.js +7 -0
  337. package/dist/stage-bundles/preact/chunks/updateState-WRLF4SSC.js +11 -0
  338. package/dist/stage-bundles/preact/chunks/updateStyle-WAPTDAU5.js +7 -0
  339. package/dist/stage-bundles/preact/chunks/updateToken-CFIIILXB.js +7 -0
  340. package/dist/stage-bundles/preact/chunks/updateValue-JTEEC2B6.js +8 -0
  341. package/dist/stage-bundles/preact/chunks/user-ZLGCTRZX.js +44 -0
  342. package/dist/stage-bundles/preact/chunks/validateStorePayload-7A2INWJV.js +61 -0
  343. package/dist/stage-bundles/preact/chunks/viewport-OTNUF4XI.js +21 -0
  344. package/dist/stage-bundles/preact/chunks/window-73DBL24T.js +32 -0
  345. package/dist/stage-bundles/preact/entry.js +85 -0
  346. package/dist/stage-bundles/preact/framework-compat.js +103 -0
  347. package/dist/stage-bundles/preact/framework-hooks.js +35 -0
  348. package/dist/stage-bundles/preact/framework-jsx-runtime.js +102 -0
  349. package/dist/stage-bundles/preact/framework.js +33 -0
  350. package/dist/stage-bundles/preact/sdk.js +44 -0
  351. package/dist/stage-bundles/react/chunks/addAction-UV7MSISB.js +9 -0
  352. package/dist/stage-bundles/react/chunks/addAnimationBinding-M4VWTNNB.js +7 -0
  353. package/dist/stage-bundles/react/chunks/addAttribute-V4C3VUVK.js +12 -0
  354. package/dist/stage-bundles/react/chunks/addComponent-GUOHFGDG.js +14 -0
  355. package/dist/stage-bundles/react/chunks/addComputed-N3SUFIVQ.js +9 -0
  356. package/dist/stage-bundles/react/chunks/addEvent-GQCCRSGP.js +11 -0
  357. package/dist/stage-bundles/react/chunks/addLifecycleHook-GC5MHVSH.js +8 -0
  358. package/dist/stage-bundles/react/chunks/addNode-TX462HCE.js +19 -0
  359. package/dist/stage-bundles/react/chunks/addOption-7T3ZUC3A.js +8 -0
  360. package/dist/stage-bundles/react/chunks/addParamToRoute-Q6Z5A6RQ.js +7 -0
  361. package/dist/stage-bundles/react/chunks/addState-IKDWEJIW.js +11 -0
  362. package/dist/stage-bundles/react/chunks/addStore-SR7UK24M.js +7 -0
  363. package/dist/stage-bundles/react/chunks/addToken-2G5DPV5Z.js +8 -0
  364. package/dist/stage-bundles/react/chunks/addValue-UYM36PD7.js +8 -0
  365. package/dist/stage-bundles/react/chunks/aiRelay-RULC7GEA.js +184 -0
  366. package/dist/stage-bundles/react/chunks/assets-24YGC7SD.js +42 -0
  367. package/dist/stage-bundles/react/chunks/bootstrap-6YUSZ2AL.js +4080 -0
  368. package/dist/stage-bundles/react/chunks/chunk-22J4JOPG.js +9 -0
  369. package/dist/stage-bundles/react/chunks/chunk-236DY7EE.js +92 -0
  370. package/dist/stage-bundles/react/chunks/chunk-2H2EQ2RG.js +24 -0
  371. package/dist/stage-bundles/react/chunks/chunk-2Y25YY3N.js +12 -0
  372. package/dist/stage-bundles/react/chunks/chunk-3BDWFE4Q.js +1353 -0
  373. package/dist/stage-bundles/react/chunks/chunk-3MJKS6VX.js +19 -0
  374. package/dist/stage-bundles/react/chunks/chunk-3NLDBJQD.js +12 -0
  375. package/dist/stage-bundles/react/chunks/chunk-5C4ODH2L.js +198 -0
  376. package/dist/stage-bundles/react/chunks/chunk-5EXNWE4S.js +4290 -0
  377. package/dist/stage-bundles/react/chunks/chunk-65Q2CFW7.js +18 -0
  378. package/dist/stage-bundles/react/chunks/chunk-667SIQGW.js +12 -0
  379. package/dist/stage-bundles/react/chunks/chunk-6B6PKOOA.js +140 -0
  380. package/dist/stage-bundles/react/chunks/chunk-6BXKZHN6.js +19 -0
  381. package/dist/stage-bundles/react/chunks/chunk-6E57QUN7.js +21 -0
  382. package/dist/stage-bundles/react/chunks/chunk-6QYYO5LM.js +12 -0
  383. package/dist/stage-bundles/react/chunks/chunk-6R3QXFFF.js +47 -0
  384. package/dist/stage-bundles/react/chunks/chunk-6RLI7CFQ.js +12 -0
  385. package/dist/stage-bundles/react/chunks/chunk-6TDZGYJG.js +13 -0
  386. package/dist/stage-bundles/react/chunks/chunk-7MWSPEGH.js +172 -0
  387. package/dist/stage-bundles/react/chunks/chunk-A65NYJEZ.js +157 -0
  388. package/dist/stage-bundles/react/chunks/chunk-ABVPSM2D.js +278 -0
  389. package/dist/stage-bundles/react/chunks/chunk-AI3MQHWR.js +51 -0
  390. package/dist/stage-bundles/react/chunks/chunk-BWZPEI76.js +18 -0
  391. package/dist/stage-bundles/react/chunks/chunk-CHZVDVQC.js +8 -0
  392. package/dist/stage-bundles/react/chunks/chunk-CJOJNMRC.js +8 -0
  393. package/dist/stage-bundles/react/chunks/chunk-CXATTVPL.js +24 -0
  394. package/dist/stage-bundles/react/chunks/chunk-DBHMBCBM.js +14 -0
  395. package/dist/stage-bundles/react/chunks/chunk-DCKGUW2M.js +8 -0
  396. package/dist/stage-bundles/react/chunks/chunk-EB5FGFFG.js +12 -0
  397. package/dist/stage-bundles/react/chunks/chunk-F6JYAVEC.js +15 -0
  398. package/dist/stage-bundles/react/chunks/chunk-F77HGOQB.js +8 -0
  399. package/dist/stage-bundles/react/chunks/chunk-FSIANI7E.js +11 -0
  400. package/dist/stage-bundles/react/chunks/chunk-FZZDMYBZ.js +12 -0
  401. package/dist/stage-bundles/react/chunks/chunk-H75SQT4U.js +105 -0
  402. package/dist/stage-bundles/react/chunks/chunk-IDGFZWZY.js +13 -0
  403. package/dist/stage-bundles/react/chunks/chunk-IIIXGKVH.js +17 -0
  404. package/dist/stage-bundles/react/chunks/chunk-ILZWSEWK.js +19 -0
  405. package/dist/stage-bundles/react/chunks/chunk-IO3NSIEJ.js +8 -0
  406. package/dist/stage-bundles/react/chunks/chunk-JDIO27MU.js +8 -0
  407. package/dist/stage-bundles/react/chunks/chunk-K7ZULZJF.js +116 -0
  408. package/dist/stage-bundles/react/chunks/chunk-KF4MVCJ6.js +13 -0
  409. package/dist/stage-bundles/react/chunks/chunk-KHURU62K.js +27 -0
  410. package/dist/stage-bundles/react/chunks/chunk-KKLU24SB.js +33 -0
  411. package/dist/stage-bundles/react/chunks/chunk-KOBPYD4N.js +8 -0
  412. package/dist/stage-bundles/react/chunks/chunk-LH4ZDX3T.js +58 -0
  413. package/dist/stage-bundles/react/chunks/chunk-M3YT4JBL.js +12 -0
  414. package/dist/stage-bundles/react/chunks/chunk-MAPYANXA.js +8 -0
  415. package/dist/stage-bundles/react/chunks/chunk-MMCB6GGX.js +8 -0
  416. package/dist/stage-bundles/react/chunks/chunk-NCUWZXVZ.js +8 -0
  417. package/dist/stage-bundles/react/chunks/chunk-O3KQTA3H.js +21 -0
  418. package/dist/stage-bundles/react/chunks/chunk-P7UUT7BU.js +12 -0
  419. package/dist/stage-bundles/react/chunks/chunk-PHVB7SAE.js +22 -0
  420. package/dist/stage-bundles/react/chunks/chunk-PKSFATQY.js +10 -0
  421. package/dist/stage-bundles/react/chunks/chunk-PU2GET2S.js +18 -0
  422. package/dist/stage-bundles/react/chunks/chunk-QBXKRHK5.js +11 -0
  423. package/dist/stage-bundles/react/chunks/chunk-QCQXLZJH.js +18 -0
  424. package/dist/stage-bundles/react/chunks/chunk-QIOKODGT.js +14 -0
  425. package/dist/stage-bundles/react/chunks/chunk-QTTED7GZ.js +49 -0
  426. package/dist/stage-bundles/react/chunks/chunk-QVH24VHP.js +473 -0
  427. package/dist/stage-bundles/react/chunks/chunk-R5DUYWXP.js +8 -0
  428. package/dist/stage-bundles/react/chunks/chunk-RCIDQRAS.js +54 -0
  429. package/dist/stage-bundles/react/chunks/chunk-RI7XWDHX.js +10 -0
  430. package/dist/stage-bundles/react/chunks/chunk-RZDFRJVR.js +13065 -0
  431. package/dist/stage-bundles/react/chunks/chunk-RZG5LCPH.js +12 -0
  432. package/dist/stage-bundles/react/chunks/chunk-S4NZQRJJ.js +12 -0
  433. package/dist/stage-bundles/react/chunks/chunk-S5L2YBXG.js +143 -0
  434. package/dist/stage-bundles/react/chunks/chunk-SF5BLQ7P.js +14 -0
  435. package/dist/stage-bundles/react/chunks/chunk-SPTKNGHA.js +14 -0
  436. package/dist/stage-bundles/react/chunks/chunk-TKHCH4WB.js +35 -0
  437. package/dist/stage-bundles/react/chunks/chunk-TVB3GD7L.js +8 -0
  438. package/dist/stage-bundles/react/chunks/chunk-TVGXBOIT.js +18 -0
  439. package/dist/stage-bundles/react/chunks/chunk-U7U7L7XZ.js +31 -0
  440. package/dist/stage-bundles/react/chunks/chunk-UHGV762U.js +12 -0
  441. package/dist/stage-bundles/react/chunks/chunk-V6MKKC23.js +18 -0
  442. package/dist/stage-bundles/react/chunks/chunk-VK4FEQKG.js +18 -0
  443. package/dist/stage-bundles/react/chunks/chunk-VZNGMF63.js +12 -0
  444. package/dist/stage-bundles/react/chunks/chunk-W5CGYUVM.js +8 -0
  445. package/dist/stage-bundles/react/chunks/chunk-W7QH4UII.js +54 -0
  446. package/dist/stage-bundles/react/chunks/chunk-WMV5J37V.js +8 -0
  447. package/dist/stage-bundles/react/chunks/chunk-WXDXWNWW.js +8 -0
  448. package/dist/stage-bundles/react/chunks/chunk-XKFPCFZH.js +8 -0
  449. package/dist/stage-bundles/react/chunks/chunk-XVJJ3LG4.js +528 -0
  450. package/dist/stage-bundles/react/chunks/chunk-YCZNHFZA.js +15 -0
  451. package/dist/stage-bundles/react/chunks/chunk-YEEGISBQ.js +23 -0
  452. package/dist/stage-bundles/react/chunks/chunk-YM3NAGCN.js +8 -0
  453. package/dist/stage-bundles/react/chunks/chunk-YMVTSVEM.js +26 -0
  454. package/dist/stage-bundles/react/chunks/chunk-ZHZLVPR6.js +68 -0
  455. package/dist/stage-bundles/react/chunks/chunk-ZP3VSN3A.js +12093 -0
  456. package/dist/stage-bundles/react/chunks/clearDestination-KO6YHLX2.js +7 -0
  457. package/dist/stage-bundles/react/chunks/clearName-AAUKJ3OX.js +7 -0
  458. package/dist/stage-bundles/react/chunks/clearOptionsExpression-YGCMAZEE.js +7 -0
  459. package/dist/stage-bundles/react/chunks/clearRender-TTNIVIPG.js +7 -0
  460. package/dist/stage-bundles/react/chunks/clearRepeat-AZLSTBXI.js +7 -0
  461. package/dist/stage-bundles/react/chunks/contentEditor-HE34KY6R.js +67 -0
  462. package/dist/stage-bundles/react/chunks/createAction-N6UW7YDP.js +8 -0
  463. package/dist/stage-bundles/react/chunks/createAnimation-RIBXIT62.js +7 -0
  464. package/dist/stage-bundles/react/chunks/createComputed-KKULWYID.js +8 -0
  465. package/dist/stage-bundles/react/chunks/createTextContent-R5YRKNJL.js +10 -0
  466. package/dist/stage-bundles/react/chunks/createValue-SL4Y3LPI.js +7 -0
  467. package/dist/stage-bundles/react/chunks/disconnectNode-J6YACRLT.js +8 -0
  468. package/dist/stage-bundles/react/chunks/history-KTZZH7TG.js +51 -0
  469. package/dist/stage-bundles/react/chunks/id-WBHG2QOH.js +53 -0
  470. package/dist/stage-bundles/react/chunks/main-EMRULEYO.js +103 -0
  471. package/dist/stage-bundles/react/chunks/main-IVVVSUSO.js +109 -0
  472. package/dist/stage-bundles/react/chunks/main-Y7QHSAW7.js +154 -0
  473. package/dist/stage-bundles/react/chunks/main-YSWDZAGN.js +31 -0
  474. package/dist/stage-bundles/react/chunks/moveNodeToLastChildOf-IUKGA7IO.js +12 -0
  475. package/dist/stage-bundles/react/chunks/nodeGraph-GGV7TAPQ.js +53 -0
  476. package/dist/stage-bundles/react/chunks/normalizeEventName-EWVVRI6K.js +128 -0
  477. package/dist/stage-bundles/react/chunks/normalizeLayoutContext-TO4WKUWF.js +9 -0
  478. package/dist/stage-bundles/react/chunks/preview-bootstrap-FVKBRYC5.js +137 -0
  479. package/dist/stage-bundles/react/chunks/react-GONY7QDQ.js +44 -0
  480. package/dist/stage-bundles/react/chunks/removeAction-4PGYJ6CA.js +7 -0
  481. package/dist/stage-bundles/react/chunks/removeAnimationBinding-3SYE7FD3.js +7 -0
  482. package/dist/stage-bundles/react/chunks/removeAttribute-4QEKTGTP.js +7 -0
  483. package/dist/stage-bundles/react/chunks/removeComputed-5J772TBY.js +7 -0
  484. package/dist/stage-bundles/react/chunks/removeEvent-7ODGVHMT.js +7 -0
  485. package/dist/stage-bundles/react/chunks/removeLifecycleHook-3XIZU6TW.js +7 -0
  486. package/dist/stage-bundles/react/chunks/removeNode-DY2ULYNK.js +10 -0
  487. package/dist/stage-bundles/react/chunks/removeOption-V4NBH6EE.js +7 -0
  488. package/dist/stage-bundles/react/chunks/removeParamFromRoute-IMXTBRSZ.js +7 -0
  489. package/dist/stage-bundles/react/chunks/removeState-EBT6YGSZ.js +7 -0
  490. package/dist/stage-bundles/react/chunks/removeStore-UJA67G3O.js +7 -0
  491. package/dist/stage-bundles/react/chunks/removeToken-EDVBR3OL.js +7 -0
  492. package/dist/stage-bundles/react/chunks/removeValue-UPOTPB3T.js +7 -0
  493. package/dist/stage-bundles/react/chunks/screen-capture-bootstrap-XMTHAMIX.js +128 -0
  494. package/dist/stage-bundles/react/chunks/setDestination-M6MQACBQ.js +7 -0
  495. package/dist/stage-bundles/react/chunks/setHomePage-4U4Z3RU7.js +7 -0
  496. package/dist/stage-bundles/react/chunks/setHtmlId-MN7AQG5H.js +7 -0
  497. package/dist/stage-bundles/react/chunks/setName-W4MXGWGB.js +7 -0
  498. package/dist/stage-bundles/react/chunks/setNodeLayout-K2VNUD2H.js +10 -0
  499. package/dist/stage-bundles/react/chunks/setOptionsExpression-KQLKXH4C.js +8 -0
  500. package/dist/stage-bundles/react/chunks/setRender-UJAXCTRA.js +10 -0
  501. package/dist/stage-bundles/react/chunks/setRepeat-X5GZ4F2P.js +10 -0
  502. package/dist/stage-bundles/react/chunks/setTagName-5DMTFJTJ.js +7 -0
  503. package/dist/stage-bundles/react/chunks/updateAction-6KYOHLA3.js +9 -0
  504. package/dist/stage-bundles/react/chunks/updateAnimationBinding-SENX3Z5S.js +7 -0
  505. package/dist/stage-bundles/react/chunks/updateAttribute-VWGV37R7.js +12 -0
  506. package/dist/stage-bundles/react/chunks/updateBounds-WKOI6XJ3.js +7 -0
  507. package/dist/stage-bundles/react/chunks/updateComputed-7QBBBXFC.js +9 -0
  508. package/dist/stage-bundles/react/chunks/updateEvent-4PDSQ3Q4.js +11 -0
  509. package/dist/stage-bundles/react/chunks/updateHtml-EJFF2LPA.js +7 -0
  510. package/dist/stage-bundles/react/chunks/updateLifecycleHook-36JI5KSF.js +8 -0
  511. package/dist/stage-bundles/react/chunks/updateOption-ZEZ4TP7K.js +8 -0
  512. package/dist/stage-bundles/react/chunks/updateRoute-P5OTKOOG.js +7 -0
  513. package/dist/stage-bundles/react/chunks/updateState-B2RIQRWF.js +11 -0
  514. package/dist/stage-bundles/react/chunks/updateStyle-FN7CGZTJ.js +7 -0
  515. package/dist/stage-bundles/react/chunks/updateToken-DMJBW7ZK.js +7 -0
  516. package/dist/stage-bundles/react/chunks/updateValue-6FPRH4CG.js +8 -0
  517. package/dist/stage-bundles/react/chunks/user-MDIKS6ZN.js +44 -0
  518. package/dist/stage-bundles/react/chunks/validateStorePayload-HE65PPAB.js +61 -0
  519. package/dist/stage-bundles/react/chunks/viewport-DKL3EJOU.js +21 -0
  520. package/dist/stage-bundles/react/chunks/window-RCEXDLL7.js +32 -0
  521. package/dist/stage-bundles/react/entry.js +85 -0
  522. package/dist/stage-bundles/react/framework-dom-client.js +22 -0
  523. package/dist/stage-bundles/react/framework-dom.js +21 -0
  524. package/dist/stage-bundles/react/framework-jsx-runtime.js +73 -0
  525. package/dist/stage-bundles/react/framework.js +20 -0
  526. package/dist/stage-bundles/react/sdk.js +49 -0
  527. package/dist/stage-bundles/vue/chunks/addAction-5FCPHQHB.js +9 -0
  528. package/dist/stage-bundles/vue/chunks/addAnimationBinding-5UBXLWDB.js +7 -0
  529. package/dist/stage-bundles/vue/chunks/addAttribute-PWIHRX6Y.js +12 -0
  530. package/dist/stage-bundles/vue/chunks/addComponent-77PUZWLS.js +14 -0
  531. package/dist/stage-bundles/vue/chunks/addComputed-5J47SS67.js +9 -0
  532. package/dist/stage-bundles/vue/chunks/addEvent-P2KGVMLM.js +11 -0
  533. package/dist/stage-bundles/vue/chunks/addLifecycleHook-VSOAZGTG.js +8 -0
  534. package/dist/stage-bundles/vue/chunks/addNode-DMJXP7VV.js +19 -0
  535. package/dist/stage-bundles/vue/chunks/addOption-3U3LAV4C.js +8 -0
  536. package/dist/stage-bundles/vue/chunks/addParamToRoute-43UDJ4YE.js +7 -0
  537. package/dist/stage-bundles/vue/chunks/addState-ZWDA2CLN.js +11 -0
  538. package/dist/stage-bundles/vue/chunks/addStore-A4CRKMPO.js +7 -0
  539. package/dist/stage-bundles/vue/chunks/addToken-7P5NGEG4.js +8 -0
  540. package/dist/stage-bundles/vue/chunks/addValue-VQW7HQX7.js +8 -0
  541. package/dist/stage-bundles/vue/chunks/aiRelay-TFBJ7BF4.js +184 -0
  542. package/dist/stage-bundles/vue/chunks/assets-3W46CFCY.js +42 -0
  543. package/dist/stage-bundles/vue/chunks/bootstrap-Y4GN2FZZ.js +4078 -0
  544. package/dist/stage-bundles/vue/chunks/chunk-22J4JOPG.js +9 -0
  545. package/dist/stage-bundles/vue/chunks/chunk-2H2EQ2RG.js +24 -0
  546. package/dist/stage-bundles/vue/chunks/chunk-2Y25YY3N.js +12 -0
  547. package/dist/stage-bundles/vue/chunks/chunk-3MJKS6VX.js +19 -0
  548. package/dist/stage-bundles/vue/chunks/chunk-3N472G56.js +4290 -0
  549. package/dist/stage-bundles/vue/chunks/chunk-3NLDBJQD.js +12 -0
  550. package/dist/stage-bundles/vue/chunks/chunk-442CZ2YL.js +144 -0
  551. package/dist/stage-bundles/vue/chunks/chunk-44GL4NDX.js +25863 -0
  552. package/dist/stage-bundles/vue/chunks/chunk-4A4WKSGY.js +66 -0
  553. package/dist/stage-bundles/vue/chunks/chunk-4VX5AMMQ.js +54 -0
  554. package/dist/stage-bundles/vue/chunks/chunk-65Q2CFW7.js +18 -0
  555. package/dist/stage-bundles/vue/chunks/chunk-667SIQGW.js +12 -0
  556. package/dist/stage-bundles/vue/chunks/chunk-6BXKZHN6.js +19 -0
  557. package/dist/stage-bundles/vue/chunks/chunk-6E57QUN7.js +21 -0
  558. package/dist/stage-bundles/vue/chunks/chunk-6QYYO5LM.js +12 -0
  559. package/dist/stage-bundles/vue/chunks/chunk-6R3QXFFF.js +47 -0
  560. package/dist/stage-bundles/vue/chunks/chunk-6RLI7CFQ.js +12 -0
  561. package/dist/stage-bundles/vue/chunks/chunk-6TDZGYJG.js +13 -0
  562. package/dist/stage-bundles/vue/chunks/chunk-AI3MQHWR.js +51 -0
  563. package/dist/stage-bundles/vue/chunks/chunk-BWZPEI76.js +18 -0
  564. package/dist/stage-bundles/vue/chunks/chunk-CHZVDVQC.js +8 -0
  565. package/dist/stage-bundles/vue/chunks/chunk-CJOJNMRC.js +8 -0
  566. package/dist/stage-bundles/vue/chunks/chunk-CXATTVPL.js +24 -0
  567. package/dist/stage-bundles/vue/chunks/chunk-DBHMBCBM.js +14 -0
  568. package/dist/stage-bundles/vue/chunks/chunk-DCKGUW2M.js +8 -0
  569. package/dist/stage-bundles/vue/chunks/chunk-EB5FGFFG.js +12 -0
  570. package/dist/stage-bundles/vue/chunks/chunk-F6JYAVEC.js +15 -0
  571. package/dist/stage-bundles/vue/chunks/chunk-F77HGOQB.js +8 -0
  572. package/dist/stage-bundles/vue/chunks/chunk-FSIANI7E.js +11 -0
  573. package/dist/stage-bundles/vue/chunks/chunk-FZZDMYBZ.js +12 -0
  574. package/dist/stage-bundles/vue/chunks/chunk-GI5C7GB7.js +12838 -0
  575. package/dist/stage-bundles/vue/chunks/chunk-H75SQT4U.js +105 -0
  576. package/dist/stage-bundles/vue/chunks/chunk-IDGFZWZY.js +13 -0
  577. package/dist/stage-bundles/vue/chunks/chunk-IIIXGKVH.js +17 -0
  578. package/dist/stage-bundles/vue/chunks/chunk-ILZWSEWK.js +19 -0
  579. package/dist/stage-bundles/vue/chunks/chunk-IO3NSIEJ.js +8 -0
  580. package/dist/stage-bundles/vue/chunks/chunk-IRDAUQG3.js +49 -0
  581. package/dist/stage-bundles/vue/chunks/chunk-ISOZDDO2.js +157 -0
  582. package/dist/stage-bundles/vue/chunks/chunk-IVU4565D.js +26 -0
  583. package/dist/stage-bundles/vue/chunks/chunk-JDIO27MU.js +8 -0
  584. package/dist/stage-bundles/vue/chunks/chunk-JJVRBJGQ.js +1353 -0
  585. package/dist/stage-bundles/vue/chunks/chunk-JKOWPFOY.js +172 -0
  586. package/dist/stage-bundles/vue/chunks/chunk-K7ZULZJF.js +116 -0
  587. package/dist/stage-bundles/vue/chunks/chunk-KF4MVCJ6.js +13 -0
  588. package/dist/stage-bundles/vue/chunks/chunk-KHURU62K.js +27 -0
  589. package/dist/stage-bundles/vue/chunks/chunk-KKLU24SB.js +33 -0
  590. package/dist/stage-bundles/vue/chunks/chunk-KOBPYD4N.js +8 -0
  591. package/dist/stage-bundles/vue/chunks/chunk-LH4ZDX3T.js +58 -0
  592. package/dist/stage-bundles/vue/chunks/chunk-M3YT4JBL.js +12 -0
  593. package/dist/stage-bundles/vue/chunks/chunk-MAPYANXA.js +8 -0
  594. package/dist/stage-bundles/vue/chunks/chunk-MMCB6GGX.js +8 -0
  595. package/dist/stage-bundles/vue/chunks/chunk-NCUWZXVZ.js +8 -0
  596. package/dist/stage-bundles/vue/chunks/chunk-O3KQTA3H.js +21 -0
  597. package/dist/stage-bundles/vue/chunks/chunk-P7UUT7BU.js +12 -0
  598. package/dist/stage-bundles/vue/chunks/chunk-PHVB7SAE.js +22 -0
  599. package/dist/stage-bundles/vue/chunks/chunk-PKSFATQY.js +10 -0
  600. package/dist/stage-bundles/vue/chunks/chunk-PU2GET2S.js +18 -0
  601. package/dist/stage-bundles/vue/chunks/chunk-QBXKRHK5.js +11 -0
  602. package/dist/stage-bundles/vue/chunks/chunk-QCQXLZJH.js +18 -0
  603. package/dist/stage-bundles/vue/chunks/chunk-QIOKODGT.js +14 -0
  604. package/dist/stage-bundles/vue/chunks/chunk-R5DUYWXP.js +8 -0
  605. package/dist/stage-bundles/vue/chunks/chunk-RHAVY7VB.js +92 -0
  606. package/dist/stage-bundles/vue/chunks/chunk-RI7XWDHX.js +10 -0
  607. package/dist/stage-bundles/vue/chunks/chunk-RZG5LCPH.js +12 -0
  608. package/dist/stage-bundles/vue/chunks/chunk-S4NZQRJJ.js +12 -0
  609. package/dist/stage-bundles/vue/chunks/chunk-S5L2YBXG.js +143 -0
  610. package/dist/stage-bundles/vue/chunks/chunk-SF5BLQ7P.js +14 -0
  611. package/dist/stage-bundles/vue/chunks/chunk-SKOTGWTH.js +140 -0
  612. package/dist/stage-bundles/vue/chunks/chunk-SPTKNGHA.js +14 -0
  613. package/dist/stage-bundles/vue/chunks/chunk-TKHCH4WB.js +35 -0
  614. package/dist/stage-bundles/vue/chunks/chunk-TVB3GD7L.js +8 -0
  615. package/dist/stage-bundles/vue/chunks/chunk-TVGXBOIT.js +18 -0
  616. package/dist/stage-bundles/vue/chunks/chunk-U7U7L7XZ.js +31 -0
  617. package/dist/stage-bundles/vue/chunks/chunk-UFHA3ODE.js +528 -0
  618. package/dist/stage-bundles/vue/chunks/chunk-UHGV762U.js +12 -0
  619. package/dist/stage-bundles/vue/chunks/chunk-V6MKKC23.js +18 -0
  620. package/dist/stage-bundles/vue/chunks/chunk-VK4FEQKG.js +18 -0
  621. package/dist/stage-bundles/vue/chunks/chunk-VZNGMF63.js +12 -0
  622. package/dist/stage-bundles/vue/chunks/chunk-W5CGYUVM.js +8 -0
  623. package/dist/stage-bundles/vue/chunks/chunk-W7QH4UII.js +54 -0
  624. package/dist/stage-bundles/vue/chunks/chunk-WMV5J37V.js +8 -0
  625. package/dist/stage-bundles/vue/chunks/chunk-WXDXWNWW.js +8 -0
  626. package/dist/stage-bundles/vue/chunks/chunk-XKFPCFZH.js +8 -0
  627. package/dist/stage-bundles/vue/chunks/chunk-YCZNHFZA.js +15 -0
  628. package/dist/stage-bundles/vue/chunks/chunk-YEEGISBQ.js +23 -0
  629. package/dist/stage-bundles/vue/chunks/chunk-YM3NAGCN.js +8 -0
  630. package/dist/stage-bundles/vue/chunks/clearDestination-EMCIEDAP.js +7 -0
  631. package/dist/stage-bundles/vue/chunks/clearName-O7J77F77.js +7 -0
  632. package/dist/stage-bundles/vue/chunks/clearOptionsExpression-RGDXKYVX.js +7 -0
  633. package/dist/stage-bundles/vue/chunks/clearRender-DFMNHXXQ.js +7 -0
  634. package/dist/stage-bundles/vue/chunks/clearRepeat-436RGATR.js +7 -0
  635. package/dist/stage-bundles/vue/chunks/contentEditor-XVLK5LYS.js +67 -0
  636. package/dist/stage-bundles/vue/chunks/createAction-CKUAX4TU.js +8 -0
  637. package/dist/stage-bundles/vue/chunks/createAnimation-URI5366N.js +7 -0
  638. package/dist/stage-bundles/vue/chunks/createComputed-I23CA5NX.js +8 -0
  639. package/dist/stage-bundles/vue/chunks/createTextContent-K4G7KNQ5.js +10 -0
  640. package/dist/stage-bundles/vue/chunks/createValue-D5MP2SMM.js +7 -0
  641. package/dist/stage-bundles/vue/chunks/disconnectNode-GM5F3ZMB.js +8 -0
  642. package/dist/stage-bundles/vue/chunks/history-7PFZW7N6.js +51 -0
  643. package/dist/stage-bundles/vue/chunks/id-VSNJWKHU.js +53 -0
  644. package/dist/stage-bundles/vue/chunks/main-GQD7B74Q.js +103 -0
  645. package/dist/stage-bundles/vue/chunks/main-L3KI7XBW.js +154 -0
  646. package/dist/stage-bundles/vue/chunks/main-SWZDSGE3.js +109 -0
  647. package/dist/stage-bundles/vue/chunks/main-ULK5YAYM.js +31 -0
  648. package/dist/stage-bundles/vue/chunks/moveNodeToLastChildOf-X46IGL47.js +12 -0
  649. package/dist/stage-bundles/vue/chunks/nodeGraph-TTOC6H4R.js +53 -0
  650. package/dist/stage-bundles/vue/chunks/normalizeEventName-2JPOX7Y6.js +128 -0
  651. package/dist/stage-bundles/vue/chunks/normalizeLayoutContext-SY3L4IB7.js +9 -0
  652. package/dist/stage-bundles/vue/chunks/preview-bootstrap-SIVRGDR2.js +135 -0
  653. package/dist/stage-bundles/vue/chunks/removeAction-PPAIVTW3.js +7 -0
  654. package/dist/stage-bundles/vue/chunks/removeAnimationBinding-UQ24BSXP.js +7 -0
  655. package/dist/stage-bundles/vue/chunks/removeAttribute-P2IDGOQH.js +7 -0
  656. package/dist/stage-bundles/vue/chunks/removeComputed-7C66NNZA.js +7 -0
  657. package/dist/stage-bundles/vue/chunks/removeEvent-KTSOCV4C.js +7 -0
  658. package/dist/stage-bundles/vue/chunks/removeLifecycleHook-NKXLF3QT.js +7 -0
  659. package/dist/stage-bundles/vue/chunks/removeNode-A7C34C42.js +10 -0
  660. package/dist/stage-bundles/vue/chunks/removeOption-6HW62A5Y.js +7 -0
  661. package/dist/stage-bundles/vue/chunks/removeParamFromRoute-LIKPDVU4.js +7 -0
  662. package/dist/stage-bundles/vue/chunks/removeState-PO6J3JYQ.js +7 -0
  663. package/dist/stage-bundles/vue/chunks/removeStore-5ZZ57NHV.js +7 -0
  664. package/dist/stage-bundles/vue/chunks/removeToken-BKJE3U6Q.js +7 -0
  665. package/dist/stage-bundles/vue/chunks/removeValue-5FNPXWNL.js +7 -0
  666. package/dist/stage-bundles/vue/chunks/screen-capture-bootstrap-GV75P6QF.js +126 -0
  667. package/dist/stage-bundles/vue/chunks/setDestination-DAYIYYIV.js +7 -0
  668. package/dist/stage-bundles/vue/chunks/setHomePage-MHCP4P24.js +7 -0
  669. package/dist/stage-bundles/vue/chunks/setHtmlId-3HYPFT3T.js +7 -0
  670. package/dist/stage-bundles/vue/chunks/setName-OQOO3URG.js +7 -0
  671. package/dist/stage-bundles/vue/chunks/setNodeLayout-W5QFJBKT.js +10 -0
  672. package/dist/stage-bundles/vue/chunks/setOptionsExpression-XZZOJPCM.js +8 -0
  673. package/dist/stage-bundles/vue/chunks/setRender-NHXZZGME.js +10 -0
  674. package/dist/stage-bundles/vue/chunks/setRepeat-YZTZFDTQ.js +10 -0
  675. package/dist/stage-bundles/vue/chunks/setTagName-EGPQ66XI.js +7 -0
  676. package/dist/stage-bundles/vue/chunks/updateAction-ZSNXUEQA.js +9 -0
  677. package/dist/stage-bundles/vue/chunks/updateAnimationBinding-X2UXYQKJ.js +7 -0
  678. package/dist/stage-bundles/vue/chunks/updateAttribute-ODXM7YXA.js +12 -0
  679. package/dist/stage-bundles/vue/chunks/updateBounds-PEGOZ4FT.js +7 -0
  680. package/dist/stage-bundles/vue/chunks/updateComputed-6LNN453F.js +9 -0
  681. package/dist/stage-bundles/vue/chunks/updateEvent-ZHCKBJIM.js +11 -0
  682. package/dist/stage-bundles/vue/chunks/updateHtml-6BPU5PRY.js +7 -0
  683. package/dist/stage-bundles/vue/chunks/updateLifecycleHook-JEMQQYM5.js +8 -0
  684. package/dist/stage-bundles/vue/chunks/updateOption-SH33P5WW.js +8 -0
  685. package/dist/stage-bundles/vue/chunks/updateRoute-3RRPY2T5.js +7 -0
  686. package/dist/stage-bundles/vue/chunks/updateState-WRLF4SSC.js +11 -0
  687. package/dist/stage-bundles/vue/chunks/updateStyle-WAPTDAU5.js +7 -0
  688. package/dist/stage-bundles/vue/chunks/updateToken-CFIIILXB.js +7 -0
  689. package/dist/stage-bundles/vue/chunks/updateValue-JTEEC2B6.js +8 -0
  690. package/dist/stage-bundles/vue/chunks/user-ZLGCTRZX.js +44 -0
  691. package/dist/stage-bundles/vue/chunks/validateStorePayload-7A2INWJV.js +61 -0
  692. package/dist/stage-bundles/vue/chunks/viewport-OTNUF4XI.js +21 -0
  693. package/dist/stage-bundles/vue/chunks/vue-2GZIKYJR.js +37 -0
  694. package/dist/stage-bundles/vue/chunks/window-73DBL24T.js +32 -0
  695. package/dist/stage-bundles/vue/entry.js +85 -0
  696. package/dist/stage-bundles/vue/framework-jsx-runtime.js +34 -0
  697. package/dist/stage-bundles/vue/framework.js +352 -0
  698. package/dist/stage-bundles/vue/sdk.js +42 -0
  699. package/dist/templates/.gitignore.template +29 -0
  700. package/dist/templates/index.html.template +17 -0
  701. package/dist/templates/jucie.config.js.template +15 -0
  702. package/dist/templates/package.json.template +14 -0
  703. package/dist/templates/sceneGraph/wal.log +0 -0
  704. package/package.json +92 -0
@@ -0,0 +1 @@
1
+ import{b as i}from"./chunk-BVAPODQ7.js";import{a as n}from"./chunk-K7MC6G4X.js";function u(r){if(typeof r=="string"){let t=r.trim();return t?[t]:null}if(Array.isArray(r)){let t=r.filter(e=>typeof e=="string"&&e.trim());return t.length>0?t:null}return null}n(u,"normalizeSpecificPatterns");function a({value:r="",mode:t,specificPatterns:e,...l}={}){let o=u(e);return{...i({mode:t??"value",value:r,...l}),...o?{specificPatterns:o}:{}}}n(a,"createTextContent");export{a};
@@ -0,0 +1 @@
1
+ import{a as t}from"./chunk-YN5VQBDN.js";import{a as e}from"./chunk-K7MC6G4X.js";function f(o,u){return o.update([u,"computed"],(n=[])=>{let r=`computed${n.length+1}`;return n.some(a=>a.name===r)||n.unshift(t({name:r})),n})}e(f,"addComputed");export{f as a};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-LR6DSVPP.js";import{a as h,b as p}from"./chunk-BVAPODQ7.js";import{f as E}from"./chunk-4XNQRZ5E.js";import{a,c}from"./chunk-K7MC6G4X.js";var A={__version:1,type:"node",render:{name:null,mode:"value",value:!0,binding:null,computed:null,code:null,error:null},name:null,layout:"none",draggable:!0,resizable:!0,selectable:!0,locked:[],anchor:[],dimensions:[],expandedStyles:[],childrenType:null,repeat:null,contextName:null,attributes:[],events:[],className:[],states:[],lifecycle:[],animations:[],style:{}};var F={type:"element",ex:"node",style:{default:{}}};var P={type:"container",ex:"node",childrenType:"*",bounds:{width:0,height:0,x:0,y:0},breakpoints:[{name:"Mobile",type:"mobile",min:320,editable:!1},{name:"Tablet",type:"mobile",min:768,editable:!1},{name:"Desktop",type:"desktop",min:1280,editable:!1}]};var f={};c(f,{article:()=>G,aside:()=>W,div:()=>R,footer:()=>z,form:()=>J,header:()=>_,layout:()=>q,main:()=>U,nav:()=>$,section:()=>Y,template:()=>Q});var q={ex:"element",anchor:["top","left"],dimensions:["width","height"],childrenType:"*",children:[]},R={ex:"layout",tagName:"div"},Y={ex:"layout",tagName:"section"},_={ex:"layout",tagName:"header"},z={ex:"layout",tagName:"footer"},G={ex:"layout",tagName:"article"},U={ex:"layout",tagName:"main"},W={ex:"layout",tagName:"aside"},$={ex:"layout",tagName:"nav"},J={ex:"layout",tagName:"form"},Q={ex:"layout",tagName:"template",html:"<div>HTML template</div>",style:{default:{width:"250px",height:"100px"}}};var g={};c(g,{blockquote:()=>ce,br:()=>ge,codeElement:()=>me,em:()=>xe,h1:()=>Z,h2:()=>ee,h3:()=>te,h4:()=>ne,h5:()=>oe,h6:()=>ae,heading:()=>X,hr:()=>fe,label:()=>le,mark:()=>he,p:()=>ie,paragraph:()=>re,pre:()=>pe,small:()=>ue,span:()=>se,strong:()=>de,text:()=>V});var V={ex:"element",anchor:["top","left"],dimensions:["width"],childrenType:"text",textContent:e({value:""})},X={ex:"text",textContent:e({value:""}),style:{default:{margin:"0"}}},Z={ex:"heading",tagName:"h1",textContent:e({value:"Heading 1"})},ee={ex:"heading",tagName:"h2",textContent:e({value:"Heading 2"})},te={ex:"heading",tagName:"h3",textContent:e({value:"Heading 3"})},ne={ex:"heading",tagName:"h4",textContent:e({value:"Heading 4"})},oe={ex:"heading",tagName:"h5",textContent:e({value:"Heading 5"})},ae={ex:"heading",tagName:"h6",textContent:e({value:"Heading 6"})},re={ex:"text",textContent:e({value:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}),style:{default:{margin:"0"}}},ie={ex:"paragraph",tagName:"p"},se={ex:"text",tagName:"span",textContent:e({value:"Lorem ipsum"})},le={ex:"text",tagName:"label",textContent:e({value:"Label text"})},ce={ex:"text",tagName:"blockquote",textContent:e({value:"Blockquote text"})},pe={ex:"text",tagName:"pre",textContent:e({value:"Preformatted text"})},me={ex:"text",tagName:"code",textContent:e({value:"code"})},de={ex:"text",tagName:"strong",textContent:e({value:"Bold text"})},xe={ex:"text",tagName:"em",textContent:e({value:"Emphasized text"})},ue={ex:"text",tagName:"small",textContent:e({value:"Small text"})},he={ex:"text",tagName:"mark",textContent:e({value:"Highlighted text"})},fe={ex:"element",tagName:"hr",anchor:["top","left"],dimensions:["width"],childrenType:"none"},ge={ex:"element",tagName:"br",anchor:["top","left"],dimensions:["width"],childrenType:"none"};var y={};c(y,{a:()=>ve,button:()=>be,details:()=>Ne,dialog:()=>we,interactive:()=>ye,summary:()=>Te});var ye={ex:"element",interactive:!0,childrenType:"text",anchor:["top","left"],style:{default:{width:"auto",height:"auto",cursor:"pointer"}}},be={ex:"interactive",tagName:"button",dimensions:["width","height"],textContent:e({value:"Button text"}),style:{default:{"background-color":"#e9e9e9",border:"1px solid #d5d5d5","border-radius":"4px",padding:"6px 12px",width:"120px",height:"auto"}}},ve={ex:"interactive",tagName:"a",textContent:e({value:"Link text"}),destination:{type:"page",id:null,path:null,target:null,replace:!1,params:null,query:null}},Ne={ex:"interactive",tagName:"details",childrenType:"*",dimensions:["width","height"],style:{default:{cursor:"default"}}},Te={ex:"interactive",tagName:"summary",textContent:e({value:"Summary text"})},we={ex:"interactive",tagName:"dialog",childrenType:"*",dimensions:["width","height"],style:{default:{cursor:"default",width:"300px",height:"200px"}}};var v={};c(v,{checkbox:()=>Ie,color:()=>He,date:()=>Be,email:()=>Se,file:()=>Ke,hidden:()=>Le,input:()=>ke,number:()=>Ae,password:()=>Ee,phone:()=>Pe,radio:()=>je,range:()=>De,search:()=>Fe,select:()=>Me,textInput:()=>Oe,textarea:()=>qe});var r=a(t=>p({name:"type",mode:"value",value:t,removable:!1}),"type"),Ce=a(()=>p({name:"value",mode:"value",value:"",removable:!1}),"value"),i=a(()=>p({name:"model",mode:"binding",binding:null,removable:!0}),"model"),l=a(()=>p({name:"onInput",mode:"code",code:h,removable:!1}),"onInput"),b=a(()=>p({name:"onChange",mode:"code",code:h,removable:!1}),"onChange"),ke={ex:"element",tagName:"input",anchor:["top","left"],dimensions:["width"],childrenType:"none",style:{default:{width:"auto",height:"auto"}}},Oe={ex:"input",attributes:[r("text"),i()],events:[l()]},Se={ex:"input",attributes:[r("email"),i()],events:[l()]},Ee={ex:"input",attributes:[r("password"),i()],events:[l()]},Ae={ex:"input",attributes:[r("number"),i()],events:[l()]},Fe={ex:"input",attributes:[r("search"),i()],events:[l()]},Pe={ex:"input",attributes:[r("tel"),i()],events:[l()]},De={ex:"input",attributes:[r("range"),i()],events:[l()]},He={ex:"input",attributes:[r("color"),i()],events:[l()]},Be={ex:"input",attributes:[r("date"),i()],events:[l()]},Ie={ex:"input",attributes:[r("checkbox"),i()],events:[b()]},je={ex:"input",attributes:[r("radio"),i()],events:[b()]},Ke={ex:"input",attributes:[r("file")]},Le={ex:"input",attributes:[r("hidden"),Ce()]},Me={ex:"input",tagName:"select",childrenType:"options",attributes:[i()],events:[b()]},qe={ex:"input",tagName:"textarea",childrenType:"text",dimensions:["width","height"],attributes:[i()],events:[l()]};var N={};c(N,{audio:()=>_e,figcaption:()=>Ue,figure:()=>Ge,iframe:()=>We,img:()=>Ye,media:()=>Re,video:()=>ze});var D=p({name:"controls",mode:"value",value:!0,removable:!1}),Re={ex:"element",anchor:["top","left"],dimensions:["width","height"],style:{default:{display:"block",width:"auto",height:"auto","object-fit":"contain"}}},Ye={ex:"media",tagName:"img",childrenType:"none"},_e={ex:"media",tagName:"audio",childrenType:"none",dimensions:["width"],attributes:[D],style:{default:{width:"320px"}}},ze={ex:"media",tagName:"video",childrenType:"*",attributes:[D],style:{default:{width:"320px",height:"240px"}}},Ge={ex:"media",tagName:"figure",childrenType:"*",dimensions:["width","height"],style:{default:{width:"auto",height:"auto",margin:"0"}}},Ue={ex:"media",tagName:"figcaption",childrenType:"text"},We={ex:"media",tagName:"iframe",childrenType:"none",dimensions:["width","height"]};var T={};c(T,{dd:()=>Ze,dl:()=>Ve,dt:()=>Xe,li:()=>Qe,ol:()=>$e,ul:()=>Je});var $e={ex:"element",tagName:"ol",anchor:["top","left"],dimensions:["width"],childrenType:["li"],children:[]},Je={ex:"element",tagName:"ul",anchor:["top","left"],dimensions:["width"],childrenType:["li"],children:[]},Qe={ex:"element",tagName:"li",anchor:["top","left"],dimensions:["width"],childrenType:"*"},Ve={ex:"element",tagName:"dl",anchor:["top","left"],dimensions:["width"],childrenType:["dt","dd"],children:[]},Xe={ex:"element",tagName:"dt",anchor:["top","left"],dimensions:["width"],childrenType:"text"},Ze={ex:"element",tagName:"dd",anchor:["top","left"],dimensions:["width"],childrenType:"text"};var w={};c(w,{table:()=>et,tbody:()=>nt,td:()=>it,tfoot:()=>ot,th:()=>rt,thead:()=>tt,tr:()=>at});var et={ex:"element",tagName:"table",anchor:["top","left"],dimensions:["width"],childrenType:["thead","tbody","tfoot","tr"],children:[]},tt={ex:"element",tagName:"thead",childrenType:["tr"],children:[]},nt={ex:"element",tagName:"tbody",childrenType:["tr"],children:[]},ot={ex:"element",tagName:"tfoot",childrenType:["tr"],children:[]},at={ex:"element",tagName:"tr",childrenType:["td","th"],children:[]},rt={ex:"element",tagName:"th",childrenType:"*"},it={ex:"element",tagName:"td",childrenType:"*"};var C={};c(C,{fieldset:()=>st,legend:()=>lt,meter:()=>ct,progress:()=>pt});var st={ex:"element",tagName:"fieldset",anchor:["top","left"],dimensions:["width","height"],childrenType:"children",style:{default:{border:"1px solid #cccccc",padding:"16px"}}},lt={ex:"element",tagName:"legend",childrenType:"text"},ct={ex:"element",tagName:"meter",childrenType:"none"},pt={ex:"element",tagName:"progress",childrenType:"none"};var k={};c(k,{slot:()=>mt});var mt={type:"slot",ex:"element",tagName:"slot",anchor:["top","left"],dimensions:["width","height"],childrenType:"*"};var H={type:"frame",ex:"container",tagName:"div",bounds:{top:0,left:0,width:360,height:740,x:void 0,y:void 0},style:{default:{background:"white"}},children:[],route:{path:null}};var B={type:"instance",ex:"node",component:null,library:null,props:[],childrenType:"component"};var I={type:"code",ex:"node",body:"",language:"js",params:[],returns:null};var j={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 K={type:"component",ex:"container",name:"",library:"local",props:[],emits:[],data:[],children:[]};var L={type:"graphic",ex:"node",tagName:"div",props:{},template:[],style:{default:{margin:"0",width:"100px",height:"100px"}}};function u(t){let s=[],n=t;for(;n&&x[n];)s.push(n),n=x[n].ex;return s}a(u,"chainOf");function O(t){return!!x[t]}a(O,"isKnownType");var dt=new Set(["element","container","frame","instance","component","slot","animation","graphic","code","node"]);function S(t){let s=t?.ex??t?.type;for(let n of u(s))if(dt.has(n))return n;return null}a(S,"categoryOf");function xt(t,s){let n=new Map(t.map(o=>[o.name,o]));for(let o of s)n.set(o.name,o);return Array.from(n.values())}a(xt,"mergeByName");function M(t,s){let n=u(t).reverse(),o=[];for(let m of n){let d=x[m];d?.[s]&&(o=xt(o,d[s]))}return o}a(M,"resolveDescriptors");function ut(t,s={}){if(!O(t))throw new Error(`createNode: unknown prototype "${t}". Did you mean to register it first?`);let n=S({type:t}),o=n===t?{type:t,...s}:{type:n,ex:t,...s};if(!o.attributes){let m=M(t,"attributes");m.length&&(o.attributes=m.map(d=>({...d})))}if(!o.events){let m=M(t,"events");m.length&&(o.events=m.map(d=>({...d})))}return[E(),o]}a(ut,"createNode");var x={node:A,element:F,container:P,...f,...g,...y,...v,...N,...T,...w,...C,...k,frame:H,instance:B,code:I,animation:j,component:K,graphic:L};export{x as a,ut as b};
@@ -0,0 +1 @@
1
+ import{a as p}from"./chunk-5SOTDESD.js";import{a as m}from"./chunk-2YZN7IFG.js";import{e as c}from"./chunk-X2DYJVYZ.js";import{a as i}from"./chunk-K7MC6G4X.js";function l(o,n){return o.has([n])?o.get(["app","children"])?.includes(n)?"root":o.get(["temp","children"])?.includes(n)?"temp":o.get(["components","children"])?.includes(n)?"components":"nested":null}i(l,"getNodeLevel");function s(o,n,r,e){let t=o.get([n]);if(!t||!t.bounds)return!0;if(e==="instance")return!1;let f=t.type==="component";if(e==="root"||e==="temp")return!f;if(e==="after"||e==="before"){let u=l(o,r);return f?u==="components":u==="root"||u==="temp"}return e==="firstChildOf"||e==="lastChildOf"?f?r==="components":r==="app"||r==="temp":!1}i(s,"canMoveFrame");function x(o,n){return o.update(["app","children"],(r=[])=>r.indexOf(n)===-1?[...r,n]:r),c(o,n,"app"),!0}i(x,"moveNodeToRoot");function F(o,n,r){if(!m(o,r)||!m(o,n))return;let e=o.get([n,"ex"])??o.get([n,"type"]);if(p(o,r,e)){if(!s(o,n,r,"lastChildOf")){x(o,n);return}return o.update([r,"children"],(t=[])=>{let f=t.indexOf(n);if(f!==-1){let u=[...t];return u.splice(f,1),[...u,n]}return[...t,n]}),c(o,n,r),!0}}i(F,"moveNodeToLastChildOf");export{l as a,s as b,x as c,F as d};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-K7MC6G4X.js";function i(e,r,t){typeof e.removeAllWhere=="function"?e.removeAllWhere([r,"attributes"],{name:t}):e.removeWhere([r,"attributes"],{name:t})}o(i,"removeAttribute");export{i as a};
@@ -0,0 +1 @@
1
+ import{a as u}from"./chunk-K7MC6G4X.js";function p(n,o,e){return n.update([o,"state"],(r=[])=>(r[e]&&r.splice(e,1),r))}u(p,"removeValue");export{p as a};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-K7MC6G4X.js";function t(n,r){return n.set([r,"name"],null)}e(t,"clearName");export{t as a};
@@ -0,0 +1 @@
1
+ import{a as t}from"./chunk-FTRUORC5.js";import{a as e}from"./chunk-K7MC6G4X.js";function v(r,n,o,p){return r.setWhere([n,"events"],{name:o},t(p))}e(v,"updateEvent");export{v as a};
@@ -0,0 +1 @@
1
+ import{a as t}from"./chunk-K7MC6G4X.js";function u({path:e=null,params:r=[]}={}){return{path:e,params:r}}t(u,"createRoute");function f(e,r,o){return e.update([r,"route"],(n={})=>u({...n,...o}))}t(f,"updateRoute");export{f as a};
@@ -0,0 +1 @@
1
+ import{h as e}from"./chunk-4XNQRZ5E.js";import{a as t}from"./chunk-K7MC6G4X.js";var n=t(()=>({$value:null,$type:"color",$path:null}),"tokenDefaults");function f(r,l={}){let o=e();return r.set([o],{...n(),...l}),o}t(f,"addToken");export{n as a,f as b};
@@ -0,0 +1,37 @@
1
+ import{d as Di,f as Gi,g as zi,h as Ki,i as Ui,o as Hi,p as zs}from"./chunk-LOILFK74.js";import{a as u,e as w,f as s,g as f,h as g,i as h}from"./chunk-K7MC6G4X.js";import{ServiceProvider as Cc}from"@jucie.io/engine";import{Engine as Ac}from"@jucie.io/engine";import{ServiceProvider as Ra}from"@jucie.io/engine";var ee,ne,re,se,ie,Wn,oe,Dn,ae,Gn,Kn,qi,Un=class Un extends Ra{constructor(){super(...arguments);f(this,ie);f(this,oe);f(this,ae);f(this,Kn);f(this,ee,new Set);f(this,ne,new Set);f(this,re,new Set);f(this,se,!1)}actions(t,n){return{notifyMount:e=>{s(this,ee).add(e),h(this,ae,Gn).call(this)},notifyUpdate:e=>{s(this,ne).add(e),h(this,ae,Gn).call(this)},notifyUnmount:e=>{console.log("notifyUnmount",e),s(this,re).add(e),h(this,ae,Gn).call(this)},invokeBeforeMount:(e,r)=>{if(n.view==="design")return;let i=e.lifecycleHooks?.beforeMount;if(!i)return;let a=r?.scope?.()??null;return h(this,ie,Wn).call(this,i,a)},invokeBeforeUnmount:e=>{if(n.view==="design")return;let r=e.lifecycleHooks?.beforeUnmount;if(r)for(let i of e.puppets){let a=i.scope?.()??null;h(this,ie,Wn).call(this,r,a,i.$el)}}}}};ee=new WeakMap,ne=new WeakMap,re=new WeakMap,se=new WeakMap,ie=new WeakSet,Wn=u(function(t,n,e){if(t)try{let r=Array.isArray(t)?n?.$get(t):t;typeof r=="function"&&r(n,e)}catch(r){console.error("Error invoking lifecycle hook",r)}},"#invokeHook"),oe=new WeakSet,Dn=u(function(t,n){let r=this.inject("registry").getPuppet(t),i=r?.actor;if(i?.app?.config?.view==="design")return;let a=i?.lifecycleHooks?.[n];if(!a)return;let l=r.scope?.()??null,d=n==="onUnmount"?void 0:r.$el;h(this,ie,Wn).call(this,a,l,d)},"#resolveAndInvokeHook"),ae=new WeakSet,Gn=u(function(){s(this,se)||(g(this,se,!0),setTimeout(()=>{h(this,Kn,qi).call(this),g(this,se,!1)},0))},"#scheduleFlush"),Kn=new WeakSet,qi=u(function(){let t=this.inject("relay"),n=Array.from(s(this,ee)),e=Array.from(s(this,ne)),r=Array.from(s(this,re));s(this,ee).clear(),s(this,ne).clear(),s(this,re).clear();let i=new Set(n),a=e.filter(l=>!i.has(l));t.broadcast("scene:change",n,a,r),t.broadcast("scene:unmount",r),t.broadcast("scene:mount",n),t.broadcast("scene:update",a);for(let l of n)h(this,oe,Dn).call(this,l,"onMount");for(let l of a)h(this,oe,Dn).call(this,l,"onUpdate");for(let l of r)h(this,oe,Dn).call(this,l,"onUnmount")},"#flush"),u(Un,"Lifecycle"),w(Un,"manifest",{name:"Lifecycle",namespace:"lifecycle"});var zn=Un;var _i=u((c=21)=>crypto.getRandomValues(new Uint8Array(c)).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 Da}from"@jucie.io/engine";import{createComputed as co,addEffect as lo,defineStore as Ga,refreshStore as za}from"@jucie.io/reactive";var Ks=new Map,Us=Object.getPrototypeOf(async function(){}).constructor;function ce(c){return c.split(",").map(o=>o.trim()).filter(Boolean)}u(ce,"parseArgs");function mt(c){let o=null,t=null,n=null;try{if(!c||typeof c!="string")return null;if(Ks.has(c))return Ks.get(c);let e=c.match(/^async\s+function\s*\(([^)]*)\)\s*{([\s\S]*)}$/);if(e)n=ce(e[1]),t=e[2],o=new Us(...n,t);else if(e=c.match(/^async\s*\(([^)]*)\)\s*=>\s*{([\s\S]*)}$/),e)n=ce(e[1]),t=e[2],o=new Us(...n,t);else if(e=c.match(/^async\s*\(([^)]*)\)\s*=>\s*(.+)$/),e)n=ce(e[1]),t=`return ${e[2]};`,o=new Us(...n,t);else if(e=c.match(/^function\s*\(([^)]*)\)\s*{([\s\S]*)}$/),e)n=ce(e[1]),t=e[2],o=new Function(...n,t);else if(e=c.match(/^\(([^)]*)\)\s*=>\s*{([\s\S]*)}$/),e)n=ce(e[1]),t=e[2],o=new Function(...n,t);else if(e=c.match(/^\(([^)]*)\)\s*=>\s*(.+)$/),e)n=ce(e[1]),t=`return ${e[2]};`,o=new Function(...n,t);else if(e=c.match(/^(\w+)\s*=>\s*(.+)$/),e)n=[e[1].trim()],t=`return ${e[2]};`,o=new Function(...n,t);else throw new Error("Invalid function string - must be traditional function, async function, or arrow function");return Ks.set(c,o),o}catch(e){return console.error("Error creating function from:",c),console.error("Error:",e.message),null}}u(mt,"convertStringToFunction");import"@jucie.io/reactive";var V,Hs=class Hs{constructor(o,t,{node:n,styleScope:e,parentId:r=null}={}){f(this,V,new Set);w(this,"cleanupFns",new Set);w(this,"ref",null);w(this,"styleScope",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()??[],n?.bounds){let i=o.$el?.ownerDocument??(typeof document<"u"?document:null);this.styleScope=o.runtime.styleContext.createScope(this.id,i)}else this.styleScope=e??o.styleScope;this.styleScope?.register(this)}static create(o,t,n={}){return new this(o,t,n)}get puppetRids(){return s(this,V)}get firstPuppetRid(){return s(this,V).values().next().value??null}get puppets(){let o=[];for(let t of s(this,V))o.push(this.runtime.registry.getPuppet(t));return o}addPuppet(o){s(this,V).add(o)}removePuppet(o){s(this,V).delete(o)}buildStyles(){this.styleScope?.update(this.id,this.node,this.isInstance)}render(){throw new Error("render not implemented")}addDependant(o){this.dependants.add(o);let t=u(()=>this.removeDependant(o),"cleanup");return this.addCleanupFn(t),t}removeDependant(o){this.dependants.delete(o)}update(o){this.node=o,this.styleScope?.update(this.id,o,this.isInstance);for(let t of s(this,V))this.runtime.registry.getPuppet(t)?.markAsDirty?.()}destroy(){this.node?.bounds&&this.styleScope?this.runtime.styleContext.destroyScope(this.id):this.styleScope?.unregister(this.id);for(let o of[...s(this,V)]){let t=this.runtime.registry.getPuppet(o);t&&t.destroy()}this.children.forEach(o=>{this.runtime.registry.getActor(o)?.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}};V=new WeakMap,u(Hs,"Actor");var Hn=Hs;var Y,Q,Z,qs,_n,Jn,_s,K,jt,Js,le,Vs=class Vs{constructor(){f(this,Y,new Map);f(this,Q,new Map);f(this,Z,new Map);f(this,qs,null);f(this,_n,null);f(this,Jn,null);f(this,_s,new Map);f(this,K,new Map);f(this,jt,!0);f(this,Js,null);f(this,le,null)}setShouldRender(o){g(this,jt,o)}getShouldRender(){return s(this,jt)}reconcileShouldRender(o,t){s(this,jt)!==o&&(g(this,jt,o),t?.())}getChild(o){return s(this,Y).get(o)??null}setChild(o,t){s(this,Y).set(o,t)}reconcileChildren(o){for(let t of s(this,Y).keys())o.includes(t)||s(this,Y).delete(t)}getSlotRids(){return[...s(this,Z).values()]}getSlotIds(){return[...s(this,Z).keys()]}getSlot(o){return s(this,Z).get(o)??null}setSlot(o,t){s(this,Z).set(o,t)}hasSlot(o){return s(this,Z).has(o)}hasSlots(){return s(this,Z).size>0}reconcileSlots(o){for(let t of this.getSlotIds())o.includes(t)||s(this,Z).delete(t)}getSlotChild(o,t){return s(this,Q).get(o)?.get(t)??null}setSlotChild(o,t,n){s(this,Q).has(o)||s(this,Q).set(o,new Map),s(this,Q).get(o).set(t,n)}reconcileSlot(o,t){let n=s(this,Q).get(o);if(n)for(let e of n.keys())t.includes(e)||n.delete(e)}getSlotParent(o){return s(this,le)}setSlotParent(o,t){g(this,le,t)}clearSlotParent(){g(this,le,null)}getClone(o){return s(this,K).get(o)??null}setClone(o,t){s(this,K).set(o,t)}dropClone(o){s(this,K).delete(o)}hasClone(o){return s(this,K).has(o)}reconcileClones(o){for(let t of s(this,K).keys())o.has(t)||s(this,K).delete(t)}getChildrenRids(){return[...s(this,Y).values()]}getChildEntries(){return[...s(this,Y).entries()]}getSlotEntries(){return[...s(this,Q).entries()]}getCloneEntries(){return[...s(this,K).entries()]}tracks(o){if(s(this,_n)===o||s(this,Jn)===o)return!0;for(let t of s(this,Y).values())if(t===o)return!0;for(let t of s(this,Q).values())for(let n of t.values())if(n===o)return!0;for(let t of s(this,K).values())if(t===o)return!0;return!1}};Y=new WeakMap,Q=new WeakMap,Z=new WeakMap,qs=new WeakMap,_n=new WeakMap,Jn=new WeakMap,_s=new WeakMap,K=new WeakMap,jt=new WeakMap,Js=new WeakMap,le=new WeakMap,u(Vs,"Tracker");var qn=Vs;var Ea=u(c=>c?c.mode==="code"&&c.code?mt(c.code):c.mode==="binding"&&c.binding?c.binding:null:null,"resolveHookFunction");function Ys(c){if(!c||!c.length)return null;let o={};for(let t of c)o[t.key]=Ea(t);return Object.keys(o).length?o:null}u(Ys,"resolveLifecycleHooks");var ue=new Map,Pa=500;function ja(c){if(!c)return null;if(ue.has(c))return ue.get(c);let o=Na(c);if(ue.size>=Pa){let t=ue.keys().next().value;ue.delete(t)}return ue.set(c,o),o}u(ja,"compileExpression");function Na(c){return u(function(t){if(t)try{let n=Object.keys(t),e=Object.values(t);return new Function(...n,`"use strict"; return (${c});`)(...e)}catch(n){console.warn("[Expression Error]",n.message),console.warn("[Expression]",c),console.warn("[Scope]",Object.keys(t));return}},"evaluate")}u(Na,"createEvaluationFunction");function ze(c,o={}){if(!c)return;let t=ja(c);return t?t(o):void 0}u(ze,"evaluateExpression");var Vn=new Map;function Ia(c){let o=Array.isArray(c)?c.join("."):c;if(Vn.has(o))return Vn.get(o);try{let t=new Function("ctx",`
2
+ try {
3
+ return ctx.${o}
4
+ } catch (e) {
5
+ console.error('Error resolving binding:', '${o}', e.message);
6
+ return undefined;
7
+ }
8
+ `);return Vn.set(o,t),t}catch(t){console.error("Error compiling binding:",o,t.message);let n=u(()=>{},"noop");return Vn.set(o,n),n}}u(Ia,"compileBinding");function he(c,o){if(!c)return"";try{return Ia(c)(o)}catch(t){console.error("Error resolving binding:",c,t.message);return}}u(he,"resolveBinding");function Yn(c,o){return()=>{try{return c()}catch(t){return console.error("Descriptor error:",t),o}}}u(Yn,"safe");function ot(c,o){let{mode:t,value:n,binding:e,computed:r,code:i,expression:a}=c;switch(t){case"binding":return Yn(()=>he(e,o),n);case"computed":{let l=mt(r);return l?Yn(()=>l.call(o,o),n):()=>n}case"code":{let l=mt(i),d=l?l.bind(o,o):null;return Yn(()=>d??n,n)}case"expression":return Yn(()=>ze(a,o),n);case"value":default:return()=>n}}u(ot,"resolveDescriptor");function Ji(c,o){if(!c)return!0;try{return!!ot(c,o)()}catch(t){return console.error("Error resolving render condition:",t),!!c.value}}u(Ji,"resolveRender");var Fa=new Set(["disabled","readonly","hidden","aria-disabled"]);function Vi(c){return Fa.has(c)}u(Vi,"isBehavioralAttribute");function Ma(c,o,t){if(c.has(o))return c.get(o);let n=ot(o,t);return c.set(o,n),n}u(Ma,"getCachedResolver");function Ke(c,o,t){return c?Ma(c,o,t):ot(o,t)}u(Ke,"getResolver");function Yi(c,o){return c?t=>{c(t),o(t)}:o}u(Yi,"composeHandler");function fe(c,o){let t={},n=c.actor.app.config?.view==="design",e=n?null:c._descriptorCache??(c._descriptorCache=new Map),r=c.actor.app.config?.framework;try{if(c.actor.node.events&&!n)for(let m of c.actor.node.events){if(!m.name)continue;let p=Ke(e,m,o)();if(p){let y=m.name;r==="react"&&y==="onInput"&&(y="onChange"),t[y]=v=>{try{return p(v)}catch(b){console.error("Error in event handler",y,b)}}}}}catch(m){console.error("Error resolving events",m)}let i=null;try{if(c.actor.node.attributes){for(let m of c.actor.node.attributes)if(m.name&&!(n&&Vi(m.name))){if(m.name==="model"){i=m;continue}t[m.name]=Ke(e,m,o)()}}}catch(m){console.error("Error resolving attributes",m)}try{let m=c.actor.node.tagName?.toLowerCase();if(m==="input"||m==="textarea"||m==="select"){let y=i?.binding??c.actor.node.model?.binding;if(y){let v=(t.type??"").toLowerCase(),b=`${m}:${v}`,$,S,N,C;switch(b){case"input:checkbox":$="checked",S="onChange",N=!!he(y,o),C=u(A=>{try{o.$set(y,A.target.checked)}catch(z){console.error("Error in model binding (checkbox)",z)}},"writeHandler");break;case"input:radio":$="checked",S="onChange",N=he(y,o)===t.value,C=u(A=>{try{o.$set(y,A.target.value)}catch(z){console.error("Error in model binding (radio)",z)}},"writeHandler");break;default:$="value",S=r==="react"?"onChange":"onInput",N=he(y,o)??"",C=u(A=>{try{o.$set(y,A.target.value)}catch(z){console.error("Error in model binding",z)}},"writeHandler")}t[$]=N,t[S]=Yi(t[S],C)}else r==="react"&&("value"in t||"checked"in t)&&("value"in t&&t.value==null&&(t.value=""),t.onChange||(t.onChange=()=>{}))}}catch(m){console.error("Error resolving form controls",m)}try{if(c.actor.node.props&&c.actor.node.props.length>0)for(let m of c.actor.node.props){if(!m.name)continue;let p=Ke(e,m,o)();p!=null&&(t[m.name]=p)}}catch(m){console.error("Error resolving props",m)}try{let m=[c.actor.id];if(c.actor.node.className&&c.actor.node.className.length>0)for(let p of c.actor.node.className){let y=Ke(e,p,o)();y&&m.push(y)}t.className=m.join(" ")}catch(m){console.error("Error resolving className",m)}try{if(c.actor.node.destination){let m=c.actor.node.destination;switch(m.type){case"url":t.href=m.path,m.target&&(t.target=m.target),m.target==="_blank"&&(t.rel="noopener noreferrer");break;case"page":{t.href=m.id,n||(t.onClick=Yi(t.onClick,p=>{p.preventDefault(),o?.$router?.navigate(m.id,{replace:m.replace})}));break}}}}catch(m){console.error("Error resolving destination",m)}let a=c.actor.node[".interactionState"];if(n&&a&&a.length>0){let m=a[a.length-1];if(m.startsWith("&.")){let p=m.slice(2);t.className=t.className?`${t.className} ${p}`:p}else if(m.startsWith(".")){let p=m.slice(1);t.className=t.className?`${t.className} ${p}`:p}else if(m.startsWith(":")){let p=`force-${m.slice(1)}`;t.className=t.className?`${t.className} ${p}`:p}}try{if(c.actor.node.states&&!n)for(let m of c.actor.node.states){if(!m.name)continue;!!Ke(e,m,o)()&&(t.className=t.className?`${t.className} ${m.name}`:m.name)}}catch(m){console.error("Error resolving states",m)}let l=c.actor.node?.type;if((l==="frame"||l==="component"||l==="viewport")&&n){let m=c.actor.node[".activeBreakpoint"],p=c.actor.node.breakpoints??[];if(m&&m!=="default"){let y=typeof m=="number"?m:parseInt(m,10),v=p.filter(b=>b.min<=y).map(b=>String(b.min));v.length>0&&(t["data-bp"]=v.join(" "))}}return c.ref&&(t.ref=c.ref),c.rid&&(t["data-rid"]=c.rid,t["data-node-id"]=c.actor.id,t.key=c.rid,c.actor.node.name&&(t["data-name"]=c.actor.node.name),c.actor.node.id&&(t.id=c.actor.node.id)),".editingTextContent"in c.actor.node&&c.actor.node[".editingTextContent"]&&(t.contentEditable="true",t.onClick=m=>{m.preventDefault(),m.stopPropagation()}),t["data-type"]=c.actor.node.type,t}u(fe,"resolveAttributes");function Qn(c,o,{ctx:t,instanceRid:n}={},e){let r=c.runtime.registry,i=c.actor.id,a=c.getChild(o),l=r.resolveActor(c.actor.app,o,{styleScope:c.actor.styleScope,parentId:i}),d=l&&r.resolvePuppet(l,a,{ctx:t,instanceRid:n},e);return d?.render?(c.setChild(o,d.rid),r.getNodeType(o)==="slot"&&n&&r.getPuppet(n)?.setSlot(o,d.rid),r.createElement(d.render,{key:d.rid})):null}u(Qn,"resolveChild");function X(c,o=null,{ctx:t,instanceRid:n}={}){if(o=o??c.actor.node.children,typeof o=="string")return o;let e=Array.isArray(o)?o:[];if(c.reconcileChildren(e),!e.length)return[];let r=[];for(let i of e){let a=Qn(c,i,{ctx:t,instanceRid:n});a&&r.push(a)}return r}u(X,"resolveChildren");function Ta(c){return c==null?[]:typeof c=="string"?c.trim()?[c.trim()]:[]:Array.isArray(c)?c.filter(o=>typeof o=="string"&&o.trim()).map(o=>o.trim()):[]}u(Ta,"normalizeSpecificPatternNames");function Qi(c,o){let t=Ta(o),n=[];for(let e of c){let r=e.options?.type??"global",i=r==="global",a=r==="named"&&t.includes(e.name);if(!i&&!a)continue;let l={name:e.name,...e.options??{}},d=typeof e.fn=="function"?e.fn(l):[],m=Array.isArray(d)?d:[];n.push(...m)}return n}u(Qi,"resolveRegistryPatterns");function Zi(c,o=[],t=null){if(!c)return t?[]:"";if(o.length===0)return t?[c]:c;if(t){let r=[],i="",a=0,l=0;for(;a<c.length;){let d=!1;for(let m of o)if(m.trigger instanceof RegExp){let p=c.slice(a).match(m.trigger);if(p&&p.index===0){i&&(r.push(i),i=""),r.push(m.render(p[0],p,t,l++)),a+=p[0].length,d=!0;break}}else{let p=typeof m.trigger=="string"?m.trigger.trim():"";if(p==="*"){i&&(r.push(i),i="");let y=c.slice(a);r.push(m.render(y,null,t,l++)),a=c.length,d=!0;break}if(p&&c.startsWith(p,a)){i&&(r.push(i),i="");let y=p,v=a+p.length;for(;v<c.length&&!/\s/.test(c[v]);)y+=c[v++];r.push(m.render(y,null,t,l++)),a=v,d=!0;break}}d||(i+=c[a++])}return i&&r.push(i),r}let n="",e=0;for(;e<c.length;){let r=!1;for(let i of o)if(i.trigger instanceof RegExp){let a=c.slice(e).match(i.trigger);if(a&&a.index===0){n+=i.render(a[0],a),e+=a[0].length,r=!0;break}}else{let a=typeof i.trigger=="string"?i.trigger.trim():"";if(a==="*"){let l=c.slice(e);n+=i.render(l,null),e=c.length,r=!0;break}if(a&&c.startsWith(a,e)){let l=a,d=e+a.length;for(;d<c.length&&!/\s/.test(c[d]);)l+=c[d++];n+=i.render(l,null),e=d,r=!0;break}}r||(n+=c[e++])}return n}u(Zi,"parseTextWithPatterns");function Xi(c,o=null,{ctx:t}={}){o=o??c.actor.node?.textContent;try{if(o===void 0)return null;let{specificPatterns:n}=o,r=c.actor.app.config?.view==="design"?null:c._descriptorCache??(c._descriptorCache=new Map),i=r?.has(o)?r.get(o):ot(o,t);r&&!r.has(o)&&r.set(o,i);let a=i();if(c.actor.node[".editingTextContent"])return a;t&&typeof a=="string"&&a.includes("{{")&&(a=a.replace(/\{\{([^}]+)\}\}/g,(y,v)=>{try{return new Function("ctx",`return ctx.${v.trim()}`)(t)??""}catch{return""}}));let l=c.runtime.registry,d=l.getCreateElement(),m=l.hasPatterns()?l.getPatterns():null,p=m?.length?Qi(m,n):[];return d&&typeof a=="string"&&a.includes(`
9
+ `)&&(p=[{trigger:/^\n/,render:(y,v,b,$)=>b("br",{key:`br${$}`})},...p]),p.length?Zi(a,p,d):a}catch(n){console.error("Error resolving textContent",n)}}u(Xi,"resolveTextContent");function to(c,o,t){return c?.expression?ze(c.expression,{...t,item:o}):o[c?.value??c]}u(to,"resolveKey");function eo(c,o=null,{ctx:t}={}){let{type:n,set:e,expression:r,valueKey:i,labelKey:a}=o??{},l=c.runtime.registry;if(n==="binding"&&r){let d=ze(r,t);return Array.isArray(d)?d.map((m,p)=>l.createElement("option",{value:to(i,m,t),key:`d${p}`},to(a,m,t))):[]}return e?.length?e.map((d,m)=>l.createElement("option",{value:d.value,key:`s${m}`},d.label)):[]}u(eo,"resolveSelectOptions");function Zn(c,{childrenType:o,textContent:t,options:n,children:e},{ctx:r,instanceRid:i}){switch(o){case null:case"none":return null;case"text":return Xi(c,t,{ctx:r});case"options":return eo(c,n,{ctx:r});case"*":case"children":default:return X(c,e,{ctx:r,instanceRid:i})}}u(Zn,"resolveElementContent");function no(c,o,{ctx:t,instanceRid:n}){let e={};for(let r of o)e[r.id]=Zn(c,r,{ctx:t,instanceRid:n});return e}u(no,"resolveSlots");function ro(c,o){let t=o.library||"local",n=o.component,e=c.getComponent(t,n);if(e)return e;if((!o.library||o.library==="local")&&c.hasNode(n)){let i=u(({puppet:a,ctx:l,...d})=>{let m=c.getNodeChildren(n);return m?.length?m.length===1?Qn(a,m[0],{ctx:l,instanceRid:a.rid},d):X(a,m,{ctx:l,instanceRid:a.rid}):null},"Host");return c.registerComponent(t,n,i,{origin:"local",tagName:n,library:t,displayName:n}),i}return null}u(ro,"resolveComponent");function so(c,o){let t={...c};return o&&(o.className&&(t.className=t.className?`${t.className} ${o.className}`:o.className),o.ref&&(t.ref=o.ref),o["data-rid"]&&(t["data-rid"]=o["data-rid"]),o["data-node-id"]&&(t["data-node-id"]=o["data-node-id"]),o.key&&(t.key=o.key),o["data-name"]&&(t["data-name"]=o["data-name"]),o.id&&(t.id=o.id)),t}u(so,"resolveOverrides");var Xn={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 io(c,{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={...Xn,...r,outline:r.outline??Xn.outline,outlineOffset:r.outlineOffset??Xn.outlineOffset,color:r.color??Xn.color};return i.width==null&&i.minWidth==null&&(i.minWidth=80),i.height==null&&i.minHeight==null&&(i.minHeight=32),c("div",{...t,className:e,style:i,"data-missing-name":o??""},n)}u(io,"missing");function Ue(c,{ctx:o,instanceRid:t}){let n=c.runtime.registry,e=c.actor?.node;if(!e)return null;c.reconcileShouldRender(Ji(e.render,o),()=>c.runtime.lifecycle.notifyUpdate(c.rid));try{switch(e.type){case void 0:case"root":return e.children?.length?X(c,e.children,{ctx:o}):null;case"element":{let r=fe(c,o);return c.overrides&&(r=so(r,c.overrides)),c.getShouldRender()||(r.style={display:"none"}),n.createElement(e.tagName,r,Zn(c,e,{ctx:o,instanceRid:t}))}case"frame":{let r=fe(c,o);return c.getShouldRender()||(r.style={display:"none"}),n.createElement(e.tagName,r,X(c,e.children,{ctx:o}))}case"instance":{let r=ro(n,e),i=fe(c,o);if(!r)return c.actor.app.config?.view!=="design"?null:io(n.createElement,{name:e.component,...i});let a=n.getComponentMeta(e.library||"local",e.component),l=(!e.library||e.library==="local")&&a?.origin!=="source",d=e?.slots?.length?no(c,e.slots,{ctx:o,instanceRid:t}):{};return l?n.createElement(r,{puppet:c,ctx:o,...i}):n.createElement(r,{...i,...d})}case"component":return c.actor.app.config?.mode==="components"?n.createElement("div",fe(c,o),X(c,e.children,{ctx:o})):null;case"slot":{let r=n.getSlotChildren(t,c.actor.id),i=c.actor.app.config?.view==="design",a=r?.length>0;if(!a&&!i)return null;let l=fe(c,o);return c.getShouldRender()||(l.style={display:"none"}),n.createElement("div",l,a?X(c,r,{ctx:o,instanceRid:null}):X(c,e.children,{ctx:o}))}default:return console.warn("Unknown node type",e),null}}catch(r){return console.warn("Error resolving node",r),null}finally{c.notifyMount()}}u(Ue,"resolveNode");function oo(c,o){let{as:t,key:n,index:e,keyOn:r,descriptor:i}=c,a=ot(i,o)?.();return a?(Array.isArray(a)?a.map((m,p)=>[r&&m[r]!==void 0?String(m[r]):String(p),m,p]):Object.entries(a).map(([m,p])=>[r&&p[r]!==void 0?String(p[r]):m,p,m])).map(([m,p,y],v)=>[m,{[t]:p,[e]:v,[n]:y}]):[]}u(oo,"resolveRepeatData");function ao(c,{ctx:o,overrides:t,instanceRid:n}){try{let e=oo(c.actor.node.repeat,o);if(e.length===0)return c.actor.app.config.view==="design"?Ue(c,{ctx:o,overrides:t,instanceRid:n}):null;let r=new Set(e.map(a=>a.key));c.reconcileClones(r);let i=c.runtime.registry;return e.map(([a,l])=>{let d=c.getClone(a),m=o.extend(l),p=i.resolvePuppet(c.actor,d,{overrides:t,ctx:m,instanceRid:n});return c.setClone(a,p.rid),Ue(p,{ctx:m,overrides:t,instanceRid:n})})}catch(e){return console.error("Error resolving node repeat",e),null}}u(ao,"resolveNodeRepeat");import{createComputed as La,onDirty as Ba,markAsDirty as Oa,isDirty as Wa}from"@jucie.io/reactive";var er,Qs=class Qs extends qn{constructor(t,n,e={},r){super();w(this,"actor",null);w(this,"runtime",null);w(this,"rid",null);w(this,"ref",null);w(this,"mounted",!1);w(this,"overrides",null);f(this,er,!0);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.overrides=r??null,this.ref=r?.ref??null,this.lifecycleHooks=Ys(this.actor.node?.lifecycle),this.ref=this.ref??zi();let[i,a]=Ki();this.subscribeToTrigger=()=>i(),this.invalidate=()=>a(),this.view=La(()=>{this.actor.runtime.context.startRender(this);let l=this.ctx??this.actor.runtime.context.ctx;this.lifecycleHooks=Ys(this.actor.node?.lifecycle);try{return this.actor?.node?.repeat&&this.actor.app.config.view!=="design"?ao(this,{ctx:l,instanceRid:this.instanceRid}):Ue(this,{ctx:l,instanceRid:this.instanceRid})}finally{this.markAsClean(),this.actor.runtime.context.endRender()}},{detached:!0}),this.render=()=>(this.subscribeToTrigger(),this.view()),this.unsubscribe=Ba(this.view,()=>{this.markAsDirty?.()})}static create(t,n,e={},r){return new this(t,n,e,r)}get $el(){return this.actor.node?.type==="root"?typeof document<"u"?document.getElementById(this.actor.id):null:this.ref?.value??this.ref?.current}notifyMount(){this.mounted||(this.runtime.lifecycle.notifyMount(this.rid),this.mounted=!0)}update(t={},n){this.ctx=t.ctx??this.ctx,this.instanceRid=t.instanceRid??this.instanceRid,this.overrides=n??this.overrides}markAsDirty(){if(this.hasSlots())for(let t of this.getSlotRids()){let n=this.runtime.registry.getPuppet(t);n&&n.markAsDirty()}this.invalidate?.(),!Wa(this.view)&&Oa(this.view)}markAsClean(){this.runtime.lifecycle.notifyUpdate(this.rid),g(this,er,!1)}destroy(){if(this.storeSubscriptions){for(let t of this.storeSubscriptions.values())t?.();this.storeSubscriptions.clear()}this._descriptorCache?.clear(),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?.()}};er=new WeakMap,u(Qs,"Puppet");var tr=Qs;var Zs=class Zs{constructor(o,t,n){w(this,"config",null);w(this,"runtime",null);w(this,"styleScope",null);w(this,"$el",null);w(this,"host",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(tr),t.registry.setCreateElement(zs.createElement),t.registry.setRenderSource(Hi)}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=Ui(this.$el,n=>{let e=t.resolveActor(this,n),r=this.runtime.context.ctx,i=e&&t.resolvePuppet(e,n,{ctx:r});return(0,zs.createElement)(i?.render,Gi(n))}),await Promise.resolve(this.host.mount(o)),Di(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}};u(Zs,"App");var nr=Zs;var fo=new Set(["id","type","ex","children","text"]),uo=u(c=>c!==null&&typeof c=="object"&&!Array.isArray(c),"isPlainObject");function ho(c=[],o=[]){let t=new Map(c.filter(Boolean).map(n=>[n.name,n]));for(let n of o)n&&t.set(n.name,n);return Array.from(t.values())}u(ho,"mergeByName");function He(c,o){if(o===void 0)return c;if(c===void 0)return o;if(uo(c)&&uo(o)){let t={...c};for(let n of Object.keys(o)){let e=o[n];e===void 0?delete t[n]:t[n]=He(c[n],e)}return t}return o}u(He,"cascadeMerge");function Ka(c){let{ex:o,type:t,...n}=c;return n}u(Ka,"stripChainKeys");function Ua(c){let o={};for(let t of Object.keys(c))!fo.has(t)&&t!=="ex"&&(o[t]=c[t]);return o}u(Ua,"stripInstanceKeys");function Ha(c,o){let t=[],n=c;for(;n&&o.has(n);)t.push(n),n=o.get(n).ex;return t}u(Ha,"chainOf");var pt,Nt,me,gt,_e,It,I,F,M,R,at,pe,ct,Je,ge,Ve,Xs,Ye,ti,ye,rr,ar,mo,cr,po,Ft,qe,ve,sr,be,ir,Qe,ei,Ze,ni,Xe,ri,lr,go,ur,yo,tn,si,yt,de,en,ii,hr,vo,nn,oi,fr,bo,rn,ai,dr=class dr extends Da{constructor(){super(...arguments);f(this,Ve);f(this,Ye);f(this,ye);f(this,ar);f(this,cr);f(this,Ft);f(this,ve);f(this,be);f(this,Qe);f(this,Ze);f(this,Xe);f(this,lr);f(this,ur);f(this,tn);f(this,yt);f(this,en);f(this,hr);f(this,nn);f(this,fr);f(this,rn);f(this,pt,null);f(this,Nt,null);f(this,me,null);f(this,gt,new Map);f(this,_e,new Map);f(this,It,new Map);f(this,I,new Map);f(this,F,new Map);f(this,M,new Map);f(this,R,new Map);f(this,at,new Map);f(this,pe,new Map);f(this,ct,new Map);f(this,Je,!1);f(this,ge,null)}actions(t,n){return{registerLibrary:(e,{source:r=null,manifest:i=null}={})=>{let a=h(this,ye,rr).call(this,e);return r!==null&&(a.source=r),i!==null&&(a.manifest=i),a},getLibrary:e=>s(this,R).get(e)??null,hasLibrary:e=>s(this,R).has(e),getLibraries:()=>Array.from(s(this,R).keys()),loadSources:e=>h(this,cr,po).call(this,e),loadPrototypes:e=>{for(let[r,i]of Object.entries(e??{}))s(this,ct).set(r,i)},registerComponent:(e,r,i,a)=>h(this,Ft,qe).call(this,e,r,i,a),registerComponents:(e,r)=>{if(!r)return;let i=r instanceof Map?r.entries():Object.entries(r);for(let[a,l]of i)l&&typeof l=="object"&&"component"in l?h(this,Ft,qe).call(this,e,a,l.component,l.meta??{}):h(this,Ft,qe).call(this,e,a,l)},unregisterComponent:(e,r)=>{let i=s(this,R).get(e);i&&i.components.delete(r)},getComponentEntry:(e,r)=>h(this,ve,sr).call(this,e,r),getComponent:(e,r)=>h(this,ve,sr).call(this,e,r)?.component??null,getComponentMeta:(e,r)=>{let i=s(this,R).get(e);return i?i.meta?.get(r)??h(this,ve,sr).call(this,e,r)?.meta??null:null},hasComponent:(e,r)=>s(this,R).get(e)?.components.has(r)??!1,getComponentsByLibrary:e=>{let r=s(this,R).get(e);return r?Array.from(r.components.values()):[]},getAllComponents:()=>{let e=[];for(let[r,i]of s(this,R)){let a=new Set([...i.meta?.keys()??[],...i.components?.keys()??[]]);for(let l of a){let d=i.components.get(l),m=i.meta?.get(l)??d?.meta??null;m&&e.push({library:r,name:l,component:d?.component??null,meta:m})}}return e},hasNode:e=>h(this,lr,go).call(this,e),getNode:e=>h(this,ur,yo).call(this,e),getNodeType:e=>h(this,yt,de).call(this,e)()?.type??null,getNodeChildren:e=>h(this,yt,de).call(this,e)()?.children??null,resolveComputedNode:e=>h(this,yt,de).call(this,e),addActor:e=>{s(this,I).set(e.id,e)},getActor:e=>h(this,be,ir).call(this,e),hasActor:e=>h(this,Qe,ei).call(this,e),deleteActor:e=>{s(this,I).delete(e)},getActors:(e=[])=>!e||e.length===0?Array.from(s(this,I).values()):e.map(r=>s(this,I).get(r)),resolveActorRid:e=>{if(h(this,Qe,ei).call(this,e)){let i=h(this,be,ir).call(this,e).firstPuppetRid;if(i!=null)return i}return h(this,Ye,ti).call(this,e)},createActorRid:e=>h(this,Ye,ti).call(this,e),getActorId:e=>s(this,gt).get(e),getActorByRid:e=>{let r=s(this,gt).get(e);return r?s(this,I).get(r):null},syncActorChildren:(e,r=[])=>{if(!e||e.length===0)return r.slice();let i=new Set(r),a=e.filter(l=>!i.has(l));for(let l of a){let d=h(this,be,ir).call(this,l);d&&d.destroy()}return r.slice()},resolveActor:(e,r,{styleScope:i,parentId:a}={})=>h(this,Ze,ni).call(this,e,r,{styleScope:i,parentId:a}),addPuppet:e=>{s(this,F).set(e.rid,e)},getPuppet:e=>s(this,F).get(e),hasPuppet:e=>s(this,F).has(e),deletePuppet:e=>{s(this,F).delete(e)},getPuppets:(e=[])=>!e||e.length===0?Array.from(s(this,F).values()):e.map(r=>s(this,F).get(r)),resolvePuppet:(e,r,{ctx:i,instanceRid:a},l)=>h(this,Xe,ri).call(this,e,r,{ctx:i,instanceRid:a},l),resolveSlotPuppet:(e,r)=>this.resolveSlotPuppet(e,r),getSlotChildren:(e,r)=>this.getSlotChildren(e,r),addStore:(e,r)=>{s(this,M).set(e,{store:r,cleanup:null,paths:[]})},getStore:e=>s(this,M).get(e)?.store,hasStore:e=>s(this,M).has(e),removeStore:e=>{s(this,M).delete(e)},getCurrentStoreNames:()=>Array.from(s(this,M).keys()),getContextPaths:()=>{let e=[];for(let{paths:r}of s(this,M).values())r&&e.push(...r);return e.push(...this.inject("router")?.contextPaths??[]),e.push(...this.inject("animator")?.contextPaths??[]),e},createApp:async(e,r,i={})=>{let a=t(),l=document.getElementById(e),d={...n,mode:"app",...i};h(this,hr,vo).call(this,d.view==="design"||d.view==="preview"||d.view==="screen-capture");let m=nr.create(d,a,l);return d.view!=="design"&&(r=r||a.router?.getCurrentId()||d.nodeId,a.router.setCallback(p=>m.navigate(p)),await a.router.navigate(r,{replace:!0})),await Promise.resolve(m.create(r)),s(this,It).set(e,m),m},getApp:e=>s(this,It).get(e),deleteApp:e=>{let r=s(this,It).get(e);return r&&(r.destroy(),s(this,It).delete(e)),r},addPattern:(e,r,i={})=>{let a={type:"global",...i};return s(this,at).set(e,{name:e,fn:r,options:a}),()=>{s(this,at).delete(e)}},hasPatterns:()=>s(this,at).size>0,hasPattern:e=>s(this,at).has(e),getPatterns:()=>Array.from(s(this,at).values()),removePattern:e=>{s(this,at).delete(e)},registerPrototype:(e,r)=>{s(this,ct).set(e,r)},getPrototype:e=>s(this,ct).get(e)??null,hasPrototype:e=>s(this,ct).has(e),createId:()=>h(this,Ve,Xs).call(this),getRids:()=>Array.from(s(this,gt).keys()),setActorClass:e=>{g(this,pt,e)},getActorClass:()=>s(this,pt),setPuppetClass:e=>{g(this,Nt,e)},getPuppetClass:()=>s(this,Nt),setCreateElement:e=>{g(this,me,e)},getCreateElement:()=>s(this,me),createElement:(...e)=>s(this,me).call(this,...e),setRenderSource:e=>{g(this,ge,e)},getRenderSource:()=>s(this,ge),renderSource:(...e)=>s(this,ge).call(this,...e)}}setSlot(t,n){s(this,_e).set(t,n)}getSlot(t){return s(this,_e).get(t)}resolveSlotPuppet(t,n){let e=s(this,F).get(t);if(!e)return null;try{let r=e.ctx||{},i=e.actor.app,a=e.actor.styleScope,l=e.actor.id,d=h(this,Ze,ni).call(this,i,n,{styleScope:a,parentId:l});if(!d)return null;let m=e.getSlot(n),p=h(this,Xe,ri).call(this,d,m,{ctx:r,parentId:l,instanceRid:t});return p?(e.setSlot(n,p.rid),p):null}catch(r){return console.warn("Error resolving slot",n,r),null}}getSlotChildren(t,n){let e=s(this,F).get(t);if(!e)return null;let r=e.actor.node.slots?.find(i=>i.id===n);return r?r.children:null}};pt=new WeakMap,Nt=new WeakMap,me=new WeakMap,gt=new WeakMap,_e=new WeakMap,It=new WeakMap,I=new WeakMap,F=new WeakMap,M=new WeakMap,R=new WeakMap,at=new WeakMap,pe=new WeakMap,ct=new WeakMap,Je=new WeakMap,ge=new WeakMap,Ve=new WeakSet,Xs=u(function(){let t="a",e,r=0,i=100;do if(e=`${t}${_i(10)}`,r++,r>i)throw new Error(`Failed to generate unique ID after ${i} attempts`);while(s(this,gt).has(e));return e},"#createId"),Ye=new WeakSet,ti=u(function(t){let n=h(this,Ve,Xs).call(this);return s(this,gt).set(n,t),n},"#createActorRid"),ye=new WeakSet,rr=u(function(t){s(this,R).has(t)||s(this,R).set(t,{source:null,manifest:null,meta:new Map,components:new Map});let n=s(this,R).get(t);return n.meta||(n.meta=new Map),n.components||(n.components=new Map),n},"#ensureLibrary"),ar=new WeakSet,mo=u(function(t,n,e={}){let{displayName:r=n,description:i="",category:a="components",keywords:l=[n,t],props:d=[],slots:m=[],tagName:p=n,...y}=e;return{...y,displayName:r,description:i,category:a,keywords:l,props:d,slots:m,tagName:p,library:t}},"#normalizeMeta"),cr=new WeakSet,po=u(function(t={}){for(let[n,e]of Object.entries(t??{})){let r=h(this,ye,rr).call(this,n);e!=null&&(r.source=e),e?.manifest!==void 0&&(r.manifest=e.manifest??null);let i=e?.components??{};for(let[a,l]of Object.entries(i)){let d=e?.manifest?.[a];h(this,Ft,qe).call(this,n,a,l,{displayName:d?.displayName??a,description:d?.description??"",category:d?.category??"components",keywords:d?.keywords??[a,n],props:d?.props??[],slots:d?.slots??[],tagName:a,origin:"source"})}}},"#loadSources"),Ft=new WeakSet,qe=u(function(t,n,e,r={}){let i=h(this,ye,rr).call(this,t),a=h(this,ar,mo).call(this,t,n,r);i.meta.set(n,a);let l={library:t,name:n,component:e,meta:a};return i.components.set(n,l),l},"#registerComponent"),ve=new WeakSet,sr=u(function(t,n){return s(this,R).get(t)?.components.get(n)??null},"#getComponentEntry"),be=new WeakSet,ir=u(function(t){return s(this,I).get(t)},"#getActor"),Qe=new WeakSet,ei=u(function(t){return s(this,I).has(t)},"#hasActor"),Ze=new WeakSet,ni=u(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(s(this,I).has(n)){let d=s(this,I).get(n);return r!=null&&d.parentId!==r&&(d.parentId=r,e&&d.styleScope!==e?(d.styleScope?.unregister(d.id),d.styleScope=e,d.styleScope.register(d)):d.styleScope?.update(d.id,d.node,d.isInstance)),d}if(!s(this,pt))throw new Error("Registry.resolveActor: no actor class registered (call setActorClass)");if(t.config?.view==="design"||t.config?.view==="preview"||t.config?.view==="screen-capture"){let d=h(this,yt,de).call(this,n),m=d();if(!m)return i.warn("resolveActor: node not found",{message:"node not found",id:n,parentId:r}),null;let p=s(this,pt).create(t,n,{node:m,styleScope:e,parentId:r});s(this,I).set(p.id,p);let y=lo(d,v=>{if(p&&v){p.update?.(v);return}if(!v){p.destroy?.();return}});return p.addCleanupFn?.(y),p}let a=h(this,en,ii).call(this,n);if(!a)return i.warn("resolveActor: node not found",{message:"node not found",id:n,parentId:r}),null;let l=s(this,pt).create(t,n,{node:a,styleScope:e,parentId:r});return s(this,I).set(l.id,l),l},"#resolveActor"),Xe=new WeakSet,ri=u(function(t,n,e={},r){if(n&&s(this,F).has(n)){let a=s(this,F).get(n);return a.update(e,r),a}if(!s(this,Nt))throw new Error("Registry.resolvePuppet: no puppet class registered (call setPuppetClass)");let i=s(this,Nt).create(t,n,e,r);return t.addPuppet(i.rid),s(this,F).set(i.rid,i),this.inject("lifecycle").invokeBeforeMount(i),i},"#resolvePuppet"),lr=new WeakSet,go=u(function(t){return this.inject("state").has(["nodes",t])},"#hasNode"),ur=new WeakSet,yo=u(function(t){return this.inject("state").get(["nodes",t])},"#getNode"),tn=new WeakSet,si=u(function(t){let n=Ha(t.ex??t.type,s(this,ct)).reverse(),e={};for(let a of n){let l=s(this,ct).get(a);l&&(e=He(e,Ka(l)))}let r=t.attributes,i=t.events;e=He(e,Ua(t)),r!=null&&(e.attributes=ho(e.attributes,r)),i!=null&&(e.events=ho(e.events,i));for(let a of fo)a in t&&(e[a]=t[a]);return e},"#resolvePrototype"),yt=new WeakSet,de=u(function(t){if(s(this,pe).has(t))return s(this,pe).get(t);let n=this.inject("state"),e=co(()=>{let r=n.get(["nodes",t]);if(!r)return null;if(r.ex&&n.has(["nodes",r.ex])){let a=h(this,yt,de).call(this,r.ex);onDirty(a,()=>markAsDirty(e));let l=a();return He(l,r)}return h(this,tn,si).call(this,r)},{detached:!0});return s(this,pe).set(t,e),e},"#resolveComputedNode"),en=new WeakSet,ii=u(function(t){let n=this.inject("state"),e=n.get(["nodes",t]);if(!e)return null;if(e.ex&&n.has(["nodes",e.ex])){let r=h(this,en,ii).call(this,e.ex);return He(r,e)}return h(this,tn,si).call(this,e)},"#resolveNode"),hr=new WeakSet,vo=u(function(t=!0){if(s(this,Je))return;g(this,Je,!0);let n=this.inject("state"),e=n.get(["stores"])??{};for(let r of Object.keys(e))h(this,nn,oi).call(this,r,t);t&&n.matcher.createMatcher(["stores"],r=>{console.log("initializeStores: matcher",r);let i=new Set(s(this,M).keys());console.log("initializeStores: current",i);let a=new Set(Object.keys(r??{}));console.log("initializeStores: next",a);for(let l of i)a.has(l)||h(this,fr,bo).call(this,l);for(let l of a)i.has(l)||h(this,nn,oi).call(this,l,t)})},"#initializeStores"),nn=new WeakSet,oi=u(function(t,n=!0){let[e,r]=this.inject("state","log"),i=co(()=>e.get(["stores",t]),{detached:!0}),a=Ga(m=>{let p=i(),y={};if(p?.state)for(let{key:v,value:b}of p.state)y[v]=m.signal(b);if(p?.computed)for(let{name:v,code:b}of p.computed)try{let $=mt(b);$&&(y[v]=m.computed(u(function(N,C){try{return $.call(N,N,C)}catch(A){r.warn(`[Store:${t}] computed "${v}" threw: ${A.message}`);return}},"safeFn")))}catch($){r.warn(`[Store:${t}] computed "${v}" failed to compile: ${$.message}`)}if(p?.actions)for(let{name:v,code:b}of p.actions)try{let $=mt(b);$&&(y[v]=m.action(u(function(...N){try{return $.apply(this,N)}catch(C){r.warn(`[Store:${t}] action "${v}" threw: ${C.message}`)}},"safeAction")))}catch($){r.warn(`[Store:${t}] action "${v}" failed to compile: ${$.message}`)}return y}),l=n?h(this,rn,ai).call(this,t,i()):[],d=n?lo(i,()=>{za(a);let m=s(this,M).get(t);m&&(m.paths=h(this,rn,ai).call(this,t,i()))}):null;s(this,M).set(t,{store:a,cleanup:d,paths:l})},"#materializeStore"),fr=new WeakSet,bo=u(function(t){s(this,M).get(t)?.cleanup?.(),s(this,M).delete(t)},"#teardownStore"),rn=new WeakSet,ai=u(function(t,n){let e=[];if(n?.state)for(let{key:r}of n.state)e.push({path:["$store",t,r],type:"state",dot:`$store.${t}.${r}`,hint:"Reactive state value"});if(n?.computed)for(let{name:r}of n.computed)e.push({path:["$store",t,r],type:"computed",dot:`$store.${t}.${r}`,hint:"Computed value"});if(n?.actions)for(let{name:r}of n.actions)e.push({path:["$store",t,r],type:"action",dot:`$store.${t}.${r}`,hint:"Store action"});return e},"#buildStorePaths"),u(dr,"Registry"),w(dr,"manifest",{name:"Registry",namespace:"registry"});var or=dr;import{createComputed as wo,addEffect as $o}from"@jucie.io/reactive";import{ServiceProvider as qa}from"@jucie.io/engine";var E,we,sn,on,x,vt,yr,So,vr,Ao,br,Co,wr,ko,an,ci,$r,xo,$e,mr,cn,li,Sr,Ro,ln,ui,Se,pr,Ar,Eo,un,hi,Cr=class Cr extends qa{constructor(){super(...arguments);f(this,yr);f(this,vr);f(this,br);f(this,wr);f(this,an);f(this,$r);f(this,$e);f(this,cn);f(this,Sr);f(this,ln);f(this,Se);f(this,Ar);f(this,un);f(this,E,new Map);f(this,we,new Map);f(this,sn,null);f(this,on,[]);f(this,x,new Map);f(this,vt,new Map)}initialize(){let t=this.config,n=this.inject("relay"),e=this.inject("state").ref(["animations"]);h(this,yr,So).call(this,e),n.on("scene:unmount",r=>{for(let i of r)this.unbindPuppet(i)}),t?.view!=="design"&&(n.on("scene:mount",r=>{for(let i of r)this.bindPuppet(i)}),n.on("scene:update",r=>{for(let i of r)this.rebindPuppet(i)}))}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 s(this,E))t.has(r)||(t.add(r),n[e]=r);return n},getActiveAnimation:t=>{for(let n of s(this,x).values()){let e=n.get(t);if(e?.size)return[...e][0]}return null},seekAnimation:(t,n)=>{let e=!1;for(let a of s(this,x).values()){let l=a.get(t);if(l?.size){e=!0;for(let d of l)d.pause(),d.currentTime=n}}if(e)return;let r=s(this,E).get(t);if(!r)return;let i=this.inject("registry");for(let a of i.getPuppets()){if(!a)continue;let l=a.rid;if(!(a?.actor?.node?.animations??[]).some(p=>p.id===t))continue;let m=a.el??document.querySelector(`[data-rid="${l}"]`);if(m)try{let p=(r.keyframes??[]).map(b=>{let{offset:$,...S}=b;return{offset:$,...S}}),y=new KeyframeEffect(m,p,{duration:r.duration??300,fill:"both"}),v=new Animation(y,document.timeline);v.pause(),v.currentTime=n,h(this,Se,pr).call(this,l,t,v)}catch{}}}}}getAnimationAsset(t){return s(this,E).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 a=n.querySelectorAll(t);return Array.from(a)}catch{return[]}}play(t,n,e={}){let r=s(this,E).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 a=e.stagger??0,l=[];for(let d=0;d<i.length;d++){let m=i[d],p=r.keyframes.map(S=>({offset:S.offset,...S.properties})),y={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)+a*d,endDelay:e.endDelay??r.endDelay??0},v=new KeyframeEffect(m,p,y),b=new Animation(v,m.ownerDocument.timeline);b.play();let $=m.dataset?.rid;$&&h(this,Se,pr).call(this,$,n,b),l.push(b)}return l.length===1?l[0]:l}cancel(t,n){let e=this.resolveTargets(t);for(let r of e){let i=r.dataset?.rid;if(!i)continue;let a=s(this,x).get(i);if(a)if(n){let l=a.get(n);if(l){for(let d of l)d.cancel();a.delete(n)}}else{for(let l of a.values())for(let d of l)d.cancel();a.clear()}}}pauseAll(t){let n=this.resolveTargets(t);for(let e of n){let r=e.dataset?.rid;if(!r)continue;let i=s(this,x).get(r);if(i)for(let a of i.values())for(let l of a)l.pause()}}resumeAll(t){let n=this.resolveTargets(t);for(let e of n){let r=e.dataset?.rid;if(!r)continue;let i=s(this,x).get(r);if(i)for(let a of i.values())for(let l of a)l.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,$r,xo).call(this,e,i)}rebindPuppet(t){this.unbindPuppet(t),this.bindPuppet(t)}unbindPuppet(t){let n=s(this,vt).get(t);if(n){for(let e of n)e();s(this,vt).delete(t)}h(this,Ar,Eo).call(this,t)}};E=new WeakMap,we=new WeakMap,sn=new WeakMap,on=new WeakMap,x=new WeakMap,vt=new WeakMap,yr=new WeakSet,So=u(function(t){g(this,sn,wo(()=>t.get())),$o(s(this,sn),n=>{let e=n?Object.keys(n):[],r=s(this,on),i=new Set(e),a=new Set(r);for(let l of e)a.has(l)||h(this,vr,Ao).call(this,l,t);for(let l of r)i.has(l)||h(this,br,Co).call(this,l);g(this,on,e.slice())})},"#initReactiveAnimations"),vr=new WeakSet,Ao=u(function(t,n){if(s(this,we).has(t))return;let e=wo(()=>n.get([t]));s(this,we).set(t,e);let r=$o(e,i=>{if(!i){h(this,an,ci).call(this,t),r();return}h(this,wr,ko).call(this,t,i)})},"#watchAnimation"),br=new WeakSet,Co=u(function(t){s(this,we).delete(t),h(this,an,ci).call(this,t)},"#unwatchAnimation"),wr=new WeakSet,ko=u(function(t,n){let e=s(this,E).get(t);e?.name&&e.name!==n.name&&s(this,E).delete(e.name),s(this,E).set(t,n),n.name&&s(this,E).set(n.name,n)},"#indexAnimation"),an=new WeakSet,ci=u(function(t){let n=s(this,E).get(t);n?.name&&s(this,E).delete(n.name),s(this,E).delete(t)},"#removeAnimationFromIndex"),$r=new WeakSet,xo=u(function(t,n){let e=t.rid,r=n.play??n.trigger,i=n.reverse??null,a=n.reset??null;r&&h(this,$e,mr).call(this,t,e,r,n,"play"),i&&h(this,$e,mr).call(this,t,e,i,n,"reverse"),a&&h(this,$e,mr).call(this,t,e,a,n,"reset")},"#bindActions"),$e=new WeakSet,mr=u(function(t,n,e,r,i){if(e==="mount"){i==="play"&&h(this,ln,ui).call(this,t,r);return}if(e==="manual")return;if(e==="visible"){let m=t.$el;if(!m)return;let p=!1,y=new IntersectionObserver(v=>{for(let b of v)b.isIntersecting&&!p&&(p=!0,h(this,cn,li).call(this,t,r,i),y.disconnect())},{threshold:.1});y.observe(m),h(this,un,hi).call(this,n,()=>y.disconnect());return}let a=t.$el;if(!a)return;let l=e==="focus"?"focusin":e==="focusout"?"focusout":e,d=u(()=>h(this,cn,li).call(this,t,r,i),"handler");a.addEventListener(l,d),h(this,un,hi).call(this,n,()=>a.removeEventListener(l,d))},"#bindEvent"),cn=new WeakSet,li=u(function(t,n,e){let r=t.rid;if(e==="play"){h(this,ln,ui).call(this,t,n);return}if(e==="reverse"){let i=s(this,x).get(r);if(!i)return;let a=i.get(n.id);if(!a)return;for(let l of a)(l.playState==="running"||l.playState==="paused")&&l.reverse();return}if(e==="reset"){let i=s(this,x).get(r);if(!i)return;let a=i.get(n.id);if(!a)return;for(let l of a)try{l.cancel()}catch{}a.clear();return}},"#executeAction"),Sr=new WeakSet,Ro=u(function(t,n){let e=s(this,x).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"),ln=new WeakSet,ui=u(function(t,n){if(h(this,Sr,Ro).call(this,t.rid,n.id))return;let e=n.target?this.resolveTargets(n.target):[t.$el];if(!e.length)return;let r=s(this,E).get(n.id);if(!r)return;let i=n.stagger??0;for(let a=0;a<e.length;a++){let l=e[a];if(!l)continue;let d=r.keyframes.map(b=>({offset:b.offset,...b.properties})),m={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*a,endDelay:n.endDelay??r.endDelay??0},p=new KeyframeEffect(l,d,m),y=new Animation(p,l.ownerDocument.timeline);y.play();let v=l.dataset?.rid??t.rid;h(this,Se,pr).call(this,v,n.id,y)}},"#playOnPuppet"),Se=new WeakSet,pr=u(function(t,n,e){s(this,x).has(t)||s(this,x).set(t,new Map);let r=s(this,x).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"),Ar=new WeakSet,Eo=u(function(t){let n=s(this,x).get(t);if(n){for(let e of n.values())for(let r of e)try{r.cancel()}catch{}s(this,x).delete(t)}},"#cancelAllForRid"),un=new WeakSet,hi=u(function(t,n){s(this,vt).has(t)||s(this,vt).set(t,new Set),s(this,vt).get(t).add(n)},"#addCleanup"),u(Cr,"Animator"),w(Cr,"manifest",{name:"Animator",namespace:"animator"});var gr=Cr;import{ServiceProvider as _a}from"@jucie.io/engine";import{createSignal as Ja}from"@jucie.io/reactive";var bt,Mt,Ae,Ce,ke,Tt,Lt,wt,xe,kr,Pr,Po,jr,jo,Nr,No,Re,xr,Bt,hn,Ir,Io,Ee,Rr,Fr,Fo,fn,fi,Mr=class Mr extends _a{constructor(){super(...arguments);f(this,xe);f(this,Pr);f(this,jr);f(this,Nr);f(this,Re);f(this,Bt);f(this,Ir);f(this,Ee);f(this,Fr);f(this,fn);w(this,"routes",[]);f(this,bt,Ja(null));f(this,Mt,null);f(this,Ae,{});f(this,Ce,!1);f(this,ke,new Map);f(this,Tt,[]);f(this,Lt,[]);f(this,wt,!1)}initialize(t,n){n.view!=="design"&&(g(this,Ae,{basePath:n.basePath||""}),g(this,Ce,!0),h(this,xe,kr).call(this),h(this,jr,jo).call(this))}getters(){return{currentRoute:()=>this.getCurrentRoute(),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","navigate"],type:"action",dot:"$router.navigate",hint:"Navigate to a path or page id"}]}}actions(){return{navigate:(t,n)=>this.navigate(t,n),back:()=>this.back(),forward:()=>this.forward(),getCurrentId:()=>this.getCurrentId()??null,setCallback:t=>this.setCallback(t),getCurrentRoute:()=>this.getCurrentRoute()??null}}setCallback(t){return g(this,Mt,t),()=>{g(this,Mt,null)}}async navigate(t,n={}){let e=this.inject("log");typeof t=="string"&&(t=t.replace(/\/{2,}/g,"/")),this.routes.length===0&&h(this,xe,kr).call(this),e.debug(`[Router] navigate("${t}") routes=${this.routes.length}`);let r=s(this,bt).call(this),i=h(this,Re,xr).call(this,t);if(e.debug(`[Router] from=${r?.path??"null"} \u2192 to=${i?.path??"null"}`),!i)return console.warn(`Router: No route found for: ${t}`),!1;let a=r?h(this,Bt,hn).call(this,r.pageId):null,l=h(this,Bt,hn).call(this,i.pageId);if(a?.beforeLeave)try{if(await a.beforeLeave(i,r)===!1)return!1}catch(d){return console.error("Router: beforeLeave guard error:",d),!1}if(l?.beforeEnter)try{let d=await l.beforeEnter(i,r);if(d===!1)return!1;if(typeof d=="string")return this.navigate(d,n)}catch(d){return console.error("Router: beforeEnter guard error:",d),!1}if(!s(this,wt)&&!n.replace&&r&&(s(this,Tt).push(r),s(this,Lt).length=0),s(this,Ce)){let d=h(this,Fr,Fo).call(this,i.path);n.replace?window.history.replaceState({},"",d):window.history.pushState({},"",d),l?.title&&(document.title=l.title)}return s(this,bt).call(this,i),console.log("[Router] signal set \u2192",i.path,i),s(this,Mt)&&s(this,Mt).call(this,i.pageId),a?.afterLeave&&Promise.resolve().then(()=>a.afterLeave(i,r)),l?.afterEnter&&Promise.resolve().then(()=>l.afterEnter(i,r)),!0}getCurrentRoute(){return s(this,bt).call(this)}async back(){if(s(this,Tt).length===0)return!1;let t=s(this,bt).call(this),n=s(this,Tt).pop();t&&s(this,Lt).push(t),g(this,wt,!0);let e=await this.navigate(n.path,{replace:!0});return g(this,wt,!1),e}async forward(){if(s(this,Lt).length===0)return!1;let t=s(this,bt).call(this),n=s(this,Lt).pop();t&&s(this,Tt).push(t),g(this,wt,!0);let e=await this.navigate(n.path,{replace:!0});return g(this,wt,!1),e}getCurrentId(){if(!s(this,Ce))return null;this.routes.length===0&&h(this,xe,kr).call(this);let t=window.location.pathname+window.location.search;return h(this,Re,xr).call(this,t)?.pageId||null}};bt=new WeakMap,Mt=new WeakMap,Ae=new WeakMap,Ce=new WeakMap,ke=new WeakMap,Tt=new WeakMap,Lt=new WeakMap,wt=new WeakMap,xe=new WeakSet,kr=u(function(){this.routes=h(this,Pr,Po).call(this),g(this,ke,new Map);for(let t of this.routes)s(this,ke).set(t.id,t)},"#loadRoutes"),Pr=new WeakSet,Po=u(function(){let t=this.inject("state"),n=t.get(["nodes","app","children"]);return n?n.map(e=>{let r=t.get(["nodes",e]);return r?.route?.path?{id:e,name:r.name||null,path:r.route.path,params:r.route.params||[],title:r.route.title||r.name||e}:null}).filter(Boolean):[]},"#parseRoutes"),jr=new WeakSet,jo=u(function(){document.addEventListener("click",t=>{let n=t.target.closest("a");if(n&&h(this,Nr,No).call(this,n,t)){t.preventDefault();let e=new URL(n.href);this.navigate(e.pathname+e.search)}}),window.addEventListener("popstate",()=>{this.navigate(window.location.pathname+window.location.search)})},"#setupBrowserIntegration"),Nr=new WeakSet,No=u(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,fn,fi).call(this,t.pathname);return h(this,Re,xr).call(this,e)!==null},"#shouldHandleLink"),Re=new WeakSet,xr=u(function(t){if(!t)return null;let n=h(this,Bt,hn).call(this,t);if(n)return{pageId:n.id,name:n.name,path:n.path,params:{},query:h(this,Ee,Rr).call(this,window.location.search),meta:n.meta||{},title:n.title};let e=h(this,fn,fi).call(this,t.split("?")[0]),r=e.startsWith("/")?e.slice(1):e,i=h(this,Bt,hn).call(this,r);if(i)return{pageId:i.id,name:i.name,path:i.path,params:{},query:h(this,Ee,Rr).call(this,window.location.search),meta:i.meta||{},title:i.title};for(let a of this.routes){let l=h(this,Ir,Io).call(this,a.path,e);if(l)return{pageId:a.id,name:a.name,path:e,params:l.params,query:h(this,Ee,Rr).call(this,t.includes("?")?t.split("?")[1]:""),meta:a.meta||{},title:a.title}}return null},"#matchRoute"),Bt=new WeakSet,hn=u(function(t){return s(this,ke).get(t)??null},"#findRouteById"),Ir=new WeakSet,Io=u(function(t,n){let e=u(d=>(d.startsWith("/")?d.slice(1):d).split("/").filter(p=>p),"normalizePath"),r=e(t),i=e(n);if(r.length!==i.length)return null;let a={};return r.every((d,m)=>{let p=i[m];return d.startsWith(":")?(a[d.slice(1)]=decodeURIComponent(p),!0):d===p})?{params:a}:null},"#matchPath"),Ee=new WeakSet,Rr=u(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"),Fr=new WeakSet,Fo=u(function(t){let n=s(this,Ae).basePath||"",e=t.startsWith("/")?t:"/"+t;return n?n+e:e},"#buildURL"),fn=new WeakSet,fi=u(function(t){let n=s(this,Ae).basePath||"";return n&&t.startsWith(n)?t.slice(n.length)||"/":t},"#stripBasePath"),u(Mr,"Router"),w(Mr,"manifest",{name:"Router",namespace:"router"});var Er=Mr;import{ServiceProvider as Va}from"@jucie.io/engine";var Ot,Wt,U,Lr,Mo,Br,To,Or,Lo,Wr=class Wr extends Va{constructor(){super(...arguments);f(this,Lr);f(this,Br);f(this,Or);f(this,Ot,[null,null,(t,n)=>t?.[n[0]]?.[n[1]],(t,n)=>t?.[n[0]]?.[n[1]]?.[n[2]],(t,n)=>t?.[n[0]]?.[n[1]]?.[n[2]]?.[n[3]],(t,n)=>t?.[n[0]]?.[n[1]]?.[n[2]]?.[n[3]]?.[n[4]],(t,n)=>t?.[n[0]]?.[n[1]]?.[n[2]]?.[n[3]]?.[n[4]]?.[n[5]],(t,n)=>t?.[n[0]]?.[n[1]]?.[n[2]]?.[n[3]]?.[n[4]]?.[n[5]]?.[n[6]],(t,n)=>t?.[n[0]]?.[n[1]]?.[n[2]]?.[n[3]]?.[n[4]]?.[n[5]]?.[n[6]]?.[n[7]]]);f(this,Wt,[]);f(this,U,null)}actions(){return{startRender:t=>{s(this,Wt).push(t)},endRender:()=>{s(this,Wt).pop()}}}getters(t){return{ctx:()=>(s(this,U)||g(this,U,{$store:new Proxy({},{get:(n,e)=>{if(typeof e!="symbol")return h(this,Or,Lo).call(this,e,t)}}),$router:{navigate:(...n)=>t("router").navigate(...n),get currentRoute(){return t("router").currentRoute}},$animator:t("animator"),$provide:(n,e)=>{s(this,U)[`$${n}`]=e},$get:n=>this.traverse(s(this,U),n),$set:(n,e)=>{h(this,Lr,Mo).call(this,s(this,U),n,e)},extend:n=>{let e={...s(this,U),...n,extend:d=>s(this,U).extend({...n,...d})},r=t("registry").getContextPaths?.()??[],i=new Set(Object.keys(n)),a=r.filter(d=>!i.has(d.dot)),l=Object.keys(n).map(d=>({path:[d],type:"local",dot:d}));return Object.defineProperty(e,"__paths",{value:[...a,...l],enumerable:!1,configurable:!0}),e}}),s(this,U))}}traverse(t,n){let e=n.length;return e===0?t:e===1?t[n[0]]:e<s(this,Ot).length&&s(this,Ot)[e]?s(this,Ot)[e](t,n):h(this,Br,To).call(this,e)(t,n)}};Ot=new WeakMap,Wt=new WeakMap,U=new WeakMap,Lr=new WeakSet,Mo=u(function(t,n,e){try{let r=t;for(let i=0;i<n.length-1;i++)if(r=r[n[i]],r==null)throw new Error(`Path ${n.join(".")} not found`);r[n[n.length-1]]=e}catch(r){console.error(`[Context] failed to set ${n.join(".")}:`,r)}},"#setAtPath"),Br=new WeakSet,To=u(function(t){let e="obj"+Array.from({length:t},(i,a)=>`?.[path[${a}]]`).join(""),r=new Function("obj","path",`return ${e}`);return s(this,Ot)[t]=r,r},"#createTraversalFunction"),Or=new WeakSet,Lo=u(function(t,n){let e=s(this,Wt)[s(this,Wt).length-1],r=n("registry").getStore(t);if(r){if(e&&(e.storeSubscriptions||(e.storeSubscriptions=new Map),!e.storeSubscriptions.has(t))){let i=r().$onRefresh(()=>{e?.markAsDirty?.()});e.storeSubscriptions.set(t,i)}return r()}},"#accessStore"),u(Wr,"Context"),w(Wr,"manifest",{name:"Context",namespace:"context"});var Tr=Wr;function Bo(c,o,t=[]){let n=c.style??{},e=[{bp:0,key:"default"}];for(let i in n){if(typeof i!="string"||!i.startsWith("@"))continue;let a=parseInt(i.slice(1),10);!isNaN(a)&&a<=o&&e.push({bp:a,key:i})}e.sort((i,a)=>i.bp-a.bp);let r={};for(let{key:i}of e){let a=n[i]??{};for(let l in a)!l.startsWith(":")&&!l.startsWith("&")&&(r[l]=a[l]);for(let l of t){let d=l.startsWith(":")||l.startsWith("&")?l:`:${l}`;Object.assign(r,a[d]??{})}}return r}u(Bo,"resolveAuthoredStyles");var di="default";function mi(c){if(c===di||c==null)return di;let o=String(c);return o.startsWith("@")?o:`@${o}`}u(mi,"toBpKey");function pi(c){if(!c||c===di)return null;let o=String(c),t=parseInt(o.startsWith("@")?o.slice(1):o,10);return isNaN(t)?null:t}u(pi,"fromBpKey");function gi(c){return typeof c=="string"&&c.startsWith("@")}u(gi,"isBpKey");function Ya(c){return typeof c=="string"&&(c.startsWith(":")||c.startsWith("&"))}u(Ya,"isStateKey");function Qa(c){return typeof c!="string"||c.startsWith(":")||c.startsWith("&")?c:`:${c}`}u(Qa,"normalizeStateKey");function Oo(c,o="default",t=[]){let n=c?.style??{},e=mi(o),r=n[e];if(!r||typeof r!="object")return{};let i=t??[];if(i.length>0)for(let l of i){let d=Qa(l);if(r=r?.[d]??r?.[l],!r||typeof r!="object")return{}}let a={};for(let l in r)Ya(l)||(a[l]=r[l]);return a}u(Oo,"resolveExactAuthoredStyles");function Wo(c){if(typeof Element>"u")return null;let o=c?.$el;if(o instanceof Element)return o;let t=o?.$el;return t instanceof Element?t:null}u(Wo,"resolvePuppetEl");import{ServiceProvider as Za}from"@jucie.io/engine";var Xa=["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"],L,At,B,je,Ne,Dt,Ie,Gt,O,tt,Ct,ut,zr,Do,Kr,Go,et,$t,Ur,zo,Hr,Ko,H,lt,mn,yi,pn,vi,qr,Uo,kt,Pe,Fe,Dr,gn,bi,_r,Ho,Jr,qo,yn,wi,Vr,_o,Yr,Jo,vn,$i,Qr,Vo,Zr,Yo,Ci,tc,Xr,Qo,bn,Si,nt,St,zt,dn,wn,Ai,ts,Zo,es,Xo,ns,ta,rs,ea,ss=class ss extends Za{constructor(){super(...arguments);f(this,zr);f(this,Kr);f(this,et);f(this,Ur);f(this,Hr);f(this,H);f(this,mn);f(this,pn);f(this,qr);f(this,kt);f(this,Fe);f(this,gn);f(this,_r);f(this,Jr);f(this,yn);f(this,Vr);f(this,Yr);f(this,vn);f(this,Qr);f(this,Zr);f(this,Ci);f(this,Xr);f(this,bn);f(this,nt);f(this,zt);f(this,wn);f(this,ts);f(this,es);f(this,ns);f(this,rs);w(this,"registry",null);f(this,L,{});f(this,At,!1);f(this,B,new Set);f(this,je,new Set);f(this,Ne,!1);f(this,Dt,new Set);f(this,Ie,new Set);f(this,Gt,null);f(this,O,null);f(this,tt,[]);f(this,Ct,{});f(this,ut,!1)}initialize(){let t=this.inject("relay");t.on("scene:change",(n,e,r)=>h(this,zr,Do).call(this,n,e,r)),t.on("scene:mount",n=>h(this,Kr,Go).call(this,n))}actions(t){let n=t("registry");return{addListener:e=>(s(this,Dt).add(e),()=>s(this,Dt).delete(e)),removeListener:e=>{s(this,Dt).delete(e)},pauseNodeGraph:()=>{g(this,At,!1),h(this,Fe,Dr).call(this)},resumeNodeGraph:()=>{g(this,ut,!1),g(this,At,!0),h(this,et,$t).call(this),h(this,kt,Pe).call(this)},startNodeGraph:()=>{g(this,ut,!1),g(this,At,!0),h(this,et,$t).call(this),h(this,kt,Pe).call(this)},disableNodeGraph:()=>{g(this,At,!1),h(this,Fe,Dr).call(this)},forceNodeGraph:()=>{g(this,ut,!1),n.getRids().forEach(r=>s(this,B).add(r)),h(this,et,$t).call(this)},setSelectedRids:e=>{g(this,Ie,new Set(e)),e.forEach(r=>h(this,H,lt).call(this,r)),h(this,et,$t).call(this)},getSelectedRids:()=>[...s(this,Ie)],setFocalRid:e=>{let r=s(this,Gt);g(this,Gt,e??null),r&&h(this,H,lt).call(this,r),e&&h(this,H,lt).call(this,e),h(this,et,$t).call(this)},getFocalRid:()=>s(this,Gt),getActiveBreakpoint:e=>{let r=n.getActor(e);return h(this,yn,wi).call(this,r)},getNodeGraph:()=>s(this,L)}}};L=new WeakMap,At=new WeakMap,B=new WeakMap,je=new WeakMap,Ne=new WeakMap,Dt=new WeakMap,Ie=new WeakMap,Gt=new WeakMap,O=new WeakMap,tt=new WeakMap,Ct=new WeakMap,ut=new WeakMap,zr=new WeakSet,Do=u(function(t,n,e){t.forEach(r=>h(this,H,lt).call(this,r)),n.forEach(r=>h(this,H,lt).call(this,r)),e.forEach(r=>h(this,H,lt).call(this,r)),h(this,et,$t).call(this)},"#onChange"),Kr=new WeakSet,Go=u(function(t){let n=this.inject("registry");t.some(r=>{let i=n.getActorId(r);return n.getActor(i)?.node?.type==="root"})&&(h(this,Fe,Dr).call(this),h(this,kt,Pe).call(this))},"#onMount"),et=new WeakSet,$t=u(function(){if(!s(this,At)||s(this,B).size===0||s(this,Ne))return;let t=this.inject("registry");g(this,Ne,new Promise(n=>{requestAnimationFrame(()=>{let e={},r=[],i=Array.from(s(this,B));try{i.forEach(a=>{s(this,B).delete(a),s(this,je).add(a)});for(let a of i){let l=t.getPuppet(a);if(!l){r.push(a);continue}if(l.actor.node?.type!=="root"){if(h(this,bn,Si).call(this,l)){r.push(a);continue}if(!h(this,nt,St).call(this,l)){a in s(this,L)?r.push(a):s(this,B).add(a);continue}e[a]=h(this,wn,Ai).call(this,l)}}g(this,L,{...s(this,L),...e}),r.forEach(a=>delete s(this,L)[a])}catch(a){console.error("Error flushing node graph:",a);for(let l of uidsToProcess)!(l in e)&&!r.includes(l)&&s(this,B).add(l)}finally{g(this,Ne,!1),s(this,je).clear()}n({nodeGraphUpdated:e,nodeGraphRemoved:r}),(Object.keys(e).length>0||r.length>0)&&h(this,gn,bi).call(this,e,r),s(this,B).size>0&&h(this,et,$t).call(this)})}))},"#flush"),Ur=new WeakSet,zo=u(function(t){let e=this.inject("registry").getPuppet("app");return e?e.tracks(t):!1},"#isRoot"),Hr=new WeakSet,Ko=u(function(t){let e=this.inject("registry").getPuppet("temp");return e?e.tracks(t):!1},"#isTemp"),H=new WeakSet,lt=u(function(t){if(s(this,B).has(t)||s(this,je).has(t))return;s(this,B).add(t);let n=this.inject("registry"),e=n.getActorId(t),r=n.getActor(e);r&&r.puppets.forEach(i=>{let a=h(this,nt,St).call(this,i);if(!a)return;let l=h(this,zt,dn).call(this,i);for(let m of l)h(this,H,lt).call(this,m);let d=a.nextElementSibling?.dataset?.rid;d&&h(this,H,lt).call(this,d)})},"#addToQueue"),mn=new WeakSet,yi=u(function(t=0){let e=this.inject("registry").getPuppets().filter(r=>r.actor?.node?.type==="root"&&h(this,nt,St).call(this,r));if(e.length===0){let i=Math.min(200*(t+1),2e3);t<10&&g(this,O,setTimeout(()=>h(this,mn,yi).call(this,t+1),i));return}s(this,ut)||(g(this,tt,e),g(this,Ct,{}),g(this,O,requestIdleCallback(r=>h(this,pn,vi).call(this,r),{timeout:5e3})))},"#startWalk"),pn=new WeakSet,vi=u(function(t){let n=this.inject("registry");for(;s(this,tt).length>0&&t.timeRemaining()>0;){let e=s(this,tt).shift(),{rid:r,actor:i}=e;if(i.node?.type==="root"){for(let a of h(this,zt,dn).call(this,e)){let l=n.getPuppet(a);h(this,nt,St).call(this,l)&&s(this,tt).push(l)}continue}if(!h(this,bn,Si).call(this,e)&&h(this,nt,St).call(this,e)){try{s(this,Ct)[r]=h(this,wn,Ai).call(this,e)}catch(a){console.error("Error building node graph entry during walk:",r,a);continue}for(let a of h(this,zt,dn).call(this,e)){let l=n.getPuppet(a);h(this,nt,St).call(this,l)&&s(this,tt).push(l)}}}s(this,tt).length>0?g(this,O,requestIdleCallback(e=>h(this,pn,vi).call(this,e),{timeout:5e3})):h(this,qr,Uo).call(this)},"#continueWalk"),qr=new WeakSet,Uo=u(function(){let t=Object.keys(s(this,Ct)).length,n=Object.keys(s(this,L)).length;if(t===0&&n>0){h(this,kt,Pe).call(this);return}g(this,L,s(this,Ct)),h(this,gn,bi).call(this,s(this,L),[],!0),h(this,kt,Pe).call(this)},"#finishWalk"),kt=new WeakSet,Pe=u(function(){let t=u(()=>h(this,mn,yi).call(this),"start");typeof requestIdleCallback<"u"?g(this,O,requestIdleCallback(t,{timeout:5e3})):g(this,O,setTimeout(t,5e3))},"#scheduleIdleReconcile"),Fe=new WeakSet,Dr=u(function(){s(this,O)!==null&&(typeof cancelIdleCallback<"u"?cancelIdleCallback(s(this,O)):clearTimeout(s(this,O)),g(this,tt,[]),g(this,Ct,{}),g(this,O,null))},"#cancelIdleReconcile"),gn=new WeakSet,bi=u(function(t,n,e=!1){e?g(this,ut,!0):(Object.keys(t).length>0||n.length>0)&&g(this,ut,!1),s(this,Dt).forEach(r=>{r(t,n,e)})},"#callListeners"),_r=new WeakSet,Ho=u(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"),Jr=new WeakSet,qo=u(function(t){let n=this.inject("registry"),e=t;for(;e;){if(e.node?.bounds)return e.firstPuppetRid??null;if(e.parentId==null)return null;e=n.getActor(e.parentId)}return null},"#findContainerRid"),yn=new WeakSet,wi=u(function(t){let n=this.inject("registry"),e=t;for(;e;){if(e.node?.bounds)return e.node[".activeBreakpoint"]??"default";if(e.parentId==null)return"default";e=n.getActor(e.parentId)}return"default"},"#findActiveBreakpoint"),Vr=new WeakSet,_o=u(function(t){let n=this.inject("registry"),e=t;for(;e;){if(e.node?.bounds)return e.node.bounds.width;if(e.parentId==null)return null;e=n.getActor(e.parentId)}return null},"#findContainerWidth"),Yr=new WeakSet,Jo=u(function(t,n,e,r){let i={},l=r&&e&&typeof window<"u"?window.getComputedStyle(e):null;for(let d of Xa)d in t||(d in n?i[d]=n[d]:l&&(i[d]=l.getPropertyValue(d)));return i},"#resolveInherited"),vn=new WeakSet,$i=u(function(t){if(t?.type!=="instance"||!t.component)return null;let n=this.inject("registry"),e=t.library||"local",r=n.getComponentMeta?.(e,t.component);if(r)return{displayName:r.displayName??t.component,props:r.props??[],slots:r.slots??[],library:r.library??t.library??null,tagName:r.tagName??t.component};let a=n.getActor(t.component)?.node;return a?.type==="component"?{displayName:a.name||t.component,props:a.props??[],slots:[],library:null,tagName:t.component}:null},"#resolveComponentMeta"),Qr=new WeakSet,Vo=u(function(t,n){let e=t.node;if(e.type==="instance"){let r=this.inject("registry"),i=e?.component;if(!i)return null;let l=r.getActor(i)?.node?.name;return l||h(this,vn,$i).call(this,e)?.displayName||i}return e.type==="frame"||e.type==="component"?e.name||null:e.name||e.tagName||n?.tagName?.toLowerCase()||null},"#resolveName"),Zr=new WeakSet,Yo=u(function(t){return s(this,Ie).has(t)},"#isSelected"),Ci=new WeakSet,tc=u(function(t){return s(this,Gt)===t},"#isFocal"),Xr=new WeakSet,Qo=u(function(t){let n=t?.node?.layout;return!!n&&n!=="none"},"#isAutoLayout"),bn=new WeakSet,Si=u(function(t){return!!t.instanceRid&&t.actor?.node?.type!=="slot"},"#isInstanceInternal"),nt=new WeakSet,St=u(function(t){return Wo(t)},"#resolveEl"),zt=new WeakSet,dn=u(function(t){return t.actor?.node?.type==="instance"?t.getSlotRids():[...t.getChildrenRids()]},"#childRids"),wn=new WeakSet,Ai=u(function(t){let n=this.inject("registry"),{rid:e,actor:r}=t,{id:i,node:a}=r,l=h(this,nt,St).call(this,t);if(!l)throw new Error(`NodeGraph.#buildEntry: unmeasurable puppet ${e}`);let d=h(this,Vr,_o).call(this,r)??1/0,m=h(this,yn,wi).call(this,r),p=a[".interactionState"]??[],y=Oo(a,m,p),v=Bo(a,d,p),b=h(this,Zr,Yo).call(this,e),$=h(this,Yr,Jo).call(this,y,v,l,b),S={...$,...y},N=a.type==="slot"&&t.instanceRid?t.instanceRid:l.parentElement?.dataset?.rid,C=N?n.getActorId(N):null,A=C?n.getActor(C):null,z=A?.node?.layout??null,Pt={id:i,node:a,styles:S,authoredStyles:y,inheritedStyles:$,name:h(this,Qr,Vo).call(this,r,l),containerRid:h(this,Jr,qo).call(this,r),tagName:a.type==="slot"?"slot":a.tagName||l.tagName?.toLowerCase(),isAutoLayout:h(this,Xr,Qo).call(this,A),instanceRid:t.instanceRid,targetable:h(this,ts,Zo).call(this,a,t),readOnly:h(this,es,Xo).call(this,a,t),editable:a.childrenType==="text",root:h(this,Ur,zo).call(this,e),temp:h(this,Hr,Ko).call(this,e),rect:l.getBoundingClientRect().toJSON(),nextRid:l.nextElementSibling?.dataset?.rid,parentRid:N,parentLayout:z,offset:h(this,_r,Ho).call(this,l),children:h(this,zt,dn).call(this,t)};return b&&(Pt.contextPaths=h(this,ns,ta).call(this,t),a.type==="instance"&&(Pt.componentMeta=h(this,vn,$i).call(this,a))),Pt},"#buildEntry"),ts=new WeakSet,Zo=u(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"),es=new WeakSet,Xo=u(function(t,n){return t.type==="slot"&&!!n.instanceRid},"#resolveReadOnly"),ns=new WeakSet,ta=u(function(t){if(t?.ctx?.__paths)return t.ctx.__paths;let n=this.inject("registry"),e=n.getContextPaths?.()??[],r=h(this,rs,ea).call(this,t.rid,n);return r.length>0?[...e,...r]:e},"#resolveContextPaths"),rs=new WeakSet,ea=u(function(t,n){let e=[],r=new Set,i=t;for(;i;){let a=n.getActorId(i),l=a?n.getActor(a):null;if(!l)break;let d=l.node?.repeat;if(d)for(let p of[d.as,d.index,d.key])p&&!r.has(p)&&(r.add(p),e.push({path:[p],type:"local",dot:p}));let m=s(this,L)[i]?.parentRid;if(!m||m===i)break;i=m}return e},"#synthesizeRepeatPaths"),u(ss,"NodeGraph"),w(ss,"manifest",{name:"NodeGraph",namespace:"nodeGraph"});var Gr=ss;import{ServiceProvider as ec}from"@jucie.io/engine";var W,D,Kt,Ut,rt,Sn,An,ki,Ht,$n,os=class os extends ec{constructor(){super(...arguments);f(this,An);f(this,Ht);f(this,W,1);f(this,D,{x:0,y:0});f(this,Kt,0);f(this,Ut,0);f(this,rt,{size:12,color:"rgba(139, 139, 139, 0.15)",dotSize:1,visible:!0});f(this,Sn,"#1E1E25")}initialize(){h(this,An,ki).call(this),h(this,Ht,$n).call(this)}actions(t,n){return{set:({scale:e,scroll:r,width:i,height:a})=>{g(this,W,e??s(this,W)),g(this,D,r??s(this,D)),g(this,Kt,i??s(this,Kt)),g(this,Ut,a??s(this,Ut)),h(this,An,ki).call(this),h(this,Ht,$n).call(this)},get:()=>({scale:s(this,W),scroll:s(this,D),width:s(this,Kt),height:s(this,Ut)}),setGrid:e=>{Object.assign(s(this,rt),e),h(this,Ht,$n).call(this)},setBackground:e=>{g(this,Sn,e),h(this,Ht,$n).call(this)},isFrameVisible:e=>{if(!e)return!0;let r=s(this,Kt)/s(this,W),i=s(this,Ut)/s(this,W),a=-s(this,D).x/s(this,W)-r/2,l=-s(this,D).y/s(this,W)-i/2,d=a+r*2,m=l+i*2;return e.x+e.width>a&&e.x<d&&e.y+e.height>l&&e.y<m}}}};W=new WeakMap,D=new WeakMap,Kt=new WeakMap,Ut=new WeakMap,rt=new WeakMap,Sn=new WeakMap,An=new WeakSet,ki=u(function(){typeof document>"u"||(document.body.style.transform=`translate(${s(this,D).x}px, ${s(this,D).y}px) scale(${s(this,W)})`)},"#applyTransform"),Ht=new WeakSet,$n=u(function(){if(typeof document>"u")return;let t=document.documentElement,n=s(this,rt).size*s(this,W);for(;n<s(this,rt).size;)n*=2;t.style.backgroundColor=s(this,Sn),s(this,rt).visible?(t.style.backgroundImage=`radial-gradient(circle, ${s(this,rt).color} ${s(this,rt).dotSize}px, transparent ${s(this,rt).dotSize}px)`,t.style.backgroundSize=`${n}px ${n}px`,t.style.backgroundPosition=`${s(this,D).x}px ${s(this,D).y}px`):t.style.backgroundImage="none"},"#applyGrid"),u(os,"Viewport"),w(os,"manifest",{name:"Viewport",namespace:"viewport"});var is=os;import{createComputed as nc,addEffect as rc}from"@jucie.io/reactive";import{ServiceProvider as sc}from"@jucie.io/engine";var ic=/^\{(.+)\}$/;function oc(c){return c.replace(/[/.]/g,"-").replace(/[^a-zA-Z0-9_-]/g,"")}u(oc,"pathToSlug");var q,Cn,cs,na,kn,xi,ls=class ls extends sc{constructor(){super(...arguments);f(this,cs);f(this,kn);f(this,q,null);f(this,Cn,null)}initialize(){let t=this.inject("state").ref(["tokens"]);g(this,Cn,nc(()=>t.get())),rc(s(this,Cn),n=>{h(this,cs,na).call(this,n)})}actions(){return{toCssVar:t=>`var(--${t})`,resolveToken:t=>this.inject("state").ref(["tokens"]).get([t])??null,resolveByPath:t=>{let e=this.inject("state").ref(["tokens"]).get()??{};for(let[r,i]of Object.entries(e))if(i?.$path===t)return{id:r,token:i,cssValue:h(this,kn,xi).call(this,i.$value,i.$type)};return null}}}getters(){return{contextPaths:()=>[]}}};q=new WeakMap,Cn=new WeakMap,cs=new WeakSet,na=u(function(t){let n=this.inject("styleContext");if(typeof document>"u")return;if(s(this,q)||(g(this,q,document.getElementById("jucie-tokens")),s(this,q)||(g(this,q,document.createElement("style")),s(this,q).id="jucie-tokens",document.head.appendChild(s(this,q)))),!t||Object.keys(t).length===0){s(this,q).textContent="";return}let e=Object.entries(t).filter(([,m])=>m!=null),r=new Map;for(let[m,p]of e)p.$path&&r.set(p.$path,m);let i=e.map(([m,p])=>{let y=typeof p.$value=="string"&&p.$value.match(ic);if(y){let b=y[1].replace(/\./g,"/"),$=r.get(b),S=$?`var(--${$})`:"";return` --${m}: ${S};`}let v=h(this,kn,xi).call(this,p.$value,p.$type);return` --${m}: ${v};`}).join(`
10
+ `),a=new Set,l=e.map(([m,p])=>{if(!p.$path)return null;let y=oc(p.$path);return!y||a.has(y)?null:(a.add(y),` --${y}: var(--${m});`)}).filter(Boolean).join(`
11
+ `),d=l?`${i}
12
+ ${l}`:i;s(this,q).textContent=`:root {
13
+ ${d}
14
+ }`,this.inject("sceneCompiler")?.forceNodeGraph?.()},"#injectCSS"),kn=new WeakSet,xi=u(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"),u(ls,"TokenResolver"),w(ls,"manifest",{name:"TokenResolver",namespace:"tokenResolver"});var as=ls;import{ServiceProvider as ac}from"@jucie.io/engine";var cc=" ",xt,Me,k,P,Te,us,fs,ra,ds,sa,Rn,Ri,ms,ia,ps,oa,En,Ei,Pn,Pi,gs,aa,jn,ji,ys,ca,vs,la,qt,xn,bs=class bs extends ac{constructor(){super(...arguments);f(this,xt);f(this,k);f(this,Te);f(this,fs);f(this,ds);f(this,Rn);f(this,ms);f(this,ps);f(this,En);f(this,Pn);f(this,gs);f(this,jn);f(this,ys);f(this,vs);f(this,qt)}actions(){return{projectJsx:(t,n)=>h(this,gs,aa).call(this,t,n),projectPuppetJsx:(t,n)=>h(this,ys,ca).call(this,t,n)}}};xt=new WeakSet,Me=u(function(t,n){let e=cc.repeat(n);return t.split(`
15
+ `).map(r=>e+r).join(`
16
+ `)},"#indent"),k=new WeakSet,P=u(function(t){return String(t).replace(/"/g,"&quot;")},"#esc"),Te=new WeakSet,us=u(function(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},"#escText"),fs=new WeakSet,ra=u(function(t){let n=u(e=>Math.round(e??0),"r");return`${n(t.x)},${n(t.y)},${n(t.width)}x${n(t.height)}`},"#formatBounds"),ds=new WeakSet,sa=u(function(t){let n=u(r=>!r||typeof r!="object"?"":Object.entries(r).map(([i,a])=>`${i}: ${a}`).join("; "),"cssDecls"),e=[];t.default&&e.push(n(t.default));for(let r of Object.keys(t)){if(r==="default")continue;let i=n(t[r]);i&&e.push(`${r}: { ${i} }`)}return e.filter(Boolean).join(" | ")},"#formatStyle"),Rn=new WeakSet,Ri=u(function(t){return Array.isArray(t)?t.join("."):t??""},"#formatBinding"),ms=new WeakSet,ia=u(function(t){return t.map(n=>{let e=n.key??n.name??n.event;if(!e)return null;if(n.mode==="binding"||n.binding){let i=h(this,Rn,Ri).call(this,n.binding);return i?`${e}=${i}`:e}let r=n.code??n.expression??n.value??n.handler??"";return r?`${e}=${r}`:e}).filter(Boolean).join(", ")},"#formatEvents"),ps=new WeakSet,oa=u(function(t){return t.map(n=>{let e=n.key??n.name;if(!e)return null;if(n.mode==="binding"||n.binding){let i=h(this,Rn,Ri).call(this,n.binding);return i?`${e}=${i}`:e}let r=n.expression?`{{${n.expression}}}`:n.value??"";return r!==""?`${e}=${r}`:e}).filter(Boolean).join(", ")},"#formatAttrs"),En=new WeakSet,Ei=u(function(t,n,e=null){let r=[],i=t.id??n;if(i&&r.push(`id="${h(this,k,P).call(this,i)}"`),e&&r.push(`rid="${h(this,k,P).call(this,e)}"`),t.name&&r.push(`name="${h(this,k,P).call(this,t.name)}"`),t.bounds&&r.push(`bounds="${h(this,fs,ra).call(this,t.bounds)}"`),t.style&&Object.keys(t.style).length){let a=h(this,ds,sa).call(this,t.style);a&&r.push(`style="${h(this,k,P).call(this,a)}"`)}return t.events?.length&&r.push(`events="${h(this,k,P).call(this,h(this,ms,ia).call(this,t.events))}"`),t.attributes?.length&&r.push(`attrs="${h(this,k,P).call(this,h(this,ps,oa).call(this,t.attributes))}"`),t.className?.length&&r.push(`class="${t.className.join(" ")}"`),t.repeat&&r.push(`repeat="${h(this,k,P).call(this,JSON.stringify(t.repeat))}"`),t.component&&r.push(`component="${h(this,k,P).call(this,t.component)}"`),t.library&&r.push(`library="${h(this,k,P).call(this,t.library)}"`),t.props&&Object.keys(t.props).length&&r.push(`props="${h(this,k,P).call(this,JSON.stringify(t.props))}"`),t.route?.path&&r.push(`route="${h(this,k,P).call(this,t.route.path)}"`),t.render?.value&&t.render.value!==!0&&r.push(`render="{{${h(this,k,P).call(this,t.render.value)}}}"`),t.destination?.path&&r.push(`dest="${h(this,k,P).call(this,t.destination.path)}"`),r.length?" "+r.join(" "):""},"#buildAttrString"),Pn=new WeakSet,Pi=u(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"),gs=new WeakSet,aa=u(function(t,{maxDepth:n=1/0}={}){return h(this,jn,ji).call(this,t,0,n)},"#projectJsx"),jn=new WeakSet,ji=u(function(t,n,e){let i=this.inject("registry").resolveComputedNode(t)();if(!i)return`<!-- missing: ${t} -->`;let a=h(this,Pn,Pi).call(this,i,t),l=h(this,En,Ei).call(this,i,t),d=i.textContent?.value||null,m=Array.isArray(i.children)?i.children:[];if(!(m.length>0||d!=null&&d!==""))return`<${a}${l} />`;if(n>=e){let v=m.length?`<\u22EF${m.length} children>`:"<\u22EFtext>";return`<${a}${l}>${v}</${a}>`}if(d!=null&&d!==""&&m.length===0)return`<${a}${l}>${h(this,Te,us).call(this,d)}</${a}>`;let y=m.map(v=>h(this,xt,Me).call(this,h(this,jn,ji).call(this,v,n+1,e),1)).join(`
17
+ `);return`<${a}${l}>
18
+ ${y}
19
+ </${a}>`},"#renderNode"),ys=new WeakSet,ca=u(function(t,{maxDepth:n=1/0}={}){return Array.isArray(t)||(t=[t]),t.map(e=>{let r=h(this,vs,la).call(this,e);return typeof r=="string"&&r.startsWith("<!--")?r:h(this,qt,xn).call(this,r,0,n)}).join(`
20
+ `)},"#projectPuppetJsx"),vs=new WeakSet,la=u(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"),qt=new WeakSet,xn=u(function(t,n,e){let i=this.inject("registry").getPuppet(t);if(!i)return`<!-- missing puppet: ${t} -->`;let a=i.actor,l=a.node;if(!l)return`<!-- missing node for puppet: ${t} -->`;let d=a.id,m=h(this,Pn,Pi).call(this,l,d),p=h(this,En,Ei).call(this,l,d,t),y=l.textContent?.value||null,v=i.getChildEntries(),b=i.getCloneEntries(),$=i.getSlotEntries(),S=v.length>0||b.length>0||$.length>0;if(!(S||y!=null&&y!==""))return`<${m}${p} />`;if(n>=e){let A=v.length+b.length,z=A>0?`<\u22EF${A} children>`:"<\u22EFtext>";return`<${m}${p}>${z}</${m}>`}if(y!=null&&y!==""&&!S)return`<${m}${p}>${h(this,Te,us).call(this,y)}</${m}>`;let C=[];for(let[,A]of v)C.push(h(this,xt,Me).call(this,h(this,qt,xn).call(this,A,n+1,e),1));for(let[,A]of b)C.push(h(this,xt,Me).call(this,h(this,qt,xn).call(this,A,n+1,e),1));for(let[A,z]of $){let Pt=[];for(let[,xa]of z.entries())Pt.push(h(this,xt,Me).call(this,h(this,qt,xn).call(this,xa,n+2,e),1));Pt.length&&C.push(h(this,xt,Me).call(this,`<slot name="${h(this,k,P).call(this,A)}">
21
+ ${Pt.join(`
22
+ `)}
23
+ </slot>`,1))}return C.length===0&&y!=null&&y!==""?`<${m}${p}>${h(this,Te,us).call(this,y)}</${m}>`:`<${m}${p}>
24
+ ${C.join(`
25
+ `)}
26
+ </${m}>`},"#renderPuppet"),u(bs,"JSX"),w(bs,"manifest",{name:"JSX",namespace:"jsx",version:"1.0.0"});var hs=bs;import{ServiceProvider as lc}from"@jucie.io/engine";var st,it,_t,Jt,Vt,Yt,Qt,ht,Ss,ua,Nn,Ni,In,Ii,Le,ws,Fi=class Fi{constructor(o=null,t){f(this,Ss);f(this,Nn);f(this,In);f(this,Le);f(this,st,null);f(this,it,null);f(this,_t,null);f(this,Jt,!1);f(this,Vt,new Map);f(this,Yt,new Map);f(this,Qt,new Set);f(this,ht,null);g(this,st,o??(typeof document<"u"?document:null)),g(this,it,t)}register(o){let t=s(this,st)??o.app?.$el?.ownerDocument??document;g(this,st,t),h(this,Ss,ua).call(this),this.update(o.id,o.node,o.isInstance)}unregister(o){s(this,Qt).delete(o),s(this,Yt).delete(o),s(this,Vt).delete(o)&&h(this,In,Ii).call(this)}update(o,t,n=!1){if(!t)return;let e=s(this,Yt).get(o),r=e!==void 0&&e!==t.layout;s(this,Yt).set(o,t.layout);let i=s(this,it).resolvePosition(o),a=s(this,it).resolveInheritedFont(o),l=s(this,it).buildStyles(o,t,n,i,a);if(s(this,Vt).set(o,l),s(this,Qt).add(o),h(this,In,Ii).call(this),r)for(let d of s(this,it).getChildActorIds(o))this.update(d,s(this,it).getChildNode(d),!1)}destroy(){h(this,Nn,Ni).call(this),s(this,st)&&s(this,Jt)&&(s(this,st).adoptedStyleSheets=s(this,st).adoptedStyleSheets.filter(o=>o!==s(this,_t))),g(this,Jt,!1),s(this,Vt).clear(),s(this,Yt).clear(),s(this,Qt).clear()}};st=new WeakMap,it=new WeakMap,_t=new WeakMap,Jt=new WeakMap,Vt=new WeakMap,Yt=new WeakMap,Qt=new WeakMap,ht=new WeakMap,Ss=new WeakSet,ua=u(function(){if(s(this,Jt))return;let o=s(this,st);o&&(s(this,_t)??g(this,_t,new CSSStyleSheet),o.adoptedStyleSheets=[...o.adoptedStyleSheets,s(this,_t)],g(this,Jt,!0))},"#ensureAttached"),Nn=new WeakSet,Ni=u(function(){s(this,ht)&&(cancelAnimationFrame(s(this,ht)),g(this,ht,null))},"#cancelScheduledFlush"),In=new WeakSet,Ii=u(function(){if(s(this,it).view==="design"){h(this,Nn,Ni).call(this),h(this,Le,ws).call(this);return}if(!s(this,ht)){if(typeof requestAnimationFrame>"u"){h(this,Le,ws).call(this);return}g(this,ht,requestAnimationFrame(()=>{g(this,ht,null),h(this,Le,ws).call(this)}))}},"#scheduleFlush"),Le=new WeakSet,ws=u(function(){let o=s(this,_t);if(!o)return;let t="";for(let n of s(this,Vt).values())for(let e of n)t+=e,t+=`
27
+ `;if(o.replaceSync)o.replaceSync(t);else{for(;o.cssRules.length>0;)o.deleteRule(0);let n=t.split(`
28
+ `);for(let e of n)if(e)try{o.insertRule(e,o.cssRules.length)}catch{}}s(this,Qt).clear()},"#flush"),u(Fi,"StyleScope");var $s=Fi;function ha(c,o,t){return`${t?`${t} `:""}translate(${c}px, ${o}px)`}u(ha,"resolveTransform");function uc(c){return c.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}u(uc,"toKebabCase");var hc=new Set(["position","top","left","right","bottom"]),fc=new Set(["font-family","fontFamily"]);function dc(c){return!c||typeof c!="string"||!c.includes("@")?c:c.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(", ")}u(dc,"stripFontSource");var ft,Zt,Oe,We,Cs,fa,Xt,Fn,Rt,Be,Mn,Mi,ks=class ks extends lc{constructor(){super(...arguments);f(this,Cs);f(this,Xt);f(this,Rt);f(this,Mn);f(this,ft,new Map);f(this,Zt,"design");f(this,Oe,void 0);f(this,We,void 0)}initialize(){g(this,Zt,this.config?.view??"design")}get view(){return s(this,Zt)}actions(){return{createScope:(t,n=null)=>{if(s(this,ft).has(t))return s(this,ft).get(t);let e=new $s(n,this);return s(this,ft).set(t,e),e},getScope:t=>s(this,ft).get(t)??null,destroyScope:t=>{let n=s(this,ft).get(t);n&&(n.destroy(),s(this,ft).delete(t))},buildStyles:(t,n,e,r,i)=>this.buildStyles(t,n,e,r,i)}}resolvePosition(t){let n=s(this,Xt,Fn);if(!n)return null;let e=n.getActor(t);if(!e)return null;let r=e.node;if(r?.bounds||r?.isComponentRoot)return null;if(e.parentId==null)return"absolute";let i=n.getActor(e.parentId);if(!i)return"absolute";let a=i.node?.layout;return a&&a!=="none"?"relative":"absolute"}resolveInheritedFont(t){let n=s(this,Xt,Fn);if(!n)return null;let e=n.getActor(t);for(;e;){let r=e.node?.style?.default,i=r?.["font-family"]||r?.fontFamily;if(i){let a=r?.["font-style"]||r?.fontStyle||"normal";return{family:i,style:a}}e=e.parentId?n.getActor(e.parentId):null}return null}getChildActorIds(t){let n=s(this,Xt,Fn);return n?n.getActor(t)?.children??[]:[]}getChildNode(t){let n=s(this,Xt,Fn);return n?n.getActor(t)?.node??null:null}buildStyles(t,n,e=!1,r=null,i=null){let a=[],l=e?`.${t}.${t}`:`.${t}`,d=!!n.isComponentRoot,m=s(this,Zt);if(n.style){let p=n.style;if(p.default){let v=p.default;if(r&&!n.bounds&&!n.isComponentRoot&&!v?.position){let b={position:r,...v};a.push(...h(this,Rt,Be).call(this,t,l,b,null,d,i))}else a.push(...h(this,Rt,Be).call(this,t,l,v,null,d,i))}else r&&!n.bounds&&!n.isComponentRoot&&a.push(...h(this,Rt,Be).call(this,t,l,{position:r},null,d,i));let y=[];for(let v in p){if(!gi(v))continue;let b=pi(v);b!==null&&y.push({min:b,bpKey:v})}y.sort((v,b)=>v.min-b.min);for(let{min:v,bpKey:b}of y){let $=p[b];$&&a.push(...h(this,Rt,Be).call(this,t,l,$,v,d,i))}}else r&&!n.bounds&&!n.isComponentRoot&&a.push(...h(this,Rt,Be).call(this,t,l,{position:r},null,d,i));if(m==="design"){let p=n[".position"];if(p){let y=n.style?.default?.transform,v=ha(p.x,p.y,y);a.push(`${l} { transform: ${v}; }`)}}if(n.bounds){let p=n.bounds;m==="design"?a.push(`${l} { container-type: inline-size; position: absolute; top: ${p.y||0}px !important; left: ${p.x||0}px !important; width: ${p.width||0}px !important; height: ${p.height||0}px !important; }`):a.push(`${l} { container-type: inline-size; position: relative; width: 100vw; height: 100vh; }`)}return a}};ft=new WeakMap,Zt=new WeakMap,Oe=new WeakMap,We=new WeakMap,Cs=new WeakSet,fa=u(function(){return s(this,Oe)===void 0&&g(this,Oe,this.inject("fontResolver")??null),s(this,Oe)},"#resolver"),Xt=new WeakSet,Fn=u(function(){return s(this,We)===void 0&&g(this,We,this.inject("registry")??null),s(this,We)},"#reg"),Rt=new WeakSet,Be=u(function(t,n,e,r,i=!1,a=null){let l=[],d=s(this,Zt),m=h(this,Mn,Mi).call(this,e,i,a);if(m){let p;r?d==="design"?p=`[data-bp~="${r}"] ${n} { ${m} }`:p=`@container (min-width: ${r}px) { ${n} { ${m} } }`:p=`${n} { ${m} }`,l.push(p)}for(let p in e){if(!p.startsWith(":")&&!p.startsWith("&"))continue;let y=e[p];if(!y)continue;let v=h(this,Mn,Mi).call(this,y,i,a);if(v)if(p.startsWith("&")){let b=p.slice(1),$=`${n}${b}`;r?d==="design"?l.push(`[data-bp~="${r}"] ${$} { ${v} }`):l.push(`@container (min-width: ${r}px) { ${$} { ${v} } }`):l.push(`${$} { ${v} }`)}else{let b=`${n}${p}`,$=`${n}.force-${p.slice(1)}`;r?d==="design"?(l.push(`[data-bp~="${r}"] ${b} { ${v} }`),l.push(`[data-bp~="${r}"] ${$} { ${v} }`)):(l.push(`@container (min-width: ${r}px) { ${b} { ${v} } }`),l.push(`@container (min-width: ${r}px) { ${$} { ${v} } }`)):(l.push(`${b} { ${v} }`),l.push(`${$} { ${v} }`))}}return l},"#collectBreakpointRules"),Mn=new WeakSet,Mi=u(function(t,n=!1,e=null){let r=s(this,Cs,fa);if(r){let a=t["font-family"]||t.fontFamily,l=t["font-weight"]||t.fontWeight||"400",d=t["font-style"]||t.fontStyle||"normal";if(a)r.resolve(a,l,d);else if(e){let m=t["font-weight"]||t.fontWeight,p=t["font-style"]||t.fontStyle;(m||p)&&r.resolve(e.family,l,p?d:e.style)}}let i=[];for(let a in t){if(a.startsWith(":")||a.startsWith("&")||n&&hc.has(a))continue;let l=t[a];l!=null&&(r&&fc.has(a)&&(l=dc(l)),i.push(`${uc(a)}: ${l}`))}return i.join("; ")},"#toCSSProperties"),u(ks,"StyleContext"),w(ks,"manifest",{name:"StyleContext",namespace:"styleContext"});var As=ks;import{ServiceProvider as mc}from"@jucie.io/engine";var pc=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"]),gc=new Set([...pc].map(c=>c.toLowerCase()));function Et(c){return gc.has(c.toLowerCase().trim())}u(Et,"isSystemFont");function De(c){return!c||typeof c!="string"?[]:c.includes("var(")?[]:c.split(",").map(o=>o.trim().replace(/^['"]|['"]$/g,"")).filter(Boolean).map(yc)}u(De,"parseFontFamily");function yc(c){let o=c.indexOf("@");if(o===-1){let e=c.trim();return{name:e,source:Et(e)?"system":null}}let t=c.slice(0,o).trim(),n=c.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}}u(yc,"parseSourceDescriptor");function vc(c){return!c||typeof c!="string"||c.includes("var(")?c:c.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(", ")}u(vc,"cleanFontFamily");var bc={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 wc(c){if(!c)return"400";let o=String(c).toLowerCase().trim();return bc[o]??o}u(wc,"normalizeWeight");function $c(c){if(!c)return"0";let o=String(c).toLowerCase().trim();return o==="italic"||o==="oblique"?"1":"0"}u($c,"normalizeStyle");function xs(c,o){return`${$c(o)},${wc(c)}`}u(xs,"toVariant");function Sc(c){if(!c||c.size===0)return"";let o=[],t=da(c);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=ma(c);return n&&o.push(`<style>
29
+ ${n}</style>`),o.join(`
30
+ `)}u(Sc,"buildFontLinks");function da(c){let o=[];for(let[t,n]of c){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(a=>a.split(",")[1]).sort((a,l)=>Number(a)-Number(l));o.push(`family=${t.replace(/ /g,"+")}:wght@${i.join(";")}`)}}return o.length===0?null:`https://fonts.googleapis.com/css2?${o.join("&")}&display=swap`}u(da,"buildGoogleUrl");function ma(c){let o=[];for(let[t,n]of c){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[a,l]=i.split(","),d=a==="1"?"italic":"normal";o.push(` @font-face {
31
+ font-family: "${t}";
32
+ src: url("${n.url}") format("${r}");
33
+ font-weight: ${l};
34
+ font-style: ${d};
35
+ font-display: swap;
36
+ }`)}}return o.length>0?o.join(`
37
+ `):""}u(ma,"buildFontFaceBlock");function Ti(c){return c["font-family"]||c.fontFamily||null}u(Ti,"getFamily");function Rs(c){return c["font-weight"]||c.fontWeight||null}u(Rs,"getWeight");function Es(c){return c["font-style"]||c.fontStyle||null}u(Es,"getStyle");var j,T,_,J,G,Ps,pa,js,ga,Ns,ya,Is,va,Ln,Li,Fs,ba,Ms,wa,Ts,$a,dt,te,Ls,Sa,Bs,Aa,Bn,Bi,On,Oi,Os=class Os extends mc{constructor(){super(...arguments);f(this,Ps);f(this,js);f(this,Ns);f(this,Is);f(this,Ln);f(this,Fs);f(this,Ms);f(this,Ts);f(this,dt);f(this,Ls);f(this,Bs);f(this,Bn);f(this,On);f(this,j,new Map);f(this,T,null);f(this,_,null);f(this,J,null);f(this,G,null)}initialize(){g(this,j,new Map),h(this,Bn,Bi).call(this)}actions(){return{resolve:(t,n,e)=>h(this,Ps,pa).call(this,t,n,e),requestFont:(t,n,e)=>h(this,Ls,Sa).call(this,t,n,e),hasFont:t=>h(this,Bs,Aa).call(this,t),getFonts:()=>s(this,j),buildLinks:()=>h(this,js,ga).call(this)}}getters(){return{contextPaths:()=>[]}}};j=new WeakMap,T=new WeakMap,_=new WeakMap,J=new WeakMap,G=new WeakMap,Ps=new WeakSet,pa=u(function(t,n="400",e="normal"){if(!t||typeof t!="string")return t;let r=De(t),i=!1;for(let{name:a,source:l,url:d}of r)l==="system"||Et(a)||h(this,dt,te).call(this,a,n,e,l||"google",d)&&(i=!0);return i&&h(this,On,Oi).call(this),vc(t)},"#resolve"),js=new WeakSet,ga=u(function(){return Sc(h(this,Ns,ya).call(this))},"#buildLinks"),Ns=new WeakSet,ya=u(function(){g(this,j,new Map);let t=this.inject("state");h(this,Is,va).call(this,t);let n=t.get(["nodes"]);return n?.app&&h(this,Ln,Li).call(this,"app",n,null),s(this,j)},"#scanFonts"),Is=new WeakSet,va=u(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:a}of De(e.$value))i==="system"||Et(r)||h(this,dt,te).call(this,r,"400","normal",i||"google",a)}},"#scanTokens"),Ln=new WeakSet,Li=u(function(t,n,e){let r=n[t];if(!r)return;let{families:i}=h(this,Ts,$a).call(this,r),a=e;if(i.size>0){for(let[d,m]of i)if(m.variants.size>0)for(let p of m.variants){let[,y]=p.split(","),v=p.startsWith("1,")?"italic":"normal";h(this,dt,te).call(this,d,y,v,m.source,m.url)}else h(this,dt,te).call(this,d,"400","normal",m.source,m.url);a=h(this,Fs,ba).call(this,r)||[...i.keys()][0]}else if(a)for(let l of h(this,Ms,wa).call(this,r)){let d=s(this,j).get(a),[,m]=l.split(","),p=l.startsWith("1,")?"italic":"normal";h(this,dt,te).call(this,a,m,p,d?.source||"google",d?.url)}if(Array.isArray(r.children))for(let l of r.children)h(this,Ln,Li).call(this,l,n,a)},"#walkNode"),Fs=new WeakSet,ba=u(function(t){let n=t?.style?.default;if(!n)return null;let e=Ti(n);return e&&De(e).find(i=>i.source!=="system"&&!Et(i.name))?.name||null},"#getDefaultFamily"),Ms=new WeakSet,wa=u(function(t){if(!t?.style)return[];let n=new Set;for(let[,e]of Object.entries(t.style)){if(!e||typeof e!="object")continue;let r=Rs(e),i=Es(e);(r||i)&&n.add(xs(r||"400",i||"normal"));for(let[a,l]of Object.entries(e))if((a.startsWith(":")||a.startsWith("&"))&&l&&typeof l=="object"){let d=Rs(l),m=Es(l);(d||m)&&n.add(xs(d||"400",m||"normal"))}}return[...n]},"#extractVariantsOnly"),Ts=new WeakSet,$a=u(function(t){let n=new Map;if(!t?.style)return{families:n};function e(r,i,a){if(!r)return;let l=De(r).find(d=>d.source!=="system"&&!Et(d.name));l&&(n.has(l.name)||n.set(l.name,{source:l.source||"google",url:l.url,variants:new Set}),(i||a)&&n.get(l.name).variants.add(xs(i||"400",a||"normal")))}u(e,"record");for(let[,r]of Object.entries(t.style))if(!(!r||typeof r!="object")){e(Ti(r),Rs(r),Es(r));for(let[i,a]of Object.entries(r))(i.startsWith(":")||i.startsWith("&"))&&a&&typeof a=="object"&&e(Ti(a),Rs(a),Es(a))}return{families:n}},"#extractNodeFonts"),dt=new WeakSet,te=u(function(t,n="400",e="normal",r="google",i){if(!t||Et(t))return!1;let a=xs(n,e),l=!1;s(this,j).has(t)||(s(this,j).set(t,{source:r||"google",url:i,variants:new Set}),l=!0,console.log("[FontResolver] registered new font:",t,"@"+r));let d=s(this,j).get(t);return d.variants.has(a)||(d.variants.add(a),l=!0),l},"#registerFont"),Ls=new WeakSet,Sa=u(function(t,n="400",e="normal"){if(!t||typeof t!="string")return;let r=!1;for(let{name:i,source:a,url:l}of De(t))a==="system"||Et(i)||h(this,dt,te).call(this,i,n,e,a||"google",l)&&(r=!0);r&&h(this,On,Oi).call(this)},"#requestFont"),Bs=new WeakSet,Aa=u(function(t){if(!t||typeof t!="string")return!1;let n=De(t);return n.length===0?s(this,j).has(t):n.some(({name:e,source:r})=>r!=="system"&&!Et(e)&&s(this,j).has(e))},"#hasFont"),Bn=new WeakSet,Bi=u(function(){typeof document>"u"||(s(this,J)||(g(this,J,document.getElementById("jucie-fonts-preconnect-googleapis")),s(this,J)||(g(this,J,document.createElement("link")),s(this,J).id="jucie-fonts-preconnect-googleapis",s(this,J).rel="preconnect",s(this,J).href="https://fonts.googleapis.com",document.head.appendChild(s(this,J)))),s(this,G)||(g(this,G,document.getElementById("jucie-fonts-preconnect-gstatic")),s(this,G)||(g(this,G,document.createElement("link")),s(this,G).id="jucie-fonts-preconnect-gstatic",s(this,G).rel="preconnect",s(this,G).href="https://fonts.gstatic.com",s(this,G).crossOrigin="",document.head.appendChild(s(this,G)))),s(this,T)||(g(this,T,document.getElementById("jucie-fonts")),s(this,T)||(g(this,T,document.createElement("link")),s(this,T).id="jucie-fonts",s(this,T).rel="stylesheet",document.head.appendChild(s(this,T)))),s(this,_)||(g(this,_,document.getElementById("jucie-fonts-custom")),s(this,_)||(g(this,_,document.createElement("style")),s(this,_).id="jucie-fonts-custom",document.head.appendChild(s(this,_)))))},"#ensureLinkElements"),On=new WeakSet,Oi=u(function(){if(typeof document>"u")return;h(this,Bn,Bi).call(this);let t=da(s(this,j));t?s(this,T).href!==t&&(s(this,T).href=t):s(this,T)&&s(this,T).removeAttribute("href");let n=ma(s(this,j));s(this,_)&&(s(this,_).textContent=n)},"#updateFontLinks"),u(Os,"FontResolver"),w(Os,"manifest",{name:"FontResolver",namespace:"fontResolver"});var Tn=Os;var Ca=u(({state:c,config:o={}})=>{try{let t=[or.configure(o),zn.configure(o),As.configure(o),Tn.configure(o),gr.configure(o),Tr.configure(o),as.configure(o),hs.configure(o),Er.configure(o)];return o.view==="design"&&(t.push(is.configure(o)),t.push(Gr.configure(o))),Ac.create({state:c}).install(...t)}catch(t){return console.error("createRuntime error",t),null}},"createRuntime");var Ge,Ws,Ds,ka,Gs=class Gs extends Cc{constructor(){super(...arguments);f(this,Ds);w(this,"runtime",null);w(this,"apps",new Map);f(this,Ge,"__jucieDesignConsoleFilterOrig");f(this,Ws,[/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,Ds,ka).call(this,n?.view==="design");let e=t("state");if(this.runtime=Ca({state:e,config:n}),!this.runtime)throw new Error("SceneCompiler: runtime construction failed")}actions(t,n){let e=t("state");return{create:async(r,i,a={})=>this.runtime.registry.createApp(r,i,a),loadSources:r=>this.runtime.registry.loadSources(r),loadPrototypes:r=>this.runtime.registry.loadPrototypes(r),getMeta:()=>this.runtime.registry.getAllComponents().filter(r=>r.library!=="local"||r.meta?.origin==="source").map(r=>r.meta),getId:r=>this.runtime.registry.getActorId(r),getIds:r=>r.map(i=>this.runtime.registry.getActorId(i)),projectJsx:(r,i)=>this.runtime.jsx.projectJsx(r,i),projectPuppetJsx:(r,i)=>this.runtime.jsx.projectPuppetJsx(r,i),getActiveBreakpoint:r=>this.runtime.nodeGraph?.getActiveBreakpoint(r),addNodeGraphListener:r=>this.runtime.nodeGraph?.addListener(r),removeNodeGraphListener:r=>this.runtime.nodeGraph?.removeListener(r),startNodeGraph:()=>this.runtime.nodeGraph?.startNodeGraph(),disableNodeGraph:()=>this.runtime.nodeGraph?.disableNodeGraph(),pauseNodeGraph:()=>this.runtime.nodeGraph?.pauseNodeGraph(),resumeNodeGraph:()=>this.runtime.nodeGraph?.resumeNodeGraph(),forceNodeGraph:()=>this.runtime.nodeGraph?.forceNodeGraph(),getNodeGraph:()=>this.runtime.nodeGraph?.getNodeGraph()??{},getFocalRid:()=>this.runtime.nodeGraph?.getFocalRid()??null,setSelectedRids:r=>this.runtime.nodeGraph?.setSelectedRids(r),getSelectedRids:()=>this.runtime.nodeGraph?.getSelectedRids()??[],setFocalRid:r=>this.runtime.nodeGraph?.setFocalRid(r),setViewport:r=>this.runtime.viewport?.set(r),getViewport:()=>this.runtime.viewport?.get()??null,setGrid:r=>this.runtime.viewport?.setGrid(r),setBackground:r=>this.runtime.viewport?.setBackground(r),animate:(r,i,a)=>this.runtime.animator.play(r,i,a),cancelAnimation:(r,i)=>this.runtime.animator.cancel(r,i),getAnimations:()=>this.runtime.animator.getLoadedAnimations(),seekAnimation:(r,i)=>this.runtime.animator.seekAnimation(r,i),addPattern:(r,i,a={})=>this.runtime.registry.addPattern(r,i,a),getPatterns:()=>this.runtime.registry.getPatterns(),removePattern:r=>this.runtime.registry.removePattern(r),navigate:r=>this.runtime?.router?.navigate(r)}}getRoutes(){let t=this.inject("state");return Object.entries(sceneGraph).filter(([n,e])=>e.type==="frame").map(([n,e])=>({id:n,path:e.route.basePath||`/${n}`,params:e.route.params||[],title:e.route.title||n}))}};Ge=new WeakMap,Ws=new WeakMap,Ds=new WeakSet,ka=u(function(t){if(typeof globalThis>"u"||typeof console>"u")return;if(!t){if(!globalThis.__jucieDesignConsoleFilter)return;let e=globalThis[s(this,Ge)];if(e)for(let r of["warn","error"])typeof e[r]=="function"&&(console[r]=e[r]);delete globalThis[s(this,Ge)],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(a=>{if(typeof a=="string")return a;if(a instanceof Error)return a.message??String(a);try{return String(a)}catch{return""}}).join(" ");s(this,Ws).some(a=>a.test(i))||n[e](...r)};globalThis[s(this,Ge)]=n},"#setDesignConsoleFilter"),u(Gs,"SceneCompiler"),w(Gs,"manifest",{name:"Scene Compiler",namespace:"sceneCompiler",version:"1.0.0",description:"Scene compiler extension",author:"",license:"MIT",homepage:""});var Wi=Gs;export{Wi as a};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-K7MC6G4X.js";function i(n,t){return n.remove([t,"destination"])}e(i,"clearDestination");export{i as a};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-K7MC6G4X.js";function n(t,r){return t.set([r,"repeat"],null)}e(n,"clearRepeat");export{n as a};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-K7MC6G4X.js";var t=e(()=>({__version:1,type:"animation",scope:"node",name:null,duration:300,easing:"ease",fill:"none",direction:"normal",iterations:1,delay:0,endDelay:0,iterationStart:0,composite:"replace",keyframes:[]}),"animationDefaults");function l(n={}){return{...t(),...Object.fromEntries(Object.entries(n).filter(([,i])=>i!==void 0))}}e(l,"createAnimation");export{t as a,l as b};
@@ -0,0 +1 @@
1
+ import{b as n}from"./chunk-BVAPODQ7.js";import{a as e}from"./chunk-K7MC6G4X.js";function o({mode:r,...t}={}){return n({mode:r??"value",...t})}e(o,"createRender");function u(r,t,c={}){return r.set([t,"render"],o(c))}e(u,"setRender");export{o as a,u as b};
@@ -0,0 +1 @@
1
+ import{a as o,b as u}from"./chunk-TV4PHWEG.js";import{a as n}from"./chunk-K7MC6G4X.js";function l(t,e,r,s){let i=o(s),c=i.name??r;u(t,e,c),t.findWhere([e,"attributes"],{name:r})!==void 0?t.setWhere([e,"attributes"],{name:r},i):t.push([e,"attributes"],i)}n(l,"updateAttribute");export{l as a};
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk-K7MC6G4X.js";function t({key:a=null,optional:e=!1}={}){return{key:a,optional:e}}r(t,"createParam");function m(a,e){return a.push([e,"route","params"],t())}r(m,"addParamToRoute");export{m as a};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-L4CU73MS.js";import{a as t}from"./chunk-K7MC6G4X.js";function s(r,a,o,n){return r.setWhere([a,"states"],{name:o},e(n))}t(s,"updateState");export{s as a};
@@ -0,0 +1 @@
1
+ import{a as i}from"./chunk-K7MC6G4X.js";function m(n,e,o){n.removeWhere([e,"animations"],{id:o})}i(m,"removeAnimationBinding");export{m as a};
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk-K7MC6G4X.js";function c({name:e,code:t="",state:o=[],computed:n=[],actions:u=[]}){return{name:e,code:t,state:o,computed:n,actions:u}}r(c,"createStore");function s(e,t){let o=c({name:t});return e.set([t],o),t}r(s,"addStore");export{s as a};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-K7MC6G4X.js";function o(r,n,t){return r.removeWhere([n,"events"],{name:t})}e(o,"removeEvent");export{o as a};
@@ -0,0 +1 @@
1
+ import{a as t}from"./chunk-K7MC6G4X.js";function r({path:n=null,target:e=null,id:i=null,type:l="url",replace:o=!1,params:u=[],query:a=null}){return{path:n,target:e,id:i,type:l,replace:o,params:u,query:a}}t(r,"createDestination");function p(n,e,i={}){return n.set([e,"destination"],r(i))}t(p,"setDestination");export{r as a,p as b};
@@ -0,0 +1 @@
1
+ import{a as c}from"./chunk-ODSNVDNS.js";import{b as u}from"./chunk-BVAPODQ7.js";import{a as o}from"./chunk-K7MC6G4X.js";function d({name:e,mode:t,...n}={}){return u({name:e,mode:t??"value",...n})}o(d,"createAttribute");var f=new Set(["model","value","checked"]);function C(e,t,n){if(!f.has(n))return[];let m=n==="model"?["value","checked"]:["model"],l=[];for(let r of m)(e.get([t,"attributes"])??[]).some(a=>a.name===r)&&(c(e,t,r),l.push(r));return e.get([t,"model"])!=null&&e.set([t,"model"],null),l}o(C,"clearValueChannelConflict");export{d as a,C as b};
@@ -0,0 +1 @@
1
+ import{a as p}from"./chunk-K6PCHHH7.js";import{a as f}from"./chunk-CVDUFBBG.js";import{a as s}from"./chunk-K7MC6G4X.js";function u(r,o){if(!o)return;let c=s(n=>{if(!r.has([n]))return;let t=r.get([n,"slots"]);!Array.isArray(t)||!t.length||r.update([n,"slots"],(l=[])=>{let d=!1,h=l.map(i=>{let m=i.children||[];return m.includes(o)?(d=!0,{...i,children:m.filter(v=>v!==o)}):i});return d?h:l})},"stripFromSlots");c("app"),c("temp");let e=s(n=>{for(let t of n||[])r.has([t])&&(c(t),e(r.get([t,"children"])||[]))},"visit");e(r.get(["app","children"])),e(r.get(["temp","children"]))}s(u,"removeNodeIdFromAllInstanceSlots");function x(r,o){let c=p(r,o);for(let n of[o,...c])u(r,n);f(r,o);let e={};for(let n of c)f(r,n),e[n]=r.remove(n);return e[o]=r.remove([o]),[o,e]}s(x,"removeNode");export{u as a,x as b};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-K7MC6G4X.js";function a(t,n,r){return t.set([n,"name"],r)}e(a,"setName");export{a};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-K7MC6G4X.js";function i(n,l){return n.update([l,"options"],(s={})=>({...s,type:"set",binding:null,expression:null,dependencies:[],valueKey:{value:"value",expression:null,dependencies:[]},labelKey:{value:"label",expression:null,dependencies:[]}}))}e(i,"clearOptionsExpression");export{i as a};
@@ -0,0 +1 @@
1
+ import{a as n}from"./chunk-K7MC6G4X.js";function t(i,a,o){i.push([a,"animations"],o)}n(t,"addAnimationBinding");export{t as a};
@@ -0,0 +1 @@
1
+ import{a as m}from"./chunk-ZEWKYCOX.js";import{b as y}from"./chunk-GG4NWMR6.js";import{a as r}from"./chunk-K7MC6G4X.js";function h(t,o){let e=t.get([o,"layout"]);if(e&&e!=="none")return e;let n=t.get([o,"style","default","display"]);return n==="flex"||n==="grid"?n:"none"}r(h,"getLayoutContext");function u(t,o,e){let n=t.get([o,"style"]);if(!(!n||!e.length))for(let i in n){let s=n[i];if(!(!s||typeof s!="object")){for(let f of e)f in s&&t.remove([o,"style",i,f]);for(let f in s){if(!f.startsWith(":")&&!f.startsWith("&."))continue;let c=s[f];if(!(!c||typeof c!="object"))for(let p of e)p in c&&t.remove([o,"style",i,f,p])}}}}r(u,"stripStyleProperties");var k=["top","left","right","bottom"];function b(t,o){u(t,o,k)}r(b,"stripPositionalStyles");function a(){return{layout:"none",draggable:!0,resizable:!0,selectable:!0,locked:[],anchor:[],dimensions:[],expandedStyles:[],childrenType:"children"}}r(a,"defaultNodeBehavior");function g(t,o){return t?o?t.filter(e=>!o.includes(e)):t:[]}r(g,"arrayDiff");function x(t,o,e){let n=t.get([o,"anchor"]),i=g(n,e);return i.length&&u(t,o,i),t.set([o,"anchor"],e),!0}r(x,"updateAnchor");function d(t,o){return t.set([o,".position"],null)}r(d,"clearPosition");function l(t,o,e,n){if(!e||typeof e!="object")return;let i=Object.keys(e).sort();for(let s of i){let f=e[s];switch(s){case"style":{let c=e?.anchor;y(t,o,f,{breakpoint:n,anchor:c}),d(t,o);break}case"bounds":m(t,o,f);break;case"anchor":x(t,o,f);break;default:t.set([o,s],f);break}}}r(l,"applyNodePatch");function I(t,o,e={}){let n={...a(),...e};for(let i of Object.keys(n))t.set([o,i],n[i])}r(I,"setNodeBehavior");function J(t,o){let e=a();for(let n of Object.keys(e))t.set([o,n],e[n]);t.set([o,"hidden"],void 0),t.set([o,"isComponentRoot"],void 0)}r(J,"resetNodeBehavior");function Z(t,o,e){if(h(t,e)!=="none"){b(t,o),l(t,o,{anchor:[],dimensions:[]});return}let i=t.get([o,"anchor"]);(!i||!i.length)&&l(t,o,{anchor:["top","left"],dimensions:["width","height"]})}r(Z,"normalizeLayoutContext");export{d as a,l as b,I as c,J as d,Z as e};
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk-4Y2YKFNP.js";import{a as n}from"./chunk-K7MC6G4X.js";function i(o,m){return o.update([m,"actions"],(e=[])=>{let t=`action${e.length+1}`;return e.some(u=>u.name===t)||e.unshift(r({name:t})),e})}n(i,"addAction");export{i as a};
@@ -0,0 +1 @@
1
+ import{b as p}from"./chunk-BVAPODQ7.js";import{a as e}from"./chunk-K7MC6G4X.js";function i({descriptor:t,keyOn:r=null,key:o="$key",as:n="$item",index:a="$index"}={}){return{descriptor:p(t),keyOn:r,key:o,as:n,index:a}}e(i,"createRepeat");function s(t,r,o={}){return t.set([r,"repeat"],i(o))}e(s,"setRepeat");export{i as a,s as b};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-5SOTDESD.js";import{a as s}from"./chunk-LR6DSVPP.js";import{a as l}from"./chunk-K7MC6G4X.js";function m(c,i,e){if(o(c,i))return;let r="",f;return typeof e=="string"?r=e:e!=null&&typeof e=="object"&&(r=e.value??"",Object.prototype.hasOwnProperty.call(e,"specificPatterns")&&(f=e.specificPatterns)),c.set([i,"textContent"],s({value:r,specificPatterns:f}))}l(m,"setTextContent");export{m as a};
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk-5OOKGI32.js";import{a as e}from"./chunk-K7MC6G4X.js";function m({name:t,code:o=r()}){return{name:t,code:o}}e(m,"createComputed");export{m as a};
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk-K7MC6G4X.js";function a(e,o,t){return e.splice([o,"route","params"],t,1)}r(a,"removeParamFromRoute");export{a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-K7MC6G4X.js";function r(n,u,t){let e=n.get([u,"bounds"])??{};return n.set([u,"bounds"],{...e,...t})}o(r,"updateBounds");export{r as a};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-PU3DZ3MV.js";import"./chunk-K7MC6G4X.js";export{a as clearDestination};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-OQ52NUNN.js";import"./chunk-K7MC6G4X.js";export{a as clearName};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-V4F2T2VR.js";import"./chunk-K7MC6G4X.js";export{a as clearOptionsExpression};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-JKMOVSI4.js";import"./chunk-K7MC6G4X.js";export{a as clearRender};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-QCZ4EDGZ.js";import"./chunk-K7MC6G4X.js";export{a as clearRepeat};
@@ -0,0 +1 @@
1
+ import{a as s}from"./chunk-YMUEID4R.js";import"./chunk-5SOTDESD.js";import"./chunk-LR6DSVPP.js";import"./chunk-BVAPODQ7.js";import"./chunk-5PUPZLDN.js";import"./chunk-4XNQRZ5E.js";import"./chunk-K7MC6G4X.js";import{defineContracts as E}from"@jucie.io/engine-message";var S=E("contentEditor",l=>{let[p,o,d,i]=l("cache","channel","contentEditor","state"),c=i.ref(["nodes"]),t=null;if(!c)throw new Error("Nodes not found");return{start:{schema:["String","String"],namespace:"stage",handler:(n,a)=>{try{let e=document.querySelector(`[data-rid="${n}"]`);if(!e)throw new Error(`ContentEditor.start: $el not found for rid ${n}`);t=d.create(e,{onInput:r=>{s(c,a,{value:r})},onBlur:()=>{o.to("renderWorker").publish("contentEditor:end",n,a),t&&(t.destroy(),t=null)},onWheel:({deltaX:r,deltaY:h,ctrlKey:u,x:f,y:m})=>{o.to("renderWorker").publish("contentEditor:wheel",{deltaX:r,deltaY:h,ctrlKey:u,x:f,y:m})}})}catch(e){return console.error(e),null}}},end:{schema:["String","String"],namespace:"stage",handler:()=>{t&&(t.destroy(),t=null)}}}});export{S as contentEditorContracts};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-4Y2YKFNP.js";import"./chunk-5OOKGI32.js";import"./chunk-K7MC6G4X.js";export{a as createAction};
@@ -0,0 +1 @@
1
+ import{b as a}from"./chunk-QG2BGE2O.js";import"./chunk-K7MC6G4X.js";export{a as createAnimation};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-YN5VQBDN.js";import"./chunk-5OOKGI32.js";import"./chunk-K7MC6G4X.js";export{a as createComputed};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-LR6DSVPP.js";import"./chunk-BVAPODQ7.js";import"./chunk-5PUPZLDN.js";import"./chunk-4XNQRZ5E.js";import"./chunk-K7MC6G4X.js";export{a as createTextContent};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-L7VQYHXR.js";import"./chunk-K7MC6G4X.js";export{a as createValue};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-CVDUFBBG.js";import"./chunk-2YZN7IFG.js";import"./chunk-K7MC6G4X.js";export{a as disconnectNode};
@@ -0,0 +1 @@
1
+ import"./chunk-K7MC6G4X.js";import{defineContracts as s}from"@jucie.io/engine-message";var r=s("history",a=>({group:{schema:null,namespace:"stage",handler:()=>{a("state")?.history?.group()}},commit:{schema:null,namespace:"stage",handler:()=>{a("state")?.history?.commit()}},undo:{schema:null,namespace:"stage",handler:()=>{let t=a("state");t?.history?.canUndo()&&t?.history?.undo()}},redo:{schema:null,namespace:"stage",handler:()=>{let t=a("state");t?.history?.canRedo()&&t?.history?.redo()}}}));export{r as historyContracts};
@@ -0,0 +1 @@
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"./chunk-4XNQRZ5E.js";import"./chunk-K7MC6G4X.js";export{t as clearGeneratedIds,i as createActorId,g as createAnimationId,d as createAssetId,e as createChannelId,n as createDescriptorId,j as createDocumentId,a as createId,o as createLongId,l as createMessageRequestId,f as createNodeId,k as createPortId,b as createSceneId,q as createSecureId,c as createSpaceId,m as createStoreId,h as createTokenId,p as createUuid,u as getGeneratedIds,v as isIdGenerated,s as isValidId,x as loadExistingIds,r as parseId,w as removeGeneratedId};
@@ -0,0 +1 @@
1
+ import{a as m,b as p}from"./chunk-P4ODI2G4.js";import{a}from"./chunk-6ZZBJPN5.js";import{a as c}from"./chunk-HBEU7BDR.js";import"./chunk-4XNQRZ5E.js";import{a as n}from"./chunk-K7MC6G4X.js";import{defineContracts as i}from"@jucie.io/engine-message";var f=i("token",e=>{let[r,t]=e("channel","state"),s=t?.ref(["tokens"])??null;if(!s)throw new Error("Tokens state not found");return{get:{namespace:"scene-graph",handler:o=>o?s.get([o]):s.get()??{}},create:{namespace:"scene-graph",schema:["Object"],handler:(o={})=>p(s,o)},update:{namespace:"scene-graph",schema:["String","Object"],handler:(o,u)=>{a(s,o,u)}},delete:{namespace:"scene-graph",schema:["String"],handler:o=>{c(s,o)}}}});function d(e,r,t){return e.set([r,"$value"],t)}n(d,"setValue");function h(e,r,t){return e.set([r,"$type"],t)}n(h,"setType");function l(e,r,t){return e.set([r,"$path"],t)}n(l,"setPath");function x(e,r,t){return t==null?e.set([r,"$description"],void 0):e.set([r,"$description"],t)}n(x,"setDescription");function k(e,r,t){return t==null?e.set([r,"$deprecated"],void 0):e.set([r,"$deprecated"],t)}n(k,"setDeprecated");var z=[f];export{p as addToken,z as contracts,c as removeToken,k as setDeprecated,x as setDescription,l as setPath,h as setType,d as setValue,f as tokenContracts,m as tokenDefaults,a as updateToken};
@@ -0,0 +1 @@
1
+ import{a as l,b as s}from"./chunk-QG2BGE2O.js";import{a as p}from"./chunk-V7BNWQS6.js";import{a as g}from"./chunk-SMO45CB3.js";import{a as d}from"./chunk-GIVV5ZCM.js";import"./chunk-K7MC6G4X.js";import{defineContracts as S}from"@jucie.io/engine-message";var h=S("node:animation",u=>{let c=u("state"),t=c?.ref(["animations"])??null,r=c?.ref(["nodes"])??null;if(!t)throw new Error("Animations state not found");return{create:{namespace:"scene-graph",schema:["String","Object"],handler:(e,n={})=>{t.set([e],s(n))}},update:{namespace:"scene-graph",schema:["String","Object"],handler:(e,n)=>{if(t.get([e]))for(let[i,m]of Object.entries(n))t.set([e,i],m)}},delete:{namespace:"scene-graph",schema:["String"],handler:e=>{t.set([e],null)}},bind:{namespace:"scene-graph",schema:["String","Object"],handler:(e,n)=>{r&&p(r,e,n)}},unbind:{namespace:"scene-graph",schema:["String","String"],handler:(e,n)=>{r&&g(r,e,n)}},updateBinding:{namespace:"scene-graph",schema:["String","String","Object"],handler:(e,n,a)=>{r&&d(r,e,n,a)}},promote:{namespace:"scene-graph",schema:["String"],handler:e=>{t.get([e])&&t.set([e,"scope"],"project")}},customize:{namespace:"scene-graph",schema:["String","String","String"],handler:(e,n,a)=>{if(!r)return;let i=t.get([n]);if(!i)return;t.set([a],s({...i,scope:"node"}));let f=(r.get([e,"animations"])??[]).map(o=>o.id===n?{...o,id:a}:o);r.set([e,"animations"],f)}}}});var v=[h];export{h as animationContracts,l as animationDefaults,v as contracts,s as createAnimation};
@@ -0,0 +1 @@
1
+ import{a,b,c,d,e}from"./chunk-6EIGTDJQ.js";import"./chunk-X6HJCJ3C.js";import"./chunk-DSKLC3WF.js";import"./chunk-BEYPHEBR.js";import"./chunk-4Y2YKFNP.js";import"./chunk-KCVDFPJI.js";import"./chunk-AJVQKPCQ.js";import"./chunk-32WBU6VH.js";import"./chunk-OPVVANFS.js";import"./chunk-MLL2ANA6.js";import"./chunk-7L4V7JRT.js";import"./chunk-HI7ALMQD.js";import"./chunk-SRRJXNKG.js";import"./chunk-L7VQYHXR.js";import"./chunk-YN5VQBDN.js";import"./chunk-5OOKGI32.js";import"./chunk-K7MC6G4X.js";export{a as actionsContract,b as computedContract,e as contracts,c as stateContract,d as storeContract};
@@ -0,0 +1 @@
1
+ import{A as F,B as G,C as H,D as I,E as J,F as K,G as L,H as M,I as N,J as O,K as P,L as Q,M as R,a as f,b as g,c as h,d as i,e as j,f as k,g as l,h as m,i as n,j as o,k as p,l as q,m as r,n as s,o as t,p as u,q as v,r as w,s as x,t as y,u as z,v as A,w as B,x as C,y as D,z as E}from"./chunk-32FG2JVJ.js";import"./chunk-4FPLUVEY.js";import"./chunk-YMUEID4R.js";import"./chunk-ZCAGAEP2.js";import"./chunk-5GOTVZFC.js";import"./chunk-D6NZE747.js";import{a as e}from"./chunk-LKQDYABR.js";import"./chunk-ARGFDBBK.js";import"./chunk-HBEWYDHO.js";import"./chunk-V4F2T2VR.js";import"./chunk-DCOWKGJI.js";import"./chunk-45CXRNTO.js";import"./chunk-RZ74UWF3.js";import"./chunk-EPBR3BES.js";import"./chunk-45LFQ7GZ.js";import"./chunk-5YRZZCXL.js";import"./chunk-RWJ7EPNM.js";import"./chunk-TV4PHWEG.js";import"./chunk-ODSNVDNS.js";import"./chunk-EO7UBT4B.js";import"./chunk-D3V5OTLH.js";import"./chunk-BS35FNXF.js";import"./chunk-GDGHGTYN.js";import"./chunk-TEUB5MUS.js";import"./chunk-PU3DZ3MV.js";import"./chunk-XKEDVW6X.js";import"./chunk-QCZ4EDGZ.js";import"./chunk-QTBRJH2Q.js";import"./chunk-JKMOVSI4.js";import"./chunk-H3VC542J.js";import"./chunk-SECM4LZZ.js";import"./chunk-L4CU73MS.js";import"./chunk-U3IV5DRQ.js";import{c as d}from"./chunk-FSECMWCM.js";import"./chunk-4MTM6BM7.js";import"./chunk-OWARHUEW.js";import"./chunk-FTRUORC5.js";import"./chunk-TBDEUSP4.js";import"./chunk-P3WBUN2B.js";import"./chunk-C3DY5XVP.js";import"./chunk-6GMURG26.js";import{a,b,c}from"./chunk-AMAA7VJU.js";import"./chunk-N4AFW5M3.js";import"./chunk-5SOTDESD.js";import"./chunk-U2OFNNHI.js";import"./chunk-K6PCHHH7.js";import"./chunk-CVDUFBBG.js";import"./chunk-2YZN7IFG.js";import"./chunk-73MAM44D.js";import"./chunk-X2DYJVYZ.js";import"./chunk-ZEWKYCOX.js";import"./chunk-OQ52NUNN.js";import"./chunk-MXIF2FGR.js";import"./chunk-LR6DSVPP.js";import"./chunk-BVAPODQ7.js";import"./chunk-5PUPZLDN.js";import"./chunk-4XNQRZ5E.js";import"./chunk-GG4NWMR6.js";import"./chunk-K7MC6G4X.js";export{k as addContracts,m as attributeContracts,y as behaviorContracts,f as breakpointContracts,p as buildSlotsFromMeta,g as classNameContracts,h as clipboardContracts,d as cloneNodes,i as contextNameContracts,R as contracts,O as createNode,e as createOption,n as createProp,t as destinationContracts,u as dragContracts,P as elements,l as eventsContracts,a as frames,c as getAvailableFrames,b as getFramePreset,Q as graphics,s as htmlContracts,N as htmlIdContracts,w as interactionStateContracts,z as layoutContracts,v as lifecycleContracts,q as mergeMissingSlotsFromMeta,A as moveContracts,B as nameContracts,C as optionsContracts,D as orderContracts,x as patchContracts,o as propContracts,E as removeContracts,F as renderContracts,G as repeatContracts,H as routeContracts,r as slotContracts,j as statesContracts,I as styleContracts,J as tagNameContracts,K as textContentContracts,L as typeContracts,M as viewportContracts};
@@ -0,0 +1 @@
1
+ import{d as a}from"./chunk-N4AFW5M3.js";import"./chunk-5SOTDESD.js";import"./chunk-2YZN7IFG.js";import"./chunk-X2DYJVYZ.js";import"./chunk-ZEWKYCOX.js";import"./chunk-GG4NWMR6.js";import"./chunk-K7MC6G4X.js";export{a as moveNodeToLastChildOf};
@@ -0,0 +1 @@
1
+ import"./chunk-K7MC6G4X.js";import{defineContracts as o}from"@jucie.io/engine-message";var s=o("nodeGraph",r=>{let n=r("log");return{pause:{schema:null,namespace:"stage",handler:()=>{let e=r("sceneCompiler");return e?(e.pauseNodeGraph(),!0):(n.warn("scene compiler not found"),!1)}},resume:{schema:null,namespace:"stage",handler:()=>{let e=r("sceneCompiler");return e?(e.resumeNodeGraph(),!0):(n.warn("scene compiler not found"),!1)}},force:{schema:null,namespace:"stage",handler:()=>{let e=r("sceneCompiler");return e?(e.forceNodeGraph(),!0):(n.warn("scene compiler not found"),!1)}}}});export{s as nodeGraphContracts};
@@ -0,0 +1 @@
1
+ import{a as t}from"./chunk-K7MC6G4X.js";var n={click:"onClick",dblclick:"onDoubleClick",doubleclick:"onDoubleClick",contextmenu:"onContextMenu",mousedown:"onMouseDown",mouseup:"onMouseUp",mousemove:"onMouseMove",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseover:"onMouseOver",mouseout:"onMouseOut",drag:"onDrag",dragstart:"onDragStart",dragend:"onDragEnd",dragenter:"onDragEnter",dragleave:"onDragLeave",dragover:"onDragOver",drop:"onDrop",keydown:"onKeyDown",keyup:"onKeyUp",keypress:"onKeyPress",change:"onChange",input:"onInput",submit:"onSubmit",reset:"onReset",focus:"onFocus",blur:"onBlur",invalid:"onInvalid",formdata:"onFormData",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",touchcancel:"onTouchCancel",wheel:"onWheel",copy:"onCopy",cut:"onCut",paste:"onPaste",abort:"onAbort",canplay:"onCanPlay",canplaythrough:"onCanPlayThrough",durationchange:"onDurationChange",emptied:"onEmptied",ended:"onEnded",loadeddata:"onLoadedData",loadedmetadata:"onLoadedMetadata",loadstart:"onLoadStart",pause:"onPause",play:"onPlay",playing:"onPlaying",progress:"onProgress",ratechange:"onRateChange",seeked:"onSeeked",seeking:"onSeeking",stalled:"onStalled",suspend:"onSuspend",timeupdate:"onTimeUpdate",volumechange:"onVolumeChange",waiting:"onWaiting",animationstart:"onAnimationStart",animationend:"onAnimationEnd",animationiteration:"onAnimationIteration",transitionend:"onTransitionEnd",load:"onLoad",error:"onError",scroll:"onScroll",scrollend:"onScrollEnd",resize:"onResize",select:"onSelect",toggle:"onToggle",afterprint:"onAfterPrint",beforeprint:"onBeforePrint",beforeunload:"onBeforeUnload",hashchange:"onHashChange",languagechange:"onLanguageChange",message:"onMessage",messageerror:"onMessageError",offline:"onOffline",online:"onOnline",pagehide:"onPageHide",pageshow:"onPageShow",popstate:"onPopState",rejectionhandled:"onRejectionHandled",storage:"onStorage",unhandledrejection:"onUnhandledRejection",unload:"onUnload",auxclick:"onAuxClick",beforematch:"onBeforeMatch",beforetoggle:"onBeforeToggle",cancel:"onCancel",close:"onClose",contextlost:"onContextLost",contextrestored:"onContextRestored",cuechange:"onCueChange",securitypolicyviolation:"onSecurityPolicyViolation",slotchange:"onSlotChange"},l=new Set(Object.values(n));function s(o){if(typeof o!="string"||o.length===0)throw new Error('Event name must be a non-empty string. Use React-style names like "onClick" or "onSubmit".');if(l.has(o))return o;let e=o.toLowerCase(),r=e.startsWith("on")?e.slice(2):e,a=n[r]??n[e];if(a)return a;throw new Error(`Unknown event name: "${o}". Use React-style names like "onClick", "onSubmit", or "onMouseEnter".`)}t(s,"normalizeEventName");export{s as normalizeEventName};
@@ -0,0 +1 @@
1
+ import{e as a}from"./chunk-X2DYJVYZ.js";import"./chunk-ZEWKYCOX.js";import"./chunk-GG4NWMR6.js";import"./chunk-K7MC6G4X.js";export{a as normalizeLayoutContext};