lwc 2.5.9 → 2.6.2

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 +52 -79
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +52 -79
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +52 -79
  5. package/dist/engine-dom/iife/es5/engine-dom.js +64 -91
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -2
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +64 -91
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +52 -79
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +52 -79
  11. package/dist/engine-dom/umd/es5/engine-dom.js +64 -91
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +64 -91
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +63 -87
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -2
  16. package/dist/engine-server/esm/es2017/engine-server.js +63 -87
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +23 -130
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +23 -130
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  20. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +23 -130
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +30 -127
  22. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  23. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +30 -127
  24. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +23 -130
  25. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  26. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +23 -130
  27. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +30 -127
  28. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  29. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +30 -127
  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
@@ -7,9 +7,13 @@
7
7
 
8
8
  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; }
9
9
 
10
+ 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); } }
11
+
12
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
13
+
10
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
15
 
12
- 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); }
16
+ 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); }
13
17
  /*
14
18
  * Copyright (c) 2018, salesforce.com, inc.
15
19
  * All rights reserved.
@@ -119,7 +123,7 @@
119
123
  var KEY__SHADOW_TOKEN = '$shadowToken$';
120
124
  var KEY__SHADOW_TOKEN_PRIVATE = '$$ShadowTokenKey$$';
121
125
  var KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
122
- /** version: 2.5.9 */
126
+ /** version: 2.6.2 */
123
127
 
124
128
  /*
125
129
  * Copyright (c) 2018, salesforce.com, inc.
@@ -350,9 +354,9 @@
350
354
  function apply$4() {
351
355
  // IE11 does not have this element definition
352
356
  // we don't care much about the construction phase, just the prototype
353
- var HTMLSlotElement = function HTMLSlotElement() {
357
+ var HTMLSlotElement = /*#__PURE__*/_createClass(function HTMLSlotElement() {
354
358
  _classCallCheck(this, HTMLSlotElement);
355
- }; // prototype inheritance dance
359
+ }); // prototype inheritance dance
356
360
 
357
361
 
358
362
  setPrototypeOf(HTMLSlotElement, HTMLElement.constructor);
@@ -438,20 +442,6 @@
438
442
 
439
443
  return cloned;
440
444
  }
441
- /**
442
- * Copyright (C) 2018 salesforce.com, inc.
443
- */
444
-
445
-
446
- if (!_globalThis.lwcRuntimeFlags) {
447
- Object.defineProperty(_globalThis, 'lwcRuntimeFlags', {
448
- value: create(null)
449
- });
450
- }
451
-
452
- var runtimeFlags = _globalThis.lwcRuntimeFlags;
453
- /** version: 2.5.9 */
454
-
455
445
  /*
456
446
  * Copyright (c) 2018, salesforce.com, inc.
457
447
  * All rights reserved.
@@ -459,6 +449,7 @@
459
449
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
460
450
  */
461
451
 
452
+
462
453
  var eventTargetPrototype = typeof EventTarget !== 'undefined' ? EventTarget.prototype : _Node.prototype;
463
454
  var addEventListener = eventTargetPrototype.addEventListener,
464
455
  dispatchEvent = eventTargetPrototype.dispatchEvent,
@@ -507,17 +498,9 @@
507
498
  // This function is invoked from an event listener and currentTarget is always defined.
508
499
  var currentTarget = eventCurrentTargetGetter.call(event);
509
500
 
510
- var composed = event.composed;
511
- var shouldInvoke;
512
-
513
- if (runtimeFlags.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE) {
514
- shouldInvoke = !(eventToShadowRootMap.has(event) && isFalse(composed));
515
- } else {
516
- var actualTarget = getActualTarget(event);
517
- shouldInvoke = shouldInvokeListener(event, actualTarget, currentTarget);
518
- }
501
+ var actualTarget = getActualTarget(event);
519
502
 
