@searchcraft/vue-sdk 0.10.4 → 0.10.5
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/index.d.ts +49 -19
- package/dist/index.es.js +1426 -1275
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/themes/hologram.css +1 -1
- package/dist/themes/hologram.css.map +1 -1
- package/package.json +3 -3
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(O,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],B):(O=typeof globalThis<"u"?globalThis:O||self,B(O.SearchcraftVueSdk={},O.Vue))})(this,function(O,B){"use strict";var ui=Object.defineProperty;var hi=(O,B,_e)=>B in O?ui(O,B,{enumerable:!0,configurable:!0,writable:!0,value:_e}):O[B]=_e;var f=(O,B,_e)=>hi(O,typeof B!="symbol"?B+"":B,_e);var Ms;const _e="searchcraft-javascript-sdk",Ie={experimentalSlotFixes:!1,hydratedSelectorName:"hydrated",lazyLoad:!1,shadowDom:!1,slotRelocation:!0,updatable:!0};var ma=Object.defineProperty,ga=(e,t)=>{for(var r in t)ma(e,r,{get:t[r],enumerable:!0})},va="http://www.w3.org/2000/svg",ba="http://www.w3.org/1999/xhtml",ya=(e,t)=>{var r;const s=t.$cmpMeta$;Object.entries((r=s.$members$)!=null?r:{}).map(([o,[n]])=>{if(n&31||n&32){const c=e[o],u=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),o);Object.defineProperty(e,o,{get(){return u.get.call(this)},set(h){u.set.call(this,h)},configurable:!0,enumerable:!0}),e[o]=t.$instanceValues$.has(o)?t.$instanceValues$.get(o):c}})},$t=new WeakMap,Sa=e=>$t.delete(e),ke=e=>$t.get(e),Ca=(e,t)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};r.$onReadyPromise$=new Promise(a=>r.$onReadyResolve$=a),e["s-p"]=[],e["s-rc"]=[];const s=$t.set(e,r);return ya(e,r),s},Sr=(e,t)=>t in e,ot=(e,t)=>(0,console.error)(e,t),ct=typeof window<"u"?window:{},Ae=ct.document||{head:{}},D=ct.HTMLElement||class{},re={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,s)=>e.addEventListener(t,r,s),rel:(e,t,r,s)=>e.removeEventListener(t,r,s),ce:(e,t)=>new CustomEvent(e,t)},ka=Ie.shadowDom,wa=e=>Promise.resolve(e),_t=!1,Cr=[],kr=[],Ra=(e,t)=>r=>{e.push(r),_t||(_t=!0,re.$flags$&4?At(It):re.raf(It))},wr=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){ot(r)}e.length=0},It=()=>{wr(Cr),wr(kr),(_t=Cr.length>0)&&re.raf(It)},At=e=>wa().then(e),xa=Ra(kr),Mt=e=>(e=typeof e,e==="object"||e==="function"),Ea={};ga(Ea,{err:()=>Rr,map:()=>Pa,ok:()=>Lt,unwrap:()=>Ta,unwrapErr:()=>$a});var Lt=e=>({isOk:!0,isErr:!1,value:e}),Rr=e=>({isOk:!1,isErr:!0,value:e});function Pa(e,t){if(e.isOk){const r=t(e.value);return r instanceof Promise?r.then(s=>Lt(s)):Lt(r)}if(e.isErr){const r=e.value;return Rr(r)}throw"should never get here"}var Ta=e=>{if(e.isOk)return e.value;throw e.value},$a=e=>{if(e.isErr)return e.value;throw e.value},xr=e=>{const t=e.__childNodes||e.childNodes;e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&Er(t,e.tagName).forEach(r=>{var s;r.nodeType===1&&r.tagName==="SLOT-FB"&&((s=_a(r,r["s-sn"],!1))!=null&&s.length?r.hidden=!0:r.hidden=!1)});for(const r of t)r.nodeType===1&&(r.__childNodes||r.childNodes).length&&xr(r)};function Er(e,t,r){let s=0,a=[],o;for(;s<e.length;s++)o=e[s],o["s-sr"]&&o["s-hn"]===t&&r===void 0&&a.push(o),a=[...a,...Er(o.childNodes,t,r)];return a}var _a=(e,t,r=!0)=>{const s=[];for((r&&e["s-sr"]||!e["s-sr"])&&s.push(e);(e=e.nextSibling)&&e["s-sn"]===t;)s.push(e);return s},Pr=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",Be=(e,t="")=>()=>{},l=(e,t,...r)=>{let s=null,a=null,o=null,n=!1,c=!1;const u=[],h=p=>{for(let g=0;g<p.length;g++)s=p[g],Array.isArray(s)?h(s):s!=null&&typeof s!="boolean"&&((n=typeof e!="function"&&!Mt(s))&&(s=String(s)),n&&c?u[u.length-1].$text$+=s:u.push(n?it(null,s):s),c=n)};if(h(r),t){t.key&&(a=t.key),t.name&&(o=t.name);{const p=t.className||t.class;p&&(t.class=typeof p!="object"?p:Object.keys(p).filter(g=>p[g]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,u,Ma);const i=it(e,null);return i.$attrs$=t,u.length>0&&(i.$children$=u),i.$key$=a,i.$name$=o,i},it=(e,t)=>{const r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r.$name$=null,r},Ia={},Aa=e=>e&&e.$tag$===Ia,Ma={forEach:(e,t)=>e.map(Tr).forEach(t),map:(e,t)=>e.map(Tr).map(t).map(La)},Tr=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),La=e=>{if(typeof e.vtag=="function"){const r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),l(e.vtag,r,...e.vchildren||[])}const t=it(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},$r=(e,t)=>e!=null&&!Mt(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,Oa=e=>e,we=(e,t,r)=>{const s=Oa(e);return{emit:a=>_r(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:a})}},_r=(e,t,r)=>{const s=re.ce(t,r);return e.dispatchEvent(s),s},lt=new WeakMap,Ir=(e,t,r,s,a,o)=>{if(r!==s){let n=Sr(e,t),c=t.toLowerCase();if(t==="class"){const u=e.classList,h=Ar(r);let i=Ar(s);e["s-si"]?(i.push(e["s-si"]),h.forEach(p=>{p.startsWith(e["s-si"])&&i.push(p)}),i=[...new Set(i)],u.add(...i),delete e["s-si"]):(u.remove(...h.filter(p=>p&&!i.includes(p))),u.add(...i.filter(p=>p&&!h.includes(p))))}else if(t==="style"){for(const u in r)(!s||s[u]==null)&&(u.includes("-")?e.style.removeProperty(u):e.style[u]="");for(const u in s)(!r||s[u]!==r[u])&&(u.includes("-")?e.style.setProperty(u,s[u]):e.style[u]=s[u])}else if(t!=="key")if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):Sr(ct,c)?t=c.slice(2):t=c[2]+t.slice(3),r||s){const u=t.endsWith(Mr);t=t.replace(Da,""),r&&re.rel(e,t,r,u),s&&re.ael(e,t,s,u)}}else{const u=Mt(s);if((n||u&&s!==null)&&!a)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const h=s??"";t==="list"?n=!1:(r==null||e[t]!=h)&&(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!n||o&4||a)&&!u&&(s=s===!0?"":s,e.setAttribute(t,s))}}},Fa=/\s/,Ar=e=>(typeof e=="object"&&"baseVal"in e&&(e=e.baseVal),e?e.split(Fa):[]),Mr="Capture",Da=new RegExp(Mr+"$"),Lr=(e,t,r)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,a=e&&e.$attrs$||{},o=t.$attrs$||{};for(const n of Or(Object.keys(a)))n in o||Ir(s,n,a[n],void 0,r,t.$flags$);for(const n of Or(Object.keys(o)))Ir(s,n,a[n],o[n],r,t.$flags$)};function Or(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var Ot,Ft,ut=!1,ht=!1,Dt=!1,ne=!1,dt=(e,t,r)=>{var s;const a=t.$children$[r];let o=0,n,c,u;if(ut||(Dt=!0,a.$tag$==="slot"&&(a.$flags$|=a.$children$?2:1)),a.$text$!==null)n=a.$elm$=Ae.createTextNode(a.$text$);else if(a.$flags$&1)n=a.$elm$=Ae.createTextNode("");else{if(ne||(ne=a.$tag$==="svg"),n=a.$elm$=Ae.createElementNS(ne?va:ba,!ut&&Ie.slotRelocation&&a.$flags$&2?"slot-fb":a.$tag$),ne&&a.$tag$==="foreignObject"&&(ne=!1),Lr(null,a,ne),a.$children$)for(o=0;o<a.$children$.length;++o)c=dt(e,a,o),c&&n.appendChild(c);a.$tag$==="svg"?ne=!1:n.tagName==="foreignObject"&&(ne=!0)}return n["s-hn"]=Ft,a.$flags$&3&&(n["s-sr"]=!0,n["s-cr"]=Ot,n["s-sn"]=a.$name$||"",n["s-rf"]=(s=a.$attrs$)==null?void 0:s.ref,u=e&&e.$children$&&e.$children$[r],u&&u.$tag$===a.$tag$&&e.$elm$&&We(e.$elm$,!1)),n},We=(e,t)=>{re.$flags$|=1;const r=Array.from(e.__childNodes||e.childNodes);e["s-sr"]&&Ie.experimentalSlotFixes;for(let s=r.length-1;s>=0;s--){const a=r[s];a["s-hn"]!==Ft&&a["s-ol"]&&(Re(Ge(a).parentNode,a,Ge(a)),a["s-ol"].remove(),a["s-ol"]=void 0,a["s-sh"]=void 0,Dt=!0),t&&We(a,t)}re.$flags$&=-2},Fr=(e,t,r,s,a,o)=>{let n=e["s-cr"]&&e["s-cr"].parentNode||e,c;for(;a<=o;++a)s[a]&&(c=dt(null,r,a),c&&(s[a].$elm$=c,Re(n,c,Ge(t))))},Dr=(e,t,r)=>{for(let s=t;s<=r;++s){const a=e[s];if(a){const o=a.$elm$;o&&(ht=!0,o["s-ol"]?o["s-ol"].remove():We(o,!0),o.remove())}}},Ha=(e,t,r,s,a=!1)=>{let o=0,n=0,c=0,u=0,h=t.length-1,i=t[0],p=t[h],g=s.length-1,k=s[0],b=s[g],P,I;for(;o<=h&&n<=g;)if(i==null)i=t[++o];else if(p==null)p=t[--h];else if(k==null)k=s[++n];else if(b==null)b=s[--g];else if(ft(i,k,a))Me(i,k,a),i=t[++o],k=s[++n];else if(ft(p,b,a))Me(p,b,a),p=t[--h],b=s[--g];else if(ft(i,b,a))(i.$tag$==="slot"||b.$tag$==="slot")&&We(i.$elm$.parentNode,!1),Me(i,b,a),Re(e,i.$elm$,p.$elm$.nextSibling),i=t[++o],b=s[--g];else if(ft(p,k,a))(i.$tag$==="slot"||b.$tag$==="slot")&&We(p.$elm$.parentNode,!1),Me(p,k,a),Re(e,p.$elm$,i.$elm$),p=t[--h],k=s[++n];else{for(c=-1,u=o;u<=h;++u)if(t[u]&&t[u].$key$!==null&&t[u].$key$===k.$key$){c=u;break}c>=0?(I=t[c],I.$tag$!==k.$tag$?P=dt(t&&t[n],r,c):(Me(I,k,a),t[c]=void 0,P=I.$elm$),k=s[++n]):(P=dt(t&&t[n],r,n),k=s[++n]),P&&Re(Ge(i.$elm$).parentNode,P,Ge(i.$elm$))}o>h?Fr(e,s[g+1]==null?null:s[g+1].$elm$,r,s,n,g):n>g&&Dr(t,o,h)},ft=(e,t,r=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:r?(r&&!e.$key$&&t.$key$&&(e.$key$=t.$key$),!0):e.$key$===t.$key$:!1,Ge=e=>e&&e["s-ol"]||e,Me=(e,t,r=!1)=>{const s=t.$elm$=e.$elm$,a=e.$children$,o=t.$children$,n=t.$tag$,c=t.$text$;let u;c===null?(ne=n==="svg"?!0:n==="foreignObject"?!1:ne,n==="slot"&&!ut||Lr(e,t,ne),a!==null&&o!==null?Ha(s,a,t,o,r):o!==null?(e.$text$!==null&&(s.textContent=""),Fr(s,null,t,o,0,o.length-1)):!r&&Ie.updatable&&a!==null&&Dr(a,0,a.length-1),ne&&n==="svg"&&(ne=!1)):(u=s["s-cr"])?u.parentNode.textContent=c:e.$text$!==c&&(s.data=c)},de=[],Hr=e=>{let t,r,s;const a=e.__childNodes||e.childNodes;for(const o of a){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){r=t.parentNode.__childNodes||t.parentNode.childNodes;const n=o["s-sn"];for(s=r.length-1;s>=0;s--)if(t=r[s],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"])if(Pr(t,n)){let c=de.find(u=>u.$nodeToRelocate$===t);ht=!0,t["s-sn"]=t["s-sn"]||n,c?(c.$nodeToRelocate$["s-sh"]=o["s-hn"],c.$slotRefNode$=o):(t["s-sh"]=o["s-hn"],de.push({$slotRefNode$:o,$nodeToRelocate$:t})),t["s-sr"]&&de.map(u=>{Pr(u.$nodeToRelocate$,t["s-sn"])&&(c=de.find(h=>h.$nodeToRelocate$===t),c&&!u.$slotRefNode$&&(u.$slotRefNode$=c.$slotRefNode$))})}else de.some(c=>c.$nodeToRelocate$===t)||de.push({$nodeToRelocate$:t})}o.nodeType===1&&Hr(o)}},Re=(e,t,r)=>e==null?void 0:e.insertBefore(t,r),Na=(e,t,r=!1)=>{var s,a,o,n;const c=e.$hostElement$,u=e.$vnode$||it(null,null),h=Aa(t)?t:l(null,null,t);if(Ft=c.tagName,r&&h.$attrs$)for(const i of Object.keys(h.$attrs$))c.hasAttribute(i)&&!["key","ref","style","class"].includes(i)&&(h.$attrs$[i]=c[i]);h.$tag$=null,h.$flags$|=4,e.$vnode$=h,h.$elm$=u.$elm$=c,ut=ka,Ot=c["s-cr"],ht=!1,Me(u,h,r);{if(re.$flags$|=1,Dt){Hr(h.$elm$);for(const i of de){const p=i.$nodeToRelocate$;if(!p["s-ol"]){const g=Ae.createTextNode("");g["s-nr"]=p,Re(p.parentNode,p["s-ol"]=g,p)}}for(const i of de){const p=i.$nodeToRelocate$,g=i.$slotRefNode$;if(g){const k=g.parentNode;let b=g.nextSibling;{let F=(s=p["s-ol"])==null?void 0:s.previousSibling;for(;F;){let T=(a=F["s-nr"])!=null?a:null;if(T&&T["s-sn"]===p["s-sn"]&&k===(T.__parentNode||T.parentNode)){for(T=T.nextSibling;T===p||T!=null&&T["s-sr"];)T=T==null?void 0:T.nextSibling;if(!T||!T["s-nr"]){b=T;break}}F=F.previousSibling}}const P=p.__parentNode||p.parentNode,I=p.__nextSibling||p.nextSibling;(!b&&k!==P||I!==b)&&p!==b&&(!p["s-hn"]&&p["s-ol"]&&(p["s-hn"]=p["s-ol"].parentNode.nodeName),Re(k,p,b),p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(o=p["s-ih"])!=null?o:!1)),p&&typeof g["s-rf"]=="function"&&g["s-rf"](p)}else p.nodeType===1&&(r&&(p["s-ih"]=(n=p.hidden)!=null?n:!1),p.hidden=!0)}}ht&&xr(h.$elm$),re.$flags$&=-2,de.length=0}Ot=void 0},Nr=(e,t)=>{if(t&&!e.$onRenderResolve$&&t["s-p"]){const r=t["s-p"].push(new Promise(s=>e.$onRenderResolve$=()=>{t["s-p"].splice(r-1,1),s()}))}},Ht=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return Nr(e,e.$ancestorComponent$),xa(()=>Ua(e,t))},Ua=(e,t)=>{const r=e.$hostElement$,s=Be("scheduleUpdate",e.$cmpMeta$.$tagName$),a=r;if(!a)throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return s(),za(o,()=>Va(e,a,t))},za=(e,t)=>ja(e)?e.then(t).catch(r=>{console.error(r),t()}):t(),ja=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Va=async(e,t,r)=>{var s;const a=e.$hostElement$,o=Be("update",e.$cmpMeta$.$tagName$),n=a["s-rc"],c=Be("render",e.$cmpMeta$.$tagName$);Ba(e,t,a,r),n&&(n.map(u=>u()),a["s-rc"]=void 0),c(),o();{const u=(s=a["s-p"])!=null?s:[],h=()=>Wa(e);u.length===0?h():(Promise.all(u).then(h),e.$flags$|=4,u.length=0)}},Ba=(e,t,r,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Na(e,t,s)}catch(a){ot(a,e.$hostElement$)}return null},Wa=e=>{const t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=Be("postUpdate",t),a=r,o=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,Ur(r),qa(a,"componentDidLoad",void 0,r),s(),e.$onReadyResolve$(r),o||Ga()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&At(()=>Ht(e,!1)),e.$flags$&=-517},Ga=e=>{Ur(Ae.documentElement),At(()=>_r(ct,"appload",{detail:{namespace:_e}}))},qa=(e,t,r,s)=>{if(e&&e[t])try{return e[t](r)}catch(a){ot(a,s)}},Ur=e=>{var t;return e.classList.add((t=Ie.hydratedSelectorName)!=null?t:"hydrated")},Ya=(e,t)=>ke(e).$instanceValues$.get(t),zr=(e,t,r,s)=>{const a=ke(e),o=e,n=a.$instanceValues$.get(t),c=a.$flags$,u=o;r=$r(r,s.$members$[t][0]);const h=Number.isNaN(n)&&Number.isNaN(r);if(r!==n&&!h){a.$instanceValues$.set(t,r);{if(s.$watchers$&&c&128){const p=s.$watchers$[t];p&&p.map(g=>{try{u[g](r,n,t)}catch(k){ot(k,o)}})}(c&18)===2&&Ht(a,!1)}}},Za=(e,t,r)=>{var s,a;const o=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const n=Object.entries((s=t.$members$)!=null?s:{});n.map(([c,[u]])=>{if(u&31||u&32){const{get:h,set:i}=Object.getOwnPropertyDescriptor(o,c)||{};h&&(t.$members$[c][0]|=2048),i&&(t.$members$[c][0]|=4096),Object.defineProperty(o,c,{get(){return h?h.apply(this):Ya(this,c)},configurable:!0,enumerable:!0}),Object.defineProperty(o,c,{set(p){const g=ke(this);if(i){const k=u&32?this[c]:g.$hostElement$[c];typeof k>"u"&&g.$instanceValues$.get(c)?p=g.$instanceValues$.get(c):!g.$instanceValues$.get(c)&&k&&g.$instanceValues$.set(c,k),i.apply(this,[$r(p,u)]),p=u&32?this[c]:g.$hostElement$[c],zr(this,c,p,t);return}{zr(this,c,p,t);return}}})}});{const c=new Map;o.attributeChangedCallback=function(u,h,i){re.jmp(()=>{var p;const g=c.get(u);if(!(this.hasOwnProperty(g)&&Ie.lazyLoad)){if(o.hasOwnProperty(g)&&typeof this[g]=="number"&&this[g]==i)return;if(g==null){const b=ke(this),P=b==null?void 0:b.$flags$;if(P&&!(P&8)&&P&128&&i!==h){const F=this,T=(p=t.$watchers$)==null?void 0:p[u];T==null||T.forEach(be=>{F[be]!=null&&F[be].call(F,i,h,u)})}return}}const k=Object.getOwnPropertyDescriptor(o,g);i=i===null&&typeof this[g]=="boolean"?!1:i,i!==this[g]&&(!k.get||k.set)&&(this[g]=i)})},e.observedAttributes=Array.from(new Set([...Object.keys((a=t.$watchers$)!=null?a:{}),...n.filter(([u,h])=>h[0]&15).map(([u,h])=>{const i=h[1]||u;return c.set(i,u),i})]))}}return e},Qa=async(e,t,r,s)=>{if(!(t.$flags$&32)){t.$flags$|=32;{const n=e.localName;customElements.whenDefined(n).then(()=>t.$flags$|=128)}}const a=t.$ancestorComponent$,o=()=>Ht(t,!0);a&&a["s-rc"]?a["s-rc"].push(o):o()},Ka=(e,t)=>{},Xa=e=>{if(!(re.$flags$&1)){const t=ke(e),r=t.$cmpMeta$,s=Be("connectedCallback",r.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ka());else{t.$flags$|=1,r.$flags$&12&&Ja(e);{let a=e;for(;a=a.parentNode||a.host;)if(a["s-p"]){Nr(t,t.$ancestorComponent$=a);break}}r.$members$&&Object.entries(r.$members$).map(([a,[o]])=>{if(o&31&&e.hasOwnProperty(a)){const n=e[a];delete e[a],e[a]=n}}),Qa(e,t)}s()}},Ja=e=>{const t=e["s-cr"]=Ae.createComment("");t["s-cn"]=!0,Re(e,t,e.firstChild)},en=async e=>{re.$flags$&1||ke(e),lt.has(e)&<.delete(e),e.shadowRoot&<.has(e.shadowRoot)&<.delete(e.shadowRoot)},H=(e,t)=>{const r={$flags$:t[0],$tagName$:t[1]};r.$members$=t[2],r.$watchers$=e.$watchers$;const s=e.prototype.connectedCallback,a=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){Ca(this,r)},connectedCallback(){this.__hasHostListenerAttached||(ke(this),this.__hasHostListenerAttached=!0),Xa(this),s&&s.call(this)},disconnectedCallback(){en(this),a&&a.call(this),re.raf(()=>{var o;const n=ke(this);((o=n==null?void 0:n.$vnode$)==null?void 0:o.$elm$)instanceof Node&&!n.$vnode$.$elm$.isConnected&&delete n.$vnode$,this instanceof Node&&!this.isConnected&&Sa(this)})},__attachShadow(){this.shadowRoot=this}}),e.is=r.$tagName$,Za(e,r)},tn=(e,t)=>t,rn=Object.defineProperty,sn=(e,t,r)=>t in e?rn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t,r)=>sn(e,typeof t!="symbol"?t+"":t,r),fe=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(fe||{});class an{constructor(t){A(this,"logLevel"),A(this,"logFormatter"),this.logLevel=t.logLevel||1,this.logFormatter=t.logFormatter||this.defaultFormatter}defaultFormatter(t,r){return`[${fe[t]}] ${new Date().toISOString()}: ${r}`}debug(t){this.logLevel<=0&&console.log(this.logFormatter(0,t))}info(t){this.logLevel<=1&&console.info(this.logFormatter(1,t))}warn(t){this.logLevel<=2&&console.warn(this.logFormatter(2,t))}error(t){this.logLevel<=3&&console.error(this.logFormatter(3,t))}log(t,r){switch(t){case 0:this.debug(r);break;case 1:this.info(r);break;case 2:this.warn(r);break;case 3:this.error(r);break}}}function pe(e,t,r,s){return new(r||(r=Promise))(function(a,o){function n(h){try{u(s.next(h))}catch(i){o(i)}}function c(h){try{u(s.throw(h))}catch(i){o(i)}}function u(h){var i;h.done?a(h.value):(i=h.value,i instanceof r?i:new r(function(p){p(i)})).then(n,c)}u((s=s.apply(e,[])).next())})}function me(e,t){var r,s,a,o,n={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(u){return function(h){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,i[0]&&(n=0)),n;)try{if(r=1,s&&(a=2&i[0]?s.return:i[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,i[1])).done)return a;switch(s=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return n.label++,{value:i[1],done:!1};case 5:n.label++,s=i[1],i=[0];continue;case 7:i=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!((a=a.length>0&&a[a.length-1])||i[0]!==6&&i[0]!==2)){n=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]<a[3])){n.label=i[1];break}if(i[0]===6&&n.label<a[1]){n.label=a[1],a=i;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(i);break}a[2]&&n.ops.pop(),n.trys.pop();continue}i=t.call(e,n)}catch(p){i=[6,p],s=0}finally{r=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([u,h])}}}var ge={exclude:[]},jr={},nn={timeout:"true"},le=function(e,t){typeof window<"u"&&(jr[e]=t)},on=function(){return Object.fromEntries(Object.entries(jr).filter(function(e){var t,r=e[0];return!(!((t=ge==null?void 0:ge.exclude)===null||t===void 0)&&t.includes(r))}).map(function(e){return[e[0],(0,e[1])()]}))};function pt(e){return e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),(e^=e>>>16)>>>0}var q=new Uint32Array([597399067,2869860233,951274213,2716044179]);function ie(e,t){return e<<t|e>>>32-t}function Nt(e,t){var r;if(t===void 0&&(t=0),t=t?0|t:0,typeof e=="string"&&(r=e,e=new TextEncoder().encode(r).buffer),!(e instanceof ArrayBuffer))throw new TypeError("Expected key to be ArrayBuffer or string");var s=new Uint32Array([t,t,t,t]);(function(o,n){for(var c=o.byteLength/16|0,u=new Uint32Array(o,0,4*c),h=0;h<c;h++){var i=u.subarray(4*h,4*(h+1));i[0]=Math.imul(i[0],q[0]),i[0]=ie(i[0],15),i[0]=Math.imul(i[0],q[1]),n[0]=n[0]^i[0],n[0]=ie(n[0],19),n[0]=n[0]+n[1],n[0]=Math.imul(n[0],5)+1444728091,i[1]=Math.imul(i[1],q[1]),i[1]=ie(i[1],16),i[1]=Math.imul(i[1],q[2]),n[1]=n[1]^i[1],n[1]=ie(n[1],17),n[1]=n[1]+n[2],n[1]=Math.imul(n[1],5)+197830471,i[2]=Math.imul(i[2],q[2]),i[2]=ie(i[2],17),i[2]=Math.imul(i[2],q[3]),n[2]=n[2]^i[2],n[2]=ie(n[2],15),n[2]=n[2]+n[3],n[2]=Math.imul(n[2],5)+2530024501,i[3]=Math.imul(i[3],q[3]),i[3]=ie(i[3],18),i[3]=Math.imul(i[3],q[0]),n[3]=n[3]^i[3],n[3]=ie(n[3],13),n[3]=n[3]+n[0],n[3]=Math.imul(n[3],5)+850148119}})(e,s),function(o,n){var c=o.byteLength/16|0,u=o.byteLength%16,h=new Uint32Array(4),i=new Uint8Array(o,16*c,u);switch(u){case 15:h[3]=h[3]^i[14]<<16;case 14:h[3]=h[3]^i[13]<<8;case 13:h[3]=h[3]^i[12]<<0,h[3]=Math.imul(h[3],q[3]),h[3]=ie(h[3],18),h[3]=Math.imul(h[3],q[0]),n[3]=n[3]^h[3];case 12:h[2]=h[2]^i[11]<<24;case 11:h[2]=h[2]^i[10]<<16;case 10:h[2]=h[2]^i[9]<<8;case 9:h[2]=h[2]^i[8]<<0,h[2]=Math.imul(h[2],q[2]),h[2]=ie(h[2],17),h[2]=Math.imul(h[2],q[3]),n[2]=n[2]^h[2];case 8:h[1]=h[1]^i[7]<<24;case 7:h[1]=h[1]^i[6]<<16;case 6:h[1]=h[1]^i[5]<<8;case 5:h[1]=h[1]^i[4]<<0,h[1]=Math.imul(h[1],q[1]),h[1]=ie(h[1],16),h[1]=Math.imul(h[1],q[2]),n[1]=n[1]^h[1];case 4:h[0]=h[0]^i[3]<<24;case 3:h[0]=h[0]^i[2]<<16;case 2:h[0]=h[0]^i[1]<<8;case 1:h[0]=h[0]^i[0]<<0,h[0]=Math.imul(h[0],q[0]),h[0]=ie(h[0],15),h[0]=Math.imul(h[0],q[1]),n[0]=n[0]^h[0]}}(e,s),function(o,n){n[0]=n[0]^o.byteLength,n[1]=n[1]^o.byteLength,n[2]=n[2]^o.byteLength,n[3]=n[3]^o.byteLength,n[0]=n[0]+n[1]|0,n[0]=n[0]+n[2]|0,n[0]=n[0]+n[3]|0,n[1]=n[1]+n[0]|0,n[2]=n[2]+n[0]|0,n[3]=n[3]+n[0]|0,n[0]=pt(n[0]),n[1]=pt(n[1]),n[2]=pt(n[2]),n[3]=pt(n[3]),n[0]=n[0]+n[1]|0,n[0]=n[0]+n[2]|0,n[0]=n[0]+n[3]|0,n[1]=n[1]+n[0]|0,n[2]=n[2]+n[0]|0,n[3]=n[3]+n[0]|0}(e,s);var a=new Uint8Array(s.buffer);return Array.from(a).map(function(o){return o.toString(16).padStart(2,"0")}).join("")}function cn(e,t){return new Promise(function(r){setTimeout(function(){return r(t)},e)})}function ln(e,t,r){return Promise.all(e.map(function(s){return Promise.race([s,cn(t,r)])}))}function un(){return pe(this,void 0,void 0,function(){var e,t,r,s,a;return me(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),e=on(),t=Object.keys(e),[4,ln(Object.values(e),(ge==null?void 0:ge.timeout)||1e3,nn)];case 1:return r=o.sent(),s=r.filter(function(n){return n!==void 0}),a={},s.forEach(function(n,c){a[t[c]]=n}),[2,Vr(a,ge.exclude||[])];case 2:throw o.sent();case 3:return[2]}})})}function Vr(e,t){var r={},s=function(o){if(e.hasOwnProperty(o)){var n=e[o];if(typeof n!="object"||Array.isArray(n))t.includes(o)||(r[o]=n);else{var c=Vr(n,t.map(function(u){return u.startsWith(o+".")?u.slice(o.length+1):u}));Object.keys(c).length>0&&(r[o]=c)}}};for(var a in e)s(a);return r}function hn(e){return pe(this,void 0,void 0,function(){var t,r;return me(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,un()];case 1:return t=s.sent(),r=Nt(JSON.stringify(t)),[2,r.toString()];case 2:throw s.sent();case 3:return[2]}})})}function dn(e){for(var t=0,r=0;r<e.length;++r)t+=Math.abs(e[r]);return t}function Br(e,t,r){for(var s=[],a=0;a<e[0].data.length;a++){for(var o=[],n=0;n<e.length;n++)o.push(e[n].data[a]);s.push(fn(o))}var c=new Uint8ClampedArray(s);return new ImageData(c,t,r)}function fn(e){if(e.length===0)return 0;for(var t={},r=0,s=e;r<s.length;r++)t[o=s[r]]=(t[o]||0)+1;var a=e[0];for(var o in t)t[o]>t[a]&&(a=parseInt(o,10));return a}function qe(){if(typeof navigator>"u")return{name:"unknown",version:"unknown"};for(var e=navigator.userAgent,t={Edg:"Edge",OPR:"Opera"},r=0,s=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/];r<s.length;r++){var a=s[r],o=e.match(a);if(o&&o.groups)return{name:t[o.groups.name]||o.groups.name,version:o.groups.version}}return{name:"unknown",version:"unknown"}}le("audio",function(){return pe(this,void 0,void 0,function(){return me(this,function(e){return[2,new Promise(function(t,r){try{var s=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),a=s.createBufferSource(),o=s.createOscillator();o.frequency.value=1e3;var n,c=s.createDynamicsCompressor();c.threshold.value=-50,c.knee.value=40,c.ratio.value=12,c.attack.value=0,c.release.value=.2,o.connect(c),c.connect(s.destination),o.start(),s.oncomplete=function(u){n=u.renderedBuffer.getChannelData(0),t({sampleHash:dn(n),oscillator:o.type,maxChannels:s.destination.maxChannelCount,channelCountMode:a.channelCountMode})},s.startRendering()}catch(u){console.error("Error creating audio fingerprint:",u),r(u)}})]})})});var pn=qe().name!=="SamsungBrowser"?1:3,Wr=280,Gr=20;qe().name!="Firefox"&&le("canvas",function(){return document.createElement("canvas").getContext("2d"),new Promise(function(e){var t=Array.from({length:pn},function(){return function(){var r=document.createElement("canvas"),s=r.getContext("2d");if(!s)return new ImageData(1,1);r.width=Wr,r.height=Gr;var a=s.createLinearGradient(0,0,r.width,r.height);a.addColorStop(0,"red"),a.addColorStop(.16666666666666666,"orange"),a.addColorStop(.3333333333333333,"yellow"),a.addColorStop(.5,"green"),a.addColorStop(.6666666666666666,"blue"),a.addColorStop(.8333333333333334,"indigo"),a.addColorStop(1,"violet"),s.fillStyle=a,s.fillRect(0,0,r.width,r.height);var o="Random Text WMwmil10Oo";s.font="23.123px Arial",s.fillStyle="black",s.fillText(o,-5,15),s.fillStyle="rgba(0, 0, 255, 0.5)",s.fillText(o,-3.3,17.7),s.beginPath(),s.moveTo(0,0),s.lineTo(2*r.width/7,r.height),s.strokeStyle="white",s.lineWidth=2,s.stroke();var n=s.getImageData(0,0,r.width,r.height);return n}()});e({commonImageDataHash:Nt(Br(t,Wr,Gr).data.toString()).toString()})})});var Ut,mn=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],gn=["monospace","sans-serif","serif"];function qr(e,t){if(!e)throw new Error("Canvas context not supported");return e.font="72px ".concat(t),e.measureText("WwMmLli0Oo").width}function vn(){var e,t=document.createElement("canvas"),r=(e=t.getContext("webgl"))!==null&&e!==void 0?e:t.getContext("experimental-webgl");if(r&&"getParameter"in r)try{var s=(r.getParameter(r.VENDOR)||"").toString(),a=(r.getParameter(r.RENDERER)||"").toString(),o={vendor:s,renderer:a,version:(r.getParameter(r.VERSION)||"").toString(),shadingLanguageVersion:(r.getParameter(r.SHADING_LANGUAGE_VERSION)||"").toString()};if(!a.length||!s.length){var n=r.getExtension("WEBGL_debug_renderer_info");if(n){var c=(r.getParameter(n.UNMASKED_VENDOR_WEBGL)||"").toString(),u=(r.getParameter(n.UNMASKED_RENDERER_WEBGL)||"").toString();c&&(o.vendorUnmasked=c),u&&(o.rendererUnmasked=u)}}return o}catch{}return"undefined"}function bn(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function yn(e,t){var r={};return t.forEach(function(s){var a=function(o){if(o.length===0)return null;var n={};o.forEach(function(h){var i=String(h);n[i]=(n[i]||0)+1});var c=o[0],u=1;return Object.keys(n).forEach(function(h){n[h]>u&&(c=h,u=n[h])}),c}(e.map(function(o){return s in o?o[s]:void 0}).filter(function(o){return o!==void 0}));a&&(r[s]=a)}),r}function Sn(){var e=[],t={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"]};return Object.keys(t).forEach(function(r){t[r].forEach(function(s){matchMedia("(".concat(r,": ").concat(s,")")).matches&&e.push("".concat(r,": ").concat(s))})}),e}function Cn(){if(window.location.protocol==="https:"&&typeof window.ApplePaySession=="function")try{for(var e=window.ApplePaySession.supportsVersion,t=15;t>0;t--)if(e(t))return t}catch{return 0}return 0}qe().name!="Firefox"&&le("fonts",function(){var e=this;return new Promise(function(t,r){try{(function(s){var a;pe(this,void 0,void 0,function(){var o,n,c;return me(this,function(u){switch(u.label){case 0:return document.body?[3,2]:[4,(h=50,new Promise(function(p){return setTimeout(p,h,i)}))];case 1:return u.sent(),[3,0];case 2:if((o=document.createElement("iframe")).setAttribute("frameBorder","0"),(n=o.style).setProperty("position","fixed"),n.setProperty("display","block","important"),n.setProperty("visibility","visible"),n.setProperty("border","0"),n.setProperty("opacity","0"),o.src="about:blank",document.body.appendChild(o),!(c=o.contentDocument||((a=o.contentWindow)===null||a===void 0?void 0:a.document)))throw new Error("Iframe document is not accessible");return s({iframe:c}),setTimeout(function(){document.body.removeChild(o)},0),[2]}var h,i})})})(function(s){var a=s.iframe;return pe(e,void 0,void 0,function(){var o,n,c,u;return me(this,function(h){return o=a.createElement("canvas"),n=o.getContext("2d"),c=gn.map(function(i){return qr(n,i)}),u={},mn.forEach(function(i){var p=qr(n,i);c.includes(p)||(u[i]=p)}),t(u),[2]})})})}catch{r({error:"unsupported"})}})}),le("hardware",function(){return new Promise(function(e,t){var r=navigator.deviceMemory!==void 0?navigator.deviceMemory:0,s=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:vn(),architecture:bn(),deviceMemory:r.toString()||"undefined",jsHeapSizeLimit:s.jsHeapSizeLimit||0})})}),le("locales",function(){return new Promise(function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})})}),le("permissions",function(){return pe(this,void 0,void 0,function(){var e;return me(this,function(t){return Ut=(ge==null?void 0:ge.permissions_to_check)||["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"],e=Array.from({length:(ge==null?void 0:ge.retries)||3},function(){return function(){return pe(this,void 0,void 0,function(){var r,s,a,o,n;return me(this,function(c){switch(c.label){case 0:r={},s=0,a=Ut,c.label=1;case 1:if(!(s<a.length))return[3,6];o=a[s],c.label=2;case 2:return c.trys.push([2,4,,5]),[4,navigator.permissions.query({name:o})];case 3:return n=c.sent(),r[o]=n.state.toString(),[3,5];case 4:return c.sent(),[3,5];case 5:return s++,[3,1];case 6:return[2,r]}})})}()}),[2,Promise.all(e).then(function(r){return yn(r,Ut)})]})})}),le("plugins",function(){var e=[];if(navigator.plugins)for(var t=0;t<navigator.plugins.length;t++){var r=navigator.plugins[t];e.push([r.name,r.filename,r.description].join("|"))}return new Promise(function(s){s({plugins:e})})}),le("screen",function(){return new Promise(function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:Sn()})})}),le("system",function(){return new Promise(function(e){var t=qe();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,hardwareConcurrency:navigator.hardwareConcurrency,browser:{name:t.name,version:t.version},applePayVersion:Cn()})})});var Q,kn=qe().name!=="SamsungBrowser"?1:3,C=null;le("webgl",function(){return pe(this,void 0,void 0,function(){var e;return me(this,function(t){typeof document<"u"&&((Q=document.createElement("canvas")).width=200,Q.height=100,C=Q.getContext("webgl"));try{if(!C)throw new Error("WebGL not supported");return e=Array.from({length:kn},function(){return function(){try{if(!C)throw new Error("WebGL not supported");var r=`
|
|
1
|
+
(function(L,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],j):(L=typeof globalThis<"u"?globalThis:L||self,j(L.SearchcraftVueSdk={},L.Vue))})(this,function(L,j){"use strict";var di=Object.defineProperty;var fi=(L,j,_e)=>j in L?di(L,j,{enumerable:!0,configurable:!0,writable:!0,value:_e}):L[j]=_e;var f=(L,j,_e)=>fi(L,typeof j!="symbol"?j+"":j,_e);var Os;const _e="searchcraft-javascript-sdk",Ie={experimentalSlotFixes:!1,hydratedSelectorName:"hydrated",lazyLoad:!1,shadowDom:!1,slotRelocation:!0,updatable:!0};var ga=Object.defineProperty,va=(e,t)=>{for(var r in t)ga(e,r,{get:t[r],enumerable:!0})},ba="http://www.w3.org/2000/svg",ya="http://www.w3.org/1999/xhtml",Ca=(e,t)=>{var r;const s=t.$cmpMeta$;Object.entries((r=s.$members$)!=null?r:{}).map(([o,[n]])=>{if(n&31||n&32){const c=e[o],i=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),o);Object.defineProperty(e,o,{get(){return i.get.call(this)},set(u){i.set.call(this,u)},configurable:!0,enumerable:!0}),e[o]=t.$instanceValues$.has(o)?t.$instanceValues$.get(o):c}})},_t=new WeakMap,Sa=e=>_t.delete(e),we=e=>_t.get(e),wa=(e,t)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};r.$onReadyPromise$=new Promise(a=>r.$onReadyResolve$=a),e["s-p"]=[],e["s-rc"]=[];const s=_t.set(e,r);return Ca(e,r),s},wr=(e,t)=>t in e,ot=(e,t)=>(0,console.error)(e,t),ct=typeof window<"u"?window:{},Ae=ct.document||{head:{}},D=ct.HTMLElement||class{},re={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,s)=>e.addEventListener(t,r,s),rel:(e,t,r,s)=>e.removeEventListener(t,r,s),ce:(e,t)=>new CustomEvent(e,t)},ka=Ie.shadowDom,Ea=e=>Promise.resolve(e),It=!1,kr=[],Er=[],xa=(e,t)=>r=>{e.push(r),It||(It=!0,re.$flags$&4?Mt(At):re.raf(At))},xr=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){ot(r)}e.length=0},At=()=>{xr(kr),xr(Er),(It=kr.length>0)&&re.raf(At)},Mt=e=>Ea().then(e),Ra=xa(Er),Ot=e=>(e=typeof e,e==="object"||e==="function"),Ta={};va(Ta,{err:()=>Rr,map:()=>Pa,ok:()=>Lt,unwrap:()=>$a,unwrapErr:()=>_a});var Lt=e=>({isOk:!0,isErr:!1,value:e}),Rr=e=>({isOk:!1,isErr:!0,value:e});function Pa(e,t){if(e.isOk){const r=t(e.value);return r instanceof Promise?r.then(s=>Lt(s)):Lt(r)}if(e.isErr){const r=e.value;return Rr(r)}throw"should never get here"}var $a=e=>{if(e.isOk)return e.value;throw e.value},_a=e=>{if(e.isErr)return e.value;throw e.value},Tr=e=>{const t=e.__childNodes||e.childNodes;e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&Pr(t,e.tagName).forEach(r=>{var s;r.nodeType===1&&r.tagName==="SLOT-FB"&&((s=Ia(r,r["s-sn"],!1))!=null&&s.length?r.hidden=!0:r.hidden=!1)});for(const r of t)r.nodeType===1&&(r.__childNodes||r.childNodes).length&&Tr(r)};function Pr(e,t,r){let s=0,a=[],o;for(;s<e.length;s++)o=e[s],o["s-sr"]&&o["s-hn"]===t&&r===void 0&&a.push(o),a=[...a,...Pr(o.childNodes,t,r)];return a}var Ia=(e,t,r=!0)=>{const s=[];for((r&&e["s-sr"]||!e["s-sr"])&&s.push(e);(e=e.nextSibling)&&e["s-sn"]===t;)s.push(e);return s},$r=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",je=(e,t="")=>()=>{},l=(e,t,...r)=>{let s=null,a=null,o=null,n=!1,c=!1;const i=[],u=p=>{for(let m=0;m<p.length;m++)s=p[m],Array.isArray(s)?u(s):s!=null&&typeof s!="boolean"&&((n=typeof e!="function"&&!Ot(s))&&(s=String(s)),n&&c?i[i.length-1].$text$+=s:i.push(n?it(null,s):s),c=n)};if(u(r),t){t.key&&(a=t.key),t.name&&(o=t.name);{const p=t.className||t.class;p&&(t.class=typeof p!="object"?p:Object.keys(p).filter(m=>p[m]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,i,Oa);const h=it(e,null);return h.$attrs$=t,i.length>0&&(h.$children$=i),h.$key$=a,h.$name$=o,h},it=(e,t)=>{const r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r.$name$=null,r},Aa={},Ma=e=>e&&e.$tag$===Aa,Oa={forEach:(e,t)=>e.map(_r).forEach(t),map:(e,t)=>e.map(_r).map(t).map(La)},_r=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),La=e=>{if(typeof e.vtag=="function"){const r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),l(e.vtag,r,...e.vchildren||[])}const t=it(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Ir=(e,t)=>e!=null&&!Ot(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,Fa=e=>e,ke=(e,t,r)=>{const s=Fa(e);return{emit:a=>Ar(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:a})}},Ar=(e,t,r)=>{const s=re.ce(t,r);return e.dispatchEvent(s),s},lt=new WeakMap,Mr=(e,t,r,s,a,o)=>{if(r!==s){let n=wr(e,t),c=t.toLowerCase();if(t==="class"){const i=e.classList,u=Or(r);let h=Or(s);e["s-si"]?(h.push(e["s-si"]),u.forEach(p=>{p.startsWith(e["s-si"])&&h.push(p)}),h=[...new Set(h)],i.add(...h),delete e["s-si"]):(i.remove(...u.filter(p=>p&&!h.includes(p))),i.add(...h.filter(p=>p&&!u.includes(p))))}else if(t==="style"){for(const i in r)(!s||s[i]==null)&&(i.includes("-")?e.style.removeProperty(i):e.style[i]="");for(const i in s)(!r||s[i]!==r[i])&&(i.includes("-")?e.style.setProperty(i,s[i]):e.style[i]=s[i])}else if(t!=="key")if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):wr(ct,c)?t=c.slice(2):t=c[2]+t.slice(3),r||s){const i=t.endsWith(Lr);t=t.replace(Na,""),r&&re.rel(e,t,r,i),s&&re.ael(e,t,s,i)}}else{const i=Ot(s);if((n||i&&s!==null)&&!a)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?n=!1:(r==null||e[t]!=u)&&(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!n||o&4||a)&&!i&&(s=s===!0?"":s,e.setAttribute(t,s))}}},Da=/\s/,Or=e=>(typeof e=="object"&&"baseVal"in e&&(e=e.baseVal),e?e.split(Da):[]),Lr="Capture",Na=new RegExp(Lr+"$"),Fr=(e,t,r)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,a=e&&e.$attrs$||{},o=t.$attrs$||{};for(const n of Dr(Object.keys(a)))n in o||Mr(s,n,a[n],void 0,r,t.$flags$);for(const n of Dr(Object.keys(o)))Mr(s,n,a[n],o[n],r,t.$flags$)};function Dr(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var Ft,Dt,ut=!1,ht=!1,Nt=!1,oe=!1,dt=(e,t,r)=>{var s;const a=t.$children$[r];let o=0,n,c,i;if(ut||(Nt=!0,a.$tag$==="slot"&&(a.$flags$|=a.$children$?2:1)),a.$text$!==null)n=a.$elm$=Ae.createTextNode(a.$text$);else if(a.$flags$&1)n=a.$elm$=Ae.createTextNode("");else{if(oe||(oe=a.$tag$==="svg"),n=a.$elm$=Ae.createElementNS(oe?ba:ya,!ut&&Ie.slotRelocation&&a.$flags$&2?"slot-fb":a.$tag$),oe&&a.$tag$==="foreignObject"&&(oe=!1),Fr(null,a,oe),a.$children$)for(o=0;o<a.$children$.length;++o)c=dt(e,a,o),c&&n.appendChild(c);a.$tag$==="svg"?oe=!1:n.tagName==="foreignObject"&&(oe=!0)}return n["s-hn"]=Dt,a.$flags$&3&&(n["s-sr"]=!0,n["s-cr"]=Ft,n["s-sn"]=a.$name$||"",n["s-rf"]=(s=a.$attrs$)==null?void 0:s.ref,i=e&&e.$children$&&e.$children$[r],i&&i.$tag$===a.$tag$&&e.$elm$&&We(e.$elm$,!1)),n},We=(e,t)=>{re.$flags$|=1;const r=Array.from(e.__childNodes||e.childNodes);e["s-sr"]&&Ie.experimentalSlotFixes;for(let s=r.length-1;s>=0;s--){const a=r[s];a["s-hn"]!==Dt&&a["s-ol"]&&(Ee(Ge(a).parentNode,a,Ge(a)),a["s-ol"].remove(),a["s-ol"]=void 0,a["s-sh"]=void 0,Nt=!0),t&&We(a,t)}re.$flags$&=-2},Nr=(e,t,r,s,a,o)=>{let n=e["s-cr"]&&e["s-cr"].parentNode||e,c;for(;a<=o;++a)s[a]&&(c=dt(null,r,a),c&&(s[a].$elm$=c,Ee(n,c,Ge(t))))},Hr=(e,t,r)=>{for(let s=t;s<=r;++s){const a=e[s];if(a){const o=a.$elm$;o&&(ht=!0,o["s-ol"]?o["s-ol"].remove():We(o,!0),o.remove())}}},Ha=(e,t,r,s,a=!1)=>{let o=0,n=0,c=0,i=0,u=t.length-1,h=t[0],p=t[u],m=s.length-1,b=s[0],y=s[m],T,I;for(;o<=u&&n<=m;)if(h==null)h=t[++o];else if(p==null)p=t[--u];else if(b==null)b=s[++n];else if(y==null)y=s[--m];else if(ft(h,b,a))Me(h,b,a),h=t[++o],b=s[++n];else if(ft(p,y,a))Me(p,y,a),p=t[--u],y=s[--m];else if(ft(h,y,a))(h.$tag$==="slot"||y.$tag$==="slot")&&We(h.$elm$.parentNode,!1),Me(h,y,a),Ee(e,h.$elm$,p.$elm$.nextSibling),h=t[++o],y=s[--m];else if(ft(p,b,a))(h.$tag$==="slot"||y.$tag$==="slot")&&We(p.$elm$.parentNode,!1),Me(p,b,a),Ee(e,p.$elm$,h.$elm$),p=t[--u],b=s[++n];else{for(c=-1,i=o;i<=u;++i)if(t[i]&&t[i].$key$!==null&&t[i].$key$===b.$key$){c=i;break}c>=0?(I=t[c],I.$tag$!==b.$tag$?T=dt(t&&t[n],r,c):(Me(I,b,a),t[c]=void 0,T=I.$elm$),b=s[++n]):(T=dt(t&&t[n],r,n),b=s[++n]),T&&Ee(Ge(h.$elm$).parentNode,T,Ge(h.$elm$))}o>u?Nr(e,s[m+1]==null?null:s[m+1].$elm$,r,s,n,m):n>m&&Hr(t,o,u)},ft=(e,t,r=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:r?(r&&!e.$key$&&t.$key$&&(e.$key$=t.$key$),!0):e.$key$===t.$key$:!1,Ge=e=>e&&e["s-ol"]||e,Me=(e,t,r=!1)=>{const s=t.$elm$=e.$elm$,a=e.$children$,o=t.$children$,n=t.$tag$,c=t.$text$;let i;c===null?(oe=n==="svg"?!0:n==="foreignObject"?!1:oe,n==="slot"&&!ut||Fr(e,t,oe),a!==null&&o!==null?Ha(s,a,t,o,r):o!==null?(e.$text$!==null&&(s.textContent=""),Nr(s,null,t,o,0,o.length-1)):!r&&Ie.updatable&&a!==null&&Hr(a,0,a.length-1),oe&&n==="svg"&&(oe=!1)):(i=s["s-cr"])?i.parentNode.textContent=c:e.$text$!==c&&(s.data=c)},de=[],Ur=e=>{let t,r,s;const a=e.__childNodes||e.childNodes;for(const o of a){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){r=t.parentNode.__childNodes||t.parentNode.childNodes;const n=o["s-sn"];for(s=r.length-1;s>=0;s--)if(t=r[s],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"])if($r(t,n)){let c=de.find(i=>i.$nodeToRelocate$===t);ht=!0,t["s-sn"]=t["s-sn"]||n,c?(c.$nodeToRelocate$["s-sh"]=o["s-hn"],c.$slotRefNode$=o):(t["s-sh"]=o["s-hn"],de.push({$slotRefNode$:o,$nodeToRelocate$:t})),t["s-sr"]&&de.map(i=>{$r(i.$nodeToRelocate$,t["s-sn"])&&(c=de.find(u=>u.$nodeToRelocate$===t),c&&!i.$slotRefNode$&&(i.$slotRefNode$=c.$slotRefNode$))})}else de.some(c=>c.$nodeToRelocate$===t)||de.push({$nodeToRelocate$:t})}o.nodeType===1&&Ur(o)}},Ee=(e,t,r)=>e==null?void 0:e.insertBefore(t,r),Ua=(e,t,r=!1)=>{var s,a,o,n;const c=e.$hostElement$,i=e.$vnode$||it(null,null),u=Ma(t)?t:l(null,null,t);if(Dt=c.tagName,r&&u.$attrs$)for(const h of Object.keys(u.$attrs$))c.hasAttribute(h)&&!["key","ref","style","class"].includes(h)&&(u.$attrs$[h]=c[h]);u.$tag$=null,u.$flags$|=4,e.$vnode$=u,u.$elm$=i.$elm$=c,ut=ka,Ft=c["s-cr"],ht=!1,Me(i,u,r);{if(re.$flags$|=1,Nt){Ur(u.$elm$);for(const h of de){const p=h.$nodeToRelocate$;if(!p["s-ol"]){const m=Ae.createTextNode("");m["s-nr"]=p,Ee(p.parentNode,p["s-ol"]=m,p)}}for(const h of de){const p=h.$nodeToRelocate$,m=h.$slotRefNode$;if(m){const b=m.parentNode;let y=m.nextSibling;{let F=(s=p["s-ol"])==null?void 0:s.previousSibling;for(;F;){let P=(a=F["s-nr"])!=null?a:null;if(P&&P["s-sn"]===p["s-sn"]&&b===(P.__parentNode||P.parentNode)){for(P=P.nextSibling;P===p||P!=null&&P["s-sr"];)P=P==null?void 0:P.nextSibling;if(!P||!P["s-nr"]){y=P;break}}F=F.previousSibling}}const T=p.__parentNode||p.parentNode,I=p.__nextSibling||p.nextSibling;(!y&&b!==T||I!==y)&&p!==y&&(!p["s-hn"]&&p["s-ol"]&&(p["s-hn"]=p["s-ol"].parentNode.nodeName),Ee(b,p,y),p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(o=p["s-ih"])!=null?o:!1)),p&&typeof m["s-rf"]=="function"&&m["s-rf"](p)}else p.nodeType===1&&(r&&(p["s-ih"]=(n=p.hidden)!=null?n:!1),p.hidden=!0)}}ht&&Tr(u.$elm$),re.$flags$&=-2,de.length=0}Ft=void 0},zr=(e,t)=>{if(t&&!e.$onRenderResolve$&&t["s-p"]){const r=t["s-p"].push(new Promise(s=>e.$onRenderResolve$=()=>{t["s-p"].splice(r-1,1),s()}))}},Ht=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return zr(e,e.$ancestorComponent$),Ra(()=>za(e,t))},za=(e,t)=>{const r=e.$hostElement$,s=je("scheduleUpdate",e.$cmpMeta$.$tagName$),a=r;if(!a)throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return s(),Ba(o,()=>ja(e,a,t))},Ba=(e,t)=>Va(e)?e.then(t).catch(r=>{console.error(r),t()}):t(),Va=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ja=async(e,t,r)=>{var s;const a=e.$hostElement$,o=je("update",e.$cmpMeta$.$tagName$),n=a["s-rc"],c=je("render",e.$cmpMeta$.$tagName$);Wa(e,t,a,r),n&&(n.map(i=>i()),a["s-rc"]=void 0),c(),o();{const i=(s=a["s-p"])!=null?s:[],u=()=>Ga(e);i.length===0?u():(Promise.all(i).then(u),e.$flags$|=4,i.length=0)}},Wa=(e,t,r,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ua(e,t,s)}catch(a){ot(a,e.$hostElement$)}return null},Ga=e=>{const t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=je("postUpdate",t),a=r,o=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,Br(r),Ya(a,"componentDidLoad",void 0,r),s(),e.$onReadyResolve$(r),o||qa()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&Mt(()=>Ht(e,!1)),e.$flags$&=-517},qa=e=>{Br(Ae.documentElement),Mt(()=>Ar(ct,"appload",{detail:{namespace:_e}}))},Ya=(e,t,r,s)=>{if(e&&e[t])try{return e[t](r)}catch(a){ot(a,s)}},Br=e=>{var t;return e.classList.add((t=Ie.hydratedSelectorName)!=null?t:"hydrated")},Za=(e,t)=>we(e).$instanceValues$.get(t),Vr=(e,t,r,s)=>{const a=we(e),o=e,n=a.$instanceValues$.get(t),c=a.$flags$,i=o;r=Ir(r,s.$members$[t][0]);const u=Number.isNaN(n)&&Number.isNaN(r);if(r!==n&&!u){a.$instanceValues$.set(t,r);{if(s.$watchers$&&c&128){const p=s.$watchers$[t];p&&p.map(m=>{try{i[m](r,n,t)}catch(b){ot(b,o)}})}(c&18)===2&&Ht(a,!1)}}},Qa=(e,t,r)=>{var s,a;const o=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const n=Object.entries((s=t.$members$)!=null?s:{});n.map(([c,[i]])=>{if(i&31||i&32){const{get:u,set:h}=Object.getOwnPropertyDescriptor(o,c)||{};u&&(t.$members$[c][0]|=2048),h&&(t.$members$[c][0]|=4096),Object.defineProperty(o,c,{get(){return u?u.apply(this):Za(this,c)},configurable:!0,enumerable:!0}),Object.defineProperty(o,c,{set(p){const m=we(this);if(h){const b=i&32?this[c]:m.$hostElement$[c];typeof b>"u"&&m.$instanceValues$.get(c)?p=m.$instanceValues$.get(c):!m.$instanceValues$.get(c)&&b&&m.$instanceValues$.set(c,b),h.apply(this,[Ir(p,i)]),p=i&32?this[c]:m.$hostElement$[c],Vr(this,c,p,t);return}{Vr(this,c,p,t);return}}})}});{const c=new Map;o.attributeChangedCallback=function(i,u,h){re.jmp(()=>{var p;const m=c.get(i);if(!(this.hasOwnProperty(m)&&Ie.lazyLoad)){if(o.hasOwnProperty(m)&&typeof this[m]=="number"&&this[m]==h)return;if(m==null){const y=we(this),T=y==null?void 0:y.$flags$;if(T&&!(T&8)&&T&128&&h!==u){const F=this,P=(p=t.$watchers$)==null?void 0:p[i];P==null||P.forEach(be=>{F[be]!=null&&F[be].call(F,h,u,i)})}return}}const b=Object.getOwnPropertyDescriptor(o,m);h=h===null&&typeof this[m]=="boolean"?!1:h,h!==this[m]&&(!b.get||b.set)&&(this[m]=h)})},e.observedAttributes=Array.from(new Set([...Object.keys((a=t.$watchers$)!=null?a:{}),...n.filter(([i,u])=>u[0]&15).map(([i,u])=>{const h=u[1]||i;return c.set(h,i),h})]))}}return e},Ka=async(e,t,r,s)=>{if(!(t.$flags$&32)){t.$flags$|=32;{const n=e.localName;customElements.whenDefined(n).then(()=>t.$flags$|=128)}}const a=t.$ancestorComponent$,o=()=>Ht(t,!0);a&&a["s-rc"]?a["s-rc"].push(o):o()},Xa=(e,t)=>{},Ja=e=>{if(!(re.$flags$&1)){const t=we(e),r=t.$cmpMeta$,s=je("connectedCallback",r.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Xa());else{t.$flags$|=1,r.$flags$&12&&en(e);{let a=e;for(;a=a.parentNode||a.host;)if(a["s-p"]){zr(t,t.$ancestorComponent$=a);break}}r.$members$&&Object.entries(r.$members$).map(([a,[o]])=>{if(o&31&&e.hasOwnProperty(a)){const n=e[a];delete e[a],e[a]=n}}),Ka(e,t)}s()}},en=e=>{const t=e["s-cr"]=Ae.createComment("");t["s-cn"]=!0,Ee(e,t,e.firstChild)},tn=async e=>{re.$flags$&1||we(e),lt.has(e)&<.delete(e),e.shadowRoot&<.has(e.shadowRoot)&<.delete(e.shadowRoot)},N=(e,t)=>{const r={$flags$:t[0],$tagName$:t[1]};r.$members$=t[2],r.$watchers$=e.$watchers$;const s=e.prototype.connectedCallback,a=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){wa(this,r)},connectedCallback(){this.__hasHostListenerAttached||(we(this),this.__hasHostListenerAttached=!0),Ja(this),s&&s.call(this)},disconnectedCallback(){tn(this),a&&a.call(this),re.raf(()=>{var o;const n=we(this);((o=n==null?void 0:n.$vnode$)==null?void 0:o.$elm$)instanceof Node&&!n.$vnode$.$elm$.isConnected&&delete n.$vnode$,this instanceof Node&&!this.isConnected&&Sa(this)})},__attachShadow(){this.shadowRoot=this}}),e.is=r.$tagName$,Qa(e,r)},rn=(e,t)=>t,sn=Object.defineProperty,an=(e,t,r)=>t in e?sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t,r)=>an(e,typeof t!="symbol"?t+"":t,r),fe=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(fe||{});class nn{constructor(t){A(this,"logLevel"),A(this,"logFormatter"),this.logLevel=t.logLevel||1,this.logFormatter=t.logFormatter||this.defaultFormatter}defaultFormatter(t,r){return`[${fe[t]}] ${new Date().toISOString()}: ${r}`}debug(t){this.logLevel<=0&&console.log(this.logFormatter(0,t))}info(t){this.logLevel<=1&&console.info(this.logFormatter(1,t))}warn(t){this.logLevel<=2&&console.warn(this.logFormatter(2,t))}error(t){this.logLevel<=3&&console.error(this.logFormatter(3,t))}log(t,r){switch(t){case 0:this.debug(r);break;case 1:this.info(r);break;case 2:this.warn(r);break;case 3:this.error(r);break}}}function pe(e,t,r,s){return new(r||(r=Promise))(function(a,o){function n(u){try{i(s.next(u))}catch(h){o(h)}}function c(u){try{i(s.throw(u))}catch(h){o(h)}}function i(u){var h;u.done?a(u.value):(h=u.value,h instanceof r?h:new r(function(p){p(h)})).then(n,c)}i((s=s.apply(e,[])).next())})}function me(e,t){var r,s,a,o,n={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(i){return function(u){return function(h){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,h[0]&&(n=0)),n;)try{if(r=1,s&&(a=2&h[0]?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[2&h[0],a.value]),h[0]){case 0:case 1:a=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,s=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!((a=a.length>0&&a[a.length-1])||h[0]!==6&&h[0]!==2)){n=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){n.label=h[1];break}if(h[0]===6&&n.label<a[1]){n.label=a[1],a=h;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(h);break}a[2]&&n.ops.pop(),n.trys.pop();continue}h=t.call(e,n)}catch(p){h=[6,p],s=0}finally{r=a=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([i,u])}}}var ge={exclude:[]},jr={},on={timeout:"true"},le=function(e,t){typeof window<"u"&&(jr[e]=t)},cn=function(){return Object.fromEntries(Object.entries(jr).filter(function(e){var t,r=e[0];return!(!((t=ge==null?void 0:ge.exclude)===null||t===void 0)&&t.includes(r))}).map(function(e){return[e[0],(0,e[1])()]}))};function pt(e){return e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),(e^=e>>>16)>>>0}var q=new Uint32Array([597399067,2869860233,951274213,2716044179]);function ie(e,t){return e<<t|e>>>32-t}function Ut(e,t){var r;if(t===void 0&&(t=0),t=t?0|t:0,typeof e=="string"&&(r=e,e=new TextEncoder().encode(r).buffer),!(e instanceof ArrayBuffer))throw new TypeError("Expected key to be ArrayBuffer or string");var s=new Uint32Array([t,t,t,t]);(function(o,n){for(var c=o.byteLength/16|0,i=new Uint32Array(o,0,4*c),u=0;u<c;u++){var h=i.subarray(4*u,4*(u+1));h[0]=Math.imul(h[0],q[0]),h[0]=ie(h[0],15),h[0]=Math.imul(h[0],q[1]),n[0]=n[0]^h[0],n[0]=ie(n[0],19),n[0]=n[0]+n[1],n[0]=Math.imul(n[0],5)+1444728091,h[1]=Math.imul(h[1],q[1]),h[1]=ie(h[1],16),h[1]=Math.imul(h[1],q[2]),n[1]=n[1]^h[1],n[1]=ie(n[1],17),n[1]=n[1]+n[2],n[1]=Math.imul(n[1],5)+197830471,h[2]=Math.imul(h[2],q[2]),h[2]=ie(h[2],17),h[2]=Math.imul(h[2],q[3]),n[2]=n[2]^h[2],n[2]=ie(n[2],15),n[2]=n[2]+n[3],n[2]=Math.imul(n[2],5)+2530024501,h[3]=Math.imul(h[3],q[3]),h[3]=ie(h[3],18),h[3]=Math.imul(h[3],q[0]),n[3]=n[3]^h[3],n[3]=ie(n[3],13),n[3]=n[3]+n[0],n[3]=Math.imul(n[3],5)+850148119}})(e,s),function(o,n){var c=o.byteLength/16|0,i=o.byteLength%16,u=new Uint32Array(4),h=new Uint8Array(o,16*c,i);switch(i){case 15:u[3]=u[3]^h[14]<<16;case 14:u[3]=u[3]^h[13]<<8;case 13:u[3]=u[3]^h[12]<<0,u[3]=Math.imul(u[3],q[3]),u[3]=ie(u[3],18),u[3]=Math.imul(u[3],q[0]),n[3]=n[3]^u[3];case 12:u[2]=u[2]^h[11]<<24;case 11:u[2]=u[2]^h[10]<<16;case 10:u[2]=u[2]^h[9]<<8;case 9:u[2]=u[2]^h[8]<<0,u[2]=Math.imul(u[2],q[2]),u[2]=ie(u[2],17),u[2]=Math.imul(u[2],q[3]),n[2]=n[2]^u[2];case 8:u[1]=u[1]^h[7]<<24;case 7:u[1]=u[1]^h[6]<<16;case 6:u[1]=u[1]^h[5]<<8;case 5:u[1]=u[1]^h[4]<<0,u[1]=Math.imul(u[1],q[1]),u[1]=ie(u[1],16),u[1]=Math.imul(u[1],q[2]),n[1]=n[1]^u[1];case 4:u[0]=u[0]^h[3]<<24;case 3:u[0]=u[0]^h[2]<<16;case 2:u[0]=u[0]^h[1]<<8;case 1:u[0]=u[0]^h[0]<<0,u[0]=Math.imul(u[0],q[0]),u[0]=ie(u[0],15),u[0]=Math.imul(u[0],q[1]),n[0]=n[0]^u[0]}}(e,s),function(o,n){n[0]=n[0]^o.byteLength,n[1]=n[1]^o.byteLength,n[2]=n[2]^o.byteLength,n[3]=n[3]^o.byteLength,n[0]=n[0]+n[1]|0,n[0]=n[0]+n[2]|0,n[0]=n[0]+n[3]|0,n[1]=n[1]+n[0]|0,n[2]=n[2]+n[0]|0,n[3]=n[3]+n[0]|0,n[0]=pt(n[0]),n[1]=pt(n[1]),n[2]=pt(n[2]),n[3]=pt(n[3]),n[0]=n[0]+n[1]|0,n[0]=n[0]+n[2]|0,n[0]=n[0]+n[3]|0,n[1]=n[1]+n[0]|0,n[2]=n[2]+n[0]|0,n[3]=n[3]+n[0]|0}(e,s);var a=new Uint8Array(s.buffer);return Array.from(a).map(function(o){return o.toString(16).padStart(2,"0")}).join("")}function ln(e,t){return new Promise(function(r){setTimeout(function(){return r(t)},e)})}function un(e,t,r){return Promise.all(e.map(function(s){return Promise.race([s,ln(t,r)])}))}function hn(){return pe(this,void 0,void 0,function(){var e,t,r,s,a;return me(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),e=cn(),t=Object.keys(e),[4,un(Object.values(e),(ge==null?void 0:ge.timeout)||1e3,on)];case 1:return r=o.sent(),s=r.filter(function(n){return n!==void 0}),a={},s.forEach(function(n,c){a[t[c]]=n}),[2,Wr(a,ge.exclude||[])];case 2:throw o.sent();case 3:return[2]}})})}function Wr(e,t){var r={},s=function(o){if(e.hasOwnProperty(o)){var n=e[o];if(typeof n!="object"||Array.isArray(n))t.includes(o)||(r[o]=n);else{var c=Wr(n,t.map(function(i){return i.startsWith(o+".")?i.slice(o.length+1):i}));Object.keys(c).length>0&&(r[o]=c)}}};for(var a in e)s(a);return r}function dn(e){return pe(this,void 0,void 0,function(){var t,r;return me(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,hn()];case 1:return t=s.sent(),r=Ut(JSON.stringify(t)),[2,r.toString()];case 2:throw s.sent();case 3:return[2]}})})}function fn(e){for(var t=0,r=0;r<e.length;++r)t+=Math.abs(e[r]);return t}function Gr(e,t,r){for(var s=[],a=0;a<e[0].data.length;a++){for(var o=[],n=0;n<e.length;n++)o.push(e[n].data[a]);s.push(pn(o))}var c=new Uint8ClampedArray(s);return new ImageData(c,t,r)}function pn(e){if(e.length===0)return 0;for(var t={},r=0,s=e;r<s.length;r++)t[o=s[r]]=(t[o]||0)+1;var a=e[0];for(var o in t)t[o]>t[a]&&(a=parseInt(o,10));return a}function qe(){if(typeof navigator>"u")return{name:"unknown",version:"unknown"};for(var e=navigator.userAgent,t={Edg:"Edge",OPR:"Opera"},r=0,s=[/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/];r<s.length;r++){var a=s[r],o=e.match(a);if(o&&o.groups)return{name:t[o.groups.name]||o.groups.name,version:o.groups.version}}return{name:"unknown",version:"unknown"}}le("audio",function(){return pe(this,void 0,void 0,function(){return me(this,function(e){return[2,new Promise(function(t,r){try{var s=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),a=s.createBufferSource(),o=s.createOscillator();o.frequency.value=1e3;var n,c=s.createDynamicsCompressor();c.threshold.value=-50,c.knee.value=40,c.ratio.value=12,c.attack.value=0,c.release.value=.2,o.connect(c),c.connect(s.destination),o.start(),s.oncomplete=function(i){n=i.renderedBuffer.getChannelData(0),t({sampleHash:fn(n),oscillator:o.type,maxChannels:s.destination.maxChannelCount,channelCountMode:a.channelCountMode})},s.startRendering()}catch(i){console.error("Error creating audio fingerprint:",i),r(i)}})]})})});var mn=qe().name!=="SamsungBrowser"?1:3,qr=280,Yr=20;qe().name!="Firefox"&&le("canvas",function(){return document.createElement("canvas").getContext("2d"),new Promise(function(e){var t=Array.from({length:mn},function(){return function(){var r=document.createElement("canvas"),s=r.getContext("2d");if(!s)return new ImageData(1,1);r.width=qr,r.height=Yr;var a=s.createLinearGradient(0,0,r.width,r.height);a.addColorStop(0,"red"),a.addColorStop(.16666666666666666,"orange"),a.addColorStop(.3333333333333333,"yellow"),a.addColorStop(.5,"green"),a.addColorStop(.6666666666666666,"blue"),a.addColorStop(.8333333333333334,"indigo"),a.addColorStop(1,"violet"),s.fillStyle=a,s.fillRect(0,0,r.width,r.height);var o="Random Text WMwmil10Oo";s.font="23.123px Arial",s.fillStyle="black",s.fillText(o,-5,15),s.fillStyle="rgba(0, 0, 255, 0.5)",s.fillText(o,-3.3,17.7),s.beginPath(),s.moveTo(0,0),s.lineTo(2*r.width/7,r.height),s.strokeStyle="white",s.lineWidth=2,s.stroke();var n=s.getImageData(0,0,r.width,r.height);return n}()});e({commonImageDataHash:Ut(Gr(t,qr,Yr).data.toString()).toString()})})});var zt,gn=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],vn=["monospace","sans-serif","serif"];function Zr(e,t){if(!e)throw new Error("Canvas context not supported");return e.font="72px ".concat(t),e.measureText("WwMmLli0Oo").width}function bn(){var e,t=document.createElement("canvas"),r=(e=t.getContext("webgl"))!==null&&e!==void 0?e:t.getContext("experimental-webgl");if(r&&"getParameter"in r)try{var s=(r.getParameter(r.VENDOR)||"").toString(),a=(r.getParameter(r.RENDERER)||"").toString(),o={vendor:s,renderer:a,version:(r.getParameter(r.VERSION)||"").toString(),shadingLanguageVersion:(r.getParameter(r.SHADING_LANGUAGE_VERSION)||"").toString()};if(!a.length||!s.length){var n=r.getExtension("WEBGL_debug_renderer_info");if(n){var c=(r.getParameter(n.UNMASKED_VENDOR_WEBGL)||"").toString(),i=(r.getParameter(n.UNMASKED_RENDERER_WEBGL)||"").toString();c&&(o.vendorUnmasked=c),i&&(o.rendererUnmasked=i)}}return o}catch{}return"undefined"}function yn(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Cn(e,t){var r={};return t.forEach(function(s){var a=function(o){if(o.length===0)return null;var n={};o.forEach(function(u){var h=String(u);n[h]=(n[h]||0)+1});var c=o[0],i=1;return Object.keys(n).forEach(function(u){n[u]>i&&(c=u,i=n[u])}),c}(e.map(function(o){return s in o?o[s]:void 0}).filter(function(o){return o!==void 0}));a&&(r[s]=a)}),r}function Sn(){var e=[],t={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"]};return Object.keys(t).forEach(function(r){t[r].forEach(function(s){matchMedia("(".concat(r,": ").concat(s,")")).matches&&e.push("".concat(r,": ").concat(s))})}),e}function wn(){if(window.location.protocol==="https:"&&typeof window.ApplePaySession=="function")try{for(var e=window.ApplePaySession.supportsVersion,t=15;t>0;t--)if(e(t))return t}catch{return 0}return 0}qe().name!="Firefox"&&le("fonts",function(){var e=this;return new Promise(function(t,r){try{(function(s){var a;pe(this,void 0,void 0,function(){var o,n,c;return me(this,function(i){switch(i.label){case 0:return document.body?[3,2]:[4,(u=50,new Promise(function(p){return setTimeout(p,u,h)}))];case 1:return i.sent(),[3,0];case 2:if((o=document.createElement("iframe")).setAttribute("frameBorder","0"),(n=o.style).setProperty("position","fixed"),n.setProperty("display","block","important"),n.setProperty("visibility","visible"),n.setProperty("border","0"),n.setProperty("opacity","0"),o.src="about:blank",document.body.appendChild(o),!(c=o.contentDocument||((a=o.contentWindow)===null||a===void 0?void 0:a.document)))throw new Error("Iframe document is not accessible");return s({iframe:c}),setTimeout(function(){document.body.removeChild(o)},0),[2]}var u,h})})})(function(s){var a=s.iframe;return pe(e,void 0,void 0,function(){var o,n,c,i;return me(this,function(u){return o=a.createElement("canvas"),n=o.getContext("2d"),c=vn.map(function(h){return Zr(n,h)}),i={},gn.forEach(function(h){var p=Zr(n,h);c.includes(p)||(i[h]=p)}),t(i),[2]})})})}catch{r({error:"unsupported"})}})}),le("hardware",function(){return new Promise(function(e,t){var r=navigator.deviceMemory!==void 0?navigator.deviceMemory:0,s=window.performance&&window.performance.memory?window.performance.memory:0;e({videocard:bn(),architecture:yn(),deviceMemory:r.toString()||"undefined",jsHeapSizeLimit:s.jsHeapSizeLimit||0})})}),le("locales",function(){return new Promise(function(e){e({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})})}),le("permissions",function(){return pe(this,void 0,void 0,function(){var e;return me(this,function(t){return zt=(ge==null?void 0:ge.permissions_to_check)||["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"],e=Array.from({length:(ge==null?void 0:ge.retries)||3},function(){return function(){return pe(this,void 0,void 0,function(){var r,s,a,o,n;return me(this,function(c){switch(c.label){case 0:r={},s=0,a=zt,c.label=1;case 1:if(!(s<a.length))return[3,6];o=a[s],c.label=2;case 2:return c.trys.push([2,4,,5]),[4,navigator.permissions.query({name:o})];case 3:return n=c.sent(),r[o]=n.state.toString(),[3,5];case 4:return c.sent(),[3,5];case 5:return s++,[3,1];case 6:return[2,r]}})})}()}),[2,Promise.all(e).then(function(r){return Cn(r,zt)})]})})}),le("plugins",function(){var e=[];if(navigator.plugins)for(var t=0;t<navigator.plugins.length;t++){var r=navigator.plugins[t];e.push([r.name,r.filename,r.description].join("|"))}return new Promise(function(s){s({plugins:e})})}),le("screen",function(){return new Promise(function(e){e({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:Sn()})})}),le("system",function(){return new Promise(function(e){var t=qe();e({platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,hardwareConcurrency:navigator.hardwareConcurrency,browser:{name:t.name,version:t.version},applePayVersion:wn()})})});var Q,kn=qe().name!=="SamsungBrowser"?1:3,w=null;le("webgl",function(){return pe(this,void 0,void 0,function(){var e;return me(this,function(t){typeof document<"u"&&((Q=document.createElement("canvas")).width=200,Q.height=100,w=Q.getContext("webgl"));try{if(!w)throw new Error("WebGL not supported");return e=Array.from({length:kn},function(){return function(){try{if(!w)throw new Error("WebGL not supported");var r=`
|
|
2
2
|
attribute vec2 position;
|
|
3
3
|
void main() {
|
|
4
4
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
void main() {
|
|
9
9
|
gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color
|
|
10
10
|
}
|
|
11
|
-
`,a=C.createShader(C.VERTEX_SHADER),o=C.createShader(C.FRAGMENT_SHADER);if(!a||!o)throw new Error("Failed to create shaders");if(C.shaderSource(a,r),C.shaderSource(o,s),C.compileShader(a),!C.getShaderParameter(a,C.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+C.getShaderInfoLog(a));if(C.compileShader(o),!C.getShaderParameter(o,C.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+C.getShaderInfoLog(o));var n=C.createProgram();if(!n)throw new Error("Failed to create shader program");if(C.attachShader(n,a),C.attachShader(n,o),C.linkProgram(n),!C.getProgramParameter(n,C.LINK_STATUS))throw new Error("Shader program linking failed: "+C.getProgramInfoLog(n));C.useProgram(n);for(var c=137,u=new Float32Array(4*c),h=2*Math.PI/c,i=0;i<c;i++){var p=i*h;u[4*i]=0,u[4*i+1]=0,u[4*i+2]=Math.cos(p)*(Q.width/2),u[4*i+3]=Math.sin(p)*(Q.height/2)}var g=C.createBuffer();C.bindBuffer(C.ARRAY_BUFFER,g),C.bufferData(C.ARRAY_BUFFER,u,C.STATIC_DRAW);var k=C.getAttribLocation(n,"position");C.enableVertexAttribArray(k),C.vertexAttribPointer(k,2,C.FLOAT,!1,0,0),C.viewport(0,0,Q.width,Q.height),C.clearColor(0,0,0,1),C.clear(C.COLOR_BUFFER_BIT),C.drawArrays(C.LINES,0,2*c);var b=new Uint8ClampedArray(Q.width*Q.height*4);return C.readPixels(0,0,Q.width,Q.height,C.RGBA,C.UNSIGNED_BYTE,b),new ImageData(b,Q.width,Q.height)}catch{return new ImageData(1,1)}finally{C&&(C.bindBuffer(C.ARRAY_BUFFER,null),C.useProgram(null),C.viewport(0,0,C.drawingBufferWidth,C.drawingBufferHeight),C.clearColor(0,0,0,0))}}()}),[2,{commonImageHash:Nt(Br(e,Q.width,Q.height).data.toString()).toString()}]}catch{return[2,{webgl:"unsupported"}]}return[2]})})});var xe=function(e,t,r,s){for(var a=(r-t)/s,o=0,n=0;n<s;n++)o+=e(t+(n+.5)*a);return o*a};le("math",function(){return pe(void 0,void 0,void 0,function(){return me(this,function(e){return[2,{acos:Math.acos(.5),asin:xe(Math.asin,-1,1,97),atan:xe(Math.atan,-1,1,97),cos:xe(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:xe(Math.sin,-Math.PI,Math.PI,97),sinh:xe(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:xe(Math.tan,0,2*Math.PI,97),tanh:xe(Math.tanh,-9/7,7/9,97)}]})})});const wn="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Le=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=wn[r[e]&63];return t};class zt{constructor(t){A(this,"config"),this.config=t}async getAds(t){return[]}async onQuerySubmitted(t){}async onQueryFetched(t,r){}async onInputCleared(){}async onAdContainerRendered(t){}async onAdContainerViewed(t){}}class Rn extends zt{async getAds(t){if(!this.config.admSub)return console.error("No admSub specified in config."),[];const r=`https://demofeed.is.ampfeed.com/is?${new URLSearchParams({partner:"demofeed",sub1:this.config.admSub,qt:t.searchTerm,v:"2.0",rfr:"searchcraft.io","results-ta":`${this.config.admTextAdQuantity||0}`,"results-pa":`${this.config.admProductAdQuantity||0}`}).toString()}`,s=await(await fetch(r,{method:"GET"})).json(),a=s.product_ads.map(n=>({id:Le(),adSource:"adMarketplace",admAdType:"adm-product-ad",admAd:n})),o=s.text_ads.map(n=>({id:Le(),adSource:"adMarketplace",admAdType:"adm-text-ad",admAd:n}));return a.concat(o)}async onAdContainerViewed(t){var r;const s=t.adClientResponseItem;(r=s.admAd)!=null&&r.impression_url&&fetch(s.admAd.impression_url)}}class xn extends zt{async getAds(t){return[]}}const En=1e3;class Pn extends zt{constructor(t){super(t),A(this,"adCallTimeout"),this.addScriptTagToDocument()}async onQuerySubmitted(t){this.addScriptTagToDocument()}async onQueryFetched(t,r){var s;if((((s=r.data.hits)==null?void 0:s.length)||0)===0){this.removeScriptTagFromDocument();return}this.performAdCall(En)}async onInputCleared(){this.removeScriptTagFromDocument()}performAdCall(t){this.adCallTimeout&&clearTimeout(this.adCallTimeout),this.adCallTimeout=setTimeout(()=>{this.addScriptTagToDocument();try{PostRelease==null||PostRelease.Start({ptd:[this.config.nativoPlacementId]})}catch(r){console.error(r)}},t)}async getAds(t){return[]}addScriptTagToDocument(){if(!document.head.querySelector("#nativo-tag")){const t=document.createElement("script");t.type="text/javascript",t.src="https://s.ntv.io/serve/load.js",t.id="nativo-tag",t.setAttribute("data-ntv-set-no-auto-start","true"),document.head.appendChild(t)}}removeScriptTagFromDocument(){const t=document.head.querySelector("#nativo-tag");t&&document.head.removeChild(t)}}const Tn=600;class $n{constructor(t,r,s){A(this,"measureRequestTimeout"),A(this,"measureRequestsBatched",[]),A(this,"config"),A(this,"sdkInfo"),A(this,"userId"),A(this,"sessionId"),A(this,"sendMeasureEvent",async(a,o={},n={})=>{const c={event_name:a,properties:{searchcraft_index_names:this.config.index,session_id:this.sessionId,...o},user:{...this.measureRequestUser,...n}};if(a==="document_clicked"){const u=JSON.stringify(c),h=`${this.baseMeasureUrl}/event`;try{const i=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json",Authorization:this.config.readKey,"X-Sc-User-Id":this.userId,"X-Sc-Session-Id":this.sessionId},body:u,keepalive:!0});if(!i.ok)throw new Error(`Failed to send request: ${i.status} ${i.statusText}`)}catch(i){throw console.error("Error sending MeasureRequest:",i),i}}else this.measureRequestsBatched.push(c),clearTimeout(this.measureRequestTimeout),this.measureRequestTimeout=setTimeout(async()=>{const u=JSON.stringify({items:this.measureRequestsBatched}),h=`${this.baseMeasureUrl}/batch`;try{const i=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json",Authorization:this.config.readKey,"X-Sc-User-Id":this.userId,"X-Sc-Session-Id":this.sessionId},body:u,keepalive:!0});if(this.measureRequestsBatched=[],!i.ok)throw new Error(`Failed to send request: ${i.status} ${i.statusText}`);return}catch(i){throw this.measureRequestsBatched=[],console.error("Error sending MeasureRequest:",i),i}},Tn)}),this.config=t,this.sdkInfo=r,this.userId=s,this.sessionId=Le(),this.sendMeasureEvent("sdk_initialized")}get baseMeasureUrl(){return`${this.config.endpointURL}/measure`}get measureRequestUser(){return{user_id:this.userId,locale:navigator.language||"en-US",os:navigator.userAgent.includes("Windows")?"Windows":navigator.userAgent.includes("Mac")?"Mac":navigator.userAgent.includes("Linux")?"Linux":"Unknown",platform:navigator.platform||"Unknown",sdk_name:this.sdkInfo.sdkName,sdk_version:this.sdkInfo.sdkVersion,user_agent:navigator.userAgent||"Unknown"}}}const _n=e=>e.endsWith("/")?e.slice(0,-1):e,jt=e=>{let t="";if(t=e.trim(),t=t.replace(/[‘’“”]/g,r=>({"‘":"'","’":"'","“":'"',"”":'"'})[r]||r),(t.match(/"/g)||[]).length%2!==0)throw new Error("The search term contains an uneven number of quote characters.");return t},In=500;class An{constructor(t,r,s){A(this,"config"),A(this,"userId"),A(this,"parent"),A(this,"searchCompletedEventTimeout"),A(this,"getSearchResponseItems",async a=>{var o,n,c,u,h;let i;const p=typeof a=="string"?a:a.searchTerm;try{return(o=this.parent.measureClient)==null||o.sendMeasureEvent("search_requested",{search_term:p}),this.parent.emitEvent("query_submitted",{name:"query_submitted",data:{searchTerm:p}}),(n=this.parent.adClient)==null||n.onQuerySubmitted(typeof a=="string"?{searchTerm:p,mode:"exact"}:a),typeof a=="string"?i=await this.handleGetSearchResponseItemsWithString(a):i=await this.handleGetSearchResponseItemsWithObject(a),(c=this.parent.measureClient)==null||c.sendMeasureEvent("search_response_received",{search_term:p,number_of_documents:i.data.count}),clearTimeout(this.searchCompletedEventTimeout),this.searchCompletedEventTimeout=setTimeout(()=>{var g;(g=this.parent.measureClient)==null||g.sendMeasureEvent("search_completed",{search_term:p,number_of_documents:i.data.count})},In),this.parent.emitEvent("query_fetched",{name:"query_fetched",data:{searchTerm:p}}),(((u=i.data.hits)==null?void 0:u.length)||0)===0&&this.parent.emitEvent("no_results_returned",{name:"no_results_returned"}),(h=this.parent.adClient)==null||h.onQueryFetched(typeof a=="string"?{searchTerm:p,mode:"exact"}:a,i),i}catch(g){throw console.error("Error parsing response:",g),g}}),A(this,"handleGetSearchResponseItemsWithString",async a=>{var o;let n;try{n=JSON.parse(a),n={limit:this.config.searchResultsPerPage,...n}}catch{throw new Error("Error: Query string is not valid json.")}const c=await fetch(this.baseSearchUrl,{method:"POST",headers:{Authorization:this.config.readKey,"Content-Type":"application/json","X-Sc-User-Id":this.userId,"X-Sc-Session-Id":((o=this.parent.measureClient)==null?void 0:o.sessionId)||Le()},body:JSON.stringify(n)});if(!c.ok)throw new Error(`Error: ${c.statusText} (Status: ${c.status})`);return await c.json()}),A(this,"handleGetSearchResponseItemsWithObject",async a=>{var o;try{const n=await fetch(this.baseSearchUrl,{method:"POST",headers:{Authorization:this.config.readKey,"Content-Type":"application/json","X-Sc-User-Id":this.userId,"X-Sc-Session-Id":((o=this.parent.measureClient)==null?void 0:o.sessionId)||Le()},body:JSON.stringify({query:this.formatParamsForRequest(a),offset:a.offset||0,limit:a.limit||this.config.searchResultsPerPage||20,...a.order_by&&{order_by:a.order_by},...a.sort&&{sort:a.sort}})});if(!n.ok)throw new Error(`Error: ${n.statusText} (Status: ${n.status})`);return await n.json()}catch(n){throw console.error("Error parsing response:",n),n}}),this.parent=t,this.config=r,this.userId=s}get baseSearchUrl(){return`${this.config.endpointURL}/index/${this.config.index.join(",")}/search`}formatParamsForRequest(t){const r=[];let s="should";t.facetPathsForIndexFields&&Object.keys(t.facetPathsForIndexFields).forEach(n=>{var c;const u=(c=t.facetPathsForIndexFields)==null?void 0:c[n];u&&(s="must",r.push({occur:"must",exact:{ctx:jt(u.value)}}))}),t.rangeValueForIndexFields&&Object.keys(t.rangeValueForIndexFields).forEach(n=>{var c;const u=(c=t.rangeValueForIndexFields)==null?void 0:c[n];u&&(s="must",r.push({occur:"must",exact:{ctx:jt(u.value)}}))});const a=jt(t.searchTerm),o=t.mode==="fuzzy"?{fuzzy:{ctx:a}}:{exact:{ctx:`${a.startsWith('"')?a:`"${a}"`}`}};return r.push({occur:t.mode==="exact"?"must":s,...o}),r}}class Mn{constructor(t,r){if(A(this,"config"),A(this,"measureClient"),A(this,"searchClient"),A(this,"adClient"),A(this,"userId"),A(this,"requestTimeout"),A(this,"subscriptionEvents",{}),A(this,"getResponseItems",(s,a,o)=>{const n=async()=>{(async()=>{var c;const u=await((c=this==null?void 0:this.searchClient)==null?void 0:c.getSearchResponseItems(s));if(!u)throw new Error("Search client was not initialized.");const h=(u.data.hits||[]).filter(i=>!!i.doc).map(i=>({id:Le(),document:i.doc||{id:-1},source_index:i.source_index,type:"SearchDocument"}));a(u,h)})(),(async()=>{if(this.adClient&&typeof s!="string"){const c=await this.adClient.getAds(s);o(c)}})()};clearTimeout(this.requestTimeout),this.config.searchDebounceDelay?this.requestTimeout=setTimeout(n,this.config.searchDebounceDelay):n()}),!t.endpointURL||!t.index||!t.readKey)throw new Error("Endpoint URL, Index value(s), and Read Key must be provided");this.config={...t,endpointURL:_n(t.endpointURL)},this.userId="",typeof window<"u"&&typeof customElements<"u"&&r.sdkName==="@searchcraft/javascript-sdk"&&globalThis.__scDefineCustomElements__&&globalThis.__scDefineCustomElements__(),typeof window<"u"&&(this.initClients(this.config,r),this.initInputForms(),this.startObservingMutations())}initInputForms(){const t=document.querySelectorAll("searchcraft-input-form");setTimeout(()=>{t.forEach(r=>{r.core=this})},40)}startObservingMutations(){new MutationObserver((t,r)=>{let s=!1;for(const a of t)a.type==="childList"&&a.addedNodes.forEach(o=>{o.nodeType===1&&(o.getAttribute("class")||"").toLowerCase()==="searchcraft-input-form"&&(s=!0)});s&&this.initInputForms()}).observe(document.body,{childList:!0,subtree:!0})}initClients(t,r){setTimeout(async()=>{let s=this.config.userId;switch(s||(s=await hn()),this.measureClient=new $n(t,r,s),this.searchClient=new An(this,t,s),t.adSource){case"adMarketplace":this.adClient=new Rn(t);break;case"Nativo":this.adClient=new Pn(t);break;case"Custom":this.adClient=new xn(t);break}this.emitEvent("initialized",{name:"initialized"})},300)}emitEvent(t,r){var s;(s=this.subscriptionEvents[t])==null||s.forEach(a=>{a(r)})}subscribe(t,r){return this.subscriptionEvents[t]||(this.subscriptionEvents[t]=[]),this.subscriptionEvents[t].push(r),()=>{this.subscriptionEvents[t]=this.subscriptionEvents[t].filter(s=>s!==r)}}handleAdContainerRendered(t){var r;(r=this.adClient)==null||r.onAdContainerRendered(t),this.emitEvent("ad_container_rendered",{name:"ad_container_rendered",data:{adContainerId:t.adContainerId,adSource:t.adSource,searchTerm:t.searchTerm}})}handleAdContainerViewed(t){var r;(r=this.adClient)==null||r.onAdContainerViewed(t),this.emitEvent("ad_container_viewed",{name:"ad_container_viewed",data:{adContainerId:t.adContainerId,adSource:t.adSource,searchTerm:t.searchTerm}})}handleInputCleared(){var t;this.emitEvent("input_cleared",{name:"input_cleared"}),(t=this.adClient)==null||t.onInputCleared()}}var Yr={},Vt={};const Zr=e=>{let t;const r=new Set,s=(h,i)=>{const p=typeof h=="function"?h(t):h;if(!Object.is(p,t)){const g=t;t=i??(typeof p!="object"||p===null)?p:Object.assign({},t,p),r.forEach(k=>k(t,g))}},a=()=>t,c={setState:s,getState:a,getInitialState:()=>u,subscribe:h=>(r.add(h),()=>r.delete(h))},u=t=e(s,a,c);return c},Ln=e=>e?Zr(e):Zr;Vt.createStore=Ln;var Bt={},Qr={exports:{}},w={};/**
|
|
11
|
+
`,a=w.createShader(w.VERTEX_SHADER),o=w.createShader(w.FRAGMENT_SHADER);if(!a||!o)throw new Error("Failed to create shaders");if(w.shaderSource(a,r),w.shaderSource(o,s),w.compileShader(a),!w.getShaderParameter(a,w.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+w.getShaderInfoLog(a));if(w.compileShader(o),!w.getShaderParameter(o,w.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+w.getShaderInfoLog(o));var n=w.createProgram();if(!n)throw new Error("Failed to create shader program");if(w.attachShader(n,a),w.attachShader(n,o),w.linkProgram(n),!w.getProgramParameter(n,w.LINK_STATUS))throw new Error("Shader program linking failed: "+w.getProgramInfoLog(n));w.useProgram(n);for(var c=137,i=new Float32Array(4*c),u=2*Math.PI/c,h=0;h<c;h++){var p=h*u;i[4*h]=0,i[4*h+1]=0,i[4*h+2]=Math.cos(p)*(Q.width/2),i[4*h+3]=Math.sin(p)*(Q.height/2)}var m=w.createBuffer();w.bindBuffer(w.ARRAY_BUFFER,m),w.bufferData(w.ARRAY_BUFFER,i,w.STATIC_DRAW);var b=w.getAttribLocation(n,"position");w.enableVertexAttribArray(b),w.vertexAttribPointer(b,2,w.FLOAT,!1,0,0),w.viewport(0,0,Q.width,Q.height),w.clearColor(0,0,0,1),w.clear(w.COLOR_BUFFER_BIT),w.drawArrays(w.LINES,0,2*c);var y=new Uint8ClampedArray(Q.width*Q.height*4);return w.readPixels(0,0,Q.width,Q.height,w.RGBA,w.UNSIGNED_BYTE,y),new ImageData(y,Q.width,Q.height)}catch{return new ImageData(1,1)}finally{w&&(w.bindBuffer(w.ARRAY_BUFFER,null),w.useProgram(null),w.viewport(0,0,w.drawingBufferWidth,w.drawingBufferHeight),w.clearColor(0,0,0,0))}}()}),[2,{commonImageHash:Ut(Gr(e,Q.width,Q.height).data.toString()).toString()}]}catch{return[2,{webgl:"unsupported"}]}return[2]})})});var xe=function(e,t,r,s){for(var a=(r-t)/s,o=0,n=0;n<s;n++)o+=e(t+(n+.5)*a);return o*a};le("math",function(){return pe(void 0,void 0,void 0,function(){return me(this,function(e){return[2,{acos:Math.acos(.5),asin:xe(Math.asin,-1,1,97),atan:xe(Math.atan,-1,1,97),cos:xe(Math.cos,0,Math.PI,97),cosh:Math.cosh(9/7),e:Math.E,largeCos:Math.cos(1e20),largeSin:Math.sin(1e20),largeTan:Math.tan(1e20),log:Math.log(1e3),pi:Math.PI,sin:xe(Math.sin,-Math.PI,Math.PI,97),sinh:xe(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:xe(Math.tan,0,2*Math.PI,97),tanh:xe(Math.tanh,-9/7,7/9,97)}]})})});const En="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Oe=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=En[r[e]&63];return t};class Bt{constructor(t){A(this,"config"),this.config=t}async getAds(t){return[]}async onQuerySubmitted(t){}async onQueryFetched(t,r){}async onInputCleared(){}async onAdContainerRendered(t){}async onAdContainerViewed(t){}}class xn extends Bt{async getAds(t){if(!this.config.admSub)return console.error("No admSub specified in config."),[];const r=`https://demofeed.is.ampfeed.com/is?${new URLSearchParams({partner:"demofeed",sub1:this.config.admSub,qt:t.searchTerm,v:"2.0",rfr:"searchcraft.io","results-ta":`${this.config.admTextAdQuantity||0}`,"results-pa":`${this.config.admProductAdQuantity||0}`}).toString()}`,s=await(await fetch(r,{method:"GET"})).json(),a=s.product_ads.map(n=>({id:Oe(),adSource:"adMarketplace",admAdType:"adm-product-ad",admAd:n})),o=s.text_ads.map(n=>({id:Oe(),adSource:"adMarketplace",admAdType:"adm-text-ad",admAd:n}));return a.concat(o)}async onAdContainerViewed(t){var r;const s=t.adClientResponseItem;(r=s.admAd)!=null&&r.impression_url&&fetch(s.admAd.impression_url)}}class Rn extends Bt{async getAds(t){return[]}}const Tn=1e3;class Pn extends Bt{constructor(t){super(t),A(this,"adCallTimeout"),this.addScriptTagToDocument()}async onQuerySubmitted(t){this.addScriptTagToDocument()}async onQueryFetched(t,r){var s;if((((s=r.data.hits)==null?void 0:s.length)||0)===0){this.removeScriptTagFromDocument();return}this.performAdCall(Tn)}async onInputCleared(){this.removeScriptTagFromDocument()}performAdCall(t){this.adCallTimeout&&clearTimeout(this.adCallTimeout),this.adCallTimeout=setTimeout(()=>{this.addScriptTagToDocument();try{PostRelease==null||PostRelease.Start({ptd:[this.config.nativoPlacementId]})}catch(r){console.error(r)}},t)}async getAds(t){return[]}addScriptTagToDocument(){if(!document.head.querySelector("#nativo-tag")){const t=document.createElement("script");t.type="text/javascript",t.src="https://s.ntv.io/serve/load.js",t.id="nativo-tag",t.setAttribute("data-ntv-set-no-auto-start","true"),document.head.appendChild(t)}}removeScriptTagFromDocument(){const t=document.head.querySelector("#nativo-tag");t&&document.head.removeChild(t)}}const $n=600;class _n{constructor(t,r,s){A(this,"measureRequestTimeout"),A(this,"measureRequestsBatched",[]),A(this,"config"),A(this,"sdkInfo"),A(this,"userId"),A(this,"sessionId"),A(this,"sendMeasureEvent",async(a,o={},n={})=>{const c={event_name:a,properties:{searchcraft_index_names:this.config.index,session_id:this.sessionId,...o},user:{...this.measureRequestUser,...n}};if(a==="document_clicked"){const i=JSON.stringify(c),u=`${this.baseMeasureUrl}/event`;try{const h=await fetch(u,{method:"POST",headers:{"Content-Type":"application/json",Authorization:this.config.readKey,"X-Sc-User-Id":this.userId,"X-Sc-Session-Id":this.sessionId},body:i,keepalive:!0});if(!h.ok)throw new Error(`Failed to send request: ${h.status} ${h.statusText}`)}catch(h){throw console.error("Error sending MeasureRequest:",h),h}}else this.measureRequestsBatched.push(c),clearTimeout(this.measureRequestTimeout),this.measureRequestTimeout=setTimeout(async()=>{const i=JSON.stringify({items:this.measureRequestsBatched}),u=`${this.baseMeasureUrl}/batch`;try{const h=await fetch(u,{method:"POST",headers:{"Content-Type":"application/json",Authorization:this.config.readKey,"X-Sc-User-Id":this.userId,"X-Sc-Session-Id":this.sessionId},body:i,keepalive:!0});if(this.measureRequestsBatched=[],!h.ok)throw new Error(`Failed to send request: ${h.status} ${h.statusText}`);return}catch(h){throw this.measureRequestsBatched=[],console.error("Error sending MeasureRequest:",h),h}},$n)}),this.config=t,this.sdkInfo=r,this.userId=s,this.sessionId=Oe(),this.sendMeasureEvent("sdk_initialized")}get baseMeasureUrl(){return`${this.config.endpointURL}/measure`}get measureRequestUser(){return{user_id:this.userId,locale:navigator.language||"en-US",os:navigator.userAgent.includes("Windows")?"Windows":navigator.userAgent.includes("Mac")?"Mac":navigator.userAgent.includes("Linux")?"Linux":"Unknown",platform:navigator.platform||"Unknown",sdk_name:this.sdkInfo.sdkName,sdk_version:this.sdkInfo.sdkVersion,user_agent:navigator.userAgent||"Unknown"}}}const In=e=>e.endsWith("/")?e.slice(0,-1):e,mt=e=>{let t="";if(t=e.trim(),t=t.replace(/[‘’“”]/g,r=>({"‘":"'","’":"'","“":'"',"”":'"'})[r]||r),(t.match(/"/g)||[]).length%2!==0)throw new Error("The search term contains an uneven number of quote characters.");return t},An=500;class Mn{constructor(t,r,s){A(this,"config"),A(this,"userId"),A(this,"parent"),A(this,"searchCompletedEventTimeout"),A(this,"getSearchResponseItems",async(a,o=!0)=>{var n,c,i,u,h;try{let p,m="";return typeof a=="string"?m=mt(a):(a.searchTerm=mt(a.searchTerm),m=a.searchTerm),(n=this.parent.measureClient)==null||n.sendMeasureEvent("search_requested",{search_term:m}),this.parent.emitEvent("query_submitted",{name:"query_submitted",data:{searchTerm:m}}),(c=this.parent.adClient)==null||c.onQuerySubmitted(typeof a=="string"?{searchTerm:m,mode:"exact"}:a),typeof a=="string"?p=await this.handleGetSearchResponseItemsWithString(m):p=await this.handleGetSearchResponseItemsWithObject(a),o&&((i=this.parent.measureClient)==null||i.sendMeasureEvent("search_response_received",{search_term:m,number_of_documents:p.data.count}),clearTimeout(this.searchCompletedEventTimeout),this.searchCompletedEventTimeout=setTimeout(()=>{var b;(b=this.parent.measureClient)==null||b.sendMeasureEvent("search_completed",{search_term:m,number_of_documents:p.data.count})},An),this.parent.emitEvent("query_fetched",{name:"query_fetched",data:{searchTerm:m}}),(((u=p.data.hits)==null?void 0:u.length)||0)===0&&this.parent.emitEvent("no_results_returned",{name:"no_results_returned"}),(h=this.parent.adClient)==null||h.onQueryFetched(typeof a=="string"?{searchTerm:m,mode:"exact"}:a,p)),p}catch(p){throw console.error("Error parsing response:",p),p}}),A(this,"handleGetSearchResponseItemsWithString",async a=>{var o;let n;try{n=JSON.parse(a),n={limit:this.config.searchResultsPerPage,...n}}catch{throw new Error("Error: Query string is not valid json.")}const c=await fetch(this.baseSearchUrl,{method:"POST",headers:{Authorization:this.config.readKey,"Content-Type":"application/json","X-Sc-User-Id":this.userId,"X-Sc-Session-Id":((o=this.parent.measureClient)==null?void 0:o.sessionId)||Oe()},body:JSON.stringify(n)});if(!c.ok)throw new Error(`Error: ${c.statusText} (Status: ${c.status})`);return await c.json()}),A(this,"handleGetSearchResponseItemsWithObject",async a=>{var o;try{const n=await fetch(this.baseSearchUrl,{method:"POST",headers:{Authorization:this.config.readKey,"Content-Type":"application/json","X-Sc-User-Id":this.userId,"X-Sc-Session-Id":((o=this.parent.measureClient)==null?void 0:o.sessionId)||Oe()},body:JSON.stringify({query:this.formatParamsForRequest(a),offset:a.offset||0,limit:a.limit||this.config.searchResultsPerPage||20,...a.order_by&&{order_by:a.order_by},...a.sort&&{sort:a.sort}})});if(!n.ok)throw new Error(`Error: ${n.statusText} (Status: ${n.status})`);return await n.json()}catch(n){throw console.error("Error parsing response:",n),n}}),this.parent=t,this.config=r,this.userId=s}get baseSearchUrl(){return`${this.config.endpointURL}/index/${this.config.index.join(",")}/search`}formatParamsForRequest(t){const r=[];let s="should";t.facetPathsForIndexFields&&Object.keys(t.facetPathsForIndexFields).forEach(n=>{var c;const i=(c=t.facetPathsForIndexFields)==null?void 0:c[n];i&&(s="must",r.push({occur:"must",exact:{ctx:mt(i.value)}}))}),t.rangeValueForIndexFields&&Object.keys(t.rangeValueForIndexFields).forEach(n=>{var c;const i=(c=t.rangeValueForIndexFields)==null?void 0:c[n];i&&(s="must",r.push({occur:"must",exact:{ctx:mt(i.value)}}))});const a=t.searchTerm,o=t.mode==="fuzzy"?{fuzzy:{ctx:a}}:{exact:{ctx:`${a.startsWith('"')?a:`"${a}"`}`}};return r.push({occur:t.mode==="exact"?"must":s,...o}),r}}class On{constructor(t,r){if(A(this,"config"),A(this,"measureClient"),A(this,"searchClient"),A(this,"adClient"),A(this,"userId"),A(this,"requestTimeout"),A(this,"subscriptionEvents",{}),A(this,"getResponseItems",(s,a,o)=>{const n=async()=>{(async()=>{var c,i;const u=await((c=this==null?void 0:this.searchClient)==null?void 0:c.getSearchResponseItems(s));if(!u)throw new Error("Search client was not initialized.");const h=(u.data.hits||[]).filter(m=>!!m.doc).map(m=>({id:Oe(),document:m.doc||{id:-1},source_index:m.source_index,type:"SearchDocument"}));let p;if(typeof s=="object"){const m=structuredClone(s);m.facetPathsForIndexFields&&Object.keys(m.facetPathsForIndexFields).length>0&&m.rangeValueForIndexFields&&Object.keys(m.rangeValueForIndexFields).length>0&&(m.facetPathsForIndexFields=void 0,p=await((i=this==null?void 0:this.searchClient)==null?void 0:i.getSearchResponseItems(m,!1)),u&&console.log("Supplemental response:",p))}a(u,h,p)})(),(async()=>{if(this.adClient&&typeof s!="string"){const c=await this.adClient.getAds(s);o(c)}})()};clearTimeout(this.requestTimeout),this.config.searchDebounceDelay?this.requestTimeout=setTimeout(n,this.config.searchDebounceDelay):n()}),!t.endpointURL||!t.index||!t.readKey)throw new Error("Endpoint URL, Index value(s), and Read Key must be provided");this.config={...t,endpointURL:In(t.endpointURL)},this.userId="",typeof window<"u"&&typeof customElements<"u"&&r.sdkName==="@searchcraft/javascript-sdk"&&globalThis.__scDefineCustomElements__&&globalThis.__scDefineCustomElements__(),typeof window<"u"&&(this.initClients(this.config,r),this.initInputForms(),this.startObservingMutations())}initInputForms(){const t=document.querySelectorAll("searchcraft-input-form");setTimeout(()=>{t.forEach(r=>{r.core=this})},40)}startObservingMutations(){new MutationObserver((t,r)=>{let s=!1;for(const a of t)a.type==="childList"&&a.addedNodes.forEach(o=>{o.nodeType===1&&(o.getAttribute("class")||"").toLowerCase()==="searchcraft-input-form"&&(s=!0)});s&&this.initInputForms()}).observe(document.body,{childList:!0,subtree:!0})}initClients(t,r){setTimeout(async()=>{let s=this.config.userId;switch(s||(s=await dn()),this.measureClient=new _n(t,r,s),this.searchClient=new Mn(this,t,s),t.adSource){case"adMarketplace":this.adClient=new xn(t);break;case"Nativo":this.adClient=new Pn(t);break;case"Custom":this.adClient=new Rn(t);break}this.emitEvent("initialized",{name:"initialized"})},300)}emitEvent(t,r){var s;(s=this.subscriptionEvents[t])==null||s.forEach(a=>{a(r)})}subscribe(t,r){return this.subscriptionEvents[t]||(this.subscriptionEvents[t]=[]),this.subscriptionEvents[t].push(r),()=>{this.subscriptionEvents[t]=this.subscriptionEvents[t].filter(s=>s!==r)}}handleAdContainerRendered(t){var r;(r=this.adClient)==null||r.onAdContainerRendered(t),this.emitEvent("ad_container_rendered",{name:"ad_container_rendered",data:{adContainerId:t.adContainerId,adSource:t.adSource,searchTerm:t.searchTerm}})}handleAdContainerViewed(t){var r;(r=this.adClient)==null||r.onAdContainerViewed(t),this.emitEvent("ad_container_viewed",{name:"ad_container_viewed",data:{adContainerId:t.adContainerId,adSource:t.adSource,searchTerm:t.searchTerm}})}handleInputCleared(){var t;this.emitEvent("input_cleared",{name:"input_cleared"}),(t=this.adClient)==null||t.onInputCleared()}}var Qr={},Vt={};const Kr=e=>{let t;const r=new Set,s=(u,h)=>{const p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){const m=t;t=h??(typeof p!="object"||p===null)?p:Object.assign({},t,p),r.forEach(b=>b(t,m))}},a=()=>t,c={setState:s,getState:a,getInitialState:()=>i,subscribe:u=>(r.add(u),()=>r.delete(u))},i=t=e(s,a,c);return c},Ln=e=>e?Kr(e):Kr;Vt.createStore=Ln;var jt={},Xr={exports:{}},k={};/**
|
|
12
12
|
* @license React
|
|
13
13
|
* react.production.js
|
|
14
14
|
*
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var Wt=Symbol.for("react.transitional.element"),On=Symbol.for("react.portal"),Fn=Symbol.for("react.fragment"),Dn=Symbol.for("react.strict_mode"),Hn=Symbol.for("react.profiler"),Nn=Symbol.for("react.consumer"),Un=Symbol.for("react.context"),zn=Symbol.for("react.forward_ref"),jn=Symbol.for("react.suspense"),Vn=Symbol.for("react.memo"),Kr=Symbol.for("react.lazy"),Xr=Symbol.iterator;function Bn(e){return e===null||typeof e!="object"?null:(e=Xr&&e[Xr]||e["@@iterator"],typeof e=="function"?e:null)}var Jr={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},es=Object.assign,ts={};function Oe(e,t,r){this.props=e,this.context=t,this.refs=ts,this.updater=r||Jr}Oe.prototype.isReactComponent={},Oe.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Oe.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rs(){}rs.prototype=Oe.prototype;function Gt(e,t,r){this.props=e,this.context=t,this.refs=ts,this.updater=r||Jr}var qt=Gt.prototype=new rs;qt.constructor=Gt,es(qt,Oe.prototype),qt.isPureReactComponent=!0;var ss=Array.isArray,L={H:null,A:null,T:null,S:null},as=Object.prototype.hasOwnProperty;function Yt(e,t,r,s,a,o){return r=o.ref,{$$typeof:Wt,type:e,key:t,ref:r!==void 0?r:null,props:o}}function Wn(e,t){return Yt(e.type,t,void 0,void 0,void 0,e.props)}function Zt(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wt}function Gn(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var ns=/\/+/g;function Qt(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gn(""+e.key):t.toString(36)}function os(){}function qn(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(os,os):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Fe(e,t,r,s,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var n=!1;if(e===null)n=!0;else switch(o){case"bigint":case"string":case"number":n=!0;break;case"object":switch(e.$$typeof){case Wt:case On:n=!0;break;case Kr:return n=e._init,Fe(n(e._payload),t,r,s,a)}}if(n)return a=a(e),n=s===""?"."+Qt(e,0):s,ss(a)?(r="",n!=null&&(r=n.replace(ns,"$&/")+"/"),Fe(a,t,r,"",function(h){return h})):a!=null&&(Zt(a)&&(a=Wn(a,r+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(ns,"$&/")+"/")+n)),t.push(a)),1;n=0;var c=s===""?".":s+":";if(ss(e))for(var u=0;u<e.length;u++)s=e[u],o=c+Qt(s,u),n+=Fe(s,t,r,o,a);else if(u=Bn(e),typeof u=="function")for(e=u.call(e),u=0;!(s=e.next()).done;)s=s.value,o=c+Qt(s,u++),n+=Fe(s,t,r,o,a);else if(o==="object"){if(typeof e.then=="function")return Fe(qn(e),t,r,s,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return n}function mt(e,t,r){if(e==null)return e;var s=[],a=0;return Fe(e,s,"","",function(o){return t.call(r,o,a++)}),s}function Yn(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var cs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Zn(){}w.Children={map:mt,forEach:function(e,t,r){mt(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return mt(e,function(){t++}),t},toArray:function(e){return mt(e,function(t){return t})||[]},only:function(e){if(!Zt(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},w.Component=Oe,w.Fragment=Fn,w.Profiler=Hn,w.PureComponent=Gt,w.StrictMode=Dn,w.Suspense=jn,w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,w.act=function(){throw Error("act(...) is not supported in production builds of React.")},w.cache=function(e){return function(){return e.apply(null,arguments)}},w.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var s=es({},e.props),a=e.key,o=void 0;if(t!=null)for(n in t.ref!==void 0&&(o=void 0),t.key!==void 0&&(a=""+t.key),t)!as.call(t,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&t.ref===void 0||(s[n]=t[n]);var n=arguments.length-2;if(n===1)s.children=r;else if(1<n){for(var c=Array(n),u=0;u<n;u++)c[u]=arguments[u+2];s.children=c}return Yt(e.type,a,void 0,void 0,o,s)},w.createContext=function(e){return e={$$typeof:Un,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Nn,_context:e},e},w.createElement=function(e,t,r){var s,a={},o=null;if(t!=null)for(s in t.key!==void 0&&(o=""+t.key),t)as.call(t,s)&&s!=="key"&&s!=="__self"&&s!=="__source"&&(a[s]=t[s]);var n=arguments.length-2;if(n===1)a.children=r;else if(1<n){for(var c=Array(n),u=0;u<n;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(s in n=e.defaultProps,n)a[s]===void 0&&(a[s]=n[s]);return Yt(e,o,void 0,void 0,null,a)},w.createRef=function(){return{current:null}},w.forwardRef=function(e){return{$$typeof:zn,render:e}},w.isValidElement=Zt,w.lazy=function(e){return{$$typeof:Kr,_payload:{_status:-1,_result:e},_init:Yn}},w.memo=function(e,t){return{$$typeof:Vn,type:e,compare:t===void 0?null:t}},w.startTransition=function(e){var t=L.T,r={};L.T=r;try{var s=e(),a=L.S;a!==null&&a(r,s),typeof s=="object"&&s!==null&&typeof s.then=="function"&&s.then(Zn,cs)}catch(o){cs(o)}finally{L.T=t}},w.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},w.use=function(e){return L.H.use(e)},w.useActionState=function(e,t,r){return L.H.useActionState(e,t,r)},w.useCallback=function(e,t){return L.H.useCallback(e,t)},w.useContext=function(e){return L.H.useContext(e)},w.useDebugValue=function(){},w.useDeferredValue=function(e,t){return L.H.useDeferredValue(e,t)},w.useEffect=function(e,t){return L.H.useEffect(e,t)},w.useId=function(){return L.H.useId()},w.useImperativeHandle=function(e,t,r){return L.H.useImperativeHandle(e,t,r)},w.useInsertionEffect=function(e,t){return L.H.useInsertionEffect(e,t)},w.useLayoutEffect=function(e,t){return L.H.useLayoutEffect(e,t)},w.useMemo=function(e,t){return L.H.useMemo(e,t)},w.useOptimistic=function(e,t){return L.H.useOptimistic(e,t)},w.useReducer=function(e,t,r){return L.H.useReducer(e,t,r)},w.useRef=function(e){return L.H.useRef(e)},w.useState=function(e){return L.H.useState(e)},w.useSyncExternalStore=function(e,t,r){return L.H.useSyncExternalStore(e,t,r)},w.useTransition=function(){return L.H.useTransition()},w.version="19.0.0",Qr.exports=w;var is=Qr.exports,Qn=Vt;const Kn=e=>e;function ls(e,t=Kn){const r=is.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return is.useDebugValue(r),r}const us=e=>{const t=Qn.createStore(e),r=s=>ls(t,s);return Object.assign(r,t),r},Xn=e=>e?us(e):us;Bt.create=Xn,Bt.useStore=ls,function(e){var t=Vt,r=Bt;Object.keys(t).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[s]}})}),Object.keys(r).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:function(){return r[s]}})})}(Yr);const hs={adClientResponseItems:[],core:void 0,hotkey:"k",hotkeyModifier:"meta",logger:void 0,facetPathsForIndexFields:{},initialQuery:"",initialSearchClientResponseItems:[],isPopoverVisible:!1,isSearchInProgress:!1,rangeValueForIndexFields:{},searchTerm:"",searchMode:"fuzzy",searchClientResponseItems:[],searchResponseTimeTaken:void 0,searchResponseFacetPrime:void 0,searchResultsCount:0,searchResultsPerPage:20,searchResultsPage:1,sortType:void 0,orderByField:void 0,afterInit:()=>{}},_=Yr.createStore((e,t)=>{const r={set:a=>(e(a),t()),addFacetPathsForIndexField:a=>r.set(o=>({facetPathsForIndexFields:{...o.facetPathsForIndexFields,[a.fieldName]:a}})),addRangeValueForIndexField:a=>r.set(o=>({rangeValueForIndexFields:{...o.rangeValueForIndexFields,[a.fieldName]:a}})),getSearchcraftCore:()=>{const{core:a}=t();return a},init:(a,o=!1)=>{const n=o?new an({logLevel:fe.DEBUG}):void 0,c=r.set({core:a,logger:n,searchResultsPerPage:(a==null?void 0:a.config.searchResultsPerPage)||20});a==null||a.subscribe("initialized",()=>{c.afterInit&&c.afterInit(c)})},removeFacetPathsForIndexField:a=>r.set(o=>{const n=o.facetPathsForIndexFields;return delete n[a],{facetPathsForIndexFields:{...n}}}),removeRangeValueForIndexField:a=>r.set(o=>{const n=o.rangeValueForIndexFields;return delete n[a],{rangeValueForIndexFields:{...n}}}),resetFacetPaths:()=>{r.set({facetPathsForIndexFields:{}})},search:async()=>{var o,n;const a=t();if((o=a.logger)==null||o.log(fe.INFO,`Starting search with search term: "${a.searchTerm}"`),!a.core)throw new Error("Searchcraft instance is not initialized.");if(!a.searchTerm.trim()){(n=a.logger)==null||n.log(fe.INFO,"No search request was made: search term was empty."),r.set({searchClientResponseItems:[],searchResultsCount:0,searchResultsPage:1,searchTerm:""});return}r.set({isSearchInProgress:!0}),a.core.getResponseItems({searchTerm:a.searchTerm,mode:a.searchMode,sort:a.sortType,order_by:a.orderByField,facetPathsForIndexFields:a.facetPathsForIndexFields,rangeValueForIndexFields:a.rangeValueForIndexFields,offset:a.searchResultsPerPage?a.searchResultsPerPage*(a.searchResultsPage-1):0,limit:a.searchResultsPerPage},r.setSearchClientResponseItemsFromResponse,r.setAdClientResponseItems)},setAdClientResponseItems:a=>r.set({adClientResponseItems:a}),setSearchClientResponseItemsFromResponse:(a,o)=>{var i,p;const{facets:n,count:c=0,time_taken:u=0}=a.data,h=r.set(g=>({isSearchInProgress:!1,searchClientResponseItems:o,searchResponseTimeTaken:u,searchResultsPage:c===g.searchResultsCount?g.searchResultsPage:1,searchResultsCount:c,searchResponseFacetPrime:n}));(i=h.logger)==null||i.log(fe.DEBUG,`Search results: ${JSON.stringify(o)}`),(p=h.logger)==null||p.log(fe.DEBUG,`Facets from response: ${JSON.stringify(n)}`)},setInitialSearchClientResponseItemsFromResponse:(a,o)=>{var h;const n=t(),{count:c=0,time_taken:u=0}=a.data;r.set(i=>({isSearchInProgress:!1,initialSearchClientResponseItems:o,searchResponseTimeTaken:u,searchResultsPage:c===i.searchResultsCount?i.searchResultsPage:1,searchResultsCount:c})),(h=n.logger)==null||h.log(fe.DEBUG,`Search results: ${JSON.stringify(o)}`)},setInitialQuery:async a=>{var n;const o=r.set({initialQuery:a});if((n=o.logger)==null||n.log(fe.INFO,`Starting search with query: "${o.initialQuery}"`),!o.core)throw new Error("Searchcraft instance is not initialized.");await o.core.getResponseItems(a,r.setInitialSearchClientResponseItemsFromResponse,r.setAdClientResponseItems)},setPopoverVisibility:a=>r.set({isPopoverVisible:a}),setSearchMode:a=>r.set({searchMode:a}),setSortOrder:({orderByField:a,sortType:o})=>r.set({sortType:o,orderByField:a}),setSearchTerm:a=>{const{core:o}=t();a.length===0&&(o==null||o.handleInputCleared()),r.set({searchTerm:a,facetPathsForIndexFields:{},...a.trim().length===0&&{searchMode:"fuzzy",sortType:null,orderByField:null}})},setSearchClientResponseItems:a=>r.set({searchClientResponseItems:a}),setSearchResultsCount:a=>r.set({searchResultsCount:a}),setSearchResultsPage:async a=>{r.set({searchResultsPage:a}),await r.search()},setSearchResultsPerPage:async a=>{r.set({searchResultsPerPage:a}),await r.search()},setHotKeyAndHotKeyModifier:(a,o)=>{const{hotkey:n,hotkeyModifier:c}=hs;r.set({hotkey:a||n,hotkeyModifier:o||c})}};return{...hs,...r}});var ds={exports:{}};/*!
|
|
19
|
+
*/var Wt=Symbol.for("react.transitional.element"),Fn=Symbol.for("react.portal"),Dn=Symbol.for("react.fragment"),Nn=Symbol.for("react.strict_mode"),Hn=Symbol.for("react.profiler"),Un=Symbol.for("react.consumer"),zn=Symbol.for("react.context"),Bn=Symbol.for("react.forward_ref"),Vn=Symbol.for("react.suspense"),jn=Symbol.for("react.memo"),Jr=Symbol.for("react.lazy"),es=Symbol.iterator;function Wn(e){return e===null||typeof e!="object"?null:(e=es&&e[es]||e["@@iterator"],typeof e=="function"?e:null)}var ts={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rs=Object.assign,ss={};function Le(e,t,r){this.props=e,this.context=t,this.refs=ss,this.updater=r||ts}Le.prototype.isReactComponent={},Le.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Le.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function as(){}as.prototype=Le.prototype;function Gt(e,t,r){this.props=e,this.context=t,this.refs=ss,this.updater=r||ts}var qt=Gt.prototype=new as;qt.constructor=Gt,rs(qt,Le.prototype),qt.isPureReactComponent=!0;var ns=Array.isArray,O={H:null,A:null,T:null,S:null},os=Object.prototype.hasOwnProperty;function Yt(e,t,r,s,a,o){return r=o.ref,{$$typeof:Wt,type:e,key:t,ref:r!==void 0?r:null,props:o}}function Gn(e,t){return Yt(e.type,t,void 0,void 0,void 0,e.props)}function Zt(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wt}function qn(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var cs=/\/+/g;function Qt(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qn(""+e.key):t.toString(36)}function is(){}function Yn(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(is,is):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Fe(e,t,r,s,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var n=!1;if(e===null)n=!0;else switch(o){case"bigint":case"string":case"number":n=!0;break;case"object":switch(e.$$typeof){case Wt:case Fn:n=!0;break;case Jr:return n=e._init,Fe(n(e._payload),t,r,s,a)}}if(n)return a=a(e),n=s===""?"."+Qt(e,0):s,ns(a)?(r="",n!=null&&(r=n.replace(cs,"$&/")+"/"),Fe(a,t,r,"",function(u){return u})):a!=null&&(Zt(a)&&(a=Gn(a,r+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(cs,"$&/")+"/")+n)),t.push(a)),1;n=0;var c=s===""?".":s+":";if(ns(e))for(var i=0;i<e.length;i++)s=e[i],o=c+Qt(s,i),n+=Fe(s,t,r,o,a);else if(i=Wn(e),typeof i=="function")for(e=i.call(e),i=0;!(s=e.next()).done;)s=s.value,o=c+Qt(s,i++),n+=Fe(s,t,r,o,a);else if(o==="object"){if(typeof e.then=="function")return Fe(Yn(e),t,r,s,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return n}function gt(e,t,r){if(e==null)return e;var s=[],a=0;return Fe(e,s,"","",function(o){return t.call(r,o,a++)}),s}function Zn(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ls=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Qn(){}k.Children={map:gt,forEach:function(e,t,r){gt(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return gt(e,function(){t++}),t},toArray:function(e){return gt(e,function(t){return t})||[]},only:function(e){if(!Zt(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},k.Component=Le,k.Fragment=Dn,k.Profiler=Hn,k.PureComponent=Gt,k.StrictMode=Nn,k.Suspense=Vn,k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,k.act=function(){throw Error("act(...) is not supported in production builds of React.")},k.cache=function(e){return function(){return e.apply(null,arguments)}},k.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var s=rs({},e.props),a=e.key,o=void 0;if(t!=null)for(n in t.ref!==void 0&&(o=void 0),t.key!==void 0&&(a=""+t.key),t)!os.call(t,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&t.ref===void 0||(s[n]=t[n]);var n=arguments.length-2;if(n===1)s.children=r;else if(1<n){for(var c=Array(n),i=0;i<n;i++)c[i]=arguments[i+2];s.children=c}return Yt(e.type,a,void 0,void 0,o,s)},k.createContext=function(e){return e={$$typeof:zn,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Un,_context:e},e},k.createElement=function(e,t,r){var s,a={},o=null;if(t!=null)for(s in t.key!==void 0&&(o=""+t.key),t)os.call(t,s)&&s!=="key"&&s!=="__self"&&s!=="__source"&&(a[s]=t[s]);var n=arguments.length-2;if(n===1)a.children=r;else if(1<n){for(var c=Array(n),i=0;i<n;i++)c[i]=arguments[i+2];a.children=c}if(e&&e.defaultProps)for(s in n=e.defaultProps,n)a[s]===void 0&&(a[s]=n[s]);return Yt(e,o,void 0,void 0,null,a)},k.createRef=function(){return{current:null}},k.forwardRef=function(e){return{$$typeof:Bn,render:e}},k.isValidElement=Zt,k.lazy=function(e){return{$$typeof:Jr,_payload:{_status:-1,_result:e},_init:Zn}},k.memo=function(e,t){return{$$typeof:jn,type:e,compare:t===void 0?null:t}},k.startTransition=function(e){var t=O.T,r={};O.T=r;try{var s=e(),a=O.S;a!==null&&a(r,s),typeof s=="object"&&s!==null&&typeof s.then=="function"&&s.then(Qn,ls)}catch(o){ls(o)}finally{O.T=t}},k.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},k.use=function(e){return O.H.use(e)},k.useActionState=function(e,t,r){return O.H.useActionState(e,t,r)},k.useCallback=function(e,t){return O.H.useCallback(e,t)},k.useContext=function(e){return O.H.useContext(e)},k.useDebugValue=function(){},k.useDeferredValue=function(e,t){return O.H.useDeferredValue(e,t)},k.useEffect=function(e,t){return O.H.useEffect(e,t)},k.useId=function(){return O.H.useId()},k.useImperativeHandle=function(e,t,r){return O.H.useImperativeHandle(e,t,r)},k.useInsertionEffect=function(e,t){return O.H.useInsertionEffect(e,t)},k.useLayoutEffect=function(e,t){return O.H.useLayoutEffect(e,t)},k.useMemo=function(e,t){return O.H.useMemo(e,t)},k.useOptimistic=function(e,t){return O.H.useOptimistic(e,t)},k.useReducer=function(e,t,r){return O.H.useReducer(e,t,r)},k.useRef=function(e){return O.H.useRef(e)},k.useState=function(e){return O.H.useState(e)},k.useSyncExternalStore=function(e,t,r){return O.H.useSyncExternalStore(e,t,r)},k.useTransition=function(){return O.H.useTransition()},k.version="19.0.0",Xr.exports=k;var us=Xr.exports,Kn=Vt;const Xn=e=>e;function hs(e,t=Xn){const r=us.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return us.useDebugValue(r),r}const ds=e=>{const t=Kn.createStore(e),r=s=>hs(t,s);return Object.assign(r,t),r},Jn=e=>e?ds(e):ds;jt.create=Jn,jt.useStore=hs,function(e){var t=Vt,r=jt;Object.keys(t).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[s]}})}),Object.keys(r).forEach(function(s){s!=="default"&&!Object.prototype.hasOwnProperty.call(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:function(){return r[s]}})})}(Qr);const fs={adClientResponseItems:[],core:void 0,hotkey:"k",hotkeyModifier:"meta",logger:void 0,facetPathsForIndexFields:{},initialQuery:"",initialSearchClientResponseItems:[],isPopoverVisible:!1,isSearchInProgress:!1,rangeValueForIndexFields:{},searchTerm:"",searchMode:"fuzzy",searchClientResponseItems:[],searchResponseTimeTaken:void 0,searchResponseFacetPrime:void 0,supplementalFacetPrime:void 0,searchResultsCount:0,searchResultsPerPage:20,searchResultsPage:1,sortType:void 0,orderByField:void 0,afterInit:()=>{}},_=Qr.createStore((e,t)=>{const r={set:a=>(e(a),t()),addFacetPathsForIndexField:a=>r.set(o=>({facetPathsForIndexFields:{...o.facetPathsForIndexFields,[a.fieldName]:a}})),addRangeValueForIndexField:a=>r.set(o=>({rangeValueForIndexFields:{...o.rangeValueForIndexFields,[a.fieldName]:a}})),getSearchcraftCore:()=>{const{core:a}=t();return a},init:(a,o=!1)=>{const n=o?new nn({logLevel:fe.DEBUG}):void 0,c=r.set({core:a,logger:n,searchResultsPerPage:(a==null?void 0:a.config.searchResultsPerPage)||20});a==null||a.subscribe("initialized",()=>{c.afterInit&&c.afterInit(c)})},removeFacetPathsForIndexField:a=>r.set(o=>{const n=o.facetPathsForIndexFields;return delete n[a],{facetPathsForIndexFields:{...n}}}),removeRangeValueForIndexField:a=>r.set(o=>{const n=o.rangeValueForIndexFields;return delete n[a],{rangeValueForIndexFields:{...n}}}),resetFacetPaths:()=>{r.set({facetPathsForIndexFields:{}})},search:async()=>{var o,n;const a=t();if((o=a.logger)==null||o.log(fe.INFO,`Starting search with search term: "${a.searchTerm}"`),!a.core)throw new Error("Searchcraft instance is not initialized.");if(!a.searchTerm.trim()){(n=a.logger)==null||n.log(fe.INFO,"No search request was made: search term was empty."),r.set({searchClientResponseItems:[],searchResultsCount:0,searchResultsPage:1,searchTerm:""});return}r.set({isSearchInProgress:!0}),a.core.getResponseItems({searchTerm:a.searchTerm,mode:a.searchMode,sort:a.sortType,order_by:a.orderByField,facetPathsForIndexFields:a.facetPathsForIndexFields,rangeValueForIndexFields:a.rangeValueForIndexFields,offset:a.searchResultsPerPage?a.searchResultsPerPage*(a.searchResultsPage-1):0,limit:a.searchResultsPerPage},r.setSearchClientResponseItemsFromResponse,r.setAdClientResponseItems)},setAdClientResponseItems:a=>r.set({adClientResponseItems:a}),setSearchClientResponseItemsFromResponse:(a,o,n)=>{var p,m;const{facets:c,count:i=0,time_taken:u=0}=a.data,h=r.set(b=>({isSearchInProgress:!1,searchClientResponseItems:o,searchResponseTimeTaken:u,searchResultsPage:i===b.searchResultsCount?b.searchResultsPage:1,searchResultsCount:i,searchResponseFacetPrime:c,supplementalFacetPrime:n==null?void 0:n.data.facets}));(p=h.logger)==null||p.log(fe.DEBUG,`Search results: ${JSON.stringify(o)}`),(m=h.logger)==null||m.log(fe.DEBUG,`Facets from response: ${JSON.stringify(c)}`)},setInitialSearchClientResponseItemsFromResponse:(a,o)=>{var u;const n=t(),{count:c=0,time_taken:i=0}=a.data;r.set(h=>({isSearchInProgress:!1,initialSearchClientResponseItems:o,searchResponseTimeTaken:i,searchResultsPage:c===h.searchResultsCount?h.searchResultsPage:1,searchResultsCount:c})),(u=n.logger)==null||u.log(fe.DEBUG,`Search results: ${JSON.stringify(o)}`)},setInitialQuery:async a=>{var n;const o=r.set({initialQuery:a});if((n=o.logger)==null||n.log(fe.INFO,`Starting search with query: "${o.initialQuery}"`),!o.core)throw new Error("Searchcraft instance is not initialized.");await o.core.getResponseItems(a,r.setInitialSearchClientResponseItemsFromResponse,r.setAdClientResponseItems)},setPopoverVisibility:a=>r.set({isPopoverVisible:a}),setSearchMode:a=>r.set({searchMode:a}),setSortOrder:({orderByField:a,sortType:o})=>r.set({sortType:o,orderByField:a}),setSearchTerm:a=>{const{core:o}=t();a.length===0&&(o==null||o.handleInputCleared()),r.set({searchTerm:a,facetPathsForIndexFields:{},...a.trim().length===0&&{searchMode:"fuzzy",sortType:null,orderByField:null}})},setSearchClientResponseItems:a=>r.set({searchClientResponseItems:a}),setSearchResultsCount:a=>r.set({searchResultsCount:a}),setSearchResultsPage:async a=>{r.set({searchResultsPage:a}),await r.search()},setSearchResultsPerPage:async a=>{r.set({searchResultsPerPage:a}),await r.search()},setHotKeyAndHotKeyModifier:(a,o)=>{const{hotkey:n,hotkeyModifier:c}=fs;r.set({hotkey:a||n,hotkeyModifier:o||c})}};return{...fs,...r}});var ps={exports:{}};/*!
|
|
20
20
|
Copyright (c) 2018 Jed Watson.
|
|
21
21
|
Licensed under the MIT License (MIT), see
|
|
22
22
|
http://jedwatson.github.io/classnames
|
|
23
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",n=0;n<arguments.length;n++){var c=arguments[n];c&&(o=a(o,s(c)))}return o}function s(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var n="";for(var c in o)t.call(o,c)&&o[c]&&(n=a(n,c));return n}function a(o,n){return n?o?o+" "+n:o+n:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(ds);const oe=ds.exports;var Jn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fs={exports:{}};/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */(function(e,t){(function(r,s){e.exports=s()})(Jn,function(){const{entries:r,setPrototypeOf:s,isFrozen:a,getPrototypeOf:o,getOwnPropertyDescriptor:n}=Object;let{freeze:c,seal:u,create:h}=Object,{apply:i,construct:p}=typeof Reflect<"u"&&Reflect;c||(c=function(y){return y}),u||(u=function(y){return y}),i||(i=function(y,$,E){return y.apply($,E)}),p||(p=function(y,$){return new y(...$)});const g=X(Array.prototype.forEach),k=X(Array.prototype.lastIndexOf),b=X(Array.prototype.pop),P=X(Array.prototype.push),I=X(Array.prototype.splice),F=X(String.prototype.toLowerCase),T=X(String.prototype.toString),be=X(String.prototype.match),ce=X(String.prototype.replace),Ee=X(String.prototype.indexOf),U=X(String.prototype.trim),se=X(Object.prototype.hasOwnProperty),z=X(RegExp.prototype.test),Pe=Ec(TypeError);function X(x){return function(y){for(var $=arguments.length,E=new Array($>1?$-1:0),Y=1;Y<$;Y++)E[Y-1]=arguments[Y];return i(x,y,E)}}function Ec(x){return function(){for(var y=arguments.length,$=new Array(y),E=0;E<y;E++)$[E]=arguments[E];return p(x,$)}}function R(x,y){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:F;s&&s(x,null);let E=y.length;for(;E--;){let Y=y[E];if(typeof Y=="string"){const ye=$(Y);ye!==Y&&(a(y)||(y[E]=ye),Y=ye)}x[Y]=!0}return x}function Pc(x){for(let y=0;y<x.length;y++)se(x,y)||(x[y]=null);return x}function Te(x){const y=h(null);for(const[$,E]of r(x))se(x,$)&&(Array.isArray(E)?y[$]=Pc(E):E&&typeof E=="object"&&E.constructor===Object?y[$]=Te(E):y[$]=E);return y}function Ke(x,y){for(;x!==null;){const E=n(x,y);if(E){if(E.get)return X(E.get);if(typeof E.value=="function")return X(E.value)}x=o(x)}function $(){return null}return $}const Ls=c(["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"]),er=c(["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"]),tr=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Tc=c(["animate","color-profile","cursor","discard","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"]),rr=c(["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","mprescripts"]),$c=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Os=c(["#text"]),Fs=c(["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","popover","popovertarget","popovertargetaction","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","wrap","xmlns","slot"]),sr=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","slope","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","tablevalues","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"]),Ds=c(["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"]),yt=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),_c=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ic=u(/<%[\w\W]*|[\w\W]*%>/gm),Ac=u(/\$\{[\w\W]*/gm),Mc=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),Lc=u(/^aria-[\-\w]+$/),Hs=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Oc=u(/^(?:\w+script|data):/i),Fc=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ns=u(/^html$/i),Dc=u(/^[a-z][.\w]*(-[.\w]+)+$/i);var Us=Object.freeze({__proto__:null,ARIA_ATTR:Lc,ATTR_WHITESPACE:Fc,CUSTOM_ELEMENT:Dc,DATA_ATTR:Mc,DOCTYPE_NAME:Ns,ERB_EXPR:Ic,IS_ALLOWED_URI:Hs,IS_SCRIPT_OR_DATA:Oc,MUSTACHE_EXPR:_c,TMPLIT_EXPR:Ac});const Xe={element:1,text:3,progressingInstruction:7,comment:8,document:9},Hc=function(){return typeof window>"u"?null:window},Nc=function(y,$){if(typeof y!="object"||typeof y.createPolicy!="function")return null;let E=null;const Y="data-tt-policy-suffix";$&&$.hasAttribute(Y)&&(E=$.getAttribute(Y));const ye="dompurify"+(E?"#"+E:"");try{return y.createPolicy(ye,{createHTML(De){return De},createScriptURL(De){return De}})}catch{return console.warn("TrustedTypes policy "+ye+" could not be created."),null}},zs=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function js(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hc();const y=S=>js(S);if(y.version="3.2.4",y.removed=[],!x||!x.document||x.document.nodeType!==Xe.document||!x.Element)return y.isSupported=!1,y;let{document:$}=x;const E=$,Y=E.currentScript,{DocumentFragment:ye,HTMLTemplateElement:De,Node:ar,Element:Vs,NodeFilter:Je,NamedNodeMap:zc=x.NamedNodeMap||x.MozNamedAttrMap,HTMLFormElement:jc,DOMParser:Vc,trustedTypes:St}=x,et=Vs.prototype,Bc=Ke(et,"cloneNode"),Wc=Ke(et,"remove"),Gc=Ke(et,"nextSibling"),qc=Ke(et,"childNodes"),Ct=Ke(et,"parentNode");if(typeof De=="function"){const S=$.createElement("template");S.content&&S.content.ownerDocument&&($=S.content.ownerDocument)}let J,tt="";const{implementation:nr,createNodeIterator:Yc,createDocumentFragment:Zc,getElementsByTagName:Qc}=$,{importNode:Kc}=E;let ee=zs();y.isSupported=typeof r=="function"&&typeof Ct=="function"&&nr&&nr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:or,ERB_EXPR:cr,TMPLIT_EXPR:ir,DATA_ATTR:Xc,ARIA_ATTR:Jc,IS_SCRIPT_OR_DATA:ei,ATTR_WHITESPACE:Bs,CUSTOM_ELEMENT:ti}=Us;let{IS_ALLOWED_URI:Ws}=Us,j=null;const Gs=R({},[...Ls,...er,...tr,...rr,...Os]);let W=null;const qs=R({},[...Fs,...sr,...Ds,...yt]);let N=Object.seal(h(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}})),rt=null,lr=null,Ys=!0,ur=!0,Zs=!1,Qs=!0,He=!1,hr=!0,$e=!1,dr=!1,fr=!1,Ne=!1,kt=!1,wt=!1,Ks=!0,Xs=!1;const ri="user-content-";let pr=!0,st=!1,Ue={},ze=null;const Js=R({},["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"]);let ea=null;const ta=R({},["audio","video","img","source","image","track"]);let mr=null;const ra=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rt="http://www.w3.org/1998/Math/MathML",xt="http://www.w3.org/2000/svg",Se="http://www.w3.org/1999/xhtml";let je=Se,gr=!1,vr=null;const si=R({},[Rt,xt,Se],T);let Et=R({},["mi","mo","mn","ms","mtext"]),Pt=R({},["annotation-xml"]);const ai=R({},["title","style","font","a","script"]);let at=null;const ni=["application/xhtml+xml","text/html"],oi="text/html";let V=null,Ve=null;const ci=$.createElement("form"),sa=function(d){return d instanceof RegExp||d instanceof Function},br=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ve&&Ve===d)){if((!d||typeof d!="object")&&(d={}),d=Te(d),at=ni.indexOf(d.PARSER_MEDIA_TYPE)===-1?oi:d.PARSER_MEDIA_TYPE,V=at==="application/xhtml+xml"?T:F,j=se(d,"ALLOWED_TAGS")?R({},d.ALLOWED_TAGS,V):Gs,W=se(d,"ALLOWED_ATTR")?R({},d.ALLOWED_ATTR,V):qs,vr=se(d,"ALLOWED_NAMESPACES")?R({},d.ALLOWED_NAMESPACES,T):si,mr=se(d,"ADD_URI_SAFE_ATTR")?R(Te(ra),d.ADD_URI_SAFE_ATTR,V):ra,ea=se(d,"ADD_DATA_URI_TAGS")?R(Te(ta),d.ADD_DATA_URI_TAGS,V):ta,ze=se(d,"FORBID_CONTENTS")?R({},d.FORBID_CONTENTS,V):Js,rt=se(d,"FORBID_TAGS")?R({},d.FORBID_TAGS,V):{},lr=se(d,"FORBID_ATTR")?R({},d.FORBID_ATTR,V):{},Ue=se(d,"USE_PROFILES")?d.USE_PROFILES:!1,Ys=d.ALLOW_ARIA_ATTR!==!1,ur=d.ALLOW_DATA_ATTR!==!1,Zs=d.ALLOW_UNKNOWN_PROTOCOLS||!1,Qs=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,He=d.SAFE_FOR_TEMPLATES||!1,hr=d.SAFE_FOR_XML!==!1,$e=d.WHOLE_DOCUMENT||!1,Ne=d.RETURN_DOM||!1,kt=d.RETURN_DOM_FRAGMENT||!1,wt=d.RETURN_TRUSTED_TYPE||!1,fr=d.FORCE_BODY||!1,Ks=d.SANITIZE_DOM!==!1,Xs=d.SANITIZE_NAMED_PROPS||!1,pr=d.KEEP_CONTENT!==!1,st=d.IN_PLACE||!1,Ws=d.ALLOWED_URI_REGEXP||Hs,je=d.NAMESPACE||Se,Et=d.MATHML_TEXT_INTEGRATION_POINTS||Et,Pt=d.HTML_INTEGRATION_POINTS||Pt,N=d.CUSTOM_ELEMENT_HANDLING||{},d.CUSTOM_ELEMENT_HANDLING&&sa(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(N.tagNameCheck=d.CUSTOM_ELEMENT_HANDLING.tagNameCheck),d.CUSTOM_ELEMENT_HANDLING&&sa(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(N.attributeNameCheck=d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),d.CUSTOM_ELEMENT_HANDLING&&typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(N.allowCustomizedBuiltInElements=d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),He&&(ur=!1),kt&&(Ne=!0),Ue&&(j=R({},Os),W=[],Ue.html===!0&&(R(j,Ls),R(W,Fs)),Ue.svg===!0&&(R(j,er),R(W,sr),R(W,yt)),Ue.svgFilters===!0&&(R(j,tr),R(W,sr),R(W,yt)),Ue.mathMl===!0&&(R(j,rr),R(W,Ds),R(W,yt))),d.ADD_TAGS&&(j===Gs&&(j=Te(j)),R(j,d.ADD_TAGS,V)),d.ADD_ATTR&&(W===qs&&(W=Te(W)),R(W,d.ADD_ATTR,V)),d.ADD_URI_SAFE_ATTR&&R(mr,d.ADD_URI_SAFE_ATTR,V),d.FORBID_CONTENTS&&(ze===Js&&(ze=Te(ze)),R(ze,d.FORBID_CONTENTS,V)),pr&&(j["#text"]=!0),$e&&R(j,["html","head","body"]),j.table&&(R(j,["tbody"]),delete rt.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw Pe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Pe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=d.TRUSTED_TYPES_POLICY,tt=J.createHTML("")}else J===void 0&&(J=Nc(St,Y)),J!==null&&typeof tt=="string"&&(tt=J.createHTML(""));c&&c(d),Ve=d}},aa=R({},[...er,...tr,...Tc]),na=R({},[...rr,...$c]),ii=function(d){let m=Ct(d);(!m||!m.tagName)&&(m={namespaceURI:je,tagName:"template"});const v=F(d.tagName),M=F(m.tagName);return vr[d.namespaceURI]?d.namespaceURI===xt?m.namespaceURI===Se?v==="svg":m.namespaceURI===Rt?v==="svg"&&(M==="annotation-xml"||Et[M]):!!aa[v]:d.namespaceURI===Rt?m.namespaceURI===Se?v==="math":m.namespaceURI===xt?v==="math"&&Pt[M]:!!na[v]:d.namespaceURI===Se?m.namespaceURI===xt&&!Pt[M]||m.namespaceURI===Rt&&!Et[M]?!1:!na[v]&&(ai[v]||!aa[v]):!!(at==="application/xhtml+xml"&&vr[d.namespaceURI]):!1},ue=function(d){P(y.removed,{element:d});try{Ct(d).removeChild(d)}catch{Wc(d)}},Tt=function(d,m){try{P(y.removed,{attribute:m.getAttributeNode(d),from:m})}catch{P(y.removed,{attribute:null,from:m})}if(m.removeAttribute(d),d==="is")if(Ne||kt)try{ue(m)}catch{}else try{m.setAttribute(d,"")}catch{}},oa=function(d){let m=null,v=null;if(fr)d="<remove></remove>"+d;else{const G=be(d,/^[\r\n\t ]+/);v=G&&G[0]}at==="application/xhtml+xml"&&je===Se&&(d='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+d+"</body></html>");const M=J?J.createHTML(d):d;if(je===Se)try{m=new Vc().parseFromString(M,at)}catch{}if(!m||!m.documentElement){m=nr.createDocument(je,"template",null);try{m.documentElement.innerHTML=gr?tt:M}catch{}}const Z=m.body||m.documentElement;return d&&v&&Z.insertBefore($.createTextNode(v),Z.childNodes[0]||null),je===Se?Qc.call(m,$e?"html":"body")[0]:$e?m.documentElement:Z},ca=function(d){return Yc.call(d.ownerDocument||d,d,Je.SHOW_ELEMENT|Je.SHOW_COMMENT|Je.SHOW_TEXT|Je.SHOW_PROCESSING_INSTRUCTION|Je.SHOW_CDATA_SECTION,null)},yr=function(d){return d instanceof jc&&(typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||!(d.attributes instanceof zc)||typeof d.removeAttribute!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function")},ia=function(d){return typeof ar=="function"&&d instanceof ar};function Ce(S,d,m){g(S,v=>{v.call(y,d,m,Ve)})}const la=function(d){let m=null;if(Ce(ee.beforeSanitizeElements,d,null),yr(d))return ue(d),!0;const v=V(d.nodeName);if(Ce(ee.uponSanitizeElement,d,{tagName:v,allowedTags:j}),d.hasChildNodes()&&!ia(d.firstElementChild)&&z(/<[/\w]/g,d.innerHTML)&&z(/<[/\w]/g,d.textContent)||d.nodeType===Xe.progressingInstruction||hr&&d.nodeType===Xe.comment&&z(/<[/\w]/g,d.data))return ue(d),!0;if(!j[v]||rt[v]){if(!rt[v]&&ha(v)&&(N.tagNameCheck instanceof RegExp&&z(N.tagNameCheck,v)||N.tagNameCheck instanceof Function&&N.tagNameCheck(v)))return!1;if(pr&&!ze[v]){const M=Ct(d)||d.parentNode,Z=qc(d)||d.childNodes;if(Z&&M){const G=Z.length;for(let ae=G-1;ae>=0;--ae){const he=Bc(Z[ae],!0);he.__removalCount=(d.__removalCount||0)+1,M.insertBefore(he,Gc(d))}}}return ue(d),!0}return d instanceof Vs&&!ii(d)||(v==="noscript"||v==="noembed"||v==="noframes")&&z(/<\/no(script|embed|frames)/i,d.innerHTML)?(ue(d),!0):(He&&d.nodeType===Xe.text&&(m=d.textContent,g([or,cr,ir],M=>{m=ce(m,M," ")}),d.textContent!==m&&(P(y.removed,{element:d.cloneNode()}),d.textContent=m)),Ce(ee.afterSanitizeElements,d,null),!1)},ua=function(d,m,v){if(Ks&&(m==="id"||m==="name")&&(v in $||v in ci))return!1;if(!(ur&&!lr[m]&&z(Xc,m))){if(!(Ys&&z(Jc,m))){if(!W[m]||lr[m]){if(!(ha(d)&&(N.tagNameCheck instanceof RegExp&&z(N.tagNameCheck,d)||N.tagNameCheck instanceof Function&&N.tagNameCheck(d))&&(N.attributeNameCheck instanceof RegExp&&z(N.attributeNameCheck,m)||N.attributeNameCheck instanceof Function&&N.attributeNameCheck(m))||m==="is"&&N.allowCustomizedBuiltInElements&&(N.tagNameCheck instanceof RegExp&&z(N.tagNameCheck,v)||N.tagNameCheck instanceof Function&&N.tagNameCheck(v))))return!1}else if(!mr[m]){if(!z(Ws,ce(v,Bs,""))){if(!((m==="src"||m==="xlink:href"||m==="href")&&d!=="script"&&Ee(v,"data:")===0&&ea[d])){if(!(Zs&&!z(ei,ce(v,Bs,"")))){if(v)return!1}}}}}}return!0},ha=function(d){return d!=="annotation-xml"&&be(d,ti)},da=function(d){Ce(ee.beforeSanitizeAttributes,d,null);const{attributes:m}=d;if(!m||yr(d))return;const v={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let M=m.length;for(;M--;){const Z=m[M],{name:G,namespaceURI:ae,value:he}=Z,nt=V(G);let te=G==="value"?he:U(he);if(v.attrName=nt,v.attrValue=te,v.keepAttr=!0,v.forceKeepAttr=void 0,Ce(ee.uponSanitizeAttribute,d,v),te=v.attrValue,Xs&&(nt==="id"||nt==="name")&&(Tt(G,d),te=ri+te),hr&&z(/((--!?|])>)|<\/(style|title)/i,te)){Tt(G,d);continue}if(v.forceKeepAttr||(Tt(G,d),!v.keepAttr))continue;if(!Qs&&z(/\/>/i,te)){Tt(G,d);continue}He&&g([or,cr,ir],pa=>{te=ce(te,pa," ")});const fa=V(d.nodeName);if(ua(fa,nt,te)){if(J&&typeof St=="object"&&typeof St.getAttributeType=="function"&&!ae)switch(St.getAttributeType(fa,nt)){case"TrustedHTML":{te=J.createHTML(te);break}case"TrustedScriptURL":{te=J.createScriptURL(te);break}}try{ae?d.setAttributeNS(ae,G,te):d.setAttribute(G,te),yr(d)?ue(d):b(y.removed)}catch{}}}Ce(ee.afterSanitizeAttributes,d,null)},li=function S(d){let m=null;const v=ca(d);for(Ce(ee.beforeSanitizeShadowDOM,d,null);m=v.nextNode();)Ce(ee.uponSanitizeShadowNode,m,null),la(m),da(m),m.content instanceof ye&&S(m.content);Ce(ee.afterSanitizeShadowDOM,d,null)};return y.sanitize=function(S){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=null,v=null,M=null,Z=null;if(gr=!S,gr&&(S="<!-->"),typeof S!="string"&&!ia(S))if(typeof S.toString=="function"){if(S=S.toString(),typeof S!="string")throw Pe("dirty is not a string, aborting")}else throw Pe("toString is not a function");if(!y.isSupported)return S;if(dr||br(d),y.removed=[],typeof S=="string"&&(st=!1),st){if(S.nodeName){const he=V(S.nodeName);if(!j[he]||rt[he])throw Pe("root node is forbidden and cannot be sanitized in-place")}}else if(S instanceof ar)m=oa("<!---->"),v=m.ownerDocument.importNode(S,!0),v.nodeType===Xe.element&&v.nodeName==="BODY"||v.nodeName==="HTML"?m=v:m.appendChild(v);else{if(!Ne&&!He&&!$e&&S.indexOf("<")===-1)return J&&wt?J.createHTML(S):S;if(m=oa(S),!m)return Ne?null:wt?tt:""}m&&fr&&ue(m.firstChild);const G=ca(st?S:m);for(;M=G.nextNode();)la(M),da(M),M.content instanceof ye&&li(M.content);if(st)return S;if(Ne){if(kt)for(Z=Zc.call(m.ownerDocument);m.firstChild;)Z.appendChild(m.firstChild);else Z=m;return(W.shadowroot||W.shadowrootmode)&&(Z=Kc.call(E,Z,!0)),Z}let ae=$e?m.outerHTML:m.innerHTML;return $e&&j["!doctype"]&&m.ownerDocument&&m.ownerDocument.doctype&&m.ownerDocument.doctype.name&&z(Ns,m.ownerDocument.doctype.name)&&(ae="<!DOCTYPE "+m.ownerDocument.doctype.name+`>
|
|
24
|
-
`+ae),He&&g([or,cr,ir],he=>{ae=ce(ae,he," ")}),J&&wt?J.createHTML(ae):ae},y.setConfig=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};br(S),dr=!0},y.clearConfig=function(){Ve=null,dr=!1},y.isValidAttribute=function(S,d,m){Ve||br({});const v=V(S),M=V(d);return ua(v,M,m)},y.addHook=function(S,d){typeof d=="function"&&P(ee[S],d)},y.removeHook=function(S,d){if(d!==void 0){const m=k(ee[S],d);return m===-1?void 0:I(ee[S],m,1)[0]}return b(ee[S])},y.removeHooks=function(S){ee[S]=[]},y.removeAllHooks=function(){ee=zs()},y}var Uc=js();return Uc})})(fs);const eo=fs.exports,Ye=(e,...t)=>{let r=e[0];for(let s=0;s<t.length;s++)r+=eo.sanitize(t[s]?String(t[s]):"")+e[s+1];return r||""},to="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let K=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=to[r[e]&63];return t};const ro=H(class extends D{constructor(){super();f(this,"adSource","Custom");f(this,"adClientResponseItem");f(this,"adContainerId",K());f(this,"searchTerm");f(this,"isSearchInProgress",!1);f(this,"core");f(this,"intersectionObserver");f(this,"storeUnsubscribe");f(this,"adContainerRenderedTimeout");f(this,"isComponentConnected",!0);this.__registerHost()}get hostElement(){return this}connectedCallback(){const r=_.getState();this.core=r.core,this.searchTerm=r.searchTerm,this.isSearchInProgress=r.isSearchInProgress,this.storeUnsubscribe=_.subscribe(s=>{this.searchTerm=s.searchTerm,this.isSearchInProgress=s.isSearchInProgress})}componentDidLoad(){this.hostElement&&(this.intersectionObserver=new IntersectionObserver(([r])=>{var s;r!=null&&r.isIntersecting&&!this.isSearchInProgress&&((s=this.core)==null||s.handleAdContainerViewed({adClientResponseItem:this.adClientResponseItem,adContainerId:this.adContainerId,adSource:this.adSource,searchTerm:this.searchTerm||""}))},{threshold:0}),this.intersectionObserver.observe(this.hostElement))}disconnectedCallback(){var r,s;(r=this.storeUnsubscribe)==null||r.call(this),(s=this.intersectionObserver)==null||s.disconnect(),this.isComponentConnected=!1,clearTimeout(this.adContainerRenderedTimeout)}renderADMAd(){var a,o,n,c;const r=this.adClientResponseItem;if(!r.admAd)return;let s="<p>Ad Marketplace Ad Placeholder</p>";return(o=(a=this.core)==null?void 0:a.config)!=null&&o.admAdTemplate&&(s=(c=(n=this.core)==null?void 0:n.config)==null?void 0:c.admAdTemplate(r.admAd,{html:Ye})),l("div",{class:"searchcraft-ad searchcraft-adm-ad","data-searchcraft-ad-container-id":this.adContainerId,id:`searchcraft-adm-ad-${this.adContainerId}`,innerHTML:s})}renderCustomAd(){var o,n;const r=(n=(o=this.core)==null?void 0:o.config)==null?void 0:n.customAdTemplate,s=`searchcraft-custom-ad-${this.adContainerId}`;let a="<p>Custom Ad Placeholder</p>";return r&&(a=r({searchTerm:this.searchTerm||"",adContainerId:this.adContainerId},{html:Ye})),l("div",{class:"searchcraft-ad searchcraft-custom-ad",id:s,"data-searchcraft-ad-container-id":this.adContainerId,innerHTML:a})}renderNativoAd(){var s;const r=((s=this.core)==null?void 0:s.config.nativoAdClassName)||"ntv-item";return l("div",{id:`searchcraft-native-ad-${this.adContainerId}`,class:oe("searchcraft-ad",r),"data-searchcraft-ad-container-id":this.adContainerId})}render(){var r,s;if(!this.isSearchInProgress)switch(this.isComponentConnected&&(clearTimeout(this.adContainerRenderedTimeout),this.adContainerRenderedTimeout=setTimeout(()=>{var a;(a=this.core)==null||a.handleAdContainerRendered({adClientResponseItem:this.adClientResponseItem,adContainerId:this.adContainerId,adSource:this.adSource,searchTerm:this.searchTerm||""})},((s=(r=this.core)==null?void 0:r.config)==null?void 0:s.adContainerRenderedDebounceDelay)||500)),this.adSource){case"adMarketplace":return this.renderADMAd();case"Custom":return this.renderCustomAd();case"Nativo":return this.renderNativoAd();default:return}}},[0,"searchcraft-ad",{adSource:[1,"ad-source"],adClientResponseItem:[16],adContainerId:[1,"ad-container-id"],searchTerm:[32],isSearchInProgress:[32]}]);function gt(){if(typeof customElements>"u")return;["searchcraft-ad"].forEach(t=>{switch(t){case"searchcraft-ad":customElements.get(t)||customElements.define(t,ro);break}})}const so=gt,ao=H(class extends D{constructor(){super();f(this,"hierarchy","primary");f(this,"disabled",!1);f(this,"icon");f(this,"iconOnly",!1);f(this,"iconPosition","left");f(this,"label","Search");f(this,"type","button");f(this,"buttonClick");f(this,"handleButtonClick",()=>{this.buttonClick.emit()});this.__registerHost(),this.buttonClick=we(this,"buttonClick")}render(){return l("button",{key:"e54b4566e0286265bc0c8b6bb4e9ef26108575da","aria-label":this.label,class:oe("searchcraft-button",{"searchcraft-button-primary":this.hierarchy==="primary","searchcraft-button-tertiary":this.hierarchy==="tertiary","searchcraft-button-disabled":this.disabled}),disabled:this.disabled,onClick:this.handleButtonClick,type:this.type},this.iconOnly?this.icon:l(tn,null,this.iconPosition==="left"&&this.icon,l("span",null,this.label),this.iconPosition==="right"&&this.icon))}},[0,"searchcraft-button",{hierarchy:[1],disabled:[4],icon:[16],iconOnly:[4,"icon-only"],iconPosition:[1,"icon-position"],label:[1],type:[1]}]);function vt(){if(typeof customElements>"u")return;["searchcraft-button"].forEach(t=>{switch(t){case"searchcraft-button":customElements.get(t)||customElements.define(t,ao);break}})}const no=vt,oo=H(class extends D{constructor(){super(),this.__registerHost()}render(){return l("div",{key:"d42f7abf8dfb2620622b8012d868d32f04b2f354",class:"searchcraft-error-message"},l("slot",{key:"75a7811576ea8afe80a7ae739f5cf2d411f976df"},"Search term is required."))}},[4,"searchcraft-error-message"]);function bt(){if(typeof customElements>"u")return;["searchcraft-error-message"].forEach(t=>{switch(t){case"searchcraft-error-message":customElements.get(t)||customElements.define(t,oo);break}})}const co=bt;function ps(e,t){const r={...e};for(const s in t)t.hasOwnProperty(s)&&(t[s]instanceof Object&&e[s]instanceof Object?r[s]=ps(e[s],t[s]):r[s]=t[s]);return r}function io(e){return e.filter((t,r,s)=>!s.some((a,o)=>o!==r&&a.includes(t)))}function ms(e){const t={},r=s=>{var a;t[s.path]={count:s.count,path:s.path},(a=s.children)==null||a.forEach(o=>{r(o)})};return r(e),t}function lo(e){const t={count:0,path:"/",children:{}};return Object.keys(e).forEach(r=>{const s=e[r];if(!s||s.path==="/")return;const a=s.path.substring(1).split("/");let o=t,n="";a.forEach((c,u)=>{const h=`${n}/${c}`;o.children[h]||(o.children[h]={count:0,path:h,children:{}}),u===a.length-1&&(o.children[h].count=s.count),n=h,o=o.children[h]})}),t}function gs(e){const t={count:e.count,path:e.path,children:[]};return Object.keys(e.children).length>0&&(t.children=Object.values(e.children).map(r=>gs(r))),t}function uo(e,t){const r=Object.keys(e),s=Object.keys(t),a=new Set(s.filter(n=>n.split("/").length>2).map(n=>n.substring(0,n.lastIndexOf("/"))));return Object.fromEntries(r.filter(n=>!a.has(n.substring(0,n.lastIndexOf("/")))).map(n=>[n,e[n]]))}function ho(e,t,r){const s=t[e],a=r[e],o={count:0,path:"/",children:s},n={count:0,path:"/",children:a},c=ms(o),u=ms(n),h=uo(c,u),i=ps(h,u),p=lo(i),g=gs(p);return{[e]:g.children}}const fo=H(class extends D{constructor(){super();f(this,"fieldName","");f(this,"facetSelectionUpdated");f(this,"baseFacetRoot");f(this,"facetRoot");f(this,"selectedPaths",{});f(this,"lastTimeTaken");f(this,"hasNewSearchTerm",!1);f(this,"lastSearchTerm");f(this,"lastSearchMode");f(this,"lastSortType");f(this,"unsubscribe");f(this,"searchStore",_.getState());f(this,"formatLabel",r=>{const s=r.path.replace(/^\//,""),a=r.count;return`${s.replace(/-/g," ").replace(/\b\w/g,o=>o.toUpperCase())} (${a})`});f(this,"formatSubLabel",(r,s)=>{const o=r.path.substring(s.path.length).replace(/^\//,""),n=r.count;return`${o.replace(/-/g," ").replace(/\b\w/g,c=>c.toUpperCase())} (${n})`});this.__registerHost(),this.facetSelectionUpdated=we(this,"facetSelectionUpdated")}handleStateUpdate(r){const s=r.searchResponseFacetPrime,a=r.searchResponseTimeTaken;if(this.fieldName){if(r.searchTerm||(this.facetRoot=void 0),(r.searchTerm!==this.lastSearchTerm||r.searchMode!==this.lastSearchMode)&&(this.selectedPaths={},this.hasNewSearchTerm=!0),a!==this.lastTimeTaken&&s){this.facetRoot=void 0;const o=s.find(n=>this.fieldName===Object.keys(n)[0]);this.hasNewSearchTerm?(this.baseFacetRoot=o,this.facetRoot=o,this.hasNewSearchTerm=!1):this.baseFacetRoot&&o&&(this.facetRoot=ho(this.fieldName,this.baseFacetRoot,o))}else!s&&Object.keys(this.selectedPaths).length===0&&(this.facetRoot=void 0);this.lastSearchTerm=r.searchTerm,this.lastSearchMode=r.searchMode,this.lastSortType=r.sortType,this.lastTimeTaken=a}}connectedCallback(){this.handleStateUpdate(this.searchStore),this.unsubscribe=_.subscribe(r=>{this.handleStateUpdate(r)})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}handleCheckboxChange(r){var n;if(!this.selectedPaths[r])this.selectedPaths={...this.selectedPaths,[r]:!0};else{const c=Object.keys(this.selectedPaths).filter(u=>!u.includes(r));this.selectedPaths=c.reduce((u,h)=>(u[h]=!0,u),{})}const a=Object.keys(this.selectedPaths).filter(c=>this.selectedPaths[c]),o=io(a);(n=this.facetSelectionUpdated)==null||n.emit({paths:o})}render(){var s;if(!this.fieldName)return;const r=(s=this.facetRoot)==null?void 0:s[this.fieldName];return l("div",{class:"searchcraft-facet-list"},!r&&l("p",{class:"searchcraft-facet-list-message"},"Enter a search to view facets."),r==null?void 0:r.map(a=>{var n;const o=a.children?(n=a.children)==null?void 0:n.some(c=>this.selectedPaths[c.path]):!1;return l("div",{key:a.path,class:"searchcraft-facet-list-item"},l("label",{class:"searchcraft-facet-list-checkbox-label"},l("div",{class:"searchcraft-facet-list-checkbox-input-wrapper"},l("input",{class:"searchcraft-facet-list-checkbox-input",checked:this.selectedPaths[a.path],onChange:c=>this.handleCheckboxChange(a.path),type:"checkbox"}),o?l("div",{class:"searchcraft-facet-list-checkbox-input-dash-icon"},l("svg",{width:"14",height:"3",viewBox:"0 0 14 3",fill:"none"},l("title",null,"Checkbox dash"),l("line",{x1:"1.5",y1:"1.5",x2:"12.5",y2:"1.5",stroke:"white","stroke-width":"3","stroke-linecap":"round"}))):l("div",{class:"searchcraft-facet-list-checkbox-input-check-icon"},l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},l("title",null,"Checkbox check"),l("path",{d:"M13.9999 2L5.74988 10L1.99988 6.36364",stroke:"white","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"})))),this.formatLabel(a)),a.children&&a.children.length>0&&l("div",{class:"searchcraft-facet-child-list"},a.children.map(c=>l("label",{key:c.path,class:"searchcraft-facet-list-checkbox-label searchcraft-facet-child-list-checkbox-label",style:{display:this.selectedPaths[a.path]?"flex":"none"}},l("div",{class:"searchcraft-facet-list-checkbox-input-wrapper searchcraft-facet-child-list-checkbox-input-wrapper"},l("input",{class:"searchcraft-facet-list-checkbox-input searchcraft-facet-child-list-checkbox-input",checked:this.selectedPaths[c.path],onChange:u=>{this.handleCheckboxChange(c.path)},type:"checkbox"}),l("div",{class:"searchcraft-facet-list-checkbox-input-check-icon searchcraft-facet-child-list-checkbox-input-check-icon"},l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},l("title",null,"Checkbox check"),l("path",{d:"M13.9999 2L5.74988 10L1.99988 6.36364",stroke:"white","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"})))),this.formatSubLabel(c,a)))))}))}},[0,"searchcraft-facet-list",{fieldName:[1,"field-name"],baseFacetRoot:[32],facetRoot:[32],selectedPaths:[32],lastTimeTaken:[32]}]);function vs(){if(typeof customElements>"u")return;["searchcraft-facet-list"].forEach(t=>{switch(t){case"searchcraft-facet-list":customElements.get(t)||customElements.define(t,fo);break}})}const po=vs;function Ze(e,t){if(e&&t)return t.fieldNames.map(r=>{let s=e[r.fieldName];if(s)switch(r.dataType){case"date":{s=mo(s,r.dateFormatLocale,r.dateFormatOptions);break}case"number":{s=Intl.NumberFormat(r.numberFormatLocale,r.numberFormatOptions).format(s*(r.numberScale||1));break}}return s}).filter(r=>!!r).join(t.delimiter||" ")}function bs(e){switch(e){case"hour":return 36e5;case"day":return 864e5;case"month":return 2592e6;case"year":return 31536e6;default:return 36e5}}function ys(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function mo(e,t="en-US",r={day:"numeric",month:"long",year:"numeric"}){const s=new Date(e),o=new Date().getTime()-s.getTime(),n=30*24*60*60*1e3;if(o<n){const c=Math.trunc(o/1e3),u=Math.trunc(c/60),h=Math.trunc(u/60),i=Math.trunc(h/24),p=new Intl.RelativeTimeFormat(t,r);return i>=1?p.format(-i,"day"):h>=1?p.format(-h,"hour"):u>=1?p.format(-u,"minute"):p.format(0,"second")}return new Intl.DateTimeFormat(t,r).format(s)}const go=H(class extends D{constructor(){super();f(this,"max",100);f(this,"min",0);f(this,"granularity",bs("month"));f(this,"dataType","number");f(this,"endValue",this.max);f(this,"startValue",this.min);f(this,"lastFocusedHandle","max");f(this,"rangeChanged");f(this,"emitUpdate",async()=>{var r;(r=this.rangeChanged)==null||r.emit({startValue:this.startValue,endValue:this.endValue})});f(this,"handleStartValueChange",r=>{const s=r.target,a=Number.parseInt(s.value,10);this.lastFocusedHandle="min",a<=this.endValue?(this.startValue=a,this.emitUpdate()):(this.startValue=this.endValue,s.value=`${this.endValue}`)});f(this,"handleEndValueChange",r=>{const s=r.target,a=Number.parseInt(s.value,10);this.lastFocusedHandle="max",a>=this.startValue?(this.endValue=a,this.emitUpdate()):(this.endValue=this.startValue,s.value=`${this.startValue}`)});this.__registerHost(),this.rangeChanged=we(this,"rangeChanged")}componentDidLoad(){this.startValue=this.min,this.endValue=this.max}render(){const r=this.min,s=this.max,a=(this.startValue-r)/(s-r)*100,o=(this.endValue-r)/(s-r)*100,n=this.dataType==="number"?this.startValue:new Date(this.startValue).getFullYear(),c=this.dataType==="number"?this.endValue:new Date(this.endValue).getFullYear();return l("div",{key:"9225b18ce2f40246837d183fcefdd0be7cc22383",class:"searchcraft-slider"},l("div",{key:"8078c1eda2ceb781282f59216915896fdbe2a8d3",class:"searchcraft-slider-range"},l("div",{key:"6a6bafa9f7abf41ab24f020cd291a4a08c618afb",class:"searchcraft-slider-active-range",style:{left:`${a}%`,width:`${o-a}%`}}),l("input",{key:"f07a91d441d277b8e9eba34e39093393a44bbf53",class:oe("searchcraft-slider-input","searchcraft-slider-input-min-handle"),max:this.max,min:this.min,onInput:this.handleStartValueChange.bind(this),step:this.granularity,style:{zIndex:this.lastFocusedHandle==="min"?"2":"1"},type:"range",value:this.startValue}),l("input",{key:"0637ea5fe123abe1d77c540b347c78fc8ad3d281",class:oe("searchcraft-slider-input","searchcraft-slider-input-max-handle"),max:this.max,min:this.min,onInput:this.handleEndValueChange.bind(this),step:this.granularity,style:{zIndex:this.lastFocusedHandle==="max"?"2":"1"},type:"range",value:this.endValue})),l("div",{key:"b62f8d8485915dddefb7ca29f62b4a96d70470c5",class:"searchcraft-slider-label"},l("span",{key:"fd5d32172ce53d93b858ca54c17b12b80fcdde1d",class:"searchcraft-slider-start-label"},n),l("span",{key:"8f4d230b78fb8d896a469f17ade3a3fd3162b427",class:"searchcraft-slider-end-label"},c)))}},[0,"searchcraft-slider",{max:[2],min:[2],granularity:[2],dataType:[1,"data-type"],endValue:[32],startValue:[32],lastFocusedHandle:[32]}]);function Ss(){if(typeof customElements>"u")return;["searchcraft-slider"].forEach(t=>{switch(t){case"searchcraft-slider":customElements.get(t)||customElements.define(t,go);break}})}const vo=H(class extends D{constructor(){super();f(this,"label","Toggle");f(this,"subLabel");f(this,"toggleUpdated");f(this,"isActive",!1);f(this,"unsubscribe");f(this,"lastSearchTerm");f(this,"handleToggle",async()=>{var r;this.isActive=!this.isActive,(r=this.toggleUpdated)==null||r.emit(this.isActive)});this.__registerHost(),this.toggleUpdated=we(this,"toggleUpdated")}connectedCallback(){this.unsubscribe=_.subscribe(r=>{r.searchTerm!==this.lastSearchTerm&&r.searchTerm.trim().length===0&&(this.isActive=!1),this.lastSearchTerm=r.searchTerm})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}render(){return l("div",{key:"f8a751315daf6bcdc0d47bc4fc802bc4615e565f",class:oe("searchcraft-toggle-button",{"searchcraft-toggle-button-active":this.isActive})},l("div",{key:"aaa92d7c1aebe241a163a1fba7cd1f8d3804286d"},l("p",{key:"068b82b17a99bf55ad17818d0dd4c7e95858317b",class:"searchcraft-toggle-button-label"},this.label),this.subLabel&&l("p",{key:"39e43e3fad6a2ab09d20f37c6d6865cede3701d9",class:"searchcraft-toggle-button-sub-label"},this.subLabel)),l("button",{key:"5ae352870d4a01c430389e75b967b2eb9d3fa5f7",class:"searchcraft-toggle-button-background",onClick:this.handleToggle,type:"button"},l("div",{key:"0574ade4e1681ce8e122039c40e761cb68555621",class:"searchcraft-toggle-button-handle"})))}},[0,"searchcraft-toggle-button",{label:[1],subLabel:[1,"sub-label"],isActive:[32],unsubscribe:[32],lastSearchTerm:[32]}]);function Cs(){if(typeof customElements>"u")return;["searchcraft-toggle-button"].forEach(t=>{switch(t){case"searchcraft-toggle-button":customElements.get(t)||customElements.define(t,vo);break}})}const bo=H(class extends D{constructor(){super();f(this,"items",[]);f(this,"unsubscribe");f(this,"lastSearchTerm");f(this,"searchStore",_.getState());this.__registerHost()}componentDidLoad(){this.unsubscribe=_.subscribe(r=>{this.lastSearchTerm=r.searchTerm||""})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}handleDateRangeChanged(r,s,a){const o=new Date(new Date(s).getFullYear(),0,1),n=new Date(new Date(a).getFullYear()+1,0,0);this.searchStore.addRangeValueForIndexField({fieldName:r,value:`${r}:[${o.toISOString()} TO ${n.toISOString()}]`}),this.searchStore.search()}handleNumericRangeChanged(r,s,a){this.searchStore.addRangeValueForIndexField({fieldName:r,value:`${r}:[${s} TO ${a}]`}),this.searchStore.search()}handleFacetSelectionUpdated(r,s){s.length>0?this.searchStore.addFacetPathsForIndexField({fieldName:r,value:`${r}: IN [${s.join(" ")}]`}):this.searchStore.removeFacetPathsForIndexField(r),this.searchStore.search()}handleExactMatchToggleUpdated(r){this.searchStore.setSearchMode(r?"exact":"fuzzy"),this.searchStore.search()}handleMostRecentToggleUpdated(r,s){s?this.searchStore.setSortOrder({orderByField:r,sortType:"desc"}):this.searchStore.setSortOrder({orderByField:null,sortType:null}),this.searchStore.search()}render(){return l("div",{key:"7f15e8f1a2e1be763118f9cd4ded34cf7e2902d0",class:"searchcraft-filter-panel"},this.items.map(r=>{switch(r.type){case"dateRange":{const s=r,a=new Date(s.options.minDate).getTime(),o=new Date(s.options.maxDate).getTime(),n=bs(s.options.granularity);return l("div",{class:"searchcraft-filter-panel-section"},l("p",{class:"searchcraft-filter-panel-label"},r.label),l("searchcraft-slider",{min:a,max:o,granularity:n,dataType:"date",onRangeChanged:c=>{this.handleDateRangeChanged(s.fieldName,c.detail.startValue,c.detail.endValue)}}))}case"numericRange":{const s=r;return l("div",{class:"searchcraft-filter-panel-section"},l("p",{class:"searchcraft-filter-panel-label"},r.label),l("searchcraft-slider",{min:s.options.min,max:s.options.max,granularity:s.options.granularity,onRangeChanged:a=>{this.handleNumericRangeChanged(s.fieldName,a.detail.startValue,a.detail.endValue)}}))}case"facets":{const s=r;return l("div",{class:"searchcraft-filter-panel-section"},l("p",{class:"searchcraft-filter-panel-label"},r.label),l("searchcraft-facet-list",{fieldName:s.fieldName,onFacetSelectionUpdated:a=>{this.handleFacetSelectionUpdated(s.fieldName,a.detail.paths)}}))}case"exactMatchToggle":{const s=r;return l("searchcraft-toggle-button",{label:s.label,subLabel:s.options.subLabel,onToggleUpdated:a=>{this.handleExactMatchToggleUpdated(a.detail)}})}case"mostRecentToggle":{const s=r;return l("searchcraft-toggle-button",{label:s.label,subLabel:s.options.subLabel,onToggleUpdated:a=>{this.handleMostRecentToggleUpdated(s.fieldName,a.detail)}})}}}))}},[0,"searchcraft-filter-panel",{items:[16],unsubscribe:[32],lastSearchTerm:[32]}]);function yo(){if(typeof customElements>"u")return;["searchcraft-filter-panel","searchcraft-facet-list","searchcraft-slider","searchcraft-toggle-button"].forEach(t=>{switch(t){case"searchcraft-filter-panel":customElements.get(t)||customElements.define(t,bo);break;case"searchcraft-facet-list":customElements.get(t)||vs();break;case"searchcraft-slider":customElements.get(t)||Ss();break;case"searchcraft-toggle-button":customElements.get(t)||Cs();break}})}const So=yo,Co=H(class extends D{constructor(){super();f(this,"inputLabelClassName","");f(this,"label","");this.__registerHost()}render(){return l("label",{key:"3622c616d480e57b1dfaa2d61637a30b843cb968",class:oe("searchcraft-input-label",this.inputLabelClassName),htmlFor:"searchcraft-input-id"},this.label)}},[0,"searchcraft-input-label",{inputLabelClassName:[1,"input-label-class-name"],label:[1]}]);function Kt(){if(typeof customElements>"u")return;["searchcraft-input-label"].forEach(t=>{switch(t){case"searchcraft-input-label":customElements.get(t)||customElements.define(t,Co);break}})}const ko=H(class extends D{constructor(){super();f(this,"autoSearch",!0);f(this,"buttonPlacement","none");f(this,"buttonLabel");f(this,"inputLabel");f(this,"placeholderValue","Enter Search");f(this,"inputFocus");f(this,"inputBlur");f(this,"inputInit");f(this,"inputValue","");f(this,"searchTerm","");f(this,"error",!1);f(this,"core");f(this,"searchcraftStore",_.getState());f(this,"unsubscribe",()=>{});f(this,"handleInput",r=>{const s=r.target;this.inputValue=s.value,this.autoSearch&&this.performSearch(s.value)});f(this,"performSearch",async r=>{if(r!==this.searchTerm){this.searchcraftStore.setSearchTerm(r.trim()),this.error=!1;try{await this.searchcraftStore.search()}catch(s){console.error(`Search for ${r} failed:`,s),this.error=!0}}});f(this,"handleReset",()=>{this.searchcraftStore.setSearchResultsCount(0),this.searchcraftStore.setSearchTerm(""),this.searchcraftStore.setSearchClientResponseItems([]),this.error=!1});f(this,"handleClearInput",()=>{this.handleReset()});f(this,"handleFormSubmit",async r=>{r.preventDefault(),await this.performSearch(this.inputValue)});this.__registerHost(),this.inputFocus=we(this,"inputFocus"),this.inputBlur=we(this,"inputBlur"),this.inputInit=we(this,"inputInit")}init(){var r;this.core&&(this.searchcraftStore.init(this.core),(r=this.inputInit)==null||r.emit())}onCoreChange(){this.init()}connectedCallback(){this.init()}componentDidLoad(){this.unsubscribe=_.subscribe(r=>{this.searchTerm=r.searchTerm,this.inputValue=r.searchTerm})}disconnectedCallback(){var r;this.handleReset(),(r=this.unsubscribe)==null||r.call(this)}render(){const r=this.inputValue.length>0,s=oe("searchcraft-input-form-grid",{"searchcraft-input-form-grid-button-left":this.buttonPlacement==="left","searchcraft-input-form-grid-button-right":this.buttonPlacement==="right","searchcraft-input-form-grid-button-none":this.buttonPlacement==="none"}),o={gap:this.inputLabel||this.error?"4px 8px":"0px 8px"};return l("form",{key:"6af89b2ab634e0f3e0ef575f98f33d091602f95a",class:"searchcraft-input-form",onSubmit:this.handleFormSubmit},l("div",{key:"93fea8e2b80468afeb6014122d5b749d74bfaf35",class:s,style:o},l("div",{key:"1e5a416843b99aec68c4672a9c78f607347dc9d1",class:"searchcraft-input-form-button"},l("searchcraft-button",{key:"c38c1df0ce20f914ed76fbc0acad5a22b40e6fff",onButtonClick:this.handleFormSubmit,label:this.buttonLabel})),this.inputLabel&&l("div",{key:"2169a4466b0fdc8075c0dc74da442aef28a84d65",class:"searchcraft-input-form-label"},l("searchcraft-input-label",{key:"a263b5aa2a4d50d297f06c1fe9e6afb64763f097",label:this.inputLabel})),this.error&&l("div",{key:"49be2ac0f2d01916e5ea533e6406ee9d4d932178",class:"searchcraft-input-form-error-message"},l("searchcraft-error-message",{key:"310c9aebcf580d4abe92d288c6b70a5adf083f8e"},"Something went wrong.")),l("div",{key:"f4702e368815e049586e97cf59541b2dc5460fc0",class:"searchcraft-input-form-input-wrapper"},l("input",{key:"a8cddd5e937eee1d30fb98eaaa3dbffe96c192ce",autoComplete:"off",class:"searchcraft-input-form-input",onFocus:()=>{var n;return(n=this.inputFocus)==null?void 0:n.emit()},onBlur:()=>{var n;return(n=this.inputBlur)==null?void 0:n.emit()},onInput:n=>{this.handleInput(n)},placeholder:this.placeholderValue,type:"text",value:this.inputValue}),l("div",{key:"616b4dde1ba016cf6a2fba8594a99a3a3f584ef5",class:"searchcraft-input-form-input-icon"},l("svg",{key:"daaef561677a06a76813375e429be7e053b8b122",class:"searchcraft-input-form-input-search-icon",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"searchcraft-title"},l("title",{key:"e6d82ca64dd9bfc663813c239d11e5652aa0b9a1"},"Search icon"),l("path",{key:"1df856c98c2063c1d0c80027255935f73b513939",d:"M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))),r&&l("button",{key:"8dd6dfefe0ba909657bd436b559ce35b5004f9ae",type:"button",class:"searchcraft-input-form-clear-button",onClick:this.handleClearInput},l("svg",{key:"bcdba04d5c0949cacc8e1962d2b3cd40ad995de6",class:"searchcraft-input-form-clear-icon",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"icon-title"},l("title",{key:"e01e7fb9b23daf9434520c4c68c0d7539b37d1f8"},"Clear icon"),l("path",{key:"ce526d332b6e352cd9cf6008ee2f7497c6769782",d:"M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))))))}static get watchers(){return{core:["onCoreChange"]}}},[0,"searchcraft-input-form",{autoSearch:[4,"auto-search"],buttonPlacement:[1,"button-placement"],buttonLabel:[1,"button-label"],inputLabel:[1,"input-label"],placeholderValue:[1,"placeholder-value"],core:[16],inputValue:[32],searchTerm:[32],error:[32]},void 0,{core:["onCoreChange"]}]);function ks(){if(typeof customElements>"u")return;["searchcraft-input-form","searchcraft-button","searchcraft-error-message","searchcraft-input-label"].forEach(t=>{switch(t){case"searchcraft-input-form":customElements.get(t)||customElements.define(t,ko);break;case"searchcraft-button":customElements.get(t)||vt();break;case"searchcraft-error-message":customElements.get(t)||bt();break;case"searchcraft-input-label":customElements.get(t)||Kt();break}})}const wo=ks,Ro=Kt,xo=H(class extends D{constructor(){super();f(this,"searchTerm");f(this,"searchResultsPerPage");f(this,"searchResultsPage");f(this,"searchResultsCount");f(this,"searchResultsPagesCount",1);f(this,"searchResultsRangeMin",1);f(this,"searchResultsRangeMax",1);f(this,"setSearchResultsPage",()=>{});f(this,"unsubscribe",()=>{});this.__registerHost()}componentDidLoad(){this.unsubscribe=_.subscribe(r=>{this.searchTerm=r.searchTerm,this.searchResultsPerPage=r.searchResultsPerPage,this.searchResultsPage=r.searchResultsPage,this.searchResultsCount=r.searchResultsCount,this.searchResultsPagesCount=Math.ceil(this.searchResultsCount/this.searchResultsPerPage),this.searchResultsRangeMin=(this.searchResultsPage-1)*this.searchResultsPerPage+1,this.searchResultsRangeMax=(this.searchResultsPerPage-1)*this.searchResultsPerPage+this.searchResultsPerPage,this.setSearchResultsPage=r.setSearchResultsPage})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}handleGoToPage(r){this.setSearchResultsPage(r)}renderOddPaginationItem(r){return l("li",null,l("button",{class:oe("searchcraft-pagination-item",{"searchcraft-pagination-item-active":this.searchResultsPage===r}),onClick:()=>this.handleGoToPage(r),type:"button"},r))}renderEvenPaginationItem(r){if(!(this.searchResultsPagesCount<=r))return(this.searchResultsPagesCount<=5||r<Math.ceil(this.searchResultsPagesCount/2)?this.searchResultsPage<=r+1:this.searchResultsPage>=r-1)?l("li",null,l("button",{class:oe("searchcraft-pagination-item",{"searchcraft-pagination-item-active":this.searchResultsPage===r}),onClick:()=>this.handleGoToPage(r),type:"button"},r)):l("li",null,l("span",{class:"searchcraft-pagination-item"},"..."))}renderMiddlePaginationItem(){if(!(this.searchResultsPagesCount<=3))return this.searchResultsPagesCount<=5||this.searchResultsPage<=3||this.searchResultsPage>=this.searchResultsPagesCount-2?l("li",null,l("button",{class:oe("searchcraft-pagination-item",{"searchcraft-pagination-item-active":this.searchResultsPage===3||this.searchResultsPage===this.searchResultsPagesCount-2}),type:"button",onClick:()=>this.handleGoToPage(this.searchResultsPage>=this.searchResultsPagesCount-2?this.searchResultsPagesCount-2:3)},this.searchResultsPage>=this.searchResultsPagesCount-2?this.searchResultsPagesCount-2:3)):l("li",null,l("span",{class:"searchcraft-pagination-item searchcraft-pagination-item-active"},this.searchResultsPage))}render(){if(!(!this.searchTerm||this.searchResultsPagesCount<=1))return l("div",{class:"searchcraft-pagination"},l("div",{class:"searchcraft-pagination-control"},l("searchcraft-button",{disabled:this.searchResultsPage===1,hierarchy:"tertiary",onButtonClick:()=>this.handleGoToPage(Math.max(1,this.searchResultsPage-1)),label:"Previous",iconPosition:"left",icon:l("svg",{class:"searchcraft-button-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l("title",null,"Previous page icon"),l("path",{d:"M12.5 15L7.5 10L12.5 5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),iconOnly:!0})),l("ul",{class:"searchcraft-pagination-list"},this.renderOddPaginationItem(1),this.renderEvenPaginationItem(2),this.renderMiddlePaginationItem(),this.renderEvenPaginationItem(this.searchResultsPagesCount>4?this.searchResultsPagesCount-1:4),this.renderOddPaginationItem(this.searchResultsPagesCount)),l("div",{class:"searchcraft-pagination-control"},l("searchcraft-button",{disabled:this.searchResultsPage===this.searchResultsPagesCount,hierarchy:"tertiary",onButtonClick:()=>{this.handleGoToPage(Math.min(this.searchResultsPagesCount,this.searchResultsPage+1))},label:"Next",iconPosition:"right",icon:l("svg",{class:"searchcraft-button-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l("title",null,"Next page icon"),l("path",{d:"M7.5 15L12.5 10L7.5 5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),iconOnly:!0})))}},[0,"searchcraft-pagination",{searchTerm:[32],searchResultsPerPage:[32],searchResultsPage:[32],searchResultsCount:[32],searchResultsPagesCount:[32],searchResultsRangeMin:[32],searchResultsRangeMax:[32],setSearchResultsPage:[32]}]);function Eo(){if(typeof customElements>"u")return;["searchcraft-pagination","searchcraft-button"].forEach(t=>{switch(t){case"searchcraft-pagination":customElements.get(t)||customElements.define(t,xo);break;case"searchcraft-button":customElements.get(t)||vt();break}})}const Po=Eo,To=H(class extends D{constructor(){super();f(this,"template");f(this,"type");f(this,"hotkey");f(this,"hotkeyModifier");f(this,"hotkeyModifierSymbol");f(this,"isPopoverVisible");f(this,"userAgent");f(this,"unsubscribe",()=>{});f(this,"renderOptionSymbol",()=>l("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},l("title",null,"Option key"),l("path",{d:"M283,112c0-11.58,9.42-21,21-21h160c11.58,0,21,9.42,21,21s-9.42,21-21,21h-160c-11.58,0-21-9.42-21-21Z",fill:"currentColor"}),l("path",{d:"M485,400c0,11.58-9.42,21-21,21h-128c-8.29,0-15.82-4.9-19.19-12.47l-122.46-275.53H48c-11.58,0-21-9.42-21-21s9.42-21,21-21h160c8.29,0,15.82,4.9,19.19,12.47l122.46,275.53h114.35c11.58,0,21,9.42,21,21Z",fill:"currentColor"})));f(this,"renderCtrlSymbol",()=>l("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},l("title",null,"Ctrl key"),l("path",{d:"M388.95,209.4c-.37,5.59-2.9,10.71-7.12,14.4-3.83,3.35-8.74,5.2-13.82,5.2-6.06,0-11.83-2.61-15.81-7.17l-96.2-109.94-96.2,109.94c-3.98,4.56-9.75,7.17-15.81,7.17-5.08,0-9.99-1.84-13.82-5.2-4.22-3.69-6.75-8.81-7.12-14.4-.38-5.6,1.45-11.01,5.15-15.23l112-128c3.98-4.56,9.74-7.17,15.8-7.17s11.82,2.61,15.8,7.17l112,128c3.7,4.22,5.53,9.63,5.15,15.23Z",fill:"currentColor"})));f(this,"renderWindowsMetaSymbol",()=>l("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},l("title",null,"Windows meta key"),l("path",{d:"M206.115 255.957c-23.854-12.259-47.043-18.479-68.94-18.479-2.978 0-5.976 0.090-8.974 0.354-27.94 2.312-53.461 9.684-69.875 15.414-4.354 1.599-8.817 3.288-13.415 5.153l-44.911 155.697c30.851-11.416 58.146-16.969 83.135-16.969 40.423 0 69.764 15.104 93.996 30.652 11.481-38.959 39.022-133.045 47.241-161.162-5.975-3.642-12.038-7.285-18.257-10.66zM264.174 295.535l-45.223 157.074c13.416 7.686 58.549 32.025 93.106 32.025 27.896 0 59.126-7.148 95.417-21.896l43.178-150.988c-29.316 9.461-57.438 14.26-83.732 14.26-47.975 0-81.557-15.549-102.746-30.475zM146.411 184.395c38.559 0.399 67.076 15.104 90.708 30.251l46.376-158.672c-9.773-5.598-35.403-19.547-53.929-24.3-12.193-2.842-25.010-4.308-38.602-4.308-25.898 0.488-54.194 6.973-86.444 19.9l-44.22 155.298c32.404-12.218 60.322-18.17 86.043-18.17 0.023 0.001 0.068 0.001 0.068 0.001zM512 99.062c-29.407 11.416-58.104 17.233-85.514 17.233-45.843 0-79.646-15.901-101.547-31.183l-45.975 159.118c30.873 19.854 64.145 29.939 99.061 29.939 28.474 0 57.97-6.84 87.731-20.344l-0.091-1.111 1.867-0.443 44.468-153.209z",fill:"currentColor"})));f(this,"renderMacMetaSymbol",()=>l("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},l("title",null,"Mac meta key"),l("path",{d:"M368,283h-43v-54h43c46.87,0,85-38.13,85-85s-38.13-85-85-85-85,38.13-85,85v43h-54v-43c0-46.87-38.13-85-85-85s-85,38.13-85,85,38.13,85,85,85h43v54h-43c-46.87,0-85,38.13-85,85s38.13,85,85,85,85-38.13,85-85v-43h54v43c0,46.87,38.13,85,85,85s85-38.13,85-85-38.13-85-85-85ZM325,144c0-23.71,19.29-43,43-43s43,19.29,43,43-19.29,43-43,43h-43v-43ZM144,187c-23.71,0-43-19.29-43-43s19.29-43,43-43,43,19.29,43,43v43h-43ZM187,368c0,23.71-19.29,43-43,43s-43-19.29-43-43,19.29-43,43-43h43v43ZM283,283h-54v-54h54v54ZM368,411c-23.71,0-43-19.29-43-43v-43h43c23.71,0,43,19.29,43,43s-19.29,43-43,43Z",fill:"currentColor"})));this.__registerHost()}handleOnClick(){_.getState().setPopoverVisibility(!0)}componentDidLoad(){const r=_.getState();this.hotkey=r.hotkey.toUpperCase(),this.hotkeyModifier=r.hotkeyModifier,this.isPopoverVisible=r.isPopoverVisible,this.userAgent=this.setUserAgent(),this.hotkeyModifierSymbol=this.setHotkeyModifierSymbol(),this.unsubscribe=_.subscribe(s=>{this.hotkey=s.hotkey.toUpperCase(),this.hotkeyModifier=s.hotkeyModifier,this.hotkeyModifierSymbol=this.setHotkeyModifierSymbol()})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}setUserAgent(){const r=navigator.userAgent.toLowerCase();switch(!0){case r.includes("windows"):return"window";case r.includes("mac"):return"mac";default:return"other"}}setHotkeyModifierSymbol(){switch(this.hotkeyModifier){case"ctrl":return this.userAgent==="windows"?this.renderCtrlSymbol():this.renderMacMetaSymbol();case"alt":case"option":return this.renderOptionSymbol();default:return this.userAgent==="windows"?this.renderWindowsMetaSymbol():this.renderMacMetaSymbol()}}renderSkeuomorphicSlot(){return l("div",{class:"searchcraft-popover-button-wrapper"},l("div",{class:"searchcraft-popover-button-input"},l("svg",{class:"searchcraft-popover-button-input-search-icon",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",version:"1.1"},l("title",null,"Search icon"),l("path",{d:"M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),l("span",null,"Search")),l("div",{class:"searchcraft-popover-button-keycaps"},l("div",{class:"searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-modifier"},l("span",null,this.hotkeyModifierSymbol)),l("div",{class:"searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-key"},l("span",null,this.hotkey))))}renderSlot(){switch(this.type){case"skeuomorphic":return this.renderSkeuomorphicSlot();default:return l("div",null,l("slot",null))}}render(){return l("button",{key:"74e36b0593ba2cbb03f5ecff1434bc7056bf0db0",class:`searchcraft-popover-button ${this.type?` searchcraft-popover-button-${this.type}`:""}`,innerHTML:typeof this.template<"u"?this.template({isPopoverVisible:this.isPopoverVisible},{html:Ye}):void 0,onClick:this.handleOnClick.bind(this),type:"button"},typeof this.template<"u"?void 0:this.type?this.renderSlot():"Open Popover")}},[4,"searchcraft-popover-button",{template:[16],type:[1],hotkey:[32],hotkeyModifier:[32],hotkeyModifierSymbol:[32],isPopoverVisible:[32],userAgent:[32]}]);function $o(){if(typeof customElements>"u")return;["searchcraft-popover-button"].forEach(t=>{switch(t){case"searchcraft-popover-button":customElements.get(t)||customElements.define(t,To);break}})}const _o=$o,Io=H(class extends D{constructor(){super();f(this,"searchResultsCount");f(this,"unsubscribe",()=>{});this.__registerHost()}componentDidLoad(){this.searchResultsCount=_.getState().searchResultsCount,this.unsubscribe=_.subscribe(r=>{this.searchResultsCount=r.searchResultsCount})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}render(){return l("footer",{key:"e1344ae185ef1b8a83bb69ba88e2952ab1c75e70",class:"searchcraft-popover-footer"},l("p",{key:"51874f4ce490e4f164b999e8c6f89710702e73bd",class:"searchcraft-popover-footer-results-info"},this.searchResultsCount?`${ys(this.searchResultsCount)} Results Found`:" "),l("a",{key:"5476e24cc3fa7fa265bd2b5cba43c8a70d8609ca",class:"searchcraft-popover-footer-link",href:"https://searchcraft.io/",target:"_blank",rel:"noreferrer"},l("svg",{key:"0a4edf94e9e40a96a93a4e7ba1ffbd081e51b585",class:"searchcraft-popover-footer-link-image",width:"169",height:"16",viewBox:"0 0 169 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l("title",{key:"67813a626922d709a4409028cb0f3f1ce3e2cfe8"},"Powered by Searchcraft"),l("path",{key:"bf9e46a5f9783edd7167c1c5c1256d0200053969",d:"M5.07288 0.608C7.60088 0.608 8.84888 2.064 8.84888 4.112C8.84888 6.16 7.60088 7.616 5.07288 7.616H1.68088V12H0.336875V0.608H5.07288ZM5.07288 6.4C6.67288 6.4 7.45688 5.552 7.45688 4.112C7.45688 2.672 6.67288 1.824 5.07288 1.824H1.68088V6.4H5.07288ZM13.31 12.192C10.99 12.192 9.31 10.512 9.31 7.872C9.31 5.232 10.99 3.552 13.31 3.552C15.63 3.552 17.31 5.232 17.31 7.872C17.31 10.512 15.63 12.192 13.31 12.192ZM13.31 11.04C14.91 11.04 15.966 9.872 15.966 7.872C15.966 5.872 14.91 4.704 13.31 4.704C11.71 4.704 10.654 5.872 10.654 7.872C10.654 9.872 11.71 11.04 13.31 11.04ZM28.3826 3.744H29.7586L27.0066 12H25.6626L24.4466 8.176C24.1586 7.264 23.8706 6.304 23.6146 5.376C23.3426 6.304 23.0546 7.264 22.7666 8.176L21.5666 12H20.2226L17.4706 3.744H18.8466L20.0146 7.472C20.3346 8.48 20.6226 9.472 20.9106 10.48C21.1826 9.472 21.4706 8.48 21.7906 7.472L22.9426 3.744H24.2866L25.4386 7.472C25.7426 8.464 26.0466 9.456 26.3346 10.448C26.6066 9.456 26.9106 8.464 27.2146 7.472L28.3826 3.744ZM37.5194 7.872V8.32H31.2474C31.3754 10.176 32.3514 11.024 33.7914 11.024C34.9594 11.024 35.6954 10.416 35.9834 9.488H37.3114C36.9114 11.04 35.7274 12.192 33.7594 12.192C31.5034 12.192 29.9194 10.544 29.9194 7.872C29.9194 5.28 31.4394 3.552 33.7274 3.552C36.1914 3.552 37.5194 5.504 37.5194 7.872ZM33.7274 4.72C32.4314 4.72 31.4874 5.536 31.2794 7.168H36.1434C36.0154 5.808 35.1994 4.72 33.7274 4.72ZM42.9101 3.616C43.0381 3.616 43.1661 3.616 43.3421 3.632V4.864H43.0221C41.3741 4.864 40.3181 5.696 40.3181 7.296V12H39.0381V3.744H40.2541V5.2C40.7181 4.336 41.5661 3.616 42.9101 3.616ZM51.2538 7.872V8.32H44.9818C45.1098 10.176 46.0858 11.024 47.5258 11.024C48.6938 11.024 49.4298 10.416 49.7178 9.488H51.0458C50.6458 11.04 49.4618 12.192 47.4938 12.192C45.2378 12.192 43.6538 10.544 43.6538 7.872C43.6538 5.28 45.1738 3.552 47.4618 3.552C49.9258 3.552 51.2538 5.504 51.2538 7.872ZM47.4618 4.72C46.1658 4.72 45.2218 5.536 45.0138 7.168H49.8778C49.7498 5.808 48.9338 4.72 47.4618 4.72ZM58.9805 0.608H60.2605V12H59.0445V10.72C58.4205 11.664 57.4445 12.192 56.2125 12.192C53.8925 12.192 52.3725 10.512 52.3725 7.872C52.3725 5.232 53.8925 3.552 56.2125 3.552C57.4125 3.552 58.3565 4.048 58.9805 4.928V0.608ZM56.3725 11.04C57.9725 11.04 59.0285 9.872 59.0285 7.872C59.0285 5.872 57.9725 4.704 56.3725 4.704C54.7725 4.704 53.7165 5.936 53.7165 7.936C53.7165 9.936 54.7725 11.04 56.3725 11.04ZM69.2736 3.552C71.5936 3.552 73.1136 5.232 73.1136 7.872C73.1136 10.512 71.5936 12.192 69.2736 12.192C68.0416 12.192 67.0656 11.664 66.4416 10.72V12H65.2256V0.608H66.5056V4.928C67.1296 4.048 68.0736 3.552 69.2736 3.552ZM69.1136 11.04C70.7136 11.04 71.7696 9.808 71.7696 7.808C71.7696 5.808 70.7136 4.704 69.1136 4.704C67.5136 4.704 66.4576 5.872 66.4576 7.872C66.4576 9.872 67.5136 11.04 69.1136 11.04ZM79.3795 3.744H80.7715L77.2835 13.296C76.7555 14.752 75.9075 15.184 74.5955 15.184C74.3395 15.184 74.0995 15.168 73.8275 15.136V14.064H74.5795C75.3955 14.064 75.8275 13.696 76.0835 13.04C76.1795 12.8 76.2755 12.528 76.3715 12.272L73.2675 3.744H74.6755L75.8435 7.184C76.2595 8.384 76.6435 9.568 77.0275 10.752C77.3955 9.568 77.7955 8.368 78.2115 7.168L79.3795 3.744ZM89.1546 12.256C86.1146 12.256 84.2906 10.864 84.2746 8.24H86.4026C86.4346 10.032 87.6346 10.512 89.2186 10.512C90.7066 10.512 91.5226 9.936 91.5226 8.864C91.5226 7.968 90.9306 7.568 89.1866 7.216L88.2266 7.024C86.0186 6.608 84.5626 5.632 84.5626 3.568C84.5626 1.68 86.0506 0.351999 88.7866 0.351999C91.9866 0.351999 93.3466 1.856 93.4266 4H91.3306C91.2506 2.784 90.6266 2.096 88.8186 2.096C87.4426 2.096 86.7706 2.64 86.7706 3.504C86.7706 4.416 87.2986 4.832 88.9946 5.184L89.9866 5.376C92.6746 5.904 93.7626 6.944 93.7626 8.752C93.7626 11.008 92.0026 12.256 89.1546 12.256ZM102.952 8.016V8.496H96.7758C96.9198 9.968 97.7518 10.624 98.9198 10.624C99.8798 10.624 100.504 10.176 100.808 9.44H102.744C102.328 11.12 100.888 12.192 98.9038 12.192C96.4718 12.192 94.7918 10.512 94.7918 7.872C94.7918 5.28 96.4238 3.552 98.8718 3.552C101.4 3.552 102.952 5.392 102.952 8.016ZM98.8558 5.12C97.7838 5.12 96.9838 5.728 96.7918 7.088H100.936C100.776 5.92 100.056 5.12 98.8558 5.12ZM111.599 12H109.583C109.455 11.776 109.391 11.392 109.359 10.992C108.815 11.76 107.919 12.192 106.703 12.192C104.943 12.192 103.727 11.312 103.727 9.712C103.727 8.336 104.559 7.36 106.895 7.136L108.143 7.024C108.911 6.928 109.311 6.688 109.311 6.08C109.311 5.44 108.975 5.056 107.807 5.056C106.655 5.056 106.175 5.36 106.095 6.368H104.111C104.223 4.624 105.247 3.552 107.823 3.552C110.287 3.552 111.263 4.544 111.263 6.032V10.432C111.263 11.024 111.375 11.68 111.599 12ZM107.183 10.752C108.255 10.752 109.311 10.176 109.311 8.736V7.984C109.103 8.176 108.799 8.272 108.367 8.32L107.279 8.448C106.159 8.576 105.791 8.976 105.791 9.632C105.791 10.32 106.255 10.752 107.183 10.752ZM117.216 3.616C117.392 3.616 117.536 3.616 117.712 3.648V5.504H117.2C115.712 5.504 114.816 6.24 114.816 7.808V12H112.8V3.744H114.752V5.216C115.152 4.288 115.936 3.616 117.216 3.616ZM122.137 12.192C119.689 12.192 118.057 10.512 118.057 7.872C118.057 5.232 119.673 3.552 122.137 3.552C124.297 3.552 125.737 4.784 125.977 6.72H123.961C123.769 5.696 123.033 5.232 122.137 5.232C120.937 5.232 120.121 6.064 120.121 7.872C120.121 9.68 120.969 10.512 122.137 10.512C123.049 10.512 123.833 10.016 123.993 8.928H126.009C125.785 10.944 124.249 12.192 122.137 12.192ZM131.641 3.552C133.369 3.552 134.537 4.56 134.537 6.528V12H132.521V6.864C132.521 5.808 131.993 5.296 130.969 5.296C130.089 5.296 129.129 5.904 129.129 7.376V12H127.113V0.608H129.129V4.848C129.673 4.096 130.521 3.552 131.641 3.552ZM139.887 12.192C137.439 12.192 135.807 10.512 135.807 7.872C135.807 5.232 137.423 3.552 139.887 3.552C142.047 3.552 143.487 4.784 143.727 6.72H141.711C141.519 5.696 140.783 5.232 139.887 5.232C138.687 5.232 137.871 6.064 137.871 7.872C137.871 9.68 138.719 10.512 139.887 10.512C140.799 10.512 141.583 10.016 141.743 8.928H143.759C143.535 10.944 141.999 12.192 139.887 12.192ZM149.279 3.616C149.455 3.616 149.599 3.616 149.775 3.648V5.504H149.263C147.775 5.504 146.879 6.24 146.879 7.808V12H144.863V3.744H146.815V5.216C147.215 4.288 147.999 3.616 149.279 3.616ZM157.803 12H155.787C155.659 11.776 155.595 11.392 155.563 10.992C155.019 11.76 154.123 12.192 152.907 12.192C151.147 12.192 149.931 11.312 149.931 9.712C149.931 8.336 150.763 7.36 153.099 7.136L154.347 7.024C155.115 6.928 155.515 6.688 155.515 6.08C155.515 5.44 155.179 5.056 154.011 5.056C152.859 5.056 152.379 5.36 152.299 6.368H150.315C150.427 4.624 151.451 3.552 154.027 3.552C156.491 3.552 157.467 4.544 157.467 6.032V10.432C157.467 11.024 157.579 11.68 157.803 12ZM153.387 10.752C154.459 10.752 155.515 10.176 155.515 8.736V7.984C155.307 8.176 155.003 8.272 154.571 8.32L153.483 8.448C152.363 8.576 151.995 8.976 151.995 9.632C151.995 10.32 152.459 10.752 153.387 10.752ZM162.466 2.16C161.746 2.16 161.426 2.512 161.426 3.152V3.744H163.122V5.28H161.426V12H159.426V5.28H158.146V3.744H159.426V3.12C159.426 1.664 160.146 0.559999 162.13 0.559999C162.45 0.559999 162.882 0.575999 163.17 0.608V2.16H162.466ZM168.636 5.28H167.004V9.744C167.004 10.288 167.276 10.464 167.948 10.464H168.636V12C168.268 12.032 167.9 12.064 167.58 12.064C165.836 12.064 165.004 11.472 165.004 9.952V5.28H163.724V3.744H165.004V1.344H167.004V3.744H168.636V5.28Z",fill:"currentColor"}))))}},[0,"searchcraft-popover-footer",{searchResultsCount:[32]}]);function ws(){if(typeof customElements>"u")return;["searchcraft-popover-footer"].forEach(t=>{switch(t){case"searchcraft-popover-footer":customElements.get(t)||customElements.define(t,Io);break}})}const Ao=ws,Mo=H(class extends D{constructor(){super();f(this,"item");f(this,"popoverResultMappings");f(this,"documentPosition",0);f(this,"title");f(this,"subtitle");f(this,"href");f(this,"imageSource");f(this,"imageAlt");f(this,"handleLinkClick",()=>{var a;const r=_.getState(),s=r.getSearchcraftCore();if(s){const o=this.documentPosition,n=r.searchTerm,c=r.searchClientResponseItems.length||0;(a=s.measureClient)==null||a.sendMeasureEvent("document_clicked",{document_position:o,number_of_documents:c,search_term:n})}});this.__registerHost()}mapValuesFromDocument(r){var s,a,o,n,c;this.title=Ze(r,(s=this.popoverResultMappings)==null?void 0:s.title),this.subtitle=Ze(r,(a=this.popoverResultMappings)==null?void 0:a.subtitle),this.href=Ze(r,(o=this.popoverResultMappings)==null?void 0:o.href),this.imageSource=Ze(r,(n=this.popoverResultMappings)==null?void 0:n.imageSource),this.imageAlt=Ze(r,(c=this.popoverResultMappings)==null?void 0:c.imageAlt)}connectedCallback(){this.item&&this.mapValuesFromDocument(this.item.document)}disconnectedCallback(){}render(){return l("div",{key:"63a2f070ce71cd1330105c03985e32cd1f228b29",class:"searchcraft-popover-list-item"},l("a",{key:"d9bb09248be9be235147acdfeed1a9f29cd123a2",class:"searchcraft-popover-list-item-link",href:this.href,onClick:this.handleLinkClick.bind(this)},this.imageSource&&l("div",{key:"6af7c3e754885730d8651a593f13b7b5b704a26d",class:"searchcraft-popover-list-item-image-wrapper"},l("img",{key:"74c7e53467efd83ae95439a7065c1de2748113f5",alt:this.imageAlt,src:this.imageSource,class:"searchcraft-popover-list-item-image"})),l("div",{key:"25a12e5cf582b248773005f5fb58f7a15304d2d1",class:"searchcraft-popover-list-item-content"},this.title&&l("p",{key:"8169f7730feb832178adbc9bdb14a089e955a2ad",class:"searchcraft-popover-list-item-content-title"},this.title),this.subtitle&&l("p",{key:"96812df1bab635e3865bdfdb31f133ca629d800e",class:"searchcraft-popover-list-item-content-subtitle"},this.subtitle))))}},[0,"searchcraft-popover-list-item",{item:[16],popoverResultMappings:[16],documentPosition:[2,"document-position"],title:[32],subtitle:[32],href:[32],imageSource:[32],imageAlt:[32]}]);function Xt(){if(typeof customElements>"u")return;["searchcraft-popover-list-item"].forEach(t=>{switch(t){case"searchcraft-popover-list-item":customElements.get(t)||customElements.define(t,Mo);break}})}const Lo=H(class extends D{constructor(){super();f(this,"popoverResultMappings");f(this,"searchClientResponseItems");f(this,"adClientResponseItems");f(this,"searchResultsPage");f(this,"searchResultsPerPage");f(this,"config",(Ms=_.getState().core)==null?void 0:Ms.config);this.__registerHost()}renderWithADMAds(){var r,s;return l("div",{class:"searchcraft-popover-list-view"},(r=this.adClientResponseItems)==null?void 0:r.map(a=>l("searchcraft-ad",{adClientResponseItem:a,adContainerId:K(),adSource:"adMarketplace",key:a.id})),(s=this.searchClientResponseItems)==null?void 0:s.map((a,o)=>l("searchcraft-popover-list-item",{item:a,key:a.id,popoverResultMappings:this.popoverResultMappings,documentPosition:this.searchResultsPerPage*(this.searchResultsPage-1)+o})))}renderWithCustomAds(){var u,h,i,p;const r=[],s=((u=this.config)==null?void 0:u.customAdInterstitialInterval)||0,a=((h=this.config)==null?void 0:h.customAdInterstitialQuantity)||1,o=((i=this.config)==null?void 0:i.customAdStartQuantity)||0,n=((p=this.config)==null?void 0:p.customAdEndQuantity)||0,c=this.searchClientResponseItems||[];for(let g=0;g<o;g++)r.push(l("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${g}-ad`}));c.forEach((g,k)=>{if(s&&k%s===0&&k+s<c.length&&k>=s)for(let b=0;b<a;b++)r.push(l("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${g.id}-ad-${b}`}));r.push(l("searchcraft-popover-list-item",{item:g,key:g.id,popoverResultMappings:this.popoverResultMappings,documentPosition:this.searchResultsPerPage*(this.searchResultsPage-1)+k}))});for(let g=0;g<n;g++)r.push(l("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${g}-ad`}));return l("div",{class:"searchcraft-popover-list-view"},r)}renderWithNativoAds(){var h,i,p,g,k;const r=[],s=((h=this.config)==null?void 0:h.nativoAdInterstialStartIndex)||0,a=((i=this.config)==null?void 0:i.nativoAdInterstitialInterval)||0,o=((p=this.config)==null?void 0:p.nativoAdInterstitialQuantity)||1,n=((g=this.config)==null?void 0:g.nativoAdStartQuantity)||0,c=((k=this.config)==null?void 0:k.nativoAdEndQuantity)||0,u=this.searchClientResponseItems||[];for(let b=0;b<n;b++)r.push(l("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${b}-ad`}));u.forEach((b,P)=>{if(a&&(P+s)%a===0&&P+a<u.length&&P>=a)for(let I=0;I<o;I++)r.push(l("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${b.id}-ad-${I}`}));r.push(l("searchcraft-popover-list-item",{item:b,key:b.id,popoverResultMappings:this.popoverResultMappings,documentPosition:this.searchResultsPerPage*(this.searchResultsPage-1)+P}))});for(let b=0;b<c;b++)r.push(l("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${b}-ad`}));return l("div",{class:"searchcraft-popover-list-view"},r)}renderWithNoAds(){var r;return l("div",{class:"searchcraft-popover-list-view"},(r=this.searchClientResponseItems)==null?void 0:r.map((s,a)=>l("searchcraft-popover-list-item",{item:s,key:s.id,popoverResultMappings:this.popoverResultMappings,documentPosition:this.searchResultsPerPage*(this.searchResultsPage-1)+a})))}render(){var r;switch(((r=this.config)==null?void 0:r.adSource)||"None"){case"adMarketplace":return this.renderWithADMAds();case"Custom":return this.renderWithCustomAds();case"Nativo":return this.renderWithNativoAds();default:return this.renderWithNoAds()}}},[0,"searchcraft-popover-list-view",{popoverResultMappings:[16],searchClientResponseItems:[16],adClientResponseItems:[16],searchResultsPage:[2,"search-results-page"],searchResultsPerPage:[2,"search-results-per-page"]}]);function Rs(){if(typeof customElements>"u")return;["searchcraft-popover-list-view","searchcraft-ad","searchcraft-popover-list-item"].forEach(t=>{switch(t){case"searchcraft-popover-list-view":customElements.get(t)||customElements.define(t,Lo);break;case"searchcraft-ad":customElements.get(t)||gt();break;case"searchcraft-popover-list-item":customElements.get(t)||Xt();break}})}const Oo=H(class extends D{constructor(){super();f(this,"type","inline");f(this,"popoverResultMappings");f(this,"hotkey","k");f(this,"hotkeyModifier","meta");f(this,"isPopoverVisibleInState",!1);f(this,"unsubscribe");f(this,"searchClientResponseItems",[]);f(this,"adClientResponseItems",[]);f(this,"searchTerm");f(this,"isFocused",!1);f(this,"breakpointSm",576);f(this,"breakpointMd",768);f(this,"breakpointLg",992);f(this,"searchResultsPage");f(this,"searchResultsPerPage");f(this,"modalElement");f(this,"handleDocumentClick",r=>{this.hostElement.contains(r.target)||(this.isFocused=!1)});f(this,"handleDocumentKeyDown",r=>{if(r.key===this.hotkey&&this.handleHotkeyPressed(r),!!this.hostElement.contains(document.activeElement))switch(r.key){case"ArrowDown":case"ArrowUp":r.preventDefault(),this.focusOnNextListItem(r.key);break;case"Escape":_.getState().setPopoverVisibility(!1);break;default:return}});f(this,"handleInputInit",()=>{const r=this.hostElement.querySelector(".searchcraft-input-form-input");r==null||r.focus()});this.__registerHost()}get hostElement(){return this}componentDidLoad(){const r=getComputedStyle(document.documentElement);this.breakpointSm=Number.parseFloat(r.getPropertyValue("--sc-breakpoint-sm").trim()),this.breakpointMd=Number.parseFloat(r.getPropertyValue("--sc-breakpoint-md").trim()),this.breakpointLg=Number.parseFloat(r.getPropertyValue("--sc-breakpoint-lg").trim()),this.isPopoverVisibleInState=_.getState().isPopoverVisible,document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleDocumentKeyDown),this.unsubscribe=_.subscribe(s=>{this.isPopoverVisibleInState!==s.isPopoverVisible&&this.handlePopoverVisibilityChange(s.isPopoverVisible),this.searchClientResponseItems=[...s.searchClientResponseItems],this.adClientResponseItems=[...s.adClientResponseItems],this.searchTerm=s.searchTerm,this.searchResultsPage=s.searchResultsPage,this.searchResultsPerPage=s.searchResultsPerPage}),_.getState().setHotKeyAndHotKeyModifier(this.hotkey,this.hotkeyModifier)}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleDocumentKeyDown)}handlePopoverVisibilityChange(r){this.isPopoverVisibleInState=r,document.body.style.overflow=r?"hidden":"auto"}handleInputFocus(){this.isFocused=!0,this.type==="inline"&&window.visualViewport&&window.visualViewport.width<this.breakpointSm&&(_.getState().setPopoverVisibility(!0),this.modalElement||(this.modalElement=document.createElement("searchcraft-popover-form"),this.modalElement.popoverResultMappings=this.popoverResultMappings,this.modalElement.setAttribute("type","fullscreen"),document.body.appendChild(this.modalElement)))}handleModalBackdropClick(r){_.getState().setPopoverVisibility(!1)}handleHotkeyPressed(r){if(r.ctrlKey&&this.hotkeyModifier==="ctrl"||r.altKey&&this.hotkeyModifier==="alt"||r.metaKey&&this.hotkeyModifier==="meta")if(r.preventDefault(),this.type==="inline"&&!this.isPopoverVisibleInState){const s=this.hostElement.querySelector(".searchcraft-input-form-input");s==null||s.focus()}else _.getState().setPopoverVisibility(!this.isPopoverVisibleInState)}handleCancelButtonClick(){_.getState().setPopoverVisibility(!1)}focusOnNextListItem(r){var o,n;const s=Array.from(document.querySelectorAll(".searchcraft-popover-list-item-link")).filter(c=>!c.hasAttribute("disabled")&&c.offsetParent!==null),a=s.indexOf(document.activeElement);if(r==="ArrowDown")(o=s[(a+1)%s.length])==null||o.focus();else if(r==="ArrowUp")if(a>=1)(n=s[a-1])==null||n.focus();else{const c=document.querySelector(".searchcraft-input-form-input");c&&(c.focus(),requestAnimationFrame(()=>{c.selectionEnd=c.value.length,c.selectionStart=c.value.length}))}}get hasResultsToShow(){var r,s;return this.searchTerm&&((s=(r=this.searchTerm)==null?void 0:r.trim())==null?void 0:s.length)>0&&this.searchClientResponseItems.length>0}renderInlinePopover(){const r=this.hasResultsToShow&&this.isFocused;return l("div",{class:oe("searchcraft-popover-form searchcraft-popover-form-inline",{"searchcraft-popover-form-active":r})},l("div",{class:"searchcraft-popover-form-input searchcraft-popover-form-inline-input"},l("searchcraft-input-form",{onInputFocus:this.handleInputFocus.bind(this)})),r&&l("div",{class:"searchcraft-popover-form-inline-wrapper"},l("searchcraft-popover-list-view",{popoverResultMappings:this.popoverResultMappings,searchClientResponseItems:this.searchClientResponseItems,adClientResponseItems:this.adClientResponseItems,searchResultsPage:this.searchResultsPage,searchResultsPerPage:this.searchResultsPerPage}),l("searchcraft-popover-footer",null)))}renderModalPopover(){if(this.isPopoverVisibleInState)return l("div",{class:oe("searchcraft-popover-form searchcraft-popover-form-modal",{"searchcraft-popover-form-active":this.hasResultsToShow})},l("div",{class:"searchcraft-popover-form-modal-backdrop",onClick:this.handleModalBackdropClick}),l("div",{class:"searchcraft-popover-form-modal-wrapper"},l("div",{class:"searchcraft-popover-form-input searchcraft-popover-form-modal-input"},l("searchcraft-input-form",{onInputFocus:this.handleInputFocus.bind(this),onInputInit:this.handleInputInit.bind(this)}),l("button",{type:"button",class:"searchcraft-popover-form-cancel-button searchcraft-popover-form-modal-cancel-button",onClick:this.handleCancelButtonClick.bind(this)},"Cancel")),l("div",{class:"searchcraft-popover-form-modal-popover-list-view"},this.hasResultsToShow&&l("searchcraft-popover-list-view",{popoverResultMappings:this.popoverResultMappings,searchClientResponseItems:this.searchClientResponseItems,adClientResponseItems:this.adClientResponseItems,searchResultsPage:this.searchResultsPage,searchResultsPerPage:this.searchResultsPerPage})),l("searchcraft-popover-footer",null)))}renderFullscreenPopover(){if(this.isPopoverVisibleInState)return l("div",{class:oe("searchcraft-popover-form searchcraft-popover-form-fullscreen",{"searchcraft-popover-form-active":this.hasResultsToShow})},l("div",{class:"searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input"},l("searchcraft-input-form",{onInputFocus:this.handleInputFocus.bind(this),onInputInit:this.handleInputInit.bind(this)}),l("button",{type:"button",class:"searchcraft-popover-form-cancel-button searchcraft-popover-form-fullscreen-cancel-button",onClick:this.handleCancelButtonClick.bind(this)},"Cancel")),l("div",{class:"searchcraft-popover-form-fullscreen-popover-list-view"},this.hasResultsToShow&&l("searchcraft-popover-list-view",{popoverResultMappings:this.popoverResultMappings,searchClientResponseItems:this.searchClientResponseItems,adClientResponseItems:this.adClientResponseItems,searchResultsPage:this.searchResultsPage,searchResultsPerPage:this.searchResultsPerPage})),l("searchcraft-popover-footer",null))}render(){switch(this.type){case"inline":return this.renderInlinePopover();case"modal":return this.renderModalPopover();case"fullscreen":return this.renderFullscreenPopover()}}},[0,"searchcraft-popover-form",{type:[1],popoverResultMappings:[16],hotkey:[1],hotkeyModifier:[1,"hotkey-modifier"],isPopoverVisibleInState:[32],unsubscribe:[32],searchClientResponseItems:[32],adClientResponseItems:[32],searchTerm:[32],isFocused:[32],breakpointSm:[32],breakpointMd:[32],breakpointLg:[32],searchResultsPage:[32],searchResultsPerPage:[32],modalElement:[32]}]);function xs(){if(typeof customElements>"u")return;["searchcraft-popover-form","searchcraft-ad","searchcraft-button","searchcraft-error-message","searchcraft-input-form","searchcraft-input-label","searchcraft-popover-footer","searchcraft-popover-form","searchcraft-popover-list-item","searchcraft-popover-list-view"].forEach(t=>{switch(t){case"searchcraft-popover-form":customElements.get(t)||customElements.define(t,Oo);break;case"searchcraft-ad":customElements.get(t)||gt();break;case"searchcraft-button":customElements.get(t)||vt();break;case"searchcraft-error-message":customElements.get(t)||bt();break;case"searchcraft-input-form":customElements.get(t)||ks();break;case"searchcraft-input-label":customElements.get(t)||Kt();break;case"searchcraft-popover-footer":customElements.get(t)||ws();break;case"searchcraft-popover-form":customElements.get(t)||xs();break;case"searchcraft-popover-list-item":customElements.get(t)||Xt();break;case"searchcraft-popover-list-view":customElements.get(t)||Rs();break}})}const Fo=xs,Do=Xt,Ho=Rs,No=H(class extends D{constructor(){super();f(this,"template");f(this,"searchTerm");f(this,"searchResultsPage");f(this,"searchResultsPerPage");f(this,"searchResultsCount");f(this,"count",0);f(this,"range",[0,0]);f(this,"responseTime","0");f(this,"unsubscribe",()=>{});this.__registerHost()}connectedCallback(){this.unsubscribe=_.subscribe(r=>{this.searchTerm=r.searchTerm,this.searchResultsPage=r.searchResultsPage,this.searchResultsPerPage=r.searchResultsPerPage,this.searchResultsCount=r.searchResultsCount,this.count=this.searchResultsCount,this.range[0]=this.searchResultsPage<=1?1:this.searchResultsPerPage*(this.searchResultsPage-1),this.range[1]=this.searchResultsPerPage*this.searchResultsPage,this.range[1]=this.range[1]>this.searchResultsCount?this.searchResultsCount:this.range[1],this.responseTime=((r.searchResponseTimeTaken||0)*1e3).toFixed(2)})}disconnectedCallback(){this.unsubscribe&&this.unsubscribe()}render(){return!this.searchTerm||this.searchResultsCount===0?null:l("p",{class:"searchcraft-results-info"},typeof this.template<"u"?this.template({range:[Number(this.range[0]),Number(this.range[1])],count:this.count,responseTime:this.responseTime},{html:Ye}):`${ys(this.count)} results found in ${this.responseTime}ms`)}},[0,"searchcraft-results-info",{template:[16],searchTerm:[32],searchResultsPage:[32],searchResultsPerPage:[32],searchResultsCount:[32],count:[32],range:[32],responseTime:[32]}]);function Uo(){if(typeof customElements>"u")return;["searchcraft-results-info"].forEach(t=>{switch(t){case"searchcraft-results-info":customElements.get(t)||customElements.define(t,No);break}})}const zo=Uo,jo=H(class extends D{constructor(){super();f(this,"item");f(this,"index");f(this,"documentPosition",0);f(this,"template");f(this,"templateHtml");f(this,"handleResultContainerClick",r=>{var i;const s=_.getState(),a=s.getSearchcraftCore();if(!r.target)return;const n=r.target.closest("a");if(!n||!((i=this.hostElement)!=null&&i.contains(n))||!a||!a.measureClient)return;const c=this.documentPosition,u=s.searchTerm,h=s.searchClientResponseItems.length||0;a.measureClient.sendMeasureEvent("document_clicked",{document_position:c,number_of_documents:h,search_term:u})});f(this,"handleKeyDown",()=>{});this.__registerHost()}get hostElement(){return this}connectedCallback(){var r;if(this.item)try{this.templateHtml=(r=this.template)==null?void 0:r.call(this,this.item.document,this.index,{html:Ye,source_index:this.item.source_index})}catch(s){console.error("Invalid search result template:",s)}}render(){if(this.item)return typeof this.template>"u"?l("div",{class:"searchcraft-search-result searchcraft-search-result-no-template",onClick:this.handleResultContainerClick,onKeyDown:this.handleKeyDown},Object.entries(this.item.document).map(([r,s])=>l("p",{key:r},l("strong",null,r),": ",s))):l("div",{class:"searchcraft-search-result",innerHTML:this.templateHtml,onClick:this.handleResultContainerClick,onKeyDown:this.handleKeyDown})}},[0,"searchcraft-search-result",{item:[16],index:[2],documentPosition:[2,"document-position"],template:[16],templateHtml:[32]}]);function Es(){if(typeof customElements>"u")return;["searchcraft-search-result"].forEach(t=>{switch(t){case"searchcraft-search-result":customElements.get(t)||customElements.define(t,jo);break}})}const Vo=Es,Bo=H(class extends D{constructor(){super();f(this,"initialQuery");f(this,"template");f(this,"adClientResponseItems",[]);f(this,"config");f(this,"initialSearchClientResponseItems");f(this,"isSearchInProgress",!0);f(this,"searchClientResponseItems");f(this,"searchResultsPage");f(this,"searchResultsPerPage");f(this,"searchTerm","");f(this,"unsubscribe",()=>{});this.__registerHost()}componentDidLoad(){var s;const r=_.getState();this.handleStateChange(r),this.searchClientResponseItems=r.searchClientResponseItems,this.searchTerm=r.searchTerm,this.config=(s=r.core)==null?void 0:s.config,r.afterInit=a=>{this.initialQuery&&a.setInitialQuery(this.initialQuery)},this.unsubscribe=_.subscribe(a=>this.handleStateChange(a))}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}handleStateChange(r){var s;this.adClientResponseItems=[...r.adClientResponseItems],this.config=(s=r.core)==null?void 0:s.config,this.initialSearchClientResponseItems=[...r.initialSearchClientResponseItems],this.isSearchInProgress=r.isSearchInProgress,this.searchClientResponseItems=[...r.searchClientResponseItems],this.searchResultsPage=r.searchResultsPage,this.searchResultsPerPage=r.searchResultsPerPage,this.searchTerm=r.searchTerm}renderEmptyState(){return l("div",{class:"searchcraft-search-results-empty-state"},l("slot",{name:"empty-search"}))}renderNoResultsFoundState(){return l("div",{class:"searchcraft-search-results"},l("div",{class:"searchcraft-search-results-error-message"},l("searchcraft-error-message",null,'No search results found for "',this.searchTerm,'" query.')))}renderWithADMAds(){var s,a,o;const r=(s=this.searchClientResponseItems)!=null&&s.length?this.searchClientResponseItems:(a=this.initialSearchClientResponseItems)!=null&&a.length?this.initialSearchClientResponseItems:[];return l("div",{class:"searchcraft-search-results"},(o=this.adClientResponseItems)==null?void 0:o.map(n=>l("searchcraft-ad",{adSource:"adMarketplace",adClientResponseItem:n,adContainerId:K(),key:n.id})),r.map((n,c)=>l("searchcraft-search-result",{key:n.id,"document-position":this.searchResultsPerPage*(this.searchResultsPage-1)+c,index:c,item:n,template:this.template})))}renderWithCustomAds(){var u,h,i,p,g,k;const r=[],s=((u=this.config)==null?void 0:u.customAdInterstitialInterval)||0,a=((h=this.config)==null?void 0:h.customAdInterstitialQuantity)||1,o=((i=this.config)==null?void 0:i.customAdStartQuantity)||0,n=((p=this.config)==null?void 0:p.customAdEndQuantity)||0,c=(g=this.searchClientResponseItems)!=null&&g.length?this.searchClientResponseItems:(k=this.initialSearchClientResponseItems)!=null&&k.length?this.initialSearchClientResponseItems:[];for(let b=0;b<o;b++)r.push(l("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${b}-ad`}));c.forEach((b,P)=>{if(s&&P%s===0&&P+s<c.length&&P>=s)for(let I=0;I<a;I++)r.push(l("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${b.id}-ad-${I}`}));r.push(l("searchcraft-search-result",{key:b.id,"document-position":this.searchResultsPerPage*(this.searchResultsPage-1)+P,index:P,item:b,template:this.template}))});for(let b=0;b<n;b++)r.push(l("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${b}-ad`}));return l("div",{class:"searchcraft-search-results"},r)}renderWithNativoAds(){var h,i,p,g,k,b,P;const r=[],s=((h=this.config)==null?void 0:h.nativoAdInterstialStartIndex)||0,a=((i=this.config)==null?void 0:i.nativoAdInterstitialInterval)||0,o=((p=this.config)==null?void 0:p.nativoAdInterstitialQuantity)||1,n=((g=this.config)==null?void 0:g.nativoAdStartQuantity)||0,c=((k=this.config)==null?void 0:k.nativoAdEndQuantity)||0,u=(b=this.searchClientResponseItems)!=null&&b.length?this.searchClientResponseItems:(P=this.initialSearchClientResponseItems)!=null&&P.length?this.initialSearchClientResponseItems:[];for(let I=0;I<n;I++)r.push(l("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${I}-ad`}));u.forEach((I,F)=>{if(a&&(F+s)%a===0&&F+a<u.length&&F>=a)for(let T=0;T<o;T++)r.push(l("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${I.id}-ad-${T}`}));r.push(l("searchcraft-search-result",{key:I.id,"document-position":this.searchResultsPerPage*(this.searchResultsPage-1)+F,index:F,item:I,template:this.template}))});for(let I=0;I<c;I++)r.push(l("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${I}-ad`}));return l("div",{class:"searchcraft-search-results"},r)}renderWithNoAds(){var s,a;const r=(s=this.searchClientResponseItems)!=null&&s.length?this.searchClientResponseItems:(a=this.initialSearchClientResponseItems)!=null&&a.length?this.initialSearchClientResponseItems:[];return l("div",{class:"searchcraft-search-results"},r.map((o,n)=>l("searchcraft-search-result",{key:o.id,"document-position":this.searchResultsPerPage*(this.searchResultsPage-1)+n,index:n,item:o,template:this.template})))}render(){var a;const r=this.searchClientResponseItems||[],s=this.initialSearchClientResponseItems||[];if(this.searchTerm===""&&s.length===0&&!this.isSearchInProgress)return this.renderEmptyState();if(this.searchTerm.length>0&&r.length===0&&!this.isSearchInProgress)return this.renderNoResultsFoundState();switch(((a=this.config)==null?void 0:a.adSource)||"None"){case"adMarketplace":return this.renderWithADMAds();case"Custom":return this.renderWithCustomAds();case"Nativo":return this.renderWithNativoAds();default:return this.renderWithNoAds()}}},[4,"searchcraft-search-results",{initialQuery:[1,"initial-query"],template:[16],adClientResponseItems:[32],config:[32],initialSearchClientResponseItems:[32],isSearchInProgress:[32],searchClientResponseItems:[32],searchResultsPage:[32],searchResultsPerPage:[32],searchTerm:[32]}]);function Wo(){if(typeof customElements>"u")return;["searchcraft-search-results","searchcraft-ad","searchcraft-error-message","searchcraft-search-result"].forEach(t=>{switch(t){case"searchcraft-search-results":customElements.get(t)||customElements.define(t,Bo);break;case"searchcraft-ad":customElements.get(t)||gt();break;case"searchcraft-error-message":customElements.get(t)||bt();break;case"searchcraft-search-result":customElements.get(t)||Es();break}})}const Go=Wo,qo=H(class extends D{constructor(){super();f(this,"caption");f(this,"disabled",!1);f(this,"inputId");f(this,"label");f(this,"labelId");f(this,"name");f(this,"options",[]);f(this,"selectChange");f(this,"searchResultsPerPage");f(this,"setSearchResultsPage",()=>{});f(this,"setSearchResultsPerPage",()=>{});f(this,"handleSelectChange",r=>{this.selectChange.emit(r.target.value)});this.__registerHost(),this.selectChange=we(this,"selectChange")}handleGoToPage(r){this.setSearchResultsPage(r)}render(){return l("div",{key:"15ecbf48c824a161cd83bdab99dace8e44f1ab39",class:"searchcraft-select"},this.label&&l("label",{key:"aba433ae9c27c9405099cffcef923c3ad22d7fda",class:"searchcraft-select-label",id:this.labelId||`${this.inputId}-label`,htmlFor:this.inputId},this.label),l("div",{key:"8df8a2ff05924c9c55cdd6e3827cd927cddab82a",class:"searchcraft-select-input-wrapper"},l("select",{key:"1d5f492c2255f8ca1b6ea5e04a2726dda2f2c52f","aria-labelledby":this.label?this.labelId||`${this.inputId}-label`:void 0,class:"searchcraft-select-input",disabled:this.disabled,id:this.inputId,name:this.name,onChange:this.handleSelectChange},(typeof this.options=="string"?JSON.parse(this.options):this.options).map(({label:r,value:s,selected:a})=>l("option",{key:s,value:s,selected:a},r))),l("svg",{key:"0ec6892b529f2e70027aadea47208582a65a97b7",class:"searchcraft-select-input-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l("title",{key:"bced6b62378491d1d1c629b602d7d033d912c761"},"Select dropdown icon"),l("path",{key:"659f8ebf9129e2e7941da949d29688c41c1472bb",d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))),this.caption&&l("p",{key:"51217d926f68f79b6c3514f5fd769b56549fdce9",class:"searchcraft-select-caption"},this.caption))}},[0,"searchcraft-select",{caption:[1],disabled:[4],inputId:[1,"input-id"],label:[1],labelId:[1,"label-id"],name:[1],options:[1],searchResultsPerPage:[32],setSearchResultsPage:[32],setSearchResultsPerPage:[32]}]);function Ps(){if(typeof customElements>"u")return;["searchcraft-select"].forEach(t=>{switch(t){case"searchcraft-select":customElements.get(t)||customElements.define(t,qo);break}})}const Yo=H(class extends D{constructor(){super();f(this,"increment",20);f(this,"searchTerm");f(this,"searchResultsPage");f(this,"searchResultsPerPage");f(this,"searchResultsCount");f(this,"searchResultsPagesCount");f(this,"initialSearchResultsPerPage");f(this,"setSearchResultsPerPage",()=>{});f(this,"setSearchResultsPage",()=>{});f(this,"unsubscribe",()=>{});this.__registerHost()}componentDidLoad(){this.unsubscribe=_.subscribe(r=>{this.searchTerm=r.searchTerm,this.searchResultsPerPage=r.searchResultsPerPage,this.searchResultsPage=r.searchResultsPage,this.searchResultsCount=r.searchResultsCount,this.searchResultsPagesCount=Math.ceil(this.searchResultsCount/this.searchResultsPerPage),this.setSearchResultsPage=r.setSearchResultsPage,this.setSearchResultsPerPage=r.setSearchResultsPerPage}),this.initialSearchResultsPerPage=_.getState().searchResultsPerPage}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}render(){if(!(!this.searchTerm||this.searchResultsPagesCount<=1))return l("div",{class:"searchcraft-search-results-per-page"},l("div",{class:"searchcraft-search-results-per-page-select"},l("label",{class:"searchcraft-search-results-per-page-select-label",htmlFor:"searchcraft-search-results-per-page-select-input"},"Results Per Page"),l("div",{class:"searchcraft-search-results-per-page-select-input"},l("searchcraft-select",{inputId:"searchcraft-search-results-per-page-select-input",name:"results-per-page",options:[...Array(5)].map((r,s)=>{const a=this.initialSearchResultsPerPage+Number(this.increment)*s;return{label:`${a}`,value:a}}),onSelectChange:r=>{this.setSearchResultsPerPage(Number(r.detail)),this.setSearchResultsPage(1)}}))))}},[0,"searchcraft-search-results-per-page",{increment:[8],searchTerm:[32],searchResultsPage:[32],searchResultsPerPage:[32],searchResultsCount:[32],searchResultsPagesCount:[32],initialSearchResultsPerPage:[32],setSearchResultsPerPage:[32],setSearchResultsPage:[32]}]);function Zo(){if(typeof customElements>"u")return;["searchcraft-search-results-per-page","searchcraft-select"].forEach(t=>{switch(t){case"searchcraft-search-results-per-page":customElements.get(t)||customElements.define(t,Yo);break;case"searchcraft-select":customElements.get(t)||Ps();break}})}const Qo=Zo,Ko=Ps,Xo=Ss,Jo=`[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-ad{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased}.searchcraft-ad-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-ad-no-template>p{margin:0}.searchcraft-adm-ad{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-result{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased}.searchcraft-search-result-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-search-result-no-template>p{margin:0}.searchcraft-search-results{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state{text-align:center}.searchcraft-search-results-error-message{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background:none;border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;gap:4px;padding:12px;position:relative}.searchcraft-button.searchcraft-button-disabled{cursor:not-allowed}.searchcraft-button-primary{background-color:var(--sc-surface-brand-primary);color:var(--sc-content-brand-on-primary);font-weight:var(--sc-font-bold)}.searchcraft-button-primary:hover{background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button-primary:focus{border-color:var(--sc-border-primary)}.searchcraft-button-primary:active{background-color:var(--sc-surface-brand-primary-active)}.searchcraft-button-primary.searchcraft-button-disabled,.searchcraft-button-primary.searchcraft-button-disabled:hover,.searchcraft-button-primary.searchcraft-button-disabled:focus,.searchcraft-button-primary.searchcraft-button-disabled:active{background-color:var(--sc-surface-disabled);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-tertiary{background-color:var(--sc-surface-neutral-primary);color:var(--sc-content-brand);font-weight:var(--sc-font-normal)}.searchcraft-button-tertiary:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-button-tertiary:focus{background-color:var(--sc-surface-neutral-light);border-color:var(--sc-border-primary)}.searchcraft-button-tertiary:active{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-button-tertiary.searchcraft-button-disabled,.searchcraft-button-tertiary.searchcraft-button-disabled:hover,.searchcraft-button-tertiary.searchcraft-button-disabled:focus,.searchcraft-button-tertiary.searchcraft-button-disabled:active{background-color:var(--sc-surface-neutral-light);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-icon{fill:none}.searchcraft-error-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-danger);margin:0}.searchcraft-facet-list{display:flex;flex-direction:column;gap:6px;width:100%}.searchcraft-facet-list-checkbox-label{align-items:center;color:var(--sc-content-neutral-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.searchcraft-facet-list-checkbox-input-wrapper{position:relative}.searchcraft-facet-list-checkbox-input{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:var(--sc-border-radius-sm);cursor:pointer;display:flex;height:24px;justify-content:center;width:24px;margin:0}.searchcraft-facet-list-checkbox-input:focus{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-facet-list-checkbox-input:checked{background-color:var(--sc-surface-brand-primary);position:relative}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-check-icon{display:block}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-dash-icon{display:block}.searchcraft-facet-child-list{display:flex;flex-direction:column;gap:6px}.searchcraft-facet-child-list-checkbox-label{margin-left:24px}.searchcraft-facet-child-list-checkbox-label:first-child{margin-top:6px}.searchcraft-facet-list-checkbox-input-check-icon{display:none;height:16px;left:50%;position:absolute;margin-top:2px;top:50%;transform:translate(-50%, -50%);width:16px}.searchcraft-facet-list-checkbox-input-dash-icon{display:none;height:3px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:14px}.searchcraft-facet-list-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-disabled);text-align:center}.searchcraft-filter-panel{display:flex;flex-direction:column;gap:16px}.searchcraft-filter-panel-section{display:flex;flex-direction:column;gap:8px}.searchcraft-filter-panel-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}:root{--sc-input-form-border-radius: var(--sc-border-radius);--sc-input-form-search-icon-size: 20px;--sc-input-form-clear-icon-size: 20px}.searchcraft-input-form-grid{display:grid;gap:4px 8px}.searchcraft-input-form-grid-button-left{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-form-grid-button-left .searchcraft-input-form-button{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-label{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-error-message{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-form-grid-button-right .searchcraft-input-form-button{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-none{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-form-grid-button-none .searchcraft-input-form-button{display:none}.searchcraft-input-form-grid-button-none .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-input-wrapper{display:flex;position:relative}.searchcraft-input-form-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-form-border-radius);border:none;color:var(--sc-content-neutral-primary);flex:1;outline:none;padding:12px 44px}.searchcraft-input-form-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input-form-input:focus{outline:var(--sc-border-brand) solid 2px;outline-offset:-1px}.searchcraft-input-form-input:focus::placeholder{opacity:0}.searchcraft-input-form-error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-input-icon{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;pointer-events:none;top:0;width:44px}.searchcraft-input-form-input-search-icon{color:var(--sc-content-neutral-secondary);fill:none;height:var(--sc-input-form-search-icon-size);pointer-events:none;width:var(--sc-input-form-search-icon-size)}.searchcraft-input-form-clear-button{all:unset;align-items:center;bottom:0;border:none;cursor:pointer;display:flex;justify-content:center;outline:none;position:absolute;right:0;top:0;width:44px}.searchcraft-input-form-clear-icon{color:var(--sc-content-brand);fill:none;height:var(--sc-input-form-clear-icon-size);width:var(--sc-input-form-clear-icon-size)}.searchcraft-input-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-button-border-radius: var(--sc-border-radius)}@media(min-width: 576px){:root{--sc-popover-button-border-radius: var(--sc-border-radius-lg)}}.searchcraft-popover-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);cursor:pointer}.searchcraft-popover-button-skeuomorphic{appearance:none;background:none;border:none;color:var(--sc-content-neutral-primary);display:block;width:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-popover-button-border-radius);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;display:flex;gap:24px;height:40px;justify-content:space-between;line-height:1;padding:4px 5px 4px 10px;background:var(--sc-surface-neutral-primary)}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;height:63px;padding:8px 10px 8px 16px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{align-items:center;display:flex;gap:4px}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{color:var(--sc-content-neutral-secondary);display:flex;gap:4px;font-size:20px;font-weight:500}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 3px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 3px);background-color:var(--sc-surface-neutral-primary);box-shadow:0 3px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 6px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 2px);position:relative}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 8px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 8px);box-shadow:0 4px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 6px 1px rgb(from var(--sc-content-neutral-secondary) r g b/20%),0 7px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 9px 4px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 13px 8px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 5px)}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before,.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{content:"";display:block}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 4px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 4px);background:linear-gradient(340deg, rgb(from var(--sc-surface-neutral-secondary) r g b/2%) 0%, var(--sc-surface-neutral-secondary) 100%);inset:2px;position:absolute}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 12px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 12px);inset:4px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{aspect-ratio:1/1;height:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap>span{display:flex;line-height:1;left:50%;margin-top:2%;position:absolute;top:50%;transform:translate(-50%, -50%)}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:60%;width:auto}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:50%}}:root{--sc-popover-list-view-height: 600px;--sc-popover-modal-max-width: 800px}.searchcraft-popover-form{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);display:flex;flex:1;flex-direction:column}.searchcraft-popover-form searchcraft-input-form,.searchcraft-popover-form searchcraft-popover-footer{width:100%}.searchcraft-popover-form.searchcraft-popover-form-active .searchcraft-popover-form-input{padding-bottom:1px}.searchcraft-popover-form searchcraft-popover-list-view{flex-shrink:1;height:100%;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-input{display:flex;flex-direction:row;gap:12px}.searchcraft-popover-form-input .searchcraft-input-form-input{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius-lg);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;width:0}.searchcraft-popover-form-cancel-button{background:none;border:none;cursor:pointer;font-size:14px}.searchcraft-popover-form-modal-input,.searchcraft-popover-form-fullscreen-input{padding:24px}.searchcraft-popover-form-modal-popover-list-view,.searchcraft-popover-form-fullscreen-popover-list-view{flex-grow:1;flex-shrink:1;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-inline{background-color:var(--sc-surface-neutral-primary);border:1px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius-xl);padding:12px;position:relative}.searchcraft-popover-form-inline.searchcraft-popover-form-active{border:1px solid var(--sc-border-neutral);border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:1px}.searchcraft-popover-form-inline searchcraft-popover-list-view{padding:0 12px}.searchcraft-popover-form-inline .searchcraft-input-form-input,.searchcraft-popover-form-inline .searchcraft-popover-list-item-link,.searchcraft-popover-form-inline .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-xl - 12px);border-radius:calc(var(--sc-border-radius-xl) - 12px)}.searchcraft-popover-form-inline-wrapper{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-top:none;border-bottom-left-radius:var(--sc-border-radius-xl);border-bottom-right-radius:var(--sc-border-radius-xl);display:flex;flex-direction:column;left:-1px;max-height:var(--sc-popover-list-view-height);overflow:hidden;position:absolute;right:-1px;top:100%}.searchcraft-popover-form-modal{align-items:center;display:flex;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-modal .searchcraft-input-form-input,.searchcraft-popover-form-modal .searchcraft-popover-list-item-link,.searchcraft-popover-form-modal .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px)}.searchcraft-popover-form-modal-backdrop{background-color:rgb(from var(--sc-content-neutral-primary) r g b/50%);display:none;inset:0;position:fixed}@media(min-width: 576px){.searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal-wrapper{background-color:var(--sc-surface-neutral-primary);box-shadow:1px 2px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 2px 4px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 4px 8px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 8px 16px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 16px 32px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 32px 64px rgb(from var(--sc-content-neutral-primary) r g b/7%);display:flex;flex-direction:column;inset:0;max-width:var(--sc-popover-modal-max-width);overflow:hidden;position:absolute;width:100%;z-index:1001}@media(min-width: 576px){.searchcraft-popover-form-modal-wrapper{border-radius:var(--sc-border-radius-2xl);inset:0;margin-top:100px;max-height:var(--sc-popover-list-view-height);max-width:var(--sc-popover-modal-max-width);position:relative}}.searchcraft-popover-form-modal-cancel-button{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-modal-cancel-button{padding:8px 12px}}.searchcraft-popover-form-fullscreen{background-color:var(--sc-surface-neutral-primary);display:flex;flex-direction:column;justify-content:space-between;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-fullscreen .searchcraft-popover-list-item-link,.searchcraft-popover-form-fullscreen .searchcraft-adm-ad-link{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-form-fullscreen-cancel-button{border-radius:var(--sc-border-radius-lg);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-fullscreen-cancel-button{padding:8px 12px}}.searchcraft-popover-footer{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;background-color:var(--sc-surface-neutral-secondary);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;display:flex;gap:8px;justify-content:space-between;line-height:1;padding:20px 24px}@media(min-width: 576px){.searchcraft-popover-footer{padding:20px 32px}}.searchcraft-popover-footer-results-info{margin:0}.searchcraft-popover-footer-link{color:var(--sc-content-neutral-primary);display:flex;max-width:160px;width:100%}:root{--sc-popover-list-item-image-fit: contain}.searchcraft-popover-list-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-popover-list-item:last-child .searchcraft-popover-list-item{border-bottom:none}.searchcraft-popover-list-item-link{align-items:flex-start;color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-popover-list-item-link:focus,.searchcraft-popover-list-item-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-popover-list-item-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-popover-list-item-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-popover-list-item-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-popover-list-item-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-popover-list-item-content-title,.searchcraft-popover-list-item-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-popover-list-item-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-popover-list-item-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-popover-list-view{display:flex;flex-direction:column}.searchcraft-results-info{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-primary);margin:0}.searchcraft-slider{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range{background-color:var(--sc-surface-brand-primary);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%);z-index:0}.searchcraft-slider-range .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-input{appearance:none;background:rgba(0,0,0,0);border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px}.searchcraft-slider-label{color:var(--sc-content-primary);display:flex;font-family:"Source Sans Pro",sans-serif;font-size:15px;font-weight:600;justify-content:space-between;margin-top:10px;width:100%}.searchcraft-slider-start-label,.searchcraft-slider-end-label{min-width:30px;text-align:center}.searchcraft-toggle-button{align-items:flex-start;display:flex;gap:10px;justify-content:space-between}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);margin:0}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-toggle-button-background{background:var(--sc-surface-disabled);border-radius:var(--sc-border-radius-full);border:none;cursor:pointer;flex-shrink:0;height:26px;position:relative;transition:background-color .2s;width:44px}.searchcraft-toggle-button-handle{background:var(--sc-surface-neutral-light);border-radius:50%;height:18px;left:4px;position:absolute;top:calc(50% - 9px);transition:transform .3s ease;width:18px}.searchcraft-toggle-button-active .searchcraft-toggle-button-background{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.searchcraft-toggle-button-active .searchcraft-toggle-button-handle{transform:translateX(16px)}.searchcraft-pagination{display:inline-grid;gap:16px;grid-template-columns:repeat(3, auto);grid-template-rows:1fr}.searchcraft-pagination-list{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius);display:flex;list-style-type:none;margin:0;overflow:hidden;padding:0;width:auto}.searchcraft-pagination-list li{border-right:1px solid var(--sc-border-neutral);height:100%;min-height:44px;width:44px}.searchcraft-pagination-list li:last-child{border-right:none}.searchcraft-pagination-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;background-color:var(--sc-surface-neutral-primary);border:none;display:flex;height:100%;justify-content:center;width:100%}.searchcraft-pagination-item-active{background-color:var(--sc-surface-brand-secondary);font-weight:var(--sc-font-bold)}.searchcraft-pagination-control{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius)}.searchcraft-pagination-range{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);appearance:none;background-color:var(--sc-surface-neutral-secondary);border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;height:44px;padding:0 44px 0 16px;width:100%}.searchcraft-select-input:hover{background-color:var(--sc-surface-neutral-secondary-hover)}.searchcraft-select-input:active{background-color:var(--sc-surface-neutral-secondary-active)}.searchcraft-select-input:focus{border-color:var(--sc-border-brand);outline:none}.searchcraft-select-input-icon{fill:none;pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page{display:flex}.searchcraft-search-results-per-page-select{align-items:center;display:flex;gap:12px}.searchcraft-search-results-per-page-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
|
|
25
|
-
`,
|
|
23
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",n=0;n<arguments.length;n++){var c=arguments[n];c&&(o=a(o,s(c)))}return o}function s(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var n="";for(var c in o)t.call(o,c)&&o[c]&&(n=a(n,c));return n}function a(o,n){return n?o?o+" "+n:o+n:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(ps);const se=ps.exports;var eo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ms={exports:{}};/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */(function(e,t){(function(r,s){e.exports=s()})(eo,function(){const{entries:r,setPrototypeOf:s,isFrozen:a,getPrototypeOf:o,getOwnPropertyDescriptor:n}=Object;let{freeze:c,seal:i,create:u}=Object,{apply:h,construct:p}=typeof Reflect<"u"&&Reflect;c||(c=function(C){return C}),i||(i=function(C){return C}),h||(h=function(C,$,R){return C.apply($,R)}),p||(p=function(C,$){return new C(...$)});const m=X(Array.prototype.forEach),b=X(Array.prototype.lastIndexOf),y=X(Array.prototype.pop),T=X(Array.prototype.push),I=X(Array.prototype.splice),F=X(String.prototype.toLowerCase),P=X(String.prototype.toString),be=X(String.prototype.match),ce=X(String.prototype.replace),Re=X(String.prototype.indexOf),U=X(String.prototype.trim),ae=X(Object.prototype.hasOwnProperty),z=X(RegExp.prototype.test),Te=Pc(TypeError);function X(x){return function(C){for(var $=arguments.length,R=new Array($>1?$-1:0),Y=1;Y<$;Y++)R[Y-1]=arguments[Y];return h(x,C,R)}}function Pc(x){return function(){for(var C=arguments.length,$=new Array(C),R=0;R<C;R++)$[R]=arguments[R];return p(x,$)}}function E(x,C){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:F;s&&s(x,null);let R=C.length;for(;R--;){let Y=C[R];if(typeof Y=="string"){const ye=$(Y);ye!==Y&&(a(C)||(C[R]=ye),Y=ye)}x[Y]=!0}return x}function $c(x){for(let C=0;C<x.length;C++)ae(x,C)||(x[C]=null);return x}function Pe(x){const C=u(null);for(const[$,R]of r(x))ae(x,$)&&(Array.isArray(R)?C[$]=$c(R):R&&typeof R=="object"&&R.constructor===Object?C[$]=Pe(R):C[$]=R);return C}function Ke(x,C){for(;x!==null;){const R=n(x,C);if(R){if(R.get)return X(R.get);if(typeof R.value=="function")return X(R.value)}x=o(x)}function $(){return null}return $}const Ls=c(["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"]),rr=c(["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"]),sr=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_c=c(["animate","color-profile","cursor","discard","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"]),ar=c(["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","mprescripts"]),Ic=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Fs=c(["#text"]),Ds=c(["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","popover","popovertarget","popovertargetaction","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","wrap","xmlns","slot"]),nr=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","slope","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","tablevalues","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"]),Ns=c(["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"]),Ct=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ac=i(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Mc=i(/<%[\w\W]*|[\w\W]*%>/gm),Oc=i(/\$\{[\w\W]*/gm),Lc=i(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fc=i(/^aria-[\-\w]+$/),Hs=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Dc=i(/^(?:\w+script|data):/i),Nc=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Us=i(/^html$/i),Hc=i(/^[a-z][.\w]*(-[.\w]+)+$/i);var zs=Object.freeze({__proto__:null,ARIA_ATTR:Fc,ATTR_WHITESPACE:Nc,CUSTOM_ELEMENT:Hc,DATA_ATTR:Lc,DOCTYPE_NAME:Us,ERB_EXPR:Mc,IS_ALLOWED_URI:Hs,IS_SCRIPT_OR_DATA:Dc,MUSTACHE_EXPR:Ac,TMPLIT_EXPR:Oc});const Xe={element:1,text:3,progressingInstruction:7,comment:8,document:9},Uc=function(){return typeof window>"u"?null:window},zc=function(C,$){if(typeof C!="object"||typeof C.createPolicy!="function")return null;let R=null;const Y="data-tt-policy-suffix";$&&$.hasAttribute(Y)&&(R=$.getAttribute(Y));const ye="dompurify"+(R?"#"+R:"");try{return C.createPolicy(ye,{createHTML(De){return De},createScriptURL(De){return De}})}catch{return console.warn("TrustedTypes policy "+ye+" could not be created."),null}},Bs=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Vs(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Uc();const C=S=>Vs(S);if(C.version="3.2.4",C.removed=[],!x||!x.document||x.document.nodeType!==Xe.document||!x.Element)return C.isSupported=!1,C;let{document:$}=x;const R=$,Y=R.currentScript,{DocumentFragment:ye,HTMLTemplateElement:De,Node:or,Element:js,NodeFilter:Je,NamedNodeMap:Vc=x.NamedNodeMap||x.MozNamedAttrMap,HTMLFormElement:jc,DOMParser:Wc,trustedTypes:St}=x,et=js.prototype,Gc=Ke(et,"cloneNode"),qc=Ke(et,"remove"),Yc=Ke(et,"nextSibling"),Zc=Ke(et,"childNodes"),wt=Ke(et,"parentNode");if(typeof De=="function"){const S=$.createElement("template");S.content&&S.content.ownerDocument&&($=S.content.ownerDocument)}let J,tt="";const{implementation:cr,createNodeIterator:Qc,createDocumentFragment:Kc,getElementsByTagName:Xc}=$,{importNode:Jc}=R;let ee=Bs();C.isSupported=typeof r=="function"&&typeof wt=="function"&&cr&&cr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ir,ERB_EXPR:lr,TMPLIT_EXPR:ur,DATA_ATTR:ei,ARIA_ATTR:ti,IS_SCRIPT_OR_DATA:ri,ATTR_WHITESPACE:Ws,CUSTOM_ELEMENT:si}=zs;let{IS_ALLOWED_URI:Gs}=zs,B=null;const qs=E({},[...Ls,...rr,...sr,...ar,...Fs]);let W=null;const Ys=E({},[...Ds,...nr,...Ns,...Ct]);let H=Object.seal(u(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}})),rt=null,hr=null,Zs=!0,dr=!0,Qs=!1,Ks=!0,Ne=!1,fr=!0,$e=!1,pr=!1,mr=!1,He=!1,kt=!1,Et=!1,Xs=!0,Js=!1;const ai="user-content-";let gr=!0,st=!1,Ue={},ze=null;const ea=E({},["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"]);let ta=null;const ra=E({},["audio","video","img","source","image","track"]);let vr=null;const sa=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xt="http://www.w3.org/1998/Math/MathML",Rt="http://www.w3.org/2000/svg",Ce="http://www.w3.org/1999/xhtml";let Be=Ce,br=!1,yr=null;const ni=E({},[xt,Rt,Ce],P);let Tt=E({},["mi","mo","mn","ms","mtext"]),Pt=E({},["annotation-xml"]);const oi=E({},["title","style","font","a","script"]);let at=null;const ci=["application/xhtml+xml","text/html"],ii="text/html";let V=null,Ve=null;const li=$.createElement("form"),aa=function(d){return d instanceof RegExp||d instanceof Function},Cr=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ve&&Ve===d)){if((!d||typeof d!="object")&&(d={}),d=Pe(d),at=ci.indexOf(d.PARSER_MEDIA_TYPE)===-1?ii:d.PARSER_MEDIA_TYPE,V=at==="application/xhtml+xml"?P:F,B=ae(d,"ALLOWED_TAGS")?E({},d.ALLOWED_TAGS,V):qs,W=ae(d,"ALLOWED_ATTR")?E({},d.ALLOWED_ATTR,V):Ys,yr=ae(d,"ALLOWED_NAMESPACES")?E({},d.ALLOWED_NAMESPACES,P):ni,vr=ae(d,"ADD_URI_SAFE_ATTR")?E(Pe(sa),d.ADD_URI_SAFE_ATTR,V):sa,ta=ae(d,"ADD_DATA_URI_TAGS")?E(Pe(ra),d.ADD_DATA_URI_TAGS,V):ra,ze=ae(d,"FORBID_CONTENTS")?E({},d.FORBID_CONTENTS,V):ea,rt=ae(d,"FORBID_TAGS")?E({},d.FORBID_TAGS,V):{},hr=ae(d,"FORBID_ATTR")?E({},d.FORBID_ATTR,V):{},Ue=ae(d,"USE_PROFILES")?d.USE_PROFILES:!1,Zs=d.ALLOW_ARIA_ATTR!==!1,dr=d.ALLOW_DATA_ATTR!==!1,Qs=d.ALLOW_UNKNOWN_PROTOCOLS||!1,Ks=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ne=d.SAFE_FOR_TEMPLATES||!1,fr=d.SAFE_FOR_XML!==!1,$e=d.WHOLE_DOCUMENT||!1,He=d.RETURN_DOM||!1,kt=d.RETURN_DOM_FRAGMENT||!1,Et=d.RETURN_TRUSTED_TYPE||!1,mr=d.FORCE_BODY||!1,Xs=d.SANITIZE_DOM!==!1,Js=d.SANITIZE_NAMED_PROPS||!1,gr=d.KEEP_CONTENT!==!1,st=d.IN_PLACE||!1,Gs=d.ALLOWED_URI_REGEXP||Hs,Be=d.NAMESPACE||Ce,Tt=d.MATHML_TEXT_INTEGRATION_POINTS||Tt,Pt=d.HTML_INTEGRATION_POINTS||Pt,H=d.CUSTOM_ELEMENT_HANDLING||{},d.CUSTOM_ELEMENT_HANDLING&&aa(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=d.CUSTOM_ELEMENT_HANDLING.tagNameCheck),d.CUSTOM_ELEMENT_HANDLING&&aa(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),d.CUSTOM_ELEMENT_HANDLING&&typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(dr=!1),kt&&(He=!0),Ue&&(B=E({},Fs),W=[],Ue.html===!0&&(E(B,Ls),E(W,Ds)),Ue.svg===!0&&(E(B,rr),E(W,nr),E(W,Ct)),Ue.svgFilters===!0&&(E(B,sr),E(W,nr),E(W,Ct)),Ue.mathMl===!0&&(E(B,ar),E(W,Ns),E(W,Ct))),d.ADD_TAGS&&(B===qs&&(B=Pe(B)),E(B,d.ADD_TAGS,V)),d.ADD_ATTR&&(W===Ys&&(W=Pe(W)),E(W,d.ADD_ATTR,V)),d.ADD_URI_SAFE_ATTR&&E(vr,d.ADD_URI_SAFE_ATTR,V),d.FORBID_CONTENTS&&(ze===ea&&(ze=Pe(ze)),E(ze,d.FORBID_CONTENTS,V)),gr&&(B["#text"]=!0),$e&&E(B,["html","head","body"]),B.table&&(E(B,["tbody"]),delete rt.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw Te('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Te('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=d.TRUSTED_TYPES_POLICY,tt=J.createHTML("")}else J===void 0&&(J=zc(St,Y)),J!==null&&typeof tt=="string"&&(tt=J.createHTML(""));c&&c(d),Ve=d}},na=E({},[...rr,...sr,..._c]),oa=E({},[...ar,...Ic]),ui=function(d){let g=wt(d);(!g||!g.tagName)&&(g={namespaceURI:Be,tagName:"template"});const v=F(d.tagName),M=F(g.tagName);return yr[d.namespaceURI]?d.namespaceURI===Rt?g.namespaceURI===Ce?v==="svg":g.namespaceURI===xt?v==="svg"&&(M==="annotation-xml"||Tt[M]):!!na[v]:d.namespaceURI===xt?g.namespaceURI===Ce?v==="math":g.namespaceURI===Rt?v==="math"&&Pt[M]:!!oa[v]:d.namespaceURI===Ce?g.namespaceURI===Rt&&!Pt[M]||g.namespaceURI===xt&&!Tt[M]?!1:!oa[v]&&(oi[v]||!na[v]):!!(at==="application/xhtml+xml"&&yr[d.namespaceURI]):!1},ue=function(d){T(C.removed,{element:d});try{wt(d).removeChild(d)}catch{qc(d)}},$t=function(d,g){try{T(C.removed,{attribute:g.getAttributeNode(d),from:g})}catch{T(C.removed,{attribute:null,from:g})}if(g.removeAttribute(d),d==="is")if(He||kt)try{ue(g)}catch{}else try{g.setAttribute(d,"")}catch{}},ca=function(d){let g=null,v=null;if(mr)d="<remove></remove>"+d;else{const G=be(d,/^[\r\n\t ]+/);v=G&&G[0]}at==="application/xhtml+xml"&&Be===Ce&&(d='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+d+"</body></html>");const M=J?J.createHTML(d):d;if(Be===Ce)try{g=new Wc().parseFromString(M,at)}catch{}if(!g||!g.documentElement){g=cr.createDocument(Be,"template",null);try{g.documentElement.innerHTML=br?tt:M}catch{}}const Z=g.body||g.documentElement;return d&&v&&Z.insertBefore($.createTextNode(v),Z.childNodes[0]||null),Be===Ce?Xc.call(g,$e?"html":"body")[0]:$e?g.documentElement:Z},ia=function(d){return Qc.call(d.ownerDocument||d,d,Je.SHOW_ELEMENT|Je.SHOW_COMMENT|Je.SHOW_TEXT|Je.SHOW_PROCESSING_INSTRUCTION|Je.SHOW_CDATA_SECTION,null)},Sr=function(d){return d instanceof jc&&(typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||!(d.attributes instanceof Vc)||typeof d.removeAttribute!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function")},la=function(d){return typeof or=="function"&&d instanceof or};function Se(S,d,g){m(S,v=>{v.call(C,d,g,Ve)})}const ua=function(d){let g=null;if(Se(ee.beforeSanitizeElements,d,null),Sr(d))return ue(d),!0;const v=V(d.nodeName);if(Se(ee.uponSanitizeElement,d,{tagName:v,allowedTags:B}),d.hasChildNodes()&&!la(d.firstElementChild)&&z(/<[/\w]/g,d.innerHTML)&&z(/<[/\w]/g,d.textContent)||d.nodeType===Xe.progressingInstruction||fr&&d.nodeType===Xe.comment&&z(/<[/\w]/g,d.data))return ue(d),!0;if(!B[v]||rt[v]){if(!rt[v]&&da(v)&&(H.tagNameCheck instanceof RegExp&&z(H.tagNameCheck,v)||H.tagNameCheck instanceof Function&&H.tagNameCheck(v)))return!1;if(gr&&!ze[v]){const M=wt(d)||d.parentNode,Z=Zc(d)||d.childNodes;if(Z&&M){const G=Z.length;for(let ne=G-1;ne>=0;--ne){const he=Gc(Z[ne],!0);he.__removalCount=(d.__removalCount||0)+1,M.insertBefore(he,Yc(d))}}}return ue(d),!0}return d instanceof js&&!ui(d)||(v==="noscript"||v==="noembed"||v==="noframes")&&z(/<\/no(script|embed|frames)/i,d.innerHTML)?(ue(d),!0):(Ne&&d.nodeType===Xe.text&&(g=d.textContent,m([ir,lr,ur],M=>{g=ce(g,M," ")}),d.textContent!==g&&(T(C.removed,{element:d.cloneNode()}),d.textContent=g)),Se(ee.afterSanitizeElements,d,null),!1)},ha=function(d,g,v){if(Xs&&(g==="id"||g==="name")&&(v in $||v in li))return!1;if(!(dr&&!hr[g]&&z(ei,g))){if(!(Zs&&z(ti,g))){if(!W[g]||hr[g]){if(!(da(d)&&(H.tagNameCheck instanceof RegExp&&z(H.tagNameCheck,d)||H.tagNameCheck instanceof Function&&H.tagNameCheck(d))&&(H.attributeNameCheck instanceof RegExp&&z(H.attributeNameCheck,g)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(g))||g==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&z(H.tagNameCheck,v)||H.tagNameCheck instanceof Function&&H.tagNameCheck(v))))return!1}else if(!vr[g]){if(!z(Gs,ce(v,Ws,""))){if(!((g==="src"||g==="xlink:href"||g==="href")&&d!=="script"&&Re(v,"data:")===0&&ta[d])){if(!(Qs&&!z(ri,ce(v,Ws,"")))){if(v)return!1}}}}}}return!0},da=function(d){return d!=="annotation-xml"&&be(d,si)},fa=function(d){Se(ee.beforeSanitizeAttributes,d,null);const{attributes:g}=d;if(!g||Sr(d))return;const v={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let M=g.length;for(;M--;){const Z=g[M],{name:G,namespaceURI:ne,value:he}=Z,nt=V(G);let te=G==="value"?he:U(he);if(v.attrName=nt,v.attrValue=te,v.keepAttr=!0,v.forceKeepAttr=void 0,Se(ee.uponSanitizeAttribute,d,v),te=v.attrValue,Js&&(nt==="id"||nt==="name")&&($t(G,d),te=ai+te),fr&&z(/((--!?|])>)|<\/(style|title)/i,te)){$t(G,d);continue}if(v.forceKeepAttr||($t(G,d),!v.keepAttr))continue;if(!Ks&&z(/\/>/i,te)){$t(G,d);continue}Ne&&m([ir,lr,ur],ma=>{te=ce(te,ma," ")});const pa=V(d.nodeName);if(ha(pa,nt,te)){if(J&&typeof St=="object"&&typeof St.getAttributeType=="function"&&!ne)switch(St.getAttributeType(pa,nt)){case"TrustedHTML":{te=J.createHTML(te);break}case"TrustedScriptURL":{te=J.createScriptURL(te);break}}try{ne?d.setAttributeNS(ne,G,te):d.setAttribute(G,te),Sr(d)?ue(d):y(C.removed)}catch{}}}Se(ee.afterSanitizeAttributes,d,null)},hi=function S(d){let g=null;const v=ia(d);for(Se(ee.beforeSanitizeShadowDOM,d,null);g=v.nextNode();)Se(ee.uponSanitizeShadowNode,g,null),ua(g),fa(g),g.content instanceof ye&&S(g.content);Se(ee.afterSanitizeShadowDOM,d,null)};return C.sanitize=function(S){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=null,v=null,M=null,Z=null;if(br=!S,br&&(S="<!-->"),typeof S!="string"&&!la(S))if(typeof S.toString=="function"){if(S=S.toString(),typeof S!="string")throw Te("dirty is not a string, aborting")}else throw Te("toString is not a function");if(!C.isSupported)return S;if(pr||Cr(d),C.removed=[],typeof S=="string"&&(st=!1),st){if(S.nodeName){const he=V(S.nodeName);if(!B[he]||rt[he])throw Te("root node is forbidden and cannot be sanitized in-place")}}else if(S instanceof or)g=ca("<!---->"),v=g.ownerDocument.importNode(S,!0),v.nodeType===Xe.element&&v.nodeName==="BODY"||v.nodeName==="HTML"?g=v:g.appendChild(v);else{if(!He&&!Ne&&!$e&&S.indexOf("<")===-1)return J&&Et?J.createHTML(S):S;if(g=ca(S),!g)return He?null:Et?tt:""}g&&mr&&ue(g.firstChild);const G=ia(st?S:g);for(;M=G.nextNode();)ua(M),fa(M),M.content instanceof ye&&hi(M.content);if(st)return S;if(He){if(kt)for(Z=Kc.call(g.ownerDocument);g.firstChild;)Z.appendChild(g.firstChild);else Z=g;return(W.shadowroot||W.shadowrootmode)&&(Z=Jc.call(R,Z,!0)),Z}let ne=$e?g.outerHTML:g.innerHTML;return $e&&B["!doctype"]&&g.ownerDocument&&g.ownerDocument.doctype&&g.ownerDocument.doctype.name&&z(Us,g.ownerDocument.doctype.name)&&(ne="<!DOCTYPE "+g.ownerDocument.doctype.name+`>
|
|
24
|
+
`+ne),Ne&&m([ir,lr,ur],he=>{ne=ce(ne,he," ")}),J&&Et?J.createHTML(ne):ne},C.setConfig=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Cr(S),pr=!0},C.clearConfig=function(){Ve=null,pr=!1},C.isValidAttribute=function(S,d,g){Ve||Cr({});const v=V(S),M=V(d);return ha(v,M,g)},C.addHook=function(S,d){typeof d=="function"&&T(ee[S],d)},C.removeHook=function(S,d){if(d!==void 0){const g=b(ee[S],d);return g===-1?void 0:I(ee[S],g,1)[0]}return y(ee[S])},C.removeHooks=function(S){ee[S]=[]},C.removeAllHooks=function(){ee=Bs()},C}var Bc=Vs();return Bc})})(ms);const to=ms.exports,Ye=(e,...t)=>{let r=e[0];for(let s=0;s<t.length;s++)r+=to.sanitize(t[s]?String(t[s]):"")+e[s+1];return r||""},ro="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let K=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=ro[r[e]&63];return t};const so=N(class extends D{constructor(){super();f(this,"adSource","Custom");f(this,"adClientResponseItem");f(this,"adContainerId",K());f(this,"searchTerm");f(this,"isSearchInProgress",!1);f(this,"core");f(this,"intersectionObserver");f(this,"storeUnsubscribe");f(this,"adContainerRenderedTimeout");f(this,"isComponentConnected",!0);this.__registerHost()}get hostElement(){return this}connectedCallback(){const r=_.getState();this.core=r.core,this.searchTerm=r.searchTerm,this.isSearchInProgress=r.isSearchInProgress,this.storeUnsubscribe=_.subscribe(s=>{this.searchTerm=s.searchTerm,this.isSearchInProgress=s.isSearchInProgress})}componentDidLoad(){this.hostElement&&(this.intersectionObserver=new IntersectionObserver(([r])=>{var s;r!=null&&r.isIntersecting&&!this.isSearchInProgress&&((s=this.core)==null||s.handleAdContainerViewed({adClientResponseItem:this.adClientResponseItem,adContainerId:this.adContainerId,adSource:this.adSource,searchTerm:this.searchTerm||""}))},{threshold:0}),this.intersectionObserver.observe(this.hostElement))}disconnectedCallback(){var r,s;(r=this.storeUnsubscribe)==null||r.call(this),(s=this.intersectionObserver)==null||s.disconnect(),this.isComponentConnected=!1,clearTimeout(this.adContainerRenderedTimeout)}renderADMAd(){var a,o,n,c;const r=this.adClientResponseItem;if(!r.admAd)return;let s="<p>Ad Marketplace Ad Placeholder</p>";return(o=(a=this.core)==null?void 0:a.config)!=null&&o.admAdTemplate&&(s=(c=(n=this.core)==null?void 0:n.config)==null?void 0:c.admAdTemplate(r.admAd,{html:Ye})),l("div",{class:"searchcraft-ad searchcraft-adm-ad","data-searchcraft-ad-container-id":this.adContainerId,id:`searchcraft-adm-ad-${this.adContainerId}`,innerHTML:s})}renderCustomAd(){var o,n;const r=(n=(o=this.core)==null?void 0:o.config)==null?void 0:n.customAdTemplate,s=`searchcraft-custom-ad-${this.adContainerId}`;let a="<p>Custom Ad Placeholder</p>";return r&&(a=r({searchTerm:this.searchTerm||"",adContainerId:this.adContainerId},{html:Ye})),l("div",{class:"searchcraft-ad searchcraft-custom-ad",id:s,"data-searchcraft-ad-container-id":this.adContainerId,innerHTML:a})}renderNativoAd(){var s;const r=((s=this.core)==null?void 0:s.config.nativoAdClassName)||"ntv-item";return l("div",{id:`searchcraft-native-ad-${this.adContainerId}`,class:se("searchcraft-ad",r),"data-searchcraft-ad-container-id":this.adContainerId})}render(){var r,s;if(!this.isSearchInProgress)switch(this.isComponentConnected&&(clearTimeout(this.adContainerRenderedTimeout),this.adContainerRenderedTimeout=setTimeout(()=>{var a;(a=this.core)==null||a.handleAdContainerRendered({adClientResponseItem:this.adClientResponseItem,adContainerId:this.adContainerId,adSource:this.adSource,searchTerm:this.searchTerm||""})},((s=(r=this.core)==null?void 0:r.config)==null?void 0:s.adContainerRenderedDebounceDelay)||500)),this.adSource){case"adMarketplace":return this.renderADMAd();case"Custom":return this.renderCustomAd();case"Nativo":return this.renderNativoAd();default:return}}},[0,"searchcraft-ad",{adSource:[1,"ad-source"],adClientResponseItem:[16],adContainerId:[1,"ad-container-id"],searchTerm:[32],isSearchInProgress:[32]}]);function vt(){if(typeof customElements>"u")return;["searchcraft-ad"].forEach(t=>{switch(t){case"searchcraft-ad":customElements.get(t)||customElements.define(t,so);break}})}const ao=vt,no=N(class extends D{constructor(){super();f(this,"hierarchy","primary");f(this,"disabled",!1);f(this,"icon");f(this,"iconOnly",!1);f(this,"iconPosition","left");f(this,"label","Search");f(this,"type","button");f(this,"buttonClick");f(this,"handleButtonClick",()=>{this.buttonClick.emit()});this.__registerHost(),this.buttonClick=ke(this,"buttonClick")}render(){return l("button",{key:"e54b4566e0286265bc0c8b6bb4e9ef26108575da","aria-label":this.label,class:se("searchcraft-button",{"searchcraft-button-primary":this.hierarchy==="primary","searchcraft-button-tertiary":this.hierarchy==="tertiary","searchcraft-button-disabled":this.disabled}),disabled:this.disabled,onClick:this.handleButtonClick,type:this.type},this.iconOnly?this.icon:l(rn,null,this.iconPosition==="left"&&this.icon,l("span",null,this.label),this.iconPosition==="right"&&this.icon))}},[0,"searchcraft-button",{hierarchy:[1],disabled:[4],icon:[16],iconOnly:[4,"icon-only"],iconPosition:[1,"icon-position"],label:[1],type:[1]}]);function bt(){if(typeof customElements>"u")return;["searchcraft-button"].forEach(t=>{switch(t){case"searchcraft-button":customElements.get(t)||customElements.define(t,no);break}})}const oo=bt,co=N(class extends D{constructor(){super(),this.__registerHost()}render(){return l("div",{key:"d42f7abf8dfb2620622b8012d868d32f04b2f354",class:"searchcraft-error-message"},l("slot",{key:"75a7811576ea8afe80a7ae739f5cf2d411f976df"},"Search term is required."))}},[4,"searchcraft-error-message"]);function yt(){if(typeof customElements>"u")return;["searchcraft-error-message"].forEach(t=>{switch(t){case"searchcraft-error-message":customElements.get(t)||customElements.define(t,co);break}})}const io=yt,lo=(e,t)=>{let r=e;for(const s of t)r=r==null?void 0:r.children[s];return r},gs=(e,t)=>{const r={...e};for(const s in t)t.hasOwnProperty(s)&&(t[s]instanceof Object&&e[s]instanceof Object?r[s]=gs(e[s],t[s]):r[s]=t[s]);return r};function uo(e){return e.filter((t,r,s)=>!s.some((a,o)=>o!==r&&a.includes(t)))}const Kt=(e,t)=>{const r=structuredClone(e),s=(a,o)=>{var i;const n=structuredClone(a),c=lo(t,o);if(!c)return n;for(const u of Object.keys(a.children))c.children[u]?n.children[u]={...gs(a.children[u],c.children[u]),count:((i=n.children[u])==null?void 0:i.count)||0}:n.children[u]&&(n.children[u]=s(n.children[u],[...o,u]));return n};return s(r,[])},vs=e=>{const t={path:"/",count:0,children:{}},r=[],s=a=>{if(a.path!=="/"&&r.push({path:a.path,count:a.count}),a.children)for(const o of a.children)s(o)};s(e);for(const{path:a,count:o}of r){const n=a.split("/").filter(Boolean);let c=t;for(const i of n){const u=c.path==="/"?`/${i}`:`${c.path}/${i}`;c.children[i]||(c.children[i]={path:u,count:o,children:{}}),c=c.children[i]}c.count=o}return t},ho=N(class extends D{constructor(){super();f(this,"fieldName","");f(this,"facetSelectionUpdated");f(this,"facetTree",{path:"/",count:0,children:{}});f(this,"selectedPaths",{});f(this,"lastTimeTaken");f(this,"lastSearchTerm");f(this,"lastSearchMode");f(this,"lastSortType");f(this,"lastRangeValues");f(this,"lastFacetValues");f(this,"unsubscribe");f(this,"formatFacetName",r=>`${r.replace(/^\//,"").replace(/-/g," ").replace(/\b\w/g,a=>a.toUpperCase())}`);this.__registerHost(),this.facetSelectionUpdated=ke(this,"facetSelectionUpdated")}handleIncomingSearchResponse(r,s){var c,i;const a=(c=r.searchResponseFacetPrime)==null?void 0:c.find(u=>this.fieldName===Object.keys(u)[0]),o=a==null?void 0:a[this.fieldName],n=vs({path:"/",count:0,children:o||[]});switch(s){case"SEARCH_TERM_EMPTY":this.facetTree={path:"/",count:0,children:{}};break;case"NEW_SEARCH_TERM":this.facetTree=n;break;case"EXACT_MATCH_UPDATE":case"RANGE_VALUE_UPDATE":{if(r.supplementalFacetPrime){const u=(i=r.supplementalFacetPrime)==null?void 0:i.find(m=>this.fieldName===Object.keys(m)[0]),h=u==null?void 0:u[this.fieldName],p=vs({path:"/",count:0,children:h||[]});this.facetTree=Kt(p,n)}else this.facetTree=n;break}case"FACET_UPDATE":case"SORT_ORDER_UPDATE":this.facetTree=Kt(this.facetTree,n);break;default:this.facetTree=Kt(this.facetTree,n)}}handleStateUpdate(r){if(this.lastSearchTerm!==r.searchTerm&&r.searchTerm.trim()==="")this.handleIncomingSearchResponse(r,"SEARCH_TERM_EMPTY");else if(this.lastTimeTaken!==r.searchResponseTimeTaken){let s="UNKNOWN";this.lastSearchTerm!==r.searchTerm?s="NEW_SEARCH_TERM":this.lastRangeValues!==JSON.stringify(r.rangeValueForIndexFields)?s="RANGE_VALUE_UPDATE":this.lastFacetValues!==JSON.stringify(r.facetPathsForIndexFields)?s="FACET_UPDATE":this.lastSortType!==r.sortType?s="SORT_ORDER_UPDATE":this.lastSearchMode!==r.searchMode&&(s="EXACT_MATCH_UPDATE"),this.handleIncomingSearchResponse(r,s),this.lastSearchTerm=r.searchTerm,this.lastRangeValues=JSON.stringify(r.rangeValueForIndexFields),this.lastFacetValues=JSON.stringify(r.facetPathsForIndexFields),this.lastSortType=r.sortType,this.lastSearchMode=r.searchMode}this.lastTimeTaken=r.searchResponseTimeTaken}connectedCallback(){this.handleStateUpdate(_.getState()),this.unsubscribe=_.subscribe(r=>{this.handleStateUpdate(r)})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}handleCheckboxChange(r){var n;if(!this.selectedPaths[r])this.selectedPaths={...this.selectedPaths,[r]:!0};else{const c=Object.keys(this.selectedPaths).filter(i=>!i.includes(r));this.selectedPaths=c.reduce((i,u)=>(i[u]=!0,i),{})}const a=Object.keys(this.selectedPaths).filter(c=>this.selectedPaths[c]),o=uo(a);(n=this.facetSelectionUpdated)==null||n.emit({paths:o})}renderFacet(r,s){let a=!1;for(const c of Object.keys(this.selectedPaths))this.selectedPaths[c]&&c.startsWith(s.path)&&c.length>s.path.length&&(a=!0);const o=Object.keys(this.selectedPaths).includes(s.path),n=Object.keys(s.children).length>0&&(o||a)||r==="@@root";return l("div",{class:"searchcraft-facet-list-item"},r!=="@@root"&&l("label",{class:"searchcraft-facet-list-checkbox-label"},l("div",{class:"searchcraft-facet-list-checkbox-input-wrapper"},l("input",{class:"searchcraft-facet-list-checkbox-input",checked:this.selectedPaths[s.path],onChange:c=>{this.handleCheckboxChange(s.path)},type:"checkbox"}),a?l("div",{class:"searchcraft-facet-list-checkbox-input-dash-icon"},l("svg",{viewBox:"0 0 14 3",fill:"none"},l("title",null,"Checkbox dash"),l("line",{x1:"1.5",y1:"1.5",x2:"12.5",y2:"1.5",stroke:"white","stroke-width":"3","stroke-linecap":"round"}))):l("div",{class:"searchcraft-facet-list-checkbox-input-check-icon"},l("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},l("title",null,"Checkbox check"),l("path",{d:"M13.9999 2L5.74988 10L1.99988 6.36364",stroke:"white","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"})))),l("span",null,this.formatFacetName(r)," (",s.count,")")),n&&l("div",{class:"searchcraft-facet-list",style:{paddingLeft:r!=="@@root"?"24px":"0px",paddingTop:r!=="@@root"?"6px":"0px"}},Object.keys(s.children).map(c=>{if(s.children[c])return this.renderFacet(c,s.children[c])})))}render(){if(this.fieldName&&!(Object.keys(this.facetTree.children).length===0&&(this.lastSearchTerm||"").trim().length===0))return Object.keys(this.facetTree.children).length===0&&(this.lastSearchTerm||"").trim().length>0?l("p",{class:"searchcraft-facet-list-message"},"No facets are available for this search query."):l("div",{class:"searchcraft-facet-list"},this.renderFacet("@@root",this.facetTree))}},[0,"searchcraft-facet-list",{fieldName:[1,"field-name"],facetTree:[32],selectedPaths:[32]}]);function bs(){if(typeof customElements>"u")return;["searchcraft-facet-list"].forEach(t=>{switch(t){case"searchcraft-facet-list":customElements.get(t)||customElements.define(t,ho);break}})}const fo=bs;function Ze(e,t){if(e&&t)return t.fieldNames.map(r=>{let s=e[r.fieldName];if(s)switch(r.dataType){case"date":{s=po(s,r.dateFormatLocale,r.dateFormatOptions);break}case"number":{s=Intl.NumberFormat(r.numberFormatLocale,r.numberFormatOptions).format(s*(r.numberScale||1));break}}return s}).filter(r=>!!r).join(t.delimiter||" ")}function ys(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function po(e,t="en-US",r={day:"numeric",month:"long",year:"numeric"}){const s=new Date(e),o=new Date().getTime()-s.getTime(),n=30*24*60*60*1e3;if(o<n){const c=Math.trunc(o/1e3),i=Math.trunc(c/60),u=Math.trunc(i/60),h=Math.trunc(u/24),p=new Intl.RelativeTimeFormat(t,r);return h>=1?p.format(-h,"day"):u>=1?p.format(-u,"hour"):i>=1?p.format(-i,"minute"):p.format(0,"second")}return new Intl.DateTimeFormat(t,r).format(s)}function Xt(e,t,r=0){const s=new Date(e);switch(t){case"year":return new Date(s.getFullYear()+r,0,1,0,0,0,0).getTime();case"month":return new Date(s.getFullYear(),s.getMonth()+r,1,0,0,0,0).getTime();case"day":return new Date(s.getFullYear(),s.getMonth(),s.getDate()+r,0,0,0,0).getTime();case"hour":return new Date(s.getFullYear(),s.getMonth(),s.getDate(),s.getHours()+r,0,0,0).getTime();default:throw new Error(`Unsupported unit: ${t}`)}}function mo(e,t,r){const s=new Date(t),a=new Date(r);switch(e){case"year":return Math.abs(a.getFullYear()-s.getFullYear());case"month":return Math.abs(a.getFullYear()*12+a.getMonth()-(s.getFullYear()*12+s.getMonth()));case"day":return Math.floor(Math.abs(a.getTime()-s.getTime())/(1e3*60*60*24));case"hour":return Math.floor(Math.abs(a.getTime()-s.getTime())/(1e3*60*60));default:throw new Error(`Unsupported unit: ${e}`)}}const Cs=e=>{if(e>=11&&e<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`;default:return`${e}th`}};function go(e,t){const r=new Intl.DateTimeFormat("en-US",{month:"short"});switch(e){case"year":return t.getFullYear().toString();case"month":return`${r.format(t)} ${t.getFullYear()}`;case"day":return`${r.format(t)} ${Cs(t.getDate())}, ${t.getFullYear()}`;case"hour":{const s=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",hour12:!0});return`${r.format(t)} ${Cs(t.getDate())}, ${s.format(t)}`}default:throw new Error(`Unsupported granularity: ${e}`)}}function vo(e,t){let r=!1,s=null;const a=o=>{e(...o),r=!0,setTimeout(()=>{if(r=!1,s){const n=s;s=null,a(n)}},t)};return(...o)=>{r?s=o:a(o)}}const bo=N(class extends D{constructor(){super();f(this,"max",100);f(this,"min",0);f(this,"step",1);f(this,"dataType","number");f(this,"dateGranularity");f(this,"lowerBound",0);f(this,"upperBound",1);f(this,"endValue",0);f(this,"startValue",0);f(this,"lastFocusedHandle","max");f(this,"throttledEmitUpdate",()=>{});f(this,"rangeChanged");f(this,"emitUpdate",async()=>{var r,s;switch(this.dataType){case"number":(r=this.rangeChanged)==null||r.emit({startValue:this.startValue,endValue:this.endValue});break;case"date":{const a=this.dateGranularity||"year",o=Xt(this.min,a,this.lowerBound+this.startValue),n=Xt(this.min,a,this.lowerBound+this.endValue+1);(s=this.rangeChanged)==null||s.emit({startValue:o,endValue:n});break}}});f(this,"handleStartValueChange",r=>{const s=r.target,a=Number.parseInt(s.value,10);this.lastFocusedHandle="min",a<=this.endValue?(this.startValue=a,this.throttledEmitUpdate()):(this.startValue=this.endValue,s.value=`${this.endValue}`)});f(this,"handleEndValueChange",r=>{const s=r.target,a=Number.parseInt(s.value,10);this.lastFocusedHandle="max",a>=this.startValue?(this.endValue=a,this.throttledEmitUpdate()):(this.endValue=this.startValue,s.value=`${this.startValue}`)});f(this,"getLabel",r=>{switch(this.dataType){case"number":return`${this.startValue}`;case"date":{const s=this.dateGranularity||"year",a=this.lowerBound+r,o=Xt(this.min,s,a);return go(this.dateGranularity||"year",new Date(o))}}});this.__registerHost(),this.rangeChanged=ke(this,"rangeChanged")}connectedCallback(){switch(this.dataType){case"number":this.startValue=this.min,this.endValue=this.max,this.lowerBound=this.min,this.upperBound=this.max;break;case"date":{this.startValue=0,this.endValue=mo(this.dateGranularity||"year",this.min,this.max),this.lowerBound=0,this.upperBound=this.endValue;break}}this.throttledEmitUpdate=vo(this.emitUpdate,120)}render(){const r=(this.startValue-this.lowerBound)/(this.upperBound-this.lowerBound)*100,s=(this.endValue-this.lowerBound)/(this.upperBound-this.lowerBound)*100,a=this.getLabel(this.startValue),o=this.getLabel(this.endValue);return l("div",{key:"3b2e8576d64826f123d40deff3b0df9316649a03",class:"searchcraft-slider"},l("div",{key:"ecaa546b96855aad4e839c5e34e995da0925e0b6",class:"searchcraft-slider-range"},l("div",{key:"f37fc0329249857a29f77d9e3739d10f05f6bf62",class:"searchcraft-slider-active-range",style:{left:`${r}%`,width:`${s-r}%`}}),l("input",{key:"7b5e6f3983b7c109ea0a3f2b248c35d0e225400b",class:se("searchcraft-slider-input","searchcraft-slider-input-min-handle"),max:this.upperBound,min:this.lowerBound,onInput:this.handleStartValueChange.bind(this),step:this.step,style:{zIndex:this.lastFocusedHandle==="min"?"2":"1"},type:"range",value:this.startValue}),l("input",{key:"b5bb628b73c8b582a31453e73cb3ef38579eeea5",class:se("searchcraft-slider-input","searchcraft-slider-input-max-handle"),max:this.upperBound,min:this.lowerBound,onInput:this.handleEndValueChange.bind(this),step:this.step,style:{zIndex:this.lastFocusedHandle==="max"?"2":"1"},type:"range",value:this.endValue})),l("div",{key:"ecb379babd244e3205f30d45628506566fbeff3c",class:"searchcraft-slider-label"},l("span",{key:"2be886d05c323f7da1059be88c0cb8ede2e1e98b",class:"searchcraft-slider-start-label"},a),l("span",{key:"bf66fcab3fae565980a4637cb13b14589ffcb5ba",class:"searchcraft-slider-end-label"},o)))}},[0,"searchcraft-slider",{max:[2],min:[2],step:[2],dataType:[1,"data-type"],dateGranularity:[1,"date-granularity"],lowerBound:[32],upperBound:[32],endValue:[32],startValue:[32],lastFocusedHandle:[32]}]);function Ss(){if(typeof customElements>"u")return;["searchcraft-slider"].forEach(t=>{switch(t){case"searchcraft-slider":customElements.get(t)||customElements.define(t,bo);break}})}const yo=N(class extends D{constructor(){super();f(this,"label","Toggle");f(this,"subLabel");f(this,"toggleUpdated");f(this,"isActive",!1);f(this,"unsubscribe");f(this,"lastSearchTerm");f(this,"handleToggle",async()=>{var r;this.isActive=!this.isActive,(r=this.toggleUpdated)==null||r.emit(this.isActive)});this.__registerHost(),this.toggleUpdated=ke(this,"toggleUpdated")}connectedCallback(){this.unsubscribe=_.subscribe(r=>{r.searchTerm!==this.lastSearchTerm&&r.searchTerm.trim().length===0&&(this.isActive=!1),this.lastSearchTerm=r.searchTerm})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}render(){return l("div",{key:"f8a751315daf6bcdc0d47bc4fc802bc4615e565f",class:se("searchcraft-toggle-button",{"searchcraft-toggle-button-active":this.isActive})},l("div",{key:"aaa92d7c1aebe241a163a1fba7cd1f8d3804286d"},l("p",{key:"068b82b17a99bf55ad17818d0dd4c7e95858317b",class:"searchcraft-toggle-button-label"},this.label),this.subLabel&&l("p",{key:"39e43e3fad6a2ab09d20f37c6d6865cede3701d9",class:"searchcraft-toggle-button-sub-label"},this.subLabel)),l("button",{key:"5ae352870d4a01c430389e75b967b2eb9d3fa5f7",class:"searchcraft-toggle-button-background",onClick:this.handleToggle,type:"button"},l("div",{key:"0574ade4e1681ce8e122039c40e761cb68555621",class:"searchcraft-toggle-button-handle"})))}},[0,"searchcraft-toggle-button",{label:[1],subLabel:[1,"sub-label"],isActive:[32],unsubscribe:[32],lastSearchTerm:[32]}]);function ws(){if(typeof customElements>"u")return;["searchcraft-toggle-button"].forEach(t=>{switch(t){case"searchcraft-toggle-button":customElements.get(t)||customElements.define(t,yo);break}})}const Co=N(class extends D{constructor(){super();f(this,"items",[]);f(this,"unsubscribe");f(this,"lastSearchTerm");f(this,"searchStore",_.getState());this.__registerHost()}componentDidLoad(){this.unsubscribe=_.subscribe(r=>{this.lastSearchTerm=r.searchTerm||""})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}handleDateRangeChanged(r,s,a){const o=new Date(s),n=new Date(a);this.searchStore.addRangeValueForIndexField({fieldName:r.fieldName,value:`${r.fieldName}:[${o.toISOString()} TO ${n.toISOString()}]`}),this.searchStore.search()}handleNumericRangeChanged(r,s,a){this.searchStore.addRangeValueForIndexField({fieldName:r,value:`${r}:[${s} TO ${a}]`}),this.searchStore.search()}handleFacetSelectionUpdated(r,s){s.length>0?this.searchStore.addFacetPathsForIndexField({fieldName:r,value:`${r}: IN [${s.join(" ")}]`}):this.searchStore.removeFacetPathsForIndexField(r),this.searchStore.search()}handleExactMatchToggleUpdated(r){this.searchStore.setSearchMode(r?"exact":"fuzzy"),this.searchStore.search()}handleMostRecentToggleUpdated(r,s){s?this.searchStore.setSortOrder({orderByField:r,sortType:"desc"}):this.searchStore.setSortOrder({orderByField:null,sortType:null}),this.searchStore.search()}render(){return l("div",{key:"fb5fce357783f39b0a2846a0bd99994faa5e742d",class:"searchcraft-filter-panel"},this.items.map(r=>{switch(r.type){case"dateRange":{const s=r;return l("div",{class:"searchcraft-filter-panel-section"},l("p",{class:"searchcraft-filter-panel-label"},r.label),l("searchcraft-slider",{min:s.options.minDate.getTime(),max:s.options.maxDate.getTime(),dataType:"date",step:1,dateGranularity:s.options.granularity,onRangeChanged:a=>{this.handleDateRangeChanged(s,a.detail.startValue,a.detail.endValue)}}))}case"numericRange":{const s=r;return l("div",{class:"searchcraft-filter-panel-section"},l("p",{class:"searchcraft-filter-panel-label"},r.label),l("searchcraft-slider",{min:s.options.min,max:s.options.max,step:s.options.granularity,onRangeChanged:a=>{this.handleNumericRangeChanged(s.fieldName,a.detail.startValue,a.detail.endValue)}}))}case"facets":{const s=r;return l("div",{class:"searchcraft-filter-panel-section"},l("p",{class:"searchcraft-filter-panel-label"},r.label),l("searchcraft-facet-list",{fieldName:s.fieldName,onFacetSelectionUpdated:a=>{this.handleFacetSelectionUpdated(s.fieldName,a.detail.paths)}}))}case"exactMatchToggle":{const s=r;return l("searchcraft-toggle-button",{label:s.label,subLabel:s.options.subLabel,onToggleUpdated:a=>{this.handleExactMatchToggleUpdated(a.detail)}})}case"mostRecentToggle":{const s=r;return l("searchcraft-toggle-button",{label:s.label,subLabel:s.options.subLabel,onToggleUpdated:a=>{this.handleMostRecentToggleUpdated(s.fieldName,a.detail)}})}}}))}},[0,"searchcraft-filter-panel",{items:[16],unsubscribe:[32],lastSearchTerm:[32]}]);function So(){if(typeof customElements>"u")return;["searchcraft-filter-panel","searchcraft-facet-list","searchcraft-slider","searchcraft-toggle-button"].forEach(t=>{switch(t){case"searchcraft-filter-panel":customElements.get(t)||customElements.define(t,Co);break;case"searchcraft-facet-list":customElements.get(t)||bs();break;case"searchcraft-slider":customElements.get(t)||Ss();break;case"searchcraft-toggle-button":customElements.get(t)||ws();break}})}const wo=So,ko=N(class extends D{constructor(){super();f(this,"inputLabelClassName","");f(this,"label","");this.__registerHost()}render(){return l("label",{key:"3622c616d480e57b1dfaa2d61637a30b843cb968",class:se("searchcraft-input-label",this.inputLabelClassName),htmlFor:"searchcraft-input-id"},this.label)}},[0,"searchcraft-input-label",{inputLabelClassName:[1,"input-label-class-name"],label:[1]}]);function Jt(){if(typeof customElements>"u")return;["searchcraft-input-label"].forEach(t=>{switch(t){case"searchcraft-input-label":customElements.get(t)||customElements.define(t,ko);break}})}const Eo=N(class extends D{constructor(){super();f(this,"autoSearch",!0);f(this,"buttonPlacement","none");f(this,"buttonLabel");f(this,"inputLabel");f(this,"placeholderValue","Enter Search");f(this,"placeholderBehavior");f(this,"inputFocus");f(this,"inputBlur");f(this,"inputInit");f(this,"inputValue","");f(this,"searchTerm","");f(this,"error",!1);f(this,"core");f(this,"searchcraftStore",_.getState());f(this,"unsubscribe",()=>{});f(this,"handleInput",r=>{const s=r.target;this.inputValue=s.value,this.autoSearch&&this.performSearch(s.value)});f(this,"performSearch",async r=>{if(r!==this.searchTerm){this.searchcraftStore.setSearchTerm(r.trim()),this.error=!1;try{await this.searchcraftStore.search()}catch(s){console.error(`Search for ${r} failed:`,s),this.error=!0}}});f(this,"handleReset",()=>{this.searchcraftStore.setSearchResultsCount(0),this.searchcraftStore.setSearchTerm(""),this.searchcraftStore.setSearchClientResponseItems([]),this.error=!1});f(this,"handleClearInput",()=>{this.handleReset()});f(this,"handleFormSubmit",async r=>{r.preventDefault(),await this.performSearch(this.inputValue)});this.__registerHost(),this.inputFocus=ke(this,"inputFocus"),this.inputBlur=ke(this,"inputBlur"),this.inputInit=ke(this,"inputInit")}init(){var r;this.core&&(this.searchcraftStore.init(this.core),(r=this.inputInit)==null||r.emit())}onCoreChange(){this.init()}connectedCallback(){this.init()}componentDidLoad(){this.unsubscribe=_.subscribe(r=>{this.searchTerm=r.searchTerm,this.inputValue=r.searchTerm})}disconnectedCallback(){var r;this.handleReset(),(r=this.unsubscribe)==null||r.call(this)}render(){const r=this.inputValue.length>0,s=se("searchcraft-input-form-grid",{"searchcraft-input-form-grid-button-left":this.buttonPlacement==="left","searchcraft-input-form-grid-button-right":this.buttonPlacement==="right","searchcraft-input-form-grid-button-none":this.buttonPlacement==="none"}),o={gap:this.inputLabel||this.error?"4px 8px":"0px 8px"};return l("form",{key:"7f3fe524949a5940d2852ef8fe510ab0c0b910f1",class:"searchcraft-input-form",onSubmit:this.handleFormSubmit},l("div",{key:"12a137ff4ecaab2a047cb787c878ddf0ed973d3f",class:s,style:o},l("div",{key:"12c7dadcc6fa22467a5165c10e12a0e343ea2ed3",class:"searchcraft-input-form-button"},l("searchcraft-button",{key:"477fe1299556e5c5bc6b902de65c71f11aad97ac",onButtonClick:this.handleFormSubmit,label:this.buttonLabel})),this.inputLabel&&l("div",{key:"cf04132b3a95943fe8371f64778130c3f8bbc379",class:"searchcraft-input-form-label"},l("searchcraft-input-label",{key:"b840d1b65c1fc11879cf25bcc88022eafa583109",label:this.inputLabel})),this.error&&l("div",{key:"ed9a441bfd57cab076f8218e1f7d4baecf5e9ce2",class:"searchcraft-input-form-error-message"},l("searchcraft-error-message",{key:"9624592768ab3cc0c683f5636b83022349af66cd"},"Something went wrong.")),l("div",{key:"99f06b4c38b4cc26f534a3f3be6a7c23b5946c62",class:"searchcraft-input-form-input-wrapper"},l("input",{key:"90fe4eca0771ca15378685861ae0bd700110ac15",autoComplete:"off",class:se("searchcraft-input-form-input",{"searchcraft-placeholder-hide-on-focus":this.placeholderBehavior==="hide-on-focus"}),onFocus:()=>{var n;return(n=this.inputFocus)==null?void 0:n.emit()},onBlur:()=>{var n;return(n=this.inputBlur)==null?void 0:n.emit()},onInput:n=>{this.handleInput(n)},placeholder:this.placeholderValue,type:"text",value:this.inputValue}),l("div",{key:"81a377845c20ba1ea8ed2ff73469026c7b2dc16a",class:"searchcraft-input-form-input-icon"},l("svg",{key:"06e127c9878b65c17a72ae75841c9b5a1eec6197",class:"searchcraft-input-form-input-search-icon",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"searchcraft-title"},l("title",{key:"37ebce26440a6e3fcdad1b342412b0aaec5e690c"},"Search icon"),l("path",{key:"3c5bcab0759d52e05a5f07ef27396461cf3b626c",d:"M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))),r&&l("button",{key:"bbca17429ef3de340d7ee064e71c3858abc1022a",type:"button",class:"searchcraft-input-form-clear-button",onClick:this.handleClearInput},l("svg",{key:"94eee54f0735020bf77f56607bb870888d5a23e9",class:"searchcraft-input-form-clear-icon",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"icon-title"},l("title",{key:"5f7e9beb4f2c4c394f19cc2c312be59de166a0c8"},"Clear icon"),l("path",{key:"138c29ea054bd535d0a8b5cb708bbea31d21c40a",d:"M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))))))}static get watchers(){return{core:["onCoreChange"]}}},[0,"searchcraft-input-form",{autoSearch:[4,"auto-search"],buttonPlacement:[1,"button-placement"],buttonLabel:[1,"button-label"],inputLabel:[1,"input-label"],placeholderValue:[1,"placeholder-value"],placeholderBehavior:[1,"placeholder-behavior"],core:[16],inputValue:[32],searchTerm:[32],error:[32]},void 0,{core:["onCoreChange"]}]);function ks(){if(typeof customElements>"u")return;["searchcraft-input-form","searchcraft-button","searchcraft-error-message","searchcraft-input-label"].forEach(t=>{switch(t){case"searchcraft-input-form":customElements.get(t)||customElements.define(t,Eo);break;case"searchcraft-button":customElements.get(t)||bt();break;case"searchcraft-error-message":customElements.get(t)||yt();break;case"searchcraft-input-label":customElements.get(t)||Jt();break}})}const xo=ks,Ro=Jt,To=N(class extends D{constructor(){super();f(this,"searchTerm");f(this,"searchResultsPerPage");f(this,"searchResultsPage");f(this,"searchResultsCount");f(this,"searchResultsPagesCount",1);f(this,"searchResultsRangeMin",1);f(this,"searchResultsRangeMax",1);f(this,"setSearchResultsPage",()=>{});f(this,"unsubscribe",()=>{});this.__registerHost()}componentDidLoad(){this.unsubscribe=_.subscribe(r=>{this.searchTerm=r.searchTerm,this.searchResultsPerPage=r.searchResultsPerPage,this.searchResultsPage=r.searchResultsPage,this.searchResultsCount=r.searchResultsCount,this.searchResultsPagesCount=Math.ceil(this.searchResultsCount/this.searchResultsPerPage),this.searchResultsRangeMin=(this.searchResultsPage-1)*this.searchResultsPerPage+1,this.searchResultsRangeMax=(this.searchResultsPerPage-1)*this.searchResultsPerPage+this.searchResultsPerPage,this.setSearchResultsPage=r.setSearchResultsPage})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}handleGoToPage(r){this.setSearchResultsPage(r)}renderOddPaginationItem(r){return l("li",null,l("button",{class:se("searchcraft-pagination-item",{"searchcraft-pagination-item-active":this.searchResultsPage===r}),onClick:()=>this.handleGoToPage(r),type:"button"},r))}renderEvenPaginationItem(r){if(!(this.searchResultsPagesCount<=r))return(this.searchResultsPagesCount<=5||r<Math.ceil(this.searchResultsPagesCount/2)?this.searchResultsPage<=r+1:this.searchResultsPage>=r-1)?l("li",null,l("button",{class:se("searchcraft-pagination-item",{"searchcraft-pagination-item-active":this.searchResultsPage===r}),onClick:()=>this.handleGoToPage(r),type:"button"},r)):l("li",null,l("span",{class:"searchcraft-pagination-item"},"..."))}renderMiddlePaginationItem(){if(!(this.searchResultsPagesCount<=3))return this.searchResultsPagesCount<=5||this.searchResultsPage<=3||this.searchResultsPage>=this.searchResultsPagesCount-2?l("li",null,l("button",{class:se("searchcraft-pagination-item",{"searchcraft-pagination-item-active":this.searchResultsPage===3||this.searchResultsPage===this.searchResultsPagesCount-2}),type:"button",onClick:()=>this.handleGoToPage(this.searchResultsPage>=this.searchResultsPagesCount-2?this.searchResultsPagesCount-2:3)},this.searchResultsPage>=this.searchResultsPagesCount-2?this.searchResultsPagesCount-2:3)):l("li",null,l("span",{class:"searchcraft-pagination-item searchcraft-pagination-item-active"},this.searchResultsPage))}render(){if(!(!this.searchTerm||this.searchResultsPagesCount<=1))return l("div",{class:"searchcraft-pagination"},l("div",{class:"searchcraft-pagination-control"},l("searchcraft-button",{disabled:this.searchResultsPage===1,hierarchy:"tertiary",onButtonClick:()=>this.handleGoToPage(Math.max(1,this.searchResultsPage-1)),label:"Previous",iconPosition:"left",icon:l("svg",{class:"searchcraft-button-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l("title",null,"Previous page icon"),l("path",{d:"M12.5 15L7.5 10L12.5 5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),iconOnly:!0})),l("ul",{class:"searchcraft-pagination-list"},this.renderOddPaginationItem(1),this.renderEvenPaginationItem(2),this.renderMiddlePaginationItem(),this.renderEvenPaginationItem(this.searchResultsPagesCount>4?this.searchResultsPagesCount-1:4),this.renderOddPaginationItem(this.searchResultsPagesCount)),l("div",{class:"searchcraft-pagination-control"},l("searchcraft-button",{disabled:this.searchResultsPage===this.searchResultsPagesCount,hierarchy:"tertiary",onButtonClick:()=>{this.handleGoToPage(Math.min(this.searchResultsPagesCount,this.searchResultsPage+1))},label:"Next",iconPosition:"right",icon:l("svg",{class:"searchcraft-button-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l("title",null,"Next page icon"),l("path",{d:"M7.5 15L12.5 10L7.5 5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),iconOnly:!0})))}},[0,"searchcraft-pagination",{searchTerm:[32],searchResultsPerPage:[32],searchResultsPage:[32],searchResultsCount:[32],searchResultsPagesCount:[32],searchResultsRangeMin:[32],searchResultsRangeMax:[32],setSearchResultsPage:[32]}]);function Po(){if(typeof customElements>"u")return;["searchcraft-pagination","searchcraft-button"].forEach(t=>{switch(t){case"searchcraft-pagination":customElements.get(t)||customElements.define(t,To);break;case"searchcraft-button":customElements.get(t)||bt();break}})}const $o=Po,_o=N(class extends D{constructor(){super();f(this,"template");f(this,"type");f(this,"hotkey");f(this,"hotkeyModifier");f(this,"hotkeyModifierSymbol");f(this,"isPopoverVisible");f(this,"userAgent");f(this,"unsubscribe",()=>{});f(this,"renderOptionSymbol",()=>l("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},l("title",null,"Option key"),l("path",{d:"M283,112c0-11.58,9.42-21,21-21h160c11.58,0,21,9.42,21,21s-9.42,21-21,21h-160c-11.58,0-21-9.42-21-21Z",fill:"currentColor"}),l("path",{d:"M485,400c0,11.58-9.42,21-21,21h-128c-8.29,0-15.82-4.9-19.19-12.47l-122.46-275.53H48c-11.58,0-21-9.42-21-21s9.42-21,21-21h160c8.29,0,15.82,4.9,19.19,12.47l122.46,275.53h114.35c11.58,0,21,9.42,21,21Z",fill:"currentColor"})));f(this,"renderCtrlSymbol",()=>l("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},l("title",null,"Ctrl key"),l("path",{d:"M388.95,209.4c-.37,5.59-2.9,10.71-7.12,14.4-3.83,3.35-8.74,5.2-13.82,5.2-6.06,0-11.83-2.61-15.81-7.17l-96.2-109.94-96.2,109.94c-3.98,4.56-9.75,7.17-15.81,7.17-5.08,0-9.99-1.84-13.82-5.2-4.22-3.69-6.75-8.81-7.12-14.4-.38-5.6,1.45-11.01,5.15-15.23l112-128c3.98-4.56,9.74-7.17,15.8-7.17s11.82,2.61,15.8,7.17l112,128c3.7,4.22,5.53,9.63,5.15,15.23Z",fill:"currentColor"})));f(this,"renderWindowsMetaSymbol",()=>l("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},l("title",null,"Windows meta key"),l("path",{d:"M206.115 255.957c-23.854-12.259-47.043-18.479-68.94-18.479-2.978 0-5.976 0.090-8.974 0.354-27.94 2.312-53.461 9.684-69.875 15.414-4.354 1.599-8.817 3.288-13.415 5.153l-44.911 155.697c30.851-11.416 58.146-16.969 83.135-16.969 40.423 0 69.764 15.104 93.996 30.652 11.481-38.959 39.022-133.045 47.241-161.162-5.975-3.642-12.038-7.285-18.257-10.66zM264.174 295.535l-45.223 157.074c13.416 7.686 58.549 32.025 93.106 32.025 27.896 0 59.126-7.148 95.417-21.896l43.178-150.988c-29.316 9.461-57.438 14.26-83.732 14.26-47.975 0-81.557-15.549-102.746-30.475zM146.411 184.395c38.559 0.399 67.076 15.104 90.708 30.251l46.376-158.672c-9.773-5.598-35.403-19.547-53.929-24.3-12.193-2.842-25.010-4.308-38.602-4.308-25.898 0.488-54.194 6.973-86.444 19.9l-44.22 155.298c32.404-12.218 60.322-18.17 86.043-18.17 0.023 0.001 0.068 0.001 0.068 0.001zM512 99.062c-29.407 11.416-58.104 17.233-85.514 17.233-45.843 0-79.646-15.901-101.547-31.183l-45.975 159.118c30.873 19.854 64.145 29.939 99.061 29.939 28.474 0 57.97-6.84 87.731-20.344l-0.091-1.111 1.867-0.443 44.468-153.209z",fill:"currentColor"})));f(this,"renderMacMetaSymbol",()=>l("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},l("title",null,"Mac meta key"),l("path",{d:"M368,283h-43v-54h43c46.87,0,85-38.13,85-85s-38.13-85-85-85-85,38.13-85,85v43h-54v-43c0-46.87-38.13-85-85-85s-85,38.13-85,85,38.13,85,85,85h43v54h-43c-46.87,0-85,38.13-85,85s38.13,85,85,85,85-38.13,85-85v-43h54v43c0,46.87,38.13,85,85,85s85-38.13,85-85-38.13-85-85-85ZM325,144c0-23.71,19.29-43,43-43s43,19.29,43,43-19.29,43-43,43h-43v-43ZM144,187c-23.71,0-43-19.29-43-43s19.29-43,43-43,43,19.29,43,43v43h-43ZM187,368c0,23.71-19.29,43-43,43s-43-19.29-43-43,19.29-43,43-43h43v43ZM283,283h-54v-54h54v54ZM368,411c-23.71,0-43-19.29-43-43v-43h43c23.71,0,43,19.29,43,43s-19.29,43-43,43Z",fill:"currentColor"})));this.__registerHost()}handleOnClick(){_.getState().setPopoverVisibility(!0)}componentDidLoad(){const r=_.getState();this.hotkey=r.hotkey.toUpperCase(),this.hotkeyModifier=r.hotkeyModifier,this.isPopoverVisible=r.isPopoverVisible,this.userAgent=this.setUserAgent(),this.hotkeyModifierSymbol=this.setHotkeyModifierSymbol(),this.unsubscribe=_.subscribe(s=>{this.hotkey=s.hotkey.toUpperCase(),this.hotkeyModifier=s.hotkeyModifier,this.hotkeyModifierSymbol=this.setHotkeyModifierSymbol()})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}setUserAgent(){const r=navigator.userAgent.toLowerCase();switch(!0){case r.includes("windows"):return"window";case r.includes("mac"):return"mac";default:return"other"}}setHotkeyModifierSymbol(){switch(this.hotkeyModifier){case"ctrl":return this.userAgent==="windows"?this.renderCtrlSymbol():this.renderMacMetaSymbol();case"alt":case"option":return this.renderOptionSymbol();default:return this.userAgent==="windows"?this.renderWindowsMetaSymbol():this.renderMacMetaSymbol()}}renderSkeuomorphicSlot(){return l("div",{class:"searchcraft-popover-button-wrapper"},l("div",{class:"searchcraft-popover-button-input"},l("svg",{class:"searchcraft-popover-button-input-search-icon",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",version:"1.1"},l("title",null,"Search icon"),l("path",{d:"M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),l("span",null,"Search")),l("div",{class:"searchcraft-popover-button-keycaps"},l("div",{class:"searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-modifier"},l("span",null,this.hotkeyModifierSymbol)),l("div",{class:"searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-key"},l("span",null,this.hotkey))))}renderSlot(){switch(this.type){case"skeuomorphic":return this.renderSkeuomorphicSlot();default:return l("div",null,l("slot",null))}}render(){return l("button",{key:"74e36b0593ba2cbb03f5ecff1434bc7056bf0db0",class:`searchcraft-popover-button ${this.type?` searchcraft-popover-button-${this.type}`:""}`,innerHTML:typeof this.template<"u"?this.template({isPopoverVisible:this.isPopoverVisible},{html:Ye}):void 0,onClick:this.handleOnClick.bind(this),type:"button"},typeof this.template<"u"?void 0:this.type?this.renderSlot():"Open Popover")}},[4,"searchcraft-popover-button",{template:[16],type:[1],hotkey:[32],hotkeyModifier:[32],hotkeyModifierSymbol:[32],isPopoverVisible:[32],userAgent:[32]}]);function Io(){if(typeof customElements>"u")return;["searchcraft-popover-button"].forEach(t=>{switch(t){case"searchcraft-popover-button":customElements.get(t)||customElements.define(t,_o);break}})}const Ao=Io,Mo=N(class extends D{constructor(){super();f(this,"searchResultsCount");f(this,"unsubscribe",()=>{});this.__registerHost()}componentDidLoad(){this.searchResultsCount=_.getState().searchResultsCount,this.unsubscribe=_.subscribe(r=>{this.searchResultsCount=r.searchResultsCount})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}render(){return l("footer",{key:"e1344ae185ef1b8a83bb69ba88e2952ab1c75e70",class:"searchcraft-popover-footer"},l("p",{key:"51874f4ce490e4f164b999e8c6f89710702e73bd",class:"searchcraft-popover-footer-results-info"},this.searchResultsCount?`${ys(this.searchResultsCount)} Results Found`:" "),l("a",{key:"5476e24cc3fa7fa265bd2b5cba43c8a70d8609ca",class:"searchcraft-popover-footer-link",href:"https://searchcraft.io/",target:"_blank",rel:"noreferrer"},l("svg",{key:"0a4edf94e9e40a96a93a4e7ba1ffbd081e51b585",class:"searchcraft-popover-footer-link-image",width:"169",height:"16",viewBox:"0 0 169 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l("title",{key:"67813a626922d709a4409028cb0f3f1ce3e2cfe8"},"Powered by Searchcraft"),l("path",{key:"bf9e46a5f9783edd7167c1c5c1256d0200053969",d:"M5.07288 0.608C7.60088 0.608 8.84888 2.064 8.84888 4.112C8.84888 6.16 7.60088 7.616 5.07288 7.616H1.68088V12H0.336875V0.608H5.07288ZM5.07288 6.4C6.67288 6.4 7.45688 5.552 7.45688 4.112C7.45688 2.672 6.67288 1.824 5.07288 1.824H1.68088V6.4H5.07288ZM13.31 12.192C10.99 12.192 9.31 10.512 9.31 7.872C9.31 5.232 10.99 3.552 13.31 3.552C15.63 3.552 17.31 5.232 17.31 7.872C17.31 10.512 15.63 12.192 13.31 12.192ZM13.31 11.04C14.91 11.04 15.966 9.872 15.966 7.872C15.966 5.872 14.91 4.704 13.31 4.704C11.71 4.704 10.654 5.872 10.654 7.872C10.654 9.872 11.71 11.04 13.31 11.04ZM28.3826 3.744H29.7586L27.0066 12H25.6626L24.4466 8.176C24.1586 7.264 23.8706 6.304 23.6146 5.376C23.3426 6.304 23.0546 7.264 22.7666 8.176L21.5666 12H20.2226L17.4706 3.744H18.8466L20.0146 7.472C20.3346 8.48 20.6226 9.472 20.9106 10.48C21.1826 9.472 21.4706 8.48 21.7906 7.472L22.9426 3.744H24.2866L25.4386 7.472C25.7426 8.464 26.0466 9.456 26.3346 10.448C26.6066 9.456 26.9106 8.464 27.2146 7.472L28.3826 3.744ZM37.5194 7.872V8.32H31.2474C31.3754 10.176 32.3514 11.024 33.7914 11.024C34.9594 11.024 35.6954 10.416 35.9834 9.488H37.3114C36.9114 11.04 35.7274 12.192 33.7594 12.192C31.5034 12.192 29.9194 10.544 29.9194 7.872C29.9194 5.28 31.4394 3.552 33.7274 3.552C36.1914 3.552 37.5194 5.504 37.5194 7.872ZM33.7274 4.72C32.4314 4.72 31.4874 5.536 31.2794 7.168H36.1434C36.0154 5.808 35.1994 4.72 33.7274 4.72ZM42.9101 3.616C43.0381 3.616 43.1661 3.616 43.3421 3.632V4.864H43.0221C41.3741 4.864 40.3181 5.696 40.3181 7.296V12H39.0381V3.744H40.2541V5.2C40.7181 4.336 41.5661 3.616 42.9101 3.616ZM51.2538 7.872V8.32H44.9818C45.1098 10.176 46.0858 11.024 47.5258 11.024C48.6938 11.024 49.4298 10.416 49.7178 9.488H51.0458C50.6458 11.04 49.4618 12.192 47.4938 12.192C45.2378 12.192 43.6538 10.544 43.6538 7.872C43.6538 5.28 45.1738 3.552 47.4618 3.552C49.9258 3.552 51.2538 5.504 51.2538 7.872ZM47.4618 4.72C46.1658 4.72 45.2218 5.536 45.0138 7.168H49.8778C49.7498 5.808 48.9338 4.72 47.4618 4.72ZM58.9805 0.608H60.2605V12H59.0445V10.72C58.4205 11.664 57.4445 12.192 56.2125 12.192C53.8925 12.192 52.3725 10.512 52.3725 7.872C52.3725 5.232 53.8925 3.552 56.2125 3.552C57.4125 3.552 58.3565 4.048 58.9805 4.928V0.608ZM56.3725 11.04C57.9725 11.04 59.0285 9.872 59.0285 7.872C59.0285 5.872 57.9725 4.704 56.3725 4.704C54.7725 4.704 53.7165 5.936 53.7165 7.936C53.7165 9.936 54.7725 11.04 56.3725 11.04ZM69.2736 3.552C71.5936 3.552 73.1136 5.232 73.1136 7.872C73.1136 10.512 71.5936 12.192 69.2736 12.192C68.0416 12.192 67.0656 11.664 66.4416 10.72V12H65.2256V0.608H66.5056V4.928C67.1296 4.048 68.0736 3.552 69.2736 3.552ZM69.1136 11.04C70.7136 11.04 71.7696 9.808 71.7696 7.808C71.7696 5.808 70.7136 4.704 69.1136 4.704C67.5136 4.704 66.4576 5.872 66.4576 7.872C66.4576 9.872 67.5136 11.04 69.1136 11.04ZM79.3795 3.744H80.7715L77.2835 13.296C76.7555 14.752 75.9075 15.184 74.5955 15.184C74.3395 15.184 74.0995 15.168 73.8275 15.136V14.064H74.5795C75.3955 14.064 75.8275 13.696 76.0835 13.04C76.1795 12.8 76.2755 12.528 76.3715 12.272L73.2675 3.744H74.6755L75.8435 7.184C76.2595 8.384 76.6435 9.568 77.0275 10.752C77.3955 9.568 77.7955 8.368 78.2115 7.168L79.3795 3.744ZM89.1546 12.256C86.1146 12.256 84.2906 10.864 84.2746 8.24H86.4026C86.4346 10.032 87.6346 10.512 89.2186 10.512C90.7066 10.512 91.5226 9.936 91.5226 8.864C91.5226 7.968 90.9306 7.568 89.1866 7.216L88.2266 7.024C86.0186 6.608 84.5626 5.632 84.5626 3.568C84.5626 1.68 86.0506 0.351999 88.7866 0.351999C91.9866 0.351999 93.3466 1.856 93.4266 4H91.3306C91.2506 2.784 90.6266 2.096 88.8186 2.096C87.4426 2.096 86.7706 2.64 86.7706 3.504C86.7706 4.416 87.2986 4.832 88.9946 5.184L89.9866 5.376C92.6746 5.904 93.7626 6.944 93.7626 8.752C93.7626 11.008 92.0026 12.256 89.1546 12.256ZM102.952 8.016V8.496H96.7758C96.9198 9.968 97.7518 10.624 98.9198 10.624C99.8798 10.624 100.504 10.176 100.808 9.44H102.744C102.328 11.12 100.888 12.192 98.9038 12.192C96.4718 12.192 94.7918 10.512 94.7918 7.872C94.7918 5.28 96.4238 3.552 98.8718 3.552C101.4 3.552 102.952 5.392 102.952 8.016ZM98.8558 5.12C97.7838 5.12 96.9838 5.728 96.7918 7.088H100.936C100.776 5.92 100.056 5.12 98.8558 5.12ZM111.599 12H109.583C109.455 11.776 109.391 11.392 109.359 10.992C108.815 11.76 107.919 12.192 106.703 12.192C104.943 12.192 103.727 11.312 103.727 9.712C103.727 8.336 104.559 7.36 106.895 7.136L108.143 7.024C108.911 6.928 109.311 6.688 109.311 6.08C109.311 5.44 108.975 5.056 107.807 5.056C106.655 5.056 106.175 5.36 106.095 6.368H104.111C104.223 4.624 105.247 3.552 107.823 3.552C110.287 3.552 111.263 4.544 111.263 6.032V10.432C111.263 11.024 111.375 11.68 111.599 12ZM107.183 10.752C108.255 10.752 109.311 10.176 109.311 8.736V7.984C109.103 8.176 108.799 8.272 108.367 8.32L107.279 8.448C106.159 8.576 105.791 8.976 105.791 9.632C105.791 10.32 106.255 10.752 107.183 10.752ZM117.216 3.616C117.392 3.616 117.536 3.616 117.712 3.648V5.504H117.2C115.712 5.504 114.816 6.24 114.816 7.808V12H112.8V3.744H114.752V5.216C115.152 4.288 115.936 3.616 117.216 3.616ZM122.137 12.192C119.689 12.192 118.057 10.512 118.057 7.872C118.057 5.232 119.673 3.552 122.137 3.552C124.297 3.552 125.737 4.784 125.977 6.72H123.961C123.769 5.696 123.033 5.232 122.137 5.232C120.937 5.232 120.121 6.064 120.121 7.872C120.121 9.68 120.969 10.512 122.137 10.512C123.049 10.512 123.833 10.016 123.993 8.928H126.009C125.785 10.944 124.249 12.192 122.137 12.192ZM131.641 3.552C133.369 3.552 134.537 4.56 134.537 6.528V12H132.521V6.864C132.521 5.808 131.993 5.296 130.969 5.296C130.089 5.296 129.129 5.904 129.129 7.376V12H127.113V0.608H129.129V4.848C129.673 4.096 130.521 3.552 131.641 3.552ZM139.887 12.192C137.439 12.192 135.807 10.512 135.807 7.872C135.807 5.232 137.423 3.552 139.887 3.552C142.047 3.552 143.487 4.784 143.727 6.72H141.711C141.519 5.696 140.783 5.232 139.887 5.232C138.687 5.232 137.871 6.064 137.871 7.872C137.871 9.68 138.719 10.512 139.887 10.512C140.799 10.512 141.583 10.016 141.743 8.928H143.759C143.535 10.944 141.999 12.192 139.887 12.192ZM149.279 3.616C149.455 3.616 149.599 3.616 149.775 3.648V5.504H149.263C147.775 5.504 146.879 6.24 146.879 7.808V12H144.863V3.744H146.815V5.216C147.215 4.288 147.999 3.616 149.279 3.616ZM157.803 12H155.787C155.659 11.776 155.595 11.392 155.563 10.992C155.019 11.76 154.123 12.192 152.907 12.192C151.147 12.192 149.931 11.312 149.931 9.712C149.931 8.336 150.763 7.36 153.099 7.136L154.347 7.024C155.115 6.928 155.515 6.688 155.515 6.08C155.515 5.44 155.179 5.056 154.011 5.056C152.859 5.056 152.379 5.36 152.299 6.368H150.315C150.427 4.624 151.451 3.552 154.027 3.552C156.491 3.552 157.467 4.544 157.467 6.032V10.432C157.467 11.024 157.579 11.68 157.803 12ZM153.387 10.752C154.459 10.752 155.515 10.176 155.515 8.736V7.984C155.307 8.176 155.003 8.272 154.571 8.32L153.483 8.448C152.363 8.576 151.995 8.976 151.995 9.632C151.995 10.32 152.459 10.752 153.387 10.752ZM162.466 2.16C161.746 2.16 161.426 2.512 161.426 3.152V3.744H163.122V5.28H161.426V12H159.426V5.28H158.146V3.744H159.426V3.12C159.426 1.664 160.146 0.559999 162.13 0.559999C162.45 0.559999 162.882 0.575999 163.17 0.608V2.16H162.466ZM168.636 5.28H167.004V9.744C167.004 10.288 167.276 10.464 167.948 10.464H168.636V12C168.268 12.032 167.9 12.064 167.58 12.064C165.836 12.064 165.004 11.472 165.004 9.952V5.28H163.724V3.744H165.004V1.344H167.004V3.744H168.636V5.28Z",fill:"currentColor"}))))}},[0,"searchcraft-popover-footer",{searchResultsCount:[32]}]);function Es(){if(typeof customElements>"u")return;["searchcraft-popover-footer"].forEach(t=>{switch(t){case"searchcraft-popover-footer":customElements.get(t)||customElements.define(t,Mo);break}})}const Oo=Es,Lo=N(class extends D{constructor(){super();f(this,"item");f(this,"popoverResultMappings");f(this,"documentPosition",0);f(this,"title");f(this,"subtitle");f(this,"href");f(this,"imageSource");f(this,"imageAlt");f(this,"handleLinkClick",()=>{var a;const r=_.getState(),s=r.getSearchcraftCore();if(s){const o=this.documentPosition,n=r.searchTerm,c=r.searchClientResponseItems.length||0;(a=s.measureClient)==null||a.sendMeasureEvent("document_clicked",{document_position:o,number_of_documents:c,search_term:n})}});this.__registerHost()}mapValuesFromDocument(r){var s,a,o,n,c;this.title=Ze(r,(s=this.popoverResultMappings)==null?void 0:s.title),this.subtitle=Ze(r,(a=this.popoverResultMappings)==null?void 0:a.subtitle),this.href=Ze(r,(o=this.popoverResultMappings)==null?void 0:o.href),this.imageSource=Ze(r,(n=this.popoverResultMappings)==null?void 0:n.imageSource),this.imageAlt=Ze(r,(c=this.popoverResultMappings)==null?void 0:c.imageAlt)}connectedCallback(){this.item&&this.mapValuesFromDocument(this.item.document)}disconnectedCallback(){}render(){return l("div",{key:"63a2f070ce71cd1330105c03985e32cd1f228b29",class:"searchcraft-popover-list-item"},l("a",{key:"d9bb09248be9be235147acdfeed1a9f29cd123a2",class:"searchcraft-popover-list-item-link",href:this.href,onClick:this.handleLinkClick.bind(this)},this.imageSource&&l("div",{key:"6af7c3e754885730d8651a593f13b7b5b704a26d",class:"searchcraft-popover-list-item-image-wrapper"},l("img",{key:"74c7e53467efd83ae95439a7065c1de2748113f5",alt:this.imageAlt,src:this.imageSource,class:"searchcraft-popover-list-item-image"})),l("div",{key:"25a12e5cf582b248773005f5fb58f7a15304d2d1",class:"searchcraft-popover-list-item-content"},this.title&&l("p",{key:"8169f7730feb832178adbc9bdb14a089e955a2ad",class:"searchcraft-popover-list-item-content-title"},this.title),this.subtitle&&l("p",{key:"96812df1bab635e3865bdfdb31f133ca629d800e",class:"searchcraft-popover-list-item-content-subtitle"},this.subtitle))))}},[0,"searchcraft-popover-list-item",{item:[16],popoverResultMappings:[16],documentPosition:[2,"document-position"],title:[32],subtitle:[32],href:[32],imageSource:[32],imageAlt:[32]}]);function er(){if(typeof customElements>"u")return;["searchcraft-popover-list-item"].forEach(t=>{switch(t){case"searchcraft-popover-list-item":customElements.get(t)||customElements.define(t,Lo);break}})}const Fo=N(class extends D{constructor(){super();f(this,"popoverResultMappings");f(this,"searchClientResponseItems");f(this,"adClientResponseItems");f(this,"searchResultsPage");f(this,"searchResultsPerPage");f(this,"config",(Os=_.getState().core)==null?void 0:Os.config);this.__registerHost()}renderWithADMAds(){var r,s;return l("div",{class:"searchcraft-popover-list-view"},(r=this.adClientResponseItems)==null?void 0:r.map(a=>l("searchcraft-ad",{adClientResponseItem:a,adContainerId:K(),adSource:"adMarketplace",key:a.id})),(s=this.searchClientResponseItems)==null?void 0:s.map((a,o)=>l("searchcraft-popover-list-item",{item:a,key:a.id,popoverResultMappings:this.popoverResultMappings,documentPosition:this.searchResultsPerPage*(this.searchResultsPage-1)+o})))}renderWithCustomAds(){var i,u,h,p;const r=[],s=((i=this.config)==null?void 0:i.customAdInterstitialInterval)||0,a=((u=this.config)==null?void 0:u.customAdInterstitialQuantity)||1,o=((h=this.config)==null?void 0:h.customAdStartQuantity)||0,n=((p=this.config)==null?void 0:p.customAdEndQuantity)||0,c=this.searchClientResponseItems||[];for(let m=0;m<o;m++)r.push(l("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${m}-ad`}));c.forEach((m,b)=>{if(s&&b%s===0&&b+s<c.length&&b>=s)for(let y=0;y<a;y++)r.push(l("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${m.id}-ad-${y}`}));r.push(l("searchcraft-popover-list-item",{item:m,key:m.id,popoverResultMappings:this.popoverResultMappings,documentPosition:this.searchResultsPerPage*(this.searchResultsPage-1)+b}))});for(let m=0;m<n;m++)r.push(l("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${m}-ad`}));return l("div",{class:"searchcraft-popover-list-view"},r)}renderWithNativoAds(){var u,h,p,m,b;const r=[],s=((u=this.config)==null?void 0:u.nativoAdInterstialStartIndex)||0,a=((h=this.config)==null?void 0:h.nativoAdInterstitialInterval)||0,o=((p=this.config)==null?void 0:p.nativoAdInterstitialQuantity)||1,n=((m=this.config)==null?void 0:m.nativoAdStartQuantity)||0,c=((b=this.config)==null?void 0:b.nativoAdEndQuantity)||0,i=this.searchClientResponseItems||[];for(let y=0;y<n;y++)r.push(l("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${y}-ad`}));i.forEach((y,T)=>{if(a&&(T+s)%a===0&&T+a<i.length&&T>=a)for(let I=0;I<o;I++)r.push(l("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${y.id}-ad-${I}`}));r.push(l("searchcraft-popover-list-item",{item:y,key:y.id,popoverResultMappings:this.popoverResultMappings,documentPosition:this.searchResultsPerPage*(this.searchResultsPage-1)+T}))});for(let y=0;y<c;y++)r.push(l("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${y}-ad`}));return l("div",{class:"searchcraft-popover-list-view"},r)}renderWithNoAds(){var r;return l("div",{class:"searchcraft-popover-list-view"},(r=this.searchClientResponseItems)==null?void 0:r.map((s,a)=>l("searchcraft-popover-list-item",{item:s,key:s.id,popoverResultMappings:this.popoverResultMappings,documentPosition:this.searchResultsPerPage*(this.searchResultsPage-1)+a})))}render(){var r;switch(((r=this.config)==null?void 0:r.adSource)||"None"){case"adMarketplace":return this.renderWithADMAds();case"Custom":return this.renderWithCustomAds();case"Nativo":return this.renderWithNativoAds();default:return this.renderWithNoAds()}}},[0,"searchcraft-popover-list-view",{popoverResultMappings:[16],searchClientResponseItems:[16],adClientResponseItems:[16],searchResultsPage:[2,"search-results-page"],searchResultsPerPage:[2,"search-results-per-page"]}]);function xs(){if(typeof customElements>"u")return;["searchcraft-popover-list-view","searchcraft-ad","searchcraft-popover-list-item"].forEach(t=>{switch(t){case"searchcraft-popover-list-view":customElements.get(t)||customElements.define(t,Fo);break;case"searchcraft-ad":customElements.get(t)||vt();break;case"searchcraft-popover-list-item":customElements.get(t)||er();break}})}const Do=N(class extends D{constructor(){super();f(this,"type","inline");f(this,"popoverResultMappings");f(this,"hotkey","k");f(this,"hotkeyModifier","meta");f(this,"isPopoverVisibleInState",!1);f(this,"unsubscribe");f(this,"searchClientResponseItems",[]);f(this,"adClientResponseItems",[]);f(this,"searchTerm");f(this,"isFocused",!1);f(this,"breakpointSm",576);f(this,"breakpointMd",768);f(this,"breakpointLg",992);f(this,"searchResultsPage");f(this,"searchResultsPerPage");f(this,"modalElement");f(this,"handleDocumentClick",r=>{this.hostElement.contains(r.target)||(this.isFocused=!1)});f(this,"handleDocumentKeyDown",r=>{if(r.key===this.hotkey&&this.handleHotkeyPressed(r),!!this.hostElement.contains(document.activeElement))switch(r.key){case"ArrowDown":case"ArrowUp":r.preventDefault(),this.focusOnNextListItem(r.key);break;case"Escape":_.getState().setPopoverVisibility(!1);break;default:return}});f(this,"handleInputInit",()=>{const r=this.hostElement.querySelector(".searchcraft-input-form-input");r==null||r.focus()});this.__registerHost()}get hostElement(){return this}componentDidLoad(){const r=getComputedStyle(document.documentElement);this.breakpointSm=Number.parseFloat(r.getPropertyValue("--sc-breakpoint-sm").trim()),this.breakpointMd=Number.parseFloat(r.getPropertyValue("--sc-breakpoint-md").trim()),this.breakpointLg=Number.parseFloat(r.getPropertyValue("--sc-breakpoint-lg").trim()),this.isPopoverVisibleInState=_.getState().isPopoverVisible,document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleDocumentKeyDown),this.unsubscribe=_.subscribe(s=>{this.isPopoverVisibleInState!==s.isPopoverVisible&&this.handlePopoverVisibilityChange(s.isPopoverVisible),this.searchClientResponseItems=[...s.searchClientResponseItems],this.adClientResponseItems=[...s.adClientResponseItems],this.searchTerm=s.searchTerm,this.searchResultsPage=s.searchResultsPage,this.searchResultsPerPage=s.searchResultsPerPage}),_.getState().setHotKeyAndHotKeyModifier(this.hotkey,this.hotkeyModifier)}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleDocumentKeyDown)}handlePopoverVisibilityChange(r){this.isPopoverVisibleInState=r,document.body.style.overflow=r?"hidden":"auto"}handleInputFocus(){this.isFocused=!0,this.type==="inline"&&window.visualViewport&&window.visualViewport.width<this.breakpointSm&&(_.getState().setPopoverVisibility(!0),this.modalElement||(this.modalElement=document.createElement("searchcraft-popover-form"),this.modalElement.popoverResultMappings=this.popoverResultMappings,this.modalElement.setAttribute("type","fullscreen"),document.body.appendChild(this.modalElement)))}handleModalBackdropClick(r){_.getState().setPopoverVisibility(!1)}handleHotkeyPressed(r){if(r.ctrlKey&&this.hotkeyModifier==="ctrl"||r.altKey&&this.hotkeyModifier==="alt"||r.metaKey&&this.hotkeyModifier==="meta")if(r.preventDefault(),this.type==="inline"&&!this.isPopoverVisibleInState){const s=this.hostElement.querySelector(".searchcraft-input-form-input");s==null||s.focus()}else _.getState().setPopoverVisibility(!this.isPopoverVisibleInState)}handleCancelButtonClick(){_.getState().setPopoverVisibility(!1)}focusOnNextListItem(r){var o,n;const s=Array.from(document.querySelectorAll(".searchcraft-popover-list-item-link")).filter(c=>!c.hasAttribute("disabled")&&c.offsetParent!==null),a=s.indexOf(document.activeElement);if(r==="ArrowDown")(o=s[(a+1)%s.length])==null||o.focus();else if(r==="ArrowUp")if(a>=1)(n=s[a-1])==null||n.focus();else{const c=document.querySelector(".searchcraft-input-form-input");c&&(c.focus(),requestAnimationFrame(()=>{c.selectionEnd=c.value.length,c.selectionStart=c.value.length}))}}get hasResultsToShow(){var r,s;return this.searchTerm&&((s=(r=this.searchTerm)==null?void 0:r.trim())==null?void 0:s.length)>0&&this.searchClientResponseItems.length>0}renderInlinePopover(){const r=this.hasResultsToShow&&this.isFocused;return l("div",{class:se("searchcraft-popover-form searchcraft-popover-form-inline",{"searchcraft-popover-form-active":r})},l("div",{class:"searchcraft-popover-form-input searchcraft-popover-form-inline-input"},l("searchcraft-input-form",{onInputFocus:this.handleInputFocus.bind(this)})),r&&l("div",{class:"searchcraft-popover-form-inline-wrapper"},l("searchcraft-popover-list-view",{popoverResultMappings:this.popoverResultMappings,searchClientResponseItems:this.searchClientResponseItems,adClientResponseItems:this.adClientResponseItems,searchResultsPage:this.searchResultsPage,searchResultsPerPage:this.searchResultsPerPage}),l("searchcraft-popover-footer",null)))}renderModalPopover(){if(this.isPopoverVisibleInState)return l("div",{class:se("searchcraft-popover-form searchcraft-popover-form-modal",{"searchcraft-popover-form-active":this.hasResultsToShow})},l("div",{class:"searchcraft-popover-form-modal-backdrop",onClick:this.handleModalBackdropClick}),l("div",{class:"searchcraft-popover-form-modal-wrapper"},l("div",{class:"searchcraft-popover-form-input searchcraft-popover-form-modal-input"},l("searchcraft-input-form",{onInputFocus:this.handleInputFocus.bind(this),onInputInit:this.handleInputInit.bind(this)}),l("button",{type:"button",class:"searchcraft-popover-form-cancel-button searchcraft-popover-form-modal-cancel-button",onClick:this.handleCancelButtonClick.bind(this)},"Cancel")),l("div",{class:"searchcraft-popover-form-modal-popover-list-view"},this.hasResultsToShow&&l("searchcraft-popover-list-view",{popoverResultMappings:this.popoverResultMappings,searchClientResponseItems:this.searchClientResponseItems,adClientResponseItems:this.adClientResponseItems,searchResultsPage:this.searchResultsPage,searchResultsPerPage:this.searchResultsPerPage})),l("searchcraft-popover-footer",null)))}renderFullscreenPopover(){if(this.isPopoverVisibleInState)return l("div",{class:se("searchcraft-popover-form searchcraft-popover-form-fullscreen",{"searchcraft-popover-form-active":this.hasResultsToShow})},l("div",{class:"searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input"},l("searchcraft-input-form",{onInputFocus:this.handleInputFocus.bind(this),onInputInit:this.handleInputInit.bind(this)}),l("button",{type:"button",class:"searchcraft-popover-form-cancel-button searchcraft-popover-form-fullscreen-cancel-button",onClick:this.handleCancelButtonClick.bind(this)},"Cancel")),l("div",{class:"searchcraft-popover-form-fullscreen-popover-list-view"},this.hasResultsToShow&&l("searchcraft-popover-list-view",{popoverResultMappings:this.popoverResultMappings,searchClientResponseItems:this.searchClientResponseItems,adClientResponseItems:this.adClientResponseItems,searchResultsPage:this.searchResultsPage,searchResultsPerPage:this.searchResultsPerPage})),l("searchcraft-popover-footer",null))}render(){switch(this.type){case"inline":return this.renderInlinePopover();case"modal":return this.renderModalPopover();case"fullscreen":return this.renderFullscreenPopover()}}},[0,"searchcraft-popover-form",{type:[1],popoverResultMappings:[16],hotkey:[1],hotkeyModifier:[1,"hotkey-modifier"],isPopoverVisibleInState:[32],unsubscribe:[32],searchClientResponseItems:[32],adClientResponseItems:[32],searchTerm:[32],isFocused:[32],breakpointSm:[32],breakpointMd:[32],breakpointLg:[32],searchResultsPage:[32],searchResultsPerPage:[32],modalElement:[32]}]);function Rs(){if(typeof customElements>"u")return;["searchcraft-popover-form","searchcraft-ad","searchcraft-button","searchcraft-error-message","searchcraft-input-form","searchcraft-input-label","searchcraft-popover-footer","searchcraft-popover-form","searchcraft-popover-list-item","searchcraft-popover-list-view"].forEach(t=>{switch(t){case"searchcraft-popover-form":customElements.get(t)||customElements.define(t,Do);break;case"searchcraft-ad":customElements.get(t)||vt();break;case"searchcraft-button":customElements.get(t)||bt();break;case"searchcraft-error-message":customElements.get(t)||yt();break;case"searchcraft-input-form":customElements.get(t)||ks();break;case"searchcraft-input-label":customElements.get(t)||Jt();break;case"searchcraft-popover-footer":customElements.get(t)||Es();break;case"searchcraft-popover-form":customElements.get(t)||Rs();break;case"searchcraft-popover-list-item":customElements.get(t)||er();break;case"searchcraft-popover-list-view":customElements.get(t)||xs();break}})}const No=Rs,Ho=er,Uo=xs,zo=N(class extends D{constructor(){super();f(this,"template");f(this,"searchTerm");f(this,"searchResultsPage");f(this,"searchResultsPerPage");f(this,"searchResultsCount");f(this,"count",0);f(this,"range",[0,0]);f(this,"responseTime","0");f(this,"unsubscribe",()=>{});this.__registerHost()}connectedCallback(){this.unsubscribe=_.subscribe(r=>{this.searchTerm=r.searchTerm,this.searchResultsPage=r.searchResultsPage,this.searchResultsPerPage=r.searchResultsPerPage,this.searchResultsCount=r.searchResultsCount,this.count=this.searchResultsCount,this.range[0]=this.searchResultsPage<=1?1:this.searchResultsPerPage*(this.searchResultsPage-1),this.range[1]=this.searchResultsPerPage*this.searchResultsPage,this.range[1]=this.range[1]>this.searchResultsCount?this.searchResultsCount:this.range[1],this.responseTime=((r.searchResponseTimeTaken||0)*1e3).toFixed(2)})}disconnectedCallback(){this.unsubscribe&&this.unsubscribe()}render(){return!this.searchTerm||this.searchResultsCount===0?null:l("p",{class:"searchcraft-results-info"},typeof this.template<"u"?this.template({range:[Number(this.range[0]),Number(this.range[1])],count:this.count,responseTime:this.responseTime},{html:Ye}):`${ys(this.count)} results found in ${this.responseTime}ms`)}},[0,"searchcraft-results-info",{template:[16],searchTerm:[32],searchResultsPage:[32],searchResultsPerPage:[32],searchResultsCount:[32],count:[32],range:[32],responseTime:[32]}]);function Bo(){if(typeof customElements>"u")return;["searchcraft-results-info"].forEach(t=>{switch(t){case"searchcraft-results-info":customElements.get(t)||customElements.define(t,zo);break}})}const Vo=Bo,jo=N(class extends D{constructor(){super();f(this,"item");f(this,"index");f(this,"documentPosition",0);f(this,"template");f(this,"templateHtml");f(this,"handleResultContainerClick",r=>{var h;const s=_.getState(),a=s.getSearchcraftCore();if(!r.target)return;const n=r.target.closest("a");if(!n||!((h=this.hostElement)!=null&&h.contains(n))||!a||!a.measureClient)return;const c=this.documentPosition,i=s.searchTerm,u=s.searchClientResponseItems.length||0;a.measureClient.sendMeasureEvent("document_clicked",{document_position:c,number_of_documents:u,search_term:i})});f(this,"handleKeyDown",()=>{});this.__registerHost()}get hostElement(){return this}connectedCallback(){var r;if(this.item)try{this.templateHtml=(r=this.template)==null?void 0:r.call(this,this.item.document,this.index,{html:Ye,source_index:this.item.source_index})}catch(s){console.error("Invalid search result template:",s)}}render(){if(this.item)return typeof this.template>"u"?l("div",{class:"searchcraft-search-result searchcraft-search-result-no-template",onClick:this.handleResultContainerClick,onKeyDown:this.handleKeyDown},Object.entries(this.item.document).map(([r,s])=>l("p",{key:r},l("strong",null,r),": ",s))):l("div",{class:"searchcraft-search-result",innerHTML:this.templateHtml,onClick:this.handleResultContainerClick,onKeyDown:this.handleKeyDown})}},[0,"searchcraft-search-result",{item:[16],index:[2],documentPosition:[2,"document-position"],template:[16],templateHtml:[32]}]);function Ts(){if(typeof customElements>"u")return;["searchcraft-search-result"].forEach(t=>{switch(t){case"searchcraft-search-result":customElements.get(t)||customElements.define(t,jo);break}})}const Wo=Ts,Go=N(class extends D{constructor(){super();f(this,"initialQuery");f(this,"template");f(this,"adClientResponseItems",[]);f(this,"config");f(this,"initialSearchClientResponseItems");f(this,"isSearchInProgress",!0);f(this,"searchClientResponseItems");f(this,"searchResultsPage");f(this,"searchResultsPerPage");f(this,"searchTerm","");f(this,"unsubscribe",()=>{});this.__registerHost()}componentDidLoad(){var s;const r=_.getState();this.handleStateChange(r),this.searchClientResponseItems=r.searchClientResponseItems,this.searchTerm=r.searchTerm,this.config=(s=r.core)==null?void 0:s.config,r.afterInit=a=>{this.initialQuery&&a.setInitialQuery(this.initialQuery)},this.unsubscribe=_.subscribe(a=>this.handleStateChange(a))}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}handleStateChange(r){var s;this.adClientResponseItems=[...r.adClientResponseItems],this.config=(s=r.core)==null?void 0:s.config,this.initialSearchClientResponseItems=[...r.initialSearchClientResponseItems],this.isSearchInProgress=r.isSearchInProgress,this.searchClientResponseItems=[...r.searchClientResponseItems],this.searchResultsPage=r.searchResultsPage,this.searchResultsPerPage=r.searchResultsPerPage,this.searchTerm=r.searchTerm}renderEmptyState(){return l("div",{class:"searchcraft-search-results-empty-state"},l("slot",{name:"empty-search"}))}renderNoResultsFoundState(){return l("div",{class:"searchcraft-search-results"},l("div",{class:"searchcraft-search-results-error-message"},l("searchcraft-error-message",null,'No search results found for "',this.searchTerm,'" query.')))}renderWithADMAds(){var s,a,o;const r=(s=this.searchClientResponseItems)!=null&&s.length?this.searchClientResponseItems:(a=this.initialSearchClientResponseItems)!=null&&a.length?this.initialSearchClientResponseItems:[];return l("div",{class:"searchcraft-search-results"},(o=this.adClientResponseItems)==null?void 0:o.map(n=>l("searchcraft-ad",{adSource:"adMarketplace",adClientResponseItem:n,adContainerId:K(),key:n.id})),r.map((n,c)=>l("searchcraft-search-result",{key:n.id,"document-position":this.searchResultsPerPage*(this.searchResultsPage-1)+c,index:c,item:n,template:this.template})))}renderWithCustomAds(){var i,u,h,p,m,b;const r=[],s=((i=this.config)==null?void 0:i.customAdInterstitialInterval)||0,a=((u=this.config)==null?void 0:u.customAdInterstitialQuantity)||1,o=((h=this.config)==null?void 0:h.customAdStartQuantity)||0,n=((p=this.config)==null?void 0:p.customAdEndQuantity)||0,c=(m=this.searchClientResponseItems)!=null&&m.length?this.searchClientResponseItems:(b=this.initialSearchClientResponseItems)!=null&&b.length?this.initialSearchClientResponseItems:[];for(let y=0;y<o;y++)r.push(l("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${y}-ad`}));c.forEach((y,T)=>{if(s&&T%s===0&&T+s<c.length&&T>=s)for(let I=0;I<a;I++)r.push(l("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${y.id}-ad-${I}`}));r.push(l("searchcraft-search-result",{key:y.id,"document-position":this.searchResultsPerPage*(this.searchResultsPage-1)+T,index:T,item:y,template:this.template}))});for(let y=0;y<n;y++)r.push(l("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${y}-ad`}));return l("div",{class:"searchcraft-search-results"},r)}renderWithNativoAds(){var u,h,p,m,b,y,T;const r=[],s=((u=this.config)==null?void 0:u.nativoAdInterstialStartIndex)||0,a=((h=this.config)==null?void 0:h.nativoAdInterstitialInterval)||0,o=((p=this.config)==null?void 0:p.nativoAdInterstitialQuantity)||1,n=((m=this.config)==null?void 0:m.nativoAdStartQuantity)||0,c=((b=this.config)==null?void 0:b.nativoAdEndQuantity)||0,i=(y=this.searchClientResponseItems)!=null&&y.length?this.searchClientResponseItems:(T=this.initialSearchClientResponseItems)!=null&&T.length?this.initialSearchClientResponseItems:[];for(let I=0;I<n;I++)r.push(l("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${I}-ad`}));i.forEach((I,F)=>{if(a&&(F+s)%a===0&&F+a<i.length&&F>=a)for(let P=0;P<o;P++)r.push(l("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${I.id}-ad-${P}`}));r.push(l("searchcraft-search-result",{key:I.id,"document-position":this.searchResultsPerPage*(this.searchResultsPage-1)+F,index:F,item:I,template:this.template}))});for(let I=0;I<c;I++)r.push(l("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${I}-ad`}));return l("div",{class:"searchcraft-search-results"},r)}renderWithNoAds(){var s,a;const r=(s=this.searchClientResponseItems)!=null&&s.length?this.searchClientResponseItems:(a=this.initialSearchClientResponseItems)!=null&&a.length?this.initialSearchClientResponseItems:[];return l("div",{class:"searchcraft-search-results"},r.map((o,n)=>l("searchcraft-search-result",{key:o.id,"document-position":this.searchResultsPerPage*(this.searchResultsPage-1)+n,index:n,item:o,template:this.template})))}render(){var a;const r=this.searchClientResponseItems||[],s=this.initialSearchClientResponseItems||[];if(this.searchTerm===""&&s.length===0&&!this.isSearchInProgress)return this.renderEmptyState();if(this.searchTerm.length>0&&r.length===0&&!this.isSearchInProgress)return this.renderNoResultsFoundState();switch(((a=this.config)==null?void 0:a.adSource)||"None"){case"adMarketplace":return this.renderWithADMAds();case"Custom":return this.renderWithCustomAds();case"Nativo":return this.renderWithNativoAds();default:return this.renderWithNoAds()}}},[4,"searchcraft-search-results",{initialQuery:[1,"initial-query"],template:[16],adClientResponseItems:[32],config:[32],initialSearchClientResponseItems:[32],isSearchInProgress:[32],searchClientResponseItems:[32],searchResultsPage:[32],searchResultsPerPage:[32],searchTerm:[32]}]);function qo(){if(typeof customElements>"u")return;["searchcraft-search-results","searchcraft-ad","searchcraft-error-message","searchcraft-search-result"].forEach(t=>{switch(t){case"searchcraft-search-results":customElements.get(t)||customElements.define(t,Go);break;case"searchcraft-ad":customElements.get(t)||vt();break;case"searchcraft-error-message":customElements.get(t)||yt();break;case"searchcraft-search-result":customElements.get(t)||Ts();break}})}const Yo=qo,Zo=N(class extends D{constructor(){super();f(this,"caption");f(this,"disabled",!1);f(this,"inputId");f(this,"label");f(this,"labelId");f(this,"name");f(this,"options",[]);f(this,"selectChange");f(this,"searchResultsPerPage");f(this,"setSearchResultsPage",()=>{});f(this,"setSearchResultsPerPage",()=>{});f(this,"handleSelectChange",r=>{this.selectChange.emit(r.target.value)});this.__registerHost(),this.selectChange=ke(this,"selectChange")}handleGoToPage(r){this.setSearchResultsPage(r)}render(){return l("div",{key:"15ecbf48c824a161cd83bdab99dace8e44f1ab39",class:"searchcraft-select"},this.label&&l("label",{key:"aba433ae9c27c9405099cffcef923c3ad22d7fda",class:"searchcraft-select-label",id:this.labelId||`${this.inputId}-label`,htmlFor:this.inputId},this.label),l("div",{key:"8df8a2ff05924c9c55cdd6e3827cd927cddab82a",class:"searchcraft-select-input-wrapper"},l("select",{key:"1d5f492c2255f8ca1b6ea5e04a2726dda2f2c52f","aria-labelledby":this.label?this.labelId||`${this.inputId}-label`:void 0,class:"searchcraft-select-input",disabled:this.disabled,id:this.inputId,name:this.name,onChange:this.handleSelectChange},(typeof this.options=="string"?JSON.parse(this.options):this.options).map(({label:r,value:s,selected:a})=>l("option",{key:s,value:s,selected:a},r))),l("svg",{key:"0ec6892b529f2e70027aadea47208582a65a97b7",class:"searchcraft-select-input-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l("title",{key:"bced6b62378491d1d1c629b602d7d033d912c761"},"Select dropdown icon"),l("path",{key:"659f8ebf9129e2e7941da949d29688c41c1472bb",d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))),this.caption&&l("p",{key:"51217d926f68f79b6c3514f5fd769b56549fdce9",class:"searchcraft-select-caption"},this.caption))}},[0,"searchcraft-select",{caption:[1],disabled:[4],inputId:[1,"input-id"],label:[1],labelId:[1,"label-id"],name:[1],options:[1],searchResultsPerPage:[32],setSearchResultsPage:[32],setSearchResultsPerPage:[32]}]);function Ps(){if(typeof customElements>"u")return;["searchcraft-select"].forEach(t=>{switch(t){case"searchcraft-select":customElements.get(t)||customElements.define(t,Zo);break}})}const Qo=N(class extends D{constructor(){super();f(this,"increment",20);f(this,"searchTerm");f(this,"searchResultsPage");f(this,"searchResultsPerPage");f(this,"searchResultsCount");f(this,"searchResultsPagesCount");f(this,"initialSearchResultsPerPage");f(this,"setSearchResultsPerPage",()=>{});f(this,"setSearchResultsPage",()=>{});f(this,"unsubscribe",()=>{});this.__registerHost()}componentDidLoad(){this.unsubscribe=_.subscribe(r=>{this.searchTerm=r.searchTerm,this.searchResultsPerPage=r.searchResultsPerPage,this.searchResultsPage=r.searchResultsPage,this.searchResultsCount=r.searchResultsCount,this.searchResultsPagesCount=Math.ceil(this.searchResultsCount/this.searchResultsPerPage),this.setSearchResultsPage=r.setSearchResultsPage,this.setSearchResultsPerPage=r.setSearchResultsPerPage}),this.initialSearchResultsPerPage=_.getState().searchResultsPerPage}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}render(){if(!(!this.searchTerm||this.searchResultsPagesCount<=1))return l("div",{class:"searchcraft-search-results-per-page"},l("div",{class:"searchcraft-search-results-per-page-select"},l("label",{class:"searchcraft-search-results-per-page-select-label",htmlFor:"searchcraft-search-results-per-page-select-input"},"Results Per Page"),l("div",{class:"searchcraft-search-results-per-page-select-input"},l("searchcraft-select",{inputId:"searchcraft-search-results-per-page-select-input",name:"results-per-page",options:[...Array(5)].map((r,s)=>{const a=this.initialSearchResultsPerPage+Number(this.increment)*s;return{label:`${a}`,value:a}}),onSelectChange:r=>{this.setSearchResultsPerPage(Number(r.detail)),this.setSearchResultsPage(1)}}))))}},[0,"searchcraft-search-results-per-page",{increment:[8],searchTerm:[32],searchResultsPage:[32],searchResultsPerPage:[32],searchResultsCount:[32],searchResultsPagesCount:[32],initialSearchResultsPerPage:[32],setSearchResultsPerPage:[32],setSearchResultsPage:[32]}]);function Ko(){if(typeof customElements>"u")return;["searchcraft-search-results-per-page","searchcraft-select"].forEach(t=>{switch(t){case"searchcraft-search-results-per-page":customElements.get(t)||customElements.define(t,Qo);break;case"searchcraft-select":customElements.get(t)||Ps();break}})}const Xo=Ko,Jo=Ps,ec=Ss,tc=`[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-ad{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased}.searchcraft-ad-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-ad-no-template>p{margin:0}.searchcraft-adm-ad{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-result{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased}.searchcraft-search-result-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-search-result-no-template>p{margin:0}.searchcraft-search-results{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state{text-align:center}.searchcraft-search-results-error-message{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background:none;border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;gap:4px;padding:12px;position:relative}.searchcraft-button.searchcraft-button-disabled{cursor:not-allowed}.searchcraft-button-primary{background-color:var(--sc-surface-brand-primary);color:var(--sc-content-brand-on-primary);font-weight:var(--sc-font-bold)}.searchcraft-button-primary:hover{background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button-primary:focus{border-color:var(--sc-border-primary)}.searchcraft-button-primary:active{background-color:var(--sc-surface-brand-primary-active)}.searchcraft-button-primary.searchcraft-button-disabled,.searchcraft-button-primary.searchcraft-button-disabled:hover,.searchcraft-button-primary.searchcraft-button-disabled:focus,.searchcraft-button-primary.searchcraft-button-disabled:active{background-color:var(--sc-surface-disabled);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-tertiary{background-color:var(--sc-surface-neutral-primary);color:var(--sc-content-brand);font-weight:var(--sc-font-normal)}.searchcraft-button-tertiary:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-button-tertiary:focus{background-color:var(--sc-surface-neutral-light);border-color:var(--sc-border-primary)}.searchcraft-button-tertiary:active{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-button-tertiary.searchcraft-button-disabled,.searchcraft-button-tertiary.searchcraft-button-disabled:hover,.searchcraft-button-tertiary.searchcraft-button-disabled:focus,.searchcraft-button-tertiary.searchcraft-button-disabled:active{background-color:var(--sc-surface-neutral-light);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-icon{fill:none}.searchcraft-error-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-danger);margin:0}.searchcraft-facet-list{display:flex;flex-direction:column;gap:8px;width:100%}.searchcraft-facet-list-checkbox-label{align-items:center;color:var(--sc-content-neutral-primary);display:flex;font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);gap:8px;position:relative;-webkit-font-smoothing:antialiased}.searchcraft-facet-list-checkbox-input-wrapper{position:relative}.searchcraft-facet-list-checkbox-input{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;height:24px;justify-content:center;width:24px;margin:0}.searchcraft-facet-list-checkbox-input:focus{outline:2px solid var(--sc-surface-brand-primary);outline-offset:2px}.searchcraft-facet-list-checkbox-input:checked{background-color:var(--sc-surface-brand-primary);position:relative}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-check-icon{display:flex}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-dash-icon{display:flex}.searchcraft-facet-child-list{display:flex;flex-direction:column;gap:6px}.searchcraft-facet-child-list-checkbox-label{margin-left:24px}.searchcraft-facet-child-list-checkbox-label:first-child{margin-top:6px}.searchcraft-facet-list-checkbox-input-check-icon{display:none;height:16px;left:50%;position:absolute;margin-top:2px;top:50%;transform:translate(-50%, -50%);width:16px}.searchcraft-facet-list-checkbox-input-dash-icon{display:none;height:3px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:14px}.searchcraft-facet-list-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-disabled);text-align:center}.searchcraft-filter-panel{display:flex;flex-direction:column;gap:16px}.searchcraft-filter-panel-section{display:flex;flex-direction:column;gap:8px}.searchcraft-filter-panel-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}:root{--sc-input-form-border-radius: var(--sc-border-radius);--sc-input-form-search-icon-size: 20px;--sc-input-form-clear-icon-size: 20px}.searchcraft-input-form-grid{display:grid;gap:4px 8px}.searchcraft-input-form-grid-button-left{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-form-grid-button-left .searchcraft-input-form-button{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-label{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-error-message{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-form-grid-button-right .searchcraft-input-form-button{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-none{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-form-grid-button-none .searchcraft-input-form-button{display:none}.searchcraft-input-form-grid-button-none .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-input-wrapper{display:flex;position:relative}.searchcraft-input-form-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-form-border-radius);border:none;color:var(--sc-content-neutral-primary);flex:1;outline:none;padding:12px 44px}.searchcraft-input-form-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input-form-input:focus{outline:var(--sc-border-brand) solid 2px;outline-offset:-1px}.searchcraft-input-form-input.searchcraft-placeholder-hide-on-focus:focus::placeholder{opacity:0}.searchcraft-input-form-error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-input-icon{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;pointer-events:none;top:0;width:44px}.searchcraft-input-form-input-search-icon{color:var(--sc-content-neutral-secondary);fill:none;height:var(--sc-input-form-search-icon-size);pointer-events:none;width:var(--sc-input-form-search-icon-size)}.searchcraft-input-form-clear-button{all:unset;align-items:center;bottom:0;border:none;cursor:pointer;display:flex;justify-content:center;outline:none;position:absolute;right:0;top:0;width:44px}.searchcraft-input-form-clear-icon{color:var(--sc-content-brand);fill:none;height:var(--sc-input-form-clear-icon-size);width:var(--sc-input-form-clear-icon-size)}.searchcraft-input-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-button-border-radius: var(--sc-border-radius)}@media(min-width: 576px){:root{--sc-popover-button-border-radius: var(--sc-border-radius-lg)}}.searchcraft-popover-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);cursor:pointer}.searchcraft-popover-button-skeuomorphic{appearance:none;background:none;border:none;color:var(--sc-content-neutral-primary);display:block;width:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-popover-button-border-radius);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;display:flex;gap:24px;height:40px;justify-content:space-between;line-height:1;padding:4px 5px 4px 10px;background:var(--sc-surface-neutral-primary)}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;height:63px;padding:8px 10px 8px 16px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{align-items:center;display:flex;gap:4px}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{color:var(--sc-content-neutral-secondary);display:flex;gap:4px;font-size:20px;font-weight:500}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 3px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 3px);background-color:var(--sc-surface-neutral-primary);box-shadow:0 3px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 6px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 2px);position:relative}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 8px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 8px);box-shadow:0 4px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 6px 1px rgb(from var(--sc-content-neutral-secondary) r g b/20%),0 7px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 9px 4px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 13px 8px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 5px)}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before,.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{content:"";display:block}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 4px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 4px);background:linear-gradient(340deg, rgb(from var(--sc-surface-neutral-secondary) r g b/2%) 0%, var(--sc-surface-neutral-secondary) 100%);inset:2px;position:absolute}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 12px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 12px);inset:4px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{aspect-ratio:1/1;height:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap>span{display:flex;line-height:1;left:50%;margin-top:2%;position:absolute;top:50%;transform:translate(-50%, -50%)}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:60%;width:auto}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:50%}}:root{--sc-popover-list-view-height: 600px;--sc-popover-modal-max-width: 800px}.searchcraft-popover-form{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);display:flex;flex:1;flex-direction:column}.searchcraft-popover-form searchcraft-input-form,.searchcraft-popover-form searchcraft-popover-footer{width:100%}.searchcraft-popover-form.searchcraft-popover-form-active .searchcraft-popover-form-input{padding-bottom:1px}.searchcraft-popover-form searchcraft-popover-list-view{flex-shrink:1;height:100%;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-input{display:flex;flex-direction:row;gap:12px}.searchcraft-popover-form-input .searchcraft-input-form-input{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius-lg);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;width:0}.searchcraft-popover-form-cancel-button{background:none;border:none;cursor:pointer;font-size:14px}.searchcraft-popover-form-modal-input,.searchcraft-popover-form-fullscreen-input{padding:24px}.searchcraft-popover-form-modal-popover-list-view,.searchcraft-popover-form-fullscreen-popover-list-view{flex-grow:1;flex-shrink:1;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-inline{background-color:var(--sc-surface-neutral-primary);border:1px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius-xl);padding:12px;position:relative}.searchcraft-popover-form-inline.searchcraft-popover-form-active{border:1px solid var(--sc-border-neutral);border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:1px}.searchcraft-popover-form-inline searchcraft-popover-list-view{padding:0 12px}.searchcraft-popover-form-inline .searchcraft-input-form-input,.searchcraft-popover-form-inline .searchcraft-popover-list-item-link,.searchcraft-popover-form-inline .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-xl - 12px);border-radius:calc(var(--sc-border-radius-xl) - 12px)}.searchcraft-popover-form-inline-wrapper{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-top:none;border-bottom-left-radius:var(--sc-border-radius-xl);border-bottom-right-radius:var(--sc-border-radius-xl);display:flex;flex-direction:column;left:-1px;max-height:var(--sc-popover-list-view-height);overflow:hidden;position:absolute;right:-1px;top:100%}.searchcraft-popover-form-modal{align-items:center;display:flex;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-modal .searchcraft-input-form-input,.searchcraft-popover-form-modal .searchcraft-popover-list-item-link,.searchcraft-popover-form-modal .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px)}.searchcraft-popover-form-modal-backdrop{background-color:rgb(from var(--sc-content-neutral-primary) r g b/50%);display:none;inset:0;position:fixed}@media(min-width: 576px){.searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal-wrapper{background-color:var(--sc-surface-neutral-primary);box-shadow:1px 2px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 2px 4px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 4px 8px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 8px 16px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 16px 32px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 32px 64px rgb(from var(--sc-content-neutral-primary) r g b/7%);display:flex;flex-direction:column;inset:0;max-width:var(--sc-popover-modal-max-width);overflow:hidden;position:absolute;width:100%;z-index:1001}@media(min-width: 576px){.searchcraft-popover-form-modal-wrapper{border-radius:var(--sc-border-radius-2xl);inset:0;margin-top:100px;max-height:var(--sc-popover-list-view-height);max-width:var(--sc-popover-modal-max-width);position:relative}}.searchcraft-popover-form-modal-cancel-button{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-modal-cancel-button{padding:8px 12px}}.searchcraft-popover-form-fullscreen{background-color:var(--sc-surface-neutral-primary);display:flex;flex-direction:column;justify-content:space-between;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-fullscreen .searchcraft-popover-list-item-link,.searchcraft-popover-form-fullscreen .searchcraft-adm-ad-link{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-form-fullscreen-cancel-button{border-radius:var(--sc-border-radius-lg);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-fullscreen-cancel-button{padding:8px 12px}}.searchcraft-popover-footer{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;background-color:var(--sc-surface-neutral-secondary);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;display:flex;gap:8px;justify-content:space-between;line-height:1;padding:20px 24px}@media(min-width: 576px){.searchcraft-popover-footer{padding:20px 32px}}.searchcraft-popover-footer-results-info{margin:0}.searchcraft-popover-footer-link{color:var(--sc-content-neutral-primary);display:flex;max-width:160px;width:100%}:root{--sc-popover-list-item-image-fit: contain}.searchcraft-popover-list-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-popover-list-item:last-child .searchcraft-popover-list-item{border-bottom:none}.searchcraft-popover-list-item-link{align-items:flex-start;color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-popover-list-item-link:focus,.searchcraft-popover-list-item-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-popover-list-item-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-popover-list-item-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-popover-list-item-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-popover-list-item-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-popover-list-item-content-title,.searchcraft-popover-list-item-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-popover-list-item-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-popover-list-item-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-popover-list-view{display:flex;flex-direction:column}.searchcraft-results-info{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-primary);margin:0}.searchcraft-slider{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%;margin-top:4px}.searchcraft-slider-range{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range{background-color:var(--sc-surface-brand-primary);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%);z-index:0}.searchcraft-slider-range .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-input{appearance:none;background:rgba(0,0,0,0);border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:1px solid var(--sc-border-neutral);cursor:pointer;height:18px;pointer-events:all;width:18px;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:1px solid var(--sc-border-neutral);cursor:pointer;height:18px;pointer-events:all;width:18px}.searchcraft-slider-range .searchcraft-slider-input:focus::-webkit-slider-thumb{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-slider-range .searchcraft-slider-input:focus::-moz-range-thumb{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-slider-label{color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);justify-content:space-between;margin-top:4px;width:100%}.searchcraft-slider-start-label,.searchcraft-slider-end-label{min-width:30px;text-align:center}.searchcraft-toggle-button{align-items:flex-start;display:flex;gap:10px;justify-content:space-between}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);margin:0}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-toggle-button-background{background:var(--sc-surface-disabled);border-radius:var(--sc-border-radius-full);border:none;cursor:pointer;flex-shrink:0;height:26px;position:relative;transition:background-color .2s;width:44px}.searchcraft-toggle-button-handle{background:var(--sc-surface-neutral-light);border-radius:50%;height:18px;left:4px;position:absolute;top:calc(50% - 9px);transition:transform .3s ease;width:18px}.searchcraft-toggle-button-active .searchcraft-toggle-button-background{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.searchcraft-toggle-button-active .searchcraft-toggle-button-handle{transform:translateX(16px)}.searchcraft-pagination{display:inline-grid;gap:16px;grid-template-columns:repeat(3, auto);grid-template-rows:1fr}.searchcraft-pagination-list{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius);display:flex;list-style-type:none;margin:0;overflow:hidden;padding:0;width:auto}.searchcraft-pagination-list li{border-right:1px solid var(--sc-border-neutral);height:100%;min-height:44px;width:44px}.searchcraft-pagination-list li:last-child{border-right:none}.searchcraft-pagination-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;background-color:var(--sc-surface-neutral-primary);border:none;display:flex;height:100%;justify-content:center;width:100%}.searchcraft-pagination-item-active{background-color:var(--sc-surface-brand-secondary);font-weight:var(--sc-font-bold)}.searchcraft-pagination-control{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius)}.searchcraft-pagination-range{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);appearance:none;background-color:var(--sc-surface-neutral-secondary);border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;height:44px;padding:0 44px 0 16px;width:100%}.searchcraft-select-input:hover{background-color:var(--sc-surface-neutral-secondary-hover)}.searchcraft-select-input:active{background-color:var(--sc-surface-neutral-secondary-active)}.searchcraft-select-input:focus{border-color:var(--sc-border-brand);outline:none}.searchcraft-select-input-icon{fill:none;pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page{display:flex}.searchcraft-search-results-per-page-select{align-items:center;display:flex;gap:12px}.searchcraft-search-results-per-page-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
|
|
25
|
+
`,rc=N(class extends D{constructor(){super(),this.__registerHost()}render(){return l("style",{key:"912dbad4e0aa5be21ed638cd20c276b530991454"},tc)}},[0,"searchcraft-theme"]);function sc(){if(typeof customElements>"u")return;["searchcraft-theme"].forEach(t=>{switch(t){case"searchcraft-theme":customElements.get(t)||customElements.define(t,rc);break}})}const ac=sc,nc=ws,$s=()=>{ao(),oo(),io(),fo(),wo(),xo(),Ro(),$o(),Ao(),Oo(),No(),Ho(),Uo(),Vo(),Wo(),Xo(),Yo(),Jo(),ec(),ac(),nc()};globalThis.__scDefineCustomElements__=$s;const _s={name:"@searchcraft/vue-sdk",version:"0.10.5"},tr="routerLink",Is="navManager",oc="router",cc="aria",Qe=Symbol(),As={default:Qe},Ms=e=>(e==null?void 0:e.split(" "))||[],ic=(e,t,r=[])=>{var s;return[...Array.from(((s=e.value)==null?void 0:s.classList)||[]),...r].filter((a,o,n)=>!t.has(a)&&n.indexOf(a)===o)},ve=(e,t,r=[],s=[],a,o)=>{t!==void 0&&t();const n=j.defineComponent((c,{attrs:i,slots:u,emit:h})=>{var F;const p=j.ref(),m=new Set(Ms(i.class)),b=j.getCurrentInstance(),T=((F=b==null?void 0:b.appContext)==null?void 0:F.provides[Is])?j.inject(Is):void 0,I=P=>{const{routerLink:be}=c;if(be!==Qe)if(T!==void 0){P.preventDefault();let ce={event:P};for(const Re in c){const U=c[Re];c.hasOwnProperty(Re)&&Re.startsWith(oc)&&U!==Qe&&(ce[Re]=U)}T.navigate(ce)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{c[a],Ms(i.class).forEach(U=>{m.add(U)});const P=c.onClick,be=U=>{P!==void 0&&P(U),U.defaultPrevented||I(U)};let ce={ref:p,class:ic(p,m),onClick:be};for(const U in c){const ae=c[U];(c.hasOwnProperty(U)&&ae!==Qe||U.startsWith(cc))&&(ce[U]=ae);const z="on"+U.slice(0,1).toUpperCase()+U.slice(1),Te=i[z];p.value&&i.hasOwnProperty(z)&&"addEventListener"in p.value&&p.value.addEventListener(U,Te)}return tr in c&&c[tr]!==Qe&&(ce={...ce,href:c[tr]}),j.h(e,ce,u.default&&u.default())}});if(typeof n!="function"){let c=[],i={};i.ROUTER_LINK_VALUE=As,r.forEach(u=>i[u]=As),c=s,n.name=e,n.emits=c,n.props=i}return n},lc=ve("searchcraft-filter-panel",()=>{},["items"]),uc=ve("searchcraft-input-form",()=>{},["autoSearch","buttonPlacement","buttonLabel","inputLabel","placeholderValue","placeholderBehavior","core","inputFocus","inputBlur","inputInit"],["inputFocus","inputBlur","inputInit"]),hc=ve("searchcraft-pagination",()=>{}),dc=ve("searchcraft-popover-button",()=>{},["template","type"]),fc=ve("searchcraft-popover-form",()=>{},["type","popoverResultMappings","hotkey","hotkeyModifier"]),pc=ve("searchcraft-results-info",()=>{},["template"]),mc=ve("searchcraft-search-results",()=>{},["initialQuery","template"]),gc=ve("searchcraft-search-results-per-page",()=>{},["increment"]),vc=ve("searchcraft-theme",()=>{}),bc=mc,yc=lc,Cc=uc,Sc=dc,wc=fc,kc=pc,Ec=vc,xc=hc,Rc=gc;class Tc extends On{constructor(t){super(t,{sdkName:_s.name,sdkVersion:_s.version})}}$s(),L.Searchcraft=Tc,L.SearchcraftFilterPanel=yc,L.SearchcraftInputForm=Cc,L.SearchcraftPagination=xc,L.SearchcraftPopoverButton=Sc,L.SearchcraftPopoverForm=wc,L.SearchcraftResultsInfo=kc,L.SearchcraftSearchResults=bc,L.SearchcraftSearchResultsPerPage=Rc,L.SearchcraftTheme=Ec,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
|
|
26
26
|
//# sourceMappingURL=index.umd.js.map
|