buli
2023-07-18 df5aa8087c2c7328dc4188f05d762c8df1f0b07a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
LWR.define("lwr/profiler/v/0_8_8",["exports"],function(v){"use strict";var I;(function(A){A[A.Start=0]="Start",A[A.End=1]="End"})(I||(I={}));let M;function T(A){M=A}const U=globalThis.performance,y=typeof U!="undefined"&&typeof U.mark=="function"&&typeof U.clearMarks=="function"&&typeof U.measure=="function"&&typeof U.clearMeasures=="function";function ee({id:A,specifier:L}){M?M({id:A,phase:I.Start,specifier:L}):y&&U.mark(A+(L?`.${L}`:""))}function G({id:A,specifier:L}){if(M)M({id:A,phase:I.End,specifier:L});else if(y){const V=L?`.${L}`:"",Q=A+V,X=`${A}.duration${V}`;U.measure(X,Q),U.clearMarks(Q),U.clearMeasures(X)}}v.attachDispatcher=T,v.logOperationEnd=G,v.logOperationStart=ee,Object.defineProperty(v,"__esModule",{value:!0})}),LWR.define("lwr/metrics/v/0_8_8",["exports"],function(v){"use strict";const I="lwr.bootstrap.",M=`${I}end`,T=`${I}error`,U=`${T}.count`,y=`${I}duration`,ee="lwr.loader.",G=`${ee}module.define`,A=`${G}.count`,L=`${ee}module.fetch`,V=`${L}.count`,Q=`${L}.duration`,X=`${ee}module.error`,le=`${X}.count`,_e=`${ee}mappings.fetch`,Pe=`${_e}.count`,F=`${_e}.duration`,re=`${ee}mappings.error`,D=`${re}.count`,h="lwr.router.",ce=`${h}navigate`,zt=`${ce}.count`,S=`${ce}.duration`,$e=`${h}view`,st=`${$e}.duration`,Et=`${h}error`,k=`${Et}.count`;v.BOOTSTRAP_DURATION=y,v.BOOTSTRAP_END=M,v.BOOTSTRAP_ERROR=T,v.BOOTSTRAP_ERROR_COUNT=U,v.BOOTSTRAP_PREFIX=I,v.LOADER_PREFIX=ee,v.MAPPINGS_ERROR=re,v.MAPPINGS_ERROR_COUNT=D,v.MAPPINGS_FETCH=_e,v.MAPPINGS_FETCH_COUNT=Pe,v.MAPPINGS_FETCH_DURATION=F,v.MODULE_DEFINE=G,v.MODULE_DEFINE_COUNT=A,v.MODULE_ERROR=X,v.MODULE_ERROR_COUNT=le,v.MODULE_FETCH=L,v.MODULE_FETCH_COUNT=V,v.MODULE_FETCH_DURATION=Q,v.ROUTER_ERROR=Et,v.ROUTER_ERROR_COUNT=k,v.ROUTER_NAV=ce,v.ROUTER_NAV_COUNT=zt,v.ROUTER_NAV_DURATION=S,v.ROUTER_PREFIX=h,v.ROUTER_VIEW=$e,v.ROUTER_VIEW_DURATION=st,Object.defineProperty(v,"__esModule",{value:!0})}),LWR.define("lwr/init/v/0_8_8",["exports","lwr/metrics/v/0_8_8","lwr/profiler/v/0_8_8","lwc/v/2_31_2"],function(v,I,M,T){"use strict";function U(L,V){return T.createElement(L,{is:V})}function y(L){return L.replace(/\/v\/[a-zA-Z0-9-_.]+$/,"").replace("/","-").replace(/([A-Z])/g,V=>`-${V.toLowerCase()}`)}const ee=/-([a-z])/g;function G(L){return L.replace(ee,V=>V[1].toUpperCase())}function A(L){if(typeof customElements!="undefined"&&typeof document!="undefined"){const V=document.querySelector("[lwr-root]");L.forEach(([Q,X])=>{const le=y(Q);let _e=document.body.querySelector(le);_e?document.querySelectorAll(le).forEach(F=>{const re=U(le,X);for(const{name:D,value:h}of F.attributes){re.setAttribute(D,h);const ce=G(D);ce in re&&(re[ce]=h)}for(;F.childNodes.length>0;)re.appendChild(F.childNodes[0]);F.parentElement.replaceChild(re,F)}):(_e=U(le,X),V?V.appendChild(_e):document.body.appendChild(_e))})}M.logOperationStart({id:I.BOOTSTRAP_END})}v.getPropFromAttrName=G,v.init=A,v.toKebabCase=y,Object.defineProperty(v,"__esModule",{value:!0})}),LWR.define("webruntime/o11yHook/v/1_66_217-242_0",["exports","lwr/loaderLegacy/v/0_8_8","@app/basePath/v/1","@app/apiBasePath/v/1","@salesforce/i18n/lang/v/1","@app/o11yApiEndpoint/v/1","@app/o11yFalconEnabled/v/1","@app/o11yGuestToken/v/1","@app/o11ySamplingRate/v/1"],function(v,I,M,T,U,y,ee,G,A){"use strict";function L(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var V=L(M),Q=L(T),X=L(U),le=L(y),_e=L(ee),Pe=L(G),F=L(A);class re{constructor(t){if(this._lazyMap=new Map,t!==void 0){if(typeof t=="number"&&t>0){this._maxSize=Math.ceil(t);return}throw new Error("maxSize must be a positive number")}}get maxSize(){return this._maxSize}get size(){return this._lazyMap.size}push(t,n){let o=this._lazyMap.get(t);if(!o){if(this.maxSize!==void 0&&this.size===this.maxSize)return!1;o=new Array,this._lazyMap.set(t,o)}return o.push(n),!0}getMessages(t,n){const o=this._lazyMap.get(t);return n&&this._lazyMap.has(t)&&this._lazyMap.set(t,[]),o||[]}getAllMessages(t){const n=new Map;for(const[o,a]of this._lazyMap.entries())a.length&&n.set(o,this.getMessages(o,t));return n}extractMessages(t){return this.getMessages(t,!0)}extractAllMessages(){return this.getAllMessages(!0)}get totalItemCount(){let t=0;for(const n of this._lazyMap.values())t+=n.length;return t}}class D{constructor(){this.notImplemented="Method not implemented.";const t=typeof performance!="undefined";t?performance.timeOrigin?this._timeOrigin=performance.timeOrigin:this._timeOrigin=Date.now():this._timeOrigin=Date.now();const n=this._timeOrigin;t&&typeof performance.now=="function"?(this.perfNow=performance.now.bind(performance),this.time=()=>{const o=this.perfNow();return{tsNow:n+o,perfNow:o}}):(this.perfNow=()=>Date.now()-n,this.time=()=>{const o=this.perfNow();return{tsNow:Date.now(),perfNow:o}})}get isProduction(){return D._isProduction}markProduction(){D._isProduction=!0}_checkArgument(t,n){if(typeof n=="string")return typeof t===n;if(typeof n=="function")return t instanceof n;if(Array.isArray(n))return n.some(o=>this._checkArgument(t,o));throw new Error(`Invalid argKind ${n}`)}requireArgument(t,n,o){let a=t==null||t==="";const l=o!==void 0;if(!a&&l&&(a=!this._checkArgument(t,o)),a)throw new Error(`${n} argument is required${l?" and must be of a supported type.":"."}`)}requireArgumentIfDefined(t,n,o){if(t===void 0)return!1;if(t===null||t===""||!this._checkArgument(t,o))throw new Error(`${n} argument, if defined, must be of a supported type.`);return!0}checkForDenyListedValues(t,n,o){if(o.some(a=>t===a))throw new Error(`The value ${t} isn't allowed for ${n} argument.`)}checkForReservedCharacters(t,n,o){if(t&&o.some(a=>t.indexOf(a)>=0))throw new Error(`The argument ${n} isn't allowed to contain characters from ['${o.join(", ")}']. Received: ${t}.`)}generateUniqueId(t=16){const n=[],o="0123456789abcdef";if(!(t===void 0||t>0))throw new Error('If specified, the argument "length" must be a positive integer');for(let a=0;a<t;a++){const l=Math.floor(Math.random()*16);n.push(o[l])}return n.join("")}getXpath(t){function n(l){const d=l.localName;for(;l.nextElementSibling;)if(l=l.nextElementSibling,l.localName===d)return!0;return!1}function o(l,d){return l?o(l.previousElementSibling,d||l.localName)+(l.localName===d?1:0):1}function a(l){if(!l||l.nodeType!==1)return[""];const d=o(l)>1||n(l)?`${l.localName.toLowerCase()}[${o(l)}]`:l.localName.toLowerCase();return[...a(l.parentNode),d]}return a(t).join("/")}getAge(t){return t-this._timeOrigin}getConnectionType(){var t;let n;if(typeof navigator!="undefined"){const o=navigator;n=(t=o==null?void 0:o.connection)===null||t===void 0?void 0:t.effectiveType}return n}clone(t){return JSON.parse(JSON.stringify(t))}definedValueOrDefault(t,n){return t!==void 0?t:n}getGlobal(){if(typeof globalThis=="object")return globalThis;if(typeof self=="object")return self;throw new Error("Unable to locate globalThis or self")}getIsBeaconSupported(){var t;const n=this.getGlobal();return typeof((t=n.navigator)===null||t===void 0?void 0:t.sendBeacon)=="function"&&typeof n.Blob=="function"}estimateObjectSize(t){const n=new Set,o=[t];let a=0;for(;o.length;){const l=o.pop();if(typeof l=="boolean")a+=4;else if(typeof l=="string")a+=l.length*2;else if(typeof l=="number")a+=8;else if(l instanceof Uint8Array||l instanceof Uint8ClampedArray||l instanceof Uint16Array||l instanceof Uint32Array||l instanceof Int8Array||l instanceof Int16Array||l instanceof Int32Array||l instanceof Float32Array||l instanceof Float64Array)a+=l.byteLength;else if(typeof l=="object"){const d=l;if(!n.has(d)){n.add(d);for(const p in d)o.push(d[p])}}}return a}noProdThrow(t){if(!h.isProduction)throw t}}D._isProduction=!1;const h=Object.freeze(new D);class ce{constructor(t){this._errorCounter=t,this._safeCatchMode=!1}tryCatch(t){try{t()}catch(n){this._prodSafeCatch(n)}}tryCatchReturn(t,n){try{return h.requireArgument(n,"noopValue"),t()}catch(o){return this._prodSafeCatch(o),n}}_prodSafeCatch(t){let n;try{if(n=!h.isProduction,n)throw t;if(this._safeCatchMode)throw this._safeCatchMode=!1,new Error("Internal error in prodSafeCatch.");if(this._safeCatchMode=!0,this._errorCounter&&this._errorCounter.increment(),!(t instanceof Error)){const o=t&&t.message||(typeof t.toString=="function"?t.toString():"");t=new Error(o)}this._safeCatchMode=!1}catch(o){if(n)throw o;if(o&&console&&typeof console.error=="function")try{console.error(o)}catch(a){}this._safeCatchMode=!1}}}class zt{getSchemaId(t){return`${t.namespace}.${t.name}`}isInternal(t){return(t==null?void 0:t.namespace)==="sf.instrumentation"}makePayload(t,n,o=!0){if(!o||t!==void 0&&n!==void 0)return{schema:t,payload:n}}checkSchema(t){h.requireArgument(t,"schema","object"),h.requireArgument(t.namespace,"schema.namespace","string"),h.requireArgument(t.name,"schema.name","string"),h.requireArgument(t.pbjsSchema,"schema.pbjsSchema","object");const n=t.namespace.split(".");if(n.length!==2)throw new Error(`Schema "${this.getSchemaId(t)}" must have a namespace of the form "domain.feature".`);return{domain:n[0],feature:n[1],message:t.name}}_getAnyNestedObject(t,n){return n.reduce((o,a)=>{const l=o.nested;if(l){const d=l[a];if(d)return d}throw new Error(`Cannot locate ${n.join(".")} in schema with ID ${this.getSchemaId(t)}`)},t.pbjsSchema)}getTypes(t){const n=this.checkSchema(t),a=this._getAnyNestedObject(t,[n.domain,n.feature]).nested;if(!a)throw new Error(`Cannot parse schema with ID ${this.getSchemaId(t)}`);return a}getType(t,n){h.requireArgument(n,"messageName","string");const a=this.getTypes(t)[n];if(!a)throw new Error(`Cannot locate message ${n} in schema with ID ${this.getSchemaId(t)}`);return a}getOptions(t,n,o){o&&h.requireArgument(n,"messageName","string");const a=this.checkSchema(t);if(!n)return this._getAnyNestedObject(t,[a.domain,a.feature]).options;const l=this.getType(t,n);if(!o)return l.options;const d=l.fields[o];if(!d){const p=this.getSchemaId(t);throw new Error(`Cannot locate field ${o} in message ${n} in schema with ID ${p}`)}return d.options}}const S=new zt;var $e=Object.freeze({__proto__:null,LazyMapToList:re,PublicSafety:ce,schemaUtil:S,utility:h});const st=32,Et=16,k=16,Pn="traceparent",In="b3",Yt="X-B3-TraceId",Ln="X-B3-SpanId",Ie="X-B3-Sampled",at="X-B3-ParentSpanId",kn="fetch",Mn="xhr_send";class R{constructor(t){this._instr=t,h.requireArgument(t,"_instr","object")}static _getB3CompactFormat(t,n,o,a){let l=`${t}-${n}`;return(o!==void 0||a!==void 0)&&(l+=o?"-1":"-0",a!==void 0&&(l+=`-${a}`)),l}static _getW3CompactFormat(t,n,o){return`00-${t}-${n}-${o?"01":"00"}`}static _conformTextAsId(t,n){t=t.toLowerCase();const o=t.length;for(let a=0;a<o;a+=1){const l=t[a];if(!(l>="a"&&l<="f")&&!(l>="0"&&l<="9"))throw new Error(`The text '${t}' has an invalid character at index #${a}`)}return o>n?t.substr(o-n):o<n?t.padStart(n,"0"):t}static getHeaders(t,n,o,a){h.requireArgument(t,"traceId","string"),h.requireArgument(n,"spanId","string");const l=a==null?void 0:a.useB3Headers;t=this._conformTextAsId(t,(a==null?void 0:a.traceIdEffectiveLength)!==void 0?a.traceIdEffectiveLength:l?Et:st),n=this._conformTextAsId(n,k);const d=a&&a.parentSpanId!==void 0&&this._conformTextAsId(a.parentSpanId,k)||void 0,p={};return l?(a==null?void 0:a.useCompactHeader)?p[In]=this._getB3CompactFormat(t,n,o,d):(p[Yt]=t,p[Ln]=n,d!==void 0&&(p[at]=d),o!==void 0&&(p[Ie]=o?"1":"0")):p[Pn]=this._getW3CompactFormat(t,n,o),p}_disableNetworkInstrumentation(){R._isNetworkInstrumentationEnabled&&(R._originalFetch&&(R._global.fetch=R._originalFetch,R._originalFetch=void 0),R._originalXhr&&(R._global.XMLHttpRequest=R._originalXhr,R._originalXhr=void 0),R._originalXhrSend&&(R._global.XMLHttpRequest.prototype.send=R._originalXhrSend,R._originalXhrSend=void 0),R._isNetworkInstrumentationEnabled=!1)}_enableNetworkInstrumentation(t,n,o,a,l){typeof R._global.fetch=="function"&&(this._overrideFetch(t,n,o,a,l),R._isNetworkInstrumentationEnabled=!0),typeof R._global.XMLHttpRequest=="function"&&(this._overrideXhr(t,n,o,a,l),R._isNetworkInstrumentationEnabled=!0)}_overrideFetch(t,n,o,a,l){R._originalFetch=R._global.fetch;const d=async(p,m,..._)=>{let w;try{if(w=t.startActivity(o||kn),a){m=m||{};const N=w.getTraceHeaders(l);m.headers=Object.assign(m.headers||{},N)}return await R._originalFetch.call(R._global,p,m,..._)}catch(N){throw n&&(w?w.error(N):t.error(N)),N}finally{w&&w.stop()}};R._global.fetch=d}_overrideXhr(t,n,o,a,l){R._originalXhr=R._global.XMLHttpRequest,R._originalXhrSend=R._originalXhr.prototype.send,R._originalXhr.prototype.send=function(...p){let m;const _=this;try{if(_._o11yActivity=m=t.startActivity(o||Mn),a){const w=m.getTraceHeaders(l);Object.entries(w).forEach(N=>{_.setRequestHeader(N[0],N[1])})}R._originalXhrSend.call(this,...p)}catch(w){throw n&&(m?m.error(w):t.error(w)),m&&m.stop(),w}};const d=new Proxy(R._originalXhr,{construct(p){const m=new p;return m.addEventListener("load",()=>{const _=m._o11yActivity;_&&_.stop()}),m.addEventListener("error",_=>{const w=new Error("XHR Network-Level Error"),N=m._o11yActivity;N?(n&&N.error(w),N.stop()):n&&t.error(w)}),m.addEventListener("abort",()=>{const _=m._o11yActivity;_&&_.discard()}),m}});R._global.XMLHttpRequest=d}networkInstrumentation(t){if(h.requireArgument(t,"options",["boolean","object"]),t){this._disableNetworkInstrumentation();const n=typeof t=="object"?t:{};this._enableNetworkInstrumentation(h.definedValueOrDefault(n.instrumentation,this._instr),h.definedValueOrDefault(n.logErrors,!0),n.activityName,h.definedValueOrDefault(n.useTracing,!0),n.tracingHeadersOptions)}else this._disableNetworkInstrumentation()}}R._global=h.getGlobal(),R._isNetworkInstrumentationEnabled=!1;var g;(function(u){u[u.none=0]="none",u[u.start=1]="start",u[u.stop=2]="stop",u[u.both=3]="both"})(g||(g={}));const b="timedout",Te="terminated",ye="discarded",ue={timedout:b,terminated:Te,discarded:ye};class Le{constructor(t,n,o,a,l,d,p){this._name=t,this._rootId=n,this._onStopped=o,this._onError=a,this._isSampled=p,this._errorCount=0,this._timerOverridden=g.none;const{tsNow:m,perfNow:_}=h.time();if(Le._count+=1,this._id=d||h.generateUniqueId(),this._usePerf=typeof performance!="undefined"&&typeof performance.mark=="function"&&typeof performance.measure=="function",this._usePerf){this._perfName=`${this._name}__${Le._count}`,this._perfId=`${this._name}__${this.id}`;try{performance.mark(this._perfId)}catch(w){this._usePerf=!1}}this._startTimestamp=m,this._startPerfTime=_,l>0&&(this._timer=setTimeout(()=>{this._stopReason=this._stopReason||ue.timedout,this.stop()},l)),this._safety=new ce}get id(){return this._id}getId(){return this.id}getRootId(){return this._rootId}get stopReason(){return this._stopReason}error(t,n,o){this._safety.tryCatch(()=>{this._errorCount+=1,typeof t=="string"&&(t=new Error(t)),this._onError(t,this._getDetail(n,o))})}stop(t,n,o){this._safety.tryCatch(()=>{if(h.requireArgumentIfDefined(t,"userSchemaOrText",["object","string"]),h.requireArgumentIfDefined(n,"userData","object"),o){const a=o.perfStartOverride,l=h.requireArgumentIfDefined(a,"options.perfStartOverride","number"),d=o.perfStopOverride,p=h.requireArgumentIfDefined(d,"options.perfStopOverride","number");if(l&&a<0)throw new Error("perfStartOverride, if defined, must be >= 0");if(p&&(d<0||d<(l?a:this._startPerfTime)))throw new Error("perfStopOverride, if defined, must be >= 0 and >= startTime")}this._stopInternal(t,n,o)})}_overrideTimer(t,n){t!==void 0&&(this._startTimestamp=Math.round(this._startTimestamp-(this._startPerfTime-t)),this._startPerfTime=t,this._setTimerOverride(g.start)),n!==void 0&&(this._stopPerfTime=n,this._setTimerOverride(g.stop))}_setTimerOverride(t){this._timerOverridden===g.both||this._timerOverridden===t||t===g.none||(this._timerOverridden=this._timerOverridden===g.none?t:g.both)}_stopInternal(t,n,o){const a=h.perfNow();if(this._usePerf)try{this._stopReason!==ue.discarded&&performance.measure(this._perfName,this._perfId),performance.clearMarks(this._perfId),performance.clearMeasures(this._perfName)}catch(d){}if(this._timer&&(clearTimeout(this._timer),this._timer=void 0),this.isStopped)return;o&&this._overrideTimer(o.perfStartOverride,o.perfStopOverride),this._stopPerfTime=this._timerOverridden===g.none||this._timerOverridden===g.start?a:this._stopPerfTime;const l=this._getDetail(t,n);this._onStopped(l)}get isStopped(){return this._stopPerfTime!==void 0}discard(){this._safety.tryCatch(()=>{this._stopReason=this._stopReason||ue.discarded,this.stop()})}terminate(){this._safety.tryCatch(()=>{this._stopReason=this._stopReason||ue.terminated,this.stop()})}getIsSampled(){return this._isSampled||!1}_getDetail(t,n){return{id:this._id,rootId:this._rootId,name:this._name,userSchemaOrText:t,userData:n,stopReason:this._stopReason,startTimestamp:this._startTimestamp,startPerfTime:this._startPerfTime,stopPerfTime:this._stopPerfTime,errorCount:this._errorCount,isSampled:this.getIsSampled(),timerOverridden:this._timerOverridden}}getTraceHeaders(t){const n=this.id,o=this._rootId||n;return R.getHeaders(o,n,this.getIsSampled(),t)}getStartTimestamp(){return this._startTimestamp}getStartPerfTime(){return this._startPerfTime}getStopPerfTime(){return this._stopPerfTime}}Le._count=0;const lt={namespace:"sf.instrumentation",name:"Activity",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Activity:{reserved:[[5,5],[7,7]],fields:{duration:{id:3,type:"double"},stopReason:{id:6,type:"string"},isRoot:{id:8,type:"bool"},timerOverridden:{id:12,type:"uint32"},name:{options:{"(meta.max_length)":25},id:2,type:"string"},isSampled:{id:11,type:"bool"},preRootId:{id:9,type:"string"},id:{id:1,type:"string"},userPayload:{id:4,type:"Payload"},errorCount:{id:10,type:"uint32"},parentId:{id:13,type:"string"}}},Payload:{fields:{payload:{id:2,type:"bytes"},schemaName:{id:1,type:"string"}}}}}}}}}},Dr={namespace:"sf.instrumentation",name:"Error",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Error:{reserved:[[5,5],[7,7]],fields:{activityId:{id:6,type:"string"},stack:{id:3,type:"string"},name:{id:1,type:"string"},message:{options:{"(meta.max_length)":200},id:2,type:"string"},userPayload:{id:4,type:"Payload"}}},Payload:{fields:{payload:{id:2,type:"bytes"},schemaName:{id:1,type:"string"}}}}}}}}}},Ke={namespace:"sf.instrumentation",name:"IdleDetectorReport",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{IdleDetectorReport:{fields:{listenerCount:{id:3,type:"uint32"},busyTasks:{rule:"repeated",id:5,type:"string"},busyDurations:{rule:"repeated",id:6,type:"double"},pollableCount:{id:4,type:"uint32"},pollCounts:{rule:"repeated",id:8,type:"double"},logThreshold:{id:2,type:"double"},maxDuration:{id:1,type:"double"},pollables:{rule:"repeated",id:7,type:"string"}}}}}}}}}},Qt={namespace:"sf.instrumentation",name:"InstrumentedEvent",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{MouseEvent:{fields:{cancelable:{id:5,type:"bool"},ctrlKey:{id:9,type:"bool"},type:{id:25,type:"string"},button:{id:3,type:"uint32"},offsetX:{id:17,type:"uint32"},eventPhase:{id:12,type:"uint32"},shiftKey:{id:23,type:"bool"},offsetY:{id:18,type:"uint32"},composed:{id:8,type:"bool"},altKey:{id:1,type:"bool"},isTrusted:{id:13,type:"bool"},buttons:{id:4,type:"uint32"},movementY:{id:16,type:"uint32"},clientY:{id:7,type:"uint32"},clientX:{id:6,type:"uint32"},movementX:{id:15,type:"uint32"},defaultPrevented:{id:10,type:"bool"},metaKey:{id:14,type:"bool"},timeStamp:{id:24,type:"double"},bubbles:{id:2,type:"bool"},detail:{id:11,type:"int64"},pageY:{id:20,type:"uint32"},pageX:{id:19,type:"uint32"},screenX:{id:21,type:"uint32"},screenY:{id:22,type:"uint32"}}},InstrumentedEvent:{oneofs:{event:{oneof:["mouseEvent"]}},reserved:[[4,4],"xpath",[6,6],[8,8]],fields:{mouseEvent:{id:7,type:"MouseEvent"},auto:{id:3,type:"bool"},parentComponent:{id:2,type:"string"},ownerComponent:{id:1,type:"string"},userPayload:{id:5,type:"Payload"},simplePath:{id:9,type:"string"}}},Payload:{fields:{payload:{id:2,type:"bytes"},schemaName:{id:1,type:"string"}}}}}}}}}},Jt={namespace:"sf.instrumentation",name:"Simple",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{Simple:{fields:{text:{options:{"(meta.max_length)":25},id:1,type:"string"}}}}}}}}}},Zt=new Array(16).fill(0).join("");class wt{getId(){return Zt}getRootId(){}error(){}stop(){}discard(){}terminate(){}getIsSampled(){return!1}getTraceHeaders(t){return{}}getStartTimestamp(){}getStartPerfTime(){}getStopPerfTime(){}}const Tt=Object.freeze(new wt);class Hr{getInstrumentedEventData(t,n,o){var a;const l={ownerComponent:n.tagName,parentComponent:((a=n.parentElement)===null||a===void 0?void 0:a.tagName)||void 0,event:t,simplePath:h.getXpath(n)};return o&&(l.userPayload=S.makePayload(o.schema,o.payload,!0)),l}getMouseEventData(t){return{altKey:t.altKey,bubbles:t.bubbles,button:t.button,buttons:t.buttons,cancelable:t.cancelable,clientX:t.clientX,clientY:t.clientY,composed:t.composed,defaultPrevented:t.defaultPrevented,detail:t.detail,eventPhase:t.eventPhase,isTrusted:t.isTrusted,timeStamp:t.timeStamp,type:t.type,ctrlKey:t.ctrlKey,metaKey:t.metaKey,movementX:t.movementX,movementY:t.movementY,offsetX:t.offsetX,offsetY:t.offsetY,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY,shiftKey:t.shiftKey}}}const ne=new Hr,be=1e4,Fr=1e4,er=0,$r=2147483647,Ct=-2147483648,tr=4294967295,Br=9223372036854776e3,xr=-9223372036854776e3,At=18446744073709552e3;class Ur{constructor(t,n,o,a){this.errorCode=t,this.fields=n,this.expected=o,this.received=a}asMessage(t){const n=this.fields[0]+this.fields.slice(1).reduce((a,l)=>Number(l)>=0?`${a}[${l}]`:`${a}.${l}`,"");let o;switch(this.errorCode){case 1:o="Repeated field must be an array";break;case 2:o=`Expected type ${this.expected} but received type ${this.received}`;break;case 3:o="Value must be finite";break;case 4:o="Value is out of range for its type";break;case 5:o="Bytes array is malformed";break;case 6:o="Exceeded app limit for maximum string length";break;case 7:o="Exceeded app limit for item count";break;case 12:o="Value must be an integer";break;case 13:o="Values like null or undefined are not allowed for items in repeated fields";break;default:o=`Unknown error code: ${this.errorCode}`;break}return`Schema ${t} on field "${n}": ${o}`}}class qr{validate(t,n,o=!1){const a=S.checkSchema(t);h.requireArgument(n,"data","object");const l=S.getSchemaId(t),d=new Array,p=S.getTypes(t);if(this._validateFields(d,[],n,p[a.message],p,l),d.length&&!o)throw new Error(d[0].asMessage(l));return d}_validateFields(t,n,o,a,l,d){const p=a.oneofs||{},m=a.fields||{};for(const _ in o){const w=o[_];if(w!=null){const N=(P,te,ae)=>this._matchFieldTypes(t,[...n,_],w,P,l,d,_,te,ae);p[_]?N(m[p[_].oneof[0]].type):m[_]&&N(m[_].type,m[_].rule==="repeated")}}}_matchFieldTypes(t,n,o,a,l,d,p,m,_){let w;if(m)Array.isArray(o)?(o.length>Fr&&(w=7),o.forEach((N,P)=>{this._matchFieldTypes(t,[...n,P.toString()],N,a,l,d,p,void 0,!0)})):w=1;else if(o==null||o===void 0)_&&(w=13);else{let N,P;switch(a){case"string":P="string",o.length>be&&(w=6);break;case"bytes":P="object",o instanceof Uint8Array||(w=5);break;case"bool":P="boolean";break;case"uint32":P="number",N={min:er,max:tr,isInt:!0,isItem:_};break;case"int32":case"sint32":case"fixed32":case"sfixed32":P="number",N={min:Ct,max:$r,isInt:!0,isItem:_};break;case"uint64":P="number",N={min:er,max:At,isInt:!0,isItem:_};break;case"fixed64":case"sfixed64":case"int64":case"sint64":P="number",N={min:xr,max:Br,isInt:!0,isItem:_};break;case"double":case"float":P="number",N={min:Number.NEGATIVE_INFINITY,max:Number.POSITIVE_INFINITY,isInt:!1,isItem:_};break;default:new Set(Object.keys(l)).has(a)&&(this._validateFields(t,n,o,l[a],l,d),P="object");break}typeof o!==P?t.push(new Ur(2,n,a,typeof o)):N&&(N.isInt&&!Number.isFinite(o)?w=3:N.isInt&&!Number.isInteger(o)?w=12:!(!N.isInt&&Number.isNaN(o))&&!(o>=N.min&&o<=N.max)&&(w=4))}w&&t.push(new Ur(w,n))}}const ze=new qr;class he{constructor(t,n,o,a,l){this._name=t,this._ownerName=n,this._ownerAppName=o,this._tags=a,this._buckets=l,this._values=new Array,this._createdOn=h.time().tsNow}getName(){return this._name}getCreatedOn(){return this._createdOn}getLastUpdatedOn(){return this._lastUpdatedOn}getData(){return this.values}getBuckets(){return this.buckets}get buckets(){return this._buckets.slice(0,this._buckets.length)}get values(){return this._values.slice(0,this._values.length)}record(t){if(typeof t=="number"){this._values.push(t),this._lastUpdatedOn=h.time().tsNow;return}throw new Error("BucketHistogram can only record numbers.")}reset(){this._lastUpdatedOn=void 0,this._values=[]}getOwnerName(){return this._ownerName}getOwnerAppName(){return this._ownerAppName}getTags(){return this._tags}}class Gr{constructor(t,n,o,a){this._name=t,this._ownerName=n,this._ownerAppName=o,this._tags=a,this._value=0,this._createdOn=h.time().tsNow}getName(){return this._name}getCreatedOn(){return this._createdOn}getLastUpdatedOn(){return this._lastUpdatedOn}getData(){return this._value}increment(t=1){if(typeof t=="number"&&t>0){this._value+=Math.round(t),this._lastUpdatedOn=h.time().tsNow;return}throw new Error("UpCounter can only increment positive numbers.")}reset(){this._lastUpdatedOn=void 0,this._value=0}getOwnerName(){return this._ownerName}getOwnerAppName(){return this._ownerAppName}getTags(){return this._tags}}class jr{constructor(t,n,o,a){this._name=t,this._ownerName=n,this._ownerAppName=o,this._tags=a,this._values=new Array,this._createdOn=h.time().tsNow}getName(){return this._name}getCreatedOn(){return this._createdOn}getLastUpdatedOn(){return this._lastUpdatedOn}getData(){return this.values}get values(){return this._values.slice(0,this._values.length)}record(t){if(typeof t=="number"){this._values.push(t),this._lastUpdatedOn=h.time().tsNow;return}throw new Error("ValueRecorder can only record numbers.")}reset(){this._lastUpdatedOn=void 0,this._values=[]}getOwnerName(){return this._ownerName}getOwnerAppName(){return this._ownerAppName}getTags(){return this._tags}}class Nt{constructor(t){if(this._map=new Map,typeof t=="number"&&t>0){this._maxSize=Math.ceil(t);return}throw new Error("maxSize must be a positive number")}get maxSize(){return this._maxSize}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,n){return this.has(t)||this._map.size<this.maxSize?(this._map.set(t,n),!0):!1}getElements(){return Array.from(this._map.values())}clear(){this._map.clear()}}const rr=1e3,Rt=500,nr=500;var Be;(function(u){u[u.Counter=0]="Counter",u[u.Percentile=1]="Percentile",u[u.BucketHistogram=2]="BucketHistogram"})(Be||(Be={}));class St{constructor(t,n){this._ownerName=t,this._getOwnerAppName=n,this._upCounters=new Nt(rr),this._valueRecorders=new Nt(Rt),this._bucketHistograms=new Nt(nr)}incrementCounter(t,n,o=!1,a={}){this._tagError(a,o),this._upCounter(t,a).increment(n)}trackValue(t,n,o=!1,a={}){this._tagError(a,o),this._valueRecorder(t,a).record(n)}bucketValue(t,n,o,a=!1,l={}){this._tagError(l,a),this._bucketHistogram(t,l,o).record(n)}_bucketHistogram(t,n,o){const{key:a,sortedTags:l}=this._getKeyAndSortedTags(t,n,Be.BucketHistogram);let d=this._bucketHistograms.get(a);if(!d&&(d=new he(t,this._ownerName,this._getOwnerAppName(),l,o),!this._bucketHistograms.set(a,d)))throw new Error(`Max size of ${nr} exceeded for BucketHistograms`);return d}_upCounter(t,n){const{key:o,sortedTags:a}=this._getKeyAndSortedTags(t,n,Be.Counter);let l=this._upCounters.get(o);if(!l&&(l=new Gr(t,this._ownerName,this._getOwnerAppName(),a),!this._upCounters.set(o,l)))throw new Error(`Max size of ${rr} exceeded for UpCounters`);return l}_valueRecorder(t,n){const{key:o,sortedTags:a}=this._getKeyAndSortedTags(t,n,Be.Percentile);let l=this._valueRecorders.get(o);if(!l&&(l=new jr(t,this._ownerName,this._getOwnerAppName(),a),!this._valueRecorders.set(o,l)))throw new Error(`Max size of ${Rt} exceeded for ValueRecorders`);return l}getUpCounters(){return this._upCounters.getElements()}getValueRecorders(){return this._valueRecorders.getElements()}getBucketHistograms(){return this._bucketHistograms.getElements()}_tagError(t,n){t.status=n===!0?"error":"success"}_getKeyAndSortedTags(t,n,o){const a=Object.keys(n).sort().reduce((d,p)=>(d[p]=n[p],d),{});return{key:`${Be[o]}:${t}${JSON.stringify(a)}`,sortedTags:a}}}class Ce{constructor(){this.isMock=!0}}const or=void 0,fe=["`"],Ot={internalError:"o11y-error"},de=Object.freeze(Array.from(Object.values(Ot)));class xe{constructor(t,n){this._nextGen=t,this._name=n,this._onActivityStoppedCallback=this._handleActivityStop.bind(this),this._onActivityErrorCallback=this._handleActivityError.bind(this);for(const a of fe)if(this._name.indexOf(a)>=0)throw new Error(`Name cannot include the reserved character "${a}"`);this._safety=new ce({increment:a=>this._incrementError(a)}),this._metrics=this._initMetrics();const o=S.getOptions(Jt,"Simple","text");this._simpleTextMaxLength=o?o["(meta.max_length)"]:be}_initMetrics(){return new St(this.name,()=>this._nextGen.appName||xe.defaultAppName)}_incrementError(t=1){this._metrics.incrementCounter(Ot.internalError,t,!1)}get name(){return this._name}_wrapUserPayload(t,n,o=!1){let a;return typeof t=="string"?(a=Jt,t?n={text:t.substring(0,this._simpleTextMaxLength)}:n=void 0):a=t,S.makePayload(a,n,o)}_getEffectiveRootId(t){var n,o;return(o=(n=t==null?void 0:t.instrumentationContext)===null||n===void 0?void 0:n.rootId)!==null&&o!==void 0?o:this._nextGen.getDefaultInstrumentationContext().rootId}log(t,n,o){this._safety.tryCatch(()=>{const a=h.time().tsNow;h.requireArgument(t,"userSchemaOrText",["object","string"]),h.requireArgumentIfDefined(n,"userData","object"),h.requireArgumentIfDefined(o,"options","object");const l=this._wrapUserPayload(t,n);(l==null?void 0:l.payload)&&this._logInternal(this.name,l.schema,l.payload,a,this._getEffectiveRootId(o))})}_logInternal(t,n,o,a,l){this._checkInputs(n,o);const d=this._getPayloadFromProvider(this._nextGen.appPayloadProvider),p=this._getPayloadFromProvider(this._nextGen.pagePayloadProvider);return this._nextGen.addLog(t,n,o,a,l,p,d)}error(t,n,o,a){return this._safety.tryCatch(()=>{h.requireArgumentIfDefined(n,"userSchemaOrText",["object","string"]),h.requireArgumentIfDefined(o,"userData","object"),h.requireArgumentIfDefined(a,"options","object");const l=this._getEffectiveRootId(a);this._errorInternal(t,n,o,void 0,l)})}_errorInternal(t,n,o,a,l){const d=h.time().tsNow;let p;if(t instanceof Error)p=t;else{let w;t==null||typeof t.toString!="function"?w="UNKNOWN":w=t.toString(),p=new Error(w)}const m=this._wrapUserPayload(n,o,!0),_={name:p.name,message:p.message,stack:p.stack,userPayload:m,activityId:a};return this._logInternal(this.name,Dr,_,d,l)}startActivity(t,n){return this._safety.tryCatchReturn(()=>{var o;h.requireArgument(t,"name"),h.requireArgumentIfDefined(n,"options","object");let a;const l=(o=n==null?void 0:n.instrumentationContext)===null||o===void 0?void 0:o.rootId;return l?a={rootId:l,isRootActivitySampled:n.instrumentationContext.isRootActivitySampled}:a=this._nextGen.getDefaultInstrumentationContext(),new Le(t,a.rootId,this._onActivityStoppedCallback,this._onActivityErrorCallback,or,void 0,a.isRootActivitySampled)},Tt)}_getActivityData(t){const n=this._wrapUserPayload(t.userSchemaOrText,t.userData,!0);return{id:t.id,name:t.name,duration:t.stopPerfTime-t.startPerfTime,stopReason:t.stopReason,userPayload:n,errorCount:t.errorCount,isSampled:t.isSampled,timerOverridden:t.timerOverridden}}_handleActivityStop(t){if(t.stopReason===ye)return;const n=this._getActivityData(t);this._logActivity(n,t.startTimestamp,t.rootId)}_logActivity(t,n,o){this._logInternal(this.name,lt,t,n,o)}_handleActivityError(t,n){this._errorInternal(t,n.userSchemaOrText,n.userData,n.id,n.rootId)}_getPayloadFromProvider(t){const n=(t==null?void 0:t.getPayload())||void 0;return n&&this._checkInputs(n.schema,n.payload),n}domEvent(t,n,o,a,l){this._safety.tryCatch(()=>{var d;const p=h.time().tsNow;h.requireArgument(t,"event",[Event,Ce]),h.requireArgument(n,"handledBy",[HTMLElement,"object"]);let m;n instanceof HTMLElement?m=n:(n=n,((d=n.template)===null||d===void 0?void 0:d.host)instanceof HTMLElement?m=n.template.host:h.requireArgument(void 0,"handledBy"));const _=this._wrapUserPayload(o,a,!0),w=this._getEffectiveRootId(l);switch(t.type){case"click":{const N=t,P=this._nextGen.getClickTracker();P&&P.markEventHandled(N);const te=ne.getMouseEventData(N),ae=ne.getInstrumentedEventData(te,m,_);ae.auto=l==null?void 0:l._auto,this._logInternal(this.name,Qt,ae,p,w);break}default:throw new Error(h.notImplemented)}})}incrementCounter(t,n=1,o=!1,a={}){this._safety.tryCatch(()=>{h.requireArgument(t,"operation","string"),h.checkForDenyListedValues(t,"operation",de),h.checkForReservedCharacters(t,"operation",fe),h.requireArgument(n,"increment","number"),h.requireArgument(o,"hasError","boolean"),h.requireArgument(a,"tags","object"),Object.entries(a).forEach(l=>{h.requireArgument(l[1],`Tag value for '${l[0]}'`,["string","number","boolean"])}),this._metrics.incrementCounter(t,n,o,a)})}trackValue(t,n,o=!1,a={}){this._safety.tryCatch(()=>{h.requireArgument(t,"operation","string"),h.checkForDenyListedValues(t,"operation",de),h.checkForReservedCharacters(t,"operation",fe),h.requireArgument(n,"value","number"),h.requireArgument(o,"hasError","boolean"),h.requireArgument(a,"tags","object"),Object.entries(a).forEach(l=>{h.requireArgument(l[1],`Tag value for '${l[0]}'`,["string","number","boolean"])}),this._metrics.trackValue(t,n,o,a)})}bucketValue(t,n,o=[],a=!1,l={}){this._safety.tryCatch(()=>{h.requireArgument(t,"operation","string"),h.checkForDenyListedValues(t,"operation",de),h.checkForReservedCharacters(t,"operation",fe),h.requireArgument(n,"value","number"),h.requireArgument(o,"buckets",Array),Object.entries(o).forEach(d=>{h.requireArgument(d[1],`Bucket value for '${d[0]}'`,"number")}),h.requireArgument(a,"hasError","boolean"),h.requireArgument(l,"tags","object"),Object.entries(l).forEach(d=>{h.requireArgument(d[1],`Tag value for '${d[0]}'`,["string","number","boolean"])}),this._metrics.bucketValue(t,n,o,a,l)})}_checkInputs(t,n){S.checkSchema(t),h.requireArgument(n,"data","object");let o,a;n.userPayload!==void 0&&S.isInternal(t)&&(a=n.userPayload,o=ze.validate(a.schema,a.payload,!0),this._processValidationResults(S.getSchemaId(a.schema),a.payload,o),n.userPayload=void 0),o=ze.validate(t,n,!0),this._processValidationResults(S.getSchemaId(t),n,o),a!==void 0&&(n.userPayload=a)}_processValidationResults(t,n,o){for(let a=0;a<o.length;a+=1){const l=o[a];if(l.errorCode==6||l.errorCode==7){const d=l.fields.length-1,p=this._traverseFields(n,l.fields.slice(0,d)),m=l.fields[d];l.errorCode==6?p[m]=p[m].substring(0,be):p[m].splice(Fr)}else throw new Error(l.asMessage(t))}}_traverseFields(t,n){return n.length?this._traverseFields(t[n[0]],n.slice(1)):t}getUpCounters(){return this._metrics.getUpCounters().filter(t=>t.getLastUpdatedOn())}getValueRecorders(){return this._metrics.getValueRecorders().filter(t=>t.getLastUpdatedOn())}getBucketHistograms(){return this._metrics.getBucketHistograms().filter(t=>t.getLastUpdatedOn())}registerForLogPrompt(t){h.requireArgument(t,"listener","function"),this._nextGen.registerForLogPrompt(t)}activity(t,n,o){var a,l,d,p;const m=this.startActivity(t,o);try{return n(m)}catch(_){throw m.error(_,(a=o==null?void 0:o.errorPayload)===null||a===void 0?void 0:a.schema,(l=o==null?void 0:o.errorPayload)===null||l===void 0?void 0:l.payload),_}finally{m.stop((d=o==null?void 0:o.stopPayload)===null||d===void 0?void 0:d.schema,(p=o==null?void 0:o.stopPayload)===null||p===void 0?void 0:p.payload)}}async activityAsync(t,n,o){var a,l,d,p;const m=this.startActivity(t,o);try{return await n(m)}catch(_){throw m.error(_,(a=o==null?void 0:o.errorPayload)===null||a===void 0?void 0:a.schema,(l=o==null?void 0:o.errorPayload)===null||l===void 0?void 0:l.payload),_}finally{m.stop((d=o==null?void 0:o.stopPayload)===null||d===void 0?void 0:d.schema,(p=o==null?void 0:o.stopPayload)===null||p===void 0?void 0:p.payload)}}}xe.defaultAppName="APP_NOT_REGISTERED";class Ue extends Le{constructor(t,n,o,a,l){super(t,void 0,n,o,void 0,a||h.generateUniqueId(32),l)}get preRootId(){return this._preRootId}set preRootId(t){this._preRootId=t}_getDetail(t,n){const o=super._getDetail(t,n);return o.isRoot=!0,o.preRootId=this.preRootId,o}}const Wr=new Array(32).fill(0).join("");class Vr{getId(){return Wr}getRootId(){}error(){}stop(){}discard(){}terminate(){}getIsSampled(){return!1}getTraceHeaders(t){return{}}getStartTimestamp(){}getStartPerfTime(){}getStopPerfTime(){}}const Xr=Object.freeze(new Vr);class Ye extends xe{constructor(t,n,o){super(t,n);this._allowMulti=o,this._onRootActivityStoppedCallback=this._handleRootActivityStop.bind(this)}startRootActivity(t,n,o){return this._safety.tryCatchReturn(()=>{h.requireArgument(t,"name");const a=new Ue(t,this._onRootActivityStoppedCallback,this._onActivityErrorCallback,n,o);if(!this._allowMulti){if(this._singleRootActivity&&!this._singleRootActivity.isStopped){const l=this._singleRootActivity.getId();this._singleRootActivity.terminate(),a.preRootId=l}this._singleRootActivity=a}return a},Xr)}_handleRootActivityStop(t){if(t.stopReason===ye)return;const n=this._getActivityData(t);this._logActivity(n,t.startTimestamp),this._singleRootActivity=void 0}_getActivityData(t){const n=super._getActivityData(t);return n.isRoot=t.isRoot,n.preRootId=t.preRootId,n}getSingleRootActivityId(){var t;return(t=this._singleRootActivity)===null||t===void 0?void 0:t.getId()}isSingleRootActivitySampled(){var t;return(t=this._singleRootActivity)===null||t===void 0?void 0:t.getIsSampled()}_initMetrics(){return new St(this.name,()=>this.name)}}const Kr=5;class ke{constructor(t,n){this._instr=t,this._doc=n,this._isActive=!1,this._boundClickListener=this._clickListener.bind(this),h.requireArgument(t,"_instr"),h.requireArgument(n,"_doc")}activate(){this._isActive||(this._doc.addEventListener("click",this._boundClickListener,!0),this._isActive=!0)}deactivate(){this._isActive&&(this._doc.removeEventListener("click",this._boundClickListener,!0),this._isActive=!1)}markEventHandled(t){this._ignoredEvent=t}_clickListener(t){var n;let o=(n=t.composedPath)===null||n===void 0?void 0:n.call(t);(!o||!o.length)&&(o=t.path);const a=this._getClickableElement(o);a&&setTimeout(()=>{t!==this._ignoredEvent&&this._instr.domEvent(t,a,void 0,void 0,{_auto:!0})})}_getClickableElement(t){var n,o;const a=t?Math.min(t.length,Kr):0;for(let l=0;l<a;l+=1){const d=t[l],p=(n=d.tagName)===null||n===void 0?void 0:n.toLowerCase();if(p==="a"||p==="button")return d;if(p==="input"){const m=d;if(((o=m.type)===null||o===void 0?void 0:o.toLowerCase())==="button")return m}}}}const ir=80,Pt="_CUT",zr=ir-Pt.length;class ct{constructor(){this._logCollectors=new Set,this._instruments=new Map,this._seqBySchema=new Map,this._sequence=0,this._forceDisabledLogCollectors=new Set,this._logCollectorFailures=new Map,this._isBufferingEnabled=!1,this._buffer=[],this._logCollectionListeners=new Set}get pagePayloadProvider(){return this._pagePayloadProvider}set pagePayloadProvider(t){this._pagePayloadProvider=t}get appPayloadProvider(){return this._appPayloadProvider}set appPayloadProvider(t){this._appPayloadProvider=t}registerApp(t,n){if(h.requireArgument(t,"name","string"),this._appInstr)throw new Error("An app has already been registered with instrumentation.");if(this._instruments.get(t))throw new Error(`The instrumentation name ${t} is already taken`);this._appInstr=new Ye(this,t,n==null?void 0:n.allowMultipleRootActivities),this._instruments.set(t,this._appInstr),this._isBufferingEnabled=n==null?void 0:n.enableBuffering;const a=new R(this._appInstr);return{log:this._appInstr.log.bind(this._appInstr),error:this._appInstr.error.bind(this._appInstr),startActivity:this._appInstr.startActivity.bind(this._appInstr),domEvent:this._appInstr.domEvent.bind(this._appInstr),incrementCounter:this._appInstr.incrementCounter.bind(this._appInstr),trackValue:this._appInstr.trackValue.bind(this._appInstr),bucketValue:this._appInstr.bucketValue.bind(this._appInstr),networkInstrumentation:a.networkInstrumentation.bind(a),registerForLogPrompt:this._appInstr.registerForLogPrompt.bind(this._appInstr),activity:this._appInstr.activity.bind(this._appInstr),activityAsync:this._appInstr.activityAsync.bind(this._appInstr),startRootActivity:this._appInstr.startRootActivity.bind(this._appInstr),registerLogCollector:this.registerLogCollector.bind(this),registerMetricsCollector:this.registerMetricsCollector.bind(this),activateClickTracker:this.activateClickTracker.bind(this),deactivateClickTracker:this.deactivateClickTracker.bind(this),disableBuffering:this.disableBuffering.bind(this),promptLogCollection:this.promptLogCollection.bind(this)}}getInstrumentation(t){h.requireArgument(t,"name","string"),t.length>ir&&(t=t.substr(0,zr)+Pt);let n=this._instruments.get(t);if(!n)n=new xe(this,t),this._instruments.set(t,n);else if(n===this._appInstr)throw new Error(`The instrumentation name ${t} is being used by the app.`);return n}get appName(){var t;return(t=this._appInstr)===null||t===void 0?void 0:t.name}addLog(t,n,o,a,l,d,p){this._sequence+=1;const m=S.getSchemaId(n);let _=this._seqBySchema.get(m)||0;_+=1,this._seqBySchema.set(m,_);const w={timestamp:a,rootId:l,sequence:this._sequence,schemaSequence:_,loggerName:t,pagePayload:d?h.clone(d):void 0,appPayload:p?h.clone(p):void 0,loggerAppName:this.appName,connectionType:h.getConnectionType()};this._isBufferingEnabled&&this._buffer.push({schema:n,data:h.clone(o),logMeta:w});const N=Array.from(this._logCollectors).filter(P=>{var te;return!this._forceDisabledLogCollectors.has(P)&&!((te=P.getIsCollectDisabled)===null||te===void 0?void 0:te.call(P))});if(N.length>0)for(const P of N){const te=h.clone(o);let ae=this._logCollectorFailures.get(P)||0;try{P.collect(n,te,w),ae>0&&this._logCollectorFailures.set(P,ae-1)}catch(ge){ae+=1,ae>=ct._collectorFailureLimit?(this._forceDisabledLogCollectors.add(P),this._appInstr&&(typeof ge=="string"||ge instanceof Error)&&this._appInstr.error(ge)):this._logCollectorFailures.set(P,ae)}}return this._sequence}getBuffer(){return this._buffer}disableBuffering(){this._isBufferingEnabled=!1,this._buffer=[]}getClickTracker(){return this._autoClickTracker}getDefaultInstrumentationContext(){var t,n;return{rootId:(t=this._appInstr)===null||t===void 0?void 0:t.getSingleRootActivityId(),isRootActivitySampled:(n=this._appInstr)===null||n===void 0?void 0:n.isSingleRootActivitySampled()}}activateClickTracker(){typeof document!="undefined"&&(this._autoClickTracker||(this._autoClickTracker=new ke(this._appInstr,document)),this._autoClickTracker.activate())}deactivateClickTracker(){this._autoClickTracker&&(this._autoClickTracker.deactivate(),this._autoClickTracker=void 0)}registerLogCollector(t,n){if(h.requireArgument(t,"collector"),!this._logCollectors.has(t)&&(this._logCollectors.add(t),this._logCollectorFailures.set(t,0),(!t.getIsCollectDisabled||!t.getIsCollectDisabled())&&n&&n.retroactive))for(const o of this._buffer)t.collect(o.schema,o.data,o.logMeta)}registerMetricsCollector(t){if(h.requireArgument(t,"collector"),this._metricsCollector)throw new Error("A metrics Collector is already registered.");this._metricsCollector=t,this._metricsCollector.receiveMetricsExtractors({getAllUpCounters:this._getAllUpCounters.bind(this),getAllValueRecorders:this._getAllValueRecorders.bind(this),getAllBucketHistograms:this._getAllBucketHistograms.bind(this)})}_getAllUpCounters(){return Array.from(this._instruments.values()).map(n=>n.getUpCounters()).reduce((n,o)=>n.concat(o),[])}_getAllValueRecorders(){return Array.from(this._instruments.values()).map(n=>n.getValueRecorders()).reduce((n,o)=>n.concat(o),[])}_getAllBucketHistograms(){return Array.from(this._instruments.values()).map(n=>n.getBucketHistograms()).reduce((n,o)=>n.concat(o),[])}registerForLogPrompt(t){this._logCollectionListeners.add(t)}promptLogCollection(t){for(const n of this._logCollectionListeners.keys())try{n(t)}catch(o){if(!h.isProduction)throw o}}}ct._collectorFailureLimit=5;class Yr{get _lazyNextGen(){return this._nextgen||(this._nextgen=new ct),this._nextgen}registerInstrumentedApp(t,n){(!n||n.isProduction!==!1)&&h.markProduction();const o=this._lazyNextGen.registerApp(t,n);return n&&(this._nextgen.appPayloadProvider=n.appPayloadProvider,this._nextgen.pagePayloadProvider=n.pagePayloadProvider),o}getInstrumentation(t){return this._lazyNextGen.getInstrumentation(t)}}const ut=new Yr,dt=ut.registerInstrumentedApp.bind(ut),qe=ut.getInstrumentation.bind(ut),sr=h.time.bind(h);class ht{constructor(t,n,o,a){this.name=t,this._doneCallback=o,this._overDoneCallback=a,this._busyCount=0,this._isOk=!0,this._busyCount=n}get isBusy(){return this._isOk?this._busyCount>0:void 0}add(){this._isOk&&(this._busyCount+=1)}done(){this._isOk&&(this._busyCount>0?(this._busyCount-=1,this._busyCount||this._doneCallback()):(this._isOk=!1,this._overDoneCallback()))}}const ft=300;class ar{constructor(t){this._instr=qe("IdleDetector"),this._taskers=new Map,this._listeners=new Set,this._busyCheckers=new Map,this._logThreshold=ft,this._endedTasks=new Array,this._pollableReport=new Array,h.requireArgumentIfDefined(t==null?void 0:t.logThreshold,"options.logThreshold","number")&&(this._logThreshold=t.logThreshold)}requestIdleDetectedCallback(t){h.requireArgument(t,"callback","function"),this._listeners.size===0&&(this._firstCallbackTime=h.time().perfNow),this._listeners.add(t),this._checkIfLoaded()}_reportTaskEnded(t){if(this._listeners.size){const n=Object.assign({},this._taskers.get(t));this._endedTasks.push(n)}}declareNotifierTaskSingle(t){h.requireArgument(t,"name","string");const n=this._addTasker(t,1);return{get isBusy(){return n.isBusy},done:()=>{n.done(),this._taskers.delete(n)}}}declareNotifierTaskMulti(t,n=0){if(h.requireArgument(t,"name","string"),n!==void 0&&(h.requireArgument(n,"existingBusyCount","number"),!Number.isInteger(n)||n<0))throw new Error("existingBusyCount accepts only non-negative integers");const o=this._addTasker(t,n);return{get isBusy(){return o.isBusy},add:()=>{if(!o.isBusy){const l=this._taskers.get(o);l.start=h.time().perfNow,l.end=void 0}o.add()},done:o.done.bind(o)}}declarePollableTaskMulti(t,n){h.requireArgument(t,"name","string"),h.requireArgument(n,"isBusyChecker","function"),this._busyCheckers.set(n,t)}_addTasker(t,n){const o=new ht(t,n,()=>{this._taskers.get(o).end=h.time().perfNow,this._reportTaskEnded(o),this._checkIfLoaded()},()=>{this._instr.error(`Overdone: ${o.name}`),h.noProdThrow(`Tasker '${o.name}' is done too many times.`)});return this._taskers.set(o,{name:t,start:n>0?h.time().perfNow:void 0,end:void 0}),o}_areAllNotifiersIdle(){return!Array.from(this._taskers.keys()).some(t=>t.isBusy)}_getFirstBusyPollable(){const t=Array.from(this._busyCheckers).find(n=>{const o=n[0],a=n[1];try{return o()}catch(l){return this._instr.error(l,`BusyChecker ${a}`),h.noProdThrow(l),!1}});return t?t[1]:void 0}_checkIfLoaded(){!this._listeners.size||(this._timerCheckQueued&&clearTimeout(this._timerCheckQueued),this._areAllNotifiersIdle()&&(this._timerCheckQueued=setTimeout(()=>{this._timerCheckQueued=setTimeout(()=>{this._doubleCheck()},40)},0)))}_doubleCheck(){if(this._timerCheckQueued=void 0,this._areAllNotifiersIdle()){const t=this._getFirstBusyPollable();if(t!==void 0)this._addToPollableReport(t),this._timerCheckQueued=setTimeout(()=>{this._doubleCheck()},15);else{const n=h.time().perfNow-this._firstCallbackTime,o=Array.from(this._listeners.values());this._listeners.clear(),this._firstCallbackTime=void 0;const a=this._endedTasks.splice(0),l=this._pollableReport.splice(0);this._notify(o,n,a,l)}}}_addToPollableReport(t){const n=this._pollableReport.length?this._pollableReport[this._pollableReport.length-1]:void 0;(n==null?void 0:n.name)===t?n.count+=1:this._pollableReport.push({name:t,count:1})}_notify(t,n,o,a){if(n>=this._logThreshold){const d=this._getReport(n,t.length,o,a);this._instr.log(Ke,d)}const l=h.time().tsNow;for(const[d,p]of t.entries())try{p(l)}catch(m){this._instr.error(m,`Listener #${d}`),h.noProdThrow(m)}}getReport(){const t=h.time().perfNow,n=this._firstCallbackTime>0?t-this._firstCallbackTime:void 0,o=Array.from(this._taskers.entries()).filter(a=>a[0].isBusy).map(a=>({name:a[1].name,start:a[1].start,end:t}));return this._getReport(n,this._listeners.size,this._endedTasks.concat(o),this._pollableReport)}_getReport(t,n,o,a){const l=o.map(d=>({name:d.name,duration:d.end-d.start})).sort((d,p)=>p.duration-d.duration);return{logThreshold:this._logThreshold,maxDuration:t,listenerCount:n,pollableCount:this._busyCheckers.size,busyTasks:l.map(d=>d.name),busyDurations:l.map(d=>d.duration),pollables:a.map(d=>d.name),pollCounts:a.map(d=>d.count)}}}const lr={Error:"Crimson",Activity:"CadetBlue",InstrumentedEvent:"DarkOliveGreen",O11ySample:"BlueViolet"},cr={Error:"white",Activity:"white",InstrumentedEvent:"white",O11ySample:"white"},It="black",Lt="Gainsboro";let ur=class{constructor(t){t&&this._log("ConsoleCollector",t)}collect(t,n,o){let a,l,d;t.namespace==="sf.instrumentation"?(a=t.name,l=cr[t.name]||It,d=lr[t.name]||Lt):a=S.getSchemaId(t),this._log(a,n,o,l,d)}_log(t,n,o,a=It,l=Lt){const d=`color:${a};background-color:${l}`;console.log(`%cO11Y%c ${t}`,"color:white;background-color:#FF6600;font-weight:bold",d,n||"",o||"")}};const Qr="242.8.1",kt=new ar({logThreshold:300});var Mt=Object.freeze({__proto__:null,ConsoleCollector:ur,_version:Qr,getInstrumentation:qe,idleDetector:kt,registerInstrumentedApp:dt,time:sr});const Qe="242.17.0",dr={namespace:"sf.instrumentation",name:"WebVitals",pbjsSchema:{nested:{sf:{nested:{instrumentation:{nested:{WebVitals:{fields:{name:{id:1,type:"string"},delta:{id:3,type:"double"},value:{id:2,type:"double"}}}}}}}}}};var Ae,Je,hr,Ze,Ne=function(u,t){return{name:u,value:t===void 0?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},Ge=function(u,t){try{if(PerformanceObserver.supportedEntryTypes.includes(u)){if(u==="first-input"&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver(function(o){return o.getEntries().map(t)});return n.observe({type:u,buffered:!0}),n}}catch(o){}},je=function(u,t){var n=function o(a){a.type!=="pagehide"&&document.visibilityState!=="hidden"||(u(a),t&&(removeEventListener("visibilitychange",o,!0),removeEventListener("pagehide",o,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},ve=function(u){addEventListener("pageshow",function(t){t.persisted&&u(t)},!0)},K=function(u,t,n){var o;return function(a){t.value>=0&&(a||n)&&(t.delta=t.value-(o||0),(t.delta||o===void 0)&&(o=t.value,u(t)))}},We=-1,fr=function(){return document.visibilityState==="hidden"?0:1/0},pt=function(){je(function(u){var t=u.timeStamp;We=t},!0)},Dt=function(){return We<0&&(We=fr(),pt(),ve(function(){setTimeout(function(){We=fr(),pt()},0)})),{get firstHiddenTime(){return We}}},Jr=function(u,t){var n,o=Dt(),a=Ne("FCP"),l=function(m){m.name==="first-contentful-paint"&&(p&&p.disconnect(),m.startTime<o.firstHiddenTime&&(a.value=m.startTime,a.entries.push(m),n(!0)))},d=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],p=d?null:Ge("paint",l);(d||p)&&(n=K(u,a,t),d&&l(d),ve(function(m){a=Ne("FCP"),n=K(u,a,t),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-m.timeStamp,n(!0)})})}))},pr=!1,mr=-1,Ht=function(u,t){pr||(Jr(function(_){mr=_.value}),pr=!0);var n,o=function(_){mr>-1&&u(_)},a=Ne("CLS",0),l=0,d=[],p=function(_){if(!_.hadRecentInput){var w=d[0],N=d[d.length-1];l&&_.startTime-N.startTime<1e3&&_.startTime-w.startTime<5e3?(l+=_.value,d.push(_)):(l=_.value,d=[_]),l>a.value&&(a.value=l,a.entries=d,n())}},m=Ge("layout-shift",p);m&&(n=K(o,a,t),je(function(){m.takeRecords().map(p),n(!0)}),ve(function(){l=0,mr=-1,a=Ne("CLS",0),n=K(o,a,t)}))},et={passive:!0,capture:!0},Zr=new Date,gr=function(u,t){Ae||(Ae=t,Je=u,hr=new Date,tt(removeEventListener),_r())},_r=function(){if(Je>=0&&Je<hr-Zr){var u={entryType:"first-input",name:Ae.type,target:Ae.target,cancelable:Ae.cancelable,startTime:Ae.timeStamp,processingStart:Ae.timeStamp+Je};Ze.forEach(function(t){t(u)}),Ze=[]}},en=function(u){if(u.cancelable){var t=(u.timeStamp>1e12?new Date:performance.now())-u.timeStamp;u.type=="pointerdown"?function(n,o){var a=function(){gr(n,o),d()},l=function(){d()},d=function(){removeEventListener("pointerup",a,et),removeEventListener("pointercancel",l,et)};addEventListener("pointerup",a,et),addEventListener("pointercancel",l,et)}(t,u):gr(t,u)}},tt=function(u){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return u(t,en,et)})},mt=function(u,t){var n,o=Dt(),a=Ne("FID"),l=function(p){p.startTime<o.firstHiddenTime&&(a.value=p.processingStart-p.startTime,a.entries.push(p),n(!0))},d=Ge("first-input",l);n=K(u,a,t),d&&je(function(){d.takeRecords().map(l),d.disconnect()},!0),d&&ve(function(){var p;a=Ne("FID"),n=K(u,a,t),Ze=[],Je=-1,Ae=null,tt(addEventListener),p=l,Ze.push(p),_r()})},Ft={},tn=function(u,t){var n,o=Dt(),a=Ne("LCP"),l=function(m){var _=m.startTime;_<o.firstHiddenTime&&(a.value=_,a.entries.push(m),n())},d=Ge("largest-contentful-paint",l);if(d){n=K(u,a,t);var p=function(){Ft[a.id]||(d.takeRecords().map(l),d.disconnect(),Ft[a.id]=!0,n(!0))};["keydown","click"].forEach(function(m){addEventListener(m,p,{once:!0,capture:!0})}),je(p,!0),ve(function(m){a=Ne("LCP"),n=K(u,a,t),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-m.timeStamp,Ft[a.id]=!0,n(!0)})})})}},pe;(function(u){u[u.CLS=0]="CLS",u[u.FCP=1]="FCP",u[u.FID=2]="FID",u[u.LCP=3]="LCP",u[u.TBT=4]="TBT",u[u.TTFB=5]="TTFB"})(pe||(pe={}));const $t=[pe.CLS,pe.FID,pe.LCP];class gt{constructor(){this._isInitialized=!1,this._safety=new ce}activate(t,n){this._safety.tryCatch(()=>{if(this._isInitialized)throw new Error("WebVitals is already activated.");h.requireArgument(t,"instr","object"),h.requireArgumentIfDefined(n,"metrics",Array),this._instr=t,this._isInitialized=!0;const o=new Set(n||$t);if(o.delete(pe.CLS)&&Ht(this._metricsHandler.bind(this)),o.delete(pe.FID)&&mt(this._metricsHandler.bind(this)),o.delete(pe.LCP)&&tn(this._metricsHandler.bind(this)),o.size>0){const a=JSON.stringify(Array.from(o.keys()));this._instr.error(`Unsupported WebVital metrics: ${a}`)}})}_metricsHandler(t){this._instr.log(dr,{name:t.name,value:t.value,delta:t.delta})}}const rn=new gt;function _t(u,t){if(!u)throw new Error(t)}const nn={APEX_ACTION_ERROR:"APEX_ACTION_ERROR",FAILED_TO_LOAD_RESOURCE:"FAILED_TO_LOAD_RESOURCE",TOO_MANY_REQUESTS:"TOO_MANY_REQUESTS",UNKNOWN_ERROR:"UNKNOWN_ERROR"};function yr(u,t){var n=Object.keys(u);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(u);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(u,a).enumerable})),n.push.apply(n,o)}return n}function Bt(u){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yr(Object(n),!0).forEach(function(o){on(u,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach(function(o){Object.defineProperty(u,o,Object.getOwnPropertyDescriptor(n,o))})}return u}function on(u,t,n){return t in u?Object.defineProperty(u,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):u[t]=n,u}const sn=["POST","PATCH","PUT","DELETE"],an="X-SFDC-Request-Id",ln="X-Salesforce-Too-Many-Requests",oe="asGuest",Me="language";async function rt(u,t={}){_t(typeof u=="string","Valid path not provided for fetch request");const n=Bt(Bt({},t),{},{headers:Bt({},t.headers),credentials:t.credentials||"same-origin"});t.credentials===null&&delete n.credentials;const o=n.isNonApiRequest===!0,a=n.asGuest===!0||await z(),l=n.basePath!==void 0?n.basePath:Q.default,d=new URL(l+u,window.location);o||(d.searchParams.has(Me)||d.searchParams.append(Me,X.default),d.searchParams.has(oe)||d.searchParams.append(oe,a));const p=n.headers["Content-Type"];p===null?delete n.headers["Content-Type"]:p?n.headers["Content-Type"]=p:t.body&&(n.headers["Content-Type"]="application/json; charset=utf-8"),n.headers[an]=vr(),await br(n);const m=await window.fetch(d.toString(),n);return B(m)&&j(),m}function j(){document.dispatchEvent(new CustomEvent("client-error",{detail:{type:nn.TOO_MANY_REQUESTS}}))}function B(u){return!!((u.status===503||u.status===429)&&u.headers.get(ln))}async function br(u){if(u.method&&sn.includes(u.method)){const{default:t}=await I.load("@app/user/v/1");u.headers["CSRF-Token"]=t.csrfToken}}async function Ee({path:u,payload:t,contentType:n}){const o=V.default+u;window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(o,t)||await rt(u,{headers:{"Content-Type":n},basePath:V.default,body:t,method:"POST",isNonApiRequest:!0})}function vr(){return(Date.now()+Ve()+Math.round(Math.random()*1e8)).substring(0,18)}function Ve(){function u(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return u()+u()}async function z(){const{default:u}=await I.load("@app/user/v/1");return u.isGuest}var Er=Object.freeze({__proto__:null,fetch:rt,sendBeacon:Ee});const wr=5e4,Tr=3e3,{ConsoleCollector:cn,_version:un,registerInstrumentedApp:H,idleDetector:Z}=Mt,Re=un,Y="O11Y_ENDPOINT_NOT_CONFIGURED",dn="lwr_experience",ie={clientVersion:Re,schemaVersion:Qe};let W,De,me="";const Se=rt;globalThis?.LWR?.define&&(LWR.define("transport",[],()=>Er),LWR.define("o11y/client",[],()=>Mt),LWR.define("o11y/shared",[],()=>$e));async function Cr(u){const n=(typeof process!="undefined"&&process.env)?.O11Y_ENV!=="dev";try{ie.isSampled=!n||F.default>0&&F.default>=Math.random();const o=!n;ie.app=H(dn,{isProduction:n,enableBuffering:!0}),rn.activate(ie.app);let a=!1;if(ie.initConsole=l=>{if(!a){const d=new cn;ie.app.registerLogCollector(d,l),a=!0}},o&&(ie.initConsole(),ie.app.log("o11y started")),ie.upload=yt,ie.isSampled){let l;if(Pe.default?(!le.default||le.default===Y)&&(l="o11yApiEndpoint not valid"):l="o11yGuestToken not set",l)throw ie.app.error(l),new Error(l);await He();const d=Ar();if(me=d.guestToken,!d.meta?.isGuestApiAccessEnabled){const{default:p}=await I.load("@app/user/v/1");if(p.isGuest)return}await Nr(ie.app,{appName:u.appMetadata.bootstrapModule,sdkVersion:`o11y ${Re}:${Qe}`}),window.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&yt(!0)}),await yt(!0)}}catch(o){if(!n)throw o;try{console?.error("Failed to start o11y",o)}catch{}}finally{try{ie.app?.disableBuffering()}catch{}}}function Ar(){const u={},t=Pe.default.indexOf("|");return t>=0?(u.guestToken=Pe.default.substring(0,t),u.meta=JSON.parse(Pe.default.substring(t+1))):u.guestToken=Pe.default,u}function hn(){return ie}async function He(){const u=t=>{let n=!1;setTimeout(()=>{n||(n=!0,t())},Tr),Z.requestIdleDetectedCallback(()=>{n||(n=!0,t())})};return new Promise(t=>{document.readyState==="complete"?u(t):window.addEventListener("load",()=>u(t))})}async function Nr(u,t){const[n,o]=await Promise.all([I.load("o11y/simple_collector/v/242_8_1"),I.load("o11y/collectors/v/242_8_1")]);De=(o.default||o).encodeCoreEnvelopeContentsRaw,W=new(n.default||n).SimpleCollector({environment:t,precollectCallback:()=>{try{yt()}catch{}}}),u.registerLogCollector(W,{retroactive:!0}),u.registerMetricsCollector(W)}function yt(u=!1){if(!W?.hasData||W.estimatedByteSize<wr&&!u)return Promise.resolve(new Response);const t=W.getRawContentsOfCoreEnvelope(),n=De(t);return _e.default?nt(n):fn(n)}function fn(u){const t=String.fromCharCode,n=[];for(let l=0,d=u.length;l<d;l++)n.push(t(u[l]));const o=window.btoa(n.join("")),a=JSON.stringify({base64Env:o});return Se(le.default,{method:"POST",body:a,keepalive:!0})}function nt(u){const t={method:"POST",body:u,headers:{"x-sfdc-o11y-token":me,"Content-Type":"application/octet-stream"},keepalive:!0};return fetch(le.default,t)}v._getO11y=hn,v.default=Cr,Object.defineProperty(v,"__esModule",{value:!0})}),LWR.define("webruntime/hook/v/1_66_217-242_0",["exports"],function(v){"use strict";var I=["@app/apexApiBasePath","@app/apiBasePath","@app/authenticationCookieName","@app/basePath","@app/guestUuidCookieName","@app/isDesignMode","@app/isPreviewMode","@app/isMobileAppMode","@app/loginPath","@app/o11yApiEndpoint","@app/o11yFalconEnabled","@app/o11yGuestToken","@app/o11ySamplingRate","@app/routes","@app/versionKey","@app/viewToThemeLayoutMap","@app/views","@salesforce/community/basePath","@salesforce/i18n/lang","@salesforce/site/Id","@salesforce/webstore/Id"],M=["@salesforce/cssvars/customProperties","aura-instrumentation","aura-storage","aura","instrumentation/service","instrumentation/utility","lightning/configProvider","lightning/navigation","transport","webruntime/transport","logger","assert","o11y/shared","o11y/client","webruntime_navigation/link","webruntime/expressions","webruntime/routerContainer","webruntime/componentContainer","webruntime/slotContainer","webruntime/routingService","webruntime/overrides","webruntimedesign/componentWrapper","webruntimedesign/regionWrapper","webruntimedesign/dropRegion","webruntimedesign/componentService","webruntimedesign/designComponent","mobileruntime/hybridAppManager","wire-service","@salesforce/client/formFactor"];const T=["webruntimedesign/componentWrapper","webruntimedesign/regionWrapper","webruntimedesign/dropRegion","webruntimedesign/componentService","webruntimedesign/designComponent"];function U(y){y.addLoaderPlugin({resolveModule:async ee=>{const[G]=ee.split("/v/");return G==="webruntime/transport"?"transport":G&&(M.includes(G)||T.includes(G)||I.includes(G))?G:G==="@salesforce/loader"?"lwr/loaderLegacy/v/0_8_8":null}})}v.default=U,Object.defineProperty(v,"__esModule",{value:!0})}),LWR.define("@lwc/synthetic-shadow/v/2_31_2",function(){"use strict";const{assign:v,create:I,defineProperties:M,defineProperty:T,freeze:U,getOwnPropertyDescriptor:y,getOwnPropertyNames:ee,getPrototypeOf:G,hasOwnProperty:A,isFrozen:L,keys:V,seal:Q,setPrototypeOf:X}=Object,{concat:le,copyWithin:_e,fill:Pe,filter:F,find:re,indexOf:D,join:h,map:ce,pop:zt,push:S,reduce:$e,reverse:st,shift:Et,slice:k,some:Pn,sort:In,splice:Yt,unshift:Ln,forEach:Ie}=Array.prototype,{charCodeAt:at,replace:kn,slice:Mn,toLowerCase:R}=String.prototype;function g(e){return e===void 0}function b(e){return e===null}function Te(e){return e===!0}function ye(e){return e===!1}function ue(e){return typeof e=="function"}function Le(e){return typeof e=="object"}const lt=function(){if(typeof globalThis=="object")return globalThis;let e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(r){}finally{typeof e=="undefined"&&(e=window)}return e}(),Dr="$isNativeShadowRootDefined$",Ke="$shadowResolver$",Qt="$$ShadowResolverKey$$",Jt="$shadowStaticNode$",Zt="$shadowStaticNodeKey$",wt="$shadowToken$",Tt="$$ShadowTokenKey$$",Hr="$$lwc-synthetic-mode",J=Node,ne=J.prototype,{DOCUMENT_POSITION_CONTAINED_BY:be,DOCUMENT_POSITION_CONTAINS:Fr,DOCUMENT_POSITION_PRECEDING:er,DOCUMENT_POSITION_FOLLOWING:$r,ELEMENT_NODE:Ct,TEXT_NODE:tr,CDATA_SECTION_NODE:Br,PROCESSING_INSTRUCTION_NODE:xr,COMMENT_NODE:At,DOCUMENT_FRAGMENT_NODE:Ur}=J,{appendChild:qr,cloneNode:ze,compareDocumentPosition:he,insertBefore:Gr,removeChild:jr,replaceChild:Nt,hasChildNodes:rr}=ne,{contains:Rt}=HTMLElement.prototype,nr=y(ne,"firstChild").get,Be=y(ne,"lastChild").get,St=y(ne,"textContent").get,Ce=y(ne,"parentNode").get,or=y(ne,"ownerDocument").get,fe=A.call(ne,"parentElement")?y(ne,"parentElement").get:y(HTMLElement.prototype,"parentElement").get,Ot=y(ne,"textContent").set,de=A.call(ne,"childNodes")?y(ne,"childNodes").get:y(HTMLElement.prototype,"childNodes").get,xe=A.call(ne,"isConnected")?y(ne,"isConnected").get:function(){const e=or.call(this);return e===null||(he.call(e,this)&be)!=0},{getAttribute:Ue,getBoundingClientRect:Wr,getElementsByTagName:Vr,getElementsByTagNameNS:Xr,hasAttribute:Ye,querySelector:Kr,querySelectorAll:ke,removeAttribute:ir,setAttribute:Pt}=Element.prototype,zr=A.call(Element.prototype,"attachShadow")?Element.prototype.attachShadow:()=>{throw new TypeError("attachShadow() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill and use Lightning Web Components")},ct=y(Element.prototype,"childElementCount").get,Yr=y(Element.prototype,"firstElementChild").get,ut=y(Element.prototype,"lastElementChild").get,dt=y(HTMLElement.prototype,"innerText"),qe=dt?dt.get:null,sr=dt?dt.set:null,ht=y(HTMLElement.prototype,"outerText"),ft=ht?ht.get:null,ar=ht?ht.set:null,lr=A.call(Element.prototype,"innerHTML")?y(Element.prototype,"innerHTML"):y(HTMLElement.prototype,"innerHTML"),cr=lr.get,It=lr.set,Lt=A.call(Element.prototype,"outerHTML")?y(Element.prototype,"outerHTML"):y(HTMLElement.prototype,"outerHTML"),ur=Lt.get,Qr=Lt.set,kt=y(Element.prototype,"tagName").get,Mt=y(HTMLElement.prototype,"tabIndex"),Qe=Mt.get,dr=Mt.set,Ae=A.call(Element.prototype,"matches")?Element.prototype.matches:Element.prototype.msMatchesSelector,Je=A.call(Element.prototype,"children")?y(Element.prototype,"children").get:y(HTMLElement.prototype,"children").get,{getElementsByClassName:hr}=HTMLElement.prototype,Ze=A.call(Element.prototype,"shadowRoot")?y(Element.prototype,"shadowRoot").get:()=>null,Ne=A.call(Element.prototype,"assignedSlot")?y(Element.prototype,"assignedSlot").get:()=>null;let Ge,je;typeof HTMLSlotElement!="undefined"?(Ge=HTMLSlotElement.prototype.assignedNodes,je=HTMLSlotElement.prototype.assignedElements):(Ge=()=>{throw new TypeError("assignedNodes() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")},je=()=>{throw new TypeError("assignedElements() is not supported in current browser. Load the @lwc/synthetic-shadow polyfill to start using <slot> elements in your Lightning Web Component's template")});const ve=y(Event.prototype,"target").get,K=y(Event.prototype,"currentTarget").get,We=y(FocusEvent.prototype,"relatedTarget").get,fr=A.call(Event.prototype,"composedPath")?Event.prototype.composedPath:()=>[],pt=y(Document.prototype,"activeElement").get,Dt=A.call(Document.prototype,"elementFromPoint")?Document.prototype.elementFromPoint:Document.prototype.msElementFromPoint,Jr=A.call(Document.prototype,"elementsFromPoint")?Document.prototype.elementsFromPoint:Document.prototype.msElementsFromPoint,pr=y(Document.prototype,"defaultView").get,{createComment:mr,querySelectorAll:Ht,getElementById:et,getElementsByClassName:Zr,getElementsByTagName:gr,getElementsByTagNameNS:_r}=Document.prototype,{getElementsByName:en}=HTMLDocument.prototype,{addEventListener:tt,removeEventListener:mt,getComputedStyle:Ft,getSelection:tn}=window,pe=MutationObserver,$t=pe.prototype.observe;let gt=null;typeof ShadowRoot!="undefined"&&(gt=ShadowRoot);const rn=!b(gt),_t=b(gt)?()=>!1:e=>e instanceof gt;function nn(){return typeof HTMLSlotElement=="undefined"}const{createElement:yr}=Document.prototype,Bt=115,on=108,sn=111,an=116;function ln(){class e{}X(e,HTMLElement.constructor),X(e.prototype,HTMLElement.prototype),Window.prototype.HTMLSlotElement=e,T(Document.prototype,"createElement",{value:function(r,i){const s=yr.apply(this,k.call(arguments));return r.length===4&&at.call(r,0)===Bt&&at.call(r,1)===on&&at.call(r,2)===sn&&at.call(r,3)===an&&X(s,e.prototype),s}})}nn()&&ln();function oe(e){const r=or.call(e);return r===null?e:r}function Me(e){const r=oe(e),i=pr.call(r);if(i===null)throw new TypeError;return i}let rt;function j(e){if(g(rt)){const r=oe(e);rt=r.body&&Ue.call(r.body,"data-global-patching-bypass")==="temporary-bypass"}return Te(rt)}function B(e){const r=e.length,i=[];if(r>0)for(let s=0;s<r;s++)i[s]=e[s];return i}const br=typeof EventTarget!="undefined"?EventTarget.prototype:J.prototype,{addEventListener:Ee,dispatchEvent:vr,removeEventListener:Ve}=br;lt.lwcRuntimeFlags||Object.defineProperty(lt,"lwcRuntimeFlags",{value:I(null)});const z=lt.lwcRuntimeFlags,Er="$$HostElementKey$$",wr="$$ShadowedNodeKey$$";function Tr(e,r,i){const s=e;{const{value:c}=i;s[r]=c}}function cn(e,r){Tr(e,Er,{value:r,configurable:!0})}function un(e,r){Tr(e,wr,{value:r})}function H(e){return e[Er]}function Z(e){let r=e,i;for(;!b(r);){if(i=H(r),!g(i))return i;if(r=Ce.call(r),z.ENABLE_LIGHT_GET_ROOT_NODE_PATCH&&!b(r)&&De(r))return}}function Re(e){return e[wr]}function Y(e){return!g(H(e))}function dn(e){let r=fe.call(e);for(;!b(r)&&me(r);)e=r,r=fe.call(e);return e}function ie(e,r){const i=Re(e);let s=r instanceof Element?r:fe.call(r);for(;!b(s)&&s!==e;){const c=Z(s),f=fe.call(s);if(c===i)return me(s);if(f===e)return!1;if(!b(f)&&Z(f)!==c)if(me(f)){if(s=W(dn(f)),!b(s)){if(s===e)return!0;if(Z(s)===i)return!0}}else return!1;else s=f}return!1}function W(e){if(!(e instanceof J))return null;const r=Z(e);if(g(r))return null;let i=e;for(;!b(i)&&Re(i)!==r;)i=Ce.call(i);return b(i)?null:i}function De(e){return me(e)&&Y(e)}function me(e){return e instanceof HTMLSlotElement}function Se(e,r){const i=Z(r);if(g(i)){if(z.ENABLE_LIGHT_GET_ROOT_NODE_PATCH){const s=Ce.call(r);if(!b(s)&&De(s))return!1}return!0}return Re(e)===i}function Cr(e){const r=q(e);return He(r,B(de.call(r)))}function Ar(e,r){const i=[];for(let s=0,c=r.length;s<c;s+=1){const f=r[s];!Se(e,f)&&ie(e,f)&&S.call(i,f)}return i}function hn(e,r){for(let i=0,s=r.length;i<s;i+=1){const c=r[i];if(!Se(e,c)&&ie(e,c))return c}return null}function He(e,r){const i=[];for(let s=0,c=r.length;s<c;s+=1){const f=r[s];Se(e,f)&&S.call(i,f)}return i}function Nr(e,r){for(let i=0,s=r.length;i<s;i+=1)if(Se(e,r[i]))return r[i];return null}function yt(e,r){const i=q(e),s=B(ke.call(i,r));return Nr(i,s)}function fn(e,r){const i=q(e),s=ke.call(i,r);return He(i,B(s))}function nt(e){if(!$(e)&&!me(e)){const r=de.call(e);return B(r)}if($(e)){const r=B(ke.call(e,"slot")),i=it(Fe(e));return $e.call(r,(s,c)=>(i===it(c)&&S.apply(s,u(c)),s),[])}else{const r=B(de.call(e)),i=it(e);return F.call(r,s=>i===it(s))}}function u(e){const r=W(e);if(b(r))return[];const i=B(de.call(e));return F.call(i,s=>!Y(s)||!Se(r,s))}function t(e){let r="";const i=nt(e);for(let s=0,c=i.length;s<c;s+=1)r+=N(i[s]);return r}const n=/[&\u00A0"]/g,o=/[&\u00A0<>]/g,{replace:a,toLowerCase:l}=String.prototype;function d(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case"\xA0":return"&nbsp;";default:return""}}function p(e){return a.call(e,n,d)}function m(e){return a.call(e,o,d)}const _=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"]),w=new Set(["STYLE","SCRIPT","XMP","IFRAME","NOEMBED","NOFRAMES","PLAINTEXT","NOSCRIPT"]);function N(e){switch(e.nodeType){case Ct:{const{attributes:r}=e,i=kt.call(e);let s="<"+l.call(i);for(let c=0,f;f=r[c];c++)s+=" "+f.name+'="'+p(f.value)+'"';return s+=">",_.has(i)?s:s+t(e)+"</"+l.call(i)+">"}case tr:{const{data:r,parentNode:i}=e;return i instanceof Element&&w.has(kt.call(i))?r:m(r)}case Br:return`<!CDATA[[${e.data}]]>`;case xr:return`<?${e.target} ${e.data}?>`;case At:return`<!--${e.data}-->`;default:return""}}function P(e){switch(e.nodeType){case Ct:{const r=nt(e);let i="";for(let s=0,c=r.length;s<c;s+=1){const f=r[s];f.nodeType!==At&&(i+=P(f))}return i}default:return e.nodeValue}}const te=new WeakMap;function ae(){throw new TypeError("Illegal constructor")}ae.prototype=I(NodeList.prototype,{constructor:{writable:!0,configurable:!0,value:ae},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return te.get(this).length}},forEach:{writable:!0,enumerable:!0,configurable:!0,value(e,r){Ie.call(te.get(this),e,r)}},entries:{writable:!0,enumerable:!0,configurable:!0,value(){return ce.call(te.get(this),(e,r)=>[r,e])}},keys:{writable:!0,enumerable:!0,configurable:!0,value(){return ce.call(te.get(this),(e,r)=>r)}},values:{writable:!0,enumerable:!0,configurable:!0,value(){return te.get(this)}},[Symbol.iterator]:{writable:!0,configurable:!0,value(){let e=0;return{next:()=>{const r=te.get(this);return e<r.length?{value:r[e++],done:!1}:{done:!0}}}}},[Symbol.toStringTag]:{configurable:!0,get(){return"NodeList"}},toString:{writable:!0,configurable:!0,value(){return"[object NodeList]"}}}),X(ae,NodeList);function ge(e){const r=I(ae.prototype);return te.set(r,e),Ie.call(e,(i,s)=>{T(r,s,{value:i,enumerable:!0,configurable:!0})}),r}function Mo(e){var r;const i=[];let s=e.getRootNode();for(;!g(s);)i.push(s),s=(r=s.host)===null||r===void 0?void 0:r.getRootNode();return i}const Do=(e,r)=>{let i;for(;!g(i=e.host);){const s=i.getRootNode();if(s===r)return i;e=s}};function Dn(e,r,i,s){const c=Jr.call(r,i,s),f=[],E=Mo(e);if(!b(c))for(let C=0;C<c.length;C++){const O=c[C];if(De(O))continue;const x=O.getRootNode();if(D.call(E,x)!==-1){S.call(f,O);continue}const se=Do(x,E[0]);!g(se)&&D.call(c,se)===-1&&D.call(f,se)===-1&&S.call(f,se)}return f}const pn=new WeakMap;function Rr(){throw new TypeError("Illegal constructor")}Rr.prototype=I(HTMLCollection.prototype,{constructor:{writable:!0,configurable:!0,value:Rr},item:{writable:!0,enumerable:!0,configurable:!0,value(e){return this[e]}},length:{enumerable:!0,configurable:!0,get(){return pn.get(this).length}},namedItem:{writable:!0,enumerable:!0,configurable:!0,value(e){if(e==="")return null;const r=pn.get(this);for(let i=0,s=r.length;i<s;i++){const c=r[s];if(e===Ue.call(c,"id")||e===Ue.call(c,"name"))return c}return null}},[Symbol.toStringTag]:{configurable:!0,get(){return"HTMLCollection"}},toString:{writable:!0,configurable:!0,value(){return"[object HTMLCollection]"}}}),X(Rr,HTMLCollection);function we(e){const r=I(Rr.prototype);return pn.set(r,e),Ie.call(e,(i,s)=>{T(r,s,{value:i,enumerable:!0,configurable:!0})}),r}function Xe(e){return De(e)||$(e)}function Hn(e,r){const i=W(e);if(r===i)return Fe(i);if(r instanceof Element){if(Z(e)===Z(r))return r;if(!b(i)&&me(r)){const s=W(r);if(!b(s)&&Se(i,s))return s}}return null}function Ho(){return Oe(this).length>0}function Fo(){return Oe(this)[0]||null}function $o(){const e=Oe(this);return e[e.length-1]||null}function Fn(){return P(this)}function Bo(e){Ot.call(this,e)}function xo(){const e=Ce.call(this);return b(e)?e:Hn(this,e)}function Uo(){const e=Ce.call(this);if(b(e))return null;const r=Hn(this,e);return r instanceof Element?r:null}function qo(e){return this===e?0:this.getRootNode()===e?10:H(this)!==H(e)?35:he.call(this,e)}function $n(e){return e==null||H(this)!==H(e)?!1:(he.call(this,e)&be)!=0}function Bn(e){const r=ze.call(this,!1);if(!e)return r;const i=Oe(this);for(let s=0,c=i.length;s<c;s+=1)r.appendChild(i[s].cloneNode(!0));return r}function Go(){if($(this)){const e=W(this),r=b(e)?[]:He(e,nt(this));return ge(r)}return de.call(this)}const xn=J.prototype.getRootNode,Un=g(xn)?function(){let e=this,r;for(;!b(r=Ce.call(e));)e=r;return e}:xn;function jo(e){const r=W(e);return b(r)?Un.call(e):Fe(r)}function Wo(e){const r=g(e)?!1:!!e.composed;return Te(r)?Un.call(this,e):jo(this)}M(J.prototype,{firstChild:{get(){return Xe(this)?Fo.call(this):nr.call(this)},enumerable:!0,configurable:!0},lastChild:{get(){return Xe(this)?$o.call(this):Be.call(this)},enumerable:!0,configurable:!0},textContent:{get(){return z.ENABLE_NODE_PATCH?j(this)?St.call(this):Fn.call(this):Y(this)||$(this)?Fn.call(this):St.call(this)},set:Bo,enumerable:!0,configurable:!0},parentNode:{get(){if(Y(this))return xo.call(this);const e=Ce.call(this);return!b(e)&&De(e)?W(e):e},enumerable:!0,configurable:!0},parentElement:{get(){if(Y(this))return Uo.call(this);const e=fe.call(this);return!b(e)&&De(e)?W(e):e},enumerable:!0,configurable:!0},childNodes:{get(){return Xe(this)?Go.call(this):de.call(this)},enumerable:!0,configurable:!0},hasChildNodes:{value(){return Xe(this)?Ho.call(this):rr.call(this)},enumerable:!0,writable:!0,configurable:!0},compareDocumentPosition:{value(e){return j(this)?he.call(this,e):qo.call(this,e)},enumerable:!0,writable:!0,configurable:!0},contains:{value(e){return this===e?!0:z.ENABLE_NODE_PATCH?j(this)?Rt.call(this,e):$n.call(this,e):e==null?!1:Y(this)||$(this)?$n.call(this,e):Rt.call(this,e)},enumerable:!0,writable:!0,configurable:!0},cloneNode:{value(e){return z.ENABLE_NODE_PATCH?Te(e)?j(this)?ze.call(this,e):Bn.call(this,e):ze.call(this,e):Y(this)||$(this)?Bn.call(this,e):ze.call(this,e)},enumerable:!0,writable:!0,configurable:!0},getRootNode:{value:Wo,enumerable:!0,configurable:!0,writable:!0},isConnected:{enumerable:!0,configurable:!0,get(){return xe.call(this)}}});const Oe=function(e){return e.childNodes};A.call(HTMLElement.prototype,"contains")&&T(HTMLElement.prototype,"contains",y(J.prototype,"contains")),A.call(HTMLElement.prototype,"parentElement")&&T(HTMLElement.prototype,"parentElement",y(J.prototype,"parentElement"));const qn=new WeakMap,Gn=new WeakMap;function Vo(e){return ue(e)||Le(e)&&!b(e)&&ue(e.handleEvent)}function mn(e,r,i){if(r===i)return!0;let s=Gn.get(e);return g(s)&&(s=e.composedPath(),Gn.set(e,s)),s.includes(i)}function xt(e){if(!Vo(e))return e;let r=qn.get(e);return g(r)&&(r=function(i){const s=K.call(i),c=_n(i);if(!!mn(i,c,s))return ue(e)?e.call(this,i):e.handleEvent&&e.handleEvent(i)},qn.set(e,r)),r}const Ut=new WeakMap,jn=new WeakMap;function gn(e){let r=jn.get(e);return g(r)&&(r=I(null),jn.set(e,r)),r}function _n(e){var r;return(r=Sr.get(e))!==null&&r!==void 0?r:ve.call(e)}const Wn=new WeakMap;function Vn(e){if(!ue(e))throw new TypeError;let r=Wn.get(e);return g(r)&&(r=function(i){let s=K.call(i);_t(s)||(s=Fe(s));const c=_n(i);mn(i,c,s)&&e.call(s,i)},r.placement=1,Wn.set(e,r)),r}const Xn=new WeakMap;function Kn(e){if(!ue(e))throw new TypeError;let r=Xn.get(e);return g(r)&&(r=function(i){const s=K.call(i),c=_n(i);mn(i,c,s)&&e.call(s,i)},r.placement=0,Xn.set(e,r)),r}function zn(e){let r=!1,i=!1;const{type:s,stopImmediatePropagation:c,stopPropagation:f}=e,E=K.call(e),O=gn(E)[s];T(e,"stopImmediatePropagation",{value(){r=!0,c.call(e)},writable:!0,enumerable:!0,configurable:!0}),T(e,"stopPropagation",{value(){i=!0,f.call(e)},writable:!0,enumerable:!0,configurable:!0});const x=k.call(O);function se(as){Ie.call(x,On=>{ye(r)&&On.placement===as&&D.call(O,On)!==-1&&On.call(void 0,e)})}Ut.set(e,1),se(1),ye(r)&&ye(i)&&(Ut.set(e,0),se(0)),Ut.set(e,2)}function Yn(e,r,i){const s=gn(e);let c=s[r];g(c)&&(c=s[r]=[]),D.call(c,i)===-1&&(c.length===0&&Ee.call(e,r,zn),S.call(c,i))}function Qn(e,r,i){const s=gn(e);let c,f;!g(f=s[r])&&(c=D.call(f,i))!==-1&&(Yt.call(f,c,1),f.length===0&&Ve.call(e,r,zn))}function Xo(e,r,i){if(ue(r)){const s=Kn(r);Yn(this,e,s)}}function Ko(e,r,i){if(ue(r)){const s=Kn(r);Qn(this,e,s)}}function zo(e,r,i,s){if(ue(i)){const c=q(e),f=Vn(i);Yn(c,r,f)}}function Yo(e,r,i,s){if(ue(i)){const c=q(e),f=Vn(i);Qn(c,r,f)}}const ot=new WeakMap,{createDocumentFragment:Qo}=document;function Jo(e){return ot.has(e)}function qt(e){const r=ot.get(e);if(g(r))throw new TypeError;return r}T(J.prototype,Ke,{set(e){g(e)||(this[Qt]=e,cn(this,e.nodeKey))},get(){return this[Qt]},configurable:!0,enumerable:!0}),T(lt,Dr,{value:rn});function it(e){return e[Ke]}function Jn(e,r){e[Ke]=r}function Gt(e){return qt(e).delegatesFocus}function q(e){return qt(e).host}function Fe(e){return qt(e).shadowRoot}function $(e){const r=ot.get(e);return!g(r)&&e===r.host}function yn(e){const r=ot.get(e);return!g(r)&&e===r.shadowRoot}let Zo=0;function ei(e,r){if(ot.has(e))throw new Error("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");const{mode:i,delegatesFocus:s}=r,c=oe(e),f=Qo.call(c),E={mode:i,delegatesFocus:!!s,host:e,shadowRoot:f};ot.set(f,E),ot.set(e,E);const C=()=>f,O=C.nodeKey=Zo++;return un(e,O),Jn(f,C),X(f,bt.prototype),f}const Zn={constructor:{writable:!0,configurable:!0,value:bt},toString:{writable:!0,configurable:!0,value(){return"[object ShadowRoot]"}},synthetic:{writable:!1,enumerable:!1,configurable:!1,value:!0}},ti={activeElement:{enumerable:!0,configurable:!0,get(){const e=q(this),r=oe(e),i=pt.call(r);if(b(i))return i;if((he.call(e,i)&be)==0)return null;let s=i;for(;!Se(e,s);)s=fe.call(s);return me(s)?null:s}},delegatesFocus:{configurable:!0,get(){return qt(this).delegatesFocus}},elementFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,r){const i=q(this),s=oe(i);return eo(this,s,e,r)}},elementsFromPoint:{writable:!0,enumerable:!0,configurable:!0,value(e,r){const i=q(this),s=oe(i);return Dn(this,s,e,r)}},getSelection:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getSelection" on ShadowRoot.')}},host:{enumerable:!0,configurable:!0,get(){return q(this)}},mode:{configurable:!0,get(){return qt(this).mode}},styleSheets:{enumerable:!0,configurable:!0,get(){throw new Error}}},Sr=new WeakMap;v(Zn,{insertBefore:{writable:!0,enumerable:!0,configurable:!0,value(e,r){return Gr.call(q(this),e,r),e}},removeChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return jr.call(q(this),e),e}},appendChild:{writable:!0,enumerable:!0,configurable:!0,value(e){return qr.call(q(this),e),e}},replaceChild:{writable:!0,enumerable:!0,configurable:!0,value(e,r){return Nt.call(q(this),e,r),r}},addEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,r,i){zo(this,e,r)}},dispatchEvent:{writable:!0,enumerable:!0,configurable:!0,value(e){return Sr.set(e,this),vr.apply(q(this),arguments)}},removeEventListener:{writable:!0,enumerable:!0,configurable:!0,value(e,r,i){Yo(this,e,r)}},baseURI:{enumerable:!0,configurable:!0,get(){return q(this).baseURI}},childNodes:{enumerable:!0,configurable:!0,get(){return ge(Cr(this))}},cloneNode:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "cloneNode" on ShadowRoot.')}},compareDocumentPosition:{writable:!0,enumerable:!0,configurable:!0,value(e){const r=q(this);return this===e?0:this.contains(e)?20:he.call(r,e)&be?37:35}},contains:{writable:!0,enumerable:!0,configurable:!0,value(e){if(this===e)return!0;const r=q(this);return(he.call(r,e)&be)!=0&&Se(r,e)}},firstChild:{enumerable:!0,configurable:!0,get(){return Oe(this)[0]||null}},lastChild:{enumerable:!0,configurable:!0,get(){const e=Oe(this);return e[e.length-1]||null}},hasChildNodes:{writable:!0,enumerable:!0,configurable:!0,value(){return Oe(this).length>0}},isConnected:{enumerable:!0,configurable:!0,get(){return xe.call(q(this))}},nextSibling:{enumerable:!0,configurable:!0,get(){return null}},previousSibling:{enumerable:!0,configurable:!0,get(){return null}},nodeName:{enumerable:!0,configurable:!0,get(){return"#document-fragment"}},nodeType:{enumerable:!0,configurable:!0,get(){return 11}},nodeValue:{enumerable:!0,configurable:!0,get(){return null}},ownerDocument:{enumerable:!0,configurable:!0,get(){return q(this).ownerDocument}},parentElement:{enumerable:!0,configurable:!0,get(){return null}},parentNode:{enumerable:!0,configurable:!0,get(){return null}},textContent:{enumerable:!0,configurable:!0,get(){const e=Oe(this);let r="";for(let i=0,s=e.length;i<s;i+=1){const c=e[i];c.nodeType!==At&&(r+=P(c))}return r},set(e){const r=q(this);Ot.call(r,e)}},getRootNode:{writable:!0,enumerable:!0,configurable:!0,value(e){return!g(e)&&Te(e.composed)?q(this).getRootNode(e):this}}},{childElementCount:{enumerable:!0,configurable:!0,get(){return this.children.length}},children:{enumerable:!0,configurable:!0,get(){return we(F.call(Cr(this),e=>e instanceof Element))}},firstElementChild:{enumerable:!0,configurable:!0,get(){return this.children[0]||null}},lastElementChild:{enumerable:!0,configurable:!0,get(){const{children:e}=this;return e.item(e.length-1)||null}},getElementById:{writable:!0,enumerable:!0,configurable:!0,value(){throw new Error('Disallowed method "getElementById" on ShadowRoot.')}},querySelector:{writable:!0,enumerable:!0,configurable:!0,value(e){return yt(this,e)}},querySelectorAll:{writable:!0,enumerable:!0,configurable:!0,value(e){return ge(fn(this,e))}}},{innerHTML:{enumerable:!0,configurable:!0,get(){const e=Oe(this);let r="";for(let i=0,s=e.length;i<s;i+=1)r+=N(e[i]);return r},set(e){const r=q(this);It.call(r,e)}}},ti);function bt(){throw new TypeError("Illegal constructor")}bt.prototype=I(DocumentFragment.prototype,Zn),T(bt,Symbol.hasInstance,{value:function(e){return Le(e)&&!b(e)&&(_t(e)||G(e)===bt.prototype)}});function vt(e,r){const i=[];let s;if(e instanceof Window)s=e;else if(e instanceof J)s=e.getRootNode();else return i;let c=e;for(;!b(c);)if(i.push(c),c instanceof Element||c instanceof Text){const E=c.assignedSlot;b(E)?c=c.parentNode:c=E}else(yn(c)||_t(c))&&(r||c!==s)?c=c.host:c instanceof J?c=c.parentNode:c=null;let f;return e instanceof Window?f=e.document:f=oe(e),i[i.length-1]===f&&i.push(window),i}/**
@license
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/function jt(e,r){if(b(e))return null;const i=vt(e,!0),s=r;for(let c=0,f,E,C,O;c<s.length;c++)if(f=s[c],C=f instanceof Window?f:f.getRootNode(),C!==E&&(O=i.indexOf(C),E=C),!yn(C)||!g(O)&&O>-1)return f;return null}function eo(e,r,i,s){const c=Dt.call(r,i,s);return b(c)?c:jt(e,vt(c,!0))}function ri(e,r){return eo(this,this,e,r)}Document.prototype.elementFromPoint=ri;function ni(e,r){return Dn(this,this,e,r)}Document.prototype.elementsFromPoint=ni,T(Document.prototype,"activeElement",{get(){let e=pt.call(this);if(b(e))return e;for(;!g(H(e));)if(e=fe.call(e),b(e))return null;return e.tagName==="HTML"&&(e=this.body),e},enumerable:!0,configurable:!0}),T(Document.prototype,"getElementById",{value(){const e=et.apply(this,k.call(arguments));return b(e)?null:g(H(e))||j(e)?e:null},writable:!0,enumerable:!0,configurable:!0}),T(Document.prototype,"querySelector",{value(){const e=B(Ht.apply(this,k.call(arguments))),r=re.call(e,i=>g(H(i))||j(i));return g(r)?null:r},writable:!0,enumerable:!0,configurable:!0}),T(Document.prototype,"querySelectorAll",{value(){const e=B(Ht.apply(this,k.call(arguments))),r=F.call(e,i=>g(H(i))||j(i));return ge(r)},writable:!0,enumerable:!0,configurable:!0}),T(Document.prototype,"getElementsByClassName",{value(){const e=B(Zr.apply(this,k.call(arguments))),r=F.call(e,i=>g(H(i))||j(i));return we(r)},writable:!0,enumerable:!0,configurable:!0}),T(Document.prototype,"getElementsByTagName",{value(){const e=B(gr.apply(this,k.call(arguments))),r=F.call(e,i=>g(H(i))||j(i));return we(r)},writable:!0,enumerable:!0,configurable:!0}),T(Document.prototype,"getElementsByTagNameNS",{value(){const e=B(_r.apply(this,k.call(arguments))),r=F.call(e,i=>g(H(i))||j(i));return we(r)},writable:!0,enumerable:!0,configurable:!0}),T(y(HTMLDocument.prototype,"getElementsByName")?HTMLDocument.prototype:Document.prototype,"getElementsByName",{value(){const e=B(en.apply(this,k.call(arguments))),r=F.call(e,i=>g(H(i))||j(i));return ge(r)},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(window,"ShadowRoot",{value:bt,configurable:!0,writable:!0});const to=Object.getOwnPropertyDescriptor(Event.prototype,"composed");function oi(){if(!to)return!1;let e=new Event("click");const r=document.createElement("button");return r.addEventListener("click",i=>e=i),r.click(),!to.get.call(e)}const ii=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"click");function ro(e){Object.defineProperty(e,"composed",{configurable:!0,enumerable:!0,get(){return!0}})}function si(){HTMLElement.prototype.click=function(){Ee.call(this,"click",ro);try{ii.value.call(this)}finally{Ve.call(this,"click",ro)}}}oi()&&si();function ai(){return new Event("test",{composed:!0}).composed!==!0}function li(){const e=v(I(null),{beforeinput:1,blur:1,click:1,compositionend:1,compositionstart:1,compositionupdate:1,copy:1,cut:1,dblclick:1,DOMActivate:1,DOMFocusIn:1,DOMFocusOut:1,drag:1,dragend:1,dragenter:1,dragleave:1,dragover:1,dragstart:1,drop:1,focus:1,focusin:1,focusout:1,gotpointercapture:1,input:1,keydown:1,keypress:1,keyup:1,lostpointercapture:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mouseout:1,mouseover:1,mouseup:1,paste:1,pointercancel:1,pointerdown:1,pointerenter:1,pointerleave:1,pointermove:1,pointerout:1,pointerover:1,pointerup:1,touchcancel:1,touchend:1,touchmove:1,touchstart:1,wheel:1}),r=Event;function i(s,c){const f=new r(s,c),E=!!(c&&c.composed);return Object.defineProperties(f,{composed:{get(){return E},configurable:!0,enumerable:!0}}),f}i.prototype=r.prototype,i.AT_TARGET=r.AT_TARGET,i.BUBBLING_PHASE=r.BUBBLING_PHASE,i.CAPTURING_PHASE=r.CAPTURING_PHASE,i.NONE=r.NONE,window.Event=i,Object.defineProperties(Event.prototype,{composed:{get(){const{type:s}=this;return e[s]===1},configurable:!0,enumerable:!0}})}ai()&&li();const no=CustomEvent;function oo(e,r){const i=new no(e,r),s=!!(r&&r.composed);return Object.defineProperties(i,{composed:{get(){return s},configurable:!0,enumerable:!0}}),i}if(oo.prototype=no.prototype,window.CustomEvent=oo,typeof ClipboardEvent!="undefined"){const e=v(I(null),{copy:1,cut:1,paste:1});M(ClipboardEvent.prototype,{composed:{get(){const{type:r}=this;return e[r]===1},configurable:!0,enumerable:!0}})}function ci(){const e=typeof HTMLIFrameElement!="undefined",r=typeof Proxy!="undefined"&&Te(Proxy.isCompat);return e&&r}function ui(){const e=y(HTMLIFrameElement.prototype,"contentWindow"),{get:r}=e;e.get=function(){const i=r.call(this);return b(i)||g(H(this))?i:di(i)},T(HTMLIFrameElement.prototype,"contentWindow",e)}function di(e){return{addEventListener(){return e.addEventListener.apply(e,arguments)},blur(){return e.blur.apply(e,arguments)},close(){return e.close.apply(e,arguments)},focus(){return e.focus.apply(e,arguments)},postMessage(){return e.postMessage.apply(e,arguments)},removeEventListener(){return e.removeEventListener.apply(e,arguments)},get closed(){return e.closed},get frames(){return e.frames},get length(){return e.length},get location(){return e.location},set location(r){e.location=r},get opener(){return e.opener},get parent(){return e.parent},get self(){return e.self},get top(){return e.top},get window(){return e.window}}}ci()&&ui();const bn=MutationObserver,{disconnect:hi,observe:fi,takeRecords:pi}=bn.prototype,io="$$lwcObserverCallbackWrapper$$",vn="$$lwcNodeObservers$$",Or=new WeakMap;function Pr(e){return e[vn]}function mi(e,r){e[vn]=r}function so(e){const{addedNodes:r,removedNodes:i,target:s,type:c}=e,f=I(MutationRecord.prototype);return M(f,{addedNodes:{get(){return r},enumerable:!0,configurable:!0},removedNodes:{get(){return i},enumerable:!0,configurable:!0},type:{get(){return c},enumerable:!0,configurable:!0},target:{get(){return s.shadowRoot},enumerable:!0,configurable:!0}}),f}function En(e,r){let i=r;for(;!b(i);){const s=Pr(i);if(!g(s)&&(s[0]===e||D.call(s,e)!==-1))return!0;i=i.parentNode}return!1}function ao(e,r){return $e.call(e,(i,s)=>{const{target:c,addedNodes:f,removedNodes:E,type:C}=s;if(C==="childList"&&!g(Re(c)))if(f.length>0){const O=f[0];if(En(r,O)){const x=Pr(c);x&&(x[0]===r||D.call(x,r)!==-1)?S.call(i,s):S.call(i,so(s))}}else{const O=c.shadowRoot,x=E[0];if(Z(c)===Z(x)&&En(r,c))S.call(i,s);else if(O){const se=Pr(O);se&&(se[0]===r||D.call(se,r)!==-1)&&S.call(i,so(s))}}else En(r,c)&&S.call(i,s);return i},[])}function gi(e){let r=e[io];return g(r)&&(r=e[io]=(i,s)=>{const c=ao(i,s);c.length!==0&&e.call(s,c,s)}),r}function Wt(e){const r=gi(e);return new bn(r)}function _i(){hi.call(this);const e=Or.get(this);g(e)||(Ie.call(e,r=>{const i=r[vn];if(!g(i)){const s=D.call(i,this);s!==-1&&Yt.call(i,s,1)}}),e.length=0)}function yi(e,r){let i=Pr(e);if(g(i)&&(i=[],mi(e,i)),D.call(i,this)===-1&&S.call(i,this),yn(e)&&(e=e.host),Or.has(this)){const s=Or.get(this);D.call(s,e)===-1&&S.call(s,e)}else Or.set(this,[e]);return fi.call(this,e,r)}function bi(){return ao(pi.call(this),this)}Wt.prototype=bn.prototype,Wt.prototype.disconnect=_i,Wt.prototype.observe=yi,Wt.prototype.takeRecords=bi,T(window,"MutationObserver",{value:Wt,configurable:!0,writable:!0});function vi(e,r,i){if($(this))return Xo.apply(this,arguments);if(arguments.length<2){const c=k.call(arguments);return c.length>1&&(c[1]=xt(c[1])),Ee.apply(this,c)}const s=xt(r);return Ee.call(this,e,s,i)}function Ei(e,r,i){if($(this))return Ko.apply(this,arguments);const s=k.call(arguments);arguments.length>1&&(s[1]=xt(s[1])),Ve.apply(this,s),Ve.apply(this,arguments)}M(br,{addEventListener:{value:vi,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Ei,enumerable:!0,writable:!0,configurable:!0}});function wi(){return typeof EventTarget=="undefined"}function Ti(e,r,i){if(arguments.length>1){const s=k.call(arguments);return s[1]=xt(s[1]),tt.apply(this,s)}return tt.apply(this,arguments)}function Ci(e,r,i){if(arguments.length>1){const s=k.call(arguments);s[1]=xt(s[1]),mt.apply(this,s)}mt.apply(this,arguments)}function Ai(){M(Window.prototype,{addEventListener:{value:Ti,enumerable:!0,writable:!0,configurable:!0},removeEventListener:{value:Ci,enumerable:!0,writable:!0,configurable:!0}})}wi()&&Ai();function Ni(){const e=K.call(this);return b(e)?null:Ut.get(this)===1?Fe(e):e}function lo(){const e=ve.call(this);if(!(e instanceof J))return e;const r=oe(e),i=vt(e,this.composed),s=K.call(this);if(s instanceof J){if(s===r||s===r.body)return g(H(e))?e:jt(r,i)}else return b(s)&&g(H(e))?e:jt(r,i);let c=s,f=i;return $(s)&&Ut.get(this)===1&&(c=Fe(s)),$(e)&&Sr.has(this)&&(f=vt(Fe(e),this.composed)),jt(c,f)}function co(){const e=ve.call(this);if(!(e instanceof J))return[];const r=Boolean(e.shadowRoot),i=Jo(e);if(r&&!i)return fr.call(this);const s=K.call(this);if(b(s))return[];let c=e;return $(e)&&Sr.has(this)&&(c=Fe(e)),vt(c,this.composed)}M(Event.prototype,{target:{get:lo,enumerable:!0,configurable:!0},currentTarget:{get:Ni,enumerable:!0,configurable:!0},composedPath:{value:co,writable:!0,enumerable:!0,configurable:!0},srcElement:{get:lo,enumerable:!0,configurable:!0},path:{get:co,enumerable:!0,configurable:!0}});function uo(e){const r=y(e.prototype,"relatedTarget").get;T(e.prototype,"relatedTarget",{get(){const i=r.call(this);if(b(i))return null;if(!(i instanceof J)||!Y(i))return i;let s=K.call(this);return b(s)&&(s=oe(i)),jt(s,vt(i,!0))},enumerable:!0,configurable:!0})}uo(FocusEvent),uo(MouseEvent);const Ri=A.call(Text.prototype,"assignedSlot")?y(Text.prototype,"assignedSlot").get:()=>null;let wn;const Si={childList:!0},ho=new WeakMap;function Oi(){return new pe(e=>{const r=[];Ie.call(e,i=>{const{target:s}=i;D.call(r,s)===-1&&(S.call(r,s),vr.call(s,new CustomEvent("slotchange")))})})}function Tn(e){const r=B(de.call(e));return $e.call(r,(i,s)=>(s instanceof Element&&me(s)?S.apply(i,Tn(s)):S.call(i,s),i),[])}function fo(){const e=Ce.call(this);if(e instanceof Element){const r=Ze.call(e);if(_t(r))return this instanceof Text?Ri.call(this):Ne.call(this)}return!b(e)&&me(e)&&H(e)!==H(this)?e:null}M(HTMLSlotElement.prototype,{addEventListener:{value(e,r,i){HTMLElement.prototype.addEventListener.call(this,e,r,i),e==="slotchange"&&!ho.get(this)&&(ho.set(this,!0),wn||(wn=Oi()),$t.call(wn,this,Si))},writable:!0,enumerable:!0,configurable:!0},assignedElements:{value(e){if(Y(this)){const i=!g(e)&&Te(e.flatten)?Tn(this):u(this);return F.call(i,s=>s instanceof Element)}else return je.apply(this,k.call(arguments))},writable:!0,enumerable:!0,configurable:!0},assignedNodes:{value(e){return Y(this)?!g(e)&&Te(e.flatten)?Tn(this):u(this):Ge.apply(this,k.call(arguments))},writable:!0,enumerable:!0,configurable:!0},name:{get(){const e=Ue.call(this,"name");return b(e)?"":e},set(e){Pt.call(this,"name",e)},enumerable:!0,configurable:!0},childNodes:{get(){if(Y(this)){const e=W(this),r=b(e)?[]:He(e,nt(this));return ge(r)}return de.call(this)},enumerable:!0,configurable:!0}}),M(Text.prototype,{assignedSlot:{get:fo,enumerable:!0,configurable:!0}});function Cn(e,r){let i;const s=H(e);if(g(s))e instanceof HTMLBodyElement?i=F.call(r,c=>g(H(c))||j(e)):i=k.call(r);else if($(e)){const c=W(e);b(c)?i=[]:Re(e)?i=Ar(e,r):i=He(c,r)}else i=F.call(r,c=>Z(c)===s);return i}function po(){const e=Oe(this);let r="";for(let i=0,s=e.length;i<s;i+=1)r+=N(e[i]);return r}function mo(){return N(this)}function Pi(e){return e[Hr]?ei(this,e):zr.call(this,e)}function Ii(){if($(this)){const e=Fe(this);if(e.mode==="open")return e}return Ze.call(this)}function Li(){const e=W(this),r=b(e)?[]:He(e,nt(this));return we(F.call(r,i=>i instanceof Element))}function ki(){return this.children.length}function Mi(){return this.children[0]||null}function Di(){const{children:e}=this;return e.item(e.length-1)||null}M(Element.prototype,{innerHTML:{get(){return z.ENABLE_ELEMENT_PATCH?j(this)?cr.call(this):po.call(this):Y(this)||$(this)?po.call(this):cr.call(this)},set(e){It.call(this,e)},enumerable:!0,configurable:!0},outerHTML:{get(){return z.ENABLE_ELEMENT_PATCH?j(this)?ur.call(this):mo.call(this):Y(this)||$(this)?mo.call(this):ur.call(this)},set(e){Qr.call(this,e)},enumerable:!0,configurable:!0},attachShadow:{value:Pi,enumerable:!0,writable:!0,configurable:!0},shadowRoot:{get:Ii,enumerable:!0,configurable:!0},children:{get(){return Xe(this)?Li.call(this):Je.call(this)},enumerable:!0,configurable:!0},childElementCount:{get(){return Xe(this)?ki.call(this):ct.call(this)},enumerable:!0,configurable:!0},firstElementChild:{get(){return Xe(this)?Mi.call(this):Yr.call(this)},enumerable:!0,configurable:!0},lastElementChild:{get(){return Xe(this)?Di.call(this):ut.call(this)},enumerable:!0,configurable:!0},assignedSlot:{get:fo,enumerable:!0,configurable:!0}}),A.call(HTMLElement.prototype,"innerHTML")&&T(HTMLElement.prototype,"innerHTML",y(Element.prototype,"innerHTML")),A.call(HTMLElement.prototype,"outerHTML")&&T(HTMLElement.prototype,"outerHTML",y(Element.prototype,"outerHTML")),A.call(HTMLElement.prototype,"children")&&T(HTMLElement.prototype,"children",y(Element.prototype,"children"));function Hi(){const e=B(ke.apply(this,k.call(arguments)));if($(this)){const r=W(this);return g(Re(this))?b(r)?null:Nr(r,e):hn(this,e)}else if(Y(this)){const r=H(this);if(g(r)){if(!z.ENABLE_NODE_LIST_PATCH)return e.length===0?null:e[0];const i=Z(this),s=re.call(e,c=>Z(c)===i);return g(s)?null:s}else{const i=re.call(e,s=>Z(s)===r);return g(i)?null:i}}else{if(!z.ENABLE_NODE_LIST_PATCH&&!(this instanceof HTMLBodyElement)){const i=e[0];return g(i)?null:i}const r=re.call(e,i=>g(H(i))||j(this));return g(r)?null:r}}function Vt(e,r,i){let s;if($(e)){const c=W(e);g(Re(e))?b(c)?s=[]:s=He(c,r):s=Ar(e,r)}else if(Y(e)){const c=H(e);if(!g(c))s=F.call(r,f=>Z(f)===c);else if(i===1){const f=Z(e);s=F.call(r,E=>Z(E)===f)}else s=k.call(r)}else e instanceof HTMLBodyElement||i===1?s=F.call(r,c=>g(H(c))||j(e)):s=k.call(r);return s}M(Element.prototype,{querySelector:{value:Hi,writable:!0,enumerable:!0,configurable:!0},querySelectorAll:{value(){const e=B(ke.apply(this,k.call(arguments)));if(!z.ENABLE_NODE_LIST_PATCH){const r=Vt(this,e,0);return ge(r)}return ge(Vt(this,e,1))},writable:!0,enumerable:!0,configurable:!0}}),M(Element.prototype,{getElementsByClassName:{value(){const e=B(hr.apply(this,k.call(arguments)));if(!z.ENABLE_HTML_COLLECTIONS_PATCH)return we(Cn(this,e));const r=Vt(this,e,1);return we(r)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagName:{value(){const e=B(Vr.apply(this,k.call(arguments)));if(!z.ENABLE_HTML_COLLECTIONS_PATCH)return we(Cn(this,e));const r=Vt(this,e,1);return we(r)},writable:!0,enumerable:!0,configurable:!0},getElementsByTagNameNS:{value(){const e=B(Xr.apply(this,k.call(arguments)));if(!z.ENABLE_HTML_COLLECTIONS_PATCH)return we(Cn(this,e));const r=Vt(this,e,1);return we(r)},writable:!0,enumerable:!0,configurable:!0}}),A.call(HTMLElement.prototype,"getElementsByClassName")&&T(HTMLElement.prototype,"getElementsByClassName",y(Element.prototype,"getElementsByClassName"));function go(e){const r=Me(e);return Ft.call(r,e)}function An(e){const r=Me(e);return tn.call(r)}function _o(e){return e.visibility==="visible"&&e.display!=="none"}function Fi(e){const r=Me(e),i=An(e);if(i===null)return null;const s=[];for(let f=0;f<i.rangeCount;f++)s.push(i.getRangeAt(f));const c={element:e,onselect:r.onselect,onselectstart:r.onselectstart,onselectionchange:r.onselectionchange,ranges:s};return r.onselect=null,r.onselectstart=null,r.onselectionchange=null,c}function $i(e){if(e===null)return;const{element:r,onselect:i,onselectstart:s,onselectionchange:c,ranges:f}=e,E=Me(r),C=An(r);C.removeAllRanges();for(let O=0;O<f.length;O++)C.addRange(f[O]);E.onselect=i,E.onselectstart=s,E.onselectionchange=c}function Bi(e){const r=An(e);if(r===null)return e.textContent||"";const i=document.createRange();i.selectNodeContents(e);const s=i.getBoundingClientRect();if(s.height<=0||s.width<=0)return"";r.removeAllRanges(),r.addRange(i);const c=r.toString();return c||e.textContent||""}const xi=e=>e.nodeType===Ct,Ui=e=>e.nodeType===tr;function yo(e){const r=[];if(xi(e)){const{tagName:i}=e,s=go(e);if(i==="OPTION")return[1,qe.call(e),1];if(i==="TEXTAREA")return[];{const f=e.childNodes;for(let E=0,C=f.length;E<C;E++)S.apply(r,yo(f[E]))}if(!_o(s))return i==="SELECT"||i==="DATALIST"?[]:r;i==="BR"&&r.push(`
`);const{display:c}=s;c==="table-cell"&&r.push("    "),c==="table-row"&&r.push(`
`),i==="P"&&(r.unshift(2),r.push(2)),(c==="block"||c==="table-caption"||c==="flex"||c==="table")&&(r.unshift(1),r.push(1))}else Ui(e)&&r.push(Bi(e));return r}function Ir(e){const r=go(e);if(!_o(r))return P(e)||"";const i=Fi(e),s=[],c=e.childNodes;for(let C=0,O=c.length;C<O;C++)S.apply(s,yo(c[C]));$i(i);let f="",E=0;for(let C=0,O=s.length;C<O;C++){const x=s[C];if(typeof x=="string"){if(E>0){for(let se=0;se<E;se++)f+=`
`;E=0}x.length>0&&(f+=x)}else{if(f.length==0)continue;x>E&&(E=x)}}return f}const Xt=`
    [contenteditable],
    [tabindex],
    a[href],
    area[href],
    audio[controls],
    button,
    iframe,
    input,
    select,
    textarea,
    video[controls]
`,qi=new Set(["BUTTON","INPUT","SELECT","TEXTAREA"]);function bo(e){return e.filter(r=>Ye.call(r,"tabindex")?Ue.call(r,"tabindex")==="0":qi.has(kt.call(r))?!Ye.call(r,"disabled"):!0)}const vo=new WeakMap;function Gi(e){const{width:r,height:i}=Wr.call(e),s=r>0||i>0,c=e.tagName==="AREA";return(s||c)&&getComputedStyle(e).visibility!=="hidden"}function ji(e){return $(e)&&Gt(e)?!1:Ae.call(e,Xt)&&Gi(e)}function Wi(){const e=this.getRootNode();if(e===this){const c=Kr.call(this,Xt);b(c)||c.focus.apply(c,arguments);return}if(e.activeElement===this)return;const i=B(ke.call(this,Xt));let s=!1;for(;!s&&i.length!==0;){const c=i.shift();c.focus.apply(c,arguments),s=c.getRootNode().activeElement===c}}function Eo(e){const r=oe(e),i=bo(B(Ht.call(r,Xt))),s=bo(B(ke.call(e,Xt))),c=s[0],f=s[s.length-1],E=D.call(i,e),C=E>-1?E:D.call(i,c),O=s.length===0?C+1:D.call(i,f)+1,x=k.call(i,0,C),se=k.call(i,O);return{prev:x,inner:s,next:se}}function Vi(e){const r=oe(e),i=pt.call(r);return b(i)||(he.call(e,i)&be)!=0?i:null}function wo(e,r){const i=he.call(e,r);return i&be?0:i&er?1:i&$r?2:-1}function Lr(e){e.preventDefault(),e.stopPropagation()}function Nn(e,r){tt.call(e,"focusin",Lr,!0),tt.call(e,"focusout",Lr,!0),r(),mt.call(e,"focusin",Lr,!0),mt.call(e,"focusout",Lr,!0)}function kr(e,r,i){const s=Me(i),c=Ki(e,i);b(c)?Nn(s,()=>{r.blur()}):Nn(s,()=>{c.focus()})}let Kt=!1;function To(){Kt=!0}function Rn(){Kt=!1}function Xi(){return!Kt}function Co(e){if(Kt)return;const r=K.call(e),i=ve.call(e);if(r!==i)return;const s=We.call(e);if(b(s))return;const c=Eo(r);if(wo(r,s)===1){const E=No.bind(null,r.getRootNode()),C=re.call(c.inner,E);if(g(C))kr(c.next,i,s);else{const O=Me(C);Nn(O,()=>{C.focus()})}}else r===i&&kr(st.call(c.prev),i,s)}function Ao(e){if(Kt)return;const r=We.call(e);if(b(r))return;const i=K.call(e),s=Eo(i);if(D.call(s.inner,r)!==-1)return;const c=ve.call(e),f=wo(i,r);f===1&&kr(s.next,c,r),f===2&&kr(st.call(s.prev),c,r)}function No(e,r){if(!ji(r))return!1;const i=oe(r);let s=r.getRootNode();for(;s!==i&&s!==e;){const f=s.host;if(Ue.call(f,"tabindex")==="-1")return!1;s=f&&f.getRootNode()}return!0}function Ki(e,r){const i=e.length;if(i>0)for(let s=0;s<i;s+=1){const c=e[s];if(No(r.getRootNode(),c))return c}return null}function zi(e){So(e),Oo(e),Ee.call(e,"focusin",Co,!0)}function Ro(e){Ve.call(e,"focusin",Co,!0)}function So(e){const r=oe(e);vo.get(r)||(vo.set(r,!0),Ee.call(r,"mousedown",To,!0),Ee.call(r,"mouseup",()=>{setTimeout(Rn)},!0),Ee.call(r,"dragstart",Rn,!0))}function Yi(e){So(e),Ro(e),Ee.call(e,"focusin",Ao,!0)}function Oo(e){Ve.call(e,"focusin",Ao,!0)}const{blur:Po,focus:Qi}=HTMLElement.prototype;function Ji(){return Gt(this)&&ye(Ye.call(this,"tabindex"))?0:Qe.call(this)}function Zi(e){const r=Gt(this),i=Qe.call(this),s=Ye.call(this,"tabindex");dr.call(this,e);const c=Qe.call(this),f=Ye.call(this,"tabindex"),E=i!==c;s&&(E||ye(f))&&(i===-1&&Oo(this),i===0&&r&&Ro(this)),!ye(f)&&(s&&f&&ye(E)||(c===-1&&Yi(this),c===0&&r&&zi(this)))}function es(){if(Gt(this)){const e=Vi(this);if(!b(e)){e.blur();return}}return Po.call(this)}function ts(){const e=Xi();if(e&&To(),$(this)&&Gt(this)){Wi.call(this);return}Qi.apply(this,arguments),e&&Rn()}M(HTMLElement.prototype,{tabIndex:{get(){return $(this)?Ji.call(this):Qe.call(this)},set(e){return $(this)?Zi.call(this,e):dr.call(this,e)},enumerable:!0,configurable:!0},blur:{value(){if($(this))return es.call(this);Po.call(this)},enumerable:!0,writable:!0,configurable:!0},focus:{value(){ts.apply(this,arguments)},enumerable:!0,writable:!0,configurable:!0}}),qe!==null&&sr!==null&&T(HTMLElement.prototype,"innerText",{get(){return z.ENABLE_INNER_OUTER_TEXT_PATCH?z.ENABLE_ELEMENT_PATCH?j(this)?qe.call(this):Ir(this):Y(this)||$(this)?Ir(this):qe.call(this):qe.call(this)},set(e){sr.call(this,e)},enumerable:!0,configurable:!0}),ft!==null&&ar!==null&&T(HTMLElement.prototype,"outerText",{get(){return z.ENABLE_INNER_OUTER_TEXT_PATCH?z.ENABLE_ELEMENT_PATCH?j(this)?ft.call(this):Ir(this):Y(this)||$(this)?Ir(this):ft.call(this):ft.call(this)},set(e){ar.call(this,e)},enumerable:!0,configurable:!0});function rs(e){return e[wt]}function ns(e,r){e[wt]=r}T(Element.prototype,wt,{set(e){const r=this[Tt];!g(r)&&r!==e&&ir.call(this,r),g(e)||Pt.call(this,e,""),this[Tt]=e},get(){return this[Tt]},configurable:!0});function Io(e,r){e[Ke]=r;const i=de.call(e);for(let s=0,c=i.length;s<c;s++)Io(i[s],r)}T(Element.prototype,Jt,{set(e){if(e){const r=this[Ke];Io(this,r)}this[Zt]=e},get(){return this[Zt]},configurable:!0});const Lo="$$DomManualKey$$",os=function(){};let Mr;const ko={childList:!0};function Sn(e,r,i){const s=it(e);if(s!==r&&(Jn(e,r),e instanceof Element)){if(ns(e,i),$(e))return;g(s)&&$t.call(Mr,e,ko);const c=de.call(e);for(let f=0,E=c.length;f<E;f+=1)Sn(c[f],r,i)}}function is(){return new pe(e=>{Ie.call(e,r=>{const{target:i,addedNodes:s,removedNodes:c}=r,f=it(i),E=rs(i);for(let C=0,O=c.length;C<O;C+=1){const x=c[C];he.call(i,x)&J.DOCUMENT_POSITION_CONTAINED_BY||Sn(x,os,void 0)}for(let C=0,O=s.length;C<O;C+=1){const x=s[C];he.call(i,x)&J.DOCUMENT_POSITION_CONTAINED_BY&&Sn(x,f,E)}})})}function ss(e){if(g(Mr)&&(Mr=is()),g(it(e)))throw new Error("Invalid Element");$t.call(Mr,e,ko)}T(Element.prototype,"$domManual$",{set(e){this[Lo]=e,Te(e)&&ss(this)},get(){return this[Lo]},configurable:!0})}),LWR.define("@lwrjs/app-service/communities_app/module/amd/v/0_8_8",["lwr/loaderLegacy/v/0_8_8","@lwc/synthetic-shadow/v/2_31_2","webruntime/hook/v/1_66_217-242_0","webruntime/o11yHook/v/1_66_217-242_0","lwr/init/v/0_8_8"],function(v,I,M,T,U){"use strict";function y(Q){return Q&&typeof Q=="object"&&"default"in Q?Q:{default:Q}}var ee=y(M),G=y(T);ee.default(v.services),G.default(v.services);const A=globalThis.LWR,{rootComponents:L,ssrProps:V}=A;Promise.all(L.map(async Q=>{const X=U.toKebabCase(Q);return v.load(Q,"@lwrjs/app-service/communities_app/module/amd/v/0_8_8").then(({default:le})=>{U.init([[X,le]],V)})})),globalThis.LWR=Object.freeze({define:globalThis.LWR.define})});