ripple 0.3.128 → 0.4.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 (192) hide show
  1. package/CHANGELOG.md +267 -0
  2. package/package.json +10 -4
  3. package/src/runtime/element.js +23 -6
  4. package/src/runtime/index-client.js +81 -41
  5. package/src/runtime/index-server.js +1 -0
  6. package/src/runtime/internal/client/blocks.js +173 -91
  7. package/src/runtime/internal/client/component.js +4 -30
  8. package/src/runtime/internal/client/composite.js +12 -13
  9. package/src/runtime/internal/client/constants.js +9 -0
  10. package/src/runtime/internal/client/context.js +12 -19
  11. package/src/runtime/internal/client/css.js +7 -9
  12. package/src/runtime/internal/client/events.js +178 -90
  13. package/src/runtime/internal/client/expression.js +45 -25
  14. package/src/runtime/internal/client/for.js +409 -129
  15. package/src/runtime/internal/client/head.js +10 -5
  16. package/src/runtime/internal/client/html.js +1 -0
  17. package/src/runtime/internal/client/hydration.js +152 -10
  18. package/src/runtime/internal/client/if.js +239 -50
  19. package/src/runtime/internal/client/index.js +4 -12
  20. package/src/runtime/internal/client/operations.js +40 -61
  21. package/src/runtime/internal/client/portal.js +163 -85
  22. package/src/runtime/internal/client/render.js +39 -39
  23. package/src/runtime/internal/client/rpc.js +3 -3
  24. package/src/runtime/internal/client/runtime.js +592 -433
  25. package/src/runtime/internal/client/selector.js +5 -2
  26. package/src/runtime/internal/client/template.js +133 -158
  27. package/src/runtime/internal/client/transport.js +38 -0
  28. package/src/runtime/internal/client/try.js +465 -426
  29. package/src/runtime/internal/client/types.d.ts +56 -23
  30. package/src/runtime/internal/client/utils.js +1 -3
  31. package/src/runtime/internal/server/dynamic.js +20 -21
  32. package/src/runtime/internal/server/index.js +325 -275
  33. package/src/runtime/internal/server/rpc.js +3 -2
  34. package/src/runtime/internal/server/transport.js +16 -0
  35. package/src/runtime/transport.js +21 -0
  36. package/tests/client/__snapshots__/for.test.tsrx.snap +0 -5
  37. package/tests/client/array/array.copy-within.test.tsrx +12 -12
  38. package/tests/client/array/array.derived.test.tsrx +46 -46
  39. package/tests/client/array/array.iteration.test.tsrx +10 -10
  40. package/tests/client/array/array.mutations.test.tsrx +20 -20
  41. package/tests/client/array/array.static.test.tsrx +11 -11
  42. package/tests/client/array/array.to-methods.test.tsrx +6 -6
  43. package/tests/client/async-suspend.test.tsrx +74 -75
  44. package/tests/client/basic/basic.attributes.test.tsrx +86 -83
  45. package/tests/client/basic/basic.collections.test.tsrx +12 -12
  46. package/tests/client/basic/basic.components.test.tsrx +99 -25
  47. package/tests/client/basic/basic.errors.test.tsrx +18 -18
  48. package/tests/client/basic/basic.events.test.tsrx +42 -42
  49. package/tests/client/basic/basic.get-set.test.tsrx +8 -8
  50. package/tests/client/basic/basic.reactivity.test.tsrx +73 -38
  51. package/tests/client/basic/basic.rendering.test.tsrx +25 -25
  52. package/tests/client/basic/basic.utilities.test.tsrx +3 -3
  53. package/tests/client/boundaries.test.tsrx +8 -8
  54. package/tests/client/boxed-locals.test.tsrx +452 -0
  55. package/tests/client/compiler/__snapshots__/compiler.assignments.test.tsrx.snap +6 -6
  56. package/tests/client/compiler/compiler.assignments.test.tsrx +9 -73
  57. package/tests/client/compiler/compiler.attributes.test.tsrx +23 -23
  58. package/tests/client/compiler/compiler.basic.test.tsrx +15 -60
  59. package/tests/client/compiler/compiler.tracked-access.test.tsrx +18 -43
  60. package/tests/client/compiler/compiler.try-in-function.test.tsrx +2 -2
  61. package/tests/client/composite/__snapshots__/composite.render.test.tsrx.snap +0 -1
  62. package/tests/client/composite/composite.dynamic-components.test.tsrx +77 -6
  63. package/tests/client/composite/composite.props.test.tsrx +149 -12
  64. package/tests/client/composite/composite.reactivity.test.tsrx +51 -52
  65. package/tests/client/composite/composite.render.test.tsrx +26 -9
  66. package/tests/client/css/scoped-styles.test.tsrx +8 -8
  67. package/tests/client/date.test.tsrx +42 -42
  68. package/tests/client/derived-release.test.tsrx +370 -0
  69. package/tests/client/dynamic-elements.test.tsrx +45 -45
  70. package/tests/client/events.test.tsrx +97 -71
  71. package/tests/client/for-selector.test.tsrx +14 -14
  72. package/tests/client/for-single-root-items.test.tsrx +118 -3
  73. package/tests/client/for.test.tsrx +332 -31
  74. package/tests/client/head.test.tsrx +19 -19
  75. package/tests/client/html.test.tsrx +11 -9
  76. package/tests/client/if-block.test.tsrx +80 -0
  77. package/tests/client/map.test.tsrx +16 -16
  78. package/tests/client/media-query.test.tsrx +7 -7
  79. package/tests/client/portal.test.tsrx +224 -26
  80. package/tests/client/primitive-text.test.tsrx +50 -0
  81. package/tests/client/prop-kind-switch.test.tsrx +141 -0
  82. package/tests/client/ref.test.tsrx +17 -17
  83. package/tests/client/return.test.tsrx +26 -3
  84. package/tests/client/root-boundary.test.tsrx +42 -0
  85. package/tests/client/scoped-flush.test.tsrx +8 -8
  86. package/tests/client/set.test.tsrx +6 -6
  87. package/tests/client/svg.test.tsrx +11 -11
  88. package/tests/client/switch.test.tsrx +44 -44
  89. package/tests/client/track-async-hydration.test.tsrx +4 -4
  90. package/tests/client/try.test.tsrx +151 -83
  91. package/tests/client/tsx.test.tsrx +43 -40
  92. package/tests/client/url/url.derived.test.tsrx +6 -6
  93. package/tests/client/url-search-params/url-search-params.derived.test.tsrx +8 -8
  94. package/tests/client/url-search-params/url-search-params.iteration.test.tsrx +10 -10
  95. package/tests/client/url-search-params/url-search-params.mutation.test.tsrx +10 -10
  96. package/tests/client/url-search-params/url-search-params.retrieval.test.tsrx +18 -18
  97. package/tests/client/url-search-params/url-search-params.serialization.test.tsrx +2 -2
  98. package/tests/hydration/basic.test.js +74 -1
  99. package/tests/hydration/build-components.js +22 -1
  100. package/tests/hydration/compiled/client/basic.js +1142 -713
  101. package/tests/hydration/compiled/client/composite.js +151 -100
  102. package/tests/hydration/compiled/client/events.js +184 -171
  103. package/tests/hydration/compiled/client/for.js +1472 -1132
  104. package/tests/hydration/compiled/client/fragment-cursor.js +2341 -0
  105. package/tests/hydration/compiled/client/head.js +254 -201
  106. package/tests/hydration/compiled/client/hmr.js +54 -41
  107. package/tests/hydration/compiled/client/html-in-template.js +54 -39
  108. package/tests/hydration/compiled/client/html.js +1633 -1263
  109. package/tests/hydration/compiled/client/if-children.js +420 -270
  110. package/tests/hydration/compiled/client/if-fragment-controlflow.js +363 -317
  111. package/tests/hydration/compiled/client/if.js +229 -219
  112. package/tests/hydration/compiled/client/mixed-control-flow.js +420 -404
  113. package/tests/hydration/compiled/client/nested-control-flow.js +1326 -1277
  114. package/tests/hydration/compiled/client/portal.js +87 -95
  115. package/tests/hydration/compiled/client/reactivity.js +135 -101
  116. package/tests/hydration/compiled/client/return.js +28 -19
  117. package/tests/hydration/compiled/client/streaming.js +390 -306
  118. package/tests/hydration/compiled/client/switch.js +258 -266
  119. package/tests/hydration/compiled/client/track-async-serialization.js +448 -280
  120. package/tests/hydration/compiled/client/try.js +173 -129
  121. package/tests/hydration/compiled/client/typed-text.js +71 -0
  122. package/tests/hydration/compiled/fixtures/money.js +10 -0
  123. package/tests/hydration/compiled/server/basic.js +123 -6
  124. package/tests/hydration/compiled/server/composite.js +16 -30
  125. package/tests/hydration/compiled/server/events.js +66 -18
  126. package/tests/hydration/compiled/server/for.js +117 -41
  127. package/tests/hydration/compiled/server/fragment-cursor.js +1687 -0
  128. package/tests/hydration/compiled/server/head.js +20 -20
  129. package/tests/hydration/compiled/server/hmr.js +2 -2
  130. package/tests/hydration/compiled/server/html.js +70 -238
  131. package/tests/hydration/compiled/server/if-children.js +107 -15
  132. package/tests/hydration/compiled/server/if.js +11 -15
  133. package/tests/hydration/compiled/server/mixed-control-flow.js +8 -8
  134. package/tests/hydration/compiled/server/portal.js +14 -22
  135. package/tests/hydration/compiled/server/reactivity.js +14 -14
  136. package/tests/hydration/compiled/server/streaming.js +19 -19
  137. package/tests/hydration/compiled/server/switch.js +8 -8
  138. package/tests/hydration/compiled/server/track-async-serialization.js +150 -23
  139. package/tests/hydration/compiled/server/try.js +8 -8
  140. package/tests/hydration/compiled/server/typed-text.js +17 -0
  141. package/tests/hydration/components/basic.tsrx +44 -8
  142. package/tests/hydration/components/composite.tsrx +2 -2
  143. package/tests/hydration/components/events.tsrx +25 -25
  144. package/tests/hydration/components/for.tsrx +115 -67
  145. package/tests/hydration/components/fragment-cursor.tsrx +650 -0
  146. package/tests/hydration/components/head.tsrx +16 -16
  147. package/tests/hydration/components/hmr.tsrx +2 -2
  148. package/tests/hydration/components/html.tsrx +7 -7
  149. package/tests/hydration/components/if-children.tsrx +72 -25
  150. package/tests/hydration/components/if.tsrx +18 -18
  151. package/tests/hydration/components/mixed-control-flow.tsrx +11 -11
  152. package/tests/hydration/components/portal.tsrx +3 -3
  153. package/tests/hydration/components/reactivity.tsrx +16 -16
  154. package/tests/hydration/components/streaming.tsrx +20 -20
  155. package/tests/hydration/components/switch.tsrx +20 -20
  156. package/tests/hydration/components/text-types.ts +4 -0
  157. package/tests/hydration/components/track-async-serialization.tsrx +80 -26
  158. package/tests/hydration/components/try.tsrx +8 -8
  159. package/tests/hydration/components/typed-text.tsrx +22 -0
  160. package/tests/hydration/fixtures/money.js +10 -0
  161. package/tests/hydration/for.test.js +36 -0
  162. package/tests/hydration/fragment-cursor.test.js +111 -0
  163. package/tests/hydration/if-children.test.js +24 -0
  164. package/tests/hydration/streaming.test.js +19 -0
  165. package/tests/hydration/track-async-serialization.test.js +87 -2
  166. package/tests/hydration/tsconfig.text-types.json +10 -0
  167. package/tests/hydration/typed-text.test.js +34 -0
  168. package/tests/server/await.test.tsrx +3 -3
  169. package/tests/server/basic.attributes.test.tsrx +42 -42
  170. package/tests/server/basic.components.test.tsrx +64 -8
  171. package/tests/server/basic.test.tsrx +34 -32
  172. package/tests/server/compiler.test.tsrx +1 -70
  173. package/tests/server/composite.props.test.tsrx +6 -6
  174. package/tests/server/dynamic-elements.test.tsrx +31 -8
  175. package/tests/server/for.test.tsrx +94 -0
  176. package/tests/server/head.test.tsrx +11 -11
  177. package/tests/server/scoped-styles.test.tsrx +2 -2
  178. package/tests/server/streaming-ssr.test.tsrx +48 -43
  179. package/tests/server/track-async-serialization.test.tsrx +204 -21
  180. package/tests/server/try.test.tsrx +48 -48
  181. package/tests/types/transport.ts +40 -0
  182. package/tests/utils/vite-plugin-config.test.js +23 -0
  183. package/types/index.d.ts +48 -7
  184. package/types/server.d.ts +3 -0
  185. package/types/transport.d.ts +15 -0
  186. package/src/runtime/internal/client/switch.js +0 -113
  187. package/src/utils/errors.js +0 -13
  188. package/tests/client/lazy-array.test.tsrx +0 -31
  189. package/tests/client/lazy-destructuring.test.tsrx +0 -438
  190. package/tests/client/tracked-index-access.test.tsrx +0 -113
  191. package/tests/server/lazy-destructuring.test.tsrx +0 -595
  192. package/tests/server/tracked-index-access.test.tsrx +0 -76