520
- if (!shouldInvoke) {
503
+ if (!shouldInvokeListener(event, actualTarget, currentTarget)) {
521
504
  return;
522
505
  }
523
506
 
@@ -538,25 +521,6 @@
538
521
 
539
522
 
540
523
  var eventToContextMap = new WeakMap();
541
-
542
- function isChildNode(root, node) {
543
- return !!(compareDocumentPosition.call(root, node) & DOCUMENT_POSITION_CONTAINED_BY);
544
- }
545
-
546
- var GET_ROOT_NODE_CONFIG_FALSE = {
547
- composed: false
548
- };
549
-
550
- function getRootNodeHost(node, options) {
551
- var rootNode = node.getRootNode(options);
552
-
553
- if (isSyntheticShadowRoot(rootNode)) {
554
- rootNode = getHost(rootNode);
555
- }
556
-
557
- return rootNode;
558
- }
559
-
560
524
  var customElementToWrappedListeners = new WeakMap();
561
525
 
562
526
  function getEventMap(elm) {
@@ -601,16 +565,9 @@
601
565
  currentTarget = getShadowRoot(currentTarget);
602
566
  }
603
567
 
604
- var shouldInvoke;
568
+ var actualTarget = getActualTarget(event);
605
569
 
606
- if (runtimeFlags.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE) {
607
- shouldInvoke = shouldInvokeShadowRootListener(event);
608
- } else {
609
- var actualTarget = getActualTarget(event);
610
- shouldInvoke = shouldInvokeListener(event, actualTarget, currentTarget);
611
- }
612
-
613
- if (shouldInvoke) {
570
+ if (shouldInvokeListener(event, actualTarget, currentTarget)) {
614
571
  listener.call(currentTarget, event);
615
572
  }
616
573
  };
@@ -637,16 +594,9 @@
637
594
  customElementWrappedListener = function customElementWrappedListener(event) {
638
595
  // currentTarget is always defined inside an event listener
639
596
  var currentTarget = eventCurrentTargetGetter.call(event);
640
- var shouldInvoke;
597
+ var actualTarget = getActualTarget(event);
641
598
 
642
- if (runtimeFlags.ENABLE_NON_COMPOSED_EVENTS_LEAKAGE) {
643
- shouldInvoke = shouldInvokeCustomElementListener(event);
644
- } else {
645
- var actualTarget = getActualTarget(event);
646
- shouldInvoke = shouldInvokeListener(event, actualTarget, currentTarget);
647
- }
648
-
649
- if (shouldInvoke) {
599
+ if (shouldInvokeListener(event, actualTarget, currentTarget)) {
650
600
  listener.call(currentTarget, event);
651
601
  }
652
602
  };
@@ -763,66 +713,6 @@
763
713
  }
764
714
  }
765
715
 
