@lynx-js/react 0.128.0 → 0.129.1

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 (334) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/components/tsconfig.tsbuildinfo +1 -1
  3. package/package.json +3 -4
  4. package/refresh/.turbo/turbo-build.log +1 -1
  5. package/runtime/__test__/core/entry-re-eval.test.ts +161 -0
  6. package/runtime/__test__/core/hooks/useLynxGlobalEventListener.test.jsx +1 -1
  7. package/runtime/__test__/core/reload-scoped-dual-thread-communication.test.ts +129 -0
  8. package/runtime/__test__/core/thread-function-call.test.ts +1 -0
  9. package/runtime/__test__/element-template/fixtures/background/render/_shared.tsx +2 -0
  10. package/runtime/__test__/element-template/imports/no-legacy-imports.test.ts +7 -6
  11. package/runtime/__test__/element-template/internal/legacy-internal-guardrail.test.ts +1 -2
  12. package/runtime/__test__/element-template/native/index.test.ts +8 -0
  13. package/runtime/__test__/element-template/native/main-thread-api.test.ts +5 -2
  14. package/runtime/__test__/element-template/native/main-thread-ref-init-value.test.ts +100 -0
  15. package/runtime/__test__/element-template/native/mts-destroy.test.ts +83 -0
  16. package/runtime/__test__/element-template/native/reload-dual-thread-communication.test.ts +104 -0
  17. package/runtime/__test__/element-template/native/reload.test.ts +79 -1
  18. package/runtime/__test__/element-template/runtime/background/commit-hook.test.ts +104 -47
  19. package/runtime/__test__/element-template/runtime/background/main-thread-function/compiled-fixtures.test.tsx +7 -1
  20. package/runtime/__test__/element-template/runtime/background/re-eval-reload.test.ts +69 -0
  21. package/runtime/__test__/element-template/runtime/background/update-timing.test.ts +15 -0
  22. package/runtime/__test__/element-template/runtime/hydration/hydration-listener.test.ts +31 -5
  23. package/runtime/__test__/element-template/runtime/patch/element-template-patch.test.tsx +214 -10
  24. package/runtime/__test__/element-template/runtime/patch/update-timing.test.ts +4 -1
  25. package/runtime/__test__/element-template/runtime/render/render-direct-suspense.test.ts +4 -1
  26. package/runtime/__test__/element-template/runtime/render/render-direct.test.ts +4 -1
  27. package/runtime/__test__/element-template/runtime/render/render-main-thread.test.ts +101 -1
  28. package/runtime/__test__/element-template/runtime/render/render-transform.contract.test.ts +2 -0
  29. package/runtime/__test__/element-template/runtime/template/element-template-handle.test.ts +32 -0
  30. package/runtime/__test__/element-template/runtime/template/main-thread-dynamic-attr-state.test.ts +121 -26
  31. package/runtime/__test__/element-template/runtime/template/main-thread-function.test.ts +89 -2
  32. package/runtime/__test__/element-template/test-utils/debug/compiledFixtureModule.ts +5 -0
  33. package/runtime/__test__/element-template/test-utils/debug/envManager.ts +8 -5
  34. package/runtime/__test__/element-template/test-utils/mock/mockNativePapi.ts +35 -2
  35. package/runtime/__test__/guardrails/snapshot-containment.test.ts +45 -11
  36. package/runtime/__test__/shared/component-stack.test.ts +211 -0
  37. package/runtime/__test__/snapshot/debug/formatPatch.test.ts +0 -8
  38. package/runtime/__test__/snapshot/gesture/prepareGestureForCommit.test.js +1 -1
  39. package/runtime/__test__/snapshot/lifecycle/re-eval-reload.test.jsx +114 -0
  40. package/runtime/__test__/snapshot/lifecycle/reload-background-function.test.jsx +169 -0
  41. package/runtime/__test__/snapshot/lifecycle/reload-delayed-background.test.jsx +63 -0
  42. package/runtime/__test__/snapshot/lifecycle/reload-delayed-main-thread.test.jsx +103 -0
  43. package/runtime/__test__/snapshot/lifecycle.test.jsx +61 -1
  44. package/runtime/__test__/snapshot/lynx/lazy-effect-scheduling.test.jsx +105 -0
  45. package/runtime/__test__/snapshot/lynx/timing.test.jsx +3 -0
  46. package/runtime/__test__/snapshot/preact.test.jsx +0 -3
  47. package/runtime/__test__/snapshot/snapshotPatch.test.jsx +0 -33
  48. package/runtime/__test__/snapshot/ssr.test.jsx +2 -2
  49. package/runtime/__test__/snapshot/worklet/runOnBackground.test.js +6 -11
  50. package/runtime/__test__/snapshot/worklet/runOnMainThread.test.jsx +1 -1
  51. package/runtime/__test__/snapshot/worklet/workletRef.test.jsx +24 -1
  52. package/runtime/__test__/worklet-runtime/jsFunctionLifecycle.test.js +27 -1
  53. package/runtime/__test__/worklet-runtime/loadRuntime.test.js +68 -0
  54. package/runtime/__test__/worklet-runtime/mainThreadObject.test.js +46 -0
  55. package/runtime/__test__/worklet-runtime/runOnMainThread.test.js +3 -3
  56. package/runtime/__test__/worklet-runtime/workletRuntime.test.js +30 -0
  57. package/runtime/lazy/element-template-internal.js +0 -1
  58. package/runtime/lazy/internal.js +1 -1
  59. package/runtime/lazy/jsx-dev-runtime.js +1 -1
  60. package/runtime/lazy/jsx-runtime.js +1 -1
  61. package/runtime/lazy/legacy-react-runtime.js +1 -1
  62. package/runtime/lazy/react-lepus.js +1 -1
  63. package/runtime/lazy/react.js +1 -1
  64. package/runtime/lib/core/background-function/exec-map.d.ts +2 -0
  65. package/runtime/lib/core/background-function/exec-map.js +7 -0
  66. package/runtime/lib/core/background-function/exec-map.js.map +1 -1
  67. package/runtime/lib/core/background-function/run-on-background.js +15 -16
  68. package/runtime/lib/core/background-function/run-on-background.js.map +1 -1
  69. package/runtime/lib/core/capture-main-thread-object.js +2 -1
  70. package/runtime/lib/core/capture-main-thread-object.js.map +1 -1
  71. package/runtime/lib/core/card-lifetime.d.ts +5 -0
  72. package/runtime/lib/core/card-lifetime.js +17 -0
  73. package/runtime/lib/core/card-lifetime.js.map +1 -0
  74. package/runtime/lib/core/compat/legacy-react-runtime.js +1 -1
  75. package/runtime/lib/core/compat/legacy-react-runtime.js.map +1 -1
  76. package/runtime/lib/core/entry-reload.d.ts +7 -0
  77. package/runtime/lib/core/entry-reload.js +49 -0
  78. package/runtime/lib/core/entry-reload.js.map +1 -0
  79. package/runtime/lib/core/lynx/lazy-bundle.js +5 -2
  80. package/runtime/lib/core/lynx/lazy-bundle.js.map +1 -1
  81. package/runtime/lib/core/lynx-data-processors.d.ts +125 -1
  82. package/runtime/lib/core/lynx-data-processors.js +3 -0
  83. package/runtime/lib/core/lynx-data-processors.js.map +1 -1
  84. package/runtime/lib/core/main-thread-ref-id.js +4 -4
  85. package/runtime/lib/core/main-thread-ref-id.js.map +1 -1
  86. package/runtime/lib/core/reload-scoped-event.d.ts +5 -0
  87. package/runtime/lib/core/reload-scoped-event.js +26 -0
  88. package/runtime/lib/core/reload-scoped-event.js.map +1 -0
  89. package/runtime/lib/core/reload-version.js +4 -3
  90. package/runtime/lib/core/reload-version.js.map +1 -1
  91. package/runtime/lib/core/runtime-destroy.d.ts +2 -0
  92. package/runtime/lib/core/runtime-destroy.js +10 -1
  93. package/runtime/lib/core/runtime-destroy.js.map +1 -1
  94. package/runtime/lib/core/thread-function-call/main-thread.js +5 -4
  95. package/runtime/lib/core/thread-function-call/main-thread.js.map +1 -1
  96. package/runtime/lib/core/thread-function-call/return-value.js +6 -5
  97. package/runtime/lib/core/thread-function-call/return-value.js.map +1 -1
  98. package/runtime/lib/document.js +0 -5
  99. package/runtime/lib/document.js.map +1 -1
  100. package/runtime/lib/element-template/background/commit-hook.js +24 -22
  101. package/runtime/lib/element-template/background/commit-hook.js.map +1 -1
  102. package/runtime/lib/element-template/background/hydration-listener.js +2 -6
  103. package/runtime/lib/element-template/background/hydration-listener.js.map +1 -1
  104. package/runtime/lib/element-template/client/root.d.ts +1 -1
  105. package/runtime/lib/element-template/client/root.js.map +1 -1
  106. package/runtime/lib/element-template/index.d.ts +2 -2
  107. package/runtime/lib/element-template/index.js.map +1 -1
  108. package/runtime/lib/element-template/internal.d.ts +1 -1
  109. package/runtime/lib/element-template/internal.js +0 -13
  110. package/runtime/lib/element-template/internal.js.map +1 -1
  111. package/runtime/lib/element-template/lynx/env.js.map +1 -1
  112. package/runtime/lib/element-template/main-thread-ref-init-value.d.ts +3 -0
  113. package/runtime/lib/element-template/main-thread-ref-init-value.js +38 -0
  114. package/runtime/lib/element-template/main-thread-ref-init-value.js.map +1 -0
  115. package/runtime/lib/element-template/native/flush.d.ts +1 -0
  116. package/runtime/lib/element-template/native/flush.js +9 -0
  117. package/runtime/lib/element-template/native/flush.js.map +1 -0
  118. package/runtime/lib/element-template/native/index.js +2 -0
  119. package/runtime/lib/element-template/native/index.js.map +1 -1
  120. package/runtime/lib/element-template/native/main-thread-api.js +3 -7
  121. package/runtime/lib/element-template/native/main-thread-api.js.map +1 -1
  122. package/runtime/lib/element-template/native/mts-destroy.js +10 -2
  123. package/runtime/lib/element-template/native/mts-destroy.js.map +1 -1
  124. package/runtime/lib/element-template/native/patch-listener.js +58 -54
  125. package/runtime/lib/element-template/native/patch-listener.js.map +1 -1
  126. package/runtime/lib/element-template/native/reload-background.d.ts +1 -1
  127. package/runtime/lib/element-template/native/reload-background.js +12 -1
  128. package/runtime/lib/element-template/native/reload-background.js.map +1 -1
  129. package/runtime/lib/element-template/native/reload-main-thread.d.ts +6 -0
  130. package/runtime/lib/element-template/native/reload-main-thread.js +20 -3
  131. package/runtime/lib/element-template/native/reload-main-thread.js.map +1 -1
  132. package/runtime/lib/element-template/protocol/lifecycle-constant.d.ts +2 -1
  133. package/runtime/lib/element-template/protocol/lifecycle-constant.js +1 -0
  134. package/runtime/lib/element-template/protocol/lifecycle-constant.js.map +1 -1
  135. package/runtime/lib/element-template/protocol/types.d.ts +0 -2
  136. package/runtime/lib/element-template/protocol/types.js.map +1 -1
  137. package/runtime/lib/element-template/runtime/page/root-instance.d.ts +0 -1
  138. package/runtime/lib/element-template/runtime/page/root-instance.js.map +1 -1
  139. package/runtime/lib/element-template/runtime/patch.js +4 -0
  140. package/runtime/lib/element-template/runtime/patch.js.map +1 -1
  141. package/runtime/lib/element-template/runtime/render/render-components.js +4 -4
  142. package/runtime/lib/element-template/runtime/render/render-components.js.map +1 -1
  143. package/runtime/lib/element-template/runtime/render/render-main-thread.js +2 -0
  144. package/runtime/lib/element-template/runtime/render/render-main-thread.js.map +1 -1
  145. package/runtime/lib/element-template/runtime/template/main-thread-background-function.js +8 -1
  146. package/runtime/lib/element-template/runtime/template/main-thread-background-function.js.map +1 -1
  147. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.d.ts +1 -0
  148. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js +41 -21
  149. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js.map +1 -1
  150. package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.d.ts +1 -1
  151. package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.js.map +1 -1
  152. package/runtime/lib/internal.d.ts +1 -1
  153. package/runtime/lib/internal.js +1 -1
  154. package/runtime/lib/internal.js.map +1 -1
  155. package/runtime/lib/lynx-api.d.ts +2 -125
  156. package/runtime/lib/lynx-api.js.map +1 -1
  157. package/runtime/lib/shared/component-stack.d.ts +0 -4
  158. package/runtime/lib/shared/component-stack.js +21 -5
  159. package/runtime/lib/shared/component-stack.js.map +1 -1
  160. package/runtime/lib/shared/index-map.d.ts +4 -1
  161. package/runtime/lib/shared/index-map.js +5 -2
  162. package/runtime/lib/shared/index-map.js.map +1 -1
  163. package/runtime/lib/snapshot/gesture/{processGestureBagkround.js → processGestureBackground.js} +1 -1
  164. package/runtime/lib/snapshot/gesture/processGestureBackground.js.map +1 -0
  165. package/runtime/lib/snapshot/lifecycle/destroy.js +6 -0
  166. package/runtime/lib/snapshot/lifecycle/destroy.js.map +1 -1
  167. package/runtime/lib/snapshot/lifecycle/event/firstScreenSync.d.ts +6 -2
  168. package/runtime/lib/snapshot/lifecycle/event/firstScreenSync.js +21 -18
  169. package/runtime/lib/snapshot/lifecycle/event/firstScreenSync.js.map +1 -1
  170. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatch.d.ts +0 -1
  171. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatch.js +0 -5
  172. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatch.js.map +1 -1
  173. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js +0 -10
  174. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js.map +1 -1
  175. package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js +56 -51
  176. package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js.map +1 -1
  177. package/runtime/lib/snapshot/lifecycle/reload.d.ts +9 -2
  178. package/runtime/lib/snapshot/lifecycle/reload.js +29 -8
  179. package/runtime/lib/snapshot/lifecycle/reload.js.map +1 -1
  180. package/runtime/lib/snapshot/list/list.js +3 -2
  181. package/runtime/lib/snapshot/list/list.js.map +1 -1
  182. package/runtime/lib/snapshot/list/listUpdateInfo.js +0 -30
  183. package/runtime/lib/snapshot/list/listUpdateInfo.js.map +1 -1
  184. package/runtime/lib/snapshot/lynx/calledByNative.js +14 -11
  185. package/runtime/lib/snapshot/lynx/calledByNative.js.map +1 -1
  186. package/runtime/lib/snapshot/renderToOpcodes/hydrate.js +0 -52
  187. package/runtime/lib/snapshot/renderToOpcodes/hydrate.js.map +1 -1
  188. package/runtime/lib/snapshot/renderToOpcodes/index.js +10 -10
  189. package/runtime/lib/snapshot/renderToOpcodes/index.js.map +1 -1
  190. package/runtime/lib/snapshot/renderToOpcodes/opcodes.js +0 -51
  191. package/runtime/lib/snapshot/renderToOpcodes/opcodes.js.map +1 -1
  192. package/runtime/lib/snapshot/snapshot/backgroundSnapshot.js +1 -1
  193. package/runtime/lib/snapshot/snapshot/backgroundSnapshot.js.map +1 -1
  194. package/runtime/lib/snapshot/snapshot/list.js +2 -1
  195. package/runtime/lib/snapshot/snapshot/list.js.map +1 -1
  196. package/runtime/lib/snapshot/snapshot/snapshotInstanceManager.d.ts +4 -2
  197. package/runtime/lib/snapshot/snapshot/snapshotInstanceManager.js +11 -11
  198. package/runtime/lib/snapshot/snapshot/snapshotInstanceManager.js.map +1 -1
  199. package/runtime/lib/snapshot/worklet/call/runOnMainThread.d.ts +1 -0
  200. package/runtime/lib/snapshot/worklet/call/runOnMainThread.js +6 -1
  201. package/runtime/lib/snapshot/worklet/call/runOnMainThread.js.map +1 -1
  202. package/runtime/lib/snapshot/worklet/ctx.d.ts +1 -1
  203. package/runtime/lib/snapshot/worklet/ctx.js +6 -1
  204. package/runtime/lib/snapshot/worklet/ctx.js.map +1 -1
  205. package/runtime/lib/snapshot/worklet/ref/updateInitValue.js +6 -0
  206. package/runtime/lib/snapshot/worklet/ref/updateInitValue.js.map +1 -1
  207. package/runtime/lib/tsconfig.tsbuildinfo +1 -1
  208. package/runtime/lib/worklet-runtime/bindings/index.d.ts +1 -0
  209. package/runtime/lib/worklet-runtime/bindings/index.js +1 -0
  210. package/runtime/lib/worklet-runtime/bindings/index.js.map +1 -1
  211. package/runtime/lib/worklet-runtime/bindings/loadRuntime.d.ts +8 -0
  212. package/runtime/lib/worklet-runtime/bindings/loadRuntime.js +23 -0
  213. package/runtime/lib/worklet-runtime/bindings/loadRuntime.js.map +1 -0
  214. package/runtime/lib/worklet-runtime/delayRunOnBackground.js +3 -1
  215. package/runtime/lib/worklet-runtime/delayRunOnBackground.js.map +1 -1
  216. package/runtime/lib/worklet-runtime/jsFunctionLifecycle.d.ts +2 -0
  217. package/runtime/lib/worklet-runtime/jsFunctionLifecycle.js +8 -1
  218. package/runtime/lib/worklet-runtime/jsFunctionLifecycle.js.map +1 -1
  219. package/runtime/lib/worklet-runtime/listeners.js +2 -2
  220. package/runtime/lib/worklet-runtime/listeners.js.map +1 -1
  221. package/runtime/lib/worklet-runtime/mainThreadObject.js +3 -1
  222. package/runtime/lib/worklet-runtime/mainThreadObject.js.map +1 -1
  223. package/runtime/lib/worklet-runtime/runOnMainThread.js +4 -3
  224. package/runtime/lib/worklet-runtime/runOnMainThread.js.map +1 -1
  225. package/runtime/lib/worklet-runtime/workletRuntime.js +2 -0
  226. package/runtime/lib/worklet-runtime/workletRuntime.js.map +1 -1
  227. package/runtime/package.json +2 -3
  228. package/runtime/src/core/background-function/exec-map.ts +9 -0
  229. package/runtime/src/core/background-function/run-on-background.ts +14 -16
  230. package/runtime/src/core/capture-main-thread-object.ts +2 -1
  231. package/runtime/src/core/card-lifetime.ts +18 -0
  232. package/runtime/src/core/compat/legacy-react-runtime.ts +1 -1
  233. package/runtime/src/core/entry-reload.ts +63 -0
  234. package/runtime/src/core/lynx/lazy-bundle.ts +5 -2
  235. package/runtime/src/core/lynx-data-processors.ts +124 -1
  236. package/runtime/src/core/main-thread-ref-id.ts +5 -4
  237. package/runtime/src/core/reload-scoped-event.ts +35 -0
  238. package/runtime/src/core/reload-version.ts +5 -3
  239. package/runtime/src/core/runtime-destroy.ts +12 -1
  240. package/runtime/src/core/thread-function-call/main-thread.ts +4 -4
  241. package/runtime/src/core/thread-function-call/return-value.ts +6 -5
  242. package/runtime/src/document.ts +0 -6
  243. package/runtime/src/element-template/background/commit-hook.ts +32 -23
  244. package/runtime/src/element-template/background/hydration-listener.ts +2 -6
  245. package/runtime/src/element-template/client/root.ts +1 -3
  246. package/runtime/src/element-template/index.ts +2 -2
  247. package/runtime/src/element-template/internal.ts +0 -20
  248. package/runtime/src/element-template/lynx/env.ts +1 -1
  249. package/runtime/src/element-template/main-thread-ref-init-value.ts +44 -0
  250. package/runtime/src/element-template/native/flush.ts +10 -0
  251. package/runtime/src/element-template/native/index.ts +2 -0
  252. package/runtime/src/element-template/native/main-thread-api.ts +3 -6
  253. package/runtime/src/element-template/native/mts-destroy.ts +10 -2
  254. package/runtime/src/element-template/native/patch-listener.ts +62 -62
  255. package/runtime/src/element-template/native/reload-background.ts +13 -1
  256. package/runtime/src/element-template/native/reload-main-thread.ts +32 -3
  257. package/runtime/src/element-template/protocol/lifecycle-constant.ts +1 -0
  258. package/runtime/src/element-template/protocol/types.ts +0 -15
  259. package/runtime/src/element-template/runtime/page/root-instance.ts +0 -1
  260. package/runtime/src/element-template/runtime/patch.ts +5 -0
  261. package/runtime/src/element-template/runtime/render/render-components.ts +3 -3
  262. package/runtime/src/element-template/runtime/render/render-main-thread.ts +2 -0
  263. package/runtime/src/element-template/runtime/template/main-thread-background-function.ts +8 -1
  264. package/runtime/src/element-template/runtime/template/main-thread-dynamic-attr-state.ts +51 -21
  265. package/runtime/src/element-template/runtime/template/main-thread-ref-ctx.ts +2 -2
  266. package/runtime/src/element-template/types.d.ts +6 -0
  267. package/runtime/src/internal.ts +1 -1
  268. package/runtime/src/lynx-api.ts +2 -124
  269. package/runtime/src/shared/component-stack.ts +22 -5
  270. package/runtime/src/shared/index-map.ts +3 -2
  271. package/runtime/src/snapshot/lifecycle/destroy.ts +7 -0
  272. package/runtime/src/snapshot/lifecycle/event/firstScreenSync.ts +26 -19
  273. package/runtime/src/snapshot/lifecycle/patch/snapshotPatch.ts +0 -5
  274. package/runtime/src/snapshot/lifecycle/patch/snapshotPatchApply.ts +0 -10
  275. package/runtime/src/snapshot/lifecycle/patch/updateMainThread.ts +62 -58
  276. package/runtime/src/snapshot/lifecycle/reload.ts +47 -11
  277. package/runtime/src/snapshot/list/list.ts +9 -2
  278. package/runtime/src/snapshot/list/listUpdateInfo.ts +0 -52
  279. package/runtime/src/snapshot/lynx/calledByNative.ts +14 -13
  280. package/runtime/src/snapshot/renderToOpcodes/hydrate.ts +0 -58
  281. package/runtime/src/snapshot/renderToOpcodes/index.ts +8 -8
  282. package/runtime/src/snapshot/renderToOpcodes/opcodes.ts +0 -57
  283. package/runtime/src/snapshot/snapshot/backgroundSnapshot.ts +1 -1
  284. package/runtime/src/snapshot/snapshot/list.ts +5 -1
  285. package/runtime/src/snapshot/snapshot/snapshotInstanceManager.ts +19 -12
  286. package/runtime/src/snapshot/worklet/call/runOnMainThread.ts +10 -1
  287. package/runtime/src/snapshot/worklet/ctx.ts +10 -1
  288. package/runtime/src/snapshot/worklet/ref/updateInitValue.ts +6 -0
  289. package/runtime/src/worklet-runtime/README.md +33 -0
  290. package/runtime/src/worklet-runtime/bindings/index.ts +2 -0
  291. package/runtime/src/worklet-runtime/bindings/loadRuntime.ts +25 -0
  292. package/runtime/src/worklet-runtime/delayRunOnBackground.ts +3 -1
  293. package/runtime/src/worklet-runtime/jsFunctionLifecycle.ts +8 -1
  294. package/runtime/src/worklet-runtime/listeners.ts +4 -7
  295. package/runtime/src/worklet-runtime/mainThreadObject.ts +2 -1
  296. package/runtime/src/worklet-runtime/runOnMainThread.ts +4 -3
  297. package/runtime/src/worklet-runtime/workletRuntime.ts +2 -0
  298. package/runtime/types/types.d.ts +3 -1
  299. package/runtime/vitest.config.ts +0 -2
  300. package/testing-library/.turbo/turbo-build.log +7 -7
  301. package/testing-library/src/__tests__/act.test.jsx +0 -7
  302. package/testing-library/src/__tests__/alog.test.jsx +12 -54
  303. package/testing-library/src/__tests__/end-to-end.test.jsx +0 -7
  304. package/testing-library/src/__tests__/renderComponent.test.jsx +0 -14
  305. package/testing-library/src/__tests__/worklet.test.jsx +59 -5
  306. package/transform/.turbo/turbo-build$colon$wasm.log +63 -136
  307. package/transform/__test__/defines.spec.js +137 -0
  308. package/transform/__test__/object-methods.spec.js +79 -0
  309. package/transform/crates/swc_plugin_worklet/definition_imports.rs +97 -0
  310. package/transform/crates/swc_plugin_worklet/extract_ident.rs +99 -49
  311. package/transform/crates/swc_plugin_worklet/gen_stmt.rs +56 -48
  312. package/transform/crates/swc_plugin_worklet/lib.rs +400 -595
  313. package/transform/crates/swc_plugin_worklet/napi.rs +4 -6
  314. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_js.js +6 -1
  315. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_lepus.js +7 -1
  316. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_js.js +9 -0
  317. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_lepus.js +12 -1
  318. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_js.js +1 -1
  319. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_lepus.js +1 -1
  320. package/transform/dist/wasm.cjs +1 -1
  321. package/transform/index.d.ts +3 -1
  322. package/transform/package.json +0 -1
  323. package/transform/src/lib.rs +173 -12
  324. package/transform/swc-plugin-reactlynx/.turbo/turbo-build.log +105 -32
  325. package/transform/swc-plugin-reactlynx/src/lib.rs +1 -4
  326. package/transform/swc-plugin-reactlynx/swc_plugin_reactlynx.wasm +0 -0
  327. package/transform/swc-plugin-reactlynx-compat/.turbo/turbo-build.log +193 -194
  328. package/runtime/lib/snapshot/gesture/processGestureBagkround.js.map +0 -1
  329. package/runtime/lib/snapshot/worklet/hmr.d.ts +0 -1
  330. package/runtime/lib/snapshot/worklet/hmr.js +0 -28
  331. package/runtime/lib/snapshot/worklet/hmr.js.map +0 -1
  332. package/runtime/src/snapshot/worklet/hmr.ts +0 -34
  333. /package/runtime/lib/snapshot/gesture/{processGestureBagkround.d.ts → processGestureBackground.d.ts} +0 -0
  334. /package/runtime/src/snapshot/gesture/{processGestureBagkround.ts → processGestureBackground.ts} +0 -0