@@ -0,0 +1,1687 @@
1
+ // @ts-nocheck
2
+ import * as _$_ from 'ripple/internal/server';
3
+
4
+ import { track } from 'ripple/server';
5
+
6
+ function Leaf() {
7
+ return _$_.tsrx_element(() => {
8
+ _$_.regular_block(() => {
9
+ let __out = '';
10
+
11
+ __out += '<i class="leaf">leaf</i>';
12
+ _$_.output_push(__out);
13
+ });
14
+ });
15
+ }
16
+
17
+ export function TrailingNavigatedElements() {
18
+ return _$_.tsrx_element(() => {
19
+ const n = _$_.track(0, 'a695c021');
20
+
21
+ _$_.regular_block(() => {
22
+ let __out = '';
23
+
24
+ __out += '<div class="count">';
25
+
26
+ {
27
+ _$_.output_push(__out);
28
+ __out = '';
29
+ _$_.render_expression(n.value);
30
+ }
31
+
32
+ __out += '</div><button class="inc">inc</button><button class="dec">dec</button>';
33
+ _$_.output_push(__out);
34
+ });
35
+ });
36
+ }
37
+
38
+ export function TrailingStaticNavigatedElements() {
39
+ return _$_.tsrx_element(() => {
40
+ const n = _$_.track(0, '0afd9398');
41
+
42
+ _$_.regular_block(() => {
43
+ let __out = '';
44
+
45
+ __out += '<div class="host">static</div><button class="inc">inc</button><button class="dec">dec</button>';
46
+ _$_.output_push(__out);
47
+ });
48
+ });
49
+ }
50
+
51
+ export function NavigatedThenStatic() {
52
+ return _$_.tsrx_element(() => {
53
+ const n = _$_.track(0, '3cea07db');
54
+
55
+ _$_.regular_block(() => {
56
+ let __out = '';
57
+
58
+ __out += '<div class="host">static</div><button class="inc">inc</button><div class="a">a</div><div class="b">b</div>';
59
+ _$_.output_push(__out);
60
+ });
61
+ });
62
+ }
63
+
64
+ export function LeadingNavigatedThenStatic() {
65
+ return _$_.tsrx_element(() => {
66
+ const n = _$_.track(0, '8ca89613');
67
+
68
+ _$_.regular_block(() => {
69
+ let __out = '';
70
+
71
+ __out += '<button class="inc">inc</button><div class="a">a</div><div class="b">b</div>';
72
+ _$_.output_push(__out);
73
+ });
74
+ });
75
+ }
76
+
77
+ export function TrailingNestedNavigated() {
78
+ return _$_.tsrx_element(() => {
79
+ const n = _$_.track(0, 'f0f5a337');
80
+
81
+ _$_.regular_block(() => {
82
+ let __out = '';
83
+
84
+ __out += '<div class="host">static</div><div class="wrap"><button class="inc">inc</button></div>';
85
+ _$_.output_push(__out);
86
+ });
87
+ });
88
+ }
89
+
90
+ export function NestedNavigatedThenStatic() {
91
+ return _$_.tsrx_element(() => {
92
+ const n = _$_.track(0, '2a6293f9');
93
+
94
+ _$_.regular_block(() => {
95
+ let __out = '';
96
+
97
+ __out += '<div class="wrap"><button class="inc">inc</button></div><div class="a">a</div><div class="b">b</div>';
98
+ _$_.output_push(__out);
99
+ });
100
+ });
101
+ }
102
+
103
+ export function TrackedTextThenStatic() {
104
+ return _$_.tsrx_element(() => {
105
+ const n = _$_.track(0, 'db93f6f0');
106
+
107
+ _$_.regular_block(() => {
108
+ let __out = '';
109
+
110
+ __out += _$_.escape(n.value) + '<div class="a">a</div><div class="b">b</div>';
111
+ _$_.output_push(__out);
112
+ });
113
+ });
114
+ }
115
+
116
+ export function StaticThenTrackedText() {
117
+ return _$_.tsrx_element(() => {
118
+ const n = _$_.track(0, '84cf2507');
119
+
120
+ _$_.regular_block(() => {
121
+ let __out = '';
122
+
123
+ __out += '<div class="a">a</div><div class="b">b</div>' + _$_.escape(n.value);
124
+ _$_.output_push(__out);
125
+ });
126
+ });
127
+ }
128
+
129
+ export function StaticNestedThenStatic() {
130
+ return _$_.tsrx_element(() => {
131
+ _$_.regular_block(() => {
132
+ let __out = '';
133
+
134
+ __out += '<div class="a">a</div><div class="wrap"><span>x</span></div><div class="b">b</div><div class="c">c</div>';
135
+ _$_.output_push(__out);
136
+ });
137
+ });
138
+ }
139
+
140
+ export function AllStatic() {
141
+ return _$_.tsrx_element(() => {
142
+ _$_.regular_block(() => {
143
+ let __out = '';
144
+
145
+ __out += '<div class="a">a</div><div class="b">b</div><div class="c">c</div>';
146
+ _$_.output_push(__out);
147
+ });
148
+ });
149
+ }
150
+
151
+ export function TrailingDynamicChild() {
152
+ return _$_.tsrx_element(() => {
153
+ const n = _$_.track(0, '9be343a7');
154
+
155
+ _$_.regular_block(() => {
156
+ let __out = '';
157
+
158
+ __out += '<div class="a">a</div><div class="count">' + _$_.escape(n.value) + '</div>';
159
+ _$_.output_push(__out);
160
+ });
161
+ });
162
+ }
163
+
164
+ export function DynamicChildThenStatic() {
165
+ return _$_.tsrx_element(() => {
166
+ const n = _$_.track(0, 'c76dd5a9');
167
+
168
+ _$_.regular_block(() => {
169
+ let __out = '';
170
+
171
+ __out += '<div class="count">' + _$_.escape(n.value) + '</div><div class="a">a</div><div class="b">b</div>';
172
+ _$_.output_push(__out);
173
+ });
174
+ });
175
+ }
176
+
177
+ export function IfThenStatic() {
178
+ return _$_.tsrx_element(() => {
179
+ const n = _$_.track(0, 'fb175ecd');
180
+
181
+ _$_.regular_block(() => {
182
+ let __out = '';
183
+
184
+ __out += '<!--[--><!--[-->';
185
+
186
+ if (n.value >= 0) {
187
+ __out += '<b class="if">x</b>';
188
+ }
189
+
190
+ __out += '<!--]--><div class="a">a</div><div class="b">b</div><!--]-->';
191
+ _$_.output_push(__out);
192
+ });
193
+ });
194
+ }
195
+
196
+ export function StaticThenIf() {
197
+ return _$_.tsrx_element(() => {
198
+ const n = _$_.track(0, 'c8563a58');
199
+
200
+ _$_.regular_block(() => {
201
+ let __out = '';
202
+
203
+ __out += '<div class="a">a</div><div class="b">b</div><!--[-->';
204
+
205
+ if (n.value >= 0) {
206
+ __out += '<b class="if">x</b>';
207
+ }
208
+
209
+ __out += '<!--]-->';
210
+ _$_.output_push(__out);
211
+ });
212
+ });
213
+ }
214
+
215
+ export function CompThenStatic() {
216
+ return _$_.tsrx_element(() => {
217
+ _$_.regular_block(() => {
218
+ let __out = '';
219
+
220
+ {
221
+ const comp = Leaf;
222
+ const args = [{}];
223
+
224
+ _$_.output_push(__out);
225
+ __out = '';
226
+ _$_.render_component(comp, ...args);
227
+ }
228
+
229
+ __out += '<div class="a">a</div><div class="b">b</div>';
230
+ _$_.output_push(__out);
231
+ });
232
+ });
233
+ }
234
+
235
+ export function StaticThenComp() {
236
+ return _$_.tsrx_element(() => {
237
+ _$_.regular_block(() => {
238
+ let __out = '';
239
+
240
+ __out += '<div class="a">a</div><div class="b">b</div>';
241
+
242
+ {
243
+ const comp = Leaf;
244
+ const args = [{}];
245
+
246
+ _$_.output_push(__out);
247
+ __out = '';
248
+ _$_.render_component(comp, ...args);
249
+ }
250
+
251
+ _$_.output_push(__out);
252
+ });
253
+ });
254
+ }
255
+
256
+ export function SiblingComps() {
257
+ return _$_.tsrx_element(() => {
258
+ _$_.regular_block(() => {
259
+ {
260
+ {
261
+ const comp = Leaf;
262
+ const args = [{}];
263
+
264
+ _$_.render_component(comp, ...args);
265
+ }
266
+
267
+ {
268
+ const comp = Leaf;
269
+ const args = [{}];
270
+
271
+ _$_.render_component(comp, ...args);
272
+ }
273
+ }
274
+ });
275
+ });
276
+ }
277
+
278
+ export function WrapTrailingNavigatedElements() {
279
+ return _$_.tsrx_element(() => {
280
+ const n = _$_.track(0, '1032dbec');
281
+
282
+ _$_.regular_block(() => {
283
+ let __out = '';
284
+
285
+ __out += '<div class="outer">';
286
+
287
+ {
288
+ const comp = TrailingNavigatedElements;
289
+ const args = [{}];
290
+
291
+ _$_.output_push(__out);
292
+ __out = '';
293
+ _$_.render_component(comp, ...args);
294
+ }
295
+
296
+ __out += '<span class="after">';
297
+
298
+ {
299
+ _$_.output_push(__out);
300
+ __out = '';
301
+ _$_.render_expression(n.value);
302
+ }
303
+
304
+ __out += '</span><button class="outer-inc">outer</button></div>';
305
+ _$_.output_push(__out);
306
+ });
307
+ });
308
+ }
309
+
310
+ export function WrapTrailingStaticNavigatedElements() {
311
+ return _$_.tsrx_element(() => {
312
+ const n = _$_.track(0, 'c2e2a938');
313
+
314
+ _$_.regular_block(() => {
315
+ let __out = '';
316
+
317
+ __out += '<div class="outer">';
318
+
319
+ {
320
+ const comp = TrailingStaticNavigatedElements;
321
+ const args = [{}];
322
+
323
+ _$_.output_push(__out);
324
+ __out = '';
325
+ _$_.render_component(comp, ...args);
326
+ }
327
+
328
+ __out += '<span class="after">';
329
+
330
+ {
331
+ _$_.output_push(__out);
332
+ __out = '';
333
+ _$_.render_expression(n.value);
334
+ }
335
+
336
+ __out += '</span><button class="outer-inc">outer</button></div>';
337
+ _$_.output_push(__out);
338
+ });
339
+ });
340
+ }
341
+
342
+ export function WrapNavigatedThenStatic() {
343
+ return _$_.tsrx_element(() => {
344
+ const n = _$_.track(0, 'b4046e87');
345
+
346
+ _$_.regular_block(() => {
347
+ let __out = '';
348
+
349
+ __out += '<div class="outer">';
350
+
351
+ {
352
+ const comp = NavigatedThenStatic;
353
+ const args = [{}];
354
+
355
+ _$_.output_push(__out);
356
+ __out = '';
357
+ _$_.render_component(comp, ...args);
358
+ }
359
+
360
+ __out += '<span class="after">';
361
+
362
+ {
363
+ _$_.output_push(__out);
364
+ __out = '';
365
+ _$_.render_expression(n.value);
366
+ }
367
+
368
+ __out += '</span><button class="outer-inc">outer</button></div>';
369
+ _$_.output_push(__out);
370
+ });
371
+ });
372
+ }
373
+
374
+ export function WrapLeadingNavigatedThenStatic() {
375
+ return _$_.tsrx_element(() => {
376
+ const n = _$_.track(0, 'bed7f7ef');
377
+
378
+ _$_.regular_block(() => {
379
+ let __out = '';
380
+
381
+ __out += '<div class="outer">';
382
+
383
+ {
384
+ const comp = LeadingNavigatedThenStatic;
385
+ const args = [{}];
386
+
387
+ _$_.output_push(__out);
388
+ __out = '';
389
+ _$_.render_component(comp, ...args);
390
+ }
391
+
392
+ __out += '<span class="after">';
393
+
394
+ {
395
+ _$_.output_push(__out);
396
+ __out = '';
397
+ _$_.render_expression(n.value);
398
+ }
399
+
400
+ __out += '</span><button class="outer-inc">outer</button></div>';
401
+ _$_.output_push(__out);
402
+ });
403
+ });
404
+ }
405
+
406
+ export function WrapTrailingNestedNavigated() {
407
+ return _$_.tsrx_element(() => {
408
+ const n = _$_.track(0, 'eddbe7bc');
409
+
410
+ _$_.regular_block(() => {
411
+ let __out = '';
412
+
413
+ __out += '<div class="outer">';
414
+
415
+ {
416
+ const comp = TrailingNestedNavigated;
417
+ const args = [{}];
418
+
419
+ _$_.output_push(__out);
420
+ __out = '';
421
+ _$_.render_component(comp, ...args);
422
+ }
423
+
424
+ __out += '<span class="after">';
425
+
426
+ {
427
+ _$_.output_push(__out);
428
+ __out = '';
429
+ _$_.render_expression(n.value);
430
+ }
431
+
432
+ __out += '</span><button class="outer-inc">outer</button></div>';
433
+ _$_.output_push(__out);
434
+ });
435
+ });
436
+ }
437
+
438
+ export function WrapNestedNavigatedThenStatic() {
439
+ return _$_.tsrx_element(() => {
440
+ const n = _$_.track(0, '1bdc4523');
441
+
442
+ _$_.regular_block(() => {
443
+ let __out = '';
444
+
445
+ __out += '<div class="outer">';
446
+
447
+ {
448
+ const comp = NestedNavigatedThenStatic;
449
+ const args = [{}];
450
+
451
+ _$_.output_push(__out);
452
+ __out = '';
453
+ _$_.render_component(comp, ...args);
454
+ }
455
+
456
+ __out += '<span class="after">';
457
+
458
+ {
459
+ _$_.output_push(__out);
460
+ __out = '';
461
+ _$_.render_expression(n.value);
462
+ }
463
+
464
+ __out += '</span><button class="outer-inc">outer</button></div>';
465
+ _$_.output_push(__out);
466
+ });
467
+ });
468
+ }
469
+
470
+ export function WrapTrackedTextThenStatic() {
471
+ return _$_.tsrx_element(() => {
472
+ const n = _$_.track(0, '97e02c24');
473
+
474
+ _$_.regular_block(() => {
475
+ let __out = '';
476
+
477
+ __out += '<div class="outer">';
478
+
479
+ {
480
+ const comp = TrackedTextThenStatic;
481
+ const args = [{}];
482
+
483
+ _$_.output_push(__out);
484
+ __out = '';
485
+ _$_.render_component(comp, ...args);
486
+ }
487
+
488
+ __out += '<span class="after">';
489
+
490
+ {
491
+ _$_.output_push(__out);
492
+ __out = '';
493
+ _$_.render_expression(n.value);
494
+ }
495
+
496
+ __out += '</span><button class="outer-inc">outer</button></div>';
497
+ _$_.output_push(__out);
498
+ });
499
+ });
500
+ }
501
+
502
+ export function WrapStaticThenTrackedText() {
503
+ return _$_.tsrx_element(() => {
504
+ const n = _$_.track(0, 'd5526861');
505
+
506
+ _$_.regular_block(() => {
507
+ let __out = '';
508
+
509
+ __out += '<div class="outer">';
510
+
511
+ {
512
+ const comp = StaticThenTrackedText;
513
+ const args = [{}];
514
+
515
+ _$_.output_push(__out);
516
+ __out = '';
517
+ _$_.render_component(comp, ...args);
518
+ }
519
+
520
+ __out += '<span class="after">';
521
+
522
+ {
523
+ _$_.output_push(__out);
524
+ __out = '';
525
+ _$_.render_expression(n.value);
526
+ }
527
+
528
+ __out += '</span><button class="outer-inc">outer</button></div>';
529
+ _$_.output_push(__out);
530
+ });
531
+ });
532
+ }
533
+
534
+ export function WrapStaticNestedThenStatic() {
535
+ return _$_.tsrx_element(() => {
536
+ const n = _$_.track(0, '7e2d3fad');
537
+
538
+ _$_.regular_block(() => {
539
+ let __out = '';
540
+
541
+ __out += '<div class="outer">';
542
+
543
+ {
544
+ const comp = StaticNestedThenStatic;
545
+ const args = [{}];
546
+
547
+ _$_.output_push(__out);
548
+ __out = '';
549
+ _$_.render_component(comp, ...args);
550
+ }
551
+
552
+ __out += '<span class="after">';
553
+
554
+ {
555
+ _$_.output_push(__out);
556
+ __out = '';
557
+ _$_.render_expression(n.value);
558
+ }
559
+
560
+ __out += '</span><button class="outer-inc">outer</button></div>';
561
+ _$_.output_push(__out);
562
+ });
563
+ });
564
+ }
565
+
566
+ export function WrapAllStatic() {
567
+ return _$_.tsrx_element(() => {
568
+ const n = _$_.track(0, 'b894f45a');
569
+
570
+ _$_.regular_block(() => {
571
+ let __out = '';
572
+
573
+ __out += '<div class="outer">';
574
+
575
+ {
576
+ const comp = AllStatic;
577
+ const args = [{}];
578
+
579
+ _$_.output_push(__out);
580
+ __out = '';
581
+ _$_.render_component(comp, ...args);
582
+ }
583
+
584
+ __out += '<span class="after">';
585
+
586
+ {
587
+ _$_.output_push(__out);
588
+ __out = '';
589
+ _$_.render_expression(n.value);
590
+ }
591
+
592
+ __out += '</span><button class="outer-inc">outer</button></div>';
593
+ _$_.output_push(__out);
594
+ });
595
+ });
596
+ }
597
+
598
+ export function WrapTrailingDynamicChild() {
599
+ return _$_.tsrx_element(() => {
600
+ const n = _$_.track(0, '038446ca');
601
+
602
+ _$_.regular_block(() => {
603
+ let __out = '';
604
+
605
+ __out += '<div class="outer">';
606
+
607
+ {
608
+ const comp = TrailingDynamicChild;
609
+ const args = [{}];
610
+
611
+ _$_.output_push(__out);
612
+ __out = '';
613
+ _$_.render_component(comp, ...args);
614
+ }
615
+
616
+ __out += '<span class="after">';
617
+
618
+ {
619
+ _$_.output_push(__out);
620
+ __out = '';
621
+ _$_.render_expression(n.value);
622
+ }
623
+
624
+ __out += '</span><button class="outer-inc">outer</button></div>';
625
+ _$_.output_push(__out);
626
+ });
627
+ });
628
+ }
629
+
630
+ export function WrapDynamicChildThenStatic() {
631
+ return _$_.tsrx_element(() => {
632
+ const n = _$_.track(0, '3ec460c3');
633
+
634
+ _$_.regular_block(() => {
635
+ let __out = '';
636
+
637
+ __out += '<div class="outer">';
638
+
639
+ {
640
+ const comp = DynamicChildThenStatic;
641
+ const args = [{}];
642
+
643
+ _$_.output_push(__out);
644
+ __out = '';
645
+ _$_.render_component(comp, ...args);
646
+ }
647
+
648
+ __out += '<span class="after">';
649
+
650
+ {
651
+ _$_.output_push(__out);
652
+ __out = '';
653
+ _$_.render_expression(n.value);
654
+ }
655
+
656
+ __out += '</span><button class="outer-inc">outer</button></div>';
657
+ _$_.output_push(__out);
658
+ });
659
+ });
660
+ }
661
+
662
+ export function WrapIfThenStatic() {
663
+ return _$_.tsrx_element(() => {
664
+ const n = _$_.track(0, '95b417dd');
665
+
666
+ _$_.regular_block(() => {
667
+ let __out = '';
668
+
669
+ __out += '<div class="outer">';
670
+
671
+ {
672
+ const comp = IfThenStatic;
673
+ const args = [{}];
674
+
675
+ _$_.output_push(__out);
676
+ __out = '';
677
+ _$_.render_component(comp, ...args);
678
+ }
679
+
680
+ __out += '<span class="after">';
681
+
682
+ {
683
+ _$_.output_push(__out);
684
+ __out = '';
685
+ _$_.render_expression(n.value);
686
+ }
687
+
688
+ __out += '</span><button class="outer-inc">outer</button></div>';
689
+ _$_.output_push(__out);
690
+ });
691
+ });
692
+ }
693
+
694
+ export function WrapStaticThenIf() {
695
+ return _$_.tsrx_element(() => {
696
+ const n = _$_.track(0, '1f01fa6f');
697
+
698
+ _$_.regular_block(() => {
699
+ let __out = '';
700
+
701
+ __out += '<div class="outer">';
702
+
703
+ {
704
+ const comp = StaticThenIf;
705
+ const args = [{}];
706
+
707
+ _$_.output_push(__out);
708
+ __out = '';
709
+ _$_.render_component(comp, ...args);
710
+ }
711
+
712
+ __out += '<span class="after">';
713
+
714
+ {
715
+ _$_.output_push(__out);
716
+ __out = '';
717
+ _$_.render_expression(n.value);
718
+ }
719
+
720
+ __out += '</span><button class="outer-inc">outer</button></div>';
721
+ _$_.output_push(__out);
722
+ });
723
+ });
724
+ }
725
+
726
+ export function WrapCompThenStatic() {
727
+ return _$_.tsrx_element(() => {
728
+ const n = _$_.track(0, 'e6bdb91d');
729
+
730
+ _$_.regular_block(() => {
731
+ let __out = '';
732
+
733
+ __out += '<div class="outer">';
734
+
735
+ {
736
+ const comp = CompThenStatic;
737
+ const args = [{}];
738
+
739
+ _$_.output_push(__out);
740
+ __out = '';
741
+ _$_.render_component(comp, ...args);
742
+ }
743
+
744
+ __out += '<span class="after">';
745
+
746
+ {
747
+ _$_.output_push(__out);
748
+ __out = '';
749
+ _$_.render_expression(n.value);
750
+ }
751
+
752
+ __out += '</span><button class="outer-inc">outer</button></div>';
753
+ _$_.output_push(__out);
754
+ });
755
+ });
756
+ }
757
+
758
+ export function WrapStaticThenComp() {
759
+ return _$_.tsrx_element(() => {
760
+ const n = _$_.track(0, '89d5704c');
761
+
762
+ _$_.regular_block(() => {
763
+ let __out = '';
764
+
765
+ __out += '<div class="outer">';
766
+
767
+ {
768
+ const comp = StaticThenComp;
769
+ const args = [{}];
770
+
771
+ _$_.output_push(__out);
772
+ __out = '';
773
+ _$_.render_component(comp, ...args);
774
+ }
775
+
776
+ __out += '<span class="after">';
777
+
778
+ {
779
+ _$_.output_push(__out);
780
+ __out = '';
781
+ _$_.render_expression(n.value);
782
+ }
783
+
784
+ __out += '</span><button class="outer-inc">outer</button></div>';
785
+ _$_.output_push(__out);
786
+ });
787
+ });
788
+ }
789
+
790
+ export function WrapSiblingComps() {
791
+ return _$_.tsrx_element(() => {
792
+ const n = _$_.track(0, 'c5c51af6');
793
+
794
+ _$_.regular_block(() => {
795
+ let __out = '';
796
+
797
+ __out += '<div class="outer">';
798
+
799
+ {
800
+ const comp = SiblingComps;
801
+ const args = [{}];
802
+
803
+ _$_.output_push(__out);
804
+ __out = '';
805
+ _$_.render_component(comp, ...args);
806
+ }
807
+
808
+ __out += '<span class="after">';
809
+
810
+ {
811
+ _$_.output_push(__out);
812
+ __out = '';
813
+ _$_.render_expression(n.value);
814
+ }
815
+
816
+ __out += '</span><button class="outer-inc">outer</button></div>';
817
+ _$_.output_push(__out);
818
+ });
819
+ });
820
+ }
821
+
822
+ export function UntrackedTextThenStatic() {
823
+ return _$_.tsrx_element(() => {
824
+ const label = 'label';
825
+
826
+ _$_.regular_block(() => {
827
+ let __out = '';
828
+
829
+ __out += '<!--[-->';
830
+ _$_.output_push(__out);
831
+ __out = '';
832
+ _$_.render_expression(label.toUpperCase());
833
+ __out += '<div class="a">a</div><div class="b">b</div><!--]-->';
834
+ _$_.output_push(__out);
835
+ });
836
+ });
837
+ }
838
+
839
+ export function NestedFragmentThenStatic() {
840
+ return _$_.tsrx_element(() => {
841
+ _$_.regular_block(() => {
842
+ let __out = '';
843
+
844
+ __out += '<div class="a">a</div><span class="x">x</span><span class="y">y</span><div class="b">b</div><div class="c">c</div>';
845
+ _$_.output_push(__out);
846
+ });
847
+ });
848
+ }
849
+
850
+ export function TrailingNestedFragment() {
851
+ return _$_.tsrx_element(() => {
852
+ const n = _$_.track(0, '82cbc65f');
853
+
854
+ _$_.regular_block(() => {
855
+ let __out = '';
856
+
857
+ __out += '<div class="count">';
858
+
859
+ {
860
+ _$_.output_push(__out);
861
+ __out = '';
862
+ _$_.render_expression(n.value);
863
+ }
864
+
865
+ __out += '</div><span class="x">x</span><button class="inc">inc</button>';
866
+ _$_.output_push(__out);
867
+ });
868
+ });
869
+ }
870
+
871
+ export function ForThenStatic() {
872
+ return _$_.tsrx_element(() => {
873
+ const items = [1, 2];
874
+
875
+ _$_.regular_block(() => {
876
+ let __out = '';
877
+
878
+ __out += '<!--[--><!--[-->';
879
+
880
+ for (const item of items) {
881
+ __out += '<b class="item">';
882
+
883
+ {
884
+ _$_.output_push(__out);
885
+ __out = '';
886
+ _$_.render_expression(item);
887
+ }
888
+
889
+ __out += '</b>';
890
+ }
891
+
892
+ __out += '<!--]--><div class="a">a</div><div class="b">b</div><!--]-->';
893
+ _$_.output_push(__out);
894
+ });
895
+ });
896
+ }
897
+
898
+ export function SwitchThenStatic() {
899
+ return _$_.tsrx_element(() => {
900
+ const n = _$_.track(0, '800f9ff3');
901
+
902
+ _$_.regular_block(() => {
903
+ let __out = '';
904
+
905
+ __out += '<!--[--><!--[-->';
906
+
907
+ switch (n.value) {
908
+ case 0:
909
+ __out += '<b class="zero">zero</b>';
910
+ break;
911
+
912
+ default:
913
+ __out += '<b class="other">other</b>';
914
+ break;
915
+ }
916
+
917
+ __out += '<!--]--><div class="a">a</div><div class="b">b</div><!--]-->';
918
+ _$_.output_push(__out);
919
+ });
920
+ });
921
+ }
922
+
923
+ export function TryThenStatic() {
924
+ return _$_.tsrx_element(() => {
925
+ _$_.regular_block(() => {
926
+ let __out = '';
927
+
928
+ __out += '<!--[-->';
929
+ _$_.output_push(__out);
930
+ __out = '';
931
+
932
+ _$_.try_block(
933
+ () => {
934
+ let __out = '';
935
+
936
+ __out += '<!--[--><b class="try">try</b><!--]-->';
937
+ _$_.output_push(__out);
938
+ },
939
+ (e) => {
940
+ let __out = '';
941
+
942
+ __out += '<!--[--><b class="catch">catch</b><!--]-->';
943
+ _$_.output_push(__out);
944
+ },
945
+ null
946
+ );
947
+
948
+ __out += '<div class="a">a</div><div class="b">b</div><!--]-->';
949
+ _$_.output_push(__out);
950
+ });
951
+ });
952
+ }
953
+
954
+ export function StyleThenStatic() {
955
+ return _$_.tsrx_element(() => {
956
+ _$_.regular_block(() => {
957
+ let __out = '';
958
+
959
+ __out += '<style>' + _$_.escape(`.styled { color: red; }`) + '</style><div class="styled a">a</div><div class="styled b">b</div>';
960
+ _$_.output_push(__out);
961
+ });
962
+ });
963
+ }
964
+
965
+ export function CollectionThenStatic() {
966
+ return _$_.tsrx_element(() => {
967
+ const items = [1, 2];
968
+
969
+ _$_.regular_block(() => {
970
+ let __out = '';
971
+
972
+ __out += '<!--[-->';
973
+ _$_.output_push(__out);
974
+ __out = '';
975
+
976
+ _$_.render_expression(items.map((item) => _$_.tsrx_element(() => {
977
+ let __out = '';
978
+
979
+ __out += '<b class="item">';
980
+
981
+ {
982
+ _$_.output_push(__out);
983
+ __out = '';
984
+ _$_.render_expression(item);
985
+ }
986
+
987
+ __out += '</b>';
988
+ _$_.output_push(__out);
989
+ })));
990
+
991
+ __out += '<div class="a">a</div><div class="b">b</div><!--]-->';
992
+ _$_.output_push(__out);
993
+ });
994
+ });
995
+ }
996
+
997
+ export function InlineElementThenStatic() {
998
+ return _$_.tsrx_element(() => {
999
+ _$_.regular_block(() => {
1000
+ let __out = '';
1001
+
1002
+ __out += '<!--[-->';
1003
+ _$_.output_push(__out);
1004
+ __out = '';
1005
+
1006
+ _$_.render_expression(_$_.tsrx_element(() => {
1007
+ let __out = '';
1008
+
1009
+ __out += '<b class="inline">inline</b>';
1010
+ _$_.output_push(__out);
1011
+ }));
1012
+
1013
+ __out += '<div class="a">a</div><div class="b">b</div><!--]-->';
1014
+ _$_.output_push(__out);
1015
+ });
1016
+ });
1017
+ }
1018
+
1019
+ export function WrapUntrackedTextThenStatic() {
1020
+ return _$_.tsrx_element(() => {
1021
+ const n = _$_.track(0, '3a78abea');
1022
+
1023
+ _$_.regular_block(() => {
1024
+ let __out = '';
1025
+
1026
+ __out += '<div class="outer">';
1027
+
1028
+ {
1029
+ const comp = UntrackedTextThenStatic;
1030
+ const args = [{}];
1031
+
1032
+ _$_.output_push(__out);
1033
+ __out = '';
1034
+ _$_.render_component(comp, ...args);
1035
+ }
1036
+
1037
+ __out += '<span class="after">';
1038
+
1039
+ {
1040
+ _$_.output_push(__out);
1041
+ __out = '';
1042
+ _$_.render_expression(n.value);
1043
+ }
1044
+
1045
+ __out += '</span><button class="outer-inc">outer</button></div>';
1046
+ _$_.output_push(__out);
1047
+ });
1048
+ });
1049
+ }
1050
+
1051
+ export function WrapNestedFragmentThenStatic() {
1052
+ return _$_.tsrx_element(() => {
1053
+ const n = _$_.track(0, 'db289d00');
1054
+
1055
+ _$_.regular_block(() => {
1056
+ let __out = '';
1057
+
1058
+ __out += '<div class="outer">';
1059
+
1060
+ {
1061
+ const comp = NestedFragmentThenStatic;
1062
+ const args = [{}];
1063
+
1064
+ _$_.output_push(__out);
1065
+ __out = '';
1066
+ _$_.render_component(comp, ...args);
1067
+ }
1068
+
1069
+ __out += '<span class="after">';
1070
+
1071
+ {
1072
+ _$_.output_push(__out);
1073
+ __out = '';
1074
+ _$_.render_expression(n.value);
1075
+ }
1076
+
1077
+ __out += '</span><button class="outer-inc">outer</button></div>';
1078
+ _$_.output_push(__out);
1079
+ });
1080
+ });
1081
+ }
1082
+
1083
+ export function WrapTrailingNestedFragment() {
1084
+ return _$_.tsrx_element(() => {
1085
+ const n = _$_.track(0, 'bb509235');
1086
+
1087
+ _$_.regular_block(() => {
1088
+ let __out = '';
1089
+
1090
+ __out += '<div class="outer">';
1091
+
1092
+ {
1093
+ const comp = TrailingNestedFragment;
1094
+ const args = [{}];
1095
+
1096
+ _$_.output_push(__out);
1097
+ __out = '';
1098
+ _$_.render_component(comp, ...args);
1099
+ }
1100
+
1101
+ __out += '<span class="after">';
1102
+
1103
+ {
1104
+ _$_.output_push(__out);
1105
+ __out = '';
1106
+ _$_.render_expression(n.value);
1107
+ }
1108
+
1109
+ __out += '</span><button class="outer-inc">outer</button></div>';
1110
+ _$_.output_push(__out);
1111
+ });
1112
+ });
1113
+ }
1114
+
1115
+ export function WrapForThenStatic() {
1116
+ return _$_.tsrx_element(() => {
1117
+ const n = _$_.track(0, 'a715e40a');
1118
+
1119
+ _$_.regular_block(() => {
1120
+ let __out = '';
1121
+
1122
+ __out += '<div class="outer">';
1123
+
1124
+ {
1125
+ const comp = ForThenStatic;
1126
+ const args = [{}];
1127
+
1128
+ _$_.output_push(__out);
1129
+ __out = '';
1130
+ _$_.render_component(comp, ...args);
1131
+ }
1132
+
1133
+ __out += '<span class="after">';
1134
+
1135
+ {
1136
+ _$_.output_push(__out);
1137
+ __out = '';
1138
+ _$_.render_expression(n.value);
1139
+ }
1140
+
1141
+ __out += '</span><button class="outer-inc">outer</button></div>';
1142
+ _$_.output_push(__out);
1143
+ });
1144
+ });
1145
+ }
1146
+
1147
+ export function WrapSwitchThenStatic() {
1148
+ return _$_.tsrx_element(() => {
1149
+ const n = _$_.track(0, 'a598ad9f');
1150
+
1151
+ _$_.regular_block(() => {
1152
+ let __out = '';
1153
+
1154
+ __out += '<div class="outer">';
1155
+
1156
+ {
1157
+ const comp = SwitchThenStatic;
1158
+ const args = [{}];
1159
+
1160
+ _$_.output_push(__out);
1161
+ __out = '';
1162
+ _$_.render_component(comp, ...args);
1163
+ }
1164
+
1165
+ __out += '<span class="after">';
1166
+
1167
+ {
1168
+ _$_.output_push(__out);
1169
+ __out = '';
1170
+ _$_.render_expression(n.value);
1171
+ }
1172
+
1173
+ __out += '</span><button class="outer-inc">outer</button></div>';
1174
+ _$_.output_push(__out);
1175
+ });
1176
+ });
1177
+ }
1178
+
1179
+ export function WrapTryThenStatic() {
1180
+ return _$_.tsrx_element(() => {
1181
+ const n = _$_.track(0, '1030b116');
1182
+
1183
+ _$_.regular_block(() => {
1184
+ let __out = '';
1185
+
1186
+ __out += '<div class="outer">';
1187
+
1188
+ {
1189
+ const comp = TryThenStatic;
1190
+ const args = [{}];
1191
+
1192
+ _$_.output_push(__out);
1193
+ __out = '';
1194
+ _$_.render_component(comp, ...args);
1195
+ }
1196
+
1197
+ __out += '<span class="after">';
1198
+
1199
+ {
1200
+ _$_.output_push(__out);
1201
+ __out = '';
1202
+ _$_.render_expression(n.value);
1203
+ }
1204
+
1205
+ __out += '</span><button class="outer-inc">outer</button></div>';
1206
+ _$_.output_push(__out);
1207
+ });
1208
+ });
1209
+ }
1210
+
1211
+ export function WrapStyleThenStatic() {
1212
+ return _$_.tsrx_element(() => {
1213
+ const n = _$_.track(0, 'f35d8716');
1214
+
1215
+ _$_.regular_block(() => {
1216
+ let __out = '';
1217
+
1218
+ __out += '<div class="outer">';
1219
+
1220
+ {
1221
+ const comp = StyleThenStatic;
1222
+ const args = [{}];
1223
+
1224
+ _$_.output_push(__out);
1225
+ __out = '';
1226
+ _$_.render_component(comp, ...args);
1227
+ }
1228
+
1229
+ __out += '<span class="after">';
1230
+
1231
+ {
1232
+ _$_.output_push(__out);
1233
+ __out = '';
1234
+ _$_.render_expression(n.value);
1235
+ }
1236
+
1237
+ __out += '</span><button class="outer-inc">outer</button></div>';
1238
+ _$_.output_push(__out);
1239
+ });
1240
+ });
1241
+ }
1242
+
1243
+ export function WrapCollectionThenStatic() {
1244
+ return _$_.tsrx_element(() => {
1245
+ const n = _$_.track(0, 'b1e7a298');
1246
+
1247
+ _$_.regular_block(() => {
1248
+ let __out = '';
1249
+
1250
+ __out += '<div class="outer">';
1251
+
1252
+ {
1253
+ const comp = CollectionThenStatic;
1254
+ const args = [{}];
1255
+
1256
+ _$_.output_push(__out);
1257
+ __out = '';
1258
+ _$_.render_component(comp, ...args);
1259
+ }
1260
+
1261
+ __out += '<span class="after">';
1262
+
1263
+ {
1264
+ _$_.output_push(__out);
1265
+ __out = '';
1266
+ _$_.render_expression(n.value);
1267
+ }
1268
+
1269
+ __out += '</span><button class="outer-inc">outer</button></div>';
1270
+ _$_.output_push(__out);
1271
+ });
1272
+ });
1273
+ }
1274
+
1275
+ export function WrapInlineElementThenStatic() {
1276
+ return _$_.tsrx_element(() => {
1277
+ const n = _$_.track(0, 'df10dc38');
1278
+
1279
+ _$_.regular_block(() => {
1280
+ let __out = '';
1281
+
1282
+ __out += '<div class="outer">';
1283
+
1284
+ {
1285
+ const comp = InlineElementThenStatic;
1286
+ const args = [{}];
1287
+
1288
+ _$_.output_push(__out);
1289
+ __out = '';
1290
+ _$_.render_component(comp, ...args);
1291
+ }
1292
+
1293
+ __out += '<span class="after">';
1294
+
1295
+ {
1296
+ _$_.output_push(__out);
1297
+ __out = '';
1298
+ _$_.render_expression(n.value);
1299
+ }
1300
+
1301
+ __out += '</span><button class="outer-inc">outer</button></div>';
1302
+ _$_.output_push(__out);
1303
+ });
1304
+ });
1305
+ }
1306
+
1307
+ export function IfOnly() {
1308
+ return _$_.tsrx_element(() => {
1309
+ const n = _$_.track(0, 'c6afe814');
1310
+
1311
+ _$_.regular_block(() => {
1312
+ let __out = '';
1313
+
1314
+ __out += '<!--[--><!--[-->';
1315
+
1316
+ if (n.value >= 0) {
1317
+ __out += '<b class="if">x</b>';
1318
+ }
1319
+
1320
+ __out += '<!--]--><!--]-->';
1321
+ _$_.output_push(__out);
1322
+ });
1323
+ });
1324
+ }
1325
+
1326
+ export function IfThenOne() {
1327
+ return _$_.tsrx_element(() => {
1328
+ const n = _$_.track(0, 'c3b63525');
1329
+
1330
+ _$_.regular_block(() => {
1331
+ let __out = '';
1332
+
1333
+ __out += '<!--[--><!--[-->';
1334
+
1335
+ if (n.value >= 0) {
1336
+ __out += '<b class="if">x</b>';
1337
+ }
1338
+
1339
+ __out += '<!--]--><div class="a">a</div><!--]-->';
1340
+ _$_.output_push(__out);
1341
+ });
1342
+ });
1343
+ }
1344
+
1345
+ export function SingleRootWithIf() {
1346
+ return _$_.tsrx_element(() => {
1347
+ const n = _$_.track(0, '63d962e3');
1348
+
1349
+ _$_.regular_block(() => {
1350
+ let __out = '';
1351
+
1352
+ __out += '<div class="root"><!--[-->';
1353
+
1354
+ if (n.value >= 0) {
1355
+ __out += '<b class="if">x</b>';
1356
+ }
1357
+
1358
+ __out += '<!--]--></div>';
1359
+ _$_.output_push(__out);
1360
+ });
1361
+ });
1362
+ }
1363
+
1364
+ export function WrapIfOnly() {
1365
+ return _$_.tsrx_element(() => {
1366
+ const n = _$_.track(0, '83c8f19d');
1367
+
1368
+ _$_.regular_block(() => {
1369
+ let __out = '';
1370
+
1371
+ __out += '<div class="outer">';
1372
+
1373
+ {
1374
+ const comp = IfOnly;
1375
+ const args = [{}];
1376
+
1377
+ _$_.output_push(__out);
1378
+ __out = '';
1379
+ _$_.render_component(comp, ...args);
1380
+ }
1381
+
1382
+ __out += '<span class="after">';
1383
+
1384
+ {
1385
+ _$_.output_push(__out);
1386
+ __out = '';
1387
+ _$_.render_expression(n.value);
1388
+ }
1389
+
1390
+ __out += '</span><button class="outer-inc">outer</button></div>';
1391
+ _$_.output_push(__out);
1392
+ });
1393
+ });
1394
+ }
1395
+
1396
+ export function WrapIfThenOne() {
1397
+ return _$_.tsrx_element(() => {
1398
+ const n = _$_.track(0, '2cee9a57');
1399
+
1400
+ _$_.regular_block(() => {
1401
+ let __out = '';
1402
+
1403
+ __out += '<div class="outer">';
1404
+
1405
+ {
1406
+ const comp = IfThenOne;
1407
+ const args = [{}];
1408
+
1409
+ _$_.output_push(__out);
1410
+ __out = '';
1411
+ _$_.render_component(comp, ...args);
1412
+ }
1413
+
1414
+ __out += '<span class="after">';
1415
+
1416
+ {
1417
+ _$_.output_push(__out);
1418
+ __out = '';
1419
+ _$_.render_expression(n.value);
1420
+ }
1421
+
1422
+ __out += '</span><button class="outer-inc">outer</button></div>';
1423
+ _$_.output_push(__out);
1424
+ });
1425
+ });
1426
+ }
1427
+
1428
+ export function WrapSingleRootWithIf() {
1429
+ return _$_.tsrx_element(() => {
1430
+ const n = _$_.track(0, 'c179a57b');
1431
+
1432
+ _$_.regular_block(() => {
1433
+ let __out = '';
1434
+
1435
+ __out += '<div class="outer">';
1436
+
1437
+ {
1438
+ const comp = SingleRootWithIf;
1439
+ const args = [{}];
1440
+
1441
+ _$_.output_push(__out);
1442
+ __out = '';
1443
+ _$_.render_component(comp, ...args);
1444
+ }
1445
+
1446
+ __out += '<span class="after">';
1447
+
1448
+ {
1449
+ _$_.output_push(__out);
1450
+ __out = '';
1451
+ _$_.render_expression(n.value);
1452
+ }
1453
+
1454
+ __out += '</span><button class="outer-inc">outer</button></div>';
1455
+ _$_.output_push(__out);
1456
+ });
1457
+ });
1458
+ }
1459
+
1460
+ export function ExprThenSiblingInDiv() {
1461
+ return _$_.tsrx_element(() => {
1462
+ const n = _$_.track(0, 'db1d59ee');
1463
+ const label = 'label';
1464
+
1465
+ _$_.regular_block(() => {
1466
+ let __out = '';
1467
+
1468
+ __out += '<div class="outer">';
1469
+ _$_.output_push(__out);
1470
+ __out = '';
1471
+ _$_.render_expression(label.toUpperCase());
1472
+ __out += '<span class="after">';
1473
+
1474
+ {
1475
+ _$_.output_push(__out);
1476
+ __out = '';
1477
+ _$_.render_expression(n.value);
1478
+ }
1479
+
1480
+ __out += '</span><button class="outer-inc">outer</button></div>';
1481
+ _$_.output_push(__out);
1482
+ });
1483
+ });
1484
+ }
1485
+
1486
+ export function IfTwoThenStatic() {
1487
+ return _$_.tsrx_element(() => {
1488
+ const n = _$_.track(0, 'd8310b12');
1489
+
1490
+ _$_.regular_block(() => {
1491
+ let __out = '';
1492
+
1493
+ __out += '<!--[--><!--[-->';
1494
+
1495
+ if (n.value >= 0) {
1496
+ __out += '<b class="if">x</b><i class="if2">y</i>';
1497
+ }
1498
+
1499
+ __out += '<!--]--><div class="a">a</div><div class="b">b</div><!--]-->';
1500
+ _$_.output_push(__out);
1501
+ });
1502
+ });
1503
+ }
1504
+
1505
+ export function IfTwoInDiv() {
1506
+ return _$_.tsrx_element(() => {
1507
+ const n = _$_.track(0, '0c602c2f');
1508
+
1509
+ _$_.regular_block(() => {
1510
+ let __out = '';
1511
+
1512
+ __out += '<div class="outer"><!--[-->';
1513
+
1514
+ if (n.value >= 0) {
1515
+ __out += '<b class="if">x</b><i class="if2">y</i>';
1516
+ }
1517
+
1518
+ __out += '<!--]--><span class="after">';
1519
+
1520
+ {
1521
+ _$_.output_push(__out);
1522
+ __out = '';
1523
+ _$_.render_expression(n.value);
1524
+ }
1525
+
1526
+ __out += '</span><button class="outer-inc">outer</button></div>';
1527
+ _$_.output_push(__out);
1528
+ });
1529
+ });
1530
+ }
1531
+
1532
+ export function WrapIfTwoThenStatic() {
1533
+ return _$_.tsrx_element(() => {
1534
+ const n = _$_.track(0, 'cd8f8438');
1535
+
1536
+ _$_.regular_block(() => {
1537
+ let __out = '';
1538
+
1539
+ __out += '<div class="outer">';
1540
+
1541
+ {
1542
+ const comp = IfTwoThenStatic;
1543
+ const args = [{}];
1544
+
1545
+ _$_.output_push(__out);
1546
+ __out = '';
1547
+ _$_.render_component(comp, ...args);
1548
+ }
1549
+
1550
+ __out += '<span class="after">';
1551
+
1552
+ {
1553
+ _$_.output_push(__out);
1554
+ __out = '';
1555
+ _$_.render_expression(n.value);
1556
+ }
1557
+
1558
+ __out += '</span><button class="outer-inc">outer</button></div>';
1559
+ _$_.output_push(__out);
1560
+ });
1561
+ });
1562
+ }
1563
+
1564
+ export function ForTwoNodeItems() {
1565
+ return _$_.tsrx_element(() => {
1566
+ const items = [1, 2];
1567
+
1568
+ _$_.regular_block(() => {
1569
+ let __out = '';
1570
+
1571
+ __out += '<div class="outer"><!--[-->';
1572
+
1573
+ for (const item of items) {
1574
+ __out += '<b class="item">';
1575
+
1576
+ {
1577
+ _$_.output_push(__out);
1578
+ __out = '';
1579
+ _$_.render_expression(item);
1580
+ }
1581
+
1582
+ __out += '</b><i class="sep">|</i>';
1583
+ }
1584
+
1585
+ __out += '<!--]--><span class="after">after</span></div>';
1586
+ _$_.output_push(__out);
1587
+ });
1588
+ });
1589
+ }
1590
+
1591
+ export function StaticCallThenStatic() {
1592
+ return _$_.tsrx_element(() => {
1593
+ const makeB = () => _$_.tsrx_element(() => {
1594
+ _$_.regular_block(() => {
1595
+ let __out = '';
1596
+
1597
+ __out += '<b class="made">made</b>';
1598
+ _$_.output_push(__out);
1599
+ });
1600
+ });
1601
+
1602
+ _$_.regular_block(() => {
1603
+ let __out = '';
1604
+
1605
+ _$_.output_push(__out);
1606
+ __out = '';
1607
+ _$_.render_tsrx_element(makeB());
1608
+ __out += '<div class="a">a</div><div class="b">b</div>';
1609
+ _$_.output_push(__out);
1610
+ });
1611
+ });
1612
+ }
1613
+
1614
+ export function StaticThenStyleThenStatic() {
1615
+ return _$_.tsrx_element(() => {
1616
+ _$_.regular_block(() => {
1617
+ let __out = '';
1618
+
1619
+ __out += '<div class="a">a</div><style>' + _$_.escape(`.styled2 { color: blue; }`) + '</style><div class="styled2 b">b</div><div class="styled2 c">c</div>';
1620
+ _$_.output_push(__out);
1621
+ });
1622
+ });
1623
+ }
1624
+
1625
+ export function WrapStaticCallThenStatic() {
1626
+ return _$_.tsrx_element(() => {
1627
+ const n = _$_.track(0, '4513c76f');
1628
+
1629
+ _$_.regular_block(() => {
1630
+ let __out = '';
1631
+
1632
+ __out += '<div class="outer">';
1633
+
1634
+ {
1635
+ const comp = StaticCallThenStatic;
1636
+ const args = [{}];
1637
+
1638
+ _$_.output_push(__out);
1639
+ __out = '';
1640
+ _$_.render_component(comp, ...args);
1641
+ }
1642
+
1643
+ __out += '<span class="after">';
1644
+
1645
+ {
1646
+ _$_.output_push(__out);
1647
+ __out = '';
1648
+ _$_.render_expression(n.value);
1649
+ }
1650
+
1651
+ __out += '</span><button class="outer-inc">outer</button></div>';
1652
+ _$_.output_push(__out);
1653
+ });
1654
+ });
1655
+ }
1656
+
1657
+ export function WrapStaticThenStyleThenStatic() {
1658
+ return _$_.tsrx_element(() => {
1659
+ const n = _$_.track(0, '5d5162df');
1660
+
1661
+ _$_.regular_block(() => {
1662
+ let __out = '';
1663
+
1664
+ __out += '<div class="outer">';
1665
+
1666
+ {
1667
+ const comp = StaticThenStyleThenStatic;
1668
+ const args = [{}];
1669
+
1670
+ _$_.output_push(__out);
1671
+ __out = '';
1672
+ _$_.render_component(comp, ...args);
1673
+ }
1674
+
1675
+ __out += '<span class="after">';
1676
+
1677
+ {
1678
+ _$_.output_push(__out);
1679
+ __out = '';
1680
+ _$_.render_expression(n.value);
1681
+ }
1682
+
1683
+ __out += '</span><button class="outer-inc">outer</button></div>';
1684
+ _$_.output_push(__out);
1685
+ });
1686
+ });
1687
+ }