766
- function shouldInvokeCustomElementListener(event) {
767
- var composed = event.composed;
768
-
769
- if (isTrue(composed)) {
770
- // Listeners on host elements should always be invoked for {composed: true} events.
771
- return true;
772
- } // If this {composed: false} event was dispatched on any root.
773
-
774
-
775
- if (eventToShadowRootMap.has(event)) {
776
- return false;
777
- }
778
-
779
- var target = eventTargetGetter.call(event);
780
- var currentTarget = eventCurrentTargetGetter.call(event); // If this {composed: false} event was dispatched on the current target host.
781
-
782
- if (target === currentTarget) {
783
- return true;
784
- } // At this point the event must be {bubbles: true, composed: false} and was dispatched from a
785
- // shadow-excluding descendant node. In this case, we only invoke the listener if the target
786
- // host was assigned to a slot in the composed subtree of the current target host.
787
-
788
-
789
- var targetHost = getRootNodeHost(target, GET_ROOT_NODE_CONFIG_FALSE);
790
- var currentTargetHost = currentTarget;
791
- return isChildNode(targetHost, currentTargetHost);
792
- }
793
-
794
- function shouldInvokeShadowRootListener(event) {
795
- var composed = event.composed;
796
- var target = eventTargetGetter.call(event);
797
- var currentTarget = eventCurrentTargetGetter.call(event); // If the event was dispatched on the host or its root.
798
-
799
- if (target === currentTarget) {
800
- // Invoke the listener if the event was dispatched directly on the root.
801
- return eventToShadowRootMap.get(event) === getShadowRoot(target);
802
- } // At this point the event is {bubbles: true} and was dispatched from a shadow-including descendant node.
803
-
804
-
805
- if (isTrue(composed)) {
806
- // Invoke the listener if the event is {composed: true}.
807
- return true;
808
- } // At this point the event must be {bubbles: true, composed: false}.
809
-
810
-
811
- if (isTrue(eventToShadowRootMap.has(event))) {
812
- // Don't invoke the listener because the event was dispatched on a descendant root.
813
- return false;
814
- }
815
-
816
- var targetHost = getRootNodeHost(target, GET_ROOT_NODE_CONFIG_FALSE);
817
- var currentTargetHost = currentTarget;
818
- var isCurrentTargetSlotted = isChildNode(targetHost, currentTargetHost); // At this point the event must be {bubbles: true, composed: false} and was dispatched from a
819
- // shadow-excluding descendant node. In this case, we only invoke the listener if the target
820
- // host was assigned to a slot in the composed subtree of the current target host, or the
821
- // descendant node is in the shadow tree of the current root.
822
-
823
- return isCurrentTargetSlotted || targetHost === currentTargetHost;
824
- }
825
-
826
716
  function addCustomElementEventListener(type, listener, _options) {
827
717
 
828
718
 
@@ -1515,6 +1405,20 @@
1515
1405
  }
1516
1406
  }
1517
1407
  }
1408
+ /**
1409
+ * Copyright (C) 2018 salesforce.com, inc.
1410
+ */
1411
+
1412
+
1413
+ if (!_globalThis.lwcRuntimeFlags) {
1414
+ Object.defineProperty(_globalThis, 'lwcRuntimeFlags', {
1415
+ value: create(null)
1416
+ });
1417
+ }
1418
+
1419
+ var runtimeFlags = _globalThis.lwcRuntimeFlags;
1420
+ /** version: 2.6.2 */
1421
+
1518
1422
  /*
1519
1423
  * Copyright (c) 2018, salesforce.com, inc.
1520
1424
  * All rights reserved.
@@ -1529,7 +1433,6 @@
1529
1433
  * because we don't want to patch the children getters for those elements.
1530
1434
  */
1531
1435
 
1532
-
1533
1436
  function hasMountedChildren(node) {
1534
1437
  return isSyntheticSlotElement(node) || isSyntheticShadowHost(node);
1535
1438
  }
@@ -5437,6 +5340,6 @@
5437
5340
  },
5438
5341
  configurable: true
5439
5342
  });
5440
- /** version: 2.5.9 */
5343
+ /** version: 2.6.2 */
5441
5344
 
5442
5345
  }));
@@ -8,7 +8,7 @@
8
8
  function isUndefined(obj) {
9
9
  return obj === undefined;
10
10
  }
11
- /** version: 2.5.9 */
11
+ /** version: 2.6.2 */
12
12
 
13
13
  /*
14
14
  * Copyright (c) 2018, salesforce.com, inc.
@@ -227,6 +227,6 @@ class LegacyWireAdapterBridge {
227
227
  }
228
228
 
229
229
  }
230
- /** version: 2.5.9 */
230
+ /** version: 2.6.2 */
231
231
 
232
232
  export { ValueChangedEvent, register, registerWireService };
