marko 5.37.47 → 5.37.49

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 (66) hide show
  1. package/dist/node_modules/@internal/components-entry/index.js +17 -10
  2. package/dist/node_modules/@internal/components-entry-legacy/index-browser.js +3 -3
  3. package/dist/node_modules/@internal/components-registry/index-browser.js +33 -33
  4. package/dist/node_modules/@internal/components-registry/index.js +2 -2
  5. package/dist/node_modules/@internal/components-util/index-browser.js +16 -16
  6. package/dist/node_modules/@internal/components-util/index.js +4 -4
  7. package/dist/node_modules/@internal/create-readable/index-browser.js +1 -1
  8. package/dist/node_modules/@internal/create-readable/index.js +9 -9
  9. package/dist/node_modules/@internal/preserve-tag/index-browser.js +5 -5
  10. package/dist/node_modules/@internal/preserve-tag/index.js +1 -1
  11. package/dist/node_modules/@internal/set-immediate/index-browser.js +1 -1
  12. package/dist/node_modules/@internal/set-immediate/index-worker.js +2 -2
  13. package/dist/node_modules/@internal/set-immediate/index.js +2 -2
  14. package/dist/runtime/RenderResult.js +3 -3
  15. package/dist/runtime/components/Component.js +95 -95
  16. package/dist/runtime/components/ComponentDef.js +18 -18
  17. package/dist/runtime/components/ComponentsContext.js +3 -3
  18. package/dist/runtime/components/GlobalComponentsContext.js +3 -3
  19. package/dist/runtime/components/KeySequence.js +3 -3
  20. package/dist/runtime/components/ServerComponent.js +1 -1
  21. package/dist/runtime/components/State.js +19 -19
  22. package/dist/runtime/components/attach-detach.js +7 -7
  23. package/dist/runtime/components/dom-data.js +5 -5
  24. package/dist/runtime/components/event-delegation.js +9 -9
  25. package/dist/runtime/components/legacy/defineRenderer-legacy.js +11 -11
  26. package/dist/runtime/components/legacy/dependencies/index.js +7 -7
  27. package/dist/runtime/components/legacy/renderer-legacy.js +28 -28
  28. package/dist/runtime/components/renderer.js +27 -27
  29. package/dist/runtime/components/update-manager.js +4 -4
  30. package/dist/runtime/createOut.js +1 -1
  31. package/dist/runtime/dom-insert.js +5 -5
  32. package/dist/runtime/helpers/_change-case.js +2 -2
  33. package/dist/runtime/helpers/dynamic-tag.js +9 -9
  34. package/dist/runtime/helpers/render-tag.js +1 -1
  35. package/dist/runtime/helpers/serialize-noop.js +1 -1
  36. package/dist/runtime/helpers/style-value.js +1 -1
  37. package/dist/runtime/helpers/tags-compat/runtime-dom.js +23 -23
  38. package/dist/runtime/helpers/tags-compat/runtime-html.js +117 -29
  39. package/dist/runtime/html/AsyncStream.js +20 -20
  40. package/dist/runtime/html/BufferedWriter.js +2 -2
  41. package/dist/runtime/html/helpers/_dynamic-attr.js +2 -2
  42. package/dist/runtime/html/helpers/attr.js +2 -2
  43. package/dist/runtime/html/helpers/data-marko.js +1 -1
  44. package/dist/runtime/html/helpers/escape-xml.js +1 -1
  45. package/dist/runtime/html/index.js +1 -1
  46. package/dist/runtime/renderable.js +3 -3
  47. package/dist/runtime/vdom/AsyncVDOMBuilder.js +83 -83
  48. package/dist/runtime/vdom/VComment.js +7 -7
  49. package/dist/runtime/vdom/VComponent.js +4 -4
  50. package/dist/runtime/vdom/VDocumentFragment.js +6 -6
  51. package/dist/runtime/vdom/VElement.js +36 -36
  52. package/dist/runtime/vdom/VFragment.js +9 -9
  53. package/dist/runtime/vdom/VNode.js +33 -33
  54. package/dist/runtime/vdom/VText.js +8 -8
  55. package/dist/runtime/vdom/helpers/const-element.js +3 -3
  56. package/dist/runtime/vdom/hot-reload.js +14 -14
  57. package/dist/runtime/vdom/index.js +1 -1
  58. package/dist/runtime/vdom/morphdom/fragment.js +5 -5
  59. package/dist/runtime/vdom/morphdom/helpers.js +5 -5
  60. package/dist/runtime/vdom/morphdom/index.js +68 -68
  61. package/dist/runtime/vdom/vdom.js +15 -15
  62. package/dist/translator/util/get-component-files.js +1 -1
  63. package/package.json +1 -1
  64. package/src/node_modules/@internal/components-entry/index.js +19 -12
  65. package/src/runtime/helpers/tags-compat/runtime-dom.js +3 -3
  66. package/src/runtime/helpers/tags-compat/runtime-html.js +115 -27
