vigla 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1093) hide show
  1. package/dist/compiler/analysis/asynchronous.d.ts +18 -0
  2. package/dist/compiler/analysis/asynchronous.d.ts.map +1 -0
  3. package/dist/compiler/analysis/asynchronous.js +195 -0
  4. package/dist/compiler/analysis/asynchronous.js.map +1 -0
  5. package/dist/compiler/analysis/classes.d.ts +13 -0
  6. package/dist/compiler/analysis/classes.d.ts.map +1 -0
  7. package/dist/compiler/analysis/classes.js +96 -0
  8. package/dist/compiler/analysis/classes.js.map +1 -0
  9. package/dist/compiler/analysis/ignoring.d.ts +5 -0
  10. package/dist/compiler/analysis/ignoring.d.ts.map +1 -0
  11. package/dist/compiler/analysis/ignoring.js +23 -0
  12. package/dist/compiler/analysis/ignoring.js.map +1 -0
  13. package/dist/compiler/analysis/index.d.ts +53 -0
  14. package/dist/compiler/analysis/index.d.ts.map +1 -0
  15. package/dist/compiler/analysis/index.js +334 -0
  16. package/dist/compiler/analysis/index.js.map +1 -0
  17. package/dist/compiler/analysis/scope.d.ts +59 -0
  18. package/dist/compiler/analysis/scope.d.ts.map +1 -0
  19. package/dist/compiler/analysis/scope.js +360 -0
  20. package/dist/compiler/analysis/scope.js.map +1 -0
  21. package/dist/compiler/analysis/template.d.ts +40 -0
  22. package/dist/compiler/analysis/template.d.ts.map +1 -0
  23. package/dist/compiler/analysis/template.js +504 -0
  24. package/dist/compiler/analysis/template.js.map +1 -0
  25. package/dist/compiler/analysis/validate/a11y/attributes.d.ts +12 -0
  26. package/dist/compiler/analysis/validate/a11y/attributes.d.ts.map +1 -0
  27. package/dist/compiler/analysis/validate/a11y/attributes.js +197 -0
  28. package/dist/compiler/analysis/validate/a11y/attributes.js.map +1 -0
  29. package/dist/compiler/analysis/validate/a11y/axobject-query.d.ts +20 -0
  30. package/dist/compiler/analysis/validate/a11y/elements.d.ts +3 -0
  31. package/dist/compiler/analysis/validate/a11y/elements.d.ts.map +1 -0
  32. package/dist/compiler/analysis/validate/a11y/elements.js +220 -0
  33. package/dist/compiler/analysis/validate/a11y/elements.js.map +1 -0
  34. package/dist/compiler/analysis/validate/a11y/facts.d.ts +23 -0
  35. package/dist/compiler/analysis/validate/a11y/facts.d.ts.map +1 -0
  36. package/dist/compiler/analysis/validate/a11y/facts.js +91 -0
  37. package/dist/compiler/analysis/validate/a11y/facts.js.map +1 -0
  38. package/dist/compiler/analysis/validate/a11y/fuzzy.d.ts +2 -0
  39. package/dist/compiler/analysis/validate/a11y/fuzzy.d.ts.map +1 -0
  40. package/dist/compiler/analysis/validate/a11y/fuzzy.js +112 -0
  41. package/dist/compiler/analysis/validate/a11y/fuzzy.js.map +1 -0
  42. package/dist/compiler/analysis/validate/a11y/index.d.ts +8 -0
  43. package/dist/compiler/analysis/validate/a11y/index.d.ts.map +1 -0
  44. package/dist/compiler/analysis/validate/a11y/index.js +13 -0
  45. package/dist/compiler/analysis/validate/a11y/index.js.map +1 -0
  46. package/dist/compiler/analysis/validate/a11y/interactions.d.ts +3 -0
  47. package/dist/compiler/analysis/validate/a11y/interactions.d.ts.map +1 -0
  48. package/dist/compiler/analysis/validate/a11y/interactions.js +99 -0
  49. package/dist/compiler/analysis/validate/a11y/interactions.js.map +1 -0
  50. package/dist/compiler/analysis/validate/a11y/roles.d.ts +16 -0
  51. package/dist/compiler/analysis/validate/a11y/roles.d.ts.map +1 -0
  52. package/dist/compiler/analysis/validate/a11y/roles.js +135 -0
  53. package/dist/compiler/analysis/validate/a11y/roles.js.map +1 -0
  54. package/dist/compiler/analysis/validate/a11y/tables.d.ts +22 -0
  55. package/dist/compiler/analysis/validate/a11y/tables.d.ts.map +1 -0
  56. package/dist/compiler/analysis/validate/a11y/tables.js +227 -0
  57. package/dist/compiler/analysis/validate/a11y/tables.js.map +1 -0
  58. package/dist/compiler/analysis/validate/assignment.d.ts +5 -0
  59. package/dist/compiler/analysis/validate/assignment.d.ts.map +1 -0
  60. package/dist/compiler/analysis/validate/assignment.js +64 -0
  61. package/dist/compiler/analysis/validate/assignment.js.map +1 -0
  62. package/dist/compiler/analysis/validate/bindings.d.ts +6 -0
  63. package/dist/compiler/analysis/validate/bindings.d.ts.map +1 -0
  64. package/dist/compiler/analysis/validate/bindings.js +196 -0
  65. package/dist/compiler/analysis/validate/bindings.js.map +1 -0
  66. package/dist/compiler/analysis/validate/classes.d.ts +6 -0
  67. package/dist/compiler/analysis/validate/classes.d.ts.map +1 -0
  68. package/dist/compiler/analysis/validate/classes.js +100 -0
  69. package/dist/compiler/analysis/validate/classes.js.map +1 -0
  70. package/dist/compiler/analysis/validate/context.d.ts +47 -0
  71. package/dist/compiler/analysis/validate/context.d.ts.map +1 -0
  72. package/dist/compiler/analysis/validate/context.js +84 -0
  73. package/dist/compiler/analysis/validate/context.js.map +1 -0
  74. package/dist/compiler/analysis/validate/element.d.ts +10 -0
  75. package/dist/compiler/analysis/validate/element.d.ts.map +1 -0
  76. package/dist/compiler/analysis/validate/element.js +147 -0
  77. package/dist/compiler/analysis/validate/element.js.map +1 -0
  78. package/dist/compiler/analysis/validate/front.d.ts +18 -0
  79. package/dist/compiler/analysis/validate/front.d.ts.map +1 -0
  80. package/dist/compiler/analysis/validate/front.js +65 -0
  81. package/dist/compiler/analysis/validate/front.js.map +1 -0
  82. package/dist/compiler/analysis/validate/index.d.ts +19 -0
  83. package/dist/compiler/analysis/validate/index.d.ts.map +1 -0
  84. package/dist/compiler/analysis/validate/index.js +237 -0
  85. package/dist/compiler/analysis/validate/index.js.map +1 -0
  86. package/dist/compiler/analysis/validate/messages.d.ts +3 -0
  87. package/dist/compiler/analysis/validate/messages.d.ts.map +1 -0
  88. package/dist/compiler/analysis/validate/messages.js +451 -0
  89. package/dist/compiler/analysis/validate/messages.js.map +1 -0
  90. package/dist/compiler/analysis/validate/report.d.ts +29 -0
  91. package/dist/compiler/analysis/validate/report.d.ts.map +1 -0
  92. package/dist/compiler/analysis/validate/report.js +79 -0
  93. package/dist/compiler/analysis/validate/report.js.map +1 -0
  94. package/dist/compiler/analysis/validate/scope.d.ts +46 -0
  95. package/dist/compiler/analysis/validate/scope.d.ts.map +1 -0
  96. package/dist/compiler/analysis/validate/scope.js +187 -0
  97. package/dist/compiler/analysis/validate/scope.js.map +1 -0
  98. package/dist/compiler/analysis/validate/scopes.d.ts +23 -0
  99. package/dist/compiler/analysis/validate/scopes.d.ts.map +1 -0
  100. package/dist/compiler/analysis/validate/scopes.js +436 -0
  101. package/dist/compiler/analysis/validate/scopes.js.map +1 -0
  102. package/dist/compiler/analysis/validate/script.d.ts +5 -0
  103. package/dist/compiler/analysis/validate/script.d.ts.map +1 -0
  104. package/dist/compiler/analysis/validate/script.js +502 -0
  105. package/dist/compiler/analysis/validate/script.js.map +1 -0
  106. package/dist/compiler/analysis/validate/template.d.ts +13 -0
  107. package/dist/compiler/analysis/validate/template.d.ts.map +1 -0
  108. package/dist/compiler/analysis/validate/template.js +316 -0
  109. package/dist/compiler/analysis/validate/template.js.map +1 -0
  110. package/dist/compiler/analysis/whitespace.d.ts +8 -0
  111. package/dist/compiler/analysis/whitespace.d.ts.map +1 -0
  112. package/dist/compiler/analysis/whitespace.js +71 -0
  113. package/dist/compiler/analysis/whitespace.js.map +1 -0
  114. package/dist/compiler/client/asynchronous.d.ts +9 -0
  115. package/dist/compiler/client/asynchronous.d.ts.map +1 -0
  116. package/dist/compiler/client/asynchronous.js +38 -0
  117. package/dist/compiler/client/asynchronous.js.map +1 -0
  118. package/dist/compiler/client/bindings.d.ts +16 -0
  119. package/dist/compiler/client/bindings.d.ts.map +1 -0
  120. package/dist/compiler/client/bindings.js +200 -0
  121. package/dist/compiler/client/bindings.js.map +1 -0
  122. package/dist/compiler/client/blocks.d.ts +9 -0
  123. package/dist/compiler/client/blocks.d.ts.map +1 -0
  124. package/dist/compiler/client/blocks.js +147 -0
  125. package/dist/compiler/client/blocks.js.map +1 -0
  126. package/dist/compiler/client/classes.d.ts +9 -0
  127. package/dist/compiler/client/classes.d.ts.map +1 -0
  128. package/dist/compiler/client/classes.js +104 -0
  129. package/dist/compiler/client/classes.js.map +1 -0
  130. package/dist/compiler/client/component.d.ts +12 -0
  131. package/dist/compiler/client/component.d.ts.map +1 -0
  132. package/dist/compiler/client/component.js +412 -0
  133. package/dist/compiler/client/component.js.map +1 -0
  134. package/dist/compiler/client/constants.d.ts +5 -0
  135. package/dist/compiler/client/constants.d.ts.map +1 -0
  136. package/dist/compiler/client/constants.js +103 -0
  137. package/dist/compiler/client/constants.js.map +1 -0
  138. package/dist/compiler/client/custom-element.d.ts +7 -0
  139. package/dist/compiler/client/custom-element.d.ts.map +1 -0
  140. package/dist/compiler/client/custom-element.js +124 -0
  141. package/dist/compiler/client/custom-element.js.map +1 -0
  142. package/dist/compiler/client/directives.d.ts +6 -0
  143. package/dist/compiler/client/directives.d.ts.map +1 -0
  144. package/dist/compiler/client/directives.js +22 -0
  145. package/dist/compiler/client/directives.js.map +1 -0
  146. package/dist/compiler/client/dynamic.d.ts +5 -0
  147. package/dist/compiler/client/dynamic.d.ts.map +1 -0
  148. package/dist/compiler/client/dynamic.js +79 -0
  149. package/dist/compiler/client/dynamic.js.map +1 -0
  150. package/dist/compiler/client/element.d.ts +6 -0
  151. package/dist/compiler/client/element.d.ts.map +1 -0
  152. package/dist/compiler/client/element.js +492 -0
  153. package/dist/compiler/client/element.js.map +1 -0
  154. package/dist/compiler/client/events.d.ts +8 -0
  155. package/dist/compiler/client/events.d.ts.map +1 -0
  156. package/dist/compiler/client/events.js +116 -0
  157. package/dist/compiler/client/events.js.map +1 -0
  158. package/dist/compiler/client/exports.d.ts +9 -0
  159. package/dist/compiler/client/exports.d.ts.map +1 -0
  160. package/dist/compiler/client/exports.js +22 -0
  161. package/dist/compiler/client/exports.js.map +1 -0
  162. package/dist/compiler/client/external.d.ts +6 -0
  163. package/dist/compiler/client/external.d.ts.map +1 -0
  164. package/dist/compiler/client/external.js +133 -0
  165. package/dist/compiler/client/external.js.map +1 -0
  166. package/dist/compiler/client/hot.d.ts +3 -0
  167. package/dist/compiler/client/hot.d.ts.map +1 -0
  168. package/dist/compiler/client/hot.js +54 -0
  169. package/dist/compiler/client/hot.js.map +1 -0
  170. package/dist/compiler/client/index.d.ts +26 -0
  171. package/dist/compiler/client/index.d.ts.map +1 -0
  172. package/dist/compiler/client/index.js +241 -0
  173. package/dist/compiler/client/index.js.map +1 -0
  174. package/dist/compiler/client/inspect.d.ts +11 -0
  175. package/dist/compiler/client/inspect.d.ts.map +1 -0
  176. package/dist/compiler/client/inspect.js +127 -0
  177. package/dist/compiler/client/inspect.js.map +1 -0
  178. package/dist/compiler/client/loss.d.ts +14 -0
  179. package/dist/compiler/client/loss.d.ts.map +1 -0
  180. package/dist/compiler/client/loss.js +39 -0
  181. package/dist/compiler/client/loss.js.map +1 -0
  182. package/dist/compiler/client/markup.d.ts +24 -0
  183. package/dist/compiler/client/markup.d.ts.map +1 -0
  184. package/dist/compiler/client/markup.js +82 -0
  185. package/dist/compiler/client/markup.js.map +1 -0
  186. package/dist/compiler/client/meta.d.ts +11 -0
  187. package/dist/compiler/client/meta.d.ts.map +1 -0
  188. package/dist/compiler/client/meta.js +43 -0
  189. package/dist/compiler/client/meta.js.map +1 -0
  190. package/dist/compiler/client/ownership.d.ts +12 -0
  191. package/dist/compiler/client/ownership.d.ts.map +1 -0
  192. package/dist/compiler/client/ownership.js +39 -0
  193. package/dist/compiler/client/ownership.js.map +1 -0
  194. package/dist/compiler/client/parameters.d.ts +7 -0
  195. package/dist/compiler/client/parameters.d.ts.map +1 -0
  196. package/dist/compiler/client/parameters.js +31 -0
  197. package/dist/compiler/client/parameters.js.map +1 -0
  198. package/dist/compiler/client/patterns.d.ts +17 -0
  199. package/dist/compiler/client/patterns.d.ts.map +1 -0
  200. package/dist/compiler/client/patterns.js +118 -0
  201. package/dist/compiler/client/patterns.js.map +1 -0
  202. package/dist/compiler/client/script.d.ts +42 -0
  203. package/dist/compiler/client/script.d.ts.map +1 -0
  204. package/dist/compiler/client/script.js +476 -0
  205. package/dist/compiler/client/script.js.map +1 -0
  206. package/dist/compiler/client/special.d.ts +7 -0
  207. package/dist/compiler/client/special.d.ts.map +1 -0
  208. package/dist/compiler/client/special.js +148 -0
  209. package/dist/compiler/client/special.js.map +1 -0
  210. package/dist/compiler/client/template.d.ts +59 -0
  211. package/dist/compiler/client/template.d.ts.map +1 -0
  212. package/dist/compiler/client/template.js +380 -0
  213. package/dist/compiler/client/template.js.map +1 -0
  214. package/dist/compiler/client/transitions.d.ts +6 -0
  215. package/dist/compiler/client/transitions.d.ts.map +1 -0
  216. package/dist/compiler/client/transitions.js +25 -0
  217. package/dist/compiler/client/transitions.js.map +1 -0
  218. package/dist/compiler/client/values.d.ts +8 -0
  219. package/dist/compiler/client/values.d.ts.map +1 -0
  220. package/dist/compiler/client/values.js +46 -0
  221. package/dist/compiler/client/values.js.map +1 -0
  222. package/dist/compiler/css/analyze.d.ts +12 -0
  223. package/dist/compiler/css/analyze.d.ts.map +1 -0
  224. package/dist/compiler/css/analyze.js +252 -0
  225. package/dist/compiler/css/analyze.js.map +1 -0
  226. package/dist/compiler/css/attributes.d.ts +3 -0
  227. package/dist/compiler/css/attributes.d.ts.map +1 -0
  228. package/dist/compiler/css/attributes.js +207 -0
  229. package/dist/compiler/css/attributes.js.map +1 -0
  230. package/dist/compiler/css/hash.d.ts +2 -0
  231. package/dist/compiler/css/hash.d.ts.map +1 -0
  232. package/dist/compiler/css/hash.js +2 -0
  233. package/dist/compiler/css/hash.js.map +1 -0
  234. package/dist/compiler/css/index.d.ts +42 -0
  235. package/dist/compiler/css/index.d.ts.map +1 -0
  236. package/dist/compiler/css/index.js +109 -0
  237. package/dist/compiler/css/index.js.map +1 -0
  238. package/dist/compiler/css/marks.d.ts +39 -0
  239. package/dist/compiler/css/marks.d.ts.map +1 -0
  240. package/dist/compiler/css/marks.js +90 -0
  241. package/dist/compiler/css/marks.js.map +1 -0
  242. package/dist/compiler/css/prune.d.ts +10 -0
  243. package/dist/compiler/css/prune.d.ts.map +1 -0
  244. package/dist/compiler/css/prune.js +418 -0
  245. package/dist/compiler/css/prune.js.map +1 -0
  246. package/dist/compiler/css/relations.d.ts +25 -0
  247. package/dist/compiler/css/relations.d.ts.map +1 -0
  248. package/dist/compiler/css/relations.js +262 -0
  249. package/dist/compiler/css/relations.js.map +1 -0
  250. package/dist/compiler/css/render.d.ts +22 -0
  251. package/dist/compiler/css/render.d.ts.map +1 -0
  252. package/dist/compiler/css/render.js +389 -0
  253. package/dist/compiler/css/render.js.map +1 -0
  254. package/dist/compiler/css/template.d.ts +26 -0
  255. package/dist/compiler/css/template.d.ts.map +1 -0
  256. package/dist/compiler/css/template.js +271 -0
  257. package/dist/compiler/css/template.js.map +1 -0
  258. package/dist/compiler/ir/estree.d.ts +29 -0
  259. package/dist/compiler/ir/estree.d.ts.map +1 -0
  260. package/dist/compiler/ir/estree.js +205 -0
  261. package/dist/compiler/ir/estree.js.map +1 -0
  262. package/dist/compiler/ir/maps.d.ts +11 -0
  263. package/dist/compiler/ir/maps.d.ts.map +1 -0
  264. package/dist/compiler/ir/maps.js +45 -0
  265. package/dist/compiler/ir/maps.js.map +1 -0
  266. package/dist/compiler/ir/nodes.d.ts +197 -0
  267. package/dist/compiler/ir/nodes.d.ts.map +1 -0
  268. package/dist/compiler/ir/nodes.js +1 -0
  269. package/dist/compiler/ir/nodes.js.map +1 -0
  270. package/dist/compiler/ir/port.d.ts +55 -0
  271. package/dist/compiler/ir/port.d.ts.map +1 -0
  272. package/dist/compiler/ir/port.js +9 -0
  273. package/dist/compiler/ir/port.js.map +1 -0
  274. package/dist/compiler/ir/runtime.d.ts +16 -0
  275. package/dist/compiler/ir/runtime.d.ts.map +1 -0
  276. package/dist/compiler/ir/runtime.js +1 -0
  277. package/dist/compiler/ir/runtime.js.map +1 -0
  278. package/dist/compiler/ir/script.d.ts +6 -0
  279. package/dist/compiler/ir/script.d.ts.map +1 -0
  280. package/dist/compiler/ir/script.js +33 -0
  281. package/dist/compiler/ir/script.js.map +1 -0
  282. package/dist/compiler/ir/style.d.ts +92 -0
  283. package/dist/compiler/ir/style.d.ts.map +1 -0
  284. package/dist/compiler/ir/style.js +1 -0
  285. package/dist/compiler/ir/style.js.map +1 -0
  286. package/dist/compiler/server/asynchronous.d.ts +8 -0
  287. package/dist/compiler/server/asynchronous.d.ts.map +1 -0
  288. package/dist/compiler/server/asynchronous.js +44 -0
  289. package/dist/compiler/server/asynchronous.js.map +1 -0
  290. package/dist/compiler/server/bindings.d.ts +15 -0
  291. package/dist/compiler/server/bindings.d.ts.map +1 -0
  292. package/dist/compiler/server/bindings.js +80 -0
  293. package/dist/compiler/server/bindings.js.map +1 -0
  294. package/dist/compiler/server/blocks.d.ts +7 -0
  295. package/dist/compiler/server/blocks.d.ts.map +1 -0
  296. package/dist/compiler/server/blocks.js +136 -0
  297. package/dist/compiler/server/blocks.js.map +1 -0
  298. package/dist/compiler/server/classes.d.ts +11 -0
  299. package/dist/compiler/server/classes.d.ts.map +1 -0
  300. package/dist/compiler/server/classes.js +100 -0
  301. package/dist/compiler/server/classes.js.map +1 -0
  302. package/dist/compiler/server/component.d.ts +11 -0
  303. package/dist/compiler/server/component.d.ts.map +1 -0
  304. package/dist/compiler/server/component.js +321 -0
  305. package/dist/compiler/server/component.js.map +1 -0
  306. package/dist/compiler/server/external.d.ts +6 -0
  307. package/dist/compiler/server/external.d.ts.map +1 -0
  308. package/dist/compiler/server/external.js +130 -0
  309. package/dist/compiler/server/external.js.map +1 -0
  310. package/dist/compiler/server/index.d.ts +20 -0
  311. package/dist/compiler/server/index.d.ts.map +1 -0
  312. package/dist/compiler/server/index.js +161 -0
  313. package/dist/compiler/server/index.js.map +1 -0
  314. package/dist/compiler/server/placement.d.ts +5 -0
  315. package/dist/compiler/server/placement.d.ts.map +1 -0
  316. package/dist/compiler/server/placement.js +37 -0
  317. package/dist/compiler/server/placement.js.map +1 -0
  318. package/dist/compiler/server/script.d.ts +29 -0
  319. package/dist/compiler/server/script.d.ts.map +1 -0
  320. package/dist/compiler/server/script.js +404 -0
  321. package/dist/compiler/server/script.js.map +1 -0
  322. package/dist/compiler/server/slot.d.ts +5 -0
  323. package/dist/compiler/server/slot.d.ts.map +1 -0
  324. package/dist/compiler/server/slot.js +38 -0
  325. package/dist/compiler/server/slot.js.map +1 -0
  326. package/dist/compiler/server/special.d.ts +5 -0
  327. package/dist/compiler/server/special.d.ts.map +1 -0
  328. package/dist/compiler/server/special.js +60 -0
  329. package/dist/compiler/server/special.js.map +1 -0
  330. package/dist/compiler/server/template.d.ts +28 -0
  331. package/dist/compiler/server/template.d.ts.map +1 -0
  332. package/dist/compiler/server/template.js +475 -0
  333. package/dist/compiler/server/template.js.map +1 -0
  334. package/dist/entries/action.d.ts +9 -0
  335. package/dist/entries/action.d.ts.map +1 -0
  336. package/dist/entries/action.js +1 -0
  337. package/dist/entries/action.js.map +1 -0
  338. package/dist/entries/animate.d.ts +4 -0
  339. package/dist/entries/animate.d.ts.map +1 -0
  340. package/dist/entries/animate.js +2 -0
  341. package/dist/entries/animate.js.map +1 -0
  342. package/dist/entries/attachments.d.ts +6 -0
  343. package/dist/entries/attachments.d.ts.map +1 -0
  344. package/dist/entries/attachments.js +23 -0
  345. package/dist/entries/attachments.js.map +1 -0
  346. package/dist/entries/compiler.d.ts +61 -0
  347. package/dist/entries/compiler.d.ts.map +1 -0
  348. package/dist/entries/compiler.js +97 -0
  349. package/dist/entries/compiler.js.map +1 -0
  350. package/dist/entries/easing.d.ts +2 -0
  351. package/dist/entries/easing.d.ts.map +1 -0
  352. package/dist/entries/easing.js +2 -0
  353. package/dist/entries/easing.js.map +1 -0
  354. package/dist/entries/events.d.ts +2 -0
  355. package/dist/entries/events.d.ts.map +1 -0
  356. package/dist/entries/events.js +5 -0
  357. package/dist/entries/events.js.map +1 -0
  358. package/dist/entries/index-server.d.ts +37 -0
  359. package/dist/entries/index-server.d.ts.map +1 -0
  360. package/dist/entries/index-server.js +62 -0
  361. package/dist/entries/index-server.js.map +1 -0
  362. package/dist/entries/index.d.ts +29 -0
  363. package/dist/entries/index.d.ts.map +1 -0
  364. package/dist/entries/index.js +19 -0
  365. package/dist/entries/index.js.map +1 -0
  366. package/dist/entries/internal/client.d.ts +54 -0
  367. package/dist/entries/internal/client.d.ts.map +1 -0
  368. package/dist/entries/internal/client.js +50 -0
  369. package/dist/entries/internal/client.js.map +1 -0
  370. package/dist/entries/internal/server.d.ts +18 -0
  371. package/dist/entries/internal/server.d.ts.map +1 -0
  372. package/dist/entries/internal/server.js +16 -0
  373. package/dist/entries/internal/server.js.map +1 -0
  374. package/dist/entries/motion-server.d.ts +6 -0
  375. package/dist/entries/motion-server.d.ts.map +1 -0
  376. package/dist/entries/motion-server.js +4 -0
  377. package/dist/entries/motion-server.js.map +1 -0
  378. package/dist/entries/motion.d.ts +6 -0
  379. package/dist/entries/motion.d.ts.map +1 -0
  380. package/dist/entries/motion.js +4 -0
  381. package/dist/entries/motion.js.map +1 -0
  382. package/dist/entries/reactivity-server.d.ts +17 -0
  383. package/dist/entries/reactivity-server.d.ts.map +1 -0
  384. package/dist/entries/reactivity-server.js +7 -0
  385. package/dist/entries/reactivity-server.js.map +1 -0
  386. package/dist/entries/reactivity.d.ts +8 -0
  387. package/dist/entries/reactivity.d.ts.map +1 -0
  388. package/dist/entries/reactivity.js +8 -0
  389. package/dist/entries/reactivity.js.map +1 -0
  390. package/dist/entries/server.d.ts +5 -0
  391. package/dist/entries/server.d.ts.map +1 -0
  392. package/dist/entries/server.js +2 -0
  393. package/dist/entries/server.js.map +1 -0
  394. package/dist/entries/transition.d.ts +5 -0
  395. package/dist/entries/transition.d.ts.map +1 -0
  396. package/dist/entries/transition.js +2 -0
  397. package/dist/entries/transition.js.map +1 -0
  398. package/dist/entries/window-server.d.ts +2 -0
  399. package/dist/entries/window-server.d.ts.map +1 -0
  400. package/dist/entries/window-server.js +2 -0
  401. package/dist/entries/window-server.js.map +1 -0
  402. package/dist/entries/window.d.ts +2 -0
  403. package/dist/entries/window.d.ts.map +1 -0
  404. package/dist/entries/window.js +2 -0
  405. package/dist/entries/window.js.map +1 -0
  406. package/dist/runtime/classes/date.d.ts +5 -0
  407. package/dist/runtime/classes/date.d.ts.map +1 -0
  408. package/dist/runtime/classes/date.js +58 -0
  409. package/dist/runtime/classes/date.js.map +1 -0
  410. package/dist/runtime/classes/frames.d.ts +6 -0
  411. package/dist/runtime/classes/frames.d.ts.map +1 -0
  412. package/dist/runtime/classes/frames.js +28 -0
  413. package/dist/runtime/classes/frames.js.map +1 -0
  414. package/dist/runtime/classes/local.d.ts +3 -0
  415. package/dist/runtime/classes/local.d.ts.map +1 -0
  416. package/dist/runtime/classes/local.js +6 -0
  417. package/dist/runtime/classes/local.js.map +1 -0
  418. package/dist/runtime/classes/map.d.ts +18 -0
  419. package/dist/runtime/classes/map.d.ts.map +1 -0
  420. package/dist/runtime/classes/map.js +126 -0
  421. package/dist/runtime/classes/map.js.map +1 -0
  422. package/dist/runtime/classes/media.d.ts +6 -0
  423. package/dist/runtime/classes/media.d.ts.map +1 -0
  424. package/dist/runtime/classes/media.js +22 -0
  425. package/dist/runtime/classes/media.js.map +1 -0
  426. package/dist/runtime/classes/motion.d.ts +3 -0
  427. package/dist/runtime/classes/motion.d.ts.map +1 -0
  428. package/dist/runtime/classes/motion.js +3 -0
  429. package/dist/runtime/classes/motion.js.map +1 -0
  430. package/dist/runtime/classes/search.d.ts +23 -0
  431. package/dist/runtime/classes/search.d.ts.map +1 -0
  432. package/dist/runtime/classes/search.js +115 -0
  433. package/dist/runtime/classes/search.js.map +1 -0
  434. package/dist/runtime/classes/server.d.ts +8 -0
  435. package/dist/runtime/classes/server.d.ts.map +1 -0
  436. package/dist/runtime/classes/server.js +13 -0
  437. package/dist/runtime/classes/server.js.map +1 -0
  438. package/dist/runtime/classes/set.d.ts +28 -0
  439. package/dist/runtime/classes/set.d.ts.map +1 -0
  440. package/dist/runtime/classes/set.js +113 -0
  441. package/dist/runtime/classes/set.js.map +1 -0
  442. package/dist/runtime/classes/spring.d.ts +25 -0
  443. package/dist/runtime/classes/spring.d.ts.map +1 -0
  444. package/dist/runtime/classes/spring.js +154 -0
  445. package/dist/runtime/classes/spring.js.map +1 -0
  446. package/dist/runtime/classes/subscriber.d.ts +10 -0
  447. package/dist/runtime/classes/subscriber.d.ts.map +1 -0
  448. package/dist/runtime/classes/subscriber.js +46 -0
  449. package/dist/runtime/classes/subscriber.js.map +1 -0
  450. package/dist/runtime/classes/tween.d.ts +17 -0
  451. package/dist/runtime/classes/tween.d.ts.map +1 -0
  452. package/dist/runtime/classes/tween.js +112 -0
  453. package/dist/runtime/classes/tween.js.map +1 -0
  454. package/dist/runtime/classes/url.d.ts +30 -0
  455. package/dist/runtime/classes/url.d.ts.map +1 -0
  456. package/dist/runtime/classes/url.js +127 -0
  457. package/dist/runtime/classes/url.js.map +1 -0
  458. package/dist/runtime/classes/window-server.d.ts +14 -0
  459. package/dist/runtime/classes/window-server.d.ts.map +1 -0
  460. package/dist/runtime/classes/window-server.js +14 -0
  461. package/dist/runtime/classes/window-server.js.map +1 -0
  462. package/dist/runtime/classes/window.d.ts +18 -0
  463. package/dist/runtime/classes/window.d.ts.map +1 -0
  464. package/dist/runtime/classes/window.js +54 -0
  465. package/dist/runtime/classes/window.js.map +1 -0
  466. package/dist/runtime/dom/async.d.ts +21 -0
  467. package/dist/runtime/dom/async.d.ts.map +1 -0
  468. package/dist/runtime/dom/async.js +179 -0
  469. package/dist/runtime/dom/async.js.map +1 -0
  470. package/dist/runtime/dom/attachments.d.ts +18 -0
  471. package/dist/runtime/dom/attachments.d.ts.map +1 -0
  472. package/dist/runtime/dom/attachments.js +134 -0
  473. package/dist/runtime/dom/attachments.js.map +1 -0
  474. package/dist/runtime/dom/attributes.d.ts +21 -0
  475. package/dist/runtime/dom/attributes.d.ts.map +1 -0
  476. package/dist/runtime/dom/attributes.js +450 -0
  477. package/dist/runtime/dom/attributes.js.map +1 -0
  478. package/dist/runtime/dom/await.d.ts +5 -0
  479. package/dist/runtime/dom/await.d.ts.map +1 -0
  480. package/dist/runtime/dom/await.js +95 -0
  481. package/dist/runtime/dom/await.js.map +1 -0
  482. package/dist/runtime/dom/bindings.d.ts +21 -0
  483. package/dist/runtime/dom/bindings.d.ts.map +1 -0
  484. package/dist/runtime/dom/bindings.js +299 -0
  485. package/dist/runtime/dom/bindings.js.map +1 -0
  486. package/dist/runtime/dom/blocks.d.ts +4 -0
  487. package/dist/runtime/dom/blocks.d.ts.map +1 -0
  488. package/dist/runtime/dom/blocks.js +32 -0
  489. package/dist/runtime/dom/blocks.js.map +1 -0
  490. package/dist/runtime/dom/boundary.d.ts +14 -0
  491. package/dist/runtime/dom/boundary.d.ts.map +1 -0
  492. package/dist/runtime/dom/boundary.js +313 -0
  493. package/dist/runtime/dom/boundary.js.map +1 -0
  494. package/dist/runtime/dom/branches.d.ts +14 -0
  495. package/dist/runtime/dom/branches.d.ts.map +1 -0
  496. package/dist/runtime/dom/branches.js +210 -0
  497. package/dist/runtime/dom/branches.js.map +1 -0
  498. package/dist/runtime/dom/context.d.ts +9 -0
  499. package/dist/runtime/dom/context.d.ts.map +1 -0
  500. package/dist/runtime/dom/context.js +78 -0
  501. package/dist/runtime/dom/context.js.map +1 -0
  502. package/dist/runtime/dom/custom-element.d.ts +16 -0
  503. package/dist/runtime/dom/custom-element.d.ts.map +1 -0
  504. package/dist/runtime/dom/custom-element.js +198 -0
  505. package/dist/runtime/dom/custom-element.js.map +1 -0
  506. package/dist/runtime/dom/data.d.ts +11 -0
  507. package/dist/runtime/dom/data.d.ts.map +1 -0
  508. package/dist/runtime/dom/data.js +114 -0
  509. package/dist/runtime/dom/data.js.map +1 -0
  510. package/dist/runtime/dom/element.d.ts +3 -0
  511. package/dist/runtime/dom/element.d.ts.map +1 -0
  512. package/dist/runtime/dom/element.js +81 -0
  513. package/dist/runtime/dom/element.js.map +1 -0
  514. package/dist/runtime/dom/events.d.ts +9 -0
  515. package/dist/runtime/dom/events.d.ts.map +1 -0
  516. package/dist/runtime/dom/events.js +211 -0
  517. package/dist/runtime/dom/events.js.map +1 -0
  518. package/dist/runtime/dom/head.d.ts +4 -0
  519. package/dist/runtime/dom/head.d.ts.map +1 -0
  520. package/dist/runtime/dom/head.js +54 -0
  521. package/dist/runtime/dom/head.js.map +1 -0
  522. package/dist/runtime/dom/hot.d.ts +15 -0
  523. package/dist/runtime/dom/hot.d.ts.map +1 -0
  524. package/dist/runtime/dom/hot.js +38 -0
  525. package/dist/runtime/dom/hot.js.map +1 -0
  526. package/dist/runtime/dom/html.d.ts +7 -0
  527. package/dist/runtime/dom/html.d.ts.map +1 -0
  528. package/dist/runtime/dom/html.js +91 -0
  529. package/dist/runtime/dom/html.js.map +1 -0
  530. package/dist/runtime/dom/hydration.d.ts +16 -0
  531. package/dist/runtime/dom/hydration.d.ts.map +1 -0
  532. package/dist/runtime/dom/hydration.js +92 -0
  533. package/dist/runtime/dom/hydration.js.map +1 -0
  534. package/dist/runtime/dom/inspect.d.ts +2 -0
  535. package/dist/runtime/dom/inspect.d.ts.map +1 -0
  536. package/dist/runtime/dom/inspect.js +71 -0
  537. package/dist/runtime/dom/inspect.js.map +1 -0
  538. package/dist/runtime/dom/list.d.ts +7 -0
  539. package/dist/runtime/dom/list.d.ts.map +1 -0
  540. package/dist/runtime/dom/list.js +388 -0
  541. package/dist/runtime/dom/list.js.map +1 -0
  542. package/dist/runtime/dom/media.d.ts +26 -0
  543. package/dist/runtime/dom/media.d.ts.map +1 -0
  544. package/dist/runtime/dom/media.js +126 -0
  545. package/dist/runtime/dom/media.js.map +1 -0
  546. package/dist/runtime/dom/meta.d.ts +16 -0
  547. package/dist/runtime/dom/meta.d.ts.map +1 -0
  548. package/dist/runtime/dom/meta.js +48 -0
  549. package/dist/runtime/dom/meta.js.map +1 -0
  550. package/dist/runtime/dom/mount.d.ts +23 -0
  551. package/dist/runtime/dom/mount.d.ts.map +1 -0
  552. package/dist/runtime/dom/mount.js +134 -0
  553. package/dist/runtime/dom/mount.js.map +1 -0
  554. package/dist/runtime/dom/ownership.d.ts +6 -0
  555. package/dist/runtime/dom/ownership.d.ts.map +1 -0
  556. package/dist/runtime/dom/ownership.js +32 -0
  557. package/dist/runtime/dom/ownership.js.map +1 -0
  558. package/dist/runtime/dom/props.d.ts +20 -0
  559. package/dist/runtime/dom/props.d.ts.map +1 -0
  560. package/dist/runtime/dom/props.js +193 -0
  561. package/dist/runtime/dom/props.js.map +1 -0
  562. package/dist/runtime/dom/range.d.ts +16 -0
  563. package/dist/runtime/dom/range.d.ts.map +1 -0
  564. package/dist/runtime/dom/range.js +120 -0
  565. package/dist/runtime/dom/range.js.map +1 -0
  566. package/dist/runtime/dom/reset.d.ts +4 -0
  567. package/dist/runtime/dom/reset.d.ts.map +1 -0
  568. package/dist/runtime/dom/reset.js +39 -0
  569. package/dist/runtime/dom/reset.js.map +1 -0
  570. package/dist/runtime/dom/select.d.ts +8 -0
  571. package/dist/runtime/dom/select.d.ts.map +1 -0
  572. package/dist/runtime/dom/select.js +175 -0
  573. package/dist/runtime/dom/select.js.map +1 -0
  574. package/dist/runtime/dom/snippet.d.ts +7 -0
  575. package/dist/runtime/dom/snippet.d.ts.map +1 -0
  576. package/dist/runtime/dom/snippet.js +49 -0
  577. package/dist/runtime/dom/snippet.js.map +1 -0
  578. package/dist/runtime/dom/styles.d.ts +6 -0
  579. package/dist/runtime/dom/styles.d.ts.map +1 -0
  580. package/dist/runtime/dom/styles.js +22 -0
  581. package/dist/runtime/dom/styles.js.map +1 -0
  582. package/dist/runtime/dom/swap.d.ts +10 -0
  583. package/dist/runtime/dom/swap.d.ts.map +1 -0
  584. package/dist/runtime/dom/swap.js +84 -0
  585. package/dist/runtime/dom/swap.js.map +1 -0
  586. package/dist/runtime/dom/targets.d.ts +9 -0
  587. package/dist/runtime/dom/targets.d.ts.map +1 -0
  588. package/dist/runtime/dom/targets.js +84 -0
  589. package/dist/runtime/dom/targets.js.map +1 -0
  590. package/dist/runtime/dom/template.d.ts +19 -0
  591. package/dist/runtime/dom/template.d.ts.map +1 -0
  592. package/dist/runtime/dom/template.js +269 -0
  593. package/dist/runtime/dom/template.js.map +1 -0
  594. package/dist/runtime/dom/trusted.d.ts +4 -0
  595. package/dist/runtime/dom/trusted.d.ts.map +1 -0
  596. package/dist/runtime/dom/trusted.js +47 -0
  597. package/dist/runtime/dom/trusted.js.map +1 -0
  598. package/dist/runtime/dom/values.d.ts +4 -0
  599. package/dist/runtime/dom/values.d.ts.map +1 -0
  600. package/dist/runtime/dom/values.js +31 -0
  601. package/dist/runtime/dom/values.js.map +1 -0
  602. package/dist/runtime/reactivity/abort.d.ts +8 -0
  603. package/dist/runtime/reactivity/abort.d.ts.map +1 -0
  604. package/dist/runtime/reactivity/abort.js +50 -0
  605. package/dist/runtime/reactivity/abort.js.map +1 -0
  606. package/dist/runtime/reactivity/async.d.ts +13 -0
  607. package/dist/runtime/reactivity/async.d.ts.map +1 -0
  608. package/dist/runtime/reactivity/async.js +285 -0
  609. package/dist/runtime/reactivity/async.js.map +1 -0
  610. package/dist/runtime/reactivity/batch.d.ts +84 -0
  611. package/dist/runtime/reactivity/batch.d.ts.map +1 -0
  612. package/dist/runtime/reactivity/batch.js +359 -0
  613. package/dist/runtime/reactivity/batch.js.map +1 -0
  614. package/dist/runtime/reactivity/carried.d.ts +15 -0
  615. package/dist/runtime/reactivity/carried.d.ts.map +1 -0
  616. package/dist/runtime/reactivity/carried.js +49 -0
  617. package/dist/runtime/reactivity/carried.js.map +1 -0
  618. package/dist/runtime/reactivity/collector.d.ts +4 -0
  619. package/dist/runtime/reactivity/collector.d.ts.map +1 -0
  620. package/dist/runtime/reactivity/collector.js +19 -0
  621. package/dist/runtime/reactivity/collector.js.map +1 -0
  622. package/dist/runtime/reactivity/drafts.d.ts +25 -0
  623. package/dist/runtime/reactivity/drafts.d.ts.map +1 -0
  624. package/dist/runtime/reactivity/drafts.js +125 -0
  625. package/dist/runtime/reactivity/drafts.js.map +1 -0
  626. package/dist/runtime/reactivity/eager.d.ts +5 -0
  627. package/dist/runtime/reactivity/eager.d.ts.map +1 -0
  628. package/dist/runtime/reactivity/eager.js +45 -0
  629. package/dist/runtime/reactivity/eager.js.map +1 -0
  630. package/dist/runtime/reactivity/edges.d.ts +14 -0
  631. package/dist/runtime/reactivity/edges.d.ts.map +1 -0
  632. package/dist/runtime/reactivity/edges.js +207 -0
  633. package/dist/runtime/reactivity/edges.js.map +1 -0
  634. package/dist/runtime/reactivity/effects.d.ts +41 -0
  635. package/dist/runtime/reactivity/effects.d.ts.map +1 -0
  636. package/dist/runtime/reactivity/effects.js +618 -0
  637. package/dist/runtime/reactivity/effects.js.map +1 -0
  638. package/dist/runtime/reactivity/errors.d.ts +12 -0
  639. package/dist/runtime/reactivity/errors.d.ts.map +1 -0
  640. package/dist/runtime/reactivity/errors.js +38 -0
  641. package/dist/runtime/reactivity/errors.js.map +1 -0
  642. package/dist/runtime/reactivity/external.d.ts +3 -0
  643. package/dist/runtime/reactivity/external.d.ts.map +1 -0
  644. package/dist/runtime/reactivity/external.js +48 -0
  645. package/dist/runtime/reactivity/external.js.map +1 -0
  646. package/dist/runtime/reactivity/fork.d.ts +6 -0
  647. package/dist/runtime/reactivity/fork.d.ts.map +1 -0
  648. package/dist/runtime/reactivity/fork.js +64 -0
  649. package/dist/runtime/reactivity/fork.js.map +1 -0
  650. package/dist/runtime/reactivity/front.d.ts +5 -0
  651. package/dist/runtime/reactivity/front.d.ts.map +1 -0
  652. package/dist/runtime/reactivity/front.js +16 -0
  653. package/dist/runtime/reactivity/front.js.map +1 -0
  654. package/dist/runtime/reactivity/graph.d.ts +86 -0
  655. package/dist/runtime/reactivity/graph.d.ts.map +1 -0
  656. package/dist/runtime/reactivity/graph.js +38 -0
  657. package/dist/runtime/reactivity/graph.js.map +1 -0
  658. package/dist/runtime/reactivity/handlers.d.ts +6 -0
  659. package/dist/runtime/reactivity/handlers.d.ts.map +1 -0
  660. package/dist/runtime/reactivity/handlers.js +48 -0
  661. package/dist/runtime/reactivity/handlers.js.map +1 -0
  662. package/dist/runtime/reactivity/held.d.ts +12 -0
  663. package/dist/runtime/reactivity/held.d.ts.map +1 -0
  664. package/dist/runtime/reactivity/held.js +343 -0
  665. package/dist/runtime/reactivity/held.js.map +1 -0
  666. package/dist/runtime/reactivity/history.d.ts +25 -0
  667. package/dist/runtime/reactivity/history.d.ts.map +1 -0
  668. package/dist/runtime/reactivity/history.js +88 -0
  669. package/dist/runtime/reactivity/history.js.map +1 -0
  670. package/dist/runtime/reactivity/latest.d.ts +2 -0
  671. package/dist/runtime/reactivity/latest.d.ts.map +1 -0
  672. package/dist/runtime/reactivity/latest.js +42 -0
  673. package/dist/runtime/reactivity/latest.js.map +1 -0
  674. package/dist/runtime/reactivity/leaving.d.ts +30 -0
  675. package/dist/runtime/reactivity/leaving.d.ts.map +1 -0
  676. package/dist/runtime/reactivity/leaving.js +278 -0
  677. package/dist/runtime/reactivity/leaving.js.map +1 -0
  678. package/dist/runtime/reactivity/loss.d.ts +5 -0
  679. package/dist/runtime/reactivity/loss.d.ts.map +1 -0
  680. package/dist/runtime/reactivity/loss.js +70 -0
  681. package/dist/runtime/reactivity/loss.js.map +1 -0
  682. package/dist/runtime/reactivity/outgoing.d.ts +11 -0
  683. package/dist/runtime/reactivity/outgoing.d.ts.map +1 -0
  684. package/dist/runtime/reactivity/outgoing.js +37 -0
  685. package/dist/runtime/reactivity/outgoing.js.map +1 -0
  686. package/dist/runtime/reactivity/owners.d.ts +33 -0
  687. package/dist/runtime/reactivity/owners.d.ts.map +1 -0
  688. package/dist/runtime/reactivity/owners.js +215 -0
  689. package/dist/runtime/reactivity/owners.js.map +1 -0
  690. package/dist/runtime/reactivity/past.d.ts +9 -0
  691. package/dist/runtime/reactivity/past.d.ts.map +1 -0
  692. package/dist/runtime/reactivity/past.js +57 -0
  693. package/dist/runtime/reactivity/past.js.map +1 -0
  694. package/dist/runtime/reactivity/provenance.d.ts +34 -0
  695. package/dist/runtime/reactivity/provenance.d.ts.map +1 -0
  696. package/dist/runtime/reactivity/provenance.js +163 -0
  697. package/dist/runtime/reactivity/provenance.js.map +1 -0
  698. package/dist/runtime/reactivity/proxy.d.ts +6 -0
  699. package/dist/runtime/reactivity/proxy.d.ts.map +1 -0
  700. package/dist/runtime/reactivity/proxy.js +219 -0
  701. package/dist/runtime/reactivity/proxy.js.map +1 -0
  702. package/dist/runtime/reactivity/public.d.ts +16 -0
  703. package/dist/runtime/reactivity/public.d.ts.map +1 -0
  704. package/dist/runtime/reactivity/public.js +28 -0
  705. package/dist/runtime/reactivity/public.js.map +1 -0
  706. package/dist/runtime/reactivity/reads.d.ts +7 -0
  707. package/dist/runtime/reactivity/reads.d.ts.map +1 -0
  708. package/dist/runtime/reactivity/reads.js +383 -0
  709. package/dist/runtime/reactivity/reads.js.map +1 -0
  710. package/dist/runtime/reactivity/scheduler.d.ts +8 -0
  711. package/dist/runtime/reactivity/scheduler.d.ts.map +1 -0
  712. package/dist/runtime/reactivity/scheduler.js +406 -0
  713. package/dist/runtime/reactivity/scheduler.js.map +1 -0
  714. package/dist/runtime/reactivity/settle.d.ts +6 -0
  715. package/dist/runtime/reactivity/settle.d.ts.map +1 -0
  716. package/dist/runtime/reactivity/settle.js +76 -0
  717. package/dist/runtime/reactivity/settle.js.map +1 -0
  718. package/dist/runtime/reactivity/sources.d.ts +17 -0
  719. package/dist/runtime/reactivity/sources.d.ts.map +1 -0
  720. package/dist/runtime/reactivity/sources.js +124 -0
  721. package/dist/runtime/reactivity/sources.js.map +1 -0
  722. package/dist/runtime/reactivity/tallies.d.ts +12 -0
  723. package/dist/runtime/reactivity/tallies.d.ts.map +1 -0
  724. package/dist/runtime/reactivity/tallies.js +25 -0
  725. package/dist/runtime/reactivity/tallies.js.map +1 -0
  726. package/dist/runtime/reactivity/tasks.d.ts +3 -0
  727. package/dist/runtime/reactivity/tasks.d.ts.map +1 -0
  728. package/dist/runtime/reactivity/tasks.js +35 -0
  729. package/dist/runtime/reactivity/tasks.js.map +1 -0
  730. package/dist/runtime/reactivity/trace.d.ts +5 -0
  731. package/dist/runtime/reactivity/trace.d.ts.map +1 -0
  732. package/dist/runtime/reactivity/trace.js +109 -0
  733. package/dist/runtime/reactivity/trace.js.map +1 -0
  734. package/dist/runtime/reactivity/tracking.d.ts +62 -0
  735. package/dist/runtime/reactivity/tracking.d.ts.map +1 -0
  736. package/dist/runtime/reactivity/tracking.js +520 -0
  737. package/dist/runtime/reactivity/tracking.js.map +1 -0
  738. package/dist/runtime/reactivity/units.d.ts +12 -0
  739. package/dist/runtime/reactivity/units.d.ts.map +1 -0
  740. package/dist/runtime/reactivity/units.js +112 -0
  741. package/dist/runtime/reactivity/units.js.map +1 -0
  742. package/dist/runtime/reactivity/views.d.ts +12 -0
  743. package/dist/runtime/reactivity/views.d.ts.map +1 -0
  744. package/dist/runtime/reactivity/views.js +105 -0
  745. package/dist/runtime/reactivity/views.js.map +1 -0
  746. package/dist/runtime/server/attributes.d.ts +9 -0
  747. package/dist/runtime/server/attributes.d.ts.map +1 -0
  748. package/dist/runtime/server/attributes.js +73 -0
  749. package/dist/runtime/server/attributes.js.map +1 -0
  750. package/dist/runtime/server/cells.d.ts +9 -0
  751. package/dist/runtime/server/cells.d.ts.map +1 -0
  752. package/dist/runtime/server/cells.js +120 -0
  753. package/dist/runtime/server/cells.js.map +1 -0
  754. package/dist/runtime/server/context.d.ts +51 -0
  755. package/dist/runtime/server/context.d.ts.map +1 -0
  756. package/dist/runtime/server/context.js +260 -0
  757. package/dist/runtime/server/context.js.map +1 -0
  758. package/dist/runtime/server/derived.d.ts +5 -0
  759. package/dist/runtime/server/derived.d.ts.map +1 -0
  760. package/dist/runtime/server/derived.js +30 -0
  761. package/dist/runtime/server/derived.js.map +1 -0
  762. package/dist/runtime/server/external.d.ts +3 -0
  763. package/dist/runtime/server/external.d.ts.map +1 -0
  764. package/dist/runtime/server/external.js +53 -0
  765. package/dist/runtime/server/external.js.map +1 -0
  766. package/dist/runtime/server/hydration.d.ts +26 -0
  767. package/dist/runtime/server/hydration.d.ts.map +1 -0
  768. package/dist/runtime/server/hydration.js +187 -0
  769. package/dist/runtime/server/hydration.js.map +1 -0
  770. package/dist/runtime/server/placement.d.ts +9 -0
  771. package/dist/runtime/server/placement.d.ts.map +1 -0
  772. package/dist/runtime/server/placement.js +35 -0
  773. package/dist/runtime/server/placement.js.map +1 -0
  774. package/dist/runtime/server/render.d.ts +89 -0
  775. package/dist/runtime/server/render.d.ts.map +1 -0
  776. package/dist/runtime/server/render.js +470 -0
  777. package/dist/runtime/server/render.js.map +1 -0
  778. package/dist/runtime/server/snippet.d.ts +7 -0
  779. package/dist/runtime/server/snippet.d.ts.map +1 -0
  780. package/dist/runtime/server/snippet.js +15 -0
  781. package/dist/runtime/server/snippet.js.map +1 -0
  782. package/dist/runtime/transitions/animate.d.ts +22 -0
  783. package/dist/runtime/transitions/animate.d.ts.map +1 -0
  784. package/dist/runtime/transitions/animate.js +140 -0
  785. package/dist/runtime/transitions/animate.js.map +1 -0
  786. package/dist/runtime/transitions/easing.d.ts +33 -0
  787. package/dist/runtime/transitions/easing.d.ts.map +1 -0
  788. package/dist/runtime/transitions/easing.js +128 -0
  789. package/dist/runtime/transitions/easing.js.map +1 -0
  790. package/dist/runtime/transitions/flip.d.ts +12 -0
  791. package/dist/runtime/transitions/flip.d.ts.map +1 -0
  792. package/dist/runtime/transitions/flip.js +51 -0
  793. package/dist/runtime/transitions/flip.js.map +1 -0
  794. package/dist/runtime/transitions/frame.d.ts +37 -0
  795. package/dist/runtime/transitions/frame.d.ts.map +1 -0
  796. package/dist/runtime/transitions/frame.js +219 -0
  797. package/dist/runtime/transitions/frame.js.map +1 -0
  798. package/dist/runtime/transitions/layout.d.ts +37 -0
  799. package/dist/runtime/transitions/layout.d.ts.map +1 -0
  800. package/dist/runtime/transitions/layout.js +150 -0
  801. package/dist/runtime/transitions/layout.js.map +1 -0
  802. package/dist/runtime/transitions/manager.d.ts +30 -0
  803. package/dist/runtime/transitions/manager.d.ts.map +1 -0
  804. package/dist/runtime/transitions/manager.js +278 -0
  805. package/dist/runtime/transitions/manager.js.map +1 -0
  806. package/dist/runtime/transitions/placement.d.ts +25 -0
  807. package/dist/runtime/transitions/placement.d.ts.map +1 -0
  808. package/dist/runtime/transitions/placement.js +135 -0
  809. package/dist/runtime/transitions/placement.js.map +1 -0
  810. package/dist/runtime/transitions/presets.d.ts +53 -0
  811. package/dist/runtime/transitions/presets.d.ts.map +1 -0
  812. package/dist/runtime/transitions/presets.js +266 -0
  813. package/dist/runtime/transitions/presets.js.map +1 -0
  814. package/dist/shared/abort.d.ts +6 -0
  815. package/dist/shared/abort.d.ts.map +1 -0
  816. package/dist/shared/abort.js +8 -0
  817. package/dist/shared/abort.js.map +1 -0
  818. package/dist/shared/assignment.d.ts +6 -0
  819. package/dist/shared/assignment.d.ts.map +1 -0
  820. package/dist/shared/assignment.js +19 -0
  821. package/dist/shared/assignment.js.map +1 -0
  822. package/dist/shared/attributes.d.ts +8 -0
  823. package/dist/shared/attributes.d.ts.map +1 -0
  824. package/dist/shared/attributes.js +120 -0
  825. package/dist/shared/attributes.js.map +1 -0
  826. package/dist/shared/clone.d.ts +2 -0
  827. package/dist/shared/clone.d.ts.map +1 -0
  828. package/dist/shared/clone.js +76 -0
  829. package/dist/shared/clone.js.map +1 -0
  830. package/dist/shared/context.d.ts +15 -0
  831. package/dist/shared/context.d.ts.map +1 -0
  832. package/dist/shared/context.js +16 -0
  833. package/dist/shared/context.js.map +1 -0
  834. package/dist/shared/diagnostics.d.ts +22 -0
  835. package/dist/shared/diagnostics.d.ts.map +1 -0
  836. package/dist/shared/diagnostics.js +58 -0
  837. package/dist/shared/diagnostics.js.map +1 -0
  838. package/dist/shared/escape.d.ts +3 -0
  839. package/dist/shared/escape.d.ts.map +1 -0
  840. package/dist/shared/escape.js +17 -0
  841. package/dist/shared/escape.js.map +1 -0
  842. package/dist/shared/external.d.ts +37 -0
  843. package/dist/shared/external.d.ts.map +1 -0
  844. package/dist/shared/external.js +76 -0
  845. package/dist/shared/external.js.map +1 -0
  846. package/dist/shared/format.d.ts +9 -0
  847. package/dist/shared/format.d.ts.map +1 -0
  848. package/dist/shared/format.js +10 -0
  849. package/dist/shared/format.js.map +1 -0
  850. package/dist/shared/hash.d.ts +2 -0
  851. package/dist/shared/hash.d.ts.map +1 -0
  852. package/dist/shared/hash.js +9 -0
  853. package/dist/shared/hash.js.map +1 -0
  854. package/dist/shared/html.d.ts +18 -0
  855. package/dist/shared/html.d.ts.map +1 -0
  856. package/dist/shared/html.js +277 -0
  857. package/dist/shared/html.js.map +1 -0
  858. package/dist/shared/markers.d.ts +12 -0
  859. package/dist/shared/markers.d.ts.map +1 -0
  860. package/dist/shared/markers.js +16 -0
  861. package/dist/shared/markers.js.map +1 -0
  862. package/dist/shared/nesting.d.ts +3 -0
  863. package/dist/shared/nesting.d.ts.map +1 -0
  864. package/dist/shared/nesting.js +143 -0
  865. package/dist/shared/nesting.js.map +1 -0
  866. package/dist/shared/slots.d.ts +8 -0
  867. package/dist/shared/slots.d.ts.map +1 -0
  868. package/dist/shared/slots.js +9 -0
  869. package/dist/shared/slots.js.map +1 -0
  870. package/dist/shared/snippet.d.ts +11 -0
  871. package/dist/shared/snippet.d.ts.map +1 -0
  872. package/dist/shared/snippet.js +11 -0
  873. package/dist/shared/snippet.js.map +1 -0
  874. package/package.json +54 -3
  875. package/src/compiler/analysis/asynchronous.ts +206 -0
  876. package/src/compiler/analysis/classes.ts +110 -0
  877. package/src/compiler/analysis/ignoring.ts +25 -0
  878. package/src/compiler/analysis/index.ts +433 -0
  879. package/src/compiler/analysis/scope.ts +410 -0
  880. package/src/compiler/analysis/template.ts +525 -0
  881. package/src/compiler/analysis/validate/a11y/attributes.ts +252 -0
  882. package/src/compiler/analysis/validate/a11y/axobject-query.d.ts +20 -0
  883. package/src/compiler/analysis/validate/a11y/elements.ts +241 -0
  884. package/src/compiler/analysis/validate/a11y/facts.ts +102 -0
  885. package/src/compiler/analysis/validate/a11y/fuzzy.ts +123 -0
  886. package/src/compiler/analysis/validate/a11y/index.ts +24 -0
  887. package/src/compiler/analysis/validate/a11y/interactions.ts +125 -0
  888. package/src/compiler/analysis/validate/a11y/roles.ts +182 -0
  889. package/src/compiler/analysis/validate/a11y/tables.ts +250 -0
  890. package/src/compiler/analysis/validate/assignment.ts +74 -0
  891. package/src/compiler/analysis/validate/bindings.ts +210 -0
  892. package/src/compiler/analysis/validate/classes.ts +102 -0
  893. package/src/compiler/analysis/validate/context.ts +119 -0
  894. package/src/compiler/analysis/validate/element.ts +148 -0
  895. package/src/compiler/analysis/validate/front.ts +75 -0
  896. package/src/compiler/analysis/validate/index.ts +268 -0
  897. package/src/compiler/analysis/validate/messages.ts +451 -0
  898. package/src/compiler/analysis/validate/report.ts +100 -0
  899. package/src/compiler/analysis/validate/scope.ts +241 -0
  900. package/src/compiler/analysis/validate/scopes.ts +460 -0
  901. package/src/compiler/analysis/validate/script.ts +528 -0
  902. package/src/compiler/analysis/validate/template.ts +326 -0
  903. package/src/compiler/analysis/whitespace.ts +87 -0
  904. package/src/compiler/client/asynchronous.ts +68 -0
  905. package/src/compiler/client/bindings.ts +246 -0
  906. package/src/compiler/client/blocks.ts +239 -0
  907. package/src/compiler/client/classes.ts +154 -0
  908. package/src/compiler/client/component.ts +549 -0
  909. package/src/compiler/client/constants.ts +107 -0
  910. package/src/compiler/client/custom-element.ts +173 -0
  911. package/src/compiler/client/directives.ts +35 -0
  912. package/src/compiler/client/dynamic.ts +85 -0
  913. package/src/compiler/client/element.ts +631 -0
  914. package/src/compiler/client/events.ts +147 -0
  915. package/src/compiler/client/exports.ts +39 -0
  916. package/src/compiler/client/external.ts +190 -0
  917. package/src/compiler/client/hot.ts +62 -0
  918. package/src/compiler/client/index.ts +307 -0
  919. package/src/compiler/client/inspect.ts +153 -0
  920. package/src/compiler/client/loss.ts +53 -0
  921. package/src/compiler/client/markup.ts +126 -0
  922. package/src/compiler/client/meta.ts +64 -0
  923. package/src/compiler/client/ownership.ts +54 -0
  924. package/src/compiler/client/parameters.ts +38 -0
  925. package/src/compiler/client/patterns.ts +154 -0
  926. package/src/compiler/client/script.ts +587 -0
  927. package/src/compiler/client/special.ts +177 -0
  928. package/src/compiler/client/template.ts +533 -0
  929. package/src/compiler/client/transitions.ts +38 -0
  930. package/src/compiler/client/values.ts +52 -0
  931. package/src/compiler/css/analyze.ts +281 -0
  932. package/src/compiler/css/attributes.ts +195 -0
  933. package/src/compiler/css/hash.ts +1 -0
  934. package/src/compiler/css/index.ts +152 -0
  935. package/src/compiler/css/marks.ts +142 -0
  936. package/src/compiler/css/prune.ts +466 -0
  937. package/src/compiler/css/relations.ts +264 -0
  938. package/src/compiler/css/render.ts +422 -0
  939. package/src/compiler/css/template.ts +297 -0
  940. package/src/compiler/ir/estree.ts +256 -0
  941. package/src/compiler/ir/maps.ts +64 -0
  942. package/src/compiler/ir/nodes.ts +263 -0
  943. package/src/compiler/ir/port.ts +88 -0
  944. package/src/compiler/ir/runtime.ts +19 -0
  945. package/src/compiler/ir/script.ts +34 -0
  946. package/src/compiler/ir/style.ts +120 -0
  947. package/src/compiler/server/asynchronous.ts +71 -0
  948. package/src/compiler/server/bindings.ts +101 -0
  949. package/src/compiler/server/blocks.ts +165 -0
  950. package/src/compiler/server/classes.ts +139 -0
  951. package/src/compiler/server/component.ts +400 -0
  952. package/src/compiler/server/external.ts +176 -0
  953. package/src/compiler/server/index.ts +205 -0
  954. package/src/compiler/server/placement.ts +58 -0
  955. package/src/compiler/server/script.ts +492 -0
  956. package/src/compiler/server/slot.ts +51 -0
  957. package/src/compiler/server/special.ts +60 -0
  958. package/src/compiler/server/template.ts +620 -0
  959. package/src/entries/action.ts +20 -0
  960. package/src/entries/animate.ts +3 -0
  961. package/src/entries/attachments.ts +30 -0
  962. package/src/entries/compiler.ts +206 -0
  963. package/src/entries/easing.ts +1 -0
  964. package/src/entries/events.ts +10 -0
  965. package/src/entries/index-server.ts +118 -0
  966. package/src/entries/index.ts +50 -0
  967. package/src/entries/internal/client.ts +135 -0
  968. package/src/entries/internal/server.ts +46 -0
  969. package/src/entries/motion-server.ts +5 -0
  970. package/src/entries/motion.ts +5 -0
  971. package/src/entries/reactivity-server.ts +7 -0
  972. package/src/entries/reactivity.ts +7 -0
  973. package/src/entries/server.ts +11 -0
  974. package/src/entries/transition.ts +12 -0
  975. package/src/entries/window-server.ts +12 -0
  976. package/src/entries/window.ts +12 -0
  977. package/src/runtime/classes/date.ts +65 -0
  978. package/src/runtime/classes/frames.ts +27 -0
  979. package/src/runtime/classes/local.ts +7 -0
  980. package/src/runtime/classes/map.ts +135 -0
  981. package/src/runtime/classes/media.ts +25 -0
  982. package/src/runtime/classes/motion.ts +3 -0
  983. package/src/runtime/classes/search.ts +136 -0
  984. package/src/runtime/classes/server.ts +17 -0
  985. package/src/runtime/classes/set.ts +146 -0
  986. package/src/runtime/classes/spring.ts +199 -0
  987. package/src/runtime/classes/subscriber.ts +50 -0
  988. package/src/runtime/classes/tween.ts +128 -0
  989. package/src/runtime/classes/url.ts +152 -0
  990. package/src/runtime/classes/window-server.ts +27 -0
  991. package/src/runtime/classes/window.ts +72 -0
  992. package/src/runtime/dom/async.ts +208 -0
  993. package/src/runtime/dom/attachments.ts +139 -0
  994. package/src/runtime/dom/attributes.ts +526 -0
  995. package/src/runtime/dom/await.ts +108 -0
  996. package/src/runtime/dom/bindings.ts +369 -0
  997. package/src/runtime/dom/blocks.ts +39 -0
  998. package/src/runtime/dom/boundary.ts +349 -0
  999. package/src/runtime/dom/branches.ts +219 -0
  1000. package/src/runtime/dom/context.ts +90 -0
  1001. package/src/runtime/dom/custom-element.ts +214 -0
  1002. package/src/runtime/dom/data.ts +131 -0
  1003. package/src/runtime/dom/element.ts +89 -0
  1004. package/src/runtime/dom/events.ts +254 -0
  1005. package/src/runtime/dom/head.ts +56 -0
  1006. package/src/runtime/dom/hot.ts +45 -0
  1007. package/src/runtime/dom/html.ts +92 -0
  1008. package/src/runtime/dom/hydration.ts +108 -0
  1009. package/src/runtime/dom/inspect.ts +70 -0
  1010. package/src/runtime/dom/list.ts +432 -0
  1011. package/src/runtime/dom/media.ts +164 -0
  1012. package/src/runtime/dom/meta.ts +67 -0
  1013. package/src/runtime/dom/mount.ts +190 -0
  1014. package/src/runtime/dom/ownership.ts +45 -0
  1015. package/src/runtime/dom/props.ts +212 -0
  1016. package/src/runtime/dom/range.ts +132 -0
  1017. package/src/runtime/dom/reset.ts +39 -0
  1018. package/src/runtime/dom/select.ts +184 -0
  1019. package/src/runtime/dom/snippet.ts +54 -0
  1020. package/src/runtime/dom/styles.ts +26 -0
  1021. package/src/runtime/dom/swap.ts +117 -0
  1022. package/src/runtime/dom/targets.ts +96 -0
  1023. package/src/runtime/dom/template.ts +319 -0
  1024. package/src/runtime/dom/trusted.ts +81 -0
  1025. package/src/runtime/dom/values.ts +33 -0
  1026. package/src/runtime/reactivity/abort.ts +56 -0
  1027. package/src/runtime/reactivity/async.ts +272 -0
  1028. package/src/runtime/reactivity/batch.ts +382 -0
  1029. package/src/runtime/reactivity/carried.ts +64 -0
  1030. package/src/runtime/reactivity/collector.ts +20 -0
  1031. package/src/runtime/reactivity/drafts.ts +126 -0
  1032. package/src/runtime/reactivity/eager.ts +45 -0
  1033. package/src/runtime/reactivity/edges.ts +210 -0
  1034. package/src/runtime/reactivity/effects.ts +669 -0
  1035. package/src/runtime/reactivity/errors.ts +73 -0
  1036. package/src/runtime/reactivity/external.ts +56 -0
  1037. package/src/runtime/reactivity/fork.ts +60 -0
  1038. package/src/runtime/reactivity/front.ts +20 -0
  1039. package/src/runtime/reactivity/graph.ts +129 -0
  1040. package/src/runtime/reactivity/handlers.ts +55 -0
  1041. package/src/runtime/reactivity/held.ts +337 -0
  1042. package/src/runtime/reactivity/history.ts +108 -0
  1043. package/src/runtime/reactivity/latest.ts +41 -0
  1044. package/src/runtime/reactivity/leaving.ts +303 -0
  1045. package/src/runtime/reactivity/loss.ts +71 -0
  1046. package/src/runtime/reactivity/outgoing.ts +41 -0
  1047. package/src/runtime/reactivity/owners.ts +234 -0
  1048. package/src/runtime/reactivity/past.ts +57 -0
  1049. package/src/runtime/reactivity/provenance.ts +189 -0
  1050. package/src/runtime/reactivity/proxy.ts +212 -0
  1051. package/src/runtime/reactivity/public.ts +51 -0
  1052. package/src/runtime/reactivity/reads.ts +376 -0
  1053. package/src/runtime/reactivity/scheduler.ts +400 -0
  1054. package/src/runtime/reactivity/settle.ts +73 -0
  1055. package/src/runtime/reactivity/sources.ts +150 -0
  1056. package/src/runtime/reactivity/tallies.ts +34 -0
  1057. package/src/runtime/reactivity/tasks.ts +33 -0
  1058. package/src/runtime/reactivity/trace.ts +113 -0
  1059. package/src/runtime/reactivity/tracking.ts +569 -0
  1060. package/src/runtime/reactivity/units.ts +103 -0
  1061. package/src/runtime/reactivity/views.ts +114 -0
  1062. package/src/runtime/server/attributes.ts +80 -0
  1063. package/src/runtime/server/cells.ts +135 -0
  1064. package/src/runtime/server/context.ts +319 -0
  1065. package/src/runtime/server/derived.ts +37 -0
  1066. package/src/runtime/server/external.ts +59 -0
  1067. package/src/runtime/server/hydration.ts +238 -0
  1068. package/src/runtime/server/placement.ts +47 -0
  1069. package/src/runtime/server/render.ts +612 -0
  1070. package/src/runtime/server/snippet.ts +21 -0
  1071. package/src/runtime/transitions/animate.ts +161 -0
  1072. package/src/runtime/transitions/easing.ts +153 -0
  1073. package/src/runtime/transitions/flip.ts +66 -0
  1074. package/src/runtime/transitions/frame.ts +273 -0
  1075. package/src/runtime/transitions/layout.ts +176 -0
  1076. package/src/runtime/transitions/manager.ts +343 -0
  1077. package/src/runtime/transitions/placement.ts +161 -0
  1078. package/src/runtime/transitions/presets.ts +369 -0
  1079. package/src/shared/abort.ts +8 -0
  1080. package/src/shared/assignment.ts +27 -0
  1081. package/src/shared/attributes.ts +123 -0
  1082. package/src/shared/clone.ts +82 -0
  1083. package/src/shared/context.ts +35 -0
  1084. package/src/shared/diagnostics.ts +83 -0
  1085. package/src/shared/escape.ts +20 -0
  1086. package/src/shared/external.ts +113 -0
  1087. package/src/shared/format.ts +17 -0
  1088. package/src/shared/hash.ts +8 -0
  1089. package/src/shared/html.ts +298 -0
  1090. package/src/shared/markers.ts +25 -0
  1091. package/src/shared/nesting.ts +156 -0
  1092. package/src/shared/slots.ts +16 -0
  1093. package/src/shared/snippet.ts +29 -0
