lwc 2.4.0 → 2.5.0

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 (35) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +117 -64
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +117 -64
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +116 -63
  5. package/dist/engine-dom/iife/es5/engine-dom.js +133 -86
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -2
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +130 -83
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +117 -64
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +116 -63
  11. package/dist/engine-dom/umd/es5/engine-dom.js +133 -86
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +130 -83
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +117 -64
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -2
  16. package/dist/engine-server/esm/es2017/engine-server.js +117 -64
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +3 -3
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +3 -3
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +3 -3
  20. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +3 -3
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +3 -3
  22. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +3 -3
  23. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +3 -3
  24. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +3 -3
  25. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +3 -3
  26. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  27. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  28. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  29. package/dist/wire-service/iife/es5/wire-service.js +2 -2
  30. package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
  31. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  33. package/dist/wire-service/umd/es5/wire-service.js +2 -2
  34. package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
  35. package/package.json +8 -8
@@ -256,6 +256,7 @@
256
256
  const KEY__SHADOW_RESOLVER = '$shadowResolver$';
257
257
  const KEY__SHADOW_TOKEN = '$shadowToken$';
258
258
  const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
259
+ const KEY__SCOPED_CSS = '$scoped$';
259
260
  /**
260
261
  * Map composed of properties to attributes not following the HTML property to attribute mapping
261
262
  * convention.
@@ -304,7 +305,7 @@
304
305
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
305
306
  return attributeName;
306
307
  }
307
- /** version: 2.4.0 */
308
+ /** version: 2.5.0 */
308
309
 
309
310
  /*
310
311
  * Copyright (c) 2018, salesforce.com, inc.
@@ -483,7 +484,7 @@
483
484
  setFeatureFlag(name, value);
484
485
  }
485
486
  }
486
- /** version: 2.4.0 */
487
+ /** version: 2.5.0 */
487
488
 
488
489
  /* proxy-compat-disable */
489
490
 
@@ -4491,6 +4492,19 @@
4491
4492
 
4492
4493
  function setElementShadowToken(elm, token) {
4493
4494
  elm.$shadowToken$ = token;
4495
+ } // Set the scope token class for *.scoped.css styles
4496
+
4497
+
4498
+ function setScopeTokenClassIfNecessary(elm, owner) {
4499
+ const {
4500
+ cmpTemplate,
4501
+ context
4502
+ } = owner;
4503
+ const token = cmpTemplate === null || cmpTemplate === void 0 ? void 0 : cmpTemplate.stylesheetToken;
4504
+
4505
+ if (!isUndefined$1(token) && context.hasScopedStyles) {
4506
+ owner.renderer.getClassList(elm).add(token);
4507
+ }
4494
4508
  }
4495
4509
 
4496
4510
  function updateNodeHook(oldVnode, vnode) {
@@ -4564,6 +4578,7 @@
4564
4578
  const {
4565
4579
  owner
4566
4580
  } = vnode;
4581
+ setScopeTokenClassIfNecessary(elm, owner);
4567
4582
 
4568
4583
  if (owner.shadowMode === 1
4569
4584
  /* Synthetic */
@@ -4574,7 +4589,7 @@
4574
4589
  }
4575
4590
  } = vnode;
4576
4591
  const {
4577
- shadowAttribute
4592
+ stylesheetToken
4578
4593
  } = owner.context;
4579
4594
 
4580
4595
  if (!isUndefined$1(context) && !isUndefined$1(context.lwc) && context.lwc.dom === "manual"
@@ -4586,7 +4601,7 @@
4586
4601
  // into each element from the template, so they can be styled accordingly.
4587
4602
 
4588
4603
 
4589
- setElementShadowToken(elm, shadowAttribute);
4604
+ setElementShadowToken(elm, stylesheetToken);
4590
4605
  }
4591
4606
 
4592
4607
  if (process.env.NODE_ENV !== 'production') {
@@ -4675,16 +4690,17 @@
4675
4690
  ctor,
4676
4691
  owner
4677
4692
  } = vnode;
4693
+ setScopeTokenClassIfNecessary(elm, owner);
4678
4694
 
4679
4695
  if (owner.shadowMode === 1
4680
4696
  /* Synthetic */
4681
4697
  ) {
4682
4698
  const {
4683
- shadowAttribute
4699
+ stylesheetToken
4684
4700
  } = owner.context; // when running in synthetic shadow mode, we need to set the shadowToken value
4685
4701
  // into each element from the template, so they can be styled accordingly.
4686
4702
 
4687
- setElementShadowToken(elm, shadowAttribute);
4703
+ setElementShadowToken(elm, stylesheetToken);
4688
4704
  }
4689
4705
 
4690
4706
  const def = getComponentInternalDef(ctor);
@@ -5480,6 +5496,10 @@
5480
5496
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
5481
5497
  */
5482
5498
 
5499
+ function makeHostToken(token) {
5500
+ return `${token}-host`;
5501
+ }
5502
+
5483
5503
  function createInlineStyleVNode(content) {
5484
5504
  return h('style', {
5485
5505
  key: 'style',
@@ -5489,59 +5509,100 @@
5489
5509
  }, [t(content)]);
5490
5510
  }
5491
5511
 