@@ -11,7 +11,7 @@ var WireService = (function (exports) {
11
11
  function isUndefined(obj) {
12
12
  return obj === undefined;
13
13
  }
14
- /** version: 2.5.9 */
14
+ /** version: 2.6.2 */
15
15
 
16
16
  /*
17
17
  * Copyright (c) 2018, salesforce.com, inc.
@@ -230,7 +230,7 @@ var WireService = (function (exports) {
230
230
  }
231
231
 
232
232
  }
233
- /** version: 2.5.9 */
233
+ /** version: 2.6.2 */
234
234
 
235
235
  exports.ValueChangedEvent = ValueChangedEvent;
236
236
  exports.register = register;
@@ -11,7 +11,7 @@ var WireService = (function (exports) {
11
11
  function isUndefined(obj) {
12
12
  return obj === undefined;
13
13
  }
14
- /** version: 2.5.9 */
14
+ /** version: 2.6.2 */
15
15
 
16
16
  /*
17
17
  * Copyright (c) 2018, salesforce.com, inc.
@@ -230,7 +230,7 @@ var WireService = (function (exports) {
230
230
  }
231
231
 
232
232
  }
233
- /** version: 2.5.9 */
233
+ /** version: 2.6.2 */
234
234
 
235
235
  exports.ValueChangedEvent = ValueChangedEvent;
236
236
  exports.register = register;
@@ -1,13 +1,9 @@
1
1
  var WireService = (function (exports) {
2
2
  'use strict';
3
3
 
4
- 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); }
4
+ 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); }
5
5
 
6
- 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); } }
7
-
8
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9
-
10
- 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); }
6
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
11
7
 
12
8
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
13
9
 
@@ -21,6 +17,10 @@ var WireService = (function (exports) {
21
17
 
22
18
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
23
19
 
20
+ 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); } }
21
+
22
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
+
24
24
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
25
 
26
26
  /**
@@ -33,7 +33,7 @@ var WireService = (function (exports) {
33
33
  function isUndefined(obj) {
34
34
  return obj === undefined;
35
35
  }
36
- /** version: 2.5.9 */
36
+ /** version: 2.6.2 */
37
37
 
38
38
  /*
39
39
  * Copyright (c) 2018, salesforce.com, inc.
@@ -48,12 +48,12 @@ var WireService = (function (exports) {
48
48
  * Event fired by wire adapters to emit a new value.
49
49
  */
50
50
 
51
- var ValueChangedEvent = function ValueChangedEvent(value) {
51
+ var ValueChangedEvent = /*#__PURE__*/_createClass(function ValueChangedEvent(value) {
52
52
  _classCallCheck(this, ValueChangedEvent);
53
53
 
54
54
  this.type = ValueChangedEventType;
55
55
  this.value = value;
56
- };
56
+ });
57
57
  /*
58
58
  * Copyright (c) 2018, salesforce.com, inc.
59
59
  * All rights reserved.
@@ -101,7 +101,7 @@ var WireService = (function (exports) {
101
101
  return _this;
102
102
  }
103
103
 
104
- return AdapterClass;
104
+ return _createClass(AdapterClass);
105
105
  }(LegacyWireAdapterBridge);
106
106
 
107
107
  freeze(AdapterClass);
@@ -280,7 +280,7 @@ var WireService = (function (exports) {
280
280
 
281
281
  return LegacyWireAdapterBridge;
282
282
  }();
283
- /** version: 2.5.9 */
283
+ /** version: 2.6.2 */
284
284
 
285
285
  exports.ValueChangedEvent = ValueChangedEvent;
286
286
  exports.register = register;
