1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
import { template as _$template } from "r-dom";
import { createComponent as _$createComponent } from "r-dom";
import { insert as _$insert } from "r-dom";
const _tmpl$ = /*#__PURE__*/ _$template(`<span>Hello </span>`, 2),
_tmpl$2 = /*#__PURE__*/ _$template(`<span> John</span>`, 2),
_tmpl$3 = /*#__PURE__*/ _$template(`<span>Hello John</span>`, 2),
_tmpl$4 = /*#__PURE__*/ _$template(`<span> </span>`, 2),
_tmpl$5 = /*#__PURE__*/ _$template(`<span> <!> <!> </span>`, 4),
_tmpl$6 = /*#__PURE__*/ _$template(`<span> <!> </span>`, 3),
_tmpl$7 = /*#__PURE__*/ _$template(`<span>Hello</span>`, 2),
_tmpl$8 = /*#__PURE__*/ _$template(`<span> <Hi> </span>`, 2),
_tmpl$9 = /*#__PURE__*/ _$template(
`<span>Hi<script>alert();</script></span>`,
2
),
_tmpl$10 = /*#__PURE__*/ _$template(`<span>Hello World!</span>`, 2),
_tmpl$11 = /*#__PURE__*/ _$template(`<span>4 + 5 = 9</span>`, 2),
_tmpl$12 = /*#__PURE__*/ _$template(
`<div>
d</div>`,
2
),
_tmpl$13 = /*#__PURE__*/ _$template(`<div></div>`, 2);
const trailing = _tmpl$.cloneNode(true);
const leading = _tmpl$2.cloneNode(true);
/* prettier-ignore */
const extraSpaces = _tmpl$3.cloneNode(true);
const trailingExpr = (() => {
const _el$4 = _tmpl$.cloneNode(true),
_el$5 = _el$4.firstChild;
_$insert(_el$4, name, null);
return _el$4;
})();
const leadingExpr = (() => {
const _el$6 = _tmpl$2.cloneNode(true),
_el$7 = _el$6.firstChild;
_$insert(_el$6, greeting, _el$7);
return _el$6;
})();
/* prettier-ignore */
const multiExpr = (() => {
const _el$8 = _tmpl$4.cloneNode(true),
_el$9 = _el$8.firstChild;
_$insert(_el$8, greeting, _el$9);
_$insert(_el$8, name, null);
return _el$8;
})();
/* prettier-ignore */
const multiExprSpaced = (() => {
const _el$10 = _tmpl$5.cloneNode(true),
_el$11 = _el$10.firstChild,
_el$14 = _el$11.nextSibling,
_el$12 = _el$14.nextSibling,
_el$15 = _el$12.nextSibling,
_el$13 = _el$15.nextSibling;
_$insert(_el$10, greeting, _el$14);
_$insert(_el$10, name, _el$15);
return _el$10;
})();
/* prettier-ignore */
const multiExprTogether = (() => {
const _el$16 = _tmpl$6.cloneNode(true),
_el$17 = _el$16.firstChild,
_el$19 = _el$17.nextSibling,
_el$18 = _el$19.nextSibling;
_$insert(_el$16, greeting, _el$19);
_$insert(_el$16, name, _el$19);
return _el$16;
})();
/* prettier-ignore */
const multiLine = _tmpl$7.cloneNode(true);
/* prettier-ignore */
const multiLineTrailingSpace = _tmpl$3.cloneNode(true);
/* prettier-ignore */
const multiLineNoTrailingSpace = _tmpl$3.cloneNode(true);
/* prettier-ignore */
const escape = _tmpl$8.cloneNode(true);
/* prettier-ignore */
const escape2 = _$createComponent(Comp, {
children: "\xA0<Hi>\xA0"
});
/* prettier-ignore */
const escape3 = "\xA0<Hi>\xA0";
const injection = _tmpl$9.cloneNode(true);
let value = "World";
const evaluated = _tmpl$10.cloneNode(true);
let number = 4 + 5;
const evaluatedNonString = _tmpl$11.cloneNode(true);
const newLineLiteral = (() => {
const _el$27 = _tmpl$12.cloneNode(true),
_el$28 = _el$27.firstChild;
_$insert(_el$27, s, _el$28);
return _el$27;
})();
const trailingSpace = (() => {
const _el$29 = _tmpl$13.cloneNode(true);
_$insert(_el$29, expr);
return _el$29;
})();
const trailingSpaceComp = _$createComponent(Comp, {
children: expr,
});
const trailingSpaceFrag = expr;
|