5492
- function updateSyntheticShadowAttributes(vm, template) {
5512
+ function updateStylesheetToken(vm, template) {
5493
5513
  const {
5494
5514
  elm,
5495
5515
  context,
5496
5516
  renderer,
5497
- renderMode
5517
+ renderMode,
5518
+ shadowMode
5498
5519
  } = vm;
5499
5520
  const {
5500
5521
  stylesheets: newStylesheets,
5501
- stylesheetTokens: newStylesheetTokens
5522
+ stylesheetToken: newStylesheetToken
5502
5523
  } = template;
5503
- let newTokens; // Reset the styling token applied to the host element.
5524
+ const isSyntheticShadow = renderMode === 1
5525
+ /* Shadow */
5526
+ && shadowMode === 1
5527
+ /* Synthetic */
5528
+ ;
5529
+ const {
5530
+ hasScopedStyles
5531
+ } = context;
5532
+ let newToken;
5533
+ let newHasTokenInClass;
5534
+ let newHasTokenInAttribute; // Reset the styling token applied to the host element.
5504
5535
 
5505
- const oldHostAttribute = context.hostAttribute;
5536
+ const {
5537
+ stylesheetToken: oldToken,
5538
+ hasTokenInClass: oldHasTokenInClass,
5539
+ hasTokenInAttribute: oldHasTokenInAttribute
5540
+ } = context;
5506
5541
 
5507
- if (!isUndefined$1(oldHostAttribute)) {
5508
- renderer.removeAttribute(elm, oldHostAttribute);
5542
+ if (oldHasTokenInClass) {
5543
+ renderer.getClassList(elm).remove(makeHostToken(oldToken));
5544
+ }
5545
+
5546
+ if (oldHasTokenInAttribute) {
5547
+ renderer.removeAttribute(elm, makeHostToken(oldToken));
5509
5548
  } // Apply the new template styling token to the host element, if the new template has any
5510
- // associated stylesheets.
5549
+ // associated stylesheets. In the case of light DOM, also ensure there is at least one scoped stylesheet.
5511
5550
 
5512
5551
 
5513
- if (!isUndefined$1(newStylesheets) && newStylesheets.length !== 0 && renderMode === 1
5514
- /* Shadow */
5515
- ) {
5516
- newTokens = newStylesheetTokens;
5517
- }
5552
+ if (!isUndefined$1(newStylesheets) && newStylesheets.length !== 0) {
5553
+ newToken = newStylesheetToken;
5554
+ } // Set the new styling token on the host element
5555
+
5556
+
5557
+ if (!isUndefined$1(newToken)) {
5558
+ if (hasScopedStyles) {
5559
+ renderer.getClassList(elm).add(makeHostToken(newToken));
5560
+ newHasTokenInClass = true;
5561
+ }
5518
5562
 
5519
- if (!isUndefined$1(newTokens)) {
5520
- renderer.setAttribute(elm, newTokens.hostAttribute, '');
5563
+ if (isSyntheticShadow) {
5564
+ renderer.setAttribute(elm, makeHostToken(newToken), '');
5565
+ newHasTokenInAttribute = true;
5566
+ }
5521
5567
  } // Update the styling tokens present on the context object.
5522
5568
 
5523
5569
 
5524
- context.hostAttribute = newTokens === null || newTokens === void 0 ? void 0 : newTokens.hostAttribute;
5525
- context.shadowAttribute = newTokens === null || newTokens === void 0 ? void 0 : newTokens.shadowAttribute;
5570
+ context.stylesheetToken = newToken;
5571
+ context.hasTokenInClass = newHasTokenInClass;
5572
+ context.hasTokenInAttribute = newHasTokenInAttribute;
5526
5573
  }
5527
5574
 
5528
- function evaluateStylesheetsContent(stylesheets, hostSelector, shadowSelector, nativeShadow) {
5575
+ function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
5529
5576
  const content = [];
5530
5577
 
5531
5578
  for (let i = 0; i < stylesheets.length; i++) {
5532
5579
  let stylesheet = stylesheets[i];
5533
5580
 
5534
5581
  if (isArray$1(stylesheet)) {
5535
- ArrayPush$1.apply(content, evaluateStylesheetsContent(stylesheet, hostSelector, shadowSelector, nativeShadow));
5582
+ ArrayPush$1.apply(content, evaluateStylesheetsContent(stylesheet, stylesheetToken, vm));
5536
5583
  } else {
5537
5584
  if (process.env.NODE_ENV !== 'production') {
5538
5585
  // in dev-mode, we support hot swapping of stylesheet, which means that
5539
5586
  // the component instance might be attempting to use an old version of
5540
5587
  // the stylesheet, while internally, we have a replacement for it.
5541
5588
  stylesheet = getStyleOrSwappedStyle(stylesheet);
5542
- }
5589
+ } // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
5590
+ // native shadow DOM. Synthetic shadow DOM never uses `:host`.
5591
+
5592
+
5593
+ const isScopedCss = stylesheet[KEY__SCOPED_CSS];
5594
+ const useActualHostSelector = vm.renderMode === 0
5595
+ /* Light */
5596
+ ? !isScopedCss : vm.shadowMode === 0
5597
+ /* Native */
5598
+ ; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
5543
5599
 
5544
- ArrayPush$1.call(content, stylesheet(hostSelector, shadowSelector, nativeShadow));
5600
+ const scopeToken = isScopedCss || vm.shadowMode === 1
5601
+ /* Synthetic */
5602
+ && vm.renderMode === 1
5603
+ /* Shadow */
5604
+ ? stylesheetToken : undefined;
5605
+ ArrayPush$1.call(content, stylesheet(useActualHostSelector, scopeToken));
5545
5606
  }
5546
5607
  }
5547
5608
 
@@ -5551,34 +5612,12 @@
5551
5612
  function getStylesheetsContent(vm, template) {
5552
5613
  const {
5553
5614
  stylesheets,
5554
- stylesheetTokens
5615
+ stylesheetToken
5555
5616
  } = template;
5556
- const {
5557
- renderMode,
5558
- shadowMode
5559
- } = vm;
5560
5617
  let content = [];
5561
5618
 
5562
5619
  if (!isUndefined$1(stylesheets) && stylesheets.length !== 0) {
5563
- let hostSelector;
5564
- let shadowSelector; // Scoping with the tokens is only necessary for synthetic shadow. For both
5565
- // light DOM elements and native shadow, we just render the CSS as-is.
5566
-
5567
- if (renderMode === 1
5568
- /* Shadow */
5569
- && shadowMode === 1
5570
- /* Synthetic */
5571
- && !isUndefined$1(stylesheetTokens)) {
5572
- hostSelector = `[${stylesheetTokens.hostAttribute}]`;
5573
- shadowSelector = `[${stylesheetTokens.shadowAttribute}]`;
5574
- } else {
5575
- hostSelector = '';
5576
- shadowSelector = '';
5577
- }
5578
-
5579
- content = evaluateStylesheetsContent(stylesheets, hostSelector, shadowSelector, shadowMode === 0
5580
- /* Native */
5581
- );
5620
+ content = evaluateStylesheetsContent(stylesheets, stylesheetToken, vm);
5582
5621
  }
5583
5622
 
5584
5623
  return content;
@@ -5845,8 +5884,7 @@
5845
5884
  context,
5846
5885
  cmpSlots,
5847
5886
  cmpTemplate,
5848
- tro,
5849
- shadowMode
5887
+ tro
5850
5888
  } = vm;
5851
5889
  tro.observe(() => {
5852
5890
  // Reset the cache memoizer for template when needed.
@@ -5871,15 +5909,12 @@
5871
5909
 
5872
5910
  vm.cmpTemplate = html; // Create a brand new template cache for the swapped templated.
5873
5911
 
5874
- context.tplCache = create(null); // Update the synthetic shadow attributes on the host element if necessary.
5912
+ context.tplCache = create(null); // Set the computeHasScopedStyles property in the context, to avoid recomputing it repeatedly.
5875
5913
 
5876
- if (shadowMode === 1
5877
- /* Synthetic */
5878
- ) {
5879
- updateSyntheticShadowAttributes(vm, html);
5880
- } // Evaluate, create stylesheet and cache the produced VNode for future
5881
- // re-rendering.
5914
+ context.hasScopedStyles = computeHasScopedStyles(html); // Update the scoping token on the host element.
5882
5915
 
5916
+ updateStylesheetToken(vm, html); // Evaluate, create stylesheet and cache the produced VNode for future
5917
+ // re-rendering.
5883
5918
 
5884
5919
  const stylesheetsContent = getStylesheetsContent(vm, html);
5885
5920
  context.styleVNode = stylesheetsContent.length === 0 ? null : createStylesheet(vm, stylesheetsContent);
@@ -5921,6 +5956,22 @@
5921
5956
 
5922
5957
  return vnodes;
5923
5958
  }
5959
+
5960
+ function computeHasScopedStyles(template) {
5961
+ const {
5962
+ stylesheets
5963
+ } = template;
5964
+
5965
+ if (!isUndefined$1(stylesheets)) {
5966
+ for (let i = 0; i < stylesheets.length; i++) {
5967
+ if (isTrue(stylesheets[i][KEY__SCOPED_CSS])) {
5968
+ return true;
5969
+ }
5970
+ }
5971
+ }
5972
+
5973
+ return false;
5974
+ }
5924
5975
  /*
5925
5976
  * Copyright (c) 2018, salesforce.com, inc.
5926
5977
  * All rights reserved.
@@ -6331,8 +6382,10 @@
6331
6382
  renderMode: def.renderMode,
6332
6383
  shadowMode: null,
6333
6384
  context: {
6334
- hostAttribute: undefined,
6335
- shadowAttribute: undefined,
6385
+ stylesheetToken: undefined,
6386
+ hasTokenInClass: undefined,
6387
+ hasTokenInAttribute: undefined,
6388
+ hasScopedStyles: undefined,
6336
6389
  styleVNode: null,
6337
6390
  tplCache: EmptyObject,
6338
6391
  wiredConnecting: EmptyArray,
@@ -7281,7 +7334,7 @@
7281
7334
 
7282
7335
  return reactiveMembrane.getReadOnlyProxy(obj);
7283
7336
  }
7284
- /* version: 2.4.0 */
7337
+ /* version: 2.5.0 */
7285
7338
 
7286
7339
  /*
7287
7340
  * Copyright (c) 2018, salesforce.com, inc.
@@ -7839,7 +7892,7 @@
7839
7892
  });
7840
7893
  freeze(LightningElement);
7841
7894
  seal(LightningElement.prototype);
7842
- /* version: 2.4.0 */
7895
+ /* version: 2.5.0 */
7843
7896
 
7844
7897
  exports.LightningElement = LightningElement;
7845
7898
  exports.__unstable__ProfilerControl = profilerControl;
@@ -1,4 +1,4 @@
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).LWC={})}(this,(function(e){"use strict";var t=Object.freeze({__proto__:null,invariant:function(e,t){if(!e)throw new Error(`Invariant Violation: ${t}`)},isTrue:function(e,t){if(!e)throw new Error(`Assert Violation: ${t}`)},isFalse:function(e,t){if(e)throw new Error(`Assert Violation: ${t}`)},fail:function(e){throw new Error(e)}});const{assign:n,create:r,defineProperties:o,defineProperty:i,freeze:s,getOwnPropertyDescriptor:l,getOwnPropertyNames:c,getPrototypeOf:a,hasOwnProperty:u,isFrozen:d,keys:f,seal:p,setPrototypeOf:h}=Object,{isArray:m}=Array,{filter:g,find:w,indexOf:y,join:b,map:v,push:E,reduce:C,reverse:S,slice:k,splice:M,unshift:A,forEach:x}=Array.prototype,{fromCharCode:T}=String,{charCodeAt:P,replace:N,slice:O,toLowerCase:L}=String.prototype;function _(e){return void 0===e}function D(e){return null===e}function $(e){return!0===e}function R(e){return!1===e}function H(e){return"function"==typeof e}function I(e){return"string"==typeof e}function F(){}const B={}.toString;function W(e){return e&&e.toString?m(e)?b.call(v.call(e,W),","):e.toString():"object"==typeof e?B.call(e):e+""}function j(e,t){do{const n=l(e,t);if(!_(n))return n;e=a(e)}while(null!==e)}const V=["ariaActiveDescendant","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaControls","ariaCurrent","ariaDescribedBy","ariaDetails","ariaDisabled","ariaErrorMessage","ariaExpanded","ariaFlowTo","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLabelledBy","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaOwns","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRelevant","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","role"],{AriaAttrNameToPropNameMap:K,AriaPropNameToAttrNameMap:G}=(()=>{const e=r(null),t=r(null);return x.call(V,(n=>{const r=L.call(N.call(n,/^aria/,(()=>"aria-")));e[r]=n,t[n]=r})),{AriaAttrNameToPropNameMap:e,AriaPropNameToAttrNameMap:t}})(),U=function(){if("object"==typeof globalThis)return globalThis;let e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(e){}finally{void 0===e&&(e=window)}return e}(),z=new Map([["accessKey","accesskey"],["readOnly","readonly"],["tabIndex","tabindex"],["bgColor","bgcolor"],["colSpan","colspan"],["rowSpan","rowspan"],["contentEditable","contenteditable"],["crossOrigin","crossorigin"],["dateTime","datetime"],["formAction","formaction"],["isMap","ismap"],["maxLength","maxlength"],["minLength","minlength"],["noValidate","novalidate"],["useMap","usemap"],["htmlFor","for"]]),q=new Map;function X(e){const t=G[e];if(!_(t))return t;const n=z.get(e);if(!_(n))return n;const r=q.get(e);if(!_(r))return r;let o="";for(let t=0,n=e.length;t<n;t++){const n=P.call(e,t);o+=n>=65&&n<=90?"-"+T(n+32):T(n)}return q.set(e,o),o}function Y(e){return void 0===Object.getOwnPropertyDescriptor(Element.prototype,e)}const J=new WeakMap;function Q(e){let t=J.get(e);return void 0===t&&(t={},J.set(e,t)),t}function Z(e,t){return{get(){const n=Q(this);return u.call(n,e)?n[e]:this.hasAttribute(t)?this.getAttribute(t):null},set(n){const r=null==(o=n)?null:String(o);var o;Q(this)[e]=r,null===n?this.removeAttribute(t):this.setAttribute(t,n)},configurable:!0,enumerable:!0}}function ee(e){const t=Z(e,G[e]);Object.defineProperty(Element.prototype,e,t)}const te=f(G);for(let e=0,t=te.length;e<t;e+=1){const t=te[e];Y(t)&&ee(t)}const ne={ENABLE_REACTIVE_SETTER:null,ENABLE_HMR:null,ENABLE_INNER_OUTER_TEXT_PATCH:null,ENABLE_ELEMENT_PATCH:null,ENABLE_NODE_LIST_PATCH:null,ENABLE_HTML_COLLECTIONS_PATCH:null,ENABLE_NODE_PATCH:null,ENABLE_NON_COMPOSED_EVENTS_LEAKAGE:null,ENABLE_MIXED_SHADOW_MODE:null,ENABLE_WIRE_SYNC_EMIT:null};U.lwcRuntimeFlags||Object.defineProperty(U,"lwcRuntimeFlags",{value:r(null)});const re=U.lwcRuntimeFlags;let oe=[];const ie=p(r(null)),se=p([]);function le(){const e=oe;oe=[];for(let t=0,n=e.length;t<n;t+=1)e[t]()}function ce(e){0===oe.length&&Promise.resolve().then(le),E.call(oe,e)}const ae=new WeakMap;let ue=null;function de(e,t){const n=ae.get(e);if(!_(n)){const e=n[t];if(!_(e))for(let t=0,n=e.length;t<n;t+=1){e[t].notify()}}}function fe(e,t){if(null===ue)return;const n=ue,o=function(e){let t=ae.get(e);if(_(t)){const n=r(null);t=n,ae.set(e,n)}return t}(e);let i=o[t];if(_(i))i=[],o[t]=i;else if(i[0]===n)return;-1===y.call(i,n)&&n.link(i)}class pe{constructor(e){this.listeners=[],this.callback=e}observe(e){const t=ue;let n;ue=this;try{e()}catch(e){n=Object(e)}finally{if(ue=t,void 0!==n)throw n}}reset(){const{listeners:e}=this,t=e.length;if(t>0){for(let n=0;n<t;n+=1){const t=e[n],r=y.call(e[n],this);M.call(t,r,1)}e.length=0}}notify(){this.callback.call(void 0,this)}link(e){E.call(e,this),E.call(this.listeners,e)}}function he(e,t){de(e.component,t)}function me(e,t){fe(e.component,t)}function ge(e){return`<${L.call(e.tagName)}>`}function we(e){const{elm:t,data:{on:n},owner:{renderer:r}}=e;if(_(n))return;const o=e.listener=function e(t){!function(e,t){const{type:n}=e,{data:{on:r}}=t,o=r&&r[n];o&&o.call(void 0,e)}(t,e.vnode)};let i;for(i in o.vnode=e,n)r.addEventListener(t,i,o)}var ye={update:function(e,t){_(e.listener)?we(t):(t.listener=e.listener,t.listener.vnode=t)},create:we};function be(e){return`Using the \`${e}\` property is an anti-pattern because it rounds the value to an integer. Instead, use the \`getBoundingClientRect\` method to obtain fractional values for the size of an element and its position relative to the viewport.`}n(r(null),{accessKey:{attribute:"accesskey"},accessKeyLabel:{readOnly:!0},className:{attribute:"class",error:"Using the `className` property is an anti-pattern because of slow runtime behavior and potential conflicts with classes provided by the owner element. Use the `classList` API instead."},contentEditable:{attribute:"contenteditable"},dataset:{readOnly:!0,error:"Using the `dataset` property is an anti-pattern because it can't be statically analyzed. Expose each property individually using the `@api` decorator instead."},dir:{attribute:"dir"},draggable:{attribute:"draggable"},dropzone:{attribute:"dropzone",readOnly:!0},hidden:{attribute:"hidden"},id:{attribute:"id"},inputMode:{attribute:"inputmode"},lang:{attribute:"lang"},slot:{attribute:"slot",error:"Using the `slot` property is an anti-pattern."},spellcheck:{attribute:"spellcheck"},style:{attribute:"style"},tabIndex:{attribute:"tabindex"},title:{attribute:"title"},translate:{attribute:"translate"},isContentEditable:{readOnly:!0},offsetHeight:{readOnly:!0,error:be("offsetHeight")},offsetLeft:{readOnly:!0,error:be("offsetLeft")},offsetParent:{readOnly:!0},offsetTop:{readOnly:!0,error:be("offsetTop")},offsetWidth:{readOnly:!0,error:be("offsetWidth")},role:{attribute:"role"}});let ve,Ee=null;function Ce(e,t){return e!==Ee||t!==ve}function Se(e,t){Ee=null,ve=void 0}function ke(e,t){Ee=e,ve=t}function Me(e,t){const{data:{attrs:n},owner:{renderer:r}}=t;if(_(n))return;let{data:{attrs:o}}=e;if(o===n)return;const i=t.elm,{setAttribute:s,removeAttribute:l}=r;let c;for(c in o=_(o)?ie:o,n){const e=n[c];o[c]!==e&&(ke(i,c),58===P.call(c,3)?s(i,c,e,"http://www.w3.org/XML/1998/namespace"):58===P.call(c,5)?s(i,c,e,"http://www.w3.org/1999/xlink"):D(e)?l(i,c):s(i,c,e),Se())}}const Ae={data:{}};var xe={create:e=>Me(Ae,e),update:Me};function Te(e,t){return"input"===e&&("value"===t||"checked"===t)}function Pe(e,t){const n=t.data.props;if(_(n))return;const r=e.data.props;if(r===n)return;const o=_(r),{elm:i,sel:s,owner:{renderer:l}}=t;for(const e in n){const t=n[e];(o||t!==(Te(s,e)?l.getProperty(i,e):r[e]))&&l.setProperty(i,e,t)}}const Ne={data:{}};var Oe={create:e=>Pe(Ne,e),update:Pe};const Le=r(null);function _e(e){if(null==e)return ie;e=I(e)?e:e+"";let t=Le[e];if(t)return t;t=r(null);let n,o=0;const i=e.length;for(n=0;n<i;n++)32===P.call(e,n)&&(n>o&&(t[O.call(e,o,n)]=!0),o=n+1);return n>o&&(t[O.call(e,o,n)]=!0),Le[e]=t,t}function De(e,t){const{elm:n,data:{className:r},owner:{renderer:o}}=t,{data:{className:i}}=e;if(i===r)return;const s=o.getClassList(n),l=_e(r),c=_e(i);let a;for(a in c)_(l[a])&&s.remove(a);for(a in l)_(c[a])&&s.add(a)}const $e={data:{}};var Re={create:e=>De($e,e),update:De};function He(e,t){const{elm:n,data:{style:r},owner:{renderer:o}}=t,{setAttribute:i,removeAttribute:s}=o;e.data.style!==r&&(I(r)&&""!==r?i(n,"style",r):s(n,"style"))}const Ie={data:{}};var Fe={create:e=>He(Ie,e),update:He};var Be={create:function(e){const{elm:t,data:{classMap:n},owner:{renderer:r}}=e;if(_(n))return;const o=r.getClassList(t);for(const e in n)o.add(e)}};var We={create:function(e){const{elm:t,data:{styleDecls:n},owner:{renderer:r}}=e;if(!_(n))for(let e=0;e<n.length;e++){const[o,i,s]=n[e];r.setCSSStyleProperty(t,o,i,s)}}};
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).LWC={})}(this,(function(e){"use strict";var t=Object.freeze({__proto__:null,invariant:function(e,t){if(!e)throw new Error(`Invariant Violation: ${t}`)},isTrue:function(e,t){if(!e)throw new Error(`Assert Violation: ${t}`)},isFalse:function(e,t){if(e)throw new Error(`Assert Violation: ${t}`)},fail:function(e){throw new Error(e)}});const{assign:n,create:r,defineProperties:o,defineProperty:i,freeze:s,getOwnPropertyDescriptor:l,getOwnPropertyNames:c,getPrototypeOf:a,hasOwnProperty:u,isFrozen:d,keys:f,seal:p,setPrototypeOf:h}=Object,{isArray:m}=Array,{filter:g,find:w,indexOf:y,join:b,map:v,push:E,reduce:C,reverse:k,slice:S,splice:M,unshift:T,forEach:x}=Array.prototype,{fromCharCode:A}=String,{charCodeAt:P,replace:N,slice:O,toLowerCase:L}=String.prototype;function _(e){return void 0===e}function D(e){return null===e}function $(e){return!0===e}function R(e){return!1===e}function I(e){return"function"==typeof e}function H(e){return"string"==typeof e}function F(){}const B={}.toString;function W(e){return e&&e.toString?m(e)?b.call(v.call(e,W),","):e.toString():"object"==typeof e?B.call(e):e+""}function j(e,t){do{const n=l(e,t);if(!_(n))return n;e=a(e)}while(null!==e)}const V=["ariaActiveDescendant","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaControls","ariaCurrent","ariaDescribedBy","ariaDetails","ariaDisabled","ariaErrorMessage","ariaExpanded","ariaFlowTo","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLabelledBy","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaOwns","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRelevant","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","role"],{AriaAttrNameToPropNameMap:K,AriaPropNameToAttrNameMap:G}=(()=>{const e=r(null),t=r(null);return x.call(V,(n=>{const r=L.call(N.call(n,/^aria/,(()=>"aria-")));e[r]=n,t[n]=r})),{AriaAttrNameToPropNameMap:e,AriaPropNameToAttrNameMap:t}})(),U=function(){if("object"==typeof globalThis)return globalThis;let e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(e){}finally{void 0===e&&(e=window)}return e}(),z=new Map([["accessKey","accesskey"],["readOnly","readonly"],["tabIndex","tabindex"],["bgColor","bgcolor"],["colSpan","colspan"],["rowSpan","rowspan"],["contentEditable","contenteditable"],["crossOrigin","crossorigin"],["dateTime","datetime"],["formAction","formaction"],["isMap","ismap"],["maxLength","maxlength"],["minLength","minlength"],["noValidate","novalidate"],["useMap","usemap"],["htmlFor","for"]]),q=new Map;function X(e){const t=G[e];if(!_(t))return t;const n=z.get(e);if(!_(n))return n;const r=q.get(e);if(!_(r))return r;let o="";for(let t=0,n=e.length;t<n;t++){const n=P.call(e,t);o+=n>=65&&n<=90?"-"+A(n+32):A(n)}return q.set(e,o),o}function Y(e){return void 0===Object.getOwnPropertyDescriptor(Element.prototype,e)}const J=new WeakMap;function Q(e){let t=J.get(e);return void 0===t&&(t={},J.set(e,t)),t}function Z(e,t){return{get(){const n=Q(this);return u.call(n,e)?n[e]:this.hasAttribute(t)?this.getAttribute(t):null},set(n){const r=null==(o=n)?null:String(o);var o;Q(this)[e]=r,null===n?this.removeAttribute(t):this.setAttribute(t,n)},configurable:!0,enumerable:!0}}function ee(e){const t=Z(e,G[e]);Object.defineProperty(Element.prototype,e,t)}const te=f(G);for(let e=0,t=te.length;e<t;e+=1){const t=te[e];Y(t)&&ee(t)}const ne={ENABLE_REACTIVE_SETTER:null,ENABLE_HMR:null,ENABLE_INNER_OUTER_TEXT_PATCH:null,ENABLE_ELEMENT_PATCH:null,ENABLE_NODE_LIST_PATCH:null,ENABLE_HTML_COLLECTIONS_PATCH:null,ENABLE_NODE_PATCH:null,ENABLE_NON_COMPOSED_EVENTS_LEAKAGE:null,ENABLE_MIXED_SHADOW_MODE:null,ENABLE_WIRE_SYNC_EMIT:null};U.lwcRuntimeFlags||Object.defineProperty(U,"lwcRuntimeFlags",{value:r(null)});const re=U.lwcRuntimeFlags;let oe=[];const ie=p(r(null)),se=p([]);function le(){const e=oe;oe=[];for(let t=0,n=e.length;t<n;t+=1)e[t]()}function ce(e){0===oe.length&&Promise.resolve().then(le),E.call(oe,e)}const ae=new WeakMap;let ue=null;function de(e,t){const n=ae.get(e);if(!_(n)){const e=n[t];if(!_(e))for(let t=0,n=e.length;t<n;t+=1){e[t].notify()}}}function fe(e,t){if(null===ue)return;const n=ue,o=function(e){let t=ae.get(e);if(_(t)){const n=r(null);t=n,ae.set(e,n)}return t}(e);let i=o[t];if(_(i))i=[],o[t]=i;else if(i[0]===n)return;-1===y.call(i,n)&&n.link(i)}class pe{constructor(e){this.listeners=[],this.callback=e}observe(e){const t=ue;let n;ue=this;try{e()}catch(e){n=Object(e)}finally{if(ue=t,void 0!==n)throw n}}reset(){const{listeners:e}=this,t=e.length;if(t>0){for(let n=0;n<t;n+=1){const t=e[n],r=y.call(e[n],this);M.call(t,r,1)}e.length=0}}notify(){this.callback.call(void 0,this)}link(e){E.call(e,this),E.call(this.listeners,e)}}function he(e,t){de(e.component,t)}function me(e,t){fe(e.component,t)}function ge(e){return`<${L.call(e.tagName)}>`}function we(e){const{elm:t,data:{on:n},owner:{renderer:r}}=e;if(_(n))return;const o=e.listener=function e(t){!function(e,t){const{type:n}=e,{data:{on:r}}=t,o=r&&r[n];o&&o.call(void 0,e)}(t,e.vnode)};let i;for(i in o.vnode=e,n)r.addEventListener(t,i,o)}var ye={update:function(e,t){_(e.listener)?we(t):(t.listener=e.listener,t.listener.vnode=t)},create:we};function be(e){return`Using the \`${e}\` property is an anti-pattern because it rounds the value to an integer. Instead, use the \`getBoundingClientRect\` method to obtain fractional values for the size of an element and its position relative to the viewport.`}n(r(null),{accessKey:{attribute:"accesskey"},accessKeyLabel:{readOnly:!0},className:{attribute:"class",error:"Using the `className` property is an anti-pattern because of slow runtime behavior and potential conflicts with classes provided by the owner element. Use the `classList` API instead."},contentEditable:{attribute:"contenteditable"},dataset:{readOnly:!0,error:"Using the `dataset` property is an anti-pattern because it can't be statically analyzed. Expose each property individually using the `@api` decorator instead."},dir:{attribute:"dir"},draggable:{attribute:"draggable"},dropzone:{attribute:"dropzone",readOnly:!0},hidden:{attribute:"hidden"},id:{attribute:"id"},inputMode:{attribute:"inputmode"},lang:{attribute:"lang"},slot:{attribute:"slot",error:"Using the `slot` property is an anti-pattern."},spellcheck:{attribute:"spellcheck"},style:{attribute:"style"},tabIndex:{attribute:"tabindex"},title:{attribute:"title"},translate:{attribute:"translate"},isContentEditable:{readOnly:!0},offsetHeight:{readOnly:!0,error:be("offsetHeight")},offsetLeft:{readOnly:!0,error:be("offsetLeft")},offsetParent:{readOnly:!0},offsetTop:{readOnly:!0,error:be("offsetTop")},offsetWidth:{readOnly:!0,error:be("offsetWidth")},role:{attribute:"role"}});let ve,Ee=null;function Ce(e,t){return e!==Ee||t!==ve}function ke(e,t){Ee=null,ve=void 0}function Se(e,t){Ee=e,ve=t}function Me(e,t){const{data:{attrs:n},owner:{renderer:r}}=t;if(_(n))return;let{data:{attrs:o}}=e;if(o===n)return;const i=t.elm,{setAttribute:s,removeAttribute:l}=r;let c;for(c in o=_(o)?ie:o,n){const e=n[c];o[c]!==e&&(Se(i,c),58===P.call(c,3)?s(i,c,e,"http://www.w3.org/XML/1998/namespace"):58===P.call(c,5)?s(i,c,e,"http://www.w3.org/1999/xlink"):D(e)?l(i,c):s(i,c,e),ke())}}const Te={data:{}};var xe={create:e=>Me(Te,e),update:Me};function Ae(e,t){return"input"===e&&("value"===t||"checked"===t)}function Pe(e,t){const n=t.data.props;if(_(n))return;const r=e.data.props;if(r===n)return;const o=_(r),{elm:i,sel:s,owner:{renderer:l}}=t;for(const e in n){const t=n[e];(o||t!==(Ae(s,e)?l.getProperty(i,e):r[e]))&&l.setProperty(i,e,t)}}const Ne={data:{}};var Oe={create:e=>Pe(Ne,e),update:Pe};const Le=r(null);function _e(e){if(null==e)return ie;e=H(e)?e:e+"";let t=Le[e];if(t)return t;t=r(null);let n,o=0;const i=e.length;for(n=0;n<i;n++)32===P.call(e,n)&&(n>o&&(t[O.call(e,o,n)]=!0),o=n+1);return n>o&&(t[O.call(e,o,n)]=!0),Le[e]=t,t}function De(e,t){const{elm:n,data:{className:r},owner:{renderer:o}}=t,{data:{className:i}}=e;if(i===r)return;const s=o.getClassList(n),l=_e(r),c=_e(i);let a;for(a in c)_(l[a])&&s.remove(a);for(a in l)_(c[a])&&s.add(a)}const $e={data:{}};var Re={create:e=>De($e,e),update:De};function Ie(e,t){const{elm:n,data:{style:r},owner:{renderer:o}}=t,{setAttribute:i,removeAttribute:s}=o;e.data.style!==r&&(H(r)&&""!==r?i(n,"style",r):s(n,"style"))}const He={data:{}};var Fe={create:e=>Ie(He,e),update:Ie};var Be={create:function(e){const{elm:t,data:{classMap:n},owner:{renderer:r}}=e;if(_(n))return;const o=r.getClassList(t);for(const e in n)o.add(e)}};var We={create:function(e){const{elm:t,data:{styleDecls:n},owner:{renderer:r}}=e;if(!_(n))for(let e=0;e<n.length;e++){const[o,i,s]=n[e];r.setCSSStyleProperty(t,o,i,s)}}};
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2015 Simon Friis Vindum.
@@ -6,4 +6,4 @@
6
6
  https://github.com/snabbdom/snabbdom/blob/master/LICENSE
7
7
  Code distributed by Snabbdom as part of the Snabbdom project at
8
8
  https://github.com/snabbdom/snabbdom/
9
- */function je(e){return void 0===e}function Ve(e,t){return e.key===t.key&&e.sel===t.sel}function Ke(e){return null!=e}function Ge(e,t,n){const r={};let o,i,s;for(o=t;o<=n;++o)s=e[o],Ke(s)&&(i=s.key,void 0!==i&&(r[i]=o));return r}function Ue(e,t,n,r,o){for(;r<=o;++r){const o=n[r];Ke(o)&&(o.hook.create(o),o.hook.insert(o,e,t))}}function ze(e,t,n,r){for(;n<=r;++n){const r=t[n];Ke(r)&&r.hook.remove(r,e)}}function qe(e,t,n){let r=0,o=0,i=t.length-1,s=t[0],l=t[i];const c=n.length-1;let a,u,d,f,p=c,h=n[0],m=n[p];for(;r<=i&&o<=p;)Ke(s)?Ke(l)?Ke(h)?Ke(m)?Ve(s,h)?(Ye(s,h),s=t[++r],h=n[++o]):Ve(l,m)?(Ye(l,m),l=t[--i],m=n[--p]):Ve(s,m)?(Ye(s,m),m.hook.move(s,e,l.owner.renderer.nextSibling(l.elm)),s=t[++r],m=n[--p]):Ve(l,h)?(Ye(l,h),h.hook.move(l,e,s.elm),l=t[--i],h=n[++o]):(void 0===a&&(a=Ge(t,r,i)),u=a[h.key],je(u)?(h.hook.create(h),h.hook.insert(h,e,s.elm),h=n[++o]):(d=t[u],Ke(d)&&(d.sel!==h.sel?(h.hook.create(h),h.hook.insert(h,e,s.elm)):(Ye(d,h),t[u]=void 0,h.hook.move(d,e,s.elm))),h=n[++o])):m=n[--p]:h=n[++o]:l=t[--i]:s=t[++r];if(r<=i||o<=p)if(r>i){let t,r=p;do{t=n[++r]}while(!Ke(t)&&r<c);f=Ke(t)?t.elm:null,Ue(e,f,n,o,p)}else ze(e,t,r,i)}function Xe(e,t,n){const r=t.length,o=n.length;if(0===r)return void Ue(e,null,n,0,o);if(0===o)return void ze(e,t,0,r);let i=null;for(let r=o-1;r>=0;r-=1){const o=n[r],s=t[r];o!==s&&(Ke(s)?Ke(o)?(Ye(s,o),i=o.elm):s.hook.remove(s,e):Ke(o)&&(o.hook.create(o),o.hook.insert(o,e,i),i=o.elm))}}function Ye(e,t){e!==t&&(t.elm=e.elm,t.hook.update(e,t))}const Je="undefined"!=typeof HTMLElement?HTMLElement:function(){},Qe=Je.prototype,Ze=r(null);x.call(f(G),(e=>{const t=j(Qe,e);_(t)||(Ze[e]=t)})),x.call(["accessKey","dir","draggable","hidden","id","lang","spellcheck","tabIndex","title"],(e=>{const t=j(Qe,e);_(t)||(Ze[e]=t)}));const{isArray:et}=Array,{getPrototypeOf:tt,create:nt,defineProperty:rt,defineProperties:ot,isExtensible:it,getOwnPropertyDescriptor:st,getOwnPropertyNames:lt,getOwnPropertySymbols:ct,preventExtensions:at,hasOwnProperty:ut}=Object,{push:dt,concat:ft,map:pt}=Array.prototype;function ht(e){return void 0===e}function mt(e){return"function"==typeof e}const gt=new WeakMap;function wt(e,t){gt.set(e,t)}const yt=e=>gt.get(e)||e;class bt{constructor(e,t){this.originalTarget=t,this.membrane=e}wrapDescriptor(e){if(ut.call(e,"value"))e.value=this.wrapValue(e.value);else{const{set:t,get:n}=e;ht(n)||(e.get=this.wrapGetter(n)),ht(t)||(e.set=this.wrapSetter(t))}return e}copyDescriptorIntoShadowTarget(e,t){const{originalTarget:n}=this,r=st(n,t);if(!ht(r)){const n=this.wrapDescriptor(r);rt(e,t,n)}}lockShadowTarget(e){const{originalTarget:t}=this;ft.call(lt(t),ct(t)).forEach((t=>{this.copyDescriptorIntoShadowTarget(e,t)}));const{membrane:{tagPropertyKey:n}}=this;ht(n)||ut.call(e,n)||rt(e,n,nt(null)),at(e)}apply(e,t,n){}construct(e,t,n){}get(e,t){const{originalTarget:n,membrane:{valueObserved:r}}=this,o=n[t];return r(n,t),this.wrapValue(o)}has(e,t){const{originalTarget:n,membrane:{tagPropertyKey:r,valueObserved:o}}=this;return o(n,t),t in n||t===r}ownKeys(e){const{originalTarget:t,membrane:{tagPropertyKey:n}}=this,r=ht(n)||ut.call(t,n)?[]:[n];return dt.apply(r,lt(t)),dt.apply(r,ct(t)),r}isExtensible(e){const{originalTarget:t}=this;return!!it(e)&&(!!it(t)||(this.lockShadowTarget(e),!1))}getPrototypeOf(e){const{originalTarget:t}=this;return tt(t)}getOwnPropertyDescriptor(e,t){const{originalTarget:n,membrane:{valueObserved:r,tagPropertyKey:o}}=this;r(n,t);let i=st(n,t);if(ht(i)){if(t!==o)return;return i={value:void 0,writable:!1,configurable:!1,enumerable:!1},rt(e,o,i),i}return!1===i.configurable&&this.copyDescriptorIntoShadowTarget(e,t),this.wrapDescriptor(i)}}const vt=new WeakMap,Et=new WeakMap,Ct=new WeakMap,St=new WeakMap;class kt extends bt{wrapValue(e){return this.membrane.getProxy(e)}wrapGetter(e){const t=vt.get(e);if(!ht(t))return t;const n=this,r=function(){return n.wrapValue(e.call(yt(this)))};return vt.set(e,r),Ct.set(r,e),r}wrapSetter(e){const t=Et.get(e);if(!ht(t))return t;const n=function(t){e.call(yt(this),yt(t))};return Et.set(e,n),St.set(n,e),n}unwrapDescriptor(e){if(ut.call(e,"value"))e.value=yt(e.value);else{const{set:t,get:n}=e;ht(n)||(e.get=this.unwrapGetter(n)),ht(t)||(e.set=this.unwrapSetter(t))}return e}unwrapGetter(e){const t=Ct.get(e);if(!ht(t))return t;const n=this,r=function(){return yt(e.call(n.wrapValue(this)))};return vt.set(r,e),Ct.set(e,r),r}unwrapSetter(e){const t=St.get(e);if(!ht(t))return t;const n=this,r=function(t){e.call(n.wrapValue(this),n.wrapValue(t))};return Et.set(r,e),St.set(e,r),r}set(e,t,n){const{originalTarget:r,membrane:{valueMutated:o}}=this;return r[t]!==n?(r[t]=n,o(r,t)):"length"===t&&et(r)&&o(r,t),!0}deleteProperty(e,t){const{originalTarget:n,membrane:{valueMutated:r}}=this;return delete n[t],r(n,t),!0}setPrototypeOf(e,t){}preventExtensions(e){if(it(e)){const{originalTarget:t}=this;if(at(t),it(t))return!1;this.lockShadowTarget(e)}return!0}defineProperty(e,t,n){const{originalTarget:r,membrane:{valueMutated:o,tagPropertyKey:i}}=this;return t===i&&!ut.call(r,t)||(rt(r,t,this.unwrapDescriptor(n)),!1===n.configurable&&this.copyDescriptorIntoShadowTarget(e,t),o(r,t),!0)}}const Mt=new WeakMap,At=new WeakMap;class xt extends bt{wrapValue(e){return this.membrane.getReadOnlyProxy(e)}wrapGetter(e){const t=Mt.get(e);if(!ht(t))return t;const n=this,r=function(){return n.wrapValue(e.call(yt(this)))};return Mt.set(e,r),r}wrapSetter(e){const t=At.get(e);if(!ht(t))return t;const n=function(e){};return At.set(e,n),n}set(e,t,n){return!1}deleteProperty(e,t){return!1}setPrototypeOf(e,t){}preventExtensions(e){return!1}defineProperty(e,t,n){return!1}}const Tt=Object.prototype;function Pt(e){if(null===e)return!1;if("object"!=typeof e)return!1;if(et(e))return!0;const t=tt(e);return t===Tt||null===t||null===tt(t)}const Nt=(e,t)=>{},Ot=(e,t)=>{},Lt=e=>e;function _t(e){return et(e)?[]:{}}const Dt=Symbol.for("@@lockerLiveValue");function $t(e){return e}const Rt=new class{constructor(e){if(this.valueDistortion=Lt,this.valueMutated=Ot,this.valueObserved=Nt,this.valueIsObservable=Pt,this.objectGraph=new WeakMap,!ht(e)){const{valueDistortion:t,valueMutated:n,valueObserved:r,valueIsObservable:o,tagPropertyKey:i}=e;this.valueDistortion=mt(t)?t:Lt,this.valueMutated=mt(n)?n:Ot,this.valueObserved=mt(r)?r:Nt,this.valueIsObservable=mt(o)?o:Pt,this.tagPropertyKey=i}}getProxy(e){const t=yt(e),n=this.valueDistortion(t);if(this.valueIsObservable(n)){const r=this.getReactiveState(t,n);return r.readOnly===e?e:r.reactive}return n}getReadOnlyProxy(e){e=yt(e);const t=this.valueDistortion(e);return this.valueIsObservable(t)?this.getReactiveState(e,t).readOnly:t}unwrapProxy(e){return yt(e)}getReactiveState(e,t){const{objectGraph:n}=this;let r=n.get(t);if(r)return r;const o=this;return r={get reactive(){const n=new kt(o,t),r=new Proxy(_t(t),n);return wt(r,e),rt(this,"reactive",{value:r}),r},get readOnly(){const n=new xt(o,t),r=new Proxy(_t(t),n);return wt(r,e),rt(this,"readOnly",{value:r}),r}},n.set(t,r),r}}({valueObserved:fe,valueMutated:de,valueDistortion:$t,tagPropertyKey:Dt});function Ht(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!H(n))throw new TypeError;if(!H(r))throw new TypeError;return{enumerable:o,configurable:i,get(){const t=Cr(this);if(!Zn(t))return me(t,e),n.call(t.elm)},set(t){const n=Cr(this);return t!==n.cmpProps[e]&&(n.cmpProps[e]=t,he(n,e)),r.call(n.elm,t)}}}const It=function(){if(D(Qn))throw new ReferenceError("Illegal constructor");const e=Qn,{def:t,elm:n,renderer:r}=e,{bridge:o}=t,i=this;if(h(n,o.prototype),e.component=this,1===arguments.length){const{callHook:t,setHook:n,getHook:r}=arguments[0];e.callHook=t,e.setHook=n,e.getHook=r}return this[Dt]=void 0,Er(i,e),Er(n,e),1===e.renderMode&&Ft(e),this};function Ft(e){const{elm:t,mode:n,renderer:r,shadowMode:o,def:{ctor:i}}=e,s=r.attachShadow(t,{"$$lwc-synthetic-mode":1===o,delegatesFocus:Boolean(i.delegatesFocus),mode:n});e.cmpRoot=s,Er(s,e)}It.prototype={constructor:It,dispatchEvent(e){const{elm:t,renderer:{dispatchEvent:n}}=Cr(this);return n(t,e)},addEventListener(e,t,n){const r=Cr(this),{elm:o,renderer:{addEventListener:i}}=r;i(o,e,lr(r,t),n)},removeEventListener(e,t,n){const r=Cr(this),{elm:o,renderer:{removeEventListener:i}}=r;i(o,e,lr(r,t),n)},hasAttribute(e){const{elm:t,renderer:{getAttribute:n}}=Cr(this);return!D(n(t,e))},hasAttributeNS(e,t){const{elm:n,renderer:{getAttribute:r}}=Cr(this);return!D(r(n,t,e))},removeAttribute(e){const{elm:t,renderer:{removeAttribute:n}}=Cr(this);ke(t,e),n(t,e),Se()},removeAttributeNS(e,t){const{elm:n,renderer:{removeAttribute:r}}=Cr(this);ke(n,t),r(n,t,e),Se()},getAttribute(e){const{elm:t,renderer:{getAttribute:n}}=Cr(this);return n(t,e)},getAttributeNS(e,t){const{elm:n,renderer:{getAttribute:r}}=Cr(this);return r(n,t,e)},setAttribute(e,t){const n=Cr(this),{elm:r,renderer:{setAttribute:o}}=n;ke(r,e),o(r,e,t),Se()},setAttributeNS(e,t,n){const r=Cr(this),{elm:o,renderer:{setAttribute:i}}=r;ke(o,t),i(o,t,n,e),Se()},getBoundingClientRect(){const e=Cr(this),{elm:t,renderer:{getBoundingClientRect:n}}=e;return n(t)},querySelector(e){const t=Cr(this),{elm:n,renderer:{querySelector:r}}=t;return r(n,e)},querySelectorAll(e){const t=Cr(this),{elm:n,renderer:{querySelectorAll:r}}=t;return r(n,e)},getElementsByTagName(e){const t=Cr(this),{elm:n,renderer:{getElementsByTagName:r}}=t;return r(n,e)},getElementsByClassName(e){const t=Cr(this),{elm:n,renderer:{getElementsByClassName:r}}=t;return r(n,e)},get isConnected(){const{elm:e,renderer:{isConnected:t}}=Cr(this);return t(e)},get classList(){const e=Cr(this),{elm:t,renderer:{getClassList:n}}=e;return n(t)},get template(){return Cr(this).cmpRoot},get shadowRoot(){return null},render(){return Cr(this).def.template},toString(){return`[object ${Cr(this).def.name}]`}};const Bt=r(null);for(const e in Ze)Bt[e]=Ht(e,Ze[e]);function Wt(e){return{get(){const t=Cr(this);return me(t,e),t.cmpFields[e]},set(t){const n=Cr(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,he(n,e))},enumerable:!0,configurable:!0}}function jt(e){return{get(){const t=Cr(this);return me(t,e),t.cmpFields[e]},set(t){const n=Cr(this),r=Rt.getProxy(t);r!==n.cmpFields[e]&&(n.cmpFields[e]=r,he(n,e))},enumerable:!0,configurable:!0}}function Vt(e){return{get(){const t=Cr(this);if(!Zn(t))return me(t,e),t.cmpProps[e]},set(t){const n=Cr(this);n.cmpProps[e]=t,he(n,e)},enumerable:!0,configurable:!0}}o(It.prototype,Bt),i(It,"CustomElementConstructor",{get(){throw new ReferenceError("The current runtime does not support CustomElementConstructor.")},configurable:!0});class Kt extends pe{constructor(e,t){super((()=>{R(this.debouncing)&&(this.debouncing=!0,ce((()=>{if($(this.debouncing)){const{value:n}=this,{isDirty:r,component:o,idx:i}=e;t.call(o,n),this.debouncing=!1,$(e.isDirty)&&R(r)&&i>0&&gr(e)}})))})),this.debouncing=!1}reset(e){super.reset(),this.debouncing=!1,arguments.length>0&&(this.value=e)}}function Gt(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!H(n))throw new Error;return{get(){return n.call(this)},set(t){const n=Cr(this);if(r)if(re.ENABLE_REACTIVE_SETTER){let o=n.oar[e];_(o)&&(o=n.oar[e]=new Kt(n,r)),o.reset(t),o.observe((()=>{r.call(this,t)}))}else r.call(this,t)},enumerable:o,configurable:i}}function Ut(e){return{get(){const t=Cr(this);return me(t,e),t.cmpFields[e]},set(t){const n=Cr(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,he(n,e))},enumerable:!0,configurable:!0}}const zt=new Map;const qt={apiMethods:ie,apiFields:ie,apiFieldsConfig:ie,wiredMethods:ie,wiredFields:ie,observedFields:ie};const Xt=new Set;function Yt(){return[]}Xt.add(Yt);const Jt=r(null),Qt=r(null);function Zt(e){let t=Jt[e];return _(t)&&(t=Jt[e]=function(){const t=Cr(this),{getHook:n}=t;return n(t.component,e)}),t}function en(e){let t=Qt[e];return _(t)&&(t=Qt[e]=function(t){const n=Cr(this),{setHook:r}=n;t=Rt.getReadOnlyProxy(t),r(n.component,e,t)}),t}function tn(e){return function(){const t=Cr(this),{callHook:n,component:r}=t,o=r[e];return n(t.component,o,k.call(arguments))}}function nn(e,t){return function(n,r,o){if(r===o)return;const i=e[n];_(i)?_(t)||t.apply(this,arguments):Ce(this,n)&&(this[i]=o)}}function rn(e,t,n){let s;H(e)?s=class extends e{}:(s=function(){throw new TypeError("Illegal constructor")},h(s,e),h(s.prototype,e.prototype),i(s.prototype,"constructor",{writable:!0,configurable:!0,value:s}));const l=r(null),{attributeChangedCallback:c}=e.prototype,{observedAttributes:a=[]}=e,u=r(null);for(let e=0,n=t.length;e<n;e+=1){const n=t[e];l[X(n)]=n,u[n]={get:Zt(n),set:en(n),enumerable:!0,configurable:!0}}for(let e=0,t=n.length;e<t;e+=1){const t=n[e];u[t]={value:tn(t),writable:!0,configurable:!0}}return u.attributeChangedCallback={value:nn(l,c)},i(s,"observedAttributes",{get:()=>[...a,...f(l)]}),o(s.prototype,u),s}const on=rn(Je,c(Ze),[]);function sn(e){const t=e();return(null==t?void 0:t.__esModule)?t.default:t}function ln(e){return H(e)&&u.call(e,"__circular__")}s(on),p(on.prototype);const cn=new WeakMap;function an(e){const{shadowSupportMode:t,renderMode:i}=e,s=function(e){const t=zt.get(e);return _(t)?qt:t}(e),{apiFields:l,apiFieldsConfig:c,apiMethods:u,wiredFields:d,wiredMethods:p,observedFields:h}=s,m=e.prototype;let{connectedCallback:g,disconnectedCallback:w,renderedCallback:y,errorCallback:b,render:v}=m;const E=function(e){let t=a(e);if(D(t))throw new ReferenceError(`Invalid prototype chain for ${e.name}, you must extend LightningElement.`);if(ln(t)){const e=sn(t);t=e===t?It:e}return t}(e),C=E!==It?dn(E):fn,S=rn(C.bridge,f(l),f(u)),k=n(r(null),C.props,l),M=n(r(null),C.propsConfig,c),A=n(r(null),C.methods,u),x=n(r(null),C.wire,d,p);g=g||C.connectedCallback,w=w||C.disconnectedCallback,y=y||C.renderedCallback,b=b||C.errorCallback,v=v||C.render;let T=C.shadowSupportMode;_(t)||(T=t);let P=C.renderMode;_(i)||(P="light"===i?0:1);const N=function(e){return nr.get(e)}(e)||C.template,O=e.name||C.name;o(m,h);return{ctor:e,name:O,wire:x,props:k,propsConfig:M,methods:A,bridge:S,template:N,renderMode:P,shadowSupportMode:T,connectedCallback:g,disconnectedCallback:w,renderedCallback:y,errorCallback:b,render:v}}function un(e){if(!H(e))return!1;if(e.prototype instanceof It)return!0;let t=e;do{if(ln(t)){const e=sn(t);if(e===t)return!0;t=e}if(t===It)return!0}while(!D(t)&&(t=a(t)));return!1}function dn(e){let t=cn.get(e);if(_(t)){if(ln(e)){return t=dn(sn(e)),cn.set(e,t),t}if(!un(e))throw new TypeError(`${e} is not a valid component, or does not extends LightningElement from "lwc". You probably forgot to add the extend clause on the class declaration.`);t=an(e),cn.set(e,t)}return t}const fn={ctor:It,name:It.name,props:Bt,propsConfig:ie,methods:ie,renderMode:1,shadowSupportMode:"default",wire:ie,bridge:on,template:Yt,render:It.prototype.render};function pn(e,t){e.$shadowToken$=t}function hn(e,t){const{elm:n,text:r,owner:{renderer:o}}=t;e.text!==r&&o.setText(n,r)}function mn(e,t,n){const{renderer:r}=e.owner;r.insert(e.elm,t,n)}function gn(e,t){const{renderer:n}=e.owner;n.remove(e.elm,t)}function wn(e,t){const{children:n,owner:r}=t,o=En(n)?qe:Xe;Lr(r,r.owner,F,(()=>{o(t.elm,e.children,n)}),F)}function yn(e,t){const n=e.aChildren||e.children;t.aChildren=n;const{renderMode:o,shadowMode:i}=t;1!==i&&0!==o||(!function(e,t){const{cmpSlots:n}=e,o=e.cmpSlots=r(null);for(let e=0,n=t.length;e<n;e+=1){const n=t[e];if(D(n))continue;const{data:r}=n,i=r.attrs&&r.attrs.slot||"",s=o[i]=o[i]||[];_(n.key)||(n.key=`@${i}:${n.key}`),E.call(s,n)}if(R(e.isDirty)){const t=f(n);if(t.length!==f(o).length)return void ir(e);for(let r=0,i=t.length;r<i;r+=1){const i=t[r];if(_(o[i])||n[i].length!==o[i].length)return void ir(e);const s=n[i],l=o[i];for(let t=0,n=o[i].length;t<n;t+=1)if(s[t]!==l[t])return void ir(e)}}}(t,n),e.aChildren=n,e.children=se)}function bn(e){const{elm:t,children:n}=e;for(let e=0;e<n.length;++e){const r=n[e];null!=r&&(r.hook.create(r),r.hook.insert(r,t,null))}}const vn=new WeakMap;function En(e){return vn.has(e)}function Cn(e,t){e=e.toLowerCase();let n=t.getCustomElement(e);return _(n)?(n=class extends t.HTMLElement{constructor(e){super(),H(e)&&e(this)}},t.defineCustomElement(e,n),n):n}const Sn=Symbol.iterator,kn={create:e=>{const{owner:t}=e,{renderer:n}=t,r=n.createText(e.text);Tn(r,t),e.elm=r},update:hn,insert:mn,move:mn,remove:gn},Mn={create:e=>{const{owner:t,text:n}=e,{renderer:r}=t,o=r.createComment(n);Tn(o,t),e.elm=o},update:hn,insert:mn,move:mn,remove:gn},An={create:e=>{const{sel:t,owner:n,data:{svg:r}}=e,{renderer:o}=n,i=$(r)?"http://www.w3.org/2000/svg":void 0,s=o.createElement(t,i);Tn(s,n),function(e,t){const{owner:n}=t;if(1===n.shadowMode){const{data:{context:r}}=t,{shadowAttribute:o}=n.context;_(r)||_(r.lwc)||"manual"!==r.lwc.dom||function(e){e.$domManual$=!0}(e),pn(e,o)}}(s,e),e.elm=s,function(e){ye.create(e),xe.create(e),Oe.create(e),Be.create(e),We.create(e),Re.create(e),Fe.create(e)}(e)},update:(e,t)=>{!function(e,t){xe.update(e,t),Oe.update(e,t),Re.update(e,t),Fe.update(e,t)}(e,t),wn(e,t)},insert:(e,t,n)=>{mn(e,t,n),bn(e)},move:(e,t,n)=>{mn(e,t,n)},remove:(e,t)=>{gn(e,t),function(e){const{children:t,elm:n}=e;for(let e=0,r=t.length;e<r;++e){const r=t[e];D(r)||r.hook.remove(r,n)}}(e)}},xn={create:e=>{const{sel:t,owner:n}=e,{renderer:r}=n,o=Cn(t,r),i=new o((t=>{!function(e,t){if(!_(Sr(e)))return;const{sel:n,mode:r,ctor:o,owner:i}=t;if(1===i.shadowMode){const{shadowAttribute:t}=i.context;pn(e,t)}vr(e,dn(o),{mode:r,owner:i,tagName:n,renderer:i.renderer})}(t,e)}));Tn(i,n),e.elm=i;const s=Sr(i);if(s)yn(e,s);else if(e.ctor!==o)throw new TypeError("Incorrect Component Constructor");!function(e){ye.create(e),xe.create(e),Oe.create(e),Be.create(e),We.create(e),Re.create(e),Fe.create(e)}(e)},update:(e,t)=>{!function(e,t){xe.update(e,t),Oe.update(e,t),Re.update(e,t),Fe.update(e,t)}(e,t);const n=Sr(t.elm);n&&yn(t,n),wn(e,t),n&&gr(n)},insert:(e,t,n)=>{mn(e,t,n);const r=Sr(e.elm);r&&xr(r),bn(e),r&&function(e){kr(e)}(r)},move:(e,t,n)=>{mn(e,t,n)},remove:(e,t)=>{gn(e,t);const n=Sr(e.elm);n&&function(e){br(e)}(n)}};function Tn(e,t){const{renderer:n,renderMode:r,shadowMode:o}=t;n.isSyntheticShadowDefined&&(1!==o&&0!==r||(e.$shadowResolver$=_r(t).$shadowResolver$))}function Pn(e,t,n){const r=qn();const{key:o}=t;return{sel:e,data:t,children:n,text:undefined,elm:undefined,key:o,hook:An,owner:r}}function Nn(e,t,n,r=se){const o=qn(),{key:i}=n;const s={sel:e,data:n,children:r,text:undefined,elm:undefined,key:i,hook:xn,ctor:t,owner:o,mode:"open"};return function(e){E.call(qn().velements,e)}(s),s}function On(e){return{sel:undefined,data:ie,children:undefined,text:e,elm:undefined,key:undefined,hook:kn,owner:qn()}}const Ln=new Map;let _n=0;function Dn(e){var t;return t=e,vn.set(t,1),e}var $n=Object.freeze({__proto__:null,h:Pn,ti:function(e){return e>0&&!($(e)||R(e))?0:e},s:function(e,t,n,r){_(r)||_(r[e])||0===r[e].length||(n=r[e]);const o=qn(),{renderMode:i,shadowMode:s}=o;return 0===i?(Dn(n),n):(1===s&&Dn(n),Pn("slot",t,n))},c:Nn,i:function(e,t){const n=[];if(Dn(n),_(e)||null===e)return n;const r=e[Sn]();let o=r.next(),i=0,{value:s,done:l}=o;for(;!1===l;){o=r.next(),l=o.done;const e=t(s,i,0===i,l);m(e)?E.apply(n,e):E.call(n,e),i+=1,s=o.value}return n},f:function(e){const t=e.length,n=[];Dn(n);for(let r=0;r<t;r+=1){const t=e[r];m(t)?E.apply(n,t):E.call(n,t)}return n},t:On,co:function(e){return{sel:undefined,data:ie,children:undefined,text:e,elm:undefined,key:undefined,hook:Mn,owner:qn()}},d:function(e){return null==e?"":e},b:function(e){const t=qn();if(D(t))throw new Error;const n=t;return function(t){tr(n,e,n.component,t)}},k:function(e,t){switch(typeof t){case"number":case"string":return e+":"+t}},gid:function(e){const t=qn();if(_(e)||""===e)return e;if(D(e))return null;const{idx:n,shadowMode:r}=t;return 1===r?N.call(e,/\S+/g,(e=>`${e}-${n}`)):e},fid:function(e){const t=qn();if(_(e)||""===e)return e;if(D(e))return null;const{idx:n,shadowMode:r}=t;return 1===r&&/^#/.test(e)?`${e}-${n}`:e},dc:function(e,t,n,r){if(null==t)return null;if(!un(t))throw new Error(`Invalid LWC Constructor ${W(t)} for custom element <${e}>.`);let o=Ln.get(t);return _(o)&&(o=_n++,Ln.set(t,o)),n.key=`dc:${o}:${n.key}`,Nn(e,t,n,r)},sc:Dn});function Rn(e,t,n,r){const o=[];for(let i=0;i<e.length;i++){let s=e[i];m(s)?E.apply(o,Rn(s,t,n,r)):E.call(o,s(t,n,r))}return o}function Hn(e,t){const{stylesheets:n,stylesheetTokens:r}=t,{renderMode:o,shadowMode:i}=e;let s=[];if(!_(n)&&0!==n.length){let e,t;1!==o||1!==i||_(r)?(e="",t=""):(e=`[${r.hostAttribute}]`,t=`[${r.shadowAttribute}]`),s=Rn(n,e,t,0===i)}return s}function In(e,t){const{renderer:n,renderMode:r,shadowMode:o}=e;if(1===r&&1===o)for(let e=0;e<t.length;e++)n.insertGlobalStylesheet(t[e]);else{if(n.ssr){const e=b.call(t,"\n");return Pn("style",{key:"style",attrs:{type:"text/css"}},[On(e)])}{const r=function(e){let t=e;for(;!D(t);){if(1===t.renderMode&&0===t.shadowMode)return t;t=t.owner}return t}(e),o=D(r);for(let e=0;e<t.length;e++)o?n.insertGlobalStylesheet(t[e]):n.insertStylesheet(t[e],r.cmpRoot)}}return null}let Fn=!1,Bn=F;const Wn={enableProfiler(){Fn=!0},disableProfiler(){Fn=!1},attachDispatcher(e){Bn=e,this.enableProfiler()},detachDispatcher(){const e=Bn;return Bn=F,this.disableProfiler(),e}};function jn(e,t){Fn&&Bn(e,0,t.tagName,t.idx)}function Vn(e,t){Fn&&Bn(e,1,t.tagName,t.idx)}function Kn(e,t){Fn&&Bn(e,0,null==t?void 0:t.tagName,null==t?void 0:t.idx)}function Gn(e,t){Fn&&Bn(e,1,null==t?void 0:t.tagName,null==t?void 0:t.idx)}let Un=!1,zn=null;function qn(){return zn}function Xn(e){zn=e}function Yn(e,t){const n=Un,o=zn;let i=[];return Lr(e,e.owner,(()=>{zn=e,jn(1,e)}),(()=>{const{component:n,context:o,cmpSlots:s,cmpTemplate:l,tro:c,shadowMode:a}=e;c.observe((()=>{if(t!==l){if(D(l)||Or(e),c=t,!Xt.has(c))throw new TypeError(`Invalid template returned by the render() method on ${e}. It must return an imported template (e.g.: \`import html from "./${e.def.name}.html"\`), instead, it has returned: ${W(t)}.`);e.cmpTemplate=t,o.tplCache=r(null),1===a&&function(e,t){const{elm:n,context:r,renderer:o,renderMode:i}=e,{stylesheets:s,stylesheetTokens:l}=t;let c;const a=r.hostAttribute;_(a)||o.removeAttribute(n,a),_(s)||0===s.length||1!==i||(c=l),_(c)||o.setAttribute(n,c.hostAttribute,""),r.hostAttribute=null==c?void 0:c.hostAttribute,r.shadowAttribute=null==c?void 0:c.shadowAttribute}(e,t);const n=Hn(e,t);o.styleVNode=0===n.length?null:In(e,n)}var c;e.velements=[],Un=!0,i=t.call(void 0,$n,n,s,o.tplCache);const{styleVNode:u}=o;D(u)||A.call(i,u)}))}),(()=>{Un=n,zn=o,Vn(1,e)})),i}function Jn(e,t){if(!d(t)&&_(t.wcStack)){const n=function(e){const t=[];let n=e;for(;!D(n);)E.call(t,ge(n)),n=n.owner;return t.reverse().join("\n\t")}(e);i(t,"wcStack",{get:()=>n})}}let Qn=null;function Zn(e){return Qn===e}function er(e,t,n){const{component:r,callHook:o,owner:i}=e;Lr(e,i,F,(()=>{o(r,t,n)}),F)}function tr(e,t,n,r){const{callHook:o,owner:i}=e;Lr(e,i,F,(()=>{o(n,t,[r])}),F)}const nr=new Map;function rr(e){return new pe((()=>{const{isDirty:t}=e;R(t)&&(ir(e),function(e){if($(e.renderer.ssr)||$(e.isScheduled))return;e.isScheduled=!0,0===Mr.length&&ce(Ar);E.call(Mr,e)}(e))}))}function or(e){e.tro.reset();const t=function(e){const{def:{render:t},callHook:n,component:r,owner:o}=e,i=qn();let s,l=!1;return Lr(e,o,(()=>{Xn(e)}),(()=>{e.tro.observe((()=>{s=n(r,t),l=!0}))}),(()=>{Xn(i)})),l?Yn(e,s):[]}(e);return e.isDirty=!1,e.isScheduled=!1,t}function ir(e){e.isDirty=!0}const sr=new WeakMap;function lr(e,t){if(!H(t))throw new TypeError;let n=sr.get(t);return _(n)&&(n=function(n){tr(e,t,void 0,n)},sr.set(t,n)),n}const cr=r(null),ar=["rendered","connected","disconnected"];function ur(e,t){const{component:n,def:r,context:o}=e;for(let e=0,i=t.length;e<i;++e)t[e].call(void 0,n,{},r,o)}let dr=0;const fr=new WeakMap;function pr(e,t,n=[]){return t.apply(e,n)}function hr(e,t,n){e[t]=n}function mr(e,t){return e[t]}function gr(e){kr(e)}function wr(e){const t=Cr(e);Kn(7,t),1===t.state&&yr(e),xr(t),kr(t),Gn(7,t)}function yr(e){br(Cr(e))}function br(e){const{state:t}=e;if(2!==t){const{oar:t,tro:n}=e;n.reset();for(const e in t)t[e].reset();!function(e){R(e.isDirty)&&(e.isDirty=!0);e.state=2;const{disconnected:t}=cr;t&&ur(e,t);Tr(e)&&function(e){const{wiredDisconnecting:t}=e.context;Lr(e,e,F,(()=>{for(let e=0,n=t.length;e<n;e+=1)t[e]()}),F)}(e);const{disconnectedCallback:n}=e.def;_(n)||(jn(5,e),er(e,n),Vn(5,e))}(e),Pr(e),function(e){const{aChildren:t}=e;Nr(t)}(e)}}function vr(e,t,n){const{mode:o,owner:i,renderer:s,tagName:l}=n,c={elm:e,def:t,idx:dr++,state:0,isScheduled:!1,isDirty:!0,tagName:l,mode:o,owner:i,renderer:s,children:se,aChildren:se,velements:se,cmpProps:r(null),cmpFields:r(null),cmpSlots:r(null),oar:r(null),cmpTemplate:null,renderMode:t.renderMode,shadowMode:null,context:{hostAttribute:void 0,shadowAttribute:void 0,styleVNode:null,tplCache:ie,wiredConnecting:se,wiredDisconnecting:se},tro:null,component:null,cmpRoot:null,callHook:pr,setHook:hr,getHook:mr};return c.shadowMode=function(e){const{def:t,renderer:n}=e,{isNativeShadowDefined:r,isSyntheticShadowDefined:o}=n;let i;if(o)if(0===t.renderMode)i=0;else if(r)if("any"===t.shadowSupportMode)i=0;else{const t=function(e){let t=e.owner;for(;!D(t)&&0===t.renderMode;)t=t.owner;return t}(e);i=D(t)||0!==t.shadowMode?1:0}else i=1;else i=0;return i}(c),c.tro=rr(c),function(e,t){const n=Qn;let r;jn(0,e),Qn=e;try{const o=new t;if(Qn.component!==o)throw new TypeError("Invalid component constructor, the class should extend LightningElement.")}catch(e){r=Object(e)}finally{if(Vn(0,e),Qn=n,!_(r))throw Jn(e,r),r}}(c,t.ctor),Tr(c)&&function(e){const{context:t,def:{wire:n}}=e,r=t.wiredConnecting=[],o=t.wiredDisconnecting=[];for(const t in n){const i=n[t],s=Dr.get(i);if(!_(s)){const{connector:n,computeConfigAndUpdate:i,resetConfigWatcher:l}=Rr(e,t,s),c=s.dynamic.length>0;E.call(r,(()=>{n.connect(),re.ENABLE_WIRE_SYNC_EMIT||!c?i():Promise.resolve().then(i)})),E.call(o,(()=>{n.disconnect(),l()}))}}}(c),c}function Er(e,t){fr.set(e,t)}function Cr(e){return fr.get(e)}function Sr(e){return fr.get(e)}function kr(e){if($(e.isDirty)){!function(e,t){const{children:n}=e;if(e.children=t,(t.length>0||n.length>0)&&n!==t){const r=En(t)?qe:Xe;Lr(e,e,(()=>{jn(2,e)}),(()=>{const o=_r(e);r(o,n,t)}),(()=>{Vn(2,e)}))}1===e.state&&function(e){const{renderer:t,def:{renderedCallback:n}}=e;if($(t.ssr))return;const{rendered:r}=cr;r&&ur(e,r);_(n)||(jn(4,e),er(e,n),Vn(4,e))}(e)}(e,or(e))}}let Mr=[];function Ar(){Kn(8);const e=Mr.sort(((e,t)=>e.idx-t.idx));Mr=[];for(let t=0,n=e.length;t<n;t+=1){const r=e[t];try{kr(r)}catch(r){throw t+1<n&&(0===Mr.length&&ce(Ar),A.apply(Mr,k.call(e,t+1))),Gn(8),r}}Gn(8)}function xr(e){const{state:t}=e;if(1===t)return;e.state=1;const{connected:n}=cr;n&&ur(e,n),Tr(e)&&function(e){const{wiredConnecting:t}=e.context;for(let e=0,n=t.length;e<n;e+=1)t[e]()}(e);const{connectedCallback:r}=e.def;_(r)||(jn(3,e),er(e,r),Vn(3,e))}function Tr(e){return c(e.def.wire).length>0}function Pr(e){const{velements:t}=e;for(let e=t.length-1;e>=0;e-=1){const{elm:n}=t[e];if(!_(n)){const e=Sr(n);_(e)||br(e)}}}function Nr(e){for(let t=0,n=e.length;t<n;t+=1){const n=e[t];D(n)||!m(n.children)||_(n.elm)||(_(n.ctor)?Nr(n.children):br(Cr(n.elm)))}}function Or(e){const{children:t,renderer:n}=e,r=_r(e);for(let e=0,o=t.length;e<o;e++){const o=t[e];D(o)||_(o.elm)||n.remove(o.elm,r)}e.children=se,Pr(e),e.velements=se}function Lr(e,t,n,r,o){let i;n();try{r()}catch(e){i=Object(e)}finally{if(o(),!_(i)){Jn(e,i);const n=D(t)?void 0:function(e){let t=e;for(;!D(t);){if(!_(t.def.errorCallback))return t;t=t.owner}}(t);if(_(n))throw i;Or(e),jn(6,e);er(n,n.def.errorCallback,[i,i.wcStack]),Vn(6,e)}}}function _r(e){return 1===e.renderMode?e.cmpRoot:e.elm}const Dr=new Map;class $r extends CustomEvent{constructor(e,{setNewContext:t,setDisconnectedCallback:n}){super(e,{bubbles:!0,composed:!0}),o(this,{setNewContext:{value:t},setDisconnectedCallback:{value:n}})}}function Rr(e,t,n){const{method:r,adapter:o,configCallback:s,dynamic:l}=n,c=_(r)?function(e,t){const{cmpFields:n}=e;return r=>{r!==e.cmpFields[t]&&(n[t]=r,he(e,t))}}(e,t):function(e,t){return n=>{Lr(e,e.owner,F,(()=>{t.call(e.component,n)}),F)}}(e,r);let a,u;i(c,"$$DeprecatedWiredElementHostKey$$",{value:e.elm}),i(c,"$$DeprecatedWiredParamsMetaKey$$",{value:l}),Lr(e,e,F,(()=>{u=new o(c)}),F);const{computeConfigAndUpdate:d,ro:f}=function(e,t,n){let r=!1;const o=new pe((()=>{!1===r&&(r=!0,Promise.resolve().then((()=>{r=!1,o.reset(),i()})))})),i=()=>{let r;o.observe((()=>r=t(e))),n(r)};return{computeConfigAndUpdate:i,ro:o}}(e.component,s,(t=>{Lr(e,e,F,(()=>{u.update(t,a)}),F)}));return _(o.contextSchema)||function(e,t,n){const{adapter:r}=t,o=Ir(r);if(_(o))return;const{elm:i,renderer:s,context:{wiredConnecting:l,wiredDisconnecting:c}}=e;E.call(l,(()=>{const e=new $r(o,{setNewContext(e){n(e)},setDisconnectedCallback(e){E.call(c,e)}});s.dispatchEvent(i,e)}))}(e,n,(t=>{a!==t&&(a=t,1===e.state&&d())})),{connector:u,computeConfigAndUpdate:d,resetConfigWatcher:()=>f.reset()}}const Hr=new Map;function Ir(e){return Hr.get(e)}function Fr(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,method:e.value,configCallback:n,dynamic:r};Dr.set(e,o)}function Br(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,configCallback:n,dynamic:r};Dr.set(e,o)}const Wr=r(null),jr=document.head||document.body||document,Vr=H(CSSStyleSheet.prototype.replaceSync),Kr=r(null),Gr=r(null),Ur=new WeakMap;let zr,qr,Xr;if(function(){if("undefined"==typeof customElements)return!1;try{const e=HTMLElement;class t extends e{}return customElements.define("lwc-test-"+Math.floor(1e6*Math.random()),t),new t,!0}catch(e){return!1}}())zr=customElements.get.bind(customElements),qr=customElements.define.bind(customElements),Xr=HTMLElement;else{const e=r(null),t=new WeakMap;qr=function(n,r){if(n!==L.call(n)||e[n])throw new TypeError("Invalid Registration");e[n]=r,t.set(r,n)},zr=function(t){return e[t]},Xr=function e(){if(!(this instanceof e))throw new TypeError("Invalid Invocation");const{constructor:n}=this,r=t.get(n);if(!r)throw new TypeError("Invalid Construction");const o=document.createElement(r);return h(o,n.prototype),o},Xr.prototype=HTMLElement.prototype}const Yr={ssr:!1,isNativeShadowDefined:U.$isNativeShadowRootDefined$,isSyntheticShadowDefined:u.call(Element.prototype,"$shadowToken$"),createElement:(e,t)=>_(t)?document.createElement(e):document.createElementNS(t,e),createText:e=>document.createTextNode(e),createComment:e=>document.createComment(e),insert(e,t,n){t.insertBefore(e,n)},remove(e,t){t.removeChild(e)},nextSibling:e=>e.nextSibling,attachShadow:(e,t)=>e.attachShadow(t),setText(e,t){e.nodeValue=t},getProperty:(e,t)=>e[t],setProperty(e,t,n){e[t]=n},getAttribute:(e,t,n)=>_(n)?e.getAttribute(t):e.getAttributeNS(n,t),setAttribute:(e,t,n,r)=>_(r)?e.setAttribute(t,n):e.setAttributeNS(r,t,n),removeAttribute(e,t,n){_(n)?e.removeAttribute(t):e.removeAttributeNS(n,t)},addEventListener(e,t,n,r){e.addEventListener(t,n,r)},removeEventListener(e,t,n,r){e.removeEventListener(t,n,r)},dispatchEvent:(e,t)=>e.dispatchEvent(t),getClassList:e=>e.classList,setCSSStyleProperty(e,t,n,r){e.style.setProperty(t,n,r?"important":"")},getBoundingClientRect:e=>e.getBoundingClientRect(),querySelector:(e,t)=>e.querySelector(t),querySelectorAll:(e,t)=>e.querySelectorAll(t),getElementsByTagName:(e,t)=>e.getElementsByTagName(t),getElementsByClassName:(e,t)=>e.getElementsByClassName(t),isConnected:e=>e.isConnected,insertGlobalStylesheet(e){if(!_(Wr[e]))return;Wr[e]=!0;const t=document.createElement("style");t.type="text/css",t.textContent=e,jr.appendChild(t)},insertStylesheet(e,t){Vr?function(e,t){let n=Gr[e];_(n)&&(n=new CSSStyleSheet,n.replaceSync(e),Gr[e]=n),t.adoptedStyleSheets.includes(n)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,n])}(e,t):function(e,t){let n=Ur.get(t);if(_(n)&&(n=r(null),Ur.set(t,n)),n[e])return;n[e]=!0;let o=Kr[e];_(o)?(o=document.createElement("style"),o.type="text/css",o.textContent=e,Kr[e]=o):o=o.cloneNode(!0),t.appendChild(o)}(e,t)},assertInstanceOfHTMLElement(e,n){t.invariant(e instanceof HTMLElement,n)},defineCustomElement:qr,getCustomElement:zr,HTMLElement:Xr};const Jr=Node,Qr=new WeakMap,Zr=new WeakMap;function eo(e,t){const n=t.get(e);return _(n)||n(e),e}const{appendChild:to,insertBefore:no,removeChild:ro,replaceChild:oo}=Jr.prototype;n(Jr.prototype,{appendChild(e){return eo(to.call(this,e),Qr)},insertBefore(e,t){return eo(no.call(this,e,t),Qr)},removeChild(e){return eo(ro.call(this,e),Zr)},replaceChild(e,t){const n=oo.call(this,e,t);return eo(n,Zr),eo(e,Qr),n}});const io=Node;const so=new Map;function lo(e){if(e===It)throw new TypeError("Invalid Constructor. LightningElement base class can't be claimed as a custom element.");let t=so.get(e);return _(t)&&(t=function(e){const t=dn(e);return class extends t.bridge{constructor(){super(),vr(this,t,{mode:"open",owner:null,tagName:this.tagName,renderer:Yr})}connectedCallback(){wr(this)}disconnectedCallback(){yr(this)}}}(e),so.set(e,t)),t}i(It,"CustomElementConstructor",{get(){return lo(this)}}),s(It),p(It.prototype),e.LightningElement=It,e.__unstable__ProfilerControl=Wn,e.api=function(){throw new Error},e.buildCustomElementConstructor=function(e){return e.CustomElementConstructor},e.createContextProvider=function(e){let t=Ir(e);if(!_(t))throw new Error("Adapter already has a context provider.");t=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}(),function(e,t){Hr.set(e,t)}(e,t);const n=new WeakSet;return(e,r)=>{if(n.has(e))throw new Error(`Adapter was already installed on ${e}.`);n.add(e);const{consumerConnectedCallback:o,consumerDisconnectedCallback:i}=r;e.addEventListener(t,(e=>{const{setNewContext:t,setDisconnectedCallback:n}=e,r={provide(e){t(e)}};n((()=>{_(i)||i(r)})),o(r),e.stopImmediatePropagation()}))}},e.createElement=function(e,t){if("object"!=typeof t||D(t))throw new TypeError(`"createElement" function expects an object as second parameter but received "${W(t)}".`);const n=t.is;if(!H(n))throw new TypeError('"createElement" function expects an "is" option with a valid component constructor.');const r=Cn(e,Yr);let o=!1;const i=new r((r=>{vr(r,dn(n),{tagName:e,mode:"closed"!==t.mode?"open":"closed",owner:null,renderer:Yr}),Qr.set(r,wr),Zr.set(r,yr),o=!0}));return o||console.error(`Unexpected tag name "${e}". This name is a registered custom element, preventing LWC to upgrade the element.`),i},e.getComponentConstructor=function(e){let t=null;if(e instanceof HTMLElement){const n=Sr(e);_(n)||(t=n.def.ctor)}return t},e.getComponentDef=function(e){const t=dn(e),{ctor:n,name:r,props:o,propsConfig:i,methods:s}=t,l={};for(const e in o)l[e]={config:i[e]||0,type:"any",attr:X(e)};const c={};for(const e in s)c[e]=s[e].value;return{ctor:n,name:r,props:l,methods:c}},e.isComponentConstructor=un,e.isNodeFromTemplate=function(e){return!R(e instanceof io)&&(!(e instanceof ShadowRoot)&&(Yr.isSyntheticShadowDefined?!_(e.$shadowResolver$):e.getRootNode()instanceof ShadowRoot))},e.readonly=function(e){return Rt.getReadOnlyProxy(e)},e.register=function(e){for(let t=0;t<ar.length;++t){const n=ar[t];if(n in e){let t=cr[n];_(t)&&(cr[n]=t=[]),E.call(t,e[n])}}},e.registerComponent=function(e,{tmpl:t}){return nr.set(e,t),e},e.registerDecorators=function(e,t){const n=e.prototype,{publicProps:o,publicMethods:s,wire:c,track:a,fields:u}=t,d=r(null),f=r(null),p=r(null),h=r(null),m=r(null),g=r(null);let w;if(!_(o))for(const e in o){const t=o[e];if(g[e]=t.config,w=l(n,e),t.config>0){if(_(w))throw new Error;w=Gt(e,w)}else w=Vt(e);f[e]=w,i(n,e,w)}if(_(s)||x.call(s,(e=>{if(w=l(n,e),_(w))throw new Error;d[e]=w})),!_(c))for(const e in c){const{adapter:t,method:r,config:o,dynamic:s=[]}=c[e];if(w=l(n,e),1===r){if(_(w))throw new Error;p[e]=w,Fr(w,t,o,s)}else w=Wt(e),h[e]=w,Br(w,t,o,s),i(n,e,w)}if(!_(a))for(const e in a)w=l(n,e),w=jt(e),i(n,e,w);if(!_(u))for(let e=0,t=u.length;e<t;e++){const t=u[e];w=l(n,t),m[t]=Ut(t)}return function(e,t){zt.set(e,t)}(e,{apiMethods:d,apiFields:f,apiFieldsConfig:g,wiredMethods:p,wiredFields:h,observedFields:m}),e},e.registerTemplate=function(e){return Xt.add(e),e},e.sanitizeAttribute=function(e,t,n,r){return r},e.setFeatureFlag=function(e,t){if("boolean"==typeof t){if(_(ne[e])){const n=f(ne).map((e=>`"${e}"`)).join(", ");console.warn(`Failed to set the value "${t}" for the runtime feature flag "${e}" because it is undefined. Available flags: ${n}.`)}else{const n=re[e];if(!_(n))return void console.error(`Failed to set the value "${t}" for the runtime feature flag "${e}". "${e}" has already been set with the value "${n}".`);i(re,e,{value:t})}}else{const n=`Failed to set the value "${t}" for the runtime feature flag "${e}". Runtime feature flags can only be set to a boolean value.`;console.error(n)}},e.setFeatureFlagForTest=function(e,t){},e.swapComponent=function(e,t){if(!re.ENABLE_HMR)throw new Error("HMR is not enabled");return!1},e.swapStyle=function(e,t){if(!re.ENABLE_HMR)throw new Error("HMR is not enabled");return!1},e.swapTemplate=function(e,t){if(!re.ENABLE_HMR)throw new Error("HMR is not enabled");return!1},e.track=function(e){if(1===arguments.length)return Rt.getProxy(e);throw new Error},e.unwrap=function(e){const t=Rt.unwrapProxy(e);return t!==e?t:e},e.wire=function(e,t){throw new Error},Object.defineProperty(e,"__esModule",{value:!0})}));
9
+ */function je(e){return void 0===e}function Ve(e,t){return e.key===t.key&&e.sel===t.sel}function Ke(e){return null!=e}function Ge(e,t,n){const r={};let o,i,s;for(o=t;o<=n;++o)s=e[o],Ke(s)&&(i=s.key,void 0!==i&&(r[i]=o));return r}function Ue(e,t,n,r,o){for(;r<=o;++r){const o=n[r];Ke(o)&&(o.hook.create(o),o.hook.insert(o,e,t))}}function ze(e,t,n,r){for(;n<=r;++n){const r=t[n];Ke(r)&&r.hook.remove(r,e)}}function qe(e,t,n){let r=0,o=0,i=t.length-1,s=t[0],l=t[i];const c=n.length-1;let a,u,d,f,p=c,h=n[0],m=n[p];for(;r<=i&&o<=p;)Ke(s)?Ke(l)?Ke(h)?Ke(m)?Ve(s,h)?(Ye(s,h),s=t[++r],h=n[++o]):Ve(l,m)?(Ye(l,m),l=t[--i],m=n[--p]):Ve(s,m)?(Ye(s,m),m.hook.move(s,e,l.owner.renderer.nextSibling(l.elm)),s=t[++r],m=n[--p]):Ve(l,h)?(Ye(l,h),h.hook.move(l,e,s.elm),l=t[--i],h=n[++o]):(void 0===a&&(a=Ge(t,r,i)),u=a[h.key],je(u)?(h.hook.create(h),h.hook.insert(h,e,s.elm),h=n[++o]):(d=t[u],Ke(d)&&(d.sel!==h.sel?(h.hook.create(h),h.hook.insert(h,e,s.elm)):(Ye(d,h),t[u]=void 0,h.hook.move(d,e,s.elm))),h=n[++o])):m=n[--p]:h=n[++o]:l=t[--i]:s=t[++r];if(r<=i||o<=p)if(r>i){let t,r=p;do{t=n[++r]}while(!Ke(t)&&r<c);f=Ke(t)?t.elm:null,Ue(e,f,n,o,p)}else ze(e,t,r,i)}function Xe(e,t,n){const r=t.length,o=n.length;if(0===r)return void Ue(e,null,n,0,o);if(0===o)return void ze(e,t,0,r);let i=null;for(let r=o-1;r>=0;r-=1){const o=n[r],s=t[r];o!==s&&(Ke(s)?Ke(o)?(Ye(s,o),i=o.elm):s.hook.remove(s,e):Ke(o)&&(o.hook.create(o),o.hook.insert(o,e,i),i=o.elm))}}function Ye(e,t){e!==t&&(t.elm=e.elm,t.hook.update(e,t))}const Je="undefined"!=typeof HTMLElement?HTMLElement:function(){},Qe=Je.prototype,Ze=r(null);x.call(f(G),(e=>{const t=j(Qe,e);_(t)||(Ze[e]=t)})),x.call(["accessKey","dir","draggable","hidden","id","lang","spellcheck","tabIndex","title"],(e=>{const t=j(Qe,e);_(t)||(Ze[e]=t)}));const{isArray:et}=Array,{getPrototypeOf:tt,create:nt,defineProperty:rt,defineProperties:ot,isExtensible:it,getOwnPropertyDescriptor:st,getOwnPropertyNames:lt,getOwnPropertySymbols:ct,preventExtensions:at,hasOwnProperty:ut}=Object,{push:dt,concat:ft,map:pt}=Array.prototype;function ht(e){return void 0===e}function mt(e){return"function"==typeof e}const gt=new WeakMap;function wt(e,t){gt.set(e,t)}const yt=e=>gt.get(e)||e;class bt{constructor(e,t){this.originalTarget=t,this.membrane=e}wrapDescriptor(e){if(ut.call(e,"value"))e.value=this.wrapValue(e.value);else{const{set:t,get:n}=e;ht(n)||(e.get=this.wrapGetter(n)),ht(t)||(e.set=this.wrapSetter(t))}return e}copyDescriptorIntoShadowTarget(e,t){const{originalTarget:n}=this,r=st(n,t);if(!ht(r)){const n=this.wrapDescriptor(r);rt(e,t,n)}}lockShadowTarget(e){const{originalTarget:t}=this;ft.call(lt(t),ct(t)).forEach((t=>{this.copyDescriptorIntoShadowTarget(e,t)}));const{membrane:{tagPropertyKey:n}}=this;ht(n)||ut.call(e,n)||rt(e,n,nt(null)),at(e)}apply(e,t,n){}construct(e,t,n){}get(e,t){const{originalTarget:n,membrane:{valueObserved:r}}=this,o=n[t];return r(n,t),this.wrapValue(o)}has(e,t){const{originalTarget:n,membrane:{tagPropertyKey:r,valueObserved:o}}=this;return o(n,t),t in n||t===r}ownKeys(e){const{originalTarget:t,membrane:{tagPropertyKey:n}}=this,r=ht(n)||ut.call(t,n)?[]:[n];return dt.apply(r,lt(t)),dt.apply(r,ct(t)),r}isExtensible(e){const{originalTarget:t}=this;return!!it(e)&&(!!it(t)||(this.lockShadowTarget(e),!1))}getPrototypeOf(e){const{originalTarget:t}=this;return tt(t)}getOwnPropertyDescriptor(e,t){const{originalTarget:n,membrane:{valueObserved:r,tagPropertyKey:o}}=this;r(n,t);let i=st(n,t);if(ht(i)){if(t!==o)return;return i={value:void 0,writable:!1,configurable:!1,enumerable:!1},rt(e,o,i),i}return!1===i.configurable&&this.copyDescriptorIntoShadowTarget(e,t),this.wrapDescriptor(i)}}const vt=new WeakMap,Et=new WeakMap,Ct=new WeakMap,kt=new WeakMap;class St extends bt{wrapValue(e){return this.membrane.getProxy(e)}wrapGetter(e){const t=vt.get(e);if(!ht(t))return t;const n=this,r=function(){return n.wrapValue(e.call(yt(this)))};return vt.set(e,r),Ct.set(r,e),r}wrapSetter(e){const t=Et.get(e);if(!ht(t))return t;const n=function(t){e.call(yt(this),yt(t))};return Et.set(e,n),kt.set(n,e),n}unwrapDescriptor(e){if(ut.call(e,"value"))e.value=yt(e.value);else{const{set:t,get:n}=e;ht(n)||(e.get=this.unwrapGetter(n)),ht(t)||(e.set=this.unwrapSetter(t))}return e}unwrapGetter(e){const t=Ct.get(e);if(!ht(t))return t;const n=this,r=function(){return yt(e.call(n.wrapValue(this)))};return vt.set(r,e),Ct.set(e,r),r}unwrapSetter(e){const t=kt.get(e);if(!ht(t))return t;const n=this,r=function(t){e.call(n.wrapValue(this),n.wrapValue(t))};return Et.set(r,e),kt.set(e,r),r}set(e,t,n){const{originalTarget:r,membrane:{valueMutated:o}}=this;return r[t]!==n?(r[t]=n,o(r,t)):"length"===t&&et(r)&&o(r,t),!0}deleteProperty(e,t){const{originalTarget:n,membrane:{valueMutated:r}}=this;return delete n[t],r(n,t),!0}setPrototypeOf(e,t){}preventExtensions(e){if(it(e)){const{originalTarget:t}=this;if(at(t),it(t))return!1;this.lockShadowTarget(e)}return!0}defineProperty(e,t,n){const{originalTarget:r,membrane:{valueMutated:o,tagPropertyKey:i}}=this;return t===i&&!ut.call(r,t)||(rt(r,t,this.unwrapDescriptor(n)),!1===n.configurable&&this.copyDescriptorIntoShadowTarget(e,t),o(r,t),!0)}}const Mt=new WeakMap,Tt=new WeakMap;class xt extends bt{wrapValue(e){return this.membrane.getReadOnlyProxy(e)}wrapGetter(e){const t=Mt.get(e);if(!ht(t))return t;const n=this,r=function(){return n.wrapValue(e.call(yt(this)))};return Mt.set(e,r),r}wrapSetter(e){const t=Tt.get(e);if(!ht(t))return t;const n=function(e){};return Tt.set(e,n),n}set(e,t,n){return!1}deleteProperty(e,t){return!1}setPrototypeOf(e,t){}preventExtensions(e){return!1}defineProperty(e,t,n){return!1}}const At=Object.prototype;function Pt(e){if(null===e)return!1;if("object"!=typeof e)return!1;if(et(e))return!0;const t=tt(e);return t===At||null===t||null===tt(t)}const Nt=(e,t)=>{},Ot=(e,t)=>{},Lt=e=>e;function _t(e){return et(e)?[]:{}}const Dt=Symbol.for("@@lockerLiveValue");function $t(e){return e}const Rt=new class{constructor(e){if(this.valueDistortion=Lt,this.valueMutated=Ot,this.valueObserved=Nt,this.valueIsObservable=Pt,this.objectGraph=new WeakMap,!ht(e)){const{valueDistortion:t,valueMutated:n,valueObserved:r,valueIsObservable:o,tagPropertyKey:i}=e;this.valueDistortion=mt(t)?t:Lt,this.valueMutated=mt(n)?n:Ot,this.valueObserved=mt(r)?r:Nt,this.valueIsObservable=mt(o)?o:Pt,this.tagPropertyKey=i}}getProxy(e){const t=yt(e),n=this.valueDistortion(t);if(this.valueIsObservable(n)){const r=this.getReactiveState(t,n);return r.readOnly===e?e:r.reactive}return n}getReadOnlyProxy(e){e=yt(e);const t=this.valueDistortion(e);return this.valueIsObservable(t)?this.getReactiveState(e,t).readOnly:t}unwrapProxy(e){return yt(e)}getReactiveState(e,t){const{objectGraph:n}=this;let r=n.get(t);if(r)return r;const o=this;return r={get reactive(){const n=new St(o,t),r=new Proxy(_t(t),n);return wt(r,e),rt(this,"reactive",{value:r}),r},get readOnly(){const n=new xt(o,t),r=new Proxy(_t(t),n);return wt(r,e),rt(this,"readOnly",{value:r}),r}},n.set(t,r),r}}({valueObserved:fe,valueMutated:de,valueDistortion:$t,tagPropertyKey:Dt});function It(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!I(n))throw new TypeError;if(!I(r))throw new TypeError;return{enumerable:o,configurable:i,get(){const t=Sr(this);if(!tr(t))return me(t,e),n.call(t.elm)},set(t){const n=Sr(this);return t!==n.cmpProps[e]&&(n.cmpProps[e]=t,he(n,e)),r.call(n.elm,t)}}}const Ht=function(){if(D(er))throw new ReferenceError("Illegal constructor");const e=er,{def:t,elm:n,renderer:r}=e,{bridge:o}=t,i=this;if(h(n,o.prototype),e.component=this,1===arguments.length){const{callHook:t,setHook:n,getHook:r}=arguments[0];e.callHook=t,e.setHook=n,e.getHook=r}return this[Dt]=void 0,kr(i,e),kr(n,e),1===e.renderMode&&Ft(e),this};function Ft(e){const{elm:t,mode:n,renderer:r,shadowMode:o,def:{ctor:i}}=e,s=r.attachShadow(t,{"$$lwc-synthetic-mode":1===o,delegatesFocus:Boolean(i.delegatesFocus),mode:n});e.cmpRoot=s,kr(s,e)}Ht.prototype={constructor:Ht,dispatchEvent(e){const{elm:t,renderer:{dispatchEvent:n}}=Sr(this);return n(t,e)},addEventListener(e,t,n){const r=Sr(this),{elm:o,renderer:{addEventListener:i}}=r;i(o,e,ar(r,t),n)},removeEventListener(e,t,n){const r=Sr(this),{elm:o,renderer:{removeEventListener:i}}=r;i(o,e,ar(r,t),n)},hasAttribute(e){const{elm:t,renderer:{getAttribute:n}}=Sr(this);return!D(n(t,e))},hasAttributeNS(e,t){const{elm:n,renderer:{getAttribute:r}}=Sr(this);return!D(r(n,t,e))},removeAttribute(e){const{elm:t,renderer:{removeAttribute:n}}=Sr(this);Se(t,e),n(t,e),ke()},removeAttributeNS(e,t){const{elm:n,renderer:{removeAttribute:r}}=Sr(this);Se(n,t),r(n,t,e),ke()},getAttribute(e){const{elm:t,renderer:{getAttribute:n}}=Sr(this);return n(t,e)},getAttributeNS(e,t){const{elm:n,renderer:{getAttribute:r}}=Sr(this);return r(n,t,e)},setAttribute(e,t){const n=Sr(this),{elm:r,renderer:{setAttribute:o}}=n;Se(r,e),o(r,e,t),ke()},setAttributeNS(e,t,n){const r=Sr(this),{elm:o,renderer:{setAttribute:i}}=r;Se(o,t),i(o,t,n,e),ke()},getBoundingClientRect(){const e=Sr(this),{elm:t,renderer:{getBoundingClientRect:n}}=e;return n(t)},querySelector(e){const t=Sr(this),{elm:n,renderer:{querySelector:r}}=t;return r(n,e)},querySelectorAll(e){const t=Sr(this),{elm:n,renderer:{querySelectorAll:r}}=t;return r(n,e)},getElementsByTagName(e){const t=Sr(this),{elm:n,renderer:{getElementsByTagName:r}}=t;return r(n,e)},getElementsByClassName(e){const t=Sr(this),{elm:n,renderer:{getElementsByClassName:r}}=t;return r(n,e)},get isConnected(){const{elm:e,renderer:{isConnected:t}}=Sr(this);return t(e)},get classList(){const e=Sr(this),{elm:t,renderer:{getClassList:n}}=e;return n(t)},get template(){return Sr(this).cmpRoot},get shadowRoot(){return null},render(){return Sr(this).def.template},toString(){return`[object ${Sr(this).def.name}]`}};const Bt=r(null);for(const e in Ze)Bt[e]=It(e,Ze[e]);function Wt(e){return{get(){const t=Sr(this);return me(t,e),t.cmpFields[e]},set(t){const n=Sr(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,he(n,e))},enumerable:!0,configurable:!0}}function jt(e){return{get(){const t=Sr(this);return me(t,e),t.cmpFields[e]},set(t){const n=Sr(this),r=Rt.getProxy(t);r!==n.cmpFields[e]&&(n.cmpFields[e]=r,he(n,e))},enumerable:!0,configurable:!0}}function Vt(e){return{get(){const t=Sr(this);if(!tr(t))return me(t,e),t.cmpProps[e]},set(t){const n=Sr(this);n.cmpProps[e]=t,he(n,e)},enumerable:!0,configurable:!0}}o(Ht.prototype,Bt),i(Ht,"CustomElementConstructor",{get(){throw new ReferenceError("The current runtime does not support CustomElementConstructor.")},configurable:!0});class Kt extends pe{constructor(e,t){super((()=>{R(this.debouncing)&&(this.debouncing=!0,ce((()=>{if($(this.debouncing)){const{value:n}=this,{isDirty:r,component:o,idx:i}=e;t.call(o,n),this.debouncing=!1,$(e.isDirty)&&R(r)&&i>0&&yr(e)}})))})),this.debouncing=!1}reset(e){super.reset(),this.debouncing=!1,arguments.length>0&&(this.value=e)}}function Gt(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!I(n))throw new Error;return{get(){return n.call(this)},set(t){const n=Sr(this);if(r)if(re.ENABLE_REACTIVE_SETTER){let o=n.oar[e];_(o)&&(o=n.oar[e]=new Kt(n,r)),o.reset(t),o.observe((()=>{r.call(this,t)}))}else r.call(this,t)},enumerable:o,configurable:i}}function Ut(e){return{get(){const t=Sr(this);return me(t,e),t.cmpFields[e]},set(t){const n=Sr(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,he(n,e))},enumerable:!0,configurable:!0}}const zt=new Map;const qt={apiMethods:ie,apiFields:ie,apiFieldsConfig:ie,wiredMethods:ie,wiredFields:ie,observedFields:ie};const Xt=new Set;function Yt(){return[]}Xt.add(Yt);const Jt=r(null),Qt=r(null);function Zt(e){let t=Jt[e];return _(t)&&(t=Jt[e]=function(){const t=Sr(this),{getHook:n}=t;return n(t.component,e)}),t}function en(e){let t=Qt[e];return _(t)&&(t=Qt[e]=function(t){const n=Sr(this),{setHook:r}=n;t=Rt.getReadOnlyProxy(t),r(n.component,e,t)}),t}function tn(e){return function(){const t=Sr(this),{callHook:n,component:r}=t,o=r[e];return n(t.component,o,S.call(arguments))}}function nn(e,t){return function(n,r,o){if(r===o)return;const i=e[n];_(i)?_(t)||t.apply(this,arguments):Ce(this,n)&&(this[i]=o)}}function rn(e,t,n){let s;I(e)?s=class extends e{}:(s=function(){throw new TypeError("Illegal constructor")},h(s,e),h(s.prototype,e.prototype),i(s.prototype,"constructor",{writable:!0,configurable:!0,value:s}));const l=r(null),{attributeChangedCallback:c}=e.prototype,{observedAttributes:a=[]}=e,u=r(null);for(let e=0,n=t.length;e<n;e+=1){const n=t[e];l[X(n)]=n,u[n]={get:Zt(n),set:en(n),enumerable:!0,configurable:!0}}for(let e=0,t=n.length;e<t;e+=1){const t=n[e];u[t]={value:tn(t),writable:!0,configurable:!0}}return u.attributeChangedCallback={value:nn(l,c)},i(s,"observedAttributes",{get:()=>[...a,...f(l)]}),o(s.prototype,u),s}const on=rn(Je,c(Ze),[]);function sn(e){const t=e();return(null==t?void 0:t.__esModule)?t.default:t}function ln(e){return I(e)&&u.call(e,"__circular__")}s(on),p(on.prototype);const cn=new WeakMap;function an(e){const{shadowSupportMode:t,renderMode:i}=e,s=function(e){const t=zt.get(e);return _(t)?qt:t}(e),{apiFields:l,apiFieldsConfig:c,apiMethods:u,wiredFields:d,wiredMethods:p,observedFields:h}=s,m=e.prototype;let{connectedCallback:g,disconnectedCallback:w,renderedCallback:y,errorCallback:b,render:v}=m;const E=function(e){let t=a(e);if(D(t))throw new ReferenceError(`Invalid prototype chain for ${e.name}, you must extend LightningElement.`);if(ln(t)){const e=sn(t);t=e===t?Ht:e}return t}(e),C=E!==Ht?dn(E):fn,k=rn(C.bridge,f(l),f(u)),S=n(r(null),C.props,l),M=n(r(null),C.propsConfig,c),T=n(r(null),C.methods,u),x=n(r(null),C.wire,d,p);g=g||C.connectedCallback,w=w||C.disconnectedCallback,y=y||C.renderedCallback,b=b||C.errorCallback,v=v||C.render;let A=C.shadowSupportMode;_(t)||(A=t);let P=C.renderMode;_(i)||(P="light"===i?0:1);const N=function(e){return or.get(e)}(e)||C.template,O=e.name||C.name;o(m,h);return{ctor:e,name:O,wire:x,props:S,propsConfig:M,methods:T,bridge:k,template:N,renderMode:P,shadowSupportMode:A,connectedCallback:g,disconnectedCallback:w,renderedCallback:y,errorCallback:b,render:v}}function un(e){if(!I(e))return!1;if(e.prototype instanceof Ht)return!0;let t=e;do{if(ln(t)){const e=sn(t);if(e===t)return!0;t=e}if(t===Ht)return!0}while(!D(t)&&(t=a(t)));return!1}function dn(e){let t=cn.get(e);if(_(t)){if(ln(e)){return t=dn(sn(e)),cn.set(e,t),t}if(!un(e))throw new TypeError(`${e} is not a valid component, or does not extends LightningElement from "lwc". You probably forgot to add the extend clause on the class declaration.`);t=an(e),cn.set(e,t)}return t}const fn={ctor:Ht,name:Ht.name,props:Bt,propsConfig:ie,methods:ie,renderMode:1,shadowSupportMode:"default",wire:ie,bridge:on,template:Yt,render:Ht.prototype.render};function pn(e,t){e.$shadowToken$=t}function hn(e,t){const{cmpTemplate:n,context:r}=t,o=null==n?void 0:n.stylesheetToken;!_(o)&&r.hasScopedStyles&&t.renderer.getClassList(e).add(o)}function mn(e,t){const{elm:n,text:r,owner:{renderer:o}}=t;e.text!==r&&o.setText(n,r)}function gn(e,t,n){const{renderer:r}=e.owner;r.insert(e.elm,t,n)}function wn(e,t){const{renderer:n}=e.owner;n.remove(e.elm,t)}function yn(e,t){const{children:n,owner:r}=t,o=Cn(n)?qe:Xe;Dr(r,r.owner,F,(()=>{o(t.elm,e.children,n)}),F)}function bn(e,t){const n=e.aChildren||e.children;t.aChildren=n;const{renderMode:o,shadowMode:i}=t;1!==i&&0!==o||(!function(e,t){const{cmpSlots:n}=e,o=e.cmpSlots=r(null);for(let e=0,n=t.length;e<n;e+=1){const n=t[e];if(D(n))continue;const{data:r}=n,i=r.attrs&&r.attrs.slot||"",s=o[i]=o[i]||[];_(n.key)||(n.key=`@${i}:${n.key}`),E.call(s,n)}if(R(e.isDirty)){const t=f(n);if(t.length!==f(o).length)return void lr(e);for(let r=0,i=t.length;r<i;r+=1){const i=t[r];if(_(o[i])||n[i].length!==o[i].length)return void lr(e);const s=n[i],l=o[i];for(let t=0,n=o[i].length;t<n;t+=1)if(s[t]!==l[t])return void lr(e)}}}(t,n),e.aChildren=n,e.children=se)}function vn(e){const{elm:t,children:n}=e;for(let e=0;e<n.length;++e){const r=n[e];null!=r&&(r.hook.create(r),r.hook.insert(r,t,null))}}const En=new WeakMap;function Cn(e){return En.has(e)}function kn(e,t){e=e.toLowerCase();let n=t.getCustomElement(e);return _(n)?(n=class extends t.HTMLElement{constructor(e){super(),I(e)&&e(this)}},t.defineCustomElement(e,n),n):n}const Sn=Symbol.iterator,Mn={create:e=>{const{owner:t}=e,{renderer:n}=t,r=n.createText(e.text);Pn(r,t),e.elm=r},update:mn,insert:gn,move:gn,remove:wn},Tn={create:e=>{const{owner:t,text:n}=e,{renderer:r}=t,o=r.createComment(n);Pn(o,t),e.elm=o},update:mn,insert:gn,move:gn,remove:wn},xn={create:e=>{const{sel:t,owner:n,data:{svg:r}}=e,{renderer:o}=n,i=$(r)?"http://www.w3.org/2000/svg":void 0,s=o.createElement(t,i);Pn(s,n),function(e,t){const{owner:n}=t;if(hn(e,n),1===n.shadowMode){const{data:{context:r}}=t,{stylesheetToken:o}=n.context;_(r)||_(r.lwc)||"manual"!==r.lwc.dom||function(e){e.$domManual$=!0}(e),pn(e,o)}}(s,e),e.elm=s,function(e){ye.create(e),xe.create(e),Oe.create(e),Be.create(e),We.create(e),Re.create(e),Fe.create(e)}(e)},update:(e,t)=>{!function(e,t){xe.update(e,t),Oe.update(e,t),Re.update(e,t),Fe.update(e,t)}(e,t),yn(e,t)},insert:(e,t,n)=>{gn(e,t,n),vn(e)},move:(e,t,n)=>{gn(e,t,n)},remove:(e,t)=>{wn(e,t),function(e){const{children:t,elm:n}=e;for(let e=0,r=t.length;e<r;++e){const r=t[e];D(r)||r.hook.remove(r,n)}}(e)}},An={create:e=>{const{sel:t,owner:n}=e,{renderer:r}=n,o=kn(t,r),i=new o((t=>{!function(e,t){if(!_(Mr(e)))return;const{sel:n,mode:r,ctor:o,owner:i}=t;if(hn(e,i),1===i.shadowMode){const{stylesheetToken:t}=i.context;pn(e,t)}Cr(e,dn(o),{mode:r,owner:i,tagName:n,renderer:i.renderer})}(t,e)}));Pn(i,n),e.elm=i;const s=Mr(i);if(s)bn(e,s);else if(e.ctor!==o)throw new TypeError("Incorrect Component Constructor");!function(e){ye.create(e),xe.create(e),Oe.create(e),Be.create(e),We.create(e),Re.create(e),Fe.create(e)}(e)},update:(e,t)=>{!function(e,t){xe.update(e,t),Oe.update(e,t),Re.update(e,t),Fe.update(e,t)}(e,t);const n=Mr(t.elm);n&&bn(t,n),yn(e,t),n&&yr(n)},insert:(e,t,n)=>{gn(e,t,n);const r=Mr(e.elm);r&&Pr(r),vn(e),r&&function(e){Tr(e)}(r)},move:(e,t,n)=>{gn(e,t,n)},remove:(e,t)=>{wn(e,t);const n=Mr(e.elm);n&&function(e){Er(e)}(n)}};function Pn(e,t){const{renderer:n,renderMode:r,shadowMode:o}=t;n.isSyntheticShadowDefined&&(1!==o&&0!==r||(e.$shadowResolver$=$r(t).$shadowResolver$))}function Nn(e,t,n){const r=Yn();const{key:o}=t;return{sel:e,data:t,children:n,text:undefined,elm:undefined,key:o,hook:xn,owner:r}}function On(e,t,n,r=se){const o=Yn(),{key:i}=n;const s={sel:e,data:n,children:r,text:undefined,elm:undefined,key:i,hook:An,ctor:t,owner:o,mode:"open"};return function(e){E.call(Yn().velements,e)}(s),s}function Ln(e){return{sel:undefined,data:ie,children:undefined,text:e,elm:undefined,key:undefined,hook:Mn,owner:Yn()}}const _n=new Map;let Dn=0;function $n(e){var t;return t=e,En.set(t,1),e}var Rn=Object.freeze({__proto__:null,h:Nn,ti:function(e){return e>0&&!($(e)||R(e))?0:e},s:function(e,t,n,r){_(r)||_(r[e])||0===r[e].length||(n=r[e]);const o=Yn(),{renderMode:i,shadowMode:s}=o;return 0===i?($n(n),n):(1===s&&$n(n),Nn("slot",t,n))},c:On,i:function(e,t){const n=[];if($n(n),_(e)||null===e)return n;const r=e[Sn]();let o=r.next(),i=0,{value:s,done:l}=o;for(;!1===l;){o=r.next(),l=o.done;const e=t(s,i,0===i,l);m(e)?E.apply(n,e):E.call(n,e),i+=1,s=o.value}return n},f:function(e){const t=e.length,n=[];$n(n);for(let r=0;r<t;r+=1){const t=e[r];m(t)?E.apply(n,t):E.call(n,t)}return n},t:Ln,co:function(e){return{sel:undefined,data:ie,children:undefined,text:e,elm:undefined,key:undefined,hook:Tn,owner:Yn()}},d:function(e){return null==e?"":e},b:function(e){const t=Yn();if(D(t))throw new Error;const n=t;return function(t){rr(n,e,n.component,t)}},k:function(e,t){switch(typeof t){case"number":case"string":return e+":"+t}},gid:function(e){const t=Yn();if(_(e)||""===e)return e;if(D(e))return null;const{idx:n,shadowMode:r}=t;return 1===r?N.call(e,/\S+/g,(e=>`${e}-${n}`)):e},fid:function(e){const t=Yn();if(_(e)||""===e)return e;if(D(e))return null;const{idx:n,shadowMode:r}=t;return 1===r&&/^#/.test(e)?`${e}-${n}`:e},dc:function(e,t,n,r){if(null==t)return null;if(!un(t))throw new Error(`Invalid LWC Constructor ${W(t)} for custom element <${e}>.`);let o=_n.get(t);return _(o)&&(o=Dn++,_n.set(t,o)),n.key=`dc:${o}:${n.key}`,On(e,t,n,r)},sc:$n});function In(e){return`${e}-host`}function Hn(e,t,n){const r=[];for(let o=0;o<e.length;o++){let i=e[o];if(m(i))E.apply(r,Hn(i,t,n));else{const e=i.$scoped$,o=0===n.renderMode?!e:0===n.shadowMode,s=e||1===n.shadowMode&&1===n.renderMode?t:void 0;E.call(r,i(o,s))}}return r}function Fn(e,t){const{stylesheets:n,stylesheetToken:r}=t;let o=[];return _(n)||0===n.length||(o=Hn(n,r,e)),o}function Bn(e,t){const{renderer:n,renderMode:r,shadowMode:o}=e;if(1===r&&1===o)for(let e=0;e<t.length;e++)n.insertGlobalStylesheet(t[e]);else{if(n.ssr){const e=b.call(t,"\n");return Nn("style",{key:"style",attrs:{type:"text/css"}},[Ln(e)])}{const r=function(e){let t=e;for(;!D(t);){if(1===t.renderMode&&0===t.shadowMode)return t;t=t.owner}return t}(e),o=D(r);for(let e=0;e<t.length;e++)o?n.insertGlobalStylesheet(t[e]):n.insertStylesheet(t[e],r.cmpRoot)}}return null}let Wn=!1,jn=F;const Vn={enableProfiler(){Wn=!0},disableProfiler(){Wn=!1},attachDispatcher(e){jn=e,this.enableProfiler()},detachDispatcher(){const e=jn;return jn=F,this.disableProfiler(),e}};function Kn(e,t){Wn&&jn(e,0,t.tagName,t.idx)}function Gn(e,t){Wn&&jn(e,1,t.tagName,t.idx)}function Un(e,t){Wn&&jn(e,0,null==t?void 0:t.tagName,null==t?void 0:t.idx)}function zn(e,t){Wn&&jn(e,1,null==t?void 0:t.tagName,null==t?void 0:t.idx)}let qn=!1,Xn=null;function Yn(){return Xn}function Jn(e){Xn=e}function Qn(e,t){const n=qn,o=Xn;let i=[];return Dr(e,e.owner,(()=>{Xn=e,Kn(1,e)}),(()=>{const{component:n,context:o,cmpSlots:s,cmpTemplate:l,tro:c}=e;c.observe((()=>{if(t!==l){if(D(l)||_r(e),c=t,!Xt.has(c))throw new TypeError(`Invalid template returned by the render() method on ${e}. It must return an imported template (e.g.: \`import html from "./${e.def.name}.html"\`), instead, it has returned: ${W(t)}.`);e.cmpTemplate=t,o.tplCache=r(null),o.hasScopedStyles=function(e){const{stylesheets:t}=e;if(!_(t))for(let e=0;e<t.length;e++)if($(t[e].$scoped$))return!0;return!1}(t),function(e,t){const{elm:n,context:r,renderer:o,renderMode:i,shadowMode:s}=e,{stylesheets:l,stylesheetToken:c}=t,a=1===i&&1===s,{hasScopedStyles:u}=r;let d,f,p;const{stylesheetToken:h,hasTokenInClass:m,hasTokenInAttribute:g}=r;m&&o.getClassList(n).remove(In(h)),g&&o.removeAttribute(n,In(h)),_(l)||0===l.length||(d=c),_(d)||(u&&(o.getClassList(n).add(In(d)),f=!0),a&&(o.setAttribute(n,In(d),""),p=!0)),r.stylesheetToken=d,r.hasTokenInClass=f,r.hasTokenInAttribute=p}(e,t);const n=Fn(e,t);o.styleVNode=0===n.length?null:Bn(e,n)}var c;e.velements=[],qn=!0,i=t.call(void 0,Rn,n,s,o.tplCache);const{styleVNode:a}=o;D(a)||T.call(i,a)}))}),(()=>{qn=n,Xn=o,Gn(1,e)})),i}function Zn(e,t){if(!d(t)&&_(t.wcStack)){const n=function(e){const t=[];let n=e;for(;!D(n);)E.call(t,ge(n)),n=n.owner;return t.reverse().join("\n\t")}(e);i(t,"wcStack",{get:()=>n})}}let er=null;function tr(e){return er===e}function nr(e,t,n){const{component:r,callHook:o,owner:i}=e;Dr(e,i,F,(()=>{o(r,t,n)}),F)}function rr(e,t,n,r){const{callHook:o,owner:i}=e;Dr(e,i,F,(()=>{o(n,t,[r])}),F)}const or=new Map;function ir(e){return new pe((()=>{const{isDirty:t}=e;R(t)&&(lr(e),function(e){if($(e.renderer.ssr)||$(e.isScheduled))return;e.isScheduled=!0,0===xr.length&&ce(Ar);E.call(xr,e)}(e))}))}function sr(e){e.tro.reset();const t=function(e){const{def:{render:t},callHook:n,component:r,owner:o}=e,i=Yn();let s,l=!1;return Dr(e,o,(()=>{Jn(e)}),(()=>{e.tro.observe((()=>{s=n(r,t),l=!0}))}),(()=>{Jn(i)})),l?Qn(e,s):[]}(e);return e.isDirty=!1,e.isScheduled=!1,t}function lr(e){e.isDirty=!0}const cr=new WeakMap;function ar(e,t){if(!I(t))throw new TypeError;let n=cr.get(t);return _(n)&&(n=function(n){rr(e,t,void 0,n)},cr.set(t,n)),n}const ur=r(null),dr=["rendered","connected","disconnected"];function fr(e,t){const{component:n,def:r,context:o}=e;for(let e=0,i=t.length;e<i;++e)t[e].call(void 0,n,{},r,o)}let pr=0;const hr=new WeakMap;function mr(e,t,n=[]){return t.apply(e,n)}function gr(e,t,n){e[t]=n}function wr(e,t){return e[t]}function yr(e){Tr(e)}function br(e){const t=Sr(e);Un(7,t),1===t.state&&vr(e),Pr(t),Tr(t),zn(7,t)}function vr(e){Er(Sr(e))}function Er(e){const{state:t}=e;if(2!==t){const{oar:t,tro:n}=e;n.reset();for(const e in t)t[e].reset();!function(e){R(e.isDirty)&&(e.isDirty=!0);e.state=2;const{disconnected:t}=ur;t&&fr(e,t);Nr(e)&&function(e){const{wiredDisconnecting:t}=e.context;Dr(e,e,F,(()=>{for(let e=0,n=t.length;e<n;e+=1)t[e]()}),F)}(e);const{disconnectedCallback:n}=e.def;_(n)||(Kn(5,e),nr(e,n),Gn(5,e))}(e),Or(e),function(e){const{aChildren:t}=e;Lr(t)}(e)}}function Cr(e,t,n){const{mode:o,owner:i,renderer:s,tagName:l}=n,c={elm:e,def:t,idx:pr++,state:0,isScheduled:!1,isDirty:!0,tagName:l,mode:o,owner:i,renderer:s,children:se,aChildren:se,velements:se,cmpProps:r(null),cmpFields:r(null),cmpSlots:r(null),oar:r(null),cmpTemplate:null,renderMode:t.renderMode,shadowMode:null,context:{stylesheetToken:void 0,hasTokenInClass:void 0,hasTokenInAttribute:void 0,hasScopedStyles:void 0,styleVNode:null,tplCache:ie,wiredConnecting:se,wiredDisconnecting:se},tro:null,component:null,cmpRoot:null,callHook:mr,setHook:gr,getHook:wr};return c.shadowMode=function(e){const{def:t,renderer:n}=e,{isNativeShadowDefined:r,isSyntheticShadowDefined:o}=n;let i;if(o)if(0===t.renderMode)i=0;else if(r)if("any"===t.shadowSupportMode)i=0;else{const t=function(e){let t=e.owner;for(;!D(t)&&0===t.renderMode;)t=t.owner;return t}(e);i=D(t)||0!==t.shadowMode?1:0}else i=1;else i=0;return i}(c),c.tro=ir(c),function(e,t){const n=er;let r;Kn(0,e),er=e;try{const o=new t;if(er.component!==o)throw new TypeError("Invalid component constructor, the class should extend LightningElement.")}catch(e){r=Object(e)}finally{if(Gn(0,e),er=n,!_(r))throw Zn(e,r),r}}(c,t.ctor),Nr(c)&&function(e){const{context:t,def:{wire:n}}=e,r=t.wiredConnecting=[],o=t.wiredDisconnecting=[];for(const t in n){const i=n[t],s=Rr.get(i);if(!_(s)){const{connector:n,computeConfigAndUpdate:i,resetConfigWatcher:l}=Hr(e,t,s),c=s.dynamic.length>0;E.call(r,(()=>{n.connect(),re.ENABLE_WIRE_SYNC_EMIT||!c?i():Promise.resolve().then(i)})),E.call(o,(()=>{n.disconnect(),l()}))}}}(c),c}function kr(e,t){hr.set(e,t)}function Sr(e){return hr.get(e)}function Mr(e){return hr.get(e)}function Tr(e){if($(e.isDirty)){!function(e,t){const{children:n}=e;if(e.children=t,(t.length>0||n.length>0)&&n!==t){const r=Cn(t)?qe:Xe;Dr(e,e,(()=>{Kn(2,e)}),(()=>{const o=$r(e);r(o,n,t)}),(()=>{Gn(2,e)}))}1===e.state&&function(e){const{renderer:t,def:{renderedCallback:n}}=e;if($(t.ssr))return;const{rendered:r}=ur;r&&fr(e,r);_(n)||(Kn(4,e),nr(e,n),Gn(4,e))}(e)}(e,sr(e))}}let xr=[];function Ar(){Un(8);const e=xr.sort(((e,t)=>e.idx-t.idx));xr=[];for(let t=0,n=e.length;t<n;t+=1){const r=e[t];try{Tr(r)}catch(r){throw t+1<n&&(0===xr.length&&ce(Ar),T.apply(xr,S.call(e,t+1))),zn(8),r}}zn(8)}function Pr(e){const{state:t}=e;if(1===t)return;e.state=1;const{connected:n}=ur;n&&fr(e,n),Nr(e)&&function(e){const{wiredConnecting:t}=e.context;for(let e=0,n=t.length;e<n;e+=1)t[e]()}(e);const{connectedCallback:r}=e.def;_(r)||(Kn(3,e),nr(e,r),Gn(3,e))}function Nr(e){return c(e.def.wire).length>0}function Or(e){const{velements:t}=e;for(let e=t.length-1;e>=0;e-=1){const{elm:n}=t[e];if(!_(n)){const e=Mr(n);_(e)||Er(e)}}}function Lr(e){for(let t=0,n=e.length;t<n;t+=1){const n=e[t];D(n)||!m(n.children)||_(n.elm)||(_(n.ctor)?Lr(n.children):Er(Sr(n.elm)))}}function _r(e){const{children:t,renderer:n}=e,r=$r(e);for(let e=0,o=t.length;e<o;e++){const o=t[e];D(o)||_(o.elm)||n.remove(o.elm,r)}e.children=se,Or(e),e.velements=se}function Dr(e,t,n,r,o){let i;n();try{r()}catch(e){i=Object(e)}finally{if(o(),!_(i)){Zn(e,i);const n=D(t)?void 0:function(e){let t=e;for(;!D(t);){if(!_(t.def.errorCallback))return t;t=t.owner}}(t);if(_(n))throw i;_r(e),Kn(6,e);nr(n,n.def.errorCallback,[i,i.wcStack]),Gn(6,e)}}}function $r(e){return 1===e.renderMode?e.cmpRoot:e.elm}const Rr=new Map;class Ir extends CustomEvent{constructor(e,{setNewContext:t,setDisconnectedCallback:n}){super(e,{bubbles:!0,composed:!0}),o(this,{setNewContext:{value:t},setDisconnectedCallback:{value:n}})}}function Hr(e,t,n){const{method:r,adapter:o,configCallback:s,dynamic:l}=n,c=_(r)?function(e,t){const{cmpFields:n}=e;return r=>{r!==e.cmpFields[t]&&(n[t]=r,he(e,t))}}(e,t):function(e,t){return n=>{Dr(e,e.owner,F,(()=>{t.call(e.component,n)}),F)}}(e,r);let a,u;i(c,"$$DeprecatedWiredElementHostKey$$",{value:e.elm}),i(c,"$$DeprecatedWiredParamsMetaKey$$",{value:l}),Dr(e,e,F,(()=>{u=new o(c)}),F);const{computeConfigAndUpdate:d,ro:f}=function(e,t,n){let r=!1;const o=new pe((()=>{!1===r&&(r=!0,Promise.resolve().then((()=>{r=!1,o.reset(),i()})))})),i=()=>{let r;o.observe((()=>r=t(e))),n(r)};return{computeConfigAndUpdate:i,ro:o}}(e.component,s,(t=>{Dr(e,e,F,(()=>{u.update(t,a)}),F)}));return _(o.contextSchema)||function(e,t,n){const{adapter:r}=t,o=Br(r);if(_(o))return;const{elm:i,renderer:s,context:{wiredConnecting:l,wiredDisconnecting:c}}=e;E.call(l,(()=>{const e=new Ir(o,{setNewContext(e){n(e)},setDisconnectedCallback(e){E.call(c,e)}});s.dispatchEvent(i,e)}))}(e,n,(t=>{a!==t&&(a=t,1===e.state&&d())})),{connector:u,computeConfigAndUpdate:d,resetConfigWatcher:()=>f.reset()}}const Fr=new Map;function Br(e){return Fr.get(e)}function Wr(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,method:e.value,configCallback:n,dynamic:r};Rr.set(e,o)}function jr(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,configCallback:n,dynamic:r};Rr.set(e,o)}const Vr=r(null),Kr=document.head||document.body||document,Gr=I(CSSStyleSheet.prototype.replaceSync),Ur=r(null),zr=r(null),qr=new WeakMap;let Xr,Yr,Jr;if(function(){if("undefined"==typeof customElements)return!1;try{const e=HTMLElement;class t extends e{}return customElements.define("lwc-test-"+Math.floor(1e6*Math.random()),t),new t,!0}catch(e){return!1}}())Xr=customElements.get.bind(customElements),Yr=customElements.define.bind(customElements),Jr=HTMLElement;else{const e=r(null),t=new WeakMap;Yr=function(n,r){if(n!==L.call(n)||e[n])throw new TypeError("Invalid Registration");e[n]=r,t.set(r,n)},Xr=function(t){return e[t]},Jr=function e(){if(!(this instanceof e))throw new TypeError("Invalid Invocation");const{constructor:n}=this,r=t.get(n);if(!r)throw new TypeError("Invalid Construction");const o=document.createElement(r);return h(o,n.prototype),o},Jr.prototype=HTMLElement.prototype}const Qr={ssr:!1,isNativeShadowDefined:U.$isNativeShadowRootDefined$,isSyntheticShadowDefined:u.call(Element.prototype,"$shadowToken$"),createElement:(e,t)=>_(t)?document.createElement(e):document.createElementNS(t,e),createText:e=>document.createTextNode(e),createComment:e=>document.createComment(e),insert(e,t,n){t.insertBefore(e,n)},remove(e,t){t.removeChild(e)},nextSibling:e=>e.nextSibling,attachShadow:(e,t)=>e.attachShadow(t),setText(e,t){e.nodeValue=t},getProperty:(e,t)=>e[t],setProperty(e,t,n){e[t]=n},getAttribute:(e,t,n)=>_(n)?e.getAttribute(t):e.getAttributeNS(n,t),setAttribute:(e,t,n,r)=>_(r)?e.setAttribute(t,n):e.setAttributeNS(r,t,n),removeAttribute(e,t,n){_(n)?e.removeAttribute(t):e.removeAttributeNS(n,t)},addEventListener(e,t,n,r){e.addEventListener(t,n,r)},removeEventListener(e,t,n,r){e.removeEventListener(t,n,r)},dispatchEvent:(e,t)=>e.dispatchEvent(t),getClassList:e=>e.classList,setCSSStyleProperty(e,t,n,r){e.style.setProperty(t,n,r?"important":"")},getBoundingClientRect:e=>e.getBoundingClientRect(),querySelector:(e,t)=>e.querySelector(t),querySelectorAll:(e,t)=>e.querySelectorAll(t),getElementsByTagName:(e,t)=>e.getElementsByTagName(t),getElementsByClassName:(e,t)=>e.getElementsByClassName(t),isConnected:e=>e.isConnected,insertGlobalStylesheet(e){if(!_(Vr[e]))return;Vr[e]=!0;const t=document.createElement("style");t.type="text/css",t.textContent=e,Kr.appendChild(t)},insertStylesheet(e,t){Gr?function(e,t){let n=zr[e];_(n)&&(n=new CSSStyleSheet,n.replaceSync(e),zr[e]=n),t.adoptedStyleSheets.includes(n)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,n])}(e,t):function(e,t){let n=qr.get(t);if(_(n)&&(n=r(null),qr.set(t,n)),n[e])return;n[e]=!0;let o=Ur[e];_(o)?(o=document.createElement("style"),o.type="text/css",o.textContent=e,Ur[e]=o):o=o.cloneNode(!0),t.appendChild(o)}(e,t)},assertInstanceOfHTMLElement(e,n){t.invariant(e instanceof HTMLElement,n)},defineCustomElement:Yr,getCustomElement:Xr,HTMLElement:Jr};const Zr=Node,eo=new WeakMap,to=new WeakMap;function no(e,t){const n=t.get(e);return _(n)||n(e),e}const{appendChild:ro,insertBefore:oo,removeChild:io,replaceChild:so}=Zr.prototype;n(Zr.prototype,{appendChild(e){return no(ro.call(this,e),eo)},insertBefore(e,t){return no(oo.call(this,e,t),eo)},removeChild(e){return no(io.call(this,e),to)},replaceChild(e,t){const n=so.call(this,e,t);return no(n,to),no(e,eo),n}});const lo=Node;const co=new Map;function ao(e){if(e===Ht)throw new TypeError("Invalid Constructor. LightningElement base class can't be claimed as a custom element.");let t=co.get(e);return _(t)&&(t=function(e){const t=dn(e);return class extends t.bridge{constructor(){super(),Cr(this,t,{mode:"open",owner:null,tagName:this.tagName,renderer:Qr})}connectedCallback(){br(this)}disconnectedCallback(){vr(this)}}}(e),co.set(e,t)),t}i(Ht,"CustomElementConstructor",{get(){return ao(this)}}),s(Ht),p(Ht.prototype),e.LightningElement=Ht,e.__unstable__ProfilerControl=Vn,e.api=function(){throw new Error},e.buildCustomElementConstructor=function(e){return e.CustomElementConstructor},e.createContextProvider=function(e){let t=Br(e);if(!_(t))throw new Error("Adapter already has a context provider.");t=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}(),function(e,t){Fr.set(e,t)}(e,t);const n=new WeakSet;return(e,r)=>{if(n.has(e))throw new Error(`Adapter was already installed on ${e}.`);n.add(e);const{consumerConnectedCallback:o,consumerDisconnectedCallback:i}=r;e.addEventListener(t,(e=>{const{setNewContext:t,setDisconnectedCallback:n}=e,r={provide(e){t(e)}};n((()=>{_(i)||i(r)})),o(r),e.stopImmediatePropagation()}))}},e.createElement=function(e,t){if("object"!=typeof t||D(t))throw new TypeError(`"createElement" function expects an object as second parameter but received "${W(t)}".`);const n=t.is;if(!I(n))throw new TypeError('"createElement" function expects an "is" option with a valid component constructor.');const r=kn(e,Qr);let o=!1;const i=new r((r=>{Cr(r,dn(n),{tagName:e,mode:"closed"!==t.mode?"open":"closed",owner:null,renderer:Qr}),eo.set(r,br),to.set(r,vr),o=!0}));return o||console.error(`Unexpected tag name "${e}". This name is a registered custom element, preventing LWC to upgrade the element.`),i},e.getComponentConstructor=function(e){let t=null;if(e instanceof HTMLElement){const n=Mr(e);_(n)||(t=n.def.ctor)}return t},e.getComponentDef=function(e){const t=dn(e),{ctor:n,name:r,props:o,propsConfig:i,methods:s}=t,l={};for(const e in o)l[e]={config:i[e]||0,type:"any",attr:X(e)};const c={};for(const e in s)c[e]=s[e].value;return{ctor:n,name:r,props:l,methods:c}},e.isComponentConstructor=un,e.isNodeFromTemplate=function(e){return!R(e instanceof lo)&&(!(e instanceof ShadowRoot)&&(Qr.isSyntheticShadowDefined?!_(e.$shadowResolver$):e.getRootNode()instanceof ShadowRoot))},e.readonly=function(e){return Rt.getReadOnlyProxy(e)},e.register=function(e){for(let t=0;t<dr.length;++t){const n=dr[t];if(n in e){let t=ur[n];_(t)&&(ur[n]=t=[]),E.call(t,e[n])}}},e.registerComponent=function(e,{tmpl:t}){return or.set(e,t),e},e.registerDecorators=function(e,t){const n=e.prototype,{publicProps:o,publicMethods:s,wire:c,track:a,fields:u}=t,d=r(null),f=r(null),p=r(null),h=r(null),m=r(null),g=r(null);let w;if(!_(o))for(const e in o){const t=o[e];if(g[e]=t.config,w=l(n,e),t.config>0){if(_(w))throw new Error;w=Gt(e,w)}else w=Vt(e);f[e]=w,i(n,e,w)}if(_(s)||x.call(s,(e=>{if(w=l(n,e),_(w))throw new Error;d[e]=w})),!_(c))for(const e in c){const{adapter:t,method:r,config:o,dynamic:s=[]}=c[e];if(w=l(n,e),1===r){if(_(w))throw new Error;p[e]=w,Wr(w,t,o,s)}else w=Wt(e),h[e]=w,jr(w,t,o,s),i(n,e,w)}if(!_(a))for(const e in a)w=l(n,e),w=jt(e),i(n,e,w);if(!_(u))for(let e=0,t=u.length;e<t;e++){const t=u[e];w=l(n,t),m[t]=Ut(t)}return function(e,t){zt.set(e,t)}(e,{apiMethods:d,apiFields:f,apiFieldsConfig:g,wiredMethods:p,wiredFields:h,observedFields:m}),e},e.registerTemplate=function(e){return Xt.add(e),e},e.sanitizeAttribute=function(e,t,n,r){return r},e.setFeatureFlag=function(e,t){if("boolean"==typeof t){if(_(ne[e])){const n=f(ne).map((e=>`"${e}"`)).join(", ");console.warn(`Failed to set the value "${t}" for the runtime feature flag "${e}" because it is undefined. Available flags: ${n}.`)}else{const n=re[e];if(!_(n))return void console.error(`Failed to set the value "${t}" for the runtime feature flag "${e}". "${e}" has already been set with the value "${n}".`);i(re,e,{value:t})}}else{const n=`Failed to set the value "${t}" for the runtime feature flag "${e}". Runtime feature flags can only be set to a boolean value.`;console.error(n)}},e.setFeatureFlagForTest=function(e,t){},e.swapComponent=function(e,t){if(!re.ENABLE_HMR)throw new Error("HMR is not enabled");return!1},e.swapStyle=function(e,t){if(!re.ENABLE_HMR)throw new Error("HMR is not enabled");return!1},e.swapTemplate=function(e,t){if(!re.ENABLE_HMR)throw new Error("HMR is not enabled");return!1},e.track=function(e){if(1===arguments.length)return Rt.getProxy(e);throw new Error},e.unwrap=function(e){const t=Rt.unwrapProxy(e);return t!==e?t:e},e.wire=function(e,t){throw new Error},Object.defineProperty(e,"__esModule",{value:!0})}));