@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,1353 @@
1
+ import {
2
+ __privateAdd,
3
+ __privateGet,
4
+ __privateMethod,
5
+ __privateSet,
6
+ __publicField,
7
+ __require
8
+ } from "./chunk-ZHZLVPR6.js";
9
+
10
+ // ../../node_modules/@jucie.io/engine/dist/main.js
11
+ var p = { PRIMITIVE: 0, OBJECT: 1, ARRAY: 2, RESERVED: 3 };
12
+ var S = class r {
13
+ constructor(e) {
14
+ this.flags = 0, e !== void 0 && (typeof e == "function" ? this.flags |= 1 : e instanceof Set || e instanceof Map ? (this.value = e, this.originalType = p.PRIMITIVE) : typeof e == "object" && e !== null && !Array.isArray(e) ? (this._children = new Map(Object.entries(e).map(([t, n]) => [t, new r(n)])), this.flags |= 16, this.originalType = p.OBJECT) : Array.isArray(e) ? (this._children = new Map(e.map((t, n) => [n, new r(t)])), this.flags |= 16, this.originalType = p.ARRAY) : (this.value = e, this.originalType = p.PRIMITIVE));
15
+ }
16
+ get isFunction() {
17
+ return (this.flags & 1) !== 0;
18
+ }
19
+ set isFunction(e) {
20
+ this.flags = e ? this.flags | 1 : this.flags & -2;
21
+ }
22
+ get isSetOnce() {
23
+ return (this.flags & 2) !== 0;
24
+ }
25
+ set isSetOnce(e) {
26
+ this.flags = e ? this.flags | 2 : this.flags & -3;
27
+ }
28
+ get cached() {
29
+ return (this.flags & 4) !== 0;
30
+ }
31
+ set cached(e) {
32
+ this.flags = e ? this.flags | 4 : this.flags & -5;
33
+ }
34
+ get executed() {
35
+ return (this.flags & 8) !== 0;
36
+ }
37
+ set executed(e) {
38
+ this.flags = e ? this.flags | 8 : this.flags & -9;
39
+ }
40
+ get hasChildrenFlag() {
41
+ return (this.flags & 16) !== 0;
42
+ }
43
+ set hasChildrenFlag(e) {
44
+ this.flags = e ? this.flags | 16 : this.flags & -17;
45
+ }
46
+ get isFixed() {
47
+ return (this.flags & 32) !== 0;
48
+ }
49
+ set isFixed(e) {
50
+ this.flags = e ? this.flags | 32 : this.flags & -33;
51
+ }
52
+ get originalType() {
53
+ return this.flags >> 6 & 3;
54
+ }
55
+ set originalType(e) {
56
+ this.flags = this.flags & -193 | (e & 3) << 6;
57
+ }
58
+ get children() {
59
+ return this._children || (this._children = /* @__PURE__ */ new Map(), this.hasChildrenFlag = true), this._children;
60
+ }
61
+ hasChildren() {
62
+ return this.hasChildrenFlag && this._children && this._children.size > 0;
63
+ }
64
+ isEmpty() {
65
+ return this.value === void 0 && (!this._children || this._children.size === 0);
66
+ }
67
+ get cachedResult() {
68
+ return this._cachedResult;
69
+ }
70
+ set cachedResult(e) {
71
+ this._cachedResult = e;
72
+ }
73
+ get cachedAt() {
74
+ return this._cachedAt;
75
+ }
76
+ set cachedAt(e) {
77
+ this._cachedAt = e;
78
+ }
79
+ get(e) {
80
+ let t = e.shift();
81
+ if (t === void 0) {
82
+ if (this.flags & 1) {
83
+ if ((this.flags & 6) === 6) return this.cachedResult;
84
+ let n = this.value();
85
+ return this.flags & 2 && (this.flags |= 4, this.cachedResult = n, this.cachedAt = Date.now()), this.flags |= 8, n;
86
+ }
87
+ return this.value !== void 0 ? this.value : this.hasChildren() ? this._reconstructFromChildren() : void 0;
88
+ }
89
+ if (this._children?.has(t)) return this._children.get(t).get(e);
90
+ }
91
+ set(e, t) {
92
+ let n = e.shift();
93
+ if (n === void 0) {
94
+ if (this.isFixed) throw new Error("Cannot overwrite fixed value at path. Use clearFixed() first if you need to modify it.");
95
+ return t instanceof Set || t instanceof Map ? (this.value = t, this.flags = 0, this.originalType = p.PRIMITIVE) : typeof t == "object" && t !== null && !Array.isArray(t) && typeof t != "function" ? this._syncObjectChildren(t) : Array.isArray(t) ? this._syncArrayChildren(t) : (this.value = t, this.flags = typeof t == "function" ? 1 : 0, this.originalType = p.PRIMITIVE), this;
96
+ }
97
+ let i = this.children;
98
+ return i.has(n) || i.set(n, new r()), i.get(n).set(e, t), this;
99
+ }
100
+ setOnce(e, t) {
101
+ let n = e.shift();
102
+ if (n === void 0) {
103
+ if (this.isFixed) throw new Error("Cannot overwrite fixed value at path. Use clearFixed() first if you need to modify it.");
104
+ return t instanceof Set || t instanceof Map ? (this.value = t, this.flags = 2, this.originalType = p.PRIMITIVE) : typeof t == "object" && t !== null && !Array.isArray(t) && typeof t != "function" ? (this._syncObjectChildren(t), this.flags = this.flags | 2) : Array.isArray(t) ? (this._syncArrayChildren(t), this.flags = this.flags | 2) : (this.value = t, this.flags = typeof t == "function" ? 3 : 2, this.originalType = p.PRIMITIVE), this;
105
+ }
106
+ let i = this.children;
107
+ return i.has(n) || i.set(n, new r()), i.get(n).setOnce(e, t), this;
108
+ }
109
+ has(e) {
110
+ let t = e.shift();
111
+ return t === void 0 ? this.value !== void 0 || this.hasChildren() : this._children?.has(t) ? this._children.get(t).has(e) : false;
112
+ }
113
+ hasValue(e) {
114
+ let t = e.shift();
115
+ return t === void 0 ? this.value !== void 0 : this._children?.has(t) ? this._children.get(t).hasValue(e) : false;
116
+ }
117
+ remove(e) {
118
+ let t = e.shift();
119
+ if (t === void 0) return this.value = void 0, this._children = void 0, this.flags = this.flags & -32, this;
120
+ if (this._children?.has(t)) {
121
+ let n = this._children.get(t);
122
+ n.remove(e), n.isEmpty() && this._children.delete(t);
123
+ }
124
+ return this;
125
+ }
126
+ clearCache(e) {
127
+ let t = e.shift();
128
+ return t === void 0 ? (this.flags = this.flags & -5, this.cachedResult = null, this.cachedAt = null, this) : (this._children?.has(t) && this._children.get(t).clearCache(e), this);
129
+ }
130
+ fixed(e, t) {
131
+ let n = e.shift();
132
+ if (n === void 0) {
133
+ if (this.value !== void 0 && this.isFixed) throw new Error("Value at path is already fixed and cannot be changed. Use clearFixed() first if needed.");
134
+ return this.value = t, this.flags = (typeof t == "function" ? 1 : 0) | 32, this;
135
+ }
136
+ let i = this.children;
137
+ return i.has(n) || i.set(n, new r()), i.get(n).fixed(e, t), this;
138
+ }
139
+ clearFixed(e) {
140
+ let t = e.shift();
141
+ return t === void 0 ? this.isFixed ? (this.flags = this.flags & -33, this) : (console.warn("Attempted to clear fixed flag on non-fixed value"), this) : (this._children?.has(t) && this._children.get(t).clearFixed(e), this);
142
+ }
143
+ isFixedValue(e) {
144
+ let t = e.shift();
145
+ return t === void 0 ? this.isFixed : this._children?.has(t) ? this._children.get(t).isFixedValue(e) : false;
146
+ }
147
+ _syncObjectChildren(e) {
148
+ let t = new Set(Object.keys(e)), n = new Set(this.children.keys());
149
+ for (let i of n) t.has(i) || this.children.delete(i);
150
+ for (let [i, s] of Object.entries(e)) if (this.children.has(i) || this.children.set(i, new r()), typeof s == "object" && s !== null && !Array.isArray(s) && typeof s != "function") this.children.get(i)._syncObjectChildren(s);
151
+ else if (Array.isArray(s)) this.children.get(i)._syncArrayChildren(s);
152
+ else {
153
+ let o = this.children.get(i);
154
+ o.value = s, o.flags = typeof s == "function" ? 1 : 0;
155
+ }
156
+ this.value = void 0, this.flags = this.flags & -2, this.originalType = p.OBJECT;
157
+ }
158
+ _syncArrayChildren(e) {
159
+ let t = new Set(e.map((i, s) => s)), n = new Set(this.children.keys());
160
+ for (let i of n) typeof i == "number" && !t.has(i) && this.children.delete(i);
161
+ for (let i = 0; i < e.length; i++) {
162
+ let s = e[i];
163
+ if (this.children.has(i) || this.children.set(i, new r()), typeof s == "object" && s !== null && !Array.isArray(s) && typeof s != "function") this.children.get(i)._syncObjectChildren(s);
164
+ else if (Array.isArray(s)) this.children.get(i)._syncArrayChildren(s);
165
+ else {
166
+ let o = this.children.get(i);
167
+ o.value = s, o.flags = typeof s == "function" ? 1 : 0;
168
+ }
169
+ }
170
+ this.value = void 0, this.flags = this.flags & -2, this.originalType = p.ARRAY;
171
+ }
172
+ _reconstructFromChildren() {
173
+ if (!this._children || this._children.size === 0) return;
174
+ if (this.originalType === p.ARRAY) {
175
+ let t = [];
176
+ for (let [n, i] of this._children) typeof n == "number" && (t[n] = i.get([]));
177
+ return t;
178
+ } else {
179
+ let t = {};
180
+ for (let [n, i] of this._children) t[n] = i.get([]);
181
+ return t;
182
+ }
183
+ }
184
+ };
185
+ var m = class r2 {
186
+ static create(e) {
187
+ return new r2(e);
188
+ }
189
+ constructor(e = {}) {
190
+ return this.load(e);
191
+ }
192
+ load(e) {
193
+ return this.root = new S(e), this;
194
+ }
195
+ get(e) {
196
+ let t = Array.isArray(e) ? [...e] : [e];
197
+ return this.root.get(t);
198
+ }
199
+ update(e, t) {
200
+ let n = Array.isArray(e) ? [...e] : [e], i = this.root.get([...n]), s = t(i);
201
+ return this.root.set([...n], s), this;
202
+ }
203
+ set(e, t) {
204
+ let n = Array.isArray(e) ? [...e] : [e];
205
+ return this.root.set(n, t), this;
206
+ }
207
+ setOnce(e, t) {
208
+ let n = Array.isArray(e) ? [...e] : [e];
209
+ return this.root.setOnce(n, t), this;
210
+ }
211
+ fixed(e, t) {
212
+ let n = Array.isArray(e) ? [...e] : [e];
213
+ return this.root.fixed(n, t), this;
214
+ }
215
+ has(e) {
216
+ let t = Array.isArray(e) ? [...e] : [e];
217
+ return this.root.has(t);
218
+ }
219
+ hasValue(e) {
220
+ let t = Array.isArray(e) ? [...e] : [e];
221
+ return this.root.hasValue(t);
222
+ }
223
+ remove(e) {
224
+ let t = Array.isArray(e) ? [...e] : [e];
225
+ return this.root.remove(t), this;
226
+ }
227
+ clearCache(e) {
228
+ let t = Array.isArray(e) ? [...e] : [e];
229
+ return this.root.clearCache(t), this;
230
+ }
231
+ clearFixed(e) {
232
+ let t = Array.isArray(e) ? [...e] : [e];
233
+ return this.root.clearFixed(t), this;
234
+ }
235
+ isFixed(e) {
236
+ let t = Array.isArray(e) ? [...e] : [e];
237
+ return this.root.isFixedValue(t);
238
+ }
239
+ export() {
240
+ return this._exportNode(this.root);
241
+ }
242
+ static import(e) {
243
+ let t = new r2();
244
+ return t.root = t._importNode(e), t;
245
+ }
246
+ _exportNode(e) {
247
+ let t = { flags: e.flags };
248
+ if (e.isFunction) t.type = "function", t.skipped = true;
249
+ else if (e.hasChildren()) {
250
+ t.type = "map", t.value = [];
251
+ for (let [n, i] of e._children) t.value.push([n, this._exportNode(i)]);
252
+ e.value !== void 0 && (t.nodeValue = e.value);
253
+ } else e.value !== void 0 ? (t.type = "primitive", t.value = e.value) : t.type = "empty";
254
+ return t;
255
+ }
256
+ _importNode(e) {
257
+ let t = new S();
258
+ switch (t.flags = e.flags || 0, e.type) {
259
+ case "function":
260
+ t.value = void 0, t.flags = t.flags & -16;
261
+ break;
262
+ case "primitive":
263
+ t.value = e.value;
264
+ break;
265
+ case "map":
266
+ if (e.value && e.value.length > 0) {
267
+ t._children = /* @__PURE__ */ new Map();
268
+ for (let [n, i] of e.value) {
269
+ let s = typeof n == "string" && /^\d+$/.test(n) ? parseInt(n, 10) : n;
270
+ t._children.set(s, this._importNode(i));
271
+ }
272
+ t.hasChildrenFlag = true;
273
+ }
274
+ e.nodeValue !== void 0 && (t.value = e.nodeValue);
275
+ break;
276
+ case "empty":
277
+ default:
278
+ break;
279
+ }
280
+ return t;
281
+ }
282
+ };
283
+ var b = Object.freeze(/* @__PURE__ */ Object.create(null));
284
+ function ae(r3) {
285
+ if (globalThis.queueMicrotask && typeof globalThis.queueMicrotask == "function") {
286
+ globalThis.queueMicrotask(r3);
287
+ return;
288
+ }
289
+ setTimeout(r3, 0);
290
+ }
291
+ var _e, _t, _a;
292
+ var j = (_a = class {
293
+ constructor(e, t) {
294
+ __privateAdd(this, _e);
295
+ __privateAdd(this, _t);
296
+ __privateSet(this, _e, e), __privateSet(this, _t, t);
297
+ }
298
+ on(e, t) {
299
+ return __privateGet(this, _t).subscribe(e, b, __privateGet(this, _e), t);
300
+ }
301
+ once(e, t) {
302
+ return __privateGet(this, _t).once(e, b, __privateGet(this, _e), t);
303
+ }
304
+ broadcast(e, ...t) {
305
+ __privateGet(this, _t).publish(e, __privateGet(this, _e), b, t);
306
+ }
307
+ from(e) {
308
+ return { subscribe: (t, n) => __privateGet(this, _t).subscribe(t, e, __privateGet(this, _e), n), once: (t, n) => __privateGet(this, _t).once(t, e, __privateGet(this, _e), n) };
309
+ }
310
+ to(e) {
311
+ return { publish: (t, ...n) => __privateGet(this, _t).publish(t, __privateGet(this, _e), e, n), publishAsync: (t, ...n) => __privateGet(this, _t).publishAsync(t, __privateGet(this, _e), e, n) };
312
+ }
313
+ }, _e = new WeakMap(), _t = new WeakMap(), _a);
314
+ var _e2, _t2, _n, _r_instances, r_fn, _r_static, _a2, i_fn, o_fn, s_fn;
315
+ var w = (_a2 = class {
316
+ constructor({ onError: e = null } = {}) {
317
+ __privateAdd(this, _r_instances);
318
+ __privateAdd(this, _e2, /* @__PURE__ */ new WeakMap());
319
+ __privateAdd(this, _t2, /* @__PURE__ */ new Map());
320
+ __privateAdd(this, _n, null);
321
+ __privateSet(this, _n, e), this.createChannel(b);
322
+ }
323
+ static create(e = {}) {
324
+ return new _a2(e);
325
+ }
326
+ channel(e) {
327
+ return this.createChannel(e);
328
+ }
329
+ createChannel(e) {
330
+ if (__privateGet(this, _e2).has(e)) return __privateGet(this, _e2).get(e);
331
+ let t = new j(e, this);
332
+ return __privateGet(this, _e2).set(e, t), t;
333
+ }
334
+ subscribe(e, t, n, i) {
335
+ let s = { from: t, to: n, handler: i };
336
+ return __privateMethod(this, _r_instances, r_fn).call(this, e).add(s), () => {
337
+ let o = __privateGet(this, _t2).get(e);
338
+ o && o.delete(s);
339
+ };
340
+ }
341
+ once(e, t, n, i) {
342
+ let s = null, o = (c) => {
343
+ try {
344
+ i(c);
345
+ } finally {
346
+ s && s();
347
+ }
348
+ };
349
+ return s = this.subscribe(e, t, n, o), s;
350
+ }
351
+ offAllFor(e) {
352
+ for (let t of __privateGet(this, _t2).values()) for (let n of Array.from(t)) (n.from === e || n.to === e) && t.delete(n);
353
+ }
354
+ listenerCount(e) {
355
+ let t = __privateGet(this, _t2).get(e);
356
+ return t ? t.size : 0;
357
+ }
358
+ publish(e, t, n, i) {
359
+ __privateMethod(this, _r_instances, s_fn).call(this, e, t, n, i);
360
+ }
361
+ publishAsync(e, t, n, i) {
362
+ ae(() => __privateMethod(this, _r_instances, s_fn).call(this, e, t, n, i));
363
+ }
364
+ broadcast(e, t, n) {
365
+ this.publish(e, t, b, n);
366
+ }
367
+ }, _e2 = new WeakMap(), _t2 = new WeakMap(), _n = new WeakMap(), _r_instances = new WeakSet(), r_fn = function(e) {
368
+ let t = __privateGet(this, _t2).get(e);
369
+ return t || (t = /* @__PURE__ */ new Set(), __privateGet(this, _t2).set(e, t)), t;
370
+ }, _r_static = new WeakSet(), i_fn = function(e, t) {
371
+ return e === b || t === b || e === t;
372
+ }, o_fn = function(e, t, n, i) {
373
+ var _a11, _b;
374
+ return __privateMethod(_a11 = _a2, _r_static, i_fn).call(_a11, e, n) && __privateMethod(_b = _a2, _r_static, i_fn).call(_b, t, i);
375
+ }, s_fn = function(e, t, n, i) {
376
+ var _a11;
377
+ let s = __privateGet(this, _t2).get(e);
378
+ if (!(!s || s.size === 0)) {
379
+ for (let o of s) if (o.to !== t && __privateMethod(_a11 = _a2, _r_static, o_fn).call(_a11, t, n, o.from, o.to)) try {
380
+ o.handler(...i);
381
+ } catch (c) {
382
+ __privateGet(this, _n) && __privateGet(this, _n).call(this, c, { event: e, from: t, to: n, listener: o });
383
+ }
384
+ }
385
+ }, __privateAdd(_a2, _r_static), _a2);
386
+ var A = { trace: 10, debug: 20, info: 30, warn: 40, error: 50, silent: 90 };
387
+ var _e3, _t3, _n2, _a3;
388
+ var E = (_a3 = class {
389
+ constructor({ level: e = "info", sinks: t = [], base: n = {} } = {}) {
390
+ __privateAdd(this, _e3);
391
+ __privateAdd(this, _t3);
392
+ __privateAdd(this, _n2);
393
+ __privateSet(this, _e3, A[e] ?? A.info), __privateSet(this, _t3, t), __privateSet(this, _n2, n);
394
+ }
395
+ static create(e = {}) {
396
+ return new _a3(e);
397
+ }
398
+ setLevel(e) {
399
+ __privateSet(this, _e3, A[e] ?? __privateGet(this, _e3));
400
+ }
401
+ child(e = {}, t = []) {
402
+ return new _a3({ level: this.level, sinks: [...__privateGet(this, _t3), ...t], base: { ...__privateGet(this, _n2), ...e } });
403
+ }
404
+ get level() {
405
+ return Object.entries(A).find(([e, t]) => t === __privateGet(this, _e3))?.[0] ?? "info";
406
+ }
407
+ log(e, t, n = {}) {
408
+ if ((A[e] ?? A.info) < __privateGet(this, _e3)) return;
409
+ let s = { t: Date.now(), level: e, msg: t, ...__privateGet(this, _n2), ...n };
410
+ for (let o of __privateGet(this, _t3)) o(s);
411
+ }
412
+ trace(e, t) {
413
+ this.log("trace", e, t);
414
+ }
415
+ debug(e, t) {
416
+ this.log("debug", e, t);
417
+ }
418
+ info(e, t) {
419
+ this.log("info", e, t);
420
+ }
421
+ warn(e, t) {
422
+ this.log("warn", e, t);
423
+ }
424
+ error(e, t) {
425
+ this.log("error", e, t);
426
+ }
427
+ progress(e, t, n = "", i = {}) {
428
+ let s = { t: Date.now(), type: "progress", level: "info", msg: n, current: e, total: t, message: n, percentage: Math.round(e / t * 100), ...__privateGet(this, _n2), ...i };
429
+ for (let o of __privateGet(this, _t3)) o(s);
430
+ }
431
+ metric(e, t, n = "ms", i = {}) {
432
+ let s = { t: Date.now(), type: "metric", level: "info", msg: `${e}: ${t}${n}`, name: e, value: t, unit: n, ...__privateGet(this, _n2), ...i };
433
+ for (let o of __privateGet(this, _t3)) o(s);
434
+ }
435
+ }, _e3 = new WeakMap(), _t3 = new WeakMap(), _n2 = new WeakMap(), _a3);
436
+ var R = (r3) => {
437
+ let { t: e, level: t, msg: n, ns: i, ...s } = r3, o = new Date(e).toISOString(), c = t === "error" ? console.error : t === "warn" ? console.warn : console.log, l2 = `${i ? `[${i}] ` : ""}${n}`;
438
+ Object.keys(s).length > 0 ? c(`[${o}] ${t.toUpperCase()} ${l2}`, s) : c(`[${o}] ${t.toUpperCase()} ${l2}`);
439
+ };
440
+ var D = (r3 = 1e3) => {
441
+ let e = [];
442
+ return { sink: (t) => {
443
+ e.push(t), e.length > r3 && e.shift();
444
+ }, read: () => e.slice(), clear: () => {
445
+ e.length = 0;
446
+ } };
447
+ };
448
+ function F(r3, e, t = "value") {
449
+ if (Array.isArray(e)) {
450
+ for (let i of e) if (X(r3, i)) return true;
451
+ let n = e.map($).join(" | ");
452
+ throw new TypeError(`${t} must be one of: ${n}. Got ${$(r3)}`);
453
+ }
454
+ if (!X(r3, e)) throw new TypeError(`${t} must be ${$(e)}. Got ${$(r3)}`);
455
+ return true;
456
+ }
457
+ function X(r3, e) {
458
+ return e === String ? typeof r3 == "string" : e === Number ? typeof r3 == "number" && !isNaN(r3) : e === Boolean ? typeof r3 == "boolean" : e === Symbol ? typeof r3 == "symbol" : e === BigInt ? typeof r3 == "bigint" : e === Function ? typeof r3 == "function" : e === Array ? Array.isArray(r3) : e === Object ? r3 !== null && typeof r3 == "object" && !Array.isArray(r3) : r3 instanceof e;
459
+ }
460
+ function $(r3) {
461
+ return r3 === String ? "String" : r3 === Number ? "Number" : r3 === Boolean ? "Boolean" : r3 === Array ? "Array" : r3 === Object ? "Object" : r3 === Function ? "Function" : r3 === Date ? "Date" : r3 === RegExp ? "RegExp" : r3 === Promise ? "Promise" : r3 === Map ? "Map" : r3 === Set ? "Set" : r3 === WeakMap ? "WeakMap" : r3 === WeakSet ? "WeakSet" : r3 === Symbol ? "Symbol" : r3 === BigInt ? "BigInt" : r3 === Error ? "Error" : typeof r3 == "string" ? "string" : typeof r3 == "number" ? "number" : typeof r3 == "boolean" ? "boolean" : typeof r3 == "symbol" ? "symbol" : typeof r3 == "bigint" ? "bigint" : typeof r3 == "function" ? "function" : Array.isArray(r3) ? "Array" : r3 === null ? "null" : r3 === void 0 ? "undefined" : typeof r3 == "object" ? r3.constructor?.name || "Object" : "unknown";
462
+ }
463
+ function C(r3, e = "value") {
464
+ return (t) => F(t, r3, e);
465
+ }
466
+ var P = /* @__PURE__ */ new Map();
467
+ var L = /* @__PURE__ */ new WeakMap();
468
+ var x = (r3) => {
469
+ if (L.has(r3)) return L.get(r3);
470
+ };
471
+ var g = (r3, e = [], ...t) => {
472
+ let n = e.length > 0 ? C(e, "return value") : null;
473
+ if (P.has(r3)) return console.warn(`Definition type "${r3}" already exists`), P.get(r3);
474
+ let i = (...s) => {
475
+ if (s.length === 0) throw new Error("At least one argument is required");
476
+ let [o, c] = s, a = typeof o == "string" ? o : void 0, l2 = typeof o == "function" ? o : c;
477
+ C(Function, "factory")(l2);
478
+ let f = (...h) => {
479
+ try {
480
+ let u = l2.apply(null, [...h, ...t]);
481
+ if (n && u === void 0) throw new Error(`Factory ${r3} must return a value for ${a}`);
482
+ return n && n(u), u;
483
+ } catch (u) {
484
+ throw console.error(`Error creating definition "${a}"`, u), u;
485
+ }
486
+ };
487
+ return Object.defineProperty(f, "_name", { value: a, enumerable: false, configurable: false }), L.set(f, r3), f;
488
+ };
489
+ return P.set(r3, i), i;
490
+ };
491
+ var T = (r3) => r3 && r3.constructor && r3.constructor.name === "AsyncFunction";
492
+ var V = (r3, e) => T(e) || r3.some(T);
493
+ var _ = (r3, e) => e.length === 0 ? r3 : e.length === 1 && Array.isArray(e[0]) ? e[0] : e;
494
+ var I = (r3) => r3 ? Array.isArray(r3) ? r3 : [r3] : [];
495
+ var pe = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
496
+ var ye = /* @__PURE__ */ new Set(["use", "install", "uninstall", "relay", "state", "debug"]);
497
+ var k = 64;
498
+ var te = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
499
+ function ne(r3, e = "key") {
500
+ if (pe.has(r3)) throw new Error(`Illegal key "${r3}" in ${e}`);
501
+ }
502
+ function y(r3) {
503
+ if (ne(r3, "namespace"), typeof r3 != "string") throw new Error(`Namespace must be a string, got ${typeof r3}`);
504
+ if (!te.test(r3)) throw new Error(`Invalid namespace "${r3}". Must be a valid JS identifier`);
505
+ if (r3.length > k) throw new Error(`Namespace "${r3}" too long (max ${k} chars)`);
506
+ if (ye.has(r3)) throw new Error(`Namespace "${r3}" is reserved`);
507
+ return r3;
508
+ }
509
+ function re(r3) {
510
+ let e = r3?.manifest, t = e?.name ?? "<unknown service>";
511
+ if (!e?.namespace || typeof r3.install != "function") throw new Error(`${t} must have a namespace and install method`);
512
+ if (y(e.namespace), Object.prototype.hasOwnProperty.call(e, "default")) throw new Error(`Manifest for "${t}" has a "default" key \u2014 did you mean "defaults"?`);
513
+ if (e.defaults != null && (typeof e.defaults != "object" || Array.isArray(e.defaults))) throw new Error(`Manifest "defaults" for "${t}" must be a plain object`);
514
+ if (e.dependencies != null) {
515
+ if (!Array.isArray(e.dependencies)) throw new Error(`Manifest "dependencies" for "${t}" must be an array`);
516
+ for (let n of e.dependencies) if (!n?.manifest?.namespace || typeof n.install != "function") throw new Error(`Dependency of "${t}" is not an installable service (needs a manifest.namespace and install method)`);
517
+ }
518
+ return e;
519
+ }
520
+ function z(r3, e, t = "member") {
521
+ if (ne(r3, `${t}:${e}`), typeof r3 != "string") throw new Error(`${t} name in ${e} must be a string`);
522
+ if (!te.test(r3)) throw new Error(`Invalid ${t} name "${r3}" in ${e}`);
523
+ if (r3.length > k) throw new Error(`${t} name "${r3}" in ${e} too long (max ${k})`);
524
+ return r3;
525
+ }
526
+ function U(r3, e) {
527
+ if (!e || typeof e != "object") return e || r3;
528
+ if (!r3 || typeof r3 != "object") return e;
529
+ let t = { ...r3 };
530
+ for (let n in e) e.hasOwnProperty(n) && (e[n] && typeof e[n] == "object" && !Array.isArray(e[n]) && r3[n] && typeof r3[n] == "object" && !Array.isArray(r3[n]) ? t[n] = U(r3[n], e[n]) : t[n] = e[n]);
531
+ return t;
532
+ }
533
+ var B = () => {
534
+ let r3 = ["DEVELOPMENT", "TEST", "DEV"];
535
+ return typeof process < "u" && "production" ? r3.includes("production".toUpperCase()) : typeof globalThis < "u" && globalThis.__ENV__?.NODE_ENV ? r3.includes(globalThis.__ENV__.NODE_ENV.toUpperCase()) : false;
536
+ };
537
+ var O = (r3) => r3 != null && typeof r3.then == "function";
538
+ var ie = /* @__PURE__ */ new Set();
539
+ var _a4, _e4, _t4, _n3, _r, _i, _o, _s, _u, _f, _l, _d, _r_instances2, h_fn, w_fn, A_fn, E_fn, p_fn, x_fn, I_fn, T_fn, O_fn, M_fn, g_fn, S_fn, $_fn, C_fn, __fn, m_fn, y_fn, c_fn, b_fn, a_fn;
540
+ var G = (_a4 = class {
541
+ constructor(e = {}, t = _a4.options) {
542
+ __privateAdd(this, _r_instances2);
543
+ __privateAdd(this, _e4, /* @__PURE__ */ new WeakMap());
544
+ __privateAdd(this, _t4, /* @__PURE__ */ new WeakMap());
545
+ __privateAdd(this, _n3, /* @__PURE__ */ new WeakMap());
546
+ __privateAdd(this, _r, /* @__PURE__ */ new WeakMap());
547
+ __privateAdd(this, _i, /* @__PURE__ */ new WeakMap());
548
+ __privateAdd(this, _o, /* @__PURE__ */ new WeakMap());
549
+ __privateAdd(this, _s);
550
+ __privateAdd(this, _u, {});
551
+ __privateAdd(this, _f);
552
+ __privateAdd(this, _l);
553
+ __privateAdd(this, _d);
554
+ __privateSet(this, _s, { ..._a4.options, ...t }), __privateSet(this, _u, { ...e });
555
+ for (let [n, i] of Object.entries(__privateGet(this, _u))) Object.defineProperty(this, n, { value: i, enumerable: true, configurable: false, writable: false });
556
+ __privateSet(this, _d, m.create()), __privateSet(this, _f, w.create()), __privateSet(this, _l, E.create({ level: B() ? "debug" : "info", sinks: [R, D(2e3).sink] }));
557
+ }
558
+ static create(e = {}) {
559
+ return new _a4(e, _a4.options);
560
+ }
561
+ static configure(e) {
562
+ return e = { ..._a4.options, ...e }, { create: (t = {}) => new _a4(t, e) };
563
+ }
564
+ get cache() {
565
+ return __privateGet(this, _d);
566
+ }
567
+ get relay() {
568
+ return __privateGet(this, _f);
569
+ }
570
+ get log() {
571
+ return __privateGet(this, _l);
572
+ }
573
+ use(...e) {
574
+ return __privateMethod(this, _r_instances2, p_fn).call(this, e, this);
575
+ }
576
+ install(...e) {
577
+ return __privateMethod(this, _r_instances2, h_fn).call(this, this, e, /* @__PURE__ */ new Set());
578
+ }
579
+ uninstall(...e) {
580
+ return __privateMethod(this, _r_instances2, E_fn).call(this, this, e);
581
+ }
582
+ }, _e4 = new WeakMap(), _t4 = new WeakMap(), _n3 = new WeakMap(), _r = new WeakMap(), _i = new WeakMap(), _o = new WeakMap(), _s = new WeakMap(), _u = new WeakMap(), _f = new WeakMap(), _l = new WeakMap(), _d = new WeakMap(), _r_instances2 = new WeakSet(), h_fn = function(e, t, n = /* @__PURE__ */ new Set()) {
583
+ let i = [...t], s = () => {
584
+ for (; i.length > 0; ) {
585
+ let o = __privateMethod(this, _r_instances2, w_fn).call(this, e, i.shift(), n);
586
+ if (O(o)) return o.then(s);
587
+ }
588
+ return __privateMethod(this, _r_instances2, A_fn).call(this, e), e;
589
+ };
590
+ return s();
591
+ }, w_fn = function(e, t, n) {
592
+ re(t);
593
+ let i = t.manifest.namespace;
594
+ if (n.has(i)) throw new Error(`Circular service dependency: ${[...n, i].join(" -> ")}`);
595
+ if (Object.prototype.hasOwnProperty.call(e, i)) throw new Error(`${i} already exists`);
596
+ let s = U(__privateGet(this, _s) || {}, t.config || t.manifest.defaults || {}), o = __privateMethod(this, _r_instances2, c_fn).call(this, e, i), c = __privateMethod(this, _r_instances2, b_fn).call(this, e, i, o, s, t.manifest);
597
+ n.add(i);
598
+ let a = () => {
599
+ let l2 = __privateMethod(this, _r_instances2, a_fn).call(this, e, i, o, s, t.manifest), f = t.install(l2, s);
600
+ if (O(f)) return f.then((h) => {
601
+ __privateMethod(this, _r_instances2, p_fn).call(this, h, e), n.delete(i);
602
+ });
603
+ __privateMethod(this, _r_instances2, p_fn).call(this, f, e), n.delete(i);
604
+ };
605
+ if (t.manifest.dependencies?.length) {
606
+ let l2 = t.manifest.dependencies.filter((u) => u.unique), f = t.manifest.dependencies.filter((u) => !u.unique && !Object.prototype.hasOwnProperty.call(e, u.manifest.namespace)), h;
607
+ if (l2.length > 0 && (h = __privateMethod(this, _r_instances2, h_fn).call(this, c, l2, n)), f.length > 0 && (h = O(h) ? h.then(() => __privateMethod(this, _r_instances2, h_fn).call(this, e, f, n)) : __privateMethod(this, _r_instances2, h_fn).call(this, e, f, n)), O(h)) return h.then(a);
608
+ }
609
+ return a();
610
+ }, A_fn = function(e) {
611
+ let t = __privateGet(this, _i).get(e);
612
+ if (t?.size) {
613
+ for (let [n, i] of t) try {
614
+ i();
615
+ } finally {
616
+ t.delete(n);
617
+ }
618
+ __privateGet(this, _i).delete(e);
619
+ }
620
+ }, E_fn = function(e, t) {
621
+ let n = __privateGet(this, _o).get(e), i = __privateGet(this, _e4).get(e), s = __privateGet(this, _t4).get(e), o = __privateMethod(this, _r_instances2, y_fn).call(this, e);
622
+ for (let c of t) {
623
+ n?.get(c)?.(), n?.delete(c);
624
+ let a = i?.get(c);
625
+ if (a && __privateGet(this, _f).offAllFor(a), o?.delete(c), __privateGet(this, _i).get(e)?.delete(c), __privateGet(this, _r).get(e)?.delete(c), Object.prototype.hasOwnProperty.call(e, c) && delete e[c], i?.delete(c), s?.delete(c), s) for (let l2 of s.values()) Object.prototype.hasOwnProperty.call(l2, c) && delete l2[c];
626
+ }
627
+ return n && n.size === 0 && __privateGet(this, _o).delete(e), this;
628
+ }, p_fn = function(e, t = this) {
629
+ for (let n of e) if (n) switch (x(n)) {
630
+ case "MIDDLEWARE":
631
+ __privateMethod(this, _r_instances2, T_fn).call(this, n, t);
632
+ break;
633
+ case "GETTERS":
634
+ __privateMethod(this, _r_instances2, I_fn).call(this, n, t);
635
+ break;
636
+ case "ACTIONS":
637
+ __privateMethod(this, _r_instances2, x_fn).call(this, n, t);
638
+ break;
639
+ case "INITIALIZE":
640
+ __privateMethod(this, _r_instances2, O_fn).call(this, n, t);
641
+ break;
642
+ case "UNINSTALL":
643
+ __privateMethod(this, _r_instances2, M_fn).call(this, n, t);
644
+ break;
645
+ default:
646
+ throw new Error(`Unknown definition type: ${x(n)}`);
647
+ }
648
+ return this;
649
+ }, x_fn = function(e, t = this) {
650
+ let n = y(e._name), i = __privateMethod(this, _r_instances2, c_fn).call(this, t, n), s = __privateMethod(this, _r_instances2, a_fn).call(this, t, n, i), o = e(s), c = __privateMethod(this, _r_instances2, y_fn).call(this, t).get(n) || [];
651
+ for (let [l2, f] of Object.entries(o)) {
652
+ if (l2 = z(l2, n, "action"), Object.prototype.hasOwnProperty.call(i, l2)) throw new Error(`Action "${n}.${l2}" already exists on this target`);
653
+ let h = __privateMethod(this, _r_instances2, S_fn).call(this, n, l2, f, i);
654
+ if (c.length === 0) {
655
+ i[l2] = h;
656
+ continue;
657
+ }
658
+ let u = __privateMethod(this, _r_instances2, $_fn).call(this, c, h);
659
+ i[l2] = (...d) => u(l2, { namespace: n, action: l2, args: d });
660
+ }
661
+ let a = __privateGet(this, _r).get(t);
662
+ return a || (a = /* @__PURE__ */ new Set(), __privateGet(this, _r).set(t, a)), a.add(n), __privateMethod(this, _r_instances2, g_fn).call(this, t, n, i);
663
+ }, I_fn = function(e, t = this) {
664
+ let n = y(e._name), i = __privateMethod(this, _r_instances2, c_fn).call(this, t, n), s = __privateMethod(this, _r_instances2, a_fn).call(this, t, n, i), o = e(s);
665
+ for (let [c, a] of Object.entries(o)) {
666
+ z(c, n, "getter");
667
+ let l2 = a.bind(i);
668
+ Object.defineProperty(i, c, { get: () => l2(), enumerable: true, configurable: false });
669
+ }
670
+ return __privateMethod(this, _r_instances2, g_fn).call(this, t, n, i);
671
+ }, T_fn = function(e, t = this) {
672
+ let n = y(e._name);
673
+ if (__privateGet(this, _r).get(t)?.has(n)) throw new Error(`Middleware for "${n}" must be installed before its actions (middleware does not apply retroactively)`);
674
+ let i = __privateMethod(this, _r_instances2, c_fn).call(this, t, n), s = __privateMethod(this, _r_instances2, a_fn).call(this, t, n, i), o = e(s), c = __privateMethod(this, _r_instances2, y_fn).call(this, t), a = c.get(n) || [], l2 = I(o).map((f) => {
675
+ if (typeof f != "function") throw new Error("Middleware must be a function");
676
+ return f;
677
+ });
678
+ return c.set(n, a.concat(l2)), this;
679
+ }, O_fn = function(e, t = this) {
680
+ let n = y(e._name), i = __privateMethod(this, _r_instances2, c_fn).call(this, t, n), s = __privateMethod(this, _r_instances2, a_fn).call(this, t, n, i), o = () => e(s), c = __privateGet(this, _i).get(t);
681
+ return c || (c = /* @__PURE__ */ new Map(), __privateGet(this, _i).set(t, c)), c.set(n, o), this;
682
+ }, M_fn = function(e, t = this) {
683
+ let n = y(e._name), i = __privateMethod(this, _r_instances2, c_fn).call(this, t, n), s = __privateMethod(this, _r_instances2, a_fn).call(this, t, n, i), o = () => e(s), c = __privateGet(this, _o).get(t);
684
+ return c || (c = /* @__PURE__ */ new Map(), __privateGet(this, _o).set(t, c)), c.set(n, o), this;
685
+ }, g_fn = function(e, t, n) {
686
+ return Object.prototype.hasOwnProperty.call(e, t) ? n = e[t] : Object.defineProperty(e, t, { value: n, enumerable: true, configurable: true, writable: false }), __privateGet(this, _e4).get(e)?.set(t, n), e;
687
+ }, S_fn = function(e, t, n, i) {
688
+ let s = n.bind(i), o = (c) => {
689
+ throw c.action = t, c.namespace = e, __privateGet(this, _l).error(`Error in action "${e}.${t}"`, { error: c }), c;
690
+ };
691
+ return T(s) ? async (...c) => {
692
+ try {
693
+ return await s(...c);
694
+ } catch (a) {
695
+ o(a);
696
+ }
697
+ } : (...c) => {
698
+ try {
699
+ return s(...c);
700
+ } catch (a) {
701
+ o(a);
702
+ }
703
+ };
704
+ }, $_fn = function(e, t) {
705
+ return V(I(e), t) ? __privateMethod(this, _r_instances2, __fn).call(this, e, t) : __privateMethod(this, _r_instances2, C_fn).call(this, e, t);
706
+ }, C_fn = function(e, t) {
707
+ let n = I(e);
708
+ return (i, s) => {
709
+ let o = -1, c = (a, l2) => {
710
+ if (a <= o) throw new Error("next() called multiple times");
711
+ o = a;
712
+ let f = n[a];
713
+ if (!f) {
714
+ let u = t(...l2);
715
+ if (B() && O(u)) {
716
+ let d = `${s.namespace}.${i}`;
717
+ ie.has(d) || (ie.add(d), __privateGet(this, _l).warn(`Action "${d}" returned a Promise but is not declared async; its middleware composes synchronously, so code after next() runs before the action settles. Declare the action async to compose the chain asynchronously.`));
718
+ }
719
+ return u;
720
+ }
721
+ let h = { ...s, args: l2 };
722
+ return __privateMethod(this, _r_instances2, m_fn).call(this, f, i, h, (...u) => {
723
+ let d = _(l2, u);
724
+ return c(a + 1, d);
725
+ });
726
+ };
727
+ return c(0, s.args);
728
+ };
729
+ }, __fn = function(e, t) {
730
+ let n = I(e);
731
+ return async (i, s) => {
732
+ let o = -1, c = async (a, l2) => {
733
+ if (a <= o) throw new Error("next() called multiple times");
734
+ o = a;
735
+ let f = n[a];
736
+ if (!f) return await t(...l2);
737
+ let h = { ...s, args: l2 };
738
+ return await __privateMethod(this, _r_instances2, m_fn).call(this, f, i, h, (...u) => {
739
+ let d = _(l2, u);
740
+ return c(a + 1, d);
741
+ });
742
+ };
743
+ return c(0, s.args);
744
+ };
745
+ }, m_fn = function(e, t, n, i) {
746
+ try {
747
+ return e(t, n, i);
748
+ } catch (s) {
749
+ throw s.middleware = e.name || "<anon>", s.action = t, s;
750
+ }
751
+ }, y_fn = function(e) {
752
+ let t = __privateGet(this, _n3).get(e);
753
+ return t || (t = /* @__PURE__ */ new Map(), __privateGet(this, _n3).set(e, t)), t;
754
+ }, c_fn = function(e, t) {
755
+ let n = __privateGet(this, _e4).get(e);
756
+ if (n || (n = /* @__PURE__ */ new Map(), __privateGet(this, _e4).set(e, n)), n.has(t)) return n.get(t);
757
+ let i = /* @__PURE__ */ Object.create(null);
758
+ return n.set(t, i), i;
759
+ }, b_fn = function(e, t, n, i = __privateGet(this, _s) || {}, s = {}) {
760
+ let o = __privateGet(this, _t4).get(e);
761
+ if (o || (o = /* @__PURE__ */ new Map(), __privateGet(this, _t4).set(e, o)), o.has(t)) return o.get(t);
762
+ let c = { ...__privateGet(this, _u), log: __privateGet(this, _l).child({ ns: t }, s.log?.sinks || []), relay: __privateGet(this, _f).createChannel(n), cache: __privateGet(this, _d), config: i }, a = new Proxy(c, { get(l2, f, h) {
763
+ return f in l2 ? Reflect.get(l2, f, h) : Reflect.get(e, f, h);
764
+ }, has(l2, f) {
765
+ return f in l2 || f in e;
766
+ } });
767
+ return o.set(t, a), a;
768
+ }, a_fn = function(e, t, n, i = __privateGet(this, _s) || {}, s = {}) {
769
+ return (...o) => {
770
+ let c = __privateMethod(this, _r_instances2, b_fn).call(this, e, t, n, i, s);
771
+ if (!o || o.length === 0) return c;
772
+ if (o.length === 1) return c[o[0]];
773
+ let a = new Array(o.length);
774
+ for (let l2 = 0; l2 < o.length; l2++) a[l2] = c[o[l2]];
775
+ return a;
776
+ };
777
+ }, __publicField(_a4, "options", {}), _a4);
778
+ var W = g("MIDDLEWARE", [Function, Array]);
779
+ var q = g("ACTIONS", [Object]);
780
+ var Y = g("UNINSTALL");
781
+ var Z = g("INITIALIZE");
782
+ var J = g("GETTERS", [Object]);
783
+ var _e5, _t5, _n4, _r_instances3, r_fn2, _a5;
784
+ var N = (_a5 = class {
785
+ constructor(e) {
786
+ __privateAdd(this, _r_instances3);
787
+ __privateAdd(this, _e5);
788
+ __privateAdd(this, _t5);
789
+ __privateAdd(this, _n4, { MIDDLEWARE: null, GETTERS: null, ACTIONS: null, INITIALIZE: null, UNINSTALL: null });
790
+ __publicField(this, "defineMiddleware", (e) => __privateMethod(this, _r_instances3, r_fn2).call(this, "MIDDLEWARE", e, W));
791
+ __publicField(this, "defineGetters", (e) => __privateMethod(this, _r_instances3, r_fn2).call(this, "GETTERS", e, J));
792
+ __publicField(this, "defineActions", (e) => __privateMethod(this, _r_instances3, r_fn2).call(this, "ACTIONS", e, q));
793
+ __publicField(this, "defineInitialize", (e) => __privateMethod(this, _r_instances3, r_fn2).call(this, "INITIALIZE", e, Z));
794
+ __publicField(this, "defineUninstall", (e) => __privateMethod(this, _r_instances3, r_fn2).call(this, "UNINSTALL", e, Y));
795
+ __privateSet(this, _e5, e);
796
+ }
797
+ static create(e) {
798
+ return new _a5(e);
799
+ }
800
+ _toArray() {
801
+ return [__privateGet(this, _n4).MIDDLEWARE, __privateGet(this, _n4).GETTERS, __privateGet(this, _n4).ACTIONS, __privateGet(this, _n4).INITIALIZE, __privateGet(this, _n4).UNINSTALL].filter(Boolean);
802
+ }
803
+ }, _e5 = new WeakMap(), _t5 = new WeakMap(), _n4 = new WeakMap(), _r_instances3 = new WeakSet(), r_fn2 = function(e, t, n) {
804
+ if (__privateGet(this, _n4)[e]) throw new Error(`${e} already defined for ${__privateGet(this, _e5)}`);
805
+ __privateGet(this, _n4)[e] = n(__privateGet(this, _e5), t);
806
+ }, _a5);
807
+ var _a6;
808
+ var v = (_a6 = class {
809
+ static configure(e = {}) {
810
+ return { install: (t, n) => this.install(t, n), manifest: this.manifest, config: { ...this.config || this.manifest.defaults || {}, ...e }, unique: true, configured: true };
811
+ }
812
+ static install(e, t) {
813
+ let { namespace: n } = this.manifest;
814
+ y(n);
815
+ let i = new this();
816
+ Object.defineProperty(i, "config", { value: Object.freeze({ ...t }), writable: false, configurable: false, enumerable: false }), Object.defineProperty(i, "inject", { value: (...o) => e(...o), writable: false, configurable: false, enumerable: false });
817
+ let s = N.create(n);
818
+ if (i.setup) {
819
+ let o = { defineActions: (a) => s.defineActions(() => a(e, t)), defineMiddleware: (a) => s.defineMiddleware(() => a(e, t)), defineGetters: (a) => s.defineGetters(() => a(e, t)), defineInitialize: (a) => s.defineInitialize(() => a(e, t)), defineUninstall: (a) => s.defineUninstall(() => a(e, t)) }, c = i.setup(o);
820
+ return c?.then ? c.then(() => s._toArray()) : s._toArray();
821
+ }
822
+ return i.middleware && s.defineMiddleware(() => i.middleware(e, t)), i.getters && s.defineGetters(() => i.getters(e, t)), i.actions && s.defineActions(() => i.actions(e, t)), i.initialize && s.defineInitialize(() => i.initialize(e, t)), i.uninstall && s.defineUninstall(() => i.uninstall(e, t)), s._toArray();
823
+ }
824
+ }, __publicField(_a6, "manifest", { name: "base", dependencies: [], version: "1.0.0", description: "Base extension template" }), __publicField(_a6, "config", null), __publicField(_a6, "unique", false), _a6);
825
+ var M = Symbol("jucie.engine");
826
+
827
+ // ../../node_modules/nanoid/index.browser.js
828
+ var nanoid = (size = 21) => crypto.getRandomValues(new Uint8Array(size)).reduce((id, byte) => {
829
+ byte &= 63;
830
+ if (byte < 36) {
831
+ id += byte.toString(36);
832
+ } else if (byte < 62) {
833
+ id += (byte - 26).toString(36).toUpperCase();
834
+ } else if (byte > 62) {
835
+ id += "-";
836
+ } else {
837
+ id += "_";
838
+ }
839
+ return id;
840
+ }, "");
841
+
842
+ // ../../node_modules/@jucie.io/engine-message/dist/main.js
843
+ var b2 = ((i) => typeof __require < "u" ? __require : typeof Proxy < "u" ? new Proxy(i, { get: (e, t) => (typeof __require < "u" ? __require : e)[t] }) : i)(function(i) {
844
+ if (typeof __require < "u") return __require.apply(this, arguments);
845
+ throw Error('Dynamic require of "' + i + '" is not supported');
846
+ });
847
+ var A2 = (i, e) => setTimeout(() => {
848
+ i(new Error("Timeout waiting for connect"));
849
+ }, e);
850
+ function w2(i) {
851
+ return i != null && typeof i.postMessage == "function";
852
+ }
853
+ function P2(i) {
854
+ return typeof i?.on == "function" && typeof i?.removeListener == "function" && !("onmessage" in i);
855
+ }
856
+ function v2(i) {
857
+ return i != null && typeof i == "object" && "data" in i ? { data: i.data } : { data: i };
858
+ }
859
+ function N2(i) {
860
+ if (!i || !P2(i)) return i;
861
+ let e = null, t = null, r3 = null, s = (n, o) => {
862
+ if (o) try {
863
+ i.removeListener(n, o);
864
+ } catch {
865
+ }
866
+ return null;
867
+ };
868
+ return { postMessage(...n) {
869
+ return i.postMessage(...n);
870
+ }, start() {
871
+ typeof i.start == "function" && i.start();
872
+ }, close() {
873
+ e = s("message", e), t = s("error", t), r3 = s("close", r3), typeof i.close == "function" && i.close();
874
+ }, set onmessage(n) {
875
+ e = s("message", e), typeof n == "function" && (e = (o) => n(v2(o)), i.on("message", e));
876
+ }, get onmessage() {
877
+ return e;
878
+ }, set onerror(n) {
879
+ t = s("error", t), typeof n == "function" && (t = n, i.on("error", t));
880
+ }, get onerror() {
881
+ return t;
882
+ }, set onclose(n) {
883
+ r3 = s("close", r3), typeof n == "function" && (r3 = n, i.on("close", r3));
884
+ }, get onclose() {
885
+ return r3;
886
+ } };
887
+ }
888
+ var _a7, _e6, _t6, _i2, _a8, _s2, _n5, _r2, _h, _i_instances, c_fn2, E_fn2, o_fn2, p_fn2, u_fn, l_fn, f_fn, d_fn, S_fn2, w_fn2, m_fn2, g_fn2;
889
+ var p2 = (_a7 = class {
890
+ constructor(e, t = nanoid(), r3 = {}) {
891
+ __privateAdd(this, _i_instances);
892
+ __privateAdd(this, _e6, null);
893
+ __privateAdd(this, _t6, false);
894
+ __privateAdd(this, _i2, null);
895
+ __privateAdd(this, _a8, false);
896
+ __privateAdd(this, _s2, null);
897
+ __privateAdd(this, _n5, /* @__PURE__ */ new Map());
898
+ __privateAdd(this, _r2, /* @__PURE__ */ new Map());
899
+ __privateAdd(this, _h, 1e3);
900
+ if (__privateSet(this, _h, r3.timeoutMs ?? 1e3), e = N2(e), e) {
901
+ if (typeof e.postMessage != "function") throw new Error("Port must be an object with postMessage");
902
+ __privateSet(this, _e6, e), __privateSet(this, _i2, t), __privateGet(this, _e6).onmessage = (s) => __privateMethod(this, _i_instances, f_fn).call(this, s), __privateGet(this, _e6).onerror = (s) => __privateMethod(this, _i_instances, g_fn2).call(this, s), __privateMethod(this, _i_instances, o_fn2).call(this), __privateSet(this, _t6, true), typeof __privateGet(this, _e6).start == "function" && __privateGet(this, _e6).start();
903
+ }
904
+ }
905
+ static get EVENTS() {
906
+ return { CONNECT: "CONNECT", CONFIRM_CONNECT: "CONFIRM_CONNECT", DISCONNECT: "DISCONNECT", RESPONSE: "RESPONSE", ENABLE: "ENABLE", ERROR: "ERROR", MESSAGE: "MESSAGE", GATHER: "GATHER", WARNING: "WARNING", INFO: "INFO", DEBUG: "DEBUG", TRACE: "TRACE" };
907
+ }
908
+ get enabled() {
909
+ return __privateGet(this, _t6);
910
+ }
911
+ static connect({ port: e, options: t = {} }) {
912
+ t = { ..._a7.defaultOptions, ...t }, e = N2(e);
913
+ let r3 = nanoid();
914
+ return new Promise((s, n) => {
915
+ let o = 0, c = null, a = false, u = () => {
916
+ c && clearTimeout(c);
917
+ try {
918
+ e.onmessage = null;
919
+ } catch {
920
+ }
921
+ try {
922
+ e.onerror = null;
923
+ } catch {
924
+ }
925
+ };
926
+ if (t.primary) {
927
+ if (e.onmessage = (h) => {
928
+ let d = h?.data;
929
+ if (!Array.isArray(d) || d.length < 2) return;
930
+ let [E2, f] = d;
931
+ if (E2 === _a7.EVENTS.CONNECT) try {
932
+ e.postMessage([_a7.EVENTS.CONFIRM_CONNECT, { rid: f?.rid, sid: f?.sid }]), a = true, u(), s(new _a7(e, f?.sid, { timeoutMs: t.timeoutMs }));
933
+ } catch (m2) {
934
+ u(), n(m2);
935
+ }
936
+ }, e.onerror = (h) => {
937
+ a || (a = true, u(), n(h));
938
+ }, typeof e.start == "function") try {
939
+ e.start();
940
+ } catch {
941
+ }
942
+ } else {
943
+ let h = () => {
944
+ if (o >= t.maxRetries) {
945
+ a || (u(), n(new Error("Max retries reached")));
946
+ return;
947
+ }
948
+ let E2 = Math.min(t.baseDelay * 2 ** o, t.maxDelay), f = Math.floor(E2 * t.jitter * Math.random());
949
+ c = setTimeout(d, E2 + f);
950
+ }, d = () => {
951
+ o += 1;
952
+ try {
953
+ e.postMessage([_a7.EVENTS.CONNECT, { rid: nanoid(), sid: r3 }]);
954
+ } catch (E2) {
955
+ u(), n(E2);
956
+ return;
957
+ }
958
+ h();
959
+ };
960
+ if (e.onmessage = (E2) => {
961
+ let f = E2?.data;
962
+ if (!Array.isArray(f) || f.length < 2) return;
963
+ let [m2, S2] = f;
964
+ if (!(!S2?.sid || !S2?.rid)) switch (m2) {
965
+ case _a7.EVENTS.CONFIRM_CONNECT: {
966
+ if (a) return;
967
+ a = true, u(), s(new _a7(e, S2?.sid, { timeoutMs: t.timeoutMs }));
968
+ break;
969
+ }
970
+ case _a7.EVENTS.ERROR: {
971
+ if (a) return;
972
+ a = true, u(), n(new Error("Handshake error"));
973
+ break;
974
+ }
975
+ default:
976
+ break;
977
+ }
978
+ }, e.onerror = (E2) => {
979
+ a || (a = true, u(), n(E2));
980
+ }, typeof e.start == "function") try {
981
+ e.start();
982
+ } catch {
983
+ }
984
+ d();
985
+ }
986
+ });
987
+ }
988
+ get sid() {
989
+ return __privateGet(this, _i2);
990
+ }
991
+ close() {
992
+ __privateGet(this, _a8) || (__privateSet(this, _a8, true), console.warn(`[Port] close() \u2014 sid: ${__privateGet(this, _i2)}, pending: ${__privateGet(this, _n5).size}, enabled: ${__privateGet(this, _t6)}`), __privateMethod(this, _i_instances, m_fn2).call(this, _a7.EVENTS.DISCONNECT, { sid: __privateGet(this, _i2) }), __privateMethod(this, _i_instances, E_fn2).call(this));
993
+ }
994
+ emit(e) {
995
+ return __privateGet(this, _e6) ? __privateGet(this, _t6) ? __privateMethod(this, _i_instances, u_fn).call(this, e) : Promise.resolve(null) : Promise.reject(new Error("No port available"));
996
+ }
997
+ request(e, t) {
998
+ return __privateGet(this, _e6) ? __privateGet(this, _t6) ? __privateMethod(this, _i_instances, l_fn).call(this, _a7.EVENTS.MESSAGE, e, t) : Promise.resolve(null) : Promise.reject(new Error("No port available"));
999
+ }
1000
+ gather(e, t) {
1001
+ return __privateGet(this, _e6) ? __privateGet(this, _t6) ? __privateMethod(this, _i_instances, l_fn).call(this, _a7.EVENTS.GATHER, e, t) : Promise.resolve(null) : Promise.reject(new Error("No port available"));
1002
+ }
1003
+ async enable() {
1004
+ return __privateGet(this, _e6) ? (__privateSet(this, _t6, await __privateMethod(this, _i_instances, l_fn).call(this, _a7.EVENTS.ENABLE, true)), __privateGet(this, _t6)) : Promise.reject(new Error("No port available"));
1005
+ }
1006
+ async disable() {
1007
+ return __privateGet(this, _e6) ? (__privateSet(this, _t6, await __privateMethod(this, _i_instances, l_fn).call(this, _a7.EVENTS.ENABLE, false)), __privateGet(this, _t6)) : Promise.reject(new Error("No port available"));
1008
+ }
1009
+ onMessage(e) {
1010
+ if (typeof e != "function") throw new Error("Listener must be a function");
1011
+ if (__privateGet(this, _r2).has(_a7.EVENTS.MESSAGE)) throw new Error("A listener is already registered. Remove the existing listener before adding a new one.");
1012
+ return __privateGet(this, _r2).set(_a7.EVENTS.MESSAGE, e), () => {
1013
+ __privateGet(this, _r2).get(_a7.EVENTS.MESSAGE) === e && __privateGet(this, _r2).delete(_a7.EVENTS.MESSAGE);
1014
+ };
1015
+ }
1016
+ onEnable(e) {
1017
+ if (typeof e != "function") throw new Error("Listener must be a function");
1018
+ return __privateGet(this, _r2).set(_a7.EVENTS.ENABLE, e), () => __privateGet(this, _r2).delete(_a7.EVENTS.ENABLE);
1019
+ }
1020
+ onError(e) {
1021
+ if (typeof e != "function") throw new Error("Listener must be a function");
1022
+ if (__privateGet(this, _r2).has(_a7.EVENTS.ERROR)) throw new Error("A listener is already registered. Remove the existing listener before adding a new one.");
1023
+ return __privateGet(this, _r2).set(_a7.EVENTS.ERROR, e), () => __privateGet(this, _r2).delete(_a7.EVENTS.ERROR);
1024
+ }
1025
+ onDisconnect(e) {
1026
+ if (typeof e != "function") throw new Error("Listener must be a function");
1027
+ return __privateGet(this, _r2).set(_a7.EVENTS.DISCONNECT, e), () => __privateGet(this, _r2).delete(_a7.EVENTS.DISCONNECT);
1028
+ }
1029
+ }, _e6 = new WeakMap(), _t6 = new WeakMap(), _i2 = new WeakMap(), _a8 = new WeakMap(), _s2 = new WeakMap(), _n5 = new WeakMap(), _r2 = new WeakMap(), _h = new WeakMap(), _i_instances = new WeakSet(), c_fn2 = function(e) {
1030
+ if (__privateGet(this, _a8)) return;
1031
+ __privateSet(this, _a8, true), console.warn(`[Port] disconnect detected \u2014 sid: ${__privateGet(this, _i2)}, reason: ${e}`);
1032
+ let t = __privateGet(this, _r2).get(_a7.EVENTS.DISCONNECT);
1033
+ if (__privateMethod(this, _i_instances, E_fn2).call(this), t) try {
1034
+ t(e);
1035
+ } catch (r3) {
1036
+ console.error("Port onDisconnect listener error:", r3);
1037
+ }
1038
+ }, E_fn2 = function() {
1039
+ __privateGet(this, _e6) && (__privateMethod(this, _i_instances, p_fn2).call(this), __privateGet(this, _e6).onmessage = null, __privateGet(this, _e6).onerror = null, typeof __privateGet(this, _e6).stop == "function" && __privateGet(this, _e6).stop(), typeof __privateGet(this, _e6).close == "function" && __privateGet(this, _e6).close());
1040
+ for (let [e, t] of __privateGet(this, _n5)) console.warn(`[Port] rejecting pending rid=${e}`), t.timeout && clearTimeout(t.timeout), t.reject?.(new Error("Port closed"));
1041
+ __privateGet(this, _n5).clear(), __privateSet(this, _e6, null), __privateSet(this, _t6, false), __privateGet(this, _r2).clear();
1042
+ }, o_fn2 = function() {
1043
+ let e = __privateGet(this, _e6);
1044
+ if (!e) return;
1045
+ let t = () => __privateMethod(this, _i_instances, c_fn2).call(this, "peer-lost");
1046
+ try {
1047
+ "onclose" in e ? e.onclose = t : typeof e.addEventListener == "function" ? (e.addEventListener("close", t), __privateSet(this, _s2, t)) : typeof e.on == "function" && (e.on("close", t), __privateSet(this, _s2, t));
1048
+ } catch {
1049
+ }
1050
+ }, p_fn2 = function() {
1051
+ let e = __privateGet(this, _e6);
1052
+ if (e) try {
1053
+ __privateGet(this, _s2) ? (typeof e.removeEventListener == "function" ? e.removeEventListener("close", __privateGet(this, _s2)) : typeof e.removeListener == "function" && e.removeListener("close", __privateGet(this, _s2)), __privateSet(this, _s2, null)) : "onclose" in e && (e.onclose = null);
1054
+ } catch {
1055
+ }
1056
+ }, u_fn = function(e) {
1057
+ try {
1058
+ return __privateMethod(this, _i_instances, m_fn2).call(this, _a7.EVENTS.MESSAGE, { sid: __privateGet(this, _i2), rid: null, payload: e });
1059
+ } catch (t) {
1060
+ return Promise.reject(t);
1061
+ }
1062
+ }, l_fn = function(e, t, r3 = __privateGet(this, _h)) {
1063
+ return new Promise((s, n) => {
1064
+ try {
1065
+ let o = nanoid(), c = A2(() => {
1066
+ __privateGet(this, _n5).delete(o);
1067
+ let a = Array.isArray(t) ? t[1] : e;
1068
+ console.warn(`[Port] request TIMEOUT \u2014 sid: ${__privateGet(this, _i2)}, rid: ${o}, event: ${a}, ms: ${r3}`), n(new Error("Request timeout"));
1069
+ }, r3);
1070
+ __privateGet(this, _n5).set(o, { resolve: s, reject: n, timeout: c }), __privateMethod(this, _i_instances, m_fn2).call(this, e, { sid: __privateGet(this, _i2), rid: o, payload: t });
1071
+ } catch (o) {
1072
+ n(o);
1073
+ }
1074
+ });
1075
+ }, f_fn = function(e) {
1076
+ let t = e?.data;
1077
+ if (!Array.isArray(t) || t.length < 2) return;
1078
+ let [r3, s] = t || [];
1079
+ if (!(s?.sid && s.sid !== __privateGet(this, _i2))) switch (r3) {
1080
+ case _a7.EVENTS.RESPONSE:
1081
+ __privateMethod(this, _i_instances, S_fn2).call(this, s?.rid, s?.payload, "resolve");
1082
+ return;
1083
+ case _a7.EVENTS.ERROR:
1084
+ let n = s?.payload instanceof Error ? s.payload.message : String(s?.payload);
1085
+ __privateMethod(this, _i_instances, S_fn2).call(this, s?.rid, new Error(n), "reject");
1086
+ return;
1087
+ case _a7.EVENTS.MESSAGE:
1088
+ __privateMethod(this, _i_instances, d_fn).call(this, s?.rid, s?.payload, false);
1089
+ return;
1090
+ case _a7.EVENTS.GATHER:
1091
+ __privateMethod(this, _i_instances, d_fn).call(this, s?.rid, s?.payload, true);
1092
+ return;
1093
+ case _a7.EVENTS.ENABLE:
1094
+ __privateMethod(this, _i_instances, w_fn2).call(this, s?.rid, s?.payload);
1095
+ return;
1096
+ case _a7.EVENTS.DISCONNECT:
1097
+ __privateMethod(this, _i_instances, c_fn2).call(this, "closed");
1098
+ return;
1099
+ default:
1100
+ return;
1101
+ }
1102
+ }, d_fn = async function(e, t, r3 = false) {
1103
+ try {
1104
+ let s = __privateGet(this, _r2).get(_a7.EVENTS.MESSAGE), n = s ? await s(t, { isRequest: !!e, isGather: r3 }) : null;
1105
+ return e ? __privateMethod(this, _i_instances, m_fn2).call(this, _a7.EVENTS.RESPONSE, { rid: e, payload: n ?? null }) : void 0;
1106
+ } catch (s) {
1107
+ let n = s instanceof Error ? s.message : String(s);
1108
+ __privateMethod(this, _i_instances, m_fn2).call(this, _a7.EVENTS.ERROR, { rid: e, payload: n });
1109
+ }
1110
+ }, S_fn2 = function(e, t, r3) {
1111
+ let s = __privateGet(this, _n5).get(e);
1112
+ s && (s.timeout && clearTimeout(s.timeout), __privateGet(this, _n5).delete(e), r3 === "resolve" ? s.resolve(t) : s.reject(t));
1113
+ }, w_fn2 = function(e, t) {
1114
+ __privateSet(this, _t6, t);
1115
+ let r3 = __privateGet(this, _r2).get(_a7.EVENTS.ENABLE);
1116
+ return r3 && r3(t), __privateMethod(this, _i_instances, m_fn2).call(this, _a7.EVENTS.RESPONSE, { rid: e, payload: t });
1117
+ }, m_fn2 = function(e, t) {
1118
+ if (!__privateGet(this, _e6)) return console.warn(`[Port] #postMessage but port is null \u2014 type: ${e}, sid: ${__privateGet(this, _i2)}`), false;
1119
+ try {
1120
+ __privateGet(this, _e6).postMessage([e, t]);
1121
+ } catch (r3) {
1122
+ return console.error(`[Port] #postMessage FAILED \u2014 type: ${e}, sid: ${__privateGet(this, _i2)}`, r3.message), r3?.name !== "DataCloneError" && __privateMethod(this, _i_instances, c_fn2).call(this, "peer-lost"), false;
1123
+ }
1124
+ return true;
1125
+ }, g_fn2 = function(e) {
1126
+ console.error("onerror", e);
1127
+ }, __publicField(_a7, "defaultOptions", { primary: false, maxRetries: 10, baseDelay: 200, maxDelay: 2e3, jitter: 0.2, timeoutMs: 1e3 }), _a7);
1128
+ var l = { HANDSHAKE: "HANDSHAKE", MESSAGE: "MESSAGE", GATHER: "GATHER", SUBSCRIBE: "SUBSCRIBE", UNSUBSCRIBE: "UNSUBSCRIBE", SYNC: "SYNC" };
1129
+ var L2 = g("channelContracts", [Object]);
1130
+ var _e7, _t7, _i3, _a9, _s3, _n6, _r3, _h2, _c, _E, _o2, _a10, _T_instances, p_fn3, u_fn2, l_fn2, f_fn2, d_fn2, S_fn3, w_fn3, _m, _g, _y, b_fn2, N_fn, C_fn2;
1131
+ var T2 = (_a10 = class extends v {
1132
+ constructor() {
1133
+ super(...arguments);
1134
+ __privateAdd(this, _T_instances);
1135
+ __privateAdd(this, _e7, null);
1136
+ __privateAdd(this, _t7, null);
1137
+ __privateAdd(this, _i3, 1e3);
1138
+ __privateAdd(this, _a9, /* @__PURE__ */ new Map());
1139
+ __privateAdd(this, _s3, /* @__PURE__ */ new Map());
1140
+ __privateAdd(this, _n6, []);
1141
+ __privateAdd(this, _r3, false);
1142
+ __privateAdd(this, _h2, null);
1143
+ __privateAdd(this, _c, false);
1144
+ __privateAdd(this, _E, null);
1145
+ __privateAdd(this, _o2, { enable: /* @__PURE__ */ new Set(), disable: /* @__PURE__ */ new Set(), connect: /* @__PURE__ */ new Set(), disconnect: /* @__PURE__ */ new Set() });
1146
+ __privateAdd(this, _m, async ([e, t, r3, s, n]) => {
1147
+ let o = [];
1148
+ switch (e) {
1149
+ case l.MESSAGE:
1150
+ let c = __privateGet(this, _s3).get(t);
1151
+ if (c) for (let a of c) {
1152
+ if (!__privateMethod(this, _T_instances, C_fn2).call(this, t, r3, a.schema)) continue;
1153
+ let u = await a.subscriber(...r3);
1154
+ o.push(u), a.once && __privateGet(this, _s3).get(t).delete(a);
1155
+ }
1156
+ break;
1157
+ case l.SUBSCRIBE:
1158
+ case l.UNSUBSCRIBE:
1159
+ r3 != null ? __privateGet(this, _a9).set(t, r3) : __privateGet(this, _a9).delete(t);
1160
+ break;
1161
+ }
1162
+ return o.length > 0 ? o[0] : null;
1163
+ });
1164
+ __privateAdd(this, _g, (e, t, r3) => {
1165
+ switch (e) {
1166
+ case "ENABLE":
1167
+ t === true ? __privateGet(this, _o2).enable.forEach((s) => s(r3)) : __privateGet(this, _o2).disable.forEach((s) => s(r3));
1168
+ break;
1169
+ case "CONNECT":
1170
+ __privateGet(this, _o2).connect.forEach((s) => s(r3));
1171
+ break;
1172
+ }
1173
+ });
1174
+ __privateAdd(this, _y, (e) => {
1175
+ console.error("Channel error:", e);
1176
+ });
1177
+ }
1178
+ initialize(e, t) {
1179
+ if (t.port != null && !w2(t.port)) throw new Error("Configured port must have postMessage");
1180
+ if (__privateSet(this, _t7, t.port), __privateSet(this, _i3, t.timeout ?? 1e3), t.subscriptions && t.subscriptions.length) for (let r3 of t.subscriptions) __privateGet(this, _n6).push(r3);
1181
+ }
1182
+ actions() {
1183
+ let e = { ready: () => __privateGet(this, _r3), portProvider: (t) => {
1184
+ if (typeof t != "function") throw new Error("portProvider must be a function");
1185
+ return __privateSet(this, _h2, t), e;
1186
+ }, connect: async (t, r3) => {
1187
+ try {
1188
+ if (__privateSet(this, _t7, t ?? __privateGet(this, _t7)), !w2(__privateGet(this, _t7))) throw new Error("Message port is required");
1189
+ if (r3 && typeof r3 == "function" && __privateGet(this, _o2).connect.add(r3), __privateGet(this, _e7)) {
1190
+ let n = __privateGet(this, _e7);
1191
+ __privateSet(this, _e7, null), __privateSet(this, _r3, false), n.close();
1192
+ }
1193
+ __privateSet(this, _e7, await p2.connect({ port: __privateGet(this, _t7), options: { timeoutMs: __privateGet(this, _i3) } }));
1194
+ let s = __privateGet(this, _e7);
1195
+ s.onMessage(async (n) => await __privateGet(this, _m).call(this, n)), s.onEnable((n) => __privateGet(this, _g).call(this, "ENABLE", n, e)), s.onError(__privateGet(this, _y)), s.onDisconnect((n) => {
1196
+ __privateGet(this, _e7) === s && __privateMethod(this, _T_instances, b_fn2).call(this, n);
1197
+ }), __privateSet(this, _r3, true);
1198
+ for (let [n, o] of __privateGet(this, _s3)) {
1199
+ let c;
1200
+ for (let a of o) a.timeoutMs !== void 0 && (c === void 0 || a.timeoutMs > c) && (c = a.timeoutMs);
1201
+ __privateGet(this, _e7).emit([l.SUBSCRIBE, n, c]);
1202
+ }
1203
+ if (__privateGet(this, _n6).length > 0) {
1204
+ let n = __privateGet(this, _n6);
1205
+ __privateSet(this, _n6, []);
1206
+ for (let o of n) __privateMethod(this, _T_instances, p_fn3).call(this, o);
1207
+ }
1208
+ return await __privateMethod(this, _T_instances, w_fn3).call(this), __privateGet(this, _g).call(this, "CONNECT", true, e), e;
1209
+ } catch (s) {
1210
+ return console.error("Channel error:", s), false;
1211
+ }
1212
+ }, onEnable: (t) => {
1213
+ if (typeof t != "function") throw new Error("Listener must be a function");
1214
+ return __privateGet(this, _o2).enable.add(t), () => __privateGet(this, _o2).enable.delete(t);
1215
+ }, onDisable: (t) => {
1216
+ if (typeof t != "function") throw new Error("Listener must be a function");
1217
+ return __privateGet(this, _o2).disable.add(t), () => __privateGet(this, _o2).disable.delete(t);
1218
+ }, onDisconnect: (t) => {
1219
+ if (typeof t != "function") throw new Error("Listener must be a function");
1220
+ return __privateGet(this, _o2).disconnect.add(t), () => __privateGet(this, _o2).disconnect.delete(t);
1221
+ }, disconnect: () => {
1222
+ if (__privateGet(this, _e7)) {
1223
+ __privateGet(this, _o2).disconnect.forEach((t) => t("closed", e));
1224
+ for (let t of __privateGet(this, _s3).keys()) __privateGet(this, _e7).emit([l.UNSUBSCRIBE, t]);
1225
+ __privateGet(this, _e7).close(), __privateSet(this, _e7, null), __privateSet(this, _r3, false), __privateGet(this, _s3).clear(), __privateGet(this, _a9).clear(), __privateSet(this, _n6, []);
1226
+ }
1227
+ }, use: (...t) => {
1228
+ if (__privateGet(this, _r3)) {
1229
+ for (let r3 of t) __privateMethod(this, _T_instances, p_fn3).call(this, r3);
1230
+ return e;
1231
+ }
1232
+ for (let r3 of t) __privateGet(this, _n6).push(r3);
1233
+ return e;
1234
+ }, publish: (t, ...r3) => (__privateMethod(this, _T_instances, f_fn2).call(this, l.MESSAGE, t, r3), e), request: (t, ...r3) => __privateMethod(this, _T_instances, d_fn2).call(this, l.MESSAGE, t, r3), gather: (t, ...r3) => __privateMethod(this, _T_instances, S_fn3).call(this, l.GATHER, t, r3), subscribe: (t, r3) => __privateMethod(this, _T_instances, u_fn2).call(this, t, void 0, r3, false), subscribeOnce: (t, r3) => __privateMethod(this, _T_instances, u_fn2).call(this, t, void 0, r3, true), unsubscribe: (t, r3) => __privateMethod(this, _T_instances, l_fn2).call(this, t, r3), to: (...t) => ({ publish: (r3, ...s) => {
1235
+ __privateMethod(this, _T_instances, f_fn2).call(this, l.MESSAGE, r3, s, t);
1236
+ }, request: (r3, ...s) => __privateMethod(this, _T_instances, d_fn2).call(this, l.MESSAGE, r3, s, t), gather: (r3, ...s) => __privateMethod(this, _T_instances, S_fn3).call(this, l.GATHER, r3, s, t) }), namespace: (t) => ({ publish: (r3, ...s) => {
1237
+ let n = t ? `${t}/${r3}` : r3;
1238
+ return __privateMethod(this, _T_instances, f_fn2).call(this, l.MESSAGE, n, s), e;
1239
+ }, request: (r3, ...s) => {
1240
+ let n = t ? `${t}/${r3}` : r3;
1241
+ return __privateMethod(this, _T_instances, d_fn2).call(this, l.MESSAGE, n, s);
1242
+ }, gather: (r3, ...s) => {
1243
+ let n = t ? `${t}/${r3}` : r3;
1244
+ return __privateMethod(this, _T_instances, S_fn3).call(this, l.GATHER, n, s);
1245
+ }, subscribe: (r3, s) => {
1246
+ let n = t ? `${t}/${r3}` : r3;
1247
+ return __privateMethod(this, _T_instances, u_fn2).call(this, n, void 0, s, false), e;
1248
+ }, subscribeOnce: (r3, s) => {
1249
+ let n = t ? `${t}/${r3}` : r3;
1250
+ return __privateMethod(this, _T_instances, u_fn2).call(this, n, void 0, s, true), e;
1251
+ }, unsubscribe: (r3, s) => {
1252
+ let n = t ? `${t}/${r3}` : r3;
1253
+ return __privateMethod(this, _T_instances, l_fn2).call(this, n, s), e;
1254
+ } }) };
1255
+ return __privateSet(this, _E, e), e;
1256
+ }
1257
+ }, _e7 = new WeakMap(), _t7 = new WeakMap(), _i3 = new WeakMap(), _a9 = new WeakMap(), _s3 = new WeakMap(), _n6 = new WeakMap(), _r3 = new WeakMap(), _h2 = new WeakMap(), _c = new WeakMap(), _E = new WeakMap(), _o2 = new WeakMap(), _T_instances = new WeakSet(), p_fn3 = function(e) {
1258
+ if (e && typeof e == "function") {
1259
+ let t = e._name, r3 = e(this.inject), s = Object.entries(r3);
1260
+ for (let [n, o] of s) {
1261
+ let { handler: c, schema: a, namespace: u, once: h, timeoutMs: d } = o, E2 = u ? `${u}/${t}:${n}` : `${t}:${n}`, f = (...m2) => {
1262
+ try {
1263
+ return c(...m2);
1264
+ } catch (S2) {
1265
+ console.error(`Errow with ${E2}:`, S2);
1266
+ }
1267
+ };
1268
+ __privateMethod(this, _T_instances, u_fn2).call(this, E2, a, f, h, d);
1269
+ }
1270
+ }
1271
+ }, u_fn2 = function(e, t, r3, s = false, n = void 0) {
1272
+ __privateGet(this, _s3).has(e) || __privateGet(this, _s3).set(e, /* @__PURE__ */ new Set());
1273
+ let o = { event: e, schema: t, subscriber: r3, once: s, timeoutMs: n };
1274
+ return __privateGet(this, _s3).get(e).add(o), __privateGet(this, _e7) && __privateGet(this, _e7).emit([l.SUBSCRIBE, e, n]), () => __privateGet(this, _s3).get(e)?.delete(o);
1275
+ }, l_fn2 = function(e, t) {
1276
+ if (!__privateGet(this, _s3).has(e)) return;
1277
+ let r3 = __privateGet(this, _s3).get(e);
1278
+ for (let s of r3.values()) if (s.subscriber === t) return r3.delete(s), t;
1279
+ }, f_fn2 = function(e, t, r3, s = null) {
1280
+ if (!__privateGet(this, _e7)) {
1281
+ console.warn(`[Channel] publish "${t}" dropped \u2014 not connected`);
1282
+ return;
1283
+ }
1284
+ __privateGet(this, _e7).emit([e, t, r3, s]);
1285
+ }, d_fn2 = function(e, t, r3, s = null) {
1286
+ return __privateGet(this, _e7) ? __privateGet(this, _e7).request([e, t, r3, s], __privateGet(this, _a9).get(t)) : Promise.reject(new Error(`Channel not connected \u2014 request "${t}" dropped`));
1287
+ }, S_fn3 = function(e, t, r3, s = null) {
1288
+ return __privateGet(this, _e7) ? __privateGet(this, _e7).gather([e, t, r3, s], __privateGet(this, _a9).get(t)) : Promise.reject(new Error(`Channel not connected \u2014 gather "${t}" dropped`));
1289
+ }, w_fn3 = async function() {
1290
+ try {
1291
+ let e = await __privateGet(this, _e7).request([l.SYNC]);
1292
+ if (Array.isArray(e)) for (let [t, r3] of e) __privateGet(this, _a9).set(t, r3);
1293
+ } catch {
1294
+ }
1295
+ }, _m = new WeakMap(), _g = new WeakMap(), _y = new WeakMap(), b_fn2 = function(e) {
1296
+ __privateSet(this, _e7, null), __privateSet(this, _r3, false), __privateGet(this, _a9).clear(), __privateGet(this, _o2).disconnect.forEach((t) => {
1297
+ try {
1298
+ t(e, __privateGet(this, _E));
1299
+ } catch (r3) {
1300
+ console.error("Channel onDisconnect listener error:", r3);
1301
+ }
1302
+ }), e === "peer-lost" && __privateGet(this, _h2) && __privateMethod(this, _T_instances, N_fn).call(this);
1303
+ }, N_fn = async function() {
1304
+ if (__privateGet(this, _c)) return;
1305
+ __privateSet(this, _c, true);
1306
+ let e = this.config.reconnectMaxAttempts ?? 5, t = this.config.reconnectBaseDelay ?? 250;
1307
+ try {
1308
+ for (let r3 = 1; r3 <= e; r3++) try {
1309
+ let s = await __privateGet(this, _h2).call(this);
1310
+ if (!w2(s)) throw new Error("portProvider did not return a usable port");
1311
+ if (await __privateGet(this, _E).connect(s) === false) throw new Error("Reconnect handshake failed");
1312
+ console.warn(`[Channel] reconnected after ${r3} attempt(s)`);
1313
+ return;
1314
+ } catch (s) {
1315
+ if (console.warn(`[Channel] reconnect attempt ${r3}/${e} failed:`, s?.message ?? s), r3 < e) {
1316
+ let n = Math.min(t * 2 ** (r3 - 1), 4e3);
1317
+ await new Promise((o) => setTimeout(o, n));
1318
+ }
1319
+ }
1320
+ console.error("[Channel] reconnect failed \u2014 giving up");
1321
+ } finally {
1322
+ __privateSet(this, _c, false);
1323
+ }
1324
+ }, C_fn2 = function(e, t, r3) {
1325
+ if (r3 === void 0 || r3 === "*" || r3 === null || t === void 0) return true;
1326
+ if (Array.isArray(r3)) {
1327
+ if (r3.length === 1 && r3[0] === "*") return true;
1328
+ let s = r3.length, n = t.length;
1329
+ if (s !== n) return console.warn(`
1330
+ Event:`, e, `
1331
+ Expected:`, r3, `
1332
+ Received:`, t.map((o) => typeof o)), false;
1333
+ for (let o = 0; o < s; o++) {
1334
+ let c = r3[o], a = t[o], u;
1335
+ if (Array.isArray(a) ? u = "Array" : a === null ? u = "null" : u = Object.prototype.toString.call(a).slice(8, -1), c === "Object" && u === "Array") return console.warn(`
1336
+ Event:`, e, `
1337
+ Value:`, a), false;
1338
+ if (c !== u) return console.warn(`
1339
+ Event:`, e, `
1340
+ Value:`, a), false;
1341
+ }
1342
+ }
1343
+ return true;
1344
+ }, __publicField(_a10, "manifest", { name: "Channel", dependencies: [], version: "1.0.0", namespace: "channel", description: "Channel extension for message passing between systems", defaults: { port: null, subscriptions: [], timeout: 1e3, reconnectMaxAttempts: 5, reconnectBaseDelay: 250 } }), _a10);
1345
+
1346
+ export {
1347
+ g,
1348
+ G,
1349
+ v,
1350
+ nanoid,
1351
+ L2 as L,
1352
+ T2 as T
1353
+ };