@@ -1 +1 @@
1
- var WireService=function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function i(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e){return void 0===e}var f=function e(t){a(this,e),this.type="ValueChangedEvent",this.value=t},s=Object.freeze,l=Object.defineProperty,p=Object.isExtensible;var y=Array.prototype,d=y.forEach,h=y.splice,v=y.indexOf,b="connect",g="disconnect",m="config";function w(e,t){var n=v.call(e,t);n>-1&&h.call(e,n,1)}var E=function(){function e(t){var n=this;a(this,e),this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=t,this.wiredElementHost=t.$$DeprecatedWiredElementHostKey$$,this.dynamicParamsNames=t.$$DeprecatedWiredParamsMetaKey$$,this.eventTarget={addEventListener:function(e,t){switch(e){case b:n.connecting.push(t);break;case g:n.disconnecting.push(t);break;case m:n.configuring.push(t),void 0!==n.currentConfig&&t.call(void 0,n.currentConfig);break;default:throw new Error("Invalid event type ".concat(e,"."))}},removeEventListener:function(e,t){switch(e){case b:w(n.connecting,t);break;case g:w(n.disconnecting,t);break;case m:w(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof f)){if("wirecontextevent"===e.type)return n.wiredElementHost.dispatchEvent(e);throw new Error("Invalid event type ".concat(e.type,"."))}var t=e.value;return n.callback(t),!1}}}var t,r,o;return t=e,(r=[{key:"update",value:function(e){var t,n;(!this.isFirstUpdate||(this.isFirstUpdate=!1,function(e){return 0===Object.keys(e).length}(e)||function(e,t){return 0===t.length||t.some((function(t){return!u(e[t])}))}(e,this.dynamicParamsNames)))&&(u(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,d.call(this.configuring,(function(t){t.call(void 0,e)})))}},{key:"connect",value:function(){d.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){d.call(this.disconnecting,(function(e){return e.call(void 0)}))}}])&&n(t.prototype,r),o&&n(t,o),e}();return e.ValueChangedEvent=f,e.register=function(e,t){if(null==e||!p(e))throw new TypeError("adapter id must be extensible");if("function"!=typeof t)throw new TypeError("adapter factory must be a callable");if("adapter"in e)throw new TypeError("adapter id is already associated to an adapter factory");var n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(i,e);var n=o(i);function i(e){var r;return a(this,i),r=n.call(this,e),t(r.eventTarget),r}return i}(E);s(n),s(n.prototype),l(e,"adapter",{writable:!1,configurable:!1,value:n})},e.registerWireService=function(){},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
1
+ var WireService=function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}function r(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=i(e);if(t){var c=i(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return o(this,n)}}function o(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e){return void 0===e}var s=a((function e(t){u(this,e),this.type="ValueChangedEvent",this.value=t})),l=Object.freeze,p=Object.defineProperty,y=Object.isExtensible;var d=Array.prototype,h=d.forEach,v=d.splice,b=d.indexOf,g="connect",m="disconnect",w="config";function E(e,t){var n=b.call(e,t);n>-1&&v.call(e,n,1)}var O=function(){function e(t){var n=this;u(this,e),this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=t,this.wiredElementHost=t.$$DeprecatedWiredElementHostKey$$,this.dynamicParamsNames=t.$$DeprecatedWiredParamsMetaKey$$,this.eventTarget={addEventListener:function(e,t){switch(e){case g:n.connecting.push(t);break;case m:n.disconnecting.push(t);break;case w:n.configuring.push(t),void 0!==n.currentConfig&&t.call(void 0,n.currentConfig);break;default:throw new Error("Invalid event type ".concat(e,"."))}},removeEventListener:function(e,t){switch(e){case g:E(n.connecting,t);break;case m:E(n.disconnecting,t);break;case w:E(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof s)){if("wirecontextevent"===e.type)return n.wiredElementHost.dispatchEvent(e);throw new Error("Invalid event type ".concat(e.type,"."))}var t=e.value;return n.callback(t),!1}}}return a(e,[{key:"update",value:function(e){var t,n;(!this.isFirstUpdate||(this.isFirstUpdate=!1,function(e){return 0===Object.keys(e).length}(e)||function(e,t){return 0===t.length||t.some((function(t){return!f(e[t])}))}(e,this.dynamicParamsNames)))&&((f(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,h.call(this.configuring,(function(t){t.call(void 0,e)}))))}},{key:"connect",value:function(){h.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){h.call(this.disconnecting,(function(e){return e.call(void 0)}))}}]),e}();return e.ValueChangedEvent=s,e.register=function(e,t){if(null==e||!y(e))throw new TypeError("adapter id must be extensible");if("function"!=typeof t)throw new TypeError("adapter factory must be a callable");if("adapter"in e)throw new TypeError("adapter id is already associated to an adapter factory");var o=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&n(e,t)}(i,e);var o=r(i);function i(e){var n;return u(this,i),n=o.call(this,e),t(n.eventTarget),n}return a(i)}(O);l(o),l(o.prototype),p(e,"adapter",{writable:!1,configurable:!1,value:o})},e.registerWireService=function(){},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
@@ -1,13 +1,9 @@
1
1
  var WireService = (function (exports) {
2
2
  'use strict';
3
3
 
4
- 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); }
4
+ 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); }
5
5
 
