lwc 2.5.10 → 2.6.3

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 (41) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +674 -471
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +674 -471
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -9
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +647 -446
  5. package/dist/engine-dom/iife/es5/engine-dom.js +737 -433
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -9
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +704 -408
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +674 -471
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -9
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +647 -446
  11. package/dist/engine-dom/umd/es5/engine-dom.js +737 -433
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -9
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +704 -408
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +754 -549
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -9
  16. package/dist/engine-server/esm/es2017/engine-server.js +754 -549
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +135 -140
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +135 -140
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +135 -140
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +146 -137
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +146 -137
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +135 -140
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +135 -140
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +146 -137
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +146 -137
  30. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  31. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  33. package/dist/wire-service/iife/es5/wire-service.js +11 -11
  34. package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
  35. package/dist/wire-service/iife/es5/wire-service_debug.js +11 -11
  36. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  37. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  38. package/dist/wire-service/umd/es5/wire-service.js +11 -11
  39. package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
  40. package/dist/wire-service/umd/es5/wire-service_debug.js +11 -11
  41. package/package.json +8 -8
@@ -15,13 +15,13 @@ var LWC = (function (exports) {
15
15
 
16
16
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
17
17
 
18
- function _get2(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get2 = Reflect.get; } else { _get2 = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get2(target, property, receiver || target); }
18
+ function _get2() { if (typeof Reflect !== "undefined" && Reflect.get) { _get2 = Reflect.get; } else { _get2 = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get2.apply(this, arguments); }
19
19
 
20
20
  function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf2(object); if (object === null) break; } return object; }
21
21
 
22
22
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
23
 
24
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
25
 
26
26
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
@@ -39,7 +39,7 @@ var LWC = (function (exports) {
39
39
 
40
40
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
41
41
 
42
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
42
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
43
43
 
44
44
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
45
45
 
@@ -55,7 +55,7 @@ var LWC = (function (exports) {
55
55
 
56
56
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
57
57
 
58
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
58
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
59
59
 
60
60
  /* proxy-compat-disable */
61
61
 
@@ -348,7 +348,7 @@ var LWC = (function (exports) {
348
348
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
349
349
  return attributeName;
350
350
  }
351
- /** version: 2.5.10 */
351
+ /** version: 2.6.3 */
352
352
 
353
353
  /*
354
354
  * Copyright (c) 2018, salesforce.com, inc.
@@ -460,8 +460,6 @@ var LWC = (function (exports) {
460
460
  ENABLE_NODE_LIST_PATCH: null,
461
461
  ENABLE_HTML_COLLECTIONS_PATCH: null,
462
462
  ENABLE_NODE_PATCH: null,
463
- ENABLE_NON_COMPOSED_EVENTS_LEAKAGE: null,
464
- ENABLE_MIXED_SHADOW_MODE: null,
465
463
  ENABLE_WIRE_SYNC_EMIT: null
466
464
  };
467
465
 
@@ -528,7 +526,7 @@ var LWC = (function (exports) {
528
526
  setFeatureFlag(name, value);
529
527
  }
530
528
  }
531
- /** version: 2.5.10 */
529
+ /** version: 2.6.3 */
532
530
 
533
531
  /* proxy-compat-disable */
534
532
 
@@ -616,6 +614,249 @@ var LWC = (function (exports) {
616
614
  }
617
615
 
618
616
  return styleMap;
617
+ } //
618
+ // Primitives
619
+ //
620
+
621
+
622
+ var ssr$1;
623
+
624
+ function setSsr(ssrImpl) {
625
+ ssr$1 = ssrImpl;
626
+ }
627
+
628
+ var isNativeShadowDefined$1;
629
+
630
+ function setIsNativeShadowDefined(isNativeShadowDefinedImpl) {
631
+ isNativeShadowDefined$1 = isNativeShadowDefinedImpl;
632
+ }
633
+
634
+ var isSyntheticShadowDefined$1;
635
+
636
+ function setIsSyntheticShadowDefined(isSyntheticShadowDefinedImpl) {
637
+ isSyntheticShadowDefined$1 = isSyntheticShadowDefinedImpl;
638
+ }
639
+
640
+ var HTMLElementExported$1;
641
+
642
+ function setHTMLElement(HTMLElementImpl) {
643
+ HTMLElementExported$1 = HTMLElementImpl;
644
+ }
645
+
646
+ var isHydrating$1;
647
+
648
+ function setIsHydrating$1(isHydratingImpl) {
649
+ isHydrating$1 = isHydratingImpl;
650
+ }
651
+
652
+ var insert$1;
653
+
654
+ function setInsert(insertImpl) {
655
+ insert$1 = insertImpl;
656
+ }
657
+
658
+ var remove$1;
659
+
660
+ function setRemove(removeImpl) {
661
+ remove$1 = removeImpl;
662
+ }
663
+
664
+ var createElement$2;
665
+
666
+ function setCreateElement(createElementImpl) {
667
+ createElement$2 = createElementImpl;
668
+ }
669
+
670
+ var createText$1;
671
+
672
+ function setCreateText(createTextImpl) {
673
+ createText$1 = createTextImpl;
674
+ }
675
+
676
+ var createComment$1;
677
+
678
+ function setCreateComment(createCommentImpl) {
679
+ createComment$1 = createCommentImpl;
680
+ }
681
+
682
+ var nextSibling$1;
683
+
684
+ function setNextSibling(nextSiblingImpl) {
685
+ nextSibling$1 = nextSiblingImpl;
686
+ }
687
+
688
+ var attachShadow$1;
689
+
690
+ function setAttachShadow(attachShadowImpl) {
691
+ attachShadow$1 = attachShadowImpl;
692
+ }
693
+
694
+ var getProperty$1;
695
+
696
+ function setGetProperty(getPropertyImpl) {
697
+ getProperty$1 = getPropertyImpl;
698
+ }
699
+
700
+ var setProperty$1;
701
+
702
+ function setSetProperty(setPropertyImpl) {
703
+ setProperty$1 = setPropertyImpl;
704
+ }
705
+
706
+ var setText$1;
707
+
708
+ function setSetText(setTextImpl) {
709
+ setText$1 = setTextImpl;
710
+ }
711
+
712
+ var getAttribute$1;
713
+
714
+ function setGetAttribute(getAttributeImpl) {
715
+ getAttribute$1 = getAttributeImpl;
716
+ }
717
+
718
+ var setAttribute$1;
719
+
720
+ function setSetAttribute(setAttributeImpl) {
721
+ setAttribute$1 = setAttributeImpl;
722
+ }
723
+
724
+ var removeAttribute$1;
725
+
726
+ function setRemoveAttribute(removeAttributeImpl) {
727
+ removeAttribute$1 = removeAttributeImpl;
728
+ }
729
+
730
+ var addEventListener$1;
731
+
732
+ function setAddEventListener(addEventListenerImpl) {
733
+ addEventListener$1 = addEventListenerImpl;
734
+ }
735
+
736
+ var removeEventListener$1;
737
+
738
+ function setRemoveEventListener(removeEventListenerImpl) {
739
+ removeEventListener$1 = removeEventListenerImpl;
740
+ }
741
+
742
+ var dispatchEvent$1;
743
+
744
+ function setDispatchEvent(dispatchEventImpl) {
745
+ dispatchEvent$1 = dispatchEventImpl;
746
+ }
747
+
748
+ var getClassList$1;
749
+
750
+ function setGetClassList(getClassListImpl) {
751
+ getClassList$1 = getClassListImpl;
752
+ }
753
+
754
+ var setCSSStyleProperty$1;
755
+
756
+ function setSetCSSStyleProperty(setCSSStylePropertyImpl) {
757
+ setCSSStyleProperty$1 = setCSSStylePropertyImpl;
758
+ }
759
+
760
+ var getBoundingClientRect$1;
761
+
762
+ function setGetBoundingClientRect(getBoundingClientRectImpl) {
763
+ getBoundingClientRect$1 = getBoundingClientRectImpl;
764
+ }
765
+
766
+ var querySelector$1;
767
+
768
+ function setQuerySelector(querySelectorImpl) {
769
+ querySelector$1 = querySelectorImpl;
770
+ }
771
+
772
+ var querySelectorAll$1;
773
+
774
+ function setQuerySelectorAll(querySelectorAllImpl) {
775
+ querySelectorAll$1 = querySelectorAllImpl;
776
+ }
777
+
778
+ var getElementsByTagName$1;
779
+
780
+ function setGetElementsByTagName(getElementsByTagNameImpl) {
781
+ getElementsByTagName$1 = getElementsByTagNameImpl;
782
+ }
783
+
784
+ var getElementsByClassName$1;
785
+
786
+ function setGetElementsByClassName(getElementsByClassNameImpl) {
787
+ getElementsByClassName$1 = getElementsByClassNameImpl;
788
+ }
789
+
790
+ var getChildren$1;
791
+
792
+ function setGetChildren(getChildrenImpl) {
793
+ getChildren$1 = getChildrenImpl;
794
+ }
795
+
796
+ var getChildNodes$1;
797
+
798
+ function setGetChildNodes(getChildNodesImpl) {
799
+ getChildNodes$1 = getChildNodesImpl;
800
+ }
801
+
802
+ var getFirstChild$1;
803
+
804
+ function setGetFirstChild(getFirstChildImpl) {
805
+ getFirstChild$1 = getFirstChildImpl;
806
+ }
807
+
808
+ var getFirstElementChild$1;
809
+
810
+ function setGetFirstElementChild(getFirstElementChildImpl) {
811
+ getFirstElementChild$1 = getFirstElementChildImpl;
812
+ }
813
+
814
+ var getLastChild$1;
815
+
816
+ function setGetLastChild(getLastChildImpl) {
817
+ getLastChild$1 = getLastChildImpl;
818
+ }
819
+
820
+ var getLastElementChild$1;
821
+
822
+ function setGetLastElementChild(getLastElementChildImpl) {
823
+ getLastElementChild$1 = getLastElementChildImpl;
824
+ }
825
+
826
+ var isConnected$1;
827
+
828
+ function setIsConnected(isConnectedImpl) {
829
+ isConnected$1 = isConnectedImpl;
830
+ }
831
+
832
+ var insertGlobalStylesheet$1;
833
+
834
+ function setInsertGlobalStylesheet(insertGlobalStylesheetImpl) {
835
+ insertGlobalStylesheet$1 = insertGlobalStylesheetImpl;
836
+ }
837
+
838
+ var insertStylesheet$1;
839
+
840
+ function setInsertStylesheet(insertStylesheetImpl) {
841
+ insertStylesheet$1 = insertStylesheetImpl;
842
+ }
843
+
844
+ var assertInstanceOfHTMLElement$1;
845
+
846
+ function setAssertInstanceOfHTMLElement(assertInstanceOfHTMLElementImpl) {
847
+ assertInstanceOfHTMLElement$1 = assertInstanceOfHTMLElementImpl;
848
+ }
849
+
850
+ var defineCustomElement$1;
851
+
852
+ function setDefineCustomElement(defineCustomElementImpl) {
853
+ defineCustomElement$1 = defineCustomElementImpl;
854
+ }
855
+
856
+ var getCustomElement$1;
857
+
858
+ function setGetCustomElement(getCustomElementImpl) {
859
+ getCustomElement$1 = getCustomElementImpl;
619
860
  }
620
861
  /*
621
862
  * Copyright (c) 2019, salesforce.com, inc.
@@ -867,8 +1108,7 @@ var LWC = (function (exports) {
867
1108
 
868
1109
  function createAllEventListeners(vnode) {
869
1110
  var elm = vnode.elm,
870
- on = vnode.data.on,
871
- renderer = vnode.owner.renderer;
1111
+ on = vnode.data.on;
872
1112
 
873
1113
  if (isUndefined$1(on)) {
874
1114
  return;
@@ -879,7 +1119,7 @@ var LWC = (function (exports) {
879
1119
  var name;
880
1120
 
881
1121
  for (name in on) {
882
- renderer.addEventListener(elm, name, listener);
1122
+ addEventListener$1(elm, name, listener);
883
1123
  }
884
1124
  }
885
1125
 
@@ -1018,8 +1258,7 @@ var LWC = (function (exports) {
1018
1258
  var ColonCharCode = 58;
1019
1259
 
1020
1260
  function updateAttrs(oldVnode, vnode) {
1021
- var attrs = vnode.data.attrs,
1022
- renderer = vnode.owner.renderer;
1261
+ var attrs = vnode.data.attrs;
1023
1262
 
1024
1263
  if (isUndefined$1(attrs)) {
1025
1264
  return;
@@ -1036,8 +1275,6 @@ var LWC = (function (exports) {
1036
1275
  }
1037
1276
 
1038
1277
  var elm = vnode.elm;
1039
- var setAttribute = renderer.setAttribute,
1040
- removeAttribute = renderer.removeAttribute;
1041
1278
  var key;
1042
1279
  oldAttrs = isUndefined$1(oldAttrs) ? EmptyObject : oldAttrs; // update modified attributes, add new attributes
1043
1280
  // this routine is only useful for data-* attributes in all kind of elements
@@ -1052,14 +1289,14 @@ var LWC = (function (exports) {
1052
1289
 
1053
1290
  if (StringCharCodeAt.call(key, 3) === ColonCharCode) {
1054
1291
  // Assume xml namespace
1055
- setAttribute(elm, key, cur, xmlNS);
1292
+ setAttribute$1(elm, key, cur, xmlNS);
1056
1293
  } else if (StringCharCodeAt.call(key, 5) === ColonCharCode) {
1057
1294
  // Assume xlink namespace
1058
- setAttribute(elm, key, cur, xlinkNS);
1059
- } else if (isNull(cur)) {
1060
- removeAttribute(elm, key);
1295
+ setAttribute$1(elm, key, cur, xlinkNS);
1296
+ } else if (isNull(cur) || isUndefined$1(cur)) {
1297
+ removeAttribute$1(elm, key);
1061
1298
  } else {
1062
- setAttribute(elm, key, cur);
1299
+ setAttribute$1(elm, key, cur);
1063
1300
  }
1064
1301
 
1065
1302
  lockAttribute();
@@ -1108,14 +1345,13 @@ var LWC = (function (exports) {
1108
1345
 
1109
1346
  var isFirstPatch = isUndefined$1(oldProps);
1110
1347
  var elm = vnode.elm,
1111
- sel = vnode.sel,
1112
- renderer = vnode.owner.renderer;
1348
+ sel = vnode.sel;
1113
1349
 
1114
1350
  for (var key in props) {
1115
1351
  var cur = props[key]; // if it is the first time this element is patched, or the current value is different to the previous value...
1116
1352
 
1117
- if (isFirstPatch || cur !== (isLiveBindingProp(sel, key) ? renderer.getProperty(elm, key) : oldProps[key])) {
1118
- renderer.setProperty(elm, key, cur);
1353
+ if (isFirstPatch || cur !== (isLiveBindingProp(sel, key) ? getProperty$1(elm, key) : oldProps[key])) {
1354
+ setProperty$1(elm, key, cur);
1119
1355
  }
1120
1356
  }
1121
1357
  }
@@ -1183,15 +1419,14 @@ var LWC = (function (exports) {
1183
1419
 
1184
1420
  function updateClassAttribute(oldVnode, vnode) {
1185
1421
  var elm = vnode.elm,
1186
- newClass = vnode.data.className,
1187
- renderer = vnode.owner.renderer;
1422
+ newClass = vnode.data.className;
1188
1423
  var oldClass = oldVnode.data.className;
1189
1424
 
1190
1425
  if (oldClass === newClass) {
1191
1426
  return;
1192
1427
  }
1193
1428
 
1194
- var classList = renderer.getClassList(elm);
1429
+ var classList = getClassList$1(elm);
1195
1430
  var newClassMap = getMapFromClassName(newClass);
1196
1431
  var oldClassMap = getMapFromClassName(oldClass);
1197
1432
  var name;
@@ -1228,19 +1463,16 @@ var LWC = (function (exports) {
1228
1463
 
1229
1464
  function updateStyleAttribute(oldVnode, vnode) {
1230
1465
  var elm = vnode.elm,
1231
- newStyle = vnode.data.style,
1232
- renderer = vnode.owner.renderer;
1233
- var setAttribute = renderer.setAttribute,
1234
- removeAttribute = renderer.removeAttribute;
1466
+ newStyle = vnode.data.style;
1235
1467
 
1236
1468
  if (oldVnode.data.style === newStyle) {
1237
1469
  return;
1238
1470
  }
1239
1471
 
1240
1472
  if (!isString(newStyle) || newStyle === '') {
1241
- removeAttribute(elm, 'style');
1473
+ removeAttribute$1(elm, 'style');
1242
1474
  } else {
1243
- setAttribute(elm, 'style', newStyle);
1475
+ setAttribute$1(elm, 'style', newStyle);
1244
1476
  }
1245
1477
  }
1246
1478
 
@@ -1264,14 +1496,13 @@ var LWC = (function (exports) {
1264
1496
 
1265
1497
  function createClassAttribute(vnode) {
1266
1498
  var elm = vnode.elm,
1267
- classMap = vnode.data.classMap,
1268
- renderer = vnode.owner.renderer;
1499
+ classMap = vnode.data.classMap;
1269
1500
 
1270
1501
  if (isUndefined$1(classMap)) {
1271
1502
  return;
1272
1503
  }
1273
1504
 
1274
- var classList = renderer.getClassList(elm);
1505
+ var classList = getClassList$1(elm);
1275
1506
 
1276
1507
  for (var name in classMap) {
1277
1508
  classList.add(name);
@@ -1292,8 +1523,7 @@ var LWC = (function (exports) {
1292
1523
 
1293
1524
  function createStyleAttribute(vnode) {
1294
1525
  var elm = vnode.elm,
1295
- styleDecls = vnode.data.styleDecls,
1296
- renderer = vnode.owner.renderer;
1526
+ styleDecls = vnode.data.styleDecls;
1297
1527
 
1298
1528
  if (isUndefined$1(styleDecls)) {
1299
1529
  return;
@@ -1305,7 +1535,7 @@ var LWC = (function (exports) {
1305
1535
  value = _styleDecls$_i[1],
1306
1536
  important = _styleDecls$_i[2];
1307
1537
 
1308
- renderer.setCSSStyleProperty(elm, prop, value, important);
1538
+ setCSSStyleProperty$1(elm, prop, value, important);
1309
1539
  }
1310
1540
  }
1311
1541
 
@@ -1319,15 +1549,6 @@ var LWC = (function (exports) {
1319
1549
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
1320
1550
  */
1321
1551
 
1322
- /**
1323
- @license
1324
- Copyright (c) 2015 Simon Friis Vindum.
1325
- This code may only be used under the MIT License found at
1326
- https://github.com/snabbdom/snabbdom/blob/master/LICENSE
1327
- Code distributed by Snabbdom as part of the Snabbdom project at
1328
- https://github.com/snabbdom/snabbdom/
1329
- */
1330
-
1331
1552
  function isUndef(s) {
1332
1553
  return s === undefined;
1333
1554
  }
@@ -1415,7 +1636,7 @@ var LWC = (function (exports) {
1415
1636
  } else if (sameVnode(oldStartVnode, newEndVnode)) {
1416
1637
  // Vnode moved right
1417
1638
  patchVnode(oldStartVnode, newEndVnode);
1418
- newEndVnode.hook.move(oldStartVnode, parentElm, oldEndVnode.owner.renderer.nextSibling(oldEndVnode.elm));
1639
+ newEndVnode.hook.move(oldStartVnode, parentElm, nextSibling$1(oldEndVnode.elm));
1419
1640
  oldStartVnode = oldCh[++oldStartIdx];
1420
1641
  newEndVnode = newCh[--newEndIdx];
1421
1642
  } else if (sameVnode(oldEndVnode, newStartVnode)) {
@@ -1862,7 +2083,7 @@ var LWC = (function (exports) {
1862
2083
  defineProperties(proto, getLightningElementPrototypeRestrictionsDescriptors(proto));
1863
2084
  }
1864
2085
  /*
1865
- * Copyright (c) 2020, salesforce.com, inc.
2086
+ * Copyright (c) 2018, salesforce.com, inc.
1866
2087
  * All rights reserved.
1867
2088
  * SPDX-License-Identifier: MIT
1868
2089
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
@@ -1912,7 +2133,8 @@ var LWC = (function (exports) {
1912
2133
  */
1913
2134
 
1914
2135
  var isArray = Array.isArray;
1915
- var _getPrototypeOf = Object.getPrototypeOf,
2136
+ var ObjectDotPrototype = Object.prototype,
2137
+ _getPrototypeOf = Object.getPrototypeOf,
1916
2138
  ObjectCreate = Object.create,
1917
2139
  ObjectDefineProperty = Object.defineProperty,
1918
2140
  _isExtensible = Object.isExtensible,
@@ -2573,8 +2795,6 @@ var LWC = (function (exports) {
2573
2795
  init();
2574
2796
  }
2575
2797
 
2576
- var ObjectDotPrototype = Object.prototype;
2577
-
2578
2798
  function defaultValueIsObservable(value) {
2579
2799
  // intentionally checking for null
2580
2800
  if (value === null) {
@@ -2603,68 +2823,54 @@ var LWC = (function (exports) {
2603
2823
  /* do nothing */
2604
2824
  };
2605
2825
 
2606
- var defaultValueDistortion = function defaultValueDistortion(value) {
2607
- return value;
2608
- };
2609
-
2610
2826
  function createShadowTarget(value) {
2611
2827
  return isArray(value) ? [] : {};
2612
2828
  }
2613
2829
 
2614
- var ReactiveMembrane = /*#__PURE__*/function () {
2615
- function ReactiveMembrane(options) {
2616
- _classCallCheck(this, ReactiveMembrane);
2830
+ var ObservableMembrane = /*#__PURE__*/function () {
2831
+ function ObservableMembrane() {
2832
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2833
+
2834
+ _classCallCheck(this, ObservableMembrane);
2617
2835
 
2618
- this.valueDistortion = defaultValueDistortion;
2619
- this.valueMutated = defaultValueMutated;
2620
- this.valueObserved = defaultValueObserved;
2621
- this.valueIsObservable = defaultValueIsObservable;
2622
2836
  this.readOnlyObjectGraph = new WeakMap();
2623
2837
  this.reactiveObjectGraph = new WeakMap();
2624
-
2625
- if (!isUndefined(options)) {
2626
- var _valueDistortion = options.valueDistortion,
2627
- _valueMutated = options.valueMutated,
2628
- _valueObserved = options.valueObserved,
2629
- valueIsObservable = options.valueIsObservable,
2630
- tagPropertyKey = options.tagPropertyKey;
2631
- this.valueDistortion = isFunction(_valueDistortion) ? _valueDistortion : defaultValueDistortion;
2632
- this.valueMutated = isFunction(_valueMutated) ? _valueMutated : defaultValueMutated;
2633
- this.valueObserved = isFunction(_valueObserved) ? _valueObserved : defaultValueObserved;
2634
- this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2635
- this.tagPropertyKey = tagPropertyKey;
2636
- }
2838
+ var valueMutated = options.valueMutated,
2839
+ valueObserved = options.valueObserved,
2840
+ valueIsObservable = options.valueIsObservable,
2841
+ tagPropertyKey = options.tagPropertyKey;
2842
+ this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated;
2843
+ this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved;
2844
+ this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable;
2845
+ this.tagPropertyKey = tagPropertyKey;
2637
2846
  }
2638
2847
 
2639
- _createClass(ReactiveMembrane, [{
2848
+ _createClass(ObservableMembrane, [{
2640
2849
  key: "getProxy",
2641
2850
  value: function getProxy(value) {
2642
2851
  var unwrappedValue = unwrap$1(value);
2643
- var distorted = this.valueDistortion(unwrappedValue);
2644
2852
 
2645
- if (this.valueIsObservable(distorted)) {
2646
- if (this.readOnlyObjectGraph.get(distorted) === value) {
2647
- // when trying to extract the writable version of a readonly
2648
- // we return the readonly.
2853
+ if (this.valueIsObservable(unwrappedValue)) {
2854
+ // When trying to extract the writable version of a readonly we return the readonly.
2855
+ if (this.readOnlyObjectGraph.get(unwrappedValue) === value) {
2649
2856
  return value;
2650
2857
  }
2651
2858
 
2652
- return this.getReactiveHandler(unwrappedValue, distorted);
2859
+ return this.getReactiveHandler(unwrappedValue);
2653
2860
  }
2654
2861
 
2655
- return distorted;
2862
+ return unwrappedValue;
2656
2863
  }
2657
2864
  }, {
2658
2865
  key: "getReadOnlyProxy",
2659
2866
  value: function getReadOnlyProxy(value) {
2660
2867
  value = unwrap$1(value);
2661
- var distorted = this.valueDistortion(value);
2662
2868
 
2663
- if (this.valueIsObservable(distorted)) {
2664
- return this.getReadOnlyHandler(value, distorted);
2869
+ if (this.valueIsObservable(value)) {
2870
+ return this.getReadOnlyHandler(value);
2665
2871
  }
2666
2872
 
2667
- return distorted;
2873
+ return value;
2668
2874
  }
2669
2875
  }, {
2670
2876
  key: "unwrapProxy",
@@ -2673,39 +2879,39 @@ var LWC = (function (exports) {
2673
2879
  }
2674
2880
  }, {
2675
2881
  key: "getReactiveHandler",
2676
- value: function getReactiveHandler(value, distortedValue) {
2677
- var proxy = this.reactiveObjectGraph.get(distortedValue);
2882
+ value: function getReactiveHandler(value) {
2883
+ var proxy = this.reactiveObjectGraph.get(value);
2678
2884
 
2679
2885
  if (isUndefined(proxy)) {
2680
2886
  // caching the proxy after the first time it is accessed
2681
- var handler = new ReactiveProxyHandler(this, distortedValue);
2682
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2887
+ var handler = new ReactiveProxyHandler(this, value);
2888
+ proxy = new Proxy(createShadowTarget(value), handler);
2683
2889
  registerProxy(proxy, value);
2684
- this.reactiveObjectGraph.set(distortedValue, proxy);
2890
+ this.reactiveObjectGraph.set(value, proxy);
2685
2891
  }
2686
2892
 
2687
2893
  return proxy;
2688
2894
  }
2689
2895
  }, {
2690
2896
  key: "getReadOnlyHandler",
2691
- value: function getReadOnlyHandler(value, distortedValue) {
2692
- var proxy = this.readOnlyObjectGraph.get(distortedValue);
2897
+ value: function getReadOnlyHandler(value) {
2898
+ var proxy = this.readOnlyObjectGraph.get(value);
2693
2899
 
2694
2900
  if (isUndefined(proxy)) {
2695
2901
  // caching the proxy after the first time it is accessed
2696
- var handler = new ReadOnlyHandler(this, distortedValue);
2697
- proxy = new Proxy(createShadowTarget(distortedValue), handler);
2902
+ var handler = new ReadOnlyHandler(this, value);
2903
+ proxy = new Proxy(createShadowTarget(value), handler);
2698
2904
  registerProxy(proxy, value);
2699
- this.readOnlyObjectGraph.set(distortedValue, proxy);
2905
+ this.readOnlyObjectGraph.set(value, proxy);
2700
2906
  }
2701
2907
 
2702
2908
  return proxy;
2703
2909
  }
2704
2910
  }]);
2705
2911
 
2706
- return ReactiveMembrane;
2912
+ return ObservableMembrane;
2707
2913
  }();
2708
- /** version: 1.1.5 */
2914
+ /** version: 2.0.0 */
2709
2915
 
2710
2916
  /*
2711
2917
  * Copyright (c) 2018, salesforce.com, inc.
@@ -2716,15 +2922,9 @@ var LWC = (function (exports) {
2716
2922
 
2717
2923
 
2718
2924
  var lockerLivePropertyKey = Symbol.for('@@lockerLiveValue');
2719
-
2720
- function valueDistortion(value) {
2721
- return value;
2722
- }
2723
-
2724
- var reactiveMembrane = new ReactiveMembrane({
2925
+ var reactiveMembrane = new ObservableMembrane({
2725
2926
  valueObserved: valueObserved,
2726
2927
  valueMutated: valueMutated,
2727
- valueDistortion: valueDistortion,
2728
2928
  tagPropertyKey: lockerLivePropertyKey
2729
2929
  });
2730
2930
  /**
@@ -2733,16 +2933,9 @@ var LWC = (function (exports) {
2733
2933
  * change or being removed.
2734
2934
  */
2735
2935
 
2736
- var unwrap = function unwrap(value) {
2737
- var unwrapped = reactiveMembrane.unwrapProxy(value);
2738
-
2739
- if (unwrapped !== value) {
2740
- // if value is a proxy, unwrap to access original value and apply distortion
2741
- return valueDistortion(unwrapped);
2742
- }
2743
-
2744
- return value;
2745
- };
2936
+ function unwrap(value) {
2937
+ return reactiveMembrane.unwrapProxy(value);
2938
+ }
2746
2939
  /*
2747
2940
  * Copyright (c) 2018, salesforce.com, inc.
2748
2941
  * All rights reserved.
@@ -2826,21 +3019,18 @@ var LWC = (function (exports) {
2826
3019
 
2827
3020
 
2828
3021
  var LightningElement = function LightningElement() {
2829
- var _a; // This should be as performant as possible, while any initialization should be done lazily
2830
-
2831
-
3022
+ // This should be as performant as possible, while any initialization should be done lazily
2832
3023
  if (isNull(vmBeingConstructed)) {
2833
3024
  throw new ReferenceError('Illegal constructor');
2834
3025
  }
2835
3026
 
2836
3027
  var vm = vmBeingConstructed;
2837
3028
  var def = vm.def,
2838
- elm = vm.elm,
2839
- renderer = vm.renderer;
3029
+ elm = vm.elm;
2840
3030
  var bridge = def.bridge;
2841
3031
 
2842
3032
  if (process.env.NODE_ENV !== 'production') {
2843
- (_a = renderer.assertInstanceOfHTMLElement) === null || _a === void 0 ? void 0 : _a.call(renderer, vm.elm, "Component creation requires a DOM element to be associated to ".concat(vm, "."));
3033
+ assertInstanceOfHTMLElement$1(vm.elm, "Component creation requires a DOM element to be associated to ".concat(vm, "."));
2844
3034
  }
2845
3035
 
2846
3036
  var component = this;
@@ -2869,7 +3059,7 @@ var LWC = (function (exports) {
2869
3059
  if (vm.renderMode === 1
2870
3060
  /* Shadow */
2871
3061
  ) {
2872
- attachShadow(vm);
3062
+ doAttachShadow(vm);
2873
3063
  } // Adding extra guard rails in DEV mode.
2874
3064
 
2875
3065
 
@@ -2881,15 +3071,14 @@ var LWC = (function (exports) {
2881
3071
  return this;
2882
3072
  };
2883
3073
 
2884
- function attachShadow(vm) {
2885
- var _renderer$attachShado;
3074
+ function doAttachShadow(vm) {
3075
+ var _attachShadow$;
2886
3076
 
2887
3077
  var elm = vm.elm,
2888
3078
  mode = vm.mode,
2889
- renderer = vm.renderer,
2890
3079
  shadowMode = vm.shadowMode,
2891
3080
  ctor = vm.def.ctor;
2892
- var cmpRoot = renderer.attachShadow(elm, (_renderer$attachShado = {}, _defineProperty(_renderer$attachShado, KEY__SYNTHETIC_MODE, shadowMode === 1), _defineProperty(_renderer$attachShado, "delegatesFocus", Boolean(ctor.delegatesFocus)), _defineProperty(_renderer$attachShado, "mode", mode), _renderer$attachShado));
3081
+ var cmpRoot = attachShadow$1(elm, (_attachShadow$ = {}, _defineProperty(_attachShadow$, KEY__SYNTHETIC_MODE, shadowMode === 1), _defineProperty(_attachShadow$, "delegatesFocus", Boolean(ctor.delegatesFocus)), _defineProperty(_attachShadow$, "mode", mode), _attachShadow$));
2893
3082
  vm.cmpRoot = cmpRoot;
2894
3083
  associateVM(cmpRoot, vm);
2895
3084
 
@@ -2909,15 +3098,13 @@ var LWC = (function (exports) {
2909
3098
  constructor: LightningElement,
2910
3099
  dispatchEvent: function dispatchEvent(event) {
2911
3100
  var _getAssociatedVM = getAssociatedVM(this),
2912
- elm = _getAssociatedVM.elm,
2913
- dispatchEvent = _getAssociatedVM.renderer.dispatchEvent;
3101
+ elm = _getAssociatedVM.elm;
2914
3102
 
2915
- return dispatchEvent(elm, event);
3103
+ return dispatchEvent$1(elm, event);
2916
3104
  },
2917
3105
  addEventListener: function addEventListener(type, listener, options) {
2918
3106
  var vm = getAssociatedVM(this);
2919
- var elm = vm.elm,
2920
- addEventListener = vm.renderer.addEventListener;
3107
+ var elm = vm.elm;
2921
3108
 
2922
3109
  if (process.env.NODE_ENV !== 'production') {
2923
3110
  var _vmBeingRendered2 = getVMBeingRendered();
@@ -2928,111 +3115,99 @@ var LWC = (function (exports) {
2928
3115
  }
2929
3116
 
2930
3117
  var wrappedListener = getWrappedComponentsListener(vm, listener);
2931
- addEventListener(elm, type, wrappedListener, options);
3118
+ addEventListener$1(elm, type, wrappedListener, options);
2932
3119
  },
2933
3120
  removeEventListener: function removeEventListener(type, listener, options) {
2934
3121
  var vm = getAssociatedVM(this);
2935
- var elm = vm.elm,
2936
- removeEventListener = vm.renderer.removeEventListener;
3122
+ var elm = vm.elm;
2937
3123
  var wrappedListener = getWrappedComponentsListener(vm, listener);
2938
- removeEventListener(elm, type, wrappedListener, options);
3124
+ removeEventListener$1(elm, type, wrappedListener, options);
2939
3125
  },
2940
3126
  hasAttribute: function hasAttribute(name) {
2941
3127
  var _getAssociatedVM2 = getAssociatedVM(this),
2942
- elm = _getAssociatedVM2.elm,
2943
- getAttribute = _getAssociatedVM2.renderer.getAttribute;
3128
+ elm = _getAssociatedVM2.elm;
2944
3129
 
2945
- return !isNull(getAttribute(elm, name));
3130
+ return !isNull(getAttribute$1(elm, name));
2946
3131
  },
2947
3132
  hasAttributeNS: function hasAttributeNS(namespace, name) {
2948
3133
  var _getAssociatedVM3 = getAssociatedVM(this),
2949
- elm = _getAssociatedVM3.elm,
2950
- getAttribute = _getAssociatedVM3.renderer.getAttribute;
3134
+ elm = _getAssociatedVM3.elm;
2951
3135
 
2952
- return !isNull(getAttribute(elm, name, namespace));
3136
+ return !isNull(getAttribute$1(elm, name, namespace));
2953
3137
  },
2954
3138
  removeAttribute: function removeAttribute(name) {
2955
3139
  var _getAssociatedVM4 = getAssociatedVM(this),
2956
- elm = _getAssociatedVM4.elm,
2957
- removeAttribute = _getAssociatedVM4.renderer.removeAttribute;
3140
+ elm = _getAssociatedVM4.elm;
2958
3141
 
2959
3142
  unlockAttribute(elm, name);
2960
- removeAttribute(elm, name);
3143
+ removeAttribute$1(elm, name);
2961
3144
  lockAttribute();
2962
3145
  },
2963
3146
  removeAttributeNS: function removeAttributeNS(namespace, name) {
2964
3147
  var _getAssociatedVM5 = getAssociatedVM(this),
2965
- elm = _getAssociatedVM5.elm,
2966
- removeAttribute = _getAssociatedVM5.renderer.removeAttribute;
3148
+ elm = _getAssociatedVM5.elm;
2967
3149
 
2968
3150
  unlockAttribute(elm, name);
2969
- removeAttribute(elm, name, namespace);
3151
+ removeAttribute$1(elm, name, namespace);
2970
3152
  lockAttribute();
2971
3153
  },
2972
3154
  getAttribute: function getAttribute(name) {
2973
3155
  var _getAssociatedVM6 = getAssociatedVM(this),
2974
- elm = _getAssociatedVM6.elm,
2975
- getAttribute = _getAssociatedVM6.renderer.getAttribute;
3156
+ elm = _getAssociatedVM6.elm;
2976
3157
 
2977
- return getAttribute(elm, name);
3158
+ return getAttribute$1(elm, name);
2978
3159
  },
2979
3160
  getAttributeNS: function getAttributeNS(namespace, name) {
2980
3161
  var _getAssociatedVM7 = getAssociatedVM(this),
2981
- elm = _getAssociatedVM7.elm,
2982
- getAttribute = _getAssociatedVM7.renderer.getAttribute;
3162
+ elm = _getAssociatedVM7.elm;
2983
3163
 
2984
- return getAttribute(elm, name, namespace);
3164
+ return getAttribute$1(elm, name, namespace);
2985
3165
  },
2986
3166
  setAttribute: function setAttribute(name, value) {
2987
3167
  var vm = getAssociatedVM(this);
2988
- var elm = vm.elm,
2989
- setAttribute = vm.renderer.setAttribute;
3168
+ var elm = vm.elm;
2990
3169
 
2991
3170
  if (process.env.NODE_ENV !== 'production') {
2992
3171
  assert.isFalse(isBeingConstructed(vm), "Failed to construct '".concat(getComponentTag(vm), "': The result must not have attributes."));
2993
3172
  }
2994
3173
 
2995
3174
  unlockAttribute(elm, name);
2996
- setAttribute(elm, name, value);
3175
+ setAttribute$1(elm, name, value);
2997
3176
  lockAttribute();
2998
3177
  },
2999
3178
  setAttributeNS: function setAttributeNS(namespace, name, value) {
3000
3179
  var vm = getAssociatedVM(this);
3001
- var elm = vm.elm,
3002
- setAttribute = vm.renderer.setAttribute;
3180
+ var elm = vm.elm;
3003
3181
 
3004
3182
  if (process.env.NODE_ENV !== 'production') {
3005
3183
  assert.isFalse(isBeingConstructed(vm), "Failed to construct '".concat(getComponentTag(vm), "': The result must not have attributes."));
3006
3184
  }
3007
3185
 
3008
3186
  unlockAttribute(elm, name);
3009
- setAttribute(elm, name, value, namespace);
3187
+ setAttribute$1(elm, name, value, namespace);
3010
3188
  lockAttribute();
3011
3189
  },
3012
3190
  getBoundingClientRect: function getBoundingClientRect() {
3013
3191
  var vm = getAssociatedVM(this);
3014
- var elm = vm.elm,
3015
- getBoundingClientRect = vm.renderer.getBoundingClientRect;
3192
+ var elm = vm.elm;
3016
3193
 
3017
3194
  if (process.env.NODE_ENV !== 'production') {
3018
3195
  warnIfInvokedDuringConstruction(vm, 'getBoundingClientRect()');
3019
3196
  }
3020
3197
 
3021
- return getBoundingClientRect(elm);
3198
+ return getBoundingClientRect$1(elm);
3022
3199
  },
3023
3200
 
3024
3201
  get isConnected() {
3025
3202
  var _getAssociatedVM8 = getAssociatedVM(this),
3026
- elm = _getAssociatedVM8.elm,
3027
- isConnected = _getAssociatedVM8.renderer.isConnected;
3203
+ elm = _getAssociatedVM8.elm;
3028
3204
 
3029
- return isConnected(elm);
3205
+ return isConnected$1(elm);
3030
3206
  },
3031
3207
 
3032
3208
  get classList() {
3033
3209
  var vm = getAssociatedVM(this);
3034
- var elm = vm.elm,
3035
- getClassList = vm.renderer.getClassList;
3210
+ var elm = vm.elm;
3036
3211
 
3037
3212
  if (process.env.NODE_ENV !== 'production') {
3038
3213
  // TODO [#1290]: this still fails in dev but works in production, eventually, we should
@@ -3040,7 +3215,7 @@ var LWC = (function (exports) {
3040
3215
  assert.isFalse(isBeingConstructed(vm), "Failed to construct ".concat(vm, ": The result must not have attributes. Adding or tampering with classname in constructor is not allowed in a web component, use connectedCallback() instead."));
3041
3216
  }
3042
3217
 
3043
- return getClassList(elm);
3218
+ return getClassList$1(elm);
3044
3219
  },
3045
3220
 
3046
3221
  get template() {
@@ -3072,25 +3247,47 @@ var LWC = (function (exports) {
3072
3247
  return "[object ".concat(vm.def.name, "]");
3073
3248
  }
3074
3249
  };
3075
- var queryAndChildGetterDescriptors = create(null);
3076
- var childGetters = [['children', 'getChildren'], ['childNodes', 'getChildNodes'], ['firstChild', 'getFirstChild'], ['firstElementChild', 'getFirstElementChild'], ['lastChild', 'getLastChild'], ['lastElementChild', 'getLastElementChild']]; // Generic passthrough for child getters on HTMLElement to the relevant Renderer APIs
3250
+ var queryAndChildGetterDescriptors = create(null); // The reason we don't just call `import * as renderer from '../renderer'` here is that the bundle size
3251
+ // is smaller if we reference each function individually. Otherwise Rollup will create one big frozen
3252
+ // object representing the renderer, with a lot of methods we don't actually need.
3077
3253
 
3078
- var _loop = function _loop() {
3079
- var _childGetters$_i = _slicedToArray(_childGetters[_i9], 2),
3080
- elementProp = _childGetters$_i[0],
3081
- rendererMethod = _childGetters$_i[1];
3254
+ var childGetters = ['children', 'childNodes', 'firstChild', 'firstElementChild', 'lastChild', 'lastElementChild'];
3255
+
3256
+ function getChildGetter(methodName) {
3257
+ switch (methodName) {
3258
+ case 'children':
3259
+ return getChildren$1;
3260
+
3261
+ case 'childNodes':
3262
+ return getChildNodes$1;
3263
+
3264
+ case 'firstChild':
3265
+ return getFirstChild$1;
3266
+
3267
+ case 'firstElementChild':
3268
+ return getFirstElementChild$1;
3269
+
3270
+ case 'lastChild':
3271
+ return getLastChild$1;
3082
3272
 
3083
- queryAndChildGetterDescriptors[elementProp] = {
3273
+ case 'lastElementChild':
3274
+ return getLastElementChild$1;
3275
+ }
3276
+ } // Generic passthrough for child getters on HTMLElement to the relevant Renderer APIs
3277
+
3278
+
3279
+ var _loop = function _loop() {
3280
+ var childGetter = _childGetters[_i9];
3281
+ queryAndChildGetterDescriptors[childGetter] = {
3084
3282
  get: function get() {
3085
3283
  var vm = getAssociatedVM(this);
3086
- var elm = vm.elm,
3087
- renderer = vm.renderer;
3284
+ var elm = vm.elm;
3088
3285
 
3089
3286
  if (process.env.NODE_ENV !== 'production') {
3090
- warnIfInvokedDuringConstruction(vm, elementProp);
3287
+ warnIfInvokedDuringConstruction(vm, childGetter);
3091
3288
  }
3092
3289
 
3093
- return renderer[rendererMethod](elm);
3290
+ return getChildGetter(childGetter)(elm);
3094
3291
  },
3095
3292
  configurable: true,
3096
3293
  enumerable: true
@@ -3101,21 +3298,37 @@ var LWC = (function (exports) {
3101
3298
  _loop();
3102
3299
  }
3103
3300
 
3104
- var queryMethods = ['getElementsByClassName', 'getElementsByTagName', 'querySelector', 'querySelectorAll']; // Generic passthrough for query APIs on HTMLElement to the relevant Renderer APIs
3301
+ var queryMethods = ['getElementsByClassName', 'getElementsByTagName', 'querySelector', 'querySelectorAll'];
3302
+
3303
+ function getQueryMethod(methodName) {
3304
+ switch (methodName) {
3305
+ case 'getElementsByClassName':
3306
+ return getElementsByClassName$1;
3307
+
3308
+ case 'getElementsByTagName':
3309
+ return getElementsByTagName$1;
3310
+
3311
+ case 'querySelector':
3312
+ return querySelector$1;
3313
+
3314
+ case 'querySelectorAll':
3315
+ return querySelectorAll$1;
3316
+ }
3317
+ } // Generic passthrough for query APIs on HTMLElement to the relevant Renderer APIs
3318
+
3105
3319
 
3106
3320
  var _loop2 = function _loop2() {
3107
3321
  var queryMethod = _queryMethods[_i10];
3108
3322
  queryAndChildGetterDescriptors[queryMethod] = {
3109
3323
  value: function value(arg) {
3110
3324
  var vm = getAssociatedVM(this);
3111
- var elm = vm.elm,
3112
- renderer = vm.renderer;
3325
+ var elm = vm.elm;
3113
3326
 
3114
3327
  if (process.env.NODE_ENV !== 'production') {
3115
3328
  warnIfInvokedDuringConstruction(vm, "".concat(queryMethod, "()"));
3116
3329
  }
3117
3330
 
3118
- return renderer[queryMethod](elm, arg);
3331
+ return getQueryMethod(queryMethod)(elm, arg);
3119
3332
  },
3120
3333
  configurable: true,
3121
3334
  enumerable: true,
@@ -3841,7 +4054,7 @@ var LWC = (function (exports) {
3841
4054
  return _super4.apply(this, arguments);
3842
4055
  }
3843
4056
 
3844
- return HTMLBridgeElement;
4057
+ return _createClass(HTMLBridgeElement);
3845
4058
  }(SuperClass);
3846
4059
  } else {
3847
4060
  HTMLBridgeElement = function HTMLBridgeElement() {
@@ -4285,10 +4498,6 @@ var LWC = (function (exports) {
4285
4498
 
4286
4499
  assert.isTrue(Ctor.constructor, "Missing ".concat(ctorName, ".constructor, ").concat(ctorName, " should have a \"constructor\" property."));
4287
4500
 
4288
- if (!runtimeFlags.ENABLE_MIXED_SHADOW_MODE) {
4289
- assert.isFalse('shadowSupportMode' in Ctor, "".concat(ctorName || 'Anonymous class', " is an invalid LWC component. The shadowSupportMode static property is not available in this environment."));
4290
- }
4291
-
4292
4501
  if (!isUndefined$1(ctorShadowSupportMode)) {
4293
4502
  assert.invariant(ctorShadowSupportMode === "any"
4294
4503
  /* Any */
@@ -4524,21 +4733,20 @@ var LWC = (function (exports) {
4524
4733
  var token = cmpTemplate === null || cmpTemplate === void 0 ? void 0 : cmpTemplate.stylesheetToken;
4525
4734
 
4526
4735
  if (!isUndefined$1(token) && context.hasScopedStyles) {
4527
- owner.renderer.getClassList(elm).add(token);
4736
+ getClassList$1(elm).add(token);
4528
4737
  }
4529
4738
  }
4530
4739
 
4531
4740
  function updateNodeHook(oldVnode, vnode) {
4532
4741
  var elm = vnode.elm,
4533
- text = vnode.text,
4534
- renderer = vnode.owner.renderer;
4742
+ text = vnode.text;
4535
4743
 
4536
4744
  if (oldVnode.text !== text) {
4537
4745
  if (process.env.NODE_ENV !== 'production') {
4538
4746
  unlockDomMutation();
4539
4747
  }
4540
4748
 
4541
- renderer.setText(elm, text);
4749
+ setText$1(elm, text);
4542
4750
 
4543
4751
  if (process.env.NODE_ENV !== 'production') {
4544
4752
  lockDomMutation();
@@ -4547,13 +4755,11 @@ var LWC = (function (exports) {
4547
4755
  }
4548
4756
 
4549
4757
  function insertNodeHook(vnode, parentNode, referenceNode) {
4550
- var renderer = vnode.owner.renderer;
4551
-
4552
4758
  if (process.env.NODE_ENV !== 'production') {
4553
4759
  unlockDomMutation();
4554
4760
  }
4555
4761
 
4556
- renderer.insert(vnode.elm, parentNode, referenceNode);
4762
+ insert$1(vnode.elm, parentNode, referenceNode);
4557
4763
 
4558
4764
  if (process.env.NODE_ENV !== 'production') {
4559
4765
  lockDomMutation();
@@ -4561,13 +4767,11 @@ var LWC = (function (exports) {
4561
4767
  }
4562
4768
 
4563
4769
  function removeNodeHook(vnode, parentNode) {
4564
- var renderer = vnode.owner.renderer;
4565
-
4566
4770
  if (process.env.NODE_ENV !== 'production') {
4567
4771
  unlockDomMutation();
4568
4772
  }
4569
4773
 
4570
- renderer.remove(vnode.elm, parentNode);
4774
+ remove$1(vnode.elm, parentNode);
4571
4775
 
4572
4776
  if (process.env.NODE_ENV !== 'production') {
4573
4777
  lockDomMutation();
@@ -4646,12 +4850,14 @@ var LWC = (function (exports) {
4646
4850
  }
4647
4851
 
4648
4852
  function updateChildrenHook(oldVnode, vnode) {
4649
- var children = vnode.children,
4650
- owner = vnode.owner;
4651
- var fn = hasDynamicChildren(children) ? updateDynamicChildren : updateStaticChildren;
4652
- runWithBoundaryProtection(owner, owner.owner, noop, function () {
4653
- fn(vnode.elm, oldVnode.children, children);
4654
- }, noop);
4853
+ var elm = vnode.elm,
4854
+ children = vnode.children;
4855
+
4856
+ if (hasDynamicChildren(children)) {
4857
+ updateDynamicChildren(elm, oldVnode.children, children);
4858
+ } else {
4859
+ updateStaticChildren(elm, oldVnode.children, children);
4860
+ }
4655
4861
  }
4656
4862
 
4657
4863
  function allocateChildrenHook(vnode, vm) {
@@ -4711,8 +4917,7 @@ var LWC = (function (exports) {
4711
4917
  createVM(elm, def, {
4712
4918
  mode: mode,
4713
4919
  owner: owner,
4714
- tagName: sel,
4715
- renderer: owner.renderer
4920
+ tagName: sel
4716
4921
  });
4717
4922
 
4718
4923
  if (process.env.NODE_ENV !== 'production') {
@@ -4754,8 +4959,7 @@ var LWC = (function (exports) {
4754
4959
 
4755
4960
  function vnodesAndElementHaveCompatibleAttrs(vnode, elm) {
4756
4961
  var _vnode$data$attrs = vnode.data.attrs,
4757
- attrs = _vnode$data$attrs === void 0 ? {} : _vnode$data$attrs,
4758
- renderer = vnode.owner.renderer;
4962
+ attrs = _vnode$data$attrs === void 0 ? {} : _vnode$data$attrs;
4759
4963
  var nodesAreCompatible = true; // Validate attributes, though we could always recovery from those by running the update mods.
4760
4964
  // Note: intentionally ONLY matching vnodes.attrs to elm.attrs, in case SSR is adding extra attributes.
4761
4965
 
@@ -4764,7 +4968,7 @@ var LWC = (function (exports) {
4764
4968
  attrName = _Object$entries$_i[0],
4765
4969
  attrValue = _Object$entries$_i[1];
4766
4970
 
4767
- var elmAttrValue = renderer.getAttribute(elm, attrName);
4971
+ var elmAttrValue = getAttribute$1(elm, attrName);
4768
4972
 
4769
4973
  if (String(attrValue) !== elmAttrValue) {
4770
4974
  logError("Mismatch hydrating element <".concat(elm.tagName.toLowerCase(), ">: attribute \"").concat(attrName, "\" has different values, expected \"").concat(attrValue, "\" but found \"").concat(elmAttrValue, "\""), vnode.owner);
@@ -4778,8 +4982,7 @@ var LWC = (function (exports) {
4778
4982
  function vnodesAndElementHaveCompatibleClass(vnode, elm) {
4779
4983
  var _vnode$data = vnode.data,
4780
4984
  className = _vnode$data.className,
4781
- classMap = _vnode$data.classMap,
4782
- renderer = vnode.owner.renderer;
4985
+ classMap = _vnode$data.classMap;
4783
4986
  var nodesAreCompatible = true;
4784
4987
  var vnodeClassName;
4785
4988
 
@@ -4789,7 +4992,7 @@ var LWC = (function (exports) {
4789
4992
  vnodeClassName = className;
4790
4993
  } else if (!isUndefined$1(classMap)) {
4791
4994
  // classMap is used when class is set to static value.
4792
- var classList = renderer.getClassList(elm);
4995
+ var classList = getClassList$1(elm);
4793
4996
  var computedClassName = ''; // all classes from the vnode should be in the element.classList
4794
4997
 
4795
4998
  for (var name in classMap) {
@@ -4817,9 +5020,8 @@ var LWC = (function (exports) {
4817
5020
  function vnodesAndElementHaveCompatibleStyle(vnode, elm) {
4818
5021
  var _vnode$data2 = vnode.data,
4819
5022
  style = _vnode$data2.style,
4820
- styleDecls = _vnode$data2.styleDecls,
4821
- renderer = vnode.owner.renderer;
4822
- var elmStyle = renderer.getAttribute(elm, 'style') || '';
5023
+ styleDecls = _vnode$data2.styleDecls;
5024
+ var elmStyle = getAttribute$1(elm, 'style') || '';
4823
5025
  var vnodeStyle;
4824
5026
  var nodesAreCompatible = true;
4825
5027
 
@@ -4960,12 +5162,12 @@ var LWC = (function (exports) {
4960
5162
  */
4961
5163
 
4962
5164
 
4963
- function getUpgradableConstructor(tagName, renderer) {
5165
+ function getUpgradableConstructor(tagName) {
4964
5166
  // Should never get a tag with upper case letter at this point, the compiler should
4965
5167
  // produce only tags with lowercase letters
4966
5168
  // But, for backwards compatibility, we will lower case the tagName
4967
5169
  tagName = tagName.toLowerCase();
4968
- var CE = renderer.getCustomElement(tagName);
5170
+ var CE = getCustomElement$1(tagName);
4969
5171
 
4970
5172
  if (!isUndefined$1(CE)) {
4971
5173
  return CE;
@@ -4976,8 +5178,8 @@ var LWC = (function (exports) {
4976
5178
  */
4977
5179
 
4978
5180
 
4979
- CE = /*#__PURE__*/function (_renderer$HTMLElement) {
4980
- _inherits(LWCUpgradableElement, _renderer$HTMLElement);
5181
+ CE = /*#__PURE__*/function (_HTMLElementExported$) {
5182
+ _inherits(LWCUpgradableElement, _HTMLElementExported$);
4981
5183
 
4982
5184
  var _super5 = _createSuper(LWCUpgradableElement);
4983
5185
 
@@ -4995,10 +5197,10 @@ var LWC = (function (exports) {
4995
5197
  return _this4;
4996
5198
  }
4997
5199
 
4998
- return LWCUpgradableElement;
4999
- }(renderer.HTMLElement);
5200
+ return _createClass(LWCUpgradableElement);
5201
+ }(HTMLElementExported$1);
5000
5202
 
5001
- renderer.defineCustomElement(tagName, CE);
5203
+ defineCustomElement$1(tagName, CE);
5002
5204
  return CE;
5003
5205
  }
5004
5206
  /*
@@ -5014,8 +5216,7 @@ var LWC = (function (exports) {
5014
5216
  var TextHook = {
5015
5217
  create: function create(vnode) {
5016
5218
  var owner = vnode.owner;
5017
- var renderer = owner.renderer;
5018
- var elm = renderer.createText(vnode.text);
5219
+ var elm = createText$1(vnode.text);
5019
5220
  linkNodeToShadow(elm, owner);
5020
5221
  vnode.elm = elm;
5021
5222
  },
@@ -5047,8 +5248,7 @@ var LWC = (function (exports) {
5047
5248
  create: function create(vnode) {
5048
5249
  var owner = vnode.owner,
5049
5250
  text = vnode.text;
5050
- var renderer = owner.renderer;
5051
- var elm = renderer.createComment(text);
5251
+ var elm = createComment$1(text);
5052
5252
  linkNodeToShadow(elm, owner);
5053
5253
  vnode.elm = elm;
5054
5254
  },
@@ -5086,9 +5286,8 @@ var LWC = (function (exports) {
5086
5286
  var sel = vnode.sel,
5087
5287
  owner = vnode.owner,
5088
5288
  svg = vnode.data.svg;
5089
- var renderer = owner.renderer;
5090
5289
  var namespace = isTrue(svg) ? SVG_NAMESPACE : undefined;
5091
- var elm = renderer.createElement(sel, namespace);
5290
+ var elm = createElement$2(sel, namespace);
5092
5291
  linkNodeToShadow(elm, owner);
5093
5292
  fallbackElmHook(elm, vnode);
5094
5293
  vnode.elm = elm;
@@ -5142,8 +5341,7 @@ var LWC = (function (exports) {
5142
5341
  create: function create(vnode) {
5143
5342
  var sel = vnode.sel,
5144
5343
  owner = vnode.owner;
5145
- var renderer = owner.renderer;
5146
- var UpgradableConstructor = getUpgradableConstructor(sel, renderer);
5344
+ var UpgradableConstructor = getUpgradableConstructor(sel);
5147
5345
  /**
5148
5346
  * Note: if the upgradable constructor does not expect, or throw when we new it
5149
5347
  * with a callback as the first argument, we could implement a more advanced
@@ -5234,8 +5432,7 @@ var LWC = (function (exports) {
5234
5432
  createVM(elm, def, {
5235
5433
  mode: mode,
5236
5434
  owner: owner,
5237
- tagName: sel,
5238
- renderer: owner.renderer
5435
+ tagName: sel
5239
5436
  });
5240
5437
  vnode.elm = elm;
5241
5438
  var vm = getAssociatedVM(elm);
@@ -5263,11 +5460,10 @@ var LWC = (function (exports) {
5263
5460
  };
5264
5461
 
5265
5462
  function linkNodeToShadow(elm, owner) {
5266
- var renderer = owner.renderer,
5267
- renderMode = owner.renderMode,
5463
+ var renderMode = owner.renderMode,
5268
5464
  shadowMode = owner.shadowMode; // TODO [#1164]: this should eventually be done by the polyfill directly
5269
5465
 
5270
- if (renderer.isSyntheticShadowDefined) {
5466
+ if (isSyntheticShadowDefined$1) {
5271
5467
  if (shadowMode === 1
5272
5468
  /* Synthetic */
5273
5469
  || renderMode === 0
@@ -5788,7 +5984,6 @@ var LWC = (function (exports) {
5788
5984
  function updateStylesheetToken(vm, template) {
5789
5985
  var elm = vm.elm,
5790
5986
  context = vm.context,
5791
- renderer = vm.renderer,
5792
5987
  renderMode = vm.renderMode,
5793
5988
  shadowMode = vm.shadowMode;
5794
5989
  var newStylesheets = template.stylesheets,
@@ -5808,11 +6003,11 @@ var LWC = (function (exports) {
5808
6003
  oldHasTokenInAttribute = context.hasTokenInAttribute;
5809
6004
 
5810
6005
  if (oldHasTokenInClass) {
5811
- renderer.getClassList(elm).remove(makeHostToken(oldToken));
6006
+ getClassList$1(elm).remove(makeHostToken(oldToken));
5812
6007
  }
5813
6008
 
5814
6009
  if (oldHasTokenInAttribute) {
5815
- renderer.removeAttribute(elm, makeHostToken(oldToken));
6010
+ removeAttribute$1(elm, makeHostToken(oldToken));
5816
6011
  } // Apply the new template styling token to the host element, if the new template has any
5817
6012
  // associated stylesheets. In the case of light DOM, also ensure there is at least one scoped stylesheet.
5818
6013
 
@@ -5824,12 +6019,12 @@ var LWC = (function (exports) {
5824
6019
 
5825
6020
  if (!isUndefined$1(newToken)) {
5826
6021
  if (hasScopedStyles) {
5827
- renderer.getClassList(elm).add(makeHostToken(newToken));
6022
+ getClassList$1(elm).add(makeHostToken(newToken));
5828
6023
  newHasTokenInClass = true;
5829
6024
  }
5830
6025
 
5831
6026
  if (isSyntheticShadow) {
5832
- renderer.setAttribute(elm, makeHostToken(newToken), '');
6027
+ setAttribute$1(elm, makeHostToken(newToken), '');
5833
6028
  newHasTokenInAttribute = true;
5834
6029
  }
5835
6030
  } // Update the styling tokens present on the context object.
@@ -5842,6 +6037,7 @@ var LWC = (function (exports) {
5842
6037
 
5843
6038
  function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
5844
6039
  var content = [];
6040
+ var root;
5845
6041
 
5846
6042
  for (var _i16 = 0; _i16 < stylesheets.length; _i16++) {
5847
6043
  var stylesheet = stylesheets[_i16];
@@ -5854,23 +6050,46 @@ var LWC = (function (exports) {
5854
6050
  // the component instance might be attempting to use an old version of
5855
6051
  // the stylesheet, while internally, we have a replacement for it.
5856
6052
  stylesheet = getStyleOrSwappedStyle(stylesheet);
5857
- } // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
5858
- // native shadow DOM. Synthetic shadow DOM never uses `:host`.
6053
+ }
5859
6054
 
6055
+ var isScopedCss = stylesheet[KEY__SCOPED_CSS]; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
6056
+
6057
+ var scopeToken = isScopedCss || vm.shadowMode === 1
6058
+ /* Synthetic */
6059
+ && vm.renderMode === 1
6060
+ /* Shadow */
6061
+ ? stylesheetToken : undefined; // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
6062
+ // native shadow DOM. Synthetic shadow DOM never uses `:host`.
5860
6063
 
5861
- var isScopedCss = stylesheet[KEY__SCOPED_CSS];
5862
6064
  var useActualHostSelector = vm.renderMode === 0
5863
6065
  /* Light */
5864
6066
  ? !isScopedCss : vm.shadowMode === 0
5865
6067
  /* Native */
5866
- ; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
6068
+ ; // Use the native :dir() pseudoclass only in native shadow DOM. Otherwise, in synthetic shadow,
6069
+ // we use an attribute selector on the host to simulate :dir().
5867
6070
 
5868
- var scopeToken = isScopedCss || vm.shadowMode === 1
5869
- /* Synthetic */
5870
- && vm.renderMode === 1
6071
+ var useNativeDirPseudoclass = void 0;
6072
+
6073
+ if (vm.renderMode === 1
5871
6074
  /* Shadow */
5872
- ? stylesheetToken : undefined;
5873
- ArrayPush$1.call(content, stylesheet(useActualHostSelector, scopeToken));
6075
+ ) {
6076
+ useNativeDirPseudoclass = vm.shadowMode === 0
6077
+ /* Native */
6078
+ ;
6079
+ } else {
6080
+ // Light DOM components should only render `[dir]` if they're inside of a synthetic shadow root.
6081
+ // At the top level (root is null) or inside of a native shadow root, they should use `:dir()`.
6082
+ if (isUndefined$1(root)) {
6083
+ // Only calculate the root once as necessary
6084
+ root = getNearestShadowComponent(vm);
6085
+ }
6086
+
6087
+ useNativeDirPseudoclass = isNull(root) || root.shadowMode === 0
6088
+ /* Native */
6089
+ ;
6090
+ }
6091
+
6092
+ ArrayPush$1.call(content, stylesheet(scopeToken, useActualHostSelector, useNativeDirPseudoclass));
5874
6093
  }
5875
6094
  }
5876
6095
 
@@ -5892,14 +6111,12 @@ var LWC = (function (exports) {
5892
6111
  // https://github.com/salesforce/lwc/pull/2460#discussion_r691208892
5893
6112
 
5894
6113
 
5895
- function getNearestNativeShadowComponent(vm) {
6114
+ function getNearestShadowComponent(vm) {
5896
6115
  var owner = vm;
5897
6116
 
5898
6117
  while (!isNull(owner)) {
5899
6118
  if (owner.renderMode === 1
5900
6119
  /* Shadow */
5901
- && owner.shadowMode === 0
5902
- /* Native */
5903
6120
  ) {
5904
6121
  return owner;
5905
6122
  }
@@ -5910,9 +6127,22 @@ var LWC = (function (exports) {
5910
6127
  return owner;
5911
6128
  }
5912
6129
 
6130
+ function getNearestNativeShadowComponent(vm) {
6131
+ var owner = getNearestShadowComponent(vm);
6132
+
6133
+ if (!isNull(owner) && owner.shadowMode === 1
6134
+ /* Synthetic */
6135
+ ) {
6136
+ // Synthetic-within-native is impossible. So if the nearest shadow component is
6137
+ // synthetic, we know we won't find a native component if we go any further.
6138
+ return null;
6139
+ }
6140
+
6141
+ return owner;
6142
+ }
6143
+
5913
6144
  function createStylesheet(vm, stylesheets) {
5914
- var renderer = vm.renderer,
5915
- renderMode = vm.renderMode,
6145
+ var renderMode = vm.renderMode,
5916
6146
  shadowMode = vm.shadowMode;
5917
6147
 
5918
6148
  if (renderMode === 1
@@ -5921,9 +6151,9 @@ var LWC = (function (exports) {
5921
6151
  /* Synthetic */
5922
6152
  ) {
5923
6153
  for (var _i17 = 0; _i17 < stylesheets.length; _i17++) {
5924
- renderer.insertGlobalStylesheet(stylesheets[_i17]);
6154
+ insertGlobalStylesheet$1(stylesheets[_i17]);
5925
6155
  }
5926
- } else if (renderer.ssr || renderer.isHydrating()) {
6156
+ } else if (ssr$1 || isHydrating$1()) {
5927
6157
  // Note: We need to ensure that during hydration, the stylesheets method is the same as those in ssr.
5928
6158
  // This works in the client, because the stylesheets are created, and cached in the VM
5929
6159
  // the first time the VM renders.
@@ -5937,10 +6167,10 @@ var LWC = (function (exports) {
5937
6167
 
5938
6168
  for (var _i18 = 0; _i18 < stylesheets.length; _i18++) {
5939
6169
  if (isGlobal) {
5940
- renderer.insertGlobalStylesheet(stylesheets[_i18]);
6170
+ insertGlobalStylesheet$1(stylesheets[_i18]);
5941
6171
  } else {
5942
6172
  // local level
5943
- renderer.insertStylesheet(stylesheets[_i18], root.cmpRoot);
6173
+ insertStylesheet$1(stylesheets[_i18], root.cmpRoot);
5944
6174
  }
5945
6175
  }
5946
6176
  }
@@ -6021,7 +6251,7 @@ var LWC = (function (exports) {
6021
6251
  if (isProfilerEnabled) {
6022
6252
  currentDispatcher(opId, 0
6023
6253
  /* Start */
6024
- , vm.tagName, vm.idx);
6254
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
6025
6255
  }
6026
6256
  }
6027
6257
 
@@ -6035,7 +6265,7 @@ var LWC = (function (exports) {
6035
6265
  if (isProfilerEnabled) {
6036
6266
  currentDispatcher(opId, 1
6037
6267
  /* Stop */
6038
- , vm.tagName, vm.idx);
6268
+ , vm.tagName, vm.idx, vm.renderMode, vm.shadowMode);
6039
6269
  }
6040
6270
  }
6041
6271
 
@@ -6049,7 +6279,7 @@ var LWC = (function (exports) {
6049
6279
  if (isProfilerEnabled) {
6050
6280
  currentDispatcher(opId, 0
6051
6281
  /* Start */
6052
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
6282
+ , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
6053
6283
  }
6054
6284
  }
6055
6285
 
@@ -6063,7 +6293,7 @@ var LWC = (function (exports) {
6063
6293
  if (isProfilerEnabled) {
6064
6294
  currentDispatcher(opId, 1
6065
6295
  /* Stop */
6066
- , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx);
6296
+ , vm === null || vm === void 0 ? void 0 : vm.tagName, vm === null || vm === void 0 ? void 0 : vm.idx, vm === null || vm === void 0 ? void 0 : vm.renderMode, vm === null || vm === void 0 ? void 0 : vm.shadowMode);
6067
6297
  }
6068
6298
  }
6069
6299
  /*
@@ -6602,7 +6832,6 @@ var LWC = (function (exports) {
6602
6832
  function createVM(elm, def, options) {
6603
6833
  var mode = options.mode,
6604
6834
  owner = options.owner,
6605
- renderer = options.renderer,
6606
6835
  tagName = options.tagName;
6607
6836
  var vm = {
6608
6837
  elm: elm,
@@ -6616,7 +6845,6 @@ var LWC = (function (exports) {
6616
6845
  tagName: tagName,
6617
6846
  mode: mode,
6618
6847
  owner: owner,
6619
- renderer: renderer,
6620
6848
  children: EmptyArray,
6621
6849
  aChildren: EmptyArray,
6622
6850
  velements: EmptyArray,
@@ -6670,13 +6898,10 @@ var LWC = (function (exports) {
6670
6898
  }
6671
6899
 
6672
6900
  function computeShadowMode(vm) {
6673
- var def = vm.def,
6674
- renderer = vm.renderer;
6675
- var isNativeShadowDefined = renderer.isNativeShadowDefined,
6676
- isSyntheticShadowDefined = renderer.isSyntheticShadowDefined;
6901
+ var def = vm.def;
6677
6902
  var shadowMode;
6678
6903
 
6679
- if (isSyntheticShadowDefined) {
6904
+ if (isSyntheticShadowDefined$1) {
6680
6905
  if (def.renderMode === 0
6681
6906
  /* Light */
6682
6907
  ) {
@@ -6685,7 +6910,7 @@ var LWC = (function (exports) {
6685
6910
  shadowMode = 0
6686
6911
  /* Native */
6687
6912
  ;
6688
- } else if (isNativeShadowDefined) {
6913
+ } else if (isNativeShadowDefined$1) {
6689
6914
  if (def.shadowSupportMode === "any"
6690
6915
  /* Any */
6691
6916
  ) {
@@ -6822,10 +7047,9 @@ var LWC = (function (exports) {
6822
7047
  }
6823
7048
 
6824
7049
  function runRenderedCallback(vm) {
6825
- var renderer = vm.renderer,
6826
- renderedCallback = vm.def.renderedCallback;
7050
+ var renderedCallback = vm.def.renderedCallback;
6827
7051
 
6828
- if (isTrue(renderer.ssr)) {
7052
+ if (isTrue(ssr$1)) {
6829
7053
  return;
6830
7054
  }
6831
7055
 
@@ -7034,15 +7258,14 @@ var LWC = (function (exports) {
7034
7258
 
7035
7259
 
7036
7260
  function resetComponentRoot(vm) {
7037
- var children = vm.children,
7038
- renderer = vm.renderer;
7261
+ var children = vm.children;
7039
7262
  var rootNode = getRenderRoot(vm);
7040
7263
 
7041
7264
  for (var _i25 = 0, _len9 = children.length; _i25 < _len9; _i25++) {
7042
7265
  var child = children[_i25];
7043
7266
 
7044
7267
  if (!isNull(child) && !isUndefined$1(child.elm)) {
7045
- renderer.remove(child.elm, rootNode);
7268
+ remove$1(child.elm, rootNode);
7046
7269
  }
7047
7270
  }
7048
7271
 
@@ -7052,7 +7275,7 @@ var LWC = (function (exports) {
7052
7275
  }
7053
7276
 
7054
7277
  function scheduleRehydration(vm) {
7055
- if (isTrue(vm.renderer.ssr) || isTrue(vm.isScheduled)) {
7278
+ if (isTrue(ssr$1) || isTrue(vm.isScheduled)) {
7056
7279
  return;
7057
7280
  }
7058
7281
 
@@ -7235,7 +7458,7 @@ var LWC = (function (exports) {
7235
7458
  return _this5;
7236
7459
  }
7237
7460
 
7238
- return WireContextRegistrationEvent;
7461
+ return _createClass(WireContextRegistrationEvent);
7239
7462
  }( /*#__PURE__*/_wrapNativeSuper(CustomEvent));
7240
7463
 
7241
7464
  function createFieldDataCallback(vm, name) {
@@ -7302,7 +7525,6 @@ var LWC = (function (exports) {
7302
7525
  }
7303
7526
 
7304
7527
  var elm = vm.elm,
7305
- renderer = vm.renderer,
7306
7528
  _vm$context = vm.context,
7307
7529
  wiredConnecting = _vm$context.wiredConnecting,
7308
7530
  wiredDisconnecting = _vm$context.wiredDisconnecting; // waiting for the component to be connected to formally request the context via the token
@@ -7325,7 +7547,7 @@ var LWC = (function (exports) {
7325
7547
  ArrayPush$1.call(wiredDisconnecting, disconnectCallback);
7326
7548
  }
7327
7549
  });
7328
- renderer.dispatchEvent(elm, contextRegistrationEvent);
7550
+ dispatchEvent$1(elm, contextRegistrationEvent);
7329
7551
  });
7330
7552
  }
7331
7553
 
@@ -7579,7 +7801,7 @@ var LWC = (function (exports) {
7579
7801
  hooksAreSet = true;
7580
7802
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
7581
7803
  }
7582
- /* version: 2.5.10 */
7804
+ /* version: 2.6.3 */
7583
7805
 
7584
7806
  /*
7585
7807
  * Copyright (c) 2018, salesforce.com, inc.
@@ -7609,7 +7831,9 @@ var LWC = (function (exports) {
7609
7831
  var styleElements = create(null);
7610
7832
  var styleSheets = create(null);
7611
7833
  var nodesToStyleSheets = new WeakMap();
7612
- var getCustomElement, defineCustomElement, HTMLElementConstructor;
7834
+ var getCustomElement;
7835
+ var defineCustomElement;
7836
+ var HTMLElementConstructor;
7613
7837
 
7614
7838
  function isCustomElementRegistryAvailable() {
7615
7839
  if (typeof customElements === 'undefined') {
@@ -7636,7 +7860,7 @@ var LWC = (function (exports) {
7636
7860
  return _super7.apply(this, arguments);
7637
7861
  }
7638
7862
 
7639
- return clazz;
7863
+ return _createClass(clazz);
7640
7864
  }(HTMLElementAlias);
7641
7865
 
7642
7866
  customElements.define('lwc-test-' + Math.floor(Math.random() * 1000000), clazz);
@@ -7734,152 +7958,231 @@ var LWC = (function (exports) {
7734
7958
  HTMLElementConstructor.prototype = HTMLElement.prototype;
7735
7959
  }
7736
7960
 
7737
- var _isHydrating = false;
7961
+ var hydrating = false;
7738
7962
 
7739
- function setIsHydrating(v) {
7740
- _isHydrating = v;
7963
+ function setIsHydrating(value) {
7964
+ hydrating = value;
7741
7965
  }
7742
7966
 
7743
- var renderer = {
7744
- ssr: false,
7745
- isHydrating: function isHydrating() {
7746
- return _isHydrating;
7747
- },
7748
- isNativeShadowDefined: _globalThis[KEY__IS_NATIVE_SHADOW_ROOT_DEFINED],
7749
- isSyntheticShadowDefined: hasOwnProperty$1.call(Element.prototype, KEY__SHADOW_TOKEN),
7750
- createElement: function createElement(tagName, namespace) {
7751
- return isUndefined$1(namespace) ? document.createElement(tagName) : document.createElementNS(namespace, tagName);
7752
- },
7753
- createText: function createText(content) {
7754
- return document.createTextNode(content);
7755
- },
7756
- createComment: function createComment(content) {
7757
- return document.createComment(content);
7758
- },
7759
- insert: function insert(node, parent, anchor) {
7760
- parent.insertBefore(node, anchor);
7761
- },
7762
- remove: function remove(node, parent) {
7763
- parent.removeChild(node);
7764
- },
7765
- nextSibling: function nextSibling(node) {
7766
- return node.nextSibling;
7767
- },
7768
- attachShadow: function attachShadow(element, options) {
7769
- if (_isHydrating) {
7770
- return element.shadowRoot;
7771
- }
7967
+ var ssr = false;
7772
7968
 
7773
- return element.attachShadow(options);
7774
- },
7775
- setText: function setText(node, content) {
7776
- node.nodeValue = content;
7777
- },
7778
- getProperty: function getProperty(node, key) {
7779
- return node[key];
7780
- },
7781
- setProperty: function setProperty(node, key, value) {
7782
- if (process.env.NODE_ENV !== 'production') {
7783
- if (node instanceof Element && !(key in node)) {
7784
- // TODO [#1297]: Move this validation to the compiler
7785
- assert.fail("Unknown public property \"".concat(key, "\" of element <").concat(node.tagName, ">. This is likely a typo on the corresponding attribute \"").concat(htmlPropertyToAttribute(key), "\"."));
7786
- }
7787
- }
7969
+ function isHydrating() {
7970
+ return hydrating;
7971
+ }
7788
7972
 
7789
- node[key] = value;
7790
- },
7791
- getAttribute: function getAttribute(element, name, namespace) {
7792
- return isUndefined$1(namespace) ? element.getAttribute(name) : element.getAttributeNS(namespace, name);
7793
- },
7794
- setAttribute: function setAttribute(element, name, value, namespace) {
7795
- return isUndefined$1(namespace) ? element.setAttribute(name, value) : element.setAttributeNS(namespace, name, value);
7796
- },
7797
- removeAttribute: function removeAttribute(element, name, namespace) {
7798
- if (isUndefined$1(namespace)) {
7799
- element.removeAttribute(name);
7800
- } else {
7801
- element.removeAttributeNS(namespace, name);
7802
- }
7803
- },
7804
- addEventListener: function addEventListener(target, type, callback, options) {
7805
- target.addEventListener(type, callback, options);
7806
- },
7807
- removeEventListener: function removeEventListener(target, type, callback, options) {
7808
- target.removeEventListener(type, callback, options);
7809
- },
7810
- dispatchEvent: function dispatchEvent(target, event) {
7811
- return target.dispatchEvent(event);
7812
- },
7813
- getClassList: function getClassList(element) {
7814
- return element.classList;
7815
- },
7816
- setCSSStyleProperty: function setCSSStyleProperty(element, name, value, important) {
7817
- // TODO [#0]: How to avoid this type casting? Shall we use a different type interface to
7818
- // represent elements in the engine?
7819
- element.style.setProperty(name, value, important ? 'important' : '');
7820
- },
7821
- getBoundingClientRect: function getBoundingClientRect(element) {
7822
- return element.getBoundingClientRect();
7823
- },
7824
- querySelector: function querySelector(element, selectors) {
7825
- return element.querySelector(selectors);
7826
- },
7827
- querySelectorAll: function querySelectorAll(element, selectors) {
7828
- return element.querySelectorAll(selectors);
7829
- },
7830
- getElementsByTagName: function getElementsByTagName(element, tagNameOrWildCard) {
7831
- return element.getElementsByTagName(tagNameOrWildCard);
7832
- },
7833
- getElementsByClassName: function getElementsByClassName(element, names) {
7834
- return element.getElementsByClassName(names);
7835
- },
7836
- getChildren: function getChildren(element) {
7837
- return element.children;
7838
- },
7839
- getChildNodes: function getChildNodes(element) {
7840
- return element.childNodes;
7841
- },
7842
- getFirstChild: function getFirstChild(element) {
7843
- return element.firstChild;
7844
- },
7845
- getFirstElementChild: function getFirstElementChild(element) {
7846
- return element.firstElementChild;
7847
- },
7848
- getLastChild: function getLastChild(element) {
7849
- return element.lastChild;
7850
- },
7851
- getLastElementChild: function getLastElementChild(element) {
7852
- return element.lastElementChild;
7853
- },
7854
- isConnected: function isConnected(node) {
7855
- return node.isConnected;
7856
- },
7857
- insertGlobalStylesheet: function insertGlobalStylesheet(content) {
7858
- if (!isUndefined$1(globalStylesheets[content])) {
7859
- return;
7860
- }
7973
+ var isNativeShadowDefined = _globalThis[KEY__IS_NATIVE_SHADOW_ROOT_DEFINED];
7974
+ var isSyntheticShadowDefined = hasOwnProperty$1.call(Element.prototype, KEY__SHADOW_TOKEN);
7861
7975
 
7862
- globalStylesheets[content] = true;
7863
- var elm = document.createElement('style');
7864
- elm.type = 'text/css';
7865
- elm.textContent = content;
7866
- globalStylesheetsParentElement.appendChild(elm);
7867
- },
7868
- insertStylesheet: function insertStylesheet(content, target) {
7869
- if (supportsConstructableStyleSheets) {
7870
- insertConstructableStyleSheet(content, target);
7871
- } else {
7872
- // Fall back to <style> element
7873
- insertStyleElement(content, target);
7976
+ function createElement$1(tagName, namespace) {
7977
+ return isUndefined$1(namespace) ? document.createElement(tagName) : document.createElementNS(namespace, tagName);
7978
+ }
7979
+
7980
+ function createText(content) {
7981
+ return document.createTextNode(content);
7982
+ }
7983
+
7984
+ function createComment(content) {
7985
+ return document.createComment(content);
7986
+ }
7987
+
7988
+ function insert(node, parent, anchor) {
7989
+ parent.insertBefore(node, anchor);
7990
+ }
7991
+
7992
+ function remove(node, parent) {
7993
+ parent.removeChild(node);
7994
+ }
7995
+
7996
+ function nextSibling(node) {
7997
+ return node.nextSibling;
7998
+ }
7999
+
8000
+ function attachShadow(element, options) {
8001
+ if (hydrating) {
8002
+ return element.shadowRoot;
8003
+ }
8004
+
8005
+ return element.attachShadow(options);
8006
+ }
8007
+
8008
+ function setText(node, content) {
8009
+ node.nodeValue = content;
8010
+ }
8011
+
8012
+ function getProperty(node, key) {
8013
+ return node[key];
8014
+ }
8015
+
8016
+ function setProperty(node, key, value) {
8017
+ if (process.env.NODE_ENV !== 'production') {
8018
+ if (node instanceof Element && !(key in node)) {
8019
+ // TODO [#1297]: Move this validation to the compiler
8020
+ assert.fail("Unknown public property \"".concat(key, "\" of element <").concat(node.tagName, ">. This is likely a typo on the corresponding attribute \"").concat(htmlPropertyToAttribute(key), "\"."));
7874
8021
  }
7875
- },
7876
- assertInstanceOfHTMLElement: function assertInstanceOfHTMLElement(elm, msg) {
7877
- assert.invariant(elm instanceof HTMLElement, msg);
7878
- },
7879
- defineCustomElement: defineCustomElement,
7880
- getCustomElement: getCustomElement,
7881
- HTMLElement: HTMLElementConstructor
7882
- };
8022
+ }
8023
+
8024
+ node[key] = value;
8025
+ }
8026
+
8027
+ function getAttribute(element, name, namespace) {
8028
+ return isUndefined$1(namespace) ? element.getAttribute(name) : element.getAttributeNS(namespace, name);
8029
+ }
8030
+
8031
+ function setAttribute(element, name, value, namespace) {
8032
+ return isUndefined$1(namespace) ? element.setAttribute(name, value) : element.setAttributeNS(namespace, name, value);
8033
+ }
8034
+
8035
+ function removeAttribute(element, name, namespace) {
8036
+ if (isUndefined$1(namespace)) {
8037
+ element.removeAttribute(name);
8038
+ } else {
8039
+ element.removeAttributeNS(namespace, name);
8040
+ }
8041
+ }
8042
+
8043
+ function addEventListener(target, type, callback, options) {
8044
+ target.addEventListener(type, callback, options);
8045
+ }
8046
+
8047
+ function removeEventListener(target, type, callback, options) {
8048
+ target.removeEventListener(type, callback, options);
8049
+ }
8050
+
8051
+ function dispatchEvent(target, event) {
8052
+ return target.dispatchEvent(event);
8053
+ }
8054
+
8055
+ function getClassList(element) {
8056
+ return element.classList;
8057
+ }
8058
+
8059
+ function setCSSStyleProperty(element, name, value, important) {
8060
+ // TODO [#0]: How to avoid this type casting? Shall we use a different type interface to
8061
+ // represent elements in the engine?
8062
+ element.style.setProperty(name, value, important ? 'important' : '');
8063
+ }
8064
+
8065
+ function getBoundingClientRect(element) {
8066
+ return element.getBoundingClientRect();
8067
+ }
8068
+
8069
+ function querySelector(element, selectors) {
8070
+ return element.querySelector(selectors);
8071
+ }
8072
+
8073
+ function querySelectorAll(element, selectors) {
8074
+ return element.querySelectorAll(selectors);
8075
+ }
8076
+
8077
+ function getElementsByTagName(element, tagNameOrWildCard) {
8078
+ return element.getElementsByTagName(tagNameOrWildCard);
8079
+ }
8080
+
8081
+ function getElementsByClassName(element, names) {
8082
+ return element.getElementsByClassName(names);
8083
+ }
8084
+
8085
+ function getChildren(element) {
8086
+ return element.children;
8087
+ }
8088
+
8089
+ function getChildNodes(element) {
8090
+ return element.childNodes;
8091
+ }
8092
+
8093
+ function getFirstChild(element) {
8094
+ return element.firstChild;
8095
+ }
8096
+
8097
+ function getFirstElementChild(element) {
8098
+ return element.firstElementChild;
8099
+ }
8100
+
8101
+ function getLastChild(element) {
8102
+ return element.lastChild;
8103
+ }
8104
+
8105
+ function getLastElementChild(element) {
8106
+ return element.lastElementChild;
8107
+ }
8108
+
8109
+ function isConnected(node) {
8110
+ return node.isConnected;
8111
+ }
8112
+
8113
+ function insertGlobalStylesheet(content) {
8114
+ if (!isUndefined$1(globalStylesheets[content])) {
8115
+ return;
8116
+ }
8117
+
8118
+ globalStylesheets[content] = true;
8119
+ var elm = document.createElement('style');
8120
+ elm.type = 'text/css';
8121
+ elm.textContent = content;
8122
+ globalStylesheetsParentElement.appendChild(elm);
8123
+ }
8124
+
8125
+ function insertStylesheet(content, target) {
8126
+ if (supportsConstructableStyleSheets) {
8127
+ insertConstructableStyleSheet(content, target);
8128
+ } else {
8129
+ // Fall back to <style> element
8130
+ insertStyleElement(content, target);
8131
+ }
8132
+ }
8133
+
8134
+ function assertInstanceOfHTMLElement(elm, msg) {
8135
+ assert.invariant(elm instanceof HTMLElement, msg);
8136
+ }
8137
+
8138
+ var HTMLElementExported = HTMLElementConstructor;
8139
+ /*
8140
+ * Copyright (c) 2020, salesforce.com, inc.
8141
+ * All rights reserved.
8142
+ * SPDX-License-Identifier: MIT
8143
+ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
8144
+ */
8145
+
8146
+ setAssertInstanceOfHTMLElement(assertInstanceOfHTMLElement);
8147
+ setAttachShadow(attachShadow);
8148
+ setCreateComment(createComment);
8149
+ setCreateElement(createElement$1);
8150
+ setCreateText(createText);
8151
+ setDefineCustomElement(defineCustomElement);
8152
+ setDispatchEvent(dispatchEvent);
8153
+ setGetAttribute(getAttribute);
8154
+ setGetBoundingClientRect(getBoundingClientRect);
8155
+ setGetChildNodes(getChildNodes);
8156
+ setGetChildren(getChildren);
8157
+ setGetClassList(getClassList);
8158
+ setGetCustomElement(getCustomElement);
8159
+ setGetElementsByClassName(getElementsByClassName);
8160
+ setGetElementsByTagName(getElementsByTagName);
8161
+ setGetFirstChild(getFirstChild);
8162
+ setGetFirstElementChild(getFirstElementChild);
8163
+ setGetLastChild(getLastChild);
8164
+ setGetLastElementChild(getLastElementChild);
8165
+ setGetProperty(getProperty);
8166
+ setHTMLElement(HTMLElementExported);
8167
+ setInsert(insert);
8168
+ setInsertGlobalStylesheet(insertGlobalStylesheet);
8169
+ setInsertStylesheet(insertStylesheet);
8170
+ setIsConnected(isConnected);
8171
+ setIsHydrating$1(isHydrating);
8172
+ setIsNativeShadowDefined(isNativeShadowDefined);
8173
+ setIsSyntheticShadowDefined(isSyntheticShadowDefined);
8174
+ setNextSibling(nextSibling);
8175
+ setQuerySelector(querySelector);
8176
+ setQuerySelectorAll(querySelectorAll);
8177
+ setRemove(remove);
8178
+ setRemoveAttribute(removeAttribute);
8179
+ setRemoveEventListener(removeEventListener);
8180
+ setSetAttribute(setAttribute);
8181
+ setSetCSSStyleProperty(setCSSStyleProperty);
8182
+ setSetProperty(setProperty);
8183
+ setSetText(setText);
8184
+ setSsr(ssr);
8185
+ setAddEventListener(addEventListener);
7883
8186
  /*
7884
8187
  * Copyright (c) 2018, salesforce.com, inc.
7885
8188
  * All rights reserved.
@@ -7961,7 +8264,7 @@ var LWC = (function (exports) {
7961
8264
  throw new TypeError("\"createElement\" function expects an \"is\" option with a valid component constructor.");
7962
8265
  }
7963
8266
 
7964
- var UpgradableConstructor = getUpgradableConstructor(sel, renderer);
8267
+ var UpgradableConstructor = getUpgradableConstructor(sel);
7965
8268
  var wasComponentUpgraded = false; // the custom element from the registry is expecting an upgrade callback
7966
8269
 
7967
8270
  /**
@@ -7976,8 +8279,7 @@ var LWC = (function (exports) {
7976
8279
  createVM(elm, def, {
7977
8280
  tagName: sel,
7978
8281
  mode: options.mode !== 'closed' ? 'open' : 'closed',
7979
- owner: null,
7980
- renderer: renderer
8282
+ owner: null
7981
8283
  });
7982
8284
  ConnectingSlot.set(elm, connectRootElement);
7983
8285
  DisconnectingSlot.set(elm, disconnectRootElement);
@@ -8002,6 +8304,10 @@ var LWC = (function (exports) {
8002
8304
  function hydrateComponent(element, Ctor) {
8003
8305
  var props = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
8004
8306
 
8307
+ if (!(element instanceof Element)) {
8308
+ throw new TypeError("\"hydrateComponent\" expects a valid DOM element as the first parameter but instead received ".concat(element, "."));
8309
+ }
8310
+
8005
8311
  if (!isFunction$1(Ctor)) {
8006
8312
  throw new TypeError("\"hydrateComponent\" expects a valid component constructor as the second parameter but instead received ".concat(Ctor, "."));
8007
8313
  }
@@ -8019,7 +8325,6 @@ var LWC = (function (exports) {
8019
8325
  createVM(element, def, {
8020
8326
  mode: 'open',
8021
8327
  owner: null,
8022
- renderer: renderer,
8023
8328
  tagName: element.tagName.toLowerCase()
8024
8329
  });
8025
8330
 
@@ -8106,8 +8411,7 @@ var LWC = (function (exports) {
8106
8411
  createVM(_assertThisInitialized(_this6), def, {
8107
8412
  mode: 'open',
8108
8413
  owner: null,
8109
- tagName: _this6.tagName,
8110
- renderer: renderer
8414
+ tagName: _this6.tagName
8111
8415
  });
8112
8416
  return _this6;
8113
8417
  }
@@ -8180,7 +8484,7 @@ var LWC = (function (exports) {
8180
8484
  return false;
8181
8485
  }
8182
8486
 
8183
- if (renderer.isSyntheticShadowDefined) {
8487
+ if (isSyntheticShadowDefined) {
8184
8488
  // TODO [#1252]: old behavior that is still used by some pieces of the platform,
8185
8489
  // specifically, nodes inserted manually on places where `lwc:dom="manual"` directive is not
8186
8490
  // used, will be considered global elements.
@@ -8232,7 +8536,7 @@ var LWC = (function (exports) {
8232
8536
  });
8233
8537
  freeze(LightningElement);
8234
8538
  seal(LightningElement.prototype);
8235
- /* version: 2.5.10 */
8539
+ /* version: 2.6.3 */
8236
8540
 
8237
8541
  exports.LightningElement = LightningElement;
8238
8542
  exports.__unstable__ProfilerControl = profilerControl;