@@ -6,7 +6,7 @@ var dashToCamelLookup = Object.create(null);
6
6
  /**
7
7
  * Helper for converting camelCase to dash-case.
8
8
  */
9
- exports.bi_ = function camelToDashCase(name) {
9
+ exports.bj_ = function camelToDashCase(name) {
10
10
  var nameDashed = camelToDashLookup[name];
11
11
  if (!nameDashed) {
12
12
  nameDashed = camelToDashLookup[name] = name.
@@ -24,7 +24,7 @@ exports.bi_ = function camelToDashCase(name) {
24
24
  /**
25
25
  * Helper for converting dash-case to camelCase.
26
26
  */
27
- exports.bj_ = function dashToCamelCase(name) {
27
+ exports.bk_ = function dashToCamelCase(name) {
28
28
  var nameCamel = dashToCamelLookup[name];
29
29
  if (!nameCamel) {
30
30
  nameCamel = dashToCamelLookup[name] = name.replace(
@@ -5,7 +5,7 @@
5
5
  var ComponentDef = require("../components/ComponentDef");
6
6
  var ComponentsContext = require("../components/ComponentsContext");
7
7
  var serializeNOOP = require("../helpers/serialize-noop");
8
- var w10NOOP = serializeNOOP.aJ_;
8
+ var w10NOOP = serializeNOOP.aK_;
9
9
  var w10ToJSON = serializeNOOP.V_;
10
10
  var changeCase = require("./_change-case");
11
11
  var getComponentsContext = ComponentsContext.S_;
@@ -37,7 +37,7 @@ customEvents)
37
37
  var component = componentDef && componentDef.s_;
38
38
  if (typeof tag === "string") {
39
39
  if (renderBody) {
40
- out.bk_(
40
+ out.bl_(
41
41
  tag,
42
42
  attrs,
43
43
  key,
@@ -45,9 +45,9 @@ customEvents)
45
45
  addEvents(componentDef, customEvents, props)
46
46
  );
47
47
  renderBody(out);
48
- out.bl_();
48
+ out.bm_();
49
49
  } else {
50
- out.bm_(
50
+ out.bn_(
51
51
  tag,
52
52
  attrs,
53
53
  key,
@@ -79,8 +79,8 @@ customEvents)
79
79
 
80
80
 
81
81
 
82
- if (dynamicTag.bn_) {
83
- renderer = dynamicTag.bn_(
82
+ if (dynamicTag.bo_) {
83
+ renderer = dynamicTag.bo_(
84
84
  renderer,
85
85
  render,
86
86
  args,
@@ -91,7 +91,7 @@ customEvents)
91
91
  if (renderer) {
92
92
  out.c(componentDef, key, customEvents);
93
93
  renderer(attrs, out);
94
- out.a__ = null;
94
+ out.aa_ = null;
95
95
  } else {
96
96
  var isFn = typeof render === "function";
97
97
 
@@ -115,7 +115,7 @@ customEvents)
115
115
  var globalContext = componentsContext.p_;
116
116
  componentsContext.o_ = new ComponentDef(
117
117
  component,
118
- parentComponentDef.id + "-" + parentComponentDef.aN_(key),
118
+ parentComponentDef.id + "-" + parentComponentDef.aO_(key),
119
119
  globalContext
120
120
  );
121
121
  render.toJSON = w10ToJSON;
@@ -151,7 +151,7 @@ function attrsToCamelCase(attrs) {
151
151
  var result = {};
152
152
 
153
153
  for (var key in attrs) {
154
- result[changeCase.bj_(key)] = attrs[key];
154
+ result[changeCase.bk_(key)] = attrs[key];
155
155
  }
156
156
 
157
157
  return result;
@@ -16,5 +16,5 @@ customEvents)
16
16
  input,
17
17
  out
18
18
  );
19
- out.a__ = null;
19
+ out.aa_ = null;
20
20
  };
@@ -1,5 +1,5 @@
1
1
  "use strict";var w10NOOP = require("warp10/constants").NOOP;
2
- exports.aJ_ = w10NOOP;
2
+ exports.aK_ = w10NOOP;
3
3
  exports.V_ = function () {
4
4
  return w10NOOP;
5
5
  };
@@ -32,7 +32,7 @@ module.exports = function styleHelper(style) {
32
32
  value += "px";
33
33
  }
34
34
 
35
- styles += sep + changeCase.bi_(name) + ":" + value;
35
+ styles += sep + changeCase.bj_(name) + ":" + value;
36
36
  sep = ";";
37
37
  }
38
38
  }
@@ -1,4 +1,4 @@
1
- "use strict";const { _l_ } = require("@internal/components-util");
1
+ "use strict";const { _m_ } = require("@internal/components-util");
2
2
  const {
3
3
  S_
4
4
  } = require("../../components/ComponentsContext");
@@ -7,13 +7,13 @@ const { r: registerComponent } = require("../../components/registry");
7
7
  const createRenderer = require("../../components/renderer");
8
8
  const defaultCreateOut = require("../../createOut");
9
9
  const morphdom = require("../../vdom/morphdom");
10
- const { _k_ } = require("../../vdom/morphdom/fragment");
10
+ const { _l_ } = require("../../vdom/morphdom/fragment");
11
11
  const dynamicTag = require("../dynamic-tag");
12
12
  const Component = require("../../components/Component");
13
- const noopRenderer = require("../serialize-noop").aJ_;
13
+ const noopRenderer = require("../serialize-noop").aK_;
14
14
 
15
15
  exports.p = function (domCompat) {
16
- dynamicTag.bn_ = function tagsToVdom(
16
+ dynamicTag.bo_ = function tagsToVdom(
17
17
  renderer,
18
18
  renderBody,
19
19
  args,
@@ -33,17 +33,17 @@ exports.p = function (domCompat) {
33
33
  return renderer;
34
34
  };
35
35
 
36
- Component.prototype.bo_ =
37
- Component.prototype.aD_;
38
- Component.prototype.aD_ = function (customEvents, scopeId) {
36
+ Component.prototype.bp_ =
37
+ Component.prototype.aE_;
38
+ Component.prototype.aE_ = function (customEvents, scopeId) {
39
39
  for (const customEvent of customEvents) {
40
40
  customEvent[1] = domCompat.resolveRegistered(
41
41
  customEvent[1],
42
- this.ak_
42
+ this.al_
43
43
  );
44
44
  }
45
45
 
46
- this.bo_(customEvents, scopeId);
46
+ this.bp_(customEvents, scopeId);
47
47
  };
48
48
 
49
49
  const TagsCompatId = "tags-compat";
@@ -53,9 +53,9 @@ exports.p = function (domCompat) {
53
53
  const tagsRenderer = domCompat.resolveRegistered(_.r, global);
54
54
  const newNode = domCompat.render(out, component, tagsRenderer, input);
55
55
 
56
- out.bf(out.aa_, component, !newNode);
56
+ out.bf("1", component, !newNode);
57
57
  if (newNode) {
58
- out.node({ bp_: () => newNode });
58
+ out.node({ bq_: () => newNode });
59
59
  }
60
60
  out.ef();
61
61
  },
@@ -111,7 +111,7 @@ exports.p = function (domCompat) {
111
111
  newRenderer = domCompat.createRenderer(
112
112
  (scope, input) =>
113
113
  renderAndMorph(scope, rendererFromAnywhere, renderer, input),
114
- () => _k_()
114
+ () => _l_()
115
115
  );
116
116
  rendererCache.set(renderer, newRenderer);
117
117
  }
@@ -124,22 +124,22 @@ exports.p = function (domCompat) {
124
124
  domCompat.init(noopRenderer);
125
125
 
126
126
  function renderAndMorph(scope, renderer, renderBody, input) {
127
- const out = defaultCreateOut();
127
+ const out = defaultCreateOut(scope.$global);
128
128
  let host = domCompat.getStartNode(scope);
129
129
  let rootNode = host.fragment;
130
130
  if (!rootNode) {
131
- const component = scope.bq_ =
132
- _l_[scope.m5c];
133
- rootNode = component._E_;
131
+ const component = scope.br_ =
132
+ _m_[scope.m5c];
133
+ rootNode = component._F_;
134
134
  host = rootNode.startNode;
135
- domCompat.setScopeNodes(host, rootNode.endNode);
135
+ domCompat.setScopeNodes(host, rootNode.startNode, rootNode.endNode);
136
136
  }
137
- const existingComponent = scope.bq_;
137
+ const existingComponent = scope.br_;
138
138
  const componentsContext = S_(out);
139
139
  const globalComponentsContext = componentsContext.p_;
140
140
  let customEvents;
141
141
  let normalizedInput;
142
- globalComponentsContext.az_ = existingComponent;
142
+ globalComponentsContext.aA_ = existingComponent;
143
143
  out.sync();
144
144
  if (renderer) {
145
145
  const [rawInput] = input;
@@ -165,16 +165,16 @@ exports.p = function (domCompat) {
165
165
  }
166
166
 
167
167
  domCompat.queueEffect(scope, () => {
168
- const targetNode = out.ah_().aA_;
168
+ const targetNode = out.ai_().aB_;
169
169
  morphdom(rootNode, targetNode, host, componentsContext);
170
- const componentDefs = componentsContext.af_(
170
+ const componentDefs = componentsContext.ag_(
171
171
  getRootNode(host)
172
172
  );
173
173
  const component = componentDefs[0].s_;
174
- component._E_ = rootNode;
174
+ component._F_ = rootNode;
175
175
  component.O_ = normalizedInput;
176
176
  component.W_ = customEvents;
177
- scope.bq_ = component;
177
+ scope.br_ = component;
178
178
  });
179
179
  }
180
180
 
@@ -1,4 +1,7 @@
1
- "use strict";const initComponentsTag = require("../../../core-tags/components/init-components-tag");
1
+ "use strict";const {
2
+ _g_,
3
+ __
4
+ } = require("@internal/components-entry");
2
5
  const {
3
6
  S_
4
7
  } = require("../../components/ComponentsContext");
@@ -7,17 +10,58 @@ const defaultCreateOut = require("../../createOut");
7
10
  const dynamicTag5 = require("../dynamic-tag");
8
11
 
9
12
  exports.p = function (htmlCompat) {
13
+ const writersByGlobal = new WeakMap();
10
14
  const isMarko6 = (fn) => htmlCompat.isTagsAPI(fn);
11
15
  const isMarko5 = (fn) => !isMarko6(fn);
12
- const writeHTML = (result) => {
13
- const state = result.out._state;
14
- const writer = state.writer;
15
- state.events.emit("c_", writer);
16
- htmlCompat.writeScript(writer._scripts);
16
+ const writeClassAPIResultToTagsAPI = (result) => {
17
+ const { writer } = result.out._state;
17
18
  htmlCompat.write(writer._content);
19
+ htmlCompat.writeScript(writer._script);
20
+ writer._content = writer._scripts = "";
18
21
  };
22
+ const flushScripts = ($global, flushDefs) => {
23
+ const writers = writersByGlobal.get($global);
24
+ if (!writers) return "";
19
25
 
20
- dynamicTag5.bn_ = function tagsToVdom(
26
+ const { classAPI, tagsAPI } = writers;
27
+ let scripts = "";
28
+ let componentDefs = flushDefs;
29
+
30
+ if (classAPI.length) {
31
+ componentDefs = flushDefs ? flushDefs.concat(classAPI) : classAPI;
32
+ writers.classAPI = [];
33
+ }
34
+
35
+ if (componentDefs) {
36
+ scripts = _g_($global, componentDefs);
37
+ }
38
+
39
+ if (tagsAPI.length) {
40
+ const [chunk] = tagsAPI;
41
+ for (let i = 1; i < tagsAPI.length; i++) {
42
+ chunk.append(tagsAPI[i]);
43
+ }
44
+
45
+ if (!chunk.boundary.done) {
46
+ throw new Error(
47
+ "Cannot serialize promise across tags/class compat layer."
48
+ );
49
+ }
50
+
51
+ scripts = concatScripts(chunk.flushScript().scripts, scripts);
52
+ writers.tagsAPI = [];
53
+ }
54
+
55
+ return scripts;
56
+ };
57
+
58
+ htmlCompat.onFlush((chunk) => {
59
+ chunk.render(() => {
60
+ chunk.writeScript(flushScripts(chunk.boundary.state.$global));
61
+ });
62
+ });
63
+
64
+ dynamicTag5.bo_ = function tagsToVdom(
21
65
  tagsRenderer,
22
66
  renderBody,
23
67
  args)
@@ -42,11 +86,33 @@ exports.p = function (htmlCompat) {
42
86
  const TagsCompatId = "tags-compat";
43
87
  const TagsCompat = createRenderer(
44
88
  function (_, out, componentDef, component) {
89
+ // class to tags
90
+ const $global = out.global;
91
+ let writers = writersByGlobal.get($global);
92
+ if (!writers) {
93
+ writersByGlobal.set($global, writers = { classAPI: [], tagsAPI: [] });
94
+ out.prependListener("c_", (writer) => {
95
+ const defs = writer._data?.componentDefs;
96
+ const scripts = flushScripts($global, defs);
97
+ if (scripts) {
98
+ if (defs) writer._data.componentDefs = undefined;
99
+ writer.script(scripts);
100
+ }
101
+ });
102
+ }
103
+
45
104
  const input = _.i;
46
105
  const tagsRenderer = _.r;
47
- const willRerender = componentDef._wrr;
48
- out.bf(out.aa_, component, willRerender);
49
- htmlCompat.render(tagsRenderer, willRerender, out, component, input);
106
+ const willRerender = componentDef._wrr || htmlCompat.isInResumedBranch();
107
+ out.bf("1", component, willRerender);
108
+ htmlCompat.render(
109
+ tagsRenderer,
110
+ willRerender,
111
+ out,
112
+ component,
113
+ input,
114
+ writers.tagsAPI
115
+ );
50
116
  out.ef();
51
117
  },
52
118
  // eslint-disable-next-line no-constant-condition
@@ -64,8 +130,9 @@ exports.p = function (htmlCompat) {
64
130
  );
65
131
 
66
132
  htmlCompat.patchDynamicTag(function getRenderer(scopeId, accessor, tag) {
67
- const renderer = tag._ || tag.renderBody || tag;
68
- if (isMarko6(renderer)) return renderer;
133
+ if (!tag || isMarko6(tag._ || tag.content || tag)) {
134
+ return tag;
135
+ }
69
136
 
70
137
  const renderer5 =
71
138
  tag._ ||
@@ -78,16 +145,24 @@ exports.p = function (htmlCompat) {
78
145
  htmlCompat.registerRenderBody(renderBody5);
79
146
  }
80
147
  return (input, ...args) => {
81
- const out = defaultCreateOut(htmlCompat.$global());
82
- const branchId = htmlCompat.peekNextScopeId();
148
+ // tags to class
149
+ const $global = htmlCompat.$global();
150
+ htmlCompat.ensureState($global);
151
+ let writers = writersByGlobal.get($global);
152
+ if (!writers) {
153
+ writersByGlobal.set($global, writers = { classAPI: [], tagsAPI: [] });
154
+ }
155
+
156
+ const out = defaultCreateOut($global);
157
+ const branchId = htmlCompat.nextScopeId();
83
158
  let customEvents;
84
- htmlCompat.nextScopeId();
85
159
 
86
160
  if (renderer5) {
87
- const normalizedInput = {};
161
+ const originalInput = input;
162
+ input = {};
88
163
 
89
- for (const key in input) {
90
- const value = input[key];
164
+ for (const key in originalInput) {
165
+ const value = originalInput[key];
91
166
  if (/^on[-A-Z]/.test(key)) {
92
167
  if (typeof value === "function") {
93
168
  (customEvents || (customEvents = [])).push([
@@ -97,28 +172,37 @@ exports.p = function (htmlCompat) {
97
172
  value.toJSON = htmlCompat.toJSON;
98
173
  }
99
174
  } else {
100
- normalizedInput[key === "content" ? "renderBody" : key] = value;
175
+ input[key === "content" ? "renderBody" : key] = value;
101
176
  }
102
177
  }
103
- renderer5(normalizedInput, out);
178
+ }
179
+
180
+ if (renderer5) {
181
+ renderer5(input, out);
104
182
  } else {
105
183
  renderBody5(out, input, ...args);
106
184
  }
107
185
 
108
186
  const componentsContext = S_(out);
109
- const component = componentsContext.b_[0];
110
- if (component) {
111
- component.s_.W_ = customEvents;
112
- htmlCompat.writeSetScopeForComponent(branchId, component.id);
187
+ const componentDef = componentsContext.b_[0];
188
+ if (componentDef) {
189
+ componentDef.s_.W_ = customEvents;
190
+ componentDef._wrr = true;
191
+ componentDef.u_ |= 1; // FLAG_WILL_RERENDER_IN_BROWSER
192
+ htmlCompat.writeSetScopeForComponent(branchId, componentDef.id);
113
193
  }
114
194
 
115
- initComponentsTag({}, out);
116
-
117
195
  let async;
118
196
  out.once("finish", (result) => {
197
+ if (result.out.b_) {
198
+ __(
199
+ result.out.b_,
200
+ writers.classAPI
201
+ );
202
+ }
119
203
  if (!async) {
120
204
  async = false;
121
- writeHTML(result);
205
+ writeClassAPIResultToTagsAPI(result);
122
206
  }
123
207
  });
124
208
 
@@ -126,10 +210,14 @@ exports.p = function (htmlCompat) {
126
210
 
127
211
  if (async !== false) {
128
212
  async = true;
129
- htmlCompat.fork(scopeId, accessor, out, writeHTML);
213
+ htmlCompat.fork(scopeId, accessor, out, writeClassAPIResultToTagsAPI);
130
214
  }
131
215
  };
132
216
  });
133
217
 
134
218
  return htmlCompat.registerRenderer;
135
- };
219
+ };
220
+
221
+ function concatScripts(a, b) {
222
+ return a ? b ? a + ";" + b : a : b;
223
+ }
@@ -9,7 +9,7 @@ var markoAttr = require("./helpers/data-marko");
9
9
  var escapeXmlHelper = require("./helpers/escape-xml");
10
10
  var StringWriter = require("./StringWriter");
11
11
  var escapeXmlOrNullish = escapeXmlHelper.x;
12
- var escapeXmlString = escapeXmlHelper.br_;
12
+ var escapeXmlString = escapeXmlHelper.bs_;
13
13
  var missingSetTimeout = typeof setTimeout !== "function";
14
14
 
15
15
  function noop() {}
@@ -102,10 +102,10 @@ function AsyncStream(global, writer, parentOut) {
102
102
 
103
103
  this.b_ = null; // ComponentsContext
104
104
 
105
- this.a__ = null;
106
105
  this.aa_ = null;
107
- this.bc_ = null;
108
- this.bs_ = false;
106
+ this.ab_ = null;
107
+ this.bd_ = null;
108
+ this.bt_ = false;
109
109
  }
110
110
 
111
111
  AsyncStream.DEFAULT_TIMEOUT = 10000;
@@ -126,11 +126,11 @@ AsyncStream.enableAsyncStackTrace = function () {
126
126
  var proto = AsyncStream.prototype = {
127
127
  constructor: AsyncStream,
128
128
  B_: typeof document === "object" && document,
129
- bt_: true,
129
+ bu_: true,
130
130
 
131
131
  [Symbol.asyncIterator]() {
132
- if (this.bu_) {
133
- return this.bu_;
132
+ if (this.bv_) {
133
+ return this.bv_;
134
134
  }
135
135
 
136
136
  const originalWriter = this._state.writer;
@@ -222,7 +222,7 @@ var proto = AsyncStream.prototype = {
222
222
  };
223
223
  }
224
224
 
225
- return this.bu_ = {
225
+ return this.bv_ = {
226
226
  next: iteratorNextFn,
227
227
  return: iteratorReturnFn,
228
228
  throw: iteratorReturnFn,
@@ -279,7 +279,7 @@ var proto = AsyncStream.prototype = {
279
279
  return this;
280
280
  },
281
281
 
282
- ah_: function () {
282
+ ai_: function () {
283
283
  return this._state.writer.toString();
284
284
  },
285
285
 
@@ -287,7 +287,7 @@ var proto = AsyncStream.prototype = {
287
287
  * Legacy...
288
288
  */
289
289
  getOutput: function () {
290
- return this.ah_();
290
+ return this.ai_();
291
291
  },
292
292
 
293
293
  toString: function () {
@@ -345,7 +345,7 @@ var proto = AsyncStream.prototype = {
345
345
  }
346
346
 
347
347
  this._lastCount++;
348
- newStream.bs_ = true;
348
+ newStream.bt_ = true;
349
349
  }
350
350
 
351
351
  name = options.name;
@@ -465,7 +465,7 @@ var proto = AsyncStream.prototype = {
465
465
  parentOut._handleChildDone(this);
466
466
  }
467
467
  } else {
468
- if (childOut.bs_) {
468
+ if (childOut.bt_) {
469
469
  this._lastCount--;
470
470
  }
471
471
 
@@ -645,7 +645,7 @@ var proto = AsyncStream.prototype = {
645
645
  return newOut;
646
646
  },
647
647
 
648
- bm_: function (
648
+ bn_: function (
649
649
  tagName,
650
650
  elementAttrs,
651
651
  key,
@@ -684,7 +684,7 @@ var proto = AsyncStream.prototype = {
684
684
  this.write(str);
685
685
  },
686
686
 
687
- bk_: function (
687
+ bl_: function (
688
688
  name,
689
689
  elementAttrs,
690
690
  key,
@@ -750,13 +750,13 @@ var proto = AsyncStream.prototype = {
750
750
  }
751
751
  },
752
752
 
753
- ag_: function (host) {
753
+ ah_: function (host) {
754
754
  var node = this._node;
755
755
 
756
756
  if (!node) {
757
757
  var nextEl;
758
758
  var fragment;
759
- var html = this.ah_();
759
+ var html = this.ai_();
760
760
  if (!host) host = this.B_;
761
761
  var doc = host.ownerDocument || host;
762
762
 
@@ -802,15 +802,15 @@ var proto = AsyncStream.prototype = {
802
802
  },
803
803
 
804
804
  c: function (componentDef, key, customEvents) {
805
- this.a__ = componentDef;
806
- this.aa_ = key;
807
- this.bc_ = customEvents;
805
+ this.aa_ = componentDef;
806
+ this.ab_ = key;
807
+ this.bd_ = customEvents;
808
808
  }
809
809
  };
810
810
 
811
811
  // alias:
812
812
  proto.w = proto.write;
813
- proto.bl_ = proto.endElement;
813
+ proto.bm_ = proto.endElement;
814
814
 
815
815
  module.exports = AsyncStream;
816
816
 
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  const immediate = require("@internal/set-immediate");
4
- const setImmediate = immediate._j_;
5
- const clearImmediate = immediate.ae_;
4
+ const setImmediate = immediate._k_;
5
+ const clearImmediate = immediate.af_;
6
6
  const StringWriter = require("./StringWriter");
7
7
 
8
8
  /**
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var attrHelper = require("./attr");
3
- var notEmptyAttr = attrHelper.bv_;
4
- var isEmptyAttrValue = attrHelper.bw_;
3
+ var notEmptyAttr = attrHelper.bw_;
4
+ var isEmptyAttrValue = attrHelper.bx_;
5
5
  var classHelper = require("./class-attr");
6
6
  var styleHelper = require("./style-attr");
7
7
 
@@ -5,8 +5,8 @@
5
5
 
6
6
  module.exports = attr;
7
7
 
8
- attr.bv_ = nonVoidAttr;
9
- attr.bw_ = isVoid;
8
+ attr.bw_ = nonVoidAttr;
9
+ attr.bx_ = isVoid;
10
10
  attr.a = attrAssignment;
11
11
  attr.d = escapeDoubleQuotedAttrValue;
12
12
  attr.s = escapeSingleQuotedAttrValue;
@@ -26,7 +26,7 @@ module.exports = function dataMarko(out, componentDef, props, key) {
26
26
  result +=
27
27
  ' data-marko-key="' +
28
28
  escapeDoubleQuotes(
29
- componentDef.aN_(key) + " " + componentDef.id
29
+ componentDef.aO_(key) + " " + componentDef.id
30
30
  ) +
31
31
  '"';
32
32
  }
@@ -18,4 +18,4 @@ module.exports.x = function (value) {
18
18
  return escape(value + "");
19
19
  };
20
20
 
21
- exports.br_ = escape;
21
+ exports.bs_ = escape;
@@ -19,7 +19,7 @@ function Template(typeName) {
19
19
  Template.prototype.stream = require("@internal/create-readable");
20
20
 
21
21
  var AsyncStream = require("./AsyncStream");
22
- require("../createOut").be_(
22
+ require("../createOut").bf_(
23
23
  Template.prototype.createOut = function createOut(
24
24
  globalData,
25
25
  writer,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  var extend = require("raptor-util/extend");
4
- var setImmediate = require("@internal/set-immediate")._j_;
4
+ var setImmediate = require("@internal/set-immediate")._k_;
5
5
  var defaultCreateOut = require("./createOut");
6
6
 
7
7
  function safeRender(renderFunc, finalData, finalOut, shouldEnd) {
@@ -148,7 +148,7 @@ module.exports = function (target, renderer) {
148
148
  var finalData;
149
149
  var globalData;
150
150
  var render = renderFunc || this._;
151
- var shouldBuffer = this._V_;
151
+ var shouldBuffer = this._W_;
152
152
  var shouldEnd = true;
153
153
 
154
154
  if (data) {
@@ -160,7 +160,7 @@ module.exports = function (target, renderer) {
160
160
  finalData = {};
161
161
  }
162
162
 
163
- if (out && out.bt_) {
163
+ if (out && out.bu_) {
164
164
  finalOut = out;
165
165
  shouldEnd = false;
166
166
  extend(out.global, globalData);