LWR.define('@luvio/runtime', ['force/luvioRuntimeWebruntime'], function(m) { return m && typeof m === 'object' && 'default' in m ? m.default : m; });(function() { LWR.define("force/luvioRegistry",["exports"],function(i){const t=[],e=[];function n(i){t.push(i),e.forEach(t=>i(t))}i.findRegistrations=function(i){return e.filter(t=>t.id===i)},i.forEachRegistration=n,i.register=function(i){e.push(i),t.forEach(t=>t(i))},i.withRegistration=function(i,t){n(e=>{e.id===i&&t(e)})},Object.defineProperty(i,"__esModule",{value:!0})});
})();LWR.define('@luvio/registry', ['force/luvioRegistry'], function(m) { return m && typeof m === 'object' && 'default' in m ? m.default : m; });(function() { LWR.define("experience/uri",["exports"],function(e){function n(e){return encodeURIComponent(e).replace(/[!'()~]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())}function t(e){const t="object"==typeof e&&null!=e?e:{};return"URLSearchParams"in globalThis?new URLSearchParams(t).toString():Object.keys(t).map(e=>n(e)+"="+n(t[e])).join("&")}e.composeQueryString=t,e.composeUri=function(e,n){const o="string"==typeof e?e:"",r=t(n);if(r){const e=-1!==o.indexOf("?")?"&":"?";return`${o}${e}${r}`}return o},Object.defineProperty(e,"__esModule",{value:!0})});
})();(function() { LWR.define("experience/coercion",["exports"],function(e){function r(e){return function(e){return"number"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Number]"===Object.prototype.toString.call(e)}(e)&&e!==+e}e.coerceBooleanProperty=function(e){return null!=e&&"false"!==`${e}`.toLowerCase()},e.coerceNumberProperty=function(e,r=0){return function(e){return!isNaN(parseFloat(String(e)))&&!isNaN(Number(e))}(e)?Number(e):r},e.coerceStringProperty=function(e,n){const t=null==e||r(e)?"":e.toString();return t.length>0?t:n},Object.defineProperty(e,"__esModule",{value:!0})});
})();(function() { LWR.define("experience/serializeError",["exports","lwc"],function(e,r){const o=[EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError,globalThis.DOMException,globalThis.AssertionError,globalThis.SystemError].filter(Boolean).map(e=>[e.name,e]),t=new Map(o),n=r.registerComponent(t,{tmpl:void 0,sel:"experience-serialize-error",apiVersion:63});class s extends Error{constructor(e){super(s._prepareSuperMessage(e)),this.name="NonError"}static _prepareSuperMessage(e){try{return JSON.stringify(e)}catch{return String(e)}}}r.registerDecorators(s,{fields:["name"]});const i=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0},{property:"cause",enumerable:!1}],a=Symbol(".toJSON was called"),u=e=>n.get(e)??Error,c=({from:e,seen:r,to:o,forceEnumerable:t,maxDepth:n,depth:s,useToJSON:p,serialize:l})=>{if(!o)if(Array.isArray(e))o=[];else if(!l&&f(e)){o=new(u(e.name))}else o={};if(r.push(e),s>=n)return o;if(p&&"function"==typeof e.toJSON&&!0!==e[a])return(e=>{e[a]=!0;const r=e.toJSON();return delete e[a],r})(e);const m=e=>c({from:e,seen:[...r],forceEnumerable:t,maxDepth:n,depth:s,useToJSON:p,serialize:l});for(const[t,n]of Object.entries(e))"function"==typeof Buffer&&Buffer.isBuffer(n)?o[t]="[object Buffer]":null===n||"object"!=typeof n||"function"!=typeof n.pipe?"function"!=typeof n&&(n&&"object"==typeof n?r.includes(e[t])?o[t]="[Circular]":(s++,o[t]=m(e[t])):o[t]=n):o[t]="[object Stream]";for(const{property:r,enumerable:n}of i)void 0!==e[r]&&null!==e[r]&&Object.defineProperty(o,r,{value:f(e[r])?m(e[r]):e[r],enumerable:!!t||n,configurable:!0,writable:!0});return o};function f(e){return Boolean(e)&&"object"==typeof e&&"name"in e&&"message"in e&&"stack"in e}e.deserializeError=function(e,r={}){const{maxDepth:o=Number.POSITIVE_INFINITY}=r;if(e instanceof Error)return e;if(function(e){return Boolean(e)&&"object"==typeof e&&"message"in e&&!Array.isArray(e)}(e)){const r=u(e.name);return c({from:e,seen:[],to:new r,maxDepth:o,depth:0,serialize:!1})}return new s(e)},e.registerErrorConstructor=function(e,r){n.set(e,r)},e.serializeError=function(e,r={}){const{maxDepth:o=Number.POSITIVE_INFINITY,useToJSON:t=!0}=r;return"object"==typeof e&&null!==e?c({from:e,seen:[],forceEnumerable:!0,maxDepth:o,depth:0,useToJSON:t,serialize:!0}):"function"==typeof e?`[Function: ${e.name??"anonymous"}]`:e},Object.defineProperty(e,"__esModule",{value:!0})});
})();(function() { LWR.define("experience/utilsInternal",["exports"],function(e){const t=Object.prototype.toString,n=Object.prototype.hasOwnProperty,r=Function.prototype.toString,o=r.call(Object);function i(e){return"function"==typeof e}function c(e){return"object"==typeof e&&null!==e}function s(e){return i(e)||c(e)}function u(e){return t.call(e)}function a(e){if(!c(e)||"[object Object]"!==u(e))return!1;const t=Object.getPrototypeOf(Object(e));if(null===t)return!0;const s=n.call(t,"constructor")&&t.constructor;return i(s)&&s instanceof s&&r.call(s)===o}function l(e){return null==e}const f="#REF:$";function p(e,t){return e.localeCompare(t)}function y(e,t,n,r,o=f){if(!c(e))return e;const i=e;return n.has(i)?e:(n.set(i,o),Array.isArray(i)?i.map((e,i)=>{const c=`${o}[${String(i)}]`;return y(e,t,n,r,c)}):a(e)?Object.keys(e).sort(t).reduce((i,c)=>{const s=`${o}.${c}`;return i[c]=y(e[c],t,n,r,s),i},{}):e)}function d(e,t=[],n="#REF:$"){if(c(e)&&!Object.isFrozen(e)){const r=e;if("undefined"==typeof window&&!a(r)&&!Array.isArray(r)){const e=`unsupported type '${u(r)}' found at '${n}'`;t.push(new Error(e))}Object.freeze(r);for(const e of Object.keys(r))d(r[e],t,`${n}.${e}`)}const r=Object.create(null);return Object.defineProperty(r,"value",{enumerable:!0,value:e}),Object.defineProperty(r,"errors",{enumerable:!0,value:t}),r}const b=new WeakSet;function h(e,t){try{const n=Reflect.get(e,t);Reflect.defineProperty(e,t,{enumerable:!0,get:()=>"object"==typeof n&&null!==n?g(n):n})}catch{}}function g(e){if("object"!=typeof e||null===e||b.has(e))return e;if(b.add(e),Object.isFrozen(e)){const t=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));for(const[n,r]of Object.entries(e))Reflect.set(t,n,"object"==typeof r&&null!==r?g(r):r);return Object.freeze(t)}for(const t of Object.keys(e))h(e,t);return Object.freeze(e)}function m(e,t,n){const r=n=>String.prototype.split.call(t,n).filter(Boolean).reduce((e,t)=>null!=e?e[t]:e,e),o=r(/[,[\]]+?/)||r(/[,[\].]+?/);return void 0===o||o===e?n:o}function j(){const e=[],t=[],n=new WeakMap,r="#REF:$";function o(e,o){const i=String(e),s=n.get(this),u=s?s+(Array.isArray(this)?`[${i}]`:"."+i):Array.isArray(this)?`[${i}]`:i;if(!c(o)||o!==Object(o))return void 0===o?(t.push(u),"#REF:undefined"):o;const a=o;if(n.has(a)){const e=n.get(a);return e?`${r}${"["===e[0]?"":"."}${e}`:r}return n.set(a,u),a}return o.errors=()=>e,o.pathsUndefined=()=>t,o}function v(){const e=new Map,t="#REF:$";function n(t,n){const r=e.get(t);let o=t.substring(6);0===o.indexOf(".")&&(o=o.substring(1));const i=o?m(n,o):n;for(const e of r)e.value[e.key]=i;e.delete(t)}return function(r,o){if("string"==typeof o&&0===o.indexOf(t))return e.has(o)||e.set(o,[]),e.get(o).push({value:this,key:r}),o;if(!c(o)||o!==Object(o))return"string"==typeof o&&"#REF:undefined"===o?void 0:o;if(""===r){const t=this[""];for(const r of e.keys())n(r,t)}return o}}const O="#REF:$";function w(e,t,n,r,o=O){if(e===t)return!0;if(null==e||null==t||"object"!=typeof e||"object"!=typeof t)return e!=e&&t!=t;if(n.has(e))return n.get(e)===t;if(n.set(e,t),Array.isArray(e)){const i=e.length;if(!Array.isArray(t)||i!==t.length)return!1;for(let c=i;0!=c--;){const i=`${o}[${String(c)}]`;if(!w(e.at(c),t.at(c),n,r,i))return!1}return!0}if(a(e)){const i=Reflect.ownKeys(e),c=i.length;if(!a(t)||c!==Reflect.ownKeys(t).length)return!1;for(let s=c;0!=s--;){const c=i.at(s),u=`${o}.${String(c)}`;if(!Reflect.has(t,c)||!w(Reflect.get(e,c),Reflect.get(t,c),n,r,u))return!1}return!0}return!1}const A=function(){let e=0;return()=>i(crypto?.randomUUID)?crypto.randomUUID():i(crypto?.getRandomValues)?[1e7,1e3,4e3,8e3,1e11].join("-").replace(/[018]/g,e=>(Number(e)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(e)/4).toString(16)):String(++e)}();const R=new WeakMap,$=new WeakMap,k=new WeakMap;function S(e){return!!R.has(e)&&(clearTimeout(R.get(e)),$.has(e)&&clearTimeout($.get(e)),R.delete(e),$.delete(e),k.delete(e),!0)}const P=Symbol(),F=["connect","disconnect","update"];function D(e,t){const n=Reflect.get(e,t),r={...e};Reflect.deleteProperty(r,t);return["function"==typeof n||void 0===n?n:()=>Boolean(n),r]}function E(e,t,n){let r=0;const o=[],i=[...e];for(;;){let e=0,c=!0;for(let o=r;o<i.length;o++){const s=t*e+i[o];i[o]=Math.floor(s/n),e=s%n,c&&(i[o]?c=!1:r=o)}if(o.unshift(e),c)return o}}const T="0123456789abcdefghijklmnopqrstuvwxyz",M=[...T].reduce((e,t,n)=>(e[t]=n,e),{});e.CONDITION=P,e.base36Decode=function(e){if(!e)return e;const t=E([...e].map(e=>{const t=M[e];if(void 0===t)throw new TypeError(`Invalid base 36 digit: ${e}`);return t}),36,256);return(new TextDecoder).decode(new Uint8Array(t))},e.base36Encode=function(e){return e?E((new TextEncoder).encode(e),256,36).map(e=>T[e]).join(""):e},e.baseConvert=E,e.circularRefReplacer=j,e.circularRefReviver=v,e.clearDebounceTimeout=S,e.createConditionalAdapter=function(e,t,n){const r=arguments.length;let o,c;if(r>2){if(void 0!==t&&!Array.isArray(t))throw new TypeError(`[utils] traps need to be an array; '${typeof t}' given`);if(void 0!==n&&!i(n))throw new TypeError(`[utils] callback needs to be a function; '${typeof n}' given`);o=t,c=n}else if(r>1){const e=Array.isArray(t),n=i(t);if(void 0!==t&&!e&&!n)throw new TypeError(`[utils] second parameter either needs to define traps via an array, or a callback function; '${typeof t}' given`);o=e?t:void 0,c=n?t:void 0}const s=Symbol(),u=Symbol();class a extends e{[u](e){const t=this[s].last??this[s].default;return t?.(e,this)??!0}constructor(...e){super(...e),this[s]={default:c,last:c};const t=this,n=new Set(Array.isArray(o)&&o.length>0?o.filter(e=>!F.includes(e)):[]);for(const e of n){const n=Reflect.get(this,e);i(n)&&Reflect.defineProperty(this,e,{enumerable:!0,writable:!1,configurable:!1,value:function(...r){if(t[u](e))return n?.apply(this,r)}})}}update(e,t){let n,r;if(Reflect.has(e,P)){const[o,i]=D(e,P);n=i,r=t,this[s].last=o}else if(t&&Reflect.has(t,"value")){const[o,i]=D(t.value,P);r={...t,value:i},n=e,this[s].last=o}else this[s].last=void 0,n=e,r=t;!Array.isArray(o)||Array.isArray(o)&&(0===o.length||o.includes("update"))?this[u]("update")&&super.update(n,r):super.update(n,r)}}return a.contextSchema={value:"required"},a},e.dateAdd=function(e,t){if(e instanceof Date){const n=new Date(e);return"number"==typeof t?.years&&n.setFullYear(n.getFullYear()+t.years),"number"==typeof t?.months&&n.setMonth(n.getMonth()+t.months),"number"==typeof t?.days&&n.setDate(n.getDate()+t.days),n}},e.dateSubtract=function(e,t){if(e instanceof Date){const n=new Date(e);return"number"==typeof t?.years&&n.setFullYear(n.getFullYear()-t.years),"number"==typeof t?.months&&n.setMonth(n.getMonth()-t.months),"number"==typeof t?.days&&n.setDate(n.getDate()-t.days),n}},e.debounce=function(e,t=0){let n,r,o=[];function i(){const{promise:t,resolve:c,reject:s}=n;if(k.has(t)){const e=setTimeout(i.bind(this),k.get(t));return $.set(t,e),void k.delete(t)}const u=o;r=void 0,o=[];try{const r=e.apply(this,u[u.length-1]);Promise.resolve(r).then(c,s).finally(()=>{n=void 0,R.delete(t),$.delete(t),k.delete(t)})}catch(e){s(e)}}return function(...e){n?S(n.promise):n=function(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}(),o.push(e),r=setTimeout(i.bind(this),t);const{promise:c}=n;return R.set(c,r),c}},e.deepClone=function(e){const t=(e,t)=>{const n=Object.create(null);return Object.defineProperty(n,"value",{enumerable:!0,value:e}),Object.defineProperty(n,"errors",{enumerable:!0,value:t}),n};if(!s(e))return t("symbol"==typeof e?Symbol.prototype.valueOf.call(e):e,[]);const n=j(),r=JSON.parse(JSON.stringify(e,n),v()),o=n.pathsUndefined();for(const e of o){e.split(".").reduce((e,t)=>{if(a(e))return!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=void 0),e[t]},r)}return t(r,n.errors())},e.deepEqual=function(e,t){const n=[],r=w(e,t,new WeakMap,n),o=Object.create(null);return Object.defineProperty(o,"value",{enumerable:!0,value:r}),Object.defineProperty(o,"errors",{enumerable:!0,value:n}),o},e.deepFreeze=function(e){return d(e)},e.deepSort=function(e,t){const n=new WeakMap,r=[],o=y(e,i(t)?t:p,n,r),c=Object.create(null);return Object.defineProperty(c,"value",{enumerable:!0,value:o}),Object.defineProperty(c,"errors",{enumerable:!0,value:r}),c},e.empty=function(e){if(Array.isArray(e))return 0===e.length;switch(typeof e){case"string":return""===e.toString();case"boolean":case"number":case"function":return!1;case"object":return 0===Object.keys(e??{}).length;default:return null==e}},e.extendDebouncedTimeout=function(e,t=0){return!!R.has(e)&&(k.set(e,t),!0)},e.get=m,e.getCookie=function(e){return globalThis.document?.cookie.split(";").map(e=>e.trim().split("=")).filter(([t])=>t.startsWith(e)).map(([,e])=>e)[0]},e.getObjectTag=u,e.isBlank=function(e){return l(e)||"string"!=typeof e||0===e.trim().length},e.isFunction=i,e.isInteger=e=>Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.isNil=l,e.isObject=s,e.isObjectLike=c,e.isPlainObject=a,e.isPromiseLike=function(e){return c(e)&&"function"==typeof e.then},e.readonly=g,e.uuidValidate=function(e){return"string"==typeof e&&/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(e)},e.uuidv4=A,Object.defineProperty(e,"__esModule",{value:!0})});
})();(function() { LWR.define("experience/utils",["exports","experience/utilsInternal"],function(e,t){Object.defineProperty(e,"clearDebounceTimeout",{enumerable:!0,get:function(){return t.clearDebounceTimeout}}),Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return t.debounce}}),Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return t.empty}}),Object.defineProperty(e,"extendDebouncedTimeout",{enumerable:!0,get:function(){return t.extendDebouncedTimeout}}),Object.defineProperty(e,"get",{enumerable:!0,get:function(){return t.get}}),Object.defineProperty(e,"getObjectTag",{enumerable:!0,get:function(){return t.getObjectTag}}),Object.defineProperty(e,"isBlank",{enumerable:!0,get:function(){return t.isBlank}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return t.isFunction}}),Object.defineProperty(e,"isInteger",{enumerable:!0,get:function(){return t.isInteger}}),Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return t.isNil}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return t.isObject}}),Object.defineProperty(e,"isObjectLike",{enumerable:!0,get:function(){return t.isObjectLike}}),Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return t.isPlainObject}}),Object.defineProperty(e,"isPromiseLike",{enumerable:!0,get:function(){return t.isPromiseLike}}),Object.defineProperty(e,"__esModule",{value:!0})});
})();(function() { LWR.define("experience/data",["exports","experience/utils","lwc","experience/coercion","experience/serializeError","transport","experience/uri"],function(e,t,r,n,s,o,c){const i="Aborted";class a extends Error{constructor(e){super(n.coerceStringProperty(e,i)),this.name="AbortError"}}r.registerDecorators(a,{fields:["name"]}),s.registerErrorConstructor("AbortError",a);const u=Symbol("abort"),l=Symbol("abortSignal"),f=new WeakMap;class p extends Promise{static from(e){return e instanceof p?e:e instanceof Promise||"function"==typeof e.catch?new p((t,r)=>e.then(t).catch(r)):new p((t,r)=>e.then(t,r))}static connect(e,t){const r=f.get(e),n=f.get(t),{controller:s}=r,{controller:o}=n,{signal:c}=s,{signal:i}=o;if(c===i)return;n.parent=r;const a=(e,t)=>{!e.reason&&(e.reason=t.reason)};if(i.aborted&&!c.aborted)a(r,n),s.abort();else if(c.aborted&&!i.aborted)a(n,r),o.abort();else{const e=()=>{i.removeEventListener("abort",e),i.aborted||(a(n,r),o.abort())},t=()=>{i.removeEventListener("abort",t),c.aborted||(a(r,n),s.abort())};c.addEventListener("abort",e),i.addEventListener("abort",t)}}constructor(e){const t=new AbortController,{signal:r}=t;let n=!1;const s=e=>{f.get(this).reason=e||i,t.abort()};super((t,o)=>{const c=()=>{r.removeEventListener("abort",c);const e=f.get(this);let t=!!e.isHandled,s=e.parent;for(;s;)t=t||!!s.isHandled,s=s.parent;if(e.isHandled=!0,!n&&!t){n=!0;const t=e.reason;o(new a(t instanceof Error?t.message:t))}};r.addEventListener("abort",c),e(e=>{!n&&!r.aborted&&t(e),n=!0},e=>{!n&&!r.aborted&&o(e),n=!0},s,r)}),this[u]=void 0,this[l]=void 0,f.set(this,{controller:t}),this[u]=s.bind(null),this[l]=r}_wrapHandler(e){return t.isFunction(e)?t=>{let r=e(t);if(r instanceof p)p.connect(this,r);else if(r instanceof Promise){const e=r=p.from(r);p.connect(this,e)}if(this[l].aborted){const e=f.get(this).reason;throw new a(e instanceof Error?e.message:e)}return r}:e}then(e,t){const r=p.from(super.then(this._wrapHandler(e),this._wrapHandler(t)));return p.connect(this,r),r}catch(e){const t=p.from(super.catch(this._wrapHandler(e)));return p.connect(this,t),t}finally(e){const t=p.from(super.finally(this._wrapHandler(e)));return p.connect(this,t),t}}class h{constructor(e,t){this.response=e,this.data=t}}function d(e,t){const r=new h(e,t);return Object.freeze(r),r}const b=["opaque","opaqueredirect"];async function m(e){const[t,r]=e instanceof h?[e.response,e.data]:[e,e];if(t instanceof Response&&!t.ok&&!b.includes(t.type))throw await r;return r}function g(e){let r,n,s,c;const i=new p((e,t,o,i)=>{r=e,n=t,s=o,c=i});let a=!1;c.addEventListener("abort",()=>a=!0);return e((e,s)=>{const u=e instanceof Request,l=s&&"object"==typeof s?{...s,signal:c}:{signal:c},f=u?{...e.clone(),...l}:l,p=u?e.url:e;return a||function(e,r,n){let s={...r};delete s.interceptRequest,delete s.interceptResponse;let c=m;if(r&&t.isFunction(r.interceptResponse)){const{interceptResponse:n}=r;c=r=>{const o=n(r,e,s);return t.isPromiseLike(o)?Promise.resolve(o).then(m):m(o)}}const i=({url:t,requestInit:r}={})=>(r&&"object"==typeof r&&(s={...r,signal:n},delete s.interceptRequest,delete s.interceptResponse),o.fetch(t||e,s).then(c));if(r&&t.isFunction(r.interceptRequest)){const{interceptRequest:n}=r,o=n(e,s);return t.isPromiseLike(o)?Promise.resolve(o).then(i):i(o)}return i()}(p,f,c).then(e=>!a&&r(e)).catch(e=>!a&&n(e)),i},s,c),i}const y=(e,t)=>({url:e,requestInit:{method:"GET",credentials:"same-origin",headers:{"Content-Type":"application/json;charset=UTF-8"},...t&&"object"==typeof t?t:{}}});function R(e){return(t,r,n)=>{if(t instanceof Response){const{headers:s,status:o}=t,c=s.get("content-type");if("string"==typeof c&&c.includes("application/json")){const c=s.has("content-length")&&"chunked"!==s.get("transfer-encoding")?Number(s.get("content-length")):-1;if(204===o||0===c)return null;return d(t,e(t,r,n))}}return t}}const E=R(e=>e.ok?e.json():e);function j(e){const r=e&&"object"==typeof e?{...e}:{};return t.isFunction(r.interceptRequest)||(r.interceptRequest=y),t.isFunction(r.interceptResponse)||(r.interceptResponse=E),r}function w(e,t="string"){return null===e||("array"===t?void 0===e||Array.isArray(e):["undefined",t].includes(typeof e))}function A(e){return null!==e&&"object"==typeof e&&Reflect.has(e,"message")&&Reflect.has(e,"type")&&w(e?.message)&&w(e?.type)&&w(e?.arguments,"object")}function v(e){return e?Reflect.ownKeys(e).reduce((t,r)=>("string"==typeof r&&Reflect.set(t,r,Reflect.get(e,r)),t),{}):{}}function P({message:e,type:t,arguments:r}){return{message:e??"",type:t??"",arguments:v(r)}}function q(e){return Array.isArray(e)?e.reduce((e,t)=>(A(t)&&e.push(P(t)),e),[]):A(e)?[P(e)]:[]}function L(e){return e.find(e=>e.message.length>0)?.message??""}function F(e){if(function(e){return null!==e&&"object"==typeof e&&Reflect.has(e,"status")&&Reflect.has(e,"errors")&&w(e?.status,"number")&&w(e?.errors,"array")}(e)){const{status:t,errors:r}=e;return{status:t??null,errors:q(r)}}return{status:null,errors:q(e)}}class O extends Error{constructor(e){super(),this.name="FetchError",this.errors=[],this.status=null;let{status:t,errors:r}=F(e);this.status=t,this.errors=r,this.message=L(r),Object.defineProperty(this,"errors",{enumerable:!0,configurable:!1,get:()=>r,set(e){r=q(e),this.message=L(r)}}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!1,get:()=>t,set(e){t="number"==typeof e?e:null}})}}function x(e){function t(e){return"string"==typeof e||null==e}return null!==e&&"object"==typeof e&&Reflect.has(e,"message")&&Reflect.has(e,"errorCode")&&t(e?.message)&&t(e?.errorCode)}function S(e){if(e&&"object"==typeof e&&(Reflect.has(e,"url")||Reflect.has(e,"body"))){const{url:t="",body:r}=e,n=r instanceof URLSearchParams?Object.fromEntries(r.entries()):r instanceof FormData?function(e){const t={};for(const[r,n]of e)"string"==typeof n&&(t[r]=n);return t}(r.entries()):{};try{const{searchParams:e}=new URL(t);return{...n,...Object.fromEntries(e.entries())}}catch{return n}}return{}}function C({message:e,errorCode:t},r){return{type:t??"",message:e??"",arguments:S(r)}}function H(e,t){return Array.isArray(e)?e.reduce((e,r)=>(x(r)&&e.push(C(r,t)),e),[]):x(e)?[C(e,t)]:[]}r.registerDecorators(O,{fields:["name","errors","status"]}),s.registerErrorConstructor("FetchError",O);const _=R((e,t,r)=>e.ok?e.json():e.json().then(n=>{throw new O({status:e.status,errors:H(n,{...r,url:t})})}));Object.defineProperty(e,"composeQueryString",{enumerable:!0,get:function(){return c.composeQueryString}}),Object.defineProperty(e,"composeUri",{enumerable:!0,get:function(){return c.composeUri}}),e.ABORT=u,e.ABORT_SIGNAL=l,e.AbortError=a,e.AbortablePromise=p,e.FetchError=O,e.connectApiResponseInterceptor=_,e.createFetchResponse=d,e.createResponseInterceptor=R,e.defaultRequestInterceptor=y,e.defaultResponseInterceptor=E,e.fetchAbortable=g,e.fetchService=function(e,t){return g((r,n,s)=>{if("function"==typeof e){e((e,t)=>r(e,j(t)),n,s)}else r(e,j(t))})},e.transformConnectApiErrorResponse=H,Object.defineProperty(e,"__esModule",{value:!0})});
})();(function() { LWR.define("experience/store",["exports","experience/utils","experience/utilsInternal","@luvio/runtime","@luvio/registry","experience/serializeError","lwc","experience/data"],function(t,e,i,s,r,n,o,c){const a=new Map,h=new Map,u=new Map,d={},l=new WeakMap,b=new Map,f=new WeakMap,y=new Map,p="experience::ɵɵStore",g="experience::ɵɵMeta",_="ɵɵErrors",m=new s.InMemoryStore;m.set(p,{}),m.set(g,{});let S=m;function k(){return S.get(p)}function v(){return S.get(g)}function w(t){return Reflect.get(k(),t)}function O(t,e){const i=k();Reflect.set(i,t,e),S.set(p,i)}function P(t){return Reflect.get(v(),t)}function A(t,e){const i=v();Reflect.set(i,t,e),S.set(g,i)}function j(t,e,...i){const s=JSON.stringify([t,e,...i]),r=v();return Reflect.has(r,_)&&!0===r[_][s]}function E(t,e,...i){const s=JSON.stringify([t,e,...i]),r=v();!Reflect.has(r,_)&&(r[_]={}),r[_][s]=!0}function $(t,e,...i){const s=JSON.stringify([t,e,...i]),r=v();delete r[_]?.[s]}const C={id:"commandModule",runtimeDependencies:{store:!0},setCommandRuntime:({store:t})=>S=function(t){if(t!==S){const e=t.keys(),i=e.contains(p),s=e.contains(g);if(i&&s){const e=t=>{!y.has(t)&&y.set(t,[])},i=t.get(p);Object.keys(i).forEach(e);const s=t.get(g),r=Reflect.get(s,_)??{};for(const[t,i]of Object.entries(r))if(i){const i=JSON.parse(t),s=i.at(0);e(s),y.get(s)?.push(i.slice(1))}for(const t of a.values()){const{name:e,options:i}=t;if(y.has(e)&&Array.isArray(i.onRehydration)){const s=y.get(e);for(const e of i.onRehydration)e?.(t.localState,{errorPaths:s})}y.delete(e)}}!i&&t.set(p,{}),!s&&t.set(g,{})}return t}(t)};r.register(C);const R=Object.prototype.hasOwnProperty,K=["data","error","loaded","loading"];function L(t,e){l.set(t,e);const i=t.load();return l.delete(t),i}function M(t){const e=n.serializeError(t);return"string"==typeof e?e:JSON.stringify(e)}function x(t){const e=t=>("NonError"===t.name&&(t.message=t.message.replace(/^"|"$/g,"")),t);try{return e(n.deserializeError(JSON.parse(t)))}catch(i){return e(n.deserializeError(t))}}function F(t,e){const s=i.deepSort(e??{}).value,r=i.deepSort(t??{}).value;return`${JSON.stringify(s,i.circularRefReplacer())}:${JSON.stringify(r,i.circularRefReplacer())}`}function N(t){return e.isPlainObject(t)&&Object.keys(t).every(t=>K.includes(t))&&("string"==typeof t.error||void 0===t.error)&&"boolean"==typeof t.loaded&&"boolean"==typeof t.loading}function z(t){if(e.isPlainObject(t)){const e=Object.keys(t);return e.length>0&&e.some(e=>N(t[e]))}return!1}function J(t,e){if(z(t))return t;const i=t instanceof Error?{data:void 0,error:M(t)}:{data:t,error:void 0};return e="string"==typeof e?e:"{}",{[e]:{...i,loaded:!0,loading:!1}}}function V(t,s,r,n){const o=`${t.name}.${r}`,c=t.get(r),a=(...t)=>t.reduce((t,i)=>{const s=z(i);return Object.keys(i).forEach(r=>{const n=t[r],o=i[r];s&&e.isPlainObject(n)&&e.isPlainObject(o)?t[r]=a(n,o):t[r]=o}),t},{});return R.call(d,o)&&d[o]>0||z(c)?(h=J(s,n),e.isPlainObject(c)?a(i.deepClone(c).value,h):h):s;var h}function T(t,e,i){const s=`${t.name}.${i}`,r=t.get(i);return z(r)?Object.keys(r).reduce((t,i)=>{const s=J(e,i);return t[i]={...r[i],...s[i]},t},{}):R.call(d,s)&&d[s]>0?Object.keys(d).reduce((t,i)=>{if(-1!==i.indexOf(`${s}.`)){const s=i.substring(i.lastIndexOf(".")+1),r=J(e,s);t[s]=r[s]}return t},{}):e}function D(t,i,s=!1){const r=Array.isArray(i),n=i?.at?.(1);function o(i,s){const r=`${t.name}.${i}`;return R.call(d,r)&&d[r]>0||z(s)?e.isPlainObject(s)?function(t,i){i="string"==typeof i?i:"{}";const s=e.isPlainObject(t)?t[i]:void 0,r=e.isPlainObject(s);return r&&"string"==typeof s.error?x(s.error):r?s.data:void 0}(s,n):void 0:s}class c{get name(){return t.name}get size(){return r&&e.isPlainObject(t.container)?Object.entries(t.container).reduce((s,[r,n])=>{const o=`${t.name}.${r}`;return R.call(d,o)&&d[o]>0||z(n)?e.isPlainObject(n)&&R.call(n,i[1])&&s++:s++,s},0):t.size}has(s){const n=t.has(s);if(r){const r=t.get(s),n=`${t.name}.${s}`;if(R.call(d,n)&&d[n]>0||z(r))return e.isPlainObject(r)&&R.call(r,i[1])}return n}get(e){const i=t.get(e);return r?o(e,i):i}set(e,i){const s=r?V(t,i,e,n):T(t,i,e);t.set(e,s)}delete(e){if(r&&z(t.get(e))){const s=t.get(e),r=R.call(s,i[1]);if(r){const r={...s};delete r[i[1]],0===Object.keys(r).length?t.delete(e):t.set(e,r)}return r}return t.delete(e)}clear(){t.clear()}update(e,i){return t.update(e,s=>{const c=r?o(e,s):s,a=i(c);return r?V(t,a,e,n):T(t,a,e)})}dispatch(e,i){return t.dispatch(e,i)}}return s?new class extends c{subscribe(e,i){return t.subscribe(e,i)}subscribeAction(i,s){return e.isFunction(s),t.subscribeAction(i,s)}}:new c}function I(t){return new class{get config(){return t.config}get(){return t.get()}load(){return L(t,!0)}subscribe(i){return e.isFunction(i),t.subscribe(i)}subscribeAction(i,s){return e.isFunction(s),t.subscribeAction(i,s)}subscribeLoad(i){return e.isFunction(i),t.subscribeLoad(i)}}}function W(t,e,i){return!i[t]&&(i[t]=[]),i[t].push(e),{unsubscribe(){const s=i[t],r=s?.indexOf(e);r>-1&&s.splice(r,1)}}}function q(t,i,s,r,n,o,c){const a=t[r];if(e.isFunction(a))try{const t={type:n,payload:o};"error"===r?a(t,s,c):a(t,s)}catch(t){}}function B(t,e,i,s,r,n,o){if(t[r]){const e=t[r];for(const t of e)"error"===s?q(t,0,i,s,r,n,o):q(t,0,i,s,r,n)}}function G(t,e,i=t=>t){return Object.entries(t).reduce((t,[s,r])=>{var n;return t[s]=(n=r,(t,s,r)=>{r?n(i(t),e(),r):n(i(t),e())}),t},{})}function H(t,i,...s){const r=new t(...arguments.length>2?s:[]);return f.set(r,!0),r.update(e.isPlainObject(i)?i:{}),r}function Q(t,e,...s){return(r,n)=>{let o,c=!1,a=!1;const h=H(t,e,...s);h.connect();const u=()=>{a=!0,o?.unsubscribe(),h.disconnect()},d=t=>{function e(){u(),r(t)}a||(!0===n?.once?e():!0===n?.loaded?t.loaded&&e():!0===n?.stable?t.loaded&&!t.loading&&e():(!0===n?.untilLoaded&&t.loaded&&u(),!0===n?.untilStable&&t.loaded&&!t.loading&&u(),r(t)))};return o=h.subscribe((t,e,s)=>{c=!0;const r=h._read();d(s?i.readonly({...r,error:s}):i.readonly(r))}),c||d(i.readonly(h._read())),{unsubscribe:u}}}function U(t,e,i,s){const r=`${t.name}:${e}`;A(r,(s?[s]:Object.keys(i)).reduce((t,e)=>(t[e]=performance.now()+performance.timeOrigin,t),P(r)??{})),t.set(e,i)}class X extends Error{constructor(t){super("string"==typeof t?t:t instanceof Error?t.message:void 0),this.name="StoreActionError",this.error=t}}o.registerDecorators(X,{fields:["name"]}),n.registerErrorConstructor("StoreActionError",X);const Y=Object.freeze({});function Z(t){const{loader:i}=t||{},s=e.isPlainObject(i);return{handler:!s&&e.isFunction(i)?i:s&&e.isFunction(i.handler)?i.handler:void 0,abortable:s&&!0===i.abortable}}function tt(t,e,i,s){const r=i?{key:s,subscriber:t,unsubscribable:i}:{key:s,subscriber:t};return e.push(r),{unsubscribe:()=>{r.unsubscribable?.unsubscribe();const t=e,i=t.indexOf(r);i>-1&&t.splice(i,1)}}}function et(t){for(const e of t)delete e.unsubscribable}function it(t,e,i){const s=`${t.name}.${e}`;return i?`${s}.${i}`:s}function st(t,i,s,r=1){const n=it(t,i);[n,`${n}.${s}`].forEach(t=>{const i=d[t],s=(e.isInteger(i)?i:0)+r;s>0?d[t]=s:delete d[t]})}function rt(t){return N(t)?t:function(t=!1){return{data:void 0,error:void 0,loaded:!1,loading:t}}()}t.Store=class{constructor(t,i=Object.freeze({})){if(this.actions={},this.actionSubscribers={},this.subscribers={},this.localState=D(this),this.name=t,this.options=i,a.has(t))return a.get(t);if(a.set(t,this),Reflect.has(i,"state")?this._updateContainer(e.isFunction(i.state)?i.state():i.state):e.isPlainObject(w(this.name))||O(this.name,{}),e.isPlainObject(i.actions))for(const[s,r]of Object.entries(i.actions))if(e.isPlainObject(r)&&"string"==typeof r.namespace&&e.isFunction(r.handler)){const{namespace:t,handler:e}=r,i=`${t}/${s}`;if(h.has(i))throw new TypeError(`[store] handler already registered for action type in namespace '${t}': ${s}`);h.set(i,this),this._registerAction(s,e)}else{if(!e.isFunction(r))throw new TypeError(`[store] invalid action configuration for store '${t}': ${s}`);this._registerAction(s,r)}if(Array.isArray(i.plugins)){const t=D(this,void 0,!0);for(const e of i.plugins)e(t)}if(y.has(t)&&Array.isArray(i.onRehydration)){const e=D(this),s=y.get(t);for(const t of i.onRehydration)t?.(e,{errorPaths:s})}y.delete(t)}get size(){return Object.keys(this.container).length}get container(){return w(this.name)}_updateContainer(t){const s=i.readonly(t);O(this.name,e.isPlainObject(s)?s:{})}_has(t){return Reflect.has(this.container,t)}_get(t){const e=this.container,i=Reflect.has(e,t)?e[t]:void 0;return j(this.name,t)?x(i):i}_delete(t){return!!this._has(t)&&(this._notify(t,()=>{$(this.name,t);const{[t]:e,...i}=this.container;this._updateContainer(i)}),!0)}_update(t,e){this._notify(t,()=>this._set(t,e))}_set(t,e){const i=e instanceof Error,s=i?M(e):e;i?E(this.name,t):$(this.name,t),this._updateContainer({...this.container,[t]:s})}_notify(t,i){const s=this._get(t);this._notifyMutationSubscribers("before",t,s instanceof Error?void 0:s),e.isFunction(i)&&i();const r=this._get(t);r instanceof Error?this._notifyMutationSubscribers("error",t,void 0,r):this._notifyMutationSubscribers("after",t,r)}_registerAction(t,e){this.actions[t]=t=>e.call(null,this.localState,t)}_notifyActionSubscribers(t,e,i,s){B(this.actionSubscribers,0,this.localState,t,e,i,s)}_notifyMutationSubscribers(t,e,i,s){B(this.subscribers,0,this.localState,t,e,i,s)}_dispatchAction(t,s,r){const n=i.readonly(r);return new Promise((i,r)=>{this._notifyActionSubscribers("before",t,n);const o=e=>{this._notifyActionSubscribers("after",t,e),i(e)},c=e=>{const i=e instanceof Error?e:new X(e);this._notifyActionSubscribers("error",t,n,i),r(i)};try{const t=s(n);e.isPromiseLike(t)?t.then(o,c):o(t)}catch(t){c(t)}})}has(t){return this._has(t)}get(t){return this._get(t)}set(t,e){this._update(t,e)}delete(t){return this._delete(t)}clear(){for(const t of Object.keys(this.container))this._delete(t)}update(t,i){if(e.isFunction(i)){const e=t;this._update(e,i(this._get(e)))}}dispatch(t,i){const s=this.actions[t];if(e.isFunction(s))return this._dispatchAction(t,s,i);if(t.includes("/")&&h.has(t)){const e=t.substring(t.indexOf("/")+1);return h.get(t).dispatch(e,i)}const r=`unknown action type: ${t}`;return Promise.reject(new TypeError(r))}subscribe(t,e){const i=t,s="function"==typeof(r=e)?{after:r,error:r}:r;var r;const n=this.subscribers,o=W(i,s,n),c="undefined"!=typeof window&&!0===this.options?.discard,a={unsubscribe:()=>{o.unsubscribe(),!c||Reflect.has(n,i)&&0!==n[i].length||(delete n[i],this._delete(i))}};if(this._has(i)){const t=this._get(i);t instanceof Error?q(s,0,this.localState,"error",i,void 0,t):q(s,0,this.localState,"after",i,t)}return a}subscribeAction(t,e){const i="function"==typeof e?{after:e,error:e}:e;if(t.includes("/")&&h.has(t)){const i=t.substring(t.indexOf("/")+1);return h.get(t).subscribeAction(i,e)}return W(t,i,this.actionSubscribers)}},t.StoreActionError=X,t.StoreAdapter=class{get config(){return this._config||Y}constructor(t,s,r,n){if(this.uuid=i.uuidv4(),this.connectors=[],this.rawMutationSubscribers=[],this.rawActionSubscribers=[],this.rawLoadSubscribers=[],this.loadSubscribers={},this.activeSubscriptions=[],this.localState=void 0,this.isConnected=!1,this.isSubscribed=!1,this._config=void 0,this._context=void 0,this.entryKey=void 0,this.lastCallbackEntry=void 0,this.dataCallback=t,this.store=s,this.key=r,this.options=n,n&&Array.isArray(n.connectors))for(const t of n.connectors)e.isPlainObject(t)?this.connectors.push(t):e.isFunction(t)&&this.connectors.push({connect:t})}get loadingPromises(){return u.get(this.store.name)}_notifyConnectors(t){for(const i of this.connectors)e.isFunction(i[t])&&i[t](I(this),{type:this.key,payload:this.config},this.localState)}_notifyLoadSubscribers(t,e){const{data:i}=this._read();B(this.loadSubscribers,0,this.localState,t,this.key,i,e)}_obtainLoadingPromiseKey(){return`${this.key}:${this.entryKey}`}_obtainRawEntryContainer(){return this.store.get(this.key)}_obtainEntryContainer(){const t=this._obtainRawEntryContainer();return e.isPlainObject(t)?{...t}:{}}_obtainEntry(t){const i=e.isPlainObject(t)?t:this._obtainEntryContainer();return i?.[this.entryKey]}_read(t){return rt(t||this._obtainEntry())}_writeContainer(t){this.store.set(this.key,t)}_write(t,e=this.entryKey){const i=this._obtainEntryContainer();i[e]=t,this._updateMeta("w",e),this._writeContainer(i)}_updateMeta(t,e=this.entryKey){const i=`${this.store.name}:${this.key}`,s=P(i)??{};"d"===t?Reflect.deleteProperty(s,e):Reflect.set(s,e,performance.now()+performance.timeOrigin),A(i,s)}_callback(t){if(this.isConnected&&this.dataCallback&&!i.deepEqual(t,this.lastCallbackEntry).value){this.lastCallbackEntry=t;const{error:e}=t,s={...t};s.error="string"==typeof e?x(e):void 0,i.readonly(s),this.dataCallback.call(null,s)}}_removeLoadingPromise(t){const i=this.loadingPromises,s=i?.get(t);i?.delete(t),e.clearDebounceTimeout(s),e.clearDebounceTimeout(b.get(t))}_unsubscribe(){if(this.isSubscribed){this.isSubscribed=!1,st(this.store,this.key,this.entryKey,-1);if("undefined"!=typeof window&&!0===(this.options?.discard||this.store.options.discard)&&e.isPlainObject(this._obtainRawEntryContainer())){const t=it(this.store,this.key,this.entryKey);if(!Reflect.has(d,t)){const t=this._obtainEntryContainer();if(delete t[this.entryKey],0===Object.keys(t).length){A(`${this.store.name}:${this.key}`,{}),this.store.delete(this.key)}else this._updateMeta("d"),this._writeContainer(t)}}this._notifyConnectors("disconnect")}for(const t of this.activeSubscriptions)t.unsubscribe();this.activeSubscriptions.splice(0,this.activeSubscriptions.length),et(this.rawMutationSubscribers),et(this.rawActionSubscribers),et(this.rawLoadSubscribers);for(const t of Object.keys(this.loadSubscribers))delete this.loadSubscribers[t];delete this.lastCallbackEntry}_subscribe(){if(!this.isConnected||!this._config)return;this._unsubscribe();const t=F(this._config,this._context);if(this.entryKey!==t){this.entryKey=t,this.localState=D(this.store,[this.key,this.entryKey,this.uuid]);const e=this._obtainRawEntryContainer();if(void 0!==e&&!z(e)){const t=J(e,this.entryKey);Object.keys(t).forEach(t=>this._updateMeta("w",t)),this._writeContainer(t)}}st(this.store,this.key,this.entryKey),u.has(this.store.name)||u.set(this.store.name,new Map),this._notifyConnectors("connect");for(const t of this.rawLoadSubscribers){const e=W(this.key,t.subscriber,this.loadSubscribers);this.activeSubscriptions.push(e),t.unsubscribable=e}this.isSubscribed=!0;if(this.activeSubscriptions.push(this.store.subscribe(this.key,(()=>{let t;const i=({payload:i})=>{if(this.entryKey&&(e.isPlainObject(t)&&Reflect.has(t,this.entryKey)||e.isPlainObject(i)&&Reflect.has(i,this.entryKey))){const t=this._obtainEntry(i);this._isValid(t)&&this._callback(this._read(t))}};return{before:({payload:e})=>{t=e},after:i,error:i}})())),Z(this.options).handler)if("undefined"!=typeof window||f.get(this))this._getAsync(this._read());else{const t=this._read();t.loaded||t.loading?this._callback(t):(this._notifyLoadSubscribers("before"),this._write({...t,loading:!0}))}else this._callback(this._read());for(const t of this.rawMutationSubscribers){const e=this.store.subscribe(this.key,t.subscriber);this.activeSubscriptions.push(e),t.unsubscribable=e}for(const t of this.rawActionSubscribers){const e=this.store.subscribeAction(t.key,t.subscriber);this.activeSubscriptions.push(e),t.unsubscribable=e}}_getAsync(t){const s=this._obtainLoadingPromiseKey(),r=this.loadingPromises?.get(s),n=e.isPromiseLike(r);return n?r:t.loaded||t.loading?t.loading&&!n?L(this,!1):this._isValid(t)?Promise.resolve(i.readonly(t)):L(this,!1):L(this,!1)}_isValid(t){if(this.options&&e.isFunction(this.options.validator))try{if(!this.options.validator({type:this.key,payload:i.readonly(t)},I(this),this.localState))return!1}catch{}const s=`${this.store.name}:${this.key}`,r=P(s)?.[this.entryKey];if("number"==typeof r){const t="number"==typeof this.options?.cache?.ttl&&!Number.isNaN(this.options.cache.ttl)&&this.options.cache.ttl>=-1?this.options?.cache?.ttl:300;if(-1===t)return!0;return 1e3*t>=performance.now()-(r-performance.timeOrigin)}return!0}_load(t,s){this._notifyLoadSubscribers("before");const{name:r}=this.store;try{const n=!1!==l.get(this),o=(n?e.debounce(t):t)({type:this.key,payload:this._config},this.localState);if(e.isPromiseLike(o)){n&&b.set(s,o);const t=c.AbortablePromise.from(o).then(e=>{const n=this._obtainLoadingPromiseKey(),o=this.loadingPromises?.get(n);if(n!==s){b.delete(s),this._removeLoadingPromise(s);const t=s.substring(s.indexOf(":")+1);$(r,this.key,t),this._write({data:e,error:void 0,loaded:!0,loading:!1},t)}else o&&o===t&&(b.delete(n),this._removeLoadingPromise(n),$(r,this.key,this.entryKey),this._write({data:e,error:void 0,loaded:!0,loading:!1}),this._notifyLoadSubscribers("after"));return i.readonly(this._read())},e=>{const n=this._obtainLoadingPromiseKey(),o=this.loadingPromises?.get(n);if(n!==s){b.delete(s),this._removeLoadingPromise(s);const t=s.substring(s.indexOf(":")+1);if(e instanceof c.AbortError){$(r,this.key,t);const e=this._obtainEntryContainer();this._write({...rt(e?.[t]),loading:!1},t)}else E(r,this.key,t),this._write({data:void 0,error:M(e),loaded:!0,loading:!1},t)}else o&&o===t&&(b.delete(n),this._removeLoadingPromise(n),e instanceof c.AbortError?($(r,this.key,this.entryKey),this._write({...this._read(),loading:!1}),this._notifyLoadSubscribers("after")):(E(r,this.key,this.entryKey),this._write({data:void 0,error:M(e),loaded:!0,loading:!1}),this._notifyLoadSubscribers("error",e)));return i.readonly(this._read())});return this.loadingPromises?.set(s,t),this._write({...this._read(),loading:!0}),t}$(r,this.key,this.entryKey),this._write({data:o,error:void 0,loaded:!0,loading:!1}),this._notifyLoadSubscribers("after")}catch(t){if(t instanceof c.AbortError)$(r,this.key,this.entryKey),this._write({...this._read(),loading:!1}),this._notifyLoadSubscribers("after");else{E(r,this.key,this.entryKey);const e=M(t);this._write({data:void 0,error:e,loaded:!0,loading:!1}),this._notifyLoadSubscribers("error",t)}}return b.delete(s),Promise.resolve(i.readonly(this._read()))}update(t,e){this._config=i.readonly(t),this._context=i.readonly(e??{}),this._subscribe()}connect(){this.isConnected||(f.has(this)&&f.set(this,!0),this.isConnected=!0,this._subscribe())}disconnect(){this.isConnected&&(f.has(this)&&f.set(this,!1),this.isConnected=!1,this._unsubscribe())}get(){return this._getAsync(this._read()).then(t=>{if("string"==typeof t.error)throw x(t.error);return t})}load(){const t=Z(this.options);if(!this.isSubscribed||!t.handler)return Promise.resolve(i.readonly(this._read()));const s=this._obtainLoadingPromiseKey(),r=this.loadingPromises?.get(s);if(e.isPromiseLike(r)&&(e.extendDebouncedTimeout(r)||e.extendDebouncedTimeout(b.get(s))))return r;const{handler:n}=t;return this._load(n,s)}subscribe(t){const i=t=>{const e="function"==typeof t.before?t.before:void 0,i="function"==typeof t.after?t.after:void 0,s="function"==typeof t.error?t.error:void 0;return e&&(t.before=(t,i)=>{!j(this.store.name,this.key,this.entryKey)&&e(t,i)}),i&&(t.after=(t,e)=>{const r=j(this.store.name,this.key,this.entryKey);if(r&&s){const i=x(this._read().error);s(t,e,i)}else r||i(t,e)}),t},s=()=>this.localState,r=t=>{const{payload:e}=t;return{type:t.type,payload:e?.[this.entryKey]?.data}},n=e.isFunction(t)?G(i({after:t,error:t}),s,r):G(i(t),s,r),o=this.isSubscribed?this.store.subscribe(this.key,n):void 0;return o&&this.activeSubscriptions.push(o),tt(n,this.rawMutationSubscribers,o)}subscribeAction(t,e){const i=()=>this.localState,s=G("function"==typeof e?{after:e,error:e}:e,i),r=this.isSubscribed?this.store.subscribeAction(t,s):void 0;return r&&this.activeSubscriptions.push(r),tt(s,this.rawActionSubscribers,r,t)}subscribeLoad(t){const i=()=>this.localState,s=e.isFunction(t)?G({after:t,error:t},i):G(t,i),r=this.isSubscribed?W(this.key,s,this.loadSubscribers):void 0;return r&&this.activeSubscriptions.push(r),tt(s,this.rawLoadSubscribers,r)}},t.deleteStoreAdapterValue=function(t,e,...i){const s=H(t,e,...i),r=s.store,n=s.key,o=D(r,[n,F(e),s.uuid]);A(`${r.name}:${n}`,{}),o.delete(n)},t.deserializeError=x,t.distributeStoreAdapterValue=function(t,e,...i){const s=H(t,{},...i),r=s.store,n=s.key,o=Reflect.get(r.container,n),c=`${r.name}.${n}`;R.call(d,c)&&d[c]>0||z(o)?U(r,n,T(r,e,n)):r.set(n,e)},t.getCurrentStoreAdapterValue=function(t,e,...i){let s;return Q(t,e,...i)(t=>{s=t},{once:!0}),s},t.getStoreAdapterValue=function(t,e,...i){const s=H(t,e,...i);return s.connect(),s.get().then(t=>t.data).finally(()=>{s.disconnect()})},t.hasSubscribers=function(t,i,s,r){const n=`${t.name}.${i}`;if(e.isPlainObject(s)||e.isPlainObject(r)){const t=`${n}.${F(s,r)}`;return Reflect.has(d,t)&&Number(d[t])>0}return Reflect.has(d,n)&&Number(d[n])>0||Reflect.has(t.subscribers,i)&&t.subscribers?.[i]?.length>0},t.serializeError=M,t.setStoreAdapterValue=function(t,e,i,...s){const r=H(t,i,...s),n=r.store,o=r.key,c=F(i);U(n,o,V(n,J(e,c),o,c),c)},t.wire=Q,Object.defineProperty(t,"__esModule",{value:!0})});
})();(function() { LWR.define("experience/dataProvider",["exports","lwc","experience/dataLayerObject","experience/store","experience/utils"],function(t,e,s,o,a){function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var c=n(s);const r=[];function i(t,e,s,o){const{k:a,c:n,i:i,s:d,f:l}=t;return l([e.hasDataLayerObjects?i(e.dataLayerObjects,function(t){return n("experience-data-layer-object",c.default,{props:{scriptDataAttributes:t.attributes,customObject:t.customObject},key:a(0,t.id)})}):r,d("",{key:1,slotData:e.dataProxyContext},r,s)])}var d=e.registerTemplate(i);i.slots=[""],i.renderMode="light",i.stylesheets=[],i.stylesheetToken="lwc-1cva0bnnf5d",i.legacyStylesheetToken="experience-dataProvider_dataProvider",e.freezeTemplate(i);const l="sfdc__dataprovider_action";class f extends CustomEvent{constructor(t,e,s){const o={onSuccess:a.isFunction(s)?s:a.isPlainObject(s)&&a.isFunction(s.onSuccess)?s.onSuccess:void 0,onError:a.isFunction(s)?s:a.isPlainObject(s)&&a.isFunction(s.onError)?s.onError:void 0};super(l,{bubbles:!0,cancelable:!0,composed:!0,detail:{type:t,payload:e,options:o}})}}const u=new WeakMap;function h(t){return function t(e){if(a.isFunction(e)&&e.constructor===I.constructor)return!0;const s=null!=e?Object.getPrototypeOf(e):null;return null!=s&&t(s)}(t)}function p(t){return function(t){const e=[];return function t(s,o){o&&e.push(s);const a=null!=s?Object.getPrototypeOf(s):null;h(a)&&t(a,!0)}(t,h(t)),e.reverse()}(t).reduce((t,e)=>{if(u.has(e)){const s=u.get(e);return{...t,...s}}return t},{})}const y=Symbol("handleDataProviderActionEventField"),b=Symbol("handleDataProviderActionEvent"),v=Symbol(),g=Symbol(),D=Symbol(),P=Symbol(),m=Symbol(),E=new o.Store("@@SfdcDataProvider",{discard:!0,actions:{sync:(t,e)=>e}});class S extends e.LightningElement{wireConnectedState({connected:t}){this[D]=t,t?(this.addEventListener(l,this[y]),this.sfdcId&&(this[P]=E.subscribe(this.sfdcId,({payload:t})=>{"object"==typeof t&&null!==t&&(this._sfdcData={...this._sfdcData??{},...t})}),this[m]=E.subscribeAction("sync",({payload:t})=>{t?.sfdcId===this.sfdcId&&t?.callback?.call(this,{type:t.type,payload:t.payload})}))):(this.removeEventListener(l,this[y]),this[P]?.unsubscribe(),this[m]?.unsubscribe(),this[P]=void 0,this[m]=void 0)}get sfdcData(){return this._sfdcData}set sfdcData(t){this._sfdcData=t}get dataProxyContext(){return{[v]:this.getData(),[g]:this}}hasData(t){return!0}updateComponents(){}getData(){return this.sfdcData}get sfdcIsConnected(){return this[D]}get hasDataLayerObjects(){return!!this.dataLayerObjects&&this.dataLayerObjects.length>0}constructor(){super(),this[D]=!1,this[P]=void 0,this[m]=void 0,this[y]=this[b].bind(this),this.sfdcId=void 0,this.sfdcFields=[],this.sfdcIsPreviewMode=!1,this.sfdcType=void 0,this.sfdcExpressionKey=void 0,this.sfdcIsViewLevelDataProvider=!1,this.generatedTemplate=void 0,this._sfdcData=void 0,this.dataLayerObjects=void 0,this._sfdcData={}}sfdcSynchronizeData(t,e){const s="object"==typeof t&&null!==t?t:{[t]:e},o=()=>{this._sfdcData={...this._sfdcData??{},...s}};this.sfdcId?(E.set(this.sfdcId,{...E.has(this.sfdcId)?E.get(this.sfdcId):{},...s}),!this[D]&&o()):o()}sfdcSynchronize(t,e,s){E.dispatch("sync",{type:t,sfdcId:this.sfdcId,..."function"==typeof s?{payload:e,callback:s}:{payload:void 0,callback:e}})}[b](t){if(t.defaultPrevented)return;const{detail:e,target:s}=t,{type:o,payload:a,options:n}=e,c=p(Object.getPrototypeOf(this).constructor);if(Reflect.has(c,o)){t.preventDefault(),t.stopPropagation();const e="function"==typeof n.onSuccess,r="function"==typeof n.onError;try{const t=c[o].call(this,a,this,s);t instanceof Promise?t.then(t=>(e&&n.onSuccess?.call(void 0,t,!0),t),t=>{r&&n.onError?.call(void 0,t,!1)}):e&&n.onSuccess?.call(void 0,t,!0)}catch(t){r&&n.onError?.call(void 0,t,!1)}}}}S.renderMode="light",S.preloadData=void 0,e.registerDecorators(S,{publicProps:{sfdcId:{config:0},sfdcFields:{config:0},sfdcIsPreviewMode:{config:0},sfdcType:{config:0},sfdcExpressionKey:{config:0},sfdcIsViewLevelDataProvider:{config:0},generatedTemplate:{config:0},sfdcData:{config:3},sfdcIsConnected:{config:1}},publicMethods:["hasData","updateComponents","getData"],track:{_sfdcData:1},wire:{wireConnectedState:{adapter:class{constructor(t){this.dataCallback=t}update(){}connect(){this.dataCallback({connected:!0})}disconnect(){this.dataCallback({connected:!1})}},method:1,config:function(t){return{}}}},fields:["dataLayerObjects"]});const I=e.registerComponent(S,{tmpl:d,sel:"experience-data-provider",apiVersion:63});t.DataProviderActionEvent=f,t.SFDC_DATA_ATTRIBUTE=v,t.SFDC_PROVIDER_ATTRIBUTE=g,t.default=I,t.registerAction=function(t,e,s){if(!h(t))throw new TypeError("[dataProvider] parameter 'ctor' needs to be a DataProvider constructor");if("string"!=typeof e)throw new TypeError("[dataProvider] parameter 'type' needs to be a string");if(!a.isFunction(s))throw new TypeError("[dataProvider] parameter 'handler' needs to be a function");u.has(t)||u.set(t,{});const o=u.get(t);if(Reflect.has(o,e))throw new TypeError(`[dataProvider] a handler has already been registered for action type '${e}'`);o[e]=s},Object.defineProperty(t,"__esModule",{value:!0})});
})();(function() { LWR.define("dxp_data_provider/dataProxy",["exports","lwc","experience/dataProvider"],function(t,e,a){class r extends e.LightningElement{constructor(...t){super(...t),this.routerContainerView=void 0,this.routeParams=void 0,this.attributes={},this._sfdcData=void 0,this.generated=void 0,this.html=void 0}get generatedTemplate(){return this.generated}set generatedTemplate(t){this.generated=t,this.html=t.html,this.attributes=this.evaluateAttributes(t.attributes),this.updateComponents()}get sfdcData(){return this._sfdcData}set sfdcData(t){this._sfdcData=t,this.updateComponents()}hasData(t){return function(t,e){return t?.[a.SFDC_PROVIDER_ATTRIBUTE]?.hasData?.(e)??!0}(this.sfdcData,t)}getData(){return t=this.sfdcData,t?.[a.SFDC_DATA_ATTRIBUTE]??t;var t}updateComponents(){this.generatedTemplate&&(this.attributes=this.evaluateAttributes(this.generatedTemplate.attributes))}connectedCallback(){this.updateComponents()}evaluateAttributes(t){return"function"==typeof t?t(this):{}}render(){return this.html}}r.renderMode="light",e.registerDecorators(r,{publicProps:{routerContainerView:{config:0},routeParams:{config:0},generatedTemplate:{config:3},sfdcData:{config:3}},publicMethods:["hasData","getData","updateComponents"],track:{attributes:1,_sfdcData:1},fields:["generated","html"]});const s=e.registerComponent(r,{tmpl:void 0,sel:"dxp_data_provider-data-proxy",apiVersion:63});t.default=s,Object.defineProperty(t,"__esModule",{value:!0})});
})();(function() { LWR.define("embedded_service_iframe/iframeWrapper",["exports","lwc"],function(e,r){const t={attrs:{"data-f6-region":"",role:"main"},key:0},s={key:1},a=[];function i(e,r,i,n){const{s:l,h:m}=e;return[m("main",t,[l("",s,a,i)])]}var n=r.registerTemplate(i);i.slots=[""],i.stylesheets=[],i.stylesheetToken="lwc-3dhekc6vnh1",i.legacyStylesheetToken="embedded_service_iframe-iframeWrapper_iframeWrapper",r.freezeTemplate(i);class l extends r.LightningElement{}const m=r.registerComponent(l,{tmpl:n,sel:"embedded_service_iframe-iframe-wrapper",apiVersion:63});e.default=m,Object.defineProperty(e,"__esModule",{value:!0})});
})();(function() { LWR.define("dxp_data_provider/userDataProvider",["exports","@salesforce/loader","lwc","experience/dataLayerObject","experience/dataProvider"],function(e,t,s,r,a){function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=i(r),o=i(a);const u=[];function c(e,t,s,r){const{c:a,s:i}=e;return[a("experience-data-layer-object",d.default,{props:{scriptDataAttributes:t.dataAttributes,customObject:t.userDataLayer},key:0}),i("",{key:1,slotData:t.dataProxyContext},u,s)]}var n=s.registerTemplate(c);c.slots=[""],c.renderMode="light",c.stylesheets=[],c.stylesheetToken="lwc-1qlnuek0fto",c.legacyStylesheetToken="dxp_data_provider-userDataProvider_userDataProvider",s.freezeTemplate(c);class l extends o.default{constructor(...e){super(...e),this.sfdcExpressionKey=void 0,this.childData=void 0,this.userId=void 0,this.isGuest=void 0}triggerAsyncImports(){void 0===this.isGuest&&t.load("@salesforce/user/isGuest").then(e=>{this.isGuest=e.default,!1===this.isGuest&&t.load("@salesforce/user/Id").then(e=>{this.userId=e.default})})}get sfdcData(){return{userId:this.userId,isGuest:this.isGuest,...this.childData}}hasData(e){return this.isGuest||void 0!==this.sfdcData[e]}get userDataLayer(){return{crmId:this.userId,attributes:{isGuest:this.isGuest}}}get dataAttributes(){return{providerType:"user"}}connectedCallback(){this.triggerAsyncImports()}render(){return n}}l.renderMode="light",s.registerDecorators(l,{publicProps:{sfdcExpressionKey:{config:0},childData:{config:0}},publicMethods:["hasData"],fields:["userId","isGuest"]});const p=s.registerComponent(l,{tmpl:n,sel:"dxp_data_provider-user-data-provider",apiVersion:63});e.default=p,Object.defineProperty(e,"__esModule",{value:!0})});
})();(function() { LWR.define("@view/frame",["exports","dxp_data_provider/dataProxy","dxp_data_provider/userDataProvider","lwc","webruntime/routerContainer","embedded_service_iframe/iframeWrapper"],function(e,r,t,a,d,i){function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=s(r),p=s(t),_=s(d),n=s(i);function u(e,r,t,a){const{c:d,fr:i,ssf:s}=e;return[d("dxp_data_provider-user-data-provider",p.default,{props:{sfdcExpressionKey:r.attributes.dxp_data_provideruserdataprovider_1_0.sfdcExpressionKey,generatedTemplate:r.attributes.dxp_data_provideruserdataprovider_1_0.generatedTemplate,sfdcIsPreviewMode:r.attributes.dxp_data_provideruserdataprovider_1_0.sfdcIsPreviewMode,childData:r.attributes.dxp_data_provideruserdataprovider_1_0.childData,sfdcFields:r.attributes.dxp_data_provideruserdataprovider_1_0.sfdcFields,sfdcId:r.attributes.dxp_data_provideruserdataprovider_1_0.sfdcId},key:0},[s("",function(e,t){return i(t,[d("dxp_data_provider-data-proxy",o.default,{props:{routerContainerView:r.routerContainerView,sfdcData:e,generatedTemplate:r.attributes.dxp_data_provideruserdataprovider_1_0.generatedTemplate,routeParams:r.routeParams},key:1})],0)})])]}var f=a.registerTemplate(u);u.renderMode="light",u.stylesheets=[],u.stylesheetToken="lwc-3tdhfs4d9ra",u.legacyStylesheetToken="___at___view-frame_frame",a.freezeTemplate(u);const c={attrs:{"data-component-id":"iframeWrapper-ba7e"},key:0};function l(e,r,t,a){const{c:d}=e;return[d("embedded_service_iframe-iframe-wrapper",n.default,c,[d("webruntime-router-container",_.default,{props:{view:r.routerContainerView,routeParams:r.routeParams},key:1})])]}var v=a.registerTemplate(l);l.renderMode="light",l.stylesheets=[],l.stylesheetToken="lwc-1te211ugcen",l.legacyStylesheetToken="___at___view-frame_dxp_data_provideruserdataprovider_1_0_html",a.freezeTemplate(l);const m=a.registerComponent(class{static get html(){return f}static get attributes(){return function(e){return{dxp_data_provideruserdataprovider_1_0:{sfdcIsPreviewMode:!1,sfdcFields:[],childData:{},sfdcId:"a9ef2d40-3690-3417-a830-72073ee5874e",sfdcExpressionKey:"User",generatedTemplate:{attributes:e=>({}),html:v}}}}}},{tmpl:f,sel:"@view-frame",apiVersion:63});e.default=m,Object.defineProperty(e,"__esModule",{value:!0})});
})();