6
- 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); } }
7
-
8
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9
-
10
- 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); }
6
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
11
7
 
12
8
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
13
9
 
@@ -21,6 +17,10 @@ var WireService = (function (exports) {
21
17
 
22
18
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
23
19
 
20
+ 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); } }
21
+
22
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
+
24
24
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
25
 
26
26
  /**
@@ -33,7 +33,7 @@ var WireService = (function (exports) {
33
33
  function isUndefined(obj) {
34
34
  return obj === undefined;
35
35
  }
36
- /** version: 2.5.9 */
36
+ /** version: 2.6.2 */
37
37
 
38
38
  /*
39
39
  * Copyright (c) 2018, salesforce.com, inc.
@@ -48,12 +48,12 @@ var WireService = (function (exports) {
48
48
  * Event fired by wire adapters to emit a new value.
49
49
  */
50
50
 
51
- var ValueChangedEvent = function ValueChangedEvent(value) {
51
+ var ValueChangedEvent = /*#__PURE__*/_createClass(function ValueChangedEvent(value) {
52
52
  _classCallCheck(this, ValueChangedEvent);
53
53
 
54
54
  this.type = ValueChangedEventType;
55
55
  this.value = value;
56
- };
56
+ });
57
57
  /*
58
58
  * Copyright (c) 2018, salesforce.com, inc.
59
59
  * All rights reserved.
@@ -101,7 +101,7 @@ var WireService = (function (exports) {
101
101
  return _this;
102
102
  }
103
103
 
104
- return AdapterClass;
104
+ return _createClass(AdapterClass);
105
105
  }(LegacyWireAdapterBridge);
106
106
 
107
107
  freeze(AdapterClass);
@@ -280,7 +280,7 @@ var WireService = (function (exports) {
280
280
 
281
281
  return LegacyWireAdapterBridge;
282
282
  }();
283
- /** version: 2.5.9 */
283
+ /** version: 2.6.2 */
284
284
 
285
285
  exports.ValueChangedEvent = ValueChangedEvent;
286
286
  exports.register = register;
@@ -14,7 +14,7 @@
14
14
  function isUndefined(obj) {
15
15
  return obj === undefined;
16
16
  }
17
- /** version: 2.5.9 */
17
+ /** version: 2.6.2 */
18
18
 
19
19
  /*
20
20
  * Copyright (c) 2018, salesforce.com, inc.
@@ -233,7 +233,7 @@
233
233
  }
234
234
 
235
235
  }
236
- /** version: 2.5.9 */
236
+ /** version: 2.6.2 */
237
237
 
238
238
  exports.ValueChangedEvent = ValueChangedEvent;
239
239
  exports.register = register;
@@ -14,7 +14,7 @@
14
14
  function isUndefined(obj) {
15
15
  return obj === undefined;
16
16
  }
17
- /** version: 2.5.9 */
17
+ /** version: 2.6.2 */
18
18
 
19
19
  /*
20
20
  * Copyright (c) 2018, salesforce.com, inc.
@@ -233,7 +233,7 @@
233
233
  }
234
234
 
235
235
  }
236
- /** version: 2.5.9 */
236
+ /** version: 2.6.2 */
237
237
 
