LWR.define("webruntime/app/v/1",["exports","lwr/loaderLegacy/v/0_6_4","lwc/v/2_12_1","@app/authenticationCookieName/v/1","@app/basePath/v/1","@app/apiBasePath/v/1","@salesforce/i18n/lang/v/1_66_56-238_0","@app/routes/v/1","@app/apexApiBasePath/v/1","@app/viewToThemeLayoutMap/v/1","@app/isDesignMode/v/1","@app/brandingProperties/v/1","@app/guestUuidCookieName/v/1","@app/isMobileAppMode/v/1"],function(ft,D,f,dn,mn,pn,fn,hn,gn,Pn,vn,bn,yn,En){"use strict";function P(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ht=P(dn),v=P(mn),wn=P(pn),On=P(fn),gt=P(hn),Pt=P(gn),Nn=P(Pn),vt=P(vn),Cn=P(bn),Ae=P(yn),Tn=P(En),X=void 0;const{performance:w,console:Rn}=window,Le=new WeakMap;let Me=!0,bt=!1;try{const e={randomInfo:123},t=w.mark("A",{detail:e})||w.getEntriesByType("mark").pop();Me=!!t.detail&&t.detail.randomInfo===e.randomInfo,bt=JSON.stringify(t).includes("randomInfo")}catch(e){Me=!1,Rn.warn("PerformanceMarkOptions#detail & PerformanceMeasureOptions#detail are not supported",e)}finally{w.clearMarks("A")}function Q(e,t,r){const n=e[t];e[t]=function(){return r.apply(this,[n.bind(this),...arguments])}}function De(e){return e.forEach(t=>{(t instanceof PerformanceMark||t instanceof PerformanceMeasure)&&(t.detail=Le.get(t)||null)}),e}function yt(){return{name:this.name||null,entryType:this.entryType||null,startTime:this.startTime||null,duration:this.duration||null,detail:this.detail||null}}bt||(PerformanceMark.prototype.toJSON=yt,PerformanceMeasure.prototype.toJSON=yt),Me||(Q(w,"mark",(e,t,r)=>{const n=e(t)||w.getEntriesByType("mark").pop();if(r&&r.detail){const i=JSON.parse(JSON.stringify(r.detail));n.detail=i,Le.set(n,i)}return n}),Q(w,"measure",(e,...t)=>{if(typeof t[1]!="string"&&t[1]&&t[1].detail){const r=t[1]&&t[1].start||null,n=e(t[0],r)||w.getEntriesByType("measure").sort((a,o)=>a.startTime+a.duration-(o.startTime+o.duration)).pop(),i=JSON.parse(JSON.stringify(t[1].detail));return n.detail=i,Le.set(n,i),n}return e(...t)}),Q(w,"getEntries",e=>{const t=e();return De(t)}),Q(w,"getEntriesByName",(e,t,r)=>{const n=e(t,r);return De(n)}),Q(w,"getEntriesByType",(e,t)=>{const r=e(t);return De(r)}));const G="webruntime";function Et(e){return`/${G}${e}`}const In=Et("/log/metrics"),wt=Et("/log/errors"),j={APEX_ACTION_ERROR:"APEX_ACTION_ERROR",FAILED_TO_LOAD_RESOURCE:"FAILED_TO_LOAD_RESOURCE",TOO_MANY_REQUESTS:"TOO_MANY_REQUESTS",UNKNOWN_ERROR:"UNKNOWN_ERROR"},Ot={PUBLISHER:"CommunityHybridContainer/",PLAYGROUND:"playgroundcommunity"},Sn=8e3,$n="@view";function Nt(e){return`${$n}/${e}`}function Ct(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Z(e){for(var t=1;tt.trim().split("=")).filter(([t])=>t===e).map(([,t])=>t)[0]}function Mn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function Dn(e){return typeof e=="string"&&/^(?:[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(e)}function St(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t{t=!r.persisted}),window.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&t&&e()})}function Wn(e){return JSON.stringify(e).replace(/(":)(\d+\.\d{2,})/g,(r,n,i)=>n+Number(i).toFixed(2))}function qn(){if(!$.getEntriesByName)return null;const e=window.performance.getEntriesByName(`${G}-app-bootstrap`),t=window.performance.getEntriesByName(`${G}-framework-bootstrap`);return[...e,...t]}function me(){return $.PerformanceResourceTiming&&$.getEntriesByType?window.performance.getEntriesByType(Lt.RESOURCE):null}function Yn(e){let t=me().length;const r=setInterval(()=>{me().length>t?t=me().length:(clearInterval(r),e())},500)}function Jn(e,t,r){const n=window.performance.timing.navigationStart,i=me().sort((o,c)=>o.startTime+o.duration>c.startTime+c.duration?-1:1)[0];let a=t-n;return i&&i.startTime+i.duration>e-n&&(a=i.startTime+i.duration),{entryType:"webruntime-navigation",startTime:e-n,duration:n+a-e,name:r&&r.id}}function Mt(){return{hostname:$.hostname?window.location.hostname:null,pathname:$.pathname?window.location.pathname:null}}function Xn(){return $.rtt?{"connection.rtt":window.navigator.connection.rtt}:null}function Qn(){return $.PerformancePaintTiming&&$.getEntriesByType?window.performance.getEntriesByType(Lt.PAINT):null}var A,te,Dt,pe,N=function(e,t){return{name:e,value:t===void 0?-1:t,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},fe=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(n){return n.getEntries().map(t)});return r.observe({type:e,buffered:!0}),r}}catch(n){}},he=function(e,t){var r=function n(i){i.type!=="pagehide"&&document.visibilityState!=="hidden"||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},re=function(e){addEventListener("pageshow",function(t){t.persisted&&e(t)},!0)},_=typeof WeakSet=="function"?new WeakSet:new Set,L=function(e,t,r){var n;return function(){t.value>=0&&(r||_.has(t)||document.visibilityState==="hidden")&&(t.delta=t.value-(n||0),(t.delta||n===void 0)&&(n=t.value,e(t)))}},Zn=function(e,t){var r,n=N("CLS",0),i=function(o){o.hadRecentInput||(n.value+=o.value,n.entries.push(o),r())},a=fe("layout-shift",i);a&&(r=L(e,n,t),he(function(){a.takeRecords().map(i),r()}),re(function(){n=N("CLS",0),r=L(e,n,t)}))},ne=-1,jt=function(){return document.visibilityState==="hidden"?0:1/0},_t=function(){he(function(e){var t=e.timeStamp;ne=t},!0)},Ue=function(){return ne<0&&(ne=jt(),_t(),re(function(){setTimeout(function(){ne=jt(),_t()},0)})),{get timeStamp(){return ne}}},ei=function(e,t){var r,n=Ue(),i=N("FCP"),a=fe("paint",function(o){o.name==="first-contentful-paint"&&(a&&a.disconnect(),o.startTime=0&&te1e12?new Date:performance.now())-e.timeStamp;e.type=="pointerdown"?function(r,n){var i=function(){Ut(r,n),o()},a=function(){o()},o=function(){removeEventListener("pointerup",i,ie),removeEventListener("pointercancel",a,ie)};addEventListener("pointerup",i,ie),addEventListener("pointercancel",a,ie)}(t,e):Ut(t,e)}},Ft=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,ri,ie)})},ni=function(e,t){var r,n=Ue(),i=N("FID"),a=function(c){c.startTime{const n={pageView:e,location:Mt(),navigation:Jn(t,r,e)},{CLS:i}=Vt(),a={webVitals:{CLS:i}};let o={};di()&&(o=gi(),li(!1));const c=Object.assign({},n,o,a);Bt(c),performance.clearResourceTimings(),oi()})}zn(()=>{const{FID:e,LCP:t,TTFB:r,FCP:n}=Vt();(e||t||r||n)&&Bt({webVitals:{FID:e,LCP:t,TTFB:r,FCP:n},location:hi})});function vi(e){const t=v.default+wt,r=JSON.stringify(e);if(!(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(t,r))){const i=new XMLHttpRequest;i.open("POST",t,!0),i.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),i.send(r)}}function bi(e,t){document.dispatchEvent(new CustomEvent("client-error",{detail:{error:e,type:t}}))}function Kt({subject:e,error:t={},extra:r,type:n=j.UNKNOWN_ERROR}){let i,a,o;t?(i=t.message,a=t.stack,o=t.wcstack):r&&(i=r.message);const{pathname:c,hostname:d}=window.location,l={subject:e,message:i,stack:a,wcstack:o,extra:r,location:{pathname:c,hostname:d}};bi(l,n),vi(l)}window.addEventListener("error",(e={})=>{const{message:t,filename:r,lineno:n,colno:i,error:a}=e;Kt({subject:"window error",error:a,extra:{message:t,filename:r,lineno:n,colno:i}})}),window.addEventListener("unhandledrejection",(e={})=>{const{reason:t={}}=e;Kt({subject:"unhandledrejection",error:t})});function zt(...e){console.log(...e)}function ae(...e){console.error(...e)}var Wt=Object.freeze({__proto__:null,log:zt,logError:ae});function qt(e,t){return`${G}-${[e,t].filter(Boolean).join(":")}`}function Yt(e){const t=JSON.stringify(e);return t&&JSON.parse(t)}function Jt(e,t,r){const n=qt(e,t);window.performance.mark(n,{detail:{ctx:Yt(r)}})}function yi(e,t,r){Jt(e,t,r)}function Ei(e,t,r){Jt(e,t,r)}function wi(e,t,r){const n=qt(e,t);try{window.performance.measure(n,{detail:{ctx:Yt(r)},start:n})}catch(i){ae(`[instrumentation] no startMark named ${n} found`,i.stack)}}function Oi(){return Date.now()}function Ni(e,t,r){}function Ci(e,t,r){}function Ti(e,t,r,n,i){}function Ri(e){}function Ii(e,t){}function Si(e){return{logHits(t){},logMisses(t){},unRegister(){}}}function $i(e,t,r){}function Ai(e){}function Li(e){}function Mi(e){}function Di(e,t,r){}function ji(e){return{increment(t){},decrement(t){},getValue(){return 0},reset(){}}}function _i(e){return{setValue(t){},getValue(){return 0},reset(){}}}function Ui(e){return{update(t){},getValue(){return[]},reset(){}}}function xi(e){return{addDuration(){},time(){},getValue(){return[]},reset(){},get(){}}}var Xt=Object.freeze({__proto__:null,disablePlugin:Mi,enablePlugin:Li,error:$i,interaction:Ti,mark:yi,markEnd:wi,markStart:Ei,perfEnd:Ci,perfStart:Ni,registerCacheStats:Si,registerPeriodicLogger:Ii,registerPlugin:Ri,removePeriodicLogger:Ai,time:Oi,trackScenario:Di,counter:ji,gauge:_i,percentileHistogram:Ui,timer:xi});const Fi=/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z){1})?)?)?$/i,Gi=/^\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i,Vi="HH:mm:ss.SSS",Qt="YYYY-MM-DD",Zt="T",ki=/(Z|([+-])(\d{2}):(\d{2}))$/;function er(e){return Bi(e)&&rr(e)}function Hi(e){if(!Ki(e))return!1;const t=tr(e);return rr(`2018-09-09T${t}Z`)}function tr(e){return typeof e=="string"?e.split(ki)[0]:e}function Bi(e){return typeof e!="string"?!1:Fi.test(e)}function Ki(e){return typeof e!="string"?!1:Gi.test(e)}function rr(e){const t=Date.parse(e);return isFinite(t)}const zi="in a few seconds",Wi="a few seconds ago",qi="in {0} {1}",Yi="{0} {1} ago",Ji="s",b={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"}},Xi=1e3,Qi=6e4,Zi=36e5,Ge=864e5;class nr{constructor(t){if(this.milliseconds=0,typeof t!="number"){this.isValid=!1,console.warn(`The value of milliseconds passed into Duration must be of type number, but we are getting the ${typeof t} value "${t}" instead. `);return}this.isValid=!0,this.milliseconds=t}humanize(t){if(!this.isValid)return"";const r=ta(this);return r===b.SECONDS?this.milliseconds>0?zi:Wi:ra(t,this.asIn(r),r.name)}asIn(t){switch(t){case b.SECONDS:return Math.round(this.milliseconds/Xi);case b.MINUTES:return Math.round(this.milliseconds/Qi);case b.HOURS:return Math.round(this.milliseconds/Zi);case b.DAYS:return Math.round(this.milliseconds/Ge);case b.MONTHS:return Math.round(ir(this.milliseconds/Ge));case b.YEARS:default:return Math.round(ir(this.milliseconds/Ge)/12)}}}f.registerDecorators(nr,{fields:["milliseconds"]});var ea=f.registerComponent(nr,{tmpl:X});function ir(e){const t=4800/146097;return e*t}function ta(e){const t=Object.keys(b).find(r=>{const n=b[r];return n===b.YEARS||Math.abs(e.asIn(n))0?qi:Yi;return ia(i,r,n)}function ia(e,...t){return e.replace(/{(\d+)}/g,(r,n)=>t[n])}const Ve=["January","February","March","April","May","June","July","August","September","October","November","December"],U={short:"M/d/yyyy",medium:"MMM d, yyyy",long:"MMMM d, yyyy"},ke={short:"h:mm a",medium:"h:mm:ss a",long:"h:mm:ss a"},aa={short:"h:m a",medium:"h:m:s a",long:"h:m:s a"};function oa(e,t){let r=!1,n=e;return typeof e=="string"&&(n=e.split(Zt)[0],r=!0),sr(n,t,r)}function ar(e,t){return sr(e,t,!0)}function or(e,t){if(!V(e))return new Date("");const r=(e.getHours()+11)%12+1,n=e.getHours()>=12?"PM":"AM";switch(t){case Vi:return`${y(e.getHours())}:${y(e.getMinutes())}:${y(e.getSeconds())}.${Na(e.getMilliseconds())}`;case ke.short:return`${r}:${y(e.getMinutes())} ${n}`;case ke.medium:case ke.long:default:return`${r}:${y(e.getMinutes())}:${y(e.getSeconds())} ${n}`}}function sa(e){if(!V(e))return new Date("");const t=new Date(e.getTime());return`${ar(t)}, ${or(oe(t))}`}function Pe(e){let t=null,r=!0;if(Hi(e)?t=`2014-03-20T${He(e)}`:er(e)&&(e.indexOf(Zt)>0?(t=He(e),r=!1):t=`${e}T00:00:00.000Z`),t){const n=new Date(t);return r&&oe(n),n}return null}function ca(e,t){return t===Qt&&er(e)?Pe(e):Object.values(U).includes(t)?wa(e,t):Object.values(aa).includes(t)?Ea(e):null}function ua(e){return Pe(He(e))}function la(e,t,r){const n=se(e),i=se(t);return!n||!i?!1:ve(n,r).getTime()ve(i,r).getTime()}function ma(e,t,r){const n=new Date(e.getTime());r(Oa(n))}function pa(e,t,r){const n=new Date(e.getTime());r(oe(n))}function fa(e){return e}function ha(e){return e}function ga(e){return e}function Pa(e){return e}function va(){return{format:e=>(console.warn(`The current environment does not support large numbers and the original value of ${e} will be returned.`),e)}}function ba(e){return new ea(e*60*1e3)}function ya(e){return e.humanize("en")}function Ea(e){const t=e.trim().split(/[:.\s*]/),r=t.length;if(!t||r<2||r>5)return null;const n=t[r-1],i=n.toLowerCase()==="am",a=n.toLowerCase()==="pm";t.splice(-1,1);const o=t.every(g=>!isNaN(g));if(!a&&!i||!o)return null;const c=t[0],d=y(a?c%12+12:c%12),u=r>=3&&t[1]||"0",l=r>=4&&t[2]||"0",m=r===5&&t[3]||"0",h=new Date("2014-03-20");return h.setHours(d,u,l,m),V(h)?h:null}function wa(e,t){let r=/^([a-zA-Z]{3})\s*(\d{1,2}),\s*(\d{4})$/;switch(t){case U.short:r=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/;break;case U.long:r=/^([a-zA-Z]+)\s*(\d{1,2}),\s*(\d{4})$/;break}const n=r.exec(e.trim());if(!n)return null;let i=n[1];const a=n[2],o=n[3];t!==U.short&&(i=Ve.findIndex(u=>u.toLowerCase().includes(i.toLowerCase())),i+=1);const c=`${o}-${y(i)}-${y(a)}`,d=new Date(`${c}T00:00:00.000Z`);return V(d)?oe(d):null}function sr(e,t,r){const n=se(e);if(!n)return new Date("");switch(r&&V(e)&&oe(n),t){case Qt:return`${n.getFullYear()}-${y(n.getMonth()+1)}-${y(n.getDate())}`;case U.short:return`${n.getMonth()+1}/${n.getDate()}/${n.getFullYear()}`;case U.long:return`${Ve[n.getMonth()]} ${n.getDate()}, ${n.getFullYear()}`;case U.medium:default:return`${Ve[n.getMonth()].substring(0,3)} ${n.getDate()}, ${n.getFullYear()}`}}function ve(e,t){switch(t){case"day":e.setHours(0),e.setMinutes(0);case"minute":e.setSeconds(0),e.setMilliseconds(0);break}return e}function V(e){return Object.prototype.toString.call(e)==="[object Date]"&&!isNaN(e.getTime())}function He(e){return`${tr(e)}Z`}function oe(e){return e.setMinutes(e.getMinutes()+e.getTimezoneOffset()),e}function Oa(e){return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e}function se(e){return e?V(e)?new Date(e.getTime()):isFinite(e)&&(typeof e=="number"||typeof e=="string")?new Date(parseInt(e,10)):typeof e=="string"?Pe(e):null:null}function y(e){return Number(e)<10?`0${e}`:e}function Na(e){return Number(e)<10?`00${e}`:Number(e)<100?`0${e}`:e}var Ca={formatDate:oa,formatDateUTC:ar,formatTime:or,formatDateTimeUTC:sa,parseDateTimeISO8601:Pe,parseDateTime:ca,parseDateTimeUTC:ua,isBefore:la,isAfter:da,UTCToWallTime:ma,WallTimeToUTC:pa,translateToOtherCalendar:fa,translateFromOtherCalendar:ha,translateToLocalizedDigits:ga,translateFromLocalizedDigits:Pa,getNumberFormat:va,duration:ba,displayDuration:ya};function cr(){return Ca}function ur(){return v.default}function lr(){return null}function dr(){return null}function mr(){return{densitySetting:""}}var Ta={getOneConfig:mr,getIconSvgTemplates:dr,getToken:lr,getPathPrefix:ur,getLocalizationService:cr},Ra=Object.freeze({__proto__:null,default:Ta,getOneConfig:mr,getIconSvgTemplates:dr,getToken:lr,getPathPrefix:ur,getLocalizationService:cr});function Be(){const e=[],t=()=>e.length===0,r=a=>{typeof a=="function"&&e.push(a)};return{add:(a=[])=>{Array.isArray(a)?a.forEach(o=>r(o)):r(a)},compile:(...a)=>e.length===0?Promise.resolve(!0):e.reduce((o,c)=>o.then(d=>d===!1?Promise.reject():Promise.resolve(c(...a))),Promise.resolve(!0)).then(o=>o!==!1).catch(o=>{if(o instanceof Error)throw o;return!1}),empty:t}}function Ia(e,t={}){window.history.pushState(t,null,e)}function Sa(e,t={}){window.history.replaceState(t,null,e)}function pr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fr(e){for(var t=1;tt[n]):e}function Aa(e,t){return`LWR${e.code}: ${hr(e.message,t)}`}function Ke(e,t){return fr(fr({},e),{},{code:`LWR${e.code}`,message:hr(e.message,t)})}function k(e,t,r){if(!e)throw new Error(Aa(t,r))}const T={INVALID_MIXIN_CMP:{code:4001,message:"{0} must be an Element type",level:E.Error,url:""},MISSING_CONTEXT:{code:4002,message:"Could not find context to perform navigation action.",level:E.Error,url:""},INVALID_CONTEXT:{code:4003,message:"Cannot register navigation context; it must have this shape: { navigate, generateUrl, subscribe }",level:E.Error,url:""},MULTIPLE_ROOTS:{code:4004,message:"Router connection failed. There can only be one root router.",level:E.Error,url:""},MULTIPLE_CHILDREN:{code:4005,message:"Could not add to the navigation hierarchy. There can only be one child per navigation node.",level:E.Error,url:""},MISSING_ROUTE:{code:4006,message:'A route cannot be created to navigate to URL "{0}"',level:E.Error,url:""},MISSING_URL:{code:4007,message:'A URL cannot be created to navigate to route "{0}"',level:E.Error,url:""},PRENAV_FAILED:{code:4008,message:'A preNavigate hook listener blocked routing to "{0}"',level:E.Warning,url:""},MISSING_PATH:{code:4009,message:'A route definition must contain a "path" property.',level:E.Error,url:""},MISSING_ROUTE_CMP:{code:4016,message:"Expected a route view component with a default export.",level:E.Error,url:""},MISSING_DATA_CONTEXT:{code:4018,message:"Could not find context to retrieve navigation data.",level:E.Error,url:""}};function La(){let e=[],t=null,r=[];const n=u=>r.push(u),i=u=>{r[u]=null},a=(...u)=>{r.filter(l=>l!==null).forEach(l=>l.next&&l.next(...u)),e=u,t=null},o=u=>{r.filter(l=>l!==null).forEach(l=>l.error&&l.error(u)),e=[],t=u};return{next:a,error:o,complete:()=>{r.filter(u=>u!==null).forEach(u=>u.complete&&u.complete()),r=[],e=[],t=null},subscribe:(u,l=!0)=>{n(u),u.next&&e.length&&l&&u.next(...e),t&&o(t);const m=r.length-1;return{unsubscribe:()=>i(m)}}}}function ze(e=""){if(e=e||"",e.indexOf("://")<0){const i=window.location.port?`:${window.location.port}`:"",a=`${window.location.protocol}//${window.location.hostname}${i}`,o=e.charAt(0)==="/"?"":"/";e=a+o+e}const t={},r=document.createElement("a");r.href=e;const n=r.search.substring(1);return n&&n.split("&").forEach(i=>{const[a,o=""]=i.split("=");t[qe(a)]=qe(o)}),{href:r.href,origin:`${r.protocol}//${r.hostname}${r.port?`:${r.port}`:""}`,pathname:r.pathname.replace(/(\/)?/,"/"),searchParams:t}}function We(e){const t=ze(e),r=t.href.replace(/:\d+/,""),n=t.origin.replace(/:\d+/,"");return r.replace(n,"")}function gr(e){const t=ze(e).pathname;return t==="/"?"/":t.replace(/\/$/,"")}function Ma(e){return ze(e).searchParams}function Da(e={}){const t=Object.keys(e);return t.length?`?${t.map(r=>e[r]?`${r}=${ja(e[r])}`:r).join("&")}`:""}function ja(e=""){return e=e||"",encodeURIComponent(e)}function qe(e=""){return e=e||"",decodeURIComponent(e)}function H(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function ce(e){if(H(e))try{Object.freeze(e),Object.keys(e).forEach(t=>typeof e[t]=="object"&&Object.freeze(e[t]))}catch(t){}return e}function Pr(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}const _a="standard__simpleRoute";function be(e){return vr(e)&&H(e.attributes)&&Object.keys(e.attributes).length===1&&Object.prototype.hasOwnProperty.call(e.attributes,"path")}function vr(e){return H(e)&&(Object.prototype.hasOwnProperty.call(e,"id")||Object.prototype.hasOwnProperty.call(e,"type"))}function Ua(e={},t=[]){const{id:r,type:n,attributes:i={}}=e;if(r)return t.find(({params:a=[],original:{id:o}})=>o===r&&a.every(c=>c.modifier==="?"||Object.prototype.hasOwnProperty.call(i,c.name)))||null;if(n){const a=t.filter(({params:o=[],original:{page:{type:c,attributes:d={}}={}}})=>c===n&&o.every(u=>u.modifier==="?"||Object.prototype.hasOwnProperty.call(i,u.name))&&Object.keys(d).every(u=>d[u]===i[u]));return a.length>0?a[0]:null}return null}function xa(e,t){const r={};if(e&&t){let n=t.regex.exec(e);n&&(n=n.slice(1),t.params.forEach((a,o)=>{n[o]&&(r[a.name]=qe(n[o]))})),t.original.page&&H(t.original.page.attributes)&&Object.assign(r,t.original.page.attributes)}return r}function br(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;to.matchesPath(r))||null;let a;if(!i)a={route:{type:_a,attributes:{path:r},state:Ye({},n)},data:null};else{const o=xa(r,i),c=i.original;a={route:{id:c.id,attributes:Ye({},o),state:Ye({},n)},data:c},c.page&&c.page.type&&(a.route.type=c.page.type)}return a}const yr=new WeakMap;function ye(e){const t=yr.get(e);return k(t&&t.value,T.MISSING_CONTEXT),t.value}function Er(e){return k(e===void 0||H(e)&&typeof e.navigate=="function"&&typeof e.generateUrl=="function"&&typeof e.subscribe=="function"&&Object.keys(e).length===3,T.INVALID_CONTEXT),e}function Ba(e,t){const r={id:Object.freeze(()=>{}),value:Er(e),data:t||[],update:n=>{r.value=Er(n)}};return yr.set(r.id,r),r}function Je(e,t,r,n){const i=Ba(e,r);return n&&n(t,{consumerConnectedCallback(a){a.provide(i.id)}}),i.id}class x{constructor(t){this._callback=void 0,this._callback=t}update(t,r){r&&this._callback(r)}connect(){}disconnect(){}}x.contextSchema={value:"required"},f.registerDecorators(x,{fields:["_callback"]});const Ka=f.createContextProvider(x),za=`universalcontainernavigationevent${Pr()}`,Xe=`universalcontainerparentevent${Pr()}`;class B{constructor(t=window){this.node=window,this.parent=null,this.child=null,Object.assign(this,{node:t})}get context(){return this}_fallback(t,r,...n){return t?(...i)=>t(...i,...n):r}connectToParent(){this.node.dispatchEvent(new CustomEvent(Xe,{bubbles:!0,composed:!0,detail:t=>{this.parent=t,t.addChild(this)}}))}addChild(t){setTimeout(()=>{k(!this.child,T.MULTIPLE_CHILDREN),this.child=t},0)}connect(){this.connectToParent(),this.handleParentEvent=this._handleParentEvent.bind(this),this.handleNavEvent=this._handleEvent.bind(this),this.node.addEventListener(Xe,this.handleParentEvent),this.node.addEventListener(B.navigationEvent,this.handleNavEvent)}disconnect(){this.node.removeEventListener(Xe,this.handleParentEvent),this.node.removeEventListener(B.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 t=this;for(;!t.isRoot;)t=t.parent;return t}_handleParentEvent(t){t.stopImmediatePropagation(),t&&t.detail&&t.detail(this)}_handleEvent(t){const{url:r,options:n,input:i}=t.detail;this.handleEvent(i,n)?this.isRoot&&this.process(r,n):t.stopPropagation()}handleEvent(){return!0}process(){return!0}}B.navigationEvent=za,f.registerDecorators(B,{fields:["node","parent","child"]});var wr=f.registerComponent(B,{tmpl:X});function Or(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wa(e){for(var t=1;t{const i=Wa({},n);delete i.id,this._callback(i)}))}connect(){}disconnect(){this._subscription&&(this._subscription.unsubscribe(),this._subscription=void 0)}}Ee.contextSchema={value:"required"},f.registerDecorators(Ee,{fields:["_callback","_subscription"]});const Ya=f.createContextProvider(Ee);function Ja(e){for(var t=[],r=0;r=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=e[a++];continue}break}if(!i)throw new TypeError("Missing parameter name at "+r);t.push({type:"NAME",index:r,value:i}),r=a;continue}if(n==="("){var c=1,d="",a=r+1;if(e[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a)?(?!\?)/g,n=0,i=r.exec(e.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(e.source);return e}function eo(e,t,r){var n=e.map(function(i){return Cr(i,t,r).source});return new RegExp("(?:"+n.join("|")+")",Qe(r))}function to(e,t,r){return ro(Nr(e,r),t,r)}function ro(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,a=r.start,o=a===void 0?!0:a,c=r.end,d=c===void 0?!0:c,u=r.encode,l=u===void 0?function(S){return S}:u,m="["+K(r.endsWith||"")+"]|$",h="["+K(r.delimiter||"/#?")+"]",g=o?"^":"",R=0,I=e;R-1:M===void 0;i||(g+="(?:"+h+"(?="+m+"))?"),pt||(g+="(?="+h+"|"+m+")")}return new RegExp(g,Qe(r))}function Cr(e,t,r){return e instanceof RegExp?Za(e,t):Array.isArray(e)?eo(e,t,r):to(e,t,r)}var Tr={compile:Xa,pathToRegexp:Cr};class Rr extends wr{constructor(t={},r=window){super(r);this.basePath="",this.routes=[],this.caseSensitive=!1,this.pathMatch="",this.infoMatch=null,this.currentUrl=null,this.routeObservable=La(),this.preFilters=Be(),this.postFilters=Be(),this.errorFilters=Be(),this.basePath=t.basePath||"",this.caseSensitive=t.caseSensitive===!0,this.parseRouteDefinitions(t.routes||[]),this.getRouteFromUrl=this._fallback(t.getRouteFromUrl,this.defaultGetRouteFromUrl,this.defaultGetRouteFromUrl.bind(this)),this.getUrlFromRoute=this._fallback(t.getUrlFromRoute,this.defaultGetUrlFromRoute,this.defaultGetUrlFromRoute.bind(this)),this.handleEvent=this._fallback(t.handleNavigation,()=>!0,this.getRouteFromUrl.bind(this))}parseRouteDefinitions(t){this.routes=t.map(r=>{k(r.path,T.MISSING_PATH);const n=[],i=Tr.pathToRegexp(r.path,n,{sensitive:this.caseSensitive,end:r.exact!==!1}),a=Tr.compile(r.path,{encode:encodeURIComponent}),o=r.matchesPath||(c=>i.test(c));return{original:r,regex:i,params:n,toPath:a,matchesPath:o}})}connect(){super.connect();const t={navigate:(n,i)=>this.navigate(n,i),generateUrl:n=>this.generateUrl(n),subscribe:(n,i)=>this.subscribe(n,i)},r=this.routes.map(n=>n.original);this.contextId=Je(t,this.node,r,Ka),Je(t,this.node,r,Ya)}addPreNavigate(t){this.preFilters.add(t)}addPostNavigate(t){this.postFilters.add(t)}addErrorNavigate(t){this.errorFilters.add(t)}get prefix(){return`${this.parent?this.parent.pathMatch:""}${this.basePath}`}defaultGetRouteFromUrl(t){t=We(t);const r=t.indexOf(this.prefix)===0,n=Ha(r?t.replace(this.prefix,""):t,r?this.routes:[]),{route:i}=n;return r&&be(i)&&(i.attributes.path=`${this.prefix}${i.attributes.path}`),{route:i,data:n.data}}defaultGetUrlFromRoute(t){const r=be(t)?"":this.prefix,n=Ga(t,this.routes);return{url:n.url?`${r}${n.url}`:null,data:n.data}}async addChild(t){super.addChild(t),this.currentUrl&&await t.preProcess(this.currentUrl)&&t.process(this.currentUrl)}async process(t,r){const n=ce(this.getRouteFromUrl(t)),i=ce(n.route),a=!this.isRoot||await this.preProcess(t,n);return a.message?(this.processError(a),!1):(await this.postFilters.compile({previous:this.infoMatch,current:n}),this.infoMatch=n,this.currentUrl=t,this.routeObservable.next(i,ce(n.data)),this.child&&this.child.process(t,r),!0)}preProcess(t,r=ce(this.getRouteFromUrl(t))){const n=ce(r.route);return n===null?Promise.resolve(Ke(T.MISSING_ROUTE,[t])):(this.pathMatch=be(n)?this.parent?this.parent.pathMatch:"":gr(this.getUrlFromRoute(n).url||""),(this.preFilters.empty()?Promise.resolve(!0):this.preFilters.compile({current:this.infoMatch,next:r})).then(a=>a&&this.child?this.child.preProcess(t):a).then(a=>a||Ke(T.PRENAV_FAILED,[t])))}processError(t){this.errorFilters.compile(t),this.child&&this.child.processError(t)}navigate(t,r){const n=typeof t=="string"?t:this.getUrlFromRoute(t).url;if(n===null){this.root.processError(Ke(T.MISSING_URL,[t.id||t.type]));return}this.node.dispatchEvent(new CustomEvent(wr.navigationEvent,{bubbles:!0,composed:!0,detail:{url:n,options:r,input:t}}))}generateUrl(t){const r=this.getUrlFromRoute(t);return Promise.resolve(r.url||"")}subscribe(t,r){return this.routeObservable.subscribe({next:(n,i)=>t(n,i)},r)}}f.registerDecorators(Rr,{fields:["basePath","routes","caseSensitive","pathMatch","infoMatch","currentUrl","routeObservable","preFilters","postFilters","errorFilters"]});var Ir=f.registerComponent(Rr,{tmpl:X});class no extends Ir{connect(){super.connect(),window.addEventListener("popstate",()=>{this.catchBrowserUpdate(We(document.location.href))}),this.catchBrowserUpdate(We(document.location.href))}async process(t,r,n=!0){const i=await super.process(t,r);if(i&&n){const a=t.indexOf(this.basePath)===0?t:`${this.basePath}${t}`;r?Sa(a):Ia(a)}return i}catchBrowserUpdate(t){const r=this.basePath&&t.indexOf(this.basePath)!==0;this.process(`${r?this.basePath:""}${t}`,r,r)}}var io=f.registerComponent(no,{tmpl:X});let Ze=!1;function ao(e,t={}){const r=t.noHistory===!0?new Ir(t,e):new io(t,e),n={addPreNavigate:i=>(r.addPreNavigate(i),n),addPostNavigate:i=>(r.addPostNavigate(i),n),addErrorNavigate:i=>(r.addErrorNavigate(i),n),connect:()=>{r.connect(),k(!Ze||!!r.parent,T.MULTIPLE_ROOTS),Ze=Ze||!r.parent,n.id=r.contextId},disconnect:()=>{r.disconnect()}};return n}function Sr(e={}){return ao(window,e)}function z(e,t,r){ye(e).navigate(t,r)}function W(e,t){return ye(e).generateUrl(t)}function $r(e,t,r=!0){return ye(e).subscribe(t,r)}var oo=Object.freeze({__proto__:null,navigate:z,generateUrl:W,subscribe:$r,NavigationContext:x,provideContext:Je,createRouter:Sr});const Ar="sf-aria-live",Lr="tabindex";function so(e){if(e.current){let t=document.body.querySelector(`#${Ar}`);t||(t=document.createElement("span"),t.id=Ar,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}}function co(e){e.current&&(document.title=e.current.data.label)}function uo(e){const t=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT,n=>n.matches("webruntime-router-container")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,!1),r=e?document.body:t.nextNode();r&&(r.setAttribute(Lr,"-1"),r.focus({preventScroll:!0}),r.removeAttribute(Lr))}class q{constructor(){this.overrides=[]}add(t){this.overrides.push(t)}run(...t){return this.overrides.length===0?Promise.resolve(!0):this.overrides.reduce((r,n)=>r.then(i=>i===!1?Promise.resolve(!1):Promise.resolve(n(...t))),Promise.resolve(!0)).then(r=>Promise.resolve(r))}runSync(...t){return this.overrides.length===0?!0:this.overrides.reduce((r,n)=>r===!0?n(...t):!1,!0)}}f.registerDecorators(q,{fields:["overrides"]});const et=new q,Mr=new q,Dr=new q,tt=new q;var lo=Object.freeze({__proto__:null,Overrides:q,PreNavigateOverrides:et,NavigationOverrides:Mr,SessionTimeoutOverrides:Dr,PageNavigationFailureOverrides:tt});const we={};function jr(e){const{pathname:t,search:r,hash:n}=new URL(e,window.location.origin);return{pathname:t,search:r,hash:n}}async function mo(e){const{pathname:t,search:r,hash:n}=jr(e);if(we[t])return we[t]+r+n;if(Object.values(we).includes(t))return e;try{const{redirected:i,url:a}=await ee(e,{basePath:"",method:"HEAD",isNonApiRequest:!0});if(i){const o=jr(a).pathname;return we[t]=o,o+r+n}}catch(i){ae(`Unable to fetch canonical URL for ${e}`,`error: `,i)}return null}async function po(e,{route:t,data:r}){if(!r.hasVanityURL)return;const n=await W(e.id,t),i=await mo(n);i&&i!==n&&z(e.id,i,!0)}function fo(e){e.addPostNavigate(function({previous:r,current:n}){!r||po(e,n)})}const ho=[{type:"standard__recordPage",params:[{name:"recordName",type:"state",value:"detail"},{name:"categoryPath",type:"state",value:"detail"}],match:({attributes:e={}},{name:t})=>e.objectApiName==="ProductCategory"?t==="categoryPath":t!=="categoryPath"},{type:"standard__objectPage",params:[{name:"filterName",type:"state",value:"Default"}]},{type:"standard__search",params:[{name:"term",type:"state",value:" "}]}];function _r(e){return ho.find(t=>e.type===t.type)}function Ur(e={},t={},r=!1,n="attributes"){const{match:i,params:a}=t;return a.forEach(o=>{if(i&&!i(e,o))return;const{type:c,name:d,value:u}=o;let l=c,m=l==="state"?"attributes":"state";r&&([l,m]=[m,l]),l===n&&e[l]&&e[l][d]&&e[m]?delete e[m][d]:e=Ln(e,l,m,d,u)}),e}function go(e){const{type:t}=e,r=_r(e);return r?Ur(e,r,!0):t==="standard__managedContentPage"?yo(e):e}function Po(e){const t=_r(e);return t?Ur(e,t):e}function vo(e,t,r){if(t.attributes.recordId)return t;const n=r.patterns[0],i=e.match(n);if(i){const[,a,,o]=i;t.attributes.categoryPath=a,t.attributes.recordId=o}return t}function bo(e,t){if(e.attributes.categoryPath.includes("/")){let[r,n]=t.split("?");return r=r.replace(/%2F/g,"/"),n=n?`?${n}`:"",r+n}return t}function yo(e){return e.attributes&&e.attributes.contentKey&&(e.attributes.urlAlias=e.attributes.contentKey,delete e.attributes.contentKey),e}function xr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fr(e){for(var t=1;t{if(!t.patterns||t.patterns.length===0)return t;const r=t.patterns.map(n=>new RegExp(`^${n}$`));return Fr(Fr({},t),{},{matchesPath:n=>r.some(i=>i.test(n))})})}function Gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vr(e){for(var t=1;te.isDefault),No={basePath:v.default,caseSensitive:!0,routes:wo(gt.default),handleNavigation:Co,getRouteFromUrl:To,getUrlFromRoute:Ro},le=Sr(No).addPreNavigate(et.run.bind(et)).addPreNavigate(Io).addPreNavigate(kt).addPostNavigate(co).addPostNavigate(so).addErrorNavigate(So);fo(le),le.connect(),window.performance.measure(rt,rt);function Co(e){if(!Mr.runSync(e))return!1;if(Rt(e)){const{type:t,attributes:{url:r}={url:null}}=e;if(t==="standard__webPage"&&kr(r))return window.open(r),!1}return!0}function To(e,t){let{route:r,data:n}=t(e);const{type:i,attributes:a={}}=r;return i==="standard__simpleRoute"?(n=ue,r=Object.assign({state:{}},{id:ue.id},ue.page)):i==="standard__recordPage"&&a.objectApiName==="ProductCategory"&&(r=vo(e,r,n)),r=Po(r),{route:r,data:n}}function Ro(e={},t){const{type:r,attributes:n={}}=e;if(r==="standard__webPage"){const o=n.url;return{url:o?$o(o):null,data:null}}e=go(e);const i=t(e);let{url:a}=i;return r==="standard__recordPage"&&n.objectApiName==="ProductCategory"&&(a=bo(e,a)),Vr(Vr({},i),{},{url:a})}async function Io({next:{route:e,data:t}={}}={}){if(t&&t.isPublic!==!1)return!0;const{default:r}=await D.load("@app/user/v/1");if(r.isGuest){const n=await Hr(e);return n&&(window.location.href=`${n}`),!1}return!0}async function So({code:e,message:t,url:r}){if(ae(`Routing error: (${e}) ${t} ${r}`),ue.isPublic===!1){const{default:n}=await D.load("@app/user/v/1");if(n.isGuest)return}nt(ue)}function kr(e){return new RegExp("^([a-z]+://|//)","i").test(e)}function $o(e){return kr(e)?e:v.default&&e!==v.default&&e.indexOf(`${v.default}/`)!==0?`${v.default}${e}`:e}function nt(e,t){z(le.id,e,t)}function Hr(e){return W(le.id,e)}function Oe(e,t=!0){return $r(le.id,e,t)}var Ao=Object.freeze({__proto__:null,navigate:nt,generateUrl:Hr,subscribe:Oe});function Lo(){return window.matchMedia("only screen and (min-width: 48em) and (max-width: 64em)").matches}function Mo(){return window.matchMedia("only screen and (max-width: 47.9375em)").matches}function Do(){return Lo()?"Medium":Mo()?"Small":"Large"}function Br(e){return e===void 0}const jo="ValueChangedEvent";class Kr{constructor(t){this.type=jo,this.value=t}}const{freeze:zr,defineProperty:_o,isExtensible:Uo}=Object,xo="$$DeprecatedWiredElementHostKey$$",Fo="$$DeprecatedWiredParamsMetaKey$$";function Go(e,t){if(e==null||!Uo(e))throw new TypeError("adapter id must be extensible");if(typeof t!="function")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 Wo{constructor(n){super(n);t(this.eventTarget)}};zr(r),zr(r.prototype),_o(e,"adapter",{writable:!1,configurable:!1,value:r})}function Vo(){}const{forEach:it,splice:ko,indexOf:Ho}=Array.prototype,Wr="connect",qr="disconnect",Yr="config";function at(e,t){const r=Ho.call(e,t);r>-1&&ko.call(e,r,1)}function Bo(e){return Object.keys(e).length===0}function Ko(e,t){return t.length===0||t.some(r=>!Br(e[r]))}function zo(e,t,r){return r.some(n=>e[n]!==t[n])}class Wo{constructor(t){this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=t,this.wiredElementHost=t[xo],this.dynamicParamsNames=t[Fo],this.eventTarget={addEventListener:(r,n)=>{switch(r){case Wr:{this.connecting.push(n);break}case qr:{this.disconnecting.push(n);break}case Yr:{this.configuring.push(n),this.currentConfig!==void 0&&n.call(void 0,this.currentConfig);break}default:throw new Error(`Invalid event type ${r}.`)}},removeEventListener:(r,n)=>{switch(r){case Wr:{at(this.connecting,n);break}case qr:{at(this.disconnecting,n);break}case Yr:{at(this.configuring,n);break}default:throw new Error(`Invalid event type ${r}.`)}},dispatchEvent:r=>{if(r instanceof Kr){const n=r.value;this.callback(n)}else{if(r.type==="wirecontextevent")return this.wiredElementHost.dispatchEvent(r);throw new Error(`Invalid event type ${r.type}.`)}return!1}}}update(t){this.isFirstUpdate&&(this.isFirstUpdate=!1,!Bo(t)&&!Ko(t,this.dynamicParamsNames))||(Br(this.currentConfig)||zo(t,this.currentConfig,this.dynamicParamsNames))&&(this.currentConfig=t,it.call(this.configuring,r=>{r.call(void 0,t)}))}connect(){it.call(this.connecting,t=>t.call(void 0))}disconnect(){it.call(this.disconnecting,t=>t.call(void 0))}}var qo=Object.freeze({__proto__:null,ValueChangedEvent:Kr,register:Go,registerWireService:Vo});const s="/services/data/v55.0",Yo={"CommerceCatalogController.getProductCategoryPath":{urlPath:s+"/commerce/webstores/${webstoreId}/product-category-path/product-categories/${productCategoryId}",urlPathParamNames:["productCategoryId","webstoreId"],method:"GET"},"CommerceCatalogController.getProducts":{urlPath:s+"/commerce/webstores/${webstoreId}/products",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceCatalogController.getProduct":{urlPath:s+"/commerce/webstores/${webstoreId}/products/${productId}",urlPathParamNames:["productId","webstoreId"],method:"GET"},"HSRCommerceCatalogController.getProductHSR":{urlPath:s+"/commerce/webstores/${webstoreId}/versions/${versionId}/products/${productId}",urlPathParamNames:["productId","versionId","webstoreId"],method:"GET"},"CommerceStorePricingController.getProductPrices":{urlPath:s+"/commerce/webstores/${webstoreId}/pricing/products",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceStorePricingController.getProductPrice":{urlPath:s+"/commerce/webstores/${webstoreId}/pricing/products/${productId}",urlPathParamNames:["productId","webstoreId"],method:"GET"},"CommunitiesController.ingestRecord":{urlPath:s+"/connect/communities/${communityId}/microbatching",urlPathParamNames:["communityId"],inputRepresentation:"requestIngestionInput",method:"POST"},"MissionsController.purgeUserMissionsActivities":{urlPath:s+"/connect/communities/${communityId}/missions/activities/purge-job",urlPathParamNames:["communityId"],method:"POST"},"CommerceSearchController.searchProducts":{urlPath:s+"/commerce/webstores/${webstoreId}/search/product-search",urlPathParamNames:["webstoreId"],inputRepresentation:"productSearchInput",method:"POST"},"NavigationMenuController.getCommunityNavigationMenu":{urlPath:s+"/connect/communities/${communityId}/navigation-menu/navigation-menu-items",urlPathParamNames:["communityId"],method:"GET"},"MarketingIntegrationController.getForm":{urlPath:s+"/sites/${siteId}/marketing-integration/forms/${formId}",urlPathParamNames:["formId","siteId"],method:"GET"},"MarketingIntegrationController.saveForm":{urlPath:s+"/sites/${siteId}/marketing-integration/forms",urlPathParamNames:["siteId"],inputRepresentation:"formInput",method:"POST"},"MarketingIntegrationController.submitForm":{urlPath:s+"/sites/${siteId}/marketing-integration/forms/${formId}/data",urlPathParamNames:["formId","siteId"],inputRepresentation:"formSubmissionInput",method:"POST"},"SeoPropertiesController.getRecordSeoProperties":{urlPath:s+"/connect/communities/${communityId}/seo/properties/${recordId}",urlPathParamNames:["communityId","recordId"],method:"GET"},"OrchestrationController.getOrchestrationInstanceCollection":{urlPath:s+"/connect/interaction/orchestration/instances",urlPathParamNames:[],method:"GET"},"FlowRuntimeConnectController.navigateFlow":{urlPath:s+"/connect/interaction/runtime/navigateFlow",urlPathParamNames:[],inputRepresentation:"request",method:"POST"},"FlowRuntimeConnectController.resumeFlow":{urlPath:s+"/connect/interaction/runtime/resumeFlow",urlPathParamNames:[],method:"POST"},"FlowRuntimeConnectController.startFlow":{urlPath:s+"/connect/interaction/runtime/startFlow",urlPathParamNames:[],method:"POST"},"ManagedContentController.getManagedContentByTopicsAndContentKeys":{urlPath:s+"/connect/communities/${communityId}/managed-content/delivery",urlPathParamNames:["communityId"],method:"GET"},"ManagedContentController.getPublishedManagedContentListByContentKey":{urlPath:s+"/connect/communities/${communityId}/managed-content/delivery/contents",urlPathParamNames:["communityId"],method:"GET"},"ManagedContentController.createDeployment":{urlPath:s+"/cms/deployments",urlPathParamNames:[],inputRepresentation:"DeploymentInput",method:"POST"},"ManagedContentController.createManagedContent":{urlPath:s+"/connect/cms/contents",urlPathParamNames:[],inputRepresentation:"ManagedContentInputParam",method:"POST"},"ManagedContentController.getManagedContent":{urlPath:s+"/connect/cms/contents/${contentKeyOrId}",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentOrchestrations":{urlPath:s+"/connect/cms/contents/variants/${variantId}/orchestrations",urlPathParamNames:["variantId"],method:"GET"},"ManagedContentController.getManagedContentOrchestrationInstance":{urlPath:s+"/connect/cms/contents/variants/${variantId}/orchestration-instances",urlPathParamNames:["variantId"],method:"GET"},"ManagedContentController.createManagedContentOrchestrationInstance":{urlPath:s+"/connect/cms/contents/variants/${variantId}/orchestration-instances",urlPathParamNames:["variantId"],inputRepresentation:"mContentOrchInstanceInput",method:"POST"},"ManagedContentController.getManagedContentPreviews":{urlPath:s+"/cms/spaces/${contentSpaceId}/preview-endpoints",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.publish":{urlPath:s+"/connect/cms/contents/publish",urlPathParamNames:[],inputRepresentation:"publishInput",method:"POST"},"ManagedContentController.getManagedContentReferencedBy":{urlPath:s+"/connect/cms/contents/${contentKeyOrId}/referenced-by",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentSpaceFolderItems":{urlPath:s+"/connect/cms/folders/${folderId}/items",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.unpublish":{urlPath:s+"/connect/cms/contents/unpublish",urlPathParamNames:[],inputRepresentation:"unpublishInput",method:"POST"},"ManagedContentController.deleteManagedContentVariant":{urlPath:s+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],method:"DELETE"},"ManagedContentController.getManagedContentVariant":{urlPath:s+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],method:"GET"},"ManagedContentController.replaceManagedContentVariant":{urlPath:s+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],inputRepresentation:"ManagedContentVariantInputParam",method:"PUT"},"ManagedContentDeliveryController.getCollectionItemsForChannel":{urlPath:s+"/connect/cms/delivery/channels/${channelId}/collections/${collectionKeyOrId}",urlPathParamNames:["channelId","collectionKeyOrId"],method:"GET"},"ManagedContentDeliveryController.getCollectionItemsForSite":{urlPath:s+"/connect/sites/${siteId}/cms/delivery/collections/${collectionKeyOrId}",urlPathParamNames:["collectionKeyOrId","siteId"],method:"GET"},"ManagedContentDeliveryController.getCollectionMetadataForChannel":{urlPath:s+"/connect/cms/delivery/channels/${channelId}/collections/${collectionKeyOrId}/metadata",urlPathParamNames:["channelId","collectionKeyOrId"],method:"GET"},"ManagedContentDeliveryController.getCollectionMetadataForSite":{urlPath:s+"/connect/sites/${siteId}/cms/delivery/collections/${collectionKeyOrId}/metadata",urlPathParamNames:["collectionKeyOrId","siteId"],method:"GET"},"ManagedContentTypeController.getContentTypeSchema":{urlPath:s+"/connect/cms/content-types/${contentTypeFQN}",urlPathParamNames:["contentTypeFQN"],method:"GET"},"SitesController.searchSite":{urlPath:s+"/connect/sites/${siteId}/search",urlPathParamNames:["siteId"],method:"GET"},"ActionsController.getGlobalActions":{urlPath:s+"/ui-api/actions/global",urlPathParamNames:[],method:"GET"},"ActionsController.getActionLayout":{urlPath:s+"/ui-api/actions/layout/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getListViewActions":{urlPath:s+"/ui-api/actions/list-view/${listViewIds}",urlPathParamNames:["listViewIds"],method:"GET"},"ActionsController.getLookupActions":{urlPath:s+"/ui-api/actions/lookup/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"ActionsController.getMRUListActions":{urlPath:s+"/ui-api/actions/mru-list/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"ActionsController.getObjectCreateActions":{urlPath:s+"/ui-api/actions/object/${objectApiName}/record-create",urlPathParamNames:["objectApiName"],method:"GET"},"ActionsController.getQuickActionDefaults":{urlPath:s+"/ui-api/actions/record-defaults/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getRecordEditActions":{urlPath:s+"/ui-api/actions/record/${recordIds}/record-edit",urlPathParamNames:["recordIds"],method:"GET"},"ActionsController.getRecordActions":{urlPath:s+"/ui-api/actions/record/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"ActionsController.getRelatedListsActions":{urlPath:s+"/ui-api/actions/record/${recordIds}/related-list/batch/${relatedListIds}",urlPathParamNames:["recordIds","relatedListIds"],method:"GET"},"ActionsController.getRelatedListRecordActions":{urlPath:s+"/ui-api/actions/record/${recordIds}/related-list-record/${relatedListRecordIds}",urlPathParamNames:["recordIds","relatedListRecordIds"],method:"GET"},"ActionsController.getRelatedListActions":{urlPath:s+"/ui-api/actions/record/${recordIds}/related-list/${relatedListId}",urlPathParamNames:["recordIds","relatedListId"],method:"GET"},"AppsController.getNavItems":{urlPath:s+"/ui-api/nav-items",urlPathParamNames:[],method:"GET"},"ListUiController.getListsByObjectName":{urlPath:s+"/ui-api/list-ui/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ListUiController.getListInfosById":{urlPath:s+"/ui-api/list-info/batch",urlPathParamNames:[],method:"GET"},"ListUiController.getListInfosByName":{urlPath:s+"/ui-api/list-info/batch",urlPathParamNames:[],method:"GET"},"ListUiController.getListInfoById":{urlPath:s+"/ui-api/list-info/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListInfoByName":{urlPath:s+"/ui-api/list-info/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.getListRecordsById":{urlPath:s+"/ui-api/list-records/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListRecordsByName":{urlPath:s+"/ui-api/list-records/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.getListUiById":{urlPath:s+"/ui-api/list-ui/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListUiByName":{urlPath:s+"/ui-api/list-ui/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"MruListUiController.getMruListInfo":{urlPath:s+"/ui-api/mru-list-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"MruListUiController.getMruListRecords":{urlPath:s+"/ui-api/mru-list-records/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"MruListUiController.getMruListUi":{urlPath:s+"/ui-api/mru-list-ui/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getAggregateUi":{urlPath:s+"/ui-api/aggregate-ui",urlPathParamNames:[],method:"GET"},"RecordUiController.executeAggregateUi":{urlPath:s+"/ui-api/aggregate-ui",urlPathParamNames:[],inputRepresentation:"input",method:"POST"},"RecordUiController.getRecordsWithFields":{urlPath:s+"/ui-api/records/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getRecordsWithLayouts":{urlPath:s+"/ui-api/records/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getDedupeConfig":{urlPath:s+"/ui-api/duplicates/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getDuplicateConfig":{urlPath:s+"/ui-api/duplicates/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getFormByName":{urlPath:s+"/ui-api/forms/${apiName}",urlPathParamNames:["apiName"],method:"GET"},"RecordUiController.executeGraphQL":{urlPath:s+"/graphql",urlPathParamNames:[],inputRepresentation:"queryInput",method:"POST"},"RecordUiController.getLayout":{urlPath:s+"/ui-api/layout/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getLayoutUserState":{urlPath:s+"/ui-api/layout/${objectApiName}/user-state",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.updateLayoutUserState":{urlPath:s+"/ui-api/layout/${objectApiName}/user-state",urlPathParamNames:["objectApiName"],inputRepresentation:"userState",method:"PATCH"},"RecordUiController.getObjectInfos":{urlPath:s+"/ui-api/object-info/batch/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"RecordUiController.getObjectInfo":{urlPath:s+"/ui-api/object-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getPicklistValuesByRecordType":{urlPath:s+"/ui-api/object-info/${objectApiName}/picklist-values/${recordTypeId}",urlPathParamNames:["objectApiName","recordTypeId"],method:"GET"},"RecordUiController.getPicklistValues":{urlPath:s+"/ui-api/object-info/${objectApiName}/picklist-values/${recordTypeId}/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName","recordTypeId"],method:"GET"},"RecordUiController.findDuplicates":{urlPath:s+"/ui-api/predupe",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.postRecordAvatarAssociation":{urlPath:s+"/ui-api/record-avatars/${recordId}/association",urlPathParamNames:["recordId"],inputRepresentation:"input",method:"POST"},"RecordUiController.getRecordAvatars":{urlPath:s+"/ui-api/record-avatars/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getRecordCloneDefaults":{urlPath:s+"/ui-api/record-defaults/clone/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordCreateDefaults":{urlPath:s+"/ui-api/record-defaults/create/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.createRecord":{urlPath:s+"/ui-api/records",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.deleteRecord":{urlPath:s+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"DELETE"},"RecordUiController.getRecordWithFields":{urlPath:s+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordWithLayouts":{urlPath:s+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.updateRecord":{urlPath:s+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],inputRepresentation:"recordInput",method:"PATCH"},"RecordUiController.getRecordDefaultsTemplateClone":{urlPath:s+"/ui-api/record-defaults/template/clone/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordDefaultsTemplateForCreate":{urlPath:s+"/ui-api/record-defaults/template/create/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getRecordUis":{urlPath:s+"/ui-api/record-ui/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getValidationRulesInfo":{urlPath:s+"/ui-api/object-info/${objectApiName}/validation-rules-info",urlPathParamNames:["objectApiName"],method:"GET"},"RelatedListUiController.getRelatedListInfoBatch":{urlPath:s+"/ui-api/related-list-info/batch/${parentObjectApiName}/${relatedListNames}",urlPathParamNames:["parentObjectApiName","relatedListNames"],method:"GET"},"RelatedListUiController.getRelatedListInfoCollection":{urlPath:s+"/ui-api/related-list-info/${parentObjectApiName}",urlPathParamNames:["parentObjectApiName"],method:"GET"},"RelatedListUiController.getRelatedListInfo":{urlPath:s+"/ui-api/related-list-info/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.getRelatedListInfoByApiName":{urlPath:s+"/ui-api/related-list-info/${parentObjectApiName}/${relatedListId}",urlPathParamNames:["parentObjectApiName","relatedListId"],method:"GET"},"RelatedListUiController.updateRelatedListInfoByApiName":{urlPath:s+"/ui-api/related-list-info/${parentObjectApiName}/${relatedListId}",urlPathParamNames:["parentObjectApiName","relatedListId"],inputRepresentation:"relatedListInfoInput",method:"PATCH"},"RelatedListUiController.getRelatedListPreferencesBatch":{urlPath:s+"/ui-api/related-list-preferences/batch/${preferencesIds}",urlPathParamNames:["preferencesIds"],method:"GET"},"RelatedListUiController.getRelatedListPreferences":{urlPath:s+"/ui-api/related-list-preferences/${preferencesId}",urlPathParamNames:["preferencesId"],method:"GET"},"RelatedListUiController.updateRelatedListPreferences":{urlPath:s+"/ui-api/related-list-preferences/${preferencesId}",urlPathParamNames:["preferencesId"],inputRepresentation:"relatedListUserPreferencesInput",method:"PATCH"},"RelatedListUiController.getRelatedListsRecordCount":{urlPath:s+"/ui-api/related-list-count/batch/${parentRecordId}/${relatedListNames}",urlPathParamNames:["parentRecordId","relatedListNames"],method:"GET"},"RelatedListUiController.getRelatedListRecordCount":{urlPath:s+"/ui-api/related-list-count/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.getRelatedListRecordsBatch":{urlPath:s+"/ui-api/related-list-records/batch/${parentRecordId}/${relatedListIds}",urlPathParamNames:["parentRecordId","relatedListIds"],method:"GET"},"RelatedListUiController.postRelatedListRecordsBatch":{urlPath:s+"/ui-api/related-list-records/batch/${parentRecordId}",urlPathParamNames:["parentRecordId"],inputRepresentation:"listRecordsQuery",method:"POST"},"RelatedListUiController.getRelatedListRecords":{urlPath:s+"/ui-api/related-list-records/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.postRelatedListRecords":{urlPath:s+"/ui-api/related-list-records/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],inputRepresentation:"listRecordsQuery",method:"POST"},"LookupController.getLookupRecords":{urlPath:s+"/ui-api/lookups/${objectApiName}/${fieldApiName}/${targetApiName}",urlPathParamNames:["fieldApiName","objectApiName","targetApiName"],method:"GET"}};function Jo(e){return Yo[e]}function Xo(e){_e({path:wt,payload:JSON.stringify(e),contentType:"text/plain;charset=UTF-8"})}function Qo(e,t){document.dispatchEvent(new CustomEvent("client-error",{detail:{error:e,type:t}}))}function Y({subject:e,error:t,wcstack:r,type:n=j.UNKNOWN_ERROR}){r=r||t.wcstack;const{message:i,stack:a}=t,{hostname:o,pathname:c}=window.location,u={subject:e,message:i,stack:a,wcstack:r,location:{hostname:o,pathname:c}};ae(a||u),Qo(u,n),Xo(u)}function Jr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t{const h=a[m];return delete a[m],l.replace(`\${${m}}`,encodeURIComponent(h))},e),c;(r==="POST"||r==="PATCH")&&a[n]&&(c=JSON.stringify(a[n]),delete a[n]),Object.keys(a).length&&(o+=`?${Object.entries(a).filter(([,l])=>l!=null&&(!Array.isArray(l)||l.length)).map(([l,m])=>`${encodeURIComponent(l)}=${encodeURIComponent(m)}`).join("&")}`);const d=await ee(o,{method:r,body:c});let u;if(d.status===401&&Xr(),d.status!==204&&(u=await d.json()),u instanceof Array&&(u=u[0]),!d.ok)throw{status:d.status,data:Ne(Ne({},u),{},{statusCode:d.status})};return u}async function rs(e,t){if(e==="execute"){const{url:r,httpRequestOptions:n}=ns(e,t);return ee(r,n).then(i=>(i.status===401&&Xr(),i.status!==204?i.json():void 0)).then(i=>{if(i&&i.error&&i.error.length>0)throw i.error[0];return i})}throw new Error(`Unsupported Apex action: ${e}`)}function ns(e,t){if((!t||typeof t!="object"||Object.keys(t).length===0)&&Y({subject:"Apex API action error - invalid params",type:j.APEX_ACTION_ERROR,error:new Error(`Apex ${e} action called with invalid params: '${JSON.stringify(t)}'.`)}),t&&t.cacheable===!0){const r=`/apex/${e}?${is(t)}`;if(r.length<=Sn)return{url:r,httpRequestOptions:{method:"GET",basePath:Pt.default}}}return{url:`/apex/${e}`,httpRequestOptions:{method:"POST",body:JSON.stringify(t),basePath:Pt.default}}}function is(e){const t=Ne({},e),r=t.params;if(r&&typeof r=="object"){const n=Object.keys(r).sort().reduce((i,a)=>(i[a]=r[a],i),{});t.params=JSON.stringify(n)}return Object.keys(t).filter(n=>t[n]!==void 0&&t[n]!=null).sort().map(n=>`${n}=${encodeURIComponent(t[n])}`).join("&")}function Xr(){Dr.runSync()}var as=Object.freeze({__proto__:null,executeGlobalController:es,logger:Wt});const os=[];function ot(e,t,r,n){return os}var Ce=f.registerTemplate(ot);ot.stylesheets=[],ot.renderMode="light";function Qr(e){return D.load(e,"webruntime/app/v/1")}const st=document.createElement("style");st.setAttribute("id","webruntime-branding");let ct=":root {";Object.entries(Cn.default).forEach(([e,t])=>{ct+=`${e}: ${t};`}),ct+="}",st.innerHTML=ct,document.head.prepend(st);function Zr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function en(e){for(var t=1;t{this.clearRegionHighlights(),n.key===this.config.navKey&&(n.ctrlKey||n.metaKey)&&(this.populateRegions(),this.handleNav(n))},this.handleClick=()=>{this.clearRegionHighlights()},this.elementFilter=n=>n.parentElement&&n.parentElement.matches(`*[${this.config.f6RegionAttribute}]`)?NodeFilter.FILTER_REJECT:n.matches(`*[${this.config.f6RegionAttribute}]`)&&this.isVisible(n)&&!this.isEmpty(n)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,this.config=en(en({},this.config),t);const r=document.createElement("style");r.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; }`,r.setAttribute("type","text/css"),document.head.appendChild(r)}clearRegionHighlights(){for(const t of this.regions)t.classList.remove(this.config.f6RegionHighlightClass)}addRegionHighlight(t){t.classList.add(this.config.f6RegionHighlightClass)}focusIn(t){const r=t.querySelector('a[href],button:not([disabled]),input:not([type="hidden"]):not([disabled]),select:not([type="hidden"]):not([disabled]),textarea:not([type="hidden"]):not([disabled])');r?r.focus():(t.tabIndex="-1",t.focus())}getActiveElem({target:t}){do if(t.shadowRoot!=null){if(!t.shadowRoot.activeElement)return t;t=t.shadowRoot.activeElement}while(t.shadowRoot!=null);return t}handleNav(t){if(t.preventDefault(),this.regions.length===0)return;const r=this.getClosestRegionIndex(this.getActiveElem(t)),n=this.getNextRegionIndex(r,t.shiftKey);this.addRegionHighlight(this.regions[n]),this.focusIn(this.regions[n])}shadowContains(t,r){if(t===r||t.contains(r))return!0;if(t.shadowRoot){for(const n of t.shadowRoot.children)if(this.shadowContains(n,r))return!0}if(t.tagName==="SLOT"){for(const n of t.assignedElements())if(this.shadowContains(n,r))return!0}for(const n of t.children)if(this.shadowContains(n,r))return!0;return!1}getClosestRegionIndex(t){for(const[r,n]of this.regions.entries())if(this.shadowContains(n,t))return r;return-1}getNextRegionIndex(t,r){return r?t<=0?this.regions.length-1:t-1:t===this.regions.length-1?0:t+1}isVisible(t){return t===document.body||!(t instanceof Element)?!0:window.getComputedStyle(t).display.toLowerCase()==="none"?!1:this.isVisible(t.parentNode)}isEmpty(t){if(t.tagName==="SLOT"){for(const r of t.assignedElements())if(r.tagName!=="SLOT"||!this.isEmpty(r))return!1}for(const r of t.children)if(r.tagName!=="SLOT"||!this.isEmpty(r))return!1;return!0}populateRegions(){this.regions=[];const t=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT,this.elementFilter,!1);for(;t.nextNode();)this.regions.push(t.currentNode)}initialize(){document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("click",this.handleClick)}cleanUp(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("click",this.handleClick)}}f.registerDecorators(tn,{fields:["regions","config","handleKeyDown","handleClick","elementFilter"]}),new tn().initialize();const us={guestUuidCookieMaxAge:365*24*60*60};Ae.default&&!Dn(It(Ae.default))&&(document.cookie=`${Ae.default}=${Mn()};Max-Age=${us.guestUuidCookieMaxAge};SameSite=LAX;Path=${v.default?v.default:"/"}`);async function ls(){if(!vt.default)return;const{start:e}=await D.load("webruntimedesign/designmode/v/1");/interactive|complete/.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",e,!1)}function ds(){const{userAgent:e}=navigator;return Tn.default&&e.includes(Ot.PUBLISHER)||e.includes(Ot.PLAYGROUND)}function ms(){ps(),Oe(fs)}function ps(){document.addEventListener("notify-client-module",hs)}function fs(e,t){gs("navigationcompleted",{route:e,routeInfoData:t})}function hs({detail:e}){const{action:t,data:r}=e;switch(t){case"navigate":nt(r.routeObj,r.replaceState);break;default:zt(`No such action "${t}" exists.`);break}}function gs(e,t){document.dispatchEvent(new CustomEvent("notify-mobile-module",{bubbles:!0,composed:!0,detail:{action:e,data:t}}))}async function Ps(){if(!ds())return;const{hybridAppManager:e}=await D.load("mobileruntime/hybridAppManager/v/1");e(),ms()}function rn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t{!d&&this.themeLayout!==c&&(this.generatedTemplateHtml=Ce)},10);let u;try{u=await Qr(Nt(c))}catch(l){await this.handleFetchViewFailed(l,n)}try{return d=!0,vt.default||uo(this.themeLayout!==c),this.showView(u.default,c,o,t)}catch(l){Y({subject:"App.getTemplate#showView error",type:j.FAILED_TO_LOAD_RESOURCE,error:l})}}async handleFetchViewFailed(t,r){await tt.run({error:t,isPublic:r})&&Y({subject:"App.getTemplate#getViewModule error",type:j.FAILED_TO_LOAD_RESOURCE,error:t})}showView(t,r,n,i){this.themeLayout!==r&&(this.generatedTemplateHtml=t.html,this.themeLayout=r),this.routeParams=n,this.attributes=t.attributes(this),this.previousRouteId=this.route&&this.route.id||null,this.route=i}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}errorCallback(t,r){Y({subject:"app level error",error:t,wcstack:r})}}ut.renderMode="light",f.registerDecorators(ut,{fields:["generatedTemplateHtml","attributes","routeParams","route","previousRouteId","themeLayout","isInitialized"]});var bs=f.registerComponent(ut,{tmpl:Ce}),ys={};const nn=Symbol("Navigate"),an=Symbol("GenerateUrl"),Re=Symbol("NavContext"),Ie=e=>(k(typeof e.prototype.dispatchEvent=="function",T.INVALID_MIXIN_CMP,[e]),f.registerDecorators(class extends e{wiredNavContext(t){this[Re]=t}[nn](t,r){z(this[Re],t,r)}[an](t){return W(this[Re],t)}},{wire:{wiredNavContext:{adapter:x,method:1,config:function(t){return{}}}}}));Ie.Navigate=nn,Ie.GenerateUrl=an,Ie.NavContext=Re;var Es={navigate:z,generateUrl:W,NavigationContext:x,NavigationMixin:Ie,CurrentPageReference:Ee};function ws(e,t,r){var n=e?"["+e+"]":"";return"a"+n+" {color: var(--webruntime-link-color);font-size: var(--webruntime-link-font-size);text-decoration: var(--webruntime-link-text-decoration);}a:hover"+n+",a:active"+n+" {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);}"}var lt=[ws],Os=void 0;const Ns={key:1},Cs=[];function J(e,t,r,n){const{b:i,s:a,h:o}=e,{_m0:c}=n;return[o("a",{attrs:{href:t.path},key:0,on:{click:c||(n._m0=i(t.handleClick))}},[a("",Ns,Cs,r)])]}var Ts=f.registerTemplate(J);J.slots=[""],J.stylesheets=[],lt&&J.stylesheets.push.apply(J.stylesheets,lt),(lt||Os)&&(J.stylesheetToken="webruntime_navigation-link_link");class on extends f.LightningElement{constructor(...t){super(...t);this.path=void 0,this.route=void 0,this.navContext=void 0}async connectedCallback(){!this.path&&this.route&&(this.path=await W(this.navContext,this.route))}handleClick(t){t.preventDefault(),z(this.navContext,this.route||this.path)}}f.registerDecorators(on,{publicProps:{path:{config:0},route:{config:0}},wire:{navContext:{adapter:x,config:function(e){return{}}}}});var Rs=f.registerComponent(on,{tmpl:Ts});const Is=[];function dt(e,t,r,n){return Is}var Se=f.registerTemplate(dt);dt.stylesheets=[],dt.renderMode="light";async function Ss(e,t,r=""){return new Promise(window.requestAnimationFrame).then(()=>{e[t]=r})}function sn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cn(e){for(var t=1;t{i||(this.generatedTemplateHtml=Se)},10),Qr(Nt(r)).then(a=>a.default).then(async a=>{i=!0,await Ss(this,"generatedTemplateHtml",Se),this.showView(a,t)}).catch(async a=>{await this.handleFetchViewFailed(a,n)})}async handleFetchViewFailed(t,r){await tt.run({error:t,isPublic:r})&&Y({subject:"routerContainer.getTemplate error",type:j.FAILED_TO_LOAD_RESOURCE,error:t})}showView(t,r){this.generatedTemplateHtml=t.html;const{state:n,attributes:i}=r;this.routeParams=cn(cn({},n),i),this.attributes=t.attributes(this),this.route=r}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}errorCallback(t,r){Y({subject:"router level error",error:t,wcstack:r})}renderedCallback(){this.dispatchEvent(new CustomEvent("viewchange",{bubbles:!0,composed:!0,detail:{route:this.route}}))}}mt.renderMode="light",f.registerDecorators(mt,{fields:["generatedTemplateHtml","attributes","routeParams","route"]});var As=f.registerComponent(mt,{tmpl:Se});function un(e){Object.entries(e).forEach(([t,r])=>{LWR.define(t,[],function(){return r})})}un({"@salesforce/client/formFactor":Do(),"aura-instrumentation":Xt,"aura-storage":ys,"instrumentation/service":Xt,"lightning/configProvider":Ra,"lightning/navigation":Es,"webruntime_navigation/link":Rs,"webruntime_navigation/navigation":oo,"webruntime/routerContainer":As,"webruntime/routingService":Ao,"wire-service":qo,"webruntime/overrides":lo,aura:as,transport:Kn,logger:Wt,assert:Tt}),ht.default&&!It(ht.default)&&un({"@app/user":{isGuest:!0,id:null,csrfToken:null}});var Ls=f.registerComponent(bs,{tmpl:X});ft.default=Ls,Object.defineProperty(ft,"__esModule",{value:!0})});