@@ -1,6 +1,7 @@
1
1
  // Copyright 2025 The Lynx Authors. All rights reserved.
2
2
  // Licensed under the Apache License Version 2.0 that can be found in the
3
3
  // LICENSE file in the root directory of this source tree.
4
+ import { dispatchReloadScopedEvent } from '../core/reload-scoped-event.js';
4
5
  import { WorkletEvents } from './bindings/index.js';
5
6
  import type { ClosureValueType, RunWorkletCtxRetData, Worklet } from './bindings/index.js';
6
7
 
@@ -10,12 +11,12 @@ export function runRunOnMainThreadTask(task: Worklet, params: ClosureValueType[]
10
11
  returnValue = runWorklet(task, params);
11
12
  } finally {
12
13
  // TODO: Should be more proper to reject the promise if there is an error.
13
- lynx.getJSContext().dispatchEvent({
14
+ dispatchReloadScopedEvent(lynx.getJSContext(), {
14
15
  type: WorkletEvents.FunctionCallRet,
15
- data: JSON.stringify({
16
+ data: {
16
17
  resolveId,
17
18
  returnValue,
18
- } as RunWorkletCtxRetData),
19
+ } as RunWorkletCtxRetData,
19
20
  });
20
21
  }
21
22
  }
@@ -17,6 +17,8 @@ import { profile } from './utils/profile.js';
17
17
  import { getFromWorkletRefMap, initWorkletRef } from './workletRef.js';
18
18
 
19
19
  function initWorklet(): void {
20
+ const previousManager = globalThis.lynxWorkletImpl?._jsFunctionLifecycleManager;
21
+ previousManager?.dispose();
20
22
  globalThis.lynxWorkletImpl = {
21
23
  _workletMap: {},
22
24
  _refImpl: initWorkletRef(),
@@ -35,6 +35,7 @@ declare global {
35
35
  declare const __GLOBAL_PROPS_MODE__: 'reactive' | 'event' | undefined;
36
36
  declare const __LAZY_BUNDLE_FETCHER__: 'FetchBundle' | 'QueryComponent';
37
37
  declare const __RUNTIME_VERSION__: string | undefined;
38
+ declare const __EXPERIMENTAL_RE_EVAL_JS_ON_RELOAD__: boolean | undefined;
38
39
  declare function __CreatePage(componentId: string, cssId: number): FiberElement;
39
40
  declare function __CreateElement(
40
41
  tag: string,
@@ -222,7 +223,8 @@ declare global {
222
223
  callDestroyLifetimeFun: () => void;
223
224
  updateGlobalProps: (newData: Record<string, unknown>) => void;
224
225
  updateCardData: (newData: Record<string, any>, options?: Record<string, unknown>) => void;
225
- onAppReload: (updateData: Record<string, any>) => void;
226
+ onAppReload: (updateData: Record<string, any>, options?: Record<string, unknown>) => void;
227
+ reloadCard?: (updateData?: object, options?: Record<string, unknown>) => boolean;
226
228
  processCardConfig: () => void;
227
229
  callBeforePublishEvent?: (data: unknown) => void;
228
230
  getDynamicComponentExports: (schema: string) => { default: React.ComponentType<any> } | null | undefined;
@@ -142,7 +142,6 @@ export default defineConfig({
142
142
  'src/element-template/**',
143
143
  'src/core/hooks/mainThread.ts',
144
144
  'src/core/hooks/mainThreadImpl.ts',
145
- 'src/shared/component-stack.ts',
146
145
  'src/shared/profile.ts',
147
146
  'src/index.ts',
148
147
  'src/lynx-api.ts',
@@ -163,7 +162,6 @@ export default defineConfig({
163
162
  'src/snapshot/lynx/tt.ts',
164
163
  'src/snapshot/compat/componentIs.ts',
165
164
  'src/snapshot/snapshot/types.ts',
166
- 'src/snapshot/worklet/hmr.ts',
167
165
 
168
166
  '__test__/snapshot/page.test.jsx',
169
167
  '**/*.d.ts',
@@ -2,14 +2,14 @@ $ rslib
2
2
  Rslib v1.0.2
3
3
 
4
4
  info build started...
5
- start generating declaration files... (esm0)
6
5
  start generating declaration files... (esm2)
7
- ready built in 0.68s (esm2)
8
- ready built in 0.80s (esm1)
9
- ready built in 1.18s (esm0)
10
- info declaration files prepared with tsgo in 1.61 s (esm2)
11
- ready declaration files bundled successfully: dist/index.d.ts in 3.30 s (esm2)
12
- ready declaration files generated in 7.27 s (esm0)
6
+ start generating declaration files... (esm0)
7
+ ready built in 0.71s (esm2)
8
+ ready built in 0.82s (esm1)
9
+ ready built in 1.15s (esm0)
10
+ info declaration files prepared with tsgo in 1.45 s (esm2)
11
+ ready declaration files generated in 6.22 s (esm0)
12
+ ready declaration files bundled successfully: dist/index.d.ts in 3.79 s (esm2)
13
13
 
14
14
  File (esm0) Size
15
15
  dist/rslib-runtime-0.js 1.6 kB
@@ -305,13 +305,6 @@ test('fireEvent triggers useEffect calls', async () => {
305
305
  {
306
306
  "data": "{"patchList":[{"id":3,"snapshotPatch":[3,3,0,1]}]}",
307
307
  "patchOptions": {
308
- "pipelineOptions": {
309
- "dsl": "reactLynx",
310
- "needTimestamps": true,
311
- "pipelineID": "pipelineID",
312
- "pipelineOrigin": "reactLynxHydrate",
313
- "stage": "hydrate",
314
- },
315
308
  "reloadVersion": 0,
316
309
  },
317
310
  },
@@ -298,14 +298,7 @@ describe('alog', () => {
298
298
  ]
299
299
  },
300
300
  "patchOptions": {
301
- "reloadVersion": 0,
302
- "pipelineOptions": {
303
- "pipelineID": "pipelineID",
304
- "needTimestamps": true,
305
- "pipelineOrigin": "reactLynxHydrate",
306
- "dsl": "reactLynx",
307
- "stage": "hydrate"
308
- }
301
+ "reloadVersion": 0
309
302
  }
310
303
  }",
311
304
  ],
@@ -313,7 +306,7 @@ describe('alog', () => {
313
306
  "[ReactLynxDebug] FiberElement API call #30: __SetAttribute(#text#6, "text", 1)",
314
307
  ],
315
308
  [
316
- "[ReactLynxDebug] FiberElement API call #31: __FlushElementTree(PAGE#0, {"pipelineOptions":{"pipelineID":"pipelineID","needTimestamps":true,"pipelineOrigin":"reactLynxHydrate","dsl":"reactLynx","stage":"hydrate"}})",
309
+ "[ReactLynxDebug] FiberElement API call #31: __FlushElementTree(PAGE#0, {})",
317
310
  ],
318
311
  ]
319
312
  `);
@@ -566,14 +559,7 @@ describe('alog', () => {
566
559
  ]
567
560
  },
568
561
  "patchOptions": {
569
- "reloadVersion": 0,
570
- "pipelineOptions": {
571
- "pipelineID": "pipelineID",
572
- "needTimestamps": true,
573
- "pipelineOrigin": "reactLynxHydrate",
574
- "dsl": "reactLynx",
575
- "stage": "hydrate"
576
- }
562
+ "reloadVersion": 0
577
563
  }
578
564
  }",
579
565
  ],
@@ -581,7 +567,7 @@ describe('alog', () => {
581
567
  "[ReactLynxDebug] FiberElement API call #30: __SetAttribute(#text#6, "text", 1)",
582
568
  ],
583
569
  [
584
- "[ReactLynxDebug] FiberElement API call #31: __FlushElementTree(PAGE#0, {"pipelineOptions":{"pipelineID":"pipelineID","needTimestamps":true,"pipelineOrigin":"reactLynxHydrate","dsl":"reactLynx","stage":"hydrate"}})",
570
+ "[ReactLynxDebug] FiberElement API call #31: __FlushElementTree(PAGE#0, {})",
585
571
  ],
586
572
  ]
587
573
  `);
@@ -626,14 +612,7 @@ describe('alog', () => {
626
612
  ]
627
613
  },
628
614
  "patchOptions": {
629
- "reloadVersion": 0,
630
- "pipelineOptions": {
631
- "pipelineID": "pipelineID",
632
- "needTimestamps": true,
633
- "pipelineOrigin": "reactLynxHydrate",
634
- "dsl": "reactLynx",
635
- "stage": "hydrate"
636
- }
615
+ "reloadVersion": 0
637
616
  }
638
617
  }",
639
618
  ],
@@ -641,7 +620,7 @@ describe('alog', () => {
641
620
  "[ReactLynxDebug] FiberElement API call #32: __SetAttribute(#text#6, "text", 0)",
642
621
  ],
643
622
  [
644
- "[ReactLynxDebug] FiberElement API call #33: __FlushElementTree(PAGE#0, {"pipelineOptions":{"pipelineID":"pipelineID","needTimestamps":true,"pipelineOrigin":"reactLynxHydrate","dsl":"reactLynx","stage":"hydrate"}})",
623
+ "[ReactLynxDebug] FiberElement API call #33: __FlushElementTree(PAGE#0, {})",
645
624
  ],
646
625
  ]
647
626
  `);
@@ -678,14 +657,7 @@ describe('alog', () => {
678
657
  ]
679
658
  },
680
659
  "patchOptions": {
681
- "reloadVersion": 0,
682
- "pipelineOptions": {
683
- "pipelineID": "pipelineID",
684
- "needTimestamps": true,
685
- "pipelineOrigin": "reactLynxHydrate",
686
- "dsl": "reactLynx",
687
- "stage": "hydrate"
688
- }
660
+ "reloadVersion": 0
689
661
  }
690
662
  }",
691
663
  ],
@@ -693,7 +665,7 @@ describe('alog', () => {
693
665
  "[ReactLynxDebug] FiberElement API call #32: __SetAttribute(#text#6, "text", 0)",
694
666
  ],
695
667
  [
696
- "[ReactLynxDebug] FiberElement API call #33: __FlushElementTree(PAGE#0, {"pipelineOptions":{"pipelineID":"pipelineID","needTimestamps":true,"pipelineOrigin":"reactLynxHydrate","dsl":"reactLynx","stage":"hydrate"}})",
668
+ "[ReactLynxDebug] FiberElement API call #33: __FlushElementTree(PAGE#0, {})",
697
669
  ],
698
670
  ]
699
671
  `);
@@ -738,14 +710,7 @@ describe('alog', () => {
738
710
  ]
739
711
  },
740
712
  "patchOptions": {
741
- "reloadVersion": 0,
742
- "pipelineOptions": {
743
- "pipelineID": "pipelineID",
744
- "needTimestamps": true,
745
- "pipelineOrigin": "reactLynxHydrate",
746
- "dsl": "reactLynx",
747
- "stage": "hydrate"
748
- }
713
+ "reloadVersion": 0
749
714
  }
750
715
  }",
751
716
  ],
@@ -753,7 +718,7 @@ describe('alog', () => {
753
718
  "[ReactLynxDebug] FiberElement API call #34: __SetAttribute(#text#6, "text", 1)",
754
719
  ],
755
720
  [
756
- "[ReactLynxDebug] FiberElement API call #35: __FlushElementTree(PAGE#0, {"pipelineOptions":{"pipelineID":"pipelineID","needTimestamps":true,"pipelineOrigin":"reactLynxHydrate","dsl":"reactLynx","stage":"hydrate"}})",
721
+ "[ReactLynxDebug] FiberElement API call #35: __FlushElementTree(PAGE#0, {})",
757
722
  ],
758
723
  ]
759
724
  `);
@@ -790,14 +755,7 @@ describe('alog', () => {
790
755
  ]
791
756
  },
792
757
  "patchOptions": {
793
- "reloadVersion": 0,
794
- "pipelineOptions": {
795
- "pipelineID": "pipelineID",
796
- "needTimestamps": true,
797
- "pipelineOrigin": "reactLynxHydrate",
798
- "dsl": "reactLynx",
799
- "stage": "hydrate"
800
- }
758
+ "reloadVersion": 0
801
759
  }
802
760
  }",
803
761
  ],
@@ -805,7 +763,7 @@ describe('alog', () => {
805
763
  "[ReactLynxDebug] FiberElement API call #34: __SetAttribute(#text#6, "text", 1)",
806
764
  ],
807
765
  [
808
- "[ReactLynxDebug] FiberElement API call #35: __FlushElementTree(PAGE#0, {"pipelineOptions":{"pipelineID":"pipelineID","needTimestamps":true,"pipelineOrigin":"reactLynxHydrate","dsl":"reactLynx","stage":"hydrate"}})",
766
+ "[ReactLynxDebug] FiberElement API call #35: __FlushElementTree(PAGE#0, {})",
809
767
  ],
810
768
  ]
811
769
  `);
@@ -120,13 +120,6 @@ test('state change will cause re-render', async () => {
120
120
  {
121
121
  "data": "{"patchList":[{"id":3,"snapshotPatch":[2,-1,2,0,"__snapshot_f46c5_test_2",3,0,null,4,3,4,0,"Hello World",1,3,4,null,0,1,-1,3,null,0]}]}",
122
122
  "patchOptions": {
123
- "pipelineOptions": {
124
- "dsl": "reactLynx",
125
- "needTimestamps": true,
126
- "pipelineID": "pipelineID",
127
- "pipelineOrigin": "reactLynxHydrate",
128
- "stage": "hydrate",
129
- },
130
123
  "reloadVersion": 0,
131
124
  },
132
125
  },
@@ -97,13 +97,6 @@ test('setState generates insertBefore operation', async () => {
97
97
  {
98
98
  "data": "{"patchList":[{"id":3,"snapshotPatch":[1,-2,-7,-5,0]}]}",
99
99
  "patchOptions": {
100
- "pipelineOptions": {
101
- "dsl": "reactLynx",
102
- "needTimestamps": true,
103
- "pipelineID": "pipelineID",
104
- "pipelineOrigin": "reactLynxHydrate",
105
- "stage": "hydrate",
106
- },
107
100
  "reloadVersion": 0,
108
101
  },
109
102
  },
@@ -268,13 +261,6 @@ test('setState triggered renderComponent should have correct slotIndex', async (
268
261
  {
269
262
  "data": "{"patchList":[{"id":3,"snapshotPatch":[2,-2,-4,0,"__snapshot_289e0_test_5",6,0,null,7,3,7,0,1,1,6,7,null,0,1,-2,6,null,1]}]}",
270
263
  "patchOptions": {
271
- "pipelineOptions": {
272
- "dsl": "reactLynx",
273
- "needTimestamps": true,
274
- "pipelineID": "pipelineID",
275
- "pipelineOrigin": "reactLynxHydrate",
276
- "stage": "hydrate",
277
- },
278
264
  "reloadVersion": 0,
279
265
  },
280
266
  },
@@ -9,6 +9,11 @@ import {
9
9
  useMainThreadRef,
10
10
  } from '@lynx-js/react';
11
11
 
12
+ expect.addSnapshotSerializer({
13
+ test: value => typeof value === 'string' && /"_execId":\d+/.test(value),
14
+ print: (value, serialize) => serialize(value.replace(/"_execId":\d+/g, '"_execId":"[number]"')),
15
+ });
16
+
12
17
  const guardedClassCaptureType = defineMainThreadObjectType({
13
18
  type: '@test/guarded-class-capture',
14
19
  create: initialValue => ({
@@ -108,7 +113,7 @@ describe('worklet', () => {
108
113
  [
109
114
  "rLynxChange",
110
115
  {
111
- "data": "{"patchList":[{"snapshotPatch":[3,-2,0,{"_wkltId":"15ab:test:2","_workletType":"main-thread","_execId":1}],"id":2}]}",
116
+ "data": "{"patchList":[{"snapshotPatch":[3,-2,0,{"_wkltId":"15ab:test:2","_workletType":"main-thread","_execId":"[number]"}],"id":2}]}",
112
117
  "patchOptions": {
113
118
  "isHydration": true,
114
119
  "pipelineOptions": {
@@ -189,7 +194,7 @@ describe('worklet', () => {
189
194
  [
190
195
  "rLynxChange",
191
196
  {
192
- "data": "{"patchList":[{"snapshotPatch":[3,-2,1,{"_c":{"props":{"main-thread:onClick":{"_wkltId":"15ab:test:3"}}},"_wkltId":"15ab:test:4","_execId":1}],"id":2}]}",
197
+ "data": "{"patchList":[{"snapshotPatch":[3,-2,1,{"_c":{"props":{"main-thread:onClick":{"_wkltId":"15ab:test:3"}}},"_wkltId":"15ab:test:4","_execId":"[number]"}],"id":2}]}",
193
198
  "patchOptions": {
194
199
  "isHydration": true,
195
200
  "pipelineOptions": {
@@ -278,7 +283,7 @@ describe('worklet', () => {
278
283
  [
279
284
  "rLynxChange",
280
285
  {
281
- "data": "{"patchList":[{"snapshotPatch":[3,-2,0,{"_c":{"props":{"main-thread:onScroll":{"_wkltId":"15ab:test:5"}}},"_wkltId":"15ab:test:6","_execId":1}],"id":2}]}",
286
+ "data": "{"patchList":[{"snapshotPatch":[3,-2,0,{"_c":{"props":{"main-thread:onScroll":{"_wkltId":"15ab:test:5"}}},"_wkltId":"15ab:test:6","_execId":"[number]"}],"id":2}]}",
282
287
  "patchOptions": {
283
288
  "isHydration": true,
284
289
  "pipelineOptions": {
@@ -370,7 +375,7 @@ describe('worklet', () => {
370
375
  [
371
376
  "rLynxChange",
372
377
  {
373
- "data": "{"patchList":[{"snapshotPatch":[3,-2,0,{"_wkltId":"15ab:test:8","_jsFn":{"_jsFn1":{"_jsFnId":2,"_fn":"[BackgroundFunction]"}},"_execId":1}],"id":2}]}",
378
+ "data": "{"patchList":[{"snapshotPatch":[3,-2,0,{"_wkltId":"15ab:test:8","_jsFn":{"_jsFn1":{"_jsFnId":2,"_fn":"[BackgroundFunction]"}},"_execId":"[number]"}],"id":2}]}",
374
379
  "patchOptions": {
375
380
  "isHydration": true,
376
381
  "pipelineOptions": {
@@ -473,7 +478,7 @@ describe('worklet', () => {
473
478
  [
474
479
  "rLynxChange",
475
480
  {
476
- "data": "{"patchList":[{"snapshotPatch":[3,-2,0,{"_wvid":1},3,-2,1,{"_c":{"ref":{"_wvid":1},"num":{"_wvid":2}},"_wkltId":"15ab:test:9","_execId":1}],"id":2}]}",
481
+ "data": "{"patchList":[{"snapshotPatch":[3,-2,0,{"_wvid":1},3,-2,1,{"_c":{"ref":{"_wvid":1},"num":{"_wvid":2}},"_wkltId":"15ab:test:9","_execId":"[number]"}],"id":2}]}",
477
482
  "patchOptions": {
478
483
  "isHydration": true,
479
484
  "pipelineOptions": {
@@ -669,4 +674,53 @@ describe('worklet', () => {
669
674
 
670
675
  expect(globalThis.classCaptureCb).toHaveBeenCalledWith(42);
671
676
  });
677
+
678
+ it('renders and invokes worklets with nullish optional member captures', () => {
679
+ globalThis.optionalCaptureCb = vi.fn();
680
+
681
+ const start = () => {
682
+ 'main thread';
683
+ globalThis.optionalCaptureCb('started');
684
+ };
685
+ const nestedStart = () => {
686
+ 'main thread';
687
+ globalThis.optionalCaptureCb('nested-started');
688
+ };
689
+
690
+ const Comp = ({ enabled, handlers }) => {
691
+ return (
692
+ <view
693
+ main-thread:bindtap={() => {
694
+ 'main thread';
695
+ if (enabled && handlers?.start) handlers.start();
696
+ if (enabled && handlers?.nested?.start) handlers.nested.start();
697
+ }}
698
+ />
699
+ );
700
+ };
701
+
702
+ const { container, rerender } = render(
703
+ <Comp enabled={false} handlers={null} />,
704
+ {
705
+ enableMainThread: true,
706
+ enableBackgroundThread: true,
707
+ },
708
+ );
709
+ fireEvent.tap(container.firstChild);
710
+ expect(globalThis.optionalCaptureCb).not.toHaveBeenCalled();
711
+
712
+ rerender(<Comp enabled={true} handlers={undefined} />);
713
+ fireEvent.tap(container.firstChild);
714
+ expect(globalThis.optionalCaptureCb).not.toHaveBeenCalled();
715
+
716
+ rerender(<Comp enabled={true} handlers={{ start, nested: null }} />);
717
+ fireEvent.tap(container.firstChild);
718
+ expect(globalThis.optionalCaptureCb).toHaveBeenCalledTimes(1);
719
+ expect(globalThis.optionalCaptureCb).toHaveBeenLastCalledWith('started');
720
+
721
+ rerender(<Comp enabled={true} handlers={{ start, nested: { start: nestedStart } }} />);
722
+ fireEvent.tap(container.firstChild);
723
+ expect(globalThis.optionalCaptureCb).toHaveBeenCalledTimes(3);
724
+ expect(globalThis.optionalCaptureCb).toHaveBeenLastCalledWith('nested-started');
725
+ });
672
726
  });