lwc 2.5.1 → 2.5.4
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.
- package/dist/engine-dom/esm/es2017/engine-dom.js +84 -73
- package/dist/engine-dom/iife/es2017/engine-dom.js +85 -74
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +68 -55
- package/dist/engine-dom/iife/es5/engine-dom.js +125 -93
- package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -2
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +106 -72
- package/dist/engine-dom/umd/es2017/engine-dom.js +86 -75
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +69 -56
- package/dist/engine-dom/umd/es5/engine-dom.js +126 -94
- package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +107 -73
- package/dist/engine-server/commonjs/es2017/engine-server.js +66 -73
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +2 -2
- package/dist/engine-server/esm/es2017/engine-server.js +66 -73
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +75 -39
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +76 -40
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +75 -39
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +76 -40
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +75 -39
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +77 -41
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +76 -40
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +77 -41
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +76 -40
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js +3 -3
- package/dist/wire-service/iife/es2017/wire-service_debug.js +3 -3
- package/dist/wire-service/iife/es5/wire-service.js +3 -3
- package/dist/wire-service/iife/es5/wire-service.min.js +1 -1
- package/dist/wire-service/iife/es5/wire-service_debug.js +3 -3
- package/dist/wire-service/umd/es2017/wire-service.js +4 -4
- package/dist/wire-service/umd/es2017/wire-service_debug.js +4 -4
- package/dist/wire-service/umd/es5/wire-service.js +4 -4
- package/dist/wire-service/umd/es5/wire-service.min.js +1 -1
- package/dist/wire-service/umd/es5/wire-service_debug.js +4 -4
- package/package.json +8 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const{assign:e,create:t,defineProperties:n,defineProperty:r,freeze:o,getOwnPropertyDescriptor:i,getOwnPropertyNames:s,getPrototypeOf:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const{assign:e,create:t,defineProperties:n,defineProperty:r,freeze:o,getOwnPropertyDescriptor:i,getOwnPropertyNames:s,getPrototypeOf:l,hasOwnProperty:a,isFrozen:c,keys:u,seal:d,setPrototypeOf:f}=Object,{isArray:p}=Array,{filter:h,find:m,indexOf:g,join:w,map:y,push:b,reduce:v,reverse:C,slice:E,splice:k,unshift:S,forEach:x}=Array.prototype,{fromCharCode:M}=String,{charCodeAt:T,replace:A,slice:O,toLowerCase:P}=String.prototype;function L(e){return void 0===e}function N(e){return null===e}function $(e){return!0===e}function D(e){return!1===e}function _(e){return"function"==typeof e}function F(e){return"string"==typeof e}function R(){}const I={}.toString;function H(e){return e&&e.toString?p(e)?w.call(y.call(e,H),","):e.toString():"object"==typeof e?I.call(e):e+""}function B(e,t){do{const n=i(e,t);if(!L(n))return n;e=l(e)}while(null!==e)}const j=["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:W,AriaPropNameToAttrNameMap:V}=(()=>{const e=t(null),n=t(null);return x.call(j,(t=>{const r=P.call(A.call(t,/^aria/,(()=>"aria-")));e[r]=t,n[t]=r})),{AriaAttrNameToPropNameMap:e,AriaPropNameToAttrNameMap:n}})();function K(e){return e in W}const G=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 Set(["area","base","br","circle","col","ellipse","feBlend","feColorMatrix","feFuncR","feFuncG","feFuncB","feFuncA","feImage","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","fePointLight","embed","hr","img","input","keygen","line","link","menuitem","meta","param","rect","source","track","wbr"]);const q=new Map([["autofocus",new Set(["button","input","keygen","select","textarea"])],["autoplay",new Set(["audio","video"])],["checked",new Set(["command","input"])],["disabled",new Set(["button","command","fieldset","input","keygen","optgroup","select","textarea"])],["formnovalidate",new Set(["button"])],["hidden",new Set],["loop",new Set(["audio","bgsound","marquee","video"])],["multiple",new Set(["input","select"])],["muted",new Set(["audio","video"])],["novalidate",new Set(["form"])],["open",new Set(["details"])],["readonly",new Set(["input","textarea"])],["required",new Set(["input","select","textarea"])],["reversed",new Set(["ol"])],["selected",new Set(["option"])]]);function U(e,t){const n=q.get(e);return void 0!==n&&(0===n.size||n.has(t))}const X=new Set(["role","accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","itemprop","lang","slot","spellcheck","style","tabindex","title"]);function Y(e){return X.has(e)}const J=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 Z(e){const t=V[e];if(!L(t))return t;const n=J.get(e);if(!L(n))return n;const r=Q.get(e);if(!L(r))return r;let o="";for(let t=0,n=e.length;t<n;t++){const n=T.call(e,t);o+=n>=65&&n<=90?"-"+M(n+32):M(n)}return Q.set(e,o),o}if("function"!=typeof Event&&"function"!=typeof CustomEvent){class e{}class t extends e{}n(G,{Event:{value:e,configurable:!0,writable:!0},CustomEvent:{value:t,configurable:!0,writable:!0}})}const ee={ENABLE_REACTIVE_SETTER:null,ENABLE_HMR:null,ENABLE_INNER_OUTER_TEXT_PATCH:null,ENABLE_ELEMENT_PATCH:null,ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST: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};G.lwcRuntimeFlags||Object.defineProperty(G,"lwcRuntimeFlags",{value:t(null)});const te=G.lwcRuntimeFlags;let ne=[];const re=d(t(null)),oe=d([]);function ie(){const e=ne;ne=[];for(let t=0,n=e.length;t<n;t+=1)e[t]()}function se(e){0===ne.length&&Promise.resolve().then(ie),b.call(ne,e)}const le=new WeakMap;let ae=null;function ce(e,t){const n=le.get(e);if(!L(n)){const e=n[t];if(!L(e))for(let t=0,n=e.length;t<n;t+=1){e[t].notify()}}}function ue(e,n){if(null===ae)return;const r=ae,o=function(e){let n=le.get(e);if(L(n)){const r=t(null);n=r,le.set(e,r)}return n}(e);let i=o[n];if(L(i))i=[],o[n]=i;else if(i[0]===r)return;-1===g.call(i,r)&&r.link(i)}class de{constructor(e){this.listeners=[],this.callback=e}observe(e){const t=ae;let n;ae=this;try{e()}catch(e){n=Object(e)}finally{if(ae=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=g.call(e[n],this);k.call(t,r,1)}e.length=0}}notify(){this.callback.call(void 0,this)}link(e){b.call(e,this),b.call(this.listeners,e)}}function fe(e,t){ce(e.component,t)}function pe(e,t){ue(e.component,t)}function he(e){return`<${P.call(e.tagName)}>`}function me(e){const{elm:t,data:{on:n},owner:{renderer:r}}=e;if(L(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 ge={update:function(e,t){L(e.listener)?me(t):(t.listener=e.listener,t.listener.vnode=t)},create:me};function we(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.`}e(t(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:we("offsetHeight")},offsetLeft:{readOnly:!0,error:we("offsetLeft")},offsetParent:{readOnly:!0},offsetTop:{readOnly:!0,error:we("offsetTop")},offsetWidth:{readOnly:!0,error:we("offsetWidth")},role:{attribute:"role"}});let ye,be=null;function ve(e,t){return e!==be||t!==ye}function Ce(e,t){be=null,ye=void 0}function Ee(e,t){be=e,ye=t}function ke(e,t){const{data:{attrs:n},owner:{renderer:r}}=t;if(L(n))return;let{data:{attrs:o}}=e;if(o===n)return;const i=t.elm,{setAttribute:s,removeAttribute:l}=r;let a;for(a in o=L(o)?re:o,n){const e=n[a];o[a]!==e&&(Ee(i,a),58===T.call(a,3)?s(i,a,e,"http://www.w3.org/XML/1998/namespace"):58===T.call(a,5)?s(i,a,e,"http://www.w3.org/1999/xlink"):N(e)?l(i,a):s(i,a,e),Ce())}}const Se={data:{}};var xe={create:e=>ke(Se,e),update:ke};function Me(e,t){return"input"===e&&("value"===t||"checked"===t)}function Te(e,t){const n=t.data.props;if(L(n))return;const r=e.data.props;if(r===n)return;const o=L(r),{elm:i,sel:s,owner:{renderer:l}}=t;for(const e in n){const t=n[e];(o||t!==(Me(s,e)?l.getProperty(i,e):r[e]))&&l.setProperty(i,e,t)}}const Ae={data:{}};var Oe={create:e=>Te(Ae,e),update:Te};const Pe=t(null);function Le(e){if(null==e)return re;e=F(e)?e:e+"";let n=Pe[e];if(n)return n;n=t(null);let r,o=0;const i=e.length;for(r=0;r<i;r++)32===T.call(e,r)&&(r>o&&(n[O.call(e,o,r)]=!0),o=r+1);return r>o&&(n[O.call(e,o,r)]=!0),Pe[e]=n,n}function Ne(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=Le(r),a=Le(i);let c;for(c in a)L(l[c])&&s.remove(c);for(c in l)L(a[c])&&s.add(c)}const $e={data:{}};var De={create:e=>Ne($e,e),update:Ne};function _e(e,t){const{elm:n,data:{style:r},owner:{renderer:o}}=t,{setAttribute:i,removeAttribute:s}=o;e.data.style!==r&&(F(r)&&""!==r?i(n,"style",r):s(n,"style"))}const Fe={data:{}};var Re={create:e=>_e(Fe,e),update:_e};var Ie={create:function(e){const{elm:t,data:{classMap:n},owner:{renderer:r}}=e;if(L(n))return;const o=r.getClassList(t);for(const e in n)o.add(e)}};var He={create:function(e){const{elm:t,data:{styleDecls:n},owner:{renderer:r}}=e;if(!L(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 @@ This code may only be used under the MIT License found at
|
|
|
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 He(e){return void 0===e}function je(e,t){return e.key===t.key&&e.sel===t.sel}function We(e){return null!=e}function Ve(e,t,n){const r={};let o,i,s;for(o=t;o<=n;++o)s=e[o],We(s)&&(i=s.key,void 0!==i&&(r[i]=o));return r}function Ke(e,t,n,r,o){for(;r<=o;++r){const o=n[r];We(o)&&(o.hook.create(o),o.hook.insert(o,e,t))}}function Ge(e,t,n,r){for(;n<=r;++n){const r=t[n];We(r)&&r.hook.remove(r,e)}}function qe(e,t,n){let r=0,o=0,i=t.length-1,s=t[0],a=t[i];const l=n.length-1;let c,u,d,f,p=l,h=n[0],m=n[p];for(;r<=i&&o<=p;)We(s)?We(a)?We(h)?We(m)?je(s,h)?(Ue(s,h),s=t[++r],h=n[++o]):je(a,m)?(Ue(a,m),a=t[--i],m=n[--p]):je(s,m)?(Ue(s,m),m.hook.move(s,e,a.owner.renderer.nextSibling(a.elm)),s=t[++r],m=n[--p]):je(a,h)?(Ue(a,h),h.hook.move(a,e,s.elm),a=t[--i],h=n[++o]):(void 0===c&&(c=Ve(t,r,i)),u=c[h.key],He(u)?(h.hook.create(h),h.hook.insert(h,e,s.elm),h=n[++o]):(d=t[u],We(d)&&(d.sel!==h.sel?(h.hook.create(h),h.hook.insert(h,e,s.elm)):(Ue(d,h),t[u]=void 0,h.hook.move(d,e,s.elm))),h=n[++o])):m=n[--p]:h=n[++o]:a=t[--i]:s=t[++r];if(r<=i||o<=p)if(r>i){let t,r=p;do{t=n[++r]}while(!We(t)&&r<l);f=We(t)?t.elm:null,Ke(e,f,n,o,p)}else Ge(e,t,r,i)}function ze(e,t,n){const r=t.length,o=n.length;if(0===r)return void Ke(e,null,n,0,o);if(0===o)return void Ge(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&&(We(s)?We(o)?(Ue(s,o),i=o.elm):s.hook.remove(s,e):We(o)&&(o.hook.create(o),o.hook.insert(o,e,i),i=o.elm))}}function Ue(e,t){e!==t&&(t.elm=e.elm,t.hook.update(e,t))}const Xe="undefined"!=typeof HTMLElement?HTMLElement:function(){},Ye=Xe.prototype,Je=t(null);x.call(u(V),(e=>{const t=H(Ye,e);$(t)||(Je[e]=t)})),x.call(["accessKey","dir","draggable","hidden","id","lang","spellcheck","tabIndex","title"],(e=>{const t=H(Ye,e);$(t)||(Je[e]=t)}));const{isArray:Qe}=Array,{getPrototypeOf:Ze,create:et,defineProperty:tt,defineProperties:nt,isExtensible:rt,getOwnPropertyDescriptor:ot,getOwnPropertyNames:it,getOwnPropertySymbols:st,preventExtensions:at,hasOwnProperty:lt}=Object,{push:ct,concat:ut,map:dt}=Array.prototype;function ft(e){return void 0===e}function pt(e){return"function"==typeof e}const ht=new WeakMap;function mt(e,t){ht.set(e,t)}const gt=e=>ht.get(e)||e;class wt{constructor(e,t){this.originalTarget=t,this.membrane=e}wrapDescriptor(e){if(lt.call(e,"value"))e.value=this.wrapValue(e.value);else{const{set:t,get:n}=e;ft(n)||(e.get=this.wrapGetter(n)),ft(t)||(e.set=this.wrapSetter(t))}return e}copyDescriptorIntoShadowTarget(e,t){const{originalTarget:n}=this,r=ot(n,t);if(!ft(r)){const n=this.wrapDescriptor(r);tt(e,t,n)}}lockShadowTarget(e){const{originalTarget:t}=this;ut.call(it(t),st(t)).forEach((t=>{this.copyDescriptorIntoShadowTarget(e,t)}));const{membrane:{tagPropertyKey:n}}=this;ft(n)||lt.call(e,n)||tt(e,n,et(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=ft(n)||lt.call(t,n)?[]:[n];return ct.apply(r,it(t)),ct.apply(r,st(t)),r}isExtensible(e){const{originalTarget:t}=this;return!!rt(e)&&(!!rt(t)||(this.lockShadowTarget(e),!1))}getPrototypeOf(e){const{originalTarget:t}=this;return Ze(t)}getOwnPropertyDescriptor(e,t){const{originalTarget:n,membrane:{valueObserved:r,tagPropertyKey:o}}=this;r(n,t);let i=ot(n,t);if(ft(i)){if(t!==o)return;return i={value:void 0,writable:!1,configurable:!1,enumerable:!1},tt(e,o,i),i}return!1===i.configurable&&this.copyDescriptorIntoShadowTarget(e,t),this.wrapDescriptor(i)}}const yt=new WeakMap,bt=new WeakMap,vt=new WeakMap,Et=new WeakMap;class Ct extends wt{wrapValue(e){return this.membrane.getProxy(e)}wrapGetter(e){const t=yt.get(e);if(!ft(t))return t;const n=this,r=function(){return n.wrapValue(e.call(gt(this)))};return yt.set(e,r),vt.set(r,e),r}wrapSetter(e){const t=bt.get(e);if(!ft(t))return t;const n=function(t){e.call(gt(this),gt(t))};return bt.set(e,n),Et.set(n,e),n}unwrapDescriptor(e){if(lt.call(e,"value"))e.value=gt(e.value);else{const{set:t,get:n}=e;ft(n)||(e.get=this.unwrapGetter(n)),ft(t)||(e.set=this.unwrapSetter(t))}return e}unwrapGetter(e){const t=vt.get(e);if(!ft(t))return t;const n=this,r=function(){return gt(e.call(n.wrapValue(this)))};return yt.set(r,e),vt.set(e,r),r}unwrapSetter(e){const t=Et.get(e);if(!ft(t))return t;const n=this,r=function(t){e.call(n.wrapValue(this),n.wrapValue(t))};return bt.set(r,e),Et.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&&Qe(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(rt(e)){const{originalTarget:t}=this;if(at(t),rt(t))return!1;this.lockShadowTarget(e)}return!0}defineProperty(e,t,n){const{originalTarget:r,membrane:{valueMutated:o,tagPropertyKey:i}}=this;return t===i&&!lt.call(r,t)||(tt(r,t,this.unwrapDescriptor(n)),!1===n.configurable&&this.copyDescriptorIntoShadowTarget(e,t),o(r,t),!0)}}const kt=new WeakMap,St=new WeakMap;class xt extends wt{wrapValue(e){return this.membrane.getReadOnlyProxy(e)}wrapGetter(e){const t=kt.get(e);if(!ft(t))return t;const n=this,r=function(){return n.wrapValue(e.call(gt(this)))};return kt.set(e,r),r}wrapSetter(e){const t=St.get(e);if(!ft(t))return t;const n=function(e){};return St.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 Mt=Object.prototype;function Tt(e){if(null===e)return!1;if("object"!=typeof e)return!1;if(Qe(e))return!0;const t=Ze(e);return t===Mt||null===t||null===Ze(t)}const At=(e,t)=>{},Pt=(e,t)=>{},Ot=e=>e;function $t(e){return Qe(e)?[]:{}}const Nt=Symbol.for("@@lockerLiveValue");function Lt(e){return e}const Dt=new class{constructor(e){if(this.valueDistortion=Ot,this.valueMutated=Pt,this.valueObserved=At,this.valueIsObservable=Tt,this.objectGraph=new WeakMap,!ft(e)){const{valueDistortion:t,valueMutated:n,valueObserved:r,valueIsObservable:o,tagPropertyKey:i}=e;this.valueDistortion=pt(t)?t:Ot,this.valueMutated=pt(n)?n:Pt,this.valueObserved=pt(r)?r:At,this.valueIsObservable=pt(o)?o:Tt,this.tagPropertyKey=i}}getProxy(e){const t=gt(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=gt(e);const t=this.valueDistortion(e);return this.valueIsObservable(t)?this.getReactiveState(e,t).readOnly:t}unwrapProxy(e){return gt(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 Ct(o,t),r=new Proxy($t(t),n);return mt(r,e),tt(this,"reactive",{value:r}),r},get readOnly(){const n=new xt(o,t),r=new Proxy($t(t),n);return mt(r,e),tt(this,"readOnly",{value:r}),r}},n.set(t,r),r}}({valueObserved:ue,valueMutated:ce,valueDistortion:Lt,tagPropertyKey:Nt});function _t(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!_(n))throw new TypeError;if(!_(r))throw new TypeError;return{enumerable:o,configurable:i,get(){const t=pr(this);if(!Gn(t))return pe(t,e),n.call(t.elm)},set(t){const n=pr(this);return t!==n.cmpProps[e]&&(n.cmpProps[e]=t,fe(n,e)),r.call(n.elm,t)}}}const Rt=function(){if(N(Kn))throw new ReferenceError("Illegal constructor");const e=Kn,{def:t,elm:n,renderer:r}=e,{bridge:o}=t,i=this;if(f(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[Nt]=void 0,fr(i,e),fr(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,fr(s,e)}Rt.prototype={constructor:Rt,dispatchEvent(e){const{elm:t,renderer:{dispatchEvent:n}}=pr(this);return n(t,e)},addEventListener(e,t,n){const r=pr(this),{elm:o,renderer:{addEventListener:i}}=r;i(o,e,Zn(r,t),n)},removeEventListener(e,t,n){const r=pr(this),{elm:o,renderer:{removeEventListener:i}}=r;i(o,e,Zn(r,t),n)},hasAttribute(e){const{elm:t,renderer:{getAttribute:n}}=pr(this);return!N(n(t,e))},hasAttributeNS(e,t){const{elm:n,renderer:{getAttribute:r}}=pr(this);return!N(r(n,t,e))},removeAttribute(e){const{elm:t,renderer:{removeAttribute:n}}=pr(this);Ce(t,e),n(t,e),Ee()},removeAttributeNS(e,t){const{elm:n,renderer:{removeAttribute:r}}=pr(this);Ce(n,t),r(n,t,e),Ee()},getAttribute(e){const{elm:t,renderer:{getAttribute:n}}=pr(this);return n(t,e)},getAttributeNS(e,t){const{elm:n,renderer:{getAttribute:r}}=pr(this);return r(n,t,e)},setAttribute(e,t){const n=pr(this),{elm:r,renderer:{setAttribute:o}}=n;Ce(r,e),o(r,e,t),Ee()},setAttributeNS(e,t,n){const r=pr(this),{elm:o,renderer:{setAttribute:i}}=r;Ce(o,t),i(o,t,n,e),Ee()},getBoundingClientRect(){const e=pr(this),{elm:t,renderer:{getBoundingClientRect:n}}=e;return n(t)},querySelector(e){const t=pr(this),{elm:n,renderer:{querySelector:r}}=t;return r(n,e)},querySelectorAll(e){const t=pr(this),{elm:n,renderer:{querySelectorAll:r}}=t;return r(n,e)},getElementsByTagName(e){const t=pr(this),{elm:n,renderer:{getElementsByTagName:r}}=t;return r(n,e)},getElementsByClassName(e){const t=pr(this),{elm:n,renderer:{getElementsByClassName:r}}=t;return r(n,e)},get isConnected(){const{elm:e,renderer:{isConnected:t}}=pr(this);return t(e)},get classList(){const e=pr(this),{elm:t,renderer:{getClassList:n}}=e;return n(t)},get template(){return pr(this).cmpRoot},get shadowRoot(){return null},render(){return pr(this).def.template},toString(){return`[object ${pr(this).def.name}]`}};const It=t(null);for(const e in Je)It[e]=_t(e,Je[e]);function Bt(e){return{get(){const t=pr(this);return pe(t,e),t.cmpFields[e]},set(t){const n=pr(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,fe(n,e))},enumerable:!0,configurable:!0}}function Ht(e){return{get(){const t=pr(this);return pe(t,e),t.cmpFields[e]},set(t){const n=pr(this),r=Dt.getProxy(t);r!==n.cmpFields[e]&&(n.cmpFields[e]=r,fe(n,e))},enumerable:!0,configurable:!0}}function jt(e){return{get(){const t=pr(this);if(!Gn(t))return pe(t,e),t.cmpProps[e]},set(t){const n=pr(this);n.cmpProps[e]=t,fe(n,e)},enumerable:!0,configurable:!0}}n(Rt.prototype,It),r(Rt,"CustomElementConstructor",{get(){throw new ReferenceError("The current runtime does not support CustomElementConstructor.")},configurable:!0});class Wt extends de{constructor(e,t){super((()=>{D(this.debouncing)&&(this.debouncing=!0,se((()=>{if(L(this.debouncing)){const{value:n}=this,{isDirty:r,component:o,idx:i}=e;t.call(o,n),this.debouncing=!1,L(e.isDirty)&&D(r)&&i>0&&lr(e)}})))})),this.debouncing=!1}reset(e){super.reset(),this.debouncing=!1,arguments.length>0&&(this.value=e)}}function Vt(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!_(n))throw new Error;return{get(){return n.call(this)},set(t){const n=pr(this);if(r)if(te.ENABLE_REACTIVE_SETTER){let o=n.oar[e];$(o)&&(o=n.oar[e]=new Wt(n,r)),o.reset(t),o.observe((()=>{r.call(this,t)}))}else r.call(this,t)},enumerable:o,configurable:i}}function Kt(e){return{get(){const t=pr(this);return pe(t,e),t.cmpFields[e]},set(t){const n=pr(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,fe(n,e))},enumerable:!0,configurable:!0}}const Gt=new Map;const qt={apiMethods:re,apiFields:re,apiFieldsConfig:re,wiredMethods:re,wiredFields:re,observedFields:re};const zt=new Set;function Ut(){return[]}zt.add(Ut);const Xt=t(null),Yt=t(null);function Jt(e){let t=Xt[e];return $(t)&&(t=Xt[e]=function(){const t=pr(this),{getHook:n}=t;return n(t.component,e)}),t}function Qt(e){let t=Yt[e];return $(t)&&(t=Yt[e]=function(t){const n=pr(this),{setHook:r}=n;t=Dt.getReadOnlyProxy(t),r(n.component,e,t)}),t}function Zt(e){return function(){const t=pr(this),{callHook:n,component:r}=t,o=r[e];return n(t.component,o,C.call(arguments))}}function en(e,t){return function(n,r,o){if(r===o)return;const i=e[n];$(i)?$(t)||t.apply(this,arguments):ve(this,n)&&(this[i]=o)}}function tn(e,o,i){let s;_(e)?s=class extends e{}:(s=function(){throw new TypeError("Illegal constructor")},f(s,e),f(s.prototype,e.prototype),r(s.prototype,"constructor",{writable:!0,configurable:!0,value:s}));const a=t(null),{attributeChangedCallback:l}=e.prototype,{observedAttributes:c=[]}=e,d=t(null);for(let e=0,t=o.length;e<t;e+=1){const t=o[e];a[Z(t)]=t,d[t]={get:Jt(t),set:Qt(t),enumerable:!0,configurable:!0}}for(let e=0,t=i.length;e<t;e+=1){const t=i[e];d[t]={value:Zt(t),writable:!0,configurable:!0}}return d.attributeChangedCallback={value:en(a,l)},r(s,"observedAttributes",{get:()=>[...c,...u(a)]}),n(s.prototype,d),s}const nn=tn(Xe,s(Je),[]);function rn(e){const t=e();return(null==t?void 0:t.__esModule)?t.default:t}function on(e){return _(e)&&l.call(e,"__circular__")}o(nn),d(nn.prototype);const sn=new WeakMap;function an(r){const{shadowSupportMode:o,renderMode:i}=r,s=function(e){const t=Gt.get(e);return $(t)?qt:t}(r),{apiFields:l,apiFieldsConfig:c,apiMethods:d,wiredFields:f,wiredMethods:p,observedFields:h}=s,m=r.prototype;let{connectedCallback:g,disconnectedCallback:w,renderedCallback:y,errorCallback:b,render:v}=m;const E=function(e){let t=a(e);if(N(t))throw new ReferenceError(`Invalid prototype chain for ${e.name}, you must extend LightningElement.`);if(on(t)){const e=rn(t);t=e===t?Rt:e}return t}(r),C=E!==Rt?cn(E):un,k=tn(C.bridge,u(l),u(d)),S=e(t(null),C.props,l),x=e(t(null),C.propsConfig,c),M=e(t(null),C.methods,d),T=e(t(null),C.wire,f,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;$(o)||(A=o);let P=C.renderMode;$(i)||(P="light"===i?0:1);const O=function(e){return Un.get(e)}(r)||C.template,L=r.name||C.name;n(m,h);return{ctor:r,name:L,wire:T,props:S,propsConfig:x,methods:M,bridge:k,template:O,renderMode:P,shadowSupportMode:A,connectedCallback:g,disconnectedCallback:w,renderedCallback:y,errorCallback:b,render:v}}function ln(e){if(!_(e))return!1;if(e.prototype instanceof Rt)return!0;let t=e;do{if(on(t)){const e=rn(t);if(e===t)return!0;t=e}if(t===Rt)return!0}while(!N(t)&&(t=a(t)));return!1}function cn(e){let t=sn.get(e);if($(t)){if(on(e)){return t=cn(rn(e)),sn.set(e,t),t}if(!ln(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),sn.set(e,t)}return t}const un={ctor:Rt,name:Rt.name,props:It,propsConfig:re,methods:re,renderMode:1,shadowSupportMode:"default",wire:re,bridge:nn,template:Ut,render:Rt.prototype.render};function dn(e,t){e.$shadowToken$=t}function fn(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 pn(e,t){const{elm:n,text:r,owner:{renderer:o}}=t;e.text!==r&&o.setText(n,r)}function hn(e,t,n){const{renderer:r}=e.owner;r.insert(e.elm,t,n)}function mn(e,t){const{renderer:n}=e.owner;n.remove(e.elm,t)}function gn(e,t){const{children:n,owner:r}=t,o=vn(n)?qe:ze;kr(r,r.owner,F,(()=>{o(t.elm,e.children,n)}),F)}function wn(e,n){const r=e.aChildren||e.children;n.aChildren=r;const{renderMode:o,shadowMode:i}=n;1!==i&&0!==o||(!function(e,n){const{cmpSlots:r}=e,o=e.cmpSlots=t(null);for(let e=0,t=n.length;e<t;e+=1){const t=n[e];if(N(t))continue;const{data:r}=t,i=r.attrs&&r.attrs.slot||"",s=o[i]=o[i]||[];$(t.key)||(t.key=`@${i}:${t.key}`),b.call(s,t)}if(D(e.isDirty)){const t=u(r);if(t.length!==u(o).length)return void Jn(e);for(let n=0,i=t.length;n<i;n+=1){const i=t[n];if($(o[i])||r[i].length!==o[i].length)return void Jn(e);const s=r[i],a=o[i];for(let t=0,n=o[i].length;t<n;t+=1)if(s[t]!==a[t])return void Jn(e)}}}(n,r),e.aChildren=r,e.children=oe)}function yn(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 bn=new WeakMap;function vn(e){return bn.has(e)}const En=Symbol.iterator,Cn={create:e=>{const{owner:t}=e,{renderer:n}=t,r=n.createText(e.text);Mn(r,t),e.elm=r},update:pn,insert:hn,move:hn,remove:mn},kn={create:e=>{const{owner:t,text:n}=e,{renderer:r}=t,o=r.createComment(n);Mn(o,t),e.elm=o},update:pn,insert:hn,move:hn,remove:mn},Sn={create:e=>{const{sel:t,owner:n,data:{svg:r}}=e,{renderer:o}=n,i=L(r)?"http://www.w3.org/2000/svg":void 0,s=o.createElement(t,i);Mn(s,n),function(e,t){const{owner:n}=t;if(fn(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),dn(e,o)}}(s,e),e.elm=s,function(e){ge.create(e),xe.create(e),Pe.create(e),Ie.create(e),Be.create(e),De.create(e),Fe.create(e)}(e)},update:(e,t)=>{!function(e,t){xe.update(e,t),Pe.update(e,t),De.update(e,t),Fe.update(e,t)}(e,t),gn(e,t)},insert:(e,t,n)=>{hn(e,t,n),yn(e)},move:(e,t,n)=>{hn(e,t,n)},remove:(e,t)=>{mn(e,t),function(e){const{children:t,elm:n}=e;for(let e=0,r=t.length;e<r;++e){const r=t[e];N(r)||r.hook.remove(r,n)}}(e)}},xn={create:e=>{const{sel:t,owner:n}=e,{renderer:r}=n,o=function(e,t){e=e.toLowerCase();let n=t.getCustomElement(e);return $(n)?(n=class extends t.HTMLElement{constructor(e){super(),_(e)&&e(this)}},t.defineCustomElement(e,n),n):n}(t,r),i=new o((t=>{!function(e,t){if(!$(hr(e)))return;const{sel:n,mode:r,ctor:o,owner:i}=t;if(fn(e,i),1===i.shadowMode){const{stylesheetToken:t}=i.context;dn(e,t)}dr(e,cn(o),{mode:r,owner:i,tagName:n,renderer:i.renderer})}(t,e)}));Mn(i,n),e.elm=i;const s=hr(i);if(s)wn(e,s);else if(e.ctor!==o)throw new TypeError("Incorrect Component Constructor");!function(e){ge.create(e),xe.create(e),Pe.create(e),Ie.create(e),Be.create(e),De.create(e),Fe.create(e)}(e)},update:(e,t)=>{!function(e,t){xe.update(e,t),Pe.update(e,t),De.update(e,t),Fe.update(e,t)}(e,t);const n=hr(t.elm);n&&wn(t,n),gn(e,t),n&&lr(n)},insert:(e,t,n)=>{hn(e,t,n);const r=hr(e.elm);r&&yr(r),yn(e),r&&function(e){mr(e)}(r)},move:(e,t,n)=>{hn(e,t,n)},remove:(e,t)=>{mn(e,t);const n=hr(e.elm);n&&function(e){ur(e)}(n)}};function Mn(e,t){const{renderer:n,renderMode:r,shadowMode:o}=t;n.isSyntheticShadowDefined&&(1!==o&&0!==r||(e.$shadowResolver$=Sr(t).$shadowResolver$))}function Tn(e,t,n){const r=Hn();const{key:o}=t;return{sel:e,data:t,children:n,text:undefined,elm:undefined,key:o,hook:Sn,owner:r}}function An(e,t,n,r=oe){const o=Hn(),{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){b.call(Hn().velements,e)}(s),s}function Pn(e){return{sel:undefined,data:re,children:undefined,text:e,elm:undefined,key:undefined,hook:Cn,owner:Hn()}}const On=new Map;let $n=0;function Nn(e){var t;return t=e,bn.set(t,1),e}var Ln=Object.freeze({__proto__:null,h:Tn,ti:function(e){return e>0&&!(L(e)||D(e))?0:e},s:function(e,t,n,r){$(r)||$(r[e])||0===r[e].length||(n=r[e]);const o=Hn(),{renderMode:i,shadowMode:s}=o;return 0===i?(Nn(n),n):(1===s&&Nn(n),Tn("slot",t,n))},c:An,i:function(e,t){const n=[];if(Nn(n),$(e)||null===e)return n;const r=e[En]();let o=r.next(),i=0,{value:s,done:a}=o;for(;!1===a;){o=r.next(),a=o.done;const e=t(s,i,0===i,a);p(e)?b.apply(n,e):b.call(n,e),i+=1,s=o.value}return n},f:function(e){const t=e.length,n=[];Nn(n);for(let r=0;r<t;r+=1){const t=e[r];p(t)?b.apply(n,t):b.call(n,t)}return n},t:Pn,co:function(e){return{sel:undefined,data:re,children:undefined,text:e,elm:undefined,key:undefined,hook:kn,owner:Hn()}},d:function(e){return null==e?"":e},b:function(e){const t=Hn();if(N(t))throw new Error;const n=t;return function(t){zn(n,e,n.component,t)}},k:function(e,t){switch(typeof t){case"number":case"string":return e+":"+t}},gid:function(e){const t=Hn();if($(e)||""===e)return e;if(N(e))return null;const{idx:n,shadowMode:r}=t;return 1===r?A.call(e,/\S+/g,(e=>`${e}-${n}`)):e},fid:function(e){const t=Hn();if($(e)||""===e)return e;if(N(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(!ln(t))throw new Error(`Invalid LWC Constructor ${B(t)} for custom element <${e}>.`);let o=On.get(t);return $(o)&&(o=$n++,On.set(t,o)),n.key=`dc:${o}:${n.key}`,An(e,t,n,r)},sc:Nn});function Dn(e){return`${e}-host`}function _n(e,t,n){const r=[];for(let o=0;o<e.length;o++){let i=e[o];if(p(i))b.apply(r,_n(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;b.call(r,i(o,s))}}return r}function Rn(e,t){const{stylesheets:n,stylesheetToken:r}=t;let o=[];return $(n)||0===n.length||(o=_n(n,r,e)),o}function Fn(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=w.call(t,"\n");return Tn("style",{key:"style",attrs:{type:"text/css"}},[Pn(e)])}{const r=function(e){let t=e;for(;!N(t);){if(1===t.renderMode&&0===t.shadowMode)return t;t=t.owner}return t}(e),o=N(r);for(let e=0;e<t.length;e++)o?n.insertGlobalStylesheet(t[e]):n.insertStylesheet(t[e],r.cmpRoot)}}return null}let In=!1,Bn=null;function Hn(){return Bn}function jn(e){Bn=e}function Wn(e,n){const r=In,o=Bn;let i=[];return kr(e,e.owner,(()=>{Bn=e}),(()=>{const{component:r,context:o,cmpSlots:s,cmpTemplate:a,tro:l}=e;l.observe((()=>{if(n!==a){if(N(a)||Cr(e),l=n,!zt.has(l))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: ${B(n)}.`);e.cmpTemplate=n,o.tplCache=t(null),o.hasScopedStyles=function(e){const{stylesheets:t}=e;if(!$(t))for(let e=0;e<t.length;e++)if(L(t[e].$scoped$))return!0;return!1}(n),function(e,t){const{elm:n,context:r,renderer:o,renderMode:i,shadowMode:s}=e,{stylesheets:a,stylesheetToken:l}=t,c=1===i&&1===s,{hasScopedStyles:u}=r;let d,f,p;const{stylesheetToken:h,hasTokenInClass:m,hasTokenInAttribute:g}=r;m&&o.getClassList(n).remove(Dn(h)),g&&o.removeAttribute(n,Dn(h)),$(a)||0===a.length||(d=l),$(d)||(u&&(o.getClassList(n).add(Dn(d)),f=!0),c&&(o.setAttribute(n,Dn(d),""),p=!0)),r.stylesheetToken=d,r.hasTokenInClass=f,r.hasTokenInAttribute=p}(e,n);const r=Rn(e,n);o.styleVNode=0===r.length?null:Fn(e,r)}var l;e.velements=[],In=!0,i=n.call(void 0,Ln,r,s,o.tplCache);const{styleVNode:c}=o;N(c)||S.call(i,c)}))}),(()=>{In=r,Bn=o})),i}function Vn(e,t){if(!c(t)&&$(t.wcStack)){const n=function(e){const t=[];let n=e;for(;!N(n);)b.call(t,he(n)),n=n.owner;return t.reverse().join("\n\t")}(e);r(t,"wcStack",{get:()=>n})}}let Kn=null;function Gn(e){return Kn===e}function qn(e,t,n){const{component:r,callHook:o,owner:i}=e;kr(e,i,F,(()=>{o(r,t,n)}),F)}function zn(e,t,n,r){const{callHook:o,owner:i}=e;kr(e,i,F,(()=>{o(n,t,[r])}),F)}const Un=new Map;function Xn(e){return new de((()=>{const{isDirty:t}=e;D(t)&&(Jn(e),function(e){if(L(e.renderer.ssr)||L(e.isScheduled))return;e.isScheduled=!0,0===gr.length&&se(wr);b.call(gr,e)}(e))}))}function Yn(e){e.tro.reset();const t=function(e){const{def:{render:t},callHook:n,component:r,owner:o}=e,i=Hn();let s,a=!1;return kr(e,o,(()=>{jn(e)}),(()=>{e.tro.observe((()=>{s=n(r,t),a=!0}))}),(()=>{jn(i)})),a?Wn(e,s):[]}(e);return e.isDirty=!1,e.isScheduled=!1,t}function Jn(e){e.isDirty=!0}const Qn=new WeakMap;function Zn(e,t){if(!_(t))throw new TypeError;let n=Qn.get(t);return $(n)&&(n=function(n){zn(e,t,void 0,n)},Qn.set(t,n)),n}const er=t(null),tr=["rendered","connected","disconnected"];function nr(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 rr=0;const or=new WeakMap;function ir(e,t,n=[]){return t.apply(e,n)}function sr(e,t,n){e[t]=n}function ar(e,t){return e[t]}function lr(e){mr(e)}function cr(e){const t=pr(e);1===t.state&&function(e){ur(pr(e))}(e),yr(t),mr(t)}function ur(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){D(e.isDirty)&&(e.isDirty=!0);e.state=2;const{disconnected:t}=er;t&&nr(e,t);br(e)&&function(e){const{wiredDisconnecting:t}=e.context;kr(e,e,F,(()=>{for(let e=0,n=t.length;e<n;e+=1)t[e]()}),F)}(e);const{disconnectedCallback:n}=e.def;$(n)||qn(e,n)}(e),vr(e),function(e){const{aChildren:t}=e;Er(t)}(e)}}function dr(e,n,r){const{mode:o,owner:i,renderer:s,tagName:a}=r,l={elm:e,def:n,idx:rr++,state:0,isScheduled:!1,isDirty:!0,tagName:a,mode:o,owner:i,renderer:s,children:oe,aChildren:oe,velements:oe,cmpProps:t(null),cmpFields:t(null),cmpSlots:t(null),oar:t(null),cmpTemplate:null,renderMode:n.renderMode,shadowMode:null,context:{stylesheetToken:void 0,hasTokenInClass:void 0,hasTokenInAttribute:void 0,hasScopedStyles:void 0,styleVNode:null,tplCache:re,wiredConnecting:oe,wiredDisconnecting:oe},tro:null,component:null,cmpRoot:null,callHook:ir,setHook:sr,getHook:ar};return l.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(;!N(t)&&0===t.renderMode;)t=t.owner;return t}(e);i=N(t)||0!==t.shadowMode?1:0}else i=1;else i=0;return i}(l),l.tro=Xn(l),function(e,t){const n=Kn;let r;Kn=e;try{const o=new t;if(Kn.component!==o)throw new TypeError("Invalid component constructor, the class should extend LightningElement.")}catch(e){r=Object(e)}finally{if(Kn=n,!$(r))throw Vn(e,r),r}}(l,n.ctor),br(l)&&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=xr.get(i);if(!$(s)){const{connector:n,computeConfigAndUpdate:i,resetConfigWatcher:a}=Tr(e,t,s),l=s.dynamic.length>0;b.call(r,(()=>{n.connect(),te.ENABLE_WIRE_SYNC_EMIT||!l?i():Promise.resolve().then(i)})),b.call(o,(()=>{n.disconnect(),a()}))}}}(l),l}function fr(e,t){or.set(e,t)}function pr(e){return or.get(e)}function hr(e){return or.get(e)}function mr(e){if(L(e.isDirty)){!function(e,t){const{children:n}=e;if(e.children=t,(t.length>0||n.length>0)&&n!==t){const r=vn(t)?qe:ze;kr(e,e,(()=>{}),(()=>{const o=Sr(e);r(o,n,t)}),(()=>{}))}1===e.state&&function(e){const{renderer:t,def:{renderedCallback:n}}=e;if(L(t.ssr))return;const{rendered:r}=er;r&&nr(e,r);$(n)||qn(e,n)}(e)}(e,Yn(e))}}let gr=[];function wr(){const e=gr.sort(((e,t)=>e.idx-t.idx));gr=[];for(let t=0,n=e.length;t<n;t+=1){const r=e[t];try{mr(r)}catch(r){throw t+1<n&&(0===gr.length&&se(wr),S.apply(gr,C.call(e,t+1))),r}}}function yr(e){const{state:t}=e;if(1===t)return;e.state=1;const{connected:n}=er;n&&nr(e,n),br(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)||qn(e,r)}function br(e){return s(e.def.wire).length>0}function vr(e){const{velements:t}=e;for(let e=t.length-1;e>=0;e-=1){const{elm:n}=t[e];if(!$(n)){const e=hr(n);$(e)||ur(e)}}}function Er(e){for(let t=0,n=e.length;t<n;t+=1){const n=e[t];N(n)||!p(n.children)||$(n.elm)||($(n.ctor)?Er(n.children):ur(pr(n.elm)))}}function Cr(e){const{children:t,renderer:n}=e,r=Sr(e);for(let e=0,o=t.length;e<o;e++){const o=t[e];N(o)||$(o.elm)||n.remove(o.elm,r)}e.children=oe,vr(e),e.velements=oe}function kr(e,t,n,r,o){let i;n();try{r()}catch(e){i=Object(e)}finally{if(o(),!$(i)){Vn(e,i);const n=N(t)?void 0:function(e){let t=e;for(;!N(t);){if(!$(t.def.errorCallback))return t;t=t.owner}}(t);if($(n))throw i;Cr(e);qn(n,n.def.errorCallback,[i,i.wcStack])}}}function Sr(e){return 1===e.renderMode?e.cmpRoot:e.elm}const xr=new Map;class Mr extends CustomEvent{constructor(e,{setNewContext:t,setDisconnectedCallback:r}){super(e,{bubbles:!0,composed:!0}),n(this,{setNewContext:{value:t},setDisconnectedCallback:{value:r}})}}function Tr(e,t,n){const{method:o,adapter:i,configCallback:s,dynamic:a}=n,l=$(o)?function(e,t){const{cmpFields:n}=e;return r=>{r!==e.cmpFields[t]&&(n[t]=r,fe(e,t))}}(e,t):function(e,t){return n=>{kr(e,e.owner,F,(()=>{t.call(e.component,n)}),F)}}(e,o);let c,u;r(l,"$$DeprecatedWiredElementHostKey$$",{value:e.elm}),r(l,"$$DeprecatedWiredParamsMetaKey$$",{value:a}),kr(e,e,F,(()=>{u=new i(l)}),F);const{computeConfigAndUpdate:d,ro:f}=function(e,t,n){let r=!1;const o=new de((()=>{!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=>{kr(e,e,F,(()=>{u.update(t,c)}),F)}));return $(i.contextSchema)||function(e,t,n){const{adapter:r}=t,o=Pr(r);if($(o))return;const{elm:i,renderer:s,context:{wiredConnecting:a,wiredDisconnecting:l}}=e;b.call(a,(()=>{const e=new Mr(o,{setNewContext(e){n(e)},setDisconnectedCallback(e){b.call(l,e)}});s.dispatchEvent(i,e)}))}(e,n,(t=>{c!==t&&(c=t,1===e.state&&d())})),{connector:u,computeConfigAndUpdate:d,resetConfigWatcher:()=>f.reset()}}const Ar=new Map;function Pr(e){return Ar.get(e)}function Or(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,method:e.value,configCallback:n,dynamic:r};xr.set(e,o)}function $r(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,configCallback:n,dynamic:r};xr.set(e,o)}var Nr;!function(e){e.Text="text",e.Comment="comment",e.Element="element",e.ShadowRoot="shadow-root"}(Nr||(Nr={}));const Lr=/\s+/g;function Dr(e){return new Set(e.trim().split(Lr))}function _r(e){return Array.from(e).join(" ")}function Rr(e){return function(){throw new TypeError(`"${e}" is not supported in this environment`)}}function Fr(e){return{type:Nr.Element,name:e,parent:null,shadowRoot:null,children:[],attributes:[],eventListeners:{}}}const Ir=t(null),Br=new WeakMap;const Hr={ssr:!0,isNativeShadowDefined:!1,isSyntheticShadowDefined:!1,insert(e,t,n){if(null!==e.parent&&e.parent!==t){const t=e.parent.children.indexOf(e);e.parent.children.splice(t,1)}e.parent=t;const r=N(n)?-1:t.children.indexOf(n);-1===r?t.children.push(e):t.children.splice(r,0,e)},remove(e,t){const n=t.children.indexOf(e);t.children.splice(n,1)},createElement:Fr,createText:e=>({type:Nr.Text,value:String(e),parent:null}),createComment:e=>({type:Nr.Comment,value:e,parent:null}),nextSibling(e){const{parent:t}=e;if(N(t))return null;const n=t.children.indexOf(e);return t.children[n+1]||null},attachShadow:(e,t)=>(e.shadowRoot={type:Nr.ShadowRoot,children:[],mode:t.mode,delegatesFocus:!!t.delegatesFocus},e.shadowRoot),getProperty(e,t){var n,r;if(t in e)return e[t];if(e.type===Nr.Element){const o=Z(t);if(U(o,e.name))return null!==(n=this.getAttribute(e,o))&&void 0!==n&&n;if(Y(o)||K(o))return this.getAttribute(e,o);if("input"===e.name&&"value"===t)return null!==(r=this.getAttribute(e,"value"))&&void 0!==r?r:""}},setProperty(e,t,n){if(t in e)return e[t]=n;if(e.type===Nr.Element){const r=Z(t);if(U(r,e.name))return!0===n?this.setAttribute(e,r,""):this.removeAttribute(e,r);if(Y(r)||K(r))return this.setAttribute(e,r,n);if("input"===e.name&&"value"===r)return N(n)||$(n)?this.removeAttribute(e,"value"):this.setAttribute(e,"value",n)}},setText(e,t){e.type===Nr.Text?e.value=t:e.type===Nr.Element&&(e.children=[{type:Nr.Text,parent:e,value:t}])},getAttribute(e,t,n=null){const r=e.attributes.find((e=>e.name===t&&e.namespace===n));return r?r.value:null},setAttribute(e,t,n,r=null){const o=e.attributes.find((e=>e.name===t&&e.namespace===r));$(o)?e.attributes.push({name:t,namespace:r,value:String(n)}):o.value=n},removeAttribute(e,t,n){e.attributes=e.attributes.filter((e=>e.name!==t&&e.namespace!==n))},getClassList(e){function t(){let t=e.attributes.find((e=>"class"===e.name&&N(e.namespace)));return $(t)&&(t={name:"class",namespace:null,value:""},e.attributes.push(t)),t}return{add(...e){const n=t(),r=Dr(n.value);e.forEach((e=>r.add(e))),n.value=_r(r)},remove(...e){const n=t(),r=Dr(n.value);e.forEach((e=>r.delete(e))),n.value=_r(r)}}},setCSSStyleProperty(e,t,n,r){let o=e.attributes.find((e=>"style"===e.name&&N(e.namespace)));$(o)&&(o={name:"style",namespace:null,value:""},e.attributes.push(o)),o.value=`${o.value}; ${t}: ${n}${r?" !important":""}`},isConnected:e=>!N(e.parent),insertGlobalStylesheet(){},insertStylesheet(){},addEventListener(){},removeEventListener(){},dispatchEvent:Rr("dispatchEvent"),getBoundingClientRect:Rr("getBoundingClientRect"),querySelector:Rr("querySelector"),querySelectorAll:Rr("querySelectorAll"),getElementsByTagName:Rr("getElementsByTagName"),getElementsByClassName:Rr("getElementsByClassName"),defineCustomElement(e,t,n){!function(e,t){if(e!==O.call(e)||Ir[e])throw new TypeError("Invalid Registration");Ir[e]=t,Br.set(t,e)}(e,t)},getCustomElement:e=>Ir[e],HTMLElement:class{constructor(){const{constructor:e}=this,t=Br.get(e);if(!t)throw new TypeError("Invalid Construction");return Fr(t)}}},jr={'"':""","'":"'","<":"<",">":">","&":"&"};function Wr(e){return e.replace(/["'<>&]/g,(e=>jr[e]))}function Vr(e){return e.map((e=>{switch(e.type){case Nr.Text:return Wr(e.value);case Nr.Comment:return`\x3c!--${Wr(e.value)}--\x3e`;case Nr.Element:return Kr(e)}})).join("")}function Kr(e){let t="";const{name:n}=e,r=e.attributes.length?` ${o=e.attributes,o.map((e=>e.value.length?`${e.name}=${JSON.stringify(Wr(e.value))}`:e.name)).join(" ")}`:"";var o;const i=Vr(e.children);return t+=`<${n}${r}>`,e.shadowRoot&&(t+=function(e){const t=[`shadowroot="${e.mode}"`];return e.delegatesFocus&&t.push("shadowrootdelegatesfocus"),`<template ${t.join(" ")}>${Vr(e.children)}</template>`}(e.shadowRoot)),t+=i,function(e){return q.has(e)}(n)||(t+=`</${n}>`),t}const Gr={type:Nr.Element,name:"fake-root-element",parent:null,shadowRoot:null,children:[],attributes:[],eventListeners:{}};o(Rt),d(Rt.prototype),exports.LightningElement=Rt,exports.api=function(){throw new Error},exports.createContextProvider=function(e){let t=Pr(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){Ar.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()}))}},exports.getComponentDef=function(e){const t=cn(e),{ctor:n,name:r,props:o,propsConfig:i,methods:s}=t,a={};for(const e in o)a[e]={config:i[e]||0,type:"any",attr:Z(e)};const l={};for(const e in s)l[e]=s[e].value;return{ctor:n,name:r,props:a,methods:l}},exports.isComponentConstructor=ln,exports.readonly=function(e){return Dt.getReadOnlyProxy(e)},exports.register=function(e){for(let t=0;t<tr.length;++t){const n=tr[t];if(n in e){let t=er[n];$(t)&&(er[n]=t=[]),b.call(t,e[n])}}},exports.registerComponent=function(e,{tmpl:t}){return Un.set(e,t),e},exports.registerDecorators=function(e,n){const o=e.prototype,{publicProps:s,publicMethods:a,wire:l,track:c,fields:u}=n,d=t(null),f=t(null),p=t(null),h=t(null),m=t(null),g=t(null);let w;if(!$(s))for(const e in s){const t=s[e];if(g[e]=t.config,w=i(o,e),t.config>0){if($(w))throw new Error;w=Vt(e,w)}else w=$(w)||$(w.get)?jt(e):Vt(e,w);f[e]=w,r(o,e,w)}if($(a)||x.call(a,(e=>{if(w=i(o,e),$(w))throw new Error;d[e]=w})),!$(l))for(const e in l){const{adapter:t,method:n,config:s,dynamic:a=[]}=l[e];if(w=i(o,e),1===n){if($(w))throw new Error;p[e]=w,Or(w,t,s,a)}else w=Bt(e),h[e]=w,$r(w,t,s,a),r(o,e,w)}if(!$(c))for(const e in c)w=i(o,e),w=Ht(e),r(o,e,w);if(!$(u))for(let e=0,t=u.length;e<t;e++){const t=u[e];w=i(o,t);const n=!$(s)&&t in s,r=!$(c)&&t in c;n||r||(m[t]=Kt(t))}return function(e,t){Gt.set(e,t)}(e,{apiMethods:d,apiFields:f,apiFieldsConfig:g,wiredMethods:p,wiredFields:h,observedFields:m}),e},exports.registerTemplate=function(e){return zt.add(e),e},exports.renderComponent=function(e,t,n={}){if(!R(e))throw new TypeError(`"renderComponent" expects a string as the first parameter but instead received ${e}.`);if(!_(t))throw new TypeError(`"renderComponent" expects a valid component constructor as the second parameter but instead received ${t}.`);if("object"!=typeof n||N(n))throw new TypeError(`"renderComponent" expects an object as the third parameter but instead received ${n}.`);const r=Hr.createElement(e);dr(r,cn(t),{mode:"open",owner:null,renderer:Hr,tagName:e});for(const[e,t]of Object.entries(n))r[e]=t;return r.parent=Gr,cr(r),Kr(r)},exports.sanitizeAttribute=function(e,t,n,r){return r},exports.setFeatureFlag=function(e,t){if("boolean"==typeof t){if($(ee[e])){const n=u(ee).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=te[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}".`);r(te,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)}},exports.setFeatureFlagForTest=function(e,t){},exports.track=function(e){if(1===arguments.length)return Dt.getProxy(e);throw new Error},exports.unwrap=function(e){const t=Dt.unwrapProxy(e);return t!==e?t:e},exports.wire=function(e,t){throw new Error};
|
|
9
|
+
*/function Be(e){return void 0===e}function je(e,t){return e.key===t.key&&e.sel===t.sel}function We(e){return null!=e}function Ve(e,t,n){const r={};let o,i,s;for(o=t;o<=n;++o)s=e[o],We(s)&&(i=s.key,void 0!==i&&(r[i]=o));return r}function Ke(e,t,n,r,o){for(;r<=o;++r){const o=n[r];We(o)&&(o.hook.create(o),o.hook.insert(o,e,t))}}function Ge(e,t,n,r){for(;n<=r;++n){const r=t[n];We(r)&&r.hook.remove(r,e)}}function ze(e,t,n){let r=0,o=0,i=t.length-1,s=t[0],l=t[i];const a=n.length-1;let c,u,d,f,p=a,h=n[0],m=n[p];for(;r<=i&&o<=p;)We(s)?We(l)?We(h)?We(m)?je(s,h)?(Ue(s,h),s=t[++r],h=n[++o]):je(l,m)?(Ue(l,m),l=t[--i],m=n[--p]):je(s,m)?(Ue(s,m),m.hook.move(s,e,l.owner.renderer.nextSibling(l.elm)),s=t[++r],m=n[--p]):je(l,h)?(Ue(l,h),h.hook.move(l,e,s.elm),l=t[--i],h=n[++o]):(void 0===c&&(c=Ve(t,r,i)),u=c[h.key],Be(u)?(h.hook.create(h),h.hook.insert(h,e,s.elm),h=n[++o]):(d=t[u],We(d)&&(d.sel!==h.sel?(h.hook.create(h),h.hook.insert(h,e,s.elm)):(Ue(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(!We(t)&&r<a);f=We(t)?t.elm:null,Ke(e,f,n,o,p)}else Ge(e,t,r,i)}function qe(e,t,n){const r=t.length,o=n.length;if(0===r)return void Ke(e,null,n,0,o);if(0===o)return void Ge(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&&(We(s)?We(o)?(Ue(s,o),i=o.elm):s.hook.remove(s,e):We(o)&&(o.hook.create(o),o.hook.insert(o,e,i),i=o.elm))}}function Ue(e,t){e!==t&&(t.elm=e.elm,t.hook.update(e,t))}const Xe="undefined"!=typeof HTMLElement?HTMLElement:function(){},Ye=Xe.prototype,Je=t(null);x.call(u(V),(e=>{const t=B(Ye,e);L(t)||(Je[e]=t)})),x.call(["accessKey","dir","draggable","hidden","id","lang","spellcheck","tabIndex","title"],(e=>{const t=B(Ye,e);L(t)||(Je[e]=t)}));const{isArray:Qe}=Array,{getPrototypeOf:Ze,create:et,defineProperty:tt,defineProperties:nt,isExtensible:rt,getOwnPropertyDescriptor:ot,getOwnPropertyNames:it,getOwnPropertySymbols:st,preventExtensions:lt,hasOwnProperty:at}=Object,{push:ct,concat:ut,map:dt}=Array.prototype;function ft(e){return void 0===e}function pt(e){return"function"==typeof e}const ht=new WeakMap;function mt(e,t){ht.set(e,t)}const gt=e=>ht.get(e)||e;class wt{constructor(e,t){this.originalTarget=t,this.membrane=e}wrapDescriptor(e){if(at.call(e,"value"))e.value=this.wrapValue(e.value);else{const{set:t,get:n}=e;ft(n)||(e.get=this.wrapGetter(n)),ft(t)||(e.set=this.wrapSetter(t))}return e}copyDescriptorIntoShadowTarget(e,t){const{originalTarget:n}=this,r=ot(n,t);if(!ft(r)){const n=this.wrapDescriptor(r);tt(e,t,n)}}lockShadowTarget(e){const{originalTarget:t}=this;ut.call(it(t),st(t)).forEach((t=>{this.copyDescriptorIntoShadowTarget(e,t)}));const{membrane:{tagPropertyKey:n}}=this;ft(n)||at.call(e,n)||tt(e,n,et(null)),lt(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=ft(n)||at.call(t,n)?[]:[n];return ct.apply(r,it(t)),ct.apply(r,st(t)),r}isExtensible(e){const{originalTarget:t}=this;return!!rt(e)&&(!!rt(t)||(this.lockShadowTarget(e),!1))}getPrototypeOf(e){const{originalTarget:t}=this;return Ze(t)}getOwnPropertyDescriptor(e,t){const{originalTarget:n,membrane:{valueObserved:r,tagPropertyKey:o}}=this;r(n,t);let i=ot(n,t);if(ft(i)){if(t!==o)return;return i={value:void 0,writable:!1,configurable:!1,enumerable:!1},tt(e,o,i),i}return!1===i.configurable&&this.copyDescriptorIntoShadowTarget(e,t),this.wrapDescriptor(i)}}const yt=new WeakMap,bt=new WeakMap,vt=new WeakMap,Ct=new WeakMap;class Et extends wt{wrapValue(e){return this.membrane.getProxy(e)}wrapGetter(e){const t=yt.get(e);if(!ft(t))return t;const n=this,r=function(){return n.wrapValue(e.call(gt(this)))};return yt.set(e,r),vt.set(r,e),r}wrapSetter(e){const t=bt.get(e);if(!ft(t))return t;const n=function(t){e.call(gt(this),gt(t))};return bt.set(e,n),Ct.set(n,e),n}unwrapDescriptor(e){if(at.call(e,"value"))e.value=gt(e.value);else{const{set:t,get:n}=e;ft(n)||(e.get=this.unwrapGetter(n)),ft(t)||(e.set=this.unwrapSetter(t))}return e}unwrapGetter(e){const t=vt.get(e);if(!ft(t))return t;const n=this,r=function(){return gt(e.call(n.wrapValue(this)))};return yt.set(r,e),vt.set(e,r),r}unwrapSetter(e){const t=Ct.get(e);if(!ft(t))return t;const n=this,r=function(t){e.call(n.wrapValue(this),n.wrapValue(t))};return bt.set(r,e),Ct.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&&Qe(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(rt(e)){const{originalTarget:t}=this;if(lt(t),rt(t))return!1;this.lockShadowTarget(e)}return!0}defineProperty(e,t,n){const{originalTarget:r,membrane:{valueMutated:o,tagPropertyKey:i}}=this;return t===i&&!at.call(r,t)||(tt(r,t,this.unwrapDescriptor(n)),!1===n.configurable&&this.copyDescriptorIntoShadowTarget(e,t),o(r,t),!0)}}const kt=new WeakMap,St=new WeakMap;class xt extends wt{wrapValue(e){return this.membrane.getReadOnlyProxy(e)}wrapGetter(e){const t=kt.get(e);if(!ft(t))return t;const n=this,r=function(){return n.wrapValue(e.call(gt(this)))};return kt.set(e,r),r}wrapSetter(e){const t=St.get(e);if(!ft(t))return t;const n=function(e){};return St.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 Mt=Object.prototype;function Tt(e){if(null===e)return!1;if("object"!=typeof e)return!1;if(Qe(e))return!0;const t=Ze(e);return t===Mt||null===t||null===Ze(t)}const At=(e,t)=>{},Ot=(e,t)=>{},Pt=e=>e;function Lt(e){return Qe(e)?[]:{}}const Nt=Symbol.for("@@lockerLiveValue");function $t(e){return e}const Dt=new class{constructor(e){if(this.valueDistortion=Pt,this.valueMutated=Ot,this.valueObserved=At,this.valueIsObservable=Tt,this.objectGraph=new WeakMap,!ft(e)){const{valueDistortion:t,valueMutated:n,valueObserved:r,valueIsObservable:o,tagPropertyKey:i}=e;this.valueDistortion=pt(t)?t:Pt,this.valueMutated=pt(n)?n:Ot,this.valueObserved=pt(r)?r:At,this.valueIsObservable=pt(o)?o:Tt,this.tagPropertyKey=i}}getProxy(e){const t=gt(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=gt(e);const t=this.valueDistortion(e);return this.valueIsObservable(t)?this.getReactiveState(e,t).readOnly:t}unwrapProxy(e){return gt(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 Et(o,t),r=new Proxy(Lt(t),n);return mt(r,e),tt(this,"reactive",{value:r}),r},get readOnly(){const n=new xt(o,t),r=new Proxy(Lt(t),n);return mt(r,e),tt(this,"readOnly",{value:r}),r}},n.set(t,r),r}}({valueObserved:ue,valueMutated:ce,valueDistortion:$t,tagPropertyKey:Nt});function _t(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!_(n))throw new TypeError;if(!_(r))throw new TypeError;return{enumerable:o,configurable:i,get(){const t=gr(this);if(!Un(t))return pe(t,e),n.call(t.elm)},set(t){const n=gr(this);return t!==n.cmpProps[e]&&(n.cmpProps[e]=t,fe(n,e)),r.call(n.elm,t)}}}const Ft=function(){if(N(qn))throw new ReferenceError("Illegal constructor");const e=qn,{def:t,elm:n,renderer:r}=e,{bridge:o}=t,i=this;if(f(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[Nt]=void 0,mr(i,e),mr(n,e),1===e.renderMode&&Rt(e),this};function Rt(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,mr(s,e)}Ft.prototype={constructor:Ft,dispatchEvent(e){const{elm:t,renderer:{dispatchEvent:n}}=gr(this);return n(t,e)},addEventListener(e,t,n){const r=gr(this),{elm:o,renderer:{addEventListener:i}}=r;i(o,e,nr(r,t),n)},removeEventListener(e,t,n){const r=gr(this),{elm:o,renderer:{removeEventListener:i}}=r;i(o,e,nr(r,t),n)},hasAttribute(e){const{elm:t,renderer:{getAttribute:n}}=gr(this);return!N(n(t,e))},hasAttributeNS(e,t){const{elm:n,renderer:{getAttribute:r}}=gr(this);return!N(r(n,t,e))},removeAttribute(e){const{elm:t,renderer:{removeAttribute:n}}=gr(this);Ee(t,e),n(t,e),Ce()},removeAttributeNS(e,t){const{elm:n,renderer:{removeAttribute:r}}=gr(this);Ee(n,t),r(n,t,e),Ce()},getAttribute(e){const{elm:t,renderer:{getAttribute:n}}=gr(this);return n(t,e)},getAttributeNS(e,t){const{elm:n,renderer:{getAttribute:r}}=gr(this);return r(n,t,e)},setAttribute(e,t){const n=gr(this),{elm:r,renderer:{setAttribute:o}}=n;Ee(r,e),o(r,e,t),Ce()},setAttributeNS(e,t,n){const r=gr(this),{elm:o,renderer:{setAttribute:i}}=r;Ee(o,t),i(o,t,n,e),Ce()},getBoundingClientRect(){const e=gr(this),{elm:t,renderer:{getBoundingClientRect:n}}=e;return n(t)},get isConnected(){const{elm:e,renderer:{isConnected:t}}=gr(this);return t(e)},get classList(){const e=gr(this),{elm:t,renderer:{getClassList:n}}=e;return n(t)},get template(){return gr(this).cmpRoot},get shadowRoot(){return null},render(){return gr(this).def.template},toString(){return`[object ${gr(this).def.name}]`}};const It=t(null),Ht=[["children","getChildren"],["childNodes","getChildNodes"],["firstChild","getFirstChild"],["firstElementChild","getFirstElementChild"],["lastChild","getLastChild"],["lastElementChild","getLastElementChild"]];for(const[e,t]of Ht)It[e]={get(){const e=gr(this),{elm:n,renderer:r}=e;return r[t](n)}};const Bt=["getElementsByClassName","getElementsByTagName","querySelector","querySelectorAll"];for(const e of Bt)It[e]={value(t){const n=gr(this),{elm:r,renderer:o}=n;return o[e](r,t)}};n(Ft.prototype,It);const jt=t(null);for(const e in Je)jt[e]=_t(e,Je[e]);function Wt(e){return{get(){const t=gr(this);return pe(t,e),t.cmpFields[e]},set(t){const n=gr(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,fe(n,e))},enumerable:!0,configurable:!0}}function Vt(e){return{get(){const t=gr(this);return pe(t,e),t.cmpFields[e]},set(t){const n=gr(this),r=Dt.getProxy(t);r!==n.cmpFields[e]&&(n.cmpFields[e]=r,fe(n,e))},enumerable:!0,configurable:!0}}function Kt(e){return{get(){const t=gr(this);if(!Un(t))return pe(t,e),t.cmpProps[e]},set(t){const n=gr(this);n.cmpProps[e]=t,fe(n,e)},enumerable:!0,configurable:!0}}n(Ft.prototype,jt),r(Ft,"CustomElementConstructor",{get(){throw new ReferenceError("The current runtime does not support CustomElementConstructor.")},configurable:!0});class Gt extends de{constructor(e,t){super((()=>{D(this.debouncing)&&(this.debouncing=!0,se((()=>{if($(this.debouncing)){const{value:n}=this,{isDirty:r,component:o,idx:i}=e;t.call(o,n),this.debouncing=!1,$(e.isDirty)&&D(r)&&i>0&&dr(e)}})))})),this.debouncing=!1}reset(e){super.reset(),this.debouncing=!1,arguments.length>0&&(this.value=e)}}function zt(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!_(n))throw new Error;return{get(){return n.call(this)},set(t){const n=gr(this);if(r)if(te.ENABLE_REACTIVE_SETTER){let o=n.oar[e];L(o)&&(o=n.oar[e]=new Gt(n,r)),o.reset(t),o.observe((()=>{r.call(this,t)}))}else r.call(this,t)},enumerable:o,configurable:i}}function qt(e){return{get(){const t=gr(this);return pe(t,e),t.cmpFields[e]},set(t){const n=gr(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,fe(n,e))},enumerable:!0,configurable:!0}}const Ut=new Map;const Xt={apiMethods:re,apiFields:re,apiFieldsConfig:re,wiredMethods:re,wiredFields:re,observedFields:re};const Yt=new Set;function Jt(){return[]}Yt.add(Jt);const Qt=t(null),Zt=t(null);function en(e){let t=Qt[e];return L(t)&&(t=Qt[e]=function(){const t=gr(this),{getHook:n}=t;return n(t.component,e)}),t}function tn(e){let t=Zt[e];return L(t)&&(t=Zt[e]=function(t){const n=gr(this),{setHook:r}=n;t=Dt.getReadOnlyProxy(t),r(n.component,e,t)}),t}function nn(e){return function(){const t=gr(this),{callHook:n,component:r}=t,o=r[e];return n(t.component,o,E.call(arguments))}}function rn(e,t){return function(n,r,o){if(r===o)return;const i=e[n];L(i)?L(t)||t.apply(this,arguments):ve(this,n)&&(this[i]=o)}}function on(e,o,i){let s;_(e)?s=class extends e{}:(s=function(){throw new TypeError("Illegal constructor")},f(s,e),f(s.prototype,e.prototype),r(s.prototype,"constructor",{writable:!0,configurable:!0,value:s}));const l=t(null),{attributeChangedCallback:a}=e.prototype,{observedAttributes:c=[]}=e,d=t(null);for(let e=0,t=o.length;e<t;e+=1){const t=o[e];l[Z(t)]=t,d[t]={get:en(t),set:tn(t),enumerable:!0,configurable:!0}}for(let e=0,t=i.length;e<t;e+=1){const t=i[e];d[t]={value:nn(t),writable:!0,configurable:!0}}return d.attributeChangedCallback={value:rn(l,a)},r(s,"observedAttributes",{get:()=>[...c,...u(l)]}),n(s.prototype,d),s}const sn=on(Xe,s(Je),[]);function ln(e){const t=e();return(null==t?void 0:t.__esModule)?t.default:t}function an(e){return _(e)&&a.call(e,"__circular__")}o(sn),d(sn.prototype);const cn=new WeakMap;function un(r){const{shadowSupportMode:o,renderMode:i}=r,s=function(e){const t=Ut.get(e);return L(t)?Xt:t}(r),{apiFields:a,apiFieldsConfig:c,apiMethods:d,wiredFields:f,wiredMethods:p,observedFields:h}=s,m=r.prototype;let{connectedCallback:g,disconnectedCallback:w,renderedCallback:y,errorCallback:b,render:v}=m;const C=function(e){let t=l(e);if(N(t))throw new ReferenceError(`Invalid prototype chain for ${e.name}, you must extend LightningElement.`);if(an(t)){const e=ln(t);t=e===t?Ft:e}return t}(r),E=C!==Ft?fn(C):pn,k=on(E.bridge,u(a),u(d)),S=e(t(null),E.props,a),x=e(t(null),E.propsConfig,c),M=e(t(null),E.methods,d),T=e(t(null),E.wire,f,p);g=g||E.connectedCallback,w=w||E.disconnectedCallback,y=y||E.renderedCallback,b=b||E.errorCallback,v=v||E.render;let A=E.shadowSupportMode;L(o)||(A=o);let O=E.renderMode;L(i)||(O="light"===i?0:1);const P=function(e){return Jn.get(e)}(r)||E.template,$=r.name||E.name;n(m,h);return{ctor:r,name:$,wire:T,props:S,propsConfig:x,methods:M,bridge:k,template:P,renderMode:O,shadowSupportMode:A,connectedCallback:g,disconnectedCallback:w,renderedCallback:y,errorCallback:b,render:v}}function dn(e){if(!_(e))return!1;if(e.prototype instanceof Ft)return!0;let t=e;do{if(an(t)){const e=ln(t);if(e===t)return!0;t=e}if(t===Ft)return!0}while(!N(t)&&(t=l(t)));return!1}function fn(e){let t=cn.get(e);if(L(t)){if(an(e)){return t=fn(ln(e)),cn.set(e,t),t}if(!dn(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=un(e),cn.set(e,t)}return t}const pn={ctor:Ft,name:Ft.name,props:jt,propsConfig:re,methods:re,renderMode:1,shadowSupportMode:"default",wire:re,bridge:sn,template:Jt,render:Ft.prototype.render};function hn(e,t){e.$shadowToken$=t}function mn(e,t){const{cmpTemplate:n,context:r}=t,o=null==n?void 0:n.stylesheetToken;!L(o)&&r.hasScopedStyles&&t.renderer.getClassList(e).add(o)}function gn(e,t){const{elm:n,text:r,owner:{renderer:o}}=t;e.text!==r&&o.setText(n,r)}function wn(e,t,n){const{renderer:r}=e.owner;r.insert(e.elm,t,n)}function yn(e,t){const{renderer:n}=e.owner;n.remove(e.elm,t)}function bn(e,t){const{children:n,owner:r}=t,o=kn(n)?ze:qe;Mr(r,r.owner,R,(()=>{o(t.elm,e.children,n)}),R)}function vn(e,n){const r=e.aChildren||e.children;n.aChildren=r;const{renderMode:o,shadowMode:i}=n;1!==i&&0!==o||(!function(e,n){const{cmpSlots:r}=e,o=e.cmpSlots=t(null);for(let e=0,t=n.length;e<t;e+=1){const t=n[e];if(N(t))continue;const{data:r}=t,i=r.attrs&&r.attrs.slot||"",s=o[i]=o[i]||[];L(t.key)||(t.key=`@${i}:${t.key}`),b.call(s,t)}if(D(e.isDirty)){const t=u(r);if(t.length!==u(o).length)return void er(e);for(let n=0,i=t.length;n<i;n+=1){const i=t[n];if(L(o[i])||r[i].length!==o[i].length)return void er(e);const s=r[i],l=o[i];for(let t=0,n=o[i].length;t<n;t+=1)if(s[t]!==l[t])return void er(e)}}}(n,r),e.aChildren=r,e.children=oe)}function Cn(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 kn(e){return En.has(e)}const Sn=Symbol.iterator,xn={create:e=>{const{owner:t}=e,{renderer:n}=t,r=n.createText(e.text);On(r,t),e.elm=r},update:gn,insert:wn,move:wn,remove:yn},Mn={create:e=>{const{owner:t,text:n}=e,{renderer:r}=t,o=r.createComment(n);On(o,t),e.elm=o},update:gn,insert:wn,move:wn,remove:yn},Tn={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);On(s,n),function(e,t){const{owner:n}=t;if(mn(e,n),1===n.shadowMode){const{data:{context:r}}=t,{stylesheetToken:o}=n.context;L(r)||L(r.lwc)||"manual"!==r.lwc.dom||function(e){e.$domManual$=!0}(e),hn(e,o)}}(s,e),e.elm=s,function(e){ge.create(e),xe.create(e),Oe.create(e),Ie.create(e),He.create(e),De.create(e),Re.create(e)}(e)},update:(e,t)=>{!function(e,t){xe.update(e,t),Oe.update(e,t),De.update(e,t),Re.update(e,t)}(e,t),bn(e,t)},insert:(e,t,n)=>{wn(e,t,n),Cn(e)},move:(e,t,n)=>{wn(e,t,n)},remove:(e,t)=>{yn(e,t),function(e){const{children:t,elm:n}=e;for(let e=0,r=t.length;e<r;++e){const r=t[e];N(r)||r.hook.remove(r,n)}}(e)}},An={create:e=>{const{sel:t,owner:n}=e,{renderer:r}=n,o=function(e,t){e=e.toLowerCase();let n=t.getCustomElement(e);return L(n)?(n=class extends t.HTMLElement{constructor(e){super(),_(e)&&e(this)}},t.defineCustomElement(e,n),n):n}(t,r),i=new o((t=>{!function(e,t){if(!L(wr(e)))return;const{sel:n,mode:r,ctor:o,owner:i}=t;if(mn(e,i),1===i.shadowMode){const{stylesheetToken:t}=i.context;hn(e,t)}hr(e,fn(o),{mode:r,owner:i,tagName:n,renderer:i.renderer})}(t,e)}));On(i,n),e.elm=i;const s=wr(i);if(s)vn(e,s);else if(e.ctor!==o)throw new TypeError("Incorrect Component Constructor");!function(e){ge.create(e),xe.create(e),Oe.create(e),Ie.create(e),He.create(e),De.create(e),Re.create(e)}(e)},update:(e,t)=>{!function(e,t){xe.update(e,t),Oe.update(e,t),De.update(e,t),Re.update(e,t)}(e,t);const n=wr(t.elm);n&&vn(t,n),bn(e,t),n&&dr(n)},insert:(e,t,n)=>{wn(e,t,n);const r=wr(e.elm);r&&Cr(r),Cn(e),r&&function(e){yr(e)}(r)},move:(e,t,n)=>{wn(e,t,n)},remove:(e,t)=>{yn(e,t);const n=wr(e.elm);n&&function(e){pr(e)}(n)}};function On(e,t){const{renderer:n,renderMode:r,shadowMode:o}=t;n.isSyntheticShadowDefined&&(1!==o&&0!==r||(e.$shadowResolver$=Tr(t).$shadowResolver$))}function Pn(e,t,n){const r=Vn();const{key:o}=t;return{sel:e,data:t,children:n,text:undefined,elm:undefined,key:o,hook:Tn,owner:r}}function Ln(e,t,n,r=oe){const o=Vn(),{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){b.call(Vn().velements,e)}(s),s}function Nn(e){return{sel:undefined,data:re,children:undefined,text:e,elm:undefined,key:undefined,hook:xn,owner:Vn()}}const $n=new Map;let Dn=0;function _n(e){var t;return t=e,En.set(t,1),e}var Fn=Object.freeze({__proto__:null,h:Pn,ti:function(e){return e>0&&!($(e)||D(e))?0:e},s:function(e,t,n,r){L(r)||L(r[e])||0===r[e].length||(n=r[e]);const o=Vn(),{renderMode:i,shadowMode:s}=o;return 0===i?(_n(n),n):(1===s&&_n(n),Pn("slot",t,n))},c:Ln,i:function(e,t){const n=[];if(_n(n),L(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);p(e)?b.apply(n,e):b.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];p(t)?b.apply(n,t):b.call(n,t)}return n},t:Nn,co:function(e){return{sel:undefined,data:re,children:undefined,text:e,elm:undefined,key:undefined,hook:Mn,owner:Vn()}},d:function(e){return null==e?"":e},b:function(e){const t=Vn();if(N(t))throw new Error;const n=t;return function(t){Yn(n,e,n.component,t)}},k:function(e,t){switch(typeof t){case"number":case"string":return e+":"+t}},gid:function(e){const t=Vn();if(L(e)||""===e)return e;if(N(e))return null;const{idx:n,shadowMode:r}=t;return 1===r?A.call(e,/\S+/g,(e=>`${e}-${n}`)):e},fid:function(e){const t=Vn();if(L(e)||""===e)return e;if(N(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(!dn(t))throw new Error(`Invalid LWC Constructor ${H(t)} for custom element <${e}>.`);let o=$n.get(t);return L(o)&&(o=Dn++,$n.set(t,o)),n.key=`dc:${o}:${n.key}`,Ln(e,t,n,r)},sc:_n});function Rn(e){return`${e}-host`}function In(e,t,n){const r=[];for(let o=0;o<e.length;o++){let i=e[o];if(p(i))b.apply(r,In(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;b.call(r,i(o,s))}}return r}function Hn(e,t){const{stylesheets:n,stylesheetToken:r}=t;let o=[];return L(n)||0===n.length||(o=In(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=w.call(t,"\n");return Pn("style",{key:"style",attrs:{type:"text/css"}},[Nn(e)])}{const r=function(e){let t=e;for(;!N(t);){if(1===t.renderMode&&0===t.shadowMode)return t;t=t.owner}return t}(e),o=N(r);for(let e=0;e<t.length;e++)o?n.insertGlobalStylesheet(t[e]):n.insertStylesheet(t[e],r.cmpRoot)}}return null}let jn=!1,Wn=null;function Vn(){return Wn}function Kn(e){Wn=e}function Gn(e,n){const r=jn,o=Wn;let i=[];return Mr(e,e.owner,(()=>{Wn=e}),(()=>{const{component:r,context:o,cmpSlots:s,cmpTemplate:l,tro:a}=e;a.observe((()=>{if(n!==l){if(N(l)||xr(e),a=n,!Yt.has(a))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: ${H(n)}.`);e.cmpTemplate=n,o.tplCache=t(null),o.hasScopedStyles=function(e){const{stylesheets:t}=e;if(!L(t))for(let e=0;e<t.length;e++)if($(t[e].$scoped$))return!0;return!1}(n),function(e,t){const{elm:n,context:r,renderer:o,renderMode:i,shadowMode:s}=e,{stylesheets:l,stylesheetToken:a}=t,c=1===i&&1===s,{hasScopedStyles:u}=r;let d,f,p;const{stylesheetToken:h,hasTokenInClass:m,hasTokenInAttribute:g}=r;m&&o.getClassList(n).remove(Rn(h)),g&&o.removeAttribute(n,Rn(h)),L(l)||0===l.length||(d=a),L(d)||(u&&(o.getClassList(n).add(Rn(d)),f=!0),c&&(o.setAttribute(n,Rn(d),""),p=!0)),r.stylesheetToken=d,r.hasTokenInClass=f,r.hasTokenInAttribute=p}(e,n);const r=Hn(e,n);o.styleVNode=0===r.length?null:Bn(e,r)}var a;e.velements=[],jn=!0,i=n.call(void 0,Fn,r,s,o.tplCache);const{styleVNode:c}=o;N(c)||S.call(i,c)}))}),(()=>{jn=r,Wn=o})),i}function zn(e,t){if(!c(t)&&L(t.wcStack)){const n=function(e){const t=[];let n=e;for(;!N(n);)b.call(t,he(n)),n=n.owner;return t.reverse().join("\n\t")}(e);r(t,"wcStack",{get:()=>n})}}let qn=null;function Un(e){return qn===e}function Xn(e,t,n){const{component:r,callHook:o,owner:i}=e;Mr(e,i,R,(()=>{o(r,t,n)}),R)}function Yn(e,t,n,r){const{callHook:o,owner:i}=e;Mr(e,i,R,(()=>{o(n,t,[r])}),R)}const Jn=new Map;function Qn(e){return new de((()=>{const{isDirty:t}=e;D(t)&&(er(e),function(e){if($(e.renderer.ssr)||$(e.isScheduled))return;e.isScheduled=!0,0===br.length&&se(vr);b.call(br,e)}(e))}))}function Zn(e){e.tro.reset();const t=function(e){const{def:{render:t},callHook:n,component:r,owner:o}=e,i=Vn();let s,l=!1;return Mr(e,o,(()=>{Kn(e)}),(()=>{e.tro.observe((()=>{s=n(r,t),l=!0}))}),(()=>{Kn(i)})),l?Gn(e,s):[]}(e);return e.isDirty=!1,e.isScheduled=!1,t}function er(e){e.isDirty=!0}const tr=new WeakMap;function nr(e,t){if(!_(t))throw new TypeError;let n=tr.get(t);return L(n)&&(n=function(n){Yn(e,t,void 0,n)},tr.set(t,n)),n}const rr=t(null),or=["rendered","connected","disconnected"];function ir(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 sr=0;const lr=new WeakMap;function ar(e,t,n=[]){return t.apply(e,n)}function cr(e,t,n){e[t]=n}function ur(e,t){return e[t]}function dr(e){yr(e)}function fr(e){const t=gr(e);1===t.state&&function(e){pr(gr(e))}(e),Cr(t),yr(t)}function pr(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){D(e.isDirty)&&(e.isDirty=!0);e.state=2;const{disconnected:t}=rr;t&&ir(e,t);Er(e)&&function(e){const{wiredDisconnecting:t}=e.context;Mr(e,e,R,(()=>{for(let e=0,n=t.length;e<n;e+=1)t[e]()}),R)}(e);const{disconnectedCallback:n}=e.def;L(n)||Xn(e,n)}(e),kr(e),function(e){const{aChildren:t}=e;Sr(t)}(e)}}function hr(e,n,r){const{mode:o,owner:i,renderer:s,tagName:l}=r,a={elm:e,def:n,idx:sr++,state:0,isScheduled:!1,isDirty:!0,tagName:l,mode:o,owner:i,renderer:s,children:oe,aChildren:oe,velements:oe,cmpProps:t(null),cmpFields:t(null),cmpSlots:t(null),oar:t(null),cmpTemplate:null,renderMode:n.renderMode,shadowMode:null,context:{stylesheetToken:void 0,hasTokenInClass:void 0,hasTokenInAttribute:void 0,hasScopedStyles:void 0,styleVNode:null,tplCache:re,wiredConnecting:oe,wiredDisconnecting:oe},tro:null,component:null,cmpRoot:null,callHook:ar,setHook:cr,getHook:ur};return a.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(;!N(t)&&0===t.renderMode;)t=t.owner;return t}(e);i=N(t)||0!==t.shadowMode?1:0}else i=1;else i=0;return i}(a),a.tro=Qn(a),function(e,t){const n=qn;let r;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(qn=n,!L(r))throw zn(e,r),r}}(a,n.ctor),Er(a)&&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=Ar.get(i);if(!L(s)){const{connector:n,computeConfigAndUpdate:i,resetConfigWatcher:l}=Pr(e,t,s),a=s.dynamic.length>0;b.call(r,(()=>{n.connect(),te.ENABLE_WIRE_SYNC_EMIT||!a?i():Promise.resolve().then(i)})),b.call(o,(()=>{n.disconnect(),l()}))}}}(a),a}function mr(e,t){lr.set(e,t)}function gr(e){return lr.get(e)}function wr(e){return lr.get(e)}function yr(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=kn(t)?ze:qe;Mr(e,e,(()=>{}),(()=>{const o=Tr(e);r(o,n,t)}),(()=>{}))}1===e.state&&function(e){const{renderer:t,def:{renderedCallback:n}}=e;if($(t.ssr))return;const{rendered:r}=rr;r&&ir(e,r);L(n)||Xn(e,n)}(e)}(e,Zn(e))}}let br=[];function vr(){const e=br.sort(((e,t)=>e.idx-t.idx));br=[];for(let t=0,n=e.length;t<n;t+=1){const r=e[t];try{yr(r)}catch(r){throw t+1<n&&(0===br.length&&se(vr),S.apply(br,E.call(e,t+1))),r}}}function Cr(e){const{state:t}=e;if(1===t)return;e.state=1;const{connected:n}=rr;n&&ir(e,n),Er(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;L(r)||Xn(e,r)}function Er(e){return s(e.def.wire).length>0}function kr(e){const{velements:t}=e;for(let e=t.length-1;e>=0;e-=1){const{elm:n}=t[e];if(!L(n)){const e=wr(n);L(e)||pr(e)}}}function Sr(e){for(let t=0,n=e.length;t<n;t+=1){const n=e[t];N(n)||!p(n.children)||L(n.elm)||(L(n.ctor)?Sr(n.children):pr(gr(n.elm)))}}function xr(e){const{children:t,renderer:n}=e,r=Tr(e);for(let e=0,o=t.length;e<o;e++){const o=t[e];N(o)||L(o.elm)||n.remove(o.elm,r)}e.children=oe,kr(e),e.velements=oe}function Mr(e,t,n,r,o){let i;n();try{r()}catch(e){i=Object(e)}finally{if(o(),!L(i)){zn(e,i);const n=N(t)?void 0:function(e){let t=e;for(;!N(t);){if(!L(t.def.errorCallback))return t;t=t.owner}}(t);if(L(n))throw i;xr(e);Xn(n,n.def.errorCallback,[i,i.wcStack])}}}function Tr(e){return 1===e.renderMode?e.cmpRoot:e.elm}const Ar=new Map;class Or extends CustomEvent{constructor(e,{setNewContext:t,setDisconnectedCallback:r}){super(e,{bubbles:!0,composed:!0}),n(this,{setNewContext:{value:t},setDisconnectedCallback:{value:r}})}}function Pr(e,t,n){const{method:o,adapter:i,configCallback:s,dynamic:l}=n,a=L(o)?function(e,t){const{cmpFields:n}=e;return r=>{r!==e.cmpFields[t]&&(n[t]=r,fe(e,t))}}(e,t):function(e,t){return n=>{Mr(e,e.owner,R,(()=>{t.call(e.component,n)}),R)}}(e,o);let c,u;r(a,"$$DeprecatedWiredElementHostKey$$",{value:e.elm}),r(a,"$$DeprecatedWiredParamsMetaKey$$",{value:l}),Mr(e,e,R,(()=>{u=new i(a)}),R);const{computeConfigAndUpdate:d,ro:f}=function(e,t,n){let r=!1;const o=new de((()=>{!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=>{Mr(e,e,R,(()=>{u.update(t,c)}),R)}));return L(i.contextSchema)||function(e,t,n){const{adapter:r}=t,o=Nr(r);if(L(o))return;const{elm:i,renderer:s,context:{wiredConnecting:l,wiredDisconnecting:a}}=e;b.call(l,(()=>{const e=new Or(o,{setNewContext(e){n(e)},setDisconnectedCallback(e){b.call(a,e)}});s.dispatchEvent(i,e)}))}(e,n,(t=>{c!==t&&(c=t,1===e.state&&d())})),{connector:u,computeConfigAndUpdate:d,resetConfigWatcher:()=>f.reset()}}const Lr=new Map;function Nr(e){return Lr.get(e)}function $r(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,method:e.value,configCallback:n,dynamic:r};Ar.set(e,o)}function Dr(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,configCallback:n,dynamic:r};Ar.set(e,o)}var _r;!function(e){e.Text="text",e.Comment="comment",e.Element="element",e.ShadowRoot="shadow-root"}(_r||(_r={}));const Fr=/\s+/g;function Rr(e){return new Set(e.trim().split(Fr))}function Ir(e){return Array.from(e).join(" ")}function Hr(e){return function(){throw new TypeError(`"${e}" is not supported in this environment`)}}function Br(e){return{type:_r.Element,name:e,parent:null,shadowRoot:null,children:[],attributes:[],eventListeners:{}}}const jr=t(null),Wr=new WeakMap;const Vr={ssr:!0,isNativeShadowDefined:!1,isSyntheticShadowDefined:!1,insert(e,t,n){if(null!==e.parent&&e.parent!==t){const t=e.parent.children.indexOf(e);e.parent.children.splice(t,1)}e.parent=t;const r=N(n)?-1:t.children.indexOf(n);-1===r?t.children.push(e):t.children.splice(r,0,e)},remove(e,t){const n=t.children.indexOf(e);t.children.splice(n,1)},createElement:Br,createText:e=>({type:_r.Text,value:String(e),parent:null}),createComment:e=>({type:_r.Comment,value:e,parent:null}),nextSibling(e){const{parent:t}=e;if(N(t))return null;const n=t.children.indexOf(e);return t.children[n+1]||null},attachShadow:(e,t)=>(e.shadowRoot={type:_r.ShadowRoot,children:[],mode:t.mode,delegatesFocus:!!t.delegatesFocus},e.shadowRoot),getProperty(e,t){var n,r;if(t in e)return e[t];if(e.type===_r.Element){const o=Z(t);if(U(o,e.name))return null!==(n=this.getAttribute(e,o))&&void 0!==n&&n;if(Y(o)||K(o))return this.getAttribute(e,o);if("input"===e.name&&"value"===t)return null!==(r=this.getAttribute(e,"value"))&&void 0!==r?r:""}},setProperty(e,t,n){if(t in e)return e[t]=n;if(e.type===_r.Element){const r=Z(t);if(U(r,e.name))return!0===n?this.setAttribute(e,r,""):this.removeAttribute(e,r);if(Y(r)||K(r))return this.setAttribute(e,r,n);if("input"===e.name&&"value"===r)return N(n)||L(n)?this.removeAttribute(e,"value"):this.setAttribute(e,"value",n)}},setText(e,t){e.type===_r.Text?e.value=t:e.type===_r.Element&&(e.children=[{type:_r.Text,parent:e,value:t}])},getAttribute(e,t,n=null){const r=e.attributes.find((e=>e.name===t&&e.namespace===n));return r?r.value:null},setAttribute(e,t,n,r=null){const o=e.attributes.find((e=>e.name===t&&e.namespace===r));L(o)?e.attributes.push({name:t,namespace:r,value:String(n)}):o.value=n},removeAttribute(e,t,n){e.attributes=e.attributes.filter((e=>e.name!==t&&e.namespace!==n))},getClassList(e){function t(){let t=e.attributes.find((e=>"class"===e.name&&N(e.namespace)));return L(t)&&(t={name:"class",namespace:null,value:""},e.attributes.push(t)),t}return{add(...e){const n=t(),r=Rr(n.value);e.forEach((e=>r.add(e))),n.value=Ir(r)},remove(...e){const n=t(),r=Rr(n.value);e.forEach((e=>r.delete(e))),n.value=Ir(r)}}},setCSSStyleProperty(e,t,n,r){let o=e.attributes.find((e=>"style"===e.name&&N(e.namespace)));L(o)&&(o={name:"style",namespace:null,value:""},e.attributes.push(o)),o.value=`${o.value}; ${t}: ${n}${r?" !important":""}`},isConnected:e=>!N(e.parent),insertGlobalStylesheet(){},insertStylesheet(){},addEventListener(){},removeEventListener(){},dispatchEvent:Hr("dispatchEvent"),getBoundingClientRect:Hr("getBoundingClientRect"),querySelector:Hr("querySelector"),querySelectorAll:Hr("querySelectorAll"),getElementsByTagName:Hr("getElementsByTagName"),getElementsByClassName:Hr("getElementsByClassName"),getChildren:Hr("getChildren"),getChildNodes:Hr("getChildNodes"),getFirstChild:Hr("getFirstChild"),getFirstElementChild:Hr("getFirstElementChild"),getLastChild:Hr("getLastChild"),getLastElementChild:Hr("getLastElementChild"),defineCustomElement(e,t,n){!function(e,t){if(e!==P.call(e)||jr[e])throw new TypeError("Invalid Registration");jr[e]=t,Wr.set(t,e)}(e,t)},getCustomElement:e=>jr[e],HTMLElement:class{constructor(){const{constructor:e}=this,t=Wr.get(e);if(!t)throw new TypeError("Invalid Construction");return Br(t)}}},Kr={'"':""","'":"'","<":"<",">":">","&":"&"};function Gr(e){return e.replace(/["'<>&]/g,(e=>Kr[e]))}function zr(e){return e.map((e=>{switch(e.type){case _r.Text:return Gr(e.value);case _r.Comment:return`\x3c!--${Gr(e.value)}--\x3e`;case _r.Element:return qr(e)}})).join("")}function qr(e){let t="";const{name:n}=e,r=e.attributes.length?` ${o=e.attributes,o.map((e=>e.value.length?`${e.name}=${JSON.stringify(Gr(e.value))}`:e.name)).join(" ")}`:"";var o;const i=zr(e.children);return t+=`<${n}${r}>`,e.shadowRoot&&(t+=function(e){const t=[`shadowroot="${e.mode}"`];return e.delegatesFocus&&t.push("shadowrootdelegatesfocus"),`<template ${t.join(" ")}>${zr(e.children)}</template>`}(e.shadowRoot)),t+=i,function(e){return z.has(e)}(n)||(t+=`</${n}>`),t}const Ur={type:_r.Element,name:"fake-root-element",parent:null,shadowRoot:null,children:[],attributes:[],eventListeners:{}};o(Ft),d(Ft.prototype),exports.LightningElement=Ft,exports.api=function(){throw new Error},exports.createContextProvider=function(e){let t=Nr(e);if(!L(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){Lr.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((()=>{L(i)||i(r)})),o(r),e.stopImmediatePropagation()}))}},exports.getComponentDef=function(e){const t=fn(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:Z(e)};const a={};for(const e in s)a[e]=s[e].value;return{ctor:n,name:r,props:l,methods:a}},exports.isComponentConstructor=dn,exports.readonly=function(e){return Dt.getReadOnlyProxy(e)},exports.register=function(e){for(let t=0;t<or.length;++t){const n=or[t];if(n in e){let t=rr[n];L(t)&&(rr[n]=t=[]),b.call(t,e[n])}}},exports.registerComponent=function(e,{tmpl:t}){return Jn.set(e,t),e},exports.registerDecorators=function(e,n){const o=e.prototype,{publicProps:s,publicMethods:l,wire:a,track:c,fields:u}=n,d=t(null),f=t(null),p=t(null),h=t(null),m=t(null),g=t(null);let w;if(!L(s))for(const e in s){const t=s[e];if(g[e]=t.config,w=i(o,e),t.config>0){if(L(w))throw new Error;w=zt(e,w)}else w=L(w)||L(w.get)?Kt(e):zt(e,w);f[e]=w,r(o,e,w)}if(L(l)||x.call(l,(e=>{if(w=i(o,e),L(w))throw new Error;d[e]=w})),!L(a))for(const e in a){const{adapter:t,method:n,config:s,dynamic:l=[]}=a[e];if(w=i(o,e),1===n){if(L(w))throw new Error;p[e]=w,$r(w,t,s,l)}else w=Wt(e),h[e]=w,Dr(w,t,s,l),r(o,e,w)}if(!L(c))for(const e in c)w=i(o,e),w=Vt(e),r(o,e,w);if(!L(u))for(let e=0,t=u.length;e<t;e++){const t=u[e];w=i(o,t);const n=!L(s)&&t in s,r=!L(c)&&t in c;n||r||(m[t]=qt(t))}return function(e,t){Ut.set(e,t)}(e,{apiMethods:d,apiFields:f,apiFieldsConfig:g,wiredMethods:p,wiredFields:h,observedFields:m}),e},exports.registerTemplate=function(e){return Yt.add(e),e},exports.renderComponent=function(e,t,n={}){if(!F(e))throw new TypeError(`"renderComponent" expects a string as the first parameter but instead received ${e}.`);if(!_(t))throw new TypeError(`"renderComponent" expects a valid component constructor as the second parameter but instead received ${t}.`);if("object"!=typeof n||N(n))throw new TypeError(`"renderComponent" expects an object as the third parameter but instead received ${n}.`);const r=Vr.createElement(e);hr(r,fn(t),{mode:"open",owner:null,renderer:Vr,tagName:e});for(const[e,t]of Object.entries(n))r[e]=t;return r.parent=Ur,fr(r),qr(r)},exports.sanitizeAttribute=function(e,t,n,r){return r},exports.setFeatureFlag=function(e,t){if("boolean"==typeof t){if(L(ee[e])){const n=u(ee).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=te[e];if(!L(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}".`);r(te,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)}},exports.setFeatureFlagForTest=function(e,t){},exports.track=function(e){if(1===arguments.length)return Dt.getProxy(e);throw new Error},exports.unwrap=function(e){const t=Dt.unwrapProxy(e);return t!==e?t:e},exports.wire=function(e,t){throw new Error};
|
|
@@ -335,7 +335,7 @@ function htmlPropertyToAttribute(propName) {
|
|
|
335
335
|
CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
|
|
336
336
|
return attributeName;
|
|
337
337
|
}
|
|
338
|
-
/** version: 2.5.
|
|
338
|
+
/** version: 2.5.4 */
|
|
339
339
|
|
|
340
340
|
/*
|
|
341
341
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
@@ -386,6 +386,7 @@ const features = {
|
|
|
386
386
|
ENABLE_HMR: null,
|
|
387
387
|
ENABLE_INNER_OUTER_TEXT_PATCH: null,
|
|
388
388
|
ENABLE_ELEMENT_PATCH: null,
|
|
389
|
+
ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST: null,
|
|
389
390
|
ENABLE_NODE_LIST_PATCH: null,
|
|
390
391
|
ENABLE_HTML_COLLECTIONS_PATCH: null,
|
|
391
392
|
ENABLE_NODE_PATCH: null,
|
|
@@ -455,7 +456,7 @@ function setFeatureFlagForTest(name, value) {
|
|
|
455
456
|
setFeatureFlag(name, value);
|
|
456
457
|
}
|
|
457
458
|
}
|
|
458
|
-
/** version: 2.5.
|
|
459
|
+
/** version: 2.5.4 */
|
|
459
460
|
|
|
460
461
|
/* proxy-compat-disable */
|
|
461
462
|
|
|
@@ -2827,9 +2828,9 @@ function attachShadow(vm) {
|
|
|
2827
2828
|
}
|
|
2828
2829
|
}
|
|
2829
2830
|
|
|
2830
|
-
function warnIfInvokedDuringConstruction(vm,
|
|
2831
|
+
function warnIfInvokedDuringConstruction(vm, methodOrPropName) {
|
|
2831
2832
|
if (isBeingConstructed(vm)) {
|
|
2832
|
-
logError(`this.${
|
|
2833
|
+
logError(`this.${methodOrPropName} should not be called during the construction of the custom element for ${getComponentTag(vm)} because the element is not yet in the DOM or has no children yet.`);
|
|
2833
2834
|
}
|
|
2834
2835
|
} // @ts-ignore
|
|
2835
2836
|
|
|
@@ -2989,76 +2990,12 @@ LightningElement.prototype = {
|
|
|
2989
2990
|
} = vm;
|
|
2990
2991
|
|
|
2991
2992
|
if (process.env.NODE_ENV !== 'production') {
|
|
2992
|
-
warnIfInvokedDuringConstruction(vm, 'getBoundingClientRect');
|
|
2993
|
+
warnIfInvokedDuringConstruction(vm, 'getBoundingClientRect()');
|
|
2993
2994
|
}
|
|
2994
2995
|
|
|
2995
2996
|
return getBoundingClientRect(elm);
|
|
2996
2997
|
},
|
|
2997
2998
|
|
|
2998
|
-
querySelector(selectors) {
|
|
2999
|
-
const vm = getAssociatedVM(this);
|
|
3000
|
-
const {
|
|
3001
|
-
elm,
|
|
3002
|
-
renderer: {
|
|
3003
|
-
querySelector
|
|
3004
|
-
}
|
|
3005
|
-
} = vm;
|
|
3006
|
-
|
|
3007
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3008
|
-
warnIfInvokedDuringConstruction(vm, 'querySelector');
|
|
3009
|
-
}
|
|
3010
|
-
|
|
3011
|
-
return querySelector(elm, selectors);
|
|
3012
|
-
},
|
|
3013
|
-
|
|
3014
|
-
querySelectorAll(selectors) {
|
|
3015
|
-
const vm = getAssociatedVM(this);
|
|
3016
|
-
const {
|
|
3017
|
-
elm,
|
|
3018
|
-
renderer: {
|
|
3019
|
-
querySelectorAll
|
|
3020
|
-
}
|
|
3021
|
-
} = vm;
|
|
3022
|
-
|
|
3023
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3024
|
-
warnIfInvokedDuringConstruction(vm, 'querySelectorAll');
|
|
3025
|
-
}
|
|
3026
|
-
|
|
3027
|
-
return querySelectorAll(elm, selectors);
|
|
3028
|
-
},
|
|
3029
|
-
|
|
3030
|
-
getElementsByTagName(tagNameOrWildCard) {
|
|
3031
|
-
const vm = getAssociatedVM(this);
|
|
3032
|
-
const {
|
|
3033
|
-
elm,
|
|
3034
|
-
renderer: {
|
|
3035
|
-
getElementsByTagName
|
|
3036
|
-
}
|
|
3037
|
-
} = vm;
|
|
3038
|
-
|
|
3039
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3040
|
-
warnIfInvokedDuringConstruction(vm, 'getElementsByTagName');
|
|
3041
|
-
}
|
|
3042
|
-
|
|
3043
|
-
return getElementsByTagName(elm, tagNameOrWildCard);
|
|
3044
|
-
},
|
|
3045
|
-
|
|
3046
|
-
getElementsByClassName(names) {
|
|
3047
|
-
const vm = getAssociatedVM(this);
|
|
3048
|
-
const {
|
|
3049
|
-
elm,
|
|
3050
|
-
renderer: {
|
|
3051
|
-
getElementsByClassName
|
|
3052
|
-
}
|
|
3053
|
-
} = vm;
|
|
3054
|
-
|
|
3055
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3056
|
-
warnIfInvokedDuringConstruction(vm, 'getElementsByClassName');
|
|
3057
|
-
}
|
|
3058
|
-
|
|
3059
|
-
return getElementsByClassName(elm, names);
|
|
3060
|
-
},
|
|
3061
|
-
|
|
3062
2999
|
get isConnected() {
|
|
3063
3000
|
const {
|
|
3064
3001
|
elm,
|
|
@@ -3118,6 +3055,50 @@ LightningElement.prototype = {
|
|
|
3118
3055
|
}
|
|
3119
3056
|
|
|
3120
3057
|
};
|
|
3058
|
+
const queryAndChildGetterDescriptors = create(null);
|
|
3059
|
+
const childGetters = [['children', 'getChildren'], ['childNodes', 'getChildNodes'], ['firstChild', 'getFirstChild'], ['firstElementChild', 'getFirstElementChild'], ['lastChild', 'getLastChild'], ['lastElementChild', 'getLastElementChild']]; // Generic passthrough for child getters on HTMLElement to the relevant Renderer APIs
|
|
3060
|
+
|
|
3061
|
+
for (const [elementProp, rendererMethod] of childGetters) {
|
|
3062
|
+
queryAndChildGetterDescriptors[elementProp] = {
|
|
3063
|
+
get() {
|
|
3064
|
+
const vm = getAssociatedVM(this);
|
|
3065
|
+
const {
|
|
3066
|
+
elm,
|
|
3067
|
+
renderer
|
|
3068
|
+
} = vm;
|
|
3069
|
+
|
|
3070
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3071
|
+
warnIfInvokedDuringConstruction(vm, elementProp);
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
return renderer[rendererMethod](elm);
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
};
|
|
3078
|
+
}
|
|
3079
|
+
|
|
3080
|
+
const queryMethods = ['getElementsByClassName', 'getElementsByTagName', 'querySelector', 'querySelectorAll']; // Generic passthrough for query APIs on HTMLElement to the relevant Renderer APIs
|
|
3081
|
+
|
|
3082
|
+
for (const queryMethod of queryMethods) {
|
|
3083
|
+
queryAndChildGetterDescriptors[queryMethod] = {
|
|
3084
|
+
value(arg) {
|
|
3085
|
+
const vm = getAssociatedVM(this);
|
|
3086
|
+
const {
|
|
3087
|
+
elm,
|
|
3088
|
+
renderer
|
|
3089
|
+
} = vm;
|
|
3090
|
+
|
|
3091
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3092
|
+
warnIfInvokedDuringConstruction(vm, `${queryMethod}()`);
|
|
3093
|
+
}
|
|
3094
|
+
|
|
3095
|
+
return renderer[queryMethod](elm, arg);
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
};
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
defineProperties(LightningElement.prototype, queryAndChildGetterDescriptors);
|
|
3121
3102
|
const lightningBasedDescriptors = create(null);
|
|
3122
3103
|
|
|
3123
3104
|
for (const propName in HTMLElementOriginalDescriptors) {
|
|
@@ -5690,9 +5671,9 @@ function validateLightDomTemplate(template, vm) {
|
|
|
5690
5671
|
if (vm.renderMode === 0
|
|
5691
5672
|
/* Light */
|
|
5692
5673
|
) {
|
|
5693
|
-
assert.isTrue(template.renderMode === 'light', `Light DOM components can't render shadow DOM templates. Add an 'lwc:render-mode="light"' directive
|
|
5674
|
+
assert.isTrue(template.renderMode === 'light', `Light DOM components can't render shadow DOM templates. Add an 'lwc:render-mode="light"' directive to the root template tag of ${getComponentTag(vm)}.`);
|
|
5694
5675
|
} else {
|
|
5695
|
-
assert.isTrue(isUndefined$1(template.renderMode), `Shadow DOM components template can't render light DOM templates. Either remove the 'lwc:render-mode' directive or set it to 'lwc:render-mode="shadow"`);
|
|
5676
|
+
assert.isTrue(isUndefined$1(template.renderMode), `Shadow DOM components template can't render light DOM templates. Either remove the 'lwc:render-mode' directive from ${getComponentTag(vm)} or set it to 'lwc:render-mode="shadow"`);
|
|
5696
5677
|
}
|
|
5697
5678
|
}
|
|
5698
5679
|
|
|
@@ -6242,6 +6223,12 @@ function createVM(elm, def, options) {
|
|
|
6242
6223
|
vm.toString = () => {
|
|
6243
6224
|
return `[object:vm ${def.name} (${vm.idx})]`;
|
|
6244
6225
|
};
|
|
6226
|
+
|
|
6227
|
+
if (runtimeFlags.ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST) {
|
|
6228
|
+
vm.shadowMode = 0
|
|
6229
|
+
/* Native */
|
|
6230
|
+
;
|
|
6231
|
+
}
|
|
6245
6232
|
} // Create component instance associated to the vm and the element.
|
|
6246
6233
|
|
|
6247
6234
|
|
|
@@ -7153,7 +7140,7 @@ function readonly(obj) {
|
|
|
7153
7140
|
|
|
7154
7141
|
return reactiveMembrane.getReadOnlyProxy(obj);
|
|
7155
7142
|
}
|
|
7156
|
-
/* version: 2.5.
|
|
7143
|
+
/* version: 2.5.4 */
|
|
7157
7144
|
|
|
7158
7145
|
/*
|
|
7159
7146
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
@@ -7479,6 +7466,12 @@ const renderer = {
|
|
|
7479
7466
|
querySelectorAll: unsupportedMethod('querySelectorAll'),
|
|
7480
7467
|
getElementsByTagName: unsupportedMethod('getElementsByTagName'),
|
|
7481
7468
|
getElementsByClassName: unsupportedMethod('getElementsByClassName'),
|
|
7469
|
+
getChildren: unsupportedMethod('getChildren'),
|
|
7470
|
+
getChildNodes: unsupportedMethod('getChildNodes'),
|
|
7471
|
+
getFirstChild: unsupportedMethod('getFirstChild'),
|
|
7472
|
+
getFirstElementChild: unsupportedMethod('getFirstElementChild'),
|
|
7473
|
+
getLastChild: unsupportedMethod('getLastChild'),
|
|
7474
|
+
getLastElementChild: unsupportedMethod('getLastElementChild'),
|
|
7482
7475
|
|
|
7483
7476
|
defineCustomElement(name, constructor, _options) {
|
|
7484
7477
|
registerCustomElement(name, constructor);
|
|
@@ -7624,6 +7617,6 @@ function renderComponent(tagName, Ctor, props = {}) {
|
|
|
7624
7617
|
|
|
7625
7618
|
freeze(LightningElement);
|
|
7626
7619
|
seal(LightningElement.prototype);
|
|
7627
|
-
/* version: 2.5.
|
|
7620
|
+
/* version: 2.5.4 */
|
|
7628
7621
|
|
|
7629
7622
|
export { LightningElement, api$1 as api, createContextProvider, getComponentDef, isComponentConstructor, readonly, register, registerComponent, registerDecorators, registerTemplate, renderComponent, sanitizeAttribute, setFeatureFlag, setFeatureFlagForTest, track, unwrap, wire };
|