function hasSupportedFeatures(){const e="performance"in window&&"mark"in window.performance,t="customElements"in window;return e&&t}window.isBrowserSupportedByWebruntime=hasSupportedFeatures(),Webruntime.define("@webruntime/app",["@app/authenticationCookieName","webruntime_loader/loader","@app/basePath","@app/routes","@app/viewToThemeLayoutMap","@app/brandingProperties","@app/guestUuidCookieName"],(function(e,t,r,n,o,i,a){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var l=s(e),u=c(t),d=s(r),p=s(n),f=s(o),h=s(i),m=s(a);const{performance:g,console:b}=window,y=new WeakMap;let w=!0,v=!1;try{const e={randomInfo:123},t=g.mark("A",{detail:e})||g.getEntriesByType("mark").pop();w=!!t.detail&&t.detail.randomInfo===e.randomInfo,v=JSON.stringify(t).includes("randomInfo")}catch(e){w=!1,b.warn("PerformanceMarkOptions#detail & PerformanceMeasureOptions#detail are not supported",e)}finally{g.clearMarks("A")}function P(e,t,r){const n=e[t];e[t]=function(){return r.apply(this,[n.bind(this),...arguments])}}function E(e){return e.forEach((e=>{(e instanceof PerformanceMark||e instanceof PerformanceMeasure)&&(e.detail=y.get(e)||null)})),e}function O(){return{name:this.name||null,entryType:this.entryType||null,startTime:this.startTime||null,duration:this.duration||null,detail:this.detail||null}}v||(PerformanceMark.prototype.toJSON=O,PerformanceMeasure.prototype.toJSON=O),w||(P(g,"mark",((e,t,r)=>{const n=e(t)||g.getEntriesByType("mark").pop();if(r&&r.detail){const e=JSON.parse(JSON.stringify(r.detail));n.detail=e,y.set(n,e)}return n})),P(g,"measure",((e,...t)=>{if("string"!=typeof t[1]&&t[1]&&t[1].detail){const r=t[1]&&t[1].start||null,n=e(t[0],r)||g.getEntriesByType("measure").sort(((e,t)=>e.startTime+e.duration-(t.startTime+t.duration))).pop(),o=JSON.parse(JSON.stringify(t[1].detail));return n.detail=o,y.set(n,o),n}return e(...t)})),P(g,"getEntries",(e=>E(e()))),P(g,"getEntriesByName",((e,t,r)=>E(e(t,r)))),P(g,"getEntriesByType",((e,t)=>E(e(t)))));function C(e){return`/webruntime${e}`}const T=C("/api"),N=C("/log/metrics"),S=C("/log/errors");function A(e){return`@view/${e}`}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;te.trim().split("="))).filter((([t])=>t===e)).map((([,e])=>e))[0]}function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;tt+Number(r).toFixed(2)))}function X(){if(!Y)return null;return[...window.performance.getEntriesByName("webruntime-app-bootstrap"),...window.performance.getEntriesByName("webruntime-framework-bootstrap")]}function Z(){return K&&q?window.performance.getEntriesByType(H):null}function Q(e,t,r){const n=window.performance.timing.navigationStart,o=Z().sort(((e,t)=>e.startTime+e.duration>t.startTime+t.duration?-1:1))[0];let i=t-n;return o&&o.startTime+o.duration>e-n&&(i=o.startTime+o.duration),{entryType:"webruntime-navigation",startTime:e-n,duration:n+i-e,name:r&&r.id}}function ee(){return{hostname:B?window.location.hostname:null,pathname:V?window.location.pathname:null}}var te,re,ne,oe,ie=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},ae=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return r.observe({type:e,buffered:!0}),r}}catch(e){}},se=function(e,t){var r=function r(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},ce=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},le="function"==typeof WeakSet?new WeakSet:new Set,ue=function(e,t,r){var n;return function(){t.value>=0&&(r||le.has(t)||"hidden"===document.visibilityState)&&(t.delta=t.value-(n||0),(t.delta||void 0===n)&&(n=t.value,e(t)))}},de=-1,pe=function(){return"hidden"===document.visibilityState?0:1/0},fe=function(){se((function(e){var t=e.timeStamp;de=t}),!0)},he=function(){return de<0&&(de=pe(),fe(),ce((function(){setTimeout((function(){de=pe(),fe()}),0)}))),{get timeStamp(){return de}}},me={passive:!0,capture:!0},ge=new Date,be=function(e,t){te||(te=t,re=e,ne=new Date,ve(removeEventListener),ye())},ye=function(){if(re>=0&&re1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var r=function(){be(e,t),o()},n=function(){o()},o=function(){removeEventListener("pointerup",r,me),removeEventListener("pointercancel",n,me)};addEventListener("pointerup",r,me),addEventListener("pointercancel",n,me)}(t,e):be(t,e)}},ve=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,we,me)}))};let Pe=!1;try{Pe=PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch(e){}const Ee={CLS:Pe?{name:"CLS",value:0,delta:0}:null,LCP:null,FID:null,FCP:null,TTFB:null};function Oe(e){Ee.CLS&&(Ee.CLS.value+=e.delta,Ee.CLS.delta=Ee.CLS.value)}function Ce(e){const{name:t,value:r,delta:n}=e;Ee[e.name]={name:t,value:r,delta:n}}function Te(){return Ee}!function(e,t){var r,n=ie("CLS",0),o=function(e){e.hadRecentInput||(n.value+=e.value,n.entries.push(e),r())},i=ae("layout-shift",o);i&&(r=ue(e,n,t),se((function(){i.takeRecords().map(o),r()})),ce((function(){n=ie("CLS",0),r=ue(e,n,t)})))}(Oe,!0),function(e,t){var r,n=he(),o=ie("LCP"),i=function(e){var t=e.startTime;t{Z().length>t?t=Z().length:(clearInterval(r),e())}),500)}((()=>{const n={pageView:e,resources:Z(),location:ee(),navigation:Q(t,r,e)},{CLS:o}=Te(),i={webVitals:{CLS:o}};let a={};Se&&(a={bootstrap:X(),navigator:z?{"connection.rtt":window.navigator.connection.rtt}:null,paint:W&&q?window.performance.getEntriesByType(G):null},Se=!1);$e(Object.assign({},n,a,i)),performance.clearResourceTimings(),Ee.CLS&&(Ee.CLS.value=0,Ee.CLS.delta=0)}))}function Le({subject:e,error:t={},extra:r}){let n,o,i;t?(n=t.message,o=t.stack,i=t.wcstack):r&&(n=r.msg),function({subject:e,message:t,stack:r,wcstack:n,extra:o}){const i=d.default+S,{pathname:a,hostname:s}=window.location,c={pathname:a,hostname:s},l=JSON.stringify({subject:e,message:t,stack:r,wcstack:n,extra:o,location:c});if(!(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(i,l))){const e=new XMLHttpRequest;e.open("POST",i,!0),e.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),e.send(l)}}({subject:e,message:n,stack:o,wcstack:i,extra:r})}!function(e){let t=!1;window.addEventListener("pagehide",(e=>{t=!e.persisted})),window.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&t&&e()}))}((()=>{const{FID:e,LCP:t,TTFB:r,FCP:n}=Te();(e||t||r||n)&&$e({webVitals:{FID:e,LCP:t,TTFB:r,FCP:n},location:Re})})),window.addEventListener("error",((e={})=>{const{msg:t,filename:r,lineno:n,colno:o,error:i}=e;Le({subject:"window error",error:i,extra:{msg:t,filename:r,lineno:n,colno:o}})})),window.addEventListener("unhandledrejection",((e={})=>{const{reason:t={}}=e;Le({subject:"unhandledrejection",error:t})}));const{isConcatSpreadable:xe}=Symbol,{isArray:Me}=Array,{slice:De,unshift:_e,shift:Ue}=Array.prototype;function Fe(e){if(!function(e){return"object"==typeof e?null!==e:"function"==typeof e}(e))return!1;const t=e[xe];return void 0!==t?Boolean(t):Me(e)}function He(...e){const t=Object(this),r=[];let n=0;const o=De.call(arguments);for(_e.call(o,t);o.length;){const e=Ue.call(o);if(Fe(e)){let t=0;const o=e.length;for(;t{const e=Ve(null),t=Ve(null);return ht.call(Et,(r=>{const n=yt.call(gt.call(r,/^aria/,(()=>"aria-")));e[n]=r,t[r]=n})),{AriaAttrNameToPropNameMap:e,AriaPropNameToAttrNameMap:t}})(),Tt=(()=>"Symbol(x)"===Symbol("x").toString())();function Nt(e,t){return Tt?Symbol(e):`$$lwc-${t}-${e}$$`}const St=new WeakMap;function At(e,t,r){let n=St.get(e);wt(n)&&(n=Ve(null),St.set(e,n)),n[t]=r}function jt(e){return void 0===Object.getOwnPropertyDescriptor(Element.prototype,e)}const kt=new WeakMap;function Rt(e){let t=kt.get(e);return void 0===t&&(t={},kt.set(e,t)),t}function $t(e,t){return{get(){const r=Rt(this);return Xe.call(r,e)?r[e]:this.hasAttribute(t)?this.getAttribute(t):null},set(r){const n=null==(o=r)?null:String(o);var o;Rt(this)[e]=n,null===r?this.removeAttribute(t):this.setAttribute(t,r)},configurable:!0,enumerable:!0}}function It(e){const t=$t(e,Ct[e]);Object.defineProperty(Element.prototype,e,t)}const Lt=Qe(Ct);for(let e=0,t=Lt.length;e{const e=Mt(null),t=Mt(null);return ar.call(Pr,(r=>{const n=dr.call(lr.call(r,/^aria/,(()=>"aria-")));e[n]=r,t[r]=n})),{AriaAttrNameToPropNameMap:e,AriaPropNameToAttrNameMap:t}})(),Cr=(()=>"Symbol(x)"===Symbol("x").toString())();const Tr=new WeakMap;function Nr(e,t){const r=Tr.get(e);if(!pr(r))return r[t]}const Sr=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"]]),Ar=new Map;function jr(e){const t=Or[e];if(!pr(t))return t;const r=Sr.get(e);if(!pr(r))return r;const n=Ar.get(e);if(!pr(n))return n;let o="";for(let t=0,r=e.length;t=65&&r<=90?"-"+sr(r+32):sr(r)}return Ar.set(e,o),o}let kr=[];const Rr=Wt(Mt(null)),$r=Wt([]);function Ir(){const e=kr;kr=[];for(let t=0,r=e.length;t0){for(let r=0;r`}function qr(e){const{elm:t,data:{on:r},owner:{renderer:n}}=e;if(pr(r))return;const o=e.listener=function e(t){!function(e,t){const{type:r}=e,{data:{on:n}}=t,o=n&&n[r];o&&o.call(void 0,e)}(t,e.vnode)};let i;for(i in o.vnode=e,r)n.addEventListener(t,i,o)}var Yr={update:function(e,t){pr(e.listener)?qr(t):(t.listener=e.listener,t.listener.vnode=t)},create:qr};function Jr(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.`}xt(Mt(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:Jr("offsetHeight")},offsetLeft:{readOnly:!0,error:Jr("offsetLeft")},offsetParent:{readOnly:!0},offsetTop:{readOnly:!0,error:Jr("offsetTop")},offsetWidth:{readOnly:!0,error:Jr("offsetWidth")},role:{attribute:"role"}});let Xr,Zr=null;function Qr(e,t){return e!==Zr||t!==Xr}function en(e,t){Zr=null,Xr=void 0}function tn(e,t){Zr=e,Xr=t}function rn(e,t){const{data:{attrs:r},owner:{renderer:n}}=t;if(pr(r))return;let{data:{attrs:o}}=e;if(o===r)return;const i=t.elm,{setAttribute:a,removeAttribute:s}=n;let c;for(c in o=pr(o)?Rr:o,r){const e=r[c];o[c]!==e&&(tn(i,c),58===cr.call(c,3)?a(i,c,e,"http://www.w3.org/XML/1998/namespace"):58===cr.call(c,5)?a(i,c,e,"http://www.w3.org/1999/xlink"):fr(e)?s(i,c):a(i,c,e),en())}}const nn={data:{}};var on={create:e=>rn(nn,e),update:rn};function an(e,t){return"input"===e&&("value"===t||"checked"===t)}function sn(e,t){const r=t.data.props;if(pr(r))return;const n=e.data.props;if(n===r)return;const o=pr(n),{elm:i,sel:a,owner:{renderer:s}}=t;for(const e in r){const t=r[e];(o||t!==(an(a,e)?s.getProperty(i,e):n[e]))&&s.setProperty(i,e,t)}}const cn={data:{}};var ln={create:e=>sn(cn,e),update:sn};const un=Mt(null);function dn(e){if(null==e)return Rr;e=br(e)?e:e+"";let t=un[e];if(t)return t;t=Mt(null);let r,n=0;const o=e.length;for(r=0;rn&&(t[ur.call(e,n,r)]=!0),n=r+1);return r>n&&(t[ur.call(e,n,r)]=!0),un[e]=t,t}function pn(e,t){const{elm:r,data:{className:n},owner:{renderer:o}}=t,{data:{className:i}}=e;if(i===n)return;const a=o.getClassList(r),s=dn(n),c=dn(i);let l;for(l in c)pr(s[l])&&a.remove(l);for(l in s)pr(c[l])&&a.add(l)}const fn={data:{}};var hn={create:e=>pn(fn,e),update:pn};function mn(e,t){const{elm:r,data:{style:n},owner:{renderer:o}}=t,{setAttribute:i,removeAttribute:a}=o;e.data.style!==n&&(br(n)&&""!==n?i(r,"style",n):a(r,"style"))}const gn={data:{}};var bn={create:e=>mn(gn,e),update:mn};var yn={create:function(e){const{elm:t,data:{classMap:r},owner:{renderer:n}}=e;if(pr(r))return;const o=n.getClassList(t);for(const e in r)o.add(e)}};var wn={create:function(e){const{elm:t,data:{styleMap:r},owner:{renderer:n}}=e;if(!pr(r))for(const e in r)n.setCSSStyleProperty(t,e,r[e])}}; /** @license Copyright (c) 2015 Simon Friis Vindum. This code may only be used under the MIT License found at https://github.com/snabbdom/snabbdom/blob/master/LICENSE Code distributed by Snabbdom as part of the Snabbdom project at https://github.com/snabbdom/snabbdom/ */function vn(e){return void 0===e}function Pn(e,t){return e.key===t.key&&e.sel===t.sel}function En(e){return null!=e}function On(e,t,r){const n={};let o,i,a;for(o=t;o<=r;++o)a=e[o],En(a)&&(i=a.key,void 0!==i&&(n[i]=o));return n}function Cn(e,t,r,n,o){for(;n<=o;++n){const o=r[n];En(o)&&(o.hook.create(o),o.hook.insert(o,e,t))}}function Tn(e,t,r,n){for(;r<=n;++r){const n=t[r];En(n)&&n.hook.remove(n,e)}}function Nn(e,t,r){let n=0,o=0,i=t.length-1,a=t[0],s=t[i];const c=r.length-1;let l,u,d,p,f=c,h=r[0],m=r[f];for(;n<=i&&o<=f;)En(a)?En(s)?En(h)?En(m)?Pn(a,h)?(An(a,h),a=t[++n],h=r[++o]):Pn(s,m)?(An(s,m),s=t[--i],m=r[--f]):Pn(a,m)?(An(a,m),m.hook.move(a,e,s.owner.renderer.nextSibling(s.elm)),a=t[++n],m=r[--f]):Pn(s,h)?(An(s,h),h.hook.move(s,e,a.elm),s=t[--i],h=r[++o]):(void 0===l&&(l=On(t,n,i)),u=l[h.key],vn(u)?(h.hook.create(h),h.hook.insert(h,e,a.elm),h=r[++o]):(d=t[u],En(d)&&(d.sel!==h.sel?(h.hook.create(h),h.hook.insert(h,e,a.elm)):(An(d,h),t[u]=void 0,h.hook.move(d,e,a.elm))),h=r[++o])):m=r[--f]:h=r[++o]:s=t[--i]:a=t[++n];if(n<=i||o<=f)if(n>i){let t,n=f;do{t=r[++n]}while(!En(t)&&n=0;n-=1){const o=r[n],a=t[n];o!==a&&(En(a)?En(o)?(An(a,o),i=o.elm):a.hook.remove(a,e):En(o)&&(o.hook.create(o),o.hook.insert(o,e,i),i=o.elm))}}function An(e,t){e!==t&&(t.elm=e.elm,t.hook.update(e,t))}const jn="undefined"!=typeof HTMLElement?HTMLElement:function(){},kn=jn.prototype,Rn=Mt(null);ar.call(zt(Or),(e=>{const t=vr(kn,e);pr(t)||(Rn[e]=t)})),ar.call(["accessKey","dir","draggable","hidden","id","lang","spellcheck","tabIndex","title"],(e=>{const t=vr(kn,e);pr(t)||(Rn[e]=t)}));const{isArray:$n}=Array,{getPrototypeOf:In,create:Ln,defineProperty:xn,defineProperties:Mn,isExtensible:Dn,getOwnPropertyDescriptor:_n,getOwnPropertyNames:Un,getOwnPropertySymbols:Fn,preventExtensions:Hn,hasOwnProperty:Gn}=Object,{push:Bn,concat:Vn,map:zn}=Array.prototype;function Wn(e){return void 0===e}function Kn(e){return"function"==typeof e}const qn=new WeakMap;function Yn(e,t){qn.set(e,t)}const Jn=e=>qn.get(e)||e;class Xn{constructor(e,t){this.originalTarget=t,this.membrane=e}wrapDescriptor(e){if(Gn.call(e,"value"))e.value=this.wrapValue(e.value);else{const{set:t,get:r}=e;Wn(r)||(e.get=this.wrapGetter(r)),Wn(t)||(e.set=this.wrapSetter(t))}return e}copyDescriptorIntoShadowTarget(e,t){const{originalTarget:r}=this,n=_n(r,t);if(!Wn(n)){const r=this.wrapDescriptor(n);xn(e,t,r)}}lockShadowTarget(e){const{originalTarget:t}=this;Vn.call(Un(t),Fn(t)).forEach((t=>{this.copyDescriptorIntoShadowTarget(e,t)}));const{membrane:{tagPropertyKey:r}}=this;Wn(r)||Gn.call(e,r)||xn(e,r,Ln(null)),Hn(e)}apply(e,t,r){}construct(e,t,r){}get(e,t){const{originalTarget:r,membrane:{valueObserved:n}}=this,o=r[t];return n(r,t),this.wrapValue(o)}has(e,t){const{originalTarget:r,membrane:{tagPropertyKey:n,valueObserved:o}}=this;return o(r,t),t in r||t===n}ownKeys(e){const{originalTarget:t,membrane:{tagPropertyKey:r}}=this,n=Wn(r)||Gn.call(t,r)?[]:[r];return Bn.apply(n,Un(t)),Bn.apply(n,Fn(t)),n}isExtensible(e){const{originalTarget:t}=this;return!!Dn(e)&&(!!Dn(t)||(this.lockShadowTarget(e),!1))}getPrototypeOf(e){const{originalTarget:t}=this;return In(t)}getOwnPropertyDescriptor(e,t){const{originalTarget:r,membrane:{valueObserved:n,tagPropertyKey:o}}=this;n(r,t);let i=_n(r,t);if(Wn(i)){if(t!==o)return;return i={value:void 0,writable:!1,configurable:!1,enumerable:!1},xn(e,o,i),i}return!1===i.configurable&&this.copyDescriptorIntoShadowTarget(e,t),this.wrapDescriptor(i)}}const Zn=new WeakMap,Qn=new WeakMap,eo=new WeakMap,to=new WeakMap;class ro extends Xn{wrapValue(e){return this.membrane.getProxy(e)}wrapGetter(e){const t=Zn.get(e);if(!Wn(t))return t;const r=this,n=function(){return r.wrapValue(e.call(Jn(this)))};return Zn.set(e,n),eo.set(n,e),n}wrapSetter(e){const t=Qn.get(e);if(!Wn(t))return t;const r=function(t){e.call(Jn(this),Jn(t))};return Qn.set(e,r),to.set(r,e),r}unwrapDescriptor(e){if(Gn.call(e,"value"))e.value=Jn(e.value);else{const{set:t,get:r}=e;Wn(r)||(e.get=this.unwrapGetter(r)),Wn(t)||(e.set=this.unwrapSetter(t))}return e}unwrapGetter(e){const t=eo.get(e);if(!Wn(t))return t;const r=this,n=function(){return Jn(e.call(r.wrapValue(this)))};return Zn.set(n,e),eo.set(e,n),n}unwrapSetter(e){const t=to.get(e);if(!Wn(t))return t;const r=this,n=function(t){e.call(r.wrapValue(this),r.wrapValue(t))};return Qn.set(n,e),to.set(e,n),n}set(e,t,r){const{originalTarget:n,membrane:{valueMutated:o}}=this;return n[t]!==r?(n[t]=r,o(n,t)):"length"===t&&$n(n)&&o(n,t),!0}deleteProperty(e,t){const{originalTarget:r,membrane:{valueMutated:n}}=this;return delete r[t],n(r,t),!0}setPrototypeOf(e,t){}preventExtensions(e){if(Dn(e)){const{originalTarget:t}=this;if(Hn(t),Dn(t))return!1;this.lockShadowTarget(e)}return!0}defineProperty(e,t,r){const{originalTarget:n,membrane:{valueMutated:o,tagPropertyKey:i}}=this;return t===i&&!Gn.call(n,t)||(xn(n,t,this.unwrapDescriptor(r)),!1===r.configurable&&this.copyDescriptorIntoShadowTarget(e,t),o(n,t),!0)}}const no=new WeakMap,oo=new WeakMap;class io extends Xn{wrapValue(e){return this.membrane.getReadOnlyProxy(e)}wrapGetter(e){const t=no.get(e);if(!Wn(t))return t;const r=this,n=function(){return r.wrapValue(e.call(Jn(this)))};return no.set(e,n),n}wrapSetter(e){const t=oo.get(e);if(!Wn(t))return t;const r=function(e){};return oo.set(e,r),r}set(e,t,r){return!1}deleteProperty(e,t){return!1}setPrototypeOf(e,t){}preventExtensions(e){return!1}defineProperty(e,t,r){return!1}}const ao=Object.prototype;function so(e){if(null===e)return!1;if("object"!=typeof e)return!1;if($n(e))return!0;const t=In(e);return t===ao||null===t||null===In(t)}const co=(e,t)=>{},lo=(e,t)=>{},uo=e=>e;function po(e){return $n(e)?[]:{}}const fo=Symbol.for("@@lockerLiveValue");function ho(e){return e}const mo=new class{constructor(e){if(this.valueDistortion=uo,this.valueMutated=lo,this.valueObserved=co,this.valueIsObservable=so,this.objectGraph=new WeakMap,!Wn(e)){const{valueDistortion:t,valueMutated:r,valueObserved:n,valueIsObservable:o,tagPropertyKey:i}=e;this.valueDistortion=Kn(t)?t:uo,this.valueMutated=Kn(r)?r:lo,this.valueObserved=Kn(n)?n:co,this.valueIsObservable=Kn(o)?o:so,this.tagPropertyKey=i}}getProxy(e){const t=Jn(e),r=this.valueDistortion(t);if(this.valueIsObservable(r)){const n=this.getReactiveState(t,r);return n.readOnly===e?e:n.reactive}return r}getReadOnlyProxy(e){e=Jn(e);const t=this.valueDistortion(e);return this.valueIsObservable(t)?this.getReactiveState(e,t).readOnly:t}unwrapProxy(e){return Jn(e)}getReactiveState(e,t){const{objectGraph:r}=this;let n=r.get(t);if(n)return n;const o=this;return n={get reactive(){const r=new ro(o,t),n=new Proxy(po(t),r);return Yn(n,e),xn(this,"reactive",{value:n}),n},get readOnly(){const r=new io(o,t),n=new Proxy(po(t),r);return Yn(n,e),xn(this,"readOnly",{value:n}),n}},r.set(t,n),n}}({valueObserved:Br,valueMutated:Gr,valueDistortion:ho,tagPropertyKey:fo});function go(e,t){const{get:r,set:n,enumerable:o,configurable:i}=t;if(!gr(r))throw new TypeError;if(!gr(n))throw new TypeError;return{enumerable:o,configurable:i,get(){const t=qa(this);if(!ba(t))return Wr(t,e),r.call(t.elm)},set(t){const r=qa(this);return t!==r.cmpProps[e]&&(r.cmpProps[e]=t,zr(r,e)),n.call(r.elm,t)}}}function bo(){if(fr(ga))throw new ReferenceError("Illegal constructor");const e=ga,{elm:t,mode:r,renderer:n,def:{ctor:o,bridge:i}}=e,a=this;Kt(t,i.prototype);const s=n.attachShadow(t,{mode:r,delegatesFocus:!!o.delegatesFocus,"$$lwc-synthetic-mode$$":!0});if(e.component=this,e.cmpRoot=s,1===arguments.length){const{callHook:t,setHook:r,getHook:n}=arguments[0];e.callHook=t,e.setHook=r,e.getHook=n}return _t(a,fo,Rr),Ka(a,e),Ka(s,e),Ka(t,e),this}bo.prototype={constructor:bo,dispatchEvent(e){const{elm:t,renderer:{dispatchEvent:r}}=qa(this);return r(t,e)},addEventListener(e,t,r){const n=qa(this),{elm:o,renderer:{addEventListener:i}}=n;i(o,e,ja(n,t),r)},removeEventListener(e,t,r){const n=qa(this),{elm:o,renderer:{removeEventListener:i}}=n;i(o,e,ja(n,t),r)},hasAttribute(e){const{elm:t,renderer:{getAttribute:r}}=qa(this);return!fr(r(t,e))},hasAttributeNS(e,t){const{elm:r,renderer:{getAttribute:n}}=qa(this);return!fr(n(r,t,e))},removeAttribute(e){const{elm:t,renderer:{removeAttribute:r}}=qa(this);tn(t,e),r(t,e),en()},removeAttributeNS(e,t){const{elm:r,renderer:{removeAttribute:n}}=qa(this);tn(r,t),n(r,t,e),en()},getAttribute(e){const{elm:t,renderer:{getAttribute:r}}=qa(this);return r(t,e)},getAttributeNS(e,t){const{elm:r,renderer:{getAttribute:n}}=qa(this);return n(r,t,e)},setAttribute(e,t){const r=qa(this),{elm:n,renderer:{setAttribute:o}}=r;tn(n,e),o(n,e,t),en()},setAttributeNS(e,t,r){const n=qa(this),{elm:o,renderer:{setAttribute:i}}=n;tn(o,t),i(o,t,r,e),en()},getBoundingClientRect(){const e=qa(this),{elm:t,renderer:{getBoundingClientRect:r}}=e;return r(t)},querySelector(e){const t=qa(this),{elm:r,renderer:{querySelector:n}}=t;return n(r,e)},querySelectorAll(e){const t=qa(this),{elm:r,renderer:{querySelectorAll:n}}=t;return n(r,e)},getElementsByTagName(e){const t=qa(this),{elm:r,renderer:{getElementsByTagName:n}}=t;return n(r,e)},getElementsByClassName(e){const t=qa(this),{elm:r,renderer:{getElementsByClassName:n}}=t;return n(r,e)},get isConnected(){const{elm:e,renderer:{isConnected:t}}=qa(this);return t(e)},get classList(){const e=qa(this),{elm:t,renderer:{getClassList:r}}=e;return r(t)},get template(){return qa(this).cmpRoot},get shadowRoot(){return null},render(){return qa(this).def.template},toString(){return`[object ${qa(this).def.name}]`}};const yo=Mt(null);for(const e in Rn)yo[e]=go(e,Rn[e]);Dt(bo.prototype,yo),_t(bo,"CustomElementConstructor",{get(){throw new ReferenceError("The current runtime does not support CustomElementConstructor.")},configurable:!0});const wo=bo;function vo(e){return{get(){const t=qa(this);return Wr(t,e),t.cmpFields[e]},set(t){const r=qa(this);t!==r.cmpFields[e]&&(r.cmpFields[e]=t,zr(r,e))},enumerable:!0,configurable:!0}}function Po(e){return{get(){const t=qa(this);return Wr(t,e),t.cmpFields[e]},set(t){const r=qa(this),n=mo.getProxy(t);n!==r.cmpFields[e]&&(r.cmpFields[e]=n,zr(r,e))},enumerable:!0,configurable:!0}}const{assign:Eo,create:Oo,defineProperties:Co,defineProperty:To,freeze:No,getOwnPropertyDescriptor:So,getOwnPropertyNames:Ao,getPrototypeOf:jo,hasOwnProperty:ko,isFrozen:Ro,keys:$o,seal:Io,setPrototypeOf:Lo}=Object;function xo(e){return void 0===e}const Mo=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}();Mo.lwcRuntimeFlags||Object.defineProperty(Mo,"lwcRuntimeFlags",{value:Oo(null)});const Do=Mo.lwcRuntimeFlags;const _o={ENABLE_REACTIVE_SETTER:null,ENABLE_HMR:null,DISABLE_INNER_OUTER_TEXT_PATCH:null,ENABLE_ELEMENT_PATCH:null,ENABLE_NODE_LIST_PATCH:null,ENABLE_HTML_COLLECTIONS_PATCH:null,ENABLE_NODE_PATCH:null};function Uo(e){return{get(){const t=qa(this);if(!ba(t))return Wr(t,e),t.cmpProps[e]},set(t){const r=qa(this);r.cmpProps[e]=t,zr(r,e)},enumerable:!0,configurable:!0}}class Fo extends Vr{constructor(e,t){super((()=>{mr(this.debouncing)&&(this.debouncing=!0,Lr((()=>{if(hr(this.debouncing)){const{value:r}=this,{isDirty:n,component:o,idx:i}=e;t.call(o,r),this.debouncing=!1,hr(e.isDirty)&&mr(n)&&i>0&&Ga(e)}})))})),this.debouncing=!1}reset(e){super.reset(),this.debouncing=!1,arguments.length>0&&(this.value=e)}}function Ho(e,t){const{get:r,set:n,enumerable:o,configurable:i}=t;if(!gr(r))throw new Error;return{get(){return r.call(this)},set(t){const r=qa(this);if(n)if(Do.ENABLE_REACTIVE_SETTER){let o=r.oar[e];pr(o)&&(o=r.oar[e]=new Fo(r,n)),o.reset(t),o.observe((()=>{n.call(this,t)}))}else n.call(this,t)},enumerable:o,configurable:i}}function Go(e){return{get(){const t=qa(this);return Wr(t,e),t.cmpFields[e]},set(t){const r=qa(this);t!==r.cmpFields[e]&&(r.cmpFields[e]=t,zr(r,e))},enumerable:!0,configurable:!0}}var Bo;function Vo(e,t){const r=e.prototype,{publicProps:n,publicMethods:o,wire:i,track:a,fields:s}=t,c=Mt(null),l=Mt(null),u=Mt(null),d=Mt(null),p=Mt(null),f=Mt(null);let h;if(!pr(n))for(const e in n){const t=n[e];if(f[e]=t.config,h=Ft(r,e),t.config>0){if(pr(h))throw new Error;h=Ho(e,h)}else h=Uo(e);l[e]=h,_t(r,e,h)}if(pr(o)||ar.call(o,(e=>{if(h=Ft(r,e),pr(h))throw new Error;c[e]=h})),!pr(i))for(const e in i){const{adapter:t,method:n,config:o,dynamic:a=[]}=i[e];if(h=Ft(r,e),1===n){if(pr(h))throw new Error;u[e]=h,ds(h,t,o,a)}else h=vo(e),d[e]=h,ps(h,t,o,a),_t(r,e,h)}if(!pr(a))for(const e in a)h=Ft(r,e),h=Po(e),_t(r,e,h);if(!pr(s))for(let e=0,t=s.length;e[...a,...zt(o)]}),Dt(n.prototype,s),n}const ni=ri(jn,Ht(Rn),[]);function oi(e){return e()}function ii(e){return gr(e)&&Bt.call(e,"__circular__")}Ut(ni),Wt(ni.prototype);const ai=new WeakMap;function si(e){const t=function(e){const t=zo.get(e);return pr(t)?Wo:t}(e),{apiFields:r,apiFieldsConfig:n,apiMethods:o,wiredFields:i,wiredMethods:a,observedFields:s}=t,c=e.prototype;let{connectedCallback:l,disconnectedCallback:u,renderedCallback:d,errorCallback:p,render:f}=c;const h=function(e){let t=Gt(e);if(fr(t))throw new ReferenceError(`Invalid prototype chain for ${e.name}, you must extend LightningElement.`);if(ii(t)){const e=oi(t);t=e===t?wo:e}return t}(e),m=h!==wo?li(h):ui,g=ri(m.bridge,zt(r),zt(o)),b=xt(Mt(null),m.props,r),y=xt(Mt(null),m.propsConfig,n),w=xt(Mt(null),m.methods,o),v=xt(Mt(null),m.wire,i,a);l=l||m.connectedCallback,u=u||m.disconnectedCallback,d=d||m.renderedCallback,p=p||m.errorCallback,f=f||m.render;const P=function(e){return Ea.get(e)}(e)||m.template,E=e.name||m.name;Dt(c,s);return{ctor:e,name:E,wire:v,props:b,propsConfig:y,methods:w,bridge:g,template:P,connectedCallback:l,disconnectedCallback:u,renderedCallback:d,errorCallback:p,render:f}}function ci(e){if(!gr(e))return!1;if(e.prototype instanceof wo)return!0;let t=e;do{if(ii(t)){const e=oi(t);if(e===t)return!0;t=e}if(t===wo)return!0}while(!fr(t)&&(t=Gt(t)));return!1}function li(e){let t=ai.get(e);if(pr(t)){if(ii(e)){return t=li(oi(e)),ai.set(e,t),t}if(!ci(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=si(e),ai.set(e,t)}return t}const ui={ctor:wo,name:wo.name,props:yo,propsConfig:Rr,methods:Rr,wire:Rr,bridge:ni,template:qo,render:wo.prototype.render};var di;!function(e){e.any="any"}(di||(di={}));const pi=()=>{};function fi(e,t){e.$shadowToken$=t}function hi(e,t,r){const{renderer:n}=e.owner;n.insert(e.elm,t,r)}function mi(e,t){const{renderer:r}=e.owner;r.remove(e.elm,t)}var gi;function bi(e,t){const{children:r,owner:n}=t,o=Pi(r)?Nn:Sn;os(n,n.owner,pi,(()=>{o(t.elm,e.children,r)}),pi)}function yi(e,t){const r=e.aChildren||e.children;t.aChildren=r,hr(t.renderer.syntheticShadow)&&(!function(e,t){const{cmpSlots:r}=e,n=e.cmpSlots=Mt(null);for(let e=0,r=t.length;e{const{owner:t}=e,{renderer:r}=t,n=r.createText(e.text);Si(n,t),e.elm=n},update:function(e,t){const{elm:r,text:n,owner:{renderer:o}}=t;e.text!==n&&o.setText(r,n)},insert:hi,move:hi,remove:mi},Ti={create:e=>{const{sel:t,owner:r,data:{ns:n}}=e,{renderer:o}=r,i=o.createElement(t,n);Si(i,r),function(e,t){const{owner:r}=t;if(hr(r.renderer.syntheticShadow)){const{data:{context:n}}=t,{shadowAttribute:o}=r.context;pr(n)||pr(n.lwc)||n.lwc.dom!==gi.manual||function(e){e.$domManual$=!0}(e),fi(e,o)}}(i,e),e.elm=i,function(e){Yr.create(e),on.create(e),ln.create(e),yn.create(e),wn.create(e),hn.create(e),bn.create(e)}(e)},update:(e,t)=>{!function(e,t){on.update(e,t),ln.update(e,t),hn.update(e,t),bn.update(e,t)}(e,t),bi(e,t)},insert:(e,t,r)=>{hi(e,t,r),wi(e)},move:(e,t,r)=>{hi(e,t,r)},remove:(e,t)=>{mi(e,t),function(e){const{children:t,elm:r}=e;for(let e=0,n=t.length;e{const{sel:t,owner:r}=e,{renderer:n}=r,o=Ei(t,n),i=new o((t=>{!function(e,t){if(!pr(Ya(e)))return;const{sel:r,mode:n,ctor:o,owner:i}=t,a=li(o);if(hr(i.renderer.syntheticShadow)){const{shadowAttribute:t}=i.context;fi(e,t)}Wa(e,a,{mode:n,owner:i,tagName:r,renderer:i.renderer})}(t,e)}));Si(i,r),e.elm=i;const a=Ya(i);if(a)yi(e,a);else if(e.ctor!==o)throw new TypeError("Incorrect Component Constructor");!function(e){Yr.create(e),on.create(e),ln.create(e),yn.create(e),wn.create(e),hn.create(e),bn.create(e)}(e)},update:(e,t)=>{!function(e,t){on.update(e,t),ln.update(e,t),hn.update(e,t),bn.update(e,t)}(e,t);const r=Ya(t.elm);r&&yi(t,r),bi(e,t),r&&Ga(r)},insert:(e,t,r)=>{hi(e,t,r);const n=Ya(e.elm);n&&Qa(n),wi(e),n&&function(e){Ja(e)}(n)},move:(e,t,r)=>{hi(e,t,r)},remove:(e,t)=>{mi(e,t);const r=Ya(e.elm);r&&function(e){za(e)}(r)}};function Si(e,t){const{renderer:r,cmpRoot:n}=t;r.syntheticShadow&&(e.$shadowResolver$=n.$shadowResolver$)}function Ai(e){const{data:t,children:r,sel:n}=e;if(t.ns="http://www.w3.org/2000/svg",qt(r)&&"foreignObject"!==n)for(let e=0,t=r.length;e0&&!(hr(e)||mr(e))?0:e},s:function(e,t,r,n){pr(n)||pr(n[e])||0===n[e].length||(r=n[e]);const o=ji("slot",t,r);return o.owner.renderer.syntheticShadow&&Li(r),o},c:ki,i:function(e,t){const r=[];if(Li(r),pr(e)||null===e)return r;const n=e[Oi]();let o=n.next(),i=0,{value:a,done:s}=o;for(;!1===s;){o=n.next(),s=o.done;const e=t(a,i,0===i,s);qt(e)?er.apply(r,e):er.call(r,e),i+=1,a=o.value}return r},f:function(e){const t=e.length,r=[];Li(r);for(let n=0;n.`);let o=$i.get(t);return pr(o)&&(o=Ii++,$i.set(t,o)),r.key=`dc:${o}:${r.key}`,ki(e,t,r,n)},sc:Li});function Di(e,t,r,n){const o=[];for(let i=0;i{ua=e,fa&&ia(Xi.render,e)}),(()=>{const{component:r,context:n,cmpSlots:i,cmpTemplate:a,tro:s,renderer:c}=e;s.observe((()=>{if(t!==a){if(fr(a)||ns(e),s=t,!Ko.has(s))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: ${wr(t)}.`);e.cmpTemplate=t,n.tplCache=Mt(null),c.syntheticShadow&&function(e,t){const{elm:r,context:n,renderer:o}=e,{stylesheets:i,stylesheetTokens:a}=t;let s,c;const l=n.hostAttribute;pr(l)||o.removeAttribute(r,l),pr(a)||pr(i)||0===i.length||(s=a.hostAttribute,c=a.shadowAttribute,o.setAttribute(r,s,"")),n.hostAttribute=s,n.shadowAttribute=c}(e,t);const r=_i(e,t);n.styleVNode=0===r.length?null:Ui(e,r)}var s;e.velements=[],la=!0,o=t.call(void 0,Mi,r,i,n.tplCache);const{styleVNode:l}=n;fr(l)||ir.call(o,l)}))}),(()=>{la=r,ua=n,fa&&aa(Xi.render,e)})),o}function ma(e,t){if(!Vt(t)&&pr(t.wcStack)){const r=function(e){const t=[];let r=e;for(;!fr(r);)er.call(t,Kr(r)),r=r.owner;return t.reverse().join("\n\t")}(e);_t(t,"wcStack",{get:()=>r})}}oa((e=>fa=e));let ga=null;function ba(e){return ga===e}let ya=!1;oa((e=>ya=e));const wa=()=>{};function va(e,t,r){const{component:n,callHook:o,owner:i}=e;let a;return os(e,i,wa,(()=>{a=o(n,t,r)}),wa),a}function Pa(e,t,r,n){const{callHook:o,owner:i}=e;os(e,i,wa,(()=>{o(r,t,[n])}),wa)}const Ea=new Map;function Oa(e,{tmpl:t}){return Ea.set(e,t),e}function Ca(e,t){if(function(e,t){const r=ga;let n;ya&&ia(Xi.constructor,e),ga=e;try{const o=new t;if(ga.component!==o)throw new TypeError("Invalid component constructor, the class should extend LightningElement.")}catch(e){n=Object(e)}finally{if(ya&&aa(Xi.constructor,e),ga=r,!pr(n))throw ma(e,n),n}}(e,t),pr(e.component))throw new ReferenceError(`Invalid construction for ${t}, you must extend LightningElement.`)}function Ta(e){return new Vr((()=>{const{isDirty:t}=e;mr(t)&&(Sa(e),function(e){if(hr(e.renderer.ssr)||hr(e.isScheduled))return;e.isScheduled=!0,0===Xa.length&&Lr(Za);er.call(Xa,e)}(e))}))}function Na(e){e.tro.reset();const t=function(e){const{def:{render:t},callHook:r,component:n,owner:o}=e,i=da();let a,s=!1;return os(e,o,(()=>{pa(e)}),(()=>{e.tro.observe((()=>{a=r(n,t),s=!0}))}),(()=>{pa(i)})),s?ha(e,a):[]}(e);return e.isDirty=!1,e.isScheduled=!1,t}function Sa(e){e.isDirty=!0}const Aa=new WeakMap;function ja(e,t){if(!gr(t))throw new TypeError;let r=Aa.get(t);return pr(r)&&(r=function(r){Pa(e,t,void 0,r)},Aa.set(t,r)),r}const ka=Mt(null),Ra=["rendered","connected","disconnected"];function $a(e,t){const{component:r,def:n,context:o}=e;for(let e=0,i=t.length;eLa=e));let xa=0;const Ma=(Da="ViewModel",_a="engine",Cr?Symbol(Da):`$$lwc-${_a}-${Da}$$`);var Da,_a;function Ua(e,t,r=[]){return t.apply(e,r)}function Fa(e,t,r){e[t]=r}function Ha(e,t){return e[t]}function Ga(e){Ja(e)}function Ba(e){const t=qa(e);Ki(xi.HYDRATE,t),t.state===Ia.connected&&Va(e),Qa(t),Ja(t),qi(xi.HYDRATE,t)}function Va(e){za(qa(e))}function za(e){const{state:t}=e;if(t!==Ia.disconnected){const{oar:t,tro:r}=e;r.reset();for(const e in t)t[e].reset();!function(e){mr(e.isDirty)&&(e.isDirty=!0);e.state=Ia.disconnected;const{disconnected:t}=ka;t&&$a(e,t);es(e)&&function(e){const{wiredDisconnecting:t}=e.context;os(e,e,as,(()=>{for(let e=0,r=t.length;e0;er.call(n,(()=>{r.connect(),c?Promise.resolve().then(i):i()})),er.call(o,(()=>{r.disconnect(),s()}))}}}(s),s}function Ka(e,t){!function(e,t,r){let n=Tr.get(e);pr(n)&&(n=Mt(null),Tr.set(e,n)),n[t]=r}(e,Ma,t)}function qa(e){return Nr(e,Ma)}function Ya(e){return Nr(e,Ma)}function Ja(e){if(hr(e.isDirty)){!function(e,t){const{cmpRoot:r,children:n}=e;if(e.children=t,(t.length>0||n.length>0)&&n!==t){const o=Pi(t)?Nn:Sn;os(e,e,(()=>{La&&ia(Xi.patch,e)}),(()=>{o(r,n,t)}),(()=>{La&&aa(Xi.patch,e)}))}e.state===Ia.connected&&function(e){if(hr(e.renderer.ssr))return;const{rendered:t}=ka;t&&$a(e,t);!function(e){const{def:{renderedCallback:t},component:r,callHook:n,owner:o}=e;pr(t)||os(e,o,(()=>{ya&&ia(Xi.renderedCallback,e)}),(()=>{n(r,t)}),(()=>{ya&&aa(Xi.renderedCallback,e)}))}(e)}(e)}(e,Na(e))}}let Xa=[];function Za(){Ki(xi.REHYDRATE);const e=Xa.sort(((e,t)=>e.idx-t.idx));Xa=[];for(let t=0,r=e.length;t0}function ts(e){const{velements:t}=e;for(let e=t.length-1;e>=0;e-=1){const{elm:r}=t[e];if(!pr(r)){const e=Ya(r);pr(e)||za(e)}}}function rs(e){for(let t=0,r=e.length;t{n!==e.cmpFields[t]&&(r[t]=n,zr(e,t))}}(e,t):function(e,t){return r=>{os(e,e.owner,as,(()=>{t.call(e.component,r)}),as)}}(e,n);let c,l;_t(s,"$$DeprecatedWiredElementHostKey$$",{value:e.elm}),_t(s,"$$DeprecatedWiredParamsMetaKey$$",{value:a}),os(e,e,as,(()=>{l=new o(s)}),as);const{computeConfigAndUpdate:u,ro:d}=function(e,t,r){let n=!1;const o=new Vr((()=>{!1===n&&(n=!0,Promise.resolve().then((()=>{n=!1,o.reset(),i()})))})),i=()=>{let n;o.observe((()=>n=t(e))),r(n)};return{computeConfigAndUpdate:i,ro:o}}(e.component,i,(t=>{os(e,e,as,(()=>{l.update(t,c)}),as)}));return pr(o.contextSchema)||function(e,t,r){const{adapter:n}=t,o=us(n);if(pr(o))return;const{elm:i,renderer:a,context:{wiredConnecting:s,wiredDisconnecting:c}}=e;er.call(s,(()=>{const e=new ss(o,{setNewContext(e){r(e)},setDisconnectedCallback(e){er.call(c,e)}});a.dispatchEvent(i,e)}))}(e,r,(t=>{c!==t&&(c=t,e.state===Ia.connected&&u())})),{connector:l,computeConfigAndUpdate:u,resetConfigWatcher:()=>d.reset()}}const ls=new Map;function us(e){return ls.get(e)}function ds(e,t,r,n){t.adapter&&(t=t.adapter);const o={adapter:t,method:e.value,configCallback:r,dynamic:n};is.set(e,o)}function ps(e,t,r,n){t.adapter&&(t=t.adapter);const o={adapter:t,configCallback:r,dynamic:n};is.set(e,o)}function fs(e){let t=us(e);if(!pr(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){ls.set(e,t)}(e,t);const r=new WeakSet;return(e,n)=>{if(r.has(e))throw new Error(`Adapter was already installed on ${e}.`);r.add(e);const{consumerConnectedCallback:o,consumerDisconnectedCallback:i}=n;e.addEventListener(t,(e=>{const{setNewContext:t,setDisconnectedCallback:r}=e,n={provide(e){t(e)}};r((()=>{pr(i)||i(n)})),o(n),e.stopImmediatePropagation()}))}}const hs=Ve(null),ms=document.head||document.body||document;let gs,bs,ys;if(function(){if("undefined"==typeof customElements)return!1;try{const e=HTMLElement;class t extends e{}return customElements.define("lwc-test-"+Math.floor(1e6*Math.random()),t),new t,!0}catch(e){return!1}}())gs=customElements.get.bind(customElements),bs=customElements.define.bind(customElements),ys=HTMLElement;else{const e=Ve(null),t=new WeakMap;bs=function(r,n){if(r!==yt.call(r)||e[r])throw new TypeError("Invalid Registration");e[r]=n,t.set(n,r)},gs=function(t){return e[t]},ys=function e(){if(!(this instanceof e))throw new TypeError("Invalid Invocation");const{constructor:r}=this,n=t.get(r);if(!n)throw new TypeError("Invalid Construction");const o=document.createElement(n);return tt(o,r.prototype),o},ys.prototype=HTMLElement.prototype}const ws=Xe.call(Element.prototype,"$shadowToken$"),vs={ssr:!1,syntheticShadow:ws,createElement:(e,t)=>wt(t)?document.createElement(e):document.createElementNS(t,e),createText:e=>document.createTextNode(e),insert(e,t,r){t.insertBefore(e,r)},remove(e,t){t.removeChild(e)},nextSibling:e=>e.nextSibling,attachShadow:(e,t)=>e.attachShadow(t),setText(e,t){e.nodeValue=t},getProperty:(e,t)=>e[t],setProperty(e,t,r){e[t]=r},getAttribute:(e,t,r)=>wt(r)?e.getAttribute(t):e.getAttributeNS(r,t),setAttribute:(e,t,r,n)=>wt(n)?e.setAttribute(t,r):e.setAttributeNS(n,t,r),removeAttribute(e,t,r){wt(r)?e.removeAttribute(t):e.removeAttributeNS(r,t)},addEventListener(e,t,r,n){e.addEventListener(t,r,n)},removeEventListener(e,t,r,n){e.removeEventListener(t,r,n)},dispatchEvent:(e,t)=>e.dispatchEvent(t),getClassList:e=>e.classList,setCSSStyleProperty(e,t,r){e.style.setProperty(t,r)},getBoundingClientRect:e=>e.getBoundingClientRect(),querySelector:(e,t)=>e.querySelector(t),querySelectorAll:(e,t)=>e.querySelectorAll(t),getElementsByTagName:(e,t)=>e.getElementsByTagName(t),getElementsByClassName:(e,t)=>e.getElementsByClassName(t),isConnected:e=>e.isConnected,insertGlobalStylesheet(e){if(!wt(hs[e]))return;hs[e]=!0;const t=document.createElement("style");t.type="text/css",t.textContent=e,ms.appendChild(t)},assertInstanceOfHTMLElement(e,t){Ge.invariant(e instanceof HTMLElement,t)},defineCustomElement:bs,getCustomElement:gs,HTMLElement:ys};const Ps=Nt("connecting","engine"),Es=Nt("disconnecting","engine");function Os(e,t){const r=function(e,t){const r=St.get(e);if(!wt(r))return r[t]}(e,t);return wt(r)||r(e),e}const{appendChild:Cs,insertBefore:Ts,removeChild:Ns,replaceChild:Ss}=Node.prototype;Be(Node.prototype,{appendChild(e){return Os(Cs.call(this,e),Ps)},insertBefore(e,t){return Os(Ts.call(this,e,t),Ps)},removeChild(e){return Os(Ns.call(this,e),Es)},replaceChild(e,t){const r=Ss.call(this,e,t);return Os(r,Es),Os(e,Ps),r}});const As=new Map;function js(e){if(e===wo)throw new TypeError("Invalid Constructor. LightningElement base class can't be claimed as a custom element.");let t=As.get(e);return wt(t)&&(t=function(e){const t=li(e);return class extends t.bridge{constructor(){super(),Wa(this,t,{mode:"open",owner:null,tagName:this.tagName,renderer:vs})}connectedCallback(){Ba(this)}disconnectedCallback(){Va(this)}}}(e),As.set(e,t)),t}We(wo,"CustomElementConstructor",{get(){return js(this)}}),Ke(wo),et(wo.prototype);var ks=Object.freeze({__proto__:null,LightningElement:wo,__unstable__ProfilerControl:ca,api:function(){throw new Error},buildCustomElementConstructor:function(e){return e.CustomElementConstructor},createContextProvider:fs,createElement:function(e,t){if("object"!=typeof t||function(e){return null===e}(t))throw new TypeError(`"createElement" function expects an object as second parameter but received "${Pt(t)}".`);const r=t.is;if(!function(e){return"function"==typeof e}(r))throw new TypeError('"createElement" function expects an "is" option with a valid component constructor.');const n=Ei(e,vs);let o=!1;const i=new n((n=>{Wa(n,li(r),{tagName:e,mode:"closed"!==t.mode?"open":"closed",owner:null,renderer:vs}),At(n,Ps,Ba),At(n,Es,Va),o=!0}));return o||console.error(`Unexpected tag name "${e}". This name is a registered custom element, preventing LWC to upgrade the element.`),i},getComponentConstructor:function(e){let t=null;if(e instanceof HTMLElement){const r=Ya(e);wt(r)||(t=r.def.ctor)}return t},getComponentDef:function(e){const t=li(e),{ctor:r,name:n,props:o,propsConfig:i,methods:a}=t,s={};for(const e in o)s[e]={config:i[e]||0,type:di.any,attr:jr(e)};const c={};for(const e in a)c[e]=a[e].value;return{ctor:r,name:n,props:s,methods:c}},isComponentConstructor:ci,isNodeFromTemplate:function(e){return!1!=e instanceof Node&&(!(e instanceof ShadowRoot)&&((!ws||!wt(e.$shadowResolver$))&&e.getRootNode()instanceof ShadowRoot))},readonly:function(e){return mo.getReadOnlyProxy(e)},register:function(e){for(let t=0;t0,reset(){}}},gauge:function(e){return{setValue(e){},getValue:()=>0,reset(){}}},percentileHistogram:function(e){return{update(e){},getValue:()=>[],reset(){}}},timer:function(e){return{addDuration(){},time(){},getValue:()=>[],reset(){},get(){}}}});const Ms=/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z){1})?)?)?$/i,Ds=/^\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i,_s="YYYY-MM-DD",Us=/(Z|([+-])(\d{2}):(\d{2}))$/;function Fs(e){return function(e){if("string"!=typeof e)return!1;return Ms.test(e)}(e)&&Bs(e)}function Hs(e){if(!function(e){if("string"!=typeof e)return!1;return Ds.test(e)}(e))return!1;return Bs(`2018-09-09T${Gs(e)}Z`)}function Gs(e){return"string"==typeof e?e.split(Us)[0]:e}function Bs(e){const t=Date.parse(e);return isFinite(t)}var Vs=void 0;const zs="in {0} {1}",Ws="{0} {1} ago",Ks={SECONDS:{name:"second",threshold:45},MINUTES:{name:"minute",threshold:45},HOURS:{name:"hour",threshold:22},DAYS:{name:"day",threshold:26},MONTHS:{name:"month",threshold:11},YEARS:{name:"year"}},qs=864e5;class Ys{constructor(e){if(this.milliseconds=0,"number"!=typeof e)return this.isValid=!1,void console.warn(`The value of milliseconds passed into Duration must be of type number, \n but we are getting the ${typeof e} value "${e}" instead.\n `);this.isValid=!0,this.milliseconds=e}humanize(e){if(!this.isValid)return"";const t=function(e){const t=Object.keys(Ks).find((t=>{const r=Ks[t];return r===Ks.YEARS||Math.abs(e.asIn(r))0?"in a few seconds":"a few seconds ago"}return function(e,t,r){if("Intl"in window&&Intl.RelativeTimeFormat){return new Intl.RelativeTimeFormat(e,{style:"long",numeric:"always"}).format(t,r)}return function(e,t){console.warn("The current environment does not support formatters for relative time.");const r=Math.abs(e);return function(e,...t){return e.replace(/{(\d+)}/g,((e,r)=>t[r]))}(e>0?zs:Ws,r,1!==r?t+"s":t)}(t,r)}(e,this.asIn(t),t.name)}asIn(e){switch(e){case Ks.SECONDS:return Math.round(this.milliseconds/1e3);case Ks.MINUTES:return Math.round(this.milliseconds/6e4);case Ks.HOURS:return Math.round(this.milliseconds/36e5);case Ks.DAYS:return Math.round(this.milliseconds/qs);case Ks.MONTHS:return Math.round(Xs(this.milliseconds/qs));case Ks.YEARS:default:return Math.round(Xs(this.milliseconds/qs)/12)}}}Vo(Ys,{fields:["milliseconds"]});var Js=Oa(Ys,{tmpl:Vs});function Xs(e){return e*(4800/146097)}const Zs=["January","February","March","April","May","June","July","August","September","October","November","December"],Qs={short:"M/d/yyyy",medium:"MMM d, yyyy",long:"MMMM d, yyyy"},ec="h:mm a",tc="h:mm:ss a",rc="h:mm:ss a",nc={short:"h:m a",medium:"h:m:s a",long:"h:m:s a"};function oc(e,t){return sc(e,t,!0)}function ic(e,t){if(!lc(e))return new Date("");const r=(e.getHours()+11)%12+1,n=e.getHours()>=12?"PM":"AM";switch(t){case"HH:mm:ss.SSS":return`${fc(e.getHours())}:${fc(e.getMinutes())}:${fc(e.getSeconds())}.${function(e){return Number(e)<10?`00${e}`:Number(e)<100?`0${e}`:e}(e.getMilliseconds())}`;case ec:return`${r}:${fc(e.getMinutes())} ${n}`;case tc:case rc:default:return`${r}:${fc(e.getMinutes())}:${fc(e.getSeconds())} ${n}`}}function ac(e){let t=null,r=!0;if(Hs(e)?t=`2014-03-20T${uc(e)}`:Fs(e)&&(e.indexOf("T")>0?(t=uc(e),r=!1):t=`${e}T00:00:00.000Z`),t){const e=new Date(t);return r&&dc(e),e}return null}function sc(e,t,r){const n=pc(e);if(!n)return new Date("");switch(r&&lc(e)&&dc(n),t){case _s:return`${n.getFullYear()}-${fc(n.getMonth()+1)}-${fc(n.getDate())}`;case Qs.short:return`${n.getMonth()+1}/${n.getDate()}/${n.getFullYear()}`;case Qs.long:return`${Zs[n.getMonth()]} ${n.getDate()}, ${n.getFullYear()}`;case Qs.medium:default:return`${Zs[n.getMonth()].substring(0,3)} ${n.getDate()}, ${n.getFullYear()}`}}function cc(e,t){switch(t){case"day":e.setHours(0),e.setMinutes(0);case"minute":e.setSeconds(0),e.setMilliseconds(0)}return e}function lc(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())}function uc(e){return`${Gs(e)}Z`}function dc(e){return e.setMinutes(e.getMinutes()+e.getTimezoneOffset()),e}function pc(e){return e?lc(e)?new Date(e.getTime()):!isFinite(e)||"number"!=typeof e&&"string"!=typeof e?"string"==typeof e?ac(e):null:new Date(parseInt(e,10)):null}function fc(e){return Number(e)<10?`0${e}`:e}var hc={formatDate:function(e,t){let r=!1,n=e;return"string"==typeof e&&(n=e.split("T")[0],r=!0),sc(n,t,r)},formatDateUTC:oc,formatTime:ic,formatDateTimeUTC:function(e){if(!lc(e))return new Date("");const t=new Date(e.getTime());return`${oc(t)}, ${ic(dc(t))}`},parseDateTimeISO8601:ac,parseDateTime:function(e,t){return t===_s&&Fs(e)?ac(e):Object.values(Qs).includes(t)?function(e,t){let r=/^([a-zA-Z]{3})\s*(\d{1,2}),\s*(\d{4})$/;switch(t){case Qs.short:r=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/;break;case Qs.long:r=/^([a-zA-Z]+)\s*(\d{1,2}),\s*(\d{4})$/}const n=r.exec(e.trim());if(!n)return null;let o=n[1];const i=n[2],a=n[3];t!==Qs.short&&(o=Zs.findIndex((e=>e.toLowerCase().includes(o.toLowerCase()))),o+=1);const s=`${a}-${fc(o)}-${fc(i)}`,c=new Date(`${s}T00:00:00.000Z`);return lc(c)?dc(c):null}(e,t):Object.values(nc).includes(t)?function(e){const t=e.trim().split(/[:.\s*]/),r=t.length;if(!t||r<2||r>5)return null;const n=t[r-1],o="am"===n.toLowerCase(),i="pm"===n.toLowerCase();t.splice(-1,1);const a=t.every((e=>!isNaN(e)));if(!i&&!o||!a)return null;const s=t[0],c=fc(i?s%12+12:s%12),l=r>=3&&t[1]||"0",u=r>=4&&t[2]||"0",d=5===r&&t[3]||"0",p=new Date("2014-03-20");return p.setHours(c,l,u,d),lc(p)?p:null}(e):null},parseDateTimeUTC:function(e){return ac(uc(e))},isBefore:function(e,t,r){const n=pc(e),o=pc(t);return!(!n||!o)&&cc(n,r).getTime()cc(o,r).getTime()},UTCToWallTime:function(e,t,r){r(function(e){return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e}(new Date(e.getTime())))},WallTimeToUTC:function(e,t,r){r(dc(new Date(e.getTime())))},translateToOtherCalendar:function(e){return e},translateFromOtherCalendar:function(e){return e},translateToLocalizedDigits:function(e){return e},translateFromLocalizedDigits:function(e){return e},getNumberFormat:function(){return{format:e=>(console.warn(`The current environment does not support large numbers and the original value of ${e} will be returned.`),e)}},duration:function(e){return new Js(60*e*1e3)},displayDuration:function(e){return e.humanize("en")}};function mc(){return hc}function gc(){return d.default}function bc(){return null}function yc(){return null}function wc(){return{densitySetting:""}}var vc={getOneConfig:wc,getIconSvgTemplates:yc,getToken:bc,getPathPrefix:gc,getLocalizationService:mc},Pc=Object.freeze({__proto__:null,default:vc,getOneConfig:wc,getIconSvgTemplates:yc,getToken:bc,getPathPrefix:gc,getLocalizationService:mc});function Ec(){const e=[],t=t=>{"function"==typeof t&&e.push(t)};return{add:(e=[])=>{Array.isArray(e)?e.forEach((e=>t(e))):t(e)},compile:(...t)=>0===e.length?Promise.resolve(!0):e.reduce(((e,r)=>e.then((e=>!1===e?Promise.reject():Promise.resolve(r(...t))))),Promise.resolve(!0)).then((e=>!1!==e)).catch((e=>{if(e instanceof Error)throw e;return!1})),empty:()=>0===e.length}}function Oc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Cc(e){for(var t=1;tt[r])):e}function Ac(e,t){return Cc(Cc({},e),{},{code:`LWR${e.code}`,message:Sc(e.message,t)})}function jc(e,t,r){if(!e)throw new Error(function(e,t){return`LWR${e.code}: ${Sc(e.message,t)}`}(t,r))}const kc={INVALID_MIXIN_CMP:{code:4001,message:"{0} must be an Element type",level:Nc,url:""},MISSING_CONTEXT:{code:4002,message:"Could not find context to perform navigation action.",level:Nc,url:""},INVALID_CONTEXT:{code:4003,message:"Cannot register navigation context; it must have this shape: { navigate, generateUrl, subscribe }",level:Nc,url:""},MULTIPLE_ROOTS:{code:4004,message:"Router connection failed. There can only be one root router.",level:Nc,url:""},MULTIPLE_CHILDREN:{code:4005,message:"Could not add to the navigation hierarchy. There can only be one child per navigation node.",level:Nc,url:""},MISSING_ROUTE:{code:4006,message:'A route cannot be created to navigate to URL "{0}"',level:Nc,url:""},MISSING_URL:{code:4007,message:'A URL cannot be created to navigate to route "{0}"',level:Nc,url:""},PRENAV_FAILED:{code:4008,message:'A preNavigate hook listener blocked routing to "{0}"',level:2,url:""},MISSING_PATH:{code:4009,message:'A route definition must contain a "path" property.',level:Nc,url:""},MISSING_ROUTE_CMP:{code:4016,message:"Expected a route view component with a default export.",level:Nc,url:""},MISSING_DATA_CONTEXT:{code:4018,message:"Could not find context to retrieve navigation data.",level:Nc,url:""}};function Rc(){let e=[],t=null,r=[];const n=n=>{r.filter((e=>null!==e)).forEach((e=>e.error&&e.error(n))),e=[],t=n};return{next:(...n)=>{r.filter((e=>null!==e)).forEach((e=>e.next&&e.next(...n))),e=n,t=null},error:n,complete:()=>{r.filter((e=>null!==e)).forEach((e=>e.complete&&e.complete())),r=[],e=[],t=null},subscribe:(o,i=!0)=>{(e=>{r.push(e)})(o),o.next&&e.length&&i&&o.next(...e),t&&n(t);const a=r.length-1;return{unsubscribe:()=>(e=>{r[e]=null})(a)}}}}function $c(e=""){if((e=e||"").indexOf("://")<0){const t=window.location.port?`:${window.location.port}`:"",r=`${window.location.protocol}//${window.location.hostname}${t}`,n="/"===e.charAt(0)?"":"/";e=r+n+e}const t={},r=document.createElement("a");r.href=e;const n=r.search.substring(1);return n&&n.split("&").forEach((e=>{const[r,n=""]=e.split("=");t[Mc(r)]=Mc(n)})),{href:r.href,origin:`${r.protocol}//${r.hostname}${r.port?`:${r.port}`:""}`,pathname:r.pathname.replace(/(\/)?/,"/"),searchParams:t}}function Ic(e){const t=$c(e),r=t.href.replace(/:\d+/,""),n=t.origin.replace(/:\d+/,"");return r.replace(n,"")}function Lc(e){const t=$c(e).pathname;return"/"===t?"/":t.replace(/\/$/,"")}function xc(e={}){const t=Object.keys(e);return t.length?`?${t.map((t=>e[t]?`${t}=${function(e=""){return e=e||"",encodeURIComponent(e)}(e[t])}`:t)).join("&")}`:""}function Mc(e=""){return e=e||"",decodeURIComponent(e)}function Dc(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function _c(e){if(Dc(e))try{Object.freeze(e),Object.keys(e).forEach((t=>"object"==typeof e[t]&&Object.freeze(e[t])))}catch(e){}return e}function Uc(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function Fc(e){return Hc(e)&&Dc(e.attributes)&&1===Object.keys(e.attributes).length&&Object.prototype.hasOwnProperty.call(e.attributes,"path")}function Hc(e){return Dc(e)&&(Object.prototype.hasOwnProperty.call(e,"id")||Object.prototype.hasOwnProperty.call(e,"type"))}function Gc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bc(e){for(var t=1;tt===r&&e.every((e=>"?"===e.modifier||Object.prototype.hasOwnProperty.call(o,e.name)))))||null;if(n){const e=t.filter((({params:e=[],original:{page:{type:t,attributes:r={}}={}}})=>t===n&&e.every((e=>"?"===e.modifier||Object.prototype.hasOwnProperty.call(o,e.name)))&&Object.keys(r).every((e=>r[e]===o[e]))));return e.length>0?e[0]:null}return null}(e,t),n=function(e,t){if(Fc(e))return e.attributes.path;if(!t||!Hc(e))return null;return"/"===t.original.path?"/":t.toPath(e.attributes)}(e,r);return{url:n?n+Wc(e):null,data:r?r.original:null}}function Wc(e={}){return Object.prototype.hasOwnProperty.call(e,"state")&&Dc(e.state)?xc(e.state):""}function Kc(e,t=[]){const r=Lc(e),n=function(e){return $c(e).searchParams}(e),o=t.find((e=>e.matchesPath(r)))||null;let i;if(o){const e=function(e,t){const r={};if(e&&t){let n=t.regex.exec(e);n&&(n=n.slice(1),t.params.forEach(((e,t)=>{n[t]&&(r[e.name]=Mc(n[t]))}))),t.original.page&&Dc(t.original.page.attributes)&&Object.assign(r,t.original.page.attributes)}return r}(r,o),t=o.original;i={route:{id:t.id,attributes:Bc({},e),state:Bc({},n)},data:t},t.page&&t.page.type&&(i.route.type=t.page.type)}else i={route:{type:"standard__simpleRoute",attributes:{path:r},state:Bc({},n)},data:null};return i}const qc=new WeakMap;function Yc(e){const t=qc.get(e);return jc(t&&t.value,kc.MISSING_CONTEXT),t.value}function Jc(e){return jc(void 0===e||Dc(e)&&"function"==typeof e.navigate&&"function"==typeof e.generateUrl&&"function"==typeof e.subscribe&&3===Object.keys(e).length,kc.INVALID_CONTEXT),e}function Xc(e,t,r,n){const o=function(e,t){const r={id:Object.freeze((()=>{})),value:Jc(e),data:t||[],update:e=>{r.value=Jc(e)}};return qc.set(r.id,r),r}(e,r);return n&&n(t,{consumerConnectedCallback(e){e.provide(o.id)}}),o.id}class Zc{constructor(e){this._callback=void 0,this._callback=e}update(e,t){t&&this._callback(t)}connect(){}disconnect(){}}Zc.contextSchema={value:"required"},Vo(Zc,{fields:["_callback"]});const Qc=fs(Zc),el=`universalcontainernavigationevent${Uc()}`,tl=`universalcontainerparentevent${Uc()}`;class rl{constructor(e=window){this.node=window,this.parent=null,this.child=null,Object.assign(this,{node:e})}get context(){return this}_fallback(e,t,...r){return e?(...t)=>e(...t,...r):t}connectToParent(){this.node.dispatchEvent(new CustomEvent(tl,{bubbles:!0,composed:!0,detail:e=>{this.parent=e,e.addChild(this)}}))}addChild(e){setTimeout((()=>{jc(!this.child,kc.MULTIPLE_CHILDREN),this.child=e}),0)}connect(){this.connectToParent(),this.handleParentEvent=this._handleParentEvent.bind(this),this.handleNavEvent=this._handleEvent.bind(this),this.node.addEventListener(tl,this.handleParentEvent),this.node.addEventListener(rl.navigationEvent,this.handleNavEvent)}disconnect(){this.node.removeEventListener(tl,this.handleParentEvent),this.node.removeEventListener(rl.navigationEvent,this.handleNavEvent),this.parent&&(this.parent.child=null),this.parent=null,this.child&&(this.child.parent=null),this.child=null}get isRoot(){return!this.parent}get root(){let e=this;for(;!e.isRoot;)e=e.parent;return e}_handleParentEvent(e){e.stopImmediatePropagation(),e&&e.detail&&e.detail(this)}_handleEvent(e){const{url:t,options:r,input:n}=e.detail;this.handleEvent(n,r)?this.isRoot&&this.process(t,r):e.stopPropagation()}handleEvent(){return!0}process(){return!0}}rl.navigationEvent=el,Vo(rl,{fields:["node","parent","child"]});var nl=Oa(rl,{tmpl:Vs});function ol(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function il(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class al{constructor(e){this._callback=void 0,this._subscription=void 0,this._callback=e}update(e,t){t&&!this._subscription&&(this._subscription=Yc(t).subscribe((e=>{const t=function(e){for(var t=1;t=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at "+r);t.push({type:"NAME",index:r,value:a}),r=s}else t.push({type:"CLOSE",index:r,value:e[r++]});else t.push({type:"OPEN",index:r,value:e[r++]});else t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});else t.push({type:"MODIFIER",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,o=void 0===n?"./":n,i="[^"+ll(t.delimiter||"/#?")+"]+?",a=[],s=0,c=0,l="",u=function(e){if(c-1:void 0===v;o||(f+="(?:"+p+"(?="+d+"))?"),P||(f+="(?="+p+"|"+d+")")}return new RegExp(f,ul(r))}(cl(e,r),t,r)}function pl(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,o=r.exec(e.source);o;)t.push({name:o[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),o=r.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,r){var n=e.map((function(e){return pl(e,t,r).source}));return new RegExp("(?:"+n.join("|")+")",ul(r))}(e,t,r):dl(e,t,r)}var fl=Oa({compile:function(e,t){return function(e,t){void 0===t&&(t={});var r=ul(t),n=t.encode,o=void 0===n?function(e){return e}:n,i=t.validate,a=void 0===i||i,s=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:"+e.pattern+")$",r)}));return function(t){for(var r="",n=0;n!0),this.getRouteFromUrl.bind(this))}parseRouteDefinitions(e){this.routes=e.map((e=>{jc(e.path,kc.MISSING_PATH);const t=[],r=fl.pathToRegexp(e.path,t,{sensitive:this.caseSensitive,end:!1!==e.exact}),n=fl.compile(e.path,{encode:encodeURIComponent}),o=e.matchesPath||(e=>r.test(e));return{original:e,regex:r,params:t,toPath:n,matchesPath:o}}))}connect(){super.connect();const e={navigate:(e,t)=>this.navigate(e,t),generateUrl:e=>this.generateUrl(e),subscribe:(e,t)=>this.subscribe(e,t)},t=this.routes.map((e=>e.original));this.contextId=Xc(e,this.node,t,Qc),Xc(e,this.node,t,sl)}addPreNavigate(e){this.preFilters.add(e)}addPostNavigate(e){this.postFilters.add(e)}addErrorNavigate(e){this.errorFilters.add(e)}get prefix(){return`${this.parent?this.parent.pathMatch:""}${this.basePath}`}defaultGetRouteFromUrl(e){const t=0===(e=Ic(e)).indexOf(this.prefix),r=Kc(t?e.replace(this.prefix,""):e,t?this.routes:[]),{route:n}=r;return t&&Fc(n)&&(n.attributes.path=`${this.prefix}${n.attributes.path}`),{route:n,data:r.data}}defaultGetUrlFromRoute(e){const t=Fc(e)?"":this.prefix,r=zc(e,this.routes);return{url:r.url?`${t}${r.url}`:null,data:r.data}}async addChild(e){super.addChild(e),this.currentUrl&&await e.preProcess(this.currentUrl)&&e.process(this.currentUrl)}async process(e,t){const r=_c(this.getRouteFromUrl(e)),n=_c(r.route),o=!this.isRoot||await this.preProcess(e,r);return o.message?(this.processError(o),!1):(await this.postFilters.compile({previous:this.infoMatch,current:r}),this.infoMatch=r,this.currentUrl=e,this.routeObservable.next(n,_c(r.data)),this.child&&this.child.process(e,t),!0)}preProcess(e,t=_c(this.getRouteFromUrl(e))){const r=_c(t.route);if(null===r)return Promise.resolve(Ac(kc.MISSING_ROUTE,[e]));this.pathMatch=Fc(r)?this.parent?this.parent.pathMatch:"":Lc(this.getUrlFromRoute(r).url||"");return(this.preFilters.empty()?Promise.resolve(!0):this.preFilters.compile({current:this.infoMatch,next:t})).then((t=>t&&this.child?this.child.preProcess(e):t)).then((t=>t||Ac(kc.PRENAV_FAILED,[e])))}processError(e){this.errorFilters.compile(e),this.child&&this.child.processError(e)}navigate(e,t){const r="string"==typeof e?e:this.getUrlFromRoute(e).url;null!==r?this.node.dispatchEvent(new CustomEvent(nl.navigationEvent,{bubbles:!0,composed:!0,detail:{url:r,options:t,input:e}})):this.root.processError(Ac(kc.MISSING_URL,[e.id||e.type]))}generateUrl(e){const t=this.getUrlFromRoute(e);return Promise.resolve(t.url||"")}subscribe(e,t){return this.routeObservable.subscribe({next:(t,r)=>e(t,r)},t)}}Vo(hl,{fields:["basePath","routes","caseSensitive","pathMatch","infoMatch","currentUrl","routeObservable","preFilters","postFilters","errorFilters"]});var ml=Oa(hl,{tmpl:Vs});var gl=Oa(class extends ml{connect(){super.connect(),window.addEventListener("popstate",(()=>{this.catchBrowserUpdate(Ic(document.location.href))})),this.catchBrowserUpdate(Ic(document.location.href))}async process(e,t,r=!0){const n=await super.process(e,t);if(n&&r){const r=0===e.indexOf(this.basePath)?e:`${this.basePath}${e}`;t?function(e,t={}){window.history.replaceState(t,null,e)}(r):function(e,t={}){window.history.pushState(t,null,e)}(r)}return n}catchBrowserUpdate(e){const t=this.basePath&&0!==e.indexOf(this.basePath);this.process(`${t?this.basePath:""}${e}`,t,t)}},{tmpl:Vs});let bl=!1;function yl(e={}){return function(e,t={}){const r=!0===t.noHistory?new ml(t,e):new gl(t,e),n={addPreNavigate:e=>(r.addPreNavigate(e),n),addPostNavigate:e=>(r.addPostNavigate(e),n),addErrorNavigate:e=>(r.addErrorNavigate(e),n),connect:()=>{r.connect(),jc(!bl||!!r.parent,kc.MULTIPLE_ROOTS),bl=bl||!r.parent,n.id=r.contextId},disconnect:()=>{r.disconnect()}};return n}(window,e)}function wl(e,t,r){Yc(e).navigate(t,r)}function vl(e,t){return Yc(e).generateUrl(t)}function Pl(e,t,r=!0){return Yc(e).subscribe(t,r)}var El=Object.freeze({__proto__:null,navigate:wl,generateUrl:vl,subscribe:Pl,NavigationContext:Zc,provideContext:Xc,createRouter:yl});const Ol="sf-aria-live";const Cl={};function Tl(e){const{pathname:t,search:r,hash:n}=new URL(e,window.location.origin);return{pathname:t,search:r,hash:n}}async function Nl(e,{route:t,data:r}){if(!r.hasVanityURL)return;const n=await vl(e.id,t),o=await async function(e){const{pathname:t,search:r,hash:n}=Tl(e);if(Cl[t])return Cl[t]+r+n;if(Object.values(Cl).includes(t))return e;try{const{redirected:o,url:i}=await _(e,{basePath:"",method:"HEAD"});if(o){const e=Tl(i).pathname;return Cl[t]=e,e+r+n}}catch(t){Rs(`Unable to fetch canonical URL for ${e}`,"error:\n",t)}return null}(n);o&&o!==n&&wl(e.id,o,!0)}const Sl=[{type:"standard__recordPage",params:[{name:"recordName",type:"state",value:"detail"},{name:"categoryPath",type:"state",value:"detail"}],match:({attributes:e={}},{name:t})=>"ProductCategory"===e.objectApiName?"categoryPath"===t:"categoryPath"!==t},{type:"standard__objectPage",params:[{name:"filterName",type:"state",value:"Default"}]},{type:"standard__search",params:[{name:"term",type:"state",value:" "}]}];function Al(e){return Sl.find((t=>e.type===t.type))}function jl(e={},t={},r=!1,n="attributes"){const{match:o,params:i}=t;return i.forEach((t=>{if(o&&!o(e,t))return;const{type:i,name:a,value:s}=t;let c=i,l="state"===c?"attributes":"state";r&&([c,l]=[l,c]),c===n&&e[c]&&e[c][a]&&e[l]?delete e[l][a]:e=function(e={},t,r,n,o,i=n){const a=e[t]&&e[t][n];return o=void 0!==a?a:o,delete(e=k(k({},e),{},{[t]:k(k({},e[t]),{},{[i]:$(e[r])&&e[r][n]||o}),[r]:k({},e[r])}))[r][n],e}(e,c,l,a,s)})),e}function kl(e){const t=Al(e);return t?jl(e,t):e}function Rl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $l(e){for(var t=1;te.isDefault)),Ul=yl({basePath:d.default,caseSensitive:!0,routes:function(e){return e.map((e=>{if(!e.patterns||0===e.patterns.length)return e;const t=e.patterns.map((e=>new RegExp(`^${e}$`)));return $l($l({},e),{},{matchesPath:e=>t.some((t=>t.test(e)))})}))}(p.default),handleNavigation:function(e){if($(e)){const{type:t,attributes:{url:r}={url:null}}=e;if("standard__webPage"===t&&Fl(r))return window.open(r),!1}return!0},getRouteFromUrl:function(e,t){let{route:r,data:n}=t(e);const{type:o,attributes:i={}}=r;"standard__simpleRoute"===o?(n=_l,r=Object.assign({state:{}},{id:_l.id},_l.page)):"standard__recordPage"===o&&"ProductCategory"===i.objectApiName&&(r=function(e,t,r){if(t.attributes.recordId)return t;const n=r.patterns[0],o=e.match(n);if(o){const[,e,,r]=o;t.attributes.categoryPath=e,t.attributes.recordId=r}return t}(e,r,n));return r=kl(r),{route:r,data:n}},getUrlFromRoute:function(e={},t){const{type:r,attributes:n={}}=e;if("standard__webPage"===r){const e=n.url;return{url:e?Hl(e):null,data:null}}e=function(e){const{type:t}=e,r=Al(e);return r?jl(e,r,!0):"standard__managedContentPage"===t?function(e){return e.attributes&&e.attributes.contentKey&&(e.attributes.urlAlias=e.attributes.contentKey,delete e.attributes.contentKey),e}(e):e}(e);const o=t(e);let{url:i}=o;"standard__recordPage"===r&&"ProductCategory"===n.objectApiName&&(i=function(e,t){if(e.attributes.categoryPath.includes("/")){let[e,r]=t.split("?");return e=e.replace(/%2F/g,"/"),r=r?`?${r}`:"",e+r}return t}(e,i));return xl(xl({},o),{},{url:i})}}).addPreNavigate((async function({next:{route:e,data:r}={}}={}){if(r&&!1!==r.isPublic)return!0;const{default:n}=await t.load("@salesforce/user/isGuest");if(n){const t=await Bl(e);return t&&(window.location.href=`${t}`),!1}return!0})).addPreNavigate(Ae).addPostNavigate((function(e){e.current&&(document.title=e.current.data.label)})).addPostNavigate((function(e){if(e.current){let t=document.body.querySelector("#sf-aria-live");t||(t=document.createElement("span"),t.id=Ol,t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.setAttribute("style","position: absolute; margin: -1px; border: 0; padding: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); text-transform: none; white-space: nowrap;"),document.body.appendChild(t)),t.innerText=e.current.data.label}})).addErrorNavigate((async function({code:e,message:r,url:n}){if(Rs(`Routing error: (${e}) ${r} ${n}`),!1===_l.isPublic){const{default:e}=await t.load("@salesforce/user/isGuest");if(e)return}Gl(_l)}));function Fl(e){return new RegExp("^([a-z]+://|//)","i").test(e)}function Hl(e){if(Fl(e))return e;return d.default&&e!==d.default&&0!==e.indexOf(`${d.default}/`)?`${d.default}${e}`:e}function Gl(e,t){wl(Ul.id,e,t)}function Bl(e){return vl(Ul.id,e)}function Vl(e,t=!0){return Pl(Ul.id,e,t)}!function(e){e.addPostNavigate((function({previous:t,current:r}){t&&Nl(e,r)}))}(Ul),Ul.connect(),window.performance.measure(Dl,Dl);var zl=Object.freeze({__proto__:null,navigate:Gl,generateUrl:Bl,subscribe:Vl});function Wl(e){return void 0===e}class Kl{constructor(e){this.type="ValueChangedEvent",this.value=e}}const{freeze:ql,defineProperty:Yl,isExtensible:Jl}=Object,Xl="$$DeprecatedWiredElementHostKey$$",Zl="$$DeprecatedWiredParamsMetaKey$$";const{forEach:Ql,splice:eu,indexOf:tu}=Array.prototype,ru="connect",nu="disconnect",ou="config";function iu(e,t){const r=tu.call(e,t);r>-1&&eu.call(e,r,1)}var au=Object.freeze({__proto__:null,ValueChangedEvent:Kl,register:function(e,t){if(null==e||!Jl(e))throw new TypeError("adapter id must be extensible");if("function"!=typeof t)throw new TypeError("adapter factory must be a callable");if("adapter"in e)throw new TypeError("adapter id is already associated to an adapter factory");const r=class extends class{constructor(e){this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=e,this.wiredElementHost=e[Xl],this.dynamicParamsNames=e[Zl],this.eventTarget={addEventListener:(e,t)=>{switch(e){case ru:this.connecting.push(t);break;case nu:this.disconnecting.push(t);break;case ou:this.configuring.push(t),void 0!==this.currentConfig&&t.call(void 0,this.currentConfig);break;default:throw new Error(`Invalid event type ${e}.`)}},removeEventListener:(e,t)=>{switch(e){case ru:iu(this.connecting,t);break;case nu:iu(this.disconnecting,t);break;case ou:iu(this.configuring,t);break;default:throw new Error(`Invalid event type ${e}.`)}},dispatchEvent:e=>{if(!(e instanceof Kl)){if("wirecontextevent"===e.type)return this.wiredElementHost.dispatchEvent(e);throw new Error(`Invalid event type ${e.type}.`)}{const t=e.value;this.callback(t)}return!1}}}update(e){var t,r;(!this.isFirstUpdate||(this.isFirstUpdate=!1,function(e){return 0===Object.keys(e).length}(e)||function(e,t){return 0===t.length||t.some((t=>!Wl(e[t])))}(e,this.dynamicParamsNames)))&&((Wl(this.currentConfig)||(t=e,r=this.currentConfig,this.dynamicParamsNames.some((e=>t[e]!==r[e]))))&&(this.currentConfig=e,Ql.call(this.configuring,(t=>{t.call(void 0,e)}))))}connect(){Ql.call(this.connecting,(e=>e.call(void 0)))}disconnect(){Ql.call(this.disconnecting,(e=>e.call(void 0)))}}{constructor(e){super(e),t(this.eventTarget)}};ql(r),ql(r.prototype),Yl(e,"adapter",{writable:!1,configurable:!1,value:r})},registerWireService:function(){}});const su="/services/data/v52.0",cu={"CommerceCatalogController.getProductCategoryPath":{urlPath:su+"/commerce/webstores/${webstoreId}/product-category-path/product-categories/${productCategoryId}",urlPathParamNames:["productCategoryId","webstoreId"],method:"GET"},"CommerceCatalogController.getProduct":{urlPath:su+"/commerce/webstores/${webstoreId}/products/${productId}",urlPathParamNames:["productId","webstoreId"],method:"GET"},"CommerceStorePricingController.getProductPrice":{urlPath:su+"/commerce/webstores/${webstoreId}/pricing/products/${productId}",urlPathParamNames:["productId","webstoreId"],method:"GET"},"MissionsController.purgeUserMissionsActivities":{urlPath:su+"/connect/communities/${communityId}/missions/activities/purge-job",urlPathParamNames:["communityId"],method:"POST"},"CommerceSearchController.searchProducts":{urlPath:su+"/commerce/webstores/${webstoreId}/search/product-search",urlPathParamNames:["webstoreId"],inputRepresentation:"productSearchInput",method:"POST"},"NavigationMenuController.getCommunityNavigationMenu":{urlPath:su+"/connect/communities/${communityId}/navigation-menu/navigation-menu-items",urlPathParamNames:["communityId"],method:"GET"},"SeoPropertiesController.getRecordSeoProperties":{urlPath:su+"/connect/communities/${communityId}/seo/properties/${recordId}",urlPathParamNames:["communityId","recordId"],method:"GET"},"ManagedContentController.getManagedContentByTopicsAndContentKeys":{urlPath:su+"/connect/communities/${communityId}/managed-content/delivery",urlPathParamNames:["communityId"],method:"GET"},"ManagedContentController.getPublishedManagedContentListByContentKey":{urlPath:su+"/connect/communities/${communityId}/managed-content/delivery/contents",urlPathParamNames:["communityId"],method:"GET"},"SitesController.searchSite":{urlPath:su+"/connect/sites/${siteId}/search",urlPathParamNames:["siteId"],method:"GET"},"ActionsController.getGlobalActions":{urlPath:su+"/ui-api/actions/global",urlPathParamNames:[],method:"GET"},"ActionsController.getActionLayout":{urlPath:su+"/ui-api/actions/layout/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getListViewActions":{urlPath:su+"/ui-api/actions/list-view/${listViewIds}",urlPathParamNames:["listViewIds"],method:"GET"},"ActionsController.getLookupActions":{urlPath:su+"/ui-api/actions/lookup/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"ActionsController.getMRUListActions":{urlPath:su+"/ui-api/actions/mru-list/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"ActionsController.getObjectCreateActions":{urlPath:su+"/ui-api/actions/object/${objectApiName}/record-create",urlPathParamNames:["objectApiName"],method:"GET"},"ActionsController.getQuickActionDefaults":{urlPath:su+"/ui-api/actions/record-defaults/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getRecordEditActions":{urlPath:su+"/ui-api/actions/record/${recordIds}/record-edit",urlPathParamNames:["recordIds"],method:"GET"},"ActionsController.getRecordActions":{urlPath:su+"/ui-api/actions/record/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"ActionsController.getRelatedListsActions":{urlPath:su+"/ui-api/actions/record/${recordIds}/related-list/batch/${relatedListIds}",urlPathParamNames:["recordIds","relatedListIds"],method:"GET"},"ActionsController.getRelatedListRecordActions":{urlPath:su+"/ui-api/actions/record/${recordIds}/related-list-record/${relatedListRecordIds}",urlPathParamNames:["recordIds","relatedListRecordIds"],method:"GET"},"ActionsController.getRelatedListActions":{urlPath:su+"/ui-api/actions/record/${recordIds}/related-list/${relatedListId}",urlPathParamNames:["recordIds","relatedListId"],method:"GET"},"AppsController.getNavItems":{urlPath:su+"/ui-api/nav-items",urlPathParamNames:[],method:"GET"},"ListUiController.getListsByObjectName":{urlPath:su+"/ui-api/list-ui/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ListUiController.getListInfoById":{urlPath:su+"/ui-api/list-info/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListInfoByName":{urlPath:su+"/ui-api/list-info/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.getListRecordsById":{urlPath:su+"/ui-api/list-records/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListRecordsByName":{urlPath:su+"/ui-api/list-records/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.getListUiById":{urlPath:su+"/ui-api/list-ui/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListUiByName":{urlPath:su+"/ui-api/list-ui/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"LookupController.getLookupRecords":{urlPath:su+"/ui-api/lookups/${objectApiName}/${fieldApiName}/${targetApiName}",urlPathParamNames:["fieldApiName","objectApiName","targetApiName"],method:"GET"},"MruListUiController.getMruListInfo":{urlPath:su+"/ui-api/mru-list-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"MruListUiController.getMruListRecords":{urlPath:su+"/ui-api/mru-list-records/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"MruListUiController.getMruListUi":{urlPath:su+"/ui-api/mru-list-ui/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getAggregateUi":{urlPath:su+"/ui-api/aggregate-ui",urlPathParamNames:[],method:"GET"},"RecordUiController.executeAggregateUi":{urlPath:su+"/ui-api/aggregate-ui",urlPathParamNames:[],inputRepresentation:"input",method:"POST"},"RecordUiController.getRecordsWithFields":{urlPath:su+"/ui-api/records/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getRecordsWithLayouts":{urlPath:su+"/ui-api/records/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getDedupeConfig":{urlPath:su+"/ui-api/duplicates/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getFormByName":{urlPath:su+"/ui-api/forms/${apiName}",urlPathParamNames:["apiName"],method:"GET"},"RecordUiController.executeGraphQL":{urlPath:su+"/graphql",urlPathParamNames:[],inputRepresentation:"queryInput",method:"POST"},"RecordUiController.getLayout":{urlPath:su+"/ui-api/layout/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getLayoutUserState":{urlPath:su+"/ui-api/layout/${objectApiName}/user-state",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.updateLayoutUserState":{urlPath:su+"/ui-api/layout/${objectApiName}/user-state",urlPathParamNames:["objectApiName"],inputRepresentation:"userState",method:"PATCH"},"RecordUiController.getObjectInfos":{urlPath:su+"/ui-api/object-info/batch/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"RecordUiController.getObjectInfo":{urlPath:su+"/ui-api/object-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getPicklistValuesByRecordType":{urlPath:su+"/ui-api/object-info/${objectApiName}/picklist-values/${recordTypeId}",urlPathParamNames:["objectApiName","recordTypeId"],method:"GET"},"RecordUiController.getPicklistValues":{urlPath:su+"/ui-api/object-info/${objectApiName}/picklist-values/${recordTypeId}/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName","recordTypeId"],method:"GET"},"RecordUiController.findDuplicates":{urlPath:su+"/ui-api/predupe",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.postRecordAvatarAssociation":{urlPath:su+"/ui-api/record-avatars/${recordId}/association",urlPathParamNames:["recordId"],inputRepresentation:"input",method:"POST"},"RecordUiController.getRecordAvatars":{urlPath:su+"/ui-api/record-avatars/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getRecordCloneDefaults":{urlPath:su+"/ui-api/record-defaults/clone/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordCreateDefaults":{urlPath:su+"/ui-api/record-defaults/create/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.createRecord":{urlPath:su+"/ui-api/records",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.deleteRecord":{urlPath:su+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"DELETE"},"RecordUiController.getRecordWithFields":{urlPath:su+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordWithLayouts":{urlPath:su+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.updateRecord":{urlPath:su+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],inputRepresentation:"recordInput",method:"PATCH"},"RecordUiController.getRecordDefaultsTemplateClone":{urlPath:su+"/ui-api/record-defaults/template/clone/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordDefaultsTemplateForCreate":{urlPath:su+"/ui-api/record-defaults/template/create/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getRecordUis":{urlPath:su+"/ui-api/record-ui/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getValidationRulesInfo":{urlPath:su+"/ui-api/object-info/${objectApiName}/validation-rules-info",urlPathParamNames:["objectApiName"],method:"GET"},"RelatedListUiController.getRelatedListInfoBatch":{urlPath:su+"/ui-api/related-list-info/batch/${parentObjectApiName}/${relatedListNames}",urlPathParamNames:["parentObjectApiName","relatedListNames"],method:"GET"},"RelatedListUiController.getRelatedListInfoCollection":{urlPath:su+"/ui-api/related-list-info/${parentObjectApiName}",urlPathParamNames:["parentObjectApiName"],method:"GET"},"RelatedListUiController.getRelatedListInfo":{urlPath:su+"/ui-api/related-list-info/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.getRelatedListInfoByApiName":{urlPath:su+"/ui-api/related-list-info/${parentObjectApiName}/${relatedListId}",urlPathParamNames:["parentObjectApiName","relatedListId"],method:"GET"},"RelatedListUiController.updateRelatedListInfoByApiName":{urlPath:su+"/ui-api/related-list-info/${parentObjectApiName}/${relatedListId}",urlPathParamNames:["parentObjectApiName","relatedListId"],inputRepresentation:"relatedListInfoInput",method:"PATCH"},"RelatedListUiController.getRelatedListsRecordCount":{urlPath:su+"/ui-api/related-list-count/batch/${parentRecordId}/${relatedListNames}",urlPathParamNames:["parentRecordId","relatedListNames"],method:"GET"},"RelatedListUiController.getRelatedListRecordCount":{urlPath:su+"/ui-api/related-list-count/${parentRecordId}/${relatedListName}",urlPathParamNames:["parentRecordId","relatedListName"],method:"GET"},"RelatedListUiController.getRelatedListRecordsBatch":{urlPath:su+"/ui-api/related-list-records/batch/${parentRecordId}/${relatedListIds}",urlPathParamNames:["parentRecordId","relatedListIds"],method:"GET"},"RelatedListUiController.getRelatedListRecords":{urlPath:su+"/ui-api/related-list-records/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"}};function lu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function uu(e){for(var t=1;t204!==e.status?e.json():void 0)).then((e=>{if(e&&e.error&&e.error.length>0)throw e.error[0];return e}));throw new Error(`Unsupported Apex action: ${e}`)}(n,t);const o=cu[e];if(o)return async function({urlPath:e,urlPathParamNames:t,method:r,inputRepresentation:n},o){const i=o&&uu({},o)||{};let a,s=t.reduce(((e,t)=>{const r=i[t];return delete i[t],e.replace(`\${${t}}`,encodeURIComponent(r))}),e);"POST"!==r&&"PATCH"!==r||!i[n]||(a=JSON.stringify(i[n]),delete i[n]);Object.keys(i).length&&(s+=`?${Object.entries(i).filter((([,e])=>null!=e&&(!Array.isArray(e)||e.length))).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}`);const c=await _(s,{method:r,body:a});let l;204!==c.status&&(l=await c.json());if(!c.ok){throw{status:c.status,data:uu(uu({},l[0]),{},{statusCode:c.status})}}return l}(o,t);throw new Error(`Unsupported controller action: ${r}.${n}`)}});function fu(e,t,r,n){return[]}var hu=Yo(fu);function mu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gu(e){for(var t=1;t{s||this.themeLayout===a||(this.generatedTemplateHtml=hu)}),10),t.load(A(a)).then((e=>e.default)).then((t=>{s=!0,function(e){const t=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT,(e=>e.matches("webruntime-router-container")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),!1).nextNode();e?(document.body.tabIndex="-1",document.body.focus()):t&&(t.tabIndex="-1",t.focus())}(this.themeLayout!==a),this.showView(t,a,i,e)})).catch((e=>{yu({subject:"App.getTemplate error",error:e})}))}showView(e,t,r,n){this.themeLayout!==t&&(this.generatedTemplateHtml=e.html,this.themeLayout=t),this.routeParams=r,this.attributes=e.attributes(this),this.previousRouteId=this.route&&this.route.id||null,this.route=n}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}errorCallback(e,t){yu({subject:"app level error",error:e,wcstack:t})}}Vo(Eu,{fields:["generatedTemplateHtml","attributes","routeParams","route","previousRouteId","themeLayout","isInitialized"]});var Ou=Oa(Eu,{tmpl:hu});const Cu=Symbol("Navigate"),Tu=Symbol("GenerateUrl"),Nu=Symbol("NavContext"),Su=e=>(jc("function"==typeof e.prototype.dispatchEvent,kc.INVALID_MIXIN_CMP,[e]),Vo(class extends e{wiredNavContext(e){this[Nu]=e}[Cu](e,t){wl(this[Nu],e,t)}[Tu](e){return vl(this[Nu],e)}},{wire:{wiredNavContext:{adapter:Zc,method:1,config:function(e){return{}}}}}));Su.Navigate=Cu,Su.GenerateUrl=Tu,Su.NavContext=Nu;var Au={navigate:wl,generateUrl:vl,NavigationContext:Zc,NavigationMixin:Su,CurrentPageReference:al};var ju=[function(e,t,r){return["a",t," {color: var(--webruntime-link-color);font-size: var(--webruntime-link-font-size);text-decoration: var(--webruntime-link-text-decoration);}\na:hover",t,",a:active",t," {color: var(--webruntime-link-color-active, var(--webruntime-link-color));font-size: var(--webruntime-link-font-size-active, var(--webruntime-link-font-size));text-decoration: var(--webruntime-link-text-decoration-active);}\n"].join("")}];function ku(e,t,r,n){const{b:o,s:i,h:a}=e,{_m0:s}=n;return[a("a",{attrs:{href:t.path},key:0,on:{click:s||(n._m0=o(t.handleClick))}},[i("",{key:1},[],r)])]}var Ru=Yo(ku);ku.slots=[""],ku.stylesheets=[],ju&&ku.stylesheets.push.apply(ku.stylesheets,ju),ku.stylesheetTokens={hostAttribute:"webruntime_navigation-link_link-host",shadowAttribute:"webruntime_navigation-link_link"};class $u extends wo{constructor(...e){super(...e),this.path=void 0,this.route=void 0,this.navContext=void 0}async connectedCallback(){!this.path&&this.route&&(this.path=await vl(this.navContext,this.route))}handleClick(e){e.preventDefault(),wl(this.navContext,this.route||this.path)}}Vo($u,{publicProps:{path:{config:0},route:{config:0}},wire:{navContext:{adapter:Zc,config:function(e){return{}}}}});var Iu=Oa($u,{tmpl:Ru});function Lu(e,t,r,n){return[]}var xu=Yo(Lu);function Mu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Du(e){for(var t=1;t{n||(this.generatedTemplateHtml=xu)}),10),t.load(A(r)).then((e=>e.default)).then((async t=>{n=!0,await async function(e,t,r=""){return new Promise(window.requestAnimationFrame).then((()=>{e[t]=r}))}(this,"generatedTemplateHtml",xu),this.showView(t,e)})).catch((e=>{yu({subject:"routerContainer.getTemplate error",error:e})}))}showView(e,t){this.generatedTemplateHtml=e.html;const{state:r,attributes:n}=t;this.routeParams=Du(Du({},r),n),this.attributes=e.attributes(this)}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}errorCallback(e,t){yu({subject:"router level error",error:e,wcstack:t})}}Vo(Uu,{fields:["generatedTemplateHtml","attributes","routeParams"]});var Fu=Oa(Uu,{tmpl:xu});const Hu=document.createElement("style");Hu.setAttribute("id","webruntime-branding");let Gu=":root {";function Bu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vu(e){for(var t=1;t{Gu+=`${e}: ${t};`})),Gu+="}",Hu.innerHTML=Gu,document.head.prepend(Hu);const Wu={navKey:"F6",f6RegionAttribute:"data-f6-region",f6RegionHighlightClass:"f6-highlight"};class Ku{constructor(e={}){this.regions=[],this.config=Wu,this.handleKeyDown=e=>{this.clearRegionHighlights(),e.key===this.config.navKey&&(e.ctrlKey||e.metaKey)&&(this.populateRegions(),this.handleNav(e))},this.handleClick=()=>{this.clearRegionHighlights()},this.elementFilter=e=>e.parentElement&&e.parentElement.matches(`*[${this.config.f6RegionAttribute}]`)?NodeFilter.FILTER_REJECT:e.matches(`*[${this.config.f6RegionAttribute}]`)&&this.isVisible(e)&&!this.isEmpty(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,this.config=Vu(Vu({},this.config),e);const t=document.createElement("style");t.innerText=`[${this.config.f6RegionAttribute}].${this.config.f6RegionHighlightClass} { position: relative; } [${this.config.f6RegionAttribute}].${this.config.f6RegionHighlightClass}::after { width: 100%; height: 100%; content: ''; outline: rgb(94, 158, 214) 3px solid; outline-offset: -3px; position: absolute; top: 0; left: 0; z-index: 9999; }`,t.setAttribute("type","text/css"),document.head.appendChild(t)}clearRegionHighlights(){for(const e of this.regions)e.classList.remove(this.config.f6RegionHighlightClass)}addRegionHighlight(e){e.classList.add(this.config.f6RegionHighlightClass)}focusIn(e){const t=e.querySelector('a[href],button:not([disabled]),input:not([type="hidden"]):not([disabled]),select:not([type="hidden"]):not([disabled]),textarea:not([type="hidden"]):not([disabled])');t?t.focus():(e.tabIndex="-1",e.focus())}getActiveElem({target:e}){do{if(null!=e.shadowRoot){if(!e.shadowRoot.activeElement)return e;e=e.shadowRoot.activeElement}}while(null!=e.shadowRoot);return e}handleNav(e){if(e.preventDefault(),0===this.regions.length)return;const t=this.getClosestRegionIndex(this.getActiveElem(e)),r=this.getNextRegionIndex(t,e.shiftKey);this.addRegionHighlight(this.regions[r]),this.focusIn(this.regions[r])}shadowContains(e,t){if(e===t)return!0;if(e.contains(t))return!0;if(e.shadowRoot)for(const r of e.shadowRoot.children)if(this.shadowContains(r,t))return!0;if("SLOT"===e.tagName)for(const r of e.assignedElements())if(this.shadowContains(r,t))return!0;for(const r of e.children)if(this.shadowContains(r,t))return!0;return!1}getClosestRegionIndex(e){for(const[t,r]of this.regions.entries())if(this.shadowContains(r,e))return t;return-1}getNextRegionIndex(e,t){return t?e<=0?this.regions.length-1:e-1:e===this.regions.length-1?0:e+1}isVisible(e){if(e===document.body)return!0;if(!(e instanceof Element))return!0;return"none"!==window.getComputedStyle(e).display.toLowerCase()&&this.isVisible(e.parentNode)}isEmpty(e){if("SLOT"===e.tagName)for(const t of e.assignedElements())if("SLOT"!==t.tagName||!this.isEmpty(t))return!1;for(const t of e.children)if("SLOT"!==t.tagName||!this.isEmpty(t))return!1;return!0}populateRegions(){this.regions=[];const e=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT,this.elementFilter,!1);for(;e.nextNode();)this.regions.push(e.currentNode)}initialize(){document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("click",this.handleClick)}cleanUp(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("click",this.handleClick)}}Vo(Ku,{fields:["regions","config","handleKeyDown","handleClick","elementFilter"]}),(new Ku).initialize();const qu=31536e3;var Yu;m.default&&("string"!=typeof(Yu=I(m.default))||!/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(Yu))&&(document.cookie=`${m.default}=${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))};Max-Age=${qu};SameSite=LAX;Path=${d.default?d.default:"/"}`),t.defineModules({"@salesforce/client/formFactor":window.matchMedia("only screen and (min-width: 48em) and (max-width: 64em)").matches?"Medium":window.matchMedia("only screen and (max-width: 47.9375em)").matches?"Small":"Large","@salesforce/loader":u,"aura-instrumentation":xs,"aura-storage":{},"instrumentation/service":xs,"lightning/configProvider":Pc,"lightning/navigation":Au,"webruntime_navigation/link":Iu,"webruntime_navigation/navigation":El,"webruntime/routerContainer":Fu,"webruntime/routingService":zl,"wire-service":au,aura:pu,lwc:ks,transport:F}),l.default&&!I(l.default)&&t.defineModules({"@salesforce/user/isGuest":!0,"@salesforce/user/Id":null,"@app/csrfToken":null}),customElements.define("webruntime-app",Ou.CustomElementConstructor),window.performance.measure("webruntime-framework-bootstrap")}));