@@ -0,0 +1,669 @@
1
+ import {
2
+ BLOCK,
3
+ BRANCH,
4
+ CLEAN,
5
+ DIRTY,
6
+ EAGER,
7
+ EFFECT,
8
+ ROOT,
9
+ TEMPLATE,
10
+ isDerived,
11
+ type Boundary,
12
+ type Derived,
13
+ type Effect,
14
+ type Kind,
15
+ type Reaction,
16
+ type Source
17
+ } from './graph.ts';
18
+ import { failure, unhandled } from '../../shared/diagnostics.ts';
19
+ import {
20
+ abort,
21
+ abortLifetime,
22
+ evaluationSignal,
23
+ lifetime,
24
+ restoreSignal,
25
+ takeSignal
26
+ } from './abort.ts';
27
+ import {
28
+ alias,
29
+ collect,
30
+ offscreen,
31
+ orphaned,
32
+ pending,
33
+ processed,
34
+ revisit,
35
+ schedule,
36
+ type Batch
37
+ } from './batch.ts';
38
+ import {
39
+ admit,
40
+ capture,
41
+ closing,
42
+ createdBy,
43
+ draftOf,
44
+ drafting,
45
+ draftedIn,
46
+ draftsOf,
47
+ enlist,
48
+ inDrafts,
49
+ take,
50
+ type Draft
51
+ } from './drafts.ts';
52
+ import { frontOf, setFront } from './front.ts';
53
+ import { handlerOf } from './handlers.ts';
54
+ import { orphan, teardownOrphan } from './errors.ts';
55
+ import { ownLeaving } from './outgoing.ts';
56
+ import { presently, retire } from './past.ts';
57
+ import {
58
+ deriving,
59
+ evaluation,
60
+ marked,
61
+ owner,
62
+ present,
63
+ reading,
64
+ resuming,
65
+ running,
66
+ setOwner,
67
+ takeHidden,
68
+ track,
69
+ withoutReaction,
70
+ view
71
+ } from './tracking.ts';
72
+ import { observe, unsubscribe } from './edges.ts';
73
+
74
+ let created = 0;
75
+
76
+ export interface Aside {
77
+ readonly effects: Effect[] | null;
78
+ readonly frozen: Effect[] | null;
79
+ readonly signal: AbortController | undefined;
80
+ }
81
+
82
+ function register(reaction: Reaction, draft: Draft): void {
83
+ const batch = draft.batch;
84
+ if (!enlist(reaction, draft)) return;
85
+ (batch.settles ??= []).push(() => close(batch));
86
+ batch.commits.push({ apply: () => adopt(batch) });
87
+ }
88
+
89
+ function drop(reaction: Reaction, draft: Draft): void {
90
+ take(reaction, draft);
91
+ const parent = isDerived(reaction) ? reaction.owner : (reaction as Effect);
92
+ if (parent !== null) destroyChildren(parent, false, (child) => draft.children.has(child));
93
+ for (const child of draft.children) destroy(child);
94
+ const created = draft.created;
95
+ if (created !== null) {
96
+ const holder = reaction as Effect;
97
+ const owned = holder.owned?.filter((derived) => !created.has(derived)) ?? [];
98
+ holder.owned = owned.length === 0 ? null : owned;
99
+ for (const derived of created) disconnect(derived);
100
+ }
101
+ if (draft.teardown !== null) dispose(reaction as Effect, draft.teardown);
102
+ }
103
+
104
+ function dropAll(reaction: Reaction): void {
105
+ for (const draft of [...draftsOf(reaction)]) drop(reaction, draft);
106
+ }
107
+
108
+ function close(batch: Batch): void {
109
+ const cohort = alias(batch);
110
+ for (const reaction of closing(batch) ?? []) {
111
+ if (!cohort.discarded && isDerived(reaction)) {
112
+ install(reaction, cohort);
113
+ continue;
114
+ }
115
+ const draft = draftOf(reaction, batch);
116
+ if (draft !== undefined) drop(reaction, draft);
117
+ }
118
+ }
119
+
120
+ function install(derived: Derived, cohort: Batch): void {
121
+ const found = draftsOf(derived).filter((draft) => alias(draft.batch) === cohort);
122
+ const latest = found.pop();
123
+ if (latest === undefined) return;
124
+ for (const draft of found) drop(derived, draft);
125
+ take(derived, latest);
126
+ const replaced = derived.effects;
127
+ const effects = [...latest.children].filter((effect) => !effect.destroyed);
128
+ derived.effects = effects.length === 0 ? null : effects;
129
+ derived.frozen = null;
130
+ restoreSignal(derived, latest.signal);
131
+ for (const effect of replaced ?? []) destroy(effect);
132
+ if (derived.reactions === null) freeze(derived);
133
+ }
134
+
135
+ function adopt(batch: Batch): void {
136
+ for (const reaction of draftedIn(batch) ?? []) {
137
+ if (isDerived(reaction)) continue;
138
+ const effect = reaction as Effect;
139
+ const draft = draftOf(effect, batch);
140
+ if (draft === undefined || effect.destroyed) continue;
141
+ if (!draft.speculative || effect.batch === batch.order) promote(effect, draft);
142
+ }
143
+ }
144
+
145
+ function promote(effect: Effect, draft: Draft): void {
146
+ take(effect, draft);
147
+ restoreSignal(effect, draft.signal);
148
+ const found = [draft, ...draftsOf(effect)];
149
+ destroyChildren(effect, effect.kind === BLOCK, (child) => !inDrafts(found, child));
150
+ const owned = effect.owned;
151
+ effect.owned = null;
152
+ for (const derived of owned ?? []) {
153
+ if (createdBy(found, derived)) (effect.owned ??= []).push(derived);
154
+ else disconnect(derived);
155
+ }
156
+ const teardown = effect.teardown;
157
+ effect.teardown = draft.teardown;
158
+ if (teardown !== null) dispose(effect, teardown);
159
+ }
160
+
161
+ export function setAside(derived: Derived): Aside {
162
+ const aside = { effects: derived.effects, frozen: derived.frozen, signal: takeSignal(derived) };
163
+ derived.effects = derived.frozen = null;
164
+ return aside;
165
+ }
166
+
167
+ export function discardAside(derived: Derived, aside: Aside): void {
168
+ for (const effect of aside.effects ?? []) destroy(effect);
169
+ if (drafting !== 0) dropAll(derived);
170
+ }
171
+
172
+ export function restoreAside(derived: Derived, aside: Aside, batch: Batch): void {
173
+ if (batch.done && !alias(batch).discarded) return discardAside(derived, aside);
174
+ const children = derived.effects ?? [];
175
+ const signal = takeSignal(derived);
176
+ derived.effects = aside.effects;
177
+ derived.frozen = aside.frozen;
178
+ restoreSignal(derived, aside.signal);
179
+ const previous = draftOf(derived, batch);
180
+ if (batch.done) for (const child of children) destroy(child);
181
+ else if (children.length > 0) {
182
+ const draft: Draft = {
183
+ batch,
184
+ speculative: batch.fork,
185
+ children: new Set(),
186
+ created: null,
187
+ teardown: null,
188
+ signal
189
+ };
190
+ for (const child of children) admit(draft, child);
191
+ register(derived, draft);
192
+ }
193
+ if (previous !== undefined) drop(derived, previous);
194
+ }
195
+
196
+ function ownEffect(effect: Effect): Derived | null {
197
+ const derived = deriving();
198
+ if (derived === null || effect.kind === ROOT || effect.parent !== derived.owner) return null;
199
+ if (!ownLeaving(effect)) (derived.effects ??= []).push(effect);
200
+ return derived;
201
+ }
202
+
203
+ export function destroyEffects(derived: Derived): void {
204
+ if (drafting !== 0) dropAll(derived);
205
+ const effects = derived.effects;
206
+ if (effects === null) return;
207
+ derived.effects = derived.frozen = null;
208
+ for (const effect of effects) destroy(effect);
209
+ }
210
+
211
+ const ended = new WeakMap<Derived, readonly Source[]>();
212
+
213
+ export function endedInputs(derived: Derived): readonly Source[] | undefined {
214
+ return ended.get(derived);
215
+ }
216
+
217
+ function disconnect(derived: Derived): void {
218
+ const deps = derived.deps;
219
+ destroyEffects(derived);
220
+ unsubscribe(derived);
221
+ if (derived.lapses && deps !== null && derived.owner?.destroyed === true)
222
+ ended.set(derived, deps);
223
+ derived.status = DIRTY;
224
+ marked();
225
+ }
226
+
227
+ export function hide(effect: Effect): void {
228
+ if (effect.destroyed || offscreen.has(effect)) return;
229
+ offscreen.add(effect);
230
+ effect.inert = true;
231
+ }
232
+
233
+ export function show(effect: Effect): void {
234
+ if (!offscreen.delete(effect)) return;
235
+ effect.inert = false;
236
+ }
237
+
238
+ function create(kind: Kind, fn: (() => void | (() => void)) | null, parent: Effect | null): Effect {
239
+ const effect: Effect = {
240
+ kind,
241
+ status: DIRTY,
242
+ batch: 0,
243
+ forked: false,
244
+ async: false,
245
+ deps: null,
246
+ rv: 0,
247
+ fn,
248
+ teardown: null,
249
+ parent,
250
+ first: null,
251
+ last: null,
252
+ prev: null,
253
+ next: null,
254
+ owned: null,
255
+ units: null,
256
+ boundary: parent === null ? null : parent.boundary,
257
+ context: parent === null ? null : parent.context,
258
+ order: ++created,
259
+ running: false,
260
+ destroyed: false,
261
+ inert: false,
262
+ pending: false,
263
+ scope: false,
264
+ preserved: false,
265
+ slots: null,
266
+ captured: null
267
+ };
268
+ if (parent !== null) {
269
+ effect.prev = parent.last;
270
+ if (parent.last === null) parent.first = effect;
271
+ else parent.last.next = effect;
272
+ parent.last = effect;
273
+ }
274
+ const claimer = ownEffect(effect);
275
+ if (drafting !== 0 && parent !== null) capture(parent, effect, claimer);
276
+ return effect;
277
+ }
278
+
279
+ function release(effect: Effect): void {
280
+ for (const derived of effect.owned ?? []) disconnect(derived);
281
+ effect.owned = null;
282
+ }
283
+
284
+ export function fail(effect: Effect | null, error: unknown): void {
285
+ for (let at = effect; at !== null; at = at.parent) {
286
+ const handler = handlerOf(at);
287
+ if (handler !== null) {
288
+ try {
289
+ handler.failed(error);
290
+ return;
291
+ } catch (thrown) {
292
+ error = thrown;
293
+ }
294
+ }
295
+ const boundary = at.boundary;
296
+ if (boundary !== null && boundary !== (at.parent?.boundary ?? null)) {
297
+ boundary.failed(error);
298
+ return;
299
+ }
300
+ }
301
+ escape(effect, error);
302
+ }
303
+
304
+ let creating = 0;
305
+ let scheduling = 0;
306
+
307
+ export function enterScheduler(): number {
308
+ scheduling++;
309
+ const outer = creating;
310
+ creating = 0;
311
+ return outer;
312
+ }
313
+
314
+ export function leaveScheduler(outer: number): void {
315
+ scheduling--;
316
+ creating = outer;
317
+ }
318
+
319
+ export function escape(effect: Effect | null, error: unknown): void {
320
+ if (effect === null || creating > 0 || scheduling === 0) throw error;
321
+ unhandled(frontOf(effect), error);
322
+ }
323
+
324
+ export function overflow(effect: Effect, error: unknown): void {
325
+ const outer = enterScheduler();
326
+ try {
327
+ fail(effect, error);
328
+ } finally {
329
+ leaveScheduler(outer);
330
+ }
331
+ }
332
+
333
+ function dispose(effect: Effect, teardown: () => void): void {
334
+ try {
335
+ retire(teardown);
336
+ } catch (error) {
337
+ fail(effect, error);
338
+ }
339
+ }
340
+
341
+ function begin(effect: Effect, batch: Batch): Draft {
342
+ if (!batch.fork) dropAll(effect);
343
+ else {
344
+ const previous = draftOf(effect, batch);
345
+ if (previous !== undefined) drop(effect, previous);
346
+ }
347
+ const draft: Draft = {
348
+ batch,
349
+ speculative: batch.fork,
350
+ children: new Set(),
351
+ created: null,
352
+ teardown: null,
353
+ signal: undefined
354
+ };
355
+ register(effect, draft);
356
+ return draft;
357
+ }
358
+
359
+ export function run(effect: Effect, first = false): void {
360
+ const fn = effect.fn;
361
+ if (fn === null) return;
362
+ const tracked = effect.kind !== ROOT && effect.kind !== BRANCH;
363
+ const batch = view?.batch ?? processed();
364
+ const draft =
365
+ !first && tracked && batch !== null && (batch.fork || effect.async)
366
+ ? begin(effect, batch)
367
+ : null;
368
+ let signal: AbortController | undefined;
369
+ if (draft === null) {
370
+ destroyChildren(effect, effect.kind === BLOCK);
371
+ release(effect);
372
+ const teardown = effect.teardown;
373
+ if (teardown !== null) {
374
+ effect.teardown = null;
375
+ dispose(effect, teardown);
376
+ }
377
+ if (drafting !== 0) dropAll(effect);
378
+ } else signal = takeSignal(effect);
379
+ const previous = setOwner(effect);
380
+ effect.running = true;
381
+ let result: unknown;
382
+ let failed = false;
383
+ let caught: unknown;
384
+ try {
385
+ result = tracked
386
+ ? track(effect, fn)
387
+ : withoutReaction(() => {
388
+ const value = fn();
389
+ effect.status = CLEAN;
390
+ return value;
391
+ });
392
+ } catch (error) {
393
+ failed = true;
394
+ caught = error;
395
+ } finally {
396
+ effect.running = false;
397
+ setOwner(previous);
398
+ if (draft !== null) {
399
+ draft.signal = takeSignal(effect);
400
+ restoreSignal(effect, signal);
401
+ }
402
+ }
403
+ const hidden = tracked ? takeHidden() : null;
404
+ effect.batch = batch?.order ?? 0;
405
+ effect.forked = batch?.fork ?? false;
406
+ if (failed) {
407
+ effect.status = CLEAN;
408
+ fail(effect, caught);
409
+ return;
410
+ }
411
+ if (typeof result === 'function') {
412
+ if (draft === null) effect.teardown = result as () => void;
413
+ else draft.teardown = result as () => void;
414
+ }
415
+ if (hidden !== null || pending.length > 0) revisit(effect, hidden);
416
+ if (effect.status !== CLEAN && !effect.destroyed) schedule(effect);
417
+ }
418
+
419
+ export function start(effect: Effect): Effect {
420
+ creating++;
421
+ try {
422
+ run(effect, true);
423
+ } catch (error) {
424
+ destroy(effect);
425
+ throw error;
426
+ } finally {
427
+ creating--;
428
+ }
429
+ return effect;
430
+ }
431
+
432
+ function spent(effect: Effect): boolean {
433
+ const deps = effect.deps;
434
+ return (
435
+ effect.status === CLEAN &&
436
+ !effect.destroyed &&
437
+ !effect.preserved &&
438
+ (deps === null || deps.length === 0) &&
439
+ effect.first === null &&
440
+ effect.teardown === null &&
441
+ effect.owned === null &&
442
+ effect.units === null
443
+ );
444
+ }
445
+
446
+ function attach(kind: Kind, fn: () => void | (() => void)): Effect {
447
+ const effect = start(create(kind, fn, owner));
448
+ if (kind === TEMPLATE && spent(effect)) {
449
+ unlink(effect);
450
+ effect.fn = null;
451
+ effect.destroyed = true;
452
+ }
453
+ return effect;
454
+ }
455
+
456
+ export function root(fn: () => void): Effect {
457
+ return start(create(ROOT, fn, null));
458
+ }
459
+
460
+ export function detached(fn: (() => void | (() => void)) | null, parent: Effect | null): Effect {
461
+ const effect = create(ROOT, fn, parent);
462
+ if (fn === null) effect.status = CLEAN;
463
+ return start(effect);
464
+ }
465
+
466
+ export function effectRoot(fn: () => void | (() => void)): () => void {
467
+ const effect = create(ROOT, fn, null);
468
+ if (owner !== null) {
469
+ effect.context = owner.context;
470
+ effect.boundary = owner.boundary;
471
+ const front = frontOf(owner);
472
+ if (front !== null) setFront(effect, front);
473
+ }
474
+ start(effect);
475
+ return () => destroy(effect);
476
+ }
477
+
478
+ export function branch(fn: () => void, boundary?: Boundary): Effect {
479
+ const effect = create(BRANCH, fn, owner);
480
+ if (boundary !== undefined) effect.boundary = boundary;
481
+ return start(effect);
482
+ }
483
+
484
+ export function block(fn: () => void): Effect {
485
+ return attach(BLOCK, fn);
486
+ }
487
+
488
+ export function template(fn: () => void | (() => void)): Effect {
489
+ return attach(TEMPLATE, fn);
490
+ }
491
+
492
+ export function pre(fn: () => void | (() => void)): Effect {
493
+ if (owner === null) orphan('$effect.pre');
494
+ return attach(TEMPLATE, fn);
495
+ }
496
+
497
+ export function eager(fn: () => void | (() => void)): Effect {
498
+ return present(() => attach(EAGER, fn));
499
+ }
500
+
501
+ export function effect(fn: () => void | (() => void)): Effect {
502
+ if (owner === null) orphan('$effect');
503
+ const created = create(EFFECT, fn, owner);
504
+ collect(created);
505
+ return created;
506
+ }
507
+
508
+ export function teardown(fn: () => void): Effect {
509
+ const created = create(EFFECT, null, owner);
510
+ created.status = CLEAN;
511
+ created.teardown = fn;
512
+ return created;
513
+ }
514
+
515
+ export function destroyed(fn: () => void): Effect {
516
+ if (owner === null) teardownOrphan();
517
+ return teardown(() => presently(fn));
518
+ }
519
+
520
+ export function tracking(): boolean {
521
+ return reading();
522
+ }
523
+
524
+ export function getAbortSignal(): AbortSignal {
525
+ if (evaluation() === null && owner !== null) return lifetime(owner);
526
+ return getReactionSignal();
527
+ }
528
+
529
+ export function getReactionSignal(): AbortSignal {
530
+ const reaction = evaluation();
531
+ if (reaction === null) {
532
+ throw failure(
533
+ 'get_abort_signal_outside_reaction',
534
+ '`getAbortSignal()` can only be called inside an effect or derived'
535
+ );
536
+ }
537
+ const run = resuming();
538
+ const ended = run !== null && (run.ended || (run.reaction as Effect).destroyed);
539
+ const release = ended ? immediately : teardown;
540
+ return evaluationSignal(reaction, release, reaction === running());
541
+ }
542
+
543
+ function immediately(stop: () => void): void {
544
+ stop();
545
+ }
546
+
547
+ function unlink(effect: Effect): void {
548
+ const parent = effect.parent;
549
+ if (parent === null) return;
550
+ if (effect.prev === null) parent.first = effect.next;
551
+ else effect.prev.next = effect.next;
552
+ if (effect.next === null) parent.last = effect.prev;
553
+ else effect.next.prev = effect.prev;
554
+ effect.prev = effect.next = null;
555
+ }
556
+
557
+ type Among = ((child: Effect) => boolean) | null;
558
+
559
+ function doomed(child: Effect, keepBranches: boolean, among: Among): boolean {
560
+ return (
561
+ !child.destroyed &&
562
+ (child.scope || !keepBranches || child.kind !== BRANCH) &&
563
+ (among === null || among(child))
564
+ );
565
+ }
566
+
567
+ function destroyChildren(effect: Effect, keepBranches = false, among: Among = null): void {
568
+ for (;;) {
569
+ let end = effect.last;
570
+ while (end !== null && !doomed(end, keepBranches, among)) end = end.prev;
571
+ if (end === null) return;
572
+ if (end.scope) {
573
+ destroy(end);
574
+ continue;
575
+ }
576
+ let start = end;
577
+ while (start.prev !== null && !start.prev.scope) start = start.prev;
578
+ for (let child: Effect | null = start; child !== null;) {
579
+ const next: Effect | null = child === end ? null : child.next;
580
+ if (doomed(child, keepBranches, among)) destroy(child);
581
+ if (next === null || next.destroyed) break;
582
+ child = next;
583
+ }
584
+ }
585
+ }
586
+
587
+ const detaching = new WeakMap<Effect, () => void>();
588
+
589
+ export function detachment(effect: Effect): (() => void) | null {
590
+ return detaching.get(effect) ?? null;
591
+ }
592
+
593
+ export function detach(effect: Effect, fn: (() => void) | null): void {
594
+ if (fn === null) detaching.delete(effect);
595
+ else detaching.set(effect, fn);
596
+ }
597
+
598
+ export function destroy(effect: Effect): void {
599
+ if (effect.destroyed) return;
600
+ effect.destroyed = true;
601
+ const detached = detaching.get(effect);
602
+ if (detached !== undefined) {
603
+ detaching.delete(effect);
604
+ dispose(effect, detached);
605
+ }
606
+ abortLifetime(effect);
607
+ destroyChildren(effect);
608
+ release(effect);
609
+ unsubscribe(effect);
610
+ const teardown = effect.teardown;
611
+ effect.teardown = null;
612
+ effect.fn = null;
613
+ unlink(effect);
614
+ if (offscreen.delete(effect)) effect.inert = false;
615
+ if (teardown !== null) dispose(effect, teardown);
616
+ if (drafting !== 0) dropAll(effect);
617
+ if (effect.parent === null) orphaned(effect);
618
+ const units = effect.units;
619
+ if (units !== null) {
620
+ effect.units = null;
621
+ for (const settle of units) settle();
622
+ }
623
+ }
624
+
625
+ function holding(effect: Effect): boolean {
626
+ return (
627
+ !effect.destroyed &&
628
+ !effect.running &&
629
+ effect.fn !== null &&
630
+ (effect.kind === EFFECT || effect.kind === TEMPLATE) &&
631
+ (effect.teardown !== null || effect.first !== null)
632
+ );
633
+ }
634
+
635
+ export function freeze(derived: Derived): void {
636
+ if (drafting !== 0) dropAll(derived);
637
+ const effects = derived.effects;
638
+ if (effects === null) return;
639
+ if (abort(derived)) {
640
+ derived.status = DIRTY;
641
+ marked();
642
+ }
643
+ let frozen = derived.frozen;
644
+ for (const effect of effects) {
645
+ if (!holding(effect)) continue;
646
+ destroyChildren(effect);
647
+ release(effect);
648
+ unsubscribe(effect);
649
+ effect.status = CLEAN;
650
+ const teardown = effect.teardown;
651
+ effect.teardown = null;
652
+ if (teardown !== null) dispose(effect, teardown);
653
+ (frozen ??= []).push(effect);
654
+ }
655
+ derived.frozen = frozen;
656
+ }
657
+
658
+ export function thaw(derived: Derived): void {
659
+ const frozen = derived.frozen;
660
+ if (frozen === null) return;
661
+ derived.frozen = null;
662
+ for (const effect of frozen) {
663
+ if (effect.destroyed) continue;
664
+ effect.status = DIRTY;
665
+ schedule(effect);
666
+ }
667
+ }
668
+
669
+ observe({ observed: thaw, unobserved: freeze });