@coveops/abi 1.5.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abi/abi.css +206 -1
- package/dist/abi/abi.esm.js +129 -1
- package/dist/abi/app-globals-0f993ce5.js +3 -0
- package/dist/abi/css-shim-04165e59.js +4 -0
- package/dist/abi/dom-26e7cb2c.js +73 -0
- package/dist/{esm → abi}/faq-popup-component.entry.js +3 -4
- package/dist/abi/headless.esm-c328011d.js +72 -0
- package/dist/abi/index-4c45f50c.js +3064 -0
- package/dist/abi/index-bf9cad6e.js +4108 -0
- package/dist/abi/index.esm.js +168 -1
- package/dist/{esm → abi}/recs-initialization-helper.entry.js +3 -3
- package/dist/{esm → abi}/recs-results-manager.entry.js +1 -1
- package/dist/{esm → abi}/results-manager.entry.js +1 -1
- package/dist/{esm → abi}/sample-component.entry.js +3 -3
- package/dist/abi/shadow-css-1257b266.js +387 -0
- package/dist/{esm → abi}/standalone-searchbox-listener.entry.js +3 -3
- package/dist/{esm → abi}/strip-html-component.entry.js +2 -3
- package/package.json +2 -2
- package/dist/abi/p-380ced38.entry.js +0 -1
- package/dist/abi/p-9d42030c.entry.js +0 -1
- package/dist/abi/p-ac870f21.js +0 -49
- package/dist/abi/p-b09970bf.entry.js +0 -1
- package/dist/abi/p-b83bab81.js +0 -1
- package/dist/abi/p-c0436bc1.entry.js +0 -1
- package/dist/abi/p-c10b6b7f.js +0 -2
- package/dist/abi/p-c602c74e.entry.js +0 -1
- package/dist/abi/p-c82303fb.js +0 -1
- package/dist/abi/p-cd1744bb.entry.js +0 -1
- package/dist/abi/p-d20ee37c.js +0 -18
- package/dist/abi/p-d5e62885.entry.js +0 -1
- package/dist/bundle/index.css +0 -1
- package/dist/bundle/index.html +0 -72
- package/dist/bundle/index.js +0 -1363
- package/dist/cjs/abi.cjs.js +0 -19
- package/dist/cjs/atomic-70a93c69.js +0 -11
- package/dist/cjs/faq-popup-component.cjs.entry.js +0 -144
- package/dist/cjs/headless.esm-085e70ed-f2e18485.js +0 -1720
- package/dist/cjs/index-3cecd23d.js +0 -1283
- package/dist/cjs/index-d1493bab.js +0 -105
- package/dist/cjs/index.cjs.js +0 -170
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/recs-initialization-helper.cjs.entry.js +0 -55
- package/dist/cjs/recs-results-manager.cjs.entry.js +0 -36
- package/dist/cjs/result-template-decorators-881a4c8e-4ff46481.js +0 -33
- package/dist/cjs/results-manager.cjs.entry.js +0 -42
- package/dist/cjs/sample-component.cjs.entry.js +0 -87
- package/dist/cjs/standalone-searchbox-listener.cjs.entry.js +0 -48
- package/dist/cjs/strip-html-component.cjs.entry.js +0 -60
- package/dist/collection/collection-manifest.json +0 -23
- package/dist/collection/components/faq-popup-component/faq-popup-component.css +0 -15
- package/dist/collection/components/faq-popup-component/faq-popup-component.js +0 -162
- package/dist/collection/components/recs-initialization-helper/recs-initialization-helper.js +0 -66
- package/dist/collection/components/recs-results-manager/recs-results-manager.js +0 -39
- package/dist/collection/components/results-manager/results-manager.js +0 -50
- package/dist/collection/components/sample-component/sample-component.css +0 -10
- package/dist/collection/components/sample-component/sample-component.js +0 -102
- package/dist/collection/components/standalone-searchbox-listener/standalone-searchbox-listener.css +0 -1
- package/dist/collection/components/standalone-searchbox-listener/standalone-searchbox-listener.js +0 -50
- package/dist/collection/components/strip-html-component/strip-html-component.css +0 -3
- package/dist/collection/components/strip-html-component/strip-html-component.js +0 -64
- package/dist/collection/images/Default.png +0 -0
- package/dist/collection/images/Documents.png +0 -0
- package/dist/collection/images/FAQ.png +0 -0
- package/dist/collection/images/Images.png +0 -0
- package/dist/collection/images/Link.png +0 -0
- package/dist/collection/images/Movies.png +0 -0
- package/dist/collection/images/ProcessPeople.png +0 -0
- package/dist/collection/index.js +0 -167
- package/dist/collection/utils/atomic.js +0 -6
- package/dist/components/index.js +0 -3576
- package/dist/esm/abi.js +0 -17
- package/dist/esm/headless.esm-085e70ed-c4dfb380.js +0 -1717
- package/dist/esm/index-072be88f.js +0 -95
- package/dist/esm/index-66fdbb35.js +0 -1255
- package/dist/esm/index.js +0 -168
- package/dist/esm/loader.js +0 -17
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/result-template-decorators-881a4c8e-ed85ad21.js +0 -31
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -12
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -10
- /package/dist/{esm → abi}/atomic-7b1e6d55.js +0 -0
package/dist/bundle/index.js
DELETED
|
@@ -1,1363 +0,0 @@
|
|
|
1
|
-
var mm="abi",da,D2,bt=!1,ml=!1,si=typeof window!="undefined"?window:{},Kr=si.document||{head:{}},Fn=si.HTMLElement||class{},St={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)},gm=e=>Promise.resolve(e),vm=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),j2=(e,t,n,r)=>{n&&n.map(([i,a,o])=>{let s=Cm(e,i),l=ym(t,o),u=bm(i);St.ael(s,a,l,u),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>St.rel(s,a,l,u))})},ym=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(r){ao(r)}},Cm=(e,t)=>t&8?si:e,bm=e=>(e&2)!==0,Rn=(e,t="")=>()=>{},xd=new WeakMap,Sm=(e,t,n)=>{let r=Ea.get(e);vm&&n?(r=r||new CSSStyleSheet,typeof r=="string"?r=t:r.replaceSync(t)):r=t,Ea.set(e,r)},wm=(e,t,n,r)=>{let i=P2(t),a=Ea.get(i);if(e=e.nodeType===11?e:Kr,a)if(typeof a=="string"){e=e.head||e;let o=xd.get(e),s;o||xd.set(e,o=new Set),o.has(i)||(s=Kr.createElement("style"),s.innerHTML=a,e.insertBefore(s,e.querySelector("link")),o&&o.add(i))}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return i},$m=e=>{let t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,i=Rn("attachStyles",t.$tagName$),a=wm(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);r&10&&(n["s-sc"]=a,n.classList.add(a+"-h")),i()},P2=(e,t)=>"sc-"+e.$tagName$,Od={},km="http://www.w3.org/2000/svg",xm="http://www.w3.org/1999/xhtml",Om=e=>e!=null,hu=e=>(e=typeof e,e==="object"||e==="function"),ne=(e,t,...n)=>{let r=null,i=!1,a=!1,o=[],s=u=>{for(let d=0;d<u.length;d++)r=u[d],Array.isArray(r)?s(r):r!=null&&typeof r!="boolean"&&((i=typeof e!="function"&&!hu(r))&&(r=String(r)),i&&a?o[o.length-1].$text$+=r:o.push(i?gl(null,r):r),a=i)};if(s(n),t){let u=t.className||t.class;u&&(t.class=typeof u!="object"?u:Object.keys(u).filter(d=>u[d]).join(" "))}let l=gl(e,null);return l.$attrs$=t,o.length>0&&(l.$children$=o),l},gl=(e,t)=>{let n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n},mu={},Im=e=>e&&e.$tag$===mu,Id=(e,t,n,r,i,a)=>{if(n!==r){let o=qd(e,t),s=t.toLowerCase();if(t==="class"){let l=e.classList,u=Ed(n),d=Ed(r);l.remove(...u.filter(f=>f&&!d.includes(f))),l.add(...d.filter(f=>f&&!u.includes(f)))}else if(t==="style"){for(let l in n)(!r||r[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(let l in r)(!n||r[l]!==n[l])&&(l.includes("-")?e.style.setProperty(l,r[l]):e.style[l]=r[l])}else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):qd(si,s)?t=s.slice(2):t=s[2]+t.slice(3),n&&St.rel(e,t,n,!1),r&&St.ael(e,t,r,!1);else{let l=hu(r);if((o||l&&r!==null)&&!i)try{if(e.tagName.includes("-"))e[t]=r;else{let u=r==null?"":r;t==="list"?o=!1:(n==null||e[t]!=u)&&(e[t]=u)}}catch(u){}r==null||r===!1?(r!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!o||a&4||i)&&!l&&(r=r===!0?"":r,e.setAttribute(t,r))}}},Em=/\s/,Ed=e=>e?e.split(Em):[],U2=(e,t,n,r)=>{let i=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,a=e&&e.$attrs$||Od,o=t.$attrs$||Od;for(r in a)r in o||Id(i,r,a[r],void 0,n,t.$flags$);for(r in o)Id(i,r,a[r],o[r],n,t.$flags$)},gu=(e,t,n,r)=>{let i=t.$children$[n],a=0,o,s;if(i.$text$!==null)o=i.$elm$=Kr.createTextNode(i.$text$);else{if(bt||(bt=i.$tag$==="svg"),o=i.$elm$=Kr.createElementNS(bt?km:xm,i.$tag$),bt&&i.$tag$==="foreignObject"&&(bt=!1),U2(null,i,bt),Om(da)&&o["s-si"]!==da&&o.classList.add(o["s-si"]=da),i.$children$)for(a=0;a<i.$children$.length;++a)s=gu(e,i,a),s&&o.appendChild(s);i.$tag$==="svg"?bt=!1:o.tagName==="foreignObject"&&(bt=!0)}return o},_2=(e,t,n,r,i,a)=>{let o=e,s;for(o.shadowRoot&&o.tagName===D2&&(o=o.shadowRoot);i<=a;++i)r[i]&&(s=gu(null,n,i),s&&(r[i].$elm$=s,o.insertBefore(s,t)))},L2=(e,t,n,r,i)=>{for(;t<=n;++t)(r=e[t])&&(i=r.$elm$,i.remove())},qm=(e,t,n,r)=>{let i=0,a=0,o=t.length-1,s=t[0],l=t[o],u=r.length-1,d=r[0],f=r[u],m;for(;i<=o&&a<=u;)s==null?s=t[++i]:l==null?l=t[--o]:d==null?d=r[++a]:f==null?f=r[--u]:na(s,d)?(Lr(s,d),s=t[++i],d=r[++a]):na(l,f)?(Lr(l,f),l=t[--o],f=r[--u]):na(s,f)?(Lr(s,f),e.insertBefore(s.$elm$,l.$elm$.nextSibling),s=t[++i],f=r[--u]):na(l,d)?(Lr(l,d),e.insertBefore(l.$elm$,s.$elm$),l=t[--o],d=r[++a]):(m=gu(t&&t[a],n,a),d=r[++a],m&&s.$elm$.parentNode.insertBefore(m,s.$elm$));i>o?_2(e,r[u+1]==null?null:r[u+1].$elm$,n,r,a,u):a>u&&L2(t,i,o)},na=(e,t)=>e.$tag$===t.$tag$,Lr=(e,t)=>{let n=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,a=t.$tag$,o=t.$text$;o===null?(bt=a==="svg"?!0:a==="foreignObject"?!1:bt,U2(e,t,bt),r!==null&&i!==null?qm(n,r,t,i):i!==null?(e.$text$!==null&&(n.textContent=""),_2(n,null,t,i,0,i.length-1)):r!==null&&L2(r,0,r.length-1),bt&&a==="svg"&&(bt=!1)):e.$text$!==o&&(n.data=o)},Am=(e,t)=>{let n=e.$hostElement$,r=e.$vnode$||gl(null,null),i=Im(t)?t:ne(null,null,t);D2=n.tagName,i.$tag$=null,i.$flags$|=4,e.$vnode$=i,i.$elm$=r.$elm$=n.shadowRoot||n,da=n["s-sc"],Lr(r,i)},Rm=(e,t,n)=>{let r=St.ce(t,n);return e.dispatchEvent(r),r},z2=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},io=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return z2(e,e.$ancestorComponent$),Zm(()=>Mm(e,t))},Mm=(e,t)=>{let n=e.$hostElement$,r=Rn("scheduleUpdate",e.$cmpMeta$.$tagName$),i=n,a;return t&&(a=Um(i,"componentWillLoad")),r(),_m(a,()=>Tm(e,i,t))},Tm=async(e,t,n)=>{let r=e.$hostElement$,i=Rn("update",e.$cmpMeta$.$tagName$),a=r["s-rc"];n&&$m(e);let o=Rn("render",e.$cmpMeta$.$tagName$);Fm(e,t),a&&(a.map(s=>s()),r["s-rc"]=void 0),o(),i();{let s=r["s-p"],l=()=>Dm(e);s.length===0?l():(Promise.all(s).then(l),e.$flags$|=4,s.length=0)}},Fm=(e,t,n)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,Am(e,t)}catch(r){ao(r,e.$hostElement$)}return null},Dm=e=>{let t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,r=Rn("postUpdate",t),i=e.$ancestorComponent$;e.$flags$&64?r():(e.$flags$|=64,V2(n),r(),e.$onReadyResolve$(n),i||Pm()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&vu(()=>io(e,!1)),e.$flags$&=-517},jm=e=>{{let t=li(e),n=t.$hostElement$.isConnected;return n&&(t.$flags$&18)===2&&io(t,!1),n}},Pm=e=>{V2(Kr.documentElement),vu(()=>Rm(si,"appload",{detail:{namespace:mm}}))},Um=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(r){ao(r)}},_m=(e,t)=>e&&e.then?e.then(t):t(),V2=e=>e.classList.add("hydrated"),Lm=(e,t)=>e!=null&&!hu(e)&&t&1?String(e):e,zm=(e,t)=>li(e).$instanceValues$.get(t),Vm=(e,t,n,r)=>{let i=li(e),a=i.$instanceValues$.get(t),o=i.$flags$;n=Lm(n,r.$members$[t][0]);let s=Number.isNaN(a)&&Number.isNaN(n);n!==a&&!s&&(i.$instanceValues$.set(t,n),(o&18)===2&&io(i,!1))},Nm=(e,t,n)=>{if(t.$members$){let r=Object.entries(t.$members$),i=e.prototype;r.map(([a,[o]])=>{(o&31||o&32)&&Object.defineProperty(i,a,{get(){return zm(this,a)},set(s){Vm(this,a,s,t)},configurable:!0,enumerable:!0})});{let a=new Map;i.attributeChangedCallback=function(o,s,l){St.jmp(()=>{let u=a.get(o);if(this.hasOwnProperty(u))l=this[u],delete this[u];else if(i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==l)return;this[u]=l===null&&typeof this[u]=="boolean"?!1:l})},e.observedAttributes=r.filter(([o,s])=>s[0]&15).map(([o,s])=>{let l=s[1]||o;return a.set(l,o),l})}}return e},Qm=async(e,t,n,r,i)=>{if(!(t.$flags$&32)&&(i=e.constructor,t.$flags$|=32,customElements.whenDefined(n.$tagName$).then(()=>t.$flags$|=128),i.style)){let s=i.style,l=P2(n);if(!Ea.has(l)){let u=Rn("registerStyles",n.$tagName$);Sm(l,s,!!(n.$flags$&1)),u()}}let a=t.$ancestorComponent$,o=()=>io(t,!0);a&&a["s-rc"]?a["s-rc"].push(o):o()},Hm=e=>{if(!(St.$flags$&1)){let t=li(e),n=t.$cmpMeta$,r=Rn("connectedCallback",n.$tagName$);if(t.$flags$&1)j2(e,t,n.$listeners$);else{t.$flags$|=1;{let i=e;for(;i=i.parentNode||i.host;)if(i["s-p"]){z2(t,t.$ancestorComponent$=i);break}}n.$members$&&Object.entries(n.$members$).map(([i,[a]])=>{if(a&31&&e.hasOwnProperty(i)){let o=e[i];delete e[i],e[i]=o}}),Qm(e,t,n)}r()}},Bm=e=>{if(!(St.$flags$&1)){let t=li(e);t.$rmListeners$&&(t.$rmListeners$.map(n=>n()),t.$rmListeners$=void 0)}},Dn=(e,t)=>{let n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$listeners$=t[3];let r=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){Wm(this,n)},connectedCallback(){Hm(this),r&&r.call(this)},disconnectedCallback(){Bm(this),i&&i.call(this)},__attachShadow(){this.attachShadow({mode:"open"})}}),e.is=n.$tagName$,Nm(e,n)},hR=e=>St.$resourcesUrl$=e,mR=e=>Object.assign(St,e),N2=new WeakMap,li=e=>N2.get(e),Wm=(e,t)=>{let n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise(r=>n.$onReadyResolve$=r),e["s-p"]=[],e["s-rc"]=[],j2(e,n,t.$listeners$),N2.set(e,n)},qd=(e,t)=>t in e,ao=(e,t)=>(0,console.error)(e,t),Ea=new Map,Ad=[],Q2=[],Ym=(e,t)=>n=>{e.push(n),ml||(ml=!0,t&&St.$flags$&4?vu(vl):St.raf(vl))},Rd=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){ao(n)}e.length=0},vl=()=>{Rd(Ad),Rd(Q2),(ml=Ad.length>0)&&St.raf(vl)},vu=e=>gm().then(e),Zm=Ym(Q2,!0);function ui(){return customElements.whenDefined("atomic-search-interface")}function H2(){return customElements.whenDefined("atomic-recs-interface")}async function Jm(){await ui();let e=document.querySelector("#search");e&&Km(e);let t=document.querySelector("#searchbox");t&&Gm(t),await H2(),Array.from(document.querySelectorAll("atomic-recs-interface")).length&&Xm()}async function Gm(e){let t="https://platform.cloud.coveo.com",n="anheuserbuschinbevprod",r="eyJhbGciOiJIUzI1NiJ9.eyJmaWx0ZXIiOiJAb2JqZWN0dHlwZT09RkFRIE9SIEBvYmplY3R0eXBlPT1BY2NvdW50IE9SIEB0YXJnZXRvcmc9PSh1YXQscHJvZHVjdGlvbikiLCJ2OCI6dHJ1ZSwidG9rZW5JZCI6InZ5MnJob3U0eTdjazJ2czd1Y3FwZDJzY3lhIiwib3JnYW5pemF0aW9uIjoiYW5oZXVzZXJidXNjaGluYmV2cHJvZCIsInVzZXJJZHMiOlt7InR5cGUiOiJVc2VyIiwibmFtZSI6ImFnbmllc3prYS5ub3Zha292YUBhYi1pbmJldi5jb20iLCJwcm92aWRlciI6IkVtYWlsIFNlY3VyaXR5IFByb3ZpZGVyIn1dLCJyb2xlcyI6WyJxdWVyeUV4ZWN1dG9yIl0sImlzcyI6IlNlYXJjaEFwaSIsImV4cCI6MTcyODQxOTcwNCwiaWF0IjoxNzI4MzMzMzA0fQ.KZjuzS5x8GlJY1E-wUAMpRFvUsMt0lurjDIS7bCBzEM";await e.initialize({accessToken:r,organizationId:n,platformUrl:t,preprocessRequest:(i,a,o)=>{if(a=="searchApiFetch"&&(o==null?void 0:o.method)=="search"){i.url+="&viewAllContent=1";var s=JSON.parse(i.body);s.context={user_country_snow:"CZ"};var l=s.q||"",u=new CustomEvent("header/searchbox/query",{detail:l});window.dispatchEvent(u),i.body=JSON.stringify(s)}return i},analytics:{enabled:!1}})}async function Km(e){let t="https://platform.cloud.coveo.com",n="anheuserbuschinbevprod",r="eyJhbGciOiJIUzI1NiJ9.eyJmaWx0ZXIiOiJAb2JqZWN0dHlwZT09RkFRIE9SIEBvYmplY3R0eXBlPT1BY2NvdW50IE9SIEB0YXJnZXRvcmc9PSh1YXQscHJvZHVjdGlvbikiLCJ2OCI6dHJ1ZSwidG9rZW5JZCI6InZ5MnJob3U0eTdjazJ2czd1Y3FwZDJzY3lhIiwib3JnYW5pemF0aW9uIjoiYW5oZXVzZXJidXNjaGluYmV2cHJvZCIsInVzZXJJZHMiOlt7InR5cGUiOiJVc2VyIiwibmFtZSI6ImFnbmllc3prYS5ub3Zha292YUBhYi1pbmJldi5jb20iLCJwcm92aWRlciI6IkVtYWlsIFNlY3VyaXR5IFByb3ZpZGVyIn1dLCJyb2xlcyI6WyJxdWVyeUV4ZWN1dG9yIl0sImlzcyI6IlNlYXJjaEFwaSIsImV4cCI6MTcyODQxOTcwNCwiaWF0IjoxNzI4MzMzMzA0fQ.KZjuzS5x8GlJY1E-wUAMpRFvUsMt0lurjDIS7bCBzEM";await e.initialize({accessToken:r,organizationId:n,platformUrl:t,preprocessRequest:(i,a,o)=>{if(a=="searchApiFetch"&&(o==null?void 0:o.method)=="search"){i.url+="&viewAllContent=1";var s=JSON.parse(i.body);s.context={user_country_snow:"CZ"},i.body=JSON.stringify(s)}return i},search:{preprocessSearchResponseMiddleware:i=>(i.body.results.forEach(a=>(a.raw.snavatar&&(a.raw.resultpicture="https://abinbevwwdev.service-now.com/"+a.raw.snavatar),a)),i)}}),e.executeFirstSearch()}async function Xm(){var e;let t="anheuserbuschinbevprod",n="eyJhbGciOiJIUzI1NiJ9.eyJmaWx0ZXIiOiJAb2JqZWN0dHlwZT09RkFRIE9SIEBvYmplY3R0eXBlPT1BY2NvdW50IE9SIEB0YXJnZXRvcmc9PSh1YXQscHJvZHVjdGlvbikiLCJ2OCI6dHJ1ZSwidG9rZW5JZCI6InZ5MnJob3U0eTdjazJ2czd1Y3FwZDJzY3lhIiwib3JnYW5pemF0aW9uIjoiYW5oZXVzZXJidXNjaGluYmV2cHJvZCIsInVzZXJJZHMiOlt7InR5cGUiOiJVc2VyIiwibmFtZSI6ImFnbmllc3prYS5ub3Zha292YUBhYi1pbmJldi5jb20iLCJwcm92aWRlciI6IkVtYWlsIFNlY3VyaXR5IFByb3ZpZGVyIn1dLCJyb2xlcyI6WyJxdWVyeUV4ZWN1dG9yIl0sImlzcyI6IlNlYXJjaEFwaSIsImV4cCI6MTcyODQxOTcwNCwiaWF0IjoxNzI4MzMzMzA0fQ.KZjuzS5x8GlJY1E-wUAMpRFvUsMt0lurjDIS7bCBzEM",r=document.querySelector("#recs");(e=r.querySelector("recs-initialization-helper"))===null||e===void 0||e.setAttribute("user-country","BE"),await(r==null?void 0:r.initialize({accessToken:n,organizationId:t,preprocessRequest:(i,a,o)=>{if(a=="searchApiFetch"&&(o==null?void 0:o.method)=="recommendations"){i.url+="&viewAllContent=1";var s=JSON.parse(i.body);s.context={user_country:"CZ",user_country_snow:"CZ",...s.context},i.body=JSON.stringify(s)}return i}}))}Jm();var e9=Object.create,oo=Object.defineProperty,t9=Object.getOwnPropertyDescriptor,n9=Object.getOwnPropertyNames,r9=Object.getPrototypeOf,i9=Object.prototype.hasOwnProperty,B2=e=>oo(e,"__esModule",{value:!0}),Ee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yu=(e,t)=>{B2(e);for(var n in t)oo(e,n,{get:t[n],enumerable:!0})},W2=(e,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of n9(t))!i9.call(e,r)&&r!=="default"&&oo(e,r,{get:()=>t[r],enumerable:!(n=t9(t,r))||n.enumerable});return e},Ge=e=>W2(B2(oo(e!=null?e9(r9(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),a9=Ee((e,t)=>{function n(r,i,a){return i in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}),o9=Ee((e,t)=>{var n=a9();function r(a,o){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);o&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),s.push.apply(s,l)}return s}function i(a){for(var o=1;o<arguments.length;o++){var s=arguments[o]!=null?arguments[o]:{};o%2?r(Object(s),!0).forEach(function(l){n(a,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(s,l))})}return a}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}),so=Ee(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=o9();function n(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var r=n(t);function i(p){return"Minified Redux error #"+p+"; visit https://redux.js.org/Errors?code="+p+" for the full message or use the non-minified dev environment for full errors. "}var a=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function l(p){if(typeof p!="object"||p===null)return!1;for(var v=p;Object.getPrototypeOf(v)!==null;)v=Object.getPrototypeOf(v);return Object.getPrototypeOf(p)===v}function u(p,v,C){var E;if(typeof v=="function"&&typeof C=="function"||typeof C=="function"&&typeof arguments[3]=="function")throw new Error(i(0));if(typeof v=="function"&&typeof C=="undefined"&&(C=v,v=void 0),typeof C!="undefined"){if(typeof C!="function")throw new Error(i(1));return C(u)(p,v)}if(typeof p!="function")throw new Error(i(2));var M=p,_=v,L=[],S=L,I=!1;function b(){S===L&&(S=L.slice())}function q(){if(I)throw new Error(i(3));return _}function F(w){if(typeof w!="function")throw new Error(i(4));if(I)throw new Error(i(5));var x=!0;return b(),S.push(w),function(){if(x){if(I)throw new Error(i(6));x=!1,b();var T=S.indexOf(w);S.splice(T,1),L=null}}}function O(w){if(!l(w))throw new Error(i(7));if(typeof w.type=="undefined")throw new Error(i(8));if(I)throw new Error(i(9));try{I=!0,_=M(_,w)}finally{I=!1}for(var x=L=S,T=0;T<x.length;T++){var A=x[T];A()}return w}function $(w){if(typeof w!="function")throw new Error(i(10));M=w,O({type:s.REPLACE})}function k(){var w,x=F;return w={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(i(11));function A(){T.next&&T.next(q())}A();var H=x(A);return{unsubscribe:H}}},w[a]=function(){return this},w}return O({type:s.INIT}),E={dispatch:O,subscribe:F,getState:q,replaceReducer:$},E[a]=k,E}var d=u;function f(p){Object.keys(p).forEach(function(v){var C=p[v],E=C(void 0,{type:s.INIT});if(typeof E=="undefined")throw new Error(i(12));if(typeof C(void 0,{type:s.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(i(13))})}function m(p){for(var v=Object.keys(p),C={},E=0;E<v.length;E++){var M=v[E];typeof p[M]=="function"&&(C[M]=p[M])}var _=Object.keys(C),L;try{f(C)}catch(S){L=S}return function(S,I){if(S===void 0&&(S={}),L)throw L;for(var b=!1,q={},F=0;F<_.length;F++){var O=_[F],$=C[O],k=S[O],w=$(k,I);if(typeof w=="undefined")throw new Error(i(14));q[O]=w,b=b||w!==k}return b=b||_.length!==Object.keys(S).length,b?q:S}}function y(p,v){return function(){return v(p.apply(this,arguments))}}function g(p,v){if(typeof p=="function")return y(p,v);if(typeof p!="object"||p===null)throw new Error(i(16));var C={};for(var E in p){var M=p[E];typeof M=="function"&&(C[E]=y(M,v))}return C}function c(){for(var p=arguments.length,v=new Array(p),C=0;C<p;C++)v[C]=arguments[C];return v.length===0?function(E){return E}:v.length===1?v[0]:v.reduce(function(E,M){return function(){return E(M.apply(void 0,arguments))}})}function h(){for(var p=arguments.length,v=new Array(p),C=0;C<p;C++)v[C]=arguments[C];return function(E){return function(){var M=E.apply(void 0,arguments),_=function(){throw new Error(i(15))},L={getState:M.getState,dispatch:function(){return _.apply(void 0,arguments)}},S=v.map(function(I){return I(L)});return _=c.apply(void 0,S)(M.dispatch),r.default(r.default({},M),{},{dispatch:_})}}}e.__DO_NOT_USE__ActionTypes=s,e.applyMiddleware=h,e.bindActionCreators=g,e.combineReducers=m,e.compose=c,e.createStore=u,e.legacy_createStore=d}),s9=Ee((e,t)=>{function n(i){try{return JSON.stringify(i)}catch(a){return'"[Circular]"'}}t.exports=r;function r(i,a,o){var s=o&&o.stringify||n,l=1;if(typeof i=="object"&&i!==null){var u=a.length+l;if(u===1)return i;var d=new Array(u);d[0]=s(i);for(var f=1;f<u;f++)d[f]=s(a[f]);return d.join(" ")}if(typeof i!="string")return i;var m=a.length;if(m===0)return i;for(var y="",g=1-l,c=-1,h=i&&i.length||0,p=0;p<h;){if(i.charCodeAt(p)===37&&p+1<h){switch(c=c>-1?c:0,i.charCodeAt(p+1)){case 100:case 102:if(g>=m||a[g]==null)break;c<p&&(y+=i.slice(c,p)),y+=Number(a[g]),c=p+2,p++;break;case 105:if(g>=m||a[g]==null)break;c<p&&(y+=i.slice(c,p)),y+=Math.floor(Number(a[g])),c=p+2,p++;break;case 79:case 111:case 106:if(g>=m||a[g]===void 0)break;c<p&&(y+=i.slice(c,p));var v=typeof a[g];if(v==="string"){y+="'"+a[g]+"'",c=p+2,p++;break}if(v==="function"){y+=a[g].name||"<anonymous>",c=p+2,p++;break}y+=s(a[g]),c=p+2,p++;break;case 115:if(g>=m)break;c<p&&(y+=i.slice(c,p)),y+=String(a[g]),c=p+2,p++;break;case 37:c<p&&(y+=i.slice(c,p)),y+="%",c=p+2,p++,g--;break}++g}++p}return c===-1?i:(c<h&&(y+=i.slice(c)),y)}}),lo=Ee((e,t)=>{var n=s9();t.exports=o;var r=L().console||{},i={mapHttpRequest:h,mapHttpResponse:h,wrapRequestSerializer:p,wrapResponseSerializer:p,wrapErrorSerializer:p,req:h,res:h,err:g};function a(S,I){return Array.isArray(S)?S.filter(function(b){return b!=="!stdSerializers.err"}):S===!0?Object.keys(I):!1}function o(S){S=S||{},S.browser=S.browser||{};let I=S.browser.transmit;if(I&&typeof I.send!="function")throw Error("pino: transmit option must have a send function");let b=S.browser.write||r;S.browser.write&&(S.browser.asObject=!0);let q=S.serializers||{},F=a(S.browser.serialize,q),O=S.browser.serialize;Array.isArray(S.browser.serialize)&&S.browser.serialize.indexOf("!stdSerializers.err")>-1&&(O=!1);let $=["error","fatal","warn","info","debug","trace"];typeof b=="function"&&(b.error=b.fatal=b.warn=b.info=b.debug=b.trace=b),S.enabled===!1&&(S.level="silent");let k=S.level||"info",w=Object.create(b);w.log||(w.log=v),Object.defineProperty(w,"levelVal",{get:T}),Object.defineProperty(w,"level",{get:A,set:H});let x={transmit:I,serialize:F,asObject:S.browser.asObject,levels:$,timestamp:c(S)};w.levels=o.levels,w.level=k,w.setMaxListeners=w.getMaxListeners=w.emit=w.addListener=w.on=w.prependListener=w.once=w.prependOnceListener=w.removeListener=w.removeAllListeners=w.listeners=w.listenerCount=w.eventNames=w.write=w.flush=v,w.serializers=q,w._serialize=F,w._stdErrSerialize=O,w.child=G,I&&(w._logEvent=y());function T(){return this.level==="silent"?1/0:this.levels.values[this.level]}function A(){return this._level}function H(W){if(W!=="silent"&&!this.levels.values[W])throw Error("unknown level "+W);this._level=W,s(x,w,"error","log"),s(x,w,"fatal","error"),s(x,w,"warn","error"),s(x,w,"info","log"),s(x,w,"debug","log"),s(x,w,"trace","log")}function G(W,ie){if(!W)throw new Error("missing bindings for child Pino");ie=ie||{},F&&W.serializers&&(ie.serializers=W.serializers);let Ce=ie.serializers;if(F&&Ce){var pe=Object.assign({},q,Ce),Re=S.browser.serialize===!0?Object.keys(pe):F;delete W.serializers,d([W],Re,pe,this._stdErrSerialize)}function Me(le){this._childLevel=(le._childLevel|0)+1,this.error=f(le,W,"error"),this.fatal=f(le,W,"fatal"),this.warn=f(le,W,"warn"),this.info=f(le,W,"info"),this.debug=f(le,W,"debug"),this.trace=f(le,W,"trace"),pe&&(this.serializers=pe,this._serialize=Re),I&&(this._logEvent=y([].concat(le._logEvent.bindings,W)))}return Me.prototype=this,new Me(this)}return w}o.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},o.stdSerializers=i,o.stdTimeFunctions=Object.assign({},{nullTime:C,epochTime:E,unixTime:M,isoTime:_});function s(S,I,b,q){let F=Object.getPrototypeOf(I);I[b]=I.levelVal>I.levels.values[b]?v:F[b]?F[b]:r[b]||r[q]||v,l(S,I,b)}function l(S,I,b){!S.transmit&&I[b]===v||(I[b]=function(q){return function(){let F=S.timestamp(),O=new Array(arguments.length),$=Object.getPrototypeOf&&Object.getPrototypeOf(this)===r?r:this;for(var k=0;k<O.length;k++)O[k]=arguments[k];if(S.serialize&&!S.asObject&&d(O,this._serialize,this.serializers,this._stdErrSerialize),S.asObject?q.call($,u(this,b,O,F)):q.apply($,O),S.transmit){let w=S.transmit.level||I.level,x=o.levels.values[w],T=o.levels.values[b];if(T<x)return;m(this,{ts:F,methodLevel:b,methodValue:T,transmitLevel:w,transmitValue:o.levels.values[S.transmit.level||I.level],send:S.transmit.send,val:I.levelVal},O)}}}(I[b]))}function u(S,I,b,q){S._serialize&&d(b,S._serialize,S.serializers,S._stdErrSerialize);let F=b.slice(),O=F[0],$={};q&&($.time=q),$.level=o.levels.values[I];let k=(S._childLevel|0)+1;if(k<1&&(k=1),O!==null&&typeof O=="object"){for(;k--&&typeof F[0]=="object";)Object.assign($,F.shift());O=F.length?n(F.shift(),F):void 0}else typeof O=="string"&&(O=n(F.shift(),F));return O!==void 0&&($.msg=O),$}function d(S,I,b,q){for(let F in S)if(q&&S[F]instanceof Error)S[F]=o.stdSerializers.err(S[F]);else if(typeof S[F]=="object"&&!Array.isArray(S[F]))for(let O in S[F])I&&I.indexOf(O)>-1&&O in b&&(S[F][O]=b[O](S[F][O]))}function f(S,I,b){return function(){let q=new Array(1+arguments.length);q[0]=I;for(var F=1;F<q.length;F++)q[F]=arguments[F-1];return S[b].apply(this,q)}}function m(S,I,b){let q=I.send,F=I.ts,O=I.methodLevel,$=I.methodValue,k=I.val,w=S._logEvent.bindings;d(b,S._serialize||Object.keys(S.serializers),S.serializers,S._stdErrSerialize===void 0?!0:S._stdErrSerialize),S._logEvent.ts=F,S._logEvent.messages=b.filter(function(x){return w.indexOf(x)===-1}),S._logEvent.level.label=O,S._logEvent.level.value=$,q(O,S._logEvent,k),S._logEvent=y(w)}function y(S){return{ts:0,messages:[],bindings:S||[],level:{label:"",value:0}}}function g(S){let I={type:S.constructor.name,msg:S.message,stack:S.stack};for(let b in S)I[b]===void 0&&(I[b]=S[b]);return I}function c(S){return typeof S.timestamp=="function"?S.timestamp:S.timestamp===!1?C:E}function h(){return{}}function p(S){return S}function v(){}function C(){return!1}function E(){return Date.now()}function M(){return Math.round(Date.now()/1e3)}function _(){return new Date(Date.now()).toISOString()}function L(){function S(I){return typeof I!="undefined"&&I}try{return typeof globalThis!="undefined"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(I){return S(self)||S(window)||S(this)||{}}}}),l9=Ee((e,t)=>{var n="[object Object]";function r(g){var c=!1;if(g!=null&&typeof g.toString!="function")try{c=!!(g+"")}catch(h){}return c}function i(g,c){return function(h){return g(c(h))}}var a=Function.prototype,o=Object.prototype,s=a.toString,l=o.hasOwnProperty,u=s.call(Object),d=o.toString,f=i(Object.getPrototypeOf,Object);function m(g){return!!g&&typeof g=="object"}function y(g){if(!m(g)||d.call(g)!=n||r(g))return!1;var c=f(g);if(c===null)return!0;var h=l.call(c,"constructor")&&c.constructor;return typeof h=="function"&&h instanceof h&&s.call(h)==u}t.exports=y}),u9=Ee(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=so(),n=l9(),r=i(n);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){if(Array.isArray(l)){for(var u=0,d=Array(l.length);u<l.length;u++)d[u]=l[u];return d}else return Array.from(l)}var o=function(l){return typeof l=="function"};function s(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function d(){var m=[],y=[],g={getState:function(){return o(u)?u(m):u},getActions:function(){return m},dispatch:function(c){if(!(0,r.default)(c))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(typeof c.type=="undefined")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant? Action: '+JSON.stringify(c));m.push(c);for(var h=0;h<y.length;h++)y[h]();return c},clearActions:function(){m=[]},subscribe:function(c){return o(c)&&y.push(c),function(){var h=y.indexOf(c);h<0||y.splice(h,1)}},replaceReducer:function(c){if(!o(c))throw new Error("Expected the nextReducer to be a function.")}};return g}var f=t.applyMiddleware.apply(void 0,a(l))(d);return f()}}}),c9=Ee((e,t)=>{t.exports=fetch}),d9=Ee(e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(i){for(var a,o=1,s=arguments.length;o<s;o++){a=arguments[o];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(i[l]=a[l])}return i},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var n={delayFirstAttempt:!1,jitter:"none",maxDelay:1/0,numOfAttempts:10,retry:function(){return!0},startingDelay:100,timeMultiple:2};function r(i){var a=t(t({},n),i);return a.numOfAttempts<1&&(a.numOfAttempts=1),a}e.getSanitizedOptions=r}),f9=Ee(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(n){var r=Math.random()*n;return Math.round(r)}e.fullJitter=t}),p9=Ee(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(n){return n}e.noJitter=t}),h9=Ee(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=f9(),n=p9();function r(i){switch(i.jitter){case"full":return t.fullJitter;case"none":default:return n.noJitter}}e.JitterFactory=r}),Y2=Ee(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=h9(),n=function(){function r(i){this.options=i,this.attempt=0}return r.prototype.apply=function(){var i=this;return new Promise(function(a){return setTimeout(a,i.jitteredDelay)})},r.prototype.setAttemptNumber=function(i){this.attempt=i},Object.defineProperty(r.prototype,"jitteredDelay",{get:function(){var i=t.JitterFactory(this.options);return i(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"delay",{get:function(){var i=this.options.startingDelay,a=this.options.timeMultiple,o=this.numOfDelayedAttempts,s=i*Math.pow(a,o);return Math.min(s,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),r}();e.Delay=n}),m9=Ee(e=>{var t=e&&e.__extends||function(){var o=function(s,l){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var f in d)d.hasOwnProperty(f)&&(u[f]=d[f])},o(s,l)};return function(s,l){o(s,l);function u(){this.constructor=s}s.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}}(),n=e&&e.__awaiter||function(o,s,l,u){function d(f){return f instanceof l?f:new l(function(m){m(f)})}return new(l||(l=Promise))(function(f,m){function y(h){try{c(u.next(h))}catch(p){m(p)}}function g(h){try{c(u.throw(h))}catch(p){m(p)}}function c(h){h.done?f(h.value):d(h.value).then(y,g)}c((u=u.apply(o,s||[])).next())})},r=e&&e.__generator||function(o,s){var l={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},u,d,f,m;return m={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function y(c){return function(h){return g([c,h])}}function g(c){if(u)throw new TypeError("Generator is already executing.");for(;l;)try{if(u=1,d&&(f=c[0]&2?d.return:c[0]?d.throw||((f=d.return)&&f.call(d),0):d.next)&&!(f=f.call(d,c[1])).done)return f;switch(d=0,f&&(c=[c[0]&2,f.value]),c[0]){case 0:case 1:f=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,d=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(f=l.trys,!(f=f.length>0&&f[f.length-1])&&(c[0]===6||c[0]===2)){l=0;continue}if(c[0]===3&&(!f||c[1]>f[0]&&c[1]<f[3])){l.label=c[1];break}if(c[0]===6&&l.label<f[1]){l.label=f[1],f=c;break}if(f&&l.label<f[2]){l.label=f[2],l.ops.push(c);break}f[2]&&l.ops.pop(),l.trys.pop();continue}c=s.call(o,l)}catch(h){c=[6,h],d=0}finally{u=f=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var i=Y2(),a=function(o){t(s,o);function s(){return o!==null&&o.apply(this,arguments)||this}return s.prototype.apply=function(){return n(this,void 0,void 0,function(){return r(this,function(l){return[2,this.isFirstAttempt?!0:o.prototype.apply.call(this)]})})},Object.defineProperty(s.prototype,"isFirstAttempt",{get:function(){return this.attempt===0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt-1},enumerable:!0,configurable:!0}),s}(i.Delay);e.SkipFirstDelay=a}),g9=Ee(e=>{var t=e&&e.__extends||function(){var i=function(a,o){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var u in l)l.hasOwnProperty(u)&&(s[u]=l[u])},i(a,o)};return function(a,o){i(a,o);function s(){this.constructor=a}a.prototype=o===null?Object.create(o):(s.prototype=o.prototype,new s)}}();Object.defineProperty(e,"__esModule",{value:!0});var n=Y2(),r=function(i){t(a,i);function a(){return i!==null&&i.apply(this,arguments)||this}return a}(n.Delay);e.AlwaysDelay=r}),v9=Ee(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=m9(),n=g9();function r(a,o){var s=i(a);return s.setAttemptNumber(o),s}e.DelayFactory=r;function i(a){return a.delayFirstAttempt?new n.AlwaysDelay(a):new t.SkipFirstDelay(a)}}),y9=Ee(e=>{var t=e&&e.__awaiter||function(s,l,u,d){function f(m){return m instanceof u?m:new u(function(y){y(m)})}return new(u||(u=Promise))(function(m,y){function g(p){try{h(d.next(p))}catch(v){y(v)}}function c(p){try{h(d.throw(p))}catch(v){y(v)}}function h(p){p.done?m(p.value):f(p.value).then(g,c)}h((d=d.apply(s,l||[])).next())})},n=e&&e.__generator||function(s,l){var u={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},d,f,m,y;return y={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(y[Symbol.iterator]=function(){return this}),y;function g(h){return function(p){return c([h,p])}}function c(h){if(d)throw new TypeError("Generator is already executing.");for(;u;)try{if(d=1,f&&(m=h[0]&2?f.return:h[0]?f.throw||((m=f.return)&&m.call(f),0):f.next)&&!(m=m.call(f,h[1])).done)return m;switch(f=0,m&&(h=[h[0]&2,m.value]),h[0]){case 0:case 1:m=h;break;case 4:return u.label++,{value:h[1],done:!1};case 5:u.label++,f=h[1],h=[0];continue;case 7:h=u.ops.pop(),u.trys.pop();continue;default:if(m=u.trys,!(m=m.length>0&&m[m.length-1])&&(h[0]===6||h[0]===2)){u=0;continue}if(h[0]===3&&(!m||h[1]>m[0]&&h[1]<m[3])){u.label=h[1];break}if(h[0]===6&&u.label<m[1]){u.label=m[1],m=h;break}if(m&&u.label<m[2]){u.label=m[2],u.ops.push(h);break}m[2]&&u.ops.pop(),u.trys.pop();continue}h=l.call(s,u)}catch(p){h=[6,p],f=0}finally{d=m=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var r=d9(),i=v9();function a(s,l){return l===void 0&&(l={}),t(this,void 0,void 0,function(){var u,d;return n(this,function(f){switch(f.label){case 0:return u=r.getSanitizedOptions(l),d=new o(s,u),[4,d.execute()];case 1:return[2,f.sent()]}})})}e.backOff=a;var o=function(){function s(l,u){this.request=l,this.options=u,this.attemptNumber=0}return s.prototype.execute=function(){return t(this,void 0,void 0,function(){var l,u;return n(this,function(d){switch(d.label){case 0:if(this.attemptLimitReached)return[3,7];d.label=1;case 1:return d.trys.push([1,4,,6]),[4,this.applyDelay()];case 2:return d.sent(),[4,this.request()];case 3:return[2,d.sent()];case 4:return l=d.sent(),this.attemptNumber++,[4,this.options.retry(l,this.attemptNumber)];case 5:if(u=d.sent(),!u||this.attemptLimitReached)throw l;return[3,6];case 6:return[3,0];case 7:throw new Error("Something went wrong.")}})})},Object.defineProperty(s.prototype,"attemptLimitReached",{get:function(){return this.attemptNumber>=this.options.numOfAttempts},enumerable:!0,configurable:!0}),s.prototype.applyDelay=function(){return t(this,void 0,void 0,function(){var l;return n(this,function(u){switch(u.label){case 0:return l=i.DelayFactory(this.options,this.attemptNumber),[4,l.apply()];case 1:return u.sent(),[2]}})})},s}()}),C9=Ee((e,t)=>{var n=typeof self!="undefined"?self:typeof window!="undefined"?window:void 0;if(!n)throw new Error("Unable to find global scope. Are you sure this is running in the browser?");if(!n.AbortController)throw new Error('Could not find "AbortController" in the global scope. You need to polyfill it first');t.exports=n.AbortController,t.exports.default=n.AbortController}),b9=Ee((e,t)=>{function n(a){if(arguments.length===0)throw new TypeError("1 argument required, but only 0 present.");if(a=`${a}`,a=a.replace(/[ \t\n\f\r]/g,""),a.length%4==0&&(a=a.replace(/==?$/,"")),a.length%4==1||/[^+/0-9A-Za-z]/.test(a))return null;let o="",s=0,l=0;for(let u=0;u<a.length;u++)s<<=6,s|=i(a[u]),l+=6,l===24&&(o+=String.fromCharCode((s&16711680)>>16),o+=String.fromCharCode((s&65280)>>8),o+=String.fromCharCode(s&255),s=l=0);return l===12?(s>>=4,o+=String.fromCharCode(s)):l===18&&(s>>=2,o+=String.fromCharCode((s&65280)>>8),o+=String.fromCharCode(s&255)),o}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function i(a){let o=r.indexOf(a);return o<0?void 0:o}t.exports=n}),S9=Ee((e,t)=>{function n(a){if(arguments.length===0)throw new TypeError("1 argument required, but only 0 present.");let o;for(a=`${a}`,o=0;o<a.length;o++)if(a.charCodeAt(o)>255)return null;let s="";for(o=0;o<a.length;o+=3){let l=[void 0,void 0,void 0,void 0];l[0]=a.charCodeAt(o)>>2,l[1]=(a.charCodeAt(o)&3)<<4,a.length>o+1&&(l[1]|=a.charCodeAt(o+1)>>4,l[2]=(a.charCodeAt(o+1)&15)<<2),a.length>o+2&&(l[2]|=a.charCodeAt(o+2)>>6,l[3]=a.charCodeAt(o+2)&63);for(let u=0;u<l.length;u++)typeof l[u]=="undefined"?s+="=":s+=i(l[u])}return s}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function i(a){if(a>=0&&a<64)return r[a]}t.exports=n}),Z2=Ee((e,t)=>{var n=b9(),r=S9();t.exports={atob:n,btoa:r}}),Cu=Ee((e,t)=>{(function(n,r){typeof e=="object"&&typeof t!="undefined"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis!="undefined"?globalThis:n||self).dayjs=r()})(e,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",d="week",f="month",m="quarter",y="year",g="date",c="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},C=function(O,$,k){var w=String(O);return!w||w.length>=$?O:""+Array($+1-w.length).join(k)+O},E={s:C,z:function(O){var $=-O.utcOffset(),k=Math.abs($),w=Math.floor(k/60),x=k%60;return($<=0?"+":"-")+C(w,2,"0")+":"+C(x,2,"0")},m:function O($,k){if($.date()<k.date())return-O(k,$);var w=12*(k.year()-$.year())+(k.month()-$.month()),x=$.clone().add(w,f),T=k-x<0,A=$.clone().add(w+(T?-1:1),f);return+(-(w+(k-x)/(T?x-A:A-x))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:f,y,w:d,d:u,D:g,h:l,m:s,s:o,ms:a,Q:m}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},M="en",_={};_[M]=v;var L=function(O){return O instanceof q},S=function O($,k,w){var x;if(!$)return M;if(typeof $=="string"){var T=$.toLowerCase();_[T]&&(x=T),k&&(_[T]=k,x=T);var A=$.split("-");if(!x&&A.length>1)return O(A[0])}else{var H=$.name;_[H]=$,x=H}return!w&&x&&(M=x),x||!w&&M},I=function(O,$){if(L(O))return O.clone();var k=typeof $=="object"?$:{};return k.date=O,k.args=arguments,new q(k)},b=E;b.l=S,b.i=L,b.w=function(O,$){return I(O,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var q=function(){function O(k){this.$L=S(k.locale,null,!0),this.parse(k)}var $=O.prototype;return $.parse=function(k){this.$d=function(w){var x=w.date,T=w.utc;if(x===null)return new Date(NaN);if(b.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var A=x.match(h);if(A){var H=A[2]-1||0,G=(A[7]||"0").substring(0,3);return T?new Date(Date.UTC(A[1],H,A[3]||1,A[4]||0,A[5]||0,A[6]||0,G)):new Date(A[1],H,A[3]||1,A[4]||0,A[5]||0,A[6]||0,G)}}return new Date(x)}(k),this.$x=k.x||{},this.init()},$.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},$.$utils=function(){return b},$.isValid=function(){return this.$d.toString()!==c},$.isSame=function(k,w){var x=I(k);return this.startOf(w)<=x&&x<=this.endOf(w)},$.isAfter=function(k,w){return I(k)<this.startOf(w)},$.isBefore=function(k,w){return this.endOf(w)<I(k)},$.$g=function(k,w,x){return b.u(k)?this[w]:this.set(x,k)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(k,w){var x=this,T=!!b.u(w)||w,A=b.p(k),H=function(le,ue){var Se=b.w(x.$u?Date.UTC(x.$y,ue,le):new Date(x.$y,ue,le),x);return T?Se:Se.endOf(u)},G=function(le,ue){return b.w(x.toDate()[le].apply(x.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(ue)),x)},W=this.$W,ie=this.$M,Ce=this.$D,pe="set"+(this.$u?"UTC":"");switch(A){case y:return T?H(1,0):H(31,11);case f:return T?H(1,ie):H(0,ie+1);case d:var Re=this.$locale().weekStart||0,Me=(W<Re?W+7:W)-Re;return H(T?Ce-Me:Ce+(6-Me),ie);case u:case g:return G(pe+"Hours",0);case l:return G(pe+"Minutes",1);case s:return G(pe+"Seconds",2);case o:return G(pe+"Milliseconds",3);default:return this.clone()}},$.endOf=function(k){return this.startOf(k,!1)},$.$set=function(k,w){var x,T=b.p(k),A="set"+(this.$u?"UTC":""),H=(x={},x[u]=A+"Date",x[g]=A+"Date",x[f]=A+"Month",x[y]=A+"FullYear",x[l]=A+"Hours",x[s]=A+"Minutes",x[o]=A+"Seconds",x[a]=A+"Milliseconds",x)[T],G=T===u?this.$D+(w-this.$W):w;if(T===f||T===y){var W=this.clone().set(g,1);W.$d[H](G),W.init(),this.$d=W.set(g,Math.min(this.$D,W.daysInMonth())).$d}else H&&this.$d[H](G);return this.init(),this},$.set=function(k,w){return this.clone().$set(k,w)},$.get=function(k){return this[b.p(k)]()},$.add=function(k,w){var x,T=this;k=Number(k);var A=b.p(w),H=function(ie){var Ce=I(T);return b.w(Ce.date(Ce.date()+Math.round(ie*k)),T)};if(A===f)return this.set(f,this.$M+k);if(A===y)return this.set(y,this.$y+k);if(A===u)return H(1);if(A===d)return H(7);var G=(x={},x[s]=r,x[l]=i,x[o]=n,x)[A]||1,W=this.$d.getTime()+k*G;return b.w(W,this)},$.subtract=function(k,w){return this.add(-1*k,w)},$.format=function(k){var w=this,x=this.$locale();if(!this.isValid())return x.invalidDate||c;var T=k||"YYYY-MM-DDTHH:mm:ssZ",A=b.z(this),H=this.$H,G=this.$m,W=this.$M,ie=x.weekdays,Ce=x.months,pe=function(ue,Se,Ye,ze){return ue&&(ue[Se]||ue(w,T))||Ye[Se].slice(0,ze)},Re=function(ue){return b.s(H%12||12,ue,"0")},Me=x.meridiem||function(ue,Se,Ye){var ze=ue<12?"AM":"PM";return Ye?ze.toLowerCase():ze},le={YY:String(this.$y).slice(-2),YYYY:this.$y,M:W+1,MM:b.s(W+1,2,"0"),MMM:pe(x.monthsShort,W,Ce,3),MMMM:pe(Ce,W),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:pe(x.weekdaysMin,this.$W,ie,2),ddd:pe(x.weekdaysShort,this.$W,ie,3),dddd:ie[this.$W],H:String(H),HH:b.s(H,2,"0"),h:Re(1),hh:Re(2),a:Me(H,G,!0),A:Me(H,G,!1),m:String(G),mm:b.s(G,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:A};return T.replace(p,function(ue,Se){return Se||le[ue]||A.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(k,w,x){var T,A=b.p(w),H=I(k),G=(H.utcOffset()-this.utcOffset())*r,W=this-H,ie=b.m(this,H);return ie=(T={},T[y]=ie/12,T[f]=ie,T[m]=ie/3,T[d]=(W-G)/6048e5,T[u]=(W-G)/864e5,T[l]=W/i,T[s]=W/r,T[o]=W/n,T)[A]||W,x?ie:b.a(ie)},$.daysInMonth=function(){return this.endOf(f).$D},$.$locale=function(){return _[this.$L]},$.locale=function(k,w){if(!k)return this.$L;var x=this.clone(),T=S(k,w,!0);return T&&(x.$L=T),x},$.clone=function(){return b.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},O}(),F=q.prototype;return I.prototype=F,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",y],["$D",g]].forEach(function(O){F[O[1]]=function($){return this.$g($,O[0],O[1])}}),I.extend=function(O,$){return O.$i||(O($,q,I),O.$i=!0),I},I.locale=S,I.isDayjs=L,I.unix=function(O){return I(1e3*O)},I.en=_[M],I.Ls=_,I.p={},I})}),w9=Ee((e,t)=>{(function(n,r){typeof e=="object"&&typeof t!="undefined"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis!="undefined"?globalThis:n||self).dayjs_plugin_quarterOfYear=r()})(e,function(){var n="month",r="quarter";return function(i,a){var o=a.prototype;o.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var s=o.add;o.add=function(u,d){return u=Number(u),this.$utils().p(d)===r?this.add(3*u,n):s.bind(this)(u,d)};var l=o.startOf;o.startOf=function(u,d){var f=this.$utils(),m=!!f.u(d)||d;if(f.p(u)===r){var y=this.quarter()-1;return m?this.month(3*y).startOf(n).startOf("day"):this.month(3*y+2).endOf(n).endOf("day")}return l.bind(this)(u,d)}}})}),$9=Ee((e,t)=>{(function(n,r){typeof e=="object"&&typeof t!="undefined"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis!="undefined"?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,a=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},l=function(c){return(c=+c)+(c>68?1900:2e3)},u=function(c){return function(h){this[c]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(c){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var p=h.match(/([+-]|\d\d)/g),v=60*p[1]+(+p[2]||0);return v===0?0:p[0]==="+"?-v:v}(c)}],f=function(c){var h=s[c];return h&&(h.indexOf?h:h.s.concat(h.f))},m=function(c,h){var p,v=s.meridiem;if(v){for(var C=1;C<=24;C+=1)if(c.indexOf(v(C,0,h))>-1){p=C>12;break}}else p=c===(h?"pm":"PM");return p},y={A:[o,function(c){this.afternoon=m(c,!1)}],a:[o,function(c){this.afternoon=m(c,!0)}],S:[/\d/,function(c){this.milliseconds=100*+c}],SS:[i,function(c){this.milliseconds=10*+c}],SSS:[/\d{3}/,function(c){this.milliseconds=+c}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[i,u("day")],Do:[o,function(c){var h=s.ordinal,p=c.match(/\d+/);if(this.day=p[0],h)for(var v=1;v<=31;v+=1)h(v).replace(/\[|\]/g,"")===c&&(this.day=v)}],M:[a,u("month")],MM:[i,u("month")],MMM:[o,function(c){var h=f("months"),p=(f("monthsShort")||h.map(function(v){return v.slice(0,3)})).indexOf(c)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[o,function(c){var h=f("months").indexOf(c)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(c){this.year=l(c)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function g(c){var h,p;h=c,p=s&&s.formats;for(var v=(c=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,b,q){var F=q&&q.toUpperCase();return b||p[q]||n[q]||p[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,$,k){return $||k.slice(1)})})).match(r),C=v.length,E=0;E<C;E+=1){var M=v[E],_=y[M],L=_&&_[0],S=_&&_[1];v[E]=S?{regex:L,parser:S}:M.replace(/^\[|\]$/g,"")}return function(I){for(var b={},q=0,F=0;q<C;q+=1){var O=v[q];if(typeof O=="string")F+=O.length;else{var $=O.regex,k=O.parser,w=I.slice(F),x=$.exec(w)[0];k.call(b,x),I=I.replace(x,"")}}return function(T){var A=T.afternoon;if(A!==void 0){var H=T.hours;A?H<12&&(T.hours+=12):H===12&&(T.hours=0),delete T.afternoon}}(b),b}}return function(c,h,p){p.p.customParseFormat=!0,c&&c.parseTwoDigitYear&&(l=c.parseTwoDigitYear);var v=h.prototype,C=v.parse;v.parse=function(E){var M=E.date,_=E.utc,L=E.args;this.$u=_;var S=L[1];if(typeof S=="string"){var I=L[2]===!0,b=L[3]===!0,q=I||b,F=L[2];b&&(F=L[2]),s=this.$locale(),!I&&F&&(s=p.Ls[F]),this.$d=function(w,x,T){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1e3:1)*w);var A=g(x)(w),H=A.year,G=A.month,W=A.day,ie=A.hours,Ce=A.minutes,pe=A.seconds,Re=A.milliseconds,Me=A.zone,le=new Date,ue=W||(H||G?1:le.getDate()),Se=H||le.getFullYear(),Ye=0;H&&!G||(Ye=G>0?G-1:le.getMonth());var ze=ie||0,zt=Ce||0,Vt=pe||0,Nt=Re||0;return Me?new Date(Date.UTC(Se,Ye,ue,ze,zt,Vt,Nt+60*Me.offset*1e3)):T?new Date(Date.UTC(Se,Ye,ue,ze,zt,Vt,Nt)):new Date(Se,Ye,ue,ze,zt,Vt,Nt)}catch(Zo){return new Date("")}}(M,S,_),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),q&&M!=this.format(S)&&(this.$d=new Date("")),s={}}else if(S instanceof Array)for(var O=S.length,$=1;$<=O;$+=1){L[1]=S[$-1];var k=p.apply(this,L);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}$===O&&(this.$d=new Date(""))}else C.call(this,E)}}})}),k9=Ee((e,t)=>{(function(n,r){typeof e=="object"&&typeof t!="undefined"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis!="undefined"?globalThis:n||self).dayjs_plugin_timezone=r()})(e,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,a,o){var s,l=function(m,y,g){g===void 0&&(g={});var c=new Date(m),h=function(p,v){v===void 0&&(v={});var C=v.timeZoneName||"short",E=p+"|"+C,M=r[E];return M||(M=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:p,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:C}),r[E]=M),M}(y,g);return h.formatToParts(c)},u=function(m,y){for(var g=l(m,y),c=[],h=0;h<g.length;h+=1){var p=g[h],v=p.type,C=p.value,E=n[v];E>=0&&(c[E]=parseInt(C,10))}var M=c[3],_=M===24?0:M,L=c[0]+"-"+c[1]+"-"+c[2]+" "+_+":"+c[4]+":"+c[5]+":000",S=+m;return(o.utc(L).valueOf()-(S-=S%1e3))/6e4},d=a.prototype;d.tz=function(m,y){m===void 0&&(m=s);var g=this.utcOffset(),c=this.toDate(),h=c.toLocaleString("en-US",{timeZone:m}),p=Math.round((c-new Date(h))/1e3/60),v=o(h).$set("millisecond",this.$ms).utcOffset(15*-Math.round(c.getTimezoneOffset()/15)-p,!0);if(y){var C=v.utcOffset();v=v.add(g-C,"minute")}return v.$x.$timezone=m,v},d.offsetName=function(m){var y=this.$x.$timezone||o.tz.guess(),g=l(this.valueOf(),y,{timeZoneName:m}).find(function(c){return c.type.toLowerCase()==="timezonename"});return g&&g.value};var f=d.startOf;d.startOf=function(m,y){if(!this.$x||!this.$x.$timezone)return f.call(this,m,y);var g=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return f.call(g,m,y).tz(this.$x.$timezone,!0)},o.tz=function(m,y,g){var c=g&&y,h=g||y||s,p=u(+o(),h);if(typeof m!="string")return o(m).tz(h);var v=function(_,L,S){var I=_-60*L*1e3,b=u(I,S);if(L===b)return[I,L];var q=u(I-=60*(b-L)*1e3,S);return b===q?[I,b]:[_-60*Math.min(b,q)*1e3,Math.max(b,q)]}(o.utc(m,c).valueOf(),p,h),C=v[0],E=v[1],M=o(C).utcOffset(E);return M.$x.$timezone=h,M},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(m){s=m}}})}),x9=Ee((e,t)=>{(function(n,r){typeof e=="object"&&typeof t!="undefined"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis!="undefined"?globalThis:n||self).dayjs_plugin_utc=r()})(e,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,o,s){var l=o.prototype;s.utc=function(c){var h={date:c,utc:!0,args:arguments};return new o(h)},l.utc=function(c){var h=s(this.toDate(),{locale:this.$L,utc:!0});return c?h.add(this.utcOffset(),n):h},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(c){c.utc&&(this.$u=!0),this.$utils().u(c.$offset)||(this.$offset=c.$offset),u.call(this,c)};var d=l.init;l.init=function(){if(this.$u){var c=this.$d;this.$y=c.getUTCFullYear(),this.$M=c.getUTCMonth(),this.$D=c.getUTCDate(),this.$W=c.getUTCDay(),this.$H=c.getUTCHours(),this.$m=c.getUTCMinutes(),this.$s=c.getUTCSeconds(),this.$ms=c.getUTCMilliseconds()}else d.call(this)};var f=l.utcOffset;l.utcOffset=function(c,h){var p=this.$utils().u;if(p(c))return this.$u?0:p(this.$offset)?f.call(this):this.$offset;if(typeof c=="string"&&(c=function(M){M===void 0&&(M="");var _=M.match(r);if(!_)return null;var L=(""+_[0]).match(i)||["-",0,0],S=L[0],I=60*+L[1]+ +L[2];return I===0?0:S==="+"?I:-I}(c),c===null))return this;var v=Math.abs(c)<=16?60*c:c,C=this;if(h)return C.$offset=v,C.$u=c===0,C;if(c!==0){var E=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(C=this.local().add(v+E,n)).$offset=v,C.$x.$localOffset=E}else C=this.utc();return C};var m=l.format;l.format=function(c){var h=c||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,h)},l.valueOf=function(){var c=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*c},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var y=l.toDate;l.toDate=function(c){return c==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var g=l.diff;l.diff=function(c,h,p){if(c&&this.$u===c.$u)return g.call(this,c,h,p);var v=this.local(),C=s(c).local();return g.call(v,C,h,p)}}})}),O9=Ee((e,t)=>{(function(n,r){typeof e=="object"&&typeof t!="undefined"?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis!="undefined"?globalThis:n||self,r(n["fast-equals"]={}))})(e,function(n){var r=typeof WeakSet=="function",i=Object.keys;function a(b,q){return b===q||b!==b&&q!==q}function o(b){return b.constructor===Object||b.constructor==null}function s(b){return!!b&&typeof b.then=="function"}function l(b){return!!(b&&b.$$typeof)}function u(){var b=[];return{add:function(q){b.push(q)},has:function(q){return b.indexOf(q)!==-1}}}var d=function(b){return b?function(){return new WeakSet}:u}(r);function f(b){return function(q){var F=b||q;return function(O,$,k){k===void 0&&(k=d());var w=!!O&&typeof O=="object",x=!!$&&typeof $=="object";if(w||x){var T=w&&k.has(O),A=x&&k.has($);if(T||A)return T&&A;w&&k.add(O),x&&k.add($)}return F(O,$,k)}}}function m(b,q,F,O){var $=b.length;if(q.length!==$)return!1;for(;$-- >0;)if(!F(b[$],q[$],O))return!1;return!0}function y(b,q,F,O){var $=b.size===q.size;if($&&b.size){var k={};b.forEach(function(w,x){if($){var T=!1,A=0;q.forEach(function(H,G){!T&&!k[A]&&(T=F(x,G,O)&&F(w,H,O),T&&(k[A]=!0)),A++}),$=T}})}return $}var g="_owner",c=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function h(b,q,F,O){var $=i(b),k=$.length;if(i(q).length!==k)return!1;if(k)for(var w=void 0;k-- >0;){if(w=$[k],w===g){var x=l(b),T=l(q);if((x||T)&&x!==T)return!1}if(!c(q,w)||!F(b[w],q[w],O))return!1}return!0}function p(b,q){return b.source===q.source&&b.global===q.global&&b.ignoreCase===q.ignoreCase&&b.multiline===q.multiline&&b.unicode===q.unicode&&b.sticky===q.sticky&&b.lastIndex===q.lastIndex}function v(b,q,F,O){var $=b.size===q.size;if($&&b.size){var k={};b.forEach(function(w){if($){var x=!1,T=0;q.forEach(function(A){!x&&!k[T]&&(x=F(w,A,O),x&&(k[T]=!0)),T++}),$=x}})}return $}var C=typeof Map=="function",E=typeof Set=="function";function M(b){var q=typeof b=="function"?b(F):F;function F(O,$,k){if(O===$)return!0;if(O&&$&&typeof O=="object"&&typeof $=="object"){if(o(O)&&o($))return h(O,$,q,k);var w=Array.isArray(O),x=Array.isArray($);return w||x?w===x&&m(O,$,q,k):(w=O instanceof Date,x=$ instanceof Date,w||x?w===x&&a(O.getTime(),$.getTime()):(w=O instanceof RegExp,x=$ instanceof RegExp,w||x?w===x&&p(O,$):s(O)||s($)?O===$:C&&(w=O instanceof Map,x=$ instanceof Map,w||x)?w===x&&y(O,$,q,k):E&&(w=O instanceof Set,x=$ instanceof Set,w||x)?w===x&&v(O,$,q,k):h(O,$,q,k)))}return O!==O&&$!==$}return F}var _=M(),L=M(function(){return a}),S=M(f()),I=M(f(a));n.circularDeepEqual=S,n.circularShallowEqual=I,n.createCustomEqual=M,n.deepEqual=_,n.sameValueZeroEqual=a,n.shallowEqual=L,Object.defineProperty(n,"__esModule",{value:!0})})}),I9={};yu(I9,{buildMockCaseAssistEngine:()=>Q7,buildMockProductListingEngine:()=>N7,buildMockProductRecommendationsAppEngine:()=>V7,buildMockRaw:()=>V0,buildMockRecommendationAppEngine:()=>z7,buildMockResult:()=>W7,buildMockSearchAppEngine:()=>L7,createMockState:()=>z0});var J2={};yu(J2,{MiddlewareArray:()=>af,TaskAbortError:()=>hi,addListener:()=>xf,clearAllListeners:()=>Of,configureStore:()=>i6,createAction:()=>D,createAsyncThunk:()=>ke,createDraftSafeSelector:()=>Wt,createEntityAdapter:()=>g6,createImmutableStateInvariantMiddleware:()=>e6,createListenerMiddleware:()=>T6,createNextState:()=>co,createReducer:()=>ae,createSelector:()=>tf,createSerializableStateInvariantMiddleware:()=>t6,createSlice:()=>c6,current:()=>ku,findNonSerializableValue:()=>sf,freeze:()=>uo,getDefaultMiddleware:()=>Ou,getType:()=>s6,isAllOf:()=>kl,isAnyOf:()=>fi,isAsyncThunkAction:()=>vf,isDraft:()=>Ot,isFulfilled:()=>gf,isImmutableDefault:()=>X9,isPending:()=>hf,isPlain:()=>of,isPlainObject:()=>fo,isRejected:()=>Ta,isRejectedWithValue:()=>mf,miniSerializeError:()=>df,nanoid:()=>Iu,original:()=>E9,removeListener:()=>If,unwrapResult:()=>ff});function kt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ot(e){return!!e&&!!e[Te]}function Zt(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===j9}(e)||Array.isArray(e)||!!e[Ud]||!!e.constructor[Ud]||bu(e)||Su(e))}function E9(e){return Ot(e)||kt(23,e),e[Te].t}function Mn(e,t,n){n===void 0&&(n=!1),wr(e)===0?(n?Object.keys:ir)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function wr(e){var t=e[Te];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:bu(e)?2:Su(e)?3:0}function rr(e,t){return wr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function q9(e,t){return wr(e)===2?e.get(t):e[t]}function G2(e,t,n){var r=wr(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function K2(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function bu(e){return F9&&e instanceof Map}function Su(e){return D9&&e instanceof Set}function pn(e){return e.o||e.t}function wu(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ef(e);delete t[Te];for(var n=ir(t),r=0;r<n.length;r++){var i=n[r],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function uo(e,t){return t===void 0&&(t=!1),$u(e)||Ot(e)||!Zt(e)||(wr(e)>1&&(e.set=e.add=e.clear=e.delete=A9),Object.freeze(e),t&&Mn(e,function(n,r){return uo(r,!0)},!0)),e}function A9(){kt(2)}function $u(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function jt(e){var t=Sl[e];return t||kt(18,e),t}function R9(e,t){Sl[e]||(Sl[e]=t)}function yl(){return Xr}function hs(e,t){t&&(jt("Patches"),e.u=[],e.s=[],e.v=t)}function qa(e){Cl(e),e.p.forEach(M9),e.p=null}function Cl(e){e===Xr&&(Xr=e.l)}function Md(e){return Xr={p:[],l:Xr,h:e,m:!0,_:0}}function M9(e){var t=e[Te];t.i===0||t.i===1?t.j():t.O=!0}function ms(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||jt("ES5").S(t,e,r),r?(n[Te].P&&(qa(t),kt(4)),Zt(e)&&(e=Aa(t,e),t.l||Ra(t,e)),t.u&&jt("Patches").M(n[Te].t,e,t.u,t.s)):e=Aa(t,n,[]),qa(t),t.u&&t.v(t.u,t.s),e!==X2?e:void 0}function Aa(e,t,n){if($u(t))return t;var r=t[Te];if(!r)return Mn(t,function(a,o){return Td(e,r,t,a,o,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Ra(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=wu(r.k):r.o;Mn(r.i===3?new Set(i):i,function(a,o){return Td(e,r,i,a,o,n)}),Ra(e,i,!1),n&&e.u&&jt("Patches").R(r,n,e.u,e.s)}return r.o}function Td(e,t,n,r,i,a){if(Ot(i)){var o=Aa(e,i,a&&t&&t.i!==3&&!rr(t.D,r)?a.concat(r):void 0);if(G2(n,r,o),!Ot(o))return;e.m=!1}if(Zt(i)&&!$u(i)){if(!e.h.F&&e._<1)return;Aa(e,i),t&&t.A.l||Ra(e,i)}}function Ra(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&uo(t,n)}function gs(e,t){var n=e[Te];return(n?pn(n):e)[t]}function Fd(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function rn(e){e.P||(e.P=!0,e.l&&rn(e.l))}function vs(e){e.o||(e.o=wu(e.t))}function bl(e,t,n){var r=bu(t)?jt("MapSet").N(t,n):Su(t)?jt("MapSet").T(t,n):e.g?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:yl(),P:!1,I:!1,D:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,u=ei;o&&(l=[s],u=zr);var d=Proxy.revocable(l,u),f=d.revoke,m=d.proxy;return s.k=m,s.j=f,m}(t,n):jt("ES5").J(t,n);return(n?n.A:yl()).p.push(r),r}function ku(e){return Ot(e)||kt(22,e),function t(n){if(!Zt(n))return n;var r,i=n[Te],a=wr(n);if(i){if(!i.P&&(i.i<4||!jt("ES5").K(i)))return i.t;i.I=!0,r=Dd(n,a),i.I=!1}else r=Dd(n,a);return Mn(r,function(o,s){i&&q9(i.t,o)===s||G2(r,o,t(s))}),a===3?new Set(r):r}(e)}function Dd(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return wu(e)}function T9(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var l=this[Te];return ei.get(l,a)},set:function(l){var u=this[Te];ei.set(u,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Te];if(!s.P)switch(s.i){case 5:r(s)&&rn(s);break;case 4:n(s)&&rn(s)}}}function n(a){for(var o=a.t,s=a.k,l=ir(s),u=l.length-1;u>=0;u--){var d=l[u];if(d!==Te){var f=o[d];if(f===void 0&&!rr(o,d))return!0;var m=s[d],y=m&&m[Te];if(y?y.t!==f:!K2(m,f))return!0}}var g=!!o[Te];return l.length!==ir(o).length+(g?0:1)}function r(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var l=0;l<o.length;l++)if(!o.hasOwnProperty(l))return!0;return!1}var i={};R9("ES5",{J:function(a,o){var s=Array.isArray(a),l=function(d,f){if(d){for(var m=Array(f.length),y=0;y<f.length;y++)Object.defineProperty(m,""+y,e(y,!0));return m}var g=ef(f);delete g[Te];for(var c=ir(g),h=0;h<c.length;h++){var p=c[h];g[p]=e(p,d||!!g[p].enumerable)}return Object.create(Object.getPrototypeOf(f),g)}(s,a),u={i:s?5:4,A:o?o.A:yl(),P:!1,I:!1,D:{},l:o,t:a,k:l,o:null,O:!1,C:!1};return Object.defineProperty(l,Te,{value:u,writable:!0}),l},S:function(a,o,s){s?Ot(o)&&o[Te].A===a&&t(a.p):(a.u&&function l(u){if(u&&typeof u=="object"){var d=u[Te];if(d){var f=d.t,m=d.k,y=d.D,g=d.i;if(g===4)Mn(m,function(C){C!==Te&&(f[C]!==void 0||rr(f,C)?y[C]||l(m[C]):(y[C]=!0,rn(d)))}),Mn(f,function(C){m[C]!==void 0||rr(m,C)||(y[C]=!1,rn(d))});else if(g===5){if(r(d)&&(rn(d),y.length=!0),m.length<f.length)for(var c=m.length;c<f.length;c++)y[c]=!1;else for(var h=f.length;h<m.length;h++)y[h]=!0;for(var p=Math.min(m.length,f.length),v=0;v<p;v++)m.hasOwnProperty(v)||(y[v]=!0),y[v]===void 0&&l(m[v])}}}}(a.p[0]),t(a.p))},K:function(a){return a.i===4?n(a):r(a)}})}var jd,Xr,xu=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",F9=typeof Map!="undefined",D9=typeof Set!="undefined",Pd=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",X2=xu?Symbol.for("immer-nothing"):((jd={})["immer-nothing"]=!0,jd),Ud=xu?Symbol.for("immer-draftable"):"__$immer_draftable",Te=xu?Symbol.for("immer-state"):"__$immer_state",j9=""+Object.prototype.constructor,ir=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ef=Object.getOwnPropertyDescriptors||function(e){var t={};return ir(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Sl={},ei={get:function(e,t){if(t===Te)return e;var n=pn(e);if(!rr(n,t))return function(i,a,o){var s,l=Fd(a,o);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!Zt(r)?r:r===gs(e.t,t)?(vs(e),e.o[t]=bl(e.A.h,r,e)):r},has:function(e,t){return t in pn(e)},ownKeys:function(e){return Reflect.ownKeys(pn(e))},set:function(e,t,n){var r=Fd(pn(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=gs(pn(e),t),a=i==null?void 0:i[Te];if(a&&a.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(K2(n,i)&&(n!==void 0||rr(e.t,t)))return!0;vs(e),rn(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return gs(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,vs(e),rn(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=pn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){kt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){kt(12)}},zr={};Mn(ei,function(e,t){zr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),zr.deleteProperty=function(e,t){return zr.set.call(this,e,t,void 0)},zr.set=function(e,t,n){return ei.set.call(this,e[0],t,n,e[0])};var P9=function(){function e(n){var r=this;this.g=Pd,this.F=!0,this.produce=function(i,a,o){if(typeof i=="function"&&typeof a!="function"){var s=a;a=i;var l=r;return function(c){var h=this;c===void 0&&(c=s);for(var p=arguments.length,v=Array(p>1?p-1:0),C=1;C<p;C++)v[C-1]=arguments[C];return l.produce(c,function(E){var M;return(M=a).call.apply(M,[h,E].concat(v))})}}var u;if(typeof a!="function"&&kt(6),o!==void 0&&typeof o!="function"&&kt(7),Zt(i)){var d=Md(r),f=bl(r,i,void 0),m=!0;try{u=a(f),m=!1}finally{m?qa(d):Cl(d)}return typeof Promise!="undefined"&&u instanceof Promise?u.then(function(c){return hs(d,o),ms(c,d)},function(c){throw qa(d),c}):(hs(d,o),ms(u,d))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===X2&&(u=void 0),r.F&&uo(u,!0),o){var y=[],g=[];jt("Patches").M(i,u,y,g),o(y,g)}return u}kt(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var d=arguments.length,f=Array(d>1?d-1:0),m=1;m<d;m++)f[m-1]=arguments[m];return r.produceWithPatches(u,function(y){return i.apply(void 0,[y].concat(f))})};var o,s,l=r.produce(i,a,function(u,d){o=u,s=d});return typeof Promise!="undefined"&&l instanceof Promise?l.then(function(u){return[u,o,s]}):[l,o,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Zt(n)||kt(8),Ot(n)&&(n=ku(n));var r=Md(this),i=bl(this,n,void 0);return i[Te].C=!0,Cl(r),i},t.finishDraft=function(n,r){var i=n&&n[Te],a=i.A;return hs(a,r),ms(void 0,a)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!Pd&&kt(20),this.g=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=jt("Patches").$;return Ot(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),wt=new P9,U9=wt.produce;wt.produceWithPatches.bind(wt);wt.setAutoFreeze.bind(wt);wt.setUseProxies.bind(wt);wt.applyPatches.bind(wt);wt.createDraft.bind(wt);wt.finishDraft.bind(wt);var co=U9;W2(J2,Ge(so()));var Ma="NOT_FOUND";function _9(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:Ma},put:function(n,r){t={key:n,value:r}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function L9(e,t){var n=[];function r(s){var l=n.findIndex(function(d){return t(s,d.key)});if(l>-1){var u=n[l];return l>0&&(n.splice(l,1),n.unshift(u)),u.value}return Ma}function i(s,l){r(s)===Ma&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function a(){return n}function o(){n=[]}return{get:r,put:i,getEntries:a,clear:o}}var z9=function(e,t){return e===t};function V9(e){return function(t,n){if(t===null||n===null||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}function N9(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,i=r===void 0?z9:r,a=n.maxSize,o=a===void 0?1:a,s=n.resultEqualityCheck,l=V9(i),u=o===1?_9(l):L9(o,l);function d(){var f=u.get(arguments);if(f===Ma){if(f=e.apply(null,arguments),s){var m=u.getEntries(),y=m.find(function(g){return s(g.value,f)});y&&(f=y.value)}u.put(arguments,f)}return f}return d.clearCache=function(){return u.clear()},d}function Q9(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function H9(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=0,u,d={memoizeOptions:void 0},f=o.pop();if(typeof f=="object"&&(d=f,f=o.pop()),typeof f!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof f+"]");var m=d,y=m.memoizeOptions,g=y===void 0?n:y,c=Array.isArray(g)?g:[g],h=Q9(o),p=e.apply(void 0,[function(){return l++,f.apply(null,arguments)}].concat(c)),v=e(function(){for(var C=[],E=h.length,M=0;M<E;M++)C.push(h[M].apply(null,arguments));return u=p.apply(null,C),u});return Object.assign(v,{resultFunc:f,memoizedResultFunc:p,dependencies:h,lastResult:function(){return u},recomputations:function(){return l},resetRecomputations:function(){return l=0}}),v};return i}var tf=H9(N9),ra=Ge(so()),_d=Ge(so());function nf(e){var t=function(n){var r=n.dispatch,i=n.getState;return function(a){return function(o){return typeof o=="function"?o(r,i,e):a(o)}}};return t}var rf=nf();rf.withExtraArgument=nf;var wl=rf,B9=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ci=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1],a=u;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(u);break}a[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(d){u=[6,d],i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},br=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},W9=Object.defineProperty,Y9=Object.defineProperties,Z9=Object.getOwnPropertyDescriptors,Ld=Object.getOwnPropertySymbols,J9=Object.prototype.hasOwnProperty,G9=Object.prototype.propertyIsEnumerable,zd=function(e,t,n){return t in e?W9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ht=function(e,t){for(var n in t||(t={}))J9.call(t,n)&&zd(e,n,t[n]);if(Ld)for(var r=0,i=Ld(t);r<i.length;r++){var n=i[r];G9.call(t,n)&&zd(e,n,t[n])}return e},ys=function(e,t){return Y9(e,Z9(t))},di=function(e,t,n){return new Promise(function(r,i){var a=function(l){try{s(n.next(l))}catch(u){i(u)}},o=function(l){try{s(n.throw(l))}catch(u){i(u)}},s=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(a,o)};s((n=n.apply(e,t)).next())})},Wt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tf.apply(void 0,e),r=function(i){for(var a=[],o=1;o<arguments.length;o++)a[o-1]=arguments[o];return n.apply(void 0,br([Ot(i)?ku(i):i],a))};return r},K9=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_d.compose:_d.compose.apply(null,arguments)};function fo(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}var af=function(e){B9(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,br([void 0],n[0].concat(this)))):new(t.bind.apply(t,br([void 0],n.concat(this))))},t}(Array);function $l(e){return Zt(e)?co(e,function(){}):e}function X9(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function e6(e){return function(){return function(t){return function(n){return t(n)}}}}function of(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||fo(e)}function sf(e,t,n,r,i){t===void 0&&(t=""),n===void 0&&(n=of),i===void 0&&(i=[]);var a;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var o=r!=null?r(e):Object.entries(e),s=i.length>0,l=0,u=o;l<u.length;l++){var d=u[l],f=d[0],m=d[1],y=t?t+"."+f:f;if(!(s&&i.indexOf(y)>=0)){if(!n(m))return{keyPath:y,value:m};if(typeof m=="object"&&(a=sf(m,y,n,r,i),a))return a}}return!1}function t6(e){return function(){return function(t){return function(n){return t(n)}}}}function n6(e){return typeof e=="boolean"}function r6(){return function(e){return Ou(e)}}function Ou(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t,r=new af;return n&&(n6(n)?r.push(wl):r.push(wl.withExtraArgument(n.extraArgument))),r}var Vd=!0;function i6(e){var t=r6(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,a=n.middleware,o=a===void 0?t():a,s=n.devTools,l=s===void 0?!0:s,u=n.preloadedState,d=u===void 0?void 0:u,f=n.enhancers,m=f===void 0?void 0:f,y;if(typeof i=="function")y=i;else if(fo(i))y=(0,ra.combineReducers)(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=o;if(typeof g=="function"&&(g=g(t),!Vd))throw new Error("when using a middleware builder function, an array of middleware must be returned");var c=ra.applyMiddleware.apply(void 0,g),h=ra.compose;l&&(h=K9(ht({trace:!Vd},typeof l=="object"&&l)));var p=[c];Array.isArray(m)?p=br([c],m):typeof m=="function"&&(p=m(p));var v=h.apply(void 0,p);return(0,ra.createStore)(y,d,v)}function D(e,t){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t){var a=t.apply(void 0,r);if(!a)throw new Error("prepareAction did not return an object");return ht(ht({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:r[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(r){return r.type===e},n}function a6(e){return fo(e)&&typeof e.type=="string"&&Object.keys(e).every(o6)}function o6(e){return["type","payload","error","meta"].indexOf(e)>-1}function s6(e){return""+e}function lf(e){var t={},n=[],r,i={addCase:function(a,o){var s=typeof a=="string"?a:a.type;if(s in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[s]=o,i},addMatcher:function(a,o){return n.push({matcher:a,reducer:o}),i},addDefaultCase:function(a){return r=a,i}};return e(i),[t,n,r]}function l6(e){return typeof e=="function"}function ae(e,t,n,r){n===void 0&&(n=[]);var i=typeof t=="function"?lf(t):[t,n,r],a=i[0],o=i[1],s=i[2],l;if(l6(e))l=function(){return $l(e())};else{var u=$l(e);l=function(){return u}}function d(f,m){f===void 0&&(f=l());var y=br([a[m.type]],o.filter(function(g){var c=g.matcher;return c(m)}).map(function(g){var c=g.reducer;return c}));return y.filter(function(g){return!!g}).length===0&&(y=[s]),y.reduce(function(g,c){if(c)if(Ot(g)){var h=g,p=c(h,m);return p===void 0?g:p}else{if(Zt(g))return co(g,function(C){return c(C,m)});var p=c(g,m);if(p===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}return g},f)}return d.getInitialState=l,d}function u6(e,t){return e+"/"+t}function c6(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n=typeof e.initialState=="function"?e.initialState:$l(e.initialState),r=e.reducers||{},i=Object.keys(r),a={},o={},s={};i.forEach(function(d){var f=r[d],m=u6(t,d),y,g;"reducer"in f?(y=f.reducer,g=f.prepare):y=f,a[d]=y,o[m]=y,s[d]=g?D(m,g):D(m)});function l(){var d=typeof e.extraReducers=="function"?lf(e.extraReducers):[e.extraReducers],f=d[0],m=f===void 0?{}:f,y=d[1],g=y===void 0?[]:y,c=d[2],h=c===void 0?void 0:c,p=ht(ht({},m),o);return ae(n,p,g,h)}var u;return{name:t,reducer:function(d,f){return u||(u=l()),u(d,f)},actions:s,caseReducers:a,getInitialState:function(){return u||(u=l()),u.getInitialState()}}}function d6(){return{ids:[],entities:{}}}function f6(){function e(t){return t===void 0&&(t={}),Object.assign(d6(),t)}return{getInitialState:e}}function p6(){function e(t){var n=function(u){return u.ids},r=function(u){return u.entities},i=Wt(n,r,function(u,d){return u.map(function(f){return d[f]})}),a=function(u,d){return d},o=function(u,d){return u[d]},s=Wt(n,function(u){return u.length});if(!t)return{selectIds:n,selectEntities:r,selectAll:i,selectTotal:s,selectById:Wt(r,a,o)};var l=Wt(t,r);return{selectIds:Wt(t,n),selectEntities:l,selectAll:Wt(t,i),selectTotal:Wt(t,s),selectById:Wt(l,a,o)}}return{getSelectors:e}}function h6(e){var t=Qe(function(n,r){return e(r)});return function(n){return t(n,void 0)}}function Qe(e){return function(t,n){function r(a){return a6(a)}var i=function(a){r(n)?e(n.payload,a):e(n,a)};return Ot(t)?(i(t),t):co(t,i)}}function Hr(e,t){var n=t(e);return n}function $n(e){return Array.isArray(e)||(e=Object.values(e)),e}function uf(e,t,n){e=$n(e);for(var r=[],i=[],a=0,o=e;a<o.length;a++){var s=o[a],l=Hr(s,t);l in n.entities?i.push({id:l,changes:s}):r.push(s)}return[r,i]}function cf(e){function t(g,c){var h=Hr(g,e);h in c.entities||(c.ids.push(h),c.entities[h]=g)}function n(g,c){g=$n(g);for(var h=0,p=g;h<p.length;h++){var v=p[h];t(v,c)}}function r(g,c){var h=Hr(g,e);h in c.entities||c.ids.push(h),c.entities[h]=g}function i(g,c){g=$n(g);for(var h=0,p=g;h<p.length;h++){var v=p[h];r(v,c)}}function a(g,c){g=$n(g),c.ids=[],c.entities={},n(g,c)}function o(g,c){return s([g],c)}function s(g,c){var h=!1;g.forEach(function(p){p in c.entities&&(delete c.entities[p],h=!0)}),h&&(c.ids=c.ids.filter(function(p){return p in c.entities}))}function l(g){Object.assign(g,{ids:[],entities:{}})}function u(g,c,h){var p=h.entities[c.id],v=Object.assign({},p,c.changes),C=Hr(v,e),E=C!==c.id;return E&&(g[c.id]=C,delete h.entities[c.id]),h.entities[C]=v,E}function d(g,c){return f([g],c)}function f(g,c){var h={},p={};g.forEach(function(E){E.id in c.entities&&(p[E.id]={id:E.id,changes:ht(ht({},p[E.id]?p[E.id].changes:null),E.changes)})}),g=Object.values(p);var v=g.length>0;if(v){var C=g.filter(function(E){return u(h,E,c)}).length>0;C&&(c.ids=Object.keys(c.entities))}}function m(g,c){return y([g],c)}function y(g,c){var h=uf(g,e,c),p=h[0],v=h[1];f(v,c),n(p,c)}return{removeAll:h6(l),addOne:Qe(t),addMany:Qe(n),setOne:Qe(r),setMany:Qe(i),setAll:Qe(a),updateOne:Qe(d),updateMany:Qe(f),upsertOne:Qe(m),upsertMany:Qe(y),removeOne:Qe(o),removeMany:Qe(s)}}function m6(e,t){var n=cf(e),r=n.removeOne,i=n.removeMany,a=n.removeAll;function o(v,C){return s([v],C)}function s(v,C){v=$n(v);var E=v.filter(function(M){return!(Hr(M,e)in C.entities)});E.length!==0&&h(E,C)}function l(v,C){return u([v],C)}function u(v,C){v=$n(v),v.length!==0&&h(v,C)}function d(v,C){v=$n(v),C.entities={},C.ids=[],s(v,C)}function f(v,C){return m([v],C)}function m(v,C){for(var E=!1,M=0,_=v;M<_.length;M++){var L=_[M],S=C.entities[L.id];if(S){E=!0,Object.assign(S,L.changes);var I=e(S);L.id!==I&&(delete C.entities[L.id],C.entities[I]=S)}}E&&p(C)}function y(v,C){return g([v],C)}function g(v,C){var E=uf(v,e,C),M=E[0],_=E[1];m(_,C),s(M,C)}function c(v,C){if(v.length!==C.length)return!1;for(var E=0;E<v.length&&E<C.length;E++)if(v[E]!==C[E])return!1;return!0}function h(v,C){v.forEach(function(E){C.entities[e(E)]=E}),p(C)}function p(v){var C=Object.values(v.entities);C.sort(t);var E=C.map(e),M=v.ids;c(M,E)||(v.ids=E)}return{removeOne:r,removeMany:i,removeAll:a,addOne:Qe(o),updateOne:Qe(f),upsertOne:Qe(y),setOne:Qe(l),setMany:Qe(u),setAll:Qe(d),addMany:Qe(s),updateMany:Qe(m),upsertMany:Qe(g)}}function g6(e){e===void 0&&(e={});var t=ht({sortComparer:!1,selectId:function(s){return s.id}},e),n=t.selectId,r=t.sortComparer,i=f6(),a=p6(),o=r?m6(n,r):cf(n);return ht(ht(ht({selectId:n,sortComparer:r},i),a),o)}var v6="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Iu=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=v6[Math.random()*64|0];return t},y6=["name","message","stack","code"],Cs=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),Nd=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),df=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,r=y6;n<r.length;n++){var i=r[n];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}};function ke(e,t,n){var r=D(e+"/fulfilled",function(l,u,d,f){return{payload:l,meta:ys(ht({},f||{}),{arg:d,requestId:u,requestStatus:"fulfilled"})}}),i=D(e+"/pending",function(l,u,d){return{payload:void 0,meta:ys(ht({},d||{}),{arg:u,requestId:l,requestStatus:"pending"})}}),a=D(e+"/rejected",function(l,u,d,f,m){return{payload:f,error:(n&&n.serializeError||df)(l||"Rejected"),meta:ys(ht({},m||{}),{arg:d,requestId:u,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"})}}),o=typeof AbortController!="undefined"?AbortController:function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l}();function s(l){return function(u,d,f){var m=n!=null&&n.idGenerator?n.idGenerator(l):Iu(),y=new o,g,c=new Promise(function(C,E){return y.signal.addEventListener("abort",function(){return E({name:"AbortError",message:g||"Aborted"})})}),h=!1;function p(C){h&&(g=C,y.abort())}var v=function(){return di(this,null,function(){var C,E,M,_,L,S;return ci(this,function(I){switch(I.label){case 0:return I.trys.push([0,4,,5]),_=(C=n==null?void 0:n.condition)==null?void 0:C.call(n,l,{getState:d,extra:f}),C6(_)?[4,_]:[3,2];case 1:_=I.sent(),I.label=2;case 2:if(_===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return h=!0,u(i(m,l,(E=n==null?void 0:n.getPendingMeta)==null?void 0:E.call(n,{requestId:m,arg:l},{getState:d,extra:f}))),[4,Promise.race([c,Promise.resolve(t(l,{dispatch:u,getState:d,extra:f,requestId:m,signal:y.signal,rejectWithValue:function(b,q){return new Cs(b,q)},fulfillWithValue:function(b,q){return new Nd(b,q)}})).then(function(b){if(b instanceof Cs)throw b;return b instanceof Nd?r(b.payload,m,l,b.meta):r(b,m,l)})])];case 3:return M=I.sent(),[3,5];case 4:return L=I.sent(),M=L instanceof Cs?a(null,m,l,L.payload,L.meta):a(L,m,l),[3,5];case 5:return S=n&&!n.dispatchConditionRejection&&a.match(M)&&M.meta.condition,S||u(M),[2,M]}})})}();return Object.assign(v,{abort:p,requestId:m,arg:l,unwrap:function(){return v.then(ff)}})}}return Object.assign(s,{pending:i,rejected:a,fulfilled:r,typePrefix:e})}function ff(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function C6(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var b6=function(e){return e&&typeof e.match=="function"},pf=function(e,t){return b6(e)?e.match(t):e(t)};function fi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){return e.some(function(r){return pf(r,n)})}}function kl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){return e.every(function(r){return pf(r,n)})}}function po(e,t){if(!e||!e.meta)return!1;var n=typeof e.meta.requestId=="string",r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function pi(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function hf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return po(n,["pending"])}:pi(e)?function(n){var r=e.map(function(a){return a.pending}),i=fi.apply(void 0,r);return i(n)}:hf()(e[0])}function Ta(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return po(n,["rejected"])}:pi(e)?function(n){var r=e.map(function(a){return a.rejected}),i=fi.apply(void 0,r);return i(n)}:Ta()(e[0])}function mf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(r){return r&&r.meta&&r.meta.rejectedWithValue};return e.length===0?function(r){var i=kl(Ta.apply(void 0,e),n);return i(r)}:pi(e)?function(r){var i=kl(Ta.apply(void 0,e),n);return i(r)}:mf()(e[0])}function gf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return po(n,["fulfilled"])}:pi(e)?function(n){var r=e.map(function(a){return a.fulfilled}),i=fi.apply(void 0,r);return i(n)}:gf()(e[0])}function vf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return po(n,["pending","fulfilled","rejected"])}:pi(e)?function(n){for(var r=[],i=0,a=e;i<a.length;i++){var o=a[i];r.push(o.pending,o.rejected,o.fulfilled)}var s=fi.apply(void 0,r);return s(n)}:vf()(e[0])}var Eu=function(e,t){if(typeof e!="function")throw new TypeError(t+" is not a function")},S6=function(){},qu=function(e,t){return t===void 0&&(t=S6),e.catch(t),e},yf=function(e,t){e.addEventListener("abort",t,{once:!0})},ar=function(e,t){var n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},w6="task",Cf="listener",bf="completed",Au="cancelled",$6="task-"+Au,k6="task-"+bf,Sf=Cf+"-"+Au,x6=Cf+"-"+bf,hi=function(){function e(t){this.code=t,this.name="TaskAbortError",this.message=w6+" "+Au+" (reason: "+t+")"}return e}(),or=function(e){if(e.aborted)throw new hi(e.reason)},wf=function(e){return qu(new Promise(function(t,n){var r=function(){return n(new hi(e.reason))};e.aborted?r():yf(e,r)}))},O6=function(e,t){return di(void 0,null,function(){var n,r;return ci(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return i.sent(),[4,e()];case 2:return n=i.sent(),[2,{status:"ok",value:n}];case 3:return r=i.sent(),[2,{status:r instanceof hi?"cancelled":"rejected",error:r}];case 4:return t==null||t(),[7];case 5:return[2]}})})},Fa=function(e){return function(t){return qu(Promise.race([wf(e),t]).then(function(n){return or(e),n}))}},$f=function(e){var t=Fa(e);return function(n){return t(new Promise(function(r){return setTimeout(r,n)}))}},I6=Object.assign,Qd={},mi="listenerMiddleware",E6=function(e){var t=function(n){return yf(e,function(){return ar(n,e.reason)})};return function(n){Eu(n,"taskExecutor");var r=new AbortController;t(r);var i=O6(function(){return di(void 0,null,function(){var a;return ci(this,function(o){switch(o.label){case 0:return or(e),or(r.signal),[4,n({pause:Fa(r.signal),delay:$f(r.signal),signal:r.signal})];case 1:return a=o.sent(),or(r.signal),[2,a]}})})},function(){return ar(r,k6)});return{result:Fa(e)(i),cancel:function(){ar(r,$6)}}}},q6=function(e,t){var n=function(r,i){return di(void 0,null,function(){var a,o,s,l;return ci(this,function(u){switch(u.label){case 0:or(t),a=function(){},o=new Promise(function(d){a=e({predicate:r,effect:function(f,m){m.unsubscribe(),d([f,m.getState(),m.getOriginalState()])}})}),s=[wf(t),o],i!=null&&s.push(new Promise(function(d){return setTimeout(d,i,null)})),u.label=1;case 1:return u.trys.push([1,,3,4]),[4,Promise.race(s)];case 2:return l=u.sent(),or(t),[2,l];case 3:return a(),[7];case 4:return[2]}})})};return function(r,i){return qu(n(r,i))}},kf=function(e){var t=e.type,n=e.actionCreator,r=e.matcher,i=e.predicate,a=e.effect;if(t)i=D(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return Eu(a,"options.listener"),{predicate:i,type:t,effect:a}},A6=function(e){var t=kf(e),n=t.type,r=t.predicate,i=t.effect,a=Iu(),o={id:a,effect:i,type:n,predicate:r,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}};return o},R6=function(e){return function(){e.forEach(xl),e.clear()}},Hd=function(e,t,n){try{e(t,n)}catch(r){setTimeout(function(){throw r},0)}},xf=D(mi+"/add"),Of=D(mi+"/removeAll"),If=D(mi+"/remove"),M6=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,br([mi+"/error"],e))},xl=function(e){e.pending.forEach(function(t){ar(t,Sf)})};function T6(e){var t=this;e===void 0&&(e={});var n=new Map,r=e.extra,i=e.onError,a=i===void 0?M6:i;Eu(a,"onError");var o=function(y){return y.unsubscribe=function(){return n.delete(y.id)},n.set(y.id,y),function(g){y.unsubscribe(),g!=null&&g.cancelActive&&xl(y)}},s=function(y){for(var g=0,c=Array.from(n.values());g<c.length;g++){var h=c[g];if(y(h))return h}},l=function(y){var g=s(function(c){return c.effect===y.effect});return g||(g=A6(y)),o(g)},u=function(y){var g=kf(y),c=g.type,h=g.effect,p=g.predicate,v=s(function(C){var E=typeof c=="string"?C.type===c:C.predicate===p;return E&&C.effect===h});return v&&(v.unsubscribe(),y.cancelActive&&xl(v)),!!v},d=function(y,g,c,h){return di(t,null,function(){var p,v,C;return ci(this,function(E){switch(E.label){case 0:p=new AbortController,v=q6(l,p.signal),E.label=1;case 1:return E.trys.push([1,3,4,5]),y.pending.add(p),[4,Promise.resolve(y.effect(g,I6({},c,{getOriginalState:h,condition:function(M,_){return v(M,_).then(Boolean)},take:v,delay:$f(p.signal),pause:Fa(p.signal),extra:r,signal:p.signal,fork:E6(p.signal),unsubscribe:y.unsubscribe,subscribe:function(){n.set(y.id,y)},cancelActiveListeners:function(){y.pending.forEach(function(M,_,L){M!==p&&(ar(M,Sf),L.delete(M))})}})))];case 2:return E.sent(),[3,5];case 3:return C=E.sent(),C instanceof hi||Hd(a,C,{raisedBy:"effect"}),[3,5];case 4:return ar(p,x6),y.pending.delete(p),[7];case 5:return[2]}})})},f=R6(n),m=function(y){return function(g){return function(c){if(xf.match(c))return l(c.payload);if(Of.match(c)){f();return}if(If.match(c))return u(c.payload);var h=y.getState(),p=function(){if(h===Qd)throw new Error(mi+": getOriginalState can only be called synchronously");return h},v;try{if(v=g(c),n.size>0)for(var C=y.getState(),E=Array.from(n.values()),M=0,_=E;M<_.length;M++){var L=_[M],S=!1;try{S=L.predicate(c,C,h)}catch(I){S=!1,Hd(a,I,{raisedBy:"predicate"})}!S||d(L,c,y,p)}}finally{h=Qd}return v}}};return{middleware:m,startListening:l,stopListening:u,clearListeners:f}}T9();var F6=Ge(lo()),D6=Ge(u9());function j6(e,t){let n=`
|
|
2
|
-
The following properties are invalid:
|
|
3
|
-
|
|
4
|
-
${e.join(`
|
|
5
|
-
`)}
|
|
6
|
-
|
|
7
|
-
${t}
|
|
8
|
-
`;return new Ru(n)}var Ru=class extends Error{constructor(e){super(e),this.name="SchemaValidationError"}},gi=class{constructor(e){this.definition=e}validate(e={},t=""){let n={...this.default,...e},r=[];for(let i in this.definition){let a=this.definition[i].validate(n[i]);a&&r.push(`${i}: ${a}`)}if(r.length)throw j6(r,t);return n}get default(){let e={};for(let t in this.definition){let n=this.definition[t].default;n!==void 0&&(e[t]=n)}return e}},at=class{constructor(e={}){this.baseConfig=e}validate(e){return this.baseConfig.required&&be(e)?"value is required.":null}get default(){return this.baseConfig.default instanceof Function?this.baseConfig.default():this.baseConfig.default}get required(){return this.baseConfig.required===!0}};function ut(e){return e===void 0}function P6(e){return e===null}function be(e){return ut(e)||P6(e)}var me=class{constructor(e={}){this.config=e,this.value=new at(e)}validate(e){return this.value.validate(e)||(U6(e)?e<this.config.min?`minimum value of ${this.config.min} not respected.`:e>this.config.max?`maximum value of ${this.config.max} not respected.`:null:"value is not a number.")}get default(){return this.value.default}get required(){return this.value.required}};function U6(e){return ut(e)||Ef(e)}function Ef(e){return typeof e=="number"&&!isNaN(e)}var Ue=class{constructor(e={}){this.value=new at(e)}validate(e){return this.value.validate(e)||(_6(e)?null:"value is not a boolean.")}get default(){return this.value.default}get required(){return this.value.required}};function _6(e){return ut(e)||qf(e)}function qf(e){return typeof e=="boolean"}var L6=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i,ce=class{constructor(e={}){this.config={emptyAllowed:!0,url:!1,...e},this.value=new at(this.config)}validate(e){let{emptyAllowed:t,url:n,regex:r,constrainTo:i}=this.config;return this.value.validate(e)||(ut(e)?null:Mu(e)?!t&&!e.length?"value is an empty string.":n&&!L6.test(e)?"value is not a valid URL.":r&&!r.test(e)?`value did not match provided regex ${r}`:i&&!i.includes(e)?`value should be one of: ${i.join(", ")}.`:null:"value is not a string.")}get default(){return this.value.default}get required(){return this.value.required}};function Mu(e){return Object.prototype.toString.call(e)==="[object String]"}var ge=class{constructor(e={}){this.config={options:{required:!1},values:{},...e}}validate(e){if(ut(e))return this.config.options.required?"value is required and is currently undefined":null;if(!Af(e))return"value is not an object";for(let[n,r]of Object.entries(this.config.values))if(r.required&&be(e[n]))return`value does not contain ${n}`;let t="";for(let[n,r]of Object.entries(this.config.values)){let i=e[n],a=r.validate(i);a!==null&&(t+=" "+a)}return t===""?null:t}get default(){}get required(){return!!this.config.options.required}};function Af(e){return e!==void 0&&typeof e=="object"}var Ne=class{constructor(e={}){this.config=e,this.value=new at(this.config)}validate(e){if(!be(e)&&!Array.isArray(e))return"value is not an array";let t=this.value.validate(e);if(t!==null)return t;if(be(e))return null;if(this.config.max!==void 0&&e.length>this.config.max)return`value contains more than ${this.config.max}`;if(this.config.min!==void 0&&e.length<this.config.min)return`value contains less than ${this.config.min}`;if(this.config.each!==void 0){let n="";return e.forEach(r=>{this.config.each.required&&be(r)&&(n=`value is null or undefined: ${e.join(",")}`);let i=this.validatePrimitiveValue(r,this.config.each);i!==null&&(n+=" "+i)}),n===""?null:n}return null}validatePrimitiveValue(e,t){return qf(e)||Mu(e)||Ef(e)||Af(e)?t.validate(e):"value is not a primitive value"}get default(){}get required(){return this.value.required}};function Rf(e){return Array.isArray(e)}var Mf=class{constructor(e){this.config=e,this.value=new at(e)}validate(e){let t=this.value.validate(e);return t!==null?t:ut(e)||Object.values(this.config.enum).find(n=>n===e)?null:"value is not in enum."}get default(){return this.value.default}get required(){return this.value.required}};function hn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function P(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(d){try{u(r.next(d))}catch(f){o(f)}}function l(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?a(d.value):i(d.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}var De;(function(e){e.search="search",e.click="click",e.custom="custom",e.view="view",e.collect="collect"})(De||(De={}));function z6(){return typeof window!="undefined"}function Tu(){return typeof navigator!="undefined"}function Tf(){return typeof document!="undefined"}function Ol(){try{return typeof localStorage!="undefined"}catch(e){return!1}}function V6(){try{return typeof sessionStorage!="undefined"}catch(e){return!1}}function Ff(){return Tu()&&navigator.cookieEnabled}function N6(){return typeof crypto!="undefined"}function Q6(){return N6()&&typeof crypto.getRandomValues!="undefined"}var H6=[De.click,De.custom,De.search,De.view],B6=(e,t)=>H6.indexOf(e)!==-1?Object.assign({language:Tf()?document.documentElement.lang:"unknown",userAgent:Tu()?navigator.userAgent:"unknown"},t):t,sr=class{static set(e,t,n){var r,i,a,o,s;n?(a=new Date,a.setTime(a.getTime()+n),o="; expires="+a.toGMTString()):o="",s=window.location.hostname,s.indexOf(".")===-1?document.cookie=e+"="+t+o+"; path=/":(i=s.split("."),i.shift(),r="."+i.join("."),Bd({name:e,value:t,expires:o,domain:r}),(sr.get(e)==null||sr.get(e)!=t)&&(r="."+s,Bd({name:e,value:t,expires:o,domain:r})))}static get(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){var i=n[r];if(i=i.replace(/^\s+/,""),i.indexOf(t)==0)return i.substring(t.length,i.length)}return null}static erase(e){sr.set(e,"",-1)}};function Bd(e){let{name:t,value:n,expires:r,domain:i}=e;document.cookie=`${t}=${n}${r}; path=/; domain=${i}; SameSite=Lax`}function W6(){return Ol()?localStorage:Ff()?new lr:V6()?sessionStorage:new vi}var lr=class{getItem(e){return sr.get(`${lr.prefix}${e}`)}removeItem(e){sr.erase(`${lr.prefix}${e}`)}setItem(e,t){sr.set(`${lr.prefix}${e}`,t)}};lr.prefix="coveo_";var Y6=class{constructor(){this.cookieStorage=new lr}getItem(e){return localStorage.getItem(e)||this.cookieStorage.getItem(e)}removeItem(e){this.cookieStorage.removeItem(e),localStorage.removeItem(e)}setItem(e,t){localStorage.setItem(e,t),this.cookieStorage.setItem(e,t)}},vi=class{getItem(e){return null}removeItem(e){}setItem(e,t){}},Vr="__coveo.analytics.history",Df=20,jf=1e3*60,Pf=75,Da=class{constructor(e){this.store=e||W6()}addElement(e){e.internalTime=new Date().getTime(),e=this.cropQueryElement(this.stripEmptyQuery(e));let t=this.getHistoryWithInternalTime();t!=null?this.isValidEntry(e)&&this.setHistory([e].concat(t)):this.setHistory([e])}addElementAsync(e){return P(this,void 0,void 0,function*(){e.internalTime=new Date().getTime(),e=this.cropQueryElement(this.stripEmptyQuery(e));let t=yield this.getHistoryWithInternalTimeAsync();t!=null?this.isValidEntry(e)&&this.setHistory([e].concat(t)):this.setHistory([e])})}getHistory(){let e=this.getHistoryWithInternalTime();return this.stripEmptyQueries(this.stripInternalTime(e))}getHistoryAsync(){return P(this,void 0,void 0,function*(){let e=yield this.getHistoryWithInternalTimeAsync();return this.stripEmptyQueries(this.stripInternalTime(e))})}getHistoryWithInternalTime(){try{let e=this.store.getItem(Vr);return e&&typeof e=="string"?JSON.parse(e):[]}catch(e){return[]}}getHistoryWithInternalTimeAsync(){return P(this,void 0,void 0,function*(){try{let e=yield this.store.getItem(Vr);return e?JSON.parse(e):[]}catch(e){return[]}})}setHistory(e){try{this.store.setItem(Vr,JSON.stringify(e.slice(0,Df)))}catch(t){}}clear(){try{this.store.removeItem(Vr)}catch(e){}}getMostRecentElement(){let e=this.getHistoryWithInternalTime();return e!=null?e.sort((t,n)=>(n.internalTime||0)-(t.internalTime||0))[0]:null}cropQueryElement(e){return e.name&&e.value&&e.name.toLowerCase()==="query"&&(e.value=e.value.slice(0,Pf)),e}isValidEntry(e){let t=this.getMostRecentElement();return t&&t.value==e.value?(e.internalTime||0)-(t.internalTime||0)>jf:!0}stripInternalTime(e){return e.map(t=>{let{name:n,time:r,value:i}=t;return{name:n,time:r,value:i}})}stripEmptyQuery(e){let{name:t,time:n,value:r}=e;return t&&typeof r=="string"&&t.toLowerCase()==="query"&&r.trim()===""?{name:t,time:n}:e}stripEmptyQueries(e){return e.map(t=>this.stripEmptyQuery(t))}},Uf=Object.freeze({__proto__:null,STORE_KEY:Vr,MAX_NUMBER_OF_HISTORY_ELEMENTS:Df,MIN_THRESHOLD_FOR_DUPLICATE_VALUE:jf,MAX_VALUE_SIZE:Pf,HistoryStore:Da,default:Da}),Z6=(e,t)=>P(void 0,void 0,void 0,function*(){return e===De.view?(yield J6(t.contentIdValue),Object.assign({location:window.location.toString(),referrer:document.referrer,title:document.title},t)):t}),J6=e=>P(void 0,void 0,void 0,function*(){let t=new Da,n={name:"PageView",value:e,time:JSON.stringify(new Date)};yield t.addElementAsync(n)}),fa=e=>e?(Number(e)^G6(new Uint8Array(1))[0]%16>>Number(e)/4).toString(16):("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,fa),G6=e=>{if(Q6())return crypto.getRandomValues(e);for(var t=0,n=0;t<e.length;t++)!(t&3)&&(n=Math.random()*4294967296),e[t]=n>>>((t&3)<<3)&255;return e},Rt=Object.keys,Wd={id:"svc_ticket_id",subject:"svc_ticket_subject",description:"svc_ticket_description",category:"svc_ticket_category",productId:"svc_ticket_product_id",custom:"svc_ticket_custom"},K6=Rt(Wd).map(e=>Wd[e]),X6=[...K6].join("|"),eg=new RegExp(`^(${X6}$)`),tg={svcAction:"svc_action",svcActionData:"svc_action_data"},ng=e=>eg.test(e),rg=[ng],Yd={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",price:"pr",quantity:"qt",coupon:"cc",position:"ps",group:"group"},Zd={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",group:"group"},st={action:"pa",list:"pal",listSource:"pls"},ja={id:"ti",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",affiliation:"ta",step:"cos",option:"col"},ig=["loyaltyCardId","loyaltyTier","thirdPartyPersona","companyName","favoriteStore","storeName","userIndustry","userRole","userDepartment","businessUnit"],Il={id:"quoteId",affiliation:"quoteAffiliation"},El={id:"reviewId",rating:"reviewRating",comment:"reviewComment"},ag={add:st,bookmark_add:st,bookmark_remove:st,click:st,checkout:st,checkout_option:st,detail:st,impression:st,remove:st,refund:Object.assign(Object.assign({},st),ja),purchase:Object.assign(Object.assign({},st),ja),quickview:st,quote:Object.assign(Object.assign({},st),Il),review:Object.assign(Object.assign({},st),El)},og=Rt(Yd).map(e=>Yd[e]),sg=Rt(Zd).map(e=>Zd[e]),lg=Rt(st).map(e=>st[e]),ug=Rt(ja).map(e=>ja[e]),cg=Rt(El).map(e=>El[e]),dg=Rt(Il).map(e=>Il[e]),fg=[...og,"custom"].join("|"),pg=[...sg,"custom"].join("|"),_f="(pr[0-9]+)",Lf="(il[0-9]+pi[0-9]+)",hg=new RegExp(`^${_f}(${fg})$`),mg=new RegExp(`^(${Lf}(${pg}))|(il[0-9]+nm)$`),gg=new RegExp(`^(${lg.join("|")})$`),vg=new RegExp(`^(${ug.join("|")})$`),yg=new RegExp(`^${_f}custom$`),Cg=new RegExp(`^${Lf}custom$`),bg=new RegExp(`^(${[...ig,...cg,...dg].join("|")})$`),Sg=e=>hg.test(e),wg=e=>mg.test(e),$g=e=>gg.test(e),kg=e=>vg.test(e),xg=e=>bg.test(e),Og=[wg,Sg,$g,kg,xg],Ig=[yg,Cg],Eg={anonymizeIp:"aip"},qg={eventCategory:"ec",eventAction:"ea",eventLabel:"el",eventValue:"ev",page:"dp",visitorId:"cid",clientId:"cid",userId:"uid",currencyCode:"cu"},Ag={hitType:"t",pageViewId:"pid",encoding:"de",location:"dl",referrer:"dr",screenColor:"sd",screenResolution:"sr",title:"dt",userAgent:"ua",language:"ul",eventId:"z",time:"tm"},Rg=["contentId","contentIdKey","contentType","searchHub","tab","searchUid","permanentId","contentLocale"],Mg=Object.assign(Object.assign(Object.assign(Object.assign({},Eg),qg),Ag),Rg.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:t}),{})),ql=Object.assign(Object.assign({},Mg),tg),Tg=e=>{let t=!!e.action&&ag[e.action]||{};return Rt(e).reduce((n,r)=>{let i=t[r]||ql[r]||r;return Object.assign(Object.assign({},n),{[i]:e[r]})},{})},Fg=Rt(ql).map(e=>ql[e]),Dg=e=>Fg.indexOf(e)!==-1,jg=e=>e==="custom",Pg=e=>[...Og,...rg,Dg,jg].some(t=>t(e)),Ug=e=>Rt(e).reduce((t,n)=>{let r=_g(n);return r?Object.assign(Object.assign({},t),Lg(r,e[n])):Object.assign(Object.assign({},t),{[n]:e[n]})},{}),_g=e=>{let t;return[...Ig].every(n=>{var r;return t=(r=n.exec(e))===null||r===void 0?void 0:r[1],!t}),t},Lg=(e,t)=>Rt(t).reduce((n,r)=>Object.assign(Object.assign({},n),{[`${e}${r}`]:t[r]}),{}),zg=class{constructor(e){this.opts=e}sendEvent(e,t){return P(this,void 0,void 0,function*(){if(!navigator.sendBeacon)throw new Error('navigator.sendBeacon is not supported in this browser. Consider adding a polyfill like "sendbeacon-polyfill".');let{baseUrl:n,preprocessRequest:r}=this.opts,i=this.encodeForEventType(e,t),a=yield this.getQueryParamsForEventType(e),o={url:`${n}/analytics/${e}?${a}`,body:new Blob([i],{type:"application/x-www-form-urlencoded"})},{url:s,body:l}=Object.assign(Object.assign({},o),r?yield r(o,"analyticsBeacon"):{});console.log(`Sending beacon for "${e}" with: `,JSON.stringify(t)),navigator.sendBeacon(s,l)})}deleteHttpCookieVisitorId(){return Promise.resolve()}encodeForEventType(e,t){return this.isEventTypeLegacy(e)?this.encodeForLegacyType(e,t):this.encodeForFormUrlEncoded(Object.assign({access_token:this.opts.token},t))}getQueryParamsForEventType(e){return P(this,void 0,void 0,function*(){let{token:t,visitorIdProvider:n}=this.opts,r=yield n.getCurrentVisitorId();return[t&&this.isEventTypeLegacy(e)?`access_token=${t}`:"",r?`visitorId=${r}`:"","discardVisitInfo=true"].filter(i=>!!i).join("&")})}isEventTypeLegacy(e){return[De.click,De.custom,De.search,De.view].indexOf(e)!==-1}encodeForLegacyType(e,t){return`${e}Event=${encodeURIComponent(JSON.stringify(t))}`}encodeForFormUrlEncoded(e){return Object.keys(e).filter(t=>!!e[t]).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(this.encodeValue(e[t]))}`).join("&")}encodeValue(e){return typeof e=="number"||typeof e=="string"||typeof e=="boolean"?e:JSON.stringify(e)}},Vg=class{sendEvent(e,t){return P(this,void 0,void 0,function*(){return Promise.resolve()})}deleteHttpCookieVisitorId(){return P(this,void 0,void 0,function*(){return Promise.resolve()})}},Jd=window.fetch,zf=class{constructor(e){this.opts=e}sendEvent(e,t){return P(this,void 0,void 0,function*(){let{baseUrl:n,visitorIdProvider:r,preprocessRequest:i}=this.opts,a=this.shouldAppendVisitorId(e)?yield this.getVisitorIdParam():"",o={url:`${n}/analytics/${e}${a}`,credentials:"include",mode:"cors",headers:this.getHeaders(),method:"POST",body:JSON.stringify(t)},s=Object.assign(Object.assign({},o),i?yield i(o,"analyticsFetch"):{}),{url:l}=s,u=hn(s,["url"]),d=yield Jd(l,u);if(d.ok){let f=yield d.json();return f.visitorId&&r.setCurrentVisitorId(f.visitorId),f}else{try{d.json()}catch(f){}throw console.error(`An error has occured when sending the "${e}" event.`,d,t),new Error(`An error has occurred when sending the "${e}" event. Check the console logs for more details.`)}})}deleteHttpCookieVisitorId(){return P(this,void 0,void 0,function*(){let{baseUrl:e}=this.opts,t=`${e}/analytics/visit`;yield Jd(t,{headers:this.getHeaders(),method:"DELETE"})})}shouldAppendVisitorId(e){return[De.click,De.custom,De.search,De.view].indexOf(e)!==-1}getVisitorIdParam(){return P(this,void 0,void 0,function*(){let{visitorIdProvider:e}=this.opts,t=yield e.getCurrentVisitorId();return t?`?visitor=${t}`:""})}getHeaders(){let{token:e}=this.opts;return Object.assign(Object.assign({},e?{Authorization:`Bearer ${e}`}:{}),{"Content-Type":"application/json"})}},Ng=class{constructor(e,t){Ol()&&Ff()?this.storage=new Y6:Ol()?this.storage=localStorage:(console.warn("BrowserRuntime detected no valid storage available.",this),this.storage=new vi),this.client=new zf(e),this.beaconClient=new zg(e),window.addEventListener("beforeunload",()=>{let n=t();for(let{eventType:r,payload:i}of n)this.beaconClient.sendEvent(r,i)})}},Qg=class{constructor(e,t){this.storage=t||new vi,this.client=new zf(e)}},Hg=class{constructor(){this.storage=new vi,this.client=new Vg}},Bg="xx",Wg=e=>(e==null?void 0:e.startsWith(Bg))||!1,Yg=`
|
|
9
|
-
We've detected you're using React Native but have not provided the corresponding runtime,
|
|
10
|
-
for an optimal experience please use the "coveo.analytics/react-native" subpackage.
|
|
11
|
-
Follow the Readme on how to set it up: https://github.com/coveo/coveo.analytics.js#using-react-native
|
|
12
|
-
`;function Zg(){return typeof navigator!="undefined"&&navigator.product=="ReactNative"}var Jg=["1",1,"yes",!0];function Vf(){return Tu()&&[navigator.globalPrivacyControl,navigator.doNotTrack,navigator.msDoNotTrack,window.doNotTrack].some(e=>Jg.indexOf(e)!==-1)}var Nf="v15",Qf={default:"https://analytics.cloud.coveo.com/rest/ua",production:"https://analytics.cloud.coveo.com/rest/ua",hipaa:"https://analyticshipaa.cloud.coveo.com/rest/ua"};function Gg(e=Qf.default,t=Nf){let n=e.indexOf(".cloud.coveo.com")!==-1;return`${e}${n?"":"/rest"}/${t}`}var Xn=class{constructor(e){if(!e)throw new Error("You have to pass options to this constructor");this.options=Object.assign(Object.assign({},this.defaultOptions),e),this.visitorId="",this.bufferedRequests=[],this.beforeSendHooks=[Z6,B6].concat(this.options.beforeSendHooks),this.afterSendHooks=this.options.afterSendHooks,this.eventTypeMapping={};let t={baseUrl:this.baseUrl,token:this.options.token,visitorIdProvider:this,preprocessRequest:this.options.preprocessRequest};this.runtime=this.options.runtimeEnvironment||this.initRuntime(t),Vf()&&(this.clear(),this.runtime.storage=new vi)}get defaultOptions(){return{endpoint:Qf.default,token:"",version:Nf,beforeSendHooks:[],afterSendHooks:[]}}initRuntime(e){return z6()&&Tf()?new Ng(e,()=>{let t=[...this.bufferedRequests];return this.bufferedRequests=[],t}):(Zg()&&console.warn(Yg),new Qg(e))}get storage(){return this.runtime.storage}determineVisitorId(){return P(this,void 0,void 0,function*(){try{return(yield this.storage.getItem("visitorId"))||fa()}catch(e){return console.log("Could not get visitor ID from the current runtime environment storage. Using a random ID instead.",e),fa()}})}getCurrentVisitorId(){return P(this,void 0,void 0,function*(){if(!this.visitorId){let e=yield this.determineVisitorId();yield this.setCurrentVisitorId(e)}return this.visitorId})}setCurrentVisitorId(e){return P(this,void 0,void 0,function*(){this.visitorId=e,yield this.storage.setItem("visitorId",e)})}getParameters(e,...t){return P(this,void 0,void 0,function*(){return yield this.resolveParameters(e,...t)})}getPayload(e,...t){return P(this,void 0,void 0,function*(){let n=yield this.resolveParameters(e,...t);return yield this.resolvePayloadForParameters(e,n)})}get currentVisitorId(){return typeof(this.visitorId||this.storage.getItem("visitorId"))!="string"&&this.setCurrentVisitorId(fa()),this.visitorId}set currentVisitorId(e){this.visitorId=e,this.storage.setItem("visitorId",e)}resolveParameters(e,...t){return P(this,void 0,void 0,function*(){let{variableLengthArgumentsNames:n=[],addVisitorIdParameter:r=!1,usesMeasurementProtocol:i=!1,addClientIdParameter:a=!1}=this.eventTypeMapping[e]||{};return yield[o=>n.length>0?this.parseVariableArgumentsPayload(n,o):o[0],o=>P(this,void 0,void 0,function*(){return Object.assign(Object.assign({},o),{visitorId:r?yield this.getCurrentVisitorId():""})}),o=>P(this,void 0,void 0,function*(){return a?Object.assign(Object.assign({},o),{clientId:yield this.getCurrentVisitorId()}):o}),o=>i?this.ensureAnonymousUserWhenUsingApiKey(o):o,o=>this.beforeSendHooks.reduce((s,l)=>P(this,void 0,void 0,function*(){let u=yield s;return yield l(e,u)}),o)].reduce((o,s)=>P(this,void 0,void 0,function*(){let l=yield o;return yield s(l)}),Promise.resolve(t))})}resolvePayloadForParameters(e,t){return P(this,void 0,void 0,function*(){let{usesMeasurementProtocol:n=!1}=this.eventTypeMapping[e]||{};return yield[r=>this.removeEmptyPayloadValues(r,e),r=>this.validateParams(r),r=>n?Tg(r):r,r=>n?this.removeUnknownParameters(r):r,r=>n?this.processCustomParameters(r):r].reduce((r,i)=>P(this,void 0,void 0,function*(){let a=yield r;return yield i(a)}),Promise.resolve(t))})}makeEvent(e,...t){return P(this,void 0,void 0,function*(){let{newEventType:n=e}=this.eventTypeMapping[e]||{},r=yield this.resolveParameters(e,...t),i=yield this.resolvePayloadForParameters(e,r);return{eventType:n,payload:i,log:a=>P(this,void 0,void 0,function*(){return this.bufferedRequests.push({eventType:n,payload:Object.assign(Object.assign({},i),a)}),yield Promise.all(this.afterSendHooks.map(o=>o(e,Object.assign(Object.assign({},r),a)))),yield this.deferExecution(),yield this.sendFromBufferWithFetch()})}})}sendEvent(e,...t){return P(this,void 0,void 0,function*(){return(yield this.makeEvent(e,...t)).log({})})}deferExecution(){return new Promise(e=>setTimeout(e,0))}sendFromBufferWithFetch(){return P(this,void 0,void 0,function*(){let e=this.bufferedRequests.shift();if(e){let{eventType:t,payload:n}=e;return this.runtime.client.sendEvent(t,n)}})}clear(){this.storage.removeItem("visitorId"),new Da().clear()}deleteHttpOnlyVisitorId(){this.runtime.client.deleteHttpCookieVisitorId()}makeSearchEvent(e){return P(this,void 0,void 0,function*(){return this.makeEvent(De.search,e)})}sendSearchEvent(e){var{searchQueryUid:t}=e,n=hn(e,["searchQueryUid"]);return P(this,void 0,void 0,function*(){return(yield this.makeSearchEvent(n)).log({searchQueryUid:t})})}makeClickEvent(e){return P(this,void 0,void 0,function*(){return this.makeEvent(De.click,e)})}sendClickEvent(e){var{searchQueryUid:t}=e,n=hn(e,["searchQueryUid"]);return P(this,void 0,void 0,function*(){return(yield this.makeClickEvent(n)).log({searchQueryUid:t})})}makeCustomEvent(e){return P(this,void 0,void 0,function*(){return this.makeEvent(De.custom,e)})}sendCustomEvent(e){var{lastSearchQueryUid:t}=e,n=hn(e,["lastSearchQueryUid"]);return P(this,void 0,void 0,function*(){return(yield this.makeCustomEvent(n)).log({lastSearchQueryUid:t})})}makeViewEvent(e){return P(this,void 0,void 0,function*(){return this.makeEvent(De.view,e)})}sendViewEvent(e){return P(this,void 0,void 0,function*(){return(yield this.makeViewEvent(e)).log({})})}getVisit(){return P(this,void 0,void 0,function*(){let e=yield(yield fetch(`${this.baseUrl}/analytics/visit`)).json();return this.visitorId=e.visitorId,e})}getHealth(){return P(this,void 0,void 0,function*(){return yield(yield fetch(`${this.baseUrl}/analytics/monitoring/health`)).json()})}registerBeforeSendEventHook(e){this.beforeSendHooks.push(e)}registerAfterSendEventHook(e){this.afterSendHooks.push(e)}addEventTypeMapping(e,t){this.eventTypeMapping[e]=t}parseVariableArgumentsPayload(e,t){let n={};for(let r=0,i=t.length;r<i;r++){let a=t[r];if(typeof a=="string")n[e[r]]=a;else if(typeof a=="object")return Object.assign(Object.assign({},n),a)}return n}isKeyAllowedEmpty(e,t){return({[De.search]:["queryText"]}[e]||[]).indexOf(t)!==-1}removeEmptyPayloadValues(e,t){let n=r=>typeof r!="undefined"&&r!==null&&r!=="";return Object.keys(e).filter(r=>this.isKeyAllowedEmpty(t,r)||n(e[r])).reduce((r,i)=>Object.assign(Object.assign({},r),{[i]:e[i]}),{})}removeUnknownParameters(e){return Object.keys(e).filter(t=>{if(Pg(t))return!0;console.log(t,"is not processed by coveoua")}).reduce((t,n)=>Object.assign(Object.assign({},t),{[n]:e[n]}),{})}processCustomParameters(e){let{custom:t}=e,n=hn(e,["custom"]),r=this.lowercaseKeys(t),i=Ug(n);return Object.assign(Object.assign({},r),i)}lowercaseKeys(e){return Object.keys(e||{}).reduce((t,n)=>Object.assign(Object.assign({},t),{[n.toLowerCase()]:e[n]}),{})}validateParams(e){let{anonymizeIp:t}=e,n=hn(e,["anonymizeIp"]);return t!==void 0&&["0","false","undefined","null","{}","[]",""].indexOf(`${t}`.toLowerCase())==-1&&(n.anonymizeIp=1),n}ensureAnonymousUserWhenUsingApiKey(e){let{userId:t}=e,n=hn(e,["userId"]);return Wg(this.options.token)&&!t?(n.userId="anonymous",n):e}get baseUrl(){return Gg(this.options.endpoint,this.options.version)}},Al;(function(e){e.contextChanged="contextChanged",e.expandToFullUI="expandToFullUI"})(Al||(Al={}));var V;(function(e){e.interfaceLoad="interfaceLoad",e.interfaceChange="interfaceChange",e.didyoumeanAutomatic="didyoumeanAutomatic",e.didyoumeanClick="didyoumeanClick",e.resultsSort="resultsSort",e.searchboxSubmit="searchboxSubmit",e.searchboxClear="searchboxClear",e.searchboxAsYouType="searchboxAsYouType",e.breadcrumbFacet="breadcrumbFacet",e.breadcrumbResetAll="breadcrumbResetAll",e.documentQuickview="documentQuickview",e.documentOpen="documentOpen",e.omniboxAnalytics="omniboxAnalytics",e.omniboxFromLink="omniboxFromLink",e.searchFromLink="searchFromLink",e.triggerNotify="notify",e.triggerExecute="execute",e.triggerQuery="query",e.undoTriggerQuery="undoQuery",e.triggerRedirect="redirect",e.pagerResize="pagerResize",e.pagerNumber="pagerNumber",e.pagerNext="pagerNext",e.pagerPrevious="pagerPrevious",e.pagerScrolling="pagerScrolling",e.staticFilterClearAll="staticFilterClearAll",e.staticFilterSelect="staticFilterSelect",e.staticFilterDeselect="staticFilterDeselect",e.facetClearAll="facetClearAll",e.facetSearch="facetSearch",e.facetSelect="facetSelect",e.facetSelectAll="facetSelectAll",e.facetDeselect="facetDeselect",e.facetExclude="facetExclude",e.facetUnexclude="facetUnexclude",e.facetUpdateSort="facetUpdateSort",e.facetShowMore="showMoreFacetResults",e.facetShowLess="showLessFacetResults",e.queryError="query",e.queryErrorBack="errorBack",e.queryErrorClear="errorClearQuery",e.queryErrorRetry="errorRetry",e.recommendation="recommendation",e.recommendationInterfaceLoad="recommendationInterfaceLoad",e.recommendationOpen="recommendationOpen",e.likeSmartSnippet="likeSmartSnippet",e.dislikeSmartSnippet="dislikeSmartSnippet",e.expandSmartSnippet="expandSmartSnippet",e.collapseSmartSnippet="collapseSmartSnippet",e.openSmartSnippetFeedbackModal="openSmartSnippetFeedbackModal",e.closeSmartSnippetFeedbackModal="closeSmartSnippetFeedbackModal",e.sendSmartSnippetReason="sendSmartSnippetReason",e.expandSmartSnippetSuggestion="expandSmartSnippetSuggestion",e.collapseSmartSnippetSuggestion="collapseSmartSnippetSuggestion",e.showMoreSmartSnippetSuggestion="showMoreSmartSnippetSuggestion",e.showLessSmartSnippetSuggestion="showLessSmartSnippetSuggestion",e.openSmartSnippetSource="openSmartSnippetSource",e.openSmartSnippetSuggestionSource="openSmartSnippetSuggestionSource",e.openSmartSnippetInlineLink="openSmartSnippetInlineLink",e.openSmartSnippetSuggestionInlineLink="openSmartSnippetSuggestionInlineLink",e.recentQueryClick="recentQueriesClick",e.clearRecentQueries="clearRecentQueries",e.recentResultClick="recentResultClick",e.clearRecentResults="clearRecentResults",e.noResultsBack="noResultsBack",e.showMoreFoldedResults="showMoreFoldedResults",e.showLessFoldedResults="showLessFoldedResults",e.copyToClipboard="copyToClipboard",e.caseAttach="caseAttach",e.caseDetach="caseDetach"})(V||(V={}));var Gd={[V.triggerNotify]:"queryPipelineTriggers",[V.triggerExecute]:"queryPipelineTriggers",[V.triggerQuery]:"queryPipelineTriggers",[V.triggerRedirect]:"queryPipelineTriggers",[V.queryError]:"errors",[V.queryErrorBack]:"errors",[V.queryErrorClear]:"errors",[V.queryErrorRetry]:"errors",[V.pagerNext]:"getMoreResults",[V.pagerPrevious]:"getMoreResults",[V.pagerNumber]:"getMoreResults",[V.pagerResize]:"getMoreResults",[V.pagerScrolling]:"getMoreResults",[V.facetSearch]:"facet",[V.facetShowLess]:"facet",[V.facetShowMore]:"facet",[V.recommendation]:"recommendation",[V.likeSmartSnippet]:"smartSnippet",[V.dislikeSmartSnippet]:"smartSnippet",[V.expandSmartSnippet]:"smartSnippet",[V.collapseSmartSnippet]:"smartSnippet",[V.openSmartSnippetFeedbackModal]:"smartSnippet",[V.closeSmartSnippetFeedbackModal]:"smartSnippet",[V.sendSmartSnippetReason]:"smartSnippet",[V.expandSmartSnippetSuggestion]:"smartSnippetSuggestions",[V.collapseSmartSnippetSuggestion]:"smartSnippetSuggestions",[V.showMoreSmartSnippetSuggestion]:"smartSnippetSuggestions",[V.showLessSmartSnippetSuggestion]:"smartSnippetSuggestions",[V.clearRecentQueries]:"recentQueries",[V.recentResultClick]:"recentlyClickedDocuments",[V.clearRecentResults]:"recentlyClickedDocuments",[V.showLessFoldedResults]:"folding",[Al.expandToFullUI]:"interface",[V.caseDetach]:"case"},Kd=class{constructor(){this.runtime=new Hg,this.currentVisitorId=""}getPayload(){return Promise.resolve()}getParameters(){return Promise.resolve()}makeEvent(e){return Promise.resolve({eventType:e,payload:null,log:()=>Promise.resolve()})}sendEvent(){return Promise.resolve()}makeSearchEvent(){return this.makeEvent(De.search)}sendSearchEvent(){return Promise.resolve()}makeClickEvent(){return this.makeEvent(De.click)}sendClickEvent(){return Promise.resolve()}makeCustomEvent(){return this.makeEvent(De.custom)}sendCustomEvent(){return Promise.resolve()}makeViewEvent(){return this.makeEvent(De.view)}sendViewEvent(){return Promise.resolve()}getVisit(){return Promise.resolve({id:"",visitorId:""})}getHealth(){return Promise.resolve({status:""})}registerBeforeSendEventHook(){}registerAfterSendEventHook(){}addEventTypeMapping(){}};function Kg(e){let t="";return e.filter(n=>{let r=n!==t;return t=n,r})}function Xg(e){return e.map(t=>t.replace(/;/g,""))}function Hf(e){let t=256,n=e.join(";");return n.length<=t?n:Hf(e.slice(1))}var Xd=e=>{let t=Xg(e),n=Kg(t);return Hf(n)};function e1(e){let t=typeof e.partialQueries=="string"?e.partialQueries:Xd(e.partialQueries),n=typeof e.suggestions=="string"?e.suggestions:Xd(e.suggestions);return Object.assign(Object.assign({},e),{partialQueries:t,suggestions:n})}var ev=class{constructor(e,t){this.opts=e,this.provider=t;let n=e.enableAnalytics===!1||Vf();this.coveoAnalyticsClient=n?new Kd:new Xn(e)}disable(){this.coveoAnalyticsClient instanceof Xn&&this.coveoAnalyticsClient.clear(),this.coveoAnalyticsClient=new Kd}enable(){this.coveoAnalyticsClient=new Xn(this.opts)}makeInterfaceLoad(){return this.makeSearchEvent(V.interfaceLoad)}logInterfaceLoad(){return P(this,void 0,void 0,function*(){return(yield this.makeInterfaceLoad()).log({searchUID:this.provider.getSearchUID()})})}makeRecommendationInterfaceLoad(){return this.makeSearchEvent(V.recommendationInterfaceLoad)}logRecommendationInterfaceLoad(){return P(this,void 0,void 0,function*(){return(yield this.makeRecommendationInterfaceLoad()).log({searchUID:this.provider.getSearchUID()})})}makeRecommendation(){return this.makeCustomEvent(V.recommendation)}logRecommendation(){return P(this,void 0,void 0,function*(){return(yield this.makeRecommendation()).log({searchUID:this.provider.getSearchUID()})})}makeRecommendationOpen(e,t){return this.makeClickEvent(V.recommendationOpen,e,t)}logRecommendationOpen(e,t){return P(this,void 0,void 0,function*(){return(yield this.makeRecommendationOpen(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeStaticFilterClearAll(e){return this.makeSearchEvent(V.staticFilterClearAll,e)}logStaticFilterClearAll(e){return P(this,void 0,void 0,function*(){return(yield this.makeStaticFilterClearAll(e)).log({searchUID:this.provider.getSearchUID()})})}makeStaticFilterSelect(e){return this.makeSearchEvent(V.staticFilterSelect,e)}logStaticFilterSelect(e){return P(this,void 0,void 0,function*(){return(yield this.makeStaticFilterSelect(e)).log({searchUID:this.provider.getSearchUID()})})}makeStaticFilterDeselect(e){return this.makeSearchEvent(V.staticFilterDeselect,e)}logStaticFilterDeselect(e){return P(this,void 0,void 0,function*(){return(yield this.makeStaticFilterDeselect(e)).log({searchUID:this.provider.getSearchUID()})})}makeFetchMoreResults(){return this.makeCustomEvent(V.pagerScrolling,{type:"getMoreResults"})}logFetchMoreResults(){return P(this,void 0,void 0,function*(){return(yield this.makeFetchMoreResults()).log({searchUID:this.provider.getSearchUID()})})}makeInterfaceChange(e){return this.makeSearchEvent(V.interfaceChange,e)}logInterfaceChange(e){return P(this,void 0,void 0,function*(){return(yield this.makeInterfaceChange(e)).log({searchUID:this.provider.getSearchUID()})})}makeDidYouMeanAutomatic(){return this.makeSearchEvent(V.didyoumeanAutomatic)}logDidYouMeanAutomatic(){return P(this,void 0,void 0,function*(){return(yield this.makeDidYouMeanAutomatic()).log({searchUID:this.provider.getSearchUID()})})}makeDidYouMeanClick(){return this.makeSearchEvent(V.didyoumeanClick)}logDidYouMeanClick(){return P(this,void 0,void 0,function*(){return(yield this.makeDidYouMeanClick()).log({searchUID:this.provider.getSearchUID()})})}makeResultsSort(e){return this.makeSearchEvent(V.resultsSort,e)}logResultsSort(e){return P(this,void 0,void 0,function*(){return(yield this.makeResultsSort(e)).log({searchUID:this.provider.getSearchUID()})})}makeSearchboxSubmit(){return this.makeSearchEvent(V.searchboxSubmit)}logSearchboxSubmit(){return P(this,void 0,void 0,function*(){return(yield this.makeSearchboxSubmit()).log({searchUID:this.provider.getSearchUID()})})}makeSearchboxClear(){return this.makeSearchEvent(V.searchboxClear)}logSearchboxClear(){return P(this,void 0,void 0,function*(){return(yield this.makeSearchboxClear()).log({searchUID:this.provider.getSearchUID()})})}makeSearchboxAsYouType(){return this.makeSearchEvent(V.searchboxAsYouType)}logSearchboxAsYouType(){return P(this,void 0,void 0,function*(){return(yield this.makeSearchboxAsYouType()).log({searchUID:this.provider.getSearchUID()})})}makeBreadcrumbFacet(e){return this.makeSearchEvent(V.breadcrumbFacet,e)}logBreadcrumbFacet(e){return P(this,void 0,void 0,function*(){return(yield this.makeBreadcrumbFacet(e)).log({searchUID:this.provider.getSearchUID()})})}makeBreadcrumbResetAll(){return this.makeSearchEvent(V.breadcrumbResetAll)}logBreadcrumbResetAll(){return P(this,void 0,void 0,function*(){return(yield this.makeBreadcrumbResetAll()).log({searchUID:this.provider.getSearchUID()})})}makeDocumentQuickview(e,t){return this.makeClickEvent(V.documentQuickview,e,t)}logDocumentQuickview(e,t){return P(this,void 0,void 0,function*(){return(yield this.makeDocumentQuickview(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeDocumentOpen(e,t){return this.makeClickEvent(V.documentOpen,e,t)}logDocumentOpen(e,t){return P(this,void 0,void 0,function*(){return(yield this.makeDocumentOpen(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeOmniboxAnalytics(e){return this.makeSearchEvent(V.omniboxAnalytics,e1(e))}logOmniboxAnalytics(e){return P(this,void 0,void 0,function*(){return(yield this.makeOmniboxAnalytics(e)).log({searchUID:this.provider.getSearchUID()})})}makeOmniboxFromLink(e){return this.makeSearchEvent(V.omniboxFromLink,e1(e))}logOmniboxFromLink(e){return P(this,void 0,void 0,function*(){return(yield this.makeOmniboxFromLink(e)).log({searchUID:this.provider.getSearchUID()})})}makeSearchFromLink(){return this.makeSearchEvent(V.searchFromLink)}logSearchFromLink(){return P(this,void 0,void 0,function*(){return(yield this.makeSearchFromLink()).log({searchUID:this.provider.getSearchUID()})})}makeTriggerNotify(e){return this.makeCustomEvent(V.triggerNotify,e)}logTriggerNotify(e){return P(this,void 0,void 0,function*(){return(yield this.makeTriggerNotify(e)).log({searchUID:this.provider.getSearchUID()})})}makeTriggerExecute(e){return this.makeCustomEvent(V.triggerExecute,e)}logTriggerExecute(e){return P(this,void 0,void 0,function*(){return(yield this.makeTriggerExecute(e)).log({searchUID:this.provider.getSearchUID()})})}makeTriggerQuery(){return this.makeCustomEvent(V.triggerQuery,{query:this.provider.getSearchEventRequestPayload().queryText},"queryPipelineTriggers")}logTriggerQuery(){return P(this,void 0,void 0,function*(){return(yield this.makeTriggerQuery()).log({searchUID:this.provider.getSearchUID()})})}makeUndoTriggerQuery(e){return this.makeSearchEvent(V.undoTriggerQuery,e)}logUndoTriggerQuery(e){return P(this,void 0,void 0,function*(){return(yield this.makeUndoTriggerQuery(e)).log({searchUID:this.provider.getSearchUID()})})}makeTriggerRedirect(e){return this.makeCustomEvent(V.triggerRedirect,Object.assign(Object.assign({},e),{query:this.provider.getSearchEventRequestPayload().queryText}))}logTriggerRedirect(e){return P(this,void 0,void 0,function*(){return(yield this.makeTriggerRedirect(e)).log({searchUID:this.provider.getSearchUID()})})}makePagerResize(e){return this.makeCustomEvent(V.pagerResize,e)}logPagerResize(e){return P(this,void 0,void 0,function*(){return(yield this.makePagerResize(e)).log({searchUID:this.provider.getSearchUID()})})}makePagerNumber(e){return this.makeCustomEvent(V.pagerNumber,e)}logPagerNumber(e){return P(this,void 0,void 0,function*(){return(yield this.makePagerNumber(e)).log({searchUID:this.provider.getSearchUID()})})}makePagerNext(e){return this.makeCustomEvent(V.pagerNext,e)}logPagerNext(e){return P(this,void 0,void 0,function*(){return(yield this.makePagerNext(e)).log({searchUID:this.provider.getSearchUID()})})}makePagerPrevious(e){return this.makeCustomEvent(V.pagerPrevious,e)}logPagerPrevious(e){return P(this,void 0,void 0,function*(){return(yield this.makePagerPrevious(e)).log({searchUID:this.provider.getSearchUID()})})}makePagerScrolling(){return this.makeCustomEvent(V.pagerScrolling)}logPagerScrolling(){return P(this,void 0,void 0,function*(){return(yield this.makePagerScrolling()).log({searchUID:this.provider.getSearchUID()})})}makeFacetClearAll(e){return this.makeSearchEvent(V.facetClearAll,e)}logFacetClearAll(e){return P(this,void 0,void 0,function*(){return(yield this.makeFacetClearAll(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetSearch(e){return this.makeSearchEvent(V.facetSearch,e)}logFacetSearch(e){return P(this,void 0,void 0,function*(){return(yield this.makeFacetSearch(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetSelect(e){return this.makeSearchEvent(V.facetSelect,e)}logFacetSelect(e){return P(this,void 0,void 0,function*(){return(yield this.makeFacetSelect(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetDeselect(e){return this.makeSearchEvent(V.facetDeselect,e)}logFacetDeselect(e){return P(this,void 0,void 0,function*(){return(yield this.makeFacetDeselect(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetExclude(e){return this.makeSearchEvent(V.facetExclude,e)}logFacetExclude(e){return P(this,void 0,void 0,function*(){return(yield this.makeFacetExclude(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetUnexclude(e){return this.makeSearchEvent(V.facetUnexclude,e)}logFacetUnexclude(e){return P(this,void 0,void 0,function*(){return(yield this.makeFacetUnexclude(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetSelectAll(e){return this.makeSearchEvent(V.facetSelectAll,e)}logFacetSelectAll(e){return P(this,void 0,void 0,function*(){return(yield this.makeFacetSelectAll(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetUpdateSort(e){return this.makeSearchEvent(V.facetUpdateSort,e)}logFacetUpdateSort(e){return P(this,void 0,void 0,function*(){return(yield this.makeFacetUpdateSort(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetShowMore(e){return this.makeCustomEvent(V.facetShowMore,e)}logFacetShowMore(e){return P(this,void 0,void 0,function*(){return(yield this.makeFacetShowMore(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetShowLess(e){return this.makeCustomEvent(V.facetShowLess,e)}logFacetShowLess(e){return P(this,void 0,void 0,function*(){return(yield this.makeFacetShowLess(e)).log({searchUID:this.provider.getSearchUID()})})}makeQueryError(e){return this.makeCustomEvent(V.queryError,e)}logQueryError(e){return P(this,void 0,void 0,function*(){return(yield this.makeQueryError(e)).log({searchUID:this.provider.getSearchUID()})})}makeQueryErrorBack(){return P(this,void 0,void 0,function*(){let e=yield this.makeCustomEvent(V.queryErrorBack);return{description:e.description,log:()=>P(this,void 0,void 0,function*(){return yield e.log({searchUID:this.provider.getSearchUID()}),this.logSearchEvent(V.queryErrorBack)})}})}logQueryErrorBack(){return P(this,void 0,void 0,function*(){return(yield this.makeQueryErrorBack()).log({searchUID:this.provider.getSearchUID()})})}makeQueryErrorRetry(){return P(this,void 0,void 0,function*(){let e=yield this.makeCustomEvent(V.queryErrorRetry);return{description:e.description,log:()=>P(this,void 0,void 0,function*(){return yield e.log({searchUID:this.provider.getSearchUID()}),this.logSearchEvent(V.queryErrorRetry)})}})}logQueryErrorRetry(){return P(this,void 0,void 0,function*(){return(yield this.makeQueryErrorRetry()).log({searchUID:this.provider.getSearchUID()})})}makeQueryErrorClear(){return P(this,void 0,void 0,function*(){let e=yield this.makeCustomEvent(V.queryErrorClear);return{description:e.description,log:()=>P(this,void 0,void 0,function*(){return yield e.log({searchUID:this.provider.getSearchUID()}),this.logSearchEvent(V.queryErrorClear)})}})}logQueryErrorClear(){return P(this,void 0,void 0,function*(){return(yield this.makeQueryErrorClear()).log({searchUID:this.provider.getSearchUID()})})}makeLikeSmartSnippet(){return this.makeCustomEvent(V.likeSmartSnippet)}logLikeSmartSnippet(){return P(this,void 0,void 0,function*(){return(yield this.makeLikeSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeDislikeSmartSnippet(){return this.makeCustomEvent(V.dislikeSmartSnippet)}logDislikeSmartSnippet(){return P(this,void 0,void 0,function*(){return(yield this.makeDislikeSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeExpandSmartSnippet(){return this.makeCustomEvent(V.expandSmartSnippet)}logExpandSmartSnippet(){return P(this,void 0,void 0,function*(){return(yield this.makeExpandSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeCollapseSmartSnippet(){return this.makeCustomEvent(V.collapseSmartSnippet)}logCollapseSmartSnippet(){return P(this,void 0,void 0,function*(){return(yield this.makeCollapseSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetFeedbackModal(){return this.makeCustomEvent(V.openSmartSnippetFeedbackModal)}logOpenSmartSnippetFeedbackModal(){return P(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetFeedbackModal()).log({searchUID:this.provider.getSearchUID()})})}makeCloseSmartSnippetFeedbackModal(){return this.makeCustomEvent(V.closeSmartSnippetFeedbackModal)}logCloseSmartSnippetFeedbackModal(){return P(this,void 0,void 0,function*(){return(yield this.makeCloseSmartSnippetFeedbackModal()).log({searchUID:this.provider.getSearchUID()})})}makeSmartSnippetFeedbackReason(e,t){return this.makeCustomEvent(V.sendSmartSnippetReason,{reason:e,details:t})}logSmartSnippetFeedbackReason(e,t){return P(this,void 0,void 0,function*(){return(yield this.makeSmartSnippetFeedbackReason(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeExpandSmartSnippetSuggestion(e){return this.makeCustomEvent(V.expandSmartSnippetSuggestion,"documentId"in e?e:{documentId:e})}logExpandSmartSnippetSuggestion(e){return P(this,void 0,void 0,function*(){return(yield this.makeExpandSmartSnippetSuggestion(e)).log({searchUID:this.provider.getSearchUID()})})}makeCollapseSmartSnippetSuggestion(e){return this.makeCustomEvent(V.collapseSmartSnippetSuggestion,"documentId"in e?e:{documentId:e})}logCollapseSmartSnippetSuggestion(e){return P(this,void 0,void 0,function*(){return(yield this.makeCollapseSmartSnippetSuggestion(e)).log({searchUID:this.provider.getSearchUID()})})}makeShowMoreSmartSnippetSuggestion(e){return this.makeCustomEvent(V.showMoreSmartSnippetSuggestion,e)}logShowMoreSmartSnippetSuggestion(e){return P(this,void 0,void 0,function*(){return(yield this.makeShowMoreSmartSnippetSuggestion(e)).log({searchUID:this.provider.getSearchUID()})})}makeShowLessSmartSnippetSuggestion(e){return this.makeCustomEvent(V.showLessSmartSnippetSuggestion,e)}logShowLessSmartSnippetSuggestion(e){return P(this,void 0,void 0,function*(){return(yield this.makeShowLessSmartSnippetSuggestion(e)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetSource(e,t){return this.makeClickEvent(V.openSmartSnippetSource,e,t)}logOpenSmartSnippetSource(e,t){return P(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetSource(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetSuggestionSource(e,t){return this.makeClickEvent(V.openSmartSnippetSuggestionSource,e,{contentIDKey:t.documentId.contentIdKey,contentIDValue:t.documentId.contentIdValue},t)}makeCopyToClipboard(e,t){return this.makeClickEvent(V.copyToClipboard,e,t)}logCopyToClipboard(e,t){return P(this,void 0,void 0,function*(){return(yield this.makeCopyToClipboard(e,t)).log({searchUID:this.provider.getSearchUID()})})}logOpenSmartSnippetSuggestionSource(e,t){return P(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetSuggestionSource(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetInlineLink(e,t){return this.makeClickEvent(V.openSmartSnippetInlineLink,e,{contentIDKey:t.contentIDKey,contentIDValue:t.contentIDValue},t)}logOpenSmartSnippetInlineLink(e,t){return P(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetInlineLink(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetSuggestionInlineLink(e,t){return this.makeClickEvent(V.openSmartSnippetSuggestionInlineLink,e,{contentIDKey:t.documentId.contentIdKey,contentIDValue:t.documentId.contentIdValue},t)}logOpenSmartSnippetSuggestionInlineLink(e,t){return P(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetSuggestionInlineLink(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeRecentQueryClick(){return this.makeSearchEvent(V.recentQueryClick)}logRecentQueryClick(){return P(this,void 0,void 0,function*(){return(yield this.makeRecentQueryClick()).log({searchUID:this.provider.getSearchUID()})})}makeClearRecentQueries(){return this.makeCustomEvent(V.clearRecentQueries)}logClearRecentQueries(){return P(this,void 0,void 0,function*(){return(yield this.makeClearRecentQueries()).log({searchUID:this.provider.getSearchUID()})})}makeRecentResultClick(e,t){return this.makeCustomEvent(V.recentResultClick,{info:e,identifier:t})}logRecentResultClick(e,t){return P(this,void 0,void 0,function*(){return(yield this.makeRecentResultClick(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeClearRecentResults(){return this.makeCustomEvent(V.clearRecentResults)}logClearRecentResults(){return P(this,void 0,void 0,function*(){return(yield this.makeClearRecentResults()).log({searchUID:this.provider.getSearchUID()})})}makeNoResultsBack(){return this.makeSearchEvent(V.noResultsBack)}logNoResultsBack(){return P(this,void 0,void 0,function*(){return(yield this.makeNoResultsBack()).log({searchUID:this.provider.getSearchUID()})})}makeShowMoreFoldedResults(e,t){return this.makeClickEvent(V.showMoreFoldedResults,e,t)}logShowMoreFoldedResults(e,t){return P(this,void 0,void 0,function*(){return(yield this.makeShowMoreFoldedResults(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeShowLessFoldedResults(){return this.makeCustomEvent(V.showLessFoldedResults)}logShowLessFoldedResults(){return P(this,void 0,void 0,function*(){return(yield this.makeShowLessFoldedResults()).log({searchUID:this.provider.getSearchUID()})})}makeEventDescription(e,t){var n;return{actionCause:t,customData:(n=e.payload)===null||n===void 0?void 0:n.customData}}makeCustomEvent(e,t,n=Gd[e]){return P(this,void 0,void 0,function*(){let r=Object.assign(Object.assign({},this.provider.getBaseMetadata()),t),i=Object.assign(Object.assign({},yield this.getBaseEventRequest(r)),{eventType:n,eventValue:e}),a=yield this.coveoAnalyticsClient.makeCustomEvent(i);return{description:this.makeEventDescription(a,e),log:({searchUID:o})=>a.log({lastSearchQueryUid:o})}})}logCustomEvent(e,t,n=Gd[e]){return P(this,void 0,void 0,function*(){return(yield this.makeCustomEvent(e,t,n)).log({searchUID:this.provider.getSearchUID()})})}makeCustomEventWithType(e,t,n){return P(this,void 0,void 0,function*(){let r=Object.assign(Object.assign({},this.provider.getBaseMetadata()),n),i=Object.assign(Object.assign({},yield this.getBaseEventRequest(r)),{eventType:t,eventValue:e}),a=yield this.coveoAnalyticsClient.makeCustomEvent(i);return{description:this.makeEventDescription(a,e),log:({searchUID:o})=>a.log({lastSearchQueryUid:o})}})}logCustomEventWithType(e,t,n){return P(this,void 0,void 0,function*(){return(yield this.makeCustomEventWithType(e,t,n)).log({searchUID:this.provider.getSearchUID()})})}logSearchEvent(e,t){return P(this,void 0,void 0,function*(){return(yield this.makeSearchEvent(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeSearchEvent(e,t){return P(this,void 0,void 0,function*(){let n=yield this.getBaseSearchEventRequest(e,t),r=yield this.coveoAnalyticsClient.makeSearchEvent(n);return{description:this.makeEventDescription(r,e),log:({searchUID:i})=>r.log({searchQueryUid:i})}})}makeClickEvent(e,t,n,r){return P(this,void 0,void 0,function*(){let i=Object.assign(Object.assign(Object.assign({},t),yield this.getBaseEventRequest(Object.assign(Object.assign({},n),r))),{queryPipeline:this.provider.getPipeline(),actionCause:e}),a=yield this.coveoAnalyticsClient.makeClickEvent(i);return{description:this.makeEventDescription(a,e),log:({searchUID:o})=>a.log({searchQueryUid:o})}})}logClickEvent(e,t,n,r){return P(this,void 0,void 0,function*(){return(yield this.makeClickEvent(e,t,n,r)).log({searchUID:this.provider.getSearchUID()})})}getBaseSearchEventRequest(e,t){return P(this,void 0,void 0,function*(){return Object.assign(Object.assign(Object.assign({},yield this.getBaseEventRequest(t)),this.provider.getSearchEventRequestPayload()),{queryPipeline:this.provider.getPipeline(),actionCause:e})})}getBaseEventRequest(e){return P(this,void 0,void 0,function*(){let t=Object.assign(Object.assign({},this.provider.getBaseMetadata()),e);return Object.assign(Object.assign(Object.assign({},this.getOrigins()),this.getSplitTestRun()),{customData:t,language:this.provider.getLanguage(),facetState:this.provider.getFacetState?this.provider.getFacetState():[],anonymous:this.provider.getIsAnonymous(),clientId:yield this.getClientId()})})}getOrigins(){var e,t;return{originContext:(t=(e=this.provider).getOriginContext)===null||t===void 0?void 0:t.call(e),originLevel1:this.provider.getOriginLevel1(),originLevel2:this.provider.getOriginLevel2(),originLevel3:this.provider.getOriginLevel3()}}getClientId(){return this.coveoAnalyticsClient instanceof Xn?this.coveoAnalyticsClient.getCurrentVisitorId():void 0}getSplitTestRun(){let e=this.provider.getSplitTestRunName?this.provider.getSplitTestRunName():"",t=this.provider.getSplitTestRunVersion?this.provider.getSplitTestRunVersion():"";return Object.assign(Object.assign({},e&&{splitTestRunName:e}),t&&{splitTestRunVersion:t})}},tv={pageview:"pageview",event:"event"},t1=Object.assign({},tv);Object.keys(t1).map(e=>t1[e]);var n1;(function(e){e.click="click",e.flowStart="flowStart"})(n1||(n1={}));var r1;(function(e){e.enterInterface="ticket_create_start",e.fieldUpdate="ticket_field_update",e.fieldSuggestionClick="ticket_classification_click",e.suggestionClick="suggestion_click",e.suggestionRate="suggestion_rate",e.nextCaseStep="ticket_next_stage",e.caseCancelled="ticket_cancel",e.caseSolved="ticket_cancel",e.caseCreated="ticket_create"})(r1||(r1={}));var i1;(function(e){e.quit="Quit",e.solved="Solved"})(i1||(i1={}));function ti(e){if(!e)return{parents:[],values:[]};let t=[],n=e;for(;n.length&&n[0].children.length;)t=[...t,...n],n=n[0].children;let r=n.find(i=>i.state==="selected");return r&&(t=[...t,r],n=[]),{parents:t,values:n}}var nv=(e,t)=>{var n;return(n=e.categoryFacetSet[t])==null?void 0:n.request},Bf=(e,t)=>{let n=nv(e,t);return ti(n==null?void 0:n.currentValues).parents};function yi(){return{}}function rv(e){return{request:e}}function Ci(){return{}}function iv(e){return{request:e}}function bi(){return{}}function av(e){return{request:e,hasBreadcrumbs:!0}}function Si(){return{}}var wi=(e,t)=>{let n=Yf(t,e),r=n?n.field:"",i=`${r}_${e}`;return{facetId:e,facetField:r,facetTitle:i}};function Fu(e,t){let{facetId:n,facetValue:r}=e,i=wi(n,t),a=Zf(t,n);return{...i,facetValue:a==="hierarchical"?Wf(t,n):r}}function dn(e){return{facetSet:e.facetSet||Si(),categoryFacetSet:e.categoryFacetSet||yi(),dateFacetSet:e.dateFacetSet||Ci(),numericFacetSet:e.numericFacetSet||bi()}}var ov=e=>{let t=[];return uv(e).forEach((n,r)=>{let i=Zf(e,n.facetId),a=hv(n,r+1);if(lv(n)){if(!Bf(e,n.facetId).length)return;t.push({...a,...pv(e,n.facetId),facetType:i,state:"selected"});return}n.currentValues.forEach((o,s)=>{if(o.state==="idle")return;let l=cv(o,s+1,i),u=sv(n)?fv(o):dv(o);t.push({...a,...l,...u})})}),t},sv=e=>e.type==="specific",lv=e=>e.type==="hierarchical",uv=e=>[...Object.values(e.facetSet),...Object.values(e.categoryFacetSet),...Object.values(e.dateFacetSet),...Object.values(e.numericFacetSet)].map(t=>t.request),cv=(e,t,n)=>({state:e.state,valuePosition:t,facetType:n}),dv=e=>({displayValue:`${e.start}..${e.end}`,value:`${e.start}..${e.end}`,start:e.start,end:e.end,endInclusive:e.endInclusive}),fv=e=>({displayValue:e.value,value:e.value}),Wf=(e,t)=>Bf(e,t).map(n=>n.value).join(";"),pv=(e,t)=>{let n=1,r=Wf(e,t);return{value:r,valuePosition:n,displayValue:r}},hv=(e,t)=>({title:`${e.field}_${e.facetId}`,field:e.field,id:e.facetId,facetPosition:t}),Yf=(e,t)=>{var n,r,i,a;return((n=e.facetSet[t])==null?void 0:n.request)||((r=e.categoryFacetSet[t])==null?void 0:r.request)||((i=e.dateFacetSet[t])==null?void 0:i.request)||((a=e.numericFacetSet[t])==null?void 0:a.request)},Zf=(e,t)=>{let n=Yf(e,t);return n?n.type:"specific"},jn=()=>({q:"",enableQuerySyntax:!1});function Pa(){return{answerSnippet:"",documentId:{contentIdKey:"",contentIdValue:""},question:"",relatedQuestions:[],score:0}}function kn(){return{response:{results:[],searchUid:"",totalCountFiltered:0,facets:[],queryCorrections:[],triggers:[],questionAnswer:Pa(),pipeline:"",splitTestRun:"",termsToHighlight:{}},duration:0,queryExecuted:"",error:null,automaticallyCorrected:!1,isLoading:!1,results:[],searchResponseId:"",requestId:"",questionAnswer:Pa()}}var Pn=()=>"default",Jf="2.8.10",mv=e=>{let t=e.configuration.search.locale.split("-")[0];return!t||t.length!==2?"en":t},Du=class{constructor(e){this.getState=e,this.state=e()}getLanguage(){return mv(this.state)}getBaseMetadata(){let{context:e}=this.state,t=(e==null?void 0:e.contextValues)||{},n={};for(let[r,i]of Object.entries(t)){let a=`context_${r}`;n[a]=i}return n.coveoHeadlessVersion=Jf,n}getOriginContext(){return this.state.configuration.analytics.originContext}getOriginLevel1(){return this.state.searchHub||Pn()}getOriginLevel2(){return this.state.configuration.analytics.originLevel2}getOriginLevel3(){return this.state.configuration.analytics.originLevel3}getIsAnonymous(){return this.state.configuration.analytics.anonymous}},Rl=class extends Du{getFacetState(){return ov(dn(this.getState()))}getPipeline(){var e;return this.state.pipeline||((e=this.state.search)==null?void 0:e.response.pipeline)||Rl.fallbackPipelineName}getSearchEventRequestPayload(){return{queryText:this.queryText,responseTime:this.responseTime,results:this.mapResultsToAnalyticsDocument(),numberOfResults:this.numberOfResults}}getSearchUID(){var e,t;let n=this.getState();return((e=n.search)==null?void 0:e.searchResponseId)||((t=n.search)==null?void 0:t.response.searchUid)||kn().response.searchUid}getSplitTestRunName(){var e;return(e=this.state.search)==null?void 0:e.response.splitTestRun}getSplitTestRunVersion(){var e;let t=!!this.getSplitTestRunName(),n=((e=this.state.search)==null?void 0:e.response.pipeline)||this.state.pipeline||Rl.fallbackPipelineName;return t?n:void 0}mapResultsToAnalyticsDocument(){var e;return(e=this.state.search)==null?void 0:e.response.results.map(t=>({documentUri:t.uri,documentUriHash:t.raw.urihash}))}get queryText(){var e;return((e=this.state.query)==null?void 0:e.q)||jn().q}get responseTime(){var e;return((e=this.state.search)==null?void 0:e.duration)||kn().duration}get numberOfResults(){var e;return((e=this.state.search)==null?void 0:e.response.totalCountFiltered)||kn().response.totalCountFiltered}},ho=Rl;ho.fallbackPipelineName="default";var gv=({logger:e,getState:t,analyticsClientMiddleware:n=(a,o)=>o,preprocessRequest:r,provider:i=new ho(t)})=>{let a=t(),o=a.configuration.accessToken,s=a.configuration.analytics.apiBaseUrl,l=a.configuration.analytics.runtimeEnvironment,u=a.configuration.analytics.enabled,d=new ev({token:o,endpoint:s,runtimeEnvironment:l,preprocessRequest:r,beforeSendHooks:[n,(f,m)=>(e.info({...m,type:f,endpoint:s,token:o},"Analytics request"),m)]},i);return u||d.disable(),d},Ut=e=>new Xn(e).getCurrentVisitorId(),a1=e=>{let t=new Xn(e);t.clear(),t.deleteHttpOnlyVisitorId()},$r=new Uf.HistoryStore,o1=()=>{let e=$r.getHistory().reverse().find(t=>t.name==="PageView"&&t.value);return e?e.value:""};function mn(e){let{url:t,accessToken:n,organizationId:r,authentication:i,...a}=e;return a}var gn=e=>{let{response:t}=e;return t.body?vv(e):yv(t)},vv=e=>bv(e)?Sv(e):Cv(e)?e.body:{message:"unknown",statusCode:0,type:"unknown"},yv=e=>{let t=JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)));return{...t,message:`Client side error: ${t.message||""}`,statusCode:400,type:"ClientError"}};function Cv(e){return e.body.statusCode!==void 0}function bv(e){return e.body.exception!==void 0}var Sv=e=>({message:e.body.exception.code,statusCode:e.response.status,type:e.body.exception.code}),wv=Ge(c9()),$v=Ge(y9()),kv=class extends Error{constructor(){super(),this.name="ExpiredToken",this.message="The token being used to perform the request is expired."}},Ml=class extends Error{constructor(e,t){super(),this.name="Disconnected",this.message=`Client could not connect to the following URL: ${e}`,this.statusCode=t!=null?t:0}};function xv(e){let t=[];for(let n in e){let r=encodeURIComponent(n),i=encodeURIComponent(e[n]);t.push(`${r}=${i}`)}return t.join("&")}function Ov(e){return typeof e!="object"||!e?!1:Object.values(e).every(Iv)}function Iv(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function s1(e){return e===429}var Xt=class{static async call(e){let t=qv(e),{origin:n,preprocessRequest:r,logger:i,requestMetadata:a}=e,o={...t,...r?await r(t,n,a):{}};i.info(o,"Platform request");let{url:s,...l}=o,u=async()=>{let d=await(0,wv.default)(s,l);if(s1(d.status))throw d;return d};try{let d=await(0,$v.backOff)(u,{retry:f=>{let m=f&&s1(f.status);return m&&i.info("Platform retrying request"),m}});if(d.status===419)throw i.info("Platform renewing token"),new kv;if(d.status===404)throw new Ml(s,d.status);return i.info({response:d,requestInfo:o},"Platform response"),d}catch(d){return d.message==="Failed to fetch"?new Ml(s):d}}};function Gf(e,t){let n=!t||!t.environment||t.environment==="prod"?"":t.environment,r=!t||!t.region||t.region==="us"?"":`-${t.region}`;return`https://${e}${n}${r}.cloud.coveo.com`}function l1(e){return e!=null&&e.multiRegionSubDomain?`https://${e.multiRegionSubDomain}.org.coveo.com`:Gf("platform",e)}function Ev(e){return Gf("analytics",e)}function qv(e){let{url:t,method:n,requestParams:r,contentType:i,accessToken:a,signal:o}=e,s=e.method==="POST"||e.method==="PUT",l=Av(r,i);return{url:t,method:n,headers:{"Content-Type":i,Authorization:`Bearer ${a}`,...e.headers},...s&&{body:l},signal:o}}function Av(e,t){return t==="application/x-www-form-urlencoded"?Ov(e)?xv(e):"":JSON.stringify(e)}var Rv=TextDecoder,Mv=class{constructor(e){this._params={},this._basePath=e}addParam(e,t){this._params={...this.params,[e]:t}}get basePath(){return this._basePath}get params(){return this._params}get hasParams(){return Object.entries(this._params).length}get href(){return this.hasParams?`${this.basePath}?${Object.entries(this.params).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join("&")}`:this.basePath}};function Tv(e){return((e.headers.get("content-type")||"").split(";").find(t=>t.indexOf("charset=")!==-1)||"").split("=")[1]||"UTF-8"}var en=(e,t,n,r)=>({accessToken:e.accessToken,method:t,contentType:n,url:`${e.url}${r}?${Fv(e)}${e.authentication?`&${Dv(e)}`:""}`,origin:"searchApiFetch"}),Fv=e=>`organizationId=${e.organizationId}`,Dv=e=>`authentication=${encodeURIComponent(e.authentication)}`,jv=(e,t)=>{let n=new Mv(`${e.url}${t}`);return n.addParam("access_token",e.accessToken),n.addParam("organizationId",e.organizationId),n.addParam("uniqueId",e.uniqueId),e.q!==void 0&&n.addParam("q",e.q),e.enableNavigation!==void 0&&n.addParam("enableNavigation",`${e.enableNavigation}`),e.requestedOutputSize!==void 0&&n.addParam("requestedOutputSize",`${e.requestedOutputSize}`),e.visitorId!==void 0&&n.addParam("visitorId",`${e.visitorId}`),n.href},Pv=async(e,t)=>{let n=await Xt.call({...en(e,"POST","application/x-www-form-urlencoded","/html"),requestParams:mn(e),requestMetadata:{method:"html"},...t});if(n instanceof Error)throw n;let r=Tv(n),i=await n.arrayBuffer(),a=new Rv(r).decode(i);return Uv(a)?{success:a}:{error:gn({response:n,body:a})}};function Uv(e){return typeof e=="string"}function _v(e){return{statusCode:e.statusCode,type:e.name,message:e.message}}function Lv(e){return{statusCode:e.code,type:e.name,message:e.message,ignored:!0}}function bs(e,t){if(t&&e.name==="AbortError")return{error:Lv(e)};if(e instanceof Ml)return{error:_v(e)};throw e}var zv=class{constructor(e){this.options=e,this.searchAbortController=null}async plan(e){let t=await Xt.call({...en(e,"POST","application/json","/plan"),requestParams:mn(e),requestMetadata:{method:"plan"},...this.options});if(t instanceof Error)return bs(t);let n=await t.json();return Qv(n)?{success:n}:{error:gn({response:t,body:n})}}async querySuggest(e){let t=await Xt.call({...en(e,"POST","application/json","/querySuggest"),requestMetadata:{method:"querySuggest"},requestParams:mn(e),...this.options});if(t instanceof Error)return bs(t);let n=await t.json(),r={response:t,body:n};return Nv(n)?{success:(await this.options.postprocessQuerySuggestResponseMiddleware(r)).body}:{error:gn(r)}}async search(e,t){var n;this.searchAbortController&&(!(t!=null&&t.disableAbortWarning)&&this.options.logger.warn("Cancelling current pending search query"),this.searchAbortController.abort()),this.searchAbortController=this.getAbortControllerInstanceIfAvailable();let r=await Xt.call({...en(e,"POST","application/json",""),requestParams:mn(e),requestMetadata:{method:"search",origin:t==null?void 0:t.origin},...this.options,signal:(n=this.searchAbortController)==null?void 0:n.signal});if(r instanceof Error)return bs(r,t==null?void 0:t.disableAbortWarning);this.searchAbortController=null;let i=await r.json(),a={response:r,body:i};return Ss(i)?(a.body=Bv(i),{success:(await this.options.postprocessSearchResponseMiddleware(a)).body}):{error:gn(a)}}async facetSearch(e){let t=await Xt.call({...en(e,"POST","application/json","/facet"),requestParams:mn(e),requestMetadata:{method:"facetSearch"},...this.options});if(t instanceof Error)throw t;let n=await t.json(),r={response:t,body:n};return(await this.options.postprocessFacetSearchResponseMiddleware(r)).body}async recommendations(e){let t=await Xt.call({...en(e,"POST","application/json",""),requestParams:mn(e),requestMetadata:{method:"recommendations"},...this.options});if(t instanceof Error)throw t;let n=await t.json();return Ss(n)?{success:n}:{error:gn({response:t,body:n})}}async html(e){return Pv(e,{...this.options})}async productRecommendations(e){let t=await Xt.call({...en(e,"POST","application/json",""),requestParams:mn(e),requestMetadata:{method:"productRecommendations"},...this.options});if(t instanceof Error)throw t;let n=await t.json();return Ss(n)?{success:n}:{error:gn({response:t,body:n})}}async fieldDescriptions(e){let t=await Xt.call({...en(e,"GET","application/json","/fields"),requestParams:{},requestMetadata:{method:"fieldDescriptions"},...this.options});if(t instanceof Error)throw t;let n=await t.json();return Hv(n)?{success:n}:{error:gn({response:t,body:n})}}getAbortControllerInstanceIfAvailable(){if(typeof window=="undefined"){let e=C9();return new e}return typeof AbortController=="undefined"?null:new AbortController}},Vv=e=>e.success!==void 0,gt=e=>e.error!==void 0;function Nv(e){return e.completions!==void 0}function Qv(e){return e.preprocessingOutput!==void 0}function Hv(e){return e.fields!==void 0}function Ss(e){return e.results!==void 0}function Bv(e){let t=Pa();return be(e.questionAnswer)?(e.questionAnswer=t,e):(e.questionAnswer={...t,...e.questionAnswer},e)}var Wv=["uri","urihash","permanentid","ec_name","ec_brand","ec_category","ec_item_group_id","ec_price","ec_promo_price","ec_shortdesc","ec_thumbnails","ec_images","ec_in_stock","ec_rating","childResults","totalNumberOfChildResults"],K=new ce({required:!0,emptyAllowed:!1}),Ie=new ce({required:!1,emptyAllowed:!1}),Be=new ce({required:!0,emptyAllowed:!0}),Un=({message:e,name:t,stack:n})=>({message:e,name:t,stack:n}),_n=(e,t)=>{if("required"in t)return{payload:new gi({value:t}).validate({value:e}).value};let n=new ge({options:{required:!0},values:t}).validate(e);if(n)throw new Ru(n);return{payload:e}},z=(e,t)=>{try{return _n(e,t)}catch(n){return{payload:e,error:Un(n)}}},Yv=(e,t,n,r)=>{let i=`Check the initialState of ${r}`;return Kf(e,t,n,i,"Controller initialization error")},Zv=(e,t,n,r)=>{let i=`Check the options of ${r}`;return Kf(e,t,n,i,"Controller initialization error")},Kf=(e,t,n,r,i)=>{try{return t.validate(n,r)}catch(a){throw e.logger.error(a,i),a}},ju=()=>({id:"",skus:[],maxNumberOfRecommendations:5,filter:{brand:"",category:""},additionalFields:[],recommendations:[],error:null,isLoading:!1,searchUid:"",duration:0}),Jv=class extends Du{constructor(){super(...arguments),this.initialState=ju()}getPipeline(){return""}getSearchEventRequestPayload(){return{queryText:"",responseTime:this.responseTime,results:this.mapResultsToAnalyticsDocument(),numberOfResults:this.numberOfResults}}getSearchUID(){var e;return((e=this.getState().productRecommendations)==null?void 0:e.searchUid)||this.initialState.searchUid}mapResultsToAnalyticsDocument(){var e;return(e=this.state.productRecommendations)==null?void 0:e.recommendations.map(t=>({documentUri:t.documentUri,documentUriHash:t.documentUriHash,permanentid:t.permanentid}))}get responseTime(){var e;return((e=this.state.productRecommendations)==null?void 0:e.duration)||this.initialState.duration}get numberOfResults(){var e;return((e=this.state.productRecommendations)==null?void 0:e.recommendations.length)||this.initialState.recommendations.length}};new Uf.HistoryStore;var Gv=Ge(Z2());function Xf(e){return Array.isArray(e)}function ws(e){return e.trim()===""}function Kv(e,t){return Object.values(e.reduce((n,r,i)=>({...n,[t(r,i)]:r}),{}))}function Xv(e){return(typeof btoa!="undefined"?btoa:Gv.btoa)(encodeURI(e))}function ey(e){return Xv(JSON.stringify(e))}var ty=new Set(["1",1,"yes",!0]);function ny(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;let e=navigator,t=window;return[e.globalPrivacyControl,e.doNotTrack,e.msDoNotTrack,t.doNotTrack].some(n=>ty.has(n))}function e0(e){let t=t0(e),n=[e,...t].filter(r=>r.parentResult).map(r=>r.parentResult);return Kv([e,...t,...n],r=>r.uniqueId)}function t0(e){return e.childResults?e.childResults.flatMap(t=>[t,...t0(t)]):[]}var $i=()=>"",ee=(e=>(e[e.Search=0]="Search",e[e.Custom=1]="Custom",e[e.Click=2]="Click",e))(ee||{});function ry(e){return Object.assign(e,{instantlyCallable:!0})}function iy(e,t){let n=i=>ry(ke(e,i)),r=n(async(i,{getState:a,extra:o})=>{let{analyticsClientMiddleware:s,preprocessRequest:l,logger:u}=o;return await(await t({getState:a,analyticsClientMiddleware:s,preprocessRequest:l,logger:u})).log({state:a(),extra:o})});return Object.assign(r,{prepare:async({getState:i,analyticsClientMiddleware:a,preprocessRequest:o,logger:s})=>{let{description:l,log:u}=await t({getState:i,analyticsClientMiddleware:a,preprocessRequest:o,logger:s});return{description:l,action:n(async(d,{getState:f,extra:m})=>await u({state:f(),extra:m}))}}}),r}var te=(e,t,n,r=i=>new ho(i))=>iy(e,async({getState:i,analyticsClientMiddleware:a,preprocessRequest:o,logger:s})=>{let l=gv({getState:i,logger:s,analyticsClientMiddleware:a,preprocessRequest:o,provider:r(i)}),u=await n(l,i());return{description:u==null?void 0:u.description,log:async({state:d})=>{let f=await(u==null?void 0:u.log({searchUID:r(()=>d).getSearchUID()}));return s.info({client:l.coveoAnalyticsClient,response:f},"Analytics response"),{analyticsType:t}}}}),ay=(e,t)=>{var n;let r=o=>{var s,l;return o+((l=(s=t.pagination)==null?void 0:s.firstResult)!=null?l:0)},i=-1,a=(n=t.search)==null?void 0:n.results;return i=i0(e,a),i<0&&(i=fy(e,a)),i<0&&(i=0),oy(e,r(i),t)};function oy(e,t,n){let r=e.raw.collection;return{collectionName:typeof r=="string"?r:"default",documentAuthor:cy(e),documentPosition:t+1,documentTitle:e.title,documentUri:e.uri,documentUriHash:e.raw.urihash,documentUrl:e.clickUri,rankingModifier:e.rankingModifier||"",sourceName:dy(e),queryPipeline:n.pipeline||$i()}}var sy=e=>(e.raw.permanentid||console.warn("Missing field permanentid on result. This might cause many issues with your Coveo deployment. See https://docs.coveo.com/en/1913 and https://docs.coveo.com/en/1640 for more information.",e),{contentIDKey:"permanentid",contentIDValue:e.raw.permanentid||""}),n0={urihash:new ce,sourcetype:new ce,permanentid:new ce},Pu={uniqueId:K,raw:new ge({values:n0}),title:K,uri:K,clickUri:K,rankingModifier:new ce({required:!1,emptyAllowed:!0})};function ly(e){return Object.assign({},...Object.keys(n0).map(t=>({[t]:e[t]})))}function uy(e){return Object.assign({},...Object.keys(Pu).map(t=>({[t]:e[t]})),{raw:ly(e.raw)})}function cy(e){let t=e.raw.author;return be(t)?"unknown":Array.isArray(t)?t.join(";"):`${t}`}function dy(e){let t=e.raw.source;return be(t)?"unknown":t}var r0=e=>new gi(Pu).validate(uy(e));function fy(e,t){for(let[n,r]of t.entries()){let i=e0(r);if(i0(e,i)!==-1)return n}return-1}function i0(e,t=[]){return t.findIndex(({uniqueId:n})=>n===e.uniqueId)}var py=()=>te("analytics/productRecommendations/load",ee.Search,e=>e.makeRecommendationInterfaceLoad(),e=>new Jv(e));function hy(e){return e&&"childResults"in e&&"totalNumberOfChildResults"in e}var my=D("productrecommendations/setId",e=>z(e,{id:K})),gy=D("productrecommendations/setSku",e=>z(e,{skus:new Ne({required:!0,min:1,each:Ie})})),vy=D("productrecommendations/setBrand",e=>z(e,{brand:new ce({required:!0,emptyAllowed:!0})})),yy=D("productrecommendations/setCategory",e=>z(e,{category:new ce({required:!0,emptyAllowed:!0})})),Cy=D("productrecommendations/setAdditionalFields",e=>z(e,{additionalFields:new Ne({required:!0,each:Ie})})),by=D("productrecommendations/setMaxNumberOfRecommendations",e=>z(e,{number:new me({required:!0,max:50,min:1})})),pa=ke("productRecommendations/get",async(e,{getState:t,rejectWithValue:n,extra:{apiClient:r}})=>{let i=t(),a=new Date().getTime(),o=await r.productRecommendations(await Sy(i)),s=new Date().getTime()-a;if(gt(o))return n(o.error);let l=i.productRecommendations.additionalFields||[];return{recommendations:o.success.results.map(u=>a0(u,{additionalFields:l})),analyticsAction:py(),searchUid:o.success.searchUid,duration:s}}),a0=(e,{additionalFields:t})=>{let n=e.raw.ec_price,r=e.raw.ec_promo_price,i=e.raw.ec_in_stock,a={documentUri:e.uri,documentUriHash:e.raw.urihash,permanentid:e.raw.permanentid,clickUri:e.clickUri,ec_name:e.raw.ec_name,ec_brand:e.raw.ec_brand,ec_category:e.raw.ec_category,ec_item_group_id:e.raw.ec_item_group_id,ec_price:n,ec_shortdesc:e.raw.ec_shortdesc,ec_thumbnails:e.raw.ec_thumbnails,ec_images:e.raw.ec_images,ec_promo_price:r===void 0||n!==void 0&&r>=n?void 0:r,ec_in_stock:i===void 0?void 0:i.toLowerCase()==="yes"||i.toLowerCase()==="true",ec_rating:e.raw.ec_rating,additionalFields:t.reduce((o,s)=>({...o,[s]:e.raw[s]}),{}),childResults:[],totalNumberOfChildResults:0};return hy(e)&&(a.childResults=e.childResults.map(o=>a0(o,{additionalFields:t})),a.totalNumberOfChildResults=e.totalNumberOfChildResults),a},Sy=async e=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.search.apiBaseUrl,locale:e.configuration.search.locale,timezone:e.configuration.search.timezone,...e.configuration.analytics.enabled&&{visitorId:await Ut(e.configuration.analytics)},recommendation:e.productRecommendations.id,numberOfResults:e.productRecommendations.maxNumberOfRecommendations,fieldsToInclude:[...Wv,...e.productRecommendations.additionalFields||[]],mlParameters:{...e.productRecommendations.skus&&e.productRecommendations.skus.length>0&&{itemIds:e.productRecommendations.skus},...e.productRecommendations.filter.brand&&{brandFilter:e.productRecommendations.filter.brand},...e.productRecommendations.filter.category&&{categoryFilter:e.productRecommendations.filter.category}},actionsHistory:e.configuration.analytics.enabled?$r.getHistory():[],...e.context&&{context:e.context.contextValues},...e.dictionaryFieldContext&&{dictionaryFieldContext:e.dictionaryFieldContext.contextValues},...e.searchHub&&{searchHub:e.searchHub}}),mo=async(e,t)=>({analytics:{clientId:await Ut(e),clientTimestamp:new Date().toISOString(),documentReferrer:e.originLevel3,originContext:e.originContext,...t&&{actionCause:t.actionCause,customData:t.customData},...e.userDisplayName&&{userDisplayName:e.userDisplayName},...e.documentLocation&&{documentLocation:e.documentLocation},...e.deviceId&&{deviceId:e.deviceId},...o1()&&{pageId:o1()}}}),Br=()=>({duration:0,error:null,isLoading:!1,id:"Recommendation",recommendations:[],searchUid:"",splitTestRun:"",pipeline:""}),wy=class extends Du{getPipeline(){var e;return this.state.pipeline||((e=this.state.recommendation)==null?void 0:e.pipeline)||"default"}getSearchEventRequestPayload(){return{queryText:jn().q,responseTime:this.responseTime,results:this.mapResultsToAnalyticsDocument(),numberOfResults:this.numberOfResults}}getSearchUID(){var e;return((e=this.getState().recommendation)==null?void 0:e.searchUid)||Br().searchUid}getSplitTestRunName(){var e;return(e=this.state.recommendation)==null?void 0:e.splitTestRun}getSplitTestRunVersion(){var e;let t=!!this.getSplitTestRunName(),n=((e=this.state.recommendation)==null?void 0:e.pipeline)||this.state.pipeline||"default";return t?n:void 0}get responseTime(){var e;return((e=this.state.recommendation)==null?void 0:e.duration)||Br().duration}mapResultsToAnalyticsDocument(){var e;return(e=this.state.recommendation)==null?void 0:e.recommendations.map(t=>({documentUri:t.uri,documentUriHash:t.raw.urihash}))}get numberOfResults(){var e;return((e=this.state.recommendation)==null?void 0:e.recommendations.length)||Br().recommendations.length}},$y=()=>te("analytics/recommendation/update",ee.Search,e=>e.makeRecommendationInterfaceLoad(),e=>new wy(e)),ky=D("recommendation/set",e=>z(e,{id:K})),ha=ke("recommendation/get",async(e,{getState:t,rejectWithValue:n,extra:{apiClient:r}})=>{let i=t(),a=new Date().getTime(),o=await r.recommendations(await xy(i)),s=new Date().getTime()-a;return gt(o)?n(o.error):{recommendations:o.success.results,analyticsAction:$y(),duration:s,searchUid:o.success.searchUid,splitTestRun:o.success.splitTestRun,pipeline:o.success.pipeline}}),xy=async e=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.search.apiBaseUrl,recommendation:e.recommendation.id,tab:e.configuration.analytics.originLevel2,referrer:e.configuration.analytics.originLevel3,timezone:e.configuration.search.timezone,locale:e.configuration.search.locale,actionsHistory:e.configuration.analytics.enabled?$r.getHistory():[],...e.advancedSearchQueries&&{aq:e.advancedSearchQueries.aq,cq:e.advancedSearchQueries.cq},...e.pipeline&&{pipeline:e.pipeline},...e.searchHub&&{searchHub:e.searchHub},...e.context&&{context:e.context.contextValues},...e.dictionaryFieldContext&&{dictionaryFieldContext:e.dictionaryFieldContext.contextValues},...e.fields&&{fieldsToInclude:e.fields.fieldsToInclude},...e.configuration.analytics.enabled&&{visitorId:await Ut(e.configuration.analytics)},...e.configuration.analytics.enabled&&await mo(e.configuration.analytics),...e.configuration.search.authenticationProviders.length&&{authentication:e.configuration.search.authenticationProviders.join(",")},...e.pagination&&{numberOfResults:e.pagination.numberOfResults}}),Ln=D("breadcrumb/deselectAll"),o0=D("breadcrumb/deselectAllNonBreadcrumbs"),Uu=D("facet/updateFacetAutoSelection",e=>z(e,{allow:new Ue({required:!0})})),Oy=class extends ho{constructor(e){super(e),this.getState=e}get activeInstantResultQuery(){let e=this.getState().instantResults;for(let t in e)for(let n in e[t].cache)if(e[t].cache[n].isActive)return e[t].q;return null}get activeInstantResultCache(){let e=this.getState().instantResults;for(let t in e)for(let n in e[t].cache)if(e[t].cache[n].isActive)return e[t].cache[n];return null}getSearchUID(){var e;return((e=this.activeInstantResultCache)==null?void 0:e.searchUid)||super.getSearchUID()}getSearchEventRequestPayload(){let e=super.getSearchEventRequestPayload(),t=this.activeInstantResultQuery||e.queryText;return{...e,queryText:t}}},Iy=()=>te("analytics/instantResult/searchboxAsYouType",ee.Search,e=>e.makeSearchboxAsYouType(),e=>new Oy(e)),_u={id:K},Ey={..._u,q:Be},qy=D("instantResults/register",e=>z(e,_u)),s0=D("instantResults/updateQuery",e=>z(e,Ey)),Ay=D("instantResults/clearExpired",e=>z(e,_u)),go=new me({required:!0,min:0}),l0=D("pagination/registerNumberOfResults",e=>z(e,go)),u0=D("pagination/updateNumberOfResults",e=>z(e,go)),Lu=D("pagination/registerPage",e=>z(e,go)),vo=D("pagination/updatePage",e=>z(e,go)),zu=D("pagination/nextPage"),Vu=D("pagination/previousPage"),yo=D("query/updateQuery",e=>z(e,{q:new ce,enableQuerySyntax:new Ue})),Nu=async(e,t)=>{var n,r,i,a;return{accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.search.apiBaseUrl,locale:e.configuration.search.locale,debug:e.debug,tab:e.configuration.analytics.originLevel2,referrer:e.configuration.analytics.originLevel3,timezone:e.configuration.search.timezone,...e.configuration.analytics.enabled&&{visitorId:await Ut(e.configuration.analytics),actionsHistory:$r.getHistory()},...((n=e.advancedSearchQueries)==null?void 0:n.aq)&&{aq:e.advancedSearchQueries.aq},...((r=e.advancedSearchQueries)==null?void 0:r.cq)&&{cq:e.advancedSearchQueries.cq},...((i=e.advancedSearchQueries)==null?void 0:i.lq)&&{lq:e.advancedSearchQueries.lq},...((a=e.advancedSearchQueries)==null?void 0:a.dq)&&{dq:e.advancedSearchQueries.dq},...e.context&&{context:e.context.contextValues},...e.fields&&!e.fields.fetchAllFields&&{fieldsToInclude:e.fields.fieldsToInclude},...e.dictionaryFieldContext&&{dictionaryFieldContext:e.dictionaryFieldContext.contextValues},...e.pipeline&&{pipeline:e.pipeline},...e.query&&{q:e.query.q,enableQuerySyntax:e.query.enableQuerySyntax},...e.searchHub&&{searchHub:e.searchHub},...e.sortCriteria&&{sortCriteria:e.sortCriteria},...e.configuration.analytics.enabled&&await mo(e.configuration.analytics,t),...e.excerptLength&&!be(e.excerptLength.length)&&{excerptLength:e.excerptLength.length},...e.configuration.search.authenticationProviders.length&&{authentication:e.configuration.search.authenticationProviders.join(",")}}},Ry=D("didYouMean/enable"),My=D("didYouMean/disable"),Qu=D("didYouMean/correction",e=>z(e,K)),Ty=()=>te("analytics/didyoumean/click",ee.Search,e=>e.makeDidYouMeanClick()),Fy=()=>te("analytics/didyoumean/automatic",ee.Search,e=>e.makeDidYouMeanAutomatic()),Dy=D("history/undo"),jy=D("history/redo"),ma=D("history/snapshot");ke("history/back",async(e,{dispatch:t})=>{t(Dy()),await t(tt())});ke("history/forward",async(e,{dispatch:t})=>{t(jy()),await t(tt())});var tt=ke("history/change",async(e,{getState:t})=>t().history.present),xn=()=>({cq:"",cqWasSet:!1,aq:"",aqWasSet:!1,lq:"",lqWasSet:!1,dq:"",dqWasSet:!1,defaultFilters:{cq:"",aq:"",lq:"",dq:""}});function kr(){return{contextValues:{}}}var ki=()=>!1;function xi(){return{contextValues:{}}}function jr(){return{enabled:!0}}function Co(){return{freezeFacetOrder:!1,facets:{}}}function bo(){return[]}function Hu(){return{}}function Py(e){return e?e.expiresAt&&Date.now()>=e.expiresAt:!1}function zn(){return{firstResult:0,defaultNumberOfResults:10,numberOfResults:10,totalCountFiltered:0}}function Bu(){return{}}var Uy=(e=>(e.Ascending="ascending",e.Descending="descending",e))(Uy||{}),c0=(e=>(e.Relevancy="relevancy",e.QRE="qre",e.Date="date",e.Field="field",e.NoSort="nosort",e))(c0||{}),Ua=e=>{if(Rf(e))return e.map(t=>Ua(t)).join(",");switch(e.by){case"relevancy":case"qre":case"nosort":return e.by;case"date":return`date ${e.order}`;case"field":return`@${e.field} ${e.order}`;default:return""}},_y=()=>({by:"relevancy"});function So(){return Ua(_y())}function Wu(){return{}}function Yu(){return{}}function d0(){return ga({})}function ga(e){var t,n;return{context:e.context||kr(),dictionaryFieldContext:e.dictionaryFieldContext||xi(),facetSet:e.facetSet||Si(),numericFacetSet:e.numericFacetSet||bi(),dateFacetSet:e.dateFacetSet||Ci(),categoryFacetSet:e.categoryFacetSet||yi(),pagination:e.pagination||zn(),query:e.query||jn(),tabSet:e.tabSet||Yu(),advancedSearchQueries:e.advancedSearchQueries||xn(),staticFilterSet:e.staticFilterSet||Wu(),querySet:e.querySet||Bu(),instantResults:e.instantResults||Hu(),sortCriteria:e.sortCriteria||So(),pipeline:e.pipeline||$i(),searchHub:e.searchHub||Pn(),facetOptions:e.facetOptions||Co(),facetOrder:(t=e.facetOrder)!=null?t:bo(),debug:(n=e.debug)!=null?n:ki()}}var Ly=new ge({values:{undoneQuery:Be},options:{required:!0}}),f0=()=>te("analytics/trigger/query",ee.Search,(e,t)=>{var n;return(n=t.triggers)!=null&&n.queryModification.newQuery?e.makeTriggerQuery():null}),zy=e=>te("analytics/trigger/query/undo",ee.Search,t=>(z(e,Ly),t.makeUndoTriggerQuery(e))),Vy=()=>te("analytics/trigger/notify",ee.Search,(e,t)=>{var n;return(n=t.triggers)!=null&&n.notifications.length?e.makeTriggerNotify({notifications:t.triggers.notifications}):null}),Ny=()=>te("analytics/trigger/redirect",ee.Search,(e,t)=>{var n;return(n=t.triggers)!=null&&n.redirectTo?e.makeTriggerRedirect({redirectedTo:t.triggers.redirectTo}):null}),Qy=()=>te("analytics/trigger/execute",ee.Search,(e,t)=>{var n;return(n=t.triggers)!=null&&n.executions.length?e.makeTriggerExecute({executions:t.triggers.executions}):null}),p0=D("trigger/query/ignore",e=>z(e,new ce({emptyAllowed:!0,required:!0}))),h0=D("trigger/query/modification",e=>z(e,new ge({values:{originalQuery:Ie,modification:Ie}}))),u1=()=>te("search/logFetchMoreResults",ee.Search,e=>e.makeFetchMoreResults()),va=e=>te("search/queryError",ee.Search,(t,n)=>{var r,i,a,o;return t.makeQueryError({query:((r=n.query)==null?void 0:r.q)||jn().q,aq:((i=n.advancedSearchQueries)==null?void 0:i.aq)||xn().aq,cq:((a=n.advancedSearchQueries)==null?void 0:a.cq)||xn().cq,dq:((o=n.advancedSearchQueries)==null?void 0:o.dq)||xn().dq,errorType:e.type,errorMessage:e.message})}),ya=Ge(Cu()),Hy=Ge(w9()),Tl=Ge(Cu()),By=Ge($9());Tl.default.extend(By.default);var m0="YYYY/MM/DD@HH:mm:ss",Wy="1401-01-01";function _a(e,t){let n=(0,Tl.default)(e,t);return!n.isValid()&&!t?(0,Tl.default)(e,m0):n}function g0(e){return e.format(m0)}function Yy(e,t){let n=_a(e,t);if(!n.isValid()){let r=". Please provide a date format string in the configuration options. See https://day.js.org/docs/en/parse/string-format for more information.",i=` with the format "${t}""`;throw new Error(`Could not parse the provided date "${e}"${t?i:r}`)}v0(n)}function v0(e){if(e.isBefore(Wy))throw new Error(`Date is before year 1401, which is unsupported by the API: ${e}`)}ya.default.extend(Hy.default);var y0=["past","now","next"],C0=["minute","hour","day","week","month","quarter","year"],Zy=e=>{let t=e==="now";return{amount:new me({required:!t,min:1}),unit:new ce({required:!t,constrainTo:C0}),period:new ce({required:!0,constrainTo:y0})}};function c1(e){if(typeof e=="string"&&!ni(e))throw new Error(`The value "${e}" is not respecting the relative date format "period-amount-unit"`);let t=typeof e=="string"?w0(e):e;new gi(Zy(t.period)).validate(t);let n=b0(t),r=JSON.stringify(t);if(!n.isValid())throw new Error(`Date is invalid: ${r}`);v0(n)}function Jy(e){let{period:t,amount:n,unit:r}=e;switch(t){case"past":case"next":return`${t}-${n}-${r}`;case"now":return t}}function b0(e){let{period:t,amount:n,unit:r}=e;switch(t){case"past":return(0,ya.default)().subtract(n,r);case"next":return(0,ya.default)().add(n,r);case"now":return(0,ya.default)()}}function Fl(e){return g0(b0(w0(e)))}function S0(e){return e.toLocaleLowerCase().split("-")}function ni(e){let[t,n,r]=S0(e);if(t==="now")return!0;if(!y0.includes(t)||!C0.includes(r))return!1;let i=parseInt(n);return!(isNaN(i)||i<=0)}function Gy(e){return!!e&&typeof e=="object"&&"period"in e}function w0(e){let[t,n,r]=S0(e);return t==="now"?{period:"now"}:{period:t,amount:n?parseInt(n):void 0,unit:r||void 0}}function Ky(e){return e.type==="dateRange"}function $0(e){return`start${e}`}function k0(e){return`end${e}`}var Xy=()=>({dateFacetValueMap:{}});function e7(e,t,n){let r=e.start,i=e.end;return ni(r)&&(r=Fl(r),n.dateFacetValueMap[t][$0(r)]=e.start),ni(i)&&(i=Fl(i),n.dateFacetValueMap[t][k0(i)]=e.end),{...e,start:r,end:i}}function t7(e,t){if(Ky(e)){let{facetId:n,currentValues:r}=e;return t.dateFacetValueMap[n]={},{...e,currentValues:r.map(i=>e7(i,n,t))}}return e}function x0(e){var t;let n=Xy();return{request:{...e,facets:(t=e.facets)==null?void 0:t.map(r=>t7(r,n))},mappings:n}}function n7(e,t,n){return{...e,start:n.dateFacetValueMap[t][$0(e.start)]||e.start,end:n.dateFacetValueMap[t][k0(e.end)]||e.end}}function r7(e,t){return e.facetId in t.dateFacetValueMap}function i7(e,t){return r7(e,t)?{...e,values:e.values.map(n=>n7(n,e.facetId,t))}:e}function a7(e,t){var n;return"success"in e?{success:{...e.success,facets:(n=e.success.facets)==null?void 0:n.map(r=>i7(r,t))}}:e}function O0(e,t){let n={};e.forEach(a=>n[a.facetId]=a);let r=[];t.forEach(a=>{a in n&&(r.push(n[a]),delete n[a])});let i=Object.values(n);return[...r,...i]}function Sn(e){return Object.values(e).map(t=>t.request)}var wo=1,Dl=5e3,un=async(e,t)=>{var n;let r=u7(e),i=o7(e),a=await Nu(e,t),o=()=>e.pagination?e.pagination.firstResult+e.pagination.numberOfResults>Dl?Dl-e.pagination.firstResult:e.pagination.numberOfResults:void 0;return x0({...a,...e.didYouMean&&{enableDidYouMean:e.didYouMean.enableDidYouMean},...r&&{cq:r},...i.length&&{facets:i},...e.pagination&&{numberOfResults:o(),firstResult:e.pagination.firstResult},...e.facetOptions&&{facetOptions:{freezeFacetOrder:e.facetOptions.freezeFacetOrder}},...((n=e.folding)==null?void 0:n.enabled)&&{filterField:e.folding.fields.collection,childField:e.folding.fields.parent,parentField:e.folding.fields.child,filterFieldRange:e.folding.filterFieldRange}})};function o7(e){var t;return O0(s7(e),(t=e.facetOrder)!=null?t:[])}function s7(e){return l7(e).filter(({facetId:t})=>{var n,r,i;return(i=(r=(n=e.facetOptions)==null?void 0:n.facets[t])==null?void 0:r.enabled)!=null?i:!0})}function l7(e){var t,n,r,i;return[...Sn((t=e.facetSet)!=null?t:{}),...d1((n=e.numericFacetSet)!=null?n:{}),...d1((r=e.dateFacetSet)!=null?r:{}),...Sn((i=e.categoryFacetSet)!=null?i:{})]}function d1(e){return Sn(e).map(t=>{let n=t.currentValues.find(({state:r})=>r==="selected");return t.generateAutomaticRanges&&!n?{...t,currentValues:[]}:t})}function u7(e){var t;let n=((t=e.advancedSearchQueries)==null?void 0:t.cq.trim())||"",r=Object.values(e.tabSet||{}).find(o=>o.isActive),i=(r==null?void 0:r.expression.trim())||"",a=c7(e);return[n,i,...a].filter(o=>!!o).join(" AND ")}function c7(e){return Object.values(e.staticFilterSet||{}).map(t=>{let n=t.values.filter(i=>i.state==="selected"&&!!i.expression.trim()),r=n.map(i=>i.expression).join(" OR ");return n.length>1?`(${r})`:r})}var Oi=class{constructor(e,t=n=>{this.dispatch(yo({q:n}))}){this.config=e,this.onUpdateQueryForCorrection=t}async fetchFromAPI({mappings:e,request:t},n){var r;let i=new Date().getTime(),a=a7(await this.extra.apiClient.search(t,n),e),o=new Date().getTime()-i,s=((r=this.getState().query)==null?void 0:r.q)||"";return{response:a,duration:o,queryExecuted:s,requestExecuted:t}}async process(e){var t,n,r;return(r=(n=(t=this.processQueryErrorOrContinue(e))!=null?t:await this.processQueryCorrectionsOrContinue(e))!=null?n:await this.processQueryTriggersOrContinue(e))!=null?r:this.processSuccessReponse(e)}processQueryErrorOrContinue(e){return gt(e.response)?(this.dispatch(va(e.response.error)),this.rejectWithValue(e.response.error)):null}async processQueryCorrectionsOrContinue(e){var t;let n=this.getState(),r=this.getSuccessResponse(e);if(!r||((t=n.didYouMean)==null?void 0:t.enableDidYouMean)===!1||r.results.length!==0||r.queryCorrections.length===0)return null;let i=this.getCurrentQuery(),{correctedQuery:a}=r.queryCorrections[0],o=await this.automaticallyRetryQueryWithCorrection(a);return gt(o.response)?(this.dispatch(va(o.response.error)),this.rejectWithValue(o.response.error)):(this.analyticsAction&&this.analyticsAction()(this.dispatch,()=>this.getStateAfterResponse(e.queryExecuted,e.duration,n,r),this.extra),this.dispatch(ma(ga(this.getState()))),{...o,response:{...o.response.success,queryCorrections:r.queryCorrections},automaticallyCorrected:!0,originalQuery:i,analyticsAction:Fy()})}async processQueryTriggersOrContinue(e){var t,n;let r=this.getSuccessResponse(e);if(!r)return null;let i=((t=r.triggers.find(s=>s.type==="query"))==null?void 0:t.content)||"";if(!i)return null;if(((n=this.getState().triggers)==null?void 0:n.queryModification.queryToIgnore)===i)return this.dispatch(p0("")),null;this.analyticsAction&&await this.dispatch(this.analyticsAction);let a=this.getCurrentQuery(),o=await this.automaticallyRetryQueryWithTriggerModification(i);return gt(o.response)?(this.dispatch(va(o.response.error)),this.rejectWithValue(o.response.error)):(this.dispatch(ma(ga(this.getState()))),{...o,response:{...o.response.success},automaticallyCorrected:!1,originalQuery:a,analyticsAction:f0()})}processSuccessReponse(e){return this.dispatch(ma(ga(this.getState()))),{...e,response:this.getSuccessResponse(e),automaticallyCorrected:!1,originalQuery:this.getCurrentQuery(),analyticsAction:this.analyticsAction}}getSuccessResponse(e){return Vv(e.response)?e.response.success:null}async automaticallyRetryQueryWithCorrection(e){this.onUpdateQueryForCorrection(e);let t=await this.fetchFromAPI(await un(this.getState()),{origin:"mainSearch"});return this.dispatch(Qu(e)),t}async automaticallyRetryQueryWithTriggerModification(e){return this.dispatch(h0({newQuery:e,originalQuery:this.getCurrentQuery()})),this.onUpdateQueryForCorrection(e),await this.fetchFromAPI(await un(this.getState()),{origin:"mainSearch"})}getStateAfterResponse(e,t,n,r){var i,a;return{...n,query:{q:e,enableQuerySyntax:(a=(i=n.query)==null?void 0:i.enableQuerySyntax)!=null?a:jn().enableQuerySyntax},search:{...kn(),duration:t,response:r,results:r.results}}}getCurrentQuery(){var e;let t=this.getState();return((e=t.query)==null?void 0:e.q)!==void 0?t.query.q:""}get extra(){return this.config.extra}getState(){return this.config.getState()}get dispatch(){return this.config.dispatch}get analyticsAction(){return this.config.analyticsAction}get rejectWithValue(){return this.config.rejectWithValue}};ke("search/prepareForSearchWithQuery",(e,t)=>{let{dispatch:n}=t;z(e,{q:new ce,enableQuerySyntax:new Ue,clearFilters:new Ue}),e.clearFilters&&(n(Ln()),n(o0())),n(Uu({allow:!0})),n(yo({q:e.q,enableQuerySyntax:e.enableQuerySyntax})),n(vo(1))});var Pe=ke("search/executeSearch",async(e,t)=>{let n=t.getState();I0(n);let{analyticsClientMiddleware:r,preprocessRequest:i,logger:a}=t.extra,{description:o}=await e.prepare({getState:()=>t.getState(),analyticsClientMiddleware:r,preprocessRequest:i,logger:a}),s=await un(n,o),l=new Oi({...t,analyticsAction:e}),u=await l.fetchFromAPI(s,{origin:"mainSearch"});return await l.process(u)}),ln=ke("search/fetchPage",async(e,t)=>{let n=t.getState();I0(n);let{analyticsClientMiddleware:r,preprocessRequest:i,logger:a}=t.extra,{description:o}=await e.prepare({getState:()=>t.getState(),analyticsClientMiddleware:r,preprocessRequest:i,logger:a}),s=new Oi({...t,analyticsAction:e}),l=await un(n,o),u=await s.fetchFromAPI(l,{origin:"mainSearch"});return await s.process(u)}),ur=ke("search/fetchMoreResults",async(e,t)=>{let n=t.getState(),{analyticsClientMiddleware:r,preprocessRequest:i,logger:a}=t.extra,{description:o}=await u1().prepare({getState:()=>t.getState(),analyticsClientMiddleware:r,preprocessRequest:i,logger:a}),s=new Oi({...t,analyticsAction:u1()}),l=await d7(n,o),u=await s.fetchFromAPI(l,{origin:"mainSearch"});return await s.process(u)}),$o=ke("search/fetchFacetValues",async(e,t)=>{let n=t.getState(),{analyticsClientMiddleware:r,preprocessRequest:i,logger:a}=t.extra,{description:o}=await e.prepare({getState:()=>t.getState(),analyticsClientMiddleware:r,preprocessRequest:i,logger:a}),s=new Oi({...t,analyticsAction:e}),l=await p7(n,o),u=await s.fetchFromAPI(l,{origin:"facetValues"});return await s.process(u)}),Ca=ke("search/fetchInstantResults",async(e,t)=>{z(e,{id:K,q:K,maxResultsPerQuery:new me({required:!0,min:1}),cacheTimeout:new me});let{q:n,maxResultsPerQuery:r}=e,i=t.getState(),a=new Oi({...t,analyticsAction:Iy()},u=>{t.dispatch(s0({q:u,id:e.id}))}),o=await f7(i,n,r),s=await a.fetchFromAPI(o,{origin:"instantResults",disableAbortWarning:!0}),l=await a.process(s);return"response"in l?{results:l.response.results,searchUid:l.response.searchUid,analyticsAction:l.analyticsAction}:l}),d7=async(e,t)=>{var n,r,i,a;let o=await un(e,t);return o.request={...o.request,firstResult:((r=(n=e.pagination)==null?void 0:n.firstResult)!=null?r:0)+((a=(i=e.search)==null?void 0:i.results.length)!=null?a:0)},o},f7=async(e,t,n)=>{let r=await Nu(e);return x0({...r,...e.didYouMean&&{enableDidYouMean:e.didYouMean.enableDidYouMean},numberOfResults:n,q:t})},p7=async(e,t)=>{let n=await un(e,t);return n.request.numberOfResults=0,n},I0=e=>{var t;e.configuration.analytics.enabled&&$r.addElement({name:"Query",...((t=e.query)==null?void 0:t.q)&&{value:e.query.q},time:JSON.stringify(new Date)})},h7=e=>t=>n=>{var r,i;let a=(r=n.payload)==null?void 0:r.analyticsAction;a!==void 0&&((i=n.payload)==null||delete i.analyticsAction);let o=t(n);return n.type===Pe.fulfilled.type&&a===void 0&&console.error("No analytics action associated with search:",n),n.type===ha.fulfilled&&a===void 0&&console.error("No analytics action associated with recommendation:",n),n.type===pa.fulfilled&&a===void 0&&console.error("No analytics action associated with product recommendation:",n),a!==void 0&&e.dispatch(a),o};function m7(e){return e.instantlyCallable}var g7=()=>e=>t=>e(m7(t)?t():t),v7=e=>()=>t=>n=>{var r;if(!n.error)return t(n);let i=n.error;if((r=n.payload)!=null&&r.ignored||e.error(i.stack||i.message||i.name||"Error",`Action dispatch error ${n.type}`,n),n.error.name!=="SchemaValidationError")return t(n)},y7=e=>t=>n=>r=>(e.debug({action:r,nextState:t.getState()},`Action dispatched: ${r.type}`),n(r)),E0=()=>({caseAssistId:"",locale:"en-US"}),q0=()=>({status:{loading:!1,error:null,lastResponseId:""},fields:{}}),A0=()=>({}),Zu=Ge(Cu()),C7=Ge(k9()),b7=Ge(x9());Zu.default.extend(b7.default);Zu.default.extend(C7.default);var R0="/rest/search/v2",jl="/rest/ua",xr=()=>({organizationId:"",accessToken:"",platformUrl:l1(),search:{apiBaseUrl:`${l1()}${R0}`,locale:"en-US",timezone:Zu.default.tz.guess(),authenticationProviders:[]},analytics:{enabled:!0,apiBaseUrl:`${Ev()}${jl}`,originContext:"Search",originLevel2:"default",originLevel3:"default",anonymous:!1,deviceId:"",userDisplayName:"",documentLocation:""}}),M0=()=>({status:{loading:!1,error:null,lastResponseId:""},documents:[]});function La(){return{uniqueId:"",content:"",isLoading:!1,position:-1,resultsWithPreview:[]}}function S7(e={}){return{configuration:xr(),caseAssistConfiguration:E0(),caseField:q0(),caseInput:A0(),documentSuggestion:M0(),debug:ki(),version:"unit-testing-version",resultPreview:La(),searchHub:Pn(),...e}}Ge(lo());var w7=e=>e;function $7(){return{results:[],loading:!1}}var k7=()=>({caseContext:{},caseId:"",caseNumber:""}),Pl=()=>({correctedQuery:"",wordCorrections:[],originalQuery:""});function T0(){return{enableDidYouMean:!1,wasCorrectedTo:"",wasAutomaticallyCorrected:!1,queryCorrection:Pl(),originalQuery:""}}function Ju(){return{}}var x7=["author","language","urihash","objecttype","collection","source","permanentid"],Gu=()=>({fieldsToInclude:x7,fetchAllFields:!1,fieldsDescription:[]}),O7=()=>({insightId:""}),I7=()=>({loading:!1,config:void 0}),E7=()=>({});function Ku(){return{}}var F0=()=>({url:"",clientId:"",additionalFields:[],advancedParameters:{debug:!1},products:[],facets:{results:[]},error:null,isLoading:!1,responseId:""}),za=(e=>(e.Relevance="relevance",e.Fields="fields",e))(za||{}),q7=(e=>(e.Ascending="asc",e.Descending="desc",e))(q7||{}),A7=()=>({by:"relevance"});function D0(){return A7()}function R7(e={}){return{configuration:xr(),productListing:F0(),sort:D0(),facetSearchSet:Ju(),categoryFacetSet:yi(),categoryFacetSearchSet:Ku(),dateFacetSet:Ci(),facetOptions:Co(),facetOrder:bo(),facetSet:Si(),numericFacetSet:bi(),pagination:zn(),version:"unit-testing-version",context:kr(),...e}}function M7(e={}){return{configuration:xr(),context:kr(),dictionaryFieldContext:xi(),searchHub:Pn(),productRecommendations:ju(),version:"unit-testing-version",...e}}function T7(e={}){return{configuration:xr(),advancedSearchQueries:xn(),context:kr(),dictionaryFieldContext:xi(),fields:Gu(),searchHub:Pn(),pipeline:$i(),recommendation:Br(),debug:ki(),version:"unit-testing-version",pagination:zn(),...e}}var F7=Ge(lo()),D7=e=>e,j7=e=>e,P7=e=>e;function U7(e){return new zv({logger:(0,F7.default)({level:"silent"}),preprocessRequest:w7,postprocessSearchResponseMiddleware:D7,postprocessFacetSearchResponseMiddleware:j7,postprocessQuerySuggestResponseMiddleware:P7,...e})}var _7=e=>({past:[],present:e,future:[]});function j0(){return{length:void 0}}var Xu=()=>({enabled:!1,fields:{collection:"foldingcollection",parent:"foldingparent",child:"foldingchild"},filterFieldRange:2,collections:{}}),Ul=()=>({liked:!1,disliked:!1,expanded:!1,feedbackModalOpen:!1,relatedQuestions:[]});function P0(){return{queries:[],maxLength:10}}function U0(){return{results:[],maxLength:10}}function _0(){return{}}var L0=()=>({redirectTo:"",query:"",executions:[],notifications:[],queryModification:{originalQuery:"",newQuery:"",queryToIgnore:""}});function z0(e={}){return{configuration:xr(),advancedSearchQueries:xn(),staticFilterSet:Wu(),facetSet:Si(),dateFacetSet:Ci(),numericFacetSet:bi(),categoryFacetSet:yi(),facetSearchSet:Ju(),categoryFacetSearchSet:Ku(),facetOptions:Co(),pagination:zn(),query:jn(),querySet:Bu(),instantResults:Hu(),tabSet:Yu(),querySuggest:{},search:kn(),sortCriteria:So(),context:kr(),dictionaryFieldContext:xi(),didYouMean:T0(),fields:Gu(),history:_7(d0()),pipeline:$i(),facetOrder:bo(),searchHub:Pn(),debug:ki(),resultPreview:La(),version:"unit-testing-version",folding:Xu(),triggers:L0(),questionAnswering:Ul(),standaloneSearchBoxSet:_0(),recentResults:U0(),recentQueries:P0(),excerptLength:j0(),...e}}function L7(e={}){let t=Ii(e,z0);return{...t,executeFirstSearch:jest.fn(),executeFirstSearchAfterStandaloneSearchBoxRedirect:jest.fn(),apiClient:t.apiClient}}function z7(e={}){return Ii(e,T7)}function V7(e={}){return Ii(e,M7)}function N7(e={}){return Ii(e,R7)}function Q7(e={}){return Ii(e,S7)}function Ii(e={},t,n=H7){let r=(0,F6.default)({level:"silent"}),i=f1(e,t),{store:a,apiClient:o}=n(r,i),s=a(i),l=()=>{},{state:u,...d}=e;return{store:s,apiClient:o,state:f1(e,t),subscribe:jest.fn(()=>l),get dispatch(){return s.dispatch},get actions(){return s.getActions()},findAsyncAction(f){let m=this.actions.find(y=>y.type===f.type);return B7(m)?m:void 0},logger:r,addReducers:jest.fn(),enableAnalytics:jest.fn(),disableAnalytics:jest.fn(),...d}}function f1(e,t){let n=e.state||t();return n.configuration.analytics.enabled=!1,n}var H7=e=>{let t={apiClient:U7({logger:e}),validatePayload:_n,logger:e};return{store:(0,D6.default)([g7,v7(e),h7,wl.withExtraArgument(t),...Ou(),y7(e)]),apiClient:t.apiClient}};function B7(e){return e?"meta"in e:!1}function V0(e={}){return{urihash:"",parents:"",sfid:"",sfparentid:"",sfinsertedbyid:"",documenttype:"",sfcreatedbyid:"",permanentid:"",date:0,objecttype:"",sourcetype:"",sftitle:"",size:0,sffeeditemid:"",clickableuri:"",sfcreatedby:"",source:"",collection:"",connectortype:"",filetype:"",sfcreatedbyname:"",sflikecount:0,language:[],...e}}function W7(e={}){return{title:"",uri:"",printableUri:"",clickUri:"",uniqueId:"",excerpt:"",firstSentences:"",summary:null,flags:"",hasHtmlVersion:!1,score:0,percentScore:0,rankingInfo:null,isTopResult:!1,isRecommendation:!1,titleHighlights:[],firstSentencesHighlights:[],excerptHighlights:[],printableUriHighlights:[],summaryHighlights:[],absentTerms:[],raw:V0(),...e}}var Y7={};yu(Y7,{escape:()=>er,getHighlightedSuggestion:()=>J7,highlightString:()=>Z7});function Z7(e){if(ws(e.openingDelimiter)||ws(e.closingDelimiter))throw Error("delimiters should be a non-empty string");if(be(e.content)||ws(e.content))return e.content;if(e.highlights.length===0)return er(e.content);let t=e.content.length,n="",r=0;for(let i=0;i<e.highlights.length;i++){let a=e.highlights[i],o=a.offset,s=o+a.length;if(s>t)break;n+=er(e.content.slice(r,o)),n+=e.openingDelimiter,n+=er(e.content.slice(o,s)),n+=e.closingDelimiter,r=s}return r!==t&&(n+=er(e.content.slice(r))),n}function J7(e,t){return e=er(e),e.replace(/\[(.*?)\]|\{(.*?)\}|\((.*?)\)/g,(n,r,i,a)=>r?$s(r,t.notMatchDelimiters):i?$s(i,t.exactMatchDelimiters):a?$s(a,t.correctionDelimiters):n)}function $s(e,t){return t?t.open+e+t.close:e}function er(e){let t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},n="(?:"+Object.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return r.test(e)?e.replace(i,a=>t[a]):e}var ec=e=>z(e,{evt:K,type:Ie}),G7=e=>te("analytics/generic/search",ee.Search,t=>{ec(e);let{evt:n,meta:r}=e;return t.makeSearchEvent(n,r)}),K7=e=>te("analytics/generic/click",ee.Click,(t,n)=>(r0(e.result),ec(e),t.makeClickEvent(e.evt,ay(e.result,n),sy(e.result),e.meta))),X7=e=>te("analytics/generic/custom",ee.Custom,t=>(ec(e),t.makeCustomEventWithType(e.evt,e.type,e.meta))),e8=()=>te("analytics/interface/load",ee.Search,e=>e.makeInterfaceLoad()),t8=()=>te("analytics/interface/change",ee.Search,(e,t)=>e.makeInterfaceChange({interfaceChangeTo:t.configuration.analytics.originLevel2})),n8=()=>te("analytics/interface/searchFromLink",ee.Search,e=>e.makeSearchFromLink()),r8=e=>te("analytics/interface/omniboxFromLink",ee.Search,t=>t.makeOmniboxFromLink(e)),ks=()=>Ie,N0=()=>K,i8=D("configuration/updateBasicConfiguration",e=>z(e,{accessToken:Ie,organizationId:Ie,platformUrl:Ie})),tc=D("configuration/updateSearchConfiguration",e=>z(e,{apiBaseUrl:Ie,pipeline:new ce({required:!1,emptyAllowed:!0}),searchHub:Ie,timezone:Ie,locale:Ie,authenticationProviders:new Ne({required:!1,each:K})})),a8=D("configuration/updateAnalyticsConfiguration",e=>(ny()&&(e.enabled=!1),z(e,{enabled:new Ue({default:!0}),originContext:ks(),originLevel2:ks(),originLevel3:ks(),apiBaseUrl:Ie,runtimeEnvironment:new at,anonymous:new Ue({default:!1}),deviceId:Ie,userDisplayName:Ie,documentLocation:Ie}))),o8=D("configuration/analytics/disable"),s8=D("configuration/analytics/enable"),l8=D("configuration/analytics/originlevel2",e=>z(e,{originLevel2:N0()})),u8=D("configuration/analytics/originlevel3",e=>z(e,{originLevel3:N0()})),ko=(e,t)=>{let n=e;return be(n[t])?be(e.raw[t])?null:e.raw[t]:n[t]},c8=e=>t=>e.every(n=>!be(ko(t,n))),d8=e=>t=>e.every(n=>be(ko(t,n))),f8=(e,t)=>n=>{let r=Q0(e,n);return t.some(i=>r.some(a=>`${a}`.toLowerCase()===i.toLowerCase()))},p8=(e,t)=>n=>{let r=Q0(e,n);return t.every(i=>r.every(a=>`${a}`.toLowerCase()!==i.toLowerCase()))},Q0=(e,t)=>{let n=ko(t,e);return Xf(n)?n:[n]};function h8(e){return e.search.response.searchUid!==""}var m8={q:new ce,enableQuerySyntax:new Ue,aq:new ce,cq:new ce,firstResult:new me({min:0}),numberOfResults:new me({min:0}),sortCriteria:new ce,f:new ge,cf:new ge,nf:new ge,df:new ge,debug:new Ue,sf:new ge,tab:new ce},yt=D("searchParameters/restore",e=>z(e,m8)),on=()=>new ce({required:!1,emptyAllowed:!0}),g8=D("advancedSearchQueries/update",e=>z(e,{aq:on(),cq:on(),lq:on(),dq:on()})),v8=D("advancedSearchQueries/register",e=>z(e,{aq:on(),cq:on(),lq:on(),dq:on()}));ae(xn(),e=>{e.addCase(g8,(t,n)=>{let{aq:r,cq:i,lq:a,dq:o}=n.payload;ut(r)||(t.aq=r,t.aqWasSet=!0),ut(i)||(t.cq=i,t.cqWasSet=!0),ut(a)||(t.lq=a,t.lqWasSet=!0),ut(o)||(t.dq=o,t.dqWasSet=!0)}).addCase(v8,(t,n)=>{let{aq:r,cq:i,lq:a,dq:o}=n.payload;ut(r)||(t.defaultFilters.aq=r,t.aqWasSet||(t.aq=r)),ut(i)||(t.defaultFilters.cq=i,t.cqWasSet||(t.cq=i)),ut(a)||(t.defaultFilters.lq=a,t.lqWasSet||(t.lq=a)),ut(o)||(t.defaultFilters.dq=o,t.dqWasSet||(t.dq=o))}).addCase(tt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.advancedSearchQueries)!=null?i:t}).addCase(yt,(t,n)=>{let{aq:r,cq:i}=n.payload;ut(r)||(t.aq=r,t.aqWasSet=!0),ut(i)||(t.cq=i,t.cqWasSet=!0)})});var H0=new ge({options:{required:!0},values:{articleLanguage:Ie,articlePublishStatus:Ie,articleVersionNumber:Ie,caseId:K,knowledgeArticleId:Ie,name:Ie,permanentId:Ie,resultUrl:Ie,source:Ie,title:K,uriHash:Ie}}),y8=D("insight/attachToCase/setAttachedResults",e=>z(e,{results:new Ne({each:H0}),loading:new Ue({required:!1,default:!1})})),C8=D("insight/attachToCase/attach",e=>B0(e)),b8=D("insight/attachToCase/detach",e=>B0(e)),B0=e=>be(e.result.permanentId)&&be(e.result.uriHash)?{payload:e,error:Un(new Ru("Either permanentId or uriHash is required"))}:z(e,{result:H0});ae($7(),e=>{e.addCase(y8,(t,n)=>{var r;let{results:i,loading:a}=n.payload;"results"in t&&((r=t.results)==null?void 0:r.length)>0||(t.results=i,a&&(t.loading=a))}).addCase(C8,(t,n)=>{(!be(n.payload.result.permanentId)||!be(n.payload.result.uriHash))&&(t.results=[...t.results,n.payload.result])}).addCase(b8,(t,n)=>{t.results=t.results.filter(r=>S8(r,n.payload.result))})});var S8=(e,t)=>{let n=!be(e.permanentId)&&(e==null?void 0:e.permanentId)===(t==null?void 0:t.permanentId),r=!be(e.uriHash)&&(e==null?void 0:e.uriHash)===(t==null?void 0:t.uriHash);return e.caseId!==t.caseId||!n&&!r},w8=D("caseAssistConfiguration/set",e=>z(e,{caseAssistId:K,locale:Ie}));ae(E0(),e=>{e.addCase(w8,(t,n)=>{t.caseAssistId=n.payload.caseAssistId,t.locale=n.payload.locale})});var $8=D("insight/caseContext/set",e=>{let t=new ge({options:{required:!0}}),n=z(e,t).error;if(n)return{payload:e,error:n};let r=Object.values(e),i=new Ne({each:Be}),a=z(r,i).error;return a?{payload:e,error:a}:{payload:e}}),k8=D("insight/caseId/set",e=>{let t=z(e,Be).error;return t?{payload:e,error:t}:{payload:e}}),x8=D("insight/caseNumber/set",e=>{let t=z(e,Be).error;return t?{payload:e,error:t}:{payload:e}});ae(k7(),e=>{e.addCase($8,(t,n)=>{t.caseContext=n.payload}).addCase(k8,(t,n)=>{t.caseId=n.payload}).addCase(x8,(t,n)=>{t.caseNumber=n.payload})});var W0=e=>Object.keys(e).filter(t=>e[t].value!=="").reduce((t,n)=>({...t,[n]:e[n].value}),{}),O8=D("caseAssist/caseField/register",e=>z(e,{fieldName:K,fieldValue:Be})),I8=D("caseAssist/caseField/update",e=>z(e,{fieldName:K,fieldValue:Be})),xs=ke("caseAssist/classifications/fetch",async(e,{getState:t,rejectWithValue:n,extra:{apiClient:r}})=>{let i=t(),a=await r.getCaseClassifications(await E8(i));return gt(a)?n(a.error):{response:a.success}}),E8=async e=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.platformUrl,caseAssistId:e.caseAssistConfiguration.caseAssistId,...e.configuration.analytics.enabled&&{visitorId:await Ut(e.configuration.analytics)},fields:e.caseInput,context:e.caseField?W0(e.caseField.fields):void 0,locale:e.caseAssistConfiguration.locale,debug:e.debug});ae(q0(),e=>{e.addCase(O8,(t,n)=>{let{fieldName:r,fieldValue:i}=n.payload;t.fields[r]={value:i,suggestions:[]}}).addCase(I8,(t,n)=>{let{fieldName:r,fieldValue:i}=n.payload;t.fields[r].value=i}).addCase(xs.rejected,(t,n)=>{var r;t.status.error=(r=n.payload)!=null?r:null,t.status.loading=!1}).addCase(xs.fulfilled,(t,n)=>{let r={value:"",suggestions:[]};Object.entries(n.payload.response.fields).forEach(([i,a])=>{t.fields[i]||(t.fields[i]={...r}),t.fields[i].suggestions=a.predictions}),t.status.lastResponseId=n.payload.response.responseId,t.status.error=null,t.status.loading=!1}).addCase(xs.pending,t=>{t.status.loading=!0})});var q8=D("caseAssist/caseInput/update",e=>z(e,{fieldName:K,fieldValue:Be}));ae(A0(),e=>{e.addCase(q8,(t,n)=>{t[n.payload.fieldName]={value:n.payload.fieldValue}})});var A8=D("tab/register",e=>{let t=new ge({values:{id:K,expression:Be}});return z(e,t)}),Y0=D("tab/updateActiveTab",e=>z(e,K));function R8(e,t){if(/^https:\/\/platform(dev|stg|hipaa)?(-)?(eu|au)?\.cloud\.coveo\.com/.test(e))return e.replace(/^(https:\/\/)platform/,"$1analytics")+jl;let n=e.match(new RegExp(`^https://(${t}\\.org)\\.coveo.com`));return n?e.replace(n[1],"analytics.cloud")+jl:e}var M8=ae(xr(),e=>e.addCase(i8,(t,n)=>{n.payload.accessToken&&(t.accessToken=n.payload.accessToken),n.payload.organizationId&&(t.organizationId=n.payload.organizationId),n.payload.platformUrl&&(t.platformUrl=n.payload.platformUrl,t.search.apiBaseUrl=`${n.payload.platformUrl}${R0}`,t.analytics.apiBaseUrl=R8(n.payload.platformUrl,t.organizationId))}).addCase(tc,(t,n)=>{n.payload.apiBaseUrl&&(t.search.apiBaseUrl=n.payload.apiBaseUrl),n.payload.locale&&(t.search.locale=n.payload.locale),n.payload.timezone&&(t.search.timezone=n.payload.timezone),n.payload.authenticationProviders&&(t.search.authenticationProviders=n.payload.authenticationProviders)}).addCase(a8,(t,n)=>{be(n.payload.enabled)||(!n.payload.enabled&&t.analytics.enabled&&a1(t.analytics),t.analytics.enabled=n.payload.enabled),be(n.payload.originContext)||(t.analytics.originContext=n.payload.originContext),be(n.payload.originLevel2)||(t.analytics.originLevel2=n.payload.originLevel2),be(n.payload.originLevel3)||(t.analytics.originLevel3=n.payload.originLevel3),be(n.payload.apiBaseUrl)||(t.analytics.apiBaseUrl=n.payload.apiBaseUrl),be(n.payload.runtimeEnvironment)||(t.analytics.runtimeEnvironment=n.payload.runtimeEnvironment),be(n.payload.anonymous)||(t.analytics.anonymous=n.payload.anonymous),be(n.payload.deviceId)||(t.analytics.deviceId=n.payload.deviceId),be(n.payload.userDisplayName)||(t.analytics.userDisplayName=n.payload.userDisplayName),be(n.payload.documentLocation)||(t.analytics.documentLocation=n.payload.documentLocation)}).addCase(o8,t=>{t.analytics.enabled=!1,a1(t.analytics)}).addCase(s8,t=>{t.analytics.enabled=!0}).addCase(l8,(t,n)=>{t.analytics.originLevel2=n.payload.originLevel2}).addCase(u8,(t,n)=>{t.analytics.originLevel3=n.payload.originLevel3}).addCase(Y0,(t,n)=>{t.analytics.originLevel2=n.payload}).addCase(yt,(t,n)=>{t.analytics.originLevel2=n.payload.tab||t.analytics.originLevel2})),T8=new Ne({each:K,required:!0}),Z0=(e,t)=>(z(e,K),Mu(t)?z(t,K):z(t,T8),{payload:{contextKey:e,contextValue:t}}),J0=D("context/set",e=>{for(let[t,n]of Object.entries(e))Z0(t,n);return{payload:e}}),G0=D("context/add",e=>Z0(e.contextKey,e.contextValue)),K0=D("context/remove",e=>z(e,K)),F8=ae(kr(),e=>{e.addCase(J0,(t,n)=>{t.contextValues=n.payload}).addCase(G0,(t,n)=>{t.contextValues[n.payload.contextKey]=n.payload.contextValue}).addCase(K0,(t,n)=>{delete t.contextValues[n.payload]}).addCase(tt.fulfilled,(t,n)=>{!n.payload||(t.contextValues=n.payload.context.contextValues)})}),D8=D("debug/enable"),j8=D("debug/disable");ae(ki(),e=>{e.addCase(D8,()=>!0).addCase(j8,()=>!1).addCase(yt,(t,n)=>{var r;return(r=n.payload.debug)!=null?r:t})});ae(Jf,e=>e);var P8=D("dictionaryFieldContext/set",e=>{let t=new ge({options:{required:!0}}),n=z(e,t).error;if(n)return{payload:e,error:n};let r=Object.values(e),i=new Ne({each:Be}),a=z(r,i).error;return a?{payload:e,error:a}:{payload:e}}),U8=D("dictionaryFieldContext/add",e=>{let t=new ge({options:{required:!0},values:{field:Be,key:Be}});return z(e,t)}),_8=D("dictionaryFieldContext/remove",e=>z(e,Be));ae(xi(),e=>{e.addCase(P8,(t,n)=>{t.contextValues=n.payload}).addCase(U8,(t,n)=>{let{field:r,key:i}=n.payload;t.contextValues[r]=i}).addCase(_8,(t,n)=>{delete t.contextValues[n.payload]}).addCase(tt.fulfilled,(t,n)=>{!n.payload||(t.contextValues=n.payload.dictionaryFieldContext.contextValues)})});ae(T0(),e=>{e.addCase(Ry,t=>{t.enableDidYouMean=!0}).addCase(My,t=>{t.enableDidYouMean=!1}).addCase(Pe.pending,t=>{t.queryCorrection=Pl(),t.wasAutomaticallyCorrected=!1,t.wasCorrectedTo=""}).addCase(Pe.fulfilled,(t,n)=>{t.queryCorrection=n.payload.response.queryCorrections[0]||Pl(),t.originalQuery=n.payload.originalQuery,t.wasAutomaticallyCorrected=n.payload.automaticallyCorrected}).addCase(Qu,(t,n)=>{t.wasCorrectedTo=n.payload})});var Os=ke("caseAssist/documentSuggestions/fetch",async(e,{getState:t,rejectWithValue:n,extra:{apiClient:r}})=>{let i=t(),a=await r.getDocumentSuggestions(await L8(i));return gt(a)?n(a.error):{response:a.success}}),L8=async e=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.platformUrl,caseAssistId:e.caseAssistConfiguration.caseAssistId,...e.configuration.analytics.enabled&&{visitorId:await Ut(e.configuration.analytics)},fields:e.caseInput,context:e.caseField?W0(e.caseField.fields):void 0,locale:e.caseAssistConfiguration.locale,debug:e.debug});ae(M0(),e=>{e.addCase(Os.rejected,(t,n)=>{var r;t.status.error=(r=n.payload)!=null?r:null,t.status.loading=!1}).addCase(Os.fulfilled,(t,n)=>{t.documents=n.payload.response.documents,t.status.lastResponseId=n.payload.response.responseId,t.status.error=null,t.status.loading=!1}).addCase(Os.pending,t=>{t.status.loading=!0})});var z8=D("excerptLength/set",e=>z(e,new me({min:0,required:!0})));ae(j0(),e=>{e.addCase(z8,(t,n)=>{t.length=n.payload})});var fe=K,V8={state:new at({required:!0}),numberOfResults:new me({required:!0,min:0}),value:new ce({required:!0,emptyAllowed:!0}),path:new Ne({required:!0,each:K}),moreValuesAvailable:new Ue({required:!1})};function X0(e){e.children.forEach(t=>{X0(t)}),_n({state:e.state,numberOfResults:e.numberOfResults,value:e.value,path:e.path,moreValuesAvailable:e.moreValuesAvailable},V8)}var N8={facetId:fe,field:K,delimitingCharacter:new ce({required:!1,emptyAllowed:!0}),filterFacetCount:new Ue({required:!1}),injectionDepth:new me({required:!1,min:0}),numberOfValues:new me({required:!1,min:1}),sortCriteria:new at({required:!1}),basePath:new Ne({required:!1,each:K}),filterByBasePath:new Ue({required:!1})},ep=D("categoryFacet/register",e=>z(e,N8)),tp=D("categoryFacet/toggleSelectValue",e=>{try{return _n(e.facetId,K),X0(e.selection),{payload:e,error:null}}catch(t){return{payload:e,error:Un(t)}}}),np=D("categoryFacet/deselectAll",e=>z(e,fe)),Q8=D("categoryFacet/updateNumberOfValues",e=>z(e,{facetId:fe,numberOfValues:new me({required:!0,min:1})})),H8=D("categoryFacet/updateSortCriterion",e=>z(e,{facetId:fe,criterion:new at})),B8=new ge({options:{required:!1},values:{type:new ce({constrainTo:["simple"],emptyAllowed:!1,required:!0}),values:new Ne({required:!0,max:25,each:new ce({emptyAllowed:!1,required:!0})})}}),rp={value:K,numberOfResults:new me({min:0}),state:K},W8={facetId:fe,field:new ce({required:!0,emptyAllowed:!0}),filterFacetCount:new Ue({required:!1}),injectionDepth:new me({required:!1,min:0}),numberOfValues:new me({required:!1,min:1}),sortCriteria:new at({required:!1}),allowedValues:B8},ip=D("facet/register",e=>z(e,W8)),nc=D("facet/toggleSelectValue",e=>z(e,{facetId:fe,selection:new ge({values:rp})})),xo=D("facet/deselectAll",e=>z(e,fe)),Y8=D("facet/updateSortCriterion",e=>z(e,{facetId:fe,criterion:new at({required:!0})})),Z8=D("facet/updateNumberOfValues",e=>z(e,{facetId:fe,numberOfValues:new me({required:!0,min:1})})),J8=D("facet/updateIsFieldExpanded",e=>z(e,{facetId:fe,isFieldExpanded:new Ue({required:!0})})),G8=D("facet/updateFreezeCurrentValues",e=>z(e,{facetId:fe,freezeCurrentValues:new Ue({required:!0})}));function K8(e){var t,n;let r=p1(e.start,e),i=p1(e.end,e),a=(t=e.endInclusive)!=null?t:!1,o=(n=e.state)!=null?n:"idle";return{start:r,end:i,endInclusive:a,state:o}}function p1(e,t){let{dateFormat:n}=t;return Gy(e)?(c1(e),Jy(e)):typeof e=="string"&&ni(e)?(c1(e),e):(Yy(e,n),g0(_a(e,n)))}var ap=D("rangeFacet/updateSortCriterion",e=>z(e,{facetId:fe,criterion:new at({required:!0})})),Oo={state:K,start:new me({required:!0}),end:new me({required:!0}),endInclusive:new Ue({required:!0}),numberOfResults:new me({required:!0,min:0})},Io={start:K,end:K,endInclusive:new Ue({required:!0}),state:K,numberOfResults:new me({required:!0,min:0})},rc=e=>({facetId:fe,selection:typeof e.start=="string"?new ge({values:Io}):new ge({values:Oo})}),X8={start:K,end:K,endInclusive:new Ue({required:!0}),state:K},e4={facetId:fe,field:K,currentValues:new Ne({required:!1,each:new ge({values:X8})}),generateAutomaticRanges:new Ue({required:!0}),filterFacetCount:new Ue({required:!1}),injectionDepth:new me({required:!1,min:0}),numberOfValues:new me({required:!1,min:1}),sortCriteria:new at({required:!1}),rangeAlgorithm:new at({required:!1})};function h1(e){return ni(e)?Fl(e):e}function op(e){!e.currentValues||e.currentValues.forEach(t=>{let{start:n,end:r}=K8(t);if(_a(h1(n)).isAfter(_a(h1(r))))throw new Error(`The start value is greater than the end value for the date range ${t.start} to ${t.end}`)})}var sp=D("dateFacet/register",e=>{try{return _n(e,e4),op(e),{payload:e,error:null}}catch(t){return{payload:e,error:Un(t)}}}),ic=D("dateFacet/toggleSelectValue",e=>z(e,{facetId:fe,selection:new ge({values:Io})})),lp=D("dateFacet/updateFacetValues",e=>{try{return _n(e,{facetId:fe,values:new Ne({each:new ge({values:Io})})}),op({currentValues:e.values}),{payload:e,error:null}}catch(t){return{payload:e,error:Un(t)}}}),t4=ap,n4=xo,r4={state:K,start:new me({required:!0}),end:new me({required:!0}),endInclusive:new Ue({required:!0})},i4={facetId:fe,field:K,currentValues:new Ne({required:!1,each:new ge({values:r4})}),generateAutomaticRanges:new Ue({required:!0}),filterFacetCount:new Ue({required:!1}),injectionDepth:new me({required:!1,min:0}),numberOfValues:new me({required:!1,min:1}),sortCriteria:new at({required:!1}),rangeAlgorithm:new at({required:!1})};function up(e){!e.currentValues||e.currentValues.forEach(({start:t,end:n})=>{if(t>n)throw new Error(`The start value is greater than the end value for the numeric range ${t} to ${n}`)})}var cp=D("numericFacet/register",e=>{try{return z(e,i4),up(e),{payload:e,error:null}}catch(t){return{payload:e,error:Un(t)}}}),ac=D("numericFacet/toggleSelectValue",e=>z(e,{facetId:fe,selection:new ge({values:Oo})})),dp=D("numericFacet/updateFacetValues",e=>{try{return _n(e,{facetId:fe,values:new Ne({each:new ge({values:Oo})})}),up({currentValues:e.values}),{payload:e,error:null}}catch(t){return{payload:e,error:Un(t)}}}),a4=ap,o4=xo,Eo=D("facetOptions/update",e=>z(e,{freezeFacetOrder:new Ue({required:!1})})),s4=D("facetOptions/facet/enable",e=>z(e,fe)),Ei=D("facetOptions/facet/disable",e=>z(e,fe));ae(Co(),e=>{e.addCase(Eo,(t,n)=>({...t,...n.payload})).addCase(Pe.fulfilled,t=>{t.freezeFacetOrder=!1}).addCase(Pe.rejected,t=>{t.freezeFacetOrder=!1}).addCase(tt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.facetOptions)!=null?i:t}).addCase(ep,(t,n)=>{t.facets[n.payload.facetId]=jr()}).addCase(ip,(t,n)=>{t.facets[n.payload.facetId]=jr()}).addCase(sp,(t,n)=>{t.facets[n.payload.facetId]=jr()}).addCase(cp,(t,n)=>{t.facets[n.payload.facetId]=jr()}).addCase(s4,(t,n)=>{t.facets[n.payload].enabled=!0}).addCase(Ei,(t,n)=>{t.facets[n.payload].enabled=!1}).addCase(yt,(t,n)=>{var r,i,a,o;[...Object.keys((r=n.payload.f)!=null?r:{}),...Object.keys((i=n.payload.cf)!=null?i:{}),...Object.keys((a=n.payload.nf)!=null?a:{}),...Object.keys((o=n.payload.df)!=null?o:{})].forEach(s=>{s in t||(t.facets[s]=jr()),t.facets[s].enabled=!0})})});var oc={facetId:fe,captions:new ge({options:{required:!1}}),numberOfValues:new me({required:!1,min:1}),query:new ce({required:!1,emptyAllowed:!0})},l4={path:new Ne({required:!0,each:K}),displayValue:Be,rawValue:Be,count:new me({required:!0,min:0})},fp=D("categoryFacet/selectSearchResult",e=>z(e,{facetId:fe,value:new ge({values:l4})})),u4=D("categoryFacetSearch/register",e=>z(e,oc));function sc(e,t){var n;let{facetId:r,criterion:i}=t,a=(n=e[r])==null?void 0:n.request;!a||(a.sortCriteria=i)}function ia(e){!e||(e.currentValues=e.currentValues.map(t=>({...t,state:"idle"})),e.preventAutoSelect=!0)}function pp(e,t){!e||(e.numberOfValues=t)}function Is(e,t){let n=e[t];!n||(n.request.numberOfValues=n.initialNumberOfValues,n.request.currentValues=[],n.request.preventAutoSelect=!0)}function m1(e,t,n){e.currentValues=c4(t,n),e.numberOfValues=t.length?1:n,e.preventAutoSelect=!0}function c4(e,t){if(!e.length)return[];let n=g1(e[0],t),r=n;for(let i of e.splice(1)){let a=g1(i,t);r.children.push(a),r=a}return r.state="selected",r.retrieveChildren=!0,[n]}function g1(e,t){return{value:e,retrieveCount:t,children:[],state:"idle",retrieveChildren:!1}}ae(yi(),e=>{e.addCase(ep,(t,n)=>{let r=n.payload,{facetId:i}=r;if(i in t)return;let a=p4(r),o=a.numberOfValues;t[i]={request:a,initialNumberOfValues:o}}).addCase(tt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.categoryFacetSet)!=null?i:t}).addCase(yt,(t,n)=>{let r=n.payload.cf||{};Object.keys(t).forEach(i=>{let a=t[i].request,o=r[i]||[];(o.length||a.currentValues.length)&&m1(a,o,t[i].initialNumberOfValues)})}).addCase(H8,(t,n)=>{var r;let{facetId:i,criterion:a}=n.payload,o=(r=t[i])==null?void 0:r.request;!o||(o.sortCriteria=a)}).addCase(tp,(t,n)=>{var r;let{facetId:i,selection:a,retrieveCount:o}=n.payload,s=(r=t[i])==null?void 0:r.request;if(!s)return;let{path:l}=a,u=l.slice(0,l.length-1),d=f4(s,u,o);if(d.length){let m=d[0];m.retrieveChildren=!0,m.state="selected",m.children=[];return}let f=hp(a.value,o);f.state="selected",d.push(f),s.numberOfValues=1}).addCase(np,(t,n)=>{let r=n.payload;Is(t,r)}).addCase(Ln,t=>{Object.keys(t).forEach(n=>Is(t,n))}).addCase(Uu,(t,n)=>Object.keys(t).forEach(r=>{t[r].request.preventAutoSelect=!n.payload.allow})).addCase(Q8,(t,n)=>{var r;let{facetId:i,numberOfValues:a}=n.payload,o=(r=t[i])==null?void 0:r.request;if(o){if(!o.currentValues.length)return pp(o,a);h4(t,n.payload)}}).addCase(fp,(t,n)=>{let{facetId:r,value:i}=n.payload,a=t[r];if(!a)return;let o=[...i.path,i.rawValue];m1(a.request,o,a.initialNumberOfValues)}).addCase($o.fulfilled,(t,n)=>{v1(t,n.payload.response.facets)}).addCase(Pe.fulfilled,(t,n)=>{v1(t,n.payload.response.facets)}).addCase(Ei,(t,n)=>{Is(t,n.payload)})});var d4={delimitingCharacter:";",filterFacetCount:!0,injectionDepth:1e3,numberOfValues:5,sortCriteria:"occurrences",basePath:[],filterByBasePath:!0};function f4(e,t,n){let r=e.currentValues;for(let i of t){let a=r[0];(!a||i!==a.value)&&(a=hp(i,n),r.length=0,r.push(a)),a.retrieveChildren=!1,a.state="idle",r=a.children}return r}function p4(e){return{...d4,currentValues:[],preventAutoSelect:!1,type:"hierarchical",...e}}function hp(e,t){return{value:e,state:"idle",children:[],retrieveChildren:!0,retrieveCount:t}}function v1(e,t){t.forEach(n=>{var r;if(!m4(e,n))return;let i=n.facetId,a=(r=e[i])==null?void 0:r.request;if(!a)return;let o=g4(a,n);a.currentValues=o?[]:a.currentValues,a.preventAutoSelect=!1})}function h4(e,t){var n;let{facetId:r,numberOfValues:i}=t,a=(n=e[r])==null?void 0:n.request.currentValues[0];if(a){for(;a.children.length&&(a==null?void 0:a.state)!=="selected";)a=a.children[0];a.retrieveCount=i}}function m4(e,t){return t.facetId in e}function g4(e,t){let n=ti(e.currentValues).parents,r=ti(t.values).parents;return n.length!==r.length}ae(bo(),e=>{e.addCase(Pe.fulfilled,(t,n)=>n.payload.response.facets.map(r=>r.facetId)).addCase(tt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.facetOrder)!=null?i:t})});function mp(e,t,n){let{facetId:r}=t;if(e[r])return;let i=!1,a={...Sp,...t},o=n();e[r]={options:a,isLoading:i,response:o,initialNumberOfValues:a.numberOfValues,requestId:""}}function gp(e,t){let{facetId:n,...r}=t,i=e[n];!i||(i.options={...i.options,...r})}function vp(e,t,n){let r=e[t];!r||(r.requestId=n,r.isLoading=!0)}function yp(e,t){let n=e[t];!n||(n.isLoading=!1)}function Cp(e,t,n){let{facetId:r,response:i}=t,a=e[r];!a||a.requestId===n&&(a.isLoading=!1,a.response=i)}function lc(e,t,n){let{facetId:r}=t,i=e[r];!i||(i.requestId="",i.isLoading=!1,i.response=n(),i.options.numberOfValues=i.initialNumberOfValues,i.options.query=Sp.query)}function bp(e,t){Object.keys(e).forEach(n=>lc(e,{facetId:n},t))}var Sp={captions:{},numberOfValues:10,query:""},v4=async(e,t,n)=>{let r=t.categoryFacetSearchSet[e].options,i=t.categoryFacetSet[e].request,{captions:a,query:o,numberOfValues:s}=r,{field:l,delimitingCharacter:u,basePath:d,filterFacetCount:f}=i,m=y4(i),y=m.length?[m]:[],g=`*${o}*`;return{url:t.configuration.search.apiBaseUrl,accessToken:t.configuration.accessToken,organizationId:t.configuration.organizationId,...t.configuration.search.authenticationProviders.length&&{authentication:t.configuration.search.authenticationProviders.join(",")},basePath:d,captions:a,numberOfValues:s,query:g,field:l,delimitingCharacter:u,ignorePaths:y,filterFacetCount:f,type:"hierarchical",...n?{}:{searchContext:(await un(t)).request}}},y4=e=>{let t=[],n=e.currentValues[0];for(;n;)t.push(n.value),n=n.children[0];return t},C4=async(e,t,n)=>{let{captions:r,query:i,numberOfValues:a}=t.facetSearchSet[e].options,{field:o,currentValues:s,filterFacetCount:l}=t.facetSet[e].request,u=s.filter(f=>f.state!=="idle").map(f=>f.value),d=`*${i}*`;return{url:t.configuration.search.apiBaseUrl,accessToken:t.configuration.accessToken,organizationId:t.configuration.organizationId,...t.configuration.search.authenticationProviders&&{authentication:t.configuration.search.authenticationProviders.join(",")},captions:r,numberOfValues:a,query:d,field:o,ignoreValues:u,filterFacetCount:l,type:"specific",...n?{}:{searchContext:(await un(t)).request}}},wp=e=>async(t,{getState:n,extra:{apiClient:r,validatePayload:i}})=>{let a=n(),o;i(t,K),b4(a,t)?o=await C4(t,a,e):o=await v4(t,a,e);let s=await r.facetSearch(o);return{facetId:t,response:s}},cr=ke("facetSearch/executeSearch",wp(!1));ke("facetSearch/executeSearch",wp(!0));var $p=D("facetSearch/clearResults",e=>z(e,{facetId:fe})),b4=(e,t)=>e.facetSearchSet!==void 0&&e.facetSet!==void 0&&e.facetSet[t]!==void 0,S4={facetId:fe,value:new ge({values:{displayValue:Be,rawValue:Be,count:new me({required:!0,min:0})}})},w4=D("facetSearch/register",e=>z(e,oc)),kp=D("facetSearch/update",e=>z(e,oc)),xp=D("facetSearch/toggleSelectValue",e=>z(e,S4));ae(Ku(),e=>{e.addCase(u4,(t,n)=>{let r=n.payload;mp(t,r,Es)}).addCase(kp,(t,n)=>{gp(t,n.payload)}).addCase(cr.pending,(t,n)=>{let r=n.meta.arg;vp(t,r,n.meta.requestId)}).addCase(cr.rejected,(t,n)=>{let r=n.meta.arg;yp(t,r)}).addCase(cr.fulfilled,(t,n)=>{Cp(t,n.payload,n.meta.requestId)}).addCase($p,(t,{payload:{facetId:n}})=>{lc(t,{facetId:n},Es)}).addCase(Pe.fulfilled,t=>{bp(t,Es)})});function Es(){return{moreValuesAvailable:!1,values:[]}}ae(Ju(),e=>{e.addCase(w4,(t,n)=>{let r=n.payload;mp(t,r,qs)}).addCase(kp,(t,n)=>{gp(t,n.payload)}).addCase(cr.pending,(t,n)=>{let r=n.meta.arg;vp(t,r,n.meta.requestId)}).addCase(cr.rejected,(t,n)=>{let r=n.meta.arg;yp(t,r)}).addCase(cr.fulfilled,(t,n)=>{Cp(t,n.payload,n.meta.requestId)}).addCase($p,(t,{payload:n})=>{lc(t,n,qs)}).addCase(Pe.fulfilled,t=>{bp(t,qs)})});function qs(){return{moreValuesAvailable:!1,values:[]}}var $4=D("productlisting/setUrl",e=>z(e,{url:new ce({required:!0,url:!0})})),k4=D("productlisting/setAdditionalFields",e=>z(e,{additionalFields:new Ne({required:!0,each:new ce({required:!0,emptyAllowed:!1})})})),On=ke("productlisting/fetch",async(e,{getState:t,dispatch:n,rejectWithValue:r,extra:i})=>{let a=t(),{apiClient:o}=i,s=await o.getProducts(await x4(a));return gt(s)?(n(va(s.error)),r(s.error)):{response:s.success}}),x4=async e=>{var t,n,r;let i=I4(e),a=await Ut(e.configuration.analytics);return{accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,platformUrl:e.configuration.platformUrl,url:(t=e.productListing)==null?void 0:t.url,...e.configuration.analytics.enabled&&a?{clientId:a}:{},...(n=e.productListing.additionalFields)!=null&&n.length?{additionalFields:e.productListing.additionalFields}:{},...e.productListing.advancedParameters&&O4(e.productListing.advancedParameters)?{advancedParameters:e.productListing.advancedParameters||{}}:{},...i.length&&{facets:{requests:i}},...e.pagination&&{pagination:{numberOfValues:e.pagination.numberOfResults,page:Math.ceil(e.pagination.firstResult/(e.pagination.numberOfResults||1))+1}},...(((r=e.sort)==null?void 0:r.by)||za.Relevance)!==za.Relevance&&{sort:e.sort},...e.context&&{userContext:e.context.contextValues}}};function O4(e){return e.debug}function I4(e){var t;return O0(E4(e),(t=e.facetOrder)!=null?t:[])}function E4(e){var t,n,r,i;return[...Sn((t=e.facetSet)!=null?t:{}),...Sn((n=e.numericFacetSet)!=null?n:{}),...Sn((r=e.dateFacetSet)!=null?r:{}),...Sn((i=e.categoryFacetSet)!=null?i:{})]}ae(Si(),e=>{e.addCase(ip,(t,n)=>{let{facetId:r}=n.payload;r in t||(t[r]=av(A4(n.payload)))}).addCase(tt.fulfilled,(t,n)=>{if(n.payload&&Object.keys(n.payload.facetSet).length!==0)return n.payload.facetSet}).addCase(yt,(t,n)=>{let r=n.payload.f||{};Object.keys(t).forEach(i=>{let{request:a}=t[i],o=r[i]||[],s=a.currentValues.filter(l=>!o.includes(l.value));a.currentValues=[...o.map(C1),...s.map(M4)],a.preventAutoSelect=o.length>0,a.numberOfValues=Math.max(o.length,a.numberOfValues)})}).addCase(nc,(t,n)=>{var r;let{facetId:i,selection:a}=n.payload,o=(r=t[i])==null?void 0:r.request;if(!o)return;o.preventAutoSelect=!0;let s=o.currentValues.find(u=>u.value===a.value);if(!s){y1(o,a);return}let l=s.state==="selected";s.state=l?"idle":"selected",o.freezeCurrentValues=!0}).addCase(G8,(t,n)=>{var r;let{facetId:i,freezeCurrentValues:a}=n.payload,o=(r=t[i])==null?void 0:r.request;!o||(o.freezeCurrentValues=a)}).addCase(xo,(t,n)=>{var r;ia((r=t[n.payload])==null?void 0:r.request)}).addCase(Ln,t=>{Object.values(t).filter(n=>n.hasBreadcrumbs).forEach(({request:n})=>ia(n))}).addCase(o0,t=>{Object.values(t).filter(n=>!n.hasBreadcrumbs).forEach(({request:n})=>ia(n))}).addCase(Uu,(t,n)=>Object.values(t).forEach(r=>{r.request.preventAutoSelect=!n.payload.allow})).addCase(Y8,(t,n)=>{sc(t,n.payload)}).addCase(Z8,(t,n)=>{var r;let{facetId:i,numberOfValues:a}=n.payload;pp((r=t[i])==null?void 0:r.request,a)}).addCase(J8,(t,n)=>{var r;let{facetId:i,isFieldExpanded:a}=n.payload,o=(r=t[i])==null?void 0:r.request;!o||(o.isFieldExpanded=a)}).addCase(Pe.fulfilled,(t,n)=>{n.payload.response.facets.forEach(r=>{var i;return As((i=t[r.facetId])==null?void 0:i.request,r)})}).addCase(On.fulfilled,(t,n)=>{var r,i;(((i=(r=n.payload.response)==null?void 0:r.facets)==null?void 0:i.results)||[]).forEach(a=>{var o;return As((o=t[a.facetId])==null?void 0:o.request,a)})}).addCase($o.fulfilled,(t,n)=>{n.payload.response.facets.forEach(r=>{var i;return As((i=t[r.facetId])==null?void 0:i.request,r)})}).addCase(xp,(t,n)=>{var r;let{facetId:i,value:a}=n.payload,o=(r=t[i])==null?void 0:r.request;if(!o)return;let{rawValue:s}=a,{currentValues:l}=o,u=l.find(f=>f.value===s);if(u){u.state="selected";return}let d=C1(s);y1(o,d),o.freezeCurrentValues=!0,o.preventAutoSelect=!0}).addCase(Ei,(t,n)=>{if(!(n.payload in t))return;let{request:r}=t[n.payload];ia(r)})});function y1(e,t){let{currentValues:n}=e,r=n.findIndex(s=>s.state==="idle"),i=r===-1?n.length:r,a=n.slice(0,i),o=n.slice(i+1);e.currentValues=[...a,t,...o],e.numberOfValues=e.currentValues.length}function As(e,t){!e||(e.currentValues=t.values.map(R4),e.freezeCurrentValues=!1,e.preventAutoSelect=!1)}var q4={filterFacetCount:!0,injectionDepth:1e3,numberOfValues:8,sortCriteria:"automatic"};function A4(e){return{...q4,type:"specific",currentValues:[],freezeCurrentValues:!1,isFieldExpanded:!1,preventAutoSelect:!1,...e}}function R4(e){let{value:t,state:n}=e;return{value:t,state:n}}function C1(e){return{value:e,state:"selected"}}function M4(e){return{...e,state:"idle"}}var Op={filterFacetCount:!0,injectionDepth:1e3,numberOfValues:8,sortCriteria:"ascending",rangeAlgorithm:"even"};function Ip(e,t){let{request:n}=t,{facetId:r}=n;if(r in e)return;let i=Rp(n);n.numberOfValues=i,e[r]=t}function Ep(e,t,n){var r;let i=(r=e[t])==null?void 0:r.request;!i||(i.currentValues=n,i.numberOfValues=Rp(i))}function qp(e,t,n){var r;let i=(r=e[t])==null?void 0:r.request;if(!i)return;let a=_l(i.currentValues,n);if(!a)return;let o=a.state==="selected";a.state=o?"idle":"selected",i.preventAutoSelect=!0}function dr(e,t){var n;let r=(n=e[t])==null?void 0:n.request;!r||r.currentValues.forEach(i=>i.state="idle")}function Ap(e,t){Object.entries(e).forEach(([n,{request:r}])=>{let i=t[n]||[];r.currentValues.forEach(s=>{let l=!!_l(i,s);return s.state=l?"selected":"idle",s});let a=i.filter(s=>!_l(r.currentValues,s)),o=r.currentValues;o.push(...a),r.numberOfValues=Math.max(r.numberOfValues,o.length)})}function Va(e,t,n){t.forEach(r=>{var i;let a=r.facetId,o=(i=e[a])==null?void 0:i.request;if(!o)return;let s=n(r.values);o.currentValues=s,o.preventAutoSelect=!1})}function _l(e,t){let{start:n,end:r}=t;return e.find(i=>i.start===n&&i.end===r)}function Rp(e){let{generateAutomaticRanges:t,currentValues:n,numberOfValues:r}=e;return t?Math.max(r,n.length):n.length}ae(Ci(),e=>{e.addCase(sp,(t,n)=>{let{payload:r}=n,i=T4(r);Ip(t,rv(i))}).addCase(tt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.dateFacetSet)!=null?i:t}).addCase(yt,(t,n)=>{let r=n.payload.df||{};Ap(t,r)}).addCase(ic,(t,n)=>{let{facetId:r,selection:i}=n.payload;qp(t,r,i)}).addCase(lp,(t,n)=>{let{facetId:r,values:i}=n.payload;Ep(t,r,i)}).addCase(n4,(t,n)=>{dr(t,n.payload)}).addCase(Ln,t=>{Object.keys(t).forEach(n=>{dr(t,n)})}).addCase(t4,(t,n)=>{sc(t,n.payload)}).addCase(Pe.fulfilled,(t,n)=>{let r=n.payload.response.facets;Va(t,r,b1)}).addCase(On.fulfilled,(t,n)=>{var r,i;let a=((i=(r=n.payload.response)==null?void 0:r.facets)==null?void 0:i.results)||[];Va(t,a,b1)}).addCase(Ei,(t,n)=>{dr(t,n.payload)})});function T4(e){return{...Op,currentValues:[],preventAutoSelect:!1,type:"dateRange",...e}}function b1(e){return e.map(t=>{let{numberOfResults:n,...r}=t;return r})}ae(bi(),e=>{e.addCase(cp,(t,n)=>{let{payload:r}=n,i=F4(r);Ip(t,iv(i))}).addCase(tt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.numericFacetSet)!=null?i:t}).addCase(yt,(t,n)=>{let r=n.payload.nf||{};Ap(t,r)}).addCase(ac,(t,n)=>{let{facetId:r,selection:i}=n.payload;qp(t,r,i)}).addCase(dp,(t,n)=>{let{facetId:r,values:i}=n.payload;Ep(t,r,i)}).addCase(o4,(t,n)=>{dr(t,n.payload)}).addCase(Ln,t=>{Object.keys(t).forEach(n=>{dr(t,n)})}).addCase(a4,(t,n)=>{sc(t,n.payload)}).addCase(Pe.fulfilled,(t,n)=>{let r=n.payload.response.facets;Va(t,r,S1)}).addCase(On.fulfilled,(t,n)=>{var r,i;let a=((i=(r=n.payload.response)==null?void 0:r.facets)==null?void 0:i.results)||[];Va(t,a,S1)}).addCase(Ei,(t,n)=>{dr(t,n.payload)})});function F4(e){return{...Op,currentValues:[],preventAutoSelect:!1,type:"numericalRange",...e}}function S1(e){return e.map(t=>{let{numberOfResults:n,...r}=t;return r})}var D4={collectionField:new ce({emptyAllowed:!1,required:!1}),parentField:new ce({emptyAllowed:!1,required:!1}),childField:new ce({emptyAllowed:!1,required:!1}),numberOfFoldedResults:new me({min:0,required:!1})},Mp=D("folding/register",e=>z(e,D4)),Rs=ke("folding/loadCollection",async(e,{getState:t,rejectWithValue:n,extra:{apiClient:r}})=>{let i=t(),a=await Nu(i),o=await r.search({...a,q:j4(i),enableQuerySyntax:!0,cq:`@${i.folding.fields.collection}="${e}"`,filterField:i.folding.fields.collection,childField:i.folding.fields.parent,parentField:i.folding.fields.child,filterFieldRange:100},{origin:"foldingCollection"});return gt(o)?n(o.error):{collectionId:e,results:o.success.results,rootResult:i.folding.collections[e].result}});function j4(e){return e.query.q===""?"":e.query.enableQuerySyntax?`${e.query.q} OR @uri`:`( <@- ${e.query.q} -@> ) OR @uri`}te("analytics/folding/showLess",ee.Custom,e=>e.makeShowLessFoldedResults());var P4=new Ne({each:K,required:!0}),U4=D("fields/registerFieldsToInclude",e=>z(e,P4)),_4=D("fields/fetchall/enable"),L4=D("fields/fetchall/disable"),z4=ke("fields/fetchDescription",async(e,{extra:t,getState:n,rejectWithValue:r})=>{let i=n(),{accessToken:a,organizationId:o}=i.configuration,{apiBaseUrl:s}=i.configuration.search,l=await t.apiClient.fieldDescriptions({accessToken:a,organizationId:o,url:s});return gt(l)?r(l.error):l.success.fields});ae(Gu(),e=>e.addCase(U4,(t,n)=>{t.fieldsToInclude=[...new Set(t.fieldsToInclude.concat(n.payload))]}).addCase(_4,t=>{t.fetchAllFields=!0}).addCase(L4,t=>{t.fetchAllFields=!1}).addCase(z4.fulfilled,(t,{payload:n})=>{t.fieldsDescription=n}).addCase(Mp,(t,{payload:n})=>{var r,i,a;let o=Xu().fields;t.fieldsToInclude.push((r=n.collectionField)!=null?r:o.collection,(i=n.parentField)!=null?i:o.parent,(a=n.childField)!=null?a:o.child)}));function V4(e,t){return e.raw[t.collection]}function Ll(e,t){return e.raw[t.parent]}function Wr(e,t){let n=e.raw[t.child];return Xf(n)?n[0]:n}function N4(e,t){return(e||t)!==void 0&&e===t}function Tp(e,t,n,r=[]){let i=Wr(e,n);return i?r.indexOf(i)!==-1?[]:t.filter(a=>{let o=Wr(a,n)===Wr(e,n);return Ll(a,n)===i&&!o}).map(a=>({result:a,children:Tp(a,t,n,[...r,i])})):[]}function Q4(e,t){return e.find(n=>{let r=Ll(n,t)===void 0,i=N4(Ll(n,t),Wr(n,t));return r||i})}function Fp(e){return e.parentResult?Fp(e.parentResult):e}function H4(e,t,n){var r;let i=e0(e),a=(r=n!=null?n:Q4(i,t))!=null?r:Fp(e);return{result:a,children:Tp(a,i,t),moreResultsAvailable:!0,isLoadingMoreResults:!1}}function aa(e,t,n){let r={};return e.forEach(i=>{let a=V4(i,t);!a||!Wr(i,t)&&!i.parentResult||(r[a]=H4(i,t,n))}),r}function w1(e,t){if(!e.collections[t])throw new Error(`Missing collection ${t} from ${Object.keys(e.collections)}: Folding most probably in an invalid state...`);return e.collections[t]}ae(Xu(),e=>e.addCase(Pe.fulfilled,(t,{payload:n})=>{t.collections=t.enabled?aa(n.response.results,t.fields):{}}).addCase(ln.fulfilled,(t,{payload:n})=>{t.collections=t.enabled?aa(n.response.results,t.fields):{}}).addCase(ur.fulfilled,(t,{payload:n})=>{t.collections=t.enabled?{...t.collections,...aa(n.response.results,t.fields)}:{}}).addCase(Mp,(t,{payload:n})=>{var r,i,a,o;return t.enabled?t:{enabled:!0,collections:{},fields:{collection:(r=n.collectionField)!=null?r:t.fields.collection,parent:(i=n.parentField)!=null?i:t.fields.parent,child:(a=n.childField)!=null?a:t.fields.child},filterFieldRange:(o=n.numberOfFoldedResults)!=null?o:t.filterFieldRange}}).addCase(Rs.pending,(t,{meta:n})=>{let r=n.arg;w1(t,r).isLoadingMoreResults=!0}).addCase(Rs.rejected,(t,{meta:n})=>{let r=n.arg;w1(t,r).isLoadingMoreResults=!1}).addCase(Rs.fulfilled,(t,{payload:{collectionId:n,results:r,rootResult:i}})=>{let a=aa(r,t.fields,i);if(!a||!a[n])throw new Error(`Unable to create collection ${n} from received results: ${JSON.stringify(r)}. Folding most probably in an invalid state... `);t.collections[n]=a[n],t.collections[n].moreResultsAvailable=!1}));var B4=Ge(O9());function W4(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.findIndex((r,i)=>!n(t[i],r))===-1}(0,B4.createCustomEqual)(e=>(t,n)=>Array.isArray(t)&&Array.isArray(n)?t.length!==n.length?!1:t.every(r=>n.findIndex(i=>e(r,i))!==-1):e(t,n));ae(d0(),e=>{e.addCase(ma,(t,n)=>Y4(t,n.payload)?void 0:n.payload)});var Y4=(e,t)=>Z4(e.context,t.context)&&J4(e.dictionaryFieldContext,t.dictionaryFieldContext)&&nC(e.advancedSearchQueries,t.advancedSearchQueries)&&G4(e.tabSet,t.tabSet)&&K4(e.staticFilterSet,t.staticFilterSet)&&Ms(e.facetSet,t.facetSet)&&Ms(e.dateFacetSet,t.dateFacetSet)&&Ms(e.numericFacetSet,t.numericFacetSet)&&X4(e.categoryFacetSet,t.categoryFacetSet)&&eC(e.pagination,t.pagination)&&tC(e.query,t.query)&&rC(e,t)&&iC(e.pipeline,t.pipeline)&&aC(e.searchHub,t.searchHub)&&oC(e.facetOrder,t.facetOrder)&&sC(e.debug,t.debug),Z4=(e,t)=>JSON.stringify(e.contextValues)===JSON.stringify(t.contextValues),J4=(e,t)=>JSON.stringify(e.contextValues)===JSON.stringify(t.contextValues),G4=(e,t)=>{let n=$1(e),r=$1(t);return(n==null?void 0:n.id)===(r==null?void 0:r.id)},$1=e=>Object.values(e).find(t=>t.isActive),K4=(e,t)=>{for(let[n,r]of Object.entries(t)){if(!e[n])return!1;let i=k1(e[n]),a=k1(r);if(JSON.stringify(i)!==JSON.stringify(a))return!1}return!0},k1=e=>e.values.filter(t=>t.state!=="idle"),Ms=(e,t)=>{for(let[n,r]of Object.entries(t)){if(!e[n])return!1;let i=e[n].request.currentValues.filter(o=>o.state==="selected"),a=r.request.currentValues.filter(o=>o.state==="selected");if(JSON.stringify(i)!==JSON.stringify(a))return!1}return!0},X4=(e,t)=>{var n;for(let[r,i]of Object.entries(t)){if(!e[r])return!1;let a=ti((n=e[r])==null?void 0:n.request.currentValues).parents.map(({value:s})=>s),o=ti(i==null?void 0:i.request.currentValues).parents.map(({value:s})=>s);if(JSON.stringify(a)!==JSON.stringify(o))return!1}return!0},eC=(e,t)=>e.firstResult===t.firstResult&&e.numberOfResults===t.numberOfResults,tC=(e,t)=>JSON.stringify(e)===JSON.stringify(t),nC=(e,t)=>JSON.stringify(e)===JSON.stringify(t),rC=(e,t)=>e.sortCriteria===t.sortCriteria,iC=(e,t)=>e===t,aC=(e,t)=>e===t,oC=(e,t)=>W4(e,t),sC=(e,t)=>e===t,lC=D("insightConfiguration/set",e=>z(e,{insightId:K}));ae(O7(),e=>{e.addCase(lC,(t,n)=>{t.insightId=n.payload.insightId})});var Dp=D("searchHub/set",e=>z(e,new ce({required:!0,emptyAllowed:!0}))),Ts=ke("insight/interface/fetch",async(e,{getState:t,dispatch:n,rejectWithValue:r,extra:{apiClient:i}})=>{let a=t(),o=await i.getInterface(uC(a));return gt(o)?r(o.error):(n(Dp(o.success.searchHub)),{response:o.success})}),uC=e=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.platformUrl,insightId:e.insightConfiguration.insightId});ae(I7(),e=>{e.addCase(Ts.pending,t=>{t.loading=!0,t.error=void 0}).addCase(Ts.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Ts.fulfilled,(t,n)=>{t.loading=!1,t.error=void 0;let{searchHub:r,...i}=n.payload.response;t.config=i})});ae(Hu(),e=>{e.addCase(qy,(t,n)=>{let{id:r}=n.payload;t[r]||(t[r]={q:"",cache:{}})}),e.addCase(s0,(t,n)=>{let{q:r,id:i}=n.payload;!r||(t[i].q=r)}),e.addCase(Ay,(t,n)=>{let{id:r}=n.payload;Object.entries(t[r].cache).forEach(([i,a])=>{Py(a)&&delete t[r].cache[i]})}),e.addCase(Ca.pending,(t,n)=>{for(let i in t)for(let a in t[i].cache)t[i].cache[a].isActive=!1;if(!oa(t,n.meta)){cC(t,n.meta);return}let r=oa(t,n.meta);r.isLoading=!0,r.isActive=!0,r.error=null}),e.addCase(Ca.fulfilled,(t,n)=>{let{results:r,searchUid:i}=n.payload,{cacheTimeout:a}=n.meta.arg,o=oa(t,n.meta);o.isActive=!0,o.searchUid=i,o.isLoading=!1,o.error=null,o.results=r,o.expiresAt=a?a+Date.now():0}),e.addCase(Ca.rejected,(t,n)=>{let r=oa(t,n.meta);r.error=n.error||null,r.isLoading=!1,r.isActive=!1})});var cC=(e,t)=>{let{q:n,id:r}=t.arg;e[r].cache[n]={isLoading:!0,error:null,results:[],expiresAt:0,isActive:!0,searchUid:""}},oa=(e,t)=>{let{q:n,id:r}=t.arg;return e[r].cache[n]||null},dC=ae(zn(),e=>{e.addCase(l0,(t,n)=>{let r=Fs(t),i=n.payload;t.defaultNumberOfResults=t.numberOfResults=i,t.firstResult=Pr(r,i)}).addCase(u0,(t,n)=>{t.numberOfResults=n.payload,t.firstResult=0}).addCase(Lu,(t,n)=>{let r=n.payload;t.firstResult=Pr(r,t.numberOfResults)}).addCase(vo,(t,n)=>{let r=n.payload;t.firstResult=Pr(r,t.numberOfResults)}).addCase(Vu,t=>{let n=Fs(t),r=Math.max(n-1,wo);t.firstResult=Pr(r,t.numberOfResults)}).addCase(zu,t=>{let n=Fs(t),r=fC(t),i=Math.min(n+1,r);t.firstResult=Pr(i,t.numberOfResults)}).addCase(tt.fulfilled,(t,n)=>{n.payload&&(t.numberOfResults=n.payload.pagination.numberOfResults,t.firstResult=n.payload.pagination.firstResult)}).addCase(yt,(t,n)=>{var r,i;t.firstResult=(r=n.payload.firstResult)!=null?r:t.firstResult,t.numberOfResults=(i=n.payload.numberOfResults)!=null?i:t.defaultNumberOfResults}).addCase(Pe.fulfilled,(t,n)=>{let{response:r}=n.payload;t.totalCountFiltered=r.totalCountFiltered}).addCase(On.fulfilled,(t,n)=>{let{response:r}=n.payload;t.totalCountFiltered=r.pagination.totalCount}).addCase(xo,t=>{qt(t)}).addCase(nc,t=>{qt(t)}).addCase(np,t=>{qt(t)}).addCase(tp,t=>{qt(t)}).addCase(fp,t=>{qt(t)}).addCase(ic,t=>{qt(t)}).addCase(ac,t=>{qt(t)}).addCase(Ln,t=>{qt(t)}).addCase(lp,t=>{qt(t)}).addCase(dp,t=>{qt(t)}).addCase(xp,t=>{qt(t)})});function qt(e){e.firstResult=zn().firstResult}function Fs(e){let{firstResult:t,numberOfResults:n}=e;return jp(t,n)}function fC(e){let{totalCountFiltered:t,numberOfResults:n}=e;return Pp(t,n)}function Pr(e,t){return(e-1)*t}function jp(e,t){return Math.round(e/t)+1}function Pp(e,t){let n=Math.min(e,Dl);return Math.ceil(n/t)}var pC=D("pipeline/set",e=>z(e,new ce({required:!0,emptyAllowed:!0})));ae($i(),e=>{e.addCase(pC,(t,n)=>n.payload).addCase(tt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.pipeline)!=null?i:t}).addCase(tc,(t,n)=>n.payload.pipeline||t)});ae(F0(),e=>{e.addCase($4,(t,n)=>{t.url=n.payload.url}).addCase(k4,(t,n)=>{t.additionalFields=n.payload.additionalFields}).addCase(On.rejected,(t,n)=>{t.error=n.payload?n.payload:null,t.isLoading=!1}).addCase(On.fulfilled,(t,n)=>{t.error=null,t.facets=n.payload.response.facets,t.products=n.payload.response.products,t.responseId=n.payload.response.responseId,t.isLoading=!1}).addCase(On.pending,t=>{t.isLoading=!0})});ae(ju(),e=>{e.addCase(my,(t,n)=>{t.id=n.payload.id}).addCase(gy,(t,n)=>{t.skus=n.payload.skus}).addCase(vy,(t,n)=>{t.filter.brand=n.payload.brand}).addCase(yy,(t,n)=>{t.filter.category=n.payload.category}).addCase(by,(t,n)=>{t.maxNumberOfRecommendations=n.payload.number}).addCase(Cy,(t,n)=>{t.additionalFields=n.payload.additionalFields}).addCase(pa.rejected,(t,n)=>{t.error=n.payload?n.payload:null,t.isLoading=!1}).addCase(pa.fulfilled,(t,n)=>{t.error=null,t.searchUid=n.payload.searchUid,t.recommendations=n.payload.recommendations,t.isLoading=!1}).addCase(pa.pending,t=>{t.isLoading=!0})});var qi={id:K},hC=D("querySuggest/register",e=>z(e,{...qi,count:new me({min:0})})),mC=D("querySuggest/unregister",e=>z(e,qi)),Up=D("querySuggest/selectSuggestion",e=>z(e,{...qi,expression:Be})),gC=D("querySuggest/clear",e=>z(e,qi)),Ds=ke("querySuggest/fetch",async(e,{getState:t,rejectWithValue:n,extra:{apiClient:r,validatePayload:i}})=>{i(e,qi);let a=e.id,o=await vC(a,t()),s=await r.querySuggest(o);return gt(s)?n(s.error):{id:a,q:o.q,...s.success}}),vC=async(e,t)=>({accessToken:t.configuration.accessToken,organizationId:t.configuration.organizationId,url:t.configuration.search.apiBaseUrl,count:t.querySuggest[e].count,q:t.querySet[e],locale:t.configuration.search.locale,timezone:t.configuration.search.timezone,actionsHistory:t.configuration.analytics.enabled?$r.getHistory():[],...t.context&&{context:t.context.contextValues},...t.pipeline&&{pipeline:t.pipeline},...t.searchHub&&{searchHub:t.searchHub},...t.configuration.analytics.enabled&&{visitorId:await Ut(t.configuration.analytics),...t.configuration.analytics.enabled&&await mo(t.configuration.analytics)},...t.configuration.search.authenticationProviders.length&&{authentication:t.configuration.search.authenticationProviders.join(",")}}),_p={id:K,query:Be},yC=D("querySet/register",e=>z(e,_p)),CC=D("querySet/update",e=>z(e,_p));ae(Bu(),e=>{e.addCase(yC,(t,n)=>{let{id:r,query:i}=n.payload;r in t||(t[r]=i)}).addCase(CC,(t,n)=>{let{id:r,query:i}=n.payload;js(t,r,i)}).addCase(Up,(t,n)=>{let{id:r,expression:i}=n.payload;js(t,r,i)}).addCase(Pe.fulfilled,(t,n)=>{let{queryExecuted:r}=n.payload;x1(t,r)}).addCase(yt,(t,n)=>{be(n.payload.q)||x1(t,n.payload.q)}).addCase(tt.fulfilled,(t,n)=>{if(n.payload)for(let[r,i]of Object.entries(n.payload.querySet))js(t,r,i)})});function x1(e,t){Object.keys(e).forEach(n=>e[n]=t)}var js=(e,t,n)=>{t in e&&(e[t]=n)};ae(E7(),e=>e.addCase(hC,(t,n)=>{let r=n.payload.id;r in t||(t[r]=bC(n.payload))}).addCase(mC,(t,n)=>{delete t[n.payload.id]}).addCase(Ds.pending,(t,n)=>{let r=t[n.meta.arg.id];!r||(r.currentRequestId=n.meta.requestId,r.isLoading=!0)}).addCase(Ds.fulfilled,(t,n)=>{let r=t[n.meta.arg.id];if(!r||n.meta.requestId!==r.currentRequestId)return;let{q:i}=n.payload;i&&r.partialQueries.push(i.replace(/;/,encodeURIComponent(";"))),r.responseId=n.payload.responseId,r.completions=n.payload.completions,r.isLoading=!1,r.error=null}).addCase(Ds.rejected,(t,n)=>{let r=t[n.meta.arg.id];!r||(r.error=n.payload||null,r.isLoading=!1)}).addCase(gC,(t,n)=>{let r=t[n.payload.id];!r||(r.responseId="",r.completions=[],r.partialQueries=[])}));function bC(e){return{id:"",completions:[],responseId:"",count:5,currentRequestId:"",error:null,partialQueries:[],isLoading:!1,...e}}var SC=ae(jn(),e=>e.addCase(yo,(t,n)=>({...t,...n.payload})).addCase(Qu,(t,n)=>{t.q=n.payload}).addCase(Up,(t,n)=>{t.q=n.payload.expression}).addCase(tt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.query)!=null?i:t}).addCase(yt,(t,n)=>{var r,i;t.q=(r=n.payload.q)!=null?r:t.q,t.enableQuerySyntax=(i=n.payload.enableQuerySyntax)!=null?i:t.enableQuerySyntax})),wC=()=>new ge({values:{questionAnswerId:K},options:{required:!0}});function qo(e){return z(e,wC())}var $C=D("smartSnippet/expand"),kC=D("smartSnippet/collapse"),xC=D("smartSnippet/like"),OC=D("smartSnippet/dislike"),IC=D("smartSnippet/feedbackModal/open"),EC=D("smartSnippet/feedbackModal/close"),qC=D("smartSnippet/related/expand",e=>qo(e)),AC=D("smartSnippet/related/collapse",e=>qo(e)),O1=(e,t)=>e.findIndex(n=>n.questionAnswerId===t.questionAnswerId);function Lp({question:e,answerSnippet:t,documentId:{contentIdKey:n,contentIdValue:r}}){return ey({question:e,answerSnippet:t,contentIdKey:n,contentIdValue:r})}function RC(e,t){let n=Lp(e);return t&&n===t.questionAnswerId?t:{contentIdKey:e.documentId.contentIdKey,contentIdValue:e.documentId.contentIdValue,expanded:!1,questionAnswerId:n}}ae(Ul(),e=>e.addCase($C,t=>{t.expanded=!0}).addCase(kC,t=>{t.expanded=!1}).addCase(xC,t=>{t.liked=!0,t.disliked=!1,t.feedbackModalOpen=!1}).addCase(OC,t=>{t.liked=!1,t.disliked=!0}).addCase(IC,t=>{t.feedbackModalOpen=!0}).addCase(EC,t=>{t.feedbackModalOpen=!1}).addCase(Pe.fulfilled,(t,n)=>{let r=n.payload.response.questionAnswer.relatedQuestions.map((a,o)=>RC(a,t.relatedQuestions[o])),i=Lp(n.payload.response.questionAnswer);return t.questionAnswerId===i?{...t,relatedQuestions:r}:{...Ul(),relatedQuestions:r,questionAnswerId:i}}).addCase(qC,(t,n)=>{let r=O1(t.relatedQuestions,n.payload);r!==-1&&(t.relatedQuestions[r].expanded=!0)}).addCase(AC,(t,n)=>{let r=O1(t.relatedQuestions,n.payload);r!==-1&&(t.relatedQuestions[r].expanded=!1)}));var MC={queries:new Ne({required:!0,each:new ce({emptyAllowed:!1})}),maxLength:new me({required:!0,min:1,default:10})},TC=D("recentQueries/registerRecentQueries",e=>z(e,MC)),FC=D("recentQueries/clearRecentQueries");ae(P0(),e=>{e.addCase(TC,(t,n)=>{t.queries=n.payload.queries.slice(0,n.payload.maxLength),t.maxLength=n.payload.maxLength}).addCase(FC,t=>{t.queries=[]}).addCase(Pe.fulfilled,(t,n)=>{let r=n.payload.queryExecuted.trim(),i=n.payload.response.results;if(!r.length||!i.length)return;t.queries=t.queries.filter(o=>o!==r);let a=t.queries.slice(0,t.maxLength-1);t.queries=[r,...a]})});var DC={results:new Ne({required:!0,each:new ge({values:Pu})}),maxLength:new me({required:!0,min:1,default:10})},jC=D("recentResults/registerRecentResults",e=>z(e,DC)),PC=D("recentResults/pushRecentResult",e=>(r0(e),{payload:e})),UC=D("recentResults/clearRecentResults");ae(U0(),e=>{e.addCase(jC,(t,n)=>{t.results=n.payload.results.slice(0,n.payload.maxLength),t.maxLength=n.payload.maxLength}).addCase(UC,t=>{t.results=[]}).addCase(PC,(t,n)=>{let r=n.payload;t.results=t.results.filter(a=>a.uniqueId!==r.uniqueId);let i=t.results.slice(0,t.maxLength-1);t.results=[r,...i]})});ae(Br(),e=>{e.addCase(ky,(t,n)=>{t.id=n.payload.id}).addCase(ha.rejected,(t,n)=>{t.error=n.payload?n.payload:null,t.isLoading=!1}).addCase(ha.fulfilled,(t,n)=>{t.error=null,t.recommendations=n.payload.recommendations,t.duration=n.payload.duration,t.isLoading=!1,t.searchUid=n.payload.searchUid,t.splitTestRun=n.payload.splitTestRun,t.pipeline=n.payload.pipeline}).addCase(ha.pending,t=>{t.isLoading=!0})});async function _C(e,t){var n;let{search:r,accessToken:i,organizationId:a,analytics:o}=e.configuration,s=((n=e.query)==null?void 0:n.q)||"";return{url:r.apiBaseUrl,accessToken:i,organizationId:a,enableNavigation:!1,...o.enabled&&{visitorId:await Ut(e.configuration.analytics)},q:s,...t,requestedOutputSize:t.requestedOutputSize||0,...r.authenticationProviders.length&&{authentication:r.authenticationProviders.join(",")}}}var I1=ke("resultPreview/fetchResultContent",async(e,{extra:t,getState:n,rejectWithValue:r})=>{let i=n(),a=await _C(i,e),o=await t.apiClient.html(a);return gt(o)?r(o.error):{content:o.success,uniqueId:e.uniqueId}}),LC=D("resultPreview/next"),zC=D("resultPreview/previous"),VC=D("resultPreview/prepare",e=>z(e,{results:new Ne({required:!0})})),E1=2048,NC=ke("resultPreview/updateContentURL",async(e,{getState:t,extra:n})=>{let r=t(),i=jv(await e.buildResultPreviewRequest(r,{uniqueId:e.uniqueId,requestedOutputSize:e.requestedOutputSize}),e.path);return(i==null?void 0:i.length)>E1&&n.logger.error(`The content URL was truncated as it exceeds the maximum allowed length of ${E1} characters.`),{contentURL:i}}),Ps=e=>e.filter(t=>t.hasHtmlVersion).map(t=>t.uniqueId);ae(La(),e=>{e.addCase(I1.pending,t=>{t.isLoading=!0}).addCase(I1.fulfilled,(t,n)=>{let{content:r,uniqueId:i}=n.payload;t.position=t.resultsWithPreview.indexOf(i),t.content=r,t.uniqueId=i,t.isLoading=!1}).addCase(Pe.fulfilled,(t,n)=>{let{content:r,isLoading:i,uniqueId:a,contentURL:o}=La();t.content=r,t.isLoading=i,t.uniqueId=a,t.contentURL=o,t.resultsWithPreview=Ps(n.payload.response.results)}).addCase(ur.fulfilled,(t,n)=>{t.resultsWithPreview=t.resultsWithPreview.concat(Ps(n.payload.response.results))}).addCase(VC,(t,n)=>{t.resultsWithPreview=Ps(n.payload.results)}).addCase(LC,t=>{if(t.isLoading)return;let n=t.position+1;n>t.resultsWithPreview.length-1&&(n=0),t.position=n}).addCase(zC,t=>{if(t.isLoading)return;let n=t.position-1;n<0&&(n=t.resultsWithPreview.length-1),t.position=n}).addCase(NC.fulfilled,(t,n)=>{t.contentURL=n.payload.contentURL})});ae(Pn(),e=>{e.addCase(Dp,(t,n)=>n.payload).addCase(tt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.searchHub)!=null?i:t}).addCase(tc,(t,n)=>n.payload.searchHub||t)});function Us(e,t){var n;let r=(n=t.payload)!=null?n:null;r&&(e.response=kn().response,e.results=[],e.questionAnswer=Pa()),e.error=r,e.isLoading=!1}function zl(e,t){e.error=null,e.response=t.payload.response,e.queryExecuted=t.payload.queryExecuted,e.duration=t.payload.duration,e.isLoading=!1}function QC(e,t){zl(e,t),e.results=t.payload.response.results,e.searchResponseId=t.payload.response.searchUid,e.questionAnswer=t.payload.response.questionAnswer}function _s(e,t){e.isLoading=!0,e.requestId=t.meta.requestId}var HC=ae(kn(),e=>{e.addCase(Pe.rejected,(t,n)=>Us(t,n)),e.addCase(ur.rejected,(t,n)=>Us(t,n)),e.addCase(ln.rejected,(t,n)=>Us(t,n)),e.addCase(Pe.fulfilled,(t,n)=>{QC(t,n)}),e.addCase(ur.fulfilled,(t,n)=>{zl(t,n),t.results=[...t.results,...n.payload.response.results]}),e.addCase(ln.fulfilled,(t,n)=>{zl(t,n),t.results=n.payload.response.results}),e.addCase($o.fulfilled,(t,n)=>{t.response.facets=n.payload.response.facets,t.response.searchUid=n.payload.response.searchUid}),e.addCase(Pe.pending,_s),e.addCase(ur.pending,_s),e.addCase(ln.pending,_s)}),q1={by:new Mf({enum:c0,required:!0})},BC=D("sortCriteria/register",e=>zp(e)),WC=D("sortCriteria/update",e=>zp(e)),zp=e=>Rf(e)?(e.forEach(t=>z(t,q1)),{payload:e}):z(e,q1);ae(So(),e=>{e.addCase(BC,(t,n)=>Ua(n.payload)).addCase(WC,(t,n)=>Ua(n.payload)).addCase(tt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.sortCriteria)!=null?i:t}).addCase(yt,(t,n)=>{var r;return(r=n.payload.sortCriteria)!=null?r:t})});var YC={by:new Mf({enum:za,required:!0})},ZC=D("sort/register",e=>Vp(e)),JC=D("sort/update",e=>Vp(e)),Vp=e=>z(e,YC);ae(D0(),e=>{e.addCase(ZC,(t,n)=>n.payload).addCase(JC,(t,n)=>n.payload)});function GC(e){return e.type==="redirect"}var KC=class{constructor(e){this.response=e}get basicExpression(){return this.response.parsedInput.basicExpression}get largeExpression(){return this.response.parsedInput.largeExpression}get redirectionUrl(){let e=this.response.preprocessingOutput.triggers.filter(GC);return e.length?e[0].content:null}},XC=D("standaloneSearchBox/register",e=>z(e,{id:K,redirectionUrl:K})),eb=D("standaloneSearchBox/reset",e=>z(e,{id:K})),tb=D("standaloneSearchBox/updateAnalyticsToSearchFromLink",e=>z(e,{id:K})),nb=D("standaloneSearchBox/updateAnalyticsToOmniboxFromLink"),Ls=ke("standaloneSearchBox/fetchRedirect",async(e,{dispatch:t,getState:n,rejectWithValue:r,extra:{apiClient:i,validatePayload:a}})=>{a(e,{id:new ce({emptyAllowed:!1})});let o=await ib(n()),s=await i.plan(o);if(gt(s))return r(s.error);let{redirectionUrl:l}=new KC(s.success);return l&&t(rb(l)),l||""}),rb=e=>te("analytics/standaloneSearchBox/redirect",ee.Custom,t=>t.makeTriggerRedirect({redirectedTo:e})),ib=async e=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.search.apiBaseUrl,locale:e.configuration.search.locale,timezone:e.configuration.search.timezone,q:e.query.q,...e.context&&{context:e.context.contextValues},...e.pipeline&&{pipeline:e.pipeline},...e.searchHub&&{searchHub:e.searchHub},...e.configuration.analytics.enabled&&{visitorId:await Ut(e.configuration.analytics)},...e.configuration.analytics.enabled&&await mo(e.configuration.analytics),...e.configuration.search.authenticationProviders.length&&{authentication:e.configuration.search.authenticationProviders.join(",")}});ae(_0(),e=>e.addCase(XC,(t,n)=>{let{id:r,redirectionUrl:i}=n.payload;r in t||(t[r]=A1(i))}).addCase(eb,(t,n)=>{let{id:r}=n.payload,i=t[r];if(i){t[r]=A1(i.defaultRedirectionUrl);return}}).addCase(Ls.pending,(t,n)=>{let r=t[n.meta.arg.id];!r||(r.isLoading=!0)}).addCase(Ls.fulfilled,(t,n)=>{let r=n.payload,i=t[n.meta.arg.id];!i||(i.redirectTo=r||i.defaultRedirectionUrl,i.isLoading=!1)}).addCase(Ls.rejected,(t,n)=>{let r=t[n.meta.arg.id];!r||(r.isLoading=!1)}).addCase(tb,(t,n)=>{let r=t[n.payload.id];!r||(r.analytics.cause="searchFromLink")}).addCase(nb,(t,n)=>{let r=t[n.payload.id];!r||(r.analytics.cause="omniboxFromLink",r.analytics.metadata=n.payload.metadata)}));function A1(e){return{defaultRedirectionUrl:e,redirectTo:"",isLoading:!1,analytics:{cause:"",metadata:null}}}var uc=K,Np=new ge({options:{required:!0},values:{caption:Be,expression:Be,state:new ce({constrainTo:["idle","selected"]})}}),ab=new Ne({required:!0,each:Np}),ob=D("staticFilter/register",e=>z(e,{id:uc,values:ab})),sb=D("staticFilter/toggleSelect",e=>z(e,{id:uc,value:Np})),lb=D("staticFilter/deselectAllFilterValues",e=>z(e,uc)),ub=e=>te("analytics/staticFilter/select",ee.Search,t=>t.makeStaticFilterSelect(e)),cb=e=>te("analytics/staticFilter/deselect",ee.Search,t=>t.makeStaticFilterDeselect(e)),db=e=>te("analytics/staticFilter/clearAll",ee.Search,t=>t.makeStaticFilterClearAll(e));ae(Wu(),e=>e.addCase(ob,(t,n)=>{let r=n.payload,{id:i}=r;i in t||(t[i]=r)}).addCase(sb,(t,n)=>{let{id:r,value:i}=n.payload,a=t[r];if(!a)return;let o=a.values.find(l=>l.caption===i.caption);if(!o)return;let s=o.state==="selected";o.state=s?"idle":"selected"}).addCase(lb,(t,n)=>{let r=n.payload,i=t[r];!i||i.values.forEach(a=>a.state="idle")}).addCase(Ln,t=>{Object.values(t).forEach(n=>{n.values.forEach(r=>r.state="idle")})}).addCase(yt,(t,n)=>{let r=n.payload.sf||{};Object.entries(t).forEach(([i,a])=>{let o=r[i]||[];a.values.forEach(s=>{s.state=o.includes(s.caption)?"selected":"idle"})})}));ae(Yu(),e=>{e.addCase(A8,(t,n)=>{let r=n.payload,{id:i}=r;i in t||(t[i]={...r,isActive:!1})}).addCase(Y0,(t,n)=>{let r=n.payload;R1(t,r)}).addCase(yt,(t,n)=>{let r=n.payload.tab||"";R1(t,r)}).addCase(tt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.tabSet)!=null?i:t})});function R1(e,t){t in e&&Object.keys(e).forEach(n=>{e[n].isActive=n===t})}ae(L0(),e=>e.addCase(Pe.pending,t=>{t.query="",t.queryModification={originalQuery:"",newQuery:"",queryToIgnore:t.queryModification.queryToIgnore}}).addCase(Pe.fulfilled,(t,n)=>{var r;let i=[],a=[],o=[];n.payload.response.triggers.forEach(s=>{switch(s.type){case"redirect":i.push(s.content);break;case"query":break;case"execute":a.push({functionName:s.content.name,params:s.content.params});break;case"notify":o.push(s.content);break}}),t.redirectTo=(r=i[0])!=null?r:"",t.query=t.queryModification.newQuery,t.executions=a,t.notifications=o}).addCase(h0,(t,n)=>{t.queryModification={...n.payload,queryToIgnore:""}}).addCase(p0,(t,n)=>{t.queryModification.queryToIgnore=n.payload}));var fb=M8,Qp=dC,Hp=HC,pb=SC,hb=F8;Ge(lo());Ge(Z2());function cc(e){let t,n=new Map,r=()=>n.size===0,i=a=>{try{let o=JSON.stringify(a),s=t!==o;return t=o,s}catch(o){return console.warn('Could not detect if state has changed, check the controller "get state method"',o),!0}};return{subscribe(a){a();let o=Symbol(),s;return r()&&(t=JSON.stringify(this.state),s=e.subscribe(()=>{i(this.state)&&n.forEach(l=>l())})),n.set(o,a),()=>{n.delete(o),r()&&s&&s()}},get state(){return{}}}}function mb(e){gb(e);let t=cc(e),{dispatch:n}=e,r=()=>e.state;return{...t,get state(){return{values:r().context.contextValues}},set(i){n(J0(i))},add(i,a){n(G0({contextKey:i,contextValue:a}))},remove(i){n(K0(i))}}}function gb(e){return e.addReducers({context:hb}),!0}function vb(e){return mb(e)}var yb=e=>te("analytics/facet/showMore",ee.Search,(t,n)=>{z(e,fe);let r=wi(e,dn(n));return t.makeFacetShowMore(r)}),Cb=e=>te("analytics/facet/showLess",ee.Search,(t,n)=>{z(e,fe);let r=wi(e,dn(n));return t.makeFacetShowLess(r)}),bb=e=>te("analytics/facet/sortChange",ee.Search,(t,n)=>{z(e,{facetId:fe,criterion:new at({required:!0})});let{facetId:r,criterion:i}=e,a=dn(n),o={...wi(r,a),criteria:i};return t.makeFacetUpdateSort(o)}),Sb=e=>te("analytics/facet/reset",ee.Search,(t,n)=>{z(e,fe);let r=dn(n),i=wi(e,r);return t.makeFacetClearAll(i)}),wb=e=>te("analytics/facet/select",ee.Search,(t,n)=>{z(e,{facetId:fe,facetValue:K});let r=dn(n),i=Fu(e,r);return t.makeFacetSelect(i)}),$b=e=>te("analytics/facet/deselect",ee.Search,(t,n)=>{z(e,{facetId:fe,facetValue:K});let r=dn(n),i=Fu(e,r);return t.makeFacetDeselect(i)}),kb=e=>te("analytics/facet/breadcrumb",ee.Search,(t,n)=>{z(e,{facetId:fe,facetValue:K});let r=Fu(e,dn(n));return t.makeBreadcrumbFacet(r)}),xb={facetId:fe,selection:new ge({values:rp})};ke("facet/executeToggleSelect",({facetId:e,selection:t},n)=>{let{dispatch:r,extra:{validatePayload:i}}=n;i({facetId:e,selection:t},xb),r(nc({facetId:e,selection:t})),r(Eo({freezeFacetOrder:!0}))});var Bp=D("rangeFacet/executeToggleSelect",e=>z(e,rc(e.selection))),Ob={facetId:fe,selection:new ge({values:Io})};ke("dateFacet/executeToggleSelect",(e,{dispatch:t,extra:{validatePayload:n}})=>{n(e,Ob),t(ic(e)),t(Bp(e)),t(Eo({freezeFacetOrder:!0}))});var Ib={facetId:fe,selection:new ge({values:Oo})},Eb="numericFacet/executeToggleSelect";ke(Eb,(e,{dispatch:t,extra:{validatePayload:n}})=>{n(e,Ib),t(ac(e)),t(Bp(e)),t(Eo({freezeFacetOrder:!0}))});var qb=()=>te("history/analytics/forward",ee.Search,e=>e.makeSearchEvent("historyForward")),Ab=()=>te("history/analytics/backward",ee.Search,e=>e.makeSearchEvent("historyBackward")),Rb=()=>te("history/analytics/noresultsback",ee.Search,e=>e.makeNoResultsBack());function Mb(e){return e.pagination.firstResult}function Wp(e){return e.pagination.numberOfResults}function Tb(e){return e.pagination.totalCountFiltered}var Ai=e=>{let t=Mb(e),n=Wp(e);return jp(t,n)},Yp=e=>{let t=Tb(e),n=Wp(e);return Pp(t,n)},Fb=(e,t)=>{let n=Ai(e),r=Yp(e),i=Db(n,t);return i=jb(i),i=Pb(i,r),Ub(i)};function Db(e,t){let n=t%2==0,r=Math.floor(t/2),i=n?r-1:r,a=e-r,o=e+i;return{start:a,end:o}}function jb(e){let t=Math.max(wo-e.start,0),n=e.start+t,r=e.end+t;return{start:n,end:r}}function Pb(e,t){let n=Math.max(e.end-t,0),r=Math.max(e.start-n,wo),i=e.end-n;return{start:r,end:i}}function Ub(e){let t=[];for(let n=e.start;n<=e.end;++n)t.push(n);return t}var _b=()=>te("analytics/pager/resize",ee.Search,(e,t)=>{var n;return e.makePagerResize({currentResultsPerPage:((n=t.pagination)==null?void 0:n.numberOfResults)||zn().numberOfResults})}),Zp=()=>te("analytics/pager/number",ee.Search,(e,t)=>e.makePagerNumber({pagerNumber:Ai(t)})),Jp=()=>te("analytics/pager/next",ee.Search,(e,t)=>e.makePagerNext({pagerNumber:Ai(t)})),Gp=()=>te("analytics/pager/previous",ee.Search,(e,t)=>e.makePagerPrevious({pagerNumber:Ai(t)})),Lb=new gi({numberOfPages:new me({default:5,min:0})}),zb=new gi({page:new me({min:1})});function Vb(e,t={}){Nb(e);let n=cc(e),{dispatch:r}=e,i=Zv(e,Lb,t.options,"buildPager"),a=Yv(e,zb,t.initialState,"buildPager").page;a&&r(Lu(a));let o=()=>Ai(e.state),s=()=>{let{numberOfPages:u}=i;return Fb(e.state,u)},l=()=>Yp(e.state);return{...n,get state(){let u=o(),d=l(),f=u>wo&&d>0,m=u<d;return{currentPage:u,currentPages:s(),maxPage:d,hasPreviousPage:f,hasNextPage:m}},selectPage(u){r(vo(u))},nextPage(){r(zu())},previousPage(){r(Vu())},isCurrentPage(u){return u===this.state.currentPage}}}function Nb(e){return e.addReducers({configuration:fb,pagination:Qp}),!0}function Qb(e,t={}){let{dispatch:n}=e,r=Vb(e,t);return{...r,get state(){return r.state},selectPage(i){r.selectPage(i),n(ln(Zp()))},nextPage(){r.nextPage(),n(ln(Jp()))},previousPage(){r.previousPage(),n(ln(Gp()))}}}function Hb(e){Bb(e);let t=cc(e),n=()=>e.state;return{...t,get state(){let r=n();return{hasError:r.search.error!==null,isLoading:r.search.isLoading,hasResults:!!r.search.results.length,firstSearchExecuted:h8(r)}}}}function Bb(e){return e.addReducers({search:Hp}),!0}var Wb=()=>te("analytics/searchbox/submit",ee.Search,e=>e.makeSearchboxSubmit()),Yb=e=>te("analytics/querySuggest",ee.Search,(t,n)=>{let r=Zb(n,e);return t.makeOmniboxAnalytics(r)});function Zb(e,t){let{id:n,suggestion:r}=t,i=e.querySuggest&&e.querySuggest[n];if(!i)throw new Error(`Unable to determine the query suggest analytics metadata to send because no query suggest with id "${n}" was found. Please check the sent #id.`);let a=i.completions.map(u=>u.expression),o=i.partialQueries.length-1,s=i.partialQueries[o]||"",l=i.responseId;return{suggestionRanking:a.indexOf(r),partialQuery:s,partialQueries:i.partialQueries,suggestions:a,querySuggestResponseId:l}}var Jb=()=>te("analytics/sort/results",ee.Search,(e,t)=>e.makeResultsSort({resultsSortBy:t.sortCriteria||So()})),Gb={categoryFacetId:fe,categoryFacetPath:new Ne({required:!0,each:K})},Kb=(e,{categoryFacetId:t,categoryFacetPath:n})=>{let r=e.categoryFacetSet[t],i=r==null?void 0:r.request.field,a=`${i}_${t}`;return{categoryFacetId:t,categoryFacetPath:n,categoryFacetField:i,categoryFacetTitle:a}},Xb=e=>te("analytics/categoryFacet/breadcrumb",ee.Search,(t,n)=>(z(e,Gb),t.makeBreadcrumbFacet(Kb(n,e)))),eS=()=>te("analytics/facet/deselectAllBreadcrumbs",ee.Search,e=>e.makeBreadcrumbResetAll()),Kp=(e,{facetId:t,selection:n})=>{let r=(e.dateFacetSet[t]||e.numericFacetSet[t]).request.field,i=`${r}_${t}`;return{facetId:t,facetField:r,facetTitle:i,facetRangeEndInclusive:n.endInclusive,facetRangeEnd:`${n.end}`,facetRangeStart:`${n.start}`}},tS=e=>te("analytics/dateFacet/breadcrumb",ee.Search,(t,n)=>{z(e,rc(e.selection));let r=Kp(n,e);return t.makeBreadcrumbFacet(r)}),nS=e=>te("analytics/numericFacet/breadcrumb",ee.Search,(t,n)=>{z(e,rc(e.selection));let r=Kp(n,e);return t.makeBreadcrumbFacet(r)});function rS(e){return Hb(e)}function Xp(e,t){var n,r,i,a,o;let s=(r=(n=e.questionAnswering)==null?void 0:n.relatedQuestions.findIndex(u=>u.questionAnswerId===t))!=null?r:-1;if(s===-1)return null;let l=(o=(a=(i=e.search)==null?void 0:i.questionAnswer)==null?void 0:a.relatedQuestions)==null?void 0:o[s];return l!=null?l:null}var iS=()=>te("analytics/smartSnippet/expand",ee.Custom,e=>e.makeExpandSmartSnippet()),aS=()=>te("analytics/smartSnippet/collapse",ee.Custom,e=>e.makeCollapseSmartSnippet()),oS=()=>te("analytics/smartSnippet/like",ee.Custom,e=>e.makeLikeSmartSnippet()),sS=()=>te("analytics/smartSnippet/dislike",ee.Custom,e=>e.makeDislikeSmartSnippet()),lS=()=>te("analytics/smartSnippet/feedbackModal/open",ee.Custom,e=>e.makeOpenSmartSnippetFeedbackModal()),uS=()=>te("analytics/smartSnippet/feedbackModal/close",ee.Custom,e=>e.makeCloseSmartSnippetFeedbackModal()),cS=e=>te("analytics/smartSnippet/sendFeedback",ee.Custom,t=>t.makeSmartSnippetFeedbackReason(e)),dS=e=>te("analytics/smartSnippet/sendFeedback",ee.Custom,t=>t.makeSmartSnippetFeedbackReason("other",e)),fS=e=>te("analytics/smartSnippetSuggestion/expand",ee.Custom,(t,n)=>{qo(e);let r=Xp(n,e.questionAnswerId);return r?t.makeExpandSmartSnippetSuggestion({question:r.question,answerSnippet:r.answerSnippet,documentId:r.documentId}):null}),pS=e=>te("analytics/smartSnippetSuggestion/expand",ee.Custom,(t,n)=>{qo(e);let r=Xp(n,e.questionAnswerId);return r?t.makeCollapseSmartSnippetSuggestion({question:r.question,answerSnippet:r.answerSnippet,documentId:r.documentId}):null});function hS(e){return e.addReducers({pagination:Qp}),{nextPage:zu,previousPage:Vu,registerNumberOfResults:l0,registerPage:Lu,updateNumberOfResults:u0,updatePage:vo}}function mS(e){return e.addReducers({query:pb}),{updateQuery:yo}}function gS(e){return e.addReducers({search:Hp}),{executeSearch:Pe,fetchMoreResults:ur,fetchFacetValues:$o,fetchPage:ln,fetchInstantResults:Ca}}var M1;(e=>{e.getResultProperty=ko,e.fieldsMustBeDefined=c8,e.fieldsMustNotBeDefined=d8,e.fieldMustMatch=f8,e.fieldMustNotMatch=p8})(M1||(M1={}));function vS(e){return e.addReducers({}),{logClearBreadcrumbs:eS,logInterfaceLoad:e8,logSearchFromLink:n8,logOmniboxFromLink:r8,logInterfaceChange:t8,logDidYouMeanClick:Ty,logCategoryFacetBreadcrumb:Xb,logFacetBreadcrumb:kb,logFacetClearAll:Sb,logFacetDeselect:$b,logFacetSelect:wb,logFacetShowLess:Cb,logFacetShowMore:yb,logFacetUpdateSort:bb,logDateFacetBreadcrumb:tS,logNumericFacetBreadcrumb:nS,logNavigateBackward:Ab,logNavigateForward:qb,logPageNext:Jp,logPageNumber:Zp,logPagePrevious:Gp,logPagerResize:_b,logSearchboxSubmit:Wb,logQuerySuggestionClick:Yb,logResultsSort:Jb,logDislikeSmartSnippet:sS,logLikeSmartSnippet:oS,logOpenSmartSnippetFeedbackModal:lS,logCloseSmartSnippetFeedbackModal:uS,logSmartSnippetFeedback:cS,logSmartSnippetDetailedFeedback:dS,logExpandSmartSnippet:iS,logCollapseSmartSnippet:aS,logExpandSmartSnippetSuggestion:fS,logCollapseSmartSnippetSuggestion:pS,logNoResultsBack:Rb,logStaticFilterSelect:ub,logStaticFilterDeselect:cb,logStaticFilterClearAll:db,logTriggerQuery:f0,logUndoTriggerQuery:zy,logNotifyTrigger:Vy,logTriggerRedirect:Ny,logTriggerExecute:Qy}}function yS(e){return e.addReducers({}),{logSearchEvent:G7,logClickEvent:K7,logCustomEvent:X7}}function e5(e,t){return new CustomEvent(e,{detail:t,bubbles:!0,cancelable:!0,composed:!0})}var CS=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function bS(e,t,n){return n={path:t,exports:{},require:function(r,i){return SS()}},e(n,n.exports),n.exports}function SS(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}bS(function(e,t){(function(n,r){e.exports=r()})(CS,function(){function n(Y){return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},n(Y)}function r(Y,Z){return r=Object.setPrototypeOf||function(he,Ve){return he.__proto__=Ve,he},r(Y,Z)}function i(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(Y){return!1}}function a(Y,Z,se){return i()?a=Reflect.construct:a=function(Ve,Tt,Qt){var Ft=[null];Ft.push.apply(Ft,Tt);var Rr=Function.bind.apply(Ve,Ft),Mr=new Rr;return Qt&&r(Mr,Qt.prototype),Mr},a.apply(null,arguments)}function o(Y){return s(Y)||l(Y)||u(Y)||f()}function s(Y){if(Array.isArray(Y))return d(Y)}function l(Y){if(typeof Symbol!="undefined"&&Y[Symbol.iterator]!=null||Y["@@iterator"]!=null)return Array.from(Y)}function u(Y,Z){if(Y){if(typeof Y=="string")return d(Y,Z);var se=Object.prototype.toString.call(Y).slice(8,-1);if(se==="Object"&&Y.constructor&&(se=Y.constructor.name),se==="Map"||se==="Set")return Array.from(Y);if(se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(se))return d(Y,Z)}}function d(Y,Z){(Z==null||Z>Y.length)&&(Z=Y.length);for(var se=0,he=new Array(Z);se<Z;se++)he[se]=Y[se];return he}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=Object.hasOwnProperty,y=Object.setPrototypeOf,g=Object.isFrozen,c=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor,p=Object.freeze,v=Object.seal,C=Object.create,E=typeof Reflect!="undefined"&&Reflect,M=E.apply,_=E.construct;M||(M=function(Z,se,he){return Z.apply(se,he)}),p||(p=function(Z){return Z}),v||(v=function(Z){return Z}),_||(_=function(Z,se){return a(Z,o(se))});var L=x(Array.prototype.forEach),S=x(Array.prototype.pop),I=x(Array.prototype.push),b=x(String.prototype.toLowerCase),q=x(String.prototype.match),F=x(String.prototype.replace),O=x(String.prototype.indexOf),$=x(String.prototype.trim),k=x(RegExp.prototype.test),w=T(TypeError);function x(Y){return function(Z){for(var se=arguments.length,he=new Array(se>1?se-1:0),Ve=1;Ve<se;Ve++)he[Ve-1]=arguments[Ve];return M(Y,Z,he)}}function T(Y){return function(){for(var Z=arguments.length,se=new Array(Z),he=0;he<Z;he++)se[he]=arguments[he];return _(Y,se)}}function A(Y,Z,se){se=se||b,y&&y(Y,null);for(var he=Z.length;he--;){var Ve=Z[he];if(typeof Ve=="string"){var Tt=se(Ve);Tt!==Ve&&(g(Z)||(Z[he]=Tt),Ve=Tt)}Y[Ve]=!0}return Y}function H(Y){var Z=C(null),se;for(se in Y)M(m,Y,[se])&&(Z[se]=Y[se]);return Z}function G(Y,Z){for(;Y!==null;){var se=h(Y,Z);if(se){if(se.get)return x(se.get);if(typeof se.value=="function")return x(se.value)}Y=c(Y)}function he(Ve){return console.warn("fallback value for",Ve),null}return he}var W=p(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ie=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ce=p(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),pe=p(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Re=p(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Me=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),le=p(["#text"]),ue=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Se=p(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ye=p(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ze=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),zt=v(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Vt=v(/<%[\w\W]*|[\w\W]*%>/gm),Nt=v(/^data-[\-\w.\u00B7-\uFFFF]/),Zo=v(/^aria-[\-\w]+$/),Vh=v(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Nh=v(/^(?:\w+script|data):/i),Qh=v(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hh=v(/^html$/i),Bh=function(){return typeof window=="undefined"?null:window},Wh=function(Z,se){if(n(Z)!=="object"||typeof Z.createPolicy!="function")return null;var he=null,Ve="data-tt-policy-suffix";se.currentScript&&se.currentScript.hasAttribute(Ve)&&(he=se.currentScript.getAttribute(Ve));var Tt="dompurify"+(he?"#"+he:"");try{return Z.createPolicy(Tt,{createHTML:function(Ft){return Ft},createScriptURL:function(Ft){return Ft}})}catch(Qt){return console.warn("TrustedTypes policy "+Tt+" could not be created."),null}};function td(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bh(),Z=function(R){return td(R)};if(Z.version="2.3.10",Z.removed=[],!Y||!Y.document||Y.document.nodeType!==9)return Z.isSupported=!1,Z;var se=Y.document,he=Y.document,Ve=Y.DocumentFragment,Tt=Y.HTMLTemplateElement,Qt=Y.Node,Ft=Y.Element,Rr=Y.NodeFilter,Mr=Y.NamedNodeMap,Zh=Mr===void 0?Y.NamedNodeMap||Y.MozNamedAttrMap:Mr,Jh=Y.HTMLFormElement,Gh=Y.DOMParser,Yi=Y.trustedTypes,Zi=Ft.prototype,Kh=G(Zi,"cloneNode"),Xh=G(Zi,"nextSibling"),em=G(Zi,"childNodes"),Jo=G(Zi,"parentNode");if(typeof Tt=="function"){var Go=he.createElement("template");Go.content&&Go.content.ownerDocument&&(he=Go.content.ownerDocument)}var Et=Wh(Yi,se),nd=Et?Et.createHTML(""):"",Ji=he,Ko=Ji.implementation,tm=Ji.createNodeIterator,nm=Ji.createDocumentFragment,rm=Ji.getElementsByTagName,im=se.importNode,rd={};try{rd=H(he).documentMode?he.documentMode:{}}catch(X){}var Dt={};Z.isSupported=typeof Jo=="function"&&Ko&&typeof Ko.createHTMLDocument!="undefined"&&rd!==9;var Xo=zt,es=Vt,am=Nt,om=Zo,sm=Nh,id=Qh,ts=Vh,Xe=null,ad=A({},[].concat(o(W),o(ie),o(Ce),o(Re),o(le))),rt=null,od=A({},[].concat(o(ue),o(Se),o(Ye),o(ze))),Ze=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Tr=null,ns=null,sd=!0,rs=!0,ld=!1,Wn=!1,fn=!1,is=!1,as=!1,Yn=!1,Gi=!1,Ki=!1,ud=!0,os=!0,Fr=!1,Zn={},Jn=null,cd=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),dd=null,fd=A({},["audio","video","img","source","image","track"]),ss=null,pd=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ls="http://www.w3.org/1998/Math/MathML",us="http://www.w3.org/2000/svg",Kt="http://www.w3.org/1999/xhtml",Xi=Kt,cs=!1,Gn,lm=["application/xhtml+xml","text/html"],um="text/html",et,Kn=null,cm=he.createElement("form"),hd=function(R){return R instanceof RegExp||R instanceof Function},ds=function(R){Kn&&Kn===R||((!R||n(R)!=="object")&&(R={}),R=H(R),Gn=lm.indexOf(R.PARSER_MEDIA_TYPE)===-1?Gn=um:Gn=R.PARSER_MEDIA_TYPE,et=Gn==="application/xhtml+xml"?function(B){return B}:b,Xe="ALLOWED_TAGS"in R?A({},R.ALLOWED_TAGS,et):ad,rt="ALLOWED_ATTR"in R?A({},R.ALLOWED_ATTR,et):od,ss="ADD_URI_SAFE_ATTR"in R?A(H(pd),R.ADD_URI_SAFE_ATTR,et):pd,dd="ADD_DATA_URI_TAGS"in R?A(H(fd),R.ADD_DATA_URI_TAGS,et):fd,Jn="FORBID_CONTENTS"in R?A({},R.FORBID_CONTENTS,et):cd,Tr="FORBID_TAGS"in R?A({},R.FORBID_TAGS,et):{},ns="FORBID_ATTR"in R?A({},R.FORBID_ATTR,et):{},Zn="USE_PROFILES"in R?R.USE_PROFILES:!1,sd=R.ALLOW_ARIA_ATTR!==!1,rs=R.ALLOW_DATA_ATTR!==!1,ld=R.ALLOW_UNKNOWN_PROTOCOLS||!1,Wn=R.SAFE_FOR_TEMPLATES||!1,fn=R.WHOLE_DOCUMENT||!1,Yn=R.RETURN_DOM||!1,Gi=R.RETURN_DOM_FRAGMENT||!1,Ki=R.RETURN_TRUSTED_TYPE||!1,as=R.FORCE_BODY||!1,ud=R.SANITIZE_DOM!==!1,os=R.KEEP_CONTENT!==!1,Fr=R.IN_PLACE||!1,ts=R.ALLOWED_URI_REGEXP||ts,Xi=R.NAMESPACE||Kt,R.CUSTOM_ELEMENT_HANDLING&&hd(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ze.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&hd(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ze.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ze.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Wn&&(rs=!1),Gi&&(Yn=!0),Zn&&(Xe=A({},o(le)),rt=[],Zn.html===!0&&(A(Xe,W),A(rt,ue)),Zn.svg===!0&&(A(Xe,ie),A(rt,Se),A(rt,ze)),Zn.svgFilters===!0&&(A(Xe,Ce),A(rt,Se),A(rt,ze)),Zn.mathMl===!0&&(A(Xe,Re),A(rt,Ye),A(rt,ze))),R.ADD_TAGS&&(Xe===ad&&(Xe=H(Xe)),A(Xe,R.ADD_TAGS,et)),R.ADD_ATTR&&(rt===od&&(rt=H(rt)),A(rt,R.ADD_ATTR,et)),R.ADD_URI_SAFE_ATTR&&A(ss,R.ADD_URI_SAFE_ATTR,et),R.FORBID_CONTENTS&&(Jn===cd&&(Jn=H(Jn)),A(Jn,R.FORBID_CONTENTS,et)),os&&(Xe["#text"]=!0),fn&&A(Xe,["html","head","body"]),Xe.table&&(A(Xe,["tbody"]),delete Tr.tbody),p&&p(R),Kn=R)},md=A({},["mi","mo","mn","ms","mtext"]),gd=A({},["foreignobject","desc","title","annotation-xml"]),dm=A({},["title","style","font","a","script"]),ea=A({},ie);A(ea,Ce),A(ea,pe);var fs=A({},Re);A(fs,Me);var fm=function(R){var B=Jo(R);(!B||!B.tagName)&&(B={namespaceURI:Kt,tagName:"template"});var J=b(R.tagName),we=b(B.tagName);return R.namespaceURI===us?B.namespaceURI===Kt?J==="svg":B.namespaceURI===ls?J==="svg"&&(we==="annotation-xml"||md[we]):!!ea[J]:R.namespaceURI===ls?B.namespaceURI===Kt?J==="math":B.namespaceURI===us?J==="math"&&gd[we]:!!fs[J]:R.namespaceURI===Kt?B.namespaceURI===us&&!gd[we]||B.namespaceURI===ls&&!md[we]?!1:!fs[J]&&(dm[J]||!ea[J]):!1},Ht=function(R){I(Z.removed,{element:R});try{R.parentNode.removeChild(R)}catch(B){try{R.outerHTML=nd}catch(J){R.remove()}}},vd=function(R,B){try{I(Z.removed,{attribute:B.getAttributeNode(R),from:B})}catch(J){I(Z.removed,{attribute:null,from:B})}if(B.removeAttribute(R),R==="is"&&!rt[R])if(Yn||Gi)try{Ht(B)}catch(J){}else try{B.setAttribute(R,"")}catch(J){}},yd=function(R){var B,J;if(as)R="<remove></remove>"+R;else{var we=q(R,/^[\r\n\t ]+/);J=we&&we[0]}Gn==="application/xhtml+xml"&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");var pt=Et?Et.createHTML(R):R;if(Xi===Kt)try{B=new Gh().parseFromString(pt,Gn)}catch(it){}if(!B||!B.documentElement){B=Ko.createDocument(Xi,"template",null);try{B.documentElement.innerHTML=cs?"":pt}catch(it){}}var ot=B.body||B.documentElement;return R&&J&&ot.insertBefore(he.createTextNode(J),ot.childNodes[0]||null),Xi===Kt?rm.call(B,fn?"html":"body")[0]:fn?B.documentElement:ot},Cd=function(R){return tm.call(R.ownerDocument||R,R,Rr.SHOW_ELEMENT|Rr.SHOW_COMMENT|Rr.SHOW_TEXT,null,!1)},pm=function(R){return R instanceof Jh&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof Zh)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function")},Dr=function(R){return n(Qt)==="object"?R instanceof Qt:R&&n(R)==="object"&&typeof R.nodeType=="number"&&typeof R.nodeName=="string"},Bt=function(R,B,J){Dt[R]&&L(Dt[R],function(we){we.call(Z,B,J,Kn)})},bd=function(R){var B;if(Bt("beforeSanitizeElements",R,null),pm(R)||k(/[\u0080-\uFFFF]/,R.nodeName))return Ht(R),!0;var J=et(R.nodeName);if(Bt("uponSanitizeElement",R,{tagName:J,allowedTags:Xe}),R.hasChildNodes()&&!Dr(R.firstElementChild)&&(!Dr(R.content)||!Dr(R.content.firstElementChild))&&k(/<[/\w]/g,R.innerHTML)&&k(/<[/\w]/g,R.textContent)||J==="select"&&k(/<template/i,R.innerHTML))return Ht(R),!0;if(!Xe[J]||Tr[J]){if(!Tr[J]&&wd(J)&&(Ze.tagNameCheck instanceof RegExp&&k(Ze.tagNameCheck,J)||Ze.tagNameCheck instanceof Function&&Ze.tagNameCheck(J)))return!1;if(os&&!Jn[J]){var we=Jo(R)||R.parentNode,pt=em(R)||R.childNodes;if(pt&&we)for(var ot=pt.length,it=ot-1;it>=0;--it)we.insertBefore(Kh(pt[it],!0),Xh(R))}return Ht(R),!0}return R instanceof Ft&&!fm(R)||(J==="noscript"||J==="noembed")&&k(/<\/no(script|embed)/i,R.innerHTML)?(Ht(R),!0):(Wn&&R.nodeType===3&&(B=R.textContent,B=F(B,Xo," "),B=F(B,es," "),R.textContent!==B&&(I(Z.removed,{element:R.cloneNode()}),R.textContent=B)),Bt("afterSanitizeElements",R,null),!1)},Sd=function(R,B,J){if(ud&&(B==="id"||B==="name")&&(J in he||J in cm))return!1;if(!(rs&&!ns[B]&&k(am,B))){if(!(sd&&k(om,B))){if(!rt[B]||ns[B]){if(!(wd(R)&&(Ze.tagNameCheck instanceof RegExp&&k(Ze.tagNameCheck,R)||Ze.tagNameCheck instanceof Function&&Ze.tagNameCheck(R))&&(Ze.attributeNameCheck instanceof RegExp&&k(Ze.attributeNameCheck,B)||Ze.attributeNameCheck instanceof Function&&Ze.attributeNameCheck(B))||B==="is"&&Ze.allowCustomizedBuiltInElements&&(Ze.tagNameCheck instanceof RegExp&&k(Ze.tagNameCheck,J)||Ze.tagNameCheck instanceof Function&&Ze.tagNameCheck(J))))return!1}else if(!ss[B]){if(!k(ts,F(J,id,""))){if(!((B==="src"||B==="xlink:href"||B==="href")&&R!=="script"&&O(J,"data:")===0&&dd[R])){if(!(ld&&!k(sm,F(J,id,"")))){if(J)return!1}}}}}}return!0},wd=function(R){return R.indexOf("-")>0},$d=function(R){var B,J,we,pt;Bt("beforeSanitizeAttributes",R,null);var ot=R.attributes;if(ot){var it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:rt};for(pt=ot.length;pt--;){B=ot[pt];var ta=B,ft=ta.name,ps=ta.namespaceURI;if(J=ft==="value"?B.value:$(B.value),we=et(ft),it.attrName=we,it.attrValue=J,it.keepAttr=!0,it.forceKeepAttr=void 0,Bt("uponSanitizeAttribute",R,it),J=it.attrValue,!it.forceKeepAttr&&(vd(ft,R),!!it.keepAttr)){if(k(/\/>/i,J)){vd(ft,R);continue}Wn&&(J=F(J,Xo," "),J=F(J,es," "));var kd=et(R.nodeName);if(Sd(kd,we,J)){if(Et&&n(Yi)==="object"&&typeof Yi.getAttributeType=="function"&&!ps)switch(Yi.getAttributeType(kd,we)){case"TrustedHTML":J=Et.createHTML(J);break;case"TrustedScriptURL":J=Et.createScriptURL(J);break}try{ps?R.setAttributeNS(ps,ft,J):R.setAttribute(ft,J),S(Z.removed)}catch(pR){}}}}Bt("afterSanitizeAttributes",R,null)}},hm=function X(R){var B,J=Cd(R);for(Bt("beforeSanitizeShadowDOM",R,null);B=J.nextNode();)Bt("uponSanitizeShadowNode",B,null),!bd(B)&&(B.content instanceof Ve&&X(B.content),$d(B));Bt("afterSanitizeShadowDOM",R,null)};return Z.sanitize=function(X,R){var B,J,we,pt,ot;if(cs=!X,cs&&(X="<!-->"),typeof X!="string"&&!Dr(X)){if(typeof X.toString!="function")throw w("toString is not a function");if(X=X.toString(),typeof X!="string")throw w("dirty is not a string, aborting")}if(!Z.isSupported){if(n(Y.toStaticHTML)==="object"||typeof Y.toStaticHTML=="function"){if(typeof X=="string")return Y.toStaticHTML(X);if(Dr(X))return Y.toStaticHTML(X.outerHTML)}return X}if(is||ds(R),Z.removed=[],typeof X=="string"&&(Fr=!1),Fr){if(X.nodeName){var it=et(X.nodeName);if(!Xe[it]||Tr[it])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(X instanceof Qt)B=yd("<!---->"),J=B.ownerDocument.importNode(X,!0),J.nodeType===1&&J.nodeName==="BODY"||J.nodeName==="HTML"?B=J:B.appendChild(J);else{if(!Yn&&!Wn&&!fn&&X.indexOf("<")===-1)return Et&&Ki?Et.createHTML(X):X;if(B=yd(X),!B)return Yn?null:Ki?nd:""}B&&as&&Ht(B.firstChild);for(var ta=Cd(Fr?X:B);we=ta.nextNode();)we.nodeType===3&&we===pt||bd(we)||(we.content instanceof Ve&&hm(we.content),$d(we),pt=we);if(pt=null,Fr)return X;if(Yn){if(Gi)for(ot=nm.call(B.ownerDocument);B.firstChild;)ot.appendChild(B.firstChild);else ot=B;return rt.shadowroot&&(ot=im.call(se,ot,!0)),ot}var ft=fn?B.outerHTML:B.innerHTML;return fn&&Xe["!doctype"]&&B.ownerDocument&&B.ownerDocument.doctype&&B.ownerDocument.doctype.name&&k(Hh,B.ownerDocument.doctype.name)&&(ft="<!DOCTYPE "+B.ownerDocument.doctype.name+`>
|
|
14
|
-
`+ft),Wn&&(ft=F(ft,Xo," "),ft=F(ft,es," ")),Et&&Ki?Et.createHTML(ft):ft},Z.setConfig=function(X){ds(X),is=!0},Z.clearConfig=function(){Kn=null,is=!1},Z.isValidAttribute=function(X,R,B){Kn||ds({});var J=et(X),we=et(R);return Sd(J,we,B)},Z.addHook=function(X,R){typeof R=="function"&&(Dt[X]=Dt[X]||[],I(Dt[X],R))},Z.removeHook=function(X){if(Dt[X])return S(Dt[X])},Z.removeHooks=function(X){Dt[X]&&(Dt[X]=[])},Z.removeAllHooks=function(){Dt={}},Z}var Yh=td();return Yh})});function Na(e,t){return e?e.matches(t)?e:e.parentNode instanceof ShadowRoot?Na(e.parentNode.host,t):Na(e.parentElement,t):null}var wS="atomic/initializeComponent",t5=["atomic-recs-interface","atomic-search-interface","atomic-relevance-inspector","atomic-insight-interface","atomic-external"];function $S(e){return new Promise((t,n)=>{let r=e5(wS,i=>t(i));e.dispatchEvent(r),Na(e,t5.join(", "))||n(new Vl(e.nodeName.toLowerCase()))})}var Vl=class extends Error{constructor(t){super(`The "${t}" element must be the child of the following elements: ${t5.join(", ")}`)}};var kS=Object.create,Ao=Object.defineProperty,xS=Object.getOwnPropertyDescriptor,OS=Object.getOwnPropertyNames,IS=Object.getPrototypeOf,ES=Object.prototype.hasOwnProperty,n5=e=>Ao(e,"__esModule",{value:!0}),qe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dc=(e,t)=>{n5(e);for(var n in t)Ao(e,n,{get:t[n],enumerable:!0})},r5=(e,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of OS(t))!ES.call(e,r)&&r!=="default"&&Ao(e,r,{get:()=>t[r],enumerable:!(n=xS(t,r))||n.enumerable});return e},Ke=e=>r5(n5(Ao(e!=null?kS(IS(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),qS=qe((e,t)=>{function n(r,i,a){return i in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}),AS=qe((e,t)=>{var n=qS();function r(a,o){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);o&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),s.push.apply(s,l)}return s}function i(a){for(var o=1;o<arguments.length;o++){var s=arguments[o]!=null?arguments[o]:{};o%2?r(Object(s),!0).forEach(function(l){n(a,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(s,l))})}return a}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}),Ro=qe(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=AS();function n(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var r=n(t);function i(p){return"Minified Redux error #"+p+"; visit https://redux.js.org/Errors?code="+p+" for the full message or use the non-minified dev environment for full errors. "}var a=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function l(p){if(typeof p!="object"||p===null)return!1;for(var v=p;Object.getPrototypeOf(v)!==null;)v=Object.getPrototypeOf(v);return Object.getPrototypeOf(p)===v}function u(p,v,C){var E;if(typeof v=="function"&&typeof C=="function"||typeof C=="function"&&typeof arguments[3]=="function")throw new Error(i(0));if(typeof v=="function"&&typeof C=="undefined"&&(C=v,v=void 0),typeof C!="undefined"){if(typeof C!="function")throw new Error(i(1));return C(u)(p,v)}if(typeof p!="function")throw new Error(i(2));var M=p,_=v,L=[],S=L,I=!1;function b(){S===L&&(S=L.slice())}function q(){if(I)throw new Error(i(3));return _}function F(w){if(typeof w!="function")throw new Error(i(4));if(I)throw new Error(i(5));var x=!0;return b(),S.push(w),function(){if(x){if(I)throw new Error(i(6));x=!1,b();var T=S.indexOf(w);S.splice(T,1),L=null}}}function O(w){if(!l(w))throw new Error(i(7));if(typeof w.type=="undefined")throw new Error(i(8));if(I)throw new Error(i(9));try{I=!0,_=M(_,w)}finally{I=!1}for(var x=L=S,T=0;T<x.length;T++){var A=x[T];A()}return w}function $(w){if(typeof w!="function")throw new Error(i(10));M=w,O({type:s.REPLACE})}function k(){var w,x=F;return w={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(i(11));function A(){T.next&&T.next(q())}A();var H=x(A);return{unsubscribe:H}}},w[a]=function(){return this},w}return O({type:s.INIT}),E={dispatch:O,subscribe:F,getState:q,replaceReducer:$},E[a]=k,E}var d=u;function f(p){Object.keys(p).forEach(function(v){var C=p[v],E=C(void 0,{type:s.INIT});if(typeof E=="undefined")throw new Error(i(12));if(typeof C(void 0,{type:s.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(i(13))})}function m(p){for(var v=Object.keys(p),C={},E=0;E<v.length;E++){var M=v[E];typeof p[M]=="function"&&(C[M]=p[M])}var _=Object.keys(C),L;try{f(C)}catch(S){L=S}return function(S,I){if(S===void 0&&(S={}),L)throw L;for(var b=!1,q={},F=0;F<_.length;F++){var O=_[F],$=C[O],k=S[O],w=$(k,I);if(typeof w=="undefined")throw new Error(i(14));q[O]=w,b=b||w!==k}return b=b||_.length!==Object.keys(S).length,b?q:S}}function y(p,v){return function(){return v(p.apply(this,arguments))}}function g(p,v){if(typeof p=="function")return y(p,v);if(typeof p!="object"||p===null)throw new Error(i(16));var C={};for(var E in p){var M=p[E];typeof M=="function"&&(C[E]=y(M,v))}return C}function c(){for(var p=arguments.length,v=new Array(p),C=0;C<p;C++)v[C]=arguments[C];return v.length===0?function(E){return E}:v.length===1?v[0]:v.reduce(function(E,M){return function(){return E(M.apply(void 0,arguments))}})}function h(){for(var p=arguments.length,v=new Array(p),C=0;C<p;C++)v[C]=arguments[C];return function(E){return function(){var M=E.apply(void 0,arguments),_=function(){throw new Error(i(15))},L={getState:M.getState,dispatch:function(){return _.apply(void 0,arguments)}},S=v.map(function(I){return I(L)});return _=c.apply(void 0,S)(M.dispatch),r.default(r.default({},M),{},{dispatch:_})}}}e.__DO_NOT_USE__ActionTypes=s,e.applyMiddleware=h,e.bindActionCreators=g,e.combineReducers=m,e.compose=c,e.createStore=u,e.legacy_createStore=d}),RS=qe((e,t)=>{function n(i){try{return JSON.stringify(i)}catch(a){return'"[Circular]"'}}t.exports=r;function r(i,a,o){var s=o&&o.stringify||n,l=1;if(typeof i=="object"&&i!==null){var u=a.length+l;if(u===1)return i;var d=new Array(u);d[0]=s(i);for(var f=1;f<u;f++)d[f]=s(a[f]);return d.join(" ")}if(typeof i!="string")return i;var m=a.length;if(m===0)return i;for(var y="",g=1-l,c=-1,h=i&&i.length||0,p=0;p<h;){if(i.charCodeAt(p)===37&&p+1<h){switch(c=c>-1?c:0,i.charCodeAt(p+1)){case 100:case 102:if(g>=m||a[g]==null)break;c<p&&(y+=i.slice(c,p)),y+=Number(a[g]),c=p+2,p++;break;case 105:if(g>=m||a[g]==null)break;c<p&&(y+=i.slice(c,p)),y+=Math.floor(Number(a[g])),c=p+2,p++;break;case 79:case 111:case 106:if(g>=m||a[g]===void 0)break;c<p&&(y+=i.slice(c,p));var v=typeof a[g];if(v==="string"){y+="'"+a[g]+"'",c=p+2,p++;break}if(v==="function"){y+=a[g].name||"<anonymous>",c=p+2,p++;break}y+=s(a[g]),c=p+2,p++;break;case 115:if(g>=m)break;c<p&&(y+=i.slice(c,p)),y+=String(a[g]),c=p+2,p++;break;case 37:c<p&&(y+=i.slice(c,p)),y+="%",c=p+2,p++,g--;break}++g}++p}return c===-1?i:(c<h&&(y+=i.slice(c)),y)}}),Mo=qe((e,t)=>{var n=RS();t.exports=o;var r=L().console||{},i={mapHttpRequest:h,mapHttpResponse:h,wrapRequestSerializer:p,wrapResponseSerializer:p,wrapErrorSerializer:p,req:h,res:h,err:g};function a(S,I){return Array.isArray(S)?S.filter(function(b){return b!=="!stdSerializers.err"}):S===!0?Object.keys(I):!1}function o(S){S=S||{},S.browser=S.browser||{};let I=S.browser.transmit;if(I&&typeof I.send!="function")throw Error("pino: transmit option must have a send function");let b=S.browser.write||r;S.browser.write&&(S.browser.asObject=!0);let q=S.serializers||{},F=a(S.browser.serialize,q),O=S.browser.serialize;Array.isArray(S.browser.serialize)&&S.browser.serialize.indexOf("!stdSerializers.err")>-1&&(O=!1);let $=["error","fatal","warn","info","debug","trace"];typeof b=="function"&&(b.error=b.fatal=b.warn=b.info=b.debug=b.trace=b),S.enabled===!1&&(S.level="silent");let k=S.level||"info",w=Object.create(b);w.log||(w.log=v),Object.defineProperty(w,"levelVal",{get:T}),Object.defineProperty(w,"level",{get:A,set:H});let x={transmit:I,serialize:F,asObject:S.browser.asObject,levels:$,timestamp:c(S)};w.levels=o.levels,w.level=k,w.setMaxListeners=w.getMaxListeners=w.emit=w.addListener=w.on=w.prependListener=w.once=w.prependOnceListener=w.removeListener=w.removeAllListeners=w.listeners=w.listenerCount=w.eventNames=w.write=w.flush=v,w.serializers=q,w._serialize=F,w._stdErrSerialize=O,w.child=G,I&&(w._logEvent=y());function T(){return this.level==="silent"?1/0:this.levels.values[this.level]}function A(){return this._level}function H(W){if(W!=="silent"&&!this.levels.values[W])throw Error("unknown level "+W);this._level=W,s(x,w,"error","log"),s(x,w,"fatal","error"),s(x,w,"warn","error"),s(x,w,"info","log"),s(x,w,"debug","log"),s(x,w,"trace","log")}function G(W,ie){if(!W)throw new Error("missing bindings for child Pino");ie=ie||{},F&&W.serializers&&(ie.serializers=W.serializers);let Ce=ie.serializers;if(F&&Ce){var pe=Object.assign({},q,Ce),Re=S.browser.serialize===!0?Object.keys(pe):F;delete W.serializers,d([W],Re,pe,this._stdErrSerialize)}function Me(le){this._childLevel=(le._childLevel|0)+1,this.error=f(le,W,"error"),this.fatal=f(le,W,"fatal"),this.warn=f(le,W,"warn"),this.info=f(le,W,"info"),this.debug=f(le,W,"debug"),this.trace=f(le,W,"trace"),pe&&(this.serializers=pe,this._serialize=Re),I&&(this._logEvent=y([].concat(le._logEvent.bindings,W)))}return Me.prototype=this,new Me(this)}return w}o.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},o.stdSerializers=i,o.stdTimeFunctions=Object.assign({},{nullTime:C,epochTime:E,unixTime:M,isoTime:_});function s(S,I,b,q){let F=Object.getPrototypeOf(I);I[b]=I.levelVal>I.levels.values[b]?v:F[b]?F[b]:r[b]||r[q]||v,l(S,I,b)}function l(S,I,b){!S.transmit&&I[b]===v||(I[b]=function(q){return function(){let F=S.timestamp(),O=new Array(arguments.length),$=Object.getPrototypeOf&&Object.getPrototypeOf(this)===r?r:this;for(var k=0;k<O.length;k++)O[k]=arguments[k];if(S.serialize&&!S.asObject&&d(O,this._serialize,this.serializers,this._stdErrSerialize),S.asObject?q.call($,u(this,b,O,F)):q.apply($,O),S.transmit){let w=S.transmit.level||I.level,x=o.levels.values[w],T=o.levels.values[b];if(T<x)return;m(this,{ts:F,methodLevel:b,methodValue:T,transmitLevel:w,transmitValue:o.levels.values[S.transmit.level||I.level],send:S.transmit.send,val:I.levelVal},O)}}}(I[b]))}function u(S,I,b,q){S._serialize&&d(b,S._serialize,S.serializers,S._stdErrSerialize);let F=b.slice(),O=F[0],$={};q&&($.time=q),$.level=o.levels.values[I];let k=(S._childLevel|0)+1;if(k<1&&(k=1),O!==null&&typeof O=="object"){for(;k--&&typeof F[0]=="object";)Object.assign($,F.shift());O=F.length?n(F.shift(),F):void 0}else typeof O=="string"&&(O=n(F.shift(),F));return O!==void 0&&($.msg=O),$}function d(S,I,b,q){for(let F in S)if(q&&S[F]instanceof Error)S[F]=o.stdSerializers.err(S[F]);else if(typeof S[F]=="object"&&!Array.isArray(S[F]))for(let O in S[F])I&&I.indexOf(O)>-1&&O in b&&(S[F][O]=b[O](S[F][O]))}function f(S,I,b){return function(){let q=new Array(1+arguments.length);q[0]=I;for(var F=1;F<q.length;F++)q[F]=arguments[F-1];return S[b].apply(this,q)}}function m(S,I,b){let q=I.send,F=I.ts,O=I.methodLevel,$=I.methodValue,k=I.val,w=S._logEvent.bindings;d(b,S._serialize||Object.keys(S.serializers),S.serializers,S._stdErrSerialize===void 0?!0:S._stdErrSerialize),S._logEvent.ts=F,S._logEvent.messages=b.filter(function(x){return w.indexOf(x)===-1}),S._logEvent.level.label=O,S._logEvent.level.value=$,q(O,S._logEvent,k),S._logEvent=y(w)}function y(S){return{ts:0,messages:[],bindings:S||[],level:{label:"",value:0}}}function g(S){let I={type:S.constructor.name,msg:S.message,stack:S.stack};for(let b in S)I[b]===void 0&&(I[b]=S[b]);return I}function c(S){return typeof S.timestamp=="function"?S.timestamp:S.timestamp===!1?C:E}function h(){return{}}function p(S){return S}function v(){}function C(){return!1}function E(){return Date.now()}function M(){return Math.round(Date.now()/1e3)}function _(){return new Date(Date.now()).toISOString()}function L(){function S(I){return typeof I!="undefined"&&I}try{return typeof globalThis!="undefined"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(I){return S(self)||S(window)||S(this)||{}}}}),MS=qe((e,t)=>{var n="[object Object]";function r(g){var c=!1;if(g!=null&&typeof g.toString!="function")try{c=!!(g+"")}catch(h){}return c}function i(g,c){return function(h){return g(c(h))}}var a=Function.prototype,o=Object.prototype,s=a.toString,l=o.hasOwnProperty,u=s.call(Object),d=o.toString,f=i(Object.getPrototypeOf,Object);function m(g){return!!g&&typeof g=="object"}function y(g){if(!m(g)||d.call(g)!=n||r(g))return!1;var c=f(g);if(c===null)return!0;var h=l.call(c,"constructor")&&c.constructor;return typeof h=="function"&&h instanceof h&&s.call(h)==u}t.exports=y}),TS=qe(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=Ro(),n=MS(),r=i(n);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){if(Array.isArray(l)){for(var u=0,d=Array(l.length);u<l.length;u++)d[u]=l[u];return d}else return Array.from(l)}var o=function(l){return typeof l=="function"};function s(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function d(){var m=[],y=[],g={getState:function(){return o(u)?u(m):u},getActions:function(){return m},dispatch:function(c){if(!(0,r.default)(c))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(typeof c.type=="undefined")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant? Action: '+JSON.stringify(c));m.push(c);for(var h=0;h<y.length;h++)y[h]();return c},clearActions:function(){m=[]},subscribe:function(c){return o(c)&&y.push(c),function(){var h=y.indexOf(c);h<0||y.splice(h,1)}},replaceReducer:function(c){if(!o(c))throw new Error("Expected the nextReducer to be a function.")}};return g}var f=t.applyMiddleware.apply(void 0,a(l))(d);return f()}}}),FS=qe((e,t)=>{t.exports=fetch}),DS=qe(e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(i){for(var a,o=1,s=arguments.length;o<s;o++){a=arguments[o];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(i[l]=a[l])}return i},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var n={delayFirstAttempt:!1,jitter:"none",maxDelay:1/0,numOfAttempts:10,retry:function(){return!0},startingDelay:100,timeMultiple:2};function r(i){var a=t(t({},n),i);return a.numOfAttempts<1&&(a.numOfAttempts=1),a}e.getSanitizedOptions=r}),jS=qe(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(n){var r=Math.random()*n;return Math.round(r)}e.fullJitter=t}),PS=qe(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(n){return n}e.noJitter=t}),US=qe(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=jS(),n=PS();function r(i){switch(i.jitter){case"full":return t.fullJitter;case"none":default:return n.noJitter}}e.JitterFactory=r}),i5=qe(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=US(),n=function(){function r(i){this.options=i,this.attempt=0}return r.prototype.apply=function(){var i=this;return new Promise(function(a){return setTimeout(a,i.jitteredDelay)})},r.prototype.setAttemptNumber=function(i){this.attempt=i},Object.defineProperty(r.prototype,"jitteredDelay",{get:function(){var i=t.JitterFactory(this.options);return i(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"delay",{get:function(){var i=this.options.startingDelay,a=this.options.timeMultiple,o=this.numOfDelayedAttempts,s=i*Math.pow(a,o);return Math.min(s,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),r}();e.Delay=n}),_S=qe(e=>{var t=e&&e.__extends||function(){var o=function(s,l){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var f in d)d.hasOwnProperty(f)&&(u[f]=d[f])},o(s,l)};return function(s,l){o(s,l);function u(){this.constructor=s}s.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}}(),n=e&&e.__awaiter||function(o,s,l,u){function d(f){return f instanceof l?f:new l(function(m){m(f)})}return new(l||(l=Promise))(function(f,m){function y(h){try{c(u.next(h))}catch(p){m(p)}}function g(h){try{c(u.throw(h))}catch(p){m(p)}}function c(h){h.done?f(h.value):d(h.value).then(y,g)}c((u=u.apply(o,s||[])).next())})},r=e&&e.__generator||function(o,s){var l={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},u,d,f,m;return m={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function y(c){return function(h){return g([c,h])}}function g(c){if(u)throw new TypeError("Generator is already executing.");for(;l;)try{if(u=1,d&&(f=c[0]&2?d.return:c[0]?d.throw||((f=d.return)&&f.call(d),0):d.next)&&!(f=f.call(d,c[1])).done)return f;switch(d=0,f&&(c=[c[0]&2,f.value]),c[0]){case 0:case 1:f=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,d=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(f=l.trys,!(f=f.length>0&&f[f.length-1])&&(c[0]===6||c[0]===2)){l=0;continue}if(c[0]===3&&(!f||c[1]>f[0]&&c[1]<f[3])){l.label=c[1];break}if(c[0]===6&&l.label<f[1]){l.label=f[1],f=c;break}if(f&&l.label<f[2]){l.label=f[2],l.ops.push(c);break}f[2]&&l.ops.pop(),l.trys.pop();continue}c=s.call(o,l)}catch(h){c=[6,h],d=0}finally{u=f=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var i=i5(),a=function(o){t(s,o);function s(){return o!==null&&o.apply(this,arguments)||this}return s.prototype.apply=function(){return n(this,void 0,void 0,function(){return r(this,function(l){return[2,this.isFirstAttempt?!0:o.prototype.apply.call(this)]})})},Object.defineProperty(s.prototype,"isFirstAttempt",{get:function(){return this.attempt===0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt-1},enumerable:!0,configurable:!0}),s}(i.Delay);e.SkipFirstDelay=a}),LS=qe(e=>{var t=e&&e.__extends||function(){var i=function(a,o){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var u in l)l.hasOwnProperty(u)&&(s[u]=l[u])},i(a,o)};return function(a,o){i(a,o);function s(){this.constructor=a}a.prototype=o===null?Object.create(o):(s.prototype=o.prototype,new s)}}();Object.defineProperty(e,"__esModule",{value:!0});var n=i5(),r=function(i){t(a,i);function a(){return i!==null&&i.apply(this,arguments)||this}return a}(n.Delay);e.AlwaysDelay=r}),zS=qe(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=_S(),n=LS();function r(a,o){var s=i(a);return s.setAttemptNumber(o),s}e.DelayFactory=r;function i(a){return a.delayFirstAttempt?new n.AlwaysDelay(a):new t.SkipFirstDelay(a)}}),VS=qe(e=>{var t=e&&e.__awaiter||function(s,l,u,d){function f(m){return m instanceof u?m:new u(function(y){y(m)})}return new(u||(u=Promise))(function(m,y){function g(p){try{h(d.next(p))}catch(v){y(v)}}function c(p){try{h(d.throw(p))}catch(v){y(v)}}function h(p){p.done?m(p.value):f(p.value).then(g,c)}h((d=d.apply(s,l||[])).next())})},n=e&&e.__generator||function(s,l){var u={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},d,f,m,y;return y={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(y[Symbol.iterator]=function(){return this}),y;function g(h){return function(p){return c([h,p])}}function c(h){if(d)throw new TypeError("Generator is already executing.");for(;u;)try{if(d=1,f&&(m=h[0]&2?f.return:h[0]?f.throw||((m=f.return)&&m.call(f),0):f.next)&&!(m=m.call(f,h[1])).done)return m;switch(f=0,m&&(h=[h[0]&2,m.value]),h[0]){case 0:case 1:m=h;break;case 4:return u.label++,{value:h[1],done:!1};case 5:u.label++,f=h[1],h=[0];continue;case 7:h=u.ops.pop(),u.trys.pop();continue;default:if(m=u.trys,!(m=m.length>0&&m[m.length-1])&&(h[0]===6||h[0]===2)){u=0;continue}if(h[0]===3&&(!m||h[1]>m[0]&&h[1]<m[3])){u.label=h[1];break}if(h[0]===6&&u.label<m[1]){u.label=m[1],m=h;break}if(m&&u.label<m[2]){u.label=m[2],u.ops.push(h);break}m[2]&&u.ops.pop(),u.trys.pop();continue}h=l.call(s,u)}catch(p){h=[6,p],f=0}finally{d=m=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var r=DS(),i=zS();function a(s,l){return l===void 0&&(l={}),t(this,void 0,void 0,function(){var u,d;return n(this,function(f){switch(f.label){case 0:return u=r.getSanitizedOptions(l),d=new o(s,u),[4,d.execute()];case 1:return[2,f.sent()]}})})}e.backOff=a;var o=function(){function s(l,u){this.request=l,this.options=u,this.attemptNumber=0}return s.prototype.execute=function(){return t(this,void 0,void 0,function(){var l,u;return n(this,function(d){switch(d.label){case 0:if(this.attemptLimitReached)return[3,7];d.label=1;case 1:return d.trys.push([1,4,,6]),[4,this.applyDelay()];case 2:return d.sent(),[4,this.request()];case 3:return[2,d.sent()];case 4:return l=d.sent(),this.attemptNumber++,[4,this.options.retry(l,this.attemptNumber)];case 5:if(u=d.sent(),!u||this.attemptLimitReached)throw l;return[3,6];case 6:return[3,0];case 7:throw new Error("Something went wrong.")}})})},Object.defineProperty(s.prototype,"attemptLimitReached",{get:function(){return this.attemptNumber>=this.options.numOfAttempts},enumerable:!0,configurable:!0}),s.prototype.applyDelay=function(){return t(this,void 0,void 0,function(){var l;return n(this,function(u){switch(u.label){case 0:return l=i.DelayFactory(this.options,this.attemptNumber),[4,l.apply()];case 1:return u.sent(),[2]}})})},s}()}),NS=qe((e,t)=>{var n=typeof self!="undefined"?self:typeof window!="undefined"?window:void 0;if(!n)throw new Error("Unable to find global scope. Are you sure this is running in the browser?");if(!n.AbortController)throw new Error('Could not find "AbortController" in the global scope. You need to polyfill it first');t.exports=n.AbortController,t.exports.default=n.AbortController}),QS=qe((e,t)=>{function n(a){if(arguments.length===0)throw new TypeError("1 argument required, but only 0 present.");if(a=`${a}`,a=a.replace(/[ \t\n\f\r]/g,""),a.length%4==0&&(a=a.replace(/==?$/,"")),a.length%4==1||/[^+/0-9A-Za-z]/.test(a))return null;let o="",s=0,l=0;for(let u=0;u<a.length;u++)s<<=6,s|=i(a[u]),l+=6,l===24&&(o+=String.fromCharCode((s&16711680)>>16),o+=String.fromCharCode((s&65280)>>8),o+=String.fromCharCode(s&255),s=l=0);return l===12?(s>>=4,o+=String.fromCharCode(s)):l===18&&(s>>=2,o+=String.fromCharCode((s&65280)>>8),o+=String.fromCharCode(s&255)),o}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function i(a){let o=r.indexOf(a);return o<0?void 0:o}t.exports=n}),HS=qe((e,t)=>{function n(a){if(arguments.length===0)throw new TypeError("1 argument required, but only 0 present.");let o;for(a=`${a}`,o=0;o<a.length;o++)if(a.charCodeAt(o)>255)return null;let s="";for(o=0;o<a.length;o+=3){let l=[void 0,void 0,void 0,void 0];l[0]=a.charCodeAt(o)>>2,l[1]=(a.charCodeAt(o)&3)<<4,a.length>o+1&&(l[1]|=a.charCodeAt(o+1)>>4,l[2]=(a.charCodeAt(o+1)&15)<<2),a.length>o+2&&(l[2]|=a.charCodeAt(o+2)>>6,l[3]=a.charCodeAt(o+2)&63);for(let u=0;u<l.length;u++)typeof l[u]=="undefined"?s+="=":s+=i(l[u])}return s}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function i(a){if(a>=0&&a<64)return r[a]}t.exports=n}),a5=qe((e,t)=>{var n=QS(),r=HS();t.exports={atob:n,btoa:r}}),fc=qe((e,t)=>{(function(n,r){typeof e=="object"&&typeof t!="undefined"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis!="undefined"?globalThis:n||self).dayjs=r()})(e,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",d="week",f="month",m="quarter",y="year",g="date",c="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},C=function(O,$,k){var w=String(O);return!w||w.length>=$?O:""+Array($+1-w.length).join(k)+O},E={s:C,z:function(O){var $=-O.utcOffset(),k=Math.abs($),w=Math.floor(k/60),x=k%60;return($<=0?"+":"-")+C(w,2,"0")+":"+C(x,2,"0")},m:function O($,k){if($.date()<k.date())return-O(k,$);var w=12*(k.year()-$.year())+(k.month()-$.month()),x=$.clone().add(w,f),T=k-x<0,A=$.clone().add(w+(T?-1:1),f);return+(-(w+(k-x)/(T?x-A:A-x))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:f,y,w:d,d:u,D:g,h:l,m:s,s:o,ms:a,Q:m}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},M="en",_={};_[M]=v;var L=function(O){return O instanceof q},S=function O($,k,w){var x;if(!$)return M;if(typeof $=="string"){var T=$.toLowerCase();_[T]&&(x=T),k&&(_[T]=k,x=T);var A=$.split("-");if(!x&&A.length>1)return O(A[0])}else{var H=$.name;_[H]=$,x=H}return!w&&x&&(M=x),x||!w&&M},I=function(O,$){if(L(O))return O.clone();var k=typeof $=="object"?$:{};return k.date=O,k.args=arguments,new q(k)},b=E;b.l=S,b.i=L,b.w=function(O,$){return I(O,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var q=function(){function O(k){this.$L=S(k.locale,null,!0),this.parse(k)}var $=O.prototype;return $.parse=function(k){this.$d=function(w){var x=w.date,T=w.utc;if(x===null)return new Date(NaN);if(b.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var A=x.match(h);if(A){var H=A[2]-1||0,G=(A[7]||"0").substring(0,3);return T?new Date(Date.UTC(A[1],H,A[3]||1,A[4]||0,A[5]||0,A[6]||0,G)):new Date(A[1],H,A[3]||1,A[4]||0,A[5]||0,A[6]||0,G)}}return new Date(x)}(k),this.$x=k.x||{},this.init()},$.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},$.$utils=function(){return b},$.isValid=function(){return this.$d.toString()!==c},$.isSame=function(k,w){var x=I(k);return this.startOf(w)<=x&&x<=this.endOf(w)},$.isAfter=function(k,w){return I(k)<this.startOf(w)},$.isBefore=function(k,w){return this.endOf(w)<I(k)},$.$g=function(k,w,x){return b.u(k)?this[w]:this.set(x,k)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(k,w){var x=this,T=!!b.u(w)||w,A=b.p(k),H=function(le,ue){var Se=b.w(x.$u?Date.UTC(x.$y,ue,le):new Date(x.$y,ue,le),x);return T?Se:Se.endOf(u)},G=function(le,ue){return b.w(x.toDate()[le].apply(x.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(ue)),x)},W=this.$W,ie=this.$M,Ce=this.$D,pe="set"+(this.$u?"UTC":"");switch(A){case y:return T?H(1,0):H(31,11);case f:return T?H(1,ie):H(0,ie+1);case d:var Re=this.$locale().weekStart||0,Me=(W<Re?W+7:W)-Re;return H(T?Ce-Me:Ce+(6-Me),ie);case u:case g:return G(pe+"Hours",0);case l:return G(pe+"Minutes",1);case s:return G(pe+"Seconds",2);case o:return G(pe+"Milliseconds",3);default:return this.clone()}},$.endOf=function(k){return this.startOf(k,!1)},$.$set=function(k,w){var x,T=b.p(k),A="set"+(this.$u?"UTC":""),H=(x={},x[u]=A+"Date",x[g]=A+"Date",x[f]=A+"Month",x[y]=A+"FullYear",x[l]=A+"Hours",x[s]=A+"Minutes",x[o]=A+"Seconds",x[a]=A+"Milliseconds",x)[T],G=T===u?this.$D+(w-this.$W):w;if(T===f||T===y){var W=this.clone().set(g,1);W.$d[H](G),W.init(),this.$d=W.set(g,Math.min(this.$D,W.daysInMonth())).$d}else H&&this.$d[H](G);return this.init(),this},$.set=function(k,w){return this.clone().$set(k,w)},$.get=function(k){return this[b.p(k)]()},$.add=function(k,w){var x,T=this;k=Number(k);var A=b.p(w),H=function(ie){var Ce=I(T);return b.w(Ce.date(Ce.date()+Math.round(ie*k)),T)};if(A===f)return this.set(f,this.$M+k);if(A===y)return this.set(y,this.$y+k);if(A===u)return H(1);if(A===d)return H(7);var G=(x={},x[s]=r,x[l]=i,x[o]=n,x)[A]||1,W=this.$d.getTime()+k*G;return b.w(W,this)},$.subtract=function(k,w){return this.add(-1*k,w)},$.format=function(k){var w=this,x=this.$locale();if(!this.isValid())return x.invalidDate||c;var T=k||"YYYY-MM-DDTHH:mm:ssZ",A=b.z(this),H=this.$H,G=this.$m,W=this.$M,ie=x.weekdays,Ce=x.months,pe=function(ue,Se,Ye,ze){return ue&&(ue[Se]||ue(w,T))||Ye[Se].slice(0,ze)},Re=function(ue){return b.s(H%12||12,ue,"0")},Me=x.meridiem||function(ue,Se,Ye){var ze=ue<12?"AM":"PM";return Ye?ze.toLowerCase():ze},le={YY:String(this.$y).slice(-2),YYYY:this.$y,M:W+1,MM:b.s(W+1,2,"0"),MMM:pe(x.monthsShort,W,Ce,3),MMMM:pe(Ce,W),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:pe(x.weekdaysMin,this.$W,ie,2),ddd:pe(x.weekdaysShort,this.$W,ie,3),dddd:ie[this.$W],H:String(H),HH:b.s(H,2,"0"),h:Re(1),hh:Re(2),a:Me(H,G,!0),A:Me(H,G,!1),m:String(G),mm:b.s(G,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:A};return T.replace(p,function(ue,Se){return Se||le[ue]||A.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(k,w,x){var T,A=b.p(w),H=I(k),G=(H.utcOffset()-this.utcOffset())*r,W=this-H,ie=b.m(this,H);return ie=(T={},T[y]=ie/12,T[f]=ie,T[m]=ie/3,T[d]=(W-G)/6048e5,T[u]=(W-G)/864e5,T[l]=W/i,T[s]=W/r,T[o]=W/n,T)[A]||W,x?ie:b.a(ie)},$.daysInMonth=function(){return this.endOf(f).$D},$.$locale=function(){return _[this.$L]},$.locale=function(k,w){if(!k)return this.$L;var x=this.clone(),T=S(k,w,!0);return T&&(x.$L=T),x},$.clone=function(){return b.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},O}(),F=q.prototype;return I.prototype=F,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",y],["$D",g]].forEach(function(O){F[O[1]]=function($){return this.$g($,O[0],O[1])}}),I.extend=function(O,$){return O.$i||(O($,q,I),O.$i=!0),I},I.locale=S,I.isDayjs=L,I.unix=function(O){return I(1e3*O)},I.en=_[M],I.Ls=_,I.p={},I})}),BS=qe((e,t)=>{(function(n,r){typeof e=="object"&&typeof t!="undefined"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis!="undefined"?globalThis:n||self).dayjs_plugin_quarterOfYear=r()})(e,function(){var n="month",r="quarter";return function(i,a){var o=a.prototype;o.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var s=o.add;o.add=function(u,d){return u=Number(u),this.$utils().p(d)===r?this.add(3*u,n):s.bind(this)(u,d)};var l=o.startOf;o.startOf=function(u,d){var f=this.$utils(),m=!!f.u(d)||d;if(f.p(u)===r){var y=this.quarter()-1;return m?this.month(3*y).startOf(n).startOf("day"):this.month(3*y+2).endOf(n).endOf("day")}return l.bind(this)(u,d)}}})}),WS=qe((e,t)=>{(function(n,r){typeof e=="object"&&typeof t!="undefined"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis!="undefined"?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,a=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},l=function(c){return(c=+c)+(c>68?1900:2e3)},u=function(c){return function(h){this[c]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(c){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var p=h.match(/([+-]|\d\d)/g),v=60*p[1]+(+p[2]||0);return v===0?0:p[0]==="+"?-v:v}(c)}],f=function(c){var h=s[c];return h&&(h.indexOf?h:h.s.concat(h.f))},m=function(c,h){var p,v=s.meridiem;if(v){for(var C=1;C<=24;C+=1)if(c.indexOf(v(C,0,h))>-1){p=C>12;break}}else p=c===(h?"pm":"PM");return p},y={A:[o,function(c){this.afternoon=m(c,!1)}],a:[o,function(c){this.afternoon=m(c,!0)}],S:[/\d/,function(c){this.milliseconds=100*+c}],SS:[i,function(c){this.milliseconds=10*+c}],SSS:[/\d{3}/,function(c){this.milliseconds=+c}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[i,u("day")],Do:[o,function(c){var h=s.ordinal,p=c.match(/\d+/);if(this.day=p[0],h)for(var v=1;v<=31;v+=1)h(v).replace(/\[|\]/g,"")===c&&(this.day=v)}],M:[a,u("month")],MM:[i,u("month")],MMM:[o,function(c){var h=f("months"),p=(f("monthsShort")||h.map(function(v){return v.slice(0,3)})).indexOf(c)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[o,function(c){var h=f("months").indexOf(c)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(c){this.year=l(c)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function g(c){var h,p;h=c,p=s&&s.formats;for(var v=(c=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,b,q){var F=q&&q.toUpperCase();return b||p[q]||n[q]||p[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,$,k){return $||k.slice(1)})})).match(r),C=v.length,E=0;E<C;E+=1){var M=v[E],_=y[M],L=_&&_[0],S=_&&_[1];v[E]=S?{regex:L,parser:S}:M.replace(/^\[|\]$/g,"")}return function(I){for(var b={},q=0,F=0;q<C;q+=1){var O=v[q];if(typeof O=="string")F+=O.length;else{var $=O.regex,k=O.parser,w=I.slice(F),x=$.exec(w)[0];k.call(b,x),I=I.replace(x,"")}}return function(T){var A=T.afternoon;if(A!==void 0){var H=T.hours;A?H<12&&(T.hours+=12):H===12&&(T.hours=0),delete T.afternoon}}(b),b}}return function(c,h,p){p.p.customParseFormat=!0,c&&c.parseTwoDigitYear&&(l=c.parseTwoDigitYear);var v=h.prototype,C=v.parse;v.parse=function(E){var M=E.date,_=E.utc,L=E.args;this.$u=_;var S=L[1];if(typeof S=="string"){var I=L[2]===!0,b=L[3]===!0,q=I||b,F=L[2];b&&(F=L[2]),s=this.$locale(),!I&&F&&(s=p.Ls[F]),this.$d=function(w,x,T){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1e3:1)*w);var A=g(x)(w),H=A.year,G=A.month,W=A.day,ie=A.hours,Ce=A.minutes,pe=A.seconds,Re=A.milliseconds,Me=A.zone,le=new Date,ue=W||(H||G?1:le.getDate()),Se=H||le.getFullYear(),Ye=0;H&&!G||(Ye=G>0?G-1:le.getMonth());var ze=ie||0,zt=Ce||0,Vt=pe||0,Nt=Re||0;return Me?new Date(Date.UTC(Se,Ye,ue,ze,zt,Vt,Nt+60*Me.offset*1e3)):T?new Date(Date.UTC(Se,Ye,ue,ze,zt,Vt,Nt)):new Date(Se,Ye,ue,ze,zt,Vt,Nt)}catch(Zo){return new Date("")}}(M,S,_),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),q&&M!=this.format(S)&&(this.$d=new Date("")),s={}}else if(S instanceof Array)for(var O=S.length,$=1;$<=O;$+=1){L[1]=S[$-1];var k=p.apply(this,L);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}$===O&&(this.$d=new Date(""))}else C.call(this,E)}}})}),YS=qe((e,t)=>{(function(n,r){typeof e=="object"&&typeof t!="undefined"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis!="undefined"?globalThis:n||self).dayjs_plugin_timezone=r()})(e,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,a,o){var s,l=function(m,y,g){g===void 0&&(g={});var c=new Date(m),h=function(p,v){v===void 0&&(v={});var C=v.timeZoneName||"short",E=p+"|"+C,M=r[E];return M||(M=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:p,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:C}),r[E]=M),M}(y,g);return h.formatToParts(c)},u=function(m,y){for(var g=l(m,y),c=[],h=0;h<g.length;h+=1){var p=g[h],v=p.type,C=p.value,E=n[v];E>=0&&(c[E]=parseInt(C,10))}var M=c[3],_=M===24?0:M,L=c[0]+"-"+c[1]+"-"+c[2]+" "+_+":"+c[4]+":"+c[5]+":000",S=+m;return(o.utc(L).valueOf()-(S-=S%1e3))/6e4},d=a.prototype;d.tz=function(m,y){m===void 0&&(m=s);var g=this.utcOffset(),c=this.toDate(),h=c.toLocaleString("en-US",{timeZone:m}),p=Math.round((c-new Date(h))/1e3/60),v=o(h).$set("millisecond",this.$ms).utcOffset(15*-Math.round(c.getTimezoneOffset()/15)-p,!0);if(y){var C=v.utcOffset();v=v.add(g-C,"minute")}return v.$x.$timezone=m,v},d.offsetName=function(m){var y=this.$x.$timezone||o.tz.guess(),g=l(this.valueOf(),y,{timeZoneName:m}).find(function(c){return c.type.toLowerCase()==="timezonename"});return g&&g.value};var f=d.startOf;d.startOf=function(m,y){if(!this.$x||!this.$x.$timezone)return f.call(this,m,y);var g=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return f.call(g,m,y).tz(this.$x.$timezone,!0)},o.tz=function(m,y,g){var c=g&&y,h=g||y||s,p=u(+o(),h);if(typeof m!="string")return o(m).tz(h);var v=function(_,L,S){var I=_-60*L*1e3,b=u(I,S);if(L===b)return[I,L];var q=u(I-=60*(b-L)*1e3,S);return b===q?[I,b]:[_-60*Math.min(b,q)*1e3,Math.max(b,q)]}(o.utc(m,c).valueOf(),p,h),C=v[0],E=v[1],M=o(C).utcOffset(E);return M.$x.$timezone=h,M},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(m){s=m}}})}),ZS=qe((e,t)=>{(function(n,r){typeof e=="object"&&typeof t!="undefined"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis!="undefined"?globalThis:n||self).dayjs_plugin_utc=r()})(e,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,o,s){var l=o.prototype;s.utc=function(c){var h={date:c,utc:!0,args:arguments};return new o(h)},l.utc=function(c){var h=s(this.toDate(),{locale:this.$L,utc:!0});return c?h.add(this.utcOffset(),n):h},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(c){c.utc&&(this.$u=!0),this.$utils().u(c.$offset)||(this.$offset=c.$offset),u.call(this,c)};var d=l.init;l.init=function(){if(this.$u){var c=this.$d;this.$y=c.getUTCFullYear(),this.$M=c.getUTCMonth(),this.$D=c.getUTCDate(),this.$W=c.getUTCDay(),this.$H=c.getUTCHours(),this.$m=c.getUTCMinutes(),this.$s=c.getUTCSeconds(),this.$ms=c.getUTCMilliseconds()}else d.call(this)};var f=l.utcOffset;l.utcOffset=function(c,h){var p=this.$utils().u;if(p(c))return this.$u?0:p(this.$offset)?f.call(this):this.$offset;if(typeof c=="string"&&(c=function(M){M===void 0&&(M="");var _=M.match(r);if(!_)return null;var L=(""+_[0]).match(i)||["-",0,0],S=L[0],I=60*+L[1]+ +L[2];return I===0?0:S==="+"?I:-I}(c),c===null))return this;var v=Math.abs(c)<=16?60*c:c,C=this;if(h)return C.$offset=v,C.$u=c===0,C;if(c!==0){var E=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(C=this.local().add(v+E,n)).$offset=v,C.$x.$localOffset=E}else C=this.utc();return C};var m=l.format;l.format=function(c){var h=c||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,h)},l.valueOf=function(){var c=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*c},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var y=l.toDate;l.toDate=function(c){return c==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var g=l.diff;l.diff=function(c,h,p){if(c&&this.$u===c.$u)return g.call(this,c,h,p);var v=this.local(),C=s(c).local();return g.call(v,C,h,p)}}})}),JS=qe((e,t)=>{(function(n,r){typeof e=="object"&&typeof t!="undefined"?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis!="undefined"?globalThis:n||self,r(n["fast-equals"]={}))})(e,function(n){var r=typeof WeakSet=="function",i=Object.keys;function a(b,q){return b===q||b!==b&&q!==q}function o(b){return b.constructor===Object||b.constructor==null}function s(b){return!!b&&typeof b.then=="function"}function l(b){return!!(b&&b.$$typeof)}function u(){var b=[];return{add:function(q){b.push(q)},has:function(q){return b.indexOf(q)!==-1}}}var d=function(b){return b?function(){return new WeakSet}:u}(r);function f(b){return function(q){var F=b||q;return function(O,$,k){k===void 0&&(k=d());var w=!!O&&typeof O=="object",x=!!$&&typeof $=="object";if(w||x){var T=w&&k.has(O),A=x&&k.has($);if(T||A)return T&&A;w&&k.add(O),x&&k.add($)}return F(O,$,k)}}}function m(b,q,F,O){var $=b.length;if(q.length!==$)return!1;for(;$-- >0;)if(!F(b[$],q[$],O))return!1;return!0}function y(b,q,F,O){var $=b.size===q.size;if($&&b.size){var k={};b.forEach(function(w,x){if($){var T=!1,A=0;q.forEach(function(H,G){!T&&!k[A]&&(T=F(x,G,O)&&F(w,H,O),T&&(k[A]=!0)),A++}),$=T}})}return $}var g="_owner",c=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function h(b,q,F,O){var $=i(b),k=$.length;if(i(q).length!==k)return!1;if(k)for(var w=void 0;k-- >0;){if(w=$[k],w===g){var x=l(b),T=l(q);if((x||T)&&x!==T)return!1}if(!c(q,w)||!F(b[w],q[w],O))return!1}return!0}function p(b,q){return b.source===q.source&&b.global===q.global&&b.ignoreCase===q.ignoreCase&&b.multiline===q.multiline&&b.unicode===q.unicode&&b.sticky===q.sticky&&b.lastIndex===q.lastIndex}function v(b,q,F,O){var $=b.size===q.size;if($&&b.size){var k={};b.forEach(function(w){if($){var x=!1,T=0;q.forEach(function(A){!x&&!k[T]&&(x=F(w,A,O),x&&(k[T]=!0)),T++}),$=x}})}return $}var C=typeof Map=="function",E=typeof Set=="function";function M(b){var q=typeof b=="function"?b(F):F;function F(O,$,k){if(O===$)return!0;if(O&&$&&typeof O=="object"&&typeof $=="object"){if(o(O)&&o($))return h(O,$,q,k);var w=Array.isArray(O),x=Array.isArray($);return w||x?w===x&&m(O,$,q,k):(w=O instanceof Date,x=$ instanceof Date,w||x?w===x&&a(O.getTime(),$.getTime()):(w=O instanceof RegExp,x=$ instanceof RegExp,w||x?w===x&&p(O,$):s(O)||s($)?O===$:C&&(w=O instanceof Map,x=$ instanceof Map,w||x)?w===x&&y(O,$,q,k):E&&(w=O instanceof Set,x=$ instanceof Set,w||x)?w===x&&v(O,$,q,k):h(O,$,q,k)))}return O!==O&&$!==$}return F}var _=M(),L=M(function(){return a}),S=M(f()),I=M(f(a));n.circularDeepEqual=S,n.circularShallowEqual=I,n.createCustomEqual=M,n.deepEqual=_,n.sameValueZeroEqual=a,n.shallowEqual=L,Object.defineProperty(n,"__esModule",{value:!0})})}),GS={};dc(GS,{buildMockCaseAssistEngine:()=>pI,buildMockProductListingEngine:()=>fI,buildMockProductRecommendationsAppEngine:()=>dI,buildMockRaw:()=>V3,buildMockRecommendationAppEngine:()=>cI,buildMockResult:()=>gI,buildMockSearchAppEngine:()=>uI,createMockState:()=>z3});var o5={};dc(o5,{MiddlewareArray:()=>h5,TaskAbortError:()=>Di,addListener:()=>F5,clearAllListeners:()=>D5,configureStore:()=>Ew,createAction:()=>j,createAsyncThunk:()=>xe,createDraftSafeSelector:()=>Yt,createEntityAdapter:()=>Lw,createImmutableStateInvariantMiddleware:()=>kw,createListenerMiddleware:()=>r$,createNextState:()=>Fo,createReducer:()=>oe,createSelector:()=>d5,createSerializableStateInvariantMiddleware:()=>xw,createSlice:()=>Fw,current:()=>vc,findNonSerializableValue:()=>g5,freeze:()=>To,getDefaultMiddleware:()=>Cc,getType:()=>Rw,isAllOf:()=>Zl,isAnyOf:()=>Ti,isAsyncThunkAction:()=>O5,isDraft:()=>It,isFulfilled:()=>x5,isImmutableDefault:()=>$w,isPending:()=>$5,isPlain:()=>m5,isPlainObject:()=>Do,isRejected:()=>Ya,isRejectedWithValue:()=>k5,miniSerializeError:()=>b5,nanoid:()=>bc,original:()=>KS,removeListener:()=>j5,unwrapResult:()=>S5});function xt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function It(e){return!!e&&!!e[Fe]}function Jt(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===ow}(e)||Array.isArray(e)||!!e[_1]||!!e.constructor[_1]||pc(e)||hc(e))}function KS(e){return It(e)||xt(23,e),e[Fe].t}function Tn(e,t,n){n===void 0&&(n=!1),Or(e)===0?(n?Object.keys:pr)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Or(e){var t=e[Fe];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:pc(e)?2:hc(e)?3:0}function fr(e,t){return Or(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function XS(e,t){return Or(e)===2?e.get(t):e[t]}function s5(e,t,n){var r=Or(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function l5(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function pc(e){return iw&&e instanceof Map}function hc(e){return aw&&e instanceof Set}function vn(e){return e.o||e.t}function mc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=c5(e);delete t[Fe];for(var n=pr(t),r=0;r<n.length;r++){var i=n[r],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function To(e,t){return t===void 0&&(t=!1),gc(e)||It(e)||!Jt(e)||(Or(e)>1&&(e.set=e.add=e.clear=e.delete=ew),Object.freeze(e),t&&Tn(e,function(n,r){return To(r,!0)},!0)),e}function ew(){xt(2)}function gc(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pt(e){var t=Bl[e];return t||xt(18,e),t}function tw(e,t){Bl[e]||(Bl[e]=t)}function Nl(){return ri}function zs(e,t){t&&(Pt("Patches"),e.u=[],e.s=[],e.v=t)}function Qa(e){Ql(e),e.p.forEach(nw),e.p=null}function Ql(e){e===ri&&(ri=e.l)}function T1(e){return ri={p:[],l:ri,h:e,m:!0,_:0}}function nw(e){var t=e[Fe];t.i===0||t.i===1?t.j():t.O=!0}function Vs(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Pt("ES5").S(t,e,r),r?(n[Fe].P&&(Qa(t),xt(4)),Jt(e)&&(e=Ha(t,e),t.l||Ba(t,e)),t.u&&Pt("Patches").M(n[Fe].t,e,t.u,t.s)):e=Ha(t,n,[]),Qa(t),t.u&&t.v(t.u,t.s),e!==u5?e:void 0}function Ha(e,t,n){if(gc(t))return t;var r=t[Fe];if(!r)return Tn(t,function(a,o){return F1(e,r,t,a,o,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Ba(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=mc(r.k):r.o;Tn(r.i===3?new Set(i):i,function(a,o){return F1(e,r,i,a,o,n)}),Ba(e,i,!1),n&&e.u&&Pt("Patches").R(r,n,e.u,e.s)}return r.o}function F1(e,t,n,r,i,a){if(It(i)){var o=Ha(e,i,a&&t&&t.i!==3&&!fr(t.D,r)?a.concat(r):void 0);if(s5(n,r,o),!It(o))return;e.m=!1}if(Jt(i)&&!gc(i)){if(!e.h.F&&e._<1)return;Ha(e,i),t&&t.A.l||Ba(e,i)}}function Ba(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&To(t,n)}function Ns(e,t){var n=e[Fe];return(n?vn(n):e)[t]}function D1(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function an(e){e.P||(e.P=!0,e.l&&an(e.l))}function Qs(e){e.o||(e.o=mc(e.t))}function Hl(e,t,n){var r=pc(t)?Pt("MapSet").N(t,n):hc(t)?Pt("MapSet").T(t,n):e.g?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:Nl(),P:!1,I:!1,D:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,u=ii;o&&(l=[s],u=Nr);var d=Proxy.revocable(l,u),f=d.revoke,m=d.proxy;return s.k=m,s.j=f,m}(t,n):Pt("ES5").J(t,n);return(n?n.A:Nl()).p.push(r),r}function vc(e){return It(e)||xt(22,e),function t(n){if(!Jt(n))return n;var r,i=n[Fe],a=Or(n);if(i){if(!i.P&&(i.i<4||!Pt("ES5").K(i)))return i.t;i.I=!0,r=j1(n,a),i.I=!1}else r=j1(n,a);return Tn(r,function(o,s){i&&XS(i.t,o)===s||s5(r,o,t(s))}),a===3?new Set(r):r}(e)}function j1(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return mc(e)}function rw(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var l=this[Fe];return ii.get(l,a)},set:function(l){var u=this[Fe];ii.set(u,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Fe];if(!s.P)switch(s.i){case 5:r(s)&&an(s);break;case 4:n(s)&&an(s)}}}function n(a){for(var o=a.t,s=a.k,l=pr(s),u=l.length-1;u>=0;u--){var d=l[u];if(d!==Fe){var f=o[d];if(f===void 0&&!fr(o,d))return!0;var m=s[d],y=m&&m[Fe];if(y?y.t!==f:!l5(m,f))return!0}}var g=!!o[Fe];return l.length!==pr(o).length+(g?0:1)}function r(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var l=0;l<o.length;l++)if(!o.hasOwnProperty(l))return!0;return!1}var i={};tw("ES5",{J:function(a,o){var s=Array.isArray(a),l=function(d,f){if(d){for(var m=Array(f.length),y=0;y<f.length;y++)Object.defineProperty(m,""+y,e(y,!0));return m}var g=c5(f);delete g[Fe];for(var c=pr(g),h=0;h<c.length;h++){var p=c[h];g[p]=e(p,d||!!g[p].enumerable)}return Object.create(Object.getPrototypeOf(f),g)}(s,a),u={i:s?5:4,A:o?o.A:Nl(),P:!1,I:!1,D:{},l:o,t:a,k:l,o:null,O:!1,C:!1};return Object.defineProperty(l,Fe,{value:u,writable:!0}),l},S:function(a,o,s){s?It(o)&&o[Fe].A===a&&t(a.p):(a.u&&function l(u){if(u&&typeof u=="object"){var d=u[Fe];if(d){var f=d.t,m=d.k,y=d.D,g=d.i;if(g===4)Tn(m,function(C){C!==Fe&&(f[C]!==void 0||fr(f,C)?y[C]||l(m[C]):(y[C]=!0,an(d)))}),Tn(f,function(C){m[C]!==void 0||fr(m,C)||(y[C]=!1,an(d))});else if(g===5){if(r(d)&&(an(d),y.length=!0),m.length<f.length)for(var c=m.length;c<f.length;c++)y[c]=!1;else for(var h=f.length;h<m.length;h++)y[h]=!0;for(var p=Math.min(m.length,f.length),v=0;v<p;v++)m.hasOwnProperty(v)||(y[v]=!0),y[v]===void 0&&l(m[v])}}}}(a.p[0]),t(a.p))},K:function(a){return a.i===4?n(a):r(a)}})}var P1,ri,yc=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",iw=typeof Map!="undefined",aw=typeof Set!="undefined",U1=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",u5=yc?Symbol.for("immer-nothing"):((P1={})["immer-nothing"]=!0,P1),_1=yc?Symbol.for("immer-draftable"):"__$immer_draftable",Fe=yc?Symbol.for("immer-state"):"__$immer_state",ow=""+Object.prototype.constructor,pr=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,c5=Object.getOwnPropertyDescriptors||function(e){var t={};return pr(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Bl={},ii={get:function(e,t){if(t===Fe)return e;var n=vn(e);if(!fr(n,t))return function(i,a,o){var s,l=D1(a,o);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!Jt(r)?r:r===Ns(e.t,t)?(Qs(e),e.o[t]=Hl(e.A.h,r,e)):r},has:function(e,t){return t in vn(e)},ownKeys:function(e){return Reflect.ownKeys(vn(e))},set:function(e,t,n){var r=D1(vn(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Ns(vn(e),t),a=i==null?void 0:i[Fe];if(a&&a.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(l5(n,i)&&(n!==void 0||fr(e.t,t)))return!0;Qs(e),an(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return Ns(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Qs(e),an(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=vn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){xt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){xt(12)}},Nr={};Tn(ii,function(e,t){Nr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Nr.deleteProperty=function(e,t){return Nr.set.call(this,e,t,void 0)},Nr.set=function(e,t,n){return ii.set.call(this,e[0],t,n,e[0])};var sw=function(){function e(n){var r=this;this.g=U1,this.F=!0,this.produce=function(i,a,o){if(typeof i=="function"&&typeof a!="function"){var s=a;a=i;var l=r;return function(c){var h=this;c===void 0&&(c=s);for(var p=arguments.length,v=Array(p>1?p-1:0),C=1;C<p;C++)v[C-1]=arguments[C];return l.produce(c,function(E){var M;return(M=a).call.apply(M,[h,E].concat(v))})}}var u;if(typeof a!="function"&&xt(6),o!==void 0&&typeof o!="function"&&xt(7),Jt(i)){var d=T1(r),f=Hl(r,i,void 0),m=!0;try{u=a(f),m=!1}finally{m?Qa(d):Ql(d)}return typeof Promise!="undefined"&&u instanceof Promise?u.then(function(c){return zs(d,o),Vs(c,d)},function(c){throw Qa(d),c}):(zs(d,o),Vs(u,d))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===u5&&(u=void 0),r.F&&To(u,!0),o){var y=[],g=[];Pt("Patches").M(i,u,y,g),o(y,g)}return u}xt(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var d=arguments.length,f=Array(d>1?d-1:0),m=1;m<d;m++)f[m-1]=arguments[m];return r.produceWithPatches(u,function(y){return i.apply(void 0,[y].concat(f))})};var o,s,l=r.produce(i,a,function(u,d){o=u,s=d});return typeof Promise!="undefined"&&l instanceof Promise?l.then(function(u){return[u,o,s]}):[l,o,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Jt(n)||xt(8),It(n)&&(n=vc(n));var r=T1(this),i=Hl(this,n,void 0);return i[Fe].C=!0,Ql(r),i},t.finishDraft=function(n,r){var i=n&&n[Fe],a=i.A;return zs(a,r),Vs(void 0,a)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!U1&&xt(20),this.g=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=Pt("Patches").$;return It(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),$t=new sw,lw=$t.produce;$t.produceWithPatches.bind($t);$t.setAutoFreeze.bind($t);$t.setUseProxies.bind($t);$t.applyPatches.bind($t);$t.createDraft.bind($t);$t.finishDraft.bind($t);var Fo=lw;r5(o5,Ke(Ro()));var Wa="NOT_FOUND";function uw(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:Wa},put:function(n,r){t={key:n,value:r}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function cw(e,t){var n=[];function r(s){var l=n.findIndex(function(d){return t(s,d.key)});if(l>-1){var u=n[l];return l>0&&(n.splice(l,1),n.unshift(u)),u.value}return Wa}function i(s,l){r(s)===Wa&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function a(){return n}function o(){n=[]}return{get:r,put:i,getEntries:a,clear:o}}var dw=function(e,t){return e===t};function fw(e){return function(t,n){if(t===null||n===null||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}function pw(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,i=r===void 0?dw:r,a=n.maxSize,o=a===void 0?1:a,s=n.resultEqualityCheck,l=fw(i),u=o===1?uw(l):cw(o,l);function d(){var f=u.get(arguments);if(f===Wa){if(f=e.apply(null,arguments),s){var m=u.getEntries(),y=m.find(function(g){return s(g.value,f)});y&&(f=y.value)}u.put(arguments,f)}return f}return d.clearCache=function(){return u.clear()},d}function hw(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function mw(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=0,u,d={memoizeOptions:void 0},f=o.pop();if(typeof f=="object"&&(d=f,f=o.pop()),typeof f!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof f+"]");var m=d,y=m.memoizeOptions,g=y===void 0?n:y,c=Array.isArray(g)?g:[g],h=hw(o),p=e.apply(void 0,[function(){return l++,f.apply(null,arguments)}].concat(c)),v=e(function(){for(var C=[],E=h.length,M=0;M<E;M++)C.push(h[M].apply(null,arguments));return u=p.apply(null,C),u});return Object.assign(v,{resultFunc:f,memoizedResultFunc:p,dependencies:h,lastResult:function(){return u},recomputations:function(){return l},resetRecomputations:function(){return l=0}}),v};return i}var d5=mw(pw),sa=Ke(Ro()),L1=Ke(Ro());function f5(e){var t=function(n){var r=n.dispatch,i=n.getState;return function(a){return function(o){return typeof o=="function"?o(r,i,e):a(o)}}};return t}var p5=f5();p5.withExtraArgument=f5;var Wl=p5,gw=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ri=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1],a=u;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(u);break}a[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(d){u=[6,d],i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Sr=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},vw=Object.defineProperty,yw=Object.defineProperties,Cw=Object.getOwnPropertyDescriptors,z1=Object.getOwnPropertySymbols,bw=Object.prototype.hasOwnProperty,Sw=Object.prototype.propertyIsEnumerable,V1=function(e,t,n){return t in e?vw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},mt=function(e,t){for(var n in t||(t={}))bw.call(t,n)&&V1(e,n,t[n]);if(z1)for(var r=0,i=z1(t);r<i.length;r++){var n=i[r];Sw.call(t,n)&&V1(e,n,t[n])}return e},Hs=function(e,t){return yw(e,Cw(t))},Mi=function(e,t,n){return new Promise(function(r,i){var a=function(l){try{s(n.next(l))}catch(u){i(u)}},o=function(l){try{s(n.throw(l))}catch(u){i(u)}},s=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(a,o)};s((n=n.apply(e,t)).next())})},Yt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=d5.apply(void 0,e),r=function(i){for(var a=[],o=1;o<arguments.length;o++)a[o-1]=arguments[o];return n.apply(void 0,Sr([It(i)?vc(i):i],a))};return r},ww=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?L1.compose:L1.compose.apply(null,arguments)};function Do(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}var h5=function(e){gw(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,Sr([void 0],n[0].concat(this)))):new(t.bind.apply(t,Sr([void 0],n.concat(this))))},t}(Array);function Yl(e){return Jt(e)?Fo(e,function(){}):e}function $w(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function kw(e){return function(){return function(t){return function(n){return t(n)}}}}function m5(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Do(e)}function g5(e,t,n,r,i){t===void 0&&(t=""),n===void 0&&(n=m5),i===void 0&&(i=[]);var a;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var o=r!=null?r(e):Object.entries(e),s=i.length>0,l=0,u=o;l<u.length;l++){var d=u[l],f=d[0],m=d[1],y=t?t+"."+f:f;if(!(s&&i.indexOf(y)>=0)){if(!n(m))return{keyPath:y,value:m};if(typeof m=="object"&&(a=g5(m,y,n,r,i),a))return a}}return!1}function xw(e){return function(){return function(t){return function(n){return t(n)}}}}function Ow(e){return typeof e=="boolean"}function Iw(){return function(e){return Cc(e)}}function Cc(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t,r=new h5;return n&&(Ow(n)?r.push(Wl):r.push(Wl.withExtraArgument(n.extraArgument))),r}var N1=!0;function Ew(e){var t=Iw(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,a=n.middleware,o=a===void 0?t():a,s=n.devTools,l=s===void 0?!0:s,u=n.preloadedState,d=u===void 0?void 0:u,f=n.enhancers,m=f===void 0?void 0:f,y;if(typeof i=="function")y=i;else if(Do(i))y=(0,sa.combineReducers)(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=o;if(typeof g=="function"&&(g=g(t),!N1))throw new Error("when using a middleware builder function, an array of middleware must be returned");var c=sa.applyMiddleware.apply(void 0,g),h=sa.compose;l&&(h=ww(mt({trace:!N1},typeof l=="object"&&l)));var p=[c];Array.isArray(m)?p=Sr([c],m):typeof m=="function"&&(p=m(p));var v=h.apply(void 0,p);return(0,sa.createStore)(y,d,v)}function j(e,t){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t){var a=t.apply(void 0,r);if(!a)throw new Error("prepareAction did not return an object");return mt(mt({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:r[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(r){return r.type===e},n}function qw(e){return Do(e)&&typeof e.type=="string"&&Object.keys(e).every(Aw)}function Aw(e){return["type","payload","error","meta"].indexOf(e)>-1}function Rw(e){return""+e}function v5(e){var t={},n=[],r,i={addCase:function(a,o){var s=typeof a=="string"?a:a.type;if(s in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[s]=o,i},addMatcher:function(a,o){return n.push({matcher:a,reducer:o}),i},addDefaultCase:function(a){return r=a,i}};return e(i),[t,n,r]}function Mw(e){return typeof e=="function"}function oe(e,t,n,r){n===void 0&&(n=[]);var i=typeof t=="function"?v5(t):[t,n,r],a=i[0],o=i[1],s=i[2],l;if(Mw(e))l=function(){return Yl(e())};else{var u=Yl(e);l=function(){return u}}function d(f,m){f===void 0&&(f=l());var y=Sr([a[m.type]],o.filter(function(g){var c=g.matcher;return c(m)}).map(function(g){var c=g.reducer;return c}));return y.filter(function(g){return!!g}).length===0&&(y=[s]),y.reduce(function(g,c){if(c)if(It(g)){var h=g,p=c(h,m);return p===void 0?g:p}else{if(Jt(g))return Fo(g,function(C){return c(C,m)});var p=c(g,m);if(p===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}return g},f)}return d.getInitialState=l,d}function Tw(e,t){return e+"/"+t}function Fw(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n=typeof e.initialState=="function"?e.initialState:Yl(e.initialState),r=e.reducers||{},i=Object.keys(r),a={},o={},s={};i.forEach(function(d){var f=r[d],m=Tw(t,d),y,g;"reducer"in f?(y=f.reducer,g=f.prepare):y=f,a[d]=y,o[m]=y,s[d]=g?j(m,g):j(m)});function l(){var d=typeof e.extraReducers=="function"?v5(e.extraReducers):[e.extraReducers],f=d[0],m=f===void 0?{}:f,y=d[1],g=y===void 0?[]:y,c=d[2],h=c===void 0?void 0:c,p=mt(mt({},m),o);return oe(n,p,g,h)}var u;return{name:t,reducer:function(d,f){return u||(u=l()),u(d,f)},actions:s,caseReducers:a,getInitialState:function(){return u||(u=l()),u.getInitialState()}}}function Dw(){return{ids:[],entities:{}}}function jw(){function e(t){return t===void 0&&(t={}),Object.assign(Dw(),t)}return{getInitialState:e}}function Pw(){function e(t){var n=function(u){return u.ids},r=function(u){return u.entities},i=Yt(n,r,function(u,d){return u.map(function(f){return d[f]})}),a=function(u,d){return d},o=function(u,d){return u[d]},s=Yt(n,function(u){return u.length});if(!t)return{selectIds:n,selectEntities:r,selectAll:i,selectTotal:s,selectById:Yt(r,a,o)};var l=Yt(t,r);return{selectIds:Yt(t,n),selectEntities:l,selectAll:Yt(t,i),selectTotal:Yt(t,s),selectById:Yt(l,a,o)}}return{getSelectors:e}}function Uw(e){var t=He(function(n,r){return e(r)});return function(n){return t(n,void 0)}}function He(e){return function(t,n){function r(a){return qw(a)}var i=function(a){r(n)?e(n.payload,a):e(n,a)};return It(t)?(i(t),t):Fo(t,i)}}function Yr(e,t){var n=t(e);return n}function In(e){return Array.isArray(e)||(e=Object.values(e)),e}function y5(e,t,n){e=In(e);for(var r=[],i=[],a=0,o=e;a<o.length;a++){var s=o[a],l=Yr(s,t);l in n.entities?i.push({id:l,changes:s}):r.push(s)}return[r,i]}function C5(e){function t(g,c){var h=Yr(g,e);h in c.entities||(c.ids.push(h),c.entities[h]=g)}function n(g,c){g=In(g);for(var h=0,p=g;h<p.length;h++){var v=p[h];t(v,c)}}function r(g,c){var h=Yr(g,e);h in c.entities||c.ids.push(h),c.entities[h]=g}function i(g,c){g=In(g);for(var h=0,p=g;h<p.length;h++){var v=p[h];r(v,c)}}function a(g,c){g=In(g),c.ids=[],c.entities={},n(g,c)}function o(g,c){return s([g],c)}function s(g,c){var h=!1;g.forEach(function(p){p in c.entities&&(delete c.entities[p],h=!0)}),h&&(c.ids=c.ids.filter(function(p){return p in c.entities}))}function l(g){Object.assign(g,{ids:[],entities:{}})}function u(g,c,h){var p=h.entities[c.id],v=Object.assign({},p,c.changes),C=Yr(v,e),E=C!==c.id;return E&&(g[c.id]=C,delete h.entities[c.id]),h.entities[C]=v,E}function d(g,c){return f([g],c)}function f(g,c){var h={},p={};g.forEach(function(E){E.id in c.entities&&(p[E.id]={id:E.id,changes:mt(mt({},p[E.id]?p[E.id].changes:null),E.changes)})}),g=Object.values(p);var v=g.length>0;if(v){var C=g.filter(function(E){return u(h,E,c)}).length>0;C&&(c.ids=Object.keys(c.entities))}}function m(g,c){return y([g],c)}function y(g,c){var h=y5(g,e,c),p=h[0],v=h[1];f(v,c),n(p,c)}return{removeAll:Uw(l),addOne:He(t),addMany:He(n),setOne:He(r),setMany:He(i),setAll:He(a),updateOne:He(d),updateMany:He(f),upsertOne:He(m),upsertMany:He(y),removeOne:He(o),removeMany:He(s)}}function _w(e,t){var n=C5(e),r=n.removeOne,i=n.removeMany,a=n.removeAll;function o(v,C){return s([v],C)}function s(v,C){v=In(v);var E=v.filter(function(M){return!(Yr(M,e)in C.entities)});E.length!==0&&h(E,C)}function l(v,C){return u([v],C)}function u(v,C){v=In(v),v.length!==0&&h(v,C)}function d(v,C){v=In(v),C.entities={},C.ids=[],s(v,C)}function f(v,C){return m([v],C)}function m(v,C){for(var E=!1,M=0,_=v;M<_.length;M++){var L=_[M],S=C.entities[L.id];if(S){E=!0,Object.assign(S,L.changes);var I=e(S);L.id!==I&&(delete C.entities[L.id],C.entities[I]=S)}}E&&p(C)}function y(v,C){return g([v],C)}function g(v,C){var E=y5(v,e,C),M=E[0],_=E[1];m(_,C),s(M,C)}function c(v,C){if(v.length!==C.length)return!1;for(var E=0;E<v.length&&E<C.length;E++)if(v[E]!==C[E])return!1;return!0}function h(v,C){v.forEach(function(E){C.entities[e(E)]=E}),p(C)}function p(v){var C=Object.values(v.entities);C.sort(t);var E=C.map(e),M=v.ids;c(M,E)||(v.ids=E)}return{removeOne:r,removeMany:i,removeAll:a,addOne:He(o),updateOne:He(f),upsertOne:He(y),setOne:He(l),setMany:He(u),setAll:He(d),addMany:He(s),updateMany:He(m),upsertMany:He(g)}}function Lw(e){e===void 0&&(e={});var t=mt({sortComparer:!1,selectId:function(s){return s.id}},e),n=t.selectId,r=t.sortComparer,i=jw(),a=Pw(),o=r?_w(n,r):C5(n);return mt(mt(mt({selectId:n,sortComparer:r},i),a),o)}var zw="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",bc=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=zw[Math.random()*64|0];return t},Vw=["name","message","stack","code"],Bs=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),Q1=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),b5=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,r=Vw;n<r.length;n++){var i=r[n];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}};function xe(e,t,n){var r=j(e+"/fulfilled",function(l,u,d,f){return{payload:l,meta:Hs(mt({},f||{}),{arg:d,requestId:u,requestStatus:"fulfilled"})}}),i=j(e+"/pending",function(l,u,d){return{payload:void 0,meta:Hs(mt({},d||{}),{arg:u,requestId:l,requestStatus:"pending"})}}),a=j(e+"/rejected",function(l,u,d,f,m){return{payload:f,error:(n&&n.serializeError||b5)(l||"Rejected"),meta:Hs(mt({},m||{}),{arg:d,requestId:u,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"})}}),o=typeof AbortController!="undefined"?AbortController:function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l}();function s(l){return function(u,d,f){var m=n!=null&&n.idGenerator?n.idGenerator(l):bc(),y=new o,g,c=new Promise(function(C,E){return y.signal.addEventListener("abort",function(){return E({name:"AbortError",message:g||"Aborted"})})}),h=!1;function p(C){h&&(g=C,y.abort())}var v=function(){return Mi(this,null,function(){var C,E,M,_,L,S;return Ri(this,function(I){switch(I.label){case 0:return I.trys.push([0,4,,5]),_=(C=n==null?void 0:n.condition)==null?void 0:C.call(n,l,{getState:d,extra:f}),Nw(_)?[4,_]:[3,2];case 1:_=I.sent(),I.label=2;case 2:if(_===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return h=!0,u(i(m,l,(E=n==null?void 0:n.getPendingMeta)==null?void 0:E.call(n,{requestId:m,arg:l},{getState:d,extra:f}))),[4,Promise.race([c,Promise.resolve(t(l,{dispatch:u,getState:d,extra:f,requestId:m,signal:y.signal,rejectWithValue:function(b,q){return new Bs(b,q)},fulfillWithValue:function(b,q){return new Q1(b,q)}})).then(function(b){if(b instanceof Bs)throw b;return b instanceof Q1?r(b.payload,m,l,b.meta):r(b,m,l)})])];case 3:return M=I.sent(),[3,5];case 4:return L=I.sent(),M=L instanceof Bs?a(null,m,l,L.payload,L.meta):a(L,m,l),[3,5];case 5:return S=n&&!n.dispatchConditionRejection&&a.match(M)&&M.meta.condition,S||u(M),[2,M]}})})}();return Object.assign(v,{abort:p,requestId:m,arg:l,unwrap:function(){return v.then(S5)}})}}return Object.assign(s,{pending:i,rejected:a,fulfilled:r,typePrefix:e})}function S5(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Nw(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Qw=function(e){return e&&typeof e.match=="function"},w5=function(e,t){return Qw(e)?e.match(t):e(t)};function Ti(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){return e.some(function(r){return w5(r,n)})}}function Zl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){return e.every(function(r){return w5(r,n)})}}function jo(e,t){if(!e||!e.meta)return!1;var n=typeof e.meta.requestId=="string",r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function Fi(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function $5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return jo(n,["pending"])}:Fi(e)?function(n){var r=e.map(function(a){return a.pending}),i=Ti.apply(void 0,r);return i(n)}:$5()(e[0])}function Ya(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return jo(n,["rejected"])}:Fi(e)?function(n){var r=e.map(function(a){return a.rejected}),i=Ti.apply(void 0,r);return i(n)}:Ya()(e[0])}function k5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(r){return r&&r.meta&&r.meta.rejectedWithValue};return e.length===0?function(r){var i=Zl(Ya.apply(void 0,e),n);return i(r)}:Fi(e)?function(r){var i=Zl(Ya.apply(void 0,e),n);return i(r)}:k5()(e[0])}function x5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return jo(n,["fulfilled"])}:Fi(e)?function(n){var r=e.map(function(a){return a.fulfilled}),i=Ti.apply(void 0,r);return i(n)}:x5()(e[0])}function O5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return jo(n,["pending","fulfilled","rejected"])}:Fi(e)?function(n){for(var r=[],i=0,a=e;i<a.length;i++){var o=a[i];r.push(o.pending,o.rejected,o.fulfilled)}var s=Ti.apply(void 0,r);return s(n)}:O5()(e[0])}var Sc=function(e,t){if(typeof e!="function")throw new TypeError(t+" is not a function")},Hw=function(){},wc=function(e,t){return t===void 0&&(t=Hw),e.catch(t),e},I5=function(e,t){e.addEventListener("abort",t,{once:!0})},hr=function(e,t){var n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Bw="task",E5="listener",q5="completed",$c="cancelled",Ww="task-"+$c,Yw="task-"+q5,A5=E5+"-"+$c,Zw=E5+"-"+q5,Di=function(){function e(t){this.code=t,this.name="TaskAbortError",this.message=Bw+" "+$c+" (reason: "+t+")"}return e}(),mr=function(e){if(e.aborted)throw new Di(e.reason)},R5=function(e){return wc(new Promise(function(t,n){var r=function(){return n(new Di(e.reason))};e.aborted?r():I5(e,r)}))},Jw=function(e,t){return Mi(void 0,null,function(){var n,r;return Ri(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return i.sent(),[4,e()];case 2:return n=i.sent(),[2,{status:"ok",value:n}];case 3:return r=i.sent(),[2,{status:r instanceof Di?"cancelled":"rejected",error:r}];case 4:return t==null||t(),[7];case 5:return[2]}})})},Za=function(e){return function(t){return wc(Promise.race([R5(e),t]).then(function(n){return mr(e),n}))}},M5=function(e){var t=Za(e);return function(n){return t(new Promise(function(r){return setTimeout(r,n)}))}},Gw=Object.assign,H1={},ji="listenerMiddleware",Kw=function(e){var t=function(n){return I5(e,function(){return hr(n,e.reason)})};return function(n){Sc(n,"taskExecutor");var r=new AbortController;t(r);var i=Jw(function(){return Mi(void 0,null,function(){var a;return Ri(this,function(o){switch(o.label){case 0:return mr(e),mr(r.signal),[4,n({pause:Za(r.signal),delay:M5(r.signal),signal:r.signal})];case 1:return a=o.sent(),mr(r.signal),[2,a]}})})},function(){return hr(r,Yw)});return{result:Za(e)(i),cancel:function(){hr(r,Ww)}}}},Xw=function(e,t){var n=function(r,i){return Mi(void 0,null,function(){var a,o,s,l;return Ri(this,function(u){switch(u.label){case 0:mr(t),a=function(){},o=new Promise(function(d){a=e({predicate:r,effect:function(f,m){m.unsubscribe(),d([f,m.getState(),m.getOriginalState()])}})}),s=[R5(t),o],i!=null&&s.push(new Promise(function(d){return setTimeout(d,i,null)})),u.label=1;case 1:return u.trys.push([1,,3,4]),[4,Promise.race(s)];case 2:return l=u.sent(),mr(t),[2,l];case 3:return a(),[7];case 4:return[2]}})})};return function(r,i){return wc(n(r,i))}},T5=function(e){var t=e.type,n=e.actionCreator,r=e.matcher,i=e.predicate,a=e.effect;if(t)i=j(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return Sc(a,"options.listener"),{predicate:i,type:t,effect:a}},e$=function(e){var t=T5(e),n=t.type,r=t.predicate,i=t.effect,a=bc(),o={id:a,effect:i,type:n,predicate:r,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}};return o},t$=function(e){return function(){e.forEach(Jl),e.clear()}},B1=function(e,t,n){try{e(t,n)}catch(r){setTimeout(function(){throw r},0)}},F5=j(ji+"/add"),D5=j(ji+"/removeAll"),j5=j(ji+"/remove"),n$=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,Sr([ji+"/error"],e))},Jl=function(e){e.pending.forEach(function(t){hr(t,A5)})};function r$(e){var t=this;e===void 0&&(e={});var n=new Map,r=e.extra,i=e.onError,a=i===void 0?n$:i;Sc(a,"onError");var o=function(y){return y.unsubscribe=function(){return n.delete(y.id)},n.set(y.id,y),function(g){y.unsubscribe(),g!=null&&g.cancelActive&&Jl(y)}},s=function(y){for(var g=0,c=Array.from(n.values());g<c.length;g++){var h=c[g];if(y(h))return h}},l=function(y){var g=s(function(c){return c.effect===y.effect});return g||(g=e$(y)),o(g)},u=function(y){var g=T5(y),c=g.type,h=g.effect,p=g.predicate,v=s(function(C){var E=typeof c=="string"?C.type===c:C.predicate===p;return E&&C.effect===h});return v&&(v.unsubscribe(),y.cancelActive&&Jl(v)),!!v},d=function(y,g,c,h){return Mi(t,null,function(){var p,v,C;return Ri(this,function(E){switch(E.label){case 0:p=new AbortController,v=Xw(l,p.signal),E.label=1;case 1:return E.trys.push([1,3,4,5]),y.pending.add(p),[4,Promise.resolve(y.effect(g,Gw({},c,{getOriginalState:h,condition:function(M,_){return v(M,_).then(Boolean)},take:v,delay:M5(p.signal),pause:Za(p.signal),extra:r,signal:p.signal,fork:Kw(p.signal),unsubscribe:y.unsubscribe,subscribe:function(){n.set(y.id,y)},cancelActiveListeners:function(){y.pending.forEach(function(M,_,L){M!==p&&(hr(M,A5),L.delete(M))})}})))];case 2:return E.sent(),[3,5];case 3:return C=E.sent(),C instanceof Di||B1(a,C,{raisedBy:"effect"}),[3,5];case 4:return hr(p,Zw),y.pending.delete(p),[7];case 5:return[2]}})})},f=t$(n),m=function(y){return function(g){return function(c){if(F5.match(c))return l(c.payload);if(D5.match(c)){f();return}if(j5.match(c))return u(c.payload);var h=y.getState(),p=function(){if(h===H1)throw new Error(ji+": getOriginalState can only be called synchronously");return h},v;try{if(v=g(c),n.size>0)for(var C=y.getState(),E=Array.from(n.values()),M=0,_=E;M<_.length;M++){var L=_[M],S=!1;try{S=L.predicate(c,C,h)}catch(I){S=!1,B1(a,I,{raisedBy:"predicate"})}!S||d(L,c,y,p)}}finally{h=H1}return v}}};return{middleware:m,startListening:l,stopListening:u,clearListeners:f}}rw();var i$=Ke(Mo()),a$=Ke(TS());function o$(e,t){let n=`
|
|
15
|
-
The following properties are invalid:
|
|
16
|
-
|
|
17
|
-
${e.join(`
|
|
18
|
-
`)}
|
|
19
|
-
|
|
20
|
-
${t}
|
|
21
|
-
`;return new kc(n)}var kc=class extends Error{constructor(e){super(e),this.name="SchemaValidationError"}},xc=class{constructor(e){this.definition=e}validate(e={},t=""){let n={...this.default,...e},r=[];for(let i in this.definition){let a=this.definition[i].validate(n[i]);a&&r.push(`${i}: ${a}`)}if(r.length)throw o$(r,t);return n}get default(){let e={};for(let t in this.definition){let n=this.definition[t].default;n!==void 0&&(e[t]=n)}return e}},dt=class{constructor(e={}){this.baseConfig=e}validate(e){return this.baseConfig.required&&$e(e)?"value is required.":null}get default(){return this.baseConfig.default instanceof Function?this.baseConfig.default():this.baseConfig.default}get required(){return this.baseConfig.required===!0}};function ct(e){return e===void 0}function s$(e){return e===null}function $e(e){return ct(e)||s$(e)}var ve=class{constructor(e={}){this.config=e,this.value=new dt(e)}validate(e){return this.value.validate(e)||(l$(e)?e<this.config.min?`minimum value of ${this.config.min} not respected.`:e>this.config.max?`maximum value of ${this.config.max} not respected.`:null:"value is not a number.")}get default(){return this.value.default}get required(){return this.value.required}};function l$(e){return ct(e)||P5(e)}function P5(e){return typeof e=="number"&&!isNaN(e)}var _e=class{constructor(e={}){this.value=new dt(e)}validate(e){return this.value.validate(e)||(u$(e)?null:"value is not a boolean.")}get default(){return this.value.default}get required(){return this.value.required}};function u$(e){return ct(e)||U5(e)}function U5(e){return typeof e=="boolean"}var c$=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i,de=class{constructor(e={}){this.config={emptyAllowed:!0,url:!1,...e},this.value=new dt(this.config)}validate(e){let{emptyAllowed:t,url:n,regex:r,constrainTo:i}=this.config;return this.value.validate(e)||(ct(e)?null:Oc(e)?!t&&!e.length?"value is an empty string.":n&&!c$.test(e)?"value is not a valid URL.":r&&!r.test(e)?`value did not match provided regex ${r}`:i&&!i.includes(e)?`value should be one of: ${i.join(", ")}.`:null:"value is not a string.")}get default(){return this.value.default}get required(){return this.value.required}};function Oc(e){return Object.prototype.toString.call(e)==="[object String]"}var ye=class{constructor(e={}){this.config={options:{required:!1},values:{},...e}}validate(e){if(ct(e))return this.config.options.required?"value is required and is currently undefined":null;if(!_5(e))return"value is not an object";for(let[n,r]of Object.entries(this.config.values))if(r.required&&$e(e[n]))return`value does not contain ${n}`;let t="";for(let[n,r]of Object.entries(this.config.values)){let i=e[n],a=r.validate(i);a!==null&&(t+=" "+a)}return t===""?null:t}get default(){}get required(){return!!this.config.options.required}};function _5(e){return e!==void 0&&typeof e=="object"}var We=class{constructor(e={}){this.config=e,this.value=new dt(this.config)}validate(e){if(!$e(e)&&!Array.isArray(e))return"value is not an array";let t=this.value.validate(e);if(t!==null)return t;if($e(e))return null;if(this.config.max!==void 0&&e.length>this.config.max)return`value contains more than ${this.config.max}`;if(this.config.min!==void 0&&e.length<this.config.min)return`value contains less than ${this.config.min}`;if(this.config.each!==void 0){let n="";return e.forEach(r=>{this.config.each.required&&$e(r)&&(n=`value is null or undefined: ${e.join(",")}`);let i=this.validatePrimitiveValue(r,this.config.each);i!==null&&(n+=" "+i)}),n===""?null:n}return null}validatePrimitiveValue(e,t){return U5(e)||Oc(e)||P5(e)||_5(e)?t.validate(e):"value is not a primitive value"}get default(){}get required(){return this.value.required}};function L5(e){return Array.isArray(e)}var z5=class{constructor(e){this.config=e,this.value=new dt(e)}validate(e){let t=this.value.validate(e);return t!==null?t:ct(e)||Object.values(this.config.enum).find(n=>n===e)?null:"value is not in enum."}get default(){return this.value.default}get required(){return this.value.required}};function yn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function U(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(d){try{u(r.next(d))}catch(f){o(f)}}function l(d){try{u(r.throw(d))}catch(f){o(f)}}function u(d){d.done?a(d.value):i(d.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}var je;(function(e){e.search="search",e.click="click",e.custom="custom",e.view="view",e.collect="collect"})(je||(je={}));function d$(){return typeof window!="undefined"}function Ic(){return typeof navigator!="undefined"}function V5(){return typeof document!="undefined"}function Gl(){try{return typeof localStorage!="undefined"}catch(e){return!1}}function f$(){try{return typeof sessionStorage!="undefined"}catch(e){return!1}}function N5(){return Ic()&&navigator.cookieEnabled}function p$(){return typeof crypto!="undefined"}function h$(){return p$()&&typeof crypto.getRandomValues!="undefined"}var m$=[je.click,je.custom,je.search,je.view],g$=(e,t)=>m$.indexOf(e)!==-1?Object.assign({language:V5()?document.documentElement.lang:"unknown",userAgent:Ic()?navigator.userAgent:"unknown"},t):t,gr=class{static set(e,t,n){var r,i,a,o,s;n?(a=new Date,a.setTime(a.getTime()+n),o="; expires="+a.toGMTString()):o="",s=window.location.hostname,s.indexOf(".")===-1?document.cookie=e+"="+t+o+"; path=/":(i=s.split("."),i.shift(),r="."+i.join("."),W1({name:e,value:t,expires:o,domain:r}),(gr.get(e)==null||gr.get(e)!=t)&&(r="."+s,W1({name:e,value:t,expires:o,domain:r})))}static get(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){var i=n[r];if(i=i.replace(/^\s+/,""),i.indexOf(t)==0)return i.substring(t.length,i.length)}return null}static erase(e){gr.set(e,"",-1)}};function W1(e){let{name:t,value:n,expires:r,domain:i}=e;document.cookie=`${t}=${n}${r}; path=/; domain=${i}; SameSite=Lax`}function v$(){return Gl()?localStorage:N5()?new vr:f$()?sessionStorage:new Pi}var vr=class{getItem(e){return gr.get(`${vr.prefix}${e}`)}removeItem(e){gr.erase(`${vr.prefix}${e}`)}setItem(e,t){gr.set(`${vr.prefix}${e}`,t)}};vr.prefix="coveo_";var y$=class{constructor(){this.cookieStorage=new vr}getItem(e){return localStorage.getItem(e)||this.cookieStorage.getItem(e)}removeItem(e){this.cookieStorage.removeItem(e),localStorage.removeItem(e)}setItem(e,t){localStorage.setItem(e,t),this.cookieStorage.setItem(e,t)}},Pi=class{getItem(e){return null}removeItem(e){}setItem(e,t){}},Qr="__coveo.analytics.history",Q5=20,H5=1e3*60,B5=75,Ja=class{constructor(e){this.store=e||v$()}addElement(e){e.internalTime=new Date().getTime(),e=this.cropQueryElement(this.stripEmptyQuery(e));let t=this.getHistoryWithInternalTime();t!=null?this.isValidEntry(e)&&this.setHistory([e].concat(t)):this.setHistory([e])}addElementAsync(e){return U(this,void 0,void 0,function*(){e.internalTime=new Date().getTime(),e=this.cropQueryElement(this.stripEmptyQuery(e));let t=yield this.getHistoryWithInternalTimeAsync();t!=null?this.isValidEntry(e)&&this.setHistory([e].concat(t)):this.setHistory([e])})}getHistory(){let e=this.getHistoryWithInternalTime();return this.stripEmptyQueries(this.stripInternalTime(e))}getHistoryAsync(){return U(this,void 0,void 0,function*(){let e=yield this.getHistoryWithInternalTimeAsync();return this.stripEmptyQueries(this.stripInternalTime(e))})}getHistoryWithInternalTime(){try{let e=this.store.getItem(Qr);return e&&typeof e=="string"?JSON.parse(e):[]}catch(e){return[]}}getHistoryWithInternalTimeAsync(){return U(this,void 0,void 0,function*(){try{let e=yield this.store.getItem(Qr);return e?JSON.parse(e):[]}catch(e){return[]}})}setHistory(e){try{this.store.setItem(Qr,JSON.stringify(e.slice(0,Q5)))}catch(t){}}clear(){try{this.store.removeItem(Qr)}catch(e){}}getMostRecentElement(){let e=this.getHistoryWithInternalTime();return e!=null?e.sort((t,n)=>(n.internalTime||0)-(t.internalTime||0))[0]:null}cropQueryElement(e){return e.name&&e.value&&e.name.toLowerCase()==="query"&&(e.value=e.value.slice(0,B5)),e}isValidEntry(e){let t=this.getMostRecentElement();return t&&t.value==e.value?(e.internalTime||0)-(t.internalTime||0)>H5:!0}stripInternalTime(e){return e.map(t=>{let{name:n,time:r,value:i}=t;return{name:n,time:r,value:i}})}stripEmptyQuery(e){let{name:t,time:n,value:r}=e;return t&&typeof r=="string"&&t.toLowerCase()==="query"&&r.trim()===""?{name:t,time:n}:e}stripEmptyQueries(e){return e.map(t=>this.stripEmptyQuery(t))}},W5=Object.freeze({__proto__:null,STORE_KEY:Qr,MAX_NUMBER_OF_HISTORY_ELEMENTS:Q5,MIN_THRESHOLD_FOR_DUPLICATE_VALUE:H5,MAX_VALUE_SIZE:B5,HistoryStore:Ja,default:Ja}),C$=(e,t)=>U(void 0,void 0,void 0,function*(){return e===je.view?(yield b$(t.contentIdValue),Object.assign({location:window.location.toString(),referrer:document.referrer,title:document.title},t)):t}),b$=e=>U(void 0,void 0,void 0,function*(){let t=new Ja,n={name:"PageView",value:e,time:JSON.stringify(new Date)};yield t.addElementAsync(n)}),ba=e=>e?(Number(e)^S$(new Uint8Array(1))[0]%16>>Number(e)/4).toString(16):("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,ba),S$=e=>{if(h$())return crypto.getRandomValues(e);for(var t=0,n=0;t<e.length;t++)!(t&3)&&(n=Math.random()*4294967296),e[t]=n>>>((t&3)<<3)&255;return e},Mt=Object.keys,Y1={id:"svc_ticket_id",subject:"svc_ticket_subject",description:"svc_ticket_description",category:"svc_ticket_category",productId:"svc_ticket_product_id",custom:"svc_ticket_custom"},w$=Mt(Y1).map(e=>Y1[e]),$$=[...w$].join("|"),k$=new RegExp(`^(${$$}$)`),x$={svcAction:"svc_action",svcActionData:"svc_action_data"},O$=e=>k$.test(e),I$=[O$],Z1={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",price:"pr",quantity:"qt",coupon:"cc",position:"ps",group:"group"},J1={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",group:"group"},lt={action:"pa",list:"pal",listSource:"pls"},Ga={id:"ti",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",affiliation:"ta",step:"cos",option:"col"},E$=["loyaltyCardId","loyaltyTier","thirdPartyPersona","companyName","favoriteStore","storeName","userIndustry","userRole","userDepartment","businessUnit"],Kl={id:"quoteId",affiliation:"quoteAffiliation"},Xl={id:"reviewId",rating:"reviewRating",comment:"reviewComment"},q$={add:lt,bookmark_add:lt,bookmark_remove:lt,click:lt,checkout:lt,checkout_option:lt,detail:lt,impression:lt,remove:lt,refund:Object.assign(Object.assign({},lt),Ga),purchase:Object.assign(Object.assign({},lt),Ga),quickview:lt,quote:Object.assign(Object.assign({},lt),Kl),review:Object.assign(Object.assign({},lt),Xl)},A$=Mt(Z1).map(e=>Z1[e]),R$=Mt(J1).map(e=>J1[e]),M$=Mt(lt).map(e=>lt[e]),T$=Mt(Ga).map(e=>Ga[e]),F$=Mt(Xl).map(e=>Xl[e]),D$=Mt(Kl).map(e=>Kl[e]),j$=[...A$,"custom"].join("|"),P$=[...R$,"custom"].join("|"),Y5="(pr[0-9]+)",Z5="(il[0-9]+pi[0-9]+)",U$=new RegExp(`^${Y5}(${j$})$`),_$=new RegExp(`^(${Z5}(${P$}))|(il[0-9]+nm)$`),L$=new RegExp(`^(${M$.join("|")})$`),z$=new RegExp(`^(${T$.join("|")})$`),V$=new RegExp(`^${Y5}custom$`),N$=new RegExp(`^${Z5}custom$`),Q$=new RegExp(`^(${[...E$,...F$,...D$].join("|")})$`),H$=e=>U$.test(e),B$=e=>_$.test(e),W$=e=>L$.test(e),Y$=e=>z$.test(e),Z$=e=>Q$.test(e),J$=[B$,H$,W$,Y$,Z$],G$=[V$,N$],K$={anonymizeIp:"aip"},X$={eventCategory:"ec",eventAction:"ea",eventLabel:"el",eventValue:"ev",page:"dp",visitorId:"cid",clientId:"cid",userId:"uid",currencyCode:"cu"},ek={hitType:"t",pageViewId:"pid",encoding:"de",location:"dl",referrer:"dr",screenColor:"sd",screenResolution:"sr",title:"dt",userAgent:"ua",language:"ul",eventId:"z",time:"tm"},tk=["contentId","contentIdKey","contentType","searchHub","tab","searchUid","permanentId","contentLocale"],nk=Object.assign(Object.assign(Object.assign(Object.assign({},K$),X$),ek),tk.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:t}),{})),eu=Object.assign(Object.assign({},nk),x$),rk=e=>{let t=!!e.action&&q$[e.action]||{};return Mt(e).reduce((n,r)=>{let i=t[r]||eu[r]||r;return Object.assign(Object.assign({},n),{[i]:e[r]})},{})},ik=Mt(eu).map(e=>eu[e]),ak=e=>ik.indexOf(e)!==-1,ok=e=>e==="custom",sk=e=>[...J$,...I$,ak,ok].some(t=>t(e)),lk=e=>Mt(e).reduce((t,n)=>{let r=uk(n);return r?Object.assign(Object.assign({},t),ck(r,e[n])):Object.assign(Object.assign({},t),{[n]:e[n]})},{}),uk=e=>{let t;return[...G$].every(n=>{var r;return t=(r=n.exec(e))===null||r===void 0?void 0:r[1],!t}),t},ck=(e,t)=>Mt(t).reduce((n,r)=>Object.assign(Object.assign({},n),{[`${e}${r}`]:t[r]}),{}),dk=class{constructor(e){this.opts=e}sendEvent(e,t){return U(this,void 0,void 0,function*(){if(!navigator.sendBeacon)throw new Error('navigator.sendBeacon is not supported in this browser. Consider adding a polyfill like "sendbeacon-polyfill".');let{baseUrl:n,preprocessRequest:r}=this.opts,i=this.encodeForEventType(e,t),a=yield this.getQueryParamsForEventType(e),o={url:`${n}/analytics/${e}?${a}`,body:new Blob([i],{type:"application/x-www-form-urlencoded"})},{url:s,body:l}=Object.assign(Object.assign({},o),r?yield r(o,"analyticsBeacon"):{});console.log(`Sending beacon for "${e}" with: `,JSON.stringify(t)),navigator.sendBeacon(s,l)})}deleteHttpCookieVisitorId(){return Promise.resolve()}encodeForEventType(e,t){return this.isEventTypeLegacy(e)?this.encodeForLegacyType(e,t):this.encodeForFormUrlEncoded(Object.assign({access_token:this.opts.token},t))}getQueryParamsForEventType(e){return U(this,void 0,void 0,function*(){let{token:t,visitorIdProvider:n}=this.opts,r=yield n.getCurrentVisitorId();return[t&&this.isEventTypeLegacy(e)?`access_token=${t}`:"",r?`visitorId=${r}`:"","discardVisitInfo=true"].filter(i=>!!i).join("&")})}isEventTypeLegacy(e){return[je.click,je.custom,je.search,je.view].indexOf(e)!==-1}encodeForLegacyType(e,t){return`${e}Event=${encodeURIComponent(JSON.stringify(t))}`}encodeForFormUrlEncoded(e){return Object.keys(e).filter(t=>!!e[t]).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(this.encodeValue(e[t]))}`).join("&")}encodeValue(e){return typeof e=="number"||typeof e=="string"||typeof e=="boolean"?e:JSON.stringify(e)}},fk=class{sendEvent(e,t){return U(this,void 0,void 0,function*(){return Promise.resolve()})}deleteHttpCookieVisitorId(){return U(this,void 0,void 0,function*(){return Promise.resolve()})}},G1=window.fetch,J5=class{constructor(e){this.opts=e}sendEvent(e,t){return U(this,void 0,void 0,function*(){let{baseUrl:n,visitorIdProvider:r,preprocessRequest:i}=this.opts,a=this.shouldAppendVisitorId(e)?yield this.getVisitorIdParam():"",o={url:`${n}/analytics/${e}${a}`,credentials:"include",mode:"cors",headers:this.getHeaders(),method:"POST",body:JSON.stringify(t)},s=Object.assign(Object.assign({},o),i?yield i(o,"analyticsFetch"):{}),{url:l}=s,u=yn(s,["url"]),d=yield G1(l,u);if(d.ok){let f=yield d.json();return f.visitorId&&r.setCurrentVisitorId(f.visitorId),f}else{try{d.json()}catch(f){}throw console.error(`An error has occured when sending the "${e}" event.`,d,t),new Error(`An error has occurred when sending the "${e}" event. Check the console logs for more details.`)}})}deleteHttpCookieVisitorId(){return U(this,void 0,void 0,function*(){let{baseUrl:e}=this.opts,t=`${e}/analytics/visit`;yield G1(t,{headers:this.getHeaders(),method:"DELETE"})})}shouldAppendVisitorId(e){return[je.click,je.custom,je.search,je.view].indexOf(e)!==-1}getVisitorIdParam(){return U(this,void 0,void 0,function*(){let{visitorIdProvider:e}=this.opts,t=yield e.getCurrentVisitorId();return t?`?visitor=${t}`:""})}getHeaders(){let{token:e}=this.opts;return Object.assign(Object.assign({},e?{Authorization:`Bearer ${e}`}:{}),{"Content-Type":"application/json"})}},pk=class{constructor(e,t){Gl()&&N5()?this.storage=new y$:Gl()?this.storage=localStorage:(console.warn("BrowserRuntime detected no valid storage available.",this),this.storage=new Pi),this.client=new J5(e),this.beaconClient=new dk(e),window.addEventListener("beforeunload",()=>{let n=t();for(let{eventType:r,payload:i}of n)this.beaconClient.sendEvent(r,i)})}},hk=class{constructor(e,t){this.storage=t||new Pi,this.client=new J5(e)}},mk=class{constructor(){this.storage=new Pi,this.client=new fk}},gk="xx",vk=e=>(e==null?void 0:e.startsWith(gk))||!1,yk=`
|
|
22
|
-
We've detected you're using React Native but have not provided the corresponding runtime,
|
|
23
|
-
for an optimal experience please use the "coveo.analytics/react-native" subpackage.
|
|
24
|
-
Follow the Readme on how to set it up: https://github.com/coveo/coveo.analytics.js#using-react-native
|
|
25
|
-
`;function Ck(){return typeof navigator!="undefined"&&navigator.product=="ReactNative"}var bk=["1",1,"yes",!0];function G5(){return Ic()&&[navigator.globalPrivacyControl,navigator.doNotTrack,navigator.msDoNotTrack,window.doNotTrack].some(e=>bk.indexOf(e)!==-1)}var K5="v15",X5={default:"https://analytics.cloud.coveo.com/rest/ua",production:"https://analytics.cloud.coveo.com/rest/ua",hipaa:"https://analyticshipaa.cloud.coveo.com/rest/ua"};function Sk(e=X5.default,t=K5){let n=e.indexOf(".cloud.coveo.com")!==-1;return`${e}${n?"":"/rest"}/${t}`}var tr=class{constructor(e){if(!e)throw new Error("You have to pass options to this constructor");this.options=Object.assign(Object.assign({},this.defaultOptions),e),this.visitorId="",this.bufferedRequests=[],this.beforeSendHooks=[C$,g$].concat(this.options.beforeSendHooks),this.afterSendHooks=this.options.afterSendHooks,this.eventTypeMapping={};let t={baseUrl:this.baseUrl,token:this.options.token,visitorIdProvider:this,preprocessRequest:this.options.preprocessRequest};this.runtime=this.options.runtimeEnvironment||this.initRuntime(t),G5()&&(this.clear(),this.runtime.storage=new Pi)}get defaultOptions(){return{endpoint:X5.default,token:"",version:K5,beforeSendHooks:[],afterSendHooks:[]}}initRuntime(e){return d$()&&V5()?new pk(e,()=>{let t=[...this.bufferedRequests];return this.bufferedRequests=[],t}):(Ck()&&console.warn(yk),new hk(e))}get storage(){return this.runtime.storage}determineVisitorId(){return U(this,void 0,void 0,function*(){try{return(yield this.storage.getItem("visitorId"))||ba()}catch(e){return console.log("Could not get visitor ID from the current runtime environment storage. Using a random ID instead.",e),ba()}})}getCurrentVisitorId(){return U(this,void 0,void 0,function*(){if(!this.visitorId){let e=yield this.determineVisitorId();yield this.setCurrentVisitorId(e)}return this.visitorId})}setCurrentVisitorId(e){return U(this,void 0,void 0,function*(){this.visitorId=e,yield this.storage.setItem("visitorId",e)})}getParameters(e,...t){return U(this,void 0,void 0,function*(){return yield this.resolveParameters(e,...t)})}getPayload(e,...t){return U(this,void 0,void 0,function*(){let n=yield this.resolveParameters(e,...t);return yield this.resolvePayloadForParameters(e,n)})}get currentVisitorId(){return typeof(this.visitorId||this.storage.getItem("visitorId"))!="string"&&this.setCurrentVisitorId(ba()),this.visitorId}set currentVisitorId(e){this.visitorId=e,this.storage.setItem("visitorId",e)}resolveParameters(e,...t){return U(this,void 0,void 0,function*(){let{variableLengthArgumentsNames:n=[],addVisitorIdParameter:r=!1,usesMeasurementProtocol:i=!1,addClientIdParameter:a=!1}=this.eventTypeMapping[e]||{};return yield[o=>n.length>0?this.parseVariableArgumentsPayload(n,o):o[0],o=>U(this,void 0,void 0,function*(){return Object.assign(Object.assign({},o),{visitorId:r?yield this.getCurrentVisitorId():""})}),o=>U(this,void 0,void 0,function*(){return a?Object.assign(Object.assign({},o),{clientId:yield this.getCurrentVisitorId()}):o}),o=>i?this.ensureAnonymousUserWhenUsingApiKey(o):o,o=>this.beforeSendHooks.reduce((s,l)=>U(this,void 0,void 0,function*(){let u=yield s;return yield l(e,u)}),o)].reduce((o,s)=>U(this,void 0,void 0,function*(){let l=yield o;return yield s(l)}),Promise.resolve(t))})}resolvePayloadForParameters(e,t){return U(this,void 0,void 0,function*(){let{usesMeasurementProtocol:n=!1}=this.eventTypeMapping[e]||{};return yield[r=>this.removeEmptyPayloadValues(r,e),r=>this.validateParams(r),r=>n?rk(r):r,r=>n?this.removeUnknownParameters(r):r,r=>n?this.processCustomParameters(r):r].reduce((r,i)=>U(this,void 0,void 0,function*(){let a=yield r;return yield i(a)}),Promise.resolve(t))})}makeEvent(e,...t){return U(this,void 0,void 0,function*(){let{newEventType:n=e}=this.eventTypeMapping[e]||{},r=yield this.resolveParameters(e,...t),i=yield this.resolvePayloadForParameters(e,r);return{eventType:n,payload:i,log:a=>U(this,void 0,void 0,function*(){return this.bufferedRequests.push({eventType:n,payload:Object.assign(Object.assign({},i),a)}),yield Promise.all(this.afterSendHooks.map(o=>o(e,Object.assign(Object.assign({},r),a)))),yield this.deferExecution(),yield this.sendFromBufferWithFetch()})}})}sendEvent(e,...t){return U(this,void 0,void 0,function*(){return(yield this.makeEvent(e,...t)).log({})})}deferExecution(){return new Promise(e=>setTimeout(e,0))}sendFromBufferWithFetch(){return U(this,void 0,void 0,function*(){let e=this.bufferedRequests.shift();if(e){let{eventType:t,payload:n}=e;return this.runtime.client.sendEvent(t,n)}})}clear(){this.storage.removeItem("visitorId"),new Ja().clear()}deleteHttpOnlyVisitorId(){this.runtime.client.deleteHttpCookieVisitorId()}makeSearchEvent(e){return U(this,void 0,void 0,function*(){return this.makeEvent(je.search,e)})}sendSearchEvent(e){var{searchQueryUid:t}=e,n=yn(e,["searchQueryUid"]);return U(this,void 0,void 0,function*(){return(yield this.makeSearchEvent(n)).log({searchQueryUid:t})})}makeClickEvent(e){return U(this,void 0,void 0,function*(){return this.makeEvent(je.click,e)})}sendClickEvent(e){var{searchQueryUid:t}=e,n=yn(e,["searchQueryUid"]);return U(this,void 0,void 0,function*(){return(yield this.makeClickEvent(n)).log({searchQueryUid:t})})}makeCustomEvent(e){return U(this,void 0,void 0,function*(){return this.makeEvent(je.custom,e)})}sendCustomEvent(e){var{lastSearchQueryUid:t}=e,n=yn(e,["lastSearchQueryUid"]);return U(this,void 0,void 0,function*(){return(yield this.makeCustomEvent(n)).log({lastSearchQueryUid:t})})}makeViewEvent(e){return U(this,void 0,void 0,function*(){return this.makeEvent(je.view,e)})}sendViewEvent(e){return U(this,void 0,void 0,function*(){return(yield this.makeViewEvent(e)).log({})})}getVisit(){return U(this,void 0,void 0,function*(){let e=yield(yield fetch(`${this.baseUrl}/analytics/visit`)).json();return this.visitorId=e.visitorId,e})}getHealth(){return U(this,void 0,void 0,function*(){return yield(yield fetch(`${this.baseUrl}/analytics/monitoring/health`)).json()})}registerBeforeSendEventHook(e){this.beforeSendHooks.push(e)}registerAfterSendEventHook(e){this.afterSendHooks.push(e)}addEventTypeMapping(e,t){this.eventTypeMapping[e]=t}parseVariableArgumentsPayload(e,t){let n={};for(let r=0,i=t.length;r<i;r++){let a=t[r];if(typeof a=="string")n[e[r]]=a;else if(typeof a=="object")return Object.assign(Object.assign({},n),a)}return n}isKeyAllowedEmpty(e,t){return({[je.search]:["queryText"]}[e]||[]).indexOf(t)!==-1}removeEmptyPayloadValues(e,t){let n=r=>typeof r!="undefined"&&r!==null&&r!=="";return Object.keys(e).filter(r=>this.isKeyAllowedEmpty(t,r)||n(e[r])).reduce((r,i)=>Object.assign(Object.assign({},r),{[i]:e[i]}),{})}removeUnknownParameters(e){return Object.keys(e).filter(t=>{if(sk(t))return!0;console.log(t,"is not processed by coveoua")}).reduce((t,n)=>Object.assign(Object.assign({},t),{[n]:e[n]}),{})}processCustomParameters(e){let{custom:t}=e,n=yn(e,["custom"]),r=this.lowercaseKeys(t),i=lk(n);return Object.assign(Object.assign({},r),i)}lowercaseKeys(e){return Object.keys(e||{}).reduce((t,n)=>Object.assign(Object.assign({},t),{[n.toLowerCase()]:e[n]}),{})}validateParams(e){let{anonymizeIp:t}=e,n=yn(e,["anonymizeIp"]);return t!==void 0&&["0","false","undefined","null","{}","[]",""].indexOf(`${t}`.toLowerCase())==-1&&(n.anonymizeIp=1),n}ensureAnonymousUserWhenUsingApiKey(e){let{userId:t}=e,n=yn(e,["userId"]);return vk(this.options.token)&&!t?(n.userId="anonymous",n):e}get baseUrl(){return Sk(this.options.endpoint,this.options.version)}},tu;(function(e){e.contextChanged="contextChanged",e.expandToFullUI="expandToFullUI"})(tu||(tu={}));var N;(function(e){e.interfaceLoad="interfaceLoad",e.interfaceChange="interfaceChange",e.didyoumeanAutomatic="didyoumeanAutomatic",e.didyoumeanClick="didyoumeanClick",e.resultsSort="resultsSort",e.searchboxSubmit="searchboxSubmit",e.searchboxClear="searchboxClear",e.searchboxAsYouType="searchboxAsYouType",e.breadcrumbFacet="breadcrumbFacet",e.breadcrumbResetAll="breadcrumbResetAll",e.documentQuickview="documentQuickview",e.documentOpen="documentOpen",e.omniboxAnalytics="omniboxAnalytics",e.omniboxFromLink="omniboxFromLink",e.searchFromLink="searchFromLink",e.triggerNotify="notify",e.triggerExecute="execute",e.triggerQuery="query",e.undoTriggerQuery="undoQuery",e.triggerRedirect="redirect",e.pagerResize="pagerResize",e.pagerNumber="pagerNumber",e.pagerNext="pagerNext",e.pagerPrevious="pagerPrevious",e.pagerScrolling="pagerScrolling",e.staticFilterClearAll="staticFilterClearAll",e.staticFilterSelect="staticFilterSelect",e.staticFilterDeselect="staticFilterDeselect",e.facetClearAll="facetClearAll",e.facetSearch="facetSearch",e.facetSelect="facetSelect",e.facetSelectAll="facetSelectAll",e.facetDeselect="facetDeselect",e.facetExclude="facetExclude",e.facetUnexclude="facetUnexclude",e.facetUpdateSort="facetUpdateSort",e.facetShowMore="showMoreFacetResults",e.facetShowLess="showLessFacetResults",e.queryError="query",e.queryErrorBack="errorBack",e.queryErrorClear="errorClearQuery",e.queryErrorRetry="errorRetry",e.recommendation="recommendation",e.recommendationInterfaceLoad="recommendationInterfaceLoad",e.recommendationOpen="recommendationOpen",e.likeSmartSnippet="likeSmartSnippet",e.dislikeSmartSnippet="dislikeSmartSnippet",e.expandSmartSnippet="expandSmartSnippet",e.collapseSmartSnippet="collapseSmartSnippet",e.openSmartSnippetFeedbackModal="openSmartSnippetFeedbackModal",e.closeSmartSnippetFeedbackModal="closeSmartSnippetFeedbackModal",e.sendSmartSnippetReason="sendSmartSnippetReason",e.expandSmartSnippetSuggestion="expandSmartSnippetSuggestion",e.collapseSmartSnippetSuggestion="collapseSmartSnippetSuggestion",e.showMoreSmartSnippetSuggestion="showMoreSmartSnippetSuggestion",e.showLessSmartSnippetSuggestion="showLessSmartSnippetSuggestion",e.openSmartSnippetSource="openSmartSnippetSource",e.openSmartSnippetSuggestionSource="openSmartSnippetSuggestionSource",e.openSmartSnippetInlineLink="openSmartSnippetInlineLink",e.openSmartSnippetSuggestionInlineLink="openSmartSnippetSuggestionInlineLink",e.recentQueryClick="recentQueriesClick",e.clearRecentQueries="clearRecentQueries",e.recentResultClick="recentResultClick",e.clearRecentResults="clearRecentResults",e.noResultsBack="noResultsBack",e.showMoreFoldedResults="showMoreFoldedResults",e.showLessFoldedResults="showLessFoldedResults",e.copyToClipboard="copyToClipboard",e.caseAttach="caseAttach",e.caseDetach="caseDetach"})(N||(N={}));var K1={[N.triggerNotify]:"queryPipelineTriggers",[N.triggerExecute]:"queryPipelineTriggers",[N.triggerQuery]:"queryPipelineTriggers",[N.triggerRedirect]:"queryPipelineTriggers",[N.queryError]:"errors",[N.queryErrorBack]:"errors",[N.queryErrorClear]:"errors",[N.queryErrorRetry]:"errors",[N.pagerNext]:"getMoreResults",[N.pagerPrevious]:"getMoreResults",[N.pagerNumber]:"getMoreResults",[N.pagerResize]:"getMoreResults",[N.pagerScrolling]:"getMoreResults",[N.facetSearch]:"facet",[N.facetShowLess]:"facet",[N.facetShowMore]:"facet",[N.recommendation]:"recommendation",[N.likeSmartSnippet]:"smartSnippet",[N.dislikeSmartSnippet]:"smartSnippet",[N.expandSmartSnippet]:"smartSnippet",[N.collapseSmartSnippet]:"smartSnippet",[N.openSmartSnippetFeedbackModal]:"smartSnippet",[N.closeSmartSnippetFeedbackModal]:"smartSnippet",[N.sendSmartSnippetReason]:"smartSnippet",[N.expandSmartSnippetSuggestion]:"smartSnippetSuggestions",[N.collapseSmartSnippetSuggestion]:"smartSnippetSuggestions",[N.showMoreSmartSnippetSuggestion]:"smartSnippetSuggestions",[N.showLessSmartSnippetSuggestion]:"smartSnippetSuggestions",[N.clearRecentQueries]:"recentQueries",[N.recentResultClick]:"recentlyClickedDocuments",[N.clearRecentResults]:"recentlyClickedDocuments",[N.showLessFoldedResults]:"folding",[tu.expandToFullUI]:"interface",[N.caseDetach]:"case"},X1=class{constructor(){this.runtime=new mk,this.currentVisitorId=""}getPayload(){return Promise.resolve()}getParameters(){return Promise.resolve()}makeEvent(e){return Promise.resolve({eventType:e,payload:null,log:()=>Promise.resolve()})}sendEvent(){return Promise.resolve()}makeSearchEvent(){return this.makeEvent(je.search)}sendSearchEvent(){return Promise.resolve()}makeClickEvent(){return this.makeEvent(je.click)}sendClickEvent(){return Promise.resolve()}makeCustomEvent(){return this.makeEvent(je.custom)}sendCustomEvent(){return Promise.resolve()}makeViewEvent(){return this.makeEvent(je.view)}sendViewEvent(){return Promise.resolve()}getVisit(){return Promise.resolve({id:"",visitorId:""})}getHealth(){return Promise.resolve({status:""})}registerBeforeSendEventHook(){}registerAfterSendEventHook(){}addEventTypeMapping(){}};function wk(e){let t="";return e.filter(n=>{let r=n!==t;return t=n,r})}function $k(e){return e.map(t=>t.replace(/;/g,""))}function e3(e){let t=256,n=e.join(";");return n.length<=t?n:e3(e.slice(1))}var e2=e=>{let t=$k(e),n=wk(t);return e3(n)};function t2(e){let t=typeof e.partialQueries=="string"?e.partialQueries:e2(e.partialQueries),n=typeof e.suggestions=="string"?e.suggestions:e2(e.suggestions);return Object.assign(Object.assign({},e),{partialQueries:t,suggestions:n})}var kk=class{constructor(e,t){this.opts=e,this.provider=t;let n=e.enableAnalytics===!1||G5();this.coveoAnalyticsClient=n?new X1:new tr(e)}disable(){this.coveoAnalyticsClient instanceof tr&&this.coveoAnalyticsClient.clear(),this.coveoAnalyticsClient=new X1}enable(){this.coveoAnalyticsClient=new tr(this.opts)}makeInterfaceLoad(){return this.makeSearchEvent(N.interfaceLoad)}logInterfaceLoad(){return U(this,void 0,void 0,function*(){return(yield this.makeInterfaceLoad()).log({searchUID:this.provider.getSearchUID()})})}makeRecommendationInterfaceLoad(){return this.makeSearchEvent(N.recommendationInterfaceLoad)}logRecommendationInterfaceLoad(){return U(this,void 0,void 0,function*(){return(yield this.makeRecommendationInterfaceLoad()).log({searchUID:this.provider.getSearchUID()})})}makeRecommendation(){return this.makeCustomEvent(N.recommendation)}logRecommendation(){return U(this,void 0,void 0,function*(){return(yield this.makeRecommendation()).log({searchUID:this.provider.getSearchUID()})})}makeRecommendationOpen(e,t){return this.makeClickEvent(N.recommendationOpen,e,t)}logRecommendationOpen(e,t){return U(this,void 0,void 0,function*(){return(yield this.makeRecommendationOpen(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeStaticFilterClearAll(e){return this.makeSearchEvent(N.staticFilterClearAll,e)}logStaticFilterClearAll(e){return U(this,void 0,void 0,function*(){return(yield this.makeStaticFilterClearAll(e)).log({searchUID:this.provider.getSearchUID()})})}makeStaticFilterSelect(e){return this.makeSearchEvent(N.staticFilterSelect,e)}logStaticFilterSelect(e){return U(this,void 0,void 0,function*(){return(yield this.makeStaticFilterSelect(e)).log({searchUID:this.provider.getSearchUID()})})}makeStaticFilterDeselect(e){return this.makeSearchEvent(N.staticFilterDeselect,e)}logStaticFilterDeselect(e){return U(this,void 0,void 0,function*(){return(yield this.makeStaticFilterDeselect(e)).log({searchUID:this.provider.getSearchUID()})})}makeFetchMoreResults(){return this.makeCustomEvent(N.pagerScrolling,{type:"getMoreResults"})}logFetchMoreResults(){return U(this,void 0,void 0,function*(){return(yield this.makeFetchMoreResults()).log({searchUID:this.provider.getSearchUID()})})}makeInterfaceChange(e){return this.makeSearchEvent(N.interfaceChange,e)}logInterfaceChange(e){return U(this,void 0,void 0,function*(){return(yield this.makeInterfaceChange(e)).log({searchUID:this.provider.getSearchUID()})})}makeDidYouMeanAutomatic(){return this.makeSearchEvent(N.didyoumeanAutomatic)}logDidYouMeanAutomatic(){return U(this,void 0,void 0,function*(){return(yield this.makeDidYouMeanAutomatic()).log({searchUID:this.provider.getSearchUID()})})}makeDidYouMeanClick(){return this.makeSearchEvent(N.didyoumeanClick)}logDidYouMeanClick(){return U(this,void 0,void 0,function*(){return(yield this.makeDidYouMeanClick()).log({searchUID:this.provider.getSearchUID()})})}makeResultsSort(e){return this.makeSearchEvent(N.resultsSort,e)}logResultsSort(e){return U(this,void 0,void 0,function*(){return(yield this.makeResultsSort(e)).log({searchUID:this.provider.getSearchUID()})})}makeSearchboxSubmit(){return this.makeSearchEvent(N.searchboxSubmit)}logSearchboxSubmit(){return U(this,void 0,void 0,function*(){return(yield this.makeSearchboxSubmit()).log({searchUID:this.provider.getSearchUID()})})}makeSearchboxClear(){return this.makeSearchEvent(N.searchboxClear)}logSearchboxClear(){return U(this,void 0,void 0,function*(){return(yield this.makeSearchboxClear()).log({searchUID:this.provider.getSearchUID()})})}makeSearchboxAsYouType(){return this.makeSearchEvent(N.searchboxAsYouType)}logSearchboxAsYouType(){return U(this,void 0,void 0,function*(){return(yield this.makeSearchboxAsYouType()).log({searchUID:this.provider.getSearchUID()})})}makeBreadcrumbFacet(e){return this.makeSearchEvent(N.breadcrumbFacet,e)}logBreadcrumbFacet(e){return U(this,void 0,void 0,function*(){return(yield this.makeBreadcrumbFacet(e)).log({searchUID:this.provider.getSearchUID()})})}makeBreadcrumbResetAll(){return this.makeSearchEvent(N.breadcrumbResetAll)}logBreadcrumbResetAll(){return U(this,void 0,void 0,function*(){return(yield this.makeBreadcrumbResetAll()).log({searchUID:this.provider.getSearchUID()})})}makeDocumentQuickview(e,t){return this.makeClickEvent(N.documentQuickview,e,t)}logDocumentQuickview(e,t){return U(this,void 0,void 0,function*(){return(yield this.makeDocumentQuickview(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeDocumentOpen(e,t){return this.makeClickEvent(N.documentOpen,e,t)}logDocumentOpen(e,t){return U(this,void 0,void 0,function*(){return(yield this.makeDocumentOpen(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeOmniboxAnalytics(e){return this.makeSearchEvent(N.omniboxAnalytics,t2(e))}logOmniboxAnalytics(e){return U(this,void 0,void 0,function*(){return(yield this.makeOmniboxAnalytics(e)).log({searchUID:this.provider.getSearchUID()})})}makeOmniboxFromLink(e){return this.makeSearchEvent(N.omniboxFromLink,t2(e))}logOmniboxFromLink(e){return U(this,void 0,void 0,function*(){return(yield this.makeOmniboxFromLink(e)).log({searchUID:this.provider.getSearchUID()})})}makeSearchFromLink(){return this.makeSearchEvent(N.searchFromLink)}logSearchFromLink(){return U(this,void 0,void 0,function*(){return(yield this.makeSearchFromLink()).log({searchUID:this.provider.getSearchUID()})})}makeTriggerNotify(e){return this.makeCustomEvent(N.triggerNotify,e)}logTriggerNotify(e){return U(this,void 0,void 0,function*(){return(yield this.makeTriggerNotify(e)).log({searchUID:this.provider.getSearchUID()})})}makeTriggerExecute(e){return this.makeCustomEvent(N.triggerExecute,e)}logTriggerExecute(e){return U(this,void 0,void 0,function*(){return(yield this.makeTriggerExecute(e)).log({searchUID:this.provider.getSearchUID()})})}makeTriggerQuery(){return this.makeCustomEvent(N.triggerQuery,{query:this.provider.getSearchEventRequestPayload().queryText},"queryPipelineTriggers")}logTriggerQuery(){return U(this,void 0,void 0,function*(){return(yield this.makeTriggerQuery()).log({searchUID:this.provider.getSearchUID()})})}makeUndoTriggerQuery(e){return this.makeSearchEvent(N.undoTriggerQuery,e)}logUndoTriggerQuery(e){return U(this,void 0,void 0,function*(){return(yield this.makeUndoTriggerQuery(e)).log({searchUID:this.provider.getSearchUID()})})}makeTriggerRedirect(e){return this.makeCustomEvent(N.triggerRedirect,Object.assign(Object.assign({},e),{query:this.provider.getSearchEventRequestPayload().queryText}))}logTriggerRedirect(e){return U(this,void 0,void 0,function*(){return(yield this.makeTriggerRedirect(e)).log({searchUID:this.provider.getSearchUID()})})}makePagerResize(e){return this.makeCustomEvent(N.pagerResize,e)}logPagerResize(e){return U(this,void 0,void 0,function*(){return(yield this.makePagerResize(e)).log({searchUID:this.provider.getSearchUID()})})}makePagerNumber(e){return this.makeCustomEvent(N.pagerNumber,e)}logPagerNumber(e){return U(this,void 0,void 0,function*(){return(yield this.makePagerNumber(e)).log({searchUID:this.provider.getSearchUID()})})}makePagerNext(e){return this.makeCustomEvent(N.pagerNext,e)}logPagerNext(e){return U(this,void 0,void 0,function*(){return(yield this.makePagerNext(e)).log({searchUID:this.provider.getSearchUID()})})}makePagerPrevious(e){return this.makeCustomEvent(N.pagerPrevious,e)}logPagerPrevious(e){return U(this,void 0,void 0,function*(){return(yield this.makePagerPrevious(e)).log({searchUID:this.provider.getSearchUID()})})}makePagerScrolling(){return this.makeCustomEvent(N.pagerScrolling)}logPagerScrolling(){return U(this,void 0,void 0,function*(){return(yield this.makePagerScrolling()).log({searchUID:this.provider.getSearchUID()})})}makeFacetClearAll(e){return this.makeSearchEvent(N.facetClearAll,e)}logFacetClearAll(e){return U(this,void 0,void 0,function*(){return(yield this.makeFacetClearAll(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetSearch(e){return this.makeSearchEvent(N.facetSearch,e)}logFacetSearch(e){return U(this,void 0,void 0,function*(){return(yield this.makeFacetSearch(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetSelect(e){return this.makeSearchEvent(N.facetSelect,e)}logFacetSelect(e){return U(this,void 0,void 0,function*(){return(yield this.makeFacetSelect(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetDeselect(e){return this.makeSearchEvent(N.facetDeselect,e)}logFacetDeselect(e){return U(this,void 0,void 0,function*(){return(yield this.makeFacetDeselect(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetExclude(e){return this.makeSearchEvent(N.facetExclude,e)}logFacetExclude(e){return U(this,void 0,void 0,function*(){return(yield this.makeFacetExclude(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetUnexclude(e){return this.makeSearchEvent(N.facetUnexclude,e)}logFacetUnexclude(e){return U(this,void 0,void 0,function*(){return(yield this.makeFacetUnexclude(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetSelectAll(e){return this.makeSearchEvent(N.facetSelectAll,e)}logFacetSelectAll(e){return U(this,void 0,void 0,function*(){return(yield this.makeFacetSelectAll(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetUpdateSort(e){return this.makeSearchEvent(N.facetUpdateSort,e)}logFacetUpdateSort(e){return U(this,void 0,void 0,function*(){return(yield this.makeFacetUpdateSort(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetShowMore(e){return this.makeCustomEvent(N.facetShowMore,e)}logFacetShowMore(e){return U(this,void 0,void 0,function*(){return(yield this.makeFacetShowMore(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetShowLess(e){return this.makeCustomEvent(N.facetShowLess,e)}logFacetShowLess(e){return U(this,void 0,void 0,function*(){return(yield this.makeFacetShowLess(e)).log({searchUID:this.provider.getSearchUID()})})}makeQueryError(e){return this.makeCustomEvent(N.queryError,e)}logQueryError(e){return U(this,void 0,void 0,function*(){return(yield this.makeQueryError(e)).log({searchUID:this.provider.getSearchUID()})})}makeQueryErrorBack(){return U(this,void 0,void 0,function*(){let e=yield this.makeCustomEvent(N.queryErrorBack);return{description:e.description,log:()=>U(this,void 0,void 0,function*(){return yield e.log({searchUID:this.provider.getSearchUID()}),this.logSearchEvent(N.queryErrorBack)})}})}logQueryErrorBack(){return U(this,void 0,void 0,function*(){return(yield this.makeQueryErrorBack()).log({searchUID:this.provider.getSearchUID()})})}makeQueryErrorRetry(){return U(this,void 0,void 0,function*(){let e=yield this.makeCustomEvent(N.queryErrorRetry);return{description:e.description,log:()=>U(this,void 0,void 0,function*(){return yield e.log({searchUID:this.provider.getSearchUID()}),this.logSearchEvent(N.queryErrorRetry)})}})}logQueryErrorRetry(){return U(this,void 0,void 0,function*(){return(yield this.makeQueryErrorRetry()).log({searchUID:this.provider.getSearchUID()})})}makeQueryErrorClear(){return U(this,void 0,void 0,function*(){let e=yield this.makeCustomEvent(N.queryErrorClear);return{description:e.description,log:()=>U(this,void 0,void 0,function*(){return yield e.log({searchUID:this.provider.getSearchUID()}),this.logSearchEvent(N.queryErrorClear)})}})}logQueryErrorClear(){return U(this,void 0,void 0,function*(){return(yield this.makeQueryErrorClear()).log({searchUID:this.provider.getSearchUID()})})}makeLikeSmartSnippet(){return this.makeCustomEvent(N.likeSmartSnippet)}logLikeSmartSnippet(){return U(this,void 0,void 0,function*(){return(yield this.makeLikeSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeDislikeSmartSnippet(){return this.makeCustomEvent(N.dislikeSmartSnippet)}logDislikeSmartSnippet(){return U(this,void 0,void 0,function*(){return(yield this.makeDislikeSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeExpandSmartSnippet(){return this.makeCustomEvent(N.expandSmartSnippet)}logExpandSmartSnippet(){return U(this,void 0,void 0,function*(){return(yield this.makeExpandSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeCollapseSmartSnippet(){return this.makeCustomEvent(N.collapseSmartSnippet)}logCollapseSmartSnippet(){return U(this,void 0,void 0,function*(){return(yield this.makeCollapseSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetFeedbackModal(){return this.makeCustomEvent(N.openSmartSnippetFeedbackModal)}logOpenSmartSnippetFeedbackModal(){return U(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetFeedbackModal()).log({searchUID:this.provider.getSearchUID()})})}makeCloseSmartSnippetFeedbackModal(){return this.makeCustomEvent(N.closeSmartSnippetFeedbackModal)}logCloseSmartSnippetFeedbackModal(){return U(this,void 0,void 0,function*(){return(yield this.makeCloseSmartSnippetFeedbackModal()).log({searchUID:this.provider.getSearchUID()})})}makeSmartSnippetFeedbackReason(e,t){return this.makeCustomEvent(N.sendSmartSnippetReason,{reason:e,details:t})}logSmartSnippetFeedbackReason(e,t){return U(this,void 0,void 0,function*(){return(yield this.makeSmartSnippetFeedbackReason(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeExpandSmartSnippetSuggestion(e){return this.makeCustomEvent(N.expandSmartSnippetSuggestion,"documentId"in e?e:{documentId:e})}logExpandSmartSnippetSuggestion(e){return U(this,void 0,void 0,function*(){return(yield this.makeExpandSmartSnippetSuggestion(e)).log({searchUID:this.provider.getSearchUID()})})}makeCollapseSmartSnippetSuggestion(e){return this.makeCustomEvent(N.collapseSmartSnippetSuggestion,"documentId"in e?e:{documentId:e})}logCollapseSmartSnippetSuggestion(e){return U(this,void 0,void 0,function*(){return(yield this.makeCollapseSmartSnippetSuggestion(e)).log({searchUID:this.provider.getSearchUID()})})}makeShowMoreSmartSnippetSuggestion(e){return this.makeCustomEvent(N.showMoreSmartSnippetSuggestion,e)}logShowMoreSmartSnippetSuggestion(e){return U(this,void 0,void 0,function*(){return(yield this.makeShowMoreSmartSnippetSuggestion(e)).log({searchUID:this.provider.getSearchUID()})})}makeShowLessSmartSnippetSuggestion(e){return this.makeCustomEvent(N.showLessSmartSnippetSuggestion,e)}logShowLessSmartSnippetSuggestion(e){return U(this,void 0,void 0,function*(){return(yield this.makeShowLessSmartSnippetSuggestion(e)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetSource(e,t){return this.makeClickEvent(N.openSmartSnippetSource,e,t)}logOpenSmartSnippetSource(e,t){return U(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetSource(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetSuggestionSource(e,t){return this.makeClickEvent(N.openSmartSnippetSuggestionSource,e,{contentIDKey:t.documentId.contentIdKey,contentIDValue:t.documentId.contentIdValue},t)}makeCopyToClipboard(e,t){return this.makeClickEvent(N.copyToClipboard,e,t)}logCopyToClipboard(e,t){return U(this,void 0,void 0,function*(){return(yield this.makeCopyToClipboard(e,t)).log({searchUID:this.provider.getSearchUID()})})}logOpenSmartSnippetSuggestionSource(e,t){return U(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetSuggestionSource(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetInlineLink(e,t){return this.makeClickEvent(N.openSmartSnippetInlineLink,e,{contentIDKey:t.contentIDKey,contentIDValue:t.contentIDValue},t)}logOpenSmartSnippetInlineLink(e,t){return U(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetInlineLink(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetSuggestionInlineLink(e,t){return this.makeClickEvent(N.openSmartSnippetSuggestionInlineLink,e,{contentIDKey:t.documentId.contentIdKey,contentIDValue:t.documentId.contentIdValue},t)}logOpenSmartSnippetSuggestionInlineLink(e,t){return U(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetSuggestionInlineLink(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeRecentQueryClick(){return this.makeSearchEvent(N.recentQueryClick)}logRecentQueryClick(){return U(this,void 0,void 0,function*(){return(yield this.makeRecentQueryClick()).log({searchUID:this.provider.getSearchUID()})})}makeClearRecentQueries(){return this.makeCustomEvent(N.clearRecentQueries)}logClearRecentQueries(){return U(this,void 0,void 0,function*(){return(yield this.makeClearRecentQueries()).log({searchUID:this.provider.getSearchUID()})})}makeRecentResultClick(e,t){return this.makeCustomEvent(N.recentResultClick,{info:e,identifier:t})}logRecentResultClick(e,t){return U(this,void 0,void 0,function*(){return(yield this.makeRecentResultClick(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeClearRecentResults(){return this.makeCustomEvent(N.clearRecentResults)}logClearRecentResults(){return U(this,void 0,void 0,function*(){return(yield this.makeClearRecentResults()).log({searchUID:this.provider.getSearchUID()})})}makeNoResultsBack(){return this.makeSearchEvent(N.noResultsBack)}logNoResultsBack(){return U(this,void 0,void 0,function*(){return(yield this.makeNoResultsBack()).log({searchUID:this.provider.getSearchUID()})})}makeShowMoreFoldedResults(e,t){return this.makeClickEvent(N.showMoreFoldedResults,e,t)}logShowMoreFoldedResults(e,t){return U(this,void 0,void 0,function*(){return(yield this.makeShowMoreFoldedResults(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeShowLessFoldedResults(){return this.makeCustomEvent(N.showLessFoldedResults)}logShowLessFoldedResults(){return U(this,void 0,void 0,function*(){return(yield this.makeShowLessFoldedResults()).log({searchUID:this.provider.getSearchUID()})})}makeEventDescription(e,t){var n;return{actionCause:t,customData:(n=e.payload)===null||n===void 0?void 0:n.customData}}makeCustomEvent(e,t,n=K1[e]){return U(this,void 0,void 0,function*(){let r=Object.assign(Object.assign({},this.provider.getBaseMetadata()),t),i=Object.assign(Object.assign({},yield this.getBaseEventRequest(r)),{eventType:n,eventValue:e}),a=yield this.coveoAnalyticsClient.makeCustomEvent(i);return{description:this.makeEventDescription(a,e),log:({searchUID:o})=>a.log({lastSearchQueryUid:o})}})}logCustomEvent(e,t,n=K1[e]){return U(this,void 0,void 0,function*(){return(yield this.makeCustomEvent(e,t,n)).log({searchUID:this.provider.getSearchUID()})})}makeCustomEventWithType(e,t,n){return U(this,void 0,void 0,function*(){let r=Object.assign(Object.assign({},this.provider.getBaseMetadata()),n),i=Object.assign(Object.assign({},yield this.getBaseEventRequest(r)),{eventType:t,eventValue:e}),a=yield this.coveoAnalyticsClient.makeCustomEvent(i);return{description:this.makeEventDescription(a,e),log:({searchUID:o})=>a.log({lastSearchQueryUid:o})}})}logCustomEventWithType(e,t,n){return U(this,void 0,void 0,function*(){return(yield this.makeCustomEventWithType(e,t,n)).log({searchUID:this.provider.getSearchUID()})})}logSearchEvent(e,t){return U(this,void 0,void 0,function*(){return(yield this.makeSearchEvent(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeSearchEvent(e,t){return U(this,void 0,void 0,function*(){let n=yield this.getBaseSearchEventRequest(e,t),r=yield this.coveoAnalyticsClient.makeSearchEvent(n);return{description:this.makeEventDescription(r,e),log:({searchUID:i})=>r.log({searchQueryUid:i})}})}makeClickEvent(e,t,n,r){return U(this,void 0,void 0,function*(){let i=Object.assign(Object.assign(Object.assign({},t),yield this.getBaseEventRequest(Object.assign(Object.assign({},n),r))),{queryPipeline:this.provider.getPipeline(),actionCause:e}),a=yield this.coveoAnalyticsClient.makeClickEvent(i);return{description:this.makeEventDescription(a,e),log:({searchUID:o})=>a.log({searchQueryUid:o})}})}logClickEvent(e,t,n,r){return U(this,void 0,void 0,function*(){return(yield this.makeClickEvent(e,t,n,r)).log({searchUID:this.provider.getSearchUID()})})}getBaseSearchEventRequest(e,t){return U(this,void 0,void 0,function*(){return Object.assign(Object.assign(Object.assign({},yield this.getBaseEventRequest(t)),this.provider.getSearchEventRequestPayload()),{queryPipeline:this.provider.getPipeline(),actionCause:e})})}getBaseEventRequest(e){return U(this,void 0,void 0,function*(){let t=Object.assign(Object.assign({},this.provider.getBaseMetadata()),e);return Object.assign(Object.assign(Object.assign({},this.getOrigins()),this.getSplitTestRun()),{customData:t,language:this.provider.getLanguage(),facetState:this.provider.getFacetState?this.provider.getFacetState():[],anonymous:this.provider.getIsAnonymous(),clientId:yield this.getClientId()})})}getOrigins(){var e,t;return{originContext:(t=(e=this.provider).getOriginContext)===null||t===void 0?void 0:t.call(e),originLevel1:this.provider.getOriginLevel1(),originLevel2:this.provider.getOriginLevel2(),originLevel3:this.provider.getOriginLevel3()}}getClientId(){return this.coveoAnalyticsClient instanceof tr?this.coveoAnalyticsClient.getCurrentVisitorId():void 0}getSplitTestRun(){let e=this.provider.getSplitTestRunName?this.provider.getSplitTestRunName():"",t=this.provider.getSplitTestRunVersion?this.provider.getSplitTestRunVersion():"";return Object.assign(Object.assign({},e&&{splitTestRunName:e}),t&&{splitTestRunVersion:t})}},xk={pageview:"pageview",event:"event"},n2=Object.assign({},xk);Object.keys(n2).map(e=>n2[e]);var r2;(function(e){e.click="click",e.flowStart="flowStart"})(r2||(r2={}));var i2;(function(e){e.enterInterface="ticket_create_start",e.fieldUpdate="ticket_field_update",e.fieldSuggestionClick="ticket_classification_click",e.suggestionClick="suggestion_click",e.suggestionRate="suggestion_rate",e.nextCaseStep="ticket_next_stage",e.caseCancelled="ticket_cancel",e.caseSolved="ticket_cancel",e.caseCreated="ticket_create"})(i2||(i2={}));var a2;(function(e){e.quit="Quit",e.solved="Solved"})(a2||(a2={}));function ai(e){if(!e)return{parents:[],values:[]};let t=[],n=e;for(;n.length&&n[0].children.length;)t=[...t,...n],n=n[0].children;let r=n.find(i=>i.state==="selected");return r&&(t=[...t,r],n=[]),{parents:t,values:n}}var Ok=(e,t)=>{var n;return(n=e.categoryFacetSet[t])==null?void 0:n.request},t3=(e,t)=>{let n=Ok(e,t);return ai(n==null?void 0:n.currentValues).parents};function Ui(){return{}}function Ik(e){return{request:e}}function _i(){return{}}function Ek(e){return{request:e}}function Li(){return{}}function qk(e){return{request:e,hasBreadcrumbs:!0}}function zi(){return{}}function Ak(e){return{facetSet:e.facetSet||zi(),categoryFacetSet:e.categoryFacetSet||Ui(),dateFacetSet:e.dateFacetSet||_i(),numericFacetSet:e.numericFacetSet||Li()}}var Rk=e=>{let t=[];return Fk(e).forEach((n,r)=>{let i=Vk(e,n.facetId),a=Lk(n,r+1);if(Tk(n)){if(!t3(e,n.facetId).length)return;t.push({...a,..._k(e,n.facetId),facetType:i,state:"selected"});return}n.currentValues.forEach((o,s)=>{if(o.state==="idle")return;let l=Dk(o,s+1,i),u=Mk(n)?Pk(o):jk(o);t.push({...a,...l,...u})})}),t},Mk=e=>e.type==="specific",Tk=e=>e.type==="hierarchical",Fk=e=>[...Object.values(e.facetSet),...Object.values(e.categoryFacetSet),...Object.values(e.dateFacetSet),...Object.values(e.numericFacetSet)].map(t=>t.request),Dk=(e,t,n)=>({state:e.state,valuePosition:t,facetType:n}),jk=e=>({displayValue:`${e.start}..${e.end}`,value:`${e.start}..${e.end}`,start:e.start,end:e.end,endInclusive:e.endInclusive}),Pk=e=>({displayValue:e.value,value:e.value}),Uk=(e,t)=>t3(e,t).map(n=>n.value).join(";"),_k=(e,t)=>{let n=1,r=Uk(e,t);return{value:r,valuePosition:n,displayValue:r}},Lk=(e,t)=>({title:`${e.field}_${e.facetId}`,field:e.field,id:e.facetId,facetPosition:t}),zk=(e,t)=>{var n,r,i,a;return((n=e.facetSet[t])==null?void 0:n.request)||((r=e.categoryFacetSet[t])==null?void 0:r.request)||((i=e.dateFacetSet[t])==null?void 0:i.request)||((a=e.numericFacetSet[t])==null?void 0:a.request)},Vk=(e,t)=>{let n=zk(e,t);return n?n.type:"specific"},Vn=()=>({q:"",enableQuerySyntax:!1});function Ka(){return{answerSnippet:"",documentId:{contentIdKey:"",contentIdValue:""},question:"",relatedQuestions:[],score:0}}function En(){return{response:{results:[],searchUid:"",totalCountFiltered:0,facets:[],queryCorrections:[],triggers:[],questionAnswer:Ka(),pipeline:"",splitTestRun:"",termsToHighlight:{}},duration:0,queryExecuted:"",error:null,automaticallyCorrected:!1,isLoading:!1,results:[],searchResponseId:"",requestId:"",questionAnswer:Ka()}}var Nn=()=>"default",n3="2.8.10",Nk=e=>{let t=e.configuration.search.locale.split("-")[0];return!t||t.length!==2?"en":t},Ec=class{constructor(e){this.getState=e,this.state=e()}getLanguage(){return Nk(this.state)}getBaseMetadata(){let{context:e}=this.state,t=(e==null?void 0:e.contextValues)||{},n={};for(let[r,i]of Object.entries(t)){let a=`context_${r}`;n[a]=i}return n.coveoHeadlessVersion=n3,n}getOriginContext(){return this.state.configuration.analytics.originContext}getOriginLevel1(){return this.state.searchHub||Nn()}getOriginLevel2(){return this.state.configuration.analytics.originLevel2}getOriginLevel3(){return this.state.configuration.analytics.originLevel3}getIsAnonymous(){return this.state.configuration.analytics.anonymous}},nu=class extends Ec{getFacetState(){return Rk(Ak(this.getState()))}getPipeline(){var e;return this.state.pipeline||((e=this.state.search)==null?void 0:e.response.pipeline)||nu.fallbackPipelineName}getSearchEventRequestPayload(){return{queryText:this.queryText,responseTime:this.responseTime,results:this.mapResultsToAnalyticsDocument(),numberOfResults:this.numberOfResults}}getSearchUID(){var e,t;let n=this.getState();return((e=n.search)==null?void 0:e.searchResponseId)||((t=n.search)==null?void 0:t.response.searchUid)||En().response.searchUid}getSplitTestRunName(){var e;return(e=this.state.search)==null?void 0:e.response.splitTestRun}getSplitTestRunVersion(){var e;let t=!!this.getSplitTestRunName(),n=((e=this.state.search)==null?void 0:e.response.pipeline)||this.state.pipeline||nu.fallbackPipelineName;return t?n:void 0}mapResultsToAnalyticsDocument(){var e;return(e=this.state.search)==null?void 0:e.response.results.map(t=>({documentUri:t.uri,documentUriHash:t.raw.urihash}))}get queryText(){var e;return((e=this.state.query)==null?void 0:e.q)||Vn().q}get responseTime(){var e;return((e=this.state.search)==null?void 0:e.duration)||En().duration}get numberOfResults(){var e;return((e=this.state.search)==null?void 0:e.response.totalCountFiltered)||En().response.totalCountFiltered}},Po=nu;Po.fallbackPipelineName="default";var Qk=({logger:e,getState:t,analyticsClientMiddleware:n=(a,o)=>o,preprocessRequest:r,provider:i=new Po(t)})=>{let a=t(),o=a.configuration.accessToken,s=a.configuration.analytics.apiBaseUrl,l=a.configuration.analytics.runtimeEnvironment,u=a.configuration.analytics.enabled,d=new kk({token:o,endpoint:s,runtimeEnvironment:l,preprocessRequest:r,beforeSendHooks:[n,(f,m)=>(e.info({...m,type:f,endpoint:s,token:o},"Analytics request"),m)]},i);return u||d.disable(),d},_t=e=>new tr(e).getCurrentVisitorId(),o2=e=>{let t=new tr(e);t.clear(),t.deleteHttpOnlyVisitorId()},Ir=new W5.HistoryStore,s2=()=>{let e=Ir.getHistory().reverse().find(t=>t.name==="PageView"&&t.value);return e?e.value:""};function Cn(e){let{url:t,accessToken:n,organizationId:r,authentication:i,...a}=e;return a}var bn=e=>{let{response:t}=e;return t.body?Hk(e):Bk(t)},Hk=e=>Yk(e)?Zk(e):Wk(e)?e.body:{message:"unknown",statusCode:0,type:"unknown"},Bk=e=>{let t=JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)));return{...t,message:`Client side error: ${t.message||""}`,statusCode:400,type:"ClientError"}};function Wk(e){return e.body.statusCode!==void 0}function Yk(e){return e.body.exception!==void 0}var Zk=e=>({message:e.body.exception.code,statusCode:e.response.status,type:e.body.exception.code}),Jk=Ke(FS()),Gk=Ke(VS()),Kk=class extends Error{constructor(){super(),this.name="ExpiredToken",this.message="The token being used to perform the request is expired."}},ru=class extends Error{constructor(e,t){super(),this.name="Disconnected",this.message=`Client could not connect to the following URL: ${e}`,this.statusCode=t!=null?t:0}};function Xk(e){let t=[];for(let n in e){let r=encodeURIComponent(n),i=encodeURIComponent(e[n]);t.push(`${r}=${i}`)}return t.join("&")}function ex(e){return typeof e!="object"||!e?!1:Object.values(e).every(tx)}function tx(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function l2(e){return e===429}var tn=class{static async call(e){let t=rx(e),{origin:n,preprocessRequest:r,logger:i,requestMetadata:a}=e,o={...t,...r?await r(t,n,a):{}};i.info(o,"Platform request");let{url:s,...l}=o,u=async()=>{let d=await(0,Jk.default)(s,l);if(l2(d.status))throw d;return d};try{let d=await(0,Gk.backOff)(u,{retry:f=>{let m=f&&l2(f.status);return m&&i.info("Platform retrying request"),m}});if(d.status===419)throw i.info("Platform renewing token"),new Kk;if(d.status===404)throw new ru(s,d.status);return i.info({response:d,requestInfo:o},"Platform response"),d}catch(d){return d.message==="Failed to fetch"?new ru(s):d}}};function r3(e,t){let n=!t||!t.environment||t.environment==="prod"?"":t.environment,r=!t||!t.region||t.region==="us"?"":`-${t.region}`;return`https://${e}${n}${r}.cloud.coveo.com`}function u2(e){return e!=null&&e.multiRegionSubDomain?`https://${e.multiRegionSubDomain}.org.coveo.com`:r3("platform",e)}function nx(e){return r3("analytics",e)}function rx(e){let{url:t,method:n,requestParams:r,contentType:i,accessToken:a,signal:o}=e,s=e.method==="POST"||e.method==="PUT",l=ix(r,i);return{url:t,method:n,headers:{"Content-Type":i,Authorization:`Bearer ${a}`,...e.headers},...s&&{body:l},signal:o}}function ix(e,t){return t==="application/x-www-form-urlencoded"?ex(e)?Xk(e):"":JSON.stringify(e)}var ax=TextDecoder,ox=class{constructor(e){this._params={},this._basePath=e}addParam(e,t){this._params={...this.params,[e]:t}}get basePath(){return this._basePath}get params(){return this._params}get hasParams(){return Object.entries(this._params).length}get href(){return this.hasParams?`${this.basePath}?${Object.entries(this.params).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join("&")}`:this.basePath}};function sx(e){return((e.headers.get("content-type")||"").split(";").find(t=>t.indexOf("charset=")!==-1)||"").split("=")[1]||"UTF-8"}var nn=(e,t,n,r)=>({accessToken:e.accessToken,method:t,contentType:n,url:`${e.url}${r}?${lx(e)}${e.authentication?`&${ux(e)}`:""}`,origin:"searchApiFetch"}),lx=e=>`organizationId=${e.organizationId}`,ux=e=>`authentication=${encodeURIComponent(e.authentication)}`,cx=(e,t)=>{let n=new ox(`${e.url}${t}`);return n.addParam("access_token",e.accessToken),n.addParam("organizationId",e.organizationId),n.addParam("uniqueId",e.uniqueId),e.q!==void 0&&n.addParam("q",e.q),e.enableNavigation!==void 0&&n.addParam("enableNavigation",`${e.enableNavigation}`),e.requestedOutputSize!==void 0&&n.addParam("requestedOutputSize",`${e.requestedOutputSize}`),e.visitorId!==void 0&&n.addParam("visitorId",`${e.visitorId}`),n.href},dx=async(e,t)=>{let n=await tn.call({...nn(e,"POST","application/x-www-form-urlencoded","/html"),requestParams:Cn(e),requestMetadata:{method:"html"},...t});if(n instanceof Error)throw n;let r=sx(n),i=await n.arrayBuffer(),a=new ax(r).decode(i);return fx(a)?{success:a}:{error:bn({response:n,body:a})}};function fx(e){return typeof e=="string"}function px(e){return{statusCode:e.statusCode,type:e.name,message:e.message}}function hx(e){return{statusCode:e.code,type:e.name,message:e.message,ignored:!0}}function Ws(e,t){if(t&&e.name==="AbortError")return{error:hx(e)};if(e instanceof ru)return{error:px(e)};throw e}var mx=class{constructor(e){this.options=e,this.searchAbortController=null}async plan(e){let t=await tn.call({...nn(e,"POST","application/json","/plan"),requestParams:Cn(e),requestMetadata:{method:"plan"},...this.options});if(t instanceof Error)return Ws(t);let n=await t.json();return yx(n)?{success:n}:{error:bn({response:t,body:n})}}async querySuggest(e){let t=await tn.call({...nn(e,"POST","application/json","/querySuggest"),requestMetadata:{method:"querySuggest"},requestParams:Cn(e),...this.options});if(t instanceof Error)return Ws(t);let n=await t.json(),r={response:t,body:n};return vx(n)?{success:(await this.options.postprocessQuerySuggestResponseMiddleware(r)).body}:{error:bn(r)}}async search(e,t){var n;this.searchAbortController&&(!(t!=null&&t.disableAbortWarning)&&this.options.logger.warn("Cancelling current pending search query"),this.searchAbortController.abort()),this.searchAbortController=this.getAbortControllerInstanceIfAvailable();let r=await tn.call({...nn(e,"POST","application/json",""),requestParams:Cn(e),requestMetadata:{method:"search",origin:t==null?void 0:t.origin},...this.options,signal:(n=this.searchAbortController)==null?void 0:n.signal});if(r instanceof Error)return Ws(r,t==null?void 0:t.disableAbortWarning);this.searchAbortController=null;let i=await r.json(),a={response:r,body:i};return Ys(i)?(a.body=bx(i),{success:(await this.options.postprocessSearchResponseMiddleware(a)).body}):{error:bn(a)}}async facetSearch(e){let t=await tn.call({...nn(e,"POST","application/json","/facet"),requestParams:Cn(e),requestMetadata:{method:"facetSearch"},...this.options});if(t instanceof Error)throw t;let n=await t.json(),r={response:t,body:n};return(await this.options.postprocessFacetSearchResponseMiddleware(r)).body}async recommendations(e){let t=await tn.call({...nn(e,"POST","application/json",""),requestParams:Cn(e),requestMetadata:{method:"recommendations"},...this.options});if(t instanceof Error)throw t;let n=await t.json();return Ys(n)?{success:n}:{error:bn({response:t,body:n})}}async html(e){return dx(e,{...this.options})}async productRecommendations(e){let t=await tn.call({...nn(e,"POST","application/json",""),requestParams:Cn(e),requestMetadata:{method:"productRecommendations"},...this.options});if(t instanceof Error)throw t;let n=await t.json();return Ys(n)?{success:n}:{error:bn({response:t,body:n})}}async fieldDescriptions(e){let t=await tn.call({...nn(e,"GET","application/json","/fields"),requestParams:{},requestMetadata:{method:"fieldDescriptions"},...this.options});if(t instanceof Error)throw t;let n=await t.json();return Cx(n)?{success:n}:{error:bn({response:t,body:n})}}getAbortControllerInstanceIfAvailable(){if(typeof window=="undefined"){let e=NS();return new e}return typeof AbortController=="undefined"?null:new AbortController}},gx=e=>e.success!==void 0,vt=e=>e.error!==void 0;function vx(e){return e.completions!==void 0}function yx(e){return e.preprocessingOutput!==void 0}function Cx(e){return e.fields!==void 0}function Ys(e){return e.results!==void 0}function bx(e){let t=Ka();return $e(e.questionAnswer)?(e.questionAnswer=t,e):(e.questionAnswer={...t,...e.questionAnswer},e)}var Sx=["uri","urihash","permanentid","ec_name","ec_brand","ec_category","ec_item_group_id","ec_price","ec_promo_price","ec_shortdesc","ec_thumbnails","ec_images","ec_in_stock","ec_rating","childResults","totalNumberOfChildResults"],re=new de({required:!0,emptyAllowed:!1}),Ae=new de({required:!1,emptyAllowed:!1}),Je=new de({required:!0,emptyAllowed:!0}),Qn=({message:e,name:t,stack:n})=>({message:e,name:t,stack:n}),Hn=(e,t)=>{if("required"in t)return{payload:new xc({value:t}).validate({value:e}).value};let n=new ye({options:{required:!0},values:t}).validate(e);if(n)throw new kc(n);return{payload:e}},Q=(e,t)=>{try{return Hn(e,t)}catch(n){return{payload:e,error:Qn(n)}}},qc=()=>({id:"",skus:[],maxNumberOfRecommendations:5,filter:{brand:"",category:""},additionalFields:[],recommendations:[],error:null,isLoading:!1,searchUid:"",duration:0}),wx=class extends Ec{constructor(){super(...arguments),this.initialState=qc()}getPipeline(){return""}getSearchEventRequestPayload(){return{queryText:"",responseTime:this.responseTime,results:this.mapResultsToAnalyticsDocument(),numberOfResults:this.numberOfResults}}getSearchUID(){var e;return((e=this.getState().productRecommendations)==null?void 0:e.searchUid)||this.initialState.searchUid}mapResultsToAnalyticsDocument(){var e;return(e=this.state.productRecommendations)==null?void 0:e.recommendations.map(t=>({documentUri:t.documentUri,documentUriHash:t.documentUriHash,permanentid:t.permanentid}))}get responseTime(){var e;return((e=this.state.productRecommendations)==null?void 0:e.duration)||this.initialState.duration}get numberOfResults(){var e;return((e=this.state.productRecommendations)==null?void 0:e.recommendations.length)||this.initialState.recommendations.length}};new W5.HistoryStore;var $x=Ke(a5());function i3(e){return Array.isArray(e)}function Zs(e){return e.trim()===""}function kx(e,t){return Object.values(e.reduce((n,r,i)=>({...n,[t(r,i)]:r}),{}))}function xx(e){return(typeof btoa!="undefined"?btoa:$x.btoa)(encodeURI(e))}function Ox(e){return xx(JSON.stringify(e))}var Ix=new Set(["1",1,"yes",!0]);function Ex(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;let e=navigator,t=window;return[e.globalPrivacyControl,e.doNotTrack,e.msDoNotTrack,t.doNotTrack].some(n=>Ix.has(n))}function qx(e){let t=a3(e),n=[e,...t].filter(r=>r.parentResult).map(r=>r.parentResult);return kx([e,...t,...n],r=>r.uniqueId)}function a3(e){return e.childResults?e.childResults.flatMap(t=>[t,...a3(t)]):[]}var Uo=()=>"",Lt=(e=>(e[e.Search=0]="Search",e[e.Custom=1]="Custom",e[e.Click=2]="Click",e))(Lt||{});function Ax(e){return Object.assign(e,{instantlyCallable:!0})}function Rx(e,t){let n=i=>Ax(xe(e,i)),r=n(async(i,{getState:a,extra:o})=>{let{analyticsClientMiddleware:s,preprocessRequest:l,logger:u}=o;return await(await t({getState:a,analyticsClientMiddleware:s,preprocessRequest:l,logger:u})).log({state:a(),extra:o})});return Object.assign(r,{prepare:async({getState:i,analyticsClientMiddleware:a,preprocessRequest:o,logger:s})=>{let{description:l,log:u}=await t({getState:i,analyticsClientMiddleware:a,preprocessRequest:o,logger:s});return{description:l,action:n(async(d,{getState:f,extra:m})=>await u({state:f(),extra:m}))}}}),r}var Gt=(e,t,n,r=i=>new Po(i))=>Rx(e,async({getState:i,analyticsClientMiddleware:a,preprocessRequest:o,logger:s})=>{let l=Qk({getState:i,logger:s,analyticsClientMiddleware:a,preprocessRequest:o,provider:r(i)}),u=await n(l,i());return{description:u==null?void 0:u.description,log:async({state:d})=>{let f=await(u==null?void 0:u.log({searchUID:r(()=>d).getSearchUID()}));return s.info({client:l.coveoAnalyticsClient,response:f},"Analytics response"),{analyticsType:t}}}}),o3={urihash:new de,sourcetype:new de,permanentid:new de},Ac={uniqueId:re,raw:new ye({values:o3}),title:re,uri:re,clickUri:re,rankingModifier:new de({required:!1,emptyAllowed:!0})};function Mx(e){return Object.assign({},...Object.keys(o3).map(t=>({[t]:e[t]})))}function Tx(e){return Object.assign({},...Object.keys(Ac).map(t=>({[t]:e[t]})),{raw:Mx(e.raw)})}var Fx=e=>new xc(Ac).validate(Tx(e)),Dx=()=>Gt("analytics/productRecommendations/load",Lt.Search,e=>e.makeRecommendationInterfaceLoad(),e=>new wx(e));function jx(e){return e&&"childResults"in e&&"totalNumberOfChildResults"in e}var Px=j("productrecommendations/setId",e=>Q(e,{id:re})),Ux=j("productrecommendations/setSku",e=>Q(e,{skus:new We({required:!0,min:1,each:Ae})})),_x=j("productrecommendations/setBrand",e=>Q(e,{brand:new de({required:!0,emptyAllowed:!0})})),Lx=j("productrecommendations/setCategory",e=>Q(e,{category:new de({required:!0,emptyAllowed:!0})})),zx=j("productrecommendations/setAdditionalFields",e=>Q(e,{additionalFields:new We({required:!0,each:Ae})})),Vx=j("productrecommendations/setMaxNumberOfRecommendations",e=>Q(e,{number:new ve({required:!0,max:50,min:1})})),Sa=xe("productRecommendations/get",async(e,{getState:t,rejectWithValue:n,extra:{apiClient:r}})=>{let i=t(),a=new Date().getTime(),o=await r.productRecommendations(await Nx(i)),s=new Date().getTime()-a;if(vt(o))return n(o.error);let l=i.productRecommendations.additionalFields||[];return{recommendations:o.success.results.map(u=>s3(u,{additionalFields:l})),analyticsAction:Dx(),searchUid:o.success.searchUid,duration:s}}),s3=(e,{additionalFields:t})=>{let n=e.raw.ec_price,r=e.raw.ec_promo_price,i=e.raw.ec_in_stock,a={documentUri:e.uri,documentUriHash:e.raw.urihash,permanentid:e.raw.permanentid,clickUri:e.clickUri,ec_name:e.raw.ec_name,ec_brand:e.raw.ec_brand,ec_category:e.raw.ec_category,ec_item_group_id:e.raw.ec_item_group_id,ec_price:n,ec_shortdesc:e.raw.ec_shortdesc,ec_thumbnails:e.raw.ec_thumbnails,ec_images:e.raw.ec_images,ec_promo_price:r===void 0||n!==void 0&&r>=n?void 0:r,ec_in_stock:i===void 0?void 0:i.toLowerCase()==="yes"||i.toLowerCase()==="true",ec_rating:e.raw.ec_rating,additionalFields:t.reduce((o,s)=>({...o,[s]:e.raw[s]}),{}),childResults:[],totalNumberOfChildResults:0};return jx(e)&&(a.childResults=e.childResults.map(o=>s3(o,{additionalFields:t})),a.totalNumberOfChildResults=e.totalNumberOfChildResults),a},Nx=async e=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.search.apiBaseUrl,locale:e.configuration.search.locale,timezone:e.configuration.search.timezone,...e.configuration.analytics.enabled&&{visitorId:await _t(e.configuration.analytics)},recommendation:e.productRecommendations.id,numberOfResults:e.productRecommendations.maxNumberOfRecommendations,fieldsToInclude:[...Sx,...e.productRecommendations.additionalFields||[]],mlParameters:{...e.productRecommendations.skus&&e.productRecommendations.skus.length>0&&{itemIds:e.productRecommendations.skus},...e.productRecommendations.filter.brand&&{brandFilter:e.productRecommendations.filter.brand},...e.productRecommendations.filter.category&&{categoryFilter:e.productRecommendations.filter.category}},actionsHistory:e.configuration.analytics.enabled?Ir.getHistory():[],...e.context&&{context:e.context.contextValues},...e.dictionaryFieldContext&&{dictionaryFieldContext:e.dictionaryFieldContext.contextValues},...e.searchHub&&{searchHub:e.searchHub}}),_o=async(e,t)=>({analytics:{clientId:await _t(e),clientTimestamp:new Date().toISOString(),documentReferrer:e.originLevel3,originContext:e.originContext,...t&&{actionCause:t.actionCause,customData:t.customData},...e.userDisplayName&&{userDisplayName:e.userDisplayName},...e.documentLocation&&{documentLocation:e.documentLocation},...e.deviceId&&{deviceId:e.deviceId},...s2()&&{pageId:s2()}}}),Zr=()=>({duration:0,error:null,isLoading:!1,id:"Recommendation",recommendations:[],searchUid:"",splitTestRun:"",pipeline:""}),Qx=class extends Ec{getPipeline(){var e;return this.state.pipeline||((e=this.state.recommendation)==null?void 0:e.pipeline)||"default"}getSearchEventRequestPayload(){return{queryText:Vn().q,responseTime:this.responseTime,results:this.mapResultsToAnalyticsDocument(),numberOfResults:this.numberOfResults}}getSearchUID(){var e;return((e=this.getState().recommendation)==null?void 0:e.searchUid)||Zr().searchUid}getSplitTestRunName(){var e;return(e=this.state.recommendation)==null?void 0:e.splitTestRun}getSplitTestRunVersion(){var e;let t=!!this.getSplitTestRunName(),n=((e=this.state.recommendation)==null?void 0:e.pipeline)||this.state.pipeline||"default";return t?n:void 0}get responseTime(){var e;return((e=this.state.recommendation)==null?void 0:e.duration)||Zr().duration}mapResultsToAnalyticsDocument(){var e;return(e=this.state.recommendation)==null?void 0:e.recommendations.map(t=>({documentUri:t.uri,documentUriHash:t.raw.urihash}))}get numberOfResults(){var e;return((e=this.state.recommendation)==null?void 0:e.recommendations.length)||Zr().recommendations.length}},Hx=()=>Gt("analytics/recommendation/update",Lt.Search,e=>e.makeRecommendationInterfaceLoad(),e=>new Qx(e)),Bx=j("recommendation/set",e=>Q(e,{id:re})),wa=xe("recommendation/get",async(e,{getState:t,rejectWithValue:n,extra:{apiClient:r}})=>{let i=t(),a=new Date().getTime(),o=await r.recommendations(await Wx(i)),s=new Date().getTime()-a;return vt(o)?n(o.error):{recommendations:o.success.results,analyticsAction:Hx(),duration:s,searchUid:o.success.searchUid,splitTestRun:o.success.splitTestRun,pipeline:o.success.pipeline}}),Wx=async e=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.search.apiBaseUrl,recommendation:e.recommendation.id,tab:e.configuration.analytics.originLevel2,referrer:e.configuration.analytics.originLevel3,timezone:e.configuration.search.timezone,locale:e.configuration.search.locale,actionsHistory:e.configuration.analytics.enabled?Ir.getHistory():[],...e.advancedSearchQueries&&{aq:e.advancedSearchQueries.aq,cq:e.advancedSearchQueries.cq},...e.pipeline&&{pipeline:e.pipeline},...e.searchHub&&{searchHub:e.searchHub},...e.context&&{context:e.context.contextValues},...e.dictionaryFieldContext&&{dictionaryFieldContext:e.dictionaryFieldContext.contextValues},...e.fields&&{fieldsToInclude:e.fields.fieldsToInclude},...e.configuration.analytics.enabled&&{visitorId:await _t(e.configuration.analytics)},...e.configuration.analytics.enabled&&await _o(e.configuration.analytics),...e.configuration.search.authenticationProviders.length&&{authentication:e.configuration.search.authenticationProviders.join(",")},...e.pagination&&{numberOfResults:e.pagination.numberOfResults}}),Bn=j("breadcrumb/deselectAll"),l3=j("breadcrumb/deselectAllNonBreadcrumbs"),Rc=j("facet/updateFacetAutoSelection",e=>Q(e,{allow:new _e({required:!0})})),Yx=class extends Po{constructor(e){super(e),this.getState=e}get activeInstantResultQuery(){let e=this.getState().instantResults;for(let t in e)for(let n in e[t].cache)if(e[t].cache[n].isActive)return e[t].q;return null}get activeInstantResultCache(){let e=this.getState().instantResults;for(let t in e)for(let n in e[t].cache)if(e[t].cache[n].isActive)return e[t].cache[n];return null}getSearchUID(){var e;return((e=this.activeInstantResultCache)==null?void 0:e.searchUid)||super.getSearchUID()}getSearchEventRequestPayload(){let e=super.getSearchEventRequestPayload(),t=this.activeInstantResultQuery||e.queryText;return{...e,queryText:t}}},Zx=()=>Gt("analytics/instantResult/searchboxAsYouType",Lt.Search,e=>e.makeSearchboxAsYouType(),e=>new Yx(e)),Mc={id:re},Jx={...Mc,q:Je},Gx=j("instantResults/register",e=>Q(e,Mc)),u3=j("instantResults/updateQuery",e=>Q(e,Jx)),Kx=j("instantResults/clearExpired",e=>Q(e,Mc)),Lo=new ve({required:!0,min:0}),Xx=j("pagination/registerNumberOfResults",e=>Q(e,Lo)),eO=j("pagination/updateNumberOfResults",e=>Q(e,Lo)),tO=j("pagination/registerPage",e=>Q(e,Lo)),c3=j("pagination/updatePage",e=>Q(e,Lo)),nO=j("pagination/nextPage"),rO=j("pagination/previousPage"),Tc=j("query/updateQuery",e=>Q(e,{q:new de,enableQuerySyntax:new _e})),Fc=async(e,t)=>{var n,r,i,a;return{accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.search.apiBaseUrl,locale:e.configuration.search.locale,debug:e.debug,tab:e.configuration.analytics.originLevel2,referrer:e.configuration.analytics.originLevel3,timezone:e.configuration.search.timezone,...e.configuration.analytics.enabled&&{visitorId:await _t(e.configuration.analytics),actionsHistory:Ir.getHistory()},...((n=e.advancedSearchQueries)==null?void 0:n.aq)&&{aq:e.advancedSearchQueries.aq},...((r=e.advancedSearchQueries)==null?void 0:r.cq)&&{cq:e.advancedSearchQueries.cq},...((i=e.advancedSearchQueries)==null?void 0:i.lq)&&{lq:e.advancedSearchQueries.lq},...((a=e.advancedSearchQueries)==null?void 0:a.dq)&&{dq:e.advancedSearchQueries.dq},...e.context&&{context:e.context.contextValues},...e.fields&&!e.fields.fetchAllFields&&{fieldsToInclude:e.fields.fieldsToInclude},...e.dictionaryFieldContext&&{dictionaryFieldContext:e.dictionaryFieldContext.contextValues},...e.pipeline&&{pipeline:e.pipeline},...e.query&&{q:e.query.q,enableQuerySyntax:e.query.enableQuerySyntax},...e.searchHub&&{searchHub:e.searchHub},...e.sortCriteria&&{sortCriteria:e.sortCriteria},...e.configuration.analytics.enabled&&await _o(e.configuration.analytics,t),...e.excerptLength&&!$e(e.excerptLength.length)&&{excerptLength:e.excerptLength.length},...e.configuration.search.authenticationProviders.length&&{authentication:e.configuration.search.authenticationProviders.join(",")}}},iO=j("didYouMean/enable"),aO=j("didYouMean/disable"),Dc=j("didYouMean/correction",e=>Q(e,re)),oO=()=>Gt("analytics/didyoumean/automatic",Lt.Search,e=>e.makeDidYouMeanAutomatic()),sO=j("history/undo"),lO=j("history/redo"),$a=j("history/snapshot");xe("history/back",async(e,{dispatch:t})=>{t(sO()),await t(nt())});xe("history/forward",async(e,{dispatch:t})=>{t(lO()),await t(nt())});var nt=xe("history/change",async(e,{getState:t})=>t().history.present),qn=()=>({cq:"",cqWasSet:!1,aq:"",aqWasSet:!1,lq:"",lqWasSet:!1,dq:"",dqWasSet:!1,defaultFilters:{cq:"",aq:"",lq:"",dq:""}});function Er(){return{contextValues:{}}}var Vi=()=>!1;function Ni(){return{contextValues:{}}}function Ur(){return{enabled:!0}}function zo(){return{freezeFacetOrder:!1,facets:{}}}function Vo(){return[]}function jc(){return{}}function uO(e){return e?e.expiresAt&&Date.now()>=e.expiresAt:!1}function qr(){return{firstResult:0,defaultNumberOfResults:10,numberOfResults:10,totalCountFiltered:0}}function Pc(){return{}}var cO=(e=>(e.Ascending="ascending",e.Descending="descending",e))(cO||{}),d3=(e=>(e.Relevancy="relevancy",e.QRE="qre",e.Date="date",e.Field="field",e.NoSort="nosort",e))(d3||{}),Xa=e=>{if(L5(e))return e.map(t=>Xa(t)).join(",");switch(e.by){case"relevancy":case"qre":case"nosort":return e.by;case"date":return`date ${e.order}`;case"field":return`@${e.field} ${e.order}`;default:return""}},dO=()=>({by:"relevancy"});function Uc(){return Xa(dO())}function _c(){return{}}function Lc(){return{}}function f3(){return ka({})}function ka(e){var t,n;return{context:e.context||Er(),dictionaryFieldContext:e.dictionaryFieldContext||Ni(),facetSet:e.facetSet||zi(),numericFacetSet:e.numericFacetSet||Li(),dateFacetSet:e.dateFacetSet||_i(),categoryFacetSet:e.categoryFacetSet||Ui(),pagination:e.pagination||qr(),query:e.query||Vn(),tabSet:e.tabSet||Lc(),advancedSearchQueries:e.advancedSearchQueries||qn(),staticFilterSet:e.staticFilterSet||_c(),querySet:e.querySet||Pc(),instantResults:e.instantResults||jc(),sortCriteria:e.sortCriteria||Uc(),pipeline:e.pipeline||Uo(),searchHub:e.searchHub||Nn(),facetOptions:e.facetOptions||zo(),facetOrder:(t=e.facetOrder)!=null?t:Vo(),debug:(n=e.debug)!=null?n:Vi()}}var fO=()=>Gt("analytics/trigger/query",Lt.Search,(e,t)=>{var n;return(n=t.triggers)!=null&&n.queryModification.newQuery?e.makeTriggerQuery():null}),p3=j("trigger/query/ignore",e=>Q(e,new de({emptyAllowed:!0,required:!0}))),h3=j("trigger/query/modification",e=>Q(e,new ye({values:{originalQuery:Ae,modification:Ae}}))),c2=()=>Gt("search/logFetchMoreResults",Lt.Search,e=>e.makeFetchMoreResults()),xa=e=>Gt("search/queryError",Lt.Search,(t,n)=>{var r,i,a,o;return t.makeQueryError({query:((r=n.query)==null?void 0:r.q)||Vn().q,aq:((i=n.advancedSearchQueries)==null?void 0:i.aq)||qn().aq,cq:((a=n.advancedSearchQueries)==null?void 0:a.cq)||qn().cq,dq:((o=n.advancedSearchQueries)==null?void 0:o.dq)||qn().dq,errorType:e.type,errorMessage:e.message})}),Oa=Ke(fc()),pO=Ke(BS()),iu=Ke(fc()),hO=Ke(WS());iu.default.extend(hO.default);var m3="YYYY/MM/DD@HH:mm:ss",mO="1401-01-01";function eo(e,t){let n=(0,iu.default)(e,t);return!n.isValid()&&!t?(0,iu.default)(e,m3):n}function g3(e){return e.format(m3)}function gO(e,t){let n=eo(e,t);if(!n.isValid()){let r=". Please provide a date format string in the configuration options. See https://day.js.org/docs/en/parse/string-format for more information.",i=` with the format "${t}""`;throw new Error(`Could not parse the provided date "${e}"${t?i:r}`)}v3(n)}function v3(e){if(e.isBefore(mO))throw new Error(`Date is before year 1401, which is unsupported by the API: ${e}`)}Oa.default.extend(pO.default);var y3=["past","now","next"],C3=["minute","hour","day","week","month","quarter","year"],vO=e=>{let t=e==="now";return{amount:new ve({required:!t,min:1}),unit:new de({required:!t,constrainTo:C3}),period:new de({required:!0,constrainTo:y3})}};function d2(e){if(typeof e=="string"&&!oi(e))throw new Error(`The value "${e}" is not respecting the relative date format "period-amount-unit"`);let t=typeof e=="string"?w3(e):e;new xc(vO(t.period)).validate(t);let n=b3(t),r=JSON.stringify(t);if(!n.isValid())throw new Error(`Date is invalid: ${r}`);v3(n)}function yO(e){let{period:t,amount:n,unit:r}=e;switch(t){case"past":case"next":return`${t}-${n}-${r}`;case"now":return t}}function b3(e){let{period:t,amount:n,unit:r}=e;switch(t){case"past":return(0,Oa.default)().subtract(n,r);case"next":return(0,Oa.default)().add(n,r);case"now":return(0,Oa.default)()}}function au(e){return g3(b3(w3(e)))}function S3(e){return e.toLocaleLowerCase().split("-")}function oi(e){let[t,n,r]=S3(e);if(t==="now")return!0;if(!y3.includes(t)||!C3.includes(r))return!1;let i=parseInt(n);return!(isNaN(i)||i<=0)}function CO(e){return!!e&&typeof e=="object"&&"period"in e}function w3(e){let[t,n,r]=S3(e);return t==="now"?{period:"now"}:{period:t,amount:n?parseInt(n):void 0,unit:r||void 0}}function bO(e){return e.type==="dateRange"}function $3(e){return`start${e}`}function k3(e){return`end${e}`}var SO=()=>({dateFacetValueMap:{}});function wO(e,t,n){let r=e.start,i=e.end;return oi(r)&&(r=au(r),n.dateFacetValueMap[t][$3(r)]=e.start),oi(i)&&(i=au(i),n.dateFacetValueMap[t][k3(i)]=e.end),{...e,start:r,end:i}}function $O(e,t){if(bO(e)){let{facetId:n,currentValues:r}=e;return t.dateFacetValueMap[n]={},{...e,currentValues:r.map(i=>wO(i,n,t))}}return e}function x3(e){var t;let n=SO();return{request:{...e,facets:(t=e.facets)==null?void 0:t.map(r=>$O(r,n))},mappings:n}}function kO(e,t,n){return{...e,start:n.dateFacetValueMap[t][$3(e.start)]||e.start,end:n.dateFacetValueMap[t][k3(e.end)]||e.end}}function xO(e,t){return e.facetId in t.dateFacetValueMap}function OO(e,t){return xO(e,t)?{...e,values:e.values.map(n=>kO(n,e.facetId,t))}:e}function IO(e,t){var n;return"success"in e?{success:{...e.success,facets:(n=e.success.facets)==null?void 0:n.map(r=>OO(r,t))}}:e}function O3(e,t){let n={};e.forEach(a=>n[a.facetId]=a);let r=[];t.forEach(a=>{a in n&&(r.push(n[a]),delete n[a])});let i=Object.values(n);return[...r,...i]}function wn(e){return Object.values(e).map(t=>t.request)}var EO=1,ou=5e3,cn=async(e,t)=>{var n;let r=MO(e),i=qO(e),a=await Fc(e,t),o=()=>e.pagination?e.pagination.firstResult+e.pagination.numberOfResults>ou?ou-e.pagination.firstResult:e.pagination.numberOfResults:void 0;return x3({...a,...e.didYouMean&&{enableDidYouMean:e.didYouMean.enableDidYouMean},...r&&{cq:r},...i.length&&{facets:i},...e.pagination&&{numberOfResults:o(),firstResult:e.pagination.firstResult},...e.facetOptions&&{facetOptions:{freezeFacetOrder:e.facetOptions.freezeFacetOrder}},...((n=e.folding)==null?void 0:n.enabled)&&{filterField:e.folding.fields.collection,childField:e.folding.fields.parent,parentField:e.folding.fields.child,filterFieldRange:e.folding.filterFieldRange}})};function qO(e){var t;return O3(AO(e),(t=e.facetOrder)!=null?t:[])}function AO(e){return RO(e).filter(({facetId:t})=>{var n,r,i;return(i=(r=(n=e.facetOptions)==null?void 0:n.facets[t])==null?void 0:r.enabled)!=null?i:!0})}function RO(e){var t,n,r,i;return[...wn((t=e.facetSet)!=null?t:{}),...f2((n=e.numericFacetSet)!=null?n:{}),...f2((r=e.dateFacetSet)!=null?r:{}),...wn((i=e.categoryFacetSet)!=null?i:{})]}function f2(e){return wn(e).map(t=>{let n=t.currentValues.find(({state:r})=>r==="selected");return t.generateAutomaticRanges&&!n?{...t,currentValues:[]}:t})}function MO(e){var t;let n=((t=e.advancedSearchQueries)==null?void 0:t.cq.trim())||"",r=Object.values(e.tabSet||{}).find(o=>o.isActive),i=(r==null?void 0:r.expression.trim())||"",a=TO(e);return[n,i,...a].filter(o=>!!o).join(" AND ")}function TO(e){return Object.values(e.staticFilterSet||{}).map(t=>{let n=t.values.filter(i=>i.state==="selected"&&!!i.expression.trim()),r=n.map(i=>i.expression).join(" OR ");return n.length>1?`(${r})`:r})}var Qi=class{constructor(e,t=n=>{this.dispatch(Tc({q:n}))}){this.config=e,this.onUpdateQueryForCorrection=t}async fetchFromAPI({mappings:e,request:t},n){var r;let i=new Date().getTime(),a=IO(await this.extra.apiClient.search(t,n),e),o=new Date().getTime()-i,s=((r=this.getState().query)==null?void 0:r.q)||"";return{response:a,duration:o,queryExecuted:s,requestExecuted:t}}async process(e){var t,n,r;return(r=(n=(t=this.processQueryErrorOrContinue(e))!=null?t:await this.processQueryCorrectionsOrContinue(e))!=null?n:await this.processQueryTriggersOrContinue(e))!=null?r:this.processSuccessReponse(e)}processQueryErrorOrContinue(e){return vt(e.response)?(this.dispatch(xa(e.response.error)),this.rejectWithValue(e.response.error)):null}async processQueryCorrectionsOrContinue(e){var t;let n=this.getState(),r=this.getSuccessResponse(e);if(!r||((t=n.didYouMean)==null?void 0:t.enableDidYouMean)===!1||r.results.length!==0||r.queryCorrections.length===0)return null;let i=this.getCurrentQuery(),{correctedQuery:a}=r.queryCorrections[0],o=await this.automaticallyRetryQueryWithCorrection(a);return vt(o.response)?(this.dispatch(xa(o.response.error)),this.rejectWithValue(o.response.error)):(this.analyticsAction&&this.analyticsAction()(this.dispatch,()=>this.getStateAfterResponse(e.queryExecuted,e.duration,n,r),this.extra),this.dispatch($a(ka(this.getState()))),{...o,response:{...o.response.success,queryCorrections:r.queryCorrections},automaticallyCorrected:!0,originalQuery:i,analyticsAction:oO()})}async processQueryTriggersOrContinue(e){var t,n;let r=this.getSuccessResponse(e);if(!r)return null;let i=((t=r.triggers.find(s=>s.type==="query"))==null?void 0:t.content)||"";if(!i)return null;if(((n=this.getState().triggers)==null?void 0:n.queryModification.queryToIgnore)===i)return this.dispatch(p3("")),null;this.analyticsAction&&await this.dispatch(this.analyticsAction);let a=this.getCurrentQuery(),o=await this.automaticallyRetryQueryWithTriggerModification(i);return vt(o.response)?(this.dispatch(xa(o.response.error)),this.rejectWithValue(o.response.error)):(this.dispatch($a(ka(this.getState()))),{...o,response:{...o.response.success},automaticallyCorrected:!1,originalQuery:a,analyticsAction:fO()})}processSuccessReponse(e){return this.dispatch($a(ka(this.getState()))),{...e,response:this.getSuccessResponse(e),automaticallyCorrected:!1,originalQuery:this.getCurrentQuery(),analyticsAction:this.analyticsAction}}getSuccessResponse(e){return gx(e.response)?e.response.success:null}async automaticallyRetryQueryWithCorrection(e){this.onUpdateQueryForCorrection(e);let t=await this.fetchFromAPI(await cn(this.getState()),{origin:"mainSearch"});return this.dispatch(Dc(e)),t}async automaticallyRetryQueryWithTriggerModification(e){return this.dispatch(h3({newQuery:e,originalQuery:this.getCurrentQuery()})),this.onUpdateQueryForCorrection(e),await this.fetchFromAPI(await cn(this.getState()),{origin:"mainSearch"})}getStateAfterResponse(e,t,n,r){var i,a;return{...n,query:{q:e,enableQuerySyntax:(a=(i=n.query)==null?void 0:i.enableQuerySyntax)!=null?a:Vn().enableQuerySyntax},search:{...En(),duration:t,response:r,results:r.results}}}getCurrentQuery(){var e;let t=this.getState();return((e=t.query)==null?void 0:e.q)!==void 0?t.query.q:""}get extra(){return this.config.extra}getState(){return this.config.getState()}get dispatch(){return this.config.dispatch}get analyticsAction(){return this.config.analyticsAction}get rejectWithValue(){return this.config.rejectWithValue}};xe("search/prepareForSearchWithQuery",(e,t)=>{let{dispatch:n}=t;Q(e,{q:new de,enableQuerySyntax:new _e,clearFilters:new _e}),e.clearFilters&&(n(Bn()),n(l3())),n(Rc({allow:!0})),n(Tc({q:e.q,enableQuerySyntax:e.enableQuerySyntax})),n(c3(1))});var Le=xe("search/executeSearch",async(e,t)=>{let n=t.getState();I3(n);let{analyticsClientMiddleware:r,preprocessRequest:i,logger:a}=t.extra,{description:o}=await e.prepare({getState:()=>t.getState(),analyticsClientMiddleware:r,preprocessRequest:i,logger:a}),s=await cn(n,o),l=new Qi({...t,analyticsAction:e}),u=await l.fetchFromAPI(s,{origin:"mainSearch"});return await l.process(u)}),Ia=xe("search/fetchPage",async(e,t)=>{let n=t.getState();I3(n);let{analyticsClientMiddleware:r,preprocessRequest:i,logger:a}=t.extra,{description:o}=await e.prepare({getState:()=>t.getState(),analyticsClientMiddleware:r,preprocessRequest:i,logger:a}),s=new Qi({...t,analyticsAction:e}),l=await cn(n,o),u=await s.fetchFromAPI(l,{origin:"mainSearch"});return await s.process(u)}),Jr=xe("search/fetchMoreResults",async(e,t)=>{let n=t.getState(),{analyticsClientMiddleware:r,preprocessRequest:i,logger:a}=t.extra,{description:o}=await c2().prepare({getState:()=>t.getState(),analyticsClientMiddleware:r,preprocessRequest:i,logger:a}),s=new Qi({...t,analyticsAction:c2()}),l=await FO(n,o),u=await s.fetchFromAPI(l,{origin:"mainSearch"});return await s.process(u)}),zc=xe("search/fetchFacetValues",async(e,t)=>{let n=t.getState(),{analyticsClientMiddleware:r,preprocessRequest:i,logger:a}=t.extra,{description:o}=await e.prepare({getState:()=>t.getState(),analyticsClientMiddleware:r,preprocessRequest:i,logger:a}),s=new Qi({...t,analyticsAction:e}),l=await jO(n,o),u=await s.fetchFromAPI(l,{origin:"facetValues"});return await s.process(u)}),Js=xe("search/fetchInstantResults",async(e,t)=>{Q(e,{id:re,q:re,maxResultsPerQuery:new ve({required:!0,min:1}),cacheTimeout:new ve});let{q:n,maxResultsPerQuery:r}=e,i=t.getState(),a=new Qi({...t,analyticsAction:Zx()},u=>{t.dispatch(u3({q:u,id:e.id}))}),o=await DO(i,n,r),s=await a.fetchFromAPI(o,{origin:"instantResults",disableAbortWarning:!0}),l=await a.process(s);return"response"in l?{results:l.response.results,searchUid:l.response.searchUid,analyticsAction:l.analyticsAction}:l}),FO=async(e,t)=>{var n,r,i,a;let o=await cn(e,t);return o.request={...o.request,firstResult:((r=(n=e.pagination)==null?void 0:n.firstResult)!=null?r:0)+((a=(i=e.search)==null?void 0:i.results.length)!=null?a:0)},o},DO=async(e,t,n)=>{let r=await Fc(e);return x3({...r,...e.didYouMean&&{enableDidYouMean:e.didYouMean.enableDidYouMean},numberOfResults:n,q:t})},jO=async(e,t)=>{let n=await cn(e,t);return n.request.numberOfResults=0,n},I3=e=>{var t;e.configuration.analytics.enabled&&Ir.addElement({name:"Query",...((t=e.query)==null?void 0:t.q)&&{value:e.query.q},time:JSON.stringify(new Date)})},PO=e=>t=>n=>{var r,i;let a=(r=n.payload)==null?void 0:r.analyticsAction;a!==void 0&&((i=n.payload)==null||delete i.analyticsAction);let o=t(n);return n.type===Le.fulfilled.type&&a===void 0&&console.error("No analytics action associated with search:",n),n.type===wa.fulfilled&&a===void 0&&console.error("No analytics action associated with recommendation:",n),n.type===Sa.fulfilled&&a===void 0&&console.error("No analytics action associated with product recommendation:",n),a!==void 0&&e.dispatch(a),o};function UO(e){return e.instantlyCallable}var _O=()=>e=>t=>e(UO(t)?t():t),LO=e=>()=>t=>n=>{var r;if(!n.error)return t(n);let i=n.error;if((r=n.payload)!=null&&r.ignored||e.error(i.stack||i.message||i.name||"Error",`Action dispatch error ${n.type}`,n),n.error.name!=="SchemaValidationError")return t(n)},zO=e=>t=>n=>r=>(e.debug({action:r,nextState:t.getState()},`Action dispatched: ${r.type}`),n(r)),E3=()=>({caseAssistId:"",locale:"en-US"}),q3=()=>({status:{loading:!1,error:null,lastResponseId:""},fields:{}}),A3=()=>({}),Vc=Ke(fc()),VO=Ke(YS()),NO=Ke(ZS());Vc.default.extend(NO.default);Vc.default.extend(VO.default);var R3="/rest/search/v2",su="/rest/ua",Ar=()=>({organizationId:"",accessToken:"",platformUrl:u2(),search:{apiBaseUrl:`${u2()}${R3}`,locale:"en-US",timezone:Vc.default.tz.guess(),authenticationProviders:[]},analytics:{enabled:!0,apiBaseUrl:`${nx()}${su}`,originContext:"Search",originLevel2:"default",originLevel3:"default",anonymous:!1,deviceId:"",userDisplayName:"",documentLocation:""}}),M3=()=>({status:{loading:!1,error:null,lastResponseId:""},documents:[]});function to(){return{uniqueId:"",content:"",isLoading:!1,position:-1,resultsWithPreview:[]}}function QO(e={}){return{configuration:Ar(),caseAssistConfiguration:E3(),caseField:q3(),caseInput:A3(),documentSuggestion:M3(),debug:Vi(),version:"unit-testing-version",resultPreview:to(),searchHub:Nn(),...e}}Ke(Mo());var HO=e=>e;function BO(){return{results:[],loading:!1}}var WO=()=>({caseContext:{},caseId:"",caseNumber:""}),lu=()=>({correctedQuery:"",wordCorrections:[],originalQuery:""});function T3(){return{enableDidYouMean:!1,wasCorrectedTo:"",wasAutomaticallyCorrected:!1,queryCorrection:lu(),originalQuery:""}}function Nc(){return{}}var YO=["author","language","urihash","objecttype","collection","source","permanentid"],Qc=()=>({fieldsToInclude:YO,fetchAllFields:!1,fieldsDescription:[]}),ZO=()=>({insightId:""}),JO=()=>({loading:!1,config:void 0}),GO=()=>({});function Hc(){return{}}var F3=()=>({url:"",clientId:"",additionalFields:[],advancedParameters:{debug:!1},products:[],facets:{results:[]},error:null,isLoading:!1,responseId:""}),no=(e=>(e.Relevance="relevance",e.Fields="fields",e))(no||{}),KO=(e=>(e.Ascending="asc",e.Descending="desc",e))(KO||{}),XO=()=>({by:"relevance"});function D3(){return XO()}function eI(e={}){return{configuration:Ar(),productListing:F3(),sort:D3(),facetSearchSet:Nc(),categoryFacetSet:Ui(),categoryFacetSearchSet:Hc(),dateFacetSet:_i(),facetOptions:zo(),facetOrder:Vo(),facetSet:zi(),numericFacetSet:Li(),pagination:qr(),version:"unit-testing-version",context:Er(),...e}}function tI(e={}){return{configuration:Ar(),context:Er(),dictionaryFieldContext:Ni(),searchHub:Nn(),productRecommendations:qc(),version:"unit-testing-version",...e}}function nI(e={}){return{configuration:Ar(),advancedSearchQueries:qn(),context:Er(),dictionaryFieldContext:Ni(),fields:Qc(),searchHub:Nn(),pipeline:Uo(),recommendation:Zr(),debug:Vi(),version:"unit-testing-version",pagination:qr(),...e}}var rI=Ke(Mo()),iI=e=>e,aI=e=>e,oI=e=>e;function sI(e){return new mx({logger:(0,rI.default)({level:"silent"}),preprocessRequest:HO,postprocessSearchResponseMiddleware:iI,postprocessFacetSearchResponseMiddleware:aI,postprocessQuerySuggestResponseMiddleware:oI,...e})}var lI=e=>({past:[],present:e,future:[]});function j3(){return{length:void 0}}var Bc=()=>({enabled:!1,fields:{collection:"foldingcollection",parent:"foldingparent",child:"foldingchild"},filterFieldRange:2,collections:{}}),uu=()=>({liked:!1,disliked:!1,expanded:!1,feedbackModalOpen:!1,relatedQuestions:[]});function P3(){return{queries:[],maxLength:10}}function U3(){return{results:[],maxLength:10}}function _3(){return{}}var L3=()=>({redirectTo:"",query:"",executions:[],notifications:[],queryModification:{originalQuery:"",newQuery:"",queryToIgnore:""}});function z3(e={}){return{configuration:Ar(),advancedSearchQueries:qn(),staticFilterSet:_c(),facetSet:zi(),dateFacetSet:_i(),numericFacetSet:Li(),categoryFacetSet:Ui(),facetSearchSet:Nc(),categoryFacetSearchSet:Hc(),facetOptions:zo(),pagination:qr(),query:Vn(),querySet:Pc(),instantResults:jc(),tabSet:Lc(),querySuggest:{},search:En(),sortCriteria:Uc(),context:Er(),dictionaryFieldContext:Ni(),didYouMean:T3(),fields:Qc(),history:lI(f3()),pipeline:Uo(),facetOrder:Vo(),searchHub:Nn(),debug:Vi(),resultPreview:to(),version:"unit-testing-version",folding:Bc(),triggers:L3(),questionAnswering:uu(),standaloneSearchBoxSet:_3(),recentResults:U3(),recentQueries:P3(),excerptLength:j3(),...e}}function uI(e={}){let t=Hi(e,z3);return{...t,executeFirstSearch:jest.fn(),executeFirstSearchAfterStandaloneSearchBoxRedirect:jest.fn(),apiClient:t.apiClient}}function cI(e={}){return Hi(e,nI)}function dI(e={}){return Hi(e,tI)}function fI(e={}){return Hi(e,eI)}function pI(e={}){return Hi(e,QO)}function Hi(e={},t,n=hI){let r=(0,i$.default)({level:"silent"}),i=p2(e,t),{store:a,apiClient:o}=n(r,i),s=a(i),l=()=>{},{state:u,...d}=e;return{store:s,apiClient:o,state:p2(e,t),subscribe:jest.fn(()=>l),get dispatch(){return s.dispatch},get actions(){return s.getActions()},findAsyncAction(f){let m=this.actions.find(y=>y.type===f.type);return mI(m)?m:void 0},logger:r,addReducers:jest.fn(),enableAnalytics:jest.fn(),disableAnalytics:jest.fn(),...d}}function p2(e,t){let n=e.state||t();return n.configuration.analytics.enabled=!1,n}var hI=e=>{let t={apiClient:sI({logger:e}),validatePayload:Hn,logger:e};return{store:(0,a$.default)([_O,LO(e),PO,Wl.withExtraArgument(t),...Cc(),zO(e)]),apiClient:t.apiClient}};function mI(e){return e?"meta"in e:!1}function V3(e={}){return{urihash:"",parents:"",sfid:"",sfparentid:"",sfinsertedbyid:"",documenttype:"",sfcreatedbyid:"",permanentid:"",date:0,objecttype:"",sourcetype:"",sftitle:"",size:0,sffeeditemid:"",clickableuri:"",sfcreatedby:"",source:"",collection:"",connectortype:"",filetype:"",sfcreatedbyname:"",sflikecount:0,language:[],...e}}function gI(e={}){return{title:"",uri:"",printableUri:"",clickUri:"",uniqueId:"",excerpt:"",firstSentences:"",summary:null,flags:"",hasHtmlVersion:!1,score:0,percentScore:0,rankingInfo:null,isTopResult:!1,isRecommendation:!1,titleHighlights:[],firstSentencesHighlights:[],excerptHighlights:[],printableUriHighlights:[],summaryHighlights:[],absentTerms:[],raw:V3(),...e}}var vI={};dc(vI,{escape:()=>nr,getHighlightedSuggestion:()=>CI,highlightString:()=>yI});function yI(e){if(Zs(e.openingDelimiter)||Zs(e.closingDelimiter))throw Error("delimiters should be a non-empty string");if($e(e.content)||Zs(e.content))return e.content;if(e.highlights.length===0)return nr(e.content);let t=e.content.length,n="",r=0;for(let i=0;i<e.highlights.length;i++){let a=e.highlights[i],o=a.offset,s=o+a.length;if(s>t)break;n+=nr(e.content.slice(r,o)),n+=e.openingDelimiter,n+=nr(e.content.slice(o,s)),n+=e.closingDelimiter,r=s}return r!==t&&(n+=nr(e.content.slice(r))),n}function CI(e,t){return e=nr(e),e.replace(/\[(.*?)\]|\{(.*?)\}|\((.*?)\)/g,(n,r,i,a)=>r?Gs(r,t.notMatchDelimiters):i?Gs(i,t.exactMatchDelimiters):a?Gs(a,t.correctionDelimiters):n)}function Gs(e,t){return t?t.open+e+t.close:e}function nr(e){let t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},n="(?:"+Object.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return r.test(e)?e.replace(i,a=>t[a]):e}var Ks=()=>Ae,N3=()=>re,bI=j("configuration/updateBasicConfiguration",e=>Q(e,{accessToken:Ae,organizationId:Ae,platformUrl:Ae})),Wc=j("configuration/updateSearchConfiguration",e=>Q(e,{apiBaseUrl:Ae,pipeline:new de({required:!1,emptyAllowed:!0}),searchHub:Ae,timezone:Ae,locale:Ae,authenticationProviders:new We({required:!1,each:re})})),SI=j("configuration/updateAnalyticsConfiguration",e=>(Ex()&&(e.enabled=!1),Q(e,{enabled:new _e({default:!0}),originContext:Ks(),originLevel2:Ks(),originLevel3:Ks(),apiBaseUrl:Ae,runtimeEnvironment:new dt,anonymous:new _e({default:!1}),deviceId:Ae,userDisplayName:Ae,documentLocation:Ae}))),wI=j("configuration/analytics/disable"),$I=j("configuration/analytics/enable"),kI=j("configuration/analytics/originlevel2",e=>Q(e,{originLevel2:N3()})),xI=j("configuration/analytics/originlevel3",e=>Q(e,{originLevel3:N3()})),No=(e,t)=>{let n=e;return $e(n[t])?$e(e.raw[t])?null:e.raw[t]:n[t]},OI=e=>t=>e.every(n=>!$e(No(t,n))),II=e=>t=>e.every(n=>$e(No(t,n))),EI=(e,t)=>n=>{let r=Q3(e,n);return t.some(i=>r.some(a=>`${a}`.toLowerCase()===i.toLowerCase()))},qI=(e,t)=>n=>{let r=Q3(e,n);return t.every(i=>r.every(a=>`${a}`.toLowerCase()!==i.toLowerCase()))},Q3=(e,t)=>{let n=No(t,e);return i3(n)?n:[n]},AI={q:new de,enableQuerySyntax:new _e,aq:new de,cq:new de,firstResult:new ve({min:0}),numberOfResults:new ve({min:0}),sortCriteria:new de,f:new ye,cf:new ye,nf:new ye,df:new ye,debug:new _e,sf:new ye,tab:new de},Ct=j("searchParameters/restore",e=>Q(e,AI)),sn=()=>new de({required:!1,emptyAllowed:!0}),RI=j("advancedSearchQueries/update",e=>Q(e,{aq:sn(),cq:sn(),lq:sn(),dq:sn()})),MI=j("advancedSearchQueries/register",e=>Q(e,{aq:sn(),cq:sn(),lq:sn(),dq:sn()}));oe(qn(),e=>{e.addCase(RI,(t,n)=>{let{aq:r,cq:i,lq:a,dq:o}=n.payload;ct(r)||(t.aq=r,t.aqWasSet=!0),ct(i)||(t.cq=i,t.cqWasSet=!0),ct(a)||(t.lq=a,t.lqWasSet=!0),ct(o)||(t.dq=o,t.dqWasSet=!0)}).addCase(MI,(t,n)=>{let{aq:r,cq:i,lq:a,dq:o}=n.payload;ct(r)||(t.defaultFilters.aq=r,t.aqWasSet||(t.aq=r)),ct(i)||(t.defaultFilters.cq=i,t.cqWasSet||(t.cq=i)),ct(a)||(t.defaultFilters.lq=a,t.lqWasSet||(t.lq=a)),ct(o)||(t.defaultFilters.dq=o,t.dqWasSet||(t.dq=o))}).addCase(nt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.advancedSearchQueries)!=null?i:t}).addCase(Ct,(t,n)=>{let{aq:r,cq:i}=n.payload;ct(r)||(t.aq=r,t.aqWasSet=!0),ct(i)||(t.cq=i,t.cqWasSet=!0)})});var H3=new ye({options:{required:!0},values:{articleLanguage:Ae,articlePublishStatus:Ae,articleVersionNumber:Ae,caseId:re,knowledgeArticleId:Ae,name:Ae,permanentId:Ae,resultUrl:Ae,source:Ae,title:re,uriHash:Ae}}),TI=j("insight/attachToCase/setAttachedResults",e=>Q(e,{results:new We({each:H3}),loading:new _e({required:!1,default:!1})})),FI=j("insight/attachToCase/attach",e=>B3(e)),DI=j("insight/attachToCase/detach",e=>B3(e)),B3=e=>$e(e.result.permanentId)&&$e(e.result.uriHash)?{payload:e,error:Qn(new kc("Either permanentId or uriHash is required"))}:Q(e,{result:H3});oe(BO(),e=>{e.addCase(TI,(t,n)=>{var r;let{results:i,loading:a}=n.payload;"results"in t&&((r=t.results)==null?void 0:r.length)>0||(t.results=i,a&&(t.loading=a))}).addCase(FI,(t,n)=>{(!$e(n.payload.result.permanentId)||!$e(n.payload.result.uriHash))&&(t.results=[...t.results,n.payload.result])}).addCase(DI,(t,n)=>{t.results=t.results.filter(r=>jI(r,n.payload.result))})});var jI=(e,t)=>{let n=!$e(e.permanentId)&&(e==null?void 0:e.permanentId)===(t==null?void 0:t.permanentId),r=!$e(e.uriHash)&&(e==null?void 0:e.uriHash)===(t==null?void 0:t.uriHash);return e.caseId!==t.caseId||!n&&!r},PI=j("caseAssistConfiguration/set",e=>Q(e,{caseAssistId:re,locale:Ae}));oe(E3(),e=>{e.addCase(PI,(t,n)=>{t.caseAssistId=n.payload.caseAssistId,t.locale=n.payload.locale})});var UI=j("insight/caseContext/set",e=>{let t=new ye({options:{required:!0}}),n=Q(e,t).error;if(n)return{payload:e,error:n};let r=Object.values(e),i=new We({each:Je}),a=Q(r,i).error;return a?{payload:e,error:a}:{payload:e}}),_I=j("insight/caseId/set",e=>{let t=Q(e,Je).error;return t?{payload:e,error:t}:{payload:e}}),LI=j("insight/caseNumber/set",e=>{let t=Q(e,Je).error;return t?{payload:e,error:t}:{payload:e}});oe(WO(),e=>{e.addCase(UI,(t,n)=>{t.caseContext=n.payload}).addCase(_I,(t,n)=>{t.caseId=n.payload}).addCase(LI,(t,n)=>{t.caseNumber=n.payload})});var W3=e=>Object.keys(e).filter(t=>e[t].value!=="").reduce((t,n)=>({...t,[n]:e[n].value}),{}),zI=j("caseAssist/caseField/register",e=>Q(e,{fieldName:re,fieldValue:Je})),VI=j("caseAssist/caseField/update",e=>Q(e,{fieldName:re,fieldValue:Je})),Xs=xe("caseAssist/classifications/fetch",async(e,{getState:t,rejectWithValue:n,extra:{apiClient:r}})=>{let i=t(),a=await r.getCaseClassifications(await NI(i));return vt(a)?n(a.error):{response:a.success}}),NI=async e=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.platformUrl,caseAssistId:e.caseAssistConfiguration.caseAssistId,...e.configuration.analytics.enabled&&{visitorId:await _t(e.configuration.analytics)},fields:e.caseInput,context:e.caseField?W3(e.caseField.fields):void 0,locale:e.caseAssistConfiguration.locale,debug:e.debug});oe(q3(),e=>{e.addCase(zI,(t,n)=>{let{fieldName:r,fieldValue:i}=n.payload;t.fields[r]={value:i,suggestions:[]}}).addCase(VI,(t,n)=>{let{fieldName:r,fieldValue:i}=n.payload;t.fields[r].value=i}).addCase(Xs.rejected,(t,n)=>{var r;t.status.error=(r=n.payload)!=null?r:null,t.status.loading=!1}).addCase(Xs.fulfilled,(t,n)=>{let r={value:"",suggestions:[]};Object.entries(n.payload.response.fields).forEach(([i,a])=>{t.fields[i]||(t.fields[i]={...r}),t.fields[i].suggestions=a.predictions}),t.status.lastResponseId=n.payload.response.responseId,t.status.error=null,t.status.loading=!1}).addCase(Xs.pending,t=>{t.status.loading=!0})});var QI=j("caseAssist/caseInput/update",e=>Q(e,{fieldName:re,fieldValue:Je}));oe(A3(),e=>{e.addCase(QI,(t,n)=>{t[n.payload.fieldName]={value:n.payload.fieldValue}})});var HI=j("tab/register",e=>{let t=new ye({values:{id:re,expression:Je}});return Q(e,t)}),Y3=j("tab/updateActiveTab",e=>Q(e,re));function BI(e,t){if(/^https:\/\/platform(dev|stg|hipaa)?(-)?(eu|au)?\.cloud\.coveo\.com/.test(e))return e.replace(/^(https:\/\/)platform/,"$1analytics")+su;let n=e.match(new RegExp(`^https://(${t}\\.org)\\.coveo.com`));return n?e.replace(n[1],"analytics.cloud")+su:e}oe(Ar(),e=>e.addCase(bI,(t,n)=>{n.payload.accessToken&&(t.accessToken=n.payload.accessToken),n.payload.organizationId&&(t.organizationId=n.payload.organizationId),n.payload.platformUrl&&(t.platformUrl=n.payload.platformUrl,t.search.apiBaseUrl=`${n.payload.platformUrl}${R3}`,t.analytics.apiBaseUrl=BI(n.payload.platformUrl,t.organizationId))}).addCase(Wc,(t,n)=>{n.payload.apiBaseUrl&&(t.search.apiBaseUrl=n.payload.apiBaseUrl),n.payload.locale&&(t.search.locale=n.payload.locale),n.payload.timezone&&(t.search.timezone=n.payload.timezone),n.payload.authenticationProviders&&(t.search.authenticationProviders=n.payload.authenticationProviders)}).addCase(SI,(t,n)=>{$e(n.payload.enabled)||(!n.payload.enabled&&t.analytics.enabled&&o2(t.analytics),t.analytics.enabled=n.payload.enabled),$e(n.payload.originContext)||(t.analytics.originContext=n.payload.originContext),$e(n.payload.originLevel2)||(t.analytics.originLevel2=n.payload.originLevel2),$e(n.payload.originLevel3)||(t.analytics.originLevel3=n.payload.originLevel3),$e(n.payload.apiBaseUrl)||(t.analytics.apiBaseUrl=n.payload.apiBaseUrl),$e(n.payload.runtimeEnvironment)||(t.analytics.runtimeEnvironment=n.payload.runtimeEnvironment),$e(n.payload.anonymous)||(t.analytics.anonymous=n.payload.anonymous),$e(n.payload.deviceId)||(t.analytics.deviceId=n.payload.deviceId),$e(n.payload.userDisplayName)||(t.analytics.userDisplayName=n.payload.userDisplayName),$e(n.payload.documentLocation)||(t.analytics.documentLocation=n.payload.documentLocation)}).addCase(wI,t=>{t.analytics.enabled=!1,o2(t.analytics)}).addCase($I,t=>{t.analytics.enabled=!0}).addCase(kI,(t,n)=>{t.analytics.originLevel2=n.payload.originLevel2}).addCase(xI,(t,n)=>{t.analytics.originLevel3=n.payload.originLevel3}).addCase(Y3,(t,n)=>{t.analytics.originLevel2=n.payload}).addCase(Ct,(t,n)=>{t.analytics.originLevel2=n.payload.tab||t.analytics.originLevel2}));var WI=new We({each:re,required:!0}),Z3=(e,t)=>(Q(e,re),Oc(t)?Q(t,re):Q(t,WI),{payload:{contextKey:e,contextValue:t}}),YI=j("context/set",e=>{for(let[t,n]of Object.entries(e))Z3(t,n);return{payload:e}}),ZI=j("context/add",e=>Z3(e.contextKey,e.contextValue)),JI=j("context/remove",e=>Q(e,re));oe(Er(),e=>{e.addCase(YI,(t,n)=>{t.contextValues=n.payload}).addCase(ZI,(t,n)=>{t.contextValues[n.payload.contextKey]=n.payload.contextValue}).addCase(JI,(t,n)=>{delete t.contextValues[n.payload]}).addCase(nt.fulfilled,(t,n)=>{!n.payload||(t.contextValues=n.payload.context.contextValues)})});var GI=j("debug/enable"),KI=j("debug/disable");oe(Vi(),e=>{e.addCase(GI,()=>!0).addCase(KI,()=>!1).addCase(Ct,(t,n)=>{var r;return(r=n.payload.debug)!=null?r:t})});oe(n3,e=>e);var XI=j("dictionaryFieldContext/set",e=>{let t=new ye({options:{required:!0}}),n=Q(e,t).error;if(n)return{payload:e,error:n};let r=Object.values(e),i=new We({each:Je}),a=Q(r,i).error;return a?{payload:e,error:a}:{payload:e}}),eE=j("dictionaryFieldContext/add",e=>{let t=new ye({options:{required:!0},values:{field:Je,key:Je}});return Q(e,t)}),tE=j("dictionaryFieldContext/remove",e=>Q(e,Je));oe(Ni(),e=>{e.addCase(XI,(t,n)=>{t.contextValues=n.payload}).addCase(eE,(t,n)=>{let{field:r,key:i}=n.payload;t.contextValues[r]=i}).addCase(tE,(t,n)=>{delete t.contextValues[n.payload]}).addCase(nt.fulfilled,(t,n)=>{!n.payload||(t.contextValues=n.payload.dictionaryFieldContext.contextValues)})});oe(T3(),e=>{e.addCase(iO,t=>{t.enableDidYouMean=!0}).addCase(aO,t=>{t.enableDidYouMean=!1}).addCase(Le.pending,t=>{t.queryCorrection=lu(),t.wasAutomaticallyCorrected=!1,t.wasCorrectedTo=""}).addCase(Le.fulfilled,(t,n)=>{t.queryCorrection=n.payload.response.queryCorrections[0]||lu(),t.originalQuery=n.payload.originalQuery,t.wasAutomaticallyCorrected=n.payload.automaticallyCorrected}).addCase(Dc,(t,n)=>{t.wasCorrectedTo=n.payload})});var el=xe("caseAssist/documentSuggestions/fetch",async(e,{getState:t,rejectWithValue:n,extra:{apiClient:r}})=>{let i=t(),a=await r.getDocumentSuggestions(await nE(i));return vt(a)?n(a.error):{response:a.success}}),nE=async e=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.platformUrl,caseAssistId:e.caseAssistConfiguration.caseAssistId,...e.configuration.analytics.enabled&&{visitorId:await _t(e.configuration.analytics)},fields:e.caseInput,context:e.caseField?W3(e.caseField.fields):void 0,locale:e.caseAssistConfiguration.locale,debug:e.debug});oe(M3(),e=>{e.addCase(el.rejected,(t,n)=>{var r;t.status.error=(r=n.payload)!=null?r:null,t.status.loading=!1}).addCase(el.fulfilled,(t,n)=>{t.documents=n.payload.response.documents,t.status.lastResponseId=n.payload.response.responseId,t.status.error=null,t.status.loading=!1}).addCase(el.pending,t=>{t.status.loading=!0})});var rE=j("excerptLength/set",e=>Q(e,new ve({min:0,required:!0})));oe(j3(),e=>{e.addCase(rE,(t,n)=>{t.length=n.payload})});var Oe=re,iE={state:new dt({required:!0}),numberOfResults:new ve({required:!0,min:0}),value:new de({required:!0,emptyAllowed:!0}),path:new We({required:!0,each:re}),moreValuesAvailable:new _e({required:!1})};function J3(e){e.children.forEach(t=>{J3(t)}),Hn({state:e.state,numberOfResults:e.numberOfResults,value:e.value,path:e.path,moreValuesAvailable:e.moreValuesAvailable},iE)}var aE={facetId:Oe,field:re,delimitingCharacter:new de({required:!1,emptyAllowed:!0}),filterFacetCount:new _e({required:!1}),injectionDepth:new ve({required:!1,min:0}),numberOfValues:new ve({required:!1,min:1}),sortCriteria:new dt({required:!1}),basePath:new We({required:!1,each:re}),filterByBasePath:new _e({required:!1})},G3=j("categoryFacet/register",e=>Q(e,aE)),K3=j("categoryFacet/toggleSelectValue",e=>{try{return Hn(e.facetId,re),J3(e.selection),{payload:e,error:null}}catch(t){return{payload:e,error:Qn(t)}}}),X3=j("categoryFacet/deselectAll",e=>Q(e,Oe)),oE=j("categoryFacet/updateNumberOfValues",e=>Q(e,{facetId:Oe,numberOfValues:new ve({required:!0,min:1})})),sE=j("categoryFacet/updateSortCriterion",e=>Q(e,{facetId:Oe,criterion:new dt})),lE=new ye({options:{required:!1},values:{type:new de({constrainTo:["simple"],emptyAllowed:!1,required:!0}),values:new We({required:!0,max:25,each:new de({emptyAllowed:!1,required:!0})})}}),eh={value:re,numberOfResults:new ve({min:0}),state:re},uE={facetId:Oe,field:new de({required:!0,emptyAllowed:!0}),filterFacetCount:new _e({required:!1}),injectionDepth:new ve({required:!1,min:0}),numberOfValues:new ve({required:!1,min:1}),sortCriteria:new dt({required:!1}),allowedValues:lE},th=j("facet/register",e=>Q(e,uE)),Yc=j("facet/toggleSelectValue",e=>Q(e,{facetId:Oe,selection:new ye({values:eh})})),Qo=j("facet/deselectAll",e=>Q(e,Oe)),cE=j("facet/updateSortCriterion",e=>Q(e,{facetId:Oe,criterion:new dt({required:!0})})),dE=j("facet/updateNumberOfValues",e=>Q(e,{facetId:Oe,numberOfValues:new ve({required:!0,min:1})})),fE=j("facet/updateIsFieldExpanded",e=>Q(e,{facetId:Oe,isFieldExpanded:new _e({required:!0})})),pE=j("facet/updateFreezeCurrentValues",e=>Q(e,{facetId:Oe,freezeCurrentValues:new _e({required:!0})}));function hE(e){var t,n;let r=h2(e.start,e),i=h2(e.end,e),a=(t=e.endInclusive)!=null?t:!1,o=(n=e.state)!=null?n:"idle";return{start:r,end:i,endInclusive:a,state:o}}function h2(e,t){let{dateFormat:n}=t;return CO(e)?(d2(e),yO(e)):typeof e=="string"&&oi(e)?(d2(e),e):(gO(e,n),g3(eo(e,n)))}var nh=j("rangeFacet/updateSortCriterion",e=>Q(e,{facetId:Oe,criterion:new dt({required:!0})})),Ho={state:re,start:new ve({required:!0}),end:new ve({required:!0}),endInclusive:new _e({required:!0}),numberOfResults:new ve({required:!0,min:0})},Bo={start:re,end:re,endInclusive:new _e({required:!0}),state:re,numberOfResults:new ve({required:!0,min:0})},mE=e=>({facetId:Oe,selection:typeof e.start=="string"?new ye({values:Bo}):new ye({values:Ho})}),gE={start:re,end:re,endInclusive:new _e({required:!0}),state:re},vE={facetId:Oe,field:re,currentValues:new We({required:!1,each:new ye({values:gE})}),generateAutomaticRanges:new _e({required:!0}),filterFacetCount:new _e({required:!1}),injectionDepth:new ve({required:!1,min:0}),numberOfValues:new ve({required:!1,min:1}),sortCriteria:new dt({required:!1}),rangeAlgorithm:new dt({required:!1})};function m2(e){return oi(e)?au(e):e}function rh(e){!e.currentValues||e.currentValues.forEach(t=>{let{start:n,end:r}=hE(t);if(eo(m2(n)).isAfter(eo(m2(r))))throw new Error(`The start value is greater than the end value for the date range ${t.start} to ${t.end}`)})}var ih=j("dateFacet/register",e=>{try{return Hn(e,vE),rh(e),{payload:e,error:null}}catch(t){return{payload:e,error:Qn(t)}}}),Zc=j("dateFacet/toggleSelectValue",e=>Q(e,{facetId:Oe,selection:new ye({values:Bo})})),ah=j("dateFacet/updateFacetValues",e=>{try{return Hn(e,{facetId:Oe,values:new We({each:new ye({values:Bo})})}),rh({currentValues:e.values}),{payload:e,error:null}}catch(t){return{payload:e,error:Qn(t)}}}),yE=nh,CE=Qo,bE={state:re,start:new ve({required:!0}),end:new ve({required:!0}),endInclusive:new _e({required:!0})},SE={facetId:Oe,field:re,currentValues:new We({required:!1,each:new ye({values:bE})}),generateAutomaticRanges:new _e({required:!0}),filterFacetCount:new _e({required:!1}),injectionDepth:new ve({required:!1,min:0}),numberOfValues:new ve({required:!1,min:1}),sortCriteria:new dt({required:!1}),rangeAlgorithm:new dt({required:!1})};function oh(e){!e.currentValues||e.currentValues.forEach(({start:t,end:n})=>{if(t>n)throw new Error(`The start value is greater than the end value for the numeric range ${t} to ${n}`)})}var sh=j("numericFacet/register",e=>{try{return Q(e,SE),oh(e),{payload:e,error:null}}catch(t){return{payload:e,error:Qn(t)}}}),Jc=j("numericFacet/toggleSelectValue",e=>Q(e,{facetId:Oe,selection:new ye({values:Ho})})),lh=j("numericFacet/updateFacetValues",e=>{try{return Hn(e,{facetId:Oe,values:new We({each:new ye({values:Ho})})}),oh({currentValues:e.values}),{payload:e,error:null}}catch(t){return{payload:e,error:Qn(t)}}}),wE=nh,$E=Qo,Wo=j("facetOptions/update",e=>Q(e,{freezeFacetOrder:new _e({required:!1})})),kE=j("facetOptions/facet/enable",e=>Q(e,Oe)),Bi=j("facetOptions/facet/disable",e=>Q(e,Oe));oe(zo(),e=>{e.addCase(Wo,(t,n)=>({...t,...n.payload})).addCase(Le.fulfilled,t=>{t.freezeFacetOrder=!1}).addCase(Le.rejected,t=>{t.freezeFacetOrder=!1}).addCase(nt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.facetOptions)!=null?i:t}).addCase(G3,(t,n)=>{t.facets[n.payload.facetId]=Ur()}).addCase(th,(t,n)=>{t.facets[n.payload.facetId]=Ur()}).addCase(ih,(t,n)=>{t.facets[n.payload.facetId]=Ur()}).addCase(sh,(t,n)=>{t.facets[n.payload.facetId]=Ur()}).addCase(kE,(t,n)=>{t.facets[n.payload].enabled=!0}).addCase(Bi,(t,n)=>{t.facets[n.payload].enabled=!1}).addCase(Ct,(t,n)=>{var r,i,a,o;[...Object.keys((r=n.payload.f)!=null?r:{}),...Object.keys((i=n.payload.cf)!=null?i:{}),...Object.keys((a=n.payload.nf)!=null?a:{}),...Object.keys((o=n.payload.df)!=null?o:{})].forEach(s=>{s in t||(t.facets[s]=Ur()),t.facets[s].enabled=!0})})});var Gc={facetId:Oe,captions:new ye({options:{required:!1}}),numberOfValues:new ve({required:!1,min:1}),query:new de({required:!1,emptyAllowed:!0})},xE={path:new We({required:!0,each:re}),displayValue:Je,rawValue:Je,count:new ve({required:!0,min:0})},uh=j("categoryFacet/selectSearchResult",e=>Q(e,{facetId:Oe,value:new ye({values:xE})})),OE=j("categoryFacetSearch/register",e=>Q(e,Gc));function Kc(e,t){var n;let{facetId:r,criterion:i}=t,a=(n=e[r])==null?void 0:n.request;!a||(a.sortCriteria=i)}function la(e){!e||(e.currentValues=e.currentValues.map(t=>({...t,state:"idle"})),e.preventAutoSelect=!0)}function ch(e,t){!e||(e.numberOfValues=t)}function tl(e,t){let n=e[t];!n||(n.request.numberOfValues=n.initialNumberOfValues,n.request.currentValues=[],n.request.preventAutoSelect=!0)}function g2(e,t,n){e.currentValues=IE(t,n),e.numberOfValues=t.length?1:n,e.preventAutoSelect=!0}function IE(e,t){if(!e.length)return[];let n=v2(e[0],t),r=n;for(let i of e.splice(1)){let a=v2(i,t);r.children.push(a),r=a}return r.state="selected",r.retrieveChildren=!0,[n]}function v2(e,t){return{value:e,retrieveCount:t,children:[],state:"idle",retrieveChildren:!1}}oe(Ui(),e=>{e.addCase(G3,(t,n)=>{let r=n.payload,{facetId:i}=r;if(i in t)return;let a=AE(r),o=a.numberOfValues;t[i]={request:a,initialNumberOfValues:o}}).addCase(nt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.categoryFacetSet)!=null?i:t}).addCase(Ct,(t,n)=>{let r=n.payload.cf||{};Object.keys(t).forEach(i=>{let a=t[i].request,o=r[i]||[];(o.length||a.currentValues.length)&&g2(a,o,t[i].initialNumberOfValues)})}).addCase(sE,(t,n)=>{var r;let{facetId:i,criterion:a}=n.payload,o=(r=t[i])==null?void 0:r.request;!o||(o.sortCriteria=a)}).addCase(K3,(t,n)=>{var r;let{facetId:i,selection:a,retrieveCount:o}=n.payload,s=(r=t[i])==null?void 0:r.request;if(!s)return;let{path:l}=a,u=l.slice(0,l.length-1),d=qE(s,u,o);if(d.length){let m=d[0];m.retrieveChildren=!0,m.state="selected",m.children=[];return}let f=dh(a.value,o);f.state="selected",d.push(f),s.numberOfValues=1}).addCase(X3,(t,n)=>{let r=n.payload;tl(t,r)}).addCase(Bn,t=>{Object.keys(t).forEach(n=>tl(t,n))}).addCase(Rc,(t,n)=>Object.keys(t).forEach(r=>{t[r].request.preventAutoSelect=!n.payload.allow})).addCase(oE,(t,n)=>{var r;let{facetId:i,numberOfValues:a}=n.payload,o=(r=t[i])==null?void 0:r.request;if(o){if(!o.currentValues.length)return ch(o,a);RE(t,n.payload)}}).addCase(uh,(t,n)=>{let{facetId:r,value:i}=n.payload,a=t[r];if(!a)return;let o=[...i.path,i.rawValue];g2(a.request,o,a.initialNumberOfValues)}).addCase(zc.fulfilled,(t,n)=>{y2(t,n.payload.response.facets)}).addCase(Le.fulfilled,(t,n)=>{y2(t,n.payload.response.facets)}).addCase(Bi,(t,n)=>{tl(t,n.payload)})});var EE={delimitingCharacter:";",filterFacetCount:!0,injectionDepth:1e3,numberOfValues:5,sortCriteria:"occurrences",basePath:[],filterByBasePath:!0};function qE(e,t,n){let r=e.currentValues;for(let i of t){let a=r[0];(!a||i!==a.value)&&(a=dh(i,n),r.length=0,r.push(a)),a.retrieveChildren=!1,a.state="idle",r=a.children}return r}function AE(e){return{...EE,currentValues:[],preventAutoSelect:!1,type:"hierarchical",...e}}function dh(e,t){return{value:e,state:"idle",children:[],retrieveChildren:!0,retrieveCount:t}}function y2(e,t){t.forEach(n=>{var r;if(!ME(e,n))return;let i=n.facetId,a=(r=e[i])==null?void 0:r.request;if(!a)return;let o=TE(a,n);a.currentValues=o?[]:a.currentValues,a.preventAutoSelect=!1})}function RE(e,t){var n;let{facetId:r,numberOfValues:i}=t,a=(n=e[r])==null?void 0:n.request.currentValues[0];if(a){for(;a.children.length&&(a==null?void 0:a.state)!=="selected";)a=a.children[0];a.retrieveCount=i}}function ME(e,t){return t.facetId in e}function TE(e,t){let n=ai(e.currentValues).parents,r=ai(t.values).parents;return n.length!==r.length}oe(Vo(),e=>{e.addCase(Le.fulfilled,(t,n)=>n.payload.response.facets.map(r=>r.facetId)).addCase(nt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.facetOrder)!=null?i:t})});function fh(e,t,n){let{facetId:r}=t;if(e[r])return;let i=!1,a={...yh,...t},o=n();e[r]={options:a,isLoading:i,response:o,initialNumberOfValues:a.numberOfValues,requestId:""}}function ph(e,t){let{facetId:n,...r}=t,i=e[n];!i||(i.options={...i.options,...r})}function hh(e,t,n){let r=e[t];!r||(r.requestId=n,r.isLoading=!0)}function mh(e,t){let n=e[t];!n||(n.isLoading=!1)}function gh(e,t,n){let{facetId:r,response:i}=t,a=e[r];!a||a.requestId===n&&(a.isLoading=!1,a.response=i)}function Xc(e,t,n){let{facetId:r}=t,i=e[r];!i||(i.requestId="",i.isLoading=!1,i.response=n(),i.options.numberOfValues=i.initialNumberOfValues,i.options.query=yh.query)}function vh(e,t){Object.keys(e).forEach(n=>Xc(e,{facetId:n},t))}var yh={captions:{},numberOfValues:10,query:""},FE=async(e,t,n)=>{let r=t.categoryFacetSearchSet[e].options,i=t.categoryFacetSet[e].request,{captions:a,query:o,numberOfValues:s}=r,{field:l,delimitingCharacter:u,basePath:d,filterFacetCount:f}=i,m=DE(i),y=m.length?[m]:[],g=`*${o}*`;return{url:t.configuration.search.apiBaseUrl,accessToken:t.configuration.accessToken,organizationId:t.configuration.organizationId,...t.configuration.search.authenticationProviders.length&&{authentication:t.configuration.search.authenticationProviders.join(",")},basePath:d,captions:a,numberOfValues:s,query:g,field:l,delimitingCharacter:u,ignorePaths:y,filterFacetCount:f,type:"hierarchical",...n?{}:{searchContext:(await cn(t)).request}}},DE=e=>{let t=[],n=e.currentValues[0];for(;n;)t.push(n.value),n=n.children[0];return t},jE=async(e,t,n)=>{let{captions:r,query:i,numberOfValues:a}=t.facetSearchSet[e].options,{field:o,currentValues:s,filterFacetCount:l}=t.facetSet[e].request,u=s.filter(f=>f.state!=="idle").map(f=>f.value),d=`*${i}*`;return{url:t.configuration.search.apiBaseUrl,accessToken:t.configuration.accessToken,organizationId:t.configuration.organizationId,...t.configuration.search.authenticationProviders&&{authentication:t.configuration.search.authenticationProviders.join(",")},captions:r,numberOfValues:a,query:d,field:o,ignoreValues:u,filterFacetCount:l,type:"specific",...n?{}:{searchContext:(await cn(t)).request}}},Ch=e=>async(t,{getState:n,extra:{apiClient:r,validatePayload:i}})=>{let a=n(),o;i(t,re),PE(a,t)?o=await jE(t,a,e):o=await FE(t,a,e);let s=await r.facetSearch(o);return{facetId:t,response:s}},yr=xe("facetSearch/executeSearch",Ch(!1));xe("facetSearch/executeSearch",Ch(!0));var bh=j("facetSearch/clearResults",e=>Q(e,{facetId:Oe})),PE=(e,t)=>e.facetSearchSet!==void 0&&e.facetSet!==void 0&&e.facetSet[t]!==void 0,UE={facetId:Oe,value:new ye({values:{displayValue:Je,rawValue:Je,count:new ve({required:!0,min:0})}})},_E=j("facetSearch/register",e=>Q(e,Gc)),Sh=j("facetSearch/update",e=>Q(e,Gc)),wh=j("facetSearch/toggleSelectValue",e=>Q(e,UE));oe(Hc(),e=>{e.addCase(OE,(t,n)=>{let r=n.payload;fh(t,r,nl)}).addCase(Sh,(t,n)=>{ph(t,n.payload)}).addCase(yr.pending,(t,n)=>{let r=n.meta.arg;hh(t,r,n.meta.requestId)}).addCase(yr.rejected,(t,n)=>{let r=n.meta.arg;mh(t,r)}).addCase(yr.fulfilled,(t,n)=>{gh(t,n.payload,n.meta.requestId)}).addCase(bh,(t,{payload:{facetId:n}})=>{Xc(t,{facetId:n},nl)}).addCase(Le.fulfilled,t=>{vh(t,nl)})});function nl(){return{moreValuesAvailable:!1,values:[]}}oe(Nc(),e=>{e.addCase(_E,(t,n)=>{let r=n.payload;fh(t,r,rl)}).addCase(Sh,(t,n)=>{ph(t,n.payload)}).addCase(yr.pending,(t,n)=>{let r=n.meta.arg;hh(t,r,n.meta.requestId)}).addCase(yr.rejected,(t,n)=>{let r=n.meta.arg;mh(t,r)}).addCase(yr.fulfilled,(t,n)=>{gh(t,n.payload,n.meta.requestId)}).addCase(bh,(t,{payload:n})=>{Xc(t,n,rl)}).addCase(Le.fulfilled,t=>{vh(t,rl)})});function rl(){return{moreValuesAvailable:!1,values:[]}}var LE=j("productlisting/setUrl",e=>Q(e,{url:new de({required:!0,url:!0})})),zE=j("productlisting/setAdditionalFields",e=>Q(e,{additionalFields:new We({required:!0,each:new de({required:!0,emptyAllowed:!1})})})),An=xe("productlisting/fetch",async(e,{getState:t,dispatch:n,rejectWithValue:r,extra:i})=>{let a=t(),{apiClient:o}=i,s=await o.getProducts(await VE(a));return vt(s)?(n(xa(s.error)),r(s.error)):{response:s.success}}),VE=async e=>{var t,n,r;let i=QE(e),a=await _t(e.configuration.analytics);return{accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,platformUrl:e.configuration.platformUrl,url:(t=e.productListing)==null?void 0:t.url,...e.configuration.analytics.enabled&&a?{clientId:a}:{},...(n=e.productListing.additionalFields)!=null&&n.length?{additionalFields:e.productListing.additionalFields}:{},...e.productListing.advancedParameters&&NE(e.productListing.advancedParameters)?{advancedParameters:e.productListing.advancedParameters||{}}:{},...i.length&&{facets:{requests:i}},...e.pagination&&{pagination:{numberOfValues:e.pagination.numberOfResults,page:Math.ceil(e.pagination.firstResult/(e.pagination.numberOfResults||1))+1}},...(((r=e.sort)==null?void 0:r.by)||no.Relevance)!==no.Relevance&&{sort:e.sort},...e.context&&{userContext:e.context.contextValues}}};function NE(e){return e.debug}function QE(e){var t;return O3(HE(e),(t=e.facetOrder)!=null?t:[])}function HE(e){var t,n,r,i;return[...wn((t=e.facetSet)!=null?t:{}),...wn((n=e.numericFacetSet)!=null?n:{}),...wn((r=e.dateFacetSet)!=null?r:{}),...wn((i=e.categoryFacetSet)!=null?i:{})]}oe(zi(),e=>{e.addCase(th,(t,n)=>{let{facetId:r}=n.payload;r in t||(t[r]=qk(WE(n.payload)))}).addCase(nt.fulfilled,(t,n)=>{if(n.payload&&Object.keys(n.payload.facetSet).length!==0)return n.payload.facetSet}).addCase(Ct,(t,n)=>{let r=n.payload.f||{};Object.keys(t).forEach(i=>{let{request:a}=t[i],o=r[i]||[],s=a.currentValues.filter(l=>!o.includes(l.value));a.currentValues=[...o.map(b2),...s.map(ZE)],a.preventAutoSelect=o.length>0,a.numberOfValues=Math.max(o.length,a.numberOfValues)})}).addCase(Yc,(t,n)=>{var r;let{facetId:i,selection:a}=n.payload,o=(r=t[i])==null?void 0:r.request;if(!o)return;o.preventAutoSelect=!0;let s=o.currentValues.find(u=>u.value===a.value);if(!s){C2(o,a);return}let l=s.state==="selected";s.state=l?"idle":"selected",o.freezeCurrentValues=!0}).addCase(pE,(t,n)=>{var r;let{facetId:i,freezeCurrentValues:a}=n.payload,o=(r=t[i])==null?void 0:r.request;!o||(o.freezeCurrentValues=a)}).addCase(Qo,(t,n)=>{var r;la((r=t[n.payload])==null?void 0:r.request)}).addCase(Bn,t=>{Object.values(t).filter(n=>n.hasBreadcrumbs).forEach(({request:n})=>la(n))}).addCase(l3,t=>{Object.values(t).filter(n=>!n.hasBreadcrumbs).forEach(({request:n})=>la(n))}).addCase(Rc,(t,n)=>Object.values(t).forEach(r=>{r.request.preventAutoSelect=!n.payload.allow})).addCase(cE,(t,n)=>{Kc(t,n.payload)}).addCase(dE,(t,n)=>{var r;let{facetId:i,numberOfValues:a}=n.payload;ch((r=t[i])==null?void 0:r.request,a)}).addCase(fE,(t,n)=>{var r;let{facetId:i,isFieldExpanded:a}=n.payload,o=(r=t[i])==null?void 0:r.request;!o||(o.isFieldExpanded=a)}).addCase(Le.fulfilled,(t,n)=>{n.payload.response.facets.forEach(r=>{var i;return il((i=t[r.facetId])==null?void 0:i.request,r)})}).addCase(An.fulfilled,(t,n)=>{var r,i;(((i=(r=n.payload.response)==null?void 0:r.facets)==null?void 0:i.results)||[]).forEach(a=>{var o;return il((o=t[a.facetId])==null?void 0:o.request,a)})}).addCase(zc.fulfilled,(t,n)=>{n.payload.response.facets.forEach(r=>{var i;return il((i=t[r.facetId])==null?void 0:i.request,r)})}).addCase(wh,(t,n)=>{var r;let{facetId:i,value:a}=n.payload,o=(r=t[i])==null?void 0:r.request;if(!o)return;let{rawValue:s}=a,{currentValues:l}=o,u=l.find(f=>f.value===s);if(u){u.state="selected";return}let d=b2(s);C2(o,d),o.freezeCurrentValues=!0,o.preventAutoSelect=!0}).addCase(Bi,(t,n)=>{if(!(n.payload in t))return;let{request:r}=t[n.payload];la(r)})});function C2(e,t){let{currentValues:n}=e,r=n.findIndex(s=>s.state==="idle"),i=r===-1?n.length:r,a=n.slice(0,i),o=n.slice(i+1);e.currentValues=[...a,t,...o],e.numberOfValues=e.currentValues.length}function il(e,t){!e||(e.currentValues=t.values.map(YE),e.freezeCurrentValues=!1,e.preventAutoSelect=!1)}var BE={filterFacetCount:!0,injectionDepth:1e3,numberOfValues:8,sortCriteria:"automatic"};function WE(e){return{...BE,type:"specific",currentValues:[],freezeCurrentValues:!1,isFieldExpanded:!1,preventAutoSelect:!1,...e}}function YE(e){let{value:t,state:n}=e;return{value:t,state:n}}function b2(e){return{value:e,state:"selected"}}function ZE(e){return{...e,state:"idle"}}var $h={filterFacetCount:!0,injectionDepth:1e3,numberOfValues:8,sortCriteria:"ascending",rangeAlgorithm:"even"};function kh(e,t){let{request:n}=t,{facetId:r}=n;if(r in e)return;let i=Eh(n);n.numberOfValues=i,e[r]=t}function xh(e,t,n){var r;let i=(r=e[t])==null?void 0:r.request;!i||(i.currentValues=n,i.numberOfValues=Eh(i))}function Oh(e,t,n){var r;let i=(r=e[t])==null?void 0:r.request;if(!i)return;let a=cu(i.currentValues,n);if(!a)return;let o=a.state==="selected";a.state=o?"idle":"selected",i.preventAutoSelect=!0}function Cr(e,t){var n;let r=(n=e[t])==null?void 0:n.request;!r||r.currentValues.forEach(i=>i.state="idle")}function Ih(e,t){Object.entries(e).forEach(([n,{request:r}])=>{let i=t[n]||[];r.currentValues.forEach(s=>{let l=!!cu(i,s);return s.state=l?"selected":"idle",s});let a=i.filter(s=>!cu(r.currentValues,s)),o=r.currentValues;o.push(...a),r.numberOfValues=Math.max(r.numberOfValues,o.length)})}function ro(e,t,n){t.forEach(r=>{var i;let a=r.facetId,o=(i=e[a])==null?void 0:i.request;if(!o)return;let s=n(r.values);o.currentValues=s,o.preventAutoSelect=!1})}function cu(e,t){let{start:n,end:r}=t;return e.find(i=>i.start===n&&i.end===r)}function Eh(e){let{generateAutomaticRanges:t,currentValues:n,numberOfValues:r}=e;return t?Math.max(r,n.length):n.length}oe(_i(),e=>{e.addCase(ih,(t,n)=>{let{payload:r}=n,i=JE(r);kh(t,Ik(i))}).addCase(nt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.dateFacetSet)!=null?i:t}).addCase(Ct,(t,n)=>{let r=n.payload.df||{};Ih(t,r)}).addCase(Zc,(t,n)=>{let{facetId:r,selection:i}=n.payload;Oh(t,r,i)}).addCase(ah,(t,n)=>{let{facetId:r,values:i}=n.payload;xh(t,r,i)}).addCase(CE,(t,n)=>{Cr(t,n.payload)}).addCase(Bn,t=>{Object.keys(t).forEach(n=>{Cr(t,n)})}).addCase(yE,(t,n)=>{Kc(t,n.payload)}).addCase(Le.fulfilled,(t,n)=>{let r=n.payload.response.facets;ro(t,r,S2)}).addCase(An.fulfilled,(t,n)=>{var r,i;let a=((i=(r=n.payload.response)==null?void 0:r.facets)==null?void 0:i.results)||[];ro(t,a,S2)}).addCase(Bi,(t,n)=>{Cr(t,n.payload)})});function JE(e){return{...$h,currentValues:[],preventAutoSelect:!1,type:"dateRange",...e}}function S2(e){return e.map(t=>{let{numberOfResults:n,...r}=t;return r})}oe(Li(),e=>{e.addCase(sh,(t,n)=>{let{payload:r}=n,i=GE(r);kh(t,Ek(i))}).addCase(nt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.numericFacetSet)!=null?i:t}).addCase(Ct,(t,n)=>{let r=n.payload.nf||{};Ih(t,r)}).addCase(Jc,(t,n)=>{let{facetId:r,selection:i}=n.payload;Oh(t,r,i)}).addCase(lh,(t,n)=>{let{facetId:r,values:i}=n.payload;xh(t,r,i)}).addCase($E,(t,n)=>{Cr(t,n.payload)}).addCase(Bn,t=>{Object.keys(t).forEach(n=>{Cr(t,n)})}).addCase(wE,(t,n)=>{Kc(t,n.payload)}).addCase(Le.fulfilled,(t,n)=>{let r=n.payload.response.facets;ro(t,r,w2)}).addCase(An.fulfilled,(t,n)=>{var r,i;let a=((i=(r=n.payload.response)==null?void 0:r.facets)==null?void 0:i.results)||[];ro(t,a,w2)}).addCase(Bi,(t,n)=>{Cr(t,n.payload)})});function GE(e){return{...$h,currentValues:[],preventAutoSelect:!1,type:"numericalRange",...e}}function w2(e){return e.map(t=>{let{numberOfResults:n,...r}=t;return r})}var KE={collectionField:new de({emptyAllowed:!1,required:!1}),parentField:new de({emptyAllowed:!1,required:!1}),childField:new de({emptyAllowed:!1,required:!1}),numberOfFoldedResults:new ve({min:0,required:!1})},qh=j("folding/register",e=>Q(e,KE)),al=xe("folding/loadCollection",async(e,{getState:t,rejectWithValue:n,extra:{apiClient:r}})=>{let i=t(),a=await Fc(i),o=await r.search({...a,q:XE(i),enableQuerySyntax:!0,cq:`@${i.folding.fields.collection}="${e}"`,filterField:i.folding.fields.collection,childField:i.folding.fields.parent,parentField:i.folding.fields.child,filterFieldRange:100},{origin:"foldingCollection"});return vt(o)?n(o.error):{collectionId:e,results:o.success.results,rootResult:i.folding.collections[e].result}});function XE(e){return e.query.q===""?"":e.query.enableQuerySyntax?`${e.query.q} OR @uri`:`( <@- ${e.query.q} -@> ) OR @uri`}Gt("analytics/folding/showLess",Lt.Custom,e=>e.makeShowLessFoldedResults());var eq=new We({each:re,required:!0}),tq=j("fields/registerFieldsToInclude",e=>Q(e,eq)),nq=j("fields/fetchall/enable"),rq=j("fields/fetchall/disable"),iq=xe("fields/fetchDescription",async(e,{extra:t,getState:n,rejectWithValue:r})=>{let i=n(),{accessToken:a,organizationId:o}=i.configuration,{apiBaseUrl:s}=i.configuration.search,l=await t.apiClient.fieldDescriptions({accessToken:a,organizationId:o,url:s});return vt(l)?r(l.error):l.success.fields});oe(Qc(),e=>e.addCase(tq,(t,n)=>{t.fieldsToInclude=[...new Set(t.fieldsToInclude.concat(n.payload))]}).addCase(nq,t=>{t.fetchAllFields=!0}).addCase(rq,t=>{t.fetchAllFields=!1}).addCase(iq.fulfilled,(t,{payload:n})=>{t.fieldsDescription=n}).addCase(qh,(t,{payload:n})=>{var r,i,a;let o=Bc().fields;t.fieldsToInclude.push((r=n.collectionField)!=null?r:o.collection,(i=n.parentField)!=null?i:o.parent,(a=n.childField)!=null?a:o.child)}));function aq(e,t){return e.raw[t.collection]}function du(e,t){return e.raw[t.parent]}function Gr(e,t){let n=e.raw[t.child];return i3(n)?n[0]:n}function oq(e,t){return(e||t)!==void 0&&e===t}function Ah(e,t,n,r=[]){let i=Gr(e,n);return i?r.indexOf(i)!==-1?[]:t.filter(a=>{let o=Gr(a,n)===Gr(e,n);return du(a,n)===i&&!o}).map(a=>({result:a,children:Ah(a,t,n,[...r,i])})):[]}function sq(e,t){return e.find(n=>{let r=du(n,t)===void 0,i=oq(du(n,t),Gr(n,t));return r||i})}function Rh(e){return e.parentResult?Rh(e.parentResult):e}function lq(e,t,n){var r;let i=qx(e),a=(r=n!=null?n:sq(i,t))!=null?r:Rh(e);return{result:a,children:Ah(a,i,t),moreResultsAvailable:!0,isLoadingMoreResults:!1}}function ua(e,t,n){let r={};return e.forEach(i=>{let a=aq(i,t);!a||!Gr(i,t)&&!i.parentResult||(r[a]=lq(i,t,n))}),r}function $2(e,t){if(!e.collections[t])throw new Error(`Missing collection ${t} from ${Object.keys(e.collections)}: Folding most probably in an invalid state...`);return e.collections[t]}oe(Bc(),e=>e.addCase(Le.fulfilled,(t,{payload:n})=>{t.collections=t.enabled?ua(n.response.results,t.fields):{}}).addCase(Ia.fulfilled,(t,{payload:n})=>{t.collections=t.enabled?ua(n.response.results,t.fields):{}}).addCase(Jr.fulfilled,(t,{payload:n})=>{t.collections=t.enabled?{...t.collections,...ua(n.response.results,t.fields)}:{}}).addCase(qh,(t,{payload:n})=>{var r,i,a,o;return t.enabled?t:{enabled:!0,collections:{},fields:{collection:(r=n.collectionField)!=null?r:t.fields.collection,parent:(i=n.parentField)!=null?i:t.fields.parent,child:(a=n.childField)!=null?a:t.fields.child},filterFieldRange:(o=n.numberOfFoldedResults)!=null?o:t.filterFieldRange}}).addCase(al.pending,(t,{meta:n})=>{let r=n.arg;$2(t,r).isLoadingMoreResults=!0}).addCase(al.rejected,(t,{meta:n})=>{let r=n.arg;$2(t,r).isLoadingMoreResults=!1}).addCase(al.fulfilled,(t,{payload:{collectionId:n,results:r,rootResult:i}})=>{let a=ua(r,t.fields,i);if(!a||!a[n])throw new Error(`Unable to create collection ${n} from received results: ${JSON.stringify(r)}. Folding most probably in an invalid state... `);t.collections[n]=a[n],t.collections[n].moreResultsAvailable=!1}));var uq=Ke(JS());function cq(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.findIndex((r,i)=>!n(t[i],r))===-1}(0,uq.createCustomEqual)(e=>(t,n)=>Array.isArray(t)&&Array.isArray(n)?t.length!==n.length?!1:t.every(r=>n.findIndex(i=>e(r,i))!==-1):e(t,n));oe(f3(),e=>{e.addCase($a,(t,n)=>dq(t,n.payload)?void 0:n.payload)});var dq=(e,t)=>fq(e.context,t.context)&&pq(e.dictionaryFieldContext,t.dictionaryFieldContext)&&Cq(e.advancedSearchQueries,t.advancedSearchQueries)&&hq(e.tabSet,t.tabSet)&&mq(e.staticFilterSet,t.staticFilterSet)&&ol(e.facetSet,t.facetSet)&&ol(e.dateFacetSet,t.dateFacetSet)&&ol(e.numericFacetSet,t.numericFacetSet)&&gq(e.categoryFacetSet,t.categoryFacetSet)&&vq(e.pagination,t.pagination)&&yq(e.query,t.query)&&bq(e,t)&&Sq(e.pipeline,t.pipeline)&&wq(e.searchHub,t.searchHub)&&$q(e.facetOrder,t.facetOrder)&&kq(e.debug,t.debug),fq=(e,t)=>JSON.stringify(e.contextValues)===JSON.stringify(t.contextValues),pq=(e,t)=>JSON.stringify(e.contextValues)===JSON.stringify(t.contextValues),hq=(e,t)=>{let n=k2(e),r=k2(t);return(n==null?void 0:n.id)===(r==null?void 0:r.id)},k2=e=>Object.values(e).find(t=>t.isActive),mq=(e,t)=>{for(let[n,r]of Object.entries(t)){if(!e[n])return!1;let i=x2(e[n]),a=x2(r);if(JSON.stringify(i)!==JSON.stringify(a))return!1}return!0},x2=e=>e.values.filter(t=>t.state!=="idle"),ol=(e,t)=>{for(let[n,r]of Object.entries(t)){if(!e[n])return!1;let i=e[n].request.currentValues.filter(o=>o.state==="selected"),a=r.request.currentValues.filter(o=>o.state==="selected");if(JSON.stringify(i)!==JSON.stringify(a))return!1}return!0},gq=(e,t)=>{var n;for(let[r,i]of Object.entries(t)){if(!e[r])return!1;let a=ai((n=e[r])==null?void 0:n.request.currentValues).parents.map(({value:s})=>s),o=ai(i==null?void 0:i.request.currentValues).parents.map(({value:s})=>s);if(JSON.stringify(a)!==JSON.stringify(o))return!1}return!0},vq=(e,t)=>e.firstResult===t.firstResult&&e.numberOfResults===t.numberOfResults,yq=(e,t)=>JSON.stringify(e)===JSON.stringify(t),Cq=(e,t)=>JSON.stringify(e)===JSON.stringify(t),bq=(e,t)=>e.sortCriteria===t.sortCriteria,Sq=(e,t)=>e===t,wq=(e,t)=>e===t,$q=(e,t)=>cq(e,t),kq=(e,t)=>e===t,xq=j("insightConfiguration/set",e=>Q(e,{insightId:re}));oe(ZO(),e=>{e.addCase(xq,(t,n)=>{t.insightId=n.payload.insightId})});var Mh=j("searchHub/set",e=>Q(e,new de({required:!0,emptyAllowed:!0}))),sl=xe("insight/interface/fetch",async(e,{getState:t,dispatch:n,rejectWithValue:r,extra:{apiClient:i}})=>{let a=t(),o=await i.getInterface(Oq(a));return vt(o)?r(o.error):(n(Mh(o.success.searchHub)),{response:o.success})}),Oq=e=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.platformUrl,insightId:e.insightConfiguration.insightId});oe(JO(),e=>{e.addCase(sl.pending,t=>{t.loading=!0,t.error=void 0}).addCase(sl.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(sl.fulfilled,(t,n)=>{t.loading=!1,t.error=void 0;let{searchHub:r,...i}=n.payload.response;t.config=i})});oe(jc(),e=>{e.addCase(Gx,(t,n)=>{let{id:r}=n.payload;t[r]||(t[r]={q:"",cache:{}})}),e.addCase(u3,(t,n)=>{let{q:r,id:i}=n.payload;!r||(t[i].q=r)}),e.addCase(Kx,(t,n)=>{let{id:r}=n.payload;Object.entries(t[r].cache).forEach(([i,a])=>{uO(a)&&delete t[r].cache[i]})}),e.addCase(Js.pending,(t,n)=>{for(let i in t)for(let a in t[i].cache)t[i].cache[a].isActive=!1;if(!ca(t,n.meta)){Iq(t,n.meta);return}let r=ca(t,n.meta);r.isLoading=!0,r.isActive=!0,r.error=null}),e.addCase(Js.fulfilled,(t,n)=>{let{results:r,searchUid:i}=n.payload,{cacheTimeout:a}=n.meta.arg,o=ca(t,n.meta);o.isActive=!0,o.searchUid=i,o.isLoading=!1,o.error=null,o.results=r,o.expiresAt=a?a+Date.now():0}),e.addCase(Js.rejected,(t,n)=>{let r=ca(t,n.meta);r.error=n.error||null,r.isLoading=!1,r.isActive=!1})});var Iq=(e,t)=>{let{q:n,id:r}=t.arg;e[r].cache[n]={isLoading:!0,error:null,results:[],expiresAt:0,isActive:!0,searchUid:""}},ca=(e,t)=>{let{q:n,id:r}=t.arg;return e[r].cache[n]||null};oe(qr(),e=>{e.addCase(Xx,(t,n)=>{let r=ll(t),i=n.payload;t.defaultNumberOfResults=t.numberOfResults=i,t.firstResult=_r(r,i)}).addCase(eO,(t,n)=>{t.numberOfResults=n.payload,t.firstResult=0}).addCase(tO,(t,n)=>{let r=n.payload;t.firstResult=_r(r,t.numberOfResults)}).addCase(c3,(t,n)=>{let r=n.payload;t.firstResult=_r(r,t.numberOfResults)}).addCase(rO,t=>{let n=ll(t),r=Math.max(n-1,EO);t.firstResult=_r(r,t.numberOfResults)}).addCase(nO,t=>{let n=ll(t),r=Eq(t),i=Math.min(n+1,r);t.firstResult=_r(i,t.numberOfResults)}).addCase(nt.fulfilled,(t,n)=>{n.payload&&(t.numberOfResults=n.payload.pagination.numberOfResults,t.firstResult=n.payload.pagination.firstResult)}).addCase(Ct,(t,n)=>{var r,i;t.firstResult=(r=n.payload.firstResult)!=null?r:t.firstResult,t.numberOfResults=(i=n.payload.numberOfResults)!=null?i:t.defaultNumberOfResults}).addCase(Le.fulfilled,(t,n)=>{let{response:r}=n.payload;t.totalCountFiltered=r.totalCountFiltered}).addCase(An.fulfilled,(t,n)=>{let{response:r}=n.payload;t.totalCountFiltered=r.pagination.totalCount}).addCase(Qo,t=>{At(t)}).addCase(Yc,t=>{At(t)}).addCase(X3,t=>{At(t)}).addCase(K3,t=>{At(t)}).addCase(uh,t=>{At(t)}).addCase(Zc,t=>{At(t)}).addCase(Jc,t=>{At(t)}).addCase(Bn,t=>{At(t)}).addCase(ah,t=>{At(t)}).addCase(lh,t=>{At(t)}).addCase(wh,t=>{At(t)})});function At(e){e.firstResult=qr().firstResult}function ll(e){let{firstResult:t,numberOfResults:n}=e;return qq(t,n)}function Eq(e){let{totalCountFiltered:t,numberOfResults:n}=e;return Aq(t,n)}function _r(e,t){return(e-1)*t}function qq(e,t){return Math.round(e/t)+1}function Aq(e,t){let n=Math.min(e,ou);return Math.ceil(n/t)}var Rq=j("pipeline/set",e=>Q(e,new de({required:!0,emptyAllowed:!0})));oe(Uo(),e=>{e.addCase(Rq,(t,n)=>n.payload).addCase(nt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.pipeline)!=null?i:t}).addCase(Wc,(t,n)=>n.payload.pipeline||t)});oe(F3(),e=>{e.addCase(LE,(t,n)=>{t.url=n.payload.url}).addCase(zE,(t,n)=>{t.additionalFields=n.payload.additionalFields}).addCase(An.rejected,(t,n)=>{t.error=n.payload?n.payload:null,t.isLoading=!1}).addCase(An.fulfilled,(t,n)=>{t.error=null,t.facets=n.payload.response.facets,t.products=n.payload.response.products,t.responseId=n.payload.response.responseId,t.isLoading=!1}).addCase(An.pending,t=>{t.isLoading=!0})});oe(qc(),e=>{e.addCase(Px,(t,n)=>{t.id=n.payload.id}).addCase(Ux,(t,n)=>{t.skus=n.payload.skus}).addCase(_x,(t,n)=>{t.filter.brand=n.payload.brand}).addCase(Lx,(t,n)=>{t.filter.category=n.payload.category}).addCase(Vx,(t,n)=>{t.maxNumberOfRecommendations=n.payload.number}).addCase(zx,(t,n)=>{t.additionalFields=n.payload.additionalFields}).addCase(Sa.rejected,(t,n)=>{t.error=n.payload?n.payload:null,t.isLoading=!1}).addCase(Sa.fulfilled,(t,n)=>{t.error=null,t.searchUid=n.payload.searchUid,t.recommendations=n.payload.recommendations,t.isLoading=!1}).addCase(Sa.pending,t=>{t.isLoading=!0})});var Wi={id:re},Mq=j("querySuggest/register",e=>Q(e,{...Wi,count:new ve({min:0})})),Tq=j("querySuggest/unregister",e=>Q(e,Wi)),Th=j("querySuggest/selectSuggestion",e=>Q(e,{...Wi,expression:Je})),Fq=j("querySuggest/clear",e=>Q(e,Wi)),ul=xe("querySuggest/fetch",async(e,{getState:t,rejectWithValue:n,extra:{apiClient:r,validatePayload:i}})=>{i(e,Wi);let a=e.id,o=await Dq(a,t()),s=await r.querySuggest(o);return vt(s)?n(s.error):{id:a,q:o.q,...s.success}}),Dq=async(e,t)=>({accessToken:t.configuration.accessToken,organizationId:t.configuration.organizationId,url:t.configuration.search.apiBaseUrl,count:t.querySuggest[e].count,q:t.querySet[e],locale:t.configuration.search.locale,timezone:t.configuration.search.timezone,actionsHistory:t.configuration.analytics.enabled?Ir.getHistory():[],...t.context&&{context:t.context.contextValues},...t.pipeline&&{pipeline:t.pipeline},...t.searchHub&&{searchHub:t.searchHub},...t.configuration.analytics.enabled&&{visitorId:await _t(t.configuration.analytics),...t.configuration.analytics.enabled&&await _o(t.configuration.analytics)},...t.configuration.search.authenticationProviders.length&&{authentication:t.configuration.search.authenticationProviders.join(",")}}),Fh={id:re,query:Je},jq=j("querySet/register",e=>Q(e,Fh)),Pq=j("querySet/update",e=>Q(e,Fh));oe(Pc(),e=>{e.addCase(jq,(t,n)=>{let{id:r,query:i}=n.payload;r in t||(t[r]=i)}).addCase(Pq,(t,n)=>{let{id:r,query:i}=n.payload;cl(t,r,i)}).addCase(Th,(t,n)=>{let{id:r,expression:i}=n.payload;cl(t,r,i)}).addCase(Le.fulfilled,(t,n)=>{let{queryExecuted:r}=n.payload;O2(t,r)}).addCase(Ct,(t,n)=>{$e(n.payload.q)||O2(t,n.payload.q)}).addCase(nt.fulfilled,(t,n)=>{if(n.payload)for(let[r,i]of Object.entries(n.payload.querySet))cl(t,r,i)})});function O2(e,t){Object.keys(e).forEach(n=>e[n]=t)}var cl=(e,t,n)=>{t in e&&(e[t]=n)};oe(GO(),e=>e.addCase(Mq,(t,n)=>{let r=n.payload.id;r in t||(t[r]=Uq(n.payload))}).addCase(Tq,(t,n)=>{delete t[n.payload.id]}).addCase(ul.pending,(t,n)=>{let r=t[n.meta.arg.id];!r||(r.currentRequestId=n.meta.requestId,r.isLoading=!0)}).addCase(ul.fulfilled,(t,n)=>{let r=t[n.meta.arg.id];if(!r||n.meta.requestId!==r.currentRequestId)return;let{q:i}=n.payload;i&&r.partialQueries.push(i.replace(/;/,encodeURIComponent(";"))),r.responseId=n.payload.responseId,r.completions=n.payload.completions,r.isLoading=!1,r.error=null}).addCase(ul.rejected,(t,n)=>{let r=t[n.meta.arg.id];!r||(r.error=n.payload||null,r.isLoading=!1)}).addCase(Fq,(t,n)=>{let r=t[n.payload.id];!r||(r.responseId="",r.completions=[],r.partialQueries=[])}));function Uq(e){return{id:"",completions:[],responseId:"",count:5,currentRequestId:"",error:null,partialQueries:[],isLoading:!1,...e}}oe(Vn(),e=>e.addCase(Tc,(t,n)=>({...t,...n.payload})).addCase(Dc,(t,n)=>{t.q=n.payload}).addCase(Th,(t,n)=>{t.q=n.payload.expression}).addCase(nt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.query)!=null?i:t}).addCase(Ct,(t,n)=>{var r,i;t.q=(r=n.payload.q)!=null?r:t.q,t.enableQuerySyntax=(i=n.payload.enableQuerySyntax)!=null?i:t.enableQuerySyntax}));var _q=()=>new ye({values:{questionAnswerId:re},options:{required:!0}});function Dh(e){return Q(e,_q())}var Lq=j("smartSnippet/expand"),zq=j("smartSnippet/collapse"),Vq=j("smartSnippet/like"),Nq=j("smartSnippet/dislike"),Qq=j("smartSnippet/feedbackModal/open"),Hq=j("smartSnippet/feedbackModal/close"),Bq=j("smartSnippet/related/expand",e=>Dh(e)),Wq=j("smartSnippet/related/collapse",e=>Dh(e)),I2=(e,t)=>e.findIndex(n=>n.questionAnswerId===t.questionAnswerId);function jh({question:e,answerSnippet:t,documentId:{contentIdKey:n,contentIdValue:r}}){return Ox({question:e,answerSnippet:t,contentIdKey:n,contentIdValue:r})}function Yq(e,t){let n=jh(e);return t&&n===t.questionAnswerId?t:{contentIdKey:e.documentId.contentIdKey,contentIdValue:e.documentId.contentIdValue,expanded:!1,questionAnswerId:n}}oe(uu(),e=>e.addCase(Lq,t=>{t.expanded=!0}).addCase(zq,t=>{t.expanded=!1}).addCase(Vq,t=>{t.liked=!0,t.disliked=!1,t.feedbackModalOpen=!1}).addCase(Nq,t=>{t.liked=!1,t.disliked=!0}).addCase(Qq,t=>{t.feedbackModalOpen=!0}).addCase(Hq,t=>{t.feedbackModalOpen=!1}).addCase(Le.fulfilled,(t,n)=>{let r=n.payload.response.questionAnswer.relatedQuestions.map((a,o)=>Yq(a,t.relatedQuestions[o])),i=jh(n.payload.response.questionAnswer);return t.questionAnswerId===i?{...t,relatedQuestions:r}:{...uu(),relatedQuestions:r,questionAnswerId:i}}).addCase(Bq,(t,n)=>{let r=I2(t.relatedQuestions,n.payload);r!==-1&&(t.relatedQuestions[r].expanded=!0)}).addCase(Wq,(t,n)=>{let r=I2(t.relatedQuestions,n.payload);r!==-1&&(t.relatedQuestions[r].expanded=!1)}));var Zq={queries:new We({required:!0,each:new de({emptyAllowed:!1})}),maxLength:new ve({required:!0,min:1,default:10})},Jq=j("recentQueries/registerRecentQueries",e=>Q(e,Zq)),Gq=j("recentQueries/clearRecentQueries");oe(P3(),e=>{e.addCase(Jq,(t,n)=>{t.queries=n.payload.queries.slice(0,n.payload.maxLength),t.maxLength=n.payload.maxLength}).addCase(Gq,t=>{t.queries=[]}).addCase(Le.fulfilled,(t,n)=>{let r=n.payload.queryExecuted.trim(),i=n.payload.response.results;if(!r.length||!i.length)return;t.queries=t.queries.filter(o=>o!==r);let a=t.queries.slice(0,t.maxLength-1);t.queries=[r,...a]})});var Kq={results:new We({required:!0,each:new ye({values:Ac})}),maxLength:new ve({required:!0,min:1,default:10})},Xq=j("recentResults/registerRecentResults",e=>Q(e,Kq)),eA=j("recentResults/pushRecentResult",e=>(Fx(e),{payload:e})),tA=j("recentResults/clearRecentResults");oe(U3(),e=>{e.addCase(Xq,(t,n)=>{t.results=n.payload.results.slice(0,n.payload.maxLength),t.maxLength=n.payload.maxLength}).addCase(tA,t=>{t.results=[]}).addCase(eA,(t,n)=>{let r=n.payload;t.results=t.results.filter(a=>a.uniqueId!==r.uniqueId);let i=t.results.slice(0,t.maxLength-1);t.results=[r,...i]})});oe(Zr(),e=>{e.addCase(Bx,(t,n)=>{t.id=n.payload.id}).addCase(wa.rejected,(t,n)=>{t.error=n.payload?n.payload:null,t.isLoading=!1}).addCase(wa.fulfilled,(t,n)=>{t.error=null,t.recommendations=n.payload.recommendations,t.duration=n.payload.duration,t.isLoading=!1,t.searchUid=n.payload.searchUid,t.splitTestRun=n.payload.splitTestRun,t.pipeline=n.payload.pipeline}).addCase(wa.pending,t=>{t.isLoading=!0})});async function nA(e,t){var n;let{search:r,accessToken:i,organizationId:a,analytics:o}=e.configuration,s=((n=e.query)==null?void 0:n.q)||"";return{url:r.apiBaseUrl,accessToken:i,organizationId:a,enableNavigation:!1,...o.enabled&&{visitorId:await _t(e.configuration.analytics)},q:s,...t,requestedOutputSize:t.requestedOutputSize||0,...r.authenticationProviders.length&&{authentication:r.authenticationProviders.join(",")}}}var E2=xe("resultPreview/fetchResultContent",async(e,{extra:t,getState:n,rejectWithValue:r})=>{let i=n(),a=await nA(i,e),o=await t.apiClient.html(a);return vt(o)?r(o.error):{content:o.success,uniqueId:e.uniqueId}}),rA=j("resultPreview/next"),iA=j("resultPreview/previous"),aA=j("resultPreview/prepare",e=>Q(e,{results:new We({required:!0})})),q2=2048,oA=xe("resultPreview/updateContentURL",async(e,{getState:t,extra:n})=>{let r=t(),i=cx(await e.buildResultPreviewRequest(r,{uniqueId:e.uniqueId,requestedOutputSize:e.requestedOutputSize}),e.path);return(i==null?void 0:i.length)>q2&&n.logger.error(`The content URL was truncated as it exceeds the maximum allowed length of ${q2} characters.`),{contentURL:i}}),dl=e=>e.filter(t=>t.hasHtmlVersion).map(t=>t.uniqueId);oe(to(),e=>{e.addCase(E2.pending,t=>{t.isLoading=!0}).addCase(E2.fulfilled,(t,n)=>{let{content:r,uniqueId:i}=n.payload;t.position=t.resultsWithPreview.indexOf(i),t.content=r,t.uniqueId=i,t.isLoading=!1}).addCase(Le.fulfilled,(t,n)=>{let{content:r,isLoading:i,uniqueId:a,contentURL:o}=to();t.content=r,t.isLoading=i,t.uniqueId=a,t.contentURL=o,t.resultsWithPreview=dl(n.payload.response.results)}).addCase(Jr.fulfilled,(t,n)=>{t.resultsWithPreview=t.resultsWithPreview.concat(dl(n.payload.response.results))}).addCase(aA,(t,n)=>{t.resultsWithPreview=dl(n.payload.results)}).addCase(rA,t=>{if(t.isLoading)return;let n=t.position+1;n>t.resultsWithPreview.length-1&&(n=0),t.position=n}).addCase(iA,t=>{if(t.isLoading)return;let n=t.position-1;n<0&&(n=t.resultsWithPreview.length-1),t.position=n}).addCase(oA.fulfilled,(t,n)=>{t.contentURL=n.payload.contentURL})});oe(Nn(),e=>{e.addCase(Mh,(t,n)=>n.payload).addCase(nt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.searchHub)!=null?i:t}).addCase(Wc,(t,n)=>n.payload.searchHub||t)});function fl(e,t){var n;let r=(n=t.payload)!=null?n:null;r&&(e.response=En().response,e.results=[],e.questionAnswer=Ka()),e.error=r,e.isLoading=!1}function fu(e,t){e.error=null,e.response=t.payload.response,e.queryExecuted=t.payload.queryExecuted,e.duration=t.payload.duration,e.isLoading=!1}function sA(e,t){fu(e,t),e.results=t.payload.response.results,e.searchResponseId=t.payload.response.searchUid,e.questionAnswer=t.payload.response.questionAnswer}function pl(e,t){e.isLoading=!0,e.requestId=t.meta.requestId}oe(En(),e=>{e.addCase(Le.rejected,(t,n)=>fl(t,n)),e.addCase(Jr.rejected,(t,n)=>fl(t,n)),e.addCase(Ia.rejected,(t,n)=>fl(t,n)),e.addCase(Le.fulfilled,(t,n)=>{sA(t,n)}),e.addCase(Jr.fulfilled,(t,n)=>{fu(t,n),t.results=[...t.results,...n.payload.response.results]}),e.addCase(Ia.fulfilled,(t,n)=>{fu(t,n),t.results=n.payload.response.results}),e.addCase(zc.fulfilled,(t,n)=>{t.response.facets=n.payload.response.facets,t.response.searchUid=n.payload.response.searchUid}),e.addCase(Le.pending,pl),e.addCase(Jr.pending,pl),e.addCase(Ia.pending,pl)});var A2={by:new z5({enum:d3,required:!0})},lA=j("sortCriteria/register",e=>Ph(e)),uA=j("sortCriteria/update",e=>Ph(e)),Ph=e=>L5(e)?(e.forEach(t=>Q(t,A2)),{payload:e}):Q(e,A2);oe(Uc(),e=>{e.addCase(lA,(t,n)=>Xa(n.payload)).addCase(uA,(t,n)=>Xa(n.payload)).addCase(nt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.sortCriteria)!=null?i:t}).addCase(Ct,(t,n)=>{var r;return(r=n.payload.sortCriteria)!=null?r:t})});var cA={by:new z5({enum:no,required:!0})},dA=j("sort/register",e=>Uh(e)),fA=j("sort/update",e=>Uh(e)),Uh=e=>Q(e,cA);oe(D3(),e=>{e.addCase(dA,(t,n)=>n.payload).addCase(fA,(t,n)=>n.payload)});function pA(e){return e.type==="redirect"}var hA=class{constructor(e){this.response=e}get basicExpression(){return this.response.parsedInput.basicExpression}get largeExpression(){return this.response.parsedInput.largeExpression}get redirectionUrl(){let e=this.response.preprocessingOutput.triggers.filter(pA);return e.length?e[0].content:null}},mA=j("standaloneSearchBox/register",e=>Q(e,{id:re,redirectionUrl:re})),gA=j("standaloneSearchBox/reset",e=>Q(e,{id:re})),vA=j("standaloneSearchBox/updateAnalyticsToSearchFromLink",e=>Q(e,{id:re})),yA=j("standaloneSearchBox/updateAnalyticsToOmniboxFromLink"),hl=xe("standaloneSearchBox/fetchRedirect",async(e,{dispatch:t,getState:n,rejectWithValue:r,extra:{apiClient:i,validatePayload:a}})=>{a(e,{id:new de({emptyAllowed:!1})});let o=await bA(n()),s=await i.plan(o);if(vt(s))return r(s.error);let{redirectionUrl:l}=new hA(s.success);return l&&t(CA(l)),l||""}),CA=e=>Gt("analytics/standaloneSearchBox/redirect",Lt.Custom,t=>t.makeTriggerRedirect({redirectedTo:e})),bA=async e=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.search.apiBaseUrl,locale:e.configuration.search.locale,timezone:e.configuration.search.timezone,q:e.query.q,...e.context&&{context:e.context.contextValues},...e.pipeline&&{pipeline:e.pipeline},...e.searchHub&&{searchHub:e.searchHub},...e.configuration.analytics.enabled&&{visitorId:await _t(e.configuration.analytics)},...e.configuration.analytics.enabled&&await _o(e.configuration.analytics),...e.configuration.search.authenticationProviders.length&&{authentication:e.configuration.search.authenticationProviders.join(",")}});oe(_3(),e=>e.addCase(mA,(t,n)=>{let{id:r,redirectionUrl:i}=n.payload;r in t||(t[r]=R2(i))}).addCase(gA,(t,n)=>{let{id:r}=n.payload,i=t[r];if(i){t[r]=R2(i.defaultRedirectionUrl);return}}).addCase(hl.pending,(t,n)=>{let r=t[n.meta.arg.id];!r||(r.isLoading=!0)}).addCase(hl.fulfilled,(t,n)=>{let r=n.payload,i=t[n.meta.arg.id];!i||(i.redirectTo=r||i.defaultRedirectionUrl,i.isLoading=!1)}).addCase(hl.rejected,(t,n)=>{let r=t[n.meta.arg.id];!r||(r.isLoading=!1)}).addCase(vA,(t,n)=>{let r=t[n.payload.id];!r||(r.analytics.cause="searchFromLink")}).addCase(yA,(t,n)=>{let r=t[n.payload.id];!r||(r.analytics.cause="omniboxFromLink",r.analytics.metadata=n.payload.metadata)}));function R2(e){return{defaultRedirectionUrl:e,redirectTo:"",isLoading:!1,analytics:{cause:"",metadata:null}}}var ed=re,_h=new ye({options:{required:!0},values:{caption:Je,expression:Je,state:new de({constrainTo:["idle","selected"]})}}),SA=new We({required:!0,each:_h}),wA=j("staticFilter/register",e=>Q(e,{id:ed,values:SA})),$A=j("staticFilter/toggleSelect",e=>Q(e,{id:ed,value:_h})),kA=j("staticFilter/deselectAllFilterValues",e=>Q(e,ed));oe(_c(),e=>e.addCase(wA,(t,n)=>{let r=n.payload,{id:i}=r;i in t||(t[i]=r)}).addCase($A,(t,n)=>{let{id:r,value:i}=n.payload,a=t[r];if(!a)return;let o=a.values.find(l=>l.caption===i.caption);if(!o)return;let s=o.state==="selected";o.state=s?"idle":"selected"}).addCase(kA,(t,n)=>{let r=n.payload,i=t[r];!i||i.values.forEach(a=>a.state="idle")}).addCase(Bn,t=>{Object.values(t).forEach(n=>{n.values.forEach(r=>r.state="idle")})}).addCase(Ct,(t,n)=>{let r=n.payload.sf||{};Object.entries(t).forEach(([i,a])=>{let o=r[i]||[];a.values.forEach(s=>{s.state=o.includes(s.caption)?"selected":"idle"})})}));oe(Lc(),e=>{e.addCase(HI,(t,n)=>{let r=n.payload,{id:i}=r;i in t||(t[i]={...r,isActive:!1})}).addCase(Y3,(t,n)=>{let r=n.payload;M2(t,r)}).addCase(Ct,(t,n)=>{let r=n.payload.tab||"";M2(t,r)}).addCase(nt.fulfilled,(t,n)=>{var r,i;return(i=(r=n.payload)==null?void 0:r.tabSet)!=null?i:t})});function M2(e,t){t in e&&Object.keys(e).forEach(n=>{e[n].isActive=n===t})}oe(L3(),e=>e.addCase(Le.pending,t=>{t.query="",t.queryModification={originalQuery:"",newQuery:"",queryToIgnore:t.queryModification.queryToIgnore}}).addCase(Le.fulfilled,(t,n)=>{var r;let i=[],a=[],o=[];n.payload.response.triggers.forEach(s=>{switch(s.type){case"redirect":i.push(s.content);break;case"query":break;case"execute":a.push({functionName:s.content.name,params:s.content.params});break;case"notify":o.push(s.content);break}}),t.redirectTo=(r=i[0])!=null?r:"",t.query=t.queryModification.newQuery,t.executions=a,t.notifications=o}).addCase(h3,(t,n)=>{t.queryModification={...n.payload,queryToIgnore:""}}).addCase(p3,(t,n)=>{t.queryModification.queryToIgnore=n.payload}));Ke(Mo());Ke(a5());var xA={facetId:Oe,selection:new ye({values:eh})};xe("facet/executeToggleSelect",({facetId:e,selection:t},n)=>{let{dispatch:r,extra:{validatePayload:i}}=n;i({facetId:e,selection:t},xA),r(Yc({facetId:e,selection:t})),r(Wo({freezeFacetOrder:!0}))});var Lh=j("rangeFacet/executeToggleSelect",e=>Q(e,mE(e.selection))),OA={facetId:Oe,selection:new ye({values:Bo})};xe("dateFacet/executeToggleSelect",(e,{dispatch:t,extra:{validatePayload:n}})=>{n(e,OA),t(Zc(e)),t(Lh(e)),t(Wo({freezeFacetOrder:!0}))});var IA={facetId:Oe,selection:new ye({values:Ho})},EA="numericFacet/executeToggleSelect";xe(EA,(e,{dispatch:t,extra:{validatePayload:n}})=>{n(e,IA),t(Jc(e)),t(Lh(e)),t(Wo({freezeFacetOrder:!0}))});var T2;(e=>{e.getResultProperty=No,e.fieldsMustBeDefined=OI,e.fieldsMustNotBeDefined=II,e.fieldMustMatch=EI,e.fieldMustNotMatch=qI})(T2||(T2={}));var pu=class extends Error{constructor(t){super(`The "${t}" element must be the child of an "atomic-result" element.`)}},qA="atomic/resolveResult";function zh(e){return new Promise((t,n)=>{let r=e5(qA,i=>t(i));e.dispatchEvent(r),Na(e,"atomic-result")||n(new pu(e.nodeName.toLowerCase()))})}function Yo(e){return $S(e)}var AA="b{color:var(--atomic-primary)}.search-css{color:#CAA144 !important;font-size:1.7rem !important;max-height:unset !important;line-height:normal !important}:host{cursor:pointer}",RA=class extends Fn{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.closeFAQModal=()=>{this.modalElement.setAttribute("is-open","false"),this.modalElement.querySelector("#btn-done").removeEventListener("click",this.closeFAQModal)}}async connectedCallback(){var e;try{this.bindings=await Yo(this.host),this.result=await zh(this.host),this.modalElement=(e=this.bindings)===null||e===void 0?void 0:e.interfaceElement.querySelector("#faq-modal"),this.result&&localStorage.getItem(`visited-${this.result.title}`)&&this.host.classList.add("visited-title")}catch(t){console.error(t),this.host.remove()}}openFAQModal(e){var t,n,r,i,a,o,s;if(this.bindings){let{logClickEvent:h}=yS(this.bindings.engine),p={evt:"documentQuickview",result:e};this.bindings.engine.dispatch(h(p))}this.modalElement.source=this.host;let l=this.modalElement.querySelector("[slot=body]");l.innerHTML="";let u=document.createElement("table"),d=document.createElement("tr");d.className="question-row",d.innerHTML='<td>Question: <a href="https://anheuserbuschinbev.sharepoint.com" autofocus="true" style="display:none;"></a></td> <td>'+(((t=this.result)===null||t===void 0?void 0:t.title)||"")+'</td><div id="faq-modal-close-button"><svg width="48" height="49" viewBox="0 0 48 49" fill="black" xmlns="http://www.w3.org/2000/svg"><rect y="0.5" width="48" height="48" rx="24" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22.5382 24.5L15 16.9618L16.4618 15.5L24 23.0382L31.5382 15.5L33 16.9618L25.4618 24.5L33 32.0382L31.5382 33.5L24 25.9618L16.4618 33.5L15 32.0382L22.5382 24.5Z" fill="#17171A"/></svg></div>',u.appendChild(d);let f=document.createElement("tr"),m=document.createElement("td");m.innerText="Answer:",f.appendChild(m);let y=document.createElement("td");if(!((r=(n=this.result)===null||n===void 0?void 0:n.raw)===null||r===void 0)&&r.answer){let h=(a=(i=this.result)===null||i===void 0?void 0:i.raw)===null||a===void 0?void 0:a.answer;try{var g=new DOMParser().parseFromString(h,"text/html"),c="";Array.from(g.children).forEach(p=>{var v;p.querySelectorAll("a").forEach(C=>{C.href.startsWith(window.location.origin)&&C.href.indexOf("/sites/")>-1&&(C.href=C.href.replace(window.location.origin,"https://anheuserbuschinbev.sharepoint.com")),C.href.startsWith(window.location.origin)&&C.href.match(/:.:\/./)&&(C.href=C.href.replace(window.location.origin,"https://anheuserbuschinbev.sharepoint.com"))}),p.querySelectorAll("img").forEach(C=>{C.src.startsWith(window.location.origin)&&C.src.indexOf("/sites/")>-1&&(C.src=C.src.replace(window.location.origin,"https://anheuserbuschinbev.sharepoint.com")),C.src.startsWith(window.location.origin)&&C.src.match(/:.:\/./)&&(C.src=C.src.replace(window.location.origin,"https://anheuserbuschinbev.sharepoint.com"))}),c=c+((v=p.querySelector("body"))===null||v===void 0?void 0:v.innerHTML)}),y.innerHTML=c}catch(p){console.log(p),y.innerHTML=h}}if(f.appendChild(y),u.appendChild(f),!((o=this.result)===null||o===void 0)&&o.raw.category){let h=document.createElement("tr");h.innerHTML="<td> Category: </td><td>"+this.result.raw.category+"</td>",u.appendChild(h)}if(!((s=this.result)===null||s===void 0)&&s.raw.newmoreinfo){let h=document.createElement("tr"),p=this.result.raw.newmoreinfo;h.innerHTML='<td> Link: </td><td> <a href="'+p+'" target="_blank">'+p+"</a> </td>",u.appendChild(h)}l.appendChild(u),this.modalElement.querySelector("#faq-modal-close-button").addEventListener("click",this.closeFAQModal),this.modalElement.setAttribute("is-open","true"),this.result&&localStorage.setItem(`visited-${this.result.title}`,"true"),this.host.classList.add("visited-title")}render(){if(!this.result)return;let e=this.origin==="searchResult"?"search-css":"";return ne(mu,{className:`clickable-host ${e}`,onClick:()=>this.openFAQModal(this.result)},this.result.title)}get host(){return this}static get style(){return AA}},MA=class extends Fn{constructor(){super(),this.__registerHost(),this.__attachShadow()}async connectedCallback(){var e;try{await ui(),this.bindings=await Yo(this.host);let t=new Date().toISOString(),n=new Date;n.getMonth()==1?(n.setMonth(12),n.setFullYear(n.getFullYear()-1)):n.setMonth(n.getMonth()-1);let r=encodeURIComponent(`(clicks.c_context_user_country_snow=='${this.userCountry}')`),i=`https://${(e=this.bindings)===null||e===void 0?void 0:e.engine.state.configuration.organizationId}.admin.org.coveo.com/rest/ua/v15/stats/combinedData?from=${n.toISOString()}&to=${t}&m=DocumentView&d=documentTitle&d=documentURL&d=clicks.c_context_user_country_snow&d=documentSysUriHash&f=${r}&p=1&n=10&s=DocumentView&asc=false&includeMetadata=true`,a=new Headers;a.append("authorization","Bearer xxf42da36f-db11-4565-8358-8bac8c307236");let s=await fetch(i,{method:"GET",headers:a});s=await s.json();debugger;if(s.combinations.length>0){let l=s.combinations.map(u=>u.documentSysUriHash);vb(this.bindings.engine).add("dqExp",l),this.bindings.interfaceElement.getRecommendations()}else this.bindings.interfaceElement.style.display="none"}catch(t){console.error(t)}}get host(){return this}},TA=`
|
|
26
|
-
<style>
|
|
27
|
-
atomic-result-link{
|
|
28
|
-
font-size: 1.3rem !important;
|
|
29
|
-
color: #626971 !important;
|
|
30
|
-
}
|
|
31
|
-
faq-popup-component{
|
|
32
|
-
font-size: 1.3rem; color: #626971 !important;
|
|
33
|
-
}
|
|
34
|
-
faq-popup-component:hover{
|
|
35
|
-
text-decoration: underline;
|
|
36
|
-
}
|
|
37
|
-
hr {
|
|
38
|
-
margin-top: 10px !important;
|
|
39
|
-
}
|
|
40
|
-
</style>
|
|
41
|
-
<faq-popup-component></faq-popup-component>
|
|
42
|
-
<hr>
|
|
43
|
-
`,FA=`<style>
|
|
44
|
-
atomic-result-link a {
|
|
45
|
-
font-size: 1.3rem;
|
|
46
|
-
color: #626971 !important;
|
|
47
|
-
}
|
|
48
|
-
hr {
|
|
49
|
-
margin-top: 10px !important;
|
|
50
|
-
}
|
|
51
|
-
</style>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
<atomic-result-section-title>
|
|
55
|
-
<atomic-result-link href-template="\${raw.sfppcustomlinkcpplinkurlc}"><a slot="attributes" target="_blank"></a>
|
|
56
|
-
</atomic-result-link>
|
|
57
|
-
<hr>
|
|
58
|
-
</atomic-result-section-title>`,DA=`<style>
|
|
59
|
-
atomic-result-link a {
|
|
60
|
-
font-size: 1.3rem;
|
|
61
|
-
color: #626971 !important;
|
|
62
|
-
}
|
|
63
|
-
hr {
|
|
64
|
-
margin-top: 10px !important;
|
|
65
|
-
}
|
|
66
|
-
</style>
|
|
67
|
-
<atomic-result-section-title>
|
|
68
|
-
<atomic-result-link><a slot="attributes" target="_blank"></a>
|
|
69
|
-
</atomic-result-link>
|
|
70
|
-
<hr>
|
|
71
|
-
</atomic-result-section-title>`,jA=`<style>
|
|
72
|
-
atomic-result-link a {
|
|
73
|
-
font-size: 1.3rem;
|
|
74
|
-
color: #626971 !important;
|
|
75
|
-
}
|
|
76
|
-
hr {
|
|
77
|
-
margin-top: 10px !important;
|
|
78
|
-
}
|
|
79
|
-
</style>
|
|
80
|
-
<atomic-result-section-title>
|
|
81
|
-
<atomic-result-link><a slot="attributes" target="_blank"></a>
|
|
82
|
-
</atomic-result-link>
|
|
83
|
-
<hr>
|
|
84
|
-
</atomic-result-section-title>`,PA=`<style>
|
|
85
|
-
atomic-result-link a {
|
|
86
|
-
font-size: 1.3rem;
|
|
87
|
-
color: #626971 !important;
|
|
88
|
-
}
|
|
89
|
-
hr {
|
|
90
|
-
margin-top: 10px !important;
|
|
91
|
-
}
|
|
92
|
-
</style>
|
|
93
|
-
<atomic-result-section-title>
|
|
94
|
-
<atomic-result-link><a slot="attributes" target="_blank"></a>
|
|
95
|
-
</atomic-result-link>
|
|
96
|
-
<hr>
|
|
97
|
-
</atomic-result-section-title>`,UA=`<style>
|
|
98
|
-
atomic-result-link a {
|
|
99
|
-
font-size: 1.3rem;
|
|
100
|
-
color: #626971 !important;
|
|
101
|
-
}
|
|
102
|
-
hr {
|
|
103
|
-
margin-top: 10px !important;
|
|
104
|
-
}
|
|
105
|
-
</style>
|
|
106
|
-
<atomic-result-section-title>
|
|
107
|
-
<atomic-result-link href-template="\${raw.sfppcustomlinkcpplinkurlc}"><a slot="attributes" target="_blank"></a>
|
|
108
|
-
</atomic-result-link>
|
|
109
|
-
<hr>
|
|
110
|
-
</atomic-result-section-title>`,_A=`<style>
|
|
111
|
-
atomic-result-link a {
|
|
112
|
-
font-size: 1.3rem;
|
|
113
|
-
color: #626971 !important;
|
|
114
|
-
}
|
|
115
|
-
hr {
|
|
116
|
-
margin-top: 10px !important;
|
|
117
|
-
}
|
|
118
|
-
</style>
|
|
119
|
-
<atomic-result-section-title>
|
|
120
|
-
<atomic-result-link><a slot="attributes" target="_blank"></a>
|
|
121
|
-
</atomic-result-link>
|
|
122
|
-
<hr>
|
|
123
|
-
</atomic-result-section-title>`,LA=`<style>
|
|
124
|
-
atomic-result-link a {
|
|
125
|
-
font-size: 1.3rem;
|
|
126
|
-
color: #626971 !important;
|
|
127
|
-
}
|
|
128
|
-
hr {
|
|
129
|
-
margin-top: 10px !important;
|
|
130
|
-
}
|
|
131
|
-
</style>
|
|
132
|
-
<atomic-result-section-title>
|
|
133
|
-
<atomic-result-link><a slot="attributes" target="_blank"></a>
|
|
134
|
-
</atomic-result-link>
|
|
135
|
-
<hr>
|
|
136
|
-
</atomic-result-section-title>`,zA=class extends Fn{constructor(){super(),this.__registerHost()}async componentWillLoad(){return H2()}render(){return ne("atomic-recs-list",{"number-of-recommendations":"5"},ne("atomic-recs-result-template",{"must-match-abicontenttype":"FAQ"},ne("template",{innerHTML:TA})),ne("atomic-recs-result-template",{"must-match-abicontenttype":"Quick Links"},ne("template",{innerHTML:FA})),ne("atomic-recs-result-template",{"must-match-abicontenttype":"Site Pages"},ne("template",{innerHTML:jA})),ne("atomic-recs-result-template",{"must-match-abicontenttype":"Knowledge Article"},ne("template",{innerHTML:PA})),ne("atomic-recs-result-template",{"must-match-abicontenttype":"Application"},ne("template",{innerHTML:UA})),ne("atomic-recs-result-template",{"must-match-abicontenttype":"eLearning"},ne("template",{innerHTML:_A})),ne("atomic-recs-result-template",{"must-match-abicontenttype":"Documents"},ne("template",{innerHTML:LA})),ne("atomic-recs-result-template",null,ne("template",{innerHTML:DA})))}},VA=`<style>
|
|
137
|
-
.field {
|
|
138
|
-
display: inline-flex;
|
|
139
|
-
align-items: center;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.field-label {
|
|
143
|
-
font-weight: bold;
|
|
144
|
-
margin-right: 0.25rem;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.title-date {
|
|
148
|
-
display: grid;
|
|
149
|
-
grid-template-columns: 3fr 1fr;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
atomic-result-section-bottom-metadata {
|
|
154
|
-
margin-top: 2px;
|
|
155
|
-
color: #A6A6A6 !important;
|
|
156
|
-
font-size: 1rem !important;
|
|
157
|
-
margin-right: 3px;
|
|
158
|
-
line-height: 18px !important;
|
|
159
|
-
display: grid;
|
|
160
|
-
grid-template-columns: auto auto auto;
|
|
161
|
-
gap: 1rem;
|
|
162
|
-
align-items: center;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
atomic-result-date {
|
|
166
|
-
font-size: 1.0rem;
|
|
167
|
-
justify-self: end;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
atomic-result-section-title a {
|
|
171
|
-
color: #CAA144 !important;
|
|
172
|
-
font-size: 1.7rem !important;;
|
|
173
|
-
max-height: unset !important;
|
|
174
|
-
line-height: normal !important;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
atomic-result-section-bottom-metadata a {
|
|
179
|
-
color: #A6A6A6 !important;
|
|
180
|
-
}
|
|
181
|
-
atomic-result-section-title a:visited {
|
|
182
|
-
color: black !important;
|
|
183
|
-
}
|
|
184
|
-
atomic-result-section-excerpt {
|
|
185
|
-
font-size: 1.3rem !important;
|
|
186
|
-
margin-top: 0.875rem !important;
|
|
187
|
-
max-height: unset !important;
|
|
188
|
-
line-height: normal !important;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
atomic-result-section-visual {
|
|
192
|
-
width: 3rem !important;
|
|
193
|
-
height: 5rem !important;
|
|
194
|
-
display: grid;
|
|
195
|
-
align-items: center;
|
|
196
|
-
}
|
|
197
|
-
atomic-result-section-bottom-metadata span {
|
|
198
|
-
display: flex;
|
|
199
|
-
align-items: center;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
atomic-field-condition{
|
|
203
|
-
max-width: 100%;
|
|
204
|
-
display: grid;
|
|
205
|
-
grid-template-columns: auto auto auto;
|
|
206
|
-
align-items: center;
|
|
207
|
-
gap: 1rem;
|
|
208
|
-
}
|
|
209
|
-
</style>
|
|
210
|
-
|
|
211
|
-
<atomic-result-section-visual>
|
|
212
|
-
<img src="https://cdn.jsdelivr.net/npm/@coveops/abi@latest/dist/abi/images/Default.png" alt="Image">
|
|
213
|
-
<!-- <atomic-icon class="icon"></atomic-icon>
|
|
214
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
215
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="55px" height="55px"
|
|
216
|
-
viewBox="0 0 65 65" version="1.1">
|
|
217
|
-
<g id="surface1">
|
|
218
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(1.176471%,1.176471%,1.176471%);fill-opacity:1;"
|
|
219
|
-
d="M 10.785156 -0.527344 C 11.4375 -0.53125 12.09375 -0.535156 12.765625 -0.539062 C 14.140625 -0.539062 15.515625 -0.53125 16.890625 -0.515625 C 18.992188 -0.496094 21.09375 -0.515625 23.191406 -0.542969 C 24.535156 -0.539062 25.875 -0.535156 27.214844 -0.527344 C 28.152344 -0.539062 28.152344 -0.539062 29.109375 -0.550781 C 32.25 -0.484375 33.738281 -0.203125 36.414062 1.585938 C 38.53125 4.75 38.574219 7.054688 38.527344 10.785156 C 38.53125 11.4375 38.535156 12.09375 38.539062 12.765625 C 38.539062 14.140625 38.53125 15.515625 38.515625 16.890625 C 38.496094 18.992188 38.515625 21.09375 38.542969 23.191406 C 38.539062 24.535156 38.535156 25.875 38.527344 27.214844 C 38.535156 27.839844 38.542969 28.464844 38.550781 29.109375 C 38.484375 32.25 38.203125 33.738281 36.414062 36.414062 C 33.25 38.53125 30.945312 38.574219 27.214844 38.527344 C 26.234375 38.53125 26.234375 38.53125 25.234375 38.539062 C 23.859375 38.539062 22.484375 38.53125 21.109375 38.515625 C 19.007812 38.496094 16.90625 38.515625 14.804688 38.542969 C 13.464844 38.539062 12.125 38.535156 10.785156 38.527344 C 10.160156 38.535156 9.535156 38.542969 8.890625 38.550781 C 5.75 38.484375 4.261719 38.203125 1.585938 36.414062 C -0.53125 33.25 -0.574219 30.945312 -0.527344 27.214844 C -0.53125 26.5625 -0.535156 25.90625 -0.539062 25.234375 C -0.539062 23.859375 -0.53125 22.484375 -0.515625 21.109375 C -0.496094 19.007812 -0.515625 16.90625 -0.542969 14.804688 C -0.539062 13.464844 -0.535156 12.125 -0.527344 10.785156 C -0.535156 10.160156 -0.542969 9.535156 -0.550781 8.890625 C -0.484375 5.75 -0.203125 4.261719 1.585938 1.585938 C 4.75 -0.53125 7.054688 -0.574219 10.785156 -0.527344 Z M 10.785156 -0.527344 " />
|
|
220
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(83.921569%,83.921569%,83.921569%);fill-opacity:1;"
|
|
221
|
-
d="M 24.796875 3.710938 C 29.566406 5.886719 32.808594 9.382812 34.832031 14.25 C 35.578125 19.839844 35.054688 24.695312 31.667969 29.292969 C 29.167969 32.035156 26.738281 33.707031 22.957031 34.042969 C 23.5625 33.566406 24.167969 33.09375 24.789062 32.605469 C 26.847656 31 26.847656 31 28.253906 29.488281 C 29.292969 28.5 29.292969 28.5 30.875 28.5 C 32.050781 24.1875 32.050781 24.1875 33.25 19.792969 C 31.160156 19.792969 29.070312 19.792969 26.917969 19.792969 C 26.65625 20.835938 26.394531 21.882812 26.125 22.957031 C 26.125 21.914062 26.125 20.867188 26.125 19.792969 C 24.035156 19.792969 21.945312 19.792969 19.792969 19.792969 C 19.792969 21.621094 19.792969 23.449219 19.792969 25.332031 C 20.28125 25.429688 20.769531 25.527344 21.277344 25.628906 C 22.957031 26.125 22.957031 26.125 24.542969 27.707031 C 23.234375 29.535156 21.929688 31.367188 20.582031 33.25 C 19.539062 32.988281 18.492188 32.726562 17.417969 32.457031 C 17.679688 30.367188 17.9375 28.277344 18.207031 26.125 C 17.164062 25.863281 16.117188 25.601562 15.042969 25.332031 C 16.085938 25.332031 17.132812 25.332031 18.207031 25.332031 C 18.207031 23.503906 18.207031 21.675781 18.207031 19.792969 C 16.117188 19.792969 14.027344 19.792969 11.875 19.792969 C 11.875 21.097656 11.875 22.402344 11.875 23.75 C 11.613281 23.75 11.351562 23.75 11.082031 23.75 C 11.082031 22.445312 11.082031 21.136719 11.082031 19.792969 C 8.992188 19.792969 6.902344 19.792969 4.75 19.792969 C 5.535156 22.664062 6.316406 25.539062 7.125 28.5 C 7.648438 28.5 8.171875 28.5 8.707031 28.5 C 9.78125 29.539062 10.835938 30.597656 11.875 31.667969 C 12.917969 32.476562 13.96875 33.273438 15.042969 34.042969 C 10.839844 33.785156 8.28125 31.484375 5.542969 28.5 C 2.808594 24.003906 2.378906 19.386719 3.167969 14.25 C 6.851562 5.152344 15.371094 0.917969 24.796875 3.710938 Z M 24.796875 3.710938 " />
|
|
222
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(75.294118%,75.294118%,75.294118%);fill-opacity:1;"
|
|
223
|
-
d="M 4.75 19.792969 C 9.191406 19.792969 13.632812 19.792969 18.207031 19.792969 C 18.207031 23.972656 18.207031 28.152344 18.207031 32.457031 C 18.992188 32.457031 19.777344 32.457031 20.582031 32.457031 C 22.335938 30.128906 22.335938 30.128906 23.75 27.707031 C 23.097656 27.429688 22.445312 27.152344 21.769531 26.867188 C 21.117188 26.359375 20.464844 25.855469 19.792969 25.332031 C 19.792969 23.503906 19.792969 21.675781 19.792969 19.792969 C 24.234375 19.792969 28.675781 19.792969 33.25 19.792969 C 32.457031 26.125 32.457031 26.125 30.875 28.5 C 30.351562 28.5 29.828125 28.5 29.292969 28.5 C 29.03125 29.285156 28.769531 30.066406 28.5 30.875 C 25.070312 33.25 25.070312 33.25 22.957031 33.25 C 22.957031 33.773438 22.957031 34.296875 22.957031 34.832031 C 14.914062 35.332031 14.914062 35.332031 12.269531 33.347656 C 11.878906 32.792969 11.488281 32.238281 11.082031 31.667969 C 10.300781 31.144531 9.515625 30.621094 8.707031 30.082031 C 8.707031 29.5625 8.707031 29.039062 8.707031 28.5 C 8.1875 28.5 7.664062 28.5 7.125 28.5 C 5.269531 25.171875 4.75 23.742188 4.75 19.792969 Z M 4.75 19.792969 " />
|
|
224
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(80.784314%,80.784314%,80.784314%);fill-opacity:1;"
|
|
225
|
-
d="M 15.832031 3.167969 C 21.050781 2.730469 24.960938 3.25 29.292969 6.332031 C 32.199219 9.09375 34.5625 12.214844 35.097656 16.242188 C 35.179688 21.960938 34.46875 26.214844 30.539062 30.53125 C 28.171875 32.675781 26.136719 33.761719 22.957031 34.042969 C 23.5625 33.566406 24.167969 33.09375 24.789062 32.605469 C 26.847656 31 26.847656 31 28.253906 29.488281 C 29.292969 28.5 29.292969 28.5 30.875 28.5 C 31.660156 25.625 32.441406 22.753906 33.25 19.792969 C 31.160156 19.792969 29.070312 19.792969 26.917969 19.792969 C 26.65625 20.835938 26.394531 21.882812 26.125 22.957031 C 26.125 21.914062 26.125 20.867188 26.125 19.792969 C 24.035156 19.792969 21.945312 19.792969 19.792969 19.792969 C 19.792969 21.621094 19.792969 23.449219 19.792969 25.332031 C 20.28125 25.429688 20.769531 25.527344 21.277344 25.628906 C 22.957031 26.125 22.957031 26.125 24.542969 27.707031 C 23.234375 29.535156 21.929688 31.367188 20.582031 33.25 C 19.539062 32.988281 18.492188 32.726562 17.417969 32.457031 C 17.679688 30.367188 17.9375 28.277344 18.207031 26.125 C 17.164062 25.863281 16.117188 25.601562 15.042969 25.332031 C 16.085938 25.332031 17.132812 25.332031 18.207031 25.332031 C 18.207031 23.503906 18.207031 21.675781 18.207031 19.792969 C 16.117188 19.792969 14.027344 19.792969 11.875 19.792969 C 11.875 19.269531 11.875 18.746094 11.875 18.207031 C 16.578125 18.207031 21.28125 18.207031 26.125 18.207031 C 25.601562 16.378906 25.078125 14.550781 24.542969 12.667969 C 23.234375 12.40625 21.929688 12.144531 20.582031 11.875 C 21.628906 11.613281 22.671875 11.351562 23.75 11.082031 C 23.226562 10.332031 22.703125 9.582031 22.167969 8.808594 C 20.582031 6.332031 20.582031 6.332031 20.582031 4.75 C 19.277344 5.011719 17.972656 5.273438 16.625 5.542969 C 16.363281 4.757812 16.101562 3.972656 15.832031 3.167969 Z M 15.832031 3.167969 " />
|
|
226
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(83.529412%,83.529412%,83.529412%);fill-opacity:1;"
|
|
227
|
-
d="M 19.792969 19.792969 C 24.234375 19.792969 28.675781 19.792969 33.25 19.792969 C 32.457031 26.125 32.457031 26.125 30.875 28.5 C 30.351562 28.5 29.828125 28.5 29.292969 28.5 C 29.03125 29.285156 28.769531 30.066406 28.5 30.875 C 25.070312 33.25 25.070312 33.25 22.957031 33.25 C 22.957031 33.773438 22.957031 34.296875 22.957031 34.832031 C 20.605469 34.832031 18.253906 34.832031 15.832031 34.832031 C 16.617188 33.65625 16.617188 33.65625 17.417969 32.457031 C 18.460938 32.457031 19.507812 32.457031 20.582031 32.457031 C 22.390625 30.144531 22.390625 30.144531 23.75 27.707031 C 23.097656 27.429688 22.445312 27.152344 21.769531 26.867188 C 21.117188 26.359375 20.464844 25.855469 19.792969 25.332031 C 19.792969 23.503906 19.792969 21.675781 19.792969 19.792969 Z M 19.792969 19.792969 " />
|
|
228
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(72.156863%,72.156863%,72.156863%);fill-opacity:1;"
|
|
229
|
-
d="M 17.417969 4.75 C 18.460938 4.75 19.507812 4.75 20.582031 4.75 C 22.265625 6.925781 22.265625 6.925781 23.75 9.5 C 24.058594 10.007812 24.371094 10.511719 24.691406 11.035156 C 25.332031 12.667969 25.332031 12.667969 26.125 18.207031 C 21.421875 18.207031 16.71875 18.207031 11.875 18.207031 C 12.773438 11.90625 12.773438 11.90625 14.25 9.5 C 14.738281 8.652344 15.230469 7.800781 15.734375 6.925781 C 16.289062 6.207031 16.84375 5.488281 17.417969 4.75 Z M 17.417969 4.75 " />
|
|
230
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(78.823529%,78.823529%,78.823529%);fill-opacity:1;"
|
|
231
|
-
d="M 11.875 18.207031 C 16.578125 18.207031 21.28125 18.207031 26.125 18.207031 C 26.125 18.730469 26.125 19.253906 26.125 19.792969 C 24.035156 19.792969 21.945312 19.792969 19.792969 19.792969 C 19.792969 21.621094 19.792969 23.449219 19.792969 25.332031 C 20.28125 25.429688 20.769531 25.527344 21.277344 25.628906 C 22.957031 26.125 22.957031 26.125 24.542969 27.707031 C 23.234375 29.535156 21.929688 31.367188 20.582031 33.25 C 19.539062 32.988281 18.492188 32.726562 17.417969 32.457031 C 17.679688 30.367188 17.9375 28.277344 18.207031 26.125 C 17.164062 25.863281 16.117188 25.601562 15.042969 25.332031 C 16.085938 25.332031 17.132812 25.332031 18.207031 25.332031 C 18.207031 23.503906 18.207031 21.675781 18.207031 19.792969 C 16.117188 19.792969 14.027344 19.792969 11.875 19.792969 C 11.875 19.269531 11.875 18.746094 11.875 18.207031 Z M 11.875 18.207031 " />
|
|
232
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(80.392157%,80.392157%,80.392157%);fill-opacity:1;"
|
|
233
|
-
d="M 5.542969 9.5 C 6.0625 9.5 6.585938 9.5 7.125 9.5 C 6.757812 10.332031 6.757812 10.332031 6.382812 11.183594 C 5.515625 13.527344 5.09375 15.734375 4.75 18.207031 C 6.839844 18.207031 8.929688 18.207031 11.082031 18.207031 C 11.082031 18.730469 11.082031 19.253906 11.082031 19.792969 C 8.992188 19.792969 6.902344 19.792969 4.75 19.792969 C 5.535156 22.664062 6.316406 25.539062 7.125 28.5 C 7.648438 28.5 8.171875 28.5 8.707031 28.5 C 9.78125 29.539062 10.835938 30.597656 11.875 31.667969 C 12.917969 32.476562 13.96875 33.273438 15.042969 34.042969 C 10.839844 33.785156 8.28125 31.484375 5.542969 28.5 C 2.789062 23.96875 2.5625 19.417969 3.167969 14.25 C 4.355469 11.332031 4.355469 11.332031 5.542969 9.5 Z M 5.542969 9.5 " />
|
|
234
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.137255%,3.137255%,3.137255%);fill-opacity:1;"
|
|
235
|
-
d="M 30.875 9.5 C 33.179688 12.402344 33.503906 14.5625 33.25 18.207031 C 31.160156 18.207031 29.070312 18.207031 26.917969 18.207031 C 26.65625 15.855469 26.394531 13.503906 26.125 11.082031 C 28.5 9.5 28.5 9.5 30.875 9.5 Z M 30.875 9.5 " />
|
|
236
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.137255%,3.137255%,3.137255%);fill-opacity:1;"
|
|
237
|
-
d="M 7.125 9.5 C 8.84375 9.902344 10.292969 10.292969 11.875 11.082031 C 11.613281 13.433594 11.351562 15.785156 11.082031 18.207031 C 8.992188 18.207031 6.902344 18.207031 4.75 18.207031 C 4.492188 14.507812 4.984375 12.535156 7.125 9.5 Z M 7.125 9.5 " />
|
|
238
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.921569%,3.921569%,3.921569%);fill-opacity:1;"
|
|
239
|
-
d="M 26.917969 19.792969 C 29.007812 19.792969 31.097656 19.792969 33.25 19.792969 C 32.761719 25.734375 32.761719 25.734375 31.222656 27.707031 C 30.65625 28.101562 30.65625 28.101562 30.082031 28.5 C 28.125 27.714844 28.125 27.714844 26.125 26.917969 C 26.386719 24.566406 26.648438 22.214844 26.917969 19.792969 Z M 26.917969 19.792969 " />
|
|
240
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.529412%,3.529412%,3.529412%);fill-opacity:1;"
|
|
241
|
-
d="M 4.75 19.792969 C 6.839844 19.792969 8.929688 19.792969 11.082031 19.792969 C 11.34375 22.144531 11.605469 24.496094 11.875 26.917969 C 10.308594 27.179688 8.738281 27.4375 7.125 27.707031 C 5.21875 24.929688 4.460938 23.175781 4.75 19.792969 Z M 4.75 19.792969 " />
|
|
242
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(89.019608%,89.019608%,89.019608%);fill-opacity:1;"
|
|
243
|
-
d="M 15.832031 3.167969 C 17.921875 3.167969 20.011719 3.167969 22.167969 3.167969 C 22.265625 3.828125 22.265625 3.828125 22.363281 4.503906 C 23.136719 6.882812 24.546875 8.371094 26.125 10.292969 C 27.027344 13 26.996094 15.109375 26.964844 17.960938 C 26.960938 18.894531 26.953125 19.828125 26.945312 20.789062 C 26.933594 21.507812 26.925781 22.222656 26.917969 22.957031 C 26.65625 22.957031 26.394531 22.957031 26.125 22.957031 C 25.601562 19.5625 25.078125 16.164062 24.542969 12.667969 C 23.234375 12.40625 21.929688 12.144531 20.582031 11.875 C 21.628906 11.613281 22.671875 11.351562 23.75 11.082031 C 23.226562 10.332031 22.703125 9.582031 22.167969 8.808594 C 20.582031 6.332031 20.582031 6.332031 20.582031 4.75 C 19.277344 5.011719 17.972656 5.273438 16.625 5.542969 C 16.363281 4.757812 16.101562 3.972656 15.832031 3.167969 Z M 15.832031 3.167969 " />
|
|
244
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(1.568627%,1.568627%,1.568627%);fill-opacity:1;"
|
|
245
|
-
d="M 25.332031 12.667969 C 25.59375 14.496094 25.855469 16.324219 26.125 18.207031 C 24.035156 18.207031 21.945312 18.207031 19.792969 18.207031 C 19.792969 16.378906 19.792969 14.550781 19.792969 12.667969 C 22.273438 11.839844 22.949219 11.925781 25.332031 12.667969 Z M 25.332031 12.667969 " />
|
|
246
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(1.176471%,1.176471%,1.176471%);fill-opacity:1;"
|
|
247
|
-
d="M 13.457031 11.875 C 15.046875 12.101562 16.632812 12.363281 18.207031 12.667969 C 18.207031 14.496094 18.207031 16.324219 18.207031 18.207031 C 16.117188 18.207031 14.027344 18.207031 11.875 18.207031 C 12.566406 12.765625 12.566406 12.765625 13.457031 11.875 Z M 13.457031 11.875 " />
|
|
248
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.137255%,3.137255%,3.137255%);fill-opacity:1;"
|
|
249
|
-
d="M 19.792969 19.792969 C 21.882812 19.792969 23.972656 19.792969 26.125 19.792969 C 25.863281 21.621094 25.601562 23.449219 25.332031 25.332031 C 23.503906 25.332031 21.675781 25.332031 19.792969 25.332031 C 19.792969 23.503906 19.792969 21.675781 19.792969 19.792969 Z M 19.792969 19.792969 " />
|
|
250
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.137255%,3.137255%,3.137255%);fill-opacity:1;"
|
|
251
|
-
d="M 11.875 19.792969 C 13.964844 19.792969 16.054688 19.792969 18.207031 19.792969 C 18.207031 21.621094 18.207031 23.449219 18.207031 25.332031 C 16.378906 25.332031 14.550781 25.332031 12.667969 25.332031 C 12.40625 23.503906 12.144531 21.675781 11.875 19.792969 Z M 11.875 19.792969 " />
|
|
252
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(6.27451%,6.27451%,6.27451%);fill-opacity:1;"
|
|
253
|
-
d="M 25.332031 27.707031 C 27.292969 28.492188 27.292969 28.492188 29.292969 29.292969 C 27.046875 31.867188 25.582031 32.871094 22.167969 33.25 C 23.210938 31.421875 24.257812 29.59375 25.332031 27.707031 Z M 25.332031 27.707031 " />
|
|
254
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(6.27451%,6.27451%,6.27451%);fill-opacity:1;"
|
|
255
|
-
d="M 11.082031 27.707031 C 13.457031 28.5 13.457031 28.5 14.792969 30.925781 C 15.136719 31.691406 15.480469 32.460938 15.832031 33.25 C 12.417969 32.871094 10.953125 31.867188 8.707031 29.292969 C 9.492188 28.769531 10.277344 28.246094 11.082031 27.707031 Z M 11.082031 27.707031 " />
|
|
256
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(10.588235%,10.588235%,10.588235%);fill-opacity:1;"
|
|
257
|
-
d="M 15.832031 4.75 C 14.808594 7.035156 13.726562 8.605469 11.875 10.292969 C 10.828125 9.507812 9.785156 8.722656 8.707031 7.917969 C 13.160156 4.75 13.160156 4.75 15.832031 4.75 Z M 15.832031 4.75 " />
|
|
258
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(6.27451%,6.27451%,6.27451%);fill-opacity:1;"
|
|
259
|
-
d="M 19.792969 26.125 C 22.144531 26.515625 22.144531 26.515625 24.542969 26.917969 C 23.496094 28.746094 22.453125 30.574219 21.375 32.457031 C 20.851562 32.457031 20.328125 32.457031 19.792969 32.457031 C 19.792969 30.367188 19.792969 28.277344 19.792969 26.125 Z M 19.792969 26.125 " />
|
|
260
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(9.411765%,9.411765%,9.411765%);fill-opacity:1;"
|
|
261
|
-
d="M 22.167969 4.75 C 25.15625 5.613281 27.289062 6.261719 29.292969 8.707031 C 27.984375 9.230469 26.679688 9.753906 25.332031 10.292969 C 22.167969 6.53125 22.167969 6.53125 22.167969 4.75 Z M 22.167969 4.75 " />
|
|
262
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.529412%,3.529412%,3.529412%);fill-opacity:1;"
|
|
263
|
-
d="M 18.207031 26.125 C 18.207031 28.214844 18.207031 30.304688 18.207031 32.457031 C 14.347656 28.699219 14.347656 28.699219 13.457031 26.917969 C 15.101562 26.476562 16.5 26.125 18.207031 26.125 Z M 18.207031 26.125 " />
|
|
264
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.529412%,3.529412%,3.529412%);fill-opacity:1;"
|
|
265
|
-
d="M 19.792969 5.542969 C 21.144531 6.828125 22.464844 8.148438 23.75 9.5 C 23.75 10.023438 23.75 10.546875 23.75 11.082031 C 22.445312 11.082031 21.136719 11.082031 19.792969 11.082031 C 19.792969 9.253906 19.792969 7.425781 19.792969 5.542969 Z M 19.792969 5.542969 " />
|
|
266
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.529412%,3.529412%,3.529412%);fill-opacity:1;"
|
|
267
|
-
d="M 17.417969 5.542969 C 17.679688 5.542969 17.9375 5.542969 18.207031 5.542969 C 18.207031 7.371094 18.207031 9.199219 18.207031 11.082031 C 16.902344 11.082031 15.597656 11.082031 14.25 11.082031 C 15.101562 8.777344 15.65625 7.300781 17.417969 5.542969 Z M 17.417969 5.542969 " />
|
|
268
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(72.941176%,72.941176%,72.941176%);fill-opacity:1;"
|
|
269
|
-
d="M 12.667969 27.707031 C 15.625 28.695312 15.980469 29.792969 17.417969 32.457031 C 16.632812 33.632812 16.632812 33.632812 15.832031 34.832031 C 15.3125 34.570312 14.789062 34.3125 14.25 34.042969 C 14.511719 33.519531 14.773438 32.996094 15.042969 32.457031 C 14.300781 30.851562 13.511719 29.265625 12.667969 27.707031 Z M 12.667969 27.707031 " />
|
|
270
|
-
</g>
|
|
271
|
-
</svg> -->
|
|
272
|
-
</atomic-result-section-visual>
|
|
273
|
-
|
|
274
|
-
<atomic-result-section-title>
|
|
275
|
-
<div class="title-date">
|
|
276
|
-
<atomic-result-link> <a slot="attributes" target="_blank"></a></atomic-result-link>
|
|
277
|
-
</div>
|
|
278
|
-
</atomic-result-section-title>
|
|
279
|
-
|
|
280
|
-
<atomic-result-section-excerpt>
|
|
281
|
-
<atomic-result-text field="excerpt"></atomic-result-text>
|
|
282
|
-
</atomic-result-section-excerpt>
|
|
283
|
-
|
|
284
|
-
<atomic-result-section-bottom-metadata>
|
|
285
|
-
<atomic-field-condition must-match-sourcetype="SharePointOnline">
|
|
286
|
-
<span>
|
|
287
|
-
<atomic-text value="Date: "></atomic-text>
|
|
288
|
-
<atomic-result-date></atomic-result-date>
|
|
289
|
-
</span><span>
|
|
290
|
-
<atomic-text value="Source: "></atomic-text><atomic-result-text field="sourcetype"></atomic-result-text>
|
|
291
|
-
</span><span> <atomic-text value="Sharepoint: "></atomic-text>
|
|
292
|
-
<atomic-result-link><a slot="attributes" target="_blank"></a>
|
|
293
|
-
<atomic-result-text field="spsitename"></atomic-result-text>
|
|
294
|
-
</atomic-result-link>
|
|
295
|
-
</span>
|
|
296
|
-
</atomic-field-condition>
|
|
297
|
-
</atomic-result-section-bottom-metadata>`,NA=`<style>
|
|
298
|
-
.field {
|
|
299
|
-
display: inline-flex;
|
|
300
|
-
align-items: center;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.field-label {
|
|
304
|
-
font-weight: bold;
|
|
305
|
-
margin-right: 0.25rem;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.title-date {
|
|
309
|
-
display: grid;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
atomic-result-section-title a:visited {
|
|
313
|
-
color: black !important;
|
|
314
|
-
|
|
315
|
-
}
|
|
316
|
-
atomic-result-section-excerpt {
|
|
317
|
-
font-size: 1.3rem !important;
|
|
318
|
-
margin-top:0.875rem !important;
|
|
319
|
-
max-height: unset !important;
|
|
320
|
-
line-height: normal !important;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
atomic-result-section-bottom-metadata a{
|
|
324
|
-
color: #A6A6A6 !important;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
atomic-result-section-bottom-metadata {
|
|
328
|
-
color: #A6A6A6 !important;
|
|
329
|
-
margin-right: 3px;
|
|
330
|
-
margin-right: 2px;
|
|
331
|
-
font-size: 1rem !important;
|
|
332
|
-
line-height: 18px !important;
|
|
333
|
-
display: grid;
|
|
334
|
-
grid-template-columns: auto auto auto;
|
|
335
|
-
gap: 1rem;
|
|
336
|
-
align-items: center;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
atomic-result-section-title a {
|
|
342
|
-
color: #CAA144 !important;
|
|
343
|
-
font-size: 1.7rem !important;
|
|
344
|
-
max-height: unset !important;
|
|
345
|
-
line-height: normal !important;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
atomic-result-section-visual {
|
|
350
|
-
width: 3rem !important;
|
|
351
|
-
height: 5rem !important;
|
|
352
|
-
display: grid;
|
|
353
|
-
align-items: center;
|
|
354
|
-
justify-content: center;
|
|
355
|
-
|
|
356
|
-
}
|
|
357
|
-
atomic-result-section-bottom-metadata span {
|
|
358
|
-
display: flex;
|
|
359
|
-
align-items: center;
|
|
360
|
-
}
|
|
361
|
-
atomic-result-date{
|
|
362
|
-
font-size:1.0rem;
|
|
363
|
-
}
|
|
364
|
-
</style>
|
|
365
|
-
|
|
366
|
-
<atomic-result-section-visual>
|
|
367
|
-
<img src="https://cdn.jsdelivr.net/npm/@coveops/abi@latest/dist/abi/images/Default.png" alt="Image">
|
|
368
|
-
<!-- <atomic-icon class="icon"></atomic-icon>
|
|
369
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
370
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="55px" height="55px" viewBox="0 0 65 65" version="1.1">
|
|
371
|
-
<g id="surface1">
|
|
372
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(1.176471%,1.176471%,1.176471%);fill-opacity:1;" d="M 10.785156 -0.527344 C 11.4375 -0.53125 12.09375 -0.535156 12.765625 -0.539062 C 14.140625 -0.539062 15.515625 -0.53125 16.890625 -0.515625 C 18.992188 -0.496094 21.09375 -0.515625 23.191406 -0.542969 C 24.535156 -0.539062 25.875 -0.535156 27.214844 -0.527344 C 28.152344 -0.539062 28.152344 -0.539062 29.109375 -0.550781 C 32.25 -0.484375 33.738281 -0.203125 36.414062 1.585938 C 38.53125 4.75 38.574219 7.054688 38.527344 10.785156 C 38.53125 11.4375 38.535156 12.09375 38.539062 12.765625 C 38.539062 14.140625 38.53125 15.515625 38.515625 16.890625 C 38.496094 18.992188 38.515625 21.09375 38.542969 23.191406 C 38.539062 24.535156 38.535156 25.875 38.527344 27.214844 C 38.535156 27.839844 38.542969 28.464844 38.550781 29.109375 C 38.484375 32.25 38.203125 33.738281 36.414062 36.414062 C 33.25 38.53125 30.945312 38.574219 27.214844 38.527344 C 26.234375 38.53125 26.234375 38.53125 25.234375 38.539062 C 23.859375 38.539062 22.484375 38.53125 21.109375 38.515625 C 19.007812 38.496094 16.90625 38.515625 14.804688 38.542969 C 13.464844 38.539062 12.125 38.535156 10.785156 38.527344 C 10.160156 38.535156 9.535156 38.542969 8.890625 38.550781 C 5.75 38.484375 4.261719 38.203125 1.585938 36.414062 C -0.53125 33.25 -0.574219 30.945312 -0.527344 27.214844 C -0.53125 26.5625 -0.535156 25.90625 -0.539062 25.234375 C -0.539062 23.859375 -0.53125 22.484375 -0.515625 21.109375 C -0.496094 19.007812 -0.515625 16.90625 -0.542969 14.804688 C -0.539062 13.464844 -0.535156 12.125 -0.527344 10.785156 C -0.535156 10.160156 -0.542969 9.535156 -0.550781 8.890625 C -0.484375 5.75 -0.203125 4.261719 1.585938 1.585938 C 4.75 -0.53125 7.054688 -0.574219 10.785156 -0.527344 Z M 10.785156 -0.527344 "/>
|
|
373
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(83.921569%,83.921569%,83.921569%);fill-opacity:1;" d="M 24.796875 3.710938 C 29.566406 5.886719 32.808594 9.382812 34.832031 14.25 C 35.578125 19.839844 35.054688 24.695312 31.667969 29.292969 C 29.167969 32.035156 26.738281 33.707031 22.957031 34.042969 C 23.5625 33.566406 24.167969 33.09375 24.789062 32.605469 C 26.847656 31 26.847656 31 28.253906 29.488281 C 29.292969 28.5 29.292969 28.5 30.875 28.5 C 32.050781 24.1875 32.050781 24.1875 33.25 19.792969 C 31.160156 19.792969 29.070312 19.792969 26.917969 19.792969 C 26.65625 20.835938 26.394531 21.882812 26.125 22.957031 C 26.125 21.914062 26.125 20.867188 26.125 19.792969 C 24.035156 19.792969 21.945312 19.792969 19.792969 19.792969 C 19.792969 21.621094 19.792969 23.449219 19.792969 25.332031 C 20.28125 25.429688 20.769531 25.527344 21.277344 25.628906 C 22.957031 26.125 22.957031 26.125 24.542969 27.707031 C 23.234375 29.535156 21.929688 31.367188 20.582031 33.25 C 19.539062 32.988281 18.492188 32.726562 17.417969 32.457031 C 17.679688 30.367188 17.9375 28.277344 18.207031 26.125 C 17.164062 25.863281 16.117188 25.601562 15.042969 25.332031 C 16.085938 25.332031 17.132812 25.332031 18.207031 25.332031 C 18.207031 23.503906 18.207031 21.675781 18.207031 19.792969 C 16.117188 19.792969 14.027344 19.792969 11.875 19.792969 C 11.875 21.097656 11.875 22.402344 11.875 23.75 C 11.613281 23.75 11.351562 23.75 11.082031 23.75 C 11.082031 22.445312 11.082031 21.136719 11.082031 19.792969 C 8.992188 19.792969 6.902344 19.792969 4.75 19.792969 C 5.535156 22.664062 6.316406 25.539062 7.125 28.5 C 7.648438 28.5 8.171875 28.5 8.707031 28.5 C 9.78125 29.539062 10.835938 30.597656 11.875 31.667969 C 12.917969 32.476562 13.96875 33.273438 15.042969 34.042969 C 10.839844 33.785156 8.28125 31.484375 5.542969 28.5 C 2.808594 24.003906 2.378906 19.386719 3.167969 14.25 C 6.851562 5.152344 15.371094 0.917969 24.796875 3.710938 Z M 24.796875 3.710938 "/>
|
|
374
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(75.294118%,75.294118%,75.294118%);fill-opacity:1;" d="M 4.75 19.792969 C 9.191406 19.792969 13.632812 19.792969 18.207031 19.792969 C 18.207031 23.972656 18.207031 28.152344 18.207031 32.457031 C 18.992188 32.457031 19.777344 32.457031 20.582031 32.457031 C 22.335938 30.128906 22.335938 30.128906 23.75 27.707031 C 23.097656 27.429688 22.445312 27.152344 21.769531 26.867188 C 21.117188 26.359375 20.464844 25.855469 19.792969 25.332031 C 19.792969 23.503906 19.792969 21.675781 19.792969 19.792969 C 24.234375 19.792969 28.675781 19.792969 33.25 19.792969 C 32.457031 26.125 32.457031 26.125 30.875 28.5 C 30.351562 28.5 29.828125 28.5 29.292969 28.5 C 29.03125 29.285156 28.769531 30.066406 28.5 30.875 C 25.070312 33.25 25.070312 33.25 22.957031 33.25 C 22.957031 33.773438 22.957031 34.296875 22.957031 34.832031 C 14.914062 35.332031 14.914062 35.332031 12.269531 33.347656 C 11.878906 32.792969 11.488281 32.238281 11.082031 31.667969 C 10.300781 31.144531 9.515625 30.621094 8.707031 30.082031 C 8.707031 29.5625 8.707031 29.039062 8.707031 28.5 C 8.1875 28.5 7.664062 28.5 7.125 28.5 C 5.269531 25.171875 4.75 23.742188 4.75 19.792969 Z M 4.75 19.792969 "/>
|
|
375
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(80.784314%,80.784314%,80.784314%);fill-opacity:1;" d="M 15.832031 3.167969 C 21.050781 2.730469 24.960938 3.25 29.292969 6.332031 C 32.199219 9.09375 34.5625 12.214844 35.097656 16.242188 C 35.179688 21.960938 34.46875 26.214844 30.539062 30.53125 C 28.171875 32.675781 26.136719 33.761719 22.957031 34.042969 C 23.5625 33.566406 24.167969 33.09375 24.789062 32.605469 C 26.847656 31 26.847656 31 28.253906 29.488281 C 29.292969 28.5 29.292969 28.5 30.875 28.5 C 31.660156 25.625 32.441406 22.753906 33.25 19.792969 C 31.160156 19.792969 29.070312 19.792969 26.917969 19.792969 C 26.65625 20.835938 26.394531 21.882812 26.125 22.957031 C 26.125 21.914062 26.125 20.867188 26.125 19.792969 C 24.035156 19.792969 21.945312 19.792969 19.792969 19.792969 C 19.792969 21.621094 19.792969 23.449219 19.792969 25.332031 C 20.28125 25.429688 20.769531 25.527344 21.277344 25.628906 C 22.957031 26.125 22.957031 26.125 24.542969 27.707031 C 23.234375 29.535156 21.929688 31.367188 20.582031 33.25 C 19.539062 32.988281 18.492188 32.726562 17.417969 32.457031 C 17.679688 30.367188 17.9375 28.277344 18.207031 26.125 C 17.164062 25.863281 16.117188 25.601562 15.042969 25.332031 C 16.085938 25.332031 17.132812 25.332031 18.207031 25.332031 C 18.207031 23.503906 18.207031 21.675781 18.207031 19.792969 C 16.117188 19.792969 14.027344 19.792969 11.875 19.792969 C 11.875 19.269531 11.875 18.746094 11.875 18.207031 C 16.578125 18.207031 21.28125 18.207031 26.125 18.207031 C 25.601562 16.378906 25.078125 14.550781 24.542969 12.667969 C 23.234375 12.40625 21.929688 12.144531 20.582031 11.875 C 21.628906 11.613281 22.671875 11.351562 23.75 11.082031 C 23.226562 10.332031 22.703125 9.582031 22.167969 8.808594 C 20.582031 6.332031 20.582031 6.332031 20.582031 4.75 C 19.277344 5.011719 17.972656 5.273438 16.625 5.542969 C 16.363281 4.757812 16.101562 3.972656 15.832031 3.167969 Z M 15.832031 3.167969 "/>
|
|
376
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(83.529412%,83.529412%,83.529412%);fill-opacity:1;" d="M 19.792969 19.792969 C 24.234375 19.792969 28.675781 19.792969 33.25 19.792969 C 32.457031 26.125 32.457031 26.125 30.875 28.5 C 30.351562 28.5 29.828125 28.5 29.292969 28.5 C 29.03125 29.285156 28.769531 30.066406 28.5 30.875 C 25.070312 33.25 25.070312 33.25 22.957031 33.25 C 22.957031 33.773438 22.957031 34.296875 22.957031 34.832031 C 20.605469 34.832031 18.253906 34.832031 15.832031 34.832031 C 16.617188 33.65625 16.617188 33.65625 17.417969 32.457031 C 18.460938 32.457031 19.507812 32.457031 20.582031 32.457031 C 22.390625 30.144531 22.390625 30.144531 23.75 27.707031 C 23.097656 27.429688 22.445312 27.152344 21.769531 26.867188 C 21.117188 26.359375 20.464844 25.855469 19.792969 25.332031 C 19.792969 23.503906 19.792969 21.675781 19.792969 19.792969 Z M 19.792969 19.792969 "/>
|
|
377
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(72.156863%,72.156863%,72.156863%);fill-opacity:1;" d="M 17.417969 4.75 C 18.460938 4.75 19.507812 4.75 20.582031 4.75 C 22.265625 6.925781 22.265625 6.925781 23.75 9.5 C 24.058594 10.007812 24.371094 10.511719 24.691406 11.035156 C 25.332031 12.667969 25.332031 12.667969 26.125 18.207031 C 21.421875 18.207031 16.71875 18.207031 11.875 18.207031 C 12.773438 11.90625 12.773438 11.90625 14.25 9.5 C 14.738281 8.652344 15.230469 7.800781 15.734375 6.925781 C 16.289062 6.207031 16.84375 5.488281 17.417969 4.75 Z M 17.417969 4.75 "/>
|
|
378
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(78.823529%,78.823529%,78.823529%);fill-opacity:1;" d="M 11.875 18.207031 C 16.578125 18.207031 21.28125 18.207031 26.125 18.207031 C 26.125 18.730469 26.125 19.253906 26.125 19.792969 C 24.035156 19.792969 21.945312 19.792969 19.792969 19.792969 C 19.792969 21.621094 19.792969 23.449219 19.792969 25.332031 C 20.28125 25.429688 20.769531 25.527344 21.277344 25.628906 C 22.957031 26.125 22.957031 26.125 24.542969 27.707031 C 23.234375 29.535156 21.929688 31.367188 20.582031 33.25 C 19.539062 32.988281 18.492188 32.726562 17.417969 32.457031 C 17.679688 30.367188 17.9375 28.277344 18.207031 26.125 C 17.164062 25.863281 16.117188 25.601562 15.042969 25.332031 C 16.085938 25.332031 17.132812 25.332031 18.207031 25.332031 C 18.207031 23.503906 18.207031 21.675781 18.207031 19.792969 C 16.117188 19.792969 14.027344 19.792969 11.875 19.792969 C 11.875 19.269531 11.875 18.746094 11.875 18.207031 Z M 11.875 18.207031 "/>
|
|
379
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(80.392157%,80.392157%,80.392157%);fill-opacity:1;" d="M 5.542969 9.5 C 6.0625 9.5 6.585938 9.5 7.125 9.5 C 6.757812 10.332031 6.757812 10.332031 6.382812 11.183594 C 5.515625 13.527344 5.09375 15.734375 4.75 18.207031 C 6.839844 18.207031 8.929688 18.207031 11.082031 18.207031 C 11.082031 18.730469 11.082031 19.253906 11.082031 19.792969 C 8.992188 19.792969 6.902344 19.792969 4.75 19.792969 C 5.535156 22.664062 6.316406 25.539062 7.125 28.5 C 7.648438 28.5 8.171875 28.5 8.707031 28.5 C 9.78125 29.539062 10.835938 30.597656 11.875 31.667969 C 12.917969 32.476562 13.96875 33.273438 15.042969 34.042969 C 10.839844 33.785156 8.28125 31.484375 5.542969 28.5 C 2.789062 23.96875 2.5625 19.417969 3.167969 14.25 C 4.355469 11.332031 4.355469 11.332031 5.542969 9.5 Z M 5.542969 9.5 "/>
|
|
380
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.137255%,3.137255%,3.137255%);fill-opacity:1;" d="M 30.875 9.5 C 33.179688 12.402344 33.503906 14.5625 33.25 18.207031 C 31.160156 18.207031 29.070312 18.207031 26.917969 18.207031 C 26.65625 15.855469 26.394531 13.503906 26.125 11.082031 C 28.5 9.5 28.5 9.5 30.875 9.5 Z M 30.875 9.5 "/>
|
|
381
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.137255%,3.137255%,3.137255%);fill-opacity:1;" d="M 7.125 9.5 C 8.84375 9.902344 10.292969 10.292969 11.875 11.082031 C 11.613281 13.433594 11.351562 15.785156 11.082031 18.207031 C 8.992188 18.207031 6.902344 18.207031 4.75 18.207031 C 4.492188 14.507812 4.984375 12.535156 7.125 9.5 Z M 7.125 9.5 "/>
|
|
382
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.921569%,3.921569%,3.921569%);fill-opacity:1;" d="M 26.917969 19.792969 C 29.007812 19.792969 31.097656 19.792969 33.25 19.792969 C 32.761719 25.734375 32.761719 25.734375 31.222656 27.707031 C 30.65625 28.101562 30.65625 28.101562 30.082031 28.5 C 28.125 27.714844 28.125 27.714844 26.125 26.917969 C 26.386719 24.566406 26.648438 22.214844 26.917969 19.792969 Z M 26.917969 19.792969 "/>
|
|
383
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.529412%,3.529412%,3.529412%);fill-opacity:1;" d="M 4.75 19.792969 C 6.839844 19.792969 8.929688 19.792969 11.082031 19.792969 C 11.34375 22.144531 11.605469 24.496094 11.875 26.917969 C 10.308594 27.179688 8.738281 27.4375 7.125 27.707031 C 5.21875 24.929688 4.460938 23.175781 4.75 19.792969 Z M 4.75 19.792969 "/>
|
|
384
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(89.019608%,89.019608%,89.019608%);fill-opacity:1;" d="M 15.832031 3.167969 C 17.921875 3.167969 20.011719 3.167969 22.167969 3.167969 C 22.265625 3.828125 22.265625 3.828125 22.363281 4.503906 C 23.136719 6.882812 24.546875 8.371094 26.125 10.292969 C 27.027344 13 26.996094 15.109375 26.964844 17.960938 C 26.960938 18.894531 26.953125 19.828125 26.945312 20.789062 C 26.933594 21.507812 26.925781 22.222656 26.917969 22.957031 C 26.65625 22.957031 26.394531 22.957031 26.125 22.957031 C 25.601562 19.5625 25.078125 16.164062 24.542969 12.667969 C 23.234375 12.40625 21.929688 12.144531 20.582031 11.875 C 21.628906 11.613281 22.671875 11.351562 23.75 11.082031 C 23.226562 10.332031 22.703125 9.582031 22.167969 8.808594 C 20.582031 6.332031 20.582031 6.332031 20.582031 4.75 C 19.277344 5.011719 17.972656 5.273438 16.625 5.542969 C 16.363281 4.757812 16.101562 3.972656 15.832031 3.167969 Z M 15.832031 3.167969 "/>
|
|
385
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(1.568627%,1.568627%,1.568627%);fill-opacity:1;" d="M 25.332031 12.667969 C 25.59375 14.496094 25.855469 16.324219 26.125 18.207031 C 24.035156 18.207031 21.945312 18.207031 19.792969 18.207031 C 19.792969 16.378906 19.792969 14.550781 19.792969 12.667969 C 22.273438 11.839844 22.949219 11.925781 25.332031 12.667969 Z M 25.332031 12.667969 "/>
|
|
386
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(1.176471%,1.176471%,1.176471%);fill-opacity:1;" d="M 13.457031 11.875 C 15.046875 12.101562 16.632812 12.363281 18.207031 12.667969 C 18.207031 14.496094 18.207031 16.324219 18.207031 18.207031 C 16.117188 18.207031 14.027344 18.207031 11.875 18.207031 C 12.566406 12.765625 12.566406 12.765625 13.457031 11.875 Z M 13.457031 11.875 "/>
|
|
387
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.137255%,3.137255%,3.137255%);fill-opacity:1;" d="M 19.792969 19.792969 C 21.882812 19.792969 23.972656 19.792969 26.125 19.792969 C 25.863281 21.621094 25.601562 23.449219 25.332031 25.332031 C 23.503906 25.332031 21.675781 25.332031 19.792969 25.332031 C 19.792969 23.503906 19.792969 21.675781 19.792969 19.792969 Z M 19.792969 19.792969 "/>
|
|
388
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.137255%,3.137255%,3.137255%);fill-opacity:1;" d="M 11.875 19.792969 C 13.964844 19.792969 16.054688 19.792969 18.207031 19.792969 C 18.207031 21.621094 18.207031 23.449219 18.207031 25.332031 C 16.378906 25.332031 14.550781 25.332031 12.667969 25.332031 C 12.40625 23.503906 12.144531 21.675781 11.875 19.792969 Z M 11.875 19.792969 "/>
|
|
389
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(6.27451%,6.27451%,6.27451%);fill-opacity:1;" d="M 25.332031 27.707031 C 27.292969 28.492188 27.292969 28.492188 29.292969 29.292969 C 27.046875 31.867188 25.582031 32.871094 22.167969 33.25 C 23.210938 31.421875 24.257812 29.59375 25.332031 27.707031 Z M 25.332031 27.707031 "/>
|
|
390
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(6.27451%,6.27451%,6.27451%);fill-opacity:1;" d="M 11.082031 27.707031 C 13.457031 28.5 13.457031 28.5 14.792969 30.925781 C 15.136719 31.691406 15.480469 32.460938 15.832031 33.25 C 12.417969 32.871094 10.953125 31.867188 8.707031 29.292969 C 9.492188 28.769531 10.277344 28.246094 11.082031 27.707031 Z M 11.082031 27.707031 "/>
|
|
391
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(10.588235%,10.588235%,10.588235%);fill-opacity:1;" d="M 15.832031 4.75 C 14.808594 7.035156 13.726562 8.605469 11.875 10.292969 C 10.828125 9.507812 9.785156 8.722656 8.707031 7.917969 C 13.160156 4.75 13.160156 4.75 15.832031 4.75 Z M 15.832031 4.75 "/>
|
|
392
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(6.27451%,6.27451%,6.27451%);fill-opacity:1;" d="M 19.792969 26.125 C 22.144531 26.515625 22.144531 26.515625 24.542969 26.917969 C 23.496094 28.746094 22.453125 30.574219 21.375 32.457031 C 20.851562 32.457031 20.328125 32.457031 19.792969 32.457031 C 19.792969 30.367188 19.792969 28.277344 19.792969 26.125 Z M 19.792969 26.125 "/>
|
|
393
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(9.411765%,9.411765%,9.411765%);fill-opacity:1;" d="M 22.167969 4.75 C 25.15625 5.613281 27.289062 6.261719 29.292969 8.707031 C 27.984375 9.230469 26.679688 9.753906 25.332031 10.292969 C 22.167969 6.53125 22.167969 6.53125 22.167969 4.75 Z M 22.167969 4.75 "/>
|
|
394
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.529412%,3.529412%,3.529412%);fill-opacity:1;" d="M 18.207031 26.125 C 18.207031 28.214844 18.207031 30.304688 18.207031 32.457031 C 14.347656 28.699219 14.347656 28.699219 13.457031 26.917969 C 15.101562 26.476562 16.5 26.125 18.207031 26.125 Z M 18.207031 26.125 "/>
|
|
395
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.529412%,3.529412%,3.529412%);fill-opacity:1;" d="M 19.792969 5.542969 C 21.144531 6.828125 22.464844 8.148438 23.75 9.5 C 23.75 10.023438 23.75 10.546875 23.75 11.082031 C 22.445312 11.082031 21.136719 11.082031 19.792969 11.082031 C 19.792969 9.253906 19.792969 7.425781 19.792969 5.542969 Z M 19.792969 5.542969 "/>
|
|
396
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.529412%,3.529412%,3.529412%);fill-opacity:1;" d="M 17.417969 5.542969 C 17.679688 5.542969 17.9375 5.542969 18.207031 5.542969 C 18.207031 7.371094 18.207031 9.199219 18.207031 11.082031 C 16.902344 11.082031 15.597656 11.082031 14.25 11.082031 C 15.101562 8.777344 15.65625 7.300781 17.417969 5.542969 Z M 17.417969 5.542969 "/>
|
|
397
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(72.941176%,72.941176%,72.941176%);fill-opacity:1;" d="M 12.667969 27.707031 C 15.625 28.695312 15.980469 29.792969 17.417969 32.457031 C 16.632812 33.632812 16.632812 33.632812 15.832031 34.832031 C 15.3125 34.570312 14.789062 34.3125 14.25 34.042969 C 14.511719 33.519531 14.773438 32.996094 15.042969 32.457031 C 14.300781 30.851562 13.511719 29.265625 12.667969 27.707031 Z M 12.667969 27.707031 "/>
|
|
398
|
-
</g>
|
|
399
|
-
</svg> -->
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
</atomic-result-section-visual>
|
|
403
|
-
|
|
404
|
-
<atomic-result-section-title>
|
|
405
|
-
<div class="title-date">
|
|
406
|
-
<atomic-result-link>
|
|
407
|
-
<a slot="attributes" target="_blank"></a>
|
|
408
|
-
<atomic-result-text field="PrintableUri"></atomic-result-text>
|
|
409
|
-
-
|
|
410
|
-
<atomic-result-text field="title"></atomic-result-text>
|
|
411
|
-
</atomic-result-link>
|
|
412
|
-
</div>
|
|
413
|
-
</atomic-result-section-title>
|
|
414
|
-
|
|
415
|
-
<atomic-result-section-excerpt>
|
|
416
|
-
<atomic-result-text field="description"></atomic-result-text>
|
|
417
|
-
<atomic-field-condition if-not-defined="description">
|
|
418
|
-
<atomic-result-text field="excerpt"></atomic-result-text>
|
|
419
|
-
</atomic-field-condition>
|
|
420
|
-
</atomic-result-section-excerpt>
|
|
421
|
-
|
|
422
|
-
<atomic-result-section-bottom-metadata>
|
|
423
|
-
<span>
|
|
424
|
-
<atomic-text value="Date: "></atomic-text>
|
|
425
|
-
<atomic-result-date></atomic-result-date>
|
|
426
|
-
</span><span>
|
|
427
|
-
<atomic-text value="Source: "></atomic-text><atomic-result-text field="sourcetype"></atomic-result-text>
|
|
428
|
-
</span><span> <atomic-text value="Sharepoint: "></atomic-text>
|
|
429
|
-
<atomic-result-link><a slot="attributes" target="_blank"></a>
|
|
430
|
-
<atomic-result-text field="PrintableUri"></atomic-result-text>
|
|
431
|
-
</atomic-result-link>
|
|
432
|
-
</span>
|
|
433
|
-
</atomic-result-section-bottom-metadata>`,QA=`<style>
|
|
434
|
-
.field {
|
|
435
|
-
display: inline-flex;
|
|
436
|
-
align-items: center;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
.field-label {
|
|
440
|
-
font-weight: bold;
|
|
441
|
-
margin-right: 0.25rem;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
atomic-result-section-excerpt {
|
|
446
|
-
font-size: 1.3rem !important;
|
|
447
|
-
margin-top: 0.875rem !important;
|
|
448
|
-
max-height: unset !important;
|
|
449
|
-
line-height: normal !important;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
atomic-result-section-bottom-metadata {
|
|
457
|
-
margin-top: 2px;
|
|
458
|
-
color: #A6A6A6 !important;
|
|
459
|
-
font-size: 1rem !important;
|
|
460
|
-
margin-right: 3px;
|
|
461
|
-
line-height: 18px !important;
|
|
462
|
-
display: grid;
|
|
463
|
-
grid-template-columns: 0.5fr 0.5fr 1fr;
|
|
464
|
-
gap: 5rem;
|
|
465
|
-
align-items: center;
|
|
466
|
-
}
|
|
467
|
-
atomic-result-section-title a {
|
|
468
|
-
color: #CAA144 !important;
|
|
469
|
-
font-size: 1.7rem !important;
|
|
470
|
-
max-height: unset !important;
|
|
471
|
-
line-height: normal !important;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
atomic-result-section-title a:visited {
|
|
475
|
-
color: black !important;
|
|
476
|
-
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
atomic-result-section-visual {
|
|
480
|
-
width: 3rem !important;
|
|
481
|
-
height: 5rem !important;
|
|
482
|
-
display: grid;
|
|
483
|
-
align-items: center;
|
|
484
|
-
justify-content: center;
|
|
485
|
-
|
|
486
|
-
}
|
|
487
|
-
atomic-result-date{
|
|
488
|
-
font-size:1.0rem;
|
|
489
|
-
}
|
|
490
|
-
</style>
|
|
491
|
-
|
|
492
|
-
<atomic-result-section-visual>
|
|
493
|
-
<atomic-field-condition must-match-source="ServiceNow - Knowledge">
|
|
494
|
-
<img src="https://cdn.jsdelivr.net/npm/@coveops/abi@latest/dist/abi/images/Default.png" alt="Image">
|
|
495
|
-
<!-- <atomic-icon class="icon"></atomic-icon> <?xml version="1.0" encoding="UTF-8"?>
|
|
496
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="55px" height="55px" viewBox="0 0 65 65" version="1.1">
|
|
497
|
-
<g id="surface1">
|
|
498
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(1.176471%,1.176471%,1.176471%);fill-opacity:1;" d="M 10.785156 -0.527344 C 11.4375 -0.53125 12.09375 -0.535156 12.765625 -0.539062 C 14.140625 -0.539062 15.515625 -0.53125 16.890625 -0.515625 C 18.992188 -0.496094 21.09375 -0.515625 23.191406 -0.542969 C 24.535156 -0.539062 25.875 -0.535156 27.214844 -0.527344 C 28.152344 -0.539062 28.152344 -0.539062 29.109375 -0.550781 C 32.25 -0.484375 33.738281 -0.203125 36.414062 1.585938 C 38.53125 4.75 38.574219 7.054688 38.527344 10.785156 C 38.53125 11.4375 38.535156 12.09375 38.539062 12.765625 C 38.539062 14.140625 38.53125 15.515625 38.515625 16.890625 C 38.496094 18.992188 38.515625 21.09375 38.542969 23.191406 C 38.539062 24.535156 38.535156 25.875 38.527344 27.214844 C 38.535156 27.839844 38.542969 28.464844 38.550781 29.109375 C 38.484375 32.25 38.203125 33.738281 36.414062 36.414062 C 33.25 38.53125 30.945312 38.574219 27.214844 38.527344 C 26.234375 38.53125 26.234375 38.53125 25.234375 38.539062 C 23.859375 38.539062 22.484375 38.53125 21.109375 38.515625 C 19.007812 38.496094 16.90625 38.515625 14.804688 38.542969 C 13.464844 38.539062 12.125 38.535156 10.785156 38.527344 C 10.160156 38.535156 9.535156 38.542969 8.890625 38.550781 C 5.75 38.484375 4.261719 38.203125 1.585938 36.414062 C -0.53125 33.25 -0.574219 30.945312 -0.527344 27.214844 C -0.53125 26.5625 -0.535156 25.90625 -0.539062 25.234375 C -0.539062 23.859375 -0.53125 22.484375 -0.515625 21.109375 C -0.496094 19.007812 -0.515625 16.90625 -0.542969 14.804688 C -0.539062 13.464844 -0.535156 12.125 -0.527344 10.785156 C -0.535156 10.160156 -0.542969 9.535156 -0.550781 8.890625 C -0.484375 5.75 -0.203125 4.261719 1.585938 1.585938 C 4.75 -0.53125 7.054688 -0.574219 10.785156 -0.527344 Z M 10.785156 -0.527344 "/>
|
|
499
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(83.921569%,83.921569%,83.921569%);fill-opacity:1;" d="M 24.796875 3.710938 C 29.566406 5.886719 32.808594 9.382812 34.832031 14.25 C 35.578125 19.839844 35.054688 24.695312 31.667969 29.292969 C 29.167969 32.035156 26.738281 33.707031 22.957031 34.042969 C 23.5625 33.566406 24.167969 33.09375 24.789062 32.605469 C 26.847656 31 26.847656 31 28.253906 29.488281 C 29.292969 28.5 29.292969 28.5 30.875 28.5 C 32.050781 24.1875 32.050781 24.1875 33.25 19.792969 C 31.160156 19.792969 29.070312 19.792969 26.917969 19.792969 C 26.65625 20.835938 26.394531 21.882812 26.125 22.957031 C 26.125 21.914062 26.125 20.867188 26.125 19.792969 C 24.035156 19.792969 21.945312 19.792969 19.792969 19.792969 C 19.792969 21.621094 19.792969 23.449219 19.792969 25.332031 C 20.28125 25.429688 20.769531 25.527344 21.277344 25.628906 C 22.957031 26.125 22.957031 26.125 24.542969 27.707031 C 23.234375 29.535156 21.929688 31.367188 20.582031 33.25 C 19.539062 32.988281 18.492188 32.726562 17.417969 32.457031 C 17.679688 30.367188 17.9375 28.277344 18.207031 26.125 C 17.164062 25.863281 16.117188 25.601562 15.042969 25.332031 C 16.085938 25.332031 17.132812 25.332031 18.207031 25.332031 C 18.207031 23.503906 18.207031 21.675781 18.207031 19.792969 C 16.117188 19.792969 14.027344 19.792969 11.875 19.792969 C 11.875 21.097656 11.875 22.402344 11.875 23.75 C 11.613281 23.75 11.351562 23.75 11.082031 23.75 C 11.082031 22.445312 11.082031 21.136719 11.082031 19.792969 C 8.992188 19.792969 6.902344 19.792969 4.75 19.792969 C 5.535156 22.664062 6.316406 25.539062 7.125 28.5 C 7.648438 28.5 8.171875 28.5 8.707031 28.5 C 9.78125 29.539062 10.835938 30.597656 11.875 31.667969 C 12.917969 32.476562 13.96875 33.273438 15.042969 34.042969 C 10.839844 33.785156 8.28125 31.484375 5.542969 28.5 C 2.808594 24.003906 2.378906 19.386719 3.167969 14.25 C 6.851562 5.152344 15.371094 0.917969 24.796875 3.710938 Z M 24.796875 3.710938 "/>
|
|
500
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(75.294118%,75.294118%,75.294118%);fill-opacity:1;" d="M 4.75 19.792969 C 9.191406 19.792969 13.632812 19.792969 18.207031 19.792969 C 18.207031 23.972656 18.207031 28.152344 18.207031 32.457031 C 18.992188 32.457031 19.777344 32.457031 20.582031 32.457031 C 22.335938 30.128906 22.335938 30.128906 23.75 27.707031 C 23.097656 27.429688 22.445312 27.152344 21.769531 26.867188 C 21.117188 26.359375 20.464844 25.855469 19.792969 25.332031 C 19.792969 23.503906 19.792969 21.675781 19.792969 19.792969 C 24.234375 19.792969 28.675781 19.792969 33.25 19.792969 C 32.457031 26.125 32.457031 26.125 30.875 28.5 C 30.351562 28.5 29.828125 28.5 29.292969 28.5 C 29.03125 29.285156 28.769531 30.066406 28.5 30.875 C 25.070312 33.25 25.070312 33.25 22.957031 33.25 C 22.957031 33.773438 22.957031 34.296875 22.957031 34.832031 C 14.914062 35.332031 14.914062 35.332031 12.269531 33.347656 C 11.878906 32.792969 11.488281 32.238281 11.082031 31.667969 C 10.300781 31.144531 9.515625 30.621094 8.707031 30.082031 C 8.707031 29.5625 8.707031 29.039062 8.707031 28.5 C 8.1875 28.5 7.664062 28.5 7.125 28.5 C 5.269531 25.171875 4.75 23.742188 4.75 19.792969 Z M 4.75 19.792969 "/>
|
|
501
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(80.784314%,80.784314%,80.784314%);fill-opacity:1;" d="M 15.832031 3.167969 C 21.050781 2.730469 24.960938 3.25 29.292969 6.332031 C 32.199219 9.09375 34.5625 12.214844 35.097656 16.242188 C 35.179688 21.960938 34.46875 26.214844 30.539062 30.53125 C 28.171875 32.675781 26.136719 33.761719 22.957031 34.042969 C 23.5625 33.566406 24.167969 33.09375 24.789062 32.605469 C 26.847656 31 26.847656 31 28.253906 29.488281 C 29.292969 28.5 29.292969 28.5 30.875 28.5 C 31.660156 25.625 32.441406 22.753906 33.25 19.792969 C 31.160156 19.792969 29.070312 19.792969 26.917969 19.792969 C 26.65625 20.835938 26.394531 21.882812 26.125 22.957031 C 26.125 21.914062 26.125 20.867188 26.125 19.792969 C 24.035156 19.792969 21.945312 19.792969 19.792969 19.792969 C 19.792969 21.621094 19.792969 23.449219 19.792969 25.332031 C 20.28125 25.429688 20.769531 25.527344 21.277344 25.628906 C 22.957031 26.125 22.957031 26.125 24.542969 27.707031 C 23.234375 29.535156 21.929688 31.367188 20.582031 33.25 C 19.539062 32.988281 18.492188 32.726562 17.417969 32.457031 C 17.679688 30.367188 17.9375 28.277344 18.207031 26.125 C 17.164062 25.863281 16.117188 25.601562 15.042969 25.332031 C 16.085938 25.332031 17.132812 25.332031 18.207031 25.332031 C 18.207031 23.503906 18.207031 21.675781 18.207031 19.792969 C 16.117188 19.792969 14.027344 19.792969 11.875 19.792969 C 11.875 19.269531 11.875 18.746094 11.875 18.207031 C 16.578125 18.207031 21.28125 18.207031 26.125 18.207031 C 25.601562 16.378906 25.078125 14.550781 24.542969 12.667969 C 23.234375 12.40625 21.929688 12.144531 20.582031 11.875 C 21.628906 11.613281 22.671875 11.351562 23.75 11.082031 C 23.226562 10.332031 22.703125 9.582031 22.167969 8.808594 C 20.582031 6.332031 20.582031 6.332031 20.582031 4.75 C 19.277344 5.011719 17.972656 5.273438 16.625 5.542969 C 16.363281 4.757812 16.101562 3.972656 15.832031 3.167969 Z M 15.832031 3.167969 "/>
|
|
502
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(83.529412%,83.529412%,83.529412%);fill-opacity:1;" d="M 19.792969 19.792969 C 24.234375 19.792969 28.675781 19.792969 33.25 19.792969 C 32.457031 26.125 32.457031 26.125 30.875 28.5 C 30.351562 28.5 29.828125 28.5 29.292969 28.5 C 29.03125 29.285156 28.769531 30.066406 28.5 30.875 C 25.070312 33.25 25.070312 33.25 22.957031 33.25 C 22.957031 33.773438 22.957031 34.296875 22.957031 34.832031 C 20.605469 34.832031 18.253906 34.832031 15.832031 34.832031 C 16.617188 33.65625 16.617188 33.65625 17.417969 32.457031 C 18.460938 32.457031 19.507812 32.457031 20.582031 32.457031 C 22.390625 30.144531 22.390625 30.144531 23.75 27.707031 C 23.097656 27.429688 22.445312 27.152344 21.769531 26.867188 C 21.117188 26.359375 20.464844 25.855469 19.792969 25.332031 C 19.792969 23.503906 19.792969 21.675781 19.792969 19.792969 Z M 19.792969 19.792969 "/>
|
|
503
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(72.156863%,72.156863%,72.156863%);fill-opacity:1;" d="M 17.417969 4.75 C 18.460938 4.75 19.507812 4.75 20.582031 4.75 C 22.265625 6.925781 22.265625 6.925781 23.75 9.5 C 24.058594 10.007812 24.371094 10.511719 24.691406 11.035156 C 25.332031 12.667969 25.332031 12.667969 26.125 18.207031 C 21.421875 18.207031 16.71875 18.207031 11.875 18.207031 C 12.773438 11.90625 12.773438 11.90625 14.25 9.5 C 14.738281 8.652344 15.230469 7.800781 15.734375 6.925781 C 16.289062 6.207031 16.84375 5.488281 17.417969 4.75 Z M 17.417969 4.75 "/>
|
|
504
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(78.823529%,78.823529%,78.823529%);fill-opacity:1;" d="M 11.875 18.207031 C 16.578125 18.207031 21.28125 18.207031 26.125 18.207031 C 26.125 18.730469 26.125 19.253906 26.125 19.792969 C 24.035156 19.792969 21.945312 19.792969 19.792969 19.792969 C 19.792969 21.621094 19.792969 23.449219 19.792969 25.332031 C 20.28125 25.429688 20.769531 25.527344 21.277344 25.628906 C 22.957031 26.125 22.957031 26.125 24.542969 27.707031 C 23.234375 29.535156 21.929688 31.367188 20.582031 33.25 C 19.539062 32.988281 18.492188 32.726562 17.417969 32.457031 C 17.679688 30.367188 17.9375 28.277344 18.207031 26.125 C 17.164062 25.863281 16.117188 25.601562 15.042969 25.332031 C 16.085938 25.332031 17.132812 25.332031 18.207031 25.332031 C 18.207031 23.503906 18.207031 21.675781 18.207031 19.792969 C 16.117188 19.792969 14.027344 19.792969 11.875 19.792969 C 11.875 19.269531 11.875 18.746094 11.875 18.207031 Z M 11.875 18.207031 "/>
|
|
505
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(80.392157%,80.392157%,80.392157%);fill-opacity:1;" d="M 5.542969 9.5 C 6.0625 9.5 6.585938 9.5 7.125 9.5 C 6.757812 10.332031 6.757812 10.332031 6.382812 11.183594 C 5.515625 13.527344 5.09375 15.734375 4.75 18.207031 C 6.839844 18.207031 8.929688 18.207031 11.082031 18.207031 C 11.082031 18.730469 11.082031 19.253906 11.082031 19.792969 C 8.992188 19.792969 6.902344 19.792969 4.75 19.792969 C 5.535156 22.664062 6.316406 25.539062 7.125 28.5 C 7.648438 28.5 8.171875 28.5 8.707031 28.5 C 9.78125 29.539062 10.835938 30.597656 11.875 31.667969 C 12.917969 32.476562 13.96875 33.273438 15.042969 34.042969 C 10.839844 33.785156 8.28125 31.484375 5.542969 28.5 C 2.789062 23.96875 2.5625 19.417969 3.167969 14.25 C 4.355469 11.332031 4.355469 11.332031 5.542969 9.5 Z M 5.542969 9.5 "/>
|
|
506
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.137255%,3.137255%,3.137255%);fill-opacity:1;" d="M 30.875 9.5 C 33.179688 12.402344 33.503906 14.5625 33.25 18.207031 C 31.160156 18.207031 29.070312 18.207031 26.917969 18.207031 C 26.65625 15.855469 26.394531 13.503906 26.125 11.082031 C 28.5 9.5 28.5 9.5 30.875 9.5 Z M 30.875 9.5 "/>
|
|
507
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.137255%,3.137255%,3.137255%);fill-opacity:1;" d="M 7.125 9.5 C 8.84375 9.902344 10.292969 10.292969 11.875 11.082031 C 11.613281 13.433594 11.351562 15.785156 11.082031 18.207031 C 8.992188 18.207031 6.902344 18.207031 4.75 18.207031 C 4.492188 14.507812 4.984375 12.535156 7.125 9.5 Z M 7.125 9.5 "/>
|
|
508
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.921569%,3.921569%,3.921569%);fill-opacity:1;" d="M 26.917969 19.792969 C 29.007812 19.792969 31.097656 19.792969 33.25 19.792969 C 32.761719 25.734375 32.761719 25.734375 31.222656 27.707031 C 30.65625 28.101562 30.65625 28.101562 30.082031 28.5 C 28.125 27.714844 28.125 27.714844 26.125 26.917969 C 26.386719 24.566406 26.648438 22.214844 26.917969 19.792969 Z M 26.917969 19.792969 "/>
|
|
509
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.529412%,3.529412%,3.529412%);fill-opacity:1;" d="M 4.75 19.792969 C 6.839844 19.792969 8.929688 19.792969 11.082031 19.792969 C 11.34375 22.144531 11.605469 24.496094 11.875 26.917969 C 10.308594 27.179688 8.738281 27.4375 7.125 27.707031 C 5.21875 24.929688 4.460938 23.175781 4.75 19.792969 Z M 4.75 19.792969 "/>
|
|
510
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(89.019608%,89.019608%,89.019608%);fill-opacity:1;" d="M 15.832031 3.167969 C 17.921875 3.167969 20.011719 3.167969 22.167969 3.167969 C 22.265625 3.828125 22.265625 3.828125 22.363281 4.503906 C 23.136719 6.882812 24.546875 8.371094 26.125 10.292969 C 27.027344 13 26.996094 15.109375 26.964844 17.960938 C 26.960938 18.894531 26.953125 19.828125 26.945312 20.789062 C 26.933594 21.507812 26.925781 22.222656 26.917969 22.957031 C 26.65625 22.957031 26.394531 22.957031 26.125 22.957031 C 25.601562 19.5625 25.078125 16.164062 24.542969 12.667969 C 23.234375 12.40625 21.929688 12.144531 20.582031 11.875 C 21.628906 11.613281 22.671875 11.351562 23.75 11.082031 C 23.226562 10.332031 22.703125 9.582031 22.167969 8.808594 C 20.582031 6.332031 20.582031 6.332031 20.582031 4.75 C 19.277344 5.011719 17.972656 5.273438 16.625 5.542969 C 16.363281 4.757812 16.101562 3.972656 15.832031 3.167969 Z M 15.832031 3.167969 "/>
|
|
511
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(1.568627%,1.568627%,1.568627%);fill-opacity:1;" d="M 25.332031 12.667969 C 25.59375 14.496094 25.855469 16.324219 26.125 18.207031 C 24.035156 18.207031 21.945312 18.207031 19.792969 18.207031 C 19.792969 16.378906 19.792969 14.550781 19.792969 12.667969 C 22.273438 11.839844 22.949219 11.925781 25.332031 12.667969 Z M 25.332031 12.667969 "/>
|
|
512
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(1.176471%,1.176471%,1.176471%);fill-opacity:1;" d="M 13.457031 11.875 C 15.046875 12.101562 16.632812 12.363281 18.207031 12.667969 C 18.207031 14.496094 18.207031 16.324219 18.207031 18.207031 C 16.117188 18.207031 14.027344 18.207031 11.875 18.207031 C 12.566406 12.765625 12.566406 12.765625 13.457031 11.875 Z M 13.457031 11.875 "/>
|
|
513
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.137255%,3.137255%,3.137255%);fill-opacity:1;" d="M 19.792969 19.792969 C 21.882812 19.792969 23.972656 19.792969 26.125 19.792969 C 25.863281 21.621094 25.601562 23.449219 25.332031 25.332031 C 23.503906 25.332031 21.675781 25.332031 19.792969 25.332031 C 19.792969 23.503906 19.792969 21.675781 19.792969 19.792969 Z M 19.792969 19.792969 "/>
|
|
514
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.137255%,3.137255%,3.137255%);fill-opacity:1;" d="M 11.875 19.792969 C 13.964844 19.792969 16.054688 19.792969 18.207031 19.792969 C 18.207031 21.621094 18.207031 23.449219 18.207031 25.332031 C 16.378906 25.332031 14.550781 25.332031 12.667969 25.332031 C 12.40625 23.503906 12.144531 21.675781 11.875 19.792969 Z M 11.875 19.792969 "/>
|
|
515
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(6.27451%,6.27451%,6.27451%);fill-opacity:1;" d="M 25.332031 27.707031 C 27.292969 28.492188 27.292969 28.492188 29.292969 29.292969 C 27.046875 31.867188 25.582031 32.871094 22.167969 33.25 C 23.210938 31.421875 24.257812 29.59375 25.332031 27.707031 Z M 25.332031 27.707031 "/>
|
|
516
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(6.27451%,6.27451%,6.27451%);fill-opacity:1;" d="M 11.082031 27.707031 C 13.457031 28.5 13.457031 28.5 14.792969 30.925781 C 15.136719 31.691406 15.480469 32.460938 15.832031 33.25 C 12.417969 32.871094 10.953125 31.867188 8.707031 29.292969 C 9.492188 28.769531 10.277344 28.246094 11.082031 27.707031 Z M 11.082031 27.707031 "/>
|
|
517
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(10.588235%,10.588235%,10.588235%);fill-opacity:1;" d="M 15.832031 4.75 C 14.808594 7.035156 13.726562 8.605469 11.875 10.292969 C 10.828125 9.507812 9.785156 8.722656 8.707031 7.917969 C 13.160156 4.75 13.160156 4.75 15.832031 4.75 Z M 15.832031 4.75 "/>
|
|
518
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(6.27451%,6.27451%,6.27451%);fill-opacity:1;" d="M 19.792969 26.125 C 22.144531 26.515625 22.144531 26.515625 24.542969 26.917969 C 23.496094 28.746094 22.453125 30.574219 21.375 32.457031 C 20.851562 32.457031 20.328125 32.457031 19.792969 32.457031 C 19.792969 30.367188 19.792969 28.277344 19.792969 26.125 Z M 19.792969 26.125 "/>
|
|
519
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(9.411765%,9.411765%,9.411765%);fill-opacity:1;" d="M 22.167969 4.75 C 25.15625 5.613281 27.289062 6.261719 29.292969 8.707031 C 27.984375 9.230469 26.679688 9.753906 25.332031 10.292969 C 22.167969 6.53125 22.167969 6.53125 22.167969 4.75 Z M 22.167969 4.75 "/>
|
|
520
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.529412%,3.529412%,3.529412%);fill-opacity:1;" d="M 18.207031 26.125 C 18.207031 28.214844 18.207031 30.304688 18.207031 32.457031 C 14.347656 28.699219 14.347656 28.699219 13.457031 26.917969 C 15.101562 26.476562 16.5 26.125 18.207031 26.125 Z M 18.207031 26.125 "/>
|
|
521
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.529412%,3.529412%,3.529412%);fill-opacity:1;" d="M 19.792969 5.542969 C 21.144531 6.828125 22.464844 8.148438 23.75 9.5 C 23.75 10.023438 23.75 10.546875 23.75 11.082031 C 22.445312 11.082031 21.136719 11.082031 19.792969 11.082031 C 19.792969 9.253906 19.792969 7.425781 19.792969 5.542969 Z M 19.792969 5.542969 "/>
|
|
522
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(3.529412%,3.529412%,3.529412%);fill-opacity:1;" d="M 17.417969 5.542969 C 17.679688 5.542969 17.9375 5.542969 18.207031 5.542969 C 18.207031 7.371094 18.207031 9.199219 18.207031 11.082031 C 16.902344 11.082031 15.597656 11.082031 14.25 11.082031 C 15.101562 8.777344 15.65625 7.300781 17.417969 5.542969 Z M 17.417969 5.542969 "/>
|
|
523
|
-
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(72.941176%,72.941176%,72.941176%);fill-opacity:1;" d="M 12.667969 27.707031 C 15.625 28.695312 15.980469 29.792969 17.417969 32.457031 C 16.632812 33.632812 16.632812 33.632812 15.832031 34.832031 C 15.3125 34.570312 14.789062 34.3125 14.25 34.042969 C 14.511719 33.519531 14.773438 32.996094 15.042969 32.457031 C 14.300781 30.851562 13.511719 29.265625 12.667969 27.707031 Z M 12.667969 27.707031 "/>
|
|
524
|
-
</g>
|
|
525
|
-
</svg> -->
|
|
526
|
-
</atomic-field-condition>
|
|
527
|
-
<atomic-field-condition class="field" must-match-source="Salesforce - Guru">
|
|
528
|
-
<img src="https://cdn.jsdelivr.net/npm/@coveops/abi@latest/dist/abi/images/FAQ.png" alt="Image">
|
|
529
|
-
|
|
530
|
-
<!-- <atomic-icon class="icon"></atomic-icon>
|
|
531
|
-
|
|
532
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="45px" height="45px" viewBox="0 0 40 55" version="1.1">
|
|
533
|
-
<g id="surface1">
|
|
534
|
-
<path style="stroke:none;fill-rule:nonzero;fill:rgb(1.568627%,1.568627%,1.568627%);fill-opacity:1;" d="M 10.785156 -0.527344 C 11.4375 -0.53125 12.09375 -0.535156 12.765625 -0.539062 C 14.140625 -0.539062 15.515625 -0.53125 16.890625 -0.515625 C 18.992188 -0.496094 21.09375 -0.515625 23.191406 -0.542969 C 24.535156 -0.539062 25.875 -0.535156 27.214844 -0.527344 C 28.152344 -0.539062 28.152344 -0.539062 29.109375 -0.550781 C 32.25 -0.484375 33.738281 -0.203125 36.414062 1.585938 C 38.53125 4.75 38.574219 7.054688 38.527344 10.785156 C 38.53125 11.4375 38.535156 12.09375 38.539062 12.765625 C 38.539062 14.140625 38.53125 15.515625 38.515625 16.890625 C 38.496094 18.992188 38.515625 21.09375 38.542969 23.191406 C 38.539062 24.535156 38.535156 25.875 38.527344 27.214844 C 38.535156 27.839844 38.542969 28.464844 38.550781 29.109375 C 38.484375 32.25 38.203125 33.738281 36.414062 36.414062 C 33.25 38.53125 30.945312 38.574219 27.214844 38.527344 C 26.234375 38.53125 26.234375 38.53125 25.234375 38.539062 C 23.859375 38.539062 22.484375 38.53125 21.109375 38.515625 C 19.007812 38.496094 16.90625 38.515625 14.804688 38.542969 C 13.464844 38.539062 12.125 38.535156 10.785156 38.527344 C 10.160156 38.535156 9.535156 38.542969 8.890625 38.550781 C 5.75 38.484375 4.261719 38.203125 1.585938 36.414062 C -0.53125 33.25 -0.574219 30.945312 -0.527344 27.214844 C -0.53125 26.5625 -0.535156 25.90625 -0.539062 25.234375 C -0.539062 23.859375 -0.53125 22.484375 -0.515625 21.109375 C -0.496094 19.007812 -0.515625 16.90625 -0.542969 14.804688 C -0.539062 13.464844 -0.535156 12.125 -0.527344 10.785156 C -0.535156 10.160156 -0.542969 9.535156 -0.550781 8.890625 C -0.484375 5.75 -0.203125 4.261719 1.585938 1.585938 C 4.75 -0.53125 7.054688 -0.574219 10.785156 -0.527344 Z M 10.785156 -0.527344 "></path>
|
|
535
|
-
<path style="stroke:none;fill-rule:nonzero;fill:rgb(15.686275%,15.686275%,15.686275%);fill-opacity:1;" d="M 14.652344 5.347656 C 15.464844 5.351562 16.28125 5.355469 17.121094 5.359375 C 18.007812 5.359375 18.890625 5.363281 19.800781 5.363281 C 20.730469 5.375 21.65625 5.382812 22.613281 5.394531 C 23.542969 5.394531 24.472656 5.394531 25.429688 5.394531 C 32.347656 5.429688 32.347656 5.429688 33.25 6.332031 C 33.320312 7.453125 33.335938 8.578125 33.328125 9.699219 C 33.324219 10.378906 33.320312 11.054688 33.320312 11.75 C 33.308594 12.816406 33.308594 12.816406 33.300781 13.902344 C 33.296875 14.617188 33.292969 15.332031 33.289062 16.066406 C 33.277344 17.835938 33.265625 19.605469 33.25 21.375 C 31.683594 22.160156 31.683594 22.160156 30.082031 22.957031 C 30.082031 24.785156 30.082031 26.617188 30.082031 28.5 C 29.039062 27.976562 27.992188 27.453125 26.917969 26.917969 C 26.394531 27.4375 25.871094 27.960938 25.332031 28.5 C 23.800781 28.617188 22.265625 28.675781 20.730469 28.699219 C 17.308594 28.839844 17.308594 28.839844 14.382812 30.394531 C 13.226562 31.84375 13.226562 31.84375 11.875 34.042969 C 11.351562 34.042969 10.828125 34.042969 10.292969 34.042969 C 10.292969 32.214844 10.292969 30.382812 10.292969 28.5 C 9.539062 28.550781 8.789062 28.597656 8.015625 28.648438 C 7.199219 28.597656 6.382812 28.550781 5.542969 28.5 C 3.570312 25.542969 3.722656 23.210938 3.761719 19.792969 C 3.753906 19.21875 3.75 18.644531 3.742188 18.054688 C 3.753906 15.046875 3.835938 13.640625 5.542969 11.082031 C 8.410156 10.933594 8.410156 10.933594 11.082031 11.082031 C 11.050781 10.460938 11.019531 9.84375 10.984375 9.203125 C 11.121094 6.355469 11.808594 5.625 14.652344 5.347656 Z M 14.652344 5.347656 "></path>
|
|
536
|
-
<path style="stroke:none;fill-rule:nonzero;fill:rgb(1.176471%,1.176471%,1.176471%);fill-opacity:1;" d="M 17.492188 6.226562 C 18.304688 6.226562 19.121094 6.226562 19.960938 6.226562 C 21.25 6.230469 21.25 6.230469 22.5625 6.234375 C 23.421875 6.230469 24.277344 6.226562 25.164062 6.226562 C 25.980469 6.226562 26.792969 6.226562 27.632812 6.226562 C 28.765625 6.230469 28.765625 6.230469 29.917969 6.230469 C 31.667969 6.332031 31.667969 6.332031 32.457031 7.125 C 32.515625 9.390625 32.53125 11.636719 32.507812 13.902344 C 32.503906 14.542969 32.5 15.179688 32.496094 15.839844 C 32.488281 17.417969 32.472656 19 32.457031 20.582031 C 31.414062 20.84375 30.367188 21.105469 29.292969 21.375 C 29.292969 22.941406 29.292969 24.511719 29.292969 26.125 C 28.507812 25.601562 27.722656 25.078125 26.917969 24.542969 C 26.632812 22.496094 26.476562 20.609375 26.421875 18.554688 C 26.613281 14.921875 26.613281 14.921875 25.332031 11.875 C 23.203125 11.6875 21.085938 11.539062 18.949219 11.429688 C 18.351562 11.394531 17.75 11.359375 17.128906 11.324219 C 15.644531 11.242188 14.15625 11.164062 12.667969 11.082031 C 12.632812 9.765625 12.632812 8.445312 12.667969 7.125 C 14 5.789062 15.664062 6.230469 17.492188 6.226562 Z M 17.492188 6.226562 "></path>
|
|
537
|
-
<path style="stroke:none;fill-rule:nonzero;fill:rgb(83.529412%,83.529412%,83.529412%);fill-opacity:1;" d="M 14.652344 5.347656 C 15.464844 5.351562 16.28125 5.355469 17.121094 5.359375 C 18.007812 5.359375 18.890625 5.363281 19.800781 5.363281 C 20.730469 5.375 21.65625 5.382812 22.613281 5.394531 C 23.542969 5.394531 24.472656 5.394531 25.429688 5.394531 C 32.347656 5.429688 32.347656 5.429688 33.25 6.332031 C 33.320312 7.453125 33.335938 8.578125 33.328125 9.699219 C 33.324219 10.378906 33.320312 11.054688 33.320312 11.75 C 33.308594 12.816406 33.308594 12.816406 33.300781 13.902344 C 33.296875 14.617188 33.292969 15.332031 33.289062 16.066406 C 33.277344 17.835938 33.265625 19.605469 33.25 21.375 C 31.683594 22.160156 31.683594 22.160156 30.082031 22.957031 C 30.082031 24.785156 30.082031 26.617188 30.082031 28.5 C 29.039062 27.976562 27.992188 27.453125 26.917969 26.917969 C 26.394531 27.4375 25.871094 27.960938 25.332031 28.5 C 23.800781 28.617188 22.265625 28.675781 20.730469 28.699219 C 17.308594 28.839844 17.308594 28.839844 14.382812 30.394531 C 13.226562 31.84375 13.226562 31.84375 11.875 34.042969 C 11.351562 34.042969 10.828125 34.042969 10.292969 34.042969 C 10.292969 32.214844 10.292969 30.382812 10.292969 28.5 C 9.539062 28.550781 8.789062 28.597656 8.015625 28.648438 C 7.199219 28.597656 6.382812 28.550781 5.542969 28.5 C 3.570312 25.542969 3.722656 23.210938 3.761719 19.792969 C 3.753906 19.21875 3.75 18.644531 3.742188 18.054688 C 3.753906 15.046875 3.835938 13.640625 5.542969 11.082031 C 8.410156 10.933594 8.410156 10.933594 11.082031 11.082031 C 11.050781 10.460938 11.019531 9.84375 10.984375 9.203125 C 11.121094 6.355469 11.808594 5.625 14.652344 5.347656 Z M 12.667969 7.125 C 12.632812 8.445312 12.632812 9.765625 12.667969 11.082031 C 13.570312 11.132812 14.476562 11.179688 15.410156 11.230469 C 16.589844 11.296875 17.769531 11.363281 18.949219 11.429688 C 19.847656 11.476562 19.847656 11.476562 20.761719 11.523438 C 25.242188 11.785156 25.242188 11.785156 26.125 12.667969 C 26.285156 15.183594 26.398438 17.699219 26.464844 20.21875 C 26.523438 22.011719 26.523438 22.011719 26.917969 24.542969 C 27.699219 25.0625 28.484375 25.585938 29.292969 26.125 C 29.292969 24.558594 29.292969 22.988281 29.292969 21.375 C 30.335938 21.113281 31.382812 20.851562 32.457031 20.582031 C 32.480469 18.355469 32.496094 16.128906 32.507812 13.902344 C 32.515625 13.269531 32.519531 12.632812 32.527344 11.980469 C 32.535156 10.359375 32.5 8.742188 32.457031 7.125 C 31.125 5.789062 29.460938 6.230469 27.632812 6.226562 C 26.820312 6.226562 26.003906 6.226562 25.164062 6.226562 C 24.304688 6.226562 23.445312 6.230469 22.5625 6.234375 C 21.273438 6.230469 21.273438 6.230469 19.960938 6.226562 C 19.144531 6.226562 18.332031 6.226562 17.492188 6.226562 C 16.359375 6.230469 16.359375 6.230469 15.207031 6.230469 C 13.476562 6.136719 13.476562 6.136719 12.667969 7.125 Z M 5.542969 12.667969 C 5.519531 15.023438 5.503906 17.382812 5.492188 19.742188 C 5.484375 20.414062 5.480469 21.089844 5.472656 21.78125 C 5.46875 22.421875 5.46875 23.0625 5.464844 23.722656 C 5.460938 24.316406 5.457031 24.90625 5.453125 25.519531 C 5.386719 26.9375 5.386719 26.9375 6.332031 27.707031 C 7.917969 27.742188 9.5 27.742188 11.082031 27.707031 C 11.082031 29.015625 11.082031 30.320312 11.082031 31.667969 C 11.539062 31.160156 11.996094 30.65625 12.46875 30.132812 C 15.820312 28.007812 18.542969 28.050781 22.449219 27.925781 C 24.664062 27.917969 24.664062 27.917969 26.125 26.125 C 26.28125 23.980469 26.34375 21.933594 26.324219 19.792969 C 26.328125 19.207031 26.335938 18.625 26.339844 18.023438 C 26.449219 14.578125 26.449219 14.578125 24.542969 11.875 C 22.726562 11.640625 22.726562 11.640625 20.632812 11.691406 C 19.859375 11.695312 19.085938 11.695312 18.289062 11.695312 C 17.476562 11.707031 16.667969 11.714844 15.832031 11.726562 C 14.617188 11.726562 14.617188 11.726562 13.378906 11.726562 C 9.328125 11.578125 9.328125 11.578125 5.542969 12.667969 Z M 5.542969 12.667969 "></path>
|
|
538
|
-
<path style="stroke:none;fill-rule:nonzero;fill:rgb(92.54902%,92.54902%,92.54902%);fill-opacity:1;" d="M 6.332031 27.707031 C 7.902344 27.707031 9.46875 27.707031 11.082031 27.707031 C 11.34375 28.753906 11.605469 29.796875 11.875 30.875 C 12.296875 30.355469 12.714844 29.839844 13.148438 29.304688 C 15.582031 27.253906 16.855469 27.375 19.988281 27.511719 C 20.84375 27.539062 21.695312 27.566406 22.574219 27.597656 C 23.546875 27.652344 23.546875 27.652344 24.542969 27.707031 C 24.542969 27.96875 24.542969 28.230469 24.542969 28.5 C 23.667969 28.503906 23.667969 28.503906 22.777344 28.507812 C 18.3125 28.539062 18.3125 28.539062 14.429688 30.402344 C 13.519531 31.574219 12.691406 32.804688 11.875 34.042969 C 11.351562 34.042969 10.828125 34.042969 10.292969 34.042969 C 10.292969 32.214844 10.292969 30.382812 10.292969 28.5 C 8.984375 28.5 7.679688 28.5 6.332031 28.5 C 6.332031 28.238281 6.332031 27.976562 6.332031 27.707031 Z M 6.332031 27.707031 "></path>
|
|
539
|
-
</g>
|
|
540
|
-
</svg> -->
|
|
541
|
-
|
|
542
|
-
</atomic-field-condition>
|
|
543
|
-
</atomic-result-section-visual>
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
<atomic-result-section-title>
|
|
548
|
-
<atomic-result-link><a slot="attributes" target="_blank"></a></atomic-result-link>
|
|
549
|
-
</atomic-result-section-title>
|
|
550
|
-
|
|
551
|
-
<atomic-result-section-excerpt>
|
|
552
|
-
<atomic-field-condition class="field" must-match-source="ServiceNow - Knowledge">
|
|
553
|
-
<atomic-result-text field="excerpt"></atomic-result-text>
|
|
554
|
-
</atomic-field-condition>
|
|
555
|
-
|
|
556
|
-
<atomic-field-condition class="field" must-match-source="Salesforce - Guru">
|
|
557
|
-
<atomic-result-text field="excerpt"></atomic-result-text>
|
|
558
|
-
|
|
559
|
-
</atomic-field-condition>
|
|
560
|
-
</atomic-result-section-excerpt>
|
|
561
|
-
|
|
562
|
-
<atomic-result-section-bottom-metadata>
|
|
563
|
-
<span>
|
|
564
|
-
<atomic-text value="Date: "></atomic-text>
|
|
565
|
-
<atomic-result-date></atomic-result-date>
|
|
566
|
-
</span> <span>
|
|
567
|
-
<atomic-field-condition class="field" must-match-source="ServiceNow - Knowledge">
|
|
568
|
-
<atomic-text value="Source: ServiceNow Articles"></atomic-text>
|
|
569
|
-
</atomic-field-condition>
|
|
570
|
-
|
|
571
|
-
<atomic-field-condition class="field" must-match-source="Salesforce - Guru">
|
|
572
|
-
<atomic-text value="Source: Guru Articles">
|
|
573
|
-
</atomic-text></atomic-field-condition>
|
|
574
|
-
|
|
575
|
-
</span>
|
|
576
|
-
</atomic-result-section-bottom-metadata>
|
|
577
|
-
`,HA=`<style>
|
|
578
|
-
.field {
|
|
579
|
-
display: inline-flex;
|
|
580
|
-
align-items: center;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
.field-label {
|
|
584
|
-
font-weight: bold;
|
|
585
|
-
margin-right: 0.25rem;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
atomic-result-section-excerpt {
|
|
589
|
-
font-size: 1.3rem !important;
|
|
590
|
-
margin-top: 0.875rem !important;
|
|
591
|
-
max-height: unset !important;
|
|
592
|
-
line-height: normal !important;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
atomic-result-section-title :visited {
|
|
596
|
-
color: black !important;
|
|
597
|
-
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
atomic-result-section-title{
|
|
601
|
-
color: #CAA144 !important;
|
|
602
|
-
font-size: 1.7rem !important ;
|
|
603
|
-
max-height: unset !important;
|
|
604
|
-
line-height: normal !important;
|
|
605
|
-
|
|
606
|
-
}
|
|
607
|
-
atomic-result-section-excerpt {
|
|
608
|
-
font-size: 1.3rem !important;
|
|
609
|
-
margin-top: 0.875rem !important;
|
|
610
|
-
max-height: unset !important;
|
|
611
|
-
line-height: normal !important;
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
atomic-result-section-bottom-metadata a {
|
|
615
|
-
color: #A6A6A6 !important;
|
|
616
|
-
margin-top: 2px;
|
|
617
|
-
}
|
|
618
|
-
atomic-result-section-title{
|
|
619
|
-
cursor: pointer;
|
|
620
|
-
|
|
621
|
-
}
|
|
622
|
-
atomic-result-section-bottom-metadata {
|
|
623
|
-
margin-top: 2px;
|
|
624
|
-
color: #A6A6A6 !important;
|
|
625
|
-
font-size: 1rem !important;
|
|
626
|
-
margin-right: 3px;
|
|
627
|
-
line-height: 18px !important;
|
|
628
|
-
display: grid;
|
|
629
|
-
grid-template-columns: auto auto auto;
|
|
630
|
-
gap: 1rem;
|
|
631
|
-
align-items: center;
|
|
632
|
-
}
|
|
633
|
-
atomic-result-section-bottom-metadata span {
|
|
634
|
-
display: flex;
|
|
635
|
-
align-items: center;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
atomic-result-section-title:hover {
|
|
639
|
-
cursor: pointer;
|
|
640
|
-
text-decoration: underline;
|
|
641
|
-
}
|
|
642
|
-
.visited-title{
|
|
643
|
-
color: black !important;
|
|
644
|
-
}
|
|
645
|
-
atomic-result-section-visual {
|
|
646
|
-
width: 3rem !important;
|
|
647
|
-
height: 5rem !important;
|
|
648
|
-
display: grid;
|
|
649
|
-
align-items: center;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
atomic-result-date{
|
|
653
|
-
font-size:1.0rem;
|
|
654
|
-
}
|
|
655
|
-
</style>
|
|
656
|
-
|
|
657
|
-
<atomic-result-section-visual>
|
|
658
|
-
<img src="https://cdn.jsdelivr.net/npm/@coveops/abi@latest/dist/abi/images/FAQ.png" alt="Image">
|
|
659
|
-
<!-- <atomic-icon class="icon"></atomic-icon>
|
|
660
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="40px" height="45px" viewBox="0 0 50 45" version="1.1">
|
|
661
|
-
<g id="surface1">
|
|
662
|
-
<path style="stroke:none;fill-rule:nonzero;fill:rgb(1.568627%,1.568627%,1.568627%);fill-opacity:1;" d="M 10.785156 -0.527344 C 11.4375 -0.53125 12.09375 -0.535156 12.765625 -0.539062 C 14.140625 -0.539062 15.515625 -0.53125 16.890625 -0.515625 C 18.992188 -0.496094 21.09375 -0.515625 23.191406 -0.542969 C 24.535156 -0.539062 25.875 -0.535156 27.214844 -0.527344 C 28.152344 -0.539062 28.152344 -0.539062 29.109375 -0.550781 C 32.25 -0.484375 33.738281 -0.203125 36.414062 1.585938 C 38.53125 4.75 38.574219 7.054688 38.527344 10.785156 C 38.53125 11.4375 38.535156 12.09375 38.539062 12.765625 C 38.539062 14.140625 38.53125 15.515625 38.515625 16.890625 C 38.496094 18.992188 38.515625 21.09375 38.542969 23.191406 C 38.539062 24.535156 38.535156 25.875 38.527344 27.214844 C 38.535156 27.839844 38.542969 28.464844 38.550781 29.109375 C 38.484375 32.25 38.203125 33.738281 36.414062 36.414062 C 33.25 38.53125 30.945312 38.574219 27.214844 38.527344 C 26.234375 38.53125 26.234375 38.53125 25.234375 38.539062 C 23.859375 38.539062 22.484375 38.53125 21.109375 38.515625 C 19.007812 38.496094 16.90625 38.515625 14.804688 38.542969 C 13.464844 38.539062 12.125 38.535156 10.785156 38.527344 C 10.160156 38.535156 9.535156 38.542969 8.890625 38.550781 C 5.75 38.484375 4.261719 38.203125 1.585938 36.414062 C -0.53125 33.25 -0.574219 30.945312 -0.527344 27.214844 C -0.53125 26.5625 -0.535156 25.90625 -0.539062 25.234375 C -0.539062 23.859375 -0.53125 22.484375 -0.515625 21.109375 C -0.496094 19.007812 -0.515625 16.90625 -0.542969 14.804688 C -0.539062 13.464844 -0.535156 12.125 -0.527344 10.785156 C -0.535156 10.160156 -0.542969 9.535156 -0.550781 8.890625 C -0.484375 5.75 -0.203125 4.261719 1.585938 1.585938 C 4.75 -0.53125 7.054688 -0.574219 10.785156 -0.527344 Z M 10.785156 -0.527344 "></path>
|
|
663
|
-
<path style="stroke:none;fill-rule:nonzero;fill:rgb(15.686275%,15.686275%,15.686275%);fill-opacity:1;" d="M 14.652344 5.347656 C 15.464844 5.351562 16.28125 5.355469 17.121094 5.359375 C 18.007812 5.359375 18.890625 5.363281 19.800781 5.363281 C 20.730469 5.375 21.65625 5.382812 22.613281 5.394531 C 23.542969 5.394531 24.472656 5.394531 25.429688 5.394531 C 32.347656 5.429688 32.347656 5.429688 33.25 6.332031 C 33.320312 7.453125 33.335938 8.578125 33.328125 9.699219 C 33.324219 10.378906 33.320312 11.054688 33.320312 11.75 C 33.308594 12.816406 33.308594 12.816406 33.300781 13.902344 C 33.296875 14.617188 33.292969 15.332031 33.289062 16.066406 C 33.277344 17.835938 33.265625 19.605469 33.25 21.375 C 31.683594 22.160156 31.683594 22.160156 30.082031 22.957031 C 30.082031 24.785156 30.082031 26.617188 30.082031 28.5 C 29.039062 27.976562 27.992188 27.453125 26.917969 26.917969 C 26.394531 27.4375 25.871094 27.960938 25.332031 28.5 C 23.800781 28.617188 22.265625 28.675781 20.730469 28.699219 C 17.308594 28.839844 17.308594 28.839844 14.382812 30.394531 C 13.226562 31.84375 13.226562 31.84375 11.875 34.042969 C 11.351562 34.042969 10.828125 34.042969 10.292969 34.042969 C 10.292969 32.214844 10.292969 30.382812 10.292969 28.5 C 9.539062 28.550781 8.789062 28.597656 8.015625 28.648438 C 7.199219 28.597656 6.382812 28.550781 5.542969 28.5 C 3.570312 25.542969 3.722656 23.210938 3.761719 19.792969 C 3.753906 19.21875 3.75 18.644531 3.742188 18.054688 C 3.753906 15.046875 3.835938 13.640625 5.542969 11.082031 C 8.410156 10.933594 8.410156 10.933594 11.082031 11.082031 C 11.050781 10.460938 11.019531 9.84375 10.984375 9.203125 C 11.121094 6.355469 11.808594 5.625 14.652344 5.347656 Z M 14.652344 5.347656 "></path>
|
|
664
|
-
<path style="stroke:none;fill-rule:nonzero;fill:rgb(1.176471%,1.176471%,1.176471%);fill-opacity:1;" d="M 17.492188 6.226562 C 18.304688 6.226562 19.121094 6.226562 19.960938 6.226562 C 21.25 6.230469 21.25 6.230469 22.5625 6.234375 C 23.421875 6.230469 24.277344 6.226562 25.164062 6.226562 C 25.980469 6.226562 26.792969 6.226562 27.632812 6.226562 C 28.765625 6.230469 28.765625 6.230469 29.917969 6.230469 C 31.667969 6.332031 31.667969 6.332031 32.457031 7.125 C 32.515625 9.390625 32.53125 11.636719 32.507812 13.902344 C 32.503906 14.542969 32.5 15.179688 32.496094 15.839844 C 32.488281 17.417969 32.472656 19 32.457031 20.582031 C 31.414062 20.84375 30.367188 21.105469 29.292969 21.375 C 29.292969 22.941406 29.292969 24.511719 29.292969 26.125 C 28.507812 25.601562 27.722656 25.078125 26.917969 24.542969 C 26.632812 22.496094 26.476562 20.609375 26.421875 18.554688 C 26.613281 14.921875 26.613281 14.921875 25.332031 11.875 C 23.203125 11.6875 21.085938 11.539062 18.949219 11.429688 C 18.351562 11.394531 17.75 11.359375 17.128906 11.324219 C 15.644531 11.242188 14.15625 11.164062 12.667969 11.082031 C 12.632812 9.765625 12.632812 8.445312 12.667969 7.125 C 14 5.789062 15.664062 6.230469 17.492188 6.226562 Z M 17.492188 6.226562 "></path>
|
|
665
|
-
<path style="stroke:none;fill-rule:nonzero;fill:rgb(83.529412%,83.529412%,83.529412%);fill-opacity:1;" d="M 14.652344 5.347656 C 15.464844 5.351562 16.28125 5.355469 17.121094 5.359375 C 18.007812 5.359375 18.890625 5.363281 19.800781 5.363281 C 20.730469 5.375 21.65625 5.382812 22.613281 5.394531 C 23.542969 5.394531 24.472656 5.394531 25.429688 5.394531 C 32.347656 5.429688 32.347656 5.429688 33.25 6.332031 C 33.320312 7.453125 33.335938 8.578125 33.328125 9.699219 C 33.324219 10.378906 33.320312 11.054688 33.320312 11.75 C 33.308594 12.816406 33.308594 12.816406 33.300781 13.902344 C 33.296875 14.617188 33.292969 15.332031 33.289062 16.066406 C 33.277344 17.835938 33.265625 19.605469 33.25 21.375 C 31.683594 22.160156 31.683594 22.160156 30.082031 22.957031 C 30.082031 24.785156 30.082031 26.617188 30.082031 28.5 C 29.039062 27.976562 27.992188 27.453125 26.917969 26.917969 C 26.394531 27.4375 25.871094 27.960938 25.332031 28.5 C 23.800781 28.617188 22.265625 28.675781 20.730469 28.699219 C 17.308594 28.839844 17.308594 28.839844 14.382812 30.394531 C 13.226562 31.84375 13.226562 31.84375 11.875 34.042969 C 11.351562 34.042969 10.828125 34.042969 10.292969 34.042969 C 10.292969 32.214844 10.292969 30.382812 10.292969 28.5 C 9.539062 28.550781 8.789062 28.597656 8.015625 28.648438 C 7.199219 28.597656 6.382812 28.550781 5.542969 28.5 C 3.570312 25.542969 3.722656 23.210938 3.761719 19.792969 C 3.753906 19.21875 3.75 18.644531 3.742188 18.054688 C 3.753906 15.046875 3.835938 13.640625 5.542969 11.082031 C 8.410156 10.933594 8.410156 10.933594 11.082031 11.082031 C 11.050781 10.460938 11.019531 9.84375 10.984375 9.203125 C 11.121094 6.355469 11.808594 5.625 14.652344 5.347656 Z M 12.667969 7.125 C 12.632812 8.445312 12.632812 9.765625 12.667969 11.082031 C 13.570312 11.132812 14.476562 11.179688 15.410156 11.230469 C 16.589844 11.296875 17.769531 11.363281 18.949219 11.429688 C 19.847656 11.476562 19.847656 11.476562 20.761719 11.523438 C 25.242188 11.785156 25.242188 11.785156 26.125 12.667969 C 26.285156 15.183594 26.398438 17.699219 26.464844 20.21875 C 26.523438 22.011719 26.523438 22.011719 26.917969 24.542969 C 27.699219 25.0625 28.484375 25.585938 29.292969 26.125 C 29.292969 24.558594 29.292969 22.988281 29.292969 21.375 C 30.335938 21.113281 31.382812 20.851562 32.457031 20.582031 C 32.480469 18.355469 32.496094 16.128906 32.507812 13.902344 C 32.515625 13.269531 32.519531 12.632812 32.527344 11.980469 C 32.535156 10.359375 32.5 8.742188 32.457031 7.125 C 31.125 5.789062 29.460938 6.230469 27.632812 6.226562 C 26.820312 6.226562 26.003906 6.226562 25.164062 6.226562 C 24.304688 6.226562 23.445312 6.230469 22.5625 6.234375 C 21.273438 6.230469 21.273438 6.230469 19.960938 6.226562 C 19.144531 6.226562 18.332031 6.226562 17.492188 6.226562 C 16.359375 6.230469 16.359375 6.230469 15.207031 6.230469 C 13.476562 6.136719 13.476562 6.136719 12.667969 7.125 Z M 5.542969 12.667969 C 5.519531 15.023438 5.503906 17.382812 5.492188 19.742188 C 5.484375 20.414062 5.480469 21.089844 5.472656 21.78125 C 5.46875 22.421875 5.46875 23.0625 5.464844 23.722656 C 5.460938 24.316406 5.457031 24.90625 5.453125 25.519531 C 5.386719 26.9375 5.386719 26.9375 6.332031 27.707031 C 7.917969 27.742188 9.5 27.742188 11.082031 27.707031 C 11.082031 29.015625 11.082031 30.320312 11.082031 31.667969 C 11.539062 31.160156 11.996094 30.65625 12.46875 30.132812 C 15.820312 28.007812 18.542969 28.050781 22.449219 27.925781 C 24.664062 27.917969 24.664062 27.917969 26.125 26.125 C 26.28125 23.980469 26.34375 21.933594 26.324219 19.792969 C 26.328125 19.207031 26.335938 18.625 26.339844 18.023438 C 26.449219 14.578125 26.449219 14.578125 24.542969 11.875 C 22.726562 11.640625 22.726562 11.640625 20.632812 11.691406 C 19.859375 11.695312 19.085938 11.695312 18.289062 11.695312 C 17.476562 11.707031 16.667969 11.714844 15.832031 11.726562 C 14.617188 11.726562 14.617188 11.726562 13.378906 11.726562 C 9.328125 11.578125 9.328125 11.578125 5.542969 12.667969 Z M 5.542969 12.667969 "></path>
|
|
666
|
-
<path style="stroke:none;fill-rule:nonzero;fill:rgb(92.54902%,92.54902%,92.54902%);fill-opacity:1;" d="M 6.332031 27.707031 C 7.902344 27.707031 9.46875 27.707031 11.082031 27.707031 C 11.34375 28.753906 11.605469 29.796875 11.875 30.875 C 12.296875 30.355469 12.714844 29.839844 13.148438 29.304688 C 15.582031 27.253906 16.855469 27.375 19.988281 27.511719 C 20.84375 27.539062 21.695312 27.566406 22.574219 27.597656 C 23.546875 27.652344 23.546875 27.652344 24.542969 27.707031 C 24.542969 27.96875 24.542969 28.230469 24.542969 28.5 C 23.667969 28.503906 23.667969 28.503906 22.777344 28.507812 C 18.3125 28.539062 18.3125 28.539062 14.429688 30.402344 C 13.519531 31.574219 12.691406 32.804688 11.875 34.042969 C 11.351562 34.042969 10.828125 34.042969 10.292969 34.042969 C 10.292969 32.214844 10.292969 30.382812 10.292969 28.5 C 8.984375 28.5 7.679688 28.5 6.332031 28.5 C 6.332031 28.238281 6.332031 27.976562 6.332031 27.707031 Z M 6.332031 27.707031 "></path>
|
|
667
|
-
</g>
|
|
668
|
-
</svg> -->
|
|
669
|
-
</atomic-result-section-visual>
|
|
670
|
-
|
|
671
|
-
<atomic-result-section-title>
|
|
672
|
-
<faq-popup-component origin="searchResult"></faq-popup-component>
|
|
673
|
-
</atomic-result-section-title>
|
|
674
|
-
|
|
675
|
-
<atomic-result-section-excerpt>
|
|
676
|
-
<strip-html-component></strip-html-component>
|
|
677
|
-
</atomic-result-section-excerpt>
|
|
678
|
-
|
|
679
|
-
<atomic-result-section-bottom-metadata>
|
|
680
|
-
<span>
|
|
681
|
-
<atomic-text value="Date: "></atomic-text>
|
|
682
|
-
<atomic-result-date></atomic-result-date>
|
|
683
|
-
</span><span>
|
|
684
|
-
<atomic-text value="Source: "></atomic-text><atomic-result-text field="sourcetype"></atomic-result-text>
|
|
685
|
-
</span><span> <atomic-text value="Sharepoint: "></atomic-text>
|
|
686
|
-
<atomic-result-link><a slot="attributes" target="_blank"></a>
|
|
687
|
-
<atomic-result-text field="PrintableUri"></atomic-result-text>
|
|
688
|
-
</atomic-result-link>
|
|
689
|
-
</span>
|
|
690
|
-
</atomic-result-section-bottom-metadata>`,BA=`<style>
|
|
691
|
-
.field {
|
|
692
|
-
display: inline-flex;
|
|
693
|
-
align-items: center;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
.field-label {
|
|
697
|
-
font-weight: bold;
|
|
698
|
-
margin-right: 0.25rem;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
.title-date {
|
|
702
|
-
display: grid;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
atomic-result-section-title a {
|
|
706
|
-
color: #CAA144 !important;
|
|
707
|
-
font-size: 1.7rem !important;
|
|
708
|
-
max-height: unset !important;
|
|
709
|
-
line-height: normal !important;
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
atomic-result-section-excerpt {
|
|
713
|
-
font-size: 13px;
|
|
714
|
-
margin-top: 0.875rem !important;
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
atomic-result-section-title a:visited {
|
|
718
|
-
color: black !important;
|
|
719
|
-
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
atomic-result-section-visual {
|
|
724
|
-
width: 4rem;
|
|
725
|
-
height: 5rem;
|
|
726
|
-
margin-top: -9px;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
atomic-result-section-visual {
|
|
730
|
-
width: 3rem !important;
|
|
731
|
-
height: 5rem !important;
|
|
732
|
-
display: grid;
|
|
733
|
-
align-items: center;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
atomic-result-section-excerpt {
|
|
737
|
-
font-size: 1.3rem !important;
|
|
738
|
-
margin-top: 0.875rem !important;
|
|
739
|
-
max-height: unset !important;
|
|
740
|
-
line-height: normal !important;
|
|
741
|
-
}
|
|
742
|
-
</style>
|
|
743
|
-
|
|
744
|
-
<atomic-result-section-visual>
|
|
745
|
-
<!-- <atomic-icon class="icon"></atomic-icon> -->
|
|
746
|
-
<!-- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="38" height="35" viewBox="0 0 60 50">
|
|
747
|
-
<path d="M0 0 C0.8245166 -0.00478363 1.6490332 -0.00956726 2.49853516 -0.01449585 C4.23667313 -0.01788872 5.97487544 -0.00872903 7.71289062 0.01220703 C10.36733825 0.03898521 13.01755825 0.01244254 15.671875 -0.01953125 C17.36459263 -0.01622704 19.05730763 -0.00982056 20.75 0 C21.93456787 -0.01518173 21.93456787 -0.01518173 23.14306641 -0.03067017 C27.11276955 0.05339275 28.99170918 0.40801499 32.37255859 2.66650391 C35.0441572 6.66575868 35.09944932 9.57732793 35.0390625 14.2890625 C35.04384613 15.1135791 35.04862976 15.9380957 35.05355835 16.78759766 C35.05695122 18.52573563 35.04779153 20.26393794 35.02685547 22.00195312 C35.00007729 24.65640075 35.02661996 27.30662075 35.05859375 29.9609375 C35.05528954 31.65365513 35.04888306 33.34637013 35.0390625 35.0390625 C35.04918365 35.82877441 35.05930481 36.61848633 35.06973267 37.43212891 C34.98566975 41.40183205 34.63104751 43.28077168 32.37255859 46.66162109 C28.37330382 49.3332197 25.46173457 49.38851182 20.75 49.328125 C19.5132251 49.33530045 19.5132251 49.33530045 18.25146484 49.34262085 C16.51332687 49.34601372 14.77512456 49.33685403 13.03710938 49.31591797 C10.38266175 49.28913979 7.73244175 49.31568246 5.078125 49.34765625 C3.38540737 49.34435204 1.69269237 49.33794556 0 49.328125 C-0.78971191 49.33824615 -1.57942383 49.34836731 -2.39306641 49.35879517 C-6.36276955 49.27473225 -8.24170918 48.92011001 -11.62255859 46.66162109 C-14.2941572 42.66236632 -14.34944932 39.75079707 -14.2890625 35.0390625 C-14.29384613 34.2145459 -14.29862976 33.3900293 -14.30355835 32.54052734 C-14.30695122 30.80238937 -14.29779153 29.06418706 -14.27685547 27.32617188 C-14.25007729 24.67172425 -14.27661996 22.02150425 -14.30859375 19.3671875 C-14.30528954 17.67446987 -14.29888306 15.98175487 -14.2890625 14.2890625 C-14.29918365 13.49935059 -14.30930481 12.70963867 -14.31973267 11.89599609 C-14.23566975 7.92629295 -13.88104751 6.04735332 -11.62255859 2.66650391 C-7.62330382 -0.0050947 -4.71173457 -0.06038682 0 0 Z " fill="#090909" transform="translate(13.625,-0.6640625)"></path>
|
|
748
|
-
<path d="M0 0 C5.60625406 3.00563431 11.18661116 6.05492007 16.6875 9.25 C17.51636719 9.72953125 18.34523438 10.2090625 19.19921875 10.703125 C19.79347656 11.13109375 20.38773438 11.5590625 21 12 C21 12.66 21 13.32 21 14 C19.02 14.99 19.02 14.99 17 16 C18.32 17.32 19.64 18.64 21 20 C19.95125002 22.62187494 19.35068687 23.79371361 16.875 25.25 C16.25625 25.4975 15.6375 25.745 15 26 C13.02 24.35 11.04 22.7 9 21 C8.34 21.99 7.68 22.98 7 24 C6.34 24 5.68 24 5 24 C4.35284867 21.9170757 3.70732834 19.83364461 3.0625 17.75 C2.70285156 16.58984375 2.34320312 15.4296875 1.97265625 14.234375 C0.46331884 9.2153735 -0.10177317 5.29220494 0 0 Z " fill="#DCDCDC" transform="translate(19,16)"></path>
|
|
749
|
-
<path d="M0 0 C3.81275879 1.52510352 6.86017055 3.00757127 10.3125 5.125 C11.19550781 5.66382813 12.07851563 6.20265625 12.98828125 6.7578125 C13.65214844 7.16773438 14.31601562 7.57765625 15 8 C13.02 8.99 13.02 8.99 11 10 C11.845625 10.928125 12.69125 11.85625 13.5625 12.8125 C15.00390625 14.39453125 15.00390625 14.39453125 16 16 C15.67 16.99 15.34 17.98 15 19 C12.33333333 17.66666667 9.66666667 16.33333333 7 15 C6.01 15.66 5.02 16.32 4 17 C2.68 11.39 1.36 5.78 0 0 Z " fill="#070707" transform="translate(21,20)"></path>
|
|
750
|
-
<path d="M0 0 C1.98 0.99 1.98 0.99 4 2 C3.8040625 2.53625 3.608125 3.0725 3.40625 3.625 C2.86836562 6.76955484 3.61487629 8.94784926 4.5 12 C6.33802817 18.33802817 6.33802817 18.33802817 5 22 C0.80891282 15.71336924 -0.50995408 7.47932645 0 0 Z " fill="#C9C9C9" transform="translate(19,16)"></path>
|
|
751
|
-
<path d="M0 0 C3.43595166 1.52708963 6.11912454 3.59927045 9 6 C8.01 6.66 7.02 7.32 6 8 C4.02 6.35 2.04 4.7 0 3 C-0.99 4.485 -0.99 4.485 -2 6 C-2.66 6 -3.32 6 -4 6 C-4 5.01 -4 4.02 -4 3 C-2 1.3125 -2 1.3125 0 0 Z " fill="#DFDFDF" transform="translate(28,34)"></path>
|
|
752
|
-
<path d="M0 0 C1 3 1 3 1 5 C2.45833358 6.62514468 2.45833358 6.62514468 4 8 C3.34 9.32 2.68 10.64 2 12 C0.00449854 10.00449854 -0.81376393 8.52075165 -2 6 C-2.37125 5.2575 -2.7425 4.515 -3.125 3.75 C-3.41375 3.1725 -3.7025 2.595 -4 2 C-2.68 1.34 -1.36 0.68 0 0 Z " fill="#C6C6C6" transform="translate(36,28)"></path>
|
|
753
|
-
</svg> -->
|
|
754
|
-
<img src="https://cdn.jsdelivr.net/npm/@coveops/abi@latest/dist/abi/images/ProcessPeople.png" alt="Image">
|
|
755
|
-
|
|
756
|
-
</atomic-result-section-visual>
|
|
757
|
-
|
|
758
|
-
<atomic-result-section-title>
|
|
759
|
-
|
|
760
|
-
<atomic-result-link href-template="\${raw.sfppcustomlinkcpplinkurlc}"><a slot="attributes" target="_blank"></a></atomic-result-link>
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
</atomic-result-section-title>
|
|
764
|
-
<!-- sfppcustomlinkcpplinkurlc -->
|
|
765
|
-
<atomic-result-section-excerpt>
|
|
766
|
-
<strip-html-component></strip-html-component>
|
|
767
|
-
</atomic-result-section-excerpt>`,WA=`<style>
|
|
768
|
-
.field {
|
|
769
|
-
display: inline-flex;
|
|
770
|
-
align-items: center;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
.field-label {
|
|
774
|
-
font-weight: bold;
|
|
775
|
-
margin-right: 0.25rem;
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
.title-date {
|
|
779
|
-
display: grid;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
atomic-result-section-title a {
|
|
783
|
-
color: #CAA144 !important;
|
|
784
|
-
font-size: 1.7rem !important;
|
|
785
|
-
max-height: unset !important;
|
|
786
|
-
line-height: normal !important;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
atomic-result-section-title a:visited {
|
|
790
|
-
color: black !important;
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
atomic-result-section-excerpt {
|
|
794
|
-
font-size: 1.3rem !important;
|
|
795
|
-
margin-top: 0.875rem !important;
|
|
796
|
-
max-height: unset !important;
|
|
797
|
-
line-height: normal !important;
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
atomic-result-section-visual {
|
|
801
|
-
width: 3rem !important;
|
|
802
|
-
height: 5rem !important;
|
|
803
|
-
display: grid;
|
|
804
|
-
align-items: center;
|
|
805
|
-
}
|
|
806
|
-
</style>
|
|
807
|
-
|
|
808
|
-
<atomic-result-section-visual>
|
|
809
|
-
<img src="https://cdn.jsdelivr.net/npm/@coveops/abi@latest/dist/abi/images/ProcessPeople.png" alt="Image">
|
|
810
|
-
|
|
811
|
-
<!-- <atomic-icon class="icon"></atomic-icon>
|
|
812
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="38" height="35" viewBox="0 0 60 50">
|
|
813
|
-
<path
|
|
814
|
-
d="M0 0 C0.8245166 -0.00478363 1.6490332 -0.00956726 2.49853516 -0.01449585 C4.23667313 -0.01788872 5.97487544 -0.00872903 7.71289062 0.01220703 C10.36733825 0.03898521 13.01755825 0.01244254 15.671875 -0.01953125 C17.36459263 -0.01622704 19.05730763 -0.00982056 20.75 0 C21.93456787 -0.01518173 21.93456787 -0.01518173 23.14306641 -0.03067017 C27.11276955 0.05339275 28.99170918 0.40801499 32.37255859 2.66650391 C35.0441572 6.66575868 35.09944932 9.57732793 35.0390625 14.2890625 C35.04384613 15.1135791 35.04862976 15.9380957 35.05355835 16.78759766 C35.05695122 18.52573563 35.04779153 20.26393794 35.02685547 22.00195312 C35.00007729 24.65640075 35.02661996 27.30662075 35.05859375 29.9609375 C35.05528954 31.65365513 35.04888306 33.34637013 35.0390625 35.0390625 C35.04918365 35.82877441 35.05930481 36.61848633 35.06973267 37.43212891 C34.98566975 41.40183205 34.63104751 43.28077168 32.37255859 46.66162109 C28.37330382 49.3332197 25.46173457 49.38851182 20.75 49.328125 C19.5132251 49.33530045 19.5132251 49.33530045 18.25146484 49.34262085 C16.51332687 49.34601372 14.77512456 49.33685403 13.03710938 49.31591797 C10.38266175 49.28913979 7.73244175 49.31568246 5.078125 49.34765625 C3.38540737 49.34435204 1.69269237 49.33794556 0 49.328125 C-0.78971191 49.33824615 -1.57942383 49.34836731 -2.39306641 49.35879517 C-6.36276955 49.27473225 -8.24170918 48.92011001 -11.62255859 46.66162109 C-14.2941572 42.66236632 -14.34944932 39.75079707 -14.2890625 35.0390625 C-14.29384613 34.2145459 -14.29862976 33.3900293 -14.30355835 32.54052734 C-14.30695122 30.80238937 -14.29779153 29.06418706 -14.27685547 27.32617188 C-14.25007729 24.67172425 -14.27661996 22.02150425 -14.30859375 19.3671875 C-14.30528954 17.67446987 -14.29888306 15.98175487 -14.2890625 14.2890625 C-14.29918365 13.49935059 -14.30930481 12.70963867 -14.31973267 11.89599609 C-14.23566975 7.92629295 -13.88104751 6.04735332 -11.62255859 2.66650391 C-7.62330382 -0.0050947 -4.71173457 -0.06038682 0 0 Z "
|
|
815
|
-
fill="#090909" transform="translate(13.625,-0.6640625)"></path>
|
|
816
|
-
<path
|
|
817
|
-
d="M0 0 C5.60625406 3.00563431 11.18661116 6.05492007 16.6875 9.25 C17.51636719 9.72953125 18.34523438 10.2090625 19.19921875 10.703125 C19.79347656 11.13109375 20.38773438 11.5590625 21 12 C21 12.66 21 13.32 21 14 C19.02 14.99 19.02 14.99 17 16 C18.32 17.32 19.64 18.64 21 20 C19.95125002 22.62187494 19.35068687 23.79371361 16.875 25.25 C16.25625 25.4975 15.6375 25.745 15 26 C13.02 24.35 11.04 22.7 9 21 C8.34 21.99 7.68 22.98 7 24 C6.34 24 5.68 24 5 24 C4.35284867 21.9170757 3.70732834 19.83364461 3.0625 17.75 C2.70285156 16.58984375 2.34320312 15.4296875 1.97265625 14.234375 C0.46331884 9.2153735 -0.10177317 5.29220494 0 0 Z "
|
|
818
|
-
fill="#DCDCDC" transform="translate(19,16)"></path>
|
|
819
|
-
<path
|
|
820
|
-
d="M0 0 C3.81275879 1.52510352 6.86017055 3.00757127 10.3125 5.125 C11.19550781 5.66382813 12.07851563 6.20265625 12.98828125 6.7578125 C13.65214844 7.16773438 14.31601562 7.57765625 15 8 C13.02 8.99 13.02 8.99 11 10 C11.845625 10.928125 12.69125 11.85625 13.5625 12.8125 C15.00390625 14.39453125 15.00390625 14.39453125 16 16 C15.67 16.99 15.34 17.98 15 19 C12.33333333 17.66666667 9.66666667 16.33333333 7 15 C6.01 15.66 5.02 16.32 4 17 C2.68 11.39 1.36 5.78 0 0 Z "
|
|
821
|
-
fill="#070707" transform="translate(21,20)"></path>
|
|
822
|
-
<path
|
|
823
|
-
d="M0 0 C1.98 0.99 1.98 0.99 4 2 C3.8040625 2.53625 3.608125 3.0725 3.40625 3.625 C2.86836562 6.76955484 3.61487629 8.94784926 4.5 12 C6.33802817 18.33802817 6.33802817 18.33802817 5 22 C0.80891282 15.71336924 -0.50995408 7.47932645 0 0 Z "
|
|
824
|
-
fill="#C9C9C9" transform="translate(19,16)"></path>
|
|
825
|
-
<path
|
|
826
|
-
d="M0 0 C3.43595166 1.52708963 6.11912454 3.59927045 9 6 C8.01 6.66 7.02 7.32 6 8 C4.02 6.35 2.04 4.7 0 3 C-0.99 4.485 -0.99 4.485 -2 6 C-2.66 6 -3.32 6 -4 6 C-4 5.01 -4 4.02 -4 3 C-2 1.3125 -2 1.3125 0 0 Z "
|
|
827
|
-
fill="#DFDFDF" transform="translate(28,34)"></path>
|
|
828
|
-
<path
|
|
829
|
-
d="M0 0 C1 3 1 3 1 5 C2.45833358 6.62514468 2.45833358 6.62514468 4 8 C3.34 9.32 2.68 10.64 2 12 C0.00449854 10.00449854 -0.81376393 8.52075165 -2 6 C-2.37125 5.2575 -2.7425 4.515 -3.125 3.75 C-3.41375 3.1725 -3.7025 2.595 -4 2 C-2.68 1.34 -1.36 0.68 0 0 Z "
|
|
830
|
-
fill="#C6C6C6" transform="translate(36,28)"></path>
|
|
831
|
-
</svg> -->
|
|
832
|
-
</atomic-result-section-visual>
|
|
833
|
-
|
|
834
|
-
<atomic-result-section-title>
|
|
835
|
-
<atomic-result-link href-template="\${raw.sfppcustomlinkcpplinkurlc}"><a slot="attributes" target="_blank"></a></atomic-result-link>
|
|
836
|
-
</atomic-result-section-title>
|
|
837
|
-
<!-- sfppcustomlinkcpplinkurlc -->
|
|
838
|
-
<atomic-result-section-excerpt>
|
|
839
|
-
<atomic-result-text field="sfppcustomlinkcppdescriptionc"></atomic-result-text>
|
|
840
|
-
</atomic-result-section-excerpt>`,YA=`<style>
|
|
841
|
-
.field {
|
|
842
|
-
display: inline-flex;
|
|
843
|
-
align-items: center;
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
.field-label {
|
|
847
|
-
font-weight: bold;
|
|
848
|
-
margin-right: 0.25rem;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
atomic-result-section-bottom-metadata {
|
|
852
|
-
color: #A6A6A6 !important;
|
|
853
|
-
margin-right: 3px;
|
|
854
|
-
margin-top: 2px;
|
|
855
|
-
font-size: 1rem !important;
|
|
856
|
-
line-height: 18px !important;
|
|
857
|
-
display: grid;
|
|
858
|
-
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
atomic-result-section-title a {
|
|
862
|
-
color: #CAA144 !important;
|
|
863
|
-
font-size: 1.7rem !important;
|
|
864
|
-
max-height: unset !important;
|
|
865
|
-
line-height: normal !important;
|
|
866
|
-
}
|
|
867
|
-
atomic-result-section-title a:visited {
|
|
868
|
-
color: black !important;
|
|
869
|
-
}
|
|
870
|
-
atomic-result-section-excerpt {
|
|
871
|
-
font-size: 1.3rem !important;
|
|
872
|
-
margin-top: 0.875rem !important;
|
|
873
|
-
max-height: unset !important;
|
|
874
|
-
line-height: normal !important;
|
|
875
|
-
}
|
|
876
|
-
atomic-result-section-visual {
|
|
877
|
-
width: 3rem !important;
|
|
878
|
-
height: 5rem !important;
|
|
879
|
-
display: grid;
|
|
880
|
-
align-items: center;
|
|
881
|
-
justify-content: center;
|
|
882
|
-
|
|
883
|
-
}
|
|
884
|
-
</style>
|
|
885
|
-
|
|
886
|
-
<atomic-result-section-visual>
|
|
887
|
-
<img src="https://cdn.jsdelivr.net/npm/@coveops/abi@latest/dist/abi/images/Link.png" alt="Image">
|
|
888
|
-
|
|
889
|
-
<!-- <atomic-icon class="icon"></atomic-icon>
|
|
890
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
891
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="40" height="48" viewbox="0 0 60 60">
|
|
892
|
-
<path d="M0 0 C0.8245166 -0.00478363 1.6490332 -0.00956726 2.49853516 -0.01449585 C4.23667313 -0.01788872 5.97487544 -0.00872903 7.71289062 0.01220703 C10.36733825 0.03898521 13.01755825 0.01244254 15.671875 -0.01953125 C17.36459263 -0.01622704 19.05730763 -0.00982056 20.75 0 C21.93456787 -0.01518173 21.93456787 -0.01518173 23.14306641 -0.03067017 C27.11276955 0.05339275 28.99170918 0.40801499 32.37255859 2.66650391 C35.0441572 6.66575868 35.09944932 9.57732793 35.0390625 14.2890625 C35.04384613 15.1135791 35.04862976 15.9380957 35.05355835 16.78759766 C35.05695122 18.52573563 35.04779153 20.26393794 35.02685547 22.00195312 C35.00007729 24.65640075 35.02661996 27.30662075 35.05859375 29.9609375 C35.05528954 31.65365513 35.04888306 33.34637013 35.0390625 35.0390625 C35.04918365 35.82877441 35.05930481 36.61848633 35.06973267 37.43212891 C34.98566975 41.40183205 34.63104751 43.28077168 32.37255859 46.66162109 C28.37330382 49.3332197 25.46173457 49.38851182 20.75 49.328125 C19.5132251 49.33530045 19.5132251 49.33530045 18.25146484 49.34262085 C16.51332687 49.34601372 14.77512456 49.33685403 13.03710938 49.31591797 C10.38266175 49.28913979 7.73244175 49.31568246 5.078125 49.34765625 C3.38540737 49.34435204 1.69269237 49.33794556 0 49.328125 C-0.78971191 49.33824615 -1.57942383 49.34836731 -2.39306641 49.35879517 C-6.36276955 49.27473225 -8.24170918 48.92011001 -11.62255859 46.66162109 C-14.2941572 42.66236632 -14.34944932 39.75079707 -14.2890625 35.0390625 C-14.29384613 34.2145459 -14.29862976 33.3900293 -14.30355835 32.54052734 C-14.30695122 30.80238937 -14.29779153 29.06418706 -14.27685547 27.32617188 C-14.25007729 24.67172425 -14.27661996 22.02150425 -14.30859375 19.3671875 C-14.30528954 17.67446987 -14.29888306 15.98175487 -14.2890625 14.2890625 C-14.29918365 13.49935059 -14.30930481 12.70963867 -14.31973267 11.89599609 C-14.23566975 7.92629295 -13.88104751 6.04735332 -11.62255859 2.66650391 C-7.62330382 -0.0050947 -4.71173457 -0.06038682 0 0 Z " fill="#010101" transform="translate(13.625,-0.6640625)"/>
|
|
893
|
-
<path d="M0 0 C0.66 0.66 1.32 1.32 2 2 C0.72125 2.0825 -0.5575 2.165 -1.875 2.25 C-7.34050801 2.83217653 -12.01815378 4.76388948 -17 7 C-7.81974029 11.70616443 -7.81974029 11.70616443 2 11 C2.33 10.34 2.66 9.68 3 9 C6.37462715 9.54723683 8.08235 10.0549 11 12 C10.67 15.3 10.34 18.6 10 22 C9.01 22.33 8.02 22.66 7 23 C7.66 24.98 8.32 26.96 9 29 C7.35 29.33 5.7 29.66 4 30 C4.33 28.35 4.66 26.7 5 25 C4.01 25.33 3.02 25.66 2 26 C0.43881572 26.06740865 -1.1250252 26.08514456 -2.6875 26.0625 C-3.89986328 26.04896484 -3.89986328 26.04896484 -5.13671875 26.03515625 C-5.75160156 26.02355469 -6.36648437 26.01195313 -7 26 C-7 25.67 -7 25.34 -7 25 C-2.71 24.34 1.58 23.68 6 23 C6 20.03 6 17.06 6 14 C5.175 14.515625 4.35 15.03125 3.5 15.5625 C-1.37620531 17.56522718 -5.2499255 16.99293805 -10.06640625 15.25390625 C-11.73204427 14.55063686 -13.3694982 13.78128211 -15 13 C-15.33 13.66 -15.66 14.32 -16 15 C-16 14.01 -16 13.02 -16 12 C-17.65 11.67 -19.3 11.34 -21 11 C-21.33 9.68 -21.66 8.36 -22 7 C-6.89719626 -0.82109479 -6.89719626 -0.82109479 0 0 Z " fill="#B6B6B6" transform="translate(27,10)"/>
|
|
894
|
-
<path d="M0 0 C1.96875 1.23046875 1.96875 1.23046875 2.75 3.3671875 C2.85828125 4.28951172 2.85828125 4.28951172 2.96875 5.23046875 C1.03125 5.79296875 1.03125 5.79296875 -1.03125 6.23046875 C-1.36125 5.90046875 -1.69125 5.57046875 -2.03125 5.23046875 C-5.48946402 4.98042911 -5.48946402 4.98042911 -9.03125 5.23046875 C-9.69125 5.89046875 -10.35125 6.55046875 -11.03125 7.23046875 C-18.28646602 9.64887409 -24.33085601 6.1423693 -31.03125 3.23046875 C-22.61688187 -6.46555811 -10.46508331 -3.95670588 0 0 Z " fill="#121212" transform="translate(40.03125,14.76953125)"/>
|
|
895
|
-
<path d="M0 0 C1.96461368 0.49115342 3.9283806 0.98865326 5.875 1.546875 C10.36731596 2.50479532 14.64063713 1.08984072 19 0 C19 2.97 19 5.94 19 9 C13.72102219 11.03037608 7.38889702 13.32204224 1.8671875 11.16796875 C-0.0625 10.0625 -0.0625 10.0625 -3 8 C-3.1875 5.125 -3.1875 5.125 -3 2 C-2.01 1.34 -1.02 0.68 0 0 Z " fill="#1D1D1D" transform="translate(14,24)"/>
|
|
896
|
-
<path d="M0 0 C0.66 0.66 1.32 1.32 2 2 C0.72125 2.0825 -0.5575 2.165 -1.875 2.25 C-7.34050801 2.83217653 -12.01815378 4.76388948 -17 7 C-15.02 7.99 -13.04 8.98 -11 10 C-12.32 10.33 -13.64 10.66 -15 11 C-12.525 11.99 -12.525 11.99 -10 13 C-10.99 13.33 -11.98 13.66 -13 14 C-13.66 13.67 -14.32 13.34 -15 13 C-15.33 13.66 -15.66 14.32 -16 15 C-16 14.01 -16 13.02 -16 12 C-17.65 11.67 -19.3 11.34 -21 11 C-21.33 9.68 -21.66 8.36 -22 7 C-6.89719626 -0.82109479 -6.89719626 -0.82109479 0 0 Z " fill="#C5C5C5" transform="translate(27,10)"/>
|
|
897
|
-
<path d="M0 0 C3.75579504 0.48151219 7.03912374 1.35592302 10.5625 2.6875 C14.15133197 3.95995405 14.15133197 3.95995405 17.875 3.125 C18.57625 2.75375 19.2775 2.3825 20 2 C20.99 2.33 21.98 2.66 23 3 C22.34 3 21.68 3 21 3 C21 3.66 21 4.32 21 5 C17.58044297 7.42218623 14.84494445 6.99895628 10.90234375 6.484375 C9 6 9 6 6 4 C4.00787329 2.98440599 2.0088485 1.98210371 0 1 C0 0.67 0 0.34 0 0 Z " fill="#757575" transform="translate(10,20)"/>
|
|
898
|
-
<path d="M0 0 C1.60597325 0.45196245 3.20972508 0.91182327 4.8125 1.375 C6.15248047 1.75785156 6.15248047 1.75785156 7.51953125 2.1484375 C10 3 10 3 13 5 C12.67 6.32 12.34 7.64 12 9 C9.69 8.67 7.38 8.34 5 8 C5.99 7.01 6.98 6.02 8 5 C5.36 3.68 2.72 2.36 0 1 C0 0.67 0 0.34 0 0 Z " fill="#C2C2C2" transform="translate(30,12)"/>
|
|
899
|
-
<path d="M0 0 C0.391875 0.45375 0.78375 0.9075 1.1875 1.375 C3.30832487 3.27642919 5.33042235 4.06204028 8 5 C4.06329512 6.31223496 1.87511856 5.24296256 -2 4 C-1.34 3.67 -0.68 3.34 0 3 C0 2.01 0 1.02 0 0 Z " fill="#9B9B9B" transform="translate(8,15)"/>
|
|
900
|
-
</svg> -->
|
|
901
|
-
|
|
902
|
-
</atomic-result-section-visual>
|
|
903
|
-
|
|
904
|
-
<atomic-result-section-title>
|
|
905
|
-
<atomic-result-link> <a slot="attributes" target="_blank"></a></atomic-result-link>
|
|
906
|
-
</atomic-result-section-title>
|
|
907
|
-
|
|
908
|
-
<atomic-result-section-excerpt>
|
|
909
|
-
<atomic-result-text field="description"></atomic-result-text>
|
|
910
|
-
<atomic-field-condition if-not-defined="description">
|
|
911
|
-
<atomic-result-text field="excerpt"></atomic-result-text>
|
|
912
|
-
</atomic-field-condition>
|
|
913
|
-
</atomic-result-section-excerpt>
|
|
914
|
-
|
|
915
|
-
<atomic-result-section-bottom-metadata>
|
|
916
|
-
|
|
917
|
-
<atomic-field-condition class="field" if-defined="trainingsource">
|
|
918
|
-
<span class="field-label">
|
|
919
|
-
<atomic-text value="Training"></atomic-text>:
|
|
920
|
-
</span>
|
|
921
|
-
<atomic-result-text field="trainingsource"></atomic-result-text>
|
|
922
|
-
</atomic-field-condition>
|
|
923
|
-
|
|
924
|
-
<atomic-field-condition class="field" if-defined="function">
|
|
925
|
-
<span class="field-label">
|
|
926
|
-
<atomic-text value="Function"></atomic-text>:
|
|
927
|
-
</span>
|
|
928
|
-
<atomic-result-text field="function"></atomic-result-text>
|
|
929
|
-
</atomic-field-condition>
|
|
930
|
-
|
|
931
|
-
<atomic-field-condition class="field" if-defined="category">
|
|
932
|
-
<span class="field-label">
|
|
933
|
-
<atomic-text value="Category"></atomic-text>:
|
|
934
|
-
</span>
|
|
935
|
-
<atomic-result-multi-value-text field="category"></atomic-result-multi-value-text>
|
|
936
|
-
</atomic-field-condition>
|
|
937
|
-
|
|
938
|
-
<atomic-field-condition class="field" if-defined="duration">
|
|
939
|
-
<span class="field-label">
|
|
940
|
-
<atomic-text value="Duration"></atomic-text>:
|
|
941
|
-
</span>
|
|
942
|
-
<atomic-result-text field="duration"></atomic-result-text>
|
|
943
|
-
</atomic-field-condition>
|
|
944
|
-
|
|
945
|
-
</atomic-result-section-bottom-metadata>`,ZA=`<style>
|
|
946
|
-
.field {
|
|
947
|
-
display: inline-flex;
|
|
948
|
-
align-items: center;
|
|
949
|
-
line-height: normal !important;
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
.field-label {
|
|
953
|
-
font-weight: bold;
|
|
954
|
-
margin-right: 0.25rem;
|
|
955
|
-
}
|
|
956
|
-
|
|
957
|
-
atomic-result-section-bottom-metadata {
|
|
958
|
-
display: grid;
|
|
959
|
-
grid-template-columns: 1fr 1fr;
|
|
960
|
-
font-size: 1.3rem !important;
|
|
961
|
-
width: 100%;
|
|
962
|
-
margin-top: 2px;
|
|
963
|
-
max-height: 25rem !important;
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
atomic-result-section-title{
|
|
967
|
-
color: #CAA144 !important;
|
|
968
|
-
font-size: 1.7rem !important;
|
|
969
|
-
max-height: unset !important;
|
|
970
|
-
line-height: normal !important;
|
|
971
|
-
}
|
|
972
|
-
atomic-result-section-visual {
|
|
973
|
-
width: 3rem !important;
|
|
974
|
-
height: 5rem !important;
|
|
975
|
-
display: grid;
|
|
976
|
-
align-items: center;
|
|
977
|
-
}
|
|
978
|
-
atomic-result-image{
|
|
979
|
-
width: auto !important;
|
|
980
|
-
height: auto !important;
|
|
981
|
-
}
|
|
982
|
-
atomic-result-image img{
|
|
983
|
-
border-radius: 20% !important;
|
|
984
|
-
}
|
|
985
|
-
</style>
|
|
986
|
-
|
|
987
|
-
<atomic-result-section-visual>
|
|
988
|
-
<atomic-result-image field="resultpicture"></atomic-result-image>
|
|
989
|
-
</atomic-result-section-visual>
|
|
990
|
-
|
|
991
|
-
<atomic-result-section-title>
|
|
992
|
-
<atomic-result-text field="title"></atomic-result-text>
|
|
993
|
-
</atomic-result-section-title>
|
|
994
|
-
|
|
995
|
-
<atomic-result-section-bottom-metadata>
|
|
996
|
-
|
|
997
|
-
<atomic-field-condition class="field" if-defined="sfpppositontitlec">
|
|
998
|
-
<span class="field-label">
|
|
999
|
-
<atomic-text value="Title"></atomic-text>:
|
|
1000
|
-
</span>
|
|
1001
|
-
<atomic-result-text field="sfpppositontitlec"></atomic-result-text>
|
|
1002
|
-
</atomic-field-condition>
|
|
1003
|
-
<br>
|
|
1004
|
-
<atomic-field-condition class="field" if-defined="sfppzonec">
|
|
1005
|
-
<span class="field-label">
|
|
1006
|
-
<atomic-text value="Zone"></atomic-text>:
|
|
1007
|
-
</span>
|
|
1008
|
-
<atomic-result-text field="sfppzonec"></atomic-result-text>
|
|
1009
|
-
</atomic-field-condition>
|
|
1010
|
-
|
|
1011
|
-
<atomic-field-condition class="field" if-defined="sfppemployeeworklocationc">
|
|
1012
|
-
<span class="field-label">
|
|
1013
|
-
<atomic-text value="OfficeLocation"></atomic-text>:
|
|
1014
|
-
</span>
|
|
1015
|
-
<atomic-result-text field="sfppemployeeworklocationc"></atomic-result-text>
|
|
1016
|
-
</atomic-field-condition>
|
|
1017
|
-
<atomic-field-condition class="field" if-defined="sfppbusinessfunctionc">
|
|
1018
|
-
<span class="field-label">
|
|
1019
|
-
<atomic-text value="Function"></atomic-text>:
|
|
1020
|
-
</span>
|
|
1021
|
-
<atomic-result-text field="sfppbusinessfunctionc"></atomic-result-text>
|
|
1022
|
-
</atomic-field-condition>
|
|
1023
|
-
|
|
1024
|
-
<atomic-field-condition class="field" if-defined="sfpersonemail">
|
|
1025
|
-
<span class="field-label">
|
|
1026
|
-
<atomic-text value="Email"></atomic-text>:
|
|
1027
|
-
</span>
|
|
1028
|
-
<atomic-result-text field="sfpersonemail"></atomic-result-text>
|
|
1029
|
-
</atomic-field-condition>
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
</atomic-result-section-bottom-metadata>
|
|
1034
|
-
`,JA=`<style>
|
|
1035
|
-
/* .field {
|
|
1036
|
-
display: inline-flex;
|
|
1037
|
-
align-items: center;
|
|
1038
|
-
} */
|
|
1039
|
-
|
|
1040
|
-
.field-label {
|
|
1041
|
-
font-weight: bold;
|
|
1042
|
-
margin-right: 0.25rem;
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
atomic-result-section-bottom-metadata a {
|
|
1046
|
-
color: #A6A6A6 !important;
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
atomic-result-section-bottom-metadata {
|
|
1050
|
-
margin-top: 2px;
|
|
1051
|
-
color: #A6A6A6 !important;
|
|
1052
|
-
font-size: 1rem !important;
|
|
1053
|
-
margin-right: 3px;
|
|
1054
|
-
line-height: 18px !important;
|
|
1055
|
-
display: grid;
|
|
1056
|
-
grid-template-columns: auto auto auto;
|
|
1057
|
-
gap: 1rem;
|
|
1058
|
-
align-items: center;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
atomic-result-section-title a {
|
|
1062
|
-
color: #CAA144 !important;
|
|
1063
|
-
font-size: 1.7rem !important;
|
|
1064
|
-
max-height: unset !important;
|
|
1065
|
-
line-height: normal !important;
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
atomic-result-section-excerpt {
|
|
1069
|
-
font-size: 1.3rem !important;
|
|
1070
|
-
margin-top: 0.875rem !important;
|
|
1071
|
-
max-height: unset !important;
|
|
1072
|
-
line-height: normal !important;
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
atomic-result-section-visual {
|
|
1076
|
-
width: 3rem !important;
|
|
1077
|
-
height: 5rem !important;
|
|
1078
|
-
display: grid;
|
|
1079
|
-
align-items: center;
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
atomic-result-section-title a:visited {
|
|
1083
|
-
color: black !important;
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
atomic-result-section-bottom-metadata span {
|
|
1088
|
-
display: flex;
|
|
1089
|
-
align-items: center;
|
|
1090
|
-
}
|
|
1091
|
-
atomic-result-date{
|
|
1092
|
-
font-size:1.0rem;
|
|
1093
|
-
}
|
|
1094
|
-
</style>
|
|
1095
|
-
|
|
1096
|
-
<atomic-result-section-visual>
|
|
1097
|
-
<img src="https://cdn.jsdelivr.net/npm/@coveops/abi@latest/dist/abi/images/Documents.png" alt="Image">
|
|
1098
|
-
<!-- <atomic-icon class="icon"></atomic-icon>
|
|
1099
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
1100
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="35" height="35" viewBox="0 0 55 50">
|
|
1101
|
-
<path
|
|
1102
|
-
d="M0 0 C0.8245166 -0.00478363 1.6490332 -0.00956726 2.49853516 -0.01449585 C4.23667313 -0.01788872 5.97487544 -0.00872903 7.71289062 0.01220703 C10.36733825 0.03898521 13.01755825 0.01244254 15.671875 -0.01953125 C17.36459263 -0.01622704 19.05730763 -0.00982056 20.75 0 C21.93456787 -0.01518173 21.93456787 -0.01518173 23.14306641 -0.03067017 C27.11276955 0.05339275 28.99170918 0.40801499 32.37255859 2.66650391 C35.0441572 6.66575868 35.09944932 9.57732793 35.0390625 14.2890625 C35.04384613 15.1135791 35.04862976 15.9380957 35.05355835 16.78759766 C35.05695122 18.52573563 35.04779153 20.26393794 35.02685547 22.00195312 C35.00007729 24.65640075 35.02661996 27.30662075 35.05859375 29.9609375 C35.05528954 31.65365513 35.04888306 33.34637013 35.0390625 35.0390625 C35.04918365 35.82877441 35.05930481 36.61848633 35.06973267 37.43212891 C34.98566975 41.40183205 34.63104751 43.28077168 32.37255859 46.66162109 C28.37330382 49.3332197 25.46173457 49.38851182 20.75 49.328125 C19.5132251 49.33530045 19.5132251 49.33530045 18.25146484 49.34262085 C16.51332687 49.34601372 14.77512456 49.33685403 13.03710938 49.31591797 C10.38266175 49.28913979 7.73244175 49.31568246 5.078125 49.34765625 C3.38540737 49.34435204 1.69269237 49.33794556 0 49.328125 C-0.78971191 49.33824615 -1.57942383 49.34836731 -2.39306641 49.35879517 C-6.36276955 49.27473225 -8.24170918 48.92011001 -11.62255859 46.66162109 C-14.2941572 42.66236632 -14.34944932 39.75079707 -14.2890625 35.0390625 C-14.29384613 34.2145459 -14.29862976 33.3900293 -14.30355835 32.54052734 C-14.30695122 30.80238937 -14.29779153 29.06418706 -14.27685547 27.32617188 C-14.25007729 24.67172425 -14.27661996 22.02150425 -14.30859375 19.3671875 C-14.30528954 17.67446987 -14.29888306 15.98175487 -14.2890625 14.2890625 C-14.29918365 13.49935059 -14.30930481 12.70963867 -14.31973267 11.89599609 C-14.23566975 7.92629295 -13.88104751 6.04735332 -11.62255859 2.66650391 C-7.62330382 -0.0050947 -4.71173457 -0.06038682 0 0 Z "
|
|
1103
|
-
fill="#000000" transform="translate(13.625,-0.6640625)"></path>
|
|
1104
|
-
<path
|
|
1105
|
-
d="M0 0 C1.33611328 -0.08121094 1.33611328 -0.08121094 2.69921875 -0.1640625 C7.39769085 -0.26093821 10.75582466 0.13481259 14.4921875 3.1328125 C19.10614224 8.50281829 18.15948055 15.18970697 17.875 21.875 C17.85179688 23.17050781 17.82859375 24.46601563 17.8046875 25.80078125 C17.5856438 35.2893562 17.5856438 35.2893562 16.375 36.5 C14.46041718 36.59971786 12.54217683 36.63080589 10.625 36.6328125 C9.4596875 36.63410156 8.294375 36.63539062 7.09375 36.63671875 C5.8665625 36.63285156 4.639375 36.62898438 3.375 36.625 C1.53421875 36.63080078 1.53421875 36.63080078 -0.34375 36.63671875 C-1.5090625 36.63542969 -2.674375 36.63414063 -3.875 36.6328125 C-4.95265625 36.63168457 -6.0303125 36.63055664 -7.140625 36.62939453 C-9.625 36.5 -9.625 36.5 -10.625 35.5 C-10.72587212 32.99075847 -10.76472032 30.50963616 -10.7578125 28 C-10.75876923 27.24912109 -10.75972595 26.49824219 -10.76071167 25.72460938 C-10.76139338 24.13411373 -10.75953972 22.54361533 -10.75537109 20.953125 C-10.75002267 18.51035345 -10.75531634 16.06776579 -10.76171875 13.625 C-10.76105797 12.08333293 -10.7597768 10.54166597 -10.7578125 9 C-10.75983673 8.26458984 -10.76186096 7.52917969 -10.76394653 6.77148438 C-10.72621122 -1.33787148 -7.13478807 0.18113707 0 0 Z "
|
|
1106
|
-
fill="#242424" transform="translate(20.625,5.5)"></path>
|
|
1107
|
-
<path
|
|
1108
|
-
d="M0 0 C1.33611328 -0.08121094 1.33611328 -0.08121094 2.69921875 -0.1640625 C7.39769085 -0.26093821 10.75582466 0.13481259 14.4921875 3.1328125 C19.10614224 8.50281829 18.15948055 15.18970697 17.875 21.875 C17.85179688 23.17050781 17.82859375 24.46601563 17.8046875 25.80078125 C17.5856438 35.2893562 17.5856438 35.2893562 16.375 36.5 C14.46041718 36.59971786 12.54217683 36.63080589 10.625 36.6328125 C9.4596875 36.63410156 8.294375 36.63539062 7.09375 36.63671875 C5.8665625 36.63285156 4.639375 36.62898438 3.375 36.625 C1.53421875 36.63080078 1.53421875 36.63080078 -0.34375 36.63671875 C-1.5090625 36.63542969 -2.674375 36.63414063 -3.875 36.6328125 C-4.95265625 36.63168457 -6.0303125 36.63055664 -7.140625 36.62939453 C-9.625 36.5 -9.625 36.5 -10.625 35.5 C-10.72587212 32.99075847 -10.76472032 30.50963616 -10.7578125 28 C-10.75876923 27.24912109 -10.75972595 26.49824219 -10.76071167 25.72460938 C-10.76139338 24.13411373 -10.75953972 22.54361533 -10.75537109 20.953125 C-10.75002267 18.51035345 -10.75531634 16.06776579 -10.76171875 13.625 C-10.76105797 12.08333293 -10.7597768 10.54166597 -10.7578125 9 C-10.75983673 8.26458984 -10.76186096 7.52917969 -10.76394653 6.77148438 C-10.72621122 -1.33787148 -7.13478807 0.18113707 0 0 Z M-8.625 2.5 C-8.625 13.06 -8.625 23.62 -8.625 34.5 C-0.705 34.5 7.215 34.5 15.375 34.5 C15.375 25.92 15.375 17.34 15.375 8.5 C12.405 8.005 12.405 8.005 9.375 7.5 C9.045 5.85 8.715 4.2 8.375 2.5 C2.765 2.5 -2.845 2.5 -8.625 2.5 Z "
|
|
1109
|
-
fill="#E6E6E6" transform="translate(20.625,5.5)"></path>
|
|
1110
|
-
<path
|
|
1111
|
-
d="M0 0 C0.89912109 -0.04576172 1.79824219 -0.09152344 2.72460938 -0.13867188 C7.48764174 -0.21904586 10.43500563 -0.06419453 13.95703125 3.33984375 C16.3125 6.4375 16.3125 6.4375 16.3125 8.4375 C13.97955225 8.47991723 11.64547433 8.47842937 9.3125 8.4375 C8.9825 8.1075 8.6525 7.7775 8.3125 7.4375 C8.3125 5.7875 8.3125 4.1375 8.3125 2.4375 C2.7025 2.4375 -2.9075 2.4375 -8.6875 2.4375 C-8.6875 12.9975 -8.6875 23.5575 -8.6875 34.4375 C-9.0175 34.4375 -9.3475 34.4375 -9.6875 34.4375 C-9.85475324 29.7563055 -10.01534864 25.07494899 -10.16967773 20.39331055 C-10.22316794 18.79949744 -10.27850255 17.20574515 -10.33569336 15.61206055 C-10.41740942 13.32614258 -10.49256897 11.04009054 -10.56640625 8.75390625 C-10.59344131 8.03723282 -10.62047638 7.32055939 -10.64833069 6.58216858 C-10.70047644 4.86802233 -10.69935628 3.15239824 -10.6875 1.4375 C-8.37917712 -0.87082288 -3.09396021 0.0629648 0 0 Z "
|
|
1112
|
-
fill="#DADADA" transform="translate(20.6875,5.5625)"></path>
|
|
1113
|
-
<path
|
|
1114
|
-
d="M0 0 C2.86697492 1.28519565 4.97607712 2.57129254 7 5 C7 5.66 7 6.32 7 7 C4.69 7 2.38 7 0 7 C0 4.69 0 2.38 0 0 Z "
|
|
1115
|
-
fill="#D0D0D0" transform="translate(30,7)"></path>
|
|
1116
|
-
</svg> -->
|
|
1117
|
-
</atomic-result-section-visual>
|
|
1118
|
-
|
|
1119
|
-
<atomic-result-section-title>
|
|
1120
|
-
<atomic-result-link>
|
|
1121
|
-
<a slot="attributes" target="_blank"></a>
|
|
1122
|
-
</atomic-result-link>
|
|
1123
|
-
</atomic-result-section-title>
|
|
1124
|
-
|
|
1125
|
-
<atomic-result-section-excerpt>
|
|
1126
|
-
<atomic-result-text field="excerpt"></atomic-result-text>
|
|
1127
|
-
</atomic-result-section-excerpt>
|
|
1128
|
-
|
|
1129
|
-
<atomic-result-section-bottom-metadata>
|
|
1130
|
-
<span>
|
|
1131
|
-
<atomic-text value="Date: "></atomic-text>
|
|
1132
|
-
<atomic-result-date></atomic-result-date>
|
|
1133
|
-
</span><span>
|
|
1134
|
-
<atomic-text value="Source: "></atomic-text><atomic-result-text field="sourcetype"></atomic-result-text>
|
|
1135
|
-
</span><span> <atomic-text value="Sharepoint: "></atomic-text>
|
|
1136
|
-
<atomic-result-link><a slot="attributes" target="_blank"></a>
|
|
1137
|
-
<atomic-result-text field="spsitename"></atomic-result-text>
|
|
1138
|
-
</atomic-result-link>
|
|
1139
|
-
</span>
|
|
1140
|
-
</atomic-result-section-bottom-metadata>`,F2=`<style>
|
|
1141
|
-
.field {
|
|
1142
|
-
display: inline-flex;
|
|
1143
|
-
align-items: center;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
.field-label {
|
|
1147
|
-
font-weight: bold;
|
|
1148
|
-
margin-right: 0.25rem;
|
|
1149
|
-
}
|
|
1150
|
-
atomic-result-section-excerpt {
|
|
1151
|
-
font-size: 1.3rem !important;
|
|
1152
|
-
margin-top: 0.875rem !important;
|
|
1153
|
-
max-height: unset !important;
|
|
1154
|
-
line-height: normal !important;
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
atomic-result-section-bottom-metadata {
|
|
1158
|
-
margin-top: 2px;
|
|
1159
|
-
font-size: 1rem !important;
|
|
1160
|
-
color: #A6A6A6 !important;
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
atomic-result-section-bottom-metadata a {
|
|
1164
|
-
color: #A6A6A6 !important;
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
atomic-result-section-title a {
|
|
1169
|
-
color: #CAA144 !important;
|
|
1170
|
-
font-size: 1.7rem !important;
|
|
1171
|
-
max-height: unset !important;
|
|
1172
|
-
line-height: normal !important;
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
atomic-result-section-title a:visited {
|
|
1176
|
-
color: black !important;
|
|
1177
|
-
}
|
|
1178
|
-
atomic-result-section-visual {
|
|
1179
|
-
width: 3rem !important;
|
|
1180
|
-
height: 5rem !important;
|
|
1181
|
-
display: grid;
|
|
1182
|
-
align-items: center;
|
|
1183
|
-
justify-content: center;
|
|
1184
|
-
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
atomic-result-section-bottom-metadata {
|
|
1188
|
-
margin-top: 2px;
|
|
1189
|
-
color: #A6A6A6 !important;
|
|
1190
|
-
font-size: 1rem !important;
|
|
1191
|
-
margin-right: 3px;
|
|
1192
|
-
line-height: 18px !important;
|
|
1193
|
-
display: grid;
|
|
1194
|
-
grid-template-columns: auto auto auto;
|
|
1195
|
-
gap: 1rem;
|
|
1196
|
-
align-items: center;
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
atomic-result-date{
|
|
1200
|
-
font-size:1.0rem;
|
|
1201
|
-
}
|
|
1202
|
-
</style>
|
|
1203
|
-
|
|
1204
|
-
<atomic-result-section-visual>
|
|
1205
|
-
<atomic-field-condition class="field" must-match-filetype="mp4,wmv,avi,MOV,flv,mkv,webm,ogg,ogv,m4v,mpg">
|
|
1206
|
-
<img src="https://cdn.jsdelivr.net/npm/@coveops/abi@latest/dist/abi/images/Movies.png" alt="Image">
|
|
1207
|
-
<!-- <atomic-icon class="icon"></atomic-icon>
|
|
1208
|
-
<img src="https://abiglobal--c.vf.force.com/resource/PP_Coveo/img/Movies.png" class="thumbnail"> -->
|
|
1209
|
-
</atomic-field-condition>
|
|
1210
|
-
<atomic-field-condition class="field" must-match-filetype="gif,jpeg,jpg,png,bmp,Image">
|
|
1211
|
-
<img src="https://cdn.jsdelivr.net/npm/@coveops/abi@latest/dist/abi/images/Images.png" alt="Image">
|
|
1212
|
-
<!-- <atomic-icon class="icon"></atomic-icon>
|
|
1213
|
-
<img src="https://abiglobal--c.vf.force.com/resource/PP_Coveo/img/Images.png" class="thumbnail"> -->
|
|
1214
|
-
</atomic-field-condition>
|
|
1215
|
-
|
|
1216
|
-
</atomic-result-section-visual>
|
|
1217
|
-
|
|
1218
|
-
<atomic-result-section-title>
|
|
1219
|
-
<atomic-result-link> <a slot="attributes" target="_blank"></a></atomic-result-link>
|
|
1220
|
-
</atomic-result-section-title>
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
<atomic-result-section-bottom-metadata>
|
|
1224
|
-
<span>
|
|
1225
|
-
<atomic-text value="Date: "></atomic-text>
|
|
1226
|
-
<atomic-result-date></atomic-result-date>
|
|
1227
|
-
</span><span>
|
|
1228
|
-
<atomic-text value="Source: "></atomic-text><atomic-result-text field="sourcetype"></atomic-result-text>
|
|
1229
|
-
</span><span> <atomic-text value="Sharepoint: "></atomic-text>
|
|
1230
|
-
<atomic-result-link><a slot="attributes" target="_blank"></a>
|
|
1231
|
-
<atomic-result-text field="spsitename"></atomic-result-text>
|
|
1232
|
-
</atomic-result-link>
|
|
1233
|
-
</span>
|
|
1234
|
-
</atomic-result-section-bottom-metadata>
|
|
1235
|
-
`,GA=`<style>
|
|
1236
|
-
.field {
|
|
1237
|
-
display: inline-flex;
|
|
1238
|
-
align-items: center;
|
|
1239
|
-
line-height: normal !important;
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
.field-label {
|
|
1243
|
-
font-weight: bold;
|
|
1244
|
-
margin-right: 0.25rem;
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
atomic-result-section-bottom-metadata {
|
|
1248
|
-
display: grid;
|
|
1249
|
-
grid-template-columns: 1fr 1fr;
|
|
1250
|
-
font-size: 1.3rem !important;
|
|
1251
|
-
width: 100%;
|
|
1252
|
-
margin-top: 2px;
|
|
1253
|
-
max-height: 25rem !important;
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
atomic-result-section-title a {
|
|
1257
|
-
color: #CAA144 !important;
|
|
1258
|
-
font-size: 1.7rem !important;
|
|
1259
|
-
max-height: unset !important;
|
|
1260
|
-
line-height: normal !important;
|
|
1261
|
-
}
|
|
1262
|
-
atomic-result-section-visual {
|
|
1263
|
-
width: 3rem !important;
|
|
1264
|
-
height: 5rem !important;
|
|
1265
|
-
display: grid;
|
|
1266
|
-
align-items: center;
|
|
1267
|
-
}
|
|
1268
|
-
atomic-result-image{
|
|
1269
|
-
width: auto !important;
|
|
1270
|
-
height: auto !important;
|
|
1271
|
-
}
|
|
1272
|
-
atomic-result-image img{
|
|
1273
|
-
border-radius: 20% !important;
|
|
1274
|
-
}
|
|
1275
|
-
</style>
|
|
1276
|
-
|
|
1277
|
-
<atomic-result-section-visual>
|
|
1278
|
-
<atomic-field-condition class="field" if-defined="resultpicture">
|
|
1279
|
-
<atomic-result-image field="resultpicture"></atomic-result-image>
|
|
1280
|
-
</atomic-field-condition>
|
|
1281
|
-
<atomic-field-condition class="field" if-not-defined="resultpicture">
|
|
1282
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"/></svg>
|
|
1283
|
-
</atomic-field-condition>
|
|
1284
|
-
</atomic-result-section-visual>
|
|
1285
|
-
|
|
1286
|
-
<atomic-result-section-title>
|
|
1287
|
-
<atomic-result-link href-template="/cheers?id=cheers_hub_profile&sys_id=\${raw.snsysid}">
|
|
1288
|
-
<a slot="attributes" target="_blank"></a>
|
|
1289
|
-
</atomic-result-link>
|
|
1290
|
-
</atomic-result-section-title>
|
|
1291
|
-
|
|
1292
|
-
<atomic-result-section-bottom-metadata>
|
|
1293
|
-
|
|
1294
|
-
<atomic-field-condition class="field" if-defined="sntitle">
|
|
1295
|
-
<span class="field-label">
|
|
1296
|
-
<atomic-text value="Title"></atomic-text>:
|
|
1297
|
-
</span>
|
|
1298
|
-
<atomic-result-text field="sntitle"></atomic-result-text>
|
|
1299
|
-
</atomic-field-condition>
|
|
1300
|
-
<br>
|
|
1301
|
-
<atomic-field-condition class="field" if-defined="snupreferredzone">
|
|
1302
|
-
<span class="field-label">
|
|
1303
|
-
<atomic-text value="Zone"></atomic-text>:
|
|
1304
|
-
</span>
|
|
1305
|
-
<atomic-result-text field="snupreferredzone"></atomic-result-text>
|
|
1306
|
-
</atomic-field-condition>
|
|
1307
|
-
|
|
1308
|
-
<atomic-field-condition class="field" if-defined="snbuilding">
|
|
1309
|
-
<span class="field-label">
|
|
1310
|
-
<atomic-text value="OfficeLocation"></atomic-text>:
|
|
1311
|
-
</span>
|
|
1312
|
-
<atomic-result-text field="snbuilding"></atomic-result-text>
|
|
1313
|
-
</atomic-field-condition>
|
|
1314
|
-
<atomic-field-condition class="field" if-defined="snufunction">
|
|
1315
|
-
<span class="field-label">
|
|
1316
|
-
<atomic-text value="Function"></atomic-text>:
|
|
1317
|
-
</span>
|
|
1318
|
-
<atomic-result-text field="snufunction"></atomic-result-text>
|
|
1319
|
-
</atomic-field-condition>
|
|
1320
|
-
|
|
1321
|
-
<atomic-field-condition class="field" if-defined="snemail">
|
|
1322
|
-
<span class="field-label">
|
|
1323
|
-
<atomic-text value="Email"></atomic-text>:
|
|
1324
|
-
</span>
|
|
1325
|
-
<atomic-result-text field="snemail"></atomic-result-text>
|
|
1326
|
-
</atomic-field-condition>
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
</atomic-result-section-bottom-metadata>
|
|
1331
|
-
`,KA=class extends Fn{constructor(){super(),this.__registerHost()}async componentWillLoad(){return ui()}render(){return ne("atomic-result-list",null,ne("atomic-result-template",{"must-match-filetype":"mp4,wmv,avi,MOV,flv,mkv,webm,ogg,ogv,m4v,gif,jpeg,jpg,png,bmp,Image,mp3,mp4,wmv,avi,MOV,flv,mkv,webm,ogg,ogv,m4v,mpg"},ne("template",{innerHTML:F2})),ne("atomic-result-template",{"must-match-abicontenttype":"Site Pages"},ne("template",{innerHTML:NA})),ne("atomic-result-template",{"must-match-abicontenttype":"Knowledge Article"},ne("template",{innerHTML:QA})),ne("atomic-result-template",{"must-match-abicontenttype":"FAQ"},ne("template",{innerHTML:HA})),ne("atomic-result-template",{"must-match-abicontenttype":"Quick Links"},ne("template",{innerHTML:BA})),ne("atomic-result-template",{"must-match-abicontenttype":"Application"},ne("template",{innerHTML:WA})),ne("atomic-result-template",{"must-match-abicontenttype":"eLearning"},ne("template",{innerHTML:YA})),ne("atomic-result-template",{"must-match-abicontenttype":"People","must-match-objecttype":"Account"},ne("template",{innerHTML:ZA})),ne("atomic-result-template",{"must-match-abicontenttype":"People","must-match-filetype":"sys_user"},ne("template",{innerHTML:GA})),ne("atomic-result-template",{"must-match-abicontenttype":"Documents"},ne("template",{innerHTML:JA})),ne("atomic-result-template",{"must-match-abicontenttype":"Media"},ne("template",{innerHTML:F2})),ne("atomic-result-template",null,ne("template",{innerHTML:VA})))}},XA="nav{width:300px;display:flex;justify-content:space-around}button{color:var(--atomic-on-primary);background-color:var(--atomic-primary)}",eR=class extends Fn{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.pagerUnsubscribe=()=>{},this.statusUnsubscribe=()=>{},this.i18nUnsubscribe=()=>{}}async connectedCallback(){try{await ui(),this.bindings=await Yo(this.host);let e=rS(this.bindings.engine);this.pagerController=Qb(this.bindings.engine),this.statusUnsubscribe=e.subscribe(()=>this.statusState=e.state),this.pagerUnsubscribe=this.pagerController.subscribe(()=>this.pagerState=this.pagerController.state);let t=()=>jm(this);this.bindings.i18n.on("languageChanged",t),this.i18nUnsubscribe=()=>this.bindings.i18n.off("languageChanged",t)}catch(e){console.error(e),this.error=e}}disconnectedCallback(){this.pagerUnsubscribe(),this.statusUnsubscribe(),this.i18nUnsubscribe()}get pages(){return this.pagerState.currentPages.map(t=>this.buildPage(t))}buildPage(e){let t=this.pagerController.isCurrentPage(e);return ne("button",{onClick:()=>{this.pagerController.selectPage(e)}},t?"\u2713 ":"",e.toLocaleString(this.bindings.i18n.language))}get previous(){return ne("button",{onClick:()=>{this.pagerController.previousPage()}},ne("atomic-text",{value:"previous"}))}get next(){return ne("button",{onClick:()=>{this.pagerController.nextPage()}},ne("atomic-text",{value:"next"}))}render(){if(this.error)return ne("p",null,"Error when initializing the component, please view the console for more information.");if(!(!this.bindings||!this.statusState.hasResults))return ne("nav",null,this.pagerState.hasPreviousPage&&this.previous,this.pages,this.pagerState.hasNextPage&&this.next)}get host(){return this}static get style(){return XA}},tR="",nR=class extends Fn{constructor(){super(),this.__registerHost(),this.__attachShadow()}async connectedCallback(){var e;try{await ui(),this.bindings=await Yo(this.host),(e=this.bindings)===null||e===void 0||e.i18n.addResourceBundle("en","translation",{"search-tips":"You may want to try using different keywords or checking for spelling mistakes."})}catch(t){console.error(t)}}async handleStandaloneSearchbox(e){var t,n,r,i,a,o,s,l,u,d;let f=mS((t=this.bindings)===null||t===void 0?void 0:t.engine);(r=(n=this.bindings)===null||n===void 0?void 0:n.engine)===null||r===void 0||r.dispatch(f.updateQuery({q:e.detail}));let m=hS((i=this.bindings)===null||i===void 0?void 0:i.engine);(o=(a=this.bindings)===null||a===void 0?void 0:a.engine)===null||o===void 0||o.dispatch(m.updatePage(1));let y=vS((s=this.bindings)===null||s===void 0?void 0:s.engine),g=gS((l=this.bindings)===null||l===void 0?void 0:l.engine);(d=(u=this.bindings)===null||u===void 0?void 0:u.engine)===null||d===void 0||d.dispatch(g.executeSearch(y.logSearchboxSubmit()))}render(){return ne(mu,null)}get host(){return this}static get style(){return tR}},rR="b{color:var(--atomic-primary)}",iR=class extends Fn{constructor(){super(),this.__registerHost(),this.__attachShadow()}async connectedCallback(){try{this.result=await zh(this.host)}catch(e){console.error(e),this.host.remove()}}stripHtmlAndEntities(e){var t=document.createElement("div");t.innerHTML=e;var n=t.textContent||t.innerText||"",r=n.replace(/&#(\d+);/g,(i,a)=>String.fromCharCode(a));return r}render(){if(!this.result)return;let e;this.result.raw.abicontenttype=="Quick Links"?e=this.result.excerpt||"No description available":e=this.result.raw.description;let t="";return typeof e=="string"&&(t=this.stripHtmlAndEntities(e)),ne("div",{style:{fontSize:"1.3rem",maxHeight:"none",lineHeight:"normal"}},t)}get host(){return this}static get style(){return rR}},aR=Dn(RA,[1,"faq-popup-component",{origin:[1],result:[32]}]),oR=Dn(MA,[1,"recs-initialization-helper",{userCountry:[1,"user-country"]}]),sR=Dn(zA,[0,"recs-results-manager"]),lR=Dn(KA,[0,"results-manager"]),uR=Dn(eR,[1,"sample-component",{pagerState:[32],statusState:[32]}]),cR=Dn(nR,[1,"standalone-searchbox-listener",null,[[8,"header/searchbox/query","handleStandaloneSearchbox"]]]),dR=Dn(iR,[1,"strip-html-component",{result:[32]}]),fR=e=>{typeof customElements!="undefined"&&[aR,oR,sR,lR,uR,cR,dR].forEach(t=>{customElements.get(t.is)||customElements.define(t.is,t,e)})};fR();export{aR as FaqPopupComponent,oR as RecsInitializationHelper,sR as RecsResultsManager,lR as ResultsManager,uR as SampleComponent,cR as StandaloneSearchboxListener,dR as StripHtmlComponent,fR as defineCustomElements,hR as setAssetPath,mR as setPlatformOptions};
|
|
1332
|
-
/**
|
|
1333
|
-
* @license
|
|
1334
|
-
*
|
|
1335
|
-
* Copyright 2023 Coveo Solutions Inc.
|
|
1336
|
-
*
|
|
1337
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1338
|
-
* you may not use this file except in compliance with the License.
|
|
1339
|
-
* You may obtain a copy of the License at
|
|
1340
|
-
*
|
|
1341
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1342
|
-
*
|
|
1343
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1344
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1345
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1346
|
-
* See the License for the specific language governing permissions and
|
|
1347
|
-
* limitations under the License.
|
|
1348
|
-
*/
|
|
1349
|
-
/*! *****************************************************************************
|
|
1350
|
-
Copyright (c) Microsoft Corporation.
|
|
1351
|
-
|
|
1352
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
1353
|
-
purpose with or without fee is hereby granted.
|
|
1354
|
-
|
|
1355
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1356
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1357
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1358
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1359
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1360
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1361
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
1362
|
-
***************************************************************************** */
|
|
1363
|
-
/*! @license DOMPurify 2.3.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.10/LICENSE */
|