marko 5.33.9 → 5.33.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. package/dist/core-tags/core/await/AsyncValue.js +21 -21
  2. package/dist/core-tags/core/await/renderer.js +11 -11
  3. package/dist/core-tags/core/await/reorderer-renderer.js +3 -3
  4. package/dist/node_modules/@internal/components-beginComponent/index-browser.js +4 -4
  5. package/dist/node_modules/@internal/components-beginComponent/index.js +11 -11
  6. package/dist/node_modules/@internal/components-define-widget-legacy/index-browser.js +45 -45
  7. package/dist/node_modules/@internal/components-define-widget-legacy/index.js +3 -3
  8. package/dist/node_modules/@internal/components-endComponent/index.js +3 -3
  9. package/dist/node_modules/@internal/components-entry/index-browser.js +2 -2
  10. package/dist/node_modules/@internal/components-entry/index.js +16 -16
  11. package/dist/node_modules/@internal/components-entry-legacy/index-browser.js +6 -6
  12. package/dist/node_modules/@internal/components-registry/index-browser.js +46 -46
  13. package/dist/node_modules/@internal/components-registry/index.js +2 -2
  14. package/dist/node_modules/@internal/components-util/index-browser.js +20 -20
  15. package/dist/node_modules/@internal/components-util/index.js +10 -10
  16. package/dist/node_modules/@internal/create-readable/index-browser.js +1 -1
  17. package/dist/node_modules/@internal/create-readable/index.js +9 -9
  18. package/dist/node_modules/@internal/preserve-tag/index-browser.js +7 -7
  19. package/dist/node_modules/@internal/preserve-tag/index.js +5 -5
  20. package/dist/node_modules/@internal/set-immediate/index-browser.js +4 -2
  21. package/dist/node_modules/@internal/set-immediate/index-worker.js +31 -2
  22. package/dist/node_modules/@internal/set-immediate/index.js +3 -2
  23. package/dist/node_modules/@internal/set-immediate/queueMicrotask.js +8 -0
  24. package/dist/runtime/RenderResult.js +8 -8
  25. package/dist/runtime/components/Component.js +145 -145
  26. package/dist/runtime/components/ComponentDef.js +28 -28
  27. package/dist/runtime/components/ComponentsContext.js +15 -15
  28. package/dist/runtime/components/GlobalComponentsContext.js +4 -4
  29. package/dist/runtime/components/KeySequence.js +3 -3
  30. package/dist/runtime/components/ServerComponent.js +13 -13
  31. package/dist/runtime/components/State.js +26 -26
  32. package/dist/runtime/components/attach-detach.js +8 -8
  33. package/dist/runtime/components/defineComponent.js +5 -5
  34. package/dist/runtime/components/dom-data.js +5 -5
  35. package/dist/runtime/components/event-delegation.js +10 -10
  36. package/dist/runtime/components/legacy/defineComponent-legacy.js +1 -1
  37. package/dist/runtime/components/legacy/defineRenderer-legacy.js +16 -16
  38. package/dist/runtime/components/legacy/dependencies/index.js +7 -7
  39. package/dist/runtime/components/legacy/renderer-legacy.js +43 -43
  40. package/dist/runtime/components/renderer.js +36 -36
  41. package/dist/runtime/components/update-manager.js +4 -4
  42. package/dist/runtime/createOut.js +1 -1
  43. package/dist/runtime/dom-insert.js +5 -5
  44. package/dist/runtime/helpers/_change-case.js +2 -2
  45. package/dist/runtime/helpers/dynamic-tag.js +16 -16
  46. package/dist/runtime/helpers/render-tag.js +1 -1
  47. package/dist/runtime/helpers/style-value.js +1 -1
  48. package/dist/runtime/helpers/tags-compat/runtime-dom.js +21 -21
  49. package/dist/runtime/helpers/tags-compat/runtime-html.js +8 -8
  50. package/dist/runtime/html/AsyncStream.js +31 -28
  51. package/dist/runtime/html/BufferedWriter.js +2 -2
  52. package/dist/runtime/html/StringWriter.js +1 -1
  53. package/dist/runtime/html/helpers/_dynamic-attr.js +2 -2
  54. package/dist/runtime/html/helpers/attr.js +4 -4
  55. package/dist/runtime/html/helpers/data-marko.js +6 -6
  56. package/dist/runtime/html/helpers/escape-quotes.js +2 -2
  57. package/dist/runtime/html/helpers/escape-xml.js +1 -1
  58. package/dist/runtime/html/helpers/props-script.js +1 -1
  59. package/dist/runtime/html/index.js +2 -2
  60. package/dist/runtime/renderable.js +5 -5
  61. package/dist/runtime/vdom/AsyncVDOMBuilder.js +96 -96
  62. package/dist/runtime/vdom/VComponent.js +5 -5
  63. package/dist/runtime/vdom/VDocumentFragment.js +7 -7
  64. package/dist/runtime/vdom/VElement.js +42 -42
  65. package/dist/runtime/vdom/VFragment.js +9 -9
  66. package/dist/runtime/vdom/VNode.js +33 -33
  67. package/dist/runtime/vdom/VText.js +8 -8
  68. package/dist/runtime/vdom/helpers/const-element.js +3 -3
  69. package/dist/runtime/vdom/hot-reload.js +21 -21
  70. package/dist/runtime/vdom/index.js +2 -2
  71. package/dist/runtime/vdom/morphdom/fragment.js +5 -5
  72. package/dist/runtime/vdom/morphdom/helpers.js +5 -5
  73. package/dist/runtime/vdom/morphdom/index.js +77 -77
  74. package/dist/runtime/vdom/vdom.js +14 -14
  75. package/package.json +3 -3
  76. package/src/core-tags/core/await/AsyncValue.js +1 -1
  77. package/src/node_modules/@internal/components-registry/index-browser.js +2 -2
  78. package/src/node_modules/@internal/set-immediate/index-browser.js +2 -0
  79. package/src/node_modules/@internal/set-immediate/index-worker.js +31 -2
  80. package/src/node_modules/@internal/set-immediate/index.js +1 -0
  81. package/src/node_modules/@internal/set-immediate/queueMicrotask.js +8 -0
  82. package/src/runtime/html/AsyncStream.js +4 -1
  83. package/src/runtime/vdom/hot-reload.js +2 -2
  84. package/dist/runtime/queueMicrotask.js +0 -14
  85. package/src/runtime/queueMicrotask.js +0 -14
