@searchcraft/vue-sdk 0.10.1 → 0.10.2

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.umd.js CHANGED
@@ -1,4 +1,4 @@
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 hi=Object.defineProperty;var fi=(L,j,_e)=>j in L?hi(L,j,{enumerable:!0,configurable:!0,writable:!0,value:_e}):L[j]=_e;var d=(L,j,_e)=>fi(L,typeof j!="symbol"?j+"":j,_e);var Is;const _e="searchcraft-javascript-sdk",Ae={experimentalSlotFixes:!1,hydratedSelectorName:"hydrated",lazyLoad:!1,shadowDom:!1,slotRelocation:!0,updatable:!0};var pa=Object.defineProperty,ma=(e,t)=>{for(var r in t)pa(e,r,{get:t[r],enumerable:!0})},ga="http://www.w3.org/2000/svg",va="http://www.w3.org/1999/xhtml",ba=(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,ya=e=>$t.delete(e),ke=e=>$t.get(e),Sa=(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 ba(e,r),s},yr=(e,t)=>t in e,at=(e,t)=>(0,console.error)(e,t),nt=typeof window<"u"?window:{},Ie=nt.document||{head:{}},O=nt.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=Ae.shadowDom,Ca=e=>Promise.resolve(e),_t=!1,Sr=[],kr=[],wa=(e,t)=>r=>{e.push(r),_t||(_t=!0,re.$flags$&4?It(At):re.raf(At))},Cr=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){at(r)}e.length=0},At=()=>{Cr(Sr),Cr(kr),(_t=Sr.length>0)&&re.raf(At)},It=e=>Ca().then(e),xa=wa(kr),Mt=e=>(e=typeof e,e==="object"||e==="function"),Ea={};ma(Ea,{err:()=>wr,map:()=>Ra,ok:()=>Lt,unwrap:()=>Pa,unwrapErr:()=>Ta});var Lt=e=>({isOk:!0,isErr:!1,value:e}),wr=e=>({isOk:!1,isErr:!0,value:e});function Ra(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 wr(r)}throw"should never get here"}var Pa=e=>{if(e.isOk)return e.value;throw e.value},Ta=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},Rr=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",je=(e,t="")=>()=>{},i=(e,t,...r)=>{let s=null,a=null,o=null,n=!1,c=!1;const u=[],h=p=>{for(let m=0;m<p.length;m++)s=p[m],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?ot(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(m=>p[m]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,u,Ia);const l=ot(e,null);return l.$attrs$=t,u.length>0&&(l.$children$=u),l.$key$=a,l.$name$=o,l},ot=(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},_a={},Aa=e=>e&&e.$tag$===_a,Ia={forEach:(e,t)=>e.map(Pr).forEach(t),map:(e,t)=>e.map(Pr).map(t).map(Ma)},Pr=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Ma=e=>{if(typeof e.vtag=="function"){const r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),i(e.vtag,r,...e.vchildren||[])}const t=ot(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Tr=(e,t)=>e!=null&&!Mt(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,La=e=>e,Ce=(e,t,r)=>{const s=La(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},ct=new WeakMap,_r=(e,t,r,s,a,o)=>{if(r!==s){let n=yr(e,t),c=t.toLowerCase();if(t==="class"){const u=e.classList,h=Ar(r);let l=Ar(s);e["s-si"]?(l.push(e["s-si"]),h.forEach(p=>{p.startsWith(e["s-si"])&&l.push(p)}),l=[...new Set(l)],u.add(...l),delete e["s-si"]):(u.remove(...h.filter(p=>p&&!l.includes(p))),u.add(...l.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):yr(nt,c)?t=c.slice(2):t=c[2]+t.slice(3),r||s){const u=t.endsWith(Ir);t=t.replace(Fa,""),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))}}},Oa=/\s/,Ar=e=>(typeof e=="object"&&"baseVal"in e&&(e=e.baseVal),e?e.split(Oa):[]),Ir="Capture",Fa=new RegExp(Ir+"$"),Mr=(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 Lr(Object.keys(a)))n in o||_r(s,n,a[n],void 0,r,t.$flags$);for(const n of Lr(Object.keys(o)))_r(s,n,a[n],o[n],r,t.$flags$)};function Lr(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var Ot,Ft,it=!1,lt=!1,Dt=!1,ne=!1,ut=(e,t,r)=>{var s;const a=t.$children$[r];let o=0,n,c,u;if(it||(Dt=!0,a.$tag$==="slot"&&(a.$flags$|=a.$children$?2:1)),a.$text$!==null)n=a.$elm$=Ie.createTextNode(a.$text$);else if(a.$flags$&1)n=a.$elm$=Ie.createTextNode("");else{if(ne||(ne=a.$tag$==="svg"),n=a.$elm$=Ie.createElementNS(ne?ga:va,!it&&Ae.slotRelocation&&a.$flags$&2?"slot-fb":a.$tag$),ne&&a.$tag$==="foreignObject"&&(ne=!1),Mr(null,a,ne),a.$children$)for(o=0;o<a.$children$.length;++o)c=ut(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$&&Be(e.$elm$,!1)),n},Be=(e,t)=>{re.$flags$|=1;const r=Array.from(e.__childNodes||e.childNodes);e["s-sr"]&&Ae.experimentalSlotFixes;for(let s=r.length-1;s>=0;s--){const a=r[s];a["s-hn"]!==Ft&&a["s-ol"]&&(we(We(a).parentNode,a,We(a)),a["s-ol"].remove(),a["s-ol"]=void 0,a["s-sh"]=void 0,Dt=!0),t&&Be(a,t)}re.$flags$&=-2},Or=(e,t,r,s,a,o)=>{let n=e["s-cr"]&&e["s-cr"].parentNode||e,c;for(;a<=o;++a)s[a]&&(c=ut(null,r,a),c&&(s[a].$elm$=c,we(n,c,We(t))))},Fr=(e,t,r)=>{for(let s=t;s<=r;++s){const a=e[s];if(a){const o=a.$elm$;o&&(lt=!0,o["s-ol"]?o["s-ol"].remove():Be(o,!0),o.remove())}}},Da=(e,t,r,s,a=!1)=>{let o=0,n=0,c=0,u=0,h=t.length-1,l=t[0],p=t[h],m=s.length-1,b=s[0],v=s[m],P,N;for(;o<=h&&n<=m;)if(l==null)l=t[++o];else if(p==null)p=t[--h];else if(b==null)b=s[++n];else if(v==null)v=s[--m];else if(ht(l,b,a))Me(l,b,a),l=t[++o],b=s[++n];else if(ht(p,v,a))Me(p,v,a),p=t[--h],v=s[--m];else if(ht(l,v,a))(l.$tag$==="slot"||v.$tag$==="slot")&&Be(l.$elm$.parentNode,!1),Me(l,v,a),we(e,l.$elm$,p.$elm$.nextSibling),l=t[++o],v=s[--m];else if(ht(p,b,a))(l.$tag$==="slot"||v.$tag$==="slot")&&Be(p.$elm$.parentNode,!1),Me(p,b,a),we(e,p.$elm$,l.$elm$),p=t[--h],b=s[++n];else{for(c=-1,u=o;u<=h;++u)if(t[u]&&t[u].$key$!==null&&t[u].$key$===b.$key$){c=u;break}c>=0?(N=t[c],N.$tag$!==b.$tag$?P=ut(t&&t[n],r,c):(Me(N,b,a),t[c]=void 0,P=N.$elm$),b=s[++n]):(P=ut(t&&t[n],r,n),b=s[++n]),P&&we(We(l.$elm$).parentNode,P,We(l.$elm$))}o>h?Or(e,s[m+1]==null?null:s[m+1].$elm$,r,s,n,m):n>m&&Fr(t,o,h)},ht=(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,We=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"&&!it||Mr(e,t,ne),a!==null&&o!==null?Da(s,a,t,o,r):o!==null?(e.$text$!==null&&(s.textContent=""),Or(s,null,t,o,0,o.length-1)):!r&&Ae.updatable&&a!==null&&Fr(a,0,a.length-1),ne&&n==="svg"&&(ne=!1)):(u=s["s-cr"])?u.parentNode.textContent=c:e.$text$!==c&&(s.data=c)},fe=[],Dr=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(Rr(t,n)){let c=fe.find(u=>u.$nodeToRelocate$===t);lt=!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"],fe.push({$slotRefNode$:o,$nodeToRelocate$:t})),t["s-sr"]&&fe.map(u=>{Rr(u.$nodeToRelocate$,t["s-sn"])&&(c=fe.find(h=>h.$nodeToRelocate$===t),c&&!u.$slotRefNode$&&(u.$slotRefNode$=c.$slotRefNode$))})}else fe.some(c=>c.$nodeToRelocate$===t)||fe.push({$nodeToRelocate$:t})}o.nodeType===1&&Dr(o)}},we=(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$||ot(null,null),h=Aa(t)?t:i(null,null,t);if(Ft=c.tagName,r&&h.$attrs$)for(const l of Object.keys(h.$attrs$))c.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(h.$attrs$[l]=c[l]);h.$tag$=null,h.$flags$|=4,e.$vnode$=h,h.$elm$=u.$elm$=c,it=ka,Ot=c["s-cr"],lt=!1,Me(u,h,r);{if(re.$flags$|=1,Dt){Dr(h.$elm$);for(const l of fe){const p=l.$nodeToRelocate$;if(!p["s-ol"]){const m=Ie.createTextNode("");m["s-nr"]=p,we(p.parentNode,p["s-ol"]=m,p)}}for(const l of fe){const p=l.$nodeToRelocate$,m=l.$slotRefNode$;if(m){const b=m.parentNode;let v=m.nextSibling;{let q=(s=p["s-ol"])==null?void 0:s.previousSibling;for(;q;){let _=(a=q["s-nr"])!=null?a:null;if(_&&_["s-sn"]===p["s-sn"]&&b===(_.__parentNode||_.parentNode)){for(_=_.nextSibling;_===p||_!=null&&_["s-sr"];)_=_==null?void 0:_.nextSibling;if(!_||!_["s-nr"]){v=_;break}}q=q.previousSibling}}const P=p.__parentNode||p.parentNode,N=p.__nextSibling||p.nextSibling;(!v&&b!==P||N!==v)&&p!==v&&(!p["s-hn"]&&p["s-ol"]&&(p["s-hn"]=p["s-ol"].parentNode.nodeName),we(b,p,v),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)}}lt&&xr(h.$elm$),re.$flags$&=-2,fe.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()}))}},Nt=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return Nr(e,e.$ancestorComponent$),xa(()=>Ha(e,t))},Ha=(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(),Ua(o,()=>Va(e,a,t))},Ua=(e,t)=>za(e)?e.then(t).catch(r=>{console.error(r),t()}):t(),za=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Va=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$);ja(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=()=>Ba(e);u.length===0?h():(Promise.all(u).then(h),e.$flags$|=4,u.length=0)}},ja=(e,t,r,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Na(e,t,s)}catch(a){at(a,e.$hostElement$)}return null},Ba=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,Hr(r),Ga(a,"componentDidLoad",void 0,r),s(),e.$onReadyResolve$(r),o||Wa()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&It(()=>Nt(e,!1)),e.$flags$&=-517},Wa=e=>{Hr(Ie.documentElement),It(()=>$r(nt,"appload",{detail:{namespace:_e}}))},Ga=(e,t,r,s)=>{if(e&&e[t])try{return e[t](r)}catch(a){at(a,s)}},Hr=e=>{var t;return e.classList.add((t=Ae.hydratedSelectorName)!=null?t:"hydrated")},qa=(e,t)=>ke(e).$instanceValues$.get(t),Ur=(e,t,r,s)=>{const a=ke(e),o=e,n=a.$instanceValues$.get(t),c=a.$flags$,u=o;r=Tr(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(m=>{try{u[m](r,n,t)}catch(b){at(b,o)}})}(c&18)===2&&Nt(a,!1)}}},Ya=(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:l}=Object.getOwnPropertyDescriptor(o,c)||{};h&&(t.$members$[c][0]|=2048),l&&(t.$members$[c][0]|=4096),Object.defineProperty(o,c,{get(){return h?h.apply(this):qa(this,c)},configurable:!0,enumerable:!0}),Object.defineProperty(o,c,{set(p){const m=ke(this);if(l){const b=u&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),l.apply(this,[Tr(p,u)]),p=u&32?this[c]:m.$hostElement$[c],Ur(this,c,p,t);return}{Ur(this,c,p,t);return}}})}});{const c=new Map;o.attributeChangedCallback=function(u,h,l){re.jmp(()=>{var p;const m=c.get(u);if(!(this.hasOwnProperty(m)&&Ae.lazyLoad)){if(o.hasOwnProperty(m)&&typeof this[m]=="number"&&this[m]==l)return;if(m==null){const v=ke(this),P=v==null?void 0:v.$flags$;if(P&&!(P&8)&&P&128&&l!==h){const q=this,_=(p=t.$watchers$)==null?void 0:p[u];_==null||_.forEach(ve=>{q[ve]!=null&&q[ve].call(q,l,h,u)})}return}}const b=Object.getOwnPropertyDescriptor(o,m);l=l===null&&typeof this[m]=="boolean"?!1:l,l!==this[m]&&(!b.get||b.set)&&(this[m]=l)})},e.observedAttributes=Array.from(new Set([...Object.keys((a=t.$watchers$)!=null?a:{}),...n.filter(([u,h])=>h[0]&15).map(([u,h])=>{const l=h[1]||u;return c.set(l,u),l})]))}}return e},Za=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=()=>Nt(t,!0);a&&a["s-rc"]?a["s-rc"].push(o):o()},Ka=(e,t)=>{},Qa=e=>{if(!(re.$flags$&1)){const t=ke(e),r=t.$cmpMeta$,s=je("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&&Xa(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}}),Za(e,t)}s()}},Xa=e=>{const t=e["s-cr"]=Ie.createComment("");t["s-cn"]=!0,we(e,t,e.firstChild)},Ja=async e=>{re.$flags$&1||ke(e),ct.has(e)&&ct.delete(e),e.shadowRoot&&ct.has(e.shadowRoot)&&ct.delete(e.shadowRoot)},F=(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(){Sa(this,r)},connectedCallback(){this.__hasHostListenerAttached||(ke(this),this.__hasHostListenerAttached=!0),Qa(this),s&&s.call(this)},disconnectedCallback(){Ja(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&&ya(this)})},__attachShadow(){this.shadowRoot=this}}),e.is=r.$tagName$,Ya(e,r)},en=(e,t)=>t,tn=Object.defineProperty,rn=(e,t,r)=>t in e?tn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t,r)=>rn(e,typeof t!="symbol"?t+"":t,r),xe=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(xe||{});class sn{constructor(t){A(this,"logLevel"),A(this,"logFormatter"),this.logLevel=t.logLevel||1,this.logFormatter=t.logFormatter||this.defaultFormatter}defaultFormatter(t,r){return`[${xe[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 de(e,t,r,s){return new(r||(r=Promise))(function(a,o){function n(h){try{u(s.next(h))}catch(l){o(l)}}function c(h){try{u(s.throw(h))}catch(l){o(l)}}function u(h){var l;h.done?a(h.value):(l=h.value,l instanceof r?l:new r(function(p){p(l)})).then(n,c)}u((s=s.apply(e,[])).next())})}function pe(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(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(n=0)),n;)try{if(r=1,s&&(a=2&l[0]?s.return:l[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,l[1])).done)return a;switch(s=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,s=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!((a=a.length>0&&a[a.length-1])||l[0]!==6&&l[0]!==2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){n.label=l[1];break}if(l[0]===6&&n.label<a[1]){n.label=a[1],a=l;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(l);break}a[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(p){l=[6,p],s=0}finally{r=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([u,h])}}}var me={exclude:[]},zr={},an={timeout:"true"},le=function(e,t){typeof window<"u"&&(zr[e]=t)},nn=function(){return Object.fromEntries(Object.entries(zr).filter(function(e){var t,r=e[0];return!(!((t=me==null?void 0:me.exclude)===null||t===void 0)&&t.includes(r))}).map(function(e){return[e[0],(0,e[1])()]}))};function ft(e){return e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),(e^=e>>>16)>>>0}var G=new Uint32Array([597399067,2869860233,951274213,2716044179]);function ce(e,t){return e<<t|e>>>32-t}function Ht(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 l=u.subarray(4*h,4*(h+1));l[0]=Math.imul(l[0],G[0]),l[0]=ce(l[0],15),l[0]=Math.imul(l[0],G[1]),n[0]=n[0]^l[0],n[0]=ce(n[0],19),n[0]=n[0]+n[1],n[0]=Math.imul(n[0],5)+1444728091,l[1]=Math.imul(l[1],G[1]),l[1]=ce(l[1],16),l[1]=Math.imul(l[1],G[2]),n[1]=n[1]^l[1],n[1]=ce(n[1],17),n[1]=n[1]+n[2],n[1]=Math.imul(n[1],5)+197830471,l[2]=Math.imul(l[2],G[2]),l[2]=ce(l[2],17),l[2]=Math.imul(l[2],G[3]),n[2]=n[2]^l[2],n[2]=ce(n[2],15),n[2]=n[2]+n[3],n[2]=Math.imul(n[2],5)+2530024501,l[3]=Math.imul(l[3],G[3]),l[3]=ce(l[3],18),l[3]=Math.imul(l[3],G[0]),n[3]=n[3]^l[3],n[3]=ce(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),l=new Uint8Array(o,16*c,u);switch(u){case 15:h[3]=h[3]^l[14]<<16;case 14:h[3]=h[3]^l[13]<<8;case 13:h[3]=h[3]^l[12]<<0,h[3]=Math.imul(h[3],G[3]),h[3]=ce(h[3],18),h[3]=Math.imul(h[3],G[0]),n[3]=n[3]^h[3];case 12:h[2]=h[2]^l[11]<<24;case 11:h[2]=h[2]^l[10]<<16;case 10:h[2]=h[2]^l[9]<<8;case 9:h[2]=h[2]^l[8]<<0,h[2]=Math.imul(h[2],G[2]),h[2]=ce(h[2],17),h[2]=Math.imul(h[2],G[3]),n[2]=n[2]^h[2];case 8:h[1]=h[1]^l[7]<<24;case 7:h[1]=h[1]^l[6]<<16;case 6:h[1]=h[1]^l[5]<<8;case 5:h[1]=h[1]^l[4]<<0,h[1]=Math.imul(h[1],G[1]),h[1]=ce(h[1],16),h[1]=Math.imul(h[1],G[2]),n[1]=n[1]^h[1];case 4:h[0]=h[0]^l[3]<<24;case 3:h[0]=h[0]^l[2]<<16;case 2:h[0]=h[0]^l[1]<<8;case 1:h[0]=h[0]^l[0]<<0,h[0]=Math.imul(h[0],G[0]),h[0]=ce(h[0],15),h[0]=Math.imul(h[0],G[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]=ft(n[0]),n[1]=ft(n[1]),n[2]=ft(n[2]),n[3]=ft(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 on(e,t){return new Promise(function(r){setTimeout(function(){return r(t)},e)})}function cn(e,t,r){return Promise.all(e.map(function(s){return Promise.race([s,on(t,r)])}))}function ln(){return de(this,void 0,void 0,function(){var e,t,r,s,a;return pe(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),e=nn(),t=Object.keys(e),[4,cn(Object.values(e),(me==null?void 0:me.timeout)||1e3,an)];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,me.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 un(e){return de(this,void 0,void 0,function(){var t,r;return pe(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,ln()];case 1:return t=s.sent(),r=Ht(JSON.stringify(t)),[2,r.toString()];case 2:throw s.sent();case 3:return[2]}})})}function hn(e){for(var t=0,r=0;r<e.length;++r)t+=Math.abs(e[r]);return t}function jr(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 Ge(){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 de(this,void 0,void 0,function(){return pe(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:hn(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 dn=Ge().name!=="SamsungBrowser"?1:3,Br=280,Wr=20;Ge().name!="Firefox"&&le("canvas",function(){return document.createElement("canvas").getContext("2d"),new Promise(function(e){var t=Array.from({length:dn},function(){return function(){var r=document.createElement("canvas"),s=r.getContext("2d");if(!s)return new ImageData(1,1);r.width=Br,r.height=Wr;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:Ht(jr(t,Br,Wr).data.toString()).toString()})})});var Ut,pn=["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"],mn=["monospace","sans-serif","serif"];function Gr(e,t){if(!e)throw new Error("Canvas context not supported");return e.font="72px ".concat(t),e.measureText("WwMmLli0Oo").width}function gn(){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 vn(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function bn(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 l=String(h);n[l]=(n[l]||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 yn(){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 Sn(){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}Ge().name!="Firefox"&&le("fonts",function(){var e=this;return new Promise(function(t,r){try{(function(s){var a;de(this,void 0,void 0,function(){var o,n,c;return pe(this,function(u){switch(u.label){case 0:return document.body?[3,2]:[4,(h=50,new Promise(function(p){return setTimeout(p,h,l)}))];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,l})})})(function(s){var a=s.iframe;return de(e,void 0,void 0,function(){var o,n,c,u;return pe(this,function(h){return o=a.createElement("canvas"),n=o.getContext("2d"),c=mn.map(function(l){return Gr(n,l)}),u={},pn.forEach(function(l){var p=Gr(n,l);c.includes(p)||(u[l]=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:gn(),architecture:vn(),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 de(this,void 0,void 0,function(){var e;return pe(this,function(t){return Ut=(me==null?void 0:me.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:(me==null?void 0:me.retries)||3},function(){return function(){return de(this,void 0,void 0,function(){var r,s,a,o,n;return pe(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 bn(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:yn()})})}),le("system",function(){return new Promise(function(e){var t=Ge();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:Sn()})})});var K,kn=Ge().name!=="SamsungBrowser"?1:3,C=null;le("webgl",function(){return de(this,void 0,void 0,function(){var e;return pe(this,function(t){typeof document<"u"&&((K=document.createElement("canvas")).width=200,K.height=100,C=K.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(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 d=(O,B,_e)=>hi(O,typeof B!="symbol"?B+"":B,_e);var As;const _e="searchcraft-javascript-sdk",Ie={experimentalSlotFixes:!1,hydratedSelectorName:"hydrated",lazyLoad:!1,shadowDom:!1,slotRelocation:!0,updatable:!0};var pa=Object.defineProperty,ma=(e,t)=>{for(var r in t)pa(e,r,{get:t[r],enumerable:!0})},ga="http://www.w3.org/2000/svg",va="http://www.w3.org/1999/xhtml",ba=(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,ya=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 ba(e,r),s},yr=(e,t)=>t in e,at=(e,t)=>(0,console.error)(e,t),nt=typeof window<"u"?window:{},Ae=nt.document||{head:{}},D=nt.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)},Sa=Ie.shadowDom,ka=e=>Promise.resolve(e),_t=!1,Cr=[],Sr=[],wa=(e,t)=>r=>{e.push(r),_t||(_t=!0,re.$flags$&4?At(It):re.raf(It))},kr=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){at(r)}e.length=0},It=()=>{kr(Cr),kr(Sr),(_t=Cr.length>0)&&re.raf(It)},At=e=>ka().then(e),xa=wa(Sr),Mt=e=>(e=typeof e,e==="object"||e==="function"),Ra={};ma(Ra,{err:()=>wr,map:()=>Ea,ok:()=>Lt,unwrap:()=>Pa,unwrapErr:()=>Ta});var Lt=e=>({isOk:!0,isErr:!1,value:e}),wr=e=>({isOk:!1,isErr:!0,value:e});function Ea(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 wr(r)}throw"should never get here"}var Pa=e=>{if(e.isOk)return e.value;throw e.value},Ta=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"&&Rr(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 Rr(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,...Rr(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},Er=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",Ve=(e,t="")=>()=>{},i=(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?ot(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,Aa);const l=ot(e,null);return l.$attrs$=t,u.length>0&&(l.$children$=u),l.$key$=a,l.$name$=o,l},ot=(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},_a={},Ia=e=>e&&e.$tag$===_a,Aa={forEach:(e,t)=>e.map(Pr).forEach(t),map:(e,t)=>e.map(Pr).map(t).map(Ma)},Pr=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Ma=e=>{if(typeof e.vtag=="function"){const r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),i(e.vtag,r,...e.vchildren||[])}const t=ot(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Tr=(e,t)=>e!=null&&!Mt(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,La=e=>e,we=(e,t,r)=>{const s=La(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},ct=new WeakMap,_r=(e,t,r,s,a,o)=>{if(r!==s){let n=yr(e,t),c=t.toLowerCase();if(t==="class"){const u=e.classList,h=Ir(r);let l=Ir(s);e["s-si"]?(l.push(e["s-si"]),h.forEach(p=>{p.startsWith(e["s-si"])&&l.push(p)}),l=[...new Set(l)],u.add(...l),delete e["s-si"]):(u.remove(...h.filter(p=>p&&!l.includes(p))),u.add(...l.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):yr(nt,c)?t=c.slice(2):t=c[2]+t.slice(3),r||s){const u=t.endsWith(Ar);t=t.replace(Fa,""),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))}}},Oa=/\s/,Ir=e=>(typeof e=="object"&&"baseVal"in e&&(e=e.baseVal),e?e.split(Oa):[]),Ar="Capture",Fa=new RegExp(Ar+"$"),Mr=(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 Lr(Object.keys(a)))n in o||_r(s,n,a[n],void 0,r,t.$flags$);for(const n of Lr(Object.keys(o)))_r(s,n,a[n],o[n],r,t.$flags$)};function Lr(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var Ot,Ft,it=!1,lt=!1,Dt=!1,ne=!1,ut=(e,t,r)=>{var s;const a=t.$children$[r];let o=0,n,c,u;if(it||(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?ga:va,!it&&Ie.slotRelocation&&a.$flags$&2?"slot-fb":a.$tag$),ne&&a.$tag$==="foreignObject"&&(ne=!1),Mr(null,a,ne),a.$children$)for(o=0;o<a.$children$.length;++o)c=ut(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$&&Be(e.$elm$,!1)),n},Be=(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"]&&(xe(We(a).parentNode,a,We(a)),a["s-ol"].remove(),a["s-ol"]=void 0,a["s-sh"]=void 0,Dt=!0),t&&Be(a,t)}re.$flags$&=-2},Or=(e,t,r,s,a,o)=>{let n=e["s-cr"]&&e["s-cr"].parentNode||e,c;for(;a<=o;++a)s[a]&&(c=ut(null,r,a),c&&(s[a].$elm$=c,xe(n,c,We(t))))},Fr=(e,t,r)=>{for(let s=t;s<=r;++s){const a=e[s];if(a){const o=a.$elm$;o&&(lt=!0,o["s-ol"]?o["s-ol"].remove():Be(o,!0),o.remove())}}},Da=(e,t,r,s,a=!1)=>{let o=0,n=0,c=0,u=0,h=t.length-1,l=t[0],p=t[h],g=s.length-1,k=s[0],b=s[g],P,I;for(;o<=h&&n<=g;)if(l==null)l=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(ht(l,k,a))Me(l,k,a),l=t[++o],k=s[++n];else if(ht(p,b,a))Me(p,b,a),p=t[--h],b=s[--g];else if(ht(l,b,a))(l.$tag$==="slot"||b.$tag$==="slot")&&Be(l.$elm$.parentNode,!1),Me(l,b,a),xe(e,l.$elm$,p.$elm$.nextSibling),l=t[++o],b=s[--g];else if(ht(p,k,a))(l.$tag$==="slot"||b.$tag$==="slot")&&Be(p.$elm$.parentNode,!1),Me(p,k,a),xe(e,p.$elm$,l.$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=ut(t&&t[n],r,c):(Me(I,k,a),t[c]=void 0,P=I.$elm$),k=s[++n]):(P=ut(t&&t[n],r,n),k=s[++n]),P&&xe(We(l.$elm$).parentNode,P,We(l.$elm$))}o>h?Or(e,s[g+1]==null?null:s[g+1].$elm$,r,s,n,g):n>g&&Fr(t,o,h)},ht=(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,We=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"&&!it||Mr(e,t,ne),a!==null&&o!==null?Da(s,a,t,o,r):o!==null?(e.$text$!==null&&(s.textContent=""),Or(s,null,t,o,0,o.length-1)):!r&&Ie.updatable&&a!==null&&Fr(a,0,a.length-1),ne&&n==="svg"&&(ne=!1)):(u=s["s-cr"])?u.parentNode.textContent=c:e.$text$!==c&&(s.data=c)},fe=[],Dr=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(Er(t,n)){let c=fe.find(u=>u.$nodeToRelocate$===t);lt=!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"],fe.push({$slotRefNode$:o,$nodeToRelocate$:t})),t["s-sr"]&&fe.map(u=>{Er(u.$nodeToRelocate$,t["s-sn"])&&(c=fe.find(h=>h.$nodeToRelocate$===t),c&&!u.$slotRefNode$&&(u.$slotRefNode$=c.$slotRefNode$))})}else fe.some(c=>c.$nodeToRelocate$===t)||fe.push({$nodeToRelocate$:t})}o.nodeType===1&&Dr(o)}},xe=(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$||ot(null,null),h=Ia(t)?t:i(null,null,t);if(Ft=c.tagName,r&&h.$attrs$)for(const l of Object.keys(h.$attrs$))c.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(h.$attrs$[l]=c[l]);h.$tag$=null,h.$flags$|=4,e.$vnode$=h,h.$elm$=u.$elm$=c,it=Sa,Ot=c["s-cr"],lt=!1,Me(u,h,r);{if(re.$flags$|=1,Dt){Dr(h.$elm$);for(const l of fe){const p=l.$nodeToRelocate$;if(!p["s-ol"]){const g=Ae.createTextNode("");g["s-nr"]=p,xe(p.parentNode,p["s-ol"]=g,p)}}for(const l of fe){const p=l.$nodeToRelocate$,g=l.$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),xe(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)}}lt&&xr(h.$elm$),re.$flags$&=-2,fe.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()}))}},Nt=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return Nr(e,e.$ancestorComponent$),xa(()=>Ha(e,t))},Ha=(e,t)=>{const r=e.$hostElement$,s=Ve("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(),Ua(o,()=>ja(e,a,t))},Ua=(e,t)=>za(e)?e.then(t).catch(r=>{console.error(r),t()}):t(),za=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ja=async(e,t,r)=>{var s;const a=e.$hostElement$,o=Ve("update",e.$cmpMeta$.$tagName$),n=a["s-rc"],c=Ve("render",e.$cmpMeta$.$tagName$);Va(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=()=>Ba(e);u.length===0?h():(Promise.all(u).then(h),e.$flags$|=4,u.length=0)}},Va=(e,t,r,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Na(e,t,s)}catch(a){at(a,e.$hostElement$)}return null},Ba=e=>{const t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=Ve("postUpdate",t),a=r,o=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,Hr(r),Ga(a,"componentDidLoad",void 0,r),s(),e.$onReadyResolve$(r),o||Wa()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&At(()=>Nt(e,!1)),e.$flags$&=-517},Wa=e=>{Hr(Ae.documentElement),At(()=>$r(nt,"appload",{detail:{namespace:_e}}))},Ga=(e,t,r,s)=>{if(e&&e[t])try{return e[t](r)}catch(a){at(a,s)}},Hr=e=>{var t;return e.classList.add((t=Ie.hydratedSelectorName)!=null?t:"hydrated")},qa=(e,t)=>ke(e).$instanceValues$.get(t),Ur=(e,t,r,s)=>{const a=ke(e),o=e,n=a.$instanceValues$.get(t),c=a.$flags$,u=o;r=Tr(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){at(k,o)}})}(c&18)===2&&Nt(a,!1)}}},Ya=(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:l}=Object.getOwnPropertyDescriptor(o,c)||{};h&&(t.$members$[c][0]|=2048),l&&(t.$members$[c][0]|=4096),Object.defineProperty(o,c,{get(){return h?h.apply(this):qa(this,c)},configurable:!0,enumerable:!0}),Object.defineProperty(o,c,{set(p){const g=ke(this);if(l){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),l.apply(this,[Tr(p,u)]),p=u&32?this[c]:g.$hostElement$[c],Ur(this,c,p,t);return}{Ur(this,c,p,t);return}}})}});{const c=new Map;o.attributeChangedCallback=function(u,h,l){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]==l)return;if(g==null){const b=ke(this),P=b==null?void 0:b.$flags$;if(P&&!(P&8)&&P&128&&l!==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,l,h,u)})}return}}const k=Object.getOwnPropertyDescriptor(o,g);l=l===null&&typeof this[g]=="boolean"?!1:l,l!==this[g]&&(!k.get||k.set)&&(this[g]=l)})},e.observedAttributes=Array.from(new Set([...Object.keys((a=t.$watchers$)!=null?a:{}),...n.filter(([u,h])=>h[0]&15).map(([u,h])=>{const l=h[1]||u;return c.set(l,u),l})]))}}return e},Za=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=()=>Nt(t,!0);a&&a["s-rc"]?a["s-rc"].push(o):o()},Qa=(e,t)=>{},Ka=e=>{if(!(re.$flags$&1)){const t=ke(e),r=t.$cmpMeta$,s=Ve("connectedCallback",r.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Qa());else{t.$flags$|=1,r.$flags$&12&&Xa(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}}),Za(e,t)}s()}},Xa=e=>{const t=e["s-cr"]=Ae.createComment("");t["s-cn"]=!0,xe(e,t,e.firstChild)},Ja=async e=>{re.$flags$&1||ke(e),ct.has(e)&&ct.delete(e),e.shadowRoot&&ct.has(e.shadowRoot)&&ct.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(){Ca(this,r)},connectedCallback(){this.__hasHostListenerAttached||(ke(this),this.__hasHostListenerAttached=!0),Ka(this),s&&s.call(this)},disconnectedCallback(){Ja(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&&ya(this)})},__attachShadow(){this.shadowRoot=this}}),e.is=r.$tagName$,Ya(e,r)},en=(e,t)=>t,tn=Object.defineProperty,rn=(e,t,r)=>t in e?tn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t,r)=>rn(e,typeof t!="symbol"?t+"":t,r),de=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(de||{});class sn{constructor(t){A(this,"logLevel"),A(this,"logFormatter"),this.logLevel=t.logLevel||1,this.logFormatter=t.logFormatter||this.defaultFormatter}defaultFormatter(t,r){return`[${de[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(l){o(l)}}function c(h){try{u(s.throw(h))}catch(l){o(l)}}function u(h){var l;h.done?a(h.value):(l=h.value,l instanceof r?l:new r(function(p){p(l)})).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(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(n=0)),n;)try{if(r=1,s&&(a=2&l[0]?s.return:l[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,l[1])).done)return a;switch(s=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,s=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!((a=a.length>0&&a[a.length-1])||l[0]!==6&&l[0]!==2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){n.label=l[1];break}if(l[0]===6&&n.label<a[1]){n.label=a[1],a=l;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(l);break}a[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(p){l=[6,p],s=0}finally{r=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([u,h])}}}var ge={exclude:[]},zr={},an={timeout:"true"},le=function(e,t){typeof window<"u"&&(zr[e]=t)},nn=function(){return Object.fromEntries(Object.entries(zr).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 ft(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 ce(e,t){return e<<t|e>>>32-t}function Ht(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 l=u.subarray(4*h,4*(h+1));l[0]=Math.imul(l[0],q[0]),l[0]=ce(l[0],15),l[0]=Math.imul(l[0],q[1]),n[0]=n[0]^l[0],n[0]=ce(n[0],19),n[0]=n[0]+n[1],n[0]=Math.imul(n[0],5)+1444728091,l[1]=Math.imul(l[1],q[1]),l[1]=ce(l[1],16),l[1]=Math.imul(l[1],q[2]),n[1]=n[1]^l[1],n[1]=ce(n[1],17),n[1]=n[1]+n[2],n[1]=Math.imul(n[1],5)+197830471,l[2]=Math.imul(l[2],q[2]),l[2]=ce(l[2],17),l[2]=Math.imul(l[2],q[3]),n[2]=n[2]^l[2],n[2]=ce(n[2],15),n[2]=n[2]+n[3],n[2]=Math.imul(n[2],5)+2530024501,l[3]=Math.imul(l[3],q[3]),l[3]=ce(l[3],18),l[3]=Math.imul(l[3],q[0]),n[3]=n[3]^l[3],n[3]=ce(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),l=new Uint8Array(o,16*c,u);switch(u){case 15:h[3]=h[3]^l[14]<<16;case 14:h[3]=h[3]^l[13]<<8;case 13:h[3]=h[3]^l[12]<<0,h[3]=Math.imul(h[3],q[3]),h[3]=ce(h[3],18),h[3]=Math.imul(h[3],q[0]),n[3]=n[3]^h[3];case 12:h[2]=h[2]^l[11]<<24;case 11:h[2]=h[2]^l[10]<<16;case 10:h[2]=h[2]^l[9]<<8;case 9:h[2]=h[2]^l[8]<<0,h[2]=Math.imul(h[2],q[2]),h[2]=ce(h[2],17),h[2]=Math.imul(h[2],q[3]),n[2]=n[2]^h[2];case 8:h[1]=h[1]^l[7]<<24;case 7:h[1]=h[1]^l[6]<<16;case 6:h[1]=h[1]^l[5]<<8;case 5:h[1]=h[1]^l[4]<<0,h[1]=Math.imul(h[1],q[1]),h[1]=ce(h[1],16),h[1]=Math.imul(h[1],q[2]),n[1]=n[1]^h[1];case 4:h[0]=h[0]^l[3]<<24;case 3:h[0]=h[0]^l[2]<<16;case 2:h[0]=h[0]^l[1]<<8;case 1:h[0]=h[0]^l[0]<<0,h[0]=Math.imul(h[0],q[0]),h[0]=ce(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]=ft(n[0]),n[1]=ft(n[1]),n[2]=ft(n[2]),n[3]=ft(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 on(e,t){return new Promise(function(r){setTimeout(function(){return r(t)},e)})}function cn(e,t,r){return Promise.all(e.map(function(s){return Promise.race([s,on(t,r)])}))}function ln(){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=nn(),t=Object.keys(e),[4,cn(Object.values(e),(ge==null?void 0:ge.timeout)||1e3,an)];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,jr(a,ge.exclude||[])];case 2:throw o.sent();case 3:return[2]}})})}function jr(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=jr(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 un(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,ln()];case 1:return t=s.sent(),r=Ht(JSON.stringify(t)),[2,r.toString()];case 2:throw s.sent();case 3:return[2]}})})}function hn(e){for(var t=0,r=0;r<e.length;++r)t+=Math.abs(e[r]);return t}function Vr(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 Ge(){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:hn(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 dn=Ge().name!=="SamsungBrowser"?1:3,Br=280,Wr=20;Ge().name!="Firefox"&&le("canvas",function(){return document.createElement("canvas").getContext("2d"),new Promise(function(e){var t=Array.from({length:dn},function(){return function(){var r=document.createElement("canvas"),s=r.getContext("2d");if(!s)return new ImageData(1,1);r.width=Br,r.height=Wr;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:Ht(Vr(t,Br,Wr).data.toString()).toString()})})});var Ut,pn=["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"],mn=["monospace","sans-serif","serif"];function Gr(e,t){if(!e)throw new Error("Canvas context not supported");return e.font="72px ".concat(t),e.measureText("WwMmLli0Oo").width}function gn(){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 vn(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function bn(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 l=String(h);n[l]=(n[l]||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 yn(){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}Ge().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,l)}))];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,l})})})(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=mn.map(function(l){return Gr(n,l)}),u={},pn.forEach(function(l){var p=Gr(n,l);c.includes(p)||(u[l]=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:gn(),architecture:vn(),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 bn(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:yn()})})}),le("system",function(){return new Promise(function(e){var t=Ge();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,Sn=Ge().name!=="SamsungBrowser"?1:3,S=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,S=Q.getContext("webgl"));try{if(!S)throw new Error("WebGL not supported");return e=Array.from({length:Sn},function(){return function(){try{if(!S)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,l=0;l<c;l++){var p=l*h;u[4*l]=0,u[4*l+1]=0,u[4*l+2]=Math.cos(p)*(K.width/2),u[4*l+3]=Math.sin(p)*(K.height/2)}var m=C.createBuffer();C.bindBuffer(C.ARRAY_BUFFER,m),C.bufferData(C.ARRAY_BUFFER,u,C.STATIC_DRAW);var b=C.getAttribLocation(n,"position");C.enableVertexAttribArray(b),C.vertexAttribPointer(b,2,C.FLOAT,!1,0,0),C.viewport(0,0,K.width,K.height),C.clearColor(0,0,0,1),C.clear(C.COLOR_BUFFER_BIT),C.drawArrays(C.LINES,0,2*c);var v=new Uint8ClampedArray(K.width*K.height*4);return C.readPixels(0,0,K.width,K.height,C.RGBA,C.UNSIGNED_BYTE,v),new ImageData(v,K.width,K.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:Ht(jr(e,K.width,K.height).data.toString()).toString()}]}catch{return[2,{webgl:"unsupported"}]}return[2]})})});var Ee=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 de(void 0,void 0,void 0,function(){return pe(this,function(e){return[2,{acos:Math.acos(.5),asin:Ee(Math.asin,-1,1,97),atan:Ee(Math.atan,-1,1,97),cos:Ee(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:Ee(Math.sin,-Math.PI,Math.PI,97),sinh:Ee(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:Ee(Math.tan,0,2*Math.PI,97),tanh:Ee(Math.tanh,-9/7,7/9,97)}]})})});const Cn="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let dt=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=Cn[r[e]&63];return t};class zt{constructor(t){A(this,"config"),this.config=t}async getAdsForSearchParams(t){return[]}async onQuerySubmitted(t){}async onQueryFetched(t,r){}async onInputCleared(){}async onAdContainerRendered(t){}async onAdContainerViewed(t){}}class wn extends zt{async getAdsForSearchParams(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:dt(),adSource:"adMarketplace",admAdType:"adm-product-ad",admAd:n})),o=s.text_ads.map(n=>({id:dt(),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 getAdsForSearchParams(t){return[]}}const En=1e3;class Rn 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 getAdsForSearchParams(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 Pn=600;class Tn{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 l=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json",Authorization:this.config.readKey,"X-Sc-User-Id":this.userId},body:u,keepalive:!0});if(!l.ok)throw new Error(`Failed to send request: ${l.status} ${l.statusText}`)}catch(l){throw console.error("Error sending MeasureRequest:",l),l}}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 l=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json",Authorization:this.config.readKey,"X-Sc-User-Id":this.userId},body:u,keepalive:!0});if(this.measureRequestsBatched=[],!l.ok)throw new Error(`Failed to send request: ${l.status} ${l.statusText}`);return}catch(l){throw this.measureRequestsBatched=[],console.error("Error sending MeasureRequest:",l),l}},Pn)}),this.config=t,this.sdkInfo=r,this.userId=s,this.sessionId=dt(),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"}}}function $n(e){const t=[];let r="should";return e.facetPathsForIndexFields&&Object.keys(e.facetPathsForIndexFields).forEach(s=>{var a;const o=(a=e.facetPathsForIndexFields)==null?void 0:a[s];o&&(r="must",t.push({occur:r,exact:{ctx:o.value}}))}),e.rangeValueForIndexFields&&Object.keys(e.rangeValueForIndexFields).forEach(s=>{var a;const o=(a=e.rangeValueForIndexFields)==null?void 0:a[s];o&&(r="must",t.push({occur:r,exact:{ctx:o.value}}))}),e.sort==="desc"?e.order_by="date_published":e.order_by="",t.push({occur:r,[e.mode]:{ctx:e.searchTerm}}),t}const _n=e=>e.endsWith("/")?e.slice(0,-1):e,An=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 Mn{constructor(t,r,s){A(this,"config"),A(this,"userId"),A(this,"parent"),A(this,"searchCompletedEventTimeout"),A(this,"getSearchResponse",async a=>{var o,n,c,u,h;const l=An(a.searchTerm);(o=this.parent.measureClient)==null||o.sendMeasureEvent("search_requested",{search_term:l}),this.parent.emitEvent("query_submitted",{name:"query_submitted",data:{searchTerm:l}}),(n=this.parent.adClient)==null||n.onQuerySubmitted(a);try{const p={query:$n(a),offset:a.offset||0,limit:a.limit||this.config.searchResultsPerPage||20};a.order_by&&(p.order_by=a.order_by,p.sort=a.sort==="desc"||a.sort==="asc"?a.sort:"asc");const m={method:"POST",headers:{Authorization:this.config.readKey,"Content-Type":"application/json","X-Sc-User-Id":this.userId},body:JSON.stringify(p)},b=await fetch(this.baseSearchUrl,m);if(!b.ok)throw new Error(`Error: ${b.statusText} (Status: ${b.status})`);const v=await b.json();return(c=this.parent.measureClient)==null||c.sendMeasureEvent("search_response_received",{search_term:l,number_of_documents:v.data.count}),clearTimeout(this.searchCompletedEventTimeout),this.searchCompletedEventTimeout=setTimeout(()=>{var P;(P=this.parent.measureClient)==null||P.sendMeasureEvent("search_completed",{search_term:l,number_of_documents:v.data.count})},In),this.parent.emitEvent("query_fetched",{name:"query_fetched",data:{searchTerm:l}}),(((u=v.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(a,v),v}catch(p){throw console.error("Error parsing response:",p),p}}),this.parent=t,this.config=r,this.userId=s}get baseSearchUrl(){return`${this.config.endpointURL}/index/${this.config.index.join(",")}/search`}}class Ln{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,"getItems",(s,a,o)=>{const n=async()=>{(async()=>{var c,u;const h=await((c=this==null?void 0:this.searchClient)==null?void 0:c.getSearchResponse(s));if(!h)throw new Error("Search client was not initialized.");const l=(u=h.data.hits||[])==null?void 0:u.map(p=>p.doc).filter(p=>!!p).map(p=>({type:"SearchDocument",id:dt(),document:p}));a(h,l)})(),(async()=>{if(this.adClient){const c=await this.adClient.getAdsForSearchParams(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 un()),this.measureClient=new Tn(t,r,s),this.searchClient=new Mn(this,t,s),t.adSource){case"adMarketplace":this.adClient=new wn(t);break;case"Nativo":this.adClient=new Rn(t);break;case"Custom":this.adClient=new xn(t);break}},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 Yr=e=>{let t;const r=new Set,s=(h,l)=>{const p=typeof h=="function"?h(t):h;if(!Object.is(p,t)){const m=t;t=l??(typeof p!="object"||p===null)?p:Object.assign({},t,p),r.forEach(b=>b(t,m))}},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},On=e=>e?Yr(e):Yr;Vt.createStore=On;var jt={},Zr={exports:{}},w={};/**
11
+ `,a=S.createShader(S.VERTEX_SHADER),o=S.createShader(S.FRAGMENT_SHADER);if(!a||!o)throw new Error("Failed to create shaders");if(S.shaderSource(a,r),S.shaderSource(o,s),S.compileShader(a),!S.getShaderParameter(a,S.COMPILE_STATUS))throw new Error("Vertex shader compilation failed: "+S.getShaderInfoLog(a));if(S.compileShader(o),!S.getShaderParameter(o,S.COMPILE_STATUS))throw new Error("Fragment shader compilation failed: "+S.getShaderInfoLog(o));var n=S.createProgram();if(!n)throw new Error("Failed to create shader program");if(S.attachShader(n,a),S.attachShader(n,o),S.linkProgram(n),!S.getProgramParameter(n,S.LINK_STATUS))throw new Error("Shader program linking failed: "+S.getProgramInfoLog(n));S.useProgram(n);for(var c=137,u=new Float32Array(4*c),h=2*Math.PI/c,l=0;l<c;l++){var p=l*h;u[4*l]=0,u[4*l+1]=0,u[4*l+2]=Math.cos(p)*(Q.width/2),u[4*l+3]=Math.sin(p)*(Q.height/2)}var g=S.createBuffer();S.bindBuffer(S.ARRAY_BUFFER,g),S.bufferData(S.ARRAY_BUFFER,u,S.STATIC_DRAW);var k=S.getAttribLocation(n,"position");S.enableVertexAttribArray(k),S.vertexAttribPointer(k,2,S.FLOAT,!1,0,0),S.viewport(0,0,Q.width,Q.height),S.clearColor(0,0,0,1),S.clear(S.COLOR_BUFFER_BIT),S.drawArrays(S.LINES,0,2*c);var b=new Uint8ClampedArray(Q.width*Q.height*4);return S.readPixels(0,0,Q.width,Q.height,S.RGBA,S.UNSIGNED_BYTE,b),new ImageData(b,Q.width,Q.height)}catch{return new ImageData(1,1)}finally{S&&(S.bindBuffer(S.ARRAY_BUFFER,null),S.useProgram(null),S.viewport(0,0,S.drawingBufferWidth,S.drawingBufferHeight),S.clearColor(0,0,0,0))}}()}),[2,{commonImageHash:Ht(Vr(e,Q.width,Q.height).data.toString()).toString()}]}catch{return[2,{webgl:"unsupported"}]}return[2]})})});var Re=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:Re(Math.asin,-1,1,97),atan:Re(Math.atan,-1,1,97),cos:Re(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:Re(Math.sin,-Math.PI,Math.PI,97),sinh:Re(Math.sinh,-9/7,7/9,97),sqrt:Math.sqrt(2),tan:Re(Math.tan,0,2*Math.PI,97),tanh:Re(Math.tanh,-9/7,7/9,97)}]})})});const kn="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let dt=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=kn[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 wn 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:dt(),adSource:"adMarketplace",admAdType:"adm-product-ad",admAd:n})),o=s.text_ads.map(n=>({id:dt(),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 Rn=1e3;class En 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(Rn)}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 Pn=600;class Tn{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 l=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json",Authorization:this.config.readKey,"X-Sc-User-Id":this.userId},body:u,keepalive:!0});if(!l.ok)throw new Error(`Failed to send request: ${l.status} ${l.statusText}`)}catch(l){throw console.error("Error sending MeasureRequest:",l),l}}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 l=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json",Authorization:this.config.readKey,"X-Sc-User-Id":this.userId},body:u,keepalive:!0});if(this.measureRequestsBatched=[],!l.ok)throw new Error(`Failed to send request: ${l.status} ${l.statusText}`);return}catch(l){throw this.measureRequestsBatched=[],console.error("Error sending MeasureRequest:",l),l}},Pn)}),this.config=t,this.sdkInfo=r,this.userId=s,this.sessionId=dt(),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,_n=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 l;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"?l=await this.handleGetSearchResponseItemsWithString(a):l=await this.handleGetSearchResponseItemsWithObject(a),(c=this.parent.measureClient)==null||c.sendMeasureEvent("search_response_received",{search_term:p,number_of_documents:l.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:l.data.count})},In),this.parent.emitEvent("query_fetched",{name:"query_fetched",data:{searchTerm:p}}),(((u=l.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,l),l}catch(g){throw console.error("Error parsing response:",g),g}}),A(this,"handleGetSearchResponseItemsWithString",async a=>{let o;try{o=JSON.parse(a),o={limit:this.config.searchResultsPerPage,order_by:this.config.indexFieldName,...o}}catch{throw new Error("Error: Query string is not valid json.")}const n=await fetch(this.baseSearchUrl,{method:"POST",headers:{Authorization:this.config.readKey,"Content-Type":"application/json","X-Sc-User-Id":this.userId},body:JSON.stringify(o)});if(!n.ok)throw new Error(`Error: ${n.statusText} (Status: ${n.status})`);return await n.json()}),A(this,"handleGetSearchResponseItemsWithObject",async a=>{try{const o={query:this.formatParamsForRequest(a),offset:a.offset||0,limit:a.limit||this.config.searchResultsPerPage||20,order_by:a.order_by||this.config.indexFieldName};o.order_by&&(o.sort=a.sort==="desc"||a.sort==="asc"?a.sort:"asc");const n=await fetch(this.baseSearchUrl,{method:"POST",headers:{Authorization:this.config.readKey,"Content-Type":"application/json","X-Sc-User-Id":this.userId},body:JSON.stringify(o)});if(!n.ok)throw new Error(`Error: ${n.statusText} (Status: ${n.status})`);return await n.json()}catch(o){throw console.error("Error parsing response:",o),o}}),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(o=>{var n;const c=(n=t.facetPathsForIndexFields)==null?void 0:n[o];c&&(s="must",r.push({occur:s,exact:{ctx:_n(c.value)}}))}),t.rangeValueForIndexFields&&Object.keys(t.rangeValueForIndexFields).forEach(o=>{var n;const c=(n=t.rangeValueForIndexFields)==null?void 0:n[o];c&&(s="must",r.push({occur:s,exact:{ctx:c.value}}))});const a=t.mode==="fuzzy"?{fuzzy:{ctx:t.searchTerm}}:{exact:{ctx:t.searchTerm}};return r.push({occur:s,...a}),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,u;const h=await((c=this==null?void 0:this.searchClient)==null?void 0:c.getSearchResponseItems(s));if(!h)throw new Error("Search client was not initialized.");const l=(u=h.data.hits||[])==null?void 0:u.map(p=>p.doc).filter(p=>!!p).map(p=>({type:"SearchDocument",id:dt(),document:p}));a(h,l)})(),(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 un()),this.measureClient=new Tn(t,r,s),this.searchClient=new An(this,t,s),t.adSource){case"adMarketplace":this.adClient=new wn(t);break;case"Nativo":this.adClient=new En(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 qr={},jt={};const Yr=e=>{let t;const r=new Set,s=(h,l)=>{const p=typeof h=="function"?h(t):h;if(!Object.is(p,t)){const g=t;t=l??(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?Yr(e):Yr;jt.createStore=Ln;var Vt={},Zr={exports:{}},w={};/**
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 Bt=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"),Vn=Symbol.for("react.forward_ref"),jn=Symbol.for("react.suspense"),Bn=Symbol.for("react.memo"),Kr=Symbol.for("react.lazy"),Qr=Symbol.iterator;function Wn(e){return e===null||typeof e!="object"?null:(e=Qr&&e[Qr]||e["@@iterator"],typeof e=="function"?e:null)}var Xr={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jr=Object.assign,es={};function Le(e,t,r){this.props=e,this.context=t,this.refs=es,this.updater=r||Xr}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 ts(){}ts.prototype=Le.prototype;function Wt(e,t,r){this.props=e,this.context=t,this.refs=es,this.updater=r||Xr}var Gt=Wt.prototype=new ts;Gt.constructor=Wt,Jr(Gt,Le.prototype),Gt.isPureReactComponent=!0;var rs=Array.isArray,M={H:null,A:null,T:null,S:null},ss=Object.prototype.hasOwnProperty;function qt(e,t,r,s,a,o){return r=o.ref,{$$typeof:Bt,type:e,key:t,ref:r!==void 0?r:null,props:o}}function Gn(e,t){return qt(e.type,t,void 0,void 0,void 0,e.props)}function Yt(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bt}function qn(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var as=/\/+/g;function Zt(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qn(""+e.key):t.toString(36)}function ns(){}function Yn(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(ns,ns):(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 Oe(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 Bt:case Fn:n=!0;break;case Kr:return n=e._init,Oe(n(e._payload),t,r,s,a)}}if(n)return a=a(e),n=s===""?"."+Zt(e,0):s,rs(a)?(r="",n!=null&&(r=n.replace(as,"$&/")+"/"),Oe(a,t,r,"",function(h){return h})):a!=null&&(Yt(a)&&(a=Gn(a,r+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(as,"$&/")+"/")+n)),t.push(a)),1;n=0;var c=s===""?".":s+":";if(rs(e))for(var u=0;u<e.length;u++)s=e[u],o=c+Zt(s,u),n+=Oe(s,t,r,o,a);else if(u=Wn(e),typeof u=="function")for(e=u.call(e),u=0;!(s=e.next()).done;)s=s.value,o=c+Zt(s,u++),n+=Oe(s,t,r,o,a);else if(o==="object"){if(typeof e.then=="function")return Oe(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 pt(e,t,r){if(e==null)return e;var s=[],a=0;return Oe(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 os=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 Kn(){}w.Children={map:pt,forEach:function(e,t,r){pt(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return pt(e,function(){t++}),t},toArray:function(e){return pt(e,function(t){return t})||[]},only:function(e){if(!Yt(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},w.Component=Le,w.Fragment=Dn,w.Profiler=Hn,w.PureComponent=Wt,w.StrictMode=Nn,w.Suspense=jn,w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,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=Jr({},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)!ss.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 qt(e.type,a,void 0,void 0,o,s)},w.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},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)ss.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 qt(e,o,void 0,void 0,null,a)},w.createRef=function(){return{current:null}},w.forwardRef=function(e){return{$$typeof:Vn,render:e}},w.isValidElement=Yt,w.lazy=function(e){return{$$typeof:Kr,_payload:{_status:-1,_result:e},_init:Zn}},w.memo=function(e,t){return{$$typeof:Bn,type:e,compare:t===void 0?null:t}},w.startTransition=function(e){var t=M.T,r={};M.T=r;try{var s=e(),a=M.S;a!==null&&a(r,s),typeof s=="object"&&s!==null&&typeof s.then=="function"&&s.then(Kn,os)}catch(o){os(o)}finally{M.T=t}},w.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},w.use=function(e){return M.H.use(e)},w.useActionState=function(e,t,r){return M.H.useActionState(e,t,r)},w.useCallback=function(e,t){return M.H.useCallback(e,t)},w.useContext=function(e){return M.H.useContext(e)},w.useDebugValue=function(){},w.useDeferredValue=function(e,t){return M.H.useDeferredValue(e,t)},w.useEffect=function(e,t){return M.H.useEffect(e,t)},w.useId=function(){return M.H.useId()},w.useImperativeHandle=function(e,t,r){return M.H.useImperativeHandle(e,t,r)},w.useInsertionEffect=function(e,t){return M.H.useInsertionEffect(e,t)},w.useLayoutEffect=function(e,t){return M.H.useLayoutEffect(e,t)},w.useMemo=function(e,t){return M.H.useMemo(e,t)},w.useOptimistic=function(e,t){return M.H.useOptimistic(e,t)},w.useReducer=function(e,t,r){return M.H.useReducer(e,t,r)},w.useRef=function(e){return M.H.useRef(e)},w.useState=function(e){return M.H.useState(e)},w.useSyncExternalStore=function(e,t,r){return M.H.useSyncExternalStore(e,t,r)},w.useTransition=function(){return M.H.useTransition()},w.version="19.0.0",Zr.exports=w;var cs=Zr.exports,Qn=Vt;const Xn=e=>e;function is(e,t=Xn){const r=cs.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return cs.useDebugValue(r),r}const ls=e=>{const t=Qn.createStore(e),r=s=>is(t,s);return Object.assign(r,t),r},Jn=e=>e?ls(e):ls;jt.create=Jn,jt.useStore=is,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 us={adClientResponseItems:[],core:void 0,hotkey:"k",hotkeyModifier:"meta",logger:void 0,facetPathsForIndexFields:{},isPopoverVisible:!1,isSearchInProgress:!1,searchTerm:"",rangeValueForIndexFields:{},searchMode:"fuzzy",searchClientResponseItems:[],searchResponseTimeTaken:void 0,searchResponseFacetPrime:void 0,searchResultsCount:0,searchResultsPerPage:20,searchResultsPage:1,sortType:"asc"},$=qr.createStore((e,t)=>{const r={addFacetPathsForIndexField:a=>e(o=>({facetPathsForIndexFields:{...o.facetPathsForIndexFields,[a.fieldName]:a}})),addRangeValueForIndexField:a=>e(o=>({rangeValueForIndexFields:{...o.rangeValueForIndexFields,[a.fieldName]:a}})),getSearchcraftInstance:()=>{const{core:a}=t();return a},initialize:(a,o=!1)=>{const n=a,c=o?new sn({logLevel:xe.DEBUG}):void 0;e({core:n,logger:c,searchResultsPerPage:n.config.searchResultsPerPage||20})},removeFacetPathsForIndexField:a=>e(o=>{const n=o.facetPathsForIndexFields;return delete n[a],{facetPathsForIndexFields:{...n}}}),removeRangeValueForIndexField:a=>e(o=>{const n=o.rangeValueForIndexFields;return delete n[a],{rangeValueForIndexFields:{...n}}}),resetFacetPaths:()=>{e({facetPathsForIndexFields:{}})},search:async()=>{var c,u;const a=t();if((c=a.logger)==null||c.log(xe.INFO,`Starting search with search term: "${a.searchTerm}"`),!a.core)throw new Error("Searchcraft instance is not initialized.");if(!a.searchTerm.trim()){(u=a.logger)==null||u.log(xe.INFO,"No search request was made: search term was empty."),e({searchClientResponseItems:[],searchResultsCount:0,searchResultsPage:1,searchTerm:""});return}e({isSearchInProgress:!0});const o=(h,l)=>{var m,b;const p=h.data.facets;e(v=>({isSearchInProgress:!1,searchClientResponseItems:l,searchResponseTimeTaken:h.data.time_taken||0,searchResultsPage:h.data.count===v.searchResultsCount?v.searchResultsPage:1,searchResultsCount:h.data.count||0})),p&&e({searchResponseFacetPrime:p}),(m=a.logger)==null||m.log(xe.DEBUG,`Search results: ${JSON.stringify(l)}`),(b=a.logger)==null||b.log(xe.DEBUG,`Facets from response: ${JSON.stringify(p)}`)},n=h=>{e({adClientResponseItems:h})};a.core.getItems({searchTerm:a.searchTerm,mode:a.searchMode,sort:a.sortType,facetPathsForIndexFields:a.facetPathsForIndexFields,rangeValueForIndexFields:a.rangeValueForIndexFields,offset:a.searchResultsPerPage?a.searchResultsPerPage*(a.searchResultsPage-1):0,limit:a.searchResultsPerPage},o,n)},setPopoverVisibility:a=>{e({isPopoverVisible:a})},setSearchMode:a=>e({searchMode:a}),setSortType:a=>e({sortType:a}),setSearchTerm:a=>{const{core:o}=t();a.length===0&&(o==null||o.handleInputCleared()),e({searchTerm:a,facetPathsForIndexFields:{},...a.trim().length===0&&{searchMode:"fuzzy",sortType:"asc"}})},setSearchClientResponseItems:a=>e({searchClientResponseItems:a}),setSearchResultsPage:async a=>{e({searchResultsPage:a}),await r.search()},setSearchResultsPerPage:async a=>{e({searchResultsPerPage:a}),await r.search()},setHotKeyAndHotKeyModifier:(a,o)=>{const{hotkey:n,hotkeyModifier:c}=us;e({hotkey:a||n,hotkeyModifier:o||c})}};return{...us,...r}});var eo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},hs={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:u,create:h}=Object,{apply:l,construct:p}=typeof Reflect<"u"&&Reflect;c||(c=function(S){return S}),u||(u=function(S){return S}),l||(l=function(S,T,R){return S.apply(T,R)}),p||(p=function(S,T){return new S(...T)});const m=X(Array.prototype.forEach),b=X(Array.prototype.lastIndexOf),v=X(Array.prototype.pop),P=X(Array.prototype.push),N=X(Array.prototype.splice),q=X(String.prototype.toLowerCase),_=X(String.prototype.toString),ve=X(String.prototype.match),oe=X(String.prototype.replace),Re=X(String.prototype.indexOf),H=X(String.prototype.trim),se=X(Object.prototype.hasOwnProperty),U=X(RegExp.prototype.test),Pe=Pc(TypeError);function X(E){return function(S){for(var T=arguments.length,R=new Array(T>1?T-1:0),Y=1;Y<T;Y++)R[Y-1]=arguments[Y];return l(E,S,R)}}function Pc(E){return function(){for(var S=arguments.length,T=new Array(S),R=0;R<S;R++)T[R]=arguments[R];return p(E,T)}}function x(E,S){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:q;s&&s(E,null);let R=S.length;for(;R--;){let Y=S[R];if(typeof Y=="string"){const be=T(Y);be!==Y&&(a(S)||(S[R]=be),Y=be)}E[Y]=!0}return E}function Tc(E){for(let S=0;S<E.length;S++)se(E,S)||(E[S]=null);return E}function Te(E){const S=h(null);for(const[T,R]of r(E))se(E,T)&&(Array.isArray(R)?S[T]=Tc(R):R&&typeof R=="object"&&R.constructor===Object?S[T]=Te(R):S[T]=R);return S}function Ze(E,S){for(;E!==null;){const R=n(E,S);if(R){if(R.get)return X(R.get);if(typeof R.value=="function")return X(R.value)}E=o(E)}function T(){return null}return T}const Ms=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"]),Jt=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"]),er=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"]),tr=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"]),Ls=c(["#text"]),Os=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"]),rr=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"]),Fs=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"]),Ac=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ic=u(/<%[\w\W]*|[\w\W]*%>/gm),Mc=u(/\$\{[\w\W]*/gm),Lc=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),Oc=u(/^aria-[\-\w]+$/),Ds=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fc=u(/^(?:\w+script|data):/i),Dc=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ns=u(/^html$/i),Nc=u(/^[a-z][.\w]*(-[.\w]+)+$/i);var Hs=Object.freeze({__proto__:null,ARIA_ATTR:Oc,ATTR_WHITESPACE:Dc,CUSTOM_ELEMENT:Nc,DATA_ATTR:Lc,DOCTYPE_NAME:Ns,ERB_EXPR:Ic,IS_ALLOWED_URI:Ds,IS_SCRIPT_OR_DATA:Fc,MUSTACHE_EXPR:Ac,TMPLIT_EXPR:Mc});const Ke={element:1,text:3,progressingInstruction:7,comment:8,document:9},Hc=function(){return typeof window>"u"?null:window},Uc=function(S,T){if(typeof S!="object"||typeof S.createPolicy!="function")return null;let R=null;const Y="data-tt-policy-suffix";T&&T.hasAttribute(Y)&&(R=T.getAttribute(Y));const be="dompurify"+(R?"#"+R:"");try{return S.createPolicy(be,{createHTML(Fe){return Fe},createScriptURL(Fe){return Fe}})}catch{return console.warn("TrustedTypes policy "+be+" could not be created."),null}},Us=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function zs(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hc();const S=k=>zs(k);if(S.version="3.2.4",S.removed=[],!E||!E.document||E.document.nodeType!==Ke.document||!E.Element)return S.isSupported=!1,S;let{document:T}=E;const R=T,Y=R.currentScript,{DocumentFragment:be,HTMLTemplateElement:Fe,Node:sr,Element:Vs,NodeFilter:Qe,NamedNodeMap:Vc=E.NamedNodeMap||E.MozNamedAttrMap,HTMLFormElement:jc,DOMParser:Bc,trustedTypes:St}=E,Xe=Vs.prototype,Wc=Ze(Xe,"cloneNode"),Gc=Ze(Xe,"remove"),qc=Ze(Xe,"nextSibling"),Yc=Ze(Xe,"childNodes"),kt=Ze(Xe,"parentNode");if(typeof Fe=="function"){const k=T.createElement("template");k.content&&k.content.ownerDocument&&(T=k.content.ownerDocument)}let J,Je="";const{implementation:ar,createNodeIterator:Zc,createDocumentFragment:Kc,getElementsByTagName:Qc}=T,{importNode:Xc}=R;let ee=Us();S.isSupported=typeof r=="function"&&typeof kt=="function"&&ar&&ar.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:nr,ERB_EXPR:or,TMPLIT_EXPR:cr,DATA_ATTR:Jc,ARIA_ATTR:ei,IS_SCRIPT_OR_DATA:ti,ATTR_WHITESPACE:js,CUSTOM_ELEMENT:ri}=Hs;let{IS_ALLOWED_URI:Bs}=Hs,z=null;const Ws=x({},[...Ms,...Jt,...er,...tr,...Ls]);let B=null;const Gs=x({},[...Os,...rr,...Fs,...yt]);let D=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}})),et=null,ir=null,qs=!0,lr=!0,Ys=!1,Zs=!0,De=!1,ur=!0,$e=!1,hr=!1,fr=!1,Ne=!1,Ct=!1,wt=!1,Ks=!0,Qs=!1;const si="user-content-";let dr=!0,tt=!1,He={},Ue=null;const Xs=x({},["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 Js=null;const ea=x({},["audio","video","img","source","image","track"]);let pr=null;const ta=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xt="http://www.w3.org/1998/Math/MathML",Et="http://www.w3.org/2000/svg",ye="http://www.w3.org/1999/xhtml";let ze=ye,mr=!1,gr=null;const ai=x({},[xt,Et,ye],_);let Rt=x({},["mi","mo","mn","ms","mtext"]),Pt=x({},["annotation-xml"]);const ni=x({},["title","style","font","a","script"]);let rt=null;const oi=["application/xhtml+xml","text/html"],ci="text/html";let V=null,Ve=null;const ii=T.createElement("form"),ra=function(f){return f instanceof RegExp||f instanceof Function},vr=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ve&&Ve===f)){if((!f||typeof f!="object")&&(f={}),f=Te(f),rt=oi.indexOf(f.PARSER_MEDIA_TYPE)===-1?ci:f.PARSER_MEDIA_TYPE,V=rt==="application/xhtml+xml"?_:q,z=se(f,"ALLOWED_TAGS")?x({},f.ALLOWED_TAGS,V):Ws,B=se(f,"ALLOWED_ATTR")?x({},f.ALLOWED_ATTR,V):Gs,gr=se(f,"ALLOWED_NAMESPACES")?x({},f.ALLOWED_NAMESPACES,_):ai,pr=se(f,"ADD_URI_SAFE_ATTR")?x(Te(ta),f.ADD_URI_SAFE_ATTR,V):ta,Js=se(f,"ADD_DATA_URI_TAGS")?x(Te(ea),f.ADD_DATA_URI_TAGS,V):ea,Ue=se(f,"FORBID_CONTENTS")?x({},f.FORBID_CONTENTS,V):Xs,et=se(f,"FORBID_TAGS")?x({},f.FORBID_TAGS,V):{},ir=se(f,"FORBID_ATTR")?x({},f.FORBID_ATTR,V):{},He=se(f,"USE_PROFILES")?f.USE_PROFILES:!1,qs=f.ALLOW_ARIA_ATTR!==!1,lr=f.ALLOW_DATA_ATTR!==!1,Ys=f.ALLOW_UNKNOWN_PROTOCOLS||!1,Zs=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,De=f.SAFE_FOR_TEMPLATES||!1,ur=f.SAFE_FOR_XML!==!1,$e=f.WHOLE_DOCUMENT||!1,Ne=f.RETURN_DOM||!1,Ct=f.RETURN_DOM_FRAGMENT||!1,wt=f.RETURN_TRUSTED_TYPE||!1,fr=f.FORCE_BODY||!1,Ks=f.SANITIZE_DOM!==!1,Qs=f.SANITIZE_NAMED_PROPS||!1,dr=f.KEEP_CONTENT!==!1,tt=f.IN_PLACE||!1,Bs=f.ALLOWED_URI_REGEXP||Ds,ze=f.NAMESPACE||ye,Rt=f.MATHML_TEXT_INTEGRATION_POINTS||Rt,Pt=f.HTML_INTEGRATION_POINTS||Pt,D=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&ra(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(D.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&ra(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(D.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(D.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(lr=!1),Ct&&(Ne=!0),He&&(z=x({},Ls),B=[],He.html===!0&&(x(z,Ms),x(B,Os)),He.svg===!0&&(x(z,Jt),x(B,rr),x(B,yt)),He.svgFilters===!0&&(x(z,er),x(B,rr),x(B,yt)),He.mathMl===!0&&(x(z,tr),x(B,Fs),x(B,yt))),f.ADD_TAGS&&(z===Ws&&(z=Te(z)),x(z,f.ADD_TAGS,V)),f.ADD_ATTR&&(B===Gs&&(B=Te(B)),x(B,f.ADD_ATTR,V)),f.ADD_URI_SAFE_ATTR&&x(pr,f.ADD_URI_SAFE_ATTR,V),f.FORBID_CONTENTS&&(Ue===Xs&&(Ue=Te(Ue)),x(Ue,f.FORBID_CONTENTS,V)),dr&&(z["#text"]=!0),$e&&x(z,["html","head","body"]),z.table&&(x(z,["tbody"]),delete et.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw Pe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Pe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=f.TRUSTED_TYPES_POLICY,Je=J.createHTML("")}else J===void 0&&(J=Uc(St,Y)),J!==null&&typeof Je=="string"&&(Je=J.createHTML(""));c&&c(f),Ve=f}},sa=x({},[...Jt,...er,...$c]),aa=x({},[...tr,..._c]),li=function(f){let g=kt(f);(!g||!g.tagName)&&(g={namespaceURI:ze,tagName:"template"});const y=q(f.tagName),I=q(g.tagName);return gr[f.namespaceURI]?f.namespaceURI===Et?g.namespaceURI===ye?y==="svg":g.namespaceURI===xt?y==="svg"&&(I==="annotation-xml"||Rt[I]):!!sa[y]:f.namespaceURI===xt?g.namespaceURI===ye?y==="math":g.namespaceURI===Et?y==="math"&&Pt[I]:!!aa[y]:f.namespaceURI===ye?g.namespaceURI===Et&&!Pt[I]||g.namespaceURI===xt&&!Rt[I]?!1:!aa[y]&&(ni[y]||!sa[y]):!!(rt==="application/xhtml+xml"&&gr[f.namespaceURI]):!1},ue=function(f){P(S.removed,{element:f});try{kt(f).removeChild(f)}catch{Gc(f)}},Tt=function(f,g){try{P(S.removed,{attribute:g.getAttributeNode(f),from:g})}catch{P(S.removed,{attribute:null,from:g})}if(g.removeAttribute(f),f==="is")if(Ne||Ct)try{ue(g)}catch{}else try{g.setAttribute(f,"")}catch{}},na=function(f){let g=null,y=null;if(fr)f="<remove></remove>"+f;else{const W=ve(f,/^[\r\n\t ]+/);y=W&&W[0]}rt==="application/xhtml+xml"&&ze===ye&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const I=J?J.createHTML(f):f;if(ze===ye)try{g=new Bc().parseFromString(I,rt)}catch{}if(!g||!g.documentElement){g=ar.createDocument(ze,"template",null);try{g.documentElement.innerHTML=mr?Je:I}catch{}}const Z=g.body||g.documentElement;return f&&y&&Z.insertBefore(T.createTextNode(y),Z.childNodes[0]||null),ze===ye?Qc.call(g,$e?"html":"body")[0]:$e?g.documentElement:Z},oa=function(f){return Zc.call(f.ownerDocument||f,f,Qe.SHOW_ELEMENT|Qe.SHOW_COMMENT|Qe.SHOW_TEXT|Qe.SHOW_PROCESSING_INSTRUCTION|Qe.SHOW_CDATA_SECTION,null)},br=function(f){return f instanceof jc&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof Vc)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},ca=function(f){return typeof sr=="function"&&f instanceof sr};function Se(k,f,g){m(k,y=>{y.call(S,f,g,Ve)})}const ia=function(f){let g=null;if(Se(ee.beforeSanitizeElements,f,null),br(f))return ue(f),!0;const y=V(f.nodeName);if(Se(ee.uponSanitizeElement,f,{tagName:y,allowedTags:z}),f.hasChildNodes()&&!ca(f.firstElementChild)&&U(/<[/\w]/g,f.innerHTML)&&U(/<[/\w]/g,f.textContent)||f.nodeType===Ke.progressingInstruction||ur&&f.nodeType===Ke.comment&&U(/<[/\w]/g,f.data))return ue(f),!0;if(!z[y]||et[y]){if(!et[y]&&ua(y)&&(D.tagNameCheck instanceof RegExp&&U(D.tagNameCheck,y)||D.tagNameCheck instanceof Function&&D.tagNameCheck(y)))return!1;if(dr&&!Ue[y]){const I=kt(f)||f.parentNode,Z=Yc(f)||f.childNodes;if(Z&&I){const W=Z.length;for(let ae=W-1;ae>=0;--ae){const he=Wc(Z[ae],!0);he.__removalCount=(f.__removalCount||0)+1,I.insertBefore(he,qc(f))}}}return ue(f),!0}return f instanceof Vs&&!li(f)||(y==="noscript"||y==="noembed"||y==="noframes")&&U(/<\/no(script|embed|frames)/i,f.innerHTML)?(ue(f),!0):(De&&f.nodeType===Ke.text&&(g=f.textContent,m([nr,or,cr],I=>{g=oe(g,I," ")}),f.textContent!==g&&(P(S.removed,{element:f.cloneNode()}),f.textContent=g)),Se(ee.afterSanitizeElements,f,null),!1)},la=function(f,g,y){if(Ks&&(g==="id"||g==="name")&&(y in T||y in ii))return!1;if(!(lr&&!ir[g]&&U(Jc,g))){if(!(qs&&U(ei,g))){if(!B[g]||ir[g]){if(!(ua(f)&&(D.tagNameCheck instanceof RegExp&&U(D.tagNameCheck,f)||D.tagNameCheck instanceof Function&&D.tagNameCheck(f))&&(D.attributeNameCheck instanceof RegExp&&U(D.attributeNameCheck,g)||D.attributeNameCheck instanceof Function&&D.attributeNameCheck(g))||g==="is"&&D.allowCustomizedBuiltInElements&&(D.tagNameCheck instanceof RegExp&&U(D.tagNameCheck,y)||D.tagNameCheck instanceof Function&&D.tagNameCheck(y))))return!1}else if(!pr[g]){if(!U(Bs,oe(y,js,""))){if(!((g==="src"||g==="xlink:href"||g==="href")&&f!=="script"&&Re(y,"data:")===0&&Js[f])){if(!(Ys&&!U(ti,oe(y,js,"")))){if(y)return!1}}}}}}return!0},ua=function(f){return f!=="annotation-xml"&&ve(f,ri)},ha=function(f){Se(ee.beforeSanitizeAttributes,f,null);const{attributes:g}=f;if(!g||br(f))return;const y={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let I=g.length;for(;I--;){const Z=g[I],{name:W,namespaceURI:ae,value:he}=Z,st=V(W);let te=W==="value"?he:H(he);if(y.attrName=st,y.attrValue=te,y.keepAttr=!0,y.forceKeepAttr=void 0,Se(ee.uponSanitizeAttribute,f,y),te=y.attrValue,Qs&&(st==="id"||st==="name")&&(Tt(W,f),te=si+te),ur&&U(/((--!?|])>)|<\/(style|title)/i,te)){Tt(W,f);continue}if(y.forceKeepAttr||(Tt(W,f),!y.keepAttr))continue;if(!Zs&&U(/\/>/i,te)){Tt(W,f);continue}De&&m([nr,or,cr],da=>{te=oe(te,da," ")});const fa=V(f.nodeName);if(la(fa,st,te)){if(J&&typeof St=="object"&&typeof St.getAttributeType=="function"&&!ae)switch(St.getAttributeType(fa,st)){case"TrustedHTML":{te=J.createHTML(te);break}case"TrustedScriptURL":{te=J.createScriptURL(te);break}}try{ae?f.setAttributeNS(ae,W,te):f.setAttribute(W,te),br(f)?ue(f):v(S.removed)}catch{}}}Se(ee.afterSanitizeAttributes,f,null)},ui=function k(f){let g=null;const y=oa(f);for(Se(ee.beforeSanitizeShadowDOM,f,null);g=y.nextNode();)Se(ee.uponSanitizeShadowNode,g,null),ia(g),ha(g),g.content instanceof be&&k(g.content);Se(ee.afterSanitizeShadowDOM,f,null)};return S.sanitize=function(k){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=null,y=null,I=null,Z=null;if(mr=!k,mr&&(k="<!-->"),typeof k!="string"&&!ca(k))if(typeof k.toString=="function"){if(k=k.toString(),typeof k!="string")throw Pe("dirty is not a string, aborting")}else throw Pe("toString is not a function");if(!S.isSupported)return k;if(hr||vr(f),S.removed=[],typeof k=="string"&&(tt=!1),tt){if(k.nodeName){const he=V(k.nodeName);if(!z[he]||et[he])throw Pe("root node is forbidden and cannot be sanitized in-place")}}else if(k instanceof sr)g=na("<!---->"),y=g.ownerDocument.importNode(k,!0),y.nodeType===Ke.element&&y.nodeName==="BODY"||y.nodeName==="HTML"?g=y:g.appendChild(y);else{if(!Ne&&!De&&!$e&&k.indexOf("<")===-1)return J&&wt?J.createHTML(k):k;if(g=na(k),!g)return Ne?null:wt?Je:""}g&&fr&&ue(g.firstChild);const W=oa(tt?k:g);for(;I=W.nextNode();)ia(I),ha(I),I.content instanceof be&&ui(I.content);if(tt)return k;if(Ne){if(Ct)for(Z=Kc.call(g.ownerDocument);g.firstChild;)Z.appendChild(g.firstChild);else Z=g;return(B.shadowroot||B.shadowrootmode)&&(Z=Xc.call(R,Z,!0)),Z}let ae=$e?g.outerHTML:g.innerHTML;return $e&&z["!doctype"]&&g.ownerDocument&&g.ownerDocument.doctype&&g.ownerDocument.doctype.name&&U(Ns,g.ownerDocument.doctype.name)&&(ae="<!DOCTYPE "+g.ownerDocument.doctype.name+`>
20
- `+ae),De&&m([nr,or,cr],he=>{ae=oe(ae,he," ")}),J&&wt?J.createHTML(ae):ae},S.setConfig=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vr(k),hr=!0},S.clearConfig=function(){Ve=null,hr=!1},S.isValidAttribute=function(k,f,g){Ve||vr({});const y=V(k),I=V(f);return la(y,I,g)},S.addHook=function(k,f){typeof f=="function"&&P(ee[k],f)},S.removeHook=function(k,f){if(f!==void 0){const g=b(ee[k],f);return g===-1?void 0:N(ee[k],g,1)[0]}return v(ee[k])},S.removeHooks=function(k){ee[k]=[]},S.removeAllHooks=function(){ee=Us()},S}var zc=zs();return zc})})(hs);const to=hs.exports,mt=(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 Q=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=ro[r[e]&63];return t};const so=F(class extends O{constructor(){super();d(this,"adSource","Custom");d(this,"adClientResponseItem");d(this,"adContainerId",Q());d(this,"searchTerm");d(this,"isSearchInProgress",!1);d(this,"core");d(this,"intersectionObserver");d(this,"storeUnsubscribe");d(this,"adContainerRenderedTimeout");d(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(){const r=this.adClientResponseItem;if(r.admAd)return i("div",{class:"searchcraft-adm-ad"},i("a",{class:"searchcraft-adm-ad-link",href:r.admAd.click_url},r.admAd.image_url&&i("div",{class:"searchcraft-adm-ad-image-wrapper"},i("img",{alt:r.admAd.term||"image",src:r.admAd.image_url,class:"searchcraft-adm-ad-image"})),i("div",{class:"searchcraft-adm-ad-content"},i("p",{class:"searchcraft-adm-ad-content-title"},r.admAd.term),r.admAd.price&&i("p",{class:"searchcraft-adm-ad-content-subtitle"},r.admAd.price))))}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:mt})),i("div",{class:"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 i("div",{class:r})}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,so);break}})}const ao=gt;var fs={exports:{}};/*!
19
+ */var Bt=Symbol.for("react.transitional.element"),On=Symbol.for("react.portal"),Fn=Symbol.for("react.fragment"),Dn=Symbol.for("react.strict_mode"),Nn=Symbol.for("react.profiler"),Hn=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"),Qr=Symbol.for("react.lazy"),Kr=Symbol.iterator;function Bn(e){return e===null||typeof e!="object"?null:(e=Kr&&e[Kr]||e["@@iterator"],typeof e=="function"?e:null)}var Xr={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jr=Object.assign,es={};function Le(e,t,r){this.props=e,this.context=t,this.refs=es,this.updater=r||Xr}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 ts(){}ts.prototype=Le.prototype;function Wt(e,t,r){this.props=e,this.context=t,this.refs=es,this.updater=r||Xr}var Gt=Wt.prototype=new ts;Gt.constructor=Wt,Jr(Gt,Le.prototype),Gt.isPureReactComponent=!0;var rs=Array.isArray,L={H:null,A:null,T:null,S:null},ss=Object.prototype.hasOwnProperty;function qt(e,t,r,s,a,o){return r=o.ref,{$$typeof:Bt,type:e,key:t,ref:r!==void 0?r:null,props:o}}function Wn(e,t){return qt(e.type,t,void 0,void 0,void 0,e.props)}function Yt(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bt}function Gn(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var as=/\/+/g;function Zt(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gn(""+e.key):t.toString(36)}function ns(){}function qn(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(ns,ns):(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 Oe(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 Bt:case On:n=!0;break;case Qr:return n=e._init,Oe(n(e._payload),t,r,s,a)}}if(n)return a=a(e),n=s===""?"."+Zt(e,0):s,rs(a)?(r="",n!=null&&(r=n.replace(as,"$&/")+"/"),Oe(a,t,r,"",function(h){return h})):a!=null&&(Yt(a)&&(a=Wn(a,r+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(as,"$&/")+"/")+n)),t.push(a)),1;n=0;var c=s===""?".":s+":";if(rs(e))for(var u=0;u<e.length;u++)s=e[u],o=c+Zt(s,u),n+=Oe(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+Zt(s,u++),n+=Oe(s,t,r,o,a);else if(o==="object"){if(typeof e.then=="function")return Oe(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 pt(e,t,r){if(e==null)return e;var s=[],a=0;return Oe(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 os=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:pt,forEach:function(e,t,r){pt(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return pt(e,function(){t++}),t},toArray:function(e){return pt(e,function(t){return t})||[]},only:function(e){if(!Yt(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},w.Component=Le,w.Fragment=Fn,w.Profiler=Nn,w.PureComponent=Wt,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=Jr({},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)!ss.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 qt(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:Hn,_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)ss.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 qt(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=Yt,w.lazy=function(e){return{$$typeof:Qr,_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,os)}catch(o){os(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",Zr.exports=w;var cs=Zr.exports,Qn=jt;const Kn=e=>e;function is(e,t=Kn){const r=cs.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return cs.useDebugValue(r),r}const ls=e=>{const t=Qn.createStore(e),r=s=>is(t,s);return Object.assign(r,t),r},Xn=e=>e?ls(e):ls;Vt.create=Xn,Vt.useStore=is,function(e){var t=jt,r=Vt;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 us={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:"asc",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 sn({logLevel:de.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(de.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(de.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,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 l,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,...n&&{searchResponseFacetPrime:n}}));(l=h.logger)==null||l.log(de.DEBUG,`Search results: ${JSON.stringify(o)}`),(p=h.logger)==null||p.log(de.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(l=>({isSearchInProgress:!1,initialSearchClientResponseItems:o,searchResponseTimeTaken:u,searchResultsPage:c===l.searchResultsCount?l.searchResultsPage:1,searchResultsCount:c})),(h=n.logger)==null||h.log(de.DEBUG,`Search results: ${JSON.stringify(o)}`)},setInitialQuery:async a=>{var n;const o=r.set({initialQuery:a});if((n=o.logger)==null||n.log(de.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}),setSortType:a=>r.set({sortType: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:"asc"}})},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}=us;r.set({hotkey:a||n,hotkeyModifier:o||c})}};return{...us,...r}});var Jn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},hs={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:l,construct:p}=typeof Reflect<"u"&&Reflect;c||(c=function(y){return y}),u||(u=function(y){return y}),l||(l=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),oe=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(R){return function(y){for(var $=arguments.length,E=new Array($>1?$-1:0),Y=1;Y<$;Y++)E[Y-1]=arguments[Y];return l(R,y,E)}}function Ec(R){return function(){for(var y=arguments.length,$=new Array(y),E=0;E<y;E++)$[E]=arguments[E];return p(R,$)}}function x(R,y){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:F;s&&s(R,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)}R[Y]=!0}return R}function Pc(R){for(let y=0;y<R.length;y++)se(R,y)||(R[y]=null);return R}function Te(R){const y=h(null);for(const[$,E]of r(R))se(R,$)&&(Array.isArray(E)?y[$]=Pc(E):E&&typeof E=="object"&&E.constructor===Object?y[$]=Te(E):y[$]=E);return y}function Ze(R,y){for(;R!==null;){const E=n(R,y);if(E){if(E.get)return X(E.get);if(typeof E.value=="function")return X(E.value)}R=o(R)}function $(){return null}return $}const Ms=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"]),Jt=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"]),er=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"]),tr=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"]),Ls=c(["#text"]),Os=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"]),rr=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"]),Fs=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]+$/),Ds=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 Hs=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:Ds,IS_SCRIPT_OR_DATA:Oc,MUSTACHE_EXPR:_c,TMPLIT_EXPR:Ac});const Qe={element:1,text:3,progressingInstruction:7,comment:8,document:9},Nc=function(){return typeof window>"u"?null:window},Hc=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(Fe){return Fe},createScriptURL(Fe){return Fe}})}catch{return console.warn("TrustedTypes policy "+ye+" could not be created."),null}},Us=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function zs(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Nc();const y=C=>zs(C);if(y.version="3.2.4",y.removed=[],!R||!R.document||R.document.nodeType!==Qe.document||!R.Element)return y.isSupported=!1,y;let{document:$}=R;const E=$,Y=E.currentScript,{DocumentFragment:ye,HTMLTemplateElement:Fe,Node:sr,Element:js,NodeFilter:Ke,NamedNodeMap:zc=R.NamedNodeMap||R.MozNamedAttrMap,HTMLFormElement:jc,DOMParser:Vc,trustedTypes:Ct}=R,Xe=js.prototype,Bc=Ze(Xe,"cloneNode"),Wc=Ze(Xe,"remove"),Gc=Ze(Xe,"nextSibling"),qc=Ze(Xe,"childNodes"),St=Ze(Xe,"parentNode");if(typeof Fe=="function"){const C=$.createElement("template");C.content&&C.content.ownerDocument&&($=C.content.ownerDocument)}let J,Je="";const{implementation:ar,createNodeIterator:Yc,createDocumentFragment:Zc,getElementsByTagName:Qc}=$,{importNode:Kc}=E;let ee=Us();y.isSupported=typeof r=="function"&&typeof St=="function"&&ar&&ar.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:nr,ERB_EXPR:or,TMPLIT_EXPR:cr,DATA_ATTR:Xc,ARIA_ATTR:Jc,IS_SCRIPT_OR_DATA:ei,ATTR_WHITESPACE:Vs,CUSTOM_ELEMENT:ti}=Hs;let{IS_ALLOWED_URI:Bs}=Hs,j=null;const Ws=x({},[...Ms,...Jt,...er,...tr,...Ls]);let W=null;const Gs=x({},[...Os,...rr,...Fs,...yt]);let H=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}})),et=null,ir=null,qs=!0,lr=!0,Ys=!1,Zs=!0,De=!1,ur=!0,$e=!1,hr=!1,fr=!1,Ne=!1,kt=!1,wt=!1,Qs=!0,Ks=!1;const ri="user-content-";let dr=!0,tt=!1,He={},Ue=null;const Xs=x({},["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 Js=null;const ea=x({},["audio","video","img","source","image","track"]);let pr=null;const ta=x({},["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 ze=Ce,mr=!1,gr=null;const si=x({},[xt,Rt,Ce],T);let Et=x({},["mi","mo","mn","ms","mtext"]),Pt=x({},["annotation-xml"]);const ai=x({},["title","style","font","a","script"]);let rt=null;const ni=["application/xhtml+xml","text/html"],oi="text/html";let V=null,je=null;const ci=$.createElement("form"),ra=function(f){return f instanceof RegExp||f instanceof Function},vr=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(je&&je===f)){if((!f||typeof f!="object")&&(f={}),f=Te(f),rt=ni.indexOf(f.PARSER_MEDIA_TYPE)===-1?oi:f.PARSER_MEDIA_TYPE,V=rt==="application/xhtml+xml"?T:F,j=se(f,"ALLOWED_TAGS")?x({},f.ALLOWED_TAGS,V):Ws,W=se(f,"ALLOWED_ATTR")?x({},f.ALLOWED_ATTR,V):Gs,gr=se(f,"ALLOWED_NAMESPACES")?x({},f.ALLOWED_NAMESPACES,T):si,pr=se(f,"ADD_URI_SAFE_ATTR")?x(Te(ta),f.ADD_URI_SAFE_ATTR,V):ta,Js=se(f,"ADD_DATA_URI_TAGS")?x(Te(ea),f.ADD_DATA_URI_TAGS,V):ea,Ue=se(f,"FORBID_CONTENTS")?x({},f.FORBID_CONTENTS,V):Xs,et=se(f,"FORBID_TAGS")?x({},f.FORBID_TAGS,V):{},ir=se(f,"FORBID_ATTR")?x({},f.FORBID_ATTR,V):{},He=se(f,"USE_PROFILES")?f.USE_PROFILES:!1,qs=f.ALLOW_ARIA_ATTR!==!1,lr=f.ALLOW_DATA_ATTR!==!1,Ys=f.ALLOW_UNKNOWN_PROTOCOLS||!1,Zs=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,De=f.SAFE_FOR_TEMPLATES||!1,ur=f.SAFE_FOR_XML!==!1,$e=f.WHOLE_DOCUMENT||!1,Ne=f.RETURN_DOM||!1,kt=f.RETURN_DOM_FRAGMENT||!1,wt=f.RETURN_TRUSTED_TYPE||!1,fr=f.FORCE_BODY||!1,Qs=f.SANITIZE_DOM!==!1,Ks=f.SANITIZE_NAMED_PROPS||!1,dr=f.KEEP_CONTENT!==!1,tt=f.IN_PLACE||!1,Bs=f.ALLOWED_URI_REGEXP||Ds,ze=f.NAMESPACE||Ce,Et=f.MATHML_TEXT_INTEGRATION_POINTS||Et,Pt=f.HTML_INTEGRATION_POINTS||Pt,H=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&ra(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&ra(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(lr=!1),kt&&(Ne=!0),He&&(j=x({},Ls),W=[],He.html===!0&&(x(j,Ms),x(W,Os)),He.svg===!0&&(x(j,Jt),x(W,rr),x(W,yt)),He.svgFilters===!0&&(x(j,er),x(W,rr),x(W,yt)),He.mathMl===!0&&(x(j,tr),x(W,Fs),x(W,yt))),f.ADD_TAGS&&(j===Ws&&(j=Te(j)),x(j,f.ADD_TAGS,V)),f.ADD_ATTR&&(W===Gs&&(W=Te(W)),x(W,f.ADD_ATTR,V)),f.ADD_URI_SAFE_ATTR&&x(pr,f.ADD_URI_SAFE_ATTR,V),f.FORBID_CONTENTS&&(Ue===Xs&&(Ue=Te(Ue)),x(Ue,f.FORBID_CONTENTS,V)),dr&&(j["#text"]=!0),$e&&x(j,["html","head","body"]),j.table&&(x(j,["tbody"]),delete et.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw Pe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Pe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=f.TRUSTED_TYPES_POLICY,Je=J.createHTML("")}else J===void 0&&(J=Hc(Ct,Y)),J!==null&&typeof Je=="string"&&(Je=J.createHTML(""));c&&c(f),je=f}},sa=x({},[...Jt,...er,...Tc]),aa=x({},[...tr,...$c]),ii=function(f){let m=St(f);(!m||!m.tagName)&&(m={namespaceURI:ze,tagName:"template"});const v=F(f.tagName),M=F(m.tagName);return gr[f.namespaceURI]?f.namespaceURI===Rt?m.namespaceURI===Ce?v==="svg":m.namespaceURI===xt?v==="svg"&&(M==="annotation-xml"||Et[M]):!!sa[v]:f.namespaceURI===xt?m.namespaceURI===Ce?v==="math":m.namespaceURI===Rt?v==="math"&&Pt[M]:!!aa[v]:f.namespaceURI===Ce?m.namespaceURI===Rt&&!Pt[M]||m.namespaceURI===xt&&!Et[M]?!1:!aa[v]&&(ai[v]||!sa[v]):!!(rt==="application/xhtml+xml"&&gr[f.namespaceURI]):!1},ue=function(f){P(y.removed,{element:f});try{St(f).removeChild(f)}catch{Wc(f)}},Tt=function(f,m){try{P(y.removed,{attribute:m.getAttributeNode(f),from:m})}catch{P(y.removed,{attribute:null,from:m})}if(m.removeAttribute(f),f==="is")if(Ne||kt)try{ue(m)}catch{}else try{m.setAttribute(f,"")}catch{}},na=function(f){let m=null,v=null;if(fr)f="<remove></remove>"+f;else{const G=be(f,/^[\r\n\t ]+/);v=G&&G[0]}rt==="application/xhtml+xml"&&ze===Ce&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const M=J?J.createHTML(f):f;if(ze===Ce)try{m=new Vc().parseFromString(M,rt)}catch{}if(!m||!m.documentElement){m=ar.createDocument(ze,"template",null);try{m.documentElement.innerHTML=mr?Je:M}catch{}}const Z=m.body||m.documentElement;return f&&v&&Z.insertBefore($.createTextNode(v),Z.childNodes[0]||null),ze===Ce?Qc.call(m,$e?"html":"body")[0]:$e?m.documentElement:Z},oa=function(f){return Yc.call(f.ownerDocument||f,f,Ke.SHOW_ELEMENT|Ke.SHOW_COMMENT|Ke.SHOW_TEXT|Ke.SHOW_PROCESSING_INSTRUCTION|Ke.SHOW_CDATA_SECTION,null)},br=function(f){return f instanceof jc&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof zc)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},ca=function(f){return typeof sr=="function"&&f instanceof sr};function Se(C,f,m){g(C,v=>{v.call(y,f,m,je)})}const ia=function(f){let m=null;if(Se(ee.beforeSanitizeElements,f,null),br(f))return ue(f),!0;const v=V(f.nodeName);if(Se(ee.uponSanitizeElement,f,{tagName:v,allowedTags:j}),f.hasChildNodes()&&!ca(f.firstElementChild)&&z(/<[/\w]/g,f.innerHTML)&&z(/<[/\w]/g,f.textContent)||f.nodeType===Qe.progressingInstruction||ur&&f.nodeType===Qe.comment&&z(/<[/\w]/g,f.data))return ue(f),!0;if(!j[v]||et[v]){if(!et[v]&&ua(v)&&(H.tagNameCheck instanceof RegExp&&z(H.tagNameCheck,v)||H.tagNameCheck instanceof Function&&H.tagNameCheck(v)))return!1;if(dr&&!Ue[v]){const M=St(f)||f.parentNode,Z=qc(f)||f.childNodes;if(Z&&M){const G=Z.length;for(let ae=G-1;ae>=0;--ae){const he=Bc(Z[ae],!0);he.__removalCount=(f.__removalCount||0)+1,M.insertBefore(he,Gc(f))}}}return ue(f),!0}return f instanceof js&&!ii(f)||(v==="noscript"||v==="noembed"||v==="noframes")&&z(/<\/no(script|embed|frames)/i,f.innerHTML)?(ue(f),!0):(De&&f.nodeType===Qe.text&&(m=f.textContent,g([nr,or,cr],M=>{m=oe(m,M," ")}),f.textContent!==m&&(P(y.removed,{element:f.cloneNode()}),f.textContent=m)),Se(ee.afterSanitizeElements,f,null),!1)},la=function(f,m,v){if(Qs&&(m==="id"||m==="name")&&(v in $||v in ci))return!1;if(!(lr&&!ir[m]&&z(Xc,m))){if(!(qs&&z(Jc,m))){if(!W[m]||ir[m]){if(!(ua(f)&&(H.tagNameCheck instanceof RegExp&&z(H.tagNameCheck,f)||H.tagNameCheck instanceof Function&&H.tagNameCheck(f))&&(H.attributeNameCheck instanceof RegExp&&z(H.attributeNameCheck,m)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(m))||m==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&z(H.tagNameCheck,v)||H.tagNameCheck instanceof Function&&H.tagNameCheck(v))))return!1}else if(!pr[m]){if(!z(Bs,oe(v,Vs,""))){if(!((m==="src"||m==="xlink:href"||m==="href")&&f!=="script"&&Ee(v,"data:")===0&&Js[f])){if(!(Ys&&!z(ei,oe(v,Vs,"")))){if(v)return!1}}}}}}return!0},ua=function(f){return f!=="annotation-xml"&&be(f,ti)},ha=function(f){Se(ee.beforeSanitizeAttributes,f,null);const{attributes:m}=f;if(!m||br(f))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,st=V(G);let te=G==="value"?he:U(he);if(v.attrName=st,v.attrValue=te,v.keepAttr=!0,v.forceKeepAttr=void 0,Se(ee.uponSanitizeAttribute,f,v),te=v.attrValue,Ks&&(st==="id"||st==="name")&&(Tt(G,f),te=ri+te),ur&&z(/((--!?|])>)|<\/(style|title)/i,te)){Tt(G,f);continue}if(v.forceKeepAttr||(Tt(G,f),!v.keepAttr))continue;if(!Zs&&z(/\/>/i,te)){Tt(G,f);continue}De&&g([nr,or,cr],da=>{te=oe(te,da," ")});const fa=V(f.nodeName);if(la(fa,st,te)){if(J&&typeof Ct=="object"&&typeof Ct.getAttributeType=="function"&&!ae)switch(Ct.getAttributeType(fa,st)){case"TrustedHTML":{te=J.createHTML(te);break}case"TrustedScriptURL":{te=J.createScriptURL(te);break}}try{ae?f.setAttributeNS(ae,G,te):f.setAttribute(G,te),br(f)?ue(f):b(y.removed)}catch{}}}Se(ee.afterSanitizeAttributes,f,null)},li=function C(f){let m=null;const v=oa(f);for(Se(ee.beforeSanitizeShadowDOM,f,null);m=v.nextNode();)Se(ee.uponSanitizeShadowNode,m,null),ia(m),ha(m),m.content instanceof ye&&C(m.content);Se(ee.afterSanitizeShadowDOM,f,null)};return y.sanitize=function(C){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=null,v=null,M=null,Z=null;if(mr=!C,mr&&(C="<!-->"),typeof C!="string"&&!ca(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw Pe("dirty is not a string, aborting")}else throw Pe("toString is not a function");if(!y.isSupported)return C;if(hr||vr(f),y.removed=[],typeof C=="string"&&(tt=!1),tt){if(C.nodeName){const he=V(C.nodeName);if(!j[he]||et[he])throw Pe("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof sr)m=na("<!---->"),v=m.ownerDocument.importNode(C,!0),v.nodeType===Qe.element&&v.nodeName==="BODY"||v.nodeName==="HTML"?m=v:m.appendChild(v);else{if(!Ne&&!De&&!$e&&C.indexOf("<")===-1)return J&&wt?J.createHTML(C):C;if(m=na(C),!m)return Ne?null:wt?Je:""}m&&fr&&ue(m.firstChild);const G=oa(tt?C:m);for(;M=G.nextNode();)ia(M),ha(M),M.content instanceof ye&&li(M.content);if(tt)return C;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+`>
20
+ `+ae),De&&g([nr,or,cr],he=>{ae=oe(ae,he," ")}),J&&wt?J.createHTML(ae):ae},y.setConfig=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vr(C),hr=!0},y.clearConfig=function(){je=null,hr=!1},y.isValidAttribute=function(C,f,m){je||vr({});const v=V(C),M=V(f);return la(v,M,m)},y.addHook=function(C,f){typeof f=="function"&&P(ee[C],f)},y.removeHook=function(C,f){if(f!==void 0){const m=k(ee[C],f);return m===-1?void 0:I(ee[C],m,1)[0]}return b(ee[C])},y.removeHooks=function(C){ee[C]=[]},y.removeAllHooks=function(){ee=Us()},y}var Uc=zs();return Uc})})(hs);const eo=hs.exports,mt=(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=N(class extends D{constructor(){super();d(this,"adSource","Custom");d(this,"adClientResponseItem");d(this,"adContainerId",K());d(this,"searchTerm");d(this,"isSearchInProgress",!1);d(this,"core");d(this,"intersectionObserver");d(this,"storeUnsubscribe");d(this,"adContainerRenderedTimeout");d(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(){const r=this.adClientResponseItem;if(r.admAd)return i("div",{class:"searchcraft-adm-ad"},i("a",{class:"searchcraft-adm-ad-link",href:r.admAd.click_url},r.admAd.image_url&&i("div",{class:"searchcraft-adm-ad-image-wrapper"},i("img",{alt:r.admAd.term||"image",src:r.admAd.image_url,class:"searchcraft-adm-ad-image"})),i("div",{class:"searchcraft-adm-ad-content"},i("p",{class:"searchcraft-adm-ad-content-title"},r.admAd.term),r.admAd.price&&i("p",{class:"searchcraft-adm-ad-content-subtitle"},r.admAd.price))))}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:mt})),i("div",{class:"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 i("div",{class:r})}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;var fs={exports:{}};/*!
21
21
  Copyright (c) 2018 Jed Watson.
22
22
  Licensed under the MIT License (MIT), see
23
23
  http://jedwatson.github.io/classnames
24
- */(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})()})(fs);const ie=fs.exports,no=F(class extends O{constructor(){super();d(this,"hierarchy","primary");d(this,"disabled",!1);d(this,"icon");d(this,"iconOnly",!1);d(this,"iconPosition","left");d(this,"label","Search");d(this,"type","button");d(this,"buttonClick");d(this,"handleButtonClick",()=>{this.buttonClick.emit()});this.__registerHost(),this.buttonClick=Ce(this,"buttonClick")}render(){return i("button",{key:"e54b4566e0286265bc0c8b6bb4e9ef26108575da","aria-label":this.label,class:ie("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:i(en,null,this.iconPosition==="left"&&this.icon,i("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,no);break}})}const oo=vt,co=F(class extends O{constructor(){super(),this.__registerHost()}render(){return i("div",{key:"d42f7abf8dfb2620622b8012d868d32f04b2f354",class:"searchcraft-error-message"},i("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,co);break}})}const io=bt;function ds(e,t){const r={...e};for(const s in t)t.hasOwnProperty(s)&&(t[s]instanceof Object&&e[s]instanceof Object?r[s]=ds(e[s],t[s]):r[s]=t[s]);return r}function lo(e){return e.filter((t,r,s)=>!s.some((a,o)=>o!==r&&a.includes(t)))}function ps(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 uo(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 ms(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=>ms(r))),t}function ho(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 fo(e,t,r){const s=t[e],a=r[e],o={count:0,path:"/",children:s},n={count:0,path:"/",children:a},c=ps(o),u=ps(n),h=ho(c,u),l=ds(h,u),p=uo(l),m=ms(p);return{[e]:m.children}}const po=F(class extends O{constructor(){super();d(this,"fieldName","");d(this,"facetSelectionUpdated");d(this,"baseFacetRoot");d(this,"facetRoot");d(this,"selectedPaths",{});d(this,"lastTimeTaken");d(this,"hasNewSearchTerm",!1);d(this,"lastSearchTerm");d(this,"lastSearchMode");d(this,"lastSortType");d(this,"unsubscribe");d(this,"searchStore",$.getState());d(this,"formatLabel",r=>{const s=r.path.replace(/^\//,""),a=r.count;return`${s.replace(/-/g," ").replace(/\b\w/g,o=>o.toUpperCase())} (${a})`});d(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=Ce(this,"facetSelectionUpdated")}handleStateUpdate(r){const s=r.searchResponseFacetPrime,a=r.searchResponseTimeTaken;if(this.fieldName){if((r.searchTerm!==this.lastSearchTerm||r.searchMode!==this.lastSearchMode||r.sortType!==this.lastSortType)&&(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=fo(this.fieldName,this.baseFacetRoot,o))}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=lo(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 i("div",{class:"searchcraft-facet-list"},!r&&i("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 i("div",{key:a.path,class:"searchcraft-facet-list-item"},i("label",{class:"searchcraft-facet-list-checkbox-label"},i("div",{class:"searchcraft-facet-list-checkbox-input-wrapper"},i("input",{class:"searchcraft-facet-list-checkbox-input",checked:this.selectedPaths[a.path],onChange:c=>this.handleCheckboxChange(a.path),type:"checkbox"}),o?i("div",{class:"searchcraft-facet-list-checkbox-input-dash-icon"},i("svg",{width:"14",height:"3",viewBox:"0 0 14 3",fill:"none"},i("title",null,"Checkbox dash"),i("line",{x1:"1.5",y1:"1.5",x2:"12.5",y2:"1.5",stroke:"white","stroke-width":"3","stroke-linecap":"round"}))):i("div",{class:"searchcraft-facet-list-checkbox-input-check-icon"},i("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i("title",null,"Checkbox check"),i("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&&i("div",{class:"searchcraft-facet-child-list"},a.children.map(c=>i("label",{key:c.path,class:"searchcraft-facet-list-checkbox-label searchcraft-facet-child-list-checkbox-label",style:{display:this.selectedPaths[a.path]?"flex":"none"}},i("div",{class:"searchcraft-facet-list-checkbox-input-wrapper searchcraft-facet-child-list-checkbox-input-wrapper"},i("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"}),i("div",{class:"searchcraft-facet-list-checkbox-input-check-icon searchcraft-facet-child-list-checkbox-input-check-icon"},i("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i("title",null,"Checkbox check"),i("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],hasNewSearchTerm:[32],lastSearchTerm:[32],lastSearchMode:[32],lastSortType:[32],unsubscribe:[32]}]);function gs(){if(typeof customElements>"u")return;["searchcraft-facet-list"].forEach(t=>{switch(t){case"searchcraft-facet-list":customElements.get(t)||customElements.define(t,po);break}})}const mo=gs;function qe(e,t){if(e&&t)return t.fieldNames.map(r=>{let s=e[r.fieldName];if(s)switch(r.dataType){case"date":{s=go(s);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 vs(e){switch(e){case"hour":return 36e5;case"day":return 864e5;case"month":return 2592e6;case"year":return 31536e6;default:return 36e5}}function bs(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function go(e){const t=new Date,r=new Date(e),s=Math.floor((t.getTime()-r.getTime())/1e3),a=Math.floor(s/60),o=Math.floor(a/60),n=Math.floor(o/24),c=Math.floor(n/365);return a<60?`${a}m ago`:o<24?`${o}h ago`:n<365?`${n}d ago`:`${c}y ago`}const vo=F(class extends O{constructor(){super();d(this,"max",100);d(this,"min",0);d(this,"granularity",vs("month"));d(this,"dataType","number");d(this,"endValue",this.max);d(this,"startValue",this.min);d(this,"lastFocusedHandle","max");d(this,"rangeChanged");d(this,"emitUpdate",async()=>{var r;(r=this.rangeChanged)==null||r.emit({startValue:this.startValue,endValue:this.endValue})});d(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}`)});d(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=Ce(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 i("div",{key:"9225b18ce2f40246837d183fcefdd0be7cc22383",class:"searchcraft-slider"},i("div",{key:"8078c1eda2ceb781282f59216915896fdbe2a8d3",class:"searchcraft-slider-range"},i("div",{key:"6a6bafa9f7abf41ab24f020cd291a4a08c618afb",class:"searchcraft-slider-active-range",style:{left:`${a}%`,width:`${o-a}%`}}),i("input",{key:"f07a91d441d277b8e9eba34e39093393a44bbf53",class:ie("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}),i("input",{key:"0637ea5fe123abe1d77c540b347c78fc8ad3d281",class:ie("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})),i("div",{key:"b62f8d8485915dddefb7ca29f62b4a96d70470c5",class:"searchcraft-slider-label"},i("span",{key:"fd5d32172ce53d93b858ca54c17b12b80fcdde1d",class:"searchcraft-slider-start-label"},n),i("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 ys(){if(typeof customElements>"u")return;["searchcraft-slider"].forEach(t=>{switch(t){case"searchcraft-slider":customElements.get(t)||customElements.define(t,vo);break}})}const bo=F(class extends O{constructor(){super();d(this,"label","Toggle");d(this,"subLabel");d(this,"toggleUpdated");d(this,"isActive",!1);d(this,"unsubscribe");d(this,"lastSearchTerm");d(this,"handleToggle",async()=>{var r;this.isActive=!this.isActive,(r=this.toggleUpdated)==null||r.emit(this.isActive)});this.__registerHost(),this.toggleUpdated=Ce(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 i("div",{key:"f8a751315daf6bcdc0d47bc4fc802bc4615e565f",class:ie("searchcraft-toggle-button",{"searchcraft-toggle-button-active":this.isActive})},i("div",{key:"aaa92d7c1aebe241a163a1fba7cd1f8d3804286d"},i("p",{key:"068b82b17a99bf55ad17818d0dd4c7e95858317b",class:"searchcraft-toggle-button-label"},this.label),this.subLabel&&i("p",{key:"39e43e3fad6a2ab09d20f37c6d6865cede3701d9",class:"searchcraft-toggle-button-sub-label"},this.subLabel)),i("button",{key:"5ae352870d4a01c430389e75b967b2eb9d3fa5f7",class:"searchcraft-toggle-button-background",onClick:this.handleToggle,type:"button"},i("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 Ss(){if(typeof customElements>"u")return;["searchcraft-toggle-button"].forEach(t=>{switch(t){case"searchcraft-toggle-button":customElements.get(t)||customElements.define(t,bo);break}})}const yo=F(class extends O{constructor(){super();d(this,"items",[]);d(this,"unsubscribe");d(this,"lastSearchTerm");d(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){this.searchStore.setSortType(r?"desc":"asc"),this.searchStore.search()}render(){return i("div",{key:"22344fe9d0554894bff8c2c6afe12661bf7f20d0",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=vs(s.options.granularity);return i("div",{class:"searchcraft-filter-panel-section"},i("p",{class:"searchcraft-filter-panel-label"},r.label),i("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 i("div",{class:"searchcraft-filter-panel-section"},i("p",{class:"searchcraft-filter-panel-label"},r.label),i("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 i("div",{class:"searchcraft-filter-panel-section"},i("p",{class:"searchcraft-filter-panel-label"},r.label),i("searchcraft-facet-list",{fieldName:s.fieldName,onFacetSelectionUpdated:a=>{this.handleFacetSelectionUpdated(s.fieldName,a.detail.paths)}}))}case"exactMatchToggle":{const s=r;return i("searchcraft-toggle-button",{label:s.label,subLabel:s.options.subLabel,onToggleUpdated:a=>{this.handleExactMatchToggleUpdated(a.detail)}})}case"mostRecentToggle":{const s=r;return i("searchcraft-toggle-button",{label:s.label,subLabel:s.options.subLabel,onToggleUpdated:a=>{this.handleMostRecentToggleUpdated(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,yo);break;case"searchcraft-facet-list":customElements.get(t)||gs();break;case"searchcraft-slider":customElements.get(t)||ys();break;case"searchcraft-toggle-button":customElements.get(t)||Ss();break}})}const ko=So,Co=F(class extends O{constructor(){super();d(this,"inputLabelClassName","");d(this,"label","");this.__registerHost()}render(){return i("label",{key:"3622c616d480e57b1dfaa2d61637a30b843cb968",class:ie("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 wo=F(class extends O{constructor(){super();d(this,"autoSearch",!0);d(this,"buttonPlacement","none");d(this,"buttonLabel");d(this,"inputLabel");d(this,"placeholderValue","Enter Search");d(this,"inputFocus");d(this,"inputBlur");d(this,"inputInit");d(this,"inputValue","");d(this,"searchTerm","");d(this,"error",!1);d(this,"core");d(this,"searchStore",$.getState());d(this,"handleOnInput",r=>{const s=r.target;this.inputValue=s.value,this.autoSearch&&this.performSearch(s.value)});d(this,"performSearch",async r=>{if(r!==$.getState().searchTerm){this.searchTerm=r.trim(),this.error=!1,this.searchStore.setSearchTerm(this.searchTerm);try{await this.searchStore.search()}catch(s){console.log(s),this.error=!0}}});d(this,"handleClearInput",()=>{this.inputValue="",this.searchTerm="",this.searchStore.setSearchTerm(""),this.searchStore.setSearchClientResponseItems([]),this.error=!1});d(this,"handleFormSubmit",async r=>{r.preventDefault(),await this.performSearch(this.searchTerm)});this.__registerHost(),this.inputFocus=Ce(this,"inputFocus"),this.inputBlur=Ce(this,"inputBlur"),this.inputInit=Ce(this,"inputInit")}init(){var r;this.core&&(this.searchStore.initialize(this.core),(r=this.inputInit)==null||r.emit())}connectedCallback(){this.init()}onCoreChange(){this.init()}render(){const r=this.inputValue.length>0,s=ie("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 i("form",{key:"488789f41d06780cf1cb3ab55013995fd16985bc",class:"searchcraft-input-form",onSubmit:this.handleFormSubmit},i("div",{key:"abde33425daaa82f068d7bb31fca8f94d55b79e5",class:s,style:o},i("div",{key:"d2ee4a97e3384550160e3d77c73167e725b78910",class:"searchcraft-input-form-button"},i("searchcraft-button",{key:"6ca8bffa156a032dbddce0728f682f7e713b00b3",onButtonClick:this.handleFormSubmit,label:this.buttonLabel})),this.inputLabel&&i("div",{key:"760f54d2ca7401fdd3151f0baa65163ba447aad4",class:"searchcraft-input-form-label"},i("searchcraft-input-label",{key:"9b1e1fcc8559ba7417edc23cd495c27c44e9d394",label:this.inputLabel})),this.error&&i("div",{key:"e2ba421228fe3daa1b60b3bda963be7b8fe5e2dd",class:"searchcraft-input-form-error-message"},i("searchcraft-error-message",{key:"07655cb3197b9bd20fe6feb610a58b5679a82c33"},"Something went wrong.")),i("div",{key:"93c20245f8f1bcb1656e88d7c26644ab41dd5000",class:"searchcraft-input-form-input-wrapper"},i("input",{key:"2a3748be8434ac01ebae9907e0a762e868d5d10f",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.handleOnInput(n)},placeholder:this.placeholderValue,type:"text",value:this.inputValue}),i("div",{key:"c9eb1230b10d3bb91ffe0e43481ac3d1a1362b29",class:"searchcraft-input-form-input-icon"},i("svg",{key:"68b3d2c336cc99faacb28e0a98cd93f88f9df13b",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"},i("title",{key:"da56c06e543f45c59ef0f5922bd7d61fef448630"},"Search icon"),i("path",{key:"ae0bcf6b95f861155cf0023d72a33f6d437b67dd",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&&i("button",{key:"5663606a70f3c4afd44406e6e550dc44573c5421",type:"button",class:"searchcraft-input-form-clear-button",onClick:this.handleClearInput},i("svg",{key:"15f316ed61153f1054e3c5ac6dffca48b702ac81",class:"searchcraft-input-form-clear-icon",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"icon-title"},i("title",{key:"3e93ab9c95db6a7c012a9b25875aa78f33984ce6"},"Clear icon"),i("path",{key:"b31b09b4a928e113720a13e9826e1d462c4e65bd",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,wo);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 xo=ks,Eo=Kt,Ro=F(class extends O{constructor(){super();d(this,"searchTerm");d(this,"searchResultsPerPage");d(this,"searchResultsPage");d(this,"searchResultsCount");d(this,"searchResultsPagesCount",1);d(this,"searchResultsRangeMin",1);d(this,"searchResultsRangeMax",1);d(this,"setSearchResultsPage",()=>{});d(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 i("li",null,i("button",{class:ie("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)?i("li",null,i("button",{class:ie("searchcraft-pagination-item",{"searchcraft-pagination-item-active":this.searchResultsPage===r}),onClick:()=>this.handleGoToPage(r),type:"button"},r)):i("li",null,i("span",{class:"searchcraft-pagination-item"},"..."))}renderMiddlePaginationItem(){if(!(this.searchResultsPagesCount<=3))return this.searchResultsPagesCount<=5||this.searchResultsPage<=3||this.searchResultsPage>=this.searchResultsPagesCount-2?i("li",null,i("button",{class:ie("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)):i("li",null,i("span",{class:"searchcraft-pagination-item searchcraft-pagination-item-active"},this.searchResultsPage))}render(){if(!(!this.searchTerm||this.searchResultsPagesCount<=1))return i("div",{class:"searchcraft-pagination"},i("div",{class:"searchcraft-pagination-control"},i("searchcraft-button",{disabled:this.searchResultsPage===1,hierarchy:"tertiary",onButtonClick:()=>this.handleGoToPage(Math.max(1,this.searchResultsPage-1)),label:"Previous",iconPosition:"left",icon:i("svg",{class:"searchcraft-button-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("title",null,"Previous page icon"),i("path",{d:"M12.5 15L7.5 10L12.5 5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),iconOnly:!0})),i("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)),i("div",{class:"searchcraft-pagination-control"},i("searchcraft-button",{disabled:this.searchResultsPage===this.searchResultsPagesCount,hierarchy:"tertiary",onButtonClick:()=>{this.handleGoToPage(Math.min(this.searchResultsPagesCount,this.searchResultsPage+1))},label:"Next",iconPosition:"right",icon:i("svg",{class:"searchcraft-button-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("title",null,"Next page icon"),i("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,Ro);break;case"searchcraft-button":customElements.get(t)||vt();break}})}const To=Po,$o=F(class extends O{constructor(){super();d(this,"template");d(this,"type");d(this,"hotkey");d(this,"hotkeyModifier");d(this,"hotkeyModifierSymbol");d(this,"isPopoverVisible");d(this,"userAgent");d(this,"unsubscribe",()=>{});d(this,"renderOptionSymbol",()=>i("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},i("title",null,"Option key"),i("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"}),i("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"})));d(this,"renderCtrlSymbol",()=>i("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},i("title",null,"Ctrl key"),i("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"})));d(this,"renderWindowsMetaSymbol",()=>i("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},i("title",null,"Windows meta key"),i("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"})));d(this,"renderMacMetaSymbol",()=>i("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},i("title",null,"Mac meta key"),i("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 i("div",{class:"searchcraft-popover-button-wrapper"},i("div",{class:"searchcraft-popover-button-input"},i("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"},i("title",null,"Search icon"),i("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"})),i("span",null,"Search")),i("div",{class:"searchcraft-popover-button-keycaps"},i("div",{class:"searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-modifier"},i("span",null,this.hotkeyModifierSymbol)),i("div",{class:"searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-key"},i("span",null,this.hotkey))))}renderSlot(){switch(this.type){case"skeuomorphic":return this.renderSkeuomorphicSlot();default:return i("div",null,i("slot",null))}}render(){return i("button",{key:"d24721368deab8e6e9ade770170712f5b8504364",class:`searchcraft-popover-button ${this.type?` searchcraft-popover-button-${this.type}`:""}`,onClick:this.handleOnClick.bind(this),type:"button"},typeof this.template<"u"?this.template(this.isPopoverVisible,{html:mt}):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,$o);break}})}const Ao=_o,Io=F(class extends O{constructor(){super();d(this,"searchResultsCount");d(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 i("footer",{key:"e1344ae185ef1b8a83bb69ba88e2952ab1c75e70",class:"searchcraft-popover-footer"},i("p",{key:"51874f4ce490e4f164b999e8c6f89710702e73bd",class:"searchcraft-popover-footer-results-info"},this.searchResultsCount?`${bs(this.searchResultsCount)} Results Found`:" "),i("a",{key:"5476e24cc3fa7fa265bd2b5cba43c8a70d8609ca",class:"searchcraft-popover-footer-link",href:"https://searchcraft.io/",target:"_blank",rel:"noreferrer"},i("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"},i("title",{key:"67813a626922d709a4409028cb0f3f1ce3e2cfe8"},"Powered by Searchcraft"),i("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 Cs(){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 Mo=Cs,Lo=F(class extends O{constructor(){super();d(this,"item");d(this,"popoverResultMappings");d(this,"documentPosition",0);d(this,"title");d(this,"subtitle");d(this,"href");d(this,"imageSource");d(this,"imageAlt");d(this,"handleLinkClick",()=>{var a;const r=$.getState(),s=r.getSearchcraftInstance();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=qe(r,(s=this.popoverResultMappings)==null?void 0:s.title),this.subtitle=qe(r,(a=this.popoverResultMappings)==null?void 0:a.subtitle),this.href=qe(r,(o=this.popoverResultMappings)==null?void 0:o.href),this.imageSource=qe(r,(n=this.popoverResultMappings)==null?void 0:n.imageSource),this.imageAlt=qe(r,(c=this.popoverResultMappings)==null?void 0:c.imageAlt)}connectedCallback(){this.item&&this.mapValuesFromDocument(this.item.document)}disconnectedCallback(){}render(){return i("div",{key:"2ad974b85e385f99724f9ac85d646cc82208e24a",class:"searchcraft-popover-list-item"},i("a",{key:"68da0953d5efa18fd003c22df5321be8096bace6",class:"searchcraft-popover-list-item-link",href:this.href,onClick:this.handleLinkClick.bind(this)},this.imageSource&&i("div",{key:"49c99c8b9b5c8ca74b7e656e9ff87169ed42d305",class:"searchcraft-popover-list-item-image-wrapper"},i("img",{key:"04022544e1d64e2d48b86a9d27e14e83e7ff43df",alt:this.imageAlt,src:this.imageSource,class:"searchcraft-popover-list-item-image"})),i("div",{key:"eca661cccf12e41dea5b0a70637864763a579336",class:"searchcraft-popover-list-item-content"},this.title&&i("p",{key:"c5cc621f946b521fb7c4b1fc7a8eb1d00b5c6d3f",class:"searchcraft-popover-list-item-content-title"},this.title),this.subtitle&&i("p",{key:"595cb3dea62af52dd1df0e7515dd186688d695db",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 Qt(){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 Oo=F(class extends O{constructor(){super();d(this,"popoverResultMappings");d(this,"searchClientResponseItems");d(this,"adClientResponseItems");d(this,"searchResultsPage");d(this,"searchResultsPerPage");d(this,"config",(Is=$.getState().core)==null?void 0:Is.config);this.__registerHost()}renderWithADMAds(){var r,s;return i("div",{class:"searchcraft-popover-list-view"},(r=this.adClientResponseItems)==null?void 0:r.map(a=>i("searchcraft-ad",{adClientResponseItem:a,adContainerId:Q(),adSource:"adMarketplace",key:a.id})),(s=this.searchClientResponseItems)==null?void 0:s.map((a,o)=>i("searchcraft-popover-list-item",{item:a,key:a.id,popoverResultMappings:this.popoverResultMappings,documentPosition:this.searchResultsPerPage*(this.searchResultsPage-1)+o})))}renderWithCustomAds(){var u,h,l,p;const r=[],s=((u=this.config)==null?void 0:u.customAdInterstitialInterval)||0,a=((h=this.config)==null?void 0:h.customAdInterstitialQuantity)||1,o=((l=this.config)==null?void 0:l.customAdStartQuantity)||0,n=((p=this.config)==null?void 0:p.customAdEndQuantity)||0,c=this.searchClientResponseItems||[];for(let m=0;m<o;m++)r.push(i("searchcraft-ad",{adSource:"Custom",adContainerId:Q(),key:`${m}-ad`}));c.forEach((m,b)=>{if(s&&b%s===0&&b+s<c.length&&b>=s)for(let v=0;v<a;v++)r.push(i("searchcraft-ad",{adSource:"Custom",adContainerId:Q(),key:`${m.id}-ad-${v}`}));r.push(i("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(i("searchcraft-ad",{adSource:"Custom",adContainerId:Q(),key:`${m}-ad`}));return i("div",{class:"searchcraft-popover-list-view"},r)}renderWithNativoAds(){var h,l,p,m,b;const r=[],s=((h=this.config)==null?void 0:h.nativoAdInterstialStartIndex)||0,a=((l=this.config)==null?void 0:l.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,u=this.searchClientResponseItems||[];for(let v=0;v<n;v++)r.push(i("searchcraft-ad",{adSource:"Nativo",adContainerId:Q(),key:`${v}-ad`}));u.forEach((v,P)=>{if(a&&(P+s)%a===0&&P+a<u.length&&P>=a)for(let N=0;N<o;N++)r.push(i("searchcraft-ad",{adSource:"Nativo",adContainerId:Q(),key:`${v.id}-ad-${N}`}));r.push(i("searchcraft-popover-list-item",{item:v,key:v.id,popoverResultMappings:this.popoverResultMappings,documentPosition:this.searchResultsPerPage*(this.searchResultsPage-1)+P}))});for(let v=0;v<c;v++)r.push(i("searchcraft-ad",{adSource:"Nativo",adContainerId:Q(),key:`${v}-ad`}));return i("div",{class:"searchcraft-popover-list-view"},r)}renderWithNoAds(){var r;return i("div",{class:"searchcraft-popover-list-view"},(r=this.searchClientResponseItems)==null?void 0:r.map((s,a)=>i("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 ws(){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,Oo);break;case"searchcraft-ad":customElements.get(t)||gt();break;case"searchcraft-popover-list-item":customElements.get(t)||Qt();break}})}const Fo=F(class extends O{constructor(){super();d(this,"type","inline");d(this,"popoverResultMappings");d(this,"hotkey","k");d(this,"hotkeyModifier","meta");d(this,"isPopoverVisibleInState",!1);d(this,"unsubscribe");d(this,"searchClientResponseItems",[]);d(this,"adClientResponseItems",[]);d(this,"searchTerm");d(this,"isFocused",!1);d(this,"breakpointSm",576);d(this,"breakpointMd",768);d(this,"breakpointLg",992);d(this,"searchResultsPage");d(this,"searchResultsPerPage");d(this,"modalElement");d(this,"handleDocumentClick",r=>{this.hostElement.contains(r.target)||(this.isFocused=!1)});d(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}});d(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 i("div",{class:ie("searchcraft-popover-form searchcraft-popover-form-inline",{"searchcraft-popover-form-active":r})},i("div",{class:"searchcraft-popover-form-input searchcraft-popover-form-inline-input"},i("searchcraft-input-form",{onInputFocus:this.handleInputFocus.bind(this)})),r&&i("div",{class:"searchcraft-popover-form-inline-wrapper"},i("searchcraft-popover-list-view",{popoverResultMappings:this.popoverResultMappings,searchClientResponseItems:this.searchClientResponseItems,adClientResponseItems:this.adClientResponseItems,searchResultsPage:this.searchResultsPage,searchResultsPerPage:this.searchResultsPerPage}),i("searchcraft-popover-footer",null)))}renderModalPopover(){if(this.isPopoverVisibleInState)return i("div",{class:ie("searchcraft-popover-form searchcraft-popover-form-modal",{"searchcraft-popover-form-active":this.hasResultsToShow})},i("div",{class:"searchcraft-popover-form-modal-backdrop",onClick:this.handleModalBackdropClick}),i("div",{class:"searchcraft-popover-form-modal-wrapper"},i("div",{class:"searchcraft-popover-form-input searchcraft-popover-form-modal-input"},i("searchcraft-input-form",{onInputFocus:this.handleInputFocus.bind(this),onInputInit:this.handleInputInit.bind(this)}),i("button",{type:"button",class:"searchcraft-popover-form-input-cancel-button searchcraft-popover-form-modal-input-cancel-button",onClick:this.handleCancelButtonClick.bind(this)},"Cancel")),this.hasResultsToShow&&i("searchcraft-popover-list-view",{popoverResultMappings:this.popoverResultMappings,searchClientResponseItems:this.searchClientResponseItems,adClientResponseItems:this.adClientResponseItems,searchResultsPage:this.searchResultsPage,searchResultsPerPage:this.searchResultsPerPage}),i("searchcraft-popover-footer",null)))}renderFullscreenPopover(){if(this.isPopoverVisibleInState)return i("div",{class:ie("searchcraft-popover-form searchcraft-popover-form-fullscreen",{"searchcraft-popover-form-active":this.hasResultsToShow})},i("div",{class:"searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input"},i("searchcraft-input-form",{onInputFocus:this.handleInputFocus.bind(this),onInputInit:this.handleInputInit.bind(this)}),i("button",{type:"button",class:"searchcraft-popover-form-input-cancel-button searchcraft-popover-form-fullscreen-input-cancel-button",onClick:this.handleCancelButtonClick.bind(this)},"Cancel")),this.hasResultsToShow&&i("searchcraft-popover-list-view",{popoverResultMappings:this.popoverResultMappings,searchClientResponseItems:this.searchClientResponseItems,adClientResponseItems:this.adClientResponseItems,searchResultsPage:this.searchResultsPage,searchResultsPerPage:this.searchResultsPerPage}),i("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,Fo);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)||Cs();break;case"searchcraft-popover-form":customElements.get(t)||xs();break;case"searchcraft-popover-list-item":customElements.get(t)||Qt();break;case"searchcraft-popover-list-view":customElements.get(t)||ws();break}})}const Do=xs,No=Qt,Ho=ws,Uo=F(class extends O{constructor(){super();d(this,"template");d(this,"searchTerm");d(this,"searchResultsPage");d(this,"searchResultsPerPage");d(this,"searchResultsCount");d(this,"count",0);d(this,"range",[0,0]);d(this,"responseTime","0");d(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:i("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:mt}):`${bs(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 zo(){if(typeof customElements>"u")return;["searchcraft-results-info"].forEach(t=>{switch(t){case"searchcraft-results-info":customElements.get(t)||customElements.define(t,Uo);break}})}const Vo=zo,jo=F(class extends O{constructor(){super();d(this,"item");d(this,"index");d(this,"documentPosition",0);d(this,"template");d(this,"templateHtml");d(this,"handleResultContainerClick",r=>{var l;const s=$.getState(),a=s.getSearchcraftInstance();if(!r.target)return;const n=r.target.closest("a");if(!n||!((l=this.hostElement)!=null&&l.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})});d(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:mt})}catch(s){console.error(`Invalid search result template: ${s}`)}}render(){if(this.item)return typeof this.template>"u"?i("div",{class:"searchcraft-search-result searchcraft-search-result-no-template",onClick:this.handleResultContainerClick,onKeyDown:this.handleKeyDown},Object.entries(this.item.document).map(([r,s])=>i("p",{key:r},i("strong",null,r),": ",s))):i("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 Bo=Es,Wo=F(class extends O{constructor(){super();d(this,"template");d(this,"searchTerm","");d(this,"searchClientResponseItems");d(this,"adClientResponseItems",[]);d(this,"searchResultsPerPage");d(this,"searchResultsPage");d(this,"isSearchInProgress",!0);d(this,"config");d(this,"unsubscribe",()=>{});this.__registerHost()}componentDidLoad(){var s;this.unsubscribe=$.subscribe(a=>this.handleStateChange(a));const r=$.getState();this.handleStateChange(r),this.searchClientResponseItems=r.searchClientResponseItems,this.searchTerm=r.searchTerm,this.config=(s=r.core)==null?void 0:s.config}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this)}handleStateChange(r){var s;this.searchClientResponseItems=[...r.searchClientResponseItems],this.adClientResponseItems=[...r.adClientResponseItems],this.searchTerm=r.searchTerm,this.searchResultsPage=r.searchResultsPage,this.searchResultsPerPage=r.searchResultsPerPage,this.config=(s=r.core)==null?void 0:s.config,this.isSearchInProgress=r.isSearchInProgress}renderEmptyState(){return i("div",{class:"searchcraft-search-results-empty-state"},i("slot",{name:"empty-search"}))}renderNoResultsFoundState(){return i("div",{class:"searchcraft-search-results"},i("div",{class:"searchcraft-search-results-error-message"},i("searchcraft-error-message",null,'No search results found for "',this.searchTerm,'" query.')))}renderWithADMAds(){var r,s;return i("div",{class:"searchcraft-search-results"},(r=this.adClientResponseItems)==null?void 0:r.map(a=>i("searchcraft-ad",{adSource:"adMarketplace",adClientResponseItem:a,adContainerId:Q(),key:a.id})),(s=this.searchClientResponseItems)==null?void 0:s.map((a,o)=>i("searchcraft-search-result",{key:a.id,"document-position":this.searchResultsPerPage*(this.searchResultsPage-1)+o,index:o,item:a,template:this.template})))}renderWithCustomAds(){var u,h,l,p;const r=[],s=((u=this.config)==null?void 0:u.customAdInterstitialInterval)||0,a=((h=this.config)==null?void 0:h.customAdInterstitialQuantity)||1,o=((l=this.config)==null?void 0:l.customAdStartQuantity)||0,n=((p=this.config)==null?void 0:p.customAdEndQuantity)||0,c=this.searchClientResponseItems||[];for(let m=0;m<o;m++)r.push(i("searchcraft-ad",{adSource:"Custom",adContainerId:Q(),key:`${m}-ad`}));c.forEach((m,b)=>{if(s&&b%s===0&&b+s<c.length&&b>=s)for(let v=0;v<a;v++)r.push(i("searchcraft-ad",{adSource:"Custom",adContainerId:Q(),key:`${m.id}-ad-${v}`}));r.push(i("searchcraft-search-result",{key:m.id,"document-position":this.searchResultsPerPage*(this.searchResultsPage-1)+b,index:b,item:m,template:this.template}))});for(let m=0;m<n;m++)r.push(i("searchcraft-ad",{adSource:"Custom",adContainerId:Q(),key:`${m}-ad`}));return i("div",{class:"searchcraft-search-results"},r)}renderWithNativoAds(){var h,l,p,m,b;const r=[],s=((h=this.config)==null?void 0:h.nativoAdInterstialStartIndex)||0,a=((l=this.config)==null?void 0:l.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,u=this.searchClientResponseItems||[];for(let v=0;v<n;v++)r.push(i("searchcraft-ad",{adSource:"Nativo",adContainerId:Q(),key:`${v}-ad`}));u.forEach((v,P)=>{if(a&&(P+s)%a===0&&P+a<u.length&&P>=a)for(let N=0;N<o;N++)r.push(i("searchcraft-ad",{adSource:"Nativo",adContainerId:Q(),key:`${v.id}-ad-${N}`}));r.push(i("searchcraft-search-result",{key:v.id,"document-position":this.searchResultsPerPage*(this.searchResultsPage-1)+P,index:P,item:v,template:this.template}))});for(let v=0;v<c;v++)r.push(i("searchcraft-ad",{adSource:"Nativo",adContainerId:Q(),key:`${v}-ad`}));return i("div",{class:"searchcraft-search-results"},r)}renderWithNoAds(){var r;return i("div",{class:"searchcraft-search-results"},(r=this.searchClientResponseItems)==null?void 0:r.map((s,a)=>i("searchcraft-search-result",{key:s.id,"document-position":this.searchResultsPerPage*(this.searchResultsPage-1)+a,index:a,item:s,template:this.template})))}render(){var r;if(this.searchTerm.trim()==="")return this.renderEmptyState();if(this.searchTerm.length>0&&(this.searchClientResponseItems||[]).length===0&&!this.isSearchInProgress)return this.renderNoResultsFoundState();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()}}},[4,"searchcraft-search-results",{template:[16],searchTerm:[32],searchClientResponseItems:[32],adClientResponseItems:[32],searchResultsPerPage:[32],searchResultsPage:[32],isSearchInProgress:[32],config:[32]}]);function Go(){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,Wo);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 qo=Go,Yo=F(class extends O{constructor(){super();d(this,"caption");d(this,"disabled",!1);d(this,"inputId");d(this,"label");d(this,"labelId");d(this,"name");d(this,"options",[]);d(this,"selectChange");d(this,"searchResultsPerPage");d(this,"setSearchResultsPage",()=>{});d(this,"setSearchResultsPerPage",()=>{});d(this,"handleSelectChange",r=>{this.selectChange.emit(r.target.value)});this.__registerHost(),this.selectChange=Ce(this,"selectChange")}handleGoToPage(r){this.setSearchResultsPage(r)}render(){return i("div",{key:"15ecbf48c824a161cd83bdab99dace8e44f1ab39",class:"searchcraft-select"},this.label&&i("label",{key:"aba433ae9c27c9405099cffcef923c3ad22d7fda",class:"searchcraft-select-label",id:this.labelId||`${this.inputId}-label`,htmlFor:this.inputId},this.label),i("div",{key:"8df8a2ff05924c9c55cdd6e3827cd927cddab82a",class:"searchcraft-select-input-wrapper"},i("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})=>i("option",{key:s,value:s,selected:a},r))),i("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"},i("title",{key:"bced6b62378491d1d1c629b602d7d033d912c761"},"Select dropdown icon"),i("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&&i("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 Rs(){if(typeof customElements>"u")return;["searchcraft-select"].forEach(t=>{switch(t){case"searchcraft-select":customElements.get(t)||customElements.define(t,Yo);break}})}const Zo=F(class extends O{constructor(){super();d(this,"increment",20);d(this,"searchTerm");d(this,"searchResultsPage");d(this,"searchResultsPerPage");d(this,"searchResultsCount");d(this,"searchResultsPagesCount");d(this,"initialSearchResultsPerPage");d(this,"setSearchResultsPerPage",()=>{});d(this,"setSearchResultsPage",()=>{});d(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 i("div",{class:"searchcraft-search-results-per-page"},i("div",{class:"searchcraft-search-results-per-page-select"},i("label",{class:"searchcraft-search-results-per-page-select-label",htmlFor:"searchcraft-search-results-per-page-select-input"},"Results Per Page"),i("div",{class:"searchcraft-search-results-per-page-select-input"},i("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,Zo);break;case"searchcraft-select":customElements.get(t)||Rs();break}})}const Qo=Ko,Xo=Rs,Jo=ys,ec=`[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-adm-ad{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-ad:last-child .searchcraft-adm-ad{border-bottom:none}.searchcraft-adm-ad-link{align-items:flex-start;background-color:rgb(from blue r g b/5%);color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-adm-ad-link:focus,.searchcraft-adm-ad-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-adm-ad-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-adm-ad-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-adm-ad-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-adm-ad-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-adm-ad-content-title,.searchcraft-adm-ad-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-adm-ad-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-adm-ad-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-search-result{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-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-brand);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}.searchcraft-popover-form-input-cancel-button{background:none;border:none;cursor:pointer}.searchcraft-popover-form-modal-input,.searchcraft-popover-form-fullscreen-input{padding: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-popover-list-view{flex-shrink:1;min-height:0;overflow:auto;padding:0 24px}.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);border-radius:var(--sc-border-radius-2xl);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{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-input-cancel-button{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px);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-input-cancel-button{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-footer{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;background-color:var(--sc-surface-neutral-secondary);display:flex;gap:8px;justify-content:space-between;line-height:1;padding:20px 32px;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}.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
- `,tc=F(class extends O{constructor(){super(),this.__registerHost()}render(){return i("style",{key:"912dbad4e0aa5be21ed638cd20c276b530991454"},ec)}},[0,"searchcraft-theme"]);function rc(){if(typeof customElements>"u")return;["searchcraft-theme"].forEach(t=>{switch(t){case"searchcraft-theme":customElements.get(t)||customElements.define(t,tc);break}})}const sc=rc,ac=Ss,Ps=()=>{ao(),oo(),io(),mo(),ko(),xo(),Eo(),To(),Ao(),Mo(),Do(),No(),Ho(),Vo(),Bo(),Qo(),qo(),Xo(),Jo(),sc(),ac()};globalThis.__scDefineCustomElements__=Ps;const Ts={name:"@searchcraft/vue-sdk",version:"0.10.1"},Xt="routerLink",$s="navManager",nc="router",oc="aria",Ye=Symbol(),_s={default:Ye},As=e=>(e==null?void 0:e.split(" "))||[],cc=(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)},ge=(e,t,r=[],s=[],a,o)=>{t!==void 0&&t();const n=j.defineComponent((c,{attrs:u,slots:h,emit:l})=>{var q;const p=j.ref(),m=new Set(As(u.class)),b=j.getCurrentInstance(),P=((q=b==null?void 0:b.appContext)==null?void 0:q.provides[$s])?j.inject($s):void 0,N=_=>{const{routerLink:ve}=c;if(ve!==Ye)if(P!==void 0){_.preventDefault();let oe={event:_};for(const Re in c){const H=c[Re];c.hasOwnProperty(Re)&&Re.startsWith(nc)&&H!==Ye&&(oe[Re]=H)}P.navigate(oe)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{c[a],As(u.class).forEach(H=>{m.add(H)});const _=c.onClick,ve=H=>{_!==void 0&&_(H),H.defaultPrevented||N(H)};let oe={ref:p,class:cc(p,m),onClick:ve};for(const H in c){const se=c[H];(c.hasOwnProperty(H)&&se!==Ye||H.startsWith(oc))&&(oe[H]=se);const U="on"+H.slice(0,1).toUpperCase()+H.slice(1),Pe=u[U];p.value&&u.hasOwnProperty(U)&&"addEventListener"in p.value&&p.value.addEventListener(H,Pe)}return Xt in c&&c[Xt]!==Ye&&(oe={...oe,href:c[Xt]}),j.h(e,oe,h.default&&h.default())}});if(typeof n!="function"){let c=[],u={};u.ROUTER_LINK_VALUE=_s,r.forEach(h=>u[h]=_s),c=s,n.name=e,n.emits=c,n.props=u}return n},ic=ge("searchcraft-filter-panel",()=>{},["items"]),lc=ge("searchcraft-input-form",()=>{},["autoSearch","buttonPlacement","buttonLabel","inputLabel","placeholderValue","core","inputFocus","inputBlur","inputInit"],["inputFocus","inputBlur","inputInit"]),uc=ge("searchcraft-pagination",()=>{}),hc=ge("searchcraft-popover-button",()=>{},["template","type"]),fc=ge("searchcraft-popover-form",()=>{},["type","popoverResultMappings","hotkey","hotkeyModifier"]),dc=ge("searchcraft-results-info",()=>{},["template"]),pc=ge("searchcraft-search-results",()=>{},["template"]),mc=ge("searchcraft-search-results-per-page",()=>{},["increment"]),gc=ge("searchcraft-theme",()=>{}),vc=pc,bc=ic,yc=lc,Sc=hc,kc=fc,Cc=dc,wc=gc,xc=uc,Ec=mc;class Rc extends Ln{constructor(t){super(t,{sdkName:Ts.name,sdkVersion:Ts.version})}}Ps(),L.Searchcraft=Rc,L.SearchcraftFilterPanel=bc,L.SearchcraftInputForm=yc,L.SearchcraftPagination=xc,L.SearchcraftPopoverButton=Sc,L.SearchcraftPopoverForm=kc,L.SearchcraftResultsInfo=Cc,L.SearchcraftSearchResults=vc,L.SearchcraftSearchResultsPerPage=Ec,L.SearchcraftTheme=wc,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
24
+ */(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})()})(fs);const ie=fs.exports,ao=N(class extends D{constructor(){super();d(this,"hierarchy","primary");d(this,"disabled",!1);d(this,"icon");d(this,"iconOnly",!1);d(this,"iconPosition","left");d(this,"label","Search");d(this,"type","button");d(this,"buttonClick");d(this,"handleButtonClick",()=>{this.buttonClick.emit()});this.__registerHost(),this.buttonClick=we(this,"buttonClick")}render(){return i("button",{key:"e54b4566e0286265bc0c8b6bb4e9ef26108575da","aria-label":this.label,class:ie("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:i(en,null,this.iconPosition==="left"&&this.icon,i("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=N(class extends D{constructor(){super(),this.__registerHost()}render(){return i("div",{key:"d42f7abf8dfb2620622b8012d868d32f04b2f354",class:"searchcraft-error-message"},i("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 ds(e,t){const r={...e};for(const s in t)t.hasOwnProperty(s)&&(t[s]instanceof Object&&e[s]instanceof Object?r[s]=ds(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 ps(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 ms(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=>ms(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=ps(o),u=ps(n),h=uo(c,u),l=ds(h,u),p=lo(l),g=ms(p);return{[e]:g.children}}const fo=N(class extends D{constructor(){super();d(this,"fieldName","");d(this,"facetSelectionUpdated");d(this,"baseFacetRoot");d(this,"facetRoot");d(this,"selectedPaths",{});d(this,"lastTimeTaken");d(this,"hasNewSearchTerm",!1);d(this,"lastSearchTerm");d(this,"lastSearchMode");d(this,"lastSortType");d(this,"unsubscribe");d(this,"searchStore",_.getState());d(this,"formatLabel",r=>{const s=r.path.replace(/^\//,""),a=r.count;return`${s.replace(/-/g," ").replace(/\b\w/g,o=>o.toUpperCase())} (${a})`});d(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.lastSearchTerm||r.searchMode!==this.lastSearchMode||r.sortType!==this.lastSortType)&&(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))}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 i("div",{class:"searchcraft-facet-list"},!r&&i("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 i("div",{key:a.path,class:"searchcraft-facet-list-item"},i("label",{class:"searchcraft-facet-list-checkbox-label"},i("div",{class:"searchcraft-facet-list-checkbox-input-wrapper"},i("input",{class:"searchcraft-facet-list-checkbox-input",checked:this.selectedPaths[a.path],onChange:c=>this.handleCheckboxChange(a.path),type:"checkbox"}),o?i("div",{class:"searchcraft-facet-list-checkbox-input-dash-icon"},i("svg",{width:"14",height:"3",viewBox:"0 0 14 3",fill:"none"},i("title",null,"Checkbox dash"),i("line",{x1:"1.5",y1:"1.5",x2:"12.5",y2:"1.5",stroke:"white","stroke-width":"3","stroke-linecap":"round"}))):i("div",{class:"searchcraft-facet-list-checkbox-input-check-icon"},i("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i("title",null,"Checkbox check"),i("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&&i("div",{class:"searchcraft-facet-child-list"},a.children.map(c=>i("label",{key:c.path,class:"searchcraft-facet-list-checkbox-label searchcraft-facet-child-list-checkbox-label",style:{display:this.selectedPaths[a.path]?"flex":"none"}},i("div",{class:"searchcraft-facet-list-checkbox-input-wrapper searchcraft-facet-child-list-checkbox-input-wrapper"},i("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"}),i("div",{class:"searchcraft-facet-list-checkbox-input-check-icon searchcraft-facet-child-list-checkbox-input-check-icon"},i("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i("title",null,"Checkbox check"),i("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 gs(){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=gs;function qe(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 vs(e){switch(e){case"hour":return 36e5;case"day":return 864e5;case"month":return 2592e6;case"year":return 31536e6;default:return 36e5}}function bs(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),l=Math.trunc(h/24),p=new Intl.RelativeTimeFormat(t,r);return l>=1?p.format(-l,"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=N(class extends D{constructor(){super();d(this,"max",100);d(this,"min",0);d(this,"granularity",vs("month"));d(this,"dataType","number");d(this,"endValue",this.max);d(this,"startValue",this.min);d(this,"lastFocusedHandle","max");d(this,"rangeChanged");d(this,"emitUpdate",async()=>{var r;(r=this.rangeChanged)==null||r.emit({startValue:this.startValue,endValue:this.endValue})});d(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}`)});d(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 i("div",{key:"9225b18ce2f40246837d183fcefdd0be7cc22383",class:"searchcraft-slider"},i("div",{key:"8078c1eda2ceb781282f59216915896fdbe2a8d3",class:"searchcraft-slider-range"},i("div",{key:"6a6bafa9f7abf41ab24f020cd291a4a08c618afb",class:"searchcraft-slider-active-range",style:{left:`${a}%`,width:`${o-a}%`}}),i("input",{key:"f07a91d441d277b8e9eba34e39093393a44bbf53",class:ie("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}),i("input",{key:"0637ea5fe123abe1d77c540b347c78fc8ad3d281",class:ie("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})),i("div",{key:"b62f8d8485915dddefb7ca29f62b4a96d70470c5",class:"searchcraft-slider-label"},i("span",{key:"fd5d32172ce53d93b858ca54c17b12b80fcdde1d",class:"searchcraft-slider-start-label"},n),i("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 ys(){if(typeof customElements>"u")return;["searchcraft-slider"].forEach(t=>{switch(t){case"searchcraft-slider":customElements.get(t)||customElements.define(t,go);break}})}const vo=N(class extends D{constructor(){super();d(this,"label","Toggle");d(this,"subLabel");d(this,"toggleUpdated");d(this,"isActive",!1);d(this,"unsubscribe");d(this,"lastSearchTerm");d(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 i("div",{key:"f8a751315daf6bcdc0d47bc4fc802bc4615e565f",class:ie("searchcraft-toggle-button",{"searchcraft-toggle-button-active":this.isActive})},i("div",{key:"aaa92d7c1aebe241a163a1fba7cd1f8d3804286d"},i("p",{key:"068b82b17a99bf55ad17818d0dd4c7e95858317b",class:"searchcraft-toggle-button-label"},this.label),this.subLabel&&i("p",{key:"39e43e3fad6a2ab09d20f37c6d6865cede3701d9",class:"searchcraft-toggle-button-sub-label"},this.subLabel)),i("button",{key:"5ae352870d4a01c430389e75b967b2eb9d3fa5f7",class:"searchcraft-toggle-button-background",onClick:this.handleToggle,type:"button"},i("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=N(class extends D{constructor(){super();d(this,"items",[]);d(this,"unsubscribe");d(this,"lastSearchTerm");d(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){this.searchStore.setSortType(r?"desc":"asc"),this.searchStore.search()}render(){return i("div",{key:"22344fe9d0554894bff8c2c6afe12661bf7f20d0",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=vs(s.options.granularity);return i("div",{class:"searchcraft-filter-panel-section"},i("p",{class:"searchcraft-filter-panel-label"},r.label),i("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 i("div",{class:"searchcraft-filter-panel-section"},i("p",{class:"searchcraft-filter-panel-label"},r.label),i("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 i("div",{class:"searchcraft-filter-panel-section"},i("p",{class:"searchcraft-filter-panel-label"},r.label),i("searchcraft-facet-list",{fieldName:s.fieldName,onFacetSelectionUpdated:a=>{this.handleFacetSelectionUpdated(s.fieldName,a.detail.paths)}}))}case"exactMatchToggle":{const s=r;return i("searchcraft-toggle-button",{label:s.label,subLabel:s.options.subLabel,onToggleUpdated:a=>{this.handleExactMatchToggleUpdated(a.detail)}})}case"mostRecentToggle":{const s=r;return i("searchcraft-toggle-button",{label:s.label,subLabel:s.options.subLabel,onToggleUpdated:a=>{this.handleMostRecentToggleUpdated(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)||gs();break;case"searchcraft-slider":customElements.get(t)||ys();break;case"searchcraft-toggle-button":customElements.get(t)||Cs();break}})}const Co=yo,So=N(class extends D{constructor(){super();d(this,"inputLabelClassName","");d(this,"label","");this.__registerHost()}render(){return i("label",{key:"3622c616d480e57b1dfaa2d61637a30b843cb968",class:ie("searchcraft-input-label",this.inputLabelClassName),htmlFor:"searchcraft-input-id"},this.label)}},[0,"searchcraft-input-label",{inputLabelClassName:[1,"input-label-class-name"],label:[1]}]);function Qt(){if(typeof customElements>"u")return;["searchcraft-input-label"].forEach(t=>{switch(t){case"searchcraft-input-label":customElements.get(t)||customElements.define(t,So);break}})}const ko=N(class extends D{constructor(){super();d(this,"autoSearch",!0);d(this,"buttonPlacement","none");d(this,"buttonLabel");d(this,"inputLabel");d(this,"placeholderValue","Enter Search");d(this,"inputFocus");d(this,"inputBlur");d(this,"inputInit");d(this,"inputValue","");d(this,"searchTerm","");d(this,"error",!1);d(this,"core");d(this,"searchcraftStore",_.getState());d(this,"unsubscribe",()=>{});d(this,"handleInput",r=>{const s=r.target;this.inputValue=s.value,this.autoSearch&&this.performSearch(s.value)});d(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}}});d(this,"handleReset",()=>{this.searchcraftStore.setSearchResultsCount(0),this.searchcraftStore.setSearchTerm(""),this.searchcraftStore.setSearchClientResponseItems([]),this.error=!1});d(this,"handleClearInput",()=>{this.handleReset()});d(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=ie("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 i("form",{key:"6af89b2ab634e0f3e0ef575f98f33d091602f95a",class:"searchcraft-input-form",onSubmit:this.handleFormSubmit},i("div",{key:"93fea8e2b80468afeb6014122d5b749d74bfaf35",class:s,style:o},i("div",{key:"1e5a416843b99aec68c4672a9c78f607347dc9d1",class:"searchcraft-input-form-button"},i("searchcraft-button",{key:"c38c1df0ce20f914ed76fbc0acad5a22b40e6fff",onButtonClick:this.handleFormSubmit,label:this.buttonLabel})),this.inputLabel&&i("div",{key:"2169a4466b0fdc8075c0dc74da442aef28a84d65",class:"searchcraft-input-form-label"},i("searchcraft-input-label",{key:"a263b5aa2a4d50d297f06c1fe9e6afb64763f097",label:this.inputLabel})),this.error&&i("div",{key:"49be2ac0f2d01916e5ea533e6406ee9d4d932178",class:"searchcraft-input-form-error-message"},i("searchcraft-error-message",{key:"310c9aebcf580d4abe92d288c6b70a5adf083f8e"},"Something went wrong.")),i("div",{key:"f4702e368815e049586e97cf59541b2dc5460fc0",class:"searchcraft-input-form-input-wrapper"},i("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}),i("div",{key:"616b4dde1ba016cf6a2fba8594a99a3a3f584ef5",class:"searchcraft-input-form-input-icon"},i("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"},i("title",{key:"e6d82ca64dd9bfc663813c239d11e5652aa0b9a1"},"Search icon"),i("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&&i("button",{key:"8dd6dfefe0ba909657bd436b559ce35b5004f9ae",type:"button",class:"searchcraft-input-form-clear-button",onClick:this.handleClearInput},i("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"},i("title",{key:"e01e7fb9b23daf9434520c4c68c0d7539b37d1f8"},"Clear icon"),i("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 Ss(){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)||Qt();break}})}const wo=Ss,xo=Qt,Ro=N(class extends D{constructor(){super();d(this,"searchTerm");d(this,"searchResultsPerPage");d(this,"searchResultsPage");d(this,"searchResultsCount");d(this,"searchResultsPagesCount",1);d(this,"searchResultsRangeMin",1);d(this,"searchResultsRangeMax",1);d(this,"setSearchResultsPage",()=>{});d(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 i("li",null,i("button",{class:ie("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)?i("li",null,i("button",{class:ie("searchcraft-pagination-item",{"searchcraft-pagination-item-active":this.searchResultsPage===r}),onClick:()=>this.handleGoToPage(r),type:"button"},r)):i("li",null,i("span",{class:"searchcraft-pagination-item"},"..."))}renderMiddlePaginationItem(){if(!(this.searchResultsPagesCount<=3))return this.searchResultsPagesCount<=5||this.searchResultsPage<=3||this.searchResultsPage>=this.searchResultsPagesCount-2?i("li",null,i("button",{class:ie("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)):i("li",null,i("span",{class:"searchcraft-pagination-item searchcraft-pagination-item-active"},this.searchResultsPage))}render(){if(!(!this.searchTerm||this.searchResultsPagesCount<=1))return i("div",{class:"searchcraft-pagination"},i("div",{class:"searchcraft-pagination-control"},i("searchcraft-button",{disabled:this.searchResultsPage===1,hierarchy:"tertiary",onButtonClick:()=>this.handleGoToPage(Math.max(1,this.searchResultsPage-1)),label:"Previous",iconPosition:"left",icon:i("svg",{class:"searchcraft-button-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("title",null,"Previous page icon"),i("path",{d:"M12.5 15L7.5 10L12.5 5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),iconOnly:!0})),i("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)),i("div",{class:"searchcraft-pagination-control"},i("searchcraft-button",{disabled:this.searchResultsPage===this.searchResultsPagesCount,hierarchy:"tertiary",onButtonClick:()=>{this.handleGoToPage(Math.min(this.searchResultsPagesCount,this.searchResultsPage+1))},label:"Next",iconPosition:"right",icon:i("svg",{class:"searchcraft-button-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("title",null,"Next page icon"),i("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,Ro);break;case"searchcraft-button":customElements.get(t)||vt();break}})}const Po=Eo,To=N(class extends D{constructor(){super();d(this,"template");d(this,"type");d(this,"hotkey");d(this,"hotkeyModifier");d(this,"hotkeyModifierSymbol");d(this,"isPopoverVisible");d(this,"userAgent");d(this,"unsubscribe",()=>{});d(this,"renderOptionSymbol",()=>i("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},i("title",null,"Option key"),i("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"}),i("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"})));d(this,"renderCtrlSymbol",()=>i("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},i("title",null,"Ctrl key"),i("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"})));d(this,"renderWindowsMetaSymbol",()=>i("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},i("title",null,"Windows meta key"),i("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"})));d(this,"renderMacMetaSymbol",()=>i("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 512 512",fill:"none"},i("title",null,"Mac meta key"),i("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 i("div",{class:"searchcraft-popover-button-wrapper"},i("div",{class:"searchcraft-popover-button-input"},i("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"},i("title",null,"Search icon"),i("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"})),i("span",null,"Search")),i("div",{class:"searchcraft-popover-button-keycaps"},i("div",{class:"searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-modifier"},i("span",null,this.hotkeyModifierSymbol)),i("div",{class:"searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-key"},i("span",null,this.hotkey))))}renderSlot(){switch(this.type){case"skeuomorphic":return this.renderSkeuomorphicSlot();default:return i("div",null,i("slot",null))}}render(){return i("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:mt}):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=N(class extends D{constructor(){super();d(this,"searchResultsCount");d(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 i("footer",{key:"e1344ae185ef1b8a83bb69ba88e2952ab1c75e70",class:"searchcraft-popover-footer"},i("p",{key:"51874f4ce490e4f164b999e8c6f89710702e73bd",class:"searchcraft-popover-footer-results-info"},this.searchResultsCount?`${bs(this.searchResultsCount)} Results Found`:" "),i("a",{key:"5476e24cc3fa7fa265bd2b5cba43c8a70d8609ca",class:"searchcraft-popover-footer-link",href:"https://searchcraft.io/",target:"_blank",rel:"noreferrer"},i("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"},i("title",{key:"67813a626922d709a4409028cb0f3f1ce3e2cfe8"},"Powered by Searchcraft"),i("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 ks(){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=ks,Mo=N(class extends D{constructor(){super();d(this,"item");d(this,"popoverResultMappings");d(this,"documentPosition",0);d(this,"title");d(this,"subtitle");d(this,"href");d(this,"imageSource");d(this,"imageAlt");d(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=qe(r,(s=this.popoverResultMappings)==null?void 0:s.title),this.subtitle=qe(r,(a=this.popoverResultMappings)==null?void 0:a.subtitle),this.href=qe(r,(o=this.popoverResultMappings)==null?void 0:o.href),this.imageSource=qe(r,(n=this.popoverResultMappings)==null?void 0:n.imageSource),this.imageAlt=qe(r,(c=this.popoverResultMappings)==null?void 0:c.imageAlt)}connectedCallback(){this.item&&this.mapValuesFromDocument(this.item.document)}disconnectedCallback(){}render(){return i("div",{key:"63a2f070ce71cd1330105c03985e32cd1f228b29",class:"searchcraft-popover-list-item"},i("a",{key:"d9bb09248be9be235147acdfeed1a9f29cd123a2",class:"searchcraft-popover-list-item-link",href:this.href,onClick:this.handleLinkClick.bind(this)},this.imageSource&&i("div",{key:"6af7c3e754885730d8651a593f13b7b5b704a26d",class:"searchcraft-popover-list-item-image-wrapper"},i("img",{key:"74c7e53467efd83ae95439a7065c1de2748113f5",alt:this.imageAlt,src:this.imageSource,class:"searchcraft-popover-list-item-image"})),i("div",{key:"25a12e5cf582b248773005f5fb58f7a15304d2d1",class:"searchcraft-popover-list-item-content"},this.title&&i("p",{key:"8169f7730feb832178adbc9bdb14a089e955a2ad",class:"searchcraft-popover-list-item-content-title"},this.title),this.subtitle&&i("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 Kt(){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=N(class extends D{constructor(){super();d(this,"popoverResultMappings");d(this,"searchClientResponseItems");d(this,"adClientResponseItems");d(this,"searchResultsPage");d(this,"searchResultsPerPage");d(this,"config",(As=_.getState().core)==null?void 0:As.config);this.__registerHost()}renderWithADMAds(){var r,s;return i("div",{class:"searchcraft-popover-list-view"},(r=this.adClientResponseItems)==null?void 0:r.map(a=>i("searchcraft-ad",{adClientResponseItem:a,adContainerId:K(),adSource:"adMarketplace",key:a.id})),(s=this.searchClientResponseItems)==null?void 0:s.map((a,o)=>i("searchcraft-popover-list-item",{item:a,key:a.id,popoverResultMappings:this.popoverResultMappings,documentPosition:this.searchResultsPerPage*(this.searchResultsPage-1)+o})))}renderWithCustomAds(){var u,h,l,p;const r=[],s=((u=this.config)==null?void 0:u.customAdInterstitialInterval)||0,a=((h=this.config)==null?void 0:h.customAdInterstitialQuantity)||1,o=((l=this.config)==null?void 0:l.customAdStartQuantity)||0,n=((p=this.config)==null?void 0:p.customAdEndQuantity)||0,c=this.searchClientResponseItems||[];for(let g=0;g<o;g++)r.push(i("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(i("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${g.id}-ad-${b}`}));r.push(i("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(i("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${g}-ad`}));return i("div",{class:"searchcraft-popover-list-view"},r)}renderWithNativoAds(){var h,l,p,g,k;const r=[],s=((h=this.config)==null?void 0:h.nativoAdInterstialStartIndex)||0,a=((l=this.config)==null?void 0:l.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(i("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(i("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${b.id}-ad-${I}`}));r.push(i("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(i("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${b}-ad`}));return i("div",{class:"searchcraft-popover-list-view"},r)}renderWithNoAds(){var r;return i("div",{class:"searchcraft-popover-list-view"},(r=this.searchClientResponseItems)==null?void 0:r.map((s,a)=>i("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 ws(){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)||Kt();break}})}const Oo=N(class extends D{constructor(){super();d(this,"type","inline");d(this,"popoverResultMappings");d(this,"hotkey","k");d(this,"hotkeyModifier","meta");d(this,"isPopoverVisibleInState",!1);d(this,"unsubscribe");d(this,"searchClientResponseItems",[]);d(this,"adClientResponseItems",[]);d(this,"searchTerm");d(this,"isFocused",!1);d(this,"breakpointSm",576);d(this,"breakpointMd",768);d(this,"breakpointLg",992);d(this,"searchResultsPage");d(this,"searchResultsPerPage");d(this,"modalElement");d(this,"handleDocumentClick",r=>{this.hostElement.contains(r.target)||(this.isFocused=!1)});d(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}});d(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 i("div",{class:ie("searchcraft-popover-form searchcraft-popover-form-inline",{"searchcraft-popover-form-active":r})},i("div",{class:"searchcraft-popover-form-input searchcraft-popover-form-inline-input"},i("searchcraft-input-form",{onInputFocus:this.handleInputFocus.bind(this)})),r&&i("div",{class:"searchcraft-popover-form-inline-wrapper"},i("searchcraft-popover-list-view",{popoverResultMappings:this.popoverResultMappings,searchClientResponseItems:this.searchClientResponseItems,adClientResponseItems:this.adClientResponseItems,searchResultsPage:this.searchResultsPage,searchResultsPerPage:this.searchResultsPerPage}),i("searchcraft-popover-footer",null)))}renderModalPopover(){if(this.isPopoverVisibleInState)return i("div",{class:ie("searchcraft-popover-form searchcraft-popover-form-modal",{"searchcraft-popover-form-active":this.hasResultsToShow})},i("div",{class:"searchcraft-popover-form-modal-backdrop",onClick:this.handleModalBackdropClick}),i("div",{class:"searchcraft-popover-form-modal-wrapper"},i("div",{class:"searchcraft-popover-form-input searchcraft-popover-form-modal-input"},i("searchcraft-input-form",{onInputFocus:this.handleInputFocus.bind(this),onInputInit:this.handleInputInit.bind(this)}),i("button",{type:"button",class:"searchcraft-popover-form-cancel-button searchcraft-popover-form-modal-cancel-button",onClick:this.handleCancelButtonClick.bind(this)},"Cancel")),i("div",{class:"searchcraft-popover-form-modal-popover-list-view"},this.hasResultsToShow&&i("searchcraft-popover-list-view",{popoverResultMappings:this.popoverResultMappings,searchClientResponseItems:this.searchClientResponseItems,adClientResponseItems:this.adClientResponseItems,searchResultsPage:this.searchResultsPage,searchResultsPerPage:this.searchResultsPerPage})),i("searchcraft-popover-footer",null)))}renderFullscreenPopover(){if(this.isPopoverVisibleInState)return i("div",{class:ie("searchcraft-popover-form searchcraft-popover-form-fullscreen",{"searchcraft-popover-form-active":this.hasResultsToShow})},i("div",{class:"searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input"},i("searchcraft-input-form",{onInputFocus:this.handleInputFocus.bind(this),onInputInit:this.handleInputInit.bind(this)}),i("button",{type:"button",class:"searchcraft-popover-form-cancel-button searchcraft-popover-form-fullscreen-cancel-button",onClick:this.handleCancelButtonClick.bind(this)},"Cancel")),i("div",{class:"searchcraft-popover-form-fullscreen-popover-list-view"},this.hasResultsToShow&&i("searchcraft-popover-list-view",{popoverResultMappings:this.popoverResultMappings,searchClientResponseItems:this.searchClientResponseItems,adClientResponseItems:this.adClientResponseItems,searchResultsPage:this.searchResultsPage,searchResultsPerPage:this.searchResultsPerPage})),i("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)||Ss();break;case"searchcraft-input-label":customElements.get(t)||Qt();break;case"searchcraft-popover-footer":customElements.get(t)||ks();break;case"searchcraft-popover-form":customElements.get(t)||xs();break;case"searchcraft-popover-list-item":customElements.get(t)||Kt();break;case"searchcraft-popover-list-view":customElements.get(t)||ws();break}})}const Fo=xs,Do=Kt,No=ws,Ho=N(class extends D{constructor(){super();d(this,"template");d(this,"searchTerm");d(this,"searchResultsPage");d(this,"searchResultsPerPage");d(this,"searchResultsCount");d(this,"count",0);d(this,"range",[0,0]);d(this,"responseTime","0");d(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:i("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:mt}):`${bs(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,Ho);break}})}const zo=Uo,jo=N(class extends D{constructor(){super();d(this,"item");d(this,"index");d(this,"documentPosition",0);d(this,"template");d(this,"templateHtml");d(this,"handleResultContainerClick",r=>{var l;const s=_.getState(),a=s.getSearchcraftCore();if(!r.target)return;const n=r.target.closest("a");if(!n||!((l=this.hostElement)!=null&&l.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})});d(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:mt})}catch(s){console.error("Invalid search result template:",s)}}render(){if(this.item)return typeof this.template>"u"?i("div",{class:"searchcraft-search-result searchcraft-search-result-no-template",onClick:this.handleResultContainerClick,onKeyDown:this.handleKeyDown},Object.entries(this.item.document).map(([r,s])=>i("p",{key:r},i("strong",null,r),": ",s))):i("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 Rs(){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=Rs,Bo=N(class extends D{constructor(){super();d(this,"initialQuery");d(this,"template");d(this,"adClientResponseItems",[]);d(this,"config");d(this,"initialSearchClientResponseItems");d(this,"isSearchInProgress",!0);d(this,"searchClientResponseItems");d(this,"searchResultsPage");d(this,"searchResultsPerPage");d(this,"searchTerm","");d(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 i("div",{class:"searchcraft-search-results-empty-state"},i("slot",{name:"empty-search"}))}renderNoResultsFoundState(){return i("div",{class:"searchcraft-search-results"},i("div",{class:"searchcraft-search-results-error-message"},i("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 i("div",{class:"searchcraft-search-results"},(o=this.adClientResponseItems)==null?void 0:o.map(n=>i("searchcraft-ad",{adSource:"adMarketplace",adClientResponseItem:n,adContainerId:K(),key:n.id})),r.map((n,c)=>i("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,l,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=((l=this.config)==null?void 0:l.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(i("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(i("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${b.id}-ad-${I}`}));r.push(i("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(i("searchcraft-ad",{adSource:"Custom",adContainerId:K(),key:`${b}-ad`}));return i("div",{class:"searchcraft-search-results"},r)}renderWithNativoAds(){var h,l,p,g,k,b,P;const r=[],s=((h=this.config)==null?void 0:h.nativoAdInterstialStartIndex)||0,a=((l=this.config)==null?void 0:l.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(i("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(i("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${I.id}-ad-${T}`}));r.push(i("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(i("searchcraft-ad",{adSource:"Nativo",adContainerId:K(),key:`${I}-ad`}));return i("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 i("div",{class:"searchcraft-search-results"},r.map((o,n)=>i("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)||Rs();break}})}const Go=Wo,qo=N(class extends D{constructor(){super();d(this,"caption");d(this,"disabled",!1);d(this,"inputId");d(this,"label");d(this,"labelId");d(this,"name");d(this,"options",[]);d(this,"selectChange");d(this,"searchResultsPerPage");d(this,"setSearchResultsPage",()=>{});d(this,"setSearchResultsPerPage",()=>{});d(this,"handleSelectChange",r=>{this.selectChange.emit(r.target.value)});this.__registerHost(),this.selectChange=we(this,"selectChange")}handleGoToPage(r){this.setSearchResultsPage(r)}render(){return i("div",{key:"15ecbf48c824a161cd83bdab99dace8e44f1ab39",class:"searchcraft-select"},this.label&&i("label",{key:"aba433ae9c27c9405099cffcef923c3ad22d7fda",class:"searchcraft-select-label",id:this.labelId||`${this.inputId}-label`,htmlFor:this.inputId},this.label),i("div",{key:"8df8a2ff05924c9c55cdd6e3827cd927cddab82a",class:"searchcraft-select-input-wrapper"},i("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})=>i("option",{key:s,value:s,selected:a},r))),i("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"},i("title",{key:"bced6b62378491d1d1c629b602d7d033d912c761"},"Select dropdown icon"),i("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&&i("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 Es(){if(typeof customElements>"u")return;["searchcraft-select"].forEach(t=>{switch(t){case"searchcraft-select":customElements.get(t)||customElements.define(t,qo);break}})}const Yo=N(class extends D{constructor(){super();d(this,"increment",20);d(this,"searchTerm");d(this,"searchResultsPage");d(this,"searchResultsPerPage");d(this,"searchResultsCount");d(this,"searchResultsPagesCount");d(this,"initialSearchResultsPerPage");d(this,"setSearchResultsPerPage",()=>{});d(this,"setSearchResultsPage",()=>{});d(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 i("div",{class:"searchcraft-search-results-per-page"},i("div",{class:"searchcraft-search-results-per-page-select"},i("label",{class:"searchcraft-search-results-per-page-select-label",htmlFor:"searchcraft-search-results-per-page-select-input"},"Results Per Page"),i("div",{class:"searchcraft-search-results-per-page-select-input"},i("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)||Es();break}})}const Qo=Zo,Ko=Es,Xo=ys,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-adm-ad{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-ad:last-child .searchcraft-adm-ad{border-bottom:none}.searchcraft-adm-ad-link{align-items:flex-start;background-color:rgb(from blue r g b/5%);color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-adm-ad-link:focus,.searchcraft-adm-ad-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-adm-ad-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-adm-ad-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-adm-ad-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-adm-ad-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-adm-ad-content-title,.searchcraft-adm-ad-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-adm-ad-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-adm-ad-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-search-result{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-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
+ `,ec=N(class extends D{constructor(){super(),this.__registerHost()}render(){return i("style",{key:"912dbad4e0aa5be21ed638cd20c276b530991454"},Jo)}},[0,"searchcraft-theme"]);function tc(){if(typeof customElements>"u")return;["searchcraft-theme"].forEach(t=>{switch(t){case"searchcraft-theme":customElements.get(t)||customElements.define(t,ec);break}})}const rc=tc,sc=Cs,Ps=()=>{so(),no(),co(),po(),Co(),wo(),xo(),Po(),_o(),Ao(),Fo(),Do(),No(),zo(),Vo(),Qo(),Go(),Ko(),Xo(),rc(),sc()};globalThis.__scDefineCustomElements__=Ps;const Ts={name:"@searchcraft/vue-sdk",version:"0.10.2"},Xt="routerLink",$s="navManager",ac="router",nc="aria",Ye=Symbol(),_s={default:Ye},Is=e=>(e==null?void 0:e.split(" "))||[],oc=(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=B.defineComponent((c,{attrs:u,slots:h,emit:l})=>{var F;const p=B.ref(),g=new Set(Is(u.class)),k=B.getCurrentInstance(),P=((F=k==null?void 0:k.appContext)==null?void 0:F.provides[$s])?B.inject($s):void 0,I=T=>{const{routerLink:be}=c;if(be!==Ye)if(P!==void 0){T.preventDefault();let oe={event:T};for(const Ee in c){const U=c[Ee];c.hasOwnProperty(Ee)&&Ee.startsWith(ac)&&U!==Ye&&(oe[Ee]=U)}P.navigate(oe)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{c[a],Is(u.class).forEach(U=>{g.add(U)});const T=c.onClick,be=U=>{T!==void 0&&T(U),U.defaultPrevented||I(U)};let oe={ref:p,class:oc(p,g),onClick:be};for(const U in c){const se=c[U];(c.hasOwnProperty(U)&&se!==Ye||U.startsWith(nc))&&(oe[U]=se);const z="on"+U.slice(0,1).toUpperCase()+U.slice(1),Pe=u[z];p.value&&u.hasOwnProperty(z)&&"addEventListener"in p.value&&p.value.addEventListener(U,Pe)}return Xt in c&&c[Xt]!==Ye&&(oe={...oe,href:c[Xt]}),B.h(e,oe,h.default&&h.default())}});if(typeof n!="function"){let c=[],u={};u.ROUTER_LINK_VALUE=_s,r.forEach(h=>u[h]=_s),c=s,n.name=e,n.emits=c,n.props=u}return n},cc=ve("searchcraft-filter-panel",()=>{},["items"]),ic=ve("searchcraft-input-form",()=>{},["autoSearch","buttonPlacement","buttonLabel","inputLabel","placeholderValue","core","inputFocus","inputBlur","inputInit"],["inputFocus","inputBlur","inputInit"]),lc=ve("searchcraft-pagination",()=>{}),uc=ve("searchcraft-popover-button",()=>{},["template","type"]),hc=ve("searchcraft-popover-form",()=>{},["type","popoverResultMappings","hotkey","hotkeyModifier"]),fc=ve("searchcraft-results-info",()=>{},["template"]),dc=ve("searchcraft-search-results",()=>{},["initialQuery","template"]),pc=ve("searchcraft-search-results-per-page",()=>{},["increment"]),mc=ve("searchcraft-theme",()=>{}),gc=dc,vc=cc,bc=ic,yc=uc,Cc=hc,Sc=fc,kc=mc,wc=lc,xc=pc;class Rc extends Mn{constructor(t){super(t,{sdkName:Ts.name,sdkVersion:Ts.version})}}Ps(),O.Searchcraft=Rc,O.SearchcraftFilterPanel=vc,O.SearchcraftInputForm=bc,O.SearchcraftPagination=wc,O.SearchcraftPopoverButton=yc,O.SearchcraftPopoverForm=Cc,O.SearchcraftResultsInfo=Sc,O.SearchcraftSearchResults=gc,O.SearchcraftSearchResultsPerPage=xc,O.SearchcraftTheme=kc,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
26
26
  //# sourceMappingURL=index.umd.js.map