238
238
  exports.ValueChangedEvent = ValueChangedEvent;
239
239
  exports.register = register;
@@ -4,13 +4,9 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.WireService = {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
- 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); }
7
+ 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); }
8
8
 
9
- 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); } }
10
-
11
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12
-
13
- 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); }
9
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
14
10
 
15
11
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
16
12
 
@@ -24,6 +20,10 @@
24
20
 
25
21
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
26
22
 
23
+ 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); } }
24
+
25
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
26
+
27
27
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
28
28
 
29
29
  /**
@@ -36,7 +36,7 @@
36
36
  function isUndefined(obj) {
37
37
  return obj === undefined;
38
38
  }
39
- /** version: 2.5.9 */
39
+ /** version: 2.6.2 */
40
40
 
41
41
  /*
42
42
  * Copyright (c) 2018, salesforce.com, inc.
@@ -51,12 +51,12 @@
51
51
  * Event fired by wire adapters to emit a new value.
52
52
  */
53
53
 
54
- var ValueChangedEvent = function ValueChangedEvent(value) {
54
+ var ValueChangedEvent = /*#__PURE__*/_createClass(function ValueChangedEvent(value) {
55
55
  _classCallCheck(this, ValueChangedEvent);
56
56
 
57
57
  this.type = ValueChangedEventType;
58
58
  this.value = value;
59
- };
59
+ });
60
60
  /*
61
61
  * Copyright (c) 2018, salesforce.com, inc.
62
62
  * All rights reserved.
@@ -104,7 +104,7 @@
104
104
  return _this;
105
105
  }
106
106
 
107
- return AdapterClass;
107
+ return _createClass(AdapterClass);
108
108
  }(LegacyWireAdapterBridge);
109
109
 
110
110
  freeze(AdapterClass);
@@ -283,7 +283,7 @@
283
283
 
284
284
  return LegacyWireAdapterBridge;
285
285
  }();
286
- /** version: 2.5.9 */
286
+ /** version: 2.6.2 */
287
287
 
288
288
  exports.ValueChangedEvent = ValueChangedEvent;