@@ -1,34 +1,34 @@
1
- "use strict";var queueMicrotask = require("../../../runtime/queueMicrotask");
1
+ "use strict";var queueMicrotask = require("@internal/set-immediate").e_;
2
2
 
3
3
  function AsyncValue() {
4
4
  /**
5
5
  * The data that was provided via call to resolve(data).
6
6
  * This property is assumed to be public and available for inspection.
7
7
  */
8
- this.e_ = undefined;
8
+ this.f_ = undefined;
9
9
 
10
10
  /**
11
11
  * The data that was provided via call to reject(err)
12
12
  * This property is assumed to be public and available for inspection.
13
13
  */
14
- this.f_ = undefined;
14
+ this.g_ = undefined;
15
15
 
16
16
  /**
17
17
  * The queue of callbacks that are waiting for data
18
18
  */
19
- this.g_ = undefined;
19
+ this.h_ = undefined;
20
20
 
21
21
  /**
22
22
  * The state of the data holder (STATE_INITIAL, STATE_RESOLVED, or STATE_REJECTED)
23
23
  */
24
- this.h_ = false;
24
+ this.i_ = false;
25
25
  }
26
26
 
27
27
  function notifyCallbacks(asyncValue, err, value) {
28
- var callbacks = asyncValue.g_;
28
+ var callbacks = asyncValue.h_;
29
29
  if (callbacks) {
30
30
  // clear out the registered callbacks (we still have reference to the original value)
31
- asyncValue.g_ = undefined;
31
+ asyncValue.h_ = undefined;
32
32
 
33
33
  // invoke all of the callbacks and use their scope
34
34
  for (var i = 0; i < callbacks.length; i++) {
@@ -46,14 +46,14 @@ AsyncValue.prototype = {
46
46
  * The given callback will be invoked when there is an error or resolved data
47
47
  * available.
48
48
  */
49
- i_: function (callback) {
49
+ j_: function (callback) {
50
50
  // Do we already have data or error?
51
- if (this.h_) {
51
+ if (this.i_) {
52
52
  // invoke the callback immediately
53
- return callback(this.f_, this.e_);
53
+ return callback(this.g_, this.f_);
54
54
  }
55
55
 
56
- var callbacks = this.g_ || (this.g_ = []);
56
+ var callbacks = this.h_ || (this.h_ = []);
57
57
  callbacks.push(callback);
58
58
  },
59
59
 
@@ -63,19 +63,19 @@ AsyncValue.prototype = {
63
63
  * its initial state so that any future requests to load data will trigger a
64
64
  * new load call.
65
65
  */
66
- j_: function (err) {
67
- if (this.h_) {
66
+ k_: function (err) {
67
+ if (this.i_) {
68
68
  return;
69
69
  }
70
70
 
71
71
  // remember the error
72
- this.f_ = err;
72
+ this.g_ = err;
73
73
 
74
74
  // Go to the rejected state if we don't have a loader.
75
75
  // If we do have a loader then return to the initial state
76
76
  // (we do this so that next call to done() will trigger load
77
77
  // again in case the error was transient).
78
- this.h_ = true;
78
+ this.i_ = true;
79
79
 
80
80
  // always notify callbacks regardless of whether or not we return to the initial state
81
81
  notifyCallbacks(this, err, null);
@@ -84,8 +84,8 @@ AsyncValue.prototype = {
84
84
  /**
85
85
  * This method will trigger any callbacks to be notified of data.
86
86
  */
87
- k_: function (value) {
88
- if (this.h_) {
87
+ l_: function (value) {
88
+ if (this.i_) {
89
89
  return;
90
90
  }
91
91
 
@@ -94,10 +94,10 @@ AsyncValue.prototype = {
94
94
 
95
95
  var finalPromise = value.then(
96
96
  function onFulfilled(value) {
97
- queueMicrotask(asyncValue.k_.bind(asyncValue, value));
97
+ queueMicrotask(asyncValue.l_.bind(asyncValue, value));
98
98
  },
99
99
  function onRejected(err) {
100
- queueMicrotask(asyncValue.j_.bind(asyncValue, err));
100
+ queueMicrotask(asyncValue.k_.bind(asyncValue, err));
101
101
  }
102
102
  );
103
103
 
@@ -106,10 +106,10 @@ AsyncValue.prototype = {
106
106
  }
107
107
  } else {
108
108
  // remember the state
109
- this.e_ = value;
109
+ this.f_ = value;
110
110
 
111
111
  // go to the resolved state
112
- this.h_ = true;
112
+ this.i_ = true;
113
113
 
114
114
  // notify callbacks
115
115
  notifyCallbacks(this, null, value);
@@ -24,9 +24,9 @@ function requestData(provider, timeout) {
24
24
 
25
25
  var callback = function (err, data) {
26
26
  if (err) {
27
- asyncValue.j_(err);
27
+ asyncValue.k_(err);
28
28
  } else {
29
- asyncValue.k_(data);
29
+ asyncValue.l_(data);
30
30
  }
31
31
  };
32
32
 
@@ -38,11 +38,11 @@ function requestData(provider, timeout) {
38
38
  provider(null, callback);
39
39
 
40
40
  if (value !== undefined) {
41
- asyncValue.k_(value);
41
+ asyncValue.l_(value);
42
42
  }
43
43
  } else {
44
44
  // Assume the provider is a data object...
45
- asyncValue.k_(provider);
45
+ asyncValue.l_(provider);
46
46
  }
47
47
 
48
48
  if (timeout == null) {
@@ -64,10 +64,10 @@ function requestData(provider, timeout) {
64
64
  if (!error) error = new Error(errorMsg);
65
65
  error.code = "ERR_AWAIT_TIMEDOUT";
66
66
  error.name = "TimeoutError";
67
- asyncValue.j_(error);
67
+ asyncValue.k_(error);
68
68
  }, timeout);
69
69
 
70
- asyncValue.i_(function () {
70
+ asyncValue.j_(function () {
71
71
  if (timeoutId != null) {
72
72
  clearTimeout(timeoutId);
73
73
  }
@@ -91,8 +91,8 @@ module.exports = function awaitTag(input, out) {
91
91
  var asyncValue = requestData(provider, timeout);
92
92
  var placeholderRenderer = input.placeholder && input.placeholder.renderBody;
93
93
 
94
- if (asyncValue.h_) {
95
- renderContents(asyncValue.f_, asyncValue.e_, input, out);
94
+ if (asyncValue.i_) {
95
+ renderContents(asyncValue.g_, asyncValue.f_, input, out);
96
96
  return;
97
97
  }
98
98
 
@@ -109,8 +109,8 @@ module.exports = function awaitTag(input, out) {
109
109
  awaitInfo.after = input.showAfter;
110
110
 
111
111
  clientReorderContext =
112
- out.global.l_ || (
113
- out.global.l_ = {
112
+ out.global.m_ || (
113
+ out.global.m_ = {
114
114
  instances: [],
115
115
  nextId: 0
116
116
  });
@@ -216,7 +216,7 @@ module.exports = function awaitTag(input, out) {
216
216
  }
217
217
  }
218
218
 
219
- asyncValue.i_(renderBody);
219
+ asyncValue.j_(renderBody);
220
220
  };
221
221
 
222
222
  function renderContents(err, data, input, out) {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  var escapeDoubleQuotes =
4
- require("../../../runtime/html/helpers/escape-quotes").m_;
4
+ require("../../../runtime/html/helpers/escape-quotes").n_;
5
5
 
6
6
  module.exports = function (input, out) {
7
7
  // We cannot call beginSync() when using renderSync(). In this case we will
@@ -20,7 +20,7 @@ module.exports = function (input, out) {
20
20
 
21
21
  global.__awaitReordererInvoked = true;
22
22
 
23
- if (out.global.l_) {
23
+ if (out.global.m_) {
24
24
  out.flush();
25
25
  }
26
26
 
@@ -35,7 +35,7 @@ module.exports = function (input, out) {
35
35
  });
36
36
 
37
37
  out.onLast(function (next) {
38
- var awaitContext = global.l_;
38
+ var awaitContext = global.m_;
39
39
  var remaining;
40
40
 
41
41
  // Validate that we have remaining <await> instances that need handled
@@ -7,17 +7,17 @@ key,
7
7
  ownerComponentDef)
8
8
  {
9
9
  var componentId = component.id;
10
- var componentDef = componentsContext.n_ = new ComponentDef(
10
+ var componentDef = componentsContext.o_ = new ComponentDef(
11
11
  component,
12
12
  componentId,
13
13
  componentsContext
14
14
  );
15
- componentsContext.o_.p_[
15
+ componentsContext.p_.q_[
16
16
  componentId] =
17
17
  true;
18
18
  componentsContext.b_.push(componentDef);
19
19
 
20
- var out = componentsContext.q_;
21
- out.bc(component, key, ownerComponentDef && ownerComponentDef.r_);
20
+ var out = componentsContext.r_;
21
+ out.bc(component, key, ownerComponentDef && ownerComponentDef.s_);
22
22
  return componentDef;
23
23
  };
@@ -21,20 +21,20 @@ existingComponentDef)
21
21
  // widget. It should be removed when the legacy compat layer is removed.
22
22
  var componentDef =
23
23
  existingComponentDef || (
24
- componentsContext.n_ = new ComponentDef(
24
+ componentsContext.o_ = new ComponentDef(
25
25
  component,
26
26
  componentId,
27
27
  componentsContext
28
28
  ));
29
29
 
30
30
  var ownerIsRenderBoundary =
31
- ownerComponentDef && ownerComponentDef.s_;
31
+ ownerComponentDef && ownerComponentDef.t_;
32
32
  var ownerWillRerender =
33
33
  ownerComponentDef &&
34
- ownerComponentDef.t_ & FLAG_WILL_RERENDER_IN_BROWSER;
34
+ ownerComponentDef.u_ & FLAG_WILL_RERENDER_IN_BROWSER;
35
35
  // On the server
36
- if (!componentsContext.u_ && ownerWillRerender) {
37
- componentDef.t_ |= FLAG_WILL_RERENDER_IN_BROWSER;
36
+ if (!componentsContext.v_ && ownerWillRerender) {
37
+ componentDef.u_ |= FLAG_WILL_RERENDER_IN_BROWSER;
38
38
  componentDef._wrr = true;
39
39
  return componentDef;
40
40
  }
@@ -48,20 +48,20 @@ existingComponentDef)
48
48
 
49
49
  componentsContext.b_.push(componentDef);
50
50
 
51
- let out = componentsContext.q_;
51
+ let out = componentsContext.r_;
52
52
  let runtimeId = out.global.runtimeId;
53
53
 
54
- componentDef.s_ = true;
55
- componentDef.v_ = componentsContext.u_;
54
+ componentDef.t_ = true;
55
+ componentDef.w_ = componentsContext.v_;
56
56
 
57
57
  if (isSplitComponent === false && out.global.noBrowserRerender !== true) {
58
- componentDef.t_ |= FLAG_WILL_RERENDER_IN_BROWSER;
58
+ componentDef.u_ |= FLAG_WILL_RERENDER_IN_BROWSER;
59
59
  componentDef._wrr = true;
60
- componentsContext.u_ = false;
60
+ componentsContext.v_ = false;
61
61
  }
62
62
 
63
63
  if (out.global.oldHydrateNoCreate === true) {
64
- componentDef.t_ |= FLAG_OLD_HYDRATE_NO_CREATE;
64
+ componentDef.u_ |= FLAG_OLD_HYDRATE_NO_CREATE;
65
65
  }
66
66
 
67
67
  if ((ownerIsRenderBoundary || ownerWillRerender) && key != null) {
@@ -21,7 +21,7 @@ function noop() {}
21
21
  module.exports = function defineWidget(def, renderer) {
22
22
  def = def.Widget || def;
23
23
 
24
- if (def.w_) {
24
+ if (def.x_) {
25
25
  return def;
26
26
  }
27
27
 
@@ -51,7 +51,7 @@ module.exports = function defineWidget(def, renderer) {
51
51
  BaseComponent.call(this, id, doc);
52
52
  }
53
53
 
54
- if (!proto.w_) {
54
+ if (!proto.x_) {
55
55
  // Inherit from Component if they didn't already
56
56
  ComponentClass.prototype = Object.create(BaseComponent.prototype);
57
57
  for (var propName in proto) {
@@ -64,16 +64,16 @@ module.exports = function defineWidget(def, renderer) {
64
64
  // The same prototype will be used by our constructor after
65
65
  // we he have set up the prototype chain using the inherit function
66
66
  proto = Component.prototype = ComponentClass.prototype;
67
- proto.x_ = true;
67
+ proto.y_ = true;
68
68
 
69
69
  proto.constructor = def.constructor = Component;
70
70
 
71
71
  Object.defineProperty(proto, "state", {
72
72
  get: function () {
73
- var raw = this.y_ && this.y_.z_;
73
+ var raw = this.z_ && this.z_.A_;
74
74
 
75
75
  if (raw && !raw.toJSON) {
76
- Object.defineProperty(this.y_.z_, "toJSON", stateToJSONDef);
76
+ Object.defineProperty(this.z_.A_, "toJSON", stateToJSONDef);
77
77
  }
78
78
 
79
79
  return raw;
@@ -103,7 +103,7 @@ module.exports = function defineWidget(def, renderer) {
103
103
 
104
104
 
105
105
 
106
- return this.A_;
106
+ return this.B_;
107
107
  }
108
108
  });
109
109
 
@@ -121,37 +121,37 @@ module.exports = function defineWidget(def, renderer) {
121
121
 
122
122
 
123
123
 
124
- return this.B_;
124
+ return this.C_;
125
125
  }
126
126
  });
127
127
 
128
128
  // get legacy methods
129
129
 
130
- proto.C_ = proto.onRender;
130
+ proto.D_ = proto.onRender;
131
131
  Object.defineProperty(proto, "onRender", {
132
132
  get: noop,
133
133
  set: function (v) {
134
- proto.C_ = v;
134
+ proto.D_ = v;
135
135
  }
136
136
  });
137
137
 
138
- proto.D_ = proto.onUpdate;
138
+ proto.E_ = proto.onUpdate;
139
139
  Object.defineProperty(proto, "onUpdate", {
140
140
  get: function () {
141
141
  return modernMountOrUpdate;
142
142
  },
143
143
  set: function (v) {
144
- proto.D_ = v;
144
+ proto.E_ = v;
145
145
  }
146
146
  });
147
147
 
148
- proto.E_ = proto.onDestroy;
148
+ proto.F_ = proto.onDestroy;
149
149
  Object.defineProperty(proto, "onDestroy", {
150
150
  get: function () {
151
151
  return modernOnDestory;
152
152
  },
153
153
  set: function (v) {
154
- proto.E_ = v;
154
+ proto.F_ = v;
155
155
  }
156
156
  });
157
157
 
@@ -160,13 +160,13 @@ module.exports = function defineWidget(def, renderer) {
160
160
  proto.onMount = modernMountOrUpdate;
161
161
 
162
162
  if (legacyInit) {
163
- proto.F_ = legacyInit;
163
+ proto.G_ = legacyInit;
164
164
  }
165
165
 
166
166
  // convert legacy to modern
167
- proto.G_ = proto.update;
167
+ proto.H_ = proto.update;
168
168
  proto.update = function () {
169
- if (this.H_) {
169
+ if (this.I_) {
170
170
  // eslint-disable-next-line no-constant-condition
171
171
 
172
172
 
@@ -178,36 +178,36 @@ module.exports = function defineWidget(def, renderer) {
178
178
 
179
179
 
180
180
  this.destroy = modernOnDestory;
181
- this.H_ = false;
181
+ this.I_ = false;
182
182
  }
183
- this.I_ = true;
184
- if (this.B_) {
183
+ this.J_ = true;
184
+ if (this.C_) {
185
185
  this.onBeforeUpdate && this.onBeforeUpdate();
186
186
  }
187
187
 
188
- this.G_();
189
- this.I_ = false;
188
+ this.H_();
189
+ this.J_ = false;
190
190
  };
191
191
 
192
192
  function modernMountOrUpdate() {
193
193
  var self = this;
194
- var el = this.J_["@_wbind"];
195
- var prevEl = this.B_;
194
+ var el = this.K_["@_wbind"];
195
+ var prevEl = this.C_;
196
196
 
197
197
  if (prevEl !== el) {
198
- this.B_ = el;
198
+ this.C_ = el;
199
199
 
200
200
  if (prevEl) {
201
201
  this.onBeforeDestroy && this.onBeforeDestroy();
202
- this.E_ && this.E_();
203
- this.K_ = undefined;
202
+ this.F_ && this.F_();
203
+ this.L_ = undefined;
204
204
  this.removeAllListeners();
205
205
  }
206
206
 
207
207
  if (el) {
208
- this.F_ && this.F_(this.widgetConfig || {});
209
- this.C_ && this.C_({ firstRender: true });
210
- this.K_ = legacyRender;
208
+ this.G_ && this.G_(this.widgetConfig || {});
209
+ this.D_ && this.D_({ firstRender: true });
210
+ this.L_ = legacyRender;
211
211
 
212
212
  // eslint-disable-next-line no-constant-condition
213
213
 
@@ -224,45 +224,45 @@ module.exports = function defineWidget(def, renderer) {
224
224
  }
225
225
  } else if (el) {
226
226
  if (prevEl) {
227
- this.D_ && this.D_();
227
+ this.E_ && this.E_();
228
228
  }
229
229
 
230
- if (this.L_) {
231
- this.C_ &&
232
- this.C_({ firstRender: false });
230
+ if (this.M_) {
231
+ this.D_ &&
232
+ this.D_({ firstRender: false });
233
233
  }
234
234
  }
235
235
 
236
- this.M_ = this.N_;
237
- this.N_ = null;
238
- this.L_ = false;
236
+ this.N_ = this.O_;
237
+ this.O_ = null;
238
+ this.M_ = false;
239
239
  }
240
240
 
241
241
  function legacyRender() {
242
- if (!this.I_) {
242
+ if (!this.J_) {
243
243
  this.onBeforeUpdate && this.onBeforeUpdate();
244
244
  }
245
245
 
246
- this.L_ = true;
246
+ this.M_ = true;
247
247
  }
248
248
 
249
249
  function modernOnDestory() {
250
- if (this.B_) {
250
+ if (this.C_) {
251
251
  this.onBeforeDestroy && this.onBeforeDestroy();
252
- this.E_ && this.E_();
253
- this.B_ = null;
252
+ this.F_ && this.F_();
253
+ this.C_ = null;
254
254
  }
255
255
  }
256
256
 
257
257
  // Set a flag on the constructor function to make it clear this is
258
258
  // a component so that we can short-circuit this work later
259
- Component.w_ = true;
259
+ Component.x_ = true;
260
260
 
261
261
  function State() {
262
262
  BaseState.apply(this, arguments);
263
263
  }
264
264
  inherit(State, BaseState);
265
- proto.O_ = State;
265
+ proto.P_ = State;
266
266
 
267
267
  jQuery.patchComponent(
268
268
  window.$,
@@ -297,7 +297,7 @@ module.exports = function defineWidget(def, renderer) {
297
297
  if (renderer) {
298
298
  // Add the rendering related methods as statics on the
299
299
  // new component constructor function
300
- Component.renderer = proto.P_ = renderer;
300
+ Component.renderer = proto.Q_ = renderer;
301
301
  Component.render = renderer.render;
302
302
  Component.renderSync = renderer.renderSync;
303
303
  }
@@ -320,7 +320,7 @@ module.exports = function defineWidget(def, renderer) {
320
320
  template = req(template);
321
321
  }
322
322
 
323
- registry.r((template.default || template).Q_, function () {
323
+ registry.r((template.default || template).R_, function () {
324
324
  return Component;
325
325
  });
326
326
  }
@@ -1,11 +1,11 @@
1
1
  "use strict";module.exports = function defineWidget(def, renderer) {
2
- if (def.w_) {
2
+ if (def.x_) {
3
3
  return def;
4
4
  }
5
5
 
6
6
  if (renderer) {
7
7
  return {
8
- w_: true,
8
+ x_: true,
9
9
  _isWidget: true,
10
10
  renderer: renderer,
11
11
  render: renderer.render,
@@ -13,6 +13,6 @@
13
13
  template: renderer.template
14
14
  };
15
15
  } else {
16
- return { w_: true, _isWidget: true };
16
+ return { x_: true, _isWidget: true };
17
17
  }
18
18
  };
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
 
3
3
  var ComponentsContext = require("../../../runtime/components/ComponentsContext");
4
- var getComponentsContext = ComponentsContext.R_;
4
+ var getComponentsContext = ComponentsContext.S_;
5
5
 
6
6
  module.exports = function endComponent(out, componentDef) {
7
- if (componentDef.s_) {
7
+ if (componentDef.t_) {
8
8
  out.w("<!--" + out.global.runtimeId + "/-->");
9
- getComponentsContext(out).u_ = componentDef.v_;
9
+ getComponentsContext(out).v_ = componentDef.w_;
10
10
  }
11
11
  };
@@ -1,8 +1,8 @@
1
1
  "use strict";var registry = require("@internal/components-registry");
2
2
 
3
3
  exports.getComponentForEl =
4
- require("@internal/components-util").S_;
5
- exports.init = registry.T_;
4
+ require("@internal/components-util").T_;
5
+ exports.init = registry.U_;
6
6
  exports.register = function (id, component) {
7
7
  registry.r(id, function () {
8
8
  return component;
@@ -66,16 +66,16 @@ function addComponentsFromContext(componentsContext, componentsToHydrate) {
66
66
  for (var i = 0; i < len; i++) {
67
67
  var componentDef = components[i];
68
68
  var id = componentDef.id;
69
- var component = componentDef.r_;
70
- var flags = componentDef.t_;
71
- var isLegacy = componentDef.x_;
69
+ var component = componentDef.s_;
70
+ var flags = componentDef.u_;
71
+ var isLegacy = componentDef.y_;
72
72
 
73
73
  var state = component.state;
74
74
  var input = component.input || 0;
75
75
  var typeName = component.typeName;
76
- var customEvents = component.U_;
77
- var scope = component.V_;
78
- var bubblingDomEvents = component.W_;
76
+ var customEvents = component.V_;
77
+ var scope = component.W_;
78
+ var bubblingDomEvents = component.X_;
79
79
 
80
80
  var needsState;
81
81
  var serializedProps;
@@ -83,7 +83,7 @@ function addComponentsFromContext(componentsContext, componentsToHydrate) {
83
83
 
84
84
  if (isLegacy) {
85
85
  flags |= FLAG_IS_LEGACY;
86
- renderBody = component.X_;
86
+ renderBody = component.Y_;
87
87
 
88
88
  if (component.widgetConfig && isNotEmpty(component.widgetConfig)) {
89
89
  serializedProps = component.widgetConfig;
@@ -95,16 +95,16 @@ function addComponentsFromContext(componentsContext, componentsToHydrate) {
95
95
  !(flags & FLAG_WILL_RERENDER_IN_BROWSER) ||
96
96
  flags & FLAG_OLD_HYDRATE_NO_CREATE)
97
97
  {
98
- component.y_ = undefined; // We don't use `delete` to avoid V8 deoptimization
99
- component.N_ = undefined; // We don't use `delete` to avoid V8 deoptimization
98
+ component.z_ = undefined; // We don't use `delete` to avoid V8 deoptimization
99
+ component.O_ = undefined; // We don't use `delete` to avoid V8 deoptimization
100
100
  component.typeName = undefined;
101
101
  component.id = undefined;
102
- component.U_ = undefined;
103
102
  component.V_ = undefined;
104
103
  component.W_ = undefined;
105
- component.Y_ = undefined;
104
+ component.X_ = undefined;
106
105
  component.Z_ = undefined;
107
106
  component.___ = undefined;
107
+ component._a_ = undefined;
108
108
 
109
109
  needsState = true;
110
110
 
@@ -143,7 +143,7 @@ function addComponentsFromContext(componentsContext, componentsToHydrate) {
143
143
 
144
144
  var extra = {
145
145
  b: bubblingDomEvents,
146
- d: componentDef._a_,
146
+ d: componentDef._b_,
147
147
  e: customEvents,
148
148
  f: flags || undefined,
149
149
  p: customEvents && scope, // Only serialize scope if we need to attach custom events
@@ -172,7 +172,7 @@ function addComponentsFromContext(componentsContext, componentsToHydrate) {
172
172
  components.length = 0;
173
173
 
174
174
  // Also add any components from nested contexts
175
- var nestedContexts = componentsContext._b_;
175
+ var nestedContexts = componentsContext._c_;
176
176
  if (nestedContexts !== undefined) {
177
177
  nestedContexts.forEach(function (nestedContext) {
178
178
  addComponentsFromContext(nestedContext, componentsToHydrate);
@@ -184,7 +184,7 @@ function getInitComponentsData(out, componentDefs) {
184
184
  const len = componentDefs.length;
185
185
  const $global = out.global;
186
186
  const isLast = $global.d_;
187
- const didSerializeComponents = $global._c_;
187
+ const didSerializeComponents = $global._d_;
188
188
  const prefix = $global.componentIdPrefix || $global.widgetIdPrefix;
189
189
 
190
190
  if (len === 0) {
@@ -197,7 +197,7 @@ function getInitComponentsData(out, componentDefs) {
197
197
 
198
198
  const TYPE_INDEX = 1;
199
199
  const typesLookup =
200
- $global._d_ || ($global._d_ = new Map());
200
+ $global._e_ || ($global._e_ = new Map());
201
201
  let newTypes;
202
202
 
203
203
  for (let i = 0; i < len; i++) {
@@ -222,7 +222,7 @@ function getInitComponentsData(out, componentDefs) {
222
222
  let serializedGlobals;
223
223
 
224
224
  if (!didSerializeComponents) {
225
- $global._c_ = true;
225
+ $global._d_ = true;
226
226
  serializedGlobals = getSerializedGlobals($global);
227
227
  }
228
228