LWR.define("webruntime/app/v/1",["exports","lwr/loaderLegacy/v/0_7_4","lwc/v/2_20_2","@app/authenticationCookieName/v/1","@app/basePath/v/1","@app/apiBasePath/v/1","@salesforce/i18n/lang/v/1","@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(cr,Y,v,Si,Ni,Ci,Ti,Ri,_i,Ai,Ii,$i,ji,Li){"use strict";function L(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var ur=L(Si),F=L(Ni),Di=L(Ci),Mi=L(Ti),ht=L(Ri),lr=L(_i),Ui=L(Ai),dr=L(Ii),xi=L($i),pt=L(ji),Fi=L(Li),we=void 0;const{performance:V,console:Vi}=window,mt=new WeakMap;let gt=!0,fr=!1;try{const t={randomInfo:123},e=V.mark("A",{detail:t})||V.getEntriesByType("mark").pop();gt=!!e.detail&&e.detail.randomInfo===t.randomInfo,fr=JSON.stringify(e).includes("randomInfo")}catch(t){gt=!1,Vi.warn("PerformanceMarkOptions#detail & PerformanceMeasureOptions#detail are not supported",t)}finally{V.clearMarks("A")}function Oe(t,e,r){const n=t[e];t[e]=function(){return r.apply(this,[n.bind(this),...arguments])}}function bt(t){return t.forEach(e=>{(e instanceof PerformanceMark||e instanceof PerformanceMeasure)&&(e.detail=mt.get(e)||null)}),t}function hr(){return{name:this.name||null,entryType:this.entryType||null,startTime:this.startTime||null,duration:this.duration||null,detail:this.detail||null}}fr||(PerformanceMark.prototype.toJSON=hr,PerformanceMeasure.prototype.toJSON=hr),gt||(Oe(V,"mark",(t,e,r)=>{const n=t(e)||V.getEntriesByType("mark").pop();if(r&&r.detail){const i=JSON.parse(JSON.stringify(r.detail));n.detail=i,mt.set(n,i)}return n}),Oe(V,"measure",(t,...e)=>{if(typeof e[1]!="string"&&e[1]&&e[1].detail){const r=e[1]&&e[1].start||null,n=t(e[0],r)||V.getEntriesByType("measure").sort((o,a)=>o.startTime+o.duration-(a.startTime+a.duration)).pop(),i=JSON.parse(JSON.stringify(e[1].detail));return n.detail=i,mt.set(n,i),n}return t(...e)}),Oe(V,"getEntries",t=>{const e=t();return bt(e)}),Oe(V,"getEntriesByName",(t,e,r)=>{const n=t(e,r);return bt(n)}),Oe(V,"getEntriesByType",(t,e)=>{const r=t(e);return bt(r)}));const oe="webruntime";function pr(t){return`/${oe}${t}`}const Gi=pr("/log/metrics"),mr=pr("/log/errors"),Q={APEX_ACTION_ERROR:"APEX_ACTION_ERROR",FAILED_TO_LOAD_RESOURCE:"FAILED_TO_LOAD_RESOURCE",TOO_MANY_REQUESTS:"TOO_MANY_REQUESTS",UNKNOWN_ERROR:"UNKNOWN_ERROR"},gr={PUBLISHER:"CommunityHybridContainer/",PLAYGROUND:"playgroundcommunity"},ki=8e3,Ki="@view";function br(t){return`${Ki}/${t}`}function yr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Pr(t){for(var e=1;e{if(!e.patterns||e.patterns.length===0)return e;const r=e.patterns.map(n=>new RegExp(`^${n}$`));return Pr(Pr({},e),{},{matchesPath:n=>r.some(i=>i.test(n))})})}function Er(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Se(t){for(var e=1;ee.trim().split("=")).filter(([e])=>e===t).map(([,e])=>e)[0]}function Ji(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t=>(t^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}function qi(t){return typeof t=="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(t)}function Or(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function yt(t){for(var e=1;e{e=!r.persisted}),window.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&e&&t()})}function co(t){return JSON.stringify(t).replace(/(":)(\d+\.\d{2,})/g,(r,n,i)=>n+Number(i).toFixed(2))}function uo(){if(!W.getEntriesByName)return null;const t=window.performance.getEntriesByName(`${oe}-app-bootstrap`),e=window.performance.getEntriesByName(`${oe}-framework-bootstrap`);return[...t,...e]}function Ve(){return W.PerformanceResourceTiming&&W.getEntriesByType?window.performance.getEntriesByType(Cr.RESOURCE):null}function lo(t){let e=Ve().length;const r=setInterval(()=>{Ve().length>e?e=Ve().length:(clearInterval(r),t())},500)}function fo(t,e,r){const n=window.performance.timing.navigationStart,i=Ve().sort((a,s)=>a.startTime+a.duration>s.startTime+s.duration?-1:1)[0];let o=e-n;return i&&i.startTime+i.duration>t-n&&(o=i.startTime+i.duration),{entryType:"webruntime-navigation",startTime:t-n,duration:n+o-t,name:r&&r.id}}function Tr(){return{hostname:W.hostname?window.location.hostname:null,pathname:W.pathname?window.location.pathname:null}}function ho(){return W.rtt?{"connection.rtt":window.navigator.connection.rtt}:null}function po(){return W.PerformancePaintTiming&&W.getEntriesByType?window.performance.getEntriesByType(Cr.PAINT):null}var J,Ce,Rr,Ge,K=function(t,e){return{name:t,value:e===void 0?-1:e,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},ke=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver(function(n){return n.getEntries().map(e)});return r.observe({type:t,buffered:!0}),r}}catch(n){}},Ke=function(t,e){var r=function n(i){i.type!=="pagehide"&&document.visibilityState!=="hidden"||(t(i),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},Te=function(t){addEventListener("pageshow",function(e){e.persisted&&t(e)},!0)},Z=typeof WeakSet=="function"?new WeakSet:new Set,q=function(t,e,r){var n;return function(){e.value>=0&&(r||Z.has(e)||document.visibilityState==="hidden")&&(e.delta=e.value-(n||0),(e.delta||n===void 0)&&(n=e.value,t(e)))}},mo=function(t,e){var r,n=K("CLS",0),i=function(a){a.hadRecentInput||(n.value+=a.value,n.entries.push(a),r())},o=ke("layout-shift",i);o&&(r=q(t,n,e),Ke(function(){o.takeRecords().map(i),r()}),Te(function(){n=K("CLS",0),r=q(t,n,e)}))},Re=-1,_r=function(){return document.visibilityState==="hidden"?0:1/0},Ar=function(){Ke(function(t){var e=t.timeStamp;Re=e},!0)},Et=function(){return Re<0&&(Re=_r(),Ar(),Te(function(){setTimeout(function(){Re=_r(),Ar()},0)})),{get timeStamp(){return Re}}},go=function(t,e){var r,n=Et(),i=K("FCP"),o=ke("paint",function(a){a.name==="first-contentful-paint"&&(o&&o.disconnect(),a.startTime=0&&Ce1e12?new Date:performance.now())-t.timeStamp;t.type=="pointerdown"?function(r,n){var i=function(){Ir(r,n),a()},o=function(){a()},a=function(){removeEventListener("pointerup",i,_e),removeEventListener("pointercancel",o,_e)};addEventListener("pointerup",i,_e),addEventListener("pointercancel",o,_e)}(e,t):Ir(e,t)}},jr=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,yo,_e)})},Po=function(t,e){var r,n=Et(),i=K("FID"),o=function(s){s.startTime{const n={pageView:t,location:Tr(),navigation:fo(e,r,t)},{CLS:i}=Dr(),o={webVitals:{CLS:i}};let a={};To()&&(a=$o(),Co(!1));const s=Object.assign({},n,a,o);xr(s),performance.clearResourceTimings(),wo()})}so(()=>{const{FID:t,LCP:e,TTFB:r,FCP:n}=Dr();(t||e||r||n)&&xr({webVitals:{FID:t,LCP:e,TTFB:r,FCP:n},location:Io})});function Lo(t){const e=F.default+mr,r=JSON.stringify(t);if(!(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(e,r))){const i=new XMLHttpRequest;i.open("POST",e,!0),i.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),i.send(r)}}function Do(t,e){document.dispatchEvent(new CustomEvent("client-error",{detail:{error:t,type:e}}))}function Fr({subject:t,error:e={},extra:r,type:n=Q.UNKNOWN_ERROR}){let i,o,a;e?(i=e.message,o=e.stack,a=e.wcstack):r&&(i=r.message);const{pathname:s,hostname:u}=window.location,c={subject:t,message:i,stack:o,wcstack:a,extra:r,location:{pathname:s,hostname:u}};Do(c,n),Lo(c)}window.addEventListener("error",(t={})=>{const{message:e,filename:r,lineno:n,colno:i,error:o}=t;Fr({subject:"window error",error:o,extra:{message:e,filename:r,lineno:n,colno:i}})}),window.addEventListener("unhandledrejection",(t={})=>{const{reason:e={}}=t;Fr({subject:"unhandledrejection",error:e})});function Vr(...t){console.log(...t)}function Ae(...t){console.error(...t)}var Gr=Object.freeze({__proto__:null,log:Vr,logError:Ae});function kr(t,e){return`${oe}-${[t,e].filter(Boolean).join(":")}`}function Kr(t){const e=JSON.stringify(t);return e&&JSON.parse(e)}function Hr(t,e,r){const n=kr(t,e);window.performance.mark(n,{detail:{ctx:Kr(r)}})}function Mo(t,e,r){Hr(t,e,r)}function Uo(t,e,r){Hr(t,e,r)}function xo(t,e,r){const n=kr(t,e);try{window.performance.measure(n,{detail:{ctx:Kr(r)},start:n})}catch(i){Ae(`[instrumentation] no startMark named ${n} found`,i.stack)}}function Fo(){return Date.now()}function Vo(t,e,r){}function Go(t,e,r){}function ko(t,e,r,n,i){}function Ko(t){}function Ho(t,e){}function Bo(t){return{logHits(e){},logMisses(e){},unRegister(){}}}function zo(t,e,r){}function Wo(t){}function Jo(t){}function qo(t){}function Xo(t,e,r){}function Yo(t){return{increment(e){},decrement(e){},getValue(){return 0},reset(){}}}function Qo(t){return{setValue(e){},getValue(){return 0},reset(){}}}function Zo(t){return{update(e){},getValue(){return[]},reset(){}}}function ea(t){return{addDuration(){},time(){},getValue(){return[]},reset(){},get(){}}}var Br=Object.freeze({__proto__:null,disablePlugin:qo,enablePlugin:Jo,error:zo,interaction:ko,mark:Mo,markEnd:xo,markStart:Uo,perfEnd:Go,perfStart:Vo,registerCacheStats:Bo,registerPeriodicLogger:Ho,registerPlugin:Ko,removePeriodicLogger:Wo,time:Fo,trackScenario:Xo,counter:Yo,gauge:Qo,percentileHistogram:Zo,timer:ea});class ta{constructor(){this._registry={eptMarked:[],navToPage:[],navFromPage:[],windowUnload:[]}}get knownEvents(){return Object.keys(this._registry)}_checkEventName(e){if(!this._registry[e])throw new Error(`eventName ${e} isn't valid`)}register(e,r,n){return ae(e&&typeof e=="string","eventName must be a valid string"),this._checkEventName(e),ae(r&&typeof r=="string","listenerName must be a valid string"),ae(typeof n=="function","callback must be provided"),this._registry[e].push({name:r,func:n})}unregister(e,r){this._checkEventName(e);const n=r-1;ae(this._registry[e][n],`No listener found for ${e} with registration ID ${r}`),delete this._registry[e][n]}notify(e,r){this._checkEventName(e),this._registry[e].forEach(n=>n.func(r))}}const ra=new ta;var na=Object.freeze({__proto__:null,notifications:ra});const ia=/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z){1})?)?)?$/i,oa=/^\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i,aa="HH:mm:ss.SSS",zr="YYYY-MM-DD",Wr="T",sa=/(Z|([+-])(\d{2}):(\d{2}))$/;function Jr(t){return ua(t)&&Xr(t)}function ca(t){if(!la(t))return!1;const e=qr(t);return Xr(`2018-09-09T${e}Z`)}function qr(t){return typeof t=="string"?t.split(sa)[0]:t}function ua(t){return typeof t!="string"?!1:ia.test(t)}function la(t){return typeof t!="string"?!1:oa.test(t)}function Xr(t){const e=Date.parse(t);return isFinite(e)}const da="in a few seconds",fa="a few seconds ago",ha="in {0} {1}",pa="{0} {1} ago",ma="s",D={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"}},ga=1e3,ba=6e4,ya=36e5,Ot=864e5;class Yr{constructor(e){if(this.milliseconds=0,typeof e!="number"){this.isValid=!1,console.warn(`The value of milliseconds passed into Duration must be of type number, but we are getting the ${typeof e} value "${e}" instead. `);return}this.isValid=!0,this.milliseconds=e}humanize(e){if(!this.isValid)return"";const r=Ea(this);return r===D.SECONDS?this.milliseconds>0?da:fa:va(e,this.asIn(r),r.name)}asIn(e){switch(e){case D.SECONDS:return Math.round(this.milliseconds/ga);case D.MINUTES:return Math.round(this.milliseconds/ba);case D.HOURS:return Math.round(this.milliseconds/ya);case D.DAYS:return Math.round(this.milliseconds/Ot);case D.MONTHS:return Math.round(Qr(this.milliseconds/Ot));case D.YEARS:default:return Math.round(Qr(this.milliseconds/Ot)/12)}}}v.registerDecorators(Yr,{fields:["milliseconds"]});var Pa=v.registerComponent(Yr,{tmpl:we});function Qr(t){const e=4800/146097;return t*e}function Ea(t){const e=Object.keys(D).find(r=>{const n=D[r];return n===D.YEARS||Math.abs(t.asIn(n))0?ha:pa;return Oa(i,r,n)}function Oa(t,...e){return t.replace(/{(\d+)}/g,(r,n)=>e[n])}const St=["January","February","March","April","May","June","July","August","September","October","November","December"],ee={short:"M/d/yyyy",medium:"MMM d, yyyy",long:"MMMM d, yyyy"},Nt={short:"h:mm a",medium:"h:mm:ss a",long:"h:mm:ss a"},Sa={short:"h:m a",medium:"h:m:s a",long:"h:m:s a"};function Na(t,e){let r=!1,n=t;return typeof t=="string"&&(n=t.split(Wr)[0],r=!0),tn(n,e,r)}function Zr(t,e){return tn(t,e,!0)}function en(t,e){if(!se(t))return new Date("");const r=(t.getHours()+11)%12+1,n=t.getHours()>=12?"PM":"AM";switch(e){case aa:return`${M(t.getHours())}:${M(t.getMinutes())}:${M(t.getSeconds())}.${Ka(t.getMilliseconds())}`;case Nt.short:return`${r}:${M(t.getMinutes())} ${n}`;case Nt.medium:case Nt.long:default:return`${r}:${M(t.getMinutes())}:${M(t.getSeconds())} ${n}`}}function Ca(t){if(!se(t))return new Date("");const e=new Date(t.getTime());return`${Zr(e)}, ${en(Ie(e))}`}function Be(t){let e=null,r=!0;if(ca(t)?e=`2014-03-20T${Ct(t)}`:Jr(t)&&(t.indexOf(Wr)>0?(e=Ct(t),r=!1):e=`${t}T00:00:00.000Z`),e){const n=new Date(e);return r&&Ie(n),n}return null}function Ta(t,e){return e===zr&&Jr(t)?Be(t):Object.values(ee).includes(e)?Ga(t,e):Object.values(Sa).includes(e)?Va(t):null}function Ra(t){return Be(Ct(t))}function _a(t,e,r){const n=$e(t),i=$e(e);return!n||!i?!1:ze(n,r).getTime()ze(i,r).getTime()}function Ia(t,e,r){const n=new Date(t.getTime());r(ka(n))}function $a(t,e,r){const n=new Date(t.getTime());r(Ie(n))}function ja(t){return t}function La(t){return t}function Da(t){return t}function Ma(t){return t}function Ua(){return{format:t=>(console.warn(`The current environment does not support large numbers and the original value of ${t} will be returned.`),t)}}function xa(t){return new Pa(t*60*1e3)}function Fa(t){return t.humanize("en")}function Va(t){const e=t.trim().split(/[:.\s*]/),r=e.length;if(!e||r<2||r>5)return null;const n=e[r-1],i=n.toLowerCase()==="am",o=n.toLowerCase()==="pm";e.splice(-1,1);const a=e.every(g=>!isNaN(g));if(!o&&!i||!a)return null;const s=e[0],u=M(o?s%12+12:s%12),f=r>=3&&e[1]||"0",c=r>=4&&e[2]||"0",d=r===5&&e[3]||"0",h=new Date("2014-03-20");return h.setHours(u,f,c,d),se(h)?h:null}function Ga(t,e){let r=/^([a-zA-Z]{3})\s*(\d{1,2}),\s*(\d{4})$/;switch(e){case ee.short:r=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/;break;case ee.long:r=/^([a-zA-Z]+)\s*(\d{1,2}),\s*(\d{4})$/;break}const n=r.exec(t.trim());if(!n)return null;let i=n[1];const o=n[2],a=n[3];e!==ee.short&&(i=St.findIndex(f=>f.toLowerCase().includes(i.toLowerCase())),i+=1);const s=`${a}-${M(i)}-${M(o)}`,u=new Date(`${s}T00:00:00.000Z`);return se(u)?Ie(u):null}function tn(t,e,r){const n=$e(t);if(!n)return new Date("");switch(r&&se(t)&&Ie(n),e){case zr:return`${n.getFullYear()}-${M(n.getMonth()+1)}-${M(n.getDate())}`;case ee.short:return`${n.getMonth()+1}/${n.getDate()}/${n.getFullYear()}`;case ee.long:return`${St[n.getMonth()]} ${n.getDate()}, ${n.getFullYear()}`;case ee.medium:default:return`${St[n.getMonth()].substring(0,3)} ${n.getDate()}, ${n.getFullYear()}`}}function ze(t,e){switch(e){case"day":t.setHours(0),t.setMinutes(0);case"minute":t.setSeconds(0),t.setMilliseconds(0);break}return t}function se(t){return Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t.getTime())}function Ct(t){return`${qr(t)}Z`}function Ie(t){return t.setMinutes(t.getMinutes()+t.getTimezoneOffset()),t}function ka(t){return t.setMinutes(t.getMinutes()-t.getTimezoneOffset()),t}function $e(t){return t?se(t)?new Date(t.getTime()):isFinite(t)&&(typeof t=="number"||typeof t=="string")?new Date(parseInt(t,10)):typeof t=="string"?Be(t):null:null}function M(t){return Number(t)<10?`0${t}`:t}function Ka(t){return Number(t)<10?`00${t}`:Number(t)<100?`0${t}`:t}var Ha={formatDate:Na,formatDateUTC:Zr,formatTime:en,formatDateTimeUTC:Ca,parseDateTimeISO8601:Be,parseDateTime:Ta,parseDateTimeUTC:Ra,isBefore:_a,isAfter:Aa,UTCToWallTime:Ia,WallTimeToUTC:$a,translateToOtherCalendar:ja,translateFromOtherCalendar:La,translateToLocalizedDigits:Da,translateFromLocalizedDigits:Ma,getNumberFormat:Ua,duration:xa,displayDuration:Fa};function rn(){return Ha}function nn(){return F.default}function on(){return null}function an(){return null}function sn(){return{densitySetting:""}}var Ba={getOneConfig:sn,getIconSvgTemplates:an,getToken:on,getPathPrefix:nn,getLocalizationService:rn},za=Object.freeze({__proto__:null,default:Ba,getOneConfig:sn,getIconSvgTemplates:an,getToken:on,getPathPrefix:nn,getLocalizationService:rn});function Tt(){const t=[],e=()=>t.length===0,r=o=>{typeof o=="function"&&t.push(o)};return{add:(o=[])=>{Array.isArray(o)?o.forEach(a=>r(a)):r(o)},compile:(...o)=>t.length===0?Promise.resolve(!0):t.reduce((a,s)=>a.then(u=>u===!1?Promise.reject():Promise.resolve(s(...o))),Promise.resolve(!0)).then(a=>a!==!1).catch(a=>{if(a instanceof Error)throw a;return!1}),empty:e}}function Wa(t,e={}){window.history.pushState(e,null,t)}function Ja(t,e={}){window.history.replaceState(e,null,t)}function cn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function un(t){for(var e=1;ee[n]):t}function Xa(t,e){return`LWR${t.code}: ${ln(t.message,e)}`}function We(t,e){return un(un({},t),{},{code:`LWR${t.code}`,message:ln(t.message,e)})}function ce(t,e,r){if(!t)throw new Error(Xa(e,r))}const G={INVALID_MIXIN_CMP:{code:4001,message:"{0} must be an Element type",level:U.Error,url:""},MISSING_CONTEXT:{code:4002,message:"Could not find context to perform navigation action.",level:U.Error,url:""},INVALID_CONTEXT:{code:4003,message:"Cannot register navigation context; it must have this shape: { navigate, generateUrl, subscribe }",level:U.Error,url:""},MULTIPLE_ROOTS:{code:4004,message:"Router connection failed. There can only be one root router.",level:U.Error,url:""},MULTIPLE_CHILDREN:{code:4005,message:"Could not add to the navigation hierarchy. There can only be one child per navigation node.",level:U.Error,url:""},MISSING_ROUTE:{code:4006,message:'A route cannot be created to navigate to URL "{0}"',level:U.Error,url:""},MISSING_URL:{code:4007,message:'A URL cannot be created to navigate to route "{0}"',level:U.Error,url:""},PRENAV_FAILED:{code:4008,message:'A preNavigate hook listener blocked routing to "{0}"',level:U.Warning,url:""},MISSING_PATH:{code:4009,message:'A route definition must contain a "path" property.',level:U.Error,url:""},MISSING_ROUTE_CMP:{code:4016,message:"Expected a route view component with a default export.",level:U.Error,url:""},MISSING_DATA_CONTEXT:{code:4018,message:"Could not find context to retrieve navigation data.",level:U.Error,url:""}};function Ya(){let t=[],e=null,r=[];const n=f=>r.push(f),i=f=>{r[f]=null},o=(...f)=>{r.filter(c=>c!==null).forEach(c=>c.next&&c.next(...f)),t=f,e=null},a=f=>{r.filter(c=>c!==null).forEach(c=>c.error&&c.error(f)),t=[],e=f};return{next:o,error:a,complete:()=>{r.filter(f=>f!==null).forEach(f=>f.complete&&f.complete()),r=[],t=[],e=null},subscribe:(f,c=!0)=>{n(f),f.next&&t.length&&c&&f.next(...t),e&&a(e);const d=r.length-1;return{unsubscribe:()=>i(d)}}}}function Rt(t=""){if(t=t||"",t.indexOf("://")<0){const i=window.location.port?`:${window.location.port}`:"",o=`${window.location.protocol}//${window.location.hostname}${i}`,a=t.charAt(0)==="/"?"":"/";t=o+a+t}const e={},r=document.createElement("a");r.href=t;const n=r.search.substring(1);return n&&n.split("&").forEach(i=>{const[o,a=""]=i.split("=");e[At(o)]=At(a)}),{href:r.href,origin:`${r.protocol}//${r.hostname}${r.port?`:${r.port}`:""}`,pathname:r.pathname.replace(/(\/)?/,"/"),searchParams:e}}function _t(t){const e=Rt(t),r=e.href.replace(/:\d+/,""),n=e.origin.replace(/:\d+/,"");return r.replace(n,"")}function dn(t){const e=Rt(t).pathname;return e==="/"?"/":e.replace(/\/$/,"")}function Qa(t){return Rt(t).searchParams}function Za(t={}){const e=Object.keys(t);return e.length?`?${e.map(r=>t[r]?`${r}=${es(t[r])}`:r).join("&")}`:""}function es(t=""){return t=t||"",encodeURIComponent(t)}function At(t=""){return t=t||"",decodeURIComponent(t)}function ue(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function je(t){if(ue(t))try{Object.freeze(t),Object.keys(t).forEach(e=>typeof t[e]=="object"&&Object.freeze(t[e]))}catch(e){}return t}function fn(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}const ts="standard__simpleRoute";function Je(t){return hn(t)&&ue(t.attributes)&&Object.keys(t.attributes).length===1&&Object.prototype.hasOwnProperty.call(t.attributes,"path")}function hn(t){return ue(t)&&(Object.prototype.hasOwnProperty.call(t,"id")||Object.prototype.hasOwnProperty.call(t,"type"))}function rs(t={},e=[]){const{id:r,type:n,attributes:i={}}=t;if(r)return e.find(({params:o=[],original:{id:a}})=>a===r&&o.every(s=>s.modifier==="?"||Object.prototype.hasOwnProperty.call(i,s.name)))||null;if(n){const o=e.filter(({params:a=[],original:{page:{type:s,attributes:u={}}={}}})=>s===n&&a.every(f=>f.modifier==="?"||Object.prototype.hasOwnProperty.call(i,f.name))&&Object.keys(u).every(f=>u[f]===i[f]));return o.length>0?o[0]:null}return null}function ns(t,e){const r={};if(t&&e){let n=e.regex.exec(t);n&&(n=n.slice(1),e.params.forEach((o,a)=>{n[a]&&(r[o.name]=At(n[a]))})),e.original.page&&ue(e.original.page.attributes)&&Object.assign(r,e.original.page.attributes)}return r}function pn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function It(t){for(var e=1;ea.matchesPath(r))||null;let o;if(!i)o={route:{type:ts,attributes:{path:r},state:It({},n)},data:null};else{const a=ns(r,i),s=i.original;o={route:{id:s.id,attributes:It({},a),state:It({},n)},data:s},s.page&&s.page.type&&(o.route.type=s.page.type)}return o}const mn=new WeakMap;function qe(t){const e=mn.get(t);return ce(e&&e.value,G.MISSING_CONTEXT),e.value}function gn(t){return ce(t===void 0||ue(t)&&typeof t.navigate=="function"&&typeof t.generateUrl=="function"&&typeof t.subscribe=="function"&&Object.keys(t).length===3,G.INVALID_CONTEXT),t}function us(t,e){const r={id:Object.freeze(()=>{}),value:gn(t),data:e||[],update:n=>{r.value=gn(n)}};return mn.set(r.id,r),r}function $t(t,e,r,n){const i=us(t,r);return n&&n(e,{consumerConnectedCallback(o){o.provide(i.id)}}),i.id}class te{constructor(e){this._callback=void 0,this._callback=e}update(e,r){r&&this._callback(r)}connect(){}disconnect(){}}te.contextSchema={value:"required"},v.registerDecorators(te,{fields:["_callback"]});const ls=v.createContextProvider(te),ds=`universalcontainernavigationevent${fn()}`,jt=`universalcontainerparentevent${fn()}`;class le{constructor(e=window){this.node=window,this.parent=null,this.child=null,Object.assign(this,{node:e})}get context(){return this}_fallback(e,r,...n){return e?(...i)=>e(...i,...n):r}connectToParent(){this.node.dispatchEvent(new CustomEvent(jt,{bubbles:!0,composed:!0,detail:e=>{this.parent=e,e.addChild(this)}}))}addChild(e){setTimeout(()=>{ce(!this.child,G.MULTIPLE_CHILDREN),this.child=e},0)}connect(){this.connectToParent(),this.handleParentEvent=this._handleParentEvent.bind(this),this.handleNavEvent=this._handleEvent.bind(this),this.node.addEventListener(jt,this.handleParentEvent),this.node.addEventListener(le.navigationEvent,this.handleNavEvent)}disconnect(){this.node.removeEventListener(jt,this.handleParentEvent),this.node.removeEventListener(le.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:r,options:n,input:i}=e.detail;this.handleEvent(i,n)?this.isRoot&&this.process(r,n):e.stopPropagation()}handleEvent(){return!0}process(){return!0}}le.navigationEvent=ds,v.registerDecorators(le,{fields:["node","parent","child"]});var bn=v.registerComponent(le,{tmpl:we});function yn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function fs(t){for(var e=1;e{const i=fs({},n);delete i.id,this._callback(i)}))}connect(){}disconnect(){this._subscription&&(this._subscription.unsubscribe(),this._subscription=void 0)}}Xe.contextSchema={value:"required"},v.registerDecorators(Xe,{fields:["_callback","_subscription"]});const ps=v.createContextProvider(Xe);function ms(t){for(var e=[],r=0;r=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){i+=t[o++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));e.push({type:"NAME",index:r,value:i}),r=o;continue}if(n==="("){var s=1,u="",o=r+1;if(t[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o)?(?!\?)/g,n=0,i=r.exec(t.source);i;)e.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(t.source);return t}function Ps(t,e,r){var n=t.map(function(i){return En(i,e,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Lt(r))}function Es(t,e,r){return vs(Pn(t,r),e,r)}function vs(t,e,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,o=r.start,a=o===void 0?!0:o,s=r.end,u=s===void 0?!0:s,f=r.encode,c=f===void 0?function(ie){return ie}:f,d=r.delimiter,h=d===void 0?"/#?":d,g=r.endsWith,E=g===void 0?"":g,b="[".concat(de(E),"]|$"),m="[".concat(de(h),"]"),y=a?"^":"",R=0,$=t;R<$.length;R++){var P=$[R];if(typeof P=="string")y+=de(c(P));else{var _=de(c(P.prefix)),S=de(c(P.suffix));if(P.pattern)if(e&&e.push(P),_||S)if(P.modifier==="+"||P.modifier==="*"){var N=P.modifier==="*"?"?":"";y+="(?:".concat(_,"((?:").concat(P.pattern,")(?:").concat(S).concat(_,"(?:").concat(P.pattern,"))*)").concat(S,")").concat(N)}else y+="(?:".concat(_,"(").concat(P.pattern,")").concat(S,")").concat(P.modifier);else P.modifier==="+"||P.modifier==="*"?y+="((?:".concat(P.pattern,")").concat(P.modifier,")"):y+="(".concat(P.pattern,")").concat(P.modifier);else y+="(?:".concat(_).concat(S,")").concat(P.modifier)}}if(u)i||(y+="".concat(m,"?")),y+=r.endsWith?"(?=".concat(b,")"):"$";else{var I=t[t.length-1],x=typeof I=="string"?m.indexOf(I[I.length-1])>-1:I===void 0;i||(y+="(?:".concat(m,"(?=").concat(b,"))?")),x||(y+="(?=".concat(m,"|").concat(b,")"))}return new RegExp(y,Lt(r))}function En(t,e,r){return t instanceof RegExp?ys(t,e):Array.isArray(t)?Ps(t,e,r):Es(t,e,r)}var vn={compile:gs,pathToRegexp:En};class wn extends bn{constructor(e={},r=window){super(r);this.basePath="",this.routes=[],this.caseSensitive=!1,this.pathMatch="",this.infoMatch=null,this.currentUrl=null,this.routeObservable=Ya(),this.preFilters=Tt(),this.postFilters=Tt(),this.errorFilters=Tt(),this.basePath=e.basePath||"",this.caseSensitive=e.caseSensitive===!0,this.parseRouteDefinitions(e.routes||[]),this.getRouteFromUrl=this._fallback(e.getRouteFromUrl,this.defaultGetRouteFromUrl,this.defaultGetRouteFromUrl.bind(this)),this.getUrlFromRoute=this._fallback(e.getUrlFromRoute,this.defaultGetUrlFromRoute,this.defaultGetUrlFromRoute.bind(this)),this.handleEvent=this._fallback(e.handleNavigation,()=>!0,this.getRouteFromUrl.bind(this))}parseRouteDefinitions(e){this.routes=e.map(r=>{ce(r.path,G.MISSING_PATH);const n=[],i=vn.pathToRegexp(r.path,n,{sensitive:this.caseSensitive,end:r.exact!==!1}),o=vn.compile(r.path,{encode:encodeURIComponent}),a=r.matchesPath||(s=>i.test(s));return{original:r,regex:i,params:n,toPath:o,matchesPath:a}})}connect(){super.connect();const e={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=$t(e,this.node,r,ls),$t(e,this.node,r,ps)}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){e=_t(e);const r=e.indexOf(this.prefix)===0,n=cs(r?e.replace(this.prefix,""):e,r?this.routes:[]),{route:i}=n;return r&&Je(i)&&(i.attributes.path=`${this.prefix}${i.attributes.path}`),{route:i,data:n.data}}defaultGetUrlFromRoute(e){const r=Je(e)?"":this.prefix,n=os(e,this.routes);return{url:n.url?`${r}${n.url}`:null,data:n.data}}async addChild(e){super.addChild(e),this.currentUrl&&await e.preProcess(this.currentUrl)&&e.process(this.currentUrl)}async process(e,r){const n=je(this.getRouteFromUrl(e)),i=je(n.route),o=!this.isRoot||await this.preProcess(e,n);return o.message?(this.processError(o),!1):(await this.postFilters.compile({previous:this.infoMatch,current:n}),this.infoMatch=n,this.currentUrl=e,this.routeObservable.next(i,je(n.data)),this.child&&this.child.process(e,r),!0)}preProcess(e,r=je(this.getRouteFromUrl(e))){const n=je(r.route);return n===null?Promise.resolve(We(G.MISSING_ROUTE,[e])):(this.pathMatch=Je(n)?this.parent?this.parent.pathMatch:"":dn(this.getUrlFromRoute(n).url||""),(this.preFilters.empty()?Promise.resolve(!0):this.preFilters.compile({current:this.infoMatch,next:r})).then(o=>o&&this.child?this.child.preProcess(e):o).then(o=>o||We(G.PRENAV_FAILED,[e])))}processError(e){this.errorFilters.compile(e),this.child&&this.child.processError(e)}navigate(e,r){const n=typeof e=="string"?e:this.getUrlFromRoute(e).url;if(n===null){this.root.processError(We(G.MISSING_URL,[e.id||e.type]));return}this.node.dispatchEvent(new CustomEvent(bn.navigationEvent,{bubbles:!0,composed:!0,detail:{url:n,options:r,input:e}}))}generateUrl(e){const r=this.getUrlFromRoute(e);return Promise.resolve(r.url||"")}subscribe(e,r){return this.routeObservable.subscribe({next:(n,i)=>e(n,i)},r)}}v.registerDecorators(wn,{fields:["basePath","routes","caseSensitive","pathMatch","infoMatch","currentUrl","routeObservable","preFilters","postFilters","errorFilters"]});var On=v.registerComponent(wn,{tmpl:we});class ws extends On{connect(){super.connect(),window.addEventListener("popstate",()=>{this.catchBrowserUpdate(_t(document.location.href))}),this.catchBrowserUpdate(_t(document.location.href))}async process(e,r,n=!0){const i=await super.process(e,r);if(i&&n){const o=e.indexOf(this.basePath)===0?e:`${this.basePath}${e}`;r?Ja(o):Wa(o)}return i}catchBrowserUpdate(e){const r=this.basePath&&e.indexOf(this.basePath)!==0;this.process(`${r?this.basePath:""}${e}`,r,r)}}var Os=v.registerComponent(ws,{tmpl:we});let Dt=!1;function Ss(t,e={}){const r=e.noHistory===!0?new On(e,t):new Os(e,t),n={addPreNavigate:i=>(r.addPreNavigate(i),n),addPostNavigate:i=>(r.addPostNavigate(i),n),addErrorNavigate:i=>(r.addErrorNavigate(i),n),connect:()=>{r.connect(),ce(!Dt||!!r.parent,G.MULTIPLE_ROOTS),Dt=Dt||!r.parent,n.id=r.contextId},disconnect:()=>{r.disconnect()}};return n}function Sn(t={}){return Ss(window,t)}function re(t,e,r){qe(t).navigate(e,r)}function fe(t,e){return qe(t).generateUrl(e)}function Nn(t,e,r=!0){return qe(t).subscribe(e,r)}var Ns=Object.freeze({__proto__:null,navigate:re,generateUrl:fe,subscribe:Nn,NavigationContext:te,provideContext:$t,createRouter:Sn});const Cn="sf-aria-live",Tn="tabindex";function Cs(t){if(t.current){let e=document.body.querySelector(`#${Cn}`);e||(e=document.createElement("span"),e.id=Cn,e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),e.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(e)),e.innerText=t.current.data.label}}function Ts(t){t.current&&(document.title=t.current.data.label)}function Rs(t){const e=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>n.matches("webruntime-router-container")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),r=t?document.body:e.nextNode();r&&(r.setAttribute(Tn,"-1"),r.focus({preventScroll:!0}),r.removeAttribute(Tn))}class he{constructor(){this.overrides=[]}add(e){this.overrides.push(e)}run(...e){return this.overrides.length===0?Promise.resolve(!0):this.overrides.reduce((r,n)=>r.then(i=>i===!1?Promise.resolve(!1):Promise.resolve(n(...e))),Promise.resolve(!0)).then(r=>Promise.resolve(r))}runSync(...e){return this.overrides.length===0?!0:this.overrides.reduce((r,n)=>r===!0?n(...e):!1,!0)}}v.registerDecorators(he,{fields:["overrides"]});const Mt=new he,Rn=new he,_n=new he,Ut=new he;var _s=Object.freeze({__proto__:null,Overrides:he,PreNavigateOverrides:Mt,NavigationOverrides:Rn,SessionTimeoutOverrides:_n,PageNavigationFailureOverrides:Ut});const Ye={};function An(t){const{pathname:e,search:r,hash:n}=new URL(t,window.location.origin);return{pathname:e,search:r,hash:n}}async function As(t){const{pathname:e,search:r,hash:n}=An(t);if(Ye[e])return Ye[e]+r+n;if(Object.values(Ye).includes(e))return t;try{const{redirected:i,url:o}=await Ne(t,{basePath:"",method:"HEAD",isNonApiRequest:!0});if(i){const a=An(o).pathname;return Ye[e]=a,a+r+n}}catch(i){Ae(`Unable to fetch canonical URL for ${t}`,`error: `,i)}return null}async function Is(t,{route:e,data:r}){if(!r.hasVanityURL)return;const n=await fe(t.id,e),i=await As(n);i&&i!==n&&re(t.id,i,!0)}function $s(t){t.addPostNavigate(function({previous:r,current:n}){!r||Is(t,n)})}const In="redirectPageContext";function $n(t){return t?.state?.[In]||null}function js(t,e,{current:r,next:{route:n}={}}={}){return $n(n)?(r?window.location.assign(jn(n)):re(t,e,!0),!0):!1}function jn(t){if(!t)return null;const e=$n(t)||window.btoa(window.encodeURIComponent(JSON.stringify(t)));return`${F.default}/?${In}=${e}`}const Ls=[{type:"standard__recordPage",params:[{name:"recordName",type:"state",value:"detail"},{name:"categoryPath",type:"state",value:"detail"}],match:({attributes:t={}},{name:e})=>t.objectApiName==="ProductCategory"?e==="categoryPath":e!=="categoryPath"},{type:"standard__objectPage",params:[{name:"filterName",type:"state",value:"Default"}]},{type:"standard__search",params:[{name:"term",type:"state",value:" "}]}];function Ln(t){return Ls.find(e=>t.type===e.type)}function Dn(t={},e={},r=!1,n="attributes"){const{match:i,params:o}=e;return o.forEach(a=>{if(i&&!i(t,a))return;const{type:s,name:u,value:f}=a;let c=s,d=c==="state"?"attributes":"state";r&&([c,d]=[d,c]),c===n&&t[c]&&t[c][u]&&t[d]?delete t[d][u]:t=Wi(t,c,d,u,f)}),t}function Ds(t){const{type:e}=t,r=Ln(t);return r?Dn(t,r,!0):e==="standard__managedContentPage"?Fs(t):t}function Ms(t){const e=Ln(t);return e?Dn(t,e):t}function Us(t,e,r){if(e.attributes.recordId)return e;const n=r.patterns[0],i=t.match(n);if(i){const[,o,,a]=i;e.attributes.recordId=a;try{e.attributes.categoryPath=decodeURIComponent(o)}catch(s){e.attributes.categoryPath=o}}return e}function xs(t,e){if(t.attributes.categoryPath.includes("/")){let[r,n]=e.split("?");return r=r.replace(/%2F/g,"/"),n=n?`?${n}`:"",r+n}return e}function Fs(t){return t.attributes&&t.attributes.contentKey&&(t.attributes.urlAlias=t.attributes.contentKey,delete t.attributes.contentKey),t}function Mn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Un(t){for(var e=1;et.isDefault),xn=ht.default.every(t=>t.isPublic!==!1),Gs={basePath:F.default,caseSensitive:!0,routes:Bi(ht.default),handleNavigation:ks,getRouteFromUrl:Ks,getUrlFromRoute:Hs},pe=Sn(Gs).addPreNavigate(Mt.run.bind(Mt)).addPreNavigate(Bs).addPreNavigate(zs).addPreNavigate(Mr).addPostNavigate(Ts).addPostNavigate(Cs).addErrorNavigate(Ws);$s(pe),pe.connect(),window.performance.measure(xt,xt);function ks(t,e,r){if(!Rn.runSync(t))return!1;if(vr(t)){const{type:n,attributes:{url:i}={url:null}}=t;if(n==="standard__webPage"){if(Fn(i))return window.open(i),!1;const o=r(i).data;if(xn&&(!o||o.isDefault))return window.location.assign(Vn(i)),!1}}return!0}function Ks(t,e){let{route:r,data:n}=e(t);const{type:i,attributes:o={}}=r;return i==="standard__simpleRoute"&&ne?(n=ne,r=Object.assign({state:{}},{id:ne.id},ne.page)):i==="standard__recordPage"&&o.objectApiName==="ProductCategory"&&(r=Us(t,r,n)),r=Ms(r),{route:r,data:n}}function Hs(t={},e){const{type:r,attributes:n={}}=t;if(r==="standard__webPage"){const a=n.url;return{url:a?Vn(a):null,data:null}}t=Ds(t);const i=e(t);let{url:o}=i;return r==="standard__recordPage"&&n.objectApiName==="ProductCategory"&&(o=xs(t,o)),!o&&xn&&(o=jn(t)),Un(Un({},i),{},{url:o})}async function Bs({next:{route:t,data:e}={}}={}){if(e&&e.isPublic!==!1)return!0;const{default:r}=await Y.load("@app/user/v/1");if(r.isGuest){const n=await Gn(t);return n&&(window.location.href=`${n}`),!1}return!0}function zs(t){return!js(pe.id,ne,t)}async function Ws({code:t,message:e,url:r}){if(Ae(`Routing error: (${t}) ${e} ${r}`),t!==We(G.PRENAV_FAILED).code){if(ne.isPublic===!1){const{default:n}=await Y.load("@app/user/v/1");if(n.isGuest)return}Ft(ne)}}function Fn(t){return new RegExp("^([a-z]+://|//)","i").test(t)}function Vn(t){return Fn(t)?t:F.default&&t!==F.default&&t.indexOf(`${F.default}/`)!==0?`${F.default}${t}`:t}function Ft(t,e){re(pe.id,t,e)}function Gn(t){return fe(pe.id,t)}function Qe(t,e=!0){return Nn(pe.id,t,e)}var Js=Object.freeze({__proto__:null,navigate:Ft,generateUrl:Gn,subscribe:Qe});function qs(){return window.matchMedia("only screen and (min-width: 48em) and (max-width: 64em)").matches}function Xs(){return window.matchMedia("only screen and (max-width: 47.9375em)").matches}function Ys(){return qs()?"Medium":Xs()?"Small":"Large"}function kn(t){return t===void 0}const Qs="ValueChangedEvent";class Kn{constructor(e){this.type=Qs,this.value=e}}const{freeze:Hn,defineProperty:Zs,isExtensible:ec}=Object,tc="$$DeprecatedWiredElementHostKey$$",rc="$$DeprecatedWiredParamsMetaKey$$";function nc(t,e){if(t==null||!ec(t))throw new TypeError("adapter id must be extensible");if(typeof e!="function")throw new TypeError("adapter factory must be a callable");if("adapter"in t)throw new TypeError("adapter id is already associated to an adapter factory");const r=class extends lc{constructor(n){super(n);e(this.eventTarget)}};Hn(r),Hn(r.prototype),Zs(t,"adapter",{writable:!1,configurable:!1,value:r})}function ic(){}const{forEach:Vt,splice:oc,indexOf:ac}=Array.prototype,Bn="connect",zn="disconnect",Wn="config";function Gt(t,e){const r=ac.call(t,e);r>-1&&oc.call(t,r,1)}function sc(t){return Object.keys(t).length===0}function cc(t,e){return e.length===0||e.some(r=>!kn(t[r]))}function uc(t,e,r){return r.some(n=>t[n]!==e[n])}class lc{constructor(e){this.connecting=[],this.disconnecting=[],this.configuring=[],this.isFirstUpdate=!0,this.callback=e,this.wiredElementHost=e[tc],this.dynamicParamsNames=e[rc],this.eventTarget={addEventListener:(r,n)=>{switch(r){case Bn:{this.connecting.push(n);break}case zn:{this.disconnecting.push(n);break}case Wn:{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 Bn:{Gt(this.connecting,n);break}case zn:{Gt(this.disconnecting,n);break}case Wn:{Gt(this.configuring,n);break}default:throw new Error(`Invalid event type ${r}.`)}},dispatchEvent:r=>{if(r instanceof Kn){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(e){this.isFirstUpdate&&(this.isFirstUpdate=!1,!sc(e)&&!cc(e,this.dynamicParamsNames))||(kn(this.currentConfig)||uc(e,this.currentConfig,this.dynamicParamsNames))&&(this.currentConfig=e,Vt.call(this.configuring,r=>{r.call(void 0,e)}))}connect(){Vt.call(this.connecting,e=>e.call(void 0))}disconnect(){Vt.call(this.disconnecting,e=>e.call(void 0))}}var dc=Object.freeze({__proto__:null,ValueChangedEvent:Kn,register:nc,registerWireService:ic});const l="/services/data/v56.0",fc={"CommerceCatalogController.getProductCategoryPath":{urlPath:l+"/commerce/webstores/${webstoreId}/product-category-path/product-categories/${productCategoryId}",urlPathParamNames:["productCategoryId","webstoreId"],method:"GET"},"CommerceCatalogController.getProducts":{urlPath:l+"/commerce/webstores/${webstoreId}/products",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceCatalogController.getProduct":{urlPath:l+"/commerce/webstores/${webstoreId}/products/${productId}",urlPathParamNames:["productId","webstoreId"],method:"GET"},"HSRCommerceCatalogController.getProductCategoryPathHSR":{urlPath:l+"/commerce/webstores/${webstoreId}/versions/${versionId}/product-categories/${productCategoryId}/product-category-path",urlPathParamNames:["productCategoryId","versionId","webstoreId"],method:"GET"},"HSRCommerceCatalogController.getProductHSR":{urlPath:l+"/commerce/webstores/${webstoreId}/versions/${versionId}/products/${productId}",urlPathParamNames:["productId","versionId","webstoreId"],method:"GET"},"CommerceStorePricingController.getProductPrices":{urlPath:l+"/commerce/webstores/${webstoreId}/pricing/products",urlPathParamNames:["webstoreId"],method:"GET"},"CommerceStorePricingController.getProductPrice":{urlPath:l+"/commerce/webstores/${webstoreId}/pricing/products/${productId}",urlPathParamNames:["productId","webstoreId"],method:"GET"},"CommunitiesController.getCommunity":{urlPath:l+"/connect/communities/${communityId}",urlPathParamNames:["communityId"],method:"GET"},"CommunitiesController.ingestRecord":{urlPath:l+"/connect/communities/${communityId}/microbatching",urlPathParamNames:["communityId"],inputRepresentation:"requestIngestionInput",method:"POST"},"MissionsController.purgeUserMissionsActivities":{urlPath:l+"/connect/communities/${communityId}/missions/activities/purge-job",urlPathParamNames:["communityId"],method:"POST"},"CommerceSearchController.searchProducts":{urlPath:l+"/commerce/webstores/${webstoreId}/search/product-search",urlPathParamNames:["webstoreId"],inputRepresentation:"productSearchInput",method:"POST"},"NavigationMenuController.getCommunityNavigationMenu":{urlPath:l+"/connect/communities/${communityId}/navigation-menu/navigation-menu-items",urlPathParamNames:["communityId"],method:"GET"},"MarketingIntegrationController.getForm":{urlPath:l+"/sites/${siteId}/marketing-integration/forms/${formId}",urlPathParamNames:["formId","siteId"],method:"GET"},"MarketingIntegrationController.saveForm":{urlPath:l+"/sites/${siteId}/marketing-integration/forms",urlPathParamNames:["siteId"],inputRepresentation:"formInput",method:"POST"},"MarketingIntegrationController.submitForm":{urlPath:l+"/sites/${siteId}/marketing-integration/forms/${formId}/data",urlPathParamNames:["formId","siteId"],inputRepresentation:"formSubmissionInput",method:"POST"},"SeoPropertiesController.getRecordSeoProperties":{urlPath:l+"/connect/communities/${communityId}/seo/properties/${recordId}",urlPathParamNames:["communityId","recordId"],method:"GET"},"FlowBuilderController.getRules":{urlPath:l+"/connect/interaction/builder/rules",urlPathParamNames:[],method:"GET"},"OrchestrationController.getOrchestrationInstanceCollection":{urlPath:l+"/connect/interaction/orchestration/instances",urlPathParamNames:[],method:"GET"},"FlowRuntimeConnectController.navigateFlow":{urlPath:l+"/connect/interaction/runtime/navigateFlow",urlPathParamNames:[],inputRepresentation:"request",method:"POST"},"FlowRuntimeConnectController.resumeFlow":{urlPath:l+"/connect/interaction/runtime/resumeFlow",urlPathParamNames:[],method:"POST"},"FlowRuntimeConnectController.startFlow":{urlPath:l+"/connect/interaction/runtime/startFlow",urlPathParamNames:[],method:"POST"},"ExperienceModelTypeSystemController.getBlockTypes":{urlPath:l+"/connect/experience-model/block-types",urlPathParamNames:[],method:"GET"},"ExperienceModelTypeSystemController.getBlockType":{urlPath:l+"/connect/experience-model/block-types/${fullyQualifiedName}",urlPathParamNames:["fullyQualifiedName"],method:"GET"},"ManagedContentController.getCollectionItems":{urlPath:l+"/connect/cms/collections/${collectionKeyOrId}",urlPathParamNames:["collectionKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentByTopicsAndContentKeys":{urlPath:l+"/connect/communities/${communityId}/managed-content/delivery",urlPathParamNames:["communityId"],method:"GET"},"ManagedContentController.getPublishedManagedContentListByContentKey":{urlPath:l+"/connect/communities/${communityId}/managed-content/delivery/contents",urlPathParamNames:["communityId"],method:"GET"},"ManagedContentController.createDeployment":{urlPath:l+"/cms/deployments",urlPathParamNames:[],inputRepresentation:"DeploymentInput",method:"POST"},"ManagedContentController.createManagedContent":{urlPath:l+"/connect/cms/contents",urlPathParamNames:[],inputRepresentation:"ManagedContentInputParam",method:"POST"},"ManagedContentController.createManagedContentWithMedia":{urlPath:l+"/connect/cms/contents",urlPathParamNames:[],inputRepresentation:"ManagedContentInputParam",method:"POST"},"ManagedContentController.getManagedContent":{urlPath:l+"/connect/cms/contents/${contentKeyOrId}",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentOrchestrationDefinitions":{urlPath:l+"/connect/cms/contents/orchestration-definitions",urlPathParamNames:[],method:"GET"},"ManagedContentController.getManagedContentOrchestrationInstances":{urlPath:l+"/connect/cms/contents/orchestration-instances",urlPathParamNames:[],method:"GET"},"ManagedContentController.createManagedContentOrchestrationInstance":{urlPath:l+"/connect/cms/contents/orchestration-instances",urlPathParamNames:[],inputRepresentation:"mContentOrchInstanceInput",method:"POST"},"ManagedContentController.getManagedContentPreviews":{urlPath:l+"/cms/spaces/${contentSpaceId}/preview-endpoints",urlPathParamNames:["contentSpaceId"],method:"GET"},"ManagedContentController.publish":{urlPath:l+"/connect/cms/contents/publish",urlPathParamNames:[],inputRepresentation:"publishInput",method:"POST"},"ManagedContentController.getManagedContentReferencedBy":{urlPath:l+"/connect/cms/contents/${contentKeyOrId}/referenced-by",urlPathParamNames:["contentKeyOrId"],method:"GET"},"ManagedContentController.getManagedContentRunningOrchestrationHistory":{urlPath:l+"/connect/cms/contents/orchestration-history-events",urlPathParamNames:[],method:"GET"},"ManagedContentController.searchManagedContentSpaceForVariant":{urlPath:l+"/connect/cms/contents/search",urlPathParamNames:[],method:"GET"},"ManagedContentController.getManagedContentSpaces":{urlPath:l+"/connect/cms/spaces",urlPathParamNames:[],method:"GET"},"ManagedContentController.getManagedContentSpaceFolderItems":{urlPath:l+"/connect/cms/folders/${folderId}/items",urlPathParamNames:["folderId"],method:"GET"},"ManagedContentController.createTranslationJob":{urlPath:l+"/connect/managed-content/translation",urlPathParamNames:[],inputRepresentation:"translationRequest",method:"POST"},"ManagedContentController.createTranslationV2Job":{urlPath:l+"/connect/cms/content/spaces/${contentSpaceId}/translation",urlPathParamNames:["contentSpaceId"],inputRepresentation:"translationV2Request",method:"POST"},"ManagedContentController.unpublish":{urlPath:l+"/connect/cms/contents/unpublish",urlPathParamNames:[],inputRepresentation:"unpublishInput",method:"POST"},"ManagedContentController.deleteManagedContentVariant":{urlPath:l+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],method:"DELETE"},"ManagedContentController.getManagedContentVariant":{urlPath:l+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],method:"GET"},"ManagedContentController.replaceManagedContentVariant":{urlPath:l+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],inputRepresentation:"ManagedContentVariantInputParam",method:"PUT"},"ManagedContentController.replaceManagedContentVariantWithMedia":{urlPath:l+"/connect/cms/contents/variants/${variantId}",urlPathParamNames:["variantId"],inputRepresentation:"ManagedContentVariantInputParam",method:"PUT"},"ManagedContentDeliveryController.getCollectionItemsForChannel":{urlPath:l+"/connect/cms/delivery/channels/${channelId}/collections/${collectionKeyOrId}",urlPathParamNames:["channelId","collectionKeyOrId"],method:"GET"},"ManagedContentDeliveryController.getCollectionItemsForSite":{urlPath:l+"/connect/sites/${siteId}/cms/delivery/collections/${collectionKeyOrId}",urlPathParamNames:["collectionKeyOrId","siteId"],method:"GET"},"ManagedContentDeliveryController.getCollectionMetadataForChannel":{urlPath:l+"/connect/cms/delivery/channels/${channelId}/collections/${collectionKeyOrId}/metadata",urlPathParamNames:["channelId","collectionKeyOrId"],method:"GET"},"ManagedContentDeliveryController.getCollectionMetadataForSite":{urlPath:l+"/connect/sites/${siteId}/cms/delivery/collections/${collectionKeyOrId}/metadata",urlPathParamNames:["collectionKeyOrId","siteId"],method:"GET"},"ManagedContentTypeController.getContentTypeSchema":{urlPath:l+"/connect/cms/content-types/${contentTypeFQN}",urlPathParamNames:["contentTypeFQN"],method:"GET"},"SitesController.getMobilePublisherNavigationTabBar":{urlPath:l+"/connect/sites/${siteId}/mobile-publisher/navigation-tab-bar",urlPathParamNames:["siteId"],method:"GET"},"SitesController.searchSite":{urlPath:l+"/connect/sites/${siteId}/search",urlPathParamNames:["siteId"],method:"GET"},"ActionsController.getGlobalActions":{urlPath:l+"/ui-api/actions/global",urlPathParamNames:[],method:"GET"},"ActionsController.getActionLayout":{urlPath:l+"/ui-api/actions/layout/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getListViewActions":{urlPath:l+"/ui-api/actions/list-view/${listViewIds}",urlPathParamNames:["listViewIds"],method:"GET"},"ActionsController.getLookupActions":{urlPath:l+"/ui-api/actions/lookup/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"ActionsController.getMRUListActions":{urlPath:l+"/ui-api/actions/mru-list/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"ActionsController.getObjectCreateActions":{urlPath:l+"/ui-api/actions/object/${objectApiName}/record-create",urlPathParamNames:["objectApiName"],method:"GET"},"ActionsController.getActionOverrides":{urlPath:l+"/ui-api/actions/overrides/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ActionsController.getQuickActionDefaults":{urlPath:l+"/ui-api/actions/record-defaults/${actionApiName}",urlPathParamNames:["actionApiName"],method:"GET"},"ActionsController.getRecordEditActions":{urlPath:l+"/ui-api/actions/record/${recordIds}/record-edit",urlPathParamNames:["recordIds"],method:"GET"},"ActionsController.getRecordActions":{urlPath:l+"/ui-api/actions/record/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"ActionsController.getRelatedListsActions":{urlPath:l+"/ui-api/actions/record/${recordIds}/related-list/batch/${relatedListIds}",urlPathParamNames:["recordIds","relatedListIds"],method:"GET"},"ActionsController.getRelatedListRecordActions":{urlPath:l+"/ui-api/actions/record/${recordIds}/related-list-record/${relatedListRecordIds}",urlPathParamNames:["recordIds","relatedListRecordIds"],method:"GET"},"ActionsController.getRelatedListActions":{urlPath:l+"/ui-api/actions/record/${recordIds}/related-list/${relatedListId}",urlPathParamNames:["recordIds","relatedListId"],method:"GET"},"AppsController.getNavItems":{urlPath:l+"/ui-api/nav-items",urlPathParamNames:[],method:"GET"},"ListUiController.getListsByObjectName":{urlPath:l+"/ui-api/list-ui/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"ListUiController.getListInfosById":{urlPath:l+"/ui-api/list-info/batch",urlPathParamNames:[],method:"GET"},"ListUiController.getListInfosByName":{urlPath:l+"/ui-api/list-info/batch",urlPathParamNames:[],method:"GET"},"ListUiController.getListInfoById":{urlPath:l+"/ui-api/list-info/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListInfoByName":{urlPath:l+"/ui-api/list-info/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.getListRecordsById":{urlPath:l+"/ui-api/list-records/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListRecordsByName":{urlPath:l+"/ui-api/list-records/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"ListUiController.getListUiById":{urlPath:l+"/ui-api/list-ui/${listViewId}",urlPathParamNames:["listViewId"],method:"GET"},"ListUiController.getListUiByName":{urlPath:l+"/ui-api/list-ui/${objectApiName}/${listViewApiName}",urlPathParamNames:["listViewApiName","objectApiName"],method:"GET"},"MruListUiController.getMruListInfo":{urlPath:l+"/ui-api/mru-list-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"MruListUiController.getMruListRecords":{urlPath:l+"/ui-api/mru-list-records/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"MruListUiController.getMruListUi":{urlPath:l+"/ui-api/mru-list-ui/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getAggregateUi":{urlPath:l+"/ui-api/aggregate-ui",urlPathParamNames:[],method:"GET"},"RecordUiController.executeAggregateUi":{urlPath:l+"/ui-api/aggregate-ui",urlPathParamNames:[],inputRepresentation:"input",method:"POST"},"RecordUiController.getRecordsWithFields":{urlPath:l+"/ui-api/records/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getRecordsWithLayouts":{urlPath:l+"/ui-api/records/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getDedupeConfig":{urlPath:l+"/ui-api/duplicates/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getDuplicateConfig":{urlPath:l+"/ui-api/duplicates/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getFormByName":{urlPath:l+"/ui-api/forms/${apiName}",urlPathParamNames:["apiName"],method:"GET"},"RecordUiController.executeGraphQL":{urlPath:l+"/graphql",urlPathParamNames:[],inputRepresentation:"queryInput",method:"POST"},"RecordUiController.getLayout":{urlPath:l+"/ui-api/layout/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getLayoutUserState":{urlPath:l+"/ui-api/layout/${objectApiName}/user-state",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.updateLayoutUserState":{urlPath:l+"/ui-api/layout/${objectApiName}/user-state",urlPathParamNames:["objectApiName"],inputRepresentation:"userState",method:"PATCH"},"RecordUiController.getObjectInfos":{urlPath:l+"/ui-api/object-info/batch/${objectApiNames}",urlPathParamNames:["objectApiNames"],method:"GET"},"RecordUiController.getObjectInfo":{urlPath:l+"/ui-api/object-info/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getPicklistValuesByRecordType":{urlPath:l+"/ui-api/object-info/${objectApiName}/picklist-values/${recordTypeId}",urlPathParamNames:["objectApiName","recordTypeId"],method:"GET"},"RecordUiController.getPicklistValues":{urlPath:l+"/ui-api/object-info/${objectApiName}/picklist-values/${recordTypeId}/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName","recordTypeId"],method:"GET"},"RecordUiController.findDuplicates":{urlPath:l+"/ui-api/predupe",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.postRecordAvatarAssociation":{urlPath:l+"/ui-api/record-avatars/${recordId}/association",urlPathParamNames:["recordId"],inputRepresentation:"input",method:"POST"},"RecordUiController.getRecordAvatars":{urlPath:l+"/ui-api/record-avatars/batch/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getRecordCloneDefaults":{urlPath:l+"/ui-api/record-defaults/clone/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordCreateDefaults":{urlPath:l+"/ui-api/record-defaults/create/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.createRecord":{urlPath:l+"/ui-api/records",urlPathParamNames:[],inputRepresentation:"recordInput",method:"POST"},"RecordUiController.deleteRecord":{urlPath:l+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"DELETE"},"RecordUiController.getRecordWithFields":{urlPath:l+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordWithLayouts":{urlPath:l+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.updateRecord":{urlPath:l+"/ui-api/records/${recordId}",urlPathParamNames:["recordId"],inputRepresentation:"recordInput",method:"PATCH"},"RecordUiController.getRecordDefaultsTemplateClone":{urlPath:l+"/ui-api/record-defaults/template/clone/${recordId}",urlPathParamNames:["recordId"],method:"GET"},"RecordUiController.getRecordDefaultsTemplateForCreate":{urlPath:l+"/ui-api/record-defaults/template/create/${objectApiName}",urlPathParamNames:["objectApiName"],method:"GET"},"RecordUiController.getRecordUis":{urlPath:l+"/ui-api/record-ui/${recordIds}",urlPathParamNames:["recordIds"],method:"GET"},"RecordUiController.getValidationRulesInfo":{urlPath:l+"/ui-api/object-info/${objectApiName}/validation-rules-info",urlPathParamNames:["objectApiName"],method:"GET"},"RelatedListUiController.getRelatedListInfoBatch":{urlPath:l+"/ui-api/related-list-info/batch/${parentObjectApiName}/${relatedListNames}",urlPathParamNames:["parentObjectApiName","relatedListNames"],method:"GET"},"RelatedListUiController.getRelatedListInfoCollection":{urlPath:l+"/ui-api/related-list-info/${parentObjectApiName}",urlPathParamNames:["parentObjectApiName"],method:"GET"},"RelatedListUiController.getRelatedListInfo":{urlPath:l+"/ui-api/related-list-info/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.getRelatedListInfoByApiName":{urlPath:l+"/ui-api/related-list-info/${parentObjectApiName}/${relatedListId}",urlPathParamNames:["parentObjectApiName","relatedListId"],method:"GET"},"RelatedListUiController.updateRelatedListInfoByApiName":{urlPath:l+"/ui-api/related-list-info/${parentObjectApiName}/${relatedListId}",urlPathParamNames:["parentObjectApiName","relatedListId"],inputRepresentation:"relatedListInfoInput",method:"PATCH"},"RelatedListUiController.getRelatedListsRecordCount":{urlPath:l+"/ui-api/related-list-count/batch/${parentRecordId}/${relatedListNames}",urlPathParamNames:["parentRecordId","relatedListNames"],method:"GET"},"RelatedListUiController.getRelatedListRecordCount":{urlPath:l+"/ui-api/related-list-count/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.getRelatedListRecordsBatch":{urlPath:l+"/ui-api/related-list-records/batch/${parentRecordId}/${relatedListIds}",urlPathParamNames:["parentRecordId","relatedListIds"],method:"GET"},"RelatedListUiController.postRelatedListRecordsBatch":{urlPath:l+"/ui-api/related-list-records/batch/${parentRecordId}",urlPathParamNames:["parentRecordId"],inputRepresentation:"listRecordsQuery",method:"POST"},"RelatedListUiController.getRelatedListRecords":{urlPath:l+"/ui-api/related-list-records/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],method:"GET"},"RelatedListUiController.postRelatedListRecords":{urlPath:l+"/ui-api/related-list-records/${parentRecordId}/${relatedListId}",urlPathParamNames:["parentRecordId","relatedListId"],inputRepresentation:"listRecordsQuery",method:"POST"},"SearchUiController.searchResultsKeyword":{urlPath:l+"/ui-api/search/results/keyword",urlPathParamNames:[],inputRepresentation:"options",method:"POST"},"SearchUiController.getFilterOptions":{urlPath:l+"/ui-api/search-info/${objectApiName}/filters/${filterApiName}/options",urlPathParamNames:["filterApiName","objectApiName"],method:"GET"},"SearchUiController.searchResults":{urlPath:l+"/ui-api/search/results",urlPathParamNames:[],inputRepresentation:"options",method:"POST"},"LookupController.getLookupRecords":{urlPath:l+"/ui-api/lookups/${objectApiName}/${fieldApiName}",urlPathParamNames:["fieldApiName","objectApiName"],method:"GET"}};function hc(t){return fc[t]}function pc(t){Pt({path:mr,payload:JSON.stringify(t),contentType:"text/plain;charset=UTF-8"})}function mc(t,e){document.dispatchEvent(new CustomEvent("client-error",{detail:{error:t,type:e}}))}function me({subject:t,error:e,wcstack:r,type:n=Q.UNKNOWN_ERROR}){r=r||e.wcstack;const{message:i,stack:o}=e,{hostname:a,pathname:s}=window.location,f={subject:t,message:i,stack:o,wcstack:r,location:{hostname:a,pathname:s}};Ae(o||f),mc(f,n),pc(f)}function Jn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ze(t){for(var e=1;e{const h=o[d];return delete o[d],c.replace(`\${${d}}`,encodeURIComponent(h))},t),s;(r==="POST"||r==="PATCH")&&o[n]&&(s=JSON.stringify(o[n]),delete o[n]),Object.keys(o).length&&(a+=`?${Object.entries(o).filter(([,c])=>c!=null&&(!Array.isArray(c)||c.length)).map(([c,d])=>`${encodeURIComponent(c)}=${encodeURIComponent(d)}`).join("&")}`);const u=await Ne(a,{method:r,body:s});let f;if(u.status===401&&qn(),u.status!==204&&(f=await u.json()),f instanceof Array&&(f=f[0]),!u.ok)throw{status:u.status,data:Ze(Ze({},f),{},{statusCode:u.status})};return f}async function Pc(t,e){if(t==="execute"){const{url:r,httpRequestOptions:n}=Ec(t,e);return Ne(r,n).then(i=>(i.status===401&&qn(),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: ${t}`)}function Ec(t,e){if((!e||typeof e!="object"||Object.keys(e).length===0)&&me({subject:"Apex API action error - invalid params",type:Q.APEX_ACTION_ERROR,error:new Error(`Apex ${t} action called with invalid params: '${JSON.stringify(e)}'.`)}),e&&e.cacheable===!0){const r=`/apex/${t}?${vc(e)}`;if(r.length<=ki)return{url:r,httpRequestOptions:{method:"GET",basePath:lr.default}}}return{url:`/apex/${t}`,httpRequestOptions:{method:"POST",body:JSON.stringify(e),basePath:lr.default}}}function vc(t){const e=Ze({},t),r=e.params;if(r&&typeof r=="object"){const n=Object.keys(r).sort().reduce((i,o)=>(i[o]=r[o],i),{});e.params=JSON.stringify(n)}return Object.keys(e).filter(n=>e[n]!==void 0&&e[n]!=null).sort().map(n=>`${n}=${encodeURIComponent(e[n])}`).join("&")}function qn(){_n.runSync()}var wc=Object.freeze({__proto__:null,logger:Gr,createComponent:null,renderComponent:null,getDefinition:null,executeGlobalController:bc});const Oc=[];function et(t,e,r,n){return Oc}var tt=v.registerTemplate(et);et.stylesheets=[],et.renderMode="light",v.freezeTemplate(et);function Xn(t){return Y.load(t,"webruntime/app/v/1")}const kt=document.createElement("style");kt.setAttribute("id","webruntime-branding");let Kt=":root {";Object.entries(xi.default).forEach(([t,e])=>{Kt+=`${t}: ${e};`}),Kt+="}",kt.innerHTML=Kt,document.head.prepend(kt);function Yn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Qn(t){for(var e=1;e{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=Qn(Qn({},this.config),e);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 e of this.regions)e.classList.remove(this.config.f6RegionHighlightClass)}addRegionHighlight(e){e.classList.add(this.config.f6RegionHighlightClass)}focusIn(e){const r=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])');r?r.focus():(e.tabIndex="-1",e.focus())}getActiveElem({target:e}){do if(e.shadowRoot!=null){if(!e.shadowRoot.activeElement)return e;e=e.shadowRoot.activeElement}while(e.shadowRoot!=null);return e}handleNav(e){if(e.preventDefault(),this.regions.length===0)return;const r=this.getClosestRegionIndex(this.getActiveElem(e)),n=this.getNextRegionIndex(r,e.shiftKey);this.addRegionHighlight(this.regions[n]),this.focusIn(this.regions[n])}shadowContains(e,r){if(e===r||e.contains(r))return!0;if(e.shadowRoot){for(const n of e.shadowRoot.children)if(this.shadowContains(n,r))return!0}if(e.tagName==="SLOT"){for(const n of e.assignedElements())if(this.shadowContains(n,r))return!0}for(const n of e.children)if(this.shadowContains(n,r))return!0;return!1}getClosestRegionIndex(e){for(const[r,n]of this.regions.entries())if(this.shadowContains(n,e))return r;return-1}getNextRegionIndex(e,r){return r?e<=0?this.regions.length-1:e-1:e===this.regions.length-1?0:e+1}isVisible(e){return e===document.body||!(e instanceof Element)?!0:window.getComputedStyle(e).display.toLowerCase()==="none"?!1:this.isVisible(e.parentNode)}isEmpty(e){if(e.tagName==="SLOT"){for(const r of e.assignedElements())if(r.tagName!=="SLOT"||!this.isEmpty(r))return!1}for(const r of e.children)if(r.tagName!=="SLOT"||!this.isEmpty(r))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)}}v.registerDecorators(Zn,{fields:["regions","config","handleKeyDown","handleClick","elementFilter"]}),new Zn().initialize();const Cc=Object.prototype.toString,Tc=Object.prototype.hasOwnProperty,ei=Function.prototype.toString,Rc=ei.call(Object),_c=t=>Number.isInteger?Number.isInteger(t):typeof t=="number"&&isFinite(t)&&Math.floor(t)===t;function C(t){return typeof t=="function"}function B(t){return typeof t=="object"&&t!==null}function rt(t){return B(t)&&typeof t.then=="function"}function Ac(t){return C(t)||B(t)}function Ic(t){return Cc.call(t)}function $c(t){return Ic(t)==="[object Object]"}function p(t){if(!B(t)||!$c(t))return!1;const e=Object.getPrototypeOf(Object(t));if(e===null)return!0;const r=Tc.call(e,"constructor")&&e.constructor;return C(r)&&r instanceof r&&ei.call(r)===Rc}const jc="#REF:$";function Lc(t,e){return t.localeCompare(e)}function Ht(t,e,r,n,i=jc){if(!B(t))return t;const o=t;return r.has(o)?t:(r.set(o,i),Array.isArray(o)?o.map((a,s)=>{const u=`${i}[${String(s)}]`;return Ht(a,e,r,n,u)}):p(t)?Object.keys(t).sort(e).reduce((a,s)=>{const u=`${i}.${s}`;return a[s]=Ht(t[s],e,r,n,u),a},{}):t)}function Bt(t,e){const r=new WeakMap,n=[],i=Ht(t,C(e)?e:Lc,r,n),o=Object.create(null);return Object.defineProperty(o,"value",{enumerable:!0,value:i}),Object.defineProperty(o,"errors",{enumerable:!0,value:n}),o}function ti(t,e=[],r="#REF:$"){if(B(t)&&!Object.isFrozen(t)){const i=t;Object.freeze(i);for(const o of Object.keys(i))ti(i[o],e,`${r}.${o}`)}const n=Object.create(null);return Object.defineProperty(n,"value",{enumerable:!0,value:t}),Object.defineProperty(n,"errors",{enumerable:!0,value:e}),n}function ri(t){return ti(t)}function Dc(t,e,r){const n=o=>String.prototype.split.call(e,o).filter(Boolean).reduce((a,s)=>a!=null?a[s]:a,t),i=n(/[,[\]]+?/)||n(/[,[\].]+?/);return i===void 0||i===t?r:i}function ge(){const t=[],e=[],r=new WeakMap,n="#REF:$",i="#REF:undefined";function o(a,s){const u=String(a),f=r.get(this),c=f?f+(Array.isArray(this)?`[${u}]`:"."+u):Array.isArray(this)?`[${u}]`:u;if(!B(s)||s!==Object(s))return typeof s=="undefined"?(e.push(c),i):s;const d=s;if(r.has(d)){const h=r.get(d);return h?`${n}${h[0]==="["?"":"."}${h}`:n}return r.set(d,c),d}return o.errors=()=>t,o.pathsUndefined=()=>e,o}function Mc(){const t=new Map,e="#REF:$",r="#REF:undefined";function n(i,o){const a=t.get(i);let s=i.substr(e.length);s.indexOf(".")===0&&(s=s.substr(1));const u=s?Dc(o,s):o;for(const f of a)f.value[f.key]=u;t.delete(i)}return function(o,a){if(typeof a=="string"&&a.indexOf(e)===0)return t.has(a)||t.set(a,[]),t.get(a).push({value:this,key:o}),a;if(!B(a)||a!==Object(a))return typeof a=="string"&&a===r?void 0:a;if(o===""){const s=this[""];for(const u of t.keys())n(u,s)}return a}}function zt(t){const e=(o,a)=>{const s=Object.create(null);return Object.defineProperty(s,"value",{enumerable:!0,value:o}),Object.defineProperty(s,"errors",{enumerable:!0,value:a}),s};if(!Ac(t))return e(typeof t=="symbol"?Symbol.prototype.valueOf.call(t):t,[]);const r=ge(),n=JSON.parse(JSON.stringify(t,r),Mc()),i=r.pathsUndefined();for(const o of i)o.split(".").reduce((s,u)=>{if(p(s))return!Object.prototype.hasOwnProperty.call(s,u)&&(s[u]=void 0),s[u]},n);return e(n,r.errors())}function Uc(t,e,r){const n=Bt(t),i=Bt(e),o=ge(),a=ge(),s=JSON.stringify(n.value,o),u=JSON.stringify(i.value,a);return r.push(...n.errors,...i.errors,...o.errors(),...a.errors()),s===u}function xc(t,e){const r=[],n=Uc(t,e,r),i=Object.create(null);return Object.defineProperty(i,"value",{enumerable:!0,value:n}),Object.defineProperty(i,"errors",{enumerable:!0,value:r}),i}function Fc(){return[1e7,1e3,4e3,8e3,1e11].join("-").replace(/[018]/g,t=>(Number(t)^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16))}const z={},Wt=new Map,be=new Map,Jt=new Map,qt=new WeakMap,w={};class nt extends Error{constructor(e){super(nt._prepareSuperMessage(e));Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,nt)}static _prepareSuperMessage(e){try{return JSON.stringify(e)}catch{return String(e)}}}const Vc=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Xt=Symbol(".toJSON called"),Gc=t=>{t[Xt]=!0;const e=t.toJSON();return delete t[Xt],e},Yt=({from:t,seen:e,to_:r,forceEnumerable:n,maxDepth:i,depth:o})=>{const a=r||(Array.isArray(t)?[]:{});if(e.push(t),o>=i)return a;if(typeof t.toJSON=="function"&&t[Xt]!==!0)return Gc(t);for(const[s,u]of Object.entries(t)){if(typeof Buffer=="function"&&Buffer.isBuffer(u)){a[s]="[object Buffer]";continue}if(typeof u!="function"){if(!u||typeof u!="object"){a[s]=u;continue}if(!e.includes(t[s])){o++,a[s]=Yt({from:t[s],seen:e.slice(),forceEnumerable:n,maxDepth:i,depth:o});continue}a[s]="[Circular]"}}for(const{property:s,enumerable:u}of Vc)typeof t[s]=="string"&&Object.defineProperty(a,s,{value:t[s],enumerable:n?!0:u,configurable:!0,writable:!0});return a},kc=(t,e={})=>{const{maxDepth:r=Number.POSITIVE_INFINITY}=e;return typeof t=="object"&&t!==null?Yt({from:t,seen:[],forceEnumerable:!0,maxDepth:r,depth:0}):typeof t=="function"?`[Function: ${t.name||"anonymous"}]`:t},ni=(t,e={})=>{const{maxDepth:r=Number.POSITIVE_INFINITY}=e;if(t instanceof Error)return t;if(typeof t=="object"&&t!==null&&!Array.isArray(t)){const n=new Error;return Yt({from:t,seen:[],to_:n,maxDepth:r,depth:0}),n}return new nt(t)};function ii(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Le(t){for(var e=1;e(r.name==="NonError"&&(r.message=r.message.replace(/^"|"$/g,"")),r);try{return e(ni(JSON.parse(t)))}catch(r){return e(ni(t))}}function Qt(t){return typeof t=="string"||typeof t=="number"}function T(t){const e=Qt(t);return typeof t=="symbol"?t.toString():e&&String(t).trim().length>0?String(t):""}function oi(t){return p(t)&&["data","error","loaded","loading"].every(e=>O.call(t,e))&&(typeof t.error=="string"||typeof t.error=="undefined")&&typeof t.loaded=="boolean"&&typeof t.loading=="boolean"}function A(t){if(p(t)){const e=Object.keys(t);return e.length>0&&e.some(r=>oi(t[r]))}return!1}function ai(t,e){e=typeof e=="string"?e:"{}";const r=p(t)?t[e]:void 0,n=p(r);return n&&typeof r.error=="string"?Me(r.error):n?r.data:void 0}function ye(t,e){if(A(t))return t;const r=t instanceof Error?{data:void 0,error:De(t)}:{data:t,error:void 0};return e=typeof e=="string"?e:"{}",{[e]:Le(Le({},r),{},{loaded:!0,loading:!1})}}function Zt(t,e,r=!1){const n=Array.isArray(e);function i(f,c){const d=T(f),h=e[1],g=d?`${t.name}.${d}`:t.name;if(d&&(O.call(w,t.name)&&w[t.name]>0||A(t.get())))return t.get()?.[h]?.data?.[d];if(O.call(w,g)&&w[g]>0||A(c))return p(c)?ai(c,h):void 0;if(!d&&p(c)){const E=Object.keys(c).reduce((b,m)=>{const y=c[m],R=`${t.name}.${m}`;return O.call(w,R)&&w[R]>0||A(y)?p(y)&&O.call(y,h)&&(b[m]=ai(y,h)):b[m]=y,b},{});return Object.keys(E).length>0?E:void 0}return c}function o(f,c){const d=typeof f!="undefined"?t.get(f):t.get(),h=p(d),g=T(f),E=e[0],b=e[1],m=(_,S)=>Object.keys(_).reduce((N,I)=>(O.call(S,I)||N.push(I),N),[]),y=(..._)=>_.reduce((S,N)=>{const I=A(N);return Object.keys(N).forEach(x=>{const ie=S[x],ft=N[x];I&&p(ie)&&p(ft)||A(ie)&&A(ft)?S[x]=y(ie,ft):S[x]=ft}),S},{}),R=(_,S)=>{const N=h?y(zt(d).value,_):_;return N&&Array.isArray(S)&&S.forEach(I=>{O.call(N,I)&&O.call(N[I],b)&&delete N[I][b]}),N},$=_=>Object.keys(_).reduce((S,N)=>{const I=_[N],x=`${t.name}.${N}`;return O.call(w,x)&&w[x]>0||h&&A(d[N])?S[N]=ye(I,b):S[N]=I,S},{}),P=g?`${t.name}.${g}`:t.name;if(O.call(w,P)&&w[P]>0||A(d))return R(ye(c,b));if(!g){if(p(c)){const _=h?m(d,c):[];return R($(c),_)}return R({[T(E)]:ye(c,b)})}return c}function a(f,c){const d=T(f),h=d?`${t.name}.${d}`:t.name,g=d?t.get(f):t.get();return A(g)?Object.keys(g).reduce((E,b)=>{const m=ye(c,b);return E[b]=Le(Le({},g[b]),m[b]),E},{}):O.call(w,h)&&w[h]>0?Object.keys(w).reduce((E,b)=>{if(b.indexOf(`${h}.`)!==-1){const m=b.substr(b.lastIndexOf(".")+1),y=ye(c,m);E[m]=y[m]}return E},{}):c}class s{get name(){return t.name}get size(){if(n&&p(t.get())){const c=t.get(),d=t.name;if(O.call(w,d)&&w[d]>0||A(c)){const h=O.call(c,e[1]);return h&&p(c[e[1]])&&O.call(c[e[1]],"data")&&p(c[e[1]].data)?Object.keys(c[e[1]].data).length:h?1:0}return Object.keys(c).reduce((h,g)=>{const E=c[g],b=`${t.name}.${g}`;return O.call(w,b)&&w[b]>0||A(E)?p(E)&&O.call(E,e[1])&&h++:h++,h},0)}return t.size}has(c){const d=arguments.length>0?t.has(c):t.has();if(n){const h=arguments.length>0?t.get(c):t.get(),g=T(c),E=g?`${t.name}.${g}`:t.name;if(g&&(O.call(w,t.name)&&w[t.name]>0||A(t.get()))){const b=t.get();return p(b)&&O.call(b,e[1])&&p(b[e[1]])&&O.call(b[e[1]],"data")&&p(b[e[1]].data)&&O.call(b[e[1]].data,g)}if(O.call(w,E)&&w[E]>0||A(h))return p(h)&&O.call(h,e[1]);if(!g&&p(h))return Object.keys(h).some(b=>{const m=h[b],y=`${t.name}.${b}`;return O.call(w,y)&&w[y]>0||A(m)?p(m)&&O.call(m,e[1]):!0})}return d}get(c){const d=arguments.length>0?t.get(c):t.get();return n?i(c,d):d}set(c,d){if(arguments.length>1){const h=n?o(c,d):a(c,d);t.set(c,h)}else t.set(n?o(void 0,c):a(void 0,c))}delete(c){const d=arguments.length;if(n){const h=T(c);if(h&&(O.call(w,t.name)&&w[t.name]>0||A(t.get()))){const m=t.get();if(p(m)&&O.call(m,e[1])&&p(m[e[1]])&&O.call(m[e[1]],"data")&&p(m[e[1]].data)&&O.call(m[e[1]].data,h)){const y=zt(m).value,R=y[e[1]],$=R.data;return delete $[h],Object.keys($).length===0&&(R.data=void 0),t.set(y),!0}return!1}const g=d>0?t.get(c):t.get(),E=p(g),b=m=>{const y=zt(m).value;return delete y[e[1]],y};if(A(g)){const m=O.call(g,e[1]);if(m){const y=b(g);Object.keys(y).length===0?d>0?t.delete(c):t.delete():d>0?t.set(c,y):t.set(y)}return m}if(!h&&E){const m=Object.keys(g),{processed:y,removed:R}=m.reduce(($,P)=>{if(A(g[P])){if(O.call(g[P],e[1])){++$.processed;const S=b(g[P]);Object.keys(S).length===0?(t.delete(P),++$.removed):t.set(P,S)}}else t.delete(P),++$.processed,++$.removed;return $},{processed:0,removed:0});return R===m.length&&t.delete(),y>0}}return d>0?t.delete(c):t.delete()}update(c,d){const h=arguments.length,g=h>1?c:void 0,E=h>1?d:c,b=m=>{const y=n?i(g,m):m,R=E(y);return n?o(g,R):a(g,R)};return h>1?t.update(c,b):t.update(b)}dispatch(c,d){return t.dispatch(c,d)}}class u extends s{subscribe(c,d){return arguments.length===1?t.subscribe(c):t.subscribe(c,d)}subscribeAction(c,d){return C(d),t.subscribeAction(c,d)}}return r?new u:new s}function Bc(t){class e{get(){return t.get()}load(){return t.load()}subscribe(n){return C(n),t.subscribe(n)}subscribeAction(n,i){return C(i),t.subscribeAction(n,i)}subscribeLoad(n){return C(n),t.subscribeLoad(n)}}return new e}function it(t,e,r){!r[t]&&(r[t]=[]);const n=r[t];return n.indexOf(e)<0&&n.push(e),{unsubscribe(){const i=r[t],o=i.indexOf(e);o>-1&&i.splice(o,1)}}}function ot(t,e,r,n,i,o,a){const s=t[n];if(C(s))try{const u={type:i,payload:o};n==="error"?s(u,r,a):s(u,r)}catch(u){}}function er(t,e,r,n,i,o,a){if(t[i]){const s=t[i];for(const u of s)n==="error"?ot(u,e,r,n,i,o,a):ot(u,e,r,n,i,o)}}function zc(t,e){const r=p(e)?e:{},n=p(t)?Le({},t):{};if(r.remove)for(const i of r.remove)delete n[i];return p(r.add)&&Object.assign(n,r.add),n}function si(t,e,...r){qt.has(t)||qt.set(t,new Map);const n=qt.get(t),i=arguments.length>2?r:[],o=JSON.stringify(e,ge()),a=JSON.stringify(i,ge()),s=`${o}:${a}`;if(n.has(s))return n.get(s);const u=new t(...i);return n.set(s,u),u.update(p(e)?e:{}),u.connect(),u}function Wc(t,e,...r){return si(t,e,...r).get().then(n=>n.data)}function Jc(t,e){if(t==null)return{};var r=qc(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&(!Object.prototype.propertyIsEnumerable.call(t,n)||(r[n]=t[n]))}return r}function qc(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o=0)&&(r[i]=t[i]);return r}function Xc(t){var e=Yc(t,"string");return typeof e=="symbol"?e:String(e)}function Yc(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ci(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ui(t){for(var e=1;e0)throw console.error(`[store] ${r[0].message}`),r[0];z[this.name]=e}_has(e){if(e){const r=this.container;return p(r)&&Pe.call(r,e)}return Pe.call(z,this.name)}_get(e){const r=e?p(z)&&p(this.container)?this.container[e]:void 0:z[this.name];return this.errorKeys[e]?Me(r):r}_deleteKeys(e){for(const r of e)this._delete(r)}_delete(e,r=!0){const n=()=>{if(delete this.errorKeys[e],e&&p(this.container)){const i=this.container,o=Jc(i,[e].map(Xc));this._updateContainer(o)}else e||delete z[this.name]};return e&&p(this.container)&&Pe.call(this.container,e)||!e&&Pe.call(z,this.name)?(r?this._notify(e,()=>n()):n(),!0):(n(),!1)}_update(e,r){const n=this.container,i=p(n)?Object.keys(n):[];if(e){const o=this._get("");this._updateEntry(e,r),this._notify("",o)}else{const o=this._get(""),a=p(r)?Object.keys(r):[],s=i.filter(u=>!a.includes(u)).concat(a.filter(u=>!i.includes(u)));if(this._deleteKeys(s),p(r)){for(const u of a)this._updateEntry(String(u),r[u]);this._notify("",o)}else this._updateEntry("",r)}}_updateEntry(e,r){this._notify(e,()=>this._set(e,r))}_set(e,r){const n=r instanceof Error,i=n?De(r):r;if(n&&(this.errorKeys[e]=!0),e){const o=p(this.container)?this.container:{};this._updateContainer(ui(ui({},o),{},{[e]:i}))}else this._updateContainer(i)}_notify(e,r){const n=C(r)?this._get(e):r;this._notifyMutationSubscribers("before",e,n instanceof Error?void 0:n),C(r)&&r();const i=this._get(e);i instanceof Error?this._notifyMutationSubscribers("error",e,void 0,i):this._notifyMutationSubscribers("after",e,i)}_registerAction(e,r){this.actions[e]=n=>{try{const i=r.call(null,this.localState,n);return Promise.resolve(i)}catch(i){return Promise.reject(i)}}}_notifyActionSubscribers(e,r,n,i){er(this.actionSubscribers,"action",this.localState,e,r,n,i)}_notifyMutationSubscribers(e,r,n,i){er(this.subscribers,"mutation",this.localState,e,r,n,i)}_dispatchAction(e,r,n){return ri(n),this._notifyActionSubscribers("before",e,n),new Promise((i,o)=>{r(n).then(a=>{this._notifyActionSubscribers("after",e,a),i(a)}).catch(a=>{const s=a instanceof Error?a:new at(a);this._notifyActionSubscribers("error",e,n,s),o(s)})})}has(e){return this._has(T(e))}get(e){return this._get(T(e))}set(e,r){const n=arguments.length===1?void 0:e,i=arguments.length===1?e:r;this._update(T(n),i)}delete(e){const r=T(e),n=this._get("");if(!r){const o=this.container,a=p(o)?Object.keys(o):[];this._deleteKeys(a);const s=this._delete("",!1);return this._notify("",n),s}const i=this._delete(r);return this._notify("",n),i}update(e,r){if(arguments.length>1){const n=T(e),i=r;C(i)&&this._update(n,i(this._get(n)))}else{const n=e;C(n)&&this._update("",n(this._get("")))}}dispatch(e,r){const n=this.actions[e];if(C(n))return this._dispatchAction(e,n,r);if(e.includes("/")&&be.has(e)){const o=e.substring(e.indexOf("/")+1);return be.get(e).dispatch(o,r)}const i=`unknown action type: ${e}`;return Promise.reject(new TypeError(i))}subscribe(e,r){const n=h=>typeof h=="function"?{after:h,error:h}:h,i=arguments.length===1?void 0:e,o=arguments.length===1?n(e):n(r),a=T(i),s=this.subscribers,u=it(a,o,s),{discard:f=!1}=this.options,c={unsubscribe:()=>{u.unsubscribe();const h=s[a];(!h||h.length===0)&&f&&(delete s[a],this._delete(a))}};if(a?this.has(i):this.has()){const h=this._get(a);h instanceof Error?ot(o,"mutation",this.localState,"error",a,void 0,h):ot(o,"mutation",this.localState,"after",a,h)}return c}subscribeAction(e,r){const n=typeof r=="function"?{after:r,error:r}:r;if(e.includes("/")&&be.has(e)){const i=e.substring(e.indexOf("/")+1);return be.get(e).subscribeAction(i,r)}return it(e,n,this.actionSubscribers)}}v.registerDecorators(Ue,{fields:["errorKeys","actions","actionSubscribers","subscribers","localState"]});function Zc(t){return t!=null&&typeof t=="object"}function eu(t){return typeof t=="number"||Zc(t)&&Object.prototype.toString.call(t)==="[object Number]"}function tu(t){return eu(t)&&t!==+t}function ru(t,e){const r=t==null||tu(t)?"":t.toString();return r.length>0?r:e}const li=Symbol("abort"),di=Symbol("abortSignal"),fi="Aborted";class Ee extends Error{constructor(e){super(ru(e,fi));Object.defineProperty(this,"name",{value:"AbortError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,Ee)}}const ve=new WeakMap;class j extends Promise{static from(e){return e instanceof j?e:new j((r,n)=>e.then(r).catch(n))}static connect(e,r){const n=ve.get(e),i=ve.get(r),{controller:o}=n,{controller:a}=i,{signal:s}=o,{signal:u}=a;if(s===u)return;i.parent=n;const f=(c,d)=>{!c.reason&&(c.reason=d.reason)};if(u.aborted&&!s.aborted)f(n,i),o.abort();else if(s.aborted&&!u.aborted)f(i,n),a.abort();else{const c=()=>{u.removeEventListener("abort",c),u.aborted||(f(i,n),a.abort())},d=()=>{u.removeEventListener("abort",d),s.aborted||(f(n,i),o.abort())};s.addEventListener("abort",c),u.addEventListener("abort",d)}}constructor(e){const r=new AbortController,{signal:n}=r;let i=!1;const o=a=>{ve.get(this).reason=a||fi,r.abort()};super((a,s)=>{const u=d=>{!i&&!n.aborted&&a(d),i=!0},f=d=>{!i&&!n.aborted&&s(d),i=!0},c=()=>{n.removeEventListener("abort",c);const d=ve.get(this);let h=!!d.isHandled,g=d.parent;for(;g;)h=h||!!g.isHandled,g=g.parent;if(d.isHandled=!0,!i&&!h){i=!0;const E=d.reason;s(new Ee(E instanceof Error?E.message:E))}};n.addEventListener("abort",c),e(u,f,o,n)});ve.set(this,{controller:r}),this[li]=o.bind(null),this[di]=n}_wrapHandler(e){return C(e)?r=>{let n=e(r);if(n instanceof j?j.connect(this,n):n instanceof Promise&&(n=j.from(n),j.connect(this,n)),this[di].aborted){const i=ve.get(this).reason;throw new Ee(i instanceof Error?i.message:i)}return n}:e}then(e,r){const n=j.from(super.then(this._wrapHandler(e),this._wrapHandler(r)));return j.connect(this,n),n}catch(e){const r=j.from(super.catch(this._wrapHandler(e)));return j.connect(this,r),r}finally(e){const r=j.from(super.finally(this._wrapHandler(e)));return j.connect(this,r),r}}const nu=["store","key"];function iu(t,e){if(t==null)return{};var r=ou(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&(!Object.prototype.propertyIsEnumerable.call(t,n)||(r[n]=t[n]))}return r}function ou(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o=0)&&(r[i]=t[i]);return r}function hi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function k(t){for(var e=1;e{const s=w[a],u=(_c(s)?s:0)+n;u>0?w[a]=u:delete w[a]})}class bi{constructor(e,r,n,i){this.uuid=Fc(),this.connectors=[],this.rawMutationSubscribers=[],this.rawActionSubscribers=[],this.rawLoadSubscribers=[],this.loadSubscribers={},this.subscribedStoreSubs=[],this.isConnected=!1,this.dataCallback=e;const o=r instanceof Ue,a=Qt(n),s=o?r:void 0,u=a?n:void 0;let f;const c=arguments.length;if(c===2?f=!o&&p(r)?r:void 0:c===3?f=!a&&p(n)?n:void 0:c>3&&(f=p(i)?i:void 0),this.initialStore=this.store=s,this.initialKey=this.key=u,this.options=f,f&&Array.isArray(f.connectors))for(const d of f.connectors)p(d)?this.connectors.push(d):C(d)&&this.connectors.push({connect:d})}_notifyConnectors(e,r){for(const n of this.connectors)C(n[e])&&n[e](Bc(this),{type:r,payload:this._obtainConfig()},this.subscribedLocalState)}_notifyLoadSubscribers(e,r,n){const{data:i}=this._read();er(this.loadSubscribers,"load",this.subscribedLocalState,e,r,i,n)}_obtainConfig(){const e=Hc(this.config,{});return iu(e,nu)}_obtainEntryKey(){const e=Bt(this._obtainConfig()).value;return JSON.stringify(e,ge())}_obtainLoadingPromiseKey(){return`${T(this.subscribedKey)}:${this.entryKey}`}_obtainRawEntryContainer(){const e=this.subscribedStore;return this.subscribedKey?e?.get(this.subscribedKey):e?.get()}_obtainEntryContainer(){const e=this._obtainRawEntryContainer();return p(e)?k({},e):{}}_obtainEntry(e){const r=p(e)?e:this.subscribedStore?this._obtainEntryContainer():void 0;return p(r)?r[this.entryKey]:void 0}_read(e){const r=e||this._obtainEntry();return oi(r)?r:mi()}_writeContainer(e){const r=this.subscribedStore;this.subscribedKey?r?.set(this.subscribedKey,e):r?.set(e)}_write(e){const r=this._obtainEntryContainer();r[this.entryKey]=e,this._writeContainer(r)}_callback(e){if(!xc(e,this.lastCallbackEntry).value){this.lastCallbackEntry=e;const{error:r}=e,n=k({},e);n.error=typeof r=="string"?Me(r):void 0,Object.freeze(n),this.dataCallback&&this.dataCallback.call(null,n)}}_cancelRequest(){if(this.subscribedStore&&this.loadingPromises){const e=this._obtainLoadingPromiseKey(),r=this.loadingPromises.get(e);if(r){const n=T(this.subscribedKey),i=rr(this.subscribedStore,n,this.entryKey);w[i]===1&&(this._removeLoadingPromise(e),r.promise instanceof j&&r.promise[li]());const a=this._read();this._write(k(k({},a),{},{loading:!1}))}}}_removeLoadingPromise(e){const r=this.loadingPromises,n=r.get(e);r.delete(e),n&&typeof n.timeout=="number"&&clearTimeout(n.timeout)}_updateLoadingPromise(e,r){const n=this.loadingPromises,i=n.get(e),o=zc(i,r);n.set(e,o)}_unsubscribe(){this._cancelRequest(),tr(this.rawMutationSubscribers),tr(this.rawActionSubscribers),tr(this.rawLoadSubscribers);for(const e of this.subscribedStoreSubs)e.unsubscribe();this.subscribedStoreSubs.splice(0,this.subscribedStoreSubs.length);for(const e of Object.keys(this.loadSubscribers))delete this.loadSubscribers[e];if(this.subscribedStore){const e=T(this.subscribedKey);if(gi(this.subscribedStore,e,this.entryKey,-1),this.subscribedStore.options.discard&&p(this._obtainRawEntryContainer())){const r=rr(this.subscribedStore,e,this.entryKey);if(!su.call(w,r)){const n=this._obtainEntryContainer();delete n[this.entryKey],this._writeContainer(n)}}this._notifyConnectors("disconnect",e)}delete this.subscribedStore,delete this.subscribedLocalState,delete this.subscribedKey,delete this.loadingPromises,delete this.lastCallbackEntry}_subscribe(){if(!(!this.isConnected||!this.config)&&(this.subscribedStore!==this.store||T(this.subscribedKey)!==T(this.key)||this.entryKey!==this._obtainEntryKey()))if(this._unsubscribe(),this.store){this.subscribedStore=this.store,this.subscribedKey=this.key,this.entryKey=this._obtainEntryKey(),this.subscribedLocalState=Zt(this.subscribedStore,[this.subscribedKey,this.entryKey,this.uuid]);const e=T(this.subscribedKey),r=this._obtainRawEntryContainer();if(typeof r!="undefined"&&!A(r)){const s=ye(r,this.entryKey);this._writeContainer(s)}gi(this.subscribedStore,e,this.entryKey);for(const s of this.rawLoadSubscribers)s.unsubscribable=it(e,s.subscriber,this.loadSubscribers);Jt.has(this.store.name)||Jt.set(this.store.name,new Map),this.loadingPromises=Jt.get(this.store.name),this._notifyConnectors("connect",e);const n=()=>{let s;const u=({payload:c})=>{s=c},f=({payload:c})=>{if(this.entryKey&&(p(s)&&Reflect.has(s,this.entryKey)||p(c)&&Reflect.has(c,this.entryKey))){const d=this._obtainEntry(c);this.isConnected&&this._callback(this._read(d))}};return{before:u,after:f,error:f}};this.subscribedKey?this.subscribedStoreSubs.push(this.subscribedStore.subscribe(this.subscribedKey,n())):this.subscribedStoreSubs.push(this.subscribedStore.subscribe(n()));const i=this._read(),{loaded:o,loading:a}=i;!o&&!a&&this._getAsync(i).then(()=>{const s=this._read();!s.loaded&&!s.loading&&this.isConnected&&!pi(this.options).handler&&this._callback(s)});for(const s of this.rawMutationSubscribers){const u=this.subscribedStore.subscribe(this.subscribedKey,s.subscriber);this.subscribedStoreSubs.push(u),s.unsubscribable=u}for(const s of this.rawActionSubscribers){const u=this.subscribedStore.subscribeAction(s.key,s.subscriber);this.subscribedStoreSubs.push(u),s.unsubscribable=u}}else this._callback(mi())}_obtainStoreFromConfig(e){return B(e)&&e.store instanceof Ue?e.store:void 0}_obtainKeyFromConfig(e){return B(e)&&Qt(e.key)?e.key:""}_subscribeLoose(e,r,n,i){const o=n?{key:i,subscriber:e,unsubscribable:n}:{key:i,subscriber:e};return r.push(o),{unsubscribe:()=>{o.unsubscribable&&o.unsubscribable.unsubscribe();const a=r,s=a.indexOf(o);s>-1&&a.splice(s,1)}}}_getAsync(e){if(!e.loaded&&!e.loading)return this.load();const r=this._obtainLoadingPromiseKey(),n=this.loadingPromises.get(r);return n&&(e.loading||typeof n.timeout=="number")&&rt(n.promise)?n.promise:Promise.resolve(xe(e))}_load(e,r,n){const i=T(this.subscribedKey);this._cancelRequest(),this._notifyLoadSubscribers("before",i);try{const o=e({type:i,payload:this._obtainConfig()},this.subscribedLocalState);if(rt(o)){const s=(n?j.from(o):o).then(u=>{const f=this.loadingPromises?.get(r);return f&&f.promise===s&&(this._removeLoadingPromise(r),this._write({data:u,error:void 0,loaded:!0,loading:!1}),this._notifyLoadSubscribers("after",i)),xe(this._read())}).catch(u=>{const f=this.loadingPromises?.get(r);return f&&f.promise===s&&(this._removeLoadingPromise(r),u instanceof Ee?(this._write(k(k({},this._read()),{},{loading:!1})),this._notifyLoadSubscribers("after",i)):(this._write({data:void 0,error:De(u),loaded:!0,loading:!1}),this._notifyLoadSubscribers("error",i,u))),xe(this._read())});return this._updateLoadingPromise(r,{add:{promise:s}}),this._write(k(k({},this._read()),{},{loading:!0})),s}this._write({data:o,error:void 0,loaded:!0,loading:!1}),this._notifyLoadSubscribers("after",i)}catch(o){if(o instanceof Ee)this._write(k(k({},this._read()),{},{loading:!1})),this._notifyLoadSubscribers("after",i);else{const a=De(o);this._write({data:void 0,error:a,loaded:!0,loading:!1}),this._notifyLoadSubscribers("error",i,o)}}return Promise.resolve(xe(this._read()))}update(e){this._cancelRequest(),this.config=e,typeof this.initialStore=="undefined"&&(this.store=this._obtainStoreFromConfig(e)),typeof this.initialKey=="undefined"&&(this.key=this._obtainKeyFromConfig(e)),this._subscribe()}connect(){this.isConnected=!0,this._subscribe()}disconnect(){this.isConnected=!1,this._unsubscribe(),this.rawActionSubscribers.splice(0,this.rawActionSubscribers.length),this.rawMutationSubscribers.splice(0,this.rawMutationSubscribers.length),this.rawLoadSubscribers.splice(0,this.rawLoadSubscribers.length)}get(){return this._getAsync(this._read()).then(r=>{if(typeof r.error=="string")throw Me(r.error);return r})}load(){const e=pi(this.options);if(!this.subscribedStore||!e.handler)return Promise.resolve(xe(this._read()));const r=this._obtainLoadingPromiseKey(),n=this.loadingPromises?.get(r);if(n&&typeof n.timeout=="number"&&rt(n.promise))return n.promise;const{handler:i,abortable:o}=e,a=this._load(i,r,o);return this._updateLoadingPromise(r,{add:{timeout:window.setTimeout(()=>{const{loading:s}=this._read(),u=this.loadingPromises.get(r);!s&&(!u||!rt(u.promise)||u.promise===a)?this._removeLoadingPromise(r):this._updateLoadingPromise(r,{remove:["timeout"]})}),promise:a}}),a}subscribe(e){const r=C(e)?{after:e,error:e}:e,n=this.subscribedStore?this.subscribedStore.subscribe(this.subscribedKey,r):void 0;return n&&this.subscribedStoreSubs.push(n),this._subscribeLoose(r,this.rawMutationSubscribers,n)}subscribeAction(e,r){const n=typeof r=="function"?{after:r,error:r}:r,i=this.subscribedStore?this.subscribedStore.subscribeAction(e,n):void 0;return i&&this.subscribedStoreSubs.push(i),this._subscribeLoose(n,this.rawActionSubscribers,i,e)}subscribeLoad(e){const r=C(e)?{after:e,error:e}:e,n=this.subscribedKey?it(T(this.subscribedKey),r,this.loadSubscribers):void 0;return this._subscribeLoose(r,this.rawLoadSubscribers,n)}}v.registerDecorators(bi,{fields:["uuid","connectors","rawMutationSubscribers","rawActionSubscribers","rawLoadSubscribers","loadSubscribers","subscribedStoreSubs","isConnected"]});var cu=Object.freeze({__proto__:null,Store:Ue,StoreActionError:at,StoreAdapter:bi,deserializeError:Me,createStoreAdapter:si,getStoreAdapterValue:Wc,serializeError:De});function uu(t,e){const r=e!==void 0&&!(e instanceof Error)?JSON.parse(JSON.stringify(e)):{};return r.identities||(r.identities={}),t?.isLoggedIn?r.identities.userId=t.userId:delete r.identities.userId,r}const Fe=new Ue("@@DataLayerStore",{actions:{updateUser:{namespace:"datalayer",handler:(t,e)=>{e&&lu(t,e)}},updateSource:{namespace:"datalayer",handler:(t,e)=>{e&&t.update("source",()=>e)}},updateAnonymousId:{namespace:"datalayer",handler:(t,e)=>{e&&t.update("user",()=>e)}},error:{namespace:"datalayer",handler:()=>{throw new Error("invalid namespace")}}}});Fe.subscribeAction("updateUser",nr),Fe.subscribeAction("updateSource",nr),Fe.subscribeAction("updateAnonymousId",nr);function nr(){}function lu(t,e){const r=uu(e?.["{}"]?.data,t.get("user"));t.set("user",r)}function du(t){return Fe.dispatch("updateSource",t)}function fu(t){return Fe.dispatch("updateAnonymousId",t)}const hu={guestUuidCookieMaxAge:365*24*60*60};if(pt.default){let t=wr(pt.default);qi(t)||(t=Ji()),document.cookie=`${pt.default}=${t};Max-Age=${hu.guestUuidCookieMaxAge};SameSite=LAX;Path=/`,fu({anonymousId:t})}async function pu(){if(!dr.default)return;const{start:t}=await Y.load("webruntimedesign/designmode/v/1");/interactive|complete/.test(document.readyState)?t():document.addEventListener("DOMContentLoaded",t,!1)}function mu(){const{userAgent:t}=navigator;return Fi.default&&t.includes(gr.PUBLISHER)||t.includes(gr.PLAYGROUND)}function gu(){bu(),Qe(yu)}function bu(){document.addEventListener("notify-client-module",Pu)}function yu(t,e){Eu("navigationcompleted",{route:t,routeInfoData:e})}function Pu({detail:t}){const{action:e,data:r}=t;switch(e){case"navigate":Ft(r.routeObj,r.replaceState);break;default:Vr(`No such action "${e}" exists.`);break}}function Eu(t,e){document.dispatchEvent(new CustomEvent("notify-mobile-module",{bubbles:!0,composed:!0,detail:{action:t,data:e}}))}async function vu(){if(!mu())return;const{hybridAppManager:t}=await Y.load("mobileruntime/hybridAppManager/v/1");t(),gu()}function yi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function st(t){for(var e=1;e{!u&&this.themeLayout!==s&&(this.generatedTemplateHtml=tt)},10);let f;try{f=await Xn(br(s))}catch(c){await this.handleFetchViewFailed(c,n)}try{return u=!0,du({pageType:e.type,url:window.location.href,urlReferrer:document.referrer}),dr.default||Rs(this.themeLayout!==s),this.showView(f.default,s,a,e)}catch(c){me({subject:"App.getTemplate#showView error",type:Q.FAILED_TO_LOAD_RESOURCE,error:c})}}async handleFetchViewFailed(e,r){await Ut.run({error:e,isPublic:r})&&me({subject:"App.getTemplate#getViewModule error",type:Q.FAILED_TO_LOAD_RESOURCE,error:e})}showView(e,r,n,i){this.themeLayout!==r&&(this.generatedTemplateHtml=e.html,this.themeLayout=r),this.routeParams=n,this.attributes=e.attributes(this,this.routeParams),this.previousRouteId=this.route&&this.route.id||null,this.route=i}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}errorCallback(e,r){me({subject:"app level error",error:e,wcstack:r})}}ir.renderMode="light",v.registerDecorators(ir,{fields:["generatedTemplateHtml","attributes","routeParams","route","previousRouteId","themeLayout","isInitialized"]});var Ou=v.registerComponent(ir,{tmpl:tt}),Su={};const Pi=Symbol("Navigate"),Ei=Symbol("GenerateUrl"),ct=Symbol("NavContext"),ut=t=>(ce(typeof t.prototype.dispatchEvent=="function",G.INVALID_MIXIN_CMP,[t]),v.registerDecorators(class extends t{wiredNavContext(e){this[ct]=e}[Pi](e,r){re(this[ct],e,r)}[Ei](e){return fe(this[ct],e)}},{wire:{wiredNavContext:{adapter:te,method:1,config:function(e){return{}}}}}));ut.Navigate=Pi,ut.GenerateUrl=Ei,ut.NavContext=ct;var Nu={navigate:re,generateUrl:fe,NavigationContext:te,NavigationMixin:ut,CurrentPageReference:Xe};function Cu(t,e,r){var n=t?"["+t+"]":"";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 or=[Cu],Tu=void 0;const Ru={key:1},_u=[];function X(t,e,r,n){const{b:i,s:o,h:a}=t,{_m0:s}=n;return[a("a",{attrs:{href:e.path},key:0,on:{click:s||(n._m0=i(e.handleClick))}},o("",Ru,_u,r))]}var Au=v.registerTemplate(X);X.slots=[""],X.stylesheets=[],X.renderMode="light",or&&X.stylesheets.push.apply(X.stylesheets,or),(or||Tu)&&(X.stylesheetToken="webruntime_navigation-link_link"),v.freezeTemplate(X);class ar extends v.LightningElement{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 fe(this.navContext,this.route))}handleClick(e){e.preventDefault(),re(this.navContext,this.route||this.path)}}ar.renderMode="light",v.registerDecorators(ar,{publicProps:{path:{config:0},route:{config:0}},wire:{navContext:{adapter:te,config:function(t){return{}}}}});var Iu=v.registerComponent(ar,{tmpl:Au});const $u=[];function lt(t,e,r,n){return $u}var dt=v.registerTemplate(lt);lt.stylesheets=[],lt.renderMode="light",v.freezeTemplate(lt);async function ju(t,e,r=""){return new Promise(window.requestAnimationFrame).then(()=>{t[e]=r})}function vi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function wi(t){for(var e=1;e{i||(this.generatedTemplateHtml=dt)},10),Xn(br(r)).then(o=>o.default).then(async o=>{i=!0,await ju(this,"generatedTemplateHtml",dt),this.showView(o,e)}).catch(async o=>{await this.handleFetchViewFailed(o,n)})}async handleFetchViewFailed(e,r){await Ut.run({error:e,isPublic:r})&&me({subject:"routerContainer.getTemplate error",type:Q.FAILED_TO_LOAD_RESOURCE,error:e})}showView(e,r){this.generatedTemplateHtml=e.html;const{state:n,attributes:i}=r;this.routeParams=wi(wi({},n),i),this.attributes=e.attributes(this,this.routeParams),this.route=r}disconnectedCallback(){this.subscription&&this.subscription.unsubscribe()}errorCallback(e,r){me({subject:"router level error",error:e,wcstack:r})}renderedCallback(){this.dispatchEvent(new CustomEvent("viewchange",{bubbles:!0,composed:!0,detail:{route:this.route}}))}}sr.renderMode="light",v.registerDecorators(sr,{fields:["generatedTemplateHtml","attributes","routeParams","route"]});var Du=v.registerComponent(sr,{tmpl:dt});function Mu(t={},e){if(!!t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function Uu(t,e){Array.isArray(t)||(t=[t]);const r=t.filter(e);if(!!r.length)return r.length===1?r[0]:r}function xu(t,e){return typeof e=="string"&&Array.isArray(t)?(t=t.map(r=>r[e]).filter(r=>r!==void 0),t.length===0?void 0:t.length===1?t[0]:t):t&&t[e]!==void 0?t[e]:void 0}function Fu(){}var Vu=Object.freeze({__proto__:null,EXPR_GLOBAL:Mu,EXPR_FILTER:Uu,EXPR_MEMBER:xu,EXPR_FUNCTION:Fu});function Oi(t){Object.entries(t).forEach(([e,r])=>{LWR.define(e,[],function(){return r})})}Oi({"@salesforce/client/formFactor":Ys(),"aura-instrumentation":Br,"aura-storage":Su,"instrumentation/service":Br,"instrumentation/utility":na,"webruntime/expressions":Vu,"lightning/configProvider":za,"lightning/navigation":Nu,"webruntime_navigation/link":Iu,"webruntime_navigation/navigation":Ns,"webruntime/routerContainer":Du,"webruntime/routingService":Js,"wire-service":dc,"webruntime/overrides":_s,"experience/store":cu,aura:wc,transport:ao,logger:Gr,assert:ae}),ur.default&&!wr(ur.default)&&Oi({"@app/user":{isGuest:!0,id:null,csrfToken:null}});var Gu=v.registerComponent(Ou,{tmpl:we});cr.default=Gu,Object.defineProperty(cr,"__esModule",{value:!0})});