289
289
  exports.register = register;
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WireService={})}(this,(function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function i(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e){return void 0===e}var f=function e(t){a(this,e),this.type="ValueChangedEvent",this.value=t},s=Object.freeze,l=Object.defineProperty,p=Object.isExtensible;var d=Array.prototype,y=d.forEach,h=d.splice,v=d.indexOf,b="connect",g="disconnect",m="config";function w(e,t){var n=v.call(e,t);n>-1&&h.call(e,n,1)}var E=function(){function e(t){var n=this;a(this,e),this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=t,this.wiredElementHost=t.$$DeprecatedWiredElementHostKey$$,this.dynamicParamsNames=t.$$DeprecatedWiredParamsMetaKey$$,this.eventTarget={addEventListener:function(e,t){switch(e){case b:n.connecting.push(t);break;case g:n.disconnecting.push(t);break;case m:n.configuring.push(t),void 0!==n.currentConfig&&t.call(void 0,n.currentConfig);break;default:throw new Error("Invalid event type ".concat(e,"."))}},removeEventListener:function(e,t){switch(e){case b:w(n.connecting,t);break;case g:w(n.disconnecting,t);break;case m:w(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof f)){if("wirecontextevent"===e.type)return n.wiredElementHost.dispatchEvent(e);throw new Error("Invalid event type ".concat(e.type,"."))}var t=e.value;return n.callback(t),!1}}}var t,r,o;return t=e,(r=[{key:"update",value:function(e){var t,n;(!this.isFirstUpdate||(this.isFirstUpdate=!1,function(e){return 0===Object.keys(e).length}(e)||function(e,t){return 0===t.length||t.some((function(t){return!u(e[t])}))}(e,this.dynamicParamsNames)))&&(u(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,y.call(this.configuring,(function(t){t.call(void 0,e)})))}},{key:"connect",value:function(){y.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){y.call(this.disconnecting,(function(e){return e.call(void 0)}))}}])&&n(t.prototype,r),o&&n(t,o),e}();e.ValueChangedEvent=f,e.register=function(e,t){if(null==e||!p(e))throw new TypeError("adapter id must be extensible");if("function"!=typeof t)throw new TypeError("adapter factory must be a callable");if("adapter"in e)throw new TypeError("adapter id is already associated to an adapter factory");var n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(i,e);var n=o(i);function i(e){var r;return a(this,i),r=n.call(this,e),t(r.eventTarget),r}return i}(E);s(n),s(n.prototype),l(e,"adapter",{writable:!1,configurable:!1,value:n})},e.registerWireService=function(){},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WireService={})}(this,(function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}function r(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=i(e);if(t){var c=i(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return o(this,n)}}function o(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e){return void 0===e}var s=a((function e(t){u(this,e),this.type="ValueChangedEvent",this.value=t})),l=Object.freeze,p=Object.defineProperty,d=Object.isExtensible;var y=Array.prototype,h=y.forEach,v=y.splice,b=y.indexOf,g="connect",m="disconnect",w="config";function E(e,t){var n=b.call(e,t);n>-1&&v.call(e,n,1)}var O=function(){function e(t){var n=this;u(this,e),this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=t,this.wiredElementHost=t.$$DeprecatedWiredElementHostKey$$,this.dynamicParamsNames=t.$$DeprecatedWiredParamsMetaKey$$,this.eventTarget={addEventListener:function(e,t){switch(e){case g:n.connecting.push(t);break;case m:n.disconnecting.push(t);break;case w:n.configuring.push(t),void 0!==n.currentConfig&&t.call(void 0,n.currentConfig);break;default:throw new Error("Invalid event type ".concat(e,"."))}},removeEventListener:function(e,t){switch(e){case g:E(n.connecting,t);break;case m:E(n.disconnecting,t);break;case w:E(n.configuring,t);break;default:throw new Error("Invalid event type ".concat(e,"."))}},dispatchEvent:function(e){if(!(e instanceof s)){if("wirecontextevent"===e.type)return n.wiredElementHost.dispatchEvent(e);throw new Error("Invalid event type ".concat(e.type,"."))}var t=e.value;return n.callback(t),!1}}}return a(e,[{key:"update",value:function(e){var t,n;(!this.isFirstUpdate||(this.isFirstUpdate=!1,function(e){return 0===Object.keys(e).length}(e)||function(e,t){return 0===t.length||t.some((function(t){return!f(e[t])}))}(e,this.dynamicParamsNames)))&&((f(this.currentConfig)||(t=e,n=this.currentConfig,this.dynamicParamsNames.some((function(e){return t[e]!==n[e]}))))&&(this.currentConfig=e,h.call(this.configuring,(function(t){t.call(void 0,e)}))))}},{key:"connect",value:function(){h.call(this.connecting,(function(e){return e.call(void 0)}))}},{key:"disconnect",value:function(){h.call(this.disconnecting,(function(e){return e.call(void 0)}))}}]),e}();e.ValueChangedEvent=s,e.register=function(e,t){if(null==e||!d(e))throw new TypeError("adapter id must be extensible");if("function"!=typeof t)throw new TypeError("adapter factory must be a callable");if("adapter"in e)throw new TypeError("adapter id is already associated to an adapter factory");var o=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&n(e,t)}(i,e);var o=r(i);function i(e){var n;return u(this,i),n=o.call(this,e),t(n.eventTarget),n}return a(i)}(O);l(o),l(o.prototype),p(e,"adapter",{writable:!1,configurable:!1,value:o})},e.registerWireService=function(){},Object.defineProperty(e,"__esModule",{value:!0})}));